Change tui_active to bool
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
a1e4dee4
TT
12019-12-27 Tom Tromey <tom@tromey.com>
2
3 * tui/tui.c (tui_active): Now bool.
4 (tui_finish_init): Likewise.
5 (tui_enable): Update.
6 (tui_disable): Update.
7 (tui_is_window_visible): Update.
8 * tui/tui.h (tui_active): Now bool.
9
1630140d
TT
102019-12-27 Tom Tromey <tom@tromey.com>
11
12 * tui/tui-source.c (tui_source_window::maybe_update): Update.
13 * tui/tui-regs.c (tui_data_window::display_registers_from):
14 Update.
15 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
16 * tui/tui-data.h (struct tui_gen_win_info) <viewport_height>:
17 Remove.
18 * tui/tui-command.c (tui_cmd_window::resize): Update.
19
4d4eaa30
CB
202019-12-26 Christian Biesinger <cbiesinger@google.com>
21
22 * ada-lang.c (ada_decode_symbol): Update.
23 * buildsym.c (add_symbol_to_list): Update.
24 * coffread.c (process_coff_symbol): Update.
25 * ctfread.c (ctf_add_enum_member_cb): Update.
26 (new_symbol): Update.
27 (ctf_add_var_cb): Update.
28 * dwarf2read.c (fixup_go_packaging): Update.
29 (dwarf2_compute_name): Update.
30 (new_symbol): Update.
31 * jit.c (finalize_symtab): Update.
32 * language.c (language_alloc_type_symbol): Update.
33 * mdebugread.c (new_symbol): Update.
34 * minsyms.c (minimal_symbol_reader::record_full): Update.
35 (minimal_symbol_reader::install): Update.
36 * psymtab.c (print_partial_symbols): Update.
37 (psymbol_hash): Update.
38 (psymbol_compare): Update.
39 (add_psymbol_to_bcache): Update.
40 (maintenance_check_psymtabs): Update.
41 * stabsread.c (define_symbol): Update.
42 * symtab.c (symbol_set_names): Rename to...
43 (general_symbol_info::compute_and_set_names): ...this.
44 (general_symbol_info::natural_name): Update.
45 (general_symbol_info::search_name): Update.
46 (fixup_section): Update.
47 * symtab.h (struct general_symbol_info) <name>: Rename to...
48 <m_name>: ...this.
49 <compute_and_set_names>: Rename from...
50 (symbol_set_names): ...this.
51 (SYMBOL_SET_NAMES): Remove.
52 (struct symbol) <ctor>: Update.
53
8fb75323
CB
542019-12-26 Christian Biesinger <cbiesinger@google.com>
55
56 * NEWS: Mention that multithreaded symbol loading is now on by
57 default.
58
3142e908
RK
592019-12-26 Ruslan Kabatsayev <b7.10110111@gmail.com>
60
61 * dwarf2read.c (is_valid_DW_AT_defaulted)
62 (is_valid_DW_AT_calling_convention_for_type)
63 (is_valid_DW_AT_calling_convention_for_subroutine): Fix printing
64 ULONGEST variables on x86-32.
65
cb736441
GB
662019-12-21 George Barrett <bob@bob131.so>
67
68 * solib-svr4.c (svr4_handle_solib_event): Add fallback link
69 namespace test for when the debug struct isn't available.
70
15b07e4f
EZ
712019-12-21 Eli Zaretskii <eliz@gnu.org>
72
73 * top.c (print_gdb_configuration): Print "--with-xxhash" or
74 "--without-xxhash" according to HAVE_LIBXXHASH.
75
1c7148dd
WP
762019-12-20 Weimin Pan <weimin.pan@oracle.com>
77 * ctfread.c (ctf_file_key): Change type to objfile_key.
78 (struct ctf_context): Remove typedef.
79 (get_objfile_text_range): Use ANOFFSET to get text base.
80
d0922fcf
TBA
812019-12-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
82
83 * dwarf2read.c (is_valid_DW_AT_calling_convention_for_subroutine):
84 New function.
85 (read_subroutine_type): Validate the parsed
86 DW_AT_calling_convention value before assigning it to a
87 subroutine's calling_convention attribute.
88 * gdbtypes.h (struct func_type) <calling_convention>: Use
89 an enum bitfield as its type, instead of plain unsigned.
90
099a6354
TBA
912019-12-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
92
93 PR gdb/25054
94 * infcall.c (call_function_by_hand_dummy): Update the argument-
95 passing section for call-by-value parameters.
96 (struct destructor_info): New struct.
97 (call_destructors): New auxiliary function.
98
62bf63d7
TBA
992019-12-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
100
101 * gnu-v3-abi.c (enum definition_style): New enum type.
102 (get_def_style): New function.
103 (is_user_provided_def): New function.
104 (is_implicit_def): New function.
105 (is_copy_or_move_constructor_type): New function.
106 (is_copy_constructor_type): New function.
107 (is_move_constructor_type): New function.
108 (gnuv3_pass_by_reference): Collect language_pass_by_ref_info
109 for a given type.
110
9d084466
TBA
1112019-12-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
112
113 * language.h (struct language_pass_by_ref_info): New struct.
114 (struct language_defn)<la_pass_by_reference>: Change the signature
115 to return a language_pass_by_ref_info instead of an int.
116 (language_pass_by_reference): Ditto.
117 (default_pass_by_reference): Ditto.
118 Adjust the users listed below.
119 * arch-utils.c (default_return_in_first_hidden_param_p):
120 Update.
121 * cp-abi.c (cp_pass_by_reference): Update.
122 * cp-abi.h (cp_pass_by_reference): Update declaration.
123 (struct cp_abi_ops)<pass_by_reference>: Update.
124 * gnu-v3-abi.c (gnuv3_pass_by_reference): Update.
125 * infcall.c (call_function_by_hand_dummy): Update.
126 * language.c (language_pass_by_reference): Update.
127 (default_pass_by_reference): Update.
128 * tic6x-tdep.c (tic6x_return_value): Update.
129
e35000a7
TBA
1302019-12-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
131
132 * dwarf2read.c (dwarf2_add_member_fn): Read the DW_AT_defaulted
133 and DW_AT_deleted attributes of a function.
134 (read_structure_type): Read the DW_AT_calling_convention attribute
135 of a type.
136 (is_valid_DW_AT_defaulted): New function.
137 (is_valid_DW_AT_calling_convention_for_type): New function.
138 * gdbtypes.h: Include dwarf2.h.
139 (struct fn_field)<defaulted>: New field to store the
140 DW_AT_defaulted attribute.
141 (struct fn_field)<is_deleted>: New field to store the
142 DW_AT_deleted attribute.
143 (struct cplus_struct_type)<calling_convention>: New field to store
144 the DW_AT_calling_convention attribute.
145 (TYPE_FN_FIELD_DEFAULTED): New macro.
146 (TYPE_FN_FIELD_DELETED): New macro.
147 (TYPE_CPLUS_CALLING_CONVENTION): New macro.
148 * gdbtypes.c (dump_fn_fieldlists): Update for the changes made
149 to the .h file.
150 (print_cplus_stuff): Likewise.
151
b4b49dcb
TT
1522019-12-20 Tom Tromey <tom@tromey.com>
153
154 * tui/tui.c (tui_show_source): Remove.
155 * tui/tui.h (tui_show_source): Don't declare.
156 * tui/tui-out.c (tui_ui_out::do_field_string): Don't call
157 tui_show_source.
158
eb390f49
TT
1592019-12-20 Tom Tromey <tom@tromey.com>
160
161 * tui/tui-stack.h (tui_show_frame_info): Return bool.
162 * tui/tui-stack.c (tui_show_frame_info): Return bool.
163 * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
164 Update.
165
fc9d2d72
TT
1662019-12-20 Tom Tromey <tom@tromey.com>
167
168 PR tui/18932:
169 * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
170 Rename parameters. Handle the not-from-stack-frame case.
171 (from_stack, from_source_symtab): New globals.
172 (tui_before_prompt, tui_normal_stop): Update.
173 (tui_context_changed, tui_symtab_changed): New functions.
174 (tui_attach_detach_observers): Attach new observers.
175
a75cd9a2
TT
1762019-12-20 Tom Tromey <tom@tromey.com>
177
178 * source.c (struct current_source_location) <set, symtab, line>:
179 New methods.
180 <m_symtab, m_line>: Rename. Now private.
181 (get_current_source_symtab_and_line)
182 (set_default_source_symtab_and_line)
183 (set_current_source_symtab_and_line)
184 (clear_current_source_symtab_and_line, select_source_symtab)
185 (info_source_command, print_source_lines_base)
186 (info_line_command, search_command_helper): Update.
187 * observable.h (current_source_symtab_and_line_changed): Declare
188 observable.
189 * observable.c (current_source_symtab_and_line_changed): Define
190 observable.
191
2dfd3df4
TT
1922019-12-20 Tom Tromey <tom@tromey.com>
193
194 * tui/tui-hooks.c (tui_before_prompt): Change parameter to bool.
195 (tui_before_prompt, tui_normal_stop): Update.
196
54217b84
TT
1972019-12-20 Tom Tromey <tom@tromey.com>
198
199 * tui/tui-winsource.c
200 (tui_source_window_base::update_source_window_as_is): Don't call
201 set_current_source_symtab_and_line.
202
0ab92974
TT
2032019-12-20 Tom Tromey <tom@tromey.com>
204
205 * tui/tui-stack.h (struct tui_locator_window) <set_locator_info>:
206 Take a symtab_and_line.
207 * tui/tui-stack.c (tui_locator_window::set_locator_info): Take a
208 symtab_and_line.
209 (tui_show_frame_info): Update.
210
ae4393e2
TT
2112019-12-20 Tom Tromey <tom@tromey.com>
212
213 * tui/tui-stack.c (tui_show_frame_info): Don't call
214 update_exec_info.
215
77b97e00
TT
2162019-12-20 Tom Tromey <tom@tromey.com>
217
218 * tui/tui.c (tui_enable): Call tui_display_main.
219
52469d76
TT
2202019-12-20 Tom Tromey <tom@tromey.com>
221
222 * tui/tui-disasm.c (tui_get_begin_asm_address): Use
223 get_current_source_symtab_and_line, and main_name.
224
5d49bf1b
TT
2252019-12-20 Tom Tromey <tom@tromey.com>
226
227 * tui/tui.c (tui_show_source): Update.
228 * tui/tui-winsource.h (tui_update_source_windows_with_line): Update.
229 * tui/tui-winsource.c (tui_update_source_windows_with_line): Take
230 a symtab_symbol_info, not a separate symtab and line. Simplify.
231
88180c08
TT
2322019-12-20 Tom Tromey <tom@tromey.com>
233
234 * tui/tui-winsource.c (tui_update_source_windows_with_addr):
235 Simplify.
236
9f7540a5
TT
2372019-12-20 Tom Tromey <tom@tromey.com>
238
239 * tui/tui-winsource.h (struct tui_source_window_base)
240 <set_contents, update_source_window_as_is, update_source_window>:
241 Take a sal, not a separate symtab and tui_line_or_address.
242 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
243 (tui_source_window_base::update_source_window_as_is): Take a sal,
244 not a separate symtab and tui_line_or_address.
245 (tui_update_source_windows_with_addr)
246 (tui_update_source_windows_with_line)
247 (tui_source_window_base::rerender)
248 (tui_source_window_base::refill): Update.
249 * tui/tui-source.h (struct tui_source_window) <set_contents>: Take
250 a sal, not a separate symtab and tui_line_or_address.
251 * tui/tui-source.c (tui_source_window::set_contents): Take a sal,
252 not a separate symtab and tui_line_or_address.
253 (tui_source_window::maybe_update): Update.
254 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>: Take
255 a sal, not a separate symtab and tui_line_or_address.
256 * tui/tui-disasm.c (tui_disasm_window::set_contents): Take a sal,
257 not a separate symtab and tui_line_or_address.
258 (tui_disasm_window::do_scroll_vertical)
259 (tui_disasm_window::maybe_update): Update.
260
57e4b379
TT
2612019-12-20 Tom Tromey <tom@tromey.com>
262
263 * tui/tui-winsource.c (tui_source_window_base::refill): Use
264 start_line_or_addr.
265 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Use
266 start_line_or_addr.
267 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
268 start_line_or_addr.
269
61c33f10
TT
2702019-12-20 Tom Tromey <tom@tromey.com>
271
272 * tui/tui-winsource.h (struct tui_source_window_base)
273 <set_contents>: Return bool.
274 * tui/tui-winsource.c
275 (tui_source_window_base::update_source_window_as_is): Update.
276 * tui/tui-source.h (struct tui_source_window) <set_contents>:
277 Return bool.
278 * tui/tui-source.c (tui_source_window::set_contents): Return
279 bool. Simplify.
280 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
281 Return bool.
282 * tui/tui-disasm.c (tui_disasm_window::set_contents): Return
283 bool.
284
469b0731
TT
2852019-12-20 Tom Tromey <tom@tromey.com>
286
287 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
288 (tui_update_source_windows_with_line): Call update_source_window.
289 * tui/tui-source.h (struct tui_source_window)
290 <show_symtab_source>: Don't declare.
291 * tui/tui-source.c (tui_source_window::show_symtab_source):
292 Remove.
293
855f89b3
TT
2942019-12-20 Tom Tromey <tom@tromey.com>
295
296 * tui/tui-winsource.c (tui_update_source_windows_with_addr): Call
297 update_source_window directly.
298 * tui/tui-disasm.h (tui_show_disassem): Don't declare.
299 * tui/tui-disasm.c (tui_show_disassem): Remove.
300
d4669c0f
TT
3012019-12-20 Tom Tromey <tom@tromey.com>
302
303 * tui/tui-winsource.c
304 (tui_source_window_base::update_source_window_as_is): Don't switch focus.
305 * tui/tui-disasm.c (tui_show_disassem): Don't switch focus.
306
1ae58f0c
TT
3072019-12-20 Tom Tromey <tom@tromey.com>
308
309 * tui/tui-winsource.h (struct tui_source_window_base)
310 <maybe_update>: Remove line_no and addr parameters.
311 * tui/tui-stack.c (tui_show_frame_info): Set PC on sal. Update.
312 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
313 Update.
314 * tui/tui-source.c (tui_source_window::maybe_update): Remove
315 line_no and addr parameters.
316 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
317 Update.
318 * tui/tui-disasm.c (tui_disasm_window::maybe_update): Remove
319 line_no and addr parameters.
320
039298ec
TT
3212019-12-20 Tom Tromey <tom@tromey.com>
322
323 * tui/tui-winsource.c (tui_source_window_base::set_is_exec_point_at)
324 (tui_source_window_base::update_breakpoint_info): Remove asserts.
325
8acfefcc
TT
3262019-12-20 Tom Tromey <tom@tromey.com>
327
328 * tui/tui-winsource.c (tui_update_source_windows_with_addr): Call
329 tui_show_disassem.
330 * tui/tui-disasm.h (tui_show_disassem_and_update_source): Don't
331 declare.
332 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Remove.
333
5ebd5402
TT
3342019-12-20 Tom Tromey <tom@tromey.com>
335
336 * tui/tui.h (tui_show_source): Remove parameters.
337 * tui/tui.c (tui_show_source): Remove parameters.
338 * tui/tui-out.c (tui_ui_out::do_field_string): Update.
339
c1b167d7
TT
3402019-12-20 Tom Tromey <tom@tromey.com>
341
342 * tui/tui.c (tui_show_source): Update.
343 * tui/tui-winsource.c (tui_display_main): Update.
344 * tui/tui-stack.h (tui_update_locator_fullname): Change parameter
345 to symtab.
346 * tui/tui-stack.c (tui_update_locator_fullname): Change parameter
347 to symtab.
348 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Update.
349
364d7104
TT
3502019-12-20 Tom Tromey <tom@tromey.com>
351
352 PR tui/23619:
353 * tui/tui-io.c (tui_rl_saved_prompt): Remove.
354 (tui_redisplay_readline): Use rl_display_prompt.
355 (tui_prep_terminal): Update.
356
0ad6b8ee
CB
3572019-12-19 Christian Biesinger <cbiesinger@google.com>
358
359 * configure: Regenerate.
360 * configure.ac: Quote variable arguments of test.
361 * gdbsupport/common.m4: Likewise.
362
d411762c
CB
3632019-12-19 Christian Biesinger <cbiesinger@google.com>
364
365 * score-tdep.c (score7_analyze_prologue): Pass 2.0 instead of
366 2 to pow ().
367
1cd4a20a
CB
3682019-12-19 Christian Biesinger <cbiesinger@google.com>
369
370 * tui/tui-source.c (tui_source_window::set_contents): Cast argument of
371 log10 to double to fix Solaris 11 with gcc 5.5.
372
aa989b27
CB
3732019-12-19 Christian Biesinger <cbiesinger@google.com>
374
375 * fbsd-tdep.c (fbsd_info_proc_files_entry): Rename local var
376 "sun" to "saddr_un".
377
2032eb7e
TT
3782019-12-19 Tom Tromey <tromey@adacore.com>
379
380 * ui-out.h (enum class field_kind): Fix comment.
381
f69656d0
TT
3822019-12-11 Tom Tromey <tromey@adacore.com>
383
384 * xml-support.c (xml_fetch_content_from_file): Use FOPEN_RB.
385
27e4fac7
TT
3862019-12-18 Tom Tromey <tromey@adacore.com>
387
388 PR build/25268:
389 * gdbsupport/thread-pool.c (set_thread_name): Expect "int" return
390 type on macOS. Add comment.
391
e623f035
SM
3922019-12-18 Simon Marchi <simon.marchi@efficios.com>
393
394 * c-lang.c (c_get_string, asm_language_defn): Remove space
395 before tab.
396
28ce7b07
TT
3972019-12-18 Tom Tromey <tromey@adacore.com>
398
399 PR build/25250:
400 * ui-out.c (ui_out::vmessage): Update.
401 * ui-out.h (enum class field_kind) <FIELD_STRING, FIELD_SIGNED>:
402 Rename.
403 (string_field): Update.
404 (signed_field): Update.
405
bbde7025
SM
4062019-12-18 Simon Marchi <simon.marchi@efficios.com>
407
408 * top.c (print_gdb_configuration): Adjust indentation.
409
e3169fe0
CB
4102019-12-17 Christian Biesinger <cbiesinger@google.com>
411
412 * bsd-kvm.c: Include gdbsupport/pathstuff.h.
413
9b30da15
SM
4142019-12-17 Simon Marchi <simon.marchi@polymtl.ca>
415
416 * tui/tui-layout.h (class tui_layout_base): Add virtual
417 destructor.
418
4a4c04f1
BE
4192019-12-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
420
421 * infcmd.c (prepare_one_step): Step over skipped inline functions.
422 * infrun.c (inline_frame_is_marked_for_skip): New helper function.
423 (process_event_stop_test): Keep stepping over skipped inline functions.
424
0394eed1
SM
4252019-12-16 Simon Marchi <simon.marchi@polymtl.ca>
426
427 * jit.c (struct gdb_block) <next>: Remove field.
428 (struct gdb_symtab) <~gdb_symtab>: Remove.
429 <blocks>: Change type to std::forward_list<gdb_block>.
430 (compare_block): Remove.
431 (jit_block_open_impl): Adjust to std::forward_list. Place the new
432 block at the beginning, don't mind about sorting.
433 (finalize_symtab): Adjust to std::forward_list, sort the blocks list
434 before using it.
435
b6112117
SM
4362019-12-16 Simon Marchi <simon.marchi@polymtl.ca>
437
438 * jit.c (struct gdb_block): Add constructor, initialize
439 real_block and next fields.
440 <name>: Change type to gdb::unique_xmalloc_ptr.
441 (struct gdb_symtab) <~gdb_symtab>: Free blocks with delete.
442 (jit_block_open_impl): Allocate gdb_block with new.
443 (finalize_symtab): Adjust to gdb::unique_xmalloc_ptr.
444
1b61f46d
SM
4452019-12-16 Simon Marchi <simon.marchi@polymtl.ca>
446
447 * jit.c: Include forward_list.
448 (struct gdb_symtab) <next>: Remove field.
449 (struct gdb_object) <symtabs>: Change type to
450 std::forward_list<gdb_symtab>.
451 (jit_object_open_impl): Allocate gdb_object with new.
452 (jit_symtab_open_impl): Adjust to std::forward_list.
453 (finalize_symtab): Don't delete symtab.
454 (jit_object_close_impl): Adjust to std::forward_list. Free
455 gdb_object with delete.
456
89867184
SM
4572019-12-16 Simon Marchi <simon.marchi@polymtl.ca>
458
459 * jit.c (struct gdb_symtab): Add constructor, destructor,
460 initialize fields.
461 <linetable>: Change type to unique_xmalloc_ptr.
462 <file_name>: Change type to std::string.
463 (jit_symtab_open_impl): Allocate gdb_symtab with new.
464 (jit_symtab_line_mapping_add_impl): Adjust.
465 (finalize_symtab): Adjust, call delete on stab.
466
d043f8c8
SM
4672019-12-16 Simon Marchi <simon.marchi@polymtl.ca>
468
469 * jit.c (finalize_symtab): Set gdb_block_iter_tmp in loop.
470
d9fa87f4
TT
4712019-12-16 Tom Tromey <tromey@adacore.com>
472
473 * windows-nat.c (windows_nat_target::attach): Update.
474 * remote.c (extended_remote_target::attach): Update.
475 * procfs.c (procfs_target::attach): Update.
476 * nto-procfs.c (nto_procfs_target::attach): Update.
477 (nto_procfs_target::create_inferior): Update.
478 * inf-ptrace.c (inf_ptrace_target::attach): Update.
479 * gnu-nat.c (gnu_nat_target::attach): Update.
480 (gnu_nat_target::detach): Update.
481 * darwin-nat.c (darwin_nat_target::attach): Update.
482 * corefile.c (get_exec_file): Constify result. Remove extraneous
483 return.
484 * bsd-kvm.c (bsd_kvm_target_open): Update.
485 * gdbsupport/common-inferior.h (get_exec_file): Constify result.
486
c0c3707f
CB
4872019-12-16 Christian Biesinger <cbiesinger@google.com>
488
489 * gdbsupport/common-defs.h: Remove workaround for a gnulib bug
490 (we no longer need to include time.h before pathmax.h)
491
d3ecddab
CB
4922019-12-15 Christian Biesinger <cbiesinger@google.com>
493
494 * ada-exp.y (write_ambiguous_var): Update.
495 * coffread.c (process_coff_symbol): Update.
496 * ctfread.c (ctf_add_enum_member_cb): Update.
497 (new_symbol): Update.
498 * dwarf2read.c (fixup_go_packaging): Update.
499 (new_symbol): Update.
500 * language.c (language_alloc_type_symbol): Update.
501 * mdebugread.c (new_symbol): Update.
502 * minsyms.c (minimal_symbol_reader::record_full): Update.
503 * psymtab.c (add_psymbol_to_bcache): Update.
504 * stabsread.c (define_symbol): Update.
505 (read_enum_type): Update.
506 * symtab.c (symbol_set_language): Make this a member function...
507 (general_symbol_info::set_language): ... here.
508 * symtab.h (struct general_symbol_info) <set_language>: New function.
509 (SYMBOL_SET_LANGUAGE): Remove.
510 (symbol_set_language): Remove.
511
c1b5c1eb
CB
5122019-12-15 Christian Biesinger <cbiesinger@google.com>
513
514 * ada-lang.c (ada_add_block_symbols): Update.
515 (ada_collect_symbol_completion_matches): Update.
516 * ax-gdb.c (gen_expr): Update.
517 * block.c (block_lookup_symbol): Update.
518 (block_lookup_symbol_primary): Update.
519 (block_find_symbol): Update.
520 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Update.
521 * dbxread.c (process_one_symbol): Update.
522 * dictionary.c (insert_symbol_hashed): Update.
523 (collate_pending_symbols_by_language): Update.
524 (mdict_add_symbol): Update.
525 * dwarf-index-write.c (write_psymbols): Update.
526 * dwarf2read.c (fixup_go_packaging): Update.
527 * findvar.c (read_var_value): Update.
528 * ft32-tdep.c (ft32_skip_prologue): Update.
529 * go-lang.c (go_symbol_package_name): Update.
530 * language.h (scoped_switch_to_sym_language_if_auto::
531 scoped_switch_to_sym_language_if_auto): Update.
532 * linespec.c (find_method): Update.
533 (find_label_symbols_in_block): Update.
534 * mdebugread.c (parse_symbol): Update.
535 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
536 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
537 (minimal_symbol_reader::install): Update.
538 * moxie-tdep.c (moxie_skip_prologue): Update.
539 * parse.c (parse_exp_in_context): Update.
540 * psymtab.c (psymbol_name_matches): Update.
541 (match_partial_symbol): Update.
542 (lookup_partial_symbol): Update.
543 (psymbol_hash): Update.
544 (psymbol_compare): Update.
545 * python/py-framefilter.c (extract_sym): Update.
546 (py_print_single_arg): Update.
547 * stabsread.c (define_symbol): Update.
548 * stack.c (print_frame_arg): Update.
549 (find_frame_funname): Update.
550 (info_frame_command_core): Update.
551 * symfile.c (set_initial_language): Update.
552 * symtab.c (symbol_set_demangled_name): Update.
553 (symbol_get_demangled_name): Update.
554 (symbol_set_language): Update.
555 (symbol_find_demangled_name): Update.
556 (symbol_set_names): Update.
557 (general_symbol_info::natural_name): Update.
558 (general_symbol_info::demangled_name): Update.
559 (general_symbol_info::search_name): Update.
560 (symbol_matches_search_name): Update.
561 (eq_symbol_entry): Update.
562 (iterate_over_symbols): Update.
563 (completion_list_add_symbol): Update.
564 (completion_list_add_msymbol): Update.
565 (completion_list_add_fields): Update.
566 * symtab.h (struct general_symbol_info) <language>: New function.
567 <language>: Rename to...
568 <m_language>: ...this.
569 (SYMBOL_LANGUAGE): Remove.
570 (MSYMBOL_LANGUAGE): Remove.
571 (struct symbol) <ctor>: Update.
572 * xstormy16-tdep.c (xstormy16_skip_prologue): Update.
573
747cfc8c
CB
5742019-12-15 Christian Biesinger <cbiesinger@google.com>
575
576 * ada-exp.y (write_ambiguous_var): Call symbol_set_language to
577 set the language of sym.
578 * language.c (language_alloc_type_symbol): Likewise.
579
ff8577f6
SDJ
5802019-12-14 Sergio Durigan Junior <sergiodj@redhat.com>
581
582 https://bugzilla.redhat.com/show_bug.cgi?id=1728147
583 PR gdb/23613
584 * bsd-kvm.c (bsd_kvm_target_open): Use 'gdb_abspath'.
585 * corelow.c: Include 'gdbsupport/pathstuff.h'.
586 (core_target_open): Use 'gdb_abspath'.
587 * gdbsupport/pathstuff.c (gdb_abspath): Guard against
588 'current_directory == NULL' case.
589 * gdbsupport/pathstuff.h (gdb_abspath): Expand comment and
590 explain what happens when 'current_directory' is NULL.
591 * go32-nat.c (go32_nat_target::wait): Check if
592 'current_directory' is NULL before call to 'chdir'.
593 * source.c (add_path): Use 'gdb_abspath'.
594 * top.c: Include 'gdbsupport/pathstuff.h'.
595 (init_history): Use 'gdb_abspath'.
596 (set_history_filename): Likewise.
597 * tracefile-tfile.c: Include 'gdbsupport/pathstuff.h'.
598 (tfile_target_open): Use 'gdb_abspath'.
599
234c3068
TT
6002019-12-13 Tom Tromey <tromey@adacore.com>
601
602 * contrib/ari/gdb_ari.sh: Remove check for multiple calls to
603 warning or error.
604
93537683
TT
6052019-12-13 Tom Tromey <tromey@adacore.com>
606
607 * contrib/ari/gdb_ari.sh: Remove call to "fix" for "long long".
608
63456183
TT
6092019-12-13 Tom Tromey <tromey@adacore.com>
610
611 * contrib/ari/gdb_ari.sh: Handle -Wno- prefix.
612
98f9338a
TT
6132019-12-13 Tom Tromey <tromey@adacore.com>
614
615 * contrib/ari/gdb_ari.sh (usage): Use GNU style.
616
3cb5a3a1
TT
6172019-12-13 Tom Tromey <tromey@adacore.com>
618
619 * gdbsupport/common-utils.c (string_printf, string_vprintf)
620 (string_vappendf): Add ARI comment.
621
c6cbf900
TT
6222019-12-13 Tom Tromey <tromey@adacore.com>
623
624 * contrib/ari/gdb_ari.sh: Remove "fix" call for
625 floatformat_to_double.
626 * target-float.c (host_float_ops<T>::from_target): Add ARI
627 comment.
628
036003a6
TT
6292019-12-13 Tom Tromey <tromey@adacore.com>
630
631 * contrib/ari/gdb_ari.sh: Remove "fix" call for abort.
632 * utils.c (abort_with_message, dump_core, internal_vproblem): Add
633 ARI marker to abort.
634 * event-top.c (handle_sigsegv): Add ARI marker to abort.
635
8aaaf757
TT
6362019-12-13 Tom Tromey <tromey@adacore.com>
637
638 * contrib/ari/gdb_ari.sh: Fix floatformat_from_double text.
639
fe56157f
TT
6402019-12-13 Tom Tromey <tromey@adacore.com>
641
642 * contrib/ari/gdb_ari.sh: Remove ATTRIBUTE_UNUSED check.
643
a15a95ed
TT
6442019-12-13 Tom Tromey <tromey@adacore.com>
645
646 * contrib/ari/gdb_ari.sh: Remove "boolean" and "var_boolean"
647 checks.
648
a5513db2
TT
6492019-12-13 Tom Tromey <tromey@adacore.com>
650
651 * gdbsupport/safe-iterator.h (class basic_safe_range) <begin,
652 end>: No longer "const".
653
3a90f266
SM
6542019-12-13 Simon Marchi <simon.marchi@polymtl.ca>
655
656 * jit.c: Fix indentation, replace spaces with tabs where
657 applicable.
658
b3f4b80f
JL
6592019-12-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
660
661 * configure.tgt: Match msp430-*-elf* targets when configuring GDB.
662
e671856c
TT
6632019-12-12 Tom Tromey <tom@tromey.com>
664
665 * objfiles.h (struct objfile) <partial_symtabs>: Now a
666 unique_ptr.
667
7d7167ce
TT
6682019-12-12 Tom Tromey <tom@tromey.com>
669
670 * progspace.h (objfile_list): New typedef.
671 (class unwrapping_objfile_iterator)
672 (struct unwrapping_objfile_range): Newl
673 (struct program_space) <objfiles_range>: Change type.
674 <objfiles>: Change return type.
675 <add_objfile>: Change type of "objfile" parameter.
676 <objfiles_list>: Now a list of shared_ptr.
677 * progspace.c (program_space::add_objfile): Change type of
678 "objfile". Update.
679 (program_space::remove_objfile): Update.
680 * objfiles.h (struct objfile) <~objfile>: Make public.
681 * objfiles.c (objfile::make): Update.
682 (objfile::unlink): Don't call delete.
683
343cc952
TT
6842019-12-12 Tom Tromey <tom@tromey.com>
685
686 * symfile.c (symbol_file_clear): Update.
687 * progspace.h (struct program_space) <free_all_objfiles>: Declare
688 method.
689 * progspace.c (program_space::free_all_objfiles): New method.
690 * objfiles.h (free_all_objfiles): Don't declare.
691 * objfiles.c (free_all_objfiles): Move to program_space.
692
d0801dd8
TT
6932019-12-12 Tom Tromey <tom@tromey.com>
694
695 * progspace.c (program_space::add_objfile)
696 (program_space::remove_objfile): Update.
697 (program_space::multi_objfile_p): Remove.
698 * objfiles.h (struct objfile) <next>: Remove.
699 * objfiles.c (objfile::objfile): Update.
700 (put_objfile_before): Update.
701 (unlink_objfile): Update.
702 * progspace.h (object_files): Remove.
703 (struct program_space) <objfiles_head>: Remove.
704 <objfiles_list>: New member.
705 <objfiles_range, objfiles_safe_range>: Change type.
706 (objfiles): Change return type.
707 (objfiles_safe): Update.
708 (multi_objfile_p): Rewrite and inline.
709 (object_files): Remove macro.
710
13bff726
TT
7112019-12-12 Tom Tromey <tom@tromey.com>
712
713 * gdbsupport/safe-iterator.h (basic_safe_iterator): Simplify. Add
714 second constructor.
715 (basic_safe_range): New class.
716
deeafabb
TT
7172019-12-12 Tom Tromey <tom@tromey.com>
718
719 * progspace.c (program_space::multi_objfile_p): New method.
720 * printcmd.c (info_symbol_command): Update.
721 * maint.c (maintenance_translate_address): Update.
722 * objfiles.h (MULTI_OBJFILE_P): Remove.
723 * progspace.h (struct program_space) <multi_objfile_p>: New
724 method.
725
23452926
TT
7262019-12-12 Tom Tromey <tom@tromey.com>
727
728 * progspace.h (struct program_space) <remove_objfile>: Declare.
729 * progspace.c (program_space::remove_objfile): New method.
730 * objfiles.c (unlink_objfile): Remove.
731 (objfile::unlink): Call remove_objfile.
732 (objfile): Don't call unlink_objfile.
733
7cac64af
TT
7342019-12-12 Tom Tromey <tom@tromey.com>
735
736 * progspace.h (struct program_space) <add_objfile>: Declare
737 method.
738 * progspace.c (program_space::add_objfile): New method.
739 * objfiles.c (~objfile): Don't unlink objfile.
740 (put_objfile_before): Remove.
741 (add_separate_debug_objfile): Don't call put_objfile_before.
742 (objfile::make): Call add_objfile. Set new_objfiles_available on
743 the per-program-space data.
744
268e4f09
TT
7452019-12-12 Tom Tromey <tom@tromey.com>
746
747 * symfile.c (syms_from_objfile_1): Use objfile_up.
748 (syms_from_objfile_1, remove_symbol_file_command): Call unlink
749 method.
750 (reread_symbols): Use objfile_up.
751 * solib.c (update_solib_list, reload_shared_libraries_1): Call
752 unlink method.
753 * objfiles.h (struct objfile) <~objfile>: Now private.
754 <unlink>: New method.
755 (struct objfile_deleter): New.
756 (objfile_up): New typedef.
757 * objfiles.c (objfile::unlink): New method.
758 (free_objfile_separate_debug, free_all_objfiles)
759 (objfile_purge_solibs): Use it.
760 * jit.c (jit_unregister_code): Remove.
761 (jit_inferior_exit_hook, jit_event_handler): Call unlink on
762 objfile.
763 * compile/compile-object-run.c (do_module_cleanup): Call unlink on
764 objfile.
765 * compile/compile-object-load.c (compile_object_load): Use
766 objfile_up.
767
f65fe570
TT
7682019-12-12 Tom Tromey <tom@tromey.com>
769
770 * symfile.c (symbol_file_add_with_addrs): Pass "parent" to
771 objfile::make.
772 * objfiles.h (struct objjfile) <make>: No longer inline.
773 (add_separate_debug_objfile): Don't declare.
774 * objfiles.c (add_separate_debug_objfile): Now static.
775 (objfile::make): Move from objfiles.h. Call
776 add_separate_debug_objfile. Add "parent" parameter.
777
bda13cdc
TT
7782019-12-12 Tom Tromey <tom@tromey.com>
779
780 * symfile.c (symbol_file_add_with_addrs): Use objfile::make.
781 * objfiles.h (struct objfile): Make constructor private.
782 <make>: New static method.
783 * jit.c (jit_object_close_impl): Update.
784
7190276c
SM
7852019-12-12 Simon Marchi <simon.marchi@polymtl.ca>
786
787 * jit.c (jit_reader_try_read_symtab): Replace xmalloc/xfree with
788 gdb::byte_vector.
789
d61df897
TT
7902019-12-12 Tom Tromey <tromey@adacore.com>
791
792 * xml-support.c (xml_fetch_content_from_file): Don't call
793 malloc_failure.
794 * utils.h (class gdb_argv): Remove malloc_failure comment.
795 * utils.c (gdb_argv::reset): Don't call malloc_failure.
796
db3ad2f0
TT
7972019-12-12 Tom Tromey <tromey@adacore.com>
798
799 * Makefile.in (ALL_TARGET_OBS): Add riscv-ravenscar-thread.o.
800 (HFILES_NO_SRCDIR): Add riscv-ravenscar-thread.h.
801 (ALLDEPFILES): Add riscv-ravenscar-thread.c.
802 * configure.tgt (riscv-*-*): Add riscv-ravenscar-thread.o.
803 * riscv-ravenscar-thread.c: New file.
804 * riscv-ravenscar-thread.h: New file.
805 * riscv-tdep.c (riscv_gdbarch_init): Call
806 register_riscv_ravenscar_ops.
807
2ffe5b9c
TT
8082019-12-12 Tom Tromey <tromey@adacore.com>
809
810 * gdbsupport/thread-pool.c (set_thread_name): Use
811 ATTRIBUTE_UNUSED.
812
39f34d7b
LM
8132019-12-12 Luis Machado <luis.machado@linaro.org>
814
815 * gdbsupport/safe-strerror.c: Don't include diagnostics.h.
816 (select_strerror_r): Use ATTRIBUTE_UNUSED instead of the diagnostics
817 macros.
818
d4eeccfe
TT
8192019-12-11 Tom Tromey <tom@tromey.com>
820
821 * tui/tui-win.c (tui_set_win_height_command): Call
822 tui_adjust_window_height.
823 (tui_adjust_win_heights, new_height_ok): Remove.
824 * tui/tui-layout.h (tui_adjust_window_height): Declare.
825 * tui/tui-layout.c (tui_adjust_window_height): New function.
826
3d979945
TT
8272019-12-11 Tom Tromey <tom@tromey.com>
828
829 * tui/tui-win.c (tui_resize_all): Remove code, call
830 tui_apply_current_layout.
831
2192a9d3
TT
8322019-12-11 Tom Tromey <tom@tromey.com>
833
834 * tui/tui-layout.h (tui_apply_current_layout): Declare.
835 * tui/tui-layout.c (standard_layouts, applied_layout): New
836 globals.
837 (tui_apply_current_layout): New function.
838 (show_layout): Set applied_layout. Call
839 tui_apply_current_layout.
840 (show_source_command, show_disasm_command)
841 (show_source_disasm_command, show_data)
842 (show_source_or_disasm_and_command): Remove.
843 (initialize_layouts): New function.
844 (_initialize_tui_layout): Call initialize_layouts.
845
389e7ddb
TT
8462019-12-11 Tom Tromey <tom@tromey.com>
847
848 * tui/tui-layout.h (class tui_layout_base)
849 (class tui_layout_window, class tui_layout_split): New.
850 * tui/tui-layout.c (tui_get_window_by_name)
851 (tui_layout_window::clone, tui_layout_window::apply)
852 (tui_layout_window::get_sizes, tui_layout_window::add_split)
853 (tui_layout_split::add_window, tui_layout_split::clone)
854 (tui_layout_split::get_sizes)
855 (tui_layout_split::set_weights_from_heights)
856 (tui_layout_split::adjust_size, tui_layout_split::apply): New
857 functions.
858 (tui_layout_split::add_split, tui_layout_split::add_split)
859 (tui_layout_split::set_weights_from_heights)
860 (tui_layout_split::set_weights_from_heights): New functions.
861
fb3184d8
TT
8622019-12-11 Tom Tromey <tom@tromey.com>
863
864 * tui/tui-wingeneral.c (tui_gen_win_info::make_window): Update.
865 * tui/tui-win.c (tui_adjust_win_heights, tui_resize_all): Update.
866 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
867 * tui/tui-data.h (struct tui_point): Remove.
868 (struct tui_gen_win_info) <origin>: Remove.
869 <x, y>: New fields.
870 * tui/tui-command.c (tui_cmd_window::resize): Update.
871
dc7ff8a6
TT
8722019-12-11 Tom Tromey <tom@tromey.com>
873
874 * tui/tui-stack.h (struct tui_locator_window) <min_height>:
875 Implement.
876 * tui/tui-regs.h (struct tui_data_item_window) <min_height>:
877 Implement.
878 * tui/tui-data.h (struct tui_gen_win_info) <min_height>: New
879 method.
880 (struct tui_win_info) <min_height>: Implement.
881
1431937b
TT
8822019-12-11 Tom Tromey <tom@tromey.com>
883
884 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
885 (struct tui_win_info) <can_box>: Update.
886
c8ec2f43
TT
8872019-12-11 Tom Tromey <tom@tromey.com>
888
889 * tui/tui-stack.h (struct tui_locator_window) <max_height>: New
890 method.
891 * tui/tui-regs.h (struct tui_data_item_window) <max_height>: New
892 method.
893 * tui/tui-data.h (struct tui_gen_win_info) <max_height>: New
894 method.
895 (struct tui_win_info) <max_height>: Now override.
896
4decd62b
JB
8972019-12-11 Joel Brobecker <brobecker@adacore.com>
898
899 * NEWS: Create a new section for the next release branch.
900 Rename the section of the current branch, now that it has
901 been cut.
902
d746744e
JB
9032019-12-11 Joel Brobecker <brobecker@adacore.com>
904
905 GDB 9 branch created (27f7b2f64062ac9e52afc60509263c2702a9ebd0):
906 * version.in: Bump version to 10.0.50.DATE-git.
907
2e744276
TT
9082019-12-11 Tom Tromey <tromey@adacore.com>
909
910 PR build/25268:
911 * gdbsupport/thread-pool.c (set_thread_name): New function.
912 (thread_pool::set_thread_count): Don't call pthread_setname_np.
913 (thread_pool::thread_function): Call set_thread_name.
914
aac4760f
TT
9152019-12-11 Tom Tromey <tromey@adacore.com>
916
917 * fbsd-tdep.c (fbsd_core_info_proc_status): Cast result of
918 bfd_get_signed_8.
919
d8edc8b7
PW
9202019-12-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
921
922 * NEWS: Document -raw-values option and the related setting commands.
923 * printcmd.c (print_command_parse_format): Do not set opts->raw off,
924 only set it on when /r is given.
925 * valprint.c (value_print_option_defs): New element raw-values.
926 * Makefile.in: Add the new file.
927
cb511130
CB
9282019-12-10 Christian Biesinger <cbiesinger@google.com>
929
930 * gdbsupport/safe-strerror.c: Supress the unused function warning
931 for select_strerror_r.
932
ab7d13f0
CB
9332019-12-10 Christian Biesinger <cbiesinger@google.com>
934
935 * config.in: Regenerate.
936 * configure: Regenerate.
937 * gdbsupport/agent.c (gdb_connect_sync_socket): Call
938 safe_strerror instead of strerror.
939 * gdbsupport/common.m4: Don't check for strerror.
940 * gdbsupport/safe-strerror.c: Support both the glibc version
941 of strerror_r and the XSI version.
942
6c71eb7d
TT
9432019-12-10 Tom Tromey <tromey@adacore.com>
944
945 * ada-typeprint.c (print_choices): Use a single "?".
946 (print_variant_part): Print "?" if the discriminant name
947 is not known.
948
bac7c5cf
GB
9492019-12-10 George Barrett <bob@bob131.so>
950
951 Fix scripted probe breakpoints.
952 * breakpoint.c (tracepoint_probe_breakpoint_ops): Move
953 declaration forward.
954 (breakpoint_ops_for_event_location_type)
955 (breakpoint_ops_for_event_location): Add function definitions.
956 (break_command_1, trace_command): Use
957 breakpoint_ops_for_event_location.
958 * breakpoint.h (breakpoint_ops_for_event_location): Add function
959 declarations.
960 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Use
961 breakpoint_ops_for_event_location.
962 * python/py-breakpoint.c (bppy_init): Use
963 breakpoint_ops_for_event_location.
964
330f1d38
TBA
9652019-12-09 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
966
967 * gdbtypes.c (rank_one_type): Return INCOMPATIBLE_TYPE_BADNESS
968 when ranking an lvalue argument for an rvalue parameter.
969
b1f0c0b9
WA
9702019-12-08 Wataru Ashihara <wataash@wataash.com>
971
972 * darwin-nat.c (darwin_nat_target::create_inferior): Fix
973 template argument for scoped_restore_tmpl from bool to int.
974
aa2d5a42
KS
9752019-12-07 Keith Seitz <keiths@redhat.com>
976
977 * build-id.c (build_id_bfd_get): Permit bfd_core, too.
978 (build_id_to_debug_bfd): Make static, rewriting to use
979 build_id_to_bfd_suffix.
980 (build_id_to_bfd_suffix): Copy of build_id_to_debug_bfd,
981 adding `suffix' parameter. Append SUFFIX to file names
982 when searching for matching files.
983 (build_id_to_debug_bfd): Use build_id_to_bfd_suffix.
984 (build_id_to_exec_bfd): Likewise.
985 * build-id.h (build_id_to_debug_bfd): Clarify that function
986 searches for BFD of debug info file.
987 (build_id_to_exec_bfd): Declare.
988 * corelow.c: Include build-id.h.
989 (locate_exec_from_corefile_build_id): New function.
990 (core_target_open): If no executable BFD is found,
991 search for a core file BFD using build-id.
992
dfb65191
CB
9932019-12-06 Christian Biesinger <cbiesinger@google.com>
994
995 * bcache.c: Put in namespace gdb.
996 * bcache.h: Likewise.
997 * gdbtypes.c (check_types_worklist): Update.
998 (types_deeply_equal): Update.
999 * macrotab.c (struct macro_table) <bcache>: Update.
1000 (new_macro_table): Update.
1001 * macrotab.h (struct bcache): Put this forward declaration
1002 inside namespace gdb.
1003 (new_macro_table): Update.
1004 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache>:
1005 Update.
1006 <macro_cache>: Update.
1007 * psymtab.h: (psymtab_storage) <psymbol_cache>: Update.
1008
93e55f0a
TV
10092019-12-06 Tom de Vries <tdevries@suse.de>
1010
1011 PR symtab/24971
1012 * block.c (best_symbol, better_symbol): New function.
1013 (block_lookup_symbol_primary, block_lookup_symbol): Prefer def over
1014 decl.
1015
06acc08f
TBA
10162019-12-06 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1017
1018 * gdbtypes.h: Define the REFERENCE_SEE_THROUGH_BADNESS value.
1019 * gdbtypes.c (rank_one_type): Use REFERENCE_SEE_THROUGH_BADNESS
1020 for ranking see-through reference cases.
1021
e0fad1ea
PW
10222019-12-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1023 * stack.c (faas_command): Check a command is provided.
1024 * thread.c (taas_command, tfaas_command): Likewise.
1025
908641f5
PW
10262019-12-05 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1027 * inferior.c (prune_inferiors): Only call delete_inferior,
1028 Do not modify the inferior list.
1029
b858499d
SM
10302019-12-05 Simon Marchi <simon.marchi@polymtl.ca>
1031
1032 * c-exp.y: Update calls to lookup_typename,
1033 lookup_signed_typename and lookup_unsigned_typename.
1034 * c-lang.c (evaluate_subexp_c): Likewise.
1035 * cp-namespace.c (cp_lookup_symbol_imports_or_template):
1036 Likewise.
1037 * eval.c (binop_promote): Likewise.
1038 * gdbtypes.c (lookup_typename): Remove gdbarch parameter.
1039 (lookup_unsigned_typename): Likewise.
1040 (lookup_signed_typename): Likewise.
1041 * gdbtypes.h (lookup_unsigned_typename): Likewise.
1042 (lookup_signed_typename): Likewise.
1043 (lookup_typename): Likewise.
1044 * guile/scm-type.c (tyscm_lookup_typename): Update calls to
1045 lookup_typename, lookup_signed_typename,
1046 lookup_unsigned_typename.
1047 * m2-exp.y: Likewise.
1048 * printcmd.c (printf_wide_c_string): Likewise.
1049 (ui_printf): Likewise.
1050 * python/py-type.c (typy_lookup_typename): Likewise.
1051 * python/py-xmethods.c (python_xmethod_worker::invoke):
1052 Likewise.
1053 * rust-exp.y: Likewise.
1054
3a8fa228
CB
10552019-12-04 Christian Biesinger <cbiesinger@google.com>
1056
1057 * configure.nat (obsd64): Add missing files x86-nat.o and
1058 nat/x86-dregs.o.
1059
2dbc041e
TT
10602019-12-04 Tom Tromey <tom@tromey.com>
1061
1062 * valprint.c (val_print_string): Use metadata_style.
1063 * go-valprint.c (print_go_string): Use metadata style.
1064 * p-valprint.c (pascal_object_print_static_field): Use metadata
1065 style.
1066 * cp-valprint.c (cp_print_static_field): Use metadata style.
1067
36c8fb93
AB
10682019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
1069 Chris January <chris.january@arm.com>
1070
1071 * f-exp.y (COMPLEX_KEYWORD, SINGLE, DOUBLE, PRECISION): New
1072 tokens.
1073 (typebase): New patterns for complex, single/double precision, and
1074 single/double complex.
1075 (f77_keywords): Change token for complex keyword, and add single,
1076 double, and precision keywords.
1077
c6170c2c
SM
10782019-12-04 Simon Marchi <simon.marchi@polymtl.ca>
1079
1080 * avr-tdep.c (_initialize_avr_tdep): Improve help of command
1081 "info io_registers".
1082
894ecaf4
SM
10832019-12-04 Simon Marchi <simon.marchi@polymtl.ca>
1084
1085 * regcache.c (cooked_read_test): Initialize thread list of
1086 mock_inferior.
1087
be155ebb
SM
10882019-12-04 Simon Marchi <simon.marchi@polymtl.ca>
1089
1090 * aarch64-linux-tdep.c: Remove includes.
1091
c577cdd7
SM
10922019-12-04 Simon Marchi <simon.marchi@polymtl.ca>
1093
1094 * aarch64-tdep.c: Remove includes.
1095
610cfd61
SM
10962019-12-04 Simon Marchi <simon.marchi@efficios.com>
1097
1098 * filtered-iterator.h (filtered_iterator) <operator==,
1099 operator!=>: Compare wrapped iterators, not wrapped pointers.
1100 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1101 unittests/filtered_iterator-selftests.c.
1102 * unittests/filtered_iterator-selftests.c: New file.
1103
a05cf17a
TT
11042019-12-04 Tom Tromey <tromey@adacore.com>
1105
1106 * gdbtypes.c (create_range_type): Inherit endianity
1107 from base type.
1108
d5a22e77
TT
11092019-12-04 Tom Tromey <tromey@adacore.com>
1110
1111 * ada-lang.c (decode_constrained_packed_array)
1112 (ada_value_assign, value_assign_to_component): Update.
1113 * dwarf2loc.c (rw_pieced_value, access_memory)
1114 (dwarf2_compile_expr_to_ax): Update.
1115 * dwarf2read.c (dwarf2_add_field): Update.
1116 * eval.c (evaluate_subexp_standard): Update.
1117 * gdbarch.c, gdbarch.h: Rebuild.
1118 * gdbarch.sh (bits_big_endian): Remove.
1119 * gdbtypes.h (union field_location): Update comment.
1120 * target-descriptions.c (make_gdb_type): Update.
1121 * valarith.c (value_bit_index): Update.
1122 * value.c (struct value) <bitpos>: Update comment.
1123 (unpack_bits_as_long, modify_field): Update.
1124 * value.h (value_bitpos): Update comment.
1125
7ab4a236
TT
11262019-12-04 Tom Tromey <tromey@adacore.com>
1127
1128 * gdbtypes.c (type_byte_order): Move earlier. Assert for unknown
1129 endian-ness.
1130
103a685e
TT
11312019-12-04 Tom Tromey <tromey@adacore.com>
1132
1133 * dwarf2read.c (dwarf2_init_float_type)
1134 (dwarf2_init_complex_target_type): Add byte_order parameter.
1135 (read_base_type): Compute byte order earlier.
1136 * gdbtypes.c (init_float_type): Add byte_order parameter.
1137 * gdbtypes.h (init_float_type): Add byte_order parameter.
1138
7a9e9f9f
TT
11392019-12-04 Tom Tromey <tromey@adacore.com>
1140
1141 * unittests/tui-selftests.c: Conditionally include tui-winsource.h.
1142
feee869b
TT
11432019-12-04 Tom Tromey <tromey@adacore.com>
1144
1145 * dwarf2read.c (process_structure_scope): Initialize
1146 "discr_offset".
1147
c2512106
AB
11482019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
1149
1150 * mi/mi-symbol-cmds.c (mi_symbol_info): Take extra parameter, and
1151 add it into the search spec.
1152 (parse_max_results_option): New function.
1153 (mi_info_functions_or_variables): Parse -max-results flag and pass
1154 it to mi_symbol_info.
1155 (mi_cmd_symbol_info_modules): Likewise.
1156 (mi_cmd_symbol_info_types): Likewise.
1157 * symtab.c (global_symbol_searcher::add_matching_symbols): Change
1158 return type to bool, change result container into a set, and don't
1159 add new results if we have enough already.
1160 (global_symbol_searcher::add_matching_msymbols): Change return
1161 type to bool, and don't add new results if we have enough already.
1162 (sort_search_symbols_remove_dups): Delete.
1163 (global_symbol_searcher::search): Early exit from search loop when
1164 we have enough results. Use a std::set to collect the results
1165 from calling add_matching_symbols.
1166 * symtab.h (global_symbol_searcher) <set_max_seach_results>: New
1167 member function.
1168 (global_symbol_searcher) <m_max_search_results>: New member
1169 variable.
1170 (global_symbol_searcher) <add_matching_symbols>: Update header
1171 comment and change return type to bool.
1172 (global_symbol_searcher) <add_matching_msymbols>: Update header
1173 comment and change return type to bool.
1174
f97a63c5
AB
11752019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
1176
1177 * symtab.c (symbol_search::compare_search_syms): Update header
1178 comment.
1179 (global_symbol_searcher::is_suitable_msymbol): New function.
1180 (global_symbol_searcher::expand_symtabs): New function.
1181 (global_symbol_searcher::add_matching_symbols): New function.
1182 (global_symbol_searcher::add_matching_msymbols): New function.
1183 (global_symbol_searcher::search): Move most of the content
1184 into the new functions above, and call them as needed.
1185 * symtab.h (global_symbol_searcher) <expand_symtabs>: New member
1186 function.
1187 (global_symbol_searcher) <add_matching_symbols>: New member
1188 function.
1189 (global_symbol_searcher) <add_matching_msymbols>: New member
1190 function.
1191 (global_symbol_searcher) <is_suitable_msymbol>: New member
1192 function.
1193
293b38d6
AB
11942019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
1195
1196 * mi/mi-cmds.c (mi_cmds): Add -symbol-info-module-functions and
1197 -symbol-info-module-variables entries.
1198 * mi/mi-cmds.h (mi_cmd_symbol_info_module_functions): Declare.
1199 (mi_cmd_symbol_info_module_variables): Declare.
1200 * mi/mi-symbol-cmds.c
1201 (module_symbol_search_iterator): New typedef.
1202 (output_module_symbols_in_single_module_and_file): New function.
1203 (output_module_symbols_in_single_module): New function.
1204 (mi_info_module_functions_or_variables): New function.
1205 (mi_cmd_symbol_info_module_functions): New function.
1206 (mi_cmd_symbol_info_module_variables): New function.
1207 * NEWS: Mention new MI command.
1208
4cbd39b2
CB
12092019-12-03 Christian Biesinger <cbiesinger@google.com>
1210
1211 * bcache.c (hash): Remove.
1212 (hash_continue): Remove.
1213 * bcache.h (hash): Remove.
1214 (hash_continue): Remove.
1215 (struct bcache) <ctor>: Update.
1216 * psymtab.c (psymbol_hash): Update.
1217 * stabsread.c (hashname): Update.
1218 * utils.h (fast_hash): Add an argument for a start value,
1219 defaulting to zero.
1220
82f910ea
PW
12212019-12-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1222 * symtab.c (symbol_cache_clear_slot): Move close to cleared type.
1223 (destroy_block_symbol_cache): New function.
1224 (symbol_cache:~symbol_cache) Call destroy_block_symbol_cache.
1225 (resize_symbol_cache): Likewise.
1226
de2396d0
TT
12272019-12-02 Tom Tromey <tom@tromey.com>
1228
1229 * unittests/tui-selftests.c (run_tests): Make conditional.
1230 (_initialize_tui_selftest): Make conditional.
1231
638d85bc
CB
12322019-12-02 Christian Biesinger <cbiesinger@google.com>
1233
1234 * aix-thread.c (debug_aix_thread): Change type to bool.
1235
7532a164
LM
12362019-12-02 Luis Machado <luis.machado@linaro.org>
1237
1238 * infrun.c (follow_fork_inferior): Remove outdated FIXME comment.
1239
216a7e6b
AB
12402019-12-01 Andrew Burgess <andrew.burgess@embecosm.com>
1241
1242 * dwarf2read.c (read_tag_string_type): Read the fields required to
1243 make a dynamic string, and possibly create a dynamic range for the
1244 string.
1245 (attr_to_dynamic_prop): Setup is_reference based on the type of
1246 attribute being processed.
1247 * gdbtypes.c (is_dynamic_type_internal): Handle TYPE_CODE_STRING.
1248 (resolve_dynamic_array): Rename to...
1249 (resolve_dynamic_array_or_string): ...this, update header comment,
1250 and accept TYPE_CODE_STRING.
1251 (resolve_dynamic_type_internal): Handle TYPE_CODE_STRING.
1252
11a8b164
AB
12532019-12-01 Andrew Burgess <andrew.burgess@embecosm.com>
1254
1255 * dwarf2read.c (dwarf2_per_cu_int_type): New function, takes most
1256 of its implementation from...
1257 (dwarf2_per_cu_addr_sized_int_type): ...here, which now just calls
1258 the new function.
1259
5bbd8269
AB
12602019-12-01 Andrew Burgess <andrew.burgess@embecosm.com>
1261
1262 * dwarf2read.c (read_subrange_type): Read bit and byte stride and
1263 create a range with stride where appropriate.
1264 * f-valprint.c: Include 'gdbarch.h'.
1265 (f77_print_array_1): Take the stride into account when walking the
1266 array. Also convert the stride into addressable units.
1267 * gdbtypes.c (create_range_type): Initialise the stride to
1268 constant zero.
1269 (create_range_type_with_stride): New function, initialise the
1270 range as normal, and then setup the stride.
1271 (has_static_range): Include the stride here. Also change the
1272 return type to bool.
1273 (create_array_type_with_stride): Consider the range stride if the
1274 array isn't given its own stride.
1275 (resolve_dynamic_range): Resolve the stride if needed.
1276 * gdbtypes.h (struct range_bounds) <stride>: New member variable.
1277 (struct range_bounds) <flag_is_byte_stride>: New member variable.
1278 (TYPE_BIT_STRIDE): Define.
1279 (TYPE_ARRAY_BIT_STRIDE): Define.
1280 (create_range_type_with_stride): Declare.
1281 * valarith.c (value_subscripted_rvalue): Take range stride into
1282 account when walking the array.
1283
82e3b564
TT
12842019-12-01 Tom Tromey <tom@tromey.com>
1285
1286 * tui/tui-win.c (tui_all_windows_info): Treat inactive TUI
1287 specially.
1288
517d261d
TT
12892019-12-01 Tom Tromey <tom@tromey.com>
1290
1291 * tui/tui-winsource.c (tui_copy_source_line): Don't advance past
1292 \0.
1293 * unittests/tui-selftests.c: New file.
1294 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add tui-selftests.c.
1295
484c9b64
TT
12962019-12-01 Tom Tromey <tom@tromey.com>
1297
1298 * tui/tui.c (tui_enable): Call tui_update_variables earlier.
1299
a2a7af0c
TT
13002019-12-01 Tom Tromey <tom@tromey.com>
1301
1302 * NEWS: Document new settings.
1303 * tui/tui-wingeneral.c (box_win): Apply appropriate border style.
1304 * tui/tui-win.c (_initialize_tui_win): Add border style
1305 observers.
1306 * tui/tui-io.h (tui_apply_style): Declare.
1307 * tui/tui-io.c (tui_apply_style): Rename from apply_style. No
1308 longer static.
1309 (apply_ansi_escape, tui_set_reverse_mode): Update.
1310 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
1311 Add "skip_intensity" parameter.
1312 <changed>: New member.
1313 <do_set_value>: Declare.
1314 (tui_border_style, tui_active_border_style): Declare.
1315 * cli/cli-style.c (tui_border_style, tui_active_border_style): New
1316 globals.
1317 (cli_style_option): Initialize "changed".
1318 (cli_style_option::do_set_value): New function.
1319 (cli_style_option::add_setshow_commands): Add "skip_intensity"
1320 parameter. Update.
1321 (STYLE_ADD_SETSHOW_COMMANDS): Add "SKIP" parameter.
1322 (_initialize_cli_style): Update. Create TUI border style
1323 commands.
1324
d1da6b01
TT
13252019-12-01 Tom Tromey <tom@tromey.com>
1326
1327 * tui/tui-winsource.h (tui_copy_source_line): Add "ndigits"
1328 parameter.
1329 * tui/tui-winsource.c (tui_copy_source_line): Add "ndigits"
1330 parameter.
1331 * tui/tui-win.h (compact_source): Declare.
1332 * tui/tui-win.c (compact_source): New global.
1333 (tui_set_compact_source, tui_show_compact_source): New functions.
1334 (_initialize_tui_win): Add "compact-source" setting.
1335 * tui/tui-source.c (tui_source_window::set_contents): Handle
1336 compact_source setting.
1337 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
1338 * NEWS: Document new setting.
1339
489dbda6
TT
13402019-11-30 Tom Tromey <tom@tromey.com>
1341
1342 * dwarf2read.c (dwarf2_add_field): Include field offset when
1343 computing variant part length.
1344
bf498525
PW
13452019-11-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1346 * NEWS: Mention define-prefix. Tell that command names can now
1347 contain a . character.
1348
be09caf1
PW
13492019-11-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1350
1351 * command.h (valid_cmd_char_p): Declare.
1352 * cli/cli-decode.c (valid_cmd_char_p): New function factorizing
1353 the check of valid command char.
1354 (find_command_name_length, valid_user_defined_cmd_name_p): Use
1355 valid_cmd_char_p.
1356 * cli/cli-script.c (validate_comname): Likewise.
1357 * completer.c (gdb_completer_command_word_break_characters):
1358 Do not remove . from the word break char, update comments.
1359 (complete_line_internal_1): Use valid_cmd_char_p.
1360 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
1361 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
1362
c6ac7fc9
PW
13632019-11-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1364
1365 * cli/cli-script.c (do_define_command): Ensure a redefined
1366 prefix command is kept as a prefix command.
1367 (define_prefix_command): New function.
1368 (show_user_1): Report user defined prefixes.
1369 (_initialize_cli_script): Create the new 'define-prefix' command.
1370 Add completers for 'define' and 'document'.
1371 * top.c (execute_command): If command is a user-defined prefix only
1372 command, report the list of commands for this prefix command.
1373
a992a3b0
TBA
13742019-11-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1375
1376 * valops.c (find_oload_champ): Improve debug output.
1377
e9194a1a
TBA
13782019-11-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1379
1380 * valops.c (find_oload_champ): Print part of debug messages
1381 before the badness vector is std::move'd.
1382
53a008a6
TT
13832019-11-28 Tom Tromey <tom@tromey.com>
1384
1385 * value.c (creal_internal_fn): Fix comment.
1386
bab05c83
TT
13872019-11-28 Tom Tromey <tom@tromey.com>
1388
1389 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count,
1390 flag_bound_evaluated>: Now unsigned.
1391
2522f049
TT
13922019-11-28 Tom Tromey <tom@tromey.com>
1393
1394 * guile/guile-internal.h (vlscm_scm_from_value_unsafe): Don't
1395 declare.
1396
38b49e22
MS
13972019-11-28 Mihails Strasuns <mihails.strasuns@intel.com>
1398
1399 * jit.c (jit_bfd_try_read_symtab): Fix printed function name in the
1400 debug output.
1401 * jit.c (jit_unregister_code): Add debug print to match
1402 `jit_register_code`.
1403
35125921
CB
14042019-11-27 Christian Biesinger <cbiesinger@google.com>
1405
1406 * NEWS: Mention the new multithreaded symbol loading.
1407
62e77f56
CB
14082019-11-27 Christian Biesinger <cbiesinger@google.com>
1409
1410 * maint.c (n_worker_threads): Default to 0.
1411 (worker_threads_disabled): New function.
1412 * maint.h (worker_threads_disabled): New function.
1413 * minsyms.c (minimal_symbol_reader::record_full): Call symbol_set_names
1414 here if worker_threads_disabled () is true.
1415 (minimal_symbol_reader::install): Skip all threading if
1416 worker_threads_disabled () is true.
1417
f29d7f6b
CB
14182019-11-27 Christian Biesinger <cbiesinger@google.com>
1419
1420 * minsyms.c (add_minsym_to_hash_table): Use a previously computed
1421 hash code if possible.
1422 (add_minsym_to_demangled_hash_table): Likewise.
1423 (minimal_symbol_reader::install): Compute the hash codes for msymbol
1424 on the background thread.
1425 * symtab.h (struct minimal_symbol) <hash_value, demangled_hash_value>:
1426 Add these fields.
1427
e76b2246
CB
14282019-11-27 Christian Biesinger <cbiesinger@google.com>
1429
1430 * minsyms.c (minimal_symbol_reader::install): Also compute the hash
1431 of the mangled name on the background thread.
1432 * symtab.c (symbol_set_names): Allow passing in the hash of the
1433 linkage_name.
1434 * symtab.h (symbol_set_names): Likewise.
1435
8d9a2568
KB
14362019-11-27 Kevin Buettner <kevinb@redhat.com>
1437
1438 * dwarf2read.c (inherit_abstract_dies): Ensure that delayed
1439 physnames are computed for inherited DIEs.
1440
fad03f6e
TT
14412019-11-27 Tom Tromey <tromey@adacore.com>
1442
1443 * dwarf2read.h (struct dwarf2_per_objfile): Remove unnecessary
1444 backslashes.
1445 * cp-support.c: Remove unnecessary backslashes.
1446
43678b0a
CB
14472019-11-27 Christian Biesinger <cbiesinger@google.com>
1448
1449 * ada-exp.y (write_ambiguous_var): Replace SYMBOL_SET_LINKAGE_NAME
1450 with sym->set_linkage_name.
1451 * coffread.c (coff_read_enum_type): Likewise.
1452 * mdebugread.c (parse_symbol): Likewise.
1453 * stabsread.c (patch_block_stabs): Likewise.
1454 (define_symbol): Likewise.
1455 (read_enum_type): Likewise.
1456 (common_block_end): Likewise.
1457 * symtab.h (struct general_symbol_info) <set_linkage_name>: New
1458 function.
1459 (SYMBOL_SET_LINKAGE_NAME): Remove.
1460 * xcoffread.c (process_xcoff_symbol): Replace SYMBOL_SET_LINKAGE_NAME
1461 with sym->set_linkage_name.
1462
db5960b4
AB
14632019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
1464
1465 * mi/mi-cmds.c (mi_cmds): Add 'symbol-info-modules' entry.
1466 * mi/mi-cmds.h (mi_cmd_symbol_info_modules): Declare.
1467 * mi/mi-symbol-cmds.c (mi_cmd_symbol_info_modules): New function.
1468 * NEWS: Mention new MI command.
1469
7dc42066
AB
14702019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
1471
1472 * mi/mi-cmds.c (mi_cmds): Add '-symbol-info-functions',
1473 '-symbol-info-types', and '-symbol-info-variables'.
1474 * mi/mi-cmds.h (mi_cmd_symbol_info_functions): Declare.
1475 (mi_cmd_symbol_info_types): Declare.
1476 (mi_cmd_symbol_info_variables): Declare.
1477 * mi/mi-symbol-cmds.c: Add 'source.h' and 'mi-getopt.h' includes.
1478 (output_debug_symbol): New function.
1479 (output_nondebug_symbol): New function.
1480 (mi_symbol_info): New function.
1481 (mi_info_functions_or_variables): New function.
1482 (mi_cmd_symbol_info_functions): New function.
1483 (mi_cmd_symbol_info_types): New function.
1484 (mi_cmd_symbol_info_variables): New function.
1485 * NEWS: Mention new commands.
1486
5f512a7d
AB
14872019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
1488
1489 * symtab.c (symbol_to_info_string): New function, most content
1490 moved from print_symbol_info, but updated to return a std::string.
1491 (print_symbol_info): Update to use symbol_to_info_string and print
1492 returned string.
1493 * symtab.h (symbol_to_info_string): Declare new function.
1494
470c0b1c
AB
14952019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
1496
1497 * python/python.c (gdbpy_rbreak): Convert to using
1498 global_symbol_searcher.
1499 * symtab.c (file_matches): Convert return type to bool, change
1500 file list to std::vector, update header comment.
1501 (search_symbols): Rename to...
1502 (global_symbol_searcher::search): ...this and update now its
1503 a member function of global_symbol_searcher. Take account of the
1504 changes to file_matches.
1505 (symtab_symbol_info): Convert to using global_symbol_searcher.
1506 (rbreak_command): Likewise.
1507 (search_module_symbols): Likewise.
1508 * symtab.h (enum symbol_search): Update comment.
1509 (search_symbols): Remove declaration.
1510 (class global_symbol_searcher): New class.
1511
57357d9d
TT
15122019-11-26 Tom Tromey <tromey@adacore.com>
1513
1514 * cp-support.c (_initialize_cp_support): Conditionally initialize
1515 gdb_demangle_attempt_core_dump.
1516
3ea16160
TT
15172019-11-26 Tom Tromey <tom@tromey.com>
1518
1519 * python/py-function.c (fnpy_init): Update.
1520 * value.h (add_internal_function): Adjust declaration.
1521 * value.c (function_destroyer): Remove.
1522 (do_add_internal_function): Don't set destroyer or copy name.
1523 (add_internal_function): Take unique_xmalloc_ptr<char> for name.
1524 Set name_allocated.
1525 * python/py-cmd.c (cmdpy_destroyer): Don't free "name".
1526 (cmdpy_init): Set name_allocated.
1527 * cli/cli-decode.h (struct cmd_list_element) <name_allocated>: New
1528 member.
1529 (~cmd_list_element): Free "name" if needed.
1530
1a6d41c6
TT
15312019-11-26 Tom Tromey <tom@tromey.com>
1532
1533 * value.h (add_internal_function): Add new overload. Move
1534 documentation from value.h.
1535 * value.c (do_add_internal_function): New function.
1536 (add_internal_function): Use it. Add new overload.
1537 (function_destroyer): Don't free doc.
1538 * python/py-function.c (fnpy_init): Update.
1539
8318f3c3
TT
15402019-11-26 Tom Tromey <tom@tromey.com>
1541
1542 * python/py-cmd.c (cmdpy_destroyer): Don't free "doc".
1543 (cmdpy_init): Set "doc_allocated".
1544
4da8c3a8
TT
15452019-11-26 Tom Tromey <tom@tromey.com>
1546
1547 * gdbsupport/thread-pool.c (thread_pool::set_thread_count): Set
1548 name of worker thread.
1549 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for
1550 pthread_setname_np.
1551 * configure, config.in: Rebuild.
1552
971db5e2
TT
15532019-11-26 Tom Tromey <tom@tromey.com>
1554
1555 * python/python.c (class gdbpy_gil): New.
1556 (struct gdbpy_event): Add constructor, destructor, operator().
1557 (gdbpy_post_event): Use run_on_main_thread.
1558 (gdbpy_initialize_events): Remove.
1559 (do_start_initialization): Update.
1560
22138db6
TT
15612019-11-26 Tom Tromey <tom@tromey.com>
1562
1563 * NEWS: Add entry.
1564 * maint.c (_initialize_maint_cmds): Add "worker-threads" maint
1565 commands. Call update_thread_pool_size.
1566 (update_thread_pool_size, maintenance_set_worker_threads): New
1567 functions.
1568 (n_worker_threads): New global.
1569
d55c9a68
TT
15702019-11-26 Christian Biesinger <cbiesinger@google.com>
1571 Tom Tromey <tom@tromey.com>
1572
1573 * minsyms.c (minimal_symbol_reader::install): Use
1574 parallel_for_each.
1575 * gdbsupport/parallel-for.h: New file.
1576 * Makefile.in (HFILES_NO_SRCDIR): Add gdbsupport/parallel-for.h.
1577
a0b57563
CB
15782019-11-26 Christian Biesinger <cbiesinger@google.com>
1579 Tom Tromey <tom@tromey.com>
1580
1581 * gdbsupport/thread-pool.h: New file.
1582 * gdbsupport/thread-pool.c: New file.
1583 * Makefile.in (COMMON_SFILES): Add thread-pool.c.
1584 (HFILES_NO_SRCDIR): Add thread-pool.h.
1585
3b3978bc
TT
15862019-11-26 Tom Tromey <tom@tromey.com>
1587
1588 * event-top.h (thread_local_segv_handler): Declare.
1589 * event-top.c (thread_local_segv_handler): New global.
1590 (install_handle_sigsegv, handle_sigsegv): New functions.
1591 (async_init_signals): Install SIGSEGV handler.
1592 * cp-support.c (gdb_demangle_jmp_buf): Change type. Now
1593 thread-local.
1594 (report_failed_demangle): New function.
1595 (gdb_demangle): Make core_dump_allowed atomic. Remove signal
1596 handler-setting code, instead use segv_handler. Run warning code
1597 on main thread.
1598
9411c49e
TT
15992019-11-26 Tom Tromey <tom@tromey.com>
1600
1601 * run-on-main-thread.c: New file.
1602 * run-on-main-thread.h: New file.
1603 * unittests/main-thread-selftests.c: New file.
1604 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1605 main-thread-selftests.c.
1606 (HFILES_NO_SRCDIR): Add run-on-main-thread.h.
1607 (COMMON_SFILES): Add run-on-main-thread.c.
1608
c3efb965
TT
16092019-11-26 Tom Tromey <tom@tromey.com>
1610
1611 * main.c (setup_alternate_signal_stack): Remove.
1612 (captured_main_1): Use gdb::alternate_signal_stack.
1613 * gdbsupport/alt-stack.h: New file.
1614
21987b9c
TT
16152019-11-26 Tom Tromey <tom@tromey.com>
1616
1617 * gdbsupport/signals-state-save-restore.c (original_signal_mask):
1618 Remove comment.
1619 (save_original_signals_state, restore_original_signals_state): Use
1620 gdb_sigmask.
1621 * linux-nat.c (block_child_signals, restore_child_signals_mask)
1622 (_initialize_linux_nat): Use gdb_sigmask.
1623 * guile/guile.c (_initialize_guile): Use block_signals.
1624 * Makefile.in (HFILES_NO_SRCDIR): Add gdb-sigmask.h.
1625 * gdbsupport/gdb-sigmask.h: New file.
1626 * event-top.c (async_sigtstp_handler): Use gdb_sigmask.
1627 * cp-support.c (gdb_demangle): Use gdb_sigmask.
1628 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for
1629 pthread_sigmask.
1630 * configure, config.in: Rebuild.
1631 * gdbsupport/block-signals.h: New file.
1632
5e030278
TT
16332019-11-26 Tom Tromey <tom@tromey.com>
1634
1635 * acinclude.m4: Include ax_pthread.m4.
1636 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
1637 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
1638 (CLIBS): Use PTHREAD_LIBS.
1639 (aclocal_m4_deps): Add ax_pthread.m4.
1640 * config.in, configure: Rebuild.
1641 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for std::thread.
1642
5a79c107
TT
16432019-11-26 Tom Tromey <tom@tromey.com>
1644
1645 * symtab.h (struct minimal_symbol) <name_set>: New member.
1646 * minsyms.c (minimal_symbol_reader::record_full): Copy name.
1647 Don't call symbol_set_names.
1648 (minimal_symbol_reader::install): Call symbol_set_names.
1649
aa369509
PW
16502019-11-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1651
1652 * python/python.c (gdbpy_enter::~gdbpy_enter): Release GIL after
1653 restore_active_ext_lang, as GIL is needed for (indirectly)
1654 called PyOS_InterruptOccurred.
1655
cadc9cb8
SM
16562019-11-26 Simon Marchi <simon.marchi@efficios.com>
1657
1658 * sparc-nat.c (sparc_xfer_wcookie): Sync declaration with
1659 definition.
1660
d04afd58
SM
16612019-11-26 Simon Marchi <simon.marchi@efficios.com>
1662
1663 * remote-sim.c (simulator_command): Make static, remove
1664 declaration.
1665
dd694d77
SM
16662019-11-26 Simon Marchi <simon.marchi@efficios.com>
1667
1668 * unittests/array-view-selftests.c (check_ptr_size_ctor2): Make
1669 static.
1670 * unittests/basic_string_view/capacity/1.cc (test01): Likewise.
1671 * unittests/basic_string_view/cons/char/1.cc (test01): Likewise.
1672 (main): Likewise.
1673 * unittests/basic_string_view/cons/char/2.cc (test03): Likewise.
1674 (main): Likewise.
1675 * unittests/basic_string_view/cons/char/3.cc (test05): Likewise.
1676 (main): Likewise.
1677 * unittests/basic_string_view/element_access/char/1.cc (test01):
1678 Likewise.
1679 (main): Likewise.
1680 * unittests/basic_string_view/element_access/char/empty.cc (main):
1681 Likewise.
1682 * unittests/basic_string_view/element_access/char/front_back.cc
1683 (test01): Likewise.
1684 (main): Likewise.
1685 * unittests/basic_string_view/inserters/char/2.cc (test05):
1686 Likewise.
1687 (main): Likewise.
1688 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc
1689 (test01): Likewise.
1690 (main): Likewise.
1691 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc
1692 (test01): Likewise.
1693 (main): Likewise.
1694 * unittests/basic_string_view/modifiers/swap/char/1.cc (test01):
1695 Likewise.
1696 * unittests/basic_string_view/operations/compare/char/1.cc
1697 (test01): Likewise.
1698 (main): Likewise.
1699 * unittests/basic_string_view/operations/compare/char/13650.cc
1700 (test01): Likewise.
1701 * unittests/basic_string_view/operations/copy/char/1.cc (test01):
1702 Likewise.
1703 (main): Likewise.
1704 * unittests/basic_string_view/operations/data/char/1.cc (test01):
1705 Likewise.
1706 (main): Likewise.
1707 * unittests/basic_string_view/operations/find/char/1.cc (test01):
1708 Likewise.
1709 (main): Likewise.
1710 * unittests/basic_string_view/operations/find/char/2.cc (test02):
1711 Likewise.
1712 (main): Likewise.
1713 * unittests/basic_string_view/operations/find/char/3.cc (test03):
1714 Likewise.
1715 (main): Likewise.
1716 * unittests/basic_string_view/operations/find/char/4.cc (main):
1717 Likewise.
1718 * unittests/basic_string_view/operations/rfind/char/1.cc (test01):
1719 Likewise.
1720 (main): Likewise.
1721 * unittests/basic_string_view/operations/rfind/char/2.cc (test02):
1722 Likewise.
1723 (main): Likewise.
1724 * unittests/basic_string_view/operations/rfind/char/3.cc (test03):
1725 Likewise.
1726 (main): Likewise.
1727 * unittests/basic_string_view/operations/substr/char/1.cc
1728 (test01): Likewise.
1729 (main): Likewise.
1730 * unittests/basic_string_view/operators/char/2.cc (main):
1731 Likewise.
1732 * unittests/optional/assignment/1.cc (test): Likewise.
1733 * unittests/optional/assignment/2.cc (test): Likewise.
1734 * unittests/optional/assignment/3.cc (test): Likewise.
1735 * unittests/optional/assignment/4.cc (test): Likewise.
1736 * unittests/optional/assignment/5.cc (test): Likewise.
1737 * unittests/optional/assignment/6.cc (test): Likewise.
1738 * unittests/optional/assignment/7.cc (test): Likewise.
1739 * unittests/optional/cons/copy.cc (test): Likewise.
1740 * unittests/optional/cons/default.cc (test): Likewise.
1741 * unittests/optional/cons/move.cc (test): Likewise.
1742 * unittests/optional/cons/value.cc (test): Likewise.
1743 * unittests/optional/in_place.cc (test): Likewise.
1744 * unittests/optional/observers/1.cc (test): Likewise.
1745 * unittests/optional/observers/2.cc (test): Likewise.
1746
3b5c1d49
SM
17472019-11-26 Simon Marchi <simon.marchi@efficios.com>
1748
1749 * tui-win.h (tui_set_var_cmd): Remove.
1750 * tui-win.c (tui_set_var_cmd): Make static.
1751
adce99fe
SM
17522019-11-26 Simon Marchi <simon.marchi@efficios.com>
1753
1754 * breakpoint.h (hbreak_command_wrapper, thbreak_command_wrapper,
1755 rbreak_command_wrapper): Remove.
1756 * symtab.c (rbreak_command_wrapper): Remove.
1757
fe3adccf
SM
17582019-11-26 Simon Marchi <simon.marchi@efficios.com>
1759
1760 * inferior.h (info_terminal_command): Remove declaration.
1761 * inflow.c (info_terminal_command): Make static.
1762
b926335f
SM
17632019-11-26 Simon Marchi <simon.marchi@efficios.com>
1764
1765 * inferior.c (exit_inferior_silent): Remove.
1766
b62f6f54
SM
17672019-11-26 Simon Marchi <simon.marchi@efficios.com>
1768
1769 * dictionary.c (dict_empty, mdict_empty): Remove.
1770 * dictionary.c (mdict_empty): Remove.
1771
cb8c24b6
SM
17722019-11-26 Simon Marchi <simon.marchi@efficios.com>
1773
1774 * arc-tdep.c (arc_insn_get_memory_base_reg): Make static.
1775 (arc_insn_get_memory_offset): Likewise.
1776 (arc_insn_dump): Likewise.
1777 * cp-support.c (test_cp_symbol_name_matches): Likewise.
1778 * csky-linux-tdep.c (csky_supply_fregset): Likewise.
1779 * dictionary.c (dict_iterator_next): Likewise.
1780 (dict_iter_match_first): Likewise.
1781 (dict_iter_match_next): Likewise.
1782 * f-lang.c (evaluate_subexp_f): Likewise.
1783 * hppa-tdep.c (hppa_read_pc): Likewise.
1784 * i386-tdep.c (i386_floatformat_for_type): Likewise.
1785 * parse.c (write_exp_elt_msym): Likewise.
1786 * ppc-linux-tdep.c (ppc_floatformat_for_type): Likewise.
1787 * remote.c (remote_packet_size): Likewise.
1788 (remote_notif_stop_parse): Likewise.
1789 * rs6000-aix-tdep.c (aix_sighandle_frame_sniffer): Likewise.
1790 * s12z-tdep.c (s12z_disassemble_info): Likewise.
1791 * source.c (prepare_path_for_appending): Likewise.
1792 * sparc64-linux-tdep.c
1793 (sparc64_linux_handle_segmentation_fault); Likewise.
1794 * stack.c (frame_selection_by_function_completer): Likewise.
1795
781597ff
SM
17962019-11-26 Simon Marchi <simon.marchi@efficios.com>
1797
1798 * completer.c (set_gdb_completion_word_break_characters):
1799 Remove.
1800
23baa4cc
SM
18012019-11-26 Simon Marchi <simon.marchi@efficios.com>
1802
1803 * dwarf-index-write.c: Include dwarf-index-write.h.
1804 * mi/mi-interp.c: Include mi/mi-interp.h.
1805
23767560
SM
18062019-11-26 Simon Marchi <simon.marchi@efficios.com>
1807
1808 * aarch32-tdep.c: Include aarch32-tdep.h.
1809 * aarch32-tdep.h: Forward-declare struct target_desc.
1810
6d91ce9a
CB
18112019-11-26 Christian Biesinger <cbiesinger@google.com>
1812
1813 * linux-nat.c (detach_one_lwp): Call safe_strerror instead of
1814 strerror.
1815 * nto-procfs.c (nto_procfs_target::create_inferior): Likewise.
1816 * windows-nat.c (windows_nat_target::create_inferior): Likewise.
1817
3cf2f237
TV
18182019-11-25 Tom de Vries <tdevries@suse.de>
1819
1820 * contrib/words.sh: Add -c option.
1821
5b89c67a
CB
18222019-11-25 Christian Biesinger <cbiesinger@google.com>
1823
1824 * solib.c (solib_find_1): Change int to bool.
1825 (exec_file_find): Change int to bool.
1826 (solib_find): Change int to bool.
1827 (solib_read_symbols): Change int to bool.
1828 (solib_used): Change int to bool.
1829 (solib_add): Change int to bool.
1830 (info_sharedlibrary_command): Change int to bool.
1831 (solib_contains_address_p): Change int to bool.
1832 (solib_keep_data_in_core): Change int to bool.
1833 (in_solib_dynsym_resolve_code): Change int to bool.
1834 (reload_shared_libraries_1): Change int to bool.
1835 (gdb_sysroot_changed): Change int to bool.
1836 * solib.h (solib_read_symbols): Change int to bool.
1837 (solib_contains_address_p): Change int to bool.
1838 (solib_keep_data_in_core): Change int to bool.
1839 (in_solib_dynsym_resolve_code): Change int to bool.
1840 (libpthread_name_p): Change int to bool.
1841
6cc8564b
LM
18422019-11-25 Luis Machado <luis.machado@linaro.org>
1843
1844 * NEWS (New Commands): Mention "set debug remote-packet-max-chars".
1845 * remote.c (REMOTE_DEBUG_MAX_CHAR): Remove.
1846 (remote_packet_max_chars): New static global.
1847 (show_remote_packet_max_chars): New function.
1848 (remote_target::putpkt_binary): Adjust to use new
1849 remote_packet_max_chars option.
1850 (remote_target::getpkt_or_notif_sane_1): Likewise.
1851 (_initialize_remote): Register new remote-packet-max-chars option.
1852
a7cdaa91
SM
18532019-11-24 Simon Marchi <simon.marchi@efficios.com>
1854
1855 * m68k-linux-nat.c: Include gdbarch.h.
1856
26abc753
TT
18572019-11-24 Tom Tromey <tom@tromey.com>
1858
1859 * symfile.c (read_symbols): Update.
1860 * psymtab.c (require_partial_symbols): Change type of "verbose" to
1861 bool.
1862 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
1863 (psym_lookup_symbol, psym_find_last_source_symtab)
1864 (psym_forget_cached_source_info, psym_print_stats)
1865 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
1866 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
1867 (psym_map_matching_symbols, psym_expand_symtabs_matching)
1868 (psym_find_compunit_symtab_by_address)
1869 (maintenance_print_psymbols, maintenance_info_psymtabs)
1870 (maintenance_check_psymtabs): Update.
1871 * psymtab.h (require_partial_symbols): Change type of "verbose" to
1872 bool.
1873
012fc909
TT
18742019-11-22 Tom Tromey <tom@tromey.com>
1875
1876 * observable.h: Update comments.
1877
c83d8d32
TT
18782019-11-22 Tom Tromey <tromey@adacore.com>
1879
1880 * ada-tasks.c (ada_task_is_alive): Make parameter const.
1881 (print_ada_task_info): Don't try to fetch thread id if task is not
1882 alive.
1883
987012b8
CB
18842019-11-22 Christian Biesinger <cbiesinger@google.com>
1885
1886 * ada-exp.y: Update.
1887 * ada-lang.c (sort_choices): Update.
1888 (ada_print_symbol_signature): Update.
1889 (resolve_subexp): Update.
1890 (ada_parse_renaming): Update.
1891 (ada_read_renaming_var_value): Update.
1892 (lesseq_defined_than): Update.
1893 (remove_extra_symbols): Update.
1894 (remove_irrelevant_renamings): Update.
1895 (ada_add_block_symbols): Update.
1896 (ada_collect_symbol_completion_matches): Update.
1897 (ada_is_renaming_symbol): Update.
1898 (aggregate_assign_from_choices): Update.
1899 (ada_evaluate_subexp): Update.
1900 (ada_has_this_exception_support): Update.
1901 (ada_is_non_standard_exception_sym): Update.
1902 (ada_add_exceptions_from_frame): Update.
1903 (ada_add_global_exceptions): Update.
1904 (ada_print_subexp): Update.
1905 * ax-gdb.c (gen_var_ref): Update.
1906 (gen_maybe_namespace_elt): Update.
1907 (gen_expr_for_cast): Update.
1908 (gen_expr): Update.
1909 * block.h: Update.
1910 * blockframe.c (find_pc_partial_function): Update.
1911 * breakpoint.c (print_breakpoint_location): Update.
1912 (update_static_tracepoint): Update.
1913 * btrace.c (ftrace_print_function_name): Update.
1914 (ftrace_function_switched): Update.
1915 * buildsym.c (find_symbol_in_list): Update.
1916 * c-exp.y: Update.
1917 * c-typeprint.c (c_print_typedef): Update.
1918 (c_type_print_template_args): Update.
1919 * cli/cli-cmds.c (edit_command): Update.
1920 (list_command): Update.
1921 (print_sal_location): Update.
1922 * coffread.c (patch_opaque_types): Update.
1923 (process_coff_symbol): Update.
1924 (coff_read_enum_type): Update.
1925 * compile/compile-c-symbols.c (c_symbol_substitution_name): Update.
1926 (convert_one_symbol): Update.
1927 (hash_symname): Update.
1928 (eq_symname): Update.
1929 * compile/compile-cplus-symbols.c (convert_one_symbol): Update.
1930 * compile/compile-cplus-types.c (debug_print_scope): Update.
1931 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
1932 * compile/compile-object-load.c (get_out_value_type): Update.
1933 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
1934 (search_symbol_list): Update.
1935 (cp_lookup_symbol_imports_or_template): Update.
1936 * cp-support.c (overload_list_add_symbol): Update.
1937 * ctfread.c (psymtab_to_symtab): Update.
1938 * dbxread.c (cp_set_block_scope): Update.
1939 * dictionary.c (iter_match_first_hashed): Update.
1940 (iter_match_next_hashed): Update.
1941 (insert_symbol_hashed): Update.
1942 (iter_match_next_linear): Update.
1943 * dictionary.h: Update.
1944 * dwarf2loc.c (func_get_frame_base_dwarf_block): Update.
1945 (locexpr_describe_location_piece): Update.
1946 (locexpr_describe_location_1): Update.
1947 (locexpr_generate_c_location): Update.
1948 (loclist_describe_location): Update.
1949 (loclist_generate_c_location): Update.
1950 * dwarf2read.c (dw2_debug_names_lookup_symbol): Update.
1951 (read_func_scope): Update.
1952 (process_enumeration_scope): Update.
1953 (new_symbol): Update.
1954 (dwarf2_const_value): Update.
1955 (dwarf2_symbol_mark_computed): Update.
1956 * eval.c (evaluate_funcall): Update.
1957 (evaluate_subexp_standard): Update.
1958 * expprint.c (print_subexp_standard): Update.
1959 (dump_subexp_body_standard): Update.
1960 * f-valprint.c (info_common_command_for_block): Update.
1961 * findvar.c (get_hosting_frame): Update.
1962 (default_read_var_value): Update.
1963 * go-lang.c (go_symbol_package_name): Update.
1964 * guile/scm-block.c (bkscm_print_block_smob): Update.
1965 * guile/scm-symbol.c (syscm_print_symbol_smob): Update.
1966 (gdbscm_symbol_name): Update.
1967 (gdbscm_symbol_linkage_name): Update.
1968 (gdbscm_symbol_print_name): Update.
1969 * infcall.c (get_function_name): Update.
1970 * infcmd.c (jump_command): Update.
1971 (finish_command): Update.
1972 * infrun.c (insert_exception_resume_breakpoint): Update.
1973 * linespec.c (canonicalize_linespec): Update.
1974 (create_sals_line_offset): Update.
1975 (convert_linespec_to_sals): Update.
1976 (complete_label): Update.
1977 (find_label_symbols_in_block): Update.
1978 * m2-typeprint.c (m2_print_typedef): Update.
1979 * mdebugread.c (mdebug_reg_to_regnum): Update.
1980 (parse_symbol): Update.
1981 (mylookup_symbol): Update.
1982 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
1983 (list_args_or_locals): Update.
1984 * objc-lang.c (compare_selectors): Update.
1985 (info_selectors_command): Update.
1986 (compare_classes): Update.
1987 (info_classes_command): Update.
1988 (find_imps): Update.
1989 * p-typeprint.c (pascal_print_typedef): Update.
1990 * printcmd.c (build_address_symbolic): Update.
1991 (info_address_command): Update.
1992 (print_variable_and_value): Update.
1993 * python/py-framefilter.c (extract_sym): Update.
1994 (py_print_single_arg): Update.
1995 * python/py-symbol.c (sympy_str): Update.
1996 (sympy_get_name): Update.
1997 (sympy_get_linkage_name): Update.
1998 * python/python.c (gdbpy_rbreak): Update.
1999 * record-btrace.c (btrace_get_bfun_name): Update.
2000 (btrace_call_history): Update.
2001 * rust-lang.c (rust_print_typedef): Update.
2002 * solib-frv.c (frv_fdpic_find_canonical_descriptor): Update.
2003 * stabsread.c (stab_reg_to_regnum): Update.
2004 (define_symbol): Update.
2005 (read_enum_type): Update.
2006 (common_block_end): Update.
2007 (cleanup_undefined_types_1): Update.
2008 (scan_file_globals): Update.
2009 * stack.c (print_frame_arg): Update.
2010 (print_frame_args): Update.
2011 (find_frame_funname): Update.
2012 (info_frame_command_core): Update.
2013 (iterate_over_block_locals): Update.
2014 (print_block_frame_labels): Update.
2015 (do_print_variable_and_value): Update.
2016 (iterate_over_block_arg_vars): Update.
2017 (return_command): Update.
2018 * symmisc.c (dump_symtab_1): Update.
2019 (print_symbol): Update.
2020 * symtab.c (eq_symbol_entry): Update.
2021 (symbol_cache_dump): Update.
2022 (lookup_language_this): Update.
2023 (find_pc_sect_line): Update.
2024 (skip_prologue_sal): Update.
2025 (symbol_search::compare_search_syms): Update.
2026 (treg_matches_sym_type_name): Update.
2027 (search_symbols): Update.
2028 (print_symbol_info): Update.
2029 (rbreak_command): Update.
2030 (completion_list_add_symbol): Update.
2031 (find_gnu_ifunc): Update.
2032 (get_symbol_address): Update.
2033 (search_module_symbols): Update.
2034 (info_module_subcommand): Update.
2035 * symtab.h (SYMBOL_NATURAL_NAME): Remove.
2036 (SYMBOL_LINKAGE_NAME): Remove.
2037 (SYMBOL_DEMANGLED_NAME): Remove.
2038 (SYMBOL_PRINT_NAME): Remove.
2039 (SYMBOL_SEARCH_NAME): Remove.
2040 * tracepoint.c (set_traceframe_context): Update.
2041 (validate_actionline): Update.
2042 (collection_list::collect_symbol): Update.
2043 (encode_actions_1): Update.
2044 (info_scope_command): Update.
2045 (print_one_static_tracepoint_marker): Update.
2046 * typeprint.c (typedef_hash_table::add_template_parameters): Update.
2047 * valops.c (address_of_variable): Update.
2048 (find_overload_match): Update.
2049 (find_oload_champ): Update.
2050
c9d95fa3
CB
20512019-11-22 Christian Biesinger <cbiesinger@google.com>
2052
2053 * ada-lang.c (ada_lookup_simple_minsym): Update.
2054 (ada_collect_symbol_completion_matches): Update.
2055 * ada-tasks.c (read_atcb): Update.
2056 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
2057 (amd64_windows_skip_trampoline_code): Update.
2058 * arm-tdep.c (skip_prologue_function): Update.
2059 (arm_skip_stack_protector): Update.
2060 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
2061 (arm_wince_skip_main_prologue): Update.
2062 * ax-gdb.c (gen_expr): Update.
2063 * block.c (call_site_for_pc): Update.
2064 * blockframe.c (find_pc_partial_function): Update.
2065 * breakpoint.c (set_breakpoint_location_function): Update.
2066 * btrace.c (ftrace_print_function_name): Update.
2067 (ftrace_function_switched): Update.
2068 * c-valprint.c (print_unpacked_pointer): Update.
2069 * coffread.c (coff_symfile_read): Update.
2070 * compile/compile-c-symbols.c (convert_symbol_bmsym): Update.
2071 * compile/compile-cplus-symbols.c (convert_symbol_bmsym): Update.
2072 * dwarf-index-write.c (write_psymbols): Update.
2073 * dwarf2loc.c (call_site_to_target_addr): Update.
2074 (func_verify_no_selftailcall): Update.
2075 (tailcall_dump): Update.
2076 (call_site_find_chain_1): Update.
2077 (dwarf_expr_reg_to_entry_parameter): Update.
2078 * elfread.c (elf_gnu_ifunc_record_cache): Update.
2079 * eval.c (evaluate_funcall): Update.
2080 (evaluate_subexp_standard): Update.
2081 (evaluate_subexp_for_sizeof): Update.
2082 * expprint.c (print_subexp_standard): Update.
2083 (dump_subexp_body_standard): Update.
2084 * frame.c (get_prev_frame_always_1): Update.
2085 * frv-tdep.c (frv_skip_main_prologue): Update.
2086 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
2087 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
2088 (gnuv3_get_typename_from_type_info): Update.
2089 (gnuv3_skip_trampoline): Update.
2090 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
2091 * i386-tdep.c (i386_skip_main_prologue): Update.
2092 (i386_pe_skip_trampoline_code): Update.
2093 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
2094 * infcall.c (get_function_name): Update.
2095 * linespec.c (minsym_found): Update.
2096 * linux-fork.c (info_checkpoints_command): Update.
2097 * m32c-tdep.c (m32c_m16c_address_to_pointer): Update.
2098 (m32c_m16c_pointer_to_address): Update.
2099 * maint.c (maintenance_translate_address): Update.
2100 * minsyms.c (add_minsym_to_hash_table): Update.
2101 (add_minsym_to_demangled_hash_table): Update.
2102 (lookup_minimal_symbol_mangled): Update.
2103 (lookup_minimal_symbol_demangled): Update.
2104 (lookup_minimal_symbol_linkage): Update.
2105 (lookup_minimal_symbol_text): Update.
2106 (lookup_minimal_symbol_by_pc_name): Update.
2107 (minimal_symbol_is_less_than): Update.
2108 (compact_minimal_symbols): Update.
2109 (build_minimal_symbol_hash_tables): Update.
2110 (find_solib_trampoline_target): Update.
2111 * mips-tdep.c (mips_stub_frame_sniffer): Update.
2112 (mips_skip_pic_trampoline_code): Update.
2113 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
2114 * objc-lang.c (info_selectors_command): Update.
2115 (info_classes_command): Update.
2116 (find_methods): Update.
2117 (find_imps): Update.
2118 * p-valprint.c (pascal_val_print): Update.
2119 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Update.
2120 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
2121 * printcmd.c (build_address_symbolic): Update.
2122 (info_symbol_command): Update.
2123 * psymtab.c (psymbol_name_matches): Update.
2124 (match_partial_symbol): Update.
2125 (lookup_partial_symbol): Update.
2126 (print_partial_symbols): Update.
2127 (sort_pst_symbols): Update.
2128 (maintenance_check_psymtabs): Update.
2129 * python/py-framefilter.c (py_print_frame): Update.
2130 * python/python.c (gdbpy_rbreak): Update.
2131 * record-btrace.c (btrace_get_bfun_name): Update.
2132 (btrace_call_history): Update.
2133 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
2134 (rs6000_skip_trampoline_code): Update.
2135 * sol-thread.c (info_cb): Update.
2136 * stabsread.c (scan_file_globals): Update.
2137 * stack.c (find_frame_funname): Update.
2138 (info_frame_command_core): Update.
2139 * symmisc.c (dump_msymbols): Update.
2140 * symtab.c (symbol_natural_name): Rename to..,
2141 (general_symbol_info::natural_name): ...this.
2142 (symbol_demangled_name): Rename to...
2143 (general_symbol_info::demangled_name): ...this.
2144 (symbol_search_name): Rename to...
2145 (general_symbol_info::search_name): ...this.
2146 (symbol_matches_search_name): Update.
2147 (find_pc_sect_line): Update.
2148 (skip_prologue_sal): Update.
2149 (search_symbols): Update.
2150 (print_msymbol_info): Update.
2151 (rbreak_command): Update.
2152 (completion_list_add_msymbol): Update.
2153 (completion_list_objc_symbol): Update.
2154 (get_msymbol_address): Update.
2155 * symtab.h (struct general_symbol_info): Add member functions
2156 natural_name (), linkage_name (), print_name (), demangled_name (),
2157 and search_name ().
2158 (SYMBOL_NATURAL_NAME): Update.
2159 (symbol_natural_name): Move to a member function on general_symbol_info.
2160 (SYMBOL_DEMANGLED_NAME): Update.
2161 (symbol_demangled_name): Move to a member function on
2162 general_symbol_info.
2163 (SYMBOL_SEARCH_NAME): Update.
2164 (symbol_search_name): Move to a member function on general_symbol_info.
2165 (MSYMBOL_NATURAL_NAME): Remove.
2166 (MSYMBOL_LINKAGE_NAME): Remove.
2167 (MSYMBOL_PRINT_NAME): Remove.
2168 (MSYMBOL_DEMANGLED_NAME): Remove.
2169 (MSYMBOL_SEARCH_NAME): Remove.
2170 * x86-tdep.c (x86_in_indirect_branch_thunk): Update.
2171
f8bab2d6
CB
21722019-11-22 Christian Biesinger <cbiesinger@google.com>
2173
2174 * symtab.c (create_demangled_names_hash): Use per_bfd->
2175 minimal_symbol_count for computing the initial size, if greater
2176 than our default size.
2177
85e7588d
TV
21782019-11-22 Tom de Vries <tdevries@suse.de>
2179
2180 * contrib/words.sh: Improve words extraction.
2181
f6180073
TV
21822019-11-22 Tom de Vries <tdevries@suse.de>
2183
2184 * contrib/words.sh: Combine sed invocations.
2185
f10ffa41
CB
21862019-11-21 Christian Biesinger <cbiesinger@google.com>
2187
2188 * Makefile.in: Update.
2189 * demangle.c: Rename to...
2190 * gdb-demangle.c: ..this.
2191 (is_cplus_marker): Change return type to bool.
2192 (_initialize_demangler): Rename to...
2193 (_initialize_gdb_demangle): ...this.
2194 * gdb-demangle.h (is_cplus_marker): Change return type to bool.
2195 * symtab.h (demangle): Remove declaration; instead include
2196 gdb-demangle.h.
2197
6ba18521
TT
21982019-11-21 Tom Tromey <tromey@adacore.com>
2199
2200 * gdbsupport/format.c (format_pieces): Parse %I64d.
2201 * unittests/format_pieces-selftests.c (test_windows_formats): New
2202 function.
2203 (run_tests): Call it.
2204
34877895
PJ
22052019-11-21 Peeter Joot <peeter.joot@lzlabs.com>
2206
2207 Byte reverse display of variables with DW_END_big, DW_END_little
2208 (DW_AT_endianity) dwarf attributes if different than the native
2209 byte order.
2210 * ada-lang.c (ada_value_binop):
2211 Use type_byte_order instead of gdbarch_byte_order.
2212 * ada-valprint.c (printstr):
2213 (ada_val_print_string):
2214 * ada-lang.c (value_pointer):
2215 (ada_value_binop):
2216 Use type_byte_order instead of gdbarch_byte_order.
2217 * c-lang.c (c_get_string):
2218 Use type_byte_order instead of gdbarch_byte_order.
2219 * c-valprint.c (c_val_print_array):
2220 Use type_byte_order instead of gdbarch_byte_order.
2221 * cp-valprint.c (cp_print_class_member):
2222 Use type_byte_order instead of gdbarch_byte_order.
2223 * dwarf2loc.c (rw_pieced_value):
2224 Use type_byte_order instead of gdbarch_byte_order.
2225 * dwarf2read.c (read_base_type): Handle DW_END_big,
2226 DW_END_little
2227 * f-lang.c (f_get_encoding):
2228 Use type_byte_order instead of gdbarch_byte_order.
2229 * findvar.c (default_read_var_value):
2230 Use type_byte_order instead of gdbarch_byte_order.
2231 * gdbtypes.c (check_types_equal):
2232 Require matching TYPE_ENDIANITY_NOT_DEFAULT if set.
2233 (recursive_dump_type): Print TYPE_ENDIANITY_BIG,
2234 and TYPE_ENDIANITY_LITTLE if set.
2235 (type_byte_order): new function.
2236 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): New macro.
2237 (struct main_type) <flag_endianity_not_default>:
2238 New field.
2239 (type_byte_order): New function.
2240 * infcmd.c (default_print_one_register_info):
2241 Use type_byte_order instead of gdbarch_byte_order.
2242 * p-lang.c (pascal_printstr):
2243 Use type_byte_order instead of gdbarch_byte_order.
2244 * p-valprint.c (pascal_val_print):
2245 Use type_byte_order instead of gdbarch_byte_order.
2246 * printcmd.c (print_scalar_formatted):
2247 Use type_byte_order instead of gdbarch_byte_order.
2248 * solib-darwin.c (darwin_current_sos):
2249 Use type_byte_order instead of gdbarch_byte_order.
2250 * solib-svr4.c (solib_svr4_r_ldsomap):
2251 Use type_byte_order instead of gdbarch_byte_order.
2252 * stap-probe.c (stap_modify_semaphore):
2253 Use type_byte_order instead of gdbarch_byte_order.
2254 * target-float.c (target_float_same_format_p):
2255 Use type_byte_order instead of gdbarch_byte_order.
2256 * valarith.c (scalar_binop):
2257 (value_bit_index):
2258 Use type_byte_order instead of gdbarch_byte_order.
2259 * valops.c (value_cast):
2260 Use type_byte_order instead of gdbarch_byte_order.
2261 * valprint.c (generic_emit_char):
2262 (generic_printstr):
2263 (val_print_string):
2264 Use type_byte_order instead of gdbarch_byte_order.
2265 * value.c (unpack_long):
2266 (unpack_bits_as_long):
2267 (unpack_value_bitfield):
2268 (modify_field):
2269 (pack_long):
2270 (pack_unsigned_long):
2271 Use type_byte_order instead of gdbarch_byte_order.
2272 * findvar.c (unsigned_pointer_to_address):
2273 (signed_pointer_to_address):
2274 (unsigned_address_to_pointer):
2275 (address_to_signed_pointer):
2276 (default_read_var_value):
2277 (default_value_from_register):
2278 Use type_byte_order instead of gdbarch_byte_order.
2279 * gnu-v3-abi.c (gnuv3_make_method_ptr):
2280 Use type_byte_order instead of gdbarch_byte_order.
2281 * riscv-tdep.c (riscv_print_one_register_info):
2282 Use type_byte_order instead of gdbarch_byte_order.
2283
87fb00ea
SM
22842019-11-21 Simon Marchi <simon.marchi@polymtl.ca>
2285
2286 * top.c (current_ui_gdb_stdout_ptr): Spell out by hand.
2287 (current_ui_gdb_stdin_ptr): Likewise.
2288 (current_ui_gdb_stderr_ptr): Likewise.
2289 (current_ui_gdb_stdlog_ptr): Likewise.
2290 (current_ui_current_uiout_ptr): Likewise.
2291 (gen_ret_current_ui_field_ptr): Remove.
2292
65d1cd5f
TV
22932019-11-21 Tom de Vries <tdevries@suse.de>
2294
2295 PR gdb/24956
2296 * cli/cli-script.c (execute_control_command): Only switch to
2297 INTERP_CONSOLE's ui_out when INTERP_MI is active.
2298
9f6ad286
TT
22992019-11-19 Tom Tromey <tom@tromey.com>
2300
2301 * tui/tui-win.c (tui_partial_win_by_name): Move from tui-data.c.
2302 Now static. Change type of "name".
2303 (tui_set_win_height_command): Don't copy "arg".
2304 * tui/tui-data.h (tui_partial_win_by_name): Don't declare.
2305 * tui/tui-data.c (tui_partial_win_by_name): Move to tui-win.c.
2306
435d3d88
AT
23072019-11-19 Ali Tamur <tamur@google.com>
2308
2309 * dwarf2read.c (dw2_get_file_names_reader): Replace "if (attr)" with
2310 "if (attr != nullptr)".
2311 (dwarf2_find_base_address): Likewise.
2312 (dwarf2_build_include_psymtabs): Likewise.
2313 (read_cutu_die_from_dwo): Likewise.
2314 (read_func_scope): Likewise.
2315 (read_call_site_scope): Likewise.
2316 (dwarf2_get_pc_bounds): Likewise.
2317 (dwarf2_record_block_ranges): Likewise.
2318 (dwarf2_add_field): Likewise.
2319 (dwarf2_add_member_fn): Likewise.
2320 (read_structure_type): Likewise.
2321 (read_enumeration_type): Likewise.
2322 (read_array_type): Likewise.
2323 (read_array_order): Likewise.
2324 (read_set_type): Likewise.
2325 (read_common_block): Likewise.
2326 (read_tag_reference_type): Likewise.
2327 (read_tag_string_type): Likewise.
2328 (read_subroutine_type): Likewise.
2329 (read_base_type): Likewise.
2330 (read_subrange_type): Likewise.
2331 (new_symbol): Likewise.
2332 (prepare_one_comp_unit): Likewise.
2333
c9739b6a
TT
23342019-11-19 Tom Tromey <tromey@adacore.com>
2335
2336 * windows-nat.c (windows_nat_target::attach): Include GetLastError
2337 result in error when DebugActiveProcess fails.
2338
494409bb
SDJ
23392019-11-18 Sergio Durigan Junior <sergiodj@redhat.com>
2340 Pedro Alves <palves@redhat.com>
2341
2342 https://bugzilla.redhat.com/show_bug.cgi?id=1765117
2343 * target.c (target_stack::push): Call 'unpush' if there's a
2344 target on top of the stack.
2345
2e953aca
PW
23462019-11-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2347
2348 * python/py-block.c (blpy_dealloc): Call tp_free.
2349 (blpy_block_syms_dealloc): Likewise.
2350 * python/py-finishbreakpoint.c (bpfinishpy_dealloc): Likewise.
2351 * python/py-inferior.c (infpy_dealloc): Likewise.
2352 * python/py-lazy-string.c (stpy_dealloc): Likewise.
2353 * python/py-linetable.c (ltpy_iterator_dealloc): Likewise.
2354 * python/py-symbol.c (sympy_dealloc): Likewise.
2355 * python/py-symtab.c (stpy_dealloc): Likewise.
2356 * python/py-type.c (typy_iterator_dealloc): Likewise.
2357
6edc43ec
CB
23582019-11-18 Christian Biesinger <cbiesinger@google.com>
2359
2360 * symtab.h (struct symbol) <owner>: Initialize explicitly in the
2361 constructor instead of using a class initializer.
2362
cd850b40
CB
23632019-11-15 Christian Biesinger <cbiesinger@google.com>
2364
2365 * Makefile.in: Replace {posix,mingw}-strerror.c with safe-strerror.c.
2366 * configure: Regenerate.
2367 * configure.ac: Don't source common.host.
2368 * gdbsupport/common.host: Remove.
2369 * gdbsupport/mingw-strerror.c: Remove.
2370 * gdbsupport/posix-strerror.c: Rename to...
2371 * gdbsupport/safe-strerror.c: ...this.
2372
53fea9c7
CB
23732019-11-15 Christian Biesinger <cbiesinger@google.com>
2374
2375 * maint.c (scoped_command_stats::print_time): Use localtime_r
2376 instead of localtime (provided through gnulib if necessary).
2377 * nat/linux-osdata.c (time_from_time_t): Use ctime_r instead
2378 of ctime.
2379
f8e27d88
CB
23802019-11-15 Christian Biesinger <cbiesinger@google.com>
2381
2382 * gdbsupport/common-defs.h: Include time.h before pathmax.h to
2383 avoid compile errors.
2384
5abebf3c
CB
23852019-11-15 Christian Biesinger <cbiesinger@google.com>
2386
2387 * config.in: Regenerate.
2388 * configure: Regenerate.
2389 * gdbsupport/common.m4: No longer check for strerror_r.
2390 * gdbsupport/posix-strerror.c (safe_strerror): Always call the
2391 POSIX version of strerror_r, now that gnulib provides it if
2392 necessary.
2393
9a351667
CB
23942019-11-14 Christian Biesinger <cbiesinger@google.com>
2395
2396 * README (`configure' options): Update.
2397
55708e99
TT
23982019-11-14 Tom Tromey <tromey@adacore.com>
2399
2400 * eval.c (evaluate_subexp_standard) <BINOP_ASSIGN>: Do not pass an
2401 expected type for the RHS if the LHS is a convenience variable.
2402
4b09bb2e
SM
24032019-11-14 Simon Marchi <simon.marchi@polymtl.ca>
2404
2405 * unittests/vec-utils-selftests.c (unordered_remove_tests::obj):
2406 Provide explicit default and copy constructor.
2407
bd454f8b
PW
24082019-11-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2409
2410 * python/py-finishbreakpoint.c (gdbpy_breakpoint_created):
2411 only call Py_INCREF (newbp) in the bppy_pending_object case.
2412
d1aa3cf0
TT
24132019-11-13 Tom Tromey <tromey@adacore.com>
2414
2415 PR build/25182:
2416 * psympriv.h (partial_symbol): Remove static assert.
2417 * symtab.h (general_symbol_info, symbol): Remove static assert.
2418
e06f3d6e
AB
24192019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
2420
2421 * gdbsupport/format.c (format_pieces::format_pieces): Support
2422 printf 'z' size modifier.
2423 * gdbsupport/format.h (enum argclass): Add size_t_arg.
2424 * printcmd.c (ui_printf): Handle size_t_arg.
2425 * ui-out.c (ui_out::vmessage): Likewise.
2426 * unittests/format_pieces-selftests.c (test_format_int_sizes): New
2427 function.
2428 (run_tests): Call test_format_int_sizes.
2429
468c0cbb
CB
24302019-11-12 Christian Biesinger <cbiesinger@google.com>
2431
2432 * ada-exp.y (write_ambiguous_var): Update.
2433 * buildsym.c (add_symbol_to_list): Update.
2434 * dwarf2read.c (read_variable): Update.
2435 (new_symbol): Update.
2436 * jit.c (finalize_symtab): Update.
2437 * language.c (language_alloc_type_symbol): Update.
2438 * symtab.c (fixup_symbol_section): Update.
2439 (initialize_objfile_symbol_1): Move code to...
2440 (initialize_objfile_symbol): ...here. Remove now-unnecessary memset.
2441 (allocate_symbol): Update.
2442 (allocate_template_symbol): Update.
2443 (get_symbol_address): Update.
2444 * symtab.h (struct symbol): Inherit from general_symbol_info instead
2445 of having as a field, and add a constructor.
2446 (SYMBOL_VALUE): Update.
2447 (SYMBOL_VALUE_ADDRESS): Update.
2448 (SET_SYMBOL_VALUE_ADDRESS): Update.
2449 (SYMBOL_VALUE_BYTES): Update.
2450 (SYMBOL_VALUE_COMMON_BLOCK): Update.
2451 (SYMBOL_BLOCK_VALUE): Update.
2452 (SYMBOL_VALUE_CHAIN): Update.
2453 (SYMBOL_LANGUAGE): Update.
2454 (SYMBOL_SECTION): Update.
2455 (SYMBOL_OBJ_SECTION): Update.
2456 (SYMBOL_SET_LANGUAGE): Update.
2457 (SYMBOL_SET_LINKAGE_NAME): Update.
2458 (SYMBOL_SET_NAMES): Update.
2459 (SYMBOL_NATURAL_NAME): Update.
2460 (SYMBOL_LINKAGE_NAME): Update.
2461 (SYMBOL_DEMANGLED_NAME): Update.
2462 (SYMBOL_SEARCH_NAME): Update.
2463 (SYMBOL_MATCHES_SEARCH_NAME): Update.
2464 (struct symbol): Update.
2465 (struct template_symbol): Update.
2466 (struct rust_vtable_symbol): Update.
2467 * xcoffread.c (SYMBOL_DUP): Update.
2468
ed2c82c3
TT
24692019-11-12 Tom Tromey <tom@tromey.com>
2470
2471 * tui/tui-layout.c (show_layout): Set current_layout.
2472 (show_source_disasm_command, show_data)
2473 (show_source_or_disasm_and_command): Don't set current_layout.
2474
d9fcefd5
TT
24752019-11-12 Tom Tromey <tom@tromey.com>
2476
2477 * tui/tui-layout.c (_initialize_tui_layout): Move to end.
2478
45e42163
TT
24792019-11-12 Tom Tromey <tom@tromey.com>
2480
2481 * tui/tui-win.c (resize_message): New global.
2482 (show_tui_resize_message): New function.
2483 (tui_async_resize_screen): Print message if requested.
2484 (_initialize_tui_win): Add tui-resize-message setting.
2485 * NEWS: Add entry for new commands.
2486
c86d74cc
TT
24872019-11-11 Tom Tromey <tom@tromey.com>
2488
2489 * tui/tui.c (tui_initialize_readline): Add new bindable readline
2490 functions.
2491
7b7b9424
CB
24922019-11-11 Christian Biesinger <cbiesinger@google.com>
2493
2494 * nat/linux-osdata.c (user_from_uid): Use getpwuid_r.
2495
086baaf1
AB
24962019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
2497
2498 * python/py-symbol.c (gdbpy_lookup_static_symbols): New
2499 function.
2500 * python/python-internal.h (gdbpy_lookup_static_symbols):
2501 Declare new function.
2502 * python/python.c (python_GdbMethods): Add
2503 gdb.lookup_static_symbols method.
2504 * NEWS: Mention gdb.lookup_static_symbols.
2505
09ff83af
AB
25062019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
2507
2508 * python/py-symbol.c (gdbpy_lookup_static_symbol): Lookup in
2509 static block of current object file first. Also fix typo in
2510 header comment.
2511
eb2dd8df
AB
25122019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
2513
2514 * stack.c (set_last_displayed_sal): Delete.
2515 (last_displayed_sal_valid): Delete.
2516 (last_displayed_pspace): Delete.
2517 (last_displayed_addr): Delete.
2518 (last_displayed_symtab): Delete.
2519 (last_displayed_line): Delete.
2520 (class last_displayed_symtab_info_type): New.
2521 (last_displayed_symtab_info): New static global variable.
2522 (print_frame_info): Call methods on last_displayed_symtab_info.
2523 (clear_last_displayed_sal): Update header comment, and make use of
2524 last_displayed_symtab_info.
2525 (last_displayed_sal_is_valid): Likewise.
2526 (get_last_displayed_pspace): Likewise.
2527 (get_last_displayed_addr): Likewise.
2528 (get_last_displayed_symtab): Likewise.
2529 (get_last_displayed_line): Likewise.
2530 (get_last_displayed_sal): Likewise.
2531 * stack.h (clear_last_displayed_sal): Update header comment.
2532 (last_displayed_sal_is_valid): Likewise.
2533 (get_last_displayed_pspace): Likewise.
2534 (get_last_displayed_addr): Likewise.
2535 (get_last_displayed_symtab): Likewise.
2536 (get_last_displayed_line): Likewise.
2537 (get_last_displayed_sal): Likewise.
2538
62137775
AB
25392019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
2540
2541 * stack.c (frame_show_address): Convert return type to bool.
2542 * stack.h (frame_show_address): Likewise, and update header
2543 comment.
2544
cf57ad6d
AB
25452019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
2546
2547 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new file to the list.
2548 * unittests/vec-utils-selftests.c: New file.
2549 * gdbsupport/gdb_vecs.h (unordered_remove): Avoid self move assign.
2550
0b026263
TT
25512019-11-10 Tom Tromey <tom@tromey.com>
2552
2553 * tui/tui-wingeneral.c (tui_unhighlight_win): Use can_box.
2554 (tui_highlight_win): Likewise.
2555 (tui_win_info::check_and_display_highlight_if_needed): Likewise.
2556 * tui/tui-data.h (struct tui_win_info) <can_highlight>: Remove.
2557 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
2558 Don't set can_highlight.
2559
b049ce2d
TT
25602019-11-10 Tom Tromey <tom@tromey.com>
2561
2562 * cli/cli-style.h (class cli_style_option) <cli_style_option>:
2563 Remove unused declaration.
2564
992a7040
TT
25652019-11-08 Tom Tromey <tromey@adacore.com>
2566
2567 * top.c (read_command_file): Update.
2568 (command_line_input): Make return type const.
2569 * python/py-gdb-readline.c: Update.
2570 * linespec.c (decode_line_2): Update.
2571 * defs.h (command_line_input): Make return type const.
2572 * cli/cli-script.c (read_next_line): Make return type const.
2573 * ada-lang.c (get_selections): Update.
2574
ca3a04f6
CB
25752019-11-06 Christian Biesinger <cbiesinger@google.com>
2576
2577 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
2578 * mi/mi-main.c (output_cores): Likewise.
2579 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
2580 (linux_xfer_osdata_modules): Likewise.
2581 * remote.c (register_remote_support_xml): Likewise.
2582 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
2583 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
2584
e0eac551
TT
25852019-11-06 Tom Tromey <tom@tromey.com>
2586
2587 * tui/tui-interp.c: Don't include readline.h.
2588 * tui/tui-hooks.c: Don't include readline.h.
2589 * symmisc.c: Include tilde.h, not readline.h.
2590 * symfile.c: Include tilde.h, not readline.h.
2591 * source.c: Include tilde.h, not readline.h.
2592 * solib.c: Include tilde.h, not readline.h.
2593 * psymtab.c: Include tilde.h, not readline.h.
2594 * exec.c: Include tilde.h, not readline.h.
2595 * corelow.c: Include tilde.h, not readline.h.
2596 * cli/cli-dump.c: Include tilde.h, not readline.h.
2597 * cli/cli-cmds.c: Don't include readline.h.
2598
825165c5
TT
25992019-11-05 Tom Tromey <tom@tromey.com>
2600
2601 * tui/tui-disasm.c (struct tui_asm_line) <addr_size>: New member.
2602 (tui_disassemble): Set addr_size.
2603 (tui_disasm_window::set_contents): Use addr_size.
2604
91ae903f
TT
26052019-11-05 Tom Tromey <tom@tromey.com>
2606
2607 * rust-lang.c (rust_language_defn): Update.
2608 * python/py-value.c (valpy_string): Call c_get_string.
2609 * p-lang.c (pascal_language_defn): Update.
2610 * opencl-lang.c (opencl_language_defn): Update.
2611 * objc-lang.c (objc_language_defn): Update.
2612 * m2-lang.c (m2_language_defn): Update.
2613 * language.c (unknown_language_defn, auto_language_defn): Update.
2614 (default_get_string): Remove.
2615 * guile/scm-value.c (gdbscm_value_to_string): Use c_get_string.
2616 * go-lang.c (go_language_defn): Update.
2617 * f-lang.c (f_language_defn): Update.
2618 * d-lang.c (d_language_defn): Update.
2619 * c-lang.c (c_language_defn, cplus_language_defn)
2620 (asm_language_defn, minimal_language_defn): Update.
2621 * ada-lang.c (ada_language_defn): Update.
2622 * language.h (struct language_defn) <la_get_string>: Remove.
2623 (LA_GET_STRING): Remove.
2624 (default_get_string): Don't declare.
2625
1df2f9ef
TT
26262019-11-05 Tom Tromey <tom@tromey.com>
2627
2628 * tui/tui-source.h (struct tui_source_window): Inline
2629 constructor. Remove destructor.
2630 <style_changed, m_observable>: Move to superclass.
2631 * tui/tui-winsource.h (tui_copy_source_line): Declare.
2632 (struct tui_source_window_base): Move private members to end.
2633 <style_changed, m_observable>: Move from tui_source_window.
2634 * tui/tui-winsource.c (tui_copy_source_line): Move from
2635 tui-source.c. Rename from copy_source_line. Add special handling
2636 for negative line number.
2637 (tui_source_window_base::style_changed): Move from
2638 tui_source_window.
2639 (tui_source_window_base): Register observer.
2640 (~tui_source_window_base): New.
2641 * tui/tui-source.c (copy_source_line): Move to tui-winsource.c;
2642 rename.
2643 (tui_source_window::set_contents): Use tui_copy_source_line.
2644 (tui_source_window::tui_source_window): Move to tui-source.h.
2645 (tui_source_window::~tui_source_window): Remove.
2646 (tui_source_window::style_changed): Move to superclass.
2647 * tui/tui-disasm.c (tui_disassemble): Create string file with
2648 styling, when possible. Add "addr_size" parameter.
2649 (tui_disasm_window::set_contents): Use tui_copy_source_line.
2650 Don't compute maximum size.
2651 (len_without_escapes): New function
2652
5d051055
TT
26532019-11-05 Tom Tromey <tom@tromey.com>
2654
2655 * tui/tui-winsource.h (struct tui_source_element) <line>: Now a
2656 std::string.
2657 * tui/tui-winsource.c (tui_show_source_line): Update.
2658 * tui/tui-source.c (tui_source_window::set_contents): Update.
2659 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
2660
ade7beea
CB
26612019-11-05 Christian Biesinger <cbiesinger@google.com>
2662
2663 * symtab.h (gdb_static_assert): Put && operator at the beginning
2664 of the line instead of the end.
2665
3573abe1
CB
26662019-11-04 Christian Biesinger <cbiesinger@google.com>
2667
2668 * psympriv.h: Add static_asserts for sizeof (general_symbol_info)
2669 and sizeof (symbol).
2670 * symtab.h: Add a static_assert for sizeof (partial_symbol).
2671
dae8b3eb
RO
26722019-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2673
2674 * NEWS (Changes since GDB 8.3): Document Solaris 10 removal.
2675 * configure.host: Mark *-*-solaris2.10* obsolete.
2676 * configure.tgt: Mark Solaris < 11 obsolete.
2677 * MAINTAINERS (Target Instruction Set Architectures) <sparc>:
2678 Update target triplet.
2679
5df96a4e
TT
26802019-11-01 Tom Tromey <tromey@adacore.com>
2681
2682 * utils.c (print_sys_errmsg): Simplify.
2683
b7481649
TT
26842019-11-01 Tom Tromey <tromey@adacore.com>
2685
2686 * gdbsupport/mingw-strerror.c (safe_strerror): Constify result.
2687
e48f6033
CB
26882019-11-01 Christian Biesinger <cbiesinger@google.com>
2689
2690 * configure: Regenerate.
2691 * configure.ac: Remove check for strerror_r.
2692 * gdbsupport/common.m4: Check for strerror_r.
2693
bd5766ec
LM
26942019-11-01 Luis Machado <luis.machado@linaro.org>
2695
2696 PR gdb/25124
2697
2698 * arm-tdep.c (arm_per_objfile): Rename to ...
2699 (arm_per_bfd): ... this.
2700 (arm_objfile_data_key): Rename to ...
2701 (arm_bfd_data_key): ... this.
2702 (arm_find_mapping_symbol): Adjust access to new bfd_key-based
2703 data.
2704 (arm_record_special_symbol): Likewise.
2705
e1709896
AB
27062019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
2707
2708 * ada-typeprint.c (ada_print_typedef): Don't print newline at the
2709 end.
2710 * c-typeprint.c (c_print_typedef): Likewise.
2711 * f-typeprint.c (f_print_typedef): Likewise.
2712 * m2-typeprint.c (m2_print_typedef): Likewise.
2713 * p-typeprint.c (pascal_print_typedef): Likewise.
2714 * rust-lang.c (rust_print_typedef): Likewise.
2715 * symtab.c (print_symbol_info): Print a newline after calling
2716 typedef_print.
2717
165f8965
AB
27182019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
2719
2720 * symtab.c (info_module_cmdlist): New variable.
2721 (info_module_command): New function.
2722 (search_module_symbols): New function.
2723 (info_module_subcommand): New function.
2724 (struct info_modules_var_func_options): New struct.
2725 (info_modules_var_func_options_defs): New variable.
2726 (make_info_modules_var_func_options_def_group): New function.
2727 (info_module_functions_command): New function.
2728 (info_module_variables_command): New function.
2729 (info_module_var_func_command_completer): New function.
2730 (_initialize_symtab): Register new 'info module functions' and
2731 'info module variables' commands.
2732 * symtab.h (typedef symbol_search_in_module): New typedef.
2733 (search_module_symbols): Declare new function.
2734 * NEWS: Mention new commands.
2735
59c35742
AB
27362019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
2737
2738 * dwarf2read.c (dw2_symtab_iter_next): Handle MODULE_DOMAIN.
2739 (dw2_expand_marked_cus): Handle MODULES_DOMAIN.
2740 (dw2_debug_names_iterator::next): Handle MODULE_DOMAIN and
2741 MODULES_DOMAIN.
2742 (scan_partial_symbols): Only create partial module symbols for non
2743 declarations.
2744 * psymtab.c (recursively_search_psymtabs): Handle MODULE_DOMAIN
2745 and MODULES_DOMAIN.
2746 * symtab.c (search_domain_name): Likewise.
2747 (search_symbols): Likewise.
2748 (print_symbol_info): Likewise.
2749 (symtab_symbol_info): Likewise.
2750 (info_modules_command): New function.
2751 (_initialize_symtab): Register 'info modules' command.
2752 * symtab.h (enum search_domain): Add MODULES_DOMAIN.
2753 * NEWS: Mention new 'info modules' command.
2754
aed61d02
PW
27552019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2756
2757 * NEWS: Mention $_gdb_setting, $_gdb_setting_str, $_gdb_maint_setting
2758 and $_gdb_maint_setting_str.
2759
9ad9b77d
PW
27602019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2761
2762 * cli/cli-cmds.c (setting_cmd, value_from_setting)
2763 (gdb_setting_internal_fn, gdb_maint_setting_internal_fn)
2764 (str_value_from_setting, gdb_setting_str_internal_fn)
2765 (gdb_maint_setting_str_internal_fn): New functions.
2766 (_initialize_cli_cmds): Define the new convenience functions.
2767 * gdb/cli/cli-setshow.h (get_setshow_command_value_string): Constify.
2768 * gdb/cli/cli-setshow.c (get_setshow_command_value_string): Constify.
2769
8d6efaa2
CB
27702019-10-31 Christian Biesinger <cbiesinger@google.com>
2771
2772 * agent.c (set_can_use_agent): When the setting is turned on,
2773 look up agent symbols if we don't have them yet.
2774 (agent_new_objfile): Don't look up agent symbols when the agent
2775 setting is off.
2776
33cb1647
CB
27772019-10-31 Christian Biesinger <cbiesinger@google.com>
2778
2779 * config.in: Regenerate.
2780
b231e86a
CB
27812019-10-31 Christian Biesinger <cbiesinger@google.com>
2782
2783 * configure: Regenerate.
2784 * configure.ac: Check for strerror_r.
2785 * gdbsupport/common-utils.h (safe_strerror): Change return value
2786 to const char * and document that this function is now threadsafe.
2787 * gdbsupport/posix-strerror.c (safe_strerror): Make buf
2788 thread_local and call strerror_r, if available.
2789 * utils.c (perror_string): Update.
2790 (print_sys_errmsg): Update.
2791
a2726d4f
LM
27922019-10-31 Luis Machado <luis.machado@linaro.org>
2793
2794 * arm-tdep.c (arm_exidx_data_key): Use bfd_key instead of
2795 objfile_key.
2796 (arm_exidx_new_objfile): Adjust to use objfile->obfd instead of
2797 objfile to fetch per-bfd data.
2798 (arm_find_exidx_entry): Likewise.
2799
75cafaa6
CB
28002019-10-31 Christian Biesinger <cbiesinger@google.com>
2801
2802 * gdbsupport/agent.c (debug_agent): Change type to bool.
2803 (use_agent): Likewise.
2804 (all_agent_symbols_look_up): Likewise.
2805 (agent_loaded_p): Change return value to bool.
2806 (agent_look_up_symbols): Update.
2807 (agent_capability_check): Change return value to bool.
2808 * gdbsupport/agent.h (agent_loaded_p): Likewise.
2809 (debug_agent): Change type to bool.
2810 (use_agent): Likewise.
2811 (agent_capability_check): Change return value to bool.
2812
808590ec
CB
28132019-10-30 Christian Biesinger <cbiesinger@google.com>
2814
2815 * minsyms.c (clear_minimal_symbol_hash_tables): New function.
2816 (build_minimal_symbol_hash_tables): Code to clear the table moved
2817 to clear_minimal_symbol_hash_tables.
2818 (minimal_symbol_reader::install): Call clear_minimal_symbol_hash_tables
2819 when needed.
2820
f18ad8a1
SM
28212019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2822
2823 * infcmd.c: Remove includes.
2824 * infrun.c: Remove includes.
2825
de93309a
SM
28262019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2827
2828 * ada-lang.h (GROW_VECT): Move to ada-lang.c.
2829 (grow_vect): Remove declaration.
2830 (ada_type_of_array): Remove declaration.
2831 (ada_update_initial_language): Remove declaration.
2832 (ada_fold_name): Remove declaration.
2833 (ada_fill_in_ada_prototype): Remove declaration.
2834 (user_select_syms): Remove declaration.
2835 (get_selections): Remove declaration.
2836 (ada_tag_type): Remove declaration.
2837 (ada_value_tag): Remove declaration.
2838 (ada_is_others_clause): Remove declaration.
2839 (ada_in_variant): Remove declaration.
2840 (ada_value_struct_elt): Remove declaration.
2841 (ada_attribute_name): Remove declaration.
2842 (ada_system_address_type): Remove declaration.
2843 * ada-lang.c (ada_watch_location_expression): Make static.
2844 (GROW_VECT): Move here from ada-lang.h.
2845 (grow_vect): Make static.
2846 (ada_update_initial_language): Make static.
2847 (ada_fold_name): Make static.
2848 (ada_type_of_array): Make static.
2849 (encoded_ordered_before): Move up.
2850 (sort_choices): Move up.
2851 (print_signatures): Move up.
2852 (ada_print_symbol_signature): Move up.
2853 (get_selections): Move up and make static.
2854 (user_select_syms): Move up and make static.
2855 (ada_value_struct_elt): Move up and make static.
2856 (ada_tag_type): Make static.
2857 (ada_value_tag): Make static.
2858 (ada_is_others_clause): Make static.
2859 (ada_in_variant): Make static.
2860 (ada_attribute_name): Make static.
2861
cdc46a9f
SM
28622019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2863
2864 * ada-lang.c: Remove includes.
2865 * ada-typeprint.c: Remove includes.
2866 * ada-valprint.c: Remove includes.
2867
90421c56
SM
28682019-10-29 Simon Marchi <simon.marchi@efficios.com>
2869
2870 * addrmap.c: Add static assertions of type size, moved from
2871 _initialize_addrmap.
2872 (_initialize_addrmap): Remove.
2873
31edb802
CB
28742019-10-29 Christian Biesinger <cbiesinger@google.com>
2875
2876 * coffread.c (record_minimal_symbol): Update.
2877 (process_coff_symbol): Update.
2878 * dbxread.c (read_dbx_symtab): Update.
2879 * dwarf2read.c (add_partial_symbol): Update.
2880 (fixup_go_packaging): Update.
2881 (load_partial_dies): Update.
2882 (new_symbol): Update.
2883 * elfread.c (record_minimal_symbol): Change signature to use
2884 gdb::string_view instead of name+len.
2885 (elf_symtab_read): Update.
2886 (elf_rel_plt_read): Update.
2887 * mdebugread.c (parse_partial_symbols): Update.
2888 (handle_psymbol_enumerators): Update.
2889 (new_symbol): Update.
2890 * minsyms.c (minimal_symbol_reader::record_full): Change signature
2891 to use gdb::string_view instead of name+len.
2892 * minsyms.h (class minimal_symbol_reader) <record_full>: Likewise.
2893 * psympriv.h (add_psymbol_to_list): Likewise.
2894 * psymtab.c (add_psymbol_to_bcache): Likewise.
2895 (add_psymbol_to_list): Likewise.
2896 * stabsread.c (define_symbol): Update.
2897 * symtab.c (symbol_set_names): Change signature to use gdb::string_view.
2898 * symtab.h (SYMBOL_SET_NAMES): Likewise.
2899 (symbol_set_names): Likewise.
2900 * xcoffread.c (scan_xcoff_symtab): Update.
2901
0c921b21
CB
29022019-10-29 Christian Biesinger <cbiesinger@google.com>
2903
2904 * symtab.h (symbol_set_names): Document that copy_name must be
2905 set to true for non-nullterminated strings.
2906 * symtab.c (symbol_set_names): Only make a nullterminated copy of
2907 linkage_name if the entry was not found and we need to demangle.
2908
35e65c49
CB
29092019-10-29 Christian Biesinger <cbiesinger@google.com>
2910
2911 * Makefile.in (HFILES_NO_SRCDIR): Add gdb_binary_search.h.
2912 * dwarf2-frame.c (bsearch_fde_cmp): Update.
2913 (dwarf2_frame_find_fde): Replace bsearch with gdb::binary_search.
2914 * gdbsupport/gdb_binary_search.h: New file.
2915
ed2a2229
CB
29162019-10-29 Christian Biesinger <cbiesinger@google.com>
2917
2918 * NEWS: Mention new --with-system-gdbinit-dir option.
2919 * config.in: Regenerate.
2920 * configure: Regenerate.
2921 * configure.ac: Add new option --with-system-gdbinit-dir.
2922 * extension.c (get_ext_lang_of_file): Return extension_language_gdb
2923 for a ".gdb" suffix.
2924 * main.c (get_init_files): Change system_gdbinit argument to
2925 a vector and return the files in SYSTEM_GDBINIT_DIR in
2926 addition to SYSTEM_GDBINIT.
2927 (captured_main_1): Update.
2928 (print_gdb_help): Update.
2929 * top.c (print_gdb_configuration): Also print the value of
2930 SYSTEM_GDBINIT_DIR.
2931
87f34879
CB
29322019-10-28 Christian Biesinger <cbiesinger@google.com>
2933
2934 * gdbsupport/common-utils.h (startswith): Add an overloaded version
2935 that takes gdb::string_view arguments.
2936
30baf67b
TV
29372019-10-26 Tom de Vries <tdevries@suse.de>
2938
2939 * aarch64-linux-tdep.c: Fix typos in comments.
2940 * aarch64-tdep.c: Same.
2941 * ada-lang.c: Same.
2942 * amd64-nat.c: Same.
2943 * arc-tdep.c: Same.
2944 * arch/aarch64-insn.c: Same.
2945 * block.c: Same.
2946 * breakpoint.h: Same.
2947 * btrace.h: Same.
2948 * c-varobj.c: Same.
2949 * cli/cli-decode.c: Same.
2950 * cli/cli-script.c: Same.
2951 * cli/cli-utils.h: Same.
2952 * coff-pe-read.c: Same.
2953 * coffread.c: Same.
2954 * compile/compile-cplus-symbols.c: Same.
2955 * compile/compile-object-run.c: Same.
2956 * completer.c: Same.
2957 * corelow.c: Same.
2958 * cp-support.c: Same.
2959 * demangle.c: Same.
2960 * dwarf-index-write.c: Same.
2961 * dwarf2-frame.c: Same.
2962 * dwarf2-frame.h: Same.
2963 * eval.c: Same.
2964 * frame-base.h: Same.
2965 * frame.h: Same.
2966 * gdbcmd.h: Same.
2967 * gdbtypes.h: Same.
2968 * gnu-nat.c: Same.
2969 * guile/scm-objfile.c: Same.
2970 * i386-tdep.c: Same.
2971 * i386-tdep.h: Same.
2972 * infcall.c: Same.
2973 * infcall.h: Same.
2974 * linux-nat.c: Same.
2975 * m68k-tdep.c: Same.
2976 * macroexp.c: Same.
2977 * memattr.c: Same.
2978 * mi/mi-cmd-disas.c: Same.
2979 * mi/mi-getopt.h: Same.
2980 * mi/mi-main.c: Same.
2981 * minsyms.c: Same.
2982 * nat/aarch64-sve-linux-sigcontext.h: Same.
2983 * objfiles.h: Same.
2984 * ppc-linux-nat.c: Same.
2985 * ppc-linux-tdep.c: Same.
2986 * ppc-tdep.h: Same.
2987 * progspace.h: Same.
2988 * prologue-value.h: Same.
2989 * python/py-evtregistry.c: Same.
2990 * python/py-instruction.h: Same.
2991 * record-btrace.c: Same.
2992 * record-full.c: Same.
2993 * remote.c: Same.
2994 * rs6000-tdep.c: Same.
2995 * ser-tcp.c: Same.
2996 * sol-thread.c: Same.
2997 * sparc-sol2-tdep.c: Same.
2998 * sparc64-tdep.c: Same.
2999 * stabsread.c: Same.
3000 * symfile.c: Same.
3001 * symtab.h: Same.
3002 * target.c: Same.
3003 * tracepoint.c: Same.
3004 * tui/tui-data.h: Same.
3005 * tui/tui-io.c: Same.
3006 * tui/tui-win.c: Same.
3007 * tui/tui.c: Same.
3008 * unittests/rsp-low-selftests.c: Same.
3009 * user-regs.h: Same.
3010 * utils.c: Same.
3011 * utils.h: Same.
3012 * valarith.c: Same.
3013 * valops.c: Same.
3014 * valprint.c: Same.
3015 * valprint.h: Same.
3016 * value.c: Same.
3017 * value.h: Same.
3018 * varobj.c: Same.
3019 * x86-nat.h: Same.
3020 * xtensa-tdep.c: Same.
3021
1834d45f
AT
30222019-10-25 Ali Tamur <tamur@google.com>
3023
3024 * charset.c (find_charset_names): Reflect API change.
3025
5396ae17
CB
30262019-10-25 Christian Biesinger <cbiesinger@google.com>
3027
3028 * symtab.c (struct demangled_name_entry): Change demangled name
3029 to a unique_xmalloc_ptr<char>, now that we don't allocate it as
3030 part of the struct anymore.
3031 (symbol_set_names): No longer obstack allocate + copy the demangled
3032 name, just store the allocated name from bfd.
3033
93878f47
TT
30342019-10-25 Tom Tromey <tromey@adacore.com>
3035
3036 * dwarf2-frame.c (dwarf2_cie_table): Now a typedef.
3037 (bsearch_cie_cmp, add_cie): Remove.
3038 (find_cie): Reimplement.
3039 (decode_frame_entry_1, decode_frame_entry): Change type. Update.
3040 (dwarf2_build_frame_info): Update.
3041
7b71fc97
L
30422019-10-24 H.J. Lu <hongjiu.lu@intel.com>
3043
3044 PR gdb/25126
3045 * symfile.c (reread_symbols): Call forget_cached_source_info to
3046 clear the stale source cache.
3047
cbb5a2ea
CB
30482019-10-24 Christian Biesinger <cbiesinger@google.com>
3049
3050 * configure: Regenerate.
3051 * configure.ac: Remove code that sets python_has_threads.
3052
71737c43
CB
30532019-10-24 Christian Biesinger <cbiesinger@google.com>
3054
3055 * config.in: Regenerate.
3056 * configure: Regenerate.
3057 * configure.ac: Remove the code that uses sed to get the python
3058 version and defines HAVE_LIBPYTHON2_6 / HAVE_LIBPYTHON2_7.
3059
33d569b7
AB
30602019-10-24 Andrew Burgess <andrew.burgess@embecosm.com>
3061
3062 * python/py-progspace.c (pspy_block_for_pc): Return None for all
3063 error paths.
3064
f16f7b7c
TT
30652019-10-23 Tom Tromey <tom@tromey.com>
3066
3067 * arc-tdep.c: Remove ".." from include.
3068 * frv-tdep.c: Remove ".." from include.
3069 * lm32-tdep.c: Remove ".." from include.
3070 * microblaze-tdep.c: Remove ".." from include.
3071 * or1k-tdep.h: Remove ".." from include.
3072 * s12z-tdep.c: Remove ".." from include.
3073 * Makefile.in (OPCODES_CFLAGS): Add comment.
3074 (TOP_CFLAGS): New variable.
3075 (INTERNAL_CFLAGS_BASE): Add TOP_CFLAGS.
3076
6999161a
TT
30772019-10-23 Tom Tromey <tom@tromey.com>
3078
3079 * Makefile.in (READLINE_DIR): Update.
3080
12e7c35e
TBA
30812019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3082
3083 * infcall.c (call_function_by_hand_dummy): Fix the function
3084 comment. And extract out a code section into...
3085 (reserve_stack_space): ...this new function.
3086
37055cad
TBA
30872019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3088
3089 * infcall.c (value_arg_coerce): Remove an unused parameter.
3090 (call_function_by_hand_dummy): Update the call to
3091 'value_arg_coerce'.
3092
39bcc47c
TBA
30932019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3094
3095 * infcall.c (call_function_by_hand_dummy): Refactor.
3096
bd888c0f
TBA
30972019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3098
3099 * MAINTAINERS (Write After Approval): Add Tankut Baris Aktemur.
3100
c12d372d
TT
31012019-10-23 Tom Tromey <tom@tromey.com>
3102
3103 * configure: Rebuild.
3104 * configure.ac: Don't check for sigprocmask.
3105 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for sigprocmask.
3106
4d0b984b
TT
31072019-10-23 Tom Tromey <tom@tromey.com>
3108
3109 * configure: Rebuild.
3110 * acinclude.m4: Use m4_include, not sinclude.
3111
7e785608
TV
31122019-10-23 Tom de Vries <tdevries@suse.de>
3113
3114 PR breakpoints/24687
3115 * symtab.c (iterate_over_some_symtabs): Apply gdb_realpath on fullname.
3116
403772ef
CB
31172019-10-22 Christian Biesinger <cbiesinger@google.com>
3118
3119 * symtab.c (struct demangled_name_entry) <language>: Change from
3120 bitfield to regular variable.
3121
3a494279
CB
31222019-10-22 Christian Biesinger <cbiesinger@google.com>
3123
3124 * symtab.c (struct demangled_name_entry): Add a constructor.
3125 (free_demangled_name_entry): New function to call the destructor
3126 for demangled_name_entry.
3127 (create_demangled_names_hash): Pass free_demangled_name_entry to
3128 htab_create_alloc.
3129 (symbol_set_names): Call placement new for demangled_name_entry.
3130 * utils.c: No longer include xxhash.h here, now that fast_hash
3131 is inlined in the header.
3132 * utils.h: Instead, include it here.
3133
ccb1ba62
CB
31342019-10-22 Christian Biesinger <cbiesinger@google.com>
3135
3136 * Makefile.in: Link with libxxhash.
3137 * config.in: Regenerate.
3138 * configure: Regenerate.
3139 * configure.ac: Search for libxxhash.
3140 * utils.c (fast_hash): Use xxhash if present.
3141
1a6ff1a9
CB
31422019-10-22 Christian Biesinger <cbiesinger@google.com>
3143
3144 * utils.h (fast_hash): New function.
3145 * symtab.c (hash_demangled_name_entry): Call new function
3146 fast_hash.
3147
7bb43059
CB
31482019-10-22 Christian Biesinger <cbiesinger@google.com>
3149
3150 * symtab.c (struct demangled_name_entry): Change type of mangled
3151 to gdb::string_view. Also adds a constructor that takes the
3152 mangled name.
3153 (hash_demangled_name_entry): Update.
3154 (eq_demangled_name_entry): Update.
3155 (free_demangled_name_entry): New function to call the destructor
3156 now that this is not a POD anymore.
3157 (create_demangled_names_hash): Pass free_demangled_name_entry to
3158 htab_create_alloc.
3159 (symbol_set_names): Update.
3160
7ba99d21
AT
31612019-10-21 Ali Tamur <tamu@google.com>
3162
3163 * dwarf2read.c (dir_index): Change type.
3164 (file_name_index): Likewise.
3165 (line_header::include_dir_at): Change comment and implementation on
3166 whether it is DWARF 5.
3167 (line_header::is_valid_file_index): New function.
3168 (line_header::file_name_at): Change comment and implementation on
3169 whether it is DWARF 5.
3170 (line_header::file_names): Change to private field renamed as
3171 m_file_names and introduce a new accessor method.
3172 (line_header::file_names_size): New method.
3173 (line_header::include_dirs): Change to private field and rename as
3174 m_include_dirs.
3175 (dw2_get_file_names_reader): Define local var at a smaller scope and
3176 reflect API change.
3177 (dwarf2_cu::setup_type_unit_groups): Reflect API change.
3178 (process_structure_scope): Likewise.
3179 (line_header::add_include_dir): Change message and reflect renaming.
3180 (line_header::add_file_name): Likewise.
3181 (read_formatted_entries): Handle DW_FORM_data16.
3182 (dwarf_decode_line_header): Fix line header length calculation.
3183 (psymtab_include_file_name): Change comment and API.
3184 (lnp_state_machine::m_file): Update comment and reflect type change.
3185 (lnp_state_machine::record_line): Reflect type change.
3186 (dwarf_decode_lines): Reflect API change.
3187 (file_file_name): Likewise.
3188 (file_full_name): Likewise.
3189
45f47c3a
AB
31902019-10-21 Andrew Burgess <andrew.burgess@embecosm.com>
3191
3192 * objfiles.c (sort_cmp): Ensure that !(a < a) holds true.
3193
e5f3c0e3
TT
31942019-10-21 Tom Tromey <tom@tromey.com>
3195
3196 * tui/tui-winsource.h (tui_exec_info_content): Remove typedef.
3197
a0a461e5
TT
31982019-10-21 Tom Tromey <tom@tromey.com>
3199
3200 * configure.ac (nm.h): Conditionally create nm.h link. Subst
3201 NM_H. Use AC_CONFIG_LINKS.
3202 * configure: Rebuild.
3203 * Makefile.in (NM_H): New variable.
3204 (generated_files): Add NM_H. Remove gcore.
3205 (nm.h, stamp-nmh): New targets.
3206
54d83b8d
TT
32072019-10-20 Tom Tromey <tom@tromey.com>
3208
3209 * objfiles.h (unlink_objfile, put_objfile_before): Don't declare.
3210 * objfiles.c (unlink_objfile): Move earlier. Now static. Remove
3211 obsolete comment.
3212 (put_objfile_before): Now static.
3213
23771117
SM
32142019-10-19 Simon Marchi <simon.marchi@polymtl.ca>
3215
3216 * gdbsupport/common-utils.h (startswith): Change return type to
3217 bool.
3218
39ef2f62
CB
32192019-10-19 Christian Biesinger <cbiesinger@google.com>
3220
3221 * bcache.c (bcache::print_statistics): Use std::sort instead of qsort.
3222 * breakpoint.c (bp_locations_compare): Rename to...
3223 (bp_location_is_less_than): ...this, and change to std::sort semantics.
3224 (update_global_location_list): Use std::sort instead of qsort.
3225 * buildsym.c (compare_line_numbers): Rename to...
3226 (lte_is_less_than): ...this, and change to std::sort semantics.
3227 (buildsym_compunit::end_symtab_with_blockvector): Use std::sort
3228 instead of qsort.
3229 * disasm.c (compare_lines): Rename to...
3230 (line_is_less_than): ...this, and change to std::sort semantics.
3231 (do_mixed_source_and_assembly_deprecated): Call std::sort instead
3232 of qsort.
3233 * dwarf2-frame.c (qsort_fde_cmp): Rename to...
3234 (fde_is_less_than): ...this, and change to std::sort semantics.
3235 (dwarf2_build_frame_info): Call std::sort instead of qsort.
3236 * mdebugread.c (compare_blocks):
3237 (block_is_less_than): ...this, and change to std::sort semantics.
3238 (sort_blocks): Call std::sort instead of qsort.
3239 * objfiles.c (qsort_cmp): Rename to...
3240 (sort_cmp): ...this, and change to std::sort semantics.
3241 (update_section_map): Call std::sort instead of qsort.
3242 * remote.c (compare_pnums): Remove.
3243 (map_regcache_remote_table): Call std::sort instead of qsort.
3244 * utils.c (compare_positive_ints): Remove.
3245 * utils.h (compare_positive_ints): Remove.
3246 * xcoffread.c (compare_lte): Remove.
3247 (arrange_linetable): Call std::sort instead of qsort.
3248
f71433ee
SDJ
32492019-10-19 Sergio Durigan Junior <sergiodj@redhat.com>
3250
3251 * symfile.c (init_entry_point_info): Fix typo.
3252 * i386-darwin-tdep.c (darwin_dwarf_signal_frame_p): Fix typo.
3253
85102364
TV
32542019-10-18 Tom de Vries <tdevries@suse.de>
3255
3256 * aarch64-tdep.c: Fix typos in comments.
3257 * ada-lang.c: Same.
3258 * ada-tasks.c: Same.
3259 * alpha-tdep.c: Same.
3260 * alpha-tdep.h: Same.
3261 * amd64-nat.c: Same.
3262 * amd64-windows-tdep.c: Same.
3263 * arc-tdep.c: Same.
3264 * arc-tdep.h: Same.
3265 * arch-utils.c: Same.
3266 * arm-nbsd-tdep.c: Same.
3267 * arm-tdep.c: Same.
3268 * ax-gdb.c: Same.
3269 * blockframe.c: Same.
3270 * btrace.c: Same.
3271 * c-varobj.c: Same.
3272 * coff-pe-read.c: Same.
3273 * coffread.c: Same.
3274 * cris-tdep.c: Same.
3275 * darwin-nat.c: Same.
3276 * dbxread.c: Same.
3277 * dcache.c: Same.
3278 * disasm.c: Same.
3279 * dtrace-probe.c: Same.
3280 * dwarf-index-write.c: Same.
3281 * dwarf2-frame-tailcall.c: Same.
3282 * dwarf2-frame.c: Same.
3283 * dwarf2read.c: Same.
3284 * eval.c: Same.
3285 * exceptions.c: Same.
3286 * fbsd-tdep.c: Same.
3287 * findvar.c: Same.
3288 * frame.c: Same.
3289 * frv-tdep.c: Same.
3290 * gnu-v3-abi.c: Same.
3291 * go32-nat.c: Same.
3292 * h8300-tdep.c: Same.
3293 * hppa-tdep.c: Same.
3294 * i386-linux-tdep.c: Same.
3295 * i386-tdep.c: Same.
3296 * ia64-libunwind-tdep.c: Same.
3297 * ia64-tdep.c: Same.
3298 * infcmd.c: Same.
3299 * infrun.c: Same.
3300 * linespec.c: Same.
3301 * linux-nat.c: Same.
3302 * linux-thread-db.c: Same.
3303 * machoread.c: Same.
3304 * mdebugread.c: Same.
3305 * mep-tdep.c: Same.
3306 * mn10300-tdep.c: Same.
3307 * namespace.c: Same.
3308 * objfiles.c: Same.
3309 * opencl-lang.c: Same.
3310 * or1k-tdep.c: Same.
3311 * osabi.c: Same.
3312 * ppc-linux-nat.c: Same.
3313 * ppc-linux-tdep.c: Same.
3314 * ppc-sysv-tdep.c: Same.
3315 * printcmd.c: Same.
3316 * procfs.c: Same.
3317 * record-btrace.c: Same.
3318 * record-full.c: Same.
3319 * remote-fileio.c: Same.
3320 * remote.c: Same.
3321 * rs6000-tdep.c: Same.
3322 * s12z-tdep.c: Same.
3323 * score-tdep.c: Same.
3324 * ser-base.c: Same.
3325 * ser-go32.c: Same.
3326 * skip.c: Same.
3327 * sol-thread.c: Same.
3328 * solib-svr4.c: Same.
3329 * solib.c: Same.
3330 * source.c: Same.
3331 * sparc-nat.c: Same.
3332 * sparc-sol2-tdep.c: Same.
3333 * sparc-tdep.c: Same.
3334 * sparc64-tdep.c: Same.
3335 * stabsread.c: Same.
3336 * stack.c: Same.
3337 * symfile.c: Same.
3338 * symtab.c: Same.
3339 * target-descriptions.c: Same.
3340 * target-float.c: Same.
3341 * thread.c: Same.
3342 * utils.c: Same.
3343 * valops.c: Same.
3344 * valprint.c: Same.
3345 * value.c: Same.
3346 * varobj.c: Same.
3347 * windows-nat.c: Same.
3348 * xcoffread.c: Same.
3349 * xstormy16-tdep.c: Same.
3350 * xtensa-tdep.c: Same.
3351
c5adaa19
TT
33522019-10-17 Tom Tromey <tromey@adacore.com>
3353
3354 * configure: Rebuild.
3355 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
3356 in AC_CONFIG_FILES invocation.
3357 * Makefile.in (Makefile, data-directory/Makefile, stamp-h): Use
3358 new-style config.status invocation.
3359
405feb71
TV
33602019-10-17 Tom de Vries <tdevries@suse.de>
3361
3362 * arm-nbsd-nat.c: Fix typos in comments.
3363 * arm-tdep.c: Same.
3364 * darwin-nat-info.c: Same.
3365 * dwarf2read.c: Same.
3366 * elfread.c: Same.
3367 * event-top.c: Same.
3368 * findvar.c: Same.
3369 * gdbtypes.c: Same.
3370 * hppa-tdep.c: Same.
3371 * i386-tdep.c: Same.
3372 * jit.c: Same.
3373 * main.c: Same.
3374 * mdebugread.c: Same.
3375 * moxie-tdep.c: Same.
3376 * nto-procfs.c: Same.
3377 * osabi.c: Same.
3378 * ppc-linux-tdep.c: Same.
3379 * remote.c: Same.
3380 * riscv-tdep.c: Same.
3381 * s390-tdep.c: Same.
3382 * sh-tdep.c: Same.
3383 * sparc-linux-tdep.c: Same.
3384 * sparc-nat.c: Same.
3385 * stack.c: Same.
3386 * target-descriptions.c: Same.
3387 * top.c: Same.
3388 * varobj.c: Same.
3389
befcd486
TT
33902019-10-16 Tom Tromey <tom@tromey.com>
3391
3392 * objfiles.h (struct objfile) <original_name>: Now const.
3393
17bfe554
CB
33942019-10-16 Christian Biesinger <cbiesinger@google.com>
3395
3396 * gdbsupport/gdb_setjmp.h (SIGSETJMP): Allow passing in the value to
3397 pass on to sigsetjmp's second argument.
3398 * cp-support.c (gdb_demangle): Unblock SIGSEGV if we caught a crash.
3399
950b7495
KS
34002019-10-16 Keith Seitz <keiths@redhat.com>
3401
3402 PR gdb/23567
3403 * dwarf2read.c (dwarf2_per_objfile::locate_sections): Discard
3404 sections whose size is greater than the file size.
3405
ff371ec9
JW
34062019-10-16 Jim Wilson <jimw@sifive.com>
3407
3408 * riscv-tdep.c (riscv_gcc_target_options): New.
3409 (riscv_gnu_triplet_regexp): New.
3410 (riscv_gdbarch_init): Call set_gdbarch_gcc_triplet_options and
3411 set_gdbarch_gnu_triplet_regexp.
3412
fec4e896
CB
34132019-10-16 Christian Biesinger <cbiesinger@google.com>
3414
3415 * Makefile.in: Add xml-builtin.h.
3416 * features/feature_to_c.sh: Add an include for xml-builtin.h
3417 to ensure that the compiler checks that the types match.
3418 * xml-builtin.h: New file.
3419 * xml-support.c (fetch_xml_builtin): Add missing const.
3420 * xml-support.h: Remove declaration of xml_builtins.
3421
d10eccaa
TV
34222019-10-16 Tom de Vries <tdevries@suse.de>
3423
3424 PR tdep/25096
3425 * amd64-tdep.c (amd64_classify_aggregate_field): Factor out of ...
3426 (amd64_classify_aggregate): ... here.
3427 (amd64_classify_aggregate_field): Handled fiels of nested structs
3428 recursively.
3429
745ff14e
TV
34302019-10-16 Tom de Vries <tdevries@suse.de>
3431
3432 PR tdep/24104
3433 * amd64-tdep.c (amd64_push_arguments): Handle AMD64_NO_CLASS in loop
3434 that handles 'theclass'.
3435
791b7405
AB
34362019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
3437
3438 * linespec.c (decode_digits_ordinary): Update comment.
3439 * make-target-delegates: No longer need to handle VEC case.
3440 * memrange.c (normalize_mem_ranges): Update comment.
3441 * namespace.c (add_using_directive): Update comment.
3442 * objc-lang.c (uniquify_strings): Update comment.
3443 * ppc-linux-nat.c (struct thread_points): Update comment.
3444 * probe.h (find_probes_in_objfile): Update comment.
3445 * target.h (enum flash_preserve_mode): Update comment.
3446 * varobj.c (varobj_restrict_range): Update comment.
3447 * varobj.h (varobj_list_children): Update comment.
3448
0dc32745
AB
34492019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
3450
3451 * Makefile.in: Remove references to vec.h and vec.c.
3452 * aarch64-tdep.c: No longer include vec.h.
3453 * ada-lang.c: Likewise.
3454 * ada-lang.h: Likewise.
3455 * arm-tdep.c: Likewise.
3456 * ax.h: Likewise.
3457 * breakpoint.h: Likewise.
3458 * charset.c: Likewise.
3459 * cp-support.h: Likewise.
3460 * dtrace-probe.c: Likewise.
3461 * dwarf2read.c: Likewise.
3462 * extension.h: Likewise.
3463 * gdb_bfd.c: Likewise.
3464 * gdbsupport/gdb_vecs.h: Likewise.
3465 * gdbsupport/vec.c: Remove.
3466 * gdbsupport/vec.h: Remove.
3467 * gdbthread.h: Likewise.
3468 * guile/scm-type.c: Likewise.
3469 * inline-frame.c: Likewise.
3470 * machoread.c: Likewise.
3471 * memattr.c: Likewise.
3472 * memrange.h: Likewise.
3473 * namespace.h: Likewise.
3474 * nat/linux-btrace.h: Likewise.
3475 * osdata.c: Likewise.
3476 * parser-defs.h: Likewise.
3477 * progspace.h: Likewise.
3478 * python/py-type.c: Likewise.
3479 * record-btrace.c: Likewise.
3480 * rust-exp.y: Likewise.
3481 * solib-target.c: Likewise.
3482 * stap-probe.c: Likewise.
3483 * target-descriptions.c: Likewise.
3484 * target-memory.c: Likewise.
3485 * target.h: Likewise.
3486 * varobj.c: Likewise.
3487 * varobj.h: Likewise.
3488 * xml-support.h: Likewise.
3489
ae640021
AB
34902019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
3491
3492 * gdb/dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile):
3493 Update for new std::vector based implementation.
3494 (process_psymtab_comp_unit_reader): Likewise.
3495 (scan_partial_symbols): Likewise.
3496 (recursively_compute_inclusions): Likewise.
3497 (compute_compunit_symtab_includes): Likewise.
3498 (process_imported_unit_die): Likewise.
3499 (queue_and_load_dwo_tu): Likewise.
3500 (follow_die_sig_1): Likewise.
3501 * gdb/dwarf2read.h: Remove DEF_VEC_P.
3502 (typedef dwarf2_per_cu_ptr): Remove.
3503 (struct dwarf2_per_cu_data) <imported_symtabs_empty>: New
3504 function.
3505 (struct dwarf2_per_cu_data) <imported_symtabs_push>: New function.
3506 (struct dwarf2_per_cu_data) <imported_symtabs_size>: New function.
3507 (struct dwarf2_per_cu_data) <imported_symtabs_free>: New function.
3508 (struct dwarf2_per_cu_data) <imported_symtabs>: Change to
3509 std::vector.
3510
55dfc88f
TT
35112019-10-15 Tom Tromey <tromey@adacore.com>
3512
3513 * windows-nat.c (windows_nat_target::resume): Use %x when logging
3514 TID.
3515
96b49c5e
TT
35162019-10-15 Tom Tromey <tromey@adacore.com>
3517
3518 * windows-nat.c (windows_nat_target::fetch_registers)
3519 (windows_nat_target::store_registers): Rename "pid" to "tid".
3520
953cff56
TT
35212019-10-15 Tom Tromey <tromey@adacore.com>
3522
3523 * gdbarch.h, gdbarch.c: Rebuild.
3524 * gdbarch.sh (gcc_target_options): Change return type to
3525 std::string.
3526 * compile/compile.c (get_args): Update.
3527 * nios2-tdep.c (nios2_gcc_target_options): Return std::string.
3528 * arm-linux-tdep.c (arm_linux_gcc_target_options): Return
3529 std::string.
3530 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): Return
3531 std::string.
3532 * arch-utils.c (default_gcc_target_options): Return std::string.
3533 * arch-utils.h (default_gcc_target_options): Return std::string.
3534 * s390-tdep.c (s390_gcc_target_options): Return std::string.
3535
81e6b8eb
CB
35362019-10-15 Christian Biesinger <cbiesinger@google.com>
3537
3538 * breakpoint.c (breakpoint_chain): Make static.
3539 * tui/tui-winsource.c: Call iterate_over_breakpoints instead
3540 of accessing breakpoint_chain.
3541
95da600f
CB
35422019-10-15 Christian Biesinger <cbiesinger@google.com>
3543
3544 * breakpoint.c (iterate_over_breakpoints): Change function pointer
3545 to a gdb::function_view and return value to bool.
3546 * breakpoint.h (iterate_over_breakpoints): Likewise.
3547 * dummy-frame.c (pop_dummy_frame_bpt): Update.
3548 (pop_dummy_frame): Update.
3549 * guile/scm-breakpoint.c (bpscm_build_bp_list): Update.
3550 (gdbscm_breakpoints): Update.
3551 * python/py-breakpoint.c (build_bp_list): Update.
3552 (gdbpy_breakpoints): Update.
3553 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
3554 Update.
3555 (bpfinishpy_handle_stop): Update.
3556 (bpfinishpy_handle_exit): Update.
3557 * solib-svr4.c (svr4_update_solib_event_breakpoint): Update.
3558 (svr4_update_solib_event_breakpoints): Update.
3559
ba18312d
AA
35602019-10-15 Andreas Arnez <arnez@linux.ibm.com>
3561
3562 * s390-tdep.c (s390_effective_inner_type): Ignore static fields
3563 when unwrapping single-field structs.
3564
6acc1a0b
SM
35652019-10-14 Simon Marchi <simon.marchi@polymtl.ca>
3566
3567 * dwarf2read.c: Remove includes.
3568
284782de
SM
35692019-10-13 Simon Marchi <simon.marchi@polymtl.ca>
3570
3571 * ui-out.c (ui_out::call_do_message): Silence
3572 -Wformat-nonliteral warning.
3573
073bbbb0
SM
35742019-10-12 Simon Marchi <simon.marchi@polymtl.ca>
3575
3576 * breakpoint.c: Remove some includes: continuations.h, skip.h,
3577 mi/mi-main.h, readline/readline.h, readline/history.h. Add
3578 include: readline/tilde.h.
3579
7b9a15e1
CB
35802019-10-12 Christian Biesinger <cbiesinger@google.com>
3581
3582 * remote.c (remote_target::get_trace_status): Remove declaration of
3583 trace_regblock_size.
3584
cc8dee1f
CB
35852019-10-12 Christian Biesinger <cbiesinger@google.com>
3586
3587 * cli/cli-cmds.c (max_user_call_depth): Move comment to header.
3588 (show_user): Remove declaration of cmdlist.
3589 * cli/cli-cmds.h (max_user_call_depth): Declare.
3590 * cli/cli-script.c (execute_user_command): Remove declaration
3591 of max_user_call_depth.
3592
a83d4ef6
JW
35932019-10-11 Jim Wilson <jimw@sifive.com>
3594
5f93c5a6
JW
3595 * gdbsupport/print-utils.h (pulongest): Fix comment.
3596 (plongest): Likewise.
3597 (phex): Add missing comment, mention leading zeros.
3598 (phex_nz): Add mention of no leading zeros to comment.
3599
a83d4ef6
JW
3600 * riscv-tdep.c (riscv_push_dummy_code): Change %lld to %s and use
3601 plongest instead of unsigned long long cast.
3602
26344e0c
CB
36032019-10-10 Christian Biesinger <cbiesinger@google.com>
3604
3605 * main.c (captured_main_1): Include gdbtk.h and remove declarations
3606 for external_editor_command and gdbtk_test.
3607
c2c440a9
CB
36082019-10-10 Christian Biesinger <cbiesinger@google.com>
3609
3610 * mi/mi-cmd-var.c (varobjdebug): Remove declaration.
3611 * varobj.c (varobjdebug): Move comment to...
3612 * varobj.h (varobjdebug): ...here, and declare.
3613
a31bff9d
TT
36142019-10-09 Tom Tromey <tom@tromey.com>
3615
3616 * tui/tui-regs.c (tui_data_window::show_registers): Don't call
3617 erase_data_content.
3618
7523da63
TT
36192019-10-09 Tom Tromey <tom@tromey.com>
3620
3621 * tui/tui-wingeneral.h (tui_delete_win): Don't declare.
3622 * tui/tui-stack.c (tui_locator_window::rerender): Update.
3623 * tui/tui-command.c (tui_cmd_window::resize)
3624 (tui_refresh_cmd_win): Update.
3625 * tui/tui-win.c (tui_resize_all, tui_set_focus_command): Update.
3626 * tui/tui.c (tui_rl_other_window, tui_enable): Update.
3627 * tui/tui-data.c (~tui_gen_win_info): Remove.
3628 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
3629 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
3630 (tui_redisplay_readline, tui_mld_flush)
3631 (tui_mld_erase_entire_line, tui_mld_getc, tui_getc): Update.
3632 * tui/tui-regs.c (tui_data_window::delete_data_content_windows)
3633 (tui_data_window::erase_data_content)
3634 (tui_data_item_window::rerender)
3635 (tui_data_item_window::refresh_window): Update.
3636 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window)
3637 (box_win, tui_gen_win_info::make_window)
3638 (tui_gen_win_info::make_visible): Update.
3639 (tui_delete_win): Remove.
3640 * tui/tui-winsource.c
3641 (tui_source_window_base::do_erase_source_content): Update.
3642 (tui_show_source_line, tui_source_window_base::update_tab_width)
3643 (tui_source_window_base::update_exec_info): Update.
3644 * tui/tui-data.h (struct curses_deleter): New.
3645 (struct tui_gen_win_info) <handle>: Now a unique_ptr.
3646 (struct tui_gen_win_info) <~tui_gen_win_info>: Define.
3647
a7798e7f
TT
36482019-10-09 Tom Tromey <tom@tromey.com>
3649
3650 * tui/tui-wingeneral.h (struct tui_gen_win_info): Don't declare.
3651
5c45899e
TT
36522019-10-09 Tom Tromey <tom@tromey.com>
3653
3654 * tui/tui-data.c (tui_win_is_auxiliary): Remove.
3655 * tui/tui-data.h (tui_win_is_auxiliary): Don't declare.
3656
6d7fd9aa
TT
36572019-10-09 Tom Tromey <tom@tromey.com>
3658
3659 * tui/tui-disasm.c (tui_get_low_disassembly_address): Compute
3660 window height directly.
3661 * tui/tui-layout.h (tui_default_win_viewport_height): Don't
3662 declare.
3663 * tui/tui-layout.c (tui_default_win_height): Remove.
3664 (tui_default_win_viewport_height): Remove.
3665
d2dd1084
TT
36662019-10-09 Tom Tromey <tom@tromey.com>
3667
3668 * tui/tui.h: Remove comments.
3669
cff32449
TV
36702019-10-09 Tom de Vries <tdevries@suse.de>
3671
3672 * python/lib/gdb/printer/bound_registers.py: Use
3673 '^builtin_type_bound128' as regexp argument for
3674 add_builtin_pretty_printer.
3675
6a25e8a2
CB
36762019-10-09 Christian Biesinger <cbiesinger@google.com>
3677
3678 * guile/guile.c (guile_extension_script_ops): Remove forward
3679 declaration and mark as static.
3680 (guile_script_ops): Likewise.
3681 (extension_language_guile): Move further down in the file so
3682 it can reference the definitions for guile_{extension_,}script_ops.
3683
6d9d6da4
AA
36842019-10-09 Andreas Arnez <arnez@linux.ibm.com>
3685
3686 * s390-tdep.c (390_process_record): Handle new arch13 instructions
3687 except SORTL, DFLTCC, and KDSA.
3688
3abea05d
TT
36892019-10-08 Tom Tromey <tromey@adacore.com>
3690
3691 * windows-nat.c (struct windows_thread_info_struct) <sf>: Remove.
3692 (struct safe_symbol_file_add_args): Remove.
3693
dde996e2
TT
36942019-10-08 Tom Tromey <tromey@adacore.com>
3695
3696 * windows-nat.c: Don't include buildsym-legacy.h.
3697
cd6fdaa1
TT
36982019-10-08 Tom Tromey <tromey@adacore.com>
3699
3700 * contrib/ari/gdb_ari.sh (%p): Allow gdb-specific %p extensions.
3701
79bb1944
CB
37022019-10-08 Christian Biesinger <cbiesinger@google.com>
3703
3704 * gdbtypes.c (overload_debug): Move comment to header.
3705 * gdbtypes.h (overload_debug): Declare.
3706 * valops.c: Remove declaration of overload_debug, instead
3707 include gdbtypes.h.
3708
34916edc
CB
37092019-10-08 Christian Biesinger <cbiesinger@google.com>
3710
3711 * language.c (show_language_command): Pass lang_frame_mismatch_warn
3712 through _().
3713 (lang_frame_mismatch_warn): Make const, mark with N_(), and
3714 move comment...
3715 * language.h (lang_frame_mismatch_warn): ... here. Also add
3716 declaration.
3717 * top.c (lang_frame_mismatch_warn): Remove declaration.
3718 (check_frame_language_change): Pass lang_frame_mismatch_warn
3719 through _().
3720
bad5c026
CB
37212019-10-07 Christian Biesinger <cbiesinger@google.com>
3722
3723 * c-lang.h (vtbl_ptr_name): Declare.
3724 * cp-valprint.c (vtbl_ptr_name): Remove "extern" now that we get
3725 it from the header.
3726 * stabsread.c (define_symbol): Remove declaration of vtbl_ptr_name.
3727
51f1fdc3
CB
37282019-10-07 Christian Biesinger <cbiesinger@google.com>
3729
3730 * charset.c (your_gdb_wchar_t_is_bogus): Replace with a
3731 gdb_static_assert.
3732
30d1f018
WP
37332019-10-07 Weimin Pan <weimin.pan@oracle.com>
3734
606813d5
WP
3735 * ../Makefile.def (dependencies): Add all-libctf to all-gdb
3736 * ../Makefile.in: Add "all-gdb: maybe-all-libctf"
30d1f018
WP
3737 * ctfread.c: New file.
3738 * ctfread.h: New file.
3739 * elfread.c: Include ctfread.h.
3740 (struct elfinfo text_p): New member ctfsect.
3741 (elf_locate_sections): Mark CTF section.
3742 (elf_symfile_read): Call elfctf_build_psymtabs.
3743 * Makefile.in (LIBCTF): Add.
3744 (CLIBS): Use it.
3745 (CDEPS): Likewise.
3746 (DIST): Add ctfread.c.
606813d5
WP
3747
37482019-10-07 Andrew Burgess <andrew.burgess@embecosm.com>
3749
3750 * ctfread.c (struct nextfield): Renamed to ...
3751 (struct ctf_nextfield): ... this.
3752 (struct field_info): Renamed to ...
3753 (strut ctf_field_info): ... this.
3754 (attach_fields_to_type): Update for renamed structures.
3755 (ctf_add_member_cb): Likewise.
3756 (ctf_add_enum_member_cb): Likewise.
3757 (process_struct_members): Likewise.
3758 (process_enum_type): Likewise.
30d1f018 3759
518fe38c
WP
37602019-10-07 Weimin Pan <weimin.pan@oracle.com>
3761
3762 * tracectf.h: Rename, was ctf.h.
3763 * tracectf.c: Rename, was ctf.c, replace ctf.h with tracectf.h.
3764 * tracefile.c: Likewise.
3765 * tracepoint.c: Remove unused include ctf.h.
3766 * mi/mi-main.c: Likewise.
3767 * Makefile.in Replace ctf.c with tracectf.c.
3768
225f296a
JB
37692019-10-06 Joel Brobecker <brobecker@adacore.com>
3770
3771 * version.in: Change version number to "9.0.50.DATE-git".
3772
77c2dba3
TT
37732019-10-03 Tom Tromey <tom@tromey.com>
3774
3775 PR rust/24976:
3776 * dwarf2read.c (quirk_rust_enum): Handle single-element unions.
3777
179aed7f
AB
37782019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
3779
3780 * f-lang.c (f_language_defn): Use cp_get_symbol_name_matcher and
3781 cp_search_name_hash.
3782 * NEWS: Add entry about nested function support.
3783
0a4b0913
AB
37842019-10-03 Bernhard Heckel <bernhard.heckel@intel.com>
3785 Andrew Burgess <andrew.burgess@embecosm.com>
3786
3787 * cp-namespace.c (cp_search_static_and_baseclasses): Only search
3788 for nested static variables when searchin VAR_DOMAIN.
3789 * dwarf2read.c (add_partial_symbol): Add nested subroutines to the
3790 global scope, update comment.
3791 (add_partial_subprogram): Call add_partial_subprogram recursively
3792 for nested subroutines when processinng Fortran.
3793 (load_partial_dies): Process the child entities of a subprogram
3794 when processing Fortran.
3795 (partial_die_parent_scope): Handle building scope
3796 for Fortran nested functions.
3797 (process_die): Record that nested functions have a scope.
3798 (new_symbol): Always record Fortran subprograms on the global
3799 symbol list.
3800 (determine_prefix): How to build the prefix for Fortran
3801 subprograms.
3802
d8c06f22
AB
38032019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
3804
3805 * linux-nat.c (linux_nat_filter_event): Don't ignore SIGSTOP if we
3806 have just sent the thread a SIGSTOP and are waiting for it to
3807 arrive.
3808
a8b3b8e9
AB
38092019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
3810
3811 * btrace.c (btrace_add_pc): Remove whitespace before the template
3812 parameter in 'std::vector <...>'.
3813 (parse_xml_btrace_block): Likewise.
3814 (btrace_maint_decode_pt): Likewise.
3815 (btrace_maint_update_packets): Likewise.
3816 (btrace_maint_print_packets): Likewise.
3817 * btrace.h (struct btrace_maint_info): Likewise.
3818 * dwarf2read.c (struct type_unit_group): Likewise.
3819 (build_type_psymtabs_reader): Likewise.
3820 * gdbsupport/btrace-common.c (btrace_data_append): Likewise.
3821 * gdbsupport/btrace-common.h (struct btrace_data_bts): Likewise.
3822 * nat/linux-btrace.c (perf_event_read_bts): Likewise.
3823
4d825eab
TV
38242019-10-03 Tom de Vries <tdevries@suse.de>
3825
3826 * cli/cli-style.c (_initialize_cli_style): Adding a '.' at the end of
3827 the first line of the help text for set/show style metadata.
3828
80fd2826
TT
38292019-10-02 Tom Tromey <tromey@adacore.com>
3830
3831 * Makefile.in (COMMON_SFILES): Add common-inferior.c.
3832 * gdbsupport/common-inferior.c: New file.
3833 * infcmd.c (startup_with_shell): Don't define.
3834 * nat/fork-inferior.h (startup_with_shell): Don't declare.
3835 * gdbsupport/common-inferior.h (startup_with_shell): Declare.
3836 * inferior.h (startup_with_shell): Don't declare.
3837
70054538
CB
38382019-10-02 Christian Biesinger <cbiesinger@google.com>
3839
3840 * gdbsupport/gdb_assert.h: Include errors.h.
3841 * gdbsupport/gdb_string_view.h: Include gdb_assert.h.
3842
37f6a7f4
TT
38432019-10-02 Tom Tromey <tromey@adacore.com>
3844
3845 * NEWS: Add $_ada_exception entry.
3846 * ada-lang.c (struct ada_catchpoint): Add constructor.
3847 <m_kind>: New member.
3848 (allocate_location_exception, re_set_exception): Remove
3849 "ex" parameter.
3850 (should_stop_exception): Compute $_ada_exception.
3851 (check_status_exception, print_it_exception)
3852 (print_one_exception, print_mention_exception): Remove
3853 "ex" parameter.
3854 (allocate_location_catch_exception, re_set_catch_exception)
3855 (check_status_exception, print_it_catch_exception)
3856 (print_one_catch_exception, print_mention_catch_exception)
3857 (print_recreate_catch_exception)
3858 (allocate_location_catch_exception_unhandled)
3859 (re_set_catch_exception_unhandled)
3860 (check_status_exception, print_it_catch_exception_unhandled)
3861 (print_one_catch_exception_unhandled)
3862 (print_mention_catch_exception_unhandled)
3863 (print_recreate_catch_exception_unhandled)
3864 (allocate_location_catch_assert, re_set_catch_assert)
3865 (check_status_assert, print_it_catch_assert)
3866 (print_one_catch_assert, print_mention_catch_assert)
3867 (print_recreate_catch_assert)
3868 (allocate_location_catch_handlers, re_set_catch_handlers)
3869 (check_status_handlers, print_it_catch_handlers)
3870 (print_one_catch_handlers, print_mention_catch_handlers)
3871 (print_recreate_catch_handlers): Remove.
3872 (create_ada_exception_catchpoint): Update.
3873 (initialize_ada_catchpoint_ops): Update.
3874
fccf9de1
TT
38752019-10-02 Tom Tromey <tromey@adacore.com>
3876
3877 * ada-lang.c (ada_lookup_simple_minsyms): Remove.
3878 (create_excep_cond_exprs): Simplify exception string computation.
3879 (ada_exception_catchpoint_cond_string): Likewise.
3880
4b610737
TT
38812019-10-02 Tom Tromey <tromey@adacore.com>
3882
3883 * symmisc.c (dump_msymbols): Don't use MSYMBOL_VALUE_ADDRESS.
3884 * ada-lang.c (lesseq_defined_than): Handle
3885 LOC_STATIC.
3886 * dwarf2read.c (dwarf2_per_objfile): Add can_copy
3887 parameter.
3888 (dwarf2_has_info): Likewise.
3889 (new_symbol): Set maybe_copied on symbol when
3890 appropriate.
3891 * dwarf2read.h (dwarf2_per_objfile): Add can_copy
3892 parameter.
3893 <can_copy>: New member.
3894 * elfread.c (record_minimal_symbol): Set maybe_copied
3895 on symbol when appropriate.
3896 (elf_symfile_read): Update call to dwarf2_has_info.
3897 * minsyms.c (lookup_minimal_symbol_linkage): New
3898 function.
3899 * minsyms.h (lookup_minimal_symbol_linkage): Declare.
3900 * symtab.c (get_symbol_address, get_msymbol_address):
3901 New functions.
3902 * symtab.h (get_symbol_address, get_msymbol_address):
3903 Declare.
3904 (SYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_ADDRESS): Handle
3905 maybe_copied.
3906 (struct symbol, struct minimal_symbol) <maybe_copied>:
3907 New member.
3908
1dd58850
TT
39092019-10-02 Tom Tromey <tromey@adacore.com>
3910
3911 * source.c (struct current_source_location): New.
3912 (current_source_key): New global.
3913 (current_source_symtab, current_source_line)
3914 (current_source_pspace): Remove.
3915 (get_source_location): New function.
3916 (get_current_source_symtab_and_line)
3917 (set_default_source_symtab_and_line)
3918 (set_current_source_symtab_and_line)
3919 (clear_current_source_symtab_and_line, select_source_symtab)
3920 (info_source_command, print_source_lines_base)
3921 (info_line_command, search_command_helper, _initialize_source):
3922 Update.
3923
5c281dbb
TT
39242019-10-02 Tom Tromey <tromey@adacore.com>
3925
3926 * source.c (select_source_symtab): Don't call
3927 decode_line_with_current_source.
3928
d3d32391
AB
39292019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
3930
3931 * symtab.c (lookup_global_symbol): Search global block.
3932
38583298
TT
39332019-10-02 Tom Tromey <tromey@adacore.com>
3934
3935 * coffread.c (process_coff_symbol): Update.
3936 * dwarf2read.c (var_decode_location, new_symbol): Update.
3937 * mdebugread.c (parse_symbol): Update.
3938 * objfiles.c (relocate_one_symbol): Update.
3939 * stabsread.c (define_symbol, fix_common_block)
3940 (scan_file_globals): Update.
3941 * symtab.h (SYMBOL_VALUE_ADDRESS): Expand to an rvalue.
3942 (SET_SYMBOL_VALUE_ADDRESS): New macro.
3943 * xcoffread.c (process_xcoff_symbol): Update.
3944
9344c18f
AA
39452019-10-02 Andreas Arnez <arnez@linux.ibm.com>
3946
3947 * MAINTAINERS: Update my email address.
3948
df07e2c7
AB
39492019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
3950
3951 * dwarf2read.c (struct type_unit_group) <tus>: Convert to
3952 std::vector.
3953 (build_type_psymtabs_reader): Update for std::vector.
3954 (build_type_psymtab_dependencies): Likewise.
3955 * dwarf2read.h: Remove use of DEF_VEC_P.
3956 (typedef sig_type_ptr): Delete.
3957
554ac434
AB
39582019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
3959
3960 * btrace.c (btrace_maint_clear): Update to handle change from VEC
3961 to std::vector.
3962 (btrace_maint_decode_pt): Likewise, and move allocation of the
3963 vector outside of the loop.
3964 (btrace_maint_update_packets): Update to handle change from VEC to
3965 std::vector.
3966 (btrace_maint_print_packets): Likewise.
3967 (maint_info_btrace_cmd): Likewise.
3968 * btrace.h: Remove use of DEF_VEC_O.
3969 (typedef btrace_pt_packet_s): Delete.
3970 (struct btrace_maint_info) <packets>: Change fromm VEC to
3971 std::vector.
3972 * gdbsupport/btrace-common.h: Remove 'vec.h' include.
3973
46f29a9a
AB
39742019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
3975
3976 * btrace.c (btrace_compute_ftrace_bts): Update for std::vector,
3977 make accesses into the vector constant references.
3978 (btrace_add_pc): Update for std::vector.
3979 (btrace_stitch_bts): Likewise.
3980 (parse_xml_btrace_block): Likewise.
3981 (btrace_maint_update_packets): Likewise.
3982 (btrace_maint_print_packets): Likewise.
3983 (maint_info_btrace_cmd): Likewise.
3984 * gdbsupport/btrace-common.c (btrace_data::fini): Update for
3985 std::vector.
3986 (btrace_data::empty): Likewise.
3987 (btrace_data_append): Likewise.
3988 * gdbsupport/btrace-common.h: Remove use of DEF_VEC_O.
3989 (typedef btrace_block_s): Delete.
3990 (struct btrace_block): Add constructor.
3991 (struct btrace_data_bts) <blocks>: Change to std::vector.
3992 * nat/linux-btrace.c (perf_event_read_bts): Update for
3993 std::vector.
3994 (linux_read_bts): Likewise.
3995
d770d56f
TT
39962019-10-01 Tom Tromey <tom@tromey.com>
3997
3998 * cli/cli-logging.c (show_logging_filename): Use styled_string.
3999
9d636d67
TT
40002019-10-01 Tom Tromey <tom@tromey.com>
4001
4002 * stack.c (print_frame, info_frame_command_core): Use
4003 styled_string.
4004 * linux-thread-db.c (try_thread_db_load_1)
4005 (try_thread_db_load_from_pdir_1): Use styled_string.
4006 * auto-load.c (file_is_auto_load_safe, execute_script_contents)
4007 (auto_load_section_scripts, info_auto_load_local_gdbinit)
4008 (maybe_print_unsupported_script_warning)
4009 (maybe_print_script_not_found_warning): Use styled_string.
4010 * ada-lang.c (user_select_syms): Use styled_string.
4011
7f6aba03
TT
40122019-10-01 Tom Tromey <tom@tromey.com>
4013
4014 * p-lang.c (pascal_printstr): Use metadata style.
4015 * value.c (show_convenience): Use metadata style.
4016 * valprint.c (valprint_check_validity, val_print_optimized_out)
4017 (val_print_not_saved, val_print_unavailable)
4018 (val_print_invalid_address, generic_val_print, val_print)
4019 (value_check_printable, val_print_array_elements): Use metadata
4020 style.
4021 * ui-out.h (class ui_out) <field_fmt>: New overload.
4022 <do_field_fmt>: Add style parameter.
4023 * ui-out.c (ui_out::field_fmt): New overload.
4024 * typeprint.c (type_print_unknown_return_type)
4025 (val_print_not_allocated, val_print_not_associated): Use metadata
4026 style.
4027 * tui/tui-out.h (class tui_ui_out) <do_field_fmt>: Add style
4028 parameter.
4029 * tui/tui-out.c (tui_ui_out::do_field_fmt): Update.
4030 * tracepoint.c (tvariables_info_1): Use metadata style.
4031 * stack.c (print_frame_arg, print_frame_info, print_frame)
4032 (info_frame_command_core): Use metadata style.
4033 * skip.c (info_skip_command): Use metadata style.
4034 * rust-lang.c (rust_print_enum): Use metadata style.
4035 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
4036 metadata style.
4037 * python/py-framefilter.c (py_print_single_arg): Use metadata
4038 style.
4039 * printcmd.c (do_one_display, print_variable_and_value): Use
4040 metadata style.
4041 * p-valprint.c (pascal_val_print)
4042 (pascal_object_print_value_fields): Use metadata style.
4043 * p-typeprint.c (pascal_type_print_base): Use metadata style.
4044 * mi/mi-out.h (class mi_ui_out) <do_field_fmt>: Add style
4045 parameter.
4046 * mi/mi-out.c (mi_ui_out::do_field_fmt): Update.
4047 * m2-valprint.c (m2_print_long_set): Use metadata style.
4048 * m2-typeprint.c (m2_print_type): Use metadata style.
4049 * infcmd.c (print_return_value_1): Use metadata style.
4050 * gnu-v3-abi.c (print_one_vtable): Use metadata style.
4051 * f-valprint.c (info_common_command_for_block): Use metadata
4052 style.
4053 * f-typeprint.c (f_type_print_base): Use metadata style.
4054 * expprint.c (print_subexp_standard): Use metadata style.
4055 * cp-valprint.c (cp_print_value_fields): Use metadata style.
4056 * cli/cli-style.h (class cli_style_option): Add constructor.
4057 (metadata_style): Declare.
4058 * cli/cli-style.c (metadata_style): New global.
4059 (_initialize_cli_style): Register metadata style.
4060 * cli-out.h (class cli_ui_out) <do_field_fmt>: Add style
4061 parameter.
4062 * cli-out.c (cli_ui_out::do_field_fmt): Update.
4063 * c-typeprint.c (c_type_print_base_struct_union)
4064 (c_type_print_base_1): Use metadata style.
4065 * breakpoint.c (watchpoint_value_print)
4066 (print_one_breakpoint_location): Use metadata style.
4067 * break-catch-syscall.c (print_one_catch_syscall): Use metadata
4068 style.
4069 * break-catch-sig.c (signal_catchpoint_print_one): Use metadata
4070 style.
4071 * ada-valprint.c (val_print_packed_array_elements, printstr)
4072 (print_field_values, ada_val_print_ref, ada_val_print): Use
4073 metadata style.
4074 * ada-typeprint.c (print_array_type, ada_print_type): Use metadata
4075 style.
4076 * ada-tasks.c (print_ada_task_info, info_task): Use metadata
4077 style.
4078 * ada-lang.c (user_select_syms): Use metadata style.
4079
14309bb6
TT
40802019-10-01 Tom Tromey <tom@tromey.com>
4081
4082 * cli/cli-cmds.c (pwd_command): Style output.
4083
6a831f06
PA
40842019-10-01 Pedro Alves <palves@redhat.com>
4085 Tom Tromey <tom@tromey.com>
4086
4087 * symtab.c (print_symbol_info): Use %ps.
4088 (print_msymbol_info): Use %ps.
4089 * symfile.c (symbol_file_add_with_addrs): Use %ps.
4090 * printcmd.c (print_variable_and_value): Use %ps.
4091 * macrocmd.c (show_pp_source_pos): Use %ps.
4092 * infrun.c (print_exited_reason): Use ui_out::message.
4093 * breakpoint.c (watchpoint_check, print_one_breakpoint_location)
4094 (describe_other_breakpoints): Use ui_out::message and new
4095 formats.
4096 (say_where): Use new formats.
4097 (bkpt_print_it, tracepoint_print_one_detail): Use ui_out::message
4098 and new formats.
4099
2a3c1174
PA
41002019-10-01 Pedro Alves <palves@redhat.com>
4101 Tom Tromey <tom@tromey.com>
4102
4103 * unittests/format_pieces-selftests.c: Add gdb_format parameter.
4104 (test_gdb_formats): New function.
4105 (run_tests): Call it.
4106 (test_format_specifier): Update.
4107 * utils.h (fputs_filtered): Update comment.
4108 (vfprintf_styled, vfprintf_styled_no_gdbfmt)
4109 (fputs_styled_unfiltered): Declare.
4110 * utils.c (fputs_styled_unfiltered): New function.
4111 (vfprintf_maybe_filtered): Add gdbfmt parameter.
4112 (vfprintf_filtered): Update.
4113 (vfprintf_unfiltered, vprintf_filtered): Update.
4114 (vfprintf_styled, vfprintf_styled_no_gdbfmt): New functions.
4115 * ui-out.h (enum ui_out_flag) <unfiltered_output,
4116 disallow_ui_out_field>: New constants.
4117 (enum class field_kind): New.
4118 (struct base_field_s, struct signed_field_s): New.
4119 (signed_field): New function.
4120 (struct string_field_s): New.
4121 (string_field): New function.
4122 (struct styled_string_s): New.
4123 (styled_string): New function.
4124 (class ui_out) <message>: Add comment.
4125 <vmessage, call_do_message>: New methods.
4126 <do_message>: Add style parameter.
4127 * ui-out.c (ui_out::call_do_message, ui_out::vmessage): New
4128 methods.
4129 (ui_out::message): Rewrite.
4130 * mi/mi-out.h (class mi_ui_out) <do_message>: Add style
4131 parameter.
4132 * mi/mi-out.c (mi_ui_out::do_message): Add style parameter.
4133 * gdbsupport/format.h (class format_pieces) <format_pieces>: Add
4134 gdb_extensions parameter.
4135 (class format_piece): Add parameter to constructor.
4136 (n_int_args): New field.
4137 * gdbsupport/format.c (format_pieces::format_pieces): Add
4138 gdb_extensions parameter. Handle '*'.
4139 * cli-out.h (class cli_ui_out) <do_message>: Add style parameter.
4140 * cli-out.c (cli_ui_out::do_message): Add style parameter. Call
4141 vfprintf_styled_no_gdbfmt.
4142 (cli_ui_out::do_field_string, cli_ui_out::do_spaces)
4143 (cli_ui_out::do_text, cli_ui_out::field_separator): Allow
4144 unfiltered output.
4145 * ui-style.h (struct ui_file_style) <ptr>: New method.
4146
0dfe5bfb
TT
41472019-10-01 Tom Tromey <tom@tromey.com>
4148
4149 * unittests/format_pieces-selftests.c: Update. Add final format.
4150 * gdbsupport/format.c (format_pieces::format_pieces): Don't add
4151 empty literal pieces.
4152
e43b10e1
TT
41532019-10-01 Tom Tromey <tom@tromey.com>
4154
4155 * ui-out.h (enum class ui_out_style_kind): Remove.
4156 (class ui_out) <field_string, field_stsream, do_field_string>:
4157 Change type of "style".
4158 * ui-out.c (ui_out::field_core_addr, ui_out::field_stream)
4159 (ui_out::field_string): Update.
4160 * tui/tui-out.h (class tui_ui_out) <do_field_string>: Change type
4161 of "style".
4162 * tui/tui-out.c (tui_ui_out::do_field_string): Update.
4163 * tracepoint.c (print_one_static_tracepoint_marker): Update.
4164 * stack.c (print_frame_arg, print_frame_info, print_frame):
4165 Update.
4166 * source.c (print_source_lines_base): Update.
4167 * solib.c (info_sharedlibrary_command): Update.
4168 * skip.c (info_skip_command): Update.
4169 * record-btrace.c (btrace_call_history_src_line)
4170 (btrace_call_history): Update.
4171 * python/py-framefilter.c (py_print_frame): Update.
4172 * mi/mi-out.h (class mi_ui_out) <do_field_string>: Change type of
4173 "style".
4174 * mi/mi-out.c (mi_ui_out::do_table_header)
4175 (mi_ui_out::do_field_signed, mi_ui_out::do_field_unsigned)
4176 (mi_ui_out::do_field_string): Update.
4177 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
4178 Update.
4179 * cli-out.h (class cli_ui_out) <do_field_string>: Change type of
4180 "style".
4181 * cli-out.c (cli_ui_out::do_table_header)
4182 (cli_ui_out::do_field_signed, cli_ui_out::do_field_unsigned)
4183 (cli_ui_out::do_field_skip, cli_ui_out::do_field_string)
4184 (cli_ui_out::do_field_fmt): Update.
4185 * breakpoint.c (print_breakpoint_location): Update.
4186 (update_static_tracepoint): Update.
4187
cd7c32c3
PW
41882019-10-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4189
4190 * main.c (relocate_gdbinit_path_maybe_in_datadir): Remove std::string
4191 conversion of gdb_datadir.
4192 (captured_main_1): Remove xstrdup when assigning to gdb_datadir,
4193 remove not needed c_str ().
4194
8fe0f950
AT
41952019-09-30 Ali Tamur <tamur@google.com>
4196
4197 * dwarf2read.c (skip_one_die): Handle DW_FORM_strx forms.
4198 (dwarf2_string_attr): Likewise.
4199
5f48f8f3
AT
42002019-09-30 Ali Tamur <tamur@google.com>
4201
4202 * dwarf2read.c (process_full_comp_unit): Remove whitespace at the EOL.
4203 (process_full_type_unit): Likewise.
4204 (dump_die_shallow): Likewise.
4205 (cu_debug_loc_section): Likewise.
4206
6fb08628
CB
42072019-09-28 Christian Biesinger <cbiesinger@google.com>
4208
4209 * minsyms.c (compare_minimal_symbols): Rename to...
4210 (minimal_symbol_is_less_than): ...this, and adjust to STL
4211 conventions (return bool, take arguments as references)
4212 (minimal_symbol_reader::install): Call std::sort instead
4213 of qsort.
4214
c7ee338a
CB
42152019-09-29 Christian Biesinger <cbiesinger@google.com>
4216
4217 * minsyms.h (msymbol_hash): Document that this is a case-insensitive
4218 hash and why.
4219 * objfiles.h (struct objfile_per_bfd_storage) <demangled_names_hash,
4220 msymbol_hash, msymbol_demangled_hash>: Improve comments.
4221
703a86c2
SM
42222019-09-30 Simon Marchi <simon.marchi@polymtl.ca>
4223
4224 * psymtab.c (add_psymbol_to_list): Move comment to psympriv.h.
4225 * psympriv.h (add_psymbol_to_list): Move comment here and update
4226 it.
4227
0df0352a
TV
42282019-09-29 Tom de Vries <tdevries@suse.de>
4229
4230 * contrib/cc-with-tweaks.sh (get_tmpdir): New function.
4231 Use $tmpdir/$(basename "$output_file").dwz instead of
4232 "${output_file}.dwz".
4233
ad75efa6
SM
42342019-09-28 Simon Marchi <simon.marchi@polymtl.ca>
4235
4236 PR gdb/25045
4237 * hppa-linux-nat.c: Include gdbarch.h.
4238
ececd218
CB
42392019-09-26 Christian Biesinger <cbiesinger@google.com>
4240
4241 * blockframe.c (find_pc_partial_function): Change return type to bool.
4242 * elfread.c (elf_gnu_ifunc_resolve_name): Likewise.
4243 * minsyms.c (in_gnu_ifunc_stub): Likewise.
4244 (stub_gnu_ifunc_resolve_name): Likewise.
4245 * symtab.c (compare_filenames_for_search): Likewise.
4246 (compare_glob_filenames_for_search): Likewise.
4247 (matching_obj_sections): Likewise.
4248 (symbol_matches_domain): Likewise.
4249 (find_line_symtab): Change out param EXACT_MATCH to bool *.
4250 (find_line_pc): Change return type to bool.
4251 (find_line_pc_range): Likewise.
4252 (producer_is_realview): Likewise.
4253 * symtab.h (symbol_matches_domain): Likewise.
4254 (find_pc_partial_function): Likewise.
4255 (find_pc_line_pc_range): Likewise.
4256 (in_gnu_ifunc_stub): Likewise.
4257 (struct gnu_ifunc_fns) <gnu_ifunc_resolve_name>: Likewise.
4258 (find_line_pc): Likewise.
4259 (find_line_pc_range): Likewise.
4260 (matching_obj_sections): Likewise.
4261 (find_line_symtab): Change out parameter to bool.
4262 (producer_is_realview): Change return type to bool.
4263 (compare_filenames_for_search): Likewise.
4264 (compare_glob_filenames_for_search): Likewise.
4265
27a900b8
TT
42662019-09-26 Tom Tromey <tom@tromey.com>
4267
4268 * Makefile.in (COMMON_SFILES): Remove gdb_usleep.c.
4269 (HFILES_NO_SRCDIR): Remove gdb_usleep.h.
4270 * gdb_usleep.h: Remove.
4271 * gdb_usleep.c: Remove.
4272 * utils.c: Don't include gdb_usleep.h.
4273
5d63b30a
TT
42742019-09-26 Tom Tromey <tromey@adacore.com>
4275
4276 * python/py-type.c (type_to_type_object): Call check_typedef
4277 for stub types.
4278
12904d37
TT
42792019-09-26 Tom Tromey <tom@tromey.com>
4280
4281 * utils.h (initialize_utils): Don't declare.
4282 * top.c (gdb_init): Don't call initialize_utils.
4283 * utils.c (initialize_utils): Remove. Move contents...
4284 (_initialize_utils): ... here.
4285
858f25f0
TT
42862019-09-25 Tom Tromey <tom@tromey.com>
4287
4288 * python/py-objfile.c (objfpy_get_build_id): Use bin2hex.
4289 * utils.h (make_hex_string): Don't declare.
4290 * utils.c (make_hex_string): Remove.
4291
3d435220
TV
42922019-09-24 Tom de Vries <tdevries@suse.de>
4293
4294 PR gdb/23815
4295 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers):
4296 Initialize xstateregs before ptrace PTRACE_GETREGSET call.
4297
ddd44b70
DD
42982019-09-23 Dimitar Dimitrov <dimitar@dinux.eu>
4299
4300 * NEWS: Mention new simulator port for PRU.
4301
f945dedf
CB
43022019-09-23 Christian Biesinger <cbiesinger@google.com>
4303
4304 * ada-exp.y (write_object_remaining): Update.
4305 * ada-lang.c (ada_decode): Return a std::string instead of a char*
4306 and eliminate the static buffer.
4307 (ada_decode_symbol): Update.
4308 (ada_la_decode): Update.
4309 (ada_sniff_from_mangled_name): Update.
4310 (is_valid_name_for_wild_match): Update.
4311 (ada_lookup_name_info::matches): Update and simplify.
4312 (name_matches_regex): Update.
4313 (ada_add_global_exceptions): Update.
4314 * ada-lang.h (ada_decode): Update signature.
4315 * ada-varobj.c (ada_varobj_describe_simple_array_child): Update.
4316 * dwarf-index-write.c (debug_names::insert): Update.
4317
7ab78ccb
SM
43182019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
4319
4320 * solib-svr4.c (svr4_iterate_over_objfiles_in_search_order): Fix
4321 formatting.
4322
9252448b
SM
43232019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
4324
4325 * breakpoint.h (bp_location) <inserted, permanent, duplicate>:
4326 Change "nonzero" to "true" in documentation.
4327
626ca2c0
CB
43282019-09-20 Christian Biesinger <cbiesinger@google.com>
4329
4330 * solib-darwin.c (darwin_lookup_lib_symbol): Remove.
4331 (_initialize_darwin_solib): Don't set
4332 darwin_so_ops.lookup_lib_global_symbol.
4333 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets): Call
4334 set_gdbarch_iterate_over_objfiles_in_search_order.
4335 (elf_lookup_lib_symbol): Rename to...
4336 (svr4_iterate_over_objfiles_in_search_order): this, and update
4337 to iterate semantics.
4338 (_initialize_svr4_solib): Don't set lookup_lib_global_symbol.
4339 * solib.c (solib_global_lookup): Remove.
4340 * solist.h (struct target_so_ops): Remove lookup_lib_global_symbol.
4341 (solib_global_lookup): Remove.
4342 * symtab.c (lookup_global_or_static_symbol): Remove call to
4343 solib_global_lookup.
4344
5a3a0d63
JB
43452019-09-20 Joel Brobecker <brobecker@adacore.com>
4346
4347 * NEWS: Move entries about default MI version now being
4348 version 3, and about the GDB/MI fix for multi-location
4349 breakpoints to the "since GDB 8.3" section.
4350
ffea1427
JB
43512019-09-20 Joel Brobecker <brobecker@adacore.com>
4352
4353 GDB 8.3.1 released.
4354
abf516c6
UW
43552019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
4356
4357 * NEWS: Mention that Cell/B.E. debugging support was removed.
4358 * MAINTAINERS: Remove spu target.
4359
4360 * config/djgpp/fnchange.lst: Remove entries for removed files.
4361
4362 * Makefile.in (ALL_TARGET_OBS): Remove solib-spu.o,
4363 spu-multiarch.o, and spu-tdep.o.
4364 (HFILES_NO_SRCDIR): Remove solib-spu.h and spu-tdep.h.
4365 (ALLDEPFILES): Remove solib-spu.c, spu-linux-nat.c,
4366 spu-multiarch.c, and spu-tdep.c.
4367 * spu-linux-nat.c: Remove file.
4368 * spu-multiarch.c: Remove file.
4369 * spu-tdep.c: Remove file.
4370 * spu-tdep.h: Remove file.
4371 * solib-spu.c: Remove file.
4372 * solib-spu.h: Remove file.
4373
4374 * configure.host (powerpc64*-*-linux*): Remove Cell/B.E. support.
4375 * configure.nat (spu-linux): Remove.
4376 * configure.tgt (powerpc*-*-linux*): Remove solib-spu.o and
4377 solib-multiarch.o from gdb_target_obs.
4378 (spu*-*-*): Remove.
4379
4380 * arch/ppc-linux-common.h (struct ppc_linux_features): Remove "cell"
4381 feature flag.
4382 (ppc_linux_no_features): Update.
4383 * arch/ppc-linux-common.c (ppc_linux_match_description): Remove
4384 Cell/B.E. support.
4385 * arch/ppc-linux-tdesc.h (tdesc_powerpc_cell32l): Remove declaration.
4386 (tdesc_powerpc_cell64l): Likewise.
4387 * nat/ppc-linux.h (PPC_FEATURE_CELL): Remove.
4388 * ppc-linux-nat.c (ppc_linux_nat_target::read_description): Remove
4389 Cell/B.E. support.
4390 * ppc-linux-tdep.h: Do not include "solib-spu.h" or "spu-tdep.h".
4391 Do not include "features/rs6000/powerpc-cell32l.c" or
4392 "features/rs6000/powerpc-cell64l.c".
4393 (ppc_linux_spu_section): Remove.
4394 (ppc_linux_core_read_description): Remove Cell/B.E. support.
4395 (spe_context_objfile, spe_context_lm_addr, spe_context_offset,
4396 spe_context_cache_ptid, spe_context_cache_ptid): Remove.
4397 (ppc_linux_spe_context_lookup): Remove.
4398 (ppc_linux_spe_context_inferior_created): Remove.
4399 (ppc_linux_spe_context_solib_loaded): Remove.
4400 (ppc_linux_spe_context_solib_unloaded): Remove.
4401 (ppc_linux_spe_context): Remove.
4402 (struct ppu2spu_cache): Remove.
4403 (ppu2spu_prev_arch, ppu2spu_this_id, ppu2spu_prev_register): Remove.
4404 (struct ppu2spu_data): Remove.
4405 (ppu2spu_unwind_register, ppu2spu_sniffer, ppu2spu_dealloc_cache,
4406 ppu2spu_unwind): Remove.
4407 (ppc_linux_init_abi): Remove Cell/B.E. support.
4408 * rs6000-tdep.h (rs6000_gdbarch_init): Remove Cell/B.E. support.
4409
4410 * features/Makefile (rs6000/powerpc-cell32l-expedite): Remove.
4411 (rs6000/powerpc-cell64l-expedite): Likewise
4412 (WHICH): Remove rs6000/powerpc-cell32l and rs6000/powerpc-cell64l.
4413 (XMLTOC): Remove rs6000/powerpc-cell32l.xml and
4414 rs6000/powerpc-cell64l.xml.
4415 * features/rs6000/powerpc-cell32l.xml: Remove.
4416 * features/rs6000/powerpc-cell64l.xml: Likewise.
4417 * features/rs6000/powerpc-cell32l.c: Remove generated file.
4418 * features/rs6000/powerpc-cell64l.c: Likewise.
4419 * regformats/rs6000/powerpc-cell32l.dat: Remove generated file.
4420 * regformats/rs6000/powerpc-cell64l.dat: Likewise.
4421 * regformats/reg-spu.dat: Remove.
4422
4423 * target.h (enum target_object): Remove TARGET_OBJECT_SPU.
4424 * corelow.c (struct spuid_list): Remove.
4425 (add_to_spuid_list): Remove.
4426 (core_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
4427 * remote.c (PACKET_qXfer_spu_read, PACKET_qXfer_spu_write): Remove.
4428 (remote_protocol_features): Remove associated entries.
4429 (_initialize_remote): No longer initialize them.
4430 (remote_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
4431 * linux-nat.c (SPUFS_MAGIC): Remove.
4432 (linux_proc_xfer_spu): Remove.
4433 (spu_enumerate_spu_ids): Remove.
4434 (linux_nat_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
4435 * linux-tdep.c (-linux_spu_make_corefile_notes): Remove.
4436 (linux_make_corefile_notes): No longer call it.
4437
4438 * regcache.c (cooked_read_test): Remove bfd_arch_spu special case.
4439 (cooked_write_test): Likewise.
4440
78e8cb91
TT
44412019-09-20 Tom Tromey <tom@tromey.com>
4442
4443 * NEWS: Mention case-sensitivity of TUI commands.
4444 * tui/tui-win.c (tui_set_focus_command): Now case-sensitive.
4445 (tui_set_win_height_command, parse_scrolling_args): Likewise.
4446 * tui/tui-layout.c (tui_layout_command): Now case-sensitive.
4447
f074b67e
TT
44482019-09-20 Tom Tromey <tom@tromey.com>
4449
4450 * tui/tui-source.c (tui_source_window::set_contents): Use
4451 make_unique_xstrdup.
4452 * tui/tui-disasm.c (tui_disasm_window::set_contents): Use
4453 make_unique_xstrdup.
4454
63c4bf19
TT
44552019-09-20 Tom Tromey <tom@tromey.com>
4456
4457 * tui/tui-data.c: Remove separator comments.
4458 * tui/tui-layout.c: Remove separator comments.
4459 * tui/tui-win.c: Remove separator comments.
4460 * tui/tui-wingeneral.c: Remove separator comments.
4461
43df9b2f
TT
44622019-09-20 Tom Tromey <tom@tromey.com>
4463
4464 * tui/tui.h (strcat_to_buf): Don't declare.
4465 * tui/tui.c (strcat_to_buf): Remove.
4466
7226433c
TT
44672019-09-20 Tom Tromey <tom@tromey.com>
4468
4469 * tui/tui-source.h (struct tui_source_window) <m_fullname>: Rename
4470 from "fullname".
4471 * tui/tui-source.c (tui_source_window::set_contents)
4472 (tui_source_window::location_matches_p)
4473 (tui_source_window::maybe_update): Update.
4474
80df3337
TT
44752019-09-20 Tom Tromey <tom@tromey.com>
4476
4477 * tui/tui-regs.h (struct tui_data_window) <get_current_group>:
4478 Update.
4479 <m_regs_content, m_regs_column_count, m_current_group>: Add "m_"
4480 prefix.
4481 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
4482 (tui_data_window::line_from_reg_element_no)
4483 (tui_data_window::first_reg_element_no_inline)
4484 (tui_data_window::show_registers)
4485 (tui_data_window::show_register_group)
4486 (tui_data_window::display_registers_from)
4487 (tui_data_window::display_registers_from_line)
4488 (tui_data_window::first_data_item_displayed)
4489 (tui_data_window::delete_data_content_windows)
4490 (tui_data_window::erase_data_content)
4491 (tui_data_window::do_scroll_vertical)
4492 (tui_data_window::refresh_window)
4493 (tui_data_window::check_register_values): Update.
4494
9923f347
TT
44952019-09-20 Tom Tromey <tom@tromey.com>
4496
4497 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN): Remove define.
4498 (struct tui_locator_window) <full_name, proc_name>: Now
4499 std::string.
4500 * tui/tui-stack.c (tui_locator_window::make_status_line)
4501 (tui_locator_window::set_locator_fullname)
4502 (tui_locator_window::set_locator_info): Update.
4503 * tui/tui-source.c (tui_source_window::set_contents)
4504 (tui_source_window::showing_source_p): Update.
4505
b76251ab
TT
45062019-09-20 Tom Tromey <tom@tromey.com>
4507
4508 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
4509 Don't call tui_locator_win_info_ptr.
4510
0891be08
TT
45112019-09-20 Tom Tromey <tom@tromey.com>
4512
4513 * tui/tui-win.c (tui_resize_all): Don't call refresh.
4514
1b935acf
TT
45152019-09-20 Tom Tromey <tom@tromey.com>
4516
4517 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use 1 as
4518 height for locator.
4519 * tui/tui-stack.c (tui_locator_window::rerender): Call scrollok.
4520 * tui/tui-layout.c (show_source_disasm_command, show_data)
4521 (show_source_or_disasm_and_command): Use 1 as height for locator.
4522
9abd8a65
TT
45232019-09-20 Tom Tromey <tom@tromey.com>
4524
4525 * tui/tui.c (tui_enable): Update.
4526 * tui/tui-win.c (tui_sigwinch_handler, tui_async_resize_screen):
4527 Update.
4528 * tui/tui-data.h (tui_win_resized, tui_set_win_resized_to):
4529 Update.
4530 * tui/tui-data.c (win_resized): Now bool.
4531 (tui_win_resized): Return bool.
4532 (tui_set_win_resized_to): Accept a bool.
4533
b5457826
TT
45342019-09-20 Tom Tromey <tom@tromey.com>
4535
4536 * tui/tui-regs.h (struct tui_data_window) <show_register_group>:
4537 Change type of "refresh_values_only".
4538 * tui/tui-regs.c (tui_data_window::show_register_group): Change
4539 type of "refresh_values_only".
4540
6b915f7d
TT
45412019-09-20 Tom Tromey <tom@tromey.com>
4542
4543 * tui/tui-disasm.c (struct tui_asm_line) <addr_string, insn>: Now
4544 std::string.
4545 (tui_disassemble): Add "pos" parameter.
4546 (tui_disasm_window::set_contents): Simplify.
4547
2ad52f6f
TT
45482019-09-20 Tom Tromey <tom@tromey.com>
4549
4550 * tui/tui-winsource.h (struct tui_source_window_base)
4551 <show_source_content>: Now private.
4552 * tui/tui-winsource.c
4553 (tui_source_window_base::show_source_content): Don't handle empty
4554 content case.
4555
b3b1bde6
TT
45562019-09-20 Tom Tromey <tom@tromey.com>
4557
4558 * tui/tui-layout.c (show_source_disasm_command)
4559 (show_source_or_disasm_and_command): Don't call
4560 show_source_content.
4561
71a25ed2
TT
45622019-09-20 Tom Tromey <tom@tromey.com>
4563
4564 * tui/tui-stack.h (struct tui_locator_window) <make_status_line>:
4565 Declare.
4566 * tui/tui-stack.c (tui_locator_window::make_status_line): Rename
4567 from tui_make_status_line.
4568 (tui_locator_window::rerender): Update.
4569
f8532154
TT
45702019-09-20 Tom Tromey <tom@tromey.com>
4571
4572 * tui/tui-stack.c (tui_make_status_line): Return std::string.
4573 (tui_locator_window::rerender): Update.
4574
2d81b349
TT
45752019-09-20 Tom Tromey <tom@tromey.com>
4576
4577 * tui/tui-winsource.h (struct tui_source_window_base)
4578 <~tui_source_window_base>: Don't declare.
4579 <fullname>: Remove.
4580 * tui/tui-winsource.c (~tui_source_window_base): Remove.
4581 * tui/tui-source.h (struct tui_source_window) <fullname>: New
4582 member.
4583 * tui/tui-source.c (tui_source_window::set_contents): Update.
4584 (tui_source_window::location_matches_p)
4585 (tui_source_window::maybe_update): Update.
4586
f14bec58
TT
45872019-09-20 Tom Tromey <tom@tromey.com>
4588
4589 * tui/tui-winsource.h (~tui_source_element): Remove.
4590 (tui_source_element): Update.
4591 (struct tui_source_element) <line>: Now a unique_xmalloc_ptr.
4592 * tui/tui-winsource.c (tui_show_source_line): Update.
4593 * tui/tui-source.c (tui_source_window::set_contents): Update.
4594 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
4595
78d5933a
TT
45962019-09-20 Tom Tromey <tom@tromey.com>
4597
4598 * tui/tui-data.h (tui_clear_source_windows_detail): Don't
4599 declare.
4600 * tui/tui-layout.c (tui_add_win_to_layout): Don't call
4601 tui_clear_source_windows_detail.
4602 * tui/tui-winsource.h (struct tui_source_window_base)
4603 <clear_detail>: Don't declare.
4604 * tui/tui-winsource.c (tui_source_window_base::clear_detail):
4605 Remove.
4606 * tui/tui-data.c (tui_clear_source_windows_detail): Remove.
4607
d4207696
TT
46082019-09-20 Tom Tromey <tromey@adacore.com>
4609
4610 PR ada/24919:
4611 * block.c (contained_in): Fix final return value.
4612
00f93c44
AM
46132019-09-20 Alan Modra <amodra@gmail.com>
4614
4615 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Use bfd_set_usrdata.
4616 * dwarf2read.c (dwarf2_read_gdb_index, dwarf2_read_debug_names),
4617 (read_indirect_string_from_dwz): Use bfd accessor.
4618 * dwarf2read.h (struct dwz_file <filename>): Likewise.
4619 * machoread.c (macho_symfile_read_all_oso): Likewise.
4620 * solib.c (solib_bfd_open): Likewise.
4621
e4153ae6
CB
46222019-09-19 Christian Biesinger <cbiesinger@google.com>
4623
4624 * eval.c: Move declaration of overload_resolution to...
4625 * value.h: ...here.
4626
c7ae7675
CB
46272019-09-19 Christian Biesinger <cbiesinger@google.com>
4628
4629 * arm-linux-nat.c: Remove extern declaration for arm_apcs_32.
4630 * arm-linux-tdep.c: Likewise.
4631 * arm-nbsd-nat.c: Likewise.
4632 * arm-tdep.h: Declare arm_apcs_32.
4633 * arm-tdep.c: Move documentation for arm_apcs_32 to arm-tdep.h.
4634
e86f08d2
CB
46352019-09-19 Christian Biesinger <cbiesinger@google.com>
4636
4637 * dwarf2loc.c: Remove extern declaration of dwarf_always_disassemble.
4638 * dwarf2read.h: Declare dwarf_always_disassemble.
4639
f64e2f40
TV
46402019-09-19 Tom de Vries <tdevries@suse.de>
4641
4642 PR gdb/25009
4643 * source-cache.c (source_cache::ensure): Catch exception thrown during
4644 construction of the highlighter.
4645
fd361982
AM
46462019-09-18 Alan Modra <amodra@gmail.com>
4647
4648 * aarch64-linux-tdep.c, * arm-tdep.c, * auto-load.c,
4649 * coff-pe-read.c, * coffread.c, * corelow.c, * dbxread.c,
4650 * dicos-tdep.c, * dwarf2-frame.c, * dwarf2read.c, * elfread.c,
4651 * exec.c, * fbsd-tdep.c, * gcore.c, * gdb_bfd.c, * gdb_bfd.h,
4652 * hppa-tdep.c, * i386-cygwin-tdep.c, * i386-fbsd-tdep.c,
4653 * i386-linux-tdep.c, * jit.c, * linux-tdep.c, * machoread.c,
4654 * maint.c, * mdebugread.c, * minidebug.c, * mips-linux-tdep.c,
4655 * mips-sde-tdep.c, * mips-tdep.c, * mipsread.c, * nto-tdep.c,
4656 * objfiles.c, * objfiles.h, * osabi.c, * ppc-linux-tdep.c,
4657 * ppc64-tdep.c, * record-btrace.c, * record-full.c, * remote.c,
4658 * rs6000-aix-tdep.c, * rs6000-tdep.c, * s390-linux-tdep.c,
4659 * s390-tdep.c, * solib-aix.c, * solib-dsbt.c, * solib-frv.c,
4660 * solib-spu.c, * solib-svr4.c, * solib-target.c,
4661 * spu-linux-nat.c, * spu-tdep.c, * symfile-mem.c, * symfile.c,
4662 * symmisc.c, * symtab.c, * target.c, * windows-nat.c,
4663 * xcoffread.c, * cli/cli-dump.c, * compile/compile-object-load.c,
4664 * mi/mi-interp.c: Update throughout for bfd section macro and
4665 function changes.
4666 * gcore (gcore_create_callback): Use bfd_set_section_lma.
4667 * spu-tdep.c (spu_overlay_new_objfile): Likewise.
4668
11061048
TT
46692019-09-18 Tom Tromey <tom@tromey.com>
4670
4671 * NEWS: Add entry.
4672 * tui/tui.c (tui_initialize_readline): Set name of keymap. Do not
4673 call rl_initialize.
4674 (tui_enable): Do not call rl_initialize.
4675
7a27b85f
CG
46762019-09-18 Christian Groessler <chris@groessler.org>
4677
4678 * alpha-linux-nat.c: Include gdbarch.h.
4679
f64eea3a
SM
46802019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
4681
4682 * ui-file.c: Include cli/cli-style.h.
4683 (term_cli_styling): Remove cli_styling declaration.
4684
e6f7f6d1
AM
46852019-09-18 Alan Modra <amodra@gmail.com>
4686
4687 * arm-tdep.c (arm_record_special_symbol): Update bfd_get_section
4688 to bfd_asymbol_section.
4689
1d38e9d1
AM
46902019-09-18 Alan Modra <amodra@gmail.com>
4691
4692 * amd64-dicos-tdep.c (amd64_dicos_osabi_sniffer): Constify target.
4693 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
4694 * i386-dicos-tdep.c (i386_dicos_osabi_sniffer): Likewise.
4695
90d92a63
AM
46962019-09-18 Alan Modra <amodra@gmail.com>
4697
4698 * solib-spu.c (spu_bfd_open): Use bfd_set_filename.
4699 * spu-linux-nat.c (spu_bfd_open): Likewise.
4700
a3d181d2
CB
47012019-09-18 Christian Biesinger <cbiesinger@google.com>
4702
4703 * dwarf2loc.c: Change extern declaration of dwarf_always_disassemble
4704 to bool to match definition in dwarf2read.c.
4705
491144b5
CB
47062019-09-17 Christian Biesinger <cbiesinger@google.com>
4707
4708 * ada-lang.c (ada_ignore_descriptive_types_p): Change to bool.
4709 (print_signatures): Likewise.
4710 (trust_pad_over_xvs): Likewise.
4711 * arch/aarch64-insn.c (aarch64_debug): Likewise.
4712 * arch/aarch64-insn.h (aarch64_debug): Likewise.
4713 * arm-linux-nat.c (arm_apcs_32): Likewise.
4714 * arm-linux-tdep.c (arm_apcs_32): Likewise.
4715 * arm-nbsd-nat.c (arm_apcs_32): Likewise.
4716 * arm-tdep.c (arm_debug): Likewise.
4717 (arm_apcs_32): Likewise.
4718 * auto-load.c (debug_auto_load): Likewise.
4719 (auto_load_gdb_scripts): Likewise.
4720 (global_auto_load): Likewise.
4721 (auto_load_local_gdbinit): Likewise.
4722 (auto_load_local_gdbinit_loaded): Likewise.
4723 * auto-load.h (global_auto_load): Likewise.
4724 (auto_load_local_gdbinit): Likewise.
4725 (auto_load_local_gdbinit_loaded): Likewise.
4726 * breakpoint.c (disconnected_dprintf): Likewise.
4727 (breakpoint_proceeded): Likewise.
4728 (automatic_hardware_breakpoints): Likewise.
4729 (always_inserted_mode): Likewise.
4730 (target_exact_watchpoints): Likewise.
4731 (_initialize_breakpoint): Update.
4732 * breakpoint.h (target_exact_watchpoints): Change to bool.
4733 * btrace.c (maint_btrace_pt_skip_pad): Likewise.
4734 * cli/cli-cmds.c (trace_commands): Likewise.
4735 * cli/cli-cmds.h (trace_commands): Likewise.
4736 * cli/cli-decode.c (add_setshow_boolean_cmd): Change int* argument
4737 to bool*.
4738 * cli/cli-logging.c (logging_overwrite): Change to bool.
4739 (logging_redirect): Likewise.
4740 (debug_redirect): Likewise.
4741 * cli/cli-option.h (option_def) <boolean>: Change return type to bool*.
4742 (struct boolean_option_def) <get_var_address_cb_>: Change return type
4743 to bool.
4744 <boolean_option_def>: Update.
4745 (struct flag_option_def): Change default type of Context to bool
4746 from int.
4747 <flag_option_def>: Change return type of var_address_cb_ to bool*.
4748 * cli/cli-setshow.c (do_set_command): Cast to bool* instead of int*.
4749 (get_setshow_command_value_string): Likewise.
4750 * cli/cli-style.c (cli_styling): Change to bool.
4751 (source_styling): Likewise.
4752 * cli/cli-style.h (source_styling): Likewise.
4753 (cli_styling): Likewise.
4754 * cli/cli-utils.h (struct qcs_flags) <quiet, cont, silent>: Change
4755 to bool.
4756 * command.h (var_types): Update comment.
4757 (add_setshow_boolean_cmd): Change int* var argument to bool*.
4758 * compile/compile-cplus-types.c (debug_compile_cplus_types): Change to
4759 bool.
4760 (debug_compile_cplus_scopes): Likewise.
4761 * compile/compile-internal.h (compile_debug): Likewise.
4762 * compile/compile.c (compile_debug): Likewise.
4763 (struct compile_options) <raw>: Likewise.
4764 * cp-support.c (catch_demangler_crashes): Likewise.
4765 * cris-tdep.c (usr_cmd_cris_version_valid): Likewise.
4766 (usr_cmd_cris_dwarf2_cfi): Likewise.
4767 * csky-tdep.c (csky_debug): Likewise.
4768 * darwin-nat.c (enable_mach_exceptions): Likewise.
4769 * dcache.c (dcache_enabled_p): Likewise.
4770 * defs.h (info_verbose): Likewise.
4771 * demangle.c (demangle): Likewise.
4772 (asm_demangle): Likewise.
4773 * dwarf-index-cache.c (debug_index_cache): Likewise.
4774 * dwarf2-frame.c (dwarf2_frame_unwinders_enabled_p): Likewise.
4775 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Likewise.
4776 * dwarf2read.c (check_physname): Likewise.
4777 (use_deprecated_index_sections): Likewise.
4778 (dwarf_always_disassemble): Likewise.
4779 * eval.c (overload_resolution): Likewise.
4780 * event-top.c (set_editing_cmd_var): Likewise.
4781 (exec_done_display_p): Likewise.
4782 * event-top.h (set_editing_cmd_var): Likewise.
4783 (exec_done_display_p): Likewise.
4784 * exec.c (write_files): Likewise.
4785 * fbsd-nat.c (debug_fbsd_lwp): Likewise
4786 (debug_fbsd_nat): Likewise.
4787 * frame.h (struct frame_print_options) <print_raw_frame_arguments>:
4788 Likewise.
4789 (struct set_backtrace_options) <backtrace_past_main>: Likewise.
4790 <backtrace_past_entry> Likewise.
4791 * gdb-demangle.h (demangle): Likewise.
4792 (asm_demangle): Likewise.
4793 * gdb_bfd.c (bfd_sharing): Likewise.
4794 * gdbcore.h (write_files): Likewise.
4795 * gdbsupport/common-debug.c (show_debug_regs): Likewise.
4796 * gdbsupport/common-debug.h (show_debug_regs): Likewise.
4797 * gdbthread.h (print_thread_events): Likewise.
4798 * gdbtypes.c (opaque_type_resolution): Likewise.
4799 (strict_type_checking): Likewise.
4800 * gnu-nat.c (gnu_debug_flag): Likewise.
4801 * guile/scm-auto-load.c (auto_load_guile_scripts): Likewise.
4802 * guile/scm-param.c (pascm_variable): Add boolval.
4803 (add_setshow_generic): Update.
4804 (pascm_param_value): Update.
4805 (pascm_set_param_value_x): Update.
4806 * hppa-tdep.c (hppa_debug): Change to bool..
4807 * infcall.c (may_call_functions_p): Likewise.
4808 (coerce_float_to_double_p): Likewise.
4809 (unwind_on_signal_p): Likewise.
4810 (unwind_on_terminating_exception_p): Likewise.
4811 * infcmd.c (startup_with_shell): Likewise.
4812 * inferior.c (print_inferior_events): Likewise.
4813 * inferior.h (startup_with_shell): Likewise.
4814 (print_inferior_events): Likewise.
4815 * infrun.c (step_stop_if_no_debug): Likewise.
4816 (detach_fork): Likewise.
4817 (debug_displaced): Likewise.
4818 (disable_randomization): Likewise.
4819 (non_stop): Likewise.
4820 (non_stop_1): Likewise.
4821 (observer_mode): Likewise.
4822 (observer_mode_1): Likewise.
4823 (set_observer_mode): Update.
4824 (sched_multi): Change to bool.
4825 * infrun.h (debug_displaced): Likewise.
4826 (sched_multi): Likewise.
4827 (step_stop_if_no_debug): Likewise.
4828 (non_stop): Likewise.
4829 (disable_randomization): Likewise.
4830 * linux-tdep.c (use_coredump_filter): Likewise.
4831 (dump_excluded_mappings): Likewise.
4832 * linux-thread-db.c (auto_load_thread_db): Likewise.
4833 (check_thread_db_on_load): Likewise.
4834 * main.c (captured_main_1): Update.
4835 * maint-test-options.c (struct test_options_opts) <flag_opt, xx1_opt,
4836 xx2_opt, boolean_opt>: Change to bool.
4837 * maint-test-settings.c (maintenance_test_settings_boolean): Likewise.
4838 * maint.c (maintenance_profile_p): Likewise.
4839 (per_command_time): Likewise.
4840 (per_command_space): Likewise.
4841 (per_command_symtab): Likewise.
4842 * memattr.c (inaccessible_by_default): Likewise.
4843 * mi/mi-main.c (mi_async): Likewise.
4844 (mi_async_1): Likewise.
4845 * mips-tdep.c (mips64_transfers_32bit_regs_p): Likewise.
4846 * nat/fork-inferior.h (startup_with_shell): Likewise.
4847 * nat/linux-namespaces.c (debug_linux_namespaces): Likewise.
4848 * nat/linux-namespaces.h (debug_linux_namespaces): Likewise.
4849 * nios2-tdep.c (nios2_debug): Likewise.
4850 * or1k-tdep.c (or1k_debug): Likewise.
4851 * parse.c (parser_debug): Likewise.
4852 * parser-defs.h (parser_debug): Likewise.
4853 * printcmd.c (print_symbol_filename): Likewise.
4854 * proc-api.c (procfs_trace): Likewise.
4855 * python/py-auto-load.c (auto_load_python_scripts): Likewise.
4856 * python/py-param.c (union parmpy_variable): Add "bool boolval" field.
4857 (set_parameter_value): Update.
4858 (add_setshow_generic): Update.
4859 * python/py-value.c (copy_py_bool_obj): Change argument from int*
4860 to bool*.
4861 * python/python.c (gdbpy_parameter_value): Cast to bool* instead of
4862 int*.
4863 * ravenscar-thread.c (ravenscar_task_support): Change to bool.
4864 * record-btrace.c (record_btrace_target::store_registers): Update.
4865 * record-full.c (record_full_memory_query): Change to bool.
4866 (record_full_stop_at_limit): Likewise.
4867 * record-full.h (record_full_memory_query): Likewise.
4868 * remote-notif.c (notif_debug): Likewise.
4869 * remote-notif.h (notif_debug): Likewise.
4870 * remote.c (use_range_stepping): Likewise.
4871 (interrupt_on_connect): Likewise.
4872 (remote_break): Likewise.
4873 * ser-tcp.c (tcp_auto_retry): Likewise.
4874 * ser-unix.c (serial_hwflow): Likewise.
4875 * skip.c (debug_skip): Likewise.
4876 * solib-aix.c (solib_aix_debug): Likewise.
4877 * spu-tdep.c (spu_stop_on_load_p): Likewise.
4878 (spu_auto_flush_cache_p): Likewise.
4879 * stack.c (struct backtrace_cmd_options) <full, no_filters, hide>:
4880 Likewise.
4881 (struct info_print_options) <quiet>: Likewise.
4882 * symfile-debug.c (debug_symfile): Likewise.
4883 * symfile.c (auto_solib_add): Likewise.
4884 (separate_debug_file_debug): Likewise.
4885 * symfile.h (auto_solib_add): Likewise.
4886 (separate_debug_file_debug): Likewise.
4887 * symtab.c (basenames_may_differ): Likewise.
4888 (struct filename_partial_match_opts) <dirname, basename>: Likewise.
4889 (struct info_print_options) <quiet, exclude_minsyms>: Likewise.
4890 (struct info_types_options) <quiet>: Likewise.
4891 * symtab.h (demangle): Likewise.
4892 (basenames_may_differ): Likewise.
4893 * target-dcache.c (stack_cache_enabled_1): Likewise.
4894 (code_cache_enabled_1): Likewise.
4895 * target.c (trust_readonly): Likewise.
4896 (may_write_registers): Likewise.
4897 (may_write_memory): Likewise.
4898 (may_insert_breakpoints): Likewise.
4899 (may_insert_tracepoints): Likewise.
4900 (may_insert_fast_tracepoints): Likewise.
4901 (may_stop): Likewise.
4902 (auto_connect_native_target): Likewise.
4903 (target_stop_and_wait): Update.
4904 (target_async_permitted): Change to bool.
4905 (target_async_permitted_1): Likewise.
4906 (may_write_registers_1): Likewise.
4907 (may_write_memory_1): Likewise.
4908 (may_insert_breakpoints_1): Likewise.
4909 (may_insert_tracepoints_1): Likewise.
4910 (may_insert_fast_tracepoints_1): Likewise.
4911 (may_stop_1): Likewise.
4912 * target.h (target_async_permitted): Likewise.
4913 (may_write_registers): Likewise.
4914 (may_write_memory): Likewise.
4915 (may_insert_breakpoints): Likewise.
4916 (may_insert_tracepoints): Likewise.
4917 (may_insert_fast_tracepoints): Likewise.
4918 (may_stop): Likewise.
4919 * thread.c (struct info_threads_opts) <show_global_ids>: Likewise.
4920 (make_thread_apply_all_options_def_group): Change argument from int*
4921 to bool*.
4922 (thread_apply_all_command): Update.
4923 (print_thread_events): Change to bool.
4924 * top.c (confirm): Likewise.
4925 (command_editing_p): Likewise.
4926 (history_expansion_p): Likewise.
4927 (write_history_p): Likewise.
4928 (info_verbose): Likewise.
4929 * top.h (confirm): Likewise.
4930 (history_expansion_p): Likewise.
4931 * tracepoint.c (disconnected_tracing): Likewise.
4932 (circular_trace_buffer): Likewise.
4933 * typeprint.c (print_methods): Likewise.
4934 (print_typedefs): Likewise.
4935 * utils.c (debug_timestamp): Likewise.
4936 (sevenbit_strings): Likewise.
4937 (pagination_enabled): Likewise.
4938 * utils.h (sevenbit_strings): Likewise.
4939 (pagination_enabled): Likewise.
4940 * valops.c (overload_resolution): Likewise.
4941 * valprint.h (struct value_print_options) <prettyformat_arrays,
4942 prettyformat_structs, vtblprint, unionprint, addressprint, objectprint,
4943 stop_print_at_null, print_array_indexes, deref_ref, static_field_print,
4944 pascal_static_field_print, raw, summary, symbol_print, finish_print>:
4945 Likewise.
4946 * windows-nat.c (new_console): Likewise.
4947 (cygwin_exceptions): Likewise.
4948 (new_group): Likewise.
4949 (debug_exec): Likewise.
4950 (debug_events): Likewise.
4951 (debug_memory): Likewise.
4952 (debug_exceptions): Likewise.
4953 (useshell): Likewise.
4954 * windows-tdep.c (maint_display_all_tib): Likewise.
4955 * xml-support.c (debug_xml): Likewise.
4956
f1b620e9
MG
49572019-09-17 Mike Gulick <mgulick@mathworks.com>
4958
4959 * source.c (prepare_path_for_appending): New function.
4960 (openp): Make use of new function.
4961 (find_and_open_source): Search for the compilation directory and
4962 source file as a relative path beneath the directory search path.
4963
67f3ed6a
AB
49642019-09-17 Andrew Burgess <andrew.burgess@embecosm.com>
4965
4966 * source-cache.c (source_cache::get_line_charpos): Catch
4967 exceptions and return false, this matches the behaviour documented
4968 in the header file.
4969
74332189
JB
49702019-09-17 Joel Brobecker <brobecker@adacore.com>
4971
4972 * ada-tasks.c (info_task): Remove quoting of the task's name.
4973
f2f24aa9
CB
49742019-09-16 Christian Biesinger <cbiesinger@google.com>
4975
4976 * symfile.c (auto_solib_add): Replace comment with a reference
4977 to the header file.
4978
6a062a93
CB
49792019-09-14 Christian Biesinger <cbiesinger@google.com>
4980
4981 * NEWS: Mention that gdb can now be compiled with Python 3
4982 on Windows.
4983
ec6c8338
AB
49842019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
4985
4986 * maint.c (maint_print_section_data::maint_print_section_data):
4987 Force use of 'float log10 (float)' by casting the argument to
4988 float.
4989
aa17805f
AB
49902019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
4991
4992 * maint.c: Add 'cmath' include.
4993 (struct maint_print_section_data): New structure.
4994 (print_section_index): New function.
4995 (print_bfd_section_info): Add header comment, small whitespace
4996 cleanup, and update to call new print_section_index function.
4997 (print_objfile_section_info): Likewise.
4998 (maint_obj_section_from_bfd_section): New function.
4999 (print_bfd_section_info_maybe_relocated): New function.
5000 (maintenance_info_sections): Add header comment, always use
5001 bfd_map_over_sections instead of ALL_OBJFILE_OSECTIONS.
5002
3dd9bb46
AB
50032019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
5004
5005 * psymtab.c (find_pc_sect_psymtab): Move baseaddr local into more
5006 inner scope, add check that the objfile has psymtabs before
5007 checking psymtabs_addrmap.
5008 * psymtab.h (psymtab_storage) <psymtabs_addrmap>: Extend comment.
5009
4993045d
PW
50102019-09-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5011
5012 * NEWS: Announce that Ada task names are now shown at more places,
5013 and between quotes (except in info task output).
5014 * gdb/ada-tasks.c (task_to_str): New function.
5015 (display_current_task_id): Call task_to_str.
5016 (task_command_1): Likewise.
5017 (print_ada_task_info): In non-mi mode, Properly align headers and data
5018 when task-id length is > 9 (9 is the default for a 32 bits CORE_ADDR).
5019
7a289707
RO
50202019-09-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5021
5022 * procfs.c (procfs_target::wait) <PR_FAULTED>: Get signal from
5023 prstatus.pr_lwp.pr_info instead of making it up.
5024
f2aec7f6
CB
50252019-09-11 Christian Biesinger <cbiesinger@google.com>
5026
5027 * auto-load.c (auto_load_expand_dir_vars): Update.
5028 * defs.h (gdb_datadir): Change to std::string.
5029 (python_libdir): Likewise.
5030 (relocate_gdb_directory): Change return type to std::string.
5031 * guile/guile.c (gdbscm_data_directory): Update.
5032 (initialize_scheme_side): Update.
5033 * jit.c (jit_reader_dir): Change to std::string.
5034 (jit_reader_load_command): Update.
5035 * main.c (gdb_datadir): Change to std::string.
5036 (python_libdir): Likewise.
5037 (set_gdb_data_directory): Update.
5038 (relocate_path): Change to return std::string.
5039 (relocate_gdb_directory): Change to return std::string.
5040 (relocate_gdbinit_path_maybe_in_datadir): Update.
5041 (captured_main_1): Update.
5042 * python/python.c (do_start_initialization): Update.
5043 * top.c (show_gdb_datadir): Update.
5044 * xml-syscall.c (xml_init_syscalls_info): Update.
5045 (init_syscalls_info): Update.
5046
9224a013
CB
50472019-09-11 Christian Biesinger <cbiesinger@google.com>
5048
5049 * main.c (relocate_gdbinit_path_maybe_in_datadir): Factor this code
5050 out of get_init_files.
5051 (get_init_files): Update.
5052
f48cd836
CB
50532019-09-11 Christian Biesinger <cbiesinger@google.com>
5054
5055 * main.c (get_init_files): Change to use std::string.
5056 (captured_main_1): Update.
5057 (print_gdb_help): Update.
5058
9cab7ecd
AT
50592019-09-11 Ali Tamur <tamur@google.com>
5060
5061 *gdb/target-float.c (host_float_ops<T>::to_longest): Update
5062 implementation.
5063
67547d89
CB
50642019-09-11 Christian Biesinger <cbiesinger@google.com>
5065
5066 * dbxread.c (read_dbx_symtab): Update.
5067 * dwarf2read.c (load_partial_dies): Update.
5068 * mdebugread.c (parse_partial_symbols): Update.
5069 (handle_psymbol_enumerators): Update.
5070 * psympriv.h (add_psymbol_to_list): Change type of copy_names to bool.
5071 * psymtab.c (add_psymbol_to_bcache): Likewise.
5072 (add_psymbol_to_list): Likewise.
5073 * symtab.c (symbol_set_names): Likewise.
5074 * symtab.h (symbol_set_names): Likewise.
5075 * xcoffread.c (scan_xcoff_symtab): Update.
5076
64b2d4a0
TT
50772019-09-11 Tom Tromey <tom@tromey.com>
5078
5079 * symfile-mem.c (symbol_file_add_from_memory): Use
5080 bfd_set_filename.
5081 * solib-darwin.c (darwin_bfd_open): Use bfd_set_filename.
5082 * solib-aix.c (solib_aix_bfd_open): Use bfd_set_filename.
5083
3b00ef10
TT
50842019-09-10 Tom Tromey <tromey@adacore.com>
5085
5086 * dwarf-index-write.c (write_psymbols): Extend error message.
5087 (debug_names::insert): Add Ada code.
5088 (debug_names::write_psymbols): Remove Ada check.
5089 (debug_names) <m_string_obstack>: New member.
5090 * dwarf2read.c (gdb_index_symbol_name_matcher): Remove.
5091 (gdb_index_symbol_name_matcher::matches): Remove.
5092 (mapped_index_base::find_name_components_bounds): Add "lang"
5093 parameter.
5094 (mapped_index_base::build_name_components): Also split names
5095 according to Ada syntax.
5096 (dw2_expand_symtabs_matching_symbol): Loop over languages. Change
5097 type of "match_callback".
5098 (check_match, check_find_bounds_finds)
5099 (dw2_expand_symtabs_matching): Update.
5100 (dw2_debug_names_iterator): Add new constructor.
5101 (dw2_debug_names_map_matching_symbols): New function.
5102 (dw2_debug_names_expand_symtabs_matching): Update.
5103 (dwarf2_debug_names_functions): Use
5104 dw2_debug_names_map_matching_symbols.
5105
aa391654
TT
51062019-09-10 Tom Tromey <tromey@adacore.com>
5107
5108 * dwarf2read.c (dw2_get_file_names_reader): Add the
5109 CU's file name to the results.
5110
b054970d
TT
51112019-09-10 Tom Tromey <tromey@adacore.com>
5112
5113 * ada-lang.c (add_nonlocal_symbols): Combine calls to
5114 map_matching_symbols. Update.
5115 * dwarf2read.c (dw2_map_matching_symbols): Update.
5116 * psymtab.c (match_partial_symbol): Change type; update.
5117 (psym_map_matching_symbols): Likewise.
5118 * symfile-debug.c (debug_qf_map_matching_symbols): Change
5119 type; update.
5120 * symfile.h (struct quick_symbol_functions)
5121 <map_matching_symbols>: Change "name" to be a lookup_name_info.
5122 Remove "match".
5123
6a3dbf1b
TT
51242019-09-10 Tom Tromey <tromey@adacore.com>
5125
5126 * psymtab.c (map_block): Remove.
5127 (psym_map_matching_symbols): Use iterate_over_symbols_terminated.
5128 * symtab.c (iterate_over_symbols_terminated): New function.
5129 * symtab.c (iterate_over_symbols_terminated): Declare.
5130
6969f124
TT
51312019-09-10 Tom Tromey <tromey@adacore.com>
5132
5133 * ada-lang.c (ada_iterate_over_symbols): Return bool.
5134 * language.h (struct language_defn) <la_iterate_over_symbols>:
5135 Return bool.
5136 * symtab.c (iterate_over_symbols): Return bool.
5137 * symtab.h (iterate_over_symbols): Return bool.
5138
199b4314
TT
51392019-09-10 Tom Tromey <tromey@adacore.com>
5140
5141 * ada-lang.c (aux_add_nonlocal_symbols): Change type.
5142 (add_nonlocal_symbols): Update.
5143 * dwarf2read.c (dw2_map_matching_symbols): Change type.
5144 * psymtab.c (map_block, psym_map_matching_symbols): Change type.
5145 * symfile-debug.c (debug_qf_map_matching_symbols): Change type.
5146 * symfile.h (struct quick_symbol_functions) <map_matching_symbols>:
5147 Change type of "callback". Remove "data".
5148
a084a2a6
AT
5149
51502019-09-09 Ali Tamur <tamur@google.com>
5151
5152 * dwarf2read.c (comp_unit_head): Update comment.
5153 (dwarf2_dwo_name): New function declaration.
5154 (dwarf_unit_type_name): New function declaration.
5155 (read_comp_unit_head): Add support for new compilation units,
5156 DW_UT_partial, DW_UT_skeleton, DW_UT_split_compile, DW_UT_split_type.
5157 Particularly, DW_UT_skeleton and DW_UT_split_compile have dwo_id
5158 (currently named as "signature") in their header. Also clarify error
5159 messages.
5160 (lookup_dwo_id): New function. Returns the dwo id of the given
5161 compile unit.
5162 (lookup_dwo_unit): Use the new lookup_dwo_id function.
5163 (init_cutu_and_read_dies): Use the new dwarf2_dwo_name and lookup_dwo_id
5164 functions.
5165 (create_dwo_cu_reader): Use the added lookup_dwo_id function.
5166 (dwarf2_dwo_name): Get the dwo name if present.
5167 (dwarf_unit_type_name): Convert DW_UT_* types to string for diagnostic
5168 purposes.
5169
25a2915e
TT
51702019-09-09 Tom Tromey <tom@tromey.com>
5171
5172 * tui/tui-win.c (tui_all_windows_info): Use ui_out.
5173
e4df0874
PW
51742019-09-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5175
5176 * python/python.c (do_start_initialization): Make progname_copy static,
5177 to avoid a leak report.
5178
8634b462
TT
51792019-09-08 Tom Tromey <tom@tromey.com>
5180
5181 * tui/tui-wingeneral.c (box_win): Truncate long window titles.
5182
c7f839cb
SM
51832019-09-07 Simon Marchi <simon.marchi@efficios.com>
5184
5185 * dwarf2read.c (struct dw2_symtab_iterator) <block_index>:
5186 Change type to gdb::optional<block_enum>.
5187 (dw2_symtab_iter_init): Change block_index parameter type
5188 to gdb::optional<block_enum>.
5189 (dw2_lookup_symbol): Change block_index parameter
5190 type to block_enum.c
5191 (dw2_debug_names_lookup_symbol): Likewise.
5192 * psymtab.c (psym_lookup_symbol): Likewise.
5193 * symfile-debug.c (debug_qf_lookup_symbol): Likewise.
5194 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
5195 Likewise.
5196
ead0e69a
CB
51972019-09-06 Christian Biesinger <cbiesinger@google.com>
5198
5199 * defs.h (relocate_gdb_directory): Change int to bool in
5200 signature and rename flag to relocatable.
5201 * main.c (relocate_path): Likewise.
5202 (relocate_gdb_directory): Likewise.
5203
b16c44de
AM
52042019-09-06 Alan Modra <amodra@gmail.com>
5205
5206 * coffread.c (coff_symfile_read): Constify filename variable.
5207 * dbxread.c (dbx_symfile_init, coffstab_build_psymtabs),
5208 (elfstab_build_psymtabs, stabsect_build_psymtabs): Likewise.
5209 * gdb_bfd.c (gdb_bfd_close_or_warn): Likewise.
5210 * solib.c (reload_shared_libraries_1): Likewise.
5211 * symfile.c (reread_symbols): Likewise.
5212 * solib-aix.c (solib_aix_bfd_open): Add cast for xfree of filename.
5213 * solib-darwin.c (darwin_bfd_open): Likewise.
5214 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
5215
06ff036e
AB
52162019-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
5217
5218 * psymtab.c (print_partial_symbols): Handle missing domain_enum
5219 values MODULE_DOMAIN and COMMON_BLOCK_DOMAIN.
5220
4e962e74
TT
52212019-09-03 Tom Tromey <tromey@adacore.com>
5222
5223 * ada-valprint.c (ada_val_print_num): Don't recurse for range
5224 types.
5225 (has_negatives): Unbias a range type bound.
5226 * dwarf2read.c (read_subrange_type): Handle DW_AT_GNU_bias.
5227 * gdbtypes.c (operator==): Handle new field.
5228 (create_range_type): Add "bias" parameter.
5229 (create_static_range_type, resolve_dynamic_range): Update.
5230 * gdbtypes.h (struct range_bounds) <bias>: New member.
5231 (create_range_type): Add bias parameter.
5232 * printcmd.c (print_scalar_formatted): Unbias range types.
5233 * value.c (unpack_long): Unbias range types.
5234 (pack_long): Bias range types.
5235
d90b8f26
AH
52362019-09-02 Alan Hayward <alan.hayward@arm.com>
5237
5238 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Check all
5239 probe arguments.
5240
fe01123e
AH
52412019-09-02 Alan Hayward <alan.hayward@arm.com>
5242
5243 * break-catch-throw.c (fetch_probe_arguments): Use gdbarch.
5244 * dtrace-probe.c (dtrace_probe::get_argument_count): Likewise.
5245 * probe.c (probe_safe_evaluate_at_pc) (compute_probe_arg)
5246 (compile_probe_arg): Likewise.
5247 * probe.h (get_argument_count): Likewise.
5248 * solib-svr4.c (solib_event_probe_action): Likewise.
5249 * stap-probe.c (stap_probe::get_argument_count): Likewise.
5250
e661ef01
AH
52512019-09-02 Alan Hayward <alan.hayward@arm.com>
5252
5253 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Move
5254 code to here...
5255 (svr4_create_solib_event_breakpoints): ...from here.
5256
47a536d9
SDJ
52572019-08-30 Sergio Durigan Junior <sergiodj@redhat.com>
5258
5259 * nat/fork-inferior.c (trace_start_error): Remove "\nError: "
5260 suffix from warning message.
5261
d6a00eba
TT
52622019-08-30 Tom Tromey <tom@tromey.com>
5263
5264 * tui/tui-winsource.h (struct tui_source_window_base)
5265 <refresh_all>: Don't declare.
5266 * tui/tui-winsource.c (tui_source_window_base::refresh_all):
5267 Remove.
5268 * tui/tui-win.c (tui_refresh_all_win): Don't call refresh_all or
5269 tui_show_locator_content.
5270 * tui/tui-regs.h (struct tui_data_window) <refresh_all>: Don't
5271 declare.
5272 * tui/tui-regs.c (tui_data_window::refresh_all): Remove.
5273 * tui/tui-data.h (struct tui_win_info) <refresh_all>: Don't
5274 declare.
5275
55b2657b
TT
52762019-08-30 Tom Tromey <tom@tromey.com>
5277
5278 * tui/tui-io.c (tui_cont_sig): Don't call wrefresh.
5279
12a8555a
TT
52802019-08-30 Tom Tromey <tom@tromey.com>
5281
5282 * tui/tui-stack.c (_initialize_tui_stack): Move later.
5283 Remove unnecessary forward declarations.
5284
900ac242
TT
52852019-08-30 Tom Tromey <tom@tromey.com>
5286
5287 * tui/tui-stack.c (tui_locator_window::set_locator_fullname): Call
5288 rerender.
5289 (tui_update_locator_fullname, tui_show_frame_info): Don't call
5290 tui_show_locator_content.
5291
99ab33fb
TT
52922019-08-30 Tom Tromey <tom@tromey.com>
5293
5294 * tui/tui-stack.c (tui_show_locator_content): Move lower. Rewrite.
5295 (tui_locator_window::rerender): Rewrite using body of previous
5296 tui_show_locator_content.
5297
e594a5d1
TT
52982019-08-30 Tom Tromey <tom@tromey.com>
5299
5300 * tui/tui-stack.h (struct tui_locator_window) <set_locator_info,
5301 set_locator_fullname>: New methods.
5302 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
5303 Rename from tui_set_locator_fullname.
5304 (tui_locator_window::set_locator_info): Rename from
5305 tui_set_locator_info. Return bool.
5306 (tui_update_locator_fullname, tui_show_frame_info): Update.
5307
715bb467
TT
53082019-08-30 Tom Tromey <tom@tromey.com>
5309
5310 * tui/tui-layout.c (show_layout): Don't call tui_refresh_all.
5311
772f3f03
TT
53122019-08-30 Tom Tromey <tom@tromey.com>
5313
5314 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Don't
5315 call touchwin.
5316
108e13ab
TT
53172019-08-30 Tom Tromey <tom@tromey.com>
5318
5319 * tui/tui-wingeneral.c (box_win): Assume win_info and
5320 win_info->handle cannot be NULL.
5321
cdaa6eb4
TT
53222019-08-30 Tom Tromey <tom@tromey.com>
5323
5324 * tui/tui-regs.h (struct tui_data_item_window) <rerender,
5325 refresh_window>: Declare.
5326 * tui/tui-regs.c (tui_data_window::display_registers_from): Call
5327 resize.
5328 (tui_data_item_window::rerender): Rename from
5329 tui_display_register.
5330 (tui_data_item_window::refresh_window): New method.
5331 * tui/tui-layout.c (tui_gen_win_info::resize): Do nothing on
5332 no-op.
5333
89df7f90
TT
53342019-08-30 Tom Tromey <tom@tromey.com>
5335
5336 * tui/tui-regs.h (struct tui_data_window) <regs_content,
5337 regs_column_count, current_group>: Move later. Now private.
5338 <get_current_group>: New method.
5339 * tui/tui-regs.c (tui_reg_command): Update.
5340 * tui/tui-layout.c (tui_set_layout): Update.
5341
1bf2866a
TT
53422019-08-30 Tom Tromey <tom@tromey.com>
5343
5344 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
5345 (tui_data_window::rerender): Don't call
5346 check_and_display_highlight_if_needed.
5347 (tui_data_window::refresh_all): Remove call to
5348 erase_data_content.
5349
0670413d
TT
53502019-08-30 Tom Tromey <tom@tromey.com>
5351
5352 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
5353 (tui_data_window::display_registers_from)
5354 (tui_data_window::display_reg_element_at_line)
5355 (tui_data_window::display_registers_from_line): Remove checks of
5356 "empty".
5357
18bb55c7
TT
53582019-08-30 Tom Tromey <tom@tromey.com>
5359
5360 * tui/tui-regs.h (struct tui_data_window) <display_all_data>:
5361 Don't declare.
5362 * tui/tui-regs.c (tui_data_window::show_registers): Call
5363 rerender.
5364 (tui_data_window::rerender): Rename from display_all_data.
5365 (tui_data_window::rerender): Remove old implementation.
5366
1f6d2f10
TT
53672019-08-30 Tom Tromey <tom@tromey.com>
5368
5369 * tui/tui-regs.c (tui_data_window::display_all_data): Change
5370 text.
5371 * tui/tui-data.h (NO_DATA_STRING): Remove define.
5372
16d01f9c
BW
53732019-08-29 Bernhard Wodok <barto@gmx.net>
5374 Sergio Durigan Junior <sergiodj@redhat.com>
5375
5376 PR win32/24284
5377 * mingw-hdep.c (gdb_select): Handle case when 'n' is zero.
5378
d8f27c60
AB
53792019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
5380
5381 * symtab.c (search_symbols): Don't include MODULE_DOMAIN symbols
5382 when searching for types.
5383
1f20c35e
AB
53842019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
5385
5386 * f-lang.c (f_language_defn): Use f_print_typedef.
5387 * f-lang.h (f_print_typedef): Declare.
5388 * f-typeprint.c (f_print_typedef): Define.
5389
550105b7
CB
53902019-08-27 Christian Biesinger <cbiesinger@google.com>
5391
5392 * nat/linux-namespaces.c (mnsh_main): Initialize fd (to -1).
5393
4acfdd20
AB
53942019-08-27 Andrew Burgess <andrew.burgess@embecosm.com>
5395
5396 * cli/cli-utils.c (info_print_options_defs): Delete.
5397 (make_info_print_options_def_group): Delete.
5398 (extract_info_print_options): Delete.
5399 (info_print_command_completer): Delete.
5400 (info_print_args_help): Add extra parameter, and optionally
5401 include text about -n flag.
5402 * cli/cli-utils.h (struct info_print_options): Delete.
5403 (extract_info_print_options): Delete declaration.
5404 (info_print_command_completer): Delete declaration.
5405 (info_print_args_help): Add extra parameter, extend header
5406 comment.
5407 * python/python.c (gdbpy_rbreak): Pass additional parameter to
5408 search_symbols.
5409 * stack.c (struct info_print_options): New type.
5410 (info_print_options_defs): New file scoped variable.
5411 (make_info_print_options_def_group): New static function.
5412 (info_print_command_completer): New static function.
5413 (info_locals_command): Update to use new local functions.
5414 (info_args_command): Likewise.
5415 (_initialize_stack): Add extra parameter to calls to
5416 info_print_args_help.
5417 * symtab.c (search_symbols): Add extra parameter, use this to
5418 possibly excluse non-debug symbols.
5419 (symtab_symbol_info): Add extra parameter, which is passed on to
5420 search_symbols.
5421 (struct info_print_options): New type.
5422 (info_print_options_defs): New file scoped variable.
5423 (make_info_print_options_def_group): New static function.
5424 (info_print_command_completer): New static function.
5425 (info_variables_command): Update to use local functions, and pass
5426 extra parameter through to symtab_symbol_info.
5427 (info_functions_command): Likewise.
5428 (info_types_command): Pass additional argument through to
5429 symtab_symbol_info.
5430 (rbreak_command): Pass extra argument to search_symbols.
5431 (_initialize_symtab): Add extra arguments for calls to
5432 info_print_args_help, and update help text for 'info variables',
5433 'whereis', and 'info functions' commands.
5434 * symtab.h (search_symbols): Add extra argument to declaration.
5435 * NEWS: Mention new flags.
5436
9aa55206
CB
54372019-08-26 Christian Biesinger <cbiesinger@google.com>
5438
5439 * symtab.c (lookup_static_symbol): Call the new function (and move
5440 it down to be next to lookup_global_symbol).
5441 (struct global_sym_lookup_data): Add block_enum member and rename to...
5442 (struct global_or_static_sym_lookup_data): ...this.
5443 (lookup_symbol_global_iterator_cb): Pass block_index instead of
5444 GLOBAL_BLOCK to lookup_symbol_in_objfile and rename to...
5445 (lookup_symbol_global_or_static_iterator_cb): ...this.
5446 (lookup_global_or_static_symbol): New function.
5447 (lookup_global_symbol): Call new function.
5448
5c31b358
TV
54492019-08-26 Tom de Vries <tdevries@suse.de>
5450
5451 PR c++/24852
5452 * break-catch-throw.c (fetch_probe_arguments): Improve error mesage
5453 when pc_probe.prob == NULL.
5454
23c13d42
SM
54552019-08-25 Simon Marchi <simon.marchi@efficios.com>
5456
5457 * dwarf2read.c (dw2_debug_names_iterator::next): Rename local
5458 variable symbol_linkage to symbol_linkage_.
5459
beadd3e8
SM
54602019-08-25 Simon Marchi <simon.marchi@efficios.com>
5461
5462 * dwarf2read.c (dw2_debug_names_iterator::next): Use enum to
5463 represent whether the symbol is static, dynamic, or we don't
5464 know.
5465
e3ec872f
YS
54662019-08-25 Yoshinori Sato <ysato@users.sourceforge.jp>
5467
5468 * gdb/rx-tdep.c (rx_register_names): New.
5469 (rx_register_name): Delete.
5470 (rx_psw_type): Delete.
5471 (rx_fpsw_type): Delete.
5472 (rx_register_type): Delete.
5473 (rx_gdbarch_init): Convert target-descriptions.
5474 (_initialize_rx_tdep): Add initialize_tdesc_rx.
5475 * gdb/features/Makefile: Add rx.xml.
5476 * gdb/features/rx.xml: New.
5477 * gdb/features/rx.c: Generated.
5478 * gdb/NEWS: Mention target description support.
5479
d0509ba4
CB
54802019-08-22 Christian Biesinger <cbiesinger@google.com>
5481
5482 * symtab.c (symbol_cache_lookup): Always initialize *bsc_ptr and
5483 *slot_ptr.
5484
2d41fa11
SDJ
54852019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
5486
5487 * configure.ac: Don't check for 'dlfcn.h' (moved to
5488 gdbsupport/common.m4).
5489 * Makefile.in (COMMON_SFILES): Move 'gdb-dlfcn.c' to
5490 'gdbsupport/'.
5491 (HFILES_NO_SRCDIR): Likewise, for 'gdb-dlfcn.h'.
5492 * compile/compile-c-support.c: Include
5493 'gdbsupport/gdb-dlfcn.h'.
5494 * gdbsupport/common.m4: Check for 'dlfcn.h'.
5495 * gdb-dlfcn.c: Move to...
5496 * gdbsupport/gdb-dlfcn.c: ... here.
5497 * gdb-dlfcn.h: Move to...
5498 * gdbsupport/gdb-dlfcn.h: ... here.
5499
de8af808
SL
55002019-08-23 Sandra Loosemore <sandra@codesourcery.com>
5501
5502 * nios2-tdep.c (struct reg_value): Improve comments. Make
5503 the offset field signed.
5504
27204489
CB
55052019-08-22 Christian Biesinger <cbiesinger@google.com>
5506
5507 * python/lib/gdb/__init__.py (_execute_file): New function.
5508 * python/python.c (python_run_simple_file): Call gdb._execute_file
5509 on Windows.
5510
43771869
AB
55112019-08-22 Andrew Burgess <andrew.burgess@embecosm.com>
5512
5513 * f-exp.y (yylex): Remove is_a_field_of_this local variable, and
5514 all uses as this was never set to anything but a zero value.
5515
26c957f1
PA
55162019-08-21 Bogdan Harjoc <harjoc@gmail.com>
5517
5518 * cli/cli-cmds.c (with_command_1): Error out if no arguments.
5519
c07aae6e
CB
55202019-08-21 Christian Biesinger <cbiesinger@google.com>
5521
5522 * tui/tui-data.h (tui_gen_win_info): Add an =default
5523 move constructor, required by some GCC versions.
5524
3960cb7a
JF
55252019-08-21 Jinke Fan <fanjinke51@yeah.net>
5526
5527 * go32-nat.c (go32_sysinfo): Add hygon_p.
5528
04c72a68
TT
55292019-08-20 Tom Tromey <tom@tromey.com>
5530
5531 * tui/tui-regs.h (struct tui_data_window) <last_regs_line_no,
5532 line_from_reg_element_no, first_reg_element_no_inline,
5533 display_all_data, delete_data_content_windows,
5534 erase_data_content>: Now private.
5535
072272ce
TT
55362019-08-20 Tom Tromey <tom@tromey.com>
5537
5538 * tui/tui-wingeneral.c (box_win): Change type of highlight_flag.
5539 (tui_unhighlight_win, tui_highlight_win)
5540 (tui_win_info::make_window): Update.
5541 * tui/tui-data.h (HILITE, NO_HILITE): Remove.
5542
973961bd
TT
55432019-08-20 Tom Tromey <tom@tromey.com>
5544
5545 * tui/tui-data.h (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
5546 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
5547 (MAX_PID_WIDTH): Move to tui-stack.c.
5548 * tui/tui-stack.c (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
5549 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
5550 (MAX_PID_WIDTH): Move from tui-data.h.
5551
ab0e1f1a
TT
55522019-08-20 Tom Tromey <tom@tromey.com>
5553
5554 * tui/tui-wingeneral.h (tui_make_window): Don't declare.
5555 * tui/tui-wingeneral.c (box_win): Change type of win_info.
5556 (box_win): Update.
5557 (tui_gen_win_info::make_window): Rename from tui_make_window.
5558 (tui_win_info::make_window): New method.
5559 (tui_gen_win_info::make_visible): Update.
5560 * tui/tui-source.c (tui_source_window::set_contents): Update.
5561 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
5562 (tui_data_window::display_registers_from): Update.
5563 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
5564 * tui/tui-data.h (struct tui_gen_win_info) <make_window>:
5565 Declare.
5566 <can_box>: Remove.
5567 <title>: Remove.
5568 (struct tui_win_info) <make_window>: Declare.
5569 <can_box>: Now virtual.
5570 <title>: New member.
5571 * tui/tui-data.c (~tui_gen_win_info): Don't free title.
5572 * tui/tui-command.c (tui_cmd_window::resize): Update.
5573
100c2bf3
TT
55742019-08-20 Tom Tromey <tom@tromey.com>
5575
5576 * tui/tui-regs.h (struct tui_data_window) <display_regs>: Remove.
5577 * tui/tui-regs.c (tui_data_window::show_registers): Update.
5578 (tui_data_window::check_register_values): Update.
5579
fa4dc567
TT
55802019-08-20 Tom Tromey <tom@tromey.com>
5581
5582 * tui/tui-regs.h (struct tui_data_window): Use
5583 DISABLE_COPY_AND_ASSIGN.
5584 <regs_content>: Change type, removing unique_ptr.
5585 <tui_data_window>: Add move constructor.
5586 * tui/tui-regs.c (tui_data_window::show_registers)
5587 (tui_data_window::show_register_group)
5588 (tui_data_window::display_registers_from)
5589 (tui_data_window::display_registers_from)
5590 (tui_data_window::first_data_item_displayed)
5591 (tui_data_window::delete_data_content_windows)
5592 (tui_data_window::rerender, tui_data_window::refresh_window)
5593 (tui_data_window::check_register_values): Update.
5594
ca02d7c8
TT
55952019-08-20 Tom Tromey <tom@tromey.com>
5596
5597 * tui/tui-regs.h (struct tui_data_window) <show_registers,
5598 show_register_group>: Declare.
5599 (tui_show_register_group): Don't declare.
5600 * tui/tui-regs.c (tui_data_window::show_registers): Rename from
5601 tui_show_registers.
5602 (tui_data_window::show_register_group): Rename from
5603 tui_show_register_group.
5604 (tui_data_window::check_register_values, tui_reg_command):
5605 Update.
5606 * tui/tui-layout.c (tui_set_layout): Update.
5607
63356bfd
TT
56082019-08-20 Tom Tromey <tom@tromey.com>
5609
5610 * tui/tui-regs.h (struct tui_data_window) <check_register_values>:
5611 Declare.
5612 (tui_check_register_values): Don't declare.
5613 * tui/tui-regs.c (tui_data_window::check_register_values): Rename
5614 from tui_check_register_values.
5615 * tui/tui-hooks.c (tui_register_changed): Update.
5616
42cc14a7
TT
56172019-08-20 Tom Tromey <tom@tromey.com>
5618
5619 * tui/tui-regs.c (tui_reg_layout): Move later.
5620 (tui_show_registers): Don't enable TUI mode or change layout.
5621
b9ad3686
TT
56222019-08-20 Tom Tromey <tom@tromey.com>
5623
5624 * tui/tui-regs.h (struct tui_data_item_window)
5625 <~tui_data_item_window>: Remove.
5626 <content>: Now a unique_xmalloc_ptr.
5627 * tui/tui-regs.c (tui_register_format): Return a
5628 unique_xmalloc_ptr.
5629 (tui_get_register): Update.
5630 (~tui_data_item_window): Remove.
5631 (tui_data_window::display_registers_from, tui_display_register):
5632 Update.
5633 * tui/tui-io.h (tui_expand_tabs): Update.
5634 * tui/tui-io.c (tui_expand_tabs): Return a unique_xmalloc_ptr.
5635 Remove "col" parameter.
5636
8e114aab
TT
56372019-08-20 Tom Tromey <tom@tromey.com>
5638
5639 * tui/tui-regs.h (struct tui_data_item_window) <value>: Remove
5640 field.
5641 * tui/tui-regs.c (~tui_data_item_window): Update.
5642
1a4f81dd
TT
56432019-08-20 Tom Tromey <tom@tromey.com>
5644
5645 * tui/tui-regs.c (tui_register_format, tui_get_register): Move
5646 earlier.
5647
0f8d8876
TT
56482019-08-20 Tom Tromey <tom@tromey.com>
5649
5650 * tui/tui-regs.c (tui_reg_command): Remove NULL check.
5651
605dc2c2
TT
56522019-08-20 Tom Tromey <tom@tromey.com>
5653
5654 * tui/tui-source.h (struct tui_source_window): Update.
5655 * tui/tui-regs.c (tui_show_registers): Update.
5656 * tui/tui-disasm.h (struct tui_disasm_window): Update.
5657 * tui/tui-data.h (NO_SRC_STRING, NO_DISASSEM_STRING)
5658 (NO_REGS_STRING): Remove defines.
5659
aedbe3bb
CM
56602019-08-20 Conrad Meyer <cem@FreeBSD.org>
5661
5662 * remote.c (remote_target::remote_btrace_maybe_reopen): Avoid
5663 unnecessary thread walk if remote doesn't support the packet.
5664
7ce8f214
TT
56652019-08-19 Tom Tromey <tromey@adacore.com>
5666
5667 * python/py-value.c (value_has_field): Fix indentation.
5668
f21c2bd7
TT
56692019-08-19 Tom Tromey <tromey@adacore.com>
5670
5671 * printcmd.c (do_one_display, info_display_command): Update.
5672 * block.h (contained_in): Return bool. Add allow_nested
5673 parameter.
5674 * block.c (contained_in): Return bool. Add allow_nested
5675 parameter.
5676
d806ea2d
TT
56772019-08-19 Tom Tromey <tom@tromey.com>
5678
5679 * configure: Rebuild.
5680 * configure.ac: Disallow the combination of -static-libstdc++ and
5681 source highlight.
5682 * source-cache.c (get_language_name): Handle rust.
5683 (source_cache::get_source_lines): Ignore highlighting exceptions.
5684
398fdd60
TT
56852019-08-16 Tom Tromey <tom@tromey.com>
5686
5687 * tui/tui.h (enum tui_win_type) <EXEC_INFO_WIN>: Remove.
5688 * tui/tui-winsource.h (struct tui_exec_info_window): Remove.
5689 (struct tui_source_window_base) <make_visible, refresh_window,
5690 resize>: Remove methods.
5691 <execution_info>: Remove field.
5692 * tui/tui-winsource.c (tui_source_window_base::do_erase_source_content)
5693 (tui_show_source_line, tui_source_window_base)
5694 (~tui_source_window_base): Update.
5695 (tui_source_window_base::resize)
5696 (tui_source_window_base::make_visible)
5697 (tui_source_window_base::refresh_window): Remove.
5698 (tui_source_window_base::update_exec_info): Update.
5699 * tui/tui-source.c (tui_source_window::set_contents): Update.
5700 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
5701
e699d331
TT
57022019-08-16 Tom Tromey <tom@tromey.com>
5703
5704 * tui/tui-hooks.c (tui_remove_hooks): Don't set
5705 deprecated_query_hook.
5706
bb01dbfc
TT
57072019-08-16 Tom Tromey <tom@tromey.com>
5708
5709 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
5710 (tui_update_source_windows_with_line): Update.
5711 * tui/tui-source.h (struct tui_source_window)
5712 <show_symtab_source>: Declare.
5713 (tui_show_symtab_source): Don't declare.
5714 * tui/tui-source.c (tui_show_symtab_source): Rename from
5715 tui_show_symtab_source.
5716
81c82c4b
TT
57172019-08-16 Tom Tromey <tom@tromey.com>
5718
5719 * tui/tui-winsource.h (struct tui_source_window_base)
5720 <set_contents>: Declare.
5721 * tui/tui-winsource.c
5722 (tui_source_window_base::update_source_window_as_is): Update.
5723 * tui/tui-source.h (struct tui_source_window) <set_contents>:
5724 Declare.
5725 (tui_set_source_content): Don't declare.
5726 * tui/tui-source.c (tui_source_window::set_contents): Rename from
5727 tui_set_source_content.
5728 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
5729 Declare.
5730 (tui_set_disassem_content): Don't declare.
5731 * tui/tui-disasm.c (tui_disasm_window::set_contents): Rename from
5732 tui_set_disassem_content.
5733
2ddaf614
TT
57342019-08-16 Tom Tromey <tom@tromey.com>
5735
5736 * tui/tui-winsource.h (struct tui_source_window_base)
5737 <update_breakpoint_info>: Declare.
5738 (tui_update_breakpoint_info): Don't declare.
5739 * tui/tui-winsource.c (tui_source_window_base::update_source_window_as_is)
5740 (tui_update_all_breakpoint_info): Update.
5741 (tui_source_window_base::update_breakpoint_info): Rename from
5742 tui_update_breakpoint_info.
5743 (tui_source_window_base::update_exec_info): Update.
5744
017f9828
TT
57452019-08-16 Tom Tromey <tom@tromey.com>
5746
5747 * tui/tui-winsource.h (struct tui_source_window_base)
5748 <update_source_window>: Declare.
5749 (tui_update_source_window): Don't declare.
5750 * tui/tui-winsource.c
5751 (tui_source_window_base::update_source_window): Rename from
5752 tui_update_source_window.
5753 (tui_source_window_base::rerender): Update.
5754 * tui/tui-source.c (tui_source_window::maybe_update): Update.
5755 * tui/tui-disasm.c (tui_show_disassem)
5756 (tui_show_disassem_and_update_source)
5757 (tui_disasm_window::maybe_update): Update.
5758
ed8358e9
TT
57592019-08-16 Tom Tromey <tom@tromey.com>
5760
5761 * tui/tui-winsource.h (struct tui_source_window_base)
5762 <update_source_window_as_is>: Declare.
5763 (tui_update_source_window_as_is): Don't declare.
5764 * tui/tui-winsource.c (tui_update_source_window): Update
5765 (tui_source_window_base::update_source_window_as_is): Rename from
5766 tui_update_source_window_as_is.
5767 (tui_source_window_base::refill): Update.
5768 * tui/tui-source.c (tui_show_symtab_source): Update.
5769 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical):
5770 Update.
5771
20149b6b
TT
57722019-08-16 Tom Tromey <tom@tromey.com>
5773
5774 * tui/tui-winsource.h (tui_update_source_window)
5775 (tui_update_source_window_as_is): Remove "noerror" parameter.
5776 * tui/tui-winsource.c (tui_update_source_window)
5777 (tui_update_source_window_as_is): Remove "noerror" parameter.
5778 (tui_update_source_windows_with_addr)
5779 (tui_update_source_windows_with_line)
5780 (tui_source_window_base::rerender)
5781 (tui_source_window_base::refill): Update.
5782 * tui/tui-source.h (tui_set_source_content)
5783 (tui_show_symtab_source): Remove "noerror" parameter.
5784 * tui/tui-source.c (tui_set_source_content): Remove "noerror"
5785 parameter.
5786 (tui_show_symtab_source): Likewise.
5787 (tui_source_window::maybe_update): Update.
5788 * tui/tui-disasm.c (tui_show_disassem)
5789 (tui_show_disassem_and_update_source)
5790 (tui_disasm_window::do_scroll_vertical)
5791 (tui_disasm_window::maybe_update): Update.
5792
2d83e710
TT
57932019-08-16 Tom Tromey <tom@tromey.com>
5794
5795 * tui/tui.c (tui_is_window_visible): Update.
5796 * tui/tui-wingeneral.c (tui_make_window)
5797 (tui_gen_win_info::make_visible, tui_refresh_all): Update.
5798 * tui/tui-win.c (window_name_completer, tui_refresh_all_win)
5799 (tui_set_focus_command, tui_all_windows_info, update_tab_width)
5800 (tui_set_win_height_command, parse_scrolling_args): Update.
5801 * tui/tui-source.c (tui_source_window::style_changed): Update.
5802 * tui/tui-regs.c (tui_show_registers)
5803 (tui_data_window::first_data_item_displayed)
5804 (tui_data_window::delete_data_content_windows)
5805 (tui_check_register_values, tui_reg_command): Update.
5806 * tui/tui-disasm.c (tui_show_disassem): Update.
5807 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: New
5808 method.
5809 <is_visible>: Remove field.
5810 * tui/tui-data.c (tui_next_win, tui_prev_win)
5811 (tui_delete_invisible_windows): Update.
5812
d4ab829a
TT
58132019-08-16 Tom Tromey <tom@tromey.com>
5814
5815 * tui/tui-winsource.h (struct tui_source_window_base)
5816 <m_has_locator>: Remove.
5817 * tui/tui-layout.c (show_source_disasm_command, show_data)
5818 (show_source_or_disasm_and_command): Update.
5819
aa7ca1bb
AH
58202019-08-16 Alan Hayward <alan.hayward@arm.com>
5821
5822 * NEWS (Other MI changes): New subsection.
5823 * aarch64-tdep.c (aarch64_get_pc_address_flags): New function.
5824 (aarch64_gdbarch_init): Add aarch64_get_pc_address_flags.
5825 * arch-utils.c (default_get_pc_address_flags): New function.
5826 * arch-utils.h (default_get_pc_address_flags): New declaration.
5827 * gdbarch.sh: Add get_pc_address_flags.
5828 * gdbarch.c: Regenerate.
5829 * gdbarch.h: Likewise.
5830 * stack.c (print_pc): New function.
5831 (print_frame_info) (print_frame): Call print_pc.
5832
6eac171f
TV
58332019-08-16 Tom de Vries <tdevries@suse.de>
5834
5835 * maint.c (maintenance_info_sections): Also handle !ALLOBJ case using
5836 print_objfile_section_info.
5837
3df505f6
TT
58382019-08-15 Tom Tromey <tom@tromey.com>
5839
5840 * tui/tui-io.c (tui_puts_internal): Check TUI_CMD_WIN before
5841 calling update_cmdwin_start_line.
5842 * tui/tui-winsource.h (struct tui_source_window_base)
5843 <do_make_visible_with_new_height, set_new_height>: Don't declare.
5844 <rerender>: Declare.
5845 * tui/tui-winsource.c (tui_source_window_base::update_tab_width):
5846 Call rerender.
5847 (tui_source_window_base::set_new_height): Remove.
5848 (tui_source_window_base::rerender): Rename from
5849 do_make_visible_with_new_height.
5850 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use
5851 resize method.
5852 (tui_win_info::make_invisible_and_set_new_height)
5853 (tui_win_info::make_visible_with_new_height): Remove.
5854 * tui/tui-stack.h (struct tui_locator_window) <rerender>:
5855 Declare.
5856 * tui/tui-stack.c (tui_locator_window::rerender): New method.
5857 * tui/tui-regs.h (struct tui_data_window) <set_new_height,
5858 do_make_visible_with_new_height>: Don't declare.
5859 <rerender>: Declare.
5860 * tui/tui-regs.c (tui_data_window::rerender): Rename from
5861 set_new_height.
5862 (tui_data_window::do_make_visible_with_new_height): Remove.
5863 * tui/tui-layout.c (show_source_disasm_command, show_data): Don't
5864 call tui_show_locator_content.
5865 (tui_gen_win_info::resize): Call rerender.
5866 (show_source_or_disasm_and_command): Don't call
5867 tui_show_locator_content.
5868 * tui/tui-data.h (struct tui_gen_win_info) <rerender>: New
5869 method.
5870 (struct tui_win_info) <rerender>: Declare.
5871 <set_new_height, make_invisible_and_set_new_height,
5872 make_visible_with_new_height>: Don't declare.
5873 * tui/tui-data.c (tui_win_list::rerender): New method.
5874 * tui/tui-command.h (struct tui_cmd_window)
5875 <do_make_visible_with_new_height>: Don't declare.
5876 * tui/tui-command.c
5877 (tui_cmd_window::do_make_visible_with_new_height): Remove.
5878
272560b5
TT
58792019-08-15 Tom Tromey <tromey@adacore.com>
5880
5881 * ada-exp.y (convert_char_literal): Handle "Q%c" encoding.
5882 * ada-lang.c (ada_enum_name): Likewise.
5883
08235187
CB
58842019-08-15 Christian Biesinger <cbiesinger@google.com>
5885
5886 * python/lib/gdb/__init__.py (GdbOutputFile): Rename to have a
5887 leading underscore.
5888 (GdbOutputErrorFile): Likewise.
5889 (global scope): Adjust constructor calls to GdbOutput{,Error}File
5890 accordingly.
5891 (execute_unwinders): Rename to have a leading underscore.
5892 (auto_load_packages): Likewise.
5893 (global scope): Adjust call to auto_load_packages accordingly.
5894 (GdbSetPythonDirectory): Likewise.
5895 * python/py-unwind.c (pyuw_sniffer): Call _execute_unwinders
5896 instead of execute_unwinders.
5897
db502012
TT
58982019-08-15 Tom Tromey <tom@tromey.com>
5899
5900 * tui/tui-layout.c (show_layout, show_source_disasm_command)
5901 (show_data): Don't change window visibility.
5902 (tui_gen_win_info::resize): Remove special case for command
5903 window. Use wresize, when available.
5904 (show_source_or_disasm_and_command): Don't change window
5905 visibility.
5906 * tui/tui-command.h (struct tui_cmd_window) <resize>: Declare.
5907 <make_visible>: New method.
5908 * tui/tui-command.c (tui_cmd_window::resize): New method.
5909
3891b65e
TT
59102019-08-15 Tom Tromey <tom@tromey.com>
5911
5912 * tui/tui-winsource.h (struct tui_source_window_iterator): New.
5913 (struct tui_source_windows): New.
5914 * tui/tui-winsource.c (tui_display_main): Update.
5915 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
5916 (new_height_ok, parse_scrolling_args): Update.
5917 * tui/tui-layout.c (show_layout, show_data): Update.
5918 * tui/tui-data.h (tui_source_windows, tui_clear_source_windows)
5919 (tui_add_to_source_windows): Don't declare.
5920 * tui/tui-data.c (source_windows, tui_source_windows)
5921 (tui_clear_source_windows, tui_add_to_source_windows): Remove.
5922
ee556432
TT
59232019-08-15 Tom Tromey <tom@tromey.com>
5924
5925 * tui/tui-winsource.h (struct tui_source_window_base) <resize>:
5926 Rename from reset.
5927 * tui/tui-winsource.c (tui_source_window_base::resize): Rename.
5928 * tui/tui-layout.c (show_source_disasm_command, show_data):
5929 Update.
5930 (tui_gen_win_info::resize): Rename.
5931 (show_source_or_disasm_and_command): Update.
5932 * tui/tui-data.h (struct tui_gen_win_info) <resize>: Rename from
5933 reset.
5934
46f438e3
TT
59352019-08-15 Tom Tromey <tom@tromey.com>
5936
5937 * tui/tui-stack.c (tui_initialize_static_data): Remove.
5938 * tui/tui-interp.c (tui_interp::init): Don't call
5939 tui_initialize_static_data.
5940 * tui/tui-data.h (tui_initialize_static_data): Don't declare.
5941
f4ce562c
TT
59422019-08-15 Tom Tromey <tom@tromey.com>
5943
5944 * tui/tui-layout.c (tui_default_win_viewport_height): Don't
5945 examine tui_win_list.
5946
c398c3d0
TT
59472019-08-15 Tom Tromey <tom@tromey.com>
5948
5949 * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
5950 * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
5951 tui_clear_source_content.
5952 (tui_clear_source_content): Remove.
5953 (tui_source_window_base::do_erase_source_content): Hoist call to
5954 content.clear().
5955 * tui/tui-stack.c (tui_show_frame_info): Don't call
5956 tui_clear_source_content.
5957
e25d2004
TT
59582019-08-15 Tom Tromey <tom@tromey.com>
5959
5960 * tui/tui-winsource.h (struct tui_source_window_base)
5961 <do_erase_source_content>: New method.
5962 <erase_source_content>: New method.
5963 (tui_erase_source_content): Don't declare.
5964 * tui/tui-winsource.c (tui_clear_source_content): Update.
5965 (tui_source_window_base::do_erase_source_content): Rename from
5966 tui_erase_source_content.
5967 (tui_source_window_base::show_source_content): Update.
5968 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
5969 * tui/tui-source.h (struct tui_source_window)
5970 <erase_source_content>: New method.
5971 * tui/tui-disasm.h (struct tui_disasm_window)
5972 <erase_source_content>: New method.
5973
002f15c2
TT
59742019-08-15 Tom Tromey <tom@tromey.com>
5975
5976 * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
5977 (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
5978 constructor.
5979 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
5980 * tui/tui-source.c (tui_set_source_content): Update.
5981 * tui/tui-disasm.c (tui_set_disassem_content): Update.
5982
c9033fe8
TT
59832019-08-15 Tom Tromey <tom@tromey.com>
5984
5985 * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
5986 * tui/tui-winsource.c (tui_line_is_displayed): Move to
5987 tui-source.c.
5988 * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
5989 Declare.
5990 * tui/tui-source.c (tui_source_window::line_is_displayed): New
5991 method.
5992 (tui_source_window::maybe_update): Update.
5993
088f37dd
TT
59942019-08-15 Tom Tromey <tom@tromey.com>
5995
5996 * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
5997 * tui/tui-winsource.c (tui_addr_is_displayed): Move to
5998 tui-disasm.c.
5999 * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
6000 Declare.
6001 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
6002 method.
6003 (tui_disasm_window::maybe_update): Update.
6004
a54700c6
TT
60052019-08-15 Tom Tromey <tom@tromey.com>
6006
6007 * tui/tui-winsource.h (struct tui_source_window_base)
6008 <maybe_update>: Declare.
6009 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
6010 method.
6011 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
6012 Declare.
6013 * tui/tui-source.c (tui_source_window::maybe_update): New method.
6014 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
6015 Declare.
6016 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
6017
e2a678a5
TT
60182019-08-15 Tom Tromey <tom@tromey.com>
6019
6020 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
6021
f2dda477
TT
60222019-08-15 Tom Tromey <tom@tromey.com>
6023
6024 * tui/tui-wingeneral.c: Include tui-stack.h.
6025 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
6026 (struct tui_locator_window): Move from tui-data.h.
6027 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
6028 (tui_initialize_static_data): Move from tui-data.c.
6029 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
6030 (struct tui_locator_window): Move to tui-stack.c.
6031 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
6032 (tui_initialize_static_data): Move to tui-stack.c.
6033
ed4a1084
TT
60342019-08-15 Tom Tromey <tom@tromey.com>
6035
6036 * tui/tui-layout.c (show_source_disasm_command)
6037 (show_source_or_disasm_and_command): Use make_visible method, not
6038 tui_make_window.
6039 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
6040 Remove.
6041
65962b20
TT
60422019-08-15 Tom Tromey <tom@tromey.com>
6043
6044 * tui/tui-wingeneral.h (tui_make_window): Update.
6045 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
6046 parameter.
6047 (tui_gen_win_info::make_visible): Update.
6048 * tui/tui-regs.c (tui_data_window::display_registers_from):
6049 Update.
6050 * tui/tui-layout.c (show_source_disasm_command)
6051 (show_source_or_disasm_and_command): Update.
6052 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
6053 (enum tui_box): Remove.
6054 (struct tui_win_info) <can_box>: New method.
6055 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
6056 method.
6057
2208ee91
TV
60582019-08-15 Tom de Vries <tdevries@suse.de>
6059
6060 * linux-nat-trad.c: Include gdbarch.h.
6061
75faf5c4
AH
60622019-08-14 Alan Hayward <alan.hayward@arm.com>
6063
6064 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
6065 register sizes.
6066
b1c896b3
TT
60672019-08-14 Tom Tromey <tromey@adacore.com>
6068
6069 * darwin-nat.c: Include gdbarch.h.
6070 * darwin-nat-info.c: Include gdbarch.h.
6071
6405cd73
TT
60722019-08-13 Tom Tromey <tom@tromey.com>
6073
6074 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
6075 Remove.
6076 * tui/tui-data.c (tui_initialize_static_data): Update.
6077
5216580d
TT
60782019-08-13 Tom Tromey <tom@tromey.com>
6079
6080 * tui/tui-winsource.h (struct tui_exec_info_window)
6081 <~tui_exec_info_window, maybe_allocate_content, get_content,
6082 m_content>: Remove.
6083 (struct tui_source_window_base) <set_exec_info_content,
6084 show_exec_info_content>: Don't declare.
6085 * tui/tui-winsource.c
6086 (tui_exec_info_window::maybe_allocate_content): Remove.
6087 (tui_source_window_base::update_exec_info): Rename from
6088 set_exec_info_content.
6089 (tui_source_window_base::show_exec_info_content)
6090 (tui_source_window_base::update_exec_info): Remove.
6091
93858ad3
TT
60922019-08-13 Tom Tromey <tom@tromey.com>
6093
6094 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
6095 declare.
6096 * tui/tui-winsource.c (tui_update_source_window_as_is)
6097 (tui_update_source_windows_with_addr, tui_erase_source_content):
6098 Update.
6099 (tui_clear_exec_info_content): Remove.
6100
e321e7ce
TT
61012019-08-13 Tom Tromey <tom@tromey.com>
6102
6103 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
6104 declare.
6105 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
6106 call tui_erase_exec_info_content.
6107 (tui_clear_exec_info_content): Rename from
6108 tui_erase_exec_info_content.
6109 (tui_clear_exec_info_content): Delete.
6110
8270ac62
TT
61112019-08-13 Tom Tromey <tom@tromey.com>
6112
6113 * tui/tui-winsource.h (struct tui_source_window_base)
6114 <show_exec_info_content>: Declare.
6115 (tui_show_exec_info_content): Don't declare.
6116 * tui/tui-winsource.c
6117 (tui_source_window_base::show_exec_info_content): Rename from
6118 tui_show_exec_info_content.
6119 (tui_source_window_base::update_exec_info): Update.
6120
7b56485d
TT
61212019-08-13 Tom Tromey <tom@tromey.com>
6122
6123 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
6124 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
6125 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
6126 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
6127 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
6128 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
6129 ... here.
6130
7ba913dc
TT
61312019-08-13 Tom Tromey <tom@tromey.com>
6132
6133 * tui/tui-winsource.h (struct tui_source_window_base)
6134 <update_exec_info>: Declare.
6135 (tui_update_exec_info): Don't declare.
6136 * tui/tui-winsource.c (tui_update_source_window_as_is)
6137 (tui_source_window_base::refresh_all)
6138 (tui_update_all_breakpoint_info): Update.
6139 (tui_source_window_base::update_exec_info): Rename from
6140 tui_update_exec_info.
6141 * tui/tui-stack.c (tui_show_frame_info): Update.
6142
37a4a131
TT
61432019-08-13 Tom Tromey <tom@tromey.com>
6144
6145 * tui/tui-winsource.h (struct tui_source_window_base)
6146 <set_exec_info_content>: Declare.
6147 (tui_set_exec_info_content): Don't declare.
6148 * tui/tui-winsource.c
6149 (tui_source_window_base::set_exec_info_content): Rename from
6150 tui_set_exec_info_content.
6151 (tui_update_exec_info): Update.
6152
0bd27e07
TT
61532019-08-13 Tom Tromey <tom@tromey.com>
6154
6155 * tui/tui-winsource.h (struct tui_source_window_base)
6156 <show_source_content>: Declare.
6157 (tui_show_source_content): Don't declare.
6158 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
6159 (tui_source_window_base::show_source_content): Rename from
6160 tui_show_source_content.
6161 (tui_source_window_base::refresh_all): Update.
6162 * tui/tui-layout.c (show_source_disasm_command)
6163 (show_source_or_disasm_and_command): Update.
6164
b4ef5aeb
TT
61652019-08-13 Tom Tromey <tom@tromey.com>
6166
6167 * tui/tui-winsource.c (tui_erase_source_content)
6168 (tui_show_source_content, tui_source_window_base::refresh_all):
6169 Update.
6170 * tui/tui-wingeneral.h
6171 (tui_check_and_display_highlight_if_needed): Don't declare.
6172 * tui/tui-wingeneral.c
6173 (tui_win_info::check_and_display_highlight_if_needed): Rename from
6174 check_and_display_highlight_if_needed.
6175 * tui/tui-win.c (tui_rehighlight_all)
6176 (tui_win_info::make_visible_with_new_height): Update.
6177 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
6178 (tui_data_window::erase_data_content)
6179 (tui_data_window::display_all_data): Update.
6180 * tui/tui-data.h (struct tui_win_info)
6181 <check_and_display_highlight_if_needed>: Declare.
6182
fede5273
TT
61832019-08-13 Tom Tromey <tom@tromey.com>
6184
6185 * tui/tui-win.c (tui_resize_all): Call
6186 tui_delete_invisible_windows.
6187 * tui/tui-layout.c (show_layout): Call
6188 tui_delete_invisible_windows.
6189 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
6190 * tui/tui-data.c (tui_delete_invisible_windows): New function.
6191
22c3f490
TT
61922019-08-13 Tom Tromey <tom@tromey.com>
6193
6194 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
6195 tui_add_win_to_layout.
6196
16cb7910
TT
61972019-08-13 Tom Tromey <tom@tromey.com>
6198
6199 * tui/tui-layout.h (tui_default_win_height): Don't declare.
6200 * tui/tui-layout.c (tui_default_win_height): Now static.
6201
cc0c3ffb
TT
62022019-08-13 Tom Tromey <tom@tromey.com>
6203
6204 * tui/tui-layout.c (show_layout): Unify all layout cases into a
6205 single switch.
6206 (show_source_disasm_command, show_source_or_disasm_and_command):
6207 Don't check current layout.
6208
3f3ffe54
TT
62092019-08-13 Tom Tromey <tom@tromey.com>
6210
6211 * tui/tui-wingeneral.c (make_all_visible): Remove.
6212 (tui_make_all_invisible): Simplify.
6213 * tui/tui-layout.c (tui_make_all_invisible): Move from
6214 tui-wingeneral.c; simplify.
6215 (show_layout): Hoist call to tui_make_all_invisible.
6216 (show_data): Don't call tui_make_all_invisible.
6217
69258091
TT
62182019-08-13 Tom Tromey <tom@tromey.com>
6219
6220 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
6221 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
6222
62cf57fe
TT
62232019-08-13 Tom Tromey <tom@tromey.com>
6224
6225 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
6226 tui-data.c.
6227 (show_source_disasm_command, show_data)
6228 (show_source_or_disasm_and_command): Don't use
6229 tui_set_current_layout_to.
6230 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
6231 * tui/tui-data.c (current_layout, tui_current_layout): Move to
6232 tui-layout.c.
6233 (tui_set_current_layout_to): Remove.
6234
2afade5d
TT
62352019-08-13 Tom Tromey <tom@tromey.com>
6236
6237 * tui/tui-layout.c (tui_set_layout): Update.
6238 * tui/tui-data.h (struct tui_layout_def): Remove.
6239 (tui_layout_def): Don't declare.
6240 * tui/tui-data.c (layout_def): Remove.
6241 (tui_layout_def): Remove.
6242
a3504e96
TT
62432019-08-13 Tom Tromey <tom@tromey.com>
6244
6245 * tui/tui-winsource.h (struct tui_source_window_base)
6246 <clear_detail>: No longer "override".
6247 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
6248 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
6249 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
6250 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
6251 Remove.
6252 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
6253
29c92911
TT
62542019-08-13 Tom Tromey <tromey@adacore.com>
6255
6256 * tracepoint.c: Don't include readline.h or history.h.
6257
86c6b807
TT
62582019-08-12 Tom Tromey <tom@tromey.com>
6259
6260 * configure: Rebuild.
6261 * configure.ac: Check for readline 7.
6262 * NEWS: Mention readline 7 requirement.
6263 * README: Update.
6264
5db2718c
TT
62652019-08-12 Tom Tromey <tom@tromey.com>
6266
6267 * mingw-hdep.c (gdb_select): Remove readline hack.
6268
dac36daf
PFC
62692019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6270
6271 * blockframe.c (find_pc_partial_function): Set *block to nullptr
6272 when the function fails.
6273
1022c627
AA
62742019-08-09 Andreas Arnez <arnez@linux.ibm.com>
6275
6276 * s390-tdep.c (s390_type_align): New function.
6277 (s390_gdbarch_init): Set it as type_align gdbarch method.
6278
eba4caf2
TV
62792019-08-09 Tom de Vries <tdevries@suse.de>
6280
6281 PR gdb/24591
6282 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
6283 pc_low with relocation offset.
6284
123cd851
TT
62852019-08-07 Tom Tromey <tromey@adacore.com>
6286
6287 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
6288 (print_frame_args): Update.
6289 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
6290 Update.
6291 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
6292 * frame.h (struct frame_arg): Add initializers.
6293 <error>: Now a unique_xmalloc_ptr.
6294
3d31bc39
AH
62952019-08-07 Alan Hayward <alan.hayward@arm.com>
6296
6297 * NEWS: Expand the Pointer Authentication entry.
6298 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
6299 (aarch64_frame_unmask_lr): ... to this.
6300 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
6301 Call aarch64_frame_unmask_lr.
6302 * frame.c (struct frame_info): Add "masked" variable.
6303 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
6304 (fprint_frame): Check for masked pc.
6305 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
6306 declarations.
6307 * python/py-framefilter.c (py_print_frame): Check for masked pc.
6308 * stack.c (print_frame): Check for masked pc.
6309
0cf9feb9
TT
63102019-08-06 Tom Tromey <tom@tromey.com>
6311
6312 * stabsread.c (patch_block_stabs, read_one_struct_field)
6313 (read_enum_type): Use obstack_strndup.
6314 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
6315 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
6316 * dwarf2read.c (guess_full_die_structure_name)
6317 (anonymous_struct_prefix): Use obstack_strndup.
6318 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
6319 * c-exp.y (yylex): Use obstack_strndup.
6320 * ada-exp.y (write_object_renaming, write_ambiguous_var)
6321 (write_var_or_type): Use obstack_strndup.
6322
efba19b0
TT
63232019-08-06 Tom Tromey <tom@tromey.com>
6324
6325 * symfile.c (reread_symbols): Use obstack_strdup.
6326 * stabsread.c (read_type): Use obstack_strdup.
6327 * gdb_obstack.h (obstack_strdup): New overload.
6328 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
6329 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
6330 (dwarf2_canonicalize_name): Use obstack_strdup.
6331 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
6332 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
6333 Use obstack_strdup.
6334
f25102f7
TT
63352019-08-06 Tom Tromey <tom@tromey.com>
6336
6337 * gdb_obstack.h (obstack_strdup): Define.
6338 * gdb_obstack.c (obstack_strdup): Don't define.
6339
021887d8
TT
63402019-08-06 Tom Tromey <tom@tromey.com>
6341
6342 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
6343 obstack_strdup.
6344 * typeprint.c (typedef_hash_table::find_global_typedef): Use
6345 obstack_strdup.
6346 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
6347 * stabsread.c (common_block_start): Use obstack_strdup.
6348 * objfiles.c (set_objfile_main_name, objfile): Use
6349 obstack_strdup.
6350 * namespace.c (add_using_directive): Use obstack_strdup.
6351 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
6352 * jit.c (finalize_symtab): Use obstack_strdup.
6353 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
6354 (guess_partial_die_structure_name, partial_die_info::fixup)
6355 (dwarf2_name): Use obstack_strdup.
6356 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
6357 obstack_strdup.
6358 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
6359 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
6360 obstack_strdup.
6361 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
6362
d2834edc
PW
63632019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6364
6365 * unittests/help-doc-selftests.c: New file.
6366 * Makefile.in: Add the new file.
6367
590042fc
PW
63682019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6369
6370 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
6371 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
6372 the full first line, except when FOR_VALUE_PREFIX. In this case,
6373 the trailing '.' is not output, and the first character is uppercased.
6374 (print_help_for_command): Update call to print_doc_line.
6375 (print_doc_of_command): Likewise.
6376 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
6377 * cli/cli-option.c (append_indented_doc): Do not append newline.
6378 (build_help_option): Append newline after first appended_indented_doc
6379 only if a second call is done.
6380 (build_help): Append 2 new lines before each option, except the first
6381 one.
6382 * compile/compile.c (_initialize_compile): Add new lines after
6383 %OPTIONS%, when not at the end of the help.
6384 Change help doc or code
6385 producing the help doc to respect the invariants.
6386 * maint-test-options.c (_initialize_maint_test_options): Likewise.
6387 Also removed the new line after 'Options:', as all other commands
6388 do not put an empty line between 'Options:' and the first option.
6389 * printcmd.c (_initialize_printcmd): Likewise.
6390 * stack.c (_initialize_stack): Likewise.
6391 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
6392 incorrectly telling COMMAND is optional.
6393 * ada-lang.c (_initialize_ada_language): Change help doc or code
6394 producing the help doc to respect the invariants.
6395 * ada-tasks.c (_initialize_ada_tasks): Likewise.
6396 * breakpoint.c (_initialize_breakpoint): Likewise.
6397 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
6398 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
6399 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
6400 * cli/cli-style.c (cli_style_option::add_setshow_commands,
6401 _initialize_cli_style): Likewise.
6402 * corelow.c (core_target_info): Likewise.
6403 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
6404 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
6405 * filesystem.c (_initialize_filesystem): Likewise.
6406 * frame.c (_initialize_frame): Likewise.
6407 * gnu-nat.c (add_task_commands): Likewise.
6408 * infcall.c (_initialize_infcall): Likewise.
6409 * infcmd.c (_initialize_infcmd): Likewise.
6410 * interps.c (_initialize_interpreter): Likewise.
6411 * language.c (_initialize_language): Likewise.
6412 * linux-fork.c (_initialize_linux_fork): Likewise.
6413 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
6414 * maint.c (_initialize_maint_cmds): Likewise.
6415 * memattr.c (_initialize_mem): Likewise.
6416 * printcmd.c (_initialize_printcmd): Likewise.
6417 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
6418 _RegEx): Likewise.
6419 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
6420 * record-btrace.c (_initialize_record_btrace): Likewise.
6421 * record-full.c (_initialize_record_full): Likewise.
6422 * record.c (_initialize_record): Likewise.
6423 * regcache-dump.c (_initialize_regcache_dump): Likewise.
6424 * regcache.c (_initialize_regcache): Likewise.
6425 * remote.c (add_packet_config_cmd, init_remote_threadtests,
6426 _initialize_remote): Likewise.
6427 * ser-tcp.c (_initialize_ser_tcp): Likewise.
6428 * serial.c (_initialize_serial): Likewise.
6429 * skip.c (_initialize_step_skip): Likewise.
6430 * source.c (_initialize_source): Likewise.
6431 * stack.c (_initialize_stack): Likewise.
6432 * symfile.c (_initialize_symfile): Likewise.
6433 * symtab.c (_initialize_symtab): Likewise.
6434 * target-descriptions.c (_initialize_target_descriptions): Likewise.
6435 * top.c (init_main): Likewise.
6436 * tracefile-tfile.c (tfile_target_info): Likewise.
6437 * tracepoint.c (_initialize_tracepoint): Likewise.
6438 * tui/tui-win.c (_initialize_tui_win): Likewise.
6439 * utils.c (add_internal_problem_command): Likewise.
6440 * valprint.c (value_print_option_defs): Likewise.
6441
404f2902
FCE
64422019-08-06 Frank Ch. Eigler <fche@redhat.com>
6443
6444 PR build/24886
6445 * configure.ac: Drop enable-libmcheck support.
6446 * configure, config.in: Rebuild.
6447 * libmcheck.m4: Remove.
6448 * acinclude.m4: Don't include it.
6449 * Makefile.in: Don't distribute it.
6450 * top.c (print_gdb_configuration): Don't mention it.
6451
046bebe1
TT
64522019-08-06 Tom Tromey <tom@tromey.com>
6453
6454 * utils.c (set_output_style): Sometimes pass stream to
6455 emit_style_escape.
6456 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
6457 * record-btrace.c (btrace_insn_history): Update.
6458 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
6459 method.
6460 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
6461 Update initializers.
6462 <m_uiout>: New field.
6463 <m_di>: Move lower.
6464 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
6465 Remove "uiout" parameter.
6466 (dump_insns): Update.
6467 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
6468 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
6469
ddbcedf5
CB
64702019-08-06 Christian Biesinger <cbiesinger@google.com>
6471
6472 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
6473 (error_in_psymtab_expansion): Likewise.
6474 (lookup_symbol_via_quick_fns): Likewise.
6475 (basic_lookup_transparent_type_quick): Likewise.
6476 (basic_lookup_transparent_type_1): Likewise.
6477
b08b16c8
TT
64782019-08-06 Tom Tromey <tromey@adacore.com>
6479
6480 * source.c (last_source_error): Now bool.
6481 (print_source_lines_base): Make "noprint" bool. Only open
6482 source file when last_source_visited changes.
6483
cb44333d
TT
64842019-08-06 Tom Tromey <tromey@adacore.com>
6485
6486 * annotate.c (annotate_source_line): Use g_source_cache.
6487 * source-cache.c (source_cache::get_plain_source_lines): Change
6488 parameters. Populate m_offset_cache.
6489 (source_cache::ensure): New method.
6490 (source_cache::get_line_charpos): New method.
6491 (extract_lines): Move lower. Change parameters.
6492 (source_cache::get_source_lines): Move lower.
6493 * source-cache.h (class source_cache): Update comment.
6494 <get_line_charpos>: New method.
6495 <get_source_lines>: Update comment.
6496 <clear>: Clear m_offset_cache.
6497 <get_plain_source_lines>: Change parameters.
6498 <ensure>: New method
6499 <m_offset_cache>: New member.
6500 * source.c (forget_cached_source_info_for_objfile): Update.
6501 (info_source_command): Use g_source_cache.
6502 (find_source_lines, open_source_file_with_line_charpos): Remove.
6503 (print_source_lines_base, search_command_helper): Use g_source_cache.
6504 * source.h (open_source_file_with_line_charpos): Don't declare.
6505 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
6506 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
6507 Use g_source_cache.
6508
872dceaa
TT
65092019-08-06 Tom Tromey <tromey@adacore.com>
6510
6511 * source-cache.c (source_cache::get_plain_source_lines):
6512 Remove "first_line" and "last_line" parameters.
6513 (source_cache::get_source_lines): Cache plain text.
6514 * source-cache.h (class source_cache)
6515 <get_plain_source_lines>: Update.
6516
269249d9
TT
65172019-08-06 Tom Tromey <tromey@adacore.com>
6518
6519 * source-cache.c (extract_lines): No longer a method.
6520 Changed type of parameter. Include final newline.
6521 (selftests::extract_lines_test): New function.
6522 (_initialize_source_cache): Likewise.
6523 * source-cache.h (class source_cache)
6524 <extract_lines>: Don't declare.
6525
c0e8dcd8
TT
65262019-08-06 Tom Tromey <tromey@adacore.com>
6527
6528 * breakpoint.c (init_breakpoint_sal): Update.
6529 (breakpoint): Update.
6530 * breakpoint.h (struct breakpoint) <filter>: Now a
6531 unique_xmalloc_ptr.
6532
0b27c27d
CB
65332019-08-05 Christian Biesinger <cbiesinger@google.com>
6534
6535 * NEWS: Mention dictionary access on blocks.
6536 * python/py-block.c (blpy_getitem): New function.
6537 (block_object_as_mapping): New struct.
6538 (block_object_type): Use new struct for tp_as_mapping field.
6539
4ee94178
CB
65402019-08-05 Christian Biesinger <cbiesinger@google.com>
6541
6542 * objfiles.h (objfile): Add a comment describing partial symbols.
6543
8abfcabc
TT
65442019-08-05 Tom Tromey <tromey@adacore.com>
6545
6546 * compile/compile.c (_initialize_compile): Use _(), not N_().
6547 * thread.c (_initialize_thread): Use _(), not N_().
6548 * stack.c (_initialize_stack): Use _(), not N_().
6549 * printcmd.c (_initialize_printcmd): Use _(), not N_().
6550
2b79f376
SM
65512019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6552
6553 * dwarf2read.c (struct dw2_symtab_iterator):
6554 <want_specific_block>: Remove.
6555 <block_index>: Change type to gdb::optional.
6556 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
6557 change type of BLOCK_INDEX parameter to gdb::optional.
6558 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
6559 (dw2_lookup_symbol): Don't pass argument for
6560 WANT_SPECIFIC_BLOCK.
6561 (dw2_expand_symtabs_for_function): Don't pass argument for
6562 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
6563 (class dw2_debug_names_iterator)
6564 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
6565 parameter, change BLOCK_INDEX type to gdb::optional.
6566 <m_want_specific_block>: Remove.
6567 <m_block_index>: Change type to gdb::optional.
6568 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
6569 gdb::optional. Re-write in function of gdb::optional.
6570 (dw2_debug_names_lookup_symbol): Don't pass argument for
6571 WANT_SPECIFIC_BLOCK.
6572 (dw2_debug_names_expand_symtabs_for_function): Don't pass
6573 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
6574 BLOCK_INDEX.
6575
ae60f04e
PW
65762019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6577
6578 * NEWS: Mention changes to "info sources" command.
6579
28cd9371
PW
65802019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6581
6582 * symtab.c (filename_partial_match_opts): New struct type.
6583 (struct output_source_filename_data): New members
6584 regexp, c_regexp, partial_match.
6585 (output_source_filename): Use new members to decide to print file.
6586 (info_sources_option_defs): New variable.
6587 (make_info_sources_options_def_group, print_info_sources_header,
6588 info_sources_command_completer):
6589 New functions.
6590 (info_sources_command): Read new optional arguments.
6591 (_initialize_symtab): Update info sources help.
6592
ca683e3a
AO
65932019-08-02 Alexandre Oliva <oliva@adacore.com>
6594
6595 * ada-lang.c (exception_support_info_v0): Renamed from...
6596 (default_exception_support_info): ... this. Create new
6597 definition for v1.
6598 (ada_has_this_exception_support): Look up catch_handlers_sym.
6599 (ada_exception_support_info_sniffer): Try v0 after default.
6600
f1264162
TT
66012019-08-01 Tom Tromey <tromey@adacore.com>
6602
6603 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
6604 gdbarch.h.
6605
0a7b2485
CB
66062019-08-01 Christian Biesinger <cbiesinger@google.com>
6607
6608 * s12z-tdep.c: Fix include path for s12z-opc.h.
6609
c6bdbeb7
AH
66102019-08-01 Alan Hayward <alan.hayward@arm.com>
6611
6612 * NEWS: Require GNU make 3.82.
6613
a2bd7b82
TT
66142019-07-16 Tom Tromey <tom@tromey.com>
6615
6616 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
6617 declare.
6618
aa3b6533
TT
66192019-07-30 Tom Tromey <tromey@adacore.com>
6620
6621 * block.c (contained_in): Remove BLOCK_FUNCTION check.
6622
a1530dc7
KB
66232019-07-30 Kevin Buettner <kevinb@redhat.com>
6624
6625 * printcmd.c (print_address_symbolic): Print negative offsets.
6626 (build_address_symbolic): Force signed arithmetic when computing
6627 offset.
6628
2906593f
CB
66292019-07-30 Christian Biesinger <cbiesinger@google.com>
6630
6631 PR/24474: Add a function to lookup static variables.
6632 * NEWS: Mention this new function.
6633 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
6634 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
6635 * python/python.c (python_GdbMethods): Add new function.
6636
c620ed88
CB
66372019-07-29 Christian Biesinger <cbiesinger@google.com>
6638
6639 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
6640 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
6641 (objfpy_lookup_static_symbol): New function.
6642 (objfile_object_methods): Add new functions.
6643
bc4268a5
PW
66442019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6645
6646 * NEWS: Mention 'set|show print frame-info'. Mention new
6647 'presence' value for 'frame-arguments'. Mention new '-frame-info'
6648 backtrace argument. Mention that python frame filtering code
6649 is now consistent with what 'backtrace' command prints.
6650
4b5e8d19
PW
66512019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6652
6653 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
6654 comments.
6655 (print_frame_info_auto, print_frame_info_source_line,
6656 print_frame_info_location, print_frame_info_source_and_location,
6657 print_frame_info_location_and_address, print_frame_info_short_location):
6658 New declarations.
6659 (struct frame_print_options): New member print_frame_info.
6660 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
6661 * stack.h (get_user_print_what_frame_info): New declaration.
6662 (frame_show_address): New declaration.
6663 * stack.c (print_frame_arguments_choices): New value 'presence'.
6664 (print_frame_info_auto, print_frame_info_source_line,
6665 print_frame_info_location, print_frame_info_source_and_location,
6666 print_frame_info_location_and_address, print_frame_info_short_location,
6667 print_frame_info_choices, print_frame_info_print_what): New definitions.
6668 (print_frame_args): Only print dots for args if print frame-arguments
6669 is 'presence'.
6670 (frame_print_option_defs): New element for "frame-info".
6671 (get_user_print_what_frame_info): New function.
6672 (frame_show_address): Make non static. Move comment to stack.h.
6673 (print_frame_info_to_print_what): New function.
6674 (print_frame_info): Update comment. Use fp_opts.print_frame_info
6675 to decide what to print.
6676 (backtrace_command_1): Handle the new print_frame_arguments_presence
6677 value.
6678 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
6679 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
6680 (py_print_frame): In non-mi mode, use LOCATION as default for
6681 print_what, similarly to frame information printed directly by
6682 backtrace command. Handle frame-info user option in non MI mode.
6683
6bdfee81
KB
66842019-07-27 Kevin Buettner <kevinb@redhat.com>
6685
6686 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
6687 Add case for debugging 32-bit target on 64-bit host. Revise
6688 comment.
6689
98a617f8
KB
66902019-07-27 Kevin Buettner <kevinb@redhat.com>
6691
6692 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
6693 instead of find_function_entry_range_from_pc.
6694
567238c9
KB
66952019-07-27 Kevin Buettner <kevinb@redhat.com>
6696
6697 * stack.c (find_frame_funname): Remove code which preferred
6698 minsym over symtab sym in "certain pathological cases".
6699
2dc80cf8
KB
6700 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
6701 parameter. Change type of "do_demangle" to bool.
6702 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
6703 Pass suitable "prefer_sym_over_minsym" flag to
6704 build_address_symbolic(). Don't output "+" for negative offsets.
6705 * printcmd.c (print_address_symbolic): Update invocation of
6706 build_address_symbolic to include a "prefer_sym_over_minsym"
6707 flag.
6708 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
6709 Restrict cases in which use of minimal symbol is preferred to that
6710 of a found symbol. Update comments.
6711
1aff7173
KB
6712 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
6713 for entry pc when entry pc is out of range for that FDE.
6714
89b085ac
BC
67152019-07-26 Brian Callahan <bcallah@openbsd.org>
6716
6717 PR gdb/24839:
6718 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
6719 type.
6720
f32feb4a
CB
67212019-07-25 Christian Biesinger <cbiesinger@google.com>
6722
6723 * python/py-objfile.c (add_separate_debug_file): Fix comment about
6724 this function's Python signature.
6725
6726
67272019-07-24 Christian Biesinger <cbiesinger@google.com>
442853af
CB
6728
6729 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
6730 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
6731 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
6732 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
6733 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
6734
6735
c54e4253
YS
67362019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
6737
6738 * h8300-tdep.c (h8300_register_name_common): New.
6739 h8300_register_name): Use h8300_register_name_common.
6740 (h8300s_register_name): Likewise.
6741 (h8300sx_register_name): Likewise.
6742 (h8300h_register_nam): New.
6743 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
6744
6745
40eadf04
SP
67462019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
6747
6748 * arm-tdep.c (arm_skip_cmse_entry): New function.
6749 (arm_is_sgstubs_section): New function.
6750 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
6751
bfa2a36d
TT
67522019-07-22 Tom Tromey <tom@tromey.com>
6753
6754 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
6755 Don't self-assign.
6756
a8e9d247
AB
67572019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
6758
6759 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
6760 type_print.
6761
eb86c5e2
AB
67622019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
6763
6764 * symtab.c (search_symbols): Adjust msymbol matching type arrays
6765 so that GDB doesn't match any msymbols when searching in the
6766 TYPES_DOMAIN.
6767 (print_symbol_info): Print using typedef_print or type_print based
6768 on the type of the symbol. Add updated FIXME comment moved from...
6769 (_initialize_symtab): ... move and update FIXME comment to above.
6770
a8eab7c6
AB
67712019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
6772
6773 * NEWS: Mention adding -q option to "info types".
6774 * symtab.c (struct info_types_options): New struct.
6775 (info_types_options_defs): New variable.
6776 (make_info_types_options_def_group): New function.
6777 (info_types_command): Use gdb::option framework to parse options.
6778 (info_types_command_completer): New function.
6779 (_initialize_symtab): Extend the help text on "info types" and
6780 register command completer.
6781
b4603c34
CB
67822019-07-21 Christian Biesinger <cbiesinger@google.com>
6783
6784 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
6785 (lookup_symbol_in_objfile): Change int to block_enum and add a
6786 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
6787
c8cdc1e0
CB
67882019-07-20 Christian Biesinger <cbiesinger@google.com>
6789
6790 * MAINTAINERS (Write After Approval): Add self.
6791
01e175fe
AB
67922019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
6793
6794 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
6795 instruction to the dummy code region.
6796
56f79b63
TT
67972019-07-19 Tom Tromey <tromey@adacore.com>
6798
6799 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
6800 (ARGSUSED, PARAMS, __func__): Remove rules.
6801
4c5aa8e0
AH
68022019-07-19 Alan Hayward <alan.hayward@arm.com>
6803
6804 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
6805 * features/arm/arm-with-iwmmxt.c: Remove.
6806 * features/arm/arm-with-iwmmxt.xml: Remove.
6807 * features/arm/arm-with-m-fpa-layout.c: Remove.
6808 * features/arm/arm-with-m-fpa-layout.xml: Remove.
6809 * features/arm/arm-with-m-vfp-d16.c: Remove.
6810 * features/arm/arm-with-m-vfp-d16.xml: Remove.
6811 * features/arm/arm-with-m.c: Remove.
6812 * features/arm/arm-with-m.xml: Remove.
6813 * features/arm/arm-with-neon.c: Remove.
6814 * features/arm/arm-with-neon.xml: Remove.
6815 * features/arm/arm-with-vfpv2.c: Remove.
6816 * features/arm/arm-with-vfpv2.xml: Remove.
6817 * features/arm/arm-with-vfpv3.c: Remove.
6818 * features/arm/arm-with-vfpv3.xml: Remove.
6819
f42b2617
AH
68202019-07-19 Alan Hayward <alan.hayward@arm.com>
6821
6822 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
6823
f29ec966
AH
68242019-07-19 Alan Hayward <alan.hayward@arm.com>
6825
6826 * arch/aarch32.c (aarch32_create_target_description): Create
6827 target descriptions using features.
6828 * arch/arm.c (arm_create_target_description)
6829 (arm_create_mprofile_target_description): Likewise.
6830 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
6831
d105cce5
AH
68322019-07-19 Alan Hayward <alan.hayward@arm.com>
6833
6834 * Makefile.in: Add new files.
6835 * aarch32-tdep.c: New file.
6836 * aarch32-tdep.h: New file.
6837 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
6838 Call aarch32_read_description.
6839 * arch/aarch32.c: New file.
6840 * arch/aarch32.h: New file.
6841 * arch/arm.c (arm_create_target_description)
6842 (arm_create_mprofile_target_description): New function.
6843 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
6844 (arm_create_target_description)
6845 (arm_create_mprofile_target_description): New declaration.
6846 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
6847 read_description functions.
6848 * arm-linux-nat.c (arm_linux_nat_target::read_description):
6849 Likewise.
6850 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
6851 * arm-tdep.c (tdesc_arm_list): New variable.
6852 (arm_register_g_packet_guesses): Call create description functions.
6853 (arm_read_description) (arm_read_mprofile_description): New
6854 function.
6855 * arm-tdep.h (arm_read_description)
6856 (arm_read_mprofile_description): Add declaration.
6857 * configure.tgt: Add new files.
6858
afe09f0b
GL
68592019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
6860
6861 * top.c (new_ui_command): Open specified terminal just once.
6862
cd215b2e
TT
68632019-07-18 Tom Tromey <tromey@adacore.com>
6864
6865 * symtab.c (main_name): Constify return type.
6866 * symfile.c (set_initial_language): Update.
6867 * symtab.h (main_name): Constify return type.
6868
d8f68fcb
TT
68692019-07-17 Tom Tromey <tom@tromey.com>
6870
6871 * tui/tui-winsource.c (tui_update_source_window)
6872 (tui_update_source_window_as_is)
6873 (tui_update_source_windows_with_line): Remove return.
6874 * tui/tui-disasm.c (tui_show_disassem)
6875 (tui_show_disassem_and_update_source): Remove return.
6876 * tui/tui.c (tui_reset): Remove return.
6877 * tui/tui-wingeneral.c
6878 (tui_check_and_display_highlight_if_needed): Remove return.
6879
ca5af91e
TT
68802019-07-17 Tom Tromey <tom@tromey.com>
6881
6882 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
6883
5104fe36
TT
68842019-07-17 Tom Tromey <tom@tromey.com>
6885
6886 * tui/tui-winsource.h (struct tui_exec_info_window)
6887 (struct tui_source_window_base): Move from tui-data.h.
6888 * tui/tui-winsource.c: Move many method definitions from
6889 elsewhere. Remove "structuring" comments.
6890 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
6891 (tui_source_window_base::refresh_window): Move to
6892 tui-winsource.c.
6893 * tui/tui-win.c (tui_source_window_base::refresh_all)
6894 (tui_source_window_base::update_tab_width)
6895 (tui_source_window_base::set_new_height)
6896 (tui_source_window_base::do_make_visible_with_new_height): Move to
6897 tui-winsource.c.
6898 * tui/tui-source.h: Update.
6899 * tui/tui-source.c (tui_source_window_base::reset): Move to
6900 tui-winsource.c.
6901 * tui/tui-disasm.h: Update.
6902 * tui/tui-data.h (struct tui_exec_info_window): Move to
6903 tui-winsource.h.
6904 (struct tui_source_window_base): Likewise.
6905 * tui/tui-data.c (tui_source_window_base::clear_detail)
6906 (tui_source_window_base, ~tui_source_window_base): Move to
6907 tui-winsource.c.
6908
daa15dde
TT
69092019-07-17 Tom Tromey <tom@tromey.com>
6910
6911 * tui/tui-win.c (tui_resize_all)
6912 (tui_source_window_base::update_tab_width)
6913 (tui_adjust_win_heights): Update.
6914 (tui_win_info::make_invisible_and_set_new_height): Rename from
6915 make_invisible_and_set_new_height.
6916 * tui/tui-data.h (struct tui_win_info)
6917 <make_invisible_and_set_new_height>: New method.
6918
bfad4537
TT
69192019-07-17 Tom Tromey <tom@tromey.com>
6920
6921 * tui/tui.c: Update.
6922 * tui/tui-source.h (struct tui_source_window): Move from
6923 tui-data.h.
6924 * tui/tui-layout.c: Update.
6925 * tui/tui-disasm.c: Update.
6926 * tui/tui-data.h (struct tui_source_window): Move to
6927 tui-source.h.
6928
88f7e873
TT
69292019-07-17 Tom Tromey <tom@tromey.com>
6930
6931 * tui/tui-disasm.h (struct tui_disasm_window): Move from
6932 tui-data.h.
6933 * tui/tui-data.h (struct tui_disasm_window): Move to
6934 tui-disasm.h.
6935
96bd6233
TT
69362019-07-17 Tom Tromey <tom@tromey.com>
6937
6938 * tui/tui-regs.h (struct tui_data_item_window): Move from
6939 tui-data.h.
6940 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
6941 * tui/tui-data.h (struct tui_data_item_window): Move to
6942 tui-regs.h.
6943 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
6944
ce38393b
TT
69452019-07-17 Tom Tromey <tom@tromey.com>
6946
6947 * tui/tui.c: Update.
6948 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
6949 (tui_cmd_window::max_height): Move to tui-command.c.
6950 * tui/tui-layout.c: Update.
6951 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
6952 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
6953 tui-command.c.
6954 * tui/tui-command.h (struct tui_cmd_window): Move from
6955 tui-data.h.
6956 * tui/tui-command.c: Remove "structuring" comments.
6957 (tui_cmd_window::clear_detail)
6958 (tui_cmd_window::do_make_visible_with_new_height)
6959 (tui_cmd_window::max_height): Move from elsewhere.
6960
2d8b51cb
TT
69612019-07-17 Tom Tromey <tom@tromey.com>
6962
6963 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
6964 Now static.
6965 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
6966 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
6967
18ab23af
TT
69682019-07-17 Tom Tromey <tom@tromey.com>
6969
6970 * tui/tui.c: Update.
6971 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
6972 tui-regs.c.
6973 * tui/tui-windata.h: Remove file.
6974 * tui/tui-windata.c: Remove file.
6975 * tui/tui-win.c (tui_data_window::set_new_height)
6976 (tui_data_window::do_make_visible_with_new_height): Move to
6977 tui-regs.c.
6978 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
6979 * tui/tui-regs.c: Remove "structuring" comments.
6980 (tui_data_window::first_data_item_displayed)
6981 (tui_data_window::delete_data_content_windows)
6982 (tui_data_window::erase_data_content)
6983 (tui_data_window::display_all_data)
6984 (tui_data_window::refresh_all)
6985 (tui_data_window::do_scroll_vertical)
6986 (tui_data_window::clear_detail, tui_data_window::set_new_height)
6987 (tui_data_window::do_make_visible_with_new_height)
6988 (tui_data_window::refresh_window): Move from elsewhere.
6989 (_initialize_tui_regs): Move to end of file.
6990 * tui/tui-layout.c: Update.
6991 * tui/tui-hooks.c: Update.
6992 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
6993 * tui/tui-data.c (tui_data_window::clear_detail): Move to
6994 tui-regs.c.
6995 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
6996
88b7e7cc
TT
69972019-07-17 Tom Tromey <tom@tromey.com>
6998
6999 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
7000 seen.
7001
0fcd3711
TT
70022019-07-17 Tom Tromey <tom@tromey.com>
7003
7004 * tui/tui-win.c (tui_source_window_base::set_new_height)
7005 (tui_source_window_base::do_make_visible_with_new_height): Use
7006 m_has_locator field directly.
7007 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
7008 method.
7009 (struct tui_source_window_base) <has_locator>: Likewise.
7010
4a38112d
TT
70112019-07-17 Tom Tromey <tom@tromey.com>
7012
7013 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
7014 Don't declare.
7015 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
7016 Remove.
7017 * tui/tui-win.c (tui_source_window_base::set_new_height)
7018 (tui_source_window_base::set_new_height)
7019 (make_invisible_and_set_new_height)
7020 (tui_source_window_base::do_make_visible_with_new_height)
7021 (tui_source_window_base::do_make_visible_with_new_height):
7022 Update.
7023 * tui/tui-layout.c (show_source_disasm_command, show_data)
7024 (show_source_or_disasm_and_command): Update.
7025 * tui/tui-layout.c (show_layout): Update.
7026
09129226
TT
70272019-07-17 Tom Tromey <tom@tromey.com>
7028
7029 * tui/tui-layout.c (make_data_window): Remove.
7030 (show_data): Unify creation and re-initialization cases.
7031
4a8a5e84
TT
70322019-07-17 Tom Tromey <tom@tromey.com>
7033
7034 * tui/tui-layout.c (make_source_window, make_disasm_window):
7035 Remove.
7036 (show_data): Unify creation and re-initialization cases.
7037
76d2be8e
TT
70382019-07-17 Tom Tromey <tom@tromey.com>
7039
7040 * tui/tui-layout.c (make_command_window): Remove.
7041 (show_source_disasm_command, show_source_or_disasm_and_command):
7042 Unify creation and re-initialization cases.
7043
890b8bde
TT
70442019-07-17 Tom Tromey <tom@tromey.com>
7045
7046 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
7047 creation and re-initialization cases.
7048
2cdfa113
TT
70492019-07-17 Tom Tromey <tom@tromey.com>
7050
7051 * tui/tui-regs.c (tui_get_register): Return void.
7052
8e3cfd09
TT
70532019-07-17 Tom Tromey <tom@tromey.com>
7054
7055 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
7056 Simplify.
7057
f4e04977
TT
70582019-07-17 Tom Tromey <tom@tromey.com>
7059
7060 * tui/tui-layout.c (show_source_disasm_command): Simplify window
7061 resetting.
7062
0379b883
TT
70632019-07-17 Tom Tromey <tom@tromey.com>
7064
7065 * tui/tui.h (tui_set_layout_by_name): Don't declare.
7066 * tui/tui-regs.c (tui_reg_layout): New function.
7067 (tui_show_registers, tui_reg_command): Use it.
7068 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
7069 (tui_layout_command): Rename from tui_set_layout_by_name. Change
7070 parameters.
7071 (tui_layout_command): Remove.
7072
b7fbad91
TT
70732019-07-17 Tom Tromey <tom@tromey.com>
7074
7075 * tui/tui-layout.h (tui/tui-layout): Return void.
7076 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
7077
4e1e56b9
TT
70782019-07-17 Tom Tromey <tom@tromey.com>
7079
7080 * tui/tui-layout.c (show_source_disasm_command, show_data):
7081 Update.
7082 (reset_locator): Remove.
7083 (show_source_or_disasm_and_command): Update.
7084
1e0c09ba
TT
70852019-07-17 Tom Tromey <tom@tromey.com>
7086
7087 * tui/tui-source.c (tui_source_window_base::reset): Remove
7088 win_type parameter.
7089 * tui/tui-layout.c (make_command_window, make_source_window)
7090 (make_disasm_window, make_data_window)
7091 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
7092 (reset_locator, show_source_or_disasm_and_command): Update.
7093 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
7094 win_type parameter.
7095 (struct tui_source_window_base) <reset>: Likewise.
7096
1bf605de
TT
70972019-07-17 Tom Tromey <tom@tromey.com>
7098
7099 * tui/tui-layout.c (show_source_disasm_command): Use
7100 reset_locator.
7101 (reset_locator): New function.
7102 (init_and_make_win): Remove.
7103 (show_source_or_disasm_and_command): Use reset_locator.
7104
098f9ed4
TT
71052019-07-17 Tom Tromey <tom@tromey.com>
7106
7107 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
7108 condition.
7109 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
7110 Remove condition.
7111 * tui/tui-source.c (tui_source_window_base::reset): New method.
7112 * tui/tui-layout.c (make_command_window): Don't call
7113 init_and_make_win.
7114 (make_source_window, make_disasm_window): Don't call
7115 make_source_or_disasm_window.
7116 (make_data_window): Don't call init_and_make_win. Change calling
7117 convention.
7118 (show_source_disasm_command, show_data): Simplify.
7119 (make_source_or_disasm_window): Remove.
7120 (show_source_or_disasm_and_command): Simplify.
7121 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
7122 (struct tui_source_window_base) <reset>: Likewise.
7123 <execution_info>: Remove initializer.
7124 * tui/tui-data.c (tui_source_window_base): Initialize
7125 execution_info.
7126
80110957
TT
71272019-07-17 Tom Tromey <tom@tromey.com>
7128
7129 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
7130 variable.
7131
cf82af05
TT
71322019-07-17 Tom Tromey <tom@tromey.com>
7133
7134 * tui/tui.c (tui_rl_other_window): Update.
7135 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
7136 superclass method first. Always iterate over regs_content.
7137 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
7138 method.
7139 * tui/tui-win.c (tui_set_focus_command): Update.
7140
01aeb396
TT
71412019-07-17 Tom Tromey <tom@tromey.com>
7142
7143 * tui/tui-win.c (tui_set_focus_command): Rename from
7144 tui_set_focus. Call tui_enable.
7145 (tui_set_focus_command): Remove.
7146
fd6c75ee
TT
71472019-07-17 Tom Tromey <tom@tromey.com>
7148
7149 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
7150 refresh_window.
7151 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
7152 touchwin.
7153 (tui_data_window::refresh_window): Call refresh_window on data
7154 items. Always call superclass refresh_window.
7155 (tui_win_info::refresh): Remove.
7156 (tui_source_window_base::refresh_window): Update.
7157 (tui_refresh_all): Update.
7158 * tui/tui-layout.c (show_source_disasm_command): Remove call to
7159 refresh_window.
7160 (show_source_or_disasm_and_command): Likewise.
7161 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
7162 (struct tui_source_window_base) <refresh>: Likewise.
7163
f6cc34a9
TT
71642019-07-17 Tom Tromey <tom@tromey.com>
7165
7166 * tui/tui-winsource.c (tui_clear_source_content)
7167 (tui_show_source_content): Update.
7168 * tui/tui-source.c (tui_source_window::showing_source_p): Check
7169 whether content is empty.
7170 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
7171 Remove.
7172
f31ec9af
TT
71732019-07-17 Tom Tromey <tom@tromey.com>
7174
7175 * tui/tui-winsource.c (tui_erase_source_content): Clear the
7176 window's contents.
7177 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
7178 * tui/tui-source.c (tui_set_source_content_nil): Remove.
7179
d1b6f1e5
TT
71802019-07-17 Tom Tromey <tom@tromey.com>
7181
7182 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
7183 (struct tui_data_item_window): Update.
7184
d9743a13
TT
71852019-07-17 Tom Tromey <tom@tromey.com>
7186
7187 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
7188 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
7189 defines.
7190
caf0bc4e
TT
71912019-07-17 Tom Tromey <tom@tromey.com>
7192
7193 * tui/tui-winsource.h (tui_erase_source_content)
7194 (tui_clear_source_content): Remove "display_prompt" parameter.
7195 * tui/tui-winsource.c (tui_update_source_window_as_is)
7196 (tui_update_source_windows_with_addr): Update.
7197 (tui_clear_source_content): Remove "display_prompt" parameter.
7198 (tui_erase_source_content): Likewise. Simplify.
7199 (tui_show_source_content): Update.
7200 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
7201 * tui/tui-stack.c (tui_show_frame_info): Update.
7202 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
7203 Remove defines.
7204
9d391078
TT
72052019-07-17 Tom Tromey <tom@tromey.com>
7206
7207 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
7208 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
7209 parameter.
7210 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
7211 parameter.
7212
a38da35d
TT
72132019-07-17 Tom Tromey <tom@tromey.com>
7214
7215 * tui/tui-winsource.c (tui_clear_source_content)
7216 (tui_show_source_content, tui_show_exec_info_content)
7217 (tui_clear_exec_info_content): Update.
7218 * tui/tui-stack.c (tui_show_locator_content): Update.
7219 (tui_show_frame_info): Update.
7220 * tui/tui-source.h (tui_source_window): Don't declare.
7221 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
7222 from tui_source_is_displayed.
7223 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
7224 Remove field.
7225 (struct tui_source_window_base) <content_in_use>: New field. Now
7226 bool.
7227 (struct tui_source_window) <showing_source_p>: New method.
7228 (TUI_SRC_WIN): Change cast.
7229 * tui/tui-data.c (tui_initialize_static_data): Update.
7230
c2cd8994
TT
72312019-07-17 Tom Tromey <tom@tromey.com>
7232
7233 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
7234 location_matches_p.
7235 * tui/tui-source.c (tui_source_window::location_matches_p): New
7236 method.
7237 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
7238 method.
7239 * tui/tui-data.h (struct tui_source_window_base)
7240 <location_matches_p>: New method.
7241 (struct tui_source_window, struct tui_disasm_window)
7242 <location_matches_p>: Likewise.
7243
4dde7b34
TT
72442019-07-17 Tom Tromey <tom@tromey.com>
7245
7246 * tui/tui-win.c (tui_set_win_height_command): Rename from
7247 tui_set_win_height.
7248 (tui_set_win_height_command): Remove.
7249
b73dd877
TT
72502019-07-17 Tom Tromey <tom@tromey.com>
7251
7252 * tui/tui-source.c (tui_source_window): New constructor. Add
7253 observer.
7254 (~tui_source_window): New destructor.
7255 (tui_source_window::style_changed): New method.
7256 * tui/tui-hooks.c (tui_redisplay_source): Remove.
7257 (tui_attach_detach_observers): Update.
7258 * tui/tui-data.h (struct tui_source_window): Make constructor not
7259 inline. Add destructor.
7260 (struct tui_source_window) <style_changed>: New method.
7261 <m_observable>: New member.
7262
ae2b5380
TT
72632019-07-17 Tom Tromey <tom@tromey.com>
7264
7265 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
7266 * tui/tui-win.c (tui_resize_all): Fix typo.
7267
1ce3e844
TT
72682019-07-17 Tom Tromey <tom@tromey.com>
7269
7270 * tui/tui-wingeneral.h (tui_refresh_all): Update.
7271 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
7272 (tui_refresh_all): Remove "list" parameter. Use foreach.
7273 * tui/tui-win.c (window_name_completer): Use foreach.
7274 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
7275 (update_tab_width): Likewise.
7276 * tui/tui-layout.c (show_layout): Update.
7277 * tui/tui-data.h (class tui_window_iterator): New.
7278 (struct all_tui_windows): New.
7279 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
7280
fe3eaf1c
TT
72812019-07-17 Tom Tromey <tom@tromey.com>
7282
7283 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
7284 parameter. Don't reference globals.
7285 (tui_reg_command): Update.
7286
368c1354
TT
72872019-07-17 Tom Tromey <tom@tromey.com>
7288
7289 * tui/tui-regs.c (tui_show_registers): Simplify.
7290
e80cd204
TT
72912019-07-17 Tom Tromey <tom@tromey.com>
7292
7293 * tui/tui-regs.c (tui_show_registers): Update.
7294 (tui_show_register_group): Add win_info parameter.
7295
aca2dd16
TT
72962019-07-17 Tom Tromey <tom@tromey.com>
7297
7298 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
7299 Rename from tui_display_reg_element_at_line.
7300 (tui_data_window::display_registers_from_line): Update.
7301 * tui/tui-data.h (struct tui_data_window)
7302 <display_reg_element_at_line>: New method.
7303
517e9505
TT
73042019-07-17 Tom Tromey <tom@tromey.com>
7305
7306 * tui/tui-regs.h (tui_display_registers_from)
7307 (tui_display_registers_from_line): Don't declare.
7308 * tui/tui-windata.c (tui_data_window::display_all_data)
7309 (tui_data_window::refresh_all)
7310 (tui_data_window::do_scroll_vertical): Update.
7311 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
7312 from tui_display_registers_from.
7313 (tui_display_reg_element_at_line): Update.
7314 (tui_data_window::display_registers_from_line): Rename from
7315 tui_display_registers_from_line.
7316 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
7317 display_registers_from_line>: New methods.
7318
f76d8b19
TT
73192019-07-17 Tom Tromey <tom@tromey.com>
7320
7321 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
7322 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
7323 from tui_erase_data_content.
7324 (tui_data_window::display_all_data)
7325 (tui_data_window::refresh_all)
7326 (tui_data_window::do_scroll_vertical): Update.
7327 * tui/tui-regs.c (tui_show_registers): Update.
7328 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
7329 New method.
7330
b4094625
TT
73312019-07-17 Tom Tromey <tom@tromey.com>
7332
7333 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
7334 declare.
7335 * tui/tui-windata.c
7336 (tui_data_window::delete_data_content_windows): Rename from
7337 tui_delete_data_content_windows.
7338 (tui_data_window::display_all_data)
7339 (tui_data_window::do_scroll_vertical): Update.
7340 * tui/tui-data.h (struct tui_data_window)
7341 <delete_data_content_windows>: New method.
7342
c223a729
TT
73432019-07-17 Tom Tromey <tom@tromey.com>
7344
7345 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
7346 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
7347
50daf268
TT
73482019-07-17 Tom Tromey <tom@tromey.com>
7349
7350 * tui/tui-windata.h (tui_display_all_data): Don't declare.
7351 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
7352 from tui_display_all_data.
7353 * tui/tui-win.c
7354 (tui_data_window::do_make_visible_with_new_height): Update.
7355 * tui/tui-regs.c (tui_show_registers): Update.
7356 * tui/tui-layout.c (tui_set_layout): Update.
7357 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
7358 method.
7359
df5f8cab
TT
73602019-07-17 Tom Tromey <tom@tromey.com>
7361
7362 * tui/tui-windata.h (tui_display_data_from): Don't declare.
7363 * tui/tui-windata.c (tui_display_data_from): Remove.
7364 (tui_data_window::refresh_all): Update.
7365
80cb6c27
TT
73662019-07-17 Tom Tromey <tom@tromey.com>
7367
7368 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
7369 * tui/tui-windata.c (tui_display_data_from_line): Remove.
7370 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
7371 tui_display_registers_from_line.
7372 * tui/tui-regs.h (tui_display_registers_from_line): Update.
7373 * tui/tui-regs.c (tui_display_registers_from_line): Remove
7374 "force_display" parameter.
7375
baff0c28
TT
73762019-07-17 Tom Tromey <tom@tromey.com>
7377
7378 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
7379 declare.
7380 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
7381 Rename from tui_first_reg_element_no_inline.
7382 (tui_display_reg_element_at_line)
7383 (tui_display_registers_from_line): Update.
7384 * tui/tui-data.h (struct tui_data_window)
7385 <first_reg_element_no_inline>: New method.
7386
3b23c5f2
TT
73872019-07-17 Tom Tromey <tom@tromey.com>
7388
7389 * tui/tui-windata.c (tui_display_data_from)
7390 (tui_data_window::do_scroll_vertical): Update.
7391 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
7392 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
7393 Rename from tui_line_from_reg_element_no.
7394 (tui_display_registers_from_line): Update.
7395 * tui/tui-data.h (struct tui_data_window)
7396 <line_from_reg_element_no>: New method.
7397
0b5ec218
TT
73982019-07-17 Tom Tromey <tom@tromey.com>
7399
7400 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
7401 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
7402 tui_last_regs_line_no.
7403 (tui_display_reg_element_at_line)
7404 (tui_display_registers_from_line): Update.
7405 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
7406 method.
7407
0807ab7b
TT
74082019-07-17 Tom Tromey <tom@tromey.com>
7409
7410 PR tui/24722:
7411 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
7412 (tui_update_breakpoint_info): Add "being_deleted" parameter.
7413 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
7414 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
7415 (tui_update_breakpoint_info): Likewise.
7416 * tui/tui-hooks.c (tui_event_create_breakpoint)
7417 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
7418 Update.
7419
9ad7fdef
TT
74202019-07-17 Tom Tromey <tom@tromey.com>
7421
7422 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
7423
5813316f
TT
74242019-07-17 Tom Tromey <tom@tromey.com>
7425
7426 * tui/tui-winsource.c (tui_update_source_window_as_is)
7427 (tui_update_source_windows_with_addr): Update.
7428 * tui/tui-source.h (tui_set_source_content)
7429 (tui_show_symtab_source): Add "win_info" parameter.
7430 * tui/tui-source.c (tui_set_source_content): Add "win_info"
7431 parameter.
7432 (tui_show_symtab_source): Likewise.
7433
00e264e7
TT
74342019-07-17 Tom Tromey <tom@tromey.com>
7435
7436 * tui/tui-wingeneral.c
7437 (tui_check_and_display_highlight_if_needed): Check can_highlight.
7438
06210ce4
TT
74392019-07-17 Tom Tromey <tom@tromey.com>
7440
7441 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
7442 (struct tui_cmd_window) <can_scroll>: New method.
7443 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
7444 method.
7445
381befee
TT
74462019-07-17 Tom Tromey <tromey@adacore.com>
7447
7448 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
7449 do_field_signed>: Rename. Change type of "value".
7450 * ui-out.c (ui_out::field_signed): Rename from field_int.
7451 Change type of "value".
7452 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
7453 type of "value".
7454 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
7455 do_field_int. Change type of "value".
7456 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
7457 do_field_int. Change type of "value".
7458 * tracepoint.c (trace_status_mi, tfind_1)
7459 (print_one_static_tracepoint_marker): Update.
7460 * thread.c (print_thread_info_1, print_selected_thread_frame):
7461 Update.
7462 * stack.c (print_frame, print_frame_info): Update.
7463 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
7464 Update.
7465 * source.c (print_source_lines_base): Update.
7466 * skip.c (info_skip_command): Update.
7467 * record-btrace.c (btrace_ui_out_decode_error)
7468 (btrace_call_history_src_line): Update.
7469 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
7470 Update.
7471 * progspace.c (print_program_space): Update.
7472 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
7473 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
7474 do_field_int. Change type of "value".
7475 * mi/mi-out.c (mi_ui_out::do_table_begin)
7476 (mi_ui_out::do_table_header): Update.
7477 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
7478 type of "value".
7479 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
7480 (mi_cmd_data_list_changed_registers, output_register)
7481 (mi_cmd_data_read_memory, mi_load_progress)
7482 (mi_cmd_trace_frame_collected): Update.
7483 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
7484 Update.
7485 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
7486 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
7487 (mi_cmd_var_list_children, varobj_update_one): Update.
7488 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
7489 (mi_cmd_stack_list_args, list_arg_or_local): Update.
7490 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
7491 * inferior.c (print_inferior): Update.
7492 * gdb_bfd.c (print_one_bfd): Update.
7493 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
7494 Update.
7495 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
7496 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
7497 do_field_int. Change type of "value".
7498 * cli-out.c (cli_ui_out::do_field_signed): Rename from
7499 do_field_int. Change type of "value".
7500 * breakpoint.c (watchpoint_check, print_breakpoint_location)
7501 (print_one_breakpoint_location, print_it_catch_fork)
7502 (print_one_catch_fork, print_it_catch_vfork)
7503 (print_one_catch_vfork, print_it_catch_solib)
7504 (print_it_catch_exec, print_it_ranged_breakpoint)
7505 (print_mention_watchpoint, print_mention_masked_watchpoint)
7506 (bkpt_print_it, update_static_tracepoint): Update.
7507 * break-catch-throw.c (print_it_exception_catchpoint): Update.
7508 * break-catch-syscall.c (print_it_catch_syscall): Update.
7509 * ada-tasks.c (print_ada_task_info): Update.
7510 * ada-lang.c (print_it_exception, print_mention_exception):
7511 Update.
7512
6b78c3f8
AB
75132019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
7514
7515 PR breakpoints/24541
7516 * gdbarch.c: Regenerate.
7517 * gdbarch.h: Regenerate.
7518 * gdbarch.sh: Adjust return type and parameter types for
7519 'stap_adjust_register'.
7520 (i386_stap_adjust_register): Adjust signature and return new
7521 register name.
7522 * stap-probe.c (stap_parse_register_operand): Adjust use of
7523 'gdbarch_stap_adjust_register'.
7524
d72a9b85
TT
75252019-07-17 Tom Tromey <tromey@adacore.com>
7526
7527 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
7528 declare VEC.
7529 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
7530 std::vector.
7531 (struct s390_process_info): Add initializers.
7532 (s390_add_process): Use new.
7533 (s390_linux_nat_target::low_forget_process): Use delete.
7534 (s390_linux_nat_target::low_new_fork)
7535 (s390_linux_nat_target::stopped_by_watchpoint)
7536 (s390_linux_nat_target::low_prepare_to_resume)
7537 (s390_linux_nat_target::insert_watchpoint)
7538 (s390_linux_nat_target::insert_hw_breakpoint)
7539 (s390_linux_nat_target::remove_watchpoint)
7540 (s390_linux_nat_target::remove_hw_breakpoint): Update.
7541
206e6c58
JB
75422019-07-16 John Baldwin <jhb@FreeBSD.org>
7543
7544 * aarch64-fbsd-nat.c: Include regcache.h.
7545 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
7546 argument.
7547 (aarch64_fbsd_nat_target::fetch_registers)
7548 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
7549 variable.
7550 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
7551
cbde90f2
JB
75522019-07-16 John Baldwin <jhb@FreeBSD.org>
7553
7554 * fbsd-nat.c: Include gdbarch.h.
7555
07128006
TT
75562019-07-15 Tom Tromey <tromey@adacore.com>
7557
7558 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
7559
1f77b012
TT
75602019-07-15 Tom Tromey <tromey@adacore.com>
7561
7562 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
7563 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
7564 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
7565 * cli-out.c (cli_ui_out::do_field_int): New method.
7566 * ui-out.c (ui_out::field_unsigned): New method.
7567 * symfile.c (generic_load): Use field_unsigned.
7568 (print_transfer_performance): Likewise.
7569 * record-btrace.c (ui_out_field_uint): Remove.
7570 (btrace_call_history_insn_range, btrace_call_history): Use
7571 field_unsigned.
7572 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
7573 field_unsigned.
7574 * ui-out.h (class ui_out) <field_unsigned>: New method.
7575 <do_field_unsigned>: Likewise.
7576
33eca680
TT
75772019-07-15 Tom Tromey <tromey@adacore.com>
7578
7579 * mi/mi-main.c (list_available_thread_groups): Use field_string.
7580 * mi/mi-interp.c (mi_memory_changed): Use field_string.
7581 * target.c (flash_erase_command): Use field_string.
7582 * infrun.c (print_signal_received_reason): Use field_string.
7583 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
7584 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
7585 field_string.
7586 * ada-tasks.c (print_ada_task_info): Use field_string.
7587
ca8d69be
TT
75882019-07-15 Tom Tromey <tromey@adacore.com>
7589
7590 * target.c (flash_erase_command): Use field_core_addr.
7591 * symfile.c (generic_load): Use field_core_addr.
7592 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
7593 Use field_core_addr.
7594 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
7595 field_core_addr.
7596
0d4e84ed
AB
75972019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
7598
7599 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
7600 value if its desired type is smaller than a CORE_ADDR and signed.
7601
9a49df9d
AB
76022019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
7603
7604 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
7605 of changes to field names, and use new is_reference field to
7606 decide if a property is a reference or not.
7607 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
7608 field.
7609 (struct dwarf2_property_baton): Update header comment, rename
7610 'referenced_type' to 'property_type' and update comments.
7611 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
7612 default property type, store in property baton, update to take
7613 accound of renamed field.
7614 (read_func_scope): Update call to attr_to_dynamic_prop.
7615 (read_array_type): Likewise.
7616 (dwarf2_per_cu_addr_sized_int_type): New function.
7617 (read_subrange_index_type): Move type finding code to
7618 dwarf2_per_cu_addr_sized_int_type.
7619 (read_subrange_type): Update calls to attr_to_dynamic_prop.
7620 (dwarf2_per_cu_addr_type): New function.
7621 (set_die_type): Update calls to attr_to_dynamic_prop.
7622
b86352cf
AB
76232019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
7624
7625 * dwarf2read.c (read_subrange_index_type): New function.
7626 (read_subrange_type): Move code into new function and call it.
7627 * gdbtypes.c (create_range_type): Add some asserts.
7628
603490bf
AB
76292019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
7630
7631 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
7632 update return statements.
7633 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
7634 declaration, and update comment to match.
7635 * gdbtypes.c (resolve_dynamic_array): Update call to
7636 dwarf2_evaluate_property to match new return type.
7637
592f9d27
AB
76382019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
7639
7640 * valarith.c (value_subscripted_rvalue): Change lowerbound
7641 parameter type from int to LONGEST.
7642 * value.h (value_subscripted_rvalue): Likewise in declaration.
7643
60cfcb20
AB
76442019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
7645
7646 * cli/cli-utils.c (info_print_command_completer): New function.
7647 * cli/cli-utils.h: Add 'completer.h' include, and forward
7648 declaration for 'struct cmd_list_element'.
7649 (info_print_command_completer): Declare.
7650 * stack.c (_initialize_stack): Add completer for 'info locals' and
7651 'info args'.
7652 * symtab.c (_initialize_symtab): Add completer for 'info
7653 variables' and 'info functions'.
7654 * NEWS: Mention completion for additional info commands.
7655
b16507e0
AB
76562019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
7657
7658 * cli/cli-utils.c (extract_info_print_args): Delete.
7659 (extract_arg_maybe_quoted): Delete.
7660 (info_print_options_defs): New variable.
7661 (make_info_print_options_def_group): New function.
7662 (extract_info_print_options): Define new function.
7663 * cli/cli-utils.h (extract_info_print_args): Delete.
7664 (struct info_print_options): New structure.
7665 (extract_info_print_options): Declare new function.
7666 * stack.c (info_locals_command): Update to use new
7667 extract_info_print_options, also add a header comment.
7668 (info_args_command): Likewise.
7669 * symtab.c (info_variables_command): Likewise.
7670 (info_functions_command): Likewise.
7671
021d8588
AB
76722019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
7673
7674 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
7675 to extract string arguments.
7676 * common/common-utils.c (extract_string_maybe_quoted): New function.
7677 * common/common-utils.h (extract_string_maybe_quoted): Declare.
7678
b777eb6d
TT
76792019-07-11 Tom Tromey <tromey@adacore.com>
7680
7681 * main.c (get_init_files): Use GDBINIT, not gdbinit.
7682 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
7683 * top.h (gdbinit): Don't declare.
7684 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
7685 into...
7686 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
7687 * top.c (gdb_init): Don't call init_cli_cmds.
7688 (gdbinit): Remove.
7689 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
7690
72ee03ff
TT
76912019-07-11 Tom Tromey <tromey@adacore.com>
7692
7693 * python/py-inferior.c (add_thread_object): Don't use thread_obj
7694 after it has been moved.
7695
00db9531
SM
76962019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
7697
7698 * valops.c (value_must_coerce_to_target): Change return type to
7699 bool.
7700 * value.h (value_must_coerce_to_target): Likewise.
7701
f2478a7e
SM
77022019-07-10 Simon Marchi <simon.marchi@efficios.com>
7703
7704 * breakpoint.c (is_hardware_watchpoint): Remove
7705 forward-declaration.
7706 (is_masked_watchpoint): Change return type to bool.
7707 (is_tracepoint): Likewise.
7708 (is_breakpoint): Likewise.
7709 (is_hardware_watchpoint): Likewise.
7710 (is_watchpoint): Likewise.
7711 (is_no_memory_software_watchpoint): Likewise.
7712 (is_catchpoint): Likewise.
7713 (breakpoint_1): Make FILTER parameter's return type bool.
7714 is_masked_watchpoint): Change return type to bool.
7715 (save_breakpoints): Make FILTER parameter's return type bool.
7716 * breakpoint.h (is_breakpoint): Change return type to bool.
7717 (is_watchpoint): Likewise.
7718 (is_catchpoint): Likewise.
7719 (is_tracepoint): Likewise.
7720
0d12e84c
TT
77212019-07-10 Tom Tromey <tom@tromey.com>
7722
7723 * defs.h: Don't include gdbarch.h.
7724 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
7725 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
7726 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
7727 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
7728 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
7729 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
7730 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
7731 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
7732 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
7733 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
7734 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
7735 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
7736 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
7737 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
7738 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
7739 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
7740 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
7741 record-btrace.c, record.h, regcache-dump.c, regcache.h,
7742 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
7743 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
7744 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
7745 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
7746 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
7747 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
7748 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
7749 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
7750 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
7751
f06f1252
TT
77522019-07-10 Tom Tromey <tromey@adacore.com>
7753
7754 * ada-lang.h (is_ada_exception_catchpoint): Declare.
7755 * breakpoint.c (init_ada_exception_breakpoint): Register as
7756 bp_catchpoint.
7757 (print_one_breakpoint_location, print_one_breakpoint): Use
7758 is_ada_exception_catchpoint.
7759 * ada-lang.c (class ada_catchpoint_location): Pass
7760 bp_loc_software_breakpoint to bp_location constructor.
7761 (is_ada_exception_catchpoint): New function.
7762
7a5d944b
TT
77632019-07-10 Tom Tromey <tromey@adacore.com>
7764
7765 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
7766 VEC.
7767 (struct arm_exidx_entry): New method operator<.
7768 (struct arm_exidx_data) <section_maps>: Change type.
7769 (arm_exidx_data_free): Remove.
7770 (arm_exidx_data_key): Change type. Move lower.
7771 (arm_exidx_new_objfile): Update.
7772 (arm_compare_exidx_entries): Remove.
7773 (arm_find_exidx_entry, _initialize_arm_tdep)
7774
48c66e1d
TT
77752019-07-10 Tom Tromey <tromey@adacore.com>
7776
7777 * solib-spu.c (ocl_program_data_key): Change type.
7778 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
7779 Update.
7780
a269fbf1
TT
77812019-07-10 Tom Tromey <tromey@adacore.com>
7782
7783 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
7784 (struct solib_aix_inferior_data) <library_list>: Change type.
7785 (solib_aix_inferior_data_handle): Change type.
7786 (get_solib_aix_inferior_data): Update.
7787 (solib_aix_free_library_list): Remove.
7788 (library_list_start_library): Update.
7789 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
7790 return type.
7791 (solib_aix_get_library_list)
7792 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
7793 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
7794
c294730c
TT
77952019-07-10 Tom Tromey <tromey@adacore.com>
7796
7797 * solib-dsbt.c (struct dsbt_info): Add initializers.
7798 (solib_dsbt_pspace_data): Change type.
7799 (dsbt_pspace_data_cleanup): Remove.
7800 (get_dsbt_info, _initialize_dsbt_solib): Update.
7801
9d52077d
TT
78022019-07-10 Tom Tromey <tromey@adacore.com>
7803
7804 * spu-tdep.c (spu_overlay_data): Change type.
7805 (spu_get_overlay_table, spu_overlay_new_objfile)
7806 (_initialize_spu_tdep): Update.
7807
22a20dca
TT
78082019-07-10 Tom Tromey <tromey@adacore.com>
7809
7810 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
7811 destructor.
7812 (dbx_objfile_data_key): Change type and declare later.
7813 (DBX_SYMFILE_INFO): Rewrite.
7814 * dbxread.c (dbx_objfile_data_key): Change type.
7815 (dbx_symfile_init): Update.
7816 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
7817 (coffstab_build_psymtabs, elfstab_build_psymtabs)
7818 (stabsect_build_psymtabs, _initialize_dbxread): Update.
7819
cb60f420
TT
78202019-07-10 Tom Tromey <tromey@adacore.com>
7821
7822 * jit.c (jit_program_space_key): Change type. Move lower.
7823 (get_jit_program_space_data): Update.
7824 (jit_program_space_data_cleanup): Remove.
7825 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
7826 Update.
7827 (struct jit_program_space_data): Add initializers.
7828
51df2ae3
TT
78292019-07-10 Tom Tromey <tromey@adacore.com>
7830
7831 * solib-darwin.c (struct darwin_info): Add initializers.
7832 (solib_darwin_pspace_data): Change type.
7833 (darwin_pspace_data_cleanup): Remove.
7834 (get_darwin_info, _initialize_darwin_solib): Update.
7835
18101a35
TT
78362019-07-10 Tom Tromey <tromey@adacore.com>
7837
7838 * remote-sim.c (struct sim_inferior_data): Add initializers,
7839 constructor, and destructor.
7840 (sim_inferior_data_key): Change type. Move lower.
7841 (check_for_duplicate_sim_descriptor): Update.
7842 (get_sim_inferior_data): Use new. Update.
7843 (~sim_inferior_data_cleanup): Rename from
7844 sim_inferior_data_cleanup. Simplify.
7845 (gdbsim_close_inferior, simulator_command)
7846 (sim_command_completer, _initialize_remote_sim): Update.
7847 (next_pid, INITIAL_PID): Move earlier.
7848
05b08ac1
TT
78492019-07-10 Tom Tromey <tromey@adacore.com>
7850
7851 * python/python-internal.h (create_thread_object): Return
7852 gdbpy_ref.
7853 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
7854 * python/py-inferior.c (struct threadlist_entry): Add
7855 constructor.
7856 <thread_obj>: Now a gdbpy_ref.
7857 (thread_to_thread_object): Update.
7858 (add_thread_object): Use new.
7859 (delete_thread_object): Use delete.
7860 (infpy_threads): Update.
7861 (py_free_inferior): Update. Construct "inf_obj" after acquiring
7862 GIL.
7863
32372d80
TT
78642019-07-10 Tom Tromey <tromey@adacore.com>
7865
7866 * valops.c (value_cast): Specialize error message for Ada.
7867
5c458ae8
SM
78682019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
7869
7870 * breakpoint.c (breakpoint_1): Update doc and parameter names.
7871
4c462cb0
SM
78722019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
7873
7874 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
7875 bpstat_should_step): Return bool, adjust comments.
7876 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
7877 bpstat_should_step): Likewise.
7878
89abbcc2
AH
78792019-07-10 Alan Hayward <alan.hayward@arm.com>
7880
7881 * features/Makefile: Use feature target descriptions for Arm.
7882 * features/arm/arm-core.c: Generate new file.
7883 * features/arm/arm-fpa.c: Likewise.
7884 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
7885 * features/arm/arm-m-profile.c: Likewise.
7886 * features/arm/arm-vfpv2.c: Likewise.
7887 * features/arm/arm-vfpv3.c: Likewise.
7888 * features/arm/xscale-iwmmxt.c: Likewise.
7889 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
7890
166a82be
AH
78912019-07-10 Alan Hayward <alan.hayward@arm.com>
7892
7893 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
7894 ptrace earlier.
7895
9fb4c7e9
AH
78962019-07-10 Alan Hayward <alan.hayward@arm.com>
7897
7898 * features/aarch64-pauth.c: Regenerate.
7899
e2d0f980
SM
79002019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
7901
7902 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
7903 bool.
7904 (bpstat_what): Use false instead of 0.
7905
a38118e5
PA
79062019-07-09 Pedro Alves <palves@redhat.com>
7907
7908 * break-catch-throw.c (is_exception_catchpoint): New.
7909 * breakpoint.c (print_one_breakpoint_location): New parameter
7910 'raw_loc'. Handle it. Use
7911 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
7912 looking at the breakpoint's type.
7913 (print_one_breakpoint): If handling "maint info breakpoints", also
7914 print locations of exception catchpoints.
7915 * breakpoint.h (is_exception_catchpoint): Declare.
7916
cb1e4e32
PA
79172019-07-09 Pedro Alves <palves@redhat.com>
7918
7919 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
7920 "addr" field.
7921 (allocate_location_exception_catchpoint): New.
7922 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
7923 (initialize_throw_catchpoint_ops): Install
7924 allocate_location_exception_catchpoint as allocate_location
7925 method.
7926 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
7927 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
7928 bp_loc_other.
7929 (breakpoint_address_is_meaningful): Delete.
7930 (bl_address_is_meaningful): New.
7931 (breakpoint_locations_match): Adjust comment.
7932 (bp_location_from_bp_type): New, factored out of...
7933 (bp_location::bp_location(breakpoint *)): ... this.
7934 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
7935 factored out of...
7936 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
7937 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
7938 breakpoint_address_is_meaningful.
7939 (bp_locations_compare): Adjust comment.
7940 (update_global_location_list): Use bl_address_is_meaningful
7941 instead of breakpoint_address_is_meaningful.
7942 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
7943 explicit.
7944 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
7945 * python/py-breakpoint.c (bppy_get_location): No longer check
7946 whether location is null.
7947
b58a68fe
PA
79482019-07-09 Pedro Alves <palves@redhat.com>
7949
7950 PR c++/15468
7951 * breakpoint.c (print_one_breakpoint_location): Remove
7952 single-location assert.
7953
268a13a5
TT
79542019-07-09 Tom Tromey <tom@tromey.com>
7955
7956 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
7957 * configure: Rebuild.
7958 * configure.ac: Change common to gdbsupport.
7959 * gdbsupport: Rename from common.
7960 * acinclude.m4: Change common to gdbsupport.
7961 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
7962 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
7963 gdbsupport.
7964 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
7965 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
7966 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
7967 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
7968 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
7969 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
7970 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
7971 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
7972 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
7973 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
7974 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
7975 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
7976 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
7977 coff-pe-read.c, command.h, compile/compile-c-support.c,
7978 compile/compile-c.h, compile/compile-cplus-symbols.c,
7979 compile/compile-cplus-types.c, compile/compile-cplus.h,
7980 compile/compile-loc2c.c, compile/compile.c, completer.c,
7981 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
7982 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
7983 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
7984 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
7985 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
7986 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
7987 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
7988 features/aarch64-core.c, features/aarch64-fpu.c,
7989 features/aarch64-pauth.c, features/aarch64-sve.c,
7990 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
7991 features/i386/32bit-core.c, features/i386/32bit-linux.c,
7992 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
7993 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
7994 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
7995 features/i386/64bit-core.c, features/i386/64bit-linux.c,
7996 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
7997 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
7998 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
7999 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
8000 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
8001 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
8002 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
8003 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
8004 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
8005 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
8006 go32-nat.c, guile/guile.c, guile/scm-ports.c,
8007 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
8008 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
8009 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
8010 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
8011 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
8012 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
8013 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
8014 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
8015 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
8016 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
8017 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
8018 minsyms.c, mips-linux-tdep.c, namespace.h,
8019 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
8020 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
8021 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
8022 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
8023 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
8024 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
8025 nat/linux-waitpid.c, nat/mips-linux-watch.c,
8026 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
8027 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
8028 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
8029 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
8030 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
8031 procfs.c, producer.c, progspace.h, psymtab.h,
8032 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
8033 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
8034 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
8035 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
8036 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
8037 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
8038 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
8039 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
8040 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
8041 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
8042 target-memory.c, target.c, target.h, target/waitstatus.c,
8043 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
8044 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
8045 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
8046 unittests/array-view-selftests.c,
8047 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
8048 unittests/common-utils-selftests.c,
8049 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
8050 unittests/format_pieces-selftests.c,
8051 unittests/function-view-selftests.c,
8052 unittests/lookup_name_info-selftests.c,
8053 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
8054 unittests/mkdir-recursive-selftests.c,
8055 unittests/observable-selftests.c,
8056 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
8057 unittests/parse-connection-spec-selftests.c,
8058 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
8059 unittests/scoped_fd-selftests.c,
8060 unittests/scoped_mmap-selftests.c,
8061 unittests/scoped_restore-selftests.c,
8062 unittests/string_view-selftests.c, unittests/style-selftests.c,
8063 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
8064 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
8065 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
8066 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
8067 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
8068 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
8069
5b0e2db4
AB
80702019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
8071
8072 * linespec.c (decode_digits_list_mode): Set explicit_line to a
8073 bool value.
8074 (decode_digits_ordinary): Set explicit_line field in sal.
8075 * symtab.c (skip_prologue_sal): Don't skip prologue for a
8076 symtab_and_line that was set on an explicit line number in
8077 assembler code. Do always update the recorded symtab and line if
8078 we do skip the prologue.
8079
0ba852ab
AB
80802019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
8081
8082 * breakpoint.c (set_breakpoint_location_function): Remove
8083 explicit_loc parameter.
8084 (momentary_breakpoint_from_master): Update call to
8085 set_breakpoint_location_function.
8086 (add_location_to_breakpoint): Likewise.
8087
b3a7d171
AB
80882019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
8089
8090 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
8091 required features based on default bfd type when no specific bfd
8092 is present.
8093
1f6f6e21
PW
80942019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8095
8096 * NEWS: Mention that GDB printf and eval commands can now print
8097 C-style and Ada-style convenience var strings without
8098 calling the inferior.
8099 * printcmd.c (printf_c_string): Locally print GDB internal var
8100 instead of transiting via the inferior.
8101 (printf_wide_c_string): Likewise.
8102
81032019-07-04 Alan Hayward <alan.hayward@arm.com>
ea142fbf 8104
5862c886 8105 PR breakpoints/25011
ea142fbf
AH
8106 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
8107
0598af48
TT
81082019-07-04 Tom Tromey <tom@tromey.com>
8109
8110 PR tui/24724:
8111 * tui/tui-winsource.c (tui_clear_source_content): Update.
8112 (tui_source_window_base::set_is_exec_point_at): Fix comment.
8113 (tui_update_breakpoint_info): Update.
8114 (tui_set_exec_info_content): Update.
8115 * tui/tui-source.c (tui_set_source_content_nil): Update.
8116 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
8117 has_break.
8118 * tui/tui-data.h (enum tui_bp_flag): New.
8119 (tui_bp_flags): New enum flags type.
8120 (struct tui_source_element) <break_mode>: Change type. Rename
8121 from has_break.
8122 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
8123 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
8124 constants.
8125 * tui/tui-winsource.h: Fix comment.
8126
350fab54
AH
81272019-07-04 Alan Hayward <alan.hayward@arm.com>
8128
8129 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
8130 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
8131 (store_fpregs_to_thread)
8132 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
8133 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
8134 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
8135 (IWMMXT_REGS_SIZE): Add define.
8136 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
8137 (fetch_vfp_regs, store_vfp_regs)
8138 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
8139 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
8140
f0452268
AH
81412019-07-04 Alan Hayward <alan.hayward@arm.com>
8142
8143 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
8144 defines.
8145 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
8146 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
8147 (ARM_INT_REGISTER_SIZE): ...to this.
8148 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
8149 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
8150 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
8151 (arm_linux_collect_gregset, supply_nwfpe_register)
8152 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
8153 defines.
8154 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
8155 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
8156 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
8157 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
8158 (arm_return_in_memory, arm_store_return_value)
8159 (arm_get_longjmp_target, arm_register_g_packet_guesses)
8160 (arm_record_ld_st_multiple): Likewise.
8161 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
8162 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
8163
e935475c
AH
81642019-07-04 Alan Hayward <alan.hayward@arm.com>
8165
8166 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
8167 AARCH64_DISPLACED_MODIFIED_INSNS.
8168 * aarch64-tdep.c (struct aarch64_displaced_step_data)
8169 (aarch64_displaced_step_copy_insn): Likewise.
8170 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
8171 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
8172 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
8173 ARM_DISPLACED_MODIFIED_INSNS.
8174 * arm-tdep.c (arm_gdbarch_init): Likewise.
8175 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
8176 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
8177 (struct arm_displaced_step_closure): Use
8178 ARM_DISPLACED_MODIFIED_INSNS.
8179
df0bb381
AH
81802019-07-04 Alan Hayward <alan.hayward@arm.com>
8181
8182 * features/Makefile: Remove unused xml files.
8183 * features/aarch64.xml: Remove.
8184 * features/i386/amd64-avx-avx512-linux.xml: Remove.
8185 * features/i386/amd64-avx-avx512.xml: Remove.
8186 * features/i386/amd64-avx-linux.xml: Remove.
8187 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
8188 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
8189 * features/i386/amd64-avx-mpx-linux.xml: Remove.
8190 * features/i386/amd64-avx-mpx.xml: Remove.
8191 * features/i386/amd64-avx.xml: Remove.
8192 * features/i386/amd64-linux.xml: Remove.
8193 * features/i386/amd64-mpx-linux.xml: Remove.
8194 * features/i386/amd64-mpx.xml: Remove.
8195 * features/i386/amd64.xml: Remove.
8196 * features/i386/i386-avx-avx512-linux.xml: Remove.
8197 * features/i386/i386-avx-avx512.xml: Remove.
8198 * features/i386/i386-avx-linux.xml: Remove.
8199 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
8200 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
8201 * features/i386/i386-avx-mpx-linux.xml: Remove.
8202 * features/i386/i386-avx-mpx.xml: Remove.
8203 * features/i386/i386-avx.xml: Remove.
8204 * features/i386/i386-linux.xml: Remove.
8205 * features/i386/i386-mmx-linux.xml: Remove.
8206 * features/i386/i386-mmx.xml: Remove.
8207 * features/i386/i386-mpx-linux.xml: Remove.
8208 * features/i386/i386-mpx.xml: Remove.
8209 * features/i386/i386.xml: Remove.
8210 * features/i386/x32-avx-avx512-linux.xml: Remove.
8211 * features/i386/x32-avx-linux.xml: Remove.
8212 * features/i386/x32-linux.xml: Remove.
8213
edd6266a
AH
82142019-07-04 Alan Hayward <alan.hayward@arm.com>
8215
8216 * regformats/aarch64.dat: Remove.
8217 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
8218 * regformats/i386/amd64-avx-linux.dat: Remove.
8219 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
8220 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
8221 * regformats/i386/amd64-linux.dat: Remove.
8222 * regformats/i386/amd64-mpx-linux.dat: Remove.
8223 * regformats/i386/amd64.dat: Remove.
8224 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
8225 * regformats/i386/i386-avx-linux.dat: Remove.
8226 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
8227 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
8228 * regformats/i386/i386-linux.dat: Remove.
8229 * regformats/i386/i386-mmx-linux.dat: Remove.
8230 * regformats/i386/i386-mpx-linux.dat: Remove.
8231 * regformats/i386/i386.dat: Remove.
8232 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
8233 * regformats/i386/x32-avx-linux.dat: Remove.
8234 * regformats/i386/x32-linux.dat: Remove.
8235
2b40fda7
AH
82362019-07-04 Alan Hayward <alan.hayward@arm.com>
8237
8238 * aarch64-tdep.c: Remove xml self tests.
8239 * amd64-linux-tdep.c: Likewise.
8240 * amd64-tdep.c: Likewise.
8241 * i386-linux-tdep.c: Likewise.
8242 * i386-tdep.c: Likewise.
8243
5f4ba3e7
PA
82442019-07-03 Pedro Alves <palves@redhat.com>
8245
8246 PR cli/24732
8247 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
8248 (pipe_cmd_option_defs): New.
8249 (make_pipe_cmd_options_def_group): New.
8250 (pipe_command): Use gdb::option::process_options.
8251 (pipe_command_completer): New function.
8252 (_initialize_cli_cmds): Install completer for "pipe" command.
8253
3d9be6f5
PA
82542019-07-03 Pedro Alves <palves@redhat.com>
8255
8256 * cli/cli-option.c (union option_value) <string>: New field.
8257 (struct option_def_and_value): Add ctor, move ctor, dtor and
8258 use DISABLE_COPY_AND_ASSIGN.
8259 (option_def_and_value::clear_value): New.
8260 (parse_option, save_option_value_in_ctx, get_val_type_str)
8261 (add_setshow_cmds_for_options): Handle var_string.
8262 * cli-option.h (union option_def::var_address) <string>: New
8263 field.
8264 (struct string_option_def): New.
8265 * maint-test-options.c (struct test_options_opts): Add default
8266 ctor and use DISABLE_COPY_AND_ASSIGN.
8267 <string_opt>: New field.
8268 (test_options_opts::~test_options_opts): New.
8269 (test_options_opts::dump): Also dump "-string".
8270 (test_options_option_defs): Install "string.
8271
41fc454c
PA
82722019-07-03 Pedro Alves <palves@redhat.com>
8273
8274 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
8275 option_value with a null enumeration.
8276 (complete_options): Save the option values in the context.
8277 (save_option_value_in_ctx): New, factored out from ...
8278 (process_options): ... here.
8279 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
8280 of the function.
8281 * maint-test-options.c (test_options_opts::dump): New, factored
8282 out from ...
8283 (maintenance_test_options_command_mode): ... here.
8284 (maintenance_test_options_command_completion_result): Delete.
8285 (maintenance_test_options_command_completion_text): Update
8286 comment.
8287 (maintenance_show_test_options_completion_result): Change
8288 prototype. Just print
8289 maintenance_test_options_command_completion_text.
8290 (save_completion_result): New.
8291 (maintenance_test_options_completer_mode): Pass options context to
8292 complete_options, and then save a dump.
8293 (_initialize_maint_test_options): Use add_cmd to install "maint
8294 show test-options-completion-result".
8295
fdbc9870
PA
82962019-07-03 Pedro Alves <palves@redhat.com>
8297
8298 * NEWS (New commands): Mention "with" and "maint with".
8299 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
8300 (with_command, with_command_completer): New.
8301 (pipe_command): Adjust to new repeat_previous
8302 interface.
8303 (_initialize_cli_cmds): Install the "with" command and its "w"
8304 alias.
8305 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
8306 declarations.
8307 * cli/cli-setshow.c (parse_cli_var_uinteger)
8308 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
8309 argument strings for all var_types.
8310 (get_setshow_command_value_string): New, factored out from ...
8311 (do_show_command): ... this.
8312 * cli/cli-setshow.h: Include <string>.
8313 (get_setshow_command_value_string): Declare.
8314 * command.h (repeat_previous): Now returns const char *. Adjust
8315 comment.
8316 * maint.c: Include "cli/cli-cmds.h".
8317 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
8318 (_initialize_maint_cmds): Register the "maintenance with" command.
8319 * top.c (repeat_previous): Move bits from pipe_command here:
8320 Return the saved command line, if any; error out if there's no
8321 command to relaunch.
8322
c6ac8931
PA
83232019-07-03 Pedro Alves <palves@redhat.com>
8324
8325 * NEWS (New commands): Mention "maint set/show test-settings"
8326 instead of "maint test-settings".
8327 * maint-test-settings.c (maintenance_test_settings_list): Delete.
8328 (maintenance_test_settings_set_list): Rename to ...
8329 (maintenance_set_test_settings_list): ... this.
8330 (maintenance_test_settings_show_list): Rename to ...
8331 (maintenance_show_test_settings_list): ... this.
8332 (maintenance_test_settings_cmd): Delete.
8333 (maintenance_test_settings_set_cmd): ...
8334 (maintenance_set_test_settings_cmd): ... this.
8335 (maintenance_test_settings_show_cmd): ...
8336 (maintenance_show_test_settings_cmd): ... this.
8337 (maintenance_test_settings_show_value_cmd):
8338 (maintenance_show_test_settings_value_cmd): ... this.
8339 (_initialize_maint_test_settings): No longer install the "maint
8340 test-settings" prefix command. Rename "maint test-settings set"
8341 to "maint set test-settings", and "maint test-settings show" to
8342 "maint show test-settings". Adjust all subcommands.
8343
d1fcf2fd
PA
83442019-07-03 Pedro Alves <palves@redhat.com>
8345
8346 * maint-test-settings.c: Fix file's intro comment. Replace all
8347 references to "test-options" with references to "test-settings",
8348 in comments.
8349
970f9d09
PA
83502019-07-03 Pedro Alves <palves@redhat.com>
8351
8352 * maint-test-settings.c (maintenance_test_settings_xxx)
8353 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
8354 New.
8355 (maintenance_test_settings_enums): Use them.
8356 (maintenance_test_settings_enum): Default to
8357 maintenance_test_settings_xxx.
8358 (_initialize_maint_test_settings): Initialize
8359 MAINTENANCE_TEST_SETTINGS_FILENAME.
8360
f3869b1a
SM
83612019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
8362
8363 * breakpoint.h (remove_breakpoints_inf): Change return type to
8364 void, move function documentation here.
8365 * breakpoint.c (remove_breakpoints_inf): Change return type to
8366 void, move function documentation to header.
8367
54d66006
PA
83682019-07-02 Pedro Alves <palves@redhat.com>
8369
8370 * NEWS (Completion improvements): Mention "info threads".
8371 * thread.c (struct info_threads_opts, info_threads_option_defs)
8372 (make_info_threads_options_def_group): New.
8373 (info_threads_command): Use gdb::option::process_options.
8374 (info_threads_command_completer): New.
8375 (_initialize_thread): Use gdb::option::build_help to build the
8376 help text for "info threads".
8377
854f6088
SM
83782019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
8379
8380 * defs.h (generic_load): Move from here...
8381 * symfile.h (generic_load): ... to here. Rename name parameter
8382 to args.
8383 * symfile.c (generic_load): Add comment.
8384
54ee4252
TT
83852019-07-01 Tom Tromey <tromey@adacore.com>
8386
8387 * dwarf2read.c
8388 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
8389 declaration of without_params. Fix formatting.
8390
65392b3e
TT
83912019-07-01 Tom Tromey <tromey@adacore.com>
8392
8393 * ada-exp.y (find_primitive_type): Update.
8394 * ada-lang.h (ada_lookup_symbol): Update.
8395 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
8396 parameter.
8397 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
8398
7d7571f0
SDJ
83992019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
8400
8401 PR breakpoints/24541
8402 * gdbarch.c: Regenerate.
8403 * gdbarch.h: Regenerate.
8404 * gdbarch.sh: Add 'stap_adjust_register'.
8405 * i386-tdep.c: Include '<unordered_set>'.
8406 (i386_stap_adjust_register): New function.
8407 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
8408 * stap-probe.c (stap_parse_register_operand): Call
8409 'gdbarch_stap_adjust_register'.
8410
5af5392a
SDJ
84112019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
8412
8413 PR python/24742
8414 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
8415 * python/python.c (do_start_initialization): Use 'xmalloc'
8416 instead of 'PyMem_Malloc'.
8417
10d06d82
TT
84182019-06-28 Tom Tromey <tromey@adacore.com>
8419
8420 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
8421 for Ada.
8422
1b7f24cd
TT
84232019-06-27 Tom Tromey <tromey@adacore.com>
8424
8425 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
8426 objfile_key.
8427 (arm_find_mapping_symbol, arm_record_special_symbol)
8428 (_initialize_arm_tdep): Update.
8429 (arm_objfile_data_free): Remove.
8430
3d507ff2
TT
84312019-06-27 Tom Tromey <tromey@adacore.com>
8432
8433 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
8434 to cp_print_static_field.
8435
762c164d
TT
84362019-06-26 Tom Tromey <tromey@adacore.com>
8437
8438 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
8439 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
8440 declare.
8441
aa2f9bcf
AH
84422019-06-26 Alan Hayward <alan.hayward@arm.com>
8443
8444 * features/aarch64-core.c (create_feature_aarch64_core):
8445 Regenerate.
8446 * features/aarch64-core.xml: Add cpsr flags.
8447
3426ae57
AH
84482019-06-26 Alan Hayward <alan.hayward@arm.com>
8449
8450 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
8451 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
8452
4838e44c
SM
84532019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
8454
8455 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
8456 field.
8457 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
8458 use.
8459 (arm_record_special_symbol): Don't insert new symbol in sorted
8460 position, push it at the end.
8461
54cc7474
SM
84622019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
8463
8464 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
8465 (arm_mapping_symbol_s): Remove.
8466 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
8467 (arm_mapping_symbol_vec): New typedef.
8468 (struct arm_per_objfile): Add constructor.
8469 <section_maps>: Change type to
8470 std::unique_ptr<arm_mapping_symbol_vec[]>.
8471 (arm_compare_mapping_symbols): Remove.
8472 (arm_find_mapping_symbol): Adjust to section_maps type change.
8473 (arm_objfile_data_free): Call delete on arm_per_objfile.
8474 (arm_record_special_symbol): Adjust to section_maps type change.
8475 Allocate arm_per_objfile with new.
8476
b65b566c
PW
84772019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8478
8479 * cli/cli-cmds.c (alias_command): Compare the alias prefix
8480 with the command prefix.
8481
c2fc64f5
TT
84822019-06-25 Tom Tromey <tom@tromey.com>
8483
8484 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
8485 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
8486
fb54fa76
TT
84872019-06-25 Tom Tromey <tom@tromey.com>
8488
8489 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
8490 type.
8491 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
8492 protected.
8493
f7952c57
TT
84942019-06-25 Tom Tromey <tom@tromey.com>
8495
8496 * tui/tui-winsource.c
8497 (tui_source_window_base::set_is_exec_point_at): Add check against
8498 LOA_ADDRESS.
8499
17568d78
TT
85002019-06-25 Tom Tromey <tom@tromey.com>
8501
8502 * tui/tui-source.c (tui_set_source_content): Don't check before
8503 xfree.
8504 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
8505
53e7cdba
TT
85062019-06-25 Tom Tromey <tom@tromey.com>
8507
8508 * tui/tui-winsource.h (tui_update_source_window_as_is)
8509 (tui_alloc_source_buffer, tui_line_is_displayed)
8510 (tui_addr_is_displayed): Change type of win_info.
8511 * tui/tui-winsource.c (tui_update_source_window_as_is)
8512 (tui_clear_source_content, tui_show_source_line)
8513 (tui_show_source_content, tui_source_window_base::refill)
8514 (tui_source_window_base::set_is_exec_point_at)
8515 (tui_source_window_base::set_is_exec_point_at)
8516 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
8517 (tui_alloc_source_buffer, tui_line_is_displayed)
8518 (tui_addr_is_displayed): Change type of win_info. Update.
8519 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
8520 (tui_source_window_base::do_make_visible_with_new_height):
8521 Update.
8522 * tui/tui-source.c (tui_set_source_content)
8523 (tui_set_source_content_nil)
8524 (tui_source_window::do_scroll_vertical): Update.
8525 * tui/tui-layout.c (show_layout): Update.
8526 * tui/tui-disasm.c (tui_set_disassem_content)
8527 (tui_disasm_window::do_scroll_vertical): Update.
8528 * tui/tui-data.h (tui_win_content): Remove.
8529 (struct tui_gen_win_info) <content, content_size>: Remove.
8530 (struct tui_source_element): Add initializers and destructor.
8531 (union tui_which_element, struct tui_win_element): Remove.
8532 (struct tui_source_window_base) <content>: New field.
8533 (struct tui_data_window): Remove destructor.
8534 (tui_alloc_content, tui_free_win_content)
8535 (tui_free_all_source_wins_content): Don't declare.
8536 * tui/tui-data.c (tui_initialize_static_data): Update.
8537 (init_content_element, tui_alloc_content): Remove.
8538 (~tui_gen_win_info): Update.
8539 (~tui_data_window, tui_free_all_source_wins_content)
8540 (tui_free_win_content, free_content, free_content_elements):
8541 Remove.
8542
7908abbf
TT
85432019-06-25 Tom Tromey <tom@tromey.com>
8544
8545 * tui/tui-winsource.h (tui_clear_source_content)
8546 (tui_erase_source_content, tui_show_source_content): Change type
8547 of win_info.
8548 * tui/tui-winsource.c (tui_clear_source_content)
8549 (tui_erase_source_content, tui_show_source_content): Change type
8550 of win_info.
8551 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
8552 * tui/tui-source.h (tui_set_source_content_nil): Change type of
8553 win_info.
8554 * tui/tui-source.c (tui_set_source_content_nil): Change type of
8555 win_info.
8556 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
8557
02c28df0
TT
85582019-06-25 Tom Tromey <tom@tromey.com>
8559
8560 * tui/tui-winsource.c (tui_clear_source_content)
8561 (tui_source_window_base::set_is_exec_point_at): Update.
8562 * tui/tui-source.c (tui_set_source_content_nil): Update.
8563 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
8564 a bool.
8565 * tui/tui-data.c (init_content_element): Update.
8566
6658b1bf
TT
85672019-06-25 Tom Tromey <tom@tromey.com>
8568
8569 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
8570 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
8571 * tui/tui-layout.c (init_and_make_win): Update.
8572 * tui/tui.h (enum tui_win_type): Update.
8573 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
8574 tui_win_is_auxillary.
8575 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
8576 tui_win_is_auxillary.
8577
21e1c91e
TT
85782019-06-25 Tom Tromey <tom@tromey.com>
8579
8580 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
8581 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
8582 (tui_delete_data_content_windows, tui_display_all_data)
8583 (tui_data_window::do_scroll_vertical, tui_display_data_from):
8584 Update.
8585 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
8586 * tui/tui-regs.c (tui_last_regs_line_no)
8587 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
8588 (tui_show_registers): Update.
8589 (tui_show_register_group): Return void. Update.
8590 (tui_display_registers_from, tui_display_reg_element_at_line)
8591 (tui_display_registers_from_line, tui_check_register_values):
8592 Update.
8593 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
8594 member.
8595 (struct tui_data_window) <regs_content>: Now a std::vector.
8596 <regs_content_count>: Remove.
8597 (tui_add_content_elements, tui_free_data_content): Don't declare.
8598 * tui/tui-data.c (tui_data_window::clear_detail): Update.
8599 (init_content_element): Remove DATA_WIN case. Add assert.
8600 (tui_add_content_elements): Remove.
8601 (tui_data_window): Update.
8602 (tui_free_data_content): Remove.
8603 (free_content_elements): Remove DATA_WIN case.
8604
115ac53b
TT
86052019-06-25 Tom Tromey <tom@tromey.com>
8606
8607 * tui/tui-data.c (tui_data_item_window): Update.
8608 * tui/tui-windata.h (tui_check_data_values): Don't declare.
8609 * tui/tui-windata.c (tui_display_all_data)
8610 (tui_display_data_from_line): Update.
8611 (tui_check_data_values): Remove.
8612 * tui/tui-regs.c (tui_show_register_group)
8613 (tui_display_reg_element_at_line): Update.
8614 * tui/tui-hooks.c (tui_register_changed)
8615 (tui_refresh_frame_and_register_information): Call
8616 tui_check_register_values.
8617 * tui/tui-data.h (struct tui_data_window) <data_content,
8618 data_content_count, data_type>: Remove.
8619 (enum tui_data_type): Remove.
8620
8621 * tui/tui-data.c (tui_data_window::clear_detail)
8622 (~tui_data_window): Update.
8623
eaf9738b
TT
86242019-06-25 Tom Tromey <tom@tromey.com>
8625
8626 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
8627 declare.
8628 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
8629 Rename from tui_first_data_item_displayed. Update.
8630 (tui_data_window::refresh_all)
8631 (tui_data_window::do_scroll_vertical): Update.
8632 * tui/tui-data.h (struct tui_data_window)
8633 <first_data_item_displayed>: Declare new method.
8634
31ca4723
TT
86352019-06-25 Tom Tromey <tom@tromey.com>
8636
8637 * tui/tui-data.h (tui_init_generic_part): Don't declare.
8638 * tui/tui-data.c (tui_init_generic_part): Remove, moving
8639 contents...
8640 (tui_initialize_static_data): ...here.
8641
41bcff7f
TT
86422019-06-25 Tom Tromey <tom@tromey.com>
8643
8644 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
8645 (tui_display_registers_from, tui_check_register_values): Update.
8646 (tui_display_register): Remove win_info parameter; update.
8647 (tui_get_register): Change type of parameters.
8648 * tui/tui-data.h (struct tui_data_element): Remove.
8649 (union tui_which_element) <data>: Remove.
8650 <data_window>: Change type.
8651 (struct tui_data_item_window): New.
8652 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
8653 case. Add assert.
8654 (~tui_data_item_window): New destructor.
8655 (free_content_elements): Remove DATA_ITEM_WIN case.
8656
d2802c33
TT
86572019-06-25 Tom Tromey <tom@tromey.com>
8658
8659 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
8660 Remove.
8661
dd835f8b
TT
86622019-06-25 Tom Tromey <tom@tromey.com>
8663
8664 * tui/tui-data.h (struct tui_command_element): Remove.
8665 (union tui_which_element) <command>: Remove.
8666 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
8667 assert.
8668 (free_content_elements): Remove CMD_WIN case.
8669
bd7db367
TT
86702019-06-25 Tom Tromey <tom@tromey.com>
8671
8672 * tui/tui-layout.c (tui_set_layout): Update.
8673 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
8674 * tui/tui-data.c (layout_def): Update.
8675
3add462f
TT
86762019-06-25 Tom Tromey <tom@tromey.com>
8677
8678 * tui/tui-wingeneral.c (tui_refresh_all): Update.
8679 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
8680 (tui_source_window_base::set_new_height): Update.
8681 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
8682 Update.
8683 (tui_set_locator_fullname, tui_set_locator_info)
8684 (tui_show_frame_info): Update.
8685 * tui/tui-source.c (tui_set_source_content)
8686 (tui_source_is_displayed): Update.
8687 * tui/tui-layout.c (show_source_disasm_command, show_data)
8688 (show_source_or_disasm_and_command): Update.
8689 * tui/tui-disasm.c (tui_set_disassem_content)
8690 (tui_get_begin_asm_address): Update.
8691 * tui/tui-data.h (struct tui_locator_element): Remove.
8692 (union tui_which_element) <locator>: Remove.
8693 (struct tui_locator_window): New.
8694 (tui_locator_win_info_ptr): Change return type.
8695 * tui/tui-data.c (_locator): Change type.
8696 (tui_locator_win_info_ptr): Change return type.
8697 (init_content_element): Remove LOCATOR_WIN case. Add assert.
8698 (tui_alloc_content): Add assert.
8699
489e9d8b
TT
87002019-06-25 Tom Tromey <tom@tromey.com>
8701
8702 * tui/tui-winsource.c
8703 (tui_exec_info_window::maybe_allocate_content): New method.
8704 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
8705 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
8706 (make_source_or_disasm_window): Add cast.
8707 * tui/tui-data.h (union tui_which_element) <simple_string>:
8708 Remove.
8709 (struct tui_source_info): New.
8710 (struct tui_source_window_base) <execution_info>: Change type.
8711 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
8712 case, and add assert.
8713 (tui_alloc_content): Add assert.
8714
c3fabb7d
TT
87152019-06-25 Tom Tromey <tom@tromey.com>
8716
8717 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
8718 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
8719 * tui/tui-data.c (tui_alloc_win_info): Remove.
8720
bbc228ee
TT
87212019-06-25 Tom Tromey <tom@tromey.com>
8722
8723 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
8724 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
8725 can_highlight.
8726
5fcee43a
TT
87272019-06-25 Tom Tromey <tom@tromey.com>
8728
8729 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
8730 make_visible_with_new_height method.
8731 (tui_win_info::make_visible_with_new_height): New method.
8732 (tui_source_window_base::do_make_visible_with_new_height)
8733 (tui_data_window::do_make_visible_with_new_height)
8734 (tui_cmd_window::do_make_visible_with_new_height): New methods.
8735 (make_visible_with_new_height): Remove.
8736 (tui_resize_all, tui_adjust_win_heights): Use
8737 make_visible_with_new_height method.
8738 * tui/tui-data.h (struct tui_win_info)
8739 <do_make_visible_with_new_height, make_visible_with_new_height>:
8740 New methods.
8741 (struct tui_source_window_base, struct tui_data_window)
8742 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
8743 methods.
8744
d83f1fe6
TT
87452019-06-25 Tom Tromey <tom@tromey.com>
8746
8747 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
8748 method.
8749 (update_tab_width): Call update_tab_width method.
8750 * tui/tui-data.h (struct tui_win_info)
8751 (struct tui_source_window_base) <update_tab_width>: New methods.
8752
17374de4
TT
87532019-06-25 Tom Tromey <tom@tromey.com>
8754
8755 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
8756 parameter.
8757 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
8758 parameter.
8759 (tui_gen_win_info::make_visible): Update.
8760 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
8761 parameter.
8762 * tui/tui-data.h (enum tui_box): New enum.
8763 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
8764
f936bca2
TT
87652019-06-25 Tom Tromey <tom@tromey.com>
8766
8767 * tui/tui-layout.c (make_source_or_disasm_window): Always use
8768 init_and_make_win for EXEC_INFO_WIN.
8769 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
8770 longer inline.
8771 (struct tui_win_info) <~tui_win_info>: Inline.
8772 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
8773 Don't declare.
8774 * tui/tui-data.c (source_win, disasm_win): Remove globals.
8775 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
8776 Remove.
8777 (tui_initialize_static_data): Update.
8778 (~tui_gen_win_info): Handle more cleanup here.
8779 (~tui_source_window_base): Delete "execution_info".
8780 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
8781
d6ba6a11
TT
87822019-06-25 Tom Tromey <tom@tromey.com>
8783
8784 * tui/tui-layout.c (make_command_window): Don't set
8785 can_highlight.
8786 (show_source_disasm_command): Call the reset method.
8787 (show_data): Don't set can_highlight. Call the reset method.
8788 (tui_gen_win_info::reset): Rename from init_gen_win_info
8789 (init_and_make_win): Simplify. Return tui_gen_win_info.
8790 (show_source_or_disasm_and_command): Call the reset method.
8791 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
8792 (struct tui_cmd_window): Set can_highlight.
8793
48a3bd16
TT
87942019-06-25 Tom Tromey <tom@tromey.com>
8795
8796 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
8797 from make_visible.
8798 (tui_make_visible, tui_make_invisible): Rewrite.
8799 (tui_win_info::make_visible): Remove.
8800 (tui_source_window_base::make_visible): Update.
8801 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
8802 method. Moved from...
8803 (struct tui_win_info) <make_visible>: ...here.
8804
c3bd716f
TT
88052019-06-25 Tom Tromey <tom@tromey.com>
8806
8807 * tui/tui-winsource.c
8808 (tui_source_window_base::do_scroll_horizontal): Remove direction
8809 parameter.
8810 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
8811 direction parameter.
8812 * tui/tui-win.c (tui_win_info::forward_scroll)
8813 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
8814 (tui_win_info::right_scroll): Update.
8815 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
8816 direction parameter.
8817 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
8818 direction parameter.
8819 * tui/tui-data.h (enum tui_scroll_direction): Remove.
8820 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
8821 Remove direction parameter.
8822 (struct tui_source_window_base, struct tui_source_window)
8823 (struct tui_disasm_window, struct tui_data_window)
8824 (struct tui_cmd_window): Update.
8825
21c32dca
TT
88262019-06-25 Tom Tromey <tom@tromey.com>
8827
8828 * tui/tui-winsource.h (tui_set_exec_info_content)
8829 (tui_show_exec_info_content, tui_erase_exec_info_content)
8830 (tui_clear_exec_info_content, tui_update_exec_info): Change
8831 argument to tui_source_window_base.
8832 * tui/tui-winsource.c (tui_set_exec_info_content)
8833 (tui_show_exec_info_content, tui_erase_exec_info_content)
8834 (tui_clear_exec_info_content, tui_update_exec_info): Change
8835 argument to tui_source_window_base.
8836
73fbdc65
TT
88372019-06-25 Tom Tromey <tom@tromey.com>
8838
8839 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
8840 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
8841
33325343
TT
88422019-06-25 Tom Tromey <tom@tromey.com>
8843
8844 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
8845 check.
8846
29d2c474
TT
88472019-06-25 Tom Tromey <tom@tromey.com>
8848
8849 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
8850 type to void.
8851 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
8852 type to void.
8853 * tui/tui-source.c (tui_set_source_content): Update.
8854 * tui/tui-disasm.c (tui_set_disassem_content): Update.
8855
152f3f4b
TT
88562019-06-25 Tom Tromey <tom@tromey.com>
8857
8858 * tui/tui-win.c (window_name_completer, tui_set_focus)
8859 (tui_all_windows_info): Use name method.
8860 * tui/tui-data.h (struct tui_gen_win_info)
8861 (struct tui_source_window, struct tui_disasm_window)
8862 (struct tui_data_window, struct tui_cmd_window) <name>: New
8863 method.
8864 (tui_win_name): Don't declare.
8865 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
8866 (tui_win_name): Remove.
8867
be4da588
TT
88682019-06-25 Tom Tromey <tom@tromey.com>
8869
8870 * tui/tui-winsource.h (tui_update_source_window)
8871 (tui_update_source_window_as_is): Change parameter type.
8872 * tui/tui-winsource.c (tui_update_source_window): Change win_info
8873 to be a tui_source_window_base.
8874 (tui_update_source_window_as_is): Likewise.
8875 * tui/tui-win.c (make_visible_with_new_height): Update.
8876
5b81daba
TT
88772019-06-25 Tom Tromey <tom@tromey.com>
8878
8879 * tui/tui-winsource.c (tui_erase_source_content)
8880 (tui_show_source_content, tui_show_exec_info_content)
8881 (tui_erase_exec_info_content): Use refresh_window method.
8882 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
8883 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
8884 from tui_refresh_win.
8885 (tui_data_window::refresh_window): New method.
8886 (tui_win_info::refresh, tui_source_window_base::refresh)
8887 (tui_refresh_all): Use refresh_window method.
8888 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
8889 method.
8890 * tui/tui-regs.c (tui_display_register): Call refresh_window
8891 method.
8892 * tui/tui-layout.c (show_source_disasm_command)
8893 (show_source_or_disasm_and_command): Call refresh_window method.
8894 * tui/tui-data.h (struct tui_gen_win_info)
8895 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
8896 New method.
8897
cb2ce893
TT
88982019-06-25 Tom Tromey <tom@tromey.com>
8899
8900 * tui/tui.c (tui_rl_other_window, tui_enable)
8901 (tui_is_window_visible, tui_get_command_dimension): Update.
8902 * tui/tui-winsource.c (tui_update_source_window_as_is)
8903 (tui_clear_source_content, tui_erase_source_content)
8904 (tui_show_source_line, tui_source_window_base::refill)
8905 (tui_source_window_base::do_scroll_horizontal)
8906 (tui_source_window_base::set_is_exec_point_at)
8907 (tui_update_breakpoint_info, tui_set_exec_info_content)
8908 (tui_alloc_source_buffer, tui_line_is_displayed)
8909 (tui_addr_is_displayed): Update.
8910 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
8911 (tui_check_and_display_highlight_if_needed)
8912 (tui_win_info::make_visible, tui_win_info::refresh)
8913 (tui_refresh_all): Update.
8914 * tui/tui-windata.c (tui_first_data_item_displayed)
8915 (tui_delete_data_content_windows, tui_erase_data_content)
8916 (tui_display_all_data, tui_data_window::refresh_all)
8917 (tui_check_data_values): Update.
8918 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
8919 (tui_set_win_focus_to, tui_win_info::forward_scroll)
8920 (tui_win_info::backward_scroll, tui_refresh_all_win)
8921 (tui_resize_all, tui_set_focus, tui_all_windows_info)
8922 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
8923 (tui_source_window_base::set_new_height)
8924 (tui_data_window::set_new_height)
8925 (make_invisible_and_set_new_height)
8926 (make_visible_with_new_height, new_height_ok)
8927 (parse_scrolling_args): Update.
8928 * tui/tui-stack.c (tui_show_frame_info): Update.
8929 * tui/tui-source.c (tui_set_source_content)
8930 (tui_set_source_content_nil, tui_source_is_displayed)
8931 (tui_source_window::do_scroll_vertical): Update.
8932 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
8933 (tui_display_registers_from, tui_display_reg_element_at_line)
8934 (tui_check_register_values, tui_reg_command): Update.
8935 * tui/tui-layout.c (tui_default_win_height)
8936 (show_source_disasm_command, show_data, init_and_make_win)
8937 (show_source_or_disasm_and_command): Update.
8938 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
8939 (tui_redisplay_readline, tui_mld_flush)
8940 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
8941 (tui_getc): Update.
8942 * tui/tui-disasm.c (tui_set_disassem_content)
8943 (tui_disasm_window::do_scroll_vertical): Update.
8944 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
8945 Now virtual.
8946 (struct tui_win_info): Derive from tui_gen_win_info.
8947 <~tui_win_info>: Mark as override.
8948 <generic>: Remove member.
8949 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
8950 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
8951 (~tui_data_window, ~tui_win_info)
8952 (tui_free_all_source_wins_content): Update.
8953 * tui/tui-command.c (tui_refresh_cmd_win): Update.
8954
ab313b35
TT
89552019-06-25 Tom Tromey <tom@tromey.com>
8956
8957 * tui/tui-layout.c (init_and_make_win): Use new.
8958 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
8959 destructor, initializers.
8960 (tui_alloc_generic_win_info): Don't declare.
8961 * tui/tui-data.c (_locator): Add argument to constructor.
8962 (source_win, disasm_win): New globals.
8963 (exec_info): Remove.
8964 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
8965 Update.
8966 (tui_alloc_generic_win_info): Remove.
8967 (init_content_element): Use new.
8968 (tui_win_info::tui_win_info): Update.
8969 (free_content_elements) <case DATA_WIN>: Use delete.
8970
dc2c33e4
TT
89712019-06-25 Tom Tromey <tom@tromey.com>
8972
8973 * tui/tui-wingeneral.c (tui_refresh_win): Update.
8974 * tui/tui-windata.c (tui_first_data_item_displayed)
8975 (tui_delete_data_content_windows): Update.
8976 * tui/tui-win.c (tui_data_window::set_new_height): Update.
8977 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
8978 (tui_display_registers_from, tui_check_register_values): Update.
8979 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
8980 pointer.
8981 * tui/tui-data.c (init_content_element): Update. Allocate the new
8982 window.
8983 (tui_free_data_content): Update.
8984 (free_content_elements) <case DATA_WIN>: Free the window.
8985
214a5cbe
TT
89862019-06-25 Tom Tromey <tom@tromey.com>
8987
8988 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
8989 Update.
8990 * tui/tui-layout.c (make_command_window)
8991 (show_source_disasm_command, show_data, init_and_make_win)
8992 (show_source_or_disasm_and_command): Update.
8993 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
8994 method.
8995 <can_highight, is_highlighted>: Now bool.
8996 (tui_set_win_highlight): Don't declare.
8997 * tui/tui-data.c (tui_set_win_highlight): Remove.
8998
8e2daf15
TT
89992019-06-25 Tom Tromey <tom@tromey.com>
9000
9001 * tui/tui-wingeneral.c (make_visible): Remove check of window
9002 type.
9003
8903bd8a
TT
90042019-06-25 Tom Tromey <tom@tromey.com>
9005
9006 * tui/tui-win.c (tui_win_info::max_height)
9007 (tui_cmd_window::max_height): New methods.
9008 (new_height_ok): Call max_height.
9009 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
9010 <max_height>: New method.
9011
3f02ce1e
TT
90122019-06-25 Tom Tromey <tom@tromey.com>
9013
9014 * tui/tui-win.c (tui_source_window_base::set_new_height)
9015 (tui_data_window::set_new_height): New methods.
9016 (make_invisible_and_set_new_height): Call set_new_height method.
9017 * tui/tui-data.h (struct tui_win_info)
9018 (struct tui_source_window_base, struct tui_data_window)
9019 <set_new_height>: New method.
9020
1825f487
TT
90212019-06-25 Tom Tromey <tom@tromey.com>
9022
9023 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
9024 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
9025 tui_refresh_data_win.
9026 * tui/tui-win.c (tui_source_window_base::refresh_all): New
9027 method.
9028 (tui_refresh_all_win): Call the refresh_all method.
9029 (tui_set_focus): Likewise.
9030 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
9031 (struct tui_source_window_base, struct tui_data_window) <refresh>:
9032 Likewise.
9033
ad54d15b
TT
90342019-06-25 Tom Tromey <tom@tromey.com>
9035
9036 * tui/tui-winsource.h (tui_refill_source_window)
9037 (tui_set_is_exec_point_at): Don't declare.
9038 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
9039 (tui_source_window_base::refill): Rename from
9040 tui_refill_source_window.
9041 (tui_source_window_base::do_scroll_horizontal): Update.
9042 (tui_source_window_base::set_is_exec_point_at): Rename from
9043 tui_set_is_exec_point_at.
9044 (tui_update_all_breakpoint_info): Update.
9045 * tui/tui-stack.c (tui_show_frame_info): Update.
9046 * tui/tui-layout.c (show_data): Add cast.
9047 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
9048 * tui/tui-data.h (struct tui_source_window_base) <refill,
9049 set_is_exec_point_at>: New methods.
9050 (tui_source_windows, tui_add_to_source_windows): Update types.
9051 (tui_add_to_source_windows): Remove redundant declaration.
9052 * tui/tui-data.c (source_windows): Store tui_source_window_base.
9053 (tui_source_windows): Change return type.
9054 (tui_clear_source_windows_detail): Update.
9055 (tui_add_to_source_windows): Change type of parameter.
9056 (tui_free_all_source_wins_content): Update.
9057
2042b506
TT
90582019-06-25 Tom Tromey <tom@tromey.com>
9059
9060 * tui/tui-wingeneral.c (tui_win_info::refresh)
9061 (tui_source_window_base::refresh): New methods.
9062 (tui_refresh_all): Call the refresh method.
9063 * tui/tui-data.h (struct tui_win_info)
9064 (struct tui_source_window_base) <refresh>: New method.
9065
56122977
TT
90662019-06-25 Tom Tromey <tom@tromey.com>
9067
9068 * tui/tui.h (tui_is_window_visible): Return bool.
9069 * tui/tui.c (tui_is_window_visible): Return bool.
9070 * tui/tui-wingeneral.c (tui_make_window, make_visible)
9071 (tui_make_visible, tui_make_invisible)
9072 (tui_win_info::make_visible)
9073 (tui_source_window_base::make_visible, make_all_visible)
9074 (tui_make_all_visible, tui_make_all_invisible): Update.
9075 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
9076 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
9077 bool.
9078 (struct tui_win_info, struct tui_source_window_base)
9079 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
9080 * tui/tui-data.c (tui_init_generic_part): Update.
9081
cda37efb
TT
90822019-06-25 Tom Tromey <tom@tromey.com>
9083
9084 * tui/tui-wingeneral.c (tui_win_info::make_visible)
9085 (tui_source_window_base::make_visible): New methods.
9086 (make_all_visible): Make method call.
9087 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
9088 (struct tui_source_window_base, struct tui_cmd_window): Override
9089 make_visible.
9090 (tui_win_is_source_type): Don't declare.
9091 * tui/tui-data.c (tui_win_is_source_type): Remove.
9092
6a0ee02c
TT
90932019-06-25 Tom Tromey <tom@tromey.com>
9094
9095 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
9096 NULL check.
9097
63901aec
TT
90982019-06-25 Tom Tromey <tom@tromey.com>
9099
9100 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
9101 Inline constructor. Add initializers for members.
9102 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
9103 constructors; now inline in class.
9104
ceb13a13
TT
91052019-06-25 Tom Tromey <tom@tromey.com>
9106
9107 * tui/tui-regs.c (tui_show_registers): Update.
9108 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
9109 bool.
9110 * tui/tui-data.c (tui_data_window::clear_detail)
9111 (tui_data_window): Update.
9112
238eb706
TT
91132019-06-25 Tom Tromey <tom@tromey.com>
9114
9115 * tui/tui-windata.c (tui_display_all_data)
9116 (tui_display_data_from_line, tui_display_data_from)
9117 (tui_check_data_values, tui_data_window::do_scroll_vertical):
9118 Update.
9119 * tui/tui-regs.c (tui_last_regs_line_no)
9120 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
9121 (tui_show_registers, tui_show_register_group)
9122 (tui_display_registers_from, tui_display_reg_element_at_line)
9123 (tui_display_registers_from_line, tui_check_register_values)
9124 (tui_reg_next, tui_reg_prev): Update.
9125 * tui/tui-layout.c (tui_set_layout, show_data): Update.
9126 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
9127 tui_data_window.
9128 (struct tui_win_info) <detail>: Remove. Add new fields from
9129 tui_data_info.
9130 (TUI_DATA_WIN): Add cast.
9131 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
9132 (~tui_data_window): Simplify.
9133
81491aa0
TT
91342019-06-25 Tom Tromey <tom@tromey.com>
9135
9136 * tui/tui-layout.c (show_source_disasm_command)
9137 (show_source_or_disasm_and_command): Update.
9138 * tui/tui-io.c (update_cmdwin_start_line)
9139 (tui_redisplay_readline): Update.
9140 * tui/tui-data.h (struct tui_command_info): Remove.
9141 (struct tui_win_info) <detail>: Remove command_info member.
9142 (struct tui_data_window) <start_line>: New member, from
9143 tui_command_info.
9144 (TUI_CMD_WIN): Add casts.
9145
e6e41501
TT
91462019-06-25 Tom Tromey <tom@tromey.com>
9147
9148 * tui/tui-winsource.c (tui_update_source_window)
9149 (tui_refill_source_window)
9150 (tui_source_window_base::do_scroll_horizontal)
9151 (tui_update_breakpoint_info, tui_set_exec_info_content)
9152 (tui_show_exec_info_content, tui_erase_exec_info_content)
9153 (tui_clear_exec_info_content): Update.
9154 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
9155 Update.
9156 * tui/tui-win.c (make_invisible_and_set_new_height)
9157 (make_visible_with_new_height): Update.
9158 * tui/tui-source.c (tui_set_source_content)
9159 (tui_show_symtab_source): Update.
9160 * tui/tui-layout.c (extract_display_start_addr)
9161 (show_source_disasm_command, show_data)
9162 (make_source_or_disasm_window)
9163 (show_source_or_disasm_and_command): Update.
9164 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
9165 (tui_disasm_window::do_scroll_vertical): Remove shadowing
9166 "gdbarch".
9167 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
9168 to tui_source_window_base.
9169 (struct tui_win_info) <detail>: Remove source_info member.
9170 (struct tui_source_window_base) <has_locator>: Inline.
9171 Move contents from tui_source_info; rename has_locator member to
9172 m_has_locator.
9173 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
9174 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
9175 header file.
9176 (tui_source_window_base::clear_detail, ~tui_source_window_base):
9177 Simplify.
9178 (tui_free_all_source_wins_content): Cast to
9179 tui_source_window_base.
9180
44f0e208
TT
91812019-06-25 Tom Tromey <tom@tromey.com>
9182
9183 * tui/tui-win.c (make_invisible_and_set_new_height)
9184 (make_visible_with_new_height): Call has_locator method.
9185 * tui/tui-layout.c (show_source_disasm_command, show_data)
9186 (show_source_or_disasm_and_command): Update for bool change.
9187 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
9188 (tui_win_info) <has_locator>: New method.
9189 (struct tui_source_window_base) <has_locator>: New method.
9190 (tui_win_has_locator): Don't declare.
9191 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
9192 from tui_win_has_locator.
9193 (tui_source_window_base): Use false, not FALSE.
9194
7778b912
TT
91952019-06-25 Tom Tromey <tom@tromey.com>
9196
9197 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
9198 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
9199 clear_detail method directly.
9200 (tui_clear_win_detail): Remove.
9201
f83d391c
TT
92022019-06-25 Tom Tromey <tom@tromey.com>
9203
9204 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
9205 "this", not TUI_DISASM_WIN.
9206
13446e05
TT
92072019-06-25 Tom Tromey <tom@tromey.com>
9208
9209 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
9210 declare.
9211 * tui/tui-winsource.c
9212 (tui_source_window_base::do_scroll_horizontal): Rename from
9213 tui_horizontal_source_scroll.
9214 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
9215 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
9216 from tui_vertical_data_scroll.
9217 * tui/tui-win.h (tui_scroll): Don't declare.
9218 * tui/tui-win.c (tui_win_info::forward_scroll)
9219 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
9220 (tui_win_info::right_scroll): Rename and update.
9221 (tui_scroll_forward_command, tui_scroll_backward_command)
9222 (tui_scroll_left_command, tui_scroll_right_command): Update.
9223 (tui_scroll): Remove.
9224 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
9225 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
9226 from tui_vertical_source_scroll.
9227 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
9228 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
9229 from tui_vertical_disassem_scroll.
9230 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
9231 do_scroll_horizontal>: New methods.
9232 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
9233 Likewise.
9234 (struct tui_source_window_base): Add do_scroll_horizontal.
9235 (struct tui_source_window, struct tui_disasm_window): Add
9236 do_scroll_vertical.
9237 (struct tui_data_window, struct tui_cmd_window): Add
9238 do_scroll_horizontal and do_scroll_vertical.
9239 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
9240
5cf82909
TT
92412019-06-25 Tom Tromey <tom@tromey.com>
9242
9243 * tui/tui-data.h (struct tui_source_window_base): New struct.
9244 (struct tui_source_window): Derive from tui_source_window_base.
9245 (struct tui_disasm_window): New struct.
9246 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
9247 from tui_source_window::clear_detail.
9248 (tui_source_window_base): Rename from tui_source_window.
9249 (~tui_source_window_base): Rename from ~tui_source_window.
9250 (tui_alloc_win_info): Create a tui_disasm_window.
9251
ee1d42d6
TT
92522019-06-25 Tom Tromey <tom@tromey.com>
9253
9254 * tui/tui-data.h (struct tui_source_window)
9255 (struct tui_data_window): Declare destructors.
9256 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
9257 destructors.
9258 (tui_win_info): Simplify.
9259
b4eb2452
TT
92602019-06-25 Tom Tromey <tom@tromey.com>
9261
9262 * tui/tui-winsource.c (tui_display_main)
9263 (tui_update_source_windows_with_addr)
9264 (tui_update_all_breakpoint_info): Update.
9265 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
9266 (new_height_ok, parse_scrolling_args): Update.
9267 * tui/tui-stack.c (tui_show_frame_info): Update.
9268 * tui/tui-data.h (struct tui_list): Remove.
9269 (tui_source_windows): Return a reference to a std::vector.
9270 * tui/tui-data.c (source_windows): Now a std::vector.
9271 (tui_source_windows): Change return type.
9272 (tui_clear_source_windows): Rewrite.
9273 (tui_clear_source_windows_detail, tui_add_to_source_windows)
9274 (tui_free_all_source_wins_content): Rewrite.
9275
8761a91b
TT
92762019-06-25 Tom Tromey <tom@tromey.com>
9277
9278 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
9279 (struct tui_data_window, struct tui_cmd_window): Declare
9280 clear_detail method.
9281 * tui/tui-data.c (tui_source_window::clear_detail)
9282 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
9283 methods.
9284 (tui_clear_win_detail): Simplify.
9285
0ed69eda
TT
92862019-06-25 Tom Tromey <tom@tromey.com>
9287
9288 * tui/tui-layout.c (make_source_window, make_disasm_window)
9289 (make_source_or_disasm_window): Remove win_info_ptr parameter.
9290 Return the new window.
9291 (show_source_disasm_command, show_data)
9292 (show_source_or_disasm_and_command): Update.
9293
82432e10
TT
92942019-06-25 Tom Tromey <tom@tromey.com>
9295
9296 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
9297 parameter. Return the new window.
9298 (show_source_disasm_command): Update and remove NULL check.
9299 (show_source_or_disasm_and_command): Update.
9300
ec328aa5
TT
93012019-06-25 Tom Tromey <tom@tromey.com>
9302
9303 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
9304
33b906ab
TT
93052019-06-25 Tom Tromey <tom@tromey.com>
9306
9307 * tui/tui-data.h (struct tui_win_info): Make constructor
9308 protected. Make destructor virtual. Add initializers.
9309 (tui_source_window, tui_data_window, tui_cmd_window): New
9310 classes.
9311 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
9312 constructor. Add "type" parameter.
9313 (tui_source_window, tui_data_window, tui_cmd_window): New
9314 constructors.
9315 (tui_alloc_win_info): Instantiate the appropriate subclass.
9316
e7e11af4
TT
93172019-06-25 Tom Tromey <tom@tromey.com>
9318
9319 * tui/tui-win.c (tui_resize_all): Use delete.
9320 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
9321 destructor.
9322 (tui_free_window): Don't declare.
9323 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
9324 Update.
9325
6792b55e
TT
93262019-06-25 Tom Tromey <tom@tromey.com>
9327
9328 * tui/tui-data.h (struct tui_win_info): Add constructor.
9329 * tui/tui-data.c (tui_alloc_win_info): Use new.
9330 (tui_free_window): Use delete.
9331
f95675e1
TT
93322019-06-22 Tom Tromey <tom@tromey.com>
9333
9334 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
9335 declare.
9336 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
9337
5bff081c
TT
93382019-06-22 Tom Tromey <tom@tromey.com>
9339
9340 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
9341 declare.
9342 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
9343
47e3f474
TV
93442019-06-22 Tom de Vries <tdevries@suse.de>
9345
9346 * dwarf2read.c (create_addrmap_from_aranges)
9347 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
9348 instead of '%zu'.
9349
fd5866f6
SM
93502019-06-21 Simon Marchi <simon.marchi@efficios.com>
9351
9352 * dwarf2read.h (dwarf2_section_info_def): Remove.
9353 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
9354 * dwarf2read.c (struct dwo_sections) <types>: Change type to
9355 std::vector<dwarf2_section_info>.
9356 (struct dwo_file) <~dwo_file>: Remove.
9357 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
9358 types field.
9359 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
9360 (dwarf2_read_debug_names): Likewise.
9361 (create_debug_types_hash_table): Change parameter type to
9362 array_view, adjust code accordingly.
9363 (dwarf2_locate_dwo_sections): Adjust to std::vector.
9364 (partial_die_info::fixup): Likewise.
9365 (determine_prefix): Likewise.
9366 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
9367
fb1eb2f9
SM
93682019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
9369
9370 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
9371 gdb_bfd_ref_ptr.
9372 <~dwo_file>: Remove call to gdb_bfd_unref.
9373 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
9374 gdb_bfd_ref_ptr::get.
9375
51ac9db5
SM
93762019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
9377
9378 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
9379 type to htab_up.
9380 * dwarf2read.c (struct dwo_file): Initialize fields.
9381 <~dwo_file>: New.
9382 (free_dwo_file): Remove, move content to ~dwo_file.
9383 (struct dwo_file_deleter): Remove.
9384 (dwo_file_up>: Remove custom deleter.
9385 (free_dwo_files): Remove.
9386 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
9387 dwo_files.
9388 (process_skeletonless_type_units): Call unique_ptr::get.
9389 (allocate_dwo_file_hash_table): Add deleter to created hash
9390 table. Change return type to htab_up.
9391 (lookup_dwo_file_slot): Don't memset dwo_file, call
9392 unique_ptr::get.
9393 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
9394 (create_dwo_unit_in_dwp_v2): Likewise.
9395 (open_and_init_dwo_file): Likewise.
9396 (free_dwo_file_from_slot): Remove.
9397
dc4ccb6f
SM
93982019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
9399
9400 * dwarf2read.h (struct dwarf2_section_info) <readin,
9401 is_virtual>: Change type to bool.
9402 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
9403 true instead of 1.
9404
e6a1c5cb
TT
94052019-06-19 Tom Tromey <tom@tromey.com>
9406
9407 * tui/tui-data.h (tui_init_content_element): Don't declare.
9408
6f6ffbeb
TT
94092019-06-19 Tom Tromey <tom@tromey.com>
9410
9411 * tui/tui-data.h (tui_init_win_info): Don't declare.
9412
f23f598e
TV
94132019-06-19 Tom de Vries <tdevries@suse.de>
9414
9415 * dwarf2read.h (abstract_to_concrete): Change type to
9416 std::unordered_map<sect_offset, std::vector<sect_offset>,
9417 gdb::hash_enum<sect_offset>>.
9418
680e1bee
TT
94192019-06-19 Tom Tromey <tromey@adacore.com>
9420
9421 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
9422 EVAL_AVOID_SIDE_EFFECTS specially.
9423
dcf37923
TT
94242019-06-19 Tom Tromey <tromey@adacore.com>
9425
9426 * source-cache.c (highlighter): New global.
9427 (source_cache::get_source_lines): Create a highlighter on demand.
9428
494986d5
AB
94292019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
9430
9431 * defs.h (deprecated_interactive_hook): Delete declaration.
9432 * interps.c (clear_interpreter_hooks): Remove use of
9433 deprecated_interactive_hook.
9434 * top.c (deprecated_interactive_hook): Delete definition.
9435 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
9436
3360b6e7
TV
94372019-06-18 Tom de Vries <tdevries@suse.de>
9438
9439 PR gdb/24515
9440 * dwarf2read.h (abstract_to_concrete): Change type from
9441 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
9442 std::unordered_map<sect_offset, std::vector<sect_offset>>.
9443 * dwarf2read.c (read_variable): Update.
9444 (dwarf2_fetch_die_loc_sect_off): Update.
9445
310b3441
TV
94462019-06-17 Tom de Vries <tdevries@suse.de>
9447
9448 PR gdb/24617
9449 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
9450 accessing parent[parent_len - 1].
9451
ba9777be
PP
94522019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
9453
9454 PR gdb/24364
9455 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
9456 call dtrace_process_dof with NULL dof.
9457
2b9f6e89
TV
94582019-06-16 Tom de Vries <tdevries@suse.de>
9459
9460 PR gdb/24445
9461 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
9462
431b3ead
TT
94632019-06-16 Tom Tromey <tom@tromey.com>
9464
9465 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
9466 (make_all_visible): Use address of member.
9467
d04b44a1
TT
94682019-06-16 Tom Tromey <tom@tromey.com>
9469
9470 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
9471 (tui_free_window, free_content, free_content_elements): Remove
9472 unnecessary cast.
9473 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
9474 cast.
9475 * tui/tui-regs.c (tui_show_register_group)
9476 (tui_display_registers_from, tui_display_reg_element_at_line):
9477 Remove unnecessary cast.
9478
bf5142e7
AB
94792019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
9480
9481 * linux-nat.c (normal_mask): Delete.
9482 (_initialize_linux_nat): Don't initialise normal_mask.
9483
c4973306
SM
94842019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
9485
9486 PR gdb/24445
9487 * dwarf-index-write.h (write_psymtabs_to_index): Add
9488 dwz_basename parameter.
9489 * dwarf-index-write.c (write_gdbindex): Move file writing to
9490 write_gdbindex_1. Change return type void.
9491 (assert_file_size): Move up, remove filename parameter.
9492 (write_gdbindex_1): New function.
9493 (write_debug_names): Change return type to void, call
9494 assert_file_size.
9495 (struct index_wip_file): New struct.
9496 (write_psymtabs_to_index): Add dwz_basename parameter. Move
9497 file logic to index_wip_file. Write index for dwz file if
9498 needed.
9499 (save_gdb_index_command): Pass basename of dwz file, if present.
9500 * dwarf-index-cache.c (index_cache::store): Obtain and pass
9501 build-id of dwz file, if present.
9502 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
9503 (dwarf2_get_dwz_file): Likewise.
9504 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
9505 (dwarf2_get_dwz_file): Likewise.
9506
395f9c91
TT
95072019-06-16 Tom Tromey <tom@tromey.com>
9508
9509 * coffread.c (process_coff_symbol): Use xstrdup.
9510 * value.c (create_internalvar): Use xstrdup.
9511
cafb3438
TT
95122019-06-16 Tom Tromey <tom@tromey.com>
9513
9514 * valops.c (value_cast, value_slice): Remove unnecessary cast.
9515 * breakpoint.c (stopin_command, stopat_command)
9516 (until_break_command, decode_location_default): Remove unnecessary
9517 cast.
9518 * utils.c (subset_compare): Remove unnecessary cast.
9519 * ada-lang.c (ada_update_initial_language): Remove unnecessary
9520 cast.
9521 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
9522 cast.
9523 * infcmd.c (path_command): Remove unnecessary cast.
9524 * coffread.c (decode_type): Remove unnecessary cast.
9525 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
9526 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
9527 * tui/tui-stack.c (tui_show_locator_content)
9528 (tui_show_frame_info): Remove unnecessary cast.
9529 * tui/tui-win.c (tui_scroll_forward_command)
9530 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
9531 (parse_scrolling_args): Remove unnecessary cast.
9532 * tui/tui-data.c (init_win_info, tui_del_window)
9533 (tui_free_window, tui_del_data_windows, tui_free_data_content)
9534 (free_content_elements): Remove unnecessary cast.
9535 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
9536 unnecessary cast.
9537 * tui/tui-source.c (tui_set_source_content)
9538 (tui_vertical_source_scroll): Remove unnecessary cast.
9539 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
9540 cast.
9541 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
9542 * tui/tui-regs.c (tui_display_registers_from)
9543 (tui_display_register): Remove unnecessary cast.
9544 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
9545 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
9546 (make_visible): Remove unnecessary cast.
9547 * tui/tui-winsource.c (tui_erase_source_content)
9548 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
9549 unnecessary cast.
9550 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
9551 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
9552 * stabsread.c (read_type, read_array_type, read_range_type):
9553 Remove unnecessary cast.
9554 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
9555 (parse_symbol, parse_type, upgrade_type, parse_external)
9556 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
9557 unnecessary cast.
9558 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
9559
730ead81
TT
95602019-06-16 Tom Tromey <tom@tromey.com>
9561
9562 * tui/tui-data.c (tui_alloc_generic_win_info)
9563 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
9564 checks.
9565
584a927c
AB
95662019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
9567 Andrew Burgess <andrew.burgess@embecosm.com>
9568
9569 * f-typeprint.c (f_print_type): Don't return early for not
9570 associated or not allocated types.
9571 (f_type_print_varspec_suffix): Add print_rank parameter and print
9572 ranks of array types in case they dangling.
9573 (f_type_print_base): Add print_rank parameter.
9574
30056ea0
AB
95752019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
9576
9577 * NEWS: Mention new MI commands.
9578 * break-catch-throw.c (enum exception_event_kind): Move to
9579 breakpoint.h.
9580 (print_mention_exception_catchpoint): Output text as a single
9581 message.
9582 (catch_exception_command_1): Rename to...
9583 (catch_exception_event): ...this, make non-static, update header
9584 command, and change some parameter types.
9585 (catch_catch_command): Update for changes to
9586 catch_exception_command_1.
9587 (catch_throw_command): Likewise.
9588 (catch_rethrow_command): Likewise.
9589 * breakpoint.c (enum exception_event_kind): Delete.
9590 * breakpoint.h (enum exception_event_kind): Moved here from
9591 break-catch-throw.c.
9592 (catch_exception_event): Declare.
9593 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
9594 (mi_cmd_catch_throw): New function.
9595 (mi_cmd_catch_rethrow): New function.
9596 (mi_cmd_catch_catch): New function.
9597 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
9598 'catch-catch' entries.
9599 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
9600 (mi_cmd_catch_rethrow): Declare.
9601 (mi_cmd_catch_catch): Declare.
9602
ec8e2b6d
AB
96032019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
9604
9605 * annotate.c (annotate_source_line): Change return type to void,
9606 update implementation to match.
9607 * annotate.h (annotate_source_line): Change return type to void,
9608 update header comment.
9609 * stack.c (print_frame_info): Don't change what frame information
9610 is printed based on whether annotations are on or not.
9611
0d3abd8c
AB
96122019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
9613
9614 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
9615 (annotate_source): Make static.
9616 (annotate_source_line): Moved from source.c and renamed from
9617 identify_source_line. Update the return type.
9618 * annotate.h (annotate_source): Delete declaration.
9619 (annotate_source_line): Declaration moved from source.h, and
9620 renamed from identify_source_line. Return type updated.
9621 * source.c (identify_source_line): Moved to annotate.c and renamed
9622 to annotate_source_line.
9623 (info_line_command): Remove check of annotation_level.
9624 * source.h (identify_source_line): Move declaration to annotate.h
9625 and rename to annotate_source_line.
9626 * stack.c: Add 'annotate.h' include.
9627 (print_frame_info): Remove check of annotation_level before
9628 calling annotate_source_line.
9629
00df30ae
AB
96302019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
9631
9632 * source-cache.c (source_cache::get_plain_source_lines): Use
9633 open_source_file_with_line_charpos instead of just
9634 open_source_file, remove call to find_source_lines.
9635 (source_cache::get_source_lines): Likewise.
9636 * source.c (find_source_lines): Make static.
9637 (get_filename_and_charpos): Renamed into...
9638 (open_source_file_with_line_charpos): ..this along with changes to
9639 return a scoped_fd, and some other minor clean ups.
9640 (identify_source_line): Use open_source_file_with_line_charpos.
9641 (search_command_helper): Use open_source_file_with_line_charpos
9642 instead of just open_source_file, remove call to
9643 find_source_lines.
9644 * source.h (open_source_file_with_line_charpos): Declare new
9645 function.
9646 (find_source_lines): Delete declaration.
9647
afda45a2
AB
96482019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
9649
9650 * source.c (get_filename_and_charpos): Remove fullname
9651 parameter.
9652 (identify_source_line): Update call to get_filename_and_charpos.
9653
0735b091
TT
96542019-06-14 Tom Tromey <tromey@adacore.com>
9655
9656 PR gdb/24502:
9657 * ui-style.h (skip_ansi_escape): Update comment.
9658 * ui-file.h (class no_terminal_escape_file): New class.
9659 * ui-file.c (no_terminal_escape_file::write)
9660 (no_terminal_escape_file::puts): New methods.
9661 * cli/cli-logging.c (handle_redirections): Use
9662 no_terminal_escape_file.
9663
52ce35e2
TT
96642019-06-14 Tom Tromey <tromey@adacore.com>
9665
9666 * NEWS: Move convenience variable news above Python news.
9667
73cc7272
TT
96682019-06-14 Tom Tromey <tom@tromey.com>
9669
9670 * gnulib: Move directory to top-level.
9671 * configure.ac: Don't configure gnulib.
9672 * configure: Rebuild.
9673 * common/common-defs.h: Use new path to gnulib.
9674 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
9675 (GNULIB_H): Remove.
9676 (INCGNU): Look in new gnulib location.
9677 (HFILES_NO_SRCDIR): Remove gnulib files.
9678 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
9679 (generated_files): Remove GNULIB_H.
9680 ($(LIBGNU), all-lib): Remove targets.
9681 (distclean): Don't mention GNULIB_BUILDDIR.
9682 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
9683
f5686554
TT
96842019-06-14 Tom Tromey <tromey@adacore.com>
9685
9686 * symfile.c (add_symbol_file_command): Remove obsolete comment.
9687 Warn if symbol file does not provide any symbols.
9688
a0c1ffed
TT
96892019-06-14 Tom Tromey <tromey@adacore.com>
9690
9691 * source.c (find_and_open_source): Respect basenames_may_differ.
9692
7c39e397
AB
96932019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
9694
9695 * annotate.c (annotate_breakpoints_invalid): Make use of
9696 scoped_restore_terminal_state.
9697 (annotate_frames_invalid): Likewise.
9698
f411722c
TT
96992019-06-14 Tom Tromey <tromey@adacore.com>
9700
9701 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
9702 allow assignment to an internalvar.
9703
4268ec18
TT
97042019-06-14 Tom Tromey <tromey@adacore.com>
9705
9706 * ada-lex.l: Allow "_" in attribute names.
9707
abdb711e
TT
97082019-06-14 Tom Tromey <tromey@adacore.com>
9709
9710 PR gdb/24653:
9711 * regcache.c (registers_changed): Don't call alloca.
9712 * top.c (execute_command): Don't call alloca.
9713
4c048731
PA
97142019-06-13 Pedro Alves <palves@redhat.com>
9715
9716 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
9717 'expression'. When parsing an expression, error out if there's
9718 junk after "unlimited".
9719 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
9720 (do_set_command): Adjust calls to is_unlimited_literal.
9721
66eb1ed3
PA
97222019-06-13 Pedro Alves <palves@redhat.com>
9723
9724 * compile/compile.c (make_compile_options_def_group): Add braces
9725 around array_view initializer.
9726 * thread.c (make_thread_apply_all_options_def_group)
9727 (make_thread_apply_all_options_def_group): Likewise.
9728
3345721a
PA
97292019-06-13 Pedro Alves <palves@redhat.com>
9730
9731 * NEWS (New commands): Mention "maint test-options
9732 require-delimiter", "maint test-options unknown-is-error", "maint
9733 test-options unknown-is-operand" and "maint show
9734 test-options-completion-result".
9735 (New command options, command completion): New section.
9736 (Completion improvements): New section.
9737 Mention that you can abbreviate "unlimited".
9738
6206060d
PA
97392019-06-13 Pedro Alves <palves@redhat.com>
9740
9741 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
9742 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
9743 * unittests/cli-utils-selftests.c (test_parse_flags)
9744 (test_parse_flags_qcs): Delete.
9745 (test_cli_utils): Don't call deleted functions.
9746
6665660a
PA
97472019-06-13 Pedro Alves <palves@redhat.com>
9748
9749 * thread.c: Include "cli/cli-option.h".
9750 (tp_array_compar_ascending): Global.
9751 (tp_array_compar): Delete function.
9752 (tp_array_compar_ascending, tp_array_compar_descending): New
9753 functions.
9754 (ascending_option_def, qcs_flag_option_def)
9755 (thr_qcs_flags_option_defs)
9756 (make_thread_apply_all_options_def_group)
9757 (make_thread_apply_options_def_group): New.
9758 (thread_apply_all_command): Use gdb::option::process_options.
9759 (thread_apply_command_completer)
9760 (thread_apply_all_command_completer): New.
9761 (thread_apply_command): Use gdb::option::process_options.
9762 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
9763 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
9764 to generate help text of "thread apply". Adjust "taas"'s help.
9765 * tid-parse.c (tid_range_parser::in_thread_range): New method.
9766 * tid-parse.h (tid_range_parser::in_thread_range): New method.
9767
f7e13587
PA
97682019-06-13 Pedro Alves <palves@redhat.com>
9769
9770 * thread.c (thread_apply_command): Check for invalid TID with
9771 isdigit instead of !isalpha.
9772
5d707134
PA
97732019-06-13 Pedro Alves <palves@redhat.com>
9774
9775 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
9776 (validate_flags_qcs): New.
9777 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
9778 (validate_flags_qcs): Declare.
9779 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
9780 (make_frame_apply_options_def_group): New.
9781 (frame_apply_command_count): Process options with
9782 gdb::option::process_options.
9783 (frame_apply_completer): New.
9784 (frame_apply_level_completer, frame_apply_all_completer)
9785 (frame_apply_completer): New.
9786 (_initialize_stack): Update help of "frame apply", "frame apply
9787 level", "frame apply all" and "faas" to mention supported options
9788 and install command completers.
9789 * stack.h (frame_apply_all_completer): Declare.
9790 * thread.c: Include "stack.h".
9791 (tfaas_command): Add "--".
9792 (_initialize_thread): Update help "tfaas" to mention supported
9793 options and install command completer.
9794
272d4594
PA
97952019-06-13 Pedro Alves <palves@redhat.com>
9796
9797 * completer.c (complete_nested_command_line): New.
9798 (gdb_completion_word_break_characters_throw): Add assertion.
9799 * completer.h (complete_nested_command_line): Declare.
9800
90a1ef87
PA
98012019-06-13 Pedro Alves <palves@redhat.com>
9802
9803 * stack.c (parse_backtrace_qualifiers): New.
9804 (backtrace_command): Use it.
9805 (backtrace_command_completer): Complete on qualifiers.
9806
d4c16835
PA
98072019-06-13 Pedro Alves <palves@redhat.com>
9808
9809 * frame.c: Include "cli/cli-option.h.
9810 (user_set_backtrace_options): New.
9811 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
9812 Delete.
9813 (get_prev_frame): Adjust.
9814 (boolean_option_def, uinteger_option_def)
9815 (set_backtrace_option_defs): New.
9816 (_initialize_frame): Adjust and use
9817 gdb::option::add_setshow_cmds_for_options to install "set
9818 backtrace past-main" and "set backtrace past-entry".
9819 * frame.h: Include "cli/cli-option.h".
9820 (struct frame_print_options): Forward declare.
9821 (print_frame_arguments_all, print_frame_arguments_scalars)
9822 (print_frame_arguments_none): Declare.
9823 (print_entry_values): Delete declaration.
9824 (struct frame_print_options, user_frame_print_options): New.
9825 (struct set_backtrace_options): New.
9826 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
9827 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
9828 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
9829 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
9830 (list_args_or_locals): Add frame_print_options parameter.
9831 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
9832 * python/py-framefilter.c (enumerate_args): Pass down
9833 USER_FRAME_PRINT_OPTIONS.
9834 * stack.c: Include "cli/cli-option.h".
9835 (print_frame_arguments_all, print_frame_arguments_scalars)
9836 (print_frame_arguments_none): Declare.
9837 (print_raw_frame_arguments, print_entry_values): Delete.
9838 (user_frame_print_options): New.
9839 (boolean_option_def, enum_option_def, frame_print_option_defs):
9840 New.
9841 (struct backtrace_cmd_options): New.
9842 (bt_flag_option_def): New.
9843 (backtrace_command_option_defs): New.
9844 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
9845 (print_frame_arg, read_frame_arg, print_frame_args)
9846 (print_frame_info, print_frame): Add frame_print_options parameter
9847 and use it.
9848 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
9849 (backtrace_command_1): Add frame_print_options and
9850 backtrace_cmd_options parameters and use them.
9851 (make_backtrace_options_def_group): New.
9852 (backtrace_command): Process command options with
9853 gdb::option::process_options.
9854 (backtrace_command_completer): New.
9855 (_initialize_stack): Extend "backtrace"'s help to mention
9856 supported options. Install completer for "backtrace".
9857 Install some settings commands with add_setshow_cmds_for_options.
9858
2daf894e
PA
98592019-06-13 Pedro Alves <palves@redhat.com>
9860
9861 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
9862 and that "set/show print raw frame-arguments" are now deprecated.
9863
9864 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
9865 command.
9866 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
9867 * stack.c (_initialize_stack): Install "set/show print
9868 raw-frame-arguments", and deprecate "set/show print raw
9869 frame-arguments".
9870 * valprint.c (_initialize_valprint): Deprecate "set/show print
9871 raw".
9872
e6ed716c
PA
98732019-06-13 Pedro Alves <palves@redhat.com>
9874
9875 * compile/compile.c (struct compile_options): New.
9876 (compile_flag_option_def, compile_command_option_defs)
9877 (make_compile_options_def_group): New.
9878 (compile_file_command): Handle options with
9879 gdb::option::process_options.
9880 (compile_file_command_completer): New function.
9881 (compile_code_command): Handle options with
9882 gdb::option::process_options.
9883 (compile_code_command_completer): New function.
9884 (_initialize_compiler): Install completers for "compile code" and
9885 "compile file". Mention available options in "compile code" and
9886 "compile code"'s help.
9887 * completer.c (advance_to_completion_word): New, factored out from
9888 ...
9889 (advance_to_expression_complete_word_point): ... this.
9890 (advance_to_filename_complete_word_point): New.
9891 * completer.h (advance_to_filename_complete_word_point): New
9892 declaration.
9893
7d8062de
PA
98942019-06-13 Pedro Alves <palves@redhat.com>
9895
9896 * compile/compile.c: Include "cli/cli-option.h".
9897 (compile_print_value): Scope data pointer is now a
9898 value_print_options pointer; adjust.
9899 (compile_print_command): Process options. Scope data pointer is
9900 now a value_print_options pointer; adjust.
9901 (_initialize_compile): Update "compile print"'s help to include
9902 supported options. Install a completer for "compile print".
9903 * cp-valprint.c (show_vtblprint, show_objectprint)
9904 (show_static_field_print): Delete.
9905 (_initialize_cp_valprint): Don't install "set print
9906 static-members", "set print vtbl", "set print object" here.
9907 * printcmd.c: Include "cli/cli-option.h" and
9908 "common/gdb_optional.h".
9909 (print_command_parse_format): Rework to fill in a
9910 value_print_options instead of a format_data.
9911 (print_value): Change parameter type from format_data pointer to
9912 value_print_options reference. Adjust.
9913 (print_command_1): Process options. Adjust to pass down a
9914 value_print_options.
9915 (print_command_completer): New.
9916 (_initialize_printcmd): Install print_command_completer as
9917 handle_brkchars completer for the "print" command. Update
9918 "print"'s help to include supported options.
9919 * valprint.c: Include "cli/cli-option.h".
9920 (show_vtblprint, show_objectprint, show_static_field_print): Moved
9921 here from cp-valprint.c.
9922 (boolean_option_def, uinteger_option_def)
9923 (value_print_option_defs, make_value_print_options_def_group):
9924 New. Use gdb::option::add_setshow_cmds_for_options to install
9925 "set print elements", "set print null-stop", "set print repeats",
9926 "set print pretty", "set print union", "set print array", "set
9927 print address", "set print symbol", "set print array-indexes".
9928 * valprint.h: Include <string> and "cli/cli-option.h".
9929 (make_value_print_options_def_group): Declare.
9930 (print_value): Change parameter type from format_data pointer to
9931 value_print_options reference.
9932 (print_command_completer): Declare.
9933
9d0faba9
PA
99342019-06-13 Pedro Alves <palves@redhat.com>
9935
9936 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
9937 (COMMON_SFILES): Add maint-test-settings.c.
9938 * cli/cli-decode.c (boolean_enums): New global, factored out from
9939 ...
9940 (add_setshow_boolean_cmd): ... here.
9941 * cli/cli-decode.h (boolean_enums): Declare.
9942 * cli/cli-option.c: New file.
9943 * cli/cli-option.h: New file.
9944 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
9945 factored out from ...
9946 (parse_cli_boolean_value(const char *)): ... this.
9947 (is_unlimited_literal): Change parameter type to pointer to
9948 pointer. Adjust and advance ARG pointer.
9949 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
9950 (parse_cli_var_enum): New, factored out from ...
9951 (do_set_command): ... this. Adjust.
9952 * cli/cli-setshow.h (parse_cli_boolean_value)
9953 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
9954 (parse_cli_var_enum): Declare.
9955 * cli/cli-utils.c: Include "cli/cli-option.h".
9956 (get_ulongest): New.
9957 * cli/cli-utils.h (get_ulongest): Declare.
9958 (check_for_argument): New overloads.
9959 * maint-test-options.c: New file.
9960
2c722807
PA
99612019-06-13 Pedro Alves <palves@redhat.com>
9962
9963 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
9964 parse a range if "-" is at the end of the string.
9965
dee7b4c8
PA
99662019-06-13 Pedro Alves <palves@redhat.com>
9967
9968 * cli/cli-setshow.c (parse_auto_binary_operation)
9969 (parse_cli_boolean_value): Don't allow "o".
9970
dca0f6c0
PA
99712019-06-13 Pedro Alves <palves@redhat.com>
9972
9973 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
9974 * NEWS: Mention maint test-settings KIND.
9975 * maint-test-settings.c: New file.
9976
597bf39d
PA
99772019-06-13 Pedro Alves <palves@redhat.com>
9978
9979 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
9980 completer.
9981 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
9982 "set" completers.
9983
48c410fb
PA
99842019-06-13 Pedro Alves <palves@redhat.com>
9985
9986 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
9987 after item.
9988
93bcb043
PA
99892019-06-13 Pedro Alves <palves@redhat.com>
9990
9991 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
9992
cbba3ecd
PA
99932019-06-13 Pedro Alves <palves@redhat.com>
9994
9995 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
9996 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
9997 call.
9998 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
9999 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
10000 calls.
10001 (check_for_argument): Skip spaces after argument.
10002
b9a3f842
PA
100032019-06-13 Pedro Alves <palves@redhat.com>
10004
10005 * thread.c (thread_apply_command): Adjust TID parsing.
10006 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
10007 detected before end of string.
10008 (tid_is_in_list): Error out if LIST is invalid.
10009
3844e605
PA
100102019-06-13 Pedro Alves <palves@redhat.com>
10011
10012 * completer.c (complete_line_internal_1): Rewind completion word
10013 point.
10014 (completion_tracker::advance_custom_word_point_by): Change
10015 parameter type to int.
10016 * completer.h (completion_tracker::advance_custom_word_point_by):
10017 Likewise.
10018
00b56dbe
PA
100192019-06-13 Pedro Alves <palves@redhat.com>
10020
10021 * completer.c (advance_to_completion_word): Handle delimiters.
10022
d106773e
PA
100232019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
10024
10025 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
10026
08f10e02
TT
100272019-06-11 Tom Tromey <tom@tromey.com>
10028
10029 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
10030 (xmalloc_failed): Move to alloc.c.
10031 * alloc.c: New file.
10032 * Makefile.in (COMMON_SFILES): Add alloc.c.
10033
1c7fe951
TT
100342019-06-11 Tom Tromey <tom@tromey.com>
10035
10036 * nat/linux-waitpid.c: Don't include server.h.
10037 (linux_debug): Remove.
10038 (my_waitpid): Update.
10039
89549d7f
TT
100402019-06-11 Tom Tromey <tromey@adacore.com>
10041
10042 * infcall.c (_initialize_infcall): Remove trailing newline from
10043 help.
10044 * user-regs.c (_initialize_user_regs): Remove trailing newline
10045 from help.
10046 * typeprint.c (_initialize_typeprint): Remove trailing newline
10047 from help.
10048 * reverse.c (_initialize_reverse): Remove trailing newlines from
10049 help.
10050 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
10051 from help.
10052 * language.c (add_set_language_command): Remove trailing newline
10053 from help.
10054 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
10055 help.
10056 * disasm.c (_initialize_disasm): Remove trailing newline from
10057 help.
10058 * top.c (init_main): Remove trailing newline from help.
10059 * interps.c (_initialize_interpreter): Remove trailing newline
10060 from help.
10061 * btrace.c (_initialize_btrace): Remove trailing newlines from
10062 help.
10063 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
10064 from help.
10065 * python/python.c (_initialize_python): Remove trailing newline
10066 from help.
10067 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
10068 help.
10069 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
10070 from help. Reformat some text.
10071 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
10072 from help.
10073 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
10074 newline from help.
10075
86108c13
TT
100762019-06-11 Tom Tromey <tromey@adacore.com>
10077
10078 * darwin-nat.c (darwin_decode_exception_message)
10079 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
10080
a7067863
AB
100812019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
10082
10083 * valops.c (value_slice): Check for not allocated or not
10084 associated values.
10085
9ab08412
TV
100862019-06-10 Tom de Vries <tdevries@suse.de>
10087
10088 PR gdb/24618
10089 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
10090 sure an empty slot (defined by a 32-bit zero pair) is recognized as
10091 invalid.
10092
f19e22e9
TV
100932019-06-10 Tom de Vries <tdevries@suse.de>
10094
10095 PR gdb/24611
10096 * linespec.c (linespec_lexer_lex_string): Remove incorrect
10097 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
10098
e99f9db0
TV
100992019-06-10 Tom de Vries <tdevries@suse.de>
10100
10101 PR symtab/24545
10102 * symtab.c (struct demangled_name_entry): Add language field.
10103 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
10104 static minimal symbol". Set and use language field.
10105
9bf7038b
TT
101062019-06-10 Tom Tromey <tromey@adacore.com>
10107
10108 * ada-lang.c (_initialize_ada_language): Update help text.
10109
422186a9
TT
101102019-06-10 Tom Tromey <tromey@adacore.com>
10111
10112 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
10113 with a newline.
10114 * guile/guile.c (handle_boot_error): Don't end warning with a
10115 newline.
10116 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
10117 warning with a newline.
10118 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
10119 newline.
10120 (s12z_frame_cache): Likewise.
10121 * dwarf-index-cache.c (index_cache::store): Don't end warning with
10122 a newline.
10123 * solib-svr4.c (disable_probes_interface): Don't end warning with
10124 a newline.
10125 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
10126 newline.
10127 * python/python.c (do_finish_initialization): Don't end warning
10128 with a newline.
10129
25ce02ee
TT
101302019-06-10 Tom Tromey <tom@tromey.com>
10131
10132 * python/py-breakpoint.c (gdbpy_breakpoint_created)
10133 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
10134 gdbpy_enter.
10135
caa429d8
TT
101362019-06-10 Tom Tromey <tromey@adacore.com>
10137
10138 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
10139 data.
10140 (elf_new_init): Don't call stabsread_new_init.
10141 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
10142 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
10143 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
10144
81873cc8
TV
101452019-06-10 Tom de Vries <tdevries@suse.de>
10146
10147 PR symtab/16264
10148 PR symtab/24517
10149 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
10150
4fa0265e
РИ
101512019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
10152
10153 * source.c (find_and_open_source): Also rewrite relative file
10154 names.
10155
1a3da2cd
AB
101562019-04-26 Amos Bird <amosbird@gmail.com>
10157
10158 * annotate.c (annotate_thread_exited): Add "thread-exited"
10159 annotation.
10160
3847a7bf
TT
101612019-06-06 Tom Tromey <tromey@adacore.com>
10162
10163 * maint.h (class scoped_command_stats): Use
10164 DISABLE_COPY_AND_ASSIGN.
10165 <print_time>: New method.
10166 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
10167 print_time.
10168 (scoped_command_stats::print_time): New method.
10169
312617a3
AB
101702019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
10171
10172 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
10173 instructions of lengths 6 or 8 bytes.
10174
b02f78f9
PA
101752019-06-04 Pedro Alves <palves@redhat.com>
10176
10177 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
10178
10179 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
10180 * breakpoint.c (condition_completer): Likewise.
10181 * cli/cli-dump.c (scan_expression): Likewise.
10182 * common/filestuff.c (mkdir_recursive): Likewise.
10183 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
10184 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
10185 (gdb_abspath): Likewise.
10186 * compile/compile-cplus-types.c
10187 (compile_cplus_instance::decl_name): Likewise.
10188 * completer.c (complete_explicit_location):
10189 (signal_completer, reg_or_group_completer_1): Likewise.
10190 * cp-support.c (cp_remove_params_if_any): Likewise.
10191 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
10192 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
10193 * infcmd.c (strip_bg_char): Likewise.
10194 * linespec.c (copy_token_string): Likewise.
10195 * mi/mi-main.c (output_cores): Likewise.
10196 * psymtab.c (psymtab_search_name):
10197 * symfile.c (test_set_ext_lang_command): Likewise.
10198 * target.c (target_fileio_read_stralloc): Likewise.
10199 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
10200 * value.c (complete_internalvar): Likewise.
10201
e1f2e1a2
CB
102022019-06-04 Christian Biesinger <cbiesinger@google.com>
10203
10204 Add objfile property to gdb.Type.
d3238f7d
PA
10205 * NEWS: Mention Python API addition.
10206 * python/py-type.c (typy_get_objfile): New method.
e1f2e1a2 10207
e664d728
PW
102082019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10209
10210 * NEWS: Mention the new set|show style [title|highlight].
10211 Mention changes to "show style", "help" and "apropos".
10212
66d8c862
PW
102132019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10214
10215 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
10216 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
10217 instead of print_help_for_command.
10218 (print_doc_of_command): New function.
10219 (help_list): Add 'apropos -v word' suggestion.
10220 (print_help_for_command): Style the command name using title style.
10221 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
10222 (_initialize_cli_cmds): Describe -v in apropos_command help.
10223
9303eb2f
PW
102242019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10225
10226 * cli/cli-style.h (cli_style_option): Add name in constructor,
10227 add m_name class member, add constructor with intensity,
10228 add name class function.
10229 (cli_style_option::add_setshow_commands): Remove name argument.
10230 (highlight_style, title_style): New styles.
10231 * cli/cli-style.c (do_show): New function that shows a style
10232 characteristic styling the style name with itself.
10233 (set_style_name): New function.
10234 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
10235 Update all callers according to the changes in cli/cli-style.h.
10236 * utils.h (fputs_highlighted): New function.
10237 * utils.c (fputs_highlighted): Likewise.
10238
e2c52041
PW
102392019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10240
10241 * NEWS: Mention new pipe command and new convenience variables.
10242
947d3946
PW
102432019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10244
10245 * cli/cli-cmds.c (pipe_command): New function.
10246 (_initialize_cli_cmds): Call add_com for pipe_command.
10247 Define | as an alias for pipe.
10248 (exit_status_set_internal_vars): New function.
10249 (shell_escape): Call exit_status_set_internal_vars.
10250 cli/cli-decode.c (find_command_name_length): Recognize | as
10251 a single character command.
10252
b8fd0918
PW
102532019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10254
10255 * gdbcmd.h (execute_command_to_ui_file): New declaration.
10256 top.c (execute_command_to_ui_file): New function, mostly a copy
10257 of execute_command_to_string.
10258 (execute_command_to_string): Implement by calling
10259 execute_command_to_ui_file.
10260
68bb5386
PW
102612019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10262
10263 * top.h (saved_command_line): Remove declaration.
10264 * top.c (previous_saved_command_line, previous_repeat_arguments):
10265 New variables.
10266 (saved_command_line): Make static, define together with other
10267 'repeat variables'.
10268 (dont_repeat): Clear repeat_arguments.
10269 (repeat_previous, get_saved_command_line, save_command_line):
10270 New functions.
10271 (gdb_init): Initialize saved_command_line
10272 and previous_saved_command_line.
10273 * main.c (captured_main_1): Remove saved_command_line initialization.
10274 * event-top.c (handle_line_of_input): Update to use
10275 the new 'repeat' related functions instead of direct access to
10276 saved_command_line.
10277 * command.h (repeat_previous, get_saved_command_line,
10278 save_command_line): New declarations.
10279 (dont_repeat): Add comment.
10280
bfcdb852
TT
102812019-05-30 Tom Tromey <tromey@adacore.com>
10282
10283 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
10284 Fix comment.
10285 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
10286
0ef209f2
JV
102872019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
10288
10289 PR cli/24587
10290 * completer.c (complete): Initialize variable word.
10291
955b06fa
SDJ
102922019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
10293
10294 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
10295 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
10296 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
10297 'body' is NULL to the outter 'if', protecting the '!is_define'
10298 situation as well.
10299
fa9c3fa0
TT
103002019-05-29 Tom Tromey <tromey@adacore.com>
10301
10302 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
10303 (dwarf_unknown): New function.
10304 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
10305 (dwarf_type_encoding_name): Use dwarf_unknown.
10306
4330d61d
TT
103072019-05-29 Tom Tromey <tromey@adacore.com>
10308
10309 PR c++/20020:
10310 * cp-valprint.c (cp_print_value_fields): Call
10311 cp_print_static_field inside "try".
10312
33a6bc35
TT
103132019-05-29 Tom Tromey <tromey@adacore.com>
10314
10315 * inflow.c (struct terminal_info): Add default operator=.
10316 * configure: Rebuild.
10317 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
10318 -Wdeprecated-copy-dtor, -Wredundant-move.
10319
000439d5
TT
103202019-05-29 Tom Tromey <tromey@adacore.com>
10321
10322 * NEWS: Add entry.
10323 * infcmd.c (print_return_value_1): Handle finish_print
10324 option.
10325 (show_print_finish): New function.
10326 (_initialize_infcmd): Add "set/show print finish" commands.
10327 * valprint.c (user_print_options): Initialize new member.
10328 * valprint.h (struct value_print_options) <finish_print>: New
10329 member.
10330
c0e70c62
TT
103312019-05-28 Tom Tromey <tromey@adacore.com>
10332
10333 * ada-lang.c (ada_remove_Xbn_suffix)
10334 (find_old_style_renaming_symbol)
10335 (parse_old_style_renaming): Remove.
10336 (ada_find_renaming_symbol): Don't call
10337 find_old_style_renaming_symbol.
10338 (ada_is_renaming_symbol): Rename from
10339 ada_find_renaming_symbol. Remove "block" parameter. Return
10340 bool. Now static.
10341 (ada_read_var_value): Update and simplify.
10342 * ada-exp.y (write_var_or_type): Remove old code.
10343
766f8836
AH
103442019-05-28 Alan Hayward <alan.hayward@arm.com>
10345
68255adc 10346 PR gdb/25010
766f8836
AH
10347 * event-top.c: Remove include comment.
10348 * inflow.c (class scoped_ignore_sigttou): Move from here...
10349 * inflow.h (class scoped_ignore_sigttou): ...to here.
10350 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
10351 * top.c: Remove include comment.
10352
eb41253a
TT
103532019-05-27 Tom Tromey <tom@tromey.com>
10354
10355 * NEWS: Fix typo.
10356
4ca51187
TT
103572019-05-22 Tom Tromey <tromey@adacore.com>
10358
10359 * target.c (target_follow_exec): Constify parameter.
10360 * target-delegates.c: Rebuild.
10361 * remote.c (remote_target::follow_exec): Constify parameter.
10362 * infrun.c (follow_exec): Constify parameter.
10363 * target.h (struct target_ops) <follow_exec>: Constify parameter.
10364 (target_follow_exec): Likewise.
10365
8fca4da0
AH
103662019-05-22 Alan Hayward <alan.hayward@arm.com>
10367
10368 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
10369 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
10370
b7060614
AH
103712019-05-22 Alan Hayward <alan.hayward@arm.com>
10372
10373 * NEWS: Add debugredirect and testsuite sections.
10374
0a5954bd
SC
103752019-05-22 Simon Cook <simon.cook@embecosm.com>
10376
10377 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
10378 target descriptions using exclusively floating point register name
10379 aliases.
10380
dc42e902
AB
103812019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
10382
10383 PR gdb/18644:
10384 * f-lang.c (build_fortran_types): Handle the case where
10385 gdbarch_floatformat_for_type returns a nullptr.
10386
fb7806c7
TV
103872019-05-21 Tom de Vries <tdevries@suse.de>
10388
10389 PR cli/24587
10390 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
10391
34d11c68
AB
103922019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
10393
10394 PR gdb/18644:
10395 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
10396 16-byte floats.
10397 * i386-tdep.c (i386_floatformat_for_type): Use
10398 floatformats_ia64_quad for the 16-byte floating point component
10399 within a fortran 32-byte complex number.
10400
122cf0f2
AB
104012019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
10402
10403 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
10404 delete default constructor.
10405 (find_partial_die): Update to return const struct.
10406 (partial_die_parent_scope): Move variable declaration into scope
10407 of its use and change its type to auto.
10408 (guess_partial_die_structure_name): Likewise.
10409 (partial_die_info::fixup): Likewise.
10410
33d0e35a
TT
104112019-05-17 Tom Tromey <tromey@adacore.com>
10412
10413 * source.c (find_and_open_source): Remove cast.
10414
a45575b0
TT
104152019-05-17 Tom Tromey <tromey@adacore.com>
10416
10417 * annotate.c (annotate_source): Make "filename" const.
10418 * annotate.h (annotate_source): Use const.
10419
81f47ac2
AH
104202019-05-17 Alan Hayward <alan.hayward@arm.com>
10421
10422 * disasm.c (set_disassembler_options): Send errors to stderr.
10423
ca1285d1
AH
104242019-05-17 Alan Hayward <alan.hayward@arm.com>
10425
10426 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
10427 (cli_interp_base::set_logging): Check debug_redirect.
10428 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
10429 * cli/cli-logging.c (debug_redirect): Add static variable.
10430 (pop_output_files): Add default param.
10431 (handle_redirections): Print debug setting.
10432 (show_logging_command): Likewise.
10433 (_initialize_cli_logging): Add debugredirect command.
10434 * interps.c (current_interp_set_logging): Add debug_redirect
10435 parameter.
10436 * interps.h (set_logging): Add debug_redirect parameter.
10437 (current_interp_set_logging): Likewise.
10438 * mi/mi-common.h: Likewise.
10439 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
10440
104412019-05-17 Alan Hayward <alan.hayward@arm.com>
f3a09c80
AH
10442 Tom Tromey <tromey@adacore.com>
10443
10444 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
10445 directly.
10446 * cli/cli-interp.h (make_logging_output): Remove declaration.
10447 * cli/cli-logging.c (make_logging_output): Remove function.
10448 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
10449 directly.
10450 * ui-file.c (tee_file::tee_file): Remove bools.
10451 (tee_file::~tee_file): Remove deletes.
10452 * ui-file.h (tee_file): Remove bools.
10453
26648588
JV
104542019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
10455
10456 * mi/mi-cmds.h (mi_cmd_complete): New function.
10457 * mi/mi-main.c (mi_cmd_complete): Likewise.
10458 * mi/mi-cmds.c: Define new MI command -complete.
10459 * NEWS: Mention new -complete command.
10460
6e035501
JV
104612019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
10462
10463 * completer.h (complete): New function.
10464 * completer.c (complete): Likewise.
10465 * cli/cli-cmds.c: (complete_command): Update to use new complete()
10466 function defined in completer.h.
10467
7d0e2ece
JV
104682019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
10469
e79be6e5 10470 * MAINTAINERS (Write After Approval): Add myself.
7d0e2ece 10471
fb816e8b
TV
104722019-05-17 Tom de Vries <tdevries@suse.de>
10473
10474 PR gdb/24094
10475 * dwarf2read.c (struct cu_partial_die_info): New struct.
10476 (find_partial_die): Return cu_partial_die_info.
10477 (partial_die_parent_scope, guess_partial_die_structure_name)
10478 (partial_die_info::fixup): Handle new return type of find_partial_die.
10479
677052f2
SDJ
104802019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
10481
a1726c38 10482 PR breakpoints/24541
677052f2
SDJ
10483 * stap-probe.c (stap_parse_register_operand): Make "regname" an
10484 "std::string", simplifying the algorithm.
10485
f3da9116
SDJ
104862019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
10487
10488 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
10489 (stap_static_probe_ops::get_probes): Likewise.
10490
f1bb75ab
SDJ
104912019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
10492
10493 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
10494 '-')" and "else if".
10495 (stap_parse_single_operand): Join checks for
10496 "gdbarch_stap_parse_special_token_p" and
10497 "gdbarch_stap_parse_special_token" in the same "if" statement.
10498 Invert check when verifying for operation on register
10499 displacement.
10500
3ca58cde
SDJ
105012019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
10502
10503 * stap-probe.c (stap_get_opcode): Update comment.
10504 (stap_get_expected_argument_type): Likewise.
10505 (handle_stap_probe): Likewise.
10506
af2d9bee
SDJ
105072019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
10508
10509 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
10510 return type to 'bool'. Adjust comment. Use 'bool' when
10511 appropriate.
10512 (i386_stap_parse_special_token_three_arg_disp): Likewise.
10513 * stap-probe.c (stap_parse_argument_1): Likewise.
10514 (stap_is_operator): Likewise.
10515 (stap_is_generic_prefix): Likewise.
10516 (stap_is_register_prefix): Likewise.
10517 (stap_is_register_indirection_prefix): Likewise.
10518 (stap_is_integer_prefix): Likewise.
10519 (stap_generic_check_suffix): Likewise.
10520 (stap_check_integer_suffix): Likewise.
10521 (stap_check_register_suffix): Likewise.
10522 (stap_check_register_indirection_suffix): Likewise.
10523 (stap_parse_register_operand): Likewise.
10524 (stap_parse_single_operand): Likewise.
10525 (stap_parse_argument_1): Likewise.
10526 (stap_probe::get_argument_count): Likewise.
10527 (stap_is_operator): Likewise.
10528
61c9c421
TT
105292019-05-16 Tom Tromey <tromey@adacore.com>
10530
10531 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
10532 keyword to foreach.
10533
9ddc1af1
SM
105342019-05-15 Simon Marchi <simon.marchi@efficios.com>
10535
10536 * linux-thread-db.c (try_thread_db_load_1): Change return type
10537 to bool.
10538 (try_thread_db_load): Likewise.
10539 (try_thread_db_load_from_pdir_1): Likewise.
10540 (try_thread_db_load_from_pdir): Likewise.
10541 (try_thread_db_load_from_sdir): Likewise.
10542 (try_thread_db_load_from_dir): Likewise.
10543 (thread_db_load_search): Likewise.
10544 (has_libpthread): Likewise.
10545 (thread_db_load): Likewise.
10546
7bede828
SDJ
105472019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
10548
10549 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
10550 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
10551 NULL, and complain/return if that's the case.
10552
c5358db4
JD
105532019-05-15 John Darrington <john@darrington.wattle.id.au>
10554
10555 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
10556 (advance, posn, abstract_read_memory): New functions.
10557 [struct mem_read_abstraction]: New struct.
10558 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
10559
c408a94f
TT
105602019-05-14 Tom Tromey <tromey@adacore.com>
10561
10562 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
10563 value is not lval_memory.
10564
e7bd7fba
TT
105652019-05-14 Tom Tromey <tromey@adacore.com>
10566
10567 * solib.c (info_sharedlibrary_command): Style the file name.
10568
a6d0f249
AH
105692019-05-14 Alan Hayward <alan.hayward@arm.com>
10570
10571 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
10572 (aarch64_vnv_type): Likewise.
10573 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
10574 * common/tdesc.c: Likewise.
10575 * common/tdesc.h (enum tdesc_type_kind): Likewise.
10576 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
10577 * features/aarch64-fpu.xml: Add ieee half view.
10578 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
10579 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
10580 * gdbtypes.h (struct builtin_type): Likewise.
10581 (struct objfile_type): Likewise.
10582
66b8bb74
SM
105832019-05-12 Paul Naert <paul.naert@polymtl.ca>
10584
10585 * language.c (language_sniff_from_mangled_name): Fix "langauge"
10586 typo.
10587 * location.h (string_to_event_location): Likewise.
10588
21c219fd
JB
105892019-05-11 Joel Brobecker <brobecker@adacore.com>
10590
10591 GDB 8.3 released.
10592
13674803
SM
105932019-05-10 Simon Marchi <simon.marchi@efficios.com>
10594
10595 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
10596 New variable declaration.
10597 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
10598 New variable.
10599 (print_one_breakpoint): Use ui_out::test_flags and new global
10600 variable to compute use_fixed_output.
10601 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
10602 Remove.
10603 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
10604 (mi_multi_location_breakpoint_output_fixed): Remove.
10605 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
10606 new variable.
10607 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
10608 fix_multi_location_breakpoint_output flag if version >= 3.
10609 * ui-out.h (enum ui_out_flag)
10610 <fix_multi_location_breakpoint_output>: New enumerator.
10611
a9eac7f9
SM
106122019-05-10 Simon Marchi <simon.marchi@efficios.com>
10613
10614 * contrib/cc-with-tweaks.sh: Validate dwz's work.
10615
71bed2db
TT
106162019-05-10 Tom Tromey <tromey@adacore.com>
10617
10618 * ada-lang.c (catch_ada_completer): New function.
10619 (_initialize_ada_language): Use it.
10620
24c54127
TT
106212019-05-10 Tom Tromey <tromey@adacore.com>
10622
10623 * thread.c (print_thread_info): Make "requested_threads" const.
10624 * gdbthread.h (print_thread_info): Make "requested_threads"
10625 const.
10626 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
10627 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
10628
7a102139
TT
106292019-05-08 Tom Tromey <tom@tromey.com>
10630
10631 * gdbtypes.c (objfile_type_data): Change type.
10632 (objfile_type, _initialize_gdbtypes): Update.
10633
924d79e2
TT
106342019-05-08 Tom Tromey <tom@tromey.com>
10635
10636 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
10637 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
10638 (_initialize_dwarf2_frame): Update.
10639
4c58e337
TT
106402019-05-08 Tom Tromey <tom@tromey.com>
10641
10642 * objc-lang.c (objc_objfile_data): Change type.
10643 (find_methods): Update.
10644 (_initialize_objc_lang): Remove.
10645
d772d2ab
TT
106462019-05-08 Tom Tromey <tom@tromey.com>
10647
10648 * stabsread.c (rs6000_builtin_type_data): Change type.
10649 (rs6000_builtin_type, _initialize_stabsread): Update.
10650
d11d83f4
TT
106512019-05-08 Tom Tromey <tom@tromey.com>
10652
10653 * mips-tdep.c (mips_pdr_data): Remove.
10654 (_initialize_mips_tdep): Update.
10655
9a73f0ad
TT
106562019-05-08 Tom Tromey <tom@tromey.com>
10657
10658 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
10659 (hppa_init_objfile_priv_data, read_unwind_info)
10660 (find_unwind_entry, _initialize_hppa_tdep): Update.
10661
8127a2fa
TT
106622019-05-08 Tom Tromey <tom@tromey.com>
10663
10664 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
10665 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
10666 on obstack.
10667 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
10668
91d3055d
TT
106692019-05-08 Tom Tromey <tom@tromey.com>
10670
10671 * mdebugread.c (basic_type_data): Change type.
10672 (basic_type, _initialize_mdebugread): Update.
10673
31930bd3
TT
106742019-05-08 Tom Tromey <tom@tromey.com>
10675
10676 * common/gdb_unique_ptr.h (struct noop_deleter): New.
10677
bdb3ed9e
TT
106782019-05-08 Tom Tromey <tom@tromey.com>
10679
10680 * nto-tdep.c (nto_inferior_data_reg): Change type.
10681 (nto_inferior_data): Update.
10682 (nto_inferior_data_cleanup, nto_new_inferior_data)
10683 (_initialize_nto_tdep): Remove.
10684 * nto-tdep.h (struct nto_inferior_data): Add initializers.
10685
f37b313d
TT
106862019-05-08 Tom Tromey <tom@tromey.com>
10687
10688 * ada-lang.c (struct ada_inferior_data): Add initializers.
10689 (ada_inferior_data): Change type.
10690 (ada_inferior_data_cleanup): Remove.
10691 (get_ada_inferior_data, ada_inferior_exit)
10692 (struct ada_pspace_data): Add initializers, destructor.
10693 (ada_pspace_data_handle): Change type.
10694 (get_ada_pspace_data): Update.
10695 (ada_pspace_data_cleanup): Remove.
10696
24699405
TT
106972019-05-08 Tom Tromey <tom@tromey.com>
10698
10699 * coffread.c (struct coff_symfile_info): Add initializers.
10700 (coff_objfile_data_key): Move lower. Change type.
10701 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
10702 Update.
10703 (coff_free_info): Remove.
10704
d4e05d2f
TT
107052019-05-08 Tom Tromey <tom@tromey.com>
10706
10707 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
10708 (fbsd_pspace_data_handle): Move lower. Change type.
10709 (get_fbsd_pspace_data): Update.
10710 (fbsd_pspace_data_cleanup): Remove.
10711 (_initialize_fbsd_tdep): Update.
10712
14ef6690
TT
107132019-05-08 Tom Tromey <tom@tromey.com>
10714
10715 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
10716 (get_ada_tasks_pspace_data): Update.
10717 (ada_tasks_pspace_data_cleanup): Remove.
10718 (_initialize_tasks): Update.
10719 (ada_tasks_inferior_data_handle): Change type.
10720 (get_ada_tasks_inferior_data): Update.
10721 (ada_tasks_inferior_data_cleanup): Remove.
10722 (struct ada_tasks_pspace_data): Add initializers.
10723
814cf43a
TT
107242019-05-08 Tom Tromey <tom@tromey.com>
10725
10726 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
10727 * symfile-debug.c (debug_sym_get_probes): Change type.
10728 * stap-probe.c (handle_stap_probe):
10729 (stap_static_probe_ops::get_probes): Change type.
10730 * probe.h (class static_probe_ops) <get_probes>: Change type.
10731 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
10732 (parse_probes_in_pspace): Update.
10733 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
10734 Update.
10735 (any_static_probe_ops::get_probes): Change type.
10736 * elfread.c (elfread_data): New typedef.
10737 (probe_key): Change type.
10738 (elf_get_probes): Likewise. Update.
10739 (probe_key_free): Remove.
10740 (_initialize_elfread): Update.
10741 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
10742 Change type.
10743 (dtrace_process_dof_probe, dtrace_process_dof)
10744 (dtrace_static_probe_ops::get_probe): Change type.
10745
02dc647e
TT
107462019-05-08 Tom Tromey <tom@tromey.com>
10747
10748 * xcoffread.c (struct xcoff_symfile_info): Rename from
10749 coff_symfile_info. Add initializers.
10750 (xcoff_objfile_data_key): Move lower. Change type.
10751 (XCOFF_DATA): Rewrite.
10752 (xcoff_free_info): Remove.
10753 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
10754 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
10755 (xcoff_initial_scan): Update.
10756
09232438
TT
107572019-05-08 Tom Tromey <tom@tromey.com>
10758
10759 * solib-svr4.c (struct svr4_info): Add initializers and
10760 destructor.
10761 <probes_table>: Now an htab_up.
10762 (solib_svr4_pspace_data): Change type.
10763 (free_probes_table): Simplify.
10764 (~svr4_info): Rename from svr4_pspace_data_cleanup.
10765 (get_svr4_info, probes_table_htab_remove_objfile_probes)
10766 (probes_table_remove_objfile_probes, register_solib_event_probe)
10767 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
10768 (_initialize_svr4_solib): Update.
10769
7b4a314f
TT
107702019-05-08 Tom Tromey <tom@tromey.com>
10771
10772 * remote.c (remote_pspace_data): Change type.
10773 (remote_pspace_data_cleanup): Remove.
10774 (get_remote_exec_file, set_pspace_remote_exec_file)
10775 (_initialize_remote): Update.
10776
51d3063a
TT
107772019-05-08 Tom Tromey <tom@tromey.com>
10778
10779 * breakpoint.c (breakpoint_objfile_key): Change type.
10780 (get_breakpoint_objfile_data): Update.
10781 (free_breakpoint_objfile_data): Remove.
10782 (_initialize_breakpoint): Update.
10783
89fb8848
TT
107842019-05-08 Tom Tromey <tom@tromey.com>
10785
10786 * linux-tdep.c (struct linux_info): Add initializers.
10787 (linux_inferior_data): Move. Change type.
10788 (invalidate_linux_cache_inf): Update.
10789 (linux_inferior_data_cleanup): Remove.
10790 (get_linux_inferior_data, _initialize_linux_tdep): Update.
10791
e9b89e2d
TT
107922019-05-08 Tom Tromey <tom@tromey.com>
10793
10794 * auxv.c (auxv_inferior_data): Move. Change type.
10795 (auxv_inferior_data_cleanup): Remove.
10796 (invalidate_auxv_cache_inf): Rewrite.
10797 (get_auxv_inferior_data, _initialize_auxv): Update.
10798
8c42777c
TT
107992019-05-08 Tom Tromey <tom@tromey.com>
10800
10801 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
10802 (symfile_debug_objfile_data_key): Change type.
10803 (symfile_debug_installed, debug_qf_has_symbols)
10804 (debug_qf_find_last_source_symtab)
10805 (debug_qf_forget_cached_source_info)
10806 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
10807 (debug_qf_print_stats, debug_qf_dump)
10808 (debug_qf_expand_symtabs_for_function)
10809 (debug_qf_expand_all_symtabs)
10810 (debug_qf_expand_symtabs_with_fullname)
10811 (debug_qf_map_matching_symbols)
10812 (debug_qf_expand_symtabs_matching)
10813 (debug_qf_find_pc_sect_compunit_symtab)
10814 (debug_qf_map_symbol_filenames)
10815 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
10816 (debug_sym_new_init, debug_sym_init, debug_sym_read)
10817 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
10818 (debug_sym_read_linetable, debug_sym_relocate): Update.
10819 (symfile_debug_free_objfile): Remove.
10820 (install_symfile_debug_logging, _initialize_symfile_debug):
10821 Update.
10822
5bfd760d
TT
108232019-05-08 Tom Tromey <tom@tromey.com>
10824
10825 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
10826 allocate_on_obstack.
10827 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
10828 (get_dwarf2_per_objfile): Update.
10829 (set_dwarf2_per_objfile): Remove.
10830 (dwarf2_has_info, dwarf2_get_section_info): Update.
10831 (dwarf2_free_objfile): Remove.
10832 (_initialize_dwarf2_read): Update.
10833
e85e19b4
TT
108342019-05-08 Tom Tromey <tom@tromey.com>
10835
10836 * auto-load.c (struct auto_load_pspace_info): Add destructor and
10837 initializers.
10838 <unsupported_script_warning_printed,
10839 script_not_found_warning_printed>: Now bool.
10840 (auto_load_pspace_data): Change type.
10841 (~auto_load_pspace_info): Rename from
10842 auto_load_pspace_data_cleanup.
10843 (get_auto_load_pspace_data, init_loaded_scripts_info)
10844 (clear_section_scripts, maybe_print_unsupported_script_warning)
10845 (maybe_print_script_not_found_warning, _initialize_auto_load):
10846 Update.
10847
f6aa7436
TT
108482019-05-08 Tom Tromey <tom@tromey.com>
10849
10850 * objfiles.c (objfile_pspace_info): Add destructor and
10851 initializers.
10852 (objfiles_pspace_data): Change type.
10853 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
10854 (get_objfile_pspace_data): Update.
10855 (objfiles_bfd_data): Change type.
10856 (get_objfile_bfd_data): Update.
10857 (objfile_bfd_data_free, _initialize_objfiles): Remove.
10858
6ae614f6
TT
108592019-05-08 Tom Tromey <tom@tromey.com>
10860
10861 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
10862 Change type.
10863 (get_catch_syscall_inferior_data): Update.
10864 (catch_syscall_inferior_data_cleanup): Remove.
10865 (_initialize_break_catch_syscall): Update.
10866
6509b8eb
TT
108672019-05-08 Tom Tromey <tom@tromey.com>
10868
10869 * inflow.c (struct terminal_info): Add destructor and
10870 initializers.
10871 (inflow_inferior_data): Change type.
10872 (~terminal_info): Rename from inflow_inferior_data_cleanup.
10873 (get_inflow_inferior_data, inflow_inferior_exit)
10874 (swap_terminal_info, _initialize_inflow): Update.
10875
35632941
TT
108762019-05-08 Tom Tromey <tom@tromey.com>
10877
10878 * target-dcache.c (target_dcache_cleanup): Remove.
10879 (target_dcache_aspace_key): Change type.
10880 (target_dcache_init_p, target_dcache_invalidate)
10881 (target_dcache_get, target_dcache_get_or_init)
10882 (_initialize_target_dcache): Update.
10883 * dcache.h (struct dcache_deleter): New.
10884
3017b94d
TT
108852019-05-08 Tom Tromey <tom@tromey.com>
10886
10887 * symtab.c (struct symbol_cache): Add destructor and
10888 initializers.
10889 (symbol_cache_key): Move. Change type.
10890 (make_symbol_cache, free_symbol_cache): Remove.
10891 (get_symbol_cache): Update.
10892 (symbol_cache_cleanup): Remove.
10893 (ALL_PSPACES, symbol_cache_flush)
10894 (maintenance_print_symbol_cache)
10895 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
10896 Update.
10897
a32ad8c5
TT
108982019-05-08 Tom Tromey <tom@tromey.com>
10899
10900 * symtab.c (struct main_info): Add destructor and initializers.
10901 (main_progspace_key): Move. Change type.
10902 (get_main_info): Update.
10903 (main_info_cleanup): Remove.
10904 (_initialize_symtab): Update.
10905
5f6e90a0
TT
109062019-05-08 Tom Tromey <tom@tromey.com>
10907
10908 * registry.h (DECLARE_REGISTRY): Define the _key class.
10909
1bd0c6e4
AB
109102019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
10911
10912 * NEWS: Merge two 'New commands' sections.
10913
2228ef77
XR
109142019-05-08 Joel Brobecker <brobecker@adacore.com>
10915
10916 * ada-valprint.c (ada_val_print_gnat_array): Remove language
10917 parameter and use Ada language definition instead.
10918 (ada_val_print_ptr): Remove unused language parameter.
10919 (ada_val_print_num): Remove language parameter and use Ada language
10920 definition instead.
10921 (ada_val_print_enum, ada_val_print_flt): Remove unused language
10922 parameter.
10923 (ada_val_print_struct_union, ada_val_print_ref): Remove language
10924 parameter and use Ada language definition instead.
10925 (ada_val_print_1): Update all ada_val_print_xxx calls.
10926 Remove language parameter.
10927 (ada_val_print): Update ada_val_print_1 call.
10928
60fcc1c3
TT
109292019-05-08 Tom Tromey <tromey@adacore.com>
10930
10931 * remote.c (remote_hw_watchpoint_limit)
10932 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
10933 Now static.
10934
ed2b7c17
TT
109352019-05-08 Tom Tromey <tromey@adacore.com>
10936
10937 * maint.c (_initialize_maint_cmds): Move initialization code to
10938 remote.c.
10939 (watchdog, show_watchdog): Move to remote.c.
10940 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
10941 "watchdog" static.
10942 (_initialize_remote): Move initialization code from maint.c.
10943 * defs.h (watchdog): Don't declare.
10944
b0be6c91
TT
109452019-05-08 Tom Tromey <tromey@adacore.com>
10946
10947 * tui/tui-interp.c: Include main.h.
10948 * interps.c: Include main.h.
10949 * main.h (interpreter_p): Declare.
10950 * defs.h (interpreter_p): Don't declare.
10951
587ee17b
TT
109522019-05-08 Tom Tromey <tromey@adacore.com>
10953
10954 * dwarf2loc.c: Include dwarf2read.h.
10955 * defs.h (read_unsigned_leb128): Don't declare.
10956 * dwarf2read.h (read_unsigned_leb128): Declare.
10957
ca1df239
TT
109582019-05-08 Tom Tromey <tromey@adacore.com>
10959
10960 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
10961 method.
10962
99f20f08
TT
109632019-05-08 Tom Tromey <tromey@adacore.com>
10964
10965 * utils.c (fputs_maybe_filtered): Reset style after paging, even
10966 when no wrap column is set.
10967
80e55b13
TT
109682019-05-08 Tom Tromey <tromey@adacore.com>
10969
10970 * c-lang.c (c_get_string): Handle non-C-style arrays.
10971
9d3421af
TT
109722019-05-08 Tom Tromey <tromey@adacore.com>
10973
10974 * typeprint.c (print_offset_data::update): Print the bit offset,
10975 not the number of bits remaining.
10976
844333e2
TT
109772019-05-08 Tom Tromey <tromey@adacore.com>
10978
10979 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
10980 padding at end of comment.
10981
988915ee
TT
109822019-05-08 Tom Tromey <tromey@adacore.com>
10983
10984 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
10985 Compare main types.
10986
26bfd823
TT
109872019-05-06 Tom Tromey <tom@tromey.com>
10988
10989 * common/scoped_mmap.c: Include common-defs.h.
10990 * common/scoped_mmap.h: Don't include config.h.
10991
89055eaa
TT
109922019-05-04 Tom Tromey <tom@tromey.com>
10993
10994 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
10995 (struct aarch64_call_info): Add initializers.
10996 <si>: Now a std::vector.
10997 (pass_on_stack, aarch64_push_dummy_call): Update.
10998
5da01df5
TT
109992019-05-04 Simon Marchi <simon.marchi@efficios.com>
11000 Tom Tromey <tom@tromey.com>
11001
11002 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
11003 (ppc_threads): Now a std::vector. Now static.
11004 (hwdebug_find_thread_points_by_tid)
11005 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
11006 Update.
11007
fbdf05a1
TT
110082019-05-04 Tom Tromey <tom@tromey.com>
11009
11010 * arc-tdep.c (arc_tdesc_init): Return bool.
11011
06d16ec9
TT
110122019-05-04 Tom Tromey <tom@tromey.com>
11013
11014 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
11015 Use gdb_assert_not_reached.
11016
9c056022
TT
110172019-05-04 Tom Tromey <tom@tromey.com>
11018
11019 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
11020 "false".
11021
fa9c2a59
TT
110222019-05-04 Tom Tromey <tom@tromey.com>
11023
11024 * arc-tdep.c (arc_tdesc_init): Use bool.
11025
e2eb806a
TT
110262019-05-04 Tom Tromey <tom@tromey.com>
11027
11028 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
11029
6fe87677
TT
110302019-05-04 Tom Tromey <tom@tromey.com>
11031
11032 * cli/cli-cmds.c (valid_command_p): Return bool.
11033
7f008c9e
TT
110342019-05-04 Tom Tromey <tom@tromey.com>
11035
11036 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
11037 * command.h (valid_user_defined_cmd_name_p): Channge return type.
11038
b6484282
RT
110392019-05-04 Raul Tambre <raul@tambre.ee>
11040
11041 * python/lib/gdb/prompt.py (_ExtendedPrompt)
11042 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
11043 operator for comparison.
11044
af97b416
TT
110452019-05-04 Tom Tromey <tom@tromey.com>
11046
11047 * psymtab.c (psymbol_name_matches, match_partial_symbol)
11048 (lookup_partial_symbol, print_partial_symbols)
11049 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
11050 (psymbol_compare): Update.
11051 (add_psymbol_to_bcache): Clear the entire psymbol.
11052 (maintenance_check_psymtabs): Update.
11053 * psympriv.h (struct partial_symbol): Don't derive from
11054 general_symbol_info.
11055 <obj_section, unrelocated_address, address,
11056 set_unrelocated_address>: Update.
11057 <ginfo>: New member.
11058 * dwarf-index-write.c (write_psymbols, debug_names::insert)
11059 (debug_names::write_psymbols): Update.
11060
9d6d4be8
TV
110612019-05-04 Tom de Vries <tdevries@suse.de>
11062
11063 * contrib/cc-with-tweaks.sh: Support -n arg.
11064
66452beb
PW
110652019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11066
11067 * corelow.c (core_target::detach): Ensure frame cache and
11068 register caches are cleared.
11069 inferior.c (exit_inferior_1): Likewise.
11070
bde09ab7
TT
110712019-05-03 Sandra Loosemore <sandra@codesourcery.com>
11072 Tom Tromey <tom@tromey.com>
11073
11074 * dictionary.c (collate_pending_symbols_by_language): Remove
11075 "struct" from foreach.
11076 * symtab.c (lookup_global_symbol_from_objfile)
11077 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
11078 foreach.
11079 * ser-tcp.c (net_open): Remove "struct" from foreach.
11080 * objfiles.c (objfile_relocate, objfile_rebase)
11081 (objfile_has_symbols): Remove "struct" from foreach.
11082 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
11083 from foreach.
11084 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
11085 foreach.
11086 * darwin-nat.c (thread_info_from_private_thread_info): Remove
11087 "struct" from foreach.
11088 * ada-lang.c (create_excep_cond_exprs)
11089 (ada_exception_catchpoint_cond_string): Remove "struct" from
11090 foreach.
11091
222a8d25
TT
110922019-05-03 Tom Tromey <tromey@adacore.com>
11093
11094 * ada-exp.y (convert_char_literal): Check suffix of each
11095 enumerator.
11096
fcd60b84
DP
110972019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
11098
11099 PR ada/21406:
11100 * ada-exp.y (yywrap): Don't define.
11101 * ada-lex.l (%option): Add noyywrap
11102 (yywrap): Remove.
11103
5f2459c2
EZ
111042019-05-03 Eli Zaretskii <eliz@gnu.org>
11105
353ea2d1
EZ
11106 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
11107 _WIN32_WINNT to the XP level, unless already defined to a higher
11108 level.
11109
11110 * unittests/parse-connection-spec-selftests.c:
11111 * ser-tcp.c:
11112 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
11113 override.
11114
5f2459c2
EZ
11115 * symfile.c (find_separate_debug_file): Remove colon from the
11116 drive spec of DOS/Windows file names of the target, so that the
11117 file name produced from DEBUGDIR and the target's directory will
11118 be valid on DOS/Windows systems.
11119
80062eb9
AB
111202019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
11121
11122 * rust-lang.c (val_print_struct): Handle printing structures
11123 containing strings.
11124
b8c05e85
TT
111252019-05-02 Tom Tromey <tromey@adacore.com>
11126
11127 * valarith.c (_initialize_valarith): Remove.
11128
4504bbde
TT
111292019-05-01 Tom Tromey <tromey@adacore.com>
11130
11131 * ada-lang.c (ada_value_primitive_field): Treat more fields as
11132 bitfields.
11133
d48e62f4
TT
111342019-05-01 Tom Tromey <tromey@adacore.com>
11135
11136 * ada-lang.c (ada_value_assign): Correctly compute starting offset
11137 for big-endian copies.
11138
15f18d14
AT
111392019-04-30 Ali Tamur <tamur@google.com>
11140 * gdb/dwarf2read.c (read_3_bytes): New declaration.
11141 (read_attribute_value): Added DW_FORM_strx1-4 cases.
11142 (read_3_bytes): New function.
11143
ab4ee614
JB
111442019-04-30 Joel Brobecker <brobecker@adacore.com>
11145
11146 * windows-nat.c (main_thread_id): Delete.
11147 (handle_output_debug_string): Replace main_thread_id by
11148 current_event.dwThreadId.
11149 (fake_create_process): Likewise.
11150 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
11151 Do not set main_thread_id.
11152 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
11153 current_event.dwThreadId.
11154 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
11155
8ed5b76e
JB
111562019-04-30 Joel Brobecker <brobecker@adacore.com>
11157
11158 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
11159 Use current_event.dwThreadId instead of main_thread_id.
11160
2ff0a947
TT
111612019-04-30 Tom Tromey <tromey@adacore.com>
11162
11163 * ada-lang.c (ada_lookup_simple_minsyms): New function.
11164 (create_excep_cond_exprs): Iterate over program spaces.
11165 (ada_exception_catchpoint_cond_string): Examine all minimal
11166 symbols for exception types.
11167
a776957c
TT
111682019-04-30 Tom Tromey <tromey@adacore.com>
11169
11170 PR c++/24470:
11171 * dwarf2read.c (process_structure_scope): Handle case where type
11172 has template parameters but no symbol was created.
11173
bc68014d
AB
111742019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
11175 Chris January <chris.january@arm.com>
11176
11177 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
11178 qualifier.
11179 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
11180
f1fdc960
AB
111812019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
11182
11183 * f-typeprint.c (f_print_type): Update rules for printing
11184 whitespace.
11185 (f_type_print_varspec_suffix): Likewise.
11186
bf7a4de1
AB
111872019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
11188 Chris January <chris.january@arm.com>
11189
11190 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
11191 function arguments.
11192
bbe75b9d
AB
111932019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
11194
11195 * f-lang.c (build_fortran_types): Change name of void type to
11196 lower case.
11197 * f-typeprint.c (f_type_print_base): Print the name of the void
11198 type, rather than a fixed string.
11199 * f-valprint.c (f_decorations): Use lower case void string.
11200
1db455a7
AB
112012019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
11202 Chris January <chris.january@arm.com>
11203
11204 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
11205 types for Fortran.
11206
b6d03bb2
AB
112072019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
11208 Chris January <chris.january@arm.com>
11209 David Lecomber <david.lecomber@arm.com>
11210
11211 * f-exp.y (BINOP_INTRINSIC): New token.
11212 (exp): New parser rule handling BINOP_INTRINSIC.
11213 (f77_keywords): Add new builtin procedures.
11214 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
11215 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
11216 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
11217 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
11218 (print_unop_subexp_f): New function.
11219 (print_binop_subexp_f): New function.
11220 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
11221 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
11222 (dump_subexp_body_f): Likewise.
11223 (operator_check_f): Likewise.
11224 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
11225 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
11226
83228e93
AB
112272019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
11228
11229 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
11230 UNOP_KIND.
11231 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
11232 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
11233 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
11234 (operator_length_f): New fuction.
11235 (print_subexp_f): New function.
11236 (op_name_f): New function.
11237 (dump_subexp_body_f): New function.
11238 (operator_check_f): New function.
11239 (exp_descriptor_f): Replace standard expression handling functions
11240 with new functions.
11241 * gdb/fortran-operator.def: New file.
11242 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
11243 * gdb/std-operator.def: Remove UNOP_KIND.
11244
6fdcd7cc
AB
112452019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
11246
11247 * std-operator.def: Remove unbalanced, stray double quote
11248 character.
11249
2e62ab40
AB
112502019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
11251 Chris January <chris.january@arm.com>
11252 Daniel Everett <daniel.everett@arm.com>
11253 Nick Forrington <nick.forrington@arm.com>
11254 Richard Bunt <richard.bunt@arm.com>
11255
11256 * cp-valprint.c (cp_print_value_fields): Allow an additional level
11257 of depth when printing anonymous structs or unions.
11258 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
11259 Don't print either the top-level value, or the children if the
11260 max-depth is exceeded.
11261 (ppscm_print_children): When printing the key of a map, allow one
11262 extra level of depth.
11263 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
11264 print either the top-level value, or the children if the max-depth
11265 is exceeded.
11266 (print_children): When printing the key of a map, allow one extra
11267 level of depth.
11268 * python/py-value.c (valpy_format_string): Add max_depth keyword.
11269 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
11270 (user_print_options): Initialise max_depth field.
11271 (val_print_scalar_or_string_type_p): New function.
11272 (val_print): Check to see if the max depth has been reached.
11273 (val_print_check_max_depth): Define new function.
11274 (show_print_max_depth): New function.
11275 (_initialize_valprint): Add 'print max-depth' option.
11276 * valprint.h (struct value_print_options) <max_depth>: New field.
11277 (val_print_check_max_depth): Declare new function.
11278 * NEWS: Document new feature.
11279
4be290b2
AB
112802019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
11281
11282 * ada-lang.c (ada_language_defn): Initialise new field.
11283 * c-lang.c (c_is_string_type_p): New function.
11284 (c_language_defn): Initialise new field.
11285 (cplus_language_defn): Initialise new field.
11286 (asm_language_defn): Initialise new field.
11287 (minimal_language_defn): Initialise new field.
11288 * c-lang.h (c_is_string_type_p): Declare new function.
11289 * d-lang.c (d_language_defn): Initialise new field.
11290 * f-lang.c (f_is_string_type_p): New function.
11291 (f_language_defn): Initialise new field.
11292 * go-lang.c (go_is_string_type_p): New function.
11293 (go_language_defn): Initialise new field.
11294 * language.c (default_is_string_type_p): New function.
11295 (unknown_language_defn): Initialise new field.
11296 (auto_language_defn): Initialise new field.
11297 * language.h (struct language_defn) <la_is_string_type_p>: New
11298 member variable.
11299 (default_is_string_type_p): Declare new function.
11300 * m2-lang.c (m2_language_defn): Initialise new field.
11301 * objc-lang.c (objc_language_defn): Initialise new field.
11302 * opencl-lang.c (opencl_language_defn): Initialise new field.
11303 * p-lang.c (pascal_is_string_type_p): New function.
11304 (pascal_language_defn): Initialise new field.
11305 * rust-lang.c (rust_is_string_type_p): New function.
11306 (rust_language_defn): Initialise new field.
11307
721b08c6
AB
113082019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
11309
11310 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
11311 New field.
11312 * ada-lang.c (ada_language_defn): Initialise new field.
11313 * c-lang.c (c_language_defn): Likewise.
11314 (cplus_language_defn): Likewise.
11315 (asm_language_defn): Likewise.
11316 (minimal_language_defn): Likewise.
11317 * d-lang.c (d_language_defn): Likewise.
11318 * f-lang.c (f_language_defn): Likewise.
11319 * go-lang.c (go_language_defn): Likewise.
11320 * language.c (unknown_language_defn): Likewise.
11321 (auto_language_defn): Likewise.
11322 * m2-lang.c (m2_language_defn): Likewise.
11323 * objc-lang.c (objc_language_defn): Likewise.
11324 * opencl-lang.c (opencl_language_defn): Likewise.
11325 * p-lang.c (pascal_language_defn): Likewise.
11326 * rust-lang.c (rust_language_defn): Likewise.
11327
fc913e53
AB
113282019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
11329
11330 * ada-lang.c (ada_is_character_type): Change return type to bool.
11331 (ada_is_string_type): Likewise.
11332 * ada-lang.h (ada_is_character_type): Update declaration
11333 (ada_is_string_type): Likewise.
11334
fa731fa0
PW
113352019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11336
11337 Support style in 'frame|thread apply'
11338
11339 * gdbcmd.h (execute_command_to_string): New term_out parameter.
11340 * record.c (record_start, record_stop): Update callers of
11341 execute_command_to_string with false.
11342 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
11343 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
11344 methods.
11345 (class string_file): New constructor with term_out parameter.
11346 Override methods term_out and can_emit_style_escape. New member
11347 term_out.
11348 (class stdio_file): Override can_emit_style_escape.
11349 (class tee_file): Override term_out and can_emit_style_escape.
11350 * utils.h (can_emit_style_escape): Remove.
11351 * utils.c (can_emit_style_escape): Likewise.
11352 Update all callers of can_emit_style_escape (SOMESTREAM) to
11353 SOMESTREAM->can_emit_style_escape.
11354 * source-cache.c (source_cache::get_source_lines): Likewise.
11355 * stack.c (frame_apply_command_count): Call execute_command_to_string
11356 passing the term_out characteristic of the current gdb_stdout.
11357 * thread.c (thr_try_catch_cmd): Likewise.
11358 * top.c (execute_command_to_string): pass term_out parameter
11359 to construct the string_file for the command output.
11360 * ui-file.c (term_cli_styling): New function (most code moved
11361 from utils.c can_emit_style_escape).
11362 (string_file::string_file, string_file::can_emit_style_escape,
11363 stdio_file::can_emit_style_escape, tee_file::term_out,
11364 tee_file::can_emit_style_escape): New functions.
11365
136afab8
PW
113662019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11367
11368 * NEWS: Mention the new set|show may-call-functions.
11369 * infcall.c (may_call_functions_p): New variable.
11370 (show_may_call_functions_p): New function.
11371 (call_function_by_hand_dummy): Throws an error if not
11372 may-call-functions.
11373 (_initialize_infcall): Call add_setshow_boolean_cmd for
11374 may-call-functions.
11375
725cbb63
KS
113762019-04-25 Keith Seitz <keiths@redhat.com>
11377
11378 PR c++/24367
11379 * cp-support.c (inspect_type): Don't attempt substitutions
11380 of symbol with the same name.
11381
3d1cbb78
TT
113822019-04-25 Tom Tromey <tromey@adacore.com>
11383
11384 PR gdb/24475:
11385 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
11386 static.
11387
94aeb44b
TT
113882019-04-25 Tom Tromey <tromey@adacore.com>
11389
11390 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
11391 rvalue reference.
11392 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
11393 (gdb_xml_parser::parse): Use std::move.
11394 * python/python-internal.h (gdbpy_convert_exception): Take a const
11395 reference.
11396 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
11397 std::move.
11398 * python/py-utils.c (gdbpy_convert_exception): Take a const
11399 reference.
11400 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
11401 Use std::move.
11402 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
11403 Use std::move.
11404 * mi/mi-main.c (mi_print_exception): Take a const reference.
11405 * main.c (handle_command_errors): Take a const reference.
11406 * linespec.c (parse_linespec): Use std::move.
11407 * infcall.c (run_inferior_call): Use std::move.
11408 (call_function_by_hand_dummy): Use std::move.
11409 * exec.c (try_open_exec_file): Use std::move.
11410 * exceptions.h (exception_print, exception_fprintf)
11411 (exception_print_same): Update.
11412 * exceptions.c (print_exception, exception_print)
11413 (exception_fprintf, exception_print_same): Change parameters to
11414 const reference.
11415 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
11416 * common/new-op.c: Use std::move.
11417 * common/common-exceptions.h (struct gdb_exception): Add move
11418 constructor.
11419 (struct gdb_exception_error, struct gdb_exception_quit, struct
11420 gdb_quit_bad_alloc): Change constructor to move constructor.
11421 (throw_exception): Change parameter to rvalue reference.
11422 * common/common-exceptions.c (throw_exception): Take rvalue
11423 reference.
11424 * cli/cli-interp.c (safe_execute_command): Use std::move.
11425 * breakpoint.c (insert_bp_location, location_to_sals): Use
11426 std::move.
11427
680d7fd5
TT
114282019-04-25 Tom Tromey <tromey@adacore.com>
11429
11430 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
11431 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
11432 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
11433 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
11434 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
11435 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
11436 guile/scm-value.c: Use unpack.
11437 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
11438 gdbscm_gdb_exception.
11439 (gdbscm_throw_gdb_exception): Likewise.
11440 (struct gdbscm_gdb_exception): New.
11441 (unpack): New function.
11442 (gdbscm_wrap): Use unpack.
11443
c6fdd8b2
TT
114442019-04-25 Tom Tromey <tromey@adacore.com>
11445
11446 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
11447 (gdb_rl_callback_handler): Use std::move.
11448 * common/common-exceptions.h (struct gdb_exception): Add move
11449 assignment operator.
11450 (throw_exception_sjlj): Change "exception" to const reference.
11451 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
11452 (throw_exception_sjlj): Change "exception" to const reference.
11453
cc06b668
TT
114542019-04-25 Tom Tromey <tromey@adacore.com>
11455
11456 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
11457 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
11458 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
11459 Update.
11460 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
11461 Update.
11462 * mi/mi-interp.c (mi_interp::exec): Update.
11463 * linespec.c (parse_linespec): Update.
11464 * infcall.c (run_inferior_call): Update.
11465 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
11466 * guile/scm-symbol.c (gdbscm_lookup_symbol)
11467 (gdbscm_lookup_global_symbol): Update.
11468 * guile/scm-param.c (gdbscm_parameter_value): Update.
11469 * guile/scm-frame.c (gdbscm_frame_read_register)
11470 (gdbscm_frame_read_var): Update.
11471 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
11472 * exec.c (try_open_exec_file): Update.
11473 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
11474 (gdb_rl_callback_handler): Update.
11475 * common/common-exceptions.h (exception_none): Don't declare.
11476 * common/common-exceptions.c (exception_none): Don't define.
11477 (struct catcher) <exception>: Update.
11478 * cli/cli-interp.c (safe_execute_command): Update.
11479 * breakpoint.c (insert_bp_location, location_to_sals): Update.
11480
cf532bd1
AT
114812019-04-25 Ali Tamur <tamur@google.com>
11482
11483 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
11484 (read_attribute_value): Likewise.
11485 (dwarf2_read_addr_index): Update comment.
11486 (read_str_index): Add DW_FORM_strx.
11487 (dwarf2_string_attr): Likewise.
11488 (dwarf2_const_value_attr): Likewise.
11489 (dump_die_shallow): Likewise.
11490 (dwarf2_fetch_constant_bytes): Likewise.
11491 (skip_form_bytes): Likewise.
11492 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
11493
82433e3e
SDJ
114942019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
11495
11496 PR corefiles/11608
11497 PR corefiles/18187
11498 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
11499 OFFSET. Verify if current mapping contains an ELF header.
11500 (linux_find_memory_regions_full): Adjust call to
11501 dump_mapping_p.
11502
723adb65
SL
115032019-04-25 Sandra Loosemore <sandra@codesourcery.com>
11504 Kang Li <kanglictf@gmail.com>
11505
11506 PR gdb/21600
11507
11508 * dwarf2-frame.c (read_initial_length): Be consistent about using
11509 unsigned representation of length.
11510 (decode_frame_entry_1): Likewise. Check for wraparound of
11511 end pointer as well as buffer overflow.
11512
596179f7
SDJ
115132019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
11514
11515 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
11516 "vq".
11517
a59240a4
TT
115182019-04-24 Tom Tromey <tromey@adacore.com>
11519
11520 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
11521
f872fdbb
AB
115222019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11523
11524 * s12z-tdep.c (s12z_unwind_pc): Delete.
11525 (s12z_unwind_sp): Delete.
11526 (s12z_gdbarch_init): Don't register deleted functions with
11527 gdbarch.
11528
b614e6f3
AB
115292019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11530
11531 * rl78-tdep.c (rl78_unwind_sp): Delete.
11532 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
11533
14faed38
AB
115342019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11535
11536 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
11537 (xstormy16_unwind_pc): Delete.
11538 (xstormy16_dummy_id): Delete.
11539 (xstormy16_gdbarch_init): Don't register deleted functions with
11540 gdbarch.
11541
541aad8a
AB
115422019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11543
11544 * vax-tdep.c (vax_unwind_pc): Delete.
11545 (vax_gdbarch_init): Don't register deleted function with gdbarch.
11546
29222070
AB
115472019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11548
11549 * v850-tdep.c (v850_unwind_sp): Delete.
11550 (v850_unwind_pc): Delete.
11551 (v850_dummy_id): Delete.
11552 (v850_gdbarch_init): Don't register deleted functions with
11553 gdbarch.
11554
0f534d76
AB
115552019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11556
11557 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
11558 (tilegx_unwind_pc): Delete.
11559 (tilegx_unwind_dummy_id): Delete.
11560 (tilegx_gdbarch_init): Don't register deleted functions with
11561 gdbarch.
11562
1ba7b7f9
AB
115632019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11564
11565 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
11566 (tic6x_dummy_id): Delete.
11567 (tic6x_gdbarch_init): Don't register deleted functions with
11568 gdbarch.
11569
d31f262c
AB
115702019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11571
11572 * sparc-tdep.c (sparc_unwind_pc): Delete.
11573 (sparc32_gdbarch_init): Don't register deleted function with
11574 gdbarch.
11575
6d14d64d
AB
115762019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11577
11578 * sh-tdep.c (sh_unwind_sp): Delete.
11579 (sh_unwind_pc): Delete.
11580 (sh_dummy_id): Delete.
11581 (sh_gdbarch_init): Don't register deleted functions with
11582 gdbarch.
11583
a40dde9d
AB
115842019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11585
11586 * score-tdep.c (score_unwind_sp): Delete.
11587 (score_unwind_pc): Delete.
11588 (score_dummy_id): Delete.
11589 (score_gdbarch_init): Don't register deleted functions with
11590 gdbarch.
11591
47c47d69
AB
115922019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11593
11594 * rx-tdep.c (rx_unwind_pc): Delete.
11595 (rx_unwind_sp): Delete.
11596 (rx_dummy_id): Delete.
11597 (rx_gdbarch_init): Don't register deleted functions with
11598 gdbarch. Update comment.
11599
833a4480
AB
116002019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11601
11602 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
11603 (rs6000_dummy_id): Delete.
11604 (rs6000_gdbarch_init): Don't register deleted functions with
11605 gdbarch.
11606
3f2cef49
AB
116072019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11608
11609 * or1k-tdep.c (or1k_dummy_id): Delete.
11610 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
11611
96acf884
AB
116122019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11613
11614 * nios2-tdep.c (nios2_dummy_id): Delete.
11615 (nios2_unwind_sp): Delete.
11616 (nios2_gdbarch_init): Don't register deleted functions with
11617 gdbarch.
11618
ca0ab0aa
AB
116192019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11620
11621 * nds32-tdep.c (nds32_dummy_id): Delete.
11622 (nds32_unwind_pc): Delete.
11623 (nds32_unwind_sp): Delete.
11624 (nds32_gdbarch_init): Don't register deleted functions with
11625 gdbarch.
11626
c8259044
AB
116272019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11628
11629 * msp430-tdep.c (msp430_unwind_pc): Delete.
11630 (msp430_unwind_sp): Delete.
11631 (msp430_dummy_id): Delete.
11632 (msp430_gdbarch_init): Don't register deleted functions with
11633 gdbarch.
11634
27f113c8
AB
116352019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11636
11637 * moxie-tdep.c (moxie_unwind_sp): Delete.
11638 (moxie_unwind_pc): Delete.
11639 (moxie_dummy_id): Delete.
11640 (moxie_gdbarch_init): Don't register deleted functions with
11641 gdbarch.
11642
aee6c3cd
AB
116432019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11644
11645 * mn10300-tdep.c (mn10300_dummy_id): Delete.
11646 (mn10300_unwind_pc): Delete.
11647 (mn10300_unwind_sp): Delete.
11648 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
11649 mn10300_unwind_sp.
11650 (mn10300_frame_unwind_init): Don't register deleted functions with
11651 gdbarch.
11652
8e2b5aea
AB
116532019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11654
11655 * mep-tdep.c (mep_unwind_pc): Delete.
11656 (mep_unwind_sp): Delete.
11657 (mep_dummy_id): Delete.
11658 (mep_gdbarch_init): Don't register deleted functions with
11659 gdbarch.
11660
43cf3ede
AB
116612019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11662
11663 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
11664 (m68hc11_unwind_sp): Delete.
11665 (m68hc11_gdbarch_init): Don't register deleted functions with
11666 gdbarch.
11667
5e79b7bb
AB
116682019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11669
11670 * m32r-tdep.c (m32r_unwind_sp): Delete.
11671 (m32r_unwind_pc): Delete.
11672 (m32r_dummy_id): Delete.
11673 (m32r_gdbarch_init): Don't register deleted functions with
11674 gdbarch.
11675
89b268d8
AB
116762019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11677
11678 * m32c-tdep.c (m32c_unwind_pc): Delete.
11679 (m32c_unwind_sp): Delete.
11680 (m32c_dummy_id): Delete.
11681 (m32c_gdbarch_init): Don't register deleted functions with
11682 gdbarch.
11683
946c28d2
AB
116842019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11685
11686 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
11687 (lm32_unwind_pc): Delete.
11688 (lm32_dummy_id): Delete.
11689 (lm32_gdbarch_init): Don't register deleted functions with
11690 gdbarch.
11691
bf12844a
AB
116922019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11693
11694 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
11695 (iq2000_unwind_pc): Delete.
11696 (iq2000_dummy_id): Delete.
11697 (iq2000_gdbarch_init): Don't register deleted functions with
11698 gdbarch.
11699
ecbc06d2
AB
117002019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11701
11702 * nds32-tdep.c (nds32_type_align): Delete.
11703 (nds32_push_dummy_call): Use type_align instead.
11704
030197b4
AB
117052019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11706
11707 * arm-tdep.c (arm_type_align): Only handle vector override case.
11708 (arm_push_dummy_call): Use type_align.
11709 (arm_gdbarch_init): Register arm_type_align gdbarch function.
11710
b907456c
AB
117112019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11712
11713 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
11714 case.
11715 (pass_on_stack): Use type_align.
11716 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
11717 function.
11718
9e97ba43
TT
117192019-04-23 Tom Tromey <tromey@adacore.com>
11720
11721 * dwarf2read.c (line_header::file_name_at): Remove unused
11722 overload.
11723
6892f601
TV
117242019-04-23 Tom de Vries <tdevries@suse.de>
11725
11726 PR gdb/24438
11727 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
11728 invocation.
11729
336d760d
AT
11730
117312019-03-27 Ali Tamur <tamur@google.com>
11732
11733 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
11734 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
11735 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
11736 (dwarf_expr_context::get_addr_index): Likewise
11737 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
11738 (symbol_needs_eval_context::get_addr_index): Likewise
11739 (disassemble_dwarf_expression): Add DW_OP_addrx
11740 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
11741 (read_cutu_die_from_dwo): Update comment
11742 (skip_one_die): Add DW_FORM_addrx
11743 (read_attribute_value): Likewise
11744 (var_decode_location): Add DW_OP_addrx
11745 (dwarf2_const_value_attr): Add DW_FORM_addrx
11746 (dump_die_shallow): Likewise
11747 (dwarf2_fetch_constant_bytes): Likewise
11748 (decode_locdesc): Add DW_OP_addrx
11749 (skip_form_bytes): Add DW_FORM_addrx
11750
ad9d13f8
AT
117512019-04-22 Ali Tamur <tamur@google.com>
11752
11753 * MAINTAINERS (Write After Approval): Add self.
11754
d70cc3ba
SM
117552019-04-22 Simon Marchi <simon.marchi@efficios.com>
11756
11757 * solib-svr4.c (get_svr4_info): Add pspace parameter.
11758 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
11759 (open_symbol_file_object): Likewise.
11760 (svr4_default_sos): Add info parameter.
11761 (svr4_read_so_list): Likewise.
11762 (svr4_current_sos_direct): Adjust functions calls to pass down
11763 info.
11764 (svr4_current_sos_1): Add info parameter.
11765 (svr4_current_sos): Call get_svr4_info, pass info down to
11766 svr4_current_sos_1.
11767 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
11768 get_svr4_info.
11769 (svr4_in_dynsym_resolve_code): Pass current_program_space to
11770 get_svr4_info.
11771 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
11772 to get_svr4_info.
11773 (probes_table_remove_objfile_probes): Likewise.
11774 (register_solib_event_probe): Add info parameter.
11775 (solist_update_incremental): Pass info parameter down to
11776 svr4_read_so_list.
11777 (disable_probes_interface): Add info parameter.
11778 (svr4_handle_solib_event): Pass current_program_space to
11779 get_svr4_info. Adjust disable_probes_interface cleanup.
11780 (svr4_create_probe_breakpoints): Add info parameter, pass it
11781 down to register_solib_event_probe.
11782 (svr4_create_solib_event_breakpoints): Add info parameter,
11783 pass it down to svr4_create_probe_breakpoints.
11784 (enable_break): Pass info down to
11785 svr4_create_solib_event_breakpoints.
11786 (svr4_solib_create_inferior_hook): Pass current_program_space to
11787 get_svr4_info.
11788 (svr4_clear_solib): Likewise.
11789
7905fc35
PA
117902019-04-22 Pedro Alves <palves@redhat.com>
11791
11792 * solib-svr4.c (svr4_free_objfile_observer): New.
11793 (probe_and_action::objfile): New field.
11794 (probes_table_htab_remove_objfile_probes)
11795 (probes_table_remove_objfile_probes): New functions.
11796 (register_solib_event_probe): Add 'objfile' parameter. Store it
11797 in the new probe_and_action. Don't store the probe in 'lookup'.
11798 (svr4_create_probe_breakpoints): Pass objfile to
11799 register_solib_event_probe.
11800 (_initialize_svr4_solib): Register a free_objfile observer.
11801
fb881986
TT
118022019-04-19 Tom Tromey <tom@tromey.com>
11803
11804 * common/queue.h: Remove.
11805
8732db6c
TT
118062019-04-19 Tom Tromey <tom@tromey.com>
11807
11808 * event-loop.c: Don't include "common/queue.h".
11809
97dfbadd
TT
118102019-04-19 Tom Tromey <tom@tromey.com>
11811
11812 * remote.c (remote_target): Use delete.
11813 * remote-notif.h: Include <list>, not "common/queue.h".
11814 (notif_client_p): Remove typedef.
11815 (remote_notif_state): Add constructor, destructor, initializer.
11816 <notif_queue>: Now a std::list.
11817 (remote_notif_state_xfree): Don't declare.
11818 * remote-notif.c (remote_notif_process, handle_notification)
11819 (remote_notif_state_allocate): Update.
11820 (~remote_notif_state): Rename from remote_notif_state_xfree.
11821
cf250e36
TT
118222019-04-19 Tom Tromey <tom@tromey.com>
11823
11824 * symfile.c (reread_symbols): Update.
11825 * objfiles.c (objfile_register_static_link)
11826 (objfile_lookup_static_link): Update
11827 (~objfile) Don't delete static_links.
11828 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
11829
61f4b350
TT
118302019-04-19 Tom Tromey <tom@tromey.com>
11831
11832 * type-stack.h (struct type_stack) <insert>: Constify string.
11833 * type-stack.c (type_stack::insert): Constify string.
11834 * gdbtypes.h (lookup_template_type): Update.
11835 (address_space_name_to_int): Update.
11836 * gdbtypes.c (address_space_name_to_int): Make space_identifier
11837 const.
11838 (lookup_template_type): Make name const.
11839 * c-exp.y: Update rules.
11840 (lex_one_token, classify_name, classify_inner_name)
11841 (c_print_token): Update.
11842 * p-exp.y: Update rules.
11843 (yylex): Update.
11844 * f-exp.y: Update rules.
11845 (yylex): Update.
11846 * d-exp.y: Update rules.
11847 (lex_one_token, classify_name, classify_inner_name): Update.
11848 * parse.c (write_dollar_variable, copy_name): Return std::string.
11849 * parser-defs.h (copy_name): Change return type.
11850 * m2-exp.y: Update rules.
11851 (yylex): Update.
11852 * go-exp.y (lex_one_token): Update.
11853 Update rules.
11854 (classify_unsafe_function, classify_packaged_name)
11855 (classify_name, yylex): Update.
11856
189b8c2e
ST
118572019-04-19 Sergei Trofimovich <siarheit@google.com>
11858
11859 * configure.ac: add --enable-source-highlight switch.
11860 * configure: Regenerate.
11861 * top.c (print_gdb_version): plumb --enable-source-highlight
11862 status to "show configuration".
11863
8ecb59f8
TT
118642019-04-19 Tom Tromey <tromey@adacore.com>
11865
11866 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
11867 Check ADA_TYPE_P.
11868 (empty_record, ada_template_to_fixed_record_type_1)
11869 (template_to_static_fixed_type)
11870 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
11871 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
11872 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
11873 macros.
11874
62160ec9
TT
118752019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
11876
11877 PR symtab/24423:
11878 * source.c (print_source_lines_base): Advance "iter" when a
11879 control character is seen.
11880
f2ae8bc8
PW
118812019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11882
11883 * inferior.h (struct infcall_suspend_state_deleter):
11884 Catch exception in destructor to avoid crash.
11885
d563b953
PW
118862019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11887
11888 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
11889 close to the add_com "shell".
11890
dc34c897
TT
118912019-04-18 Tom Tromey <tromey@adacore.com>
11892
11893 * process-stratum-target.h (class process_stratum_target)
11894 <stratum>: Add "final".
11895
a12e5744
TT
118962019-04-17 Tom Tromey <tromey@adacore.com>
11897
11898 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
11899 against nullptr before use.
11900
a7e559cc
AH
119012019-04-17 Alan Hayward <alan.hayward@arm.com>
11902
11903 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
11904
c01660c6
AB
119052019-04-17 Jim Wilson <jimw@sifive.com>
11906 Andrew Burgess <andrew.burgess@embecosm.com>
11907
11908 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
11909 code read might fail, assume 4-byte breakpoint in that case.
11910
4aa866af
LS
119112019-04-15 Leszek Swirski <leszeks@google.com>
11912
11913 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
11914 rather than a hand-rolled POD check when checking for forced MEMORY
11915 classification.
11916
48574d91
AH
119172019-04-15 Alan Hayward <alan.hayward@arm.com>
11918
11919 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
11920 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
11921 function.
11922 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
11923 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
11924 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
11925 declaration.
11926
4da037ef
AH
119272019-04-15 Alan Hayward <alan.hayward@arm.com>
11928
11929 * aarch64-linux-nat.c
11930 (aarch64_linux_nat_target::thread_architecture): Add override.
11931 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
11932 each VQ.
11933
ccb8d7e8
AH
119342019-04-15 Alan Hayward <alan.hayward@arm.com>
11935
11936 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
11937
35add35e
AB
119382019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
11939
11940 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
11941 target types of size 96-bits, add some additional comments, and
11942 check that the builtin type we found was the correct size.
11943
51196bbc
EZ
119442019-04-12 Eli Zaretskii <eliz@gnu.org>
11945
11946 * utils.c (prompt_for_continue): Don't restore the styling at the
11947 end, as applied_style has the wrong value. This fixes styling in
11948 long lists of file names that are interrupted by the "Continue?"
11949 prompt.
11950
62253a61
AB
119512019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
11952
11953 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
11954 * c-lang.c (c_language_defn): Likewise.
11955 (cplus_language_defn): Likewise.
11956 (asm_language_defn): Likewise.
11957 (minimal_language_defn): Likewise.
11958 * d-lang.c (d_language_defn): Likewise.
11959 * f-lang.c (f_language_defn): Likewise.
11960 * go-lang.c (go_language_defn): Likewise.
11961 * language.c (unknown_language_defn): Likewise.
11962 (auto_language_defn): Likewise.
11963 * language.h (struct language_defn): Remove la_magic field.
11964 (LANG_MAGIC): Delete.
11965 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
11966 * objc-lang.c (objc_language_defn): Likewise.
11967 * opencl-lang.c (opencl_language_defn): Likewise.
11968 * p-lang.c (pascal_language_defn): Likewise.
11969 * rust-lang.c (rust_language_defn): Likewise.
11970
a9158a86
AB
119712019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
11972
11973 * riscv-tdep.c (riscv_type_align): New function.
11974 (riscv_type_alignment): Delete.
11975 (riscv_arg_location): Use 'type_align'.
11976 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
11977
41077b66
AB
119782019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
11979
11980 * gdbtypes.c (type_align): A struct with no non-static fields also
11981 has alignment of 1.
11982
9f0272f8
AB
119832019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
11984
11985 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
11986 component to 0.
11987 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
11988 member.
11989 (riscv_struct_info::analyse): New implementation using new
11990 analyse_inner member function.
11991 (riscv_struct_info::field_offset): New member function.
11992 (riscv_struct_info::m_offsets): New member variable.
11993 (riscv_struct_info::analyse_inner): New private member function,
11994 takes the old implementation of riscv_struct_info::analyse but
11995 extended to track field offsets.
11996 (riscv_call_arg_struct): Update the struct folding special cases
11997 to handle cases where empty C++ structs, which are non-zero
11998 length, are found.
11999 (riscv_arg_location): Initialise the length of each location, a
12000 non-zero length now indicates the location is in use.
12001 (riscv_push_dummy_call): Allow for the first location having a
12002 non-zero offset when setting up arguments.
12003 (riscv_return_value): Likewise, but for return values.
12004
02cf60c7
TT
120052019-04-11 Tom Tromey <tromey@adacore.com>
12006
12007 * utils.c (internal_vproblem): Make "msg" const.
12008
68811f8f
AH
120092019-04-11 Alan Hayward <alan.hayward@arm.com>
12010
12011 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
12012 * trad-frame.c (trad_frame_reset_saved_regs): New function.
12013 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
12014 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
12015
3f52fdbc
KB
120162019-04-10 Kevin Buettner <kevinb@redhat.com>
12017
12018 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
12019 function.
12020 (fill_gregset): Call amd64_linux_collect_native_gregset instead
12021 of amd64_collect_native_gregset.
12022 (amd64_linux_nat_target::store_registers): Likewise.
12023
e9ad22ee
TT
120242019-04-10 Tom Tromey <tom@tromey.com>
12025
12026 * symtab.c (lookup_global_symbol_from_objfile)
12027 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
12028 * objfiles.h (class separate_debug_iterator): New.
12029 (class separate_debug_range): New.
12030 (struct objfile) <separate_debug_objfiles>: New method.
12031 (objfile_separate_debug_iterate): Don't declare.
12032 * objfiles.c (separate_debug_iterator::operator++): Rename from
12033 objfile_separate_debug_iterate.
12034 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
12035 iterator.
12036 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
12037 iterator.
12038
ee371134
TT
120392019-04-10 Tom Tromey <tom@tromey.com>
12040
12041 * symfile.c (reread_symbols): Remove old comment.
12042 * objfiles.c (free_all_objfiles): Fix a typo.
12043
bf227d61
TT
120442019-04-10 Tom Tromey <tom@tromey.com>
12045
12046 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
12047 * minsyms.c (lookup_minimal_symbol): Use foreach.
12048 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
12049 (lookup_minimal_symbol_solib_trampoline): Likewise.
12050 * symfile.c (reread_symbols): Use foreach.
12051
8dc433a0
TT
120522019-04-09 Ivan Begert <ivanbegert@gmail.com>
12053 Tom Tromey <tromey@adacore.com>
12054
12055 PR rust/24414:
12056 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
12057 (rust_lex_int_test): Change "value" to be LONGEST.
12058 (rust_lex_tests): Add test for long integer literal.
12059
9ab8741a
TT
120602019-04-09 Tom Tromey <tromey@adacore.com>
12061
12062 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
12063 to bool.
12064 (extended_remote_target::attach): Update.
12065 (remote_target::remote_notice_new_inferior): Update.
12066 (remote_target::add_current_inferior_and_thread): Update.
12067 * inferior.c (exit_inferior_1): Use "false".
12068 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
12069
e242fd12
SM
120702019-04-09 Simon Marchi <simon.marchi@efficios.com>
12071
9ca1957f 12072 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
e242fd12
SM
12073 the "start" command.
12074
2b0c8b01
KB
120752019-04-08 Kevin Buettner <kevinb@redhat.com>
12076
12077 * python/py-inferior.c (infpy_thread_from_thread_handle):
12078 Adjust comments to reflect renaming of thread_from_thread_handle
12079 to thread_from_handle. Adjust keywords. Fix type error message.
12080 (inferior_object_methods): Add thread_from_handle. Retain
12081 thread_from_thread_handle, but mark it as deprecated.
12082
50a82723
KB
120832019-04-08 Kevin Buettner <kevinb@redhat.com>
12084
12085 * gdbthread.h (find_thread_by_handle): Revise declaration.
12086 * thread.c (find_thread_by_handle): Likewise. Adjust
12087 implementation too.
12088 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
12089 support for buffer objects as handles.
12090
cf63b016
KB
120912019-04-08 Kevin Buettner <kevinb@redhat.com>
12092
12093 * python/py-infthread.c (thpy_thread_handle): New function.
12094 (thread_object_methods): Register thpy_thread_handle.
12095
3d6c6204
KB
120962019-04-08 Kevin Buettner <kevinb@redhat.com>
12097
12098 * gdbthread.h (thread_to_thread_handle): Declare.
12099 * thread.c (gdbtypes.h): Include.
12100 (thread_to_thread_handle): New function.
12101
12102 * target.h (struct target_ops): Add thread_info_to_thread_handle.
12103 (target_thread_info_to_thread_handle): Declare.
12104 * target.c (target_thread_info_to_thread_handle): New function.
12105 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
12106 * target-delegates.c: Regenerate.
12107
12108 * linux-thread-db.c (class thread_db_target): Add method
12109 thread_info_to_thread_handle.
12110 (thread_db_target::thread_info_to_thread_handle): Define.
12111 * remote.c (class remote_target): Add new method
12112 thread_info_to_thread_handle.
12113 (remote_target::thread_info_to_thread_handle): Define.
12114
56be6ea8
PA
121152019-04-08 Pedro Alves <palves@redhat.com>
12116
12117 * common/common-exceptions.c (throw_exception): Don't create
12118 named object to throw; throw directly.
12119 (throw_it): Likewise. Don't initialize gdb_exception::message
12120 here, with new; pass FMT and AP to the ctor instead.
12121 * common/common-exceptions.h: Include <string>.
12122 (gdb_exception::gdb_exception(enum return_reason, enum errors,
12123 const char *, va_list)): New ctor. Use std::make_shared.
12124 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
12125 errors)): Delete.
12126 (gdb_exception_error::gdb_exception_error(enum errors, const char
12127 *, va_list)): New.
12128 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
12129 Add assertion.
12130 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
12131 errors)): Delete.
12132 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
12133 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
12134 Add assertion.
12135
eedc3f4f
TT
121362019-04-08 Tom Tromey <tom@tromey.com>
12137
12138 * valops.c (value_rtti_indirect_type): Replace throw_exception
12139 with throw.
12140 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
12141 with throw.
12142 * thread.c (thr_try_catch_cmd): Replace throw_exception with
12143 throw.
12144 * target.c (target_translate_tls_address): Replace throw_exception
12145 with throw.
12146 * stack.c (frame_apply_command_count): Replace throw_exception
12147 with throw.
12148 * solib-spu.c (append_ocl_sos): Replace throw_exception with
12149 throw.
12150 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
12151 with throw.
12152 * rs6000-tdep.c (rs6000_frame_cache)
12153 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
12154 * remote.c: Replace throw_exception with throw.
12155 * record-full.c (record_full_message, record_full_wait_1)
12156 (record_full_restore): Replace throw_exception with throw.
12157 * record-btrace.c:
12158 (get_thread_current_frame_id, record_btrace_start_replaying)
12159 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
12160 (cmd_record_btrace_start): Replace throw_exception with throw.
12161 * parse.c (parse_exp_in_context_1): Replace throw_exception with
12162 throw.
12163 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
12164 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
12165 * linespec.c:
12166 (find_linespec_symbols): Replace throw_exception with throw.
12167 * infrun.c (displaced_step_prepare, resume): Replace
12168 throw_exception with throw.
12169 * infcmd.c (post_create_inferior): Replace throw_exception with
12170 throw.
12171 * inf-loop.c (inferior_event_handler): Replace throw_exception
12172 with throw.
12173 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
12174 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
12175 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
12176 (get_prev_frame_always, get_frame_pc_if_available)
12177 (get_frame_address_in_block_if_available, get_frame_language):
12178 Replace throw_exception with throw.
12179 * frame-unwind.c (frame_unwind_try_unwinder): Replace
12180 throw_exception with throw.
12181 * eval.c (fetch_subexp_value, evaluate_var_value)
12182 (evaluate_funcall, evaluate_subexp_standard): Replace
12183 throw_exception with throw.
12184 * dwarf2loc.c (call_site_find_chain)
12185 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
12186 Replace throw_exception with throw.
12187 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
12188 with throw.
12189 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
12190 throw.
12191 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
12192 * completer.c (complete_line_internal): Replace throw_exception
12193 with throw.
12194 * compile/compile-object-run.c (compile_object_run): Replace
12195 throw_exception with throw.
12196 * cli/cli-script.c (process_next_line): Replace throw_exception
12197 with throw.
12198 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
12199 (btrace_enable, btrace_maint_update_pt_packets): Replace
12200 throw_exception with throw.
12201 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
12202 throw_exception with throw.
12203 * break-catch-throw.c (re_set_exception_catchpoint): Replace
12204 throw_exception with throw.
12205 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
12206 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
12207 * aarch64-tdep.c (aarch64_make_prologue_cache)
12208 (aarch64_make_stub_cache): Replace throw_exception with throw.
12209
26003a20
TT
122102019-04-08 Tom Tromey <tom@tromey.com>
12211
12212 * common/common-exceptions.c (throw_exception): Rename from
12213 throw_exception_cxx. Remove old copy. Make argument const.
12214 (throw_it): Create and throw exception objects directly.
12215 * common/common-exceptions.h (throw_exception): Make argument
12216 const.
12217 (struct gdb_exception_error): Add constructor.
12218 (struct gdb_exception_quit): Add constructor.
12219
d272eb37
TT
122202019-04-08 Tom Tromey <tom@tromey.com>
12221
12222 * common/common-exceptions.h (exception_rethrow): Don't declare.
12223 (TRY_SJLJ): Update comment.
12224 (TRY, CATCH, END_CATCH): Remove.
12225 * common/common-exceptions.c (exception_rethrow): Remove.
12226
230d2906
TT
122272019-04-08 Tom Tromey <tom@tromey.com>
12228
12229 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
12230 Remove.
12231 (gdb_exception_error): Rename from
12232 gdb_exception_RETURN_MASK_ERROR.
12233 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
12234 (gdb_quit_bad_alloc): Update.
12235 * aarch64-tdep.c: Update.
12236 * ada-lang.c: Update.
12237 * ada-typeprint.c: Update.
12238 * ada-valprint.c: Update.
12239 * amd64-tdep.c: Update.
12240 * arch-utils.c: Update.
12241 * break-catch-throw.c: Update.
12242 * breakpoint.c: Update.
12243 * btrace.c: Update.
12244 * c-varobj.c: Update.
12245 * cli/cli-cmds.c: Update.
12246 * cli/cli-interp.c: Update.
12247 * cli/cli-script.c: Update.
12248 * common/common-exceptions.c: Update.
12249 * common/new-op.c: Update.
12250 * common/selftest.c: Update.
12251 * compile/compile-c-symbols.c: Update.
12252 * compile/compile-cplus-symbols.c: Update.
12253 * compile/compile-object-load.c: Update.
12254 * compile/compile-object-run.c: Update.
12255 * completer.c: Update.
12256 * corelow.c: Update.
12257 * cp-abi.c: Update.
12258 * cp-support.c: Update.
12259 * cp-valprint.c: Update.
12260 * darwin-nat.c: Update.
12261 * disasm-selftests.c: Update.
12262 * dtrace-probe.c: Update.
12263 * dwarf-index-cache.c: Update.
12264 * dwarf-index-write.c: Update.
12265 * dwarf2-frame-tailcall.c: Update.
12266 * dwarf2-frame.c: Update.
12267 * dwarf2loc.c: Update.
12268 * dwarf2read.c: Update.
12269 * eval.c: Update.
12270 * event-loop.c: Update.
12271 * event-top.c: Update.
12272 * exec.c: Update.
12273 * f-valprint.c: Update.
12274 * fbsd-tdep.c: Update.
12275 * frame-unwind.c: Update.
12276 * frame.c: Update.
12277 * gdbtypes.c: Update.
12278 * gnu-v3-abi.c: Update.
12279 * guile/guile-internal.h: Update.
12280 * guile/scm-block.c: Update.
12281 * guile/scm-breakpoint.c: Update.
12282 * guile/scm-cmd.c: Update.
12283 * guile/scm-disasm.c: Update.
12284 * guile/scm-frame.c: Update.
12285 * guile/scm-lazy-string.c: Update.
12286 * guile/scm-math.c: Update.
12287 * guile/scm-param.c: Update.
12288 * guile/scm-ports.c: Update.
12289 * guile/scm-pretty-print.c: Update.
12290 * guile/scm-symbol.c: Update.
12291 * guile/scm-symtab.c: Update.
12292 * guile/scm-type.c: Update.
12293 * guile/scm-value.c: Update.
12294 * i386-linux-tdep.c: Update.
12295 * i386-tdep.c: Update.
12296 * inf-loop.c: Update.
12297 * infcall.c: Update.
12298 * infcmd.c: Update.
12299 * infrun.c: Update.
12300 * jit.c: Update.
12301 * language.c: Update.
12302 * linespec.c: Update.
12303 * linux-fork.c: Update.
12304 * linux-nat.c: Update.
12305 * linux-tdep.c: Update.
12306 * linux-thread-db.c: Update.
12307 * main.c: Update.
12308 * mi/mi-cmd-break.c: Update.
12309 * mi/mi-cmd-stack.c: Update.
12310 * mi/mi-interp.c: Update.
12311 * mi/mi-main.c: Update.
12312 * objc-lang.c: Update.
12313 * p-valprint.c: Update.
12314 * parse.c: Update.
12315 * ppc-linux-tdep.c: Update.
12316 * printcmd.c: Update.
12317 * python/py-arch.c: Update.
12318 * python/py-breakpoint.c: Update.
12319 * python/py-cmd.c: Update.
12320 * python/py-finishbreakpoint.c: Update.
12321 * python/py-frame.c: Update.
12322 * python/py-framefilter.c: Update.
12323 * python/py-gdb-readline.c: Update.
12324 * python/py-inferior.c: Update.
12325 * python/py-infthread.c: Update.
12326 * python/py-lazy-string.c: Update.
12327 * python/py-linetable.c: Update.
12328 * python/py-objfile.c: Update.
12329 * python/py-param.c: Update.
12330 * python/py-prettyprint.c: Update.
12331 * python/py-progspace.c: Update.
12332 * python/py-record-btrace.c: Update.
12333 * python/py-record.c: Update.
12334 * python/py-symbol.c: Update.
12335 * python/py-type.c: Update.
12336 * python/py-unwind.c: Update.
12337 * python/py-utils.c: Update.
12338 * python/py-value.c: Update.
12339 * python/python.c: Update.
12340 * record-btrace.c: Update.
12341 * record-full.c: Update.
12342 * remote-fileio.c: Update.
12343 * remote.c: Update.
12344 * riscv-tdep.c: Update.
12345 * rs6000-aix-tdep.c: Update.
12346 * rs6000-tdep.c: Update.
12347 * rust-exp.y: Update.
12348 * rust-lang.c: Update.
12349 * s390-tdep.c: Update.
12350 * selftest-arch.c: Update.
12351 * solib-dsbt.c: Update.
12352 * solib-frv.c: Update.
12353 * solib-spu.c: Update.
12354 * solib-svr4.c: Update.
12355 * solib.c: Update.
12356 * sparc64-linux-tdep.c: Update.
12357 * stack.c: Update.
12358 * symfile-mem.c: Update.
12359 * symmisc.c: Update.
12360 * target.c: Update.
12361 * thread.c: Update.
12362 * top.c: Update.
12363 * tracefile-tfile.c: Update.
12364 * tui/tui.c: Update.
12365 * typeprint.c: Update.
12366 * unittests/cli-utils-selftests.c: Update.
12367 * unittests/parse-connection-spec-selftests.c: Update.
12368 * valops.c: Update.
12369 * valprint.c: Update.
12370 * value.c: Update.
12371 * varobj.c: Update.
12372 * windows-nat.c: Update.
12373 * x86-linux-nat.c: Update.
12374 * xml-support.c: Update.
12375
a70b8144
TT
123762019-04-08 Tom Tromey <tom@tromey.com>
12377
12378 * xml-support.c: Use C++ exception handling.
12379 * x86-linux-nat.c: Use C++ exception handling.
12380 * windows-nat.c: Use C++ exception handling.
12381 * varobj.c: Use C++ exception handling.
12382 * value.c: Use C++ exception handling.
12383 * valprint.c: Use C++ exception handling.
12384 * valops.c: Use C++ exception handling.
12385 * unittests/parse-connection-spec-selftests.c: Use C++ exception
12386 handling.
12387 * unittests/cli-utils-selftests.c: Use C++ exception handling.
12388 * typeprint.c: Use C++ exception handling.
12389 * tui/tui.c: Use C++ exception handling.
12390 * tracefile-tfile.c: Use C++ exception handling.
12391 * top.c: Use C++ exception handling.
12392 * thread.c: Use C++ exception handling.
12393 * target.c: Use C++ exception handling.
12394 * symmisc.c: Use C++ exception handling.
12395 * symfile-mem.c: Use C++ exception handling.
12396 * stack.c: Use C++ exception handling.
12397 * sparc64-linux-tdep.c: Use C++ exception handling.
12398 * solib.c: Use C++ exception handling.
12399 * solib-svr4.c: Use C++ exception handling.
12400 * solib-spu.c: Use C++ exception handling.
12401 * solib-frv.c: Use C++ exception handling.
12402 * solib-dsbt.c: Use C++ exception handling.
12403 * selftest-arch.c: Use C++ exception handling.
12404 * s390-tdep.c: Use C++ exception handling.
12405 * rust-lang.c: Use C++ exception handling.
12406 * rust-exp.y: Use C++ exception handling.
12407 * rs6000-tdep.c: Use C++ exception handling.
12408 * rs6000-aix-tdep.c: Use C++ exception handling.
12409 * riscv-tdep.c: Use C++ exception handling.
12410 * remote.c: Use C++ exception handling.
12411 * remote-fileio.c: Use C++ exception handling.
12412 * record-full.c: Use C++ exception handling.
12413 * record-btrace.c: Use C++ exception handling.
12414 * python/python.c: Use C++ exception handling.
12415 * python/py-value.c: Use C++ exception handling.
12416 * python/py-utils.c: Use C++ exception handling.
12417 * python/py-unwind.c: Use C++ exception handling.
12418 * python/py-type.c: Use C++ exception handling.
12419 * python/py-symbol.c: Use C++ exception handling.
12420 * python/py-record.c: Use C++ exception handling.
12421 * python/py-record-btrace.c: Use C++ exception handling.
12422 * python/py-progspace.c: Use C++ exception handling.
12423 * python/py-prettyprint.c: Use C++ exception handling.
12424 * python/py-param.c: Use C++ exception handling.
12425 * python/py-objfile.c: Use C++ exception handling.
12426 * python/py-linetable.c: Use C++ exception handling.
12427 * python/py-lazy-string.c: Use C++ exception handling.
12428 * python/py-infthread.c: Use C++ exception handling.
12429 * python/py-inferior.c: Use C++ exception handling.
12430 * python/py-gdb-readline.c: Use C++ exception handling.
12431 * python/py-framefilter.c: Use C++ exception handling.
12432 * python/py-frame.c: Use C++ exception handling.
12433 * python/py-finishbreakpoint.c: Use C++ exception handling.
12434 * python/py-cmd.c: Use C++ exception handling.
12435 * python/py-breakpoint.c: Use C++ exception handling.
12436 * python/py-arch.c: Use C++ exception handling.
12437 * printcmd.c: Use C++ exception handling.
12438 * ppc-linux-tdep.c: Use C++ exception handling.
12439 * parse.c: Use C++ exception handling.
12440 * p-valprint.c: Use C++ exception handling.
12441 * objc-lang.c: Use C++ exception handling.
12442 * mi/mi-main.c: Use C++ exception handling.
12443 * mi/mi-interp.c: Use C++ exception handling.
12444 * mi/mi-cmd-stack.c: Use C++ exception handling.
12445 * mi/mi-cmd-break.c: Use C++ exception handling.
12446 * main.c: Use C++ exception handling.
12447 * linux-thread-db.c: Use C++ exception handling.
12448 * linux-tdep.c: Use C++ exception handling.
12449 * linux-nat.c: Use C++ exception handling.
12450 * linux-fork.c: Use C++ exception handling.
12451 * linespec.c: Use C++ exception handling.
12452 * language.c: Use C++ exception handling.
12453 * jit.c: Use C++ exception handling.
12454 * infrun.c: Use C++ exception handling.
12455 * infcmd.c: Use C++ exception handling.
12456 * infcall.c: Use C++ exception handling.
12457 * inf-loop.c: Use C++ exception handling.
12458 * i386-tdep.c: Use C++ exception handling.
12459 * i386-linux-tdep.c: Use C++ exception handling.
12460 * guile/scm-value.c: Use C++ exception handling.
12461 * guile/scm-type.c: Use C++ exception handling.
12462 * guile/scm-symtab.c: Use C++ exception handling.
12463 * guile/scm-symbol.c: Use C++ exception handling.
12464 * guile/scm-pretty-print.c: Use C++ exception handling.
12465 * guile/scm-ports.c: Use C++ exception handling.
12466 * guile/scm-param.c: Use C++ exception handling.
12467 * guile/scm-math.c: Use C++ exception handling.
12468 * guile/scm-lazy-string.c: Use C++ exception handling.
12469 * guile/scm-frame.c: Use C++ exception handling.
12470 * guile/scm-disasm.c: Use C++ exception handling.
12471 * guile/scm-cmd.c: Use C++ exception handling.
12472 * guile/scm-breakpoint.c: Use C++ exception handling.
12473 * guile/scm-block.c: Use C++ exception handling.
12474 * guile/guile-internal.h: Use C++ exception handling.
12475 * gnu-v3-abi.c: Use C++ exception handling.
12476 * gdbtypes.c: Use C++ exception handling.
12477 * frame.c: Use C++ exception handling.
12478 * frame-unwind.c: Use C++ exception handling.
12479 * fbsd-tdep.c: Use C++ exception handling.
12480 * f-valprint.c: Use C++ exception handling.
12481 * exec.c: Use C++ exception handling.
12482 * event-top.c: Use C++ exception handling.
12483 * event-loop.c: Use C++ exception handling.
12484 * eval.c: Use C++ exception handling.
12485 * dwarf2read.c: Use C++ exception handling.
12486 * dwarf2loc.c: Use C++ exception handling.
12487 * dwarf2-frame.c: Use C++ exception handling.
12488 * dwarf2-frame-tailcall.c: Use C++ exception handling.
12489 * dwarf-index-write.c: Use C++ exception handling.
12490 * dwarf-index-cache.c: Use C++ exception handling.
12491 * dtrace-probe.c: Use C++ exception handling.
12492 * disasm-selftests.c: Use C++ exception handling.
12493 * darwin-nat.c: Use C++ exception handling.
12494 * cp-valprint.c: Use C++ exception handling.
12495 * cp-support.c: Use C++ exception handling.
12496 * cp-abi.c: Use C++ exception handling.
12497 * corelow.c: Use C++ exception handling.
12498 * completer.c: Use C++ exception handling.
12499 * compile/compile-object-run.c: Use C++ exception handling.
12500 * compile/compile-object-load.c: Use C++ exception handling.
12501 * compile/compile-cplus-symbols.c: Use C++ exception handling.
12502 * compile/compile-c-symbols.c: Use C++ exception handling.
12503 * common/selftest.c: Use C++ exception handling.
12504 * common/new-op.c: Use C++ exception handling.
12505 * cli/cli-script.c: Use C++ exception handling.
12506 * cli/cli-interp.c: Use C++ exception handling.
12507 * cli/cli-cmds.c: Use C++ exception handling.
12508 * c-varobj.c: Use C++ exception handling.
12509 * btrace.c: Use C++ exception handling.
12510 * breakpoint.c: Use C++ exception handling.
12511 * break-catch-throw.c: Use C++ exception handling.
12512 * arch-utils.c: Use C++ exception handling.
12513 * amd64-tdep.c: Use C++ exception handling.
12514 * ada-valprint.c: Use C++ exception handling.
12515 * ada-typeprint.c: Use C++ exception handling.
12516 * ada-lang.c: Use C++ exception handling.
12517 * aarch64-tdep.c: Use C++ exception handling.
12518
3d6e9d23
TT
125192019-04-08 Tom Tromey <tom@tromey.com>
12520
12521 * xml-support.c (gdb_xml_parser::parse): Update.
12522 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
12523 * value.c (show_convenience): Update.
12524 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
12525 (test_parse_flags_qcs): Update.
12526 * thread.c (thr_try_catch_cmd): Update.
12527 * target.c (target_translate_tls_address): Update.
12528 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
12529 (info_frame_command_core, frame_apply_command_count): Update.
12530 * rust-exp.y (rust_lex_exception_test): Update.
12531 * riscv-tdep.c (riscv_print_one_register_info): Update.
12532 * remote.c (remote_target::enable_btrace): Update.
12533 * record-btrace.c (record_btrace_enable_warn): Update.
12534 * python/py-utils.c (gdbpy_convert_exception): Update.
12535 * printcmd.c (do_one_display, print_variable_and_value): Update.
12536 * mi/mi-main.c (mi_print_exception): Update.
12537 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
12538 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
12539 * linux-nat.c (linux_nat_target::attach): Update.
12540 * linux-fork.c (class scoped_switch_fork_info): Update.
12541 * infrun.c (displaced_step_prepare): Update.
12542 * infcall.c (call_function_by_hand_dummy): Update.
12543 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
12544 * gnu-v3-abi.c (print_one_vtable): Update.
12545 * frame.c (get_prev_frame_always): Update.
12546 * f-valprint.c (info_common_command_for_block): Update.
12547 * exec.c (try_open_exec_file): Update.
12548 * exceptions.c (print_exception, exception_print)
12549 (exception_fprintf, exception_print_same): Update.
12550 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
12551 * dwarf-index-cache.c (index_cache::store)
12552 (index_cache::lookup_gdb_index): Update.
12553 * darwin-nat.c (maybe_cache_shell): Update.
12554 * cp-valprint.c (cp_print_value_fields): Update.
12555 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
12556 (gcc_cplus_symbol_address): Update.
12557 * compile/compile-c-symbols.c (gcc_convert_symbol)
12558 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
12559 * common/selftest.c: Update.
12560 * common/common-exceptions.h (struct gdb_exception) <message>: Now
12561 a std::string.
12562 (exception_try_scope_entry, exception_try_scope_exit): Don't
12563 declare.
12564 (struct exception_try_scope): Remove.
12565 (TRY): Don't use exception_try_scope.
12566 (struct gdb_exception): Add constructor, operator=.
12567 <what>: New method.
12568 (struct gdb_exception_RETURN_MASK_ALL)
12569 (struct gdb_exception_RETURN_MASK_ERROR)
12570 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
12571 (struct gdb_quit_bad_alloc): Update.
12572 * common/common-exceptions.c (exception_none): Change
12573 initializer.
12574 (struct catcher) <state, exception>: Initialize inline.
12575 <prev>: Remove member.
12576 (current_catcher): Remove.
12577 (catchers): New global.
12578 (exceptions_state_mc_init): Simplify.
12579 (catcher_pop): Remove.
12580 (exceptions_state_mc, exceptions_state_mc_catch): Update.
12581 (try_scope_depth, exception_try_scope_entry)
12582 (exception_try_scope_exit): Remove.
12583 (throw_exception_sjlj): Update.
12584 (exception_messages, exception_messages_size): Remove.
12585 (throw_it): Simplify.
12586 (gdb_exception_sliced_copy): Remove.
12587 (throw_exception_cxx): Update.
12588 * cli/cli-script.c (script_from_file): Update.
12589 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
12590 Update.
12591 * ada-valprint.c (ada_val_print): Update.
12592 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
12593 (create_excep_cond_exprs): Update.
12594
c5c10118
TT
125952019-04-08 Tom Tromey <tom@tromey.com>
12596
12597 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
12598 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
12599 (TRY, CATCH, END_CATCH): Remove some definitions.
12600 * common/common-exceptions.c: Don't use GDB_XCPT.
12601 (catcher_list_size): Remove.
12602 (throw_exception, throw_it): Simplify.
12603
4de283e4
TT
126042019-04-05 Tom Tromey <tom@tromey.com>
12605
12606 Revert the header-sorting patch.
12607 * ft32-tdep.c: Revert.
12608 * frv-tdep.c: Revert.
12609 * frv-linux-tdep.c: Revert.
12610 * frame.c: Revert.
12611 * frame-unwind.c: Revert.
12612 * frame-base.c: Revert.
12613 * fork-child.c: Revert.
12614 * findvar.c: Revert.
12615 * findcmd.c: Revert.
12616 * filesystem.c: Revert.
12617 * filename-seen-cache.h: Revert.
12618 * filename-seen-cache.c: Revert.
12619 * fbsd-tdep.c: Revert.
12620 * fbsd-nat.h: Revert.
12621 * fbsd-nat.c: Revert.
12622 * f-valprint.c: Revert.
12623 * f-typeprint.c: Revert.
12624 * f-lang.c: Revert.
12625 * extension.h: Revert.
12626 * extension.c: Revert.
12627 * extension-priv.h: Revert.
12628 * expprint.c: Revert.
12629 * exec.h: Revert.
12630 * exec.c: Revert.
12631 * exceptions.c: Revert.
12632 * event-top.c: Revert.
12633 * event-loop.c: Revert.
12634 * eval.c: Revert.
12635 * elfread.c: Revert.
12636 * dwarf2read.h: Revert.
12637 * dwarf2read.c: Revert.
12638 * dwarf2loc.c: Revert.
12639 * dwarf2expr.h: Revert.
12640 * dwarf2expr.c: Revert.
12641 * dwarf2-frame.c: Revert.
12642 * dwarf2-frame-tailcall.c: Revert.
12643 * dwarf-index-write.h: Revert.
12644 * dwarf-index-write.c: Revert.
12645 * dwarf-index-common.c: Revert.
12646 * dwarf-index-cache.h: Revert.
12647 * dwarf-index-cache.c: Revert.
12648 * dummy-frame.c: Revert.
12649 * dtrace-probe.c: Revert.
12650 * disasm.h: Revert.
12651 * disasm.c: Revert.
12652 * disasm-selftests.c: Revert.
12653 * dictionary.c: Revert.
12654 * dicos-tdep.c: Revert.
12655 * demangle.c: Revert.
12656 * dcache.h: Revert.
12657 * dcache.c: Revert.
12658 * darwin-nat.h: Revert.
12659 * darwin-nat.c: Revert.
12660 * darwin-nat-info.c: Revert.
12661 * d-valprint.c: Revert.
12662 * d-namespace.c: Revert.
12663 * d-lang.c: Revert.
12664 * ctf.c: Revert.
12665 * csky-tdep.c: Revert.
12666 * csky-linux-tdep.c: Revert.
12667 * cris-tdep.c: Revert.
12668 * cris-linux-tdep.c: Revert.
12669 * cp-valprint.c: Revert.
12670 * cp-support.c: Revert.
12671 * cp-namespace.c: Revert.
12672 * cp-abi.c: Revert.
12673 * corelow.c: Revert.
12674 * corefile.c: Revert.
12675 * continuations.c: Revert.
12676 * completer.h: Revert.
12677 * completer.c: Revert.
12678 * complaints.c: Revert.
12679 * coffread.c: Revert.
12680 * coff-pe-read.c: Revert.
12681 * cli-out.h: Revert.
12682 * cli-out.c: Revert.
12683 * charset.c: Revert.
12684 * c-varobj.c: Revert.
12685 * c-valprint.c: Revert.
12686 * c-typeprint.c: Revert.
12687 * c-lang.c: Revert.
12688 * buildsym.c: Revert.
12689 * buildsym-legacy.c: Revert.
12690 * build-id.h: Revert.
12691 * build-id.c: Revert.
12692 * btrace.c: Revert.
12693 * bsd-uthread.c: Revert.
12694 * breakpoint.h: Revert.
12695 * breakpoint.c: Revert.
12696 * break-catch-throw.c: Revert.
12697 * break-catch-syscall.c: Revert.
12698 * break-catch-sig.c: Revert.
12699 * blockframe.c: Revert.
12700 * block.c: Revert.
12701 * bfin-tdep.c: Revert.
12702 * bfin-linux-tdep.c: Revert.
12703 * bfd-target.c: Revert.
12704 * bcache.c: Revert.
12705 * ax-general.c: Revert.
12706 * ax-gdb.h: Revert.
12707 * ax-gdb.c: Revert.
12708 * avr-tdep.c: Revert.
12709 * auxv.c: Revert.
12710 * auto-load.c: Revert.
12711 * arm-wince-tdep.c: Revert.
12712 * arm-tdep.c: Revert.
12713 * arm-symbian-tdep.c: Revert.
12714 * arm-pikeos-tdep.c: Revert.
12715 * arm-obsd-tdep.c: Revert.
12716 * arm-nbsd-tdep.c: Revert.
12717 * arm-nbsd-nat.c: Revert.
12718 * arm-linux-tdep.c: Revert.
12719 * arm-linux-nat.c: Revert.
12720 * arm-fbsd-tdep.c: Revert.
12721 * arm-fbsd-nat.c: Revert.
12722 * arm-bsd-tdep.c: Revert.
12723 * arch-utils.c: Revert.
12724 * arc-tdep.c: Revert.
12725 * arc-newlib-tdep.c: Revert.
12726 * annotate.h: Revert.
12727 * annotate.c: Revert.
12728 * amd64-windows-tdep.c: Revert.
12729 * amd64-windows-nat.c: Revert.
12730 * amd64-tdep.c: Revert.
12731 * amd64-sol2-tdep.c: Revert.
12732 * amd64-obsd-tdep.c: Revert.
12733 * amd64-obsd-nat.c: Revert.
12734 * amd64-nbsd-tdep.c: Revert.
12735 * amd64-nbsd-nat.c: Revert.
12736 * amd64-nat.c: Revert.
12737 * amd64-linux-tdep.c: Revert.
12738 * amd64-linux-nat.c: Revert.
12739 * amd64-fbsd-tdep.c: Revert.
12740 * amd64-fbsd-nat.c: Revert.
12741 * amd64-dicos-tdep.c: Revert.
12742 * amd64-darwin-tdep.c: Revert.
12743 * amd64-bsd-nat.c: Revert.
12744 * alpha-tdep.c: Revert.
12745 * alpha-obsd-tdep.c: Revert.
12746 * alpha-nbsd-tdep.c: Revert.
12747 * alpha-mdebug-tdep.c: Revert.
12748 * alpha-linux-tdep.c: Revert.
12749 * alpha-linux-nat.c: Revert.
12750 * alpha-bsd-tdep.c: Revert.
12751 * alpha-bsd-nat.c: Revert.
12752 * aix-thread.c: Revert.
12753 * agent.c: Revert.
12754 * addrmap.c: Revert.
12755 * ada-varobj.c: Revert.
12756 * ada-valprint.c: Revert.
12757 * ada-typeprint.c: Revert.
12758 * ada-tasks.c: Revert.
12759 * ada-lang.c: Revert.
12760 * aarch64-tdep.c: Revert.
12761 * aarch64-ravenscar-thread.c: Revert.
12762 * aarch64-newlib-tdep.c: Revert.
12763 * aarch64-linux-tdep.c: Revert.
12764 * aarch64-linux-nat.c: Revert.
12765 * aarch64-fbsd-tdep.c: Revert.
12766 * aarch64-fbsd-nat.c: Revert.
12767 * aarch32-linux-nat.c: Revert.
12768
d55e5aa6
TT
127692019-04-05 Tom Tromey <tom@tromey.com>
12770
12771 * ft32-tdep.c: Sort headers.
12772 * frv-tdep.c: Sort headers.
12773 * frv-linux-tdep.c: Sort headers.
12774 * frame.c: Sort headers.
12775 * frame-unwind.c: Sort headers.
12776 * frame-base.c: Sort headers.
12777 * fork-child.c: Sort headers.
12778 * findvar.c: Sort headers.
12779 * findcmd.c: Sort headers.
12780 * filesystem.c: Sort headers.
12781 * filename-seen-cache.h: Sort headers.
12782 * filename-seen-cache.c: Sort headers.
12783 * fbsd-tdep.c: Sort headers.
12784 * fbsd-nat.h: Sort headers.
12785 * fbsd-nat.c: Sort headers.
12786 * f-valprint.c: Sort headers.
12787 * f-typeprint.c: Sort headers.
12788 * f-lang.c: Sort headers.
12789 * extension.h: Sort headers.
12790 * extension.c: Sort headers.
12791 * extension-priv.h: Sort headers.
12792 * expprint.c: Sort headers.
12793 * exec.h: Sort headers.
12794 * exec.c: Sort headers.
12795 * exceptions.c: Sort headers.
12796 * event-top.c: Sort headers.
12797 * event-loop.c: Sort headers.
12798 * eval.c: Sort headers.
12799 * elfread.c: Sort headers.
12800 * dwarf2read.h: Sort headers.
12801 * dwarf2read.c: Sort headers.
12802 * dwarf2loc.c: Sort headers.
12803 * dwarf2expr.h: Sort headers.
12804 * dwarf2expr.c: Sort headers.
12805 * dwarf2-frame.c: Sort headers.
12806 * dwarf2-frame-tailcall.c: Sort headers.
12807 * dwarf-index-write.h: Sort headers.
12808 * dwarf-index-write.c: Sort headers.
12809 * dwarf-index-common.c: Sort headers.
12810 * dwarf-index-cache.h: Sort headers.
12811 * dwarf-index-cache.c: Sort headers.
12812 * dummy-frame.c: Sort headers.
12813 * dtrace-probe.c: Sort headers.
12814 * disasm.h: Sort headers.
12815 * disasm.c: Sort headers.
12816 * disasm-selftests.c: Sort headers.
12817 * dictionary.c: Sort headers.
12818 * dicos-tdep.c: Sort headers.
12819 * demangle.c: Sort headers.
12820 * dcache.h: Sort headers.
12821 * dcache.c: Sort headers.
12822 * darwin-nat.h: Sort headers.
12823 * darwin-nat.c: Sort headers.
12824 * darwin-nat-info.c: Sort headers.
12825 * d-valprint.c: Sort headers.
12826 * d-namespace.c: Sort headers.
12827 * d-lang.c: Sort headers.
12828 * ctf.c: Sort headers.
12829 * csky-tdep.c: Sort headers.
12830 * csky-linux-tdep.c: Sort headers.
12831 * cris-tdep.c: Sort headers.
12832 * cris-linux-tdep.c: Sort headers.
12833 * cp-valprint.c: Sort headers.
12834 * cp-support.c: Sort headers.
12835 * cp-namespace.c: Sort headers.
12836 * cp-abi.c: Sort headers.
12837 * corelow.c: Sort headers.
12838 * corefile.c: Sort headers.
12839 * continuations.c: Sort headers.
12840 * completer.h: Sort headers.
12841 * completer.c: Sort headers.
12842 * complaints.c: Sort headers.
12843 * coffread.c: Sort headers.
12844 * coff-pe-read.c: Sort headers.
12845 * cli-out.h: Sort headers.
12846 * cli-out.c: Sort headers.
12847 * charset.c: Sort headers.
12848 * c-varobj.c: Sort headers.
12849 * c-valprint.c: Sort headers.
12850 * c-typeprint.c: Sort headers.
12851 * c-lang.c: Sort headers.
12852 * buildsym.c: Sort headers.
12853 * buildsym-legacy.c: Sort headers.
12854 * build-id.h: Sort headers.
12855 * build-id.c: Sort headers.
12856 * btrace.c: Sort headers.
12857 * bsd-uthread.c: Sort headers.
12858 * breakpoint.h: Sort headers.
12859 * breakpoint.c: Sort headers.
12860 * break-catch-throw.c: Sort headers.
12861 * break-catch-syscall.c: Sort headers.
12862 * break-catch-sig.c: Sort headers.
12863 * blockframe.c: Sort headers.
12864 * block.c: Sort headers.
12865 * bfin-tdep.c: Sort headers.
12866 * bfin-linux-tdep.c: Sort headers.
12867 * bfd-target.c: Sort headers.
12868 * bcache.c: Sort headers.
12869 * ax-general.c: Sort headers.
12870 * ax-gdb.h: Sort headers.
12871 * ax-gdb.c: Sort headers.
12872 * avr-tdep.c: Sort headers.
12873 * auxv.c: Sort headers.
12874 * auto-load.c: Sort headers.
12875 * arm-wince-tdep.c: Sort headers.
12876 * arm-tdep.c: Sort headers.
12877 * arm-symbian-tdep.c: Sort headers.
12878 * arm-pikeos-tdep.c: Sort headers.
12879 * arm-obsd-tdep.c: Sort headers.
12880 * arm-nbsd-tdep.c: Sort headers.
12881 * arm-nbsd-nat.c: Sort headers.
12882 * arm-linux-tdep.c: Sort headers.
12883 * arm-linux-nat.c: Sort headers.
12884 * arm-fbsd-tdep.c: Sort headers.
12885 * arm-fbsd-nat.c: Sort headers.
12886 * arm-bsd-tdep.c: Sort headers.
12887 * arch-utils.c: Sort headers.
12888 * arc-tdep.c: Sort headers.
12889 * arc-newlib-tdep.c: Sort headers.
12890 * annotate.h: Sort headers.
12891 * annotate.c: Sort headers.
12892 * amd64-windows-tdep.c: Sort headers.
12893 * amd64-windows-nat.c: Sort headers.
12894 * amd64-tdep.c: Sort headers.
12895 * amd64-sol2-tdep.c: Sort headers.
12896 * amd64-obsd-tdep.c: Sort headers.
12897 * amd64-obsd-nat.c: Sort headers.
12898 * amd64-nbsd-tdep.c: Sort headers.
12899 * amd64-nbsd-nat.c: Sort headers.
12900 * amd64-nat.c: Sort headers.
12901 * amd64-linux-tdep.c: Sort headers.
12902 * amd64-linux-nat.c: Sort headers.
12903 * amd64-fbsd-tdep.c: Sort headers.
12904 * amd64-fbsd-nat.c: Sort headers.
12905 * amd64-dicos-tdep.c: Sort headers.
12906 * amd64-darwin-tdep.c: Sort headers.
12907 * amd64-bsd-nat.c: Sort headers.
12908 * alpha-tdep.c: Sort headers.
12909 * alpha-obsd-tdep.c: Sort headers.
12910 * alpha-nbsd-tdep.c: Sort headers.
12911 * alpha-mdebug-tdep.c: Sort headers.
12912 * alpha-linux-tdep.c: Sort headers.
12913 * alpha-linux-nat.c: Sort headers.
12914 * alpha-bsd-tdep.c: Sort headers.
12915 * alpha-bsd-nat.c: Sort headers.
12916 * aix-thread.c: Sort headers.
12917 * agent.c: Sort headers.
12918 * addrmap.c: Sort headers.
12919 * ada-varobj.c: Sort headers.
12920 * ada-valprint.c: Sort headers.
12921 * ada-typeprint.c: Sort headers.
12922 * ada-tasks.c: Sort headers.
12923 * ada-lang.c: Sort headers.
12924 * aarch64-tdep.c: Sort headers.
12925 * aarch64-ravenscar-thread.c: Sort headers.
12926 * aarch64-newlib-tdep.c: Sort headers.
12927 * aarch64-linux-tdep.c: Sort headers.
12928 * aarch64-linux-nat.c: Sort headers.
12929 * aarch64-fbsd-tdep.c: Sort headers.
12930 * aarch64-fbsd-nat.c: Sort headers.
12931 * aarch32-linux-nat.c: Sort headers.
12932
699bd4cf
TT
129332019-04-04 Tom Tromey <tom@tromey.com>
12934
12935 * varobj.c (varobj_create): Update.
12936 * rust-exp.y (struct rust_parser) <update_innermost_block,
12937 lookup_symbol>: New methods.
12938 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
12939 Rename.
12940 (rust_parser::rust_lookup_type)
12941 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
12942 * printcmd.c (display_command, do_one_display): Update.
12943 * parser-defs.h (struct parser_state) <parser_state>: Add
12944 "tracker" parameter.
12945 (block_tracker): New member.
12946 (class innermost_block_tracker) <innermost_block_tracker>: Add
12947 "types" parameter.
12948 <reset>: Remove method.
12949 (innermost_block): Don't declare.
12950 (null_post_parser): Update.
12951 * parse.c (innermost_block): Remove global.
12952 (write_dollar_variable): Update.
12953 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
12954 Remove "tracker_types" parameter.
12955 (parse_expression): Add "tracker" parameter.
12956 (parse_expression_for_completion): Update.
12957 (null_post_parser): Add "tracker" parameter.
12958 * p-exp.y: Update rules.
12959 * m2-exp.y: Update rules.
12960 * language.h (struct language_defn) <la_post_parser>: Add
12961 "tracker" parameter.
12962 * go-exp.y: Update rules.
12963 * f-exp.y: Update rules.
12964 * expression.h (parse_expression, parse_exp_1): Add "tracker"
12965 parameter.
12966 * d-exp.y: Update rules.
12967 * c-exp.y: Update rules.
12968 * breakpoint.c (set_breakpoint_condition): Create an
12969 innermost_block_tracker.
12970 (watch_command_1): Likewise.
12971 * ada-lang.c (resolve): Add "tracker" parameter.
12972 (resolve_subexp): Likewise.
12973 * ada-exp.y (write_var_from_sym): Update.
12974
dac43e32
TT
129752019-04-04 Tom Tromey <tom@tromey.com>
12976
12977 * type-stack.h: New file.
12978 * type-stack.c: New file.
12979 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
12980 type-stack.h.
12981 (insert_into_type_stack, insert_type, push_type, push_type_int)
12982 (insert_type_address_space, pop_type, pop_type_int)
12983 (pop_typelist, pop_type_stack, append_type_stack)
12984 (push_type_stack, get_type_stack, push_typelist)
12985 (follow_type_instance_flags, follow_types): Don't declare.
12986 * parse.c (type_stack): Remove global.
12987 (parse_exp_in_context): Update.
12988 (insert_into_type_stack, insert_type, push_type, push_type_int)
12989 (insert_type_address_space, pop_type, pop_type_int)
12990 (pop_typelist, pop_type_stack, append_type_stack)
12991 (push_type_stack, get_type_stack, push_typelist)
12992 (follow_type_instance_flags, follow_types): Remove (moved to
12993 type-stack.c).
12994 * f-exp.y (type_stack): New global.
12995 Update rules.
12996 (push_kind_type, f_parse): Update.
12997 * d-exp.y (type_stack): New global.
12998 Update rules.
12999 (d_parse): Update.
13000 * c-exp.y (struct c_parse_state) <type_stack>: New member.
13001 Update rules.
13002 * Makefile.in (COMMON_SFILES): Add type-stack.c.
13003 (HFILES_NO_SRCDIR): Add type-stack.h.
13004
2a612529
TT
130052019-04-04 Tom Tromey <tom@tromey.com>
13006
13007 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
13008 (rust_parser::convert_ast_to_expression, rust_parse)
13009 (rust_lex_test_completion, rust_lex_tests): Update.
13010 * parser-defs.h (struct expr_completion_state): New.
13011 (struct parser_state) <parser_state>: Add completion parameter.
13012 <mark_struct_expression, mark_completion_tag>: New methods.
13013 <parse_completion, m_completion_state>: New members.
13014 (prefixify_expression, null_post_parser): Update.
13015 (mark_struct_expression, mark_completion_tag): Don't declare.
13016 * parse.c (parse_completion, expout_last_struct)
13017 (expout_tag_completion_type, expout_completion_name): Remove
13018 globals.
13019 (parser_state::mark_struct_expression)
13020 (parser_state::mark_completion_tag): Now methods.
13021 (prefixify_expression): Add last_struct parameter.
13022 (prefixify_subexp): Likewise.
13023 (parse_exp_1): Update.
13024 (parse_exp_in_context): Add cstate parameter. Update.
13025 (parse_expression_for_completion): Create an
13026 expr_completion_state.
13027 (null_post_parser): Add "completion" parameter.
13028 * p-exp.y: Update rules.
13029 (yylex): Update.
13030 * language.h (struct language_defn) <la_post_parser>: Add
13031 "completing" parameter.
13032 * go-exp.y: Update rules.
13033 (lex_one_token): Update.
13034 * expression.h (parse_completion): Don't declare.
13035 * d-exp.y: Update rules.
13036 (lex_one_token): Update rules.
13037 * c-exp.y: Update rules.
13038 (lex_one_token): Update.
13039 * ada-lang.c (resolve): Add "parse_completion" parameter.
13040 (resolve_subexp): Likewise.
13041 (ada_resolve_function): Likewise.
13042
43476f0b
TT
130432019-04-04 Tom Tromey <tom@tromey.com>
13044
13045 * parser-defs.h (struct parser_state) <start_arglist,
13046 end_arglist>: New methods.
13047 <arglist_len, m_funcall_chain>: New members.
13048 (arglist_len, start_arglist, end_arglist): Don't declare.
13049 * parse.c (arglist_len, funcall_chain): Remove global.
13050 (start_arglist, end_arglist): Remove functions.
13051 (parse_exp_in_context): Update.
13052 * p-exp.y: Update rules.
13053 * m2-exp.y: Update rules.
13054 * go-exp.y: Update rules.
13055 * f-exp.y: Update rules.
13056 * d-exp.y: Update rules.
13057 * c-exp.y: Update rules.
13058
5776fca3
TT
130592019-04-04 Tom Tromey <tom@tromey.com>
13060
13061 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
13062 lex_operator, push_back>: New methods.
13063 Update all rules.
13064 (rust_parser::lex_hex, lex_escape): Rename and update.
13065 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
13066 (rust_parser::lex_operator): Rename and update.
13067 (rust_parser::lex_number, rustyylex, rustyyerror)
13068 (rust_lex_test_init, rust_lex_test_sequence)
13069 (rust_lex_test_push_back, rust_lex_tests): Update.
13070 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
13071 parameter.
13072 <lexptr, prev_lexptr>: New members.
13073 (lexptr, prev_lexptr): Don't declare.
13074 * parse.c (lexptr, prev_lexptr): Remove globals.
13075 (parse_exp_in_context): Update.
13076 * p-exp.y (yylex, yyerror): Update.
13077 * m2-exp.y (parse_number, yylex, yyerror): Update.
13078 * go-exp.y (lex_one_token, yyerror): Update.
13079 * f-exp.y (match_string_literal, yylex, yyerror): Update.
13080 * d-exp.y (lex_one_token, yyerror): Update.
13081 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
13082 (lex_one_token, yyerror): Update.
13083 * ada-lex.l (YY_INPUT): Update.
13084 (rewind_to_char): Update.
13085 * ada-exp.y (yyerror): Update.
13086
8621b685
TT
130872019-04-04 Tom Tromey <tom@tromey.com>
13088
13089 * rust-exp.y (rustyylex, rust_lex_tests): Update.
13090 * parser-defs.h (struct parser_state) <parser_state>: Add new
13091 parameter.
13092 <comma_terminates>: New member.
13093 (comma_terminates): Don't declare global.
13094 * parse.c (comma_terminates): Remove global.
13095 (parse_exp_in_context): Update.
13096 * p-exp.y (yylex): Update.
13097 * m2-exp.y (yylex): Update.
13098 * go-exp.y (lex_one_token): Update.
13099 * f-exp.y (yylex): Update.
13100 * d-exp.y (lex_one_token): Update.
13101 * c-exp.y (lex_one_token): Update.
13102 * ada-lex.l: Update.
13103
28aaf3fd
TT
131042019-04-04 Tom Tromey <tom@tromey.com>
13105
13106 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
13107 (rustyylex, rust_lex_test_init, rust_lex_test_one)
13108 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
13109 * parser-defs.h (paren_depth): Don't declare.
13110 * parse.c (paren_depth): Remove global.
13111 (parse_exp_in_context): Update.
13112 * p-exp.y (paren_depth): New global.
13113 (pascal_parse): Initialize it.
13114 * m2-exp.y (paren_depth): New global.
13115 (m2_parse): Initialize it.
13116 * go-exp.y (paren_depth): New global.
13117 (go_parse): Initialize it.
13118 * f-exp.y (paren_depth): New global.
13119 (f_parse): Initialize it.
13120 * d-exp.y (paren_depth): New global.
13121 (d_parse): Initialize it.
13122 * c-exp.y (paren_depth): New global.
13123 (c_parse): Initialize it.
13124 * ada-lex.l (paren_depth): New global.
13125 (lexer_init): Initialize it.
13126
1e58a4a4
TT
131272019-04-04 Tom Tromey <tom@tromey.com>
13128
13129 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
13130 (rust_parser::convert_ast_to_type)
13131 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
13132 * parser-defs.h (struct parser_state) <parser_state>: Add
13133 parameters. Initialize new members.
13134 <expression_context_block, expression_context_pc>: New members.
13135 * parse.c (expression_context_block, expression_context_pc):
13136 Remove globals.
13137 (parse_exp_in_context): Update.
13138 * p-exp.y: Update all rules.
13139 (yylex): Update.
13140 * m2-exp.y: Update all rules.
13141 (yylex): Update.
13142 * go-exp.y (yylex): Update.
13143 * f-exp.y (yylex): Update.
13144 * d-exp.y: Update all rules.
13145 (yylex): Update.
13146 * c-exp.y: Update all rules.
13147 (lex_one_token, classify_name, yylex, c_parse): Update.
13148 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
13149
37eedb39
TT
131502019-04-04 Tom Tromey <tom@tromey.com>
13151
13152 * gdbarch.h, gdbarch.c: Rebuild.
13153 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
13154 * stap-probe.h:
13155 (struct stap_parse_info): Replace "parser_state" with
13156 "expr_builder".
13157 * parser-defs.h (struct expr_builder): Rename from "parser_state".
13158 (parser_state): New class.
13159 * parse.c (expr_builder): Rename.
13160 (expr_builder::release): Rename.
13161 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
13162 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
13163 (write_exp_elt_longcst, write_exp_elt_floatcst)
13164 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
13165 (write_exp_string_vector, write_exp_bitstring)
13166 (write_exp_msymbol, mark_struct_expression)
13167 (write_dollar_variable)
13168 (insert_type_address_space, increase_expout_size): Replace
13169 "parser_state" with "expr_builder".
13170 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
13171 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
13172 "parser_state" with "expr_builder".
13173
73923d7e
TT
131742019-04-04 Tom Tromey <tom@tromey.com>
13175
13176 * rust-exp.y: Replace "parse_language" with method call.
13177 * p-exp.y:
13178 (yylex): Replace "parse_language" with method call.
13179 * m2-exp.y:
13180 (yylex): Replace "parse_language" with method call.
13181 * go-exp.y (classify_name): Replace "parse_language" with method
13182 call.
13183 * f-exp.y (yylex): Replace "parse_language" with method call.
13184 * d-exp.y (lex_one_token): Replace "parse_language" with method
13185 call.
13186 * c-exp.y:
13187 (lex_one_token, classify_name, yylex): Replace "parse_language"
13188 with method call.
13189 * ada-exp.y (find_primitive_type, type_char)
13190 (type_system_address): Replace "parse_language" with method call.
13191
fa9f5be6
TT
131922019-04-04 Tom Tromey <tom@tromey.com>
13193
13194 * rust-exp.y: Replace "parse_gdbarch" with method call.
13195 * parse.c (write_dollar_variable, insert_type_address_space):
13196 Replace "parse_gdbarch" with method call.
13197 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
13198 call.
13199 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
13200 call.
13201 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
13202 "parse_gdbarch" with method call.
13203 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
13204 with method call.
13205 * f-exp.y (parse_type, parse_f_type, yylex): Replace
13206 "parse_gdbarch" with method call.
13207 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
13208 "parse_gdbarch" with method call.
13209 * c-exp.y (parse_type, parse_number, classify_name): Replace
13210 "parse_gdbarch" with method call.
13211 * ada-lex.l: Replace "parse_gdbarch" with method call.
13212 * ada-exp.y (parse_type, find_primitive_type, type_char)
13213 (type_system_address): Replace "parse_gdbarch" with method call.
13214
1201a264
TT
132152019-04-04 Tom Tromey <tom@tromey.com>
13216
13217 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
13218 * stap-probe.c (stap_parse_argument): Update.
13219 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
13220 initial_size parameter.
13221 * rust-exp.y (rust_lex_tests): Update.
13222 * parse.c (parser_state): Update.
13223 (parse_exp_in_context): Update.
13224 * parser-defs.h (struct parser_state) <parser_state>: Remove
13225 "initial_size" parameter.
13226
e3980ce2
TT
132272019-04-04 Tom Tromey <tom@tromey.com>
13228
13229 * parser-defs.h (increase_expout_size): Don't declare.
13230 * parse.c (increase_expout_size): Now static.
13231
e9f8e3f1
TS
132322019-04-04 Thomas Schwinge <thomas@codesourcery.com>
13233
13234 * gnu-nat.c (gnu_nat_target::wait): Fix
13235 target_waitstatus_to_string call.
13236
d7df6549
AB
132372019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
13238
13239 * eval.c (evaluate_subexp_standard): Handle internal functions
13240 during Fortran function call handling.
13241
8bdc1658
AB
132422019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
13243
13244 * NEWS: Mention new internal functions.
13245 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
13246 (read_base_type): Use dwarf2_init_complex_target_type.
13247 * value.c (creal_internal_fn): New function.
13248 (cimag_internal_fn): New function.
13249 (_initialize_values): Register new internal functions.
13250
c29705b7
PW
132512019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13252
13253 * infrun.c (stop_all_threads): If debug_infrun, always
13254 trace the wait status after wait_one, using
13255 target_waitstatus_to_string and target_pid_to_str.
13256 (handle_inferior_event): Replace various trace of
13257 wait status kind by a single trace.
13258 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
13259 wait status kind image by target_waitstatus_to_string.
13260 * target/waitstatus.c (target_waitstatus_to_string): Fix
13261 obsolete comment.
13262
05caa1d2
TT
132632019-04-01 Tom Tromey <tromey@adacore.com>
13264
13265 PR symtab/23331:
13266 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
13267
9d1447e0
SDJ
132682019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
13269 Pedro Alves <palves@redhat.com>
13270
13271 * top.c (quit_force): Call 'finalize_values'.
13272 * value.c (finalize_values): New function.
13273 * value.h (finalize_values): Declare.
13274
7734102d
EZ
132752019-03-30 Eli Zaretskii <eliz@gnu.org>
13276
13277 * NEWS: Announce $_gdb_major and $_gdb_minor.
13278
13279 * top.c (init_gdb_version_vars): New function.
13280 (gdb_init): Call init_gdb_version_vars.
13281
188e1fa9
TT
132822019-03-29 Tom Tromey <tromey@adacore.com>
13283
13284 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
13285 help text. Remove dead code.
13286
2880242d
KS
132872019-03-29 Keith Seitz <keiths@redhat.com>
13288
13289 From Siddhesh Poyarekar:
13290 * f-lang.h (f77_get_upperbound): Return LONGEST.
13291 (f77_get_lowerbound): Likewise.
13292 * f-typeprint.c (f_type_print_varspec_suffix): Expand
13293 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
13294 print them.
13295 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
13296 plongest to format print it.
13297 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
13298 (f77_get_upperbound): Likewise.
13299 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
13300 LOWER_BOUND to LONGEST.
13301 (f77_create_arrayprint_offset_tbl): Likewise.
13302
cc1defb1
KS
133032019-03-29 Keith Seitz <keiths@redhat.com>
13304
13305 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
13306 %s/pulongest for TYPE_LENGTH instead of %d in format
13307 strings.
13308 * ada-typerint.c (ada_print_type): Likewise.
13309 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
13310 * compile/compile-c-support.c (generate_register_struct): Likewise.
13311 * gdbtypes.c (recursive_dump_type): Likewise.
13312 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
13313 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
13314 instead of %d in format strings.
13315 * riscv-tdep.c (riscv_type_alignment): Cast second argument
13316 to std::min to ULONGEST.
13317 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
13318 instead of %d in format strings.
13319 * tracepoint.c (info_scope_command): Likewise.
13320 * typeprint.c (print_offset_data::update)
13321 (print_offset_data::finish): Likewise.
13322 * xtensa-tdep.c (xtensa_store_return_value)
13323 (xtensa_push_dummy_call): Likewise.
13324
e432ccf1
JT
133252019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
13326
13327 * windows-nat.c (display_selector): Fixed format specifications
13328 for 64-bit Cygwin.
13329
65d2b333
PW
133302019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13331
13332 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
13333
f489207e
SL
133342019-03-28 Sandra Loosemore <sandra@codesourcery.com>
13335
13336 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
13337 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
13338 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
13339 (nios2_linux_init_abi): Install it.
13340
bffa1015
AH
133412019-03-28 Alan Hayward <alan.hayward@arm.com>
13342
13343 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
13344
fc96163a
AH
133452019-03-28 Alan Hayward <alan.hayward@arm.com>
13346
13347 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
13348
20dc7e9b
PW
133492019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13350 Tom Tromey <tromey@adacore.com>
13351
13352 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
13353
7f5331a8
JB
133542019-03-26 Joel Brobecker <brobecker@adacore.com>
13355
13356 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
13357 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
13358 method to compute the bounds of range types. Also print "[evaluated]"
13359 if the bounds' values come from a dynamic evaluation.
13360
18c77628
AB
133612019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
13362
13363 * cp-valprint.c (cp_print_value_fields): Don't print trailing
13364 whitespace when pretty printing is on.
13365
53c973f2
AH
133662019-03-26 Alan Hayward <alan.hayward@arm.com>
13367
e79be6e5 13368 * ppc-linux-nat.c: Add include.
53c973f2 13369
d851aa71
AH
133702019-03-26 Alan Hayward <alan.hayward@arm.com>
13371
e79be6e5 13372 * NEWS: Mention AArch64 Pointer Authentication.
d851aa71 13373
2fe7bab7
AH
133742019-03-26 Alan Hayward <alan.hayward@arm.com>
13375
e79be6e5 13376 * arm-linux-nat.c: Add include.
2fe7bab7 13377
068ef30e
SM
133782019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
13379
13380 * source-cache.c (source_cache::get_source_lines): Re-read
13381 fullname after calling open_source_file.
13382
81a24d04
JB
133832019-03-25 John Baldwin <jhb@FreeBSD.org>
13384
13385 * NEWS: Mention TLS support for FreeBSD.
13386
79e7ae11
TT
133872019-03-25 Tom Tromey <tromey@adacore.com>
13388
13389 * minsyms.c (BUNCH_SIZE): Update comment.
13390 (~minimal_symbol_reader): Remove old comment.
13391 (compact_minimal_symbols): Update comment.
13392 (minimal_symbol_reader::install): Remove old comment. Update
13393 other comments.
13394
d45963c2
AH
133952019-03-25 Alan Hayward <alan.hayward@arm.com>
13396
13397 * s390-linux-nat.c: Add include.
13398
0f83012e
AH
133992019-03-25 Alan Hayward <alan.hayward@arm.com>
13400
13401 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
13402 Call linux_get_hwcap.
13403 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
13404 Likewise.
13405 (aarch64_linux_get_hwcap): Remove function.
13406 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
13407 declaration.
13408 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
13409 linux_get_hwcap.
13410 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
13411 * linux-tdep.c (linux_get_hwcap): Add function.
13412 (linux_get_hwcap2): Likewise.
13413 * linux-tdep.h (linux_get_hwcap): Add declaration.
13414 (linux_get_hwcap2): Likewise.
13415 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
13416 (ppc_linux_get_hwcap2): Likewise.
13417 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
13418 linux_get_hwcap.
13419 (ppc_linux_nat_target::insert_watchpoint): Likewise.
13420 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
13421 (ppc_linux_nat_target::read_description): Likewise.
13422 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
13423 * s390-linux-nat.c: Likewise.
13424 * s390-linux-tdep.c (s390_core_read_description): Likewise.
13425
6640a367
TT
134262019-03-24 Tom Tromey <tom@tromey.com>
13427
13428 * ada-lang.c (standard_lookup): Simplify initialization.
13429 (ada_lookup_symbol_nonlocal): Simplify return.
13430 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
13431 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
13432 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
13433 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
13434 initialization.
13435 * solib.c (solib_global_lookup): Simplify.
13436 * symtab.c (null_block_symbol): Remove.
13437 (symbol_cache_lookup): Simplify returns.
13438 (lookup_language_this): Simplify returns.
13439 (lookup_symbol_aux): Simplify return.
13440 (lookup_local_symbol): Simplify returns.
13441 (lookup_global_symbol_from_objfile): Simplify return.
13442 (lookup_symbol_in_objfile_symtabs)
13443 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
13444 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
13445 (lookup_static_symbol, lookup_global_symbol): Simplify return.
13446 * cp-namespace.c (cp_lookup_bare_symbol)
13447 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
13448 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
13449 (cp_lookup_nested_symbol): Don't use null_block_symbol.
13450 (cp_lookup_symbol_via_imports): Simplify initialization.
13451 (find_symbol_in_baseclass): Likewise.
13452 * symtab.h (null_block_symbol): Remove.
13453 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
13454 (d_lookup_nested_symbol, d_lookup_symbol_imports)
13455 (d_lookup_symbol_module): Likewise.
13456 (find_symbol_in_baseclass): Simplify initialization.
13457
a930ebcd
TT
134582019-03-24 Tom Tromey <tom@tromey.com>
13459
13460 * expression.h: Don't include symtab.h.
13461 (struct block): Forward declare.
13462
582942f4
TT
134632019-03-24 Tom Tromey <tom@tromey.com>
13464
13465 * c-exp.y (typebase): Remove casts.
13466 * gdbtypes.c (lookup_unsigned_typename, )
13467 (lookup_signed_typename): Remove cast.
13468 * eval.c (parse_to_comma_and_eval): Remove cast.
13469 * parse.c (write_dollar_variable): Remove cast.
13470 * block.h (struct block) <superblock>: Now const.
13471 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
13472 * psymtab.c (psym_map_matching_symbols): Make "block" const.
13473 (map_block): Make "block" const.
13474 * symfile.h (struct quick_symbol_functions)
13475 <map_matching_symbols>: Constify block argument to "callback".
13476 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
13477 const.
13478 (find_pc_sect_compunit_symtab): Make "b" const.
13479 (find_symbol_at_address): Likewise.
13480 (search_symbols): Likewise.
13481 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
13482 (dw2_debug_names_lookup_symbol): Likewise.
13483 (dw2_map_matching_symbols): Update.
13484 * p-valprint.c (pascal_val_print): Remove "block".
13485 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
13486 (aux_add_nonlocal_symbols): Make "block" const.
13487 (resolve_subexp): Remove cast.
13488 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
13489 const.
13490 (iterate_over_file_blocks): Likewise.
13491 * f-exp.y (%union) <bval>: Remove.
13492 * coffread.c (patch_opaque_types): Make "b" const.
13493 * spu-tdep.c (spu_catch_start): Make "block" const.
13494 * c-valprint.c (print_unpacked_pointer): Remove "block".
13495 * symmisc.c (dump_symtab_1): Make "b" const.
13496 (block_depth): Make "block" const.
13497 * d-exp.y (%union) <bval>: Remove.
13498 * cp-support.h (cp_lookup_rtti_type): Update.
13499 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
13500 * psymtab.c (psym_lookup_symbol): Make "block" const.
13501 (maintenance_check_psymtabs): Make "b" const.
13502 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
13503 (enumerate_locals, enumerate_args): Update.
13504 * python/py-symtab.c (stpy_global_block): Make "block" const.
13505 (stpy_static_block): Likewise.
13506 * inline-frame.c (block_starting_point_at): Make "new_block"
13507 const.
13508 * block.c (find_block_in_blockvector): Make return type const.
13509 (blockvector_for_pc_sect): Make "b" const.
13510 (find_block_in_blockvector): Make "b" const.
13511
7ad417dd
TT
135122019-03-23 Tom Tromey <tom@tromey.com>
13513
13514 * varobj.c (varobj_create): Update.
13515 * symfile.c (clear_symtab_users): Don't reset innermost_block.
13516 * printcmd.c (display_command, do_one_display): Don't reset
13517 innermost_block.
13518 * parser-defs.h (enum innermost_block_tracker_type): Move to
13519 expression.h.
13520 (innermost_block): Update comment.
13521 * parse.c (parse_exp_1): Add tracker_types parameter.
13522 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
13523 tracker_types parameter. Reset innermost_block.
13524 (parse_exp_in_context): Remove.
13525 (parse_expression_for_completion): Update.
13526 * objfiles.c (~objfile): Don't reset expression_context_block or
13527 innermost_block.
13528 * expression.h (enum innermost_block_tracker_type): Move from
13529 parser-defs.h.
13530 (parse_exp_1): Add tracker_types parameter.
13531 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
13532 reset innermost_block.
13533
b366c208
TT
135342019-03-23 Tom Tromey <tom@tromey.com>
13535
13536 * objfiles.h: Include bcache.h.
13537
9bb9b2f9
TT
135382019-03-23 Tom Tromey <tom@tromey.com>
13539
13540 * linespec.c (get_current_search_block): Use
13541 scoped_restore_current_language.
13542 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
13543
59c28372
AH
135442019-03-22 Alan Hayward <alan.hayward@arm.com>
13545 Jiong Wang <jiong.wang@arm.com>
13546
13547 * aarch64-linux-tdep.c
13548 (aarch64_linux_iterate_over_regset_sections): Check for pauth
13549 section.
13550 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
13551
17e116a7
AH
135522019-03-22 Alan Hayward <alan.hayward@arm.com>
13553 Jiong Wang <jiong.wang@arm.com>
13554
13555 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
13556 instructions.
13557 (aarch64_analyze_prologue_test): Add PACIASP test.
13558 (aarch64_prologue_prev_register): Unmask PC value.
13559
11e1b75f
AH
135602019-03-22 Alan Hayward <alan.hayward@arm.com>
13561 Jiong Wang <jiong.wang@arm.com>
13562
13563 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
13564 (aarch64_dwarf2_prev_register): Unmask PC value.
13565 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
13566 (aarch64_execute_dwarf_cfa_vendor_op): Check for
13567 DW_CFA_AARCH64_negate_ra_state.
13568 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
13569
34dcc7cf
AH
135702019-03-22 Alan Hayward <alan.hayward@arm.com>
13571 Jiong Wang <jiong.wang@arm.com>
13572
13573 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
13574 registers.
13575 (aarch64_pseudo_register_name): Likewise.
13576 (aarch64_pseudo_register_type): Likewise.
13577 (aarch64_pseudo_register_reggroup_p): Likewise.
13578 (aarch64_gdbarch_init): Add pauth registers.
13579 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
13580 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
13581 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
13582 (struct gdbarch_tdep): Add regnum for ra_state.
13583
1ef53e6b
AH
135842019-03-22 Alan Hayward <alan.hayward@arm.com>
13585 Jiong Wang <jiong.wang@arm.com>
13586
13587 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
13588
76bed0fd
AH
135892019-03-22 Alan Hayward <alan.hayward@arm.com>
13590 Jiong Wang <jiong.wang@arm.com>
13591
13592 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
13593 function.
13594 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
13595 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
13596 (aarch64_gdbarch_init): Add puth registers.
13597 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
13598 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
13599 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
13600
ee4fbcfa
AH
136012019-03-22 Alan Hayward <alan.hayward@arm.com>
13602 Jiong Wang <jiong.wang@arm.com>
13603
13604 * aarch64-linux-nat.c
13605 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
13606 * aarch64-linux-tdep.c
13607 (aarch64_linux_core_read_description): Likewise.
13608 (aarch64_linux_get_hwcap): New function.
13609 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
13610 (aarch64_linux_get_hwcap): New declaration.
13611
6dc0ebde
AH
136122019-03-22 Alan Hayward <alan.hayward@arm.com>
13613 Jiong Wang <jiong.wang@arm.com>
13614
13615 * aarch64-linux-nat.c
13616 (aarch64_linux_nat_target::read_description): Add pauth param.
13617 * aarch64-linux-tdep.c
13618 (aarch64_linux_core_read_description): Likewise.
13619 * aarch64-tdep.c (struct target_desc): Add in pauth.
13620 (aarch64_read_description): Add pauth param.
13621 (aarch64_gdbarch_init): Likewise.
13622 * aarch64-tdep.h (aarch64_read_description): Likewise.
13623 * arch/aarch64.c (aarch64_create_target_description): Likewise.
13624 * arch/aarch64.h (aarch64_create_target_description): Likewise.
13625 * features/Makefile: Add new files.
13626 * features/aarch64-pauth.c: New file.
13627 * features/aarch64-pauth.xml: New file.
13628
595915c1
TT
136292019-03-20 Tom Tromey <tromey@adacore.com>
13630
13631 * infrun.c (handle_inferior_event): Rename from
13632 handle_inferior_event_1. Create a scoped_value_mark.
13633 (handle_inferior_event): Remove.
13634
4c7d57e7
TT
136352019-03-19 Tom Tromey <tromey@adacore.com>
13636
13637 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
13638 * infrun.h (print_stop_event): Add "displays" parameter.
13639 * infrun.c (print_stop_event): Add "displays" parameter.
13640
cb246234
PA
136412019-03-19 Pedro Alves <palves@redhat.com>
13642
13643 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
13644 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
13645 to -1. Fix TABs vs spaces.
13646 (tui_ui_out::tui_ui_out): Don't initialize fields here.
13647 * tui/tui-out.h (tui_ui_out) Add intro comments.
13648 <m_line, m_start_of_line>: In-class initialize, and add describing
13649 comment.
13650
3a0e45b2
AH
136512019-03-18 Alan Hayward <alan.hayward@arm.com>
13652
13653 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
13654 variable names.
13655 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
13656
5371b850
PA
136572019-03-18 Pedro Alves <palves@redhat.com>
13658 Eli Zaretskii <eliz@gnu.org>
13659
13660 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
13661 m_line and m_start_of_line.
13662
b17c4cd0
EZ
136632019-03-18 Eli Zaretskii <eliz@gnu.org>
13664
13665 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
13666 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
13667 it returns a newline. This fixes a regression in TU mode, whereby
13668 the next line is output on the same screen line as the user input.
13669
4bd56d18
TT
136702019-03-18 Tom Tromey <tromey@adacore.com>
13671
13672 * minsyms.c (minimal_symbol_reader::install): Remove call to
13673 obstack_blank.
13674
55c10aca
PA
136752019-03-18 Pedro Alves <palves@redhat.com>
13676
13677 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
13678 New globals.
13679 (apply_style): New, factored out from ...
13680 (apply_ansi_escape): ... this. Handle reverse video mode.
13681 (tui_set_reverse_mode): New function.
13682 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
13683 * tui/tui-winsource.c (tui_show_source_line): Use
13684 tui_set_reverse_mode instead of setting A_STANDOUT.
13685 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
13686 New setter methods.
13687
647bb750
HD
136882019-03-18 Hannes Domani <ssbssa@yahoo.de>
13689
13690 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
13691 Handle tabs.
13692
bff8c71f
TT
136932019-03-18 Tom Tromey <tromey@adacore.com>
13694
13695 * ada-lang.c (empty_array): Add "high" parameter.
13696 (ada_evaluate_subexp): Update.
13697
58785d98
ST
136982019-03-17 Sergei Trofimovich <siarheit@google.com>
13699
13700 * unittests/string_view-selftests.c: Define
13701 _initialize_string_view_selftests unconditionally.
13702
d4cbef22
ВМ
137032019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
13704
13705 PR gdb/24350
13706 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
13707
fce4c071
ВМ
137082019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
13709
13710 PR gdb/24351
13711 * windows-nat.c (display_selector): Fix format specifiers.
13712
f7f0a123
EZ
137132019-03-17 Eli Zaretskii <eliz@gnu.org>
13714
13715 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
13716 tui_refill_source_window instead of tui_refresh_win, to update the
13717 current execution line. This fixes redisplay of the current line
13718 when stepping through the code with "next" or "step".
13719
ab42892f
EZ
137202019-03-16 Eli Zaretskii <eliz@gnu.org>
13721
13722 * source-cache.c (source_cache::get_source_lines): Call
13723 find_source_lines to initialize s->nlines. This fixes vertical
13724 scrolling of TUI source window when the DOWN arrow is pressed.
13725
8d8c087f
PW
137262019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13727
13728 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
13729 linux-thread-db.c (_initialize_thread_db): Likewise.
13730
798e1c30
EZ
137312019-03-16 Eli Zaretskii <eliz@gnu.org>
13732
13733 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
13734 wclrtoeol in tui_show_source_line". This reverts changes made in
13735 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
13736
eefba3da
TT
137372019-03-15 Tom Tromey <tom@tromey.com>
13738
13739 * symtab.h (struct minimal_symbol): Derive from
13740 general_symbol_info.
13741 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
13742 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
13743 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
13744 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
13745 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
13746 (MSYMBOL_SEARCH_NAME): Update.
13747 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
13748 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
13749 * minsyms.c (minimal_symbol_reader::record_full): Update.
13750
0de2420c
TT
137512019-03-15 Tom Tromey <tom@tromey.com>
13752
13753 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
13754
042d75e4
TT
137552019-03-15 Tom Tromey <tom@tromey.com>
13756
13757 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
13758 unique_xmalloc_ptr.
13759 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
13760 Update.
13761 * minsyms.c (lookup_minimal_symbol_by_pc_section)
13762 (build_minimal_symbol_hash_tables)
13763 (minimal_symbol_reader::install): Update.
13764
db92718b
TT
137652019-03-15 Tom Tromey <tom@tromey.com>
13766
13767 * symtab.c (create_demangled_names_hash): Update.
13768 (symbol_set_names): Update.
13769 * objfiles.h (struct objfile_per_bfd_storage)
13770 <demangled_names_hash>: Now an htab_up.
13771 * objfiles.c (objfile_per_bfd_storage): Simplify.
13772
d6797f46
TT
137732019-03-15 Tom Tromey <tom@tromey.com>
13774
13775 * objfiles.h (struct objfile_per_bfd_storage): Declare
13776 destructor.
13777 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
13778 New.
13779 (get_objfile_bfd_data): Use new. Don't initialize
13780 language_of_main.
13781 (free_objfile_per_bfd_storage): Remove.
13782 (objfile_bfd_data_free, objfile::~objfile): Use delete.
13783
741d7538
TT
137842019-03-15 Tom Tromey <tom@tromey.com>
13785
13786 * symfile.c (reread_symbols): Update.
13787 * objfiles.c (objfile::objfile): Update.
13788 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
13789 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
13790 comment.
13791 (minimal_symbol_reader::install): Update.
13792 (terminate_minimal_symbol_table): Remove.
13793 * jit.c (jit_object_close_impl): Update.
13794
788c80d1
TT
137952019-03-15 Tom Tromey <tom@tromey.com>
13796
13797 * minsyms.c (minimal_symbol_reader::record_full): Remove some
13798 initializations.
13799
1b7a07cb
TT
138002019-03-15 Tom Tromey <tom@tromey.com>
13801
13802 * objfiles.h (struct objfile_per_bfd_storage)
13803 <demangled_hash_languages>: Now a bitset.
13804 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
13805 (lookup_minimal_symbol): Update.
13806
3db066bc
TT
138072019-03-15 Tom Tromey <tom@tromey.com>
13808
13809 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
13810 Don't return the symbol.
13811 * coffread.c (record_minimal_symbol): Use record_full.
13812
3fff2c37
EZ
138132019-03-14 Eli Zaretskii <eliz@gnu.org>
13814
13815 The MS-Windows port of ncurses fails to switch to a color pair if
13816 one or both of the colors are the implicit default colors. This
13817 change records the default colors when TUI is initialized, and
13818 then specifies them explicitly when a color pair uses the default
13819 colors. This allows color styling in TUI mode on MS-Windows.
13820
13821 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
13822 ncurses_norm_attr.
13823 (tui_initialize_io) [__MINGW32__]: Record the default terminal
13824 colors in ncurses_norm_attr.
13825 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
13826 "none", replace it with the default color recorded in
13827 ncurses_norm_attr.
13828
3b336828
TT
138292019-03-14 Tom Tromey <tromey@adacore.com>
13830
13831 * source-cache.h (class source_cache) <get_source_lines>: Return
13832 std::string.
13833 * source-cache.c (source_cache::extract_lines): Handle case where
13834 first_pos==npos. Return std::string.
13835 (source_cache::get_source_lines): Update.
13836
d085f989
TT
138372019-03-14 Tom Tromey <tromey@adacore.com>
13838
13839 * NEWS: Add item for "style sources" commands.
13840 * source-cache.c (source_cache::get_source_lines): Check
13841 source_styling.
13842 * cli/cli-style.c (source_styling): New global.
13843 (_initialize_cli_style): Add "style sources" commands.
13844 (show_style_sources): New function.
13845 * cli/cli-style.h (source_styling): Declare.
13846
6f11e682
TT
138472019-03-14 Pedro Alves <palves@redhat.com>
13848 Tom Tromey <tromey@adacore.com>
13849
13850 * tui/tui-winsource.h (tui_refill_source_window): Declare.
13851 * tui/tui-winsource.c (tui_refill_source_window): New function,
13852 from...
13853 (tui_horizontal_source_scroll): ... here. Move some logic.
13854 * cli/cli-style.c (set_style_enabled): Notify new observable.
13855 * tui/tui-hooks.c (tui_redisplay_source): New function.
13856 (tui_attach_detach_observers): Attach or detach
13857 tui_redisplay_source.
13858 * observable.h (source_styling_changed): New observable.
13859 * observable.c: Define source_styling_changed observable.
13860
a068643d
TT
138612019-03-13 Tom Tromey <tromey@adacore.com>
13862
13863 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
13864 (i386_gnu_nat_target::store_registers): Update.
13865 * target-debug.h (target_debug_print_std_string): New macro.
13866 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
13867 * windows-tdep.c (display_one_tib): Update.
13868 * tui/tui-stack.c (tui_make_status_line): Update.
13869 * top.c (print_inferior_quit_action): Update.
13870 * thread.c (thr_try_catch_cmd): Update.
13871 (add_thread_with_info): Update.
13872 (thread_target_id_str): Update.
13873 (thr_try_catch_cmd): Update.
13874 (thread_command): Update.
13875 (thread_find_command): Update.
13876 * record-btrace.c (record_btrace_target::info_record)
13877 (record_btrace_resume_thread, record_btrace_target::resume)
13878 (record_btrace_cancel_resume, record_btrace_step_thread)
13879 (record_btrace_target::wait, record_btrace_target::wait)
13880 (record_btrace_target::wait, record_btrace_target::stop): Update.
13881 * progspace.c (print_program_space): Update.
13882 * process-stratum-target.c
13883 (process_stratum_target::thread_address_space): Update.
13884 * linux-fork.c (linux_fork_mourn_inferior)
13885 (detach_checkpoint_command, info_checkpoints_command)
13886 (linux_fork_context): Update.
13887 (linux_fork_detach): Update.
13888 (class scoped_switch_fork_info): Update.
13889 (delete_checkpoint_command): Update.
13890 * infrun.c (follow_fork_inferior): Update.
13891 (follow_fork_inferior): Update.
13892 (proceed_after_vfork_done): Update.
13893 (handle_vfork_child_exec_or_exit): Update.
13894 (follow_exec): Update.
13895 (displaced_step_prepare_throw): Update.
13896 (displaced_step_restore): Update.
13897 (start_step_over): Update.
13898 (resume_1): Update.
13899 (clear_proceed_status_thread): Update.
13900 (proceed): Update.
13901 (print_target_wait_results): Update.
13902 (do_target_wait): Update.
13903 (context_switch): Update.
13904 (stop_all_threads): Update.
13905 (restart_threads): Update.
13906 (finish_step_over): Update.
13907 (handle_signal_stop): Update.
13908 (switch_back_to_stepped_thread): Update.
13909 (keep_going_pass_signal): Update.
13910 (print_exited_reason): Update.
13911 (normal_stop): Update.
13912 * inferior.c (inferior_pid_to_str): Change return type.
13913 (print_selected_inferior): Update.
13914 (add_inferior): Update.
13915 (detach_inferior): Update.
13916 * dummy-frame.c (fprint_dummy_frames): Update.
13917 * dcache.c (dcache_info_1): Update.
13918 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
13919 (btrace_fetch, btrace_clear): Update.
13920 * linux-tdep.c (linux_core_pid_to_str): Change return type.
13921 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
13922 type.
13923 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
13924 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
13925 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
13926 * gdbarch.c, gdbarch.h: Rebuild.
13927 * gdbarch.sh (core_pid_to_str): Change return type.
13928 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
13929 return type.
13930 (windows_nat_target::pid_to_str): Change return type.
13931 (windows_delete_thread): Update.
13932 (windows_nat_target::attach): Update.
13933 (windows_nat_target::files_info): Update.
13934 * target-delegates.c: Rebuild.
13935 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
13936 return type.
13937 (sol_thread_target::pid_to_str): Change return type.
13938 * remote.c (class remote_target) <pid_to_str>: Change return
13939 type.
13940 (remote_target::pid_to_str): Change return type.
13941 (extended_remote_target::attach, remote_target::remote_stop_ns)
13942 (remote_target::remote_notif_remove_queued_reply)
13943 (remote_target::push_stop_reply, remote_target::disable_btrace):
13944 Update.
13945 (extended_remote_target::attach): Update.
13946 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
13947 type.
13948 (gdbsim_target::pid_to_str): Change return type.
13949 * ravenscar-thread.c (struct ravenscar_thread_target)
13950 <pid_to_str>: Change return type.
13951 (ravenscar_thread_target::pid_to_str): Change return type.
13952 * procfs.c (class procfs_target) <pid_to_str>: Change return
13953 type.
13954 (procfs_target::pid_to_str): Change return type.
13955 (procfs_target::attach): Update.
13956 (procfs_target::detach): Update.
13957 (procfs_target::fetch_registers): Update.
13958 (procfs_target::store_registers): Update.
13959 (procfs_target::wait): Update.
13960 (procfs_target::files_info): Update.
13961 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
13962 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
13963 return type.
13964 (nto_procfs_target::pid_to_str): Change return type.
13965 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
13966 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
13967 return type.
13968 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
13969 (exit_lwp): Update.
13970 (attach_proc_task_lwp_callback, get_detach_signal)
13971 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
13972 (linux_nat_target::resume, wait_lwp, stop_callback)
13973 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
13974 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
13975 (linux_nat_wait_1, resume_stopped_resumed_lwps)
13976 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
13977 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
13978 type.
13979 (inf_ptrace_target::attach): Update.
13980 (inf_ptrace_target::files_info): Update.
13981 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
13982 type.
13983 (go32_nat_target::pid_to_str): Change return type.
13984 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
13985 (gnu_nat_target::wait): Update.
13986 (gnu_nat_target::wait): Update.
13987 (gnu_nat_target::resume): Update.
13988 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
13989 (fbsd_nat_target::wait): Update.
13990 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
13991 type.
13992 (darwin_nat_target::attach): Update.
13993 * corelow.c (class core_target) <pid_to_str>: Change return type.
13994 (core_target::pid_to_str): Change return type.
13995 * target.c (normal_pid_to_str): Change return type.
13996 (default_pid_to_str): Likewise.
13997 (target_pid_to_str): Change return type.
13998 (target_translate_tls_address): Update.
13999 (target_announce_detach): Update.
14000 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
14001 return type.
14002 (bsd_uthread_target::pid_to_str): Change return type.
14003 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
14004 type.
14005 (bsd_kvm_target::pid_to_str): Change return type.
14006 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
14007 return type.
14008 (aix_thread_target::pid_to_str): Change return type.
14009 * target.h (struct target_ops) <pid_to_str>: Change return type.
14010 (target_pid_to_str, normal_pid_to_str): Likewise.
14011 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
14012 type.
14013 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
14014 type.
14015 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
14016 return type.
14017 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
14018 type.
14019 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
14020 type.
14021 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
14022 return type.
14023
b4be1b06
SM
140242019-03-13 Simon Marchi <simon.marchi@ericsson.com>
14025
14026 * NEWS: Mention that the new default MI version is 3. Mention
14027 changes to the output of commands and events that deal with
14028 multi-location breakpoints.
14029 * breakpoint.c: Include "mi/mi-out.h".
14030 (print_one_breakpoint): Change output syntax if using MI version
14031 >= 3.
14032 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
14033 New.
14034 (mi_multi_location_breakpoint_output_fixed): New.
14035 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
14036 (mi_cmd_fix_multi_location_breakpoint_output): New.
14037 (mi_multi_location_breakpoint_output_fixed): New.
14038 * mi/mi-cmds.c (mi_cmds): Register command
14039 -fix-multi-location-breakpoint-output.
14040 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
14041 interpreter "mi".
14042
8e5e5494
SM
140432019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
14044
14045 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
14046 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
14047 instantiate mi_ui_out based on interpreter name.
14048 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
14049 * mi/mi-main.c (mi_load_progress): Likewise.
14050
197df35e
JB
140512019-03-12 John Baldwin <jhb@FreeBSD.org>
14052
14053 * NEWS: Combine separate "New targets" sections for 8.3.
14054
8399425f
JB
140552019-03-12 John Baldwin <jhb@FreeBSD.org>
14056
14057 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
14058 (ppcfbsd_init_abi): Install gdbarch
14059 "fetch_tls_load_module_address" and "get_thread_local_address"
14060 methods.
14061
b0f87ed0
JB
140622019-03-12 John Baldwin <jhb@FreeBSD.org>
14063
14064 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
14065 (riscv_fbsd_init_abi): Install gdbarch
14066 "fetch_tls_load_module_address" and "get_thread_local_address"
14067 methods.
14068
ce25aa57
JB
140692019-03-12 John Baldwin <jhb@FreeBSD.org>
14070
14071 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
14072 (i386fbsd_init_abi): Install gdbarch
14073 "fetch_tls_load_module_address" and "get_thread_local_address"
14074 methods.
14075
f5424cfa
JB
140762019-03-12 John Baldwin <jhb@FreeBSD.org>
14077
14078 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
14079 (amd64fbsd_init_abi): Install gdbarch
14080 "fetch_tls_load_module_address" and "get_thread_local_address"
14081 methods.
14082
945f3901
JB
140832019-03-12 John Baldwin <jhb@FreeBSD.org>
14084
14085 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
14086 (struct fbsd_pspace_data): New type.
14087 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
14088 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
14089 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
14090 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
14091 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
14092
ef0bd204
JB
140932019-03-12 John Baldwin <jhb@FreeBSD.org>
14094
14095 * gdbtypes.c (lookup_struct_elt): New function.
14096 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
14097 * gdbtypes.h (struct struct_elt): New type.
14098 (lookup_struct_elt): New prototype.
14099
36c53a02
JB
141002019-03-12 John Baldwin <jhb@FreeBSD.org>
14101
14102 * gdbtypes.c (lookup_struct_elt_type): Update comment and
14103 remove disabled code block.
14104
6e056c81
JB
141052019-03-12 John Baldwin <jhb@FreeBSD.org>
14106
14107 * gdbarch.sh (get_thread_local_address): New method.
14108 * gdbarch.h, gdbarch.c: Regenerate.
14109 * target.c (target_translate_tls_address): Use
14110 gdbarch_get_thread_local_address if present instead of
14111 target::get_thread_local_address.
14112
cd250a18
JB
141132019-03-12 John Baldwin <jhb@FreeBSD.org>
14114
14115 * target.h (target::get_thread_local_address): Update comment.
14116
df22c1e5
JB
141172019-03-12 John Baldwin <jhb@FreeBSD.org>
14118
14119 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
14120 objfile->separate_debug_objfile_backlink if not NULL.
14121
dd6876c9
JB
141222019-03-12 John Baldwin <jhb@FreeBSD.org>
14123
14124 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
14125 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
14126 (amd64bsd_store_inferior_registers): Likewise.
14127 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
14128 Enable segment base registers.
14129 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
14130 PT_GETFSBASE and PT_GETGSBASE.
14131 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
14132 PT_SETGSBASE.
14133 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
14134 segment base registers.
14135 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
14136
1163a4b7
JB
141372019-03-12 John Baldwin <jhb@FreeBSD.org>
14138
14139 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
14140 Update calls to i386_target_description to add 'segments'
14141 parameter.
14142 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
14143 add segment base registers.
14144 * arch/i386.c (i386_create_target_description): Add 'segments'
14145 parameter to enable segment base registers.
14146 * arch/i386.h (i386_create_target_description): Likewise.
14147 * features/i386/32bit-segments.xml: New file.
14148 * features/i386/32bit-segments.c: Generate.
14149 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
14150 call to i386_target_description to add 'segments' parameter.
14151 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
14152 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
14153 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
14154 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
14155 if feature is present.
14156 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
14157 Add 'segments' parameter to call to i386_target_description.
14158 (i386_target_description): Add 'segments' parameter to enable
14159 segment base registers.
14160 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
14161 to call to i386_target_description.
14162 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
14163 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
14164 Define I386_NUM_REGS.
14165 (i386_target_description): Add 'segments' parameter to enable
14166 segment base registers.
14167
3a350822
EZ
141682019-03-12 Eli Zaretskii <eliz@gnu.org>
14169
14170 PR/24325
14171 * source-cache.c: #undef open and close, to avoid unresolved
14172 externals during linking.
14173
ffdd69cf
TT
141742019-03-12 Tom Tromey <tromey@adacore.com>
14175
14176 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
14177 const. Add initializers.
14178 (_initialize_remote): Don't initialize ptid globals.
14179
ec148c57
PA
141802019-03-12 Pedro Alves <palves@redhat.com>
14181
14182 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
14183
32764270
PA
141842019-03-12 Pedro Alves <palves@redhat.com>
14185
14186 * cp-name-parser.y (main): Remove unused 'len' variable.
14187
17547186
TT
141882019-03-12 Tom Tromey <tromey@adacore.com>
14189
14190 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
14191 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
14192
d3a70e03
TT
141932019-03-12 Tom Tromey <tromey@adacore.com>
14194
14195 * linux-nat.c (iterate_over_lwps): Update.
14196 (stop_callback): Remove parameter.
14197 (stop_wait_callback, detach_callback, resume_set_callback)
14198 (select_singlestep_lwp_callback, set_ignore_sigint)
14199 (status_callback, resumed_callback, resume_clear_callback)
14200 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
14201 data parameter.
14202 (linux_nat_target::detach, linux_nat_target::resume)
14203 (linux_stop_and_wait_all_lwps, select_event_lwp)
14204 (linux_nat_filter_event, linux_nat_wait_1)
14205 (linux_nat_target::kill, linux_nat_target::stop)
14206 (linux_nat_target::stop): Update.
14207 (linux_nat_resume_callback): Change type.
14208 (resume_stopped_resumed_lwps, count_events_callback)
14209 (select_event_lwp_callback): Likewise.
14210 (linux_stop_lwp, linux_nat_stop_lwp): Update.
14211 * arm-linux-nat.c (struct update_registers_data): Remove.
14212 (update_registers_callback): Change type.
14213 (arm_linux_insert_hw_breakpoint1): Update.
14214 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
14215 parameter.
14216 (x86_linux_dr_set_addr): Update.
14217 (x86_linux_dr_set_control): Update.
14218 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
14219 (iterate_over_lwps): Use gdb::function_view.
14220 * nat/aarch64-linux-hw-point.c (struct
14221 aarch64_dr_update_callback_param): Remove.
14222 (debug_reg_change_callback): Change type.
14223 (aarch64_notify_debug_reg_change): Update.
14224 * s390-linux-nat.c (s390_refresh_per_info): Update.
14225
82cb27ff
TT
142262019-03-11 Tom Tromey <tromey@adacore.com>
14227
14228 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
14229 redundant assignment to "this_cu".
14230
568c0683
SM
142312019-03-08 Simon Marchi <simon.marchi@efficios.com>
14232
14233 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
14234
f09ce22d
SM
142352019-03-08 Simon Marchi <simon.marchi@efficios.com>
14236
14237 * gdbtypes.c (rank_one_type_parm_set): New function extracted
14238 from...
14239 (rank_one_type): ... this.
14240
595f96a9
SM
142412019-03-08 Simon Marchi <simon.marchi@efficios.com>
14242
14243 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
14244 from...
14245 (rank_one_type): ... this.
14246
2598a94b
SM
142472019-03-08 Simon Marchi <simon.marchi@efficios.com>
14248
14249 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
14250 from...
14251 (rank_one_type): ... this.
14252
7f17b20d
SM
142532019-03-08 Simon Marchi <simon.marchi@efficios.com>
14254
14255 * gdbtypes.c (rank_one_type_parm_float): New function extracted
14256 from...
14257 (rank_one_type): ... this.
14258
2c509035
SM
142592019-03-08 Simon Marchi <simon.marchi@efficios.com>
14260
14261 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
14262 from...
14263 (rank_one_type): ... this.
14264
0dd322dc
SM
142652019-03-08 Simon Marchi <simon.marchi@efficios.com>
14266
14267 * gdbtypes.c (rank_one_type_parm_range): New function extracted
14268 from...
14269 (rank_one_type): ... this.
14270
41ea4728
SM
142712019-03-08 Simon Marchi <simon.marchi@efficios.com>
14272
14273 * gdbtypes.c (rank_one_type_parm_char): New function extracted
14274 from...
14275 (rank_one_type): ... this.
14276
793cd1d2
SM
142772019-03-08 Simon Marchi <simon.marchi@efficios.com>
14278
14279 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
14280 from...
14281 (rank_one_type): ... this.
14282
34910087
SM
142832019-03-08 Simon Marchi <simon.marchi@efficios.com>
14284
14285 * gdbtypes.c (rank_one_type_parm_int): New function extracted
14286 from...
14287 (rank_one_type): ... this.
14288
f1f832d6
SM
142892019-03-08 Simon Marchi <simon.marchi@efficios.com>
14290
14291 * gdbtypes.c (rank_one_type_parm_func): New function extracted
14292 from...
14293 (rank_one_type): ... this.
14294
b9f4512f
SM
142952019-03-08 Simon Marchi <simon.marchi@efficios.com>
14296
14297 * gdbtypes.c (rank_one_type_parm_array): New function extracted
14298 from...
14299 (rank_one_type): ... this.
14300
9293fc63
SM
143012019-03-08 Simon Marchi <simon.marchi@efficios.com>
14302
14303 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
14304 from...
14305 (rank_one_type): ... this.
14306
e3abbe7e
PW
143072019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14308
14309 * inferior.c (initialize_inferiors): Ensure 'help set/show print
14310 inferior-events' shows the example events.
14311
e4adb939
EZ
143122019-03-08 Eli Zaretskii <eliz@gnu.org>
14313
14314 Support styling on native MS-Windows console
14315
14316 PR/24315
14317 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
14318 on MS-Windows if $TERM is not defined.
14319
14320 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
14321
14322 * posix-hdep.c (gdb_console_fputs):
14323 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
14324 functions.
14325 * ui-file.h (gdb_console_fputs): Add prototype.
14326
14327 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
14328 back to fputs only if the former returns zero.
14329
25629dfd
TT
143302019-03-07 Tom Tromey <tom@tromey.com>
14331
14332 * symmisc.c (print_symbol_bcache_statistics): Update.
14333 (print_objfile_statistics): Update.
14334 * symfile.c (allocate_symtab): Update.
14335 * stabsread.c: Don't include bcache.h.
14336 * psymtab.h (struct psymbol_bcache): Don't declare.
14337 (class psymtab_storage) <psymbol_cache>: Now a bcache.
14338 (psymbol_bcache_init, psymbol_bcache_free)
14339 (psymbol_bcache_get_bcache): Don't declare.
14340 * psymtab.c (struct psymbol_bcache): Remove.
14341 (psymtab_storage::psymtab_storage): Update.
14342 (psymtab_storage::~psymtab_storage): Update.
14343 (psymbol_bcache_init, psymbol_bcache_free)
14344 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
14345 (add_psymbol_to_bcache): Update.
14346 (allocate_psymtab): Update.
14347 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
14348 macro_cache>: No longer pointers.
14349 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
14350 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
14351 * macrotab.c (macro_bcache): Update.
14352 * macroexp.c: Don't include bcache.h.
14353 * gdbtypes.c (check_types_worklist): Update.
14354 (types_deeply_equal): Remove TRY/CATCH. Update.
14355 * elfread.c (elf_symtab_read): Update.
14356 * dwarf2read.c: Don't include bcache.h.
14357 * buildsym.c (buildsym_compunit::get_macro_table): Update.
14358 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
14359 (print_bcache_statistics, bcache_memory_used): Don't declare.
14360 (struct bcache): Move from bcache.c. Add constructor, destructor,
14361 methods. Rename all data members.
14362 * bcache.c (struct bcache): Move to bcache.h.
14363 (bcache::expand_hash_table): Rename from expand_hash_table.
14364 (bcache): Remove.
14365 (bcache::insert): Rename from bcache_full.
14366 (bcache::compare): Rename from bcache_compare.
14367 (bcache_xmalloc): Remove.
14368 (bcache::~bcache): Rename from bcache_xfree.
14369 (bcache::print_statistics): Rename from print_bcache_statistics.
14370 (bcache::memory_used): Rename from bcache_memory_used.
14371
fe726667
PA
143722019-03-07 Pedro Alves <palves@redhat.com>
14373
14374 * infrun.c (normal_stop): Also check for
14375 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
14376
7584bb30
AB
143772019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
14378
14379 * f-lang.c (value_from_host_double): Moved to...
14380 * value.c (value_from_host_double): ...here.
14381 * value.h (value_from_host_double): Declare.
14382 * guile/scm-math.c (vlscm_convert_typed_number): Use
14383 value_from_host_double.
14384 (vlscm_convert_number): Likewise.
14385 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
14386 * python/py-value.c (convert_value_from_python): Likewise.
14387
a7b1986e
TT
143882019-03-06 Tom Tromey <tom@tromey.com>
14389
14390 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
14391
0ccf4211
TT
143922019-03-06 Tom Tromey <tom@tromey.com>
14393
14394 * utils.h (free_current_contents): Don't declare.
14395 * utils.c (free_current_contents): Remove.
14396
fe7b42e5
TT
143972019-03-06 Tom Tromey <tom@tromey.com>
14398
14399 * top.c (quit_force): Update.
14400 * main.c (captured_command_loop): Update.
14401 * common/new-op.c (operator new): Update.
14402 * common/common-exceptions.c (struct catcher)
14403 <save_cleanup_chain>: Remove member.
14404 (exceptions_state_mc_init): Update.
14405 (exception_try_scope_entry): Return nullptr.
14406 (exception_try_scope_exit, exception_rethrow)
14407 (throw_exception_sjlj, throw_exception_cxx): Update.
14408 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
14409 (all_cleanups, do_cleanups, discard_cleanups)
14410 (discard_final_cleanups, save_cleanups, save_final_cleanups)
14411 (restore_cleanups, restore_final_cleanups): Don't declare.
14412 (do_final_cleanups): Remove parameter.
14413 * common/cleanups.c (cleanup_chain, make_cleanup)
14414 (make_cleanup_dtor, all_cleanups, do_cleanups)
14415 (discard_my_cleanups, discard_cleanups)
14416 (discard_final_cleanups, save_my_cleanups, save_cleanups)
14417 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
14418 (null_cleanup): Remove.
14419 (do_final_cleanups): Remove parameter.
14420
c6321f19
TT
144212019-03-06 Tom Tromey <tom@tromey.com>
14422
14423 * remote.c (remote_target::remote_parse_stop_reply): Use
14424 unique_xmalloc_ptr.
14425
61b30099
TT
144262019-03-06 Tom Tromey <tom@tromey.com>
14427
14428 * stabsread.c (struct stabs_field_info): Rename from field_info.
14429 <list, fnlist>: Add initializers.
14430 <obstack>: New member.
14431 (read_member_functions, read_struct_fields, read_baseclasses):
14432 Allocate on obstack. Don't use cleanups.
14433 (read_one_struct_field, read_member_functions, read_struct_fields)
14434 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
14435 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
14436 (read_struct_type): Update.
14437
6cceac94
TT
144382019-03-06 Tom Tromey <tom@tromey.com>
14439
14440 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
14441 * common/filestuff.h (make_cleanup_close): Don't declare.
14442 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
14443 Remove.
14444
72412762
TT
144452019-03-06 Tom Tromey <tom@tromey.com>
14446
14447 * solib-aix.c: Use make_scope_exit.
14448
2b6ff1c0
TT
144492019-03-06 Tom Tromey <tom@tromey.com>
14450
14451 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
14452 Use make_scope_exit.
14453
d01c5877
TT
144542019-03-06 Tom Tromey <tom@tromey.com>
14455
14456 * solib-svr4.c (disable_probes_interface): Remove parameter.
14457 (svr4_handle_solib_event): Use make_scope_exit.
14458
32603266
TT
144592019-03-06 Tom Tromey <tom@tromey.com>
14460
14461 * remote.c (struct stop_reply_deleter): Remove.
14462 (stop_reply_up): Update.
14463 (struct stop_reply): Derive from notif_event. Don't typedef.
14464 <regcache>: Now a std::vector.
14465 (stop_reply_xfree): Remove.
14466 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
14467 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
14468 (remote_target::discard_pending_stop_replies): Use delete.
14469 (remote_target::remote_parse_stop_reply): Update.
14470 (remote_target::process_stop_reply): Update.
14471 * remote-notif.h (struct notif_event): Add virtual destructor.
14472 Remove "dtr" member.
14473 (struct notif_client) <alloc_event>: Return a unique_ptr.
14474 (notif_event_xfree): Don't declare.
14475 (notif_event_up): New typedef.
14476 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
14477 (notif_event_xfree, do_notif_event_xfree): Remove.
14478 (remote_notif_state_xfree): Update.
14479
9799571e
TT
144802019-03-06 Tom Tromey <tom@tromey.com>
14481
14482 * infrun.c (displaced_step_clear_cleanup): Now a
14483 forward_scope_exit type.
14484 (displaced_step_prepare_throw): Update.
14485 (displaced_step_fixup): Update.
14486
09e3c4ca
TT
144872019-03-06 Tom Tromey <tom@tromey.com>
14488
14489 * inferior.h (class inferior): Update comment.
14490 * gdbthread.h (class thread_info): Update comment.
14491
e2a03548
TT
144922019-03-06 Joel Brobecker <brobecker@adacore.com>
14493 Tom Tromey <tom@tromey.com>
14494
14495 * stabsread.h (struct stab_section_list): Remove.
14496 (coffstab_build_psymtabs): Update.
14497 * dbxread.c (symbuf_sections): Now a std::vector.
14498 (sect_idx): New global.
14499 (fill_symbuf): Update.
14500 (coffstab_build_psymtabs): Change type of stabsects parameter.
14501 Update.
14502 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
14503 std::vector.
14504 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
14505 (coff_locate_sections): Update.
14506 (coff_symfile_read): Remove cleanups. Update.
14507 (init_stringtab): Add storage parameter.
14508 (free_stringtab, free_stringtab_cleanup): Remove.
14509 (init_lineno): Add storage parameter.
14510 (free_linetab, free_linetab_cleanup): Remove.
14511
b7e60d85
PA
145122019-03-06 Pedro Alves <palves@redhat.com>
14513
14514 * linux-fork.c (fork_info::clobber_regs): Delete.
14515 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
14516 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
14517 comment. Adjust.
14518 (scoped_switch_fork_info::scoped_switch_fork_info)
14519 (checkpoint_command, linux_fork_context): Adjust
14520 fork_save_infrun_state calls.
14521
e52c971f
PA
145222019-03-06 Pedro Alves <palves@redhat.com>
14523
14524 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
14525 (inf_has_multiple_threads): Return 'bool' and rewrite using
14526 inferior_info::threads().
14527
06974e6c
PA
145282019-03-06 Pedro Alves <palves@redhat.com>
14529
14530 * linux-fork.c: Include <list>.
14531 (fork_list): Now a std::list instance.
14532 (fork_info): Add ctor, dtor, and in-class initialize all fields.
14533 (forks_exist_p, find_last_fork): Adjust.
14534 (new_fork): Delete.
14535 (one_fork_p): New.
14536 (add_fork): Adjust.
14537 (free_fork): Delete, folded into fork_info::~fork_info().
14538 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
14539 Adjust.
14540 (init_fork_list): Delete.
14541 (linux_fork_killall, linux_fork_mourn_inferior)
14542 (linux_fork_detach, info_checkpoints_command): Adjust.
14543 (_initialize_linux_fork): No longer call init_fork_list.
14544
72f31aea
PA
145452019-03-06 Pedro Alves <palves@redhat.com>
14546
14547 * linux-fork.c (new_fork): New, split out of ...
14548 (add_fork): ... this. Return void. Move "first fork" special
14549 case from here, to ...
14550 (checkpoint_command): ... here.
14551 * linux-linux.h (add_fork): Return void.
14552
efbecbc1
AB
145532019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14554
14555 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
14556
0841c79a
AB
145572019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14558 Chris January <chris.january@arm.com>
14559 David Lecomber <david.lecomber@arm.com>
14560
14561 * f-exp.y: New token, UNOP_INTRINSIC.
14562 (exp): New pattern using UNOP_INTRINSIC token.
14563 (f77_keywords): Add 'abs' keyword.
14564 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
14565 (value_from_host_double): New function.
14566 (evaluate_subexp_f): Support UNOP_ABS.
14567
4a270568
AB
145682019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14569
14570 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
14571 types.
14572
067630bd
AB
145732019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14574
14575 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
14576 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
14577 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
14578
3be47f7a
AB
145792019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14580
14581 * f-exp.y (convert_to_kind_type): Handle more type kinds.
14582
4d00f5d8
AB
145832019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14584 Chris January <chris.january@arm.com>
14585
14586 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
14587 * f-exp.y: Define 'KIND' token.
14588 (exp): New pattern for KIND expressions.
14589 (ptype): Handle types with a kind extension.
14590 (direct_abs_decl): Extend to spot kind extensions.
14591 (f77_keywords): Add 'kind' to the list.
14592 (push_kind_type): New function.
14593 (convert_to_kind_type): New function.
14594 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
14595 * parse.c (operator_length_standard): Likewise.
14596 * parser-defs.h (enum type_pieces): Add tp_kind.
14597 * std-operator.def: Add UNOP_KIND.
14598
e454224f
AB
145992019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14600
14601 * f-exp.y (f_parse): Set yydebug.
14602
9dad4a58
AB
146032019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14604
14605 * f-lang.c (evaluate_subexp_f): New function.
14606 (exp_descriptor_f): New global.
14607 (f_language_defn): Use exp_descriptor_f instead of
14608 exp_descriptor_standard.
14609
c8f91604
AB
146102019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14611
14612 * f-exp.y (struct token): Add comments.
14613 (dot_ops): Remove uppercase versions and the end marker.
14614 (f77_keywords): Likewise.
14615 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
14616 entries in the dot_ops array are case insensitive, and use
14617 strncasecmp to compare strings. Also some whitespace cleanup in
14618 this area. Similar for the f77_keywords array, except entries in
14619 this list might be case sensitive.
14620
dd9f2c76
AB
146212019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14622
14623 * f-exp.y (struct f77_boolean_val): Add comments.
14624 (boolean_values): Remove uppercase versions, and end marker.
14625 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
14626 and use strncasecmp to achieve case insensitivity. Additionally,
14627 perform whitespace cleanup around this code.
14628
67a3048c
TT
146292019-03-06 Tom Tromey <tromey@adacore.com>
14630
14631 * remote-sim.c (gdbsim_target_open): Use result of
14632 gdb_argv::release.
14633
aa3cfbda
RB
146342019-03-06 Richard Bunt <richard.bunt@arm.com>
14635 Dirk Schubert <dirk.schubert@arm.com>
14636 Chris January <chris.january@arm.com>
14637
14638 * eval.c (evaluate_subexp_standard): Call Fortran argument
14639 wrapping logic.
14640 * f-lang.c (struct value): A value which can be passed into a
14641 Fortran function call.
14642 (fortran_argument_convert): Wrap Fortran arguments in a pointer
14643 where appropriate.
14644 (struct type): Value ready for a Fortran function call.
14645 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
14646 is needed.
14647 * f-lang.h (fortran_argument_convert): Declaration.
14648 (fortran_preserve_arg_pointer): Declaration.
14649 * infcall.c (value_arg_coerce): Call Fortran argument logic.
14650
ea38e5df
TT
146512019-03-05 Tom Tromey <tromey@adacore.com>
14652
14653 * python/py-prettyprint.c (print_string_repr): Remove #if.
14654 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
14655
06b5b831
TT
146562019-03-05 Tom Tromey <tromey@adacore.com>
14657
14658 * target.c (the_dummy_target): Move later. Change type to
14659 "dummy_target".
14660 (initialize_targets): Don't initialize the_dummy_target.
14661
edbd9e45
TT
146622019-03-05 Tom Tromey <tromey@adacore.com>
14663
14664 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
14665 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
14666
c119e040
TT
146672019-03-05 Tom Tromey <tromey@adacore.com>
14668
14669 * windows-nat.c (windows_nat_target::attach)
14670 (windows_nat_target::detach): Don't call gdb_flush.
14671 * valprint.c (generic_val_print, val_print, val_print_string):
14672 Don't call gdb_flush.
14673 * utils.c (defaulted_query): Don't call gdb_flush.
14674 * typeprint.c (print_type_scalar): Don't call gdb_flush.
14675 * target.c (target_announce_detach): Don't call gdb_flush.
14676 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
14677 * remote.c (extended_remote_target::attach): Don't call
14678 gdb_flush.
14679 * procfs.c (procfs_target::detach): Don't call gdb_flush.
14680 * printcmd.c (do_examine): Don't call gdb_flush.
14681 (info_display_command): Don't call gdb_flush.
14682 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
14683 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
14684 * memattr.c (info_mem_command): Don't call gdb_flush.
14685 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
14686 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
14687 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
14688 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
14689 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
14690 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
14691 (gnu_nat_target::detach): Don't call gdb_flush.
14692 * f-valprint.c (f_val_print): Don't call gdb_flush.
14693 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
14694 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
14695 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
14696 gdb_flush.
14697 * c-valprint.c (c_val_print): Don't call gdb_flush.
14698 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
14699
895dafa6
TT
147002019-03-05 Tom Tromey <tromey@adacore.com>
14701
14702 * varobj.c (update_dynamic_varobj_children): Update.
14703 (install_default_visualizer): Use reset, not release.
14704 * value.c (set_internalvar): Update.
14705 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
14706 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
14707 ATTRIBUTE_UNUSED_RESULT.
14708
88a774b9
TT
147092019-03-05 Tom Tromey <tromey@adacore.com>
14710
14711 * remote.c (class scoped_remote_fd) <release>: Add
14712 ATTRIBUTE_UNUSED_RESULT.
14713
4e4a8b93
TT
147142019-03-05 Tom Tromey <tromey@adacore.com>
14715
14716 * macroexp.c (struct macro_buffer) <release>: Add
14717 ATTRIBUTE_UNUSED_RESULT.
14718
083eef1f
TT
147192019-03-05 Tom Tromey <tromey@adacore.com>
14720
14721 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
14722 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
14723 ATTRIBUTE_UNUSED_RESULT.
14724
3cabd438
TT
147252019-03-05 Tom Tromey <tromey@adacore.com>
14726
14727 * common/scoped_fd.h (class scoped_fd) <release>: Add
14728 ATTRIBUTE_UNUSED_RESULT.
14729
41e3300a
TT
147302019-03-05 Tom Tromey <tromey@adacore.com>
14731
14732 * parser-defs.h (struct parser_state) <release>: Add
14733 ATTRIBUTE_UNUSED_RESULT.
14734
18cb7c9f
TT
147352019-03-05 Tom Tromey <tromey@adacore.com>
14736
14737 * utils.h (class gdb_argv) <release>: Add
14738 ATTRIBUTE_UNUSED_RESULT.
14739 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
14740
41fa577f
EZ
147412019-03-02 Eli Zaretskii <eliz@gnu.org>
14742
a6a4b2c6
EZ
14743 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
14744 for-loop range, to avoid compiler warnings.
14745
14746 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
14747 avoid compiler warnings about unused variables.
14748
742a7df5
EZ
14749 * NEWS: Mention end of support for native debugging on MS-Windows
14750 before XP.
14751
41fa577f
EZ
14752 PR gdb/24292
14753 * common/netstuff.c:
14754 * gdbserver/gdbreplay.c
14755 * gdbserver/remote-utils.c:
14756 * ser-tcp.c:
14757 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
14758 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
14759 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
14760 'getaddrinfo' and 'freeaddrinfo' were not available before
14761 Windows XP, and mingw.org's MinGW headers by default define
14762 _WIN32_WINNT to 0x500.
14763
827f438f
GB
147642019-03-01 Gary Benson <gbenson@redhat.com>
14765
14766 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
14767
92137da0
RO
147682019-02-28 Brian Vandenberg <phantall@gmail.com>
14769 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14770
14771 PR gdb/8527
14772 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
14773 set_sigint_trap, clear_sigint_trap.
14774
799efbe8
PW
147752019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14776
14777 * target.c (target_detach): Clear the regcache and the
14778 frame cache.
14779
8ed25214
PA
147802019-02-27 Pedro Alves <palves@redhat.com>
14781
14782 * utils.c (set_screen_size): When we cap the height/width sizes,
14783 tweak the corresponding command variable to show "unlimited":
14784
23031e31
SJ
147852019-02-27 Saagar Jha <saagar@saagarjha.com>
14786 Pedro Alves <palves@redhat.com>
14787
14788 * utils.c (set_screen_size): Reduce "infinite" rows and columns
14789 before calling rl_set_screen_size.
14790
6c28e44a
TT
147912019-02-27 Tom Tromey <tromey@adacore.com>
14792
14793 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
14794 define.
14795 * python/py-value.c: Remove Python 2.4 workaround.
14796 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
14797 workaround.
14798 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
14799 Python 2.4 workaround.
14800 * python/python-internal.h: Remove Python 2.4 comment.
14801 (Py_ssize_t): Don't define.
14802 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
14803 (gdb_Py_DECREF): Remove Python 2.4 workaround.
14804 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
14805 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
14806 * python/python.c (do_start_initialization): Remove Python 2.4
14807 workaround.
14808 * python/py-prettyprint.c (class dummy_python_frame): Remove.
14809 (print_children): Remove Python 2.4 workaround.
14810 * python/py-inferior.c (buffer_procs): Remove Python 2.4
14811 workaround.
14812 (CHARBUFFERPROC_NAME): Remove.
14813 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
14814 Python 2.4 workaround.
14815
2c3fc25d 148162019-02-27 Kevin Buettner <kevinb@redhat.com>
799efbe8 14817
2c3fc25d
KB
14818 * NEWS: Note minimum Python version.
14819
6ca62222
KB
148202019-02-27 Kevin Buettner <kevinb@redhat.com>
14821
14822 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
14823 code from these functions. Remove corresponding ifdefs. Use
14824 Py_buffer_up instead of explicit calls to PyBuffer_Release.
14825 Remove gotos and target of gotos.
14826 (infpy_search_memory): Likewise.
14827
f4bc7d2c
AB
148282019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14829
14830 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
14831 (hppa_gdbarch_init): Don't register deleted functions with
14832 gdbarch.
14833
9734a586
AB
148342019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14835
14836 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
14837 (h8300_unwind_sp): Delete.
14838 (h8300_dummy_id): Delete.
14839 (h8300_gdbarch_init): Don't register deleted functions with
14840 gdbarch.
14841
68b867f3
AB
148422019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14843
14844 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
14845 (ft32_unwind_pc): Delete.
14846 (ft32_unwind_sp): Delete.
14847 (ft32_gdbarch_init): Don't register deleted functions with
14848 gdbarch.
14849
2fbe7ad0
AB
148502019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14851
14852 * gdb/frv-tdep.c (frv_dummy_id): Delete.
14853 (frv_unwind_pc): Delete.
14854 (frv_unwind_sp): Delete.
14855 (frv_gdbarch_init): Don't register deleted functions with
14856 gdbarch.
14857
76055cbe
AB
148582019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14859
14860 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
14861 (riscv_unwind_pc): Delete.
14862 (riscv_unwind_sp): Delete.
14863 (riscv_gdbarch_init): Don't register deleted functions with
14864 gdbarch.
14865
4133e5a1
AB
148662019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14867
14868 * gdb/csky-tdep.c (csky_dummy_id): Delete.
14869 (csky_unwind_pc): Delete.
14870 (csky_unwind_sp): Delete.
14871 (csky_gdbarch_init): Don't register deleted functions with
14872 gdbarch.
14873
8010f576
AB
148742019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14875
14876 * gdb/cris-tdep.c (cris_dummy_id): Delete.
14877 (cris_unwind_pc): Delete.
14878 (cris_unwind_sp): Delete.
14879 (cris_gdbarch_init): Don't register deleted functions with
14880 gdbarch.
14881
b56bf084
AB
148822019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14883
14884 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
14885 (bfin_unwind_pc): Delete.
14886 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
14887
a19a650f
AB
148882019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14889
14890 * gdb/arm-tdep.c (arm_dummy_id): Delete.
14891 (arm_unwind_pc): Delete.
14892 (arm_unwind_sp): Delete.
14893 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
14894
f8278c3c
AB
148952019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14896
14897 * gdb/arc-tdep.c (arc_dummy_id): Delete.
14898 (arc_unwind_pc): Delete.
14899 (arc_unwind_sp): Delete.
14900 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
14901
480e46cf
AB
149022019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14903
14904 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
14905 (alpha_unwind_pc): Delete.
14906 (alpha_gdbarch_init): Don't register deleted functions with
14907 gdbarch.
14908
7a995095
AB
149092019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14910
14911 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
14912 (aarch64_unwind_pc): Delete.
14913 (aarch64_unwind_sp): Delete.
14914 (aarch64_gdbarch_init): Don't register deleted functions with
14915 gdbarch.
14916
bf9a735e
AB
149172019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14918
14919 * gdbtypes.c (type_align): Don't consider static members when
14920 computing structure alignment.
14921
5561fc30
AB
149222019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14923
14924 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
14925 return 0 for other types.
14926 * arch-utils.c (default_type_align): Always return 0.
14927 * gdbarch.h: Regenerate.
14928 * gdbarch.sh (type_align): Extend comment.
14929 * gdbtypes.c (type_align): Add additional comments, always call
14930 gdbarch_type_align before applying the default rules.
14931 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
14932 generic code will then apply a suitable default.
14933 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
14934 types, return 0 for other types.
14935
9335e75a
JB
149362019-02-27 Joel Brobecker <brobecker@adacore.com>
14937
14938 * NEWS: Create a new section for the next release branch.
14939 Rename the section of the current branch, now that it has
14940 been cut.
14941
3d34d8de
JB
149422019-02-27 Joel Brobecker <brobecker@adacore.com>
14943
14944 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
14945 * version.in: Bump version to 8.3.50.DATE-git.
14946
143420fb
SM
149472019-02-26 Simon Marchi <simon.marchi@efficios.com>
14948
14949 * aix-thread.c (ptid_cmp): Remove unused variable.
14950 (get_signaled_thread): Likewise.
14951 (store_regs_user_thread): Likewise.
14952 (store_regs_kernel_thread): Likewise.
14953 (fetch_regs_kernel_thread): Remove shadowed variable.
14954
172fb711
AB
149552019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
14956
14957 * features/riscv/32bit-cpu.xml: Add register numbers.
14958 * features/riscv/32bit-fpu.c: Regenerate.
14959 * features/riscv/32bit-fpu.xml: Add register numbers.
14960 * features/riscv/64bit-cpu.xml: Add register numbers.
14961 * features/riscv/64bit-fpu.c: Regenerate.
14962 * features/riscv/64bit-fpu.xml: Add register numbers.
14963
26c89782
KB
149642019-02-26 Kevin Buettner <kevinb@redhat.com>
14965
af54ade9 14966 * NEWS: Mention two argument form of gdb.Value constructor.
fe07eca5
KB
14967 * python/py-value.c (convert_buffer_and_type_to_value): New
14968 function.
14969 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
14970 Add support for handling an optional second argument. Call
14971 convert_buffer_and_type_to_value as appropriate.
26c89782
KB
14972 * python/python-internal.h (Py_buffer_deleter): New struct.
14973 (Py_buffer_up): New typedef.
14974
0f58c9e8
JB
149752019-02-25 John Baldwin <jhb@FreeBSD.org>
14976
14977 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
14978 instead of releasing ownership.
14979
0a0f4c01
JR
149802019-02-25 Jordan Rupprecht <rupprecht@google.com>
14981
14982 * dwarf2read.c (open_and_init_dwp_file): Call
14983 elf_numsections instead of bfd_count_sections to initialize
14984 dwp_file->num_sections.
14985
cd5a152c
TT
149862019-02-25 Tom Tromey <tromey@adacore.com>
14987
14988 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
14989
8a6a8513
SDJ
149902019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
14991
14992 * gcore.in: Add '--readnever' option when invoking GDB.
14993
04dcda9c
SM
149942019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
14995
14996 * MAINTAINERS: Update my email address.
14997
07bc701d
SM
149982019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
14999
15000 * build-id.c (build_id_to_debug_bfd_1): New function.
15001 (build_id_to_debug_bfd): Look for separate debug file in
15002 sysroot.
15003
c6f4a5d0
AB
150042019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
15005
15006 * gdbarch.sh: Update the copyright year range that is placed into
15007 generated files.
15008
9600246d
KS
150092019-02-22 Keith Seitz <keiths@redhat.com>
15010
15011 PR symtab/23853
15012 * linespec.c (create_sals_line_offset): Search for the default
15013 symtab's filename instead of its fullname.
15014
7557a514
AH
150152019-02-21 Alan Hayward <alan.hayward@arm.com>
15016
15017 * NEWS: Update style defaults.
15018
ee2bcb0c
AH
150192019-02-21 Alan Hayward <alan.hayward@arm.com>
15020
15021 * main.c (captured_main_1): Disable styling in batch mode.
15022
0c95f9ed
TT
150232019-02-20 Tom Tromey <tom@tromey.com>
15024
15025 * symtab.c (symtab_symbol_info): Fix typos.
15026
c763b894
TT
150272019-02-20 Tom Tromey <tromey@adacore.com>
15028
15029 * findcmd.c (_initialize_mem_search): Use upper case for
15030 metasyntactic variables.
15031
0ef8a082
AH
150322019-02-20 Alan Hayward <alan.hayward@arm.com>
15033
15034 * aarch64-tdep.c (aarch64_add_reggroups): New function.
15035 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
15036
6caa91b6
SM
150372019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
15038
15039 * top.h (source_file_name): Change to std::string.
15040 * top.c (source_file_name): Likewise.
15041 (command_line_input): Adjust.
15042 * cli/cli-script.c (script_from_file): Adjust.
15043
98814c6c
TT
150442019-02-19 Tom Tromey <tromey@adacore.com>
15045
15046 * ravenscar-thread.c
15047 (ravenscar_thread_target::update_thread_list): Don't call
15048 ada_build_task_list.
15049 * ada-lang.h (ada_build_task_list): Don't declare.
15050 * ada-tasks.c (struct ada_tasks_inferior_data)
15051 <task_list_valid_p>: Now bool.
15052 (read_known_tasks, ada_task_list_changed)
15053 (ada_tasks_invalidate_inferior_data): Update.
15054 (read_known_tasks_array): Return bool.
15055 (read_known_tasks_list): Likewise.
15056 (read_known_tasks): Return void.
15057 (ada_build_task_list): Now static.
15058
70cd633e
AB
150592019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
15060
15061 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
15062 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
15063
040b3e95
PW
150642019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15065
15066 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
15067 variant for ada_tasks_pspace_data_handle and
15068 ada_tasks_inferior_data_handle.
15069 (ada_tasks_pspace_data_cleanup): New function.
15070 (ada_tasks_inferior_data_cleanup): New function.
15071
9409233b
TT
150722019-02-17 Tom Tromey <tom@tromey.com>
15073
15074 * macrotab.h (macro_source_fullname): Return a std::string.
15075 * macrotab.c (macro_include, check_for_redefinition)
15076 (macro_undef, macro_lookup_definition, foreach_macro)
15077 (foreach_macro_in_scope): Update.
15078 (macro_source_fullname): Return a std::string.
15079 * macrocmd.c (show_pp_source_pos): Update.
15080
6506371f
TT
150812019-02-17 Tom Tromey <tom@tromey.com>
15082
15083 * macrocmd.c (show_pp_source_pos): Style the file names.
15084
0c820d67
TT
150852019-02-17 Tom Tromey <tom@tromey.com>
15086
15087 PR tui/24197:
15088 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
15089
a0087920
TT
150902019-02-17 Tom Tromey <tom@tromey.com>
15091
15092 * ada-lang.c (user_select_syms): Use filtered printing.
15093 * utils.c (wrap_style): New global.
15094 (desired_style): Remove.
15095 (emit_style_escape): Add stream parameter.
15096 (set_output_style, reset_terminal_style, prompt_for_continue):
15097 Update.
15098 (flush_wrap_buffer): Only flush gdb_stdout.
15099 (wrap_here): Set wrap_style.
15100 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
15101 treat escape sequences as a character. Change when wrap buffer is
15102 flushed.
15103 (fputs_styled): Do not set the output style when the default is
15104 requested.
15105 * ui-style.h (struct ui_file_style) <is_default>: New method.
15106 * source.c (print_source_lines_base): Emit escape sequences in one
15107 piece.
15108
75ba10dc
JB
151092019-02-17 Joel Brobecker <brobecker@adacore.com>
15110
15111 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
15112 integers and enumeration types.
15113
a2cd4f14
JB
151142019-02-17 Joel Brobecker <brobecker@adacore.com>
15115
15116 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
15117 instead of lookup_symbol_in_language
15118 (do_exact_match): New function.
15119 (ada_get_symbol_name_matcher): Return do_exact_match when
15120 doing a verbatim match.
15121
485b851b
TT
151222019-02-15 Tom Tromey <tromey@adacore.com>
15123
15124 * ravenscar-thread.c (ravenscar_thread_target::resume)
15125 (ravenscar_thread_target::wait): Special case wildcard requests.
15126
0b790b1e
TT
151272019-02-15 Tom Tromey <tromey@adacore.com>
15128
15129 * ravenscar-thread.c (base_ptid): Remove.
15130 (struct ravenscar_thread_target) <close>: New method.
15131 <m_base_ptid>: New member.
15132 <update_inferior_ptid, active_task, task_is_currently_active,
15133 runtime_initialized>: Declare methods.
15134 <ravenscar_thread_target>: Add constructor.
15135 (ravenscar_thread_target::task_is_currently_active)
15136 (ravenscar_thread_target::update_inferior_ptid)
15137 (ravenscar_runtime_initialized): Rename. Now methods.
15138 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
15139 (ravenscar_thread_target::update_thread_list): Update.
15140 (ravenscar_thread_target::active_task): Now method.
15141 (ravenscar_thread_target::store_registers)
15142 (ravenscar_thread_target::prepare_to_store)
15143 (ravenscar_thread_target::prepare_to_store)
15144 (ravenscar_thread_target::mourn_inferior): Update.
15145 (ravenscar_inferior_created): Use "new" to create target.
15146 (ravenscar_thread_target::get_ada_task_ptid): Update.
15147 (_initialize_ravenscar): Don't initialize base_ptid.
15148 (ravenscar_ops): Remove global.
15149
dea57a62
TT
151502019-02-15 Tom Tromey <tromey@adacore.com>
15151
15152 * target.h (push_target): Declare new overload.
15153 * target.c (push_target): New overload, taking an rvalue reference.
15154 * remote.c (remote_target::open_1): Use push_target overload.
15155 * corelow.c (core_target_open): Use push_target overload.
15156
989f3c58
TT
151572019-02-15 Tom Tromey <tromey@adacore.com>
15158
15159 * ravenscar-thread.c (is_ravenscar_task)
15160 (ravenscar_task_is_currently_active): Return bool.
15161 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
15162 (_initialize_ravenscar): Remove "(void)".
15163 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
15164 Return bool.
15165
6cbcc006
TT
151662019-02-15 Tom Tromey <tromey@adacore.com>
15167
15168 * ravenscar-thread.c (ravenscar_runtime_initializer)
15169 (has_ravenscar_runtime, get_running_thread_id)
15170 (ravenscar_thread_target::resume): Fix indentation.
15171
7657f14d
TT
151722019-02-15 Tom Tromey <tromey@adacore.com>
15173
15174 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
15175 from ravenscar_arch_ops.
15176 (sparc_ravenscar_ops::fetch_registers)
15177 (sparc_ravenscar_ops::store_registers): Now methods.
15178 (sparc_ravenscar_prepare_to_store): Remove.
15179 (sparc_ravenscar_ops): Redefine.
15180 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
15181 methods and destructor. Remove members.
15182 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
15183 (ravenscar_thread_target::store_registers)
15184 (ravenscar_thread_target::prepare_to_store): Update.
15185 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
15186 Remove.
15187 (struct ppc_ravenscar_powerpc_ops): Derive from
15188 ravenscar_arch_ops.
15189 (ppc_ravenscar_powerpc_ops::fetch_registers)
15190 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
15191 (ppc_ravenscar_powerpc_ops): Redefine.
15192 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
15193 (ppc_ravenscar_e500_ops::fetch_registers)
15194 (ppc_ravenscar_e500_ops::store_registers): Now methods.
15195 (ppc_ravenscar_e500_ops): Redefine.
15196 * aarch64-ravenscar-thread.c
15197 (aarch64_ravenscar_generic_prepare_to_store): Remove.
15198 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
15199 (aarch64_ravenscar_fetch_registers)
15200 (aarch64_ravenscar_store_registers): Now methods.
15201 (aarch64_ravenscar_ops): Redefine.
15202
5b6ea500
TT
152032019-02-15 Tom Tromey <tromey@adacore.com>
15204
15205 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
15206 (ravenscar_thread_target::stopped_by_hw_breakpoint)
15207 (ravenscar_thread_target::stopped_by_watchpoint)
15208 (ravenscar_thread_target::stopped_data_address)
15209 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
15210
e397fd39
TT
152112019-02-15 Tom Tromey <tromey@adacore.com>
15212
15213 * ravenscar-thread.c: Fix some typos.
15214
cc12f4a8
TT
152152019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15216 Tom Tromey <tromey@adacore.com>
15217
15218 * ada-lang.c (ada_exception_sal): Change addr_string to a
15219 std::string.
15220 (create_ada_exception_catchpoint): Update.
15221
5f486660
TT
152222019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15223 Tom Tromey <tromey@adacore.com>
15224
15225 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
15226 (bp_location_ops): Remove.
15227 (base_breakpoint_allocate_location): Update.
15228 (free_bp_location): Update.
15229 * ada-lang.c (class ada_catchpoint_location)
15230 <ada_catchpoint_location>: Remove ops parameter.
15231 (ada_catchpoint_location_dtor): Remove.
15232 (ada_catchpoint_location_ops): Remove.
15233 (allocate_location_exception): Update.
15234 * breakpoint.h (struct bp_location_ops): Remove.
15235 (class bp_location) <bp_location>: Remove bp_location_ops
15236 parameter.
15237 <~bp_location>: Add destructor.
15238 <ops>: Remove.
15239
b671c7fb
TS
152402019-02-14 Thomas Schwinge <thomas@codesourcery.com>
15241 Pedro Alves <palves@redhat.com>
15242
15243 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
15244 'PATH_MAX'.
15245
8071c5ce
DM
152462019-02-14 David Michael <fedora.dm0@gmail.com>
15247 Samuel Thibault <samuel.thibault@gnu.org>
15248 Thomas Schwinge <thomas@codesourcery.com>
15249
15250 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
15251 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
15252
b1041ae0
TS
152532019-02-14 Thomas Schwinge <thomas@codesourcery.com>
15254
924514e1
TS
15255 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
15256 (check_empty): Use "const char *".
15257
c29ee8d4
TS
15258 * gnu-nat.c (gnu_nat_target::detach): Instead of
15259 'detach_inferior (pid)' call
15260 'detach_inferior (find_inferior_pid (pid))'.
15261
6c6ef69f
TS
15262 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
15263 'nat/fork-inferior.o'.
15264 * gnu-nat.c: #include "nat/fork-inferior.h".
15265
2d0a338c
TS
15266 * gnu-nat.c (gnu_nat_target::detach): Instead of
15267 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
15268 * gnu-nat.h: #include "inf-child.h".
15269 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
15270 'i386_gnu_nat_target::fetch_registers'.
15271 (gnu_store_registers): Rename/move to
15272 'i386_gnu_nat_target::store_registers'.
15273
cabb5f06
TS
15274 * config/i386/nm-i386gnu.h: Don't "#include" any files.
15275 * gnu-nat.h (mach_thread_info): New function.
15276 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
15277
b1041ae0
TS
15278 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
15279
2988d01e
KF
152802019-02-14 Frederic Konrad <konrad@adacore.com>
15281
15282 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
15283
c559d709
JB
152842019-02-14 Joel Brobecker <brobecker@adacore.com>
15285
15286 * windows-nat.c (windows_add_thread): Add new parameter
15287 "main_thread_p" with default value set to false. Update
15288 function documentation as well as all callers.
15289 (windows_delete_thread): Likewise.
15290 (fake_create_process): Update call to windows_add_thread.
15291 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
15292 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
15293 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
15294 call to windows_delete_thread.
15295
007024cc
SM
152962019-02-13 Simon Marchi <simon.marchi@ericsson.com>
15297
15298 * MAINTAINERS: Add Andrew Burgess as global maintainer.
15299
f62318e9
JB
153002019-02-12 John Baldwin <jhb@FreeBSD.org>
15301
15302 * symfile.c (find_separate_debug_file): Use canonical path of
15303 sysroot with child_path instead of gdb_sysroot if it is valid.
15304
cd4b7848
JB
153052019-02-12 John Baldwin <jhb@FreeBSD.org>
15306
15307 * symfile.c (find_separate_debug_file): Use child_path to
15308 determine if an object file is under a sysroot.
15309
efac4bfe
JB
153102019-02-12 John Baldwin <jhb@FreeBSD.org>
15311
15312 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
15313 unittests/child-path-selftests.c.
15314 * common/pathstuff.c (child_path): New function.
15315 * common/pathstuff.h (child_path): New prototype.
15316 * unittests/child-path-selftests.c: New file.
15317
402d2bfe
JB
153182019-02-12 John Baldwin <jhb@FreeBSD.org>
15319
15320 * symfile.c (find_separate_debug_file): Look for separate debug
15321 files in debug directories under the sysroot.
15322
1ed9f74e
PW
153232019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15324
15325 * symtab.h (struct minimal_symbol data_p): New const method.
15326 (struct minimal_symbol text_p): Likewise.
15327 * symtab.c (output_source_filename): Use file name style
15328 to print file name.
15329 (print_symbol_info): Likewise.
15330 (print_msymbol_info): Use address style to print addresses.
15331 Use function name style to print executable text symbols.
15332 (expand_symtab_containing_pc): Use data_p.
15333 (find_pc_sect_compunit_symtab): Likewise.
15334
2636d81d
PW
153352019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15336
15337 * breakpoint.c (describe_other_breakpoints): Use address style
15338 to print addresses.
15339 (say_where): Likewise.
15340
ac8c53cc
PW
153412019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15342
15343 * ada-typeprint.c (print_func_type): Print function name
15344 style to print function name.
15345 * c-typeprint.c (c_print_type_1): Likewise.
15346
ea638c43
AH
153472019-02-11 Alan Hayward <alan.hayward@arm.com>
15348
15349 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
15350 for execve.
15351
ab759ca8
PW
153522019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15353
15354 * c-exp.y (direct_abs_decl): Use emplace_back to record the
15355 type_stack.
15356
aff29d1c
JB
153572019-02-10 Joel Brobecker <brobecker@adacore.com>
15358
15359 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
15360 TYPE_CODE_REF types.
15361
617126bc
JW
153622019-02-08 Jim Wilson <jimw@sifive.com>
15363
15364 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
15365 (riscv_linux_fregset): New.
15366 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
15367
46e3ed7f
TT
153682019-02-07 Tom Tromey <tom@tromey.com>
15369
15370 * thread.c (thread_cancel_execution_command): Update.
15371 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
15372 methods.
15373 (struct thread_fsm_ops): Remove.
15374 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
15375 (thread_fsm_should_stop, thread_fsm_return_value)
15376 (thread_fsm_set_finished, thread_fsm_finished_p)
15377 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
15378 Don't declare.
15379 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
15380 * infrun.c (clear_proceed_status_thread)
15381 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
15382 (print_stop_event): Update.
15383 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
15384 Add constructor.
15385 (step_command_fsm_ops): Remove.
15386 (new_step_command_fsm): Remove.
15387 (step_1): Update.
15388 (step_command_fsm::should_stop): Rename from
15389 step_command_fsm_should_stop.
15390 (step_command_fsm::clean_up): Rename from
15391 step_command_fsm_clean_up.
15392 (step_command_fsm::do_async_reply_reason): Rename from
15393 step_command_fsm_async_reply_reason.
15394 (struct until_next_fsm): Inherit from thread_fsm. Add
15395 constructor.
15396 (until_next_fsm_ops): Remove.
15397 (new_until_next_fsm): Remove.
15398 (until_next_fsm::should_stop): Rename from
15399 until_next_fsm_should_stop.
15400 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
15401 (until_next_fsm::do_async_reply_reason): Rename from
15402 until_next_fsm_async_reply_reason.
15403 (struct finish_command_fsm): Inherit from thread_fsm. Add
15404 constructor. Change type of breakpoint.
15405 (finish_command_fsm_ops): Remove.
15406 (new_finish_command_fsm): Remove.
15407 (finish_command_fsm::should_stop): Rename from
15408 finish_command_fsm_should_stop.
15409 (finish_command_fsm::clean_up): Rename from
15410 finish_command_fsm_clean_up.
15411 (finish_command_fsm::return_value): Rename from
15412 finish_command_fsm_return_value.
15413 (finish_command_fsm::do_async_reply_reason): Rename from
15414 finish_command_fsm_async_reply_reason.
15415 (finish_command): Update.
15416 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
15417 Add constructor.
15418 (call_thread_fsm_ops): Remove.
15419 (call_thread_fsm::call_thread_fsm): Rename from
15420 new_call_thread_fsm.
15421 (call_thread_fsm::should_stop): Rename from
15422 call_thread_fsm_should_stop.
15423 (call_thread_fsm::should_notify_stop): Rename from
15424 call_thread_fsm_should_notify_stop.
15425 (run_inferior_call, call_function_by_hand_dummy): Update.
15426 * cli/cli-interp.c (should_print_stop_to_console): Update.
15427 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
15428 Add constructor. Change type of location_breakpoint,
15429 caller_breakpoint.
15430 (until_break_fsm_ops): Remove.
15431 (new_until_break_fsm): Remove.
15432 (until_break_fsm::should_stop): Rename from
15433 until_break_fsm_should_stop.
15434 (until_break_fsm::clean_up): Rename from
15435 until_break_fsm_clean_up.
15436 (until_break_fsm::do_async_reply_reason): Rename from
15437 until_break_fsm_async_reply_reason.
15438 (until_break_command): Update.
15439 * thread-fsm.c: Remove.
15440 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
15441
1a5c2598
TT
154422019-02-07 Tom Tromey <tom@tromey.com>
15443
15444 * yy-remap.h: Add include guard.
15445 * xtensa-tdep.h: Add include guard.
15446 * xcoffread.h: Rename include guard.
15447 * varobj-iter.h: Add include guard.
15448 * tui/tui.h: Rename include guard.
15449 * tui/tui-winsource.h: Rename include guard.
15450 * tui/tui-wingeneral.h: Rename include guard.
15451 * tui/tui-windata.h: Rename include guard.
15452 * tui/tui-win.h: Rename include guard.
15453 * tui/tui-stack.h: Rename include guard.
15454 * tui/tui-source.h: Rename include guard.
15455 * tui/tui-regs.h: Rename include guard.
15456 * tui/tui-out.h: Rename include guard.
15457 * tui/tui-layout.h: Rename include guard.
15458 * tui/tui-io.h: Rename include guard.
15459 * tui/tui-hooks.h: Rename include guard.
15460 * tui/tui-file.h: Rename include guard.
15461 * tui/tui-disasm.h: Rename include guard.
15462 * tui/tui-data.h: Rename include guard.
15463 * tui/tui-command.h: Rename include guard.
15464 * tic6x-tdep.h: Add include guard.
15465 * target/waitstatus.h: Rename include guard.
15466 * target/wait.h: Rename include guard.
15467 * target/target.h: Rename include guard.
15468 * target/resume.h: Rename include guard.
15469 * target-float.h: Rename include guard.
15470 * stabsread.h: Add include guard.
15471 * rs6000-tdep.h: Add include guard.
15472 * riscv-fbsd-tdep.h: Add include guard.
15473 * regformats/regdef.h: Rename include guard.
15474 * record.h: Rename include guard.
15475 * python/python.h: Rename include guard.
15476 * python/python-internal.h: Rename include guard.
15477 * python/py-stopevent.h: Rename include guard.
15478 * python/py-ref.h: Rename include guard.
15479 * python/py-record.h: Rename include guard.
15480 * python/py-record-full.h: Rename include guard.
15481 * python/py-record-btrace.h: Rename include guard.
15482 * python/py-instruction.h: Rename include guard.
15483 * python/py-events.h: Rename include guard.
15484 * python/py-event.h: Rename include guard.
15485 * procfs.h: Add include guard.
15486 * proc-utils.h: Add include guard.
15487 * p-lang.h: Add include guard.
15488 * or1k-tdep.h: Rename include guard.
15489 * observable.h: Rename include guard.
15490 * nto-tdep.h: Rename include guard.
15491 * nat/x86-linux.h: Rename include guard.
15492 * nat/x86-linux-dregs.h: Rename include guard.
15493 * nat/x86-gcc-cpuid.h: Add include guard.
15494 * nat/x86-dregs.h: Rename include guard.
15495 * nat/x86-cpuid.h: Rename include guard.
15496 * nat/ppc-linux.h: Rename include guard.
15497 * nat/mips-linux-watch.h: Rename include guard.
15498 * nat/linux-waitpid.h: Rename include guard.
15499 * nat/linux-ptrace.h: Rename include guard.
15500 * nat/linux-procfs.h: Rename include guard.
15501 * nat/linux-osdata.h: Rename include guard.
15502 * nat/linux-nat.h: Rename include guard.
15503 * nat/linux-namespaces.h: Rename include guard.
15504 * nat/linux-btrace.h: Rename include guard.
15505 * nat/glibc_thread_db.h: Rename include guard.
15506 * nat/gdb_thread_db.h: Rename include guard.
15507 * nat/gdb_ptrace.h: Rename include guard.
15508 * nat/fork-inferior.h: Rename include guard.
15509 * nat/amd64-linux-siginfo.h: Rename include guard.
15510 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
15511 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
15512 * nat/aarch64-linux.h: Rename include guard.
15513 * nat/aarch64-linux-hw-point.h: Rename include guard.
15514 * mn10300-tdep.h: Add include guard.
15515 * mips-linux-tdep.h: Add include guard.
15516 * mi/mi-parse.h: Rename include guard.
15517 * mi/mi-out.h: Rename include guard.
15518 * mi/mi-main.h: Rename include guard.
15519 * mi/mi-interp.h: Rename include guard.
15520 * mi/mi-getopt.h: Rename include guard.
15521 * mi/mi-console.h: Rename include guard.
15522 * mi/mi-common.h: Rename include guard.
15523 * mi/mi-cmds.h: Rename include guard.
15524 * mi/mi-cmd-break.h: Rename include guard.
15525 * m2-lang.h: Add include guard.
15526 * location.h: Rename include guard.
15527 * linux-record.h: Rename include guard.
15528 * linux-nat.h: Add include guard.
15529 * linux-fork.h: Add include guard.
15530 * i386-darwin-tdep.h: Rename include guard.
15531 * hppa-linux-offsets.h: Add include guard.
15532 * guile/guile.h: Rename include guard.
15533 * guile/guile-internal.h: Rename include guard.
15534 * gnu-nat.h: Rename include guard.
15535 * gdb-stabs.h: Rename include guard.
15536 * frv-tdep.h: Add include guard.
15537 * f-lang.h: Add include guard.
15538 * event-loop.h: Add include guard.
15539 * darwin-nat.h: Rename include guard.
15540 * cp-abi.h: Rename include guard.
15541 * config/sparc/nm-sol2.h: Rename include guard.
15542 * config/nm-nto.h: Rename include guard.
15543 * config/nm-linux.h: Add include guard.
15544 * config/i386/nm-i386gnu.h: Rename include guard.
15545 * config/djgpp/nl_types.h: Rename include guard.
15546 * config/djgpp/langinfo.h: Rename include guard.
15547 * compile/gcc-cp-plugin.h: Add include guard.
15548 * compile/gcc-c-plugin.h: Add include guard.
15549 * compile/compile.h: Rename include guard.
15550 * compile/compile-object-run.h: Rename include guard.
15551 * compile/compile-object-load.h: Rename include guard.
15552 * compile/compile-internal.h: Rename include guard.
15553 * compile/compile-cplus.h: Rename include guard.
15554 * compile/compile-c.h: Rename include guard.
15555 * common/xml-utils.h: Rename include guard.
15556 * common/x86-xstate.h: Rename include guard.
15557 * common/version.h: Rename include guard.
15558 * common/vec.h: Rename include guard.
15559 * common/tdesc.h: Rename include guard.
15560 * common/selftest.h: Rename include guard.
15561 * common/scoped_restore.h: Rename include guard.
15562 * common/scoped_mmap.h: Rename include guard.
15563 * common/scoped_fd.h: Rename include guard.
15564 * common/safe-iterator.h: Rename include guard.
15565 * common/run-time-clock.h: Rename include guard.
15566 * common/refcounted-object.h: Rename include guard.
15567 * common/queue.h: Rename include guard.
15568 * common/ptid.h: Rename include guard.
15569 * common/print-utils.h: Rename include guard.
15570 * common/preprocessor.h: Rename include guard.
15571 * common/pathstuff.h: Rename include guard.
15572 * common/observable.h: Rename include guard.
15573 * common/netstuff.h: Rename include guard.
15574 * common/job-control.h: Rename include guard.
15575 * common/host-defs.h: Rename include guard.
15576 * common/gdb_wait.h: Rename include guard.
15577 * common/gdb_vecs.h: Rename include guard.
15578 * common/gdb_unlinker.h: Rename include guard.
15579 * common/gdb_unique_ptr.h: Rename include guard.
15580 * common/gdb_tilde_expand.h: Rename include guard.
15581 * common/gdb_sys_time.h: Rename include guard.
15582 * common/gdb_string_view.h: Rename include guard.
15583 * common/gdb_splay_tree.h: Rename include guard.
15584 * common/gdb_setjmp.h: Rename include guard.
15585 * common/gdb_ref_ptr.h: Rename include guard.
15586 * common/gdb_optional.h: Rename include guard.
15587 * common/gdb_locale.h: Rename include guard.
15588 * common/gdb_assert.h: Rename include guard.
15589 * common/filtered-iterator.h: Rename include guard.
15590 * common/filestuff.h: Rename include guard.
15591 * common/fileio.h: Rename include guard.
15592 * common/environ.h: Rename include guard.
15593 * common/common-utils.h: Rename include guard.
15594 * common/common-types.h: Rename include guard.
15595 * common/common-regcache.h: Rename include guard.
15596 * common/common-inferior.h: Rename include guard.
15597 * common/common-gdbthread.h: Rename include guard.
15598 * common/common-exceptions.h: Rename include guard.
15599 * common/common-defs.h: Rename include guard.
15600 * common/common-debug.h: Rename include guard.
15601 * common/cleanups.h: Rename include guard.
15602 * common/buffer.h: Rename include guard.
15603 * common/btrace-common.h: Rename include guard.
15604 * common/break-common.h: Rename include guard.
15605 * cli/cli-utils.h: Rename include guard.
15606 * cli/cli-style.h: Rename include guard.
15607 * cli/cli-setshow.h: Rename include guard.
15608 * cli/cli-script.h: Rename include guard.
15609 * cli/cli-interp.h: Rename include guard.
15610 * cli/cli-decode.h: Rename include guard.
15611 * cli/cli-cmds.h: Rename include guard.
15612 * charset-list.h: Add include guard.
15613 * buildsym-legacy.h: Rename include guard.
15614 * bfin-tdep.h: Add include guard.
15615 * ax.h: Rename include guard.
15616 * arm-linux-tdep.h: Add include guard.
15617 * arm-fbsd-tdep.h: Add include guard.
15618 * arch/xtensa.h: Rename include guard.
15619 * arch/tic6x.h: Add include guard.
15620 * arch/i386.h: Add include guard.
15621 * arch/arm.h: Rename include guard.
15622 * arch/arm-linux.h: Rename include guard.
15623 * arch/arm-get-next-pcs.h: Rename include guard.
15624 * arch/amd64.h: Add include guard.
15625 * arch/aarch64-insn.h: Rename include guard.
15626 * arch-utils.h: Rename include guard.
15627 * annotate.h: Add include guard.
15628 * amd64-darwin-tdep.h: Rename include guard.
15629 * aarch64-linux-tdep.h: Add include guard.
15630 * aarch64-fbsd-tdep.h: Add include guard.
15631 * aarch32-linux-nat.h: Add include guard.
15632
ab9268d2
PW
156332019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15634
15635 * macrotab.c (macro_define_internal): New function that
15636 factorizes macro_define_object_internal and macro_define_function
15637 code.
15638 (macro_define_object_internal): Use macro_define_internal.
15639 (macro_define_function): Likewise.
15640
bb0da2b4
PW
156412019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15642
15643 * macrocmd.c (extract_identifier): Return
15644 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
15645 callers.
15646
424eb552
JB
156472019-02-06 John Baldwin <jhb@FreeBSD.org>
15648
15649 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
15650
1688cb29
TT
156512019-02-05 Tom Tromey <tom@tromey.com>
15652
15653 * target.c (target_stack::unpush): Move assertion earlier.
15654
b5eba2d8
TT
156552019-01-30 Tom Tromey <tom@tromey.com>
15656
15657 PR python/23615:
15658 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
15659 (gdbpy_parse_and_eval): Likewise.
15660 * python/python-internal.h (gdbpy_allow_threads): New class.
15661
7054e2ff
JB
156622019-01-28 John Baldwin <jhb@FreeBSD.org>
15663
15664 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
15665 (aarch64_fbsd_fpregmap): Move earlier.
15666 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
15667 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
15668 instead of individual calls to trad_frame_set_reg_addr.
15669 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
15670 earlier.
15671 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
15672 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
15673 instead of individual calls to trad_frame_set_reg_addr.
15674
36c25ffa
AH
156752019-01-28 Alan Hayward <alan.hayward@arm.com>
15676
15677 * CONTRIBUTE: Replace contribution list with wiki link.
15678
a0707f3c
TT
156792019-01-25 Tom Tromey <tom@tromey.com>
15680
15681 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
15682
0747795c
TT
156832019-01-25 Tom Tromey <tom@tromey.com>
15684
15685 * xtensa-linux-nat.c: Fix common/ includes.
15686 * xml-support.h: Fix common/ includes.
15687 * xml-support.c: Fix common/ includes.
15688 * x86-linux-nat.c: Fix common/ includes.
15689 * windows-nat.c: Fix common/ includes.
15690 * varobj.h: Fix common/ includes.
15691 * varobj.c: Fix common/ includes.
15692 * value.c: Fix common/ includes.
15693 * valops.c: Fix common/ includes.
15694 * utils.c: Fix common/ includes.
15695 * unittests/xml-utils-selftests.c: Fix common/ includes.
15696 * unittests/utils-selftests.c: Fix common/ includes.
15697 * unittests/unpack-selftests.c: Fix common/ includes.
15698 * unittests/tracepoint-selftests.c: Fix common/ includes.
15699 * unittests/style-selftests.c: Fix common/ includes.
15700 * unittests/string_view-selftests.c: Fix common/ includes.
15701 * unittests/scoped_restore-selftests.c: Fix common/ includes.
15702 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
15703 * unittests/scoped_fd-selftests.c: Fix common/ includes.
15704 * unittests/rsp-low-selftests.c: Fix common/ includes.
15705 * unittests/parse-connection-spec-selftests.c: Fix common/
15706 includes.
15707 * unittests/optional-selftests.c: Fix common/ includes.
15708 * unittests/offset-type-selftests.c: Fix common/ includes.
15709 * unittests/observable-selftests.c: Fix common/ includes.
15710 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
15711 * unittests/memrange-selftests.c: Fix common/ includes.
15712 * unittests/memory-map-selftests.c: Fix common/ includes.
15713 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
15714 * unittests/function-view-selftests.c: Fix common/ includes.
15715 * unittests/environ-selftests.c: Fix common/ includes.
15716 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
15717 * unittests/common-utils-selftests.c: Fix common/ includes.
15718 * unittests/cli-utils-selftests.c: Fix common/ includes.
15719 * unittests/array-view-selftests.c: Fix common/ includes.
15720 * ui-file.c: Fix common/ includes.
15721 * tui/tui-io.c: Fix common/ includes.
15722 * tracepoint.h: Fix common/ includes.
15723 * tracepoint.c: Fix common/ includes.
15724 * tracefile-tfile.c: Fix common/ includes.
15725 * top.h: Fix common/ includes.
15726 * top.c: Fix common/ includes.
15727 * thread.c: Fix common/ includes.
15728 * target/waitstatus.h: Fix common/ includes.
15729 * target/waitstatus.c: Fix common/ includes.
15730 * target.h: Fix common/ includes.
15731 * target.c: Fix common/ includes.
15732 * target-memory.c: Fix common/ includes.
15733 * target-descriptions.c: Fix common/ includes.
15734 * symtab.h: Fix common/ includes.
15735 * symfile.c: Fix common/ includes.
15736 * stap-probe.c: Fix common/ includes.
15737 * spu-linux-nat.c: Fix common/ includes.
15738 * sparc-nat.c: Fix common/ includes.
15739 * source.c: Fix common/ includes.
15740 * solib.c: Fix common/ includes.
15741 * solib-target.c: Fix common/ includes.
15742 * ser-unix.c: Fix common/ includes.
15743 * ser-tcp.c: Fix common/ includes.
15744 * ser-pipe.c: Fix common/ includes.
15745 * ser-base.c: Fix common/ includes.
15746 * selftest-arch.c: Fix common/ includes.
15747 * s12z-tdep.c: Fix common/ includes.
15748 * rust-exp.y: Fix common/ includes.
15749 * rs6000-aix-tdep.c: Fix common/ includes.
15750 * riscv-tdep.c: Fix common/ includes.
15751 * remote.c: Fix common/ includes.
15752 * remote-notif.h: Fix common/ includes.
15753 * remote-fileio.h: Fix common/ includes.
15754 * remote-fileio.c: Fix common/ includes.
15755 * regcache.h: Fix common/ includes.
15756 * regcache.c: Fix common/ includes.
15757 * record-btrace.c: Fix common/ includes.
15758 * python/python.c: Fix common/ includes.
15759 * python/py-type.c: Fix common/ includes.
15760 * python/py-inferior.c: Fix common/ includes.
15761 * progspace.h: Fix common/ includes.
15762 * producer.c: Fix common/ includes.
15763 * procfs.c: Fix common/ includes.
15764 * proc-api.c: Fix common/ includes.
15765 * printcmd.c: Fix common/ includes.
15766 * ppc-linux-nat.c: Fix common/ includes.
15767 * parser-defs.h: Fix common/ includes.
15768 * osdata.c: Fix common/ includes.
15769 * obsd-nat.c: Fix common/ includes.
15770 * nat/x86-linux.c: Fix common/ includes.
15771 * nat/x86-linux-dregs.c: Fix common/ includes.
15772 * nat/x86-dregs.h: Fix common/ includes.
15773 * nat/x86-dregs.c: Fix common/ includes.
15774 * nat/ppc-linux.c: Fix common/ includes.
15775 * nat/mips-linux-watch.h: Fix common/ includes.
15776 * nat/mips-linux-watch.c: Fix common/ includes.
15777 * nat/linux-waitpid.c: Fix common/ includes.
15778 * nat/linux-ptrace.h: Fix common/ includes.
15779 * nat/linux-ptrace.c: Fix common/ includes.
15780 * nat/linux-procfs.c: Fix common/ includes.
15781 * nat/linux-personality.c: Fix common/ includes.
15782 * nat/linux-osdata.c: Fix common/ includes.
15783 * nat/linux-namespaces.c: Fix common/ includes.
15784 * nat/linux-btrace.h: Fix common/ includes.
15785 * nat/linux-btrace.c: Fix common/ includes.
15786 * nat/fork-inferior.c: Fix common/ includes.
15787 * nat/amd64-linux-siginfo.c: Fix common/ includes.
15788 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
15789 * nat/aarch64-linux.c: Fix common/ includes.
15790 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
15791 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
15792 * namespace.h: Fix common/ includes.
15793 * mips-linux-tdep.c: Fix common/ includes.
15794 * minsyms.c: Fix common/ includes.
15795 * mi/mi-parse.h: Fix common/ includes.
15796 * mi/mi-main.c: Fix common/ includes.
15797 * mi/mi-cmd-env.c: Fix common/ includes.
15798 * memrange.h: Fix common/ includes.
15799 * memattr.c: Fix common/ includes.
15800 * maint.h: Fix common/ includes.
15801 * maint.c: Fix common/ includes.
15802 * main.c: Fix common/ includes.
15803 * machoread.c: Fix common/ includes.
15804 * location.c: Fix common/ includes.
15805 * linux-thread-db.c: Fix common/ includes.
15806 * linux-nat.c: Fix common/ includes.
15807 * linux-fork.c: Fix common/ includes.
15808 * inline-frame.c: Fix common/ includes.
15809 * infrun.c: Fix common/ includes.
15810 * inflow.c: Fix common/ includes.
15811 * inferior.h: Fix common/ includes.
15812 * inferior.c: Fix common/ includes.
15813 * infcmd.c: Fix common/ includes.
15814 * inf-ptrace.c: Fix common/ includes.
15815 * inf-child.c: Fix common/ includes.
15816 * ia64-linux-nat.c: Fix common/ includes.
15817 * i387-tdep.c: Fix common/ includes.
15818 * i386-tdep.c: Fix common/ includes.
15819 * i386-linux-tdep.c: Fix common/ includes.
15820 * i386-linux-nat.c: Fix common/ includes.
15821 * i386-go32-tdep.c: Fix common/ includes.
15822 * i386-fbsd-tdep.c: Fix common/ includes.
15823 * i386-fbsd-nat.c: Fix common/ includes.
15824 * guile/scm-type.c: Fix common/ includes.
15825 * guile/guile.c: Fix common/ includes.
15826 * go32-nat.c: Fix common/ includes.
15827 * gnu-nat.c: Fix common/ includes.
15828 * gdbthread.h: Fix common/ includes.
15829 * gdbarch-selftests.c: Fix common/ includes.
15830 * gdb_usleep.c: Fix common/ includes.
15831 * gdb_select.h: Fix common/ includes.
15832 * gdb_bfd.c: Fix common/ includes.
15833 * gcore.c: Fix common/ includes.
15834 * fork-child.c: Fix common/ includes.
15835 * findvar.c: Fix common/ includes.
15836 * fbsd-nat.c: Fix common/ includes.
15837 * event-top.c: Fix common/ includes.
15838 * event-loop.c: Fix common/ includes.
15839 * dwarf2read.c: Fix common/ includes.
15840 * dwarf2loc.c: Fix common/ includes.
15841 * dwarf2-frame.c: Fix common/ includes.
15842 * dwarf-index-cache.c: Fix common/ includes.
15843 * dtrace-probe.c: Fix common/ includes.
15844 * disasm-selftests.c: Fix common/ includes.
15845 * defs.h: Fix common/ includes.
15846 * csky-tdep.c: Fix common/ includes.
15847 * cp-valprint.c: Fix common/ includes.
15848 * cp-support.h: Fix common/ includes.
15849 * cp-support.c: Fix common/ includes.
15850 * corelow.c: Fix common/ includes.
15851 * completer.h: Fix common/ includes.
15852 * completer.c: Fix common/ includes.
15853 * compile/compile.c: Fix common/ includes.
15854 * compile/compile-loc2c.c: Fix common/ includes.
15855 * compile/compile-cplus-types.c: Fix common/ includes.
15856 * compile/compile-cplus-symbols.c: Fix common/ includes.
15857 * command.h: Fix common/ includes.
15858 * cli/cli-dump.c: Fix common/ includes.
15859 * cli/cli-cmds.c: Fix common/ includes.
15860 * charset.c: Fix common/ includes.
15861 * build-id.c: Fix common/ includes.
15862 * btrace.h: Fix common/ includes.
15863 * btrace.c: Fix common/ includes.
15864 * breakpoint.h: Fix common/ includes.
15865 * breakpoint.c: Fix common/ includes.
15866 * ax.h:
15867 (enum agent_op): Fix common/ includes.
15868 * ax-general.c (struct aop_map): Fix common/ includes.
15869 * ax-gdb.c: Fix common/ includes.
15870 * auxv.c: Fix common/ includes.
15871 * auto-load.c: Fix common/ includes.
15872 * arm-tdep.c: Fix common/ includes.
15873 * arch/riscv.c: Fix common/ includes.
15874 * arch/ppc-linux-common.c: Fix common/ includes.
15875 * arch/i386.c: Fix common/ includes.
15876 * arch/arm.c: Fix common/ includes.
15877 * arch/arm-linux.c: Fix common/ includes.
15878 * arch/arm-get-next-pcs.c: Fix common/ includes.
15879 * arch/amd64.c: Fix common/ includes.
15880 * arch/aarch64.c: Fix common/ includes.
15881 * arch/aarch64-insn.c: Fix common/ includes.
15882 * arch-utils.c: Fix common/ includes.
15883 * amd64-windows-tdep.c: Fix common/ includes.
15884 * amd64-tdep.c: Fix common/ includes.
15885 * amd64-sol2-tdep.c: Fix common/ includes.
15886 * amd64-obsd-tdep.c: Fix common/ includes.
15887 * amd64-nbsd-tdep.c: Fix common/ includes.
15888 * amd64-linux-tdep.c: Fix common/ includes.
15889 * amd64-linux-nat.c: Fix common/ includes.
15890 * amd64-fbsd-tdep.c: Fix common/ includes.
15891 * amd64-fbsd-nat.c: Fix common/ includes.
15892 * amd64-dicos-tdep.c: Fix common/ includes.
15893 * amd64-darwin-tdep.c: Fix common/ includes.
15894 * agent.c: Fix common/ includes.
15895 * ada-lang.h: Fix common/ includes.
15896 * ada-lang.c: Fix common/ includes.
15897 * aarch64-tdep.c: Fix common/ includes.
15898
2f5c153e
TT
158992019-01-25 Tom Tromey <tom@tromey.com>
15900
15901 * common/create-version.sh: Use common/version.h.
15902
adc6a863
PA
159032019-01-24 Pedro Alves <palves@redhat.com>
15904
15905 * infrun.c (signal_stop, signal_print, signal_program)
15906 (signal_catch, signal_pass): Now arrays instead of pointers.
15907 (update_signals_program_target, do_target_resume)
15908 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
15909 * linux-nat.c (linux_nat_target::pass_signals)
15910 (linux_nat_target::create_inferior, linux_nat_target::attach):
15911 Adjust.
15912 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
15913 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
15914 * procfs.c (procfs_target::pass_signals): Adjust.
15915 * record-full.c (record_full_target::resume): Adjust.
15916 * remote.c (remote_target::pass_signals)
15917 (remote_target::program_signals): Adjust.
15918 * target-debug.h (target_debug_print_signals): Now takes a
15919 gdb::array_view as parameter. Adjust.
15920 * target.h (target_ops) <pass_signals, program_signals>: Replace
15921 pointer and length parameters with gdb::array_view.
15922 (target_pass_signals, target_program_signals): Likewise.
15923 * target-delegates.c: Regenerate.
15924
3046d67a
PA
159252019-01-24 Pedro Alves <palves@redhat.com>
15926
15927 * common/forward-scope-exit.h
15928 (forward_scope_exit::forward_scope_exit): Pass arguments to
15929 m_bind_function directly, instead of creating a std::bind and
15930 copying that.
15931
353229bf
AH
159322019-01-24 Alan Hayward <alan.hayward@arm.com>
15933
15934 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
15935 for static members.
15936 (pass_in_v_vfp_candidate): Likewise.
15937
311dc83a
TT
159382019-01-23 Tom Tromey <tom@tromey.com>
15939 Pedro Alves <palves@redhat.com>
15940
15941 * regcache.c (class regcache_invalidator): Remove.
15942 (regcache::raw_write): Use make_scope_exit.
15943
296bd123
TT
159442019-01-23 Tom Tromey <tom@tromey.com>
15945
15946 * ui-out.h (class ui_out_emit_type): Update comment.
15947
979a0d13
TT
159482019-01-23 Tom Tromey <tom@tromey.com>
15949
15950 * infrun.c (fetch_inferior_event): Update comment.
15951
d238133d
TT
159522019-01-23 Tom Tromey <tom@tromey.com>
15953 Pedro Alves <palves@redhat.com>
15954
15955 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
15956 parameter.
15957 (fetch_inferior_event): Use SCOPE_EXIT.
15958
15959
9885e6bb
TT
159602019-01-23 Tom Tromey <tom@tromey.com>
15961 Pedro Alves <palves@redhat.com>
15962
15963 * infrun.c (disable_thread_events): Delete.
15964 (stop_all_threads): Use SCOPE_EXIT.
15965
286526c1
TT
159662019-01-23 Tom Tromey <tom@tromey.com>
15967 Pedro Alves <palves@redhat.com>
15968
15969 * symfile.c: Include forward-scope-exit.h.
15970 (clear_symtab_users_cleanup): Replace forward declaration with
15971 a FORWARD_SCOPE_EXIT.
15972 (syms_from_objfile_1): Use the forward_scope_exit and
15973 gdb::optional instead of cleanup_function.
15974 (reread_symbols): Use the forward_scope_exit instead of
15975 cleanup_function.
15976 (clear_symtab_users_cleanup): Remove function.
15977
1db93f14
TT
159782019-01-23 Tom Tromey <tom@tromey.com>
15979 Pedro Alves <palves@redhat.com>
15980
15981 * linux-nat.c: Include scope-exit.h.
15982 (cleanup_target_stop): Remove.
15983 (linux_nat_target::static_tracepoint_markers_by_strid): Use
15984 SCOPE_EXIT.
15985
2cc83d1e
TT
159862019-01-23 Tom Tromey <tom@tromey.com>
15987 Pedro Alves <palves@redhat.com>
15988
15989 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
15990 (call_function_by_hand_dummy): Use SCOPE_EXIT.
15991
694c6bf5
TT
159922019-01-23 Tom Tromey <tom@tromey.com>
15993 Andrew Burgess <andrew.burgess@embecosm.com>
15994 Pedro Alves <palves@redhat.com>
15995
15996 * infrun.c (fetch_inferior_event): Use scope_exit.
15997 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
15998 * top.c (execute_command): Use scope_exit.
15999 * breakpoint.c (bpstat_do_actions): Use scope_exit.
16000 * utils.c (do_bpstat_clear_actions_cleanup)
16001 (make_bpstat_clear_actions_cleanup): Remove.
16002
4c41382a
TT
160032019-01-23 Tom Tromey <tom@tromey.com>
16004 Pedro Alves <palves@redhat.com>
16005
16006 * infrun.c: Include "common/scope-exit.h"
16007 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
16008 (wait_for_inferior): Use SCOPE_EXIT.
16009 (fetch_inferior_event): Use scope_exit.
16010
89f8fb50
TT
160112019-01-23 Tom Tromey <tom@tromey.com>
16012 Pedro Alves <palves@redhat.com>
16013
16014 * breakpoint.c (create_breakpoint): Remove cleanup.
16015
5419bdae
TT
160162019-01-23 Tom Tromey <tom@tromey.com>
16017 Andrew Burgess <andrew.burgess@embecosm.com>
16018 Pedro Alves <palves@redhat.com>
16019
e587ef42
PA
160202019-01-23 Pedro Alves <palves@redhat.com>
16021
16022 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
16023
77f0e74c
PA
160242019-01-23 Pedro Alves <palves@redhat.com>
16025 Andrew Burgess <andrew.burgess@embecosm.com>
16026
16027 * gdbthread.h: Include "common/forward-scope-exit.h".
16028 (scoped_finish_thread_state): Redefine custom class in terms of
16029 forward_scope_exit.
16030
5b9b3e53
PA
160312019-01-23 Pedro Alves <palves@redhat.com>
16032 Andrew Burgess <andrew.burgess@embecosm.com>
16033
16034 * common/forward-scope-exit.h: New file.
16035
54b65c9b
PA
160362019-01-23 Pedro Alves <palves@redhat.com>
16037 Andrew Burgess <andrew.burgess@embecosm.com>
16038 Tom Tromey <tom@tromey.com>
16039
16040 * common/scope-exit.h: New file.
16041
cf08fb29
PA
160422019-01-23 Pedro Alves <palves@redhat.com>
16043
16044 * common/preprocessor.h (ESC): Rename to ...
16045 (ESC_PARENS): ... this.
16046 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
16047 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
16048
ae73e2e2
TT
160492019-01-23 Tom Tromey <tom@tromey.com>
16050
16051 * language.h (class scoped_switch_to_sym_language_if_auto):
16052 Initialize m_lang in both cases.
16053
6594e122
AH
160542019-01-23 Alan Hayward <alan.hayward@arm.com>
16055
16056 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
16057 with XCNEW.
16058
a7c9855d
TT
160592019-01-22 Tom Tromey <tom@tromey.com>
16060
16061 * corelow.c: Do not include sys/file.h.
16062
93cc1d53
TT
160632019-01-22 Tom Tromey <tom@tromey.com>
16064
16065 * tui/tui-wingeneral.h: Include gdb_curses.h.
16066
38561778
TT
160672019-01-22 Tom Tromey <tom@tromey.com>
16068
16069 * source-cache.h (class source_cache) <get_source_lines,
16070 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
16071
37b3ab5b
TT
160722019-01-22 Tom Tromey <tom@tromey.com>
16073
16074 * remote-fileio.h (struct remote_target): Declare.
16075
3fabc016
TT
160762019-01-22 Tom Tromey <tom@tromey.com>
16077
16078 * python/py-arch.c: Do not include py-ref.h.
16079 * python/py-bpevent.c: Do not include py-ref.h.
16080 * python/py-cmd.c: Do not include py-ref.h.
16081 * python/py-continueevent.c: Do not include py-ref.h.
16082 * python/py-event.h: Do not include py-ref.h.
16083 * python/py-evtregistry.c: Do not include py-ref.h.
16084 * python/py-finishbreakpoint.c: Do not include py-ref.h.
16085 * python/py-frame.c: Do not include py-ref.h.
16086 * python/py-framefilter.c: Do not include py-ref.h.
16087 * python/py-function.c: Do not include py-ref.h.
16088 * python/py-infevents.c: Do not include py-ref.h.
16089 * python/py-linetable.c: Do not include py-ref.h.
16090 * python/py-objfile.c: Do not include py-ref.h.
16091 * python/py-param.c: Do not include py-ref.h.
16092 * python/py-prettyprint.c: Do not include py-ref.h.
16093 * python/py-progspace.c: Do not include py-ref.h.
16094 * python/py-symbol.c: Do not include py-ref.h.
16095 * python/py-symtab.c: Do not include py-ref.h.
16096 * python/py-type.c: Do not include py-ref.h.
16097 * python/py-unwind.c: Do not include py-ref.h.
16098 * python/py-utils.c: Do not include py-ref.h.
16099 * python/py-value.c: Do not include py-ref.h.
16100 * python/py-varobj.c: Do not include py-ref.h.
16101 * python/py-xmethods.c: Do not include py-ref.h.
16102 * python/python.c: Do not include py-ref.h.
16103 * varobj.c: Do not include py-ref.h.
16104
6b4d7774
TT
161052019-01-22 Tom Tromey <tom@tromey.com>
16106
16107 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
16108 keyword for bcache.
16109
7af7e9b5
TT
161102019-01-22 Tom Tromey <tom@tromey.com>
16111
16112 * compile/compile-cplus-types.c: Remove a comment by #include.
16113
951d1049
TT
161142019-01-22 Tom Tromey <tom@tromey.com>
16115
16116 * compile/gcc-c-plugin.h: Include compile-internal.h.
16117
d65d5705
TT
161182019-01-22 Tom Tromey <tom@tromey.com>
16119
16120 * stabsread.c (EXTERN): Do not define.
16121 (symnum, next_symbol_text_func, processing_gcc_compilation)
16122 (within_function, global_sym_chain, global_stabs)
16123 (previous_stab_code, this_object_header_files)
16124 (n_this_object_header_files)
16125 (n_allocated_this_object_header_files): Define.
16126 * stabsread.h (EXTERN): Never define. Use "extern".
16127
b6fb1ee5
PW
161282019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16129
16130 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
16131 history_value.
16132
be6d4f74
TT
161332019-01-21 Tom Tromey <tom@tromey.com>
16134
16135 * ui-out.c: Fix includes.
16136 * tui/tui-source.c: Fix includes.
16137 * target.c: Fix includes.
16138 * remote.c: Fix includes.
16139 * regcache.c: Fix includes.
16140 * python/py-block.c: Fix includes.
16141 * printcmd.c: Fix includes.
16142 * or1k-tdep.c: Fix includes.
16143 * mi/mi-main.c: Fix includes.
16144 * m32r-tdep.c: Fix includes.
16145 * csky-tdep.c: Fix includes.
16146 * compile/compile-cplus-types.c: Fix includes.
16147 * cli/cli-interp.c: Fix includes.
16148
73021deb
AH
161492019-01-21 Alan Hayward <alan.hayward@arm.com>
16150
16151 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
16152 for padding.
16153
7932255d
TT
161542019-01-16 Tom Tromey <tom@tromey.com>
16155
16156 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
16157 earlier.
16158 (struct objfile) <msymbols_range>: Move from top level.
16159 <msymbols>: New method.
16160 (class objfile_msymbols): Remove.
16161 * symtab.c (default_collect_symbol_completion_matches_break_on):
16162 Update.
16163 * symmisc.c (dump_msymbols): Update.
16164 * stabsread.c (scan_file_globals): Update.
16165 * objc-lang.c (info_selectors_command, info_classes_command)
16166 (find_methods): Update.
16167 * minsyms.c (find_solib_trampoline_target): Update.
16168 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
16169 * coffread.c (coff_symfile_read): Update.
16170 * ada-lang.c (ada_lookup_simple_minsym)
16171 (ada_collect_symbol_completion_matches): Update.
16172
604b1bfb
TT
161732019-01-16 Tom Tromey <tom@tromey.com>
16174
16175 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
16176 type. Remove no-argument constructor.
16177 <iterator::operator++>: Simplify.
16178 <begin>: Update.
16179 <end>: Use minimal_symbol_count.
16180
f252c6d5
TT
161812019-01-16 Tom Tromey <tom@tromey.com>
16182
16183 * objfiles.h (struct objfile) <psymtabs>: New method.
16184 (class objfile_psymtabs): Remove.
16185 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
16186 typedef.
16187 <range>: New method.
16188 (require_partial_symbols): Change return type.
16189 * psymtab.c (require_partial_symbols)
16190 (psym_expand_symtabs_matching): Update.
16191 * mdebugread.c (parse_partial_symbols): Update.
16192 * dbxread.c (dbx_end_psymtab): Update.
16193
b669c953
TT
161942019-01-15 Tom Tromey <tom@tromey.com>
16195
16196 * symtab.c (lookup_objfile_from_block)
16197 (lookup_symbol_in_objfile_symtabs)
16198 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
16199 (find_line_symtab, info_sources_command)
16200 (default_collect_symbol_completion_matches_break_on)
16201 (make_source_files_completion_list): Update.
16202 * symmisc.c (print_objfile_statistics, dump_objfile)
16203 (maintenance_print_symbols, maintenance_info_symtabs)
16204 (maintenance_check_symtabs, maintenance_info_line_tables):
16205 Update.
16206 * source.c (select_source_symtab)
16207 (forget_cached_source_info_for_objfile): Update.
16208 * objfiles.h (class objfile_compunits): Remove.
16209 (struct objfile) <compunits_range>: New typedef.
16210 (compunits): New method.
16211 * objfiles.c (objfile_relocate1): Update.
16212 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
16213 * maint.c (count_symtabs_and_blocks): Update.
16214 * linespec.c (iterate_over_all_matching_symtabs): Update.
16215 * cp-support.c (add_symbol_overload_list_qualified): Update.
16216 * coffread.c (coff_symtab_read): Update.
16217 * ada-lang.c (add_nonlocal_symbols)
16218 (ada_collect_symbol_completion_matches)
16219 (ada_add_global_exceptions): Update.
16220
7e955d83
TT
162212019-01-15 Tom Tromey <tom@tromey.com>
16222
16223 * progspace.h (program_space) <objfiles_safe_range>: New
16224 typedef.
16225 <objfiles_safe>: New method.
16226 * objfiles.h (class all_objfiles_safe): Remove.
16227 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
16228 * jit.c (jit_inferior_exit_hook): Update.
16229
2030c079
TT
162302019-01-17 Tom Tromey <tom@tromey.com>
16231
16232 * progspace.h (program_space) <objfiles_range>: New typedef.
16233 <objfiles>: New method.
16234 <objfiles_head>: Rename from objfiles.
16235 (object_files): Update.
16236 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
16237 * guile/scm-pretty-print.c
16238 (ppscm_find_pretty_printer_from_objfiles): Update.
16239 * guile/scm-objfile.c (gdbscm_objfiles): Update.
16240 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
16241 Update.
16242 * python/py-progspace.c (pspy_get_objfiles): Update.
16243 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
16244 Update.
16245 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
16246 (objfpy_lookup_objfile_by_build_id): Update.
16247 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
16248 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
16249 Update.
16250 * symtab.c (iterate_over_symtabs, matching_obj_sections)
16251 (expand_symtab_containing_pc, lookup_objfile_from_block)
16252 (lookup_static_symbol, basic_lookup_transparent_type)
16253 (find_pc_sect_compunit_symtab, find_symbol_at_address)
16254 (find_line_symtab, info_sources_command)
16255 (default_collect_symbol_completion_matches_break_on)
16256 (make_source_files_completion_list, find_main_name): Update.
16257 * symmisc.c (print_symbol_bcache_statistics)
16258 (print_objfile_statistics, maintenance_print_symbols)
16259 (maintenance_print_msymbols, maintenance_print_objfiles)
16260 (maintenance_info_symtabs, maintenance_check_symtabs)
16261 (maintenance_expand_symtabs, maintenance_info_line_tables):
16262 Update.
16263 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
16264 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
16265 (map_overlay_command, unmap_overlay_command)
16266 (simple_overlay_update, expand_symtabs_matching)
16267 (map_symbol_filenames): Update.
16268 * symfile-debug.c (set_debug_symfile): Update.
16269 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
16270 Update.
16271 * source.c (select_source_symtab, forget_cached_source_info):
16272 Update.
16273 * solib.c (solib_read_symbols): Update.
16274 * solib-spu.c (append_ocl_sos): Update.
16275 * psymtab.c (maintenance_print_psymbols)
16276 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
16277 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
16278 * printcmd.c (info_symbol_command): Update.
16279 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
16280 Update.
16281 * objfiles.h (class all_objfiles): Remove.
16282 * objfiles.c (have_partial_symbols, have_full_symbols)
16283 (have_minimal_symbols, qsort_cmp, update_section_map)
16284 (shared_objfile_contains_address_p)
16285 (default_iterate_over_objfiles_in_search_order): Update.
16286 * objc-lang.c (info_selectors_command, info_classes_command)
16287 (find_methods): Update.
16288 * minsyms.c (find_solib_trampoline_target): Update.
16289 * maint.c (maintenance_info_sections)
16290 (maintenance_translate_address, count_symtabs_and_blocks):
16291 Update.
16292 * main.c (captured_main_1): Update.
16293 * linux-thread-db.c (try_thread_db_load_from_pdir)
16294 (has_libpthread): Update.
16295 * linespec.c (iterate_over_all_matching_symtabs)
16296 (search_minsyms_for_name): Update.
16297 * jit.c (jit_find_objf_with_entry_addr): Update.
16298 * hppa-tdep.c (find_unwind_entry)
16299 (hppa_lookup_stub_minimal_symbol): Update.
16300 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
16301 Update.
16302 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
16303 (elf_gnu_ifunc_resolve_by_got): Update.
16304 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
16305 * dwarf-index-write.c (save_gdb_index_command): Update.
16306 * cp-support.c (add_symbol_overload_list_qualified): Update.
16307 * breakpoint.c (create_overlay_event_breakpoint)
16308 (create_longjmp_master_breakpoint)
16309 (create_std_terminate_master_breakpoint)
16310 (create_exception_master_breakpoint): Update.
16311 * blockframe.c (find_pc_partial_function): Update.
16312 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
16313 (ada_collect_symbol_completion_matches)
16314 (ada_add_global_exceptions): Update.
16315
776489e0
TT
163162019-01-17 Tom Tromey <tom@tromey.com>
16317
16318 * solib-target.c (lm_info_target_p): Remove typedef. Don't
16319 declare VEC.
16320 (solib_target_parse_libraries): Change return type.
16321 (library_list_start_segment, library_list_start_section)
16322 (library_list_end_library, library_list_start_library); Update.
16323 (solib_target_free_library_list): Remove.
16324 (solib_target_parse_libraries): Remove cleanup. Change return
16325 type.
16326 (solib_target_current_sos): Update.
16327
6471e7d2
TT
163282019-01-17 Tom Tromey <tromey@bapiya>
16329
16330 * valprint.c: Replace "the the" with "the".
16331 * symtab.c: Replace "the the" with "the".
16332 * solib.c: Replace "the the" with "the".
16333 * solib-dsbt.c: Replace "the the" with "the".
16334 * linespec.c: Replace "the the" with "the".
16335 * dwarf2loc.h: Replace "the the" with "the".
16336 * amd64-windows-tdep.c: Replace "the the" with "the".
16337 * aarch64-tdep.c: Replace "the the" with "the".
16338
c24bdb02
KS
163392019-01-16 Keith Seitz <keiths@redhat.com>
16340
16341 PR gdb/23773
16342 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
16343 <builder>: Rename to ..
16344 <m_builder>: ... this and make private.
16345 (dwarf2_cu::get_builder): New method. Change all users of
16346 `builder' to use this method.
16347 (dwarf2_start_symtab): Move to ...
16348 (dwarf2_cu::start_symtab): ... here. Update all callers
16349 (setup_type_unit_groups): Move to ...
16350 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
16351 callers.
16352 (dwarf2_cu::reset_builder): New method.
16353 (process_full_compunit, process_full_type_unit): Use
16354 dwarf2_cu::reset_builder.
16355 (follow_die_offset): Record the ancestor CU if it is different
16356 from the followed DIE's CU.
16357 (follow_die_sig_1): Likewise.
16358
8d64371b
TT
163592019-01-15 Tom Tromey <tom@tromey.com>
16360
16361 * remote.c (class remote_state) <buf>: Now a char_vector.
16362 <buf_size>: Remove.
16363 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
16364 parameter.
16365 (remote_target::getpkt_or_notif_sane_1)
16366 (remote_target::getpkt_sane)
16367 (remote_target::getpkt_or_notif_sane): Likewise.
16368 (class remote_target) <putpkt>: New overload.
16369 (remote_target::read_frame): Change type of "buf_p". Remove
16370 sizeof_p parameter.
16371 (packet_ok): New overload.
16372 (packet_check_result): New overload.
16373 Update all uses.
16374
bb277751
TT
163752019-01-14 Tom Tromey <tom@tromey.com>
16376
16377 * remote-notif.c (handle_notification, remote_notif_ack)
16378 (remote_notif_parse): Make "buf" const.
16379 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
16380 const.
16381 (remote_notif_parse, remote_notif_ack, handle_notification):
16382 Likewise.
16383 * remote.c (remote_notif_stop_parse): Make "buf" const.
16384 (remote_target::remote_parse_stop_reply): Make "buf" const.
16385 (remote_notif_stop_ack): Make "buf" const.
16386
05be00a8
TT
163872019-01-14 Tom Tromey <tom@tromey.com>
16388
16389 * remote.c (remote_console_output): Make parameter const.
16390
491adeca
TT
163912019-01-14 Tom Tromey <tom@tromey.com>
16392
16393 * target-debug.h (target_debug_print_signals): Constify.
16394 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
16395 * procfs.c (procfs_target::pass_signals): Update.
16396 * linux-nat.c (linux_nat_target::pass_signals): Update.
16397 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
16398 * target-delegates.c: Rebuild.
16399 * remote.c (remote_target::program_signals): Update.
16400 (remote_target::pass_signals): Update.
16401 * target.c (target_pass_signals): Constify argument.
16402 (target_program_signals): Likewise.
16403 * target.h (struct target_ops) <pass_signals, program_signals>:
16404 Constify argument.
16405 (target_pass_signals, target_program_signals): Constify argument.
16406
bbd94648
TT
164072019-01-14 Tom Tromey <tom@tromey.com>
16408
16409 PR tui/28819:
16410 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
16411
6f072a10
PFC
164122019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
16413
16414 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
16415 field.
16416 * rs6000-tdep.c: Include reggroups.h.
16417 (IS_V_ALIAS_PSEUDOREG): Define.
16418 (rs6000_register_name): Return names for the "vX" aliases.
16419 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
16420 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
16421 aliases. Call default_register_reggroup_p for all other
16422 pseudo-registers.
16423 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
16424 New functions.
16425 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
16426 Handle "vX" aliases.
16427 (v_alias_pseudo_register_collect): New function.
16428 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
16429 (rs6000_gdbarch_init): Initialize "vX" aliases as
16430 pseudo-registers. Restore registration of
16431 rs6000_pseudo_register_reggroup_p with
16432 set_tdesc_pseudo_register_reggroup_p.
16433
1a782351
MF
164342019-01-13 Max Filippov <jcmvbkbc@gmail.com>
16435
16436 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
16437 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
16438 set_gdbarch_num_pseudo_regs.
16439
d73cff18
PW
164402019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16441
16442 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
16443 Remove arg prefixname, add do_set and do_show.
16444 Add member functions set_list and show_list.
16445 * cli/cli-style.c (class cli_style_option): Update accordingly.
16446 (style_set_list): Move to file scope.
16447 (style_show_list): Likewise.
16448 (set_style): Call help_list.
16449 (show_style): Call cmd_show_list.
16450 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
16451 Update to use the new macro.
16452
60a90376
JB
164532019-10-12 Joel Brobecker <brobecker@adacore.com>
16454
16455 * ada-lang.c (_initialize_ada_language): Expand the help text
16456 for the "catch exception" command.
16457
9d7c67bf
PW
164582019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16459
16460 * symtab.c (matching_obj_sections): Initialize obj,
16461 declare it closer to its usage.
16462
7cf47dc4
TT
164632019-01-10 Tom Tromey <tom@tromey.com>
16464
16465 * thread-iter.h (inf_threads_iterator): Use next_iterator.
16466 (basic_inf_threads_range): Remove.
16467 (inf_threads_range, inf_non_exited_threads_range)
16468 (safe_inf_threads_range): Use next_adapter.
16469
d3cb6808
KS
164702019-01-10 Keith Seitz <keiths@redhat.com>
16471
16472 PR gdb/23712
16473 PR symtab/23010
16474 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
16475 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
16476
63a20375
KS
164772019-01-10 Keith Seitz <keiths@redhat.com>
16478
16479 PR gdb/23712
16480 PR symtab/23010
16481 * dictionary.c (pending_to_vector): Remove.
16482 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
16483 Remove _1 suffix, replacing functions of the same name. Update
16484 all callers.
16485 (dict_create_hashed, dict_create_hashed_expandable)
16486 (dict_create_linear, dict_create_linear_expandable, dict_free)
16487 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
16488 Make functions static.
16489
b026f593
KS
164902019-01-10 Keith Seitz <keiths@redhat.com>
16491
16492 PR gdb/23712
16493 PR symtab/23010
16494 * dictionary.h (struct dictionary): Replace declaration with
16495 multidictionary.
16496 (dict_create_hashed, dict_create_hashed_expandable)
16497 (dict_create_linear, dict_create_linear_expandable)
16498 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
16499 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
16500 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
16501 taking multidictionary argument.
16502 [ALL_DICT_SYMBOLS]: Update for multidictionary.
16503 * block.h (struct block) <dict>: Change to multidictionary
16504 and rename `multidict'.
16505 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
16506 symmisc.c: Update all dictionary references to multidictionary.
16507
c7748ee9
KS
165082019-01-10 Keith Seitz <keiths@redhat.com>
16509
16510 PR gdb/23712
16511 PR symtab/23010
16512 * dictionary.c: Include unordered_map.
16513 (pending_to_vector): New function.
16514 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
16515 Rewrite the non-"_1" functions to take vector instead
16516 of linked list.
16517 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
16518 "new" _1 versions of the same name.
16519 (multidictionary): Define.
16520 (std::hash<enum language): New definition.
16521 (collate_pending_symbols_by_language, mdict_create_hashed)
16522 (mdict_create_hashed_expandable, mdict_create_linear)
16523 (mdict_create_linear_expandable, mdict_free)
16524 (find_language_dictionary, create_new_language_dictionary)
16525 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
16526 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
16527 (mdict_size, mdict_empty): New functions.
16528 * dictionary.h (mdict_iterator): Define.
16529
67aa1f3c
PA
165302019-01-10 Pedro Alves <palves@redhat.com>
16531
16532 * breakpoint.c (read_uploaded_action)
16533 (create_tracepoint_from_upload): Adjust to use
16534 gdb::unique_xmalloc_ptr.
16535 * ctf.c (ctf_write_uploaded_tp):
16536 (SET_ARRAY_FIELD): Use emplace_back.
16537 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
16538 * tracefile-tfile.c (tfile_write_uploaded_tp):
16539 * tracepoint.c (parse_tracepoint_definition): Adjust to use
16540 gdb::unique_xmalloc_ptr.
16541 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
16542 at_string, cond_string, cmd_strings>: Replace char pointers
16543 with gdb::unique_xmalloc_ptr.
16544
2f667667
PA
165452019-01-10 Pedro Alves <palves@redhat.com>
16546
16547 * solib-target.c (library_list_start_library): Don't xstrdup name.
16548
36cb7237
PA
165492019-01-10 Pedro Alves <palves@redhat.com>
16550
16551 * mdebugread.c (parse_partial_symbols): Use
16552 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
16553
da584958
AB
165542019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
16555
16556 * linux-fork.c (scoped_switch_fork_info)
16557 <~scoped_switch_fork_info>: Fix incorrect variable name.
16558
1ef8573c
AB
165592019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
16560
16561 * linux-fork.c (scoped_switch_fork_info)
16562 <scoped_switch_fork_info>: Make explicit.
16563 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
16564
8d7bcccb
TT
165652019-01-10 Tom Tromey <tom@tromey.com>
16566
16567 * objfiles.h (objfile::reset_psymtabs): Update.
16568 * objfiles.c (objfile::objfile): Update.
16569 * psymtab.h (psymtab_storage::obstack): Update.
16570 (psymtab_storage::m_obstack): Use gdb::optional.
16571 (class psymtab_storage): Update comment. Remove objfile
16572 parameter.
16573 * psymtab.c (psymtab_storage::psymtab_storage): Update.
16574
b596a3c7
TT
165752019-01-10 Tom Tromey <tom@tromey.com>
16576
16577 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
16578 <free_psymtabs>: Now private.
16579 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
16580 (allocate_psymtab): Use new method.
16581
a9342b62
TT
165822019-01-10 Tom Tromey <tom@tromey.com>
16583
16584 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
16585 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
16586 * mdebugread.c (parse_partial_symbols): Use
16587 allocate_dependencies.
16588 * dwarf2read.c (dwarf2_create_include_psymtab): Use
16589 allocate_dependencies.
16590 (process_psymtab_comp_unit_reader)
16591 (build_type_psymtab_dependencies): Likewise.
16592 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
16593
5af70966
TT
165942019-01-10 Tom Tromey <tom@tromey.com>
16595
16596 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
16597 PSYMBOL_SET_LANGUAGE.
16598 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
16599
5923a04c
TT
166002019-01-10 Tom Tromey <tom@tromey.com>
16601
16602 * psymtab.h (psymtab_storage::obstack): New method.
16603 <m_obstack>: Rename from obstack; now private.
16604 * psymtab.c (psymtab_storage): Update.
16605 * dwarf2read.c (create_addrmap_from_index)
16606 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
16607 Update.
16608
6d6a12bf
TT
166092019-01-10 Tom Tromey <tom@tromey.com>
16610
16611 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
16612 * objfiles.h (objfile::reset_psymtabs): New method.
16613
d320c2b5
TT
166142019-01-10 Tom Tromey <tom@tromey.com>
16615
16616 * symmisc.c (print_symbol_bcache_statistics): Update.
16617 (print_objfile_statistics): Update.
16618 * symfile.c (reread_symbols): Update.
16619 * psymtab.h (class psymtab_storage): New.
16620 * psymtab.c (psymtab_storage): New constructor.
16621 (~psymtab_storage): New destructor.
16622 (require_partial_symbols): Update.
16623 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
16624 (find_pc_sect_psymtab, find_pc_sect_psymbol)
16625 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
16626 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
16627 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
16628 (start_psymtab_common, end_psymtab_common)
16629 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
16630 (allocate_psymtab): Update.
16631 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
16632 Update.
16633 (dump_psymtab_addrmap, maintenance_print_psymbols)
16634 (maintenance_check_psymtabs): Update.
16635 (class objfile_psymtabs): Move to objfiles.h.
16636 * psympriv.h (discard_psymtab): Now inline.
16637 (psymtab_discarder::psymtab_discarder): Update.
16638 (psymtab_discarder::~psymtab_discarder): Update.
16639 (ALL_OBJFILE_PSYMTABS): Rewrite.
16640 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
16641 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
16642 Remove fields.
16643 <partial_symtabs>: New field.
16644 (class objfile_psymtabs): Move from psymtab.h. Update.
16645 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
16646 psymbol_cache.
16647 (objfile::~objfile): Don't destroy psymbol_cache.
16648 * mdebugread.c (parse_partial_symbols): Update.
16649 * dwarf2read.c (create_addrmap_from_index)
16650 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
16651 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
16652 (add_partial_subprogram, dwarf2_ranges_read): Update.
16653 * dwarf-index-write.c (write_address_map)
16654 (write_one_signatured_type, recursively_write_psymbols)
16655 (class debug_names, class debug_names, write_psymtabs_to_index):
16656 Update.
16657
1d94a5a3
TT
166582019-01-10 Tom Tromey <tom@tromey.com>
16659
16660 * symtab.h (SYMBOL_SET_NAMES): Update.
16661 (symbol_set_names): Update.
16662 (MSYMBOL_SET_NAMES): Update.
16663 * symtab.c (symbol_set_names): Change argument to be an
16664 objfile_per_bfd_storage.
16665 * psymtab.c (add_psymbol_to_bcache): Update.
16666 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
16667
0f14768a
TT
166682019-01-10 Tom Tromey <tom@tromey.com>
16669
16670 * symtab.c (create_demangled_names_hash): Change argument to be an
16671 objfile_per_bfd_storage.
16672 (symbol_set_names): Update.
16673
6eee24ce
TT
166742019-01-10 Tom Tromey <tom@tromey.com>
16675
16676 * xcoffread.c (xcoff_initial_scan): Unconditionally call
16677 init_psymbol_list.
16678 * psymtab.c (init_psymbol_list): Do nothing if already called.
16679 * psympriv.h (init_psymbol_list): Add comment.
16680 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
16681 init_psymbol_list.
16682 * dbxread.c (dbx_symfile_read): Unconditionally call
16683 init_psymbol_list.
16684
75aedd27
TT
166852019-01-10 Tom Tromey <tom@tromey.com>
16686
16687 * xcoffread.c (scan_xcoff_symtab): Update.
16688 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
16689 "where".
16690 * mdebugread.c (parse_partial_symbols)
16691 (handle_psymbol_enumerators): Update.
16692 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
16693 * dbxread.c (read_dbx_symtab): Update.
16694 * psympriv.h (psymbol_placement): New enum.
16695 (add_psymbol_to_list): Update.
16696
939652a5
TT
166972019-01-10 Tom Tromey <tom@tromey.com>
16698
16699 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
16700 static_psymbols parameters.
16701 (scan_xcoff_symtab): Update.
16702 * psymtab.c (start_psymtab_common): Remove global_psymbols and
16703 static_psymbols parameters.
16704 * psympriv.h (start_psymtab_common): Update.
16705 * mdebugread.c (parse_partial_symbols): Update.
16706 * dwarf2read.c (create_partial_symtab): Update.
16707 * dbxread.c (read_dbx_symtab): Update.
16708 (start_psymtab): Remove global_psymbols and static_psymbols
16709 parameters.
16710
baa62830
TT
167112019-01-10 Tom Tromey <tom@tromey.com>
16712
16713 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
16714 * psymtab.c (allocate_psymtab): Add comment.
16715 * psympriv.h (allocate_psymtab): Add comment.
16716 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
16717 initializations.
16718 * dbxread.c (dbx_end_psymtab): Remove some initializations.
16719
0e8f53ba
TT
167202019-01-10 Tom Tromey <tom@tromey.com>
16721
16722 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
16723 Don't declare.
16724 * mipsread.c: Include mdebugread.h.
16725 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
16726 Declare.
16727 * elfread.c: Include mdebugread.h.
16728
b22a7c6a
TT
167292019-01-09 Tom Tromey <tom@tromey.com>
16730
16731 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
16732 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
16733 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
16734 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
16735 (psym_lookup_symbol, psym_find_last_source_symtab)
16736 (psym_forget_cached_source_info, psym_print_stats)
16737 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
16738 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
16739 (psym_map_matching_symbols, psym_expand_symtabs_matching)
16740 (psym_find_compunit_symtab_by_address)
16741 (maintenance_print_psymbols, maintenance_info_psymtabs)
16742 (maintenance_check_psymtabs): Use ranged for.
16743 * psymtab.h (class objfile_psymtabs): New.
16744 (require_partial_symbols): Return objfile_psymtabs.
16745 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
16746
3b9d3ac2
TT
167472019-01-09 Tom Tromey <tom@tromey.com>
16748
16749 * symfile.c (overlay_invalidate_all, find_pc_overlay)
16750 (find_pc_mapped_section, list_overlays_command)
16751 (map_overlay_command, unmap_overlay_command)
16752 (simple_overlay_update): Use all_objfiles.
16753 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
16754 * printcmd.c (info_symbol_command): Use all_objfiles.
16755 * objfiles.h (ALL_OBJSECTIONS): Remove.
16756 * maint.c (maintenance_translate_address): Use all_objfiles.
16757 * gcore.c (gcore_create_callback): Use all_objfiles.
16758 (objfile_find_memory_regions): Likewise.
16759
8b31193a
TT
167602019-01-09 Tom Tromey <tom@tromey.com>
16761
16762 * symtab.c (find_line_symtab, info_sources_command)
16763 (make_source_files_completion_list): Use objfile_compunits.
16764 * source.c (select_source_symtab): Use objfile_compunits.
16765 * objfiles.h (struct objfile): Update comment.
16766 (ALL_OBJFILES): Remove.
16767 (ALL_FILETABS): Remove.
16768 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
16769 objfile_compunits.
16770
d5da8b3c
TT
167712019-01-09 Tom Tromey <tom@tromey.com>
16772
16773 * symmisc.c (print_objfile_statistics, dump_objfile)
16774 (maintenance_print_symbols): Use compunit_filetabs.
16775 * source.c (forget_cached_source_info_for_objfile): Use
16776 compunit_filetabs.
16777 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
16778 (ALL_FILETABS): Use compunit_filetabs.
16779 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
16780 * coffread.c (coff_symtab_read): Use compunit_filetabs.
16781
5accd1a0
TT
167822019-01-09 Tom Tromey <tom@tromey.com>
16783
16784 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
16785 (compunit_filetabs): New.
16786 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
16787 compunit_filetabs.
16788 (info_sources_command, make_source_files_completion_list): Remove
16789 declaration.
16790 * symmisc.c (print_objfile_statistics, dump_objfile)
16791 (maintenance_print_symbols): Remove declaration.
16792 (maintenance_info_symtabs): Use compunit_filetabs.
16793 (maintenance_info_line_tables): Likewise.
16794 * source.c (select_source_symtab): Change local variable name.
16795 (forget_cached_source_info_for_objfile): Remove declaration.
16796 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
16797 * objfiles.c (objfile_relocate1): Remove declaration.
16798 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
16799 declaration.
16800 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
16801 * coffread.c (coff_symtab_read): Remove declaration.
16802 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
16803 compunit_filetabs.
16804
d8aeb77f
TT
168052019-01-09 Tom Tromey <tom@tromey.com>
16806
16807 * symtab.c (lookup_objfile_from_block)
16808 (find_pc_sect_compunit_symtab, search_symbols)
16809 (default_collect_symbol_completion_matches_break_on): Use
16810 objfile_compunits.
16811 * objfiles.h (ALL_COMPUNITS): Remove.
16812 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
16813 * cp-support.c (add_symbol_overload_list_qualified): Use
16814 objfile_compunits.
16815 * ada-lang.c (ada_collect_symbol_completion_matches)
16816 (ada_add_global_exceptions): Use objfile_compunits.
16817
592553c4
TT
168182019-01-09 Tom Tromey <tom@tromey.com>
16819
16820 * source.c (select_source_symtab)
16821 (forget_cached_source_info_for_objfile): Remove declaration.
16822 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
16823 declaration.
16824 * maint.c (count_symtabs_and_blocks): Remove declaration.
16825 * cp-support.c (add_symbol_overload_list_qualified): Remove
16826 declaration.
16827 * coffread.c (coff_symtab_read): Remove declaration.
16828 * symtab.c (lookup_symbol_in_objfile_symtabs)
16829 (basic_lookup_transparent_type_1): Use objfile_compunits.
16830 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
16831 (info_sources_command, search_symbols)
16832 (default_collect_symbol_completion_matches_break_on)
16833 (make_source_files_completion_list): Remove declaration.
16834 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
16835 (ada_collect_symbol_completion_matches)
16836 (ada_add_global_exceptions): Remove declaration.
16837 * linespec.c (iterate_over_all_matching_symtabs): Use
16838 objfile_compunits.
16839 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
16840 (class objfile_compunits): New.
16841 (ALL_COMPUNITS): Use objfile_compunits.
16842 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
16843 (maintenance_check_symtabs, maintenance_info_line_tables): Use
16844 objfile_compunits.
16845 * objfiles.c (objfile_relocate1): Use objfile_compunits.
16846
5325b9bf
TT
168472019-01-09 Tom Tromey <tom@tromey.com>
16848
16849 * symtab.c (search_symbols)
16850 (default_collect_symbol_completion_matches_break_on): Use
16851 objfile_msymbols.
16852 * ada-lang.c (ada_lookup_simple_minsym)
16853 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
16854 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
16855 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
16856 objfile_msymbols.
16857 * coffread.c (coff_symfile_read): Use objfile_msymbols.
16858 * symmisc.c (dump_msymbols): Use objfile_msymbols.
16859 * objc-lang.c (find_methods): Use objfile_msymbols.
16860 (info_selectors_command, info_classes_command): Likewise.
16861 * stabsread.c (scan_file_globals): Use objfile_msymbols.
16862 * objfiles.h (class objfile_msymbols): New.
16863 (ALL_OBJFILE_MSYMBOLS): Remove.
16864 (ALL_MSYMBOLS): Remove.
16865
cac85af2
TT
168662019-01-09 Tom Tromey <tom@tromey.com>
16867
16868 * common/next-iterator.h (next_adapter): Add Iterator template
16869 parameter.
16870 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
16871 (class all_objfiles_safe): New.
16872 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
16873 * objfiles.c (put_objfile_before): Update comment.
16874 (add_separate_debug_objfile): Likewise.
16875 (free_all_objfiles): Use all_objfiles_safe.
16876 (objfile_purge_solibs): Likewise.
16877
aed57c53
TT
168782019-01-09 Tom Tromey <tom@tromey.com>
16879
16880 * symtab.c (iterate_over_symtabs, matching_obj_sections)
16881 (expand_symtab_containing_pc, lookup_static_symbol)
16882 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
16883 (find_symbol_at_address, find_line_symtab, find_main_name): Use
16884 all_objfiles.
16885 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
16886 * breakpoint.c (create_overlay_event_breakpoint)
16887 (create_longjmp_master_breakpoint)
16888 (create_std_terminate_master_breakpoint)
16889 (create_exception_master_breakpoint): Use all_objfiles.
16890 * linux-thread-db.c (try_thread_db_load_from_pdir)
16891 (has_libpthread): Use all_objfiles.
16892 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
16893 * linespec.c (iterate_over_all_matching_symtabs)
16894 (search_minsyms_for_name): Use all_objfiles.
16895 * maint.c (maintenance_info_sections): Use all_objfiles.
16896 * main.c (captured_main_1): Use all_objfiles.
16897 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
16898 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
16899 * guile/scm-pretty-print.c
16900 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
16901 * solib-spu.c (append_ocl_sos): Use all_objfiles.
16902 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
16903 (maintenance_print_msymbols): Use all_objfiles.
16904 * source.c (select_source_symtab): Use all_objfiles.
16905 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
16906 * symfile.c (remove_symbol_file_command)
16907 (expand_symtabs_matching, map_symbol_filenames): Use
16908 all_objfiles.
16909 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
16910 all_objfiles.
16911 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
16912 * objc-lang.c (find_methods): Use all_objfiles.
16913 * objfiles.c (have_partial_symbols, have_full_symbols)
16914 (have_minimal_symbols, qsort_cmp)
16915 (default_iterate_over_objfiles_in_search_order): Use
16916 all_objfiles.
16917 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
16918 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
16919 (maintenance_check_psymtabs): Use all_objfiles.
16920 (ALL_PSYMTABS): Remove.
16921 * compile/compile-object-run.c (do_module_cleanup): Use
16922 all_objfiles.
16923 * blockframe.c (find_pc_partial_function): Use all_objfiles.
16924 * cp-support.c (add_symbol_overload_list_qualified): Use
16925 all_objfiles.
16926 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
16927 Use all_objfiles.
16928 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
16929 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
16930 all_objfiles.
16931 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
16932 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
16933 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
16934 Uses all_objfiles.
16935 * solib.c (solib_read_symbols): Use all_objfiles
16936
99d89cde
TT
169372019-01-09 Tom Tromey <tom@tromey.com>
16938
16939 * probe.c (parse_probes_in_pspace): Use all_objfiles.
16940 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
16941 all_objfiles.
16942 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
16943 * symmisc.c (print_symbol_bcache_statistics)
16944 (print_objfile_statistics, maintenance_print_objfiles)
16945 (maintenance_info_symtabs, maintenance_check_symtabs)
16946 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
16947 all_objfiles.
16948 * source.c (forget_cached_source_info): Use all_objfiles.
16949 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
16950 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
16951 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
16952 * objfiles.c (update_section_map): Use all_objfiles.
16953 (shared_objfile_contains_address_p): Likewise.
16954 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
16955 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
16956
21708325
TT
169572019-01-09 Tom Tromey <tom@tromey.com>
16958
16959 * common/next-iterator.h: New file.
16960 * objfiles.h (class all_objfiles): New.
16961 (struct objfile_iterator): New.
16962
669e09f6
PW
169632019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16964
16965 * NEWS: Move the description of the changed "frame", "select-frame",
16966 and "info frame" commands to the Changed commands section.
16967
041be526
SM
169682019-01-09 Simon Marchi <simon.marchi@ericsson.com>
16969
16970 * gdbtypes.c (check_stub_method_group): Remove handling of old
16971 mangling schemes.
16972 * linespec.c (find_methods): Likewise.
16973 * stabsread.c (read_member_functions): Likewise.
16974 * valops.c (search_struct_method): Likewise.
16975 (value_struct_elt_for_reference): Likewise.
16976 * NEWS: Mention this change.
16977
0e2a2133
AB
169782019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
16979
16980 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
16981 print_source_lines.
16982 * source.c (print_source_lines_base): Update line number check.
16983 (print_source_lines): New function.
16984 (source_lines_range::source_lines_range): New function.
16985 * source.h (class source_lines_range): New class.
16986 (print_source_lines): New declaration.
16987
1055a3b4
PW
169882019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16989
16990 * linespec.c (linespec_state_destructor): Free self->canonical_names.
16991
cfeadda5
TT
169922019-01-08 Tom Tromey <tom@tromey.com>
16993 Simon Marchi <simon.marchi@ericsson.com>
16994
16995 PR gdb/24060
16996 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
16997 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
16998 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
16999 * f-exp.y (DOLLAR_VARIABLE): Likewise.
17000 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
17001 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
17002
583068ca
AB
170032019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
17004
17005 * source.c (select_source_symtab): Move header comment to
17006 declaration in source.h.
17007 (forget_cached_source_info_for_objfile): Likewise.
17008 (forget_cached_source_info): Likewise.
17009 (identify_source_line): Likewise.
17010 * source.h (identify_source_line): Move declaration from symtab.h
17011 and add comment from source.c
17012 (print_source_lines): Likewise.
17013 (forget_cached_source_info_for_objfile): Likewise.
17014 (forget_cached_source_info): Likewise.
17015 (select_source_symtab): Likewise.
17016 (enum print_source_lines_flag): Move definition from symtab.h.
17017 * symtab.h (identify_source_line): Move declaration to source.h.
17018 (print_source_lines): Likewise.
17019 (forget_cached_source_info_for_objfile): Likewise.
17020 (forget_cached_source_info): Likewise.
17021 (select_source_symtab): Likewise.
17022 (enum print_source_lines_flag): Move definition to source.h.
17023 * tui/tui-hooks.c: Add 'source.h' include.
17024
ec98a4ad
AB
170252019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
17026
17027 * source.c (print_source_lines_base): Handle requests to print
17028 reverse line number sequences, and guard against empty lines
17029 string.
17030
62ea19c1
AB
170312019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
17032
17033 * source.c (print_source_lines_base): Fix skip of '\r' if next
17034 character is '\n'.
17035
9d30e1fd
TT
170362019-01-06 Tom Tromey <tom@tromey.com>
17037
17038 * c-exp.y (struct c_parse_state) <macro_original_text,
17039 expansion_obstack>: New member.
17040 (macro_original_text, expansion_obstack): Remove globals.
17041 (scan_macro_expansion, scanning_macro_expansion)
17042 (finished_macro_expansion): Update.
17043 (scan_macro_cleanup): Remove.
17044 (yylex, c_parse): Update.
17045
c65bac38
TT
170462019-01-06 Tom Tromey <tom@tromey.com>
17047
17048 * c-exp.y (struct c_parse_state) <strings>: New member.
17049 (operator_stoken): Update.
17050
02e12e38
TT
170512019-01-06 Tom Tromey <tom@tromey.com>
17052
17053 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
17054 (union type_stack_elt) <typelist_val>: Now a pointer to
17055 std::vector.
17056 (type_stack_cleanup): Don't declare.
17057 (push_typelist): Update.
17058 * parse.c (pop_typelist): Return a std::vector.
17059 (push_typelist): Take a std::vector.
17060 (follow_types): Update. Do not free args.
17061 (type_stack_cleanup): Remove.
17062 * c-exp.y (struct c_parse_state): New.
17063 (cpstate): New global.
17064 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
17065 (nonempty_typelist): Update.
17066 (func_mod): Create a new vector.
17067 (c_parse): Create a c_parse_state.
17068 (check_parameter_typelist): Do not delete params.
17069 (function_method): Update. Do not delete type_list.
17070
f097f5ad
TT
170712019-01-06 Tom Tromey <tom@tromey.com>
17072
17073 PR gdb/28155:
17074 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
17075 check_typedef.
17076 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
17077 (print_return_value): Likewise.
17078
d2adf9f1
TT
170792019-01-05 Tom Tromey <tom@tromey.com>
17080
17081 * contrib/cleanup_check.py: Remove.
17082 * contrib/gcc-with-excheck: Remove.
17083 * contrib/exsummary.py: Remove.
17084 * contrib/excheck.py: Remove.
17085
2eab46b1
JB
170862019-01-05 Joel Brobecker <brobecker@adacore.com>
17087
17088 * thread.c (delete_thread_1): Add gdb_assert that THR is not
17089 NULL. Initialize tpprev to NULL instead of assigning it
17090 to NULL on the next statement.
17091 * windows-nat.c (windows_delete_thread): Remove check for
17092 main_thread_id before printing thread exit notifications.
17093 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
17094 Remove thread ID check against main_thread_id.
17095 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
17096 windows_delete_thread.
17097 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
17098
48c5e7e2
TT
170992019-01-04 Tom Tromey <tom@tromey.com>
17100
17101 * compile/compile.c (_initialize_compile): Use upper case for
17102 metasyntactic variables.
17103 * symmisc.c (_initialize_symmisc): Use upper case for
17104 metasyntactic variables.
17105 * psymtab.c (_initialize_psymtab): Use upper case for
17106 metasyntactic variables.
17107 * demangle.c (demangle_command): Use upper case for metasyntactic
17108 variables.
17109 (_initialize_demangler): Likewise.
17110 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
17111 variables.
17112
986041cd
TT
171132019-01-03 Tom Tromey <tom@tromey.com>
17114
17115 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
17116
7c711119
TT
171172019-01-03 Tom Tromey <tom@tromey.com>
17118
17119 * python/py-symtab.c (salpy_str): Update.
17120 (struct salpy_sal_object) <symtab>: Now a PyObject.
17121 (salpy_dealloc): Update.
17122 (del_objfile_sal): Use gdbpy_ref.
17123
1b20edf0
TT
171242019-01-03 Tom Tromey <tom@tromey.com>
17125
17126 * python/py-type.c (convert_field): Use new_reference. Return
17127 gdbpy_ref.
17128 (make_fielditem): Return gdbpy_ref.
17129 (typy_fields): Update.
17130 (typy_getitem): Update.
17131 (field_name): Return gdbpy_ref. Use new_reference.
17132 (typy_iterator_iternext): Update.
17133
ea41325b
TT
171342019-01-03 Tom Tromey <tom@tromey.com>
17135
17136 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
17137
2a3c71d6
TT
171382019-01-03 Tom Tromey <tom@tromey.com>
17139
17140 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
17141 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
17142 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
17143 (pspy_set_frame_filters, pspy_set_frame_unwinders)
17144 (pspy_set_type_printers): Likewise.
17145 * python/py-function.c (fnpy_init): Use gdbpy_ref.
17146 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
17147 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
17148 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
17149 (objfpy_set_type_printers): Likewise.
17150
5c329e6a
TT
171512019-01-03 Tom Tromey <tom@tromey.com>
17152
17153 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
17154 (gdbpy_print_stack): Use gdbpy_err_fetch.
17155 * python/python-internal.h (class gdbpy_err_fetch): New class.
17156 (class gdbpy_enter) <m_error_type, m_error_value,
17157 m_error_traceback>: Remove.
17158 <m_error>: New member.
17159 (gdbpy_exception_to_string): Don't declare.
17160 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
17161 * python/py-value.c (convert_value_from_python): Use
17162 gdbpy_err_fetch.
17163 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
17164 gdbpy_exception_to_string.
17165 (gdbpy_handle_exception): Use gdbpy_err_fetch.
17166 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
17167 gdbpy_err_fetch.
17168
169bb27b
AB
171692019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
17170
17171 * linux-nat.c (delete_lwp_cleanup): Delete.
17172 (struct lwp_deleter): New struct.
17173 (lwp_info_up): New typedef.
17174 (linux_nat_target::follow_fork): Delete cleanup, and make use of
17175 lwp_info_up.
17176
a07c8880
AB
171772019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
17178
17179 * linux-fork.c (class scoped_switch_fork_info): New class.
17180 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
17181
26089c49
AB
171822019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
17183
17184 * valops.c (find_overload_match): Remove use of null_cleanup, and
17185 calls to do_cleanups.
17186
06d3e5b0
AB
171872019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
17188
17189 * compile/compile-cplus-types.c
17190 (compile_cplus_instance::decl_name): Handle changes to
17191 cp_func_name.
17192 * cp-support.c (cp_func_name): Update header comment, update
17193 return type.
17194 * cp-support.h (cp_func_name): Update return type in declaration.
17195 * valops.c (find_overload_match): Move temp_func local to top
17196 level of function and change its type. Use temp_func to hold and
17197 delete temporary string obtained from cp_func_name.
17198
66644cd3
AB
171992019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
17200
17201 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
17202 gdb::char_vector, remove cleanup, and update uses of `msg`.
17203
592d8c0a
JW
172042019-01-03 Jim Wilson <jimw@sifive.com>
17205
17206 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
17207
c55d06ec
TT
172082019-01-02 Tom Tromey <tom@tromey.com>
17209
17210 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
17211 (tdesc_parse_xml): Remove cleanups.
17212 * target-descriptions.h (make_cleanup_free_target_description):
17213 Don't declare.
17214 (target_desc_deleter): New struct.
17215 (target_desc_up): New typedef.
17216 * target-descriptions.c (target_desc_deleter::operator()): Rename
17217 from free_target_description.
17218 (make_cleanup_free_target_description): Remove.
17219
3a6ae42d
TT
172202019-01-02 Tom Tromey <tom@tromey.com>
17221
17222 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
17223 constructor, destructor.
17224 (linespec_parser): Remove typedef.
17225 (~linespec_parser): Rename from linespec_parser_delete.
17226 (linespec_lex_to_end, linespec_complete_label)
17227 (linespec_complete): Update.
17228 (decode_line_full): Remove cleanups.
17229 (decode_line_1): Update.
17230
61fd3e73
TT
172312019-01-02 Tom Tromey <tom@tromey.com>
17232
17233 * python/python-internal.h (inferior_to_inferior_object): Change
17234 return type.
17235 * python/py-exitedevent.c (create_exited_event_object): Update.
17236 * python/py-inferior.c (inferior_to_inferior_object): Return
17237 gdbpy_ref.
17238 (python_new_inferior, python_inferior_deleted)
17239 (thread_to_thread_object, delete_thread_object)
17240 (build_inferior_list, gdbpy_selected_inferior): Update.
17241 * python/py-infthread.c (create_thread_object): Update. Also fail
17242 if inferior_to_inferior_object fails.
17243
d20172fc
SM
172442019-01-02 Simon Marchi <simon.marchi@ericsson.com>
17245
17246 * inferior.h (class inferior) <displaced_step_state>: New field.
17247 * infrun.h (struct displaced_step_state): Move here from
17248 infrun.c. Initialize fields, add constructor.
17249 <inf>: Remove field.
17250 <reset>: New method.
17251 * infrun.c (struct displaced_step_inferior_state): Move to
17252 infrun.h.
17253 (displaced_step_inferior_states): Remove.
17254 (get_displaced_stepping_state): Adust.
17255 (displaced_step_in_progress_any_inferior): Adjust.
17256 (displaced_step_in_progress_thread): Adjust.
17257 (displaced_step_in_progress): Adjust.
17258 (add_displaced_stepping_state): Remove.
17259 (get_displaced_step_closure_by_addr): Adjust.
17260 (remove_displaced_stepping_state): Remove.
17261 (infrun_inferior_exit): Call displaced_step_state.reset.
17262 (use_displaced_stepping): Don't check for NULL.
17263 (displaced_step_prepare_throw): Call
17264 get_displaced_stepping_state.
17265 (displaced_step_fixup): Don't check for NULL.
17266 (prepare_for_detach): Don't check for NULL.
17267
e3319240
PW
172682019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
17269
17270 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
17271 in case of call that did not complete.
17272
5d36dfb9
AU
172732019-01-02 Andrey Utkin <autkin@undo.io>
17274
17275 * symfile.c (find_separate_debug_file): Fix search of debug files for
17276 remote debuggee.
17277
8833fbf0
TT
172782019-01-02 Tom Tromey <tom@tromey.com>
17279
17280 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
17281 indentation.
17282 * python/py-frame.c (frapy_older): Remove cast.
17283 (frapy_newer): Likewise.
17284 * python/py-breakpoint.c (local_setattro): Remove cast.
17285 * python/py-arch.c (archpy_name): Remove local variable.
17286 * python/py-type.c (gdbpy_lookup_type): Remove cast.
17287
4ada3dfd
JB
172882019-01-02 Joel Brobecker <brobecker@adacore.com>
17289
17290 * unittests/basic_string_view/element_access/char/empty.cc:
17291 Fix year range in copyright header.
17292
113b7b81
AB
172932019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
17294
17295 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
17296 Delete.
17297 <operator==>: Update with for removed field.
17298 <hash>: Likewise.
17299 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
17300 <isa_features>: ...this.
17301 <abi_features>: New field.
17302 (riscv_isa_flen): Update comment.
17303 (riscv_abi_xlen): New declaration.
17304 (riscv_abi_flen): New declaration.
17305 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
17306 isa_features.
17307 (riscv_abi_xlen): New function.
17308 (riscv_isa_flen): Update to get answer from isa_features.
17309 (riscv_abi_flen): New function.
17310 (riscv_has_fp_abi): Update to get answer from abi_features.
17311 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
17312 xlen and flen.
17313 (riscv_call_info) <xlen, flen>: Update comment.
17314 (riscv_call_arg_struct): Remove invalid assertions
17315 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
17316 is removed.
17317 (riscv_gdbarch_init): Gather isa features and abi features
17318 separately, ensure both match on the gdbarch when reusing an old
17319 gdbarch. Relax an error check to allow 32-bit abi float to run on
17320 a target with 64-bit float hardware.
17321
b18ca514
PW
173222019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
17323
17324 * source.c (search_command_helper): Stop reverse search
17325 when line 1 has been searched.
17326
ec70d8db
PW
173272019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
17328
17329 * record-full.c (record_full_base_target::close): Rewrite
17330 record_full_core_buf_list free logic.
17331
5b38f9c1
PW
173322019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
17333
17334 * break-catch-syscall.c (print_one_catch_syscall): xfree
17335 the last text.
17336
66d91b39
JB
173372019-01-01 Joel Brobecker <brobecker@adacore.com>
17338
17339 * top.c (print_gdb_version): Update Copyright year in version
17340 message.
17341
42a4f53d
JB
173422019-01-01 Joel Brobecker <brobecker@adacore.com>
17343
17344 Update copyright year range in all GDB files.
17345
7e955d83 173462019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
2139e8dc 17347
5bbd631d 17348 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
2139e8dc 17349
5bbd631d 17350For older changes see ChangeLog-2018.
c906108c
SS
17351\f
17352Local Variables:
17353mode: change-log
17354left-margin: 8
17355fill-column: 74
17356version-control: never
57da7796 17357coding: utf-8
c906108c 17358End:
5bbd631d 17359
This page took 4.053428 seconds and 4 git commands to generate.