Make symbol_set_names a member function
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
4d4eaa30
CB
12019-12-26 Christian Biesinger <cbiesinger@google.com>
2
3 * ada-lang.c (ada_decode_symbol): Update.
4 * buildsym.c (add_symbol_to_list): Update.
5 * coffread.c (process_coff_symbol): Update.
6 * ctfread.c (ctf_add_enum_member_cb): Update.
7 (new_symbol): Update.
8 (ctf_add_var_cb): Update.
9 * dwarf2read.c (fixup_go_packaging): Update.
10 (dwarf2_compute_name): Update.
11 (new_symbol): Update.
12 * jit.c (finalize_symtab): Update.
13 * language.c (language_alloc_type_symbol): Update.
14 * mdebugread.c (new_symbol): Update.
15 * minsyms.c (minimal_symbol_reader::record_full): Update.
16 (minimal_symbol_reader::install): Update.
17 * psymtab.c (print_partial_symbols): Update.
18 (psymbol_hash): Update.
19 (psymbol_compare): Update.
20 (add_psymbol_to_bcache): Update.
21 (maintenance_check_psymtabs): Update.
22 * stabsread.c (define_symbol): Update.
23 * symtab.c (symbol_set_names): Rename to...
24 (general_symbol_info::compute_and_set_names): ...this.
25 (general_symbol_info::natural_name): Update.
26 (general_symbol_info::search_name): Update.
27 (fixup_section): Update.
28 * symtab.h (struct general_symbol_info) <name>: Rename to...
29 <m_name>: ...this.
30 <compute_and_set_names>: Rename from...
31 (symbol_set_names): ...this.
32 (SYMBOL_SET_NAMES): Remove.
33 (struct symbol) <ctor>: Update.
34
8fb75323
CB
352019-12-26 Christian Biesinger <cbiesinger@google.com>
36
37 * NEWS: Mention that multithreaded symbol loading is now on by
38 default.
39
3142e908
RK
402019-12-26 Ruslan Kabatsayev <b7.10110111@gmail.com>
41
42 * dwarf2read.c (is_valid_DW_AT_defaulted)
43 (is_valid_DW_AT_calling_convention_for_type)
44 (is_valid_DW_AT_calling_convention_for_subroutine): Fix printing
45 ULONGEST variables on x86-32.
46
cb736441
GB
472019-12-21 George Barrett <bob@bob131.so>
48
49 * solib-svr4.c (svr4_handle_solib_event): Add fallback link
50 namespace test for when the debug struct isn't available.
51
15b07e4f
EZ
522019-12-21 Eli Zaretskii <eliz@gnu.org>
53
54 * top.c (print_gdb_configuration): Print "--with-xxhash" or
55 "--without-xxhash" according to HAVE_LIBXXHASH.
56
1c7148dd
WP
572019-12-20 Weimin Pan <weimin.pan@oracle.com>
58 * ctfread.c (ctf_file_key): Change type to objfile_key.
59 (struct ctf_context): Remove typedef.
60 (get_objfile_text_range): Use ANOFFSET to get text base.
61
d0922fcf
TBA
622019-12-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
63
64 * dwarf2read.c (is_valid_DW_AT_calling_convention_for_subroutine):
65 New function.
66 (read_subroutine_type): Validate the parsed
67 DW_AT_calling_convention value before assigning it to a
68 subroutine's calling_convention attribute.
69 * gdbtypes.h (struct func_type) <calling_convention>: Use
70 an enum bitfield as its type, instead of plain unsigned.
71
099a6354
TBA
722019-12-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
73
74 PR gdb/25054
75 * infcall.c (call_function_by_hand_dummy): Update the argument-
76 passing section for call-by-value parameters.
77 (struct destructor_info): New struct.
78 (call_destructors): New auxiliary function.
79
62bf63d7
TBA
802019-12-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
81
82 * gnu-v3-abi.c (enum definition_style): New enum type.
83 (get_def_style): New function.
84 (is_user_provided_def): New function.
85 (is_implicit_def): New function.
86 (is_copy_or_move_constructor_type): New function.
87 (is_copy_constructor_type): New function.
88 (is_move_constructor_type): New function.
89 (gnuv3_pass_by_reference): Collect language_pass_by_ref_info
90 for a given type.
91
9d084466
TBA
922019-12-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
93
94 * language.h (struct language_pass_by_ref_info): New struct.
95 (struct language_defn)<la_pass_by_reference>: Change the signature
96 to return a language_pass_by_ref_info instead of an int.
97 (language_pass_by_reference): Ditto.
98 (default_pass_by_reference): Ditto.
99 Adjust the users listed below.
100 * arch-utils.c (default_return_in_first_hidden_param_p):
101 Update.
102 * cp-abi.c (cp_pass_by_reference): Update.
103 * cp-abi.h (cp_pass_by_reference): Update declaration.
104 (struct cp_abi_ops)<pass_by_reference>: Update.
105 * gnu-v3-abi.c (gnuv3_pass_by_reference): Update.
106 * infcall.c (call_function_by_hand_dummy): Update.
107 * language.c (language_pass_by_reference): Update.
108 (default_pass_by_reference): Update.
109 * tic6x-tdep.c (tic6x_return_value): Update.
110
e35000a7
TBA
1112019-12-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
112
113 * dwarf2read.c (dwarf2_add_member_fn): Read the DW_AT_defaulted
114 and DW_AT_deleted attributes of a function.
115 (read_structure_type): Read the DW_AT_calling_convention attribute
116 of a type.
117 (is_valid_DW_AT_defaulted): New function.
118 (is_valid_DW_AT_calling_convention_for_type): New function.
119 * gdbtypes.h: Include dwarf2.h.
120 (struct fn_field)<defaulted>: New field to store the
121 DW_AT_defaulted attribute.
122 (struct fn_field)<is_deleted>: New field to store the
123 DW_AT_deleted attribute.
124 (struct cplus_struct_type)<calling_convention>: New field to store
125 the DW_AT_calling_convention attribute.
126 (TYPE_FN_FIELD_DEFAULTED): New macro.
127 (TYPE_FN_FIELD_DELETED): New macro.
128 (TYPE_CPLUS_CALLING_CONVENTION): New macro.
129 * gdbtypes.c (dump_fn_fieldlists): Update for the changes made
130 to the .h file.
131 (print_cplus_stuff): Likewise.
132
b4b49dcb
TT
1332019-12-20 Tom Tromey <tom@tromey.com>
134
135 * tui/tui.c (tui_show_source): Remove.
136 * tui/tui.h (tui_show_source): Don't declare.
137 * tui/tui-out.c (tui_ui_out::do_field_string): Don't call
138 tui_show_source.
139
eb390f49
TT
1402019-12-20 Tom Tromey <tom@tromey.com>
141
142 * tui/tui-stack.h (tui_show_frame_info): Return bool.
143 * tui/tui-stack.c (tui_show_frame_info): Return bool.
144 * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
145 Update.
146
fc9d2d72
TT
1472019-12-20 Tom Tromey <tom@tromey.com>
148
149 PR tui/18932:
150 * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
151 Rename parameters. Handle the not-from-stack-frame case.
152 (from_stack, from_source_symtab): New globals.
153 (tui_before_prompt, tui_normal_stop): Update.
154 (tui_context_changed, tui_symtab_changed): New functions.
155 (tui_attach_detach_observers): Attach new observers.
156
a75cd9a2
TT
1572019-12-20 Tom Tromey <tom@tromey.com>
158
159 * source.c (struct current_source_location) <set, symtab, line>:
160 New methods.
161 <m_symtab, m_line>: Rename. Now private.
162 (get_current_source_symtab_and_line)
163 (set_default_source_symtab_and_line)
164 (set_current_source_symtab_and_line)
165 (clear_current_source_symtab_and_line, select_source_symtab)
166 (info_source_command, print_source_lines_base)
167 (info_line_command, search_command_helper): Update.
168 * observable.h (current_source_symtab_and_line_changed): Declare
169 observable.
170 * observable.c (current_source_symtab_and_line_changed): Define
171 observable.
172
2dfd3df4
TT
1732019-12-20 Tom Tromey <tom@tromey.com>
174
175 * tui/tui-hooks.c (tui_before_prompt): Change parameter to bool.
176 (tui_before_prompt, tui_normal_stop): Update.
177
54217b84
TT
1782019-12-20 Tom Tromey <tom@tromey.com>
179
180 * tui/tui-winsource.c
181 (tui_source_window_base::update_source_window_as_is): Don't call
182 set_current_source_symtab_and_line.
183
0ab92974
TT
1842019-12-20 Tom Tromey <tom@tromey.com>
185
186 * tui/tui-stack.h (struct tui_locator_window) <set_locator_info>:
187 Take a symtab_and_line.
188 * tui/tui-stack.c (tui_locator_window::set_locator_info): Take a
189 symtab_and_line.
190 (tui_show_frame_info): Update.
191
ae4393e2
TT
1922019-12-20 Tom Tromey <tom@tromey.com>
193
194 * tui/tui-stack.c (tui_show_frame_info): Don't call
195 update_exec_info.
196
77b97e00
TT
1972019-12-20 Tom Tromey <tom@tromey.com>
198
199 * tui/tui.c (tui_enable): Call tui_display_main.
200
52469d76
TT
2012019-12-20 Tom Tromey <tom@tromey.com>
202
203 * tui/tui-disasm.c (tui_get_begin_asm_address): Use
204 get_current_source_symtab_and_line, and main_name.
205
5d49bf1b
TT
2062019-12-20 Tom Tromey <tom@tromey.com>
207
208 * tui/tui.c (tui_show_source): Update.
209 * tui/tui-winsource.h (tui_update_source_windows_with_line): Update.
210 * tui/tui-winsource.c (tui_update_source_windows_with_line): Take
211 a symtab_symbol_info, not a separate symtab and line. Simplify.
212
88180c08
TT
2132019-12-20 Tom Tromey <tom@tromey.com>
214
215 * tui/tui-winsource.c (tui_update_source_windows_with_addr):
216 Simplify.
217
9f7540a5
TT
2182019-12-20 Tom Tromey <tom@tromey.com>
219
220 * tui/tui-winsource.h (struct tui_source_window_base)
221 <set_contents, update_source_window_as_is, update_source_window>:
222 Take a sal, not a separate symtab and tui_line_or_address.
223 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
224 (tui_source_window_base::update_source_window_as_is): Take a sal,
225 not a separate symtab and tui_line_or_address.
226 (tui_update_source_windows_with_addr)
227 (tui_update_source_windows_with_line)
228 (tui_source_window_base::rerender)
229 (tui_source_window_base::refill): Update.
230 * tui/tui-source.h (struct tui_source_window) <set_contents>: Take
231 a sal, not a separate symtab and tui_line_or_address.
232 * tui/tui-source.c (tui_source_window::set_contents): Take a sal,
233 not a separate symtab and tui_line_or_address.
234 (tui_source_window::maybe_update): Update.
235 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>: Take
236 a sal, not a separate symtab and tui_line_or_address.
237 * tui/tui-disasm.c (tui_disasm_window::set_contents): Take a sal,
238 not a separate symtab and tui_line_or_address.
239 (tui_disasm_window::do_scroll_vertical)
240 (tui_disasm_window::maybe_update): Update.
241
57e4b379
TT
2422019-12-20 Tom Tromey <tom@tromey.com>
243
244 * tui/tui-winsource.c (tui_source_window_base::refill): Use
245 start_line_or_addr.
246 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Use
247 start_line_or_addr.
248 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
249 start_line_or_addr.
250
61c33f10
TT
2512019-12-20 Tom Tromey <tom@tromey.com>
252
253 * tui/tui-winsource.h (struct tui_source_window_base)
254 <set_contents>: Return bool.
255 * tui/tui-winsource.c
256 (tui_source_window_base::update_source_window_as_is): Update.
257 * tui/tui-source.h (struct tui_source_window) <set_contents>:
258 Return bool.
259 * tui/tui-source.c (tui_source_window::set_contents): Return
260 bool. Simplify.
261 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
262 Return bool.
263 * tui/tui-disasm.c (tui_disasm_window::set_contents): Return
264 bool.
265
469b0731
TT
2662019-12-20 Tom Tromey <tom@tromey.com>
267
268 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
269 (tui_update_source_windows_with_line): Call update_source_window.
270 * tui/tui-source.h (struct tui_source_window)
271 <show_symtab_source>: Don't declare.
272 * tui/tui-source.c (tui_source_window::show_symtab_source):
273 Remove.
274
855f89b3
TT
2752019-12-20 Tom Tromey <tom@tromey.com>
276
277 * tui/tui-winsource.c (tui_update_source_windows_with_addr): Call
278 update_source_window directly.
279 * tui/tui-disasm.h (tui_show_disassem): Don't declare.
280 * tui/tui-disasm.c (tui_show_disassem): Remove.
281
d4669c0f
TT
2822019-12-20 Tom Tromey <tom@tromey.com>
283
284 * tui/tui-winsource.c
285 (tui_source_window_base::update_source_window_as_is): Don't switch focus.
286 * tui/tui-disasm.c (tui_show_disassem): Don't switch focus.
287
1ae58f0c
TT
2882019-12-20 Tom Tromey <tom@tromey.com>
289
290 * tui/tui-winsource.h (struct tui_source_window_base)
291 <maybe_update>: Remove line_no and addr parameters.
292 * tui/tui-stack.c (tui_show_frame_info): Set PC on sal. Update.
293 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
294 Update.
295 * tui/tui-source.c (tui_source_window::maybe_update): Remove
296 line_no and addr parameters.
297 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
298 Update.
299 * tui/tui-disasm.c (tui_disasm_window::maybe_update): Remove
300 line_no and addr parameters.
301
039298ec
TT
3022019-12-20 Tom Tromey <tom@tromey.com>
303
304 * tui/tui-winsource.c (tui_source_window_base::set_is_exec_point_at)
305 (tui_source_window_base::update_breakpoint_info): Remove asserts.
306
8acfefcc
TT
3072019-12-20 Tom Tromey <tom@tromey.com>
308
309 * tui/tui-winsource.c (tui_update_source_windows_with_addr): Call
310 tui_show_disassem.
311 * tui/tui-disasm.h (tui_show_disassem_and_update_source): Don't
312 declare.
313 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Remove.
314
5ebd5402
TT
3152019-12-20 Tom Tromey <tom@tromey.com>
316
317 * tui/tui.h (tui_show_source): Remove parameters.
318 * tui/tui.c (tui_show_source): Remove parameters.
319 * tui/tui-out.c (tui_ui_out::do_field_string): Update.
320
c1b167d7
TT
3212019-12-20 Tom Tromey <tom@tromey.com>
322
323 * tui/tui.c (tui_show_source): Update.
324 * tui/tui-winsource.c (tui_display_main): Update.
325 * tui/tui-stack.h (tui_update_locator_fullname): Change parameter
326 to symtab.
327 * tui/tui-stack.c (tui_update_locator_fullname): Change parameter
328 to symtab.
329 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Update.
330
364d7104
TT
3312019-12-20 Tom Tromey <tom@tromey.com>
332
333 PR tui/23619:
334 * tui/tui-io.c (tui_rl_saved_prompt): Remove.
335 (tui_redisplay_readline): Use rl_display_prompt.
336 (tui_prep_terminal): Update.
337
0ad6b8ee
CB
3382019-12-19 Christian Biesinger <cbiesinger@google.com>
339
340 * configure: Regenerate.
341 * configure.ac: Quote variable arguments of test.
342 * gdbsupport/common.m4: Likewise.
343
d411762c
CB
3442019-12-19 Christian Biesinger <cbiesinger@google.com>
345
346 * score-tdep.c (score7_analyze_prologue): Pass 2.0 instead of
347 2 to pow ().
348
1cd4a20a
CB
3492019-12-19 Christian Biesinger <cbiesinger@google.com>
350
351 * tui/tui-source.c (tui_source_window::set_contents): Cast argument of
352 log10 to double to fix Solaris 11 with gcc 5.5.
353
aa989b27
CB
3542019-12-19 Christian Biesinger <cbiesinger@google.com>
355
356 * fbsd-tdep.c (fbsd_info_proc_files_entry): Rename local var
357 "sun" to "saddr_un".
358
2032eb7e
TT
3592019-12-19 Tom Tromey <tromey@adacore.com>
360
361 * ui-out.h (enum class field_kind): Fix comment.
362
f69656d0
TT
3632019-12-11 Tom Tromey <tromey@adacore.com>
364
365 * xml-support.c (xml_fetch_content_from_file): Use FOPEN_RB.
366
27e4fac7
TT
3672019-12-18 Tom Tromey <tromey@adacore.com>
368
369 PR build/25268:
370 * gdbsupport/thread-pool.c (set_thread_name): Expect "int" return
371 type on macOS. Add comment.
372
e623f035
SM
3732019-12-18 Simon Marchi <simon.marchi@efficios.com>
374
375 * c-lang.c (c_get_string, asm_language_defn): Remove space
376 before tab.
377
28ce7b07
TT
3782019-12-18 Tom Tromey <tromey@adacore.com>
379
380 PR build/25250:
381 * ui-out.c (ui_out::vmessage): Update.
382 * ui-out.h (enum class field_kind) <FIELD_STRING, FIELD_SIGNED>:
383 Rename.
384 (string_field): Update.
385 (signed_field): Update.
386
bbde7025
SM
3872019-12-18 Simon Marchi <simon.marchi@efficios.com>
388
389 * top.c (print_gdb_configuration): Adjust indentation.
390
e3169fe0
CB
3912019-12-17 Christian Biesinger <cbiesinger@google.com>
392
393 * bsd-kvm.c: Include gdbsupport/pathstuff.h.
394
9b30da15
SM
3952019-12-17 Simon Marchi <simon.marchi@polymtl.ca>
396
397 * tui/tui-layout.h (class tui_layout_base): Add virtual
398 destructor.
399
4a4c04f1
BE
4002019-12-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
401
402 * infcmd.c (prepare_one_step): Step over skipped inline functions.
403 * infrun.c (inline_frame_is_marked_for_skip): New helper function.
404 (process_event_stop_test): Keep stepping over skipped inline functions.
405
0394eed1
SM
4062019-12-16 Simon Marchi <simon.marchi@polymtl.ca>
407
408 * jit.c (struct gdb_block) <next>: Remove field.
409 (struct gdb_symtab) <~gdb_symtab>: Remove.
410 <blocks>: Change type to std::forward_list<gdb_block>.
411 (compare_block): Remove.
412 (jit_block_open_impl): Adjust to std::forward_list. Place the new
413 block at the beginning, don't mind about sorting.
414 (finalize_symtab): Adjust to std::forward_list, sort the blocks list
415 before using it.
416
b6112117
SM
4172019-12-16 Simon Marchi <simon.marchi@polymtl.ca>
418
419 * jit.c (struct gdb_block): Add constructor, initialize
420 real_block and next fields.
421 <name>: Change type to gdb::unique_xmalloc_ptr.
422 (struct gdb_symtab) <~gdb_symtab>: Free blocks with delete.
423 (jit_block_open_impl): Allocate gdb_block with new.
424 (finalize_symtab): Adjust to gdb::unique_xmalloc_ptr.
425
1b61f46d
SM
4262019-12-16 Simon Marchi <simon.marchi@polymtl.ca>
427
428 * jit.c: Include forward_list.
429 (struct gdb_symtab) <next>: Remove field.
430 (struct gdb_object) <symtabs>: Change type to
431 std::forward_list<gdb_symtab>.
432 (jit_object_open_impl): Allocate gdb_object with new.
433 (jit_symtab_open_impl): Adjust to std::forward_list.
434 (finalize_symtab): Don't delete symtab.
435 (jit_object_close_impl): Adjust to std::forward_list. Free
436 gdb_object with delete.
437
89867184
SM
4382019-12-16 Simon Marchi <simon.marchi@polymtl.ca>
439
440 * jit.c (struct gdb_symtab): Add constructor, destructor,
441 initialize fields.
442 <linetable>: Change type to unique_xmalloc_ptr.
443 <file_name>: Change type to std::string.
444 (jit_symtab_open_impl): Allocate gdb_symtab with new.
445 (jit_symtab_line_mapping_add_impl): Adjust.
446 (finalize_symtab): Adjust, call delete on stab.
447
d043f8c8
SM
4482019-12-16 Simon Marchi <simon.marchi@polymtl.ca>
449
450 * jit.c (finalize_symtab): Set gdb_block_iter_tmp in loop.
451
d9fa87f4
TT
4522019-12-16 Tom Tromey <tromey@adacore.com>
453
454 * windows-nat.c (windows_nat_target::attach): Update.
455 * remote.c (extended_remote_target::attach): Update.
456 * procfs.c (procfs_target::attach): Update.
457 * nto-procfs.c (nto_procfs_target::attach): Update.
458 (nto_procfs_target::create_inferior): Update.
459 * inf-ptrace.c (inf_ptrace_target::attach): Update.
460 * gnu-nat.c (gnu_nat_target::attach): Update.
461 (gnu_nat_target::detach): Update.
462 * darwin-nat.c (darwin_nat_target::attach): Update.
463 * corefile.c (get_exec_file): Constify result. Remove extraneous
464 return.
465 * bsd-kvm.c (bsd_kvm_target_open): Update.
466 * gdbsupport/common-inferior.h (get_exec_file): Constify result.
467
c0c3707f
CB
4682019-12-16 Christian Biesinger <cbiesinger@google.com>
469
470 * gdbsupport/common-defs.h: Remove workaround for a gnulib bug
471 (we no longer need to include time.h before pathmax.h)
472
d3ecddab
CB
4732019-12-15 Christian Biesinger <cbiesinger@google.com>
474
475 * ada-exp.y (write_ambiguous_var): Update.
476 * coffread.c (process_coff_symbol): Update.
477 * ctfread.c (ctf_add_enum_member_cb): Update.
478 (new_symbol): Update.
479 * dwarf2read.c (fixup_go_packaging): Update.
480 (new_symbol): Update.
481 * language.c (language_alloc_type_symbol): Update.
482 * mdebugread.c (new_symbol): Update.
483 * minsyms.c (minimal_symbol_reader::record_full): Update.
484 * psymtab.c (add_psymbol_to_bcache): Update.
485 * stabsread.c (define_symbol): Update.
486 (read_enum_type): Update.
487 * symtab.c (symbol_set_language): Make this a member function...
488 (general_symbol_info::set_language): ... here.
489 * symtab.h (struct general_symbol_info) <set_language>: New function.
490 (SYMBOL_SET_LANGUAGE): Remove.
491 (symbol_set_language): Remove.
492
c1b5c1eb
CB
4932019-12-15 Christian Biesinger <cbiesinger@google.com>
494
495 * ada-lang.c (ada_add_block_symbols): Update.
496 (ada_collect_symbol_completion_matches): Update.
497 * ax-gdb.c (gen_expr): Update.
498 * block.c (block_lookup_symbol): Update.
499 (block_lookup_symbol_primary): Update.
500 (block_find_symbol): Update.
501 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Update.
502 * dbxread.c (process_one_symbol): Update.
503 * dictionary.c (insert_symbol_hashed): Update.
504 (collate_pending_symbols_by_language): Update.
505 (mdict_add_symbol): Update.
506 * dwarf-index-write.c (write_psymbols): Update.
507 * dwarf2read.c (fixup_go_packaging): Update.
508 * findvar.c (read_var_value): Update.
509 * ft32-tdep.c (ft32_skip_prologue): Update.
510 * go-lang.c (go_symbol_package_name): Update.
511 * language.h (scoped_switch_to_sym_language_if_auto::
512 scoped_switch_to_sym_language_if_auto): Update.
513 * linespec.c (find_method): Update.
514 (find_label_symbols_in_block): Update.
515 * mdebugread.c (parse_symbol): Update.
516 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
517 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
518 (minimal_symbol_reader::install): Update.
519 * moxie-tdep.c (moxie_skip_prologue): Update.
520 * parse.c (parse_exp_in_context): Update.
521 * psymtab.c (psymbol_name_matches): Update.
522 (match_partial_symbol): Update.
523 (lookup_partial_symbol): Update.
524 (psymbol_hash): Update.
525 (psymbol_compare): Update.
526 * python/py-framefilter.c (extract_sym): Update.
527 (py_print_single_arg): Update.
528 * stabsread.c (define_symbol): Update.
529 * stack.c (print_frame_arg): Update.
530 (find_frame_funname): Update.
531 (info_frame_command_core): Update.
532 * symfile.c (set_initial_language): Update.
533 * symtab.c (symbol_set_demangled_name): Update.
534 (symbol_get_demangled_name): Update.
535 (symbol_set_language): Update.
536 (symbol_find_demangled_name): Update.
537 (symbol_set_names): Update.
538 (general_symbol_info::natural_name): Update.
539 (general_symbol_info::demangled_name): Update.
540 (general_symbol_info::search_name): Update.
541 (symbol_matches_search_name): Update.
542 (eq_symbol_entry): Update.
543 (iterate_over_symbols): Update.
544 (completion_list_add_symbol): Update.
545 (completion_list_add_msymbol): Update.
546 (completion_list_add_fields): Update.
547 * symtab.h (struct general_symbol_info) <language>: New function.
548 <language>: Rename to...
549 <m_language>: ...this.
550 (SYMBOL_LANGUAGE): Remove.
551 (MSYMBOL_LANGUAGE): Remove.
552 (struct symbol) <ctor>: Update.
553 * xstormy16-tdep.c (xstormy16_skip_prologue): Update.
554
747cfc8c
CB
5552019-12-15 Christian Biesinger <cbiesinger@google.com>
556
557 * ada-exp.y (write_ambiguous_var): Call symbol_set_language to
558 set the language of sym.
559 * language.c (language_alloc_type_symbol): Likewise.
560
ff8577f6
SDJ
5612019-12-14 Sergio Durigan Junior <sergiodj@redhat.com>
562
563 https://bugzilla.redhat.com/show_bug.cgi?id=1728147
564 PR gdb/23613
565 * bsd-kvm.c (bsd_kvm_target_open): Use 'gdb_abspath'.
566 * corelow.c: Include 'gdbsupport/pathstuff.h'.
567 (core_target_open): Use 'gdb_abspath'.
568 * gdbsupport/pathstuff.c (gdb_abspath): Guard against
569 'current_directory == NULL' case.
570 * gdbsupport/pathstuff.h (gdb_abspath): Expand comment and
571 explain what happens when 'current_directory' is NULL.
572 * go32-nat.c (go32_nat_target::wait): Check if
573 'current_directory' is NULL before call to 'chdir'.
574 * source.c (add_path): Use 'gdb_abspath'.
575 * top.c: Include 'gdbsupport/pathstuff.h'.
576 (init_history): Use 'gdb_abspath'.
577 (set_history_filename): Likewise.
578 * tracefile-tfile.c: Include 'gdbsupport/pathstuff.h'.
579 (tfile_target_open): Use 'gdb_abspath'.
580
234c3068
TT
5812019-12-13 Tom Tromey <tromey@adacore.com>
582
583 * contrib/ari/gdb_ari.sh: Remove check for multiple calls to
584 warning or error.
585
93537683
TT
5862019-12-13 Tom Tromey <tromey@adacore.com>
587
588 * contrib/ari/gdb_ari.sh: Remove call to "fix" for "long long".
589
63456183
TT
5902019-12-13 Tom Tromey <tromey@adacore.com>
591
592 * contrib/ari/gdb_ari.sh: Handle -Wno- prefix.
593
98f9338a
TT
5942019-12-13 Tom Tromey <tromey@adacore.com>
595
596 * contrib/ari/gdb_ari.sh (usage): Use GNU style.
597
3cb5a3a1
TT
5982019-12-13 Tom Tromey <tromey@adacore.com>
599
600 * gdbsupport/common-utils.c (string_printf, string_vprintf)
601 (string_vappendf): Add ARI comment.
602
c6cbf900
TT
6032019-12-13 Tom Tromey <tromey@adacore.com>
604
605 * contrib/ari/gdb_ari.sh: Remove "fix" call for
606 floatformat_to_double.
607 * target-float.c (host_float_ops<T>::from_target): Add ARI
608 comment.
609
036003a6
TT
6102019-12-13 Tom Tromey <tromey@adacore.com>
611
612 * contrib/ari/gdb_ari.sh: Remove "fix" call for abort.
613 * utils.c (abort_with_message, dump_core, internal_vproblem): Add
614 ARI marker to abort.
615 * event-top.c (handle_sigsegv): Add ARI marker to abort.
616
8aaaf757
TT
6172019-12-13 Tom Tromey <tromey@adacore.com>
618
619 * contrib/ari/gdb_ari.sh: Fix floatformat_from_double text.
620
fe56157f
TT
6212019-12-13 Tom Tromey <tromey@adacore.com>
622
623 * contrib/ari/gdb_ari.sh: Remove ATTRIBUTE_UNUSED check.
624
a15a95ed
TT
6252019-12-13 Tom Tromey <tromey@adacore.com>
626
627 * contrib/ari/gdb_ari.sh: Remove "boolean" and "var_boolean"
628 checks.
629
a5513db2
TT
6302019-12-13 Tom Tromey <tromey@adacore.com>
631
632 * gdbsupport/safe-iterator.h (class basic_safe_range) <begin,
633 end>: No longer "const".
634
3a90f266
SM
6352019-12-13 Simon Marchi <simon.marchi@polymtl.ca>
636
637 * jit.c: Fix indentation, replace spaces with tabs where
638 applicable.
639
b3f4b80f
JL
6402019-12-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
641
642 * configure.tgt: Match msp430-*-elf* targets when configuring GDB.
643
e671856c
TT
6442019-12-12 Tom Tromey <tom@tromey.com>
645
646 * objfiles.h (struct objfile) <partial_symtabs>: Now a
647 unique_ptr.
648
7d7167ce
TT
6492019-12-12 Tom Tromey <tom@tromey.com>
650
651 * progspace.h (objfile_list): New typedef.
652 (class unwrapping_objfile_iterator)
653 (struct unwrapping_objfile_range): Newl
654 (struct program_space) <objfiles_range>: Change type.
655 <objfiles>: Change return type.
656 <add_objfile>: Change type of "objfile" parameter.
657 <objfiles_list>: Now a list of shared_ptr.
658 * progspace.c (program_space::add_objfile): Change type of
659 "objfile". Update.
660 (program_space::remove_objfile): Update.
661 * objfiles.h (struct objfile) <~objfile>: Make public.
662 * objfiles.c (objfile::make): Update.
663 (objfile::unlink): Don't call delete.
664
343cc952
TT
6652019-12-12 Tom Tromey <tom@tromey.com>
666
667 * symfile.c (symbol_file_clear): Update.
668 * progspace.h (struct program_space) <free_all_objfiles>: Declare
669 method.
670 * progspace.c (program_space::free_all_objfiles): New method.
671 * objfiles.h (free_all_objfiles): Don't declare.
672 * objfiles.c (free_all_objfiles): Move to program_space.
673
d0801dd8
TT
6742019-12-12 Tom Tromey <tom@tromey.com>
675
676 * progspace.c (program_space::add_objfile)
677 (program_space::remove_objfile): Update.
678 (program_space::multi_objfile_p): Remove.
679 * objfiles.h (struct objfile) <next>: Remove.
680 * objfiles.c (objfile::objfile): Update.
681 (put_objfile_before): Update.
682 (unlink_objfile): Update.
683 * progspace.h (object_files): Remove.
684 (struct program_space) <objfiles_head>: Remove.
685 <objfiles_list>: New member.
686 <objfiles_range, objfiles_safe_range>: Change type.
687 (objfiles): Change return type.
688 (objfiles_safe): Update.
689 (multi_objfile_p): Rewrite and inline.
690 (object_files): Remove macro.
691
13bff726
TT
6922019-12-12 Tom Tromey <tom@tromey.com>
693
694 * gdbsupport/safe-iterator.h (basic_safe_iterator): Simplify. Add
695 second constructor.
696 (basic_safe_range): New class.
697
deeafabb
TT
6982019-12-12 Tom Tromey <tom@tromey.com>
699
700 * progspace.c (program_space::multi_objfile_p): New method.
701 * printcmd.c (info_symbol_command): Update.
702 * maint.c (maintenance_translate_address): Update.
703 * objfiles.h (MULTI_OBJFILE_P): Remove.
704 * progspace.h (struct program_space) <multi_objfile_p>: New
705 method.
706
23452926
TT
7072019-12-12 Tom Tromey <tom@tromey.com>
708
709 * progspace.h (struct program_space) <remove_objfile>: Declare.
710 * progspace.c (program_space::remove_objfile): New method.
711 * objfiles.c (unlink_objfile): Remove.
712 (objfile::unlink): Call remove_objfile.
713 (objfile): Don't call unlink_objfile.
714
7cac64af
TT
7152019-12-12 Tom Tromey <tom@tromey.com>
716
717 * progspace.h (struct program_space) <add_objfile>: Declare
718 method.
719 * progspace.c (program_space::add_objfile): New method.
720 * objfiles.c (~objfile): Don't unlink objfile.
721 (put_objfile_before): Remove.
722 (add_separate_debug_objfile): Don't call put_objfile_before.
723 (objfile::make): Call add_objfile. Set new_objfiles_available on
724 the per-program-space data.
725
268e4f09
TT
7262019-12-12 Tom Tromey <tom@tromey.com>
727
728 * symfile.c (syms_from_objfile_1): Use objfile_up.
729 (syms_from_objfile_1, remove_symbol_file_command): Call unlink
730 method.
731 (reread_symbols): Use objfile_up.
732 * solib.c (update_solib_list, reload_shared_libraries_1): Call
733 unlink method.
734 * objfiles.h (struct objfile) <~objfile>: Now private.
735 <unlink>: New method.
736 (struct objfile_deleter): New.
737 (objfile_up): New typedef.
738 * objfiles.c (objfile::unlink): New method.
739 (free_objfile_separate_debug, free_all_objfiles)
740 (objfile_purge_solibs): Use it.
741 * jit.c (jit_unregister_code): Remove.
742 (jit_inferior_exit_hook, jit_event_handler): Call unlink on
743 objfile.
744 * compile/compile-object-run.c (do_module_cleanup): Call unlink on
745 objfile.
746 * compile/compile-object-load.c (compile_object_load): Use
747 objfile_up.
748
f65fe570
TT
7492019-12-12 Tom Tromey <tom@tromey.com>
750
751 * symfile.c (symbol_file_add_with_addrs): Pass "parent" to
752 objfile::make.
753 * objfiles.h (struct objjfile) <make>: No longer inline.
754 (add_separate_debug_objfile): Don't declare.
755 * objfiles.c (add_separate_debug_objfile): Now static.
756 (objfile::make): Move from objfiles.h. Call
757 add_separate_debug_objfile. Add "parent" parameter.
758
bda13cdc
TT
7592019-12-12 Tom Tromey <tom@tromey.com>
760
761 * symfile.c (symbol_file_add_with_addrs): Use objfile::make.
762 * objfiles.h (struct objfile): Make constructor private.
763 <make>: New static method.
764 * jit.c (jit_object_close_impl): Update.
765
7190276c
SM
7662019-12-12 Simon Marchi <simon.marchi@polymtl.ca>
767
768 * jit.c (jit_reader_try_read_symtab): Replace xmalloc/xfree with
769 gdb::byte_vector.
770
d61df897
TT
7712019-12-12 Tom Tromey <tromey@adacore.com>
772
773 * xml-support.c (xml_fetch_content_from_file): Don't call
774 malloc_failure.
775 * utils.h (class gdb_argv): Remove malloc_failure comment.
776 * utils.c (gdb_argv::reset): Don't call malloc_failure.
777
db3ad2f0
TT
7782019-12-12 Tom Tromey <tromey@adacore.com>
779
780 * Makefile.in (ALL_TARGET_OBS): Add riscv-ravenscar-thread.o.
781 (HFILES_NO_SRCDIR): Add riscv-ravenscar-thread.h.
782 (ALLDEPFILES): Add riscv-ravenscar-thread.c.
783 * configure.tgt (riscv-*-*): Add riscv-ravenscar-thread.o.
784 * riscv-ravenscar-thread.c: New file.
785 * riscv-ravenscar-thread.h: New file.
786 * riscv-tdep.c (riscv_gdbarch_init): Call
787 register_riscv_ravenscar_ops.
788
2ffe5b9c
TT
7892019-12-12 Tom Tromey <tromey@adacore.com>
790
791 * gdbsupport/thread-pool.c (set_thread_name): Use
792 ATTRIBUTE_UNUSED.
793
39f34d7b
LM
7942019-12-12 Luis Machado <luis.machado@linaro.org>
795
796 * gdbsupport/safe-strerror.c: Don't include diagnostics.h.
797 (select_strerror_r): Use ATTRIBUTE_UNUSED instead of the diagnostics
798 macros.
799
d4eeccfe
TT
8002019-12-11 Tom Tromey <tom@tromey.com>
801
802 * tui/tui-win.c (tui_set_win_height_command): Call
803 tui_adjust_window_height.
804 (tui_adjust_win_heights, new_height_ok): Remove.
805 * tui/tui-layout.h (tui_adjust_window_height): Declare.
806 * tui/tui-layout.c (tui_adjust_window_height): New function.
807
3d979945
TT
8082019-12-11 Tom Tromey <tom@tromey.com>
809
810 * tui/tui-win.c (tui_resize_all): Remove code, call
811 tui_apply_current_layout.
812
2192a9d3
TT
8132019-12-11 Tom Tromey <tom@tromey.com>
814
815 * tui/tui-layout.h (tui_apply_current_layout): Declare.
816 * tui/tui-layout.c (standard_layouts, applied_layout): New
817 globals.
818 (tui_apply_current_layout): New function.
819 (show_layout): Set applied_layout. Call
820 tui_apply_current_layout.
821 (show_source_command, show_disasm_command)
822 (show_source_disasm_command, show_data)
823 (show_source_or_disasm_and_command): Remove.
824 (initialize_layouts): New function.
825 (_initialize_tui_layout): Call initialize_layouts.
826
389e7ddb
TT
8272019-12-11 Tom Tromey <tom@tromey.com>
828
829 * tui/tui-layout.h (class tui_layout_base)
830 (class tui_layout_window, class tui_layout_split): New.
831 * tui/tui-layout.c (tui_get_window_by_name)
832 (tui_layout_window::clone, tui_layout_window::apply)
833 (tui_layout_window::get_sizes, tui_layout_window::add_split)
834 (tui_layout_split::add_window, tui_layout_split::clone)
835 (tui_layout_split::get_sizes)
836 (tui_layout_split::set_weights_from_heights)
837 (tui_layout_split::adjust_size, tui_layout_split::apply): New
838 functions.
839 (tui_layout_split::add_split, tui_layout_split::add_split)
840 (tui_layout_split::set_weights_from_heights)
841 (tui_layout_split::set_weights_from_heights): New functions.
842
fb3184d8
TT
8432019-12-11 Tom Tromey <tom@tromey.com>
844
845 * tui/tui-wingeneral.c (tui_gen_win_info::make_window): Update.
846 * tui/tui-win.c (tui_adjust_win_heights, tui_resize_all): Update.
847 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
848 * tui/tui-data.h (struct tui_point): Remove.
849 (struct tui_gen_win_info) <origin>: Remove.
850 <x, y>: New fields.
851 * tui/tui-command.c (tui_cmd_window::resize): Update.
852
dc7ff8a6
TT
8532019-12-11 Tom Tromey <tom@tromey.com>
854
855 * tui/tui-stack.h (struct tui_locator_window) <min_height>:
856 Implement.
857 * tui/tui-regs.h (struct tui_data_item_window) <min_height>:
858 Implement.
859 * tui/tui-data.h (struct tui_gen_win_info) <min_height>: New
860 method.
861 (struct tui_win_info) <min_height>: Implement.
862
1431937b
TT
8632019-12-11 Tom Tromey <tom@tromey.com>
864
865 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
866 (struct tui_win_info) <can_box>: Update.
867
c8ec2f43
TT
8682019-12-11 Tom Tromey <tom@tromey.com>
869
870 * tui/tui-stack.h (struct tui_locator_window) <max_height>: New
871 method.
872 * tui/tui-regs.h (struct tui_data_item_window) <max_height>: New
873 method.
874 * tui/tui-data.h (struct tui_gen_win_info) <max_height>: New
875 method.
876 (struct tui_win_info) <max_height>: Now override.
877
4decd62b
JB
8782019-12-11 Joel Brobecker <brobecker@adacore.com>
879
880 * NEWS: Create a new section for the next release branch.
881 Rename the section of the current branch, now that it has
882 been cut.
883
d746744e
JB
8842019-12-11 Joel Brobecker <brobecker@adacore.com>
885
886 GDB 9 branch created (27f7b2f64062ac9e52afc60509263c2702a9ebd0):
887 * version.in: Bump version to 10.0.50.DATE-git.
888
2e744276
TT
8892019-12-11 Tom Tromey <tromey@adacore.com>
890
891 PR build/25268:
892 * gdbsupport/thread-pool.c (set_thread_name): New function.
893 (thread_pool::set_thread_count): Don't call pthread_setname_np.
894 (thread_pool::thread_function): Call set_thread_name.
895
aac4760f
TT
8962019-12-11 Tom Tromey <tromey@adacore.com>
897
898 * fbsd-tdep.c (fbsd_core_info_proc_status): Cast result of
899 bfd_get_signed_8.
900
d8edc8b7
PW
9012019-12-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
902
903 * NEWS: Document -raw-values option and the related setting commands.
904 * printcmd.c (print_command_parse_format): Do not set opts->raw off,
905 only set it on when /r is given.
906 * valprint.c (value_print_option_defs): New element raw-values.
907 * Makefile.in: Add the new file.
908
cb511130
CB
9092019-12-10 Christian Biesinger <cbiesinger@google.com>
910
911 * gdbsupport/safe-strerror.c: Supress the unused function warning
912 for select_strerror_r.
913
ab7d13f0
CB
9142019-12-10 Christian Biesinger <cbiesinger@google.com>
915
916 * config.in: Regenerate.
917 * configure: Regenerate.
918 * gdbsupport/agent.c (gdb_connect_sync_socket): Call
919 safe_strerror instead of strerror.
920 * gdbsupport/common.m4: Don't check for strerror.
921 * gdbsupport/safe-strerror.c: Support both the glibc version
922 of strerror_r and the XSI version.
923
6c71eb7d
TT
9242019-12-10 Tom Tromey <tromey@adacore.com>
925
926 * ada-typeprint.c (print_choices): Use a single "?".
927 (print_variant_part): Print "?" if the discriminant name
928 is not known.
929
bac7c5cf
GB
9302019-12-10 George Barrett <bob@bob131.so>
931
932 Fix scripted probe breakpoints.
933 * breakpoint.c (tracepoint_probe_breakpoint_ops): Move
934 declaration forward.
935 (breakpoint_ops_for_event_location_type)
936 (breakpoint_ops_for_event_location): Add function definitions.
937 (break_command_1, trace_command): Use
938 breakpoint_ops_for_event_location.
939 * breakpoint.h (breakpoint_ops_for_event_location): Add function
940 declarations.
941 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Use
942 breakpoint_ops_for_event_location.
943 * python/py-breakpoint.c (bppy_init): Use
944 breakpoint_ops_for_event_location.
945
330f1d38
TBA
9462019-12-09 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
947
948 * gdbtypes.c (rank_one_type): Return INCOMPATIBLE_TYPE_BADNESS
949 when ranking an lvalue argument for an rvalue parameter.
950
b1f0c0b9
WA
9512019-12-08 Wataru Ashihara <wataash@wataash.com>
952
953 * darwin-nat.c (darwin_nat_target::create_inferior): Fix
954 template argument for scoped_restore_tmpl from bool to int.
955
aa2d5a42
KS
9562019-12-07 Keith Seitz <keiths@redhat.com>
957
958 * build-id.c (build_id_bfd_get): Permit bfd_core, too.
959 (build_id_to_debug_bfd): Make static, rewriting to use
960 build_id_to_bfd_suffix.
961 (build_id_to_bfd_suffix): Copy of build_id_to_debug_bfd,
962 adding `suffix' parameter. Append SUFFIX to file names
963 when searching for matching files.
964 (build_id_to_debug_bfd): Use build_id_to_bfd_suffix.
965 (build_id_to_exec_bfd): Likewise.
966 * build-id.h (build_id_to_debug_bfd): Clarify that function
967 searches for BFD of debug info file.
968 (build_id_to_exec_bfd): Declare.
969 * corelow.c: Include build-id.h.
970 (locate_exec_from_corefile_build_id): New function.
971 (core_target_open): If no executable BFD is found,
972 search for a core file BFD using build-id.
973
dfb65191
CB
9742019-12-06 Christian Biesinger <cbiesinger@google.com>
975
976 * bcache.c: Put in namespace gdb.
977 * bcache.h: Likewise.
978 * gdbtypes.c (check_types_worklist): Update.
979 (types_deeply_equal): Update.
980 * macrotab.c (struct macro_table) <bcache>: Update.
981 (new_macro_table): Update.
982 * macrotab.h (struct bcache): Put this forward declaration
983 inside namespace gdb.
984 (new_macro_table): Update.
985 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache>:
986 Update.
987 <macro_cache>: Update.
988 * psymtab.h: (psymtab_storage) <psymbol_cache>: Update.
989
93e55f0a
TV
9902019-12-06 Tom de Vries <tdevries@suse.de>
991
992 PR symtab/24971
993 * block.c (best_symbol, better_symbol): New function.
994 (block_lookup_symbol_primary, block_lookup_symbol): Prefer def over
995 decl.
996
06acc08f
TBA
9972019-12-06 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
998
999 * gdbtypes.h: Define the REFERENCE_SEE_THROUGH_BADNESS value.
1000 * gdbtypes.c (rank_one_type): Use REFERENCE_SEE_THROUGH_BADNESS
1001 for ranking see-through reference cases.
1002
e0fad1ea
PW
10032019-12-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1004 * stack.c (faas_command): Check a command is provided.
1005 * thread.c (taas_command, tfaas_command): Likewise.
1006
908641f5
PW
10072019-12-05 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1008 * inferior.c (prune_inferiors): Only call delete_inferior,
1009 Do not modify the inferior list.
1010
b858499d
SM
10112019-12-05 Simon Marchi <simon.marchi@polymtl.ca>
1012
1013 * c-exp.y: Update calls to lookup_typename,
1014 lookup_signed_typename and lookup_unsigned_typename.
1015 * c-lang.c (evaluate_subexp_c): Likewise.
1016 * cp-namespace.c (cp_lookup_symbol_imports_or_template):
1017 Likewise.
1018 * eval.c (binop_promote): Likewise.
1019 * gdbtypes.c (lookup_typename): Remove gdbarch parameter.
1020 (lookup_unsigned_typename): Likewise.
1021 (lookup_signed_typename): Likewise.
1022 * gdbtypes.h (lookup_unsigned_typename): Likewise.
1023 (lookup_signed_typename): Likewise.
1024 (lookup_typename): Likewise.
1025 * guile/scm-type.c (tyscm_lookup_typename): Update calls to
1026 lookup_typename, lookup_signed_typename,
1027 lookup_unsigned_typename.
1028 * m2-exp.y: Likewise.
1029 * printcmd.c (printf_wide_c_string): Likewise.
1030 (ui_printf): Likewise.
1031 * python/py-type.c (typy_lookup_typename): Likewise.
1032 * python/py-xmethods.c (python_xmethod_worker::invoke):
1033 Likewise.
1034 * rust-exp.y: Likewise.
1035
3a8fa228
CB
10362019-12-04 Christian Biesinger <cbiesinger@google.com>
1037
1038 * configure.nat (obsd64): Add missing files x86-nat.o and
1039 nat/x86-dregs.o.
1040
2dbc041e
TT
10412019-12-04 Tom Tromey <tom@tromey.com>
1042
1043 * valprint.c (val_print_string): Use metadata_style.
1044 * go-valprint.c (print_go_string): Use metadata style.
1045 * p-valprint.c (pascal_object_print_static_field): Use metadata
1046 style.
1047 * cp-valprint.c (cp_print_static_field): Use metadata style.
1048
36c8fb93
AB
10492019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
1050 Chris January <chris.january@arm.com>
1051
1052 * f-exp.y (COMPLEX_KEYWORD, SINGLE, DOUBLE, PRECISION): New
1053 tokens.
1054 (typebase): New patterns for complex, single/double precision, and
1055 single/double complex.
1056 (f77_keywords): Change token for complex keyword, and add single,
1057 double, and precision keywords.
1058
c6170c2c
SM
10592019-12-04 Simon Marchi <simon.marchi@polymtl.ca>
1060
1061 * avr-tdep.c (_initialize_avr_tdep): Improve help of command
1062 "info io_registers".
1063
894ecaf4
SM
10642019-12-04 Simon Marchi <simon.marchi@polymtl.ca>
1065
1066 * regcache.c (cooked_read_test): Initialize thread list of
1067 mock_inferior.
1068
be155ebb
SM
10692019-12-04 Simon Marchi <simon.marchi@polymtl.ca>
1070
1071 * aarch64-linux-tdep.c: Remove includes.
1072
c577cdd7
SM
10732019-12-04 Simon Marchi <simon.marchi@polymtl.ca>
1074
1075 * aarch64-tdep.c: Remove includes.
1076
610cfd61
SM
10772019-12-04 Simon Marchi <simon.marchi@efficios.com>
1078
1079 * filtered-iterator.h (filtered_iterator) <operator==,
1080 operator!=>: Compare wrapped iterators, not wrapped pointers.
1081 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1082 unittests/filtered_iterator-selftests.c.
1083 * unittests/filtered_iterator-selftests.c: New file.
1084
a05cf17a
TT
10852019-12-04 Tom Tromey <tromey@adacore.com>
1086
1087 * gdbtypes.c (create_range_type): Inherit endianity
1088 from base type.
1089
d5a22e77
TT
10902019-12-04 Tom Tromey <tromey@adacore.com>
1091
1092 * ada-lang.c (decode_constrained_packed_array)
1093 (ada_value_assign, value_assign_to_component): Update.
1094 * dwarf2loc.c (rw_pieced_value, access_memory)
1095 (dwarf2_compile_expr_to_ax): Update.
1096 * dwarf2read.c (dwarf2_add_field): Update.
1097 * eval.c (evaluate_subexp_standard): Update.
1098 * gdbarch.c, gdbarch.h: Rebuild.
1099 * gdbarch.sh (bits_big_endian): Remove.
1100 * gdbtypes.h (union field_location): Update comment.
1101 * target-descriptions.c (make_gdb_type): Update.
1102 * valarith.c (value_bit_index): Update.
1103 * value.c (struct value) <bitpos>: Update comment.
1104 (unpack_bits_as_long, modify_field): Update.
1105 * value.h (value_bitpos): Update comment.
1106
7ab4a236
TT
11072019-12-04 Tom Tromey <tromey@adacore.com>
1108
1109 * gdbtypes.c (type_byte_order): Move earlier. Assert for unknown
1110 endian-ness.
1111
103a685e
TT
11122019-12-04 Tom Tromey <tromey@adacore.com>
1113
1114 * dwarf2read.c (dwarf2_init_float_type)
1115 (dwarf2_init_complex_target_type): Add byte_order parameter.
1116 (read_base_type): Compute byte order earlier.
1117 * gdbtypes.c (init_float_type): Add byte_order parameter.
1118 * gdbtypes.h (init_float_type): Add byte_order parameter.
1119
7a9e9f9f
TT
11202019-12-04 Tom Tromey <tromey@adacore.com>
1121
1122 * unittests/tui-selftests.c: Conditionally include tui-winsource.h.
1123
feee869b
TT
11242019-12-04 Tom Tromey <tromey@adacore.com>
1125
1126 * dwarf2read.c (process_structure_scope): Initialize
1127 "discr_offset".
1128
c2512106
AB
11292019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
1130
1131 * mi/mi-symbol-cmds.c (mi_symbol_info): Take extra parameter, and
1132 add it into the search spec.
1133 (parse_max_results_option): New function.
1134 (mi_info_functions_or_variables): Parse -max-results flag and pass
1135 it to mi_symbol_info.
1136 (mi_cmd_symbol_info_modules): Likewise.
1137 (mi_cmd_symbol_info_types): Likewise.
1138 * symtab.c (global_symbol_searcher::add_matching_symbols): Change
1139 return type to bool, change result container into a set, and don't
1140 add new results if we have enough already.
1141 (global_symbol_searcher::add_matching_msymbols): Change return
1142 type to bool, and don't add new results if we have enough already.
1143 (sort_search_symbols_remove_dups): Delete.
1144 (global_symbol_searcher::search): Early exit from search loop when
1145 we have enough results. Use a std::set to collect the results
1146 from calling add_matching_symbols.
1147 * symtab.h (global_symbol_searcher) <set_max_seach_results>: New
1148 member function.
1149 (global_symbol_searcher) <m_max_search_results>: New member
1150 variable.
1151 (global_symbol_searcher) <add_matching_symbols>: Update header
1152 comment and change return type to bool.
1153 (global_symbol_searcher) <add_matching_msymbols>: Update header
1154 comment and change return type to bool.
1155
f97a63c5
AB
11562019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
1157
1158 * symtab.c (symbol_search::compare_search_syms): Update header
1159 comment.
1160 (global_symbol_searcher::is_suitable_msymbol): New function.
1161 (global_symbol_searcher::expand_symtabs): New function.
1162 (global_symbol_searcher::add_matching_symbols): New function.
1163 (global_symbol_searcher::add_matching_msymbols): New function.
1164 (global_symbol_searcher::search): Move most of the content
1165 into the new functions above, and call them as needed.
1166 * symtab.h (global_symbol_searcher) <expand_symtabs>: New member
1167 function.
1168 (global_symbol_searcher) <add_matching_symbols>: New member
1169 function.
1170 (global_symbol_searcher) <add_matching_msymbols>: New member
1171 function.
1172 (global_symbol_searcher) <is_suitable_msymbol>: New member
1173 function.
1174
293b38d6
AB
11752019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
1176
1177 * mi/mi-cmds.c (mi_cmds): Add -symbol-info-module-functions and
1178 -symbol-info-module-variables entries.
1179 * mi/mi-cmds.h (mi_cmd_symbol_info_module_functions): Declare.
1180 (mi_cmd_symbol_info_module_variables): Declare.
1181 * mi/mi-symbol-cmds.c
1182 (module_symbol_search_iterator): New typedef.
1183 (output_module_symbols_in_single_module_and_file): New function.
1184 (output_module_symbols_in_single_module): New function.
1185 (mi_info_module_functions_or_variables): New function.
1186 (mi_cmd_symbol_info_module_functions): New function.
1187 (mi_cmd_symbol_info_module_variables): New function.
1188 * NEWS: Mention new MI command.
1189
4cbd39b2
CB
11902019-12-03 Christian Biesinger <cbiesinger@google.com>
1191
1192 * bcache.c (hash): Remove.
1193 (hash_continue): Remove.
1194 * bcache.h (hash): Remove.
1195 (hash_continue): Remove.
1196 (struct bcache) <ctor>: Update.
1197 * psymtab.c (psymbol_hash): Update.
1198 * stabsread.c (hashname): Update.
1199 * utils.h (fast_hash): Add an argument for a start value,
1200 defaulting to zero.
1201
82f910ea
PW
12022019-12-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1203 * symtab.c (symbol_cache_clear_slot): Move close to cleared type.
1204 (destroy_block_symbol_cache): New function.
1205 (symbol_cache:~symbol_cache) Call destroy_block_symbol_cache.
1206 (resize_symbol_cache): Likewise.
1207
de2396d0
TT
12082019-12-02 Tom Tromey <tom@tromey.com>
1209
1210 * unittests/tui-selftests.c (run_tests): Make conditional.
1211 (_initialize_tui_selftest): Make conditional.
1212
638d85bc
CB
12132019-12-02 Christian Biesinger <cbiesinger@google.com>
1214
1215 * aix-thread.c (debug_aix_thread): Change type to bool.
1216
7532a164
LM
12172019-12-02 Luis Machado <luis.machado@linaro.org>
1218
1219 * infrun.c (follow_fork_inferior): Remove outdated FIXME comment.
1220
216a7e6b
AB
12212019-12-01 Andrew Burgess <andrew.burgess@embecosm.com>
1222
1223 * dwarf2read.c (read_tag_string_type): Read the fields required to
1224 make a dynamic string, and possibly create a dynamic range for the
1225 string.
1226 (attr_to_dynamic_prop): Setup is_reference based on the type of
1227 attribute being processed.
1228 * gdbtypes.c (is_dynamic_type_internal): Handle TYPE_CODE_STRING.
1229 (resolve_dynamic_array): Rename to...
1230 (resolve_dynamic_array_or_string): ...this, update header comment,
1231 and accept TYPE_CODE_STRING.
1232 (resolve_dynamic_type_internal): Handle TYPE_CODE_STRING.
1233
11a8b164
AB
12342019-12-01 Andrew Burgess <andrew.burgess@embecosm.com>
1235
1236 * dwarf2read.c (dwarf2_per_cu_int_type): New function, takes most
1237 of its implementation from...
1238 (dwarf2_per_cu_addr_sized_int_type): ...here, which now just calls
1239 the new function.
1240
5bbd8269
AB
12412019-12-01 Andrew Burgess <andrew.burgess@embecosm.com>
1242
1243 * dwarf2read.c (read_subrange_type): Read bit and byte stride and
1244 create a range with stride where appropriate.
1245 * f-valprint.c: Include 'gdbarch.h'.
1246 (f77_print_array_1): Take the stride into account when walking the
1247 array. Also convert the stride into addressable units.
1248 * gdbtypes.c (create_range_type): Initialise the stride to
1249 constant zero.
1250 (create_range_type_with_stride): New function, initialise the
1251 range as normal, and then setup the stride.
1252 (has_static_range): Include the stride here. Also change the
1253 return type to bool.
1254 (create_array_type_with_stride): Consider the range stride if the
1255 array isn't given its own stride.
1256 (resolve_dynamic_range): Resolve the stride if needed.
1257 * gdbtypes.h (struct range_bounds) <stride>: New member variable.
1258 (struct range_bounds) <flag_is_byte_stride>: New member variable.
1259 (TYPE_BIT_STRIDE): Define.
1260 (TYPE_ARRAY_BIT_STRIDE): Define.
1261 (create_range_type_with_stride): Declare.
1262 * valarith.c (value_subscripted_rvalue): Take range stride into
1263 account when walking the array.
1264
82e3b564
TT
12652019-12-01 Tom Tromey <tom@tromey.com>
1266
1267 * tui/tui-win.c (tui_all_windows_info): Treat inactive TUI
1268 specially.
1269
517d261d
TT
12702019-12-01 Tom Tromey <tom@tromey.com>
1271
1272 * tui/tui-winsource.c (tui_copy_source_line): Don't advance past
1273 \0.
1274 * unittests/tui-selftests.c: New file.
1275 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add tui-selftests.c.
1276
484c9b64
TT
12772019-12-01 Tom Tromey <tom@tromey.com>
1278
1279 * tui/tui.c (tui_enable): Call tui_update_variables earlier.
1280
a2a7af0c
TT
12812019-12-01 Tom Tromey <tom@tromey.com>
1282
1283 * NEWS: Document new settings.
1284 * tui/tui-wingeneral.c (box_win): Apply appropriate border style.
1285 * tui/tui-win.c (_initialize_tui_win): Add border style
1286 observers.
1287 * tui/tui-io.h (tui_apply_style): Declare.
1288 * tui/tui-io.c (tui_apply_style): Rename from apply_style. No
1289 longer static.
1290 (apply_ansi_escape, tui_set_reverse_mode): Update.
1291 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
1292 Add "skip_intensity" parameter.
1293 <changed>: New member.
1294 <do_set_value>: Declare.
1295 (tui_border_style, tui_active_border_style): Declare.
1296 * cli/cli-style.c (tui_border_style, tui_active_border_style): New
1297 globals.
1298 (cli_style_option): Initialize "changed".
1299 (cli_style_option::do_set_value): New function.
1300 (cli_style_option::add_setshow_commands): Add "skip_intensity"
1301 parameter. Update.
1302 (STYLE_ADD_SETSHOW_COMMANDS): Add "SKIP" parameter.
1303 (_initialize_cli_style): Update. Create TUI border style
1304 commands.
1305
d1da6b01
TT
13062019-12-01 Tom Tromey <tom@tromey.com>
1307
1308 * tui/tui-winsource.h (tui_copy_source_line): Add "ndigits"
1309 parameter.
1310 * tui/tui-winsource.c (tui_copy_source_line): Add "ndigits"
1311 parameter.
1312 * tui/tui-win.h (compact_source): Declare.
1313 * tui/tui-win.c (compact_source): New global.
1314 (tui_set_compact_source, tui_show_compact_source): New functions.
1315 (_initialize_tui_win): Add "compact-source" setting.
1316 * tui/tui-source.c (tui_source_window::set_contents): Handle
1317 compact_source setting.
1318 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
1319 * NEWS: Document new setting.
1320
489dbda6
TT
13212019-11-30 Tom Tromey <tom@tromey.com>
1322
1323 * dwarf2read.c (dwarf2_add_field): Include field offset when
1324 computing variant part length.
1325
bf498525
PW
13262019-11-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1327 * NEWS: Mention define-prefix. Tell that command names can now
1328 contain a . character.
1329
be09caf1
PW
13302019-11-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1331
1332 * command.h (valid_cmd_char_p): Declare.
1333 * cli/cli-decode.c (valid_cmd_char_p): New function factorizing
1334 the check of valid command char.
1335 (find_command_name_length, valid_user_defined_cmd_name_p): Use
1336 valid_cmd_char_p.
1337 * cli/cli-script.c (validate_comname): Likewise.
1338 * completer.c (gdb_completer_command_word_break_characters):
1339 Do not remove . from the word break char, update comments.
1340 (complete_line_internal_1): Use valid_cmd_char_p.
1341 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
1342 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
1343
c6ac7fc9
PW
13442019-11-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1345
1346 * cli/cli-script.c (do_define_command): Ensure a redefined
1347 prefix command is kept as a prefix command.
1348 (define_prefix_command): New function.
1349 (show_user_1): Report user defined prefixes.
1350 (_initialize_cli_script): Create the new 'define-prefix' command.
1351 Add completers for 'define' and 'document'.
1352 * top.c (execute_command): If command is a user-defined prefix only
1353 command, report the list of commands for this prefix command.
1354
a992a3b0
TBA
13552019-11-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1356
1357 * valops.c (find_oload_champ): Improve debug output.
1358
e9194a1a
TBA
13592019-11-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1360
1361 * valops.c (find_oload_champ): Print part of debug messages
1362 before the badness vector is std::move'd.
1363
53a008a6
TT
13642019-11-28 Tom Tromey <tom@tromey.com>
1365
1366 * value.c (creal_internal_fn): Fix comment.
1367
bab05c83
TT
13682019-11-28 Tom Tromey <tom@tromey.com>
1369
1370 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count,
1371 flag_bound_evaluated>: Now unsigned.
1372
2522f049
TT
13732019-11-28 Tom Tromey <tom@tromey.com>
1374
1375 * guile/guile-internal.h (vlscm_scm_from_value_unsafe): Don't
1376 declare.
1377
38b49e22
MS
13782019-11-28 Mihails Strasuns <mihails.strasuns@intel.com>
1379
1380 * jit.c (jit_bfd_try_read_symtab): Fix printed function name in the
1381 debug output.
1382 * jit.c (jit_unregister_code): Add debug print to match
1383 `jit_register_code`.
1384
35125921
CB
13852019-11-27 Christian Biesinger <cbiesinger@google.com>
1386
1387 * NEWS: Mention the new multithreaded symbol loading.
1388
62e77f56
CB
13892019-11-27 Christian Biesinger <cbiesinger@google.com>
1390
1391 * maint.c (n_worker_threads): Default to 0.
1392 (worker_threads_disabled): New function.
1393 * maint.h (worker_threads_disabled): New function.
1394 * minsyms.c (minimal_symbol_reader::record_full): Call symbol_set_names
1395 here if worker_threads_disabled () is true.
1396 (minimal_symbol_reader::install): Skip all threading if
1397 worker_threads_disabled () is true.
1398
f29d7f6b
CB
13992019-11-27 Christian Biesinger <cbiesinger@google.com>
1400
1401 * minsyms.c (add_minsym_to_hash_table): Use a previously computed
1402 hash code if possible.
1403 (add_minsym_to_demangled_hash_table): Likewise.
1404 (minimal_symbol_reader::install): Compute the hash codes for msymbol
1405 on the background thread.
1406 * symtab.h (struct minimal_symbol) <hash_value, demangled_hash_value>:
1407 Add these fields.
1408
e76b2246
CB
14092019-11-27 Christian Biesinger <cbiesinger@google.com>
1410
1411 * minsyms.c (minimal_symbol_reader::install): Also compute the hash
1412 of the mangled name on the background thread.
1413 * symtab.c (symbol_set_names): Allow passing in the hash of the
1414 linkage_name.
1415 * symtab.h (symbol_set_names): Likewise.
1416
8d9a2568
KB
14172019-11-27 Kevin Buettner <kevinb@redhat.com>
1418
1419 * dwarf2read.c (inherit_abstract_dies): Ensure that delayed
1420 physnames are computed for inherited DIEs.
1421
fad03f6e
TT
14222019-11-27 Tom Tromey <tromey@adacore.com>
1423
1424 * dwarf2read.h (struct dwarf2_per_objfile): Remove unnecessary
1425 backslashes.
1426 * cp-support.c: Remove unnecessary backslashes.
1427
43678b0a
CB
14282019-11-27 Christian Biesinger <cbiesinger@google.com>
1429
1430 * ada-exp.y (write_ambiguous_var): Replace SYMBOL_SET_LINKAGE_NAME
1431 with sym->set_linkage_name.
1432 * coffread.c (coff_read_enum_type): Likewise.
1433 * mdebugread.c (parse_symbol): Likewise.
1434 * stabsread.c (patch_block_stabs): Likewise.
1435 (define_symbol): Likewise.
1436 (read_enum_type): Likewise.
1437 (common_block_end): Likewise.
1438 * symtab.h (struct general_symbol_info) <set_linkage_name>: New
1439 function.
1440 (SYMBOL_SET_LINKAGE_NAME): Remove.
1441 * xcoffread.c (process_xcoff_symbol): Replace SYMBOL_SET_LINKAGE_NAME
1442 with sym->set_linkage_name.
1443
db5960b4
AB
14442019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
1445
1446 * mi/mi-cmds.c (mi_cmds): Add 'symbol-info-modules' entry.
1447 * mi/mi-cmds.h (mi_cmd_symbol_info_modules): Declare.
1448 * mi/mi-symbol-cmds.c (mi_cmd_symbol_info_modules): New function.
1449 * NEWS: Mention new MI command.
1450
7dc42066
AB
14512019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
1452
1453 * mi/mi-cmds.c (mi_cmds): Add '-symbol-info-functions',
1454 '-symbol-info-types', and '-symbol-info-variables'.
1455 * mi/mi-cmds.h (mi_cmd_symbol_info_functions): Declare.
1456 (mi_cmd_symbol_info_types): Declare.
1457 (mi_cmd_symbol_info_variables): Declare.
1458 * mi/mi-symbol-cmds.c: Add 'source.h' and 'mi-getopt.h' includes.
1459 (output_debug_symbol): New function.
1460 (output_nondebug_symbol): New function.
1461 (mi_symbol_info): New function.
1462 (mi_info_functions_or_variables): New function.
1463 (mi_cmd_symbol_info_functions): New function.
1464 (mi_cmd_symbol_info_types): New function.
1465 (mi_cmd_symbol_info_variables): New function.
1466 * NEWS: Mention new commands.
1467
5f512a7d
AB
14682019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
1469
1470 * symtab.c (symbol_to_info_string): New function, most content
1471 moved from print_symbol_info, but updated to return a std::string.
1472 (print_symbol_info): Update to use symbol_to_info_string and print
1473 returned string.
1474 * symtab.h (symbol_to_info_string): Declare new function.
1475
470c0b1c
AB
14762019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
1477
1478 * python/python.c (gdbpy_rbreak): Convert to using
1479 global_symbol_searcher.
1480 * symtab.c (file_matches): Convert return type to bool, change
1481 file list to std::vector, update header comment.
1482 (search_symbols): Rename to...
1483 (global_symbol_searcher::search): ...this and update now its
1484 a member function of global_symbol_searcher. Take account of the
1485 changes to file_matches.
1486 (symtab_symbol_info): Convert to using global_symbol_searcher.
1487 (rbreak_command): Likewise.
1488 (search_module_symbols): Likewise.
1489 * symtab.h (enum symbol_search): Update comment.
1490 (search_symbols): Remove declaration.
1491 (class global_symbol_searcher): New class.
1492
57357d9d
TT
14932019-11-26 Tom Tromey <tromey@adacore.com>
1494
1495 * cp-support.c (_initialize_cp_support): Conditionally initialize
1496 gdb_demangle_attempt_core_dump.
1497
3ea16160
TT
14982019-11-26 Tom Tromey <tom@tromey.com>
1499
1500 * python/py-function.c (fnpy_init): Update.
1501 * value.h (add_internal_function): Adjust declaration.
1502 * value.c (function_destroyer): Remove.
1503 (do_add_internal_function): Don't set destroyer or copy name.
1504 (add_internal_function): Take unique_xmalloc_ptr<char> for name.
1505 Set name_allocated.
1506 * python/py-cmd.c (cmdpy_destroyer): Don't free "name".
1507 (cmdpy_init): Set name_allocated.
1508 * cli/cli-decode.h (struct cmd_list_element) <name_allocated>: New
1509 member.
1510 (~cmd_list_element): Free "name" if needed.
1511
1a6d41c6
TT
15122019-11-26 Tom Tromey <tom@tromey.com>
1513
1514 * value.h (add_internal_function): Add new overload. Move
1515 documentation from value.h.
1516 * value.c (do_add_internal_function): New function.
1517 (add_internal_function): Use it. Add new overload.
1518 (function_destroyer): Don't free doc.
1519 * python/py-function.c (fnpy_init): Update.
1520
8318f3c3
TT
15212019-11-26 Tom Tromey <tom@tromey.com>
1522
1523 * python/py-cmd.c (cmdpy_destroyer): Don't free "doc".
1524 (cmdpy_init): Set "doc_allocated".
1525
4da8c3a8
TT
15262019-11-26 Tom Tromey <tom@tromey.com>
1527
1528 * gdbsupport/thread-pool.c (thread_pool::set_thread_count): Set
1529 name of worker thread.
1530 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for
1531 pthread_setname_np.
1532 * configure, config.in: Rebuild.
1533
971db5e2
TT
15342019-11-26 Tom Tromey <tom@tromey.com>
1535
1536 * python/python.c (class gdbpy_gil): New.
1537 (struct gdbpy_event): Add constructor, destructor, operator().
1538 (gdbpy_post_event): Use run_on_main_thread.
1539 (gdbpy_initialize_events): Remove.
1540 (do_start_initialization): Update.
1541
22138db6
TT
15422019-11-26 Tom Tromey <tom@tromey.com>
1543
1544 * NEWS: Add entry.
1545 * maint.c (_initialize_maint_cmds): Add "worker-threads" maint
1546 commands. Call update_thread_pool_size.
1547 (update_thread_pool_size, maintenance_set_worker_threads): New
1548 functions.
1549 (n_worker_threads): New global.
1550
d55c9a68
TT
15512019-11-26 Christian Biesinger <cbiesinger@google.com>
1552 Tom Tromey <tom@tromey.com>
1553
1554 * minsyms.c (minimal_symbol_reader::install): Use
1555 parallel_for_each.
1556 * gdbsupport/parallel-for.h: New file.
1557 * Makefile.in (HFILES_NO_SRCDIR): Add gdbsupport/parallel-for.h.
1558
a0b57563
CB
15592019-11-26 Christian Biesinger <cbiesinger@google.com>
1560 Tom Tromey <tom@tromey.com>
1561
1562 * gdbsupport/thread-pool.h: New file.
1563 * gdbsupport/thread-pool.c: New file.
1564 * Makefile.in (COMMON_SFILES): Add thread-pool.c.
1565 (HFILES_NO_SRCDIR): Add thread-pool.h.
1566
3b3978bc
TT
15672019-11-26 Tom Tromey <tom@tromey.com>
1568
1569 * event-top.h (thread_local_segv_handler): Declare.
1570 * event-top.c (thread_local_segv_handler): New global.
1571 (install_handle_sigsegv, handle_sigsegv): New functions.
1572 (async_init_signals): Install SIGSEGV handler.
1573 * cp-support.c (gdb_demangle_jmp_buf): Change type. Now
1574 thread-local.
1575 (report_failed_demangle): New function.
1576 (gdb_demangle): Make core_dump_allowed atomic. Remove signal
1577 handler-setting code, instead use segv_handler. Run warning code
1578 on main thread.
1579
9411c49e
TT
15802019-11-26 Tom Tromey <tom@tromey.com>
1581
1582 * run-on-main-thread.c: New file.
1583 * run-on-main-thread.h: New file.
1584 * unittests/main-thread-selftests.c: New file.
1585 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1586 main-thread-selftests.c.
1587 (HFILES_NO_SRCDIR): Add run-on-main-thread.h.
1588 (COMMON_SFILES): Add run-on-main-thread.c.
1589
c3efb965
TT
15902019-11-26 Tom Tromey <tom@tromey.com>
1591
1592 * main.c (setup_alternate_signal_stack): Remove.
1593 (captured_main_1): Use gdb::alternate_signal_stack.
1594 * gdbsupport/alt-stack.h: New file.
1595
21987b9c
TT
15962019-11-26 Tom Tromey <tom@tromey.com>
1597
1598 * gdbsupport/signals-state-save-restore.c (original_signal_mask):
1599 Remove comment.
1600 (save_original_signals_state, restore_original_signals_state): Use
1601 gdb_sigmask.
1602 * linux-nat.c (block_child_signals, restore_child_signals_mask)
1603 (_initialize_linux_nat): Use gdb_sigmask.
1604 * guile/guile.c (_initialize_guile): Use block_signals.
1605 * Makefile.in (HFILES_NO_SRCDIR): Add gdb-sigmask.h.
1606 * gdbsupport/gdb-sigmask.h: New file.
1607 * event-top.c (async_sigtstp_handler): Use gdb_sigmask.
1608 * cp-support.c (gdb_demangle): Use gdb_sigmask.
1609 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for
1610 pthread_sigmask.
1611 * configure, config.in: Rebuild.
1612 * gdbsupport/block-signals.h: New file.
1613
5e030278
TT
16142019-11-26 Tom Tromey <tom@tromey.com>
1615
1616 * acinclude.m4: Include ax_pthread.m4.
1617 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
1618 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
1619 (CLIBS): Use PTHREAD_LIBS.
1620 (aclocal_m4_deps): Add ax_pthread.m4.
1621 * config.in, configure: Rebuild.
1622 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for std::thread.
1623
5a79c107
TT
16242019-11-26 Tom Tromey <tom@tromey.com>
1625
1626 * symtab.h (struct minimal_symbol) <name_set>: New member.
1627 * minsyms.c (minimal_symbol_reader::record_full): Copy name.
1628 Don't call symbol_set_names.
1629 (minimal_symbol_reader::install): Call symbol_set_names.
1630
aa369509
PW
16312019-11-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1632
1633 * python/python.c (gdbpy_enter::~gdbpy_enter): Release GIL after
1634 restore_active_ext_lang, as GIL is needed for (indirectly)
1635 called PyOS_InterruptOccurred.
1636
cadc9cb8
SM
16372019-11-26 Simon Marchi <simon.marchi@efficios.com>
1638
1639 * sparc-nat.c (sparc_xfer_wcookie): Sync declaration with
1640 definition.
1641
d04afd58
SM
16422019-11-26 Simon Marchi <simon.marchi@efficios.com>
1643
1644 * remote-sim.c (simulator_command): Make static, remove
1645 declaration.
1646
dd694d77
SM
16472019-11-26 Simon Marchi <simon.marchi@efficios.com>
1648
1649 * unittests/array-view-selftests.c (check_ptr_size_ctor2): Make
1650 static.
1651 * unittests/basic_string_view/capacity/1.cc (test01): Likewise.
1652 * unittests/basic_string_view/cons/char/1.cc (test01): Likewise.
1653 (main): Likewise.
1654 * unittests/basic_string_view/cons/char/2.cc (test03): Likewise.
1655 (main): Likewise.
1656 * unittests/basic_string_view/cons/char/3.cc (test05): Likewise.
1657 (main): Likewise.
1658 * unittests/basic_string_view/element_access/char/1.cc (test01):
1659 Likewise.
1660 (main): Likewise.
1661 * unittests/basic_string_view/element_access/char/empty.cc (main):
1662 Likewise.
1663 * unittests/basic_string_view/element_access/char/front_back.cc
1664 (test01): Likewise.
1665 (main): Likewise.
1666 * unittests/basic_string_view/inserters/char/2.cc (test05):
1667 Likewise.
1668 (main): Likewise.
1669 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc
1670 (test01): Likewise.
1671 (main): Likewise.
1672 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc
1673 (test01): Likewise.
1674 (main): Likewise.
1675 * unittests/basic_string_view/modifiers/swap/char/1.cc (test01):
1676 Likewise.
1677 * unittests/basic_string_view/operations/compare/char/1.cc
1678 (test01): Likewise.
1679 (main): Likewise.
1680 * unittests/basic_string_view/operations/compare/char/13650.cc
1681 (test01): Likewise.
1682 * unittests/basic_string_view/operations/copy/char/1.cc (test01):
1683 Likewise.
1684 (main): Likewise.
1685 * unittests/basic_string_view/operations/data/char/1.cc (test01):
1686 Likewise.
1687 (main): Likewise.
1688 * unittests/basic_string_view/operations/find/char/1.cc (test01):
1689 Likewise.
1690 (main): Likewise.
1691 * unittests/basic_string_view/operations/find/char/2.cc (test02):
1692 Likewise.
1693 (main): Likewise.
1694 * unittests/basic_string_view/operations/find/char/3.cc (test03):
1695 Likewise.
1696 (main): Likewise.
1697 * unittests/basic_string_view/operations/find/char/4.cc (main):
1698 Likewise.
1699 * unittests/basic_string_view/operations/rfind/char/1.cc (test01):
1700 Likewise.
1701 (main): Likewise.
1702 * unittests/basic_string_view/operations/rfind/char/2.cc (test02):
1703 Likewise.
1704 (main): Likewise.
1705 * unittests/basic_string_view/operations/rfind/char/3.cc (test03):
1706 Likewise.
1707 (main): Likewise.
1708 * unittests/basic_string_view/operations/substr/char/1.cc
1709 (test01): Likewise.
1710 (main): Likewise.
1711 * unittests/basic_string_view/operators/char/2.cc (main):
1712 Likewise.
1713 * unittests/optional/assignment/1.cc (test): Likewise.
1714 * unittests/optional/assignment/2.cc (test): Likewise.
1715 * unittests/optional/assignment/3.cc (test): Likewise.
1716 * unittests/optional/assignment/4.cc (test): Likewise.
1717 * unittests/optional/assignment/5.cc (test): Likewise.
1718 * unittests/optional/assignment/6.cc (test): Likewise.
1719 * unittests/optional/assignment/7.cc (test): Likewise.
1720 * unittests/optional/cons/copy.cc (test): Likewise.
1721 * unittests/optional/cons/default.cc (test): Likewise.
1722 * unittests/optional/cons/move.cc (test): Likewise.
1723 * unittests/optional/cons/value.cc (test): Likewise.
1724 * unittests/optional/in_place.cc (test): Likewise.
1725 * unittests/optional/observers/1.cc (test): Likewise.
1726 * unittests/optional/observers/2.cc (test): Likewise.
1727
3b5c1d49
SM
17282019-11-26 Simon Marchi <simon.marchi@efficios.com>
1729
1730 * tui-win.h (tui_set_var_cmd): Remove.
1731 * tui-win.c (tui_set_var_cmd): Make static.
1732
adce99fe
SM
17332019-11-26 Simon Marchi <simon.marchi@efficios.com>
1734
1735 * breakpoint.h (hbreak_command_wrapper, thbreak_command_wrapper,
1736 rbreak_command_wrapper): Remove.
1737 * symtab.c (rbreak_command_wrapper): Remove.
1738
fe3adccf
SM
17392019-11-26 Simon Marchi <simon.marchi@efficios.com>
1740
1741 * inferior.h (info_terminal_command): Remove declaration.
1742 * inflow.c (info_terminal_command): Make static.
1743
b926335f
SM
17442019-11-26 Simon Marchi <simon.marchi@efficios.com>
1745
1746 * inferior.c (exit_inferior_silent): Remove.
1747
b62f6f54
SM
17482019-11-26 Simon Marchi <simon.marchi@efficios.com>
1749
1750 * dictionary.c (dict_empty, mdict_empty): Remove.
1751 * dictionary.c (mdict_empty): Remove.
1752
cb8c24b6
SM
17532019-11-26 Simon Marchi <simon.marchi@efficios.com>
1754
1755 * arc-tdep.c (arc_insn_get_memory_base_reg): Make static.
1756 (arc_insn_get_memory_offset): Likewise.
1757 (arc_insn_dump): Likewise.
1758 * cp-support.c (test_cp_symbol_name_matches): Likewise.
1759 * csky-linux-tdep.c (csky_supply_fregset): Likewise.
1760 * dictionary.c (dict_iterator_next): Likewise.
1761 (dict_iter_match_first): Likewise.
1762 (dict_iter_match_next): Likewise.
1763 * f-lang.c (evaluate_subexp_f): Likewise.
1764 * hppa-tdep.c (hppa_read_pc): Likewise.
1765 * i386-tdep.c (i386_floatformat_for_type): Likewise.
1766 * parse.c (write_exp_elt_msym): Likewise.
1767 * ppc-linux-tdep.c (ppc_floatformat_for_type): Likewise.
1768 * remote.c (remote_packet_size): Likewise.
1769 (remote_notif_stop_parse): Likewise.
1770 * rs6000-aix-tdep.c (aix_sighandle_frame_sniffer): Likewise.
1771 * s12z-tdep.c (s12z_disassemble_info): Likewise.
1772 * source.c (prepare_path_for_appending): Likewise.
1773 * sparc64-linux-tdep.c
1774 (sparc64_linux_handle_segmentation_fault); Likewise.
1775 * stack.c (frame_selection_by_function_completer): Likewise.
1776
781597ff
SM
17772019-11-26 Simon Marchi <simon.marchi@efficios.com>
1778
1779 * completer.c (set_gdb_completion_word_break_characters):
1780 Remove.
1781
23baa4cc
SM
17822019-11-26 Simon Marchi <simon.marchi@efficios.com>
1783
1784 * dwarf-index-write.c: Include dwarf-index-write.h.
1785 * mi/mi-interp.c: Include mi/mi-interp.h.
1786
23767560
SM
17872019-11-26 Simon Marchi <simon.marchi@efficios.com>
1788
1789 * aarch32-tdep.c: Include aarch32-tdep.h.
1790 * aarch32-tdep.h: Forward-declare struct target_desc.
1791
6d91ce9a
CB
17922019-11-26 Christian Biesinger <cbiesinger@google.com>
1793
1794 * linux-nat.c (detach_one_lwp): Call safe_strerror instead of
1795 strerror.
1796 * nto-procfs.c (nto_procfs_target::create_inferior): Likewise.
1797 * windows-nat.c (windows_nat_target::create_inferior): Likewise.
1798
3cf2f237
TV
17992019-11-25 Tom de Vries <tdevries@suse.de>
1800
1801 * contrib/words.sh: Add -c option.
1802
5b89c67a
CB
18032019-11-25 Christian Biesinger <cbiesinger@google.com>
1804
1805 * solib.c (solib_find_1): Change int to bool.
1806 (exec_file_find): Change int to bool.
1807 (solib_find): Change int to bool.
1808 (solib_read_symbols): Change int to bool.
1809 (solib_used): Change int to bool.
1810 (solib_add): Change int to bool.
1811 (info_sharedlibrary_command): Change int to bool.
1812 (solib_contains_address_p): Change int to bool.
1813 (solib_keep_data_in_core): Change int to bool.
1814 (in_solib_dynsym_resolve_code): Change int to bool.
1815 (reload_shared_libraries_1): Change int to bool.
1816 (gdb_sysroot_changed): Change int to bool.
1817 * solib.h (solib_read_symbols): Change int to bool.
1818 (solib_contains_address_p): Change int to bool.
1819 (solib_keep_data_in_core): Change int to bool.
1820 (in_solib_dynsym_resolve_code): Change int to bool.
1821 (libpthread_name_p): Change int to bool.
1822
6cc8564b
LM
18232019-11-25 Luis Machado <luis.machado@linaro.org>
1824
1825 * NEWS (New Commands): Mention "set debug remote-packet-max-chars".
1826 * remote.c (REMOTE_DEBUG_MAX_CHAR): Remove.
1827 (remote_packet_max_chars): New static global.
1828 (show_remote_packet_max_chars): New function.
1829 (remote_target::putpkt_binary): Adjust to use new
1830 remote_packet_max_chars option.
1831 (remote_target::getpkt_or_notif_sane_1): Likewise.
1832 (_initialize_remote): Register new remote-packet-max-chars option.
1833
a7cdaa91
SM
18342019-11-24 Simon Marchi <simon.marchi@efficios.com>
1835
1836 * m68k-linux-nat.c: Include gdbarch.h.
1837
26abc753
TT
18382019-11-24 Tom Tromey <tom@tromey.com>
1839
1840 * symfile.c (read_symbols): Update.
1841 * psymtab.c (require_partial_symbols): Change type of "verbose" to
1842 bool.
1843 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
1844 (psym_lookup_symbol, psym_find_last_source_symtab)
1845 (psym_forget_cached_source_info, psym_print_stats)
1846 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
1847 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
1848 (psym_map_matching_symbols, psym_expand_symtabs_matching)
1849 (psym_find_compunit_symtab_by_address)
1850 (maintenance_print_psymbols, maintenance_info_psymtabs)
1851 (maintenance_check_psymtabs): Update.
1852 * psymtab.h (require_partial_symbols): Change type of "verbose" to
1853 bool.
1854
012fc909
TT
18552019-11-22 Tom Tromey <tom@tromey.com>
1856
1857 * observable.h: Update comments.
1858
c83d8d32
TT
18592019-11-22 Tom Tromey <tromey@adacore.com>
1860
1861 * ada-tasks.c (ada_task_is_alive): Make parameter const.
1862 (print_ada_task_info): Don't try to fetch thread id if task is not
1863 alive.
1864
987012b8
CB
18652019-11-22 Christian Biesinger <cbiesinger@google.com>
1866
1867 * ada-exp.y: Update.
1868 * ada-lang.c (sort_choices): Update.
1869 (ada_print_symbol_signature): Update.
1870 (resolve_subexp): Update.
1871 (ada_parse_renaming): Update.
1872 (ada_read_renaming_var_value): Update.
1873 (lesseq_defined_than): Update.
1874 (remove_extra_symbols): Update.
1875 (remove_irrelevant_renamings): Update.
1876 (ada_add_block_symbols): Update.
1877 (ada_collect_symbol_completion_matches): Update.
1878 (ada_is_renaming_symbol): Update.
1879 (aggregate_assign_from_choices): Update.
1880 (ada_evaluate_subexp): Update.
1881 (ada_has_this_exception_support): Update.
1882 (ada_is_non_standard_exception_sym): Update.
1883 (ada_add_exceptions_from_frame): Update.
1884 (ada_add_global_exceptions): Update.
1885 (ada_print_subexp): Update.
1886 * ax-gdb.c (gen_var_ref): Update.
1887 (gen_maybe_namespace_elt): Update.
1888 (gen_expr_for_cast): Update.
1889 (gen_expr): Update.
1890 * block.h: Update.
1891 * blockframe.c (find_pc_partial_function): Update.
1892 * breakpoint.c (print_breakpoint_location): Update.
1893 (update_static_tracepoint): Update.
1894 * btrace.c (ftrace_print_function_name): Update.
1895 (ftrace_function_switched): Update.
1896 * buildsym.c (find_symbol_in_list): Update.
1897 * c-exp.y: Update.
1898 * c-typeprint.c (c_print_typedef): Update.
1899 (c_type_print_template_args): Update.
1900 * cli/cli-cmds.c (edit_command): Update.
1901 (list_command): Update.
1902 (print_sal_location): Update.
1903 * coffread.c (patch_opaque_types): Update.
1904 (process_coff_symbol): Update.
1905 (coff_read_enum_type): Update.
1906 * compile/compile-c-symbols.c (c_symbol_substitution_name): Update.
1907 (convert_one_symbol): Update.
1908 (hash_symname): Update.
1909 (eq_symname): Update.
1910 * compile/compile-cplus-symbols.c (convert_one_symbol): Update.
1911 * compile/compile-cplus-types.c (debug_print_scope): Update.
1912 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
1913 * compile/compile-object-load.c (get_out_value_type): Update.
1914 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
1915 (search_symbol_list): Update.
1916 (cp_lookup_symbol_imports_or_template): Update.
1917 * cp-support.c (overload_list_add_symbol): Update.
1918 * ctfread.c (psymtab_to_symtab): Update.
1919 * dbxread.c (cp_set_block_scope): Update.
1920 * dictionary.c (iter_match_first_hashed): Update.
1921 (iter_match_next_hashed): Update.
1922 (insert_symbol_hashed): Update.
1923 (iter_match_next_linear): Update.
1924 * dictionary.h: Update.
1925 * dwarf2loc.c (func_get_frame_base_dwarf_block): Update.
1926 (locexpr_describe_location_piece): Update.
1927 (locexpr_describe_location_1): Update.
1928 (locexpr_generate_c_location): Update.
1929 (loclist_describe_location): Update.
1930 (loclist_generate_c_location): Update.
1931 * dwarf2read.c (dw2_debug_names_lookup_symbol): Update.
1932 (read_func_scope): Update.
1933 (process_enumeration_scope): Update.
1934 (new_symbol): Update.
1935 (dwarf2_const_value): Update.
1936 (dwarf2_symbol_mark_computed): Update.
1937 * eval.c (evaluate_funcall): Update.
1938 (evaluate_subexp_standard): Update.
1939 * expprint.c (print_subexp_standard): Update.
1940 (dump_subexp_body_standard): Update.
1941 * f-valprint.c (info_common_command_for_block): Update.
1942 * findvar.c (get_hosting_frame): Update.
1943 (default_read_var_value): Update.
1944 * go-lang.c (go_symbol_package_name): Update.
1945 * guile/scm-block.c (bkscm_print_block_smob): Update.
1946 * guile/scm-symbol.c (syscm_print_symbol_smob): Update.
1947 (gdbscm_symbol_name): Update.
1948 (gdbscm_symbol_linkage_name): Update.
1949 (gdbscm_symbol_print_name): Update.
1950 * infcall.c (get_function_name): Update.
1951 * infcmd.c (jump_command): Update.
1952 (finish_command): Update.
1953 * infrun.c (insert_exception_resume_breakpoint): Update.
1954 * linespec.c (canonicalize_linespec): Update.
1955 (create_sals_line_offset): Update.
1956 (convert_linespec_to_sals): Update.
1957 (complete_label): Update.
1958 (find_label_symbols_in_block): Update.
1959 * m2-typeprint.c (m2_print_typedef): Update.
1960 * mdebugread.c (mdebug_reg_to_regnum): Update.
1961 (parse_symbol): Update.
1962 (mylookup_symbol): Update.
1963 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
1964 (list_args_or_locals): Update.
1965 * objc-lang.c (compare_selectors): Update.
1966 (info_selectors_command): Update.
1967 (compare_classes): Update.
1968 (info_classes_command): Update.
1969 (find_imps): Update.
1970 * p-typeprint.c (pascal_print_typedef): Update.
1971 * printcmd.c (build_address_symbolic): Update.
1972 (info_address_command): Update.
1973 (print_variable_and_value): Update.
1974 * python/py-framefilter.c (extract_sym): Update.
1975 (py_print_single_arg): Update.
1976 * python/py-symbol.c (sympy_str): Update.
1977 (sympy_get_name): Update.
1978 (sympy_get_linkage_name): Update.
1979 * python/python.c (gdbpy_rbreak): Update.
1980 * record-btrace.c (btrace_get_bfun_name): Update.
1981 (btrace_call_history): Update.
1982 * rust-lang.c (rust_print_typedef): Update.
1983 * solib-frv.c (frv_fdpic_find_canonical_descriptor): Update.
1984 * stabsread.c (stab_reg_to_regnum): Update.
1985 (define_symbol): Update.
1986 (read_enum_type): Update.
1987 (common_block_end): Update.
1988 (cleanup_undefined_types_1): Update.
1989 (scan_file_globals): Update.
1990 * stack.c (print_frame_arg): Update.
1991 (print_frame_args): Update.
1992 (find_frame_funname): Update.
1993 (info_frame_command_core): Update.
1994 (iterate_over_block_locals): Update.
1995 (print_block_frame_labels): Update.
1996 (do_print_variable_and_value): Update.
1997 (iterate_over_block_arg_vars): Update.
1998 (return_command): Update.
1999 * symmisc.c (dump_symtab_1): Update.
2000 (print_symbol): Update.
2001 * symtab.c (eq_symbol_entry): Update.
2002 (symbol_cache_dump): Update.
2003 (lookup_language_this): Update.
2004 (find_pc_sect_line): Update.
2005 (skip_prologue_sal): Update.
2006 (symbol_search::compare_search_syms): Update.
2007 (treg_matches_sym_type_name): Update.
2008 (search_symbols): Update.
2009 (print_symbol_info): Update.
2010 (rbreak_command): Update.
2011 (completion_list_add_symbol): Update.
2012 (find_gnu_ifunc): Update.
2013 (get_symbol_address): Update.
2014 (search_module_symbols): Update.
2015 (info_module_subcommand): Update.
2016 * symtab.h (SYMBOL_NATURAL_NAME): Remove.
2017 (SYMBOL_LINKAGE_NAME): Remove.
2018 (SYMBOL_DEMANGLED_NAME): Remove.
2019 (SYMBOL_PRINT_NAME): Remove.
2020 (SYMBOL_SEARCH_NAME): Remove.
2021 * tracepoint.c (set_traceframe_context): Update.
2022 (validate_actionline): Update.
2023 (collection_list::collect_symbol): Update.
2024 (encode_actions_1): Update.
2025 (info_scope_command): Update.
2026 (print_one_static_tracepoint_marker): Update.
2027 * typeprint.c (typedef_hash_table::add_template_parameters): Update.
2028 * valops.c (address_of_variable): Update.
2029 (find_overload_match): Update.
2030 (find_oload_champ): Update.
2031
c9d95fa3
CB
20322019-11-22 Christian Biesinger <cbiesinger@google.com>
2033
2034 * ada-lang.c (ada_lookup_simple_minsym): Update.
2035 (ada_collect_symbol_completion_matches): Update.
2036 * ada-tasks.c (read_atcb): Update.
2037 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
2038 (amd64_windows_skip_trampoline_code): Update.
2039 * arm-tdep.c (skip_prologue_function): Update.
2040 (arm_skip_stack_protector): Update.
2041 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
2042 (arm_wince_skip_main_prologue): Update.
2043 * ax-gdb.c (gen_expr): Update.
2044 * block.c (call_site_for_pc): Update.
2045 * blockframe.c (find_pc_partial_function): Update.
2046 * breakpoint.c (set_breakpoint_location_function): Update.
2047 * btrace.c (ftrace_print_function_name): Update.
2048 (ftrace_function_switched): Update.
2049 * c-valprint.c (print_unpacked_pointer): Update.
2050 * coffread.c (coff_symfile_read): Update.
2051 * compile/compile-c-symbols.c (convert_symbol_bmsym): Update.
2052 * compile/compile-cplus-symbols.c (convert_symbol_bmsym): Update.
2053 * dwarf-index-write.c (write_psymbols): Update.
2054 * dwarf2loc.c (call_site_to_target_addr): Update.
2055 (func_verify_no_selftailcall): Update.
2056 (tailcall_dump): Update.
2057 (call_site_find_chain_1): Update.
2058 (dwarf_expr_reg_to_entry_parameter): Update.
2059 * elfread.c (elf_gnu_ifunc_record_cache): Update.
2060 * eval.c (evaluate_funcall): Update.
2061 (evaluate_subexp_standard): Update.
2062 (evaluate_subexp_for_sizeof): Update.
2063 * expprint.c (print_subexp_standard): Update.
2064 (dump_subexp_body_standard): Update.
2065 * frame.c (get_prev_frame_always_1): Update.
2066 * frv-tdep.c (frv_skip_main_prologue): Update.
2067 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
2068 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
2069 (gnuv3_get_typename_from_type_info): Update.
2070 (gnuv3_skip_trampoline): Update.
2071 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
2072 * i386-tdep.c (i386_skip_main_prologue): Update.
2073 (i386_pe_skip_trampoline_code): Update.
2074 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
2075 * infcall.c (get_function_name): Update.
2076 * linespec.c (minsym_found): Update.
2077 * linux-fork.c (info_checkpoints_command): Update.
2078 * m32c-tdep.c (m32c_m16c_address_to_pointer): Update.
2079 (m32c_m16c_pointer_to_address): Update.
2080 * maint.c (maintenance_translate_address): Update.
2081 * minsyms.c (add_minsym_to_hash_table): Update.
2082 (add_minsym_to_demangled_hash_table): Update.
2083 (lookup_minimal_symbol_mangled): Update.
2084 (lookup_minimal_symbol_demangled): Update.
2085 (lookup_minimal_symbol_linkage): Update.
2086 (lookup_minimal_symbol_text): Update.
2087 (lookup_minimal_symbol_by_pc_name): Update.
2088 (minimal_symbol_is_less_than): Update.
2089 (compact_minimal_symbols): Update.
2090 (build_minimal_symbol_hash_tables): Update.
2091 (find_solib_trampoline_target): Update.
2092 * mips-tdep.c (mips_stub_frame_sniffer): Update.
2093 (mips_skip_pic_trampoline_code): Update.
2094 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
2095 * objc-lang.c (info_selectors_command): Update.
2096 (info_classes_command): Update.
2097 (find_methods): Update.
2098 (find_imps): Update.
2099 * p-valprint.c (pascal_val_print): Update.
2100 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Update.
2101 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
2102 * printcmd.c (build_address_symbolic): Update.
2103 (info_symbol_command): Update.
2104 * psymtab.c (psymbol_name_matches): Update.
2105 (match_partial_symbol): Update.
2106 (lookup_partial_symbol): Update.
2107 (print_partial_symbols): Update.
2108 (sort_pst_symbols): Update.
2109 (maintenance_check_psymtabs): Update.
2110 * python/py-framefilter.c (py_print_frame): Update.
2111 * python/python.c (gdbpy_rbreak): Update.
2112 * record-btrace.c (btrace_get_bfun_name): Update.
2113 (btrace_call_history): Update.
2114 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
2115 (rs6000_skip_trampoline_code): Update.
2116 * sol-thread.c (info_cb): Update.
2117 * stabsread.c (scan_file_globals): Update.
2118 * stack.c (find_frame_funname): Update.
2119 (info_frame_command_core): Update.
2120 * symmisc.c (dump_msymbols): Update.
2121 * symtab.c (symbol_natural_name): Rename to..,
2122 (general_symbol_info::natural_name): ...this.
2123 (symbol_demangled_name): Rename to...
2124 (general_symbol_info::demangled_name): ...this.
2125 (symbol_search_name): Rename to...
2126 (general_symbol_info::search_name): ...this.
2127 (symbol_matches_search_name): Update.
2128 (find_pc_sect_line): Update.
2129 (skip_prologue_sal): Update.
2130 (search_symbols): Update.
2131 (print_msymbol_info): Update.
2132 (rbreak_command): Update.
2133 (completion_list_add_msymbol): Update.
2134 (completion_list_objc_symbol): Update.
2135 (get_msymbol_address): Update.
2136 * symtab.h (struct general_symbol_info): Add member functions
2137 natural_name (), linkage_name (), print_name (), demangled_name (),
2138 and search_name ().
2139 (SYMBOL_NATURAL_NAME): Update.
2140 (symbol_natural_name): Move to a member function on general_symbol_info.
2141 (SYMBOL_DEMANGLED_NAME): Update.
2142 (symbol_demangled_name): Move to a member function on
2143 general_symbol_info.
2144 (SYMBOL_SEARCH_NAME): Update.
2145 (symbol_search_name): Move to a member function on general_symbol_info.
2146 (MSYMBOL_NATURAL_NAME): Remove.
2147 (MSYMBOL_LINKAGE_NAME): Remove.
2148 (MSYMBOL_PRINT_NAME): Remove.
2149 (MSYMBOL_DEMANGLED_NAME): Remove.
2150 (MSYMBOL_SEARCH_NAME): Remove.
2151 * x86-tdep.c (x86_in_indirect_branch_thunk): Update.
2152
f8bab2d6
CB
21532019-11-22 Christian Biesinger <cbiesinger@google.com>
2154
2155 * symtab.c (create_demangled_names_hash): Use per_bfd->
2156 minimal_symbol_count for computing the initial size, if greater
2157 than our default size.
2158
85e7588d
TV
21592019-11-22 Tom de Vries <tdevries@suse.de>
2160
2161 * contrib/words.sh: Improve words extraction.
2162
f6180073
TV
21632019-11-22 Tom de Vries <tdevries@suse.de>
2164
2165 * contrib/words.sh: Combine sed invocations.
2166
f10ffa41
CB
21672019-11-21 Christian Biesinger <cbiesinger@google.com>
2168
2169 * Makefile.in: Update.
2170 * demangle.c: Rename to...
2171 * gdb-demangle.c: ..this.
2172 (is_cplus_marker): Change return type to bool.
2173 (_initialize_demangler): Rename to...
2174 (_initialize_gdb_demangle): ...this.
2175 * gdb-demangle.h (is_cplus_marker): Change return type to bool.
2176 * symtab.h (demangle): Remove declaration; instead include
2177 gdb-demangle.h.
2178
6ba18521
TT
21792019-11-21 Tom Tromey <tromey@adacore.com>
2180
2181 * gdbsupport/format.c (format_pieces): Parse %I64d.
2182 * unittests/format_pieces-selftests.c (test_windows_formats): New
2183 function.
2184 (run_tests): Call it.
2185
34877895
PJ
21862019-11-21 Peeter Joot <peeter.joot@lzlabs.com>
2187
2188 Byte reverse display of variables with DW_END_big, DW_END_little
2189 (DW_AT_endianity) dwarf attributes if different than the native
2190 byte order.
2191 * ada-lang.c (ada_value_binop):
2192 Use type_byte_order instead of gdbarch_byte_order.
2193 * ada-valprint.c (printstr):
2194 (ada_val_print_string):
2195 * ada-lang.c (value_pointer):
2196 (ada_value_binop):
2197 Use type_byte_order instead of gdbarch_byte_order.
2198 * c-lang.c (c_get_string):
2199 Use type_byte_order instead of gdbarch_byte_order.
2200 * c-valprint.c (c_val_print_array):
2201 Use type_byte_order instead of gdbarch_byte_order.
2202 * cp-valprint.c (cp_print_class_member):
2203 Use type_byte_order instead of gdbarch_byte_order.
2204 * dwarf2loc.c (rw_pieced_value):
2205 Use type_byte_order instead of gdbarch_byte_order.
2206 * dwarf2read.c (read_base_type): Handle DW_END_big,
2207 DW_END_little
2208 * f-lang.c (f_get_encoding):
2209 Use type_byte_order instead of gdbarch_byte_order.
2210 * findvar.c (default_read_var_value):
2211 Use type_byte_order instead of gdbarch_byte_order.
2212 * gdbtypes.c (check_types_equal):
2213 Require matching TYPE_ENDIANITY_NOT_DEFAULT if set.
2214 (recursive_dump_type): Print TYPE_ENDIANITY_BIG,
2215 and TYPE_ENDIANITY_LITTLE if set.
2216 (type_byte_order): new function.
2217 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): New macro.
2218 (struct main_type) <flag_endianity_not_default>:
2219 New field.
2220 (type_byte_order): New function.
2221 * infcmd.c (default_print_one_register_info):
2222 Use type_byte_order instead of gdbarch_byte_order.
2223 * p-lang.c (pascal_printstr):
2224 Use type_byte_order instead of gdbarch_byte_order.
2225 * p-valprint.c (pascal_val_print):
2226 Use type_byte_order instead of gdbarch_byte_order.
2227 * printcmd.c (print_scalar_formatted):
2228 Use type_byte_order instead of gdbarch_byte_order.
2229 * solib-darwin.c (darwin_current_sos):
2230 Use type_byte_order instead of gdbarch_byte_order.
2231 * solib-svr4.c (solib_svr4_r_ldsomap):
2232 Use type_byte_order instead of gdbarch_byte_order.
2233 * stap-probe.c (stap_modify_semaphore):
2234 Use type_byte_order instead of gdbarch_byte_order.
2235 * target-float.c (target_float_same_format_p):
2236 Use type_byte_order instead of gdbarch_byte_order.
2237 * valarith.c (scalar_binop):
2238 (value_bit_index):
2239 Use type_byte_order instead of gdbarch_byte_order.
2240 * valops.c (value_cast):
2241 Use type_byte_order instead of gdbarch_byte_order.
2242 * valprint.c (generic_emit_char):
2243 (generic_printstr):
2244 (val_print_string):
2245 Use type_byte_order instead of gdbarch_byte_order.
2246 * value.c (unpack_long):
2247 (unpack_bits_as_long):
2248 (unpack_value_bitfield):
2249 (modify_field):
2250 (pack_long):
2251 (pack_unsigned_long):
2252 Use type_byte_order instead of gdbarch_byte_order.
2253 * findvar.c (unsigned_pointer_to_address):
2254 (signed_pointer_to_address):
2255 (unsigned_address_to_pointer):
2256 (address_to_signed_pointer):
2257 (default_read_var_value):
2258 (default_value_from_register):
2259 Use type_byte_order instead of gdbarch_byte_order.
2260 * gnu-v3-abi.c (gnuv3_make_method_ptr):
2261 Use type_byte_order instead of gdbarch_byte_order.
2262 * riscv-tdep.c (riscv_print_one_register_info):
2263 Use type_byte_order instead of gdbarch_byte_order.
2264
87fb00ea
SM
22652019-11-21 Simon Marchi <simon.marchi@polymtl.ca>
2266
2267 * top.c (current_ui_gdb_stdout_ptr): Spell out by hand.
2268 (current_ui_gdb_stdin_ptr): Likewise.
2269 (current_ui_gdb_stderr_ptr): Likewise.
2270 (current_ui_gdb_stdlog_ptr): Likewise.
2271 (current_ui_current_uiout_ptr): Likewise.
2272 (gen_ret_current_ui_field_ptr): Remove.
2273
65d1cd5f
TV
22742019-11-21 Tom de Vries <tdevries@suse.de>
2275
2276 PR gdb/24956
2277 * cli/cli-script.c (execute_control_command): Only switch to
2278 INTERP_CONSOLE's ui_out when INTERP_MI is active.
2279
9f6ad286
TT
22802019-11-19 Tom Tromey <tom@tromey.com>
2281
2282 * tui/tui-win.c (tui_partial_win_by_name): Move from tui-data.c.
2283 Now static. Change type of "name".
2284 (tui_set_win_height_command): Don't copy "arg".
2285 * tui/tui-data.h (tui_partial_win_by_name): Don't declare.
2286 * tui/tui-data.c (tui_partial_win_by_name): Move to tui-win.c.
2287
435d3d88
AT
22882019-11-19 Ali Tamur <tamur@google.com>
2289
2290 * dwarf2read.c (dw2_get_file_names_reader): Replace "if (attr)" with
2291 "if (attr != nullptr)".
2292 (dwarf2_find_base_address): Likewise.
2293 (dwarf2_build_include_psymtabs): Likewise.
2294 (read_cutu_die_from_dwo): Likewise.
2295 (read_func_scope): Likewise.
2296 (read_call_site_scope): Likewise.
2297 (dwarf2_get_pc_bounds): Likewise.
2298 (dwarf2_record_block_ranges): Likewise.
2299 (dwarf2_add_field): Likewise.
2300 (dwarf2_add_member_fn): Likewise.
2301 (read_structure_type): Likewise.
2302 (read_enumeration_type): Likewise.
2303 (read_array_type): Likewise.
2304 (read_array_order): Likewise.
2305 (read_set_type): Likewise.
2306 (read_common_block): Likewise.
2307 (read_tag_reference_type): Likewise.
2308 (read_tag_string_type): Likewise.
2309 (read_subroutine_type): Likewise.
2310 (read_base_type): Likewise.
2311 (read_subrange_type): Likewise.
2312 (new_symbol): Likewise.
2313 (prepare_one_comp_unit): Likewise.
2314
c9739b6a
TT
23152019-11-19 Tom Tromey <tromey@adacore.com>
2316
2317 * windows-nat.c (windows_nat_target::attach): Include GetLastError
2318 result in error when DebugActiveProcess fails.
2319
494409bb
SDJ
23202019-11-18 Sergio Durigan Junior <sergiodj@redhat.com>
2321 Pedro Alves <palves@redhat.com>
2322
2323 https://bugzilla.redhat.com/show_bug.cgi?id=1765117
2324 * target.c (target_stack::push): Call 'unpush' if there's a
2325 target on top of the stack.
2326
2e953aca
PW
23272019-11-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2328
2329 * python/py-block.c (blpy_dealloc): Call tp_free.
2330 (blpy_block_syms_dealloc): Likewise.
2331 * python/py-finishbreakpoint.c (bpfinishpy_dealloc): Likewise.
2332 * python/py-inferior.c (infpy_dealloc): Likewise.
2333 * python/py-lazy-string.c (stpy_dealloc): Likewise.
2334 * python/py-linetable.c (ltpy_iterator_dealloc): Likewise.
2335 * python/py-symbol.c (sympy_dealloc): Likewise.
2336 * python/py-symtab.c (stpy_dealloc): Likewise.
2337 * python/py-type.c (typy_iterator_dealloc): Likewise.
2338
6edc43ec
CB
23392019-11-18 Christian Biesinger <cbiesinger@google.com>
2340
2341 * symtab.h (struct symbol) <owner>: Initialize explicitly in the
2342 constructor instead of using a class initializer.
2343
cd850b40
CB
23442019-11-15 Christian Biesinger <cbiesinger@google.com>
2345
2346 * Makefile.in: Replace {posix,mingw}-strerror.c with safe-strerror.c.
2347 * configure: Regenerate.
2348 * configure.ac: Don't source common.host.
2349 * gdbsupport/common.host: Remove.
2350 * gdbsupport/mingw-strerror.c: Remove.
2351 * gdbsupport/posix-strerror.c: Rename to...
2352 * gdbsupport/safe-strerror.c: ...this.
2353
53fea9c7
CB
23542019-11-15 Christian Biesinger <cbiesinger@google.com>
2355
2356 * maint.c (scoped_command_stats::print_time): Use localtime_r
2357 instead of localtime (provided through gnulib if necessary).
2358 * nat/linux-osdata.c (time_from_time_t): Use ctime_r instead
2359 of ctime.
2360
f8e27d88
CB
23612019-11-15 Christian Biesinger <cbiesinger@google.com>
2362
2363 * gdbsupport/common-defs.h: Include time.h before pathmax.h to
2364 avoid compile errors.
2365
5abebf3c
CB
23662019-11-15 Christian Biesinger <cbiesinger@google.com>
2367
2368 * config.in: Regenerate.
2369 * configure: Regenerate.
2370 * gdbsupport/common.m4: No longer check for strerror_r.
2371 * gdbsupport/posix-strerror.c (safe_strerror): Always call the
2372 POSIX version of strerror_r, now that gnulib provides it if
2373 necessary.
2374
9a351667
CB
23752019-11-14 Christian Biesinger <cbiesinger@google.com>
2376
2377 * README (`configure' options): Update.
2378
55708e99
TT
23792019-11-14 Tom Tromey <tromey@adacore.com>
2380
2381 * eval.c (evaluate_subexp_standard) <BINOP_ASSIGN>: Do not pass an
2382 expected type for the RHS if the LHS is a convenience variable.
2383
4b09bb2e
SM
23842019-11-14 Simon Marchi <simon.marchi@polymtl.ca>
2385
2386 * unittests/vec-utils-selftests.c (unordered_remove_tests::obj):
2387 Provide explicit default and copy constructor.
2388
bd454f8b
PW
23892019-11-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2390
2391 * python/py-finishbreakpoint.c (gdbpy_breakpoint_created):
2392 only call Py_INCREF (newbp) in the bppy_pending_object case.
2393
d1aa3cf0
TT
23942019-11-13 Tom Tromey <tromey@adacore.com>
2395
2396 PR build/25182:
2397 * psympriv.h (partial_symbol): Remove static assert.
2398 * symtab.h (general_symbol_info, symbol): Remove static assert.
2399
e06f3d6e
AB
24002019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
2401
2402 * gdbsupport/format.c (format_pieces::format_pieces): Support
2403 printf 'z' size modifier.
2404 * gdbsupport/format.h (enum argclass): Add size_t_arg.
2405 * printcmd.c (ui_printf): Handle size_t_arg.
2406 * ui-out.c (ui_out::vmessage): Likewise.
2407 * unittests/format_pieces-selftests.c (test_format_int_sizes): New
2408 function.
2409 (run_tests): Call test_format_int_sizes.
2410
468c0cbb
CB
24112019-11-12 Christian Biesinger <cbiesinger@google.com>
2412
2413 * ada-exp.y (write_ambiguous_var): Update.
2414 * buildsym.c (add_symbol_to_list): Update.
2415 * dwarf2read.c (read_variable): Update.
2416 (new_symbol): Update.
2417 * jit.c (finalize_symtab): Update.
2418 * language.c (language_alloc_type_symbol): Update.
2419 * symtab.c (fixup_symbol_section): Update.
2420 (initialize_objfile_symbol_1): Move code to...
2421 (initialize_objfile_symbol): ...here. Remove now-unnecessary memset.
2422 (allocate_symbol): Update.
2423 (allocate_template_symbol): Update.
2424 (get_symbol_address): Update.
2425 * symtab.h (struct symbol): Inherit from general_symbol_info instead
2426 of having as a field, and add a constructor.
2427 (SYMBOL_VALUE): Update.
2428 (SYMBOL_VALUE_ADDRESS): Update.
2429 (SET_SYMBOL_VALUE_ADDRESS): Update.
2430 (SYMBOL_VALUE_BYTES): Update.
2431 (SYMBOL_VALUE_COMMON_BLOCK): Update.
2432 (SYMBOL_BLOCK_VALUE): Update.
2433 (SYMBOL_VALUE_CHAIN): Update.
2434 (SYMBOL_LANGUAGE): Update.
2435 (SYMBOL_SECTION): Update.
2436 (SYMBOL_OBJ_SECTION): Update.
2437 (SYMBOL_SET_LANGUAGE): Update.
2438 (SYMBOL_SET_LINKAGE_NAME): Update.
2439 (SYMBOL_SET_NAMES): Update.
2440 (SYMBOL_NATURAL_NAME): Update.
2441 (SYMBOL_LINKAGE_NAME): Update.
2442 (SYMBOL_DEMANGLED_NAME): Update.
2443 (SYMBOL_SEARCH_NAME): Update.
2444 (SYMBOL_MATCHES_SEARCH_NAME): Update.
2445 (struct symbol): Update.
2446 (struct template_symbol): Update.
2447 (struct rust_vtable_symbol): Update.
2448 * xcoffread.c (SYMBOL_DUP): Update.
2449
ed2c82c3
TT
24502019-11-12 Tom Tromey <tom@tromey.com>
2451
2452 * tui/tui-layout.c (show_layout): Set current_layout.
2453 (show_source_disasm_command, show_data)
2454 (show_source_or_disasm_and_command): Don't set current_layout.
2455
d9fcefd5
TT
24562019-11-12 Tom Tromey <tom@tromey.com>
2457
2458 * tui/tui-layout.c (_initialize_tui_layout): Move to end.
2459
45e42163
TT
24602019-11-12 Tom Tromey <tom@tromey.com>
2461
2462 * tui/tui-win.c (resize_message): New global.
2463 (show_tui_resize_message): New function.
2464 (tui_async_resize_screen): Print message if requested.
2465 (_initialize_tui_win): Add tui-resize-message setting.
2466 * NEWS: Add entry for new commands.
2467
c86d74cc
TT
24682019-11-11 Tom Tromey <tom@tromey.com>
2469
2470 * tui/tui.c (tui_initialize_readline): Add new bindable readline
2471 functions.
2472
7b7b9424
CB
24732019-11-11 Christian Biesinger <cbiesinger@google.com>
2474
2475 * nat/linux-osdata.c (user_from_uid): Use getpwuid_r.
2476
086baaf1
AB
24772019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
2478
2479 * python/py-symbol.c (gdbpy_lookup_static_symbols): New
2480 function.
2481 * python/python-internal.h (gdbpy_lookup_static_symbols):
2482 Declare new function.
2483 * python/python.c (python_GdbMethods): Add
2484 gdb.lookup_static_symbols method.
2485 * NEWS: Mention gdb.lookup_static_symbols.
2486
09ff83af
AB
24872019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
2488
2489 * python/py-symbol.c (gdbpy_lookup_static_symbol): Lookup in
2490 static block of current object file first. Also fix typo in
2491 header comment.
2492
eb2dd8df
AB
24932019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
2494
2495 * stack.c (set_last_displayed_sal): Delete.
2496 (last_displayed_sal_valid): Delete.
2497 (last_displayed_pspace): Delete.
2498 (last_displayed_addr): Delete.
2499 (last_displayed_symtab): Delete.
2500 (last_displayed_line): Delete.
2501 (class last_displayed_symtab_info_type): New.
2502 (last_displayed_symtab_info): New static global variable.
2503 (print_frame_info): Call methods on last_displayed_symtab_info.
2504 (clear_last_displayed_sal): Update header comment, and make use of
2505 last_displayed_symtab_info.
2506 (last_displayed_sal_is_valid): Likewise.
2507 (get_last_displayed_pspace): Likewise.
2508 (get_last_displayed_addr): Likewise.
2509 (get_last_displayed_symtab): Likewise.
2510 (get_last_displayed_line): Likewise.
2511 (get_last_displayed_sal): Likewise.
2512 * stack.h (clear_last_displayed_sal): Update header comment.
2513 (last_displayed_sal_is_valid): Likewise.
2514 (get_last_displayed_pspace): Likewise.
2515 (get_last_displayed_addr): Likewise.
2516 (get_last_displayed_symtab): Likewise.
2517 (get_last_displayed_line): Likewise.
2518 (get_last_displayed_sal): Likewise.
2519
62137775
AB
25202019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
2521
2522 * stack.c (frame_show_address): Convert return type to bool.
2523 * stack.h (frame_show_address): Likewise, and update header
2524 comment.
2525
cf57ad6d
AB
25262019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
2527
2528 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new file to the list.
2529 * unittests/vec-utils-selftests.c: New file.
2530 * gdbsupport/gdb_vecs.h (unordered_remove): Avoid self move assign.
2531
0b026263
TT
25322019-11-10 Tom Tromey <tom@tromey.com>
2533
2534 * tui/tui-wingeneral.c (tui_unhighlight_win): Use can_box.
2535 (tui_highlight_win): Likewise.
2536 (tui_win_info::check_and_display_highlight_if_needed): Likewise.
2537 * tui/tui-data.h (struct tui_win_info) <can_highlight>: Remove.
2538 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
2539 Don't set can_highlight.
2540
b049ce2d
TT
25412019-11-10 Tom Tromey <tom@tromey.com>
2542
2543 * cli/cli-style.h (class cli_style_option) <cli_style_option>:
2544 Remove unused declaration.
2545
992a7040
TT
25462019-11-08 Tom Tromey <tromey@adacore.com>
2547
2548 * top.c (read_command_file): Update.
2549 (command_line_input): Make return type const.
2550 * python/py-gdb-readline.c: Update.
2551 * linespec.c (decode_line_2): Update.
2552 * defs.h (command_line_input): Make return type const.
2553 * cli/cli-script.c (read_next_line): Make return type const.
2554 * ada-lang.c (get_selections): Update.
2555
ca3a04f6
CB
25562019-11-06 Christian Biesinger <cbiesinger@google.com>
2557
2558 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
2559 * mi/mi-main.c (output_cores): Likewise.
2560 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
2561 (linux_xfer_osdata_modules): Likewise.
2562 * remote.c (register_remote_support_xml): Likewise.
2563 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
2564 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
2565
e0eac551
TT
25662019-11-06 Tom Tromey <tom@tromey.com>
2567
2568 * tui/tui-interp.c: Don't include readline.h.
2569 * tui/tui-hooks.c: Don't include readline.h.
2570 * symmisc.c: Include tilde.h, not readline.h.
2571 * symfile.c: Include tilde.h, not readline.h.
2572 * source.c: Include tilde.h, not readline.h.
2573 * solib.c: Include tilde.h, not readline.h.
2574 * psymtab.c: Include tilde.h, not readline.h.
2575 * exec.c: Include tilde.h, not readline.h.
2576 * corelow.c: Include tilde.h, not readline.h.
2577 * cli/cli-dump.c: Include tilde.h, not readline.h.
2578 * cli/cli-cmds.c: Don't include readline.h.
2579
825165c5
TT
25802019-11-05 Tom Tromey <tom@tromey.com>
2581
2582 * tui/tui-disasm.c (struct tui_asm_line) <addr_size>: New member.
2583 (tui_disassemble): Set addr_size.
2584 (tui_disasm_window::set_contents): Use addr_size.
2585
91ae903f
TT
25862019-11-05 Tom Tromey <tom@tromey.com>
2587
2588 * rust-lang.c (rust_language_defn): Update.
2589 * python/py-value.c (valpy_string): Call c_get_string.
2590 * p-lang.c (pascal_language_defn): Update.
2591 * opencl-lang.c (opencl_language_defn): Update.
2592 * objc-lang.c (objc_language_defn): Update.
2593 * m2-lang.c (m2_language_defn): Update.
2594 * language.c (unknown_language_defn, auto_language_defn): Update.
2595 (default_get_string): Remove.
2596 * guile/scm-value.c (gdbscm_value_to_string): Use c_get_string.
2597 * go-lang.c (go_language_defn): Update.
2598 * f-lang.c (f_language_defn): Update.
2599 * d-lang.c (d_language_defn): Update.
2600 * c-lang.c (c_language_defn, cplus_language_defn)
2601 (asm_language_defn, minimal_language_defn): Update.
2602 * ada-lang.c (ada_language_defn): Update.
2603 * language.h (struct language_defn) <la_get_string>: Remove.
2604 (LA_GET_STRING): Remove.
2605 (default_get_string): Don't declare.
2606
1df2f9ef
TT
26072019-11-05 Tom Tromey <tom@tromey.com>
2608
2609 * tui/tui-source.h (struct tui_source_window): Inline
2610 constructor. Remove destructor.
2611 <style_changed, m_observable>: Move to superclass.
2612 * tui/tui-winsource.h (tui_copy_source_line): Declare.
2613 (struct tui_source_window_base): Move private members to end.
2614 <style_changed, m_observable>: Move from tui_source_window.
2615 * tui/tui-winsource.c (tui_copy_source_line): Move from
2616 tui-source.c. Rename from copy_source_line. Add special handling
2617 for negative line number.
2618 (tui_source_window_base::style_changed): Move from
2619 tui_source_window.
2620 (tui_source_window_base): Register observer.
2621 (~tui_source_window_base): New.
2622 * tui/tui-source.c (copy_source_line): Move to tui-winsource.c;
2623 rename.
2624 (tui_source_window::set_contents): Use tui_copy_source_line.
2625 (tui_source_window::tui_source_window): Move to tui-source.h.
2626 (tui_source_window::~tui_source_window): Remove.
2627 (tui_source_window::style_changed): Move to superclass.
2628 * tui/tui-disasm.c (tui_disassemble): Create string file with
2629 styling, when possible. Add "addr_size" parameter.
2630 (tui_disasm_window::set_contents): Use tui_copy_source_line.
2631 Don't compute maximum size.
2632 (len_without_escapes): New function
2633
5d051055
TT
26342019-11-05 Tom Tromey <tom@tromey.com>
2635
2636 * tui/tui-winsource.h (struct tui_source_element) <line>: Now a
2637 std::string.
2638 * tui/tui-winsource.c (tui_show_source_line): Update.
2639 * tui/tui-source.c (tui_source_window::set_contents): Update.
2640 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
2641
ade7beea
CB
26422019-11-05 Christian Biesinger <cbiesinger@google.com>
2643
2644 * symtab.h (gdb_static_assert): Put && operator at the beginning
2645 of the line instead of the end.
2646
3573abe1
CB
26472019-11-04 Christian Biesinger <cbiesinger@google.com>
2648
2649 * psympriv.h: Add static_asserts for sizeof (general_symbol_info)
2650 and sizeof (symbol).
2651 * symtab.h: Add a static_assert for sizeof (partial_symbol).
2652
dae8b3eb
RO
26532019-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2654
2655 * NEWS (Changes since GDB 8.3): Document Solaris 10 removal.
2656 * configure.host: Mark *-*-solaris2.10* obsolete.
2657 * configure.tgt: Mark Solaris < 11 obsolete.
2658 * MAINTAINERS (Target Instruction Set Architectures) <sparc>:
2659 Update target triplet.
2660
5df96a4e
TT
26612019-11-01 Tom Tromey <tromey@adacore.com>
2662
2663 * utils.c (print_sys_errmsg): Simplify.
2664
b7481649
TT
26652019-11-01 Tom Tromey <tromey@adacore.com>
2666
2667 * gdbsupport/mingw-strerror.c (safe_strerror): Constify result.
2668
e48f6033
CB
26692019-11-01 Christian Biesinger <cbiesinger@google.com>
2670
2671 * configure: Regenerate.
2672 * configure.ac: Remove check for strerror_r.
2673 * gdbsupport/common.m4: Check for strerror_r.
2674
bd5766ec
LM
26752019-11-01 Luis Machado <luis.machado@linaro.org>
2676
2677 PR gdb/25124
2678
2679 * arm-tdep.c (arm_per_objfile): Rename to ...
2680 (arm_per_bfd): ... this.
2681 (arm_objfile_data_key): Rename to ...
2682 (arm_bfd_data_key): ... this.
2683 (arm_find_mapping_symbol): Adjust access to new bfd_key-based
2684 data.
2685 (arm_record_special_symbol): Likewise.
2686
e1709896
AB
26872019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
2688
2689 * ada-typeprint.c (ada_print_typedef): Don't print newline at the
2690 end.
2691 * c-typeprint.c (c_print_typedef): Likewise.
2692 * f-typeprint.c (f_print_typedef): Likewise.
2693 * m2-typeprint.c (m2_print_typedef): Likewise.
2694 * p-typeprint.c (pascal_print_typedef): Likewise.
2695 * rust-lang.c (rust_print_typedef): Likewise.
2696 * symtab.c (print_symbol_info): Print a newline after calling
2697 typedef_print.
2698
165f8965
AB
26992019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
2700
2701 * symtab.c (info_module_cmdlist): New variable.
2702 (info_module_command): New function.
2703 (search_module_symbols): New function.
2704 (info_module_subcommand): New function.
2705 (struct info_modules_var_func_options): New struct.
2706 (info_modules_var_func_options_defs): New variable.
2707 (make_info_modules_var_func_options_def_group): New function.
2708 (info_module_functions_command): New function.
2709 (info_module_variables_command): New function.
2710 (info_module_var_func_command_completer): New function.
2711 (_initialize_symtab): Register new 'info module functions' and
2712 'info module variables' commands.
2713 * symtab.h (typedef symbol_search_in_module): New typedef.
2714 (search_module_symbols): Declare new function.
2715 * NEWS: Mention new commands.
2716
59c35742
AB
27172019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
2718
2719 * dwarf2read.c (dw2_symtab_iter_next): Handle MODULE_DOMAIN.
2720 (dw2_expand_marked_cus): Handle MODULES_DOMAIN.
2721 (dw2_debug_names_iterator::next): Handle MODULE_DOMAIN and
2722 MODULES_DOMAIN.
2723 (scan_partial_symbols): Only create partial module symbols for non
2724 declarations.
2725 * psymtab.c (recursively_search_psymtabs): Handle MODULE_DOMAIN
2726 and MODULES_DOMAIN.
2727 * symtab.c (search_domain_name): Likewise.
2728 (search_symbols): Likewise.
2729 (print_symbol_info): Likewise.
2730 (symtab_symbol_info): Likewise.
2731 (info_modules_command): New function.
2732 (_initialize_symtab): Register 'info modules' command.
2733 * symtab.h (enum search_domain): Add MODULES_DOMAIN.
2734 * NEWS: Mention new 'info modules' command.
2735
aed61d02
PW
27362019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2737
2738 * NEWS: Mention $_gdb_setting, $_gdb_setting_str, $_gdb_maint_setting
2739 and $_gdb_maint_setting_str.
2740
9ad9b77d
PW
27412019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2742
2743 * cli/cli-cmds.c (setting_cmd, value_from_setting)
2744 (gdb_setting_internal_fn, gdb_maint_setting_internal_fn)
2745 (str_value_from_setting, gdb_setting_str_internal_fn)
2746 (gdb_maint_setting_str_internal_fn): New functions.
2747 (_initialize_cli_cmds): Define the new convenience functions.
2748 * gdb/cli/cli-setshow.h (get_setshow_command_value_string): Constify.
2749 * gdb/cli/cli-setshow.c (get_setshow_command_value_string): Constify.
2750
8d6efaa2
CB
27512019-10-31 Christian Biesinger <cbiesinger@google.com>
2752
2753 * agent.c (set_can_use_agent): When the setting is turned on,
2754 look up agent symbols if we don't have them yet.
2755 (agent_new_objfile): Don't look up agent symbols when the agent
2756 setting is off.
2757
33cb1647
CB
27582019-10-31 Christian Biesinger <cbiesinger@google.com>
2759
2760 * config.in: Regenerate.
2761
b231e86a
CB
27622019-10-31 Christian Biesinger <cbiesinger@google.com>
2763
2764 * configure: Regenerate.
2765 * configure.ac: Check for strerror_r.
2766 * gdbsupport/common-utils.h (safe_strerror): Change return value
2767 to const char * and document that this function is now threadsafe.
2768 * gdbsupport/posix-strerror.c (safe_strerror): Make buf
2769 thread_local and call strerror_r, if available.
2770 * utils.c (perror_string): Update.
2771 (print_sys_errmsg): Update.
2772
a2726d4f
LM
27732019-10-31 Luis Machado <luis.machado@linaro.org>
2774
2775 * arm-tdep.c (arm_exidx_data_key): Use bfd_key instead of
2776 objfile_key.
2777 (arm_exidx_new_objfile): Adjust to use objfile->obfd instead of
2778 objfile to fetch per-bfd data.
2779 (arm_find_exidx_entry): Likewise.
2780
75cafaa6
CB
27812019-10-31 Christian Biesinger <cbiesinger@google.com>
2782
2783 * gdbsupport/agent.c (debug_agent): Change type to bool.
2784 (use_agent): Likewise.
2785 (all_agent_symbols_look_up): Likewise.
2786 (agent_loaded_p): Change return value to bool.
2787 (agent_look_up_symbols): Update.
2788 (agent_capability_check): Change return value to bool.
2789 * gdbsupport/agent.h (agent_loaded_p): Likewise.
2790 (debug_agent): Change type to bool.
2791 (use_agent): Likewise.
2792 (agent_capability_check): Change return value to bool.
2793
808590ec
CB
27942019-10-30 Christian Biesinger <cbiesinger@google.com>
2795
2796 * minsyms.c (clear_minimal_symbol_hash_tables): New function.
2797 (build_minimal_symbol_hash_tables): Code to clear the table moved
2798 to clear_minimal_symbol_hash_tables.
2799 (minimal_symbol_reader::install): Call clear_minimal_symbol_hash_tables
2800 when needed.
2801
f18ad8a1
SM
28022019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2803
2804 * infcmd.c: Remove includes.
2805 * infrun.c: Remove includes.
2806
de93309a
SM
28072019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2808
2809 * ada-lang.h (GROW_VECT): Move to ada-lang.c.
2810 (grow_vect): Remove declaration.
2811 (ada_type_of_array): Remove declaration.
2812 (ada_update_initial_language): Remove declaration.
2813 (ada_fold_name): Remove declaration.
2814 (ada_fill_in_ada_prototype): Remove declaration.
2815 (user_select_syms): Remove declaration.
2816 (get_selections): Remove declaration.
2817 (ada_tag_type): Remove declaration.
2818 (ada_value_tag): Remove declaration.
2819 (ada_is_others_clause): Remove declaration.
2820 (ada_in_variant): Remove declaration.
2821 (ada_value_struct_elt): Remove declaration.
2822 (ada_attribute_name): Remove declaration.
2823 (ada_system_address_type): Remove declaration.
2824 * ada-lang.c (ada_watch_location_expression): Make static.
2825 (GROW_VECT): Move here from ada-lang.h.
2826 (grow_vect): Make static.
2827 (ada_update_initial_language): Make static.
2828 (ada_fold_name): Make static.
2829 (ada_type_of_array): Make static.
2830 (encoded_ordered_before): Move up.
2831 (sort_choices): Move up.
2832 (print_signatures): Move up.
2833 (ada_print_symbol_signature): Move up.
2834 (get_selections): Move up and make static.
2835 (user_select_syms): Move up and make static.
2836 (ada_value_struct_elt): Move up and make static.
2837 (ada_tag_type): Make static.
2838 (ada_value_tag): Make static.
2839 (ada_is_others_clause): Make static.
2840 (ada_in_variant): Make static.
2841 (ada_attribute_name): Make static.
2842
cdc46a9f
SM
28432019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2844
2845 * ada-lang.c: Remove includes.
2846 * ada-typeprint.c: Remove includes.
2847 * ada-valprint.c: Remove includes.
2848
90421c56
SM
28492019-10-29 Simon Marchi <simon.marchi@efficios.com>
2850
2851 * addrmap.c: Add static assertions of type size, moved from
2852 _initialize_addrmap.
2853 (_initialize_addrmap): Remove.
2854
31edb802
CB
28552019-10-29 Christian Biesinger <cbiesinger@google.com>
2856
2857 * coffread.c (record_minimal_symbol): Update.
2858 (process_coff_symbol): Update.
2859 * dbxread.c (read_dbx_symtab): Update.
2860 * dwarf2read.c (add_partial_symbol): Update.
2861 (fixup_go_packaging): Update.
2862 (load_partial_dies): Update.
2863 (new_symbol): Update.
2864 * elfread.c (record_minimal_symbol): Change signature to use
2865 gdb::string_view instead of name+len.
2866 (elf_symtab_read): Update.
2867 (elf_rel_plt_read): Update.
2868 * mdebugread.c (parse_partial_symbols): Update.
2869 (handle_psymbol_enumerators): Update.
2870 (new_symbol): Update.
2871 * minsyms.c (minimal_symbol_reader::record_full): Change signature
2872 to use gdb::string_view instead of name+len.
2873 * minsyms.h (class minimal_symbol_reader) <record_full>: Likewise.
2874 * psympriv.h (add_psymbol_to_list): Likewise.
2875 * psymtab.c (add_psymbol_to_bcache): Likewise.
2876 (add_psymbol_to_list): Likewise.
2877 * stabsread.c (define_symbol): Update.
2878 * symtab.c (symbol_set_names): Change signature to use gdb::string_view.
2879 * symtab.h (SYMBOL_SET_NAMES): Likewise.
2880 (symbol_set_names): Likewise.
2881 * xcoffread.c (scan_xcoff_symtab): Update.
2882
0c921b21
CB
28832019-10-29 Christian Biesinger <cbiesinger@google.com>
2884
2885 * symtab.h (symbol_set_names): Document that copy_name must be
2886 set to true for non-nullterminated strings.
2887 * symtab.c (symbol_set_names): Only make a nullterminated copy of
2888 linkage_name if the entry was not found and we need to demangle.
2889
35e65c49
CB
28902019-10-29 Christian Biesinger <cbiesinger@google.com>
2891
2892 * Makefile.in (HFILES_NO_SRCDIR): Add gdb_binary_search.h.
2893 * dwarf2-frame.c (bsearch_fde_cmp): Update.
2894 (dwarf2_frame_find_fde): Replace bsearch with gdb::binary_search.
2895 * gdbsupport/gdb_binary_search.h: New file.
2896
ed2a2229
CB
28972019-10-29 Christian Biesinger <cbiesinger@google.com>
2898
2899 * NEWS: Mention new --with-system-gdbinit-dir option.
2900 * config.in: Regenerate.
2901 * configure: Regenerate.
2902 * configure.ac: Add new option --with-system-gdbinit-dir.
2903 * extension.c (get_ext_lang_of_file): Return extension_language_gdb
2904 for a ".gdb" suffix.
2905 * main.c (get_init_files): Change system_gdbinit argument to
2906 a vector and return the files in SYSTEM_GDBINIT_DIR in
2907 addition to SYSTEM_GDBINIT.
2908 (captured_main_1): Update.
2909 (print_gdb_help): Update.
2910 * top.c (print_gdb_configuration): Also print the value of
2911 SYSTEM_GDBINIT_DIR.
2912
87f34879
CB
29132019-10-28 Christian Biesinger <cbiesinger@google.com>
2914
2915 * gdbsupport/common-utils.h (startswith): Add an overloaded version
2916 that takes gdb::string_view arguments.
2917
30baf67b
TV
29182019-10-26 Tom de Vries <tdevries@suse.de>
2919
2920 * aarch64-linux-tdep.c: Fix typos in comments.
2921 * aarch64-tdep.c: Same.
2922 * ada-lang.c: Same.
2923 * amd64-nat.c: Same.
2924 * arc-tdep.c: Same.
2925 * arch/aarch64-insn.c: Same.
2926 * block.c: Same.
2927 * breakpoint.h: Same.
2928 * btrace.h: Same.
2929 * c-varobj.c: Same.
2930 * cli/cli-decode.c: Same.
2931 * cli/cli-script.c: Same.
2932 * cli/cli-utils.h: Same.
2933 * coff-pe-read.c: Same.
2934 * coffread.c: Same.
2935 * compile/compile-cplus-symbols.c: Same.
2936 * compile/compile-object-run.c: Same.
2937 * completer.c: Same.
2938 * corelow.c: Same.
2939 * cp-support.c: Same.
2940 * demangle.c: Same.
2941 * dwarf-index-write.c: Same.
2942 * dwarf2-frame.c: Same.
2943 * dwarf2-frame.h: Same.
2944 * eval.c: Same.
2945 * frame-base.h: Same.
2946 * frame.h: Same.
2947 * gdbcmd.h: Same.
2948 * gdbtypes.h: Same.
2949 * gnu-nat.c: Same.
2950 * guile/scm-objfile.c: Same.
2951 * i386-tdep.c: Same.
2952 * i386-tdep.h: Same.
2953 * infcall.c: Same.
2954 * infcall.h: Same.
2955 * linux-nat.c: Same.
2956 * m68k-tdep.c: Same.
2957 * macroexp.c: Same.
2958 * memattr.c: Same.
2959 * mi/mi-cmd-disas.c: Same.
2960 * mi/mi-getopt.h: Same.
2961 * mi/mi-main.c: Same.
2962 * minsyms.c: Same.
2963 * nat/aarch64-sve-linux-sigcontext.h: Same.
2964 * objfiles.h: Same.
2965 * ppc-linux-nat.c: Same.
2966 * ppc-linux-tdep.c: Same.
2967 * ppc-tdep.h: Same.
2968 * progspace.h: Same.
2969 * prologue-value.h: Same.
2970 * python/py-evtregistry.c: Same.
2971 * python/py-instruction.h: Same.
2972 * record-btrace.c: Same.
2973 * record-full.c: Same.
2974 * remote.c: Same.
2975 * rs6000-tdep.c: Same.
2976 * ser-tcp.c: Same.
2977 * sol-thread.c: Same.
2978 * sparc-sol2-tdep.c: Same.
2979 * sparc64-tdep.c: Same.
2980 * stabsread.c: Same.
2981 * symfile.c: Same.
2982 * symtab.h: Same.
2983 * target.c: Same.
2984 * tracepoint.c: Same.
2985 * tui/tui-data.h: Same.
2986 * tui/tui-io.c: Same.
2987 * tui/tui-win.c: Same.
2988 * tui/tui.c: Same.
2989 * unittests/rsp-low-selftests.c: Same.
2990 * user-regs.h: Same.
2991 * utils.c: Same.
2992 * utils.h: Same.
2993 * valarith.c: Same.
2994 * valops.c: Same.
2995 * valprint.c: Same.
2996 * valprint.h: Same.
2997 * value.c: Same.
2998 * value.h: Same.
2999 * varobj.c: Same.
3000 * x86-nat.h: Same.
3001 * xtensa-tdep.c: Same.
3002
1834d45f
AT
30032019-10-25 Ali Tamur <tamur@google.com>
3004
3005 * charset.c (find_charset_names): Reflect API change.
3006
5396ae17
CB
30072019-10-25 Christian Biesinger <cbiesinger@google.com>
3008
3009 * symtab.c (struct demangled_name_entry): Change demangled name
3010 to a unique_xmalloc_ptr<char>, now that we don't allocate it as
3011 part of the struct anymore.
3012 (symbol_set_names): No longer obstack allocate + copy the demangled
3013 name, just store the allocated name from bfd.
3014
93878f47
TT
30152019-10-25 Tom Tromey <tromey@adacore.com>
3016
3017 * dwarf2-frame.c (dwarf2_cie_table): Now a typedef.
3018 (bsearch_cie_cmp, add_cie): Remove.
3019 (find_cie): Reimplement.
3020 (decode_frame_entry_1, decode_frame_entry): Change type. Update.
3021 (dwarf2_build_frame_info): Update.
3022
7b71fc97
L
30232019-10-24 H.J. Lu <hongjiu.lu@intel.com>
3024
3025 PR gdb/25126
3026 * symfile.c (reread_symbols): Call forget_cached_source_info to
3027 clear the stale source cache.
3028
cbb5a2ea
CB
30292019-10-24 Christian Biesinger <cbiesinger@google.com>
3030
3031 * configure: Regenerate.
3032 * configure.ac: Remove code that sets python_has_threads.
3033
71737c43
CB
30342019-10-24 Christian Biesinger <cbiesinger@google.com>
3035
3036 * config.in: Regenerate.
3037 * configure: Regenerate.
3038 * configure.ac: Remove the code that uses sed to get the python
3039 version and defines HAVE_LIBPYTHON2_6 / HAVE_LIBPYTHON2_7.
3040
33d569b7
AB
30412019-10-24 Andrew Burgess <andrew.burgess@embecosm.com>
3042
3043 * python/py-progspace.c (pspy_block_for_pc): Return None for all
3044 error paths.
3045
f16f7b7c
TT
30462019-10-23 Tom Tromey <tom@tromey.com>
3047
3048 * arc-tdep.c: Remove ".." from include.
3049 * frv-tdep.c: Remove ".." from include.
3050 * lm32-tdep.c: Remove ".." from include.
3051 * microblaze-tdep.c: Remove ".." from include.
3052 * or1k-tdep.h: Remove ".." from include.
3053 * s12z-tdep.c: Remove ".." from include.
3054 * Makefile.in (OPCODES_CFLAGS): Add comment.
3055 (TOP_CFLAGS): New variable.
3056 (INTERNAL_CFLAGS_BASE): Add TOP_CFLAGS.
3057
6999161a
TT
30582019-10-23 Tom Tromey <tom@tromey.com>
3059
3060 * Makefile.in (READLINE_DIR): Update.
3061
12e7c35e
TBA
30622019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3063
3064 * infcall.c (call_function_by_hand_dummy): Fix the function
3065 comment. And extract out a code section into...
3066 (reserve_stack_space): ...this new function.
3067
37055cad
TBA
30682019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3069
3070 * infcall.c (value_arg_coerce): Remove an unused parameter.
3071 (call_function_by_hand_dummy): Update the call to
3072 'value_arg_coerce'.
3073
39bcc47c
TBA
30742019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3075
3076 * infcall.c (call_function_by_hand_dummy): Refactor.
3077
bd888c0f
TBA
30782019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3079
3080 * MAINTAINERS (Write After Approval): Add Tankut Baris Aktemur.
3081
c12d372d
TT
30822019-10-23 Tom Tromey <tom@tromey.com>
3083
3084 * configure: Rebuild.
3085 * configure.ac: Don't check for sigprocmask.
3086 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for sigprocmask.
3087
4d0b984b
TT
30882019-10-23 Tom Tromey <tom@tromey.com>
3089
3090 * configure: Rebuild.
3091 * acinclude.m4: Use m4_include, not sinclude.
3092
7e785608
TV
30932019-10-23 Tom de Vries <tdevries@suse.de>
3094
3095 PR breakpoints/24687
3096 * symtab.c (iterate_over_some_symtabs): Apply gdb_realpath on fullname.
3097
403772ef
CB
30982019-10-22 Christian Biesinger <cbiesinger@google.com>
3099
3100 * symtab.c (struct demangled_name_entry) <language>: Change from
3101 bitfield to regular variable.
3102
3a494279
CB
31032019-10-22 Christian Biesinger <cbiesinger@google.com>
3104
3105 * symtab.c (struct demangled_name_entry): Add a constructor.
3106 (free_demangled_name_entry): New function to call the destructor
3107 for demangled_name_entry.
3108 (create_demangled_names_hash): Pass free_demangled_name_entry to
3109 htab_create_alloc.
3110 (symbol_set_names): Call placement new for demangled_name_entry.
3111 * utils.c: No longer include xxhash.h here, now that fast_hash
3112 is inlined in the header.
3113 * utils.h: Instead, include it here.
3114
ccb1ba62
CB
31152019-10-22 Christian Biesinger <cbiesinger@google.com>
3116
3117 * Makefile.in: Link with libxxhash.
3118 * config.in: Regenerate.
3119 * configure: Regenerate.
3120 * configure.ac: Search for libxxhash.
3121 * utils.c (fast_hash): Use xxhash if present.
3122
1a6ff1a9
CB
31232019-10-22 Christian Biesinger <cbiesinger@google.com>
3124
3125 * utils.h (fast_hash): New function.
3126 * symtab.c (hash_demangled_name_entry): Call new function
3127 fast_hash.
3128
7bb43059
CB
31292019-10-22 Christian Biesinger <cbiesinger@google.com>
3130
3131 * symtab.c (struct demangled_name_entry): Change type of mangled
3132 to gdb::string_view. Also adds a constructor that takes the
3133 mangled name.
3134 (hash_demangled_name_entry): Update.
3135 (eq_demangled_name_entry): Update.
3136 (free_demangled_name_entry): New function to call the destructor
3137 now that this is not a POD anymore.
3138 (create_demangled_names_hash): Pass free_demangled_name_entry to
3139 htab_create_alloc.
3140 (symbol_set_names): Update.
3141
7ba99d21
AT
31422019-10-21 Ali Tamur <tamu@google.com>
3143
3144 * dwarf2read.c (dir_index): Change type.
3145 (file_name_index): Likewise.
3146 (line_header::include_dir_at): Change comment and implementation on
3147 whether it is DWARF 5.
3148 (line_header::is_valid_file_index): New function.
3149 (line_header::file_name_at): Change comment and implementation on
3150 whether it is DWARF 5.
3151 (line_header::file_names): Change to private field renamed as
3152 m_file_names and introduce a new accessor method.
3153 (line_header::file_names_size): New method.
3154 (line_header::include_dirs): Change to private field and rename as
3155 m_include_dirs.
3156 (dw2_get_file_names_reader): Define local var at a smaller scope and
3157 reflect API change.
3158 (dwarf2_cu::setup_type_unit_groups): Reflect API change.
3159 (process_structure_scope): Likewise.
3160 (line_header::add_include_dir): Change message and reflect renaming.
3161 (line_header::add_file_name): Likewise.
3162 (read_formatted_entries): Handle DW_FORM_data16.
3163 (dwarf_decode_line_header): Fix line header length calculation.
3164 (psymtab_include_file_name): Change comment and API.
3165 (lnp_state_machine::m_file): Update comment and reflect type change.
3166 (lnp_state_machine::record_line): Reflect type change.
3167 (dwarf_decode_lines): Reflect API change.
3168 (file_file_name): Likewise.
3169 (file_full_name): Likewise.
3170
45f47c3a
AB
31712019-10-21 Andrew Burgess <andrew.burgess@embecosm.com>
3172
3173 * objfiles.c (sort_cmp): Ensure that !(a < a) holds true.
3174
e5f3c0e3
TT
31752019-10-21 Tom Tromey <tom@tromey.com>
3176
3177 * tui/tui-winsource.h (tui_exec_info_content): Remove typedef.
3178
a0a461e5
TT
31792019-10-21 Tom Tromey <tom@tromey.com>
3180
3181 * configure.ac (nm.h): Conditionally create nm.h link. Subst
3182 NM_H. Use AC_CONFIG_LINKS.
3183 * configure: Rebuild.
3184 * Makefile.in (NM_H): New variable.
3185 (generated_files): Add NM_H. Remove gcore.
3186 (nm.h, stamp-nmh): New targets.
3187
54d83b8d
TT
31882019-10-20 Tom Tromey <tom@tromey.com>
3189
3190 * objfiles.h (unlink_objfile, put_objfile_before): Don't declare.
3191 * objfiles.c (unlink_objfile): Move earlier. Now static. Remove
3192 obsolete comment.
3193 (put_objfile_before): Now static.
3194
23771117
SM
31952019-10-19 Simon Marchi <simon.marchi@polymtl.ca>
3196
3197 * gdbsupport/common-utils.h (startswith): Change return type to
3198 bool.
3199
39ef2f62
CB
32002019-10-19 Christian Biesinger <cbiesinger@google.com>
3201
3202 * bcache.c (bcache::print_statistics): Use std::sort instead of qsort.
3203 * breakpoint.c (bp_locations_compare): Rename to...
3204 (bp_location_is_less_than): ...this, and change to std::sort semantics.
3205 (update_global_location_list): Use std::sort instead of qsort.
3206 * buildsym.c (compare_line_numbers): Rename to...
3207 (lte_is_less_than): ...this, and change to std::sort semantics.
3208 (buildsym_compunit::end_symtab_with_blockvector): Use std::sort
3209 instead of qsort.
3210 * disasm.c (compare_lines): Rename to...
3211 (line_is_less_than): ...this, and change to std::sort semantics.
3212 (do_mixed_source_and_assembly_deprecated): Call std::sort instead
3213 of qsort.
3214 * dwarf2-frame.c (qsort_fde_cmp): Rename to...
3215 (fde_is_less_than): ...this, and change to std::sort semantics.
3216 (dwarf2_build_frame_info): Call std::sort instead of qsort.
3217 * mdebugread.c (compare_blocks):
3218 (block_is_less_than): ...this, and change to std::sort semantics.
3219 (sort_blocks): Call std::sort instead of qsort.
3220 * objfiles.c (qsort_cmp): Rename to...
3221 (sort_cmp): ...this, and change to std::sort semantics.
3222 (update_section_map): Call std::sort instead of qsort.
3223 * remote.c (compare_pnums): Remove.
3224 (map_regcache_remote_table): Call std::sort instead of qsort.
3225 * utils.c (compare_positive_ints): Remove.
3226 * utils.h (compare_positive_ints): Remove.
3227 * xcoffread.c (compare_lte): Remove.
3228 (arrange_linetable): Call std::sort instead of qsort.
3229
f71433ee
SDJ
32302019-10-19 Sergio Durigan Junior <sergiodj@redhat.com>
3231
3232 * symfile.c (init_entry_point_info): Fix typo.
3233 * i386-darwin-tdep.c (darwin_dwarf_signal_frame_p): Fix typo.
3234
85102364
TV
32352019-10-18 Tom de Vries <tdevries@suse.de>
3236
3237 * aarch64-tdep.c: Fix typos in comments.
3238 * ada-lang.c: Same.
3239 * ada-tasks.c: Same.
3240 * alpha-tdep.c: Same.
3241 * alpha-tdep.h: Same.
3242 * amd64-nat.c: Same.
3243 * amd64-windows-tdep.c: Same.
3244 * arc-tdep.c: Same.
3245 * arc-tdep.h: Same.
3246 * arch-utils.c: Same.
3247 * arm-nbsd-tdep.c: Same.
3248 * arm-tdep.c: Same.
3249 * ax-gdb.c: Same.
3250 * blockframe.c: Same.
3251 * btrace.c: Same.
3252 * c-varobj.c: Same.
3253 * coff-pe-read.c: Same.
3254 * coffread.c: Same.
3255 * cris-tdep.c: Same.
3256 * darwin-nat.c: Same.
3257 * dbxread.c: Same.
3258 * dcache.c: Same.
3259 * disasm.c: Same.
3260 * dtrace-probe.c: Same.
3261 * dwarf-index-write.c: Same.
3262 * dwarf2-frame-tailcall.c: Same.
3263 * dwarf2-frame.c: Same.
3264 * dwarf2read.c: Same.
3265 * eval.c: Same.
3266 * exceptions.c: Same.
3267 * fbsd-tdep.c: Same.
3268 * findvar.c: Same.
3269 * frame.c: Same.
3270 * frv-tdep.c: Same.
3271 * gnu-v3-abi.c: Same.
3272 * go32-nat.c: Same.
3273 * h8300-tdep.c: Same.
3274 * hppa-tdep.c: Same.
3275 * i386-linux-tdep.c: Same.
3276 * i386-tdep.c: Same.
3277 * ia64-libunwind-tdep.c: Same.
3278 * ia64-tdep.c: Same.
3279 * infcmd.c: Same.
3280 * infrun.c: Same.
3281 * linespec.c: Same.
3282 * linux-nat.c: Same.
3283 * linux-thread-db.c: Same.
3284 * machoread.c: Same.
3285 * mdebugread.c: Same.
3286 * mep-tdep.c: Same.
3287 * mn10300-tdep.c: Same.
3288 * namespace.c: Same.
3289 * objfiles.c: Same.
3290 * opencl-lang.c: Same.
3291 * or1k-tdep.c: Same.
3292 * osabi.c: Same.
3293 * ppc-linux-nat.c: Same.
3294 * ppc-linux-tdep.c: Same.
3295 * ppc-sysv-tdep.c: Same.
3296 * printcmd.c: Same.
3297 * procfs.c: Same.
3298 * record-btrace.c: Same.
3299 * record-full.c: Same.
3300 * remote-fileio.c: Same.
3301 * remote.c: Same.
3302 * rs6000-tdep.c: Same.
3303 * s12z-tdep.c: Same.
3304 * score-tdep.c: Same.
3305 * ser-base.c: Same.
3306 * ser-go32.c: Same.
3307 * skip.c: Same.
3308 * sol-thread.c: Same.
3309 * solib-svr4.c: Same.
3310 * solib.c: Same.
3311 * source.c: Same.
3312 * sparc-nat.c: Same.
3313 * sparc-sol2-tdep.c: Same.
3314 * sparc-tdep.c: Same.
3315 * sparc64-tdep.c: Same.
3316 * stabsread.c: Same.
3317 * stack.c: Same.
3318 * symfile.c: Same.
3319 * symtab.c: Same.
3320 * target-descriptions.c: Same.
3321 * target-float.c: Same.
3322 * thread.c: Same.
3323 * utils.c: Same.
3324 * valops.c: Same.
3325 * valprint.c: Same.
3326 * value.c: Same.
3327 * varobj.c: Same.
3328 * windows-nat.c: Same.
3329 * xcoffread.c: Same.
3330 * xstormy16-tdep.c: Same.
3331 * xtensa-tdep.c: Same.
3332
c5adaa19
TT
33332019-10-17 Tom Tromey <tromey@adacore.com>
3334
3335 * configure: Rebuild.
3336 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
3337 in AC_CONFIG_FILES invocation.
3338 * Makefile.in (Makefile, data-directory/Makefile, stamp-h): Use
3339 new-style config.status invocation.
3340
405feb71
TV
33412019-10-17 Tom de Vries <tdevries@suse.de>
3342
3343 * arm-nbsd-nat.c: Fix typos in comments.
3344 * arm-tdep.c: Same.
3345 * darwin-nat-info.c: Same.
3346 * dwarf2read.c: Same.
3347 * elfread.c: Same.
3348 * event-top.c: Same.
3349 * findvar.c: Same.
3350 * gdbtypes.c: Same.
3351 * hppa-tdep.c: Same.
3352 * i386-tdep.c: Same.
3353 * jit.c: Same.
3354 * main.c: Same.
3355 * mdebugread.c: Same.
3356 * moxie-tdep.c: Same.
3357 * nto-procfs.c: Same.
3358 * osabi.c: Same.
3359 * ppc-linux-tdep.c: Same.
3360 * remote.c: Same.
3361 * riscv-tdep.c: Same.
3362 * s390-tdep.c: Same.
3363 * sh-tdep.c: Same.
3364 * sparc-linux-tdep.c: Same.
3365 * sparc-nat.c: Same.
3366 * stack.c: Same.
3367 * target-descriptions.c: Same.
3368 * top.c: Same.
3369 * varobj.c: Same.
3370
befcd486
TT
33712019-10-16 Tom Tromey <tom@tromey.com>
3372
3373 * objfiles.h (struct objfile) <original_name>: Now const.
3374
17bfe554
CB
33752019-10-16 Christian Biesinger <cbiesinger@google.com>
3376
3377 * gdbsupport/gdb_setjmp.h (SIGSETJMP): Allow passing in the value to
3378 pass on to sigsetjmp's second argument.
3379 * cp-support.c (gdb_demangle): Unblock SIGSEGV if we caught a crash.
3380
950b7495
KS
33812019-10-16 Keith Seitz <keiths@redhat.com>
3382
3383 PR gdb/23567
3384 * dwarf2read.c (dwarf2_per_objfile::locate_sections): Discard
3385 sections whose size is greater than the file size.
3386
ff371ec9
JW
33872019-10-16 Jim Wilson <jimw@sifive.com>
3388
3389 * riscv-tdep.c (riscv_gcc_target_options): New.
3390 (riscv_gnu_triplet_regexp): New.
3391 (riscv_gdbarch_init): Call set_gdbarch_gcc_triplet_options and
3392 set_gdbarch_gnu_triplet_regexp.
3393
fec4e896
CB
33942019-10-16 Christian Biesinger <cbiesinger@google.com>
3395
3396 * Makefile.in: Add xml-builtin.h.
3397 * features/feature_to_c.sh: Add an include for xml-builtin.h
3398 to ensure that the compiler checks that the types match.
3399 * xml-builtin.h: New file.
3400 * xml-support.c (fetch_xml_builtin): Add missing const.
3401 * xml-support.h: Remove declaration of xml_builtins.
3402
d10eccaa
TV
34032019-10-16 Tom de Vries <tdevries@suse.de>
3404
3405 PR tdep/25096
3406 * amd64-tdep.c (amd64_classify_aggregate_field): Factor out of ...
3407 (amd64_classify_aggregate): ... here.
3408 (amd64_classify_aggregate_field): Handled fiels of nested structs
3409 recursively.
3410
745ff14e
TV
34112019-10-16 Tom de Vries <tdevries@suse.de>
3412
3413 PR tdep/24104
3414 * amd64-tdep.c (amd64_push_arguments): Handle AMD64_NO_CLASS in loop
3415 that handles 'theclass'.
3416
791b7405
AB
34172019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
3418
3419 * linespec.c (decode_digits_ordinary): Update comment.
3420 * make-target-delegates: No longer need to handle VEC case.
3421 * memrange.c (normalize_mem_ranges): Update comment.
3422 * namespace.c (add_using_directive): Update comment.
3423 * objc-lang.c (uniquify_strings): Update comment.
3424 * ppc-linux-nat.c (struct thread_points): Update comment.
3425 * probe.h (find_probes_in_objfile): Update comment.
3426 * target.h (enum flash_preserve_mode): Update comment.
3427 * varobj.c (varobj_restrict_range): Update comment.
3428 * varobj.h (varobj_list_children): Update comment.
3429
0dc32745
AB
34302019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
3431
3432 * Makefile.in: Remove references to vec.h and vec.c.
3433 * aarch64-tdep.c: No longer include vec.h.
3434 * ada-lang.c: Likewise.
3435 * ada-lang.h: Likewise.
3436 * arm-tdep.c: Likewise.
3437 * ax.h: Likewise.
3438 * breakpoint.h: Likewise.
3439 * charset.c: Likewise.
3440 * cp-support.h: Likewise.
3441 * dtrace-probe.c: Likewise.
3442 * dwarf2read.c: Likewise.
3443 * extension.h: Likewise.
3444 * gdb_bfd.c: Likewise.
3445 * gdbsupport/gdb_vecs.h: Likewise.
3446 * gdbsupport/vec.c: Remove.
3447 * gdbsupport/vec.h: Remove.
3448 * gdbthread.h: Likewise.
3449 * guile/scm-type.c: Likewise.
3450 * inline-frame.c: Likewise.
3451 * machoread.c: Likewise.
3452 * memattr.c: Likewise.
3453 * memrange.h: Likewise.
3454 * namespace.h: Likewise.
3455 * nat/linux-btrace.h: Likewise.
3456 * osdata.c: Likewise.
3457 * parser-defs.h: Likewise.
3458 * progspace.h: Likewise.
3459 * python/py-type.c: Likewise.
3460 * record-btrace.c: Likewise.
3461 * rust-exp.y: Likewise.
3462 * solib-target.c: Likewise.
3463 * stap-probe.c: Likewise.
3464 * target-descriptions.c: Likewise.
3465 * target-memory.c: Likewise.
3466 * target.h: Likewise.
3467 * varobj.c: Likewise.
3468 * varobj.h: Likewise.
3469 * xml-support.h: Likewise.
3470
ae640021
AB
34712019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
3472
3473 * gdb/dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile):
3474 Update for new std::vector based implementation.
3475 (process_psymtab_comp_unit_reader): Likewise.
3476 (scan_partial_symbols): Likewise.
3477 (recursively_compute_inclusions): Likewise.
3478 (compute_compunit_symtab_includes): Likewise.
3479 (process_imported_unit_die): Likewise.
3480 (queue_and_load_dwo_tu): Likewise.
3481 (follow_die_sig_1): Likewise.
3482 * gdb/dwarf2read.h: Remove DEF_VEC_P.
3483 (typedef dwarf2_per_cu_ptr): Remove.
3484 (struct dwarf2_per_cu_data) <imported_symtabs_empty>: New
3485 function.
3486 (struct dwarf2_per_cu_data) <imported_symtabs_push>: New function.
3487 (struct dwarf2_per_cu_data) <imported_symtabs_size>: New function.
3488 (struct dwarf2_per_cu_data) <imported_symtabs_free>: New function.
3489 (struct dwarf2_per_cu_data) <imported_symtabs>: Change to
3490 std::vector.
3491
55dfc88f
TT
34922019-10-15 Tom Tromey <tromey@adacore.com>
3493
3494 * windows-nat.c (windows_nat_target::resume): Use %x when logging
3495 TID.
3496
96b49c5e
TT
34972019-10-15 Tom Tromey <tromey@adacore.com>
3498
3499 * windows-nat.c (windows_nat_target::fetch_registers)
3500 (windows_nat_target::store_registers): Rename "pid" to "tid".
3501
953cff56
TT
35022019-10-15 Tom Tromey <tromey@adacore.com>
3503
3504 * gdbarch.h, gdbarch.c: Rebuild.
3505 * gdbarch.sh (gcc_target_options): Change return type to
3506 std::string.
3507 * compile/compile.c (get_args): Update.
3508 * nios2-tdep.c (nios2_gcc_target_options): Return std::string.
3509 * arm-linux-tdep.c (arm_linux_gcc_target_options): Return
3510 std::string.
3511 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): Return
3512 std::string.
3513 * arch-utils.c (default_gcc_target_options): Return std::string.
3514 * arch-utils.h (default_gcc_target_options): Return std::string.
3515 * s390-tdep.c (s390_gcc_target_options): Return std::string.
3516
81e6b8eb
CB
35172019-10-15 Christian Biesinger <cbiesinger@google.com>
3518
3519 * breakpoint.c (breakpoint_chain): Make static.
3520 * tui/tui-winsource.c: Call iterate_over_breakpoints instead
3521 of accessing breakpoint_chain.
3522
95da600f
CB
35232019-10-15 Christian Biesinger <cbiesinger@google.com>
3524
3525 * breakpoint.c (iterate_over_breakpoints): Change function pointer
3526 to a gdb::function_view and return value to bool.
3527 * breakpoint.h (iterate_over_breakpoints): Likewise.
3528 * dummy-frame.c (pop_dummy_frame_bpt): Update.
3529 (pop_dummy_frame): Update.
3530 * guile/scm-breakpoint.c (bpscm_build_bp_list): Update.
3531 (gdbscm_breakpoints): Update.
3532 * python/py-breakpoint.c (build_bp_list): Update.
3533 (gdbpy_breakpoints): Update.
3534 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
3535 Update.
3536 (bpfinishpy_handle_stop): Update.
3537 (bpfinishpy_handle_exit): Update.
3538 * solib-svr4.c (svr4_update_solib_event_breakpoint): Update.
3539 (svr4_update_solib_event_breakpoints): Update.
3540
ba18312d
AA
35412019-10-15 Andreas Arnez <arnez@linux.ibm.com>
3542
3543 * s390-tdep.c (s390_effective_inner_type): Ignore static fields
3544 when unwrapping single-field structs.
3545
6acc1a0b
SM
35462019-10-14 Simon Marchi <simon.marchi@polymtl.ca>
3547
3548 * dwarf2read.c: Remove includes.
3549
284782de
SM
35502019-10-13 Simon Marchi <simon.marchi@polymtl.ca>
3551
3552 * ui-out.c (ui_out::call_do_message): Silence
3553 -Wformat-nonliteral warning.
3554
073bbbb0
SM
35552019-10-12 Simon Marchi <simon.marchi@polymtl.ca>
3556
3557 * breakpoint.c: Remove some includes: continuations.h, skip.h,
3558 mi/mi-main.h, readline/readline.h, readline/history.h. Add
3559 include: readline/tilde.h.
3560
7b9a15e1
CB
35612019-10-12 Christian Biesinger <cbiesinger@google.com>
3562
3563 * remote.c (remote_target::get_trace_status): Remove declaration of
3564 trace_regblock_size.
3565
cc8dee1f
CB
35662019-10-12 Christian Biesinger <cbiesinger@google.com>
3567
3568 * cli/cli-cmds.c (max_user_call_depth): Move comment to header.
3569 (show_user): Remove declaration of cmdlist.
3570 * cli/cli-cmds.h (max_user_call_depth): Declare.
3571 * cli/cli-script.c (execute_user_command): Remove declaration
3572 of max_user_call_depth.
3573
a83d4ef6
JW
35742019-10-11 Jim Wilson <jimw@sifive.com>
3575
5f93c5a6
JW
3576 * gdbsupport/print-utils.h (pulongest): Fix comment.
3577 (plongest): Likewise.
3578 (phex): Add missing comment, mention leading zeros.
3579 (phex_nz): Add mention of no leading zeros to comment.
3580
a83d4ef6
JW
3581 * riscv-tdep.c (riscv_push_dummy_code): Change %lld to %s and use
3582 plongest instead of unsigned long long cast.
3583
26344e0c
CB
35842019-10-10 Christian Biesinger <cbiesinger@google.com>
3585
3586 * main.c (captured_main_1): Include gdbtk.h and remove declarations
3587 for external_editor_command and gdbtk_test.
3588
c2c440a9
CB
35892019-10-10 Christian Biesinger <cbiesinger@google.com>
3590
3591 * mi/mi-cmd-var.c (varobjdebug): Remove declaration.
3592 * varobj.c (varobjdebug): Move comment to...
3593 * varobj.h (varobjdebug): ...here, and declare.
3594
a31bff9d
TT
35952019-10-09 Tom Tromey <tom@tromey.com>
3596
3597 * tui/tui-regs.c (tui_data_window::show_registers): Don't call
3598 erase_data_content.
3599
7523da63
TT
36002019-10-09 Tom Tromey <tom@tromey.com>
3601
3602 * tui/tui-wingeneral.h (tui_delete_win): Don't declare.
3603 * tui/tui-stack.c (tui_locator_window::rerender): Update.
3604 * tui/tui-command.c (tui_cmd_window::resize)
3605 (tui_refresh_cmd_win): Update.
3606 * tui/tui-win.c (tui_resize_all, tui_set_focus_command): Update.
3607 * tui/tui.c (tui_rl_other_window, tui_enable): Update.
3608 * tui/tui-data.c (~tui_gen_win_info): Remove.
3609 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
3610 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
3611 (tui_redisplay_readline, tui_mld_flush)
3612 (tui_mld_erase_entire_line, tui_mld_getc, tui_getc): Update.
3613 * tui/tui-regs.c (tui_data_window::delete_data_content_windows)
3614 (tui_data_window::erase_data_content)
3615 (tui_data_item_window::rerender)
3616 (tui_data_item_window::refresh_window): Update.
3617 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window)
3618 (box_win, tui_gen_win_info::make_window)
3619 (tui_gen_win_info::make_visible): Update.
3620 (tui_delete_win): Remove.
3621 * tui/tui-winsource.c
3622 (tui_source_window_base::do_erase_source_content): Update.
3623 (tui_show_source_line, tui_source_window_base::update_tab_width)
3624 (tui_source_window_base::update_exec_info): Update.
3625 * tui/tui-data.h (struct curses_deleter): New.
3626 (struct tui_gen_win_info) <handle>: Now a unique_ptr.
3627 (struct tui_gen_win_info) <~tui_gen_win_info>: Define.
3628
a7798e7f
TT
36292019-10-09 Tom Tromey <tom@tromey.com>
3630
3631 * tui/tui-wingeneral.h (struct tui_gen_win_info): Don't declare.
3632
5c45899e
TT
36332019-10-09 Tom Tromey <tom@tromey.com>
3634
3635 * tui/tui-data.c (tui_win_is_auxiliary): Remove.
3636 * tui/tui-data.h (tui_win_is_auxiliary): Don't declare.
3637
6d7fd9aa
TT
36382019-10-09 Tom Tromey <tom@tromey.com>
3639
3640 * tui/tui-disasm.c (tui_get_low_disassembly_address): Compute
3641 window height directly.
3642 * tui/tui-layout.h (tui_default_win_viewport_height): Don't
3643 declare.
3644 * tui/tui-layout.c (tui_default_win_height): Remove.
3645 (tui_default_win_viewport_height): Remove.
3646
d2dd1084
TT
36472019-10-09 Tom Tromey <tom@tromey.com>
3648
3649 * tui/tui.h: Remove comments.
3650
cff32449
TV
36512019-10-09 Tom de Vries <tdevries@suse.de>
3652
3653 * python/lib/gdb/printer/bound_registers.py: Use
3654 '^builtin_type_bound128' as regexp argument for
3655 add_builtin_pretty_printer.
3656
6a25e8a2
CB
36572019-10-09 Christian Biesinger <cbiesinger@google.com>
3658
3659 * guile/guile.c (guile_extension_script_ops): Remove forward
3660 declaration and mark as static.
3661 (guile_script_ops): Likewise.
3662 (extension_language_guile): Move further down in the file so
3663 it can reference the definitions for guile_{extension_,}script_ops.
3664
6d9d6da4
AA
36652019-10-09 Andreas Arnez <arnez@linux.ibm.com>
3666
3667 * s390-tdep.c (390_process_record): Handle new arch13 instructions
3668 except SORTL, DFLTCC, and KDSA.
3669
3abea05d
TT
36702019-10-08 Tom Tromey <tromey@adacore.com>
3671
3672 * windows-nat.c (struct windows_thread_info_struct) <sf>: Remove.
3673 (struct safe_symbol_file_add_args): Remove.
3674
dde996e2
TT
36752019-10-08 Tom Tromey <tromey@adacore.com>
3676
3677 * windows-nat.c: Don't include buildsym-legacy.h.
3678
cd6fdaa1
TT
36792019-10-08 Tom Tromey <tromey@adacore.com>
3680
3681 * contrib/ari/gdb_ari.sh (%p): Allow gdb-specific %p extensions.
3682
79bb1944
CB
36832019-10-08 Christian Biesinger <cbiesinger@google.com>
3684
3685 * gdbtypes.c (overload_debug): Move comment to header.
3686 * gdbtypes.h (overload_debug): Declare.
3687 * valops.c: Remove declaration of overload_debug, instead
3688 include gdbtypes.h.
3689
34916edc
CB
36902019-10-08 Christian Biesinger <cbiesinger@google.com>
3691
3692 * language.c (show_language_command): Pass lang_frame_mismatch_warn
3693 through _().
3694 (lang_frame_mismatch_warn): Make const, mark with N_(), and
3695 move comment...
3696 * language.h (lang_frame_mismatch_warn): ... here. Also add
3697 declaration.
3698 * top.c (lang_frame_mismatch_warn): Remove declaration.
3699 (check_frame_language_change): Pass lang_frame_mismatch_warn
3700 through _().
3701
bad5c026
CB
37022019-10-07 Christian Biesinger <cbiesinger@google.com>
3703
3704 * c-lang.h (vtbl_ptr_name): Declare.
3705 * cp-valprint.c (vtbl_ptr_name): Remove "extern" now that we get
3706 it from the header.
3707 * stabsread.c (define_symbol): Remove declaration of vtbl_ptr_name.
3708
51f1fdc3
CB
37092019-10-07 Christian Biesinger <cbiesinger@google.com>
3710
3711 * charset.c (your_gdb_wchar_t_is_bogus): Replace with a
3712 gdb_static_assert.
3713
30d1f018
WP
37142019-10-07 Weimin Pan <weimin.pan@oracle.com>
3715
606813d5
WP
3716 * ../Makefile.def (dependencies): Add all-libctf to all-gdb
3717 * ../Makefile.in: Add "all-gdb: maybe-all-libctf"
30d1f018
WP
3718 * ctfread.c: New file.
3719 * ctfread.h: New file.
3720 * elfread.c: Include ctfread.h.
3721 (struct elfinfo text_p): New member ctfsect.
3722 (elf_locate_sections): Mark CTF section.
3723 (elf_symfile_read): Call elfctf_build_psymtabs.
3724 * Makefile.in (LIBCTF): Add.
3725 (CLIBS): Use it.
3726 (CDEPS): Likewise.
3727 (DIST): Add ctfread.c.
606813d5
WP
3728
37292019-10-07 Andrew Burgess <andrew.burgess@embecosm.com>
3730
3731 * ctfread.c (struct nextfield): Renamed to ...
3732 (struct ctf_nextfield): ... this.
3733 (struct field_info): Renamed to ...
3734 (strut ctf_field_info): ... this.
3735 (attach_fields_to_type): Update for renamed structures.
3736 (ctf_add_member_cb): Likewise.
3737 (ctf_add_enum_member_cb): Likewise.
3738 (process_struct_members): Likewise.
3739 (process_enum_type): Likewise.
30d1f018 3740
518fe38c
WP
37412019-10-07 Weimin Pan <weimin.pan@oracle.com>
3742
3743 * tracectf.h: Rename, was ctf.h.
3744 * tracectf.c: Rename, was ctf.c, replace ctf.h with tracectf.h.
3745 * tracefile.c: Likewise.
3746 * tracepoint.c: Remove unused include ctf.h.
3747 * mi/mi-main.c: Likewise.
3748 * Makefile.in Replace ctf.c with tracectf.c.
3749
225f296a
JB
37502019-10-06 Joel Brobecker <brobecker@adacore.com>
3751
3752 * version.in: Change version number to "9.0.50.DATE-git".
3753
77c2dba3
TT
37542019-10-03 Tom Tromey <tom@tromey.com>
3755
3756 PR rust/24976:
3757 * dwarf2read.c (quirk_rust_enum): Handle single-element unions.
3758
179aed7f
AB
37592019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
3760
3761 * f-lang.c (f_language_defn): Use cp_get_symbol_name_matcher and
3762 cp_search_name_hash.
3763 * NEWS: Add entry about nested function support.
3764
0a4b0913
AB
37652019-10-03 Bernhard Heckel <bernhard.heckel@intel.com>
3766 Andrew Burgess <andrew.burgess@embecosm.com>
3767
3768 * cp-namespace.c (cp_search_static_and_baseclasses): Only search
3769 for nested static variables when searchin VAR_DOMAIN.
3770 * dwarf2read.c (add_partial_symbol): Add nested subroutines to the
3771 global scope, update comment.
3772 (add_partial_subprogram): Call add_partial_subprogram recursively
3773 for nested subroutines when processinng Fortran.
3774 (load_partial_dies): Process the child entities of a subprogram
3775 when processing Fortran.
3776 (partial_die_parent_scope): Handle building scope
3777 for Fortran nested functions.
3778 (process_die): Record that nested functions have a scope.
3779 (new_symbol): Always record Fortran subprograms on the global
3780 symbol list.
3781 (determine_prefix): How to build the prefix for Fortran
3782 subprograms.
3783
d8c06f22
AB
37842019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
3785
3786 * linux-nat.c (linux_nat_filter_event): Don't ignore SIGSTOP if we
3787 have just sent the thread a SIGSTOP and are waiting for it to
3788 arrive.
3789
a8b3b8e9
AB
37902019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
3791
3792 * btrace.c (btrace_add_pc): Remove whitespace before the template
3793 parameter in 'std::vector <...>'.
3794 (parse_xml_btrace_block): Likewise.
3795 (btrace_maint_decode_pt): Likewise.
3796 (btrace_maint_update_packets): Likewise.
3797 (btrace_maint_print_packets): Likewise.
3798 * btrace.h (struct btrace_maint_info): Likewise.
3799 * dwarf2read.c (struct type_unit_group): Likewise.
3800 (build_type_psymtabs_reader): Likewise.
3801 * gdbsupport/btrace-common.c (btrace_data_append): Likewise.
3802 * gdbsupport/btrace-common.h (struct btrace_data_bts): Likewise.
3803 * nat/linux-btrace.c (perf_event_read_bts): Likewise.
3804
4d825eab
TV
38052019-10-03 Tom de Vries <tdevries@suse.de>
3806
3807 * cli/cli-style.c (_initialize_cli_style): Adding a '.' at the end of
3808 the first line of the help text for set/show style metadata.
3809
80fd2826
TT
38102019-10-02 Tom Tromey <tromey@adacore.com>
3811
3812 * Makefile.in (COMMON_SFILES): Add common-inferior.c.
3813 * gdbsupport/common-inferior.c: New file.
3814 * infcmd.c (startup_with_shell): Don't define.
3815 * nat/fork-inferior.h (startup_with_shell): Don't declare.
3816 * gdbsupport/common-inferior.h (startup_with_shell): Declare.
3817 * inferior.h (startup_with_shell): Don't declare.
3818
70054538
CB
38192019-10-02 Christian Biesinger <cbiesinger@google.com>
3820
3821 * gdbsupport/gdb_assert.h: Include errors.h.
3822 * gdbsupport/gdb_string_view.h: Include gdb_assert.h.
3823
37f6a7f4
TT
38242019-10-02 Tom Tromey <tromey@adacore.com>
3825
3826 * NEWS: Add $_ada_exception entry.
3827 * ada-lang.c (struct ada_catchpoint): Add constructor.
3828 <m_kind>: New member.
3829 (allocate_location_exception, re_set_exception): Remove
3830 "ex" parameter.
3831 (should_stop_exception): Compute $_ada_exception.
3832 (check_status_exception, print_it_exception)
3833 (print_one_exception, print_mention_exception): Remove
3834 "ex" parameter.
3835 (allocate_location_catch_exception, re_set_catch_exception)
3836 (check_status_exception, print_it_catch_exception)
3837 (print_one_catch_exception, print_mention_catch_exception)
3838 (print_recreate_catch_exception)
3839 (allocate_location_catch_exception_unhandled)
3840 (re_set_catch_exception_unhandled)
3841 (check_status_exception, print_it_catch_exception_unhandled)
3842 (print_one_catch_exception_unhandled)
3843 (print_mention_catch_exception_unhandled)
3844 (print_recreate_catch_exception_unhandled)
3845 (allocate_location_catch_assert, re_set_catch_assert)
3846 (check_status_assert, print_it_catch_assert)
3847 (print_one_catch_assert, print_mention_catch_assert)
3848 (print_recreate_catch_assert)
3849 (allocate_location_catch_handlers, re_set_catch_handlers)
3850 (check_status_handlers, print_it_catch_handlers)
3851 (print_one_catch_handlers, print_mention_catch_handlers)
3852 (print_recreate_catch_handlers): Remove.
3853 (create_ada_exception_catchpoint): Update.
3854 (initialize_ada_catchpoint_ops): Update.
3855
fccf9de1
TT
38562019-10-02 Tom Tromey <tromey@adacore.com>
3857
3858 * ada-lang.c (ada_lookup_simple_minsyms): Remove.
3859 (create_excep_cond_exprs): Simplify exception string computation.
3860 (ada_exception_catchpoint_cond_string): Likewise.
3861
4b610737
TT
38622019-10-02 Tom Tromey <tromey@adacore.com>
3863
3864 * symmisc.c (dump_msymbols): Don't use MSYMBOL_VALUE_ADDRESS.
3865 * ada-lang.c (lesseq_defined_than): Handle
3866 LOC_STATIC.
3867 * dwarf2read.c (dwarf2_per_objfile): Add can_copy
3868 parameter.
3869 (dwarf2_has_info): Likewise.
3870 (new_symbol): Set maybe_copied on symbol when
3871 appropriate.
3872 * dwarf2read.h (dwarf2_per_objfile): Add can_copy
3873 parameter.
3874 <can_copy>: New member.
3875 * elfread.c (record_minimal_symbol): Set maybe_copied
3876 on symbol when appropriate.
3877 (elf_symfile_read): Update call to dwarf2_has_info.
3878 * minsyms.c (lookup_minimal_symbol_linkage): New
3879 function.
3880 * minsyms.h (lookup_minimal_symbol_linkage): Declare.
3881 * symtab.c (get_symbol_address, get_msymbol_address):
3882 New functions.
3883 * symtab.h (get_symbol_address, get_msymbol_address):
3884 Declare.
3885 (SYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_ADDRESS): Handle
3886 maybe_copied.
3887 (struct symbol, struct minimal_symbol) <maybe_copied>:
3888 New member.
3889
1dd58850
TT
38902019-10-02 Tom Tromey <tromey@adacore.com>
3891
3892 * source.c (struct current_source_location): New.
3893 (current_source_key): New global.
3894 (current_source_symtab, current_source_line)
3895 (current_source_pspace): Remove.
3896 (get_source_location): New function.
3897 (get_current_source_symtab_and_line)
3898 (set_default_source_symtab_and_line)
3899 (set_current_source_symtab_and_line)
3900 (clear_current_source_symtab_and_line, select_source_symtab)
3901 (info_source_command, print_source_lines_base)
3902 (info_line_command, search_command_helper, _initialize_source):
3903 Update.
3904
5c281dbb
TT
39052019-10-02 Tom Tromey <tromey@adacore.com>
3906
3907 * source.c (select_source_symtab): Don't call
3908 decode_line_with_current_source.
3909
d3d32391
AB
39102019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
3911
3912 * symtab.c (lookup_global_symbol): Search global block.
3913
38583298
TT
39142019-10-02 Tom Tromey <tromey@adacore.com>
3915
3916 * coffread.c (process_coff_symbol): Update.
3917 * dwarf2read.c (var_decode_location, new_symbol): Update.
3918 * mdebugread.c (parse_symbol): Update.
3919 * objfiles.c (relocate_one_symbol): Update.
3920 * stabsread.c (define_symbol, fix_common_block)
3921 (scan_file_globals): Update.
3922 * symtab.h (SYMBOL_VALUE_ADDRESS): Expand to an rvalue.
3923 (SET_SYMBOL_VALUE_ADDRESS): New macro.
3924 * xcoffread.c (process_xcoff_symbol): Update.
3925
9344c18f
AA
39262019-10-02 Andreas Arnez <arnez@linux.ibm.com>
3927
3928 * MAINTAINERS: Update my email address.
3929
df07e2c7
AB
39302019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
3931
3932 * dwarf2read.c (struct type_unit_group) <tus>: Convert to
3933 std::vector.
3934 (build_type_psymtabs_reader): Update for std::vector.
3935 (build_type_psymtab_dependencies): Likewise.
3936 * dwarf2read.h: Remove use of DEF_VEC_P.
3937 (typedef sig_type_ptr): Delete.
3938
554ac434
AB
39392019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
3940
3941 * btrace.c (btrace_maint_clear): Update to handle change from VEC
3942 to std::vector.
3943 (btrace_maint_decode_pt): Likewise, and move allocation of the
3944 vector outside of the loop.
3945 (btrace_maint_update_packets): Update to handle change from VEC to
3946 std::vector.
3947 (btrace_maint_print_packets): Likewise.
3948 (maint_info_btrace_cmd): Likewise.
3949 * btrace.h: Remove use of DEF_VEC_O.
3950 (typedef btrace_pt_packet_s): Delete.
3951 (struct btrace_maint_info) <packets>: Change fromm VEC to
3952 std::vector.
3953 * gdbsupport/btrace-common.h: Remove 'vec.h' include.
3954
46f29a9a
AB
39552019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
3956
3957 * btrace.c (btrace_compute_ftrace_bts): Update for std::vector,
3958 make accesses into the vector constant references.
3959 (btrace_add_pc): Update for std::vector.
3960 (btrace_stitch_bts): Likewise.
3961 (parse_xml_btrace_block): Likewise.
3962 (btrace_maint_update_packets): Likewise.
3963 (btrace_maint_print_packets): Likewise.
3964 (maint_info_btrace_cmd): Likewise.
3965 * gdbsupport/btrace-common.c (btrace_data::fini): Update for
3966 std::vector.
3967 (btrace_data::empty): Likewise.
3968 (btrace_data_append): Likewise.
3969 * gdbsupport/btrace-common.h: Remove use of DEF_VEC_O.
3970 (typedef btrace_block_s): Delete.
3971 (struct btrace_block): Add constructor.
3972 (struct btrace_data_bts) <blocks>: Change to std::vector.
3973 * nat/linux-btrace.c (perf_event_read_bts): Update for
3974 std::vector.
3975 (linux_read_bts): Likewise.
3976
d770d56f
TT
39772019-10-01 Tom Tromey <tom@tromey.com>
3978
3979 * cli/cli-logging.c (show_logging_filename): Use styled_string.
3980
9d636d67
TT
39812019-10-01 Tom Tromey <tom@tromey.com>
3982
3983 * stack.c (print_frame, info_frame_command_core): Use
3984 styled_string.
3985 * linux-thread-db.c (try_thread_db_load_1)
3986 (try_thread_db_load_from_pdir_1): Use styled_string.
3987 * auto-load.c (file_is_auto_load_safe, execute_script_contents)
3988 (auto_load_section_scripts, info_auto_load_local_gdbinit)
3989 (maybe_print_unsupported_script_warning)
3990 (maybe_print_script_not_found_warning): Use styled_string.
3991 * ada-lang.c (user_select_syms): Use styled_string.
3992
7f6aba03
TT
39932019-10-01 Tom Tromey <tom@tromey.com>
3994
3995 * p-lang.c (pascal_printstr): Use metadata style.
3996 * value.c (show_convenience): Use metadata style.
3997 * valprint.c (valprint_check_validity, val_print_optimized_out)
3998 (val_print_not_saved, val_print_unavailable)
3999 (val_print_invalid_address, generic_val_print, val_print)
4000 (value_check_printable, val_print_array_elements): Use metadata
4001 style.
4002 * ui-out.h (class ui_out) <field_fmt>: New overload.
4003 <do_field_fmt>: Add style parameter.
4004 * ui-out.c (ui_out::field_fmt): New overload.
4005 * typeprint.c (type_print_unknown_return_type)
4006 (val_print_not_allocated, val_print_not_associated): Use metadata
4007 style.
4008 * tui/tui-out.h (class tui_ui_out) <do_field_fmt>: Add style
4009 parameter.
4010 * tui/tui-out.c (tui_ui_out::do_field_fmt): Update.
4011 * tracepoint.c (tvariables_info_1): Use metadata style.
4012 * stack.c (print_frame_arg, print_frame_info, print_frame)
4013 (info_frame_command_core): Use metadata style.
4014 * skip.c (info_skip_command): Use metadata style.
4015 * rust-lang.c (rust_print_enum): Use metadata style.
4016 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
4017 metadata style.
4018 * python/py-framefilter.c (py_print_single_arg): Use metadata
4019 style.
4020 * printcmd.c (do_one_display, print_variable_and_value): Use
4021 metadata style.
4022 * p-valprint.c (pascal_val_print)
4023 (pascal_object_print_value_fields): Use metadata style.
4024 * p-typeprint.c (pascal_type_print_base): Use metadata style.
4025 * mi/mi-out.h (class mi_ui_out) <do_field_fmt>: Add style
4026 parameter.
4027 * mi/mi-out.c (mi_ui_out::do_field_fmt): Update.
4028 * m2-valprint.c (m2_print_long_set): Use metadata style.
4029 * m2-typeprint.c (m2_print_type): Use metadata style.
4030 * infcmd.c (print_return_value_1): Use metadata style.
4031 * gnu-v3-abi.c (print_one_vtable): Use metadata style.
4032 * f-valprint.c (info_common_command_for_block): Use metadata
4033 style.
4034 * f-typeprint.c (f_type_print_base): Use metadata style.
4035 * expprint.c (print_subexp_standard): Use metadata style.
4036 * cp-valprint.c (cp_print_value_fields): Use metadata style.
4037 * cli/cli-style.h (class cli_style_option): Add constructor.
4038 (metadata_style): Declare.
4039 * cli/cli-style.c (metadata_style): New global.
4040 (_initialize_cli_style): Register metadata style.
4041 * cli-out.h (class cli_ui_out) <do_field_fmt>: Add style
4042 parameter.
4043 * cli-out.c (cli_ui_out::do_field_fmt): Update.
4044 * c-typeprint.c (c_type_print_base_struct_union)
4045 (c_type_print_base_1): Use metadata style.
4046 * breakpoint.c (watchpoint_value_print)
4047 (print_one_breakpoint_location): Use metadata style.
4048 * break-catch-syscall.c (print_one_catch_syscall): Use metadata
4049 style.
4050 * break-catch-sig.c (signal_catchpoint_print_one): Use metadata
4051 style.
4052 * ada-valprint.c (val_print_packed_array_elements, printstr)
4053 (print_field_values, ada_val_print_ref, ada_val_print): Use
4054 metadata style.
4055 * ada-typeprint.c (print_array_type, ada_print_type): Use metadata
4056 style.
4057 * ada-tasks.c (print_ada_task_info, info_task): Use metadata
4058 style.
4059 * ada-lang.c (user_select_syms): Use metadata style.
4060
14309bb6
TT
40612019-10-01 Tom Tromey <tom@tromey.com>
4062
4063 * cli/cli-cmds.c (pwd_command): Style output.
4064
6a831f06
PA
40652019-10-01 Pedro Alves <palves@redhat.com>
4066 Tom Tromey <tom@tromey.com>
4067
4068 * symtab.c (print_symbol_info): Use %ps.
4069 (print_msymbol_info): Use %ps.
4070 * symfile.c (symbol_file_add_with_addrs): Use %ps.
4071 * printcmd.c (print_variable_and_value): Use %ps.
4072 * macrocmd.c (show_pp_source_pos): Use %ps.
4073 * infrun.c (print_exited_reason): Use ui_out::message.
4074 * breakpoint.c (watchpoint_check, print_one_breakpoint_location)
4075 (describe_other_breakpoints): Use ui_out::message and new
4076 formats.
4077 (say_where): Use new formats.
4078 (bkpt_print_it, tracepoint_print_one_detail): Use ui_out::message
4079 and new formats.
4080
2a3c1174
PA
40812019-10-01 Pedro Alves <palves@redhat.com>
4082 Tom Tromey <tom@tromey.com>
4083
4084 * unittests/format_pieces-selftests.c: Add gdb_format parameter.
4085 (test_gdb_formats): New function.
4086 (run_tests): Call it.
4087 (test_format_specifier): Update.
4088 * utils.h (fputs_filtered): Update comment.
4089 (vfprintf_styled, vfprintf_styled_no_gdbfmt)
4090 (fputs_styled_unfiltered): Declare.
4091 * utils.c (fputs_styled_unfiltered): New function.
4092 (vfprintf_maybe_filtered): Add gdbfmt parameter.
4093 (vfprintf_filtered): Update.
4094 (vfprintf_unfiltered, vprintf_filtered): Update.
4095 (vfprintf_styled, vfprintf_styled_no_gdbfmt): New functions.
4096 * ui-out.h (enum ui_out_flag) <unfiltered_output,
4097 disallow_ui_out_field>: New constants.
4098 (enum class field_kind): New.
4099 (struct base_field_s, struct signed_field_s): New.
4100 (signed_field): New function.
4101 (struct string_field_s): New.
4102 (string_field): New function.
4103 (struct styled_string_s): New.
4104 (styled_string): New function.
4105 (class ui_out) <message>: Add comment.
4106 <vmessage, call_do_message>: New methods.
4107 <do_message>: Add style parameter.
4108 * ui-out.c (ui_out::call_do_message, ui_out::vmessage): New
4109 methods.
4110 (ui_out::message): Rewrite.
4111 * mi/mi-out.h (class mi_ui_out) <do_message>: Add style
4112 parameter.
4113 * mi/mi-out.c (mi_ui_out::do_message): Add style parameter.
4114 * gdbsupport/format.h (class format_pieces) <format_pieces>: Add
4115 gdb_extensions parameter.
4116 (class format_piece): Add parameter to constructor.
4117 (n_int_args): New field.
4118 * gdbsupport/format.c (format_pieces::format_pieces): Add
4119 gdb_extensions parameter. Handle '*'.
4120 * cli-out.h (class cli_ui_out) <do_message>: Add style parameter.
4121 * cli-out.c (cli_ui_out::do_message): Add style parameter. Call
4122 vfprintf_styled_no_gdbfmt.
4123 (cli_ui_out::do_field_string, cli_ui_out::do_spaces)
4124 (cli_ui_out::do_text, cli_ui_out::field_separator): Allow
4125 unfiltered output.
4126 * ui-style.h (struct ui_file_style) <ptr>: New method.
4127
0dfe5bfb
TT
41282019-10-01 Tom Tromey <tom@tromey.com>
4129
4130 * unittests/format_pieces-selftests.c: Update. Add final format.
4131 * gdbsupport/format.c (format_pieces::format_pieces): Don't add
4132 empty literal pieces.
4133
e43b10e1
TT
41342019-10-01 Tom Tromey <tom@tromey.com>
4135
4136 * ui-out.h (enum class ui_out_style_kind): Remove.
4137 (class ui_out) <field_string, field_stsream, do_field_string>:
4138 Change type of "style".
4139 * ui-out.c (ui_out::field_core_addr, ui_out::field_stream)
4140 (ui_out::field_string): Update.
4141 * tui/tui-out.h (class tui_ui_out) <do_field_string>: Change type
4142 of "style".
4143 * tui/tui-out.c (tui_ui_out::do_field_string): Update.
4144 * tracepoint.c (print_one_static_tracepoint_marker): Update.
4145 * stack.c (print_frame_arg, print_frame_info, print_frame):
4146 Update.
4147 * source.c (print_source_lines_base): Update.
4148 * solib.c (info_sharedlibrary_command): Update.
4149 * skip.c (info_skip_command): Update.
4150 * record-btrace.c (btrace_call_history_src_line)
4151 (btrace_call_history): Update.
4152 * python/py-framefilter.c (py_print_frame): Update.
4153 * mi/mi-out.h (class mi_ui_out) <do_field_string>: Change type of
4154 "style".
4155 * mi/mi-out.c (mi_ui_out::do_table_header)
4156 (mi_ui_out::do_field_signed, mi_ui_out::do_field_unsigned)
4157 (mi_ui_out::do_field_string): Update.
4158 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
4159 Update.
4160 * cli-out.h (class cli_ui_out) <do_field_string>: Change type of
4161 "style".
4162 * cli-out.c (cli_ui_out::do_table_header)
4163 (cli_ui_out::do_field_signed, cli_ui_out::do_field_unsigned)
4164 (cli_ui_out::do_field_skip, cli_ui_out::do_field_string)
4165 (cli_ui_out::do_field_fmt): Update.
4166 * breakpoint.c (print_breakpoint_location): Update.
4167 (update_static_tracepoint): Update.
4168
cd7c32c3
PW
41692019-10-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4170
4171 * main.c (relocate_gdbinit_path_maybe_in_datadir): Remove std::string
4172 conversion of gdb_datadir.
4173 (captured_main_1): Remove xstrdup when assigning to gdb_datadir,
4174 remove not needed c_str ().
4175
8fe0f950
AT
41762019-09-30 Ali Tamur <tamur@google.com>
4177
4178 * dwarf2read.c (skip_one_die): Handle DW_FORM_strx forms.
4179 (dwarf2_string_attr): Likewise.
4180
5f48f8f3
AT
41812019-09-30 Ali Tamur <tamur@google.com>
4182
4183 * dwarf2read.c (process_full_comp_unit): Remove whitespace at the EOL.
4184 (process_full_type_unit): Likewise.
4185 (dump_die_shallow): Likewise.
4186 (cu_debug_loc_section): Likewise.
4187
6fb08628
CB
41882019-09-28 Christian Biesinger <cbiesinger@google.com>
4189
4190 * minsyms.c (compare_minimal_symbols): Rename to...
4191 (minimal_symbol_is_less_than): ...this, and adjust to STL
4192 conventions (return bool, take arguments as references)
4193 (minimal_symbol_reader::install): Call std::sort instead
4194 of qsort.
4195
c7ee338a
CB
41962019-09-29 Christian Biesinger <cbiesinger@google.com>
4197
4198 * minsyms.h (msymbol_hash): Document that this is a case-insensitive
4199 hash and why.
4200 * objfiles.h (struct objfile_per_bfd_storage) <demangled_names_hash,
4201 msymbol_hash, msymbol_demangled_hash>: Improve comments.
4202
703a86c2
SM
42032019-09-30 Simon Marchi <simon.marchi@polymtl.ca>
4204
4205 * psymtab.c (add_psymbol_to_list): Move comment to psympriv.h.
4206 * psympriv.h (add_psymbol_to_list): Move comment here and update
4207 it.
4208
0df0352a
TV
42092019-09-29 Tom de Vries <tdevries@suse.de>
4210
4211 * contrib/cc-with-tweaks.sh (get_tmpdir): New function.
4212 Use $tmpdir/$(basename "$output_file").dwz instead of
4213 "${output_file}.dwz".
4214
ad75efa6
SM
42152019-09-28 Simon Marchi <simon.marchi@polymtl.ca>
4216
4217 PR gdb/25045
4218 * hppa-linux-nat.c: Include gdbarch.h.
4219
ececd218
CB
42202019-09-26 Christian Biesinger <cbiesinger@google.com>
4221
4222 * blockframe.c (find_pc_partial_function): Change return type to bool.
4223 * elfread.c (elf_gnu_ifunc_resolve_name): Likewise.
4224 * minsyms.c (in_gnu_ifunc_stub): Likewise.
4225 (stub_gnu_ifunc_resolve_name): Likewise.
4226 * symtab.c (compare_filenames_for_search): Likewise.
4227 (compare_glob_filenames_for_search): Likewise.
4228 (matching_obj_sections): Likewise.
4229 (symbol_matches_domain): Likewise.
4230 (find_line_symtab): Change out param EXACT_MATCH to bool *.
4231 (find_line_pc): Change return type to bool.
4232 (find_line_pc_range): Likewise.
4233 (producer_is_realview): Likewise.
4234 * symtab.h (symbol_matches_domain): Likewise.
4235 (find_pc_partial_function): Likewise.
4236 (find_pc_line_pc_range): Likewise.
4237 (in_gnu_ifunc_stub): Likewise.
4238 (struct gnu_ifunc_fns) <gnu_ifunc_resolve_name>: Likewise.
4239 (find_line_pc): Likewise.
4240 (find_line_pc_range): Likewise.
4241 (matching_obj_sections): Likewise.
4242 (find_line_symtab): Change out parameter to bool.
4243 (producer_is_realview): Change return type to bool.
4244 (compare_filenames_for_search): Likewise.
4245 (compare_glob_filenames_for_search): Likewise.
4246
27a900b8
TT
42472019-09-26 Tom Tromey <tom@tromey.com>
4248
4249 * Makefile.in (COMMON_SFILES): Remove gdb_usleep.c.
4250 (HFILES_NO_SRCDIR): Remove gdb_usleep.h.
4251 * gdb_usleep.h: Remove.
4252 * gdb_usleep.c: Remove.
4253 * utils.c: Don't include gdb_usleep.h.
4254
5d63b30a
TT
42552019-09-26 Tom Tromey <tromey@adacore.com>
4256
4257 * python/py-type.c (type_to_type_object): Call check_typedef
4258 for stub types.
4259
12904d37
TT
42602019-09-26 Tom Tromey <tom@tromey.com>
4261
4262 * utils.h (initialize_utils): Don't declare.
4263 * top.c (gdb_init): Don't call initialize_utils.
4264 * utils.c (initialize_utils): Remove. Move contents...
4265 (_initialize_utils): ... here.
4266
858f25f0
TT
42672019-09-25 Tom Tromey <tom@tromey.com>
4268
4269 * python/py-objfile.c (objfpy_get_build_id): Use bin2hex.
4270 * utils.h (make_hex_string): Don't declare.
4271 * utils.c (make_hex_string): Remove.
4272
3d435220
TV
42732019-09-24 Tom de Vries <tdevries@suse.de>
4274
4275 PR gdb/23815
4276 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers):
4277 Initialize xstateregs before ptrace PTRACE_GETREGSET call.
4278
ddd44b70
DD
42792019-09-23 Dimitar Dimitrov <dimitar@dinux.eu>
4280
4281 * NEWS: Mention new simulator port for PRU.
4282
f945dedf
CB
42832019-09-23 Christian Biesinger <cbiesinger@google.com>
4284
4285 * ada-exp.y (write_object_remaining): Update.
4286 * ada-lang.c (ada_decode): Return a std::string instead of a char*
4287 and eliminate the static buffer.
4288 (ada_decode_symbol): Update.
4289 (ada_la_decode): Update.
4290 (ada_sniff_from_mangled_name): Update.
4291 (is_valid_name_for_wild_match): Update.
4292 (ada_lookup_name_info::matches): Update and simplify.
4293 (name_matches_regex): Update.
4294 (ada_add_global_exceptions): Update.
4295 * ada-lang.h (ada_decode): Update signature.
4296 * ada-varobj.c (ada_varobj_describe_simple_array_child): Update.
4297 * dwarf-index-write.c (debug_names::insert): Update.
4298
7ab78ccb
SM
42992019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
4300
4301 * solib-svr4.c (svr4_iterate_over_objfiles_in_search_order): Fix
4302 formatting.
4303
9252448b
SM
43042019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
4305
4306 * breakpoint.h (bp_location) <inserted, permanent, duplicate>:
4307 Change "nonzero" to "true" in documentation.
4308
626ca2c0
CB
43092019-09-20 Christian Biesinger <cbiesinger@google.com>
4310
4311 * solib-darwin.c (darwin_lookup_lib_symbol): Remove.
4312 (_initialize_darwin_solib): Don't set
4313 darwin_so_ops.lookup_lib_global_symbol.
4314 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets): Call
4315 set_gdbarch_iterate_over_objfiles_in_search_order.
4316 (elf_lookup_lib_symbol): Rename to...
4317 (svr4_iterate_over_objfiles_in_search_order): this, and update
4318 to iterate semantics.
4319 (_initialize_svr4_solib): Don't set lookup_lib_global_symbol.
4320 * solib.c (solib_global_lookup): Remove.
4321 * solist.h (struct target_so_ops): Remove lookup_lib_global_symbol.
4322 (solib_global_lookup): Remove.
4323 * symtab.c (lookup_global_or_static_symbol): Remove call to
4324 solib_global_lookup.
4325
5a3a0d63
JB
43262019-09-20 Joel Brobecker <brobecker@adacore.com>
4327
4328 * NEWS: Move entries about default MI version now being
4329 version 3, and about the GDB/MI fix for multi-location
4330 breakpoints to the "since GDB 8.3" section.
4331
ffea1427
JB
43322019-09-20 Joel Brobecker <brobecker@adacore.com>
4333
4334 GDB 8.3.1 released.
4335
abf516c6
UW
43362019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
4337
4338 * NEWS: Mention that Cell/B.E. debugging support was removed.
4339 * MAINTAINERS: Remove spu target.
4340
4341 * config/djgpp/fnchange.lst: Remove entries for removed files.
4342
4343 * Makefile.in (ALL_TARGET_OBS): Remove solib-spu.o,
4344 spu-multiarch.o, and spu-tdep.o.
4345 (HFILES_NO_SRCDIR): Remove solib-spu.h and spu-tdep.h.
4346 (ALLDEPFILES): Remove solib-spu.c, spu-linux-nat.c,
4347 spu-multiarch.c, and spu-tdep.c.
4348 * spu-linux-nat.c: Remove file.
4349 * spu-multiarch.c: Remove file.
4350 * spu-tdep.c: Remove file.
4351 * spu-tdep.h: Remove file.
4352 * solib-spu.c: Remove file.
4353 * solib-spu.h: Remove file.
4354
4355 * configure.host (powerpc64*-*-linux*): Remove Cell/B.E. support.
4356 * configure.nat (spu-linux): Remove.
4357 * configure.tgt (powerpc*-*-linux*): Remove solib-spu.o and
4358 solib-multiarch.o from gdb_target_obs.
4359 (spu*-*-*): Remove.
4360
4361 * arch/ppc-linux-common.h (struct ppc_linux_features): Remove "cell"
4362 feature flag.
4363 (ppc_linux_no_features): Update.
4364 * arch/ppc-linux-common.c (ppc_linux_match_description): Remove
4365 Cell/B.E. support.
4366 * arch/ppc-linux-tdesc.h (tdesc_powerpc_cell32l): Remove declaration.
4367 (tdesc_powerpc_cell64l): Likewise.
4368 * nat/ppc-linux.h (PPC_FEATURE_CELL): Remove.
4369 * ppc-linux-nat.c (ppc_linux_nat_target::read_description): Remove
4370 Cell/B.E. support.
4371 * ppc-linux-tdep.h: Do not include "solib-spu.h" or "spu-tdep.h".
4372 Do not include "features/rs6000/powerpc-cell32l.c" or
4373 "features/rs6000/powerpc-cell64l.c".
4374 (ppc_linux_spu_section): Remove.
4375 (ppc_linux_core_read_description): Remove Cell/B.E. support.
4376 (spe_context_objfile, spe_context_lm_addr, spe_context_offset,
4377 spe_context_cache_ptid, spe_context_cache_ptid): Remove.
4378 (ppc_linux_spe_context_lookup): Remove.
4379 (ppc_linux_spe_context_inferior_created): Remove.
4380 (ppc_linux_spe_context_solib_loaded): Remove.
4381 (ppc_linux_spe_context_solib_unloaded): Remove.
4382 (ppc_linux_spe_context): Remove.
4383 (struct ppu2spu_cache): Remove.
4384 (ppu2spu_prev_arch, ppu2spu_this_id, ppu2spu_prev_register): Remove.
4385 (struct ppu2spu_data): Remove.
4386 (ppu2spu_unwind_register, ppu2spu_sniffer, ppu2spu_dealloc_cache,
4387 ppu2spu_unwind): Remove.
4388 (ppc_linux_init_abi): Remove Cell/B.E. support.
4389 * rs6000-tdep.h (rs6000_gdbarch_init): Remove Cell/B.E. support.
4390
4391 * features/Makefile (rs6000/powerpc-cell32l-expedite): Remove.
4392 (rs6000/powerpc-cell64l-expedite): Likewise
4393 (WHICH): Remove rs6000/powerpc-cell32l and rs6000/powerpc-cell64l.
4394 (XMLTOC): Remove rs6000/powerpc-cell32l.xml and
4395 rs6000/powerpc-cell64l.xml.
4396 * features/rs6000/powerpc-cell32l.xml: Remove.
4397 * features/rs6000/powerpc-cell64l.xml: Likewise.
4398 * features/rs6000/powerpc-cell32l.c: Remove generated file.
4399 * features/rs6000/powerpc-cell64l.c: Likewise.
4400 * regformats/rs6000/powerpc-cell32l.dat: Remove generated file.
4401 * regformats/rs6000/powerpc-cell64l.dat: Likewise.
4402 * regformats/reg-spu.dat: Remove.
4403
4404 * target.h (enum target_object): Remove TARGET_OBJECT_SPU.
4405 * corelow.c (struct spuid_list): Remove.
4406 (add_to_spuid_list): Remove.
4407 (core_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
4408 * remote.c (PACKET_qXfer_spu_read, PACKET_qXfer_spu_write): Remove.
4409 (remote_protocol_features): Remove associated entries.
4410 (_initialize_remote): No longer initialize them.
4411 (remote_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
4412 * linux-nat.c (SPUFS_MAGIC): Remove.
4413 (linux_proc_xfer_spu): Remove.
4414 (spu_enumerate_spu_ids): Remove.
4415 (linux_nat_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
4416 * linux-tdep.c (-linux_spu_make_corefile_notes): Remove.
4417 (linux_make_corefile_notes): No longer call it.
4418
4419 * regcache.c (cooked_read_test): Remove bfd_arch_spu special case.
4420 (cooked_write_test): Likewise.
4421
78e8cb91
TT
44222019-09-20 Tom Tromey <tom@tromey.com>
4423
4424 * NEWS: Mention case-sensitivity of TUI commands.
4425 * tui/tui-win.c (tui_set_focus_command): Now case-sensitive.
4426 (tui_set_win_height_command, parse_scrolling_args): Likewise.
4427 * tui/tui-layout.c (tui_layout_command): Now case-sensitive.
4428
f074b67e
TT
44292019-09-20 Tom Tromey <tom@tromey.com>
4430
4431 * tui/tui-source.c (tui_source_window::set_contents): Use
4432 make_unique_xstrdup.
4433 * tui/tui-disasm.c (tui_disasm_window::set_contents): Use
4434 make_unique_xstrdup.
4435
63c4bf19
TT
44362019-09-20 Tom Tromey <tom@tromey.com>
4437
4438 * tui/tui-data.c: Remove separator comments.
4439 * tui/tui-layout.c: Remove separator comments.
4440 * tui/tui-win.c: Remove separator comments.
4441 * tui/tui-wingeneral.c: Remove separator comments.
4442
43df9b2f
TT
44432019-09-20 Tom Tromey <tom@tromey.com>
4444
4445 * tui/tui.h (strcat_to_buf): Don't declare.
4446 * tui/tui.c (strcat_to_buf): Remove.
4447
7226433c
TT
44482019-09-20 Tom Tromey <tom@tromey.com>
4449
4450 * tui/tui-source.h (struct tui_source_window) <m_fullname>: Rename
4451 from "fullname".
4452 * tui/tui-source.c (tui_source_window::set_contents)
4453 (tui_source_window::location_matches_p)
4454 (tui_source_window::maybe_update): Update.
4455
80df3337
TT
44562019-09-20 Tom Tromey <tom@tromey.com>
4457
4458 * tui/tui-regs.h (struct tui_data_window) <get_current_group>:
4459 Update.
4460 <m_regs_content, m_regs_column_count, m_current_group>: Add "m_"
4461 prefix.
4462 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
4463 (tui_data_window::line_from_reg_element_no)
4464 (tui_data_window::first_reg_element_no_inline)
4465 (tui_data_window::show_registers)
4466 (tui_data_window::show_register_group)
4467 (tui_data_window::display_registers_from)
4468 (tui_data_window::display_registers_from_line)
4469 (tui_data_window::first_data_item_displayed)
4470 (tui_data_window::delete_data_content_windows)
4471 (tui_data_window::erase_data_content)
4472 (tui_data_window::do_scroll_vertical)
4473 (tui_data_window::refresh_window)
4474 (tui_data_window::check_register_values): Update.
4475
9923f347
TT
44762019-09-20 Tom Tromey <tom@tromey.com>
4477
4478 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN): Remove define.
4479 (struct tui_locator_window) <full_name, proc_name>: Now
4480 std::string.
4481 * tui/tui-stack.c (tui_locator_window::make_status_line)
4482 (tui_locator_window::set_locator_fullname)
4483 (tui_locator_window::set_locator_info): Update.
4484 * tui/tui-source.c (tui_source_window::set_contents)
4485 (tui_source_window::showing_source_p): Update.
4486
b76251ab
TT
44872019-09-20 Tom Tromey <tom@tromey.com>
4488
4489 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
4490 Don't call tui_locator_win_info_ptr.
4491
0891be08
TT
44922019-09-20 Tom Tromey <tom@tromey.com>
4493
4494 * tui/tui-win.c (tui_resize_all): Don't call refresh.
4495
1b935acf
TT
44962019-09-20 Tom Tromey <tom@tromey.com>
4497
4498 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use 1 as
4499 height for locator.
4500 * tui/tui-stack.c (tui_locator_window::rerender): Call scrollok.
4501 * tui/tui-layout.c (show_source_disasm_command, show_data)
4502 (show_source_or_disasm_and_command): Use 1 as height for locator.
4503
9abd8a65
TT
45042019-09-20 Tom Tromey <tom@tromey.com>
4505
4506 * tui/tui.c (tui_enable): Update.
4507 * tui/tui-win.c (tui_sigwinch_handler, tui_async_resize_screen):
4508 Update.
4509 * tui/tui-data.h (tui_win_resized, tui_set_win_resized_to):
4510 Update.
4511 * tui/tui-data.c (win_resized): Now bool.
4512 (tui_win_resized): Return bool.
4513 (tui_set_win_resized_to): Accept a bool.
4514
b5457826
TT
45152019-09-20 Tom Tromey <tom@tromey.com>
4516
4517 * tui/tui-regs.h (struct tui_data_window) <show_register_group>:
4518 Change type of "refresh_values_only".
4519 * tui/tui-regs.c (tui_data_window::show_register_group): Change
4520 type of "refresh_values_only".
4521
6b915f7d
TT
45222019-09-20 Tom Tromey <tom@tromey.com>
4523
4524 * tui/tui-disasm.c (struct tui_asm_line) <addr_string, insn>: Now
4525 std::string.
4526 (tui_disassemble): Add "pos" parameter.
4527 (tui_disasm_window::set_contents): Simplify.
4528
2ad52f6f
TT
45292019-09-20 Tom Tromey <tom@tromey.com>
4530
4531 * tui/tui-winsource.h (struct tui_source_window_base)
4532 <show_source_content>: Now private.
4533 * tui/tui-winsource.c
4534 (tui_source_window_base::show_source_content): Don't handle empty
4535 content case.
4536
b3b1bde6
TT
45372019-09-20 Tom Tromey <tom@tromey.com>
4538
4539 * tui/tui-layout.c (show_source_disasm_command)
4540 (show_source_or_disasm_and_command): Don't call
4541 show_source_content.
4542
71a25ed2
TT
45432019-09-20 Tom Tromey <tom@tromey.com>
4544
4545 * tui/tui-stack.h (struct tui_locator_window) <make_status_line>:
4546 Declare.
4547 * tui/tui-stack.c (tui_locator_window::make_status_line): Rename
4548 from tui_make_status_line.
4549 (tui_locator_window::rerender): Update.
4550
f8532154
TT
45512019-09-20 Tom Tromey <tom@tromey.com>
4552
4553 * tui/tui-stack.c (tui_make_status_line): Return std::string.
4554 (tui_locator_window::rerender): Update.
4555
2d81b349
TT
45562019-09-20 Tom Tromey <tom@tromey.com>
4557
4558 * tui/tui-winsource.h (struct tui_source_window_base)
4559 <~tui_source_window_base>: Don't declare.
4560 <fullname>: Remove.
4561 * tui/tui-winsource.c (~tui_source_window_base): Remove.
4562 * tui/tui-source.h (struct tui_source_window) <fullname>: New
4563 member.
4564 * tui/tui-source.c (tui_source_window::set_contents): Update.
4565 (tui_source_window::location_matches_p)
4566 (tui_source_window::maybe_update): Update.
4567
f14bec58
TT
45682019-09-20 Tom Tromey <tom@tromey.com>
4569
4570 * tui/tui-winsource.h (~tui_source_element): Remove.
4571 (tui_source_element): Update.
4572 (struct tui_source_element) <line>: Now a unique_xmalloc_ptr.
4573 * tui/tui-winsource.c (tui_show_source_line): Update.
4574 * tui/tui-source.c (tui_source_window::set_contents): Update.
4575 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
4576
78d5933a
TT
45772019-09-20 Tom Tromey <tom@tromey.com>
4578
4579 * tui/tui-data.h (tui_clear_source_windows_detail): Don't
4580 declare.
4581 * tui/tui-layout.c (tui_add_win_to_layout): Don't call
4582 tui_clear_source_windows_detail.
4583 * tui/tui-winsource.h (struct tui_source_window_base)
4584 <clear_detail>: Don't declare.
4585 * tui/tui-winsource.c (tui_source_window_base::clear_detail):
4586 Remove.
4587 * tui/tui-data.c (tui_clear_source_windows_detail): Remove.
4588
d4207696
TT
45892019-09-20 Tom Tromey <tromey@adacore.com>
4590
4591 PR ada/24919:
4592 * block.c (contained_in): Fix final return value.
4593
00f93c44
AM
45942019-09-20 Alan Modra <amodra@gmail.com>
4595
4596 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Use bfd_set_usrdata.
4597 * dwarf2read.c (dwarf2_read_gdb_index, dwarf2_read_debug_names),
4598 (read_indirect_string_from_dwz): Use bfd accessor.
4599 * dwarf2read.h (struct dwz_file <filename>): Likewise.
4600 * machoread.c (macho_symfile_read_all_oso): Likewise.
4601 * solib.c (solib_bfd_open): Likewise.
4602
e4153ae6
CB
46032019-09-19 Christian Biesinger <cbiesinger@google.com>
4604
4605 * eval.c: Move declaration of overload_resolution to...
4606 * value.h: ...here.
4607
c7ae7675
CB
46082019-09-19 Christian Biesinger <cbiesinger@google.com>
4609
4610 * arm-linux-nat.c: Remove extern declaration for arm_apcs_32.
4611 * arm-linux-tdep.c: Likewise.
4612 * arm-nbsd-nat.c: Likewise.
4613 * arm-tdep.h: Declare arm_apcs_32.
4614 * arm-tdep.c: Move documentation for arm_apcs_32 to arm-tdep.h.
4615
e86f08d2
CB
46162019-09-19 Christian Biesinger <cbiesinger@google.com>
4617
4618 * dwarf2loc.c: Remove extern declaration of dwarf_always_disassemble.
4619 * dwarf2read.h: Declare dwarf_always_disassemble.
4620
f64e2f40
TV
46212019-09-19 Tom de Vries <tdevries@suse.de>
4622
4623 PR gdb/25009
4624 * source-cache.c (source_cache::ensure): Catch exception thrown during
4625 construction of the highlighter.
4626
fd361982
AM
46272019-09-18 Alan Modra <amodra@gmail.com>
4628
4629 * aarch64-linux-tdep.c, * arm-tdep.c, * auto-load.c,
4630 * coff-pe-read.c, * coffread.c, * corelow.c, * dbxread.c,
4631 * dicos-tdep.c, * dwarf2-frame.c, * dwarf2read.c, * elfread.c,
4632 * exec.c, * fbsd-tdep.c, * gcore.c, * gdb_bfd.c, * gdb_bfd.h,
4633 * hppa-tdep.c, * i386-cygwin-tdep.c, * i386-fbsd-tdep.c,
4634 * i386-linux-tdep.c, * jit.c, * linux-tdep.c, * machoread.c,
4635 * maint.c, * mdebugread.c, * minidebug.c, * mips-linux-tdep.c,
4636 * mips-sde-tdep.c, * mips-tdep.c, * mipsread.c, * nto-tdep.c,
4637 * objfiles.c, * objfiles.h, * osabi.c, * ppc-linux-tdep.c,
4638 * ppc64-tdep.c, * record-btrace.c, * record-full.c, * remote.c,
4639 * rs6000-aix-tdep.c, * rs6000-tdep.c, * s390-linux-tdep.c,
4640 * s390-tdep.c, * solib-aix.c, * solib-dsbt.c, * solib-frv.c,
4641 * solib-spu.c, * solib-svr4.c, * solib-target.c,
4642 * spu-linux-nat.c, * spu-tdep.c, * symfile-mem.c, * symfile.c,
4643 * symmisc.c, * symtab.c, * target.c, * windows-nat.c,
4644 * xcoffread.c, * cli/cli-dump.c, * compile/compile-object-load.c,
4645 * mi/mi-interp.c: Update throughout for bfd section macro and
4646 function changes.
4647 * gcore (gcore_create_callback): Use bfd_set_section_lma.
4648 * spu-tdep.c (spu_overlay_new_objfile): Likewise.
4649
11061048
TT
46502019-09-18 Tom Tromey <tom@tromey.com>
4651
4652 * NEWS: Add entry.
4653 * tui/tui.c (tui_initialize_readline): Set name of keymap. Do not
4654 call rl_initialize.
4655 (tui_enable): Do not call rl_initialize.
4656
7a27b85f
CG
46572019-09-18 Christian Groessler <chris@groessler.org>
4658
4659 * alpha-linux-nat.c: Include gdbarch.h.
4660
f64eea3a
SM
46612019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
4662
4663 * ui-file.c: Include cli/cli-style.h.
4664 (term_cli_styling): Remove cli_styling declaration.
4665
e6f7f6d1
AM
46662019-09-18 Alan Modra <amodra@gmail.com>
4667
4668 * arm-tdep.c (arm_record_special_symbol): Update bfd_get_section
4669 to bfd_asymbol_section.
4670
1d38e9d1
AM
46712019-09-18 Alan Modra <amodra@gmail.com>
4672
4673 * amd64-dicos-tdep.c (amd64_dicos_osabi_sniffer): Constify target.
4674 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
4675 * i386-dicos-tdep.c (i386_dicos_osabi_sniffer): Likewise.
4676
90d92a63
AM
46772019-09-18 Alan Modra <amodra@gmail.com>
4678
4679 * solib-spu.c (spu_bfd_open): Use bfd_set_filename.
4680 * spu-linux-nat.c (spu_bfd_open): Likewise.
4681
a3d181d2
CB
46822019-09-18 Christian Biesinger <cbiesinger@google.com>
4683
4684 * dwarf2loc.c: Change extern declaration of dwarf_always_disassemble
4685 to bool to match definition in dwarf2read.c.
4686
491144b5
CB
46872019-09-17 Christian Biesinger <cbiesinger@google.com>
4688
4689 * ada-lang.c (ada_ignore_descriptive_types_p): Change to bool.
4690 (print_signatures): Likewise.
4691 (trust_pad_over_xvs): Likewise.
4692 * arch/aarch64-insn.c (aarch64_debug): Likewise.
4693 * arch/aarch64-insn.h (aarch64_debug): Likewise.
4694 * arm-linux-nat.c (arm_apcs_32): Likewise.
4695 * arm-linux-tdep.c (arm_apcs_32): Likewise.
4696 * arm-nbsd-nat.c (arm_apcs_32): Likewise.
4697 * arm-tdep.c (arm_debug): Likewise.
4698 (arm_apcs_32): Likewise.
4699 * auto-load.c (debug_auto_load): Likewise.
4700 (auto_load_gdb_scripts): Likewise.
4701 (global_auto_load): Likewise.
4702 (auto_load_local_gdbinit): Likewise.
4703 (auto_load_local_gdbinit_loaded): Likewise.
4704 * auto-load.h (global_auto_load): Likewise.
4705 (auto_load_local_gdbinit): Likewise.
4706 (auto_load_local_gdbinit_loaded): Likewise.
4707 * breakpoint.c (disconnected_dprintf): Likewise.
4708 (breakpoint_proceeded): Likewise.
4709 (automatic_hardware_breakpoints): Likewise.
4710 (always_inserted_mode): Likewise.
4711 (target_exact_watchpoints): Likewise.
4712 (_initialize_breakpoint): Update.
4713 * breakpoint.h (target_exact_watchpoints): Change to bool.
4714 * btrace.c (maint_btrace_pt_skip_pad): Likewise.
4715 * cli/cli-cmds.c (trace_commands): Likewise.
4716 * cli/cli-cmds.h (trace_commands): Likewise.
4717 * cli/cli-decode.c (add_setshow_boolean_cmd): Change int* argument
4718 to bool*.
4719 * cli/cli-logging.c (logging_overwrite): Change to bool.
4720 (logging_redirect): Likewise.
4721 (debug_redirect): Likewise.
4722 * cli/cli-option.h (option_def) <boolean>: Change return type to bool*.
4723 (struct boolean_option_def) <get_var_address_cb_>: Change return type
4724 to bool.
4725 <boolean_option_def>: Update.
4726 (struct flag_option_def): Change default type of Context to bool
4727 from int.
4728 <flag_option_def>: Change return type of var_address_cb_ to bool*.
4729 * cli/cli-setshow.c (do_set_command): Cast to bool* instead of int*.
4730 (get_setshow_command_value_string): Likewise.
4731 * cli/cli-style.c (cli_styling): Change to bool.
4732 (source_styling): Likewise.
4733 * cli/cli-style.h (source_styling): Likewise.
4734 (cli_styling): Likewise.
4735 * cli/cli-utils.h (struct qcs_flags) <quiet, cont, silent>: Change
4736 to bool.
4737 * command.h (var_types): Update comment.
4738 (add_setshow_boolean_cmd): Change int* var argument to bool*.
4739 * compile/compile-cplus-types.c (debug_compile_cplus_types): Change to
4740 bool.
4741 (debug_compile_cplus_scopes): Likewise.
4742 * compile/compile-internal.h (compile_debug): Likewise.
4743 * compile/compile.c (compile_debug): Likewise.
4744 (struct compile_options) <raw>: Likewise.
4745 * cp-support.c (catch_demangler_crashes): Likewise.
4746 * cris-tdep.c (usr_cmd_cris_version_valid): Likewise.
4747 (usr_cmd_cris_dwarf2_cfi): Likewise.
4748 * csky-tdep.c (csky_debug): Likewise.
4749 * darwin-nat.c (enable_mach_exceptions): Likewise.
4750 * dcache.c (dcache_enabled_p): Likewise.
4751 * defs.h (info_verbose): Likewise.
4752 * demangle.c (demangle): Likewise.
4753 (asm_demangle): Likewise.
4754 * dwarf-index-cache.c (debug_index_cache): Likewise.
4755 * dwarf2-frame.c (dwarf2_frame_unwinders_enabled_p): Likewise.
4756 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Likewise.
4757 * dwarf2read.c (check_physname): Likewise.
4758 (use_deprecated_index_sections): Likewise.
4759 (dwarf_always_disassemble): Likewise.
4760 * eval.c (overload_resolution): Likewise.
4761 * event-top.c (set_editing_cmd_var): Likewise.
4762 (exec_done_display_p): Likewise.
4763 * event-top.h (set_editing_cmd_var): Likewise.
4764 (exec_done_display_p): Likewise.
4765 * exec.c (write_files): Likewise.
4766 * fbsd-nat.c (debug_fbsd_lwp): Likewise
4767 (debug_fbsd_nat): Likewise.
4768 * frame.h (struct frame_print_options) <print_raw_frame_arguments>:
4769 Likewise.
4770 (struct set_backtrace_options) <backtrace_past_main>: Likewise.
4771 <backtrace_past_entry> Likewise.
4772 * gdb-demangle.h (demangle): Likewise.
4773 (asm_demangle): Likewise.
4774 * gdb_bfd.c (bfd_sharing): Likewise.
4775 * gdbcore.h (write_files): Likewise.
4776 * gdbsupport/common-debug.c (show_debug_regs): Likewise.
4777 * gdbsupport/common-debug.h (show_debug_regs): Likewise.
4778 * gdbthread.h (print_thread_events): Likewise.
4779 * gdbtypes.c (opaque_type_resolution): Likewise.
4780 (strict_type_checking): Likewise.
4781 * gnu-nat.c (gnu_debug_flag): Likewise.
4782 * guile/scm-auto-load.c (auto_load_guile_scripts): Likewise.
4783 * guile/scm-param.c (pascm_variable): Add boolval.
4784 (add_setshow_generic): Update.
4785 (pascm_param_value): Update.
4786 (pascm_set_param_value_x): Update.
4787 * hppa-tdep.c (hppa_debug): Change to bool..
4788 * infcall.c (may_call_functions_p): Likewise.
4789 (coerce_float_to_double_p): Likewise.
4790 (unwind_on_signal_p): Likewise.
4791 (unwind_on_terminating_exception_p): Likewise.
4792 * infcmd.c (startup_with_shell): Likewise.
4793 * inferior.c (print_inferior_events): Likewise.
4794 * inferior.h (startup_with_shell): Likewise.
4795 (print_inferior_events): Likewise.
4796 * infrun.c (step_stop_if_no_debug): Likewise.
4797 (detach_fork): Likewise.
4798 (debug_displaced): Likewise.
4799 (disable_randomization): Likewise.
4800 (non_stop): Likewise.
4801 (non_stop_1): Likewise.
4802 (observer_mode): Likewise.
4803 (observer_mode_1): Likewise.
4804 (set_observer_mode): Update.
4805 (sched_multi): Change to bool.
4806 * infrun.h (debug_displaced): Likewise.
4807 (sched_multi): Likewise.
4808 (step_stop_if_no_debug): Likewise.
4809 (non_stop): Likewise.
4810 (disable_randomization): Likewise.
4811 * linux-tdep.c (use_coredump_filter): Likewise.
4812 (dump_excluded_mappings): Likewise.
4813 * linux-thread-db.c (auto_load_thread_db): Likewise.
4814 (check_thread_db_on_load): Likewise.
4815 * main.c (captured_main_1): Update.
4816 * maint-test-options.c (struct test_options_opts) <flag_opt, xx1_opt,
4817 xx2_opt, boolean_opt>: Change to bool.
4818 * maint-test-settings.c (maintenance_test_settings_boolean): Likewise.
4819 * maint.c (maintenance_profile_p): Likewise.
4820 (per_command_time): Likewise.
4821 (per_command_space): Likewise.
4822 (per_command_symtab): Likewise.
4823 * memattr.c (inaccessible_by_default): Likewise.
4824 * mi/mi-main.c (mi_async): Likewise.
4825 (mi_async_1): Likewise.
4826 * mips-tdep.c (mips64_transfers_32bit_regs_p): Likewise.
4827 * nat/fork-inferior.h (startup_with_shell): Likewise.
4828 * nat/linux-namespaces.c (debug_linux_namespaces): Likewise.
4829 * nat/linux-namespaces.h (debug_linux_namespaces): Likewise.
4830 * nios2-tdep.c (nios2_debug): Likewise.
4831 * or1k-tdep.c (or1k_debug): Likewise.
4832 * parse.c (parser_debug): Likewise.
4833 * parser-defs.h (parser_debug): Likewise.
4834 * printcmd.c (print_symbol_filename): Likewise.
4835 * proc-api.c (procfs_trace): Likewise.
4836 * python/py-auto-load.c (auto_load_python_scripts): Likewise.
4837 * python/py-param.c (union parmpy_variable): Add "bool boolval" field.
4838 (set_parameter_value): Update.
4839 (add_setshow_generic): Update.
4840 * python/py-value.c (copy_py_bool_obj): Change argument from int*
4841 to bool*.
4842 * python/python.c (gdbpy_parameter_value): Cast to bool* instead of
4843 int*.
4844 * ravenscar-thread.c (ravenscar_task_support): Change to bool.
4845 * record-btrace.c (record_btrace_target::store_registers): Update.
4846 * record-full.c (record_full_memory_query): Change to bool.
4847 (record_full_stop_at_limit): Likewise.
4848 * record-full.h (record_full_memory_query): Likewise.
4849 * remote-notif.c (notif_debug): Likewise.
4850 * remote-notif.h (notif_debug): Likewise.
4851 * remote.c (use_range_stepping): Likewise.
4852 (interrupt_on_connect): Likewise.
4853 (remote_break): Likewise.
4854 * ser-tcp.c (tcp_auto_retry): Likewise.
4855 * ser-unix.c (serial_hwflow): Likewise.
4856 * skip.c (debug_skip): Likewise.
4857 * solib-aix.c (solib_aix_debug): Likewise.
4858 * spu-tdep.c (spu_stop_on_load_p): Likewise.
4859 (spu_auto_flush_cache_p): Likewise.
4860 * stack.c (struct backtrace_cmd_options) <full, no_filters, hide>:
4861 Likewise.
4862 (struct info_print_options) <quiet>: Likewise.
4863 * symfile-debug.c (debug_symfile): Likewise.
4864 * symfile.c (auto_solib_add): Likewise.
4865 (separate_debug_file_debug): Likewise.
4866 * symfile.h (auto_solib_add): Likewise.
4867 (separate_debug_file_debug): Likewise.
4868 * symtab.c (basenames_may_differ): Likewise.
4869 (struct filename_partial_match_opts) <dirname, basename>: Likewise.
4870 (struct info_print_options) <quiet, exclude_minsyms>: Likewise.
4871 (struct info_types_options) <quiet>: Likewise.
4872 * symtab.h (demangle): Likewise.
4873 (basenames_may_differ): Likewise.
4874 * target-dcache.c (stack_cache_enabled_1): Likewise.
4875 (code_cache_enabled_1): Likewise.
4876 * target.c (trust_readonly): Likewise.
4877 (may_write_registers): Likewise.
4878 (may_write_memory): Likewise.
4879 (may_insert_breakpoints): Likewise.
4880 (may_insert_tracepoints): Likewise.
4881 (may_insert_fast_tracepoints): Likewise.
4882 (may_stop): Likewise.
4883 (auto_connect_native_target): Likewise.
4884 (target_stop_and_wait): Update.
4885 (target_async_permitted): Change to bool.
4886 (target_async_permitted_1): Likewise.
4887 (may_write_registers_1): Likewise.
4888 (may_write_memory_1): Likewise.
4889 (may_insert_breakpoints_1): Likewise.
4890 (may_insert_tracepoints_1): Likewise.
4891 (may_insert_fast_tracepoints_1): Likewise.
4892 (may_stop_1): Likewise.
4893 * target.h (target_async_permitted): Likewise.
4894 (may_write_registers): Likewise.
4895 (may_write_memory): Likewise.
4896 (may_insert_breakpoints): Likewise.
4897 (may_insert_tracepoints): Likewise.
4898 (may_insert_fast_tracepoints): Likewise.
4899 (may_stop): Likewise.
4900 * thread.c (struct info_threads_opts) <show_global_ids>: Likewise.
4901 (make_thread_apply_all_options_def_group): Change argument from int*
4902 to bool*.
4903 (thread_apply_all_command): Update.
4904 (print_thread_events): Change to bool.
4905 * top.c (confirm): Likewise.
4906 (command_editing_p): Likewise.
4907 (history_expansion_p): Likewise.
4908 (write_history_p): Likewise.
4909 (info_verbose): Likewise.
4910 * top.h (confirm): Likewise.
4911 (history_expansion_p): Likewise.
4912 * tracepoint.c (disconnected_tracing): Likewise.
4913 (circular_trace_buffer): Likewise.
4914 * typeprint.c (print_methods): Likewise.
4915 (print_typedefs): Likewise.
4916 * utils.c (debug_timestamp): Likewise.
4917 (sevenbit_strings): Likewise.
4918 (pagination_enabled): Likewise.
4919 * utils.h (sevenbit_strings): Likewise.
4920 (pagination_enabled): Likewise.
4921 * valops.c (overload_resolution): Likewise.
4922 * valprint.h (struct value_print_options) <prettyformat_arrays,
4923 prettyformat_structs, vtblprint, unionprint, addressprint, objectprint,
4924 stop_print_at_null, print_array_indexes, deref_ref, static_field_print,
4925 pascal_static_field_print, raw, summary, symbol_print, finish_print>:
4926 Likewise.
4927 * windows-nat.c (new_console): Likewise.
4928 (cygwin_exceptions): Likewise.
4929 (new_group): Likewise.
4930 (debug_exec): Likewise.
4931 (debug_events): Likewise.
4932 (debug_memory): Likewise.
4933 (debug_exceptions): Likewise.
4934 (useshell): Likewise.
4935 * windows-tdep.c (maint_display_all_tib): Likewise.
4936 * xml-support.c (debug_xml): Likewise.
4937
f1b620e9
MG
49382019-09-17 Mike Gulick <mgulick@mathworks.com>
4939
4940 * source.c (prepare_path_for_appending): New function.
4941 (openp): Make use of new function.
4942 (find_and_open_source): Search for the compilation directory and
4943 source file as a relative path beneath the directory search path.
4944
67f3ed6a
AB
49452019-09-17 Andrew Burgess <andrew.burgess@embecosm.com>
4946
4947 * source-cache.c (source_cache::get_line_charpos): Catch
4948 exceptions and return false, this matches the behaviour documented
4949 in the header file.
4950
74332189
JB
49512019-09-17 Joel Brobecker <brobecker@adacore.com>
4952
4953 * ada-tasks.c (info_task): Remove quoting of the task's name.
4954
f2f24aa9
CB
49552019-09-16 Christian Biesinger <cbiesinger@google.com>
4956
4957 * symfile.c (auto_solib_add): Replace comment with a reference
4958 to the header file.
4959
6a062a93
CB
49602019-09-14 Christian Biesinger <cbiesinger@google.com>
4961
4962 * NEWS: Mention that gdb can now be compiled with Python 3
4963 on Windows.
4964
ec6c8338
AB
49652019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
4966
4967 * maint.c (maint_print_section_data::maint_print_section_data):
4968 Force use of 'float log10 (float)' by casting the argument to
4969 float.
4970
aa17805f
AB
49712019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
4972
4973 * maint.c: Add 'cmath' include.
4974 (struct maint_print_section_data): New structure.
4975 (print_section_index): New function.
4976 (print_bfd_section_info): Add header comment, small whitespace
4977 cleanup, and update to call new print_section_index function.
4978 (print_objfile_section_info): Likewise.
4979 (maint_obj_section_from_bfd_section): New function.
4980 (print_bfd_section_info_maybe_relocated): New function.
4981 (maintenance_info_sections): Add header comment, always use
4982 bfd_map_over_sections instead of ALL_OBJFILE_OSECTIONS.
4983
3dd9bb46
AB
49842019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
4985
4986 * psymtab.c (find_pc_sect_psymtab): Move baseaddr local into more
4987 inner scope, add check that the objfile has psymtabs before
4988 checking psymtabs_addrmap.
4989 * psymtab.h (psymtab_storage) <psymtabs_addrmap>: Extend comment.
4990
4993045d
PW
49912019-09-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4992
4993 * NEWS: Announce that Ada task names are now shown at more places,
4994 and between quotes (except in info task output).
4995 * gdb/ada-tasks.c (task_to_str): New function.
4996 (display_current_task_id): Call task_to_str.
4997 (task_command_1): Likewise.
4998 (print_ada_task_info): In non-mi mode, Properly align headers and data
4999 when task-id length is > 9 (9 is the default for a 32 bits CORE_ADDR).
5000
7a289707
RO
50012019-09-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5002
5003 * procfs.c (procfs_target::wait) <PR_FAULTED>: Get signal from
5004 prstatus.pr_lwp.pr_info instead of making it up.
5005
f2aec7f6
CB
50062019-09-11 Christian Biesinger <cbiesinger@google.com>
5007
5008 * auto-load.c (auto_load_expand_dir_vars): Update.
5009 * defs.h (gdb_datadir): Change to std::string.
5010 (python_libdir): Likewise.
5011 (relocate_gdb_directory): Change return type to std::string.
5012 * guile/guile.c (gdbscm_data_directory): Update.
5013 (initialize_scheme_side): Update.
5014 * jit.c (jit_reader_dir): Change to std::string.
5015 (jit_reader_load_command): Update.
5016 * main.c (gdb_datadir): Change to std::string.
5017 (python_libdir): Likewise.
5018 (set_gdb_data_directory): Update.
5019 (relocate_path): Change to return std::string.
5020 (relocate_gdb_directory): Change to return std::string.
5021 (relocate_gdbinit_path_maybe_in_datadir): Update.
5022 (captured_main_1): Update.
5023 * python/python.c (do_start_initialization): Update.
5024 * top.c (show_gdb_datadir): Update.
5025 * xml-syscall.c (xml_init_syscalls_info): Update.
5026 (init_syscalls_info): Update.
5027
9224a013
CB
50282019-09-11 Christian Biesinger <cbiesinger@google.com>
5029
5030 * main.c (relocate_gdbinit_path_maybe_in_datadir): Factor this code
5031 out of get_init_files.
5032 (get_init_files): Update.
5033
f48cd836
CB
50342019-09-11 Christian Biesinger <cbiesinger@google.com>
5035
5036 * main.c (get_init_files): Change to use std::string.
5037 (captured_main_1): Update.
5038 (print_gdb_help): Update.
5039
9cab7ecd
AT
50402019-09-11 Ali Tamur <tamur@google.com>
5041
5042 *gdb/target-float.c (host_float_ops<T>::to_longest): Update
5043 implementation.
5044
67547d89
CB
50452019-09-11 Christian Biesinger <cbiesinger@google.com>
5046
5047 * dbxread.c (read_dbx_symtab): Update.
5048 * dwarf2read.c (load_partial_dies): Update.
5049 * mdebugread.c (parse_partial_symbols): Update.
5050 (handle_psymbol_enumerators): Update.
5051 * psympriv.h (add_psymbol_to_list): Change type of copy_names to bool.
5052 * psymtab.c (add_psymbol_to_bcache): Likewise.
5053 (add_psymbol_to_list): Likewise.
5054 * symtab.c (symbol_set_names): Likewise.
5055 * symtab.h (symbol_set_names): Likewise.
5056 * xcoffread.c (scan_xcoff_symtab): Update.
5057
64b2d4a0
TT
50582019-09-11 Tom Tromey <tom@tromey.com>
5059
5060 * symfile-mem.c (symbol_file_add_from_memory): Use
5061 bfd_set_filename.
5062 * solib-darwin.c (darwin_bfd_open): Use bfd_set_filename.
5063 * solib-aix.c (solib_aix_bfd_open): Use bfd_set_filename.
5064
3b00ef10
TT
50652019-09-10 Tom Tromey <tromey@adacore.com>
5066
5067 * dwarf-index-write.c (write_psymbols): Extend error message.
5068 (debug_names::insert): Add Ada code.
5069 (debug_names::write_psymbols): Remove Ada check.
5070 (debug_names) <m_string_obstack>: New member.
5071 * dwarf2read.c (gdb_index_symbol_name_matcher): Remove.
5072 (gdb_index_symbol_name_matcher::matches): Remove.
5073 (mapped_index_base::find_name_components_bounds): Add "lang"
5074 parameter.
5075 (mapped_index_base::build_name_components): Also split names
5076 according to Ada syntax.
5077 (dw2_expand_symtabs_matching_symbol): Loop over languages. Change
5078 type of "match_callback".
5079 (check_match, check_find_bounds_finds)
5080 (dw2_expand_symtabs_matching): Update.
5081 (dw2_debug_names_iterator): Add new constructor.
5082 (dw2_debug_names_map_matching_symbols): New function.
5083 (dw2_debug_names_expand_symtabs_matching): Update.
5084 (dwarf2_debug_names_functions): Use
5085 dw2_debug_names_map_matching_symbols.
5086
aa391654
TT
50872019-09-10 Tom Tromey <tromey@adacore.com>
5088
5089 * dwarf2read.c (dw2_get_file_names_reader): Add the
5090 CU's file name to the results.
5091
b054970d
TT
50922019-09-10 Tom Tromey <tromey@adacore.com>
5093
5094 * ada-lang.c (add_nonlocal_symbols): Combine calls to
5095 map_matching_symbols. Update.
5096 * dwarf2read.c (dw2_map_matching_symbols): Update.
5097 * psymtab.c (match_partial_symbol): Change type; update.
5098 (psym_map_matching_symbols): Likewise.
5099 * symfile-debug.c (debug_qf_map_matching_symbols): Change
5100 type; update.
5101 * symfile.h (struct quick_symbol_functions)
5102 <map_matching_symbols>: Change "name" to be a lookup_name_info.
5103 Remove "match".
5104
6a3dbf1b
TT
51052019-09-10 Tom Tromey <tromey@adacore.com>
5106
5107 * psymtab.c (map_block): Remove.
5108 (psym_map_matching_symbols): Use iterate_over_symbols_terminated.
5109 * symtab.c (iterate_over_symbols_terminated): New function.
5110 * symtab.c (iterate_over_symbols_terminated): Declare.
5111
6969f124
TT
51122019-09-10 Tom Tromey <tromey@adacore.com>
5113
5114 * ada-lang.c (ada_iterate_over_symbols): Return bool.
5115 * language.h (struct language_defn) <la_iterate_over_symbols>:
5116 Return bool.
5117 * symtab.c (iterate_over_symbols): Return bool.
5118 * symtab.h (iterate_over_symbols): Return bool.
5119
199b4314
TT
51202019-09-10 Tom Tromey <tromey@adacore.com>
5121
5122 * ada-lang.c (aux_add_nonlocal_symbols): Change type.
5123 (add_nonlocal_symbols): Update.
5124 * dwarf2read.c (dw2_map_matching_symbols): Change type.
5125 * psymtab.c (map_block, psym_map_matching_symbols): Change type.
5126 * symfile-debug.c (debug_qf_map_matching_symbols): Change type.
5127 * symfile.h (struct quick_symbol_functions) <map_matching_symbols>:
5128 Change type of "callback". Remove "data".
5129
a084a2a6
AT
5130
51312019-09-09 Ali Tamur <tamur@google.com>
5132
5133 * dwarf2read.c (comp_unit_head): Update comment.
5134 (dwarf2_dwo_name): New function declaration.
5135 (dwarf_unit_type_name): New function declaration.
5136 (read_comp_unit_head): Add support for new compilation units,
5137 DW_UT_partial, DW_UT_skeleton, DW_UT_split_compile, DW_UT_split_type.
5138 Particularly, DW_UT_skeleton and DW_UT_split_compile have dwo_id
5139 (currently named as "signature") in their header. Also clarify error
5140 messages.
5141 (lookup_dwo_id): New function. Returns the dwo id of the given
5142 compile unit.
5143 (lookup_dwo_unit): Use the new lookup_dwo_id function.
5144 (init_cutu_and_read_dies): Use the new dwarf2_dwo_name and lookup_dwo_id
5145 functions.
5146 (create_dwo_cu_reader): Use the added lookup_dwo_id function.
5147 (dwarf2_dwo_name): Get the dwo name if present.
5148 (dwarf_unit_type_name): Convert DW_UT_* types to string for diagnostic
5149 purposes.
5150
25a2915e
TT
51512019-09-09 Tom Tromey <tom@tromey.com>
5152
5153 * tui/tui-win.c (tui_all_windows_info): Use ui_out.
5154
e4df0874
PW
51552019-09-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5156
5157 * python/python.c (do_start_initialization): Make progname_copy static,
5158 to avoid a leak report.
5159
8634b462
TT
51602019-09-08 Tom Tromey <tom@tromey.com>
5161
5162 * tui/tui-wingeneral.c (box_win): Truncate long window titles.
5163
c7f839cb
SM
51642019-09-07 Simon Marchi <simon.marchi@efficios.com>
5165
5166 * dwarf2read.c (struct dw2_symtab_iterator) <block_index>:
5167 Change type to gdb::optional<block_enum>.
5168 (dw2_symtab_iter_init): Change block_index parameter type
5169 to gdb::optional<block_enum>.
5170 (dw2_lookup_symbol): Change block_index parameter
5171 type to block_enum.c
5172 (dw2_debug_names_lookup_symbol): Likewise.
5173 * psymtab.c (psym_lookup_symbol): Likewise.
5174 * symfile-debug.c (debug_qf_lookup_symbol): Likewise.
5175 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
5176 Likewise.
5177
ead0e69a
CB
51782019-09-06 Christian Biesinger <cbiesinger@google.com>
5179
5180 * defs.h (relocate_gdb_directory): Change int to bool in
5181 signature and rename flag to relocatable.
5182 * main.c (relocate_path): Likewise.
5183 (relocate_gdb_directory): Likewise.
5184
b16c44de
AM
51852019-09-06 Alan Modra <amodra@gmail.com>
5186
5187 * coffread.c (coff_symfile_read): Constify filename variable.
5188 * dbxread.c (dbx_symfile_init, coffstab_build_psymtabs),
5189 (elfstab_build_psymtabs, stabsect_build_psymtabs): Likewise.
5190 * gdb_bfd.c (gdb_bfd_close_or_warn): Likewise.
5191 * solib.c (reload_shared_libraries_1): Likewise.
5192 * symfile.c (reread_symbols): Likewise.
5193 * solib-aix.c (solib_aix_bfd_open): Add cast for xfree of filename.
5194 * solib-darwin.c (darwin_bfd_open): Likewise.
5195 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
5196
06ff036e
AB
51972019-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
5198
5199 * psymtab.c (print_partial_symbols): Handle missing domain_enum
5200 values MODULE_DOMAIN and COMMON_BLOCK_DOMAIN.
5201
4e962e74
TT
52022019-09-03 Tom Tromey <tromey@adacore.com>
5203
5204 * ada-valprint.c (ada_val_print_num): Don't recurse for range
5205 types.
5206 (has_negatives): Unbias a range type bound.
5207 * dwarf2read.c (read_subrange_type): Handle DW_AT_GNU_bias.
5208 * gdbtypes.c (operator==): Handle new field.
5209 (create_range_type): Add "bias" parameter.
5210 (create_static_range_type, resolve_dynamic_range): Update.
5211 * gdbtypes.h (struct range_bounds) <bias>: New member.
5212 (create_range_type): Add bias parameter.
5213 * printcmd.c (print_scalar_formatted): Unbias range types.
5214 * value.c (unpack_long): Unbias range types.
5215 (pack_long): Bias range types.
5216
d90b8f26
AH
52172019-09-02 Alan Hayward <alan.hayward@arm.com>
5218
5219 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Check all
5220 probe arguments.
5221
fe01123e
AH
52222019-09-02 Alan Hayward <alan.hayward@arm.com>
5223
5224 * break-catch-throw.c (fetch_probe_arguments): Use gdbarch.
5225 * dtrace-probe.c (dtrace_probe::get_argument_count): Likewise.
5226 * probe.c (probe_safe_evaluate_at_pc) (compute_probe_arg)
5227 (compile_probe_arg): Likewise.
5228 * probe.h (get_argument_count): Likewise.
5229 * solib-svr4.c (solib_event_probe_action): Likewise.
5230 * stap-probe.c (stap_probe::get_argument_count): Likewise.
5231
e661ef01
AH
52322019-09-02 Alan Hayward <alan.hayward@arm.com>
5233
5234 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Move
5235 code to here...
5236 (svr4_create_solib_event_breakpoints): ...from here.
5237
47a536d9
SDJ
52382019-08-30 Sergio Durigan Junior <sergiodj@redhat.com>
5239
5240 * nat/fork-inferior.c (trace_start_error): Remove "\nError: "
5241 suffix from warning message.
5242
d6a00eba
TT
52432019-08-30 Tom Tromey <tom@tromey.com>
5244
5245 * tui/tui-winsource.h (struct tui_source_window_base)
5246 <refresh_all>: Don't declare.
5247 * tui/tui-winsource.c (tui_source_window_base::refresh_all):
5248 Remove.
5249 * tui/tui-win.c (tui_refresh_all_win): Don't call refresh_all or
5250 tui_show_locator_content.
5251 * tui/tui-regs.h (struct tui_data_window) <refresh_all>: Don't
5252 declare.
5253 * tui/tui-regs.c (tui_data_window::refresh_all): Remove.
5254 * tui/tui-data.h (struct tui_win_info) <refresh_all>: Don't
5255 declare.
5256
55b2657b
TT
52572019-08-30 Tom Tromey <tom@tromey.com>
5258
5259 * tui/tui-io.c (tui_cont_sig): Don't call wrefresh.
5260
12a8555a
TT
52612019-08-30 Tom Tromey <tom@tromey.com>
5262
5263 * tui/tui-stack.c (_initialize_tui_stack): Move later.
5264 Remove unnecessary forward declarations.
5265
900ac242
TT
52662019-08-30 Tom Tromey <tom@tromey.com>
5267
5268 * tui/tui-stack.c (tui_locator_window::set_locator_fullname): Call
5269 rerender.
5270 (tui_update_locator_fullname, tui_show_frame_info): Don't call
5271 tui_show_locator_content.
5272
99ab33fb
TT
52732019-08-30 Tom Tromey <tom@tromey.com>
5274
5275 * tui/tui-stack.c (tui_show_locator_content): Move lower. Rewrite.
5276 (tui_locator_window::rerender): Rewrite using body of previous
5277 tui_show_locator_content.
5278
e594a5d1
TT
52792019-08-30 Tom Tromey <tom@tromey.com>
5280
5281 * tui/tui-stack.h (struct tui_locator_window) <set_locator_info,
5282 set_locator_fullname>: New methods.
5283 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
5284 Rename from tui_set_locator_fullname.
5285 (tui_locator_window::set_locator_info): Rename from
5286 tui_set_locator_info. Return bool.
5287 (tui_update_locator_fullname, tui_show_frame_info): Update.
5288
715bb467
TT
52892019-08-30 Tom Tromey <tom@tromey.com>
5290
5291 * tui/tui-layout.c (show_layout): Don't call tui_refresh_all.
5292
772f3f03
TT
52932019-08-30 Tom Tromey <tom@tromey.com>
5294
5295 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Don't
5296 call touchwin.
5297
108e13ab
TT
52982019-08-30 Tom Tromey <tom@tromey.com>
5299
5300 * tui/tui-wingeneral.c (box_win): Assume win_info and
5301 win_info->handle cannot be NULL.
5302
cdaa6eb4
TT
53032019-08-30 Tom Tromey <tom@tromey.com>
5304
5305 * tui/tui-regs.h (struct tui_data_item_window) <rerender,
5306 refresh_window>: Declare.
5307 * tui/tui-regs.c (tui_data_window::display_registers_from): Call
5308 resize.
5309 (tui_data_item_window::rerender): Rename from
5310 tui_display_register.
5311 (tui_data_item_window::refresh_window): New method.
5312 * tui/tui-layout.c (tui_gen_win_info::resize): Do nothing on
5313 no-op.
5314
89df7f90
TT
53152019-08-30 Tom Tromey <tom@tromey.com>
5316
5317 * tui/tui-regs.h (struct tui_data_window) <regs_content,
5318 regs_column_count, current_group>: Move later. Now private.
5319 <get_current_group>: New method.
5320 * tui/tui-regs.c (tui_reg_command): Update.
5321 * tui/tui-layout.c (tui_set_layout): Update.
5322
1bf2866a
TT
53232019-08-30 Tom Tromey <tom@tromey.com>
5324
5325 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
5326 (tui_data_window::rerender): Don't call
5327 check_and_display_highlight_if_needed.
5328 (tui_data_window::refresh_all): Remove call to
5329 erase_data_content.
5330
0670413d
TT
53312019-08-30 Tom Tromey <tom@tromey.com>
5332
5333 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
5334 (tui_data_window::display_registers_from)
5335 (tui_data_window::display_reg_element_at_line)
5336 (tui_data_window::display_registers_from_line): Remove checks of
5337 "empty".
5338
18bb55c7
TT
53392019-08-30 Tom Tromey <tom@tromey.com>
5340
5341 * tui/tui-regs.h (struct tui_data_window) <display_all_data>:
5342 Don't declare.
5343 * tui/tui-regs.c (tui_data_window::show_registers): Call
5344 rerender.
5345 (tui_data_window::rerender): Rename from display_all_data.
5346 (tui_data_window::rerender): Remove old implementation.
5347
1f6d2f10
TT
53482019-08-30 Tom Tromey <tom@tromey.com>
5349
5350 * tui/tui-regs.c (tui_data_window::display_all_data): Change
5351 text.
5352 * tui/tui-data.h (NO_DATA_STRING): Remove define.
5353
16d01f9c
BW
53542019-08-29 Bernhard Wodok <barto@gmx.net>
5355 Sergio Durigan Junior <sergiodj@redhat.com>
5356
5357 PR win32/24284
5358 * mingw-hdep.c (gdb_select): Handle case when 'n' is zero.
5359
d8f27c60
AB
53602019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
5361
5362 * symtab.c (search_symbols): Don't include MODULE_DOMAIN symbols
5363 when searching for types.
5364
1f20c35e
AB
53652019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
5366
5367 * f-lang.c (f_language_defn): Use f_print_typedef.
5368 * f-lang.h (f_print_typedef): Declare.
5369 * f-typeprint.c (f_print_typedef): Define.
5370
550105b7
CB
53712019-08-27 Christian Biesinger <cbiesinger@google.com>
5372
5373 * nat/linux-namespaces.c (mnsh_main): Initialize fd (to -1).
5374
4acfdd20
AB
53752019-08-27 Andrew Burgess <andrew.burgess@embecosm.com>
5376
5377 * cli/cli-utils.c (info_print_options_defs): Delete.
5378 (make_info_print_options_def_group): Delete.
5379 (extract_info_print_options): Delete.
5380 (info_print_command_completer): Delete.
5381 (info_print_args_help): Add extra parameter, and optionally
5382 include text about -n flag.
5383 * cli/cli-utils.h (struct info_print_options): Delete.
5384 (extract_info_print_options): Delete declaration.
5385 (info_print_command_completer): Delete declaration.
5386 (info_print_args_help): Add extra parameter, extend header
5387 comment.
5388 * python/python.c (gdbpy_rbreak): Pass additional parameter to
5389 search_symbols.
5390 * stack.c (struct info_print_options): New type.
5391 (info_print_options_defs): New file scoped variable.
5392 (make_info_print_options_def_group): New static function.
5393 (info_print_command_completer): New static function.
5394 (info_locals_command): Update to use new local functions.
5395 (info_args_command): Likewise.
5396 (_initialize_stack): Add extra parameter to calls to
5397 info_print_args_help.
5398 * symtab.c (search_symbols): Add extra parameter, use this to
5399 possibly excluse non-debug symbols.
5400 (symtab_symbol_info): Add extra parameter, which is passed on to
5401 search_symbols.
5402 (struct info_print_options): New type.
5403 (info_print_options_defs): New file scoped variable.
5404 (make_info_print_options_def_group): New static function.
5405 (info_print_command_completer): New static function.
5406 (info_variables_command): Update to use local functions, and pass
5407 extra parameter through to symtab_symbol_info.
5408 (info_functions_command): Likewise.
5409 (info_types_command): Pass additional argument through to
5410 symtab_symbol_info.
5411 (rbreak_command): Pass extra argument to search_symbols.
5412 (_initialize_symtab): Add extra arguments for calls to
5413 info_print_args_help, and update help text for 'info variables',
5414 'whereis', and 'info functions' commands.
5415 * symtab.h (search_symbols): Add extra argument to declaration.
5416 * NEWS: Mention new flags.
5417
9aa55206
CB
54182019-08-26 Christian Biesinger <cbiesinger@google.com>
5419
5420 * symtab.c (lookup_static_symbol): Call the new function (and move
5421 it down to be next to lookup_global_symbol).
5422 (struct global_sym_lookup_data): Add block_enum member and rename to...
5423 (struct global_or_static_sym_lookup_data): ...this.
5424 (lookup_symbol_global_iterator_cb): Pass block_index instead of
5425 GLOBAL_BLOCK to lookup_symbol_in_objfile and rename to...
5426 (lookup_symbol_global_or_static_iterator_cb): ...this.
5427 (lookup_global_or_static_symbol): New function.
5428 (lookup_global_symbol): Call new function.
5429
5c31b358
TV
54302019-08-26 Tom de Vries <tdevries@suse.de>
5431
5432 PR c++/24852
5433 * break-catch-throw.c (fetch_probe_arguments): Improve error mesage
5434 when pc_probe.prob == NULL.
5435
23c13d42
SM
54362019-08-25 Simon Marchi <simon.marchi@efficios.com>
5437
5438 * dwarf2read.c (dw2_debug_names_iterator::next): Rename local
5439 variable symbol_linkage to symbol_linkage_.
5440
beadd3e8
SM
54412019-08-25 Simon Marchi <simon.marchi@efficios.com>
5442
5443 * dwarf2read.c (dw2_debug_names_iterator::next): Use enum to
5444 represent whether the symbol is static, dynamic, or we don't
5445 know.
5446
e3ec872f
YS
54472019-08-25 Yoshinori Sato <ysato@users.sourceforge.jp>
5448
5449 * gdb/rx-tdep.c (rx_register_names): New.
5450 (rx_register_name): Delete.
5451 (rx_psw_type): Delete.
5452 (rx_fpsw_type): Delete.
5453 (rx_register_type): Delete.
5454 (rx_gdbarch_init): Convert target-descriptions.
5455 (_initialize_rx_tdep): Add initialize_tdesc_rx.
5456 * gdb/features/Makefile: Add rx.xml.
5457 * gdb/features/rx.xml: New.
5458 * gdb/features/rx.c: Generated.
5459 * gdb/NEWS: Mention target description support.
5460
d0509ba4
CB
54612019-08-22 Christian Biesinger <cbiesinger@google.com>
5462
5463 * symtab.c (symbol_cache_lookup): Always initialize *bsc_ptr and
5464 *slot_ptr.
5465
2d41fa11
SDJ
54662019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
5467
5468 * configure.ac: Don't check for 'dlfcn.h' (moved to
5469 gdbsupport/common.m4).
5470 * Makefile.in (COMMON_SFILES): Move 'gdb-dlfcn.c' to
5471 'gdbsupport/'.
5472 (HFILES_NO_SRCDIR): Likewise, for 'gdb-dlfcn.h'.
5473 * compile/compile-c-support.c: Include
5474 'gdbsupport/gdb-dlfcn.h'.
5475 * gdbsupport/common.m4: Check for 'dlfcn.h'.
5476 * gdb-dlfcn.c: Move to...
5477 * gdbsupport/gdb-dlfcn.c: ... here.
5478 * gdb-dlfcn.h: Move to...
5479 * gdbsupport/gdb-dlfcn.h: ... here.
5480
de8af808
SL
54812019-08-23 Sandra Loosemore <sandra@codesourcery.com>
5482
5483 * nios2-tdep.c (struct reg_value): Improve comments. Make
5484 the offset field signed.
5485
27204489
CB
54862019-08-22 Christian Biesinger <cbiesinger@google.com>
5487
5488 * python/lib/gdb/__init__.py (_execute_file): New function.
5489 * python/python.c (python_run_simple_file): Call gdb._execute_file
5490 on Windows.
5491
43771869
AB
54922019-08-22 Andrew Burgess <andrew.burgess@embecosm.com>
5493
5494 * f-exp.y (yylex): Remove is_a_field_of_this local variable, and
5495 all uses as this was never set to anything but a zero value.
5496
26c957f1
PA
54972019-08-21 Bogdan Harjoc <harjoc@gmail.com>
5498
5499 * cli/cli-cmds.c (with_command_1): Error out if no arguments.
5500
c07aae6e
CB
55012019-08-21 Christian Biesinger <cbiesinger@google.com>
5502
5503 * tui/tui-data.h (tui_gen_win_info): Add an =default
5504 move constructor, required by some GCC versions.
5505
3960cb7a
JF
55062019-08-21 Jinke Fan <fanjinke51@yeah.net>
5507
5508 * go32-nat.c (go32_sysinfo): Add hygon_p.
5509
04c72a68
TT
55102019-08-20 Tom Tromey <tom@tromey.com>
5511
5512 * tui/tui-regs.h (struct tui_data_window) <last_regs_line_no,
5513 line_from_reg_element_no, first_reg_element_no_inline,
5514 display_all_data, delete_data_content_windows,
5515 erase_data_content>: Now private.
5516
072272ce
TT
55172019-08-20 Tom Tromey <tom@tromey.com>
5518
5519 * tui/tui-wingeneral.c (box_win): Change type of highlight_flag.
5520 (tui_unhighlight_win, tui_highlight_win)
5521 (tui_win_info::make_window): Update.
5522 * tui/tui-data.h (HILITE, NO_HILITE): Remove.
5523
973961bd
TT
55242019-08-20 Tom Tromey <tom@tromey.com>
5525
5526 * tui/tui-data.h (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
5527 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
5528 (MAX_PID_WIDTH): Move to tui-stack.c.
5529 * tui/tui-stack.c (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
5530 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
5531 (MAX_PID_WIDTH): Move from tui-data.h.
5532
ab0e1f1a
TT
55332019-08-20 Tom Tromey <tom@tromey.com>
5534
5535 * tui/tui-wingeneral.h (tui_make_window): Don't declare.
5536 * tui/tui-wingeneral.c (box_win): Change type of win_info.
5537 (box_win): Update.
5538 (tui_gen_win_info::make_window): Rename from tui_make_window.
5539 (tui_win_info::make_window): New method.
5540 (tui_gen_win_info::make_visible): Update.
5541 * tui/tui-source.c (tui_source_window::set_contents): Update.
5542 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
5543 (tui_data_window::display_registers_from): Update.
5544 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
5545 * tui/tui-data.h (struct tui_gen_win_info) <make_window>:
5546 Declare.
5547 <can_box>: Remove.
5548 <title>: Remove.
5549 (struct tui_win_info) <make_window>: Declare.
5550 <can_box>: Now virtual.
5551 <title>: New member.
5552 * tui/tui-data.c (~tui_gen_win_info): Don't free title.
5553 * tui/tui-command.c (tui_cmd_window::resize): Update.
5554
100c2bf3
TT
55552019-08-20 Tom Tromey <tom@tromey.com>
5556
5557 * tui/tui-regs.h (struct tui_data_window) <display_regs>: Remove.
5558 * tui/tui-regs.c (tui_data_window::show_registers): Update.
5559 (tui_data_window::check_register_values): Update.
5560
fa4dc567
TT
55612019-08-20 Tom Tromey <tom@tromey.com>
5562
5563 * tui/tui-regs.h (struct tui_data_window): Use
5564 DISABLE_COPY_AND_ASSIGN.
5565 <regs_content>: Change type, removing unique_ptr.
5566 <tui_data_window>: Add move constructor.
5567 * tui/tui-regs.c (tui_data_window::show_registers)
5568 (tui_data_window::show_register_group)
5569 (tui_data_window::display_registers_from)
5570 (tui_data_window::display_registers_from)
5571 (tui_data_window::first_data_item_displayed)
5572 (tui_data_window::delete_data_content_windows)
5573 (tui_data_window::rerender, tui_data_window::refresh_window)
5574 (tui_data_window::check_register_values): Update.
5575
ca02d7c8
TT
55762019-08-20 Tom Tromey <tom@tromey.com>
5577
5578 * tui/tui-regs.h (struct tui_data_window) <show_registers,
5579 show_register_group>: Declare.
5580 (tui_show_register_group): Don't declare.
5581 * tui/tui-regs.c (tui_data_window::show_registers): Rename from
5582 tui_show_registers.
5583 (tui_data_window::show_register_group): Rename from
5584 tui_show_register_group.
5585 (tui_data_window::check_register_values, tui_reg_command):
5586 Update.
5587 * tui/tui-layout.c (tui_set_layout): Update.
5588
63356bfd
TT
55892019-08-20 Tom Tromey <tom@tromey.com>
5590
5591 * tui/tui-regs.h (struct tui_data_window) <check_register_values>:
5592 Declare.
5593 (tui_check_register_values): Don't declare.
5594 * tui/tui-regs.c (tui_data_window::check_register_values): Rename
5595 from tui_check_register_values.
5596 * tui/tui-hooks.c (tui_register_changed): Update.
5597
42cc14a7
TT
55982019-08-20 Tom Tromey <tom@tromey.com>
5599
5600 * tui/tui-regs.c (tui_reg_layout): Move later.
5601 (tui_show_registers): Don't enable TUI mode or change layout.
5602
b9ad3686
TT
56032019-08-20 Tom Tromey <tom@tromey.com>
5604
5605 * tui/tui-regs.h (struct tui_data_item_window)
5606 <~tui_data_item_window>: Remove.
5607 <content>: Now a unique_xmalloc_ptr.
5608 * tui/tui-regs.c (tui_register_format): Return a
5609 unique_xmalloc_ptr.
5610 (tui_get_register): Update.
5611 (~tui_data_item_window): Remove.
5612 (tui_data_window::display_registers_from, tui_display_register):
5613 Update.
5614 * tui/tui-io.h (tui_expand_tabs): Update.
5615 * tui/tui-io.c (tui_expand_tabs): Return a unique_xmalloc_ptr.
5616 Remove "col" parameter.
5617
8e114aab
TT
56182019-08-20 Tom Tromey <tom@tromey.com>
5619
5620 * tui/tui-regs.h (struct tui_data_item_window) <value>: Remove
5621 field.
5622 * tui/tui-regs.c (~tui_data_item_window): Update.
5623
1a4f81dd
TT
56242019-08-20 Tom Tromey <tom@tromey.com>
5625
5626 * tui/tui-regs.c (tui_register_format, tui_get_register): Move
5627 earlier.
5628
0f8d8876
TT
56292019-08-20 Tom Tromey <tom@tromey.com>
5630
5631 * tui/tui-regs.c (tui_reg_command): Remove NULL check.
5632
605dc2c2
TT
56332019-08-20 Tom Tromey <tom@tromey.com>
5634
5635 * tui/tui-source.h (struct tui_source_window): Update.
5636 * tui/tui-regs.c (tui_show_registers): Update.
5637 * tui/tui-disasm.h (struct tui_disasm_window): Update.
5638 * tui/tui-data.h (NO_SRC_STRING, NO_DISASSEM_STRING)
5639 (NO_REGS_STRING): Remove defines.
5640
aedbe3bb
CM
56412019-08-20 Conrad Meyer <cem@FreeBSD.org>
5642
5643 * remote.c (remote_target::remote_btrace_maybe_reopen): Avoid
5644 unnecessary thread walk if remote doesn't support the packet.
5645
7ce8f214
TT
56462019-08-19 Tom Tromey <tromey@adacore.com>
5647
5648 * python/py-value.c (value_has_field): Fix indentation.
5649
f21c2bd7
TT
56502019-08-19 Tom Tromey <tromey@adacore.com>
5651
5652 * printcmd.c (do_one_display, info_display_command): Update.
5653 * block.h (contained_in): Return bool. Add allow_nested
5654 parameter.
5655 * block.c (contained_in): Return bool. Add allow_nested
5656 parameter.
5657
d806ea2d
TT
56582019-08-19 Tom Tromey <tom@tromey.com>
5659
5660 * configure: Rebuild.
5661 * configure.ac: Disallow the combination of -static-libstdc++ and
5662 source highlight.
5663 * source-cache.c (get_language_name): Handle rust.
5664 (source_cache::get_source_lines): Ignore highlighting exceptions.
5665
398fdd60
TT
56662019-08-16 Tom Tromey <tom@tromey.com>
5667
5668 * tui/tui.h (enum tui_win_type) <EXEC_INFO_WIN>: Remove.
5669 * tui/tui-winsource.h (struct tui_exec_info_window): Remove.
5670 (struct tui_source_window_base) <make_visible, refresh_window,
5671 resize>: Remove methods.
5672 <execution_info>: Remove field.
5673 * tui/tui-winsource.c (tui_source_window_base::do_erase_source_content)
5674 (tui_show_source_line, tui_source_window_base)
5675 (~tui_source_window_base): Update.
5676 (tui_source_window_base::resize)
5677 (tui_source_window_base::make_visible)
5678 (tui_source_window_base::refresh_window): Remove.
5679 (tui_source_window_base::update_exec_info): Update.
5680 * tui/tui-source.c (tui_source_window::set_contents): Update.
5681 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
5682
e699d331
TT
56832019-08-16 Tom Tromey <tom@tromey.com>
5684
5685 * tui/tui-hooks.c (tui_remove_hooks): Don't set
5686 deprecated_query_hook.
5687
bb01dbfc
TT
56882019-08-16 Tom Tromey <tom@tromey.com>
5689
5690 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
5691 (tui_update_source_windows_with_line): Update.
5692 * tui/tui-source.h (struct tui_source_window)
5693 <show_symtab_source>: Declare.
5694 (tui_show_symtab_source): Don't declare.
5695 * tui/tui-source.c (tui_show_symtab_source): Rename from
5696 tui_show_symtab_source.
5697
81c82c4b
TT
56982019-08-16 Tom Tromey <tom@tromey.com>
5699
5700 * tui/tui-winsource.h (struct tui_source_window_base)
5701 <set_contents>: Declare.
5702 * tui/tui-winsource.c
5703 (tui_source_window_base::update_source_window_as_is): Update.
5704 * tui/tui-source.h (struct tui_source_window) <set_contents>:
5705 Declare.
5706 (tui_set_source_content): Don't declare.
5707 * tui/tui-source.c (tui_source_window::set_contents): Rename from
5708 tui_set_source_content.
5709 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
5710 Declare.
5711 (tui_set_disassem_content): Don't declare.
5712 * tui/tui-disasm.c (tui_disasm_window::set_contents): Rename from
5713 tui_set_disassem_content.
5714
2ddaf614
TT
57152019-08-16 Tom Tromey <tom@tromey.com>
5716
5717 * tui/tui-winsource.h (struct tui_source_window_base)
5718 <update_breakpoint_info>: Declare.
5719 (tui_update_breakpoint_info): Don't declare.
5720 * tui/tui-winsource.c (tui_source_window_base::update_source_window_as_is)
5721 (tui_update_all_breakpoint_info): Update.
5722 (tui_source_window_base::update_breakpoint_info): Rename from
5723 tui_update_breakpoint_info.
5724 (tui_source_window_base::update_exec_info): Update.
5725
017f9828
TT
57262019-08-16 Tom Tromey <tom@tromey.com>
5727
5728 * tui/tui-winsource.h (struct tui_source_window_base)
5729 <update_source_window>: Declare.
5730 (tui_update_source_window): Don't declare.
5731 * tui/tui-winsource.c
5732 (tui_source_window_base::update_source_window): Rename from
5733 tui_update_source_window.
5734 (tui_source_window_base::rerender): Update.
5735 * tui/tui-source.c (tui_source_window::maybe_update): Update.
5736 * tui/tui-disasm.c (tui_show_disassem)
5737 (tui_show_disassem_and_update_source)
5738 (tui_disasm_window::maybe_update): Update.
5739
ed8358e9
TT
57402019-08-16 Tom Tromey <tom@tromey.com>
5741
5742 * tui/tui-winsource.h (struct tui_source_window_base)
5743 <update_source_window_as_is>: Declare.
5744 (tui_update_source_window_as_is): Don't declare.
5745 * tui/tui-winsource.c (tui_update_source_window): Update
5746 (tui_source_window_base::update_source_window_as_is): Rename from
5747 tui_update_source_window_as_is.
5748 (tui_source_window_base::refill): Update.
5749 * tui/tui-source.c (tui_show_symtab_source): Update.
5750 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical):
5751 Update.
5752
20149b6b
TT
57532019-08-16 Tom Tromey <tom@tromey.com>
5754
5755 * tui/tui-winsource.h (tui_update_source_window)
5756 (tui_update_source_window_as_is): Remove "noerror" parameter.
5757 * tui/tui-winsource.c (tui_update_source_window)
5758 (tui_update_source_window_as_is): Remove "noerror" parameter.
5759 (tui_update_source_windows_with_addr)
5760 (tui_update_source_windows_with_line)
5761 (tui_source_window_base::rerender)
5762 (tui_source_window_base::refill): Update.
5763 * tui/tui-source.h (tui_set_source_content)
5764 (tui_show_symtab_source): Remove "noerror" parameter.
5765 * tui/tui-source.c (tui_set_source_content): Remove "noerror"
5766 parameter.
5767 (tui_show_symtab_source): Likewise.
5768 (tui_source_window::maybe_update): Update.
5769 * tui/tui-disasm.c (tui_show_disassem)
5770 (tui_show_disassem_and_update_source)
5771 (tui_disasm_window::do_scroll_vertical)
5772 (tui_disasm_window::maybe_update): Update.
5773
2d83e710
TT
57742019-08-16 Tom Tromey <tom@tromey.com>
5775
5776 * tui/tui.c (tui_is_window_visible): Update.
5777 * tui/tui-wingeneral.c (tui_make_window)
5778 (tui_gen_win_info::make_visible, tui_refresh_all): Update.
5779 * tui/tui-win.c (window_name_completer, tui_refresh_all_win)
5780 (tui_set_focus_command, tui_all_windows_info, update_tab_width)
5781 (tui_set_win_height_command, parse_scrolling_args): Update.
5782 * tui/tui-source.c (tui_source_window::style_changed): Update.
5783 * tui/tui-regs.c (tui_show_registers)
5784 (tui_data_window::first_data_item_displayed)
5785 (tui_data_window::delete_data_content_windows)
5786 (tui_check_register_values, tui_reg_command): Update.
5787 * tui/tui-disasm.c (tui_show_disassem): Update.
5788 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: New
5789 method.
5790 <is_visible>: Remove field.
5791 * tui/tui-data.c (tui_next_win, tui_prev_win)
5792 (tui_delete_invisible_windows): Update.
5793
d4ab829a
TT
57942019-08-16 Tom Tromey <tom@tromey.com>
5795
5796 * tui/tui-winsource.h (struct tui_source_window_base)
5797 <m_has_locator>: Remove.
5798 * tui/tui-layout.c (show_source_disasm_command, show_data)
5799 (show_source_or_disasm_and_command): Update.
5800
aa7ca1bb
AH
58012019-08-16 Alan Hayward <alan.hayward@arm.com>
5802
5803 * NEWS (Other MI changes): New subsection.
5804 * aarch64-tdep.c (aarch64_get_pc_address_flags): New function.
5805 (aarch64_gdbarch_init): Add aarch64_get_pc_address_flags.
5806 * arch-utils.c (default_get_pc_address_flags): New function.
5807 * arch-utils.h (default_get_pc_address_flags): New declaration.
5808 * gdbarch.sh: Add get_pc_address_flags.
5809 * gdbarch.c: Regenerate.
5810 * gdbarch.h: Likewise.
5811 * stack.c (print_pc): New function.
5812 (print_frame_info) (print_frame): Call print_pc.
5813
6eac171f
TV
58142019-08-16 Tom de Vries <tdevries@suse.de>
5815
5816 * maint.c (maintenance_info_sections): Also handle !ALLOBJ case using
5817 print_objfile_section_info.
5818
3df505f6
TT
58192019-08-15 Tom Tromey <tom@tromey.com>
5820
5821 * tui/tui-io.c (tui_puts_internal): Check TUI_CMD_WIN before
5822 calling update_cmdwin_start_line.
5823 * tui/tui-winsource.h (struct tui_source_window_base)
5824 <do_make_visible_with_new_height, set_new_height>: Don't declare.
5825 <rerender>: Declare.
5826 * tui/tui-winsource.c (tui_source_window_base::update_tab_width):
5827 Call rerender.
5828 (tui_source_window_base::set_new_height): Remove.
5829 (tui_source_window_base::rerender): Rename from
5830 do_make_visible_with_new_height.
5831 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use
5832 resize method.
5833 (tui_win_info::make_invisible_and_set_new_height)
5834 (tui_win_info::make_visible_with_new_height): Remove.
5835 * tui/tui-stack.h (struct tui_locator_window) <rerender>:
5836 Declare.
5837 * tui/tui-stack.c (tui_locator_window::rerender): New method.
5838 * tui/tui-regs.h (struct tui_data_window) <set_new_height,
5839 do_make_visible_with_new_height>: Don't declare.
5840 <rerender>: Declare.
5841 * tui/tui-regs.c (tui_data_window::rerender): Rename from
5842 set_new_height.
5843 (tui_data_window::do_make_visible_with_new_height): Remove.
5844 * tui/tui-layout.c (show_source_disasm_command, show_data): Don't
5845 call tui_show_locator_content.
5846 (tui_gen_win_info::resize): Call rerender.
5847 (show_source_or_disasm_and_command): Don't call
5848 tui_show_locator_content.
5849 * tui/tui-data.h (struct tui_gen_win_info) <rerender>: New
5850 method.
5851 (struct tui_win_info) <rerender>: Declare.
5852 <set_new_height, make_invisible_and_set_new_height,
5853 make_visible_with_new_height>: Don't declare.
5854 * tui/tui-data.c (tui_win_list::rerender): New method.
5855 * tui/tui-command.h (struct tui_cmd_window)
5856 <do_make_visible_with_new_height>: Don't declare.
5857 * tui/tui-command.c
5858 (tui_cmd_window::do_make_visible_with_new_height): Remove.
5859
272560b5
TT
58602019-08-15 Tom Tromey <tromey@adacore.com>
5861
5862 * ada-exp.y (convert_char_literal): Handle "Q%c" encoding.
5863 * ada-lang.c (ada_enum_name): Likewise.
5864
08235187
CB
58652019-08-15 Christian Biesinger <cbiesinger@google.com>
5866
5867 * python/lib/gdb/__init__.py (GdbOutputFile): Rename to have a
5868 leading underscore.
5869 (GdbOutputErrorFile): Likewise.
5870 (global scope): Adjust constructor calls to GdbOutput{,Error}File
5871 accordingly.
5872 (execute_unwinders): Rename to have a leading underscore.
5873 (auto_load_packages): Likewise.
5874 (global scope): Adjust call to auto_load_packages accordingly.
5875 (GdbSetPythonDirectory): Likewise.
5876 * python/py-unwind.c (pyuw_sniffer): Call _execute_unwinders
5877 instead of execute_unwinders.
5878
db502012
TT
58792019-08-15 Tom Tromey <tom@tromey.com>
5880
5881 * tui/tui-layout.c (show_layout, show_source_disasm_command)
5882 (show_data): Don't change window visibility.
5883 (tui_gen_win_info::resize): Remove special case for command
5884 window. Use wresize, when available.
5885 (show_source_or_disasm_and_command): Don't change window
5886 visibility.
5887 * tui/tui-command.h (struct tui_cmd_window) <resize>: Declare.
5888 <make_visible>: New method.
5889 * tui/tui-command.c (tui_cmd_window::resize): New method.
5890
3891b65e
TT
58912019-08-15 Tom Tromey <tom@tromey.com>
5892
5893 * tui/tui-winsource.h (struct tui_source_window_iterator): New.
5894 (struct tui_source_windows): New.
5895 * tui/tui-winsource.c (tui_display_main): Update.
5896 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
5897 (new_height_ok, parse_scrolling_args): Update.
5898 * tui/tui-layout.c (show_layout, show_data): Update.
5899 * tui/tui-data.h (tui_source_windows, tui_clear_source_windows)
5900 (tui_add_to_source_windows): Don't declare.
5901 * tui/tui-data.c (source_windows, tui_source_windows)
5902 (tui_clear_source_windows, tui_add_to_source_windows): Remove.
5903
ee556432
TT
59042019-08-15 Tom Tromey <tom@tromey.com>
5905
5906 * tui/tui-winsource.h (struct tui_source_window_base) <resize>:
5907 Rename from reset.
5908 * tui/tui-winsource.c (tui_source_window_base::resize): Rename.
5909 * tui/tui-layout.c (show_source_disasm_command, show_data):
5910 Update.
5911 (tui_gen_win_info::resize): Rename.
5912 (show_source_or_disasm_and_command): Update.
5913 * tui/tui-data.h (struct tui_gen_win_info) <resize>: Rename from
5914 reset.
5915
46f438e3
TT
59162019-08-15 Tom Tromey <tom@tromey.com>
5917
5918 * tui/tui-stack.c (tui_initialize_static_data): Remove.
5919 * tui/tui-interp.c (tui_interp::init): Don't call
5920 tui_initialize_static_data.
5921 * tui/tui-data.h (tui_initialize_static_data): Don't declare.
5922
f4ce562c
TT
59232019-08-15 Tom Tromey <tom@tromey.com>
5924
5925 * tui/tui-layout.c (tui_default_win_viewport_height): Don't
5926 examine tui_win_list.
5927
c398c3d0
TT
59282019-08-15 Tom Tromey <tom@tromey.com>
5929
5930 * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
5931 * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
5932 tui_clear_source_content.
5933 (tui_clear_source_content): Remove.
5934 (tui_source_window_base::do_erase_source_content): Hoist call to
5935 content.clear().
5936 * tui/tui-stack.c (tui_show_frame_info): Don't call
5937 tui_clear_source_content.
5938
e25d2004
TT
59392019-08-15 Tom Tromey <tom@tromey.com>
5940
5941 * tui/tui-winsource.h (struct tui_source_window_base)
5942 <do_erase_source_content>: New method.
5943 <erase_source_content>: New method.
5944 (tui_erase_source_content): Don't declare.
5945 * tui/tui-winsource.c (tui_clear_source_content): Update.
5946 (tui_source_window_base::do_erase_source_content): Rename from
5947 tui_erase_source_content.
5948 (tui_source_window_base::show_source_content): Update.
5949 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
5950 * tui/tui-source.h (struct tui_source_window)
5951 <erase_source_content>: New method.
5952 * tui/tui-disasm.h (struct tui_disasm_window)
5953 <erase_source_content>: New method.
5954
002f15c2
TT
59552019-08-15 Tom Tromey <tom@tromey.com>
5956
5957 * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
5958 (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
5959 constructor.
5960 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
5961 * tui/tui-source.c (tui_set_source_content): Update.
5962 * tui/tui-disasm.c (tui_set_disassem_content): Update.
5963
c9033fe8
TT
59642019-08-15 Tom Tromey <tom@tromey.com>
5965
5966 * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
5967 * tui/tui-winsource.c (tui_line_is_displayed): Move to
5968 tui-source.c.
5969 * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
5970 Declare.
5971 * tui/tui-source.c (tui_source_window::line_is_displayed): New
5972 method.
5973 (tui_source_window::maybe_update): Update.
5974
088f37dd
TT
59752019-08-15 Tom Tromey <tom@tromey.com>
5976
5977 * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
5978 * tui/tui-winsource.c (tui_addr_is_displayed): Move to
5979 tui-disasm.c.
5980 * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
5981 Declare.
5982 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
5983 method.
5984 (tui_disasm_window::maybe_update): Update.
5985
a54700c6
TT
59862019-08-15 Tom Tromey <tom@tromey.com>
5987
5988 * tui/tui-winsource.h (struct tui_source_window_base)
5989 <maybe_update>: Declare.
5990 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
5991 method.
5992 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
5993 Declare.
5994 * tui/tui-source.c (tui_source_window::maybe_update): New method.
5995 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
5996 Declare.
5997 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
5998
e2a678a5
TT
59992019-08-15 Tom Tromey <tom@tromey.com>
6000
6001 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
6002
f2dda477
TT
60032019-08-15 Tom Tromey <tom@tromey.com>
6004
6005 * tui/tui-wingeneral.c: Include tui-stack.h.
6006 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
6007 (struct tui_locator_window): Move from tui-data.h.
6008 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
6009 (tui_initialize_static_data): Move from tui-data.c.
6010 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
6011 (struct tui_locator_window): Move to tui-stack.c.
6012 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
6013 (tui_initialize_static_data): Move to tui-stack.c.
6014
ed4a1084
TT
60152019-08-15 Tom Tromey <tom@tromey.com>
6016
6017 * tui/tui-layout.c (show_source_disasm_command)
6018 (show_source_or_disasm_and_command): Use make_visible method, not
6019 tui_make_window.
6020 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
6021 Remove.
6022
65962b20
TT
60232019-08-15 Tom Tromey <tom@tromey.com>
6024
6025 * tui/tui-wingeneral.h (tui_make_window): Update.
6026 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
6027 parameter.
6028 (tui_gen_win_info::make_visible): Update.
6029 * tui/tui-regs.c (tui_data_window::display_registers_from):
6030 Update.
6031 * tui/tui-layout.c (show_source_disasm_command)
6032 (show_source_or_disasm_and_command): Update.
6033 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
6034 (enum tui_box): Remove.
6035 (struct tui_win_info) <can_box>: New method.
6036 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
6037 method.
6038
2208ee91
TV
60392019-08-15 Tom de Vries <tdevries@suse.de>
6040
6041 * linux-nat-trad.c: Include gdbarch.h.
6042
75faf5c4
AH
60432019-08-14 Alan Hayward <alan.hayward@arm.com>
6044
6045 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
6046 register sizes.
6047
b1c896b3
TT
60482019-08-14 Tom Tromey <tromey@adacore.com>
6049
6050 * darwin-nat.c: Include gdbarch.h.
6051 * darwin-nat-info.c: Include gdbarch.h.
6052
6405cd73
TT
60532019-08-13 Tom Tromey <tom@tromey.com>
6054
6055 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
6056 Remove.
6057 * tui/tui-data.c (tui_initialize_static_data): Update.
6058
5216580d
TT
60592019-08-13 Tom Tromey <tom@tromey.com>
6060
6061 * tui/tui-winsource.h (struct tui_exec_info_window)
6062 <~tui_exec_info_window, maybe_allocate_content, get_content,
6063 m_content>: Remove.
6064 (struct tui_source_window_base) <set_exec_info_content,
6065 show_exec_info_content>: Don't declare.
6066 * tui/tui-winsource.c
6067 (tui_exec_info_window::maybe_allocate_content): Remove.
6068 (tui_source_window_base::update_exec_info): Rename from
6069 set_exec_info_content.
6070 (tui_source_window_base::show_exec_info_content)
6071 (tui_source_window_base::update_exec_info): Remove.
6072
93858ad3
TT
60732019-08-13 Tom Tromey <tom@tromey.com>
6074
6075 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
6076 declare.
6077 * tui/tui-winsource.c (tui_update_source_window_as_is)
6078 (tui_update_source_windows_with_addr, tui_erase_source_content):
6079 Update.
6080 (tui_clear_exec_info_content): Remove.
6081
e321e7ce
TT
60822019-08-13 Tom Tromey <tom@tromey.com>
6083
6084 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
6085 declare.
6086 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
6087 call tui_erase_exec_info_content.
6088 (tui_clear_exec_info_content): Rename from
6089 tui_erase_exec_info_content.
6090 (tui_clear_exec_info_content): Delete.
6091
8270ac62
TT
60922019-08-13 Tom Tromey <tom@tromey.com>
6093
6094 * tui/tui-winsource.h (struct tui_source_window_base)
6095 <show_exec_info_content>: Declare.
6096 (tui_show_exec_info_content): Don't declare.
6097 * tui/tui-winsource.c
6098 (tui_source_window_base::show_exec_info_content): Rename from
6099 tui_show_exec_info_content.
6100 (tui_source_window_base::update_exec_info): Update.
6101
7b56485d
TT
61022019-08-13 Tom Tromey <tom@tromey.com>
6103
6104 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
6105 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
6106 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
6107 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
6108 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
6109 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
6110 ... here.
6111
7ba913dc
TT
61122019-08-13 Tom Tromey <tom@tromey.com>
6113
6114 * tui/tui-winsource.h (struct tui_source_window_base)
6115 <update_exec_info>: Declare.
6116 (tui_update_exec_info): Don't declare.
6117 * tui/tui-winsource.c (tui_update_source_window_as_is)
6118 (tui_source_window_base::refresh_all)
6119 (tui_update_all_breakpoint_info): Update.
6120 (tui_source_window_base::update_exec_info): Rename from
6121 tui_update_exec_info.
6122 * tui/tui-stack.c (tui_show_frame_info): Update.
6123
37a4a131
TT
61242019-08-13 Tom Tromey <tom@tromey.com>
6125
6126 * tui/tui-winsource.h (struct tui_source_window_base)
6127 <set_exec_info_content>: Declare.
6128 (tui_set_exec_info_content): Don't declare.
6129 * tui/tui-winsource.c
6130 (tui_source_window_base::set_exec_info_content): Rename from
6131 tui_set_exec_info_content.
6132 (tui_update_exec_info): Update.
6133
0bd27e07
TT
61342019-08-13 Tom Tromey <tom@tromey.com>
6135
6136 * tui/tui-winsource.h (struct tui_source_window_base)
6137 <show_source_content>: Declare.
6138 (tui_show_source_content): Don't declare.
6139 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
6140 (tui_source_window_base::show_source_content): Rename from
6141 tui_show_source_content.
6142 (tui_source_window_base::refresh_all): Update.
6143 * tui/tui-layout.c (show_source_disasm_command)
6144 (show_source_or_disasm_and_command): Update.
6145
b4ef5aeb
TT
61462019-08-13 Tom Tromey <tom@tromey.com>
6147
6148 * tui/tui-winsource.c (tui_erase_source_content)
6149 (tui_show_source_content, tui_source_window_base::refresh_all):
6150 Update.
6151 * tui/tui-wingeneral.h
6152 (tui_check_and_display_highlight_if_needed): Don't declare.
6153 * tui/tui-wingeneral.c
6154 (tui_win_info::check_and_display_highlight_if_needed): Rename from
6155 check_and_display_highlight_if_needed.
6156 * tui/tui-win.c (tui_rehighlight_all)
6157 (tui_win_info::make_visible_with_new_height): Update.
6158 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
6159 (tui_data_window::erase_data_content)
6160 (tui_data_window::display_all_data): Update.
6161 * tui/tui-data.h (struct tui_win_info)
6162 <check_and_display_highlight_if_needed>: Declare.
6163
fede5273
TT
61642019-08-13 Tom Tromey <tom@tromey.com>
6165
6166 * tui/tui-win.c (tui_resize_all): Call
6167 tui_delete_invisible_windows.
6168 * tui/tui-layout.c (show_layout): Call
6169 tui_delete_invisible_windows.
6170 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
6171 * tui/tui-data.c (tui_delete_invisible_windows): New function.
6172
22c3f490
TT
61732019-08-13 Tom Tromey <tom@tromey.com>
6174
6175 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
6176 tui_add_win_to_layout.
6177
16cb7910
TT
61782019-08-13 Tom Tromey <tom@tromey.com>
6179
6180 * tui/tui-layout.h (tui_default_win_height): Don't declare.
6181 * tui/tui-layout.c (tui_default_win_height): Now static.
6182
cc0c3ffb
TT
61832019-08-13 Tom Tromey <tom@tromey.com>
6184
6185 * tui/tui-layout.c (show_layout): Unify all layout cases into a
6186 single switch.
6187 (show_source_disasm_command, show_source_or_disasm_and_command):
6188 Don't check current layout.
6189
3f3ffe54
TT
61902019-08-13 Tom Tromey <tom@tromey.com>
6191
6192 * tui/tui-wingeneral.c (make_all_visible): Remove.
6193 (tui_make_all_invisible): Simplify.
6194 * tui/tui-layout.c (tui_make_all_invisible): Move from
6195 tui-wingeneral.c; simplify.
6196 (show_layout): Hoist call to tui_make_all_invisible.
6197 (show_data): Don't call tui_make_all_invisible.
6198
69258091
TT
61992019-08-13 Tom Tromey <tom@tromey.com>
6200
6201 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
6202 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
6203
62cf57fe
TT
62042019-08-13 Tom Tromey <tom@tromey.com>
6205
6206 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
6207 tui-data.c.
6208 (show_source_disasm_command, show_data)
6209 (show_source_or_disasm_and_command): Don't use
6210 tui_set_current_layout_to.
6211 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
6212 * tui/tui-data.c (current_layout, tui_current_layout): Move to
6213 tui-layout.c.
6214 (tui_set_current_layout_to): Remove.
6215
2afade5d
TT
62162019-08-13 Tom Tromey <tom@tromey.com>
6217
6218 * tui/tui-layout.c (tui_set_layout): Update.
6219 * tui/tui-data.h (struct tui_layout_def): Remove.
6220 (tui_layout_def): Don't declare.
6221 * tui/tui-data.c (layout_def): Remove.
6222 (tui_layout_def): Remove.
6223
a3504e96
TT
62242019-08-13 Tom Tromey <tom@tromey.com>
6225
6226 * tui/tui-winsource.h (struct tui_source_window_base)
6227 <clear_detail>: No longer "override".
6228 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
6229 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
6230 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
6231 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
6232 Remove.
6233 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
6234
29c92911
TT
62352019-08-13 Tom Tromey <tromey@adacore.com>
6236
6237 * tracepoint.c: Don't include readline.h or history.h.
6238
86c6b807
TT
62392019-08-12 Tom Tromey <tom@tromey.com>
6240
6241 * configure: Rebuild.
6242 * configure.ac: Check for readline 7.
6243 * NEWS: Mention readline 7 requirement.
6244 * README: Update.
6245
5db2718c
TT
62462019-08-12 Tom Tromey <tom@tromey.com>
6247
6248 * mingw-hdep.c (gdb_select): Remove readline hack.
6249
dac36daf
PFC
62502019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6251
6252 * blockframe.c (find_pc_partial_function): Set *block to nullptr
6253 when the function fails.
6254
1022c627
AA
62552019-08-09 Andreas Arnez <arnez@linux.ibm.com>
6256
6257 * s390-tdep.c (s390_type_align): New function.
6258 (s390_gdbarch_init): Set it as type_align gdbarch method.
6259
eba4caf2
TV
62602019-08-09 Tom de Vries <tdevries@suse.de>
6261
6262 PR gdb/24591
6263 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
6264 pc_low with relocation offset.
6265
123cd851
TT
62662019-08-07 Tom Tromey <tromey@adacore.com>
6267
6268 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
6269 (print_frame_args): Update.
6270 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
6271 Update.
6272 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
6273 * frame.h (struct frame_arg): Add initializers.
6274 <error>: Now a unique_xmalloc_ptr.
6275
3d31bc39
AH
62762019-08-07 Alan Hayward <alan.hayward@arm.com>
6277
6278 * NEWS: Expand the Pointer Authentication entry.
6279 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
6280 (aarch64_frame_unmask_lr): ... to this.
6281 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
6282 Call aarch64_frame_unmask_lr.
6283 * frame.c (struct frame_info): Add "masked" variable.
6284 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
6285 (fprint_frame): Check for masked pc.
6286 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
6287 declarations.
6288 * python/py-framefilter.c (py_print_frame): Check for masked pc.
6289 * stack.c (print_frame): Check for masked pc.
6290
0cf9feb9
TT
62912019-08-06 Tom Tromey <tom@tromey.com>
6292
6293 * stabsread.c (patch_block_stabs, read_one_struct_field)
6294 (read_enum_type): Use obstack_strndup.
6295 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
6296 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
6297 * dwarf2read.c (guess_full_die_structure_name)
6298 (anonymous_struct_prefix): Use obstack_strndup.
6299 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
6300 * c-exp.y (yylex): Use obstack_strndup.
6301 * ada-exp.y (write_object_renaming, write_ambiguous_var)
6302 (write_var_or_type): Use obstack_strndup.
6303
efba19b0
TT
63042019-08-06 Tom Tromey <tom@tromey.com>
6305
6306 * symfile.c (reread_symbols): Use obstack_strdup.
6307 * stabsread.c (read_type): Use obstack_strdup.
6308 * gdb_obstack.h (obstack_strdup): New overload.
6309 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
6310 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
6311 (dwarf2_canonicalize_name): Use obstack_strdup.
6312 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
6313 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
6314 Use obstack_strdup.
6315
f25102f7
TT
63162019-08-06 Tom Tromey <tom@tromey.com>
6317
6318 * gdb_obstack.h (obstack_strdup): Define.
6319 * gdb_obstack.c (obstack_strdup): Don't define.
6320
021887d8
TT
63212019-08-06 Tom Tromey <tom@tromey.com>
6322
6323 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
6324 obstack_strdup.
6325 * typeprint.c (typedef_hash_table::find_global_typedef): Use
6326 obstack_strdup.
6327 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
6328 * stabsread.c (common_block_start): Use obstack_strdup.
6329 * objfiles.c (set_objfile_main_name, objfile): Use
6330 obstack_strdup.
6331 * namespace.c (add_using_directive): Use obstack_strdup.
6332 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
6333 * jit.c (finalize_symtab): Use obstack_strdup.
6334 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
6335 (guess_partial_die_structure_name, partial_die_info::fixup)
6336 (dwarf2_name): Use obstack_strdup.
6337 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
6338 obstack_strdup.
6339 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
6340 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
6341 obstack_strdup.
6342 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
6343
d2834edc
PW
63442019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6345
6346 * unittests/help-doc-selftests.c: New file.
6347 * Makefile.in: Add the new file.
6348
590042fc
PW
63492019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6350
6351 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
6352 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
6353 the full first line, except when FOR_VALUE_PREFIX. In this case,
6354 the trailing '.' is not output, and the first character is uppercased.
6355 (print_help_for_command): Update call to print_doc_line.
6356 (print_doc_of_command): Likewise.
6357 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
6358 * cli/cli-option.c (append_indented_doc): Do not append newline.
6359 (build_help_option): Append newline after first appended_indented_doc
6360 only if a second call is done.
6361 (build_help): Append 2 new lines before each option, except the first
6362 one.
6363 * compile/compile.c (_initialize_compile): Add new lines after
6364 %OPTIONS%, when not at the end of the help.
6365 Change help doc or code
6366 producing the help doc to respect the invariants.
6367 * maint-test-options.c (_initialize_maint_test_options): Likewise.
6368 Also removed the new line after 'Options:', as all other commands
6369 do not put an empty line between 'Options:' and the first option.
6370 * printcmd.c (_initialize_printcmd): Likewise.
6371 * stack.c (_initialize_stack): Likewise.
6372 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
6373 incorrectly telling COMMAND is optional.
6374 * ada-lang.c (_initialize_ada_language): Change help doc or code
6375 producing the help doc to respect the invariants.
6376 * ada-tasks.c (_initialize_ada_tasks): Likewise.
6377 * breakpoint.c (_initialize_breakpoint): Likewise.
6378 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
6379 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
6380 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
6381 * cli/cli-style.c (cli_style_option::add_setshow_commands,
6382 _initialize_cli_style): Likewise.
6383 * corelow.c (core_target_info): Likewise.
6384 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
6385 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
6386 * filesystem.c (_initialize_filesystem): Likewise.
6387 * frame.c (_initialize_frame): Likewise.
6388 * gnu-nat.c (add_task_commands): Likewise.
6389 * infcall.c (_initialize_infcall): Likewise.
6390 * infcmd.c (_initialize_infcmd): Likewise.
6391 * interps.c (_initialize_interpreter): Likewise.
6392 * language.c (_initialize_language): Likewise.
6393 * linux-fork.c (_initialize_linux_fork): Likewise.
6394 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
6395 * maint.c (_initialize_maint_cmds): Likewise.
6396 * memattr.c (_initialize_mem): Likewise.
6397 * printcmd.c (_initialize_printcmd): Likewise.
6398 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
6399 _RegEx): Likewise.
6400 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
6401 * record-btrace.c (_initialize_record_btrace): Likewise.
6402 * record-full.c (_initialize_record_full): Likewise.
6403 * record.c (_initialize_record): Likewise.
6404 * regcache-dump.c (_initialize_regcache_dump): Likewise.
6405 * regcache.c (_initialize_regcache): Likewise.
6406 * remote.c (add_packet_config_cmd, init_remote_threadtests,
6407 _initialize_remote): Likewise.
6408 * ser-tcp.c (_initialize_ser_tcp): Likewise.
6409 * serial.c (_initialize_serial): Likewise.
6410 * skip.c (_initialize_step_skip): Likewise.
6411 * source.c (_initialize_source): Likewise.
6412 * stack.c (_initialize_stack): Likewise.
6413 * symfile.c (_initialize_symfile): Likewise.
6414 * symtab.c (_initialize_symtab): Likewise.
6415 * target-descriptions.c (_initialize_target_descriptions): Likewise.
6416 * top.c (init_main): Likewise.
6417 * tracefile-tfile.c (tfile_target_info): Likewise.
6418 * tracepoint.c (_initialize_tracepoint): Likewise.
6419 * tui/tui-win.c (_initialize_tui_win): Likewise.
6420 * utils.c (add_internal_problem_command): Likewise.
6421 * valprint.c (value_print_option_defs): Likewise.
6422
404f2902
FCE
64232019-08-06 Frank Ch. Eigler <fche@redhat.com>
6424
6425 PR build/24886
6426 * configure.ac: Drop enable-libmcheck support.
6427 * configure, config.in: Rebuild.
6428 * libmcheck.m4: Remove.
6429 * acinclude.m4: Don't include it.
6430 * Makefile.in: Don't distribute it.
6431 * top.c (print_gdb_configuration): Don't mention it.
6432
046bebe1
TT
64332019-08-06 Tom Tromey <tom@tromey.com>
6434
6435 * utils.c (set_output_style): Sometimes pass stream to
6436 emit_style_escape.
6437 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
6438 * record-btrace.c (btrace_insn_history): Update.
6439 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
6440 method.
6441 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
6442 Update initializers.
6443 <m_uiout>: New field.
6444 <m_di>: Move lower.
6445 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
6446 Remove "uiout" parameter.
6447 (dump_insns): Update.
6448 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
6449 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
6450
ddbcedf5
CB
64512019-08-06 Christian Biesinger <cbiesinger@google.com>
6452
6453 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
6454 (error_in_psymtab_expansion): Likewise.
6455 (lookup_symbol_via_quick_fns): Likewise.
6456 (basic_lookup_transparent_type_quick): Likewise.
6457 (basic_lookup_transparent_type_1): Likewise.
6458
b08b16c8
TT
64592019-08-06 Tom Tromey <tromey@adacore.com>
6460
6461 * source.c (last_source_error): Now bool.
6462 (print_source_lines_base): Make "noprint" bool. Only open
6463 source file when last_source_visited changes.
6464
cb44333d
TT
64652019-08-06 Tom Tromey <tromey@adacore.com>
6466
6467 * annotate.c (annotate_source_line): Use g_source_cache.
6468 * source-cache.c (source_cache::get_plain_source_lines): Change
6469 parameters. Populate m_offset_cache.
6470 (source_cache::ensure): New method.
6471 (source_cache::get_line_charpos): New method.
6472 (extract_lines): Move lower. Change parameters.
6473 (source_cache::get_source_lines): Move lower.
6474 * source-cache.h (class source_cache): Update comment.
6475 <get_line_charpos>: New method.
6476 <get_source_lines>: Update comment.
6477 <clear>: Clear m_offset_cache.
6478 <get_plain_source_lines>: Change parameters.
6479 <ensure>: New method
6480 <m_offset_cache>: New member.
6481 * source.c (forget_cached_source_info_for_objfile): Update.
6482 (info_source_command): Use g_source_cache.
6483 (find_source_lines, open_source_file_with_line_charpos): Remove.
6484 (print_source_lines_base, search_command_helper): Use g_source_cache.
6485 * source.h (open_source_file_with_line_charpos): Don't declare.
6486 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
6487 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
6488 Use g_source_cache.
6489
872dceaa
TT
64902019-08-06 Tom Tromey <tromey@adacore.com>
6491
6492 * source-cache.c (source_cache::get_plain_source_lines):
6493 Remove "first_line" and "last_line" parameters.
6494 (source_cache::get_source_lines): Cache plain text.
6495 * source-cache.h (class source_cache)
6496 <get_plain_source_lines>: Update.
6497
269249d9
TT
64982019-08-06 Tom Tromey <tromey@adacore.com>
6499
6500 * source-cache.c (extract_lines): No longer a method.
6501 Changed type of parameter. Include final newline.
6502 (selftests::extract_lines_test): New function.
6503 (_initialize_source_cache): Likewise.
6504 * source-cache.h (class source_cache)
6505 <extract_lines>: Don't declare.
6506
c0e8dcd8
TT
65072019-08-06 Tom Tromey <tromey@adacore.com>
6508
6509 * breakpoint.c (init_breakpoint_sal): Update.
6510 (breakpoint): Update.
6511 * breakpoint.h (struct breakpoint) <filter>: Now a
6512 unique_xmalloc_ptr.
6513
0b27c27d
CB
65142019-08-05 Christian Biesinger <cbiesinger@google.com>
6515
6516 * NEWS: Mention dictionary access on blocks.
6517 * python/py-block.c (blpy_getitem): New function.
6518 (block_object_as_mapping): New struct.
6519 (block_object_type): Use new struct for tp_as_mapping field.
6520
4ee94178
CB
65212019-08-05 Christian Biesinger <cbiesinger@google.com>
6522
6523 * objfiles.h (objfile): Add a comment describing partial symbols.
6524
8abfcabc
TT
65252019-08-05 Tom Tromey <tromey@adacore.com>
6526
6527 * compile/compile.c (_initialize_compile): Use _(), not N_().
6528 * thread.c (_initialize_thread): Use _(), not N_().
6529 * stack.c (_initialize_stack): Use _(), not N_().
6530 * printcmd.c (_initialize_printcmd): Use _(), not N_().
6531
2b79f376
SM
65322019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6533
6534 * dwarf2read.c (struct dw2_symtab_iterator):
6535 <want_specific_block>: Remove.
6536 <block_index>: Change type to gdb::optional.
6537 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
6538 change type of BLOCK_INDEX parameter to gdb::optional.
6539 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
6540 (dw2_lookup_symbol): Don't pass argument for
6541 WANT_SPECIFIC_BLOCK.
6542 (dw2_expand_symtabs_for_function): Don't pass argument for
6543 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
6544 (class dw2_debug_names_iterator)
6545 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
6546 parameter, change BLOCK_INDEX type to gdb::optional.
6547 <m_want_specific_block>: Remove.
6548 <m_block_index>: Change type to gdb::optional.
6549 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
6550 gdb::optional. Re-write in function of gdb::optional.
6551 (dw2_debug_names_lookup_symbol): Don't pass argument for
6552 WANT_SPECIFIC_BLOCK.
6553 (dw2_debug_names_expand_symtabs_for_function): Don't pass
6554 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
6555 BLOCK_INDEX.
6556
ae60f04e
PW
65572019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6558
6559 * NEWS: Mention changes to "info sources" command.
6560
28cd9371
PW
65612019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6562
6563 * symtab.c (filename_partial_match_opts): New struct type.
6564 (struct output_source_filename_data): New members
6565 regexp, c_regexp, partial_match.
6566 (output_source_filename): Use new members to decide to print file.
6567 (info_sources_option_defs): New variable.
6568 (make_info_sources_options_def_group, print_info_sources_header,
6569 info_sources_command_completer):
6570 New functions.
6571 (info_sources_command): Read new optional arguments.
6572 (_initialize_symtab): Update info sources help.
6573
ca683e3a
AO
65742019-08-02 Alexandre Oliva <oliva@adacore.com>
6575
6576 * ada-lang.c (exception_support_info_v0): Renamed from...
6577 (default_exception_support_info): ... this. Create new
6578 definition for v1.
6579 (ada_has_this_exception_support): Look up catch_handlers_sym.
6580 (ada_exception_support_info_sniffer): Try v0 after default.
6581
f1264162
TT
65822019-08-01 Tom Tromey <tromey@adacore.com>
6583
6584 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
6585 gdbarch.h.
6586
0a7b2485
CB
65872019-08-01 Christian Biesinger <cbiesinger@google.com>
6588
6589 * s12z-tdep.c: Fix include path for s12z-opc.h.
6590
c6bdbeb7
AH
65912019-08-01 Alan Hayward <alan.hayward@arm.com>
6592
6593 * NEWS: Require GNU make 3.82.
6594
a2bd7b82
TT
65952019-07-16 Tom Tromey <tom@tromey.com>
6596
6597 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
6598 declare.
6599
aa3b6533
TT
66002019-07-30 Tom Tromey <tromey@adacore.com>
6601
6602 * block.c (contained_in): Remove BLOCK_FUNCTION check.
6603
a1530dc7
KB
66042019-07-30 Kevin Buettner <kevinb@redhat.com>
6605
6606 * printcmd.c (print_address_symbolic): Print negative offsets.
6607 (build_address_symbolic): Force signed arithmetic when computing
6608 offset.
6609
2906593f
CB
66102019-07-30 Christian Biesinger <cbiesinger@google.com>
6611
6612 PR/24474: Add a function to lookup static variables.
6613 * NEWS: Mention this new function.
6614 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
6615 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
6616 * python/python.c (python_GdbMethods): Add new function.
6617
c620ed88
CB
66182019-07-29 Christian Biesinger <cbiesinger@google.com>
6619
6620 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
6621 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
6622 (objfpy_lookup_static_symbol): New function.
6623 (objfile_object_methods): Add new functions.
6624
bc4268a5
PW
66252019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6626
6627 * NEWS: Mention 'set|show print frame-info'. Mention new
6628 'presence' value for 'frame-arguments'. Mention new '-frame-info'
6629 backtrace argument. Mention that python frame filtering code
6630 is now consistent with what 'backtrace' command prints.
6631
4b5e8d19
PW
66322019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6633
6634 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
6635 comments.
6636 (print_frame_info_auto, print_frame_info_source_line,
6637 print_frame_info_location, print_frame_info_source_and_location,
6638 print_frame_info_location_and_address, print_frame_info_short_location):
6639 New declarations.
6640 (struct frame_print_options): New member print_frame_info.
6641 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
6642 * stack.h (get_user_print_what_frame_info): New declaration.
6643 (frame_show_address): New declaration.
6644 * stack.c (print_frame_arguments_choices): New value 'presence'.
6645 (print_frame_info_auto, print_frame_info_source_line,
6646 print_frame_info_location, print_frame_info_source_and_location,
6647 print_frame_info_location_and_address, print_frame_info_short_location,
6648 print_frame_info_choices, print_frame_info_print_what): New definitions.
6649 (print_frame_args): Only print dots for args if print frame-arguments
6650 is 'presence'.
6651 (frame_print_option_defs): New element for "frame-info".
6652 (get_user_print_what_frame_info): New function.
6653 (frame_show_address): Make non static. Move comment to stack.h.
6654 (print_frame_info_to_print_what): New function.
6655 (print_frame_info): Update comment. Use fp_opts.print_frame_info
6656 to decide what to print.
6657 (backtrace_command_1): Handle the new print_frame_arguments_presence
6658 value.
6659 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
6660 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
6661 (py_print_frame): In non-mi mode, use LOCATION as default for
6662 print_what, similarly to frame information printed directly by
6663 backtrace command. Handle frame-info user option in non MI mode.
6664
6bdfee81
KB
66652019-07-27 Kevin Buettner <kevinb@redhat.com>
6666
6667 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
6668 Add case for debugging 32-bit target on 64-bit host. Revise
6669 comment.
6670
98a617f8
KB
66712019-07-27 Kevin Buettner <kevinb@redhat.com>
6672
6673 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
6674 instead of find_function_entry_range_from_pc.
6675
567238c9
KB
66762019-07-27 Kevin Buettner <kevinb@redhat.com>
6677
6678 * stack.c (find_frame_funname): Remove code which preferred
6679 minsym over symtab sym in "certain pathological cases".
6680
2dc80cf8
KB
6681 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
6682 parameter. Change type of "do_demangle" to bool.
6683 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
6684 Pass suitable "prefer_sym_over_minsym" flag to
6685 build_address_symbolic(). Don't output "+" for negative offsets.
6686 * printcmd.c (print_address_symbolic): Update invocation of
6687 build_address_symbolic to include a "prefer_sym_over_minsym"
6688 flag.
6689 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
6690 Restrict cases in which use of minimal symbol is preferred to that
6691 of a found symbol. Update comments.
6692
1aff7173
KB
6693 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
6694 for entry pc when entry pc is out of range for that FDE.
6695
89b085ac
BC
66962019-07-26 Brian Callahan <bcallah@openbsd.org>
6697
6698 PR gdb/24839:
6699 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
6700 type.
6701
f32feb4a
CB
67022019-07-25 Christian Biesinger <cbiesinger@google.com>
6703
6704 * python/py-objfile.c (add_separate_debug_file): Fix comment about
6705 this function's Python signature.
6706
6707
67082019-07-24 Christian Biesinger <cbiesinger@google.com>
442853af
CB
6709
6710 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
6711 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
6712 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
6713 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
6714 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
6715
6716
c54e4253
YS
67172019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
6718
6719 * h8300-tdep.c (h8300_register_name_common): New.
6720 h8300_register_name): Use h8300_register_name_common.
6721 (h8300s_register_name): Likewise.
6722 (h8300sx_register_name): Likewise.
6723 (h8300h_register_nam): New.
6724 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
6725
6726
40eadf04
SP
67272019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
6728
6729 * arm-tdep.c (arm_skip_cmse_entry): New function.
6730 (arm_is_sgstubs_section): New function.
6731 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
6732
bfa2a36d
TT
67332019-07-22 Tom Tromey <tom@tromey.com>
6734
6735 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
6736 Don't self-assign.
6737
a8e9d247
AB
67382019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
6739
6740 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
6741 type_print.
6742
eb86c5e2
AB
67432019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
6744
6745 * symtab.c (search_symbols): Adjust msymbol matching type arrays
6746 so that GDB doesn't match any msymbols when searching in the
6747 TYPES_DOMAIN.
6748 (print_symbol_info): Print using typedef_print or type_print based
6749 on the type of the symbol. Add updated FIXME comment moved from...
6750 (_initialize_symtab): ... move and update FIXME comment to above.
6751
a8eab7c6
AB
67522019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
6753
6754 * NEWS: Mention adding -q option to "info types".
6755 * symtab.c (struct info_types_options): New struct.
6756 (info_types_options_defs): New variable.
6757 (make_info_types_options_def_group): New function.
6758 (info_types_command): Use gdb::option framework to parse options.
6759 (info_types_command_completer): New function.
6760 (_initialize_symtab): Extend the help text on "info types" and
6761 register command completer.
6762
b4603c34
CB
67632019-07-21 Christian Biesinger <cbiesinger@google.com>
6764
6765 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
6766 (lookup_symbol_in_objfile): Change int to block_enum and add a
6767 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
6768
c8cdc1e0
CB
67692019-07-20 Christian Biesinger <cbiesinger@google.com>
6770
6771 * MAINTAINERS (Write After Approval): Add self.
6772
01e175fe
AB
67732019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
6774
6775 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
6776 instruction to the dummy code region.
6777
56f79b63
TT
67782019-07-19 Tom Tromey <tromey@adacore.com>
6779
6780 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
6781 (ARGSUSED, PARAMS, __func__): Remove rules.
6782
4c5aa8e0
AH
67832019-07-19 Alan Hayward <alan.hayward@arm.com>
6784
6785 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
6786 * features/arm/arm-with-iwmmxt.c: Remove.
6787 * features/arm/arm-with-iwmmxt.xml: Remove.
6788 * features/arm/arm-with-m-fpa-layout.c: Remove.
6789 * features/arm/arm-with-m-fpa-layout.xml: Remove.
6790 * features/arm/arm-with-m-vfp-d16.c: Remove.
6791 * features/arm/arm-with-m-vfp-d16.xml: Remove.
6792 * features/arm/arm-with-m.c: Remove.
6793 * features/arm/arm-with-m.xml: Remove.
6794 * features/arm/arm-with-neon.c: Remove.
6795 * features/arm/arm-with-neon.xml: Remove.
6796 * features/arm/arm-with-vfpv2.c: Remove.
6797 * features/arm/arm-with-vfpv2.xml: Remove.
6798 * features/arm/arm-with-vfpv3.c: Remove.
6799 * features/arm/arm-with-vfpv3.xml: Remove.
6800
f42b2617
AH
68012019-07-19 Alan Hayward <alan.hayward@arm.com>
6802
6803 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
6804
f29ec966
AH
68052019-07-19 Alan Hayward <alan.hayward@arm.com>
6806
6807 * arch/aarch32.c (aarch32_create_target_description): Create
6808 target descriptions using features.
6809 * arch/arm.c (arm_create_target_description)
6810 (arm_create_mprofile_target_description): Likewise.
6811 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
6812
d105cce5
AH
68132019-07-19 Alan Hayward <alan.hayward@arm.com>
6814
6815 * Makefile.in: Add new files.
6816 * aarch32-tdep.c: New file.
6817 * aarch32-tdep.h: New file.
6818 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
6819 Call aarch32_read_description.
6820 * arch/aarch32.c: New file.
6821 * arch/aarch32.h: New file.
6822 * arch/arm.c (arm_create_target_description)
6823 (arm_create_mprofile_target_description): New function.
6824 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
6825 (arm_create_target_description)
6826 (arm_create_mprofile_target_description): New declaration.
6827 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
6828 read_description functions.
6829 * arm-linux-nat.c (arm_linux_nat_target::read_description):
6830 Likewise.
6831 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
6832 * arm-tdep.c (tdesc_arm_list): New variable.
6833 (arm_register_g_packet_guesses): Call create description functions.
6834 (arm_read_description) (arm_read_mprofile_description): New
6835 function.
6836 * arm-tdep.h (arm_read_description)
6837 (arm_read_mprofile_description): Add declaration.
6838 * configure.tgt: Add new files.
6839
afe09f0b
GL
68402019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
6841
6842 * top.c (new_ui_command): Open specified terminal just once.
6843
cd215b2e
TT
68442019-07-18 Tom Tromey <tromey@adacore.com>
6845
6846 * symtab.c (main_name): Constify return type.
6847 * symfile.c (set_initial_language): Update.
6848 * symtab.h (main_name): Constify return type.
6849
d8f68fcb
TT
68502019-07-17 Tom Tromey <tom@tromey.com>
6851
6852 * tui/tui-winsource.c (tui_update_source_window)
6853 (tui_update_source_window_as_is)
6854 (tui_update_source_windows_with_line): Remove return.
6855 * tui/tui-disasm.c (tui_show_disassem)
6856 (tui_show_disassem_and_update_source): Remove return.
6857 * tui/tui.c (tui_reset): Remove return.
6858 * tui/tui-wingeneral.c
6859 (tui_check_and_display_highlight_if_needed): Remove return.
6860
ca5af91e
TT
68612019-07-17 Tom Tromey <tom@tromey.com>
6862
6863 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
6864
5104fe36
TT
68652019-07-17 Tom Tromey <tom@tromey.com>
6866
6867 * tui/tui-winsource.h (struct tui_exec_info_window)
6868 (struct tui_source_window_base): Move from tui-data.h.
6869 * tui/tui-winsource.c: Move many method definitions from
6870 elsewhere. Remove "structuring" comments.
6871 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
6872 (tui_source_window_base::refresh_window): Move to
6873 tui-winsource.c.
6874 * tui/tui-win.c (tui_source_window_base::refresh_all)
6875 (tui_source_window_base::update_tab_width)
6876 (tui_source_window_base::set_new_height)
6877 (tui_source_window_base::do_make_visible_with_new_height): Move to
6878 tui-winsource.c.
6879 * tui/tui-source.h: Update.
6880 * tui/tui-source.c (tui_source_window_base::reset): Move to
6881 tui-winsource.c.
6882 * tui/tui-disasm.h: Update.
6883 * tui/tui-data.h (struct tui_exec_info_window): Move to
6884 tui-winsource.h.
6885 (struct tui_source_window_base): Likewise.
6886 * tui/tui-data.c (tui_source_window_base::clear_detail)
6887 (tui_source_window_base, ~tui_source_window_base): Move to
6888 tui-winsource.c.
6889
daa15dde
TT
68902019-07-17 Tom Tromey <tom@tromey.com>
6891
6892 * tui/tui-win.c (tui_resize_all)
6893 (tui_source_window_base::update_tab_width)
6894 (tui_adjust_win_heights): Update.
6895 (tui_win_info::make_invisible_and_set_new_height): Rename from
6896 make_invisible_and_set_new_height.
6897 * tui/tui-data.h (struct tui_win_info)
6898 <make_invisible_and_set_new_height>: New method.
6899
bfad4537
TT
69002019-07-17 Tom Tromey <tom@tromey.com>
6901
6902 * tui/tui.c: Update.
6903 * tui/tui-source.h (struct tui_source_window): Move from
6904 tui-data.h.
6905 * tui/tui-layout.c: Update.
6906 * tui/tui-disasm.c: Update.
6907 * tui/tui-data.h (struct tui_source_window): Move to
6908 tui-source.h.
6909
88f7e873
TT
69102019-07-17 Tom Tromey <tom@tromey.com>
6911
6912 * tui/tui-disasm.h (struct tui_disasm_window): Move from
6913 tui-data.h.
6914 * tui/tui-data.h (struct tui_disasm_window): Move to
6915 tui-disasm.h.
6916
96bd6233
TT
69172019-07-17 Tom Tromey <tom@tromey.com>
6918
6919 * tui/tui-regs.h (struct tui_data_item_window): Move from
6920 tui-data.h.
6921 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
6922 * tui/tui-data.h (struct tui_data_item_window): Move to
6923 tui-regs.h.
6924 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
6925
ce38393b
TT
69262019-07-17 Tom Tromey <tom@tromey.com>
6927
6928 * tui/tui.c: Update.
6929 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
6930 (tui_cmd_window::max_height): Move to tui-command.c.
6931 * tui/tui-layout.c: Update.
6932 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
6933 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
6934 tui-command.c.
6935 * tui/tui-command.h (struct tui_cmd_window): Move from
6936 tui-data.h.
6937 * tui/tui-command.c: Remove "structuring" comments.
6938 (tui_cmd_window::clear_detail)
6939 (tui_cmd_window::do_make_visible_with_new_height)
6940 (tui_cmd_window::max_height): Move from elsewhere.
6941
2d8b51cb
TT
69422019-07-17 Tom Tromey <tom@tromey.com>
6943
6944 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
6945 Now static.
6946 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
6947 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
6948
18ab23af
TT
69492019-07-17 Tom Tromey <tom@tromey.com>
6950
6951 * tui/tui.c: Update.
6952 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
6953 tui-regs.c.
6954 * tui/tui-windata.h: Remove file.
6955 * tui/tui-windata.c: Remove file.
6956 * tui/tui-win.c (tui_data_window::set_new_height)
6957 (tui_data_window::do_make_visible_with_new_height): Move to
6958 tui-regs.c.
6959 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
6960 * tui/tui-regs.c: Remove "structuring" comments.
6961 (tui_data_window::first_data_item_displayed)
6962 (tui_data_window::delete_data_content_windows)
6963 (tui_data_window::erase_data_content)
6964 (tui_data_window::display_all_data)
6965 (tui_data_window::refresh_all)
6966 (tui_data_window::do_scroll_vertical)
6967 (tui_data_window::clear_detail, tui_data_window::set_new_height)
6968 (tui_data_window::do_make_visible_with_new_height)
6969 (tui_data_window::refresh_window): Move from elsewhere.
6970 (_initialize_tui_regs): Move to end of file.
6971 * tui/tui-layout.c: Update.
6972 * tui/tui-hooks.c: Update.
6973 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
6974 * tui/tui-data.c (tui_data_window::clear_detail): Move to
6975 tui-regs.c.
6976 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
6977
88b7e7cc
TT
69782019-07-17 Tom Tromey <tom@tromey.com>
6979
6980 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
6981 seen.
6982
0fcd3711
TT
69832019-07-17 Tom Tromey <tom@tromey.com>
6984
6985 * tui/tui-win.c (tui_source_window_base::set_new_height)
6986 (tui_source_window_base::do_make_visible_with_new_height): Use
6987 m_has_locator field directly.
6988 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
6989 method.
6990 (struct tui_source_window_base) <has_locator>: Likewise.
6991
4a38112d
TT
69922019-07-17 Tom Tromey <tom@tromey.com>
6993
6994 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
6995 Don't declare.
6996 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
6997 Remove.
6998 * tui/tui-win.c (tui_source_window_base::set_new_height)
6999 (tui_source_window_base::set_new_height)
7000 (make_invisible_and_set_new_height)
7001 (tui_source_window_base::do_make_visible_with_new_height)
7002 (tui_source_window_base::do_make_visible_with_new_height):
7003 Update.
7004 * tui/tui-layout.c (show_source_disasm_command, show_data)
7005 (show_source_or_disasm_and_command): Update.
7006 * tui/tui-layout.c (show_layout): Update.
7007
09129226
TT
70082019-07-17 Tom Tromey <tom@tromey.com>
7009
7010 * tui/tui-layout.c (make_data_window): Remove.
7011 (show_data): Unify creation and re-initialization cases.
7012
4a8a5e84
TT
70132019-07-17 Tom Tromey <tom@tromey.com>
7014
7015 * tui/tui-layout.c (make_source_window, make_disasm_window):
7016 Remove.
7017 (show_data): Unify creation and re-initialization cases.
7018
76d2be8e
TT
70192019-07-17 Tom Tromey <tom@tromey.com>
7020
7021 * tui/tui-layout.c (make_command_window): Remove.
7022 (show_source_disasm_command, show_source_or_disasm_and_command):
7023 Unify creation and re-initialization cases.
7024
890b8bde
TT
70252019-07-17 Tom Tromey <tom@tromey.com>
7026
7027 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
7028 creation and re-initialization cases.
7029
2cdfa113
TT
70302019-07-17 Tom Tromey <tom@tromey.com>
7031
7032 * tui/tui-regs.c (tui_get_register): Return void.
7033
8e3cfd09
TT
70342019-07-17 Tom Tromey <tom@tromey.com>
7035
7036 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
7037 Simplify.
7038
f4e04977
TT
70392019-07-17 Tom Tromey <tom@tromey.com>
7040
7041 * tui/tui-layout.c (show_source_disasm_command): Simplify window
7042 resetting.
7043
0379b883
TT
70442019-07-17 Tom Tromey <tom@tromey.com>
7045
7046 * tui/tui.h (tui_set_layout_by_name): Don't declare.
7047 * tui/tui-regs.c (tui_reg_layout): New function.
7048 (tui_show_registers, tui_reg_command): Use it.
7049 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
7050 (tui_layout_command): Rename from tui_set_layout_by_name. Change
7051 parameters.
7052 (tui_layout_command): Remove.
7053
b7fbad91
TT
70542019-07-17 Tom Tromey <tom@tromey.com>
7055
7056 * tui/tui-layout.h (tui/tui-layout): Return void.
7057 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
7058
4e1e56b9
TT
70592019-07-17 Tom Tromey <tom@tromey.com>
7060
7061 * tui/tui-layout.c (show_source_disasm_command, show_data):
7062 Update.
7063 (reset_locator): Remove.
7064 (show_source_or_disasm_and_command): Update.
7065
1e0c09ba
TT
70662019-07-17 Tom Tromey <tom@tromey.com>
7067
7068 * tui/tui-source.c (tui_source_window_base::reset): Remove
7069 win_type parameter.
7070 * tui/tui-layout.c (make_command_window, make_source_window)
7071 (make_disasm_window, make_data_window)
7072 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
7073 (reset_locator, show_source_or_disasm_and_command): Update.
7074 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
7075 win_type parameter.
7076 (struct tui_source_window_base) <reset>: Likewise.
7077
1bf605de
TT
70782019-07-17 Tom Tromey <tom@tromey.com>
7079
7080 * tui/tui-layout.c (show_source_disasm_command): Use
7081 reset_locator.
7082 (reset_locator): New function.
7083 (init_and_make_win): Remove.
7084 (show_source_or_disasm_and_command): Use reset_locator.
7085
098f9ed4
TT
70862019-07-17 Tom Tromey <tom@tromey.com>
7087
7088 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
7089 condition.
7090 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
7091 Remove condition.
7092 * tui/tui-source.c (tui_source_window_base::reset): New method.
7093 * tui/tui-layout.c (make_command_window): Don't call
7094 init_and_make_win.
7095 (make_source_window, make_disasm_window): Don't call
7096 make_source_or_disasm_window.
7097 (make_data_window): Don't call init_and_make_win. Change calling
7098 convention.
7099 (show_source_disasm_command, show_data): Simplify.
7100 (make_source_or_disasm_window): Remove.
7101 (show_source_or_disasm_and_command): Simplify.
7102 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
7103 (struct tui_source_window_base) <reset>: Likewise.
7104 <execution_info>: Remove initializer.
7105 * tui/tui-data.c (tui_source_window_base): Initialize
7106 execution_info.
7107
80110957
TT
71082019-07-17 Tom Tromey <tom@tromey.com>
7109
7110 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
7111 variable.
7112
cf82af05
TT
71132019-07-17 Tom Tromey <tom@tromey.com>
7114
7115 * tui/tui.c (tui_rl_other_window): Update.
7116 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
7117 superclass method first. Always iterate over regs_content.
7118 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
7119 method.
7120 * tui/tui-win.c (tui_set_focus_command): Update.
7121
01aeb396
TT
71222019-07-17 Tom Tromey <tom@tromey.com>
7123
7124 * tui/tui-win.c (tui_set_focus_command): Rename from
7125 tui_set_focus. Call tui_enable.
7126 (tui_set_focus_command): Remove.
7127
fd6c75ee
TT
71282019-07-17 Tom Tromey <tom@tromey.com>
7129
7130 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
7131 refresh_window.
7132 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
7133 touchwin.
7134 (tui_data_window::refresh_window): Call refresh_window on data
7135 items. Always call superclass refresh_window.
7136 (tui_win_info::refresh): Remove.
7137 (tui_source_window_base::refresh_window): Update.
7138 (tui_refresh_all): Update.
7139 * tui/tui-layout.c (show_source_disasm_command): Remove call to
7140 refresh_window.
7141 (show_source_or_disasm_and_command): Likewise.
7142 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
7143 (struct tui_source_window_base) <refresh>: Likewise.
7144
f6cc34a9
TT
71452019-07-17 Tom Tromey <tom@tromey.com>
7146
7147 * tui/tui-winsource.c (tui_clear_source_content)
7148 (tui_show_source_content): Update.
7149 * tui/tui-source.c (tui_source_window::showing_source_p): Check
7150 whether content is empty.
7151 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
7152 Remove.
7153
f31ec9af
TT
71542019-07-17 Tom Tromey <tom@tromey.com>
7155
7156 * tui/tui-winsource.c (tui_erase_source_content): Clear the
7157 window's contents.
7158 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
7159 * tui/tui-source.c (tui_set_source_content_nil): Remove.
7160
d1b6f1e5
TT
71612019-07-17 Tom Tromey <tom@tromey.com>
7162
7163 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
7164 (struct tui_data_item_window): Update.
7165
d9743a13
TT
71662019-07-17 Tom Tromey <tom@tromey.com>
7167
7168 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
7169 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
7170 defines.
7171
caf0bc4e
TT
71722019-07-17 Tom Tromey <tom@tromey.com>
7173
7174 * tui/tui-winsource.h (tui_erase_source_content)
7175 (tui_clear_source_content): Remove "display_prompt" parameter.
7176 * tui/tui-winsource.c (tui_update_source_window_as_is)
7177 (tui_update_source_windows_with_addr): Update.
7178 (tui_clear_source_content): Remove "display_prompt" parameter.
7179 (tui_erase_source_content): Likewise. Simplify.
7180 (tui_show_source_content): Update.
7181 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
7182 * tui/tui-stack.c (tui_show_frame_info): Update.
7183 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
7184 Remove defines.
7185
9d391078
TT
71862019-07-17 Tom Tromey <tom@tromey.com>
7187
7188 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
7189 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
7190 parameter.
7191 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
7192 parameter.
7193
a38da35d
TT
71942019-07-17 Tom Tromey <tom@tromey.com>
7195
7196 * tui/tui-winsource.c (tui_clear_source_content)
7197 (tui_show_source_content, tui_show_exec_info_content)
7198 (tui_clear_exec_info_content): Update.
7199 * tui/tui-stack.c (tui_show_locator_content): Update.
7200 (tui_show_frame_info): Update.
7201 * tui/tui-source.h (tui_source_window): Don't declare.
7202 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
7203 from tui_source_is_displayed.
7204 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
7205 Remove field.
7206 (struct tui_source_window_base) <content_in_use>: New field. Now
7207 bool.
7208 (struct tui_source_window) <showing_source_p>: New method.
7209 (TUI_SRC_WIN): Change cast.
7210 * tui/tui-data.c (tui_initialize_static_data): Update.
7211
c2cd8994
TT
72122019-07-17 Tom Tromey <tom@tromey.com>
7213
7214 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
7215 location_matches_p.
7216 * tui/tui-source.c (tui_source_window::location_matches_p): New
7217 method.
7218 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
7219 method.
7220 * tui/tui-data.h (struct tui_source_window_base)
7221 <location_matches_p>: New method.
7222 (struct tui_source_window, struct tui_disasm_window)
7223 <location_matches_p>: Likewise.
7224
4dde7b34
TT
72252019-07-17 Tom Tromey <tom@tromey.com>
7226
7227 * tui/tui-win.c (tui_set_win_height_command): Rename from
7228 tui_set_win_height.
7229 (tui_set_win_height_command): Remove.
7230
b73dd877
TT
72312019-07-17 Tom Tromey <tom@tromey.com>
7232
7233 * tui/tui-source.c (tui_source_window): New constructor. Add
7234 observer.
7235 (~tui_source_window): New destructor.
7236 (tui_source_window::style_changed): New method.
7237 * tui/tui-hooks.c (tui_redisplay_source): Remove.
7238 (tui_attach_detach_observers): Update.
7239 * tui/tui-data.h (struct tui_source_window): Make constructor not
7240 inline. Add destructor.
7241 (struct tui_source_window) <style_changed>: New method.
7242 <m_observable>: New member.
7243
ae2b5380
TT
72442019-07-17 Tom Tromey <tom@tromey.com>
7245
7246 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
7247 * tui/tui-win.c (tui_resize_all): Fix typo.
7248
1ce3e844
TT
72492019-07-17 Tom Tromey <tom@tromey.com>
7250
7251 * tui/tui-wingeneral.h (tui_refresh_all): Update.
7252 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
7253 (tui_refresh_all): Remove "list" parameter. Use foreach.
7254 * tui/tui-win.c (window_name_completer): Use foreach.
7255 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
7256 (update_tab_width): Likewise.
7257 * tui/tui-layout.c (show_layout): Update.
7258 * tui/tui-data.h (class tui_window_iterator): New.
7259 (struct all_tui_windows): New.
7260 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
7261
fe3eaf1c
TT
72622019-07-17 Tom Tromey <tom@tromey.com>
7263
7264 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
7265 parameter. Don't reference globals.
7266 (tui_reg_command): Update.
7267
368c1354
TT
72682019-07-17 Tom Tromey <tom@tromey.com>
7269
7270 * tui/tui-regs.c (tui_show_registers): Simplify.
7271
e80cd204
TT
72722019-07-17 Tom Tromey <tom@tromey.com>
7273
7274 * tui/tui-regs.c (tui_show_registers): Update.
7275 (tui_show_register_group): Add win_info parameter.
7276
aca2dd16
TT
72772019-07-17 Tom Tromey <tom@tromey.com>
7278
7279 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
7280 Rename from tui_display_reg_element_at_line.
7281 (tui_data_window::display_registers_from_line): Update.
7282 * tui/tui-data.h (struct tui_data_window)
7283 <display_reg_element_at_line>: New method.
7284
517e9505
TT
72852019-07-17 Tom Tromey <tom@tromey.com>
7286
7287 * tui/tui-regs.h (tui_display_registers_from)
7288 (tui_display_registers_from_line): Don't declare.
7289 * tui/tui-windata.c (tui_data_window::display_all_data)
7290 (tui_data_window::refresh_all)
7291 (tui_data_window::do_scroll_vertical): Update.
7292 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
7293 from tui_display_registers_from.
7294 (tui_display_reg_element_at_line): Update.
7295 (tui_data_window::display_registers_from_line): Rename from
7296 tui_display_registers_from_line.
7297 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
7298 display_registers_from_line>: New methods.
7299
f76d8b19
TT
73002019-07-17 Tom Tromey <tom@tromey.com>
7301
7302 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
7303 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
7304 from tui_erase_data_content.
7305 (tui_data_window::display_all_data)
7306 (tui_data_window::refresh_all)
7307 (tui_data_window::do_scroll_vertical): Update.
7308 * tui/tui-regs.c (tui_show_registers): Update.
7309 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
7310 New method.
7311
b4094625
TT
73122019-07-17 Tom Tromey <tom@tromey.com>
7313
7314 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
7315 declare.
7316 * tui/tui-windata.c
7317 (tui_data_window::delete_data_content_windows): Rename from
7318 tui_delete_data_content_windows.
7319 (tui_data_window::display_all_data)
7320 (tui_data_window::do_scroll_vertical): Update.
7321 * tui/tui-data.h (struct tui_data_window)
7322 <delete_data_content_windows>: New method.
7323
c223a729
TT
73242019-07-17 Tom Tromey <tom@tromey.com>
7325
7326 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
7327 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
7328
50daf268
TT
73292019-07-17 Tom Tromey <tom@tromey.com>
7330
7331 * tui/tui-windata.h (tui_display_all_data): Don't declare.
7332 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
7333 from tui_display_all_data.
7334 * tui/tui-win.c
7335 (tui_data_window::do_make_visible_with_new_height): Update.
7336 * tui/tui-regs.c (tui_show_registers): Update.
7337 * tui/tui-layout.c (tui_set_layout): Update.
7338 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
7339 method.
7340
df5f8cab
TT
73412019-07-17 Tom Tromey <tom@tromey.com>
7342
7343 * tui/tui-windata.h (tui_display_data_from): Don't declare.
7344 * tui/tui-windata.c (tui_display_data_from): Remove.
7345 (tui_data_window::refresh_all): Update.
7346
80cb6c27
TT
73472019-07-17 Tom Tromey <tom@tromey.com>
7348
7349 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
7350 * tui/tui-windata.c (tui_display_data_from_line): Remove.
7351 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
7352 tui_display_registers_from_line.
7353 * tui/tui-regs.h (tui_display_registers_from_line): Update.
7354 * tui/tui-regs.c (tui_display_registers_from_line): Remove
7355 "force_display" parameter.
7356
baff0c28
TT
73572019-07-17 Tom Tromey <tom@tromey.com>
7358
7359 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
7360 declare.
7361 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
7362 Rename from tui_first_reg_element_no_inline.
7363 (tui_display_reg_element_at_line)
7364 (tui_display_registers_from_line): Update.
7365 * tui/tui-data.h (struct tui_data_window)
7366 <first_reg_element_no_inline>: New method.
7367
3b23c5f2
TT
73682019-07-17 Tom Tromey <tom@tromey.com>
7369
7370 * tui/tui-windata.c (tui_display_data_from)
7371 (tui_data_window::do_scroll_vertical): Update.
7372 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
7373 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
7374 Rename from tui_line_from_reg_element_no.
7375 (tui_display_registers_from_line): Update.
7376 * tui/tui-data.h (struct tui_data_window)
7377 <line_from_reg_element_no>: New method.
7378
0b5ec218
TT
73792019-07-17 Tom Tromey <tom@tromey.com>
7380
7381 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
7382 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
7383 tui_last_regs_line_no.
7384 (tui_display_reg_element_at_line)
7385 (tui_display_registers_from_line): Update.
7386 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
7387 method.
7388
0807ab7b
TT
73892019-07-17 Tom Tromey <tom@tromey.com>
7390
7391 PR tui/24722:
7392 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
7393 (tui_update_breakpoint_info): Add "being_deleted" parameter.
7394 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
7395 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
7396 (tui_update_breakpoint_info): Likewise.
7397 * tui/tui-hooks.c (tui_event_create_breakpoint)
7398 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
7399 Update.
7400
9ad7fdef
TT
74012019-07-17 Tom Tromey <tom@tromey.com>
7402
7403 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
7404
5813316f
TT
74052019-07-17 Tom Tromey <tom@tromey.com>
7406
7407 * tui/tui-winsource.c (tui_update_source_window_as_is)
7408 (tui_update_source_windows_with_addr): Update.
7409 * tui/tui-source.h (tui_set_source_content)
7410 (tui_show_symtab_source): Add "win_info" parameter.
7411 * tui/tui-source.c (tui_set_source_content): Add "win_info"
7412 parameter.
7413 (tui_show_symtab_source): Likewise.
7414
00e264e7
TT
74152019-07-17 Tom Tromey <tom@tromey.com>
7416
7417 * tui/tui-wingeneral.c
7418 (tui_check_and_display_highlight_if_needed): Check can_highlight.
7419
06210ce4
TT
74202019-07-17 Tom Tromey <tom@tromey.com>
7421
7422 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
7423 (struct tui_cmd_window) <can_scroll>: New method.
7424 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
7425 method.
7426
381befee
TT
74272019-07-17 Tom Tromey <tromey@adacore.com>
7428
7429 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
7430 do_field_signed>: Rename. Change type of "value".
7431 * ui-out.c (ui_out::field_signed): Rename from field_int.
7432 Change type of "value".
7433 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
7434 type of "value".
7435 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
7436 do_field_int. Change type of "value".
7437 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
7438 do_field_int. Change type of "value".
7439 * tracepoint.c (trace_status_mi, tfind_1)
7440 (print_one_static_tracepoint_marker): Update.
7441 * thread.c (print_thread_info_1, print_selected_thread_frame):
7442 Update.
7443 * stack.c (print_frame, print_frame_info): Update.
7444 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
7445 Update.
7446 * source.c (print_source_lines_base): Update.
7447 * skip.c (info_skip_command): Update.
7448 * record-btrace.c (btrace_ui_out_decode_error)
7449 (btrace_call_history_src_line): Update.
7450 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
7451 Update.
7452 * progspace.c (print_program_space): Update.
7453 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
7454 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
7455 do_field_int. Change type of "value".
7456 * mi/mi-out.c (mi_ui_out::do_table_begin)
7457 (mi_ui_out::do_table_header): Update.
7458 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
7459 type of "value".
7460 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
7461 (mi_cmd_data_list_changed_registers, output_register)
7462 (mi_cmd_data_read_memory, mi_load_progress)
7463 (mi_cmd_trace_frame_collected): Update.
7464 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
7465 Update.
7466 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
7467 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
7468 (mi_cmd_var_list_children, varobj_update_one): Update.
7469 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
7470 (mi_cmd_stack_list_args, list_arg_or_local): Update.
7471 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
7472 * inferior.c (print_inferior): Update.
7473 * gdb_bfd.c (print_one_bfd): Update.
7474 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
7475 Update.
7476 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
7477 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
7478 do_field_int. Change type of "value".
7479 * cli-out.c (cli_ui_out::do_field_signed): Rename from
7480 do_field_int. Change type of "value".
7481 * breakpoint.c (watchpoint_check, print_breakpoint_location)
7482 (print_one_breakpoint_location, print_it_catch_fork)
7483 (print_one_catch_fork, print_it_catch_vfork)
7484 (print_one_catch_vfork, print_it_catch_solib)
7485 (print_it_catch_exec, print_it_ranged_breakpoint)
7486 (print_mention_watchpoint, print_mention_masked_watchpoint)
7487 (bkpt_print_it, update_static_tracepoint): Update.
7488 * break-catch-throw.c (print_it_exception_catchpoint): Update.
7489 * break-catch-syscall.c (print_it_catch_syscall): Update.
7490 * ada-tasks.c (print_ada_task_info): Update.
7491 * ada-lang.c (print_it_exception, print_mention_exception):
7492 Update.
7493
6b78c3f8
AB
74942019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
7495
7496 PR breakpoints/24541
7497 * gdbarch.c: Regenerate.
7498 * gdbarch.h: Regenerate.
7499 * gdbarch.sh: Adjust return type and parameter types for
7500 'stap_adjust_register'.
7501 (i386_stap_adjust_register): Adjust signature and return new
7502 register name.
7503 * stap-probe.c (stap_parse_register_operand): Adjust use of
7504 'gdbarch_stap_adjust_register'.
7505
d72a9b85
TT
75062019-07-17 Tom Tromey <tromey@adacore.com>
7507
7508 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
7509 declare VEC.
7510 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
7511 std::vector.
7512 (struct s390_process_info): Add initializers.
7513 (s390_add_process): Use new.
7514 (s390_linux_nat_target::low_forget_process): Use delete.
7515 (s390_linux_nat_target::low_new_fork)
7516 (s390_linux_nat_target::stopped_by_watchpoint)
7517 (s390_linux_nat_target::low_prepare_to_resume)
7518 (s390_linux_nat_target::insert_watchpoint)
7519 (s390_linux_nat_target::insert_hw_breakpoint)
7520 (s390_linux_nat_target::remove_watchpoint)
7521 (s390_linux_nat_target::remove_hw_breakpoint): Update.
7522
206e6c58
JB
75232019-07-16 John Baldwin <jhb@FreeBSD.org>
7524
7525 * aarch64-fbsd-nat.c: Include regcache.h.
7526 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
7527 argument.
7528 (aarch64_fbsd_nat_target::fetch_registers)
7529 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
7530 variable.
7531 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
7532
cbde90f2
JB
75332019-07-16 John Baldwin <jhb@FreeBSD.org>
7534
7535 * fbsd-nat.c: Include gdbarch.h.
7536
07128006
TT
75372019-07-15 Tom Tromey <tromey@adacore.com>
7538
7539 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
7540
1f77b012
TT
75412019-07-15 Tom Tromey <tromey@adacore.com>
7542
7543 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
7544 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
7545 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
7546 * cli-out.c (cli_ui_out::do_field_int): New method.
7547 * ui-out.c (ui_out::field_unsigned): New method.
7548 * symfile.c (generic_load): Use field_unsigned.
7549 (print_transfer_performance): Likewise.
7550 * record-btrace.c (ui_out_field_uint): Remove.
7551 (btrace_call_history_insn_range, btrace_call_history): Use
7552 field_unsigned.
7553 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
7554 field_unsigned.
7555 * ui-out.h (class ui_out) <field_unsigned>: New method.
7556 <do_field_unsigned>: Likewise.
7557
33eca680
TT
75582019-07-15 Tom Tromey <tromey@adacore.com>
7559
7560 * mi/mi-main.c (list_available_thread_groups): Use field_string.
7561 * mi/mi-interp.c (mi_memory_changed): Use field_string.
7562 * target.c (flash_erase_command): Use field_string.
7563 * infrun.c (print_signal_received_reason): Use field_string.
7564 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
7565 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
7566 field_string.
7567 * ada-tasks.c (print_ada_task_info): Use field_string.
7568
ca8d69be
TT
75692019-07-15 Tom Tromey <tromey@adacore.com>
7570
7571 * target.c (flash_erase_command): Use field_core_addr.
7572 * symfile.c (generic_load): Use field_core_addr.
7573 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
7574 Use field_core_addr.
7575 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
7576 field_core_addr.
7577
0d4e84ed
AB
75782019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
7579
7580 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
7581 value if its desired type is smaller than a CORE_ADDR and signed.
7582
9a49df9d
AB
75832019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
7584
7585 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
7586 of changes to field names, and use new is_reference field to
7587 decide if a property is a reference or not.
7588 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
7589 field.
7590 (struct dwarf2_property_baton): Update header comment, rename
7591 'referenced_type' to 'property_type' and update comments.
7592 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
7593 default property type, store in property baton, update to take
7594 accound of renamed field.
7595 (read_func_scope): Update call to attr_to_dynamic_prop.
7596 (read_array_type): Likewise.
7597 (dwarf2_per_cu_addr_sized_int_type): New function.
7598 (read_subrange_index_type): Move type finding code to
7599 dwarf2_per_cu_addr_sized_int_type.
7600 (read_subrange_type): Update calls to attr_to_dynamic_prop.
7601 (dwarf2_per_cu_addr_type): New function.
7602 (set_die_type): Update calls to attr_to_dynamic_prop.
7603
b86352cf
AB
76042019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
7605
7606 * dwarf2read.c (read_subrange_index_type): New function.
7607 (read_subrange_type): Move code into new function and call it.
7608 * gdbtypes.c (create_range_type): Add some asserts.
7609
603490bf
AB
76102019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
7611
7612 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
7613 update return statements.
7614 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
7615 declaration, and update comment to match.
7616 * gdbtypes.c (resolve_dynamic_array): Update call to
7617 dwarf2_evaluate_property to match new return type.
7618
592f9d27
AB
76192019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
7620
7621 * valarith.c (value_subscripted_rvalue): Change lowerbound
7622 parameter type from int to LONGEST.
7623 * value.h (value_subscripted_rvalue): Likewise in declaration.
7624
60cfcb20
AB
76252019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
7626
7627 * cli/cli-utils.c (info_print_command_completer): New function.
7628 * cli/cli-utils.h: Add 'completer.h' include, and forward
7629 declaration for 'struct cmd_list_element'.
7630 (info_print_command_completer): Declare.
7631 * stack.c (_initialize_stack): Add completer for 'info locals' and
7632 'info args'.
7633 * symtab.c (_initialize_symtab): Add completer for 'info
7634 variables' and 'info functions'.
7635 * NEWS: Mention completion for additional info commands.
7636
b16507e0
AB
76372019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
7638
7639 * cli/cli-utils.c (extract_info_print_args): Delete.
7640 (extract_arg_maybe_quoted): Delete.
7641 (info_print_options_defs): New variable.
7642 (make_info_print_options_def_group): New function.
7643 (extract_info_print_options): Define new function.
7644 * cli/cli-utils.h (extract_info_print_args): Delete.
7645 (struct info_print_options): New structure.
7646 (extract_info_print_options): Declare new function.
7647 * stack.c (info_locals_command): Update to use new
7648 extract_info_print_options, also add a header comment.
7649 (info_args_command): Likewise.
7650 * symtab.c (info_variables_command): Likewise.
7651 (info_functions_command): Likewise.
7652
021d8588
AB
76532019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
7654
7655 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
7656 to extract string arguments.
7657 * common/common-utils.c (extract_string_maybe_quoted): New function.
7658 * common/common-utils.h (extract_string_maybe_quoted): Declare.
7659
b777eb6d
TT
76602019-07-11 Tom Tromey <tromey@adacore.com>
7661
7662 * main.c (get_init_files): Use GDBINIT, not gdbinit.
7663 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
7664 * top.h (gdbinit): Don't declare.
7665 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
7666 into...
7667 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
7668 * top.c (gdb_init): Don't call init_cli_cmds.
7669 (gdbinit): Remove.
7670 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
7671
72ee03ff
TT
76722019-07-11 Tom Tromey <tromey@adacore.com>
7673
7674 * python/py-inferior.c (add_thread_object): Don't use thread_obj
7675 after it has been moved.
7676
00db9531
SM
76772019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
7678
7679 * valops.c (value_must_coerce_to_target): Change return type to
7680 bool.
7681 * value.h (value_must_coerce_to_target): Likewise.
7682
f2478a7e
SM
76832019-07-10 Simon Marchi <simon.marchi@efficios.com>
7684
7685 * breakpoint.c (is_hardware_watchpoint): Remove
7686 forward-declaration.
7687 (is_masked_watchpoint): Change return type to bool.
7688 (is_tracepoint): Likewise.
7689 (is_breakpoint): Likewise.
7690 (is_hardware_watchpoint): Likewise.
7691 (is_watchpoint): Likewise.
7692 (is_no_memory_software_watchpoint): Likewise.
7693 (is_catchpoint): Likewise.
7694 (breakpoint_1): Make FILTER parameter's return type bool.
7695 is_masked_watchpoint): Change return type to bool.
7696 (save_breakpoints): Make FILTER parameter's return type bool.
7697 * breakpoint.h (is_breakpoint): Change return type to bool.
7698 (is_watchpoint): Likewise.
7699 (is_catchpoint): Likewise.
7700 (is_tracepoint): Likewise.
7701
0d12e84c
TT
77022019-07-10 Tom Tromey <tom@tromey.com>
7703
7704 * defs.h: Don't include gdbarch.h.
7705 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
7706 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
7707 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
7708 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
7709 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
7710 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
7711 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
7712 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
7713 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
7714 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
7715 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
7716 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
7717 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
7718 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
7719 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
7720 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
7721 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
7722 record-btrace.c, record.h, regcache-dump.c, regcache.h,
7723 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
7724 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
7725 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
7726 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
7727 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
7728 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
7729 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
7730 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
7731 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
7732
f06f1252
TT
77332019-07-10 Tom Tromey <tromey@adacore.com>
7734
7735 * ada-lang.h (is_ada_exception_catchpoint): Declare.
7736 * breakpoint.c (init_ada_exception_breakpoint): Register as
7737 bp_catchpoint.
7738 (print_one_breakpoint_location, print_one_breakpoint): Use
7739 is_ada_exception_catchpoint.
7740 * ada-lang.c (class ada_catchpoint_location): Pass
7741 bp_loc_software_breakpoint to bp_location constructor.
7742 (is_ada_exception_catchpoint): New function.
7743
7a5d944b
TT
77442019-07-10 Tom Tromey <tromey@adacore.com>
7745
7746 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
7747 VEC.
7748 (struct arm_exidx_entry): New method operator<.
7749 (struct arm_exidx_data) <section_maps>: Change type.
7750 (arm_exidx_data_free): Remove.
7751 (arm_exidx_data_key): Change type. Move lower.
7752 (arm_exidx_new_objfile): Update.
7753 (arm_compare_exidx_entries): Remove.
7754 (arm_find_exidx_entry, _initialize_arm_tdep)
7755
48c66e1d
TT
77562019-07-10 Tom Tromey <tromey@adacore.com>
7757
7758 * solib-spu.c (ocl_program_data_key): Change type.
7759 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
7760 Update.
7761
a269fbf1
TT
77622019-07-10 Tom Tromey <tromey@adacore.com>
7763
7764 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
7765 (struct solib_aix_inferior_data) <library_list>: Change type.
7766 (solib_aix_inferior_data_handle): Change type.
7767 (get_solib_aix_inferior_data): Update.
7768 (solib_aix_free_library_list): Remove.
7769 (library_list_start_library): Update.
7770 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
7771 return type.
7772 (solib_aix_get_library_list)
7773 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
7774 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
7775
c294730c
TT
77762019-07-10 Tom Tromey <tromey@adacore.com>
7777
7778 * solib-dsbt.c (struct dsbt_info): Add initializers.
7779 (solib_dsbt_pspace_data): Change type.
7780 (dsbt_pspace_data_cleanup): Remove.
7781 (get_dsbt_info, _initialize_dsbt_solib): Update.
7782
9d52077d
TT
77832019-07-10 Tom Tromey <tromey@adacore.com>
7784
7785 * spu-tdep.c (spu_overlay_data): Change type.
7786 (spu_get_overlay_table, spu_overlay_new_objfile)
7787 (_initialize_spu_tdep): Update.
7788
22a20dca
TT
77892019-07-10 Tom Tromey <tromey@adacore.com>
7790
7791 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
7792 destructor.
7793 (dbx_objfile_data_key): Change type and declare later.
7794 (DBX_SYMFILE_INFO): Rewrite.
7795 * dbxread.c (dbx_objfile_data_key): Change type.
7796 (dbx_symfile_init): Update.
7797 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
7798 (coffstab_build_psymtabs, elfstab_build_psymtabs)
7799 (stabsect_build_psymtabs, _initialize_dbxread): Update.
7800
cb60f420
TT
78012019-07-10 Tom Tromey <tromey@adacore.com>
7802
7803 * jit.c (jit_program_space_key): Change type. Move lower.
7804 (get_jit_program_space_data): Update.
7805 (jit_program_space_data_cleanup): Remove.
7806 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
7807 Update.
7808 (struct jit_program_space_data): Add initializers.
7809
51df2ae3
TT
78102019-07-10 Tom Tromey <tromey@adacore.com>
7811
7812 * solib-darwin.c (struct darwin_info): Add initializers.
7813 (solib_darwin_pspace_data): Change type.
7814 (darwin_pspace_data_cleanup): Remove.
7815 (get_darwin_info, _initialize_darwin_solib): Update.
7816
18101a35
TT
78172019-07-10 Tom Tromey <tromey@adacore.com>
7818
7819 * remote-sim.c (struct sim_inferior_data): Add initializers,
7820 constructor, and destructor.
7821 (sim_inferior_data_key): Change type. Move lower.
7822 (check_for_duplicate_sim_descriptor): Update.
7823 (get_sim_inferior_data): Use new. Update.
7824 (~sim_inferior_data_cleanup): Rename from
7825 sim_inferior_data_cleanup. Simplify.
7826 (gdbsim_close_inferior, simulator_command)
7827 (sim_command_completer, _initialize_remote_sim): Update.
7828 (next_pid, INITIAL_PID): Move earlier.
7829
05b08ac1
TT
78302019-07-10 Tom Tromey <tromey@adacore.com>
7831
7832 * python/python-internal.h (create_thread_object): Return
7833 gdbpy_ref.
7834 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
7835 * python/py-inferior.c (struct threadlist_entry): Add
7836 constructor.
7837 <thread_obj>: Now a gdbpy_ref.
7838 (thread_to_thread_object): Update.
7839 (add_thread_object): Use new.
7840 (delete_thread_object): Use delete.
7841 (infpy_threads): Update.
7842 (py_free_inferior): Update. Construct "inf_obj" after acquiring
7843 GIL.
7844
32372d80
TT
78452019-07-10 Tom Tromey <tromey@adacore.com>
7846
7847 * valops.c (value_cast): Specialize error message for Ada.
7848
5c458ae8
SM
78492019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
7850
7851 * breakpoint.c (breakpoint_1): Update doc and parameter names.
7852
4c462cb0
SM
78532019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
7854
7855 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
7856 bpstat_should_step): Return bool, adjust comments.
7857 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
7858 bpstat_should_step): Likewise.
7859
89abbcc2
AH
78602019-07-10 Alan Hayward <alan.hayward@arm.com>
7861
7862 * features/Makefile: Use feature target descriptions for Arm.
7863 * features/arm/arm-core.c: Generate new file.
7864 * features/arm/arm-fpa.c: Likewise.
7865 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
7866 * features/arm/arm-m-profile.c: Likewise.
7867 * features/arm/arm-vfpv2.c: Likewise.
7868 * features/arm/arm-vfpv3.c: Likewise.
7869 * features/arm/xscale-iwmmxt.c: Likewise.
7870 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
7871
166a82be
AH
78722019-07-10 Alan Hayward <alan.hayward@arm.com>
7873
7874 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
7875 ptrace earlier.
7876
9fb4c7e9
AH
78772019-07-10 Alan Hayward <alan.hayward@arm.com>
7878
7879 * features/aarch64-pauth.c: Regenerate.
7880
e2d0f980
SM
78812019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
7882
7883 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
7884 bool.
7885 (bpstat_what): Use false instead of 0.
7886
a38118e5
PA
78872019-07-09 Pedro Alves <palves@redhat.com>
7888
7889 * break-catch-throw.c (is_exception_catchpoint): New.
7890 * breakpoint.c (print_one_breakpoint_location): New parameter
7891 'raw_loc'. Handle it. Use
7892 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
7893 looking at the breakpoint's type.
7894 (print_one_breakpoint): If handling "maint info breakpoints", also
7895 print locations of exception catchpoints.
7896 * breakpoint.h (is_exception_catchpoint): Declare.
7897
cb1e4e32
PA
78982019-07-09 Pedro Alves <palves@redhat.com>
7899
7900 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
7901 "addr" field.
7902 (allocate_location_exception_catchpoint): New.
7903 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
7904 (initialize_throw_catchpoint_ops): Install
7905 allocate_location_exception_catchpoint as allocate_location
7906 method.
7907 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
7908 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
7909 bp_loc_other.
7910 (breakpoint_address_is_meaningful): Delete.
7911 (bl_address_is_meaningful): New.
7912 (breakpoint_locations_match): Adjust comment.
7913 (bp_location_from_bp_type): New, factored out of...
7914 (bp_location::bp_location(breakpoint *)): ... this.
7915 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
7916 factored out of...
7917 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
7918 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
7919 breakpoint_address_is_meaningful.
7920 (bp_locations_compare): Adjust comment.
7921 (update_global_location_list): Use bl_address_is_meaningful
7922 instead of breakpoint_address_is_meaningful.
7923 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
7924 explicit.
7925 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
7926 * python/py-breakpoint.c (bppy_get_location): No longer check
7927 whether location is null.
7928
b58a68fe
PA
79292019-07-09 Pedro Alves <palves@redhat.com>
7930
7931 PR c++/15468
7932 * breakpoint.c (print_one_breakpoint_location): Remove
7933 single-location assert.
7934
268a13a5
TT
79352019-07-09 Tom Tromey <tom@tromey.com>
7936
7937 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
7938 * configure: Rebuild.
7939 * configure.ac: Change common to gdbsupport.
7940 * gdbsupport: Rename from common.
7941 * acinclude.m4: Change common to gdbsupport.
7942 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
7943 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
7944 gdbsupport.
7945 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
7946 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
7947 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
7948 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
7949 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
7950 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
7951 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
7952 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
7953 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
7954 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
7955 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
7956 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
7957 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
7958 coff-pe-read.c, command.h, compile/compile-c-support.c,
7959 compile/compile-c.h, compile/compile-cplus-symbols.c,
7960 compile/compile-cplus-types.c, compile/compile-cplus.h,
7961 compile/compile-loc2c.c, compile/compile.c, completer.c,
7962 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
7963 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
7964 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
7965 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
7966 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
7967 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
7968 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
7969 features/aarch64-core.c, features/aarch64-fpu.c,
7970 features/aarch64-pauth.c, features/aarch64-sve.c,
7971 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
7972 features/i386/32bit-core.c, features/i386/32bit-linux.c,
7973 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
7974 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
7975 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
7976 features/i386/64bit-core.c, features/i386/64bit-linux.c,
7977 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
7978 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
7979 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
7980 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
7981 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
7982 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
7983 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
7984 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
7985 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
7986 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
7987 go32-nat.c, guile/guile.c, guile/scm-ports.c,
7988 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
7989 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
7990 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
7991 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
7992 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
7993 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
7994 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
7995 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
7996 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
7997 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
7998 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
7999 minsyms.c, mips-linux-tdep.c, namespace.h,
8000 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
8001 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
8002 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
8003 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
8004 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
8005 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
8006 nat/linux-waitpid.c, nat/mips-linux-watch.c,
8007 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
8008 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
8009 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
8010 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
8011 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
8012 procfs.c, producer.c, progspace.h, psymtab.h,
8013 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
8014 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
8015 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
8016 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
8017 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
8018 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
8019 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
8020 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
8021 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
8022 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
8023 target-memory.c, target.c, target.h, target/waitstatus.c,
8024 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
8025 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
8026 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
8027 unittests/array-view-selftests.c,
8028 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
8029 unittests/common-utils-selftests.c,
8030 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
8031 unittests/format_pieces-selftests.c,
8032 unittests/function-view-selftests.c,
8033 unittests/lookup_name_info-selftests.c,
8034 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
8035 unittests/mkdir-recursive-selftests.c,
8036 unittests/observable-selftests.c,
8037 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
8038 unittests/parse-connection-spec-selftests.c,
8039 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
8040 unittests/scoped_fd-selftests.c,
8041 unittests/scoped_mmap-selftests.c,
8042 unittests/scoped_restore-selftests.c,
8043 unittests/string_view-selftests.c, unittests/style-selftests.c,
8044 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
8045 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
8046 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
8047 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
8048 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
8049 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
8050
5b0e2db4
AB
80512019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
8052
8053 * linespec.c (decode_digits_list_mode): Set explicit_line to a
8054 bool value.
8055 (decode_digits_ordinary): Set explicit_line field in sal.
8056 * symtab.c (skip_prologue_sal): Don't skip prologue for a
8057 symtab_and_line that was set on an explicit line number in
8058 assembler code. Do always update the recorded symtab and line if
8059 we do skip the prologue.
8060
0ba852ab
AB
80612019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
8062
8063 * breakpoint.c (set_breakpoint_location_function): Remove
8064 explicit_loc parameter.
8065 (momentary_breakpoint_from_master): Update call to
8066 set_breakpoint_location_function.
8067 (add_location_to_breakpoint): Likewise.
8068
b3a7d171
AB
80692019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
8070
8071 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
8072 required features based on default bfd type when no specific bfd
8073 is present.
8074
1f6f6e21
PW
80752019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8076
8077 * NEWS: Mention that GDB printf and eval commands can now print
8078 C-style and Ada-style convenience var strings without
8079 calling the inferior.
8080 * printcmd.c (printf_c_string): Locally print GDB internal var
8081 instead of transiting via the inferior.
8082 (printf_wide_c_string): Likewise.
8083
80842019-07-04 Alan Hayward <alan.hayward@arm.com>
ea142fbf 8085
5862c886 8086 PR breakpoints/25011
ea142fbf
AH
8087 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
8088
0598af48
TT
80892019-07-04 Tom Tromey <tom@tromey.com>
8090
8091 PR tui/24724:
8092 * tui/tui-winsource.c (tui_clear_source_content): Update.
8093 (tui_source_window_base::set_is_exec_point_at): Fix comment.
8094 (tui_update_breakpoint_info): Update.
8095 (tui_set_exec_info_content): Update.
8096 * tui/tui-source.c (tui_set_source_content_nil): Update.
8097 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
8098 has_break.
8099 * tui/tui-data.h (enum tui_bp_flag): New.
8100 (tui_bp_flags): New enum flags type.
8101 (struct tui_source_element) <break_mode>: Change type. Rename
8102 from has_break.
8103 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
8104 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
8105 constants.
8106 * tui/tui-winsource.h: Fix comment.
8107
350fab54
AH
81082019-07-04 Alan Hayward <alan.hayward@arm.com>
8109
8110 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
8111 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
8112 (store_fpregs_to_thread)
8113 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
8114 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
8115 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
8116 (IWMMXT_REGS_SIZE): Add define.
8117 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
8118 (fetch_vfp_regs, store_vfp_regs)
8119 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
8120 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
8121
f0452268
AH
81222019-07-04 Alan Hayward <alan.hayward@arm.com>
8123
8124 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
8125 defines.
8126 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
8127 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
8128 (ARM_INT_REGISTER_SIZE): ...to this.
8129 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
8130 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
8131 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
8132 (arm_linux_collect_gregset, supply_nwfpe_register)
8133 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
8134 defines.
8135 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
8136 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
8137 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
8138 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
8139 (arm_return_in_memory, arm_store_return_value)
8140 (arm_get_longjmp_target, arm_register_g_packet_guesses)
8141 (arm_record_ld_st_multiple): Likewise.
8142 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
8143 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
8144
e935475c
AH
81452019-07-04 Alan Hayward <alan.hayward@arm.com>
8146
8147 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
8148 AARCH64_DISPLACED_MODIFIED_INSNS.
8149 * aarch64-tdep.c (struct aarch64_displaced_step_data)
8150 (aarch64_displaced_step_copy_insn): Likewise.
8151 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
8152 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
8153 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
8154 ARM_DISPLACED_MODIFIED_INSNS.
8155 * arm-tdep.c (arm_gdbarch_init): Likewise.
8156 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
8157 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
8158 (struct arm_displaced_step_closure): Use
8159 ARM_DISPLACED_MODIFIED_INSNS.
8160
df0bb381
AH
81612019-07-04 Alan Hayward <alan.hayward@arm.com>
8162
8163 * features/Makefile: Remove unused xml files.
8164 * features/aarch64.xml: Remove.
8165 * features/i386/amd64-avx-avx512-linux.xml: Remove.
8166 * features/i386/amd64-avx-avx512.xml: Remove.
8167 * features/i386/amd64-avx-linux.xml: Remove.
8168 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
8169 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
8170 * features/i386/amd64-avx-mpx-linux.xml: Remove.
8171 * features/i386/amd64-avx-mpx.xml: Remove.
8172 * features/i386/amd64-avx.xml: Remove.
8173 * features/i386/amd64-linux.xml: Remove.
8174 * features/i386/amd64-mpx-linux.xml: Remove.
8175 * features/i386/amd64-mpx.xml: Remove.
8176 * features/i386/amd64.xml: Remove.
8177 * features/i386/i386-avx-avx512-linux.xml: Remove.
8178 * features/i386/i386-avx-avx512.xml: Remove.
8179 * features/i386/i386-avx-linux.xml: Remove.
8180 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
8181 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
8182 * features/i386/i386-avx-mpx-linux.xml: Remove.
8183 * features/i386/i386-avx-mpx.xml: Remove.
8184 * features/i386/i386-avx.xml: Remove.
8185 * features/i386/i386-linux.xml: Remove.
8186 * features/i386/i386-mmx-linux.xml: Remove.
8187 * features/i386/i386-mmx.xml: Remove.
8188 * features/i386/i386-mpx-linux.xml: Remove.
8189 * features/i386/i386-mpx.xml: Remove.
8190 * features/i386/i386.xml: Remove.
8191 * features/i386/x32-avx-avx512-linux.xml: Remove.
8192 * features/i386/x32-avx-linux.xml: Remove.
8193 * features/i386/x32-linux.xml: Remove.
8194
edd6266a
AH
81952019-07-04 Alan Hayward <alan.hayward@arm.com>
8196
8197 * regformats/aarch64.dat: Remove.
8198 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
8199 * regformats/i386/amd64-avx-linux.dat: Remove.
8200 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
8201 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
8202 * regformats/i386/amd64-linux.dat: Remove.
8203 * regformats/i386/amd64-mpx-linux.dat: Remove.
8204 * regformats/i386/amd64.dat: Remove.
8205 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
8206 * regformats/i386/i386-avx-linux.dat: Remove.
8207 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
8208 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
8209 * regformats/i386/i386-linux.dat: Remove.
8210 * regformats/i386/i386-mmx-linux.dat: Remove.
8211 * regformats/i386/i386-mpx-linux.dat: Remove.
8212 * regformats/i386/i386.dat: Remove.
8213 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
8214 * regformats/i386/x32-avx-linux.dat: Remove.
8215 * regformats/i386/x32-linux.dat: Remove.
8216
2b40fda7
AH
82172019-07-04 Alan Hayward <alan.hayward@arm.com>
8218
8219 * aarch64-tdep.c: Remove xml self tests.
8220 * amd64-linux-tdep.c: Likewise.
8221 * amd64-tdep.c: Likewise.
8222 * i386-linux-tdep.c: Likewise.
8223 * i386-tdep.c: Likewise.
8224
5f4ba3e7
PA
82252019-07-03 Pedro Alves <palves@redhat.com>
8226
8227 PR cli/24732
8228 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
8229 (pipe_cmd_option_defs): New.
8230 (make_pipe_cmd_options_def_group): New.
8231 (pipe_command): Use gdb::option::process_options.
8232 (pipe_command_completer): New function.
8233 (_initialize_cli_cmds): Install completer for "pipe" command.
8234
3d9be6f5
PA
82352019-07-03 Pedro Alves <palves@redhat.com>
8236
8237 * cli/cli-option.c (union option_value) <string>: New field.
8238 (struct option_def_and_value): Add ctor, move ctor, dtor and
8239 use DISABLE_COPY_AND_ASSIGN.
8240 (option_def_and_value::clear_value): New.
8241 (parse_option, save_option_value_in_ctx, get_val_type_str)
8242 (add_setshow_cmds_for_options): Handle var_string.
8243 * cli-option.h (union option_def::var_address) <string>: New
8244 field.
8245 (struct string_option_def): New.
8246 * maint-test-options.c (struct test_options_opts): Add default
8247 ctor and use DISABLE_COPY_AND_ASSIGN.
8248 <string_opt>: New field.
8249 (test_options_opts::~test_options_opts): New.
8250 (test_options_opts::dump): Also dump "-string".
8251 (test_options_option_defs): Install "string.
8252
41fc454c
PA
82532019-07-03 Pedro Alves <palves@redhat.com>
8254
8255 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
8256 option_value with a null enumeration.
8257 (complete_options): Save the option values in the context.
8258 (save_option_value_in_ctx): New, factored out from ...
8259 (process_options): ... here.
8260 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
8261 of the function.
8262 * maint-test-options.c (test_options_opts::dump): New, factored
8263 out from ...
8264 (maintenance_test_options_command_mode): ... here.
8265 (maintenance_test_options_command_completion_result): Delete.
8266 (maintenance_test_options_command_completion_text): Update
8267 comment.
8268 (maintenance_show_test_options_completion_result): Change
8269 prototype. Just print
8270 maintenance_test_options_command_completion_text.
8271 (save_completion_result): New.
8272 (maintenance_test_options_completer_mode): Pass options context to
8273 complete_options, and then save a dump.
8274 (_initialize_maint_test_options): Use add_cmd to install "maint
8275 show test-options-completion-result".
8276
fdbc9870
PA
82772019-07-03 Pedro Alves <palves@redhat.com>
8278
8279 * NEWS (New commands): Mention "with" and "maint with".
8280 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
8281 (with_command, with_command_completer): New.
8282 (pipe_command): Adjust to new repeat_previous
8283 interface.
8284 (_initialize_cli_cmds): Install the "with" command and its "w"
8285 alias.
8286 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
8287 declarations.
8288 * cli/cli-setshow.c (parse_cli_var_uinteger)
8289 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
8290 argument strings for all var_types.
8291 (get_setshow_command_value_string): New, factored out from ...
8292 (do_show_command): ... this.
8293 * cli/cli-setshow.h: Include <string>.
8294 (get_setshow_command_value_string): Declare.
8295 * command.h (repeat_previous): Now returns const char *. Adjust
8296 comment.
8297 * maint.c: Include "cli/cli-cmds.h".
8298 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
8299 (_initialize_maint_cmds): Register the "maintenance with" command.
8300 * top.c (repeat_previous): Move bits from pipe_command here:
8301 Return the saved command line, if any; error out if there's no
8302 command to relaunch.
8303
c6ac8931
PA
83042019-07-03 Pedro Alves <palves@redhat.com>
8305
8306 * NEWS (New commands): Mention "maint set/show test-settings"
8307 instead of "maint test-settings".
8308 * maint-test-settings.c (maintenance_test_settings_list): Delete.
8309 (maintenance_test_settings_set_list): Rename to ...
8310 (maintenance_set_test_settings_list): ... this.
8311 (maintenance_test_settings_show_list): Rename to ...
8312 (maintenance_show_test_settings_list): ... this.
8313 (maintenance_test_settings_cmd): Delete.
8314 (maintenance_test_settings_set_cmd): ...
8315 (maintenance_set_test_settings_cmd): ... this.
8316 (maintenance_test_settings_show_cmd): ...
8317 (maintenance_show_test_settings_cmd): ... this.
8318 (maintenance_test_settings_show_value_cmd):
8319 (maintenance_show_test_settings_value_cmd): ... this.
8320 (_initialize_maint_test_settings): No longer install the "maint
8321 test-settings" prefix command. Rename "maint test-settings set"
8322 to "maint set test-settings", and "maint test-settings show" to
8323 "maint show test-settings". Adjust all subcommands.
8324
d1fcf2fd
PA
83252019-07-03 Pedro Alves <palves@redhat.com>
8326
8327 * maint-test-settings.c: Fix file's intro comment. Replace all
8328 references to "test-options" with references to "test-settings",
8329 in comments.
8330
970f9d09
PA
83312019-07-03 Pedro Alves <palves@redhat.com>
8332
8333 * maint-test-settings.c (maintenance_test_settings_xxx)
8334 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
8335 New.
8336 (maintenance_test_settings_enums): Use them.
8337 (maintenance_test_settings_enum): Default to
8338 maintenance_test_settings_xxx.
8339 (_initialize_maint_test_settings): Initialize
8340 MAINTENANCE_TEST_SETTINGS_FILENAME.
8341
f3869b1a
SM
83422019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
8343
8344 * breakpoint.h (remove_breakpoints_inf): Change return type to
8345 void, move function documentation here.
8346 * breakpoint.c (remove_breakpoints_inf): Change return type to
8347 void, move function documentation to header.
8348
54d66006
PA
83492019-07-02 Pedro Alves <palves@redhat.com>
8350
8351 * NEWS (Completion improvements): Mention "info threads".
8352 * thread.c (struct info_threads_opts, info_threads_option_defs)
8353 (make_info_threads_options_def_group): New.
8354 (info_threads_command): Use gdb::option::process_options.
8355 (info_threads_command_completer): New.
8356 (_initialize_thread): Use gdb::option::build_help to build the
8357 help text for "info threads".
8358
854f6088
SM
83592019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
8360
8361 * defs.h (generic_load): Move from here...
8362 * symfile.h (generic_load): ... to here. Rename name parameter
8363 to args.
8364 * symfile.c (generic_load): Add comment.
8365
54ee4252
TT
83662019-07-01 Tom Tromey <tromey@adacore.com>
8367
8368 * dwarf2read.c
8369 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
8370 declaration of without_params. Fix formatting.
8371
65392b3e
TT
83722019-07-01 Tom Tromey <tromey@adacore.com>
8373
8374 * ada-exp.y (find_primitive_type): Update.
8375 * ada-lang.h (ada_lookup_symbol): Update.
8376 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
8377 parameter.
8378 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
8379
7d7571f0
SDJ
83802019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
8381
8382 PR breakpoints/24541
8383 * gdbarch.c: Regenerate.
8384 * gdbarch.h: Regenerate.
8385 * gdbarch.sh: Add 'stap_adjust_register'.
8386 * i386-tdep.c: Include '<unordered_set>'.
8387 (i386_stap_adjust_register): New function.
8388 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
8389 * stap-probe.c (stap_parse_register_operand): Call
8390 'gdbarch_stap_adjust_register'.
8391
5af5392a
SDJ
83922019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
8393
8394 PR python/24742
8395 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
8396 * python/python.c (do_start_initialization): Use 'xmalloc'
8397 instead of 'PyMem_Malloc'.
8398
10d06d82
TT
83992019-06-28 Tom Tromey <tromey@adacore.com>
8400
8401 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
8402 for Ada.
8403
1b7f24cd
TT
84042019-06-27 Tom Tromey <tromey@adacore.com>
8405
8406 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
8407 objfile_key.
8408 (arm_find_mapping_symbol, arm_record_special_symbol)
8409 (_initialize_arm_tdep): Update.
8410 (arm_objfile_data_free): Remove.
8411
3d507ff2
TT
84122019-06-27 Tom Tromey <tromey@adacore.com>
8413
8414 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
8415 to cp_print_static_field.
8416
762c164d
TT
84172019-06-26 Tom Tromey <tromey@adacore.com>
8418
8419 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
8420 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
8421 declare.
8422
aa2f9bcf
AH
84232019-06-26 Alan Hayward <alan.hayward@arm.com>
8424
8425 * features/aarch64-core.c (create_feature_aarch64_core):
8426 Regenerate.
8427 * features/aarch64-core.xml: Add cpsr flags.
8428
3426ae57
AH
84292019-06-26 Alan Hayward <alan.hayward@arm.com>
8430
8431 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
8432 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
8433
4838e44c
SM
84342019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
8435
8436 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
8437 field.
8438 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
8439 use.
8440 (arm_record_special_symbol): Don't insert new symbol in sorted
8441 position, push it at the end.
8442
54cc7474
SM
84432019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
8444
8445 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
8446 (arm_mapping_symbol_s): Remove.
8447 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
8448 (arm_mapping_symbol_vec): New typedef.
8449 (struct arm_per_objfile): Add constructor.
8450 <section_maps>: Change type to
8451 std::unique_ptr<arm_mapping_symbol_vec[]>.
8452 (arm_compare_mapping_symbols): Remove.
8453 (arm_find_mapping_symbol): Adjust to section_maps type change.
8454 (arm_objfile_data_free): Call delete on arm_per_objfile.
8455 (arm_record_special_symbol): Adjust to section_maps type change.
8456 Allocate arm_per_objfile with new.
8457
b65b566c
PW
84582019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8459
8460 * cli/cli-cmds.c (alias_command): Compare the alias prefix
8461 with the command prefix.
8462
c2fc64f5
TT
84632019-06-25 Tom Tromey <tom@tromey.com>
8464
8465 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
8466 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
8467
fb54fa76
TT
84682019-06-25 Tom Tromey <tom@tromey.com>
8469
8470 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
8471 type.
8472 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
8473 protected.
8474
f7952c57
TT
84752019-06-25 Tom Tromey <tom@tromey.com>
8476
8477 * tui/tui-winsource.c
8478 (tui_source_window_base::set_is_exec_point_at): Add check against
8479 LOA_ADDRESS.
8480
17568d78
TT
84812019-06-25 Tom Tromey <tom@tromey.com>
8482
8483 * tui/tui-source.c (tui_set_source_content): Don't check before
8484 xfree.
8485 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
8486
53e7cdba
TT
84872019-06-25 Tom Tromey <tom@tromey.com>
8488
8489 * tui/tui-winsource.h (tui_update_source_window_as_is)
8490 (tui_alloc_source_buffer, tui_line_is_displayed)
8491 (tui_addr_is_displayed): Change type of win_info.
8492 * tui/tui-winsource.c (tui_update_source_window_as_is)
8493 (tui_clear_source_content, tui_show_source_line)
8494 (tui_show_source_content, tui_source_window_base::refill)
8495 (tui_source_window_base::set_is_exec_point_at)
8496 (tui_source_window_base::set_is_exec_point_at)
8497 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
8498 (tui_alloc_source_buffer, tui_line_is_displayed)
8499 (tui_addr_is_displayed): Change type of win_info. Update.
8500 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
8501 (tui_source_window_base::do_make_visible_with_new_height):
8502 Update.
8503 * tui/tui-source.c (tui_set_source_content)
8504 (tui_set_source_content_nil)
8505 (tui_source_window::do_scroll_vertical): Update.
8506 * tui/tui-layout.c (show_layout): Update.
8507 * tui/tui-disasm.c (tui_set_disassem_content)
8508 (tui_disasm_window::do_scroll_vertical): Update.
8509 * tui/tui-data.h (tui_win_content): Remove.
8510 (struct tui_gen_win_info) <content, content_size>: Remove.
8511 (struct tui_source_element): Add initializers and destructor.
8512 (union tui_which_element, struct tui_win_element): Remove.
8513 (struct tui_source_window_base) <content>: New field.
8514 (struct tui_data_window): Remove destructor.
8515 (tui_alloc_content, tui_free_win_content)
8516 (tui_free_all_source_wins_content): Don't declare.
8517 * tui/tui-data.c (tui_initialize_static_data): Update.
8518 (init_content_element, tui_alloc_content): Remove.
8519 (~tui_gen_win_info): Update.
8520 (~tui_data_window, tui_free_all_source_wins_content)
8521 (tui_free_win_content, free_content, free_content_elements):
8522 Remove.
8523
7908abbf
TT
85242019-06-25 Tom Tromey <tom@tromey.com>
8525
8526 * tui/tui-winsource.h (tui_clear_source_content)
8527 (tui_erase_source_content, tui_show_source_content): Change type
8528 of win_info.
8529 * tui/tui-winsource.c (tui_clear_source_content)
8530 (tui_erase_source_content, tui_show_source_content): Change type
8531 of win_info.
8532 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
8533 * tui/tui-source.h (tui_set_source_content_nil): Change type of
8534 win_info.
8535 * tui/tui-source.c (tui_set_source_content_nil): Change type of
8536 win_info.
8537 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
8538
02c28df0
TT
85392019-06-25 Tom Tromey <tom@tromey.com>
8540
8541 * tui/tui-winsource.c (tui_clear_source_content)
8542 (tui_source_window_base::set_is_exec_point_at): Update.
8543 * tui/tui-source.c (tui_set_source_content_nil): Update.
8544 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
8545 a bool.
8546 * tui/tui-data.c (init_content_element): Update.
8547
6658b1bf
TT
85482019-06-25 Tom Tromey <tom@tromey.com>
8549
8550 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
8551 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
8552 * tui/tui-layout.c (init_and_make_win): Update.
8553 * tui/tui.h (enum tui_win_type): Update.
8554 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
8555 tui_win_is_auxillary.
8556 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
8557 tui_win_is_auxillary.
8558
21e1c91e
TT
85592019-06-25 Tom Tromey <tom@tromey.com>
8560
8561 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
8562 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
8563 (tui_delete_data_content_windows, tui_display_all_data)
8564 (tui_data_window::do_scroll_vertical, tui_display_data_from):
8565 Update.
8566 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
8567 * tui/tui-regs.c (tui_last_regs_line_no)
8568 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
8569 (tui_show_registers): Update.
8570 (tui_show_register_group): Return void. Update.
8571 (tui_display_registers_from, tui_display_reg_element_at_line)
8572 (tui_display_registers_from_line, tui_check_register_values):
8573 Update.
8574 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
8575 member.
8576 (struct tui_data_window) <regs_content>: Now a std::vector.
8577 <regs_content_count>: Remove.
8578 (tui_add_content_elements, tui_free_data_content): Don't declare.
8579 * tui/tui-data.c (tui_data_window::clear_detail): Update.
8580 (init_content_element): Remove DATA_WIN case. Add assert.
8581 (tui_add_content_elements): Remove.
8582 (tui_data_window): Update.
8583 (tui_free_data_content): Remove.
8584 (free_content_elements): Remove DATA_WIN case.
8585
115ac53b
TT
85862019-06-25 Tom Tromey <tom@tromey.com>
8587
8588 * tui/tui-data.c (tui_data_item_window): Update.
8589 * tui/tui-windata.h (tui_check_data_values): Don't declare.
8590 * tui/tui-windata.c (tui_display_all_data)
8591 (tui_display_data_from_line): Update.
8592 (tui_check_data_values): Remove.
8593 * tui/tui-regs.c (tui_show_register_group)
8594 (tui_display_reg_element_at_line): Update.
8595 * tui/tui-hooks.c (tui_register_changed)
8596 (tui_refresh_frame_and_register_information): Call
8597 tui_check_register_values.
8598 * tui/tui-data.h (struct tui_data_window) <data_content,
8599 data_content_count, data_type>: Remove.
8600 (enum tui_data_type): Remove.
8601
8602 * tui/tui-data.c (tui_data_window::clear_detail)
8603 (~tui_data_window): Update.
8604
eaf9738b
TT
86052019-06-25 Tom Tromey <tom@tromey.com>
8606
8607 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
8608 declare.
8609 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
8610 Rename from tui_first_data_item_displayed. Update.
8611 (tui_data_window::refresh_all)
8612 (tui_data_window::do_scroll_vertical): Update.
8613 * tui/tui-data.h (struct tui_data_window)
8614 <first_data_item_displayed>: Declare new method.
8615
31ca4723
TT
86162019-06-25 Tom Tromey <tom@tromey.com>
8617
8618 * tui/tui-data.h (tui_init_generic_part): Don't declare.
8619 * tui/tui-data.c (tui_init_generic_part): Remove, moving
8620 contents...
8621 (tui_initialize_static_data): ...here.
8622
41bcff7f
TT
86232019-06-25 Tom Tromey <tom@tromey.com>
8624
8625 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
8626 (tui_display_registers_from, tui_check_register_values): Update.
8627 (tui_display_register): Remove win_info parameter; update.
8628 (tui_get_register): Change type of parameters.
8629 * tui/tui-data.h (struct tui_data_element): Remove.
8630 (union tui_which_element) <data>: Remove.
8631 <data_window>: Change type.
8632 (struct tui_data_item_window): New.
8633 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
8634 case. Add assert.
8635 (~tui_data_item_window): New destructor.
8636 (free_content_elements): Remove DATA_ITEM_WIN case.
8637
d2802c33
TT
86382019-06-25 Tom Tromey <tom@tromey.com>
8639
8640 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
8641 Remove.
8642
dd835f8b
TT
86432019-06-25 Tom Tromey <tom@tromey.com>
8644
8645 * tui/tui-data.h (struct tui_command_element): Remove.
8646 (union tui_which_element) <command>: Remove.
8647 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
8648 assert.
8649 (free_content_elements): Remove CMD_WIN case.
8650
bd7db367
TT
86512019-06-25 Tom Tromey <tom@tromey.com>
8652
8653 * tui/tui-layout.c (tui_set_layout): Update.
8654 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
8655 * tui/tui-data.c (layout_def): Update.
8656
3add462f
TT
86572019-06-25 Tom Tromey <tom@tromey.com>
8658
8659 * tui/tui-wingeneral.c (tui_refresh_all): Update.
8660 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
8661 (tui_source_window_base::set_new_height): Update.
8662 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
8663 Update.
8664 (tui_set_locator_fullname, tui_set_locator_info)
8665 (tui_show_frame_info): Update.
8666 * tui/tui-source.c (tui_set_source_content)
8667 (tui_source_is_displayed): Update.
8668 * tui/tui-layout.c (show_source_disasm_command, show_data)
8669 (show_source_or_disasm_and_command): Update.
8670 * tui/tui-disasm.c (tui_set_disassem_content)
8671 (tui_get_begin_asm_address): Update.
8672 * tui/tui-data.h (struct tui_locator_element): Remove.
8673 (union tui_which_element) <locator>: Remove.
8674 (struct tui_locator_window): New.
8675 (tui_locator_win_info_ptr): Change return type.
8676 * tui/tui-data.c (_locator): Change type.
8677 (tui_locator_win_info_ptr): Change return type.
8678 (init_content_element): Remove LOCATOR_WIN case. Add assert.
8679 (tui_alloc_content): Add assert.
8680
489e9d8b
TT
86812019-06-25 Tom Tromey <tom@tromey.com>
8682
8683 * tui/tui-winsource.c
8684 (tui_exec_info_window::maybe_allocate_content): New method.
8685 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
8686 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
8687 (make_source_or_disasm_window): Add cast.
8688 * tui/tui-data.h (union tui_which_element) <simple_string>:
8689 Remove.
8690 (struct tui_source_info): New.
8691 (struct tui_source_window_base) <execution_info>: Change type.
8692 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
8693 case, and add assert.
8694 (tui_alloc_content): Add assert.
8695
c3fabb7d
TT
86962019-06-25 Tom Tromey <tom@tromey.com>
8697
8698 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
8699 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
8700 * tui/tui-data.c (tui_alloc_win_info): Remove.
8701
bbc228ee
TT
87022019-06-25 Tom Tromey <tom@tromey.com>
8703
8704 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
8705 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
8706 can_highlight.
8707
5fcee43a
TT
87082019-06-25 Tom Tromey <tom@tromey.com>
8709
8710 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
8711 make_visible_with_new_height method.
8712 (tui_win_info::make_visible_with_new_height): New method.
8713 (tui_source_window_base::do_make_visible_with_new_height)
8714 (tui_data_window::do_make_visible_with_new_height)
8715 (tui_cmd_window::do_make_visible_with_new_height): New methods.
8716 (make_visible_with_new_height): Remove.
8717 (tui_resize_all, tui_adjust_win_heights): Use
8718 make_visible_with_new_height method.
8719 * tui/tui-data.h (struct tui_win_info)
8720 <do_make_visible_with_new_height, make_visible_with_new_height>:
8721 New methods.
8722 (struct tui_source_window_base, struct tui_data_window)
8723 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
8724 methods.
8725
d83f1fe6
TT
87262019-06-25 Tom Tromey <tom@tromey.com>
8727
8728 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
8729 method.
8730 (update_tab_width): Call update_tab_width method.
8731 * tui/tui-data.h (struct tui_win_info)
8732 (struct tui_source_window_base) <update_tab_width>: New methods.
8733
17374de4
TT
87342019-06-25 Tom Tromey <tom@tromey.com>
8735
8736 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
8737 parameter.
8738 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
8739 parameter.
8740 (tui_gen_win_info::make_visible): Update.
8741 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
8742 parameter.
8743 * tui/tui-data.h (enum tui_box): New enum.
8744 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
8745
f936bca2
TT
87462019-06-25 Tom Tromey <tom@tromey.com>
8747
8748 * tui/tui-layout.c (make_source_or_disasm_window): Always use
8749 init_and_make_win for EXEC_INFO_WIN.
8750 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
8751 longer inline.
8752 (struct tui_win_info) <~tui_win_info>: Inline.
8753 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
8754 Don't declare.
8755 * tui/tui-data.c (source_win, disasm_win): Remove globals.
8756 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
8757 Remove.
8758 (tui_initialize_static_data): Update.
8759 (~tui_gen_win_info): Handle more cleanup here.
8760 (~tui_source_window_base): Delete "execution_info".
8761 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
8762
d6ba6a11
TT
87632019-06-25 Tom Tromey <tom@tromey.com>
8764
8765 * tui/tui-layout.c (make_command_window): Don't set
8766 can_highlight.
8767 (show_source_disasm_command): Call the reset method.
8768 (show_data): Don't set can_highlight. Call the reset method.
8769 (tui_gen_win_info::reset): Rename from init_gen_win_info
8770 (init_and_make_win): Simplify. Return tui_gen_win_info.
8771 (show_source_or_disasm_and_command): Call the reset method.
8772 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
8773 (struct tui_cmd_window): Set can_highlight.
8774
48a3bd16
TT
87752019-06-25 Tom Tromey <tom@tromey.com>
8776
8777 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
8778 from make_visible.
8779 (tui_make_visible, tui_make_invisible): Rewrite.
8780 (tui_win_info::make_visible): Remove.
8781 (tui_source_window_base::make_visible): Update.
8782 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
8783 method. Moved from...
8784 (struct tui_win_info) <make_visible>: ...here.
8785
c3bd716f
TT
87862019-06-25 Tom Tromey <tom@tromey.com>
8787
8788 * tui/tui-winsource.c
8789 (tui_source_window_base::do_scroll_horizontal): Remove direction
8790 parameter.
8791 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
8792 direction parameter.
8793 * tui/tui-win.c (tui_win_info::forward_scroll)
8794 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
8795 (tui_win_info::right_scroll): Update.
8796 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
8797 direction parameter.
8798 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
8799 direction parameter.
8800 * tui/tui-data.h (enum tui_scroll_direction): Remove.
8801 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
8802 Remove direction parameter.
8803 (struct tui_source_window_base, struct tui_source_window)
8804 (struct tui_disasm_window, struct tui_data_window)
8805 (struct tui_cmd_window): Update.
8806
21c32dca
TT
88072019-06-25 Tom Tromey <tom@tromey.com>
8808
8809 * tui/tui-winsource.h (tui_set_exec_info_content)
8810 (tui_show_exec_info_content, tui_erase_exec_info_content)
8811 (tui_clear_exec_info_content, tui_update_exec_info): Change
8812 argument to tui_source_window_base.
8813 * tui/tui-winsource.c (tui_set_exec_info_content)
8814 (tui_show_exec_info_content, tui_erase_exec_info_content)
8815 (tui_clear_exec_info_content, tui_update_exec_info): Change
8816 argument to tui_source_window_base.
8817
73fbdc65
TT
88182019-06-25 Tom Tromey <tom@tromey.com>
8819
8820 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
8821 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
8822
33325343
TT
88232019-06-25 Tom Tromey <tom@tromey.com>
8824
8825 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
8826 check.
8827
29d2c474
TT
88282019-06-25 Tom Tromey <tom@tromey.com>
8829
8830 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
8831 type to void.
8832 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
8833 type to void.
8834 * tui/tui-source.c (tui_set_source_content): Update.
8835 * tui/tui-disasm.c (tui_set_disassem_content): Update.
8836
152f3f4b
TT
88372019-06-25 Tom Tromey <tom@tromey.com>
8838
8839 * tui/tui-win.c (window_name_completer, tui_set_focus)
8840 (tui_all_windows_info): Use name method.
8841 * tui/tui-data.h (struct tui_gen_win_info)
8842 (struct tui_source_window, struct tui_disasm_window)
8843 (struct tui_data_window, struct tui_cmd_window) <name>: New
8844 method.
8845 (tui_win_name): Don't declare.
8846 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
8847 (tui_win_name): Remove.
8848
be4da588
TT
88492019-06-25 Tom Tromey <tom@tromey.com>
8850
8851 * tui/tui-winsource.h (tui_update_source_window)
8852 (tui_update_source_window_as_is): Change parameter type.
8853 * tui/tui-winsource.c (tui_update_source_window): Change win_info
8854 to be a tui_source_window_base.
8855 (tui_update_source_window_as_is): Likewise.
8856 * tui/tui-win.c (make_visible_with_new_height): Update.
8857
5b81daba
TT
88582019-06-25 Tom Tromey <tom@tromey.com>
8859
8860 * tui/tui-winsource.c (tui_erase_source_content)
8861 (tui_show_source_content, tui_show_exec_info_content)
8862 (tui_erase_exec_info_content): Use refresh_window method.
8863 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
8864 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
8865 from tui_refresh_win.
8866 (tui_data_window::refresh_window): New method.
8867 (tui_win_info::refresh, tui_source_window_base::refresh)
8868 (tui_refresh_all): Use refresh_window method.
8869 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
8870 method.
8871 * tui/tui-regs.c (tui_display_register): Call refresh_window
8872 method.
8873 * tui/tui-layout.c (show_source_disasm_command)
8874 (show_source_or_disasm_and_command): Call refresh_window method.
8875 * tui/tui-data.h (struct tui_gen_win_info)
8876 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
8877 New method.
8878
cb2ce893
TT
88792019-06-25 Tom Tromey <tom@tromey.com>
8880
8881 * tui/tui.c (tui_rl_other_window, tui_enable)
8882 (tui_is_window_visible, tui_get_command_dimension): Update.
8883 * tui/tui-winsource.c (tui_update_source_window_as_is)
8884 (tui_clear_source_content, tui_erase_source_content)
8885 (tui_show_source_line, tui_source_window_base::refill)
8886 (tui_source_window_base::do_scroll_horizontal)
8887 (tui_source_window_base::set_is_exec_point_at)
8888 (tui_update_breakpoint_info, tui_set_exec_info_content)
8889 (tui_alloc_source_buffer, tui_line_is_displayed)
8890 (tui_addr_is_displayed): Update.
8891 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
8892 (tui_check_and_display_highlight_if_needed)
8893 (tui_win_info::make_visible, tui_win_info::refresh)
8894 (tui_refresh_all): Update.
8895 * tui/tui-windata.c (tui_first_data_item_displayed)
8896 (tui_delete_data_content_windows, tui_erase_data_content)
8897 (tui_display_all_data, tui_data_window::refresh_all)
8898 (tui_check_data_values): Update.
8899 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
8900 (tui_set_win_focus_to, tui_win_info::forward_scroll)
8901 (tui_win_info::backward_scroll, tui_refresh_all_win)
8902 (tui_resize_all, tui_set_focus, tui_all_windows_info)
8903 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
8904 (tui_source_window_base::set_new_height)
8905 (tui_data_window::set_new_height)
8906 (make_invisible_and_set_new_height)
8907 (make_visible_with_new_height, new_height_ok)
8908 (parse_scrolling_args): Update.
8909 * tui/tui-stack.c (tui_show_frame_info): Update.
8910 * tui/tui-source.c (tui_set_source_content)
8911 (tui_set_source_content_nil, tui_source_is_displayed)
8912 (tui_source_window::do_scroll_vertical): Update.
8913 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
8914 (tui_display_registers_from, tui_display_reg_element_at_line)
8915 (tui_check_register_values, tui_reg_command): Update.
8916 * tui/tui-layout.c (tui_default_win_height)
8917 (show_source_disasm_command, show_data, init_and_make_win)
8918 (show_source_or_disasm_and_command): Update.
8919 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
8920 (tui_redisplay_readline, tui_mld_flush)
8921 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
8922 (tui_getc): Update.
8923 * tui/tui-disasm.c (tui_set_disassem_content)
8924 (tui_disasm_window::do_scroll_vertical): Update.
8925 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
8926 Now virtual.
8927 (struct tui_win_info): Derive from tui_gen_win_info.
8928 <~tui_win_info>: Mark as override.
8929 <generic>: Remove member.
8930 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
8931 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
8932 (~tui_data_window, ~tui_win_info)
8933 (tui_free_all_source_wins_content): Update.
8934 * tui/tui-command.c (tui_refresh_cmd_win): Update.
8935
ab313b35
TT
89362019-06-25 Tom Tromey <tom@tromey.com>
8937
8938 * tui/tui-layout.c (init_and_make_win): Use new.
8939 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
8940 destructor, initializers.
8941 (tui_alloc_generic_win_info): Don't declare.
8942 * tui/tui-data.c (_locator): Add argument to constructor.
8943 (source_win, disasm_win): New globals.
8944 (exec_info): Remove.
8945 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
8946 Update.
8947 (tui_alloc_generic_win_info): Remove.
8948 (init_content_element): Use new.
8949 (tui_win_info::tui_win_info): Update.
8950 (free_content_elements) <case DATA_WIN>: Use delete.
8951
dc2c33e4
TT
89522019-06-25 Tom Tromey <tom@tromey.com>
8953
8954 * tui/tui-wingeneral.c (tui_refresh_win): Update.
8955 * tui/tui-windata.c (tui_first_data_item_displayed)
8956 (tui_delete_data_content_windows): Update.
8957 * tui/tui-win.c (tui_data_window::set_new_height): Update.
8958 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
8959 (tui_display_registers_from, tui_check_register_values): Update.
8960 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
8961 pointer.
8962 * tui/tui-data.c (init_content_element): Update. Allocate the new
8963 window.
8964 (tui_free_data_content): Update.
8965 (free_content_elements) <case DATA_WIN>: Free the window.
8966
214a5cbe
TT
89672019-06-25 Tom Tromey <tom@tromey.com>
8968
8969 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
8970 Update.
8971 * tui/tui-layout.c (make_command_window)
8972 (show_source_disasm_command, show_data, init_and_make_win)
8973 (show_source_or_disasm_and_command): Update.
8974 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
8975 method.
8976 <can_highight, is_highlighted>: Now bool.
8977 (tui_set_win_highlight): Don't declare.
8978 * tui/tui-data.c (tui_set_win_highlight): Remove.
8979
8e2daf15
TT
89802019-06-25 Tom Tromey <tom@tromey.com>
8981
8982 * tui/tui-wingeneral.c (make_visible): Remove check of window
8983 type.
8984
8903bd8a
TT
89852019-06-25 Tom Tromey <tom@tromey.com>
8986
8987 * tui/tui-win.c (tui_win_info::max_height)
8988 (tui_cmd_window::max_height): New methods.
8989 (new_height_ok): Call max_height.
8990 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
8991 <max_height>: New method.
8992
3f02ce1e
TT
89932019-06-25 Tom Tromey <tom@tromey.com>
8994
8995 * tui/tui-win.c (tui_source_window_base::set_new_height)
8996 (tui_data_window::set_new_height): New methods.
8997 (make_invisible_and_set_new_height): Call set_new_height method.
8998 * tui/tui-data.h (struct tui_win_info)
8999 (struct tui_source_window_base, struct tui_data_window)
9000 <set_new_height>: New method.
9001
1825f487
TT
90022019-06-25 Tom Tromey <tom@tromey.com>
9003
9004 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
9005 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
9006 tui_refresh_data_win.
9007 * tui/tui-win.c (tui_source_window_base::refresh_all): New
9008 method.
9009 (tui_refresh_all_win): Call the refresh_all method.
9010 (tui_set_focus): Likewise.
9011 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
9012 (struct tui_source_window_base, struct tui_data_window) <refresh>:
9013 Likewise.
9014
ad54d15b
TT
90152019-06-25 Tom Tromey <tom@tromey.com>
9016
9017 * tui/tui-winsource.h (tui_refill_source_window)
9018 (tui_set_is_exec_point_at): Don't declare.
9019 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
9020 (tui_source_window_base::refill): Rename from
9021 tui_refill_source_window.
9022 (tui_source_window_base::do_scroll_horizontal): Update.
9023 (tui_source_window_base::set_is_exec_point_at): Rename from
9024 tui_set_is_exec_point_at.
9025 (tui_update_all_breakpoint_info): Update.
9026 * tui/tui-stack.c (tui_show_frame_info): Update.
9027 * tui/tui-layout.c (show_data): Add cast.
9028 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
9029 * tui/tui-data.h (struct tui_source_window_base) <refill,
9030 set_is_exec_point_at>: New methods.
9031 (tui_source_windows, tui_add_to_source_windows): Update types.
9032 (tui_add_to_source_windows): Remove redundant declaration.
9033 * tui/tui-data.c (source_windows): Store tui_source_window_base.
9034 (tui_source_windows): Change return type.
9035 (tui_clear_source_windows_detail): Update.
9036 (tui_add_to_source_windows): Change type of parameter.
9037 (tui_free_all_source_wins_content): Update.
9038
2042b506
TT
90392019-06-25 Tom Tromey <tom@tromey.com>
9040
9041 * tui/tui-wingeneral.c (tui_win_info::refresh)
9042 (tui_source_window_base::refresh): New methods.
9043 (tui_refresh_all): Call the refresh method.
9044 * tui/tui-data.h (struct tui_win_info)
9045 (struct tui_source_window_base) <refresh>: New method.
9046
56122977
TT
90472019-06-25 Tom Tromey <tom@tromey.com>
9048
9049 * tui/tui.h (tui_is_window_visible): Return bool.
9050 * tui/tui.c (tui_is_window_visible): Return bool.
9051 * tui/tui-wingeneral.c (tui_make_window, make_visible)
9052 (tui_make_visible, tui_make_invisible)
9053 (tui_win_info::make_visible)
9054 (tui_source_window_base::make_visible, make_all_visible)
9055 (tui_make_all_visible, tui_make_all_invisible): Update.
9056 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
9057 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
9058 bool.
9059 (struct tui_win_info, struct tui_source_window_base)
9060 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
9061 * tui/tui-data.c (tui_init_generic_part): Update.
9062
cda37efb
TT
90632019-06-25 Tom Tromey <tom@tromey.com>
9064
9065 * tui/tui-wingeneral.c (tui_win_info::make_visible)
9066 (tui_source_window_base::make_visible): New methods.
9067 (make_all_visible): Make method call.
9068 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
9069 (struct tui_source_window_base, struct tui_cmd_window): Override
9070 make_visible.
9071 (tui_win_is_source_type): Don't declare.
9072 * tui/tui-data.c (tui_win_is_source_type): Remove.
9073
6a0ee02c
TT
90742019-06-25 Tom Tromey <tom@tromey.com>
9075
9076 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
9077 NULL check.
9078
63901aec
TT
90792019-06-25 Tom Tromey <tom@tromey.com>
9080
9081 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
9082 Inline constructor. Add initializers for members.
9083 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
9084 constructors; now inline in class.
9085
ceb13a13
TT
90862019-06-25 Tom Tromey <tom@tromey.com>
9087
9088 * tui/tui-regs.c (tui_show_registers): Update.
9089 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
9090 bool.
9091 * tui/tui-data.c (tui_data_window::clear_detail)
9092 (tui_data_window): Update.
9093
238eb706
TT
90942019-06-25 Tom Tromey <tom@tromey.com>
9095
9096 * tui/tui-windata.c (tui_display_all_data)
9097 (tui_display_data_from_line, tui_display_data_from)
9098 (tui_check_data_values, tui_data_window::do_scroll_vertical):
9099 Update.
9100 * tui/tui-regs.c (tui_last_regs_line_no)
9101 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
9102 (tui_show_registers, tui_show_register_group)
9103 (tui_display_registers_from, tui_display_reg_element_at_line)
9104 (tui_display_registers_from_line, tui_check_register_values)
9105 (tui_reg_next, tui_reg_prev): Update.
9106 * tui/tui-layout.c (tui_set_layout, show_data): Update.
9107 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
9108 tui_data_window.
9109 (struct tui_win_info) <detail>: Remove. Add new fields from
9110 tui_data_info.
9111 (TUI_DATA_WIN): Add cast.
9112 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
9113 (~tui_data_window): Simplify.
9114
81491aa0
TT
91152019-06-25 Tom Tromey <tom@tromey.com>
9116
9117 * tui/tui-layout.c (show_source_disasm_command)
9118 (show_source_or_disasm_and_command): Update.
9119 * tui/tui-io.c (update_cmdwin_start_line)
9120 (tui_redisplay_readline): Update.
9121 * tui/tui-data.h (struct tui_command_info): Remove.
9122 (struct tui_win_info) <detail>: Remove command_info member.
9123 (struct tui_data_window) <start_line>: New member, from
9124 tui_command_info.
9125 (TUI_CMD_WIN): Add casts.
9126
e6e41501
TT
91272019-06-25 Tom Tromey <tom@tromey.com>
9128
9129 * tui/tui-winsource.c (tui_update_source_window)
9130 (tui_refill_source_window)
9131 (tui_source_window_base::do_scroll_horizontal)
9132 (tui_update_breakpoint_info, tui_set_exec_info_content)
9133 (tui_show_exec_info_content, tui_erase_exec_info_content)
9134 (tui_clear_exec_info_content): Update.
9135 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
9136 Update.
9137 * tui/tui-win.c (make_invisible_and_set_new_height)
9138 (make_visible_with_new_height): Update.
9139 * tui/tui-source.c (tui_set_source_content)
9140 (tui_show_symtab_source): Update.
9141 * tui/tui-layout.c (extract_display_start_addr)
9142 (show_source_disasm_command, show_data)
9143 (make_source_or_disasm_window)
9144 (show_source_or_disasm_and_command): Update.
9145 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
9146 (tui_disasm_window::do_scroll_vertical): Remove shadowing
9147 "gdbarch".
9148 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
9149 to tui_source_window_base.
9150 (struct tui_win_info) <detail>: Remove source_info member.
9151 (struct tui_source_window_base) <has_locator>: Inline.
9152 Move contents from tui_source_info; rename has_locator member to
9153 m_has_locator.
9154 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
9155 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
9156 header file.
9157 (tui_source_window_base::clear_detail, ~tui_source_window_base):
9158 Simplify.
9159 (tui_free_all_source_wins_content): Cast to
9160 tui_source_window_base.
9161
44f0e208
TT
91622019-06-25 Tom Tromey <tom@tromey.com>
9163
9164 * tui/tui-win.c (make_invisible_and_set_new_height)
9165 (make_visible_with_new_height): Call has_locator method.
9166 * tui/tui-layout.c (show_source_disasm_command, show_data)
9167 (show_source_or_disasm_and_command): Update for bool change.
9168 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
9169 (tui_win_info) <has_locator>: New method.
9170 (struct tui_source_window_base) <has_locator>: New method.
9171 (tui_win_has_locator): Don't declare.
9172 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
9173 from tui_win_has_locator.
9174 (tui_source_window_base): Use false, not FALSE.
9175
7778b912
TT
91762019-06-25 Tom Tromey <tom@tromey.com>
9177
9178 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
9179 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
9180 clear_detail method directly.
9181 (tui_clear_win_detail): Remove.
9182
f83d391c
TT
91832019-06-25 Tom Tromey <tom@tromey.com>
9184
9185 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
9186 "this", not TUI_DISASM_WIN.
9187
13446e05
TT
91882019-06-25 Tom Tromey <tom@tromey.com>
9189
9190 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
9191 declare.
9192 * tui/tui-winsource.c
9193 (tui_source_window_base::do_scroll_horizontal): Rename from
9194 tui_horizontal_source_scroll.
9195 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
9196 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
9197 from tui_vertical_data_scroll.
9198 * tui/tui-win.h (tui_scroll): Don't declare.
9199 * tui/tui-win.c (tui_win_info::forward_scroll)
9200 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
9201 (tui_win_info::right_scroll): Rename and update.
9202 (tui_scroll_forward_command, tui_scroll_backward_command)
9203 (tui_scroll_left_command, tui_scroll_right_command): Update.
9204 (tui_scroll): Remove.
9205 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
9206 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
9207 from tui_vertical_source_scroll.
9208 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
9209 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
9210 from tui_vertical_disassem_scroll.
9211 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
9212 do_scroll_horizontal>: New methods.
9213 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
9214 Likewise.
9215 (struct tui_source_window_base): Add do_scroll_horizontal.
9216 (struct tui_source_window, struct tui_disasm_window): Add
9217 do_scroll_vertical.
9218 (struct tui_data_window, struct tui_cmd_window): Add
9219 do_scroll_horizontal and do_scroll_vertical.
9220 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
9221
5cf82909
TT
92222019-06-25 Tom Tromey <tom@tromey.com>
9223
9224 * tui/tui-data.h (struct tui_source_window_base): New struct.
9225 (struct tui_source_window): Derive from tui_source_window_base.
9226 (struct tui_disasm_window): New struct.
9227 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
9228 from tui_source_window::clear_detail.
9229 (tui_source_window_base): Rename from tui_source_window.
9230 (~tui_source_window_base): Rename from ~tui_source_window.
9231 (tui_alloc_win_info): Create a tui_disasm_window.
9232
ee1d42d6
TT
92332019-06-25 Tom Tromey <tom@tromey.com>
9234
9235 * tui/tui-data.h (struct tui_source_window)
9236 (struct tui_data_window): Declare destructors.
9237 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
9238 destructors.
9239 (tui_win_info): Simplify.
9240
b4eb2452
TT
92412019-06-25 Tom Tromey <tom@tromey.com>
9242
9243 * tui/tui-winsource.c (tui_display_main)
9244 (tui_update_source_windows_with_addr)
9245 (tui_update_all_breakpoint_info): Update.
9246 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
9247 (new_height_ok, parse_scrolling_args): Update.
9248 * tui/tui-stack.c (tui_show_frame_info): Update.
9249 * tui/tui-data.h (struct tui_list): Remove.
9250 (tui_source_windows): Return a reference to a std::vector.
9251 * tui/tui-data.c (source_windows): Now a std::vector.
9252 (tui_source_windows): Change return type.
9253 (tui_clear_source_windows): Rewrite.
9254 (tui_clear_source_windows_detail, tui_add_to_source_windows)
9255 (tui_free_all_source_wins_content): Rewrite.
9256
8761a91b
TT
92572019-06-25 Tom Tromey <tom@tromey.com>
9258
9259 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
9260 (struct tui_data_window, struct tui_cmd_window): Declare
9261 clear_detail method.
9262 * tui/tui-data.c (tui_source_window::clear_detail)
9263 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
9264 methods.
9265 (tui_clear_win_detail): Simplify.
9266
0ed69eda
TT
92672019-06-25 Tom Tromey <tom@tromey.com>
9268
9269 * tui/tui-layout.c (make_source_window, make_disasm_window)
9270 (make_source_or_disasm_window): Remove win_info_ptr parameter.
9271 Return the new window.
9272 (show_source_disasm_command, show_data)
9273 (show_source_or_disasm_and_command): Update.
9274
82432e10
TT
92752019-06-25 Tom Tromey <tom@tromey.com>
9276
9277 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
9278 parameter. Return the new window.
9279 (show_source_disasm_command): Update and remove NULL check.
9280 (show_source_or_disasm_and_command): Update.
9281
ec328aa5
TT
92822019-06-25 Tom Tromey <tom@tromey.com>
9283
9284 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
9285
33b906ab
TT
92862019-06-25 Tom Tromey <tom@tromey.com>
9287
9288 * tui/tui-data.h (struct tui_win_info): Make constructor
9289 protected. Make destructor virtual. Add initializers.
9290 (tui_source_window, tui_data_window, tui_cmd_window): New
9291 classes.
9292 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
9293 constructor. Add "type" parameter.
9294 (tui_source_window, tui_data_window, tui_cmd_window): New
9295 constructors.
9296 (tui_alloc_win_info): Instantiate the appropriate subclass.
9297
e7e11af4
TT
92982019-06-25 Tom Tromey <tom@tromey.com>
9299
9300 * tui/tui-win.c (tui_resize_all): Use delete.
9301 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
9302 destructor.
9303 (tui_free_window): Don't declare.
9304 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
9305 Update.
9306
6792b55e
TT
93072019-06-25 Tom Tromey <tom@tromey.com>
9308
9309 * tui/tui-data.h (struct tui_win_info): Add constructor.
9310 * tui/tui-data.c (tui_alloc_win_info): Use new.
9311 (tui_free_window): Use delete.
9312
f95675e1
TT
93132019-06-22 Tom Tromey <tom@tromey.com>
9314
9315 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
9316 declare.
9317 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
9318
5bff081c
TT
93192019-06-22 Tom Tromey <tom@tromey.com>
9320
9321 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
9322 declare.
9323 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
9324
47e3f474
TV
93252019-06-22 Tom de Vries <tdevries@suse.de>
9326
9327 * dwarf2read.c (create_addrmap_from_aranges)
9328 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
9329 instead of '%zu'.
9330
fd5866f6
SM
93312019-06-21 Simon Marchi <simon.marchi@efficios.com>
9332
9333 * dwarf2read.h (dwarf2_section_info_def): Remove.
9334 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
9335 * dwarf2read.c (struct dwo_sections) <types>: Change type to
9336 std::vector<dwarf2_section_info>.
9337 (struct dwo_file) <~dwo_file>: Remove.
9338 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
9339 types field.
9340 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
9341 (dwarf2_read_debug_names): Likewise.
9342 (create_debug_types_hash_table): Change parameter type to
9343 array_view, adjust code accordingly.
9344 (dwarf2_locate_dwo_sections): Adjust to std::vector.
9345 (partial_die_info::fixup): Likewise.
9346 (determine_prefix): Likewise.
9347 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
9348
fb1eb2f9
SM
93492019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
9350
9351 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
9352 gdb_bfd_ref_ptr.
9353 <~dwo_file>: Remove call to gdb_bfd_unref.
9354 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
9355 gdb_bfd_ref_ptr::get.
9356
51ac9db5
SM
93572019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
9358
9359 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
9360 type to htab_up.
9361 * dwarf2read.c (struct dwo_file): Initialize fields.
9362 <~dwo_file>: New.
9363 (free_dwo_file): Remove, move content to ~dwo_file.
9364 (struct dwo_file_deleter): Remove.
9365 (dwo_file_up>: Remove custom deleter.
9366 (free_dwo_files): Remove.
9367 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
9368 dwo_files.
9369 (process_skeletonless_type_units): Call unique_ptr::get.
9370 (allocate_dwo_file_hash_table): Add deleter to created hash
9371 table. Change return type to htab_up.
9372 (lookup_dwo_file_slot): Don't memset dwo_file, call
9373 unique_ptr::get.
9374 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
9375 (create_dwo_unit_in_dwp_v2): Likewise.
9376 (open_and_init_dwo_file): Likewise.
9377 (free_dwo_file_from_slot): Remove.
9378
dc4ccb6f
SM
93792019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
9380
9381 * dwarf2read.h (struct dwarf2_section_info) <readin,
9382 is_virtual>: Change type to bool.
9383 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
9384 true instead of 1.
9385
e6a1c5cb
TT
93862019-06-19 Tom Tromey <tom@tromey.com>
9387
9388 * tui/tui-data.h (tui_init_content_element): Don't declare.
9389
6f6ffbeb
TT
93902019-06-19 Tom Tromey <tom@tromey.com>
9391
9392 * tui/tui-data.h (tui_init_win_info): Don't declare.
9393
f23f598e
TV
93942019-06-19 Tom de Vries <tdevries@suse.de>
9395
9396 * dwarf2read.h (abstract_to_concrete): Change type to
9397 std::unordered_map<sect_offset, std::vector<sect_offset>,
9398 gdb::hash_enum<sect_offset>>.
9399
680e1bee
TT
94002019-06-19 Tom Tromey <tromey@adacore.com>
9401
9402 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
9403 EVAL_AVOID_SIDE_EFFECTS specially.
9404
dcf37923
TT
94052019-06-19 Tom Tromey <tromey@adacore.com>
9406
9407 * source-cache.c (highlighter): New global.
9408 (source_cache::get_source_lines): Create a highlighter on demand.
9409
494986d5
AB
94102019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
9411
9412 * defs.h (deprecated_interactive_hook): Delete declaration.
9413 * interps.c (clear_interpreter_hooks): Remove use of
9414 deprecated_interactive_hook.
9415 * top.c (deprecated_interactive_hook): Delete definition.
9416 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
9417
3360b6e7
TV
94182019-06-18 Tom de Vries <tdevries@suse.de>
9419
9420 PR gdb/24515
9421 * dwarf2read.h (abstract_to_concrete): Change type from
9422 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
9423 std::unordered_map<sect_offset, std::vector<sect_offset>>.
9424 * dwarf2read.c (read_variable): Update.
9425 (dwarf2_fetch_die_loc_sect_off): Update.
9426
310b3441
TV
94272019-06-17 Tom de Vries <tdevries@suse.de>
9428
9429 PR gdb/24617
9430 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
9431 accessing parent[parent_len - 1].
9432
ba9777be
PP
94332019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
9434
9435 PR gdb/24364
9436 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
9437 call dtrace_process_dof with NULL dof.
9438
2b9f6e89
TV
94392019-06-16 Tom de Vries <tdevries@suse.de>
9440
9441 PR gdb/24445
9442 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
9443
431b3ead
TT
94442019-06-16 Tom Tromey <tom@tromey.com>
9445
9446 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
9447 (make_all_visible): Use address of member.
9448
d04b44a1
TT
94492019-06-16 Tom Tromey <tom@tromey.com>
9450
9451 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
9452 (tui_free_window, free_content, free_content_elements): Remove
9453 unnecessary cast.
9454 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
9455 cast.
9456 * tui/tui-regs.c (tui_show_register_group)
9457 (tui_display_registers_from, tui_display_reg_element_at_line):
9458 Remove unnecessary cast.
9459
bf5142e7
AB
94602019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
9461
9462 * linux-nat.c (normal_mask): Delete.
9463 (_initialize_linux_nat): Don't initialise normal_mask.
9464
c4973306
SM
94652019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
9466
9467 PR gdb/24445
9468 * dwarf-index-write.h (write_psymtabs_to_index): Add
9469 dwz_basename parameter.
9470 * dwarf-index-write.c (write_gdbindex): Move file writing to
9471 write_gdbindex_1. Change return type void.
9472 (assert_file_size): Move up, remove filename parameter.
9473 (write_gdbindex_1): New function.
9474 (write_debug_names): Change return type to void, call
9475 assert_file_size.
9476 (struct index_wip_file): New struct.
9477 (write_psymtabs_to_index): Add dwz_basename parameter. Move
9478 file logic to index_wip_file. Write index for dwz file if
9479 needed.
9480 (save_gdb_index_command): Pass basename of dwz file, if present.
9481 * dwarf-index-cache.c (index_cache::store): Obtain and pass
9482 build-id of dwz file, if present.
9483 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
9484 (dwarf2_get_dwz_file): Likewise.
9485 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
9486 (dwarf2_get_dwz_file): Likewise.
9487
395f9c91
TT
94882019-06-16 Tom Tromey <tom@tromey.com>
9489
9490 * coffread.c (process_coff_symbol): Use xstrdup.
9491 * value.c (create_internalvar): Use xstrdup.
9492
cafb3438
TT
94932019-06-16 Tom Tromey <tom@tromey.com>
9494
9495 * valops.c (value_cast, value_slice): Remove unnecessary cast.
9496 * breakpoint.c (stopin_command, stopat_command)
9497 (until_break_command, decode_location_default): Remove unnecessary
9498 cast.
9499 * utils.c (subset_compare): Remove unnecessary cast.
9500 * ada-lang.c (ada_update_initial_language): Remove unnecessary
9501 cast.
9502 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
9503 cast.
9504 * infcmd.c (path_command): Remove unnecessary cast.
9505 * coffread.c (decode_type): Remove unnecessary cast.
9506 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
9507 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
9508 * tui/tui-stack.c (tui_show_locator_content)
9509 (tui_show_frame_info): Remove unnecessary cast.
9510 * tui/tui-win.c (tui_scroll_forward_command)
9511 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
9512 (parse_scrolling_args): Remove unnecessary cast.
9513 * tui/tui-data.c (init_win_info, tui_del_window)
9514 (tui_free_window, tui_del_data_windows, tui_free_data_content)
9515 (free_content_elements): Remove unnecessary cast.
9516 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
9517 unnecessary cast.
9518 * tui/tui-source.c (tui_set_source_content)
9519 (tui_vertical_source_scroll): Remove unnecessary cast.
9520 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
9521 cast.
9522 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
9523 * tui/tui-regs.c (tui_display_registers_from)
9524 (tui_display_register): Remove unnecessary cast.
9525 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
9526 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
9527 (make_visible): Remove unnecessary cast.
9528 * tui/tui-winsource.c (tui_erase_source_content)
9529 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
9530 unnecessary cast.
9531 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
9532 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
9533 * stabsread.c (read_type, read_array_type, read_range_type):
9534 Remove unnecessary cast.
9535 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
9536 (parse_symbol, parse_type, upgrade_type, parse_external)
9537 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
9538 unnecessary cast.
9539 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
9540
730ead81
TT
95412019-06-16 Tom Tromey <tom@tromey.com>
9542
9543 * tui/tui-data.c (tui_alloc_generic_win_info)
9544 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
9545 checks.
9546
584a927c
AB
95472019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
9548 Andrew Burgess <andrew.burgess@embecosm.com>
9549
9550 * f-typeprint.c (f_print_type): Don't return early for not
9551 associated or not allocated types.
9552 (f_type_print_varspec_suffix): Add print_rank parameter and print
9553 ranks of array types in case they dangling.
9554 (f_type_print_base): Add print_rank parameter.
9555
30056ea0
AB
95562019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
9557
9558 * NEWS: Mention new MI commands.
9559 * break-catch-throw.c (enum exception_event_kind): Move to
9560 breakpoint.h.
9561 (print_mention_exception_catchpoint): Output text as a single
9562 message.
9563 (catch_exception_command_1): Rename to...
9564 (catch_exception_event): ...this, make non-static, update header
9565 command, and change some parameter types.
9566 (catch_catch_command): Update for changes to
9567 catch_exception_command_1.
9568 (catch_throw_command): Likewise.
9569 (catch_rethrow_command): Likewise.
9570 * breakpoint.c (enum exception_event_kind): Delete.
9571 * breakpoint.h (enum exception_event_kind): Moved here from
9572 break-catch-throw.c.
9573 (catch_exception_event): Declare.
9574 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
9575 (mi_cmd_catch_throw): New function.
9576 (mi_cmd_catch_rethrow): New function.
9577 (mi_cmd_catch_catch): New function.
9578 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
9579 'catch-catch' entries.
9580 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
9581 (mi_cmd_catch_rethrow): Declare.
9582 (mi_cmd_catch_catch): Declare.
9583
ec8e2b6d
AB
95842019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
9585
9586 * annotate.c (annotate_source_line): Change return type to void,
9587 update implementation to match.
9588 * annotate.h (annotate_source_line): Change return type to void,
9589 update header comment.
9590 * stack.c (print_frame_info): Don't change what frame information
9591 is printed based on whether annotations are on or not.
9592
0d3abd8c
AB
95932019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
9594
9595 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
9596 (annotate_source): Make static.
9597 (annotate_source_line): Moved from source.c and renamed from
9598 identify_source_line. Update the return type.
9599 * annotate.h (annotate_source): Delete declaration.
9600 (annotate_source_line): Declaration moved from source.h, and
9601 renamed from identify_source_line. Return type updated.
9602 * source.c (identify_source_line): Moved to annotate.c and renamed
9603 to annotate_source_line.
9604 (info_line_command): Remove check of annotation_level.
9605 * source.h (identify_source_line): Move declaration to annotate.h
9606 and rename to annotate_source_line.
9607 * stack.c: Add 'annotate.h' include.
9608 (print_frame_info): Remove check of annotation_level before
9609 calling annotate_source_line.
9610
00df30ae
AB
96112019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
9612
9613 * source-cache.c (source_cache::get_plain_source_lines): Use
9614 open_source_file_with_line_charpos instead of just
9615 open_source_file, remove call to find_source_lines.
9616 (source_cache::get_source_lines): Likewise.
9617 * source.c (find_source_lines): Make static.
9618 (get_filename_and_charpos): Renamed into...
9619 (open_source_file_with_line_charpos): ..this along with changes to
9620 return a scoped_fd, and some other minor clean ups.
9621 (identify_source_line): Use open_source_file_with_line_charpos.
9622 (search_command_helper): Use open_source_file_with_line_charpos
9623 instead of just open_source_file, remove call to
9624 find_source_lines.
9625 * source.h (open_source_file_with_line_charpos): Declare new
9626 function.
9627 (find_source_lines): Delete declaration.
9628
afda45a2
AB
96292019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
9630
9631 * source.c (get_filename_and_charpos): Remove fullname
9632 parameter.
9633 (identify_source_line): Update call to get_filename_and_charpos.
9634
0735b091
TT
96352019-06-14 Tom Tromey <tromey@adacore.com>
9636
9637 PR gdb/24502:
9638 * ui-style.h (skip_ansi_escape): Update comment.
9639 * ui-file.h (class no_terminal_escape_file): New class.
9640 * ui-file.c (no_terminal_escape_file::write)
9641 (no_terminal_escape_file::puts): New methods.
9642 * cli/cli-logging.c (handle_redirections): Use
9643 no_terminal_escape_file.
9644
52ce35e2
TT
96452019-06-14 Tom Tromey <tromey@adacore.com>
9646
9647 * NEWS: Move convenience variable news above Python news.
9648
73cc7272
TT
96492019-06-14 Tom Tromey <tom@tromey.com>
9650
9651 * gnulib: Move directory to top-level.
9652 * configure.ac: Don't configure gnulib.
9653 * configure: Rebuild.
9654 * common/common-defs.h: Use new path to gnulib.
9655 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
9656 (GNULIB_H): Remove.
9657 (INCGNU): Look in new gnulib location.
9658 (HFILES_NO_SRCDIR): Remove gnulib files.
9659 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
9660 (generated_files): Remove GNULIB_H.
9661 ($(LIBGNU), all-lib): Remove targets.
9662 (distclean): Don't mention GNULIB_BUILDDIR.
9663 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
9664
f5686554
TT
96652019-06-14 Tom Tromey <tromey@adacore.com>
9666
9667 * symfile.c (add_symbol_file_command): Remove obsolete comment.
9668 Warn if symbol file does not provide any symbols.
9669
a0c1ffed
TT
96702019-06-14 Tom Tromey <tromey@adacore.com>
9671
9672 * source.c (find_and_open_source): Respect basenames_may_differ.
9673
7c39e397
AB
96742019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
9675
9676 * annotate.c (annotate_breakpoints_invalid): Make use of
9677 scoped_restore_terminal_state.
9678 (annotate_frames_invalid): Likewise.
9679
f411722c
TT
96802019-06-14 Tom Tromey <tromey@adacore.com>
9681
9682 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
9683 allow assignment to an internalvar.
9684
4268ec18
TT
96852019-06-14 Tom Tromey <tromey@adacore.com>
9686
9687 * ada-lex.l: Allow "_" in attribute names.
9688
abdb711e
TT
96892019-06-14 Tom Tromey <tromey@adacore.com>
9690
9691 PR gdb/24653:
9692 * regcache.c (registers_changed): Don't call alloca.
9693 * top.c (execute_command): Don't call alloca.
9694
4c048731
PA
96952019-06-13 Pedro Alves <palves@redhat.com>
9696
9697 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
9698 'expression'. When parsing an expression, error out if there's
9699 junk after "unlimited".
9700 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
9701 (do_set_command): Adjust calls to is_unlimited_literal.
9702
66eb1ed3
PA
97032019-06-13 Pedro Alves <palves@redhat.com>
9704
9705 * compile/compile.c (make_compile_options_def_group): Add braces
9706 around array_view initializer.
9707 * thread.c (make_thread_apply_all_options_def_group)
9708 (make_thread_apply_all_options_def_group): Likewise.
9709
3345721a
PA
97102019-06-13 Pedro Alves <palves@redhat.com>
9711
9712 * NEWS (New commands): Mention "maint test-options
9713 require-delimiter", "maint test-options unknown-is-error", "maint
9714 test-options unknown-is-operand" and "maint show
9715 test-options-completion-result".
9716 (New command options, command completion): New section.
9717 (Completion improvements): New section.
9718 Mention that you can abbreviate "unlimited".
9719
6206060d
PA
97202019-06-13 Pedro Alves <palves@redhat.com>
9721
9722 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
9723 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
9724 * unittests/cli-utils-selftests.c (test_parse_flags)
9725 (test_parse_flags_qcs): Delete.
9726 (test_cli_utils): Don't call deleted functions.
9727
6665660a
PA
97282019-06-13 Pedro Alves <palves@redhat.com>
9729
9730 * thread.c: Include "cli/cli-option.h".
9731 (tp_array_compar_ascending): Global.
9732 (tp_array_compar): Delete function.
9733 (tp_array_compar_ascending, tp_array_compar_descending): New
9734 functions.
9735 (ascending_option_def, qcs_flag_option_def)
9736 (thr_qcs_flags_option_defs)
9737 (make_thread_apply_all_options_def_group)
9738 (make_thread_apply_options_def_group): New.
9739 (thread_apply_all_command): Use gdb::option::process_options.
9740 (thread_apply_command_completer)
9741 (thread_apply_all_command_completer): New.
9742 (thread_apply_command): Use gdb::option::process_options.
9743 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
9744 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
9745 to generate help text of "thread apply". Adjust "taas"'s help.
9746 * tid-parse.c (tid_range_parser::in_thread_range): New method.
9747 * tid-parse.h (tid_range_parser::in_thread_range): New method.
9748
f7e13587
PA
97492019-06-13 Pedro Alves <palves@redhat.com>
9750
9751 * thread.c (thread_apply_command): Check for invalid TID with
9752 isdigit instead of !isalpha.
9753
5d707134
PA
97542019-06-13 Pedro Alves <palves@redhat.com>
9755
9756 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
9757 (validate_flags_qcs): New.
9758 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
9759 (validate_flags_qcs): Declare.
9760 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
9761 (make_frame_apply_options_def_group): New.
9762 (frame_apply_command_count): Process options with
9763 gdb::option::process_options.
9764 (frame_apply_completer): New.
9765 (frame_apply_level_completer, frame_apply_all_completer)
9766 (frame_apply_completer): New.
9767 (_initialize_stack): Update help of "frame apply", "frame apply
9768 level", "frame apply all" and "faas" to mention supported options
9769 and install command completers.
9770 * stack.h (frame_apply_all_completer): Declare.
9771 * thread.c: Include "stack.h".
9772 (tfaas_command): Add "--".
9773 (_initialize_thread): Update help "tfaas" to mention supported
9774 options and install command completer.
9775
272d4594
PA
97762019-06-13 Pedro Alves <palves@redhat.com>
9777
9778 * completer.c (complete_nested_command_line): New.
9779 (gdb_completion_word_break_characters_throw): Add assertion.
9780 * completer.h (complete_nested_command_line): Declare.
9781
90a1ef87
PA
97822019-06-13 Pedro Alves <palves@redhat.com>
9783
9784 * stack.c (parse_backtrace_qualifiers): New.
9785 (backtrace_command): Use it.
9786 (backtrace_command_completer): Complete on qualifiers.
9787
d4c16835
PA
97882019-06-13 Pedro Alves <palves@redhat.com>
9789
9790 * frame.c: Include "cli/cli-option.h.
9791 (user_set_backtrace_options): New.
9792 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
9793 Delete.
9794 (get_prev_frame): Adjust.
9795 (boolean_option_def, uinteger_option_def)
9796 (set_backtrace_option_defs): New.
9797 (_initialize_frame): Adjust and use
9798 gdb::option::add_setshow_cmds_for_options to install "set
9799 backtrace past-main" and "set backtrace past-entry".
9800 * frame.h: Include "cli/cli-option.h".
9801 (struct frame_print_options): Forward declare.
9802 (print_frame_arguments_all, print_frame_arguments_scalars)
9803 (print_frame_arguments_none): Declare.
9804 (print_entry_values): Delete declaration.
9805 (struct frame_print_options, user_frame_print_options): New.
9806 (struct set_backtrace_options): New.
9807 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
9808 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
9809 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
9810 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
9811 (list_args_or_locals): Add frame_print_options parameter.
9812 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
9813 * python/py-framefilter.c (enumerate_args): Pass down
9814 USER_FRAME_PRINT_OPTIONS.
9815 * stack.c: Include "cli/cli-option.h".
9816 (print_frame_arguments_all, print_frame_arguments_scalars)
9817 (print_frame_arguments_none): Declare.
9818 (print_raw_frame_arguments, print_entry_values): Delete.
9819 (user_frame_print_options): New.
9820 (boolean_option_def, enum_option_def, frame_print_option_defs):
9821 New.
9822 (struct backtrace_cmd_options): New.
9823 (bt_flag_option_def): New.
9824 (backtrace_command_option_defs): New.
9825 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
9826 (print_frame_arg, read_frame_arg, print_frame_args)
9827 (print_frame_info, print_frame): Add frame_print_options parameter
9828 and use it.
9829 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
9830 (backtrace_command_1): Add frame_print_options and
9831 backtrace_cmd_options parameters and use them.
9832 (make_backtrace_options_def_group): New.
9833 (backtrace_command): Process command options with
9834 gdb::option::process_options.
9835 (backtrace_command_completer): New.
9836 (_initialize_stack): Extend "backtrace"'s help to mention
9837 supported options. Install completer for "backtrace".
9838 Install some settings commands with add_setshow_cmds_for_options.
9839
2daf894e
PA
98402019-06-13 Pedro Alves <palves@redhat.com>
9841
9842 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
9843 and that "set/show print raw frame-arguments" are now deprecated.
9844
9845 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
9846 command.
9847 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
9848 * stack.c (_initialize_stack): Install "set/show print
9849 raw-frame-arguments", and deprecate "set/show print raw
9850 frame-arguments".
9851 * valprint.c (_initialize_valprint): Deprecate "set/show print
9852 raw".
9853
e6ed716c
PA
98542019-06-13 Pedro Alves <palves@redhat.com>
9855
9856 * compile/compile.c (struct compile_options): New.
9857 (compile_flag_option_def, compile_command_option_defs)
9858 (make_compile_options_def_group): New.
9859 (compile_file_command): Handle options with
9860 gdb::option::process_options.
9861 (compile_file_command_completer): New function.
9862 (compile_code_command): Handle options with
9863 gdb::option::process_options.
9864 (compile_code_command_completer): New function.
9865 (_initialize_compiler): Install completers for "compile code" and
9866 "compile file". Mention available options in "compile code" and
9867 "compile code"'s help.
9868 * completer.c (advance_to_completion_word): New, factored out from
9869 ...
9870 (advance_to_expression_complete_word_point): ... this.
9871 (advance_to_filename_complete_word_point): New.
9872 * completer.h (advance_to_filename_complete_word_point): New
9873 declaration.
9874
7d8062de
PA
98752019-06-13 Pedro Alves <palves@redhat.com>
9876
9877 * compile/compile.c: Include "cli/cli-option.h".
9878 (compile_print_value): Scope data pointer is now a
9879 value_print_options pointer; adjust.
9880 (compile_print_command): Process options. Scope data pointer is
9881 now a value_print_options pointer; adjust.
9882 (_initialize_compile): Update "compile print"'s help to include
9883 supported options. Install a completer for "compile print".
9884 * cp-valprint.c (show_vtblprint, show_objectprint)
9885 (show_static_field_print): Delete.
9886 (_initialize_cp_valprint): Don't install "set print
9887 static-members", "set print vtbl", "set print object" here.
9888 * printcmd.c: Include "cli/cli-option.h" and
9889 "common/gdb_optional.h".
9890 (print_command_parse_format): Rework to fill in a
9891 value_print_options instead of a format_data.
9892 (print_value): Change parameter type from format_data pointer to
9893 value_print_options reference. Adjust.
9894 (print_command_1): Process options. Adjust to pass down a
9895 value_print_options.
9896 (print_command_completer): New.
9897 (_initialize_printcmd): Install print_command_completer as
9898 handle_brkchars completer for the "print" command. Update
9899 "print"'s help to include supported options.
9900 * valprint.c: Include "cli/cli-option.h".
9901 (show_vtblprint, show_objectprint, show_static_field_print): Moved
9902 here from cp-valprint.c.
9903 (boolean_option_def, uinteger_option_def)
9904 (value_print_option_defs, make_value_print_options_def_group):
9905 New. Use gdb::option::add_setshow_cmds_for_options to install
9906 "set print elements", "set print null-stop", "set print repeats",
9907 "set print pretty", "set print union", "set print array", "set
9908 print address", "set print symbol", "set print array-indexes".
9909 * valprint.h: Include <string> and "cli/cli-option.h".
9910 (make_value_print_options_def_group): Declare.
9911 (print_value): Change parameter type from format_data pointer to
9912 value_print_options reference.
9913 (print_command_completer): Declare.
9914
9d0faba9
PA
99152019-06-13 Pedro Alves <palves@redhat.com>
9916
9917 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
9918 (COMMON_SFILES): Add maint-test-settings.c.
9919 * cli/cli-decode.c (boolean_enums): New global, factored out from
9920 ...
9921 (add_setshow_boolean_cmd): ... here.
9922 * cli/cli-decode.h (boolean_enums): Declare.
9923 * cli/cli-option.c: New file.
9924 * cli/cli-option.h: New file.
9925 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
9926 factored out from ...
9927 (parse_cli_boolean_value(const char *)): ... this.
9928 (is_unlimited_literal): Change parameter type to pointer to
9929 pointer. Adjust and advance ARG pointer.
9930 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
9931 (parse_cli_var_enum): New, factored out from ...
9932 (do_set_command): ... this. Adjust.
9933 * cli/cli-setshow.h (parse_cli_boolean_value)
9934 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
9935 (parse_cli_var_enum): Declare.
9936 * cli/cli-utils.c: Include "cli/cli-option.h".
9937 (get_ulongest): New.
9938 * cli/cli-utils.h (get_ulongest): Declare.
9939 (check_for_argument): New overloads.
9940 * maint-test-options.c: New file.
9941
2c722807
PA
99422019-06-13 Pedro Alves <palves@redhat.com>
9943
9944 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
9945 parse a range if "-" is at the end of the string.
9946
dee7b4c8
PA
99472019-06-13 Pedro Alves <palves@redhat.com>
9948
9949 * cli/cli-setshow.c (parse_auto_binary_operation)
9950 (parse_cli_boolean_value): Don't allow "o".
9951
dca0f6c0
PA
99522019-06-13 Pedro Alves <palves@redhat.com>
9953
9954 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
9955 * NEWS: Mention maint test-settings KIND.
9956 * maint-test-settings.c: New file.
9957
597bf39d
PA
99582019-06-13 Pedro Alves <palves@redhat.com>
9959
9960 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
9961 completer.
9962 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
9963 "set" completers.
9964
48c410fb
PA
99652019-06-13 Pedro Alves <palves@redhat.com>
9966
9967 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
9968 after item.
9969
93bcb043
PA
99702019-06-13 Pedro Alves <palves@redhat.com>
9971
9972 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
9973
cbba3ecd
PA
99742019-06-13 Pedro Alves <palves@redhat.com>
9975
9976 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
9977 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
9978 call.
9979 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
9980 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
9981 calls.
9982 (check_for_argument): Skip spaces after argument.
9983
b9a3f842
PA
99842019-06-13 Pedro Alves <palves@redhat.com>
9985
9986 * thread.c (thread_apply_command): Adjust TID parsing.
9987 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
9988 detected before end of string.
9989 (tid_is_in_list): Error out if LIST is invalid.
9990
3844e605
PA
99912019-06-13 Pedro Alves <palves@redhat.com>
9992
9993 * completer.c (complete_line_internal_1): Rewind completion word
9994 point.
9995 (completion_tracker::advance_custom_word_point_by): Change
9996 parameter type to int.
9997 * completer.h (completion_tracker::advance_custom_word_point_by):
9998 Likewise.
9999
00b56dbe
PA
100002019-06-13 Pedro Alves <palves@redhat.com>
10001
10002 * completer.c (advance_to_completion_word): Handle delimiters.
10003
d106773e
PA
100042019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
10005
10006 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
10007
08f10e02
TT
100082019-06-11 Tom Tromey <tom@tromey.com>
10009
10010 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
10011 (xmalloc_failed): Move to alloc.c.
10012 * alloc.c: New file.
10013 * Makefile.in (COMMON_SFILES): Add alloc.c.
10014
1c7fe951
TT
100152019-06-11 Tom Tromey <tom@tromey.com>
10016
10017 * nat/linux-waitpid.c: Don't include server.h.
10018 (linux_debug): Remove.
10019 (my_waitpid): Update.
10020
89549d7f
TT
100212019-06-11 Tom Tromey <tromey@adacore.com>
10022
10023 * infcall.c (_initialize_infcall): Remove trailing newline from
10024 help.
10025 * user-regs.c (_initialize_user_regs): Remove trailing newline
10026 from help.
10027 * typeprint.c (_initialize_typeprint): Remove trailing newline
10028 from help.
10029 * reverse.c (_initialize_reverse): Remove trailing newlines from
10030 help.
10031 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
10032 from help.
10033 * language.c (add_set_language_command): Remove trailing newline
10034 from help.
10035 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
10036 help.
10037 * disasm.c (_initialize_disasm): Remove trailing newline from
10038 help.
10039 * top.c (init_main): Remove trailing newline from help.
10040 * interps.c (_initialize_interpreter): Remove trailing newline
10041 from help.
10042 * btrace.c (_initialize_btrace): Remove trailing newlines from
10043 help.
10044 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
10045 from help.
10046 * python/python.c (_initialize_python): Remove trailing newline
10047 from help.
10048 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
10049 help.
10050 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
10051 from help. Reformat some text.
10052 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
10053 from help.
10054 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
10055 newline from help.
10056
86108c13
TT
100572019-06-11 Tom Tromey <tromey@adacore.com>
10058
10059 * darwin-nat.c (darwin_decode_exception_message)
10060 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
10061
a7067863
AB
100622019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
10063
10064 * valops.c (value_slice): Check for not allocated or not
10065 associated values.
10066
9ab08412
TV
100672019-06-10 Tom de Vries <tdevries@suse.de>
10068
10069 PR gdb/24618
10070 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
10071 sure an empty slot (defined by a 32-bit zero pair) is recognized as
10072 invalid.
10073
f19e22e9
TV
100742019-06-10 Tom de Vries <tdevries@suse.de>
10075
10076 PR gdb/24611
10077 * linespec.c (linespec_lexer_lex_string): Remove incorrect
10078 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
10079
e99f9db0
TV
100802019-06-10 Tom de Vries <tdevries@suse.de>
10081
10082 PR symtab/24545
10083 * symtab.c (struct demangled_name_entry): Add language field.
10084 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
10085 static minimal symbol". Set and use language field.
10086
9bf7038b
TT
100872019-06-10 Tom Tromey <tromey@adacore.com>
10088
10089 * ada-lang.c (_initialize_ada_language): Update help text.
10090
422186a9
TT
100912019-06-10 Tom Tromey <tromey@adacore.com>
10092
10093 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
10094 with a newline.
10095 * guile/guile.c (handle_boot_error): Don't end warning with a
10096 newline.
10097 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
10098 warning with a newline.
10099 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
10100 newline.
10101 (s12z_frame_cache): Likewise.
10102 * dwarf-index-cache.c (index_cache::store): Don't end warning with
10103 a newline.
10104 * solib-svr4.c (disable_probes_interface): Don't end warning with
10105 a newline.
10106 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
10107 newline.
10108 * python/python.c (do_finish_initialization): Don't end warning
10109 with a newline.
10110
25ce02ee
TT
101112019-06-10 Tom Tromey <tom@tromey.com>
10112
10113 * python/py-breakpoint.c (gdbpy_breakpoint_created)
10114 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
10115 gdbpy_enter.
10116
caa429d8
TT
101172019-06-10 Tom Tromey <tromey@adacore.com>
10118
10119 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
10120 data.
10121 (elf_new_init): Don't call stabsread_new_init.
10122 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
10123 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
10124 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
10125
81873cc8
TV
101262019-06-10 Tom de Vries <tdevries@suse.de>
10127
10128 PR symtab/16264
10129 PR symtab/24517
10130 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
10131
4fa0265e
РИ
101322019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
10133
10134 * source.c (find_and_open_source): Also rewrite relative file
10135 names.
10136
1a3da2cd
AB
101372019-04-26 Amos Bird <amosbird@gmail.com>
10138
10139 * annotate.c (annotate_thread_exited): Add "thread-exited"
10140 annotation.
10141
3847a7bf
TT
101422019-06-06 Tom Tromey <tromey@adacore.com>
10143
10144 * maint.h (class scoped_command_stats): Use
10145 DISABLE_COPY_AND_ASSIGN.
10146 <print_time>: New method.
10147 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
10148 print_time.
10149 (scoped_command_stats::print_time): New method.
10150
312617a3
AB
101512019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
10152
10153 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
10154 instructions of lengths 6 or 8 bytes.
10155
b02f78f9
PA
101562019-06-04 Pedro Alves <palves@redhat.com>
10157
10158 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
10159
10160 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
10161 * breakpoint.c (condition_completer): Likewise.
10162 * cli/cli-dump.c (scan_expression): Likewise.
10163 * common/filestuff.c (mkdir_recursive): Likewise.
10164 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
10165 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
10166 (gdb_abspath): Likewise.
10167 * compile/compile-cplus-types.c
10168 (compile_cplus_instance::decl_name): Likewise.
10169 * completer.c (complete_explicit_location):
10170 (signal_completer, reg_or_group_completer_1): Likewise.
10171 * cp-support.c (cp_remove_params_if_any): Likewise.
10172 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
10173 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
10174 * infcmd.c (strip_bg_char): Likewise.
10175 * linespec.c (copy_token_string): Likewise.
10176 * mi/mi-main.c (output_cores): Likewise.
10177 * psymtab.c (psymtab_search_name):
10178 * symfile.c (test_set_ext_lang_command): Likewise.
10179 * target.c (target_fileio_read_stralloc): Likewise.
10180 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
10181 * value.c (complete_internalvar): Likewise.
10182
e1f2e1a2
CB
101832019-06-04 Christian Biesinger <cbiesinger@google.com>
10184
10185 Add objfile property to gdb.Type.
d3238f7d
PA
10186 * NEWS: Mention Python API addition.
10187 * python/py-type.c (typy_get_objfile): New method.
e1f2e1a2 10188
e664d728
PW
101892019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10190
10191 * NEWS: Mention the new set|show style [title|highlight].
10192 Mention changes to "show style", "help" and "apropos".
10193
66d8c862
PW
101942019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10195
10196 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
10197 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
10198 instead of print_help_for_command.
10199 (print_doc_of_command): New function.
10200 (help_list): Add 'apropos -v word' suggestion.
10201 (print_help_for_command): Style the command name using title style.
10202 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
10203 (_initialize_cli_cmds): Describe -v in apropos_command help.
10204
9303eb2f
PW
102052019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10206
10207 * cli/cli-style.h (cli_style_option): Add name in constructor,
10208 add m_name class member, add constructor with intensity,
10209 add name class function.
10210 (cli_style_option::add_setshow_commands): Remove name argument.
10211 (highlight_style, title_style): New styles.
10212 * cli/cli-style.c (do_show): New function that shows a style
10213 characteristic styling the style name with itself.
10214 (set_style_name): New function.
10215 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
10216 Update all callers according to the changes in cli/cli-style.h.
10217 * utils.h (fputs_highlighted): New function.
10218 * utils.c (fputs_highlighted): Likewise.
10219
e2c52041
PW
102202019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10221
10222 * NEWS: Mention new pipe command and new convenience variables.
10223
947d3946
PW
102242019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10225
10226 * cli/cli-cmds.c (pipe_command): New function.
10227 (_initialize_cli_cmds): Call add_com for pipe_command.
10228 Define | as an alias for pipe.
10229 (exit_status_set_internal_vars): New function.
10230 (shell_escape): Call exit_status_set_internal_vars.
10231 cli/cli-decode.c (find_command_name_length): Recognize | as
10232 a single character command.
10233
b8fd0918
PW
102342019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10235
10236 * gdbcmd.h (execute_command_to_ui_file): New declaration.
10237 top.c (execute_command_to_ui_file): New function, mostly a copy
10238 of execute_command_to_string.
10239 (execute_command_to_string): Implement by calling
10240 execute_command_to_ui_file.
10241
68bb5386
PW
102422019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10243
10244 * top.h (saved_command_line): Remove declaration.
10245 * top.c (previous_saved_command_line, previous_repeat_arguments):
10246 New variables.
10247 (saved_command_line): Make static, define together with other
10248 'repeat variables'.
10249 (dont_repeat): Clear repeat_arguments.
10250 (repeat_previous, get_saved_command_line, save_command_line):
10251 New functions.
10252 (gdb_init): Initialize saved_command_line
10253 and previous_saved_command_line.
10254 * main.c (captured_main_1): Remove saved_command_line initialization.
10255 * event-top.c (handle_line_of_input): Update to use
10256 the new 'repeat' related functions instead of direct access to
10257 saved_command_line.
10258 * command.h (repeat_previous, get_saved_command_line,
10259 save_command_line): New declarations.
10260 (dont_repeat): Add comment.
10261
bfcdb852
TT
102622019-05-30 Tom Tromey <tromey@adacore.com>
10263
10264 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
10265 Fix comment.
10266 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
10267
0ef209f2
JV
102682019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
10269
10270 PR cli/24587
10271 * completer.c (complete): Initialize variable word.
10272
955b06fa
SDJ
102732019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
10274
10275 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
10276 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
10277 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
10278 'body' is NULL to the outter 'if', protecting the '!is_define'
10279 situation as well.
10280
fa9c3fa0
TT
102812019-05-29 Tom Tromey <tromey@adacore.com>
10282
10283 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
10284 (dwarf_unknown): New function.
10285 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
10286 (dwarf_type_encoding_name): Use dwarf_unknown.
10287
4330d61d
TT
102882019-05-29 Tom Tromey <tromey@adacore.com>
10289
10290 PR c++/20020:
10291 * cp-valprint.c (cp_print_value_fields): Call
10292 cp_print_static_field inside "try".
10293
33a6bc35
TT
102942019-05-29 Tom Tromey <tromey@adacore.com>
10295
10296 * inflow.c (struct terminal_info): Add default operator=.
10297 * configure: Rebuild.
10298 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
10299 -Wdeprecated-copy-dtor, -Wredundant-move.
10300
000439d5
TT
103012019-05-29 Tom Tromey <tromey@adacore.com>
10302
10303 * NEWS: Add entry.
10304 * infcmd.c (print_return_value_1): Handle finish_print
10305 option.
10306 (show_print_finish): New function.
10307 (_initialize_infcmd): Add "set/show print finish" commands.
10308 * valprint.c (user_print_options): Initialize new member.
10309 * valprint.h (struct value_print_options) <finish_print>: New
10310 member.
10311
c0e70c62
TT
103122019-05-28 Tom Tromey <tromey@adacore.com>
10313
10314 * ada-lang.c (ada_remove_Xbn_suffix)
10315 (find_old_style_renaming_symbol)
10316 (parse_old_style_renaming): Remove.
10317 (ada_find_renaming_symbol): Don't call
10318 find_old_style_renaming_symbol.
10319 (ada_is_renaming_symbol): Rename from
10320 ada_find_renaming_symbol. Remove "block" parameter. Return
10321 bool. Now static.
10322 (ada_read_var_value): Update and simplify.
10323 * ada-exp.y (write_var_or_type): Remove old code.
10324
766f8836
AH
103252019-05-28 Alan Hayward <alan.hayward@arm.com>
10326
68255adc 10327 PR gdb/25010
766f8836
AH
10328 * event-top.c: Remove include comment.
10329 * inflow.c (class scoped_ignore_sigttou): Move from here...
10330 * inflow.h (class scoped_ignore_sigttou): ...to here.
10331 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
10332 * top.c: Remove include comment.
10333
eb41253a
TT
103342019-05-27 Tom Tromey <tom@tromey.com>
10335
10336 * NEWS: Fix typo.
10337
4ca51187
TT
103382019-05-22 Tom Tromey <tromey@adacore.com>
10339
10340 * target.c (target_follow_exec): Constify parameter.
10341 * target-delegates.c: Rebuild.
10342 * remote.c (remote_target::follow_exec): Constify parameter.
10343 * infrun.c (follow_exec): Constify parameter.
10344 * target.h (struct target_ops) <follow_exec>: Constify parameter.
10345 (target_follow_exec): Likewise.
10346
8fca4da0
AH
103472019-05-22 Alan Hayward <alan.hayward@arm.com>
10348
10349 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
10350 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
10351
b7060614
AH
103522019-05-22 Alan Hayward <alan.hayward@arm.com>
10353
10354 * NEWS: Add debugredirect and testsuite sections.
10355
0a5954bd
SC
103562019-05-22 Simon Cook <simon.cook@embecosm.com>
10357
10358 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
10359 target descriptions using exclusively floating point register name
10360 aliases.
10361
dc42e902
AB
103622019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
10363
10364 PR gdb/18644:
10365 * f-lang.c (build_fortran_types): Handle the case where
10366 gdbarch_floatformat_for_type returns a nullptr.
10367
fb7806c7
TV
103682019-05-21 Tom de Vries <tdevries@suse.de>
10369
10370 PR cli/24587
10371 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
10372
34d11c68
AB
103732019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
10374
10375 PR gdb/18644:
10376 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
10377 16-byte floats.
10378 * i386-tdep.c (i386_floatformat_for_type): Use
10379 floatformats_ia64_quad for the 16-byte floating point component
10380 within a fortran 32-byte complex number.
10381
122cf0f2
AB
103822019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
10383
10384 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
10385 delete default constructor.
10386 (find_partial_die): Update to return const struct.
10387 (partial_die_parent_scope): Move variable declaration into scope
10388 of its use and change its type to auto.
10389 (guess_partial_die_structure_name): Likewise.
10390 (partial_die_info::fixup): Likewise.
10391
33d0e35a
TT
103922019-05-17 Tom Tromey <tromey@adacore.com>
10393
10394 * source.c (find_and_open_source): Remove cast.
10395
a45575b0
TT
103962019-05-17 Tom Tromey <tromey@adacore.com>
10397
10398 * annotate.c (annotate_source): Make "filename" const.
10399 * annotate.h (annotate_source): Use const.
10400
81f47ac2
AH
104012019-05-17 Alan Hayward <alan.hayward@arm.com>
10402
10403 * disasm.c (set_disassembler_options): Send errors to stderr.
10404
ca1285d1
AH
104052019-05-17 Alan Hayward <alan.hayward@arm.com>
10406
10407 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
10408 (cli_interp_base::set_logging): Check debug_redirect.
10409 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
10410 * cli/cli-logging.c (debug_redirect): Add static variable.
10411 (pop_output_files): Add default param.
10412 (handle_redirections): Print debug setting.
10413 (show_logging_command): Likewise.
10414 (_initialize_cli_logging): Add debugredirect command.
10415 * interps.c (current_interp_set_logging): Add debug_redirect
10416 parameter.
10417 * interps.h (set_logging): Add debug_redirect parameter.
10418 (current_interp_set_logging): Likewise.
10419 * mi/mi-common.h: Likewise.
10420 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
10421
104222019-05-17 Alan Hayward <alan.hayward@arm.com>
f3a09c80
AH
10423 Tom Tromey <tromey@adacore.com>
10424
10425 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
10426 directly.
10427 * cli/cli-interp.h (make_logging_output): Remove declaration.
10428 * cli/cli-logging.c (make_logging_output): Remove function.
10429 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
10430 directly.
10431 * ui-file.c (tee_file::tee_file): Remove bools.
10432 (tee_file::~tee_file): Remove deletes.
10433 * ui-file.h (tee_file): Remove bools.
10434
26648588
JV
104352019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
10436
10437 * mi/mi-cmds.h (mi_cmd_complete): New function.
10438 * mi/mi-main.c (mi_cmd_complete): Likewise.
10439 * mi/mi-cmds.c: Define new MI command -complete.
10440 * NEWS: Mention new -complete command.
10441
6e035501
JV
104422019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
10443
10444 * completer.h (complete): New function.
10445 * completer.c (complete): Likewise.
10446 * cli/cli-cmds.c: (complete_command): Update to use new complete()
10447 function defined in completer.h.
10448
7d0e2ece
JV
104492019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
10450
e79be6e5 10451 * MAINTAINERS (Write After Approval): Add myself.
7d0e2ece 10452
fb816e8b
TV
104532019-05-17 Tom de Vries <tdevries@suse.de>
10454
10455 PR gdb/24094
10456 * dwarf2read.c (struct cu_partial_die_info): New struct.
10457 (find_partial_die): Return cu_partial_die_info.
10458 (partial_die_parent_scope, guess_partial_die_structure_name)
10459 (partial_die_info::fixup): Handle new return type of find_partial_die.
10460
677052f2
SDJ
104612019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
10462
a1726c38 10463 PR breakpoints/24541
677052f2
SDJ
10464 * stap-probe.c (stap_parse_register_operand): Make "regname" an
10465 "std::string", simplifying the algorithm.
10466
f3da9116
SDJ
104672019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
10468
10469 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
10470 (stap_static_probe_ops::get_probes): Likewise.
10471
f1bb75ab
SDJ
104722019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
10473
10474 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
10475 '-')" and "else if".
10476 (stap_parse_single_operand): Join checks for
10477 "gdbarch_stap_parse_special_token_p" and
10478 "gdbarch_stap_parse_special_token" in the same "if" statement.
10479 Invert check when verifying for operation on register
10480 displacement.
10481
3ca58cde
SDJ
104822019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
10483
10484 * stap-probe.c (stap_get_opcode): Update comment.
10485 (stap_get_expected_argument_type): Likewise.
10486 (handle_stap_probe): Likewise.
10487
af2d9bee
SDJ
104882019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
10489
10490 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
10491 return type to 'bool'. Adjust comment. Use 'bool' when
10492 appropriate.
10493 (i386_stap_parse_special_token_three_arg_disp): Likewise.
10494 * stap-probe.c (stap_parse_argument_1): Likewise.
10495 (stap_is_operator): Likewise.
10496 (stap_is_generic_prefix): Likewise.
10497 (stap_is_register_prefix): Likewise.
10498 (stap_is_register_indirection_prefix): Likewise.
10499 (stap_is_integer_prefix): Likewise.
10500 (stap_generic_check_suffix): Likewise.
10501 (stap_check_integer_suffix): Likewise.
10502 (stap_check_register_suffix): Likewise.
10503 (stap_check_register_indirection_suffix): Likewise.
10504 (stap_parse_register_operand): Likewise.
10505 (stap_parse_single_operand): Likewise.
10506 (stap_parse_argument_1): Likewise.
10507 (stap_probe::get_argument_count): Likewise.
10508 (stap_is_operator): Likewise.
10509
61c9c421
TT
105102019-05-16 Tom Tromey <tromey@adacore.com>
10511
10512 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
10513 keyword to foreach.
10514
9ddc1af1
SM
105152019-05-15 Simon Marchi <simon.marchi@efficios.com>
10516
10517 * linux-thread-db.c (try_thread_db_load_1): Change return type
10518 to bool.
10519 (try_thread_db_load): Likewise.
10520 (try_thread_db_load_from_pdir_1): Likewise.
10521 (try_thread_db_load_from_pdir): Likewise.
10522 (try_thread_db_load_from_sdir): Likewise.
10523 (try_thread_db_load_from_dir): Likewise.
10524 (thread_db_load_search): Likewise.
10525 (has_libpthread): Likewise.
10526 (thread_db_load): Likewise.
10527
7bede828
SDJ
105282019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
10529
10530 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
10531 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
10532 NULL, and complain/return if that's the case.
10533
c5358db4
JD
105342019-05-15 John Darrington <john@darrington.wattle.id.au>
10535
10536 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
10537 (advance, posn, abstract_read_memory): New functions.
10538 [struct mem_read_abstraction]: New struct.
10539 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
10540
c408a94f
TT
105412019-05-14 Tom Tromey <tromey@adacore.com>
10542
10543 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
10544 value is not lval_memory.
10545
e7bd7fba
TT
105462019-05-14 Tom Tromey <tromey@adacore.com>
10547
10548 * solib.c (info_sharedlibrary_command): Style the file name.
10549
a6d0f249
AH
105502019-05-14 Alan Hayward <alan.hayward@arm.com>
10551
10552 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
10553 (aarch64_vnv_type): Likewise.
10554 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
10555 * common/tdesc.c: Likewise.
10556 * common/tdesc.h (enum tdesc_type_kind): Likewise.
10557 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
10558 * features/aarch64-fpu.xml: Add ieee half view.
10559 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
10560 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
10561 * gdbtypes.h (struct builtin_type): Likewise.
10562 (struct objfile_type): Likewise.
10563
66b8bb74
SM
105642019-05-12 Paul Naert <paul.naert@polymtl.ca>
10565
10566 * language.c (language_sniff_from_mangled_name): Fix "langauge"
10567 typo.
10568 * location.h (string_to_event_location): Likewise.
10569
21c219fd
JB
105702019-05-11 Joel Brobecker <brobecker@adacore.com>
10571
10572 GDB 8.3 released.
10573
13674803
SM
105742019-05-10 Simon Marchi <simon.marchi@efficios.com>
10575
10576 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
10577 New variable declaration.
10578 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
10579 New variable.
10580 (print_one_breakpoint): Use ui_out::test_flags and new global
10581 variable to compute use_fixed_output.
10582 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
10583 Remove.
10584 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
10585 (mi_multi_location_breakpoint_output_fixed): Remove.
10586 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
10587 new variable.
10588 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
10589 fix_multi_location_breakpoint_output flag if version >= 3.
10590 * ui-out.h (enum ui_out_flag)
10591 <fix_multi_location_breakpoint_output>: New enumerator.
10592
a9eac7f9
SM
105932019-05-10 Simon Marchi <simon.marchi@efficios.com>
10594
10595 * contrib/cc-with-tweaks.sh: Validate dwz's work.
10596
71bed2db
TT
105972019-05-10 Tom Tromey <tromey@adacore.com>
10598
10599 * ada-lang.c (catch_ada_completer): New function.
10600 (_initialize_ada_language): Use it.
10601
24c54127
TT
106022019-05-10 Tom Tromey <tromey@adacore.com>
10603
10604 * thread.c (print_thread_info): Make "requested_threads" const.
10605 * gdbthread.h (print_thread_info): Make "requested_threads"
10606 const.
10607 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
10608 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
10609
7a102139
TT
106102019-05-08 Tom Tromey <tom@tromey.com>
10611
10612 * gdbtypes.c (objfile_type_data): Change type.
10613 (objfile_type, _initialize_gdbtypes): Update.
10614
924d79e2
TT
106152019-05-08 Tom Tromey <tom@tromey.com>
10616
10617 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
10618 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
10619 (_initialize_dwarf2_frame): Update.
10620
4c58e337
TT
106212019-05-08 Tom Tromey <tom@tromey.com>
10622
10623 * objc-lang.c (objc_objfile_data): Change type.
10624 (find_methods): Update.
10625 (_initialize_objc_lang): Remove.
10626
d772d2ab
TT
106272019-05-08 Tom Tromey <tom@tromey.com>
10628
10629 * stabsread.c (rs6000_builtin_type_data): Change type.
10630 (rs6000_builtin_type, _initialize_stabsread): Update.
10631
d11d83f4
TT
106322019-05-08 Tom Tromey <tom@tromey.com>
10633
10634 * mips-tdep.c (mips_pdr_data): Remove.
10635 (_initialize_mips_tdep): Update.
10636
9a73f0ad
TT
106372019-05-08 Tom Tromey <tom@tromey.com>
10638
10639 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
10640 (hppa_init_objfile_priv_data, read_unwind_info)
10641 (find_unwind_entry, _initialize_hppa_tdep): Update.
10642
8127a2fa
TT
106432019-05-08 Tom Tromey <tom@tromey.com>
10644
10645 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
10646 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
10647 on obstack.
10648 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
10649
91d3055d
TT
106502019-05-08 Tom Tromey <tom@tromey.com>
10651
10652 * mdebugread.c (basic_type_data): Change type.
10653 (basic_type, _initialize_mdebugread): Update.
10654
31930bd3
TT
106552019-05-08 Tom Tromey <tom@tromey.com>
10656
10657 * common/gdb_unique_ptr.h (struct noop_deleter): New.
10658
bdb3ed9e
TT
106592019-05-08 Tom Tromey <tom@tromey.com>
10660
10661 * nto-tdep.c (nto_inferior_data_reg): Change type.
10662 (nto_inferior_data): Update.
10663 (nto_inferior_data_cleanup, nto_new_inferior_data)
10664 (_initialize_nto_tdep): Remove.
10665 * nto-tdep.h (struct nto_inferior_data): Add initializers.
10666
f37b313d
TT
106672019-05-08 Tom Tromey <tom@tromey.com>
10668
10669 * ada-lang.c (struct ada_inferior_data): Add initializers.
10670 (ada_inferior_data): Change type.
10671 (ada_inferior_data_cleanup): Remove.
10672 (get_ada_inferior_data, ada_inferior_exit)
10673 (struct ada_pspace_data): Add initializers, destructor.
10674 (ada_pspace_data_handle): Change type.
10675 (get_ada_pspace_data): Update.
10676 (ada_pspace_data_cleanup): Remove.
10677
24699405
TT
106782019-05-08 Tom Tromey <tom@tromey.com>
10679
10680 * coffread.c (struct coff_symfile_info): Add initializers.
10681 (coff_objfile_data_key): Move lower. Change type.
10682 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
10683 Update.
10684 (coff_free_info): Remove.
10685
d4e05d2f
TT
106862019-05-08 Tom Tromey <tom@tromey.com>
10687
10688 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
10689 (fbsd_pspace_data_handle): Move lower. Change type.
10690 (get_fbsd_pspace_data): Update.
10691 (fbsd_pspace_data_cleanup): Remove.
10692 (_initialize_fbsd_tdep): Update.
10693
14ef6690
TT
106942019-05-08 Tom Tromey <tom@tromey.com>
10695
10696 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
10697 (get_ada_tasks_pspace_data): Update.
10698 (ada_tasks_pspace_data_cleanup): Remove.
10699 (_initialize_tasks): Update.
10700 (ada_tasks_inferior_data_handle): Change type.
10701 (get_ada_tasks_inferior_data): Update.
10702 (ada_tasks_inferior_data_cleanup): Remove.
10703 (struct ada_tasks_pspace_data): Add initializers.
10704
814cf43a
TT
107052019-05-08 Tom Tromey <tom@tromey.com>
10706
10707 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
10708 * symfile-debug.c (debug_sym_get_probes): Change type.
10709 * stap-probe.c (handle_stap_probe):
10710 (stap_static_probe_ops::get_probes): Change type.
10711 * probe.h (class static_probe_ops) <get_probes>: Change type.
10712 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
10713 (parse_probes_in_pspace): Update.
10714 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
10715 Update.
10716 (any_static_probe_ops::get_probes): Change type.
10717 * elfread.c (elfread_data): New typedef.
10718 (probe_key): Change type.
10719 (elf_get_probes): Likewise. Update.
10720 (probe_key_free): Remove.
10721 (_initialize_elfread): Update.
10722 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
10723 Change type.
10724 (dtrace_process_dof_probe, dtrace_process_dof)
10725 (dtrace_static_probe_ops::get_probe): Change type.
10726
02dc647e
TT
107272019-05-08 Tom Tromey <tom@tromey.com>
10728
10729 * xcoffread.c (struct xcoff_symfile_info): Rename from
10730 coff_symfile_info. Add initializers.
10731 (xcoff_objfile_data_key): Move lower. Change type.
10732 (XCOFF_DATA): Rewrite.
10733 (xcoff_free_info): Remove.
10734 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
10735 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
10736 (xcoff_initial_scan): Update.
10737
09232438
TT
107382019-05-08 Tom Tromey <tom@tromey.com>
10739
10740 * solib-svr4.c (struct svr4_info): Add initializers and
10741 destructor.
10742 <probes_table>: Now an htab_up.
10743 (solib_svr4_pspace_data): Change type.
10744 (free_probes_table): Simplify.
10745 (~svr4_info): Rename from svr4_pspace_data_cleanup.
10746 (get_svr4_info, probes_table_htab_remove_objfile_probes)
10747 (probes_table_remove_objfile_probes, register_solib_event_probe)
10748 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
10749 (_initialize_svr4_solib): Update.
10750
7b4a314f
TT
107512019-05-08 Tom Tromey <tom@tromey.com>
10752
10753 * remote.c (remote_pspace_data): Change type.
10754 (remote_pspace_data_cleanup): Remove.
10755 (get_remote_exec_file, set_pspace_remote_exec_file)
10756 (_initialize_remote): Update.
10757
51d3063a
TT
107582019-05-08 Tom Tromey <tom@tromey.com>
10759
10760 * breakpoint.c (breakpoint_objfile_key): Change type.
10761 (get_breakpoint_objfile_data): Update.
10762 (free_breakpoint_objfile_data): Remove.
10763 (_initialize_breakpoint): Update.
10764
89fb8848
TT
107652019-05-08 Tom Tromey <tom@tromey.com>
10766
10767 * linux-tdep.c (struct linux_info): Add initializers.
10768 (linux_inferior_data): Move. Change type.
10769 (invalidate_linux_cache_inf): Update.
10770 (linux_inferior_data_cleanup): Remove.
10771 (get_linux_inferior_data, _initialize_linux_tdep): Update.
10772
e9b89e2d
TT
107732019-05-08 Tom Tromey <tom@tromey.com>
10774
10775 * auxv.c (auxv_inferior_data): Move. Change type.
10776 (auxv_inferior_data_cleanup): Remove.
10777 (invalidate_auxv_cache_inf): Rewrite.
10778 (get_auxv_inferior_data, _initialize_auxv): Update.
10779
8c42777c
TT
107802019-05-08 Tom Tromey <tom@tromey.com>
10781
10782 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
10783 (symfile_debug_objfile_data_key): Change type.
10784 (symfile_debug_installed, debug_qf_has_symbols)
10785 (debug_qf_find_last_source_symtab)
10786 (debug_qf_forget_cached_source_info)
10787 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
10788 (debug_qf_print_stats, debug_qf_dump)
10789 (debug_qf_expand_symtabs_for_function)
10790 (debug_qf_expand_all_symtabs)
10791 (debug_qf_expand_symtabs_with_fullname)
10792 (debug_qf_map_matching_symbols)
10793 (debug_qf_expand_symtabs_matching)
10794 (debug_qf_find_pc_sect_compunit_symtab)
10795 (debug_qf_map_symbol_filenames)
10796 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
10797 (debug_sym_new_init, debug_sym_init, debug_sym_read)
10798 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
10799 (debug_sym_read_linetable, debug_sym_relocate): Update.
10800 (symfile_debug_free_objfile): Remove.
10801 (install_symfile_debug_logging, _initialize_symfile_debug):
10802 Update.
10803
5bfd760d
TT
108042019-05-08 Tom Tromey <tom@tromey.com>
10805
10806 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
10807 allocate_on_obstack.
10808 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
10809 (get_dwarf2_per_objfile): Update.
10810 (set_dwarf2_per_objfile): Remove.
10811 (dwarf2_has_info, dwarf2_get_section_info): Update.
10812 (dwarf2_free_objfile): Remove.
10813 (_initialize_dwarf2_read): Update.
10814
e85e19b4
TT
108152019-05-08 Tom Tromey <tom@tromey.com>
10816
10817 * auto-load.c (struct auto_load_pspace_info): Add destructor and
10818 initializers.
10819 <unsupported_script_warning_printed,
10820 script_not_found_warning_printed>: Now bool.
10821 (auto_load_pspace_data): Change type.
10822 (~auto_load_pspace_info): Rename from
10823 auto_load_pspace_data_cleanup.
10824 (get_auto_load_pspace_data, init_loaded_scripts_info)
10825 (clear_section_scripts, maybe_print_unsupported_script_warning)
10826 (maybe_print_script_not_found_warning, _initialize_auto_load):
10827 Update.
10828
f6aa7436
TT
108292019-05-08 Tom Tromey <tom@tromey.com>
10830
10831 * objfiles.c (objfile_pspace_info): Add destructor and
10832 initializers.
10833 (objfiles_pspace_data): Change type.
10834 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
10835 (get_objfile_pspace_data): Update.
10836 (objfiles_bfd_data): Change type.
10837 (get_objfile_bfd_data): Update.
10838 (objfile_bfd_data_free, _initialize_objfiles): Remove.
10839
6ae614f6
TT
108402019-05-08 Tom Tromey <tom@tromey.com>
10841
10842 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
10843 Change type.
10844 (get_catch_syscall_inferior_data): Update.
10845 (catch_syscall_inferior_data_cleanup): Remove.
10846 (_initialize_break_catch_syscall): Update.
10847
6509b8eb
TT
108482019-05-08 Tom Tromey <tom@tromey.com>
10849
10850 * inflow.c (struct terminal_info): Add destructor and
10851 initializers.
10852 (inflow_inferior_data): Change type.
10853 (~terminal_info): Rename from inflow_inferior_data_cleanup.
10854 (get_inflow_inferior_data, inflow_inferior_exit)
10855 (swap_terminal_info, _initialize_inflow): Update.
10856
35632941
TT
108572019-05-08 Tom Tromey <tom@tromey.com>
10858
10859 * target-dcache.c (target_dcache_cleanup): Remove.
10860 (target_dcache_aspace_key): Change type.
10861 (target_dcache_init_p, target_dcache_invalidate)
10862 (target_dcache_get, target_dcache_get_or_init)
10863 (_initialize_target_dcache): Update.
10864 * dcache.h (struct dcache_deleter): New.
10865
3017b94d
TT
108662019-05-08 Tom Tromey <tom@tromey.com>
10867
10868 * symtab.c (struct symbol_cache): Add destructor and
10869 initializers.
10870 (symbol_cache_key): Move. Change type.
10871 (make_symbol_cache, free_symbol_cache): Remove.
10872 (get_symbol_cache): Update.
10873 (symbol_cache_cleanup): Remove.
10874 (ALL_PSPACES, symbol_cache_flush)
10875 (maintenance_print_symbol_cache)
10876 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
10877 Update.
10878
a32ad8c5
TT
108792019-05-08 Tom Tromey <tom@tromey.com>
10880
10881 * symtab.c (struct main_info): Add destructor and initializers.
10882 (main_progspace_key): Move. Change type.
10883 (get_main_info): Update.
10884 (main_info_cleanup): Remove.
10885 (_initialize_symtab): Update.
10886
5f6e90a0
TT
108872019-05-08 Tom Tromey <tom@tromey.com>
10888
10889 * registry.h (DECLARE_REGISTRY): Define the _key class.
10890
1bd0c6e4
AB
108912019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
10892
10893 * NEWS: Merge two 'New commands' sections.
10894
2228ef77
XR
108952019-05-08 Joel Brobecker <brobecker@adacore.com>
10896
10897 * ada-valprint.c (ada_val_print_gnat_array): Remove language
10898 parameter and use Ada language definition instead.
10899 (ada_val_print_ptr): Remove unused language parameter.
10900 (ada_val_print_num): Remove language parameter and use Ada language
10901 definition instead.
10902 (ada_val_print_enum, ada_val_print_flt): Remove unused language
10903 parameter.
10904 (ada_val_print_struct_union, ada_val_print_ref): Remove language
10905 parameter and use Ada language definition instead.
10906 (ada_val_print_1): Update all ada_val_print_xxx calls.
10907 Remove language parameter.
10908 (ada_val_print): Update ada_val_print_1 call.
10909
60fcc1c3
TT
109102019-05-08 Tom Tromey <tromey@adacore.com>
10911
10912 * remote.c (remote_hw_watchpoint_limit)
10913 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
10914 Now static.
10915
ed2b7c17
TT
109162019-05-08 Tom Tromey <tromey@adacore.com>
10917
10918 * maint.c (_initialize_maint_cmds): Move initialization code to
10919 remote.c.
10920 (watchdog, show_watchdog): Move to remote.c.
10921 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
10922 "watchdog" static.
10923 (_initialize_remote): Move initialization code from maint.c.
10924 * defs.h (watchdog): Don't declare.
10925
b0be6c91
TT
109262019-05-08 Tom Tromey <tromey@adacore.com>
10927
10928 * tui/tui-interp.c: Include main.h.
10929 * interps.c: Include main.h.
10930 * main.h (interpreter_p): Declare.
10931 * defs.h (interpreter_p): Don't declare.
10932
587ee17b
TT
109332019-05-08 Tom Tromey <tromey@adacore.com>
10934
10935 * dwarf2loc.c: Include dwarf2read.h.
10936 * defs.h (read_unsigned_leb128): Don't declare.
10937 * dwarf2read.h (read_unsigned_leb128): Declare.
10938
ca1df239
TT
109392019-05-08 Tom Tromey <tromey@adacore.com>
10940
10941 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
10942 method.
10943
99f20f08
TT
109442019-05-08 Tom Tromey <tromey@adacore.com>
10945
10946 * utils.c (fputs_maybe_filtered): Reset style after paging, even
10947 when no wrap column is set.
10948
80e55b13
TT
109492019-05-08 Tom Tromey <tromey@adacore.com>
10950
10951 * c-lang.c (c_get_string): Handle non-C-style arrays.
10952
9d3421af
TT
109532019-05-08 Tom Tromey <tromey@adacore.com>
10954
10955 * typeprint.c (print_offset_data::update): Print the bit offset,
10956 not the number of bits remaining.
10957
844333e2
TT
109582019-05-08 Tom Tromey <tromey@adacore.com>
10959
10960 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
10961 padding at end of comment.
10962
988915ee
TT
109632019-05-08 Tom Tromey <tromey@adacore.com>
10964
10965 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
10966 Compare main types.
10967
26bfd823
TT
109682019-05-06 Tom Tromey <tom@tromey.com>
10969
10970 * common/scoped_mmap.c: Include common-defs.h.
10971 * common/scoped_mmap.h: Don't include config.h.
10972
89055eaa
TT
109732019-05-04 Tom Tromey <tom@tromey.com>
10974
10975 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
10976 (struct aarch64_call_info): Add initializers.
10977 <si>: Now a std::vector.
10978 (pass_on_stack, aarch64_push_dummy_call): Update.
10979
5da01df5
TT
109802019-05-04 Simon Marchi <simon.marchi@efficios.com>
10981 Tom Tromey <tom@tromey.com>
10982
10983 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
10984 (ppc_threads): Now a std::vector. Now static.
10985 (hwdebug_find_thread_points_by_tid)
10986 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
10987 Update.
10988
fbdf05a1
TT
109892019-05-04 Tom Tromey <tom@tromey.com>
10990
10991 * arc-tdep.c (arc_tdesc_init): Return bool.
10992
06d16ec9
TT
109932019-05-04 Tom Tromey <tom@tromey.com>
10994
10995 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
10996 Use gdb_assert_not_reached.
10997
9c056022
TT
109982019-05-04 Tom Tromey <tom@tromey.com>
10999
11000 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
11001 "false".
11002
fa9c2a59
TT
110032019-05-04 Tom Tromey <tom@tromey.com>
11004
11005 * arc-tdep.c (arc_tdesc_init): Use bool.
11006
e2eb806a
TT
110072019-05-04 Tom Tromey <tom@tromey.com>
11008
11009 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
11010
6fe87677
TT
110112019-05-04 Tom Tromey <tom@tromey.com>
11012
11013 * cli/cli-cmds.c (valid_command_p): Return bool.
11014
7f008c9e
TT
110152019-05-04 Tom Tromey <tom@tromey.com>
11016
11017 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
11018 * command.h (valid_user_defined_cmd_name_p): Channge return type.
11019
b6484282
RT
110202019-05-04 Raul Tambre <raul@tambre.ee>
11021
11022 * python/lib/gdb/prompt.py (_ExtendedPrompt)
11023 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
11024 operator for comparison.
11025
af97b416
TT
110262019-05-04 Tom Tromey <tom@tromey.com>
11027
11028 * psymtab.c (psymbol_name_matches, match_partial_symbol)
11029 (lookup_partial_symbol, print_partial_symbols)
11030 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
11031 (psymbol_compare): Update.
11032 (add_psymbol_to_bcache): Clear the entire psymbol.
11033 (maintenance_check_psymtabs): Update.
11034 * psympriv.h (struct partial_symbol): Don't derive from
11035 general_symbol_info.
11036 <obj_section, unrelocated_address, address,
11037 set_unrelocated_address>: Update.
11038 <ginfo>: New member.
11039 * dwarf-index-write.c (write_psymbols, debug_names::insert)
11040 (debug_names::write_psymbols): Update.
11041
9d6d4be8
TV
110422019-05-04 Tom de Vries <tdevries@suse.de>
11043
11044 * contrib/cc-with-tweaks.sh: Support -n arg.
11045
66452beb
PW
110462019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11047
11048 * corelow.c (core_target::detach): Ensure frame cache and
11049 register caches are cleared.
11050 inferior.c (exit_inferior_1): Likewise.
11051
bde09ab7
TT
110522019-05-03 Sandra Loosemore <sandra@codesourcery.com>
11053 Tom Tromey <tom@tromey.com>
11054
11055 * dictionary.c (collate_pending_symbols_by_language): Remove
11056 "struct" from foreach.
11057 * symtab.c (lookup_global_symbol_from_objfile)
11058 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
11059 foreach.
11060 * ser-tcp.c (net_open): Remove "struct" from foreach.
11061 * objfiles.c (objfile_relocate, objfile_rebase)
11062 (objfile_has_symbols): Remove "struct" from foreach.
11063 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
11064 from foreach.
11065 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
11066 foreach.
11067 * darwin-nat.c (thread_info_from_private_thread_info): Remove
11068 "struct" from foreach.
11069 * ada-lang.c (create_excep_cond_exprs)
11070 (ada_exception_catchpoint_cond_string): Remove "struct" from
11071 foreach.
11072
222a8d25
TT
110732019-05-03 Tom Tromey <tromey@adacore.com>
11074
11075 * ada-exp.y (convert_char_literal): Check suffix of each
11076 enumerator.
11077
fcd60b84
DP
110782019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
11079
11080 PR ada/21406:
11081 * ada-exp.y (yywrap): Don't define.
11082 * ada-lex.l (%option): Add noyywrap
11083 (yywrap): Remove.
11084
5f2459c2
EZ
110852019-05-03 Eli Zaretskii <eliz@gnu.org>
11086
353ea2d1
EZ
11087 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
11088 _WIN32_WINNT to the XP level, unless already defined to a higher
11089 level.
11090
11091 * unittests/parse-connection-spec-selftests.c:
11092 * ser-tcp.c:
11093 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
11094 override.
11095
5f2459c2
EZ
11096 * symfile.c (find_separate_debug_file): Remove colon from the
11097 drive spec of DOS/Windows file names of the target, so that the
11098 file name produced from DEBUGDIR and the target's directory will
11099 be valid on DOS/Windows systems.
11100
80062eb9
AB
111012019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
11102
11103 * rust-lang.c (val_print_struct): Handle printing structures
11104 containing strings.
11105
b8c05e85
TT
111062019-05-02 Tom Tromey <tromey@adacore.com>
11107
11108 * valarith.c (_initialize_valarith): Remove.
11109
4504bbde
TT
111102019-05-01 Tom Tromey <tromey@adacore.com>
11111
11112 * ada-lang.c (ada_value_primitive_field): Treat more fields as
11113 bitfields.
11114
d48e62f4
TT
111152019-05-01 Tom Tromey <tromey@adacore.com>
11116
11117 * ada-lang.c (ada_value_assign): Correctly compute starting offset
11118 for big-endian copies.
11119
15f18d14
AT
111202019-04-30 Ali Tamur <tamur@google.com>
11121 * gdb/dwarf2read.c (read_3_bytes): New declaration.
11122 (read_attribute_value): Added DW_FORM_strx1-4 cases.
11123 (read_3_bytes): New function.
11124
ab4ee614
JB
111252019-04-30 Joel Brobecker <brobecker@adacore.com>
11126
11127 * windows-nat.c (main_thread_id): Delete.
11128 (handle_output_debug_string): Replace main_thread_id by
11129 current_event.dwThreadId.
11130 (fake_create_process): Likewise.
11131 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
11132 Do not set main_thread_id.
11133 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
11134 current_event.dwThreadId.
11135 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
11136
8ed5b76e
JB
111372019-04-30 Joel Brobecker <brobecker@adacore.com>
11138
11139 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
11140 Use current_event.dwThreadId instead of main_thread_id.
11141
2ff0a947
TT
111422019-04-30 Tom Tromey <tromey@adacore.com>
11143
11144 * ada-lang.c (ada_lookup_simple_minsyms): New function.
11145 (create_excep_cond_exprs): Iterate over program spaces.
11146 (ada_exception_catchpoint_cond_string): Examine all minimal
11147 symbols for exception types.
11148
a776957c
TT
111492019-04-30 Tom Tromey <tromey@adacore.com>
11150
11151 PR c++/24470:
11152 * dwarf2read.c (process_structure_scope): Handle case where type
11153 has template parameters but no symbol was created.
11154
bc68014d
AB
111552019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
11156 Chris January <chris.january@arm.com>
11157
11158 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
11159 qualifier.
11160 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
11161
f1fdc960
AB
111622019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
11163
11164 * f-typeprint.c (f_print_type): Update rules for printing
11165 whitespace.
11166 (f_type_print_varspec_suffix): Likewise.
11167
bf7a4de1
AB
111682019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
11169 Chris January <chris.january@arm.com>
11170
11171 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
11172 function arguments.
11173
bbe75b9d
AB
111742019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
11175
11176 * f-lang.c (build_fortran_types): Change name of void type to
11177 lower case.
11178 * f-typeprint.c (f_type_print_base): Print the name of the void
11179 type, rather than a fixed string.
11180 * f-valprint.c (f_decorations): Use lower case void string.
11181
1db455a7
AB
111822019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
11183 Chris January <chris.january@arm.com>
11184
11185 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
11186 types for Fortran.
11187
b6d03bb2
AB
111882019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
11189 Chris January <chris.january@arm.com>
11190 David Lecomber <david.lecomber@arm.com>
11191
11192 * f-exp.y (BINOP_INTRINSIC): New token.
11193 (exp): New parser rule handling BINOP_INTRINSIC.
11194 (f77_keywords): Add new builtin procedures.
11195 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
11196 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
11197 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
11198 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
11199 (print_unop_subexp_f): New function.
11200 (print_binop_subexp_f): New function.
11201 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
11202 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
11203 (dump_subexp_body_f): Likewise.
11204 (operator_check_f): Likewise.
11205 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
11206 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
11207
83228e93
AB
112082019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
11209
11210 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
11211 UNOP_KIND.
11212 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
11213 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
11214 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
11215 (operator_length_f): New fuction.
11216 (print_subexp_f): New function.
11217 (op_name_f): New function.
11218 (dump_subexp_body_f): New function.
11219 (operator_check_f): New function.
11220 (exp_descriptor_f): Replace standard expression handling functions
11221 with new functions.
11222 * gdb/fortran-operator.def: New file.
11223 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
11224 * gdb/std-operator.def: Remove UNOP_KIND.
11225
6fdcd7cc
AB
112262019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
11227
11228 * std-operator.def: Remove unbalanced, stray double quote
11229 character.
11230
2e62ab40
AB
112312019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
11232 Chris January <chris.january@arm.com>
11233 Daniel Everett <daniel.everett@arm.com>
11234 Nick Forrington <nick.forrington@arm.com>
11235 Richard Bunt <richard.bunt@arm.com>
11236
11237 * cp-valprint.c (cp_print_value_fields): Allow an additional level
11238 of depth when printing anonymous structs or unions.
11239 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
11240 Don't print either the top-level value, or the children if the
11241 max-depth is exceeded.
11242 (ppscm_print_children): When printing the key of a map, allow one
11243 extra level of depth.
11244 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
11245 print either the top-level value, or the children if the max-depth
11246 is exceeded.
11247 (print_children): When printing the key of a map, allow one extra
11248 level of depth.
11249 * python/py-value.c (valpy_format_string): Add max_depth keyword.
11250 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
11251 (user_print_options): Initialise max_depth field.
11252 (val_print_scalar_or_string_type_p): New function.
11253 (val_print): Check to see if the max depth has been reached.
11254 (val_print_check_max_depth): Define new function.
11255 (show_print_max_depth): New function.
11256 (_initialize_valprint): Add 'print max-depth' option.
11257 * valprint.h (struct value_print_options) <max_depth>: New field.
11258 (val_print_check_max_depth): Declare new function.
11259 * NEWS: Document new feature.
11260
4be290b2
AB
112612019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
11262
11263 * ada-lang.c (ada_language_defn): Initialise new field.
11264 * c-lang.c (c_is_string_type_p): New function.
11265 (c_language_defn): Initialise new field.
11266 (cplus_language_defn): Initialise new field.
11267 (asm_language_defn): Initialise new field.
11268 (minimal_language_defn): Initialise new field.
11269 * c-lang.h (c_is_string_type_p): Declare new function.
11270 * d-lang.c (d_language_defn): Initialise new field.
11271 * f-lang.c (f_is_string_type_p): New function.
11272 (f_language_defn): Initialise new field.
11273 * go-lang.c (go_is_string_type_p): New function.
11274 (go_language_defn): Initialise new field.
11275 * language.c (default_is_string_type_p): New function.
11276 (unknown_language_defn): Initialise new field.
11277 (auto_language_defn): Initialise new field.
11278 * language.h (struct language_defn) <la_is_string_type_p>: New
11279 member variable.
11280 (default_is_string_type_p): Declare new function.
11281 * m2-lang.c (m2_language_defn): Initialise new field.
11282 * objc-lang.c (objc_language_defn): Initialise new field.
11283 * opencl-lang.c (opencl_language_defn): Initialise new field.
11284 * p-lang.c (pascal_is_string_type_p): New function.
11285 (pascal_language_defn): Initialise new field.
11286 * rust-lang.c (rust_is_string_type_p): New function.
11287 (rust_language_defn): Initialise new field.
11288
721b08c6
AB
112892019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
11290
11291 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
11292 New field.
11293 * ada-lang.c (ada_language_defn): Initialise new field.
11294 * c-lang.c (c_language_defn): Likewise.
11295 (cplus_language_defn): Likewise.
11296 (asm_language_defn): Likewise.
11297 (minimal_language_defn): Likewise.
11298 * d-lang.c (d_language_defn): Likewise.
11299 * f-lang.c (f_language_defn): Likewise.
11300 * go-lang.c (go_language_defn): Likewise.
11301 * language.c (unknown_language_defn): Likewise.
11302 (auto_language_defn): Likewise.
11303 * m2-lang.c (m2_language_defn): Likewise.
11304 * objc-lang.c (objc_language_defn): Likewise.
11305 * opencl-lang.c (opencl_language_defn): Likewise.
11306 * p-lang.c (pascal_language_defn): Likewise.
11307 * rust-lang.c (rust_language_defn): Likewise.
11308
fc913e53
AB
113092019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
11310
11311 * ada-lang.c (ada_is_character_type): Change return type to bool.
11312 (ada_is_string_type): Likewise.
11313 * ada-lang.h (ada_is_character_type): Update declaration
11314 (ada_is_string_type): Likewise.
11315
fa731fa0
PW
113162019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11317
11318 Support style in 'frame|thread apply'
11319
11320 * gdbcmd.h (execute_command_to_string): New term_out parameter.
11321 * record.c (record_start, record_stop): Update callers of
11322 execute_command_to_string with false.
11323 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
11324 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
11325 methods.
11326 (class string_file): New constructor with term_out parameter.
11327 Override methods term_out and can_emit_style_escape. New member
11328 term_out.
11329 (class stdio_file): Override can_emit_style_escape.
11330 (class tee_file): Override term_out and can_emit_style_escape.
11331 * utils.h (can_emit_style_escape): Remove.
11332 * utils.c (can_emit_style_escape): Likewise.
11333 Update all callers of can_emit_style_escape (SOMESTREAM) to
11334 SOMESTREAM->can_emit_style_escape.
11335 * source-cache.c (source_cache::get_source_lines): Likewise.
11336 * stack.c (frame_apply_command_count): Call execute_command_to_string
11337 passing the term_out characteristic of the current gdb_stdout.
11338 * thread.c (thr_try_catch_cmd): Likewise.
11339 * top.c (execute_command_to_string): pass term_out parameter
11340 to construct the string_file for the command output.
11341 * ui-file.c (term_cli_styling): New function (most code moved
11342 from utils.c can_emit_style_escape).
11343 (string_file::string_file, string_file::can_emit_style_escape,
11344 stdio_file::can_emit_style_escape, tee_file::term_out,
11345 tee_file::can_emit_style_escape): New functions.
11346
136afab8
PW
113472019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11348
11349 * NEWS: Mention the new set|show may-call-functions.
11350 * infcall.c (may_call_functions_p): New variable.
11351 (show_may_call_functions_p): New function.
11352 (call_function_by_hand_dummy): Throws an error if not
11353 may-call-functions.
11354 (_initialize_infcall): Call add_setshow_boolean_cmd for
11355 may-call-functions.
11356
725cbb63
KS
113572019-04-25 Keith Seitz <keiths@redhat.com>
11358
11359 PR c++/24367
11360 * cp-support.c (inspect_type): Don't attempt substitutions
11361 of symbol with the same name.
11362
3d1cbb78
TT
113632019-04-25 Tom Tromey <tromey@adacore.com>
11364
11365 PR gdb/24475:
11366 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
11367 static.
11368
94aeb44b
TT
113692019-04-25 Tom Tromey <tromey@adacore.com>
11370
11371 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
11372 rvalue reference.
11373 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
11374 (gdb_xml_parser::parse): Use std::move.
11375 * python/python-internal.h (gdbpy_convert_exception): Take a const
11376 reference.
11377 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
11378 std::move.
11379 * python/py-utils.c (gdbpy_convert_exception): Take a const
11380 reference.
11381 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
11382 Use std::move.
11383 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
11384 Use std::move.
11385 * mi/mi-main.c (mi_print_exception): Take a const reference.
11386 * main.c (handle_command_errors): Take a const reference.
11387 * linespec.c (parse_linespec): Use std::move.
11388 * infcall.c (run_inferior_call): Use std::move.
11389 (call_function_by_hand_dummy): Use std::move.
11390 * exec.c (try_open_exec_file): Use std::move.
11391 * exceptions.h (exception_print, exception_fprintf)
11392 (exception_print_same): Update.
11393 * exceptions.c (print_exception, exception_print)
11394 (exception_fprintf, exception_print_same): Change parameters to
11395 const reference.
11396 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
11397 * common/new-op.c: Use std::move.
11398 * common/common-exceptions.h (struct gdb_exception): Add move
11399 constructor.
11400 (struct gdb_exception_error, struct gdb_exception_quit, struct
11401 gdb_quit_bad_alloc): Change constructor to move constructor.
11402 (throw_exception): Change parameter to rvalue reference.
11403 * common/common-exceptions.c (throw_exception): Take rvalue
11404 reference.
11405 * cli/cli-interp.c (safe_execute_command): Use std::move.
11406 * breakpoint.c (insert_bp_location, location_to_sals): Use
11407 std::move.
11408
680d7fd5
TT
114092019-04-25 Tom Tromey <tromey@adacore.com>
11410
11411 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
11412 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
11413 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
11414 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
11415 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
11416 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
11417 guile/scm-value.c: Use unpack.
11418 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
11419 gdbscm_gdb_exception.
11420 (gdbscm_throw_gdb_exception): Likewise.
11421 (struct gdbscm_gdb_exception): New.
11422 (unpack): New function.
11423 (gdbscm_wrap): Use unpack.
11424
c6fdd8b2
TT
114252019-04-25 Tom Tromey <tromey@adacore.com>
11426
11427 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
11428 (gdb_rl_callback_handler): Use std::move.
11429 * common/common-exceptions.h (struct gdb_exception): Add move
11430 assignment operator.
11431 (throw_exception_sjlj): Change "exception" to const reference.
11432 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
11433 (throw_exception_sjlj): Change "exception" to const reference.
11434
cc06b668
TT
114352019-04-25 Tom Tromey <tromey@adacore.com>
11436
11437 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
11438 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
11439 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
11440 Update.
11441 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
11442 Update.
11443 * mi/mi-interp.c (mi_interp::exec): Update.
11444 * linespec.c (parse_linespec): Update.
11445 * infcall.c (run_inferior_call): Update.
11446 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
11447 * guile/scm-symbol.c (gdbscm_lookup_symbol)
11448 (gdbscm_lookup_global_symbol): Update.
11449 * guile/scm-param.c (gdbscm_parameter_value): Update.
11450 * guile/scm-frame.c (gdbscm_frame_read_register)
11451 (gdbscm_frame_read_var): Update.
11452 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
11453 * exec.c (try_open_exec_file): Update.
11454 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
11455 (gdb_rl_callback_handler): Update.
11456 * common/common-exceptions.h (exception_none): Don't declare.
11457 * common/common-exceptions.c (exception_none): Don't define.
11458 (struct catcher) <exception>: Update.
11459 * cli/cli-interp.c (safe_execute_command): Update.
11460 * breakpoint.c (insert_bp_location, location_to_sals): Update.
11461
cf532bd1
AT
114622019-04-25 Ali Tamur <tamur@google.com>
11463
11464 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
11465 (read_attribute_value): Likewise.
11466 (dwarf2_read_addr_index): Update comment.
11467 (read_str_index): Add DW_FORM_strx.
11468 (dwarf2_string_attr): Likewise.
11469 (dwarf2_const_value_attr): Likewise.
11470 (dump_die_shallow): Likewise.
11471 (dwarf2_fetch_constant_bytes): Likewise.
11472 (skip_form_bytes): Likewise.
11473 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
11474
82433e3e
SDJ
114752019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
11476
11477 PR corefiles/11608
11478 PR corefiles/18187
11479 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
11480 OFFSET. Verify if current mapping contains an ELF header.
11481 (linux_find_memory_regions_full): Adjust call to
11482 dump_mapping_p.
11483
723adb65
SL
114842019-04-25 Sandra Loosemore <sandra@codesourcery.com>
11485 Kang Li <kanglictf@gmail.com>
11486
11487 PR gdb/21600
11488
11489 * dwarf2-frame.c (read_initial_length): Be consistent about using
11490 unsigned representation of length.
11491 (decode_frame_entry_1): Likewise. Check for wraparound of
11492 end pointer as well as buffer overflow.
11493
596179f7
SDJ
114942019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
11495
11496 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
11497 "vq".
11498
a59240a4
TT
114992019-04-24 Tom Tromey <tromey@adacore.com>
11500
11501 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
11502
f872fdbb
AB
115032019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11504
11505 * s12z-tdep.c (s12z_unwind_pc): Delete.
11506 (s12z_unwind_sp): Delete.
11507 (s12z_gdbarch_init): Don't register deleted functions with
11508 gdbarch.
11509
b614e6f3
AB
115102019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11511
11512 * rl78-tdep.c (rl78_unwind_sp): Delete.
11513 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
11514
14faed38
AB
115152019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11516
11517 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
11518 (xstormy16_unwind_pc): Delete.
11519 (xstormy16_dummy_id): Delete.
11520 (xstormy16_gdbarch_init): Don't register deleted functions with
11521 gdbarch.
11522
541aad8a
AB
115232019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11524
11525 * vax-tdep.c (vax_unwind_pc): Delete.
11526 (vax_gdbarch_init): Don't register deleted function with gdbarch.
11527
29222070
AB
115282019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11529
11530 * v850-tdep.c (v850_unwind_sp): Delete.
11531 (v850_unwind_pc): Delete.
11532 (v850_dummy_id): Delete.
11533 (v850_gdbarch_init): Don't register deleted functions with
11534 gdbarch.
11535
0f534d76
AB
115362019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11537
11538 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
11539 (tilegx_unwind_pc): Delete.
11540 (tilegx_unwind_dummy_id): Delete.
11541 (tilegx_gdbarch_init): Don't register deleted functions with
11542 gdbarch.
11543
1ba7b7f9
AB
115442019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11545
11546 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
11547 (tic6x_dummy_id): Delete.
11548 (tic6x_gdbarch_init): Don't register deleted functions with
11549 gdbarch.
11550
d31f262c
AB
115512019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11552
11553 * sparc-tdep.c (sparc_unwind_pc): Delete.
11554 (sparc32_gdbarch_init): Don't register deleted function with
11555 gdbarch.
11556
6d14d64d
AB
115572019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11558
11559 * sh-tdep.c (sh_unwind_sp): Delete.
11560 (sh_unwind_pc): Delete.
11561 (sh_dummy_id): Delete.
11562 (sh_gdbarch_init): Don't register deleted functions with
11563 gdbarch.
11564
a40dde9d
AB
115652019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11566
11567 * score-tdep.c (score_unwind_sp): Delete.
11568 (score_unwind_pc): Delete.
11569 (score_dummy_id): Delete.
11570 (score_gdbarch_init): Don't register deleted functions with
11571 gdbarch.
11572
47c47d69
AB
115732019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11574
11575 * rx-tdep.c (rx_unwind_pc): Delete.
11576 (rx_unwind_sp): Delete.
11577 (rx_dummy_id): Delete.
11578 (rx_gdbarch_init): Don't register deleted functions with
11579 gdbarch. Update comment.
11580
833a4480
AB
115812019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11582
11583 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
11584 (rs6000_dummy_id): Delete.
11585 (rs6000_gdbarch_init): Don't register deleted functions with
11586 gdbarch.
11587
3f2cef49
AB
115882019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11589
11590 * or1k-tdep.c (or1k_dummy_id): Delete.
11591 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
11592
96acf884
AB
115932019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11594
11595 * nios2-tdep.c (nios2_dummy_id): Delete.
11596 (nios2_unwind_sp): Delete.
11597 (nios2_gdbarch_init): Don't register deleted functions with
11598 gdbarch.
11599
ca0ab0aa
AB
116002019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11601
11602 * nds32-tdep.c (nds32_dummy_id): Delete.
11603 (nds32_unwind_pc): Delete.
11604 (nds32_unwind_sp): Delete.
11605 (nds32_gdbarch_init): Don't register deleted functions with
11606 gdbarch.
11607
c8259044
AB
116082019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11609
11610 * msp430-tdep.c (msp430_unwind_pc): Delete.
11611 (msp430_unwind_sp): Delete.
11612 (msp430_dummy_id): Delete.
11613 (msp430_gdbarch_init): Don't register deleted functions with
11614 gdbarch.
11615
27f113c8
AB
116162019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11617
11618 * moxie-tdep.c (moxie_unwind_sp): Delete.
11619 (moxie_unwind_pc): Delete.
11620 (moxie_dummy_id): Delete.
11621 (moxie_gdbarch_init): Don't register deleted functions with
11622 gdbarch.
11623
aee6c3cd
AB
116242019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11625
11626 * mn10300-tdep.c (mn10300_dummy_id): Delete.
11627 (mn10300_unwind_pc): Delete.
11628 (mn10300_unwind_sp): Delete.
11629 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
11630 mn10300_unwind_sp.
11631 (mn10300_frame_unwind_init): Don't register deleted functions with
11632 gdbarch.
11633
8e2b5aea
AB
116342019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11635
11636 * mep-tdep.c (mep_unwind_pc): Delete.
11637 (mep_unwind_sp): Delete.
11638 (mep_dummy_id): Delete.
11639 (mep_gdbarch_init): Don't register deleted functions with
11640 gdbarch.
11641
43cf3ede
AB
116422019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11643
11644 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
11645 (m68hc11_unwind_sp): Delete.
11646 (m68hc11_gdbarch_init): Don't register deleted functions with
11647 gdbarch.
11648
5e79b7bb
AB
116492019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11650
11651 * m32r-tdep.c (m32r_unwind_sp): Delete.
11652 (m32r_unwind_pc): Delete.
11653 (m32r_dummy_id): Delete.
11654 (m32r_gdbarch_init): Don't register deleted functions with
11655 gdbarch.
11656
89b268d8
AB
116572019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11658
11659 * m32c-tdep.c (m32c_unwind_pc): Delete.
11660 (m32c_unwind_sp): Delete.
11661 (m32c_dummy_id): Delete.
11662 (m32c_gdbarch_init): Don't register deleted functions with
11663 gdbarch.
11664
946c28d2
AB
116652019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11666
11667 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
11668 (lm32_unwind_pc): Delete.
11669 (lm32_dummy_id): Delete.
11670 (lm32_gdbarch_init): Don't register deleted functions with
11671 gdbarch.
11672
bf12844a
AB
116732019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11674
11675 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
11676 (iq2000_unwind_pc): Delete.
11677 (iq2000_dummy_id): Delete.
11678 (iq2000_gdbarch_init): Don't register deleted functions with
11679 gdbarch.
11680
ecbc06d2
AB
116812019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11682
11683 * nds32-tdep.c (nds32_type_align): Delete.
11684 (nds32_push_dummy_call): Use type_align instead.
11685
030197b4
AB
116862019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11687
11688 * arm-tdep.c (arm_type_align): Only handle vector override case.
11689 (arm_push_dummy_call): Use type_align.
11690 (arm_gdbarch_init): Register arm_type_align gdbarch function.
11691
b907456c
AB
116922019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11693
11694 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
11695 case.
11696 (pass_on_stack): Use type_align.
11697 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
11698 function.
11699
9e97ba43
TT
117002019-04-23 Tom Tromey <tromey@adacore.com>
11701
11702 * dwarf2read.c (line_header::file_name_at): Remove unused
11703 overload.
11704
6892f601
TV
117052019-04-23 Tom de Vries <tdevries@suse.de>
11706
11707 PR gdb/24438
11708 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
11709 invocation.
11710
336d760d
AT
11711
117122019-03-27 Ali Tamur <tamur@google.com>
11713
11714 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
11715 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
11716 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
11717 (dwarf_expr_context::get_addr_index): Likewise
11718 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
11719 (symbol_needs_eval_context::get_addr_index): Likewise
11720 (disassemble_dwarf_expression): Add DW_OP_addrx
11721 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
11722 (read_cutu_die_from_dwo): Update comment
11723 (skip_one_die): Add DW_FORM_addrx
11724 (read_attribute_value): Likewise
11725 (var_decode_location): Add DW_OP_addrx
11726 (dwarf2_const_value_attr): Add DW_FORM_addrx
11727 (dump_die_shallow): Likewise
11728 (dwarf2_fetch_constant_bytes): Likewise
11729 (decode_locdesc): Add DW_OP_addrx
11730 (skip_form_bytes): Add DW_FORM_addrx
11731
ad9d13f8
AT
117322019-04-22 Ali Tamur <tamur@google.com>
11733
11734 * MAINTAINERS (Write After Approval): Add self.
11735
d70cc3ba
SM
117362019-04-22 Simon Marchi <simon.marchi@efficios.com>
11737
11738 * solib-svr4.c (get_svr4_info): Add pspace parameter.
11739 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
11740 (open_symbol_file_object): Likewise.
11741 (svr4_default_sos): Add info parameter.
11742 (svr4_read_so_list): Likewise.
11743 (svr4_current_sos_direct): Adjust functions calls to pass down
11744 info.
11745 (svr4_current_sos_1): Add info parameter.
11746 (svr4_current_sos): Call get_svr4_info, pass info down to
11747 svr4_current_sos_1.
11748 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
11749 get_svr4_info.
11750 (svr4_in_dynsym_resolve_code): Pass current_program_space to
11751 get_svr4_info.
11752 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
11753 to get_svr4_info.
11754 (probes_table_remove_objfile_probes): Likewise.
11755 (register_solib_event_probe): Add info parameter.
11756 (solist_update_incremental): Pass info parameter down to
11757 svr4_read_so_list.
11758 (disable_probes_interface): Add info parameter.
11759 (svr4_handle_solib_event): Pass current_program_space to
11760 get_svr4_info. Adjust disable_probes_interface cleanup.
11761 (svr4_create_probe_breakpoints): Add info parameter, pass it
11762 down to register_solib_event_probe.
11763 (svr4_create_solib_event_breakpoints): Add info parameter,
11764 pass it down to svr4_create_probe_breakpoints.
11765 (enable_break): Pass info down to
11766 svr4_create_solib_event_breakpoints.
11767 (svr4_solib_create_inferior_hook): Pass current_program_space to
11768 get_svr4_info.
11769 (svr4_clear_solib): Likewise.
11770
7905fc35
PA
117712019-04-22 Pedro Alves <palves@redhat.com>
11772
11773 * solib-svr4.c (svr4_free_objfile_observer): New.
11774 (probe_and_action::objfile): New field.
11775 (probes_table_htab_remove_objfile_probes)
11776 (probes_table_remove_objfile_probes): New functions.
11777 (register_solib_event_probe): Add 'objfile' parameter. Store it
11778 in the new probe_and_action. Don't store the probe in 'lookup'.
11779 (svr4_create_probe_breakpoints): Pass objfile to
11780 register_solib_event_probe.
11781 (_initialize_svr4_solib): Register a free_objfile observer.
11782
fb881986
TT
117832019-04-19 Tom Tromey <tom@tromey.com>
11784
11785 * common/queue.h: Remove.
11786
8732db6c
TT
117872019-04-19 Tom Tromey <tom@tromey.com>
11788
11789 * event-loop.c: Don't include "common/queue.h".
11790
97dfbadd
TT
117912019-04-19 Tom Tromey <tom@tromey.com>
11792
11793 * remote.c (remote_target): Use delete.
11794 * remote-notif.h: Include <list>, not "common/queue.h".
11795 (notif_client_p): Remove typedef.
11796 (remote_notif_state): Add constructor, destructor, initializer.
11797 <notif_queue>: Now a std::list.
11798 (remote_notif_state_xfree): Don't declare.
11799 * remote-notif.c (remote_notif_process, handle_notification)
11800 (remote_notif_state_allocate): Update.
11801 (~remote_notif_state): Rename from remote_notif_state_xfree.
11802
cf250e36
TT
118032019-04-19 Tom Tromey <tom@tromey.com>
11804
11805 * symfile.c (reread_symbols): Update.
11806 * objfiles.c (objfile_register_static_link)
11807 (objfile_lookup_static_link): Update
11808 (~objfile) Don't delete static_links.
11809 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
11810
61f4b350
TT
118112019-04-19 Tom Tromey <tom@tromey.com>
11812
11813 * type-stack.h (struct type_stack) <insert>: Constify string.
11814 * type-stack.c (type_stack::insert): Constify string.
11815 * gdbtypes.h (lookup_template_type): Update.
11816 (address_space_name_to_int): Update.
11817 * gdbtypes.c (address_space_name_to_int): Make space_identifier
11818 const.
11819 (lookup_template_type): Make name const.
11820 * c-exp.y: Update rules.
11821 (lex_one_token, classify_name, classify_inner_name)
11822 (c_print_token): Update.
11823 * p-exp.y: Update rules.
11824 (yylex): Update.
11825 * f-exp.y: Update rules.
11826 (yylex): Update.
11827 * d-exp.y: Update rules.
11828 (lex_one_token, classify_name, classify_inner_name): Update.
11829 * parse.c (write_dollar_variable, copy_name): Return std::string.
11830 * parser-defs.h (copy_name): Change return type.
11831 * m2-exp.y: Update rules.
11832 (yylex): Update.
11833 * go-exp.y (lex_one_token): Update.
11834 Update rules.
11835 (classify_unsafe_function, classify_packaged_name)
11836 (classify_name, yylex): Update.
11837
189b8c2e
ST
118382019-04-19 Sergei Trofimovich <siarheit@google.com>
11839
11840 * configure.ac: add --enable-source-highlight switch.
11841 * configure: Regenerate.
11842 * top.c (print_gdb_version): plumb --enable-source-highlight
11843 status to "show configuration".
11844
8ecb59f8
TT
118452019-04-19 Tom Tromey <tromey@adacore.com>
11846
11847 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
11848 Check ADA_TYPE_P.
11849 (empty_record, ada_template_to_fixed_record_type_1)
11850 (template_to_static_fixed_type)
11851 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
11852 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
11853 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
11854 macros.
11855
62160ec9
TT
118562019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
11857
11858 PR symtab/24423:
11859 * source.c (print_source_lines_base): Advance "iter" when a
11860 control character is seen.
11861
f2ae8bc8
PW
118622019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11863
11864 * inferior.h (struct infcall_suspend_state_deleter):
11865 Catch exception in destructor to avoid crash.
11866
d563b953
PW
118672019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11868
11869 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
11870 close to the add_com "shell".
11871
dc34c897
TT
118722019-04-18 Tom Tromey <tromey@adacore.com>
11873
11874 * process-stratum-target.h (class process_stratum_target)
11875 <stratum>: Add "final".
11876
a12e5744
TT
118772019-04-17 Tom Tromey <tromey@adacore.com>
11878
11879 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
11880 against nullptr before use.
11881
a7e559cc
AH
118822019-04-17 Alan Hayward <alan.hayward@arm.com>
11883
11884 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
11885
c01660c6
AB
118862019-04-17 Jim Wilson <jimw@sifive.com>
11887 Andrew Burgess <andrew.burgess@embecosm.com>
11888
11889 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
11890 code read might fail, assume 4-byte breakpoint in that case.
11891
4aa866af
LS
118922019-04-15 Leszek Swirski <leszeks@google.com>
11893
11894 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
11895 rather than a hand-rolled POD check when checking for forced MEMORY
11896 classification.
11897
48574d91
AH
118982019-04-15 Alan Hayward <alan.hayward@arm.com>
11899
11900 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
11901 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
11902 function.
11903 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
11904 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
11905 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
11906 declaration.
11907
4da037ef
AH
119082019-04-15 Alan Hayward <alan.hayward@arm.com>
11909
11910 * aarch64-linux-nat.c
11911 (aarch64_linux_nat_target::thread_architecture): Add override.
11912 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
11913 each VQ.
11914
ccb8d7e8
AH
119152019-04-15 Alan Hayward <alan.hayward@arm.com>
11916
11917 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
11918
35add35e
AB
119192019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
11920
11921 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
11922 target types of size 96-bits, add some additional comments, and
11923 check that the builtin type we found was the correct size.
11924
51196bbc
EZ
119252019-04-12 Eli Zaretskii <eliz@gnu.org>
11926
11927 * utils.c (prompt_for_continue): Don't restore the styling at the
11928 end, as applied_style has the wrong value. This fixes styling in
11929 long lists of file names that are interrupted by the "Continue?"
11930 prompt.
11931
62253a61
AB
119322019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
11933
11934 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
11935 * c-lang.c (c_language_defn): Likewise.
11936 (cplus_language_defn): Likewise.
11937 (asm_language_defn): Likewise.
11938 (minimal_language_defn): Likewise.
11939 * d-lang.c (d_language_defn): Likewise.
11940 * f-lang.c (f_language_defn): Likewise.
11941 * go-lang.c (go_language_defn): Likewise.
11942 * language.c (unknown_language_defn): Likewise.
11943 (auto_language_defn): Likewise.
11944 * language.h (struct language_defn): Remove la_magic field.
11945 (LANG_MAGIC): Delete.
11946 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
11947 * objc-lang.c (objc_language_defn): Likewise.
11948 * opencl-lang.c (opencl_language_defn): Likewise.
11949 * p-lang.c (pascal_language_defn): Likewise.
11950 * rust-lang.c (rust_language_defn): Likewise.
11951
a9158a86
AB
119522019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
11953
11954 * riscv-tdep.c (riscv_type_align): New function.
11955 (riscv_type_alignment): Delete.
11956 (riscv_arg_location): Use 'type_align'.
11957 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
11958
41077b66
AB
119592019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
11960
11961 * gdbtypes.c (type_align): A struct with no non-static fields also
11962 has alignment of 1.
11963
9f0272f8
AB
119642019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
11965
11966 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
11967 component to 0.
11968 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
11969 member.
11970 (riscv_struct_info::analyse): New implementation using new
11971 analyse_inner member function.
11972 (riscv_struct_info::field_offset): New member function.
11973 (riscv_struct_info::m_offsets): New member variable.
11974 (riscv_struct_info::analyse_inner): New private member function,
11975 takes the old implementation of riscv_struct_info::analyse but
11976 extended to track field offsets.
11977 (riscv_call_arg_struct): Update the struct folding special cases
11978 to handle cases where empty C++ structs, which are non-zero
11979 length, are found.
11980 (riscv_arg_location): Initialise the length of each location, a
11981 non-zero length now indicates the location is in use.
11982 (riscv_push_dummy_call): Allow for the first location having a
11983 non-zero offset when setting up arguments.
11984 (riscv_return_value): Likewise, but for return values.
11985
02cf60c7
TT
119862019-04-11 Tom Tromey <tromey@adacore.com>
11987
11988 * utils.c (internal_vproblem): Make "msg" const.
11989
68811f8f
AH
119902019-04-11 Alan Hayward <alan.hayward@arm.com>
11991
11992 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
11993 * trad-frame.c (trad_frame_reset_saved_regs): New function.
11994 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
11995 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
11996
3f52fdbc
KB
119972019-04-10 Kevin Buettner <kevinb@redhat.com>
11998
11999 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
12000 function.
12001 (fill_gregset): Call amd64_linux_collect_native_gregset instead
12002 of amd64_collect_native_gregset.
12003 (amd64_linux_nat_target::store_registers): Likewise.
12004
e9ad22ee
TT
120052019-04-10 Tom Tromey <tom@tromey.com>
12006
12007 * symtab.c (lookup_global_symbol_from_objfile)
12008 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
12009 * objfiles.h (class separate_debug_iterator): New.
12010 (class separate_debug_range): New.
12011 (struct objfile) <separate_debug_objfiles>: New method.
12012 (objfile_separate_debug_iterate): Don't declare.
12013 * objfiles.c (separate_debug_iterator::operator++): Rename from
12014 objfile_separate_debug_iterate.
12015 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
12016 iterator.
12017 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
12018 iterator.
12019
ee371134
TT
120202019-04-10 Tom Tromey <tom@tromey.com>
12021
12022 * symfile.c (reread_symbols): Remove old comment.
12023 * objfiles.c (free_all_objfiles): Fix a typo.
12024
bf227d61
TT
120252019-04-10 Tom Tromey <tom@tromey.com>
12026
12027 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
12028 * minsyms.c (lookup_minimal_symbol): Use foreach.
12029 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
12030 (lookup_minimal_symbol_solib_trampoline): Likewise.
12031 * symfile.c (reread_symbols): Use foreach.
12032
8dc433a0
TT
120332019-04-09 Ivan Begert <ivanbegert@gmail.com>
12034 Tom Tromey <tromey@adacore.com>
12035
12036 PR rust/24414:
12037 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
12038 (rust_lex_int_test): Change "value" to be LONGEST.
12039 (rust_lex_tests): Add test for long integer literal.
12040
9ab8741a
TT
120412019-04-09 Tom Tromey <tromey@adacore.com>
12042
12043 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
12044 to bool.
12045 (extended_remote_target::attach): Update.
12046 (remote_target::remote_notice_new_inferior): Update.
12047 (remote_target::add_current_inferior_and_thread): Update.
12048 * inferior.c (exit_inferior_1): Use "false".
12049 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
12050
e242fd12
SM
120512019-04-09 Simon Marchi <simon.marchi@efficios.com>
12052
9ca1957f 12053 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
e242fd12
SM
12054 the "start" command.
12055
2b0c8b01
KB
120562019-04-08 Kevin Buettner <kevinb@redhat.com>
12057
12058 * python/py-inferior.c (infpy_thread_from_thread_handle):
12059 Adjust comments to reflect renaming of thread_from_thread_handle
12060 to thread_from_handle. Adjust keywords. Fix type error message.
12061 (inferior_object_methods): Add thread_from_handle. Retain
12062 thread_from_thread_handle, but mark it as deprecated.
12063
50a82723
KB
120642019-04-08 Kevin Buettner <kevinb@redhat.com>
12065
12066 * gdbthread.h (find_thread_by_handle): Revise declaration.
12067 * thread.c (find_thread_by_handle): Likewise. Adjust
12068 implementation too.
12069 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
12070 support for buffer objects as handles.
12071
cf63b016
KB
120722019-04-08 Kevin Buettner <kevinb@redhat.com>
12073
12074 * python/py-infthread.c (thpy_thread_handle): New function.
12075 (thread_object_methods): Register thpy_thread_handle.
12076
3d6c6204
KB
120772019-04-08 Kevin Buettner <kevinb@redhat.com>
12078
12079 * gdbthread.h (thread_to_thread_handle): Declare.
12080 * thread.c (gdbtypes.h): Include.
12081 (thread_to_thread_handle): New function.
12082
12083 * target.h (struct target_ops): Add thread_info_to_thread_handle.
12084 (target_thread_info_to_thread_handle): Declare.
12085 * target.c (target_thread_info_to_thread_handle): New function.
12086 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
12087 * target-delegates.c: Regenerate.
12088
12089 * linux-thread-db.c (class thread_db_target): Add method
12090 thread_info_to_thread_handle.
12091 (thread_db_target::thread_info_to_thread_handle): Define.
12092 * remote.c (class remote_target): Add new method
12093 thread_info_to_thread_handle.
12094 (remote_target::thread_info_to_thread_handle): Define.
12095
56be6ea8
PA
120962019-04-08 Pedro Alves <palves@redhat.com>
12097
12098 * common/common-exceptions.c (throw_exception): Don't create
12099 named object to throw; throw directly.
12100 (throw_it): Likewise. Don't initialize gdb_exception::message
12101 here, with new; pass FMT and AP to the ctor instead.
12102 * common/common-exceptions.h: Include <string>.
12103 (gdb_exception::gdb_exception(enum return_reason, enum errors,
12104 const char *, va_list)): New ctor. Use std::make_shared.
12105 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
12106 errors)): Delete.
12107 (gdb_exception_error::gdb_exception_error(enum errors, const char
12108 *, va_list)): New.
12109 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
12110 Add assertion.
12111 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
12112 errors)): Delete.
12113 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
12114 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
12115 Add assertion.
12116
eedc3f4f
TT
121172019-04-08 Tom Tromey <tom@tromey.com>
12118
12119 * valops.c (value_rtti_indirect_type): Replace throw_exception
12120 with throw.
12121 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
12122 with throw.
12123 * thread.c (thr_try_catch_cmd): Replace throw_exception with
12124 throw.
12125 * target.c (target_translate_tls_address): Replace throw_exception
12126 with throw.
12127 * stack.c (frame_apply_command_count): Replace throw_exception
12128 with throw.
12129 * solib-spu.c (append_ocl_sos): Replace throw_exception with
12130 throw.
12131 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
12132 with throw.
12133 * rs6000-tdep.c (rs6000_frame_cache)
12134 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
12135 * remote.c: Replace throw_exception with throw.
12136 * record-full.c (record_full_message, record_full_wait_1)
12137 (record_full_restore): Replace throw_exception with throw.
12138 * record-btrace.c:
12139 (get_thread_current_frame_id, record_btrace_start_replaying)
12140 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
12141 (cmd_record_btrace_start): Replace throw_exception with throw.
12142 * parse.c (parse_exp_in_context_1): Replace throw_exception with
12143 throw.
12144 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
12145 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
12146 * linespec.c:
12147 (find_linespec_symbols): Replace throw_exception with throw.
12148 * infrun.c (displaced_step_prepare, resume): Replace
12149 throw_exception with throw.
12150 * infcmd.c (post_create_inferior): Replace throw_exception with
12151 throw.
12152 * inf-loop.c (inferior_event_handler): Replace throw_exception
12153 with throw.
12154 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
12155 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
12156 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
12157 (get_prev_frame_always, get_frame_pc_if_available)
12158 (get_frame_address_in_block_if_available, get_frame_language):
12159 Replace throw_exception with throw.
12160 * frame-unwind.c (frame_unwind_try_unwinder): Replace
12161 throw_exception with throw.
12162 * eval.c (fetch_subexp_value, evaluate_var_value)
12163 (evaluate_funcall, evaluate_subexp_standard): Replace
12164 throw_exception with throw.
12165 * dwarf2loc.c (call_site_find_chain)
12166 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
12167 Replace throw_exception with throw.
12168 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
12169 with throw.
12170 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
12171 throw.
12172 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
12173 * completer.c (complete_line_internal): Replace throw_exception
12174 with throw.
12175 * compile/compile-object-run.c (compile_object_run): Replace
12176 throw_exception with throw.
12177 * cli/cli-script.c (process_next_line): Replace throw_exception
12178 with throw.
12179 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
12180 (btrace_enable, btrace_maint_update_pt_packets): Replace
12181 throw_exception with throw.
12182 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
12183 throw_exception with throw.
12184 * break-catch-throw.c (re_set_exception_catchpoint): Replace
12185 throw_exception with throw.
12186 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
12187 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
12188 * aarch64-tdep.c (aarch64_make_prologue_cache)
12189 (aarch64_make_stub_cache): Replace throw_exception with throw.
12190
26003a20
TT
121912019-04-08 Tom Tromey <tom@tromey.com>
12192
12193 * common/common-exceptions.c (throw_exception): Rename from
12194 throw_exception_cxx. Remove old copy. Make argument const.
12195 (throw_it): Create and throw exception objects directly.
12196 * common/common-exceptions.h (throw_exception): Make argument
12197 const.
12198 (struct gdb_exception_error): Add constructor.
12199 (struct gdb_exception_quit): Add constructor.
12200
d272eb37
TT
122012019-04-08 Tom Tromey <tom@tromey.com>
12202
12203 * common/common-exceptions.h (exception_rethrow): Don't declare.
12204 (TRY_SJLJ): Update comment.
12205 (TRY, CATCH, END_CATCH): Remove.
12206 * common/common-exceptions.c (exception_rethrow): Remove.
12207
230d2906
TT
122082019-04-08 Tom Tromey <tom@tromey.com>
12209
12210 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
12211 Remove.
12212 (gdb_exception_error): Rename from
12213 gdb_exception_RETURN_MASK_ERROR.
12214 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
12215 (gdb_quit_bad_alloc): Update.
12216 * aarch64-tdep.c: Update.
12217 * ada-lang.c: Update.
12218 * ada-typeprint.c: Update.
12219 * ada-valprint.c: Update.
12220 * amd64-tdep.c: Update.
12221 * arch-utils.c: Update.
12222 * break-catch-throw.c: Update.
12223 * breakpoint.c: Update.
12224 * btrace.c: Update.
12225 * c-varobj.c: Update.
12226 * cli/cli-cmds.c: Update.
12227 * cli/cli-interp.c: Update.
12228 * cli/cli-script.c: Update.
12229 * common/common-exceptions.c: Update.
12230 * common/new-op.c: Update.
12231 * common/selftest.c: Update.
12232 * compile/compile-c-symbols.c: Update.
12233 * compile/compile-cplus-symbols.c: Update.
12234 * compile/compile-object-load.c: Update.
12235 * compile/compile-object-run.c: Update.
12236 * completer.c: Update.
12237 * corelow.c: Update.
12238 * cp-abi.c: Update.
12239 * cp-support.c: Update.
12240 * cp-valprint.c: Update.
12241 * darwin-nat.c: Update.
12242 * disasm-selftests.c: Update.
12243 * dtrace-probe.c: Update.
12244 * dwarf-index-cache.c: Update.
12245 * dwarf-index-write.c: Update.
12246 * dwarf2-frame-tailcall.c: Update.
12247 * dwarf2-frame.c: Update.
12248 * dwarf2loc.c: Update.
12249 * dwarf2read.c: Update.
12250 * eval.c: Update.
12251 * event-loop.c: Update.
12252 * event-top.c: Update.
12253 * exec.c: Update.
12254 * f-valprint.c: Update.
12255 * fbsd-tdep.c: Update.
12256 * frame-unwind.c: Update.
12257 * frame.c: Update.
12258 * gdbtypes.c: Update.
12259 * gnu-v3-abi.c: Update.
12260 * guile/guile-internal.h: Update.
12261 * guile/scm-block.c: Update.
12262 * guile/scm-breakpoint.c: Update.
12263 * guile/scm-cmd.c: Update.
12264 * guile/scm-disasm.c: Update.
12265 * guile/scm-frame.c: Update.
12266 * guile/scm-lazy-string.c: Update.
12267 * guile/scm-math.c: Update.
12268 * guile/scm-param.c: Update.
12269 * guile/scm-ports.c: Update.
12270 * guile/scm-pretty-print.c: Update.
12271 * guile/scm-symbol.c: Update.
12272 * guile/scm-symtab.c: Update.
12273 * guile/scm-type.c: Update.
12274 * guile/scm-value.c: Update.
12275 * i386-linux-tdep.c: Update.
12276 * i386-tdep.c: Update.
12277 * inf-loop.c: Update.
12278 * infcall.c: Update.
12279 * infcmd.c: Update.
12280 * infrun.c: Update.
12281 * jit.c: Update.
12282 * language.c: Update.
12283 * linespec.c: Update.
12284 * linux-fork.c: Update.
12285 * linux-nat.c: Update.
12286 * linux-tdep.c: Update.
12287 * linux-thread-db.c: Update.
12288 * main.c: Update.
12289 * mi/mi-cmd-break.c: Update.
12290 * mi/mi-cmd-stack.c: Update.
12291 * mi/mi-interp.c: Update.
12292 * mi/mi-main.c: Update.
12293 * objc-lang.c: Update.
12294 * p-valprint.c: Update.
12295 * parse.c: Update.
12296 * ppc-linux-tdep.c: Update.
12297 * printcmd.c: Update.
12298 * python/py-arch.c: Update.
12299 * python/py-breakpoint.c: Update.
12300 * python/py-cmd.c: Update.
12301 * python/py-finishbreakpoint.c: Update.
12302 * python/py-frame.c: Update.
12303 * python/py-framefilter.c: Update.
12304 * python/py-gdb-readline.c: Update.
12305 * python/py-inferior.c: Update.
12306 * python/py-infthread.c: Update.
12307 * python/py-lazy-string.c: Update.
12308 * python/py-linetable.c: Update.
12309 * python/py-objfile.c: Update.
12310 * python/py-param.c: Update.
12311 * python/py-prettyprint.c: Update.
12312 * python/py-progspace.c: Update.
12313 * python/py-record-btrace.c: Update.
12314 * python/py-record.c: Update.
12315 * python/py-symbol.c: Update.
12316 * python/py-type.c: Update.
12317 * python/py-unwind.c: Update.
12318 * python/py-utils.c: Update.
12319 * python/py-value.c: Update.
12320 * python/python.c: Update.
12321 * record-btrace.c: Update.
12322 * record-full.c: Update.
12323 * remote-fileio.c: Update.
12324 * remote.c: Update.
12325 * riscv-tdep.c: Update.
12326 * rs6000-aix-tdep.c: Update.
12327 * rs6000-tdep.c: Update.
12328 * rust-exp.y: Update.
12329 * rust-lang.c: Update.
12330 * s390-tdep.c: Update.
12331 * selftest-arch.c: Update.
12332 * solib-dsbt.c: Update.
12333 * solib-frv.c: Update.
12334 * solib-spu.c: Update.
12335 * solib-svr4.c: Update.
12336 * solib.c: Update.
12337 * sparc64-linux-tdep.c: Update.
12338 * stack.c: Update.
12339 * symfile-mem.c: Update.
12340 * symmisc.c: Update.
12341 * target.c: Update.
12342 * thread.c: Update.
12343 * top.c: Update.
12344 * tracefile-tfile.c: Update.
12345 * tui/tui.c: Update.
12346 * typeprint.c: Update.
12347 * unittests/cli-utils-selftests.c: Update.
12348 * unittests/parse-connection-spec-selftests.c: Update.
12349 * valops.c: Update.
12350 * valprint.c: Update.
12351 * value.c: Update.
12352 * varobj.c: Update.
12353 * windows-nat.c: Update.
12354 * x86-linux-nat.c: Update.
12355 * xml-support.c: Update.
12356
a70b8144
TT
123572019-04-08 Tom Tromey <tom@tromey.com>
12358
12359 * xml-support.c: Use C++ exception handling.
12360 * x86-linux-nat.c: Use C++ exception handling.
12361 * windows-nat.c: Use C++ exception handling.
12362 * varobj.c: Use C++ exception handling.
12363 * value.c: Use C++ exception handling.
12364 * valprint.c: Use C++ exception handling.
12365 * valops.c: Use C++ exception handling.
12366 * unittests/parse-connection-spec-selftests.c: Use C++ exception
12367 handling.
12368 * unittests/cli-utils-selftests.c: Use C++ exception handling.
12369 * typeprint.c: Use C++ exception handling.
12370 * tui/tui.c: Use C++ exception handling.
12371 * tracefile-tfile.c: Use C++ exception handling.
12372 * top.c: Use C++ exception handling.
12373 * thread.c: Use C++ exception handling.
12374 * target.c: Use C++ exception handling.
12375 * symmisc.c: Use C++ exception handling.
12376 * symfile-mem.c: Use C++ exception handling.
12377 * stack.c: Use C++ exception handling.
12378 * sparc64-linux-tdep.c: Use C++ exception handling.
12379 * solib.c: Use C++ exception handling.
12380 * solib-svr4.c: Use C++ exception handling.
12381 * solib-spu.c: Use C++ exception handling.
12382 * solib-frv.c: Use C++ exception handling.
12383 * solib-dsbt.c: Use C++ exception handling.
12384 * selftest-arch.c: Use C++ exception handling.
12385 * s390-tdep.c: Use C++ exception handling.
12386 * rust-lang.c: Use C++ exception handling.
12387 * rust-exp.y: Use C++ exception handling.
12388 * rs6000-tdep.c: Use C++ exception handling.
12389 * rs6000-aix-tdep.c: Use C++ exception handling.
12390 * riscv-tdep.c: Use C++ exception handling.
12391 * remote.c: Use C++ exception handling.
12392 * remote-fileio.c: Use C++ exception handling.
12393 * record-full.c: Use C++ exception handling.
12394 * record-btrace.c: Use C++ exception handling.
12395 * python/python.c: Use C++ exception handling.
12396 * python/py-value.c: Use C++ exception handling.
12397 * python/py-utils.c: Use C++ exception handling.
12398 * python/py-unwind.c: Use C++ exception handling.
12399 * python/py-type.c: Use C++ exception handling.
12400 * python/py-symbol.c: Use C++ exception handling.
12401 * python/py-record.c: Use C++ exception handling.
12402 * python/py-record-btrace.c: Use C++ exception handling.
12403 * python/py-progspace.c: Use C++ exception handling.
12404 * python/py-prettyprint.c: Use C++ exception handling.
12405 * python/py-param.c: Use C++ exception handling.
12406 * python/py-objfile.c: Use C++ exception handling.
12407 * python/py-linetable.c: Use C++ exception handling.
12408 * python/py-lazy-string.c: Use C++ exception handling.
12409 * python/py-infthread.c: Use C++ exception handling.
12410 * python/py-inferior.c: Use C++ exception handling.
12411 * python/py-gdb-readline.c: Use C++ exception handling.
12412 * python/py-framefilter.c: Use C++ exception handling.
12413 * python/py-frame.c: Use C++ exception handling.
12414 * python/py-finishbreakpoint.c: Use C++ exception handling.
12415 * python/py-cmd.c: Use C++ exception handling.
12416 * python/py-breakpoint.c: Use C++ exception handling.
12417 * python/py-arch.c: Use C++ exception handling.
12418 * printcmd.c: Use C++ exception handling.
12419 * ppc-linux-tdep.c: Use C++ exception handling.
12420 * parse.c: Use C++ exception handling.
12421 * p-valprint.c: Use C++ exception handling.
12422 * objc-lang.c: Use C++ exception handling.
12423 * mi/mi-main.c: Use C++ exception handling.
12424 * mi/mi-interp.c: Use C++ exception handling.
12425 * mi/mi-cmd-stack.c: Use C++ exception handling.
12426 * mi/mi-cmd-break.c: Use C++ exception handling.
12427 * main.c: Use C++ exception handling.
12428 * linux-thread-db.c: Use C++ exception handling.
12429 * linux-tdep.c: Use C++ exception handling.
12430 * linux-nat.c: Use C++ exception handling.
12431 * linux-fork.c: Use C++ exception handling.
12432 * linespec.c: Use C++ exception handling.
12433 * language.c: Use C++ exception handling.
12434 * jit.c: Use C++ exception handling.
12435 * infrun.c: Use C++ exception handling.
12436 * infcmd.c: Use C++ exception handling.
12437 * infcall.c: Use C++ exception handling.
12438 * inf-loop.c: Use C++ exception handling.
12439 * i386-tdep.c: Use C++ exception handling.
12440 * i386-linux-tdep.c: Use C++ exception handling.
12441 * guile/scm-value.c: Use C++ exception handling.
12442 * guile/scm-type.c: Use C++ exception handling.
12443 * guile/scm-symtab.c: Use C++ exception handling.
12444 * guile/scm-symbol.c: Use C++ exception handling.
12445 * guile/scm-pretty-print.c: Use C++ exception handling.
12446 * guile/scm-ports.c: Use C++ exception handling.
12447 * guile/scm-param.c: Use C++ exception handling.
12448 * guile/scm-math.c: Use C++ exception handling.
12449 * guile/scm-lazy-string.c: Use C++ exception handling.
12450 * guile/scm-frame.c: Use C++ exception handling.
12451 * guile/scm-disasm.c: Use C++ exception handling.
12452 * guile/scm-cmd.c: Use C++ exception handling.
12453 * guile/scm-breakpoint.c: Use C++ exception handling.
12454 * guile/scm-block.c: Use C++ exception handling.
12455 * guile/guile-internal.h: Use C++ exception handling.
12456 * gnu-v3-abi.c: Use C++ exception handling.
12457 * gdbtypes.c: Use C++ exception handling.
12458 * frame.c: Use C++ exception handling.
12459 * frame-unwind.c: Use C++ exception handling.
12460 * fbsd-tdep.c: Use C++ exception handling.
12461 * f-valprint.c: Use C++ exception handling.
12462 * exec.c: Use C++ exception handling.
12463 * event-top.c: Use C++ exception handling.
12464 * event-loop.c: Use C++ exception handling.
12465 * eval.c: Use C++ exception handling.
12466 * dwarf2read.c: Use C++ exception handling.
12467 * dwarf2loc.c: Use C++ exception handling.
12468 * dwarf2-frame.c: Use C++ exception handling.
12469 * dwarf2-frame-tailcall.c: Use C++ exception handling.
12470 * dwarf-index-write.c: Use C++ exception handling.
12471 * dwarf-index-cache.c: Use C++ exception handling.
12472 * dtrace-probe.c: Use C++ exception handling.
12473 * disasm-selftests.c: Use C++ exception handling.
12474 * darwin-nat.c: Use C++ exception handling.
12475 * cp-valprint.c: Use C++ exception handling.
12476 * cp-support.c: Use C++ exception handling.
12477 * cp-abi.c: Use C++ exception handling.
12478 * corelow.c: Use C++ exception handling.
12479 * completer.c: Use C++ exception handling.
12480 * compile/compile-object-run.c: Use C++ exception handling.
12481 * compile/compile-object-load.c: Use C++ exception handling.
12482 * compile/compile-cplus-symbols.c: Use C++ exception handling.
12483 * compile/compile-c-symbols.c: Use C++ exception handling.
12484 * common/selftest.c: Use C++ exception handling.
12485 * common/new-op.c: Use C++ exception handling.
12486 * cli/cli-script.c: Use C++ exception handling.
12487 * cli/cli-interp.c: Use C++ exception handling.
12488 * cli/cli-cmds.c: Use C++ exception handling.
12489 * c-varobj.c: Use C++ exception handling.
12490 * btrace.c: Use C++ exception handling.
12491 * breakpoint.c: Use C++ exception handling.
12492 * break-catch-throw.c: Use C++ exception handling.
12493 * arch-utils.c: Use C++ exception handling.
12494 * amd64-tdep.c: Use C++ exception handling.
12495 * ada-valprint.c: Use C++ exception handling.
12496 * ada-typeprint.c: Use C++ exception handling.
12497 * ada-lang.c: Use C++ exception handling.
12498 * aarch64-tdep.c: Use C++ exception handling.
12499
3d6e9d23
TT
125002019-04-08 Tom Tromey <tom@tromey.com>
12501
12502 * xml-support.c (gdb_xml_parser::parse): Update.
12503 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
12504 * value.c (show_convenience): Update.
12505 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
12506 (test_parse_flags_qcs): Update.
12507 * thread.c (thr_try_catch_cmd): Update.
12508 * target.c (target_translate_tls_address): Update.
12509 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
12510 (info_frame_command_core, frame_apply_command_count): Update.
12511 * rust-exp.y (rust_lex_exception_test): Update.
12512 * riscv-tdep.c (riscv_print_one_register_info): Update.
12513 * remote.c (remote_target::enable_btrace): Update.
12514 * record-btrace.c (record_btrace_enable_warn): Update.
12515 * python/py-utils.c (gdbpy_convert_exception): Update.
12516 * printcmd.c (do_one_display, print_variable_and_value): Update.
12517 * mi/mi-main.c (mi_print_exception): Update.
12518 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
12519 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
12520 * linux-nat.c (linux_nat_target::attach): Update.
12521 * linux-fork.c (class scoped_switch_fork_info): Update.
12522 * infrun.c (displaced_step_prepare): Update.
12523 * infcall.c (call_function_by_hand_dummy): Update.
12524 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
12525 * gnu-v3-abi.c (print_one_vtable): Update.
12526 * frame.c (get_prev_frame_always): Update.
12527 * f-valprint.c (info_common_command_for_block): Update.
12528 * exec.c (try_open_exec_file): Update.
12529 * exceptions.c (print_exception, exception_print)
12530 (exception_fprintf, exception_print_same): Update.
12531 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
12532 * dwarf-index-cache.c (index_cache::store)
12533 (index_cache::lookup_gdb_index): Update.
12534 * darwin-nat.c (maybe_cache_shell): Update.
12535 * cp-valprint.c (cp_print_value_fields): Update.
12536 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
12537 (gcc_cplus_symbol_address): Update.
12538 * compile/compile-c-symbols.c (gcc_convert_symbol)
12539 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
12540 * common/selftest.c: Update.
12541 * common/common-exceptions.h (struct gdb_exception) <message>: Now
12542 a std::string.
12543 (exception_try_scope_entry, exception_try_scope_exit): Don't
12544 declare.
12545 (struct exception_try_scope): Remove.
12546 (TRY): Don't use exception_try_scope.
12547 (struct gdb_exception): Add constructor, operator=.
12548 <what>: New method.
12549 (struct gdb_exception_RETURN_MASK_ALL)
12550 (struct gdb_exception_RETURN_MASK_ERROR)
12551 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
12552 (struct gdb_quit_bad_alloc): Update.
12553 * common/common-exceptions.c (exception_none): Change
12554 initializer.
12555 (struct catcher) <state, exception>: Initialize inline.
12556 <prev>: Remove member.
12557 (current_catcher): Remove.
12558 (catchers): New global.
12559 (exceptions_state_mc_init): Simplify.
12560 (catcher_pop): Remove.
12561 (exceptions_state_mc, exceptions_state_mc_catch): Update.
12562 (try_scope_depth, exception_try_scope_entry)
12563 (exception_try_scope_exit): Remove.
12564 (throw_exception_sjlj): Update.
12565 (exception_messages, exception_messages_size): Remove.
12566 (throw_it): Simplify.
12567 (gdb_exception_sliced_copy): Remove.
12568 (throw_exception_cxx): Update.
12569 * cli/cli-script.c (script_from_file): Update.
12570 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
12571 Update.
12572 * ada-valprint.c (ada_val_print): Update.
12573 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
12574 (create_excep_cond_exprs): Update.
12575
c5c10118
TT
125762019-04-08 Tom Tromey <tom@tromey.com>
12577
12578 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
12579 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
12580 (TRY, CATCH, END_CATCH): Remove some definitions.
12581 * common/common-exceptions.c: Don't use GDB_XCPT.
12582 (catcher_list_size): Remove.
12583 (throw_exception, throw_it): Simplify.
12584
4de283e4
TT
125852019-04-05 Tom Tromey <tom@tromey.com>
12586
12587 Revert the header-sorting patch.
12588 * ft32-tdep.c: Revert.
12589 * frv-tdep.c: Revert.
12590 * frv-linux-tdep.c: Revert.
12591 * frame.c: Revert.
12592 * frame-unwind.c: Revert.
12593 * frame-base.c: Revert.
12594 * fork-child.c: Revert.
12595 * findvar.c: Revert.
12596 * findcmd.c: Revert.
12597 * filesystem.c: Revert.
12598 * filename-seen-cache.h: Revert.
12599 * filename-seen-cache.c: Revert.
12600 * fbsd-tdep.c: Revert.
12601 * fbsd-nat.h: Revert.
12602 * fbsd-nat.c: Revert.
12603 * f-valprint.c: Revert.
12604 * f-typeprint.c: Revert.
12605 * f-lang.c: Revert.
12606 * extension.h: Revert.
12607 * extension.c: Revert.
12608 * extension-priv.h: Revert.
12609 * expprint.c: Revert.
12610 * exec.h: Revert.
12611 * exec.c: Revert.
12612 * exceptions.c: Revert.
12613 * event-top.c: Revert.
12614 * event-loop.c: Revert.
12615 * eval.c: Revert.
12616 * elfread.c: Revert.
12617 * dwarf2read.h: Revert.
12618 * dwarf2read.c: Revert.
12619 * dwarf2loc.c: Revert.
12620 * dwarf2expr.h: Revert.
12621 * dwarf2expr.c: Revert.
12622 * dwarf2-frame.c: Revert.
12623 * dwarf2-frame-tailcall.c: Revert.
12624 * dwarf-index-write.h: Revert.
12625 * dwarf-index-write.c: Revert.
12626 * dwarf-index-common.c: Revert.
12627 * dwarf-index-cache.h: Revert.
12628 * dwarf-index-cache.c: Revert.
12629 * dummy-frame.c: Revert.
12630 * dtrace-probe.c: Revert.
12631 * disasm.h: Revert.
12632 * disasm.c: Revert.
12633 * disasm-selftests.c: Revert.
12634 * dictionary.c: Revert.
12635 * dicos-tdep.c: Revert.
12636 * demangle.c: Revert.
12637 * dcache.h: Revert.
12638 * dcache.c: Revert.
12639 * darwin-nat.h: Revert.
12640 * darwin-nat.c: Revert.
12641 * darwin-nat-info.c: Revert.
12642 * d-valprint.c: Revert.
12643 * d-namespace.c: Revert.
12644 * d-lang.c: Revert.
12645 * ctf.c: Revert.
12646 * csky-tdep.c: Revert.
12647 * csky-linux-tdep.c: Revert.
12648 * cris-tdep.c: Revert.
12649 * cris-linux-tdep.c: Revert.
12650 * cp-valprint.c: Revert.
12651 * cp-support.c: Revert.
12652 * cp-namespace.c: Revert.
12653 * cp-abi.c: Revert.
12654 * corelow.c: Revert.
12655 * corefile.c: Revert.
12656 * continuations.c: Revert.
12657 * completer.h: Revert.
12658 * completer.c: Revert.
12659 * complaints.c: Revert.
12660 * coffread.c: Revert.
12661 * coff-pe-read.c: Revert.
12662 * cli-out.h: Revert.
12663 * cli-out.c: Revert.
12664 * charset.c: Revert.
12665 * c-varobj.c: Revert.
12666 * c-valprint.c: Revert.
12667 * c-typeprint.c: Revert.
12668 * c-lang.c: Revert.
12669 * buildsym.c: Revert.
12670 * buildsym-legacy.c: Revert.
12671 * build-id.h: Revert.
12672 * build-id.c: Revert.
12673 * btrace.c: Revert.
12674 * bsd-uthread.c: Revert.
12675 * breakpoint.h: Revert.
12676 * breakpoint.c: Revert.
12677 * break-catch-throw.c: Revert.
12678 * break-catch-syscall.c: Revert.
12679 * break-catch-sig.c: Revert.
12680 * blockframe.c: Revert.
12681 * block.c: Revert.
12682 * bfin-tdep.c: Revert.
12683 * bfin-linux-tdep.c: Revert.
12684 * bfd-target.c: Revert.
12685 * bcache.c: Revert.
12686 * ax-general.c: Revert.
12687 * ax-gdb.h: Revert.
12688 * ax-gdb.c: Revert.
12689 * avr-tdep.c: Revert.
12690 * auxv.c: Revert.
12691 * auto-load.c: Revert.
12692 * arm-wince-tdep.c: Revert.
12693 * arm-tdep.c: Revert.
12694 * arm-symbian-tdep.c: Revert.
12695 * arm-pikeos-tdep.c: Revert.
12696 * arm-obsd-tdep.c: Revert.
12697 * arm-nbsd-tdep.c: Revert.
12698 * arm-nbsd-nat.c: Revert.
12699 * arm-linux-tdep.c: Revert.
12700 * arm-linux-nat.c: Revert.
12701 * arm-fbsd-tdep.c: Revert.
12702 * arm-fbsd-nat.c: Revert.
12703 * arm-bsd-tdep.c: Revert.
12704 * arch-utils.c: Revert.
12705 * arc-tdep.c: Revert.
12706 * arc-newlib-tdep.c: Revert.
12707 * annotate.h: Revert.
12708 * annotate.c: Revert.
12709 * amd64-windows-tdep.c: Revert.
12710 * amd64-windows-nat.c: Revert.
12711 * amd64-tdep.c: Revert.
12712 * amd64-sol2-tdep.c: Revert.
12713 * amd64-obsd-tdep.c: Revert.
12714 * amd64-obsd-nat.c: Revert.
12715 * amd64-nbsd-tdep.c: Revert.
12716 * amd64-nbsd-nat.c: Revert.
12717 * amd64-nat.c: Revert.
12718 * amd64-linux-tdep.c: Revert.
12719 * amd64-linux-nat.c: Revert.
12720 * amd64-fbsd-tdep.c: Revert.
12721 * amd64-fbsd-nat.c: Revert.
12722 * amd64-dicos-tdep.c: Revert.
12723 * amd64-darwin-tdep.c: Revert.
12724 * amd64-bsd-nat.c: Revert.
12725 * alpha-tdep.c: Revert.
12726 * alpha-obsd-tdep.c: Revert.
12727 * alpha-nbsd-tdep.c: Revert.
12728 * alpha-mdebug-tdep.c: Revert.
12729 * alpha-linux-tdep.c: Revert.
12730 * alpha-linux-nat.c: Revert.
12731 * alpha-bsd-tdep.c: Revert.
12732 * alpha-bsd-nat.c: Revert.
12733 * aix-thread.c: Revert.
12734 * agent.c: Revert.
12735 * addrmap.c: Revert.
12736 * ada-varobj.c: Revert.
12737 * ada-valprint.c: Revert.
12738 * ada-typeprint.c: Revert.
12739 * ada-tasks.c: Revert.
12740 * ada-lang.c: Revert.
12741 * aarch64-tdep.c: Revert.
12742 * aarch64-ravenscar-thread.c: Revert.
12743 * aarch64-newlib-tdep.c: Revert.
12744 * aarch64-linux-tdep.c: Revert.
12745 * aarch64-linux-nat.c: Revert.
12746 * aarch64-fbsd-tdep.c: Revert.
12747 * aarch64-fbsd-nat.c: Revert.
12748 * aarch32-linux-nat.c: Revert.
12749
d55e5aa6
TT
127502019-04-05 Tom Tromey <tom@tromey.com>
12751
12752 * ft32-tdep.c: Sort headers.
12753 * frv-tdep.c: Sort headers.
12754 * frv-linux-tdep.c: Sort headers.
12755 * frame.c: Sort headers.
12756 * frame-unwind.c: Sort headers.
12757 * frame-base.c: Sort headers.
12758 * fork-child.c: Sort headers.
12759 * findvar.c: Sort headers.
12760 * findcmd.c: Sort headers.
12761 * filesystem.c: Sort headers.
12762 * filename-seen-cache.h: Sort headers.
12763 * filename-seen-cache.c: Sort headers.
12764 * fbsd-tdep.c: Sort headers.
12765 * fbsd-nat.h: Sort headers.
12766 * fbsd-nat.c: Sort headers.
12767 * f-valprint.c: Sort headers.
12768 * f-typeprint.c: Sort headers.
12769 * f-lang.c: Sort headers.
12770 * extension.h: Sort headers.
12771 * extension.c: Sort headers.
12772 * extension-priv.h: Sort headers.
12773 * expprint.c: Sort headers.
12774 * exec.h: Sort headers.
12775 * exec.c: Sort headers.
12776 * exceptions.c: Sort headers.
12777 * event-top.c: Sort headers.
12778 * event-loop.c: Sort headers.
12779 * eval.c: Sort headers.
12780 * elfread.c: Sort headers.
12781 * dwarf2read.h: Sort headers.
12782 * dwarf2read.c: Sort headers.
12783 * dwarf2loc.c: Sort headers.
12784 * dwarf2expr.h: Sort headers.
12785 * dwarf2expr.c: Sort headers.
12786 * dwarf2-frame.c: Sort headers.
12787 * dwarf2-frame-tailcall.c: Sort headers.
12788 * dwarf-index-write.h: Sort headers.
12789 * dwarf-index-write.c: Sort headers.
12790 * dwarf-index-common.c: Sort headers.
12791 * dwarf-index-cache.h: Sort headers.
12792 * dwarf-index-cache.c: Sort headers.
12793 * dummy-frame.c: Sort headers.
12794 * dtrace-probe.c: Sort headers.
12795 * disasm.h: Sort headers.
12796 * disasm.c: Sort headers.
12797 * disasm-selftests.c: Sort headers.
12798 * dictionary.c: Sort headers.
12799 * dicos-tdep.c: Sort headers.
12800 * demangle.c: Sort headers.
12801 * dcache.h: Sort headers.
12802 * dcache.c: Sort headers.
12803 * darwin-nat.h: Sort headers.
12804 * darwin-nat.c: Sort headers.
12805 * darwin-nat-info.c: Sort headers.
12806 * d-valprint.c: Sort headers.
12807 * d-namespace.c: Sort headers.
12808 * d-lang.c: Sort headers.
12809 * ctf.c: Sort headers.
12810 * csky-tdep.c: Sort headers.
12811 * csky-linux-tdep.c: Sort headers.
12812 * cris-tdep.c: Sort headers.
12813 * cris-linux-tdep.c: Sort headers.
12814 * cp-valprint.c: Sort headers.
12815 * cp-support.c: Sort headers.
12816 * cp-namespace.c: Sort headers.
12817 * cp-abi.c: Sort headers.
12818 * corelow.c: Sort headers.
12819 * corefile.c: Sort headers.
12820 * continuations.c: Sort headers.
12821 * completer.h: Sort headers.
12822 * completer.c: Sort headers.
12823 * complaints.c: Sort headers.
12824 * coffread.c: Sort headers.
12825 * coff-pe-read.c: Sort headers.
12826 * cli-out.h: Sort headers.
12827 * cli-out.c: Sort headers.
12828 * charset.c: Sort headers.
12829 * c-varobj.c: Sort headers.
12830 * c-valprint.c: Sort headers.
12831 * c-typeprint.c: Sort headers.
12832 * c-lang.c: Sort headers.
12833 * buildsym.c: Sort headers.
12834 * buildsym-legacy.c: Sort headers.
12835 * build-id.h: Sort headers.
12836 * build-id.c: Sort headers.
12837 * btrace.c: Sort headers.
12838 * bsd-uthread.c: Sort headers.
12839 * breakpoint.h: Sort headers.
12840 * breakpoint.c: Sort headers.
12841 * break-catch-throw.c: Sort headers.
12842 * break-catch-syscall.c: Sort headers.
12843 * break-catch-sig.c: Sort headers.
12844 * blockframe.c: Sort headers.
12845 * block.c: Sort headers.
12846 * bfin-tdep.c: Sort headers.
12847 * bfin-linux-tdep.c: Sort headers.
12848 * bfd-target.c: Sort headers.
12849 * bcache.c: Sort headers.
12850 * ax-general.c: Sort headers.
12851 * ax-gdb.h: Sort headers.
12852 * ax-gdb.c: Sort headers.
12853 * avr-tdep.c: Sort headers.
12854 * auxv.c: Sort headers.
12855 * auto-load.c: Sort headers.
12856 * arm-wince-tdep.c: Sort headers.
12857 * arm-tdep.c: Sort headers.
12858 * arm-symbian-tdep.c: Sort headers.
12859 * arm-pikeos-tdep.c: Sort headers.
12860 * arm-obsd-tdep.c: Sort headers.
12861 * arm-nbsd-tdep.c: Sort headers.
12862 * arm-nbsd-nat.c: Sort headers.
12863 * arm-linux-tdep.c: Sort headers.
12864 * arm-linux-nat.c: Sort headers.
12865 * arm-fbsd-tdep.c: Sort headers.
12866 * arm-fbsd-nat.c: Sort headers.
12867 * arm-bsd-tdep.c: Sort headers.
12868 * arch-utils.c: Sort headers.
12869 * arc-tdep.c: Sort headers.
12870 * arc-newlib-tdep.c: Sort headers.
12871 * annotate.h: Sort headers.
12872 * annotate.c: Sort headers.
12873 * amd64-windows-tdep.c: Sort headers.
12874 * amd64-windows-nat.c: Sort headers.
12875 * amd64-tdep.c: Sort headers.
12876 * amd64-sol2-tdep.c: Sort headers.
12877 * amd64-obsd-tdep.c: Sort headers.
12878 * amd64-obsd-nat.c: Sort headers.
12879 * amd64-nbsd-tdep.c: Sort headers.
12880 * amd64-nbsd-nat.c: Sort headers.
12881 * amd64-nat.c: Sort headers.
12882 * amd64-linux-tdep.c: Sort headers.
12883 * amd64-linux-nat.c: Sort headers.
12884 * amd64-fbsd-tdep.c: Sort headers.
12885 * amd64-fbsd-nat.c: Sort headers.
12886 * amd64-dicos-tdep.c: Sort headers.
12887 * amd64-darwin-tdep.c: Sort headers.
12888 * amd64-bsd-nat.c: Sort headers.
12889 * alpha-tdep.c: Sort headers.
12890 * alpha-obsd-tdep.c: Sort headers.
12891 * alpha-nbsd-tdep.c: Sort headers.
12892 * alpha-mdebug-tdep.c: Sort headers.
12893 * alpha-linux-tdep.c: Sort headers.
12894 * alpha-linux-nat.c: Sort headers.
12895 * alpha-bsd-tdep.c: Sort headers.
12896 * alpha-bsd-nat.c: Sort headers.
12897 * aix-thread.c: Sort headers.
12898 * agent.c: Sort headers.
12899 * addrmap.c: Sort headers.
12900 * ada-varobj.c: Sort headers.
12901 * ada-valprint.c: Sort headers.
12902 * ada-typeprint.c: Sort headers.
12903 * ada-tasks.c: Sort headers.
12904 * ada-lang.c: Sort headers.
12905 * aarch64-tdep.c: Sort headers.
12906 * aarch64-ravenscar-thread.c: Sort headers.
12907 * aarch64-newlib-tdep.c: Sort headers.
12908 * aarch64-linux-tdep.c: Sort headers.
12909 * aarch64-linux-nat.c: Sort headers.
12910 * aarch64-fbsd-tdep.c: Sort headers.
12911 * aarch64-fbsd-nat.c: Sort headers.
12912 * aarch32-linux-nat.c: Sort headers.
12913
699bd4cf
TT
129142019-04-04 Tom Tromey <tom@tromey.com>
12915
12916 * varobj.c (varobj_create): Update.
12917 * rust-exp.y (struct rust_parser) <update_innermost_block,
12918 lookup_symbol>: New methods.
12919 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
12920 Rename.
12921 (rust_parser::rust_lookup_type)
12922 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
12923 * printcmd.c (display_command, do_one_display): Update.
12924 * parser-defs.h (struct parser_state) <parser_state>: Add
12925 "tracker" parameter.
12926 (block_tracker): New member.
12927 (class innermost_block_tracker) <innermost_block_tracker>: Add
12928 "types" parameter.
12929 <reset>: Remove method.
12930 (innermost_block): Don't declare.
12931 (null_post_parser): Update.
12932 * parse.c (innermost_block): Remove global.
12933 (write_dollar_variable): Update.
12934 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
12935 Remove "tracker_types" parameter.
12936 (parse_expression): Add "tracker" parameter.
12937 (parse_expression_for_completion): Update.
12938 (null_post_parser): Add "tracker" parameter.
12939 * p-exp.y: Update rules.
12940 * m2-exp.y: Update rules.
12941 * language.h (struct language_defn) <la_post_parser>: Add
12942 "tracker" parameter.
12943 * go-exp.y: Update rules.
12944 * f-exp.y: Update rules.
12945 * expression.h (parse_expression, parse_exp_1): Add "tracker"
12946 parameter.
12947 * d-exp.y: Update rules.
12948 * c-exp.y: Update rules.
12949 * breakpoint.c (set_breakpoint_condition): Create an
12950 innermost_block_tracker.
12951 (watch_command_1): Likewise.
12952 * ada-lang.c (resolve): Add "tracker" parameter.
12953 (resolve_subexp): Likewise.
12954 * ada-exp.y (write_var_from_sym): Update.
12955
dac43e32
TT
129562019-04-04 Tom Tromey <tom@tromey.com>
12957
12958 * type-stack.h: New file.
12959 * type-stack.c: New file.
12960 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
12961 type-stack.h.
12962 (insert_into_type_stack, insert_type, push_type, push_type_int)
12963 (insert_type_address_space, pop_type, pop_type_int)
12964 (pop_typelist, pop_type_stack, append_type_stack)
12965 (push_type_stack, get_type_stack, push_typelist)
12966 (follow_type_instance_flags, follow_types): Don't declare.
12967 * parse.c (type_stack): Remove global.
12968 (parse_exp_in_context): Update.
12969 (insert_into_type_stack, insert_type, push_type, push_type_int)
12970 (insert_type_address_space, pop_type, pop_type_int)
12971 (pop_typelist, pop_type_stack, append_type_stack)
12972 (push_type_stack, get_type_stack, push_typelist)
12973 (follow_type_instance_flags, follow_types): Remove (moved to
12974 type-stack.c).
12975 * f-exp.y (type_stack): New global.
12976 Update rules.
12977 (push_kind_type, f_parse): Update.
12978 * d-exp.y (type_stack): New global.
12979 Update rules.
12980 (d_parse): Update.
12981 * c-exp.y (struct c_parse_state) <type_stack>: New member.
12982 Update rules.
12983 * Makefile.in (COMMON_SFILES): Add type-stack.c.
12984 (HFILES_NO_SRCDIR): Add type-stack.h.
12985
2a612529
TT
129862019-04-04 Tom Tromey <tom@tromey.com>
12987
12988 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
12989 (rust_parser::convert_ast_to_expression, rust_parse)
12990 (rust_lex_test_completion, rust_lex_tests): Update.
12991 * parser-defs.h (struct expr_completion_state): New.
12992 (struct parser_state) <parser_state>: Add completion parameter.
12993 <mark_struct_expression, mark_completion_tag>: New methods.
12994 <parse_completion, m_completion_state>: New members.
12995 (prefixify_expression, null_post_parser): Update.
12996 (mark_struct_expression, mark_completion_tag): Don't declare.
12997 * parse.c (parse_completion, expout_last_struct)
12998 (expout_tag_completion_type, expout_completion_name): Remove
12999 globals.
13000 (parser_state::mark_struct_expression)
13001 (parser_state::mark_completion_tag): Now methods.
13002 (prefixify_expression): Add last_struct parameter.
13003 (prefixify_subexp): Likewise.
13004 (parse_exp_1): Update.
13005 (parse_exp_in_context): Add cstate parameter. Update.
13006 (parse_expression_for_completion): Create an
13007 expr_completion_state.
13008 (null_post_parser): Add "completion" parameter.
13009 * p-exp.y: Update rules.
13010 (yylex): Update.
13011 * language.h (struct language_defn) <la_post_parser>: Add
13012 "completing" parameter.
13013 * go-exp.y: Update rules.
13014 (lex_one_token): Update.
13015 * expression.h (parse_completion): Don't declare.
13016 * d-exp.y: Update rules.
13017 (lex_one_token): Update rules.
13018 * c-exp.y: Update rules.
13019 (lex_one_token): Update.
13020 * ada-lang.c (resolve): Add "parse_completion" parameter.
13021 (resolve_subexp): Likewise.
13022 (ada_resolve_function): Likewise.
13023
43476f0b
TT
130242019-04-04 Tom Tromey <tom@tromey.com>
13025
13026 * parser-defs.h (struct parser_state) <start_arglist,
13027 end_arglist>: New methods.
13028 <arglist_len, m_funcall_chain>: New members.
13029 (arglist_len, start_arglist, end_arglist): Don't declare.
13030 * parse.c (arglist_len, funcall_chain): Remove global.
13031 (start_arglist, end_arglist): Remove functions.
13032 (parse_exp_in_context): Update.
13033 * p-exp.y: Update rules.
13034 * m2-exp.y: Update rules.
13035 * go-exp.y: Update rules.
13036 * f-exp.y: Update rules.
13037 * d-exp.y: Update rules.
13038 * c-exp.y: Update rules.
13039
5776fca3
TT
130402019-04-04 Tom Tromey <tom@tromey.com>
13041
13042 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
13043 lex_operator, push_back>: New methods.
13044 Update all rules.
13045 (rust_parser::lex_hex, lex_escape): Rename and update.
13046 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
13047 (rust_parser::lex_operator): Rename and update.
13048 (rust_parser::lex_number, rustyylex, rustyyerror)
13049 (rust_lex_test_init, rust_lex_test_sequence)
13050 (rust_lex_test_push_back, rust_lex_tests): Update.
13051 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
13052 parameter.
13053 <lexptr, prev_lexptr>: New members.
13054 (lexptr, prev_lexptr): Don't declare.
13055 * parse.c (lexptr, prev_lexptr): Remove globals.
13056 (parse_exp_in_context): Update.
13057 * p-exp.y (yylex, yyerror): Update.
13058 * m2-exp.y (parse_number, yylex, yyerror): Update.
13059 * go-exp.y (lex_one_token, yyerror): Update.
13060 * f-exp.y (match_string_literal, yylex, yyerror): Update.
13061 * d-exp.y (lex_one_token, yyerror): Update.
13062 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
13063 (lex_one_token, yyerror): Update.
13064 * ada-lex.l (YY_INPUT): Update.
13065 (rewind_to_char): Update.
13066 * ada-exp.y (yyerror): Update.
13067
8621b685
TT
130682019-04-04 Tom Tromey <tom@tromey.com>
13069
13070 * rust-exp.y (rustyylex, rust_lex_tests): Update.
13071 * parser-defs.h (struct parser_state) <parser_state>: Add new
13072 parameter.
13073 <comma_terminates>: New member.
13074 (comma_terminates): Don't declare global.
13075 * parse.c (comma_terminates): Remove global.
13076 (parse_exp_in_context): Update.
13077 * p-exp.y (yylex): Update.
13078 * m2-exp.y (yylex): Update.
13079 * go-exp.y (lex_one_token): Update.
13080 * f-exp.y (yylex): Update.
13081 * d-exp.y (lex_one_token): Update.
13082 * c-exp.y (lex_one_token): Update.
13083 * ada-lex.l: Update.
13084
28aaf3fd
TT
130852019-04-04 Tom Tromey <tom@tromey.com>
13086
13087 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
13088 (rustyylex, rust_lex_test_init, rust_lex_test_one)
13089 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
13090 * parser-defs.h (paren_depth): Don't declare.
13091 * parse.c (paren_depth): Remove global.
13092 (parse_exp_in_context): Update.
13093 * p-exp.y (paren_depth): New global.
13094 (pascal_parse): Initialize it.
13095 * m2-exp.y (paren_depth): New global.
13096 (m2_parse): Initialize it.
13097 * go-exp.y (paren_depth): New global.
13098 (go_parse): Initialize it.
13099 * f-exp.y (paren_depth): New global.
13100 (f_parse): Initialize it.
13101 * d-exp.y (paren_depth): New global.
13102 (d_parse): Initialize it.
13103 * c-exp.y (paren_depth): New global.
13104 (c_parse): Initialize it.
13105 * ada-lex.l (paren_depth): New global.
13106 (lexer_init): Initialize it.
13107
1e58a4a4
TT
131082019-04-04 Tom Tromey <tom@tromey.com>
13109
13110 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
13111 (rust_parser::convert_ast_to_type)
13112 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
13113 * parser-defs.h (struct parser_state) <parser_state>: Add
13114 parameters. Initialize new members.
13115 <expression_context_block, expression_context_pc>: New members.
13116 * parse.c (expression_context_block, expression_context_pc):
13117 Remove globals.
13118 (parse_exp_in_context): Update.
13119 * p-exp.y: Update all rules.
13120 (yylex): Update.
13121 * m2-exp.y: Update all rules.
13122 (yylex): Update.
13123 * go-exp.y (yylex): Update.
13124 * f-exp.y (yylex): Update.
13125 * d-exp.y: Update all rules.
13126 (yylex): Update.
13127 * c-exp.y: Update all rules.
13128 (lex_one_token, classify_name, yylex, c_parse): Update.
13129 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
13130
37eedb39
TT
131312019-04-04 Tom Tromey <tom@tromey.com>
13132
13133 * gdbarch.h, gdbarch.c: Rebuild.
13134 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
13135 * stap-probe.h:
13136 (struct stap_parse_info): Replace "parser_state" with
13137 "expr_builder".
13138 * parser-defs.h (struct expr_builder): Rename from "parser_state".
13139 (parser_state): New class.
13140 * parse.c (expr_builder): Rename.
13141 (expr_builder::release): Rename.
13142 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
13143 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
13144 (write_exp_elt_longcst, write_exp_elt_floatcst)
13145 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
13146 (write_exp_string_vector, write_exp_bitstring)
13147 (write_exp_msymbol, mark_struct_expression)
13148 (write_dollar_variable)
13149 (insert_type_address_space, increase_expout_size): Replace
13150 "parser_state" with "expr_builder".
13151 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
13152 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
13153 "parser_state" with "expr_builder".
13154
73923d7e
TT
131552019-04-04 Tom Tromey <tom@tromey.com>
13156
13157 * rust-exp.y: Replace "parse_language" with method call.
13158 * p-exp.y:
13159 (yylex): Replace "parse_language" with method call.
13160 * m2-exp.y:
13161 (yylex): Replace "parse_language" with method call.
13162 * go-exp.y (classify_name): Replace "parse_language" with method
13163 call.
13164 * f-exp.y (yylex): Replace "parse_language" with method call.
13165 * d-exp.y (lex_one_token): Replace "parse_language" with method
13166 call.
13167 * c-exp.y:
13168 (lex_one_token, classify_name, yylex): Replace "parse_language"
13169 with method call.
13170 * ada-exp.y (find_primitive_type, type_char)
13171 (type_system_address): Replace "parse_language" with method call.
13172
fa9f5be6
TT
131732019-04-04 Tom Tromey <tom@tromey.com>
13174
13175 * rust-exp.y: Replace "parse_gdbarch" with method call.
13176 * parse.c (write_dollar_variable, insert_type_address_space):
13177 Replace "parse_gdbarch" with method call.
13178 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
13179 call.
13180 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
13181 call.
13182 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
13183 "parse_gdbarch" with method call.
13184 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
13185 with method call.
13186 * f-exp.y (parse_type, parse_f_type, yylex): Replace
13187 "parse_gdbarch" with method call.
13188 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
13189 "parse_gdbarch" with method call.
13190 * c-exp.y (parse_type, parse_number, classify_name): Replace
13191 "parse_gdbarch" with method call.
13192 * ada-lex.l: Replace "parse_gdbarch" with method call.
13193 * ada-exp.y (parse_type, find_primitive_type, type_char)
13194 (type_system_address): Replace "parse_gdbarch" with method call.
13195
1201a264
TT
131962019-04-04 Tom Tromey <tom@tromey.com>
13197
13198 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
13199 * stap-probe.c (stap_parse_argument): Update.
13200 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
13201 initial_size parameter.
13202 * rust-exp.y (rust_lex_tests): Update.
13203 * parse.c (parser_state): Update.
13204 (parse_exp_in_context): Update.
13205 * parser-defs.h (struct parser_state) <parser_state>: Remove
13206 "initial_size" parameter.
13207
e3980ce2
TT
132082019-04-04 Tom Tromey <tom@tromey.com>
13209
13210 * parser-defs.h (increase_expout_size): Don't declare.
13211 * parse.c (increase_expout_size): Now static.
13212
e9f8e3f1
TS
132132019-04-04 Thomas Schwinge <thomas@codesourcery.com>
13214
13215 * gnu-nat.c (gnu_nat_target::wait): Fix
13216 target_waitstatus_to_string call.
13217
d7df6549
AB
132182019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
13219
13220 * eval.c (evaluate_subexp_standard): Handle internal functions
13221 during Fortran function call handling.
13222
8bdc1658
AB
132232019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
13224
13225 * NEWS: Mention new internal functions.
13226 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
13227 (read_base_type): Use dwarf2_init_complex_target_type.
13228 * value.c (creal_internal_fn): New function.
13229 (cimag_internal_fn): New function.
13230 (_initialize_values): Register new internal functions.
13231
c29705b7
PW
132322019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13233
13234 * infrun.c (stop_all_threads): If debug_infrun, always
13235 trace the wait status after wait_one, using
13236 target_waitstatus_to_string and target_pid_to_str.
13237 (handle_inferior_event): Replace various trace of
13238 wait status kind by a single trace.
13239 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
13240 wait status kind image by target_waitstatus_to_string.
13241 * target/waitstatus.c (target_waitstatus_to_string): Fix
13242 obsolete comment.
13243
05caa1d2
TT
132442019-04-01 Tom Tromey <tromey@adacore.com>
13245
13246 PR symtab/23331:
13247 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
13248
9d1447e0
SDJ
132492019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
13250 Pedro Alves <palves@redhat.com>
13251
13252 * top.c (quit_force): Call 'finalize_values'.
13253 * value.c (finalize_values): New function.
13254 * value.h (finalize_values): Declare.
13255
7734102d
EZ
132562019-03-30 Eli Zaretskii <eliz@gnu.org>
13257
13258 * NEWS: Announce $_gdb_major and $_gdb_minor.
13259
13260 * top.c (init_gdb_version_vars): New function.
13261 (gdb_init): Call init_gdb_version_vars.
13262
188e1fa9
TT
132632019-03-29 Tom Tromey <tromey@adacore.com>
13264
13265 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
13266 help text. Remove dead code.
13267
2880242d
KS
132682019-03-29 Keith Seitz <keiths@redhat.com>
13269
13270 From Siddhesh Poyarekar:
13271 * f-lang.h (f77_get_upperbound): Return LONGEST.
13272 (f77_get_lowerbound): Likewise.
13273 * f-typeprint.c (f_type_print_varspec_suffix): Expand
13274 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
13275 print them.
13276 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
13277 plongest to format print it.
13278 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
13279 (f77_get_upperbound): Likewise.
13280 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
13281 LOWER_BOUND to LONGEST.
13282 (f77_create_arrayprint_offset_tbl): Likewise.
13283
cc1defb1
KS
132842019-03-29 Keith Seitz <keiths@redhat.com>
13285
13286 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
13287 %s/pulongest for TYPE_LENGTH instead of %d in format
13288 strings.
13289 * ada-typerint.c (ada_print_type): Likewise.
13290 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
13291 * compile/compile-c-support.c (generate_register_struct): Likewise.
13292 * gdbtypes.c (recursive_dump_type): Likewise.
13293 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
13294 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
13295 instead of %d in format strings.
13296 * riscv-tdep.c (riscv_type_alignment): Cast second argument
13297 to std::min to ULONGEST.
13298 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
13299 instead of %d in format strings.
13300 * tracepoint.c (info_scope_command): Likewise.
13301 * typeprint.c (print_offset_data::update)
13302 (print_offset_data::finish): Likewise.
13303 * xtensa-tdep.c (xtensa_store_return_value)
13304 (xtensa_push_dummy_call): Likewise.
13305
e432ccf1
JT
133062019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
13307
13308 * windows-nat.c (display_selector): Fixed format specifications
13309 for 64-bit Cygwin.
13310
65d2b333
PW
133112019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13312
13313 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
13314
f489207e
SL
133152019-03-28 Sandra Loosemore <sandra@codesourcery.com>
13316
13317 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
13318 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
13319 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
13320 (nios2_linux_init_abi): Install it.
13321
bffa1015
AH
133222019-03-28 Alan Hayward <alan.hayward@arm.com>
13323
13324 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
13325
fc96163a
AH
133262019-03-28 Alan Hayward <alan.hayward@arm.com>
13327
13328 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
13329
20dc7e9b
PW
133302019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13331 Tom Tromey <tromey@adacore.com>
13332
13333 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
13334
7f5331a8
JB
133352019-03-26 Joel Brobecker <brobecker@adacore.com>
13336
13337 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
13338 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
13339 method to compute the bounds of range types. Also print "[evaluated]"
13340 if the bounds' values come from a dynamic evaluation.
13341
18c77628
AB
133422019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
13343
13344 * cp-valprint.c (cp_print_value_fields): Don't print trailing
13345 whitespace when pretty printing is on.
13346
53c973f2
AH
133472019-03-26 Alan Hayward <alan.hayward@arm.com>
13348
e79be6e5 13349 * ppc-linux-nat.c: Add include.
53c973f2 13350
d851aa71
AH
133512019-03-26 Alan Hayward <alan.hayward@arm.com>
13352
e79be6e5 13353 * NEWS: Mention AArch64 Pointer Authentication.
d851aa71 13354
2fe7bab7
AH
133552019-03-26 Alan Hayward <alan.hayward@arm.com>
13356
e79be6e5 13357 * arm-linux-nat.c: Add include.
2fe7bab7 13358
068ef30e
SM
133592019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
13360
13361 * source-cache.c (source_cache::get_source_lines): Re-read
13362 fullname after calling open_source_file.
13363
81a24d04
JB
133642019-03-25 John Baldwin <jhb@FreeBSD.org>
13365
13366 * NEWS: Mention TLS support for FreeBSD.
13367
79e7ae11
TT
133682019-03-25 Tom Tromey <tromey@adacore.com>
13369
13370 * minsyms.c (BUNCH_SIZE): Update comment.
13371 (~minimal_symbol_reader): Remove old comment.
13372 (compact_minimal_symbols): Update comment.
13373 (minimal_symbol_reader::install): Remove old comment. Update
13374 other comments.
13375
d45963c2
AH
133762019-03-25 Alan Hayward <alan.hayward@arm.com>
13377
13378 * s390-linux-nat.c: Add include.
13379
0f83012e
AH
133802019-03-25 Alan Hayward <alan.hayward@arm.com>
13381
13382 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
13383 Call linux_get_hwcap.
13384 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
13385 Likewise.
13386 (aarch64_linux_get_hwcap): Remove function.
13387 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
13388 declaration.
13389 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
13390 linux_get_hwcap.
13391 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
13392 * linux-tdep.c (linux_get_hwcap): Add function.
13393 (linux_get_hwcap2): Likewise.
13394 * linux-tdep.h (linux_get_hwcap): Add declaration.
13395 (linux_get_hwcap2): Likewise.
13396 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
13397 (ppc_linux_get_hwcap2): Likewise.
13398 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
13399 linux_get_hwcap.
13400 (ppc_linux_nat_target::insert_watchpoint): Likewise.
13401 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
13402 (ppc_linux_nat_target::read_description): Likewise.
13403 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
13404 * s390-linux-nat.c: Likewise.
13405 * s390-linux-tdep.c (s390_core_read_description): Likewise.
13406
6640a367
TT
134072019-03-24 Tom Tromey <tom@tromey.com>
13408
13409 * ada-lang.c (standard_lookup): Simplify initialization.
13410 (ada_lookup_symbol_nonlocal): Simplify return.
13411 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
13412 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
13413 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
13414 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
13415 initialization.
13416 * solib.c (solib_global_lookup): Simplify.
13417 * symtab.c (null_block_symbol): Remove.
13418 (symbol_cache_lookup): Simplify returns.
13419 (lookup_language_this): Simplify returns.
13420 (lookup_symbol_aux): Simplify return.
13421 (lookup_local_symbol): Simplify returns.
13422 (lookup_global_symbol_from_objfile): Simplify return.
13423 (lookup_symbol_in_objfile_symtabs)
13424 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
13425 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
13426 (lookup_static_symbol, lookup_global_symbol): Simplify return.
13427 * cp-namespace.c (cp_lookup_bare_symbol)
13428 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
13429 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
13430 (cp_lookup_nested_symbol): Don't use null_block_symbol.
13431 (cp_lookup_symbol_via_imports): Simplify initialization.
13432 (find_symbol_in_baseclass): Likewise.
13433 * symtab.h (null_block_symbol): Remove.
13434 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
13435 (d_lookup_nested_symbol, d_lookup_symbol_imports)
13436 (d_lookup_symbol_module): Likewise.
13437 (find_symbol_in_baseclass): Simplify initialization.
13438
a930ebcd
TT
134392019-03-24 Tom Tromey <tom@tromey.com>
13440
13441 * expression.h: Don't include symtab.h.
13442 (struct block): Forward declare.
13443
582942f4
TT
134442019-03-24 Tom Tromey <tom@tromey.com>
13445
13446 * c-exp.y (typebase): Remove casts.
13447 * gdbtypes.c (lookup_unsigned_typename, )
13448 (lookup_signed_typename): Remove cast.
13449 * eval.c (parse_to_comma_and_eval): Remove cast.
13450 * parse.c (write_dollar_variable): Remove cast.
13451 * block.h (struct block) <superblock>: Now const.
13452 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
13453 * psymtab.c (psym_map_matching_symbols): Make "block" const.
13454 (map_block): Make "block" const.
13455 * symfile.h (struct quick_symbol_functions)
13456 <map_matching_symbols>: Constify block argument to "callback".
13457 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
13458 const.
13459 (find_pc_sect_compunit_symtab): Make "b" const.
13460 (find_symbol_at_address): Likewise.
13461 (search_symbols): Likewise.
13462 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
13463 (dw2_debug_names_lookup_symbol): Likewise.
13464 (dw2_map_matching_symbols): Update.
13465 * p-valprint.c (pascal_val_print): Remove "block".
13466 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
13467 (aux_add_nonlocal_symbols): Make "block" const.
13468 (resolve_subexp): Remove cast.
13469 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
13470 const.
13471 (iterate_over_file_blocks): Likewise.
13472 * f-exp.y (%union) <bval>: Remove.
13473 * coffread.c (patch_opaque_types): Make "b" const.
13474 * spu-tdep.c (spu_catch_start): Make "block" const.
13475 * c-valprint.c (print_unpacked_pointer): Remove "block".
13476 * symmisc.c (dump_symtab_1): Make "b" const.
13477 (block_depth): Make "block" const.
13478 * d-exp.y (%union) <bval>: Remove.
13479 * cp-support.h (cp_lookup_rtti_type): Update.
13480 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
13481 * psymtab.c (psym_lookup_symbol): Make "block" const.
13482 (maintenance_check_psymtabs): Make "b" const.
13483 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
13484 (enumerate_locals, enumerate_args): Update.
13485 * python/py-symtab.c (stpy_global_block): Make "block" const.
13486 (stpy_static_block): Likewise.
13487 * inline-frame.c (block_starting_point_at): Make "new_block"
13488 const.
13489 * block.c (find_block_in_blockvector): Make return type const.
13490 (blockvector_for_pc_sect): Make "b" const.
13491 (find_block_in_blockvector): Make "b" const.
13492
7ad417dd
TT
134932019-03-23 Tom Tromey <tom@tromey.com>
13494
13495 * varobj.c (varobj_create): Update.
13496 * symfile.c (clear_symtab_users): Don't reset innermost_block.
13497 * printcmd.c (display_command, do_one_display): Don't reset
13498 innermost_block.
13499 * parser-defs.h (enum innermost_block_tracker_type): Move to
13500 expression.h.
13501 (innermost_block): Update comment.
13502 * parse.c (parse_exp_1): Add tracker_types parameter.
13503 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
13504 tracker_types parameter. Reset innermost_block.
13505 (parse_exp_in_context): Remove.
13506 (parse_expression_for_completion): Update.
13507 * objfiles.c (~objfile): Don't reset expression_context_block or
13508 innermost_block.
13509 * expression.h (enum innermost_block_tracker_type): Move from
13510 parser-defs.h.
13511 (parse_exp_1): Add tracker_types parameter.
13512 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
13513 reset innermost_block.
13514
b366c208
TT
135152019-03-23 Tom Tromey <tom@tromey.com>
13516
13517 * objfiles.h: Include bcache.h.
13518
9bb9b2f9
TT
135192019-03-23 Tom Tromey <tom@tromey.com>
13520
13521 * linespec.c (get_current_search_block): Use
13522 scoped_restore_current_language.
13523 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
13524
59c28372
AH
135252019-03-22 Alan Hayward <alan.hayward@arm.com>
13526 Jiong Wang <jiong.wang@arm.com>
13527
13528 * aarch64-linux-tdep.c
13529 (aarch64_linux_iterate_over_regset_sections): Check for pauth
13530 section.
13531 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
13532
17e116a7
AH
135332019-03-22 Alan Hayward <alan.hayward@arm.com>
13534 Jiong Wang <jiong.wang@arm.com>
13535
13536 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
13537 instructions.
13538 (aarch64_analyze_prologue_test): Add PACIASP test.
13539 (aarch64_prologue_prev_register): Unmask PC value.
13540
11e1b75f
AH
135412019-03-22 Alan Hayward <alan.hayward@arm.com>
13542 Jiong Wang <jiong.wang@arm.com>
13543
13544 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
13545 (aarch64_dwarf2_prev_register): Unmask PC value.
13546 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
13547 (aarch64_execute_dwarf_cfa_vendor_op): Check for
13548 DW_CFA_AARCH64_negate_ra_state.
13549 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
13550
34dcc7cf
AH
135512019-03-22 Alan Hayward <alan.hayward@arm.com>
13552 Jiong Wang <jiong.wang@arm.com>
13553
13554 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
13555 registers.
13556 (aarch64_pseudo_register_name): Likewise.
13557 (aarch64_pseudo_register_type): Likewise.
13558 (aarch64_pseudo_register_reggroup_p): Likewise.
13559 (aarch64_gdbarch_init): Add pauth registers.
13560 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
13561 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
13562 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
13563 (struct gdbarch_tdep): Add regnum for ra_state.
13564
1ef53e6b
AH
135652019-03-22 Alan Hayward <alan.hayward@arm.com>
13566 Jiong Wang <jiong.wang@arm.com>
13567
13568 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
13569
76bed0fd
AH
135702019-03-22 Alan Hayward <alan.hayward@arm.com>
13571 Jiong Wang <jiong.wang@arm.com>
13572
13573 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
13574 function.
13575 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
13576 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
13577 (aarch64_gdbarch_init): Add puth registers.
13578 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
13579 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
13580 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
13581
ee4fbcfa
AH
135822019-03-22 Alan Hayward <alan.hayward@arm.com>
13583 Jiong Wang <jiong.wang@arm.com>
13584
13585 * aarch64-linux-nat.c
13586 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
13587 * aarch64-linux-tdep.c
13588 (aarch64_linux_core_read_description): Likewise.
13589 (aarch64_linux_get_hwcap): New function.
13590 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
13591 (aarch64_linux_get_hwcap): New declaration.
13592
6dc0ebde
AH
135932019-03-22 Alan Hayward <alan.hayward@arm.com>
13594 Jiong Wang <jiong.wang@arm.com>
13595
13596 * aarch64-linux-nat.c
13597 (aarch64_linux_nat_target::read_description): Add pauth param.
13598 * aarch64-linux-tdep.c
13599 (aarch64_linux_core_read_description): Likewise.
13600 * aarch64-tdep.c (struct target_desc): Add in pauth.
13601 (aarch64_read_description): Add pauth param.
13602 (aarch64_gdbarch_init): Likewise.
13603 * aarch64-tdep.h (aarch64_read_description): Likewise.
13604 * arch/aarch64.c (aarch64_create_target_description): Likewise.
13605 * arch/aarch64.h (aarch64_create_target_description): Likewise.
13606 * features/Makefile: Add new files.
13607 * features/aarch64-pauth.c: New file.
13608 * features/aarch64-pauth.xml: New file.
13609
595915c1
TT
136102019-03-20 Tom Tromey <tromey@adacore.com>
13611
13612 * infrun.c (handle_inferior_event): Rename from
13613 handle_inferior_event_1. Create a scoped_value_mark.
13614 (handle_inferior_event): Remove.
13615
4c7d57e7
TT
136162019-03-19 Tom Tromey <tromey@adacore.com>
13617
13618 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
13619 * infrun.h (print_stop_event): Add "displays" parameter.
13620 * infrun.c (print_stop_event): Add "displays" parameter.
13621
cb246234
PA
136222019-03-19 Pedro Alves <palves@redhat.com>
13623
13624 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
13625 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
13626 to -1. Fix TABs vs spaces.
13627 (tui_ui_out::tui_ui_out): Don't initialize fields here.
13628 * tui/tui-out.h (tui_ui_out) Add intro comments.
13629 <m_line, m_start_of_line>: In-class initialize, and add describing
13630 comment.
13631
3a0e45b2
AH
136322019-03-18 Alan Hayward <alan.hayward@arm.com>
13633
13634 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
13635 variable names.
13636 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
13637
5371b850
PA
136382019-03-18 Pedro Alves <palves@redhat.com>
13639 Eli Zaretskii <eliz@gnu.org>
13640
13641 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
13642 m_line and m_start_of_line.
13643
b17c4cd0
EZ
136442019-03-18 Eli Zaretskii <eliz@gnu.org>
13645
13646 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
13647 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
13648 it returns a newline. This fixes a regression in TU mode, whereby
13649 the next line is output on the same screen line as the user input.
13650
4bd56d18
TT
136512019-03-18 Tom Tromey <tromey@adacore.com>
13652
13653 * minsyms.c (minimal_symbol_reader::install): Remove call to
13654 obstack_blank.
13655
55c10aca
PA
136562019-03-18 Pedro Alves <palves@redhat.com>
13657
13658 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
13659 New globals.
13660 (apply_style): New, factored out from ...
13661 (apply_ansi_escape): ... this. Handle reverse video mode.
13662 (tui_set_reverse_mode): New function.
13663 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
13664 * tui/tui-winsource.c (tui_show_source_line): Use
13665 tui_set_reverse_mode instead of setting A_STANDOUT.
13666 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
13667 New setter methods.
13668
647bb750
HD
136692019-03-18 Hannes Domani <ssbssa@yahoo.de>
13670
13671 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
13672 Handle tabs.
13673
bff8c71f
TT
136742019-03-18 Tom Tromey <tromey@adacore.com>
13675
13676 * ada-lang.c (empty_array): Add "high" parameter.
13677 (ada_evaluate_subexp): Update.
13678
58785d98
ST
136792019-03-17 Sergei Trofimovich <siarheit@google.com>
13680
13681 * unittests/string_view-selftests.c: Define
13682 _initialize_string_view_selftests unconditionally.
13683
d4cbef22
ВМ
136842019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
13685
13686 PR gdb/24350
13687 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
13688
fce4c071
ВМ
136892019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
13690
13691 PR gdb/24351
13692 * windows-nat.c (display_selector): Fix format specifiers.
13693
f7f0a123
EZ
136942019-03-17 Eli Zaretskii <eliz@gnu.org>
13695
13696 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
13697 tui_refill_source_window instead of tui_refresh_win, to update the
13698 current execution line. This fixes redisplay of the current line
13699 when stepping through the code with "next" or "step".
13700
ab42892f
EZ
137012019-03-16 Eli Zaretskii <eliz@gnu.org>
13702
13703 * source-cache.c (source_cache::get_source_lines): Call
13704 find_source_lines to initialize s->nlines. This fixes vertical
13705 scrolling of TUI source window when the DOWN arrow is pressed.
13706
8d8c087f
PW
137072019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13708
13709 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
13710 linux-thread-db.c (_initialize_thread_db): Likewise.
13711
798e1c30
EZ
137122019-03-16 Eli Zaretskii <eliz@gnu.org>
13713
13714 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
13715 wclrtoeol in tui_show_source_line". This reverts changes made in
13716 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
13717
eefba3da
TT
137182019-03-15 Tom Tromey <tom@tromey.com>
13719
13720 * symtab.h (struct minimal_symbol): Derive from
13721 general_symbol_info.
13722 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
13723 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
13724 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
13725 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
13726 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
13727 (MSYMBOL_SEARCH_NAME): Update.
13728 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
13729 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
13730 * minsyms.c (minimal_symbol_reader::record_full): Update.
13731
0de2420c
TT
137322019-03-15 Tom Tromey <tom@tromey.com>
13733
13734 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
13735
042d75e4
TT
137362019-03-15 Tom Tromey <tom@tromey.com>
13737
13738 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
13739 unique_xmalloc_ptr.
13740 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
13741 Update.
13742 * minsyms.c (lookup_minimal_symbol_by_pc_section)
13743 (build_minimal_symbol_hash_tables)
13744 (minimal_symbol_reader::install): Update.
13745
db92718b
TT
137462019-03-15 Tom Tromey <tom@tromey.com>
13747
13748 * symtab.c (create_demangled_names_hash): Update.
13749 (symbol_set_names): Update.
13750 * objfiles.h (struct objfile_per_bfd_storage)
13751 <demangled_names_hash>: Now an htab_up.
13752 * objfiles.c (objfile_per_bfd_storage): Simplify.
13753
d6797f46
TT
137542019-03-15 Tom Tromey <tom@tromey.com>
13755
13756 * objfiles.h (struct objfile_per_bfd_storage): Declare
13757 destructor.
13758 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
13759 New.
13760 (get_objfile_bfd_data): Use new. Don't initialize
13761 language_of_main.
13762 (free_objfile_per_bfd_storage): Remove.
13763 (objfile_bfd_data_free, objfile::~objfile): Use delete.
13764
741d7538
TT
137652019-03-15 Tom Tromey <tom@tromey.com>
13766
13767 * symfile.c (reread_symbols): Update.
13768 * objfiles.c (objfile::objfile): Update.
13769 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
13770 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
13771 comment.
13772 (minimal_symbol_reader::install): Update.
13773 (terminate_minimal_symbol_table): Remove.
13774 * jit.c (jit_object_close_impl): Update.
13775
788c80d1
TT
137762019-03-15 Tom Tromey <tom@tromey.com>
13777
13778 * minsyms.c (minimal_symbol_reader::record_full): Remove some
13779 initializations.
13780
1b7a07cb
TT
137812019-03-15 Tom Tromey <tom@tromey.com>
13782
13783 * objfiles.h (struct objfile_per_bfd_storage)
13784 <demangled_hash_languages>: Now a bitset.
13785 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
13786 (lookup_minimal_symbol): Update.
13787
3db066bc
TT
137882019-03-15 Tom Tromey <tom@tromey.com>
13789
13790 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
13791 Don't return the symbol.
13792 * coffread.c (record_minimal_symbol): Use record_full.
13793
3fff2c37
EZ
137942019-03-14 Eli Zaretskii <eliz@gnu.org>
13795
13796 The MS-Windows port of ncurses fails to switch to a color pair if
13797 one or both of the colors are the implicit default colors. This
13798 change records the default colors when TUI is initialized, and
13799 then specifies them explicitly when a color pair uses the default
13800 colors. This allows color styling in TUI mode on MS-Windows.
13801
13802 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
13803 ncurses_norm_attr.
13804 (tui_initialize_io) [__MINGW32__]: Record the default terminal
13805 colors in ncurses_norm_attr.
13806 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
13807 "none", replace it with the default color recorded in
13808 ncurses_norm_attr.
13809
3b336828
TT
138102019-03-14 Tom Tromey <tromey@adacore.com>
13811
13812 * source-cache.h (class source_cache) <get_source_lines>: Return
13813 std::string.
13814 * source-cache.c (source_cache::extract_lines): Handle case where
13815 first_pos==npos. Return std::string.
13816 (source_cache::get_source_lines): Update.
13817
d085f989
TT
138182019-03-14 Tom Tromey <tromey@adacore.com>
13819
13820 * NEWS: Add item for "style sources" commands.
13821 * source-cache.c (source_cache::get_source_lines): Check
13822 source_styling.
13823 * cli/cli-style.c (source_styling): New global.
13824 (_initialize_cli_style): Add "style sources" commands.
13825 (show_style_sources): New function.
13826 * cli/cli-style.h (source_styling): Declare.
13827
6f11e682
TT
138282019-03-14 Pedro Alves <palves@redhat.com>
13829 Tom Tromey <tromey@adacore.com>
13830
13831 * tui/tui-winsource.h (tui_refill_source_window): Declare.
13832 * tui/tui-winsource.c (tui_refill_source_window): New function,
13833 from...
13834 (tui_horizontal_source_scroll): ... here. Move some logic.
13835 * cli/cli-style.c (set_style_enabled): Notify new observable.
13836 * tui/tui-hooks.c (tui_redisplay_source): New function.
13837 (tui_attach_detach_observers): Attach or detach
13838 tui_redisplay_source.
13839 * observable.h (source_styling_changed): New observable.
13840 * observable.c: Define source_styling_changed observable.
13841
a068643d
TT
138422019-03-13 Tom Tromey <tromey@adacore.com>
13843
13844 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
13845 (i386_gnu_nat_target::store_registers): Update.
13846 * target-debug.h (target_debug_print_std_string): New macro.
13847 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
13848 * windows-tdep.c (display_one_tib): Update.
13849 * tui/tui-stack.c (tui_make_status_line): Update.
13850 * top.c (print_inferior_quit_action): Update.
13851 * thread.c (thr_try_catch_cmd): Update.
13852 (add_thread_with_info): Update.
13853 (thread_target_id_str): Update.
13854 (thr_try_catch_cmd): Update.
13855 (thread_command): Update.
13856 (thread_find_command): Update.
13857 * record-btrace.c (record_btrace_target::info_record)
13858 (record_btrace_resume_thread, record_btrace_target::resume)
13859 (record_btrace_cancel_resume, record_btrace_step_thread)
13860 (record_btrace_target::wait, record_btrace_target::wait)
13861 (record_btrace_target::wait, record_btrace_target::stop): Update.
13862 * progspace.c (print_program_space): Update.
13863 * process-stratum-target.c
13864 (process_stratum_target::thread_address_space): Update.
13865 * linux-fork.c (linux_fork_mourn_inferior)
13866 (detach_checkpoint_command, info_checkpoints_command)
13867 (linux_fork_context): Update.
13868 (linux_fork_detach): Update.
13869 (class scoped_switch_fork_info): Update.
13870 (delete_checkpoint_command): Update.
13871 * infrun.c (follow_fork_inferior): Update.
13872 (follow_fork_inferior): Update.
13873 (proceed_after_vfork_done): Update.
13874 (handle_vfork_child_exec_or_exit): Update.
13875 (follow_exec): Update.
13876 (displaced_step_prepare_throw): Update.
13877 (displaced_step_restore): Update.
13878 (start_step_over): Update.
13879 (resume_1): Update.
13880 (clear_proceed_status_thread): Update.
13881 (proceed): Update.
13882 (print_target_wait_results): Update.
13883 (do_target_wait): Update.
13884 (context_switch): Update.
13885 (stop_all_threads): Update.
13886 (restart_threads): Update.
13887 (finish_step_over): Update.
13888 (handle_signal_stop): Update.
13889 (switch_back_to_stepped_thread): Update.
13890 (keep_going_pass_signal): Update.
13891 (print_exited_reason): Update.
13892 (normal_stop): Update.
13893 * inferior.c (inferior_pid_to_str): Change return type.
13894 (print_selected_inferior): Update.
13895 (add_inferior): Update.
13896 (detach_inferior): Update.
13897 * dummy-frame.c (fprint_dummy_frames): Update.
13898 * dcache.c (dcache_info_1): Update.
13899 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
13900 (btrace_fetch, btrace_clear): Update.
13901 * linux-tdep.c (linux_core_pid_to_str): Change return type.
13902 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
13903 type.
13904 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
13905 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
13906 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
13907 * gdbarch.c, gdbarch.h: Rebuild.
13908 * gdbarch.sh (core_pid_to_str): Change return type.
13909 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
13910 return type.
13911 (windows_nat_target::pid_to_str): Change return type.
13912 (windows_delete_thread): Update.
13913 (windows_nat_target::attach): Update.
13914 (windows_nat_target::files_info): Update.
13915 * target-delegates.c: Rebuild.
13916 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
13917 return type.
13918 (sol_thread_target::pid_to_str): Change return type.
13919 * remote.c (class remote_target) <pid_to_str>: Change return
13920 type.
13921 (remote_target::pid_to_str): Change return type.
13922 (extended_remote_target::attach, remote_target::remote_stop_ns)
13923 (remote_target::remote_notif_remove_queued_reply)
13924 (remote_target::push_stop_reply, remote_target::disable_btrace):
13925 Update.
13926 (extended_remote_target::attach): Update.
13927 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
13928 type.
13929 (gdbsim_target::pid_to_str): Change return type.
13930 * ravenscar-thread.c (struct ravenscar_thread_target)
13931 <pid_to_str>: Change return type.
13932 (ravenscar_thread_target::pid_to_str): Change return type.
13933 * procfs.c (class procfs_target) <pid_to_str>: Change return
13934 type.
13935 (procfs_target::pid_to_str): Change return type.
13936 (procfs_target::attach): Update.
13937 (procfs_target::detach): Update.
13938 (procfs_target::fetch_registers): Update.
13939 (procfs_target::store_registers): Update.
13940 (procfs_target::wait): Update.
13941 (procfs_target::files_info): Update.
13942 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
13943 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
13944 return type.
13945 (nto_procfs_target::pid_to_str): Change return type.
13946 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
13947 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
13948 return type.
13949 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
13950 (exit_lwp): Update.
13951 (attach_proc_task_lwp_callback, get_detach_signal)
13952 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
13953 (linux_nat_target::resume, wait_lwp, stop_callback)
13954 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
13955 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
13956 (linux_nat_wait_1, resume_stopped_resumed_lwps)
13957 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
13958 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
13959 type.
13960 (inf_ptrace_target::attach): Update.
13961 (inf_ptrace_target::files_info): Update.
13962 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
13963 type.
13964 (go32_nat_target::pid_to_str): Change return type.
13965 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
13966 (gnu_nat_target::wait): Update.
13967 (gnu_nat_target::wait): Update.
13968 (gnu_nat_target::resume): Update.
13969 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
13970 (fbsd_nat_target::wait): Update.
13971 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
13972 type.
13973 (darwin_nat_target::attach): Update.
13974 * corelow.c (class core_target) <pid_to_str>: Change return type.
13975 (core_target::pid_to_str): Change return type.
13976 * target.c (normal_pid_to_str): Change return type.
13977 (default_pid_to_str): Likewise.
13978 (target_pid_to_str): Change return type.
13979 (target_translate_tls_address): Update.
13980 (target_announce_detach): Update.
13981 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
13982 return type.
13983 (bsd_uthread_target::pid_to_str): Change return type.
13984 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
13985 type.
13986 (bsd_kvm_target::pid_to_str): Change return type.
13987 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
13988 return type.
13989 (aix_thread_target::pid_to_str): Change return type.
13990 * target.h (struct target_ops) <pid_to_str>: Change return type.
13991 (target_pid_to_str, normal_pid_to_str): Likewise.
13992 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
13993 type.
13994 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
13995 type.
13996 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
13997 return type.
13998 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
13999 type.
14000 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
14001 type.
14002 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
14003 return type.
14004
b4be1b06
SM
140052019-03-13 Simon Marchi <simon.marchi@ericsson.com>
14006
14007 * NEWS: Mention that the new default MI version is 3. Mention
14008 changes to the output of commands and events that deal with
14009 multi-location breakpoints.
14010 * breakpoint.c: Include "mi/mi-out.h".
14011 (print_one_breakpoint): Change output syntax if using MI version
14012 >= 3.
14013 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
14014 New.
14015 (mi_multi_location_breakpoint_output_fixed): New.
14016 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
14017 (mi_cmd_fix_multi_location_breakpoint_output): New.
14018 (mi_multi_location_breakpoint_output_fixed): New.
14019 * mi/mi-cmds.c (mi_cmds): Register command
14020 -fix-multi-location-breakpoint-output.
14021 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
14022 interpreter "mi".
14023
8e5e5494
SM
140242019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
14025
14026 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
14027 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
14028 instantiate mi_ui_out based on interpreter name.
14029 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
14030 * mi/mi-main.c (mi_load_progress): Likewise.
14031
197df35e
JB
140322019-03-12 John Baldwin <jhb@FreeBSD.org>
14033
14034 * NEWS: Combine separate "New targets" sections for 8.3.
14035
8399425f
JB
140362019-03-12 John Baldwin <jhb@FreeBSD.org>
14037
14038 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
14039 (ppcfbsd_init_abi): Install gdbarch
14040 "fetch_tls_load_module_address" and "get_thread_local_address"
14041 methods.
14042
b0f87ed0
JB
140432019-03-12 John Baldwin <jhb@FreeBSD.org>
14044
14045 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
14046 (riscv_fbsd_init_abi): Install gdbarch
14047 "fetch_tls_load_module_address" and "get_thread_local_address"
14048 methods.
14049
ce25aa57
JB
140502019-03-12 John Baldwin <jhb@FreeBSD.org>
14051
14052 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
14053 (i386fbsd_init_abi): Install gdbarch
14054 "fetch_tls_load_module_address" and "get_thread_local_address"
14055 methods.
14056
f5424cfa
JB
140572019-03-12 John Baldwin <jhb@FreeBSD.org>
14058
14059 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
14060 (amd64fbsd_init_abi): Install gdbarch
14061 "fetch_tls_load_module_address" and "get_thread_local_address"
14062 methods.
14063
945f3901
JB
140642019-03-12 John Baldwin <jhb@FreeBSD.org>
14065
14066 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
14067 (struct fbsd_pspace_data): New type.
14068 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
14069 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
14070 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
14071 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
14072 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
14073
ef0bd204
JB
140742019-03-12 John Baldwin <jhb@FreeBSD.org>
14075
14076 * gdbtypes.c (lookup_struct_elt): New function.
14077 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
14078 * gdbtypes.h (struct struct_elt): New type.
14079 (lookup_struct_elt): New prototype.
14080
36c53a02
JB
140812019-03-12 John Baldwin <jhb@FreeBSD.org>
14082
14083 * gdbtypes.c (lookup_struct_elt_type): Update comment and
14084 remove disabled code block.
14085
6e056c81
JB
140862019-03-12 John Baldwin <jhb@FreeBSD.org>
14087
14088 * gdbarch.sh (get_thread_local_address): New method.
14089 * gdbarch.h, gdbarch.c: Regenerate.
14090 * target.c (target_translate_tls_address): Use
14091 gdbarch_get_thread_local_address if present instead of
14092 target::get_thread_local_address.
14093
cd250a18
JB
140942019-03-12 John Baldwin <jhb@FreeBSD.org>
14095
14096 * target.h (target::get_thread_local_address): Update comment.
14097
df22c1e5
JB
140982019-03-12 John Baldwin <jhb@FreeBSD.org>
14099
14100 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
14101 objfile->separate_debug_objfile_backlink if not NULL.
14102
dd6876c9
JB
141032019-03-12 John Baldwin <jhb@FreeBSD.org>
14104
14105 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
14106 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
14107 (amd64bsd_store_inferior_registers): Likewise.
14108 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
14109 Enable segment base registers.
14110 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
14111 PT_GETFSBASE and PT_GETGSBASE.
14112 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
14113 PT_SETGSBASE.
14114 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
14115 segment base registers.
14116 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
14117
1163a4b7
JB
141182019-03-12 John Baldwin <jhb@FreeBSD.org>
14119
14120 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
14121 Update calls to i386_target_description to add 'segments'
14122 parameter.
14123 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
14124 add segment base registers.
14125 * arch/i386.c (i386_create_target_description): Add 'segments'
14126 parameter to enable segment base registers.
14127 * arch/i386.h (i386_create_target_description): Likewise.
14128 * features/i386/32bit-segments.xml: New file.
14129 * features/i386/32bit-segments.c: Generate.
14130 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
14131 call to i386_target_description to add 'segments' parameter.
14132 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
14133 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
14134 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
14135 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
14136 if feature is present.
14137 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
14138 Add 'segments' parameter to call to i386_target_description.
14139 (i386_target_description): Add 'segments' parameter to enable
14140 segment base registers.
14141 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
14142 to call to i386_target_description.
14143 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
14144 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
14145 Define I386_NUM_REGS.
14146 (i386_target_description): Add 'segments' parameter to enable
14147 segment base registers.
14148
3a350822
EZ
141492019-03-12 Eli Zaretskii <eliz@gnu.org>
14150
14151 PR/24325
14152 * source-cache.c: #undef open and close, to avoid unresolved
14153 externals during linking.
14154
ffdd69cf
TT
141552019-03-12 Tom Tromey <tromey@adacore.com>
14156
14157 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
14158 const. Add initializers.
14159 (_initialize_remote): Don't initialize ptid globals.
14160
ec148c57
PA
141612019-03-12 Pedro Alves <palves@redhat.com>
14162
14163 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
14164
32764270
PA
141652019-03-12 Pedro Alves <palves@redhat.com>
14166
14167 * cp-name-parser.y (main): Remove unused 'len' variable.
14168
17547186
TT
141692019-03-12 Tom Tromey <tromey@adacore.com>
14170
14171 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
14172 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
14173
d3a70e03
TT
141742019-03-12 Tom Tromey <tromey@adacore.com>
14175
14176 * linux-nat.c (iterate_over_lwps): Update.
14177 (stop_callback): Remove parameter.
14178 (stop_wait_callback, detach_callback, resume_set_callback)
14179 (select_singlestep_lwp_callback, set_ignore_sigint)
14180 (status_callback, resumed_callback, resume_clear_callback)
14181 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
14182 data parameter.
14183 (linux_nat_target::detach, linux_nat_target::resume)
14184 (linux_stop_and_wait_all_lwps, select_event_lwp)
14185 (linux_nat_filter_event, linux_nat_wait_1)
14186 (linux_nat_target::kill, linux_nat_target::stop)
14187 (linux_nat_target::stop): Update.
14188 (linux_nat_resume_callback): Change type.
14189 (resume_stopped_resumed_lwps, count_events_callback)
14190 (select_event_lwp_callback): Likewise.
14191 (linux_stop_lwp, linux_nat_stop_lwp): Update.
14192 * arm-linux-nat.c (struct update_registers_data): Remove.
14193 (update_registers_callback): Change type.
14194 (arm_linux_insert_hw_breakpoint1): Update.
14195 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
14196 parameter.
14197 (x86_linux_dr_set_addr): Update.
14198 (x86_linux_dr_set_control): Update.
14199 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
14200 (iterate_over_lwps): Use gdb::function_view.
14201 * nat/aarch64-linux-hw-point.c (struct
14202 aarch64_dr_update_callback_param): Remove.
14203 (debug_reg_change_callback): Change type.
14204 (aarch64_notify_debug_reg_change): Update.
14205 * s390-linux-nat.c (s390_refresh_per_info): Update.
14206
82cb27ff
TT
142072019-03-11 Tom Tromey <tromey@adacore.com>
14208
14209 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
14210 redundant assignment to "this_cu".
14211
568c0683
SM
142122019-03-08 Simon Marchi <simon.marchi@efficios.com>
14213
14214 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
14215
f09ce22d
SM
142162019-03-08 Simon Marchi <simon.marchi@efficios.com>
14217
14218 * gdbtypes.c (rank_one_type_parm_set): New function extracted
14219 from...
14220 (rank_one_type): ... this.
14221
595f96a9
SM
142222019-03-08 Simon Marchi <simon.marchi@efficios.com>
14223
14224 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
14225 from...
14226 (rank_one_type): ... this.
14227
2598a94b
SM
142282019-03-08 Simon Marchi <simon.marchi@efficios.com>
14229
14230 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
14231 from...
14232 (rank_one_type): ... this.
14233
7f17b20d
SM
142342019-03-08 Simon Marchi <simon.marchi@efficios.com>
14235
14236 * gdbtypes.c (rank_one_type_parm_float): New function extracted
14237 from...
14238 (rank_one_type): ... this.
14239
2c509035
SM
142402019-03-08 Simon Marchi <simon.marchi@efficios.com>
14241
14242 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
14243 from...
14244 (rank_one_type): ... this.
14245
0dd322dc
SM
142462019-03-08 Simon Marchi <simon.marchi@efficios.com>
14247
14248 * gdbtypes.c (rank_one_type_parm_range): New function extracted
14249 from...
14250 (rank_one_type): ... this.
14251
41ea4728
SM
142522019-03-08 Simon Marchi <simon.marchi@efficios.com>
14253
14254 * gdbtypes.c (rank_one_type_parm_char): New function extracted
14255 from...
14256 (rank_one_type): ... this.
14257
793cd1d2
SM
142582019-03-08 Simon Marchi <simon.marchi@efficios.com>
14259
14260 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
14261 from...
14262 (rank_one_type): ... this.
14263
34910087
SM
142642019-03-08 Simon Marchi <simon.marchi@efficios.com>
14265
14266 * gdbtypes.c (rank_one_type_parm_int): New function extracted
14267 from...
14268 (rank_one_type): ... this.
14269
f1f832d6
SM
142702019-03-08 Simon Marchi <simon.marchi@efficios.com>
14271
14272 * gdbtypes.c (rank_one_type_parm_func): New function extracted
14273 from...
14274 (rank_one_type): ... this.
14275
b9f4512f
SM
142762019-03-08 Simon Marchi <simon.marchi@efficios.com>
14277
14278 * gdbtypes.c (rank_one_type_parm_array): New function extracted
14279 from...
14280 (rank_one_type): ... this.
14281
9293fc63
SM
142822019-03-08 Simon Marchi <simon.marchi@efficios.com>
14283
14284 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
14285 from...
14286 (rank_one_type): ... this.
14287
e3abbe7e
PW
142882019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14289
14290 * inferior.c (initialize_inferiors): Ensure 'help set/show print
14291 inferior-events' shows the example events.
14292
e4adb939
EZ
142932019-03-08 Eli Zaretskii <eliz@gnu.org>
14294
14295 Support styling on native MS-Windows console
14296
14297 PR/24315
14298 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
14299 on MS-Windows if $TERM is not defined.
14300
14301 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
14302
14303 * posix-hdep.c (gdb_console_fputs):
14304 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
14305 functions.
14306 * ui-file.h (gdb_console_fputs): Add prototype.
14307
14308 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
14309 back to fputs only if the former returns zero.
14310
25629dfd
TT
143112019-03-07 Tom Tromey <tom@tromey.com>
14312
14313 * symmisc.c (print_symbol_bcache_statistics): Update.
14314 (print_objfile_statistics): Update.
14315 * symfile.c (allocate_symtab): Update.
14316 * stabsread.c: Don't include bcache.h.
14317 * psymtab.h (struct psymbol_bcache): Don't declare.
14318 (class psymtab_storage) <psymbol_cache>: Now a bcache.
14319 (psymbol_bcache_init, psymbol_bcache_free)
14320 (psymbol_bcache_get_bcache): Don't declare.
14321 * psymtab.c (struct psymbol_bcache): Remove.
14322 (psymtab_storage::psymtab_storage): Update.
14323 (psymtab_storage::~psymtab_storage): Update.
14324 (psymbol_bcache_init, psymbol_bcache_free)
14325 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
14326 (add_psymbol_to_bcache): Update.
14327 (allocate_psymtab): Update.
14328 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
14329 macro_cache>: No longer pointers.
14330 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
14331 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
14332 * macrotab.c (macro_bcache): Update.
14333 * macroexp.c: Don't include bcache.h.
14334 * gdbtypes.c (check_types_worklist): Update.
14335 (types_deeply_equal): Remove TRY/CATCH. Update.
14336 * elfread.c (elf_symtab_read): Update.
14337 * dwarf2read.c: Don't include bcache.h.
14338 * buildsym.c (buildsym_compunit::get_macro_table): Update.
14339 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
14340 (print_bcache_statistics, bcache_memory_used): Don't declare.
14341 (struct bcache): Move from bcache.c. Add constructor, destructor,
14342 methods. Rename all data members.
14343 * bcache.c (struct bcache): Move to bcache.h.
14344 (bcache::expand_hash_table): Rename from expand_hash_table.
14345 (bcache): Remove.
14346 (bcache::insert): Rename from bcache_full.
14347 (bcache::compare): Rename from bcache_compare.
14348 (bcache_xmalloc): Remove.
14349 (bcache::~bcache): Rename from bcache_xfree.
14350 (bcache::print_statistics): Rename from print_bcache_statistics.
14351 (bcache::memory_used): Rename from bcache_memory_used.
14352
fe726667
PA
143532019-03-07 Pedro Alves <palves@redhat.com>
14354
14355 * infrun.c (normal_stop): Also check for
14356 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
14357
7584bb30
AB
143582019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
14359
14360 * f-lang.c (value_from_host_double): Moved to...
14361 * value.c (value_from_host_double): ...here.
14362 * value.h (value_from_host_double): Declare.
14363 * guile/scm-math.c (vlscm_convert_typed_number): Use
14364 value_from_host_double.
14365 (vlscm_convert_number): Likewise.
14366 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
14367 * python/py-value.c (convert_value_from_python): Likewise.
14368
a7b1986e
TT
143692019-03-06 Tom Tromey <tom@tromey.com>
14370
14371 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
14372
0ccf4211
TT
143732019-03-06 Tom Tromey <tom@tromey.com>
14374
14375 * utils.h (free_current_contents): Don't declare.
14376 * utils.c (free_current_contents): Remove.
14377
fe7b42e5
TT
143782019-03-06 Tom Tromey <tom@tromey.com>
14379
14380 * top.c (quit_force): Update.
14381 * main.c (captured_command_loop): Update.
14382 * common/new-op.c (operator new): Update.
14383 * common/common-exceptions.c (struct catcher)
14384 <save_cleanup_chain>: Remove member.
14385 (exceptions_state_mc_init): Update.
14386 (exception_try_scope_entry): Return nullptr.
14387 (exception_try_scope_exit, exception_rethrow)
14388 (throw_exception_sjlj, throw_exception_cxx): Update.
14389 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
14390 (all_cleanups, do_cleanups, discard_cleanups)
14391 (discard_final_cleanups, save_cleanups, save_final_cleanups)
14392 (restore_cleanups, restore_final_cleanups): Don't declare.
14393 (do_final_cleanups): Remove parameter.
14394 * common/cleanups.c (cleanup_chain, make_cleanup)
14395 (make_cleanup_dtor, all_cleanups, do_cleanups)
14396 (discard_my_cleanups, discard_cleanups)
14397 (discard_final_cleanups, save_my_cleanups, save_cleanups)
14398 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
14399 (null_cleanup): Remove.
14400 (do_final_cleanups): Remove parameter.
14401
c6321f19
TT
144022019-03-06 Tom Tromey <tom@tromey.com>
14403
14404 * remote.c (remote_target::remote_parse_stop_reply): Use
14405 unique_xmalloc_ptr.
14406
61b30099
TT
144072019-03-06 Tom Tromey <tom@tromey.com>
14408
14409 * stabsread.c (struct stabs_field_info): Rename from field_info.
14410 <list, fnlist>: Add initializers.
14411 <obstack>: New member.
14412 (read_member_functions, read_struct_fields, read_baseclasses):
14413 Allocate on obstack. Don't use cleanups.
14414 (read_one_struct_field, read_member_functions, read_struct_fields)
14415 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
14416 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
14417 (read_struct_type): Update.
14418
6cceac94
TT
144192019-03-06 Tom Tromey <tom@tromey.com>
14420
14421 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
14422 * common/filestuff.h (make_cleanup_close): Don't declare.
14423 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
14424 Remove.
14425
72412762
TT
144262019-03-06 Tom Tromey <tom@tromey.com>
14427
14428 * solib-aix.c: Use make_scope_exit.
14429
2b6ff1c0
TT
144302019-03-06 Tom Tromey <tom@tromey.com>
14431
14432 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
14433 Use make_scope_exit.
14434
d01c5877
TT
144352019-03-06 Tom Tromey <tom@tromey.com>
14436
14437 * solib-svr4.c (disable_probes_interface): Remove parameter.
14438 (svr4_handle_solib_event): Use make_scope_exit.
14439
32603266
TT
144402019-03-06 Tom Tromey <tom@tromey.com>
14441
14442 * remote.c (struct stop_reply_deleter): Remove.
14443 (stop_reply_up): Update.
14444 (struct stop_reply): Derive from notif_event. Don't typedef.
14445 <regcache>: Now a std::vector.
14446 (stop_reply_xfree): Remove.
14447 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
14448 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
14449 (remote_target::discard_pending_stop_replies): Use delete.
14450 (remote_target::remote_parse_stop_reply): Update.
14451 (remote_target::process_stop_reply): Update.
14452 * remote-notif.h (struct notif_event): Add virtual destructor.
14453 Remove "dtr" member.
14454 (struct notif_client) <alloc_event>: Return a unique_ptr.
14455 (notif_event_xfree): Don't declare.
14456 (notif_event_up): New typedef.
14457 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
14458 (notif_event_xfree, do_notif_event_xfree): Remove.
14459 (remote_notif_state_xfree): Update.
14460
9799571e
TT
144612019-03-06 Tom Tromey <tom@tromey.com>
14462
14463 * infrun.c (displaced_step_clear_cleanup): Now a
14464 forward_scope_exit type.
14465 (displaced_step_prepare_throw): Update.
14466 (displaced_step_fixup): Update.
14467
09e3c4ca
TT
144682019-03-06 Tom Tromey <tom@tromey.com>
14469
14470 * inferior.h (class inferior): Update comment.
14471 * gdbthread.h (class thread_info): Update comment.
14472
e2a03548
TT
144732019-03-06 Joel Brobecker <brobecker@adacore.com>
14474 Tom Tromey <tom@tromey.com>
14475
14476 * stabsread.h (struct stab_section_list): Remove.
14477 (coffstab_build_psymtabs): Update.
14478 * dbxread.c (symbuf_sections): Now a std::vector.
14479 (sect_idx): New global.
14480 (fill_symbuf): Update.
14481 (coffstab_build_psymtabs): Change type of stabsects parameter.
14482 Update.
14483 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
14484 std::vector.
14485 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
14486 (coff_locate_sections): Update.
14487 (coff_symfile_read): Remove cleanups. Update.
14488 (init_stringtab): Add storage parameter.
14489 (free_stringtab, free_stringtab_cleanup): Remove.
14490 (init_lineno): Add storage parameter.
14491 (free_linetab, free_linetab_cleanup): Remove.
14492
b7e60d85
PA
144932019-03-06 Pedro Alves <palves@redhat.com>
14494
14495 * linux-fork.c (fork_info::clobber_regs): Delete.
14496 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
14497 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
14498 comment. Adjust.
14499 (scoped_switch_fork_info::scoped_switch_fork_info)
14500 (checkpoint_command, linux_fork_context): Adjust
14501 fork_save_infrun_state calls.
14502
e52c971f
PA
145032019-03-06 Pedro Alves <palves@redhat.com>
14504
14505 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
14506 (inf_has_multiple_threads): Return 'bool' and rewrite using
14507 inferior_info::threads().
14508
06974e6c
PA
145092019-03-06 Pedro Alves <palves@redhat.com>
14510
14511 * linux-fork.c: Include <list>.
14512 (fork_list): Now a std::list instance.
14513 (fork_info): Add ctor, dtor, and in-class initialize all fields.
14514 (forks_exist_p, find_last_fork): Adjust.
14515 (new_fork): Delete.
14516 (one_fork_p): New.
14517 (add_fork): Adjust.
14518 (free_fork): Delete, folded into fork_info::~fork_info().
14519 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
14520 Adjust.
14521 (init_fork_list): Delete.
14522 (linux_fork_killall, linux_fork_mourn_inferior)
14523 (linux_fork_detach, info_checkpoints_command): Adjust.
14524 (_initialize_linux_fork): No longer call init_fork_list.
14525
72f31aea
PA
145262019-03-06 Pedro Alves <palves@redhat.com>
14527
14528 * linux-fork.c (new_fork): New, split out of ...
14529 (add_fork): ... this. Return void. Move "first fork" special
14530 case from here, to ...
14531 (checkpoint_command): ... here.
14532 * linux-linux.h (add_fork): Return void.
14533
efbecbc1
AB
145342019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14535
14536 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
14537
0841c79a
AB
145382019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14539 Chris January <chris.january@arm.com>
14540 David Lecomber <david.lecomber@arm.com>
14541
14542 * f-exp.y: New token, UNOP_INTRINSIC.
14543 (exp): New pattern using UNOP_INTRINSIC token.
14544 (f77_keywords): Add 'abs' keyword.
14545 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
14546 (value_from_host_double): New function.
14547 (evaluate_subexp_f): Support UNOP_ABS.
14548
4a270568
AB
145492019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14550
14551 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
14552 types.
14553
067630bd
AB
145542019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14555
14556 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
14557 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
14558 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
14559
3be47f7a
AB
145602019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14561
14562 * f-exp.y (convert_to_kind_type): Handle more type kinds.
14563
4d00f5d8
AB
145642019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14565 Chris January <chris.january@arm.com>
14566
14567 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
14568 * f-exp.y: Define 'KIND' token.
14569 (exp): New pattern for KIND expressions.
14570 (ptype): Handle types with a kind extension.
14571 (direct_abs_decl): Extend to spot kind extensions.
14572 (f77_keywords): Add 'kind' to the list.
14573 (push_kind_type): New function.
14574 (convert_to_kind_type): New function.
14575 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
14576 * parse.c (operator_length_standard): Likewise.
14577 * parser-defs.h (enum type_pieces): Add tp_kind.
14578 * std-operator.def: Add UNOP_KIND.
14579
e454224f
AB
145802019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14581
14582 * f-exp.y (f_parse): Set yydebug.
14583
9dad4a58
AB
145842019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14585
14586 * f-lang.c (evaluate_subexp_f): New function.
14587 (exp_descriptor_f): New global.
14588 (f_language_defn): Use exp_descriptor_f instead of
14589 exp_descriptor_standard.
14590
c8f91604
AB
145912019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14592
14593 * f-exp.y (struct token): Add comments.
14594 (dot_ops): Remove uppercase versions and the end marker.
14595 (f77_keywords): Likewise.
14596 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
14597 entries in the dot_ops array are case insensitive, and use
14598 strncasecmp to compare strings. Also some whitespace cleanup in
14599 this area. Similar for the f77_keywords array, except entries in
14600 this list might be case sensitive.
14601
dd9f2c76
AB
146022019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14603
14604 * f-exp.y (struct f77_boolean_val): Add comments.
14605 (boolean_values): Remove uppercase versions, and end marker.
14606 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
14607 and use strncasecmp to achieve case insensitivity. Additionally,
14608 perform whitespace cleanup around this code.
14609
67a3048c
TT
146102019-03-06 Tom Tromey <tromey@adacore.com>
14611
14612 * remote-sim.c (gdbsim_target_open): Use result of
14613 gdb_argv::release.
14614
aa3cfbda
RB
146152019-03-06 Richard Bunt <richard.bunt@arm.com>
14616 Dirk Schubert <dirk.schubert@arm.com>
14617 Chris January <chris.january@arm.com>
14618
14619 * eval.c (evaluate_subexp_standard): Call Fortran argument
14620 wrapping logic.
14621 * f-lang.c (struct value): A value which can be passed into a
14622 Fortran function call.
14623 (fortran_argument_convert): Wrap Fortran arguments in a pointer
14624 where appropriate.
14625 (struct type): Value ready for a Fortran function call.
14626 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
14627 is needed.
14628 * f-lang.h (fortran_argument_convert): Declaration.
14629 (fortran_preserve_arg_pointer): Declaration.
14630 * infcall.c (value_arg_coerce): Call Fortran argument logic.
14631
ea38e5df
TT
146322019-03-05 Tom Tromey <tromey@adacore.com>
14633
14634 * python/py-prettyprint.c (print_string_repr): Remove #if.
14635 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
14636
06b5b831
TT
146372019-03-05 Tom Tromey <tromey@adacore.com>
14638
14639 * target.c (the_dummy_target): Move later. Change type to
14640 "dummy_target".
14641 (initialize_targets): Don't initialize the_dummy_target.
14642
edbd9e45
TT
146432019-03-05 Tom Tromey <tromey@adacore.com>
14644
14645 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
14646 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
14647
c119e040
TT
146482019-03-05 Tom Tromey <tromey@adacore.com>
14649
14650 * windows-nat.c (windows_nat_target::attach)
14651 (windows_nat_target::detach): Don't call gdb_flush.
14652 * valprint.c (generic_val_print, val_print, val_print_string):
14653 Don't call gdb_flush.
14654 * utils.c (defaulted_query): Don't call gdb_flush.
14655 * typeprint.c (print_type_scalar): Don't call gdb_flush.
14656 * target.c (target_announce_detach): Don't call gdb_flush.
14657 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
14658 * remote.c (extended_remote_target::attach): Don't call
14659 gdb_flush.
14660 * procfs.c (procfs_target::detach): Don't call gdb_flush.
14661 * printcmd.c (do_examine): Don't call gdb_flush.
14662 (info_display_command): Don't call gdb_flush.
14663 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
14664 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
14665 * memattr.c (info_mem_command): Don't call gdb_flush.
14666 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
14667 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
14668 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
14669 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
14670 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
14671 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
14672 (gnu_nat_target::detach): Don't call gdb_flush.
14673 * f-valprint.c (f_val_print): Don't call gdb_flush.
14674 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
14675 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
14676 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
14677 gdb_flush.
14678 * c-valprint.c (c_val_print): Don't call gdb_flush.
14679 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
14680
895dafa6
TT
146812019-03-05 Tom Tromey <tromey@adacore.com>
14682
14683 * varobj.c (update_dynamic_varobj_children): Update.
14684 (install_default_visualizer): Use reset, not release.
14685 * value.c (set_internalvar): Update.
14686 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
14687 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
14688 ATTRIBUTE_UNUSED_RESULT.
14689
88a774b9
TT
146902019-03-05 Tom Tromey <tromey@adacore.com>
14691
14692 * remote.c (class scoped_remote_fd) <release>: Add
14693 ATTRIBUTE_UNUSED_RESULT.
14694
4e4a8b93
TT
146952019-03-05 Tom Tromey <tromey@adacore.com>
14696
14697 * macroexp.c (struct macro_buffer) <release>: Add
14698 ATTRIBUTE_UNUSED_RESULT.
14699
083eef1f
TT
147002019-03-05 Tom Tromey <tromey@adacore.com>
14701
14702 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
14703 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
14704 ATTRIBUTE_UNUSED_RESULT.
14705
3cabd438
TT
147062019-03-05 Tom Tromey <tromey@adacore.com>
14707
14708 * common/scoped_fd.h (class scoped_fd) <release>: Add
14709 ATTRIBUTE_UNUSED_RESULT.
14710
41e3300a
TT
147112019-03-05 Tom Tromey <tromey@adacore.com>
14712
14713 * parser-defs.h (struct parser_state) <release>: Add
14714 ATTRIBUTE_UNUSED_RESULT.
14715
18cb7c9f
TT
147162019-03-05 Tom Tromey <tromey@adacore.com>
14717
14718 * utils.h (class gdb_argv) <release>: Add
14719 ATTRIBUTE_UNUSED_RESULT.
14720 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
14721
41fa577f
EZ
147222019-03-02 Eli Zaretskii <eliz@gnu.org>
14723
a6a4b2c6
EZ
14724 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
14725 for-loop range, to avoid compiler warnings.
14726
14727 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
14728 avoid compiler warnings about unused variables.
14729
742a7df5
EZ
14730 * NEWS: Mention end of support for native debugging on MS-Windows
14731 before XP.
14732
41fa577f
EZ
14733 PR gdb/24292
14734 * common/netstuff.c:
14735 * gdbserver/gdbreplay.c
14736 * gdbserver/remote-utils.c:
14737 * ser-tcp.c:
14738 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
14739 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
14740 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
14741 'getaddrinfo' and 'freeaddrinfo' were not available before
14742 Windows XP, and mingw.org's MinGW headers by default define
14743 _WIN32_WINNT to 0x500.
14744
827f438f
GB
147452019-03-01 Gary Benson <gbenson@redhat.com>
14746
14747 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
14748
92137da0
RO
147492019-02-28 Brian Vandenberg <phantall@gmail.com>
14750 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14751
14752 PR gdb/8527
14753 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
14754 set_sigint_trap, clear_sigint_trap.
14755
799efbe8
PW
147562019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14757
14758 * target.c (target_detach): Clear the regcache and the
14759 frame cache.
14760
8ed25214
PA
147612019-02-27 Pedro Alves <palves@redhat.com>
14762
14763 * utils.c (set_screen_size): When we cap the height/width sizes,
14764 tweak the corresponding command variable to show "unlimited":
14765
23031e31
SJ
147662019-02-27 Saagar Jha <saagar@saagarjha.com>
14767 Pedro Alves <palves@redhat.com>
14768
14769 * utils.c (set_screen_size): Reduce "infinite" rows and columns
14770 before calling rl_set_screen_size.
14771
6c28e44a
TT
147722019-02-27 Tom Tromey <tromey@adacore.com>
14773
14774 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
14775 define.
14776 * python/py-value.c: Remove Python 2.4 workaround.
14777 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
14778 workaround.
14779 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
14780 Python 2.4 workaround.
14781 * python/python-internal.h: Remove Python 2.4 comment.
14782 (Py_ssize_t): Don't define.
14783 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
14784 (gdb_Py_DECREF): Remove Python 2.4 workaround.
14785 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
14786 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
14787 * python/python.c (do_start_initialization): Remove Python 2.4
14788 workaround.
14789 * python/py-prettyprint.c (class dummy_python_frame): Remove.
14790 (print_children): Remove Python 2.4 workaround.
14791 * python/py-inferior.c (buffer_procs): Remove Python 2.4
14792 workaround.
14793 (CHARBUFFERPROC_NAME): Remove.
14794 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
14795 Python 2.4 workaround.
14796
2c3fc25d 147972019-02-27 Kevin Buettner <kevinb@redhat.com>
799efbe8 14798
2c3fc25d
KB
14799 * NEWS: Note minimum Python version.
14800
6ca62222
KB
148012019-02-27 Kevin Buettner <kevinb@redhat.com>
14802
14803 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
14804 code from these functions. Remove corresponding ifdefs. Use
14805 Py_buffer_up instead of explicit calls to PyBuffer_Release.
14806 Remove gotos and target of gotos.
14807 (infpy_search_memory): Likewise.
14808
f4bc7d2c
AB
148092019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14810
14811 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
14812 (hppa_gdbarch_init): Don't register deleted functions with
14813 gdbarch.
14814
9734a586
AB
148152019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14816
14817 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
14818 (h8300_unwind_sp): Delete.
14819 (h8300_dummy_id): Delete.
14820 (h8300_gdbarch_init): Don't register deleted functions with
14821 gdbarch.
14822
68b867f3
AB
148232019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14824
14825 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
14826 (ft32_unwind_pc): Delete.
14827 (ft32_unwind_sp): Delete.
14828 (ft32_gdbarch_init): Don't register deleted functions with
14829 gdbarch.
14830
2fbe7ad0
AB
148312019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14832
14833 * gdb/frv-tdep.c (frv_dummy_id): Delete.
14834 (frv_unwind_pc): Delete.
14835 (frv_unwind_sp): Delete.
14836 (frv_gdbarch_init): Don't register deleted functions with
14837 gdbarch.
14838
76055cbe
AB
148392019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14840
14841 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
14842 (riscv_unwind_pc): Delete.
14843 (riscv_unwind_sp): Delete.
14844 (riscv_gdbarch_init): Don't register deleted functions with
14845 gdbarch.
14846
4133e5a1
AB
148472019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14848
14849 * gdb/csky-tdep.c (csky_dummy_id): Delete.
14850 (csky_unwind_pc): Delete.
14851 (csky_unwind_sp): Delete.
14852 (csky_gdbarch_init): Don't register deleted functions with
14853 gdbarch.
14854
8010f576
AB
148552019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14856
14857 * gdb/cris-tdep.c (cris_dummy_id): Delete.
14858 (cris_unwind_pc): Delete.
14859 (cris_unwind_sp): Delete.
14860 (cris_gdbarch_init): Don't register deleted functions with
14861 gdbarch.
14862
b56bf084
AB
148632019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14864
14865 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
14866 (bfin_unwind_pc): Delete.
14867 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
14868
a19a650f
AB
148692019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14870
14871 * gdb/arm-tdep.c (arm_dummy_id): Delete.
14872 (arm_unwind_pc): Delete.
14873 (arm_unwind_sp): Delete.
14874 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
14875
f8278c3c
AB
148762019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14877
14878 * gdb/arc-tdep.c (arc_dummy_id): Delete.
14879 (arc_unwind_pc): Delete.
14880 (arc_unwind_sp): Delete.
14881 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
14882
480e46cf
AB
148832019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14884
14885 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
14886 (alpha_unwind_pc): Delete.
14887 (alpha_gdbarch_init): Don't register deleted functions with
14888 gdbarch.
14889
7a995095
AB
148902019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14891
14892 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
14893 (aarch64_unwind_pc): Delete.
14894 (aarch64_unwind_sp): Delete.
14895 (aarch64_gdbarch_init): Don't register deleted functions with
14896 gdbarch.
14897
bf9a735e
AB
148982019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14899
14900 * gdbtypes.c (type_align): Don't consider static members when
14901 computing structure alignment.
14902
5561fc30
AB
149032019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14904
14905 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
14906 return 0 for other types.
14907 * arch-utils.c (default_type_align): Always return 0.
14908 * gdbarch.h: Regenerate.
14909 * gdbarch.sh (type_align): Extend comment.
14910 * gdbtypes.c (type_align): Add additional comments, always call
14911 gdbarch_type_align before applying the default rules.
14912 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
14913 generic code will then apply a suitable default.
14914 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
14915 types, return 0 for other types.
14916
9335e75a
JB
149172019-02-27 Joel Brobecker <brobecker@adacore.com>
14918
14919 * NEWS: Create a new section for the next release branch.
14920 Rename the section of the current branch, now that it has
14921 been cut.
14922
3d34d8de
JB
149232019-02-27 Joel Brobecker <brobecker@adacore.com>
14924
14925 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
14926 * version.in: Bump version to 8.3.50.DATE-git.
14927
143420fb
SM
149282019-02-26 Simon Marchi <simon.marchi@efficios.com>
14929
14930 * aix-thread.c (ptid_cmp): Remove unused variable.
14931 (get_signaled_thread): Likewise.
14932 (store_regs_user_thread): Likewise.
14933 (store_regs_kernel_thread): Likewise.
14934 (fetch_regs_kernel_thread): Remove shadowed variable.
14935
172fb711
AB
149362019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
14937
14938 * features/riscv/32bit-cpu.xml: Add register numbers.
14939 * features/riscv/32bit-fpu.c: Regenerate.
14940 * features/riscv/32bit-fpu.xml: Add register numbers.
14941 * features/riscv/64bit-cpu.xml: Add register numbers.
14942 * features/riscv/64bit-fpu.c: Regenerate.
14943 * features/riscv/64bit-fpu.xml: Add register numbers.
14944
26c89782
KB
149452019-02-26 Kevin Buettner <kevinb@redhat.com>
14946
af54ade9 14947 * NEWS: Mention two argument form of gdb.Value constructor.
fe07eca5
KB
14948 * python/py-value.c (convert_buffer_and_type_to_value): New
14949 function.
14950 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
14951 Add support for handling an optional second argument. Call
14952 convert_buffer_and_type_to_value as appropriate.
26c89782
KB
14953 * python/python-internal.h (Py_buffer_deleter): New struct.
14954 (Py_buffer_up): New typedef.
14955
0f58c9e8
JB
149562019-02-25 John Baldwin <jhb@FreeBSD.org>
14957
14958 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
14959 instead of releasing ownership.
14960
0a0f4c01
JR
149612019-02-25 Jordan Rupprecht <rupprecht@google.com>
14962
14963 * dwarf2read.c (open_and_init_dwp_file): Call
14964 elf_numsections instead of bfd_count_sections to initialize
14965 dwp_file->num_sections.
14966
cd5a152c
TT
149672019-02-25 Tom Tromey <tromey@adacore.com>
14968
14969 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
14970
8a6a8513
SDJ
149712019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
14972
14973 * gcore.in: Add '--readnever' option when invoking GDB.
14974
04dcda9c
SM
149752019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
14976
14977 * MAINTAINERS: Update my email address.
14978
07bc701d
SM
149792019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
14980
14981 * build-id.c (build_id_to_debug_bfd_1): New function.
14982 (build_id_to_debug_bfd): Look for separate debug file in
14983 sysroot.
14984
c6f4a5d0
AB
149852019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
14986
14987 * gdbarch.sh: Update the copyright year range that is placed into
14988 generated files.
14989
9600246d
KS
149902019-02-22 Keith Seitz <keiths@redhat.com>
14991
14992 PR symtab/23853
14993 * linespec.c (create_sals_line_offset): Search for the default
14994 symtab's filename instead of its fullname.
14995
7557a514
AH
149962019-02-21 Alan Hayward <alan.hayward@arm.com>
14997
14998 * NEWS: Update style defaults.
14999
ee2bcb0c
AH
150002019-02-21 Alan Hayward <alan.hayward@arm.com>
15001
15002 * main.c (captured_main_1): Disable styling in batch mode.
15003
0c95f9ed
TT
150042019-02-20 Tom Tromey <tom@tromey.com>
15005
15006 * symtab.c (symtab_symbol_info): Fix typos.
15007
c763b894
TT
150082019-02-20 Tom Tromey <tromey@adacore.com>
15009
15010 * findcmd.c (_initialize_mem_search): Use upper case for
15011 metasyntactic variables.
15012
0ef8a082
AH
150132019-02-20 Alan Hayward <alan.hayward@arm.com>
15014
15015 * aarch64-tdep.c (aarch64_add_reggroups): New function.
15016 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
15017
6caa91b6
SM
150182019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
15019
15020 * top.h (source_file_name): Change to std::string.
15021 * top.c (source_file_name): Likewise.
15022 (command_line_input): Adjust.
15023 * cli/cli-script.c (script_from_file): Adjust.
15024
98814c6c
TT
150252019-02-19 Tom Tromey <tromey@adacore.com>
15026
15027 * ravenscar-thread.c
15028 (ravenscar_thread_target::update_thread_list): Don't call
15029 ada_build_task_list.
15030 * ada-lang.h (ada_build_task_list): Don't declare.
15031 * ada-tasks.c (struct ada_tasks_inferior_data)
15032 <task_list_valid_p>: Now bool.
15033 (read_known_tasks, ada_task_list_changed)
15034 (ada_tasks_invalidate_inferior_data): Update.
15035 (read_known_tasks_array): Return bool.
15036 (read_known_tasks_list): Likewise.
15037 (read_known_tasks): Return void.
15038 (ada_build_task_list): Now static.
15039
70cd633e
AB
150402019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
15041
15042 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
15043 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
15044
040b3e95
PW
150452019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15046
15047 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
15048 variant for ada_tasks_pspace_data_handle and
15049 ada_tasks_inferior_data_handle.
15050 (ada_tasks_pspace_data_cleanup): New function.
15051 (ada_tasks_inferior_data_cleanup): New function.
15052
9409233b
TT
150532019-02-17 Tom Tromey <tom@tromey.com>
15054
15055 * macrotab.h (macro_source_fullname): Return a std::string.
15056 * macrotab.c (macro_include, check_for_redefinition)
15057 (macro_undef, macro_lookup_definition, foreach_macro)
15058 (foreach_macro_in_scope): Update.
15059 (macro_source_fullname): Return a std::string.
15060 * macrocmd.c (show_pp_source_pos): Update.
15061
6506371f
TT
150622019-02-17 Tom Tromey <tom@tromey.com>
15063
15064 * macrocmd.c (show_pp_source_pos): Style the file names.
15065
0c820d67
TT
150662019-02-17 Tom Tromey <tom@tromey.com>
15067
15068 PR tui/24197:
15069 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
15070
a0087920
TT
150712019-02-17 Tom Tromey <tom@tromey.com>
15072
15073 * ada-lang.c (user_select_syms): Use filtered printing.
15074 * utils.c (wrap_style): New global.
15075 (desired_style): Remove.
15076 (emit_style_escape): Add stream parameter.
15077 (set_output_style, reset_terminal_style, prompt_for_continue):
15078 Update.
15079 (flush_wrap_buffer): Only flush gdb_stdout.
15080 (wrap_here): Set wrap_style.
15081 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
15082 treat escape sequences as a character. Change when wrap buffer is
15083 flushed.
15084 (fputs_styled): Do not set the output style when the default is
15085 requested.
15086 * ui-style.h (struct ui_file_style) <is_default>: New method.
15087 * source.c (print_source_lines_base): Emit escape sequences in one
15088 piece.
15089
75ba10dc
JB
150902019-02-17 Joel Brobecker <brobecker@adacore.com>
15091
15092 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
15093 integers and enumeration types.
15094
a2cd4f14
JB
150952019-02-17 Joel Brobecker <brobecker@adacore.com>
15096
15097 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
15098 instead of lookup_symbol_in_language
15099 (do_exact_match): New function.
15100 (ada_get_symbol_name_matcher): Return do_exact_match when
15101 doing a verbatim match.
15102
485b851b
TT
151032019-02-15 Tom Tromey <tromey@adacore.com>
15104
15105 * ravenscar-thread.c (ravenscar_thread_target::resume)
15106 (ravenscar_thread_target::wait): Special case wildcard requests.
15107
0b790b1e
TT
151082019-02-15 Tom Tromey <tromey@adacore.com>
15109
15110 * ravenscar-thread.c (base_ptid): Remove.
15111 (struct ravenscar_thread_target) <close>: New method.
15112 <m_base_ptid>: New member.
15113 <update_inferior_ptid, active_task, task_is_currently_active,
15114 runtime_initialized>: Declare methods.
15115 <ravenscar_thread_target>: Add constructor.
15116 (ravenscar_thread_target::task_is_currently_active)
15117 (ravenscar_thread_target::update_inferior_ptid)
15118 (ravenscar_runtime_initialized): Rename. Now methods.
15119 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
15120 (ravenscar_thread_target::update_thread_list): Update.
15121 (ravenscar_thread_target::active_task): Now method.
15122 (ravenscar_thread_target::store_registers)
15123 (ravenscar_thread_target::prepare_to_store)
15124 (ravenscar_thread_target::prepare_to_store)
15125 (ravenscar_thread_target::mourn_inferior): Update.
15126 (ravenscar_inferior_created): Use "new" to create target.
15127 (ravenscar_thread_target::get_ada_task_ptid): Update.
15128 (_initialize_ravenscar): Don't initialize base_ptid.
15129 (ravenscar_ops): Remove global.
15130
dea57a62
TT
151312019-02-15 Tom Tromey <tromey@adacore.com>
15132
15133 * target.h (push_target): Declare new overload.
15134 * target.c (push_target): New overload, taking an rvalue reference.
15135 * remote.c (remote_target::open_1): Use push_target overload.
15136 * corelow.c (core_target_open): Use push_target overload.
15137
989f3c58
TT
151382019-02-15 Tom Tromey <tromey@adacore.com>
15139
15140 * ravenscar-thread.c (is_ravenscar_task)
15141 (ravenscar_task_is_currently_active): Return bool.
15142 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
15143 (_initialize_ravenscar): Remove "(void)".
15144 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
15145 Return bool.
15146
6cbcc006
TT
151472019-02-15 Tom Tromey <tromey@adacore.com>
15148
15149 * ravenscar-thread.c (ravenscar_runtime_initializer)
15150 (has_ravenscar_runtime, get_running_thread_id)
15151 (ravenscar_thread_target::resume): Fix indentation.
15152
7657f14d
TT
151532019-02-15 Tom Tromey <tromey@adacore.com>
15154
15155 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
15156 from ravenscar_arch_ops.
15157 (sparc_ravenscar_ops::fetch_registers)
15158 (sparc_ravenscar_ops::store_registers): Now methods.
15159 (sparc_ravenscar_prepare_to_store): Remove.
15160 (sparc_ravenscar_ops): Redefine.
15161 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
15162 methods and destructor. Remove members.
15163 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
15164 (ravenscar_thread_target::store_registers)
15165 (ravenscar_thread_target::prepare_to_store): Update.
15166 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
15167 Remove.
15168 (struct ppc_ravenscar_powerpc_ops): Derive from
15169 ravenscar_arch_ops.
15170 (ppc_ravenscar_powerpc_ops::fetch_registers)
15171 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
15172 (ppc_ravenscar_powerpc_ops): Redefine.
15173 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
15174 (ppc_ravenscar_e500_ops::fetch_registers)
15175 (ppc_ravenscar_e500_ops::store_registers): Now methods.
15176 (ppc_ravenscar_e500_ops): Redefine.
15177 * aarch64-ravenscar-thread.c
15178 (aarch64_ravenscar_generic_prepare_to_store): Remove.
15179 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
15180 (aarch64_ravenscar_fetch_registers)
15181 (aarch64_ravenscar_store_registers): Now methods.
15182 (aarch64_ravenscar_ops): Redefine.
15183
5b6ea500
TT
151842019-02-15 Tom Tromey <tromey@adacore.com>
15185
15186 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
15187 (ravenscar_thread_target::stopped_by_hw_breakpoint)
15188 (ravenscar_thread_target::stopped_by_watchpoint)
15189 (ravenscar_thread_target::stopped_data_address)
15190 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
15191
e397fd39
TT
151922019-02-15 Tom Tromey <tromey@adacore.com>
15193
15194 * ravenscar-thread.c: Fix some typos.
15195
cc12f4a8
TT
151962019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15197 Tom Tromey <tromey@adacore.com>
15198
15199 * ada-lang.c (ada_exception_sal): Change addr_string to a
15200 std::string.
15201 (create_ada_exception_catchpoint): Update.
15202
5f486660
TT
152032019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15204 Tom Tromey <tromey@adacore.com>
15205
15206 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
15207 (bp_location_ops): Remove.
15208 (base_breakpoint_allocate_location): Update.
15209 (free_bp_location): Update.
15210 * ada-lang.c (class ada_catchpoint_location)
15211 <ada_catchpoint_location>: Remove ops parameter.
15212 (ada_catchpoint_location_dtor): Remove.
15213 (ada_catchpoint_location_ops): Remove.
15214 (allocate_location_exception): Update.
15215 * breakpoint.h (struct bp_location_ops): Remove.
15216 (class bp_location) <bp_location>: Remove bp_location_ops
15217 parameter.
15218 <~bp_location>: Add destructor.
15219 <ops>: Remove.
15220
b671c7fb
TS
152212019-02-14 Thomas Schwinge <thomas@codesourcery.com>
15222 Pedro Alves <palves@redhat.com>
15223
15224 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
15225 'PATH_MAX'.
15226
8071c5ce
DM
152272019-02-14 David Michael <fedora.dm0@gmail.com>
15228 Samuel Thibault <samuel.thibault@gnu.org>
15229 Thomas Schwinge <thomas@codesourcery.com>
15230
15231 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
15232 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
15233
b1041ae0
TS
152342019-02-14 Thomas Schwinge <thomas@codesourcery.com>
15235
924514e1
TS
15236 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
15237 (check_empty): Use "const char *".
15238
c29ee8d4
TS
15239 * gnu-nat.c (gnu_nat_target::detach): Instead of
15240 'detach_inferior (pid)' call
15241 'detach_inferior (find_inferior_pid (pid))'.
15242
6c6ef69f
TS
15243 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
15244 'nat/fork-inferior.o'.
15245 * gnu-nat.c: #include "nat/fork-inferior.h".
15246
2d0a338c
TS
15247 * gnu-nat.c (gnu_nat_target::detach): Instead of
15248 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
15249 * gnu-nat.h: #include "inf-child.h".
15250 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
15251 'i386_gnu_nat_target::fetch_registers'.
15252 (gnu_store_registers): Rename/move to
15253 'i386_gnu_nat_target::store_registers'.
15254
cabb5f06
TS
15255 * config/i386/nm-i386gnu.h: Don't "#include" any files.
15256 * gnu-nat.h (mach_thread_info): New function.
15257 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
15258
b1041ae0
TS
15259 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
15260
2988d01e
KF
152612019-02-14 Frederic Konrad <konrad@adacore.com>
15262
15263 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
15264
c559d709
JB
152652019-02-14 Joel Brobecker <brobecker@adacore.com>
15266
15267 * windows-nat.c (windows_add_thread): Add new parameter
15268 "main_thread_p" with default value set to false. Update
15269 function documentation as well as all callers.
15270 (windows_delete_thread): Likewise.
15271 (fake_create_process): Update call to windows_add_thread.
15272 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
15273 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
15274 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
15275 call to windows_delete_thread.
15276
007024cc
SM
152772019-02-13 Simon Marchi <simon.marchi@ericsson.com>
15278
15279 * MAINTAINERS: Add Andrew Burgess as global maintainer.
15280
f62318e9
JB
152812019-02-12 John Baldwin <jhb@FreeBSD.org>
15282
15283 * symfile.c (find_separate_debug_file): Use canonical path of
15284 sysroot with child_path instead of gdb_sysroot if it is valid.
15285
cd4b7848
JB
152862019-02-12 John Baldwin <jhb@FreeBSD.org>
15287
15288 * symfile.c (find_separate_debug_file): Use child_path to
15289 determine if an object file is under a sysroot.
15290
efac4bfe
JB
152912019-02-12 John Baldwin <jhb@FreeBSD.org>
15292
15293 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
15294 unittests/child-path-selftests.c.
15295 * common/pathstuff.c (child_path): New function.
15296 * common/pathstuff.h (child_path): New prototype.
15297 * unittests/child-path-selftests.c: New file.
15298
402d2bfe
JB
152992019-02-12 John Baldwin <jhb@FreeBSD.org>
15300
15301 * symfile.c (find_separate_debug_file): Look for separate debug
15302 files in debug directories under the sysroot.
15303
1ed9f74e
PW
153042019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15305
15306 * symtab.h (struct minimal_symbol data_p): New const method.
15307 (struct minimal_symbol text_p): Likewise.
15308 * symtab.c (output_source_filename): Use file name style
15309 to print file name.
15310 (print_symbol_info): Likewise.
15311 (print_msymbol_info): Use address style to print addresses.
15312 Use function name style to print executable text symbols.
15313 (expand_symtab_containing_pc): Use data_p.
15314 (find_pc_sect_compunit_symtab): Likewise.
15315
2636d81d
PW
153162019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15317
15318 * breakpoint.c (describe_other_breakpoints): Use address style
15319 to print addresses.
15320 (say_where): Likewise.
15321
ac8c53cc
PW
153222019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15323
15324 * ada-typeprint.c (print_func_type): Print function name
15325 style to print function name.
15326 * c-typeprint.c (c_print_type_1): Likewise.
15327
ea638c43
AH
153282019-02-11 Alan Hayward <alan.hayward@arm.com>
15329
15330 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
15331 for execve.
15332
ab759ca8
PW
153332019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15334
15335 * c-exp.y (direct_abs_decl): Use emplace_back to record the
15336 type_stack.
15337
aff29d1c
JB
153382019-02-10 Joel Brobecker <brobecker@adacore.com>
15339
15340 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
15341 TYPE_CODE_REF types.
15342
617126bc
JW
153432019-02-08 Jim Wilson <jimw@sifive.com>
15344
15345 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
15346 (riscv_linux_fregset): New.
15347 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
15348
46e3ed7f
TT
153492019-02-07 Tom Tromey <tom@tromey.com>
15350
15351 * thread.c (thread_cancel_execution_command): Update.
15352 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
15353 methods.
15354 (struct thread_fsm_ops): Remove.
15355 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
15356 (thread_fsm_should_stop, thread_fsm_return_value)
15357 (thread_fsm_set_finished, thread_fsm_finished_p)
15358 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
15359 Don't declare.
15360 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
15361 * infrun.c (clear_proceed_status_thread)
15362 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
15363 (print_stop_event): Update.
15364 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
15365 Add constructor.
15366 (step_command_fsm_ops): Remove.
15367 (new_step_command_fsm): Remove.
15368 (step_1): Update.
15369 (step_command_fsm::should_stop): Rename from
15370 step_command_fsm_should_stop.
15371 (step_command_fsm::clean_up): Rename from
15372 step_command_fsm_clean_up.
15373 (step_command_fsm::do_async_reply_reason): Rename from
15374 step_command_fsm_async_reply_reason.
15375 (struct until_next_fsm): Inherit from thread_fsm. Add
15376 constructor.
15377 (until_next_fsm_ops): Remove.
15378 (new_until_next_fsm): Remove.
15379 (until_next_fsm::should_stop): Rename from
15380 until_next_fsm_should_stop.
15381 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
15382 (until_next_fsm::do_async_reply_reason): Rename from
15383 until_next_fsm_async_reply_reason.
15384 (struct finish_command_fsm): Inherit from thread_fsm. Add
15385 constructor. Change type of breakpoint.
15386 (finish_command_fsm_ops): Remove.
15387 (new_finish_command_fsm): Remove.
15388 (finish_command_fsm::should_stop): Rename from
15389 finish_command_fsm_should_stop.
15390 (finish_command_fsm::clean_up): Rename from
15391 finish_command_fsm_clean_up.
15392 (finish_command_fsm::return_value): Rename from
15393 finish_command_fsm_return_value.
15394 (finish_command_fsm::do_async_reply_reason): Rename from
15395 finish_command_fsm_async_reply_reason.
15396 (finish_command): Update.
15397 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
15398 Add constructor.
15399 (call_thread_fsm_ops): Remove.
15400 (call_thread_fsm::call_thread_fsm): Rename from
15401 new_call_thread_fsm.
15402 (call_thread_fsm::should_stop): Rename from
15403 call_thread_fsm_should_stop.
15404 (call_thread_fsm::should_notify_stop): Rename from
15405 call_thread_fsm_should_notify_stop.
15406 (run_inferior_call, call_function_by_hand_dummy): Update.
15407 * cli/cli-interp.c (should_print_stop_to_console): Update.
15408 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
15409 Add constructor. Change type of location_breakpoint,
15410 caller_breakpoint.
15411 (until_break_fsm_ops): Remove.
15412 (new_until_break_fsm): Remove.
15413 (until_break_fsm::should_stop): Rename from
15414 until_break_fsm_should_stop.
15415 (until_break_fsm::clean_up): Rename from
15416 until_break_fsm_clean_up.
15417 (until_break_fsm::do_async_reply_reason): Rename from
15418 until_break_fsm_async_reply_reason.
15419 (until_break_command): Update.
15420 * thread-fsm.c: Remove.
15421 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
15422
1a5c2598
TT
154232019-02-07 Tom Tromey <tom@tromey.com>
15424
15425 * yy-remap.h: Add include guard.
15426 * xtensa-tdep.h: Add include guard.
15427 * xcoffread.h: Rename include guard.
15428 * varobj-iter.h: Add include guard.
15429 * tui/tui.h: Rename include guard.
15430 * tui/tui-winsource.h: Rename include guard.
15431 * tui/tui-wingeneral.h: Rename include guard.
15432 * tui/tui-windata.h: Rename include guard.
15433 * tui/tui-win.h: Rename include guard.
15434 * tui/tui-stack.h: Rename include guard.
15435 * tui/tui-source.h: Rename include guard.
15436 * tui/tui-regs.h: Rename include guard.
15437 * tui/tui-out.h: Rename include guard.
15438 * tui/tui-layout.h: Rename include guard.
15439 * tui/tui-io.h: Rename include guard.
15440 * tui/tui-hooks.h: Rename include guard.
15441 * tui/tui-file.h: Rename include guard.
15442 * tui/tui-disasm.h: Rename include guard.
15443 * tui/tui-data.h: Rename include guard.
15444 * tui/tui-command.h: Rename include guard.
15445 * tic6x-tdep.h: Add include guard.
15446 * target/waitstatus.h: Rename include guard.
15447 * target/wait.h: Rename include guard.
15448 * target/target.h: Rename include guard.
15449 * target/resume.h: Rename include guard.
15450 * target-float.h: Rename include guard.
15451 * stabsread.h: Add include guard.
15452 * rs6000-tdep.h: Add include guard.
15453 * riscv-fbsd-tdep.h: Add include guard.
15454 * regformats/regdef.h: Rename include guard.
15455 * record.h: Rename include guard.
15456 * python/python.h: Rename include guard.
15457 * python/python-internal.h: Rename include guard.
15458 * python/py-stopevent.h: Rename include guard.
15459 * python/py-ref.h: Rename include guard.
15460 * python/py-record.h: Rename include guard.
15461 * python/py-record-full.h: Rename include guard.
15462 * python/py-record-btrace.h: Rename include guard.
15463 * python/py-instruction.h: Rename include guard.
15464 * python/py-events.h: Rename include guard.
15465 * python/py-event.h: Rename include guard.
15466 * procfs.h: Add include guard.
15467 * proc-utils.h: Add include guard.
15468 * p-lang.h: Add include guard.
15469 * or1k-tdep.h: Rename include guard.
15470 * observable.h: Rename include guard.
15471 * nto-tdep.h: Rename include guard.
15472 * nat/x86-linux.h: Rename include guard.
15473 * nat/x86-linux-dregs.h: Rename include guard.
15474 * nat/x86-gcc-cpuid.h: Add include guard.
15475 * nat/x86-dregs.h: Rename include guard.
15476 * nat/x86-cpuid.h: Rename include guard.
15477 * nat/ppc-linux.h: Rename include guard.
15478 * nat/mips-linux-watch.h: Rename include guard.
15479 * nat/linux-waitpid.h: Rename include guard.
15480 * nat/linux-ptrace.h: Rename include guard.
15481 * nat/linux-procfs.h: Rename include guard.
15482 * nat/linux-osdata.h: Rename include guard.
15483 * nat/linux-nat.h: Rename include guard.
15484 * nat/linux-namespaces.h: Rename include guard.
15485 * nat/linux-btrace.h: Rename include guard.
15486 * nat/glibc_thread_db.h: Rename include guard.
15487 * nat/gdb_thread_db.h: Rename include guard.
15488 * nat/gdb_ptrace.h: Rename include guard.
15489 * nat/fork-inferior.h: Rename include guard.
15490 * nat/amd64-linux-siginfo.h: Rename include guard.
15491 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
15492 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
15493 * nat/aarch64-linux.h: Rename include guard.
15494 * nat/aarch64-linux-hw-point.h: Rename include guard.
15495 * mn10300-tdep.h: Add include guard.
15496 * mips-linux-tdep.h: Add include guard.
15497 * mi/mi-parse.h: Rename include guard.
15498 * mi/mi-out.h: Rename include guard.
15499 * mi/mi-main.h: Rename include guard.
15500 * mi/mi-interp.h: Rename include guard.
15501 * mi/mi-getopt.h: Rename include guard.
15502 * mi/mi-console.h: Rename include guard.
15503 * mi/mi-common.h: Rename include guard.
15504 * mi/mi-cmds.h: Rename include guard.
15505 * mi/mi-cmd-break.h: Rename include guard.
15506 * m2-lang.h: Add include guard.
15507 * location.h: Rename include guard.
15508 * linux-record.h: Rename include guard.
15509 * linux-nat.h: Add include guard.
15510 * linux-fork.h: Add include guard.
15511 * i386-darwin-tdep.h: Rename include guard.
15512 * hppa-linux-offsets.h: Add include guard.
15513 * guile/guile.h: Rename include guard.
15514 * guile/guile-internal.h: Rename include guard.
15515 * gnu-nat.h: Rename include guard.
15516 * gdb-stabs.h: Rename include guard.
15517 * frv-tdep.h: Add include guard.
15518 * f-lang.h: Add include guard.
15519 * event-loop.h: Add include guard.
15520 * darwin-nat.h: Rename include guard.
15521 * cp-abi.h: Rename include guard.
15522 * config/sparc/nm-sol2.h: Rename include guard.
15523 * config/nm-nto.h: Rename include guard.
15524 * config/nm-linux.h: Add include guard.
15525 * config/i386/nm-i386gnu.h: Rename include guard.
15526 * config/djgpp/nl_types.h: Rename include guard.
15527 * config/djgpp/langinfo.h: Rename include guard.
15528 * compile/gcc-cp-plugin.h: Add include guard.
15529 * compile/gcc-c-plugin.h: Add include guard.
15530 * compile/compile.h: Rename include guard.
15531 * compile/compile-object-run.h: Rename include guard.
15532 * compile/compile-object-load.h: Rename include guard.
15533 * compile/compile-internal.h: Rename include guard.
15534 * compile/compile-cplus.h: Rename include guard.
15535 * compile/compile-c.h: Rename include guard.
15536 * common/xml-utils.h: Rename include guard.
15537 * common/x86-xstate.h: Rename include guard.
15538 * common/version.h: Rename include guard.
15539 * common/vec.h: Rename include guard.
15540 * common/tdesc.h: Rename include guard.
15541 * common/selftest.h: Rename include guard.
15542 * common/scoped_restore.h: Rename include guard.
15543 * common/scoped_mmap.h: Rename include guard.
15544 * common/scoped_fd.h: Rename include guard.
15545 * common/safe-iterator.h: Rename include guard.
15546 * common/run-time-clock.h: Rename include guard.
15547 * common/refcounted-object.h: Rename include guard.
15548 * common/queue.h: Rename include guard.
15549 * common/ptid.h: Rename include guard.
15550 * common/print-utils.h: Rename include guard.
15551 * common/preprocessor.h: Rename include guard.
15552 * common/pathstuff.h: Rename include guard.
15553 * common/observable.h: Rename include guard.
15554 * common/netstuff.h: Rename include guard.
15555 * common/job-control.h: Rename include guard.
15556 * common/host-defs.h: Rename include guard.
15557 * common/gdb_wait.h: Rename include guard.
15558 * common/gdb_vecs.h: Rename include guard.
15559 * common/gdb_unlinker.h: Rename include guard.
15560 * common/gdb_unique_ptr.h: Rename include guard.
15561 * common/gdb_tilde_expand.h: Rename include guard.
15562 * common/gdb_sys_time.h: Rename include guard.
15563 * common/gdb_string_view.h: Rename include guard.
15564 * common/gdb_splay_tree.h: Rename include guard.
15565 * common/gdb_setjmp.h: Rename include guard.
15566 * common/gdb_ref_ptr.h: Rename include guard.
15567 * common/gdb_optional.h: Rename include guard.
15568 * common/gdb_locale.h: Rename include guard.
15569 * common/gdb_assert.h: Rename include guard.
15570 * common/filtered-iterator.h: Rename include guard.
15571 * common/filestuff.h: Rename include guard.
15572 * common/fileio.h: Rename include guard.
15573 * common/environ.h: Rename include guard.
15574 * common/common-utils.h: Rename include guard.
15575 * common/common-types.h: Rename include guard.
15576 * common/common-regcache.h: Rename include guard.
15577 * common/common-inferior.h: Rename include guard.
15578 * common/common-gdbthread.h: Rename include guard.
15579 * common/common-exceptions.h: Rename include guard.
15580 * common/common-defs.h: Rename include guard.
15581 * common/common-debug.h: Rename include guard.
15582 * common/cleanups.h: Rename include guard.
15583 * common/buffer.h: Rename include guard.
15584 * common/btrace-common.h: Rename include guard.
15585 * common/break-common.h: Rename include guard.
15586 * cli/cli-utils.h: Rename include guard.
15587 * cli/cli-style.h: Rename include guard.
15588 * cli/cli-setshow.h: Rename include guard.
15589 * cli/cli-script.h: Rename include guard.
15590 * cli/cli-interp.h: Rename include guard.
15591 * cli/cli-decode.h: Rename include guard.
15592 * cli/cli-cmds.h: Rename include guard.
15593 * charset-list.h: Add include guard.
15594 * buildsym-legacy.h: Rename include guard.
15595 * bfin-tdep.h: Add include guard.
15596 * ax.h: Rename include guard.
15597 * arm-linux-tdep.h: Add include guard.
15598 * arm-fbsd-tdep.h: Add include guard.
15599 * arch/xtensa.h: Rename include guard.
15600 * arch/tic6x.h: Add include guard.
15601 * arch/i386.h: Add include guard.
15602 * arch/arm.h: Rename include guard.
15603 * arch/arm-linux.h: Rename include guard.
15604 * arch/arm-get-next-pcs.h: Rename include guard.
15605 * arch/amd64.h: Add include guard.
15606 * arch/aarch64-insn.h: Rename include guard.
15607 * arch-utils.h: Rename include guard.
15608 * annotate.h: Add include guard.
15609 * amd64-darwin-tdep.h: Rename include guard.
15610 * aarch64-linux-tdep.h: Add include guard.
15611 * aarch64-fbsd-tdep.h: Add include guard.
15612 * aarch32-linux-nat.h: Add include guard.
15613
ab9268d2
PW
156142019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15615
15616 * macrotab.c (macro_define_internal): New function that
15617 factorizes macro_define_object_internal and macro_define_function
15618 code.
15619 (macro_define_object_internal): Use macro_define_internal.
15620 (macro_define_function): Likewise.
15621
bb0da2b4
PW
156222019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15623
15624 * macrocmd.c (extract_identifier): Return
15625 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
15626 callers.
15627
424eb552
JB
156282019-02-06 John Baldwin <jhb@FreeBSD.org>
15629
15630 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
15631
1688cb29
TT
156322019-02-05 Tom Tromey <tom@tromey.com>
15633
15634 * target.c (target_stack::unpush): Move assertion earlier.
15635
b5eba2d8
TT
156362019-01-30 Tom Tromey <tom@tromey.com>
15637
15638 PR python/23615:
15639 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
15640 (gdbpy_parse_and_eval): Likewise.
15641 * python/python-internal.h (gdbpy_allow_threads): New class.
15642
7054e2ff
JB
156432019-01-28 John Baldwin <jhb@FreeBSD.org>
15644
15645 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
15646 (aarch64_fbsd_fpregmap): Move earlier.
15647 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
15648 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
15649 instead of individual calls to trad_frame_set_reg_addr.
15650 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
15651 earlier.
15652 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
15653 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
15654 instead of individual calls to trad_frame_set_reg_addr.
15655
36c25ffa
AH
156562019-01-28 Alan Hayward <alan.hayward@arm.com>
15657
15658 * CONTRIBUTE: Replace contribution list with wiki link.
15659
a0707f3c
TT
156602019-01-25 Tom Tromey <tom@tromey.com>
15661
15662 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
15663
0747795c
TT
156642019-01-25 Tom Tromey <tom@tromey.com>
15665
15666 * xtensa-linux-nat.c: Fix common/ includes.
15667 * xml-support.h: Fix common/ includes.
15668 * xml-support.c: Fix common/ includes.
15669 * x86-linux-nat.c: Fix common/ includes.
15670 * windows-nat.c: Fix common/ includes.
15671 * varobj.h: Fix common/ includes.
15672 * varobj.c: Fix common/ includes.
15673 * value.c: Fix common/ includes.
15674 * valops.c: Fix common/ includes.
15675 * utils.c: Fix common/ includes.
15676 * unittests/xml-utils-selftests.c: Fix common/ includes.
15677 * unittests/utils-selftests.c: Fix common/ includes.
15678 * unittests/unpack-selftests.c: Fix common/ includes.
15679 * unittests/tracepoint-selftests.c: Fix common/ includes.
15680 * unittests/style-selftests.c: Fix common/ includes.
15681 * unittests/string_view-selftests.c: Fix common/ includes.
15682 * unittests/scoped_restore-selftests.c: Fix common/ includes.
15683 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
15684 * unittests/scoped_fd-selftests.c: Fix common/ includes.
15685 * unittests/rsp-low-selftests.c: Fix common/ includes.
15686 * unittests/parse-connection-spec-selftests.c: Fix common/
15687 includes.
15688 * unittests/optional-selftests.c: Fix common/ includes.
15689 * unittests/offset-type-selftests.c: Fix common/ includes.
15690 * unittests/observable-selftests.c: Fix common/ includes.
15691 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
15692 * unittests/memrange-selftests.c: Fix common/ includes.
15693 * unittests/memory-map-selftests.c: Fix common/ includes.
15694 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
15695 * unittests/function-view-selftests.c: Fix common/ includes.
15696 * unittests/environ-selftests.c: Fix common/ includes.
15697 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
15698 * unittests/common-utils-selftests.c: Fix common/ includes.
15699 * unittests/cli-utils-selftests.c: Fix common/ includes.
15700 * unittests/array-view-selftests.c: Fix common/ includes.
15701 * ui-file.c: Fix common/ includes.
15702 * tui/tui-io.c: Fix common/ includes.
15703 * tracepoint.h: Fix common/ includes.
15704 * tracepoint.c: Fix common/ includes.
15705 * tracefile-tfile.c: Fix common/ includes.
15706 * top.h: Fix common/ includes.
15707 * top.c: Fix common/ includes.
15708 * thread.c: Fix common/ includes.
15709 * target/waitstatus.h: Fix common/ includes.
15710 * target/waitstatus.c: Fix common/ includes.
15711 * target.h: Fix common/ includes.
15712 * target.c: Fix common/ includes.
15713 * target-memory.c: Fix common/ includes.
15714 * target-descriptions.c: Fix common/ includes.
15715 * symtab.h: Fix common/ includes.
15716 * symfile.c: Fix common/ includes.
15717 * stap-probe.c: Fix common/ includes.
15718 * spu-linux-nat.c: Fix common/ includes.
15719 * sparc-nat.c: Fix common/ includes.
15720 * source.c: Fix common/ includes.
15721 * solib.c: Fix common/ includes.
15722 * solib-target.c: Fix common/ includes.
15723 * ser-unix.c: Fix common/ includes.
15724 * ser-tcp.c: Fix common/ includes.
15725 * ser-pipe.c: Fix common/ includes.
15726 * ser-base.c: Fix common/ includes.
15727 * selftest-arch.c: Fix common/ includes.
15728 * s12z-tdep.c: Fix common/ includes.
15729 * rust-exp.y: Fix common/ includes.
15730 * rs6000-aix-tdep.c: Fix common/ includes.
15731 * riscv-tdep.c: Fix common/ includes.
15732 * remote.c: Fix common/ includes.
15733 * remote-notif.h: Fix common/ includes.
15734 * remote-fileio.h: Fix common/ includes.
15735 * remote-fileio.c: Fix common/ includes.
15736 * regcache.h: Fix common/ includes.
15737 * regcache.c: Fix common/ includes.
15738 * record-btrace.c: Fix common/ includes.
15739 * python/python.c: Fix common/ includes.
15740 * python/py-type.c: Fix common/ includes.
15741 * python/py-inferior.c: Fix common/ includes.
15742 * progspace.h: Fix common/ includes.
15743 * producer.c: Fix common/ includes.
15744 * procfs.c: Fix common/ includes.
15745 * proc-api.c: Fix common/ includes.
15746 * printcmd.c: Fix common/ includes.
15747 * ppc-linux-nat.c: Fix common/ includes.
15748 * parser-defs.h: Fix common/ includes.
15749 * osdata.c: Fix common/ includes.
15750 * obsd-nat.c: Fix common/ includes.
15751 * nat/x86-linux.c: Fix common/ includes.
15752 * nat/x86-linux-dregs.c: Fix common/ includes.
15753 * nat/x86-dregs.h: Fix common/ includes.
15754 * nat/x86-dregs.c: Fix common/ includes.
15755 * nat/ppc-linux.c: Fix common/ includes.
15756 * nat/mips-linux-watch.h: Fix common/ includes.
15757 * nat/mips-linux-watch.c: Fix common/ includes.
15758 * nat/linux-waitpid.c: Fix common/ includes.
15759 * nat/linux-ptrace.h: Fix common/ includes.
15760 * nat/linux-ptrace.c: Fix common/ includes.
15761 * nat/linux-procfs.c: Fix common/ includes.
15762 * nat/linux-personality.c: Fix common/ includes.
15763 * nat/linux-osdata.c: Fix common/ includes.
15764 * nat/linux-namespaces.c: Fix common/ includes.
15765 * nat/linux-btrace.h: Fix common/ includes.
15766 * nat/linux-btrace.c: Fix common/ includes.
15767 * nat/fork-inferior.c: Fix common/ includes.
15768 * nat/amd64-linux-siginfo.c: Fix common/ includes.
15769 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
15770 * nat/aarch64-linux.c: Fix common/ includes.
15771 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
15772 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
15773 * namespace.h: Fix common/ includes.
15774 * mips-linux-tdep.c: Fix common/ includes.
15775 * minsyms.c: Fix common/ includes.
15776 * mi/mi-parse.h: Fix common/ includes.
15777 * mi/mi-main.c: Fix common/ includes.
15778 * mi/mi-cmd-env.c: Fix common/ includes.
15779 * memrange.h: Fix common/ includes.
15780 * memattr.c: Fix common/ includes.
15781 * maint.h: Fix common/ includes.
15782 * maint.c: Fix common/ includes.
15783 * main.c: Fix common/ includes.
15784 * machoread.c: Fix common/ includes.
15785 * location.c: Fix common/ includes.
15786 * linux-thread-db.c: Fix common/ includes.
15787 * linux-nat.c: Fix common/ includes.
15788 * linux-fork.c: Fix common/ includes.
15789 * inline-frame.c: Fix common/ includes.
15790 * infrun.c: Fix common/ includes.
15791 * inflow.c: Fix common/ includes.
15792 * inferior.h: Fix common/ includes.
15793 * inferior.c: Fix common/ includes.
15794 * infcmd.c: Fix common/ includes.
15795 * inf-ptrace.c: Fix common/ includes.
15796 * inf-child.c: Fix common/ includes.
15797 * ia64-linux-nat.c: Fix common/ includes.
15798 * i387-tdep.c: Fix common/ includes.
15799 * i386-tdep.c: Fix common/ includes.
15800 * i386-linux-tdep.c: Fix common/ includes.
15801 * i386-linux-nat.c: Fix common/ includes.
15802 * i386-go32-tdep.c: Fix common/ includes.
15803 * i386-fbsd-tdep.c: Fix common/ includes.
15804 * i386-fbsd-nat.c: Fix common/ includes.
15805 * guile/scm-type.c: Fix common/ includes.
15806 * guile/guile.c: Fix common/ includes.
15807 * go32-nat.c: Fix common/ includes.
15808 * gnu-nat.c: Fix common/ includes.
15809 * gdbthread.h: Fix common/ includes.
15810 * gdbarch-selftests.c: Fix common/ includes.
15811 * gdb_usleep.c: Fix common/ includes.
15812 * gdb_select.h: Fix common/ includes.
15813 * gdb_bfd.c: Fix common/ includes.
15814 * gcore.c: Fix common/ includes.
15815 * fork-child.c: Fix common/ includes.
15816 * findvar.c: Fix common/ includes.
15817 * fbsd-nat.c: Fix common/ includes.
15818 * event-top.c: Fix common/ includes.
15819 * event-loop.c: Fix common/ includes.
15820 * dwarf2read.c: Fix common/ includes.
15821 * dwarf2loc.c: Fix common/ includes.
15822 * dwarf2-frame.c: Fix common/ includes.
15823 * dwarf-index-cache.c: Fix common/ includes.
15824 * dtrace-probe.c: Fix common/ includes.
15825 * disasm-selftests.c: Fix common/ includes.
15826 * defs.h: Fix common/ includes.
15827 * csky-tdep.c: Fix common/ includes.
15828 * cp-valprint.c: Fix common/ includes.
15829 * cp-support.h: Fix common/ includes.
15830 * cp-support.c: Fix common/ includes.
15831 * corelow.c: Fix common/ includes.
15832 * completer.h: Fix common/ includes.
15833 * completer.c: Fix common/ includes.
15834 * compile/compile.c: Fix common/ includes.
15835 * compile/compile-loc2c.c: Fix common/ includes.
15836 * compile/compile-cplus-types.c: Fix common/ includes.
15837 * compile/compile-cplus-symbols.c: Fix common/ includes.
15838 * command.h: Fix common/ includes.
15839 * cli/cli-dump.c: Fix common/ includes.
15840 * cli/cli-cmds.c: Fix common/ includes.
15841 * charset.c: Fix common/ includes.
15842 * build-id.c: Fix common/ includes.
15843 * btrace.h: Fix common/ includes.
15844 * btrace.c: Fix common/ includes.
15845 * breakpoint.h: Fix common/ includes.
15846 * breakpoint.c: Fix common/ includes.
15847 * ax.h:
15848 (enum agent_op): Fix common/ includes.
15849 * ax-general.c (struct aop_map): Fix common/ includes.
15850 * ax-gdb.c: Fix common/ includes.
15851 * auxv.c: Fix common/ includes.
15852 * auto-load.c: Fix common/ includes.
15853 * arm-tdep.c: Fix common/ includes.
15854 * arch/riscv.c: Fix common/ includes.
15855 * arch/ppc-linux-common.c: Fix common/ includes.
15856 * arch/i386.c: Fix common/ includes.
15857 * arch/arm.c: Fix common/ includes.
15858 * arch/arm-linux.c: Fix common/ includes.
15859 * arch/arm-get-next-pcs.c: Fix common/ includes.
15860 * arch/amd64.c: Fix common/ includes.
15861 * arch/aarch64.c: Fix common/ includes.
15862 * arch/aarch64-insn.c: Fix common/ includes.
15863 * arch-utils.c: Fix common/ includes.
15864 * amd64-windows-tdep.c: Fix common/ includes.
15865 * amd64-tdep.c: Fix common/ includes.
15866 * amd64-sol2-tdep.c: Fix common/ includes.
15867 * amd64-obsd-tdep.c: Fix common/ includes.
15868 * amd64-nbsd-tdep.c: Fix common/ includes.
15869 * amd64-linux-tdep.c: Fix common/ includes.
15870 * amd64-linux-nat.c: Fix common/ includes.
15871 * amd64-fbsd-tdep.c: Fix common/ includes.
15872 * amd64-fbsd-nat.c: Fix common/ includes.
15873 * amd64-dicos-tdep.c: Fix common/ includes.
15874 * amd64-darwin-tdep.c: Fix common/ includes.
15875 * agent.c: Fix common/ includes.
15876 * ada-lang.h: Fix common/ includes.
15877 * ada-lang.c: Fix common/ includes.
15878 * aarch64-tdep.c: Fix common/ includes.
15879
2f5c153e
TT
158802019-01-25 Tom Tromey <tom@tromey.com>
15881
15882 * common/create-version.sh: Use common/version.h.
15883
adc6a863
PA
158842019-01-24 Pedro Alves <palves@redhat.com>
15885
15886 * infrun.c (signal_stop, signal_print, signal_program)
15887 (signal_catch, signal_pass): Now arrays instead of pointers.
15888 (update_signals_program_target, do_target_resume)
15889 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
15890 * linux-nat.c (linux_nat_target::pass_signals)
15891 (linux_nat_target::create_inferior, linux_nat_target::attach):
15892 Adjust.
15893 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
15894 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
15895 * procfs.c (procfs_target::pass_signals): Adjust.
15896 * record-full.c (record_full_target::resume): Adjust.
15897 * remote.c (remote_target::pass_signals)
15898 (remote_target::program_signals): Adjust.
15899 * target-debug.h (target_debug_print_signals): Now takes a
15900 gdb::array_view as parameter. Adjust.
15901 * target.h (target_ops) <pass_signals, program_signals>: Replace
15902 pointer and length parameters with gdb::array_view.
15903 (target_pass_signals, target_program_signals): Likewise.
15904 * target-delegates.c: Regenerate.
15905
3046d67a
PA
159062019-01-24 Pedro Alves <palves@redhat.com>
15907
15908 * common/forward-scope-exit.h
15909 (forward_scope_exit::forward_scope_exit): Pass arguments to
15910 m_bind_function directly, instead of creating a std::bind and
15911 copying that.
15912
353229bf
AH
159132019-01-24 Alan Hayward <alan.hayward@arm.com>
15914
15915 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
15916 for static members.
15917 (pass_in_v_vfp_candidate): Likewise.
15918
311dc83a
TT
159192019-01-23 Tom Tromey <tom@tromey.com>
15920 Pedro Alves <palves@redhat.com>
15921
15922 * regcache.c (class regcache_invalidator): Remove.
15923 (regcache::raw_write): Use make_scope_exit.
15924
296bd123
TT
159252019-01-23 Tom Tromey <tom@tromey.com>
15926
15927 * ui-out.h (class ui_out_emit_type): Update comment.
15928
979a0d13
TT
159292019-01-23 Tom Tromey <tom@tromey.com>
15930
15931 * infrun.c (fetch_inferior_event): Update comment.
15932
d238133d
TT
159332019-01-23 Tom Tromey <tom@tromey.com>
15934 Pedro Alves <palves@redhat.com>
15935
15936 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
15937 parameter.
15938 (fetch_inferior_event): Use SCOPE_EXIT.
15939
15940
9885e6bb
TT
159412019-01-23 Tom Tromey <tom@tromey.com>
15942 Pedro Alves <palves@redhat.com>
15943
15944 * infrun.c (disable_thread_events): Delete.
15945 (stop_all_threads): Use SCOPE_EXIT.
15946
286526c1
TT
159472019-01-23 Tom Tromey <tom@tromey.com>
15948 Pedro Alves <palves@redhat.com>
15949
15950 * symfile.c: Include forward-scope-exit.h.
15951 (clear_symtab_users_cleanup): Replace forward declaration with
15952 a FORWARD_SCOPE_EXIT.
15953 (syms_from_objfile_1): Use the forward_scope_exit and
15954 gdb::optional instead of cleanup_function.
15955 (reread_symbols): Use the forward_scope_exit instead of
15956 cleanup_function.
15957 (clear_symtab_users_cleanup): Remove function.
15958
1db93f14
TT
159592019-01-23 Tom Tromey <tom@tromey.com>
15960 Pedro Alves <palves@redhat.com>
15961
15962 * linux-nat.c: Include scope-exit.h.
15963 (cleanup_target_stop): Remove.
15964 (linux_nat_target::static_tracepoint_markers_by_strid): Use
15965 SCOPE_EXIT.
15966
2cc83d1e
TT
159672019-01-23 Tom Tromey <tom@tromey.com>
15968 Pedro Alves <palves@redhat.com>
15969
15970 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
15971 (call_function_by_hand_dummy): Use SCOPE_EXIT.
15972
694c6bf5
TT
159732019-01-23 Tom Tromey <tom@tromey.com>
15974 Andrew Burgess <andrew.burgess@embecosm.com>
15975 Pedro Alves <palves@redhat.com>
15976
15977 * infrun.c (fetch_inferior_event): Use scope_exit.
15978 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
15979 * top.c (execute_command): Use scope_exit.
15980 * breakpoint.c (bpstat_do_actions): Use scope_exit.
15981 * utils.c (do_bpstat_clear_actions_cleanup)
15982 (make_bpstat_clear_actions_cleanup): Remove.
15983
4c41382a
TT
159842019-01-23 Tom Tromey <tom@tromey.com>
15985 Pedro Alves <palves@redhat.com>
15986
15987 * infrun.c: Include "common/scope-exit.h"
15988 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
15989 (wait_for_inferior): Use SCOPE_EXIT.
15990 (fetch_inferior_event): Use scope_exit.
15991
89f8fb50
TT
159922019-01-23 Tom Tromey <tom@tromey.com>
15993 Pedro Alves <palves@redhat.com>
15994
15995 * breakpoint.c (create_breakpoint): Remove cleanup.
15996
5419bdae
TT
159972019-01-23 Tom Tromey <tom@tromey.com>
15998 Andrew Burgess <andrew.burgess@embecosm.com>
15999 Pedro Alves <palves@redhat.com>
16000
e587ef42
PA
160012019-01-23 Pedro Alves <palves@redhat.com>
16002
16003 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
16004
77f0e74c
PA
160052019-01-23 Pedro Alves <palves@redhat.com>
16006 Andrew Burgess <andrew.burgess@embecosm.com>
16007
16008 * gdbthread.h: Include "common/forward-scope-exit.h".
16009 (scoped_finish_thread_state): Redefine custom class in terms of
16010 forward_scope_exit.
16011
5b9b3e53
PA
160122019-01-23 Pedro Alves <palves@redhat.com>
16013 Andrew Burgess <andrew.burgess@embecosm.com>
16014
16015 * common/forward-scope-exit.h: New file.
16016
54b65c9b
PA
160172019-01-23 Pedro Alves <palves@redhat.com>
16018 Andrew Burgess <andrew.burgess@embecosm.com>
16019 Tom Tromey <tom@tromey.com>
16020
16021 * common/scope-exit.h: New file.
16022
cf08fb29
PA
160232019-01-23 Pedro Alves <palves@redhat.com>
16024
16025 * common/preprocessor.h (ESC): Rename to ...
16026 (ESC_PARENS): ... this.
16027 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
16028 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
16029
ae73e2e2
TT
160302019-01-23 Tom Tromey <tom@tromey.com>
16031
16032 * language.h (class scoped_switch_to_sym_language_if_auto):
16033 Initialize m_lang in both cases.
16034
6594e122
AH
160352019-01-23 Alan Hayward <alan.hayward@arm.com>
16036
16037 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
16038 with XCNEW.
16039
a7c9855d
TT
160402019-01-22 Tom Tromey <tom@tromey.com>
16041
16042 * corelow.c: Do not include sys/file.h.
16043
93cc1d53
TT
160442019-01-22 Tom Tromey <tom@tromey.com>
16045
16046 * tui/tui-wingeneral.h: Include gdb_curses.h.
16047
38561778
TT
160482019-01-22 Tom Tromey <tom@tromey.com>
16049
16050 * source-cache.h (class source_cache) <get_source_lines,
16051 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
16052
37b3ab5b
TT
160532019-01-22 Tom Tromey <tom@tromey.com>
16054
16055 * remote-fileio.h (struct remote_target): Declare.
16056
3fabc016
TT
160572019-01-22 Tom Tromey <tom@tromey.com>
16058
16059 * python/py-arch.c: Do not include py-ref.h.
16060 * python/py-bpevent.c: Do not include py-ref.h.
16061 * python/py-cmd.c: Do not include py-ref.h.
16062 * python/py-continueevent.c: Do not include py-ref.h.
16063 * python/py-event.h: Do not include py-ref.h.
16064 * python/py-evtregistry.c: Do not include py-ref.h.
16065 * python/py-finishbreakpoint.c: Do not include py-ref.h.
16066 * python/py-frame.c: Do not include py-ref.h.
16067 * python/py-framefilter.c: Do not include py-ref.h.
16068 * python/py-function.c: Do not include py-ref.h.
16069 * python/py-infevents.c: Do not include py-ref.h.
16070 * python/py-linetable.c: Do not include py-ref.h.
16071 * python/py-objfile.c: Do not include py-ref.h.
16072 * python/py-param.c: Do not include py-ref.h.
16073 * python/py-prettyprint.c: Do not include py-ref.h.
16074 * python/py-progspace.c: Do not include py-ref.h.
16075 * python/py-symbol.c: Do not include py-ref.h.
16076 * python/py-symtab.c: Do not include py-ref.h.
16077 * python/py-type.c: Do not include py-ref.h.
16078 * python/py-unwind.c: Do not include py-ref.h.
16079 * python/py-utils.c: Do not include py-ref.h.
16080 * python/py-value.c: Do not include py-ref.h.
16081 * python/py-varobj.c: Do not include py-ref.h.
16082 * python/py-xmethods.c: Do not include py-ref.h.
16083 * python/python.c: Do not include py-ref.h.
16084 * varobj.c: Do not include py-ref.h.
16085
6b4d7774
TT
160862019-01-22 Tom Tromey <tom@tromey.com>
16087
16088 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
16089 keyword for bcache.
16090
7af7e9b5
TT
160912019-01-22 Tom Tromey <tom@tromey.com>
16092
16093 * compile/compile-cplus-types.c: Remove a comment by #include.
16094
951d1049
TT
160952019-01-22 Tom Tromey <tom@tromey.com>
16096
16097 * compile/gcc-c-plugin.h: Include compile-internal.h.
16098
d65d5705
TT
160992019-01-22 Tom Tromey <tom@tromey.com>
16100
16101 * stabsread.c (EXTERN): Do not define.
16102 (symnum, next_symbol_text_func, processing_gcc_compilation)
16103 (within_function, global_sym_chain, global_stabs)
16104 (previous_stab_code, this_object_header_files)
16105 (n_this_object_header_files)
16106 (n_allocated_this_object_header_files): Define.
16107 * stabsread.h (EXTERN): Never define. Use "extern".
16108
b6fb1ee5
PW
161092019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16110
16111 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
16112 history_value.
16113
be6d4f74
TT
161142019-01-21 Tom Tromey <tom@tromey.com>
16115
16116 * ui-out.c: Fix includes.
16117 * tui/tui-source.c: Fix includes.
16118 * target.c: Fix includes.
16119 * remote.c: Fix includes.
16120 * regcache.c: Fix includes.
16121 * python/py-block.c: Fix includes.
16122 * printcmd.c: Fix includes.
16123 * or1k-tdep.c: Fix includes.
16124 * mi/mi-main.c: Fix includes.
16125 * m32r-tdep.c: Fix includes.
16126 * csky-tdep.c: Fix includes.
16127 * compile/compile-cplus-types.c: Fix includes.
16128 * cli/cli-interp.c: Fix includes.
16129
73021deb
AH
161302019-01-21 Alan Hayward <alan.hayward@arm.com>
16131
16132 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
16133 for padding.
16134
7932255d
TT
161352019-01-16 Tom Tromey <tom@tromey.com>
16136
16137 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
16138 earlier.
16139 (struct objfile) <msymbols_range>: Move from top level.
16140 <msymbols>: New method.
16141 (class objfile_msymbols): Remove.
16142 * symtab.c (default_collect_symbol_completion_matches_break_on):
16143 Update.
16144 * symmisc.c (dump_msymbols): Update.
16145 * stabsread.c (scan_file_globals): Update.
16146 * objc-lang.c (info_selectors_command, info_classes_command)
16147 (find_methods): Update.
16148 * minsyms.c (find_solib_trampoline_target): Update.
16149 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
16150 * coffread.c (coff_symfile_read): Update.
16151 * ada-lang.c (ada_lookup_simple_minsym)
16152 (ada_collect_symbol_completion_matches): Update.
16153
604b1bfb
TT
161542019-01-16 Tom Tromey <tom@tromey.com>
16155
16156 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
16157 type. Remove no-argument constructor.
16158 <iterator::operator++>: Simplify.
16159 <begin>: Update.
16160 <end>: Use minimal_symbol_count.
16161
f252c6d5
TT
161622019-01-16 Tom Tromey <tom@tromey.com>
16163
16164 * objfiles.h (struct objfile) <psymtabs>: New method.
16165 (class objfile_psymtabs): Remove.
16166 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
16167 typedef.
16168 <range>: New method.
16169 (require_partial_symbols): Change return type.
16170 * psymtab.c (require_partial_symbols)
16171 (psym_expand_symtabs_matching): Update.
16172 * mdebugread.c (parse_partial_symbols): Update.
16173 * dbxread.c (dbx_end_psymtab): Update.
16174
b669c953
TT
161752019-01-15 Tom Tromey <tom@tromey.com>
16176
16177 * symtab.c (lookup_objfile_from_block)
16178 (lookup_symbol_in_objfile_symtabs)
16179 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
16180 (find_line_symtab, info_sources_command)
16181 (default_collect_symbol_completion_matches_break_on)
16182 (make_source_files_completion_list): Update.
16183 * symmisc.c (print_objfile_statistics, dump_objfile)
16184 (maintenance_print_symbols, maintenance_info_symtabs)
16185 (maintenance_check_symtabs, maintenance_info_line_tables):
16186 Update.
16187 * source.c (select_source_symtab)
16188 (forget_cached_source_info_for_objfile): Update.
16189 * objfiles.h (class objfile_compunits): Remove.
16190 (struct objfile) <compunits_range>: New typedef.
16191 (compunits): New method.
16192 * objfiles.c (objfile_relocate1): Update.
16193 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
16194 * maint.c (count_symtabs_and_blocks): Update.
16195 * linespec.c (iterate_over_all_matching_symtabs): Update.
16196 * cp-support.c (add_symbol_overload_list_qualified): Update.
16197 * coffread.c (coff_symtab_read): Update.
16198 * ada-lang.c (add_nonlocal_symbols)
16199 (ada_collect_symbol_completion_matches)
16200 (ada_add_global_exceptions): Update.
16201
7e955d83
TT
162022019-01-15 Tom Tromey <tom@tromey.com>
16203
16204 * progspace.h (program_space) <objfiles_safe_range>: New
16205 typedef.
16206 <objfiles_safe>: New method.
16207 * objfiles.h (class all_objfiles_safe): Remove.
16208 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
16209 * jit.c (jit_inferior_exit_hook): Update.
16210
2030c079
TT
162112019-01-17 Tom Tromey <tom@tromey.com>
16212
16213 * progspace.h (program_space) <objfiles_range>: New typedef.
16214 <objfiles>: New method.
16215 <objfiles_head>: Rename from objfiles.
16216 (object_files): Update.
16217 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
16218 * guile/scm-pretty-print.c
16219 (ppscm_find_pretty_printer_from_objfiles): Update.
16220 * guile/scm-objfile.c (gdbscm_objfiles): Update.
16221 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
16222 Update.
16223 * python/py-progspace.c (pspy_get_objfiles): Update.
16224 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
16225 Update.
16226 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
16227 (objfpy_lookup_objfile_by_build_id): Update.
16228 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
16229 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
16230 Update.
16231 * symtab.c (iterate_over_symtabs, matching_obj_sections)
16232 (expand_symtab_containing_pc, lookup_objfile_from_block)
16233 (lookup_static_symbol, basic_lookup_transparent_type)
16234 (find_pc_sect_compunit_symtab, find_symbol_at_address)
16235 (find_line_symtab, info_sources_command)
16236 (default_collect_symbol_completion_matches_break_on)
16237 (make_source_files_completion_list, find_main_name): Update.
16238 * symmisc.c (print_symbol_bcache_statistics)
16239 (print_objfile_statistics, maintenance_print_symbols)
16240 (maintenance_print_msymbols, maintenance_print_objfiles)
16241 (maintenance_info_symtabs, maintenance_check_symtabs)
16242 (maintenance_expand_symtabs, maintenance_info_line_tables):
16243 Update.
16244 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
16245 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
16246 (map_overlay_command, unmap_overlay_command)
16247 (simple_overlay_update, expand_symtabs_matching)
16248 (map_symbol_filenames): Update.
16249 * symfile-debug.c (set_debug_symfile): Update.
16250 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
16251 Update.
16252 * source.c (select_source_symtab, forget_cached_source_info):
16253 Update.
16254 * solib.c (solib_read_symbols): Update.
16255 * solib-spu.c (append_ocl_sos): Update.
16256 * psymtab.c (maintenance_print_psymbols)
16257 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
16258 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
16259 * printcmd.c (info_symbol_command): Update.
16260 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
16261 Update.
16262 * objfiles.h (class all_objfiles): Remove.
16263 * objfiles.c (have_partial_symbols, have_full_symbols)
16264 (have_minimal_symbols, qsort_cmp, update_section_map)
16265 (shared_objfile_contains_address_p)
16266 (default_iterate_over_objfiles_in_search_order): Update.
16267 * objc-lang.c (info_selectors_command, info_classes_command)
16268 (find_methods): Update.
16269 * minsyms.c (find_solib_trampoline_target): Update.
16270 * maint.c (maintenance_info_sections)
16271 (maintenance_translate_address, count_symtabs_and_blocks):
16272 Update.
16273 * main.c (captured_main_1): Update.
16274 * linux-thread-db.c (try_thread_db_load_from_pdir)
16275 (has_libpthread): Update.
16276 * linespec.c (iterate_over_all_matching_symtabs)
16277 (search_minsyms_for_name): Update.
16278 * jit.c (jit_find_objf_with_entry_addr): Update.
16279 * hppa-tdep.c (find_unwind_entry)
16280 (hppa_lookup_stub_minimal_symbol): Update.
16281 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
16282 Update.
16283 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
16284 (elf_gnu_ifunc_resolve_by_got): Update.
16285 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
16286 * dwarf-index-write.c (save_gdb_index_command): Update.
16287 * cp-support.c (add_symbol_overload_list_qualified): Update.
16288 * breakpoint.c (create_overlay_event_breakpoint)
16289 (create_longjmp_master_breakpoint)
16290 (create_std_terminate_master_breakpoint)
16291 (create_exception_master_breakpoint): Update.
16292 * blockframe.c (find_pc_partial_function): Update.
16293 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
16294 (ada_collect_symbol_completion_matches)
16295 (ada_add_global_exceptions): Update.
16296
776489e0
TT
162972019-01-17 Tom Tromey <tom@tromey.com>
16298
16299 * solib-target.c (lm_info_target_p): Remove typedef. Don't
16300 declare VEC.
16301 (solib_target_parse_libraries): Change return type.
16302 (library_list_start_segment, library_list_start_section)
16303 (library_list_end_library, library_list_start_library); Update.
16304 (solib_target_free_library_list): Remove.
16305 (solib_target_parse_libraries): Remove cleanup. Change return
16306 type.
16307 (solib_target_current_sos): Update.
16308
6471e7d2
TT
163092019-01-17 Tom Tromey <tromey@bapiya>
16310
16311 * valprint.c: Replace "the the" with "the".
16312 * symtab.c: Replace "the the" with "the".
16313 * solib.c: Replace "the the" with "the".
16314 * solib-dsbt.c: Replace "the the" with "the".
16315 * linespec.c: Replace "the the" with "the".
16316 * dwarf2loc.h: Replace "the the" with "the".
16317 * amd64-windows-tdep.c: Replace "the the" with "the".
16318 * aarch64-tdep.c: Replace "the the" with "the".
16319
c24bdb02
KS
163202019-01-16 Keith Seitz <keiths@redhat.com>
16321
16322 PR gdb/23773
16323 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
16324 <builder>: Rename to ..
16325 <m_builder>: ... this and make private.
16326 (dwarf2_cu::get_builder): New method. Change all users of
16327 `builder' to use this method.
16328 (dwarf2_start_symtab): Move to ...
16329 (dwarf2_cu::start_symtab): ... here. Update all callers
16330 (setup_type_unit_groups): Move to ...
16331 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
16332 callers.
16333 (dwarf2_cu::reset_builder): New method.
16334 (process_full_compunit, process_full_type_unit): Use
16335 dwarf2_cu::reset_builder.
16336 (follow_die_offset): Record the ancestor CU if it is different
16337 from the followed DIE's CU.
16338 (follow_die_sig_1): Likewise.
16339
8d64371b
TT
163402019-01-15 Tom Tromey <tom@tromey.com>
16341
16342 * remote.c (class remote_state) <buf>: Now a char_vector.
16343 <buf_size>: Remove.
16344 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
16345 parameter.
16346 (remote_target::getpkt_or_notif_sane_1)
16347 (remote_target::getpkt_sane)
16348 (remote_target::getpkt_or_notif_sane): Likewise.
16349 (class remote_target) <putpkt>: New overload.
16350 (remote_target::read_frame): Change type of "buf_p". Remove
16351 sizeof_p parameter.
16352 (packet_ok): New overload.
16353 (packet_check_result): New overload.
16354 Update all uses.
16355
bb277751
TT
163562019-01-14 Tom Tromey <tom@tromey.com>
16357
16358 * remote-notif.c (handle_notification, remote_notif_ack)
16359 (remote_notif_parse): Make "buf" const.
16360 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
16361 const.
16362 (remote_notif_parse, remote_notif_ack, handle_notification):
16363 Likewise.
16364 * remote.c (remote_notif_stop_parse): Make "buf" const.
16365 (remote_target::remote_parse_stop_reply): Make "buf" const.
16366 (remote_notif_stop_ack): Make "buf" const.
16367
05be00a8
TT
163682019-01-14 Tom Tromey <tom@tromey.com>
16369
16370 * remote.c (remote_console_output): Make parameter const.
16371
491adeca
TT
163722019-01-14 Tom Tromey <tom@tromey.com>
16373
16374 * target-debug.h (target_debug_print_signals): Constify.
16375 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
16376 * procfs.c (procfs_target::pass_signals): Update.
16377 * linux-nat.c (linux_nat_target::pass_signals): Update.
16378 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
16379 * target-delegates.c: Rebuild.
16380 * remote.c (remote_target::program_signals): Update.
16381 (remote_target::pass_signals): Update.
16382 * target.c (target_pass_signals): Constify argument.
16383 (target_program_signals): Likewise.
16384 * target.h (struct target_ops) <pass_signals, program_signals>:
16385 Constify argument.
16386 (target_pass_signals, target_program_signals): Constify argument.
16387
bbd94648
TT
163882019-01-14 Tom Tromey <tom@tromey.com>
16389
16390 PR tui/28819:
16391 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
16392
6f072a10
PFC
163932019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
16394
16395 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
16396 field.
16397 * rs6000-tdep.c: Include reggroups.h.
16398 (IS_V_ALIAS_PSEUDOREG): Define.
16399 (rs6000_register_name): Return names for the "vX" aliases.
16400 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
16401 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
16402 aliases. Call default_register_reggroup_p for all other
16403 pseudo-registers.
16404 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
16405 New functions.
16406 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
16407 Handle "vX" aliases.
16408 (v_alias_pseudo_register_collect): New function.
16409 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
16410 (rs6000_gdbarch_init): Initialize "vX" aliases as
16411 pseudo-registers. Restore registration of
16412 rs6000_pseudo_register_reggroup_p with
16413 set_tdesc_pseudo_register_reggroup_p.
16414
1a782351
MF
164152019-01-13 Max Filippov <jcmvbkbc@gmail.com>
16416
16417 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
16418 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
16419 set_gdbarch_num_pseudo_regs.
16420
d73cff18
PW
164212019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16422
16423 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
16424 Remove arg prefixname, add do_set and do_show.
16425 Add member functions set_list and show_list.
16426 * cli/cli-style.c (class cli_style_option): Update accordingly.
16427 (style_set_list): Move to file scope.
16428 (style_show_list): Likewise.
16429 (set_style): Call help_list.
16430 (show_style): Call cmd_show_list.
16431 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
16432 Update to use the new macro.
16433
60a90376
JB
164342019-10-12 Joel Brobecker <brobecker@adacore.com>
16435
16436 * ada-lang.c (_initialize_ada_language): Expand the help text
16437 for the "catch exception" command.
16438
9d7c67bf
PW
164392019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16440
16441 * symtab.c (matching_obj_sections): Initialize obj,
16442 declare it closer to its usage.
16443
7cf47dc4
TT
164442019-01-10 Tom Tromey <tom@tromey.com>
16445
16446 * thread-iter.h (inf_threads_iterator): Use next_iterator.
16447 (basic_inf_threads_range): Remove.
16448 (inf_threads_range, inf_non_exited_threads_range)
16449 (safe_inf_threads_range): Use next_adapter.
16450
d3cb6808
KS
164512019-01-10 Keith Seitz <keiths@redhat.com>
16452
16453 PR gdb/23712
16454 PR symtab/23010
16455 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
16456 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
16457
63a20375
KS
164582019-01-10 Keith Seitz <keiths@redhat.com>
16459
16460 PR gdb/23712
16461 PR symtab/23010
16462 * dictionary.c (pending_to_vector): Remove.
16463 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
16464 Remove _1 suffix, replacing functions of the same name. Update
16465 all callers.
16466 (dict_create_hashed, dict_create_hashed_expandable)
16467 (dict_create_linear, dict_create_linear_expandable, dict_free)
16468 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
16469 Make functions static.
16470
b026f593
KS
164712019-01-10 Keith Seitz <keiths@redhat.com>
16472
16473 PR gdb/23712
16474 PR symtab/23010
16475 * dictionary.h (struct dictionary): Replace declaration with
16476 multidictionary.
16477 (dict_create_hashed, dict_create_hashed_expandable)
16478 (dict_create_linear, dict_create_linear_expandable)
16479 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
16480 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
16481 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
16482 taking multidictionary argument.
16483 [ALL_DICT_SYMBOLS]: Update for multidictionary.
16484 * block.h (struct block) <dict>: Change to multidictionary
16485 and rename `multidict'.
16486 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
16487 symmisc.c: Update all dictionary references to multidictionary.
16488
c7748ee9
KS
164892019-01-10 Keith Seitz <keiths@redhat.com>
16490
16491 PR gdb/23712
16492 PR symtab/23010
16493 * dictionary.c: Include unordered_map.
16494 (pending_to_vector): New function.
16495 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
16496 Rewrite the non-"_1" functions to take vector instead
16497 of linked list.
16498 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
16499 "new" _1 versions of the same name.
16500 (multidictionary): Define.
16501 (std::hash<enum language): New definition.
16502 (collate_pending_symbols_by_language, mdict_create_hashed)
16503 (mdict_create_hashed_expandable, mdict_create_linear)
16504 (mdict_create_linear_expandable, mdict_free)
16505 (find_language_dictionary, create_new_language_dictionary)
16506 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
16507 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
16508 (mdict_size, mdict_empty): New functions.
16509 * dictionary.h (mdict_iterator): Define.
16510
67aa1f3c
PA
165112019-01-10 Pedro Alves <palves@redhat.com>
16512
16513 * breakpoint.c (read_uploaded_action)
16514 (create_tracepoint_from_upload): Adjust to use
16515 gdb::unique_xmalloc_ptr.
16516 * ctf.c (ctf_write_uploaded_tp):
16517 (SET_ARRAY_FIELD): Use emplace_back.
16518 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
16519 * tracefile-tfile.c (tfile_write_uploaded_tp):
16520 * tracepoint.c (parse_tracepoint_definition): Adjust to use
16521 gdb::unique_xmalloc_ptr.
16522 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
16523 at_string, cond_string, cmd_strings>: Replace char pointers
16524 with gdb::unique_xmalloc_ptr.
16525
2f667667
PA
165262019-01-10 Pedro Alves <palves@redhat.com>
16527
16528 * solib-target.c (library_list_start_library): Don't xstrdup name.
16529
36cb7237
PA
165302019-01-10 Pedro Alves <palves@redhat.com>
16531
16532 * mdebugread.c (parse_partial_symbols): Use
16533 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
16534
da584958
AB
165352019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
16536
16537 * linux-fork.c (scoped_switch_fork_info)
16538 <~scoped_switch_fork_info>: Fix incorrect variable name.
16539
1ef8573c
AB
165402019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
16541
16542 * linux-fork.c (scoped_switch_fork_info)
16543 <scoped_switch_fork_info>: Make explicit.
16544 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
16545
8d7bcccb
TT
165462019-01-10 Tom Tromey <tom@tromey.com>
16547
16548 * objfiles.h (objfile::reset_psymtabs): Update.
16549 * objfiles.c (objfile::objfile): Update.
16550 * psymtab.h (psymtab_storage::obstack): Update.
16551 (psymtab_storage::m_obstack): Use gdb::optional.
16552 (class psymtab_storage): Update comment. Remove objfile
16553 parameter.
16554 * psymtab.c (psymtab_storage::psymtab_storage): Update.
16555
b596a3c7
TT
165562019-01-10 Tom Tromey <tom@tromey.com>
16557
16558 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
16559 <free_psymtabs>: Now private.
16560 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
16561 (allocate_psymtab): Use new method.
16562
a9342b62
TT
165632019-01-10 Tom Tromey <tom@tromey.com>
16564
16565 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
16566 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
16567 * mdebugread.c (parse_partial_symbols): Use
16568 allocate_dependencies.
16569 * dwarf2read.c (dwarf2_create_include_psymtab): Use
16570 allocate_dependencies.
16571 (process_psymtab_comp_unit_reader)
16572 (build_type_psymtab_dependencies): Likewise.
16573 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
16574
5af70966
TT
165752019-01-10 Tom Tromey <tom@tromey.com>
16576
16577 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
16578 PSYMBOL_SET_LANGUAGE.
16579 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
16580
5923a04c
TT
165812019-01-10 Tom Tromey <tom@tromey.com>
16582
16583 * psymtab.h (psymtab_storage::obstack): New method.
16584 <m_obstack>: Rename from obstack; now private.
16585 * psymtab.c (psymtab_storage): Update.
16586 * dwarf2read.c (create_addrmap_from_index)
16587 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
16588 Update.
16589
6d6a12bf
TT
165902019-01-10 Tom Tromey <tom@tromey.com>
16591
16592 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
16593 * objfiles.h (objfile::reset_psymtabs): New method.
16594
d320c2b5
TT
165952019-01-10 Tom Tromey <tom@tromey.com>
16596
16597 * symmisc.c (print_symbol_bcache_statistics): Update.
16598 (print_objfile_statistics): Update.
16599 * symfile.c (reread_symbols): Update.
16600 * psymtab.h (class psymtab_storage): New.
16601 * psymtab.c (psymtab_storage): New constructor.
16602 (~psymtab_storage): New destructor.
16603 (require_partial_symbols): Update.
16604 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
16605 (find_pc_sect_psymtab, find_pc_sect_psymbol)
16606 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
16607 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
16608 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
16609 (start_psymtab_common, end_psymtab_common)
16610 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
16611 (allocate_psymtab): Update.
16612 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
16613 Update.
16614 (dump_psymtab_addrmap, maintenance_print_psymbols)
16615 (maintenance_check_psymtabs): Update.
16616 (class objfile_psymtabs): Move to objfiles.h.
16617 * psympriv.h (discard_psymtab): Now inline.
16618 (psymtab_discarder::psymtab_discarder): Update.
16619 (psymtab_discarder::~psymtab_discarder): Update.
16620 (ALL_OBJFILE_PSYMTABS): Rewrite.
16621 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
16622 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
16623 Remove fields.
16624 <partial_symtabs>: New field.
16625 (class objfile_psymtabs): Move from psymtab.h. Update.
16626 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
16627 psymbol_cache.
16628 (objfile::~objfile): Don't destroy psymbol_cache.
16629 * mdebugread.c (parse_partial_symbols): Update.
16630 * dwarf2read.c (create_addrmap_from_index)
16631 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
16632 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
16633 (add_partial_subprogram, dwarf2_ranges_read): Update.
16634 * dwarf-index-write.c (write_address_map)
16635 (write_one_signatured_type, recursively_write_psymbols)
16636 (class debug_names, class debug_names, write_psymtabs_to_index):
16637 Update.
16638
1d94a5a3
TT
166392019-01-10 Tom Tromey <tom@tromey.com>
16640
16641 * symtab.h (SYMBOL_SET_NAMES): Update.
16642 (symbol_set_names): Update.
16643 (MSYMBOL_SET_NAMES): Update.
16644 * symtab.c (symbol_set_names): Change argument to be an
16645 objfile_per_bfd_storage.
16646 * psymtab.c (add_psymbol_to_bcache): Update.
16647 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
16648
0f14768a
TT
166492019-01-10 Tom Tromey <tom@tromey.com>
16650
16651 * symtab.c (create_demangled_names_hash): Change argument to be an
16652 objfile_per_bfd_storage.
16653 (symbol_set_names): Update.
16654
6eee24ce
TT
166552019-01-10 Tom Tromey <tom@tromey.com>
16656
16657 * xcoffread.c (xcoff_initial_scan): Unconditionally call
16658 init_psymbol_list.
16659 * psymtab.c (init_psymbol_list): Do nothing if already called.
16660 * psympriv.h (init_psymbol_list): Add comment.
16661 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
16662 init_psymbol_list.
16663 * dbxread.c (dbx_symfile_read): Unconditionally call
16664 init_psymbol_list.
16665
75aedd27
TT
166662019-01-10 Tom Tromey <tom@tromey.com>
16667
16668 * xcoffread.c (scan_xcoff_symtab): Update.
16669 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
16670 "where".
16671 * mdebugread.c (parse_partial_symbols)
16672 (handle_psymbol_enumerators): Update.
16673 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
16674 * dbxread.c (read_dbx_symtab): Update.
16675 * psympriv.h (psymbol_placement): New enum.
16676 (add_psymbol_to_list): Update.
16677
939652a5
TT
166782019-01-10 Tom Tromey <tom@tromey.com>
16679
16680 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
16681 static_psymbols parameters.
16682 (scan_xcoff_symtab): Update.
16683 * psymtab.c (start_psymtab_common): Remove global_psymbols and
16684 static_psymbols parameters.
16685 * psympriv.h (start_psymtab_common): Update.
16686 * mdebugread.c (parse_partial_symbols): Update.
16687 * dwarf2read.c (create_partial_symtab): Update.
16688 * dbxread.c (read_dbx_symtab): Update.
16689 (start_psymtab): Remove global_psymbols and static_psymbols
16690 parameters.
16691
baa62830
TT
166922019-01-10 Tom Tromey <tom@tromey.com>
16693
16694 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
16695 * psymtab.c (allocate_psymtab): Add comment.
16696 * psympriv.h (allocate_psymtab): Add comment.
16697 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
16698 initializations.
16699 * dbxread.c (dbx_end_psymtab): Remove some initializations.
16700
0e8f53ba
TT
167012019-01-10 Tom Tromey <tom@tromey.com>
16702
16703 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
16704 Don't declare.
16705 * mipsread.c: Include mdebugread.h.
16706 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
16707 Declare.
16708 * elfread.c: Include mdebugread.h.
16709
b22a7c6a
TT
167102019-01-09 Tom Tromey <tom@tromey.com>
16711
16712 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
16713 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
16714 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
16715 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
16716 (psym_lookup_symbol, psym_find_last_source_symtab)
16717 (psym_forget_cached_source_info, psym_print_stats)
16718 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
16719 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
16720 (psym_map_matching_symbols, psym_expand_symtabs_matching)
16721 (psym_find_compunit_symtab_by_address)
16722 (maintenance_print_psymbols, maintenance_info_psymtabs)
16723 (maintenance_check_psymtabs): Use ranged for.
16724 * psymtab.h (class objfile_psymtabs): New.
16725 (require_partial_symbols): Return objfile_psymtabs.
16726 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
16727
3b9d3ac2
TT
167282019-01-09 Tom Tromey <tom@tromey.com>
16729
16730 * symfile.c (overlay_invalidate_all, find_pc_overlay)
16731 (find_pc_mapped_section, list_overlays_command)
16732 (map_overlay_command, unmap_overlay_command)
16733 (simple_overlay_update): Use all_objfiles.
16734 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
16735 * printcmd.c (info_symbol_command): Use all_objfiles.
16736 * objfiles.h (ALL_OBJSECTIONS): Remove.
16737 * maint.c (maintenance_translate_address): Use all_objfiles.
16738 * gcore.c (gcore_create_callback): Use all_objfiles.
16739 (objfile_find_memory_regions): Likewise.
16740
8b31193a
TT
167412019-01-09 Tom Tromey <tom@tromey.com>
16742
16743 * symtab.c (find_line_symtab, info_sources_command)
16744 (make_source_files_completion_list): Use objfile_compunits.
16745 * source.c (select_source_symtab): Use objfile_compunits.
16746 * objfiles.h (struct objfile): Update comment.
16747 (ALL_OBJFILES): Remove.
16748 (ALL_FILETABS): Remove.
16749 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
16750 objfile_compunits.
16751
d5da8b3c
TT
167522019-01-09 Tom Tromey <tom@tromey.com>
16753
16754 * symmisc.c (print_objfile_statistics, dump_objfile)
16755 (maintenance_print_symbols): Use compunit_filetabs.
16756 * source.c (forget_cached_source_info_for_objfile): Use
16757 compunit_filetabs.
16758 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
16759 (ALL_FILETABS): Use compunit_filetabs.
16760 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
16761 * coffread.c (coff_symtab_read): Use compunit_filetabs.
16762
5accd1a0
TT
167632019-01-09 Tom Tromey <tom@tromey.com>
16764
16765 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
16766 (compunit_filetabs): New.
16767 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
16768 compunit_filetabs.
16769 (info_sources_command, make_source_files_completion_list): Remove
16770 declaration.
16771 * symmisc.c (print_objfile_statistics, dump_objfile)
16772 (maintenance_print_symbols): Remove declaration.
16773 (maintenance_info_symtabs): Use compunit_filetabs.
16774 (maintenance_info_line_tables): Likewise.
16775 * source.c (select_source_symtab): Change local variable name.
16776 (forget_cached_source_info_for_objfile): Remove declaration.
16777 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
16778 * objfiles.c (objfile_relocate1): Remove declaration.
16779 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
16780 declaration.
16781 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
16782 * coffread.c (coff_symtab_read): Remove declaration.
16783 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
16784 compunit_filetabs.
16785
d8aeb77f
TT
167862019-01-09 Tom Tromey <tom@tromey.com>
16787
16788 * symtab.c (lookup_objfile_from_block)
16789 (find_pc_sect_compunit_symtab, search_symbols)
16790 (default_collect_symbol_completion_matches_break_on): Use
16791 objfile_compunits.
16792 * objfiles.h (ALL_COMPUNITS): Remove.
16793 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
16794 * cp-support.c (add_symbol_overload_list_qualified): Use
16795 objfile_compunits.
16796 * ada-lang.c (ada_collect_symbol_completion_matches)
16797 (ada_add_global_exceptions): Use objfile_compunits.
16798
592553c4
TT
167992019-01-09 Tom Tromey <tom@tromey.com>
16800
16801 * source.c (select_source_symtab)
16802 (forget_cached_source_info_for_objfile): Remove declaration.
16803 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
16804 declaration.
16805 * maint.c (count_symtabs_and_blocks): Remove declaration.
16806 * cp-support.c (add_symbol_overload_list_qualified): Remove
16807 declaration.
16808 * coffread.c (coff_symtab_read): Remove declaration.
16809 * symtab.c (lookup_symbol_in_objfile_symtabs)
16810 (basic_lookup_transparent_type_1): Use objfile_compunits.
16811 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
16812 (info_sources_command, search_symbols)
16813 (default_collect_symbol_completion_matches_break_on)
16814 (make_source_files_completion_list): Remove declaration.
16815 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
16816 (ada_collect_symbol_completion_matches)
16817 (ada_add_global_exceptions): Remove declaration.
16818 * linespec.c (iterate_over_all_matching_symtabs): Use
16819 objfile_compunits.
16820 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
16821 (class objfile_compunits): New.
16822 (ALL_COMPUNITS): Use objfile_compunits.
16823 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
16824 (maintenance_check_symtabs, maintenance_info_line_tables): Use
16825 objfile_compunits.
16826 * objfiles.c (objfile_relocate1): Use objfile_compunits.
16827
5325b9bf
TT
168282019-01-09 Tom Tromey <tom@tromey.com>
16829
16830 * symtab.c (search_symbols)
16831 (default_collect_symbol_completion_matches_break_on): Use
16832 objfile_msymbols.
16833 * ada-lang.c (ada_lookup_simple_minsym)
16834 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
16835 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
16836 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
16837 objfile_msymbols.
16838 * coffread.c (coff_symfile_read): Use objfile_msymbols.
16839 * symmisc.c (dump_msymbols): Use objfile_msymbols.
16840 * objc-lang.c (find_methods): Use objfile_msymbols.
16841 (info_selectors_command, info_classes_command): Likewise.
16842 * stabsread.c (scan_file_globals): Use objfile_msymbols.
16843 * objfiles.h (class objfile_msymbols): New.
16844 (ALL_OBJFILE_MSYMBOLS): Remove.
16845 (ALL_MSYMBOLS): Remove.
16846
cac85af2
TT
168472019-01-09 Tom Tromey <tom@tromey.com>
16848
16849 * common/next-iterator.h (next_adapter): Add Iterator template
16850 parameter.
16851 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
16852 (class all_objfiles_safe): New.
16853 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
16854 * objfiles.c (put_objfile_before): Update comment.
16855 (add_separate_debug_objfile): Likewise.
16856 (free_all_objfiles): Use all_objfiles_safe.
16857 (objfile_purge_solibs): Likewise.
16858
aed57c53
TT
168592019-01-09 Tom Tromey <tom@tromey.com>
16860
16861 * symtab.c (iterate_over_symtabs, matching_obj_sections)
16862 (expand_symtab_containing_pc, lookup_static_symbol)
16863 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
16864 (find_symbol_at_address, find_line_symtab, find_main_name): Use
16865 all_objfiles.
16866 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
16867 * breakpoint.c (create_overlay_event_breakpoint)
16868 (create_longjmp_master_breakpoint)
16869 (create_std_terminate_master_breakpoint)
16870 (create_exception_master_breakpoint): Use all_objfiles.
16871 * linux-thread-db.c (try_thread_db_load_from_pdir)
16872 (has_libpthread): Use all_objfiles.
16873 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
16874 * linespec.c (iterate_over_all_matching_symtabs)
16875 (search_minsyms_for_name): Use all_objfiles.
16876 * maint.c (maintenance_info_sections): Use all_objfiles.
16877 * main.c (captured_main_1): Use all_objfiles.
16878 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
16879 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
16880 * guile/scm-pretty-print.c
16881 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
16882 * solib-spu.c (append_ocl_sos): Use all_objfiles.
16883 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
16884 (maintenance_print_msymbols): Use all_objfiles.
16885 * source.c (select_source_symtab): Use all_objfiles.
16886 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
16887 * symfile.c (remove_symbol_file_command)
16888 (expand_symtabs_matching, map_symbol_filenames): Use
16889 all_objfiles.
16890 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
16891 all_objfiles.
16892 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
16893 * objc-lang.c (find_methods): Use all_objfiles.
16894 * objfiles.c (have_partial_symbols, have_full_symbols)
16895 (have_minimal_symbols, qsort_cmp)
16896 (default_iterate_over_objfiles_in_search_order): Use
16897 all_objfiles.
16898 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
16899 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
16900 (maintenance_check_psymtabs): Use all_objfiles.
16901 (ALL_PSYMTABS): Remove.
16902 * compile/compile-object-run.c (do_module_cleanup): Use
16903 all_objfiles.
16904 * blockframe.c (find_pc_partial_function): Use all_objfiles.
16905 * cp-support.c (add_symbol_overload_list_qualified): Use
16906 all_objfiles.
16907 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
16908 Use all_objfiles.
16909 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
16910 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
16911 all_objfiles.
16912 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
16913 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
16914 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
16915 Uses all_objfiles.
16916 * solib.c (solib_read_symbols): Use all_objfiles
16917
99d89cde
TT
169182019-01-09 Tom Tromey <tom@tromey.com>
16919
16920 * probe.c (parse_probes_in_pspace): Use all_objfiles.
16921 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
16922 all_objfiles.
16923 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
16924 * symmisc.c (print_symbol_bcache_statistics)
16925 (print_objfile_statistics, maintenance_print_objfiles)
16926 (maintenance_info_symtabs, maintenance_check_symtabs)
16927 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
16928 all_objfiles.
16929 * source.c (forget_cached_source_info): Use all_objfiles.
16930 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
16931 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
16932 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
16933 * objfiles.c (update_section_map): Use all_objfiles.
16934 (shared_objfile_contains_address_p): Likewise.
16935 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
16936 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
16937
21708325
TT
169382019-01-09 Tom Tromey <tom@tromey.com>
16939
16940 * common/next-iterator.h: New file.
16941 * objfiles.h (class all_objfiles): New.
16942 (struct objfile_iterator): New.
16943
669e09f6
PW
169442019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16945
16946 * NEWS: Move the description of the changed "frame", "select-frame",
16947 and "info frame" commands to the Changed commands section.
16948
041be526
SM
169492019-01-09 Simon Marchi <simon.marchi@ericsson.com>
16950
16951 * gdbtypes.c (check_stub_method_group): Remove handling of old
16952 mangling schemes.
16953 * linespec.c (find_methods): Likewise.
16954 * stabsread.c (read_member_functions): Likewise.
16955 * valops.c (search_struct_method): Likewise.
16956 (value_struct_elt_for_reference): Likewise.
16957 * NEWS: Mention this change.
16958
0e2a2133
AB
169592019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
16960
16961 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
16962 print_source_lines.
16963 * source.c (print_source_lines_base): Update line number check.
16964 (print_source_lines): New function.
16965 (source_lines_range::source_lines_range): New function.
16966 * source.h (class source_lines_range): New class.
16967 (print_source_lines): New declaration.
16968
1055a3b4
PW
169692019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16970
16971 * linespec.c (linespec_state_destructor): Free self->canonical_names.
16972
cfeadda5
TT
169732019-01-08 Tom Tromey <tom@tromey.com>
16974 Simon Marchi <simon.marchi@ericsson.com>
16975
16976 PR gdb/24060
16977 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
16978 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
16979 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
16980 * f-exp.y (DOLLAR_VARIABLE): Likewise.
16981 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
16982 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
16983
583068ca
AB
169842019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
16985
16986 * source.c (select_source_symtab): Move header comment to
16987 declaration in source.h.
16988 (forget_cached_source_info_for_objfile): Likewise.
16989 (forget_cached_source_info): Likewise.
16990 (identify_source_line): Likewise.
16991 * source.h (identify_source_line): Move declaration from symtab.h
16992 and add comment from source.c
16993 (print_source_lines): Likewise.
16994 (forget_cached_source_info_for_objfile): Likewise.
16995 (forget_cached_source_info): Likewise.
16996 (select_source_symtab): Likewise.
16997 (enum print_source_lines_flag): Move definition from symtab.h.
16998 * symtab.h (identify_source_line): Move declaration to source.h.
16999 (print_source_lines): Likewise.
17000 (forget_cached_source_info_for_objfile): Likewise.
17001 (forget_cached_source_info): Likewise.
17002 (select_source_symtab): Likewise.
17003 (enum print_source_lines_flag): Move definition to source.h.
17004 * tui/tui-hooks.c: Add 'source.h' include.
17005
ec98a4ad
AB
170062019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
17007
17008 * source.c (print_source_lines_base): Handle requests to print
17009 reverse line number sequences, and guard against empty lines
17010 string.
17011
62ea19c1
AB
170122019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
17013
17014 * source.c (print_source_lines_base): Fix skip of '\r' if next
17015 character is '\n'.
17016
9d30e1fd
TT
170172019-01-06 Tom Tromey <tom@tromey.com>
17018
17019 * c-exp.y (struct c_parse_state) <macro_original_text,
17020 expansion_obstack>: New member.
17021 (macro_original_text, expansion_obstack): Remove globals.
17022 (scan_macro_expansion, scanning_macro_expansion)
17023 (finished_macro_expansion): Update.
17024 (scan_macro_cleanup): Remove.
17025 (yylex, c_parse): Update.
17026
c65bac38
TT
170272019-01-06 Tom Tromey <tom@tromey.com>
17028
17029 * c-exp.y (struct c_parse_state) <strings>: New member.
17030 (operator_stoken): Update.
17031
02e12e38
TT
170322019-01-06 Tom Tromey <tom@tromey.com>
17033
17034 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
17035 (union type_stack_elt) <typelist_val>: Now a pointer to
17036 std::vector.
17037 (type_stack_cleanup): Don't declare.
17038 (push_typelist): Update.
17039 * parse.c (pop_typelist): Return a std::vector.
17040 (push_typelist): Take a std::vector.
17041 (follow_types): Update. Do not free args.
17042 (type_stack_cleanup): Remove.
17043 * c-exp.y (struct c_parse_state): New.
17044 (cpstate): New global.
17045 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
17046 (nonempty_typelist): Update.
17047 (func_mod): Create a new vector.
17048 (c_parse): Create a c_parse_state.
17049 (check_parameter_typelist): Do not delete params.
17050 (function_method): Update. Do not delete type_list.
17051
f097f5ad
TT
170522019-01-06 Tom Tromey <tom@tromey.com>
17053
17054 PR gdb/28155:
17055 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
17056 check_typedef.
17057 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
17058 (print_return_value): Likewise.
17059
d2adf9f1
TT
170602019-01-05 Tom Tromey <tom@tromey.com>
17061
17062 * contrib/cleanup_check.py: Remove.
17063 * contrib/gcc-with-excheck: Remove.
17064 * contrib/exsummary.py: Remove.
17065 * contrib/excheck.py: Remove.
17066
2eab46b1
JB
170672019-01-05 Joel Brobecker <brobecker@adacore.com>
17068
17069 * thread.c (delete_thread_1): Add gdb_assert that THR is not
17070 NULL. Initialize tpprev to NULL instead of assigning it
17071 to NULL on the next statement.
17072 * windows-nat.c (windows_delete_thread): Remove check for
17073 main_thread_id before printing thread exit notifications.
17074 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
17075 Remove thread ID check against main_thread_id.
17076 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
17077 windows_delete_thread.
17078 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
17079
48c5e7e2
TT
170802019-01-04 Tom Tromey <tom@tromey.com>
17081
17082 * compile/compile.c (_initialize_compile): Use upper case for
17083 metasyntactic variables.
17084 * symmisc.c (_initialize_symmisc): Use upper case for
17085 metasyntactic variables.
17086 * psymtab.c (_initialize_psymtab): Use upper case for
17087 metasyntactic variables.
17088 * demangle.c (demangle_command): Use upper case for metasyntactic
17089 variables.
17090 (_initialize_demangler): Likewise.
17091 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
17092 variables.
17093
986041cd
TT
170942019-01-03 Tom Tromey <tom@tromey.com>
17095
17096 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
17097
7c711119
TT
170982019-01-03 Tom Tromey <tom@tromey.com>
17099
17100 * python/py-symtab.c (salpy_str): Update.
17101 (struct salpy_sal_object) <symtab>: Now a PyObject.
17102 (salpy_dealloc): Update.
17103 (del_objfile_sal): Use gdbpy_ref.
17104
1b20edf0
TT
171052019-01-03 Tom Tromey <tom@tromey.com>
17106
17107 * python/py-type.c (convert_field): Use new_reference. Return
17108 gdbpy_ref.
17109 (make_fielditem): Return gdbpy_ref.
17110 (typy_fields): Update.
17111 (typy_getitem): Update.
17112 (field_name): Return gdbpy_ref. Use new_reference.
17113 (typy_iterator_iternext): Update.
17114
ea41325b
TT
171152019-01-03 Tom Tromey <tom@tromey.com>
17116
17117 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
17118
2a3c71d6
TT
171192019-01-03 Tom Tromey <tom@tromey.com>
17120
17121 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
17122 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
17123 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
17124 (pspy_set_frame_filters, pspy_set_frame_unwinders)
17125 (pspy_set_type_printers): Likewise.
17126 * python/py-function.c (fnpy_init): Use gdbpy_ref.
17127 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
17128 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
17129 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
17130 (objfpy_set_type_printers): Likewise.
17131
5c329e6a
TT
171322019-01-03 Tom Tromey <tom@tromey.com>
17133
17134 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
17135 (gdbpy_print_stack): Use gdbpy_err_fetch.
17136 * python/python-internal.h (class gdbpy_err_fetch): New class.
17137 (class gdbpy_enter) <m_error_type, m_error_value,
17138 m_error_traceback>: Remove.
17139 <m_error>: New member.
17140 (gdbpy_exception_to_string): Don't declare.
17141 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
17142 * python/py-value.c (convert_value_from_python): Use
17143 gdbpy_err_fetch.
17144 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
17145 gdbpy_exception_to_string.
17146 (gdbpy_handle_exception): Use gdbpy_err_fetch.
17147 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
17148 gdbpy_err_fetch.
17149
169bb27b
AB
171502019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
17151
17152 * linux-nat.c (delete_lwp_cleanup): Delete.
17153 (struct lwp_deleter): New struct.
17154 (lwp_info_up): New typedef.
17155 (linux_nat_target::follow_fork): Delete cleanup, and make use of
17156 lwp_info_up.
17157
a07c8880
AB
171582019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
17159
17160 * linux-fork.c (class scoped_switch_fork_info): New class.
17161 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
17162
26089c49
AB
171632019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
17164
17165 * valops.c (find_overload_match): Remove use of null_cleanup, and
17166 calls to do_cleanups.
17167
06d3e5b0
AB
171682019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
17169
17170 * compile/compile-cplus-types.c
17171 (compile_cplus_instance::decl_name): Handle changes to
17172 cp_func_name.
17173 * cp-support.c (cp_func_name): Update header comment, update
17174 return type.
17175 * cp-support.h (cp_func_name): Update return type in declaration.
17176 * valops.c (find_overload_match): Move temp_func local to top
17177 level of function and change its type. Use temp_func to hold and
17178 delete temporary string obtained from cp_func_name.
17179
66644cd3
AB
171802019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
17181
17182 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
17183 gdb::char_vector, remove cleanup, and update uses of `msg`.
17184
592d8c0a
JW
171852019-01-03 Jim Wilson <jimw@sifive.com>
17186
17187 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
17188
c55d06ec
TT
171892019-01-02 Tom Tromey <tom@tromey.com>
17190
17191 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
17192 (tdesc_parse_xml): Remove cleanups.
17193 * target-descriptions.h (make_cleanup_free_target_description):
17194 Don't declare.
17195 (target_desc_deleter): New struct.
17196 (target_desc_up): New typedef.
17197 * target-descriptions.c (target_desc_deleter::operator()): Rename
17198 from free_target_description.
17199 (make_cleanup_free_target_description): Remove.
17200
3a6ae42d
TT
172012019-01-02 Tom Tromey <tom@tromey.com>
17202
17203 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
17204 constructor, destructor.
17205 (linespec_parser): Remove typedef.
17206 (~linespec_parser): Rename from linespec_parser_delete.
17207 (linespec_lex_to_end, linespec_complete_label)
17208 (linespec_complete): Update.
17209 (decode_line_full): Remove cleanups.
17210 (decode_line_1): Update.
17211
61fd3e73
TT
172122019-01-02 Tom Tromey <tom@tromey.com>
17213
17214 * python/python-internal.h (inferior_to_inferior_object): Change
17215 return type.
17216 * python/py-exitedevent.c (create_exited_event_object): Update.
17217 * python/py-inferior.c (inferior_to_inferior_object): Return
17218 gdbpy_ref.
17219 (python_new_inferior, python_inferior_deleted)
17220 (thread_to_thread_object, delete_thread_object)
17221 (build_inferior_list, gdbpy_selected_inferior): Update.
17222 * python/py-infthread.c (create_thread_object): Update. Also fail
17223 if inferior_to_inferior_object fails.
17224
d20172fc
SM
172252019-01-02 Simon Marchi <simon.marchi@ericsson.com>
17226
17227 * inferior.h (class inferior) <displaced_step_state>: New field.
17228 * infrun.h (struct displaced_step_state): Move here from
17229 infrun.c. Initialize fields, add constructor.
17230 <inf>: Remove field.
17231 <reset>: New method.
17232 * infrun.c (struct displaced_step_inferior_state): Move to
17233 infrun.h.
17234 (displaced_step_inferior_states): Remove.
17235 (get_displaced_stepping_state): Adust.
17236 (displaced_step_in_progress_any_inferior): Adjust.
17237 (displaced_step_in_progress_thread): Adjust.
17238 (displaced_step_in_progress): Adjust.
17239 (add_displaced_stepping_state): Remove.
17240 (get_displaced_step_closure_by_addr): Adjust.
17241 (remove_displaced_stepping_state): Remove.
17242 (infrun_inferior_exit): Call displaced_step_state.reset.
17243 (use_displaced_stepping): Don't check for NULL.
17244 (displaced_step_prepare_throw): Call
17245 get_displaced_stepping_state.
17246 (displaced_step_fixup): Don't check for NULL.
17247 (prepare_for_detach): Don't check for NULL.
17248
e3319240
PW
172492019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
17250
17251 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
17252 in case of call that did not complete.
17253
5d36dfb9
AU
172542019-01-02 Andrey Utkin <autkin@undo.io>
17255
17256 * symfile.c (find_separate_debug_file): Fix search of debug files for
17257 remote debuggee.
17258
8833fbf0
TT
172592019-01-02 Tom Tromey <tom@tromey.com>
17260
17261 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
17262 indentation.
17263 * python/py-frame.c (frapy_older): Remove cast.
17264 (frapy_newer): Likewise.
17265 * python/py-breakpoint.c (local_setattro): Remove cast.
17266 * python/py-arch.c (archpy_name): Remove local variable.
17267 * python/py-type.c (gdbpy_lookup_type): Remove cast.
17268
4ada3dfd
JB
172692019-01-02 Joel Brobecker <brobecker@adacore.com>
17270
17271 * unittests/basic_string_view/element_access/char/empty.cc:
17272 Fix year range in copyright header.
17273
113b7b81
AB
172742019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
17275
17276 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
17277 Delete.
17278 <operator==>: Update with for removed field.
17279 <hash>: Likewise.
17280 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
17281 <isa_features>: ...this.
17282 <abi_features>: New field.
17283 (riscv_isa_flen): Update comment.
17284 (riscv_abi_xlen): New declaration.
17285 (riscv_abi_flen): New declaration.
17286 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
17287 isa_features.
17288 (riscv_abi_xlen): New function.
17289 (riscv_isa_flen): Update to get answer from isa_features.
17290 (riscv_abi_flen): New function.
17291 (riscv_has_fp_abi): Update to get answer from abi_features.
17292 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
17293 xlen and flen.
17294 (riscv_call_info) <xlen, flen>: Update comment.
17295 (riscv_call_arg_struct): Remove invalid assertions
17296 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
17297 is removed.
17298 (riscv_gdbarch_init): Gather isa features and abi features
17299 separately, ensure both match on the gdbarch when reusing an old
17300 gdbarch. Relax an error check to allow 32-bit abi float to run on
17301 a target with 64-bit float hardware.
17302
b18ca514
PW
173032019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
17304
17305 * source.c (search_command_helper): Stop reverse search
17306 when line 1 has been searched.
17307
ec70d8db
PW
173082019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
17309
17310 * record-full.c (record_full_base_target::close): Rewrite
17311 record_full_core_buf_list free logic.
17312
5b38f9c1
PW
173132019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
17314
17315 * break-catch-syscall.c (print_one_catch_syscall): xfree
17316 the last text.
17317
66d91b39
JB
173182019-01-01 Joel Brobecker <brobecker@adacore.com>
17319
17320 * top.c (print_gdb_version): Update Copyright year in version
17321 message.
17322
42a4f53d
JB
173232019-01-01 Joel Brobecker <brobecker@adacore.com>
17324
17325 Update copyright year range in all GDB files.
17326
7e955d83 173272019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
2139e8dc 17328
5bbd631d 17329 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
2139e8dc 17330
5bbd631d 17331For older changes see ChangeLog-2018.
c906108c
SS
17332\f
17333Local Variables:
17334mode: change-log
17335left-margin: 8
17336fill-column: 74
17337version-control: never
57da7796 17338coding: utf-8
c906108c 17339End:
5bbd631d 17340
This page took 3.180639 seconds and 4 git commands to generate.