]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
Use "bool" in more spots in TUI
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
87d557ae
TT
12019-12-30 Tom Tromey <tom@tromey.com>
2
3 * tui/tui-interp.c (tui_start_enabled): Now bool.
4 (_initialize_tui_interp): Update.
5 * tui/tui-hooks.c (tui_refreshing_registers): Now bool.
6 (tui_register_changed)
7 (tui_refresh_frame_and_register_information): Update.
8 * tui/tui-win.c (tui_update_variables): Return bool.
9 * tui/tui-win.h (tui_update_variables): Return bool.
10 * tui/tui.c (tui_get_command_dimension): Return bool.
11 * tui/tui.h (tui_get_command_dimension): Return bool.
12
c296cbe6
BE
132019-12-29 Bernd Edlinger <bernd.edlinger@hotmail.de>
14
15 * buildsym.c (buildsym_compunit::record_line): Do no longer ignore
16 line 65535.
17
ace206a5
TT
182019-12-27 Tom Tromey <tom@tromey.com>
19
20 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
21 commented-out code.
22 * tui/tui.c: Remove #if 0 code.
23
f9ba974d
TT
242019-12-27 Tom Tromey <tom@tromey.com>
25
26 * cli/cli-cmds.c (print_disassembly): Reorder "if".
27
a1e4dee4
TT
282019-12-27 Tom Tromey <tom@tromey.com>
29
30 * tui/tui.c (tui_active): Now bool.
31 (tui_finish_init): Likewise.
32 (tui_enable): Update.
33 (tui_disable): Update.
34 (tui_is_window_visible): Update.
35 * tui/tui.h (tui_active): Now bool.
36
1630140d
TT
372019-12-27 Tom Tromey <tom@tromey.com>
38
39 * tui/tui-source.c (tui_source_window::maybe_update): Update.
40 * tui/tui-regs.c (tui_data_window::display_registers_from):
41 Update.
42 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
43 * tui/tui-data.h (struct tui_gen_win_info) <viewport_height>:
44 Remove.
45 * tui/tui-command.c (tui_cmd_window::resize): Update.
46
4d4eaa30
CB
472019-12-26 Christian Biesinger <cbiesinger@google.com>
48
49 * ada-lang.c (ada_decode_symbol): Update.
50 * buildsym.c (add_symbol_to_list): Update.
51 * coffread.c (process_coff_symbol): Update.
52 * ctfread.c (ctf_add_enum_member_cb): Update.
53 (new_symbol): Update.
54 (ctf_add_var_cb): Update.
55 * dwarf2read.c (fixup_go_packaging): Update.
56 (dwarf2_compute_name): Update.
57 (new_symbol): Update.
58 * jit.c (finalize_symtab): Update.
59 * language.c (language_alloc_type_symbol): Update.
60 * mdebugread.c (new_symbol): Update.
61 * minsyms.c (minimal_symbol_reader::record_full): Update.
62 (minimal_symbol_reader::install): Update.
63 * psymtab.c (print_partial_symbols): Update.
64 (psymbol_hash): Update.
65 (psymbol_compare): Update.
66 (add_psymbol_to_bcache): Update.
67 (maintenance_check_psymtabs): Update.
68 * stabsread.c (define_symbol): Update.
69 * symtab.c (symbol_set_names): Rename to...
70 (general_symbol_info::compute_and_set_names): ...this.
71 (general_symbol_info::natural_name): Update.
72 (general_symbol_info::search_name): Update.
73 (fixup_section): Update.
74 * symtab.h (struct general_symbol_info) <name>: Rename to...
75 <m_name>: ...this.
76 <compute_and_set_names>: Rename from...
77 (symbol_set_names): ...this.
78 (SYMBOL_SET_NAMES): Remove.
79 (struct symbol) <ctor>: Update.
80
8fb75323
CB
812019-12-26 Christian Biesinger <cbiesinger@google.com>
82
83 * NEWS: Mention that multithreaded symbol loading is now on by
84 default.
85
3142e908
RK
862019-12-26 Ruslan Kabatsayev <b7.10110111@gmail.com>
87
88 * dwarf2read.c (is_valid_DW_AT_defaulted)
89 (is_valid_DW_AT_calling_convention_for_type)
90 (is_valid_DW_AT_calling_convention_for_subroutine): Fix printing
91 ULONGEST variables on x86-32.
92
cb736441
GB
932019-12-21 George Barrett <bob@bob131.so>
94
95 * solib-svr4.c (svr4_handle_solib_event): Add fallback link
96 namespace test for when the debug struct isn't available.
97
15b07e4f
EZ
982019-12-21 Eli Zaretskii <eliz@gnu.org>
99
100 * top.c (print_gdb_configuration): Print "--with-xxhash" or
101 "--without-xxhash" according to HAVE_LIBXXHASH.
102
1c7148dd
WP
1032019-12-20 Weimin Pan <weimin.pan@oracle.com>
104 * ctfread.c (ctf_file_key): Change type to objfile_key.
105 (struct ctf_context): Remove typedef.
106 (get_objfile_text_range): Use ANOFFSET to get text base.
107
d0922fcf
TBA
1082019-12-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
109
110 * dwarf2read.c (is_valid_DW_AT_calling_convention_for_subroutine):
111 New function.
112 (read_subroutine_type): Validate the parsed
113 DW_AT_calling_convention value before assigning it to a
114 subroutine's calling_convention attribute.
115 * gdbtypes.h (struct func_type) <calling_convention>: Use
116 an enum bitfield as its type, instead of plain unsigned.
117
099a6354
TBA
1182019-12-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
119
120 PR gdb/25054
121 * infcall.c (call_function_by_hand_dummy): Update the argument-
122 passing section for call-by-value parameters.
123 (struct destructor_info): New struct.
124 (call_destructors): New auxiliary function.
125
62bf63d7
TBA
1262019-12-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
127
128 * gnu-v3-abi.c (enum definition_style): New enum type.
129 (get_def_style): New function.
130 (is_user_provided_def): New function.
131 (is_implicit_def): New function.
132 (is_copy_or_move_constructor_type): New function.
133 (is_copy_constructor_type): New function.
134 (is_move_constructor_type): New function.
135 (gnuv3_pass_by_reference): Collect language_pass_by_ref_info
136 for a given type.
137
9d084466
TBA
1382019-12-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
139
140 * language.h (struct language_pass_by_ref_info): New struct.
141 (struct language_defn)<la_pass_by_reference>: Change the signature
142 to return a language_pass_by_ref_info instead of an int.
143 (language_pass_by_reference): Ditto.
144 (default_pass_by_reference): Ditto.
145 Adjust the users listed below.
146 * arch-utils.c (default_return_in_first_hidden_param_p):
147 Update.
148 * cp-abi.c (cp_pass_by_reference): Update.
149 * cp-abi.h (cp_pass_by_reference): Update declaration.
150 (struct cp_abi_ops)<pass_by_reference>: Update.
151 * gnu-v3-abi.c (gnuv3_pass_by_reference): Update.
152 * infcall.c (call_function_by_hand_dummy): Update.
153 * language.c (language_pass_by_reference): Update.
154 (default_pass_by_reference): Update.
155 * tic6x-tdep.c (tic6x_return_value): Update.
156
e35000a7
TBA
1572019-12-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
158
159 * dwarf2read.c (dwarf2_add_member_fn): Read the DW_AT_defaulted
160 and DW_AT_deleted attributes of a function.
161 (read_structure_type): Read the DW_AT_calling_convention attribute
162 of a type.
163 (is_valid_DW_AT_defaulted): New function.
164 (is_valid_DW_AT_calling_convention_for_type): New function.
165 * gdbtypes.h: Include dwarf2.h.
166 (struct fn_field)<defaulted>: New field to store the
167 DW_AT_defaulted attribute.
168 (struct fn_field)<is_deleted>: New field to store the
169 DW_AT_deleted attribute.
170 (struct cplus_struct_type)<calling_convention>: New field to store
171 the DW_AT_calling_convention attribute.
172 (TYPE_FN_FIELD_DEFAULTED): New macro.
173 (TYPE_FN_FIELD_DELETED): New macro.
174 (TYPE_CPLUS_CALLING_CONVENTION): New macro.
175 * gdbtypes.c (dump_fn_fieldlists): Update for the changes made
176 to the .h file.
177 (print_cplus_stuff): Likewise.
178
b4b49dcb
TT
1792019-12-20 Tom Tromey <tom@tromey.com>
180
181 * tui/tui.c (tui_show_source): Remove.
182 * tui/tui.h (tui_show_source): Don't declare.
183 * tui/tui-out.c (tui_ui_out::do_field_string): Don't call
184 tui_show_source.
185
eb390f49
TT
1862019-12-20 Tom Tromey <tom@tromey.com>
187
188 * tui/tui-stack.h (tui_show_frame_info): Return bool.
189 * tui/tui-stack.c (tui_show_frame_info): Return bool.
190 * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
191 Update.
192
fc9d2d72
TT
1932019-12-20 Tom Tromey <tom@tromey.com>
194
195 PR tui/18932:
196 * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
197 Rename parameters. Handle the not-from-stack-frame case.
198 (from_stack, from_source_symtab): New globals.
199 (tui_before_prompt, tui_normal_stop): Update.
200 (tui_context_changed, tui_symtab_changed): New functions.
201 (tui_attach_detach_observers): Attach new observers.
202
a75cd9a2
TT
2032019-12-20 Tom Tromey <tom@tromey.com>
204
205 * source.c (struct current_source_location) <set, symtab, line>:
206 New methods.
207 <m_symtab, m_line>: Rename. Now private.
208 (get_current_source_symtab_and_line)
209 (set_default_source_symtab_and_line)
210 (set_current_source_symtab_and_line)
211 (clear_current_source_symtab_and_line, select_source_symtab)
212 (info_source_command, print_source_lines_base)
213 (info_line_command, search_command_helper): Update.
214 * observable.h (current_source_symtab_and_line_changed): Declare
215 observable.
216 * observable.c (current_source_symtab_and_line_changed): Define
217 observable.
218
2dfd3df4
TT
2192019-12-20 Tom Tromey <tom@tromey.com>
220
221 * tui/tui-hooks.c (tui_before_prompt): Change parameter to bool.
222 (tui_before_prompt, tui_normal_stop): Update.
223
54217b84
TT
2242019-12-20 Tom Tromey <tom@tromey.com>
225
226 * tui/tui-winsource.c
227 (tui_source_window_base::update_source_window_as_is): Don't call
228 set_current_source_symtab_and_line.
229
0ab92974
TT
2302019-12-20 Tom Tromey <tom@tromey.com>
231
232 * tui/tui-stack.h (struct tui_locator_window) <set_locator_info>:
233 Take a symtab_and_line.
234 * tui/tui-stack.c (tui_locator_window::set_locator_info): Take a
235 symtab_and_line.
236 (tui_show_frame_info): Update.
237
ae4393e2
TT
2382019-12-20 Tom Tromey <tom@tromey.com>
239
240 * tui/tui-stack.c (tui_show_frame_info): Don't call
241 update_exec_info.
242
77b97e00
TT
2432019-12-20 Tom Tromey <tom@tromey.com>
244
245 * tui/tui.c (tui_enable): Call tui_display_main.
246
52469d76
TT
2472019-12-20 Tom Tromey <tom@tromey.com>
248
249 * tui/tui-disasm.c (tui_get_begin_asm_address): Use
250 get_current_source_symtab_and_line, and main_name.
251
5d49bf1b
TT
2522019-12-20 Tom Tromey <tom@tromey.com>
253
254 * tui/tui.c (tui_show_source): Update.
255 * tui/tui-winsource.h (tui_update_source_windows_with_line): Update.
256 * tui/tui-winsource.c (tui_update_source_windows_with_line): Take
257 a symtab_symbol_info, not a separate symtab and line. Simplify.
258
88180c08
TT
2592019-12-20 Tom Tromey <tom@tromey.com>
260
261 * tui/tui-winsource.c (tui_update_source_windows_with_addr):
262 Simplify.
263
9f7540a5
TT
2642019-12-20 Tom Tromey <tom@tromey.com>
265
266 * tui/tui-winsource.h (struct tui_source_window_base)
267 <set_contents, update_source_window_as_is, update_source_window>:
268 Take a sal, not a separate symtab and tui_line_or_address.
269 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
270 (tui_source_window_base::update_source_window_as_is): Take a sal,
271 not a separate symtab and tui_line_or_address.
272 (tui_update_source_windows_with_addr)
273 (tui_update_source_windows_with_line)
274 (tui_source_window_base::rerender)
275 (tui_source_window_base::refill): Update.
276 * tui/tui-source.h (struct tui_source_window) <set_contents>: Take
277 a sal, not a separate symtab and tui_line_or_address.
278 * tui/tui-source.c (tui_source_window::set_contents): Take a sal,
279 not a separate symtab and tui_line_or_address.
280 (tui_source_window::maybe_update): Update.
281 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>: Take
282 a sal, not a separate symtab and tui_line_or_address.
283 * tui/tui-disasm.c (tui_disasm_window::set_contents): Take a sal,
284 not a separate symtab and tui_line_or_address.
285 (tui_disasm_window::do_scroll_vertical)
286 (tui_disasm_window::maybe_update): Update.
287
57e4b379
TT
2882019-12-20 Tom Tromey <tom@tromey.com>
289
290 * tui/tui-winsource.c (tui_source_window_base::refill): Use
291 start_line_or_addr.
292 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Use
293 start_line_or_addr.
294 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
295 start_line_or_addr.
296
61c33f10
TT
2972019-12-20 Tom Tromey <tom@tromey.com>
298
299 * tui/tui-winsource.h (struct tui_source_window_base)
300 <set_contents>: Return bool.
301 * tui/tui-winsource.c
302 (tui_source_window_base::update_source_window_as_is): Update.
303 * tui/tui-source.h (struct tui_source_window) <set_contents>:
304 Return bool.
305 * tui/tui-source.c (tui_source_window::set_contents): Return
306 bool. Simplify.
307 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
308 Return bool.
309 * tui/tui-disasm.c (tui_disasm_window::set_contents): Return
310 bool.
311
469b0731
TT
3122019-12-20 Tom Tromey <tom@tromey.com>
313
314 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
315 (tui_update_source_windows_with_line): Call update_source_window.
316 * tui/tui-source.h (struct tui_source_window)
317 <show_symtab_source>: Don't declare.
318 * tui/tui-source.c (tui_source_window::show_symtab_source):
319 Remove.
320
855f89b3
TT
3212019-12-20 Tom Tromey <tom@tromey.com>
322
323 * tui/tui-winsource.c (tui_update_source_windows_with_addr): Call
324 update_source_window directly.
325 * tui/tui-disasm.h (tui_show_disassem): Don't declare.
326 * tui/tui-disasm.c (tui_show_disassem): Remove.
327
d4669c0f
TT
3282019-12-20 Tom Tromey <tom@tromey.com>
329
330 * tui/tui-winsource.c
331 (tui_source_window_base::update_source_window_as_is): Don't switch focus.
332 * tui/tui-disasm.c (tui_show_disassem): Don't switch focus.
333
1ae58f0c
TT
3342019-12-20 Tom Tromey <tom@tromey.com>
335
336 * tui/tui-winsource.h (struct tui_source_window_base)
337 <maybe_update>: Remove line_no and addr parameters.
338 * tui/tui-stack.c (tui_show_frame_info): Set PC on sal. Update.
339 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
340 Update.
341 * tui/tui-source.c (tui_source_window::maybe_update): Remove
342 line_no and addr parameters.
343 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
344 Update.
345 * tui/tui-disasm.c (tui_disasm_window::maybe_update): Remove
346 line_no and addr parameters.
347
039298ec
TT
3482019-12-20 Tom Tromey <tom@tromey.com>
349
350 * tui/tui-winsource.c (tui_source_window_base::set_is_exec_point_at)
351 (tui_source_window_base::update_breakpoint_info): Remove asserts.
352
8acfefcc
TT
3532019-12-20 Tom Tromey <tom@tromey.com>
354
355 * tui/tui-winsource.c (tui_update_source_windows_with_addr): Call
356 tui_show_disassem.
357 * tui/tui-disasm.h (tui_show_disassem_and_update_source): Don't
358 declare.
359 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Remove.
360
5ebd5402
TT
3612019-12-20 Tom Tromey <tom@tromey.com>
362
363 * tui/tui.h (tui_show_source): Remove parameters.
364 * tui/tui.c (tui_show_source): Remove parameters.
365 * tui/tui-out.c (tui_ui_out::do_field_string): Update.
366
c1b167d7
TT
3672019-12-20 Tom Tromey <tom@tromey.com>
368
369 * tui/tui.c (tui_show_source): Update.
370 * tui/tui-winsource.c (tui_display_main): Update.
371 * tui/tui-stack.h (tui_update_locator_fullname): Change parameter
372 to symtab.
373 * tui/tui-stack.c (tui_update_locator_fullname): Change parameter
374 to symtab.
375 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Update.
376
364d7104
TT
3772019-12-20 Tom Tromey <tom@tromey.com>
378
379 PR tui/23619:
380 * tui/tui-io.c (tui_rl_saved_prompt): Remove.
381 (tui_redisplay_readline): Use rl_display_prompt.
382 (tui_prep_terminal): Update.
383
0ad6b8ee
CB
3842019-12-19 Christian Biesinger <cbiesinger@google.com>
385
386 * configure: Regenerate.
387 * configure.ac: Quote variable arguments of test.
388 * gdbsupport/common.m4: Likewise.
389
d411762c
CB
3902019-12-19 Christian Biesinger <cbiesinger@google.com>
391
392 * score-tdep.c (score7_analyze_prologue): Pass 2.0 instead of
393 2 to pow ().
394
1cd4a20a
CB
3952019-12-19 Christian Biesinger <cbiesinger@google.com>
396
397 * tui/tui-source.c (tui_source_window::set_contents): Cast argument of
398 log10 to double to fix Solaris 11 with gcc 5.5.
399
aa989b27
CB
4002019-12-19 Christian Biesinger <cbiesinger@google.com>
401
402 * fbsd-tdep.c (fbsd_info_proc_files_entry): Rename local var
403 "sun" to "saddr_un".
404
2032eb7e
TT
4052019-12-19 Tom Tromey <tromey@adacore.com>
406
407 * ui-out.h (enum class field_kind): Fix comment.
408
f69656d0
TT
4092019-12-11 Tom Tromey <tromey@adacore.com>
410
411 * xml-support.c (xml_fetch_content_from_file): Use FOPEN_RB.
412
27e4fac7
TT
4132019-12-18 Tom Tromey <tromey@adacore.com>
414
415 PR build/25268:
416 * gdbsupport/thread-pool.c (set_thread_name): Expect "int" return
417 type on macOS. Add comment.
418
e623f035
SM
4192019-12-18 Simon Marchi <simon.marchi@efficios.com>
420
421 * c-lang.c (c_get_string, asm_language_defn): Remove space
422 before tab.
423
28ce7b07
TT
4242019-12-18 Tom Tromey <tromey@adacore.com>
425
426 PR build/25250:
427 * ui-out.c (ui_out::vmessage): Update.
428 * ui-out.h (enum class field_kind) <FIELD_STRING, FIELD_SIGNED>:
429 Rename.
430 (string_field): Update.
431 (signed_field): Update.
432
bbde7025
SM
4332019-12-18 Simon Marchi <simon.marchi@efficios.com>
434
435 * top.c (print_gdb_configuration): Adjust indentation.
436
e3169fe0
CB
4372019-12-17 Christian Biesinger <cbiesinger@google.com>
438
439 * bsd-kvm.c: Include gdbsupport/pathstuff.h.
440
9b30da15
SM
4412019-12-17 Simon Marchi <simon.marchi@polymtl.ca>
442
443 * tui/tui-layout.h (class tui_layout_base): Add virtual
444 destructor.
445
4a4c04f1
BE
4462019-12-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
447
448 * infcmd.c (prepare_one_step): Step over skipped inline functions.
449 * infrun.c (inline_frame_is_marked_for_skip): New helper function.
450 (process_event_stop_test): Keep stepping over skipped inline functions.
451
0394eed1
SM
4522019-12-16 Simon Marchi <simon.marchi@polymtl.ca>
453
454 * jit.c (struct gdb_block) <next>: Remove field.
455 (struct gdb_symtab) <~gdb_symtab>: Remove.
456 <blocks>: Change type to std::forward_list<gdb_block>.
457 (compare_block): Remove.
458 (jit_block_open_impl): Adjust to std::forward_list. Place the new
459 block at the beginning, don't mind about sorting.
460 (finalize_symtab): Adjust to std::forward_list, sort the blocks list
461 before using it.
462
b6112117
SM
4632019-12-16 Simon Marchi <simon.marchi@polymtl.ca>
464
465 * jit.c (struct gdb_block): Add constructor, initialize
466 real_block and next fields.
467 <name>: Change type to gdb::unique_xmalloc_ptr.
468 (struct gdb_symtab) <~gdb_symtab>: Free blocks with delete.
469 (jit_block_open_impl): Allocate gdb_block with new.
470 (finalize_symtab): Adjust to gdb::unique_xmalloc_ptr.
471
1b61f46d
SM
4722019-12-16 Simon Marchi <simon.marchi@polymtl.ca>
473
474 * jit.c: Include forward_list.
475 (struct gdb_symtab) <next>: Remove field.
476 (struct gdb_object) <symtabs>: Change type to
477 std::forward_list<gdb_symtab>.
478 (jit_object_open_impl): Allocate gdb_object with new.
479 (jit_symtab_open_impl): Adjust to std::forward_list.
480 (finalize_symtab): Don't delete symtab.
481 (jit_object_close_impl): Adjust to std::forward_list. Free
482 gdb_object with delete.
483
89867184
SM
4842019-12-16 Simon Marchi <simon.marchi@polymtl.ca>
485
486 * jit.c (struct gdb_symtab): Add constructor, destructor,
487 initialize fields.
488 <linetable>: Change type to unique_xmalloc_ptr.
489 <file_name>: Change type to std::string.
490 (jit_symtab_open_impl): Allocate gdb_symtab with new.
491 (jit_symtab_line_mapping_add_impl): Adjust.
492 (finalize_symtab): Adjust, call delete on stab.
493
d043f8c8
SM
4942019-12-16 Simon Marchi <simon.marchi@polymtl.ca>
495
496 * jit.c (finalize_symtab): Set gdb_block_iter_tmp in loop.
497
d9fa87f4
TT
4982019-12-16 Tom Tromey <tromey@adacore.com>
499
500 * windows-nat.c (windows_nat_target::attach): Update.
501 * remote.c (extended_remote_target::attach): Update.
502 * procfs.c (procfs_target::attach): Update.
503 * nto-procfs.c (nto_procfs_target::attach): Update.
504 (nto_procfs_target::create_inferior): Update.
505 * inf-ptrace.c (inf_ptrace_target::attach): Update.
506 * gnu-nat.c (gnu_nat_target::attach): Update.
507 (gnu_nat_target::detach): Update.
508 * darwin-nat.c (darwin_nat_target::attach): Update.
509 * corefile.c (get_exec_file): Constify result. Remove extraneous
510 return.
511 * bsd-kvm.c (bsd_kvm_target_open): Update.
512 * gdbsupport/common-inferior.h (get_exec_file): Constify result.
513
c0c3707f
CB
5142019-12-16 Christian Biesinger <cbiesinger@google.com>
515
516 * gdbsupport/common-defs.h: Remove workaround for a gnulib bug
517 (we no longer need to include time.h before pathmax.h)
518
d3ecddab
CB
5192019-12-15 Christian Biesinger <cbiesinger@google.com>
520
521 * ada-exp.y (write_ambiguous_var): Update.
522 * coffread.c (process_coff_symbol): Update.
523 * ctfread.c (ctf_add_enum_member_cb): Update.
524 (new_symbol): Update.
525 * dwarf2read.c (fixup_go_packaging): Update.
526 (new_symbol): Update.
527 * language.c (language_alloc_type_symbol): Update.
528 * mdebugread.c (new_symbol): Update.
529 * minsyms.c (minimal_symbol_reader::record_full): Update.
530 * psymtab.c (add_psymbol_to_bcache): Update.
531 * stabsread.c (define_symbol): Update.
532 (read_enum_type): Update.
533 * symtab.c (symbol_set_language): Make this a member function...
534 (general_symbol_info::set_language): ... here.
535 * symtab.h (struct general_symbol_info) <set_language>: New function.
536 (SYMBOL_SET_LANGUAGE): Remove.
537 (symbol_set_language): Remove.
538
c1b5c1eb
CB
5392019-12-15 Christian Biesinger <cbiesinger@google.com>
540
541 * ada-lang.c (ada_add_block_symbols): Update.
542 (ada_collect_symbol_completion_matches): Update.
543 * ax-gdb.c (gen_expr): Update.
544 * block.c (block_lookup_symbol): Update.
545 (block_lookup_symbol_primary): Update.
546 (block_find_symbol): Update.
547 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Update.
548 * dbxread.c (process_one_symbol): Update.
549 * dictionary.c (insert_symbol_hashed): Update.
550 (collate_pending_symbols_by_language): Update.
551 (mdict_add_symbol): Update.
552 * dwarf-index-write.c (write_psymbols): Update.
553 * dwarf2read.c (fixup_go_packaging): Update.
554 * findvar.c (read_var_value): Update.
555 * ft32-tdep.c (ft32_skip_prologue): Update.
556 * go-lang.c (go_symbol_package_name): Update.
557 * language.h (scoped_switch_to_sym_language_if_auto::
558 scoped_switch_to_sym_language_if_auto): Update.
559 * linespec.c (find_method): Update.
560 (find_label_symbols_in_block): Update.
561 * mdebugread.c (parse_symbol): Update.
562 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
563 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
564 (minimal_symbol_reader::install): Update.
565 * moxie-tdep.c (moxie_skip_prologue): Update.
566 * parse.c (parse_exp_in_context): Update.
567 * psymtab.c (psymbol_name_matches): Update.
568 (match_partial_symbol): Update.
569 (lookup_partial_symbol): Update.
570 (psymbol_hash): Update.
571 (psymbol_compare): Update.
572 * python/py-framefilter.c (extract_sym): Update.
573 (py_print_single_arg): Update.
574 * stabsread.c (define_symbol): Update.
575 * stack.c (print_frame_arg): Update.
576 (find_frame_funname): Update.
577 (info_frame_command_core): Update.
578 * symfile.c (set_initial_language): Update.
579 * symtab.c (symbol_set_demangled_name): Update.
580 (symbol_get_demangled_name): Update.
581 (symbol_set_language): Update.
582 (symbol_find_demangled_name): Update.
583 (symbol_set_names): Update.
584 (general_symbol_info::natural_name): Update.
585 (general_symbol_info::demangled_name): Update.
586 (general_symbol_info::search_name): Update.
587 (symbol_matches_search_name): Update.
588 (eq_symbol_entry): Update.
589 (iterate_over_symbols): Update.
590 (completion_list_add_symbol): Update.
591 (completion_list_add_msymbol): Update.
592 (completion_list_add_fields): Update.
593 * symtab.h (struct general_symbol_info) <language>: New function.
594 <language>: Rename to...
595 <m_language>: ...this.
596 (SYMBOL_LANGUAGE): Remove.
597 (MSYMBOL_LANGUAGE): Remove.
598 (struct symbol) <ctor>: Update.
599 * xstormy16-tdep.c (xstormy16_skip_prologue): Update.
600
747cfc8c
CB
6012019-12-15 Christian Biesinger <cbiesinger@google.com>
602
603 * ada-exp.y (write_ambiguous_var): Call symbol_set_language to
604 set the language of sym.
605 * language.c (language_alloc_type_symbol): Likewise.
606
ff8577f6
SDJ
6072019-12-14 Sergio Durigan Junior <sergiodj@redhat.com>
608
609 https://bugzilla.redhat.com/show_bug.cgi?id=1728147
610 PR gdb/23613
611 * bsd-kvm.c (bsd_kvm_target_open): Use 'gdb_abspath'.
612 * corelow.c: Include 'gdbsupport/pathstuff.h'.
613 (core_target_open): Use 'gdb_abspath'.
614 * gdbsupport/pathstuff.c (gdb_abspath): Guard against
615 'current_directory == NULL' case.
616 * gdbsupport/pathstuff.h (gdb_abspath): Expand comment and
617 explain what happens when 'current_directory' is NULL.
618 * go32-nat.c (go32_nat_target::wait): Check if
619 'current_directory' is NULL before call to 'chdir'.
620 * source.c (add_path): Use 'gdb_abspath'.
621 * top.c: Include 'gdbsupport/pathstuff.h'.
622 (init_history): Use 'gdb_abspath'.
623 (set_history_filename): Likewise.
624 * tracefile-tfile.c: Include 'gdbsupport/pathstuff.h'.
625 (tfile_target_open): Use 'gdb_abspath'.
626
234c3068
TT
6272019-12-13 Tom Tromey <tromey@adacore.com>
628
629 * contrib/ari/gdb_ari.sh: Remove check for multiple calls to
630 warning or error.
631
93537683
TT
6322019-12-13 Tom Tromey <tromey@adacore.com>
633
634 * contrib/ari/gdb_ari.sh: Remove call to "fix" for "long long".
635
63456183
TT
6362019-12-13 Tom Tromey <tromey@adacore.com>
637
638 * contrib/ari/gdb_ari.sh: Handle -Wno- prefix.
639
98f9338a
TT
6402019-12-13 Tom Tromey <tromey@adacore.com>
641
642 * contrib/ari/gdb_ari.sh (usage): Use GNU style.
643
3cb5a3a1
TT
6442019-12-13 Tom Tromey <tromey@adacore.com>
645
646 * gdbsupport/common-utils.c (string_printf, string_vprintf)
647 (string_vappendf): Add ARI comment.
648
c6cbf900
TT
6492019-12-13 Tom Tromey <tromey@adacore.com>
650
651 * contrib/ari/gdb_ari.sh: Remove "fix" call for
652 floatformat_to_double.
653 * target-float.c (host_float_ops<T>::from_target): Add ARI
654 comment.
655
036003a6
TT
6562019-12-13 Tom Tromey <tromey@adacore.com>
657
658 * contrib/ari/gdb_ari.sh: Remove "fix" call for abort.
659 * utils.c (abort_with_message, dump_core, internal_vproblem): Add
660 ARI marker to abort.
661 * event-top.c (handle_sigsegv): Add ARI marker to abort.
662
8aaaf757
TT
6632019-12-13 Tom Tromey <tromey@adacore.com>
664
665 * contrib/ari/gdb_ari.sh: Fix floatformat_from_double text.
666
fe56157f
TT
6672019-12-13 Tom Tromey <tromey@adacore.com>
668
669 * contrib/ari/gdb_ari.sh: Remove ATTRIBUTE_UNUSED check.
670
a15a95ed
TT
6712019-12-13 Tom Tromey <tromey@adacore.com>
672
673 * contrib/ari/gdb_ari.sh: Remove "boolean" and "var_boolean"
674 checks.
675
a5513db2
TT
6762019-12-13 Tom Tromey <tromey@adacore.com>
677
678 * gdbsupport/safe-iterator.h (class basic_safe_range) <begin,
679 end>: No longer "const".
680
3a90f266
SM
6812019-12-13 Simon Marchi <simon.marchi@polymtl.ca>
682
683 * jit.c: Fix indentation, replace spaces with tabs where
684 applicable.
685
b3f4b80f
JL
6862019-12-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
687
688 * configure.tgt: Match msp430-*-elf* targets when configuring GDB.
689
e671856c
TT
6902019-12-12 Tom Tromey <tom@tromey.com>
691
692 * objfiles.h (struct objfile) <partial_symtabs>: Now a
693 unique_ptr.
694
7d7167ce
TT
6952019-12-12 Tom Tromey <tom@tromey.com>
696
697 * progspace.h (objfile_list): New typedef.
698 (class unwrapping_objfile_iterator)
699 (struct unwrapping_objfile_range): Newl
700 (struct program_space) <objfiles_range>: Change type.
701 <objfiles>: Change return type.
702 <add_objfile>: Change type of "objfile" parameter.
703 <objfiles_list>: Now a list of shared_ptr.
704 * progspace.c (program_space::add_objfile): Change type of
705 "objfile". Update.
706 (program_space::remove_objfile): Update.
707 * objfiles.h (struct objfile) <~objfile>: Make public.
708 * objfiles.c (objfile::make): Update.
709 (objfile::unlink): Don't call delete.
710
343cc952
TT
7112019-12-12 Tom Tromey <tom@tromey.com>
712
713 * symfile.c (symbol_file_clear): Update.
714 * progspace.h (struct program_space) <free_all_objfiles>: Declare
715 method.
716 * progspace.c (program_space::free_all_objfiles): New method.
717 * objfiles.h (free_all_objfiles): Don't declare.
718 * objfiles.c (free_all_objfiles): Move to program_space.
719
d0801dd8
TT
7202019-12-12 Tom Tromey <tom@tromey.com>
721
722 * progspace.c (program_space::add_objfile)
723 (program_space::remove_objfile): Update.
724 (program_space::multi_objfile_p): Remove.
725 * objfiles.h (struct objfile) <next>: Remove.
726 * objfiles.c (objfile::objfile): Update.
727 (put_objfile_before): Update.
728 (unlink_objfile): Update.
729 * progspace.h (object_files): Remove.
730 (struct program_space) <objfiles_head>: Remove.
731 <objfiles_list>: New member.
732 <objfiles_range, objfiles_safe_range>: Change type.
733 (objfiles): Change return type.
734 (objfiles_safe): Update.
735 (multi_objfile_p): Rewrite and inline.
736 (object_files): Remove macro.
737
13bff726
TT
7382019-12-12 Tom Tromey <tom@tromey.com>
739
740 * gdbsupport/safe-iterator.h (basic_safe_iterator): Simplify. Add
741 second constructor.
742 (basic_safe_range): New class.
743
deeafabb
TT
7442019-12-12 Tom Tromey <tom@tromey.com>
745
746 * progspace.c (program_space::multi_objfile_p): New method.
747 * printcmd.c (info_symbol_command): Update.
748 * maint.c (maintenance_translate_address): Update.
749 * objfiles.h (MULTI_OBJFILE_P): Remove.
750 * progspace.h (struct program_space) <multi_objfile_p>: New
751 method.
752
23452926
TT
7532019-12-12 Tom Tromey <tom@tromey.com>
754
755 * progspace.h (struct program_space) <remove_objfile>: Declare.
756 * progspace.c (program_space::remove_objfile): New method.
757 * objfiles.c (unlink_objfile): Remove.
758 (objfile::unlink): Call remove_objfile.
759 (objfile): Don't call unlink_objfile.
760
7cac64af
TT
7612019-12-12 Tom Tromey <tom@tromey.com>
762
763 * progspace.h (struct program_space) <add_objfile>: Declare
764 method.
765 * progspace.c (program_space::add_objfile): New method.
766 * objfiles.c (~objfile): Don't unlink objfile.
767 (put_objfile_before): Remove.
768 (add_separate_debug_objfile): Don't call put_objfile_before.
769 (objfile::make): Call add_objfile. Set new_objfiles_available on
770 the per-program-space data.
771
268e4f09
TT
7722019-12-12 Tom Tromey <tom@tromey.com>
773
774 * symfile.c (syms_from_objfile_1): Use objfile_up.
775 (syms_from_objfile_1, remove_symbol_file_command): Call unlink
776 method.
777 (reread_symbols): Use objfile_up.
778 * solib.c (update_solib_list, reload_shared_libraries_1): Call
779 unlink method.
780 * objfiles.h (struct objfile) <~objfile>: Now private.
781 <unlink>: New method.
782 (struct objfile_deleter): New.
783 (objfile_up): New typedef.
784 * objfiles.c (objfile::unlink): New method.
785 (free_objfile_separate_debug, free_all_objfiles)
786 (objfile_purge_solibs): Use it.
787 * jit.c (jit_unregister_code): Remove.
788 (jit_inferior_exit_hook, jit_event_handler): Call unlink on
789 objfile.
790 * compile/compile-object-run.c (do_module_cleanup): Call unlink on
791 objfile.
792 * compile/compile-object-load.c (compile_object_load): Use
793 objfile_up.
794
f65fe570
TT
7952019-12-12 Tom Tromey <tom@tromey.com>
796
797 * symfile.c (symbol_file_add_with_addrs): Pass "parent" to
798 objfile::make.
799 * objfiles.h (struct objjfile) <make>: No longer inline.
800 (add_separate_debug_objfile): Don't declare.
801 * objfiles.c (add_separate_debug_objfile): Now static.
802 (objfile::make): Move from objfiles.h. Call
803 add_separate_debug_objfile. Add "parent" parameter.
804
bda13cdc
TT
8052019-12-12 Tom Tromey <tom@tromey.com>
806
807 * symfile.c (symbol_file_add_with_addrs): Use objfile::make.
808 * objfiles.h (struct objfile): Make constructor private.
809 <make>: New static method.
810 * jit.c (jit_object_close_impl): Update.
811
7190276c
SM
8122019-12-12 Simon Marchi <simon.marchi@polymtl.ca>
813
814 * jit.c (jit_reader_try_read_symtab): Replace xmalloc/xfree with
815 gdb::byte_vector.
816
d61df897
TT
8172019-12-12 Tom Tromey <tromey@adacore.com>
818
819 * xml-support.c (xml_fetch_content_from_file): Don't call
820 malloc_failure.
821 * utils.h (class gdb_argv): Remove malloc_failure comment.
822 * utils.c (gdb_argv::reset): Don't call malloc_failure.
823
db3ad2f0
TT
8242019-12-12 Tom Tromey <tromey@adacore.com>
825
826 * Makefile.in (ALL_TARGET_OBS): Add riscv-ravenscar-thread.o.
827 (HFILES_NO_SRCDIR): Add riscv-ravenscar-thread.h.
828 (ALLDEPFILES): Add riscv-ravenscar-thread.c.
829 * configure.tgt (riscv-*-*): Add riscv-ravenscar-thread.o.
830 * riscv-ravenscar-thread.c: New file.
831 * riscv-ravenscar-thread.h: New file.
832 * riscv-tdep.c (riscv_gdbarch_init): Call
833 register_riscv_ravenscar_ops.
834
2ffe5b9c
TT
8352019-12-12 Tom Tromey <tromey@adacore.com>
836
837 * gdbsupport/thread-pool.c (set_thread_name): Use
838 ATTRIBUTE_UNUSED.
839
39f34d7b
LM
8402019-12-12 Luis Machado <luis.machado@linaro.org>
841
842 * gdbsupport/safe-strerror.c: Don't include diagnostics.h.
843 (select_strerror_r): Use ATTRIBUTE_UNUSED instead of the diagnostics
844 macros.
845
d4eeccfe
TT
8462019-12-11 Tom Tromey <tom@tromey.com>
847
848 * tui/tui-win.c (tui_set_win_height_command): Call
849 tui_adjust_window_height.
850 (tui_adjust_win_heights, new_height_ok): Remove.
851 * tui/tui-layout.h (tui_adjust_window_height): Declare.
852 * tui/tui-layout.c (tui_adjust_window_height): New function.
853
3d979945
TT
8542019-12-11 Tom Tromey <tom@tromey.com>
855
856 * tui/tui-win.c (tui_resize_all): Remove code, call
857 tui_apply_current_layout.
858
2192a9d3
TT
8592019-12-11 Tom Tromey <tom@tromey.com>
860
861 * tui/tui-layout.h (tui_apply_current_layout): Declare.
862 * tui/tui-layout.c (standard_layouts, applied_layout): New
863 globals.
864 (tui_apply_current_layout): New function.
865 (show_layout): Set applied_layout. Call
866 tui_apply_current_layout.
867 (show_source_command, show_disasm_command)
868 (show_source_disasm_command, show_data)
869 (show_source_or_disasm_and_command): Remove.
870 (initialize_layouts): New function.
871 (_initialize_tui_layout): Call initialize_layouts.
872
389e7ddb
TT
8732019-12-11 Tom Tromey <tom@tromey.com>
874
875 * tui/tui-layout.h (class tui_layout_base)
876 (class tui_layout_window, class tui_layout_split): New.
877 * tui/tui-layout.c (tui_get_window_by_name)
878 (tui_layout_window::clone, tui_layout_window::apply)
879 (tui_layout_window::get_sizes, tui_layout_window::add_split)
880 (tui_layout_split::add_window, tui_layout_split::clone)
881 (tui_layout_split::get_sizes)
882 (tui_layout_split::set_weights_from_heights)
883 (tui_layout_split::adjust_size, tui_layout_split::apply): New
884 functions.
885 (tui_layout_split::add_split, tui_layout_split::add_split)
886 (tui_layout_split::set_weights_from_heights)
887 (tui_layout_split::set_weights_from_heights): New functions.
888
fb3184d8
TT
8892019-12-11 Tom Tromey <tom@tromey.com>
890
891 * tui/tui-wingeneral.c (tui_gen_win_info::make_window): Update.
892 * tui/tui-win.c (tui_adjust_win_heights, tui_resize_all): Update.
893 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
894 * tui/tui-data.h (struct tui_point): Remove.
895 (struct tui_gen_win_info) <origin>: Remove.
896 <x, y>: New fields.
897 * tui/tui-command.c (tui_cmd_window::resize): Update.
898
dc7ff8a6
TT
8992019-12-11 Tom Tromey <tom@tromey.com>
900
901 * tui/tui-stack.h (struct tui_locator_window) <min_height>:
902 Implement.
903 * tui/tui-regs.h (struct tui_data_item_window) <min_height>:
904 Implement.
905 * tui/tui-data.h (struct tui_gen_win_info) <min_height>: New
906 method.
907 (struct tui_win_info) <min_height>: Implement.
908
1431937b
TT
9092019-12-11 Tom Tromey <tom@tromey.com>
910
911 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
912 (struct tui_win_info) <can_box>: Update.
913
c8ec2f43
TT
9142019-12-11 Tom Tromey <tom@tromey.com>
915
916 * tui/tui-stack.h (struct tui_locator_window) <max_height>: New
917 method.
918 * tui/tui-regs.h (struct tui_data_item_window) <max_height>: New
919 method.
920 * tui/tui-data.h (struct tui_gen_win_info) <max_height>: New
921 method.
922 (struct tui_win_info) <max_height>: Now override.
923
4decd62b
JB
9242019-12-11 Joel Brobecker <brobecker@adacore.com>
925
926 * NEWS: Create a new section for the next release branch.
927 Rename the section of the current branch, now that it has
928 been cut.
929
d746744e
JB
9302019-12-11 Joel Brobecker <brobecker@adacore.com>
931
932 GDB 9 branch created (27f7b2f64062ac9e52afc60509263c2702a9ebd0):
933 * version.in: Bump version to 10.0.50.DATE-git.
934
2e744276
TT
9352019-12-11 Tom Tromey <tromey@adacore.com>
936
937 PR build/25268:
938 * gdbsupport/thread-pool.c (set_thread_name): New function.
939 (thread_pool::set_thread_count): Don't call pthread_setname_np.
940 (thread_pool::thread_function): Call set_thread_name.
941
aac4760f
TT
9422019-12-11 Tom Tromey <tromey@adacore.com>
943
944 * fbsd-tdep.c (fbsd_core_info_proc_status): Cast result of
945 bfd_get_signed_8.
946
d8edc8b7
PW
9472019-12-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
948
949 * NEWS: Document -raw-values option and the related setting commands.
950 * printcmd.c (print_command_parse_format): Do not set opts->raw off,
951 only set it on when /r is given.
952 * valprint.c (value_print_option_defs): New element raw-values.
953 * Makefile.in: Add the new file.
954
cb511130
CB
9552019-12-10 Christian Biesinger <cbiesinger@google.com>
956
957 * gdbsupport/safe-strerror.c: Supress the unused function warning
958 for select_strerror_r.
959
ab7d13f0
CB
9602019-12-10 Christian Biesinger <cbiesinger@google.com>
961
962 * config.in: Regenerate.
963 * configure: Regenerate.
964 * gdbsupport/agent.c (gdb_connect_sync_socket): Call
965 safe_strerror instead of strerror.
966 * gdbsupport/common.m4: Don't check for strerror.
967 * gdbsupport/safe-strerror.c: Support both the glibc version
968 of strerror_r and the XSI version.
969
6c71eb7d
TT
9702019-12-10 Tom Tromey <tromey@adacore.com>
971
972 * ada-typeprint.c (print_choices): Use a single "?".
973 (print_variant_part): Print "?" if the discriminant name
974 is not known.
975
bac7c5cf
GB
9762019-12-10 George Barrett <bob@bob131.so>
977
978 Fix scripted probe breakpoints.
979 * breakpoint.c (tracepoint_probe_breakpoint_ops): Move
980 declaration forward.
981 (breakpoint_ops_for_event_location_type)
982 (breakpoint_ops_for_event_location): Add function definitions.
983 (break_command_1, trace_command): Use
984 breakpoint_ops_for_event_location.
985 * breakpoint.h (breakpoint_ops_for_event_location): Add function
986 declarations.
987 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Use
988 breakpoint_ops_for_event_location.
989 * python/py-breakpoint.c (bppy_init): Use
990 breakpoint_ops_for_event_location.
991
330f1d38
TBA
9922019-12-09 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
993
994 * gdbtypes.c (rank_one_type): Return INCOMPATIBLE_TYPE_BADNESS
995 when ranking an lvalue argument for an rvalue parameter.
996
b1f0c0b9
WA
9972019-12-08 Wataru Ashihara <wataash@wataash.com>
998
999 * darwin-nat.c (darwin_nat_target::create_inferior): Fix
1000 template argument for scoped_restore_tmpl from bool to int.
1001
aa2d5a42
KS
10022019-12-07 Keith Seitz <keiths@redhat.com>
1003
1004 * build-id.c (build_id_bfd_get): Permit bfd_core, too.
1005 (build_id_to_debug_bfd): Make static, rewriting to use
1006 build_id_to_bfd_suffix.
1007 (build_id_to_bfd_suffix): Copy of build_id_to_debug_bfd,
1008 adding `suffix' parameter. Append SUFFIX to file names
1009 when searching for matching files.
1010 (build_id_to_debug_bfd): Use build_id_to_bfd_suffix.
1011 (build_id_to_exec_bfd): Likewise.
1012 * build-id.h (build_id_to_debug_bfd): Clarify that function
1013 searches for BFD of debug info file.
1014 (build_id_to_exec_bfd): Declare.
1015 * corelow.c: Include build-id.h.
1016 (locate_exec_from_corefile_build_id): New function.
1017 (core_target_open): If no executable BFD is found,
1018 search for a core file BFD using build-id.
1019
dfb65191
CB
10202019-12-06 Christian Biesinger <cbiesinger@google.com>
1021
1022 * bcache.c: Put in namespace gdb.
1023 * bcache.h: Likewise.
1024 * gdbtypes.c (check_types_worklist): Update.
1025 (types_deeply_equal): Update.
1026 * macrotab.c (struct macro_table) <bcache>: Update.
1027 (new_macro_table): Update.
1028 * macrotab.h (struct bcache): Put this forward declaration
1029 inside namespace gdb.
1030 (new_macro_table): Update.
1031 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache>:
1032 Update.
1033 <macro_cache>: Update.
1034 * psymtab.h: (psymtab_storage) <psymbol_cache>: Update.
1035
93e55f0a
TV
10362019-12-06 Tom de Vries <tdevries@suse.de>
1037
1038 PR symtab/24971
1039 * block.c (best_symbol, better_symbol): New function.
1040 (block_lookup_symbol_primary, block_lookup_symbol): Prefer def over
1041 decl.
1042
06acc08f
TBA
10432019-12-06 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1044
1045 * gdbtypes.h: Define the REFERENCE_SEE_THROUGH_BADNESS value.
1046 * gdbtypes.c (rank_one_type): Use REFERENCE_SEE_THROUGH_BADNESS
1047 for ranking see-through reference cases.
1048
e0fad1ea
PW
10492019-12-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1050 * stack.c (faas_command): Check a command is provided.
1051 * thread.c (taas_command, tfaas_command): Likewise.
1052
908641f5
PW
10532019-12-05 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1054 * inferior.c (prune_inferiors): Only call delete_inferior,
1055 Do not modify the inferior list.
1056
b858499d
SM
10572019-12-05 Simon Marchi <simon.marchi@polymtl.ca>
1058
1059 * c-exp.y: Update calls to lookup_typename,
1060 lookup_signed_typename and lookup_unsigned_typename.
1061 * c-lang.c (evaluate_subexp_c): Likewise.
1062 * cp-namespace.c (cp_lookup_symbol_imports_or_template):
1063 Likewise.
1064 * eval.c (binop_promote): Likewise.
1065 * gdbtypes.c (lookup_typename): Remove gdbarch parameter.
1066 (lookup_unsigned_typename): Likewise.
1067 (lookup_signed_typename): Likewise.
1068 * gdbtypes.h (lookup_unsigned_typename): Likewise.
1069 (lookup_signed_typename): Likewise.
1070 (lookup_typename): Likewise.
1071 * guile/scm-type.c (tyscm_lookup_typename): Update calls to
1072 lookup_typename, lookup_signed_typename,
1073 lookup_unsigned_typename.
1074 * m2-exp.y: Likewise.
1075 * printcmd.c (printf_wide_c_string): Likewise.
1076 (ui_printf): Likewise.
1077 * python/py-type.c (typy_lookup_typename): Likewise.
1078 * python/py-xmethods.c (python_xmethod_worker::invoke):
1079 Likewise.
1080 * rust-exp.y: Likewise.
1081
3a8fa228
CB
10822019-12-04 Christian Biesinger <cbiesinger@google.com>
1083
1084 * configure.nat (obsd64): Add missing files x86-nat.o and
1085 nat/x86-dregs.o.
1086
2dbc041e
TT
10872019-12-04 Tom Tromey <tom@tromey.com>
1088
1089 * valprint.c (val_print_string): Use metadata_style.
1090 * go-valprint.c (print_go_string): Use metadata style.
1091 * p-valprint.c (pascal_object_print_static_field): Use metadata
1092 style.
1093 * cp-valprint.c (cp_print_static_field): Use metadata style.
1094
36c8fb93
AB
10952019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
1096 Chris January <chris.january@arm.com>
1097
1098 * f-exp.y (COMPLEX_KEYWORD, SINGLE, DOUBLE, PRECISION): New
1099 tokens.
1100 (typebase): New patterns for complex, single/double precision, and
1101 single/double complex.
1102 (f77_keywords): Change token for complex keyword, and add single,
1103 double, and precision keywords.
1104
c6170c2c
SM
11052019-12-04 Simon Marchi <simon.marchi@polymtl.ca>
1106
1107 * avr-tdep.c (_initialize_avr_tdep): Improve help of command
1108 "info io_registers".
1109
894ecaf4
SM
11102019-12-04 Simon Marchi <simon.marchi@polymtl.ca>
1111
1112 * regcache.c (cooked_read_test): Initialize thread list of
1113 mock_inferior.
1114
be155ebb
SM
11152019-12-04 Simon Marchi <simon.marchi@polymtl.ca>
1116
1117 * aarch64-linux-tdep.c: Remove includes.
1118
c577cdd7
SM
11192019-12-04 Simon Marchi <simon.marchi@polymtl.ca>
1120
1121 * aarch64-tdep.c: Remove includes.
1122
610cfd61
SM
11232019-12-04 Simon Marchi <simon.marchi@efficios.com>
1124
1125 * filtered-iterator.h (filtered_iterator) <operator==,
1126 operator!=>: Compare wrapped iterators, not wrapped pointers.
1127 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1128 unittests/filtered_iterator-selftests.c.
1129 * unittests/filtered_iterator-selftests.c: New file.
1130
a05cf17a
TT
11312019-12-04 Tom Tromey <tromey@adacore.com>
1132
1133 * gdbtypes.c (create_range_type): Inherit endianity
1134 from base type.
1135
d5a22e77
TT
11362019-12-04 Tom Tromey <tromey@adacore.com>
1137
1138 * ada-lang.c (decode_constrained_packed_array)
1139 (ada_value_assign, value_assign_to_component): Update.
1140 * dwarf2loc.c (rw_pieced_value, access_memory)
1141 (dwarf2_compile_expr_to_ax): Update.
1142 * dwarf2read.c (dwarf2_add_field): Update.
1143 * eval.c (evaluate_subexp_standard): Update.
1144 * gdbarch.c, gdbarch.h: Rebuild.
1145 * gdbarch.sh (bits_big_endian): Remove.
1146 * gdbtypes.h (union field_location): Update comment.
1147 * target-descriptions.c (make_gdb_type): Update.
1148 * valarith.c (value_bit_index): Update.
1149 * value.c (struct value) <bitpos>: Update comment.
1150 (unpack_bits_as_long, modify_field): Update.
1151 * value.h (value_bitpos): Update comment.
1152
7ab4a236
TT
11532019-12-04 Tom Tromey <tromey@adacore.com>
1154
1155 * gdbtypes.c (type_byte_order): Move earlier. Assert for unknown
1156 endian-ness.
1157
103a685e
TT
11582019-12-04 Tom Tromey <tromey@adacore.com>
1159
1160 * dwarf2read.c (dwarf2_init_float_type)
1161 (dwarf2_init_complex_target_type): Add byte_order parameter.
1162 (read_base_type): Compute byte order earlier.
1163 * gdbtypes.c (init_float_type): Add byte_order parameter.
1164 * gdbtypes.h (init_float_type): Add byte_order parameter.
1165
7a9e9f9f
TT
11662019-12-04 Tom Tromey <tromey@adacore.com>
1167
1168 * unittests/tui-selftests.c: Conditionally include tui-winsource.h.
1169
feee869b
TT
11702019-12-04 Tom Tromey <tromey@adacore.com>
1171
1172 * dwarf2read.c (process_structure_scope): Initialize
1173 "discr_offset".
1174
c2512106
AB
11752019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
1176
1177 * mi/mi-symbol-cmds.c (mi_symbol_info): Take extra parameter, and
1178 add it into the search spec.
1179 (parse_max_results_option): New function.
1180 (mi_info_functions_or_variables): Parse -max-results flag and pass
1181 it to mi_symbol_info.
1182 (mi_cmd_symbol_info_modules): Likewise.
1183 (mi_cmd_symbol_info_types): Likewise.
1184 * symtab.c (global_symbol_searcher::add_matching_symbols): Change
1185 return type to bool, change result container into a set, and don't
1186 add new results if we have enough already.
1187 (global_symbol_searcher::add_matching_msymbols): Change return
1188 type to bool, and don't add new results if we have enough already.
1189 (sort_search_symbols_remove_dups): Delete.
1190 (global_symbol_searcher::search): Early exit from search loop when
1191 we have enough results. Use a std::set to collect the results
1192 from calling add_matching_symbols.
1193 * symtab.h (global_symbol_searcher) <set_max_seach_results>: New
1194 member function.
1195 (global_symbol_searcher) <m_max_search_results>: New member
1196 variable.
1197 (global_symbol_searcher) <add_matching_symbols>: Update header
1198 comment and change return type to bool.
1199 (global_symbol_searcher) <add_matching_msymbols>: Update header
1200 comment and change return type to bool.
1201
f97a63c5
AB
12022019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
1203
1204 * symtab.c (symbol_search::compare_search_syms): Update header
1205 comment.
1206 (global_symbol_searcher::is_suitable_msymbol): New function.
1207 (global_symbol_searcher::expand_symtabs): New function.
1208 (global_symbol_searcher::add_matching_symbols): New function.
1209 (global_symbol_searcher::add_matching_msymbols): New function.
1210 (global_symbol_searcher::search): Move most of the content
1211 into the new functions above, and call them as needed.
1212 * symtab.h (global_symbol_searcher) <expand_symtabs>: New member
1213 function.
1214 (global_symbol_searcher) <add_matching_symbols>: New member
1215 function.
1216 (global_symbol_searcher) <add_matching_msymbols>: New member
1217 function.
1218 (global_symbol_searcher) <is_suitable_msymbol>: New member
1219 function.
1220
293b38d6
AB
12212019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
1222
1223 * mi/mi-cmds.c (mi_cmds): Add -symbol-info-module-functions and
1224 -symbol-info-module-variables entries.
1225 * mi/mi-cmds.h (mi_cmd_symbol_info_module_functions): Declare.
1226 (mi_cmd_symbol_info_module_variables): Declare.
1227 * mi/mi-symbol-cmds.c
1228 (module_symbol_search_iterator): New typedef.
1229 (output_module_symbols_in_single_module_and_file): New function.
1230 (output_module_symbols_in_single_module): New function.
1231 (mi_info_module_functions_or_variables): New function.
1232 (mi_cmd_symbol_info_module_functions): New function.
1233 (mi_cmd_symbol_info_module_variables): New function.
1234 * NEWS: Mention new MI command.
1235
4cbd39b2
CB
12362019-12-03 Christian Biesinger <cbiesinger@google.com>
1237
1238 * bcache.c (hash): Remove.
1239 (hash_continue): Remove.
1240 * bcache.h (hash): Remove.
1241 (hash_continue): Remove.
1242 (struct bcache) <ctor>: Update.
1243 * psymtab.c (psymbol_hash): Update.
1244 * stabsread.c (hashname): Update.
1245 * utils.h (fast_hash): Add an argument for a start value,
1246 defaulting to zero.
1247
82f910ea
PW
12482019-12-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1249 * symtab.c (symbol_cache_clear_slot): Move close to cleared type.
1250 (destroy_block_symbol_cache): New function.
1251 (symbol_cache:~symbol_cache) Call destroy_block_symbol_cache.
1252 (resize_symbol_cache): Likewise.
1253
de2396d0
TT
12542019-12-02 Tom Tromey <tom@tromey.com>
1255
1256 * unittests/tui-selftests.c (run_tests): Make conditional.
1257 (_initialize_tui_selftest): Make conditional.
1258
638d85bc
CB
12592019-12-02 Christian Biesinger <cbiesinger@google.com>
1260
1261 * aix-thread.c (debug_aix_thread): Change type to bool.
1262
7532a164
LM
12632019-12-02 Luis Machado <luis.machado@linaro.org>
1264
1265 * infrun.c (follow_fork_inferior): Remove outdated FIXME comment.
1266
216a7e6b
AB
12672019-12-01 Andrew Burgess <andrew.burgess@embecosm.com>
1268
1269 * dwarf2read.c (read_tag_string_type): Read the fields required to
1270 make a dynamic string, and possibly create a dynamic range for the
1271 string.
1272 (attr_to_dynamic_prop): Setup is_reference based on the type of
1273 attribute being processed.
1274 * gdbtypes.c (is_dynamic_type_internal): Handle TYPE_CODE_STRING.
1275 (resolve_dynamic_array): Rename to...
1276 (resolve_dynamic_array_or_string): ...this, update header comment,
1277 and accept TYPE_CODE_STRING.
1278 (resolve_dynamic_type_internal): Handle TYPE_CODE_STRING.
1279
11a8b164
AB
12802019-12-01 Andrew Burgess <andrew.burgess@embecosm.com>
1281
1282 * dwarf2read.c (dwarf2_per_cu_int_type): New function, takes most
1283 of its implementation from...
1284 (dwarf2_per_cu_addr_sized_int_type): ...here, which now just calls
1285 the new function.
1286
5bbd8269
AB
12872019-12-01 Andrew Burgess <andrew.burgess@embecosm.com>
1288
1289 * dwarf2read.c (read_subrange_type): Read bit and byte stride and
1290 create a range with stride where appropriate.
1291 * f-valprint.c: Include 'gdbarch.h'.
1292 (f77_print_array_1): Take the stride into account when walking the
1293 array. Also convert the stride into addressable units.
1294 * gdbtypes.c (create_range_type): Initialise the stride to
1295 constant zero.
1296 (create_range_type_with_stride): New function, initialise the
1297 range as normal, and then setup the stride.
1298 (has_static_range): Include the stride here. Also change the
1299 return type to bool.
1300 (create_array_type_with_stride): Consider the range stride if the
1301 array isn't given its own stride.
1302 (resolve_dynamic_range): Resolve the stride if needed.
1303 * gdbtypes.h (struct range_bounds) <stride>: New member variable.
1304 (struct range_bounds) <flag_is_byte_stride>: New member variable.
1305 (TYPE_BIT_STRIDE): Define.
1306 (TYPE_ARRAY_BIT_STRIDE): Define.
1307 (create_range_type_with_stride): Declare.
1308 * valarith.c (value_subscripted_rvalue): Take range stride into
1309 account when walking the array.
1310
82e3b564
TT
13112019-12-01 Tom Tromey <tom@tromey.com>
1312
1313 * tui/tui-win.c (tui_all_windows_info): Treat inactive TUI
1314 specially.
1315
517d261d
TT
13162019-12-01 Tom Tromey <tom@tromey.com>
1317
1318 * tui/tui-winsource.c (tui_copy_source_line): Don't advance past
1319 \0.
1320 * unittests/tui-selftests.c: New file.
1321 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add tui-selftests.c.
1322
484c9b64
TT
13232019-12-01 Tom Tromey <tom@tromey.com>
1324
1325 * tui/tui.c (tui_enable): Call tui_update_variables earlier.
1326
a2a7af0c
TT
13272019-12-01 Tom Tromey <tom@tromey.com>
1328
1329 * NEWS: Document new settings.
1330 * tui/tui-wingeneral.c (box_win): Apply appropriate border style.
1331 * tui/tui-win.c (_initialize_tui_win): Add border style
1332 observers.
1333 * tui/tui-io.h (tui_apply_style): Declare.
1334 * tui/tui-io.c (tui_apply_style): Rename from apply_style. No
1335 longer static.
1336 (apply_ansi_escape, tui_set_reverse_mode): Update.
1337 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
1338 Add "skip_intensity" parameter.
1339 <changed>: New member.
1340 <do_set_value>: Declare.
1341 (tui_border_style, tui_active_border_style): Declare.
1342 * cli/cli-style.c (tui_border_style, tui_active_border_style): New
1343 globals.
1344 (cli_style_option): Initialize "changed".
1345 (cli_style_option::do_set_value): New function.
1346 (cli_style_option::add_setshow_commands): Add "skip_intensity"
1347 parameter. Update.
1348 (STYLE_ADD_SETSHOW_COMMANDS): Add "SKIP" parameter.
1349 (_initialize_cli_style): Update. Create TUI border style
1350 commands.
1351
d1da6b01
TT
13522019-12-01 Tom Tromey <tom@tromey.com>
1353
1354 * tui/tui-winsource.h (tui_copy_source_line): Add "ndigits"
1355 parameter.
1356 * tui/tui-winsource.c (tui_copy_source_line): Add "ndigits"
1357 parameter.
1358 * tui/tui-win.h (compact_source): Declare.
1359 * tui/tui-win.c (compact_source): New global.
1360 (tui_set_compact_source, tui_show_compact_source): New functions.
1361 (_initialize_tui_win): Add "compact-source" setting.
1362 * tui/tui-source.c (tui_source_window::set_contents): Handle
1363 compact_source setting.
1364 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
1365 * NEWS: Document new setting.
1366
489dbda6
TT
13672019-11-30 Tom Tromey <tom@tromey.com>
1368
1369 * dwarf2read.c (dwarf2_add_field): Include field offset when
1370 computing variant part length.
1371
bf498525
PW
13722019-11-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1373 * NEWS: Mention define-prefix. Tell that command names can now
1374 contain a . character.
1375
be09caf1
PW
13762019-11-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1377
1378 * command.h (valid_cmd_char_p): Declare.
1379 * cli/cli-decode.c (valid_cmd_char_p): New function factorizing
1380 the check of valid command char.
1381 (find_command_name_length, valid_user_defined_cmd_name_p): Use
1382 valid_cmd_char_p.
1383 * cli/cli-script.c (validate_comname): Likewise.
1384 * completer.c (gdb_completer_command_word_break_characters):
1385 Do not remove . from the word break char, update comments.
1386 (complete_line_internal_1): Use valid_cmd_char_p.
1387 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
1388 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
1389
c6ac7fc9
PW
13902019-11-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1391
1392 * cli/cli-script.c (do_define_command): Ensure a redefined
1393 prefix command is kept as a prefix command.
1394 (define_prefix_command): New function.
1395 (show_user_1): Report user defined prefixes.
1396 (_initialize_cli_script): Create the new 'define-prefix' command.
1397 Add completers for 'define' and 'document'.
1398 * top.c (execute_command): If command is a user-defined prefix only
1399 command, report the list of commands for this prefix command.
1400
a992a3b0
TBA
14012019-11-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1402
1403 * valops.c (find_oload_champ): Improve debug output.
1404
e9194a1a
TBA
14052019-11-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1406
1407 * valops.c (find_oload_champ): Print part of debug messages
1408 before the badness vector is std::move'd.
1409
53a008a6
TT
14102019-11-28 Tom Tromey <tom@tromey.com>
1411
1412 * value.c (creal_internal_fn): Fix comment.
1413
bab05c83
TT
14142019-11-28 Tom Tromey <tom@tromey.com>
1415
1416 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count,
1417 flag_bound_evaluated>: Now unsigned.
1418
2522f049
TT
14192019-11-28 Tom Tromey <tom@tromey.com>
1420
1421 * guile/guile-internal.h (vlscm_scm_from_value_unsafe): Don't
1422 declare.
1423
38b49e22
MS
14242019-11-28 Mihails Strasuns <mihails.strasuns@intel.com>
1425
1426 * jit.c (jit_bfd_try_read_symtab): Fix printed function name in the
1427 debug output.
1428 * jit.c (jit_unregister_code): Add debug print to match
1429 `jit_register_code`.
1430
35125921
CB
14312019-11-27 Christian Biesinger <cbiesinger@google.com>
1432
1433 * NEWS: Mention the new multithreaded symbol loading.
1434
62e77f56
CB
14352019-11-27 Christian Biesinger <cbiesinger@google.com>
1436
1437 * maint.c (n_worker_threads): Default to 0.
1438 (worker_threads_disabled): New function.
1439 * maint.h (worker_threads_disabled): New function.
1440 * minsyms.c (minimal_symbol_reader::record_full): Call symbol_set_names
1441 here if worker_threads_disabled () is true.
1442 (minimal_symbol_reader::install): Skip all threading if
1443 worker_threads_disabled () is true.
1444
f29d7f6b
CB
14452019-11-27 Christian Biesinger <cbiesinger@google.com>
1446
1447 * minsyms.c (add_minsym_to_hash_table): Use a previously computed
1448 hash code if possible.
1449 (add_minsym_to_demangled_hash_table): Likewise.
1450 (minimal_symbol_reader::install): Compute the hash codes for msymbol
1451 on the background thread.
1452 * symtab.h (struct minimal_symbol) <hash_value, demangled_hash_value>:
1453 Add these fields.
1454
e76b2246
CB
14552019-11-27 Christian Biesinger <cbiesinger@google.com>
1456
1457 * minsyms.c (minimal_symbol_reader::install): Also compute the hash
1458 of the mangled name on the background thread.
1459 * symtab.c (symbol_set_names): Allow passing in the hash of the
1460 linkage_name.
1461 * symtab.h (symbol_set_names): Likewise.
1462
8d9a2568
KB
14632019-11-27 Kevin Buettner <kevinb@redhat.com>
1464
1465 * dwarf2read.c (inherit_abstract_dies): Ensure that delayed
1466 physnames are computed for inherited DIEs.
1467
fad03f6e
TT
14682019-11-27 Tom Tromey <tromey@adacore.com>
1469
1470 * dwarf2read.h (struct dwarf2_per_objfile): Remove unnecessary
1471 backslashes.
1472 * cp-support.c: Remove unnecessary backslashes.
1473
43678b0a
CB
14742019-11-27 Christian Biesinger <cbiesinger@google.com>
1475
1476 * ada-exp.y (write_ambiguous_var): Replace SYMBOL_SET_LINKAGE_NAME
1477 with sym->set_linkage_name.
1478 * coffread.c (coff_read_enum_type): Likewise.
1479 * mdebugread.c (parse_symbol): Likewise.
1480 * stabsread.c (patch_block_stabs): Likewise.
1481 (define_symbol): Likewise.
1482 (read_enum_type): Likewise.
1483 (common_block_end): Likewise.
1484 * symtab.h (struct general_symbol_info) <set_linkage_name>: New
1485 function.
1486 (SYMBOL_SET_LINKAGE_NAME): Remove.
1487 * xcoffread.c (process_xcoff_symbol): Replace SYMBOL_SET_LINKAGE_NAME
1488 with sym->set_linkage_name.
1489
db5960b4
AB
14902019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
1491
1492 * mi/mi-cmds.c (mi_cmds): Add 'symbol-info-modules' entry.
1493 * mi/mi-cmds.h (mi_cmd_symbol_info_modules): Declare.
1494 * mi/mi-symbol-cmds.c (mi_cmd_symbol_info_modules): New function.
1495 * NEWS: Mention new MI command.
1496
7dc42066
AB
14972019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
1498
1499 * mi/mi-cmds.c (mi_cmds): Add '-symbol-info-functions',
1500 '-symbol-info-types', and '-symbol-info-variables'.
1501 * mi/mi-cmds.h (mi_cmd_symbol_info_functions): Declare.
1502 (mi_cmd_symbol_info_types): Declare.
1503 (mi_cmd_symbol_info_variables): Declare.
1504 * mi/mi-symbol-cmds.c: Add 'source.h' and 'mi-getopt.h' includes.
1505 (output_debug_symbol): New function.
1506 (output_nondebug_symbol): New function.
1507 (mi_symbol_info): New function.
1508 (mi_info_functions_or_variables): New function.
1509 (mi_cmd_symbol_info_functions): New function.
1510 (mi_cmd_symbol_info_types): New function.
1511 (mi_cmd_symbol_info_variables): New function.
1512 * NEWS: Mention new commands.
1513
5f512a7d
AB
15142019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
1515
1516 * symtab.c (symbol_to_info_string): New function, most content
1517 moved from print_symbol_info, but updated to return a std::string.
1518 (print_symbol_info): Update to use symbol_to_info_string and print
1519 returned string.
1520 * symtab.h (symbol_to_info_string): Declare new function.
1521
470c0b1c
AB
15222019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
1523
1524 * python/python.c (gdbpy_rbreak): Convert to using
1525 global_symbol_searcher.
1526 * symtab.c (file_matches): Convert return type to bool, change
1527 file list to std::vector, update header comment.
1528 (search_symbols): Rename to...
1529 (global_symbol_searcher::search): ...this and update now its
1530 a member function of global_symbol_searcher. Take account of the
1531 changes to file_matches.
1532 (symtab_symbol_info): Convert to using global_symbol_searcher.
1533 (rbreak_command): Likewise.
1534 (search_module_symbols): Likewise.
1535 * symtab.h (enum symbol_search): Update comment.
1536 (search_symbols): Remove declaration.
1537 (class global_symbol_searcher): New class.
1538
57357d9d
TT
15392019-11-26 Tom Tromey <tromey@adacore.com>
1540
1541 * cp-support.c (_initialize_cp_support): Conditionally initialize
1542 gdb_demangle_attempt_core_dump.
1543
3ea16160
TT
15442019-11-26 Tom Tromey <tom@tromey.com>
1545
1546 * python/py-function.c (fnpy_init): Update.
1547 * value.h (add_internal_function): Adjust declaration.
1548 * value.c (function_destroyer): Remove.
1549 (do_add_internal_function): Don't set destroyer or copy name.
1550 (add_internal_function): Take unique_xmalloc_ptr<char> for name.
1551 Set name_allocated.
1552 * python/py-cmd.c (cmdpy_destroyer): Don't free "name".
1553 (cmdpy_init): Set name_allocated.
1554 * cli/cli-decode.h (struct cmd_list_element) <name_allocated>: New
1555 member.
1556 (~cmd_list_element): Free "name" if needed.
1557
1a6d41c6
TT
15582019-11-26 Tom Tromey <tom@tromey.com>
1559
1560 * value.h (add_internal_function): Add new overload. Move
1561 documentation from value.h.
1562 * value.c (do_add_internal_function): New function.
1563 (add_internal_function): Use it. Add new overload.
1564 (function_destroyer): Don't free doc.
1565 * python/py-function.c (fnpy_init): Update.
1566
8318f3c3
TT
15672019-11-26 Tom Tromey <tom@tromey.com>
1568
1569 * python/py-cmd.c (cmdpy_destroyer): Don't free "doc".
1570 (cmdpy_init): Set "doc_allocated".
1571
4da8c3a8
TT
15722019-11-26 Tom Tromey <tom@tromey.com>
1573
1574 * gdbsupport/thread-pool.c (thread_pool::set_thread_count): Set
1575 name of worker thread.
1576 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for
1577 pthread_setname_np.
1578 * configure, config.in: Rebuild.
1579
971db5e2
TT
15802019-11-26 Tom Tromey <tom@tromey.com>
1581
1582 * python/python.c (class gdbpy_gil): New.
1583 (struct gdbpy_event): Add constructor, destructor, operator().
1584 (gdbpy_post_event): Use run_on_main_thread.
1585 (gdbpy_initialize_events): Remove.
1586 (do_start_initialization): Update.
1587
22138db6
TT
15882019-11-26 Tom Tromey <tom@tromey.com>
1589
1590 * NEWS: Add entry.
1591 * maint.c (_initialize_maint_cmds): Add "worker-threads" maint
1592 commands. Call update_thread_pool_size.
1593 (update_thread_pool_size, maintenance_set_worker_threads): New
1594 functions.
1595 (n_worker_threads): New global.
1596
d55c9a68
TT
15972019-11-26 Christian Biesinger <cbiesinger@google.com>
1598 Tom Tromey <tom@tromey.com>
1599
1600 * minsyms.c (minimal_symbol_reader::install): Use
1601 parallel_for_each.
1602 * gdbsupport/parallel-for.h: New file.
1603 * Makefile.in (HFILES_NO_SRCDIR): Add gdbsupport/parallel-for.h.
1604
a0b57563
CB
16052019-11-26 Christian Biesinger <cbiesinger@google.com>
1606 Tom Tromey <tom@tromey.com>
1607
1608 * gdbsupport/thread-pool.h: New file.
1609 * gdbsupport/thread-pool.c: New file.
1610 * Makefile.in (COMMON_SFILES): Add thread-pool.c.
1611 (HFILES_NO_SRCDIR): Add thread-pool.h.
1612
3b3978bc
TT
16132019-11-26 Tom Tromey <tom@tromey.com>
1614
1615 * event-top.h (thread_local_segv_handler): Declare.
1616 * event-top.c (thread_local_segv_handler): New global.
1617 (install_handle_sigsegv, handle_sigsegv): New functions.
1618 (async_init_signals): Install SIGSEGV handler.
1619 * cp-support.c (gdb_demangle_jmp_buf): Change type. Now
1620 thread-local.
1621 (report_failed_demangle): New function.
1622 (gdb_demangle): Make core_dump_allowed atomic. Remove signal
1623 handler-setting code, instead use segv_handler. Run warning code
1624 on main thread.
1625
9411c49e
TT
16262019-11-26 Tom Tromey <tom@tromey.com>
1627
1628 * run-on-main-thread.c: New file.
1629 * run-on-main-thread.h: New file.
1630 * unittests/main-thread-selftests.c: New file.
1631 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1632 main-thread-selftests.c.
1633 (HFILES_NO_SRCDIR): Add run-on-main-thread.h.
1634 (COMMON_SFILES): Add run-on-main-thread.c.
1635
c3efb965
TT
16362019-11-26 Tom Tromey <tom@tromey.com>
1637
1638 * main.c (setup_alternate_signal_stack): Remove.
1639 (captured_main_1): Use gdb::alternate_signal_stack.
1640 * gdbsupport/alt-stack.h: New file.
1641
21987b9c
TT
16422019-11-26 Tom Tromey <tom@tromey.com>
1643
1644 * gdbsupport/signals-state-save-restore.c (original_signal_mask):
1645 Remove comment.
1646 (save_original_signals_state, restore_original_signals_state): Use
1647 gdb_sigmask.
1648 * linux-nat.c (block_child_signals, restore_child_signals_mask)
1649 (_initialize_linux_nat): Use gdb_sigmask.
1650 * guile/guile.c (_initialize_guile): Use block_signals.
1651 * Makefile.in (HFILES_NO_SRCDIR): Add gdb-sigmask.h.
1652 * gdbsupport/gdb-sigmask.h: New file.
1653 * event-top.c (async_sigtstp_handler): Use gdb_sigmask.
1654 * cp-support.c (gdb_demangle): Use gdb_sigmask.
1655 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for
1656 pthread_sigmask.
1657 * configure, config.in: Rebuild.
1658 * gdbsupport/block-signals.h: New file.
1659
5e030278
TT
16602019-11-26 Tom Tromey <tom@tromey.com>
1661
1662 * acinclude.m4: Include ax_pthread.m4.
1663 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
1664 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
1665 (CLIBS): Use PTHREAD_LIBS.
1666 (aclocal_m4_deps): Add ax_pthread.m4.
1667 * config.in, configure: Rebuild.
1668 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for std::thread.
1669
5a79c107
TT
16702019-11-26 Tom Tromey <tom@tromey.com>
1671
1672 * symtab.h (struct minimal_symbol) <name_set>: New member.
1673 * minsyms.c (minimal_symbol_reader::record_full): Copy name.
1674 Don't call symbol_set_names.
1675 (minimal_symbol_reader::install): Call symbol_set_names.
1676
aa369509
PW
16772019-11-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1678
1679 * python/python.c (gdbpy_enter::~gdbpy_enter): Release GIL after
1680 restore_active_ext_lang, as GIL is needed for (indirectly)
1681 called PyOS_InterruptOccurred.
1682
cadc9cb8
SM
16832019-11-26 Simon Marchi <simon.marchi@efficios.com>
1684
1685 * sparc-nat.c (sparc_xfer_wcookie): Sync declaration with
1686 definition.
1687
d04afd58
SM
16882019-11-26 Simon Marchi <simon.marchi@efficios.com>
1689
1690 * remote-sim.c (simulator_command): Make static, remove
1691 declaration.
1692
dd694d77
SM
16932019-11-26 Simon Marchi <simon.marchi@efficios.com>
1694
1695 * unittests/array-view-selftests.c (check_ptr_size_ctor2): Make
1696 static.
1697 * unittests/basic_string_view/capacity/1.cc (test01): Likewise.
1698 * unittests/basic_string_view/cons/char/1.cc (test01): Likewise.
1699 (main): Likewise.
1700 * unittests/basic_string_view/cons/char/2.cc (test03): Likewise.
1701 (main): Likewise.
1702 * unittests/basic_string_view/cons/char/3.cc (test05): Likewise.
1703 (main): Likewise.
1704 * unittests/basic_string_view/element_access/char/1.cc (test01):
1705 Likewise.
1706 (main): Likewise.
1707 * unittests/basic_string_view/element_access/char/empty.cc (main):
1708 Likewise.
1709 * unittests/basic_string_view/element_access/char/front_back.cc
1710 (test01): Likewise.
1711 (main): Likewise.
1712 * unittests/basic_string_view/inserters/char/2.cc (test05):
1713 Likewise.
1714 (main): Likewise.
1715 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc
1716 (test01): Likewise.
1717 (main): Likewise.
1718 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc
1719 (test01): Likewise.
1720 (main): Likewise.
1721 * unittests/basic_string_view/modifiers/swap/char/1.cc (test01):
1722 Likewise.
1723 * unittests/basic_string_view/operations/compare/char/1.cc
1724 (test01): Likewise.
1725 (main): Likewise.
1726 * unittests/basic_string_view/operations/compare/char/13650.cc
1727 (test01): Likewise.
1728 * unittests/basic_string_view/operations/copy/char/1.cc (test01):
1729 Likewise.
1730 (main): Likewise.
1731 * unittests/basic_string_view/operations/data/char/1.cc (test01):
1732 Likewise.
1733 (main): Likewise.
1734 * unittests/basic_string_view/operations/find/char/1.cc (test01):
1735 Likewise.
1736 (main): Likewise.
1737 * unittests/basic_string_view/operations/find/char/2.cc (test02):
1738 Likewise.
1739 (main): Likewise.
1740 * unittests/basic_string_view/operations/find/char/3.cc (test03):
1741 Likewise.
1742 (main): Likewise.
1743 * unittests/basic_string_view/operations/find/char/4.cc (main):
1744 Likewise.
1745 * unittests/basic_string_view/operations/rfind/char/1.cc (test01):
1746 Likewise.
1747 (main): Likewise.
1748 * unittests/basic_string_view/operations/rfind/char/2.cc (test02):
1749 Likewise.
1750 (main): Likewise.
1751 * unittests/basic_string_view/operations/rfind/char/3.cc (test03):
1752 Likewise.
1753 (main): Likewise.
1754 * unittests/basic_string_view/operations/substr/char/1.cc
1755 (test01): Likewise.
1756 (main): Likewise.
1757 * unittests/basic_string_view/operators/char/2.cc (main):
1758 Likewise.
1759 * unittests/optional/assignment/1.cc (test): Likewise.
1760 * unittests/optional/assignment/2.cc (test): Likewise.
1761 * unittests/optional/assignment/3.cc (test): Likewise.
1762 * unittests/optional/assignment/4.cc (test): Likewise.
1763 * unittests/optional/assignment/5.cc (test): Likewise.
1764 * unittests/optional/assignment/6.cc (test): Likewise.
1765 * unittests/optional/assignment/7.cc (test): Likewise.
1766 * unittests/optional/cons/copy.cc (test): Likewise.
1767 * unittests/optional/cons/default.cc (test): Likewise.
1768 * unittests/optional/cons/move.cc (test): Likewise.
1769 * unittests/optional/cons/value.cc (test): Likewise.
1770 * unittests/optional/in_place.cc (test): Likewise.
1771 * unittests/optional/observers/1.cc (test): Likewise.
1772 * unittests/optional/observers/2.cc (test): Likewise.
1773
3b5c1d49
SM
17742019-11-26 Simon Marchi <simon.marchi@efficios.com>
1775
1776 * tui-win.h (tui_set_var_cmd): Remove.
1777 * tui-win.c (tui_set_var_cmd): Make static.
1778
adce99fe
SM
17792019-11-26 Simon Marchi <simon.marchi@efficios.com>
1780
1781 * breakpoint.h (hbreak_command_wrapper, thbreak_command_wrapper,
1782 rbreak_command_wrapper): Remove.
1783 * symtab.c (rbreak_command_wrapper): Remove.
1784
fe3adccf
SM
17852019-11-26 Simon Marchi <simon.marchi@efficios.com>
1786
1787 * inferior.h (info_terminal_command): Remove declaration.
1788 * inflow.c (info_terminal_command): Make static.
1789
b926335f
SM
17902019-11-26 Simon Marchi <simon.marchi@efficios.com>
1791
1792 * inferior.c (exit_inferior_silent): Remove.
1793
b62f6f54
SM
17942019-11-26 Simon Marchi <simon.marchi@efficios.com>
1795
1796 * dictionary.c (dict_empty, mdict_empty): Remove.
1797 * dictionary.c (mdict_empty): Remove.
1798
cb8c24b6
SM
17992019-11-26 Simon Marchi <simon.marchi@efficios.com>
1800
1801 * arc-tdep.c (arc_insn_get_memory_base_reg): Make static.
1802 (arc_insn_get_memory_offset): Likewise.
1803 (arc_insn_dump): Likewise.
1804 * cp-support.c (test_cp_symbol_name_matches): Likewise.
1805 * csky-linux-tdep.c (csky_supply_fregset): Likewise.
1806 * dictionary.c (dict_iterator_next): Likewise.
1807 (dict_iter_match_first): Likewise.
1808 (dict_iter_match_next): Likewise.
1809 * f-lang.c (evaluate_subexp_f): Likewise.
1810 * hppa-tdep.c (hppa_read_pc): Likewise.
1811 * i386-tdep.c (i386_floatformat_for_type): Likewise.
1812 * parse.c (write_exp_elt_msym): Likewise.
1813 * ppc-linux-tdep.c (ppc_floatformat_for_type): Likewise.
1814 * remote.c (remote_packet_size): Likewise.
1815 (remote_notif_stop_parse): Likewise.
1816 * rs6000-aix-tdep.c (aix_sighandle_frame_sniffer): Likewise.
1817 * s12z-tdep.c (s12z_disassemble_info): Likewise.
1818 * source.c (prepare_path_for_appending): Likewise.
1819 * sparc64-linux-tdep.c
1820 (sparc64_linux_handle_segmentation_fault); Likewise.
1821 * stack.c (frame_selection_by_function_completer): Likewise.
1822
781597ff
SM
18232019-11-26 Simon Marchi <simon.marchi@efficios.com>
1824
1825 * completer.c (set_gdb_completion_word_break_characters):
1826 Remove.
1827
23baa4cc
SM
18282019-11-26 Simon Marchi <simon.marchi@efficios.com>
1829
1830 * dwarf-index-write.c: Include dwarf-index-write.h.
1831 * mi/mi-interp.c: Include mi/mi-interp.h.
1832
23767560
SM
18332019-11-26 Simon Marchi <simon.marchi@efficios.com>
1834
1835 * aarch32-tdep.c: Include aarch32-tdep.h.
1836 * aarch32-tdep.h: Forward-declare struct target_desc.
1837
6d91ce9a
CB
18382019-11-26 Christian Biesinger <cbiesinger@google.com>
1839
1840 * linux-nat.c (detach_one_lwp): Call safe_strerror instead of
1841 strerror.
1842 * nto-procfs.c (nto_procfs_target::create_inferior): Likewise.
1843 * windows-nat.c (windows_nat_target::create_inferior): Likewise.
1844
3cf2f237
TV
18452019-11-25 Tom de Vries <tdevries@suse.de>
1846
1847 * contrib/words.sh: Add -c option.
1848
5b89c67a
CB
18492019-11-25 Christian Biesinger <cbiesinger@google.com>
1850
1851 * solib.c (solib_find_1): Change int to bool.
1852 (exec_file_find): Change int to bool.
1853 (solib_find): Change int to bool.
1854 (solib_read_symbols): Change int to bool.
1855 (solib_used): Change int to bool.
1856 (solib_add): Change int to bool.
1857 (info_sharedlibrary_command): Change int to bool.
1858 (solib_contains_address_p): Change int to bool.
1859 (solib_keep_data_in_core): Change int to bool.
1860 (in_solib_dynsym_resolve_code): Change int to bool.
1861 (reload_shared_libraries_1): Change int to bool.
1862 (gdb_sysroot_changed): Change int to bool.
1863 * solib.h (solib_read_symbols): Change int to bool.
1864 (solib_contains_address_p): Change int to bool.
1865 (solib_keep_data_in_core): Change int to bool.
1866 (in_solib_dynsym_resolve_code): Change int to bool.
1867 (libpthread_name_p): Change int to bool.
1868
6cc8564b
LM
18692019-11-25 Luis Machado <luis.machado@linaro.org>
1870
1871 * NEWS (New Commands): Mention "set debug remote-packet-max-chars".
1872 * remote.c (REMOTE_DEBUG_MAX_CHAR): Remove.
1873 (remote_packet_max_chars): New static global.
1874 (show_remote_packet_max_chars): New function.
1875 (remote_target::putpkt_binary): Adjust to use new
1876 remote_packet_max_chars option.
1877 (remote_target::getpkt_or_notif_sane_1): Likewise.
1878 (_initialize_remote): Register new remote-packet-max-chars option.
1879
a7cdaa91
SM
18802019-11-24 Simon Marchi <simon.marchi@efficios.com>
1881
1882 * m68k-linux-nat.c: Include gdbarch.h.
1883
26abc753
TT
18842019-11-24 Tom Tromey <tom@tromey.com>
1885
1886 * symfile.c (read_symbols): Update.
1887 * psymtab.c (require_partial_symbols): Change type of "verbose" to
1888 bool.
1889 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
1890 (psym_lookup_symbol, psym_find_last_source_symtab)
1891 (psym_forget_cached_source_info, psym_print_stats)
1892 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
1893 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
1894 (psym_map_matching_symbols, psym_expand_symtabs_matching)
1895 (psym_find_compunit_symtab_by_address)
1896 (maintenance_print_psymbols, maintenance_info_psymtabs)
1897 (maintenance_check_psymtabs): Update.
1898 * psymtab.h (require_partial_symbols): Change type of "verbose" to
1899 bool.
1900
012fc909
TT
19012019-11-22 Tom Tromey <tom@tromey.com>
1902
1903 * observable.h: Update comments.
1904
c83d8d32
TT
19052019-11-22 Tom Tromey <tromey@adacore.com>
1906
1907 * ada-tasks.c (ada_task_is_alive): Make parameter const.
1908 (print_ada_task_info): Don't try to fetch thread id if task is not
1909 alive.
1910
987012b8
CB
19112019-11-22 Christian Biesinger <cbiesinger@google.com>
1912
1913 * ada-exp.y: Update.
1914 * ada-lang.c (sort_choices): Update.
1915 (ada_print_symbol_signature): Update.
1916 (resolve_subexp): Update.
1917 (ada_parse_renaming): Update.
1918 (ada_read_renaming_var_value): Update.
1919 (lesseq_defined_than): Update.
1920 (remove_extra_symbols): Update.
1921 (remove_irrelevant_renamings): Update.
1922 (ada_add_block_symbols): Update.
1923 (ada_collect_symbol_completion_matches): Update.
1924 (ada_is_renaming_symbol): Update.
1925 (aggregate_assign_from_choices): Update.
1926 (ada_evaluate_subexp): Update.
1927 (ada_has_this_exception_support): Update.
1928 (ada_is_non_standard_exception_sym): Update.
1929 (ada_add_exceptions_from_frame): Update.
1930 (ada_add_global_exceptions): Update.
1931 (ada_print_subexp): Update.
1932 * ax-gdb.c (gen_var_ref): Update.
1933 (gen_maybe_namespace_elt): Update.
1934 (gen_expr_for_cast): Update.
1935 (gen_expr): Update.
1936 * block.h: Update.
1937 * blockframe.c (find_pc_partial_function): Update.
1938 * breakpoint.c (print_breakpoint_location): Update.
1939 (update_static_tracepoint): Update.
1940 * btrace.c (ftrace_print_function_name): Update.
1941 (ftrace_function_switched): Update.
1942 * buildsym.c (find_symbol_in_list): Update.
1943 * c-exp.y: Update.
1944 * c-typeprint.c (c_print_typedef): Update.
1945 (c_type_print_template_args): Update.
1946 * cli/cli-cmds.c (edit_command): Update.
1947 (list_command): Update.
1948 (print_sal_location): Update.
1949 * coffread.c (patch_opaque_types): Update.
1950 (process_coff_symbol): Update.
1951 (coff_read_enum_type): Update.
1952 * compile/compile-c-symbols.c (c_symbol_substitution_name): Update.
1953 (convert_one_symbol): Update.
1954 (hash_symname): Update.
1955 (eq_symname): Update.
1956 * compile/compile-cplus-symbols.c (convert_one_symbol): Update.
1957 * compile/compile-cplus-types.c (debug_print_scope): Update.
1958 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
1959 * compile/compile-object-load.c (get_out_value_type): Update.
1960 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
1961 (search_symbol_list): Update.
1962 (cp_lookup_symbol_imports_or_template): Update.
1963 * cp-support.c (overload_list_add_symbol): Update.
1964 * ctfread.c (psymtab_to_symtab): Update.
1965 * dbxread.c (cp_set_block_scope): Update.
1966 * dictionary.c (iter_match_first_hashed): Update.
1967 (iter_match_next_hashed): Update.
1968 (insert_symbol_hashed): Update.
1969 (iter_match_next_linear): Update.
1970 * dictionary.h: Update.
1971 * dwarf2loc.c (func_get_frame_base_dwarf_block): Update.
1972 (locexpr_describe_location_piece): Update.
1973 (locexpr_describe_location_1): Update.
1974 (locexpr_generate_c_location): Update.
1975 (loclist_describe_location): Update.
1976 (loclist_generate_c_location): Update.
1977 * dwarf2read.c (dw2_debug_names_lookup_symbol): Update.
1978 (read_func_scope): Update.
1979 (process_enumeration_scope): Update.
1980 (new_symbol): Update.
1981 (dwarf2_const_value): Update.
1982 (dwarf2_symbol_mark_computed): Update.
1983 * eval.c (evaluate_funcall): Update.
1984 (evaluate_subexp_standard): Update.
1985 * expprint.c (print_subexp_standard): Update.
1986 (dump_subexp_body_standard): Update.
1987 * f-valprint.c (info_common_command_for_block): Update.
1988 * findvar.c (get_hosting_frame): Update.
1989 (default_read_var_value): Update.
1990 * go-lang.c (go_symbol_package_name): Update.
1991 * guile/scm-block.c (bkscm_print_block_smob): Update.
1992 * guile/scm-symbol.c (syscm_print_symbol_smob): Update.
1993 (gdbscm_symbol_name): Update.
1994 (gdbscm_symbol_linkage_name): Update.
1995 (gdbscm_symbol_print_name): Update.
1996 * infcall.c (get_function_name): Update.
1997 * infcmd.c (jump_command): Update.
1998 (finish_command): Update.
1999 * infrun.c (insert_exception_resume_breakpoint): Update.
2000 * linespec.c (canonicalize_linespec): Update.
2001 (create_sals_line_offset): Update.
2002 (convert_linespec_to_sals): Update.
2003 (complete_label): Update.
2004 (find_label_symbols_in_block): Update.
2005 * m2-typeprint.c (m2_print_typedef): Update.
2006 * mdebugread.c (mdebug_reg_to_regnum): Update.
2007 (parse_symbol): Update.
2008 (mylookup_symbol): Update.
2009 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
2010 (list_args_or_locals): Update.
2011 * objc-lang.c (compare_selectors): Update.
2012 (info_selectors_command): Update.
2013 (compare_classes): Update.
2014 (info_classes_command): Update.
2015 (find_imps): Update.
2016 * p-typeprint.c (pascal_print_typedef): Update.
2017 * printcmd.c (build_address_symbolic): Update.
2018 (info_address_command): Update.
2019 (print_variable_and_value): Update.
2020 * python/py-framefilter.c (extract_sym): Update.
2021 (py_print_single_arg): Update.
2022 * python/py-symbol.c (sympy_str): Update.
2023 (sympy_get_name): Update.
2024 (sympy_get_linkage_name): Update.
2025 * python/python.c (gdbpy_rbreak): Update.
2026 * record-btrace.c (btrace_get_bfun_name): Update.
2027 (btrace_call_history): Update.
2028 * rust-lang.c (rust_print_typedef): Update.
2029 * solib-frv.c (frv_fdpic_find_canonical_descriptor): Update.
2030 * stabsread.c (stab_reg_to_regnum): Update.
2031 (define_symbol): Update.
2032 (read_enum_type): Update.
2033 (common_block_end): Update.
2034 (cleanup_undefined_types_1): Update.
2035 (scan_file_globals): Update.
2036 * stack.c (print_frame_arg): Update.
2037 (print_frame_args): Update.
2038 (find_frame_funname): Update.
2039 (info_frame_command_core): Update.
2040 (iterate_over_block_locals): Update.
2041 (print_block_frame_labels): Update.
2042 (do_print_variable_and_value): Update.
2043 (iterate_over_block_arg_vars): Update.
2044 (return_command): Update.
2045 * symmisc.c (dump_symtab_1): Update.
2046 (print_symbol): Update.
2047 * symtab.c (eq_symbol_entry): Update.
2048 (symbol_cache_dump): Update.
2049 (lookup_language_this): Update.
2050 (find_pc_sect_line): Update.
2051 (skip_prologue_sal): Update.
2052 (symbol_search::compare_search_syms): Update.
2053 (treg_matches_sym_type_name): Update.
2054 (search_symbols): Update.
2055 (print_symbol_info): Update.
2056 (rbreak_command): Update.
2057 (completion_list_add_symbol): Update.
2058 (find_gnu_ifunc): Update.
2059 (get_symbol_address): Update.
2060 (search_module_symbols): Update.
2061 (info_module_subcommand): Update.
2062 * symtab.h (SYMBOL_NATURAL_NAME): Remove.
2063 (SYMBOL_LINKAGE_NAME): Remove.
2064 (SYMBOL_DEMANGLED_NAME): Remove.
2065 (SYMBOL_PRINT_NAME): Remove.
2066 (SYMBOL_SEARCH_NAME): Remove.
2067 * tracepoint.c (set_traceframe_context): Update.
2068 (validate_actionline): Update.
2069 (collection_list::collect_symbol): Update.
2070 (encode_actions_1): Update.
2071 (info_scope_command): Update.
2072 (print_one_static_tracepoint_marker): Update.
2073 * typeprint.c (typedef_hash_table::add_template_parameters): Update.
2074 * valops.c (address_of_variable): Update.
2075 (find_overload_match): Update.
2076 (find_oload_champ): Update.
2077
c9d95fa3
CB
20782019-11-22 Christian Biesinger <cbiesinger@google.com>
2079
2080 * ada-lang.c (ada_lookup_simple_minsym): Update.
2081 (ada_collect_symbol_completion_matches): Update.
2082 * ada-tasks.c (read_atcb): Update.
2083 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
2084 (amd64_windows_skip_trampoline_code): Update.
2085 * arm-tdep.c (skip_prologue_function): Update.
2086 (arm_skip_stack_protector): Update.
2087 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
2088 (arm_wince_skip_main_prologue): Update.
2089 * ax-gdb.c (gen_expr): Update.
2090 * block.c (call_site_for_pc): Update.
2091 * blockframe.c (find_pc_partial_function): Update.
2092 * breakpoint.c (set_breakpoint_location_function): Update.
2093 * btrace.c (ftrace_print_function_name): Update.
2094 (ftrace_function_switched): Update.
2095 * c-valprint.c (print_unpacked_pointer): Update.
2096 * coffread.c (coff_symfile_read): Update.
2097 * compile/compile-c-symbols.c (convert_symbol_bmsym): Update.
2098 * compile/compile-cplus-symbols.c (convert_symbol_bmsym): Update.
2099 * dwarf-index-write.c (write_psymbols): Update.
2100 * dwarf2loc.c (call_site_to_target_addr): Update.
2101 (func_verify_no_selftailcall): Update.
2102 (tailcall_dump): Update.
2103 (call_site_find_chain_1): Update.
2104 (dwarf_expr_reg_to_entry_parameter): Update.
2105 * elfread.c (elf_gnu_ifunc_record_cache): Update.
2106 * eval.c (evaluate_funcall): Update.
2107 (evaluate_subexp_standard): Update.
2108 (evaluate_subexp_for_sizeof): Update.
2109 * expprint.c (print_subexp_standard): Update.
2110 (dump_subexp_body_standard): Update.
2111 * frame.c (get_prev_frame_always_1): Update.
2112 * frv-tdep.c (frv_skip_main_prologue): Update.
2113 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
2114 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
2115 (gnuv3_get_typename_from_type_info): Update.
2116 (gnuv3_skip_trampoline): Update.
2117 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
2118 * i386-tdep.c (i386_skip_main_prologue): Update.
2119 (i386_pe_skip_trampoline_code): Update.
2120 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
2121 * infcall.c (get_function_name): Update.
2122 * linespec.c (minsym_found): Update.
2123 * linux-fork.c (info_checkpoints_command): Update.
2124 * m32c-tdep.c (m32c_m16c_address_to_pointer): Update.
2125 (m32c_m16c_pointer_to_address): Update.
2126 * maint.c (maintenance_translate_address): Update.
2127 * minsyms.c (add_minsym_to_hash_table): Update.
2128 (add_minsym_to_demangled_hash_table): Update.
2129 (lookup_minimal_symbol_mangled): Update.
2130 (lookup_minimal_symbol_demangled): Update.
2131 (lookup_minimal_symbol_linkage): Update.
2132 (lookup_minimal_symbol_text): Update.
2133 (lookup_minimal_symbol_by_pc_name): Update.
2134 (minimal_symbol_is_less_than): Update.
2135 (compact_minimal_symbols): Update.
2136 (build_minimal_symbol_hash_tables): Update.
2137 (find_solib_trampoline_target): Update.
2138 * mips-tdep.c (mips_stub_frame_sniffer): Update.
2139 (mips_skip_pic_trampoline_code): Update.
2140 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
2141 * objc-lang.c (info_selectors_command): Update.
2142 (info_classes_command): Update.
2143 (find_methods): Update.
2144 (find_imps): Update.
2145 * p-valprint.c (pascal_val_print): Update.
2146 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Update.
2147 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
2148 * printcmd.c (build_address_symbolic): Update.
2149 (info_symbol_command): Update.
2150 * psymtab.c (psymbol_name_matches): Update.
2151 (match_partial_symbol): Update.
2152 (lookup_partial_symbol): Update.
2153 (print_partial_symbols): Update.
2154 (sort_pst_symbols): Update.
2155 (maintenance_check_psymtabs): Update.
2156 * python/py-framefilter.c (py_print_frame): Update.
2157 * python/python.c (gdbpy_rbreak): Update.
2158 * record-btrace.c (btrace_get_bfun_name): Update.
2159 (btrace_call_history): Update.
2160 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
2161 (rs6000_skip_trampoline_code): Update.
2162 * sol-thread.c (info_cb): Update.
2163 * stabsread.c (scan_file_globals): Update.
2164 * stack.c (find_frame_funname): Update.
2165 (info_frame_command_core): Update.
2166 * symmisc.c (dump_msymbols): Update.
2167 * symtab.c (symbol_natural_name): Rename to..,
2168 (general_symbol_info::natural_name): ...this.
2169 (symbol_demangled_name): Rename to...
2170 (general_symbol_info::demangled_name): ...this.
2171 (symbol_search_name): Rename to...
2172 (general_symbol_info::search_name): ...this.
2173 (symbol_matches_search_name): Update.
2174 (find_pc_sect_line): Update.
2175 (skip_prologue_sal): Update.
2176 (search_symbols): Update.
2177 (print_msymbol_info): Update.
2178 (rbreak_command): Update.
2179 (completion_list_add_msymbol): Update.
2180 (completion_list_objc_symbol): Update.
2181 (get_msymbol_address): Update.
2182 * symtab.h (struct general_symbol_info): Add member functions
2183 natural_name (), linkage_name (), print_name (), demangled_name (),
2184 and search_name ().
2185 (SYMBOL_NATURAL_NAME): Update.
2186 (symbol_natural_name): Move to a member function on general_symbol_info.
2187 (SYMBOL_DEMANGLED_NAME): Update.
2188 (symbol_demangled_name): Move to a member function on
2189 general_symbol_info.
2190 (SYMBOL_SEARCH_NAME): Update.
2191 (symbol_search_name): Move to a member function on general_symbol_info.
2192 (MSYMBOL_NATURAL_NAME): Remove.
2193 (MSYMBOL_LINKAGE_NAME): Remove.
2194 (MSYMBOL_PRINT_NAME): Remove.
2195 (MSYMBOL_DEMANGLED_NAME): Remove.
2196 (MSYMBOL_SEARCH_NAME): Remove.
2197 * x86-tdep.c (x86_in_indirect_branch_thunk): Update.
2198
f8bab2d6
CB
21992019-11-22 Christian Biesinger <cbiesinger@google.com>
2200
2201 * symtab.c (create_demangled_names_hash): Use per_bfd->
2202 minimal_symbol_count for computing the initial size, if greater
2203 than our default size.
2204
85e7588d
TV
22052019-11-22 Tom de Vries <tdevries@suse.de>
2206
2207 * contrib/words.sh: Improve words extraction.
2208
f6180073
TV
22092019-11-22 Tom de Vries <tdevries@suse.de>
2210
2211 * contrib/words.sh: Combine sed invocations.
2212
f10ffa41
CB
22132019-11-21 Christian Biesinger <cbiesinger@google.com>
2214
2215 * Makefile.in: Update.
2216 * demangle.c: Rename to...
2217 * gdb-demangle.c: ..this.
2218 (is_cplus_marker): Change return type to bool.
2219 (_initialize_demangler): Rename to...
2220 (_initialize_gdb_demangle): ...this.
2221 * gdb-demangle.h (is_cplus_marker): Change return type to bool.
2222 * symtab.h (demangle): Remove declaration; instead include
2223 gdb-demangle.h.
2224
6ba18521
TT
22252019-11-21 Tom Tromey <tromey@adacore.com>
2226
2227 * gdbsupport/format.c (format_pieces): Parse %I64d.
2228 * unittests/format_pieces-selftests.c (test_windows_formats): New
2229 function.
2230 (run_tests): Call it.
2231
34877895
PJ
22322019-11-21 Peeter Joot <peeter.joot@lzlabs.com>
2233
2234 Byte reverse display of variables with DW_END_big, DW_END_little
2235 (DW_AT_endianity) dwarf attributes if different than the native
2236 byte order.
2237 * ada-lang.c (ada_value_binop):
2238 Use type_byte_order instead of gdbarch_byte_order.
2239 * ada-valprint.c (printstr):
2240 (ada_val_print_string):
2241 * ada-lang.c (value_pointer):
2242 (ada_value_binop):
2243 Use type_byte_order instead of gdbarch_byte_order.
2244 * c-lang.c (c_get_string):
2245 Use type_byte_order instead of gdbarch_byte_order.
2246 * c-valprint.c (c_val_print_array):
2247 Use type_byte_order instead of gdbarch_byte_order.
2248 * cp-valprint.c (cp_print_class_member):
2249 Use type_byte_order instead of gdbarch_byte_order.
2250 * dwarf2loc.c (rw_pieced_value):
2251 Use type_byte_order instead of gdbarch_byte_order.
2252 * dwarf2read.c (read_base_type): Handle DW_END_big,
2253 DW_END_little
2254 * f-lang.c (f_get_encoding):
2255 Use type_byte_order instead of gdbarch_byte_order.
2256 * findvar.c (default_read_var_value):
2257 Use type_byte_order instead of gdbarch_byte_order.
2258 * gdbtypes.c (check_types_equal):
2259 Require matching TYPE_ENDIANITY_NOT_DEFAULT if set.
2260 (recursive_dump_type): Print TYPE_ENDIANITY_BIG,
2261 and TYPE_ENDIANITY_LITTLE if set.
2262 (type_byte_order): new function.
2263 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): New macro.
2264 (struct main_type) <flag_endianity_not_default>:
2265 New field.
2266 (type_byte_order): New function.
2267 * infcmd.c (default_print_one_register_info):
2268 Use type_byte_order instead of gdbarch_byte_order.
2269 * p-lang.c (pascal_printstr):
2270 Use type_byte_order instead of gdbarch_byte_order.
2271 * p-valprint.c (pascal_val_print):
2272 Use type_byte_order instead of gdbarch_byte_order.
2273 * printcmd.c (print_scalar_formatted):
2274 Use type_byte_order instead of gdbarch_byte_order.
2275 * solib-darwin.c (darwin_current_sos):
2276 Use type_byte_order instead of gdbarch_byte_order.
2277 * solib-svr4.c (solib_svr4_r_ldsomap):
2278 Use type_byte_order instead of gdbarch_byte_order.
2279 * stap-probe.c (stap_modify_semaphore):
2280 Use type_byte_order instead of gdbarch_byte_order.
2281 * target-float.c (target_float_same_format_p):
2282 Use type_byte_order instead of gdbarch_byte_order.
2283 * valarith.c (scalar_binop):
2284 (value_bit_index):
2285 Use type_byte_order instead of gdbarch_byte_order.
2286 * valops.c (value_cast):
2287 Use type_byte_order instead of gdbarch_byte_order.
2288 * valprint.c (generic_emit_char):
2289 (generic_printstr):
2290 (val_print_string):
2291 Use type_byte_order instead of gdbarch_byte_order.
2292 * value.c (unpack_long):
2293 (unpack_bits_as_long):
2294 (unpack_value_bitfield):
2295 (modify_field):
2296 (pack_long):
2297 (pack_unsigned_long):
2298 Use type_byte_order instead of gdbarch_byte_order.
2299 * findvar.c (unsigned_pointer_to_address):
2300 (signed_pointer_to_address):
2301 (unsigned_address_to_pointer):
2302 (address_to_signed_pointer):
2303 (default_read_var_value):
2304 (default_value_from_register):
2305 Use type_byte_order instead of gdbarch_byte_order.
2306 * gnu-v3-abi.c (gnuv3_make_method_ptr):
2307 Use type_byte_order instead of gdbarch_byte_order.
2308 * riscv-tdep.c (riscv_print_one_register_info):
2309 Use type_byte_order instead of gdbarch_byte_order.
2310
87fb00ea
SM
23112019-11-21 Simon Marchi <simon.marchi@polymtl.ca>
2312
2313 * top.c (current_ui_gdb_stdout_ptr): Spell out by hand.
2314 (current_ui_gdb_stdin_ptr): Likewise.
2315 (current_ui_gdb_stderr_ptr): Likewise.
2316 (current_ui_gdb_stdlog_ptr): Likewise.
2317 (current_ui_current_uiout_ptr): Likewise.
2318 (gen_ret_current_ui_field_ptr): Remove.
2319
65d1cd5f
TV
23202019-11-21 Tom de Vries <tdevries@suse.de>
2321
2322 PR gdb/24956
2323 * cli/cli-script.c (execute_control_command): Only switch to
2324 INTERP_CONSOLE's ui_out when INTERP_MI is active.
2325
9f6ad286
TT
23262019-11-19 Tom Tromey <tom@tromey.com>
2327
2328 * tui/tui-win.c (tui_partial_win_by_name): Move from tui-data.c.
2329 Now static. Change type of "name".
2330 (tui_set_win_height_command): Don't copy "arg".
2331 * tui/tui-data.h (tui_partial_win_by_name): Don't declare.
2332 * tui/tui-data.c (tui_partial_win_by_name): Move to tui-win.c.
2333
435d3d88
AT
23342019-11-19 Ali Tamur <tamur@google.com>
2335
2336 * dwarf2read.c (dw2_get_file_names_reader): Replace "if (attr)" with
2337 "if (attr != nullptr)".
2338 (dwarf2_find_base_address): Likewise.
2339 (dwarf2_build_include_psymtabs): Likewise.
2340 (read_cutu_die_from_dwo): Likewise.
2341 (read_func_scope): Likewise.
2342 (read_call_site_scope): Likewise.
2343 (dwarf2_get_pc_bounds): Likewise.
2344 (dwarf2_record_block_ranges): Likewise.
2345 (dwarf2_add_field): Likewise.
2346 (dwarf2_add_member_fn): Likewise.
2347 (read_structure_type): Likewise.
2348 (read_enumeration_type): Likewise.
2349 (read_array_type): Likewise.
2350 (read_array_order): Likewise.
2351 (read_set_type): Likewise.
2352 (read_common_block): Likewise.
2353 (read_tag_reference_type): Likewise.
2354 (read_tag_string_type): Likewise.
2355 (read_subroutine_type): Likewise.
2356 (read_base_type): Likewise.
2357 (read_subrange_type): Likewise.
2358 (new_symbol): Likewise.
2359 (prepare_one_comp_unit): Likewise.
2360
c9739b6a
TT
23612019-11-19 Tom Tromey <tromey@adacore.com>
2362
2363 * windows-nat.c (windows_nat_target::attach): Include GetLastError
2364 result in error when DebugActiveProcess fails.
2365
494409bb
SDJ
23662019-11-18 Sergio Durigan Junior <sergiodj@redhat.com>
2367 Pedro Alves <palves@redhat.com>
2368
2369 https://bugzilla.redhat.com/show_bug.cgi?id=1765117
2370 * target.c (target_stack::push): Call 'unpush' if there's a
2371 target on top of the stack.
2372
2e953aca
PW
23732019-11-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2374
2375 * python/py-block.c (blpy_dealloc): Call tp_free.
2376 (blpy_block_syms_dealloc): Likewise.
2377 * python/py-finishbreakpoint.c (bpfinishpy_dealloc): Likewise.
2378 * python/py-inferior.c (infpy_dealloc): Likewise.
2379 * python/py-lazy-string.c (stpy_dealloc): Likewise.
2380 * python/py-linetable.c (ltpy_iterator_dealloc): Likewise.
2381 * python/py-symbol.c (sympy_dealloc): Likewise.
2382 * python/py-symtab.c (stpy_dealloc): Likewise.
2383 * python/py-type.c (typy_iterator_dealloc): Likewise.
2384
6edc43ec
CB
23852019-11-18 Christian Biesinger <cbiesinger@google.com>
2386
2387 * symtab.h (struct symbol) <owner>: Initialize explicitly in the
2388 constructor instead of using a class initializer.
2389
cd850b40
CB
23902019-11-15 Christian Biesinger <cbiesinger@google.com>
2391
2392 * Makefile.in: Replace {posix,mingw}-strerror.c with safe-strerror.c.
2393 * configure: Regenerate.
2394 * configure.ac: Don't source common.host.
2395 * gdbsupport/common.host: Remove.
2396 * gdbsupport/mingw-strerror.c: Remove.
2397 * gdbsupport/posix-strerror.c: Rename to...
2398 * gdbsupport/safe-strerror.c: ...this.
2399
53fea9c7
CB
24002019-11-15 Christian Biesinger <cbiesinger@google.com>
2401
2402 * maint.c (scoped_command_stats::print_time): Use localtime_r
2403 instead of localtime (provided through gnulib if necessary).
2404 * nat/linux-osdata.c (time_from_time_t): Use ctime_r instead
2405 of ctime.
2406
f8e27d88
CB
24072019-11-15 Christian Biesinger <cbiesinger@google.com>
2408
2409 * gdbsupport/common-defs.h: Include time.h before pathmax.h to
2410 avoid compile errors.
2411
5abebf3c
CB
24122019-11-15 Christian Biesinger <cbiesinger@google.com>
2413
2414 * config.in: Regenerate.
2415 * configure: Regenerate.
2416 * gdbsupport/common.m4: No longer check for strerror_r.
2417 * gdbsupport/posix-strerror.c (safe_strerror): Always call the
2418 POSIX version of strerror_r, now that gnulib provides it if
2419 necessary.
2420
9a351667
CB
24212019-11-14 Christian Biesinger <cbiesinger@google.com>
2422
2423 * README (`configure' options): Update.
2424
55708e99
TT
24252019-11-14 Tom Tromey <tromey@adacore.com>
2426
2427 * eval.c (evaluate_subexp_standard) <BINOP_ASSIGN>: Do not pass an
2428 expected type for the RHS if the LHS is a convenience variable.
2429
4b09bb2e
SM
24302019-11-14 Simon Marchi <simon.marchi@polymtl.ca>
2431
2432 * unittests/vec-utils-selftests.c (unordered_remove_tests::obj):
2433 Provide explicit default and copy constructor.
2434
bd454f8b
PW
24352019-11-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2436
2437 * python/py-finishbreakpoint.c (gdbpy_breakpoint_created):
2438 only call Py_INCREF (newbp) in the bppy_pending_object case.
2439
d1aa3cf0
TT
24402019-11-13 Tom Tromey <tromey@adacore.com>
2441
2442 PR build/25182:
2443 * psympriv.h (partial_symbol): Remove static assert.
2444 * symtab.h (general_symbol_info, symbol): Remove static assert.
2445
e06f3d6e
AB
24462019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
2447
2448 * gdbsupport/format.c (format_pieces::format_pieces): Support
2449 printf 'z' size modifier.
2450 * gdbsupport/format.h (enum argclass): Add size_t_arg.
2451 * printcmd.c (ui_printf): Handle size_t_arg.
2452 * ui-out.c (ui_out::vmessage): Likewise.
2453 * unittests/format_pieces-selftests.c (test_format_int_sizes): New
2454 function.
2455 (run_tests): Call test_format_int_sizes.
2456
468c0cbb
CB
24572019-11-12 Christian Biesinger <cbiesinger@google.com>
2458
2459 * ada-exp.y (write_ambiguous_var): Update.
2460 * buildsym.c (add_symbol_to_list): Update.
2461 * dwarf2read.c (read_variable): Update.
2462 (new_symbol): Update.
2463 * jit.c (finalize_symtab): Update.
2464 * language.c (language_alloc_type_symbol): Update.
2465 * symtab.c (fixup_symbol_section): Update.
2466 (initialize_objfile_symbol_1): Move code to...
2467 (initialize_objfile_symbol): ...here. Remove now-unnecessary memset.
2468 (allocate_symbol): Update.
2469 (allocate_template_symbol): Update.
2470 (get_symbol_address): Update.
2471 * symtab.h (struct symbol): Inherit from general_symbol_info instead
2472 of having as a field, and add a constructor.
2473 (SYMBOL_VALUE): Update.
2474 (SYMBOL_VALUE_ADDRESS): Update.
2475 (SET_SYMBOL_VALUE_ADDRESS): Update.
2476 (SYMBOL_VALUE_BYTES): Update.
2477 (SYMBOL_VALUE_COMMON_BLOCK): Update.
2478 (SYMBOL_BLOCK_VALUE): Update.
2479 (SYMBOL_VALUE_CHAIN): Update.
2480 (SYMBOL_LANGUAGE): Update.
2481 (SYMBOL_SECTION): Update.
2482 (SYMBOL_OBJ_SECTION): Update.
2483 (SYMBOL_SET_LANGUAGE): Update.
2484 (SYMBOL_SET_LINKAGE_NAME): Update.
2485 (SYMBOL_SET_NAMES): Update.
2486 (SYMBOL_NATURAL_NAME): Update.
2487 (SYMBOL_LINKAGE_NAME): Update.
2488 (SYMBOL_DEMANGLED_NAME): Update.
2489 (SYMBOL_SEARCH_NAME): Update.
2490 (SYMBOL_MATCHES_SEARCH_NAME): Update.
2491 (struct symbol): Update.
2492 (struct template_symbol): Update.
2493 (struct rust_vtable_symbol): Update.
2494 * xcoffread.c (SYMBOL_DUP): Update.
2495
ed2c82c3
TT
24962019-11-12 Tom Tromey <tom@tromey.com>
2497
2498 * tui/tui-layout.c (show_layout): Set current_layout.
2499 (show_source_disasm_command, show_data)
2500 (show_source_or_disasm_and_command): Don't set current_layout.
2501
d9fcefd5
TT
25022019-11-12 Tom Tromey <tom@tromey.com>
2503
2504 * tui/tui-layout.c (_initialize_tui_layout): Move to end.
2505
45e42163
TT
25062019-11-12 Tom Tromey <tom@tromey.com>
2507
2508 * tui/tui-win.c (resize_message): New global.
2509 (show_tui_resize_message): New function.
2510 (tui_async_resize_screen): Print message if requested.
2511 (_initialize_tui_win): Add tui-resize-message setting.
2512 * NEWS: Add entry for new commands.
2513
c86d74cc
TT
25142019-11-11 Tom Tromey <tom@tromey.com>
2515
2516 * tui/tui.c (tui_initialize_readline): Add new bindable readline
2517 functions.
2518
7b7b9424
CB
25192019-11-11 Christian Biesinger <cbiesinger@google.com>
2520
2521 * nat/linux-osdata.c (user_from_uid): Use getpwuid_r.
2522
086baaf1
AB
25232019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
2524
2525 * python/py-symbol.c (gdbpy_lookup_static_symbols): New
2526 function.
2527 * python/python-internal.h (gdbpy_lookup_static_symbols):
2528 Declare new function.
2529 * python/python.c (python_GdbMethods): Add
2530 gdb.lookup_static_symbols method.
2531 * NEWS: Mention gdb.lookup_static_symbols.
2532
09ff83af
AB
25332019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
2534
2535 * python/py-symbol.c (gdbpy_lookup_static_symbol): Lookup in
2536 static block of current object file first. Also fix typo in
2537 header comment.
2538
eb2dd8df
AB
25392019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
2540
2541 * stack.c (set_last_displayed_sal): Delete.
2542 (last_displayed_sal_valid): Delete.
2543 (last_displayed_pspace): Delete.
2544 (last_displayed_addr): Delete.
2545 (last_displayed_symtab): Delete.
2546 (last_displayed_line): Delete.
2547 (class last_displayed_symtab_info_type): New.
2548 (last_displayed_symtab_info): New static global variable.
2549 (print_frame_info): Call methods on last_displayed_symtab_info.
2550 (clear_last_displayed_sal): Update header comment, and make use of
2551 last_displayed_symtab_info.
2552 (last_displayed_sal_is_valid): Likewise.
2553 (get_last_displayed_pspace): Likewise.
2554 (get_last_displayed_addr): Likewise.
2555 (get_last_displayed_symtab): Likewise.
2556 (get_last_displayed_line): Likewise.
2557 (get_last_displayed_sal): Likewise.
2558 * stack.h (clear_last_displayed_sal): Update header comment.
2559 (last_displayed_sal_is_valid): Likewise.
2560 (get_last_displayed_pspace): Likewise.
2561 (get_last_displayed_addr): Likewise.
2562 (get_last_displayed_symtab): Likewise.
2563 (get_last_displayed_line): Likewise.
2564 (get_last_displayed_sal): Likewise.
2565
62137775
AB
25662019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
2567
2568 * stack.c (frame_show_address): Convert return type to bool.
2569 * stack.h (frame_show_address): Likewise, and update header
2570 comment.
2571
cf57ad6d
AB
25722019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
2573
2574 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new file to the list.
2575 * unittests/vec-utils-selftests.c: New file.
2576 * gdbsupport/gdb_vecs.h (unordered_remove): Avoid self move assign.
2577
0b026263
TT
25782019-11-10 Tom Tromey <tom@tromey.com>
2579
2580 * tui/tui-wingeneral.c (tui_unhighlight_win): Use can_box.
2581 (tui_highlight_win): Likewise.
2582 (tui_win_info::check_and_display_highlight_if_needed): Likewise.
2583 * tui/tui-data.h (struct tui_win_info) <can_highlight>: Remove.
2584 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
2585 Don't set can_highlight.
2586
b049ce2d
TT
25872019-11-10 Tom Tromey <tom@tromey.com>
2588
2589 * cli/cli-style.h (class cli_style_option) <cli_style_option>:
2590 Remove unused declaration.
2591
992a7040
TT
25922019-11-08 Tom Tromey <tromey@adacore.com>
2593
2594 * top.c (read_command_file): Update.
2595 (command_line_input): Make return type const.
2596 * python/py-gdb-readline.c: Update.
2597 * linespec.c (decode_line_2): Update.
2598 * defs.h (command_line_input): Make return type const.
2599 * cli/cli-script.c (read_next_line): Make return type const.
2600 * ada-lang.c (get_selections): Update.
2601
ca3a04f6
CB
26022019-11-06 Christian Biesinger <cbiesinger@google.com>
2603
2604 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
2605 * mi/mi-main.c (output_cores): Likewise.
2606 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
2607 (linux_xfer_osdata_modules): Likewise.
2608 * remote.c (register_remote_support_xml): Likewise.
2609 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
2610 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
2611
e0eac551
TT
26122019-11-06 Tom Tromey <tom@tromey.com>
2613
2614 * tui/tui-interp.c: Don't include readline.h.
2615 * tui/tui-hooks.c: Don't include readline.h.
2616 * symmisc.c: Include tilde.h, not readline.h.
2617 * symfile.c: Include tilde.h, not readline.h.
2618 * source.c: Include tilde.h, not readline.h.
2619 * solib.c: Include tilde.h, not readline.h.
2620 * psymtab.c: Include tilde.h, not readline.h.
2621 * exec.c: Include tilde.h, not readline.h.
2622 * corelow.c: Include tilde.h, not readline.h.
2623 * cli/cli-dump.c: Include tilde.h, not readline.h.
2624 * cli/cli-cmds.c: Don't include readline.h.
2625
825165c5
TT
26262019-11-05 Tom Tromey <tom@tromey.com>
2627
2628 * tui/tui-disasm.c (struct tui_asm_line) <addr_size>: New member.
2629 (tui_disassemble): Set addr_size.
2630 (tui_disasm_window::set_contents): Use addr_size.
2631
91ae903f
TT
26322019-11-05 Tom Tromey <tom@tromey.com>
2633
2634 * rust-lang.c (rust_language_defn): Update.
2635 * python/py-value.c (valpy_string): Call c_get_string.
2636 * p-lang.c (pascal_language_defn): Update.
2637 * opencl-lang.c (opencl_language_defn): Update.
2638 * objc-lang.c (objc_language_defn): Update.
2639 * m2-lang.c (m2_language_defn): Update.
2640 * language.c (unknown_language_defn, auto_language_defn): Update.
2641 (default_get_string): Remove.
2642 * guile/scm-value.c (gdbscm_value_to_string): Use c_get_string.
2643 * go-lang.c (go_language_defn): Update.
2644 * f-lang.c (f_language_defn): Update.
2645 * d-lang.c (d_language_defn): Update.
2646 * c-lang.c (c_language_defn, cplus_language_defn)
2647 (asm_language_defn, minimal_language_defn): Update.
2648 * ada-lang.c (ada_language_defn): Update.
2649 * language.h (struct language_defn) <la_get_string>: Remove.
2650 (LA_GET_STRING): Remove.
2651 (default_get_string): Don't declare.
2652
1df2f9ef
TT
26532019-11-05 Tom Tromey <tom@tromey.com>
2654
2655 * tui/tui-source.h (struct tui_source_window): Inline
2656 constructor. Remove destructor.
2657 <style_changed, m_observable>: Move to superclass.
2658 * tui/tui-winsource.h (tui_copy_source_line): Declare.
2659 (struct tui_source_window_base): Move private members to end.
2660 <style_changed, m_observable>: Move from tui_source_window.
2661 * tui/tui-winsource.c (tui_copy_source_line): Move from
2662 tui-source.c. Rename from copy_source_line. Add special handling
2663 for negative line number.
2664 (tui_source_window_base::style_changed): Move from
2665 tui_source_window.
2666 (tui_source_window_base): Register observer.
2667 (~tui_source_window_base): New.
2668 * tui/tui-source.c (copy_source_line): Move to tui-winsource.c;
2669 rename.
2670 (tui_source_window::set_contents): Use tui_copy_source_line.
2671 (tui_source_window::tui_source_window): Move to tui-source.h.
2672 (tui_source_window::~tui_source_window): Remove.
2673 (tui_source_window::style_changed): Move to superclass.
2674 * tui/tui-disasm.c (tui_disassemble): Create string file with
2675 styling, when possible. Add "addr_size" parameter.
2676 (tui_disasm_window::set_contents): Use tui_copy_source_line.
2677 Don't compute maximum size.
2678 (len_without_escapes): New function
2679
5d051055
TT
26802019-11-05 Tom Tromey <tom@tromey.com>
2681
2682 * tui/tui-winsource.h (struct tui_source_element) <line>: Now a
2683 std::string.
2684 * tui/tui-winsource.c (tui_show_source_line): Update.
2685 * tui/tui-source.c (tui_source_window::set_contents): Update.
2686 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
2687
ade7beea
CB
26882019-11-05 Christian Biesinger <cbiesinger@google.com>
2689
2690 * symtab.h (gdb_static_assert): Put && operator at the beginning
2691 of the line instead of the end.
2692
3573abe1
CB
26932019-11-04 Christian Biesinger <cbiesinger@google.com>
2694
2695 * psympriv.h: Add static_asserts for sizeof (general_symbol_info)
2696 and sizeof (symbol).
2697 * symtab.h: Add a static_assert for sizeof (partial_symbol).
2698
dae8b3eb
RO
26992019-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2700
2701 * NEWS (Changes since GDB 8.3): Document Solaris 10 removal.
2702 * configure.host: Mark *-*-solaris2.10* obsolete.
2703 * configure.tgt: Mark Solaris < 11 obsolete.
2704 * MAINTAINERS (Target Instruction Set Architectures) <sparc>:
2705 Update target triplet.
2706
5df96a4e
TT
27072019-11-01 Tom Tromey <tromey@adacore.com>
2708
2709 * utils.c (print_sys_errmsg): Simplify.
2710
b7481649
TT
27112019-11-01 Tom Tromey <tromey@adacore.com>
2712
2713 * gdbsupport/mingw-strerror.c (safe_strerror): Constify result.
2714
e48f6033
CB
27152019-11-01 Christian Biesinger <cbiesinger@google.com>
2716
2717 * configure: Regenerate.
2718 * configure.ac: Remove check for strerror_r.
2719 * gdbsupport/common.m4: Check for strerror_r.
2720
bd5766ec
LM
27212019-11-01 Luis Machado <luis.machado@linaro.org>
2722
2723 PR gdb/25124
2724
2725 * arm-tdep.c (arm_per_objfile): Rename to ...
2726 (arm_per_bfd): ... this.
2727 (arm_objfile_data_key): Rename to ...
2728 (arm_bfd_data_key): ... this.
2729 (arm_find_mapping_symbol): Adjust access to new bfd_key-based
2730 data.
2731 (arm_record_special_symbol): Likewise.
2732
e1709896
AB
27332019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
2734
2735 * ada-typeprint.c (ada_print_typedef): Don't print newline at the
2736 end.
2737 * c-typeprint.c (c_print_typedef): Likewise.
2738 * f-typeprint.c (f_print_typedef): Likewise.
2739 * m2-typeprint.c (m2_print_typedef): Likewise.
2740 * p-typeprint.c (pascal_print_typedef): Likewise.
2741 * rust-lang.c (rust_print_typedef): Likewise.
2742 * symtab.c (print_symbol_info): Print a newline after calling
2743 typedef_print.
2744
165f8965
AB
27452019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
2746
2747 * symtab.c (info_module_cmdlist): New variable.
2748 (info_module_command): New function.
2749 (search_module_symbols): New function.
2750 (info_module_subcommand): New function.
2751 (struct info_modules_var_func_options): New struct.
2752 (info_modules_var_func_options_defs): New variable.
2753 (make_info_modules_var_func_options_def_group): New function.
2754 (info_module_functions_command): New function.
2755 (info_module_variables_command): New function.
2756 (info_module_var_func_command_completer): New function.
2757 (_initialize_symtab): Register new 'info module functions' and
2758 'info module variables' commands.
2759 * symtab.h (typedef symbol_search_in_module): New typedef.
2760 (search_module_symbols): Declare new function.
2761 * NEWS: Mention new commands.
2762
59c35742
AB
27632019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
2764
2765 * dwarf2read.c (dw2_symtab_iter_next): Handle MODULE_DOMAIN.
2766 (dw2_expand_marked_cus): Handle MODULES_DOMAIN.
2767 (dw2_debug_names_iterator::next): Handle MODULE_DOMAIN and
2768 MODULES_DOMAIN.
2769 (scan_partial_symbols): Only create partial module symbols for non
2770 declarations.
2771 * psymtab.c (recursively_search_psymtabs): Handle MODULE_DOMAIN
2772 and MODULES_DOMAIN.
2773 * symtab.c (search_domain_name): Likewise.
2774 (search_symbols): Likewise.
2775 (print_symbol_info): Likewise.
2776 (symtab_symbol_info): Likewise.
2777 (info_modules_command): New function.
2778 (_initialize_symtab): Register 'info modules' command.
2779 * symtab.h (enum search_domain): Add MODULES_DOMAIN.
2780 * NEWS: Mention new 'info modules' command.
2781
aed61d02
PW
27822019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2783
2784 * NEWS: Mention $_gdb_setting, $_gdb_setting_str, $_gdb_maint_setting
2785 and $_gdb_maint_setting_str.
2786
9ad9b77d
PW
27872019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2788
2789 * cli/cli-cmds.c (setting_cmd, value_from_setting)
2790 (gdb_setting_internal_fn, gdb_maint_setting_internal_fn)
2791 (str_value_from_setting, gdb_setting_str_internal_fn)
2792 (gdb_maint_setting_str_internal_fn): New functions.
2793 (_initialize_cli_cmds): Define the new convenience functions.
2794 * gdb/cli/cli-setshow.h (get_setshow_command_value_string): Constify.
2795 * gdb/cli/cli-setshow.c (get_setshow_command_value_string): Constify.
2796
8d6efaa2
CB
27972019-10-31 Christian Biesinger <cbiesinger@google.com>
2798
2799 * agent.c (set_can_use_agent): When the setting is turned on,
2800 look up agent symbols if we don't have them yet.
2801 (agent_new_objfile): Don't look up agent symbols when the agent
2802 setting is off.
2803
33cb1647
CB
28042019-10-31 Christian Biesinger <cbiesinger@google.com>
2805
2806 * config.in: Regenerate.
2807
b231e86a
CB
28082019-10-31 Christian Biesinger <cbiesinger@google.com>
2809
2810 * configure: Regenerate.
2811 * configure.ac: Check for strerror_r.
2812 * gdbsupport/common-utils.h (safe_strerror): Change return value
2813 to const char * and document that this function is now threadsafe.
2814 * gdbsupport/posix-strerror.c (safe_strerror): Make buf
2815 thread_local and call strerror_r, if available.
2816 * utils.c (perror_string): Update.
2817 (print_sys_errmsg): Update.
2818
a2726d4f
LM
28192019-10-31 Luis Machado <luis.machado@linaro.org>
2820
2821 * arm-tdep.c (arm_exidx_data_key): Use bfd_key instead of
2822 objfile_key.
2823 (arm_exidx_new_objfile): Adjust to use objfile->obfd instead of
2824 objfile to fetch per-bfd data.
2825 (arm_find_exidx_entry): Likewise.
2826
75cafaa6
CB
28272019-10-31 Christian Biesinger <cbiesinger@google.com>
2828
2829 * gdbsupport/agent.c (debug_agent): Change type to bool.
2830 (use_agent): Likewise.
2831 (all_agent_symbols_look_up): Likewise.
2832 (agent_loaded_p): Change return value to bool.
2833 (agent_look_up_symbols): Update.
2834 (agent_capability_check): Change return value to bool.
2835 * gdbsupport/agent.h (agent_loaded_p): Likewise.
2836 (debug_agent): Change type to bool.
2837 (use_agent): Likewise.
2838 (agent_capability_check): Change return value to bool.
2839
808590ec
CB
28402019-10-30 Christian Biesinger <cbiesinger@google.com>
2841
2842 * minsyms.c (clear_minimal_symbol_hash_tables): New function.
2843 (build_minimal_symbol_hash_tables): Code to clear the table moved
2844 to clear_minimal_symbol_hash_tables.
2845 (minimal_symbol_reader::install): Call clear_minimal_symbol_hash_tables
2846 when needed.
2847
f18ad8a1
SM
28482019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2849
2850 * infcmd.c: Remove includes.
2851 * infrun.c: Remove includes.
2852
de93309a
SM
28532019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2854
2855 * ada-lang.h (GROW_VECT): Move to ada-lang.c.
2856 (grow_vect): Remove declaration.
2857 (ada_type_of_array): Remove declaration.
2858 (ada_update_initial_language): Remove declaration.
2859 (ada_fold_name): Remove declaration.
2860 (ada_fill_in_ada_prototype): Remove declaration.
2861 (user_select_syms): Remove declaration.
2862 (get_selections): Remove declaration.
2863 (ada_tag_type): Remove declaration.
2864 (ada_value_tag): Remove declaration.
2865 (ada_is_others_clause): Remove declaration.
2866 (ada_in_variant): Remove declaration.
2867 (ada_value_struct_elt): Remove declaration.
2868 (ada_attribute_name): Remove declaration.
2869 (ada_system_address_type): Remove declaration.
2870 * ada-lang.c (ada_watch_location_expression): Make static.
2871 (GROW_VECT): Move here from ada-lang.h.
2872 (grow_vect): Make static.
2873 (ada_update_initial_language): Make static.
2874 (ada_fold_name): Make static.
2875 (ada_type_of_array): Make static.
2876 (encoded_ordered_before): Move up.
2877 (sort_choices): Move up.
2878 (print_signatures): Move up.
2879 (ada_print_symbol_signature): Move up.
2880 (get_selections): Move up and make static.
2881 (user_select_syms): Move up and make static.
2882 (ada_value_struct_elt): Move up and make static.
2883 (ada_tag_type): Make static.
2884 (ada_value_tag): Make static.
2885 (ada_is_others_clause): Make static.
2886 (ada_in_variant): Make static.
2887 (ada_attribute_name): Make static.
2888
cdc46a9f
SM
28892019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2890
2891 * ada-lang.c: Remove includes.
2892 * ada-typeprint.c: Remove includes.
2893 * ada-valprint.c: Remove includes.
2894
90421c56
SM
28952019-10-29 Simon Marchi <simon.marchi@efficios.com>
2896
2897 * addrmap.c: Add static assertions of type size, moved from
2898 _initialize_addrmap.
2899 (_initialize_addrmap): Remove.
2900
31edb802
CB
29012019-10-29 Christian Biesinger <cbiesinger@google.com>
2902
2903 * coffread.c (record_minimal_symbol): Update.
2904 (process_coff_symbol): Update.
2905 * dbxread.c (read_dbx_symtab): Update.
2906 * dwarf2read.c (add_partial_symbol): Update.
2907 (fixup_go_packaging): Update.
2908 (load_partial_dies): Update.
2909 (new_symbol): Update.
2910 * elfread.c (record_minimal_symbol): Change signature to use
2911 gdb::string_view instead of name+len.
2912 (elf_symtab_read): Update.
2913 (elf_rel_plt_read): Update.
2914 * mdebugread.c (parse_partial_symbols): Update.
2915 (handle_psymbol_enumerators): Update.
2916 (new_symbol): Update.
2917 * minsyms.c (minimal_symbol_reader::record_full): Change signature
2918 to use gdb::string_view instead of name+len.
2919 * minsyms.h (class minimal_symbol_reader) <record_full>: Likewise.
2920 * psympriv.h (add_psymbol_to_list): Likewise.
2921 * psymtab.c (add_psymbol_to_bcache): Likewise.
2922 (add_psymbol_to_list): Likewise.
2923 * stabsread.c (define_symbol): Update.
2924 * symtab.c (symbol_set_names): Change signature to use gdb::string_view.
2925 * symtab.h (SYMBOL_SET_NAMES): Likewise.
2926 (symbol_set_names): Likewise.
2927 * xcoffread.c (scan_xcoff_symtab): Update.
2928
0c921b21
CB
29292019-10-29 Christian Biesinger <cbiesinger@google.com>
2930
2931 * symtab.h (symbol_set_names): Document that copy_name must be
2932 set to true for non-nullterminated strings.
2933 * symtab.c (symbol_set_names): Only make a nullterminated copy of
2934 linkage_name if the entry was not found and we need to demangle.
2935
35e65c49
CB
29362019-10-29 Christian Biesinger <cbiesinger@google.com>
2937
2938 * Makefile.in (HFILES_NO_SRCDIR): Add gdb_binary_search.h.
2939 * dwarf2-frame.c (bsearch_fde_cmp): Update.
2940 (dwarf2_frame_find_fde): Replace bsearch with gdb::binary_search.
2941 * gdbsupport/gdb_binary_search.h: New file.
2942
ed2a2229
CB
29432019-10-29 Christian Biesinger <cbiesinger@google.com>
2944
2945 * NEWS: Mention new --with-system-gdbinit-dir option.
2946 * config.in: Regenerate.
2947 * configure: Regenerate.
2948 * configure.ac: Add new option --with-system-gdbinit-dir.
2949 * extension.c (get_ext_lang_of_file): Return extension_language_gdb
2950 for a ".gdb" suffix.
2951 * main.c (get_init_files): Change system_gdbinit argument to
2952 a vector and return the files in SYSTEM_GDBINIT_DIR in
2953 addition to SYSTEM_GDBINIT.
2954 (captured_main_1): Update.
2955 (print_gdb_help): Update.
2956 * top.c (print_gdb_configuration): Also print the value of
2957 SYSTEM_GDBINIT_DIR.
2958
87f34879
CB
29592019-10-28 Christian Biesinger <cbiesinger@google.com>
2960
2961 * gdbsupport/common-utils.h (startswith): Add an overloaded version
2962 that takes gdb::string_view arguments.
2963
30baf67b
TV
29642019-10-26 Tom de Vries <tdevries@suse.de>
2965
2966 * aarch64-linux-tdep.c: Fix typos in comments.
2967 * aarch64-tdep.c: Same.
2968 * ada-lang.c: Same.
2969 * amd64-nat.c: Same.
2970 * arc-tdep.c: Same.
2971 * arch/aarch64-insn.c: Same.
2972 * block.c: Same.
2973 * breakpoint.h: Same.
2974 * btrace.h: Same.
2975 * c-varobj.c: Same.
2976 * cli/cli-decode.c: Same.
2977 * cli/cli-script.c: Same.
2978 * cli/cli-utils.h: Same.
2979 * coff-pe-read.c: Same.
2980 * coffread.c: Same.
2981 * compile/compile-cplus-symbols.c: Same.
2982 * compile/compile-object-run.c: Same.
2983 * completer.c: Same.
2984 * corelow.c: Same.
2985 * cp-support.c: Same.
2986 * demangle.c: Same.
2987 * dwarf-index-write.c: Same.
2988 * dwarf2-frame.c: Same.
2989 * dwarf2-frame.h: Same.
2990 * eval.c: Same.
2991 * frame-base.h: Same.
2992 * frame.h: Same.
2993 * gdbcmd.h: Same.
2994 * gdbtypes.h: Same.
2995 * gnu-nat.c: Same.
2996 * guile/scm-objfile.c: Same.
2997 * i386-tdep.c: Same.
2998 * i386-tdep.h: Same.
2999 * infcall.c: Same.
3000 * infcall.h: Same.
3001 * linux-nat.c: Same.
3002 * m68k-tdep.c: Same.
3003 * macroexp.c: Same.
3004 * memattr.c: Same.
3005 * mi/mi-cmd-disas.c: Same.
3006 * mi/mi-getopt.h: Same.
3007 * mi/mi-main.c: Same.
3008 * minsyms.c: Same.
3009 * nat/aarch64-sve-linux-sigcontext.h: Same.
3010 * objfiles.h: Same.
3011 * ppc-linux-nat.c: Same.
3012 * ppc-linux-tdep.c: Same.
3013 * ppc-tdep.h: Same.
3014 * progspace.h: Same.
3015 * prologue-value.h: Same.
3016 * python/py-evtregistry.c: Same.
3017 * python/py-instruction.h: Same.
3018 * record-btrace.c: Same.
3019 * record-full.c: Same.
3020 * remote.c: Same.
3021 * rs6000-tdep.c: Same.
3022 * ser-tcp.c: Same.
3023 * sol-thread.c: Same.
3024 * sparc-sol2-tdep.c: Same.
3025 * sparc64-tdep.c: Same.
3026 * stabsread.c: Same.
3027 * symfile.c: Same.
3028 * symtab.h: Same.
3029 * target.c: Same.
3030 * tracepoint.c: Same.
3031 * tui/tui-data.h: Same.
3032 * tui/tui-io.c: Same.
3033 * tui/tui-win.c: Same.
3034 * tui/tui.c: Same.
3035 * unittests/rsp-low-selftests.c: Same.
3036 * user-regs.h: Same.
3037 * utils.c: Same.
3038 * utils.h: Same.
3039 * valarith.c: Same.
3040 * valops.c: Same.
3041 * valprint.c: Same.
3042 * valprint.h: Same.
3043 * value.c: Same.
3044 * value.h: Same.
3045 * varobj.c: Same.
3046 * x86-nat.h: Same.
3047 * xtensa-tdep.c: Same.
3048
1834d45f
AT
30492019-10-25 Ali Tamur <tamur@google.com>
3050
3051 * charset.c (find_charset_names): Reflect API change.
3052
5396ae17
CB
30532019-10-25 Christian Biesinger <cbiesinger@google.com>
3054
3055 * symtab.c (struct demangled_name_entry): Change demangled name
3056 to a unique_xmalloc_ptr<char>, now that we don't allocate it as
3057 part of the struct anymore.
3058 (symbol_set_names): No longer obstack allocate + copy the demangled
3059 name, just store the allocated name from bfd.
3060
93878f47
TT
30612019-10-25 Tom Tromey <tromey@adacore.com>
3062
3063 * dwarf2-frame.c (dwarf2_cie_table): Now a typedef.
3064 (bsearch_cie_cmp, add_cie): Remove.
3065 (find_cie): Reimplement.
3066 (decode_frame_entry_1, decode_frame_entry): Change type. Update.
3067 (dwarf2_build_frame_info): Update.
3068
7b71fc97
L
30692019-10-24 H.J. Lu <hongjiu.lu@intel.com>
3070
3071 PR gdb/25126
3072 * symfile.c (reread_symbols): Call forget_cached_source_info to
3073 clear the stale source cache.
3074
cbb5a2ea
CB
30752019-10-24 Christian Biesinger <cbiesinger@google.com>
3076
3077 * configure: Regenerate.
3078 * configure.ac: Remove code that sets python_has_threads.
3079
71737c43
CB
30802019-10-24 Christian Biesinger <cbiesinger@google.com>
3081
3082 * config.in: Regenerate.
3083 * configure: Regenerate.
3084 * configure.ac: Remove the code that uses sed to get the python
3085 version and defines HAVE_LIBPYTHON2_6 / HAVE_LIBPYTHON2_7.
3086
33d569b7
AB
30872019-10-24 Andrew Burgess <andrew.burgess@embecosm.com>
3088
3089 * python/py-progspace.c (pspy_block_for_pc): Return None for all
3090 error paths.
3091
f16f7b7c
TT
30922019-10-23 Tom Tromey <tom@tromey.com>
3093
3094 * arc-tdep.c: Remove ".." from include.
3095 * frv-tdep.c: Remove ".." from include.
3096 * lm32-tdep.c: Remove ".." from include.
3097 * microblaze-tdep.c: Remove ".." from include.
3098 * or1k-tdep.h: Remove ".." from include.
3099 * s12z-tdep.c: Remove ".." from include.
3100 * Makefile.in (OPCODES_CFLAGS): Add comment.
3101 (TOP_CFLAGS): New variable.
3102 (INTERNAL_CFLAGS_BASE): Add TOP_CFLAGS.
3103
6999161a
TT
31042019-10-23 Tom Tromey <tom@tromey.com>
3105
3106 * Makefile.in (READLINE_DIR): Update.
3107
12e7c35e
TBA
31082019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3109
3110 * infcall.c (call_function_by_hand_dummy): Fix the function
3111 comment. And extract out a code section into...
3112 (reserve_stack_space): ...this new function.
3113
37055cad
TBA
31142019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3115
3116 * infcall.c (value_arg_coerce): Remove an unused parameter.
3117 (call_function_by_hand_dummy): Update the call to
3118 'value_arg_coerce'.
3119
39bcc47c
TBA
31202019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3121
3122 * infcall.c (call_function_by_hand_dummy): Refactor.
3123
bd888c0f
TBA
31242019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3125
3126 * MAINTAINERS (Write After Approval): Add Tankut Baris Aktemur.
3127
c12d372d
TT
31282019-10-23 Tom Tromey <tom@tromey.com>
3129
3130 * configure: Rebuild.
3131 * configure.ac: Don't check for sigprocmask.
3132 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for sigprocmask.
3133
4d0b984b
TT
31342019-10-23 Tom Tromey <tom@tromey.com>
3135
3136 * configure: Rebuild.
3137 * acinclude.m4: Use m4_include, not sinclude.
3138
7e785608
TV
31392019-10-23 Tom de Vries <tdevries@suse.de>
3140
3141 PR breakpoints/24687
3142 * symtab.c (iterate_over_some_symtabs): Apply gdb_realpath on fullname.
3143
403772ef
CB
31442019-10-22 Christian Biesinger <cbiesinger@google.com>
3145
3146 * symtab.c (struct demangled_name_entry) <language>: Change from
3147 bitfield to regular variable.
3148
3a494279
CB
31492019-10-22 Christian Biesinger <cbiesinger@google.com>
3150
3151 * symtab.c (struct demangled_name_entry): Add a constructor.
3152 (free_demangled_name_entry): New function to call the destructor
3153 for demangled_name_entry.
3154 (create_demangled_names_hash): Pass free_demangled_name_entry to
3155 htab_create_alloc.
3156 (symbol_set_names): Call placement new for demangled_name_entry.
3157 * utils.c: No longer include xxhash.h here, now that fast_hash
3158 is inlined in the header.
3159 * utils.h: Instead, include it here.
3160
ccb1ba62
CB
31612019-10-22 Christian Biesinger <cbiesinger@google.com>
3162
3163 * Makefile.in: Link with libxxhash.
3164 * config.in: Regenerate.
3165 * configure: Regenerate.
3166 * configure.ac: Search for libxxhash.
3167 * utils.c (fast_hash): Use xxhash if present.
3168
1a6ff1a9
CB
31692019-10-22 Christian Biesinger <cbiesinger@google.com>
3170
3171 * utils.h (fast_hash): New function.
3172 * symtab.c (hash_demangled_name_entry): Call new function
3173 fast_hash.
3174
7bb43059
CB
31752019-10-22 Christian Biesinger <cbiesinger@google.com>
3176
3177 * symtab.c (struct demangled_name_entry): Change type of mangled
3178 to gdb::string_view. Also adds a constructor that takes the
3179 mangled name.
3180 (hash_demangled_name_entry): Update.
3181 (eq_demangled_name_entry): Update.
3182 (free_demangled_name_entry): New function to call the destructor
3183 now that this is not a POD anymore.
3184 (create_demangled_names_hash): Pass free_demangled_name_entry to
3185 htab_create_alloc.
3186 (symbol_set_names): Update.
3187
7ba99d21
AT
31882019-10-21 Ali Tamur <tamu@google.com>
3189
3190 * dwarf2read.c (dir_index): Change type.
3191 (file_name_index): Likewise.
3192 (line_header::include_dir_at): Change comment and implementation on
3193 whether it is DWARF 5.
3194 (line_header::is_valid_file_index): New function.
3195 (line_header::file_name_at): Change comment and implementation on
3196 whether it is DWARF 5.
3197 (line_header::file_names): Change to private field renamed as
3198 m_file_names and introduce a new accessor method.
3199 (line_header::file_names_size): New method.
3200 (line_header::include_dirs): Change to private field and rename as
3201 m_include_dirs.
3202 (dw2_get_file_names_reader): Define local var at a smaller scope and
3203 reflect API change.
3204 (dwarf2_cu::setup_type_unit_groups): Reflect API change.
3205 (process_structure_scope): Likewise.
3206 (line_header::add_include_dir): Change message and reflect renaming.
3207 (line_header::add_file_name): Likewise.
3208 (read_formatted_entries): Handle DW_FORM_data16.
3209 (dwarf_decode_line_header): Fix line header length calculation.
3210 (psymtab_include_file_name): Change comment and API.
3211 (lnp_state_machine::m_file): Update comment and reflect type change.
3212 (lnp_state_machine::record_line): Reflect type change.
3213 (dwarf_decode_lines): Reflect API change.
3214 (file_file_name): Likewise.
3215 (file_full_name): Likewise.
3216
45f47c3a
AB
32172019-10-21 Andrew Burgess <andrew.burgess@embecosm.com>
3218
3219 * objfiles.c (sort_cmp): Ensure that !(a < a) holds true.
3220
e5f3c0e3
TT
32212019-10-21 Tom Tromey <tom@tromey.com>
3222
3223 * tui/tui-winsource.h (tui_exec_info_content): Remove typedef.
3224
a0a461e5
TT
32252019-10-21 Tom Tromey <tom@tromey.com>
3226
3227 * configure.ac (nm.h): Conditionally create nm.h link. Subst
3228 NM_H. Use AC_CONFIG_LINKS.
3229 * configure: Rebuild.
3230 * Makefile.in (NM_H): New variable.
3231 (generated_files): Add NM_H. Remove gcore.
3232 (nm.h, stamp-nmh): New targets.
3233
54d83b8d
TT
32342019-10-20 Tom Tromey <tom@tromey.com>
3235
3236 * objfiles.h (unlink_objfile, put_objfile_before): Don't declare.
3237 * objfiles.c (unlink_objfile): Move earlier. Now static. Remove
3238 obsolete comment.
3239 (put_objfile_before): Now static.
3240
23771117
SM
32412019-10-19 Simon Marchi <simon.marchi@polymtl.ca>
3242
3243 * gdbsupport/common-utils.h (startswith): Change return type to
3244 bool.
3245
39ef2f62
CB
32462019-10-19 Christian Biesinger <cbiesinger@google.com>
3247
3248 * bcache.c (bcache::print_statistics): Use std::sort instead of qsort.
3249 * breakpoint.c (bp_locations_compare): Rename to...
3250 (bp_location_is_less_than): ...this, and change to std::sort semantics.
3251 (update_global_location_list): Use std::sort instead of qsort.
3252 * buildsym.c (compare_line_numbers): Rename to...
3253 (lte_is_less_than): ...this, and change to std::sort semantics.
3254 (buildsym_compunit::end_symtab_with_blockvector): Use std::sort
3255 instead of qsort.
3256 * disasm.c (compare_lines): Rename to...
3257 (line_is_less_than): ...this, and change to std::sort semantics.
3258 (do_mixed_source_and_assembly_deprecated): Call std::sort instead
3259 of qsort.
3260 * dwarf2-frame.c (qsort_fde_cmp): Rename to...
3261 (fde_is_less_than): ...this, and change to std::sort semantics.
3262 (dwarf2_build_frame_info): Call std::sort instead of qsort.
3263 * mdebugread.c (compare_blocks):
3264 (block_is_less_than): ...this, and change to std::sort semantics.
3265 (sort_blocks): Call std::sort instead of qsort.
3266 * objfiles.c (qsort_cmp): Rename to...
3267 (sort_cmp): ...this, and change to std::sort semantics.
3268 (update_section_map): Call std::sort instead of qsort.
3269 * remote.c (compare_pnums): Remove.
3270 (map_regcache_remote_table): Call std::sort instead of qsort.
3271 * utils.c (compare_positive_ints): Remove.
3272 * utils.h (compare_positive_ints): Remove.
3273 * xcoffread.c (compare_lte): Remove.
3274 (arrange_linetable): Call std::sort instead of qsort.
3275
f71433ee
SDJ
32762019-10-19 Sergio Durigan Junior <sergiodj@redhat.com>
3277
3278 * symfile.c (init_entry_point_info): Fix typo.
3279 * i386-darwin-tdep.c (darwin_dwarf_signal_frame_p): Fix typo.
3280
85102364
TV
32812019-10-18 Tom de Vries <tdevries@suse.de>
3282
3283 * aarch64-tdep.c: Fix typos in comments.
3284 * ada-lang.c: Same.
3285 * ada-tasks.c: Same.
3286 * alpha-tdep.c: Same.
3287 * alpha-tdep.h: Same.
3288 * amd64-nat.c: Same.
3289 * amd64-windows-tdep.c: Same.
3290 * arc-tdep.c: Same.
3291 * arc-tdep.h: Same.
3292 * arch-utils.c: Same.
3293 * arm-nbsd-tdep.c: Same.
3294 * arm-tdep.c: Same.
3295 * ax-gdb.c: Same.
3296 * blockframe.c: Same.
3297 * btrace.c: Same.
3298 * c-varobj.c: Same.
3299 * coff-pe-read.c: Same.
3300 * coffread.c: Same.
3301 * cris-tdep.c: Same.
3302 * darwin-nat.c: Same.
3303 * dbxread.c: Same.
3304 * dcache.c: Same.
3305 * disasm.c: Same.
3306 * dtrace-probe.c: Same.
3307 * dwarf-index-write.c: Same.
3308 * dwarf2-frame-tailcall.c: Same.
3309 * dwarf2-frame.c: Same.
3310 * dwarf2read.c: Same.
3311 * eval.c: Same.
3312 * exceptions.c: Same.
3313 * fbsd-tdep.c: Same.
3314 * findvar.c: Same.
3315 * frame.c: Same.
3316 * frv-tdep.c: Same.
3317 * gnu-v3-abi.c: Same.
3318 * go32-nat.c: Same.
3319 * h8300-tdep.c: Same.
3320 * hppa-tdep.c: Same.
3321 * i386-linux-tdep.c: Same.
3322 * i386-tdep.c: Same.
3323 * ia64-libunwind-tdep.c: Same.
3324 * ia64-tdep.c: Same.
3325 * infcmd.c: Same.
3326 * infrun.c: Same.
3327 * linespec.c: Same.
3328 * linux-nat.c: Same.
3329 * linux-thread-db.c: Same.
3330 * machoread.c: Same.
3331 * mdebugread.c: Same.
3332 * mep-tdep.c: Same.
3333 * mn10300-tdep.c: Same.
3334 * namespace.c: Same.
3335 * objfiles.c: Same.
3336 * opencl-lang.c: Same.
3337 * or1k-tdep.c: Same.
3338 * osabi.c: Same.
3339 * ppc-linux-nat.c: Same.
3340 * ppc-linux-tdep.c: Same.
3341 * ppc-sysv-tdep.c: Same.
3342 * printcmd.c: Same.
3343 * procfs.c: Same.
3344 * record-btrace.c: Same.
3345 * record-full.c: Same.
3346 * remote-fileio.c: Same.
3347 * remote.c: Same.
3348 * rs6000-tdep.c: Same.
3349 * s12z-tdep.c: Same.
3350 * score-tdep.c: Same.
3351 * ser-base.c: Same.
3352 * ser-go32.c: Same.
3353 * skip.c: Same.
3354 * sol-thread.c: Same.
3355 * solib-svr4.c: Same.
3356 * solib.c: Same.
3357 * source.c: Same.
3358 * sparc-nat.c: Same.
3359 * sparc-sol2-tdep.c: Same.
3360 * sparc-tdep.c: Same.
3361 * sparc64-tdep.c: Same.
3362 * stabsread.c: Same.
3363 * stack.c: Same.
3364 * symfile.c: Same.
3365 * symtab.c: Same.
3366 * target-descriptions.c: Same.
3367 * target-float.c: Same.
3368 * thread.c: Same.
3369 * utils.c: Same.
3370 * valops.c: Same.
3371 * valprint.c: Same.
3372 * value.c: Same.
3373 * varobj.c: Same.
3374 * windows-nat.c: Same.
3375 * xcoffread.c: Same.
3376 * xstormy16-tdep.c: Same.
3377 * xtensa-tdep.c: Same.
3378
c5adaa19
TT
33792019-10-17 Tom Tromey <tromey@adacore.com>
3380
3381 * configure: Rebuild.
3382 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
3383 in AC_CONFIG_FILES invocation.
3384 * Makefile.in (Makefile, data-directory/Makefile, stamp-h): Use
3385 new-style config.status invocation.
3386
405feb71
TV
33872019-10-17 Tom de Vries <tdevries@suse.de>
3388
3389 * arm-nbsd-nat.c: Fix typos in comments.
3390 * arm-tdep.c: Same.
3391 * darwin-nat-info.c: Same.
3392 * dwarf2read.c: Same.
3393 * elfread.c: Same.
3394 * event-top.c: Same.
3395 * findvar.c: Same.
3396 * gdbtypes.c: Same.
3397 * hppa-tdep.c: Same.
3398 * i386-tdep.c: Same.
3399 * jit.c: Same.
3400 * main.c: Same.
3401 * mdebugread.c: Same.
3402 * moxie-tdep.c: Same.
3403 * nto-procfs.c: Same.
3404 * osabi.c: Same.
3405 * ppc-linux-tdep.c: Same.
3406 * remote.c: Same.
3407 * riscv-tdep.c: Same.
3408 * s390-tdep.c: Same.
3409 * sh-tdep.c: Same.
3410 * sparc-linux-tdep.c: Same.
3411 * sparc-nat.c: Same.
3412 * stack.c: Same.
3413 * target-descriptions.c: Same.
3414 * top.c: Same.
3415 * varobj.c: Same.
3416
befcd486
TT
34172019-10-16 Tom Tromey <tom@tromey.com>
3418
3419 * objfiles.h (struct objfile) <original_name>: Now const.
3420
17bfe554
CB
34212019-10-16 Christian Biesinger <cbiesinger@google.com>
3422
3423 * gdbsupport/gdb_setjmp.h (SIGSETJMP): Allow passing in the value to
3424 pass on to sigsetjmp's second argument.
3425 * cp-support.c (gdb_demangle): Unblock SIGSEGV if we caught a crash.
3426
950b7495
KS
34272019-10-16 Keith Seitz <keiths@redhat.com>
3428
3429 PR gdb/23567
3430 * dwarf2read.c (dwarf2_per_objfile::locate_sections): Discard
3431 sections whose size is greater than the file size.
3432
ff371ec9
JW
34332019-10-16 Jim Wilson <jimw@sifive.com>
3434
3435 * riscv-tdep.c (riscv_gcc_target_options): New.
3436 (riscv_gnu_triplet_regexp): New.
3437 (riscv_gdbarch_init): Call set_gdbarch_gcc_triplet_options and
3438 set_gdbarch_gnu_triplet_regexp.
3439
fec4e896
CB
34402019-10-16 Christian Biesinger <cbiesinger@google.com>
3441
3442 * Makefile.in: Add xml-builtin.h.
3443 * features/feature_to_c.sh: Add an include for xml-builtin.h
3444 to ensure that the compiler checks that the types match.
3445 * xml-builtin.h: New file.
3446 * xml-support.c (fetch_xml_builtin): Add missing const.
3447 * xml-support.h: Remove declaration of xml_builtins.
3448
d10eccaa
TV
34492019-10-16 Tom de Vries <tdevries@suse.de>
3450
3451 PR tdep/25096
3452 * amd64-tdep.c (amd64_classify_aggregate_field): Factor out of ...
3453 (amd64_classify_aggregate): ... here.
3454 (amd64_classify_aggregate_field): Handled fiels of nested structs
3455 recursively.
3456
745ff14e
TV
34572019-10-16 Tom de Vries <tdevries@suse.de>
3458
3459 PR tdep/24104
3460 * amd64-tdep.c (amd64_push_arguments): Handle AMD64_NO_CLASS in loop
3461 that handles 'theclass'.
3462
791b7405
AB
34632019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
3464
3465 * linespec.c (decode_digits_ordinary): Update comment.
3466 * make-target-delegates: No longer need to handle VEC case.
3467 * memrange.c (normalize_mem_ranges): Update comment.
3468 * namespace.c (add_using_directive): Update comment.
3469 * objc-lang.c (uniquify_strings): Update comment.
3470 * ppc-linux-nat.c (struct thread_points): Update comment.
3471 * probe.h (find_probes_in_objfile): Update comment.
3472 * target.h (enum flash_preserve_mode): Update comment.
3473 * varobj.c (varobj_restrict_range): Update comment.
3474 * varobj.h (varobj_list_children): Update comment.
3475
0dc32745
AB
34762019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
3477
3478 * Makefile.in: Remove references to vec.h and vec.c.
3479 * aarch64-tdep.c: No longer include vec.h.
3480 * ada-lang.c: Likewise.
3481 * ada-lang.h: Likewise.
3482 * arm-tdep.c: Likewise.
3483 * ax.h: Likewise.
3484 * breakpoint.h: Likewise.
3485 * charset.c: Likewise.
3486 * cp-support.h: Likewise.
3487 * dtrace-probe.c: Likewise.
3488 * dwarf2read.c: Likewise.
3489 * extension.h: Likewise.
3490 * gdb_bfd.c: Likewise.
3491 * gdbsupport/gdb_vecs.h: Likewise.
3492 * gdbsupport/vec.c: Remove.
3493 * gdbsupport/vec.h: Remove.
3494 * gdbthread.h: Likewise.
3495 * guile/scm-type.c: Likewise.
3496 * inline-frame.c: Likewise.
3497 * machoread.c: Likewise.
3498 * memattr.c: Likewise.
3499 * memrange.h: Likewise.
3500 * namespace.h: Likewise.
3501 * nat/linux-btrace.h: Likewise.
3502 * osdata.c: Likewise.
3503 * parser-defs.h: Likewise.
3504 * progspace.h: Likewise.
3505 * python/py-type.c: Likewise.
3506 * record-btrace.c: Likewise.
3507 * rust-exp.y: Likewise.
3508 * solib-target.c: Likewise.
3509 * stap-probe.c: Likewise.
3510 * target-descriptions.c: Likewise.
3511 * target-memory.c: Likewise.
3512 * target.h: Likewise.
3513 * varobj.c: Likewise.
3514 * varobj.h: Likewise.
3515 * xml-support.h: Likewise.
3516
ae640021
AB
35172019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
3518
3519 * gdb/dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile):
3520 Update for new std::vector based implementation.
3521 (process_psymtab_comp_unit_reader): Likewise.
3522 (scan_partial_symbols): Likewise.
3523 (recursively_compute_inclusions): Likewise.
3524 (compute_compunit_symtab_includes): Likewise.
3525 (process_imported_unit_die): Likewise.
3526 (queue_and_load_dwo_tu): Likewise.
3527 (follow_die_sig_1): Likewise.
3528 * gdb/dwarf2read.h: Remove DEF_VEC_P.
3529 (typedef dwarf2_per_cu_ptr): Remove.
3530 (struct dwarf2_per_cu_data) <imported_symtabs_empty>: New
3531 function.
3532 (struct dwarf2_per_cu_data) <imported_symtabs_push>: New function.
3533 (struct dwarf2_per_cu_data) <imported_symtabs_size>: New function.
3534 (struct dwarf2_per_cu_data) <imported_symtabs_free>: New function.
3535 (struct dwarf2_per_cu_data) <imported_symtabs>: Change to
3536 std::vector.
3537
55dfc88f
TT
35382019-10-15 Tom Tromey <tromey@adacore.com>
3539
3540 * windows-nat.c (windows_nat_target::resume): Use %x when logging
3541 TID.
3542
96b49c5e
TT
35432019-10-15 Tom Tromey <tromey@adacore.com>
3544
3545 * windows-nat.c (windows_nat_target::fetch_registers)
3546 (windows_nat_target::store_registers): Rename "pid" to "tid".
3547
953cff56
TT
35482019-10-15 Tom Tromey <tromey@adacore.com>
3549
3550 * gdbarch.h, gdbarch.c: Rebuild.
3551 * gdbarch.sh (gcc_target_options): Change return type to
3552 std::string.
3553 * compile/compile.c (get_args): Update.
3554 * nios2-tdep.c (nios2_gcc_target_options): Return std::string.
3555 * arm-linux-tdep.c (arm_linux_gcc_target_options): Return
3556 std::string.
3557 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): Return
3558 std::string.
3559 * arch-utils.c (default_gcc_target_options): Return std::string.
3560 * arch-utils.h (default_gcc_target_options): Return std::string.
3561 * s390-tdep.c (s390_gcc_target_options): Return std::string.
3562
81e6b8eb
CB
35632019-10-15 Christian Biesinger <cbiesinger@google.com>
3564
3565 * breakpoint.c (breakpoint_chain): Make static.
3566 * tui/tui-winsource.c: Call iterate_over_breakpoints instead
3567 of accessing breakpoint_chain.
3568
95da600f
CB
35692019-10-15 Christian Biesinger <cbiesinger@google.com>
3570
3571 * breakpoint.c (iterate_over_breakpoints): Change function pointer
3572 to a gdb::function_view and return value to bool.
3573 * breakpoint.h (iterate_over_breakpoints): Likewise.
3574 * dummy-frame.c (pop_dummy_frame_bpt): Update.
3575 (pop_dummy_frame): Update.
3576 * guile/scm-breakpoint.c (bpscm_build_bp_list): Update.
3577 (gdbscm_breakpoints): Update.
3578 * python/py-breakpoint.c (build_bp_list): Update.
3579 (gdbpy_breakpoints): Update.
3580 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
3581 Update.
3582 (bpfinishpy_handle_stop): Update.
3583 (bpfinishpy_handle_exit): Update.
3584 * solib-svr4.c (svr4_update_solib_event_breakpoint): Update.
3585 (svr4_update_solib_event_breakpoints): Update.
3586
ba18312d
AA
35872019-10-15 Andreas Arnez <arnez@linux.ibm.com>
3588
3589 * s390-tdep.c (s390_effective_inner_type): Ignore static fields
3590 when unwrapping single-field structs.
3591
6acc1a0b
SM
35922019-10-14 Simon Marchi <simon.marchi@polymtl.ca>
3593
3594 * dwarf2read.c: Remove includes.
3595
284782de
SM
35962019-10-13 Simon Marchi <simon.marchi@polymtl.ca>
3597
3598 * ui-out.c (ui_out::call_do_message): Silence
3599 -Wformat-nonliteral warning.
3600
073bbbb0
SM
36012019-10-12 Simon Marchi <simon.marchi@polymtl.ca>
3602
3603 * breakpoint.c: Remove some includes: continuations.h, skip.h,
3604 mi/mi-main.h, readline/readline.h, readline/history.h. Add
3605 include: readline/tilde.h.
3606
7b9a15e1
CB
36072019-10-12 Christian Biesinger <cbiesinger@google.com>
3608
3609 * remote.c (remote_target::get_trace_status): Remove declaration of
3610 trace_regblock_size.
3611
cc8dee1f
CB
36122019-10-12 Christian Biesinger <cbiesinger@google.com>
3613
3614 * cli/cli-cmds.c (max_user_call_depth): Move comment to header.
3615 (show_user): Remove declaration of cmdlist.
3616 * cli/cli-cmds.h (max_user_call_depth): Declare.
3617 * cli/cli-script.c (execute_user_command): Remove declaration
3618 of max_user_call_depth.
3619
a83d4ef6
JW
36202019-10-11 Jim Wilson <jimw@sifive.com>
3621
5f93c5a6
JW
3622 * gdbsupport/print-utils.h (pulongest): Fix comment.
3623 (plongest): Likewise.
3624 (phex): Add missing comment, mention leading zeros.
3625 (phex_nz): Add mention of no leading zeros to comment.
3626
a83d4ef6
JW
3627 * riscv-tdep.c (riscv_push_dummy_code): Change %lld to %s and use
3628 plongest instead of unsigned long long cast.
3629
26344e0c
CB
36302019-10-10 Christian Biesinger <cbiesinger@google.com>
3631
3632 * main.c (captured_main_1): Include gdbtk.h and remove declarations
3633 for external_editor_command and gdbtk_test.
3634
c2c440a9
CB
36352019-10-10 Christian Biesinger <cbiesinger@google.com>
3636
3637 * mi/mi-cmd-var.c (varobjdebug): Remove declaration.
3638 * varobj.c (varobjdebug): Move comment to...
3639 * varobj.h (varobjdebug): ...here, and declare.
3640
a31bff9d
TT
36412019-10-09 Tom Tromey <tom@tromey.com>
3642
3643 * tui/tui-regs.c (tui_data_window::show_registers): Don't call
3644 erase_data_content.
3645
7523da63
TT
36462019-10-09 Tom Tromey <tom@tromey.com>
3647
3648 * tui/tui-wingeneral.h (tui_delete_win): Don't declare.
3649 * tui/tui-stack.c (tui_locator_window::rerender): Update.
3650 * tui/tui-command.c (tui_cmd_window::resize)
3651 (tui_refresh_cmd_win): Update.
3652 * tui/tui-win.c (tui_resize_all, tui_set_focus_command): Update.
3653 * tui/tui.c (tui_rl_other_window, tui_enable): Update.
3654 * tui/tui-data.c (~tui_gen_win_info): Remove.
3655 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
3656 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
3657 (tui_redisplay_readline, tui_mld_flush)
3658 (tui_mld_erase_entire_line, tui_mld_getc, tui_getc): Update.
3659 * tui/tui-regs.c (tui_data_window::delete_data_content_windows)
3660 (tui_data_window::erase_data_content)
3661 (tui_data_item_window::rerender)
3662 (tui_data_item_window::refresh_window): Update.
3663 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window)
3664 (box_win, tui_gen_win_info::make_window)
3665 (tui_gen_win_info::make_visible): Update.
3666 (tui_delete_win): Remove.
3667 * tui/tui-winsource.c
3668 (tui_source_window_base::do_erase_source_content): Update.
3669 (tui_show_source_line, tui_source_window_base::update_tab_width)
3670 (tui_source_window_base::update_exec_info): Update.
3671 * tui/tui-data.h (struct curses_deleter): New.
3672 (struct tui_gen_win_info) <handle>: Now a unique_ptr.
3673 (struct tui_gen_win_info) <~tui_gen_win_info>: Define.
3674
a7798e7f
TT
36752019-10-09 Tom Tromey <tom@tromey.com>
3676
3677 * tui/tui-wingeneral.h (struct tui_gen_win_info): Don't declare.
3678
5c45899e
TT
36792019-10-09 Tom Tromey <tom@tromey.com>
3680
3681 * tui/tui-data.c (tui_win_is_auxiliary): Remove.
3682 * tui/tui-data.h (tui_win_is_auxiliary): Don't declare.
3683
6d7fd9aa
TT
36842019-10-09 Tom Tromey <tom@tromey.com>
3685
3686 * tui/tui-disasm.c (tui_get_low_disassembly_address): Compute
3687 window height directly.
3688 * tui/tui-layout.h (tui_default_win_viewport_height): Don't
3689 declare.
3690 * tui/tui-layout.c (tui_default_win_height): Remove.
3691 (tui_default_win_viewport_height): Remove.
3692
d2dd1084
TT
36932019-10-09 Tom Tromey <tom@tromey.com>
3694
3695 * tui/tui.h: Remove comments.
3696
cff32449
TV
36972019-10-09 Tom de Vries <tdevries@suse.de>
3698
3699 * python/lib/gdb/printer/bound_registers.py: Use
3700 '^builtin_type_bound128' as regexp argument for
3701 add_builtin_pretty_printer.
3702
6a25e8a2
CB
37032019-10-09 Christian Biesinger <cbiesinger@google.com>
3704
3705 * guile/guile.c (guile_extension_script_ops): Remove forward
3706 declaration and mark as static.
3707 (guile_script_ops): Likewise.
3708 (extension_language_guile): Move further down in the file so
3709 it can reference the definitions for guile_{extension_,}script_ops.
3710
6d9d6da4
AA
37112019-10-09 Andreas Arnez <arnez@linux.ibm.com>
3712
3713 * s390-tdep.c (390_process_record): Handle new arch13 instructions
3714 except SORTL, DFLTCC, and KDSA.
3715
3abea05d
TT
37162019-10-08 Tom Tromey <tromey@adacore.com>
3717
3718 * windows-nat.c (struct windows_thread_info_struct) <sf>: Remove.
3719 (struct safe_symbol_file_add_args): Remove.
3720
dde996e2
TT
37212019-10-08 Tom Tromey <tromey@adacore.com>
3722
3723 * windows-nat.c: Don't include buildsym-legacy.h.
3724
cd6fdaa1
TT
37252019-10-08 Tom Tromey <tromey@adacore.com>
3726
3727 * contrib/ari/gdb_ari.sh (%p): Allow gdb-specific %p extensions.
3728
79bb1944
CB
37292019-10-08 Christian Biesinger <cbiesinger@google.com>
3730
3731 * gdbtypes.c (overload_debug): Move comment to header.
3732 * gdbtypes.h (overload_debug): Declare.
3733 * valops.c: Remove declaration of overload_debug, instead
3734 include gdbtypes.h.
3735
34916edc
CB
37362019-10-08 Christian Biesinger <cbiesinger@google.com>
3737
3738 * language.c (show_language_command): Pass lang_frame_mismatch_warn
3739 through _().
3740 (lang_frame_mismatch_warn): Make const, mark with N_(), and
3741 move comment...
3742 * language.h (lang_frame_mismatch_warn): ... here. Also add
3743 declaration.
3744 * top.c (lang_frame_mismatch_warn): Remove declaration.
3745 (check_frame_language_change): Pass lang_frame_mismatch_warn
3746 through _().
3747
bad5c026
CB
37482019-10-07 Christian Biesinger <cbiesinger@google.com>
3749
3750 * c-lang.h (vtbl_ptr_name): Declare.
3751 * cp-valprint.c (vtbl_ptr_name): Remove "extern" now that we get
3752 it from the header.
3753 * stabsread.c (define_symbol): Remove declaration of vtbl_ptr_name.
3754
51f1fdc3
CB
37552019-10-07 Christian Biesinger <cbiesinger@google.com>
3756
3757 * charset.c (your_gdb_wchar_t_is_bogus): Replace with a
3758 gdb_static_assert.
3759
30d1f018
WP
37602019-10-07 Weimin Pan <weimin.pan@oracle.com>
3761
606813d5
WP
3762 * ../Makefile.def (dependencies): Add all-libctf to all-gdb
3763 * ../Makefile.in: Add "all-gdb: maybe-all-libctf"
30d1f018
WP
3764 * ctfread.c: New file.
3765 * ctfread.h: New file.
3766 * elfread.c: Include ctfread.h.
3767 (struct elfinfo text_p): New member ctfsect.
3768 (elf_locate_sections): Mark CTF section.
3769 (elf_symfile_read): Call elfctf_build_psymtabs.
3770 * Makefile.in (LIBCTF): Add.
3771 (CLIBS): Use it.
3772 (CDEPS): Likewise.
3773 (DIST): Add ctfread.c.
606813d5
WP
3774
37752019-10-07 Andrew Burgess <andrew.burgess@embecosm.com>
3776
3777 * ctfread.c (struct nextfield): Renamed to ...
3778 (struct ctf_nextfield): ... this.
3779 (struct field_info): Renamed to ...
3780 (strut ctf_field_info): ... this.
3781 (attach_fields_to_type): Update for renamed structures.
3782 (ctf_add_member_cb): Likewise.
3783 (ctf_add_enum_member_cb): Likewise.
3784 (process_struct_members): Likewise.
3785 (process_enum_type): Likewise.
30d1f018 3786
518fe38c
WP
37872019-10-07 Weimin Pan <weimin.pan@oracle.com>
3788
3789 * tracectf.h: Rename, was ctf.h.
3790 * tracectf.c: Rename, was ctf.c, replace ctf.h with tracectf.h.
3791 * tracefile.c: Likewise.
3792 * tracepoint.c: Remove unused include ctf.h.
3793 * mi/mi-main.c: Likewise.
3794 * Makefile.in Replace ctf.c with tracectf.c.
3795
225f296a
JB
37962019-10-06 Joel Brobecker <brobecker@adacore.com>
3797
3798 * version.in: Change version number to "9.0.50.DATE-git".
3799
77c2dba3
TT
38002019-10-03 Tom Tromey <tom@tromey.com>
3801
3802 PR rust/24976:
3803 * dwarf2read.c (quirk_rust_enum): Handle single-element unions.
3804
179aed7f
AB
38052019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
3806
3807 * f-lang.c (f_language_defn): Use cp_get_symbol_name_matcher and
3808 cp_search_name_hash.
3809 * NEWS: Add entry about nested function support.
3810
0a4b0913
AB
38112019-10-03 Bernhard Heckel <bernhard.heckel@intel.com>
3812 Andrew Burgess <andrew.burgess@embecosm.com>
3813
3814 * cp-namespace.c (cp_search_static_and_baseclasses): Only search
3815 for nested static variables when searchin VAR_DOMAIN.
3816 * dwarf2read.c (add_partial_symbol): Add nested subroutines to the
3817 global scope, update comment.
3818 (add_partial_subprogram): Call add_partial_subprogram recursively
3819 for nested subroutines when processinng Fortran.
3820 (load_partial_dies): Process the child entities of a subprogram
3821 when processing Fortran.
3822 (partial_die_parent_scope): Handle building scope
3823 for Fortran nested functions.
3824 (process_die): Record that nested functions have a scope.
3825 (new_symbol): Always record Fortran subprograms on the global
3826 symbol list.
3827 (determine_prefix): How to build the prefix for Fortran
3828 subprograms.
3829
d8c06f22
AB
38302019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
3831
3832 * linux-nat.c (linux_nat_filter_event): Don't ignore SIGSTOP if we
3833 have just sent the thread a SIGSTOP and are waiting for it to
3834 arrive.
3835
a8b3b8e9
AB
38362019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
3837
3838 * btrace.c (btrace_add_pc): Remove whitespace before the template
3839 parameter in 'std::vector <...>'.
3840 (parse_xml_btrace_block): Likewise.
3841 (btrace_maint_decode_pt): Likewise.
3842 (btrace_maint_update_packets): Likewise.
3843 (btrace_maint_print_packets): Likewise.
3844 * btrace.h (struct btrace_maint_info): Likewise.
3845 * dwarf2read.c (struct type_unit_group): Likewise.
3846 (build_type_psymtabs_reader): Likewise.
3847 * gdbsupport/btrace-common.c (btrace_data_append): Likewise.
3848 * gdbsupport/btrace-common.h (struct btrace_data_bts): Likewise.
3849 * nat/linux-btrace.c (perf_event_read_bts): Likewise.
3850
4d825eab
TV
38512019-10-03 Tom de Vries <tdevries@suse.de>
3852
3853 * cli/cli-style.c (_initialize_cli_style): Adding a '.' at the end of
3854 the first line of the help text for set/show style metadata.
3855
80fd2826
TT
38562019-10-02 Tom Tromey <tromey@adacore.com>
3857
3858 * Makefile.in (COMMON_SFILES): Add common-inferior.c.
3859 * gdbsupport/common-inferior.c: New file.
3860 * infcmd.c (startup_with_shell): Don't define.
3861 * nat/fork-inferior.h (startup_with_shell): Don't declare.
3862 * gdbsupport/common-inferior.h (startup_with_shell): Declare.
3863 * inferior.h (startup_with_shell): Don't declare.
3864
70054538
CB
38652019-10-02 Christian Biesinger <cbiesinger@google.com>
3866
3867 * gdbsupport/gdb_assert.h: Include errors.h.
3868 * gdbsupport/gdb_string_view.h: Include gdb_assert.h.
3869
37f6a7f4
TT
38702019-10-02 Tom Tromey <tromey@adacore.com>
3871
3872 * NEWS: Add $_ada_exception entry.
3873 * ada-lang.c (struct ada_catchpoint): Add constructor.
3874 <m_kind>: New member.
3875 (allocate_location_exception, re_set_exception): Remove
3876 "ex" parameter.
3877 (should_stop_exception): Compute $_ada_exception.
3878 (check_status_exception, print_it_exception)
3879 (print_one_exception, print_mention_exception): Remove
3880 "ex" parameter.
3881 (allocate_location_catch_exception, re_set_catch_exception)
3882 (check_status_exception, print_it_catch_exception)
3883 (print_one_catch_exception, print_mention_catch_exception)
3884 (print_recreate_catch_exception)
3885 (allocate_location_catch_exception_unhandled)
3886 (re_set_catch_exception_unhandled)
3887 (check_status_exception, print_it_catch_exception_unhandled)
3888 (print_one_catch_exception_unhandled)
3889 (print_mention_catch_exception_unhandled)
3890 (print_recreate_catch_exception_unhandled)
3891 (allocate_location_catch_assert, re_set_catch_assert)
3892 (check_status_assert, print_it_catch_assert)
3893 (print_one_catch_assert, print_mention_catch_assert)
3894 (print_recreate_catch_assert)
3895 (allocate_location_catch_handlers, re_set_catch_handlers)
3896 (check_status_handlers, print_it_catch_handlers)
3897 (print_one_catch_handlers, print_mention_catch_handlers)
3898 (print_recreate_catch_handlers): Remove.
3899 (create_ada_exception_catchpoint): Update.
3900 (initialize_ada_catchpoint_ops): Update.
3901
fccf9de1
TT
39022019-10-02 Tom Tromey <tromey@adacore.com>
3903
3904 * ada-lang.c (ada_lookup_simple_minsyms): Remove.
3905 (create_excep_cond_exprs): Simplify exception string computation.
3906 (ada_exception_catchpoint_cond_string): Likewise.
3907
4b610737
TT
39082019-10-02 Tom Tromey <tromey@adacore.com>
3909
3910 * symmisc.c (dump_msymbols): Don't use MSYMBOL_VALUE_ADDRESS.
3911 * ada-lang.c (lesseq_defined_than): Handle
3912 LOC_STATIC.
3913 * dwarf2read.c (dwarf2_per_objfile): Add can_copy
3914 parameter.
3915 (dwarf2_has_info): Likewise.
3916 (new_symbol): Set maybe_copied on symbol when
3917 appropriate.
3918 * dwarf2read.h (dwarf2_per_objfile): Add can_copy
3919 parameter.
3920 <can_copy>: New member.
3921 * elfread.c (record_minimal_symbol): Set maybe_copied
3922 on symbol when appropriate.
3923 (elf_symfile_read): Update call to dwarf2_has_info.
3924 * minsyms.c (lookup_minimal_symbol_linkage): New
3925 function.
3926 * minsyms.h (lookup_minimal_symbol_linkage): Declare.
3927 * symtab.c (get_symbol_address, get_msymbol_address):
3928 New functions.
3929 * symtab.h (get_symbol_address, get_msymbol_address):
3930 Declare.
3931 (SYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_ADDRESS): Handle
3932 maybe_copied.
3933 (struct symbol, struct minimal_symbol) <maybe_copied>:
3934 New member.
3935
1dd58850
TT
39362019-10-02 Tom Tromey <tromey@adacore.com>
3937
3938 * source.c (struct current_source_location): New.
3939 (current_source_key): New global.
3940 (current_source_symtab, current_source_line)
3941 (current_source_pspace): Remove.
3942 (get_source_location): New function.
3943 (get_current_source_symtab_and_line)
3944 (set_default_source_symtab_and_line)
3945 (set_current_source_symtab_and_line)
3946 (clear_current_source_symtab_and_line, select_source_symtab)
3947 (info_source_command, print_source_lines_base)
3948 (info_line_command, search_command_helper, _initialize_source):
3949 Update.
3950
5c281dbb
TT
39512019-10-02 Tom Tromey <tromey@adacore.com>
3952
3953 * source.c (select_source_symtab): Don't call
3954 decode_line_with_current_source.
3955
d3d32391
AB
39562019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
3957
3958 * symtab.c (lookup_global_symbol): Search global block.
3959
38583298
TT
39602019-10-02 Tom Tromey <tromey@adacore.com>
3961
3962 * coffread.c (process_coff_symbol): Update.
3963 * dwarf2read.c (var_decode_location, new_symbol): Update.
3964 * mdebugread.c (parse_symbol): Update.
3965 * objfiles.c (relocate_one_symbol): Update.
3966 * stabsread.c (define_symbol, fix_common_block)
3967 (scan_file_globals): Update.
3968 * symtab.h (SYMBOL_VALUE_ADDRESS): Expand to an rvalue.
3969 (SET_SYMBOL_VALUE_ADDRESS): New macro.
3970 * xcoffread.c (process_xcoff_symbol): Update.
3971
9344c18f
AA
39722019-10-02 Andreas Arnez <arnez@linux.ibm.com>
3973
3974 * MAINTAINERS: Update my email address.
3975
df07e2c7
AB
39762019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
3977
3978 * dwarf2read.c (struct type_unit_group) <tus>: Convert to
3979 std::vector.
3980 (build_type_psymtabs_reader): Update for std::vector.
3981 (build_type_psymtab_dependencies): Likewise.
3982 * dwarf2read.h: Remove use of DEF_VEC_P.
3983 (typedef sig_type_ptr): Delete.
3984
554ac434
AB
39852019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
3986
3987 * btrace.c (btrace_maint_clear): Update to handle change from VEC
3988 to std::vector.
3989 (btrace_maint_decode_pt): Likewise, and move allocation of the
3990 vector outside of the loop.
3991 (btrace_maint_update_packets): Update to handle change from VEC to
3992 std::vector.
3993 (btrace_maint_print_packets): Likewise.
3994 (maint_info_btrace_cmd): Likewise.
3995 * btrace.h: Remove use of DEF_VEC_O.
3996 (typedef btrace_pt_packet_s): Delete.
3997 (struct btrace_maint_info) <packets>: Change fromm VEC to
3998 std::vector.
3999 * gdbsupport/btrace-common.h: Remove 'vec.h' include.
4000
46f29a9a
AB
40012019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
4002
4003 * btrace.c (btrace_compute_ftrace_bts): Update for std::vector,
4004 make accesses into the vector constant references.
4005 (btrace_add_pc): Update for std::vector.
4006 (btrace_stitch_bts): Likewise.
4007 (parse_xml_btrace_block): Likewise.
4008 (btrace_maint_update_packets): Likewise.
4009 (btrace_maint_print_packets): Likewise.
4010 (maint_info_btrace_cmd): Likewise.
4011 * gdbsupport/btrace-common.c (btrace_data::fini): Update for
4012 std::vector.
4013 (btrace_data::empty): Likewise.
4014 (btrace_data_append): Likewise.
4015 * gdbsupport/btrace-common.h: Remove use of DEF_VEC_O.
4016 (typedef btrace_block_s): Delete.
4017 (struct btrace_block): Add constructor.
4018 (struct btrace_data_bts) <blocks>: Change to std::vector.
4019 * nat/linux-btrace.c (perf_event_read_bts): Update for
4020 std::vector.
4021 (linux_read_bts): Likewise.
4022
d770d56f
TT
40232019-10-01 Tom Tromey <tom@tromey.com>
4024
4025 * cli/cli-logging.c (show_logging_filename): Use styled_string.
4026
9d636d67
TT
40272019-10-01 Tom Tromey <tom@tromey.com>
4028
4029 * stack.c (print_frame, info_frame_command_core): Use
4030 styled_string.
4031 * linux-thread-db.c (try_thread_db_load_1)
4032 (try_thread_db_load_from_pdir_1): Use styled_string.
4033 * auto-load.c (file_is_auto_load_safe, execute_script_contents)
4034 (auto_load_section_scripts, info_auto_load_local_gdbinit)
4035 (maybe_print_unsupported_script_warning)
4036 (maybe_print_script_not_found_warning): Use styled_string.
4037 * ada-lang.c (user_select_syms): Use styled_string.
4038
7f6aba03
TT
40392019-10-01 Tom Tromey <tom@tromey.com>
4040
4041 * p-lang.c (pascal_printstr): Use metadata style.
4042 * value.c (show_convenience): Use metadata style.
4043 * valprint.c (valprint_check_validity, val_print_optimized_out)
4044 (val_print_not_saved, val_print_unavailable)
4045 (val_print_invalid_address, generic_val_print, val_print)
4046 (value_check_printable, val_print_array_elements): Use metadata
4047 style.
4048 * ui-out.h (class ui_out) <field_fmt>: New overload.
4049 <do_field_fmt>: Add style parameter.
4050 * ui-out.c (ui_out::field_fmt): New overload.
4051 * typeprint.c (type_print_unknown_return_type)
4052 (val_print_not_allocated, val_print_not_associated): Use metadata
4053 style.
4054 * tui/tui-out.h (class tui_ui_out) <do_field_fmt>: Add style
4055 parameter.
4056 * tui/tui-out.c (tui_ui_out::do_field_fmt): Update.
4057 * tracepoint.c (tvariables_info_1): Use metadata style.
4058 * stack.c (print_frame_arg, print_frame_info, print_frame)
4059 (info_frame_command_core): Use metadata style.
4060 * skip.c (info_skip_command): Use metadata style.
4061 * rust-lang.c (rust_print_enum): Use metadata style.
4062 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
4063 metadata style.
4064 * python/py-framefilter.c (py_print_single_arg): Use metadata
4065 style.
4066 * printcmd.c (do_one_display, print_variable_and_value): Use
4067 metadata style.
4068 * p-valprint.c (pascal_val_print)
4069 (pascal_object_print_value_fields): Use metadata style.
4070 * p-typeprint.c (pascal_type_print_base): Use metadata style.
4071 * mi/mi-out.h (class mi_ui_out) <do_field_fmt>: Add style
4072 parameter.
4073 * mi/mi-out.c (mi_ui_out::do_field_fmt): Update.
4074 * m2-valprint.c (m2_print_long_set): Use metadata style.
4075 * m2-typeprint.c (m2_print_type): Use metadata style.
4076 * infcmd.c (print_return_value_1): Use metadata style.
4077 * gnu-v3-abi.c (print_one_vtable): Use metadata style.
4078 * f-valprint.c (info_common_command_for_block): Use metadata
4079 style.
4080 * f-typeprint.c (f_type_print_base): Use metadata style.
4081 * expprint.c (print_subexp_standard): Use metadata style.
4082 * cp-valprint.c (cp_print_value_fields): Use metadata style.
4083 * cli/cli-style.h (class cli_style_option): Add constructor.
4084 (metadata_style): Declare.
4085 * cli/cli-style.c (metadata_style): New global.
4086 (_initialize_cli_style): Register metadata style.
4087 * cli-out.h (class cli_ui_out) <do_field_fmt>: Add style
4088 parameter.
4089 * cli-out.c (cli_ui_out::do_field_fmt): Update.
4090 * c-typeprint.c (c_type_print_base_struct_union)
4091 (c_type_print_base_1): Use metadata style.
4092 * breakpoint.c (watchpoint_value_print)
4093 (print_one_breakpoint_location): Use metadata style.
4094 * break-catch-syscall.c (print_one_catch_syscall): Use metadata
4095 style.
4096 * break-catch-sig.c (signal_catchpoint_print_one): Use metadata
4097 style.
4098 * ada-valprint.c (val_print_packed_array_elements, printstr)
4099 (print_field_values, ada_val_print_ref, ada_val_print): Use
4100 metadata style.
4101 * ada-typeprint.c (print_array_type, ada_print_type): Use metadata
4102 style.
4103 * ada-tasks.c (print_ada_task_info, info_task): Use metadata
4104 style.
4105 * ada-lang.c (user_select_syms): Use metadata style.
4106
14309bb6
TT
41072019-10-01 Tom Tromey <tom@tromey.com>
4108
4109 * cli/cli-cmds.c (pwd_command): Style output.
4110
6a831f06
PA
41112019-10-01 Pedro Alves <palves@redhat.com>
4112 Tom Tromey <tom@tromey.com>
4113
4114 * symtab.c (print_symbol_info): Use %ps.
4115 (print_msymbol_info): Use %ps.
4116 * symfile.c (symbol_file_add_with_addrs): Use %ps.
4117 * printcmd.c (print_variable_and_value): Use %ps.
4118 * macrocmd.c (show_pp_source_pos): Use %ps.
4119 * infrun.c (print_exited_reason): Use ui_out::message.
4120 * breakpoint.c (watchpoint_check, print_one_breakpoint_location)
4121 (describe_other_breakpoints): Use ui_out::message and new
4122 formats.
4123 (say_where): Use new formats.
4124 (bkpt_print_it, tracepoint_print_one_detail): Use ui_out::message
4125 and new formats.
4126
2a3c1174
PA
41272019-10-01 Pedro Alves <palves@redhat.com>
4128 Tom Tromey <tom@tromey.com>
4129
4130 * unittests/format_pieces-selftests.c: Add gdb_format parameter.
4131 (test_gdb_formats): New function.
4132 (run_tests): Call it.
4133 (test_format_specifier): Update.
4134 * utils.h (fputs_filtered): Update comment.
4135 (vfprintf_styled, vfprintf_styled_no_gdbfmt)
4136 (fputs_styled_unfiltered): Declare.
4137 * utils.c (fputs_styled_unfiltered): New function.
4138 (vfprintf_maybe_filtered): Add gdbfmt parameter.
4139 (vfprintf_filtered): Update.
4140 (vfprintf_unfiltered, vprintf_filtered): Update.
4141 (vfprintf_styled, vfprintf_styled_no_gdbfmt): New functions.
4142 * ui-out.h (enum ui_out_flag) <unfiltered_output,
4143 disallow_ui_out_field>: New constants.
4144 (enum class field_kind): New.
4145 (struct base_field_s, struct signed_field_s): New.
4146 (signed_field): New function.
4147 (struct string_field_s): New.
4148 (string_field): New function.
4149 (struct styled_string_s): New.
4150 (styled_string): New function.
4151 (class ui_out) <message>: Add comment.
4152 <vmessage, call_do_message>: New methods.
4153 <do_message>: Add style parameter.
4154 * ui-out.c (ui_out::call_do_message, ui_out::vmessage): New
4155 methods.
4156 (ui_out::message): Rewrite.
4157 * mi/mi-out.h (class mi_ui_out) <do_message>: Add style
4158 parameter.
4159 * mi/mi-out.c (mi_ui_out::do_message): Add style parameter.
4160 * gdbsupport/format.h (class format_pieces) <format_pieces>: Add
4161 gdb_extensions parameter.
4162 (class format_piece): Add parameter to constructor.
4163 (n_int_args): New field.
4164 * gdbsupport/format.c (format_pieces::format_pieces): Add
4165 gdb_extensions parameter. Handle '*'.
4166 * cli-out.h (class cli_ui_out) <do_message>: Add style parameter.
4167 * cli-out.c (cli_ui_out::do_message): Add style parameter. Call
4168 vfprintf_styled_no_gdbfmt.
4169 (cli_ui_out::do_field_string, cli_ui_out::do_spaces)
4170 (cli_ui_out::do_text, cli_ui_out::field_separator): Allow
4171 unfiltered output.
4172 * ui-style.h (struct ui_file_style) <ptr>: New method.
4173
0dfe5bfb
TT
41742019-10-01 Tom Tromey <tom@tromey.com>
4175
4176 * unittests/format_pieces-selftests.c: Update. Add final format.
4177 * gdbsupport/format.c (format_pieces::format_pieces): Don't add
4178 empty literal pieces.
4179
e43b10e1
TT
41802019-10-01 Tom Tromey <tom@tromey.com>
4181
4182 * ui-out.h (enum class ui_out_style_kind): Remove.
4183 (class ui_out) <field_string, field_stsream, do_field_string>:
4184 Change type of "style".
4185 * ui-out.c (ui_out::field_core_addr, ui_out::field_stream)
4186 (ui_out::field_string): Update.
4187 * tui/tui-out.h (class tui_ui_out) <do_field_string>: Change type
4188 of "style".
4189 * tui/tui-out.c (tui_ui_out::do_field_string): Update.
4190 * tracepoint.c (print_one_static_tracepoint_marker): Update.
4191 * stack.c (print_frame_arg, print_frame_info, print_frame):
4192 Update.
4193 * source.c (print_source_lines_base): Update.
4194 * solib.c (info_sharedlibrary_command): Update.
4195 * skip.c (info_skip_command): Update.
4196 * record-btrace.c (btrace_call_history_src_line)
4197 (btrace_call_history): Update.
4198 * python/py-framefilter.c (py_print_frame): Update.
4199 * mi/mi-out.h (class mi_ui_out) <do_field_string>: Change type of
4200 "style".
4201 * mi/mi-out.c (mi_ui_out::do_table_header)
4202 (mi_ui_out::do_field_signed, mi_ui_out::do_field_unsigned)
4203 (mi_ui_out::do_field_string): Update.
4204 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
4205 Update.
4206 * cli-out.h (class cli_ui_out) <do_field_string>: Change type of
4207 "style".
4208 * cli-out.c (cli_ui_out::do_table_header)
4209 (cli_ui_out::do_field_signed, cli_ui_out::do_field_unsigned)
4210 (cli_ui_out::do_field_skip, cli_ui_out::do_field_string)
4211 (cli_ui_out::do_field_fmt): Update.
4212 * breakpoint.c (print_breakpoint_location): Update.
4213 (update_static_tracepoint): Update.
4214
cd7c32c3
PW
42152019-10-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4216
4217 * main.c (relocate_gdbinit_path_maybe_in_datadir): Remove std::string
4218 conversion of gdb_datadir.
4219 (captured_main_1): Remove xstrdup when assigning to gdb_datadir,
4220 remove not needed c_str ().
4221
8fe0f950
AT
42222019-09-30 Ali Tamur <tamur@google.com>
4223
4224 * dwarf2read.c (skip_one_die): Handle DW_FORM_strx forms.
4225 (dwarf2_string_attr): Likewise.
4226
5f48f8f3
AT
42272019-09-30 Ali Tamur <tamur@google.com>
4228
4229 * dwarf2read.c (process_full_comp_unit): Remove whitespace at the EOL.
4230 (process_full_type_unit): Likewise.
4231 (dump_die_shallow): Likewise.
4232 (cu_debug_loc_section): Likewise.
4233
6fb08628
CB
42342019-09-28 Christian Biesinger <cbiesinger@google.com>
4235
4236 * minsyms.c (compare_minimal_symbols): Rename to...
4237 (minimal_symbol_is_less_than): ...this, and adjust to STL
4238 conventions (return bool, take arguments as references)
4239 (minimal_symbol_reader::install): Call std::sort instead
4240 of qsort.
4241
c7ee338a
CB
42422019-09-29 Christian Biesinger <cbiesinger@google.com>
4243
4244 * minsyms.h (msymbol_hash): Document that this is a case-insensitive
4245 hash and why.
4246 * objfiles.h (struct objfile_per_bfd_storage) <demangled_names_hash,
4247 msymbol_hash, msymbol_demangled_hash>: Improve comments.
4248
703a86c2
SM
42492019-09-30 Simon Marchi <simon.marchi@polymtl.ca>
4250
4251 * psymtab.c (add_psymbol_to_list): Move comment to psympriv.h.
4252 * psympriv.h (add_psymbol_to_list): Move comment here and update
4253 it.
4254
0df0352a
TV
42552019-09-29 Tom de Vries <tdevries@suse.de>
4256
4257 * contrib/cc-with-tweaks.sh (get_tmpdir): New function.
4258 Use $tmpdir/$(basename "$output_file").dwz instead of
4259 "${output_file}.dwz".
4260
ad75efa6
SM
42612019-09-28 Simon Marchi <simon.marchi@polymtl.ca>
4262
4263 PR gdb/25045
4264 * hppa-linux-nat.c: Include gdbarch.h.
4265
ececd218
CB
42662019-09-26 Christian Biesinger <cbiesinger@google.com>
4267
4268 * blockframe.c (find_pc_partial_function): Change return type to bool.
4269 * elfread.c (elf_gnu_ifunc_resolve_name): Likewise.
4270 * minsyms.c (in_gnu_ifunc_stub): Likewise.
4271 (stub_gnu_ifunc_resolve_name): Likewise.
4272 * symtab.c (compare_filenames_for_search): Likewise.
4273 (compare_glob_filenames_for_search): Likewise.
4274 (matching_obj_sections): Likewise.
4275 (symbol_matches_domain): Likewise.
4276 (find_line_symtab): Change out param EXACT_MATCH to bool *.
4277 (find_line_pc): Change return type to bool.
4278 (find_line_pc_range): Likewise.
4279 (producer_is_realview): Likewise.
4280 * symtab.h (symbol_matches_domain): Likewise.
4281 (find_pc_partial_function): Likewise.
4282 (find_pc_line_pc_range): Likewise.
4283 (in_gnu_ifunc_stub): Likewise.
4284 (struct gnu_ifunc_fns) <gnu_ifunc_resolve_name>: Likewise.
4285 (find_line_pc): Likewise.
4286 (find_line_pc_range): Likewise.
4287 (matching_obj_sections): Likewise.
4288 (find_line_symtab): Change out parameter to bool.
4289 (producer_is_realview): Change return type to bool.
4290 (compare_filenames_for_search): Likewise.
4291 (compare_glob_filenames_for_search): Likewise.
4292
27a900b8
TT
42932019-09-26 Tom Tromey <tom@tromey.com>
4294
4295 * Makefile.in (COMMON_SFILES): Remove gdb_usleep.c.
4296 (HFILES_NO_SRCDIR): Remove gdb_usleep.h.
4297 * gdb_usleep.h: Remove.
4298 * gdb_usleep.c: Remove.
4299 * utils.c: Don't include gdb_usleep.h.
4300
5d63b30a
TT
43012019-09-26 Tom Tromey <tromey@adacore.com>
4302
4303 * python/py-type.c (type_to_type_object): Call check_typedef
4304 for stub types.
4305
12904d37
TT
43062019-09-26 Tom Tromey <tom@tromey.com>
4307
4308 * utils.h (initialize_utils): Don't declare.
4309 * top.c (gdb_init): Don't call initialize_utils.
4310 * utils.c (initialize_utils): Remove. Move contents...
4311 (_initialize_utils): ... here.
4312
858f25f0
TT
43132019-09-25 Tom Tromey <tom@tromey.com>
4314
4315 * python/py-objfile.c (objfpy_get_build_id): Use bin2hex.
4316 * utils.h (make_hex_string): Don't declare.
4317 * utils.c (make_hex_string): Remove.
4318
3d435220
TV
43192019-09-24 Tom de Vries <tdevries@suse.de>
4320
4321 PR gdb/23815
4322 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers):
4323 Initialize xstateregs before ptrace PTRACE_GETREGSET call.
4324
ddd44b70
DD
43252019-09-23 Dimitar Dimitrov <dimitar@dinux.eu>
4326
4327 * NEWS: Mention new simulator port for PRU.
4328
f945dedf
CB
43292019-09-23 Christian Biesinger <cbiesinger@google.com>
4330
4331 * ada-exp.y (write_object_remaining): Update.
4332 * ada-lang.c (ada_decode): Return a std::string instead of a char*
4333 and eliminate the static buffer.
4334 (ada_decode_symbol): Update.
4335 (ada_la_decode): Update.
4336 (ada_sniff_from_mangled_name): Update.
4337 (is_valid_name_for_wild_match): Update.
4338 (ada_lookup_name_info::matches): Update and simplify.
4339 (name_matches_regex): Update.
4340 (ada_add_global_exceptions): Update.
4341 * ada-lang.h (ada_decode): Update signature.
4342 * ada-varobj.c (ada_varobj_describe_simple_array_child): Update.
4343 * dwarf-index-write.c (debug_names::insert): Update.
4344
7ab78ccb
SM
43452019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
4346
4347 * solib-svr4.c (svr4_iterate_over_objfiles_in_search_order): Fix
4348 formatting.
4349
9252448b
SM
43502019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
4351
4352 * breakpoint.h (bp_location) <inserted, permanent, duplicate>:
4353 Change "nonzero" to "true" in documentation.
4354
626ca2c0
CB
43552019-09-20 Christian Biesinger <cbiesinger@google.com>
4356
4357 * solib-darwin.c (darwin_lookup_lib_symbol): Remove.
4358 (_initialize_darwin_solib): Don't set
4359 darwin_so_ops.lookup_lib_global_symbol.
4360 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets): Call
4361 set_gdbarch_iterate_over_objfiles_in_search_order.
4362 (elf_lookup_lib_symbol): Rename to...
4363 (svr4_iterate_over_objfiles_in_search_order): this, and update
4364 to iterate semantics.
4365 (_initialize_svr4_solib): Don't set lookup_lib_global_symbol.
4366 * solib.c (solib_global_lookup): Remove.
4367 * solist.h (struct target_so_ops): Remove lookup_lib_global_symbol.
4368 (solib_global_lookup): Remove.
4369 * symtab.c (lookup_global_or_static_symbol): Remove call to
4370 solib_global_lookup.
4371
5a3a0d63
JB
43722019-09-20 Joel Brobecker <brobecker@adacore.com>
4373
4374 * NEWS: Move entries about default MI version now being
4375 version 3, and about the GDB/MI fix for multi-location
4376 breakpoints to the "since GDB 8.3" section.
4377
ffea1427
JB
43782019-09-20 Joel Brobecker <brobecker@adacore.com>
4379
4380 GDB 8.3.1 released.
4381
abf516c6
UW
43822019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
4383
4384 * NEWS: Mention that Cell/B.E. debugging support was removed.
4385 * MAINTAINERS: Remove spu target.
4386
4387 * config/djgpp/fnchange.lst: Remove entries for removed files.
4388
4389 * Makefile.in (ALL_TARGET_OBS): Remove solib-spu.o,
4390 spu-multiarch.o, and spu-tdep.o.
4391 (HFILES_NO_SRCDIR): Remove solib-spu.h and spu-tdep.h.
4392 (ALLDEPFILES): Remove solib-spu.c, spu-linux-nat.c,
4393 spu-multiarch.c, and spu-tdep.c.
4394 * spu-linux-nat.c: Remove file.
4395 * spu-multiarch.c: Remove file.
4396 * spu-tdep.c: Remove file.
4397 * spu-tdep.h: Remove file.
4398 * solib-spu.c: Remove file.
4399 * solib-spu.h: Remove file.
4400
4401 * configure.host (powerpc64*-*-linux*): Remove Cell/B.E. support.
4402 * configure.nat (spu-linux): Remove.
4403 * configure.tgt (powerpc*-*-linux*): Remove solib-spu.o and
4404 solib-multiarch.o from gdb_target_obs.
4405 (spu*-*-*): Remove.
4406
4407 * arch/ppc-linux-common.h (struct ppc_linux_features): Remove "cell"
4408 feature flag.
4409 (ppc_linux_no_features): Update.
4410 * arch/ppc-linux-common.c (ppc_linux_match_description): Remove
4411 Cell/B.E. support.
4412 * arch/ppc-linux-tdesc.h (tdesc_powerpc_cell32l): Remove declaration.
4413 (tdesc_powerpc_cell64l): Likewise.
4414 * nat/ppc-linux.h (PPC_FEATURE_CELL): Remove.
4415 * ppc-linux-nat.c (ppc_linux_nat_target::read_description): Remove
4416 Cell/B.E. support.
4417 * ppc-linux-tdep.h: Do not include "solib-spu.h" or "spu-tdep.h".
4418 Do not include "features/rs6000/powerpc-cell32l.c" or
4419 "features/rs6000/powerpc-cell64l.c".
4420 (ppc_linux_spu_section): Remove.
4421 (ppc_linux_core_read_description): Remove Cell/B.E. support.
4422 (spe_context_objfile, spe_context_lm_addr, spe_context_offset,
4423 spe_context_cache_ptid, spe_context_cache_ptid): Remove.
4424 (ppc_linux_spe_context_lookup): Remove.
4425 (ppc_linux_spe_context_inferior_created): Remove.
4426 (ppc_linux_spe_context_solib_loaded): Remove.
4427 (ppc_linux_spe_context_solib_unloaded): Remove.
4428 (ppc_linux_spe_context): Remove.
4429 (struct ppu2spu_cache): Remove.
4430 (ppu2spu_prev_arch, ppu2spu_this_id, ppu2spu_prev_register): Remove.
4431 (struct ppu2spu_data): Remove.
4432 (ppu2spu_unwind_register, ppu2spu_sniffer, ppu2spu_dealloc_cache,
4433 ppu2spu_unwind): Remove.
4434 (ppc_linux_init_abi): Remove Cell/B.E. support.
4435 * rs6000-tdep.h (rs6000_gdbarch_init): Remove Cell/B.E. support.
4436
4437 * features/Makefile (rs6000/powerpc-cell32l-expedite): Remove.
4438 (rs6000/powerpc-cell64l-expedite): Likewise
4439 (WHICH): Remove rs6000/powerpc-cell32l and rs6000/powerpc-cell64l.
4440 (XMLTOC): Remove rs6000/powerpc-cell32l.xml and
4441 rs6000/powerpc-cell64l.xml.
4442 * features/rs6000/powerpc-cell32l.xml: Remove.
4443 * features/rs6000/powerpc-cell64l.xml: Likewise.
4444 * features/rs6000/powerpc-cell32l.c: Remove generated file.
4445 * features/rs6000/powerpc-cell64l.c: Likewise.
4446 * regformats/rs6000/powerpc-cell32l.dat: Remove generated file.
4447 * regformats/rs6000/powerpc-cell64l.dat: Likewise.
4448 * regformats/reg-spu.dat: Remove.
4449
4450 * target.h (enum target_object): Remove TARGET_OBJECT_SPU.
4451 * corelow.c (struct spuid_list): Remove.
4452 (add_to_spuid_list): Remove.
4453 (core_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
4454 * remote.c (PACKET_qXfer_spu_read, PACKET_qXfer_spu_write): Remove.
4455 (remote_protocol_features): Remove associated entries.
4456 (_initialize_remote): No longer initialize them.
4457 (remote_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
4458 * linux-nat.c (SPUFS_MAGIC): Remove.
4459 (linux_proc_xfer_spu): Remove.
4460 (spu_enumerate_spu_ids): Remove.
4461 (linux_nat_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
4462 * linux-tdep.c (-linux_spu_make_corefile_notes): Remove.
4463 (linux_make_corefile_notes): No longer call it.
4464
4465 * regcache.c (cooked_read_test): Remove bfd_arch_spu special case.
4466 (cooked_write_test): Likewise.
4467
78e8cb91
TT
44682019-09-20 Tom Tromey <tom@tromey.com>
4469
4470 * NEWS: Mention case-sensitivity of TUI commands.
4471 * tui/tui-win.c (tui_set_focus_command): Now case-sensitive.
4472 (tui_set_win_height_command, parse_scrolling_args): Likewise.
4473 * tui/tui-layout.c (tui_layout_command): Now case-sensitive.
4474
f074b67e
TT
44752019-09-20 Tom Tromey <tom@tromey.com>
4476
4477 * tui/tui-source.c (tui_source_window::set_contents): Use
4478 make_unique_xstrdup.
4479 * tui/tui-disasm.c (tui_disasm_window::set_contents): Use
4480 make_unique_xstrdup.
4481
63c4bf19
TT
44822019-09-20 Tom Tromey <tom@tromey.com>
4483
4484 * tui/tui-data.c: Remove separator comments.
4485 * tui/tui-layout.c: Remove separator comments.
4486 * tui/tui-win.c: Remove separator comments.
4487 * tui/tui-wingeneral.c: Remove separator comments.
4488
43df9b2f
TT
44892019-09-20 Tom Tromey <tom@tromey.com>
4490
4491 * tui/tui.h (strcat_to_buf): Don't declare.
4492 * tui/tui.c (strcat_to_buf): Remove.
4493
7226433c
TT
44942019-09-20 Tom Tromey <tom@tromey.com>
4495
4496 * tui/tui-source.h (struct tui_source_window) <m_fullname>: Rename
4497 from "fullname".
4498 * tui/tui-source.c (tui_source_window::set_contents)
4499 (tui_source_window::location_matches_p)
4500 (tui_source_window::maybe_update): Update.
4501
80df3337
TT
45022019-09-20 Tom Tromey <tom@tromey.com>
4503
4504 * tui/tui-regs.h (struct tui_data_window) <get_current_group>:
4505 Update.
4506 <m_regs_content, m_regs_column_count, m_current_group>: Add "m_"
4507 prefix.
4508 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
4509 (tui_data_window::line_from_reg_element_no)
4510 (tui_data_window::first_reg_element_no_inline)
4511 (tui_data_window::show_registers)
4512 (tui_data_window::show_register_group)
4513 (tui_data_window::display_registers_from)
4514 (tui_data_window::display_registers_from_line)
4515 (tui_data_window::first_data_item_displayed)
4516 (tui_data_window::delete_data_content_windows)
4517 (tui_data_window::erase_data_content)
4518 (tui_data_window::do_scroll_vertical)
4519 (tui_data_window::refresh_window)
4520 (tui_data_window::check_register_values): Update.
4521
9923f347
TT
45222019-09-20 Tom Tromey <tom@tromey.com>
4523
4524 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN): Remove define.
4525 (struct tui_locator_window) <full_name, proc_name>: Now
4526 std::string.
4527 * tui/tui-stack.c (tui_locator_window::make_status_line)
4528 (tui_locator_window::set_locator_fullname)
4529 (tui_locator_window::set_locator_info): Update.
4530 * tui/tui-source.c (tui_source_window::set_contents)
4531 (tui_source_window::showing_source_p): Update.
4532
b76251ab
TT
45332019-09-20 Tom Tromey <tom@tromey.com>
4534
4535 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
4536 Don't call tui_locator_win_info_ptr.
4537
0891be08
TT
45382019-09-20 Tom Tromey <tom@tromey.com>
4539
4540 * tui/tui-win.c (tui_resize_all): Don't call refresh.
4541
1b935acf
TT
45422019-09-20 Tom Tromey <tom@tromey.com>
4543
4544 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use 1 as
4545 height for locator.
4546 * tui/tui-stack.c (tui_locator_window::rerender): Call scrollok.
4547 * tui/tui-layout.c (show_source_disasm_command, show_data)
4548 (show_source_or_disasm_and_command): Use 1 as height for locator.
4549
9abd8a65
TT
45502019-09-20 Tom Tromey <tom@tromey.com>
4551
4552 * tui/tui.c (tui_enable): Update.
4553 * tui/tui-win.c (tui_sigwinch_handler, tui_async_resize_screen):
4554 Update.
4555 * tui/tui-data.h (tui_win_resized, tui_set_win_resized_to):
4556 Update.
4557 * tui/tui-data.c (win_resized): Now bool.
4558 (tui_win_resized): Return bool.
4559 (tui_set_win_resized_to): Accept a bool.
4560
b5457826
TT
45612019-09-20 Tom Tromey <tom@tromey.com>
4562
4563 * tui/tui-regs.h (struct tui_data_window) <show_register_group>:
4564 Change type of "refresh_values_only".
4565 * tui/tui-regs.c (tui_data_window::show_register_group): Change
4566 type of "refresh_values_only".
4567
6b915f7d
TT
45682019-09-20 Tom Tromey <tom@tromey.com>
4569
4570 * tui/tui-disasm.c (struct tui_asm_line) <addr_string, insn>: Now
4571 std::string.
4572 (tui_disassemble): Add "pos" parameter.
4573 (tui_disasm_window::set_contents): Simplify.
4574
2ad52f6f
TT
45752019-09-20 Tom Tromey <tom@tromey.com>
4576
4577 * tui/tui-winsource.h (struct tui_source_window_base)
4578 <show_source_content>: Now private.
4579 * tui/tui-winsource.c
4580 (tui_source_window_base::show_source_content): Don't handle empty
4581 content case.
4582
b3b1bde6
TT
45832019-09-20 Tom Tromey <tom@tromey.com>
4584
4585 * tui/tui-layout.c (show_source_disasm_command)
4586 (show_source_or_disasm_and_command): Don't call
4587 show_source_content.
4588
71a25ed2
TT
45892019-09-20 Tom Tromey <tom@tromey.com>
4590
4591 * tui/tui-stack.h (struct tui_locator_window) <make_status_line>:
4592 Declare.
4593 * tui/tui-stack.c (tui_locator_window::make_status_line): Rename
4594 from tui_make_status_line.
4595 (tui_locator_window::rerender): Update.
4596
f8532154
TT
45972019-09-20 Tom Tromey <tom@tromey.com>
4598
4599 * tui/tui-stack.c (tui_make_status_line): Return std::string.
4600 (tui_locator_window::rerender): Update.
4601
2d81b349
TT
46022019-09-20 Tom Tromey <tom@tromey.com>
4603
4604 * tui/tui-winsource.h (struct tui_source_window_base)
4605 <~tui_source_window_base>: Don't declare.
4606 <fullname>: Remove.
4607 * tui/tui-winsource.c (~tui_source_window_base): Remove.
4608 * tui/tui-source.h (struct tui_source_window) <fullname>: New
4609 member.
4610 * tui/tui-source.c (tui_source_window::set_contents): Update.
4611 (tui_source_window::location_matches_p)
4612 (tui_source_window::maybe_update): Update.
4613
f14bec58
TT
46142019-09-20 Tom Tromey <tom@tromey.com>
4615
4616 * tui/tui-winsource.h (~tui_source_element): Remove.
4617 (tui_source_element): Update.
4618 (struct tui_source_element) <line>: Now a unique_xmalloc_ptr.
4619 * tui/tui-winsource.c (tui_show_source_line): Update.
4620 * tui/tui-source.c (tui_source_window::set_contents): Update.
4621 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
4622
78d5933a
TT
46232019-09-20 Tom Tromey <tom@tromey.com>
4624
4625 * tui/tui-data.h (tui_clear_source_windows_detail): Don't
4626 declare.
4627 * tui/tui-layout.c (tui_add_win_to_layout): Don't call
4628 tui_clear_source_windows_detail.
4629 * tui/tui-winsource.h (struct tui_source_window_base)
4630 <clear_detail>: Don't declare.
4631 * tui/tui-winsource.c (tui_source_window_base::clear_detail):
4632 Remove.
4633 * tui/tui-data.c (tui_clear_source_windows_detail): Remove.
4634
d4207696
TT
46352019-09-20 Tom Tromey <tromey@adacore.com>
4636
4637 PR ada/24919:
4638 * block.c (contained_in): Fix final return value.
4639
00f93c44
AM
46402019-09-20 Alan Modra <amodra@gmail.com>
4641
4642 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Use bfd_set_usrdata.
4643 * dwarf2read.c (dwarf2_read_gdb_index, dwarf2_read_debug_names),
4644 (read_indirect_string_from_dwz): Use bfd accessor.
4645 * dwarf2read.h (struct dwz_file <filename>): Likewise.
4646 * machoread.c (macho_symfile_read_all_oso): Likewise.
4647 * solib.c (solib_bfd_open): Likewise.
4648
e4153ae6
CB
46492019-09-19 Christian Biesinger <cbiesinger@google.com>
4650
4651 * eval.c: Move declaration of overload_resolution to...
4652 * value.h: ...here.
4653
c7ae7675
CB
46542019-09-19 Christian Biesinger <cbiesinger@google.com>
4655
4656 * arm-linux-nat.c: Remove extern declaration for arm_apcs_32.
4657 * arm-linux-tdep.c: Likewise.
4658 * arm-nbsd-nat.c: Likewise.
4659 * arm-tdep.h: Declare arm_apcs_32.
4660 * arm-tdep.c: Move documentation for arm_apcs_32 to arm-tdep.h.
4661
e86f08d2
CB
46622019-09-19 Christian Biesinger <cbiesinger@google.com>
4663
4664 * dwarf2loc.c: Remove extern declaration of dwarf_always_disassemble.
4665 * dwarf2read.h: Declare dwarf_always_disassemble.
4666
f64e2f40
TV
46672019-09-19 Tom de Vries <tdevries@suse.de>
4668
4669 PR gdb/25009
4670 * source-cache.c (source_cache::ensure): Catch exception thrown during
4671 construction of the highlighter.
4672
fd361982
AM
46732019-09-18 Alan Modra <amodra@gmail.com>
4674
4675 * aarch64-linux-tdep.c, * arm-tdep.c, * auto-load.c,
4676 * coff-pe-read.c, * coffread.c, * corelow.c, * dbxread.c,
4677 * dicos-tdep.c, * dwarf2-frame.c, * dwarf2read.c, * elfread.c,
4678 * exec.c, * fbsd-tdep.c, * gcore.c, * gdb_bfd.c, * gdb_bfd.h,
4679 * hppa-tdep.c, * i386-cygwin-tdep.c, * i386-fbsd-tdep.c,
4680 * i386-linux-tdep.c, * jit.c, * linux-tdep.c, * machoread.c,
4681 * maint.c, * mdebugread.c, * minidebug.c, * mips-linux-tdep.c,
4682 * mips-sde-tdep.c, * mips-tdep.c, * mipsread.c, * nto-tdep.c,
4683 * objfiles.c, * objfiles.h, * osabi.c, * ppc-linux-tdep.c,
4684 * ppc64-tdep.c, * record-btrace.c, * record-full.c, * remote.c,
4685 * rs6000-aix-tdep.c, * rs6000-tdep.c, * s390-linux-tdep.c,
4686 * s390-tdep.c, * solib-aix.c, * solib-dsbt.c, * solib-frv.c,
4687 * solib-spu.c, * solib-svr4.c, * solib-target.c,
4688 * spu-linux-nat.c, * spu-tdep.c, * symfile-mem.c, * symfile.c,
4689 * symmisc.c, * symtab.c, * target.c, * windows-nat.c,
4690 * xcoffread.c, * cli/cli-dump.c, * compile/compile-object-load.c,
4691 * mi/mi-interp.c: Update throughout for bfd section macro and
4692 function changes.
4693 * gcore (gcore_create_callback): Use bfd_set_section_lma.
4694 * spu-tdep.c (spu_overlay_new_objfile): Likewise.
4695
11061048
TT
46962019-09-18 Tom Tromey <tom@tromey.com>
4697
4698 * NEWS: Add entry.
4699 * tui/tui.c (tui_initialize_readline): Set name of keymap. Do not
4700 call rl_initialize.
4701 (tui_enable): Do not call rl_initialize.
4702
7a27b85f
CG
47032019-09-18 Christian Groessler <chris@groessler.org>
4704
4705 * alpha-linux-nat.c: Include gdbarch.h.
4706
f64eea3a
SM
47072019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
4708
4709 * ui-file.c: Include cli/cli-style.h.
4710 (term_cli_styling): Remove cli_styling declaration.
4711
e6f7f6d1
AM
47122019-09-18 Alan Modra <amodra@gmail.com>
4713
4714 * arm-tdep.c (arm_record_special_symbol): Update bfd_get_section
4715 to bfd_asymbol_section.
4716
1d38e9d1
AM
47172019-09-18 Alan Modra <amodra@gmail.com>
4718
4719 * amd64-dicos-tdep.c (amd64_dicos_osabi_sniffer): Constify target.
4720 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
4721 * i386-dicos-tdep.c (i386_dicos_osabi_sniffer): Likewise.
4722
90d92a63
AM
47232019-09-18 Alan Modra <amodra@gmail.com>
4724
4725 * solib-spu.c (spu_bfd_open): Use bfd_set_filename.
4726 * spu-linux-nat.c (spu_bfd_open): Likewise.
4727
a3d181d2
CB
47282019-09-18 Christian Biesinger <cbiesinger@google.com>
4729
4730 * dwarf2loc.c: Change extern declaration of dwarf_always_disassemble
4731 to bool to match definition in dwarf2read.c.
4732
491144b5
CB
47332019-09-17 Christian Biesinger <cbiesinger@google.com>
4734
4735 * ada-lang.c (ada_ignore_descriptive_types_p): Change to bool.
4736 (print_signatures): Likewise.
4737 (trust_pad_over_xvs): Likewise.
4738 * arch/aarch64-insn.c (aarch64_debug): Likewise.
4739 * arch/aarch64-insn.h (aarch64_debug): Likewise.
4740 * arm-linux-nat.c (arm_apcs_32): Likewise.
4741 * arm-linux-tdep.c (arm_apcs_32): Likewise.
4742 * arm-nbsd-nat.c (arm_apcs_32): Likewise.
4743 * arm-tdep.c (arm_debug): Likewise.
4744 (arm_apcs_32): Likewise.
4745 * auto-load.c (debug_auto_load): Likewise.
4746 (auto_load_gdb_scripts): Likewise.
4747 (global_auto_load): Likewise.
4748 (auto_load_local_gdbinit): Likewise.
4749 (auto_load_local_gdbinit_loaded): Likewise.
4750 * auto-load.h (global_auto_load): Likewise.
4751 (auto_load_local_gdbinit): Likewise.
4752 (auto_load_local_gdbinit_loaded): Likewise.
4753 * breakpoint.c (disconnected_dprintf): Likewise.
4754 (breakpoint_proceeded): Likewise.
4755 (automatic_hardware_breakpoints): Likewise.
4756 (always_inserted_mode): Likewise.
4757 (target_exact_watchpoints): Likewise.
4758 (_initialize_breakpoint): Update.
4759 * breakpoint.h (target_exact_watchpoints): Change to bool.
4760 * btrace.c (maint_btrace_pt_skip_pad): Likewise.
4761 * cli/cli-cmds.c (trace_commands): Likewise.
4762 * cli/cli-cmds.h (trace_commands): Likewise.
4763 * cli/cli-decode.c (add_setshow_boolean_cmd): Change int* argument
4764 to bool*.
4765 * cli/cli-logging.c (logging_overwrite): Change to bool.
4766 (logging_redirect): Likewise.
4767 (debug_redirect): Likewise.
4768 * cli/cli-option.h (option_def) <boolean>: Change return type to bool*.
4769 (struct boolean_option_def) <get_var_address_cb_>: Change return type
4770 to bool.
4771 <boolean_option_def>: Update.
4772 (struct flag_option_def): Change default type of Context to bool
4773 from int.
4774 <flag_option_def>: Change return type of var_address_cb_ to bool*.
4775 * cli/cli-setshow.c (do_set_command): Cast to bool* instead of int*.
4776 (get_setshow_command_value_string): Likewise.
4777 * cli/cli-style.c (cli_styling): Change to bool.
4778 (source_styling): Likewise.
4779 * cli/cli-style.h (source_styling): Likewise.
4780 (cli_styling): Likewise.
4781 * cli/cli-utils.h (struct qcs_flags) <quiet, cont, silent>: Change
4782 to bool.
4783 * command.h (var_types): Update comment.
4784 (add_setshow_boolean_cmd): Change int* var argument to bool*.
4785 * compile/compile-cplus-types.c (debug_compile_cplus_types): Change to
4786 bool.
4787 (debug_compile_cplus_scopes): Likewise.
4788 * compile/compile-internal.h (compile_debug): Likewise.
4789 * compile/compile.c (compile_debug): Likewise.
4790 (struct compile_options) <raw>: Likewise.
4791 * cp-support.c (catch_demangler_crashes): Likewise.
4792 * cris-tdep.c (usr_cmd_cris_version_valid): Likewise.
4793 (usr_cmd_cris_dwarf2_cfi): Likewise.
4794 * csky-tdep.c (csky_debug): Likewise.
4795 * darwin-nat.c (enable_mach_exceptions): Likewise.
4796 * dcache.c (dcache_enabled_p): Likewise.
4797 * defs.h (info_verbose): Likewise.
4798 * demangle.c (demangle): Likewise.
4799 (asm_demangle): Likewise.
4800 * dwarf-index-cache.c (debug_index_cache): Likewise.
4801 * dwarf2-frame.c (dwarf2_frame_unwinders_enabled_p): Likewise.
4802 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Likewise.
4803 * dwarf2read.c (check_physname): Likewise.
4804 (use_deprecated_index_sections): Likewise.
4805 (dwarf_always_disassemble): Likewise.
4806 * eval.c (overload_resolution): Likewise.
4807 * event-top.c (set_editing_cmd_var): Likewise.
4808 (exec_done_display_p): Likewise.
4809 * event-top.h (set_editing_cmd_var): Likewise.
4810 (exec_done_display_p): Likewise.
4811 * exec.c (write_files): Likewise.
4812 * fbsd-nat.c (debug_fbsd_lwp): Likewise
4813 (debug_fbsd_nat): Likewise.
4814 * frame.h (struct frame_print_options) <print_raw_frame_arguments>:
4815 Likewise.
4816 (struct set_backtrace_options) <backtrace_past_main>: Likewise.
4817 <backtrace_past_entry> Likewise.
4818 * gdb-demangle.h (demangle): Likewise.
4819 (asm_demangle): Likewise.
4820 * gdb_bfd.c (bfd_sharing): Likewise.
4821 * gdbcore.h (write_files): Likewise.
4822 * gdbsupport/common-debug.c (show_debug_regs): Likewise.
4823 * gdbsupport/common-debug.h (show_debug_regs): Likewise.
4824 * gdbthread.h (print_thread_events): Likewise.
4825 * gdbtypes.c (opaque_type_resolution): Likewise.
4826 (strict_type_checking): Likewise.
4827 * gnu-nat.c (gnu_debug_flag): Likewise.
4828 * guile/scm-auto-load.c (auto_load_guile_scripts): Likewise.
4829 * guile/scm-param.c (pascm_variable): Add boolval.
4830 (add_setshow_generic): Update.
4831 (pascm_param_value): Update.
4832 (pascm_set_param_value_x): Update.
4833 * hppa-tdep.c (hppa_debug): Change to bool..
4834 * infcall.c (may_call_functions_p): Likewise.
4835 (coerce_float_to_double_p): Likewise.
4836 (unwind_on_signal_p): Likewise.
4837 (unwind_on_terminating_exception_p): Likewise.
4838 * infcmd.c (startup_with_shell): Likewise.
4839 * inferior.c (print_inferior_events): Likewise.
4840 * inferior.h (startup_with_shell): Likewise.
4841 (print_inferior_events): Likewise.
4842 * infrun.c (step_stop_if_no_debug): Likewise.
4843 (detach_fork): Likewise.
4844 (debug_displaced): Likewise.
4845 (disable_randomization): Likewise.
4846 (non_stop): Likewise.
4847 (non_stop_1): Likewise.
4848 (observer_mode): Likewise.
4849 (observer_mode_1): Likewise.
4850 (set_observer_mode): Update.
4851 (sched_multi): Change to bool.
4852 * infrun.h (debug_displaced): Likewise.
4853 (sched_multi): Likewise.
4854 (step_stop_if_no_debug): Likewise.
4855 (non_stop): Likewise.
4856 (disable_randomization): Likewise.
4857 * linux-tdep.c (use_coredump_filter): Likewise.
4858 (dump_excluded_mappings): Likewise.
4859 * linux-thread-db.c (auto_load_thread_db): Likewise.
4860 (check_thread_db_on_load): Likewise.
4861 * main.c (captured_main_1): Update.
4862 * maint-test-options.c (struct test_options_opts) <flag_opt, xx1_opt,
4863 xx2_opt, boolean_opt>: Change to bool.
4864 * maint-test-settings.c (maintenance_test_settings_boolean): Likewise.
4865 * maint.c (maintenance_profile_p): Likewise.
4866 (per_command_time): Likewise.
4867 (per_command_space): Likewise.
4868 (per_command_symtab): Likewise.
4869 * memattr.c (inaccessible_by_default): Likewise.
4870 * mi/mi-main.c (mi_async): Likewise.
4871 (mi_async_1): Likewise.
4872 * mips-tdep.c (mips64_transfers_32bit_regs_p): Likewise.
4873 * nat/fork-inferior.h (startup_with_shell): Likewise.
4874 * nat/linux-namespaces.c (debug_linux_namespaces): Likewise.
4875 * nat/linux-namespaces.h (debug_linux_namespaces): Likewise.
4876 * nios2-tdep.c (nios2_debug): Likewise.
4877 * or1k-tdep.c (or1k_debug): Likewise.
4878 * parse.c (parser_debug): Likewise.
4879 * parser-defs.h (parser_debug): Likewise.
4880 * printcmd.c (print_symbol_filename): Likewise.
4881 * proc-api.c (procfs_trace): Likewise.
4882 * python/py-auto-load.c (auto_load_python_scripts): Likewise.
4883 * python/py-param.c (union parmpy_variable): Add "bool boolval" field.
4884 (set_parameter_value): Update.
4885 (add_setshow_generic): Update.
4886 * python/py-value.c (copy_py_bool_obj): Change argument from int*
4887 to bool*.
4888 * python/python.c (gdbpy_parameter_value): Cast to bool* instead of
4889 int*.
4890 * ravenscar-thread.c (ravenscar_task_support): Change to bool.
4891 * record-btrace.c (record_btrace_target::store_registers): Update.
4892 * record-full.c (record_full_memory_query): Change to bool.
4893 (record_full_stop_at_limit): Likewise.
4894 * record-full.h (record_full_memory_query): Likewise.
4895 * remote-notif.c (notif_debug): Likewise.
4896 * remote-notif.h (notif_debug): Likewise.
4897 * remote.c (use_range_stepping): Likewise.
4898 (interrupt_on_connect): Likewise.
4899 (remote_break): Likewise.
4900 * ser-tcp.c (tcp_auto_retry): Likewise.
4901 * ser-unix.c (serial_hwflow): Likewise.
4902 * skip.c (debug_skip): Likewise.
4903 * solib-aix.c (solib_aix_debug): Likewise.
4904 * spu-tdep.c (spu_stop_on_load_p): Likewise.
4905 (spu_auto_flush_cache_p): Likewise.
4906 * stack.c (struct backtrace_cmd_options) <full, no_filters, hide>:
4907 Likewise.
4908 (struct info_print_options) <quiet>: Likewise.
4909 * symfile-debug.c (debug_symfile): Likewise.
4910 * symfile.c (auto_solib_add): Likewise.
4911 (separate_debug_file_debug): Likewise.
4912 * symfile.h (auto_solib_add): Likewise.
4913 (separate_debug_file_debug): Likewise.
4914 * symtab.c (basenames_may_differ): Likewise.
4915 (struct filename_partial_match_opts) <dirname, basename>: Likewise.
4916 (struct info_print_options) <quiet, exclude_minsyms>: Likewise.
4917 (struct info_types_options) <quiet>: Likewise.
4918 * symtab.h (demangle): Likewise.
4919 (basenames_may_differ): Likewise.
4920 * target-dcache.c (stack_cache_enabled_1): Likewise.
4921 (code_cache_enabled_1): Likewise.
4922 * target.c (trust_readonly): Likewise.
4923 (may_write_registers): Likewise.
4924 (may_write_memory): Likewise.
4925 (may_insert_breakpoints): Likewise.
4926 (may_insert_tracepoints): Likewise.
4927 (may_insert_fast_tracepoints): Likewise.
4928 (may_stop): Likewise.
4929 (auto_connect_native_target): Likewise.
4930 (target_stop_and_wait): Update.
4931 (target_async_permitted): Change to bool.
4932 (target_async_permitted_1): Likewise.
4933 (may_write_registers_1): Likewise.
4934 (may_write_memory_1): Likewise.
4935 (may_insert_breakpoints_1): Likewise.
4936 (may_insert_tracepoints_1): Likewise.
4937 (may_insert_fast_tracepoints_1): Likewise.
4938 (may_stop_1): Likewise.
4939 * target.h (target_async_permitted): Likewise.
4940 (may_write_registers): Likewise.
4941 (may_write_memory): Likewise.
4942 (may_insert_breakpoints): Likewise.
4943 (may_insert_tracepoints): Likewise.
4944 (may_insert_fast_tracepoints): Likewise.
4945 (may_stop): Likewise.
4946 * thread.c (struct info_threads_opts) <show_global_ids>: Likewise.
4947 (make_thread_apply_all_options_def_group): Change argument from int*
4948 to bool*.
4949 (thread_apply_all_command): Update.
4950 (print_thread_events): Change to bool.
4951 * top.c (confirm): Likewise.
4952 (command_editing_p): Likewise.
4953 (history_expansion_p): Likewise.
4954 (write_history_p): Likewise.
4955 (info_verbose): Likewise.
4956 * top.h (confirm): Likewise.
4957 (history_expansion_p): Likewise.
4958 * tracepoint.c (disconnected_tracing): Likewise.
4959 (circular_trace_buffer): Likewise.
4960 * typeprint.c (print_methods): Likewise.
4961 (print_typedefs): Likewise.
4962 * utils.c (debug_timestamp): Likewise.
4963 (sevenbit_strings): Likewise.
4964 (pagination_enabled): Likewise.
4965 * utils.h (sevenbit_strings): Likewise.
4966 (pagination_enabled): Likewise.
4967 * valops.c (overload_resolution): Likewise.
4968 * valprint.h (struct value_print_options) <prettyformat_arrays,
4969 prettyformat_structs, vtblprint, unionprint, addressprint, objectprint,
4970 stop_print_at_null, print_array_indexes, deref_ref, static_field_print,
4971 pascal_static_field_print, raw, summary, symbol_print, finish_print>:
4972 Likewise.
4973 * windows-nat.c (new_console): Likewise.
4974 (cygwin_exceptions): Likewise.
4975 (new_group): Likewise.
4976 (debug_exec): Likewise.
4977 (debug_events): Likewise.
4978 (debug_memory): Likewise.
4979 (debug_exceptions): Likewise.
4980 (useshell): Likewise.
4981 * windows-tdep.c (maint_display_all_tib): Likewise.
4982 * xml-support.c (debug_xml): Likewise.
4983
f1b620e9
MG
49842019-09-17 Mike Gulick <mgulick@mathworks.com>
4985
4986 * source.c (prepare_path_for_appending): New function.
4987 (openp): Make use of new function.
4988 (find_and_open_source): Search for the compilation directory and
4989 source file as a relative path beneath the directory search path.
4990
67f3ed6a
AB
49912019-09-17 Andrew Burgess <andrew.burgess@embecosm.com>
4992
4993 * source-cache.c (source_cache::get_line_charpos): Catch
4994 exceptions and return false, this matches the behaviour documented
4995 in the header file.
4996
74332189
JB
49972019-09-17 Joel Brobecker <brobecker@adacore.com>
4998
4999 * ada-tasks.c (info_task): Remove quoting of the task's name.
5000
f2f24aa9
CB
50012019-09-16 Christian Biesinger <cbiesinger@google.com>
5002
5003 * symfile.c (auto_solib_add): Replace comment with a reference
5004 to the header file.
5005
6a062a93
CB
50062019-09-14 Christian Biesinger <cbiesinger@google.com>
5007
5008 * NEWS: Mention that gdb can now be compiled with Python 3
5009 on Windows.
5010
ec6c8338
AB
50112019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
5012
5013 * maint.c (maint_print_section_data::maint_print_section_data):
5014 Force use of 'float log10 (float)' by casting the argument to
5015 float.
5016
aa17805f
AB
50172019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
5018
5019 * maint.c: Add 'cmath' include.
5020 (struct maint_print_section_data): New structure.
5021 (print_section_index): New function.
5022 (print_bfd_section_info): Add header comment, small whitespace
5023 cleanup, and update to call new print_section_index function.
5024 (print_objfile_section_info): Likewise.
5025 (maint_obj_section_from_bfd_section): New function.
5026 (print_bfd_section_info_maybe_relocated): New function.
5027 (maintenance_info_sections): Add header comment, always use
5028 bfd_map_over_sections instead of ALL_OBJFILE_OSECTIONS.
5029
3dd9bb46
AB
50302019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
5031
5032 * psymtab.c (find_pc_sect_psymtab): Move baseaddr local into more
5033 inner scope, add check that the objfile has psymtabs before
5034 checking psymtabs_addrmap.
5035 * psymtab.h (psymtab_storage) <psymtabs_addrmap>: Extend comment.
5036
4993045d
PW
50372019-09-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5038
5039 * NEWS: Announce that Ada task names are now shown at more places,
5040 and between quotes (except in info task output).
5041 * gdb/ada-tasks.c (task_to_str): New function.
5042 (display_current_task_id): Call task_to_str.
5043 (task_command_1): Likewise.
5044 (print_ada_task_info): In non-mi mode, Properly align headers and data
5045 when task-id length is > 9 (9 is the default for a 32 bits CORE_ADDR).
5046
7a289707
RO
50472019-09-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5048
5049 * procfs.c (procfs_target::wait) <PR_FAULTED>: Get signal from
5050 prstatus.pr_lwp.pr_info instead of making it up.
5051
f2aec7f6
CB
50522019-09-11 Christian Biesinger <cbiesinger@google.com>
5053
5054 * auto-load.c (auto_load_expand_dir_vars): Update.
5055 * defs.h (gdb_datadir): Change to std::string.
5056 (python_libdir): Likewise.
5057 (relocate_gdb_directory): Change return type to std::string.
5058 * guile/guile.c (gdbscm_data_directory): Update.
5059 (initialize_scheme_side): Update.
5060 * jit.c (jit_reader_dir): Change to std::string.
5061 (jit_reader_load_command): Update.
5062 * main.c (gdb_datadir): Change to std::string.
5063 (python_libdir): Likewise.
5064 (set_gdb_data_directory): Update.
5065 (relocate_path): Change to return std::string.
5066 (relocate_gdb_directory): Change to return std::string.
5067 (relocate_gdbinit_path_maybe_in_datadir): Update.
5068 (captured_main_1): Update.
5069 * python/python.c (do_start_initialization): Update.
5070 * top.c (show_gdb_datadir): Update.
5071 * xml-syscall.c (xml_init_syscalls_info): Update.
5072 (init_syscalls_info): Update.
5073
9224a013
CB
50742019-09-11 Christian Biesinger <cbiesinger@google.com>
5075
5076 * main.c (relocate_gdbinit_path_maybe_in_datadir): Factor this code
5077 out of get_init_files.
5078 (get_init_files): Update.
5079
f48cd836
CB
50802019-09-11 Christian Biesinger <cbiesinger@google.com>
5081
5082 * main.c (get_init_files): Change to use std::string.
5083 (captured_main_1): Update.
5084 (print_gdb_help): Update.
5085
9cab7ecd
AT
50862019-09-11 Ali Tamur <tamur@google.com>
5087
5088 *gdb/target-float.c (host_float_ops<T>::to_longest): Update
5089 implementation.
5090
67547d89
CB
50912019-09-11 Christian Biesinger <cbiesinger@google.com>
5092
5093 * dbxread.c (read_dbx_symtab): Update.
5094 * dwarf2read.c (load_partial_dies): Update.
5095 * mdebugread.c (parse_partial_symbols): Update.
5096 (handle_psymbol_enumerators): Update.
5097 * psympriv.h (add_psymbol_to_list): Change type of copy_names to bool.
5098 * psymtab.c (add_psymbol_to_bcache): Likewise.
5099 (add_psymbol_to_list): Likewise.
5100 * symtab.c (symbol_set_names): Likewise.
5101 * symtab.h (symbol_set_names): Likewise.
5102 * xcoffread.c (scan_xcoff_symtab): Update.
5103
64b2d4a0
TT
51042019-09-11 Tom Tromey <tom@tromey.com>
5105
5106 * symfile-mem.c (symbol_file_add_from_memory): Use
5107 bfd_set_filename.
5108 * solib-darwin.c (darwin_bfd_open): Use bfd_set_filename.
5109 * solib-aix.c (solib_aix_bfd_open): Use bfd_set_filename.
5110
3b00ef10
TT
51112019-09-10 Tom Tromey <tromey@adacore.com>
5112
5113 * dwarf-index-write.c (write_psymbols): Extend error message.
5114 (debug_names::insert): Add Ada code.
5115 (debug_names::write_psymbols): Remove Ada check.
5116 (debug_names) <m_string_obstack>: New member.
5117 * dwarf2read.c (gdb_index_symbol_name_matcher): Remove.
5118 (gdb_index_symbol_name_matcher::matches): Remove.
5119 (mapped_index_base::find_name_components_bounds): Add "lang"
5120 parameter.
5121 (mapped_index_base::build_name_components): Also split names
5122 according to Ada syntax.
5123 (dw2_expand_symtabs_matching_symbol): Loop over languages. Change
5124 type of "match_callback".
5125 (check_match, check_find_bounds_finds)
5126 (dw2_expand_symtabs_matching): Update.
5127 (dw2_debug_names_iterator): Add new constructor.
5128 (dw2_debug_names_map_matching_symbols): New function.
5129 (dw2_debug_names_expand_symtabs_matching): Update.
5130 (dwarf2_debug_names_functions): Use
5131 dw2_debug_names_map_matching_symbols.
5132
aa391654
TT
51332019-09-10 Tom Tromey <tromey@adacore.com>
5134
5135 * dwarf2read.c (dw2_get_file_names_reader): Add the
5136 CU's file name to the results.
5137
b054970d
TT
51382019-09-10 Tom Tromey <tromey@adacore.com>
5139
5140 * ada-lang.c (add_nonlocal_symbols): Combine calls to
5141 map_matching_symbols. Update.
5142 * dwarf2read.c (dw2_map_matching_symbols): Update.
5143 * psymtab.c (match_partial_symbol): Change type; update.
5144 (psym_map_matching_symbols): Likewise.
5145 * symfile-debug.c (debug_qf_map_matching_symbols): Change
5146 type; update.
5147 * symfile.h (struct quick_symbol_functions)
5148 <map_matching_symbols>: Change "name" to be a lookup_name_info.
5149 Remove "match".
5150
6a3dbf1b
TT
51512019-09-10 Tom Tromey <tromey@adacore.com>
5152
5153 * psymtab.c (map_block): Remove.
5154 (psym_map_matching_symbols): Use iterate_over_symbols_terminated.
5155 * symtab.c (iterate_over_symbols_terminated): New function.
5156 * symtab.c (iterate_over_symbols_terminated): Declare.
5157
6969f124
TT
51582019-09-10 Tom Tromey <tromey@adacore.com>
5159
5160 * ada-lang.c (ada_iterate_over_symbols): Return bool.
5161 * language.h (struct language_defn) <la_iterate_over_symbols>:
5162 Return bool.
5163 * symtab.c (iterate_over_symbols): Return bool.
5164 * symtab.h (iterate_over_symbols): Return bool.
5165
199b4314
TT
51662019-09-10 Tom Tromey <tromey@adacore.com>
5167
5168 * ada-lang.c (aux_add_nonlocal_symbols): Change type.
5169 (add_nonlocal_symbols): Update.
5170 * dwarf2read.c (dw2_map_matching_symbols): Change type.
5171 * psymtab.c (map_block, psym_map_matching_symbols): Change type.
5172 * symfile-debug.c (debug_qf_map_matching_symbols): Change type.
5173 * symfile.h (struct quick_symbol_functions) <map_matching_symbols>:
5174 Change type of "callback". Remove "data".
5175
a084a2a6
AT
5176
51772019-09-09 Ali Tamur <tamur@google.com>
5178
5179 * dwarf2read.c (comp_unit_head): Update comment.
5180 (dwarf2_dwo_name): New function declaration.
5181 (dwarf_unit_type_name): New function declaration.
5182 (read_comp_unit_head): Add support for new compilation units,
5183 DW_UT_partial, DW_UT_skeleton, DW_UT_split_compile, DW_UT_split_type.
5184 Particularly, DW_UT_skeleton and DW_UT_split_compile have dwo_id
5185 (currently named as "signature") in their header. Also clarify error
5186 messages.
5187 (lookup_dwo_id): New function. Returns the dwo id of the given
5188 compile unit.
5189 (lookup_dwo_unit): Use the new lookup_dwo_id function.
5190 (init_cutu_and_read_dies): Use the new dwarf2_dwo_name and lookup_dwo_id
5191 functions.
5192 (create_dwo_cu_reader): Use the added lookup_dwo_id function.
5193 (dwarf2_dwo_name): Get the dwo name if present.
5194 (dwarf_unit_type_name): Convert DW_UT_* types to string for diagnostic
5195 purposes.
5196
25a2915e
TT
51972019-09-09 Tom Tromey <tom@tromey.com>
5198
5199 * tui/tui-win.c (tui_all_windows_info): Use ui_out.
5200
e4df0874
PW
52012019-09-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5202
5203 * python/python.c (do_start_initialization): Make progname_copy static,
5204 to avoid a leak report.
5205
8634b462
TT
52062019-09-08 Tom Tromey <tom@tromey.com>
5207
5208 * tui/tui-wingeneral.c (box_win): Truncate long window titles.
5209
c7f839cb
SM
52102019-09-07 Simon Marchi <simon.marchi@efficios.com>
5211
5212 * dwarf2read.c (struct dw2_symtab_iterator) <block_index>:
5213 Change type to gdb::optional<block_enum>.
5214 (dw2_symtab_iter_init): Change block_index parameter type
5215 to gdb::optional<block_enum>.
5216 (dw2_lookup_symbol): Change block_index parameter
5217 type to block_enum.c
5218 (dw2_debug_names_lookup_symbol): Likewise.
5219 * psymtab.c (psym_lookup_symbol): Likewise.
5220 * symfile-debug.c (debug_qf_lookup_symbol): Likewise.
5221 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
5222 Likewise.
5223
ead0e69a
CB
52242019-09-06 Christian Biesinger <cbiesinger@google.com>
5225
5226 * defs.h (relocate_gdb_directory): Change int to bool in
5227 signature and rename flag to relocatable.
5228 * main.c (relocate_path): Likewise.
5229 (relocate_gdb_directory): Likewise.
5230
b16c44de
AM
52312019-09-06 Alan Modra <amodra@gmail.com>
5232
5233 * coffread.c (coff_symfile_read): Constify filename variable.
5234 * dbxread.c (dbx_symfile_init, coffstab_build_psymtabs),
5235 (elfstab_build_psymtabs, stabsect_build_psymtabs): Likewise.
5236 * gdb_bfd.c (gdb_bfd_close_or_warn): Likewise.
5237 * solib.c (reload_shared_libraries_1): Likewise.
5238 * symfile.c (reread_symbols): Likewise.
5239 * solib-aix.c (solib_aix_bfd_open): Add cast for xfree of filename.
5240 * solib-darwin.c (darwin_bfd_open): Likewise.
5241 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
5242
06ff036e
AB
52432019-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
5244
5245 * psymtab.c (print_partial_symbols): Handle missing domain_enum
5246 values MODULE_DOMAIN and COMMON_BLOCK_DOMAIN.
5247
4e962e74
TT
52482019-09-03 Tom Tromey <tromey@adacore.com>
5249
5250 * ada-valprint.c (ada_val_print_num): Don't recurse for range
5251 types.
5252 (has_negatives): Unbias a range type bound.
5253 * dwarf2read.c (read_subrange_type): Handle DW_AT_GNU_bias.
5254 * gdbtypes.c (operator==): Handle new field.
5255 (create_range_type): Add "bias" parameter.
5256 (create_static_range_type, resolve_dynamic_range): Update.
5257 * gdbtypes.h (struct range_bounds) <bias>: New member.
5258 (create_range_type): Add bias parameter.
5259 * printcmd.c (print_scalar_formatted): Unbias range types.
5260 * value.c (unpack_long): Unbias range types.
5261 (pack_long): Bias range types.
5262
d90b8f26
AH
52632019-09-02 Alan Hayward <alan.hayward@arm.com>
5264
5265 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Check all
5266 probe arguments.
5267
fe01123e
AH
52682019-09-02 Alan Hayward <alan.hayward@arm.com>
5269
5270 * break-catch-throw.c (fetch_probe_arguments): Use gdbarch.
5271 * dtrace-probe.c (dtrace_probe::get_argument_count): Likewise.
5272 * probe.c (probe_safe_evaluate_at_pc) (compute_probe_arg)
5273 (compile_probe_arg): Likewise.
5274 * probe.h (get_argument_count): Likewise.
5275 * solib-svr4.c (solib_event_probe_action): Likewise.
5276 * stap-probe.c (stap_probe::get_argument_count): Likewise.
5277
e661ef01
AH
52782019-09-02 Alan Hayward <alan.hayward@arm.com>
5279
5280 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Move
5281 code to here...
5282 (svr4_create_solib_event_breakpoints): ...from here.
5283
47a536d9
SDJ
52842019-08-30 Sergio Durigan Junior <sergiodj@redhat.com>
5285
5286 * nat/fork-inferior.c (trace_start_error): Remove "\nError: "
5287 suffix from warning message.
5288
d6a00eba
TT
52892019-08-30 Tom Tromey <tom@tromey.com>
5290
5291 * tui/tui-winsource.h (struct tui_source_window_base)
5292 <refresh_all>: Don't declare.
5293 * tui/tui-winsource.c (tui_source_window_base::refresh_all):
5294 Remove.
5295 * tui/tui-win.c (tui_refresh_all_win): Don't call refresh_all or
5296 tui_show_locator_content.
5297 * tui/tui-regs.h (struct tui_data_window) <refresh_all>: Don't
5298 declare.
5299 * tui/tui-regs.c (tui_data_window::refresh_all): Remove.
5300 * tui/tui-data.h (struct tui_win_info) <refresh_all>: Don't
5301 declare.
5302
55b2657b
TT
53032019-08-30 Tom Tromey <tom@tromey.com>
5304
5305 * tui/tui-io.c (tui_cont_sig): Don't call wrefresh.
5306
12a8555a
TT
53072019-08-30 Tom Tromey <tom@tromey.com>
5308
5309 * tui/tui-stack.c (_initialize_tui_stack): Move later.
5310 Remove unnecessary forward declarations.
5311
900ac242
TT
53122019-08-30 Tom Tromey <tom@tromey.com>
5313
5314 * tui/tui-stack.c (tui_locator_window::set_locator_fullname): Call
5315 rerender.
5316 (tui_update_locator_fullname, tui_show_frame_info): Don't call
5317 tui_show_locator_content.
5318
99ab33fb
TT
53192019-08-30 Tom Tromey <tom@tromey.com>
5320
5321 * tui/tui-stack.c (tui_show_locator_content): Move lower. Rewrite.
5322 (tui_locator_window::rerender): Rewrite using body of previous
5323 tui_show_locator_content.
5324
e594a5d1
TT
53252019-08-30 Tom Tromey <tom@tromey.com>
5326
5327 * tui/tui-stack.h (struct tui_locator_window) <set_locator_info,
5328 set_locator_fullname>: New methods.
5329 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
5330 Rename from tui_set_locator_fullname.
5331 (tui_locator_window::set_locator_info): Rename from
5332 tui_set_locator_info. Return bool.
5333 (tui_update_locator_fullname, tui_show_frame_info): Update.
5334
715bb467
TT
53352019-08-30 Tom Tromey <tom@tromey.com>
5336
5337 * tui/tui-layout.c (show_layout): Don't call tui_refresh_all.
5338
772f3f03
TT
53392019-08-30 Tom Tromey <tom@tromey.com>
5340
5341 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Don't
5342 call touchwin.
5343
108e13ab
TT
53442019-08-30 Tom Tromey <tom@tromey.com>
5345
5346 * tui/tui-wingeneral.c (box_win): Assume win_info and
5347 win_info->handle cannot be NULL.
5348
cdaa6eb4
TT
53492019-08-30 Tom Tromey <tom@tromey.com>
5350
5351 * tui/tui-regs.h (struct tui_data_item_window) <rerender,
5352 refresh_window>: Declare.
5353 * tui/tui-regs.c (tui_data_window::display_registers_from): Call
5354 resize.
5355 (tui_data_item_window::rerender): Rename from
5356 tui_display_register.
5357 (tui_data_item_window::refresh_window): New method.
5358 * tui/tui-layout.c (tui_gen_win_info::resize): Do nothing on
5359 no-op.
5360
89df7f90
TT
53612019-08-30 Tom Tromey <tom@tromey.com>
5362
5363 * tui/tui-regs.h (struct tui_data_window) <regs_content,
5364 regs_column_count, current_group>: Move later. Now private.
5365 <get_current_group>: New method.
5366 * tui/tui-regs.c (tui_reg_command): Update.
5367 * tui/tui-layout.c (tui_set_layout): Update.
5368
1bf2866a
TT
53692019-08-30 Tom Tromey <tom@tromey.com>
5370
5371 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
5372 (tui_data_window::rerender): Don't call
5373 check_and_display_highlight_if_needed.
5374 (tui_data_window::refresh_all): Remove call to
5375 erase_data_content.
5376
0670413d
TT
53772019-08-30 Tom Tromey <tom@tromey.com>
5378
5379 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
5380 (tui_data_window::display_registers_from)
5381 (tui_data_window::display_reg_element_at_line)
5382 (tui_data_window::display_registers_from_line): Remove checks of
5383 "empty".
5384
18bb55c7
TT
53852019-08-30 Tom Tromey <tom@tromey.com>
5386
5387 * tui/tui-regs.h (struct tui_data_window) <display_all_data>:
5388 Don't declare.
5389 * tui/tui-regs.c (tui_data_window::show_registers): Call
5390 rerender.
5391 (tui_data_window::rerender): Rename from display_all_data.
5392 (tui_data_window::rerender): Remove old implementation.
5393
1f6d2f10
TT
53942019-08-30 Tom Tromey <tom@tromey.com>
5395
5396 * tui/tui-regs.c (tui_data_window::display_all_data): Change
5397 text.
5398 * tui/tui-data.h (NO_DATA_STRING): Remove define.
5399
16d01f9c
BW
54002019-08-29 Bernhard Wodok <barto@gmx.net>
5401 Sergio Durigan Junior <sergiodj@redhat.com>
5402
5403 PR win32/24284
5404 * mingw-hdep.c (gdb_select): Handle case when 'n' is zero.
5405
d8f27c60
AB
54062019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
5407
5408 * symtab.c (search_symbols): Don't include MODULE_DOMAIN symbols
5409 when searching for types.
5410
1f20c35e
AB
54112019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
5412
5413 * f-lang.c (f_language_defn): Use f_print_typedef.
5414 * f-lang.h (f_print_typedef): Declare.
5415 * f-typeprint.c (f_print_typedef): Define.
5416
550105b7
CB
54172019-08-27 Christian Biesinger <cbiesinger@google.com>
5418
5419 * nat/linux-namespaces.c (mnsh_main): Initialize fd (to -1).
5420
4acfdd20
AB
54212019-08-27 Andrew Burgess <andrew.burgess@embecosm.com>
5422
5423 * cli/cli-utils.c (info_print_options_defs): Delete.
5424 (make_info_print_options_def_group): Delete.
5425 (extract_info_print_options): Delete.
5426 (info_print_command_completer): Delete.
5427 (info_print_args_help): Add extra parameter, and optionally
5428 include text about -n flag.
5429 * cli/cli-utils.h (struct info_print_options): Delete.
5430 (extract_info_print_options): Delete declaration.
5431 (info_print_command_completer): Delete declaration.
5432 (info_print_args_help): Add extra parameter, extend header
5433 comment.
5434 * python/python.c (gdbpy_rbreak): Pass additional parameter to
5435 search_symbols.
5436 * stack.c (struct info_print_options): New type.
5437 (info_print_options_defs): New file scoped variable.
5438 (make_info_print_options_def_group): New static function.
5439 (info_print_command_completer): New static function.
5440 (info_locals_command): Update to use new local functions.
5441 (info_args_command): Likewise.
5442 (_initialize_stack): Add extra parameter to calls to
5443 info_print_args_help.
5444 * symtab.c (search_symbols): Add extra parameter, use this to
5445 possibly excluse non-debug symbols.
5446 (symtab_symbol_info): Add extra parameter, which is passed on to
5447 search_symbols.
5448 (struct info_print_options): New type.
5449 (info_print_options_defs): New file scoped variable.
5450 (make_info_print_options_def_group): New static function.
5451 (info_print_command_completer): New static function.
5452 (info_variables_command): Update to use local functions, and pass
5453 extra parameter through to symtab_symbol_info.
5454 (info_functions_command): Likewise.
5455 (info_types_command): Pass additional argument through to
5456 symtab_symbol_info.
5457 (rbreak_command): Pass extra argument to search_symbols.
5458 (_initialize_symtab): Add extra arguments for calls to
5459 info_print_args_help, and update help text for 'info variables',
5460 'whereis', and 'info functions' commands.
5461 * symtab.h (search_symbols): Add extra argument to declaration.
5462 * NEWS: Mention new flags.
5463
9aa55206
CB
54642019-08-26 Christian Biesinger <cbiesinger@google.com>
5465
5466 * symtab.c (lookup_static_symbol): Call the new function (and move
5467 it down to be next to lookup_global_symbol).
5468 (struct global_sym_lookup_data): Add block_enum member and rename to...
5469 (struct global_or_static_sym_lookup_data): ...this.
5470 (lookup_symbol_global_iterator_cb): Pass block_index instead of
5471 GLOBAL_BLOCK to lookup_symbol_in_objfile and rename to...
5472 (lookup_symbol_global_or_static_iterator_cb): ...this.
5473 (lookup_global_or_static_symbol): New function.
5474 (lookup_global_symbol): Call new function.
5475
5c31b358
TV
54762019-08-26 Tom de Vries <tdevries@suse.de>
5477
5478 PR c++/24852
5479 * break-catch-throw.c (fetch_probe_arguments): Improve error mesage
5480 when pc_probe.prob == NULL.
5481
23c13d42
SM
54822019-08-25 Simon Marchi <simon.marchi@efficios.com>
5483
5484 * dwarf2read.c (dw2_debug_names_iterator::next): Rename local
5485 variable symbol_linkage to symbol_linkage_.
5486
beadd3e8
SM
54872019-08-25 Simon Marchi <simon.marchi@efficios.com>
5488
5489 * dwarf2read.c (dw2_debug_names_iterator::next): Use enum to
5490 represent whether the symbol is static, dynamic, or we don't
5491 know.
5492
e3ec872f
YS
54932019-08-25 Yoshinori Sato <ysato@users.sourceforge.jp>
5494
5495 * gdb/rx-tdep.c (rx_register_names): New.
5496 (rx_register_name): Delete.
5497 (rx_psw_type): Delete.
5498 (rx_fpsw_type): Delete.
5499 (rx_register_type): Delete.
5500 (rx_gdbarch_init): Convert target-descriptions.
5501 (_initialize_rx_tdep): Add initialize_tdesc_rx.
5502 * gdb/features/Makefile: Add rx.xml.
5503 * gdb/features/rx.xml: New.
5504 * gdb/features/rx.c: Generated.
5505 * gdb/NEWS: Mention target description support.
5506
d0509ba4
CB
55072019-08-22 Christian Biesinger <cbiesinger@google.com>
5508
5509 * symtab.c (symbol_cache_lookup): Always initialize *bsc_ptr and
5510 *slot_ptr.
5511
2d41fa11
SDJ
55122019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
5513
5514 * configure.ac: Don't check for 'dlfcn.h' (moved to
5515 gdbsupport/common.m4).
5516 * Makefile.in (COMMON_SFILES): Move 'gdb-dlfcn.c' to
5517 'gdbsupport/'.
5518 (HFILES_NO_SRCDIR): Likewise, for 'gdb-dlfcn.h'.
5519 * compile/compile-c-support.c: Include
5520 'gdbsupport/gdb-dlfcn.h'.
5521 * gdbsupport/common.m4: Check for 'dlfcn.h'.
5522 * gdb-dlfcn.c: Move to...
5523 * gdbsupport/gdb-dlfcn.c: ... here.
5524 * gdb-dlfcn.h: Move to...
5525 * gdbsupport/gdb-dlfcn.h: ... here.
5526
de8af808
SL
55272019-08-23 Sandra Loosemore <sandra@codesourcery.com>
5528
5529 * nios2-tdep.c (struct reg_value): Improve comments. Make
5530 the offset field signed.
5531
27204489
CB
55322019-08-22 Christian Biesinger <cbiesinger@google.com>
5533
5534 * python/lib/gdb/__init__.py (_execute_file): New function.
5535 * python/python.c (python_run_simple_file): Call gdb._execute_file
5536 on Windows.
5537
43771869
AB
55382019-08-22 Andrew Burgess <andrew.burgess@embecosm.com>
5539
5540 * f-exp.y (yylex): Remove is_a_field_of_this local variable, and
5541 all uses as this was never set to anything but a zero value.
5542
26c957f1
PA
55432019-08-21 Bogdan Harjoc <harjoc@gmail.com>
5544
5545 * cli/cli-cmds.c (with_command_1): Error out if no arguments.
5546
c07aae6e
CB
55472019-08-21 Christian Biesinger <cbiesinger@google.com>
5548
5549 * tui/tui-data.h (tui_gen_win_info): Add an =default
5550 move constructor, required by some GCC versions.
5551
3960cb7a
JF
55522019-08-21 Jinke Fan <fanjinke51@yeah.net>
5553
5554 * go32-nat.c (go32_sysinfo): Add hygon_p.
5555
04c72a68
TT
55562019-08-20 Tom Tromey <tom@tromey.com>
5557
5558 * tui/tui-regs.h (struct tui_data_window) <last_regs_line_no,
5559 line_from_reg_element_no, first_reg_element_no_inline,
5560 display_all_data, delete_data_content_windows,
5561 erase_data_content>: Now private.
5562
072272ce
TT
55632019-08-20 Tom Tromey <tom@tromey.com>
5564
5565 * tui/tui-wingeneral.c (box_win): Change type of highlight_flag.
5566 (tui_unhighlight_win, tui_highlight_win)
5567 (tui_win_info::make_window): Update.
5568 * tui/tui-data.h (HILITE, NO_HILITE): Remove.
5569
973961bd
TT
55702019-08-20 Tom Tromey <tom@tromey.com>
5571
5572 * tui/tui-data.h (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
5573 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
5574 (MAX_PID_WIDTH): Move to tui-stack.c.
5575 * tui/tui-stack.c (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
5576 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
5577 (MAX_PID_WIDTH): Move from tui-data.h.
5578
ab0e1f1a
TT
55792019-08-20 Tom Tromey <tom@tromey.com>
5580
5581 * tui/tui-wingeneral.h (tui_make_window): Don't declare.
5582 * tui/tui-wingeneral.c (box_win): Change type of win_info.
5583 (box_win): Update.
5584 (tui_gen_win_info::make_window): Rename from tui_make_window.
5585 (tui_win_info::make_window): New method.
5586 (tui_gen_win_info::make_visible): Update.
5587 * tui/tui-source.c (tui_source_window::set_contents): Update.
5588 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
5589 (tui_data_window::display_registers_from): Update.
5590 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
5591 * tui/tui-data.h (struct tui_gen_win_info) <make_window>:
5592 Declare.
5593 <can_box>: Remove.
5594 <title>: Remove.
5595 (struct tui_win_info) <make_window>: Declare.
5596 <can_box>: Now virtual.
5597 <title>: New member.
5598 * tui/tui-data.c (~tui_gen_win_info): Don't free title.
5599 * tui/tui-command.c (tui_cmd_window::resize): Update.
5600
100c2bf3
TT
56012019-08-20 Tom Tromey <tom@tromey.com>
5602
5603 * tui/tui-regs.h (struct tui_data_window) <display_regs>: Remove.
5604 * tui/tui-regs.c (tui_data_window::show_registers): Update.
5605 (tui_data_window::check_register_values): Update.
5606
fa4dc567
TT
56072019-08-20 Tom Tromey <tom@tromey.com>
5608
5609 * tui/tui-regs.h (struct tui_data_window): Use
5610 DISABLE_COPY_AND_ASSIGN.
5611 <regs_content>: Change type, removing unique_ptr.
5612 <tui_data_window>: Add move constructor.
5613 * tui/tui-regs.c (tui_data_window::show_registers)
5614 (tui_data_window::show_register_group)
5615 (tui_data_window::display_registers_from)
5616 (tui_data_window::display_registers_from)
5617 (tui_data_window::first_data_item_displayed)
5618 (tui_data_window::delete_data_content_windows)
5619 (tui_data_window::rerender, tui_data_window::refresh_window)
5620 (tui_data_window::check_register_values): Update.
5621
ca02d7c8
TT
56222019-08-20 Tom Tromey <tom@tromey.com>
5623
5624 * tui/tui-regs.h (struct tui_data_window) <show_registers,
5625 show_register_group>: Declare.
5626 (tui_show_register_group): Don't declare.
5627 * tui/tui-regs.c (tui_data_window::show_registers): Rename from
5628 tui_show_registers.
5629 (tui_data_window::show_register_group): Rename from
5630 tui_show_register_group.
5631 (tui_data_window::check_register_values, tui_reg_command):
5632 Update.
5633 * tui/tui-layout.c (tui_set_layout): Update.
5634
63356bfd
TT
56352019-08-20 Tom Tromey <tom@tromey.com>
5636
5637 * tui/tui-regs.h (struct tui_data_window) <check_register_values>:
5638 Declare.
5639 (tui_check_register_values): Don't declare.
5640 * tui/tui-regs.c (tui_data_window::check_register_values): Rename
5641 from tui_check_register_values.
5642 * tui/tui-hooks.c (tui_register_changed): Update.
5643
42cc14a7
TT
56442019-08-20 Tom Tromey <tom@tromey.com>
5645
5646 * tui/tui-regs.c (tui_reg_layout): Move later.
5647 (tui_show_registers): Don't enable TUI mode or change layout.
5648
b9ad3686
TT
56492019-08-20 Tom Tromey <tom@tromey.com>
5650
5651 * tui/tui-regs.h (struct tui_data_item_window)
5652 <~tui_data_item_window>: Remove.
5653 <content>: Now a unique_xmalloc_ptr.
5654 * tui/tui-regs.c (tui_register_format): Return a
5655 unique_xmalloc_ptr.
5656 (tui_get_register): Update.
5657 (~tui_data_item_window): Remove.
5658 (tui_data_window::display_registers_from, tui_display_register):
5659 Update.
5660 * tui/tui-io.h (tui_expand_tabs): Update.
5661 * tui/tui-io.c (tui_expand_tabs): Return a unique_xmalloc_ptr.
5662 Remove "col" parameter.
5663
8e114aab
TT
56642019-08-20 Tom Tromey <tom@tromey.com>
5665
5666 * tui/tui-regs.h (struct tui_data_item_window) <value>: Remove
5667 field.
5668 * tui/tui-regs.c (~tui_data_item_window): Update.
5669
1a4f81dd
TT
56702019-08-20 Tom Tromey <tom@tromey.com>
5671
5672 * tui/tui-regs.c (tui_register_format, tui_get_register): Move
5673 earlier.
5674
0f8d8876
TT
56752019-08-20 Tom Tromey <tom@tromey.com>
5676
5677 * tui/tui-regs.c (tui_reg_command): Remove NULL check.
5678
605dc2c2
TT
56792019-08-20 Tom Tromey <tom@tromey.com>
5680
5681 * tui/tui-source.h (struct tui_source_window): Update.
5682 * tui/tui-regs.c (tui_show_registers): Update.
5683 * tui/tui-disasm.h (struct tui_disasm_window): Update.
5684 * tui/tui-data.h (NO_SRC_STRING, NO_DISASSEM_STRING)
5685 (NO_REGS_STRING): Remove defines.
5686
aedbe3bb
CM
56872019-08-20 Conrad Meyer <cem@FreeBSD.org>
5688
5689 * remote.c (remote_target::remote_btrace_maybe_reopen): Avoid
5690 unnecessary thread walk if remote doesn't support the packet.
5691
7ce8f214
TT
56922019-08-19 Tom Tromey <tromey@adacore.com>
5693
5694 * python/py-value.c (value_has_field): Fix indentation.
5695
f21c2bd7
TT
56962019-08-19 Tom Tromey <tromey@adacore.com>
5697
5698 * printcmd.c (do_one_display, info_display_command): Update.
5699 * block.h (contained_in): Return bool. Add allow_nested
5700 parameter.
5701 * block.c (contained_in): Return bool. Add allow_nested
5702 parameter.
5703
d806ea2d
TT
57042019-08-19 Tom Tromey <tom@tromey.com>
5705
5706 * configure: Rebuild.
5707 * configure.ac: Disallow the combination of -static-libstdc++ and
5708 source highlight.
5709 * source-cache.c (get_language_name): Handle rust.
5710 (source_cache::get_source_lines): Ignore highlighting exceptions.
5711
398fdd60
TT
57122019-08-16 Tom Tromey <tom@tromey.com>
5713
5714 * tui/tui.h (enum tui_win_type) <EXEC_INFO_WIN>: Remove.
5715 * tui/tui-winsource.h (struct tui_exec_info_window): Remove.
5716 (struct tui_source_window_base) <make_visible, refresh_window,
5717 resize>: Remove methods.
5718 <execution_info>: Remove field.
5719 * tui/tui-winsource.c (tui_source_window_base::do_erase_source_content)
5720 (tui_show_source_line, tui_source_window_base)
5721 (~tui_source_window_base): Update.
5722 (tui_source_window_base::resize)
5723 (tui_source_window_base::make_visible)
5724 (tui_source_window_base::refresh_window): Remove.
5725 (tui_source_window_base::update_exec_info): Update.
5726 * tui/tui-source.c (tui_source_window::set_contents): Update.
5727 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
5728
e699d331
TT
57292019-08-16 Tom Tromey <tom@tromey.com>
5730
5731 * tui/tui-hooks.c (tui_remove_hooks): Don't set
5732 deprecated_query_hook.
5733
bb01dbfc
TT
57342019-08-16 Tom Tromey <tom@tromey.com>
5735
5736 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
5737 (tui_update_source_windows_with_line): Update.
5738 * tui/tui-source.h (struct tui_source_window)
5739 <show_symtab_source>: Declare.
5740 (tui_show_symtab_source): Don't declare.
5741 * tui/tui-source.c (tui_show_symtab_source): Rename from
5742 tui_show_symtab_source.
5743
81c82c4b
TT
57442019-08-16 Tom Tromey <tom@tromey.com>
5745
5746 * tui/tui-winsource.h (struct tui_source_window_base)
5747 <set_contents>: Declare.
5748 * tui/tui-winsource.c
5749 (tui_source_window_base::update_source_window_as_is): Update.
5750 * tui/tui-source.h (struct tui_source_window) <set_contents>:
5751 Declare.
5752 (tui_set_source_content): Don't declare.
5753 * tui/tui-source.c (tui_source_window::set_contents): Rename from
5754 tui_set_source_content.
5755 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
5756 Declare.
5757 (tui_set_disassem_content): Don't declare.
5758 * tui/tui-disasm.c (tui_disasm_window::set_contents): Rename from
5759 tui_set_disassem_content.
5760
2ddaf614
TT
57612019-08-16 Tom Tromey <tom@tromey.com>
5762
5763 * tui/tui-winsource.h (struct tui_source_window_base)
5764 <update_breakpoint_info>: Declare.
5765 (tui_update_breakpoint_info): Don't declare.
5766 * tui/tui-winsource.c (tui_source_window_base::update_source_window_as_is)
5767 (tui_update_all_breakpoint_info): Update.
5768 (tui_source_window_base::update_breakpoint_info): Rename from
5769 tui_update_breakpoint_info.
5770 (tui_source_window_base::update_exec_info): Update.
5771
017f9828
TT
57722019-08-16 Tom Tromey <tom@tromey.com>
5773
5774 * tui/tui-winsource.h (struct tui_source_window_base)
5775 <update_source_window>: Declare.
5776 (tui_update_source_window): Don't declare.
5777 * tui/tui-winsource.c
5778 (tui_source_window_base::update_source_window): Rename from
5779 tui_update_source_window.
5780 (tui_source_window_base::rerender): Update.
5781 * tui/tui-source.c (tui_source_window::maybe_update): Update.
5782 * tui/tui-disasm.c (tui_show_disassem)
5783 (tui_show_disassem_and_update_source)
5784 (tui_disasm_window::maybe_update): Update.
5785
ed8358e9
TT
57862019-08-16 Tom Tromey <tom@tromey.com>
5787
5788 * tui/tui-winsource.h (struct tui_source_window_base)
5789 <update_source_window_as_is>: Declare.
5790 (tui_update_source_window_as_is): Don't declare.
5791 * tui/tui-winsource.c (tui_update_source_window): Update
5792 (tui_source_window_base::update_source_window_as_is): Rename from
5793 tui_update_source_window_as_is.
5794 (tui_source_window_base::refill): Update.
5795 * tui/tui-source.c (tui_show_symtab_source): Update.
5796 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical):
5797 Update.
5798
20149b6b
TT
57992019-08-16 Tom Tromey <tom@tromey.com>
5800
5801 * tui/tui-winsource.h (tui_update_source_window)
5802 (tui_update_source_window_as_is): Remove "noerror" parameter.
5803 * tui/tui-winsource.c (tui_update_source_window)
5804 (tui_update_source_window_as_is): Remove "noerror" parameter.
5805 (tui_update_source_windows_with_addr)
5806 (tui_update_source_windows_with_line)
5807 (tui_source_window_base::rerender)
5808 (tui_source_window_base::refill): Update.
5809 * tui/tui-source.h (tui_set_source_content)
5810 (tui_show_symtab_source): Remove "noerror" parameter.
5811 * tui/tui-source.c (tui_set_source_content): Remove "noerror"
5812 parameter.
5813 (tui_show_symtab_source): Likewise.
5814 (tui_source_window::maybe_update): Update.
5815 * tui/tui-disasm.c (tui_show_disassem)
5816 (tui_show_disassem_and_update_source)
5817 (tui_disasm_window::do_scroll_vertical)
5818 (tui_disasm_window::maybe_update): Update.
5819
2d83e710
TT
58202019-08-16 Tom Tromey <tom@tromey.com>
5821
5822 * tui/tui.c (tui_is_window_visible): Update.
5823 * tui/tui-wingeneral.c (tui_make_window)
5824 (tui_gen_win_info::make_visible, tui_refresh_all): Update.
5825 * tui/tui-win.c (window_name_completer, tui_refresh_all_win)
5826 (tui_set_focus_command, tui_all_windows_info, update_tab_width)
5827 (tui_set_win_height_command, parse_scrolling_args): Update.
5828 * tui/tui-source.c (tui_source_window::style_changed): Update.
5829 * tui/tui-regs.c (tui_show_registers)
5830 (tui_data_window::first_data_item_displayed)
5831 (tui_data_window::delete_data_content_windows)
5832 (tui_check_register_values, tui_reg_command): Update.
5833 * tui/tui-disasm.c (tui_show_disassem): Update.
5834 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: New
5835 method.
5836 <is_visible>: Remove field.
5837 * tui/tui-data.c (tui_next_win, tui_prev_win)
5838 (tui_delete_invisible_windows): Update.
5839
d4ab829a
TT
58402019-08-16 Tom Tromey <tom@tromey.com>
5841
5842 * tui/tui-winsource.h (struct tui_source_window_base)
5843 <m_has_locator>: Remove.
5844 * tui/tui-layout.c (show_source_disasm_command, show_data)
5845 (show_source_or_disasm_and_command): Update.
5846
aa7ca1bb
AH
58472019-08-16 Alan Hayward <alan.hayward@arm.com>
5848
5849 * NEWS (Other MI changes): New subsection.
5850 * aarch64-tdep.c (aarch64_get_pc_address_flags): New function.
5851 (aarch64_gdbarch_init): Add aarch64_get_pc_address_flags.
5852 * arch-utils.c (default_get_pc_address_flags): New function.
5853 * arch-utils.h (default_get_pc_address_flags): New declaration.
5854 * gdbarch.sh: Add get_pc_address_flags.
5855 * gdbarch.c: Regenerate.
5856 * gdbarch.h: Likewise.
5857 * stack.c (print_pc): New function.
5858 (print_frame_info) (print_frame): Call print_pc.
5859
6eac171f
TV
58602019-08-16 Tom de Vries <tdevries@suse.de>
5861
5862 * maint.c (maintenance_info_sections): Also handle !ALLOBJ case using
5863 print_objfile_section_info.
5864
3df505f6
TT
58652019-08-15 Tom Tromey <tom@tromey.com>
5866
5867 * tui/tui-io.c (tui_puts_internal): Check TUI_CMD_WIN before
5868 calling update_cmdwin_start_line.
5869 * tui/tui-winsource.h (struct tui_source_window_base)
5870 <do_make_visible_with_new_height, set_new_height>: Don't declare.
5871 <rerender>: Declare.
5872 * tui/tui-winsource.c (tui_source_window_base::update_tab_width):
5873 Call rerender.
5874 (tui_source_window_base::set_new_height): Remove.
5875 (tui_source_window_base::rerender): Rename from
5876 do_make_visible_with_new_height.
5877 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use
5878 resize method.
5879 (tui_win_info::make_invisible_and_set_new_height)
5880 (tui_win_info::make_visible_with_new_height): Remove.
5881 * tui/tui-stack.h (struct tui_locator_window) <rerender>:
5882 Declare.
5883 * tui/tui-stack.c (tui_locator_window::rerender): New method.
5884 * tui/tui-regs.h (struct tui_data_window) <set_new_height,
5885 do_make_visible_with_new_height>: Don't declare.
5886 <rerender>: Declare.
5887 * tui/tui-regs.c (tui_data_window::rerender): Rename from
5888 set_new_height.
5889 (tui_data_window::do_make_visible_with_new_height): Remove.
5890 * tui/tui-layout.c (show_source_disasm_command, show_data): Don't
5891 call tui_show_locator_content.
5892 (tui_gen_win_info::resize): Call rerender.
5893 (show_source_or_disasm_and_command): Don't call
5894 tui_show_locator_content.
5895 * tui/tui-data.h (struct tui_gen_win_info) <rerender>: New
5896 method.
5897 (struct tui_win_info) <rerender>: Declare.
5898 <set_new_height, make_invisible_and_set_new_height,
5899 make_visible_with_new_height>: Don't declare.
5900 * tui/tui-data.c (tui_win_list::rerender): New method.
5901 * tui/tui-command.h (struct tui_cmd_window)
5902 <do_make_visible_with_new_height>: Don't declare.
5903 * tui/tui-command.c
5904 (tui_cmd_window::do_make_visible_with_new_height): Remove.
5905
272560b5
TT
59062019-08-15 Tom Tromey <tromey@adacore.com>
5907
5908 * ada-exp.y (convert_char_literal): Handle "Q%c" encoding.
5909 * ada-lang.c (ada_enum_name): Likewise.
5910
08235187
CB
59112019-08-15 Christian Biesinger <cbiesinger@google.com>
5912
5913 * python/lib/gdb/__init__.py (GdbOutputFile): Rename to have a
5914 leading underscore.
5915 (GdbOutputErrorFile): Likewise.
5916 (global scope): Adjust constructor calls to GdbOutput{,Error}File
5917 accordingly.
5918 (execute_unwinders): Rename to have a leading underscore.
5919 (auto_load_packages): Likewise.
5920 (global scope): Adjust call to auto_load_packages accordingly.
5921 (GdbSetPythonDirectory): Likewise.
5922 * python/py-unwind.c (pyuw_sniffer): Call _execute_unwinders
5923 instead of execute_unwinders.
5924
db502012
TT
59252019-08-15 Tom Tromey <tom@tromey.com>
5926
5927 * tui/tui-layout.c (show_layout, show_source_disasm_command)
5928 (show_data): Don't change window visibility.
5929 (tui_gen_win_info::resize): Remove special case for command
5930 window. Use wresize, when available.
5931 (show_source_or_disasm_and_command): Don't change window
5932 visibility.
5933 * tui/tui-command.h (struct tui_cmd_window) <resize>: Declare.
5934 <make_visible>: New method.
5935 * tui/tui-command.c (tui_cmd_window::resize): New method.
5936
3891b65e
TT
59372019-08-15 Tom Tromey <tom@tromey.com>
5938
5939 * tui/tui-winsource.h (struct tui_source_window_iterator): New.
5940 (struct tui_source_windows): New.
5941 * tui/tui-winsource.c (tui_display_main): Update.
5942 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
5943 (new_height_ok, parse_scrolling_args): Update.
5944 * tui/tui-layout.c (show_layout, show_data): Update.
5945 * tui/tui-data.h (tui_source_windows, tui_clear_source_windows)
5946 (tui_add_to_source_windows): Don't declare.
5947 * tui/tui-data.c (source_windows, tui_source_windows)
5948 (tui_clear_source_windows, tui_add_to_source_windows): Remove.
5949
ee556432
TT
59502019-08-15 Tom Tromey <tom@tromey.com>
5951
5952 * tui/tui-winsource.h (struct tui_source_window_base) <resize>:
5953 Rename from reset.
5954 * tui/tui-winsource.c (tui_source_window_base::resize): Rename.
5955 * tui/tui-layout.c (show_source_disasm_command, show_data):
5956 Update.
5957 (tui_gen_win_info::resize): Rename.
5958 (show_source_or_disasm_and_command): Update.
5959 * tui/tui-data.h (struct tui_gen_win_info) <resize>: Rename from
5960 reset.
5961
46f438e3
TT
59622019-08-15 Tom Tromey <tom@tromey.com>
5963
5964 * tui/tui-stack.c (tui_initialize_static_data): Remove.
5965 * tui/tui-interp.c (tui_interp::init): Don't call
5966 tui_initialize_static_data.
5967 * tui/tui-data.h (tui_initialize_static_data): Don't declare.
5968
f4ce562c
TT
59692019-08-15 Tom Tromey <tom@tromey.com>
5970
5971 * tui/tui-layout.c (tui_default_win_viewport_height): Don't
5972 examine tui_win_list.
5973
c398c3d0
TT
59742019-08-15 Tom Tromey <tom@tromey.com>
5975
5976 * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
5977 * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
5978 tui_clear_source_content.
5979 (tui_clear_source_content): Remove.
5980 (tui_source_window_base::do_erase_source_content): Hoist call to
5981 content.clear().
5982 * tui/tui-stack.c (tui_show_frame_info): Don't call
5983 tui_clear_source_content.
5984
e25d2004
TT
59852019-08-15 Tom Tromey <tom@tromey.com>
5986
5987 * tui/tui-winsource.h (struct tui_source_window_base)
5988 <do_erase_source_content>: New method.
5989 <erase_source_content>: New method.
5990 (tui_erase_source_content): Don't declare.
5991 * tui/tui-winsource.c (tui_clear_source_content): Update.
5992 (tui_source_window_base::do_erase_source_content): Rename from
5993 tui_erase_source_content.
5994 (tui_source_window_base::show_source_content): Update.
5995 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
5996 * tui/tui-source.h (struct tui_source_window)
5997 <erase_source_content>: New method.
5998 * tui/tui-disasm.h (struct tui_disasm_window)
5999 <erase_source_content>: New method.
6000
002f15c2
TT
60012019-08-15 Tom Tromey <tom@tromey.com>
6002
6003 * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
6004 (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
6005 constructor.
6006 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
6007 * tui/tui-source.c (tui_set_source_content): Update.
6008 * tui/tui-disasm.c (tui_set_disassem_content): Update.
6009
c9033fe8
TT
60102019-08-15 Tom Tromey <tom@tromey.com>
6011
6012 * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
6013 * tui/tui-winsource.c (tui_line_is_displayed): Move to
6014 tui-source.c.
6015 * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
6016 Declare.
6017 * tui/tui-source.c (tui_source_window::line_is_displayed): New
6018 method.
6019 (tui_source_window::maybe_update): Update.
6020
088f37dd
TT
60212019-08-15 Tom Tromey <tom@tromey.com>
6022
6023 * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
6024 * tui/tui-winsource.c (tui_addr_is_displayed): Move to
6025 tui-disasm.c.
6026 * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
6027 Declare.
6028 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
6029 method.
6030 (tui_disasm_window::maybe_update): Update.
6031
a54700c6
TT
60322019-08-15 Tom Tromey <tom@tromey.com>
6033
6034 * tui/tui-winsource.h (struct tui_source_window_base)
6035 <maybe_update>: Declare.
6036 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
6037 method.
6038 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
6039 Declare.
6040 * tui/tui-source.c (tui_source_window::maybe_update): New method.
6041 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
6042 Declare.
6043 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
6044
e2a678a5
TT
60452019-08-15 Tom Tromey <tom@tromey.com>
6046
6047 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
6048
f2dda477
TT
60492019-08-15 Tom Tromey <tom@tromey.com>
6050
6051 * tui/tui-wingeneral.c: Include tui-stack.h.
6052 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
6053 (struct tui_locator_window): Move from tui-data.h.
6054 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
6055 (tui_initialize_static_data): Move from tui-data.c.
6056 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
6057 (struct tui_locator_window): Move to tui-stack.c.
6058 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
6059 (tui_initialize_static_data): Move to tui-stack.c.
6060
ed4a1084
TT
60612019-08-15 Tom Tromey <tom@tromey.com>
6062
6063 * tui/tui-layout.c (show_source_disasm_command)
6064 (show_source_or_disasm_and_command): Use make_visible method, not
6065 tui_make_window.
6066 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
6067 Remove.
6068
65962b20
TT
60692019-08-15 Tom Tromey <tom@tromey.com>
6070
6071 * tui/tui-wingeneral.h (tui_make_window): Update.
6072 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
6073 parameter.
6074 (tui_gen_win_info::make_visible): Update.
6075 * tui/tui-regs.c (tui_data_window::display_registers_from):
6076 Update.
6077 * tui/tui-layout.c (show_source_disasm_command)
6078 (show_source_or_disasm_and_command): Update.
6079 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
6080 (enum tui_box): Remove.
6081 (struct tui_win_info) <can_box>: New method.
6082 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
6083 method.
6084
2208ee91
TV
60852019-08-15 Tom de Vries <tdevries@suse.de>
6086
6087 * linux-nat-trad.c: Include gdbarch.h.
6088
75faf5c4
AH
60892019-08-14 Alan Hayward <alan.hayward@arm.com>
6090
6091 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
6092 register sizes.
6093
b1c896b3
TT
60942019-08-14 Tom Tromey <tromey@adacore.com>
6095
6096 * darwin-nat.c: Include gdbarch.h.
6097 * darwin-nat-info.c: Include gdbarch.h.
6098
6405cd73
TT
60992019-08-13 Tom Tromey <tom@tromey.com>
6100
6101 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
6102 Remove.
6103 * tui/tui-data.c (tui_initialize_static_data): Update.
6104
5216580d
TT
61052019-08-13 Tom Tromey <tom@tromey.com>
6106
6107 * tui/tui-winsource.h (struct tui_exec_info_window)
6108 <~tui_exec_info_window, maybe_allocate_content, get_content,
6109 m_content>: Remove.
6110 (struct tui_source_window_base) <set_exec_info_content,
6111 show_exec_info_content>: Don't declare.
6112 * tui/tui-winsource.c
6113 (tui_exec_info_window::maybe_allocate_content): Remove.
6114 (tui_source_window_base::update_exec_info): Rename from
6115 set_exec_info_content.
6116 (tui_source_window_base::show_exec_info_content)
6117 (tui_source_window_base::update_exec_info): Remove.
6118
93858ad3
TT
61192019-08-13 Tom Tromey <tom@tromey.com>
6120
6121 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
6122 declare.
6123 * tui/tui-winsource.c (tui_update_source_window_as_is)
6124 (tui_update_source_windows_with_addr, tui_erase_source_content):
6125 Update.
6126 (tui_clear_exec_info_content): Remove.
6127
e321e7ce
TT
61282019-08-13 Tom Tromey <tom@tromey.com>
6129
6130 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
6131 declare.
6132 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
6133 call tui_erase_exec_info_content.
6134 (tui_clear_exec_info_content): Rename from
6135 tui_erase_exec_info_content.
6136 (tui_clear_exec_info_content): Delete.
6137
8270ac62
TT
61382019-08-13 Tom Tromey <tom@tromey.com>
6139
6140 * tui/tui-winsource.h (struct tui_source_window_base)
6141 <show_exec_info_content>: Declare.
6142 (tui_show_exec_info_content): Don't declare.
6143 * tui/tui-winsource.c
6144 (tui_source_window_base::show_exec_info_content): Rename from
6145 tui_show_exec_info_content.
6146 (tui_source_window_base::update_exec_info): Update.
6147
7b56485d
TT
61482019-08-13 Tom Tromey <tom@tromey.com>
6149
6150 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
6151 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
6152 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
6153 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
6154 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
6155 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
6156 ... here.
6157
7ba913dc
TT
61582019-08-13 Tom Tromey <tom@tromey.com>
6159
6160 * tui/tui-winsource.h (struct tui_source_window_base)
6161 <update_exec_info>: Declare.
6162 (tui_update_exec_info): Don't declare.
6163 * tui/tui-winsource.c (tui_update_source_window_as_is)
6164 (tui_source_window_base::refresh_all)
6165 (tui_update_all_breakpoint_info): Update.
6166 (tui_source_window_base::update_exec_info): Rename from
6167 tui_update_exec_info.
6168 * tui/tui-stack.c (tui_show_frame_info): Update.
6169
37a4a131
TT
61702019-08-13 Tom Tromey <tom@tromey.com>
6171
6172 * tui/tui-winsource.h (struct tui_source_window_base)
6173 <set_exec_info_content>: Declare.
6174 (tui_set_exec_info_content): Don't declare.
6175 * tui/tui-winsource.c
6176 (tui_source_window_base::set_exec_info_content): Rename from
6177 tui_set_exec_info_content.
6178 (tui_update_exec_info): Update.
6179
0bd27e07
TT
61802019-08-13 Tom Tromey <tom@tromey.com>
6181
6182 * tui/tui-winsource.h (struct tui_source_window_base)
6183 <show_source_content>: Declare.
6184 (tui_show_source_content): Don't declare.
6185 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
6186 (tui_source_window_base::show_source_content): Rename from
6187 tui_show_source_content.
6188 (tui_source_window_base::refresh_all): Update.
6189 * tui/tui-layout.c (show_source_disasm_command)
6190 (show_source_or_disasm_and_command): Update.
6191
b4ef5aeb
TT
61922019-08-13 Tom Tromey <tom@tromey.com>
6193
6194 * tui/tui-winsource.c (tui_erase_source_content)
6195 (tui_show_source_content, tui_source_window_base::refresh_all):
6196 Update.
6197 * tui/tui-wingeneral.h
6198 (tui_check_and_display_highlight_if_needed): Don't declare.
6199 * tui/tui-wingeneral.c
6200 (tui_win_info::check_and_display_highlight_if_needed): Rename from
6201 check_and_display_highlight_if_needed.
6202 * tui/tui-win.c (tui_rehighlight_all)
6203 (tui_win_info::make_visible_with_new_height): Update.
6204 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
6205 (tui_data_window::erase_data_content)
6206 (tui_data_window::display_all_data): Update.
6207 * tui/tui-data.h (struct tui_win_info)
6208 <check_and_display_highlight_if_needed>: Declare.
6209
fede5273
TT
62102019-08-13 Tom Tromey <tom@tromey.com>
6211
6212 * tui/tui-win.c (tui_resize_all): Call
6213 tui_delete_invisible_windows.
6214 * tui/tui-layout.c (show_layout): Call
6215 tui_delete_invisible_windows.
6216 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
6217 * tui/tui-data.c (tui_delete_invisible_windows): New function.
6218
22c3f490
TT
62192019-08-13 Tom Tromey <tom@tromey.com>
6220
6221 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
6222 tui_add_win_to_layout.
6223
16cb7910
TT
62242019-08-13 Tom Tromey <tom@tromey.com>
6225
6226 * tui/tui-layout.h (tui_default_win_height): Don't declare.
6227 * tui/tui-layout.c (tui_default_win_height): Now static.
6228
cc0c3ffb
TT
62292019-08-13 Tom Tromey <tom@tromey.com>
6230
6231 * tui/tui-layout.c (show_layout): Unify all layout cases into a
6232 single switch.
6233 (show_source_disasm_command, show_source_or_disasm_and_command):
6234 Don't check current layout.
6235
3f3ffe54
TT
62362019-08-13 Tom Tromey <tom@tromey.com>
6237
6238 * tui/tui-wingeneral.c (make_all_visible): Remove.
6239 (tui_make_all_invisible): Simplify.
6240 * tui/tui-layout.c (tui_make_all_invisible): Move from
6241 tui-wingeneral.c; simplify.
6242 (show_layout): Hoist call to tui_make_all_invisible.
6243 (show_data): Don't call tui_make_all_invisible.
6244
69258091
TT
62452019-08-13 Tom Tromey <tom@tromey.com>
6246
6247 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
6248 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
6249
62cf57fe
TT
62502019-08-13 Tom Tromey <tom@tromey.com>
6251
6252 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
6253 tui-data.c.
6254 (show_source_disasm_command, show_data)
6255 (show_source_or_disasm_and_command): Don't use
6256 tui_set_current_layout_to.
6257 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
6258 * tui/tui-data.c (current_layout, tui_current_layout): Move to
6259 tui-layout.c.
6260 (tui_set_current_layout_to): Remove.
6261
2afade5d
TT
62622019-08-13 Tom Tromey <tom@tromey.com>
6263
6264 * tui/tui-layout.c (tui_set_layout): Update.
6265 * tui/tui-data.h (struct tui_layout_def): Remove.
6266 (tui_layout_def): Don't declare.
6267 * tui/tui-data.c (layout_def): Remove.
6268 (tui_layout_def): Remove.
6269
a3504e96
TT
62702019-08-13 Tom Tromey <tom@tromey.com>
6271
6272 * tui/tui-winsource.h (struct tui_source_window_base)
6273 <clear_detail>: No longer "override".
6274 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
6275 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
6276 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
6277 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
6278 Remove.
6279 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
6280
29c92911
TT
62812019-08-13 Tom Tromey <tromey@adacore.com>
6282
6283 * tracepoint.c: Don't include readline.h or history.h.
6284
86c6b807
TT
62852019-08-12 Tom Tromey <tom@tromey.com>
6286
6287 * configure: Rebuild.
6288 * configure.ac: Check for readline 7.
6289 * NEWS: Mention readline 7 requirement.
6290 * README: Update.
6291
5db2718c
TT
62922019-08-12 Tom Tromey <tom@tromey.com>
6293
6294 * mingw-hdep.c (gdb_select): Remove readline hack.
6295
dac36daf
PFC
62962019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6297
6298 * blockframe.c (find_pc_partial_function): Set *block to nullptr
6299 when the function fails.
6300
1022c627
AA
63012019-08-09 Andreas Arnez <arnez@linux.ibm.com>
6302
6303 * s390-tdep.c (s390_type_align): New function.
6304 (s390_gdbarch_init): Set it as type_align gdbarch method.
6305
eba4caf2
TV
63062019-08-09 Tom de Vries <tdevries@suse.de>
6307
6308 PR gdb/24591
6309 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
6310 pc_low with relocation offset.
6311
123cd851
TT
63122019-08-07 Tom Tromey <tromey@adacore.com>
6313
6314 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
6315 (print_frame_args): Update.
6316 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
6317 Update.
6318 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
6319 * frame.h (struct frame_arg): Add initializers.
6320 <error>: Now a unique_xmalloc_ptr.
6321
3d31bc39
AH
63222019-08-07 Alan Hayward <alan.hayward@arm.com>
6323
6324 * NEWS: Expand the Pointer Authentication entry.
6325 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
6326 (aarch64_frame_unmask_lr): ... to this.
6327 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
6328 Call aarch64_frame_unmask_lr.
6329 * frame.c (struct frame_info): Add "masked" variable.
6330 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
6331 (fprint_frame): Check for masked pc.
6332 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
6333 declarations.
6334 * python/py-framefilter.c (py_print_frame): Check for masked pc.
6335 * stack.c (print_frame): Check for masked pc.
6336
0cf9feb9
TT
63372019-08-06 Tom Tromey <tom@tromey.com>
6338
6339 * stabsread.c (patch_block_stabs, read_one_struct_field)
6340 (read_enum_type): Use obstack_strndup.
6341 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
6342 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
6343 * dwarf2read.c (guess_full_die_structure_name)
6344 (anonymous_struct_prefix): Use obstack_strndup.
6345 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
6346 * c-exp.y (yylex): Use obstack_strndup.
6347 * ada-exp.y (write_object_renaming, write_ambiguous_var)
6348 (write_var_or_type): Use obstack_strndup.
6349
efba19b0
TT
63502019-08-06 Tom Tromey <tom@tromey.com>
6351
6352 * symfile.c (reread_symbols): Use obstack_strdup.
6353 * stabsread.c (read_type): Use obstack_strdup.
6354 * gdb_obstack.h (obstack_strdup): New overload.
6355 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
6356 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
6357 (dwarf2_canonicalize_name): Use obstack_strdup.
6358 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
6359 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
6360 Use obstack_strdup.
6361
f25102f7
TT
63622019-08-06 Tom Tromey <tom@tromey.com>
6363
6364 * gdb_obstack.h (obstack_strdup): Define.
6365 * gdb_obstack.c (obstack_strdup): Don't define.
6366
021887d8
TT
63672019-08-06 Tom Tromey <tom@tromey.com>
6368
6369 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
6370 obstack_strdup.
6371 * typeprint.c (typedef_hash_table::find_global_typedef): Use
6372 obstack_strdup.
6373 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
6374 * stabsread.c (common_block_start): Use obstack_strdup.
6375 * objfiles.c (set_objfile_main_name, objfile): Use
6376 obstack_strdup.
6377 * namespace.c (add_using_directive): Use obstack_strdup.
6378 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
6379 * jit.c (finalize_symtab): Use obstack_strdup.
6380 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
6381 (guess_partial_die_structure_name, partial_die_info::fixup)
6382 (dwarf2_name): Use obstack_strdup.
6383 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
6384 obstack_strdup.
6385 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
6386 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
6387 obstack_strdup.
6388 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
6389
d2834edc
PW
63902019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6391
6392 * unittests/help-doc-selftests.c: New file.
6393 * Makefile.in: Add the new file.
6394
590042fc
PW
63952019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6396
6397 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
6398 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
6399 the full first line, except when FOR_VALUE_PREFIX. In this case,
6400 the trailing '.' is not output, and the first character is uppercased.
6401 (print_help_for_command): Update call to print_doc_line.
6402 (print_doc_of_command): Likewise.
6403 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
6404 * cli/cli-option.c (append_indented_doc): Do not append newline.
6405 (build_help_option): Append newline after first appended_indented_doc
6406 only if a second call is done.
6407 (build_help): Append 2 new lines before each option, except the first
6408 one.
6409 * compile/compile.c (_initialize_compile): Add new lines after
6410 %OPTIONS%, when not at the end of the help.
6411 Change help doc or code
6412 producing the help doc to respect the invariants.
6413 * maint-test-options.c (_initialize_maint_test_options): Likewise.
6414 Also removed the new line after 'Options:', as all other commands
6415 do not put an empty line between 'Options:' and the first option.
6416 * printcmd.c (_initialize_printcmd): Likewise.
6417 * stack.c (_initialize_stack): Likewise.
6418 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
6419 incorrectly telling COMMAND is optional.
6420 * ada-lang.c (_initialize_ada_language): Change help doc or code
6421 producing the help doc to respect the invariants.
6422 * ada-tasks.c (_initialize_ada_tasks): Likewise.
6423 * breakpoint.c (_initialize_breakpoint): Likewise.
6424 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
6425 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
6426 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
6427 * cli/cli-style.c (cli_style_option::add_setshow_commands,
6428 _initialize_cli_style): Likewise.
6429 * corelow.c (core_target_info): Likewise.
6430 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
6431 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
6432 * filesystem.c (_initialize_filesystem): Likewise.
6433 * frame.c (_initialize_frame): Likewise.
6434 * gnu-nat.c (add_task_commands): Likewise.
6435 * infcall.c (_initialize_infcall): Likewise.
6436 * infcmd.c (_initialize_infcmd): Likewise.
6437 * interps.c (_initialize_interpreter): Likewise.
6438 * language.c (_initialize_language): Likewise.
6439 * linux-fork.c (_initialize_linux_fork): Likewise.
6440 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
6441 * maint.c (_initialize_maint_cmds): Likewise.
6442 * memattr.c (_initialize_mem): Likewise.
6443 * printcmd.c (_initialize_printcmd): Likewise.
6444 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
6445 _RegEx): Likewise.
6446 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
6447 * record-btrace.c (_initialize_record_btrace): Likewise.
6448 * record-full.c (_initialize_record_full): Likewise.
6449 * record.c (_initialize_record): Likewise.
6450 * regcache-dump.c (_initialize_regcache_dump): Likewise.
6451 * regcache.c (_initialize_regcache): Likewise.
6452 * remote.c (add_packet_config_cmd, init_remote_threadtests,
6453 _initialize_remote): Likewise.
6454 * ser-tcp.c (_initialize_ser_tcp): Likewise.
6455 * serial.c (_initialize_serial): Likewise.
6456 * skip.c (_initialize_step_skip): Likewise.
6457 * source.c (_initialize_source): Likewise.
6458 * stack.c (_initialize_stack): Likewise.
6459 * symfile.c (_initialize_symfile): Likewise.
6460 * symtab.c (_initialize_symtab): Likewise.
6461 * target-descriptions.c (_initialize_target_descriptions): Likewise.
6462 * top.c (init_main): Likewise.
6463 * tracefile-tfile.c (tfile_target_info): Likewise.
6464 * tracepoint.c (_initialize_tracepoint): Likewise.
6465 * tui/tui-win.c (_initialize_tui_win): Likewise.
6466 * utils.c (add_internal_problem_command): Likewise.
6467 * valprint.c (value_print_option_defs): Likewise.
6468
404f2902
FCE
64692019-08-06 Frank Ch. Eigler <fche@redhat.com>
6470
6471 PR build/24886
6472 * configure.ac: Drop enable-libmcheck support.
6473 * configure, config.in: Rebuild.
6474 * libmcheck.m4: Remove.
6475 * acinclude.m4: Don't include it.
6476 * Makefile.in: Don't distribute it.
6477 * top.c (print_gdb_configuration): Don't mention it.
6478
046bebe1
TT
64792019-08-06 Tom Tromey <tom@tromey.com>
6480
6481 * utils.c (set_output_style): Sometimes pass stream to
6482 emit_style_escape.
6483 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
6484 * record-btrace.c (btrace_insn_history): Update.
6485 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
6486 method.
6487 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
6488 Update initializers.
6489 <m_uiout>: New field.
6490 <m_di>: Move lower.
6491 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
6492 Remove "uiout" parameter.
6493 (dump_insns): Update.
6494 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
6495 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
6496
ddbcedf5
CB
64972019-08-06 Christian Biesinger <cbiesinger@google.com>
6498
6499 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
6500 (error_in_psymtab_expansion): Likewise.
6501 (lookup_symbol_via_quick_fns): Likewise.
6502 (basic_lookup_transparent_type_quick): Likewise.
6503 (basic_lookup_transparent_type_1): Likewise.
6504
b08b16c8
TT
65052019-08-06 Tom Tromey <tromey@adacore.com>
6506
6507 * source.c (last_source_error): Now bool.
6508 (print_source_lines_base): Make "noprint" bool. Only open
6509 source file when last_source_visited changes.
6510
cb44333d
TT
65112019-08-06 Tom Tromey <tromey@adacore.com>
6512
6513 * annotate.c (annotate_source_line): Use g_source_cache.
6514 * source-cache.c (source_cache::get_plain_source_lines): Change
6515 parameters. Populate m_offset_cache.
6516 (source_cache::ensure): New method.
6517 (source_cache::get_line_charpos): New method.
6518 (extract_lines): Move lower. Change parameters.
6519 (source_cache::get_source_lines): Move lower.
6520 * source-cache.h (class source_cache): Update comment.
6521 <get_line_charpos>: New method.
6522 <get_source_lines>: Update comment.
6523 <clear>: Clear m_offset_cache.
6524 <get_plain_source_lines>: Change parameters.
6525 <ensure>: New method
6526 <m_offset_cache>: New member.
6527 * source.c (forget_cached_source_info_for_objfile): Update.
6528 (info_source_command): Use g_source_cache.
6529 (find_source_lines, open_source_file_with_line_charpos): Remove.
6530 (print_source_lines_base, search_command_helper): Use g_source_cache.
6531 * source.h (open_source_file_with_line_charpos): Don't declare.
6532 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
6533 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
6534 Use g_source_cache.
6535
872dceaa
TT
65362019-08-06 Tom Tromey <tromey@adacore.com>
6537
6538 * source-cache.c (source_cache::get_plain_source_lines):
6539 Remove "first_line" and "last_line" parameters.
6540 (source_cache::get_source_lines): Cache plain text.
6541 * source-cache.h (class source_cache)
6542 <get_plain_source_lines>: Update.
6543
269249d9
TT
65442019-08-06 Tom Tromey <tromey@adacore.com>
6545
6546 * source-cache.c (extract_lines): No longer a method.
6547 Changed type of parameter. Include final newline.
6548 (selftests::extract_lines_test): New function.
6549 (_initialize_source_cache): Likewise.
6550 * source-cache.h (class source_cache)
6551 <extract_lines>: Don't declare.
6552
c0e8dcd8
TT
65532019-08-06 Tom Tromey <tromey@adacore.com>
6554
6555 * breakpoint.c (init_breakpoint_sal): Update.
6556 (breakpoint): Update.
6557 * breakpoint.h (struct breakpoint) <filter>: Now a
6558 unique_xmalloc_ptr.
6559
0b27c27d
CB
65602019-08-05 Christian Biesinger <cbiesinger@google.com>
6561
6562 * NEWS: Mention dictionary access on blocks.
6563 * python/py-block.c (blpy_getitem): New function.
6564 (block_object_as_mapping): New struct.
6565 (block_object_type): Use new struct for tp_as_mapping field.
6566
4ee94178
CB
65672019-08-05 Christian Biesinger <cbiesinger@google.com>
6568
6569 * objfiles.h (objfile): Add a comment describing partial symbols.
6570
8abfcabc
TT
65712019-08-05 Tom Tromey <tromey@adacore.com>
6572
6573 * compile/compile.c (_initialize_compile): Use _(), not N_().
6574 * thread.c (_initialize_thread): Use _(), not N_().
6575 * stack.c (_initialize_stack): Use _(), not N_().
6576 * printcmd.c (_initialize_printcmd): Use _(), not N_().
6577
2b79f376
SM
65782019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6579
6580 * dwarf2read.c (struct dw2_symtab_iterator):
6581 <want_specific_block>: Remove.
6582 <block_index>: Change type to gdb::optional.
6583 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
6584 change type of BLOCK_INDEX parameter to gdb::optional.
6585 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
6586 (dw2_lookup_symbol): Don't pass argument for
6587 WANT_SPECIFIC_BLOCK.
6588 (dw2_expand_symtabs_for_function): Don't pass argument for
6589 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
6590 (class dw2_debug_names_iterator)
6591 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
6592 parameter, change BLOCK_INDEX type to gdb::optional.
6593 <m_want_specific_block>: Remove.
6594 <m_block_index>: Change type to gdb::optional.
6595 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
6596 gdb::optional. Re-write in function of gdb::optional.
6597 (dw2_debug_names_lookup_symbol): Don't pass argument for
6598 WANT_SPECIFIC_BLOCK.
6599 (dw2_debug_names_expand_symtabs_for_function): Don't pass
6600 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
6601 BLOCK_INDEX.
6602
ae60f04e
PW
66032019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6604
6605 * NEWS: Mention changes to "info sources" command.
6606
28cd9371
PW
66072019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6608
6609 * symtab.c (filename_partial_match_opts): New struct type.
6610 (struct output_source_filename_data): New members
6611 regexp, c_regexp, partial_match.
6612 (output_source_filename): Use new members to decide to print file.
6613 (info_sources_option_defs): New variable.
6614 (make_info_sources_options_def_group, print_info_sources_header,
6615 info_sources_command_completer):
6616 New functions.
6617 (info_sources_command): Read new optional arguments.
6618 (_initialize_symtab): Update info sources help.
6619
ca683e3a
AO
66202019-08-02 Alexandre Oliva <oliva@adacore.com>
6621
6622 * ada-lang.c (exception_support_info_v0): Renamed from...
6623 (default_exception_support_info): ... this. Create new
6624 definition for v1.
6625 (ada_has_this_exception_support): Look up catch_handlers_sym.
6626 (ada_exception_support_info_sniffer): Try v0 after default.
6627
f1264162
TT
66282019-08-01 Tom Tromey <tromey@adacore.com>
6629
6630 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
6631 gdbarch.h.
6632
0a7b2485
CB
66332019-08-01 Christian Biesinger <cbiesinger@google.com>
6634
6635 * s12z-tdep.c: Fix include path for s12z-opc.h.
6636
c6bdbeb7
AH
66372019-08-01 Alan Hayward <alan.hayward@arm.com>
6638
6639 * NEWS: Require GNU make 3.82.
6640
a2bd7b82
TT
66412019-07-16 Tom Tromey <tom@tromey.com>
6642
6643 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
6644 declare.
6645
aa3b6533
TT
66462019-07-30 Tom Tromey <tromey@adacore.com>
6647
6648 * block.c (contained_in): Remove BLOCK_FUNCTION check.
6649
a1530dc7
KB
66502019-07-30 Kevin Buettner <kevinb@redhat.com>
6651
6652 * printcmd.c (print_address_symbolic): Print negative offsets.
6653 (build_address_symbolic): Force signed arithmetic when computing
6654 offset.
6655
2906593f
CB
66562019-07-30 Christian Biesinger <cbiesinger@google.com>
6657
6658 PR/24474: Add a function to lookup static variables.
6659 * NEWS: Mention this new function.
6660 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
6661 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
6662 * python/python.c (python_GdbMethods): Add new function.
6663
c620ed88
CB
66642019-07-29 Christian Biesinger <cbiesinger@google.com>
6665
6666 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
6667 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
6668 (objfpy_lookup_static_symbol): New function.
6669 (objfile_object_methods): Add new functions.
6670
bc4268a5
PW
66712019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6672
6673 * NEWS: Mention 'set|show print frame-info'. Mention new
6674 'presence' value for 'frame-arguments'. Mention new '-frame-info'
6675 backtrace argument. Mention that python frame filtering code
6676 is now consistent with what 'backtrace' command prints.
6677
4b5e8d19
PW
66782019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6679
6680 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
6681 comments.
6682 (print_frame_info_auto, print_frame_info_source_line,
6683 print_frame_info_location, print_frame_info_source_and_location,
6684 print_frame_info_location_and_address, print_frame_info_short_location):
6685 New declarations.
6686 (struct frame_print_options): New member print_frame_info.
6687 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
6688 * stack.h (get_user_print_what_frame_info): New declaration.
6689 (frame_show_address): New declaration.
6690 * stack.c (print_frame_arguments_choices): New value 'presence'.
6691 (print_frame_info_auto, print_frame_info_source_line,
6692 print_frame_info_location, print_frame_info_source_and_location,
6693 print_frame_info_location_and_address, print_frame_info_short_location,
6694 print_frame_info_choices, print_frame_info_print_what): New definitions.
6695 (print_frame_args): Only print dots for args if print frame-arguments
6696 is 'presence'.
6697 (frame_print_option_defs): New element for "frame-info".
6698 (get_user_print_what_frame_info): New function.
6699 (frame_show_address): Make non static. Move comment to stack.h.
6700 (print_frame_info_to_print_what): New function.
6701 (print_frame_info): Update comment. Use fp_opts.print_frame_info
6702 to decide what to print.
6703 (backtrace_command_1): Handle the new print_frame_arguments_presence
6704 value.
6705 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
6706 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
6707 (py_print_frame): In non-mi mode, use LOCATION as default for
6708 print_what, similarly to frame information printed directly by
6709 backtrace command. Handle frame-info user option in non MI mode.
6710
6bdfee81
KB
67112019-07-27 Kevin Buettner <kevinb@redhat.com>
6712
6713 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
6714 Add case for debugging 32-bit target on 64-bit host. Revise
6715 comment.
6716
98a617f8
KB
67172019-07-27 Kevin Buettner <kevinb@redhat.com>
6718
6719 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
6720 instead of find_function_entry_range_from_pc.
6721
567238c9
KB
67222019-07-27 Kevin Buettner <kevinb@redhat.com>
6723
6724 * stack.c (find_frame_funname): Remove code which preferred
6725 minsym over symtab sym in "certain pathological cases".
6726
2dc80cf8
KB
6727 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
6728 parameter. Change type of "do_demangle" to bool.
6729 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
6730 Pass suitable "prefer_sym_over_minsym" flag to
6731 build_address_symbolic(). Don't output "+" for negative offsets.
6732 * printcmd.c (print_address_symbolic): Update invocation of
6733 build_address_symbolic to include a "prefer_sym_over_minsym"
6734 flag.
6735 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
6736 Restrict cases in which use of minimal symbol is preferred to that
6737 of a found symbol. Update comments.
6738
1aff7173
KB
6739 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
6740 for entry pc when entry pc is out of range for that FDE.
6741
89b085ac
BC
67422019-07-26 Brian Callahan <bcallah@openbsd.org>
6743
6744 PR gdb/24839:
6745 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
6746 type.
6747
f32feb4a
CB
67482019-07-25 Christian Biesinger <cbiesinger@google.com>
6749
6750 * python/py-objfile.c (add_separate_debug_file): Fix comment about
6751 this function's Python signature.
6752
6753
67542019-07-24 Christian Biesinger <cbiesinger@google.com>
442853af
CB
6755
6756 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
6757 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
6758 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
6759 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
6760 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
6761
6762
c54e4253
YS
67632019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
6764
6765 * h8300-tdep.c (h8300_register_name_common): New.
6766 h8300_register_name): Use h8300_register_name_common.
6767 (h8300s_register_name): Likewise.
6768 (h8300sx_register_name): Likewise.
6769 (h8300h_register_nam): New.
6770 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
6771
6772
40eadf04
SP
67732019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
6774
6775 * arm-tdep.c (arm_skip_cmse_entry): New function.
6776 (arm_is_sgstubs_section): New function.
6777 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
6778
bfa2a36d
TT
67792019-07-22 Tom Tromey <tom@tromey.com>
6780
6781 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
6782 Don't self-assign.
6783
a8e9d247
AB
67842019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
6785
6786 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
6787 type_print.
6788
eb86c5e2
AB
67892019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
6790
6791 * symtab.c (search_symbols): Adjust msymbol matching type arrays
6792 so that GDB doesn't match any msymbols when searching in the
6793 TYPES_DOMAIN.
6794 (print_symbol_info): Print using typedef_print or type_print based
6795 on the type of the symbol. Add updated FIXME comment moved from...
6796 (_initialize_symtab): ... move and update FIXME comment to above.
6797
a8eab7c6
AB
67982019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
6799
6800 * NEWS: Mention adding -q option to "info types".
6801 * symtab.c (struct info_types_options): New struct.
6802 (info_types_options_defs): New variable.
6803 (make_info_types_options_def_group): New function.
6804 (info_types_command): Use gdb::option framework to parse options.
6805 (info_types_command_completer): New function.
6806 (_initialize_symtab): Extend the help text on "info types" and
6807 register command completer.
6808
b4603c34
CB
68092019-07-21 Christian Biesinger <cbiesinger@google.com>
6810
6811 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
6812 (lookup_symbol_in_objfile): Change int to block_enum and add a
6813 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
6814
c8cdc1e0
CB
68152019-07-20 Christian Biesinger <cbiesinger@google.com>
6816
6817 * MAINTAINERS (Write After Approval): Add self.
6818
01e175fe
AB
68192019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
6820
6821 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
6822 instruction to the dummy code region.
6823
56f79b63
TT
68242019-07-19 Tom Tromey <tromey@adacore.com>
6825
6826 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
6827 (ARGSUSED, PARAMS, __func__): Remove rules.
6828
4c5aa8e0
AH
68292019-07-19 Alan Hayward <alan.hayward@arm.com>
6830
6831 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
6832 * features/arm/arm-with-iwmmxt.c: Remove.
6833 * features/arm/arm-with-iwmmxt.xml: Remove.
6834 * features/arm/arm-with-m-fpa-layout.c: Remove.
6835 * features/arm/arm-with-m-fpa-layout.xml: Remove.
6836 * features/arm/arm-with-m-vfp-d16.c: Remove.
6837 * features/arm/arm-with-m-vfp-d16.xml: Remove.
6838 * features/arm/arm-with-m.c: Remove.
6839 * features/arm/arm-with-m.xml: Remove.
6840 * features/arm/arm-with-neon.c: Remove.
6841 * features/arm/arm-with-neon.xml: Remove.
6842 * features/arm/arm-with-vfpv2.c: Remove.
6843 * features/arm/arm-with-vfpv2.xml: Remove.
6844 * features/arm/arm-with-vfpv3.c: Remove.
6845 * features/arm/arm-with-vfpv3.xml: Remove.
6846
f42b2617
AH
68472019-07-19 Alan Hayward <alan.hayward@arm.com>
6848
6849 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
6850
f29ec966
AH
68512019-07-19 Alan Hayward <alan.hayward@arm.com>
6852
6853 * arch/aarch32.c (aarch32_create_target_description): Create
6854 target descriptions using features.
6855 * arch/arm.c (arm_create_target_description)
6856 (arm_create_mprofile_target_description): Likewise.
6857 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
6858
d105cce5
AH
68592019-07-19 Alan Hayward <alan.hayward@arm.com>
6860
6861 * Makefile.in: Add new files.
6862 * aarch32-tdep.c: New file.
6863 * aarch32-tdep.h: New file.
6864 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
6865 Call aarch32_read_description.
6866 * arch/aarch32.c: New file.
6867 * arch/aarch32.h: New file.
6868 * arch/arm.c (arm_create_target_description)
6869 (arm_create_mprofile_target_description): New function.
6870 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
6871 (arm_create_target_description)
6872 (arm_create_mprofile_target_description): New declaration.
6873 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
6874 read_description functions.
6875 * arm-linux-nat.c (arm_linux_nat_target::read_description):
6876 Likewise.
6877 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
6878 * arm-tdep.c (tdesc_arm_list): New variable.
6879 (arm_register_g_packet_guesses): Call create description functions.
6880 (arm_read_description) (arm_read_mprofile_description): New
6881 function.
6882 * arm-tdep.h (arm_read_description)
6883 (arm_read_mprofile_description): Add declaration.
6884 * configure.tgt: Add new files.
6885
afe09f0b
GL
68862019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
6887
6888 * top.c (new_ui_command): Open specified terminal just once.
6889
cd215b2e
TT
68902019-07-18 Tom Tromey <tromey@adacore.com>
6891
6892 * symtab.c (main_name): Constify return type.
6893 * symfile.c (set_initial_language): Update.
6894 * symtab.h (main_name): Constify return type.
6895
d8f68fcb
TT
68962019-07-17 Tom Tromey <tom@tromey.com>
6897
6898 * tui/tui-winsource.c (tui_update_source_window)
6899 (tui_update_source_window_as_is)
6900 (tui_update_source_windows_with_line): Remove return.
6901 * tui/tui-disasm.c (tui_show_disassem)
6902 (tui_show_disassem_and_update_source): Remove return.
6903 * tui/tui.c (tui_reset): Remove return.
6904 * tui/tui-wingeneral.c
6905 (tui_check_and_display_highlight_if_needed): Remove return.
6906
ca5af91e
TT
69072019-07-17 Tom Tromey <tom@tromey.com>
6908
6909 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
6910
5104fe36
TT
69112019-07-17 Tom Tromey <tom@tromey.com>
6912
6913 * tui/tui-winsource.h (struct tui_exec_info_window)
6914 (struct tui_source_window_base): Move from tui-data.h.
6915 * tui/tui-winsource.c: Move many method definitions from
6916 elsewhere. Remove "structuring" comments.
6917 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
6918 (tui_source_window_base::refresh_window): Move to
6919 tui-winsource.c.
6920 * tui/tui-win.c (tui_source_window_base::refresh_all)
6921 (tui_source_window_base::update_tab_width)
6922 (tui_source_window_base::set_new_height)
6923 (tui_source_window_base::do_make_visible_with_new_height): Move to
6924 tui-winsource.c.
6925 * tui/tui-source.h: Update.
6926 * tui/tui-source.c (tui_source_window_base::reset): Move to
6927 tui-winsource.c.
6928 * tui/tui-disasm.h: Update.
6929 * tui/tui-data.h (struct tui_exec_info_window): Move to
6930 tui-winsource.h.
6931 (struct tui_source_window_base): Likewise.
6932 * tui/tui-data.c (tui_source_window_base::clear_detail)
6933 (tui_source_window_base, ~tui_source_window_base): Move to
6934 tui-winsource.c.
6935
daa15dde
TT
69362019-07-17 Tom Tromey <tom@tromey.com>
6937
6938 * tui/tui-win.c (tui_resize_all)
6939 (tui_source_window_base::update_tab_width)
6940 (tui_adjust_win_heights): Update.
6941 (tui_win_info::make_invisible_and_set_new_height): Rename from
6942 make_invisible_and_set_new_height.
6943 * tui/tui-data.h (struct tui_win_info)
6944 <make_invisible_and_set_new_height>: New method.
6945
bfad4537
TT
69462019-07-17 Tom Tromey <tom@tromey.com>
6947
6948 * tui/tui.c: Update.
6949 * tui/tui-source.h (struct tui_source_window): Move from
6950 tui-data.h.
6951 * tui/tui-layout.c: Update.
6952 * tui/tui-disasm.c: Update.
6953 * tui/tui-data.h (struct tui_source_window): Move to
6954 tui-source.h.
6955
88f7e873
TT
69562019-07-17 Tom Tromey <tom@tromey.com>
6957
6958 * tui/tui-disasm.h (struct tui_disasm_window): Move from
6959 tui-data.h.
6960 * tui/tui-data.h (struct tui_disasm_window): Move to
6961 tui-disasm.h.
6962
96bd6233
TT
69632019-07-17 Tom Tromey <tom@tromey.com>
6964
6965 * tui/tui-regs.h (struct tui_data_item_window): Move from
6966 tui-data.h.
6967 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
6968 * tui/tui-data.h (struct tui_data_item_window): Move to
6969 tui-regs.h.
6970 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
6971
ce38393b
TT
69722019-07-17 Tom Tromey <tom@tromey.com>
6973
6974 * tui/tui.c: Update.
6975 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
6976 (tui_cmd_window::max_height): Move to tui-command.c.
6977 * tui/tui-layout.c: Update.
6978 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
6979 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
6980 tui-command.c.
6981 * tui/tui-command.h (struct tui_cmd_window): Move from
6982 tui-data.h.
6983 * tui/tui-command.c: Remove "structuring" comments.
6984 (tui_cmd_window::clear_detail)
6985 (tui_cmd_window::do_make_visible_with_new_height)
6986 (tui_cmd_window::max_height): Move from elsewhere.
6987
2d8b51cb
TT
69882019-07-17 Tom Tromey <tom@tromey.com>
6989
6990 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
6991 Now static.
6992 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
6993 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
6994
18ab23af
TT
69952019-07-17 Tom Tromey <tom@tromey.com>
6996
6997 * tui/tui.c: Update.
6998 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
6999 tui-regs.c.
7000 * tui/tui-windata.h: Remove file.
7001 * tui/tui-windata.c: Remove file.
7002 * tui/tui-win.c (tui_data_window::set_new_height)
7003 (tui_data_window::do_make_visible_with_new_height): Move to
7004 tui-regs.c.
7005 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
7006 * tui/tui-regs.c: Remove "structuring" comments.
7007 (tui_data_window::first_data_item_displayed)
7008 (tui_data_window::delete_data_content_windows)
7009 (tui_data_window::erase_data_content)
7010 (tui_data_window::display_all_data)
7011 (tui_data_window::refresh_all)
7012 (tui_data_window::do_scroll_vertical)
7013 (tui_data_window::clear_detail, tui_data_window::set_new_height)
7014 (tui_data_window::do_make_visible_with_new_height)
7015 (tui_data_window::refresh_window): Move from elsewhere.
7016 (_initialize_tui_regs): Move to end of file.
7017 * tui/tui-layout.c: Update.
7018 * tui/tui-hooks.c: Update.
7019 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
7020 * tui/tui-data.c (tui_data_window::clear_detail): Move to
7021 tui-regs.c.
7022 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
7023
88b7e7cc
TT
70242019-07-17 Tom Tromey <tom@tromey.com>
7025
7026 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
7027 seen.
7028
0fcd3711
TT
70292019-07-17 Tom Tromey <tom@tromey.com>
7030
7031 * tui/tui-win.c (tui_source_window_base::set_new_height)
7032 (tui_source_window_base::do_make_visible_with_new_height): Use
7033 m_has_locator field directly.
7034 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
7035 method.
7036 (struct tui_source_window_base) <has_locator>: Likewise.
7037
4a38112d
TT
70382019-07-17 Tom Tromey <tom@tromey.com>
7039
7040 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
7041 Don't declare.
7042 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
7043 Remove.
7044 * tui/tui-win.c (tui_source_window_base::set_new_height)
7045 (tui_source_window_base::set_new_height)
7046 (make_invisible_and_set_new_height)
7047 (tui_source_window_base::do_make_visible_with_new_height)
7048 (tui_source_window_base::do_make_visible_with_new_height):
7049 Update.
7050 * tui/tui-layout.c (show_source_disasm_command, show_data)
7051 (show_source_or_disasm_and_command): Update.
7052 * tui/tui-layout.c (show_layout): Update.
7053
09129226
TT
70542019-07-17 Tom Tromey <tom@tromey.com>
7055
7056 * tui/tui-layout.c (make_data_window): Remove.
7057 (show_data): Unify creation and re-initialization cases.
7058
4a8a5e84
TT
70592019-07-17 Tom Tromey <tom@tromey.com>
7060
7061 * tui/tui-layout.c (make_source_window, make_disasm_window):
7062 Remove.
7063 (show_data): Unify creation and re-initialization cases.
7064
76d2be8e
TT
70652019-07-17 Tom Tromey <tom@tromey.com>
7066
7067 * tui/tui-layout.c (make_command_window): Remove.
7068 (show_source_disasm_command, show_source_or_disasm_and_command):
7069 Unify creation and re-initialization cases.
7070
890b8bde
TT
70712019-07-17 Tom Tromey <tom@tromey.com>
7072
7073 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
7074 creation and re-initialization cases.
7075
2cdfa113
TT
70762019-07-17 Tom Tromey <tom@tromey.com>
7077
7078 * tui/tui-regs.c (tui_get_register): Return void.
7079
8e3cfd09
TT
70802019-07-17 Tom Tromey <tom@tromey.com>
7081
7082 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
7083 Simplify.
7084
f4e04977
TT
70852019-07-17 Tom Tromey <tom@tromey.com>
7086
7087 * tui/tui-layout.c (show_source_disasm_command): Simplify window
7088 resetting.
7089
0379b883
TT
70902019-07-17 Tom Tromey <tom@tromey.com>
7091
7092 * tui/tui.h (tui_set_layout_by_name): Don't declare.
7093 * tui/tui-regs.c (tui_reg_layout): New function.
7094 (tui_show_registers, tui_reg_command): Use it.
7095 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
7096 (tui_layout_command): Rename from tui_set_layout_by_name. Change
7097 parameters.
7098 (tui_layout_command): Remove.
7099
b7fbad91
TT
71002019-07-17 Tom Tromey <tom@tromey.com>
7101
7102 * tui/tui-layout.h (tui/tui-layout): Return void.
7103 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
7104
4e1e56b9
TT
71052019-07-17 Tom Tromey <tom@tromey.com>
7106
7107 * tui/tui-layout.c (show_source_disasm_command, show_data):
7108 Update.
7109 (reset_locator): Remove.
7110 (show_source_or_disasm_and_command): Update.
7111
1e0c09ba
TT
71122019-07-17 Tom Tromey <tom@tromey.com>
7113
7114 * tui/tui-source.c (tui_source_window_base::reset): Remove
7115 win_type parameter.
7116 * tui/tui-layout.c (make_command_window, make_source_window)
7117 (make_disasm_window, make_data_window)
7118 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
7119 (reset_locator, show_source_or_disasm_and_command): Update.
7120 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
7121 win_type parameter.
7122 (struct tui_source_window_base) <reset>: Likewise.
7123
1bf605de
TT
71242019-07-17 Tom Tromey <tom@tromey.com>
7125
7126 * tui/tui-layout.c (show_source_disasm_command): Use
7127 reset_locator.
7128 (reset_locator): New function.
7129 (init_and_make_win): Remove.
7130 (show_source_or_disasm_and_command): Use reset_locator.
7131
098f9ed4
TT
71322019-07-17 Tom Tromey <tom@tromey.com>
7133
7134 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
7135 condition.
7136 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
7137 Remove condition.
7138 * tui/tui-source.c (tui_source_window_base::reset): New method.
7139 * tui/tui-layout.c (make_command_window): Don't call
7140 init_and_make_win.
7141 (make_source_window, make_disasm_window): Don't call
7142 make_source_or_disasm_window.
7143 (make_data_window): Don't call init_and_make_win. Change calling
7144 convention.
7145 (show_source_disasm_command, show_data): Simplify.
7146 (make_source_or_disasm_window): Remove.
7147 (show_source_or_disasm_and_command): Simplify.
7148 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
7149 (struct tui_source_window_base) <reset>: Likewise.
7150 <execution_info>: Remove initializer.
7151 * tui/tui-data.c (tui_source_window_base): Initialize
7152 execution_info.
7153
80110957
TT
71542019-07-17 Tom Tromey <tom@tromey.com>
7155
7156 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
7157 variable.
7158
cf82af05
TT
71592019-07-17 Tom Tromey <tom@tromey.com>
7160
7161 * tui/tui.c (tui_rl_other_window): Update.
7162 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
7163 superclass method first. Always iterate over regs_content.
7164 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
7165 method.
7166 * tui/tui-win.c (tui_set_focus_command): Update.
7167
01aeb396
TT
71682019-07-17 Tom Tromey <tom@tromey.com>
7169
7170 * tui/tui-win.c (tui_set_focus_command): Rename from
7171 tui_set_focus. Call tui_enable.
7172 (tui_set_focus_command): Remove.
7173
fd6c75ee
TT
71742019-07-17 Tom Tromey <tom@tromey.com>
7175
7176 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
7177 refresh_window.
7178 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
7179 touchwin.
7180 (tui_data_window::refresh_window): Call refresh_window on data
7181 items. Always call superclass refresh_window.
7182 (tui_win_info::refresh): Remove.
7183 (tui_source_window_base::refresh_window): Update.
7184 (tui_refresh_all): Update.
7185 * tui/tui-layout.c (show_source_disasm_command): Remove call to
7186 refresh_window.
7187 (show_source_or_disasm_and_command): Likewise.
7188 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
7189 (struct tui_source_window_base) <refresh>: Likewise.
7190
f6cc34a9
TT
71912019-07-17 Tom Tromey <tom@tromey.com>
7192
7193 * tui/tui-winsource.c (tui_clear_source_content)
7194 (tui_show_source_content): Update.
7195 * tui/tui-source.c (tui_source_window::showing_source_p): Check
7196 whether content is empty.
7197 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
7198 Remove.
7199
f31ec9af
TT
72002019-07-17 Tom Tromey <tom@tromey.com>
7201
7202 * tui/tui-winsource.c (tui_erase_source_content): Clear the
7203 window's contents.
7204 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
7205 * tui/tui-source.c (tui_set_source_content_nil): Remove.
7206
d1b6f1e5
TT
72072019-07-17 Tom Tromey <tom@tromey.com>
7208
7209 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
7210 (struct tui_data_item_window): Update.
7211
d9743a13
TT
72122019-07-17 Tom Tromey <tom@tromey.com>
7213
7214 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
7215 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
7216 defines.
7217
caf0bc4e
TT
72182019-07-17 Tom Tromey <tom@tromey.com>
7219
7220 * tui/tui-winsource.h (tui_erase_source_content)
7221 (tui_clear_source_content): Remove "display_prompt" parameter.
7222 * tui/tui-winsource.c (tui_update_source_window_as_is)
7223 (tui_update_source_windows_with_addr): Update.
7224 (tui_clear_source_content): Remove "display_prompt" parameter.
7225 (tui_erase_source_content): Likewise. Simplify.
7226 (tui_show_source_content): Update.
7227 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
7228 * tui/tui-stack.c (tui_show_frame_info): Update.
7229 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
7230 Remove defines.
7231
9d391078
TT
72322019-07-17 Tom Tromey <tom@tromey.com>
7233
7234 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
7235 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
7236 parameter.
7237 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
7238 parameter.
7239
a38da35d
TT
72402019-07-17 Tom Tromey <tom@tromey.com>
7241
7242 * tui/tui-winsource.c (tui_clear_source_content)
7243 (tui_show_source_content, tui_show_exec_info_content)
7244 (tui_clear_exec_info_content): Update.
7245 * tui/tui-stack.c (tui_show_locator_content): Update.
7246 (tui_show_frame_info): Update.
7247 * tui/tui-source.h (tui_source_window): Don't declare.
7248 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
7249 from tui_source_is_displayed.
7250 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
7251 Remove field.
7252 (struct tui_source_window_base) <content_in_use>: New field. Now
7253 bool.
7254 (struct tui_source_window) <showing_source_p>: New method.
7255 (TUI_SRC_WIN): Change cast.
7256 * tui/tui-data.c (tui_initialize_static_data): Update.
7257
c2cd8994
TT
72582019-07-17 Tom Tromey <tom@tromey.com>
7259
7260 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
7261 location_matches_p.
7262 * tui/tui-source.c (tui_source_window::location_matches_p): New
7263 method.
7264 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
7265 method.
7266 * tui/tui-data.h (struct tui_source_window_base)
7267 <location_matches_p>: New method.
7268 (struct tui_source_window, struct tui_disasm_window)
7269 <location_matches_p>: Likewise.
7270
4dde7b34
TT
72712019-07-17 Tom Tromey <tom@tromey.com>
7272
7273 * tui/tui-win.c (tui_set_win_height_command): Rename from
7274 tui_set_win_height.
7275 (tui_set_win_height_command): Remove.
7276
b73dd877
TT
72772019-07-17 Tom Tromey <tom@tromey.com>
7278
7279 * tui/tui-source.c (tui_source_window): New constructor. Add
7280 observer.
7281 (~tui_source_window): New destructor.
7282 (tui_source_window::style_changed): New method.
7283 * tui/tui-hooks.c (tui_redisplay_source): Remove.
7284 (tui_attach_detach_observers): Update.
7285 * tui/tui-data.h (struct tui_source_window): Make constructor not
7286 inline. Add destructor.
7287 (struct tui_source_window) <style_changed>: New method.
7288 <m_observable>: New member.
7289
ae2b5380
TT
72902019-07-17 Tom Tromey <tom@tromey.com>
7291
7292 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
7293 * tui/tui-win.c (tui_resize_all): Fix typo.
7294
1ce3e844
TT
72952019-07-17 Tom Tromey <tom@tromey.com>
7296
7297 * tui/tui-wingeneral.h (tui_refresh_all): Update.
7298 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
7299 (tui_refresh_all): Remove "list" parameter. Use foreach.
7300 * tui/tui-win.c (window_name_completer): Use foreach.
7301 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
7302 (update_tab_width): Likewise.
7303 * tui/tui-layout.c (show_layout): Update.
7304 * tui/tui-data.h (class tui_window_iterator): New.
7305 (struct all_tui_windows): New.
7306 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
7307
fe3eaf1c
TT
73082019-07-17 Tom Tromey <tom@tromey.com>
7309
7310 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
7311 parameter. Don't reference globals.
7312 (tui_reg_command): Update.
7313
368c1354
TT
73142019-07-17 Tom Tromey <tom@tromey.com>
7315
7316 * tui/tui-regs.c (tui_show_registers): Simplify.
7317
e80cd204
TT
73182019-07-17 Tom Tromey <tom@tromey.com>
7319
7320 * tui/tui-regs.c (tui_show_registers): Update.
7321 (tui_show_register_group): Add win_info parameter.
7322
aca2dd16
TT
73232019-07-17 Tom Tromey <tom@tromey.com>
7324
7325 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
7326 Rename from tui_display_reg_element_at_line.
7327 (tui_data_window::display_registers_from_line): Update.
7328 * tui/tui-data.h (struct tui_data_window)
7329 <display_reg_element_at_line>: New method.
7330
517e9505
TT
73312019-07-17 Tom Tromey <tom@tromey.com>
7332
7333 * tui/tui-regs.h (tui_display_registers_from)
7334 (tui_display_registers_from_line): Don't declare.
7335 * tui/tui-windata.c (tui_data_window::display_all_data)
7336 (tui_data_window::refresh_all)
7337 (tui_data_window::do_scroll_vertical): Update.
7338 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
7339 from tui_display_registers_from.
7340 (tui_display_reg_element_at_line): Update.
7341 (tui_data_window::display_registers_from_line): Rename from
7342 tui_display_registers_from_line.
7343 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
7344 display_registers_from_line>: New methods.
7345
f76d8b19
TT
73462019-07-17 Tom Tromey <tom@tromey.com>
7347
7348 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
7349 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
7350 from tui_erase_data_content.
7351 (tui_data_window::display_all_data)
7352 (tui_data_window::refresh_all)
7353 (tui_data_window::do_scroll_vertical): Update.
7354 * tui/tui-regs.c (tui_show_registers): Update.
7355 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
7356 New method.
7357
b4094625
TT
73582019-07-17 Tom Tromey <tom@tromey.com>
7359
7360 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
7361 declare.
7362 * tui/tui-windata.c
7363 (tui_data_window::delete_data_content_windows): Rename from
7364 tui_delete_data_content_windows.
7365 (tui_data_window::display_all_data)
7366 (tui_data_window::do_scroll_vertical): Update.
7367 * tui/tui-data.h (struct tui_data_window)
7368 <delete_data_content_windows>: New method.
7369
c223a729
TT
73702019-07-17 Tom Tromey <tom@tromey.com>
7371
7372 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
7373 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
7374
50daf268
TT
73752019-07-17 Tom Tromey <tom@tromey.com>
7376
7377 * tui/tui-windata.h (tui_display_all_data): Don't declare.
7378 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
7379 from tui_display_all_data.
7380 * tui/tui-win.c
7381 (tui_data_window::do_make_visible_with_new_height): Update.
7382 * tui/tui-regs.c (tui_show_registers): Update.
7383 * tui/tui-layout.c (tui_set_layout): Update.
7384 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
7385 method.
7386
df5f8cab
TT
73872019-07-17 Tom Tromey <tom@tromey.com>
7388
7389 * tui/tui-windata.h (tui_display_data_from): Don't declare.
7390 * tui/tui-windata.c (tui_display_data_from): Remove.
7391 (tui_data_window::refresh_all): Update.
7392
80cb6c27
TT
73932019-07-17 Tom Tromey <tom@tromey.com>
7394
7395 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
7396 * tui/tui-windata.c (tui_display_data_from_line): Remove.
7397 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
7398 tui_display_registers_from_line.
7399 * tui/tui-regs.h (tui_display_registers_from_line): Update.
7400 * tui/tui-regs.c (tui_display_registers_from_line): Remove
7401 "force_display" parameter.
7402
baff0c28
TT
74032019-07-17 Tom Tromey <tom@tromey.com>
7404
7405 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
7406 declare.
7407 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
7408 Rename from tui_first_reg_element_no_inline.
7409 (tui_display_reg_element_at_line)
7410 (tui_display_registers_from_line): Update.
7411 * tui/tui-data.h (struct tui_data_window)
7412 <first_reg_element_no_inline>: New method.
7413
3b23c5f2
TT
74142019-07-17 Tom Tromey <tom@tromey.com>
7415
7416 * tui/tui-windata.c (tui_display_data_from)
7417 (tui_data_window::do_scroll_vertical): Update.
7418 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
7419 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
7420 Rename from tui_line_from_reg_element_no.
7421 (tui_display_registers_from_line): Update.
7422 * tui/tui-data.h (struct tui_data_window)
7423 <line_from_reg_element_no>: New method.
7424
0b5ec218
TT
74252019-07-17 Tom Tromey <tom@tromey.com>
7426
7427 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
7428 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
7429 tui_last_regs_line_no.
7430 (tui_display_reg_element_at_line)
7431 (tui_display_registers_from_line): Update.
7432 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
7433 method.
7434
0807ab7b
TT
74352019-07-17 Tom Tromey <tom@tromey.com>
7436
7437 PR tui/24722:
7438 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
7439 (tui_update_breakpoint_info): Add "being_deleted" parameter.
7440 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
7441 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
7442 (tui_update_breakpoint_info): Likewise.
7443 * tui/tui-hooks.c (tui_event_create_breakpoint)
7444 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
7445 Update.
7446
9ad7fdef
TT
74472019-07-17 Tom Tromey <tom@tromey.com>
7448
7449 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
7450
5813316f
TT
74512019-07-17 Tom Tromey <tom@tromey.com>
7452
7453 * tui/tui-winsource.c (tui_update_source_window_as_is)
7454 (tui_update_source_windows_with_addr): Update.
7455 * tui/tui-source.h (tui_set_source_content)
7456 (tui_show_symtab_source): Add "win_info" parameter.
7457 * tui/tui-source.c (tui_set_source_content): Add "win_info"
7458 parameter.
7459 (tui_show_symtab_source): Likewise.
7460
00e264e7
TT
74612019-07-17 Tom Tromey <tom@tromey.com>
7462
7463 * tui/tui-wingeneral.c
7464 (tui_check_and_display_highlight_if_needed): Check can_highlight.
7465
06210ce4
TT
74662019-07-17 Tom Tromey <tom@tromey.com>
7467
7468 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
7469 (struct tui_cmd_window) <can_scroll>: New method.
7470 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
7471 method.
7472
381befee
TT
74732019-07-17 Tom Tromey <tromey@adacore.com>
7474
7475 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
7476 do_field_signed>: Rename. Change type of "value".
7477 * ui-out.c (ui_out::field_signed): Rename from field_int.
7478 Change type of "value".
7479 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
7480 type of "value".
7481 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
7482 do_field_int. Change type of "value".
7483 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
7484 do_field_int. Change type of "value".
7485 * tracepoint.c (trace_status_mi, tfind_1)
7486 (print_one_static_tracepoint_marker): Update.
7487 * thread.c (print_thread_info_1, print_selected_thread_frame):
7488 Update.
7489 * stack.c (print_frame, print_frame_info): Update.
7490 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
7491 Update.
7492 * source.c (print_source_lines_base): Update.
7493 * skip.c (info_skip_command): Update.
7494 * record-btrace.c (btrace_ui_out_decode_error)
7495 (btrace_call_history_src_line): Update.
7496 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
7497 Update.
7498 * progspace.c (print_program_space): Update.
7499 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
7500 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
7501 do_field_int. Change type of "value".
7502 * mi/mi-out.c (mi_ui_out::do_table_begin)
7503 (mi_ui_out::do_table_header): Update.
7504 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
7505 type of "value".
7506 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
7507 (mi_cmd_data_list_changed_registers, output_register)
7508 (mi_cmd_data_read_memory, mi_load_progress)
7509 (mi_cmd_trace_frame_collected): Update.
7510 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
7511 Update.
7512 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
7513 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
7514 (mi_cmd_var_list_children, varobj_update_one): Update.
7515 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
7516 (mi_cmd_stack_list_args, list_arg_or_local): Update.
7517 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
7518 * inferior.c (print_inferior): Update.
7519 * gdb_bfd.c (print_one_bfd): Update.
7520 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
7521 Update.
7522 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
7523 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
7524 do_field_int. Change type of "value".
7525 * cli-out.c (cli_ui_out::do_field_signed): Rename from
7526 do_field_int. Change type of "value".
7527 * breakpoint.c (watchpoint_check, print_breakpoint_location)
7528 (print_one_breakpoint_location, print_it_catch_fork)
7529 (print_one_catch_fork, print_it_catch_vfork)
7530 (print_one_catch_vfork, print_it_catch_solib)
7531 (print_it_catch_exec, print_it_ranged_breakpoint)
7532 (print_mention_watchpoint, print_mention_masked_watchpoint)
7533 (bkpt_print_it, update_static_tracepoint): Update.
7534 * break-catch-throw.c (print_it_exception_catchpoint): Update.
7535 * break-catch-syscall.c (print_it_catch_syscall): Update.
7536 * ada-tasks.c (print_ada_task_info): Update.
7537 * ada-lang.c (print_it_exception, print_mention_exception):
7538 Update.
7539
6b78c3f8
AB
75402019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
7541
7542 PR breakpoints/24541
7543 * gdbarch.c: Regenerate.
7544 * gdbarch.h: Regenerate.
7545 * gdbarch.sh: Adjust return type and parameter types for
7546 'stap_adjust_register'.
7547 (i386_stap_adjust_register): Adjust signature and return new
7548 register name.
7549 * stap-probe.c (stap_parse_register_operand): Adjust use of
7550 'gdbarch_stap_adjust_register'.
7551
d72a9b85
TT
75522019-07-17 Tom Tromey <tromey@adacore.com>
7553
7554 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
7555 declare VEC.
7556 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
7557 std::vector.
7558 (struct s390_process_info): Add initializers.
7559 (s390_add_process): Use new.
7560 (s390_linux_nat_target::low_forget_process): Use delete.
7561 (s390_linux_nat_target::low_new_fork)
7562 (s390_linux_nat_target::stopped_by_watchpoint)
7563 (s390_linux_nat_target::low_prepare_to_resume)
7564 (s390_linux_nat_target::insert_watchpoint)
7565 (s390_linux_nat_target::insert_hw_breakpoint)
7566 (s390_linux_nat_target::remove_watchpoint)
7567 (s390_linux_nat_target::remove_hw_breakpoint): Update.
7568
206e6c58
JB
75692019-07-16 John Baldwin <jhb@FreeBSD.org>
7570
7571 * aarch64-fbsd-nat.c: Include regcache.h.
7572 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
7573 argument.
7574 (aarch64_fbsd_nat_target::fetch_registers)
7575 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
7576 variable.
7577 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
7578
cbde90f2
JB
75792019-07-16 John Baldwin <jhb@FreeBSD.org>
7580
7581 * fbsd-nat.c: Include gdbarch.h.
7582
07128006
TT
75832019-07-15 Tom Tromey <tromey@adacore.com>
7584
7585 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
7586
1f77b012
TT
75872019-07-15 Tom Tromey <tromey@adacore.com>
7588
7589 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
7590 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
7591 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
7592 * cli-out.c (cli_ui_out::do_field_int): New method.
7593 * ui-out.c (ui_out::field_unsigned): New method.
7594 * symfile.c (generic_load): Use field_unsigned.
7595 (print_transfer_performance): Likewise.
7596 * record-btrace.c (ui_out_field_uint): Remove.
7597 (btrace_call_history_insn_range, btrace_call_history): Use
7598 field_unsigned.
7599 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
7600 field_unsigned.
7601 * ui-out.h (class ui_out) <field_unsigned>: New method.
7602 <do_field_unsigned>: Likewise.
7603
33eca680
TT
76042019-07-15 Tom Tromey <tromey@adacore.com>
7605
7606 * mi/mi-main.c (list_available_thread_groups): Use field_string.
7607 * mi/mi-interp.c (mi_memory_changed): Use field_string.
7608 * target.c (flash_erase_command): Use field_string.
7609 * infrun.c (print_signal_received_reason): Use field_string.
7610 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
7611 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
7612 field_string.
7613 * ada-tasks.c (print_ada_task_info): Use field_string.
7614
ca8d69be
TT
76152019-07-15 Tom Tromey <tromey@adacore.com>
7616
7617 * target.c (flash_erase_command): Use field_core_addr.
7618 * symfile.c (generic_load): Use field_core_addr.
7619 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
7620 Use field_core_addr.
7621 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
7622 field_core_addr.
7623
0d4e84ed
AB
76242019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
7625
7626 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
7627 value if its desired type is smaller than a CORE_ADDR and signed.
7628
9a49df9d
AB
76292019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
7630
7631 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
7632 of changes to field names, and use new is_reference field to
7633 decide if a property is a reference or not.
7634 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
7635 field.
7636 (struct dwarf2_property_baton): Update header comment, rename
7637 'referenced_type' to 'property_type' and update comments.
7638 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
7639 default property type, store in property baton, update to take
7640 accound of renamed field.
7641 (read_func_scope): Update call to attr_to_dynamic_prop.
7642 (read_array_type): Likewise.
7643 (dwarf2_per_cu_addr_sized_int_type): New function.
7644 (read_subrange_index_type): Move type finding code to
7645 dwarf2_per_cu_addr_sized_int_type.
7646 (read_subrange_type): Update calls to attr_to_dynamic_prop.
7647 (dwarf2_per_cu_addr_type): New function.
7648 (set_die_type): Update calls to attr_to_dynamic_prop.
7649
b86352cf
AB
76502019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
7651
7652 * dwarf2read.c (read_subrange_index_type): New function.
7653 (read_subrange_type): Move code into new function and call it.
7654 * gdbtypes.c (create_range_type): Add some asserts.
7655
603490bf
AB
76562019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
7657
7658 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
7659 update return statements.
7660 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
7661 declaration, and update comment to match.
7662 * gdbtypes.c (resolve_dynamic_array): Update call to
7663 dwarf2_evaluate_property to match new return type.
7664
592f9d27
AB
76652019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
7666
7667 * valarith.c (value_subscripted_rvalue): Change lowerbound
7668 parameter type from int to LONGEST.
7669 * value.h (value_subscripted_rvalue): Likewise in declaration.
7670
60cfcb20
AB
76712019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
7672
7673 * cli/cli-utils.c (info_print_command_completer): New function.
7674 * cli/cli-utils.h: Add 'completer.h' include, and forward
7675 declaration for 'struct cmd_list_element'.
7676 (info_print_command_completer): Declare.
7677 * stack.c (_initialize_stack): Add completer for 'info locals' and
7678 'info args'.
7679 * symtab.c (_initialize_symtab): Add completer for 'info
7680 variables' and 'info functions'.
7681 * NEWS: Mention completion for additional info commands.
7682
b16507e0
AB
76832019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
7684
7685 * cli/cli-utils.c (extract_info_print_args): Delete.
7686 (extract_arg_maybe_quoted): Delete.
7687 (info_print_options_defs): New variable.
7688 (make_info_print_options_def_group): New function.
7689 (extract_info_print_options): Define new function.
7690 * cli/cli-utils.h (extract_info_print_args): Delete.
7691 (struct info_print_options): New structure.
7692 (extract_info_print_options): Declare new function.
7693 * stack.c (info_locals_command): Update to use new
7694 extract_info_print_options, also add a header comment.
7695 (info_args_command): Likewise.
7696 * symtab.c (info_variables_command): Likewise.
7697 (info_functions_command): Likewise.
7698
021d8588
AB
76992019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
7700
7701 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
7702 to extract string arguments.
7703 * common/common-utils.c (extract_string_maybe_quoted): New function.
7704 * common/common-utils.h (extract_string_maybe_quoted): Declare.
7705
b777eb6d
TT
77062019-07-11 Tom Tromey <tromey@adacore.com>
7707
7708 * main.c (get_init_files): Use GDBINIT, not gdbinit.
7709 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
7710 * top.h (gdbinit): Don't declare.
7711 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
7712 into...
7713 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
7714 * top.c (gdb_init): Don't call init_cli_cmds.
7715 (gdbinit): Remove.
7716 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
7717
72ee03ff
TT
77182019-07-11 Tom Tromey <tromey@adacore.com>
7719
7720 * python/py-inferior.c (add_thread_object): Don't use thread_obj
7721 after it has been moved.
7722
00db9531
SM
77232019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
7724
7725 * valops.c (value_must_coerce_to_target): Change return type to
7726 bool.
7727 * value.h (value_must_coerce_to_target): Likewise.
7728
f2478a7e
SM
77292019-07-10 Simon Marchi <simon.marchi@efficios.com>
7730
7731 * breakpoint.c (is_hardware_watchpoint): Remove
7732 forward-declaration.
7733 (is_masked_watchpoint): Change return type to bool.
7734 (is_tracepoint): Likewise.
7735 (is_breakpoint): Likewise.
7736 (is_hardware_watchpoint): Likewise.
7737 (is_watchpoint): Likewise.
7738 (is_no_memory_software_watchpoint): Likewise.
7739 (is_catchpoint): Likewise.
7740 (breakpoint_1): Make FILTER parameter's return type bool.
7741 is_masked_watchpoint): Change return type to bool.
7742 (save_breakpoints): Make FILTER parameter's return type bool.
7743 * breakpoint.h (is_breakpoint): Change return type to bool.
7744 (is_watchpoint): Likewise.
7745 (is_catchpoint): Likewise.
7746 (is_tracepoint): Likewise.
7747
0d12e84c
TT
77482019-07-10 Tom Tromey <tom@tromey.com>
7749
7750 * defs.h: Don't include gdbarch.h.
7751 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
7752 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
7753 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
7754 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
7755 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
7756 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
7757 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
7758 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
7759 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
7760 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
7761 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
7762 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
7763 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
7764 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
7765 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
7766 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
7767 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
7768 record-btrace.c, record.h, regcache-dump.c, regcache.h,
7769 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
7770 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
7771 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
7772 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
7773 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
7774 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
7775 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
7776 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
7777 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
7778
f06f1252
TT
77792019-07-10 Tom Tromey <tromey@adacore.com>
7780
7781 * ada-lang.h (is_ada_exception_catchpoint): Declare.
7782 * breakpoint.c (init_ada_exception_breakpoint): Register as
7783 bp_catchpoint.
7784 (print_one_breakpoint_location, print_one_breakpoint): Use
7785 is_ada_exception_catchpoint.
7786 * ada-lang.c (class ada_catchpoint_location): Pass
7787 bp_loc_software_breakpoint to bp_location constructor.
7788 (is_ada_exception_catchpoint): New function.
7789
7a5d944b
TT
77902019-07-10 Tom Tromey <tromey@adacore.com>
7791
7792 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
7793 VEC.
7794 (struct arm_exidx_entry): New method operator<.
7795 (struct arm_exidx_data) <section_maps>: Change type.
7796 (arm_exidx_data_free): Remove.
7797 (arm_exidx_data_key): Change type. Move lower.
7798 (arm_exidx_new_objfile): Update.
7799 (arm_compare_exidx_entries): Remove.
7800 (arm_find_exidx_entry, _initialize_arm_tdep)
7801
48c66e1d
TT
78022019-07-10 Tom Tromey <tromey@adacore.com>
7803
7804 * solib-spu.c (ocl_program_data_key): Change type.
7805 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
7806 Update.
7807
a269fbf1
TT
78082019-07-10 Tom Tromey <tromey@adacore.com>
7809
7810 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
7811 (struct solib_aix_inferior_data) <library_list>: Change type.
7812 (solib_aix_inferior_data_handle): Change type.
7813 (get_solib_aix_inferior_data): Update.
7814 (solib_aix_free_library_list): Remove.
7815 (library_list_start_library): Update.
7816 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
7817 return type.
7818 (solib_aix_get_library_list)
7819 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
7820 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
7821
c294730c
TT
78222019-07-10 Tom Tromey <tromey@adacore.com>
7823
7824 * solib-dsbt.c (struct dsbt_info): Add initializers.
7825 (solib_dsbt_pspace_data): Change type.
7826 (dsbt_pspace_data_cleanup): Remove.
7827 (get_dsbt_info, _initialize_dsbt_solib): Update.
7828
9d52077d
TT
78292019-07-10 Tom Tromey <tromey@adacore.com>
7830
7831 * spu-tdep.c (spu_overlay_data): Change type.
7832 (spu_get_overlay_table, spu_overlay_new_objfile)
7833 (_initialize_spu_tdep): Update.
7834
22a20dca
TT
78352019-07-10 Tom Tromey <tromey@adacore.com>
7836
7837 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
7838 destructor.
7839 (dbx_objfile_data_key): Change type and declare later.
7840 (DBX_SYMFILE_INFO): Rewrite.
7841 * dbxread.c (dbx_objfile_data_key): Change type.
7842 (dbx_symfile_init): Update.
7843 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
7844 (coffstab_build_psymtabs, elfstab_build_psymtabs)
7845 (stabsect_build_psymtabs, _initialize_dbxread): Update.
7846
cb60f420
TT
78472019-07-10 Tom Tromey <tromey@adacore.com>
7848
7849 * jit.c (jit_program_space_key): Change type. Move lower.
7850 (get_jit_program_space_data): Update.
7851 (jit_program_space_data_cleanup): Remove.
7852 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
7853 Update.
7854 (struct jit_program_space_data): Add initializers.
7855
51df2ae3
TT
78562019-07-10 Tom Tromey <tromey@adacore.com>
7857
7858 * solib-darwin.c (struct darwin_info): Add initializers.
7859 (solib_darwin_pspace_data): Change type.
7860 (darwin_pspace_data_cleanup): Remove.
7861 (get_darwin_info, _initialize_darwin_solib): Update.
7862
18101a35
TT
78632019-07-10 Tom Tromey <tromey@adacore.com>
7864
7865 * remote-sim.c (struct sim_inferior_data): Add initializers,
7866 constructor, and destructor.
7867 (sim_inferior_data_key): Change type. Move lower.
7868 (check_for_duplicate_sim_descriptor): Update.
7869 (get_sim_inferior_data): Use new. Update.
7870 (~sim_inferior_data_cleanup): Rename from
7871 sim_inferior_data_cleanup. Simplify.
7872 (gdbsim_close_inferior, simulator_command)
7873 (sim_command_completer, _initialize_remote_sim): Update.
7874 (next_pid, INITIAL_PID): Move earlier.
7875
05b08ac1
TT
78762019-07-10 Tom Tromey <tromey@adacore.com>
7877
7878 * python/python-internal.h (create_thread_object): Return
7879 gdbpy_ref.
7880 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
7881 * python/py-inferior.c (struct threadlist_entry): Add
7882 constructor.
7883 <thread_obj>: Now a gdbpy_ref.
7884 (thread_to_thread_object): Update.
7885 (add_thread_object): Use new.
7886 (delete_thread_object): Use delete.
7887 (infpy_threads): Update.
7888 (py_free_inferior): Update. Construct "inf_obj" after acquiring
7889 GIL.
7890
32372d80
TT
78912019-07-10 Tom Tromey <tromey@adacore.com>
7892
7893 * valops.c (value_cast): Specialize error message for Ada.
7894
5c458ae8
SM
78952019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
7896
7897 * breakpoint.c (breakpoint_1): Update doc and parameter names.
7898
4c462cb0
SM
78992019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
7900
7901 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
7902 bpstat_should_step): Return bool, adjust comments.
7903 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
7904 bpstat_should_step): Likewise.
7905
89abbcc2
AH
79062019-07-10 Alan Hayward <alan.hayward@arm.com>
7907
7908 * features/Makefile: Use feature target descriptions for Arm.
7909 * features/arm/arm-core.c: Generate new file.
7910 * features/arm/arm-fpa.c: Likewise.
7911 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
7912 * features/arm/arm-m-profile.c: Likewise.
7913 * features/arm/arm-vfpv2.c: Likewise.
7914 * features/arm/arm-vfpv3.c: Likewise.
7915 * features/arm/xscale-iwmmxt.c: Likewise.
7916 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
7917
166a82be
AH
79182019-07-10 Alan Hayward <alan.hayward@arm.com>
7919
7920 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
7921 ptrace earlier.
7922
9fb4c7e9
AH
79232019-07-10 Alan Hayward <alan.hayward@arm.com>
7924
7925 * features/aarch64-pauth.c: Regenerate.
7926
e2d0f980
SM
79272019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
7928
7929 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
7930 bool.
7931 (bpstat_what): Use false instead of 0.
7932
a38118e5
PA
79332019-07-09 Pedro Alves <palves@redhat.com>
7934
7935 * break-catch-throw.c (is_exception_catchpoint): New.
7936 * breakpoint.c (print_one_breakpoint_location): New parameter
7937 'raw_loc'. Handle it. Use
7938 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
7939 looking at the breakpoint's type.
7940 (print_one_breakpoint): If handling "maint info breakpoints", also
7941 print locations of exception catchpoints.
7942 * breakpoint.h (is_exception_catchpoint): Declare.
7943
cb1e4e32
PA
79442019-07-09 Pedro Alves <palves@redhat.com>
7945
7946 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
7947 "addr" field.
7948 (allocate_location_exception_catchpoint): New.
7949 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
7950 (initialize_throw_catchpoint_ops): Install
7951 allocate_location_exception_catchpoint as allocate_location
7952 method.
7953 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
7954 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
7955 bp_loc_other.
7956 (breakpoint_address_is_meaningful): Delete.
7957 (bl_address_is_meaningful): New.
7958 (breakpoint_locations_match): Adjust comment.
7959 (bp_location_from_bp_type): New, factored out of...
7960 (bp_location::bp_location(breakpoint *)): ... this.
7961 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
7962 factored out of...
7963 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
7964 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
7965 breakpoint_address_is_meaningful.
7966 (bp_locations_compare): Adjust comment.
7967 (update_global_location_list): Use bl_address_is_meaningful
7968 instead of breakpoint_address_is_meaningful.
7969 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
7970 explicit.
7971 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
7972 * python/py-breakpoint.c (bppy_get_location): No longer check
7973 whether location is null.
7974
b58a68fe
PA
79752019-07-09 Pedro Alves <palves@redhat.com>
7976
7977 PR c++/15468
7978 * breakpoint.c (print_one_breakpoint_location): Remove
7979 single-location assert.
7980
268a13a5
TT
79812019-07-09 Tom Tromey <tom@tromey.com>
7982
7983 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
7984 * configure: Rebuild.
7985 * configure.ac: Change common to gdbsupport.
7986 * gdbsupport: Rename from common.
7987 * acinclude.m4: Change common to gdbsupport.
7988 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
7989 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
7990 gdbsupport.
7991 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
7992 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
7993 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
7994 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
7995 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
7996 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
7997 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
7998 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
7999 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
8000 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
8001 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
8002 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
8003 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
8004 coff-pe-read.c, command.h, compile/compile-c-support.c,
8005 compile/compile-c.h, compile/compile-cplus-symbols.c,
8006 compile/compile-cplus-types.c, compile/compile-cplus.h,
8007 compile/compile-loc2c.c, compile/compile.c, completer.c,
8008 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
8009 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
8010 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
8011 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
8012 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
8013 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
8014 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
8015 features/aarch64-core.c, features/aarch64-fpu.c,
8016 features/aarch64-pauth.c, features/aarch64-sve.c,
8017 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
8018 features/i386/32bit-core.c, features/i386/32bit-linux.c,
8019 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
8020 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
8021 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
8022 features/i386/64bit-core.c, features/i386/64bit-linux.c,
8023 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
8024 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
8025 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
8026 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
8027 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
8028 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
8029 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
8030 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
8031 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
8032 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
8033 go32-nat.c, guile/guile.c, guile/scm-ports.c,
8034 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
8035 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
8036 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
8037 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
8038 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
8039 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
8040 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
8041 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
8042 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
8043 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
8044 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
8045 minsyms.c, mips-linux-tdep.c, namespace.h,
8046 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
8047 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
8048 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
8049 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
8050 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
8051 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
8052 nat/linux-waitpid.c, nat/mips-linux-watch.c,
8053 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
8054 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
8055 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
8056 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
8057 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
8058 procfs.c, producer.c, progspace.h, psymtab.h,
8059 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
8060 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
8061 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
8062 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
8063 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
8064 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
8065 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
8066 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
8067 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
8068 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
8069 target-memory.c, target.c, target.h, target/waitstatus.c,
8070 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
8071 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
8072 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
8073 unittests/array-view-selftests.c,
8074 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
8075 unittests/common-utils-selftests.c,
8076 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
8077 unittests/format_pieces-selftests.c,
8078 unittests/function-view-selftests.c,
8079 unittests/lookup_name_info-selftests.c,
8080 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
8081 unittests/mkdir-recursive-selftests.c,
8082 unittests/observable-selftests.c,
8083 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
8084 unittests/parse-connection-spec-selftests.c,
8085 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
8086 unittests/scoped_fd-selftests.c,
8087 unittests/scoped_mmap-selftests.c,
8088 unittests/scoped_restore-selftests.c,
8089 unittests/string_view-selftests.c, unittests/style-selftests.c,
8090 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
8091 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
8092 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
8093 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
8094 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
8095 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
8096
5b0e2db4
AB
80972019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
8098
8099 * linespec.c (decode_digits_list_mode): Set explicit_line to a
8100 bool value.
8101 (decode_digits_ordinary): Set explicit_line field in sal.
8102 * symtab.c (skip_prologue_sal): Don't skip prologue for a
8103 symtab_and_line that was set on an explicit line number in
8104 assembler code. Do always update the recorded symtab and line if
8105 we do skip the prologue.
8106
0ba852ab
AB
81072019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
8108
8109 * breakpoint.c (set_breakpoint_location_function): Remove
8110 explicit_loc parameter.
8111 (momentary_breakpoint_from_master): Update call to
8112 set_breakpoint_location_function.
8113 (add_location_to_breakpoint): Likewise.
8114
b3a7d171
AB
81152019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
8116
8117 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
8118 required features based on default bfd type when no specific bfd
8119 is present.
8120
1f6f6e21
PW
81212019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8122
8123 * NEWS: Mention that GDB printf and eval commands can now print
8124 C-style and Ada-style convenience var strings without
8125 calling the inferior.
8126 * printcmd.c (printf_c_string): Locally print GDB internal var
8127 instead of transiting via the inferior.
8128 (printf_wide_c_string): Likewise.
8129
81302019-07-04 Alan Hayward <alan.hayward@arm.com>
ea142fbf 8131
5862c886 8132 PR breakpoints/25011
ea142fbf
AH
8133 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
8134
0598af48
TT
81352019-07-04 Tom Tromey <tom@tromey.com>
8136
8137 PR tui/24724:
8138 * tui/tui-winsource.c (tui_clear_source_content): Update.
8139 (tui_source_window_base::set_is_exec_point_at): Fix comment.
8140 (tui_update_breakpoint_info): Update.
8141 (tui_set_exec_info_content): Update.
8142 * tui/tui-source.c (tui_set_source_content_nil): Update.
8143 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
8144 has_break.
8145 * tui/tui-data.h (enum tui_bp_flag): New.
8146 (tui_bp_flags): New enum flags type.
8147 (struct tui_source_element) <break_mode>: Change type. Rename
8148 from has_break.
8149 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
8150 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
8151 constants.
8152 * tui/tui-winsource.h: Fix comment.
8153
350fab54
AH
81542019-07-04 Alan Hayward <alan.hayward@arm.com>
8155
8156 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
8157 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
8158 (store_fpregs_to_thread)
8159 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
8160 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
8161 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
8162 (IWMMXT_REGS_SIZE): Add define.
8163 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
8164 (fetch_vfp_regs, store_vfp_regs)
8165 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
8166 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
8167
f0452268
AH
81682019-07-04 Alan Hayward <alan.hayward@arm.com>
8169
8170 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
8171 defines.
8172 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
8173 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
8174 (ARM_INT_REGISTER_SIZE): ...to this.
8175 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
8176 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
8177 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
8178 (arm_linux_collect_gregset, supply_nwfpe_register)
8179 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
8180 defines.
8181 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
8182 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
8183 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
8184 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
8185 (arm_return_in_memory, arm_store_return_value)
8186 (arm_get_longjmp_target, arm_register_g_packet_guesses)
8187 (arm_record_ld_st_multiple): Likewise.
8188 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
8189 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
8190
e935475c
AH
81912019-07-04 Alan Hayward <alan.hayward@arm.com>
8192
8193 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
8194 AARCH64_DISPLACED_MODIFIED_INSNS.
8195 * aarch64-tdep.c (struct aarch64_displaced_step_data)
8196 (aarch64_displaced_step_copy_insn): Likewise.
8197 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
8198 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
8199 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
8200 ARM_DISPLACED_MODIFIED_INSNS.
8201 * arm-tdep.c (arm_gdbarch_init): Likewise.
8202 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
8203 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
8204 (struct arm_displaced_step_closure): Use
8205 ARM_DISPLACED_MODIFIED_INSNS.
8206
df0bb381
AH
82072019-07-04 Alan Hayward <alan.hayward@arm.com>
8208
8209 * features/Makefile: Remove unused xml files.
8210 * features/aarch64.xml: Remove.
8211 * features/i386/amd64-avx-avx512-linux.xml: Remove.
8212 * features/i386/amd64-avx-avx512.xml: Remove.
8213 * features/i386/amd64-avx-linux.xml: Remove.
8214 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
8215 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
8216 * features/i386/amd64-avx-mpx-linux.xml: Remove.
8217 * features/i386/amd64-avx-mpx.xml: Remove.
8218 * features/i386/amd64-avx.xml: Remove.
8219 * features/i386/amd64-linux.xml: Remove.
8220 * features/i386/amd64-mpx-linux.xml: Remove.
8221 * features/i386/amd64-mpx.xml: Remove.
8222 * features/i386/amd64.xml: Remove.
8223 * features/i386/i386-avx-avx512-linux.xml: Remove.
8224 * features/i386/i386-avx-avx512.xml: Remove.
8225 * features/i386/i386-avx-linux.xml: Remove.
8226 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
8227 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
8228 * features/i386/i386-avx-mpx-linux.xml: Remove.
8229 * features/i386/i386-avx-mpx.xml: Remove.
8230 * features/i386/i386-avx.xml: Remove.
8231 * features/i386/i386-linux.xml: Remove.
8232 * features/i386/i386-mmx-linux.xml: Remove.
8233 * features/i386/i386-mmx.xml: Remove.
8234 * features/i386/i386-mpx-linux.xml: Remove.
8235 * features/i386/i386-mpx.xml: Remove.
8236 * features/i386/i386.xml: Remove.
8237 * features/i386/x32-avx-avx512-linux.xml: Remove.
8238 * features/i386/x32-avx-linux.xml: Remove.
8239 * features/i386/x32-linux.xml: Remove.
8240
edd6266a
AH
82412019-07-04 Alan Hayward <alan.hayward@arm.com>
8242
8243 * regformats/aarch64.dat: Remove.
8244 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
8245 * regformats/i386/amd64-avx-linux.dat: Remove.
8246 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
8247 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
8248 * regformats/i386/amd64-linux.dat: Remove.
8249 * regformats/i386/amd64-mpx-linux.dat: Remove.
8250 * regformats/i386/amd64.dat: Remove.
8251 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
8252 * regformats/i386/i386-avx-linux.dat: Remove.
8253 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
8254 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
8255 * regformats/i386/i386-linux.dat: Remove.
8256 * regformats/i386/i386-mmx-linux.dat: Remove.
8257 * regformats/i386/i386-mpx-linux.dat: Remove.
8258 * regformats/i386/i386.dat: Remove.
8259 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
8260 * regformats/i386/x32-avx-linux.dat: Remove.
8261 * regformats/i386/x32-linux.dat: Remove.
8262
2b40fda7
AH
82632019-07-04 Alan Hayward <alan.hayward@arm.com>
8264
8265 * aarch64-tdep.c: Remove xml self tests.
8266 * amd64-linux-tdep.c: Likewise.
8267 * amd64-tdep.c: Likewise.
8268 * i386-linux-tdep.c: Likewise.
8269 * i386-tdep.c: Likewise.
8270
5f4ba3e7
PA
82712019-07-03 Pedro Alves <palves@redhat.com>
8272
8273 PR cli/24732
8274 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
8275 (pipe_cmd_option_defs): New.
8276 (make_pipe_cmd_options_def_group): New.
8277 (pipe_command): Use gdb::option::process_options.
8278 (pipe_command_completer): New function.
8279 (_initialize_cli_cmds): Install completer for "pipe" command.
8280
3d9be6f5
PA
82812019-07-03 Pedro Alves <palves@redhat.com>
8282
8283 * cli/cli-option.c (union option_value) <string>: New field.
8284 (struct option_def_and_value): Add ctor, move ctor, dtor and
8285 use DISABLE_COPY_AND_ASSIGN.
8286 (option_def_and_value::clear_value): New.
8287 (parse_option, save_option_value_in_ctx, get_val_type_str)
8288 (add_setshow_cmds_for_options): Handle var_string.
8289 * cli-option.h (union option_def::var_address) <string>: New
8290 field.
8291 (struct string_option_def): New.
8292 * maint-test-options.c (struct test_options_opts): Add default
8293 ctor and use DISABLE_COPY_AND_ASSIGN.
8294 <string_opt>: New field.
8295 (test_options_opts::~test_options_opts): New.
8296 (test_options_opts::dump): Also dump "-string".
8297 (test_options_option_defs): Install "string.
8298
41fc454c
PA
82992019-07-03 Pedro Alves <palves@redhat.com>
8300
8301 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
8302 option_value with a null enumeration.
8303 (complete_options): Save the option values in the context.
8304 (save_option_value_in_ctx): New, factored out from ...
8305 (process_options): ... here.
8306 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
8307 of the function.
8308 * maint-test-options.c (test_options_opts::dump): New, factored
8309 out from ...
8310 (maintenance_test_options_command_mode): ... here.
8311 (maintenance_test_options_command_completion_result): Delete.
8312 (maintenance_test_options_command_completion_text): Update
8313 comment.
8314 (maintenance_show_test_options_completion_result): Change
8315 prototype. Just print
8316 maintenance_test_options_command_completion_text.
8317 (save_completion_result): New.
8318 (maintenance_test_options_completer_mode): Pass options context to
8319 complete_options, and then save a dump.
8320 (_initialize_maint_test_options): Use add_cmd to install "maint
8321 show test-options-completion-result".
8322
fdbc9870
PA
83232019-07-03 Pedro Alves <palves@redhat.com>
8324
8325 * NEWS (New commands): Mention "with" and "maint with".
8326 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
8327 (with_command, with_command_completer): New.
8328 (pipe_command): Adjust to new repeat_previous
8329 interface.
8330 (_initialize_cli_cmds): Install the "with" command and its "w"
8331 alias.
8332 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
8333 declarations.
8334 * cli/cli-setshow.c (parse_cli_var_uinteger)
8335 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
8336 argument strings for all var_types.
8337 (get_setshow_command_value_string): New, factored out from ...
8338 (do_show_command): ... this.
8339 * cli/cli-setshow.h: Include <string>.
8340 (get_setshow_command_value_string): Declare.
8341 * command.h (repeat_previous): Now returns const char *. Adjust
8342 comment.
8343 * maint.c: Include "cli/cli-cmds.h".
8344 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
8345 (_initialize_maint_cmds): Register the "maintenance with" command.
8346 * top.c (repeat_previous): Move bits from pipe_command here:
8347 Return the saved command line, if any; error out if there's no
8348 command to relaunch.
8349
c6ac8931
PA
83502019-07-03 Pedro Alves <palves@redhat.com>
8351
8352 * NEWS (New commands): Mention "maint set/show test-settings"
8353 instead of "maint test-settings".
8354 * maint-test-settings.c (maintenance_test_settings_list): Delete.
8355 (maintenance_test_settings_set_list): Rename to ...
8356 (maintenance_set_test_settings_list): ... this.
8357 (maintenance_test_settings_show_list): Rename to ...
8358 (maintenance_show_test_settings_list): ... this.
8359 (maintenance_test_settings_cmd): Delete.
8360 (maintenance_test_settings_set_cmd): ...
8361 (maintenance_set_test_settings_cmd): ... this.
8362 (maintenance_test_settings_show_cmd): ...
8363 (maintenance_show_test_settings_cmd): ... this.
8364 (maintenance_test_settings_show_value_cmd):
8365 (maintenance_show_test_settings_value_cmd): ... this.
8366 (_initialize_maint_test_settings): No longer install the "maint
8367 test-settings" prefix command. Rename "maint test-settings set"
8368 to "maint set test-settings", and "maint test-settings show" to
8369 "maint show test-settings". Adjust all subcommands.
8370
d1fcf2fd
PA
83712019-07-03 Pedro Alves <palves@redhat.com>
8372
8373 * maint-test-settings.c: Fix file's intro comment. Replace all
8374 references to "test-options" with references to "test-settings",
8375 in comments.
8376
970f9d09
PA
83772019-07-03 Pedro Alves <palves@redhat.com>
8378
8379 * maint-test-settings.c (maintenance_test_settings_xxx)
8380 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
8381 New.
8382 (maintenance_test_settings_enums): Use them.
8383 (maintenance_test_settings_enum): Default to
8384 maintenance_test_settings_xxx.
8385 (_initialize_maint_test_settings): Initialize
8386 MAINTENANCE_TEST_SETTINGS_FILENAME.
8387
f3869b1a
SM
83882019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
8389
8390 * breakpoint.h (remove_breakpoints_inf): Change return type to
8391 void, move function documentation here.
8392 * breakpoint.c (remove_breakpoints_inf): Change return type to
8393 void, move function documentation to header.
8394
54d66006
PA
83952019-07-02 Pedro Alves <palves@redhat.com>
8396
8397 * NEWS (Completion improvements): Mention "info threads".
8398 * thread.c (struct info_threads_opts, info_threads_option_defs)
8399 (make_info_threads_options_def_group): New.
8400 (info_threads_command): Use gdb::option::process_options.
8401 (info_threads_command_completer): New.
8402 (_initialize_thread): Use gdb::option::build_help to build the
8403 help text for "info threads".
8404
854f6088
SM
84052019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
8406
8407 * defs.h (generic_load): Move from here...
8408 * symfile.h (generic_load): ... to here. Rename name parameter
8409 to args.
8410 * symfile.c (generic_load): Add comment.
8411
54ee4252
TT
84122019-07-01 Tom Tromey <tromey@adacore.com>
8413
8414 * dwarf2read.c
8415 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
8416 declaration of without_params. Fix formatting.
8417
65392b3e
TT
84182019-07-01 Tom Tromey <tromey@adacore.com>
8419
8420 * ada-exp.y (find_primitive_type): Update.
8421 * ada-lang.h (ada_lookup_symbol): Update.
8422 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
8423 parameter.
8424 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
8425
7d7571f0
SDJ
84262019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
8427
8428 PR breakpoints/24541
8429 * gdbarch.c: Regenerate.
8430 * gdbarch.h: Regenerate.
8431 * gdbarch.sh: Add 'stap_adjust_register'.
8432 * i386-tdep.c: Include '<unordered_set>'.
8433 (i386_stap_adjust_register): New function.
8434 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
8435 * stap-probe.c (stap_parse_register_operand): Call
8436 'gdbarch_stap_adjust_register'.
8437
5af5392a
SDJ
84382019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
8439
8440 PR python/24742
8441 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
8442 * python/python.c (do_start_initialization): Use 'xmalloc'
8443 instead of 'PyMem_Malloc'.
8444
10d06d82
TT
84452019-06-28 Tom Tromey <tromey@adacore.com>
8446
8447 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
8448 for Ada.
8449
1b7f24cd
TT
84502019-06-27 Tom Tromey <tromey@adacore.com>
8451
8452 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
8453 objfile_key.
8454 (arm_find_mapping_symbol, arm_record_special_symbol)
8455 (_initialize_arm_tdep): Update.
8456 (arm_objfile_data_free): Remove.
8457
3d507ff2
TT
84582019-06-27 Tom Tromey <tromey@adacore.com>
8459
8460 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
8461 to cp_print_static_field.
8462
762c164d
TT
84632019-06-26 Tom Tromey <tromey@adacore.com>
8464
8465 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
8466 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
8467 declare.
8468
aa2f9bcf
AH
84692019-06-26 Alan Hayward <alan.hayward@arm.com>
8470
8471 * features/aarch64-core.c (create_feature_aarch64_core):
8472 Regenerate.
8473 * features/aarch64-core.xml: Add cpsr flags.
8474
3426ae57
AH
84752019-06-26 Alan Hayward <alan.hayward@arm.com>
8476
8477 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
8478 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
8479
4838e44c
SM
84802019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
8481
8482 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
8483 field.
8484 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
8485 use.
8486 (arm_record_special_symbol): Don't insert new symbol in sorted
8487 position, push it at the end.
8488
54cc7474
SM
84892019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
8490
8491 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
8492 (arm_mapping_symbol_s): Remove.
8493 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
8494 (arm_mapping_symbol_vec): New typedef.
8495 (struct arm_per_objfile): Add constructor.
8496 <section_maps>: Change type to
8497 std::unique_ptr<arm_mapping_symbol_vec[]>.
8498 (arm_compare_mapping_symbols): Remove.
8499 (arm_find_mapping_symbol): Adjust to section_maps type change.
8500 (arm_objfile_data_free): Call delete on arm_per_objfile.
8501 (arm_record_special_symbol): Adjust to section_maps type change.
8502 Allocate arm_per_objfile with new.
8503
b65b566c
PW
85042019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8505
8506 * cli/cli-cmds.c (alias_command): Compare the alias prefix
8507 with the command prefix.
8508
c2fc64f5
TT
85092019-06-25 Tom Tromey <tom@tromey.com>
8510
8511 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
8512 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
8513
fb54fa76
TT
85142019-06-25 Tom Tromey <tom@tromey.com>
8515
8516 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
8517 type.
8518 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
8519 protected.
8520
f7952c57
TT
85212019-06-25 Tom Tromey <tom@tromey.com>
8522
8523 * tui/tui-winsource.c
8524 (tui_source_window_base::set_is_exec_point_at): Add check against
8525 LOA_ADDRESS.
8526
17568d78
TT
85272019-06-25 Tom Tromey <tom@tromey.com>
8528
8529 * tui/tui-source.c (tui_set_source_content): Don't check before
8530 xfree.
8531 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
8532
53e7cdba
TT
85332019-06-25 Tom Tromey <tom@tromey.com>
8534
8535 * tui/tui-winsource.h (tui_update_source_window_as_is)
8536 (tui_alloc_source_buffer, tui_line_is_displayed)
8537 (tui_addr_is_displayed): Change type of win_info.
8538 * tui/tui-winsource.c (tui_update_source_window_as_is)
8539 (tui_clear_source_content, tui_show_source_line)
8540 (tui_show_source_content, tui_source_window_base::refill)
8541 (tui_source_window_base::set_is_exec_point_at)
8542 (tui_source_window_base::set_is_exec_point_at)
8543 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
8544 (tui_alloc_source_buffer, tui_line_is_displayed)
8545 (tui_addr_is_displayed): Change type of win_info. Update.
8546 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
8547 (tui_source_window_base::do_make_visible_with_new_height):
8548 Update.
8549 * tui/tui-source.c (tui_set_source_content)
8550 (tui_set_source_content_nil)
8551 (tui_source_window::do_scroll_vertical): Update.
8552 * tui/tui-layout.c (show_layout): Update.
8553 * tui/tui-disasm.c (tui_set_disassem_content)
8554 (tui_disasm_window::do_scroll_vertical): Update.
8555 * tui/tui-data.h (tui_win_content): Remove.
8556 (struct tui_gen_win_info) <content, content_size>: Remove.
8557 (struct tui_source_element): Add initializers and destructor.
8558 (union tui_which_element, struct tui_win_element): Remove.
8559 (struct tui_source_window_base) <content>: New field.
8560 (struct tui_data_window): Remove destructor.
8561 (tui_alloc_content, tui_free_win_content)
8562 (tui_free_all_source_wins_content): Don't declare.
8563 * tui/tui-data.c (tui_initialize_static_data): Update.
8564 (init_content_element, tui_alloc_content): Remove.
8565 (~tui_gen_win_info): Update.
8566 (~tui_data_window, tui_free_all_source_wins_content)
8567 (tui_free_win_content, free_content, free_content_elements):
8568 Remove.
8569
7908abbf
TT
85702019-06-25 Tom Tromey <tom@tromey.com>
8571
8572 * tui/tui-winsource.h (tui_clear_source_content)
8573 (tui_erase_source_content, tui_show_source_content): Change type
8574 of win_info.
8575 * tui/tui-winsource.c (tui_clear_source_content)
8576 (tui_erase_source_content, tui_show_source_content): Change type
8577 of win_info.
8578 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
8579 * tui/tui-source.h (tui_set_source_content_nil): Change type of
8580 win_info.
8581 * tui/tui-source.c (tui_set_source_content_nil): Change type of
8582 win_info.
8583 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
8584
02c28df0
TT
85852019-06-25 Tom Tromey <tom@tromey.com>
8586
8587 * tui/tui-winsource.c (tui_clear_source_content)
8588 (tui_source_window_base::set_is_exec_point_at): Update.
8589 * tui/tui-source.c (tui_set_source_content_nil): Update.
8590 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
8591 a bool.
8592 * tui/tui-data.c (init_content_element): Update.
8593
6658b1bf
TT
85942019-06-25 Tom Tromey <tom@tromey.com>
8595
8596 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
8597 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
8598 * tui/tui-layout.c (init_and_make_win): Update.
8599 * tui/tui.h (enum tui_win_type): Update.
8600 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
8601 tui_win_is_auxillary.
8602 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
8603 tui_win_is_auxillary.
8604
21e1c91e
TT
86052019-06-25 Tom Tromey <tom@tromey.com>
8606
8607 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
8608 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
8609 (tui_delete_data_content_windows, tui_display_all_data)
8610 (tui_data_window::do_scroll_vertical, tui_display_data_from):
8611 Update.
8612 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
8613 * tui/tui-regs.c (tui_last_regs_line_no)
8614 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
8615 (tui_show_registers): Update.
8616 (tui_show_register_group): Return void. Update.
8617 (tui_display_registers_from, tui_display_reg_element_at_line)
8618 (tui_display_registers_from_line, tui_check_register_values):
8619 Update.
8620 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
8621 member.
8622 (struct tui_data_window) <regs_content>: Now a std::vector.
8623 <regs_content_count>: Remove.
8624 (tui_add_content_elements, tui_free_data_content): Don't declare.
8625 * tui/tui-data.c (tui_data_window::clear_detail): Update.
8626 (init_content_element): Remove DATA_WIN case. Add assert.
8627 (tui_add_content_elements): Remove.
8628 (tui_data_window): Update.
8629 (tui_free_data_content): Remove.
8630 (free_content_elements): Remove DATA_WIN case.
8631
115ac53b
TT
86322019-06-25 Tom Tromey <tom@tromey.com>
8633
8634 * tui/tui-data.c (tui_data_item_window): Update.
8635 * tui/tui-windata.h (tui_check_data_values): Don't declare.
8636 * tui/tui-windata.c (tui_display_all_data)
8637 (tui_display_data_from_line): Update.
8638 (tui_check_data_values): Remove.
8639 * tui/tui-regs.c (tui_show_register_group)
8640 (tui_display_reg_element_at_line): Update.
8641 * tui/tui-hooks.c (tui_register_changed)
8642 (tui_refresh_frame_and_register_information): Call
8643 tui_check_register_values.
8644 * tui/tui-data.h (struct tui_data_window) <data_content,
8645 data_content_count, data_type>: Remove.
8646 (enum tui_data_type): Remove.
8647
8648 * tui/tui-data.c (tui_data_window::clear_detail)
8649 (~tui_data_window): Update.
8650
eaf9738b
TT
86512019-06-25 Tom Tromey <tom@tromey.com>
8652
8653 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
8654 declare.
8655 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
8656 Rename from tui_first_data_item_displayed. Update.
8657 (tui_data_window::refresh_all)
8658 (tui_data_window::do_scroll_vertical): Update.
8659 * tui/tui-data.h (struct tui_data_window)
8660 <first_data_item_displayed>: Declare new method.
8661
31ca4723
TT
86622019-06-25 Tom Tromey <tom@tromey.com>
8663
8664 * tui/tui-data.h (tui_init_generic_part): Don't declare.
8665 * tui/tui-data.c (tui_init_generic_part): Remove, moving
8666 contents...
8667 (tui_initialize_static_data): ...here.
8668
41bcff7f
TT
86692019-06-25 Tom Tromey <tom@tromey.com>
8670
8671 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
8672 (tui_display_registers_from, tui_check_register_values): Update.
8673 (tui_display_register): Remove win_info parameter; update.
8674 (tui_get_register): Change type of parameters.
8675 * tui/tui-data.h (struct tui_data_element): Remove.
8676 (union tui_which_element) <data>: Remove.
8677 <data_window>: Change type.
8678 (struct tui_data_item_window): New.
8679 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
8680 case. Add assert.
8681 (~tui_data_item_window): New destructor.
8682 (free_content_elements): Remove DATA_ITEM_WIN case.
8683
d2802c33
TT
86842019-06-25 Tom Tromey <tom@tromey.com>
8685
8686 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
8687 Remove.
8688
dd835f8b
TT
86892019-06-25 Tom Tromey <tom@tromey.com>
8690
8691 * tui/tui-data.h (struct tui_command_element): Remove.
8692 (union tui_which_element) <command>: Remove.
8693 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
8694 assert.
8695 (free_content_elements): Remove CMD_WIN case.
8696
bd7db367
TT
86972019-06-25 Tom Tromey <tom@tromey.com>
8698
8699 * tui/tui-layout.c (tui_set_layout): Update.
8700 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
8701 * tui/tui-data.c (layout_def): Update.
8702
3add462f
TT
87032019-06-25 Tom Tromey <tom@tromey.com>
8704
8705 * tui/tui-wingeneral.c (tui_refresh_all): Update.
8706 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
8707 (tui_source_window_base::set_new_height): Update.
8708 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
8709 Update.
8710 (tui_set_locator_fullname, tui_set_locator_info)
8711 (tui_show_frame_info): Update.
8712 * tui/tui-source.c (tui_set_source_content)
8713 (tui_source_is_displayed): Update.
8714 * tui/tui-layout.c (show_source_disasm_command, show_data)
8715 (show_source_or_disasm_and_command): Update.
8716 * tui/tui-disasm.c (tui_set_disassem_content)
8717 (tui_get_begin_asm_address): Update.
8718 * tui/tui-data.h (struct tui_locator_element): Remove.
8719 (union tui_which_element) <locator>: Remove.
8720 (struct tui_locator_window): New.
8721 (tui_locator_win_info_ptr): Change return type.
8722 * tui/tui-data.c (_locator): Change type.
8723 (tui_locator_win_info_ptr): Change return type.
8724 (init_content_element): Remove LOCATOR_WIN case. Add assert.
8725 (tui_alloc_content): Add assert.
8726
489e9d8b
TT
87272019-06-25 Tom Tromey <tom@tromey.com>
8728
8729 * tui/tui-winsource.c
8730 (tui_exec_info_window::maybe_allocate_content): New method.
8731 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
8732 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
8733 (make_source_or_disasm_window): Add cast.
8734 * tui/tui-data.h (union tui_which_element) <simple_string>:
8735 Remove.
8736 (struct tui_source_info): New.
8737 (struct tui_source_window_base) <execution_info>: Change type.
8738 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
8739 case, and add assert.
8740 (tui_alloc_content): Add assert.
8741
c3fabb7d
TT
87422019-06-25 Tom Tromey <tom@tromey.com>
8743
8744 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
8745 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
8746 * tui/tui-data.c (tui_alloc_win_info): Remove.
8747
bbc228ee
TT
87482019-06-25 Tom Tromey <tom@tromey.com>
8749
8750 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
8751 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
8752 can_highlight.
8753
5fcee43a
TT
87542019-06-25 Tom Tromey <tom@tromey.com>
8755
8756 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
8757 make_visible_with_new_height method.
8758 (tui_win_info::make_visible_with_new_height): New method.
8759 (tui_source_window_base::do_make_visible_with_new_height)
8760 (tui_data_window::do_make_visible_with_new_height)
8761 (tui_cmd_window::do_make_visible_with_new_height): New methods.
8762 (make_visible_with_new_height): Remove.
8763 (tui_resize_all, tui_adjust_win_heights): Use
8764 make_visible_with_new_height method.
8765 * tui/tui-data.h (struct tui_win_info)
8766 <do_make_visible_with_new_height, make_visible_with_new_height>:
8767 New methods.
8768 (struct tui_source_window_base, struct tui_data_window)
8769 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
8770 methods.
8771
d83f1fe6
TT
87722019-06-25 Tom Tromey <tom@tromey.com>
8773
8774 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
8775 method.
8776 (update_tab_width): Call update_tab_width method.
8777 * tui/tui-data.h (struct tui_win_info)
8778 (struct tui_source_window_base) <update_tab_width>: New methods.
8779
17374de4
TT
87802019-06-25 Tom Tromey <tom@tromey.com>
8781
8782 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
8783 parameter.
8784 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
8785 parameter.
8786 (tui_gen_win_info::make_visible): Update.
8787 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
8788 parameter.
8789 * tui/tui-data.h (enum tui_box): New enum.
8790 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
8791
f936bca2
TT
87922019-06-25 Tom Tromey <tom@tromey.com>
8793
8794 * tui/tui-layout.c (make_source_or_disasm_window): Always use
8795 init_and_make_win for EXEC_INFO_WIN.
8796 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
8797 longer inline.
8798 (struct tui_win_info) <~tui_win_info>: Inline.
8799 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
8800 Don't declare.
8801 * tui/tui-data.c (source_win, disasm_win): Remove globals.
8802 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
8803 Remove.
8804 (tui_initialize_static_data): Update.
8805 (~tui_gen_win_info): Handle more cleanup here.
8806 (~tui_source_window_base): Delete "execution_info".
8807 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
8808
d6ba6a11
TT
88092019-06-25 Tom Tromey <tom@tromey.com>
8810
8811 * tui/tui-layout.c (make_command_window): Don't set
8812 can_highlight.
8813 (show_source_disasm_command): Call the reset method.
8814 (show_data): Don't set can_highlight. Call the reset method.
8815 (tui_gen_win_info::reset): Rename from init_gen_win_info
8816 (init_and_make_win): Simplify. Return tui_gen_win_info.
8817 (show_source_or_disasm_and_command): Call the reset method.
8818 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
8819 (struct tui_cmd_window): Set can_highlight.
8820
48a3bd16
TT
88212019-06-25 Tom Tromey <tom@tromey.com>
8822
8823 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
8824 from make_visible.
8825 (tui_make_visible, tui_make_invisible): Rewrite.
8826 (tui_win_info::make_visible): Remove.
8827 (tui_source_window_base::make_visible): Update.
8828 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
8829 method. Moved from...
8830 (struct tui_win_info) <make_visible>: ...here.
8831
c3bd716f
TT
88322019-06-25 Tom Tromey <tom@tromey.com>
8833
8834 * tui/tui-winsource.c
8835 (tui_source_window_base::do_scroll_horizontal): Remove direction
8836 parameter.
8837 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
8838 direction parameter.
8839 * tui/tui-win.c (tui_win_info::forward_scroll)
8840 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
8841 (tui_win_info::right_scroll): Update.
8842 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
8843 direction parameter.
8844 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
8845 direction parameter.
8846 * tui/tui-data.h (enum tui_scroll_direction): Remove.
8847 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
8848 Remove direction parameter.
8849 (struct tui_source_window_base, struct tui_source_window)
8850 (struct tui_disasm_window, struct tui_data_window)
8851 (struct tui_cmd_window): Update.
8852
21c32dca
TT
88532019-06-25 Tom Tromey <tom@tromey.com>
8854
8855 * tui/tui-winsource.h (tui_set_exec_info_content)
8856 (tui_show_exec_info_content, tui_erase_exec_info_content)
8857 (tui_clear_exec_info_content, tui_update_exec_info): Change
8858 argument to tui_source_window_base.
8859 * tui/tui-winsource.c (tui_set_exec_info_content)
8860 (tui_show_exec_info_content, tui_erase_exec_info_content)
8861 (tui_clear_exec_info_content, tui_update_exec_info): Change
8862 argument to tui_source_window_base.
8863
73fbdc65
TT
88642019-06-25 Tom Tromey <tom@tromey.com>
8865
8866 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
8867 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
8868
33325343
TT
88692019-06-25 Tom Tromey <tom@tromey.com>
8870
8871 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
8872 check.
8873
29d2c474
TT
88742019-06-25 Tom Tromey <tom@tromey.com>
8875
8876 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
8877 type to void.
8878 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
8879 type to void.
8880 * tui/tui-source.c (tui_set_source_content): Update.
8881 * tui/tui-disasm.c (tui_set_disassem_content): Update.
8882
152f3f4b
TT
88832019-06-25 Tom Tromey <tom@tromey.com>
8884
8885 * tui/tui-win.c (window_name_completer, tui_set_focus)
8886 (tui_all_windows_info): Use name method.
8887 * tui/tui-data.h (struct tui_gen_win_info)
8888 (struct tui_source_window, struct tui_disasm_window)
8889 (struct tui_data_window, struct tui_cmd_window) <name>: New
8890 method.
8891 (tui_win_name): Don't declare.
8892 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
8893 (tui_win_name): Remove.
8894
be4da588
TT
88952019-06-25 Tom Tromey <tom@tromey.com>
8896
8897 * tui/tui-winsource.h (tui_update_source_window)
8898 (tui_update_source_window_as_is): Change parameter type.
8899 * tui/tui-winsource.c (tui_update_source_window): Change win_info
8900 to be a tui_source_window_base.
8901 (tui_update_source_window_as_is): Likewise.
8902 * tui/tui-win.c (make_visible_with_new_height): Update.
8903
5b81daba
TT
89042019-06-25 Tom Tromey <tom@tromey.com>
8905
8906 * tui/tui-winsource.c (tui_erase_source_content)
8907 (tui_show_source_content, tui_show_exec_info_content)
8908 (tui_erase_exec_info_content): Use refresh_window method.
8909 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
8910 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
8911 from tui_refresh_win.
8912 (tui_data_window::refresh_window): New method.
8913 (tui_win_info::refresh, tui_source_window_base::refresh)
8914 (tui_refresh_all): Use refresh_window method.
8915 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
8916 method.
8917 * tui/tui-regs.c (tui_display_register): Call refresh_window
8918 method.
8919 * tui/tui-layout.c (show_source_disasm_command)
8920 (show_source_or_disasm_and_command): Call refresh_window method.
8921 * tui/tui-data.h (struct tui_gen_win_info)
8922 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
8923 New method.
8924
cb2ce893
TT
89252019-06-25 Tom Tromey <tom@tromey.com>
8926
8927 * tui/tui.c (tui_rl_other_window, tui_enable)
8928 (tui_is_window_visible, tui_get_command_dimension): Update.
8929 * tui/tui-winsource.c (tui_update_source_window_as_is)
8930 (tui_clear_source_content, tui_erase_source_content)
8931 (tui_show_source_line, tui_source_window_base::refill)
8932 (tui_source_window_base::do_scroll_horizontal)
8933 (tui_source_window_base::set_is_exec_point_at)
8934 (tui_update_breakpoint_info, tui_set_exec_info_content)
8935 (tui_alloc_source_buffer, tui_line_is_displayed)
8936 (tui_addr_is_displayed): Update.
8937 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
8938 (tui_check_and_display_highlight_if_needed)
8939 (tui_win_info::make_visible, tui_win_info::refresh)
8940 (tui_refresh_all): Update.
8941 * tui/tui-windata.c (tui_first_data_item_displayed)
8942 (tui_delete_data_content_windows, tui_erase_data_content)
8943 (tui_display_all_data, tui_data_window::refresh_all)
8944 (tui_check_data_values): Update.
8945 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
8946 (tui_set_win_focus_to, tui_win_info::forward_scroll)
8947 (tui_win_info::backward_scroll, tui_refresh_all_win)
8948 (tui_resize_all, tui_set_focus, tui_all_windows_info)
8949 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
8950 (tui_source_window_base::set_new_height)
8951 (tui_data_window::set_new_height)
8952 (make_invisible_and_set_new_height)
8953 (make_visible_with_new_height, new_height_ok)
8954 (parse_scrolling_args): Update.
8955 * tui/tui-stack.c (tui_show_frame_info): Update.
8956 * tui/tui-source.c (tui_set_source_content)
8957 (tui_set_source_content_nil, tui_source_is_displayed)
8958 (tui_source_window::do_scroll_vertical): Update.
8959 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
8960 (tui_display_registers_from, tui_display_reg_element_at_line)
8961 (tui_check_register_values, tui_reg_command): Update.
8962 * tui/tui-layout.c (tui_default_win_height)
8963 (show_source_disasm_command, show_data, init_and_make_win)
8964 (show_source_or_disasm_and_command): Update.
8965 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
8966 (tui_redisplay_readline, tui_mld_flush)
8967 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
8968 (tui_getc): Update.
8969 * tui/tui-disasm.c (tui_set_disassem_content)
8970 (tui_disasm_window::do_scroll_vertical): Update.
8971 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
8972 Now virtual.
8973 (struct tui_win_info): Derive from tui_gen_win_info.
8974 <~tui_win_info>: Mark as override.
8975 <generic>: Remove member.
8976 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
8977 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
8978 (~tui_data_window, ~tui_win_info)
8979 (tui_free_all_source_wins_content): Update.
8980 * tui/tui-command.c (tui_refresh_cmd_win): Update.
8981
ab313b35
TT
89822019-06-25 Tom Tromey <tom@tromey.com>
8983
8984 * tui/tui-layout.c (init_and_make_win): Use new.
8985 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
8986 destructor, initializers.
8987 (tui_alloc_generic_win_info): Don't declare.
8988 * tui/tui-data.c (_locator): Add argument to constructor.
8989 (source_win, disasm_win): New globals.
8990 (exec_info): Remove.
8991 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
8992 Update.
8993 (tui_alloc_generic_win_info): Remove.
8994 (init_content_element): Use new.
8995 (tui_win_info::tui_win_info): Update.
8996 (free_content_elements) <case DATA_WIN>: Use delete.
8997
dc2c33e4
TT
89982019-06-25 Tom Tromey <tom@tromey.com>
8999
9000 * tui/tui-wingeneral.c (tui_refresh_win): Update.
9001 * tui/tui-windata.c (tui_first_data_item_displayed)
9002 (tui_delete_data_content_windows): Update.
9003 * tui/tui-win.c (tui_data_window::set_new_height): Update.
9004 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
9005 (tui_display_registers_from, tui_check_register_values): Update.
9006 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
9007 pointer.
9008 * tui/tui-data.c (init_content_element): Update. Allocate the new
9009 window.
9010 (tui_free_data_content): Update.
9011 (free_content_elements) <case DATA_WIN>: Free the window.
9012
214a5cbe
TT
90132019-06-25 Tom Tromey <tom@tromey.com>
9014
9015 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
9016 Update.
9017 * tui/tui-layout.c (make_command_window)
9018 (show_source_disasm_command, show_data, init_and_make_win)
9019 (show_source_or_disasm_and_command): Update.
9020 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
9021 method.
9022 <can_highight, is_highlighted>: Now bool.
9023 (tui_set_win_highlight): Don't declare.
9024 * tui/tui-data.c (tui_set_win_highlight): Remove.
9025
8e2daf15
TT
90262019-06-25 Tom Tromey <tom@tromey.com>
9027
9028 * tui/tui-wingeneral.c (make_visible): Remove check of window
9029 type.
9030
8903bd8a
TT
90312019-06-25 Tom Tromey <tom@tromey.com>
9032
9033 * tui/tui-win.c (tui_win_info::max_height)
9034 (tui_cmd_window::max_height): New methods.
9035 (new_height_ok): Call max_height.
9036 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
9037 <max_height>: New method.
9038
3f02ce1e
TT
90392019-06-25 Tom Tromey <tom@tromey.com>
9040
9041 * tui/tui-win.c (tui_source_window_base::set_new_height)
9042 (tui_data_window::set_new_height): New methods.
9043 (make_invisible_and_set_new_height): Call set_new_height method.
9044 * tui/tui-data.h (struct tui_win_info)
9045 (struct tui_source_window_base, struct tui_data_window)
9046 <set_new_height>: New method.
9047
1825f487
TT
90482019-06-25 Tom Tromey <tom@tromey.com>
9049
9050 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
9051 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
9052 tui_refresh_data_win.
9053 * tui/tui-win.c (tui_source_window_base::refresh_all): New
9054 method.
9055 (tui_refresh_all_win): Call the refresh_all method.
9056 (tui_set_focus): Likewise.
9057 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
9058 (struct tui_source_window_base, struct tui_data_window) <refresh>:
9059 Likewise.
9060
ad54d15b
TT
90612019-06-25 Tom Tromey <tom@tromey.com>
9062
9063 * tui/tui-winsource.h (tui_refill_source_window)
9064 (tui_set_is_exec_point_at): Don't declare.
9065 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
9066 (tui_source_window_base::refill): Rename from
9067 tui_refill_source_window.
9068 (tui_source_window_base::do_scroll_horizontal): Update.
9069 (tui_source_window_base::set_is_exec_point_at): Rename from
9070 tui_set_is_exec_point_at.
9071 (tui_update_all_breakpoint_info): Update.
9072 * tui/tui-stack.c (tui_show_frame_info): Update.
9073 * tui/tui-layout.c (show_data): Add cast.
9074 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
9075 * tui/tui-data.h (struct tui_source_window_base) <refill,
9076 set_is_exec_point_at>: New methods.
9077 (tui_source_windows, tui_add_to_source_windows): Update types.
9078 (tui_add_to_source_windows): Remove redundant declaration.
9079 * tui/tui-data.c (source_windows): Store tui_source_window_base.
9080 (tui_source_windows): Change return type.
9081 (tui_clear_source_windows_detail): Update.
9082 (tui_add_to_source_windows): Change type of parameter.
9083 (tui_free_all_source_wins_content): Update.
9084
2042b506
TT
90852019-06-25 Tom Tromey <tom@tromey.com>
9086
9087 * tui/tui-wingeneral.c (tui_win_info::refresh)
9088 (tui_source_window_base::refresh): New methods.
9089 (tui_refresh_all): Call the refresh method.
9090 * tui/tui-data.h (struct tui_win_info)
9091 (struct tui_source_window_base) <refresh>: New method.
9092
56122977
TT
90932019-06-25 Tom Tromey <tom@tromey.com>
9094
9095 * tui/tui.h (tui_is_window_visible): Return bool.
9096 * tui/tui.c (tui_is_window_visible): Return bool.
9097 * tui/tui-wingeneral.c (tui_make_window, make_visible)
9098 (tui_make_visible, tui_make_invisible)
9099 (tui_win_info::make_visible)
9100 (tui_source_window_base::make_visible, make_all_visible)
9101 (tui_make_all_visible, tui_make_all_invisible): Update.
9102 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
9103 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
9104 bool.
9105 (struct tui_win_info, struct tui_source_window_base)
9106 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
9107 * tui/tui-data.c (tui_init_generic_part): Update.
9108
cda37efb
TT
91092019-06-25 Tom Tromey <tom@tromey.com>
9110
9111 * tui/tui-wingeneral.c (tui_win_info::make_visible)
9112 (tui_source_window_base::make_visible): New methods.
9113 (make_all_visible): Make method call.
9114 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
9115 (struct tui_source_window_base, struct tui_cmd_window): Override
9116 make_visible.
9117 (tui_win_is_source_type): Don't declare.
9118 * tui/tui-data.c (tui_win_is_source_type): Remove.
9119
6a0ee02c
TT
91202019-06-25 Tom Tromey <tom@tromey.com>
9121
9122 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
9123 NULL check.
9124
63901aec
TT
91252019-06-25 Tom Tromey <tom@tromey.com>
9126
9127 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
9128 Inline constructor. Add initializers for members.
9129 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
9130 constructors; now inline in class.
9131
ceb13a13
TT
91322019-06-25 Tom Tromey <tom@tromey.com>
9133
9134 * tui/tui-regs.c (tui_show_registers): Update.
9135 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
9136 bool.
9137 * tui/tui-data.c (tui_data_window::clear_detail)
9138 (tui_data_window): Update.
9139
238eb706
TT
91402019-06-25 Tom Tromey <tom@tromey.com>
9141
9142 * tui/tui-windata.c (tui_display_all_data)
9143 (tui_display_data_from_line, tui_display_data_from)
9144 (tui_check_data_values, tui_data_window::do_scroll_vertical):
9145 Update.
9146 * tui/tui-regs.c (tui_last_regs_line_no)
9147 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
9148 (tui_show_registers, tui_show_register_group)
9149 (tui_display_registers_from, tui_display_reg_element_at_line)
9150 (tui_display_registers_from_line, tui_check_register_values)
9151 (tui_reg_next, tui_reg_prev): Update.
9152 * tui/tui-layout.c (tui_set_layout, show_data): Update.
9153 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
9154 tui_data_window.
9155 (struct tui_win_info) <detail>: Remove. Add new fields from
9156 tui_data_info.
9157 (TUI_DATA_WIN): Add cast.
9158 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
9159 (~tui_data_window): Simplify.
9160
81491aa0
TT
91612019-06-25 Tom Tromey <tom@tromey.com>
9162
9163 * tui/tui-layout.c (show_source_disasm_command)
9164 (show_source_or_disasm_and_command): Update.
9165 * tui/tui-io.c (update_cmdwin_start_line)
9166 (tui_redisplay_readline): Update.
9167 * tui/tui-data.h (struct tui_command_info): Remove.
9168 (struct tui_win_info) <detail>: Remove command_info member.
9169 (struct tui_data_window) <start_line>: New member, from
9170 tui_command_info.
9171 (TUI_CMD_WIN): Add casts.
9172
e6e41501
TT
91732019-06-25 Tom Tromey <tom@tromey.com>
9174
9175 * tui/tui-winsource.c (tui_update_source_window)
9176 (tui_refill_source_window)
9177 (tui_source_window_base::do_scroll_horizontal)
9178 (tui_update_breakpoint_info, tui_set_exec_info_content)
9179 (tui_show_exec_info_content, tui_erase_exec_info_content)
9180 (tui_clear_exec_info_content): Update.
9181 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
9182 Update.
9183 * tui/tui-win.c (make_invisible_and_set_new_height)
9184 (make_visible_with_new_height): Update.
9185 * tui/tui-source.c (tui_set_source_content)
9186 (tui_show_symtab_source): Update.
9187 * tui/tui-layout.c (extract_display_start_addr)
9188 (show_source_disasm_command, show_data)
9189 (make_source_or_disasm_window)
9190 (show_source_or_disasm_and_command): Update.
9191 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
9192 (tui_disasm_window::do_scroll_vertical): Remove shadowing
9193 "gdbarch".
9194 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
9195 to tui_source_window_base.
9196 (struct tui_win_info) <detail>: Remove source_info member.
9197 (struct tui_source_window_base) <has_locator>: Inline.
9198 Move contents from tui_source_info; rename has_locator member to
9199 m_has_locator.
9200 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
9201 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
9202 header file.
9203 (tui_source_window_base::clear_detail, ~tui_source_window_base):
9204 Simplify.
9205 (tui_free_all_source_wins_content): Cast to
9206 tui_source_window_base.
9207
44f0e208
TT
92082019-06-25 Tom Tromey <tom@tromey.com>
9209
9210 * tui/tui-win.c (make_invisible_and_set_new_height)
9211 (make_visible_with_new_height): Call has_locator method.
9212 * tui/tui-layout.c (show_source_disasm_command, show_data)
9213 (show_source_or_disasm_and_command): Update for bool change.
9214 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
9215 (tui_win_info) <has_locator>: New method.
9216 (struct tui_source_window_base) <has_locator>: New method.
9217 (tui_win_has_locator): Don't declare.
9218 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
9219 from tui_win_has_locator.
9220 (tui_source_window_base): Use false, not FALSE.
9221
7778b912
TT
92222019-06-25 Tom Tromey <tom@tromey.com>
9223
9224 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
9225 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
9226 clear_detail method directly.
9227 (tui_clear_win_detail): Remove.
9228
f83d391c
TT
92292019-06-25 Tom Tromey <tom@tromey.com>
9230
9231 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
9232 "this", not TUI_DISASM_WIN.
9233
13446e05
TT
92342019-06-25 Tom Tromey <tom@tromey.com>
9235
9236 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
9237 declare.
9238 * tui/tui-winsource.c
9239 (tui_source_window_base::do_scroll_horizontal): Rename from
9240 tui_horizontal_source_scroll.
9241 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
9242 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
9243 from tui_vertical_data_scroll.
9244 * tui/tui-win.h (tui_scroll): Don't declare.
9245 * tui/tui-win.c (tui_win_info::forward_scroll)
9246 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
9247 (tui_win_info::right_scroll): Rename and update.
9248 (tui_scroll_forward_command, tui_scroll_backward_command)
9249 (tui_scroll_left_command, tui_scroll_right_command): Update.
9250 (tui_scroll): Remove.
9251 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
9252 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
9253 from tui_vertical_source_scroll.
9254 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
9255 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
9256 from tui_vertical_disassem_scroll.
9257 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
9258 do_scroll_horizontal>: New methods.
9259 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
9260 Likewise.
9261 (struct tui_source_window_base): Add do_scroll_horizontal.
9262 (struct tui_source_window, struct tui_disasm_window): Add
9263 do_scroll_vertical.
9264 (struct tui_data_window, struct tui_cmd_window): Add
9265 do_scroll_horizontal and do_scroll_vertical.
9266 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
9267
5cf82909
TT
92682019-06-25 Tom Tromey <tom@tromey.com>
9269
9270 * tui/tui-data.h (struct tui_source_window_base): New struct.
9271 (struct tui_source_window): Derive from tui_source_window_base.
9272 (struct tui_disasm_window): New struct.
9273 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
9274 from tui_source_window::clear_detail.
9275 (tui_source_window_base): Rename from tui_source_window.
9276 (~tui_source_window_base): Rename from ~tui_source_window.
9277 (tui_alloc_win_info): Create a tui_disasm_window.
9278
ee1d42d6
TT
92792019-06-25 Tom Tromey <tom@tromey.com>
9280
9281 * tui/tui-data.h (struct tui_source_window)
9282 (struct tui_data_window): Declare destructors.
9283 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
9284 destructors.
9285 (tui_win_info): Simplify.
9286
b4eb2452
TT
92872019-06-25 Tom Tromey <tom@tromey.com>
9288
9289 * tui/tui-winsource.c (tui_display_main)
9290 (tui_update_source_windows_with_addr)
9291 (tui_update_all_breakpoint_info): Update.
9292 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
9293 (new_height_ok, parse_scrolling_args): Update.
9294 * tui/tui-stack.c (tui_show_frame_info): Update.
9295 * tui/tui-data.h (struct tui_list): Remove.
9296 (tui_source_windows): Return a reference to a std::vector.
9297 * tui/tui-data.c (source_windows): Now a std::vector.
9298 (tui_source_windows): Change return type.
9299 (tui_clear_source_windows): Rewrite.
9300 (tui_clear_source_windows_detail, tui_add_to_source_windows)
9301 (tui_free_all_source_wins_content): Rewrite.
9302
8761a91b
TT
93032019-06-25 Tom Tromey <tom@tromey.com>
9304
9305 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
9306 (struct tui_data_window, struct tui_cmd_window): Declare
9307 clear_detail method.
9308 * tui/tui-data.c (tui_source_window::clear_detail)
9309 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
9310 methods.
9311 (tui_clear_win_detail): Simplify.
9312
0ed69eda
TT
93132019-06-25 Tom Tromey <tom@tromey.com>
9314
9315 * tui/tui-layout.c (make_source_window, make_disasm_window)
9316 (make_source_or_disasm_window): Remove win_info_ptr parameter.
9317 Return the new window.
9318 (show_source_disasm_command, show_data)
9319 (show_source_or_disasm_and_command): Update.
9320
82432e10
TT
93212019-06-25 Tom Tromey <tom@tromey.com>
9322
9323 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
9324 parameter. Return the new window.
9325 (show_source_disasm_command): Update and remove NULL check.
9326 (show_source_or_disasm_and_command): Update.
9327
ec328aa5
TT
93282019-06-25 Tom Tromey <tom@tromey.com>
9329
9330 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
9331
33b906ab
TT
93322019-06-25 Tom Tromey <tom@tromey.com>
9333
9334 * tui/tui-data.h (struct tui_win_info): Make constructor
9335 protected. Make destructor virtual. Add initializers.
9336 (tui_source_window, tui_data_window, tui_cmd_window): New
9337 classes.
9338 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
9339 constructor. Add "type" parameter.
9340 (tui_source_window, tui_data_window, tui_cmd_window): New
9341 constructors.
9342 (tui_alloc_win_info): Instantiate the appropriate subclass.
9343
e7e11af4
TT
93442019-06-25 Tom Tromey <tom@tromey.com>
9345
9346 * tui/tui-win.c (tui_resize_all): Use delete.
9347 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
9348 destructor.
9349 (tui_free_window): Don't declare.
9350 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
9351 Update.
9352
6792b55e
TT
93532019-06-25 Tom Tromey <tom@tromey.com>
9354
9355 * tui/tui-data.h (struct tui_win_info): Add constructor.
9356 * tui/tui-data.c (tui_alloc_win_info): Use new.
9357 (tui_free_window): Use delete.
9358
f95675e1
TT
93592019-06-22 Tom Tromey <tom@tromey.com>
9360
9361 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
9362 declare.
9363 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
9364
5bff081c
TT
93652019-06-22 Tom Tromey <tom@tromey.com>
9366
9367 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
9368 declare.
9369 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
9370
47e3f474
TV
93712019-06-22 Tom de Vries <tdevries@suse.de>
9372
9373 * dwarf2read.c (create_addrmap_from_aranges)
9374 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
9375 instead of '%zu'.
9376
fd5866f6
SM
93772019-06-21 Simon Marchi <simon.marchi@efficios.com>
9378
9379 * dwarf2read.h (dwarf2_section_info_def): Remove.
9380 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
9381 * dwarf2read.c (struct dwo_sections) <types>: Change type to
9382 std::vector<dwarf2_section_info>.
9383 (struct dwo_file) <~dwo_file>: Remove.
9384 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
9385 types field.
9386 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
9387 (dwarf2_read_debug_names): Likewise.
9388 (create_debug_types_hash_table): Change parameter type to
9389 array_view, adjust code accordingly.
9390 (dwarf2_locate_dwo_sections): Adjust to std::vector.
9391 (partial_die_info::fixup): Likewise.
9392 (determine_prefix): Likewise.
9393 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
9394
fb1eb2f9
SM
93952019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
9396
9397 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
9398 gdb_bfd_ref_ptr.
9399 <~dwo_file>: Remove call to gdb_bfd_unref.
9400 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
9401 gdb_bfd_ref_ptr::get.
9402
51ac9db5
SM
94032019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
9404
9405 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
9406 type to htab_up.
9407 * dwarf2read.c (struct dwo_file): Initialize fields.
9408 <~dwo_file>: New.
9409 (free_dwo_file): Remove, move content to ~dwo_file.
9410 (struct dwo_file_deleter): Remove.
9411 (dwo_file_up>: Remove custom deleter.
9412 (free_dwo_files): Remove.
9413 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
9414 dwo_files.
9415 (process_skeletonless_type_units): Call unique_ptr::get.
9416 (allocate_dwo_file_hash_table): Add deleter to created hash
9417 table. Change return type to htab_up.
9418 (lookup_dwo_file_slot): Don't memset dwo_file, call
9419 unique_ptr::get.
9420 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
9421 (create_dwo_unit_in_dwp_v2): Likewise.
9422 (open_and_init_dwo_file): Likewise.
9423 (free_dwo_file_from_slot): Remove.
9424
dc4ccb6f
SM
94252019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
9426
9427 * dwarf2read.h (struct dwarf2_section_info) <readin,
9428 is_virtual>: Change type to bool.
9429 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
9430 true instead of 1.
9431
e6a1c5cb
TT
94322019-06-19 Tom Tromey <tom@tromey.com>
9433
9434 * tui/tui-data.h (tui_init_content_element): Don't declare.
9435
6f6ffbeb
TT
94362019-06-19 Tom Tromey <tom@tromey.com>
9437
9438 * tui/tui-data.h (tui_init_win_info): Don't declare.
9439
f23f598e
TV
94402019-06-19 Tom de Vries <tdevries@suse.de>
9441
9442 * dwarf2read.h (abstract_to_concrete): Change type to
9443 std::unordered_map<sect_offset, std::vector<sect_offset>,
9444 gdb::hash_enum<sect_offset>>.
9445
680e1bee
TT
94462019-06-19 Tom Tromey <tromey@adacore.com>
9447
9448 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
9449 EVAL_AVOID_SIDE_EFFECTS specially.
9450
dcf37923
TT
94512019-06-19 Tom Tromey <tromey@adacore.com>
9452
9453 * source-cache.c (highlighter): New global.
9454 (source_cache::get_source_lines): Create a highlighter on demand.
9455
494986d5
AB
94562019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
9457
9458 * defs.h (deprecated_interactive_hook): Delete declaration.
9459 * interps.c (clear_interpreter_hooks): Remove use of
9460 deprecated_interactive_hook.
9461 * top.c (deprecated_interactive_hook): Delete definition.
9462 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
9463
3360b6e7
TV
94642019-06-18 Tom de Vries <tdevries@suse.de>
9465
9466 PR gdb/24515
9467 * dwarf2read.h (abstract_to_concrete): Change type from
9468 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
9469 std::unordered_map<sect_offset, std::vector<sect_offset>>.
9470 * dwarf2read.c (read_variable): Update.
9471 (dwarf2_fetch_die_loc_sect_off): Update.
9472
310b3441
TV
94732019-06-17 Tom de Vries <tdevries@suse.de>
9474
9475 PR gdb/24617
9476 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
9477 accessing parent[parent_len - 1].
9478
ba9777be
PP
94792019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
9480
9481 PR gdb/24364
9482 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
9483 call dtrace_process_dof with NULL dof.
9484
2b9f6e89
TV
94852019-06-16 Tom de Vries <tdevries@suse.de>
9486
9487 PR gdb/24445
9488 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
9489
431b3ead
TT
94902019-06-16 Tom Tromey <tom@tromey.com>
9491
9492 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
9493 (make_all_visible): Use address of member.
9494
d04b44a1
TT
94952019-06-16 Tom Tromey <tom@tromey.com>
9496
9497 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
9498 (tui_free_window, free_content, free_content_elements): Remove
9499 unnecessary cast.
9500 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
9501 cast.
9502 * tui/tui-regs.c (tui_show_register_group)
9503 (tui_display_registers_from, tui_display_reg_element_at_line):
9504 Remove unnecessary cast.
9505
bf5142e7
AB
95062019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
9507
9508 * linux-nat.c (normal_mask): Delete.
9509 (_initialize_linux_nat): Don't initialise normal_mask.
9510
c4973306
SM
95112019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
9512
9513 PR gdb/24445
9514 * dwarf-index-write.h (write_psymtabs_to_index): Add
9515 dwz_basename parameter.
9516 * dwarf-index-write.c (write_gdbindex): Move file writing to
9517 write_gdbindex_1. Change return type void.
9518 (assert_file_size): Move up, remove filename parameter.
9519 (write_gdbindex_1): New function.
9520 (write_debug_names): Change return type to void, call
9521 assert_file_size.
9522 (struct index_wip_file): New struct.
9523 (write_psymtabs_to_index): Add dwz_basename parameter. Move
9524 file logic to index_wip_file. Write index for dwz file if
9525 needed.
9526 (save_gdb_index_command): Pass basename of dwz file, if present.
9527 * dwarf-index-cache.c (index_cache::store): Obtain and pass
9528 build-id of dwz file, if present.
9529 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
9530 (dwarf2_get_dwz_file): Likewise.
9531 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
9532 (dwarf2_get_dwz_file): Likewise.
9533
395f9c91
TT
95342019-06-16 Tom Tromey <tom@tromey.com>
9535
9536 * coffread.c (process_coff_symbol): Use xstrdup.
9537 * value.c (create_internalvar): Use xstrdup.
9538
cafb3438
TT
95392019-06-16 Tom Tromey <tom@tromey.com>
9540
9541 * valops.c (value_cast, value_slice): Remove unnecessary cast.
9542 * breakpoint.c (stopin_command, stopat_command)
9543 (until_break_command, decode_location_default): Remove unnecessary
9544 cast.
9545 * utils.c (subset_compare): Remove unnecessary cast.
9546 * ada-lang.c (ada_update_initial_language): Remove unnecessary
9547 cast.
9548 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
9549 cast.
9550 * infcmd.c (path_command): Remove unnecessary cast.
9551 * coffread.c (decode_type): Remove unnecessary cast.
9552 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
9553 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
9554 * tui/tui-stack.c (tui_show_locator_content)
9555 (tui_show_frame_info): Remove unnecessary cast.
9556 * tui/tui-win.c (tui_scroll_forward_command)
9557 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
9558 (parse_scrolling_args): Remove unnecessary cast.
9559 * tui/tui-data.c (init_win_info, tui_del_window)
9560 (tui_free_window, tui_del_data_windows, tui_free_data_content)
9561 (free_content_elements): Remove unnecessary cast.
9562 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
9563 unnecessary cast.
9564 * tui/tui-source.c (tui_set_source_content)
9565 (tui_vertical_source_scroll): Remove unnecessary cast.
9566 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
9567 cast.
9568 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
9569 * tui/tui-regs.c (tui_display_registers_from)
9570 (tui_display_register): Remove unnecessary cast.
9571 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
9572 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
9573 (make_visible): Remove unnecessary cast.
9574 * tui/tui-winsource.c (tui_erase_source_content)
9575 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
9576 unnecessary cast.
9577 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
9578 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
9579 * stabsread.c (read_type, read_array_type, read_range_type):
9580 Remove unnecessary cast.
9581 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
9582 (parse_symbol, parse_type, upgrade_type, parse_external)
9583 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
9584 unnecessary cast.
9585 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
9586
730ead81
TT
95872019-06-16 Tom Tromey <tom@tromey.com>
9588
9589 * tui/tui-data.c (tui_alloc_generic_win_info)
9590 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
9591 checks.
9592
584a927c
AB
95932019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
9594 Andrew Burgess <andrew.burgess@embecosm.com>
9595
9596 * f-typeprint.c (f_print_type): Don't return early for not
9597 associated or not allocated types.
9598 (f_type_print_varspec_suffix): Add print_rank parameter and print
9599 ranks of array types in case they dangling.
9600 (f_type_print_base): Add print_rank parameter.
9601
30056ea0
AB
96022019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
9603
9604 * NEWS: Mention new MI commands.
9605 * break-catch-throw.c (enum exception_event_kind): Move to
9606 breakpoint.h.
9607 (print_mention_exception_catchpoint): Output text as a single
9608 message.
9609 (catch_exception_command_1): Rename to...
9610 (catch_exception_event): ...this, make non-static, update header
9611 command, and change some parameter types.
9612 (catch_catch_command): Update for changes to
9613 catch_exception_command_1.
9614 (catch_throw_command): Likewise.
9615 (catch_rethrow_command): Likewise.
9616 * breakpoint.c (enum exception_event_kind): Delete.
9617 * breakpoint.h (enum exception_event_kind): Moved here from
9618 break-catch-throw.c.
9619 (catch_exception_event): Declare.
9620 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
9621 (mi_cmd_catch_throw): New function.
9622 (mi_cmd_catch_rethrow): New function.
9623 (mi_cmd_catch_catch): New function.
9624 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
9625 'catch-catch' entries.
9626 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
9627 (mi_cmd_catch_rethrow): Declare.
9628 (mi_cmd_catch_catch): Declare.
9629
ec8e2b6d
AB
96302019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
9631
9632 * annotate.c (annotate_source_line): Change return type to void,
9633 update implementation to match.
9634 * annotate.h (annotate_source_line): Change return type to void,
9635 update header comment.
9636 * stack.c (print_frame_info): Don't change what frame information
9637 is printed based on whether annotations are on or not.
9638
0d3abd8c
AB
96392019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
9640
9641 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
9642 (annotate_source): Make static.
9643 (annotate_source_line): Moved from source.c and renamed from
9644 identify_source_line. Update the return type.
9645 * annotate.h (annotate_source): Delete declaration.
9646 (annotate_source_line): Declaration moved from source.h, and
9647 renamed from identify_source_line. Return type updated.
9648 * source.c (identify_source_line): Moved to annotate.c and renamed
9649 to annotate_source_line.
9650 (info_line_command): Remove check of annotation_level.
9651 * source.h (identify_source_line): Move declaration to annotate.h
9652 and rename to annotate_source_line.
9653 * stack.c: Add 'annotate.h' include.
9654 (print_frame_info): Remove check of annotation_level before
9655 calling annotate_source_line.
9656
00df30ae
AB
96572019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
9658
9659 * source-cache.c (source_cache::get_plain_source_lines): Use
9660 open_source_file_with_line_charpos instead of just
9661 open_source_file, remove call to find_source_lines.
9662 (source_cache::get_source_lines): Likewise.
9663 * source.c (find_source_lines): Make static.
9664 (get_filename_and_charpos): Renamed into...
9665 (open_source_file_with_line_charpos): ..this along with changes to
9666 return a scoped_fd, and some other minor clean ups.
9667 (identify_source_line): Use open_source_file_with_line_charpos.
9668 (search_command_helper): Use open_source_file_with_line_charpos
9669 instead of just open_source_file, remove call to
9670 find_source_lines.
9671 * source.h (open_source_file_with_line_charpos): Declare new
9672 function.
9673 (find_source_lines): Delete declaration.
9674
afda45a2
AB
96752019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
9676
9677 * source.c (get_filename_and_charpos): Remove fullname
9678 parameter.
9679 (identify_source_line): Update call to get_filename_and_charpos.
9680
0735b091
TT
96812019-06-14 Tom Tromey <tromey@adacore.com>
9682
9683 PR gdb/24502:
9684 * ui-style.h (skip_ansi_escape): Update comment.
9685 * ui-file.h (class no_terminal_escape_file): New class.
9686 * ui-file.c (no_terminal_escape_file::write)
9687 (no_terminal_escape_file::puts): New methods.
9688 * cli/cli-logging.c (handle_redirections): Use
9689 no_terminal_escape_file.
9690
52ce35e2
TT
96912019-06-14 Tom Tromey <tromey@adacore.com>
9692
9693 * NEWS: Move convenience variable news above Python news.
9694
73cc7272
TT
96952019-06-14 Tom Tromey <tom@tromey.com>
9696
9697 * gnulib: Move directory to top-level.
9698 * configure.ac: Don't configure gnulib.
9699 * configure: Rebuild.
9700 * common/common-defs.h: Use new path to gnulib.
9701 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
9702 (GNULIB_H): Remove.
9703 (INCGNU): Look in new gnulib location.
9704 (HFILES_NO_SRCDIR): Remove gnulib files.
9705 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
9706 (generated_files): Remove GNULIB_H.
9707 ($(LIBGNU), all-lib): Remove targets.
9708 (distclean): Don't mention GNULIB_BUILDDIR.
9709 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
9710
f5686554
TT
97112019-06-14 Tom Tromey <tromey@adacore.com>
9712
9713 * symfile.c (add_symbol_file_command): Remove obsolete comment.
9714 Warn if symbol file does not provide any symbols.
9715
a0c1ffed
TT
97162019-06-14 Tom Tromey <tromey@adacore.com>
9717
9718 * source.c (find_and_open_source): Respect basenames_may_differ.
9719
7c39e397
AB
97202019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
9721
9722 * annotate.c (annotate_breakpoints_invalid): Make use of
9723 scoped_restore_terminal_state.
9724 (annotate_frames_invalid): Likewise.
9725
f411722c
TT
97262019-06-14 Tom Tromey <tromey@adacore.com>
9727
9728 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
9729 allow assignment to an internalvar.
9730
4268ec18
TT
97312019-06-14 Tom Tromey <tromey@adacore.com>
9732
9733 * ada-lex.l: Allow "_" in attribute names.
9734
abdb711e
TT
97352019-06-14 Tom Tromey <tromey@adacore.com>
9736
9737 PR gdb/24653:
9738 * regcache.c (registers_changed): Don't call alloca.
9739 * top.c (execute_command): Don't call alloca.
9740
4c048731
PA
97412019-06-13 Pedro Alves <palves@redhat.com>
9742
9743 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
9744 'expression'. When parsing an expression, error out if there's
9745 junk after "unlimited".
9746 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
9747 (do_set_command): Adjust calls to is_unlimited_literal.
9748
66eb1ed3
PA
97492019-06-13 Pedro Alves <palves@redhat.com>
9750
9751 * compile/compile.c (make_compile_options_def_group): Add braces
9752 around array_view initializer.
9753 * thread.c (make_thread_apply_all_options_def_group)
9754 (make_thread_apply_all_options_def_group): Likewise.
9755
3345721a
PA
97562019-06-13 Pedro Alves <palves@redhat.com>
9757
9758 * NEWS (New commands): Mention "maint test-options
9759 require-delimiter", "maint test-options unknown-is-error", "maint
9760 test-options unknown-is-operand" and "maint show
9761 test-options-completion-result".
9762 (New command options, command completion): New section.
9763 (Completion improvements): New section.
9764 Mention that you can abbreviate "unlimited".
9765
6206060d
PA
97662019-06-13 Pedro Alves <palves@redhat.com>
9767
9768 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
9769 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
9770 * unittests/cli-utils-selftests.c (test_parse_flags)
9771 (test_parse_flags_qcs): Delete.
9772 (test_cli_utils): Don't call deleted functions.
9773
6665660a
PA
97742019-06-13 Pedro Alves <palves@redhat.com>
9775
9776 * thread.c: Include "cli/cli-option.h".
9777 (tp_array_compar_ascending): Global.
9778 (tp_array_compar): Delete function.
9779 (tp_array_compar_ascending, tp_array_compar_descending): New
9780 functions.
9781 (ascending_option_def, qcs_flag_option_def)
9782 (thr_qcs_flags_option_defs)
9783 (make_thread_apply_all_options_def_group)
9784 (make_thread_apply_options_def_group): New.
9785 (thread_apply_all_command): Use gdb::option::process_options.
9786 (thread_apply_command_completer)
9787 (thread_apply_all_command_completer): New.
9788 (thread_apply_command): Use gdb::option::process_options.
9789 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
9790 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
9791 to generate help text of "thread apply". Adjust "taas"'s help.
9792 * tid-parse.c (tid_range_parser::in_thread_range): New method.
9793 * tid-parse.h (tid_range_parser::in_thread_range): New method.
9794
f7e13587
PA
97952019-06-13 Pedro Alves <palves@redhat.com>
9796
9797 * thread.c (thread_apply_command): Check for invalid TID with
9798 isdigit instead of !isalpha.
9799
5d707134
PA
98002019-06-13 Pedro Alves <palves@redhat.com>
9801
9802 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
9803 (validate_flags_qcs): New.
9804 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
9805 (validate_flags_qcs): Declare.
9806 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
9807 (make_frame_apply_options_def_group): New.
9808 (frame_apply_command_count): Process options with
9809 gdb::option::process_options.
9810 (frame_apply_completer): New.
9811 (frame_apply_level_completer, frame_apply_all_completer)
9812 (frame_apply_completer): New.
9813 (_initialize_stack): Update help of "frame apply", "frame apply
9814 level", "frame apply all" and "faas" to mention supported options
9815 and install command completers.
9816 * stack.h (frame_apply_all_completer): Declare.
9817 * thread.c: Include "stack.h".
9818 (tfaas_command): Add "--".
9819 (_initialize_thread): Update help "tfaas" to mention supported
9820 options and install command completer.
9821
272d4594
PA
98222019-06-13 Pedro Alves <palves@redhat.com>
9823
9824 * completer.c (complete_nested_command_line): New.
9825 (gdb_completion_word_break_characters_throw): Add assertion.
9826 * completer.h (complete_nested_command_line): Declare.
9827
90a1ef87
PA
98282019-06-13 Pedro Alves <palves@redhat.com>
9829
9830 * stack.c (parse_backtrace_qualifiers): New.
9831 (backtrace_command): Use it.
9832 (backtrace_command_completer): Complete on qualifiers.
9833
d4c16835
PA
98342019-06-13 Pedro Alves <palves@redhat.com>
9835
9836 * frame.c: Include "cli/cli-option.h.
9837 (user_set_backtrace_options): New.
9838 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
9839 Delete.
9840 (get_prev_frame): Adjust.
9841 (boolean_option_def, uinteger_option_def)
9842 (set_backtrace_option_defs): New.
9843 (_initialize_frame): Adjust and use
9844 gdb::option::add_setshow_cmds_for_options to install "set
9845 backtrace past-main" and "set backtrace past-entry".
9846 * frame.h: Include "cli/cli-option.h".
9847 (struct frame_print_options): Forward declare.
9848 (print_frame_arguments_all, print_frame_arguments_scalars)
9849 (print_frame_arguments_none): Declare.
9850 (print_entry_values): Delete declaration.
9851 (struct frame_print_options, user_frame_print_options): New.
9852 (struct set_backtrace_options): New.
9853 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
9854 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
9855 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
9856 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
9857 (list_args_or_locals): Add frame_print_options parameter.
9858 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
9859 * python/py-framefilter.c (enumerate_args): Pass down
9860 USER_FRAME_PRINT_OPTIONS.
9861 * stack.c: Include "cli/cli-option.h".
9862 (print_frame_arguments_all, print_frame_arguments_scalars)
9863 (print_frame_arguments_none): Declare.
9864 (print_raw_frame_arguments, print_entry_values): Delete.
9865 (user_frame_print_options): New.
9866 (boolean_option_def, enum_option_def, frame_print_option_defs):
9867 New.
9868 (struct backtrace_cmd_options): New.
9869 (bt_flag_option_def): New.
9870 (backtrace_command_option_defs): New.
9871 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
9872 (print_frame_arg, read_frame_arg, print_frame_args)
9873 (print_frame_info, print_frame): Add frame_print_options parameter
9874 and use it.
9875 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
9876 (backtrace_command_1): Add frame_print_options and
9877 backtrace_cmd_options parameters and use them.
9878 (make_backtrace_options_def_group): New.
9879 (backtrace_command): Process command options with
9880 gdb::option::process_options.
9881 (backtrace_command_completer): New.
9882 (_initialize_stack): Extend "backtrace"'s help to mention
9883 supported options. Install completer for "backtrace".
9884 Install some settings commands with add_setshow_cmds_for_options.
9885
2daf894e
PA
98862019-06-13 Pedro Alves <palves@redhat.com>
9887
9888 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
9889 and that "set/show print raw frame-arguments" are now deprecated.
9890
9891 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
9892 command.
9893 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
9894 * stack.c (_initialize_stack): Install "set/show print
9895 raw-frame-arguments", and deprecate "set/show print raw
9896 frame-arguments".
9897 * valprint.c (_initialize_valprint): Deprecate "set/show print
9898 raw".
9899
e6ed716c
PA
99002019-06-13 Pedro Alves <palves@redhat.com>
9901
9902 * compile/compile.c (struct compile_options): New.
9903 (compile_flag_option_def, compile_command_option_defs)
9904 (make_compile_options_def_group): New.
9905 (compile_file_command): Handle options with
9906 gdb::option::process_options.
9907 (compile_file_command_completer): New function.
9908 (compile_code_command): Handle options with
9909 gdb::option::process_options.
9910 (compile_code_command_completer): New function.
9911 (_initialize_compiler): Install completers for "compile code" and
9912 "compile file". Mention available options in "compile code" and
9913 "compile code"'s help.
9914 * completer.c (advance_to_completion_word): New, factored out from
9915 ...
9916 (advance_to_expression_complete_word_point): ... this.
9917 (advance_to_filename_complete_word_point): New.
9918 * completer.h (advance_to_filename_complete_word_point): New
9919 declaration.
9920
7d8062de
PA
99212019-06-13 Pedro Alves <palves@redhat.com>
9922
9923 * compile/compile.c: Include "cli/cli-option.h".
9924 (compile_print_value): Scope data pointer is now a
9925 value_print_options pointer; adjust.
9926 (compile_print_command): Process options. Scope data pointer is
9927 now a value_print_options pointer; adjust.
9928 (_initialize_compile): Update "compile print"'s help to include
9929 supported options. Install a completer for "compile print".
9930 * cp-valprint.c (show_vtblprint, show_objectprint)
9931 (show_static_field_print): Delete.
9932 (_initialize_cp_valprint): Don't install "set print
9933 static-members", "set print vtbl", "set print object" here.
9934 * printcmd.c: Include "cli/cli-option.h" and
9935 "common/gdb_optional.h".
9936 (print_command_parse_format): Rework to fill in a
9937 value_print_options instead of a format_data.
9938 (print_value): Change parameter type from format_data pointer to
9939 value_print_options reference. Adjust.
9940 (print_command_1): Process options. Adjust to pass down a
9941 value_print_options.
9942 (print_command_completer): New.
9943 (_initialize_printcmd): Install print_command_completer as
9944 handle_brkchars completer for the "print" command. Update
9945 "print"'s help to include supported options.
9946 * valprint.c: Include "cli/cli-option.h".
9947 (show_vtblprint, show_objectprint, show_static_field_print): Moved
9948 here from cp-valprint.c.
9949 (boolean_option_def, uinteger_option_def)
9950 (value_print_option_defs, make_value_print_options_def_group):
9951 New. Use gdb::option::add_setshow_cmds_for_options to install
9952 "set print elements", "set print null-stop", "set print repeats",
9953 "set print pretty", "set print union", "set print array", "set
9954 print address", "set print symbol", "set print array-indexes".
9955 * valprint.h: Include <string> and "cli/cli-option.h".
9956 (make_value_print_options_def_group): Declare.
9957 (print_value): Change parameter type from format_data pointer to
9958 value_print_options reference.
9959 (print_command_completer): Declare.
9960
9d0faba9
PA
99612019-06-13 Pedro Alves <palves@redhat.com>
9962
9963 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
9964 (COMMON_SFILES): Add maint-test-settings.c.
9965 * cli/cli-decode.c (boolean_enums): New global, factored out from
9966 ...
9967 (add_setshow_boolean_cmd): ... here.
9968 * cli/cli-decode.h (boolean_enums): Declare.
9969 * cli/cli-option.c: New file.
9970 * cli/cli-option.h: New file.
9971 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
9972 factored out from ...
9973 (parse_cli_boolean_value(const char *)): ... this.
9974 (is_unlimited_literal): Change parameter type to pointer to
9975 pointer. Adjust and advance ARG pointer.
9976 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
9977 (parse_cli_var_enum): New, factored out from ...
9978 (do_set_command): ... this. Adjust.
9979 * cli/cli-setshow.h (parse_cli_boolean_value)
9980 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
9981 (parse_cli_var_enum): Declare.
9982 * cli/cli-utils.c: Include "cli/cli-option.h".
9983 (get_ulongest): New.
9984 * cli/cli-utils.h (get_ulongest): Declare.
9985 (check_for_argument): New overloads.
9986 * maint-test-options.c: New file.
9987
2c722807
PA
99882019-06-13 Pedro Alves <palves@redhat.com>
9989
9990 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
9991 parse a range if "-" is at the end of the string.
9992
dee7b4c8
PA
99932019-06-13 Pedro Alves <palves@redhat.com>
9994
9995 * cli/cli-setshow.c (parse_auto_binary_operation)
9996 (parse_cli_boolean_value): Don't allow "o".
9997
dca0f6c0
PA
99982019-06-13 Pedro Alves <palves@redhat.com>
9999
10000 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
10001 * NEWS: Mention maint test-settings KIND.
10002 * maint-test-settings.c: New file.
10003
597bf39d
PA
100042019-06-13 Pedro Alves <palves@redhat.com>
10005
10006 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
10007 completer.
10008 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
10009 "set" completers.
10010
48c410fb
PA
100112019-06-13 Pedro Alves <palves@redhat.com>
10012
10013 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
10014 after item.
10015
93bcb043
PA
100162019-06-13 Pedro Alves <palves@redhat.com>
10017
10018 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
10019
cbba3ecd
PA
100202019-06-13 Pedro Alves <palves@redhat.com>
10021
10022 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
10023 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
10024 call.
10025 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
10026 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
10027 calls.
10028 (check_for_argument): Skip spaces after argument.
10029
b9a3f842
PA
100302019-06-13 Pedro Alves <palves@redhat.com>
10031
10032 * thread.c (thread_apply_command): Adjust TID parsing.
10033 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
10034 detected before end of string.
10035 (tid_is_in_list): Error out if LIST is invalid.
10036
3844e605
PA
100372019-06-13 Pedro Alves <palves@redhat.com>
10038
10039 * completer.c (complete_line_internal_1): Rewind completion word
10040 point.
10041 (completion_tracker::advance_custom_word_point_by): Change
10042 parameter type to int.
10043 * completer.h (completion_tracker::advance_custom_word_point_by):
10044 Likewise.
10045
00b56dbe
PA
100462019-06-13 Pedro Alves <palves@redhat.com>
10047
10048 * completer.c (advance_to_completion_word): Handle delimiters.
10049
d106773e
PA
100502019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
10051
10052 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
10053
08f10e02
TT
100542019-06-11 Tom Tromey <tom@tromey.com>
10055
10056 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
10057 (xmalloc_failed): Move to alloc.c.
10058 * alloc.c: New file.
10059 * Makefile.in (COMMON_SFILES): Add alloc.c.
10060
1c7fe951
TT
100612019-06-11 Tom Tromey <tom@tromey.com>
10062
10063 * nat/linux-waitpid.c: Don't include server.h.
10064 (linux_debug): Remove.
10065 (my_waitpid): Update.
10066
89549d7f
TT
100672019-06-11 Tom Tromey <tromey@adacore.com>
10068
10069 * infcall.c (_initialize_infcall): Remove trailing newline from
10070 help.
10071 * user-regs.c (_initialize_user_regs): Remove trailing newline
10072 from help.
10073 * typeprint.c (_initialize_typeprint): Remove trailing newline
10074 from help.
10075 * reverse.c (_initialize_reverse): Remove trailing newlines from
10076 help.
10077 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
10078 from help.
10079 * language.c (add_set_language_command): Remove trailing newline
10080 from help.
10081 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
10082 help.
10083 * disasm.c (_initialize_disasm): Remove trailing newline from
10084 help.
10085 * top.c (init_main): Remove trailing newline from help.
10086 * interps.c (_initialize_interpreter): Remove trailing newline
10087 from help.
10088 * btrace.c (_initialize_btrace): Remove trailing newlines from
10089 help.
10090 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
10091 from help.
10092 * python/python.c (_initialize_python): Remove trailing newline
10093 from help.
10094 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
10095 help.
10096 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
10097 from help. Reformat some text.
10098 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
10099 from help.
10100 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
10101 newline from help.
10102
86108c13
TT
101032019-06-11 Tom Tromey <tromey@adacore.com>
10104
10105 * darwin-nat.c (darwin_decode_exception_message)
10106 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
10107
a7067863
AB
101082019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
10109
10110 * valops.c (value_slice): Check for not allocated or not
10111 associated values.
10112
9ab08412
TV
101132019-06-10 Tom de Vries <tdevries@suse.de>
10114
10115 PR gdb/24618
10116 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
10117 sure an empty slot (defined by a 32-bit zero pair) is recognized as
10118 invalid.
10119
f19e22e9
TV
101202019-06-10 Tom de Vries <tdevries@suse.de>
10121
10122 PR gdb/24611
10123 * linespec.c (linespec_lexer_lex_string): Remove incorrect
10124 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
10125
e99f9db0
TV
101262019-06-10 Tom de Vries <tdevries@suse.de>
10127
10128 PR symtab/24545
10129 * symtab.c (struct demangled_name_entry): Add language field.
10130 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
10131 static minimal symbol". Set and use language field.
10132
9bf7038b
TT
101332019-06-10 Tom Tromey <tromey@adacore.com>
10134
10135 * ada-lang.c (_initialize_ada_language): Update help text.
10136
422186a9
TT
101372019-06-10 Tom Tromey <tromey@adacore.com>
10138
10139 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
10140 with a newline.
10141 * guile/guile.c (handle_boot_error): Don't end warning with a
10142 newline.
10143 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
10144 warning with a newline.
10145 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
10146 newline.
10147 (s12z_frame_cache): Likewise.
10148 * dwarf-index-cache.c (index_cache::store): Don't end warning with
10149 a newline.
10150 * solib-svr4.c (disable_probes_interface): Don't end warning with
10151 a newline.
10152 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
10153 newline.
10154 * python/python.c (do_finish_initialization): Don't end warning
10155 with a newline.
10156
25ce02ee
TT
101572019-06-10 Tom Tromey <tom@tromey.com>
10158
10159 * python/py-breakpoint.c (gdbpy_breakpoint_created)
10160 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
10161 gdbpy_enter.
10162
caa429d8
TT
101632019-06-10 Tom Tromey <tromey@adacore.com>
10164
10165 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
10166 data.
10167 (elf_new_init): Don't call stabsread_new_init.
10168 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
10169 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
10170 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
10171
81873cc8
TV
101722019-06-10 Tom de Vries <tdevries@suse.de>
10173
10174 PR symtab/16264
10175 PR symtab/24517
10176 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
10177
4fa0265e
РИ
101782019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
10179
10180 * source.c (find_and_open_source): Also rewrite relative file
10181 names.
10182
1a3da2cd
AB
101832019-04-26 Amos Bird <amosbird@gmail.com>
10184
10185 * annotate.c (annotate_thread_exited): Add "thread-exited"
10186 annotation.
10187
3847a7bf
TT
101882019-06-06 Tom Tromey <tromey@adacore.com>
10189
10190 * maint.h (class scoped_command_stats): Use
10191 DISABLE_COPY_AND_ASSIGN.
10192 <print_time>: New method.
10193 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
10194 print_time.
10195 (scoped_command_stats::print_time): New method.
10196
312617a3
AB
101972019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
10198
10199 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
10200 instructions of lengths 6 or 8 bytes.
10201
b02f78f9
PA
102022019-06-04 Pedro Alves <palves@redhat.com>
10203
10204 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
10205
10206 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
10207 * breakpoint.c (condition_completer): Likewise.
10208 * cli/cli-dump.c (scan_expression): Likewise.
10209 * common/filestuff.c (mkdir_recursive): Likewise.
10210 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
10211 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
10212 (gdb_abspath): Likewise.
10213 * compile/compile-cplus-types.c
10214 (compile_cplus_instance::decl_name): Likewise.
10215 * completer.c (complete_explicit_location):
10216 (signal_completer, reg_or_group_completer_1): Likewise.
10217 * cp-support.c (cp_remove_params_if_any): Likewise.
10218 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
10219 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
10220 * infcmd.c (strip_bg_char): Likewise.
10221 * linespec.c (copy_token_string): Likewise.
10222 * mi/mi-main.c (output_cores): Likewise.
10223 * psymtab.c (psymtab_search_name):
10224 * symfile.c (test_set_ext_lang_command): Likewise.
10225 * target.c (target_fileio_read_stralloc): Likewise.
10226 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
10227 * value.c (complete_internalvar): Likewise.
10228
e1f2e1a2
CB
102292019-06-04 Christian Biesinger <cbiesinger@google.com>
10230
10231 Add objfile property to gdb.Type.
d3238f7d
PA
10232 * NEWS: Mention Python API addition.
10233 * python/py-type.c (typy_get_objfile): New method.
e1f2e1a2 10234
e664d728
PW
102352019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10236
10237 * NEWS: Mention the new set|show style [title|highlight].
10238 Mention changes to "show style", "help" and "apropos".
10239
66d8c862
PW
102402019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10241
10242 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
10243 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
10244 instead of print_help_for_command.
10245 (print_doc_of_command): New function.
10246 (help_list): Add 'apropos -v word' suggestion.
10247 (print_help_for_command): Style the command name using title style.
10248 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
10249 (_initialize_cli_cmds): Describe -v in apropos_command help.
10250
9303eb2f
PW
102512019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10252
10253 * cli/cli-style.h (cli_style_option): Add name in constructor,
10254 add m_name class member, add constructor with intensity,
10255 add name class function.
10256 (cli_style_option::add_setshow_commands): Remove name argument.
10257 (highlight_style, title_style): New styles.
10258 * cli/cli-style.c (do_show): New function that shows a style
10259 characteristic styling the style name with itself.
10260 (set_style_name): New function.
10261 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
10262 Update all callers according to the changes in cli/cli-style.h.
10263 * utils.h (fputs_highlighted): New function.
10264 * utils.c (fputs_highlighted): Likewise.
10265
e2c52041
PW
102662019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10267
10268 * NEWS: Mention new pipe command and new convenience variables.
10269
947d3946
PW
102702019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10271
10272 * cli/cli-cmds.c (pipe_command): New function.
10273 (_initialize_cli_cmds): Call add_com for pipe_command.
10274 Define | as an alias for pipe.
10275 (exit_status_set_internal_vars): New function.
10276 (shell_escape): Call exit_status_set_internal_vars.
10277 cli/cli-decode.c (find_command_name_length): Recognize | as
10278 a single character command.
10279
b8fd0918
PW
102802019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10281
10282 * gdbcmd.h (execute_command_to_ui_file): New declaration.
10283 top.c (execute_command_to_ui_file): New function, mostly a copy
10284 of execute_command_to_string.
10285 (execute_command_to_string): Implement by calling
10286 execute_command_to_ui_file.
10287
68bb5386
PW
102882019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10289
10290 * top.h (saved_command_line): Remove declaration.
10291 * top.c (previous_saved_command_line, previous_repeat_arguments):
10292 New variables.
10293 (saved_command_line): Make static, define together with other
10294 'repeat variables'.
10295 (dont_repeat): Clear repeat_arguments.
10296 (repeat_previous, get_saved_command_line, save_command_line):
10297 New functions.
10298 (gdb_init): Initialize saved_command_line
10299 and previous_saved_command_line.
10300 * main.c (captured_main_1): Remove saved_command_line initialization.
10301 * event-top.c (handle_line_of_input): Update to use
10302 the new 'repeat' related functions instead of direct access to
10303 saved_command_line.
10304 * command.h (repeat_previous, get_saved_command_line,
10305 save_command_line): New declarations.
10306 (dont_repeat): Add comment.
10307
bfcdb852
TT
103082019-05-30 Tom Tromey <tromey@adacore.com>
10309
10310 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
10311 Fix comment.
10312 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
10313
0ef209f2
JV
103142019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
10315
10316 PR cli/24587
10317 * completer.c (complete): Initialize variable word.
10318
955b06fa
SDJ
103192019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
10320
10321 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
10322 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
10323 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
10324 'body' is NULL to the outter 'if', protecting the '!is_define'
10325 situation as well.
10326
fa9c3fa0
TT
103272019-05-29 Tom Tromey <tromey@adacore.com>
10328
10329 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
10330 (dwarf_unknown): New function.
10331 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
10332 (dwarf_type_encoding_name): Use dwarf_unknown.
10333
4330d61d
TT
103342019-05-29 Tom Tromey <tromey@adacore.com>
10335
10336 PR c++/20020:
10337 * cp-valprint.c (cp_print_value_fields): Call
10338 cp_print_static_field inside "try".
10339
33a6bc35
TT
103402019-05-29 Tom Tromey <tromey@adacore.com>
10341
10342 * inflow.c (struct terminal_info): Add default operator=.
10343 * configure: Rebuild.
10344 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
10345 -Wdeprecated-copy-dtor, -Wredundant-move.
10346
000439d5
TT
103472019-05-29 Tom Tromey <tromey@adacore.com>
10348
10349 * NEWS: Add entry.
10350 * infcmd.c (print_return_value_1): Handle finish_print
10351 option.
10352 (show_print_finish): New function.
10353 (_initialize_infcmd): Add "set/show print finish" commands.
10354 * valprint.c (user_print_options): Initialize new member.
10355 * valprint.h (struct value_print_options) <finish_print>: New
10356 member.
10357
c0e70c62
TT
103582019-05-28 Tom Tromey <tromey@adacore.com>
10359
10360 * ada-lang.c (ada_remove_Xbn_suffix)
10361 (find_old_style_renaming_symbol)
10362 (parse_old_style_renaming): Remove.
10363 (ada_find_renaming_symbol): Don't call
10364 find_old_style_renaming_symbol.
10365 (ada_is_renaming_symbol): Rename from
10366 ada_find_renaming_symbol. Remove "block" parameter. Return
10367 bool. Now static.
10368 (ada_read_var_value): Update and simplify.
10369 * ada-exp.y (write_var_or_type): Remove old code.
10370
766f8836
AH
103712019-05-28 Alan Hayward <alan.hayward@arm.com>
10372
68255adc 10373 PR gdb/25010
766f8836
AH
10374 * event-top.c: Remove include comment.
10375 * inflow.c (class scoped_ignore_sigttou): Move from here...
10376 * inflow.h (class scoped_ignore_sigttou): ...to here.
10377 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
10378 * top.c: Remove include comment.
10379
eb41253a
TT
103802019-05-27 Tom Tromey <tom@tromey.com>
10381
10382 * NEWS: Fix typo.
10383
4ca51187
TT
103842019-05-22 Tom Tromey <tromey@adacore.com>
10385
10386 * target.c (target_follow_exec): Constify parameter.
10387 * target-delegates.c: Rebuild.
10388 * remote.c (remote_target::follow_exec): Constify parameter.
10389 * infrun.c (follow_exec): Constify parameter.
10390 * target.h (struct target_ops) <follow_exec>: Constify parameter.
10391 (target_follow_exec): Likewise.
10392
8fca4da0
AH
103932019-05-22 Alan Hayward <alan.hayward@arm.com>
10394
10395 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
10396 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
10397
b7060614
AH
103982019-05-22 Alan Hayward <alan.hayward@arm.com>
10399
10400 * NEWS: Add debugredirect and testsuite sections.
10401
0a5954bd
SC
104022019-05-22 Simon Cook <simon.cook@embecosm.com>
10403
10404 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
10405 target descriptions using exclusively floating point register name
10406 aliases.
10407
dc42e902
AB
104082019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
10409
10410 PR gdb/18644:
10411 * f-lang.c (build_fortran_types): Handle the case where
10412 gdbarch_floatformat_for_type returns a nullptr.
10413
fb7806c7
TV
104142019-05-21 Tom de Vries <tdevries@suse.de>
10415
10416 PR cli/24587
10417 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
10418
34d11c68
AB
104192019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
10420
10421 PR gdb/18644:
10422 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
10423 16-byte floats.
10424 * i386-tdep.c (i386_floatformat_for_type): Use
10425 floatformats_ia64_quad for the 16-byte floating point component
10426 within a fortran 32-byte complex number.
10427
122cf0f2
AB
104282019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
10429
10430 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
10431 delete default constructor.
10432 (find_partial_die): Update to return const struct.
10433 (partial_die_parent_scope): Move variable declaration into scope
10434 of its use and change its type to auto.
10435 (guess_partial_die_structure_name): Likewise.
10436 (partial_die_info::fixup): Likewise.
10437
33d0e35a
TT
104382019-05-17 Tom Tromey <tromey@adacore.com>
10439
10440 * source.c (find_and_open_source): Remove cast.
10441
a45575b0
TT
104422019-05-17 Tom Tromey <tromey@adacore.com>
10443
10444 * annotate.c (annotate_source): Make "filename" const.
10445 * annotate.h (annotate_source): Use const.
10446
81f47ac2
AH
104472019-05-17 Alan Hayward <alan.hayward@arm.com>
10448
10449 * disasm.c (set_disassembler_options): Send errors to stderr.
10450
ca1285d1
AH
104512019-05-17 Alan Hayward <alan.hayward@arm.com>
10452
10453 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
10454 (cli_interp_base::set_logging): Check debug_redirect.
10455 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
10456 * cli/cli-logging.c (debug_redirect): Add static variable.
10457 (pop_output_files): Add default param.
10458 (handle_redirections): Print debug setting.
10459 (show_logging_command): Likewise.
10460 (_initialize_cli_logging): Add debugredirect command.
10461 * interps.c (current_interp_set_logging): Add debug_redirect
10462 parameter.
10463 * interps.h (set_logging): Add debug_redirect parameter.
10464 (current_interp_set_logging): Likewise.
10465 * mi/mi-common.h: Likewise.
10466 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
10467
104682019-05-17 Alan Hayward <alan.hayward@arm.com>
f3a09c80
AH
10469 Tom Tromey <tromey@adacore.com>
10470
10471 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
10472 directly.
10473 * cli/cli-interp.h (make_logging_output): Remove declaration.
10474 * cli/cli-logging.c (make_logging_output): Remove function.
10475 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
10476 directly.
10477 * ui-file.c (tee_file::tee_file): Remove bools.
10478 (tee_file::~tee_file): Remove deletes.
10479 * ui-file.h (tee_file): Remove bools.
10480
26648588
JV
104812019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
10482
10483 * mi/mi-cmds.h (mi_cmd_complete): New function.
10484 * mi/mi-main.c (mi_cmd_complete): Likewise.
10485 * mi/mi-cmds.c: Define new MI command -complete.
10486 * NEWS: Mention new -complete command.
10487
6e035501
JV
104882019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
10489
10490 * completer.h (complete): New function.
10491 * completer.c (complete): Likewise.
10492 * cli/cli-cmds.c: (complete_command): Update to use new complete()
10493 function defined in completer.h.
10494
7d0e2ece
JV
104952019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
10496
e79be6e5 10497 * MAINTAINERS (Write After Approval): Add myself.
7d0e2ece 10498
fb816e8b
TV
104992019-05-17 Tom de Vries <tdevries@suse.de>
10500
10501 PR gdb/24094
10502 * dwarf2read.c (struct cu_partial_die_info): New struct.
10503 (find_partial_die): Return cu_partial_die_info.
10504 (partial_die_parent_scope, guess_partial_die_structure_name)
10505 (partial_die_info::fixup): Handle new return type of find_partial_die.
10506
677052f2
SDJ
105072019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
10508
a1726c38 10509 PR breakpoints/24541
677052f2
SDJ
10510 * stap-probe.c (stap_parse_register_operand): Make "regname" an
10511 "std::string", simplifying the algorithm.
10512
f3da9116
SDJ
105132019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
10514
10515 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
10516 (stap_static_probe_ops::get_probes): Likewise.
10517
f1bb75ab
SDJ
105182019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
10519
10520 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
10521 '-')" and "else if".
10522 (stap_parse_single_operand): Join checks for
10523 "gdbarch_stap_parse_special_token_p" and
10524 "gdbarch_stap_parse_special_token" in the same "if" statement.
10525 Invert check when verifying for operation on register
10526 displacement.
10527
3ca58cde
SDJ
105282019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
10529
10530 * stap-probe.c (stap_get_opcode): Update comment.
10531 (stap_get_expected_argument_type): Likewise.
10532 (handle_stap_probe): Likewise.
10533
af2d9bee
SDJ
105342019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
10535
10536 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
10537 return type to 'bool'. Adjust comment. Use 'bool' when
10538 appropriate.
10539 (i386_stap_parse_special_token_three_arg_disp): Likewise.
10540 * stap-probe.c (stap_parse_argument_1): Likewise.
10541 (stap_is_operator): Likewise.
10542 (stap_is_generic_prefix): Likewise.
10543 (stap_is_register_prefix): Likewise.
10544 (stap_is_register_indirection_prefix): Likewise.
10545 (stap_is_integer_prefix): Likewise.
10546 (stap_generic_check_suffix): Likewise.
10547 (stap_check_integer_suffix): Likewise.
10548 (stap_check_register_suffix): Likewise.
10549 (stap_check_register_indirection_suffix): Likewise.
10550 (stap_parse_register_operand): Likewise.
10551 (stap_parse_single_operand): Likewise.
10552 (stap_parse_argument_1): Likewise.
10553 (stap_probe::get_argument_count): Likewise.
10554 (stap_is_operator): Likewise.
10555
61c9c421
TT
105562019-05-16 Tom Tromey <tromey@adacore.com>
10557
10558 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
10559 keyword to foreach.
10560
9ddc1af1
SM
105612019-05-15 Simon Marchi <simon.marchi@efficios.com>
10562
10563 * linux-thread-db.c (try_thread_db_load_1): Change return type
10564 to bool.
10565 (try_thread_db_load): Likewise.
10566 (try_thread_db_load_from_pdir_1): Likewise.
10567 (try_thread_db_load_from_pdir): Likewise.
10568 (try_thread_db_load_from_sdir): Likewise.
10569 (try_thread_db_load_from_dir): Likewise.
10570 (thread_db_load_search): Likewise.
10571 (has_libpthread): Likewise.
10572 (thread_db_load): Likewise.
10573
7bede828
SDJ
105742019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
10575
10576 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
10577 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
10578 NULL, and complain/return if that's the case.
10579
c5358db4
JD
105802019-05-15 John Darrington <john@darrington.wattle.id.au>
10581
10582 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
10583 (advance, posn, abstract_read_memory): New functions.
10584 [struct mem_read_abstraction]: New struct.
10585 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
10586
c408a94f
TT
105872019-05-14 Tom Tromey <tromey@adacore.com>
10588
10589 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
10590 value is not lval_memory.
10591
e7bd7fba
TT
105922019-05-14 Tom Tromey <tromey@adacore.com>
10593
10594 * solib.c (info_sharedlibrary_command): Style the file name.
10595
a6d0f249
AH
105962019-05-14 Alan Hayward <alan.hayward@arm.com>
10597
10598 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
10599 (aarch64_vnv_type): Likewise.
10600 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
10601 * common/tdesc.c: Likewise.
10602 * common/tdesc.h (enum tdesc_type_kind): Likewise.
10603 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
10604 * features/aarch64-fpu.xml: Add ieee half view.
10605 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
10606 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
10607 * gdbtypes.h (struct builtin_type): Likewise.
10608 (struct objfile_type): Likewise.
10609
66b8bb74
SM
106102019-05-12 Paul Naert <paul.naert@polymtl.ca>
10611
10612 * language.c (language_sniff_from_mangled_name): Fix "langauge"
10613 typo.
10614 * location.h (string_to_event_location): Likewise.
10615
21c219fd
JB
106162019-05-11 Joel Brobecker <brobecker@adacore.com>
10617
10618 GDB 8.3 released.
10619
13674803
SM
106202019-05-10 Simon Marchi <simon.marchi@efficios.com>
10621
10622 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
10623 New variable declaration.
10624 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
10625 New variable.
10626 (print_one_breakpoint): Use ui_out::test_flags and new global
10627 variable to compute use_fixed_output.
10628 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
10629 Remove.
10630 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
10631 (mi_multi_location_breakpoint_output_fixed): Remove.
10632 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
10633 new variable.
10634 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
10635 fix_multi_location_breakpoint_output flag if version >= 3.
10636 * ui-out.h (enum ui_out_flag)
10637 <fix_multi_location_breakpoint_output>: New enumerator.
10638
a9eac7f9
SM
106392019-05-10 Simon Marchi <simon.marchi@efficios.com>
10640
10641 * contrib/cc-with-tweaks.sh: Validate dwz's work.
10642
71bed2db
TT
106432019-05-10 Tom Tromey <tromey@adacore.com>
10644
10645 * ada-lang.c (catch_ada_completer): New function.
10646 (_initialize_ada_language): Use it.
10647
24c54127
TT
106482019-05-10 Tom Tromey <tromey@adacore.com>
10649
10650 * thread.c (print_thread_info): Make "requested_threads" const.
10651 * gdbthread.h (print_thread_info): Make "requested_threads"
10652 const.
10653 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
10654 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
10655
7a102139
TT
106562019-05-08 Tom Tromey <tom@tromey.com>
10657
10658 * gdbtypes.c (objfile_type_data): Change type.
10659 (objfile_type, _initialize_gdbtypes): Update.
10660
924d79e2
TT
106612019-05-08 Tom Tromey <tom@tromey.com>
10662
10663 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
10664 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
10665 (_initialize_dwarf2_frame): Update.
10666
4c58e337
TT
106672019-05-08 Tom Tromey <tom@tromey.com>
10668
10669 * objc-lang.c (objc_objfile_data): Change type.
10670 (find_methods): Update.
10671 (_initialize_objc_lang): Remove.
10672
d772d2ab
TT
106732019-05-08 Tom Tromey <tom@tromey.com>
10674
10675 * stabsread.c (rs6000_builtin_type_data): Change type.
10676 (rs6000_builtin_type, _initialize_stabsread): Update.
10677
d11d83f4
TT
106782019-05-08 Tom Tromey <tom@tromey.com>
10679
10680 * mips-tdep.c (mips_pdr_data): Remove.
10681 (_initialize_mips_tdep): Update.
10682
9a73f0ad
TT
106832019-05-08 Tom Tromey <tom@tromey.com>
10684
10685 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
10686 (hppa_init_objfile_priv_data, read_unwind_info)
10687 (find_unwind_entry, _initialize_hppa_tdep): Update.
10688
8127a2fa
TT
106892019-05-08 Tom Tromey <tom@tromey.com>
10690
10691 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
10692 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
10693 on obstack.
10694 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
10695
91d3055d
TT
106962019-05-08 Tom Tromey <tom@tromey.com>
10697
10698 * mdebugread.c (basic_type_data): Change type.
10699 (basic_type, _initialize_mdebugread): Update.
10700
31930bd3
TT
107012019-05-08 Tom Tromey <tom@tromey.com>
10702
10703 * common/gdb_unique_ptr.h (struct noop_deleter): New.
10704
bdb3ed9e
TT
107052019-05-08 Tom Tromey <tom@tromey.com>
10706
10707 * nto-tdep.c (nto_inferior_data_reg): Change type.
10708 (nto_inferior_data): Update.
10709 (nto_inferior_data_cleanup, nto_new_inferior_data)
10710 (_initialize_nto_tdep): Remove.
10711 * nto-tdep.h (struct nto_inferior_data): Add initializers.
10712
f37b313d
TT
107132019-05-08 Tom Tromey <tom@tromey.com>
10714
10715 * ada-lang.c (struct ada_inferior_data): Add initializers.
10716 (ada_inferior_data): Change type.
10717 (ada_inferior_data_cleanup): Remove.
10718 (get_ada_inferior_data, ada_inferior_exit)
10719 (struct ada_pspace_data): Add initializers, destructor.
10720 (ada_pspace_data_handle): Change type.
10721 (get_ada_pspace_data): Update.
10722 (ada_pspace_data_cleanup): Remove.
10723
24699405
TT
107242019-05-08 Tom Tromey <tom@tromey.com>
10725
10726 * coffread.c (struct coff_symfile_info): Add initializers.
10727 (coff_objfile_data_key): Move lower. Change type.
10728 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
10729 Update.
10730 (coff_free_info): Remove.
10731
d4e05d2f
TT
107322019-05-08 Tom Tromey <tom@tromey.com>
10733
10734 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
10735 (fbsd_pspace_data_handle): Move lower. Change type.
10736 (get_fbsd_pspace_data): Update.
10737 (fbsd_pspace_data_cleanup): Remove.
10738 (_initialize_fbsd_tdep): Update.
10739
14ef6690
TT
107402019-05-08 Tom Tromey <tom@tromey.com>
10741
10742 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
10743 (get_ada_tasks_pspace_data): Update.
10744 (ada_tasks_pspace_data_cleanup): Remove.
10745 (_initialize_tasks): Update.
10746 (ada_tasks_inferior_data_handle): Change type.
10747 (get_ada_tasks_inferior_data): Update.
10748 (ada_tasks_inferior_data_cleanup): Remove.
10749 (struct ada_tasks_pspace_data): Add initializers.
10750
814cf43a
TT
107512019-05-08 Tom Tromey <tom@tromey.com>
10752
10753 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
10754 * symfile-debug.c (debug_sym_get_probes): Change type.
10755 * stap-probe.c (handle_stap_probe):
10756 (stap_static_probe_ops::get_probes): Change type.
10757 * probe.h (class static_probe_ops) <get_probes>: Change type.
10758 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
10759 (parse_probes_in_pspace): Update.
10760 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
10761 Update.
10762 (any_static_probe_ops::get_probes): Change type.
10763 * elfread.c (elfread_data): New typedef.
10764 (probe_key): Change type.
10765 (elf_get_probes): Likewise. Update.
10766 (probe_key_free): Remove.
10767 (_initialize_elfread): Update.
10768 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
10769 Change type.
10770 (dtrace_process_dof_probe, dtrace_process_dof)
10771 (dtrace_static_probe_ops::get_probe): Change type.
10772
02dc647e
TT
107732019-05-08 Tom Tromey <tom@tromey.com>
10774
10775 * xcoffread.c (struct xcoff_symfile_info): Rename from
10776 coff_symfile_info. Add initializers.
10777 (xcoff_objfile_data_key): Move lower. Change type.
10778 (XCOFF_DATA): Rewrite.
10779 (xcoff_free_info): Remove.
10780 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
10781 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
10782 (xcoff_initial_scan): Update.
10783
09232438
TT
107842019-05-08 Tom Tromey <tom@tromey.com>
10785
10786 * solib-svr4.c (struct svr4_info): Add initializers and
10787 destructor.
10788 <probes_table>: Now an htab_up.
10789 (solib_svr4_pspace_data): Change type.
10790 (free_probes_table): Simplify.
10791 (~svr4_info): Rename from svr4_pspace_data_cleanup.
10792 (get_svr4_info, probes_table_htab_remove_objfile_probes)
10793 (probes_table_remove_objfile_probes, register_solib_event_probe)
10794 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
10795 (_initialize_svr4_solib): Update.
10796
7b4a314f
TT
107972019-05-08 Tom Tromey <tom@tromey.com>
10798
10799 * remote.c (remote_pspace_data): Change type.
10800 (remote_pspace_data_cleanup): Remove.
10801 (get_remote_exec_file, set_pspace_remote_exec_file)
10802 (_initialize_remote): Update.
10803
51d3063a
TT
108042019-05-08 Tom Tromey <tom@tromey.com>
10805
10806 * breakpoint.c (breakpoint_objfile_key): Change type.
10807 (get_breakpoint_objfile_data): Update.
10808 (free_breakpoint_objfile_data): Remove.
10809 (_initialize_breakpoint): Update.
10810
89fb8848
TT
108112019-05-08 Tom Tromey <tom@tromey.com>
10812
10813 * linux-tdep.c (struct linux_info): Add initializers.
10814 (linux_inferior_data): Move. Change type.
10815 (invalidate_linux_cache_inf): Update.
10816 (linux_inferior_data_cleanup): Remove.
10817 (get_linux_inferior_data, _initialize_linux_tdep): Update.
10818
e9b89e2d
TT
108192019-05-08 Tom Tromey <tom@tromey.com>
10820
10821 * auxv.c (auxv_inferior_data): Move. Change type.
10822 (auxv_inferior_data_cleanup): Remove.
10823 (invalidate_auxv_cache_inf): Rewrite.
10824 (get_auxv_inferior_data, _initialize_auxv): Update.
10825
8c42777c
TT
108262019-05-08 Tom Tromey <tom@tromey.com>
10827
10828 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
10829 (symfile_debug_objfile_data_key): Change type.
10830 (symfile_debug_installed, debug_qf_has_symbols)
10831 (debug_qf_find_last_source_symtab)
10832 (debug_qf_forget_cached_source_info)
10833 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
10834 (debug_qf_print_stats, debug_qf_dump)
10835 (debug_qf_expand_symtabs_for_function)
10836 (debug_qf_expand_all_symtabs)
10837 (debug_qf_expand_symtabs_with_fullname)
10838 (debug_qf_map_matching_symbols)
10839 (debug_qf_expand_symtabs_matching)
10840 (debug_qf_find_pc_sect_compunit_symtab)
10841 (debug_qf_map_symbol_filenames)
10842 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
10843 (debug_sym_new_init, debug_sym_init, debug_sym_read)
10844 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
10845 (debug_sym_read_linetable, debug_sym_relocate): Update.
10846 (symfile_debug_free_objfile): Remove.
10847 (install_symfile_debug_logging, _initialize_symfile_debug):
10848 Update.
10849
5bfd760d
TT
108502019-05-08 Tom Tromey <tom@tromey.com>
10851
10852 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
10853 allocate_on_obstack.
10854 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
10855 (get_dwarf2_per_objfile): Update.
10856 (set_dwarf2_per_objfile): Remove.
10857 (dwarf2_has_info, dwarf2_get_section_info): Update.
10858 (dwarf2_free_objfile): Remove.
10859 (_initialize_dwarf2_read): Update.
10860
e85e19b4
TT
108612019-05-08 Tom Tromey <tom@tromey.com>
10862
10863 * auto-load.c (struct auto_load_pspace_info): Add destructor and
10864 initializers.
10865 <unsupported_script_warning_printed,
10866 script_not_found_warning_printed>: Now bool.
10867 (auto_load_pspace_data): Change type.
10868 (~auto_load_pspace_info): Rename from
10869 auto_load_pspace_data_cleanup.
10870 (get_auto_load_pspace_data, init_loaded_scripts_info)
10871 (clear_section_scripts, maybe_print_unsupported_script_warning)
10872 (maybe_print_script_not_found_warning, _initialize_auto_load):
10873 Update.
10874
f6aa7436
TT
108752019-05-08 Tom Tromey <tom@tromey.com>
10876
10877 * objfiles.c (objfile_pspace_info): Add destructor and
10878 initializers.
10879 (objfiles_pspace_data): Change type.
10880 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
10881 (get_objfile_pspace_data): Update.
10882 (objfiles_bfd_data): Change type.
10883 (get_objfile_bfd_data): Update.
10884 (objfile_bfd_data_free, _initialize_objfiles): Remove.
10885
6ae614f6
TT
108862019-05-08 Tom Tromey <tom@tromey.com>
10887
10888 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
10889 Change type.
10890 (get_catch_syscall_inferior_data): Update.
10891 (catch_syscall_inferior_data_cleanup): Remove.
10892 (_initialize_break_catch_syscall): Update.
10893
6509b8eb
TT
108942019-05-08 Tom Tromey <tom@tromey.com>
10895
10896 * inflow.c (struct terminal_info): Add destructor and
10897 initializers.
10898 (inflow_inferior_data): Change type.
10899 (~terminal_info): Rename from inflow_inferior_data_cleanup.
10900 (get_inflow_inferior_data, inflow_inferior_exit)
10901 (swap_terminal_info, _initialize_inflow): Update.
10902
35632941
TT
109032019-05-08 Tom Tromey <tom@tromey.com>
10904
10905 * target-dcache.c (target_dcache_cleanup): Remove.
10906 (target_dcache_aspace_key): Change type.
10907 (target_dcache_init_p, target_dcache_invalidate)
10908 (target_dcache_get, target_dcache_get_or_init)
10909 (_initialize_target_dcache): Update.
10910 * dcache.h (struct dcache_deleter): New.
10911
3017b94d
TT
109122019-05-08 Tom Tromey <tom@tromey.com>
10913
10914 * symtab.c (struct symbol_cache): Add destructor and
10915 initializers.
10916 (symbol_cache_key): Move. Change type.
10917 (make_symbol_cache, free_symbol_cache): Remove.
10918 (get_symbol_cache): Update.
10919 (symbol_cache_cleanup): Remove.
10920 (ALL_PSPACES, symbol_cache_flush)
10921 (maintenance_print_symbol_cache)
10922 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
10923 Update.
10924
a32ad8c5
TT
109252019-05-08 Tom Tromey <tom@tromey.com>
10926
10927 * symtab.c (struct main_info): Add destructor and initializers.
10928 (main_progspace_key): Move. Change type.
10929 (get_main_info): Update.
10930 (main_info_cleanup): Remove.
10931 (_initialize_symtab): Update.
10932
5f6e90a0
TT
109332019-05-08 Tom Tromey <tom@tromey.com>
10934
10935 * registry.h (DECLARE_REGISTRY): Define the _key class.
10936
1bd0c6e4
AB
109372019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
10938
10939 * NEWS: Merge two 'New commands' sections.
10940
2228ef77
XR
109412019-05-08 Joel Brobecker <brobecker@adacore.com>
10942
10943 * ada-valprint.c (ada_val_print_gnat_array): Remove language
10944 parameter and use Ada language definition instead.
10945 (ada_val_print_ptr): Remove unused language parameter.
10946 (ada_val_print_num): Remove language parameter and use Ada language
10947 definition instead.
10948 (ada_val_print_enum, ada_val_print_flt): Remove unused language
10949 parameter.
10950 (ada_val_print_struct_union, ada_val_print_ref): Remove language
10951 parameter and use Ada language definition instead.
10952 (ada_val_print_1): Update all ada_val_print_xxx calls.
10953 Remove language parameter.
10954 (ada_val_print): Update ada_val_print_1 call.
10955
60fcc1c3
TT
109562019-05-08 Tom Tromey <tromey@adacore.com>
10957
10958 * remote.c (remote_hw_watchpoint_limit)
10959 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
10960 Now static.
10961
ed2b7c17
TT
109622019-05-08 Tom Tromey <tromey@adacore.com>
10963
10964 * maint.c (_initialize_maint_cmds): Move initialization code to
10965 remote.c.
10966 (watchdog, show_watchdog): Move to remote.c.
10967 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
10968 "watchdog" static.
10969 (_initialize_remote): Move initialization code from maint.c.
10970 * defs.h (watchdog): Don't declare.
10971
b0be6c91
TT
109722019-05-08 Tom Tromey <tromey@adacore.com>
10973
10974 * tui/tui-interp.c: Include main.h.
10975 * interps.c: Include main.h.
10976 * main.h (interpreter_p): Declare.
10977 * defs.h (interpreter_p): Don't declare.
10978
587ee17b
TT
109792019-05-08 Tom Tromey <tromey@adacore.com>
10980
10981 * dwarf2loc.c: Include dwarf2read.h.
10982 * defs.h (read_unsigned_leb128): Don't declare.
10983 * dwarf2read.h (read_unsigned_leb128): Declare.
10984
ca1df239
TT
109852019-05-08 Tom Tromey <tromey@adacore.com>
10986
10987 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
10988 method.
10989
99f20f08
TT
109902019-05-08 Tom Tromey <tromey@adacore.com>
10991
10992 * utils.c (fputs_maybe_filtered): Reset style after paging, even
10993 when no wrap column is set.
10994
80e55b13
TT
109952019-05-08 Tom Tromey <tromey@adacore.com>
10996
10997 * c-lang.c (c_get_string): Handle non-C-style arrays.
10998
9d3421af
TT
109992019-05-08 Tom Tromey <tromey@adacore.com>
11000
11001 * typeprint.c (print_offset_data::update): Print the bit offset,
11002 not the number of bits remaining.
11003
844333e2
TT
110042019-05-08 Tom Tromey <tromey@adacore.com>
11005
11006 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
11007 padding at end of comment.
11008
988915ee
TT
110092019-05-08 Tom Tromey <tromey@adacore.com>
11010
11011 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
11012 Compare main types.
11013
26bfd823
TT
110142019-05-06 Tom Tromey <tom@tromey.com>
11015
11016 * common/scoped_mmap.c: Include common-defs.h.
11017 * common/scoped_mmap.h: Don't include config.h.
11018
89055eaa
TT
110192019-05-04 Tom Tromey <tom@tromey.com>
11020
11021 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
11022 (struct aarch64_call_info): Add initializers.
11023 <si>: Now a std::vector.
11024 (pass_on_stack, aarch64_push_dummy_call): Update.
11025
5da01df5
TT
110262019-05-04 Simon Marchi <simon.marchi@efficios.com>
11027 Tom Tromey <tom@tromey.com>
11028
11029 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
11030 (ppc_threads): Now a std::vector. Now static.
11031 (hwdebug_find_thread_points_by_tid)
11032 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
11033 Update.
11034
fbdf05a1
TT
110352019-05-04 Tom Tromey <tom@tromey.com>
11036
11037 * arc-tdep.c (arc_tdesc_init): Return bool.
11038
06d16ec9
TT
110392019-05-04 Tom Tromey <tom@tromey.com>
11040
11041 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
11042 Use gdb_assert_not_reached.
11043
9c056022
TT
110442019-05-04 Tom Tromey <tom@tromey.com>
11045
11046 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
11047 "false".
11048
fa9c2a59
TT
110492019-05-04 Tom Tromey <tom@tromey.com>
11050
11051 * arc-tdep.c (arc_tdesc_init): Use bool.
11052
e2eb806a
TT
110532019-05-04 Tom Tromey <tom@tromey.com>
11054
11055 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
11056
6fe87677
TT
110572019-05-04 Tom Tromey <tom@tromey.com>
11058
11059 * cli/cli-cmds.c (valid_command_p): Return bool.
11060
7f008c9e
TT
110612019-05-04 Tom Tromey <tom@tromey.com>
11062
11063 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
11064 * command.h (valid_user_defined_cmd_name_p): Channge return type.
11065
b6484282
RT
110662019-05-04 Raul Tambre <raul@tambre.ee>
11067
11068 * python/lib/gdb/prompt.py (_ExtendedPrompt)
11069 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
11070 operator for comparison.
11071
af97b416
TT
110722019-05-04 Tom Tromey <tom@tromey.com>
11073
11074 * psymtab.c (psymbol_name_matches, match_partial_symbol)
11075 (lookup_partial_symbol, print_partial_symbols)
11076 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
11077 (psymbol_compare): Update.
11078 (add_psymbol_to_bcache): Clear the entire psymbol.
11079 (maintenance_check_psymtabs): Update.
11080 * psympriv.h (struct partial_symbol): Don't derive from
11081 general_symbol_info.
11082 <obj_section, unrelocated_address, address,
11083 set_unrelocated_address>: Update.
11084 <ginfo>: New member.
11085 * dwarf-index-write.c (write_psymbols, debug_names::insert)
11086 (debug_names::write_psymbols): Update.
11087
9d6d4be8
TV
110882019-05-04 Tom de Vries <tdevries@suse.de>
11089
11090 * contrib/cc-with-tweaks.sh: Support -n arg.
11091
66452beb
PW
110922019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11093
11094 * corelow.c (core_target::detach): Ensure frame cache and
11095 register caches are cleared.
11096 inferior.c (exit_inferior_1): Likewise.
11097
bde09ab7
TT
110982019-05-03 Sandra Loosemore <sandra@codesourcery.com>
11099 Tom Tromey <tom@tromey.com>
11100
11101 * dictionary.c (collate_pending_symbols_by_language): Remove
11102 "struct" from foreach.
11103 * symtab.c (lookup_global_symbol_from_objfile)
11104 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
11105 foreach.
11106 * ser-tcp.c (net_open): Remove "struct" from foreach.
11107 * objfiles.c (objfile_relocate, objfile_rebase)
11108 (objfile_has_symbols): Remove "struct" from foreach.
11109 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
11110 from foreach.
11111 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
11112 foreach.
11113 * darwin-nat.c (thread_info_from_private_thread_info): Remove
11114 "struct" from foreach.
11115 * ada-lang.c (create_excep_cond_exprs)
11116 (ada_exception_catchpoint_cond_string): Remove "struct" from
11117 foreach.
11118
222a8d25
TT
111192019-05-03 Tom Tromey <tromey@adacore.com>
11120
11121 * ada-exp.y (convert_char_literal): Check suffix of each
11122 enumerator.
11123
fcd60b84
DP
111242019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
11125
11126 PR ada/21406:
11127 * ada-exp.y (yywrap): Don't define.
11128 * ada-lex.l (%option): Add noyywrap
11129 (yywrap): Remove.
11130
5f2459c2
EZ
111312019-05-03 Eli Zaretskii <eliz@gnu.org>
11132
353ea2d1
EZ
11133 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
11134 _WIN32_WINNT to the XP level, unless already defined to a higher
11135 level.
11136
11137 * unittests/parse-connection-spec-selftests.c:
11138 * ser-tcp.c:
11139 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
11140 override.
11141
5f2459c2
EZ
11142 * symfile.c (find_separate_debug_file): Remove colon from the
11143 drive spec of DOS/Windows file names of the target, so that the
11144 file name produced from DEBUGDIR and the target's directory will
11145 be valid on DOS/Windows systems.
11146
80062eb9
AB
111472019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
11148
11149 * rust-lang.c (val_print_struct): Handle printing structures
11150 containing strings.
11151
b8c05e85
TT
111522019-05-02 Tom Tromey <tromey@adacore.com>
11153
11154 * valarith.c (_initialize_valarith): Remove.
11155
4504bbde
TT
111562019-05-01 Tom Tromey <tromey@adacore.com>
11157
11158 * ada-lang.c (ada_value_primitive_field): Treat more fields as
11159 bitfields.
11160
d48e62f4
TT
111612019-05-01 Tom Tromey <tromey@adacore.com>
11162
11163 * ada-lang.c (ada_value_assign): Correctly compute starting offset
11164 for big-endian copies.
11165
15f18d14
AT
111662019-04-30 Ali Tamur <tamur@google.com>
11167 * gdb/dwarf2read.c (read_3_bytes): New declaration.
11168 (read_attribute_value): Added DW_FORM_strx1-4 cases.
11169 (read_3_bytes): New function.
11170
ab4ee614
JB
111712019-04-30 Joel Brobecker <brobecker@adacore.com>
11172
11173 * windows-nat.c (main_thread_id): Delete.
11174 (handle_output_debug_string): Replace main_thread_id by
11175 current_event.dwThreadId.
11176 (fake_create_process): Likewise.
11177 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
11178 Do not set main_thread_id.
11179 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
11180 current_event.dwThreadId.
11181 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
11182
8ed5b76e
JB
111832019-04-30 Joel Brobecker <brobecker@adacore.com>
11184
11185 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
11186 Use current_event.dwThreadId instead of main_thread_id.
11187
2ff0a947
TT
111882019-04-30 Tom Tromey <tromey@adacore.com>
11189
11190 * ada-lang.c (ada_lookup_simple_minsyms): New function.
11191 (create_excep_cond_exprs): Iterate over program spaces.
11192 (ada_exception_catchpoint_cond_string): Examine all minimal
11193 symbols for exception types.
11194
a776957c
TT
111952019-04-30 Tom Tromey <tromey@adacore.com>
11196
11197 PR c++/24470:
11198 * dwarf2read.c (process_structure_scope): Handle case where type
11199 has template parameters but no symbol was created.
11200
bc68014d
AB
112012019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
11202 Chris January <chris.january@arm.com>
11203
11204 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
11205 qualifier.
11206 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
11207
f1fdc960
AB
112082019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
11209
11210 * f-typeprint.c (f_print_type): Update rules for printing
11211 whitespace.
11212 (f_type_print_varspec_suffix): Likewise.
11213
bf7a4de1
AB
112142019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
11215 Chris January <chris.january@arm.com>
11216
11217 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
11218 function arguments.
11219
bbe75b9d
AB
112202019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
11221
11222 * f-lang.c (build_fortran_types): Change name of void type to
11223 lower case.
11224 * f-typeprint.c (f_type_print_base): Print the name of the void
11225 type, rather than a fixed string.
11226 * f-valprint.c (f_decorations): Use lower case void string.
11227
1db455a7
AB
112282019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
11229 Chris January <chris.january@arm.com>
11230
11231 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
11232 types for Fortran.
11233
b6d03bb2
AB
112342019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
11235 Chris January <chris.january@arm.com>
11236 David Lecomber <david.lecomber@arm.com>
11237
11238 * f-exp.y (BINOP_INTRINSIC): New token.
11239 (exp): New parser rule handling BINOP_INTRINSIC.
11240 (f77_keywords): Add new builtin procedures.
11241 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
11242 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
11243 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
11244 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
11245 (print_unop_subexp_f): New function.
11246 (print_binop_subexp_f): New function.
11247 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
11248 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
11249 (dump_subexp_body_f): Likewise.
11250 (operator_check_f): Likewise.
11251 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
11252 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
11253
83228e93
AB
112542019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
11255
11256 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
11257 UNOP_KIND.
11258 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
11259 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
11260 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
11261 (operator_length_f): New fuction.
11262 (print_subexp_f): New function.
11263 (op_name_f): New function.
11264 (dump_subexp_body_f): New function.
11265 (operator_check_f): New function.
11266 (exp_descriptor_f): Replace standard expression handling functions
11267 with new functions.
11268 * gdb/fortran-operator.def: New file.
11269 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
11270 * gdb/std-operator.def: Remove UNOP_KIND.
11271
6fdcd7cc
AB
112722019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
11273
11274 * std-operator.def: Remove unbalanced, stray double quote
11275 character.
11276
2e62ab40
AB
112772019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
11278 Chris January <chris.january@arm.com>
11279 Daniel Everett <daniel.everett@arm.com>
11280 Nick Forrington <nick.forrington@arm.com>
11281 Richard Bunt <richard.bunt@arm.com>
11282
11283 * cp-valprint.c (cp_print_value_fields): Allow an additional level
11284 of depth when printing anonymous structs or unions.
11285 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
11286 Don't print either the top-level value, or the children if the
11287 max-depth is exceeded.
11288 (ppscm_print_children): When printing the key of a map, allow one
11289 extra level of depth.
11290 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
11291 print either the top-level value, or the children if the max-depth
11292 is exceeded.
11293 (print_children): When printing the key of a map, allow one extra
11294 level of depth.
11295 * python/py-value.c (valpy_format_string): Add max_depth keyword.
11296 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
11297 (user_print_options): Initialise max_depth field.
11298 (val_print_scalar_or_string_type_p): New function.
11299 (val_print): Check to see if the max depth has been reached.
11300 (val_print_check_max_depth): Define new function.
11301 (show_print_max_depth): New function.
11302 (_initialize_valprint): Add 'print max-depth' option.
11303 * valprint.h (struct value_print_options) <max_depth>: New field.
11304 (val_print_check_max_depth): Declare new function.
11305 * NEWS: Document new feature.
11306
4be290b2
AB
113072019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
11308
11309 * ada-lang.c (ada_language_defn): Initialise new field.
11310 * c-lang.c (c_is_string_type_p): New function.
11311 (c_language_defn): Initialise new field.
11312 (cplus_language_defn): Initialise new field.
11313 (asm_language_defn): Initialise new field.
11314 (minimal_language_defn): Initialise new field.
11315 * c-lang.h (c_is_string_type_p): Declare new function.
11316 * d-lang.c (d_language_defn): Initialise new field.
11317 * f-lang.c (f_is_string_type_p): New function.
11318 (f_language_defn): Initialise new field.
11319 * go-lang.c (go_is_string_type_p): New function.
11320 (go_language_defn): Initialise new field.
11321 * language.c (default_is_string_type_p): New function.
11322 (unknown_language_defn): Initialise new field.
11323 (auto_language_defn): Initialise new field.
11324 * language.h (struct language_defn) <la_is_string_type_p>: New
11325 member variable.
11326 (default_is_string_type_p): Declare new function.
11327 * m2-lang.c (m2_language_defn): Initialise new field.
11328 * objc-lang.c (objc_language_defn): Initialise new field.
11329 * opencl-lang.c (opencl_language_defn): Initialise new field.
11330 * p-lang.c (pascal_is_string_type_p): New function.
11331 (pascal_language_defn): Initialise new field.
11332 * rust-lang.c (rust_is_string_type_p): New function.
11333 (rust_language_defn): Initialise new field.
11334
721b08c6
AB
113352019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
11336
11337 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
11338 New field.
11339 * ada-lang.c (ada_language_defn): Initialise new field.
11340 * c-lang.c (c_language_defn): Likewise.
11341 (cplus_language_defn): Likewise.
11342 (asm_language_defn): Likewise.
11343 (minimal_language_defn): Likewise.
11344 * d-lang.c (d_language_defn): Likewise.
11345 * f-lang.c (f_language_defn): Likewise.
11346 * go-lang.c (go_language_defn): Likewise.
11347 * language.c (unknown_language_defn): Likewise.
11348 (auto_language_defn): Likewise.
11349 * m2-lang.c (m2_language_defn): Likewise.
11350 * objc-lang.c (objc_language_defn): Likewise.
11351 * opencl-lang.c (opencl_language_defn): Likewise.
11352 * p-lang.c (pascal_language_defn): Likewise.
11353 * rust-lang.c (rust_language_defn): Likewise.
11354
fc913e53
AB
113552019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
11356
11357 * ada-lang.c (ada_is_character_type): Change return type to bool.
11358 (ada_is_string_type): Likewise.
11359 * ada-lang.h (ada_is_character_type): Update declaration
11360 (ada_is_string_type): Likewise.
11361
fa731fa0
PW
113622019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11363
11364 Support style in 'frame|thread apply'
11365
11366 * gdbcmd.h (execute_command_to_string): New term_out parameter.
11367 * record.c (record_start, record_stop): Update callers of
11368 execute_command_to_string with false.
11369 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
11370 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
11371 methods.
11372 (class string_file): New constructor with term_out parameter.
11373 Override methods term_out and can_emit_style_escape. New member
11374 term_out.
11375 (class stdio_file): Override can_emit_style_escape.
11376 (class tee_file): Override term_out and can_emit_style_escape.
11377 * utils.h (can_emit_style_escape): Remove.
11378 * utils.c (can_emit_style_escape): Likewise.
11379 Update all callers of can_emit_style_escape (SOMESTREAM) to
11380 SOMESTREAM->can_emit_style_escape.
11381 * source-cache.c (source_cache::get_source_lines): Likewise.
11382 * stack.c (frame_apply_command_count): Call execute_command_to_string
11383 passing the term_out characteristic of the current gdb_stdout.
11384 * thread.c (thr_try_catch_cmd): Likewise.
11385 * top.c (execute_command_to_string): pass term_out parameter
11386 to construct the string_file for the command output.
11387 * ui-file.c (term_cli_styling): New function (most code moved
11388 from utils.c can_emit_style_escape).
11389 (string_file::string_file, string_file::can_emit_style_escape,
11390 stdio_file::can_emit_style_escape, tee_file::term_out,
11391 tee_file::can_emit_style_escape): New functions.
11392
136afab8
PW
113932019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11394
11395 * NEWS: Mention the new set|show may-call-functions.
11396 * infcall.c (may_call_functions_p): New variable.
11397 (show_may_call_functions_p): New function.
11398 (call_function_by_hand_dummy): Throws an error if not
11399 may-call-functions.
11400 (_initialize_infcall): Call add_setshow_boolean_cmd for
11401 may-call-functions.
11402
725cbb63
KS
114032019-04-25 Keith Seitz <keiths@redhat.com>
11404
11405 PR c++/24367
11406 * cp-support.c (inspect_type): Don't attempt substitutions
11407 of symbol with the same name.
11408
3d1cbb78
TT
114092019-04-25 Tom Tromey <tromey@adacore.com>
11410
11411 PR gdb/24475:
11412 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
11413 static.
11414
94aeb44b
TT
114152019-04-25 Tom Tromey <tromey@adacore.com>
11416
11417 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
11418 rvalue reference.
11419 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
11420 (gdb_xml_parser::parse): Use std::move.
11421 * python/python-internal.h (gdbpy_convert_exception): Take a const
11422 reference.
11423 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
11424 std::move.
11425 * python/py-utils.c (gdbpy_convert_exception): Take a const
11426 reference.
11427 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
11428 Use std::move.
11429 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
11430 Use std::move.
11431 * mi/mi-main.c (mi_print_exception): Take a const reference.
11432 * main.c (handle_command_errors): Take a const reference.
11433 * linespec.c (parse_linespec): Use std::move.
11434 * infcall.c (run_inferior_call): Use std::move.
11435 (call_function_by_hand_dummy): Use std::move.
11436 * exec.c (try_open_exec_file): Use std::move.
11437 * exceptions.h (exception_print, exception_fprintf)
11438 (exception_print_same): Update.
11439 * exceptions.c (print_exception, exception_print)
11440 (exception_fprintf, exception_print_same): Change parameters to
11441 const reference.
11442 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
11443 * common/new-op.c: Use std::move.
11444 * common/common-exceptions.h (struct gdb_exception): Add move
11445 constructor.
11446 (struct gdb_exception_error, struct gdb_exception_quit, struct
11447 gdb_quit_bad_alloc): Change constructor to move constructor.
11448 (throw_exception): Change parameter to rvalue reference.
11449 * common/common-exceptions.c (throw_exception): Take rvalue
11450 reference.
11451 * cli/cli-interp.c (safe_execute_command): Use std::move.
11452 * breakpoint.c (insert_bp_location, location_to_sals): Use
11453 std::move.
11454
680d7fd5
TT
114552019-04-25 Tom Tromey <tromey@adacore.com>
11456
11457 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
11458 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
11459 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
11460 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
11461 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
11462 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
11463 guile/scm-value.c: Use unpack.
11464 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
11465 gdbscm_gdb_exception.
11466 (gdbscm_throw_gdb_exception): Likewise.
11467 (struct gdbscm_gdb_exception): New.
11468 (unpack): New function.
11469 (gdbscm_wrap): Use unpack.
11470
c6fdd8b2
TT
114712019-04-25 Tom Tromey <tromey@adacore.com>
11472
11473 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
11474 (gdb_rl_callback_handler): Use std::move.
11475 * common/common-exceptions.h (struct gdb_exception): Add move
11476 assignment operator.
11477 (throw_exception_sjlj): Change "exception" to const reference.
11478 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
11479 (throw_exception_sjlj): Change "exception" to const reference.
11480
cc06b668
TT
114812019-04-25 Tom Tromey <tromey@adacore.com>
11482
11483 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
11484 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
11485 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
11486 Update.
11487 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
11488 Update.
11489 * mi/mi-interp.c (mi_interp::exec): Update.
11490 * linespec.c (parse_linespec): Update.
11491 * infcall.c (run_inferior_call): Update.
11492 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
11493 * guile/scm-symbol.c (gdbscm_lookup_symbol)
11494 (gdbscm_lookup_global_symbol): Update.
11495 * guile/scm-param.c (gdbscm_parameter_value): Update.
11496 * guile/scm-frame.c (gdbscm_frame_read_register)
11497 (gdbscm_frame_read_var): Update.
11498 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
11499 * exec.c (try_open_exec_file): Update.
11500 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
11501 (gdb_rl_callback_handler): Update.
11502 * common/common-exceptions.h (exception_none): Don't declare.
11503 * common/common-exceptions.c (exception_none): Don't define.
11504 (struct catcher) <exception>: Update.
11505 * cli/cli-interp.c (safe_execute_command): Update.
11506 * breakpoint.c (insert_bp_location, location_to_sals): Update.
11507
cf532bd1
AT
115082019-04-25 Ali Tamur <tamur@google.com>
11509
11510 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
11511 (read_attribute_value): Likewise.
11512 (dwarf2_read_addr_index): Update comment.
11513 (read_str_index): Add DW_FORM_strx.
11514 (dwarf2_string_attr): Likewise.
11515 (dwarf2_const_value_attr): Likewise.
11516 (dump_die_shallow): Likewise.
11517 (dwarf2_fetch_constant_bytes): Likewise.
11518 (skip_form_bytes): Likewise.
11519 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
11520
82433e3e
SDJ
115212019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
11522
11523 PR corefiles/11608
11524 PR corefiles/18187
11525 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
11526 OFFSET. Verify if current mapping contains an ELF header.
11527 (linux_find_memory_regions_full): Adjust call to
11528 dump_mapping_p.
11529
723adb65
SL
115302019-04-25 Sandra Loosemore <sandra@codesourcery.com>
11531 Kang Li <kanglictf@gmail.com>
11532
11533 PR gdb/21600
11534
11535 * dwarf2-frame.c (read_initial_length): Be consistent about using
11536 unsigned representation of length.
11537 (decode_frame_entry_1): Likewise. Check for wraparound of
11538 end pointer as well as buffer overflow.
11539
596179f7
SDJ
115402019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
11541
11542 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
11543 "vq".
11544
a59240a4
TT
115452019-04-24 Tom Tromey <tromey@adacore.com>
11546
11547 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
11548
f872fdbb
AB
115492019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11550
11551 * s12z-tdep.c (s12z_unwind_pc): Delete.
11552 (s12z_unwind_sp): Delete.
11553 (s12z_gdbarch_init): Don't register deleted functions with
11554 gdbarch.
11555
b614e6f3
AB
115562019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11557
11558 * rl78-tdep.c (rl78_unwind_sp): Delete.
11559 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
11560
14faed38
AB
115612019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11562
11563 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
11564 (xstormy16_unwind_pc): Delete.
11565 (xstormy16_dummy_id): Delete.
11566 (xstormy16_gdbarch_init): Don't register deleted functions with
11567 gdbarch.
11568
541aad8a
AB
115692019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11570
11571 * vax-tdep.c (vax_unwind_pc): Delete.
11572 (vax_gdbarch_init): Don't register deleted function with gdbarch.
11573
29222070
AB
115742019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11575
11576 * v850-tdep.c (v850_unwind_sp): Delete.
11577 (v850_unwind_pc): Delete.
11578 (v850_dummy_id): Delete.
11579 (v850_gdbarch_init): Don't register deleted functions with
11580 gdbarch.
11581
0f534d76
AB
115822019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11583
11584 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
11585 (tilegx_unwind_pc): Delete.
11586 (tilegx_unwind_dummy_id): Delete.
11587 (tilegx_gdbarch_init): Don't register deleted functions with
11588 gdbarch.
11589
1ba7b7f9
AB
115902019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11591
11592 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
11593 (tic6x_dummy_id): Delete.
11594 (tic6x_gdbarch_init): Don't register deleted functions with
11595 gdbarch.
11596
d31f262c
AB
115972019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11598
11599 * sparc-tdep.c (sparc_unwind_pc): Delete.
11600 (sparc32_gdbarch_init): Don't register deleted function with
11601 gdbarch.
11602
6d14d64d
AB
116032019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11604
11605 * sh-tdep.c (sh_unwind_sp): Delete.
11606 (sh_unwind_pc): Delete.
11607 (sh_dummy_id): Delete.
11608 (sh_gdbarch_init): Don't register deleted functions with
11609 gdbarch.
11610
a40dde9d
AB
116112019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11612
11613 * score-tdep.c (score_unwind_sp): Delete.
11614 (score_unwind_pc): Delete.
11615 (score_dummy_id): Delete.
11616 (score_gdbarch_init): Don't register deleted functions with
11617 gdbarch.
11618
47c47d69
AB
116192019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11620
11621 * rx-tdep.c (rx_unwind_pc): Delete.
11622 (rx_unwind_sp): Delete.
11623 (rx_dummy_id): Delete.
11624 (rx_gdbarch_init): Don't register deleted functions with
11625 gdbarch. Update comment.
11626
833a4480
AB
116272019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11628
11629 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
11630 (rs6000_dummy_id): Delete.
11631 (rs6000_gdbarch_init): Don't register deleted functions with
11632 gdbarch.
11633
3f2cef49
AB
116342019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11635
11636 * or1k-tdep.c (or1k_dummy_id): Delete.
11637 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
11638
96acf884
AB
116392019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11640
11641 * nios2-tdep.c (nios2_dummy_id): Delete.
11642 (nios2_unwind_sp): Delete.
11643 (nios2_gdbarch_init): Don't register deleted functions with
11644 gdbarch.
11645
ca0ab0aa
AB
116462019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11647
11648 * nds32-tdep.c (nds32_dummy_id): Delete.
11649 (nds32_unwind_pc): Delete.
11650 (nds32_unwind_sp): Delete.
11651 (nds32_gdbarch_init): Don't register deleted functions with
11652 gdbarch.
11653
c8259044
AB
116542019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11655
11656 * msp430-tdep.c (msp430_unwind_pc): Delete.
11657 (msp430_unwind_sp): Delete.
11658 (msp430_dummy_id): Delete.
11659 (msp430_gdbarch_init): Don't register deleted functions with
11660 gdbarch.
11661
27f113c8
AB
116622019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11663
11664 * moxie-tdep.c (moxie_unwind_sp): Delete.
11665 (moxie_unwind_pc): Delete.
11666 (moxie_dummy_id): Delete.
11667 (moxie_gdbarch_init): Don't register deleted functions with
11668 gdbarch.
11669
aee6c3cd
AB
116702019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11671
11672 * mn10300-tdep.c (mn10300_dummy_id): Delete.
11673 (mn10300_unwind_pc): Delete.
11674 (mn10300_unwind_sp): Delete.
11675 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
11676 mn10300_unwind_sp.
11677 (mn10300_frame_unwind_init): Don't register deleted functions with
11678 gdbarch.
11679
8e2b5aea
AB
116802019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11681
11682 * mep-tdep.c (mep_unwind_pc): Delete.
11683 (mep_unwind_sp): Delete.
11684 (mep_dummy_id): Delete.
11685 (mep_gdbarch_init): Don't register deleted functions with
11686 gdbarch.
11687
43cf3ede
AB
116882019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11689
11690 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
11691 (m68hc11_unwind_sp): Delete.
11692 (m68hc11_gdbarch_init): Don't register deleted functions with
11693 gdbarch.
11694
5e79b7bb
AB
116952019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11696
11697 * m32r-tdep.c (m32r_unwind_sp): Delete.
11698 (m32r_unwind_pc): Delete.
11699 (m32r_dummy_id): Delete.
11700 (m32r_gdbarch_init): Don't register deleted functions with
11701 gdbarch.
11702
89b268d8
AB
117032019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11704
11705 * m32c-tdep.c (m32c_unwind_pc): Delete.
11706 (m32c_unwind_sp): Delete.
11707 (m32c_dummy_id): Delete.
11708 (m32c_gdbarch_init): Don't register deleted functions with
11709 gdbarch.
11710
946c28d2
AB
117112019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11712
11713 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
11714 (lm32_unwind_pc): Delete.
11715 (lm32_dummy_id): Delete.
11716 (lm32_gdbarch_init): Don't register deleted functions with
11717 gdbarch.
11718
bf12844a
AB
117192019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11720
11721 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
11722 (iq2000_unwind_pc): Delete.
11723 (iq2000_dummy_id): Delete.
11724 (iq2000_gdbarch_init): Don't register deleted functions with
11725 gdbarch.
11726
ecbc06d2
AB
117272019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11728
11729 * nds32-tdep.c (nds32_type_align): Delete.
11730 (nds32_push_dummy_call): Use type_align instead.
11731
030197b4
AB
117322019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11733
11734 * arm-tdep.c (arm_type_align): Only handle vector override case.
11735 (arm_push_dummy_call): Use type_align.
11736 (arm_gdbarch_init): Register arm_type_align gdbarch function.
11737
b907456c
AB
117382019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11739
11740 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
11741 case.
11742 (pass_on_stack): Use type_align.
11743 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
11744 function.
11745
9e97ba43
TT
117462019-04-23 Tom Tromey <tromey@adacore.com>
11747
11748 * dwarf2read.c (line_header::file_name_at): Remove unused
11749 overload.
11750
6892f601
TV
117512019-04-23 Tom de Vries <tdevries@suse.de>
11752
11753 PR gdb/24438
11754 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
11755 invocation.
11756
336d760d
AT
11757
117582019-03-27 Ali Tamur <tamur@google.com>
11759
11760 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
11761 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
11762 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
11763 (dwarf_expr_context::get_addr_index): Likewise
11764 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
11765 (symbol_needs_eval_context::get_addr_index): Likewise
11766 (disassemble_dwarf_expression): Add DW_OP_addrx
11767 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
11768 (read_cutu_die_from_dwo): Update comment
11769 (skip_one_die): Add DW_FORM_addrx
11770 (read_attribute_value): Likewise
11771 (var_decode_location): Add DW_OP_addrx
11772 (dwarf2_const_value_attr): Add DW_FORM_addrx
11773 (dump_die_shallow): Likewise
11774 (dwarf2_fetch_constant_bytes): Likewise
11775 (decode_locdesc): Add DW_OP_addrx
11776 (skip_form_bytes): Add DW_FORM_addrx
11777
ad9d13f8
AT
117782019-04-22 Ali Tamur <tamur@google.com>
11779
11780 * MAINTAINERS (Write After Approval): Add self.
11781
d70cc3ba
SM
117822019-04-22 Simon Marchi <simon.marchi@efficios.com>
11783
11784 * solib-svr4.c (get_svr4_info): Add pspace parameter.
11785 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
11786 (open_symbol_file_object): Likewise.
11787 (svr4_default_sos): Add info parameter.
11788 (svr4_read_so_list): Likewise.
11789 (svr4_current_sos_direct): Adjust functions calls to pass down
11790 info.
11791 (svr4_current_sos_1): Add info parameter.
11792 (svr4_current_sos): Call get_svr4_info, pass info down to
11793 svr4_current_sos_1.
11794 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
11795 get_svr4_info.
11796 (svr4_in_dynsym_resolve_code): Pass current_program_space to
11797 get_svr4_info.
11798 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
11799 to get_svr4_info.
11800 (probes_table_remove_objfile_probes): Likewise.
11801 (register_solib_event_probe): Add info parameter.
11802 (solist_update_incremental): Pass info parameter down to
11803 svr4_read_so_list.
11804 (disable_probes_interface): Add info parameter.
11805 (svr4_handle_solib_event): Pass current_program_space to
11806 get_svr4_info. Adjust disable_probes_interface cleanup.
11807 (svr4_create_probe_breakpoints): Add info parameter, pass it
11808 down to register_solib_event_probe.
11809 (svr4_create_solib_event_breakpoints): Add info parameter,
11810 pass it down to svr4_create_probe_breakpoints.
11811 (enable_break): Pass info down to
11812 svr4_create_solib_event_breakpoints.
11813 (svr4_solib_create_inferior_hook): Pass current_program_space to
11814 get_svr4_info.
11815 (svr4_clear_solib): Likewise.
11816
7905fc35
PA
118172019-04-22 Pedro Alves <palves@redhat.com>
11818
11819 * solib-svr4.c (svr4_free_objfile_observer): New.
11820 (probe_and_action::objfile): New field.
11821 (probes_table_htab_remove_objfile_probes)
11822 (probes_table_remove_objfile_probes): New functions.
11823 (register_solib_event_probe): Add 'objfile' parameter. Store it
11824 in the new probe_and_action. Don't store the probe in 'lookup'.
11825 (svr4_create_probe_breakpoints): Pass objfile to
11826 register_solib_event_probe.
11827 (_initialize_svr4_solib): Register a free_objfile observer.
11828
fb881986
TT
118292019-04-19 Tom Tromey <tom@tromey.com>
11830
11831 * common/queue.h: Remove.
11832
8732db6c
TT
118332019-04-19 Tom Tromey <tom@tromey.com>
11834
11835 * event-loop.c: Don't include "common/queue.h".
11836
97dfbadd
TT
118372019-04-19 Tom Tromey <tom@tromey.com>
11838
11839 * remote.c (remote_target): Use delete.
11840 * remote-notif.h: Include <list>, not "common/queue.h".
11841 (notif_client_p): Remove typedef.
11842 (remote_notif_state): Add constructor, destructor, initializer.
11843 <notif_queue>: Now a std::list.
11844 (remote_notif_state_xfree): Don't declare.
11845 * remote-notif.c (remote_notif_process, handle_notification)
11846 (remote_notif_state_allocate): Update.
11847 (~remote_notif_state): Rename from remote_notif_state_xfree.
11848
cf250e36
TT
118492019-04-19 Tom Tromey <tom@tromey.com>
11850
11851 * symfile.c (reread_symbols): Update.
11852 * objfiles.c (objfile_register_static_link)
11853 (objfile_lookup_static_link): Update
11854 (~objfile) Don't delete static_links.
11855 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
11856
61f4b350
TT
118572019-04-19 Tom Tromey <tom@tromey.com>
11858
11859 * type-stack.h (struct type_stack) <insert>: Constify string.
11860 * type-stack.c (type_stack::insert): Constify string.
11861 * gdbtypes.h (lookup_template_type): Update.
11862 (address_space_name_to_int): Update.
11863 * gdbtypes.c (address_space_name_to_int): Make space_identifier
11864 const.
11865 (lookup_template_type): Make name const.
11866 * c-exp.y: Update rules.
11867 (lex_one_token, classify_name, classify_inner_name)
11868 (c_print_token): Update.
11869 * p-exp.y: Update rules.
11870 (yylex): Update.
11871 * f-exp.y: Update rules.
11872 (yylex): Update.
11873 * d-exp.y: Update rules.
11874 (lex_one_token, classify_name, classify_inner_name): Update.
11875 * parse.c (write_dollar_variable, copy_name): Return std::string.
11876 * parser-defs.h (copy_name): Change return type.
11877 * m2-exp.y: Update rules.
11878 (yylex): Update.
11879 * go-exp.y (lex_one_token): Update.
11880 Update rules.
11881 (classify_unsafe_function, classify_packaged_name)
11882 (classify_name, yylex): Update.
11883
189b8c2e
ST
118842019-04-19 Sergei Trofimovich <siarheit@google.com>
11885
11886 * configure.ac: add --enable-source-highlight switch.
11887 * configure: Regenerate.
11888 * top.c (print_gdb_version): plumb --enable-source-highlight
11889 status to "show configuration".
11890
8ecb59f8
TT
118912019-04-19 Tom Tromey <tromey@adacore.com>
11892
11893 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
11894 Check ADA_TYPE_P.
11895 (empty_record, ada_template_to_fixed_record_type_1)
11896 (template_to_static_fixed_type)
11897 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
11898 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
11899 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
11900 macros.
11901
62160ec9
TT
119022019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
11903
11904 PR symtab/24423:
11905 * source.c (print_source_lines_base): Advance "iter" when a
11906 control character is seen.
11907
f2ae8bc8
PW
119082019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11909
11910 * inferior.h (struct infcall_suspend_state_deleter):
11911 Catch exception in destructor to avoid crash.
11912
d563b953
PW
119132019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11914
11915 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
11916 close to the add_com "shell".
11917
dc34c897
TT
119182019-04-18 Tom Tromey <tromey@adacore.com>
11919
11920 * process-stratum-target.h (class process_stratum_target)
11921 <stratum>: Add "final".
11922
a12e5744
TT
119232019-04-17 Tom Tromey <tromey@adacore.com>
11924
11925 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
11926 against nullptr before use.
11927
a7e559cc
AH
119282019-04-17 Alan Hayward <alan.hayward@arm.com>
11929
11930 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
11931
c01660c6
AB
119322019-04-17 Jim Wilson <jimw@sifive.com>
11933 Andrew Burgess <andrew.burgess@embecosm.com>
11934
11935 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
11936 code read might fail, assume 4-byte breakpoint in that case.
11937
4aa866af
LS
119382019-04-15 Leszek Swirski <leszeks@google.com>
11939
11940 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
11941 rather than a hand-rolled POD check when checking for forced MEMORY
11942 classification.
11943
48574d91
AH
119442019-04-15 Alan Hayward <alan.hayward@arm.com>
11945
11946 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
11947 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
11948 function.
11949 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
11950 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
11951 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
11952 declaration.
11953
4da037ef
AH
119542019-04-15 Alan Hayward <alan.hayward@arm.com>
11955
11956 * aarch64-linux-nat.c
11957 (aarch64_linux_nat_target::thread_architecture): Add override.
11958 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
11959 each VQ.
11960
ccb8d7e8
AH
119612019-04-15 Alan Hayward <alan.hayward@arm.com>
11962
11963 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
11964
35add35e
AB
119652019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
11966
11967 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
11968 target types of size 96-bits, add some additional comments, and
11969 check that the builtin type we found was the correct size.
11970
51196bbc
EZ
119712019-04-12 Eli Zaretskii <eliz@gnu.org>
11972
11973 * utils.c (prompt_for_continue): Don't restore the styling at the
11974 end, as applied_style has the wrong value. This fixes styling in
11975 long lists of file names that are interrupted by the "Continue?"
11976 prompt.
11977
62253a61
AB
119782019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
11979
11980 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
11981 * c-lang.c (c_language_defn): Likewise.
11982 (cplus_language_defn): Likewise.
11983 (asm_language_defn): Likewise.
11984 (minimal_language_defn): Likewise.
11985 * d-lang.c (d_language_defn): Likewise.
11986 * f-lang.c (f_language_defn): Likewise.
11987 * go-lang.c (go_language_defn): Likewise.
11988 * language.c (unknown_language_defn): Likewise.
11989 (auto_language_defn): Likewise.
11990 * language.h (struct language_defn): Remove la_magic field.
11991 (LANG_MAGIC): Delete.
11992 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
11993 * objc-lang.c (objc_language_defn): Likewise.
11994 * opencl-lang.c (opencl_language_defn): Likewise.
11995 * p-lang.c (pascal_language_defn): Likewise.
11996 * rust-lang.c (rust_language_defn): Likewise.
11997
a9158a86
AB
119982019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
11999
12000 * riscv-tdep.c (riscv_type_align): New function.
12001 (riscv_type_alignment): Delete.
12002 (riscv_arg_location): Use 'type_align'.
12003 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
12004
41077b66
AB
120052019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
12006
12007 * gdbtypes.c (type_align): A struct with no non-static fields also
12008 has alignment of 1.
12009
9f0272f8
AB
120102019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
12011
12012 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
12013 component to 0.
12014 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
12015 member.
12016 (riscv_struct_info::analyse): New implementation using new
12017 analyse_inner member function.
12018 (riscv_struct_info::field_offset): New member function.
12019 (riscv_struct_info::m_offsets): New member variable.
12020 (riscv_struct_info::analyse_inner): New private member function,
12021 takes the old implementation of riscv_struct_info::analyse but
12022 extended to track field offsets.
12023 (riscv_call_arg_struct): Update the struct folding special cases
12024 to handle cases where empty C++ structs, which are non-zero
12025 length, are found.
12026 (riscv_arg_location): Initialise the length of each location, a
12027 non-zero length now indicates the location is in use.
12028 (riscv_push_dummy_call): Allow for the first location having a
12029 non-zero offset when setting up arguments.
12030 (riscv_return_value): Likewise, but for return values.
12031
02cf60c7
TT
120322019-04-11 Tom Tromey <tromey@adacore.com>
12033
12034 * utils.c (internal_vproblem): Make "msg" const.
12035
68811f8f
AH
120362019-04-11 Alan Hayward <alan.hayward@arm.com>
12037
12038 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
12039 * trad-frame.c (trad_frame_reset_saved_regs): New function.
12040 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
12041 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
12042
3f52fdbc
KB
120432019-04-10 Kevin Buettner <kevinb@redhat.com>
12044
12045 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
12046 function.
12047 (fill_gregset): Call amd64_linux_collect_native_gregset instead
12048 of amd64_collect_native_gregset.
12049 (amd64_linux_nat_target::store_registers): Likewise.
12050
e9ad22ee
TT
120512019-04-10 Tom Tromey <tom@tromey.com>
12052
12053 * symtab.c (lookup_global_symbol_from_objfile)
12054 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
12055 * objfiles.h (class separate_debug_iterator): New.
12056 (class separate_debug_range): New.
12057 (struct objfile) <separate_debug_objfiles>: New method.
12058 (objfile_separate_debug_iterate): Don't declare.
12059 * objfiles.c (separate_debug_iterator::operator++): Rename from
12060 objfile_separate_debug_iterate.
12061 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
12062 iterator.
12063 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
12064 iterator.
12065
ee371134
TT
120662019-04-10 Tom Tromey <tom@tromey.com>
12067
12068 * symfile.c (reread_symbols): Remove old comment.
12069 * objfiles.c (free_all_objfiles): Fix a typo.
12070
bf227d61
TT
120712019-04-10 Tom Tromey <tom@tromey.com>
12072
12073 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
12074 * minsyms.c (lookup_minimal_symbol): Use foreach.
12075 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
12076 (lookup_minimal_symbol_solib_trampoline): Likewise.
12077 * symfile.c (reread_symbols): Use foreach.
12078
8dc433a0
TT
120792019-04-09 Ivan Begert <ivanbegert@gmail.com>
12080 Tom Tromey <tromey@adacore.com>
12081
12082 PR rust/24414:
12083 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
12084 (rust_lex_int_test): Change "value" to be LONGEST.
12085 (rust_lex_tests): Add test for long integer literal.
12086
9ab8741a
TT
120872019-04-09 Tom Tromey <tromey@adacore.com>
12088
12089 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
12090 to bool.
12091 (extended_remote_target::attach): Update.
12092 (remote_target::remote_notice_new_inferior): Update.
12093 (remote_target::add_current_inferior_and_thread): Update.
12094 * inferior.c (exit_inferior_1): Use "false".
12095 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
12096
e242fd12
SM
120972019-04-09 Simon Marchi <simon.marchi@efficios.com>
12098
9ca1957f 12099 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
e242fd12
SM
12100 the "start" command.
12101
2b0c8b01
KB
121022019-04-08 Kevin Buettner <kevinb@redhat.com>
12103
12104 * python/py-inferior.c (infpy_thread_from_thread_handle):
12105 Adjust comments to reflect renaming of thread_from_thread_handle
12106 to thread_from_handle. Adjust keywords. Fix type error message.
12107 (inferior_object_methods): Add thread_from_handle. Retain
12108 thread_from_thread_handle, but mark it as deprecated.
12109
50a82723
KB
121102019-04-08 Kevin Buettner <kevinb@redhat.com>
12111
12112 * gdbthread.h (find_thread_by_handle): Revise declaration.
12113 * thread.c (find_thread_by_handle): Likewise. Adjust
12114 implementation too.
12115 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
12116 support for buffer objects as handles.
12117
cf63b016
KB
121182019-04-08 Kevin Buettner <kevinb@redhat.com>
12119
12120 * python/py-infthread.c (thpy_thread_handle): New function.
12121 (thread_object_methods): Register thpy_thread_handle.
12122
3d6c6204
KB
121232019-04-08 Kevin Buettner <kevinb@redhat.com>
12124
12125 * gdbthread.h (thread_to_thread_handle): Declare.
12126 * thread.c (gdbtypes.h): Include.
12127 (thread_to_thread_handle): New function.
12128
12129 * target.h (struct target_ops): Add thread_info_to_thread_handle.
12130 (target_thread_info_to_thread_handle): Declare.
12131 * target.c (target_thread_info_to_thread_handle): New function.
12132 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
12133 * target-delegates.c: Regenerate.
12134
12135 * linux-thread-db.c (class thread_db_target): Add method
12136 thread_info_to_thread_handle.
12137 (thread_db_target::thread_info_to_thread_handle): Define.
12138 * remote.c (class remote_target): Add new method
12139 thread_info_to_thread_handle.
12140 (remote_target::thread_info_to_thread_handle): Define.
12141
56be6ea8
PA
121422019-04-08 Pedro Alves <palves@redhat.com>
12143
12144 * common/common-exceptions.c (throw_exception): Don't create
12145 named object to throw; throw directly.
12146 (throw_it): Likewise. Don't initialize gdb_exception::message
12147 here, with new; pass FMT and AP to the ctor instead.
12148 * common/common-exceptions.h: Include <string>.
12149 (gdb_exception::gdb_exception(enum return_reason, enum errors,
12150 const char *, va_list)): New ctor. Use std::make_shared.
12151 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
12152 errors)): Delete.
12153 (gdb_exception_error::gdb_exception_error(enum errors, const char
12154 *, va_list)): New.
12155 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
12156 Add assertion.
12157 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
12158 errors)): Delete.
12159 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
12160 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
12161 Add assertion.
12162
eedc3f4f
TT
121632019-04-08 Tom Tromey <tom@tromey.com>
12164
12165 * valops.c (value_rtti_indirect_type): Replace throw_exception
12166 with throw.
12167 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
12168 with throw.
12169 * thread.c (thr_try_catch_cmd): Replace throw_exception with
12170 throw.
12171 * target.c (target_translate_tls_address): Replace throw_exception
12172 with throw.
12173 * stack.c (frame_apply_command_count): Replace throw_exception
12174 with throw.
12175 * solib-spu.c (append_ocl_sos): Replace throw_exception with
12176 throw.
12177 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
12178 with throw.
12179 * rs6000-tdep.c (rs6000_frame_cache)
12180 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
12181 * remote.c: Replace throw_exception with throw.
12182 * record-full.c (record_full_message, record_full_wait_1)
12183 (record_full_restore): Replace throw_exception with throw.
12184 * record-btrace.c:
12185 (get_thread_current_frame_id, record_btrace_start_replaying)
12186 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
12187 (cmd_record_btrace_start): Replace throw_exception with throw.
12188 * parse.c (parse_exp_in_context_1): Replace throw_exception with
12189 throw.
12190 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
12191 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
12192 * linespec.c:
12193 (find_linespec_symbols): Replace throw_exception with throw.
12194 * infrun.c (displaced_step_prepare, resume): Replace
12195 throw_exception with throw.
12196 * infcmd.c (post_create_inferior): Replace throw_exception with
12197 throw.
12198 * inf-loop.c (inferior_event_handler): Replace throw_exception
12199 with throw.
12200 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
12201 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
12202 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
12203 (get_prev_frame_always, get_frame_pc_if_available)
12204 (get_frame_address_in_block_if_available, get_frame_language):
12205 Replace throw_exception with throw.
12206 * frame-unwind.c (frame_unwind_try_unwinder): Replace
12207 throw_exception with throw.
12208 * eval.c (fetch_subexp_value, evaluate_var_value)
12209 (evaluate_funcall, evaluate_subexp_standard): Replace
12210 throw_exception with throw.
12211 * dwarf2loc.c (call_site_find_chain)
12212 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
12213 Replace throw_exception with throw.
12214 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
12215 with throw.
12216 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
12217 throw.
12218 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
12219 * completer.c (complete_line_internal): Replace throw_exception
12220 with throw.
12221 * compile/compile-object-run.c (compile_object_run): Replace
12222 throw_exception with throw.
12223 * cli/cli-script.c (process_next_line): Replace throw_exception
12224 with throw.
12225 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
12226 (btrace_enable, btrace_maint_update_pt_packets): Replace
12227 throw_exception with throw.
12228 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
12229 throw_exception with throw.
12230 * break-catch-throw.c (re_set_exception_catchpoint): Replace
12231 throw_exception with throw.
12232 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
12233 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
12234 * aarch64-tdep.c (aarch64_make_prologue_cache)
12235 (aarch64_make_stub_cache): Replace throw_exception with throw.
12236
26003a20
TT
122372019-04-08 Tom Tromey <tom@tromey.com>
12238
12239 * common/common-exceptions.c (throw_exception): Rename from
12240 throw_exception_cxx. Remove old copy. Make argument const.
12241 (throw_it): Create and throw exception objects directly.
12242 * common/common-exceptions.h (throw_exception): Make argument
12243 const.
12244 (struct gdb_exception_error): Add constructor.
12245 (struct gdb_exception_quit): Add constructor.
12246
d272eb37
TT
122472019-04-08 Tom Tromey <tom@tromey.com>
12248
12249 * common/common-exceptions.h (exception_rethrow): Don't declare.
12250 (TRY_SJLJ): Update comment.
12251 (TRY, CATCH, END_CATCH): Remove.
12252 * common/common-exceptions.c (exception_rethrow): Remove.
12253
230d2906
TT
122542019-04-08 Tom Tromey <tom@tromey.com>
12255
12256 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
12257 Remove.
12258 (gdb_exception_error): Rename from
12259 gdb_exception_RETURN_MASK_ERROR.
12260 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
12261 (gdb_quit_bad_alloc): Update.
12262 * aarch64-tdep.c: Update.
12263 * ada-lang.c: Update.
12264 * ada-typeprint.c: Update.
12265 * ada-valprint.c: Update.
12266 * amd64-tdep.c: Update.
12267 * arch-utils.c: Update.
12268 * break-catch-throw.c: Update.
12269 * breakpoint.c: Update.
12270 * btrace.c: Update.
12271 * c-varobj.c: Update.
12272 * cli/cli-cmds.c: Update.
12273 * cli/cli-interp.c: Update.
12274 * cli/cli-script.c: Update.
12275 * common/common-exceptions.c: Update.
12276 * common/new-op.c: Update.
12277 * common/selftest.c: Update.
12278 * compile/compile-c-symbols.c: Update.
12279 * compile/compile-cplus-symbols.c: Update.
12280 * compile/compile-object-load.c: Update.
12281 * compile/compile-object-run.c: Update.
12282 * completer.c: Update.
12283 * corelow.c: Update.
12284 * cp-abi.c: Update.
12285 * cp-support.c: Update.
12286 * cp-valprint.c: Update.
12287 * darwin-nat.c: Update.
12288 * disasm-selftests.c: Update.
12289 * dtrace-probe.c: Update.
12290 * dwarf-index-cache.c: Update.
12291 * dwarf-index-write.c: Update.
12292 * dwarf2-frame-tailcall.c: Update.
12293 * dwarf2-frame.c: Update.
12294 * dwarf2loc.c: Update.
12295 * dwarf2read.c: Update.
12296 * eval.c: Update.
12297 * event-loop.c: Update.
12298 * event-top.c: Update.
12299 * exec.c: Update.
12300 * f-valprint.c: Update.
12301 * fbsd-tdep.c: Update.
12302 * frame-unwind.c: Update.
12303 * frame.c: Update.
12304 * gdbtypes.c: Update.
12305 * gnu-v3-abi.c: Update.
12306 * guile/guile-internal.h: Update.
12307 * guile/scm-block.c: Update.
12308 * guile/scm-breakpoint.c: Update.
12309 * guile/scm-cmd.c: Update.
12310 * guile/scm-disasm.c: Update.
12311 * guile/scm-frame.c: Update.
12312 * guile/scm-lazy-string.c: Update.
12313 * guile/scm-math.c: Update.
12314 * guile/scm-param.c: Update.
12315 * guile/scm-ports.c: Update.
12316 * guile/scm-pretty-print.c: Update.
12317 * guile/scm-symbol.c: Update.
12318 * guile/scm-symtab.c: Update.
12319 * guile/scm-type.c: Update.
12320 * guile/scm-value.c: Update.
12321 * i386-linux-tdep.c: Update.
12322 * i386-tdep.c: Update.
12323 * inf-loop.c: Update.
12324 * infcall.c: Update.
12325 * infcmd.c: Update.
12326 * infrun.c: Update.
12327 * jit.c: Update.
12328 * language.c: Update.
12329 * linespec.c: Update.
12330 * linux-fork.c: Update.
12331 * linux-nat.c: Update.
12332 * linux-tdep.c: Update.
12333 * linux-thread-db.c: Update.
12334 * main.c: Update.
12335 * mi/mi-cmd-break.c: Update.
12336 * mi/mi-cmd-stack.c: Update.
12337 * mi/mi-interp.c: Update.
12338 * mi/mi-main.c: Update.
12339 * objc-lang.c: Update.
12340 * p-valprint.c: Update.
12341 * parse.c: Update.
12342 * ppc-linux-tdep.c: Update.
12343 * printcmd.c: Update.
12344 * python/py-arch.c: Update.
12345 * python/py-breakpoint.c: Update.
12346 * python/py-cmd.c: Update.
12347 * python/py-finishbreakpoint.c: Update.
12348 * python/py-frame.c: Update.
12349 * python/py-framefilter.c: Update.
12350 * python/py-gdb-readline.c: Update.
12351 * python/py-inferior.c: Update.
12352 * python/py-infthread.c: Update.
12353 * python/py-lazy-string.c: Update.
12354 * python/py-linetable.c: Update.
12355 * python/py-objfile.c: Update.
12356 * python/py-param.c: Update.
12357 * python/py-prettyprint.c: Update.
12358 * python/py-progspace.c: Update.
12359 * python/py-record-btrace.c: Update.
12360 * python/py-record.c: Update.
12361 * python/py-symbol.c: Update.
12362 * python/py-type.c: Update.
12363 * python/py-unwind.c: Update.
12364 * python/py-utils.c: Update.
12365 * python/py-value.c: Update.
12366 * python/python.c: Update.
12367 * record-btrace.c: Update.
12368 * record-full.c: Update.
12369 * remote-fileio.c: Update.
12370 * remote.c: Update.
12371 * riscv-tdep.c: Update.
12372 * rs6000-aix-tdep.c: Update.
12373 * rs6000-tdep.c: Update.
12374 * rust-exp.y: Update.
12375 * rust-lang.c: Update.
12376 * s390-tdep.c: Update.
12377 * selftest-arch.c: Update.
12378 * solib-dsbt.c: Update.
12379 * solib-frv.c: Update.
12380 * solib-spu.c: Update.
12381 * solib-svr4.c: Update.
12382 * solib.c: Update.
12383 * sparc64-linux-tdep.c: Update.
12384 * stack.c: Update.
12385 * symfile-mem.c: Update.
12386 * symmisc.c: Update.
12387 * target.c: Update.
12388 * thread.c: Update.
12389 * top.c: Update.
12390 * tracefile-tfile.c: Update.
12391 * tui/tui.c: Update.
12392 * typeprint.c: Update.
12393 * unittests/cli-utils-selftests.c: Update.
12394 * unittests/parse-connection-spec-selftests.c: Update.
12395 * valops.c: Update.
12396 * valprint.c: Update.
12397 * value.c: Update.
12398 * varobj.c: Update.
12399 * windows-nat.c: Update.
12400 * x86-linux-nat.c: Update.
12401 * xml-support.c: Update.
12402
a70b8144
TT
124032019-04-08 Tom Tromey <tom@tromey.com>
12404
12405 * xml-support.c: Use C++ exception handling.
12406 * x86-linux-nat.c: Use C++ exception handling.
12407 * windows-nat.c: Use C++ exception handling.
12408 * varobj.c: Use C++ exception handling.
12409 * value.c: Use C++ exception handling.
12410 * valprint.c: Use C++ exception handling.
12411 * valops.c: Use C++ exception handling.
12412 * unittests/parse-connection-spec-selftests.c: Use C++ exception
12413 handling.
12414 * unittests/cli-utils-selftests.c: Use C++ exception handling.
12415 * typeprint.c: Use C++ exception handling.
12416 * tui/tui.c: Use C++ exception handling.
12417 * tracefile-tfile.c: Use C++ exception handling.
12418 * top.c: Use C++ exception handling.
12419 * thread.c: Use C++ exception handling.
12420 * target.c: Use C++ exception handling.
12421 * symmisc.c: Use C++ exception handling.
12422 * symfile-mem.c: Use C++ exception handling.
12423 * stack.c: Use C++ exception handling.
12424 * sparc64-linux-tdep.c: Use C++ exception handling.
12425 * solib.c: Use C++ exception handling.
12426 * solib-svr4.c: Use C++ exception handling.
12427 * solib-spu.c: Use C++ exception handling.
12428 * solib-frv.c: Use C++ exception handling.
12429 * solib-dsbt.c: Use C++ exception handling.
12430 * selftest-arch.c: Use C++ exception handling.
12431 * s390-tdep.c: Use C++ exception handling.
12432 * rust-lang.c: Use C++ exception handling.
12433 * rust-exp.y: Use C++ exception handling.
12434 * rs6000-tdep.c: Use C++ exception handling.
12435 * rs6000-aix-tdep.c: Use C++ exception handling.
12436 * riscv-tdep.c: Use C++ exception handling.
12437 * remote.c: Use C++ exception handling.
12438 * remote-fileio.c: Use C++ exception handling.
12439 * record-full.c: Use C++ exception handling.
12440 * record-btrace.c: Use C++ exception handling.
12441 * python/python.c: Use C++ exception handling.
12442 * python/py-value.c: Use C++ exception handling.
12443 * python/py-utils.c: Use C++ exception handling.
12444 * python/py-unwind.c: Use C++ exception handling.
12445 * python/py-type.c: Use C++ exception handling.
12446 * python/py-symbol.c: Use C++ exception handling.
12447 * python/py-record.c: Use C++ exception handling.
12448 * python/py-record-btrace.c: Use C++ exception handling.
12449 * python/py-progspace.c: Use C++ exception handling.
12450 * python/py-prettyprint.c: Use C++ exception handling.
12451 * python/py-param.c: Use C++ exception handling.
12452 * python/py-objfile.c: Use C++ exception handling.
12453 * python/py-linetable.c: Use C++ exception handling.
12454 * python/py-lazy-string.c: Use C++ exception handling.
12455 * python/py-infthread.c: Use C++ exception handling.
12456 * python/py-inferior.c: Use C++ exception handling.
12457 * python/py-gdb-readline.c: Use C++ exception handling.
12458 * python/py-framefilter.c: Use C++ exception handling.
12459 * python/py-frame.c: Use C++ exception handling.
12460 * python/py-finishbreakpoint.c: Use C++ exception handling.
12461 * python/py-cmd.c: Use C++ exception handling.
12462 * python/py-breakpoint.c: Use C++ exception handling.
12463 * python/py-arch.c: Use C++ exception handling.
12464 * printcmd.c: Use C++ exception handling.
12465 * ppc-linux-tdep.c: Use C++ exception handling.
12466 * parse.c: Use C++ exception handling.
12467 * p-valprint.c: Use C++ exception handling.
12468 * objc-lang.c: Use C++ exception handling.
12469 * mi/mi-main.c: Use C++ exception handling.
12470 * mi/mi-interp.c: Use C++ exception handling.
12471 * mi/mi-cmd-stack.c: Use C++ exception handling.
12472 * mi/mi-cmd-break.c: Use C++ exception handling.
12473 * main.c: Use C++ exception handling.
12474 * linux-thread-db.c: Use C++ exception handling.
12475 * linux-tdep.c: Use C++ exception handling.
12476 * linux-nat.c: Use C++ exception handling.
12477 * linux-fork.c: Use C++ exception handling.
12478 * linespec.c: Use C++ exception handling.
12479 * language.c: Use C++ exception handling.
12480 * jit.c: Use C++ exception handling.
12481 * infrun.c: Use C++ exception handling.
12482 * infcmd.c: Use C++ exception handling.
12483 * infcall.c: Use C++ exception handling.
12484 * inf-loop.c: Use C++ exception handling.
12485 * i386-tdep.c: Use C++ exception handling.
12486 * i386-linux-tdep.c: Use C++ exception handling.
12487 * guile/scm-value.c: Use C++ exception handling.
12488 * guile/scm-type.c: Use C++ exception handling.
12489 * guile/scm-symtab.c: Use C++ exception handling.
12490 * guile/scm-symbol.c: Use C++ exception handling.
12491 * guile/scm-pretty-print.c: Use C++ exception handling.
12492 * guile/scm-ports.c: Use C++ exception handling.
12493 * guile/scm-param.c: Use C++ exception handling.
12494 * guile/scm-math.c: Use C++ exception handling.
12495 * guile/scm-lazy-string.c: Use C++ exception handling.
12496 * guile/scm-frame.c: Use C++ exception handling.
12497 * guile/scm-disasm.c: Use C++ exception handling.
12498 * guile/scm-cmd.c: Use C++ exception handling.
12499 * guile/scm-breakpoint.c: Use C++ exception handling.
12500 * guile/scm-block.c: Use C++ exception handling.
12501 * guile/guile-internal.h: Use C++ exception handling.
12502 * gnu-v3-abi.c: Use C++ exception handling.
12503 * gdbtypes.c: Use C++ exception handling.
12504 * frame.c: Use C++ exception handling.
12505 * frame-unwind.c: Use C++ exception handling.
12506 * fbsd-tdep.c: Use C++ exception handling.
12507 * f-valprint.c: Use C++ exception handling.
12508 * exec.c: Use C++ exception handling.
12509 * event-top.c: Use C++ exception handling.
12510 * event-loop.c: Use C++ exception handling.
12511 * eval.c: Use C++ exception handling.
12512 * dwarf2read.c: Use C++ exception handling.
12513 * dwarf2loc.c: Use C++ exception handling.
12514 * dwarf2-frame.c: Use C++ exception handling.
12515 * dwarf2-frame-tailcall.c: Use C++ exception handling.
12516 * dwarf-index-write.c: Use C++ exception handling.
12517 * dwarf-index-cache.c: Use C++ exception handling.
12518 * dtrace-probe.c: Use C++ exception handling.
12519 * disasm-selftests.c: Use C++ exception handling.
12520 * darwin-nat.c: Use C++ exception handling.
12521 * cp-valprint.c: Use C++ exception handling.
12522 * cp-support.c: Use C++ exception handling.
12523 * cp-abi.c: Use C++ exception handling.
12524 * corelow.c: Use C++ exception handling.
12525 * completer.c: Use C++ exception handling.
12526 * compile/compile-object-run.c: Use C++ exception handling.
12527 * compile/compile-object-load.c: Use C++ exception handling.
12528 * compile/compile-cplus-symbols.c: Use C++ exception handling.
12529 * compile/compile-c-symbols.c: Use C++ exception handling.
12530 * common/selftest.c: Use C++ exception handling.
12531 * common/new-op.c: Use C++ exception handling.
12532 * cli/cli-script.c: Use C++ exception handling.
12533 * cli/cli-interp.c: Use C++ exception handling.
12534 * cli/cli-cmds.c: Use C++ exception handling.
12535 * c-varobj.c: Use C++ exception handling.
12536 * btrace.c: Use C++ exception handling.
12537 * breakpoint.c: Use C++ exception handling.
12538 * break-catch-throw.c: Use C++ exception handling.
12539 * arch-utils.c: Use C++ exception handling.
12540 * amd64-tdep.c: Use C++ exception handling.
12541 * ada-valprint.c: Use C++ exception handling.
12542 * ada-typeprint.c: Use C++ exception handling.
12543 * ada-lang.c: Use C++ exception handling.
12544 * aarch64-tdep.c: Use C++ exception handling.
12545
3d6e9d23
TT
125462019-04-08 Tom Tromey <tom@tromey.com>
12547
12548 * xml-support.c (gdb_xml_parser::parse): Update.
12549 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
12550 * value.c (show_convenience): Update.
12551 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
12552 (test_parse_flags_qcs): Update.
12553 * thread.c (thr_try_catch_cmd): Update.
12554 * target.c (target_translate_tls_address): Update.
12555 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
12556 (info_frame_command_core, frame_apply_command_count): Update.
12557 * rust-exp.y (rust_lex_exception_test): Update.
12558 * riscv-tdep.c (riscv_print_one_register_info): Update.
12559 * remote.c (remote_target::enable_btrace): Update.
12560 * record-btrace.c (record_btrace_enable_warn): Update.
12561 * python/py-utils.c (gdbpy_convert_exception): Update.
12562 * printcmd.c (do_one_display, print_variable_and_value): Update.
12563 * mi/mi-main.c (mi_print_exception): Update.
12564 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
12565 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
12566 * linux-nat.c (linux_nat_target::attach): Update.
12567 * linux-fork.c (class scoped_switch_fork_info): Update.
12568 * infrun.c (displaced_step_prepare): Update.
12569 * infcall.c (call_function_by_hand_dummy): Update.
12570 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
12571 * gnu-v3-abi.c (print_one_vtable): Update.
12572 * frame.c (get_prev_frame_always): Update.
12573 * f-valprint.c (info_common_command_for_block): Update.
12574 * exec.c (try_open_exec_file): Update.
12575 * exceptions.c (print_exception, exception_print)
12576 (exception_fprintf, exception_print_same): Update.
12577 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
12578 * dwarf-index-cache.c (index_cache::store)
12579 (index_cache::lookup_gdb_index): Update.
12580 * darwin-nat.c (maybe_cache_shell): Update.
12581 * cp-valprint.c (cp_print_value_fields): Update.
12582 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
12583 (gcc_cplus_symbol_address): Update.
12584 * compile/compile-c-symbols.c (gcc_convert_symbol)
12585 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
12586 * common/selftest.c: Update.
12587 * common/common-exceptions.h (struct gdb_exception) <message>: Now
12588 a std::string.
12589 (exception_try_scope_entry, exception_try_scope_exit): Don't
12590 declare.
12591 (struct exception_try_scope): Remove.
12592 (TRY): Don't use exception_try_scope.
12593 (struct gdb_exception): Add constructor, operator=.
12594 <what>: New method.
12595 (struct gdb_exception_RETURN_MASK_ALL)
12596 (struct gdb_exception_RETURN_MASK_ERROR)
12597 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
12598 (struct gdb_quit_bad_alloc): Update.
12599 * common/common-exceptions.c (exception_none): Change
12600 initializer.
12601 (struct catcher) <state, exception>: Initialize inline.
12602 <prev>: Remove member.
12603 (current_catcher): Remove.
12604 (catchers): New global.
12605 (exceptions_state_mc_init): Simplify.
12606 (catcher_pop): Remove.
12607 (exceptions_state_mc, exceptions_state_mc_catch): Update.
12608 (try_scope_depth, exception_try_scope_entry)
12609 (exception_try_scope_exit): Remove.
12610 (throw_exception_sjlj): Update.
12611 (exception_messages, exception_messages_size): Remove.
12612 (throw_it): Simplify.
12613 (gdb_exception_sliced_copy): Remove.
12614 (throw_exception_cxx): Update.
12615 * cli/cli-script.c (script_from_file): Update.
12616 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
12617 Update.
12618 * ada-valprint.c (ada_val_print): Update.
12619 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
12620 (create_excep_cond_exprs): Update.
12621
c5c10118
TT
126222019-04-08 Tom Tromey <tom@tromey.com>
12623
12624 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
12625 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
12626 (TRY, CATCH, END_CATCH): Remove some definitions.
12627 * common/common-exceptions.c: Don't use GDB_XCPT.
12628 (catcher_list_size): Remove.
12629 (throw_exception, throw_it): Simplify.
12630
4de283e4
TT
126312019-04-05 Tom Tromey <tom@tromey.com>
12632
12633 Revert the header-sorting patch.
12634 * ft32-tdep.c: Revert.
12635 * frv-tdep.c: Revert.
12636 * frv-linux-tdep.c: Revert.
12637 * frame.c: Revert.
12638 * frame-unwind.c: Revert.
12639 * frame-base.c: Revert.
12640 * fork-child.c: Revert.
12641 * findvar.c: Revert.
12642 * findcmd.c: Revert.
12643 * filesystem.c: Revert.
12644 * filename-seen-cache.h: Revert.
12645 * filename-seen-cache.c: Revert.
12646 * fbsd-tdep.c: Revert.
12647 * fbsd-nat.h: Revert.
12648 * fbsd-nat.c: Revert.
12649 * f-valprint.c: Revert.
12650 * f-typeprint.c: Revert.
12651 * f-lang.c: Revert.
12652 * extension.h: Revert.
12653 * extension.c: Revert.
12654 * extension-priv.h: Revert.
12655 * expprint.c: Revert.
12656 * exec.h: Revert.
12657 * exec.c: Revert.
12658 * exceptions.c: Revert.
12659 * event-top.c: Revert.
12660 * event-loop.c: Revert.
12661 * eval.c: Revert.
12662 * elfread.c: Revert.
12663 * dwarf2read.h: Revert.
12664 * dwarf2read.c: Revert.
12665 * dwarf2loc.c: Revert.
12666 * dwarf2expr.h: Revert.
12667 * dwarf2expr.c: Revert.
12668 * dwarf2-frame.c: Revert.
12669 * dwarf2-frame-tailcall.c: Revert.
12670 * dwarf-index-write.h: Revert.
12671 * dwarf-index-write.c: Revert.
12672 * dwarf-index-common.c: Revert.
12673 * dwarf-index-cache.h: Revert.
12674 * dwarf-index-cache.c: Revert.
12675 * dummy-frame.c: Revert.
12676 * dtrace-probe.c: Revert.
12677 * disasm.h: Revert.
12678 * disasm.c: Revert.
12679 * disasm-selftests.c: Revert.
12680 * dictionary.c: Revert.
12681 * dicos-tdep.c: Revert.
12682 * demangle.c: Revert.
12683 * dcache.h: Revert.
12684 * dcache.c: Revert.
12685 * darwin-nat.h: Revert.
12686 * darwin-nat.c: Revert.
12687 * darwin-nat-info.c: Revert.
12688 * d-valprint.c: Revert.
12689 * d-namespace.c: Revert.
12690 * d-lang.c: Revert.
12691 * ctf.c: Revert.
12692 * csky-tdep.c: Revert.
12693 * csky-linux-tdep.c: Revert.
12694 * cris-tdep.c: Revert.
12695 * cris-linux-tdep.c: Revert.
12696 * cp-valprint.c: Revert.
12697 * cp-support.c: Revert.
12698 * cp-namespace.c: Revert.
12699 * cp-abi.c: Revert.
12700 * corelow.c: Revert.
12701 * corefile.c: Revert.
12702 * continuations.c: Revert.
12703 * completer.h: Revert.
12704 * completer.c: Revert.
12705 * complaints.c: Revert.
12706 * coffread.c: Revert.
12707 * coff-pe-read.c: Revert.
12708 * cli-out.h: Revert.
12709 * cli-out.c: Revert.
12710 * charset.c: Revert.
12711 * c-varobj.c: Revert.
12712 * c-valprint.c: Revert.
12713 * c-typeprint.c: Revert.
12714 * c-lang.c: Revert.
12715 * buildsym.c: Revert.
12716 * buildsym-legacy.c: Revert.
12717 * build-id.h: Revert.
12718 * build-id.c: Revert.
12719 * btrace.c: Revert.
12720 * bsd-uthread.c: Revert.
12721 * breakpoint.h: Revert.
12722 * breakpoint.c: Revert.
12723 * break-catch-throw.c: Revert.
12724 * break-catch-syscall.c: Revert.
12725 * break-catch-sig.c: Revert.
12726 * blockframe.c: Revert.
12727 * block.c: Revert.
12728 * bfin-tdep.c: Revert.
12729 * bfin-linux-tdep.c: Revert.
12730 * bfd-target.c: Revert.
12731 * bcache.c: Revert.
12732 * ax-general.c: Revert.
12733 * ax-gdb.h: Revert.
12734 * ax-gdb.c: Revert.
12735 * avr-tdep.c: Revert.
12736 * auxv.c: Revert.
12737 * auto-load.c: Revert.
12738 * arm-wince-tdep.c: Revert.
12739 * arm-tdep.c: Revert.
12740 * arm-symbian-tdep.c: Revert.
12741 * arm-pikeos-tdep.c: Revert.
12742 * arm-obsd-tdep.c: Revert.
12743 * arm-nbsd-tdep.c: Revert.
12744 * arm-nbsd-nat.c: Revert.
12745 * arm-linux-tdep.c: Revert.
12746 * arm-linux-nat.c: Revert.
12747 * arm-fbsd-tdep.c: Revert.
12748 * arm-fbsd-nat.c: Revert.
12749 * arm-bsd-tdep.c: Revert.
12750 * arch-utils.c: Revert.
12751 * arc-tdep.c: Revert.
12752 * arc-newlib-tdep.c: Revert.
12753 * annotate.h: Revert.
12754 * annotate.c: Revert.
12755 * amd64-windows-tdep.c: Revert.
12756 * amd64-windows-nat.c: Revert.
12757 * amd64-tdep.c: Revert.
12758 * amd64-sol2-tdep.c: Revert.
12759 * amd64-obsd-tdep.c: Revert.
12760 * amd64-obsd-nat.c: Revert.
12761 * amd64-nbsd-tdep.c: Revert.
12762 * amd64-nbsd-nat.c: Revert.
12763 * amd64-nat.c: Revert.
12764 * amd64-linux-tdep.c: Revert.
12765 * amd64-linux-nat.c: Revert.
12766 * amd64-fbsd-tdep.c: Revert.
12767 * amd64-fbsd-nat.c: Revert.
12768 * amd64-dicos-tdep.c: Revert.
12769 * amd64-darwin-tdep.c: Revert.
12770 * amd64-bsd-nat.c: Revert.
12771 * alpha-tdep.c: Revert.
12772 * alpha-obsd-tdep.c: Revert.
12773 * alpha-nbsd-tdep.c: Revert.
12774 * alpha-mdebug-tdep.c: Revert.
12775 * alpha-linux-tdep.c: Revert.
12776 * alpha-linux-nat.c: Revert.
12777 * alpha-bsd-tdep.c: Revert.
12778 * alpha-bsd-nat.c: Revert.
12779 * aix-thread.c: Revert.
12780 * agent.c: Revert.
12781 * addrmap.c: Revert.
12782 * ada-varobj.c: Revert.
12783 * ada-valprint.c: Revert.
12784 * ada-typeprint.c: Revert.
12785 * ada-tasks.c: Revert.
12786 * ada-lang.c: Revert.
12787 * aarch64-tdep.c: Revert.
12788 * aarch64-ravenscar-thread.c: Revert.
12789 * aarch64-newlib-tdep.c: Revert.
12790 * aarch64-linux-tdep.c: Revert.
12791 * aarch64-linux-nat.c: Revert.
12792 * aarch64-fbsd-tdep.c: Revert.
12793 * aarch64-fbsd-nat.c: Revert.
12794 * aarch32-linux-nat.c: Revert.
12795
d55e5aa6
TT
127962019-04-05 Tom Tromey <tom@tromey.com>
12797
12798 * ft32-tdep.c: Sort headers.
12799 * frv-tdep.c: Sort headers.
12800 * frv-linux-tdep.c: Sort headers.
12801 * frame.c: Sort headers.
12802 * frame-unwind.c: Sort headers.
12803 * frame-base.c: Sort headers.
12804 * fork-child.c: Sort headers.
12805 * findvar.c: Sort headers.
12806 * findcmd.c: Sort headers.
12807 * filesystem.c: Sort headers.
12808 * filename-seen-cache.h: Sort headers.
12809 * filename-seen-cache.c: Sort headers.
12810 * fbsd-tdep.c: Sort headers.
12811 * fbsd-nat.h: Sort headers.
12812 * fbsd-nat.c: Sort headers.
12813 * f-valprint.c: Sort headers.
12814 * f-typeprint.c: Sort headers.
12815 * f-lang.c: Sort headers.
12816 * extension.h: Sort headers.
12817 * extension.c: Sort headers.
12818 * extension-priv.h: Sort headers.
12819 * expprint.c: Sort headers.
12820 * exec.h: Sort headers.
12821 * exec.c: Sort headers.
12822 * exceptions.c: Sort headers.
12823 * event-top.c: Sort headers.
12824 * event-loop.c: Sort headers.
12825 * eval.c: Sort headers.
12826 * elfread.c: Sort headers.
12827 * dwarf2read.h: Sort headers.
12828 * dwarf2read.c: Sort headers.
12829 * dwarf2loc.c: Sort headers.
12830 * dwarf2expr.h: Sort headers.
12831 * dwarf2expr.c: Sort headers.
12832 * dwarf2-frame.c: Sort headers.
12833 * dwarf2-frame-tailcall.c: Sort headers.
12834 * dwarf-index-write.h: Sort headers.
12835 * dwarf-index-write.c: Sort headers.
12836 * dwarf-index-common.c: Sort headers.
12837 * dwarf-index-cache.h: Sort headers.
12838 * dwarf-index-cache.c: Sort headers.
12839 * dummy-frame.c: Sort headers.
12840 * dtrace-probe.c: Sort headers.
12841 * disasm.h: Sort headers.
12842 * disasm.c: Sort headers.
12843 * disasm-selftests.c: Sort headers.
12844 * dictionary.c: Sort headers.
12845 * dicos-tdep.c: Sort headers.
12846 * demangle.c: Sort headers.
12847 * dcache.h: Sort headers.
12848 * dcache.c: Sort headers.
12849 * darwin-nat.h: Sort headers.
12850 * darwin-nat.c: Sort headers.
12851 * darwin-nat-info.c: Sort headers.
12852 * d-valprint.c: Sort headers.
12853 * d-namespace.c: Sort headers.
12854 * d-lang.c: Sort headers.
12855 * ctf.c: Sort headers.
12856 * csky-tdep.c: Sort headers.
12857 * csky-linux-tdep.c: Sort headers.
12858 * cris-tdep.c: Sort headers.
12859 * cris-linux-tdep.c: Sort headers.
12860 * cp-valprint.c: Sort headers.
12861 * cp-support.c: Sort headers.
12862 * cp-namespace.c: Sort headers.
12863 * cp-abi.c: Sort headers.
12864 * corelow.c: Sort headers.
12865 * corefile.c: Sort headers.
12866 * continuations.c: Sort headers.
12867 * completer.h: Sort headers.
12868 * completer.c: Sort headers.
12869 * complaints.c: Sort headers.
12870 * coffread.c: Sort headers.
12871 * coff-pe-read.c: Sort headers.
12872 * cli-out.h: Sort headers.
12873 * cli-out.c: Sort headers.
12874 * charset.c: Sort headers.
12875 * c-varobj.c: Sort headers.
12876 * c-valprint.c: Sort headers.
12877 * c-typeprint.c: Sort headers.
12878 * c-lang.c: Sort headers.
12879 * buildsym.c: Sort headers.
12880 * buildsym-legacy.c: Sort headers.
12881 * build-id.h: Sort headers.
12882 * build-id.c: Sort headers.
12883 * btrace.c: Sort headers.
12884 * bsd-uthread.c: Sort headers.
12885 * breakpoint.h: Sort headers.
12886 * breakpoint.c: Sort headers.
12887 * break-catch-throw.c: Sort headers.
12888 * break-catch-syscall.c: Sort headers.
12889 * break-catch-sig.c: Sort headers.
12890 * blockframe.c: Sort headers.
12891 * block.c: Sort headers.
12892 * bfin-tdep.c: Sort headers.
12893 * bfin-linux-tdep.c: Sort headers.
12894 * bfd-target.c: Sort headers.
12895 * bcache.c: Sort headers.
12896 * ax-general.c: Sort headers.
12897 * ax-gdb.h: Sort headers.
12898 * ax-gdb.c: Sort headers.
12899 * avr-tdep.c: Sort headers.
12900 * auxv.c: Sort headers.
12901 * auto-load.c: Sort headers.
12902 * arm-wince-tdep.c: Sort headers.
12903 * arm-tdep.c: Sort headers.
12904 * arm-symbian-tdep.c: Sort headers.
12905 * arm-pikeos-tdep.c: Sort headers.
12906 * arm-obsd-tdep.c: Sort headers.
12907 * arm-nbsd-tdep.c: Sort headers.
12908 * arm-nbsd-nat.c: Sort headers.
12909 * arm-linux-tdep.c: Sort headers.
12910 * arm-linux-nat.c: Sort headers.
12911 * arm-fbsd-tdep.c: Sort headers.
12912 * arm-fbsd-nat.c: Sort headers.
12913 * arm-bsd-tdep.c: Sort headers.
12914 * arch-utils.c: Sort headers.
12915 * arc-tdep.c: Sort headers.
12916 * arc-newlib-tdep.c: Sort headers.
12917 * annotate.h: Sort headers.
12918 * annotate.c: Sort headers.
12919 * amd64-windows-tdep.c: Sort headers.
12920 * amd64-windows-nat.c: Sort headers.
12921 * amd64-tdep.c: Sort headers.
12922 * amd64-sol2-tdep.c: Sort headers.
12923 * amd64-obsd-tdep.c: Sort headers.
12924 * amd64-obsd-nat.c: Sort headers.
12925 * amd64-nbsd-tdep.c: Sort headers.
12926 * amd64-nbsd-nat.c: Sort headers.
12927 * amd64-nat.c: Sort headers.
12928 * amd64-linux-tdep.c: Sort headers.
12929 * amd64-linux-nat.c: Sort headers.
12930 * amd64-fbsd-tdep.c: Sort headers.
12931 * amd64-fbsd-nat.c: Sort headers.
12932 * amd64-dicos-tdep.c: Sort headers.
12933 * amd64-darwin-tdep.c: Sort headers.
12934 * amd64-bsd-nat.c: Sort headers.
12935 * alpha-tdep.c: Sort headers.
12936 * alpha-obsd-tdep.c: Sort headers.
12937 * alpha-nbsd-tdep.c: Sort headers.
12938 * alpha-mdebug-tdep.c: Sort headers.
12939 * alpha-linux-tdep.c: Sort headers.
12940 * alpha-linux-nat.c: Sort headers.
12941 * alpha-bsd-tdep.c: Sort headers.
12942 * alpha-bsd-nat.c: Sort headers.
12943 * aix-thread.c: Sort headers.
12944 * agent.c: Sort headers.
12945 * addrmap.c: Sort headers.
12946 * ada-varobj.c: Sort headers.
12947 * ada-valprint.c: Sort headers.
12948 * ada-typeprint.c: Sort headers.
12949 * ada-tasks.c: Sort headers.
12950 * ada-lang.c: Sort headers.
12951 * aarch64-tdep.c: Sort headers.
12952 * aarch64-ravenscar-thread.c: Sort headers.
12953 * aarch64-newlib-tdep.c: Sort headers.
12954 * aarch64-linux-tdep.c: Sort headers.
12955 * aarch64-linux-nat.c: Sort headers.
12956 * aarch64-fbsd-tdep.c: Sort headers.
12957 * aarch64-fbsd-nat.c: Sort headers.
12958 * aarch32-linux-nat.c: Sort headers.
12959
699bd4cf
TT
129602019-04-04 Tom Tromey <tom@tromey.com>
12961
12962 * varobj.c (varobj_create): Update.
12963 * rust-exp.y (struct rust_parser) <update_innermost_block,
12964 lookup_symbol>: New methods.
12965 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
12966 Rename.
12967 (rust_parser::rust_lookup_type)
12968 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
12969 * printcmd.c (display_command, do_one_display): Update.
12970 * parser-defs.h (struct parser_state) <parser_state>: Add
12971 "tracker" parameter.
12972 (block_tracker): New member.
12973 (class innermost_block_tracker) <innermost_block_tracker>: Add
12974 "types" parameter.
12975 <reset>: Remove method.
12976 (innermost_block): Don't declare.
12977 (null_post_parser): Update.
12978 * parse.c (innermost_block): Remove global.
12979 (write_dollar_variable): Update.
12980 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
12981 Remove "tracker_types" parameter.
12982 (parse_expression): Add "tracker" parameter.
12983 (parse_expression_for_completion): Update.
12984 (null_post_parser): Add "tracker" parameter.
12985 * p-exp.y: Update rules.
12986 * m2-exp.y: Update rules.
12987 * language.h (struct language_defn) <la_post_parser>: Add
12988 "tracker" parameter.
12989 * go-exp.y: Update rules.
12990 * f-exp.y: Update rules.
12991 * expression.h (parse_expression, parse_exp_1): Add "tracker"
12992 parameter.
12993 * d-exp.y: Update rules.
12994 * c-exp.y: Update rules.
12995 * breakpoint.c (set_breakpoint_condition): Create an
12996 innermost_block_tracker.
12997 (watch_command_1): Likewise.
12998 * ada-lang.c (resolve): Add "tracker" parameter.
12999 (resolve_subexp): Likewise.
13000 * ada-exp.y (write_var_from_sym): Update.
13001
dac43e32
TT
130022019-04-04 Tom Tromey <tom@tromey.com>
13003
13004 * type-stack.h: New file.
13005 * type-stack.c: New file.
13006 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
13007 type-stack.h.
13008 (insert_into_type_stack, insert_type, push_type, push_type_int)
13009 (insert_type_address_space, pop_type, pop_type_int)
13010 (pop_typelist, pop_type_stack, append_type_stack)
13011 (push_type_stack, get_type_stack, push_typelist)
13012 (follow_type_instance_flags, follow_types): Don't declare.
13013 * parse.c (type_stack): Remove global.
13014 (parse_exp_in_context): Update.
13015 (insert_into_type_stack, insert_type, push_type, push_type_int)
13016 (insert_type_address_space, pop_type, pop_type_int)
13017 (pop_typelist, pop_type_stack, append_type_stack)
13018 (push_type_stack, get_type_stack, push_typelist)
13019 (follow_type_instance_flags, follow_types): Remove (moved to
13020 type-stack.c).
13021 * f-exp.y (type_stack): New global.
13022 Update rules.
13023 (push_kind_type, f_parse): Update.
13024 * d-exp.y (type_stack): New global.
13025 Update rules.
13026 (d_parse): Update.
13027 * c-exp.y (struct c_parse_state) <type_stack>: New member.
13028 Update rules.
13029 * Makefile.in (COMMON_SFILES): Add type-stack.c.
13030 (HFILES_NO_SRCDIR): Add type-stack.h.
13031
2a612529
TT
130322019-04-04 Tom Tromey <tom@tromey.com>
13033
13034 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
13035 (rust_parser::convert_ast_to_expression, rust_parse)
13036 (rust_lex_test_completion, rust_lex_tests): Update.
13037 * parser-defs.h (struct expr_completion_state): New.
13038 (struct parser_state) <parser_state>: Add completion parameter.
13039 <mark_struct_expression, mark_completion_tag>: New methods.
13040 <parse_completion, m_completion_state>: New members.
13041 (prefixify_expression, null_post_parser): Update.
13042 (mark_struct_expression, mark_completion_tag): Don't declare.
13043 * parse.c (parse_completion, expout_last_struct)
13044 (expout_tag_completion_type, expout_completion_name): Remove
13045 globals.
13046 (parser_state::mark_struct_expression)
13047 (parser_state::mark_completion_tag): Now methods.
13048 (prefixify_expression): Add last_struct parameter.
13049 (prefixify_subexp): Likewise.
13050 (parse_exp_1): Update.
13051 (parse_exp_in_context): Add cstate parameter. Update.
13052 (parse_expression_for_completion): Create an
13053 expr_completion_state.
13054 (null_post_parser): Add "completion" parameter.
13055 * p-exp.y: Update rules.
13056 (yylex): Update.
13057 * language.h (struct language_defn) <la_post_parser>: Add
13058 "completing" parameter.
13059 * go-exp.y: Update rules.
13060 (lex_one_token): Update.
13061 * expression.h (parse_completion): Don't declare.
13062 * d-exp.y: Update rules.
13063 (lex_one_token): Update rules.
13064 * c-exp.y: Update rules.
13065 (lex_one_token): Update.
13066 * ada-lang.c (resolve): Add "parse_completion" parameter.
13067 (resolve_subexp): Likewise.
13068 (ada_resolve_function): Likewise.
13069
43476f0b
TT
130702019-04-04 Tom Tromey <tom@tromey.com>
13071
13072 * parser-defs.h (struct parser_state) <start_arglist,
13073 end_arglist>: New methods.
13074 <arglist_len, m_funcall_chain>: New members.
13075 (arglist_len, start_arglist, end_arglist): Don't declare.
13076 * parse.c (arglist_len, funcall_chain): Remove global.
13077 (start_arglist, end_arglist): Remove functions.
13078 (parse_exp_in_context): Update.
13079 * p-exp.y: Update rules.
13080 * m2-exp.y: Update rules.
13081 * go-exp.y: Update rules.
13082 * f-exp.y: Update rules.
13083 * d-exp.y: Update rules.
13084 * c-exp.y: Update rules.
13085
5776fca3
TT
130862019-04-04 Tom Tromey <tom@tromey.com>
13087
13088 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
13089 lex_operator, push_back>: New methods.
13090 Update all rules.
13091 (rust_parser::lex_hex, lex_escape): Rename and update.
13092 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
13093 (rust_parser::lex_operator): Rename and update.
13094 (rust_parser::lex_number, rustyylex, rustyyerror)
13095 (rust_lex_test_init, rust_lex_test_sequence)
13096 (rust_lex_test_push_back, rust_lex_tests): Update.
13097 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
13098 parameter.
13099 <lexptr, prev_lexptr>: New members.
13100 (lexptr, prev_lexptr): Don't declare.
13101 * parse.c (lexptr, prev_lexptr): Remove globals.
13102 (parse_exp_in_context): Update.
13103 * p-exp.y (yylex, yyerror): Update.
13104 * m2-exp.y (parse_number, yylex, yyerror): Update.
13105 * go-exp.y (lex_one_token, yyerror): Update.
13106 * f-exp.y (match_string_literal, yylex, yyerror): Update.
13107 * d-exp.y (lex_one_token, yyerror): Update.
13108 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
13109 (lex_one_token, yyerror): Update.
13110 * ada-lex.l (YY_INPUT): Update.
13111 (rewind_to_char): Update.
13112 * ada-exp.y (yyerror): Update.
13113
8621b685
TT
131142019-04-04 Tom Tromey <tom@tromey.com>
13115
13116 * rust-exp.y (rustyylex, rust_lex_tests): Update.
13117 * parser-defs.h (struct parser_state) <parser_state>: Add new
13118 parameter.
13119 <comma_terminates>: New member.
13120 (comma_terminates): Don't declare global.
13121 * parse.c (comma_terminates): Remove global.
13122 (parse_exp_in_context): Update.
13123 * p-exp.y (yylex): Update.
13124 * m2-exp.y (yylex): Update.
13125 * go-exp.y (lex_one_token): Update.
13126 * f-exp.y (yylex): Update.
13127 * d-exp.y (lex_one_token): Update.
13128 * c-exp.y (lex_one_token): Update.
13129 * ada-lex.l: Update.
13130
28aaf3fd
TT
131312019-04-04 Tom Tromey <tom@tromey.com>
13132
13133 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
13134 (rustyylex, rust_lex_test_init, rust_lex_test_one)
13135 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
13136 * parser-defs.h (paren_depth): Don't declare.
13137 * parse.c (paren_depth): Remove global.
13138 (parse_exp_in_context): Update.
13139 * p-exp.y (paren_depth): New global.
13140 (pascal_parse): Initialize it.
13141 * m2-exp.y (paren_depth): New global.
13142 (m2_parse): Initialize it.
13143 * go-exp.y (paren_depth): New global.
13144 (go_parse): Initialize it.
13145 * f-exp.y (paren_depth): New global.
13146 (f_parse): Initialize it.
13147 * d-exp.y (paren_depth): New global.
13148 (d_parse): Initialize it.
13149 * c-exp.y (paren_depth): New global.
13150 (c_parse): Initialize it.
13151 * ada-lex.l (paren_depth): New global.
13152 (lexer_init): Initialize it.
13153
1e58a4a4
TT
131542019-04-04 Tom Tromey <tom@tromey.com>
13155
13156 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
13157 (rust_parser::convert_ast_to_type)
13158 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
13159 * parser-defs.h (struct parser_state) <parser_state>: Add
13160 parameters. Initialize new members.
13161 <expression_context_block, expression_context_pc>: New members.
13162 * parse.c (expression_context_block, expression_context_pc):
13163 Remove globals.
13164 (parse_exp_in_context): Update.
13165 * p-exp.y: Update all rules.
13166 (yylex): Update.
13167 * m2-exp.y: Update all rules.
13168 (yylex): Update.
13169 * go-exp.y (yylex): Update.
13170 * f-exp.y (yylex): Update.
13171 * d-exp.y: Update all rules.
13172 (yylex): Update.
13173 * c-exp.y: Update all rules.
13174 (lex_one_token, classify_name, yylex, c_parse): Update.
13175 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
13176
37eedb39
TT
131772019-04-04 Tom Tromey <tom@tromey.com>
13178
13179 * gdbarch.h, gdbarch.c: Rebuild.
13180 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
13181 * stap-probe.h:
13182 (struct stap_parse_info): Replace "parser_state" with
13183 "expr_builder".
13184 * parser-defs.h (struct expr_builder): Rename from "parser_state".
13185 (parser_state): New class.
13186 * parse.c (expr_builder): Rename.
13187 (expr_builder::release): Rename.
13188 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
13189 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
13190 (write_exp_elt_longcst, write_exp_elt_floatcst)
13191 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
13192 (write_exp_string_vector, write_exp_bitstring)
13193 (write_exp_msymbol, mark_struct_expression)
13194 (write_dollar_variable)
13195 (insert_type_address_space, increase_expout_size): Replace
13196 "parser_state" with "expr_builder".
13197 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
13198 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
13199 "parser_state" with "expr_builder".
13200
73923d7e
TT
132012019-04-04 Tom Tromey <tom@tromey.com>
13202
13203 * rust-exp.y: Replace "parse_language" with method call.
13204 * p-exp.y:
13205 (yylex): Replace "parse_language" with method call.
13206 * m2-exp.y:
13207 (yylex): Replace "parse_language" with method call.
13208 * go-exp.y (classify_name): Replace "parse_language" with method
13209 call.
13210 * f-exp.y (yylex): Replace "parse_language" with method call.
13211 * d-exp.y (lex_one_token): Replace "parse_language" with method
13212 call.
13213 * c-exp.y:
13214 (lex_one_token, classify_name, yylex): Replace "parse_language"
13215 with method call.
13216 * ada-exp.y (find_primitive_type, type_char)
13217 (type_system_address): Replace "parse_language" with method call.
13218
fa9f5be6
TT
132192019-04-04 Tom Tromey <tom@tromey.com>
13220
13221 * rust-exp.y: Replace "parse_gdbarch" with method call.
13222 * parse.c (write_dollar_variable, insert_type_address_space):
13223 Replace "parse_gdbarch" with method call.
13224 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
13225 call.
13226 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
13227 call.
13228 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
13229 "parse_gdbarch" with method call.
13230 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
13231 with method call.
13232 * f-exp.y (parse_type, parse_f_type, yylex): Replace
13233 "parse_gdbarch" with method call.
13234 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
13235 "parse_gdbarch" with method call.
13236 * c-exp.y (parse_type, parse_number, classify_name): Replace
13237 "parse_gdbarch" with method call.
13238 * ada-lex.l: Replace "parse_gdbarch" with method call.
13239 * ada-exp.y (parse_type, find_primitive_type, type_char)
13240 (type_system_address): Replace "parse_gdbarch" with method call.
13241
1201a264
TT
132422019-04-04 Tom Tromey <tom@tromey.com>
13243
13244 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
13245 * stap-probe.c (stap_parse_argument): Update.
13246 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
13247 initial_size parameter.
13248 * rust-exp.y (rust_lex_tests): Update.
13249 * parse.c (parser_state): Update.
13250 (parse_exp_in_context): Update.
13251 * parser-defs.h (struct parser_state) <parser_state>: Remove
13252 "initial_size" parameter.
13253
e3980ce2
TT
132542019-04-04 Tom Tromey <tom@tromey.com>
13255
13256 * parser-defs.h (increase_expout_size): Don't declare.
13257 * parse.c (increase_expout_size): Now static.
13258
e9f8e3f1
TS
132592019-04-04 Thomas Schwinge <thomas@codesourcery.com>
13260
13261 * gnu-nat.c (gnu_nat_target::wait): Fix
13262 target_waitstatus_to_string call.
13263
d7df6549
AB
132642019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
13265
13266 * eval.c (evaluate_subexp_standard): Handle internal functions
13267 during Fortran function call handling.
13268
8bdc1658
AB
132692019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
13270
13271 * NEWS: Mention new internal functions.
13272 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
13273 (read_base_type): Use dwarf2_init_complex_target_type.
13274 * value.c (creal_internal_fn): New function.
13275 (cimag_internal_fn): New function.
13276 (_initialize_values): Register new internal functions.
13277
c29705b7
PW
132782019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13279
13280 * infrun.c (stop_all_threads): If debug_infrun, always
13281 trace the wait status after wait_one, using
13282 target_waitstatus_to_string and target_pid_to_str.
13283 (handle_inferior_event): Replace various trace of
13284 wait status kind by a single trace.
13285 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
13286 wait status kind image by target_waitstatus_to_string.
13287 * target/waitstatus.c (target_waitstatus_to_string): Fix
13288 obsolete comment.
13289
05caa1d2
TT
132902019-04-01 Tom Tromey <tromey@adacore.com>
13291
13292 PR symtab/23331:
13293 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
13294
9d1447e0
SDJ
132952019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
13296 Pedro Alves <palves@redhat.com>
13297
13298 * top.c (quit_force): Call 'finalize_values'.
13299 * value.c (finalize_values): New function.
13300 * value.h (finalize_values): Declare.
13301
7734102d
EZ
133022019-03-30 Eli Zaretskii <eliz@gnu.org>
13303
13304 * NEWS: Announce $_gdb_major and $_gdb_minor.
13305
13306 * top.c (init_gdb_version_vars): New function.
13307 (gdb_init): Call init_gdb_version_vars.
13308
188e1fa9
TT
133092019-03-29 Tom Tromey <tromey@adacore.com>
13310
13311 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
13312 help text. Remove dead code.
13313
2880242d
KS
133142019-03-29 Keith Seitz <keiths@redhat.com>
13315
13316 From Siddhesh Poyarekar:
13317 * f-lang.h (f77_get_upperbound): Return LONGEST.
13318 (f77_get_lowerbound): Likewise.
13319 * f-typeprint.c (f_type_print_varspec_suffix): Expand
13320 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
13321 print them.
13322 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
13323 plongest to format print it.
13324 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
13325 (f77_get_upperbound): Likewise.
13326 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
13327 LOWER_BOUND to LONGEST.
13328 (f77_create_arrayprint_offset_tbl): Likewise.
13329
cc1defb1
KS
133302019-03-29 Keith Seitz <keiths@redhat.com>
13331
13332 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
13333 %s/pulongest for TYPE_LENGTH instead of %d in format
13334 strings.
13335 * ada-typerint.c (ada_print_type): Likewise.
13336 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
13337 * compile/compile-c-support.c (generate_register_struct): Likewise.
13338 * gdbtypes.c (recursive_dump_type): Likewise.
13339 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
13340 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
13341 instead of %d in format strings.
13342 * riscv-tdep.c (riscv_type_alignment): Cast second argument
13343 to std::min to ULONGEST.
13344 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
13345 instead of %d in format strings.
13346 * tracepoint.c (info_scope_command): Likewise.
13347 * typeprint.c (print_offset_data::update)
13348 (print_offset_data::finish): Likewise.
13349 * xtensa-tdep.c (xtensa_store_return_value)
13350 (xtensa_push_dummy_call): Likewise.
13351
e432ccf1
JT
133522019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
13353
13354 * windows-nat.c (display_selector): Fixed format specifications
13355 for 64-bit Cygwin.
13356
65d2b333
PW
133572019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13358
13359 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
13360
f489207e
SL
133612019-03-28 Sandra Loosemore <sandra@codesourcery.com>
13362
13363 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
13364 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
13365 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
13366 (nios2_linux_init_abi): Install it.
13367
bffa1015
AH
133682019-03-28 Alan Hayward <alan.hayward@arm.com>
13369
13370 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
13371
fc96163a
AH
133722019-03-28 Alan Hayward <alan.hayward@arm.com>
13373
13374 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
13375
20dc7e9b
PW
133762019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13377 Tom Tromey <tromey@adacore.com>
13378
13379 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
13380
7f5331a8
JB
133812019-03-26 Joel Brobecker <brobecker@adacore.com>
13382
13383 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
13384 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
13385 method to compute the bounds of range types. Also print "[evaluated]"
13386 if the bounds' values come from a dynamic evaluation.
13387
18c77628
AB
133882019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
13389
13390 * cp-valprint.c (cp_print_value_fields): Don't print trailing
13391 whitespace when pretty printing is on.
13392
53c973f2
AH
133932019-03-26 Alan Hayward <alan.hayward@arm.com>
13394
e79be6e5 13395 * ppc-linux-nat.c: Add include.
53c973f2 13396
d851aa71
AH
133972019-03-26 Alan Hayward <alan.hayward@arm.com>
13398
e79be6e5 13399 * NEWS: Mention AArch64 Pointer Authentication.
d851aa71 13400
2fe7bab7
AH
134012019-03-26 Alan Hayward <alan.hayward@arm.com>
13402
e79be6e5 13403 * arm-linux-nat.c: Add include.
2fe7bab7 13404
068ef30e
SM
134052019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
13406
13407 * source-cache.c (source_cache::get_source_lines): Re-read
13408 fullname after calling open_source_file.
13409
81a24d04
JB
134102019-03-25 John Baldwin <jhb@FreeBSD.org>
13411
13412 * NEWS: Mention TLS support for FreeBSD.
13413
79e7ae11
TT
134142019-03-25 Tom Tromey <tromey@adacore.com>
13415
13416 * minsyms.c (BUNCH_SIZE): Update comment.
13417 (~minimal_symbol_reader): Remove old comment.
13418 (compact_minimal_symbols): Update comment.
13419 (minimal_symbol_reader::install): Remove old comment. Update
13420 other comments.
13421
d45963c2
AH
134222019-03-25 Alan Hayward <alan.hayward@arm.com>
13423
13424 * s390-linux-nat.c: Add include.
13425
0f83012e
AH
134262019-03-25 Alan Hayward <alan.hayward@arm.com>
13427
13428 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
13429 Call linux_get_hwcap.
13430 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
13431 Likewise.
13432 (aarch64_linux_get_hwcap): Remove function.
13433 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
13434 declaration.
13435 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
13436 linux_get_hwcap.
13437 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
13438 * linux-tdep.c (linux_get_hwcap): Add function.
13439 (linux_get_hwcap2): Likewise.
13440 * linux-tdep.h (linux_get_hwcap): Add declaration.
13441 (linux_get_hwcap2): Likewise.
13442 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
13443 (ppc_linux_get_hwcap2): Likewise.
13444 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
13445 linux_get_hwcap.
13446 (ppc_linux_nat_target::insert_watchpoint): Likewise.
13447 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
13448 (ppc_linux_nat_target::read_description): Likewise.
13449 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
13450 * s390-linux-nat.c: Likewise.
13451 * s390-linux-tdep.c (s390_core_read_description): Likewise.
13452
6640a367
TT
134532019-03-24 Tom Tromey <tom@tromey.com>
13454
13455 * ada-lang.c (standard_lookup): Simplify initialization.
13456 (ada_lookup_symbol_nonlocal): Simplify return.
13457 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
13458 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
13459 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
13460 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
13461 initialization.
13462 * solib.c (solib_global_lookup): Simplify.
13463 * symtab.c (null_block_symbol): Remove.
13464 (symbol_cache_lookup): Simplify returns.
13465 (lookup_language_this): Simplify returns.
13466 (lookup_symbol_aux): Simplify return.
13467 (lookup_local_symbol): Simplify returns.
13468 (lookup_global_symbol_from_objfile): Simplify return.
13469 (lookup_symbol_in_objfile_symtabs)
13470 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
13471 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
13472 (lookup_static_symbol, lookup_global_symbol): Simplify return.
13473 * cp-namespace.c (cp_lookup_bare_symbol)
13474 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
13475 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
13476 (cp_lookup_nested_symbol): Don't use null_block_symbol.
13477 (cp_lookup_symbol_via_imports): Simplify initialization.
13478 (find_symbol_in_baseclass): Likewise.
13479 * symtab.h (null_block_symbol): Remove.
13480 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
13481 (d_lookup_nested_symbol, d_lookup_symbol_imports)
13482 (d_lookup_symbol_module): Likewise.
13483 (find_symbol_in_baseclass): Simplify initialization.
13484
a930ebcd
TT
134852019-03-24 Tom Tromey <tom@tromey.com>
13486
13487 * expression.h: Don't include symtab.h.
13488 (struct block): Forward declare.
13489
582942f4
TT
134902019-03-24 Tom Tromey <tom@tromey.com>
13491
13492 * c-exp.y (typebase): Remove casts.
13493 * gdbtypes.c (lookup_unsigned_typename, )
13494 (lookup_signed_typename): Remove cast.
13495 * eval.c (parse_to_comma_and_eval): Remove cast.
13496 * parse.c (write_dollar_variable): Remove cast.
13497 * block.h (struct block) <superblock>: Now const.
13498 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
13499 * psymtab.c (psym_map_matching_symbols): Make "block" const.
13500 (map_block): Make "block" const.
13501 * symfile.h (struct quick_symbol_functions)
13502 <map_matching_symbols>: Constify block argument to "callback".
13503 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
13504 const.
13505 (find_pc_sect_compunit_symtab): Make "b" const.
13506 (find_symbol_at_address): Likewise.
13507 (search_symbols): Likewise.
13508 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
13509 (dw2_debug_names_lookup_symbol): Likewise.
13510 (dw2_map_matching_symbols): Update.
13511 * p-valprint.c (pascal_val_print): Remove "block".
13512 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
13513 (aux_add_nonlocal_symbols): Make "block" const.
13514 (resolve_subexp): Remove cast.
13515 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
13516 const.
13517 (iterate_over_file_blocks): Likewise.
13518 * f-exp.y (%union) <bval>: Remove.
13519 * coffread.c (patch_opaque_types): Make "b" const.
13520 * spu-tdep.c (spu_catch_start): Make "block" const.
13521 * c-valprint.c (print_unpacked_pointer): Remove "block".
13522 * symmisc.c (dump_symtab_1): Make "b" const.
13523 (block_depth): Make "block" const.
13524 * d-exp.y (%union) <bval>: Remove.
13525 * cp-support.h (cp_lookup_rtti_type): Update.
13526 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
13527 * psymtab.c (psym_lookup_symbol): Make "block" const.
13528 (maintenance_check_psymtabs): Make "b" const.
13529 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
13530 (enumerate_locals, enumerate_args): Update.
13531 * python/py-symtab.c (stpy_global_block): Make "block" const.
13532 (stpy_static_block): Likewise.
13533 * inline-frame.c (block_starting_point_at): Make "new_block"
13534 const.
13535 * block.c (find_block_in_blockvector): Make return type const.
13536 (blockvector_for_pc_sect): Make "b" const.
13537 (find_block_in_blockvector): Make "b" const.
13538
7ad417dd
TT
135392019-03-23 Tom Tromey <tom@tromey.com>
13540
13541 * varobj.c (varobj_create): Update.
13542 * symfile.c (clear_symtab_users): Don't reset innermost_block.
13543 * printcmd.c (display_command, do_one_display): Don't reset
13544 innermost_block.
13545 * parser-defs.h (enum innermost_block_tracker_type): Move to
13546 expression.h.
13547 (innermost_block): Update comment.
13548 * parse.c (parse_exp_1): Add tracker_types parameter.
13549 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
13550 tracker_types parameter. Reset innermost_block.
13551 (parse_exp_in_context): Remove.
13552 (parse_expression_for_completion): Update.
13553 * objfiles.c (~objfile): Don't reset expression_context_block or
13554 innermost_block.
13555 * expression.h (enum innermost_block_tracker_type): Move from
13556 parser-defs.h.
13557 (parse_exp_1): Add tracker_types parameter.
13558 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
13559 reset innermost_block.
13560
b366c208
TT
135612019-03-23 Tom Tromey <tom@tromey.com>
13562
13563 * objfiles.h: Include bcache.h.
13564
9bb9b2f9
TT
135652019-03-23 Tom Tromey <tom@tromey.com>
13566
13567 * linespec.c (get_current_search_block): Use
13568 scoped_restore_current_language.
13569 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
13570
59c28372
AH
135712019-03-22 Alan Hayward <alan.hayward@arm.com>
13572 Jiong Wang <jiong.wang@arm.com>
13573
13574 * aarch64-linux-tdep.c
13575 (aarch64_linux_iterate_over_regset_sections): Check for pauth
13576 section.
13577 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
13578
17e116a7
AH
135792019-03-22 Alan Hayward <alan.hayward@arm.com>
13580 Jiong Wang <jiong.wang@arm.com>
13581
13582 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
13583 instructions.
13584 (aarch64_analyze_prologue_test): Add PACIASP test.
13585 (aarch64_prologue_prev_register): Unmask PC value.
13586
11e1b75f
AH
135872019-03-22 Alan Hayward <alan.hayward@arm.com>
13588 Jiong Wang <jiong.wang@arm.com>
13589
13590 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
13591 (aarch64_dwarf2_prev_register): Unmask PC value.
13592 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
13593 (aarch64_execute_dwarf_cfa_vendor_op): Check for
13594 DW_CFA_AARCH64_negate_ra_state.
13595 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
13596
34dcc7cf
AH
135972019-03-22 Alan Hayward <alan.hayward@arm.com>
13598 Jiong Wang <jiong.wang@arm.com>
13599
13600 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
13601 registers.
13602 (aarch64_pseudo_register_name): Likewise.
13603 (aarch64_pseudo_register_type): Likewise.
13604 (aarch64_pseudo_register_reggroup_p): Likewise.
13605 (aarch64_gdbarch_init): Add pauth registers.
13606 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
13607 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
13608 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
13609 (struct gdbarch_tdep): Add regnum for ra_state.
13610
1ef53e6b
AH
136112019-03-22 Alan Hayward <alan.hayward@arm.com>
13612 Jiong Wang <jiong.wang@arm.com>
13613
13614 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
13615
76bed0fd
AH
136162019-03-22 Alan Hayward <alan.hayward@arm.com>
13617 Jiong Wang <jiong.wang@arm.com>
13618
13619 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
13620 function.
13621 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
13622 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
13623 (aarch64_gdbarch_init): Add puth registers.
13624 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
13625 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
13626 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
13627
ee4fbcfa
AH
136282019-03-22 Alan Hayward <alan.hayward@arm.com>
13629 Jiong Wang <jiong.wang@arm.com>
13630
13631 * aarch64-linux-nat.c
13632 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
13633 * aarch64-linux-tdep.c
13634 (aarch64_linux_core_read_description): Likewise.
13635 (aarch64_linux_get_hwcap): New function.
13636 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
13637 (aarch64_linux_get_hwcap): New declaration.
13638
6dc0ebde
AH
136392019-03-22 Alan Hayward <alan.hayward@arm.com>
13640 Jiong Wang <jiong.wang@arm.com>
13641
13642 * aarch64-linux-nat.c
13643 (aarch64_linux_nat_target::read_description): Add pauth param.
13644 * aarch64-linux-tdep.c
13645 (aarch64_linux_core_read_description): Likewise.
13646 * aarch64-tdep.c (struct target_desc): Add in pauth.
13647 (aarch64_read_description): Add pauth param.
13648 (aarch64_gdbarch_init): Likewise.
13649 * aarch64-tdep.h (aarch64_read_description): Likewise.
13650 * arch/aarch64.c (aarch64_create_target_description): Likewise.
13651 * arch/aarch64.h (aarch64_create_target_description): Likewise.
13652 * features/Makefile: Add new files.
13653 * features/aarch64-pauth.c: New file.
13654 * features/aarch64-pauth.xml: New file.
13655
595915c1
TT
136562019-03-20 Tom Tromey <tromey@adacore.com>
13657
13658 * infrun.c (handle_inferior_event): Rename from
13659 handle_inferior_event_1. Create a scoped_value_mark.
13660 (handle_inferior_event): Remove.
13661
4c7d57e7
TT
136622019-03-19 Tom Tromey <tromey@adacore.com>
13663
13664 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
13665 * infrun.h (print_stop_event): Add "displays" parameter.
13666 * infrun.c (print_stop_event): Add "displays" parameter.
13667
cb246234
PA
136682019-03-19 Pedro Alves <palves@redhat.com>
13669
13670 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
13671 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
13672 to -1. Fix TABs vs spaces.
13673 (tui_ui_out::tui_ui_out): Don't initialize fields here.
13674 * tui/tui-out.h (tui_ui_out) Add intro comments.
13675 <m_line, m_start_of_line>: In-class initialize, and add describing
13676 comment.
13677
3a0e45b2
AH
136782019-03-18 Alan Hayward <alan.hayward@arm.com>
13679
13680 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
13681 variable names.
13682 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
13683
5371b850
PA
136842019-03-18 Pedro Alves <palves@redhat.com>
13685 Eli Zaretskii <eliz@gnu.org>
13686
13687 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
13688 m_line and m_start_of_line.
13689
b17c4cd0
EZ
136902019-03-18 Eli Zaretskii <eliz@gnu.org>
13691
13692 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
13693 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
13694 it returns a newline. This fixes a regression in TU mode, whereby
13695 the next line is output on the same screen line as the user input.
13696
4bd56d18
TT
136972019-03-18 Tom Tromey <tromey@adacore.com>
13698
13699 * minsyms.c (minimal_symbol_reader::install): Remove call to
13700 obstack_blank.
13701
55c10aca
PA
137022019-03-18 Pedro Alves <palves@redhat.com>
13703
13704 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
13705 New globals.
13706 (apply_style): New, factored out from ...
13707 (apply_ansi_escape): ... this. Handle reverse video mode.
13708 (tui_set_reverse_mode): New function.
13709 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
13710 * tui/tui-winsource.c (tui_show_source_line): Use
13711 tui_set_reverse_mode instead of setting A_STANDOUT.
13712 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
13713 New setter methods.
13714
647bb750
HD
137152019-03-18 Hannes Domani <ssbssa@yahoo.de>
13716
13717 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
13718 Handle tabs.
13719
bff8c71f
TT
137202019-03-18 Tom Tromey <tromey@adacore.com>
13721
13722 * ada-lang.c (empty_array): Add "high" parameter.
13723 (ada_evaluate_subexp): Update.
13724
58785d98
ST
137252019-03-17 Sergei Trofimovich <siarheit@google.com>
13726
13727 * unittests/string_view-selftests.c: Define
13728 _initialize_string_view_selftests unconditionally.
13729
d4cbef22
ВМ
137302019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
13731
13732 PR gdb/24350
13733 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
13734
fce4c071
ВМ
137352019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
13736
13737 PR gdb/24351
13738 * windows-nat.c (display_selector): Fix format specifiers.
13739
f7f0a123
EZ
137402019-03-17 Eli Zaretskii <eliz@gnu.org>
13741
13742 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
13743 tui_refill_source_window instead of tui_refresh_win, to update the
13744 current execution line. This fixes redisplay of the current line
13745 when stepping through the code with "next" or "step".
13746
ab42892f
EZ
137472019-03-16 Eli Zaretskii <eliz@gnu.org>
13748
13749 * source-cache.c (source_cache::get_source_lines): Call
13750 find_source_lines to initialize s->nlines. This fixes vertical
13751 scrolling of TUI source window when the DOWN arrow is pressed.
13752
8d8c087f
PW
137532019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13754
13755 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
13756 linux-thread-db.c (_initialize_thread_db): Likewise.
13757
798e1c30
EZ
137582019-03-16 Eli Zaretskii <eliz@gnu.org>
13759
13760 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
13761 wclrtoeol in tui_show_source_line". This reverts changes made in
13762 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
13763
eefba3da
TT
137642019-03-15 Tom Tromey <tom@tromey.com>
13765
13766 * symtab.h (struct minimal_symbol): Derive from
13767 general_symbol_info.
13768 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
13769 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
13770 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
13771 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
13772 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
13773 (MSYMBOL_SEARCH_NAME): Update.
13774 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
13775 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
13776 * minsyms.c (minimal_symbol_reader::record_full): Update.
13777
0de2420c
TT
137782019-03-15 Tom Tromey <tom@tromey.com>
13779
13780 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
13781
042d75e4
TT
137822019-03-15 Tom Tromey <tom@tromey.com>
13783
13784 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
13785 unique_xmalloc_ptr.
13786 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
13787 Update.
13788 * minsyms.c (lookup_minimal_symbol_by_pc_section)
13789 (build_minimal_symbol_hash_tables)
13790 (minimal_symbol_reader::install): Update.
13791
db92718b
TT
137922019-03-15 Tom Tromey <tom@tromey.com>
13793
13794 * symtab.c (create_demangled_names_hash): Update.
13795 (symbol_set_names): Update.
13796 * objfiles.h (struct objfile_per_bfd_storage)
13797 <demangled_names_hash>: Now an htab_up.
13798 * objfiles.c (objfile_per_bfd_storage): Simplify.
13799
d6797f46
TT
138002019-03-15 Tom Tromey <tom@tromey.com>
13801
13802 * objfiles.h (struct objfile_per_bfd_storage): Declare
13803 destructor.
13804 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
13805 New.
13806 (get_objfile_bfd_data): Use new. Don't initialize
13807 language_of_main.
13808 (free_objfile_per_bfd_storage): Remove.
13809 (objfile_bfd_data_free, objfile::~objfile): Use delete.
13810
741d7538
TT
138112019-03-15 Tom Tromey <tom@tromey.com>
13812
13813 * symfile.c (reread_symbols): Update.
13814 * objfiles.c (objfile::objfile): Update.
13815 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
13816 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
13817 comment.
13818 (minimal_symbol_reader::install): Update.
13819 (terminate_minimal_symbol_table): Remove.
13820 * jit.c (jit_object_close_impl): Update.
13821
788c80d1
TT
138222019-03-15 Tom Tromey <tom@tromey.com>
13823
13824 * minsyms.c (minimal_symbol_reader::record_full): Remove some
13825 initializations.
13826
1b7a07cb
TT
138272019-03-15 Tom Tromey <tom@tromey.com>
13828
13829 * objfiles.h (struct objfile_per_bfd_storage)
13830 <demangled_hash_languages>: Now a bitset.
13831 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
13832 (lookup_minimal_symbol): Update.
13833
3db066bc
TT
138342019-03-15 Tom Tromey <tom@tromey.com>
13835
13836 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
13837 Don't return the symbol.
13838 * coffread.c (record_minimal_symbol): Use record_full.
13839
3fff2c37
EZ
138402019-03-14 Eli Zaretskii <eliz@gnu.org>
13841
13842 The MS-Windows port of ncurses fails to switch to a color pair if
13843 one or both of the colors are the implicit default colors. This
13844 change records the default colors when TUI is initialized, and
13845 then specifies them explicitly when a color pair uses the default
13846 colors. This allows color styling in TUI mode on MS-Windows.
13847
13848 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
13849 ncurses_norm_attr.
13850 (tui_initialize_io) [__MINGW32__]: Record the default terminal
13851 colors in ncurses_norm_attr.
13852 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
13853 "none", replace it with the default color recorded in
13854 ncurses_norm_attr.
13855
3b336828
TT
138562019-03-14 Tom Tromey <tromey@adacore.com>
13857
13858 * source-cache.h (class source_cache) <get_source_lines>: Return
13859 std::string.
13860 * source-cache.c (source_cache::extract_lines): Handle case where
13861 first_pos==npos. Return std::string.
13862 (source_cache::get_source_lines): Update.
13863
d085f989
TT
138642019-03-14 Tom Tromey <tromey@adacore.com>
13865
13866 * NEWS: Add item for "style sources" commands.
13867 * source-cache.c (source_cache::get_source_lines): Check
13868 source_styling.
13869 * cli/cli-style.c (source_styling): New global.
13870 (_initialize_cli_style): Add "style sources" commands.
13871 (show_style_sources): New function.
13872 * cli/cli-style.h (source_styling): Declare.
13873
6f11e682
TT
138742019-03-14 Pedro Alves <palves@redhat.com>
13875 Tom Tromey <tromey@adacore.com>
13876
13877 * tui/tui-winsource.h (tui_refill_source_window): Declare.
13878 * tui/tui-winsource.c (tui_refill_source_window): New function,
13879 from...
13880 (tui_horizontal_source_scroll): ... here. Move some logic.
13881 * cli/cli-style.c (set_style_enabled): Notify new observable.
13882 * tui/tui-hooks.c (tui_redisplay_source): New function.
13883 (tui_attach_detach_observers): Attach or detach
13884 tui_redisplay_source.
13885 * observable.h (source_styling_changed): New observable.
13886 * observable.c: Define source_styling_changed observable.
13887
a068643d
TT
138882019-03-13 Tom Tromey <tromey@adacore.com>
13889
13890 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
13891 (i386_gnu_nat_target::store_registers): Update.
13892 * target-debug.h (target_debug_print_std_string): New macro.
13893 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
13894 * windows-tdep.c (display_one_tib): Update.
13895 * tui/tui-stack.c (tui_make_status_line): Update.
13896 * top.c (print_inferior_quit_action): Update.
13897 * thread.c (thr_try_catch_cmd): Update.
13898 (add_thread_with_info): Update.
13899 (thread_target_id_str): Update.
13900 (thr_try_catch_cmd): Update.
13901 (thread_command): Update.
13902 (thread_find_command): Update.
13903 * record-btrace.c (record_btrace_target::info_record)
13904 (record_btrace_resume_thread, record_btrace_target::resume)
13905 (record_btrace_cancel_resume, record_btrace_step_thread)
13906 (record_btrace_target::wait, record_btrace_target::wait)
13907 (record_btrace_target::wait, record_btrace_target::stop): Update.
13908 * progspace.c (print_program_space): Update.
13909 * process-stratum-target.c
13910 (process_stratum_target::thread_address_space): Update.
13911 * linux-fork.c (linux_fork_mourn_inferior)
13912 (detach_checkpoint_command, info_checkpoints_command)
13913 (linux_fork_context): Update.
13914 (linux_fork_detach): Update.
13915 (class scoped_switch_fork_info): Update.
13916 (delete_checkpoint_command): Update.
13917 * infrun.c (follow_fork_inferior): Update.
13918 (follow_fork_inferior): Update.
13919 (proceed_after_vfork_done): Update.
13920 (handle_vfork_child_exec_or_exit): Update.
13921 (follow_exec): Update.
13922 (displaced_step_prepare_throw): Update.
13923 (displaced_step_restore): Update.
13924 (start_step_over): Update.
13925 (resume_1): Update.
13926 (clear_proceed_status_thread): Update.
13927 (proceed): Update.
13928 (print_target_wait_results): Update.
13929 (do_target_wait): Update.
13930 (context_switch): Update.
13931 (stop_all_threads): Update.
13932 (restart_threads): Update.
13933 (finish_step_over): Update.
13934 (handle_signal_stop): Update.
13935 (switch_back_to_stepped_thread): Update.
13936 (keep_going_pass_signal): Update.
13937 (print_exited_reason): Update.
13938 (normal_stop): Update.
13939 * inferior.c (inferior_pid_to_str): Change return type.
13940 (print_selected_inferior): Update.
13941 (add_inferior): Update.
13942 (detach_inferior): Update.
13943 * dummy-frame.c (fprint_dummy_frames): Update.
13944 * dcache.c (dcache_info_1): Update.
13945 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
13946 (btrace_fetch, btrace_clear): Update.
13947 * linux-tdep.c (linux_core_pid_to_str): Change return type.
13948 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
13949 type.
13950 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
13951 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
13952 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
13953 * gdbarch.c, gdbarch.h: Rebuild.
13954 * gdbarch.sh (core_pid_to_str): Change return type.
13955 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
13956 return type.
13957 (windows_nat_target::pid_to_str): Change return type.
13958 (windows_delete_thread): Update.
13959 (windows_nat_target::attach): Update.
13960 (windows_nat_target::files_info): Update.
13961 * target-delegates.c: Rebuild.
13962 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
13963 return type.
13964 (sol_thread_target::pid_to_str): Change return type.
13965 * remote.c (class remote_target) <pid_to_str>: Change return
13966 type.
13967 (remote_target::pid_to_str): Change return type.
13968 (extended_remote_target::attach, remote_target::remote_stop_ns)
13969 (remote_target::remote_notif_remove_queued_reply)
13970 (remote_target::push_stop_reply, remote_target::disable_btrace):
13971 Update.
13972 (extended_remote_target::attach): Update.
13973 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
13974 type.
13975 (gdbsim_target::pid_to_str): Change return type.
13976 * ravenscar-thread.c (struct ravenscar_thread_target)
13977 <pid_to_str>: Change return type.
13978 (ravenscar_thread_target::pid_to_str): Change return type.
13979 * procfs.c (class procfs_target) <pid_to_str>: Change return
13980 type.
13981 (procfs_target::pid_to_str): Change return type.
13982 (procfs_target::attach): Update.
13983 (procfs_target::detach): Update.
13984 (procfs_target::fetch_registers): Update.
13985 (procfs_target::store_registers): Update.
13986 (procfs_target::wait): Update.
13987 (procfs_target::files_info): Update.
13988 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
13989 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
13990 return type.
13991 (nto_procfs_target::pid_to_str): Change return type.
13992 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
13993 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
13994 return type.
13995 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
13996 (exit_lwp): Update.
13997 (attach_proc_task_lwp_callback, get_detach_signal)
13998 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
13999 (linux_nat_target::resume, wait_lwp, stop_callback)
14000 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
14001 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
14002 (linux_nat_wait_1, resume_stopped_resumed_lwps)
14003 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
14004 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
14005 type.
14006 (inf_ptrace_target::attach): Update.
14007 (inf_ptrace_target::files_info): Update.
14008 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
14009 type.
14010 (go32_nat_target::pid_to_str): Change return type.
14011 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
14012 (gnu_nat_target::wait): Update.
14013 (gnu_nat_target::wait): Update.
14014 (gnu_nat_target::resume): Update.
14015 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
14016 (fbsd_nat_target::wait): Update.
14017 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
14018 type.
14019 (darwin_nat_target::attach): Update.
14020 * corelow.c (class core_target) <pid_to_str>: Change return type.
14021 (core_target::pid_to_str): Change return type.
14022 * target.c (normal_pid_to_str): Change return type.
14023 (default_pid_to_str): Likewise.
14024 (target_pid_to_str): Change return type.
14025 (target_translate_tls_address): Update.
14026 (target_announce_detach): Update.
14027 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
14028 return type.
14029 (bsd_uthread_target::pid_to_str): Change return type.
14030 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
14031 type.
14032 (bsd_kvm_target::pid_to_str): Change return type.
14033 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
14034 return type.
14035 (aix_thread_target::pid_to_str): Change return type.
14036 * target.h (struct target_ops) <pid_to_str>: Change return type.
14037 (target_pid_to_str, normal_pid_to_str): Likewise.
14038 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
14039 type.
14040 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
14041 type.
14042 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
14043 return type.
14044 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
14045 type.
14046 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
14047 type.
14048 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
14049 return type.
14050
b4be1b06
SM
140512019-03-13 Simon Marchi <simon.marchi@ericsson.com>
14052
14053 * NEWS: Mention that the new default MI version is 3. Mention
14054 changes to the output of commands and events that deal with
14055 multi-location breakpoints.
14056 * breakpoint.c: Include "mi/mi-out.h".
14057 (print_one_breakpoint): Change output syntax if using MI version
14058 >= 3.
14059 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
14060 New.
14061 (mi_multi_location_breakpoint_output_fixed): New.
14062 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
14063 (mi_cmd_fix_multi_location_breakpoint_output): New.
14064 (mi_multi_location_breakpoint_output_fixed): New.
14065 * mi/mi-cmds.c (mi_cmds): Register command
14066 -fix-multi-location-breakpoint-output.
14067 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
14068 interpreter "mi".
14069
8e5e5494
SM
140702019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
14071
14072 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
14073 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
14074 instantiate mi_ui_out based on interpreter name.
14075 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
14076 * mi/mi-main.c (mi_load_progress): Likewise.
14077
197df35e
JB
140782019-03-12 John Baldwin <jhb@FreeBSD.org>
14079
14080 * NEWS: Combine separate "New targets" sections for 8.3.
14081
8399425f
JB
140822019-03-12 John Baldwin <jhb@FreeBSD.org>
14083
14084 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
14085 (ppcfbsd_init_abi): Install gdbarch
14086 "fetch_tls_load_module_address" and "get_thread_local_address"
14087 methods.
14088
b0f87ed0
JB
140892019-03-12 John Baldwin <jhb@FreeBSD.org>
14090
14091 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
14092 (riscv_fbsd_init_abi): Install gdbarch
14093 "fetch_tls_load_module_address" and "get_thread_local_address"
14094 methods.
14095
ce25aa57
JB
140962019-03-12 John Baldwin <jhb@FreeBSD.org>
14097
14098 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
14099 (i386fbsd_init_abi): Install gdbarch
14100 "fetch_tls_load_module_address" and "get_thread_local_address"
14101 methods.
14102
f5424cfa
JB
141032019-03-12 John Baldwin <jhb@FreeBSD.org>
14104
14105 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
14106 (amd64fbsd_init_abi): Install gdbarch
14107 "fetch_tls_load_module_address" and "get_thread_local_address"
14108 methods.
14109
945f3901
JB
141102019-03-12 John Baldwin <jhb@FreeBSD.org>
14111
14112 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
14113 (struct fbsd_pspace_data): New type.
14114 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
14115 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
14116 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
14117 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
14118 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
14119
ef0bd204
JB
141202019-03-12 John Baldwin <jhb@FreeBSD.org>
14121
14122 * gdbtypes.c (lookup_struct_elt): New function.
14123 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
14124 * gdbtypes.h (struct struct_elt): New type.
14125 (lookup_struct_elt): New prototype.
14126
36c53a02
JB
141272019-03-12 John Baldwin <jhb@FreeBSD.org>
14128
14129 * gdbtypes.c (lookup_struct_elt_type): Update comment and
14130 remove disabled code block.
14131
6e056c81
JB
141322019-03-12 John Baldwin <jhb@FreeBSD.org>
14133
14134 * gdbarch.sh (get_thread_local_address): New method.
14135 * gdbarch.h, gdbarch.c: Regenerate.
14136 * target.c (target_translate_tls_address): Use
14137 gdbarch_get_thread_local_address if present instead of
14138 target::get_thread_local_address.
14139
cd250a18
JB
141402019-03-12 John Baldwin <jhb@FreeBSD.org>
14141
14142 * target.h (target::get_thread_local_address): Update comment.
14143
df22c1e5
JB
141442019-03-12 John Baldwin <jhb@FreeBSD.org>
14145
14146 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
14147 objfile->separate_debug_objfile_backlink if not NULL.
14148
dd6876c9
JB
141492019-03-12 John Baldwin <jhb@FreeBSD.org>
14150
14151 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
14152 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
14153 (amd64bsd_store_inferior_registers): Likewise.
14154 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
14155 Enable segment base registers.
14156 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
14157 PT_GETFSBASE and PT_GETGSBASE.
14158 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
14159 PT_SETGSBASE.
14160 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
14161 segment base registers.
14162 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
14163
1163a4b7
JB
141642019-03-12 John Baldwin <jhb@FreeBSD.org>
14165
14166 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
14167 Update calls to i386_target_description to add 'segments'
14168 parameter.
14169 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
14170 add segment base registers.
14171 * arch/i386.c (i386_create_target_description): Add 'segments'
14172 parameter to enable segment base registers.
14173 * arch/i386.h (i386_create_target_description): Likewise.
14174 * features/i386/32bit-segments.xml: New file.
14175 * features/i386/32bit-segments.c: Generate.
14176 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
14177 call to i386_target_description to add 'segments' parameter.
14178 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
14179 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
14180 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
14181 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
14182 if feature is present.
14183 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
14184 Add 'segments' parameter to call to i386_target_description.
14185 (i386_target_description): Add 'segments' parameter to enable
14186 segment base registers.
14187 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
14188 to call to i386_target_description.
14189 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
14190 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
14191 Define I386_NUM_REGS.
14192 (i386_target_description): Add 'segments' parameter to enable
14193 segment base registers.
14194
3a350822
EZ
141952019-03-12 Eli Zaretskii <eliz@gnu.org>
14196
14197 PR/24325
14198 * source-cache.c: #undef open and close, to avoid unresolved
14199 externals during linking.
14200
ffdd69cf
TT
142012019-03-12 Tom Tromey <tromey@adacore.com>
14202
14203 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
14204 const. Add initializers.
14205 (_initialize_remote): Don't initialize ptid globals.
14206
ec148c57
PA
142072019-03-12 Pedro Alves <palves@redhat.com>
14208
14209 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
14210
32764270
PA
142112019-03-12 Pedro Alves <palves@redhat.com>
14212
14213 * cp-name-parser.y (main): Remove unused 'len' variable.
14214
17547186
TT
142152019-03-12 Tom Tromey <tromey@adacore.com>
14216
14217 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
14218 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
14219
d3a70e03
TT
142202019-03-12 Tom Tromey <tromey@adacore.com>
14221
14222 * linux-nat.c (iterate_over_lwps): Update.
14223 (stop_callback): Remove parameter.
14224 (stop_wait_callback, detach_callback, resume_set_callback)
14225 (select_singlestep_lwp_callback, set_ignore_sigint)
14226 (status_callback, resumed_callback, resume_clear_callback)
14227 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
14228 data parameter.
14229 (linux_nat_target::detach, linux_nat_target::resume)
14230 (linux_stop_and_wait_all_lwps, select_event_lwp)
14231 (linux_nat_filter_event, linux_nat_wait_1)
14232 (linux_nat_target::kill, linux_nat_target::stop)
14233 (linux_nat_target::stop): Update.
14234 (linux_nat_resume_callback): Change type.
14235 (resume_stopped_resumed_lwps, count_events_callback)
14236 (select_event_lwp_callback): Likewise.
14237 (linux_stop_lwp, linux_nat_stop_lwp): Update.
14238 * arm-linux-nat.c (struct update_registers_data): Remove.
14239 (update_registers_callback): Change type.
14240 (arm_linux_insert_hw_breakpoint1): Update.
14241 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
14242 parameter.
14243 (x86_linux_dr_set_addr): Update.
14244 (x86_linux_dr_set_control): Update.
14245 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
14246 (iterate_over_lwps): Use gdb::function_view.
14247 * nat/aarch64-linux-hw-point.c (struct
14248 aarch64_dr_update_callback_param): Remove.
14249 (debug_reg_change_callback): Change type.
14250 (aarch64_notify_debug_reg_change): Update.
14251 * s390-linux-nat.c (s390_refresh_per_info): Update.
14252
82cb27ff
TT
142532019-03-11 Tom Tromey <tromey@adacore.com>
14254
14255 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
14256 redundant assignment to "this_cu".
14257
568c0683
SM
142582019-03-08 Simon Marchi <simon.marchi@efficios.com>
14259
14260 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
14261
f09ce22d
SM
142622019-03-08 Simon Marchi <simon.marchi@efficios.com>
14263
14264 * gdbtypes.c (rank_one_type_parm_set): New function extracted
14265 from...
14266 (rank_one_type): ... this.
14267
595f96a9
SM
142682019-03-08 Simon Marchi <simon.marchi@efficios.com>
14269
14270 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
14271 from...
14272 (rank_one_type): ... this.
14273
2598a94b
SM
142742019-03-08 Simon Marchi <simon.marchi@efficios.com>
14275
14276 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
14277 from...
14278 (rank_one_type): ... this.
14279
7f17b20d
SM
142802019-03-08 Simon Marchi <simon.marchi@efficios.com>
14281
14282 * gdbtypes.c (rank_one_type_parm_float): New function extracted
14283 from...
14284 (rank_one_type): ... this.
14285
2c509035
SM
142862019-03-08 Simon Marchi <simon.marchi@efficios.com>
14287
14288 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
14289 from...
14290 (rank_one_type): ... this.
14291
0dd322dc
SM
142922019-03-08 Simon Marchi <simon.marchi@efficios.com>
14293
14294 * gdbtypes.c (rank_one_type_parm_range): New function extracted
14295 from...
14296 (rank_one_type): ... this.
14297
41ea4728
SM
142982019-03-08 Simon Marchi <simon.marchi@efficios.com>
14299
14300 * gdbtypes.c (rank_one_type_parm_char): New function extracted
14301 from...
14302 (rank_one_type): ... this.
14303
793cd1d2
SM
143042019-03-08 Simon Marchi <simon.marchi@efficios.com>
14305
14306 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
14307 from...
14308 (rank_one_type): ... this.
14309
34910087
SM
143102019-03-08 Simon Marchi <simon.marchi@efficios.com>
14311
14312 * gdbtypes.c (rank_one_type_parm_int): New function extracted
14313 from...
14314 (rank_one_type): ... this.
14315
f1f832d6
SM
143162019-03-08 Simon Marchi <simon.marchi@efficios.com>
14317
14318 * gdbtypes.c (rank_one_type_parm_func): New function extracted
14319 from...
14320 (rank_one_type): ... this.
14321
b9f4512f
SM
143222019-03-08 Simon Marchi <simon.marchi@efficios.com>
14323
14324 * gdbtypes.c (rank_one_type_parm_array): New function extracted
14325 from...
14326 (rank_one_type): ... this.
14327
9293fc63
SM
143282019-03-08 Simon Marchi <simon.marchi@efficios.com>
14329
14330 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
14331 from...
14332 (rank_one_type): ... this.
14333
e3abbe7e
PW
143342019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14335
14336 * inferior.c (initialize_inferiors): Ensure 'help set/show print
14337 inferior-events' shows the example events.
14338
e4adb939
EZ
143392019-03-08 Eli Zaretskii <eliz@gnu.org>
14340
14341 Support styling on native MS-Windows console
14342
14343 PR/24315
14344 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
14345 on MS-Windows if $TERM is not defined.
14346
14347 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
14348
14349 * posix-hdep.c (gdb_console_fputs):
14350 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
14351 functions.
14352 * ui-file.h (gdb_console_fputs): Add prototype.
14353
14354 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
14355 back to fputs only if the former returns zero.
14356
25629dfd
TT
143572019-03-07 Tom Tromey <tom@tromey.com>
14358
14359 * symmisc.c (print_symbol_bcache_statistics): Update.
14360 (print_objfile_statistics): Update.
14361 * symfile.c (allocate_symtab): Update.
14362 * stabsread.c: Don't include bcache.h.
14363 * psymtab.h (struct psymbol_bcache): Don't declare.
14364 (class psymtab_storage) <psymbol_cache>: Now a bcache.
14365 (psymbol_bcache_init, psymbol_bcache_free)
14366 (psymbol_bcache_get_bcache): Don't declare.
14367 * psymtab.c (struct psymbol_bcache): Remove.
14368 (psymtab_storage::psymtab_storage): Update.
14369 (psymtab_storage::~psymtab_storage): Update.
14370 (psymbol_bcache_init, psymbol_bcache_free)
14371 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
14372 (add_psymbol_to_bcache): Update.
14373 (allocate_psymtab): Update.
14374 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
14375 macro_cache>: No longer pointers.
14376 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
14377 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
14378 * macrotab.c (macro_bcache): Update.
14379 * macroexp.c: Don't include bcache.h.
14380 * gdbtypes.c (check_types_worklist): Update.
14381 (types_deeply_equal): Remove TRY/CATCH. Update.
14382 * elfread.c (elf_symtab_read): Update.
14383 * dwarf2read.c: Don't include bcache.h.
14384 * buildsym.c (buildsym_compunit::get_macro_table): Update.
14385 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
14386 (print_bcache_statistics, bcache_memory_used): Don't declare.
14387 (struct bcache): Move from bcache.c. Add constructor, destructor,
14388 methods. Rename all data members.
14389 * bcache.c (struct bcache): Move to bcache.h.
14390 (bcache::expand_hash_table): Rename from expand_hash_table.
14391 (bcache): Remove.
14392 (bcache::insert): Rename from bcache_full.
14393 (bcache::compare): Rename from bcache_compare.
14394 (bcache_xmalloc): Remove.
14395 (bcache::~bcache): Rename from bcache_xfree.
14396 (bcache::print_statistics): Rename from print_bcache_statistics.
14397 (bcache::memory_used): Rename from bcache_memory_used.
14398
fe726667
PA
143992019-03-07 Pedro Alves <palves@redhat.com>
14400
14401 * infrun.c (normal_stop): Also check for
14402 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
14403
7584bb30
AB
144042019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
14405
14406 * f-lang.c (value_from_host_double): Moved to...
14407 * value.c (value_from_host_double): ...here.
14408 * value.h (value_from_host_double): Declare.
14409 * guile/scm-math.c (vlscm_convert_typed_number): Use
14410 value_from_host_double.
14411 (vlscm_convert_number): Likewise.
14412 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
14413 * python/py-value.c (convert_value_from_python): Likewise.
14414
a7b1986e
TT
144152019-03-06 Tom Tromey <tom@tromey.com>
14416
14417 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
14418
0ccf4211
TT
144192019-03-06 Tom Tromey <tom@tromey.com>
14420
14421 * utils.h (free_current_contents): Don't declare.
14422 * utils.c (free_current_contents): Remove.
14423
fe7b42e5
TT
144242019-03-06 Tom Tromey <tom@tromey.com>
14425
14426 * top.c (quit_force): Update.
14427 * main.c (captured_command_loop): Update.
14428 * common/new-op.c (operator new): Update.
14429 * common/common-exceptions.c (struct catcher)
14430 <save_cleanup_chain>: Remove member.
14431 (exceptions_state_mc_init): Update.
14432 (exception_try_scope_entry): Return nullptr.
14433 (exception_try_scope_exit, exception_rethrow)
14434 (throw_exception_sjlj, throw_exception_cxx): Update.
14435 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
14436 (all_cleanups, do_cleanups, discard_cleanups)
14437 (discard_final_cleanups, save_cleanups, save_final_cleanups)
14438 (restore_cleanups, restore_final_cleanups): Don't declare.
14439 (do_final_cleanups): Remove parameter.
14440 * common/cleanups.c (cleanup_chain, make_cleanup)
14441 (make_cleanup_dtor, all_cleanups, do_cleanups)
14442 (discard_my_cleanups, discard_cleanups)
14443 (discard_final_cleanups, save_my_cleanups, save_cleanups)
14444 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
14445 (null_cleanup): Remove.
14446 (do_final_cleanups): Remove parameter.
14447
c6321f19
TT
144482019-03-06 Tom Tromey <tom@tromey.com>
14449
14450 * remote.c (remote_target::remote_parse_stop_reply): Use
14451 unique_xmalloc_ptr.
14452
61b30099
TT
144532019-03-06 Tom Tromey <tom@tromey.com>
14454
14455 * stabsread.c (struct stabs_field_info): Rename from field_info.
14456 <list, fnlist>: Add initializers.
14457 <obstack>: New member.
14458 (read_member_functions, read_struct_fields, read_baseclasses):
14459 Allocate on obstack. Don't use cleanups.
14460 (read_one_struct_field, read_member_functions, read_struct_fields)
14461 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
14462 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
14463 (read_struct_type): Update.
14464
6cceac94
TT
144652019-03-06 Tom Tromey <tom@tromey.com>
14466
14467 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
14468 * common/filestuff.h (make_cleanup_close): Don't declare.
14469 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
14470 Remove.
14471
72412762
TT
144722019-03-06 Tom Tromey <tom@tromey.com>
14473
14474 * solib-aix.c: Use make_scope_exit.
14475
2b6ff1c0
TT
144762019-03-06 Tom Tromey <tom@tromey.com>
14477
14478 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
14479 Use make_scope_exit.
14480
d01c5877
TT
144812019-03-06 Tom Tromey <tom@tromey.com>
14482
14483 * solib-svr4.c (disable_probes_interface): Remove parameter.
14484 (svr4_handle_solib_event): Use make_scope_exit.
14485
32603266
TT
144862019-03-06 Tom Tromey <tom@tromey.com>
14487
14488 * remote.c (struct stop_reply_deleter): Remove.
14489 (stop_reply_up): Update.
14490 (struct stop_reply): Derive from notif_event. Don't typedef.
14491 <regcache>: Now a std::vector.
14492 (stop_reply_xfree): Remove.
14493 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
14494 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
14495 (remote_target::discard_pending_stop_replies): Use delete.
14496 (remote_target::remote_parse_stop_reply): Update.
14497 (remote_target::process_stop_reply): Update.
14498 * remote-notif.h (struct notif_event): Add virtual destructor.
14499 Remove "dtr" member.
14500 (struct notif_client) <alloc_event>: Return a unique_ptr.
14501 (notif_event_xfree): Don't declare.
14502 (notif_event_up): New typedef.
14503 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
14504 (notif_event_xfree, do_notif_event_xfree): Remove.
14505 (remote_notif_state_xfree): Update.
14506
9799571e
TT
145072019-03-06 Tom Tromey <tom@tromey.com>
14508
14509 * infrun.c (displaced_step_clear_cleanup): Now a
14510 forward_scope_exit type.
14511 (displaced_step_prepare_throw): Update.
14512 (displaced_step_fixup): Update.
14513
09e3c4ca
TT
145142019-03-06 Tom Tromey <tom@tromey.com>
14515
14516 * inferior.h (class inferior): Update comment.
14517 * gdbthread.h (class thread_info): Update comment.
14518
e2a03548
TT
145192019-03-06 Joel Brobecker <brobecker@adacore.com>
14520 Tom Tromey <tom@tromey.com>
14521
14522 * stabsread.h (struct stab_section_list): Remove.
14523 (coffstab_build_psymtabs): Update.
14524 * dbxread.c (symbuf_sections): Now a std::vector.
14525 (sect_idx): New global.
14526 (fill_symbuf): Update.
14527 (coffstab_build_psymtabs): Change type of stabsects parameter.
14528 Update.
14529 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
14530 std::vector.
14531 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
14532 (coff_locate_sections): Update.
14533 (coff_symfile_read): Remove cleanups. Update.
14534 (init_stringtab): Add storage parameter.
14535 (free_stringtab, free_stringtab_cleanup): Remove.
14536 (init_lineno): Add storage parameter.
14537 (free_linetab, free_linetab_cleanup): Remove.
14538
b7e60d85
PA
145392019-03-06 Pedro Alves <palves@redhat.com>
14540
14541 * linux-fork.c (fork_info::clobber_regs): Delete.
14542 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
14543 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
14544 comment. Adjust.
14545 (scoped_switch_fork_info::scoped_switch_fork_info)
14546 (checkpoint_command, linux_fork_context): Adjust
14547 fork_save_infrun_state calls.
14548
e52c971f
PA
145492019-03-06 Pedro Alves <palves@redhat.com>
14550
14551 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
14552 (inf_has_multiple_threads): Return 'bool' and rewrite using
14553 inferior_info::threads().
14554
06974e6c
PA
145552019-03-06 Pedro Alves <palves@redhat.com>
14556
14557 * linux-fork.c: Include <list>.
14558 (fork_list): Now a std::list instance.
14559 (fork_info): Add ctor, dtor, and in-class initialize all fields.
14560 (forks_exist_p, find_last_fork): Adjust.
14561 (new_fork): Delete.
14562 (one_fork_p): New.
14563 (add_fork): Adjust.
14564 (free_fork): Delete, folded into fork_info::~fork_info().
14565 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
14566 Adjust.
14567 (init_fork_list): Delete.
14568 (linux_fork_killall, linux_fork_mourn_inferior)
14569 (linux_fork_detach, info_checkpoints_command): Adjust.
14570 (_initialize_linux_fork): No longer call init_fork_list.
14571
72f31aea
PA
145722019-03-06 Pedro Alves <palves@redhat.com>
14573
14574 * linux-fork.c (new_fork): New, split out of ...
14575 (add_fork): ... this. Return void. Move "first fork" special
14576 case from here, to ...
14577 (checkpoint_command): ... here.
14578 * linux-linux.h (add_fork): Return void.
14579
efbecbc1
AB
145802019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14581
14582 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
14583
0841c79a
AB
145842019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14585 Chris January <chris.january@arm.com>
14586 David Lecomber <david.lecomber@arm.com>
14587
14588 * f-exp.y: New token, UNOP_INTRINSIC.
14589 (exp): New pattern using UNOP_INTRINSIC token.
14590 (f77_keywords): Add 'abs' keyword.
14591 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
14592 (value_from_host_double): New function.
14593 (evaluate_subexp_f): Support UNOP_ABS.
14594
4a270568
AB
145952019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14596
14597 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
14598 types.
14599
067630bd
AB
146002019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14601
14602 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
14603 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
14604 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
14605
3be47f7a
AB
146062019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14607
14608 * f-exp.y (convert_to_kind_type): Handle more type kinds.
14609
4d00f5d8
AB
146102019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14611 Chris January <chris.january@arm.com>
14612
14613 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
14614 * f-exp.y: Define 'KIND' token.
14615 (exp): New pattern for KIND expressions.
14616 (ptype): Handle types with a kind extension.
14617 (direct_abs_decl): Extend to spot kind extensions.
14618 (f77_keywords): Add 'kind' to the list.
14619 (push_kind_type): New function.
14620 (convert_to_kind_type): New function.
14621 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
14622 * parse.c (operator_length_standard): Likewise.
14623 * parser-defs.h (enum type_pieces): Add tp_kind.
14624 * std-operator.def: Add UNOP_KIND.
14625
e454224f
AB
146262019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14627
14628 * f-exp.y (f_parse): Set yydebug.
14629
9dad4a58
AB
146302019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14631
14632 * f-lang.c (evaluate_subexp_f): New function.
14633 (exp_descriptor_f): New global.
14634 (f_language_defn): Use exp_descriptor_f instead of
14635 exp_descriptor_standard.
14636
c8f91604
AB
146372019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14638
14639 * f-exp.y (struct token): Add comments.
14640 (dot_ops): Remove uppercase versions and the end marker.
14641 (f77_keywords): Likewise.
14642 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
14643 entries in the dot_ops array are case insensitive, and use
14644 strncasecmp to compare strings. Also some whitespace cleanup in
14645 this area. Similar for the f77_keywords array, except entries in
14646 this list might be case sensitive.
14647
dd9f2c76
AB
146482019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14649
14650 * f-exp.y (struct f77_boolean_val): Add comments.
14651 (boolean_values): Remove uppercase versions, and end marker.
14652 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
14653 and use strncasecmp to achieve case insensitivity. Additionally,
14654 perform whitespace cleanup around this code.
14655
67a3048c
TT
146562019-03-06 Tom Tromey <tromey@adacore.com>
14657
14658 * remote-sim.c (gdbsim_target_open): Use result of
14659 gdb_argv::release.
14660
aa3cfbda
RB
146612019-03-06 Richard Bunt <richard.bunt@arm.com>
14662 Dirk Schubert <dirk.schubert@arm.com>
14663 Chris January <chris.january@arm.com>
14664
14665 * eval.c (evaluate_subexp_standard): Call Fortran argument
14666 wrapping logic.
14667 * f-lang.c (struct value): A value which can be passed into a
14668 Fortran function call.
14669 (fortran_argument_convert): Wrap Fortran arguments in a pointer
14670 where appropriate.
14671 (struct type): Value ready for a Fortran function call.
14672 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
14673 is needed.
14674 * f-lang.h (fortran_argument_convert): Declaration.
14675 (fortran_preserve_arg_pointer): Declaration.
14676 * infcall.c (value_arg_coerce): Call Fortran argument logic.
14677
ea38e5df
TT
146782019-03-05 Tom Tromey <tromey@adacore.com>
14679
14680 * python/py-prettyprint.c (print_string_repr): Remove #if.
14681 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
14682
06b5b831
TT
146832019-03-05 Tom Tromey <tromey@adacore.com>
14684
14685 * target.c (the_dummy_target): Move later. Change type to
14686 "dummy_target".
14687 (initialize_targets): Don't initialize the_dummy_target.
14688
edbd9e45
TT
146892019-03-05 Tom Tromey <tromey@adacore.com>
14690
14691 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
14692 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
14693
c119e040
TT
146942019-03-05 Tom Tromey <tromey@adacore.com>
14695
14696 * windows-nat.c (windows_nat_target::attach)
14697 (windows_nat_target::detach): Don't call gdb_flush.
14698 * valprint.c (generic_val_print, val_print, val_print_string):
14699 Don't call gdb_flush.
14700 * utils.c (defaulted_query): Don't call gdb_flush.
14701 * typeprint.c (print_type_scalar): Don't call gdb_flush.
14702 * target.c (target_announce_detach): Don't call gdb_flush.
14703 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
14704 * remote.c (extended_remote_target::attach): Don't call
14705 gdb_flush.
14706 * procfs.c (procfs_target::detach): Don't call gdb_flush.
14707 * printcmd.c (do_examine): Don't call gdb_flush.
14708 (info_display_command): Don't call gdb_flush.
14709 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
14710 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
14711 * memattr.c (info_mem_command): Don't call gdb_flush.
14712 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
14713 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
14714 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
14715 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
14716 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
14717 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
14718 (gnu_nat_target::detach): Don't call gdb_flush.
14719 * f-valprint.c (f_val_print): Don't call gdb_flush.
14720 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
14721 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
14722 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
14723 gdb_flush.
14724 * c-valprint.c (c_val_print): Don't call gdb_flush.
14725 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
14726
895dafa6
TT
147272019-03-05 Tom Tromey <tromey@adacore.com>
14728
14729 * varobj.c (update_dynamic_varobj_children): Update.
14730 (install_default_visualizer): Use reset, not release.
14731 * value.c (set_internalvar): Update.
14732 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
14733 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
14734 ATTRIBUTE_UNUSED_RESULT.
14735
88a774b9
TT
147362019-03-05 Tom Tromey <tromey@adacore.com>
14737
14738 * remote.c (class scoped_remote_fd) <release>: Add
14739 ATTRIBUTE_UNUSED_RESULT.
14740
4e4a8b93
TT
147412019-03-05 Tom Tromey <tromey@adacore.com>
14742
14743 * macroexp.c (struct macro_buffer) <release>: Add
14744 ATTRIBUTE_UNUSED_RESULT.
14745
083eef1f
TT
147462019-03-05 Tom Tromey <tromey@adacore.com>
14747
14748 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
14749 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
14750 ATTRIBUTE_UNUSED_RESULT.
14751
3cabd438
TT
147522019-03-05 Tom Tromey <tromey@adacore.com>
14753
14754 * common/scoped_fd.h (class scoped_fd) <release>: Add
14755 ATTRIBUTE_UNUSED_RESULT.
14756
41e3300a
TT
147572019-03-05 Tom Tromey <tromey@adacore.com>
14758
14759 * parser-defs.h (struct parser_state) <release>: Add
14760 ATTRIBUTE_UNUSED_RESULT.
14761
18cb7c9f
TT
147622019-03-05 Tom Tromey <tromey@adacore.com>
14763
14764 * utils.h (class gdb_argv) <release>: Add
14765 ATTRIBUTE_UNUSED_RESULT.
14766 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
14767
41fa577f
EZ
147682019-03-02 Eli Zaretskii <eliz@gnu.org>
14769
a6a4b2c6
EZ
14770 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
14771 for-loop range, to avoid compiler warnings.
14772
14773 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
14774 avoid compiler warnings about unused variables.
14775
742a7df5
EZ
14776 * NEWS: Mention end of support for native debugging on MS-Windows
14777 before XP.
14778
41fa577f
EZ
14779 PR gdb/24292
14780 * common/netstuff.c:
14781 * gdbserver/gdbreplay.c
14782 * gdbserver/remote-utils.c:
14783 * ser-tcp.c:
14784 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
14785 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
14786 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
14787 'getaddrinfo' and 'freeaddrinfo' were not available before
14788 Windows XP, and mingw.org's MinGW headers by default define
14789 _WIN32_WINNT to 0x500.
14790
827f438f
GB
147912019-03-01 Gary Benson <gbenson@redhat.com>
14792
14793 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
14794
92137da0
RO
147952019-02-28 Brian Vandenberg <phantall@gmail.com>
14796 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14797
14798 PR gdb/8527
14799 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
14800 set_sigint_trap, clear_sigint_trap.
14801
799efbe8
PW
148022019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14803
14804 * target.c (target_detach): Clear the regcache and the
14805 frame cache.
14806
8ed25214
PA
148072019-02-27 Pedro Alves <palves@redhat.com>
14808
14809 * utils.c (set_screen_size): When we cap the height/width sizes,
14810 tweak the corresponding command variable to show "unlimited":
14811
23031e31
SJ
148122019-02-27 Saagar Jha <saagar@saagarjha.com>
14813 Pedro Alves <palves@redhat.com>
14814
14815 * utils.c (set_screen_size): Reduce "infinite" rows and columns
14816 before calling rl_set_screen_size.
14817
6c28e44a
TT
148182019-02-27 Tom Tromey <tromey@adacore.com>
14819
14820 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
14821 define.
14822 * python/py-value.c: Remove Python 2.4 workaround.
14823 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
14824 workaround.
14825 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
14826 Python 2.4 workaround.
14827 * python/python-internal.h: Remove Python 2.4 comment.
14828 (Py_ssize_t): Don't define.
14829 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
14830 (gdb_Py_DECREF): Remove Python 2.4 workaround.
14831 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
14832 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
14833 * python/python.c (do_start_initialization): Remove Python 2.4
14834 workaround.
14835 * python/py-prettyprint.c (class dummy_python_frame): Remove.
14836 (print_children): Remove Python 2.4 workaround.
14837 * python/py-inferior.c (buffer_procs): Remove Python 2.4
14838 workaround.
14839 (CHARBUFFERPROC_NAME): Remove.
14840 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
14841 Python 2.4 workaround.
14842
2c3fc25d 148432019-02-27 Kevin Buettner <kevinb@redhat.com>
799efbe8 14844
2c3fc25d
KB
14845 * NEWS: Note minimum Python version.
14846
6ca62222
KB
148472019-02-27 Kevin Buettner <kevinb@redhat.com>
14848
14849 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
14850 code from these functions. Remove corresponding ifdefs. Use
14851 Py_buffer_up instead of explicit calls to PyBuffer_Release.
14852 Remove gotos and target of gotos.
14853 (infpy_search_memory): Likewise.
14854
f4bc7d2c
AB
148552019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14856
14857 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
14858 (hppa_gdbarch_init): Don't register deleted functions with
14859 gdbarch.
14860
9734a586
AB
148612019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14862
14863 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
14864 (h8300_unwind_sp): Delete.
14865 (h8300_dummy_id): Delete.
14866 (h8300_gdbarch_init): Don't register deleted functions with
14867 gdbarch.
14868
68b867f3
AB
148692019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14870
14871 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
14872 (ft32_unwind_pc): Delete.
14873 (ft32_unwind_sp): Delete.
14874 (ft32_gdbarch_init): Don't register deleted functions with
14875 gdbarch.
14876
2fbe7ad0
AB
148772019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14878
14879 * gdb/frv-tdep.c (frv_dummy_id): Delete.
14880 (frv_unwind_pc): Delete.
14881 (frv_unwind_sp): Delete.
14882 (frv_gdbarch_init): Don't register deleted functions with
14883 gdbarch.
14884
76055cbe
AB
148852019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14886
14887 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
14888 (riscv_unwind_pc): Delete.
14889 (riscv_unwind_sp): Delete.
14890 (riscv_gdbarch_init): Don't register deleted functions with
14891 gdbarch.
14892
4133e5a1
AB
148932019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14894
14895 * gdb/csky-tdep.c (csky_dummy_id): Delete.
14896 (csky_unwind_pc): Delete.
14897 (csky_unwind_sp): Delete.
14898 (csky_gdbarch_init): Don't register deleted functions with
14899 gdbarch.
14900
8010f576
AB
149012019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14902
14903 * gdb/cris-tdep.c (cris_dummy_id): Delete.
14904 (cris_unwind_pc): Delete.
14905 (cris_unwind_sp): Delete.
14906 (cris_gdbarch_init): Don't register deleted functions with
14907 gdbarch.
14908
b56bf084
AB
149092019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14910
14911 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
14912 (bfin_unwind_pc): Delete.
14913 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
14914
a19a650f
AB
149152019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14916
14917 * gdb/arm-tdep.c (arm_dummy_id): Delete.
14918 (arm_unwind_pc): Delete.
14919 (arm_unwind_sp): Delete.
14920 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
14921
f8278c3c
AB
149222019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14923
14924 * gdb/arc-tdep.c (arc_dummy_id): Delete.
14925 (arc_unwind_pc): Delete.
14926 (arc_unwind_sp): Delete.
14927 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
14928
480e46cf
AB
149292019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14930
14931 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
14932 (alpha_unwind_pc): Delete.
14933 (alpha_gdbarch_init): Don't register deleted functions with
14934 gdbarch.
14935
7a995095
AB
149362019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14937
14938 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
14939 (aarch64_unwind_pc): Delete.
14940 (aarch64_unwind_sp): Delete.
14941 (aarch64_gdbarch_init): Don't register deleted functions with
14942 gdbarch.
14943
bf9a735e
AB
149442019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14945
14946 * gdbtypes.c (type_align): Don't consider static members when
14947 computing structure alignment.
14948
5561fc30
AB
149492019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14950
14951 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
14952 return 0 for other types.
14953 * arch-utils.c (default_type_align): Always return 0.
14954 * gdbarch.h: Regenerate.
14955 * gdbarch.sh (type_align): Extend comment.
14956 * gdbtypes.c (type_align): Add additional comments, always call
14957 gdbarch_type_align before applying the default rules.
14958 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
14959 generic code will then apply a suitable default.
14960 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
14961 types, return 0 for other types.
14962
9335e75a
JB
149632019-02-27 Joel Brobecker <brobecker@adacore.com>
14964
14965 * NEWS: Create a new section for the next release branch.
14966 Rename the section of the current branch, now that it has
14967 been cut.
14968
3d34d8de
JB
149692019-02-27 Joel Brobecker <brobecker@adacore.com>
14970
14971 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
14972 * version.in: Bump version to 8.3.50.DATE-git.
14973
143420fb
SM
149742019-02-26 Simon Marchi <simon.marchi@efficios.com>
14975
14976 * aix-thread.c (ptid_cmp): Remove unused variable.
14977 (get_signaled_thread): Likewise.
14978 (store_regs_user_thread): Likewise.
14979 (store_regs_kernel_thread): Likewise.
14980 (fetch_regs_kernel_thread): Remove shadowed variable.
14981
172fb711
AB
149822019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
14983
14984 * features/riscv/32bit-cpu.xml: Add register numbers.
14985 * features/riscv/32bit-fpu.c: Regenerate.
14986 * features/riscv/32bit-fpu.xml: Add register numbers.
14987 * features/riscv/64bit-cpu.xml: Add register numbers.
14988 * features/riscv/64bit-fpu.c: Regenerate.
14989 * features/riscv/64bit-fpu.xml: Add register numbers.
14990
26c89782
KB
149912019-02-26 Kevin Buettner <kevinb@redhat.com>
14992
af54ade9 14993 * NEWS: Mention two argument form of gdb.Value constructor.
fe07eca5
KB
14994 * python/py-value.c (convert_buffer_and_type_to_value): New
14995 function.
14996 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
14997 Add support for handling an optional second argument. Call
14998 convert_buffer_and_type_to_value as appropriate.
26c89782
KB
14999 * python/python-internal.h (Py_buffer_deleter): New struct.
15000 (Py_buffer_up): New typedef.
15001
0f58c9e8
JB
150022019-02-25 John Baldwin <jhb@FreeBSD.org>
15003
15004 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
15005 instead of releasing ownership.
15006
0a0f4c01
JR
150072019-02-25 Jordan Rupprecht <rupprecht@google.com>
15008
15009 * dwarf2read.c (open_and_init_dwp_file): Call
15010 elf_numsections instead of bfd_count_sections to initialize
15011 dwp_file->num_sections.
15012
cd5a152c
TT
150132019-02-25 Tom Tromey <tromey@adacore.com>
15014
15015 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
15016
8a6a8513
SDJ
150172019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
15018
15019 * gcore.in: Add '--readnever' option when invoking GDB.
15020
04dcda9c
SM
150212019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
15022
15023 * MAINTAINERS: Update my email address.
15024
07bc701d
SM
150252019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
15026
15027 * build-id.c (build_id_to_debug_bfd_1): New function.
15028 (build_id_to_debug_bfd): Look for separate debug file in
15029 sysroot.
15030
c6f4a5d0
AB
150312019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
15032
15033 * gdbarch.sh: Update the copyright year range that is placed into
15034 generated files.
15035
9600246d
KS
150362019-02-22 Keith Seitz <keiths@redhat.com>
15037
15038 PR symtab/23853
15039 * linespec.c (create_sals_line_offset): Search for the default
15040 symtab's filename instead of its fullname.
15041
7557a514
AH
150422019-02-21 Alan Hayward <alan.hayward@arm.com>
15043
15044 * NEWS: Update style defaults.
15045
ee2bcb0c
AH
150462019-02-21 Alan Hayward <alan.hayward@arm.com>
15047
15048 * main.c (captured_main_1): Disable styling in batch mode.
15049
0c95f9ed
TT
150502019-02-20 Tom Tromey <tom@tromey.com>
15051
15052 * symtab.c (symtab_symbol_info): Fix typos.
15053
c763b894
TT
150542019-02-20 Tom Tromey <tromey@adacore.com>
15055
15056 * findcmd.c (_initialize_mem_search): Use upper case for
15057 metasyntactic variables.
15058
0ef8a082
AH
150592019-02-20 Alan Hayward <alan.hayward@arm.com>
15060
15061 * aarch64-tdep.c (aarch64_add_reggroups): New function.
15062 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
15063
6caa91b6
SM
150642019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
15065
15066 * top.h (source_file_name): Change to std::string.
15067 * top.c (source_file_name): Likewise.
15068 (command_line_input): Adjust.
15069 * cli/cli-script.c (script_from_file): Adjust.
15070
98814c6c
TT
150712019-02-19 Tom Tromey <tromey@adacore.com>
15072
15073 * ravenscar-thread.c
15074 (ravenscar_thread_target::update_thread_list): Don't call
15075 ada_build_task_list.
15076 * ada-lang.h (ada_build_task_list): Don't declare.
15077 * ada-tasks.c (struct ada_tasks_inferior_data)
15078 <task_list_valid_p>: Now bool.
15079 (read_known_tasks, ada_task_list_changed)
15080 (ada_tasks_invalidate_inferior_data): Update.
15081 (read_known_tasks_array): Return bool.
15082 (read_known_tasks_list): Likewise.
15083 (read_known_tasks): Return void.
15084 (ada_build_task_list): Now static.
15085
70cd633e
AB
150862019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
15087
15088 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
15089 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
15090
040b3e95
PW
150912019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15092
15093 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
15094 variant for ada_tasks_pspace_data_handle and
15095 ada_tasks_inferior_data_handle.
15096 (ada_tasks_pspace_data_cleanup): New function.
15097 (ada_tasks_inferior_data_cleanup): New function.
15098
9409233b
TT
150992019-02-17 Tom Tromey <tom@tromey.com>
15100
15101 * macrotab.h (macro_source_fullname): Return a std::string.
15102 * macrotab.c (macro_include, check_for_redefinition)
15103 (macro_undef, macro_lookup_definition, foreach_macro)
15104 (foreach_macro_in_scope): Update.
15105 (macro_source_fullname): Return a std::string.
15106 * macrocmd.c (show_pp_source_pos): Update.
15107
6506371f
TT
151082019-02-17 Tom Tromey <tom@tromey.com>
15109
15110 * macrocmd.c (show_pp_source_pos): Style the file names.
15111
0c820d67
TT
151122019-02-17 Tom Tromey <tom@tromey.com>
15113
15114 PR tui/24197:
15115 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
15116
a0087920
TT
151172019-02-17 Tom Tromey <tom@tromey.com>
15118
15119 * ada-lang.c (user_select_syms): Use filtered printing.
15120 * utils.c (wrap_style): New global.
15121 (desired_style): Remove.
15122 (emit_style_escape): Add stream parameter.
15123 (set_output_style, reset_terminal_style, prompt_for_continue):
15124 Update.
15125 (flush_wrap_buffer): Only flush gdb_stdout.
15126 (wrap_here): Set wrap_style.
15127 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
15128 treat escape sequences as a character. Change when wrap buffer is
15129 flushed.
15130 (fputs_styled): Do not set the output style when the default is
15131 requested.
15132 * ui-style.h (struct ui_file_style) <is_default>: New method.
15133 * source.c (print_source_lines_base): Emit escape sequences in one
15134 piece.
15135
75ba10dc
JB
151362019-02-17 Joel Brobecker <brobecker@adacore.com>
15137
15138 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
15139 integers and enumeration types.
15140
a2cd4f14
JB
151412019-02-17 Joel Brobecker <brobecker@adacore.com>
15142
15143 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
15144 instead of lookup_symbol_in_language
15145 (do_exact_match): New function.
15146 (ada_get_symbol_name_matcher): Return do_exact_match when
15147 doing a verbatim match.
15148
485b851b
TT
151492019-02-15 Tom Tromey <tromey@adacore.com>
15150
15151 * ravenscar-thread.c (ravenscar_thread_target::resume)
15152 (ravenscar_thread_target::wait): Special case wildcard requests.
15153
0b790b1e
TT
151542019-02-15 Tom Tromey <tromey@adacore.com>
15155
15156 * ravenscar-thread.c (base_ptid): Remove.
15157 (struct ravenscar_thread_target) <close>: New method.
15158 <m_base_ptid>: New member.
15159 <update_inferior_ptid, active_task, task_is_currently_active,
15160 runtime_initialized>: Declare methods.
15161 <ravenscar_thread_target>: Add constructor.
15162 (ravenscar_thread_target::task_is_currently_active)
15163 (ravenscar_thread_target::update_inferior_ptid)
15164 (ravenscar_runtime_initialized): Rename. Now methods.
15165 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
15166 (ravenscar_thread_target::update_thread_list): Update.
15167 (ravenscar_thread_target::active_task): Now method.
15168 (ravenscar_thread_target::store_registers)
15169 (ravenscar_thread_target::prepare_to_store)
15170 (ravenscar_thread_target::prepare_to_store)
15171 (ravenscar_thread_target::mourn_inferior): Update.
15172 (ravenscar_inferior_created): Use "new" to create target.
15173 (ravenscar_thread_target::get_ada_task_ptid): Update.
15174 (_initialize_ravenscar): Don't initialize base_ptid.
15175 (ravenscar_ops): Remove global.
15176
dea57a62
TT
151772019-02-15 Tom Tromey <tromey@adacore.com>
15178
15179 * target.h (push_target): Declare new overload.
15180 * target.c (push_target): New overload, taking an rvalue reference.
15181 * remote.c (remote_target::open_1): Use push_target overload.
15182 * corelow.c (core_target_open): Use push_target overload.
15183
989f3c58
TT
151842019-02-15 Tom Tromey <tromey@adacore.com>
15185
15186 * ravenscar-thread.c (is_ravenscar_task)
15187 (ravenscar_task_is_currently_active): Return bool.
15188 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
15189 (_initialize_ravenscar): Remove "(void)".
15190 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
15191 Return bool.
15192
6cbcc006
TT
151932019-02-15 Tom Tromey <tromey@adacore.com>
15194
15195 * ravenscar-thread.c (ravenscar_runtime_initializer)
15196 (has_ravenscar_runtime, get_running_thread_id)
15197 (ravenscar_thread_target::resume): Fix indentation.
15198
7657f14d
TT
151992019-02-15 Tom Tromey <tromey@adacore.com>
15200
15201 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
15202 from ravenscar_arch_ops.
15203 (sparc_ravenscar_ops::fetch_registers)
15204 (sparc_ravenscar_ops::store_registers): Now methods.
15205 (sparc_ravenscar_prepare_to_store): Remove.
15206 (sparc_ravenscar_ops): Redefine.
15207 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
15208 methods and destructor. Remove members.
15209 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
15210 (ravenscar_thread_target::store_registers)
15211 (ravenscar_thread_target::prepare_to_store): Update.
15212 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
15213 Remove.
15214 (struct ppc_ravenscar_powerpc_ops): Derive from
15215 ravenscar_arch_ops.
15216 (ppc_ravenscar_powerpc_ops::fetch_registers)
15217 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
15218 (ppc_ravenscar_powerpc_ops): Redefine.
15219 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
15220 (ppc_ravenscar_e500_ops::fetch_registers)
15221 (ppc_ravenscar_e500_ops::store_registers): Now methods.
15222 (ppc_ravenscar_e500_ops): Redefine.
15223 * aarch64-ravenscar-thread.c
15224 (aarch64_ravenscar_generic_prepare_to_store): Remove.
15225 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
15226 (aarch64_ravenscar_fetch_registers)
15227 (aarch64_ravenscar_store_registers): Now methods.
15228 (aarch64_ravenscar_ops): Redefine.
15229
5b6ea500
TT
152302019-02-15 Tom Tromey <tromey@adacore.com>
15231
15232 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
15233 (ravenscar_thread_target::stopped_by_hw_breakpoint)
15234 (ravenscar_thread_target::stopped_by_watchpoint)
15235 (ravenscar_thread_target::stopped_data_address)
15236 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
15237
e397fd39
TT
152382019-02-15 Tom Tromey <tromey@adacore.com>
15239
15240 * ravenscar-thread.c: Fix some typos.
15241
cc12f4a8
TT
152422019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15243 Tom Tromey <tromey@adacore.com>
15244
15245 * ada-lang.c (ada_exception_sal): Change addr_string to a
15246 std::string.
15247 (create_ada_exception_catchpoint): Update.
15248
5f486660
TT
152492019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15250 Tom Tromey <tromey@adacore.com>
15251
15252 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
15253 (bp_location_ops): Remove.
15254 (base_breakpoint_allocate_location): Update.
15255 (free_bp_location): Update.
15256 * ada-lang.c (class ada_catchpoint_location)
15257 <ada_catchpoint_location>: Remove ops parameter.
15258 (ada_catchpoint_location_dtor): Remove.
15259 (ada_catchpoint_location_ops): Remove.
15260 (allocate_location_exception): Update.
15261 * breakpoint.h (struct bp_location_ops): Remove.
15262 (class bp_location) <bp_location>: Remove bp_location_ops
15263 parameter.
15264 <~bp_location>: Add destructor.
15265 <ops>: Remove.
15266
b671c7fb
TS
152672019-02-14 Thomas Schwinge <thomas@codesourcery.com>
15268 Pedro Alves <palves@redhat.com>
15269
15270 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
15271 'PATH_MAX'.
15272
8071c5ce
DM
152732019-02-14 David Michael <fedora.dm0@gmail.com>
15274 Samuel Thibault <samuel.thibault@gnu.org>
15275 Thomas Schwinge <thomas@codesourcery.com>
15276
15277 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
15278 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
15279
b1041ae0
TS
152802019-02-14 Thomas Schwinge <thomas@codesourcery.com>
15281
924514e1
TS
15282 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
15283 (check_empty): Use "const char *".
15284
c29ee8d4
TS
15285 * gnu-nat.c (gnu_nat_target::detach): Instead of
15286 'detach_inferior (pid)' call
15287 'detach_inferior (find_inferior_pid (pid))'.
15288
6c6ef69f
TS
15289 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
15290 'nat/fork-inferior.o'.
15291 * gnu-nat.c: #include "nat/fork-inferior.h".
15292
2d0a338c
TS
15293 * gnu-nat.c (gnu_nat_target::detach): Instead of
15294 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
15295 * gnu-nat.h: #include "inf-child.h".
15296 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
15297 'i386_gnu_nat_target::fetch_registers'.
15298 (gnu_store_registers): Rename/move to
15299 'i386_gnu_nat_target::store_registers'.
15300
cabb5f06
TS
15301 * config/i386/nm-i386gnu.h: Don't "#include" any files.
15302 * gnu-nat.h (mach_thread_info): New function.
15303 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
15304
b1041ae0
TS
15305 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
15306
2988d01e
KF
153072019-02-14 Frederic Konrad <konrad@adacore.com>
15308
15309 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
15310
c559d709
JB
153112019-02-14 Joel Brobecker <brobecker@adacore.com>
15312
15313 * windows-nat.c (windows_add_thread): Add new parameter
15314 "main_thread_p" with default value set to false. Update
15315 function documentation as well as all callers.
15316 (windows_delete_thread): Likewise.
15317 (fake_create_process): Update call to windows_add_thread.
15318 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
15319 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
15320 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
15321 call to windows_delete_thread.
15322
007024cc
SM
153232019-02-13 Simon Marchi <simon.marchi@ericsson.com>
15324
15325 * MAINTAINERS: Add Andrew Burgess as global maintainer.
15326
f62318e9
JB
153272019-02-12 John Baldwin <jhb@FreeBSD.org>
15328
15329 * symfile.c (find_separate_debug_file): Use canonical path of
15330 sysroot with child_path instead of gdb_sysroot if it is valid.
15331
cd4b7848
JB
153322019-02-12 John Baldwin <jhb@FreeBSD.org>
15333
15334 * symfile.c (find_separate_debug_file): Use child_path to
15335 determine if an object file is under a sysroot.
15336
efac4bfe
JB
153372019-02-12 John Baldwin <jhb@FreeBSD.org>
15338
15339 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
15340 unittests/child-path-selftests.c.
15341 * common/pathstuff.c (child_path): New function.
15342 * common/pathstuff.h (child_path): New prototype.
15343 * unittests/child-path-selftests.c: New file.
15344
402d2bfe
JB
153452019-02-12 John Baldwin <jhb@FreeBSD.org>
15346
15347 * symfile.c (find_separate_debug_file): Look for separate debug
15348 files in debug directories under the sysroot.
15349
1ed9f74e
PW
153502019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15351
15352 * symtab.h (struct minimal_symbol data_p): New const method.
15353 (struct minimal_symbol text_p): Likewise.
15354 * symtab.c (output_source_filename): Use file name style
15355 to print file name.
15356 (print_symbol_info): Likewise.
15357 (print_msymbol_info): Use address style to print addresses.
15358 Use function name style to print executable text symbols.
15359 (expand_symtab_containing_pc): Use data_p.
15360 (find_pc_sect_compunit_symtab): Likewise.
15361
2636d81d
PW
153622019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15363
15364 * breakpoint.c (describe_other_breakpoints): Use address style
15365 to print addresses.
15366 (say_where): Likewise.
15367
ac8c53cc
PW
153682019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15369
15370 * ada-typeprint.c (print_func_type): Print function name
15371 style to print function name.
15372 * c-typeprint.c (c_print_type_1): Likewise.
15373
ea638c43
AH
153742019-02-11 Alan Hayward <alan.hayward@arm.com>
15375
15376 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
15377 for execve.
15378
ab759ca8
PW
153792019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15380
15381 * c-exp.y (direct_abs_decl): Use emplace_back to record the
15382 type_stack.
15383
aff29d1c
JB
153842019-02-10 Joel Brobecker <brobecker@adacore.com>
15385
15386 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
15387 TYPE_CODE_REF types.
15388
617126bc
JW
153892019-02-08 Jim Wilson <jimw@sifive.com>
15390
15391 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
15392 (riscv_linux_fregset): New.
15393 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
15394
46e3ed7f
TT
153952019-02-07 Tom Tromey <tom@tromey.com>
15396
15397 * thread.c (thread_cancel_execution_command): Update.
15398 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
15399 methods.
15400 (struct thread_fsm_ops): Remove.
15401 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
15402 (thread_fsm_should_stop, thread_fsm_return_value)
15403 (thread_fsm_set_finished, thread_fsm_finished_p)
15404 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
15405 Don't declare.
15406 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
15407 * infrun.c (clear_proceed_status_thread)
15408 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
15409 (print_stop_event): Update.
15410 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
15411 Add constructor.
15412 (step_command_fsm_ops): Remove.
15413 (new_step_command_fsm): Remove.
15414 (step_1): Update.
15415 (step_command_fsm::should_stop): Rename from
15416 step_command_fsm_should_stop.
15417 (step_command_fsm::clean_up): Rename from
15418 step_command_fsm_clean_up.
15419 (step_command_fsm::do_async_reply_reason): Rename from
15420 step_command_fsm_async_reply_reason.
15421 (struct until_next_fsm): Inherit from thread_fsm. Add
15422 constructor.
15423 (until_next_fsm_ops): Remove.
15424 (new_until_next_fsm): Remove.
15425 (until_next_fsm::should_stop): Rename from
15426 until_next_fsm_should_stop.
15427 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
15428 (until_next_fsm::do_async_reply_reason): Rename from
15429 until_next_fsm_async_reply_reason.
15430 (struct finish_command_fsm): Inherit from thread_fsm. Add
15431 constructor. Change type of breakpoint.
15432 (finish_command_fsm_ops): Remove.
15433 (new_finish_command_fsm): Remove.
15434 (finish_command_fsm::should_stop): Rename from
15435 finish_command_fsm_should_stop.
15436 (finish_command_fsm::clean_up): Rename from
15437 finish_command_fsm_clean_up.
15438 (finish_command_fsm::return_value): Rename from
15439 finish_command_fsm_return_value.
15440 (finish_command_fsm::do_async_reply_reason): Rename from
15441 finish_command_fsm_async_reply_reason.
15442 (finish_command): Update.
15443 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
15444 Add constructor.
15445 (call_thread_fsm_ops): Remove.
15446 (call_thread_fsm::call_thread_fsm): Rename from
15447 new_call_thread_fsm.
15448 (call_thread_fsm::should_stop): Rename from
15449 call_thread_fsm_should_stop.
15450 (call_thread_fsm::should_notify_stop): Rename from
15451 call_thread_fsm_should_notify_stop.
15452 (run_inferior_call, call_function_by_hand_dummy): Update.
15453 * cli/cli-interp.c (should_print_stop_to_console): Update.
15454 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
15455 Add constructor. Change type of location_breakpoint,
15456 caller_breakpoint.
15457 (until_break_fsm_ops): Remove.
15458 (new_until_break_fsm): Remove.
15459 (until_break_fsm::should_stop): Rename from
15460 until_break_fsm_should_stop.
15461 (until_break_fsm::clean_up): Rename from
15462 until_break_fsm_clean_up.
15463 (until_break_fsm::do_async_reply_reason): Rename from
15464 until_break_fsm_async_reply_reason.
15465 (until_break_command): Update.
15466 * thread-fsm.c: Remove.
15467 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
15468
1a5c2598
TT
154692019-02-07 Tom Tromey <tom@tromey.com>
15470
15471 * yy-remap.h: Add include guard.
15472 * xtensa-tdep.h: Add include guard.
15473 * xcoffread.h: Rename include guard.
15474 * varobj-iter.h: Add include guard.
15475 * tui/tui.h: Rename include guard.
15476 * tui/tui-winsource.h: Rename include guard.
15477 * tui/tui-wingeneral.h: Rename include guard.
15478 * tui/tui-windata.h: Rename include guard.
15479 * tui/tui-win.h: Rename include guard.
15480 * tui/tui-stack.h: Rename include guard.
15481 * tui/tui-source.h: Rename include guard.
15482 * tui/tui-regs.h: Rename include guard.
15483 * tui/tui-out.h: Rename include guard.
15484 * tui/tui-layout.h: Rename include guard.
15485 * tui/tui-io.h: Rename include guard.
15486 * tui/tui-hooks.h: Rename include guard.
15487 * tui/tui-file.h: Rename include guard.
15488 * tui/tui-disasm.h: Rename include guard.
15489 * tui/tui-data.h: Rename include guard.
15490 * tui/tui-command.h: Rename include guard.
15491 * tic6x-tdep.h: Add include guard.
15492 * target/waitstatus.h: Rename include guard.
15493 * target/wait.h: Rename include guard.
15494 * target/target.h: Rename include guard.
15495 * target/resume.h: Rename include guard.
15496 * target-float.h: Rename include guard.
15497 * stabsread.h: Add include guard.
15498 * rs6000-tdep.h: Add include guard.
15499 * riscv-fbsd-tdep.h: Add include guard.
15500 * regformats/regdef.h: Rename include guard.
15501 * record.h: Rename include guard.
15502 * python/python.h: Rename include guard.
15503 * python/python-internal.h: Rename include guard.
15504 * python/py-stopevent.h: Rename include guard.
15505 * python/py-ref.h: Rename include guard.
15506 * python/py-record.h: Rename include guard.
15507 * python/py-record-full.h: Rename include guard.
15508 * python/py-record-btrace.h: Rename include guard.
15509 * python/py-instruction.h: Rename include guard.
15510 * python/py-events.h: Rename include guard.
15511 * python/py-event.h: Rename include guard.
15512 * procfs.h: Add include guard.
15513 * proc-utils.h: Add include guard.
15514 * p-lang.h: Add include guard.
15515 * or1k-tdep.h: Rename include guard.
15516 * observable.h: Rename include guard.
15517 * nto-tdep.h: Rename include guard.
15518 * nat/x86-linux.h: Rename include guard.
15519 * nat/x86-linux-dregs.h: Rename include guard.
15520 * nat/x86-gcc-cpuid.h: Add include guard.
15521 * nat/x86-dregs.h: Rename include guard.
15522 * nat/x86-cpuid.h: Rename include guard.
15523 * nat/ppc-linux.h: Rename include guard.
15524 * nat/mips-linux-watch.h: Rename include guard.
15525 * nat/linux-waitpid.h: Rename include guard.
15526 * nat/linux-ptrace.h: Rename include guard.
15527 * nat/linux-procfs.h: Rename include guard.
15528 * nat/linux-osdata.h: Rename include guard.
15529 * nat/linux-nat.h: Rename include guard.
15530 * nat/linux-namespaces.h: Rename include guard.
15531 * nat/linux-btrace.h: Rename include guard.
15532 * nat/glibc_thread_db.h: Rename include guard.
15533 * nat/gdb_thread_db.h: Rename include guard.
15534 * nat/gdb_ptrace.h: Rename include guard.
15535 * nat/fork-inferior.h: Rename include guard.
15536 * nat/amd64-linux-siginfo.h: Rename include guard.
15537 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
15538 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
15539 * nat/aarch64-linux.h: Rename include guard.
15540 * nat/aarch64-linux-hw-point.h: Rename include guard.
15541 * mn10300-tdep.h: Add include guard.
15542 * mips-linux-tdep.h: Add include guard.
15543 * mi/mi-parse.h: Rename include guard.
15544 * mi/mi-out.h: Rename include guard.
15545 * mi/mi-main.h: Rename include guard.
15546 * mi/mi-interp.h: Rename include guard.
15547 * mi/mi-getopt.h: Rename include guard.
15548 * mi/mi-console.h: Rename include guard.
15549 * mi/mi-common.h: Rename include guard.
15550 * mi/mi-cmds.h: Rename include guard.
15551 * mi/mi-cmd-break.h: Rename include guard.
15552 * m2-lang.h: Add include guard.
15553 * location.h: Rename include guard.
15554 * linux-record.h: Rename include guard.
15555 * linux-nat.h: Add include guard.
15556 * linux-fork.h: Add include guard.
15557 * i386-darwin-tdep.h: Rename include guard.
15558 * hppa-linux-offsets.h: Add include guard.
15559 * guile/guile.h: Rename include guard.
15560 * guile/guile-internal.h: Rename include guard.
15561 * gnu-nat.h: Rename include guard.
15562 * gdb-stabs.h: Rename include guard.
15563 * frv-tdep.h: Add include guard.
15564 * f-lang.h: Add include guard.
15565 * event-loop.h: Add include guard.
15566 * darwin-nat.h: Rename include guard.
15567 * cp-abi.h: Rename include guard.
15568 * config/sparc/nm-sol2.h: Rename include guard.
15569 * config/nm-nto.h: Rename include guard.
15570 * config/nm-linux.h: Add include guard.
15571 * config/i386/nm-i386gnu.h: Rename include guard.
15572 * config/djgpp/nl_types.h: Rename include guard.
15573 * config/djgpp/langinfo.h: Rename include guard.
15574 * compile/gcc-cp-plugin.h: Add include guard.
15575 * compile/gcc-c-plugin.h: Add include guard.
15576 * compile/compile.h: Rename include guard.
15577 * compile/compile-object-run.h: Rename include guard.
15578 * compile/compile-object-load.h: Rename include guard.
15579 * compile/compile-internal.h: Rename include guard.
15580 * compile/compile-cplus.h: Rename include guard.
15581 * compile/compile-c.h: Rename include guard.
15582 * common/xml-utils.h: Rename include guard.
15583 * common/x86-xstate.h: Rename include guard.
15584 * common/version.h: Rename include guard.
15585 * common/vec.h: Rename include guard.
15586 * common/tdesc.h: Rename include guard.
15587 * common/selftest.h: Rename include guard.
15588 * common/scoped_restore.h: Rename include guard.
15589 * common/scoped_mmap.h: Rename include guard.
15590 * common/scoped_fd.h: Rename include guard.
15591 * common/safe-iterator.h: Rename include guard.
15592 * common/run-time-clock.h: Rename include guard.
15593 * common/refcounted-object.h: Rename include guard.
15594 * common/queue.h: Rename include guard.
15595 * common/ptid.h: Rename include guard.
15596 * common/print-utils.h: Rename include guard.
15597 * common/preprocessor.h: Rename include guard.
15598 * common/pathstuff.h: Rename include guard.
15599 * common/observable.h: Rename include guard.
15600 * common/netstuff.h: Rename include guard.
15601 * common/job-control.h: Rename include guard.
15602 * common/host-defs.h: Rename include guard.
15603 * common/gdb_wait.h: Rename include guard.
15604 * common/gdb_vecs.h: Rename include guard.
15605 * common/gdb_unlinker.h: Rename include guard.
15606 * common/gdb_unique_ptr.h: Rename include guard.
15607 * common/gdb_tilde_expand.h: Rename include guard.
15608 * common/gdb_sys_time.h: Rename include guard.
15609 * common/gdb_string_view.h: Rename include guard.
15610 * common/gdb_splay_tree.h: Rename include guard.
15611 * common/gdb_setjmp.h: Rename include guard.
15612 * common/gdb_ref_ptr.h: Rename include guard.
15613 * common/gdb_optional.h: Rename include guard.
15614 * common/gdb_locale.h: Rename include guard.
15615 * common/gdb_assert.h: Rename include guard.
15616 * common/filtered-iterator.h: Rename include guard.
15617 * common/filestuff.h: Rename include guard.
15618 * common/fileio.h: Rename include guard.
15619 * common/environ.h: Rename include guard.
15620 * common/common-utils.h: Rename include guard.
15621 * common/common-types.h: Rename include guard.
15622 * common/common-regcache.h: Rename include guard.
15623 * common/common-inferior.h: Rename include guard.
15624 * common/common-gdbthread.h: Rename include guard.
15625 * common/common-exceptions.h: Rename include guard.
15626 * common/common-defs.h: Rename include guard.
15627 * common/common-debug.h: Rename include guard.
15628 * common/cleanups.h: Rename include guard.
15629 * common/buffer.h: Rename include guard.
15630 * common/btrace-common.h: Rename include guard.
15631 * common/break-common.h: Rename include guard.
15632 * cli/cli-utils.h: Rename include guard.
15633 * cli/cli-style.h: Rename include guard.
15634 * cli/cli-setshow.h: Rename include guard.
15635 * cli/cli-script.h: Rename include guard.
15636 * cli/cli-interp.h: Rename include guard.
15637 * cli/cli-decode.h: Rename include guard.
15638 * cli/cli-cmds.h: Rename include guard.
15639 * charset-list.h: Add include guard.
15640 * buildsym-legacy.h: Rename include guard.
15641 * bfin-tdep.h: Add include guard.
15642 * ax.h: Rename include guard.
15643 * arm-linux-tdep.h: Add include guard.
15644 * arm-fbsd-tdep.h: Add include guard.
15645 * arch/xtensa.h: Rename include guard.
15646 * arch/tic6x.h: Add include guard.
15647 * arch/i386.h: Add include guard.
15648 * arch/arm.h: Rename include guard.
15649 * arch/arm-linux.h: Rename include guard.
15650 * arch/arm-get-next-pcs.h: Rename include guard.
15651 * arch/amd64.h: Add include guard.
15652 * arch/aarch64-insn.h: Rename include guard.
15653 * arch-utils.h: Rename include guard.
15654 * annotate.h: Add include guard.
15655 * amd64-darwin-tdep.h: Rename include guard.
15656 * aarch64-linux-tdep.h: Add include guard.
15657 * aarch64-fbsd-tdep.h: Add include guard.
15658 * aarch32-linux-nat.h: Add include guard.
15659
ab9268d2
PW
156602019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15661
15662 * macrotab.c (macro_define_internal): New function that
15663 factorizes macro_define_object_internal and macro_define_function
15664 code.
15665 (macro_define_object_internal): Use macro_define_internal.
15666 (macro_define_function): Likewise.
15667
bb0da2b4
PW
156682019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15669
15670 * macrocmd.c (extract_identifier): Return
15671 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
15672 callers.
15673
424eb552
JB
156742019-02-06 John Baldwin <jhb@FreeBSD.org>
15675
15676 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
15677
1688cb29
TT
156782019-02-05 Tom Tromey <tom@tromey.com>
15679
15680 * target.c (target_stack::unpush): Move assertion earlier.
15681
b5eba2d8
TT
156822019-01-30 Tom Tromey <tom@tromey.com>
15683
15684 PR python/23615:
15685 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
15686 (gdbpy_parse_and_eval): Likewise.
15687 * python/python-internal.h (gdbpy_allow_threads): New class.
15688
7054e2ff
JB
156892019-01-28 John Baldwin <jhb@FreeBSD.org>
15690
15691 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
15692 (aarch64_fbsd_fpregmap): Move earlier.
15693 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
15694 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
15695 instead of individual calls to trad_frame_set_reg_addr.
15696 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
15697 earlier.
15698 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
15699 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
15700 instead of individual calls to trad_frame_set_reg_addr.
15701
36c25ffa
AH
157022019-01-28 Alan Hayward <alan.hayward@arm.com>
15703
15704 * CONTRIBUTE: Replace contribution list with wiki link.
15705
a0707f3c
TT
157062019-01-25 Tom Tromey <tom@tromey.com>
15707
15708 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
15709
0747795c
TT
157102019-01-25 Tom Tromey <tom@tromey.com>
15711
15712 * xtensa-linux-nat.c: Fix common/ includes.
15713 * xml-support.h: Fix common/ includes.
15714 * xml-support.c: Fix common/ includes.
15715 * x86-linux-nat.c: Fix common/ includes.
15716 * windows-nat.c: Fix common/ includes.
15717 * varobj.h: Fix common/ includes.
15718 * varobj.c: Fix common/ includes.
15719 * value.c: Fix common/ includes.
15720 * valops.c: Fix common/ includes.
15721 * utils.c: Fix common/ includes.
15722 * unittests/xml-utils-selftests.c: Fix common/ includes.
15723 * unittests/utils-selftests.c: Fix common/ includes.
15724 * unittests/unpack-selftests.c: Fix common/ includes.
15725 * unittests/tracepoint-selftests.c: Fix common/ includes.
15726 * unittests/style-selftests.c: Fix common/ includes.
15727 * unittests/string_view-selftests.c: Fix common/ includes.
15728 * unittests/scoped_restore-selftests.c: Fix common/ includes.
15729 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
15730 * unittests/scoped_fd-selftests.c: Fix common/ includes.
15731 * unittests/rsp-low-selftests.c: Fix common/ includes.
15732 * unittests/parse-connection-spec-selftests.c: Fix common/
15733 includes.
15734 * unittests/optional-selftests.c: Fix common/ includes.
15735 * unittests/offset-type-selftests.c: Fix common/ includes.
15736 * unittests/observable-selftests.c: Fix common/ includes.
15737 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
15738 * unittests/memrange-selftests.c: Fix common/ includes.
15739 * unittests/memory-map-selftests.c: Fix common/ includes.
15740 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
15741 * unittests/function-view-selftests.c: Fix common/ includes.
15742 * unittests/environ-selftests.c: Fix common/ includes.
15743 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
15744 * unittests/common-utils-selftests.c: Fix common/ includes.
15745 * unittests/cli-utils-selftests.c: Fix common/ includes.
15746 * unittests/array-view-selftests.c: Fix common/ includes.
15747 * ui-file.c: Fix common/ includes.
15748 * tui/tui-io.c: Fix common/ includes.
15749 * tracepoint.h: Fix common/ includes.
15750 * tracepoint.c: Fix common/ includes.
15751 * tracefile-tfile.c: Fix common/ includes.
15752 * top.h: Fix common/ includes.
15753 * top.c: Fix common/ includes.
15754 * thread.c: Fix common/ includes.
15755 * target/waitstatus.h: Fix common/ includes.
15756 * target/waitstatus.c: Fix common/ includes.
15757 * target.h: Fix common/ includes.
15758 * target.c: Fix common/ includes.
15759 * target-memory.c: Fix common/ includes.
15760 * target-descriptions.c: Fix common/ includes.
15761 * symtab.h: Fix common/ includes.
15762 * symfile.c: Fix common/ includes.
15763 * stap-probe.c: Fix common/ includes.
15764 * spu-linux-nat.c: Fix common/ includes.
15765 * sparc-nat.c: Fix common/ includes.
15766 * source.c: Fix common/ includes.
15767 * solib.c: Fix common/ includes.
15768 * solib-target.c: Fix common/ includes.
15769 * ser-unix.c: Fix common/ includes.
15770 * ser-tcp.c: Fix common/ includes.
15771 * ser-pipe.c: Fix common/ includes.
15772 * ser-base.c: Fix common/ includes.
15773 * selftest-arch.c: Fix common/ includes.
15774 * s12z-tdep.c: Fix common/ includes.
15775 * rust-exp.y: Fix common/ includes.
15776 * rs6000-aix-tdep.c: Fix common/ includes.
15777 * riscv-tdep.c: Fix common/ includes.
15778 * remote.c: Fix common/ includes.
15779 * remote-notif.h: Fix common/ includes.
15780 * remote-fileio.h: Fix common/ includes.
15781 * remote-fileio.c: Fix common/ includes.
15782 * regcache.h: Fix common/ includes.
15783 * regcache.c: Fix common/ includes.
15784 * record-btrace.c: Fix common/ includes.
15785 * python/python.c: Fix common/ includes.
15786 * python/py-type.c: Fix common/ includes.
15787 * python/py-inferior.c: Fix common/ includes.
15788 * progspace.h: Fix common/ includes.
15789 * producer.c: Fix common/ includes.
15790 * procfs.c: Fix common/ includes.
15791 * proc-api.c: Fix common/ includes.
15792 * printcmd.c: Fix common/ includes.
15793 * ppc-linux-nat.c: Fix common/ includes.
15794 * parser-defs.h: Fix common/ includes.
15795 * osdata.c: Fix common/ includes.
15796 * obsd-nat.c: Fix common/ includes.
15797 * nat/x86-linux.c: Fix common/ includes.
15798 * nat/x86-linux-dregs.c: Fix common/ includes.
15799 * nat/x86-dregs.h: Fix common/ includes.
15800 * nat/x86-dregs.c: Fix common/ includes.
15801 * nat/ppc-linux.c: Fix common/ includes.
15802 * nat/mips-linux-watch.h: Fix common/ includes.
15803 * nat/mips-linux-watch.c: Fix common/ includes.
15804 * nat/linux-waitpid.c: Fix common/ includes.
15805 * nat/linux-ptrace.h: Fix common/ includes.
15806 * nat/linux-ptrace.c: Fix common/ includes.
15807 * nat/linux-procfs.c: Fix common/ includes.
15808 * nat/linux-personality.c: Fix common/ includes.
15809 * nat/linux-osdata.c: Fix common/ includes.
15810 * nat/linux-namespaces.c: Fix common/ includes.
15811 * nat/linux-btrace.h: Fix common/ includes.
15812 * nat/linux-btrace.c: Fix common/ includes.
15813 * nat/fork-inferior.c: Fix common/ includes.
15814 * nat/amd64-linux-siginfo.c: Fix common/ includes.
15815 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
15816 * nat/aarch64-linux.c: Fix common/ includes.
15817 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
15818 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
15819 * namespace.h: Fix common/ includes.
15820 * mips-linux-tdep.c: Fix common/ includes.
15821 * minsyms.c: Fix common/ includes.
15822 * mi/mi-parse.h: Fix common/ includes.
15823 * mi/mi-main.c: Fix common/ includes.
15824 * mi/mi-cmd-env.c: Fix common/ includes.
15825 * memrange.h: Fix common/ includes.
15826 * memattr.c: Fix common/ includes.
15827 * maint.h: Fix common/ includes.
15828 * maint.c: Fix common/ includes.
15829 * main.c: Fix common/ includes.
15830 * machoread.c: Fix common/ includes.
15831 * location.c: Fix common/ includes.
15832 * linux-thread-db.c: Fix common/ includes.
15833 * linux-nat.c: Fix common/ includes.
15834 * linux-fork.c: Fix common/ includes.
15835 * inline-frame.c: Fix common/ includes.
15836 * infrun.c: Fix common/ includes.
15837 * inflow.c: Fix common/ includes.
15838 * inferior.h: Fix common/ includes.
15839 * inferior.c: Fix common/ includes.
15840 * infcmd.c: Fix common/ includes.
15841 * inf-ptrace.c: Fix common/ includes.
15842 * inf-child.c: Fix common/ includes.
15843 * ia64-linux-nat.c: Fix common/ includes.
15844 * i387-tdep.c: Fix common/ includes.
15845 * i386-tdep.c: Fix common/ includes.
15846 * i386-linux-tdep.c: Fix common/ includes.
15847 * i386-linux-nat.c: Fix common/ includes.
15848 * i386-go32-tdep.c: Fix common/ includes.
15849 * i386-fbsd-tdep.c: Fix common/ includes.
15850 * i386-fbsd-nat.c: Fix common/ includes.
15851 * guile/scm-type.c: Fix common/ includes.
15852 * guile/guile.c: Fix common/ includes.
15853 * go32-nat.c: Fix common/ includes.
15854 * gnu-nat.c: Fix common/ includes.
15855 * gdbthread.h: Fix common/ includes.
15856 * gdbarch-selftests.c: Fix common/ includes.
15857 * gdb_usleep.c: Fix common/ includes.
15858 * gdb_select.h: Fix common/ includes.
15859 * gdb_bfd.c: Fix common/ includes.
15860 * gcore.c: Fix common/ includes.
15861 * fork-child.c: Fix common/ includes.
15862 * findvar.c: Fix common/ includes.
15863 * fbsd-nat.c: Fix common/ includes.
15864 * event-top.c: Fix common/ includes.
15865 * event-loop.c: Fix common/ includes.
15866 * dwarf2read.c: Fix common/ includes.
15867 * dwarf2loc.c: Fix common/ includes.
15868 * dwarf2-frame.c: Fix common/ includes.
15869 * dwarf-index-cache.c: Fix common/ includes.
15870 * dtrace-probe.c: Fix common/ includes.
15871 * disasm-selftests.c: Fix common/ includes.
15872 * defs.h: Fix common/ includes.
15873 * csky-tdep.c: Fix common/ includes.
15874 * cp-valprint.c: Fix common/ includes.
15875 * cp-support.h: Fix common/ includes.
15876 * cp-support.c: Fix common/ includes.
15877 * corelow.c: Fix common/ includes.
15878 * completer.h: Fix common/ includes.
15879 * completer.c: Fix common/ includes.
15880 * compile/compile.c: Fix common/ includes.
15881 * compile/compile-loc2c.c: Fix common/ includes.
15882 * compile/compile-cplus-types.c: Fix common/ includes.
15883 * compile/compile-cplus-symbols.c: Fix common/ includes.
15884 * command.h: Fix common/ includes.
15885 * cli/cli-dump.c: Fix common/ includes.
15886 * cli/cli-cmds.c: Fix common/ includes.
15887 * charset.c: Fix common/ includes.
15888 * build-id.c: Fix common/ includes.
15889 * btrace.h: Fix common/ includes.
15890 * btrace.c: Fix common/ includes.
15891 * breakpoint.h: Fix common/ includes.
15892 * breakpoint.c: Fix common/ includes.
15893 * ax.h:
15894 (enum agent_op): Fix common/ includes.
15895 * ax-general.c (struct aop_map): Fix common/ includes.
15896 * ax-gdb.c: Fix common/ includes.
15897 * auxv.c: Fix common/ includes.
15898 * auto-load.c: Fix common/ includes.
15899 * arm-tdep.c: Fix common/ includes.
15900 * arch/riscv.c: Fix common/ includes.
15901 * arch/ppc-linux-common.c: Fix common/ includes.
15902 * arch/i386.c: Fix common/ includes.
15903 * arch/arm.c: Fix common/ includes.
15904 * arch/arm-linux.c: Fix common/ includes.
15905 * arch/arm-get-next-pcs.c: Fix common/ includes.
15906 * arch/amd64.c: Fix common/ includes.
15907 * arch/aarch64.c: Fix common/ includes.
15908 * arch/aarch64-insn.c: Fix common/ includes.
15909 * arch-utils.c: Fix common/ includes.
15910 * amd64-windows-tdep.c: Fix common/ includes.
15911 * amd64-tdep.c: Fix common/ includes.
15912 * amd64-sol2-tdep.c: Fix common/ includes.
15913 * amd64-obsd-tdep.c: Fix common/ includes.
15914 * amd64-nbsd-tdep.c: Fix common/ includes.
15915 * amd64-linux-tdep.c: Fix common/ includes.
15916 * amd64-linux-nat.c: Fix common/ includes.
15917 * amd64-fbsd-tdep.c: Fix common/ includes.
15918 * amd64-fbsd-nat.c: Fix common/ includes.
15919 * amd64-dicos-tdep.c: Fix common/ includes.
15920 * amd64-darwin-tdep.c: Fix common/ includes.
15921 * agent.c: Fix common/ includes.
15922 * ada-lang.h: Fix common/ includes.
15923 * ada-lang.c: Fix common/ includes.
15924 * aarch64-tdep.c: Fix common/ includes.
15925
2f5c153e
TT
159262019-01-25 Tom Tromey <tom@tromey.com>
15927
15928 * common/create-version.sh: Use common/version.h.
15929
adc6a863
PA
159302019-01-24 Pedro Alves <palves@redhat.com>
15931
15932 * infrun.c (signal_stop, signal_print, signal_program)
15933 (signal_catch, signal_pass): Now arrays instead of pointers.
15934 (update_signals_program_target, do_target_resume)
15935 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
15936 * linux-nat.c (linux_nat_target::pass_signals)
15937 (linux_nat_target::create_inferior, linux_nat_target::attach):
15938 Adjust.
15939 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
15940 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
15941 * procfs.c (procfs_target::pass_signals): Adjust.
15942 * record-full.c (record_full_target::resume): Adjust.
15943 * remote.c (remote_target::pass_signals)
15944 (remote_target::program_signals): Adjust.
15945 * target-debug.h (target_debug_print_signals): Now takes a
15946 gdb::array_view as parameter. Adjust.
15947 * target.h (target_ops) <pass_signals, program_signals>: Replace
15948 pointer and length parameters with gdb::array_view.
15949 (target_pass_signals, target_program_signals): Likewise.
15950 * target-delegates.c: Regenerate.
15951
3046d67a
PA
159522019-01-24 Pedro Alves <palves@redhat.com>
15953
15954 * common/forward-scope-exit.h
15955 (forward_scope_exit::forward_scope_exit): Pass arguments to
15956 m_bind_function directly, instead of creating a std::bind and
15957 copying that.
15958
353229bf
AH
159592019-01-24 Alan Hayward <alan.hayward@arm.com>
15960
15961 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
15962 for static members.
15963 (pass_in_v_vfp_candidate): Likewise.
15964
311dc83a
TT
159652019-01-23 Tom Tromey <tom@tromey.com>
15966 Pedro Alves <palves@redhat.com>
15967
15968 * regcache.c (class regcache_invalidator): Remove.
15969 (regcache::raw_write): Use make_scope_exit.
15970
296bd123
TT
159712019-01-23 Tom Tromey <tom@tromey.com>
15972
15973 * ui-out.h (class ui_out_emit_type): Update comment.
15974
979a0d13
TT
159752019-01-23 Tom Tromey <tom@tromey.com>
15976
15977 * infrun.c (fetch_inferior_event): Update comment.
15978
d238133d
TT
159792019-01-23 Tom Tromey <tom@tromey.com>
15980 Pedro Alves <palves@redhat.com>
15981
15982 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
15983 parameter.
15984 (fetch_inferior_event): Use SCOPE_EXIT.
15985
15986
9885e6bb
TT
159872019-01-23 Tom Tromey <tom@tromey.com>
15988 Pedro Alves <palves@redhat.com>
15989
15990 * infrun.c (disable_thread_events): Delete.
15991 (stop_all_threads): Use SCOPE_EXIT.
15992
286526c1
TT
159932019-01-23 Tom Tromey <tom@tromey.com>
15994 Pedro Alves <palves@redhat.com>
15995
15996 * symfile.c: Include forward-scope-exit.h.
15997 (clear_symtab_users_cleanup): Replace forward declaration with
15998 a FORWARD_SCOPE_EXIT.
15999 (syms_from_objfile_1): Use the forward_scope_exit and
16000 gdb::optional instead of cleanup_function.
16001 (reread_symbols): Use the forward_scope_exit instead of
16002 cleanup_function.
16003 (clear_symtab_users_cleanup): Remove function.
16004
1db93f14
TT
160052019-01-23 Tom Tromey <tom@tromey.com>
16006 Pedro Alves <palves@redhat.com>
16007
16008 * linux-nat.c: Include scope-exit.h.
16009 (cleanup_target_stop): Remove.
16010 (linux_nat_target::static_tracepoint_markers_by_strid): Use
16011 SCOPE_EXIT.
16012
2cc83d1e
TT
160132019-01-23 Tom Tromey <tom@tromey.com>
16014 Pedro Alves <palves@redhat.com>
16015
16016 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
16017 (call_function_by_hand_dummy): Use SCOPE_EXIT.
16018
694c6bf5
TT
160192019-01-23 Tom Tromey <tom@tromey.com>
16020 Andrew Burgess <andrew.burgess@embecosm.com>
16021 Pedro Alves <palves@redhat.com>
16022
16023 * infrun.c (fetch_inferior_event): Use scope_exit.
16024 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
16025 * top.c (execute_command): Use scope_exit.
16026 * breakpoint.c (bpstat_do_actions): Use scope_exit.
16027 * utils.c (do_bpstat_clear_actions_cleanup)
16028 (make_bpstat_clear_actions_cleanup): Remove.
16029
4c41382a
TT
160302019-01-23 Tom Tromey <tom@tromey.com>
16031 Pedro Alves <palves@redhat.com>
16032
16033 * infrun.c: Include "common/scope-exit.h"
16034 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
16035 (wait_for_inferior): Use SCOPE_EXIT.
16036 (fetch_inferior_event): Use scope_exit.
16037
89f8fb50
TT
160382019-01-23 Tom Tromey <tom@tromey.com>
16039 Pedro Alves <palves@redhat.com>
16040
16041 * breakpoint.c (create_breakpoint): Remove cleanup.
16042
5419bdae
TT
160432019-01-23 Tom Tromey <tom@tromey.com>
16044 Andrew Burgess <andrew.burgess@embecosm.com>
16045 Pedro Alves <palves@redhat.com>
16046
e587ef42
PA
160472019-01-23 Pedro Alves <palves@redhat.com>
16048
16049 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
16050
77f0e74c
PA
160512019-01-23 Pedro Alves <palves@redhat.com>
16052 Andrew Burgess <andrew.burgess@embecosm.com>
16053
16054 * gdbthread.h: Include "common/forward-scope-exit.h".
16055 (scoped_finish_thread_state): Redefine custom class in terms of
16056 forward_scope_exit.
16057
5b9b3e53
PA
160582019-01-23 Pedro Alves <palves@redhat.com>
16059 Andrew Burgess <andrew.burgess@embecosm.com>
16060
16061 * common/forward-scope-exit.h: New file.
16062
54b65c9b
PA
160632019-01-23 Pedro Alves <palves@redhat.com>
16064 Andrew Burgess <andrew.burgess@embecosm.com>
16065 Tom Tromey <tom@tromey.com>
16066
16067 * common/scope-exit.h: New file.
16068
cf08fb29
PA
160692019-01-23 Pedro Alves <palves@redhat.com>
16070
16071 * common/preprocessor.h (ESC): Rename to ...
16072 (ESC_PARENS): ... this.
16073 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
16074 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
16075
ae73e2e2
TT
160762019-01-23 Tom Tromey <tom@tromey.com>
16077
16078 * language.h (class scoped_switch_to_sym_language_if_auto):
16079 Initialize m_lang in both cases.
16080
6594e122
AH
160812019-01-23 Alan Hayward <alan.hayward@arm.com>
16082
16083 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
16084 with XCNEW.
16085
a7c9855d
TT
160862019-01-22 Tom Tromey <tom@tromey.com>
16087
16088 * corelow.c: Do not include sys/file.h.
16089
93cc1d53
TT
160902019-01-22 Tom Tromey <tom@tromey.com>
16091
16092 * tui/tui-wingeneral.h: Include gdb_curses.h.
16093
38561778
TT
160942019-01-22 Tom Tromey <tom@tromey.com>
16095
16096 * source-cache.h (class source_cache) <get_source_lines,
16097 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
16098
37b3ab5b
TT
160992019-01-22 Tom Tromey <tom@tromey.com>
16100
16101 * remote-fileio.h (struct remote_target): Declare.
16102
3fabc016
TT
161032019-01-22 Tom Tromey <tom@tromey.com>
16104
16105 * python/py-arch.c: Do not include py-ref.h.
16106 * python/py-bpevent.c: Do not include py-ref.h.
16107 * python/py-cmd.c: Do not include py-ref.h.
16108 * python/py-continueevent.c: Do not include py-ref.h.
16109 * python/py-event.h: Do not include py-ref.h.
16110 * python/py-evtregistry.c: Do not include py-ref.h.
16111 * python/py-finishbreakpoint.c: Do not include py-ref.h.
16112 * python/py-frame.c: Do not include py-ref.h.
16113 * python/py-framefilter.c: Do not include py-ref.h.
16114 * python/py-function.c: Do not include py-ref.h.
16115 * python/py-infevents.c: Do not include py-ref.h.
16116 * python/py-linetable.c: Do not include py-ref.h.
16117 * python/py-objfile.c: Do not include py-ref.h.
16118 * python/py-param.c: Do not include py-ref.h.
16119 * python/py-prettyprint.c: Do not include py-ref.h.
16120 * python/py-progspace.c: Do not include py-ref.h.
16121 * python/py-symbol.c: Do not include py-ref.h.
16122 * python/py-symtab.c: Do not include py-ref.h.
16123 * python/py-type.c: Do not include py-ref.h.
16124 * python/py-unwind.c: Do not include py-ref.h.
16125 * python/py-utils.c: Do not include py-ref.h.
16126 * python/py-value.c: Do not include py-ref.h.
16127 * python/py-varobj.c: Do not include py-ref.h.
16128 * python/py-xmethods.c: Do not include py-ref.h.
16129 * python/python.c: Do not include py-ref.h.
16130 * varobj.c: Do not include py-ref.h.
16131
6b4d7774
TT
161322019-01-22 Tom Tromey <tom@tromey.com>
16133
16134 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
16135 keyword for bcache.
16136
7af7e9b5
TT
161372019-01-22 Tom Tromey <tom@tromey.com>
16138
16139 * compile/compile-cplus-types.c: Remove a comment by #include.
16140
951d1049
TT
161412019-01-22 Tom Tromey <tom@tromey.com>
16142
16143 * compile/gcc-c-plugin.h: Include compile-internal.h.
16144
d65d5705
TT
161452019-01-22 Tom Tromey <tom@tromey.com>
16146
16147 * stabsread.c (EXTERN): Do not define.
16148 (symnum, next_symbol_text_func, processing_gcc_compilation)
16149 (within_function, global_sym_chain, global_stabs)
16150 (previous_stab_code, this_object_header_files)
16151 (n_this_object_header_files)
16152 (n_allocated_this_object_header_files): Define.
16153 * stabsread.h (EXTERN): Never define. Use "extern".
16154
b6fb1ee5
PW
161552019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16156
16157 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
16158 history_value.
16159
be6d4f74
TT
161602019-01-21 Tom Tromey <tom@tromey.com>
16161
16162 * ui-out.c: Fix includes.
16163 * tui/tui-source.c: Fix includes.
16164 * target.c: Fix includes.
16165 * remote.c: Fix includes.
16166 * regcache.c: Fix includes.
16167 * python/py-block.c: Fix includes.
16168 * printcmd.c: Fix includes.
16169 * or1k-tdep.c: Fix includes.
16170 * mi/mi-main.c: Fix includes.
16171 * m32r-tdep.c: Fix includes.
16172 * csky-tdep.c: Fix includes.
16173 * compile/compile-cplus-types.c: Fix includes.
16174 * cli/cli-interp.c: Fix includes.
16175
73021deb
AH
161762019-01-21 Alan Hayward <alan.hayward@arm.com>
16177
16178 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
16179 for padding.
16180
7932255d
TT
161812019-01-16 Tom Tromey <tom@tromey.com>
16182
16183 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
16184 earlier.
16185 (struct objfile) <msymbols_range>: Move from top level.
16186 <msymbols>: New method.
16187 (class objfile_msymbols): Remove.
16188 * symtab.c (default_collect_symbol_completion_matches_break_on):
16189 Update.
16190 * symmisc.c (dump_msymbols): Update.
16191 * stabsread.c (scan_file_globals): Update.
16192 * objc-lang.c (info_selectors_command, info_classes_command)
16193 (find_methods): Update.
16194 * minsyms.c (find_solib_trampoline_target): Update.
16195 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
16196 * coffread.c (coff_symfile_read): Update.
16197 * ada-lang.c (ada_lookup_simple_minsym)
16198 (ada_collect_symbol_completion_matches): Update.
16199
604b1bfb
TT
162002019-01-16 Tom Tromey <tom@tromey.com>
16201
16202 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
16203 type. Remove no-argument constructor.
16204 <iterator::operator++>: Simplify.
16205 <begin>: Update.
16206 <end>: Use minimal_symbol_count.
16207
f252c6d5
TT
162082019-01-16 Tom Tromey <tom@tromey.com>
16209
16210 * objfiles.h (struct objfile) <psymtabs>: New method.
16211 (class objfile_psymtabs): Remove.
16212 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
16213 typedef.
16214 <range>: New method.
16215 (require_partial_symbols): Change return type.
16216 * psymtab.c (require_partial_symbols)
16217 (psym_expand_symtabs_matching): Update.
16218 * mdebugread.c (parse_partial_symbols): Update.
16219 * dbxread.c (dbx_end_psymtab): Update.
16220
b669c953
TT
162212019-01-15 Tom Tromey <tom@tromey.com>
16222
16223 * symtab.c (lookup_objfile_from_block)
16224 (lookup_symbol_in_objfile_symtabs)
16225 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
16226 (find_line_symtab, info_sources_command)
16227 (default_collect_symbol_completion_matches_break_on)
16228 (make_source_files_completion_list): Update.
16229 * symmisc.c (print_objfile_statistics, dump_objfile)
16230 (maintenance_print_symbols, maintenance_info_symtabs)
16231 (maintenance_check_symtabs, maintenance_info_line_tables):
16232 Update.
16233 * source.c (select_source_symtab)
16234 (forget_cached_source_info_for_objfile): Update.
16235 * objfiles.h (class objfile_compunits): Remove.
16236 (struct objfile) <compunits_range>: New typedef.
16237 (compunits): New method.
16238 * objfiles.c (objfile_relocate1): Update.
16239 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
16240 * maint.c (count_symtabs_and_blocks): Update.
16241 * linespec.c (iterate_over_all_matching_symtabs): Update.
16242 * cp-support.c (add_symbol_overload_list_qualified): Update.
16243 * coffread.c (coff_symtab_read): Update.
16244 * ada-lang.c (add_nonlocal_symbols)
16245 (ada_collect_symbol_completion_matches)
16246 (ada_add_global_exceptions): Update.
16247
7e955d83
TT
162482019-01-15 Tom Tromey <tom@tromey.com>
16249
16250 * progspace.h (program_space) <objfiles_safe_range>: New
16251 typedef.
16252 <objfiles_safe>: New method.
16253 * objfiles.h (class all_objfiles_safe): Remove.
16254 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
16255 * jit.c (jit_inferior_exit_hook): Update.
16256
2030c079
TT
162572019-01-17 Tom Tromey <tom@tromey.com>
16258
16259 * progspace.h (program_space) <objfiles_range>: New typedef.
16260 <objfiles>: New method.
16261 <objfiles_head>: Rename from objfiles.
16262 (object_files): Update.
16263 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
16264 * guile/scm-pretty-print.c
16265 (ppscm_find_pretty_printer_from_objfiles): Update.
16266 * guile/scm-objfile.c (gdbscm_objfiles): Update.
16267 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
16268 Update.
16269 * python/py-progspace.c (pspy_get_objfiles): Update.
16270 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
16271 Update.
16272 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
16273 (objfpy_lookup_objfile_by_build_id): Update.
16274 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
16275 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
16276 Update.
16277 * symtab.c (iterate_over_symtabs, matching_obj_sections)
16278 (expand_symtab_containing_pc, lookup_objfile_from_block)
16279 (lookup_static_symbol, basic_lookup_transparent_type)
16280 (find_pc_sect_compunit_symtab, find_symbol_at_address)
16281 (find_line_symtab, info_sources_command)
16282 (default_collect_symbol_completion_matches_break_on)
16283 (make_source_files_completion_list, find_main_name): Update.
16284 * symmisc.c (print_symbol_bcache_statistics)
16285 (print_objfile_statistics, maintenance_print_symbols)
16286 (maintenance_print_msymbols, maintenance_print_objfiles)
16287 (maintenance_info_symtabs, maintenance_check_symtabs)
16288 (maintenance_expand_symtabs, maintenance_info_line_tables):
16289 Update.
16290 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
16291 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
16292 (map_overlay_command, unmap_overlay_command)
16293 (simple_overlay_update, expand_symtabs_matching)
16294 (map_symbol_filenames): Update.
16295 * symfile-debug.c (set_debug_symfile): Update.
16296 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
16297 Update.
16298 * source.c (select_source_symtab, forget_cached_source_info):
16299 Update.
16300 * solib.c (solib_read_symbols): Update.
16301 * solib-spu.c (append_ocl_sos): Update.
16302 * psymtab.c (maintenance_print_psymbols)
16303 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
16304 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
16305 * printcmd.c (info_symbol_command): Update.
16306 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
16307 Update.
16308 * objfiles.h (class all_objfiles): Remove.
16309 * objfiles.c (have_partial_symbols, have_full_symbols)
16310 (have_minimal_symbols, qsort_cmp, update_section_map)
16311 (shared_objfile_contains_address_p)
16312 (default_iterate_over_objfiles_in_search_order): Update.
16313 * objc-lang.c (info_selectors_command, info_classes_command)
16314 (find_methods): Update.
16315 * minsyms.c (find_solib_trampoline_target): Update.
16316 * maint.c (maintenance_info_sections)
16317 (maintenance_translate_address, count_symtabs_and_blocks):
16318 Update.
16319 * main.c (captured_main_1): Update.
16320 * linux-thread-db.c (try_thread_db_load_from_pdir)
16321 (has_libpthread): Update.
16322 * linespec.c (iterate_over_all_matching_symtabs)
16323 (search_minsyms_for_name): Update.
16324 * jit.c (jit_find_objf_with_entry_addr): Update.
16325 * hppa-tdep.c (find_unwind_entry)
16326 (hppa_lookup_stub_minimal_symbol): Update.
16327 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
16328 Update.
16329 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
16330 (elf_gnu_ifunc_resolve_by_got): Update.
16331 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
16332 * dwarf-index-write.c (save_gdb_index_command): Update.
16333 * cp-support.c (add_symbol_overload_list_qualified): Update.
16334 * breakpoint.c (create_overlay_event_breakpoint)
16335 (create_longjmp_master_breakpoint)
16336 (create_std_terminate_master_breakpoint)
16337 (create_exception_master_breakpoint): Update.
16338 * blockframe.c (find_pc_partial_function): Update.
16339 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
16340 (ada_collect_symbol_completion_matches)
16341 (ada_add_global_exceptions): Update.
16342
776489e0
TT
163432019-01-17 Tom Tromey <tom@tromey.com>
16344
16345 * solib-target.c (lm_info_target_p): Remove typedef. Don't
16346 declare VEC.
16347 (solib_target_parse_libraries): Change return type.
16348 (library_list_start_segment, library_list_start_section)
16349 (library_list_end_library, library_list_start_library); Update.
16350 (solib_target_free_library_list): Remove.
16351 (solib_target_parse_libraries): Remove cleanup. Change return
16352 type.
16353 (solib_target_current_sos): Update.
16354
6471e7d2
TT
163552019-01-17 Tom Tromey <tromey@bapiya>
16356
16357 * valprint.c: Replace "the the" with "the".
16358 * symtab.c: Replace "the the" with "the".
16359 * solib.c: Replace "the the" with "the".
16360 * solib-dsbt.c: Replace "the the" with "the".
16361 * linespec.c: Replace "the the" with "the".
16362 * dwarf2loc.h: Replace "the the" with "the".
16363 * amd64-windows-tdep.c: Replace "the the" with "the".
16364 * aarch64-tdep.c: Replace "the the" with "the".
16365
c24bdb02
KS
163662019-01-16 Keith Seitz <keiths@redhat.com>
16367
16368 PR gdb/23773
16369 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
16370 <builder>: Rename to ..
16371 <m_builder>: ... this and make private.
16372 (dwarf2_cu::get_builder): New method. Change all users of
16373 `builder' to use this method.
16374 (dwarf2_start_symtab): Move to ...
16375 (dwarf2_cu::start_symtab): ... here. Update all callers
16376 (setup_type_unit_groups): Move to ...
16377 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
16378 callers.
16379 (dwarf2_cu::reset_builder): New method.
16380 (process_full_compunit, process_full_type_unit): Use
16381 dwarf2_cu::reset_builder.
16382 (follow_die_offset): Record the ancestor CU if it is different
16383 from the followed DIE's CU.
16384 (follow_die_sig_1): Likewise.
16385
8d64371b
TT
163862019-01-15 Tom Tromey <tom@tromey.com>
16387
16388 * remote.c (class remote_state) <buf>: Now a char_vector.
16389 <buf_size>: Remove.
16390 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
16391 parameter.
16392 (remote_target::getpkt_or_notif_sane_1)
16393 (remote_target::getpkt_sane)
16394 (remote_target::getpkt_or_notif_sane): Likewise.
16395 (class remote_target) <putpkt>: New overload.
16396 (remote_target::read_frame): Change type of "buf_p". Remove
16397 sizeof_p parameter.
16398 (packet_ok): New overload.
16399 (packet_check_result): New overload.
16400 Update all uses.
16401
bb277751
TT
164022019-01-14 Tom Tromey <tom@tromey.com>
16403
16404 * remote-notif.c (handle_notification, remote_notif_ack)
16405 (remote_notif_parse): Make "buf" const.
16406 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
16407 const.
16408 (remote_notif_parse, remote_notif_ack, handle_notification):
16409 Likewise.
16410 * remote.c (remote_notif_stop_parse): Make "buf" const.
16411 (remote_target::remote_parse_stop_reply): Make "buf" const.
16412 (remote_notif_stop_ack): Make "buf" const.
16413
05be00a8
TT
164142019-01-14 Tom Tromey <tom@tromey.com>
16415
16416 * remote.c (remote_console_output): Make parameter const.
16417
491adeca
TT
164182019-01-14 Tom Tromey <tom@tromey.com>
16419
16420 * target-debug.h (target_debug_print_signals): Constify.
16421 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
16422 * procfs.c (procfs_target::pass_signals): Update.
16423 * linux-nat.c (linux_nat_target::pass_signals): Update.
16424 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
16425 * target-delegates.c: Rebuild.
16426 * remote.c (remote_target::program_signals): Update.
16427 (remote_target::pass_signals): Update.
16428 * target.c (target_pass_signals): Constify argument.
16429 (target_program_signals): Likewise.
16430 * target.h (struct target_ops) <pass_signals, program_signals>:
16431 Constify argument.
16432 (target_pass_signals, target_program_signals): Constify argument.
16433
bbd94648
TT
164342019-01-14 Tom Tromey <tom@tromey.com>
16435
16436 PR tui/28819:
16437 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
16438
6f072a10
PFC
164392019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
16440
16441 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
16442 field.
16443 * rs6000-tdep.c: Include reggroups.h.
16444 (IS_V_ALIAS_PSEUDOREG): Define.
16445 (rs6000_register_name): Return names for the "vX" aliases.
16446 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
16447 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
16448 aliases. Call default_register_reggroup_p for all other
16449 pseudo-registers.
16450 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
16451 New functions.
16452 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
16453 Handle "vX" aliases.
16454 (v_alias_pseudo_register_collect): New function.
16455 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
16456 (rs6000_gdbarch_init): Initialize "vX" aliases as
16457 pseudo-registers. Restore registration of
16458 rs6000_pseudo_register_reggroup_p with
16459 set_tdesc_pseudo_register_reggroup_p.
16460
1a782351
MF
164612019-01-13 Max Filippov <jcmvbkbc@gmail.com>
16462
16463 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
16464 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
16465 set_gdbarch_num_pseudo_regs.
16466
d73cff18
PW
164672019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16468
16469 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
16470 Remove arg prefixname, add do_set and do_show.
16471 Add member functions set_list and show_list.
16472 * cli/cli-style.c (class cli_style_option): Update accordingly.
16473 (style_set_list): Move to file scope.
16474 (style_show_list): Likewise.
16475 (set_style): Call help_list.
16476 (show_style): Call cmd_show_list.
16477 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
16478 Update to use the new macro.
16479
60a90376
JB
164802019-10-12 Joel Brobecker <brobecker@adacore.com>
16481
16482 * ada-lang.c (_initialize_ada_language): Expand the help text
16483 for the "catch exception" command.
16484
9d7c67bf
PW
164852019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16486
16487 * symtab.c (matching_obj_sections): Initialize obj,
16488 declare it closer to its usage.
16489
7cf47dc4
TT
164902019-01-10 Tom Tromey <tom@tromey.com>
16491
16492 * thread-iter.h (inf_threads_iterator): Use next_iterator.
16493 (basic_inf_threads_range): Remove.
16494 (inf_threads_range, inf_non_exited_threads_range)
16495 (safe_inf_threads_range): Use next_adapter.
16496
d3cb6808
KS
164972019-01-10 Keith Seitz <keiths@redhat.com>
16498
16499 PR gdb/23712
16500 PR symtab/23010
16501 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
16502 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
16503
63a20375
KS
165042019-01-10 Keith Seitz <keiths@redhat.com>
16505
16506 PR gdb/23712
16507 PR symtab/23010
16508 * dictionary.c (pending_to_vector): Remove.
16509 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
16510 Remove _1 suffix, replacing functions of the same name. Update
16511 all callers.
16512 (dict_create_hashed, dict_create_hashed_expandable)
16513 (dict_create_linear, dict_create_linear_expandable, dict_free)
16514 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
16515 Make functions static.
16516
b026f593
KS
165172019-01-10 Keith Seitz <keiths@redhat.com>
16518
16519 PR gdb/23712
16520 PR symtab/23010
16521 * dictionary.h (struct dictionary): Replace declaration with
16522 multidictionary.
16523 (dict_create_hashed, dict_create_hashed_expandable)
16524 (dict_create_linear, dict_create_linear_expandable)
16525 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
16526 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
16527 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
16528 taking multidictionary argument.
16529 [ALL_DICT_SYMBOLS]: Update for multidictionary.
16530 * block.h (struct block) <dict>: Change to multidictionary
16531 and rename `multidict'.
16532 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
16533 symmisc.c: Update all dictionary references to multidictionary.
16534
c7748ee9
KS
165352019-01-10 Keith Seitz <keiths@redhat.com>
16536
16537 PR gdb/23712
16538 PR symtab/23010
16539 * dictionary.c: Include unordered_map.
16540 (pending_to_vector): New function.
16541 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
16542 Rewrite the non-"_1" functions to take vector instead
16543 of linked list.
16544 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
16545 "new" _1 versions of the same name.
16546 (multidictionary): Define.
16547 (std::hash<enum language): New definition.
16548 (collate_pending_symbols_by_language, mdict_create_hashed)
16549 (mdict_create_hashed_expandable, mdict_create_linear)
16550 (mdict_create_linear_expandable, mdict_free)
16551 (find_language_dictionary, create_new_language_dictionary)
16552 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
16553 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
16554 (mdict_size, mdict_empty): New functions.
16555 * dictionary.h (mdict_iterator): Define.
16556
67aa1f3c
PA
165572019-01-10 Pedro Alves <palves@redhat.com>
16558
16559 * breakpoint.c (read_uploaded_action)
16560 (create_tracepoint_from_upload): Adjust to use
16561 gdb::unique_xmalloc_ptr.
16562 * ctf.c (ctf_write_uploaded_tp):
16563 (SET_ARRAY_FIELD): Use emplace_back.
16564 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
16565 * tracefile-tfile.c (tfile_write_uploaded_tp):
16566 * tracepoint.c (parse_tracepoint_definition): Adjust to use
16567 gdb::unique_xmalloc_ptr.
16568 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
16569 at_string, cond_string, cmd_strings>: Replace char pointers
16570 with gdb::unique_xmalloc_ptr.
16571
2f667667
PA
165722019-01-10 Pedro Alves <palves@redhat.com>
16573
16574 * solib-target.c (library_list_start_library): Don't xstrdup name.
16575
36cb7237
PA
165762019-01-10 Pedro Alves <palves@redhat.com>
16577
16578 * mdebugread.c (parse_partial_symbols): Use
16579 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
16580
da584958
AB
165812019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
16582
16583 * linux-fork.c (scoped_switch_fork_info)
16584 <~scoped_switch_fork_info>: Fix incorrect variable name.
16585
1ef8573c
AB
165862019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
16587
16588 * linux-fork.c (scoped_switch_fork_info)
16589 <scoped_switch_fork_info>: Make explicit.
16590 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
16591
8d7bcccb
TT
165922019-01-10 Tom Tromey <tom@tromey.com>
16593
16594 * objfiles.h (objfile::reset_psymtabs): Update.
16595 * objfiles.c (objfile::objfile): Update.
16596 * psymtab.h (psymtab_storage::obstack): Update.
16597 (psymtab_storage::m_obstack): Use gdb::optional.
16598 (class psymtab_storage): Update comment. Remove objfile
16599 parameter.
16600 * psymtab.c (psymtab_storage::psymtab_storage): Update.
16601
b596a3c7
TT
166022019-01-10 Tom Tromey <tom@tromey.com>
16603
16604 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
16605 <free_psymtabs>: Now private.
16606 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
16607 (allocate_psymtab): Use new method.
16608
a9342b62
TT
166092019-01-10 Tom Tromey <tom@tromey.com>
16610
16611 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
16612 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
16613 * mdebugread.c (parse_partial_symbols): Use
16614 allocate_dependencies.
16615 * dwarf2read.c (dwarf2_create_include_psymtab): Use
16616 allocate_dependencies.
16617 (process_psymtab_comp_unit_reader)
16618 (build_type_psymtab_dependencies): Likewise.
16619 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
16620
5af70966
TT
166212019-01-10 Tom Tromey <tom@tromey.com>
16622
16623 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
16624 PSYMBOL_SET_LANGUAGE.
16625 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
16626
5923a04c
TT
166272019-01-10 Tom Tromey <tom@tromey.com>
16628
16629 * psymtab.h (psymtab_storage::obstack): New method.
16630 <m_obstack>: Rename from obstack; now private.
16631 * psymtab.c (psymtab_storage): Update.
16632 * dwarf2read.c (create_addrmap_from_index)
16633 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
16634 Update.
16635
6d6a12bf
TT
166362019-01-10 Tom Tromey <tom@tromey.com>
16637
16638 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
16639 * objfiles.h (objfile::reset_psymtabs): New method.
16640
d320c2b5
TT
166412019-01-10 Tom Tromey <tom@tromey.com>
16642
16643 * symmisc.c (print_symbol_bcache_statistics): Update.
16644 (print_objfile_statistics): Update.
16645 * symfile.c (reread_symbols): Update.
16646 * psymtab.h (class psymtab_storage): New.
16647 * psymtab.c (psymtab_storage): New constructor.
16648 (~psymtab_storage): New destructor.
16649 (require_partial_symbols): Update.
16650 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
16651 (find_pc_sect_psymtab, find_pc_sect_psymbol)
16652 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
16653 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
16654 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
16655 (start_psymtab_common, end_psymtab_common)
16656 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
16657 (allocate_psymtab): Update.
16658 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
16659 Update.
16660 (dump_psymtab_addrmap, maintenance_print_psymbols)
16661 (maintenance_check_psymtabs): Update.
16662 (class objfile_psymtabs): Move to objfiles.h.
16663 * psympriv.h (discard_psymtab): Now inline.
16664 (psymtab_discarder::psymtab_discarder): Update.
16665 (psymtab_discarder::~psymtab_discarder): Update.
16666 (ALL_OBJFILE_PSYMTABS): Rewrite.
16667 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
16668 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
16669 Remove fields.
16670 <partial_symtabs>: New field.
16671 (class objfile_psymtabs): Move from psymtab.h. Update.
16672 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
16673 psymbol_cache.
16674 (objfile::~objfile): Don't destroy psymbol_cache.
16675 * mdebugread.c (parse_partial_symbols): Update.
16676 * dwarf2read.c (create_addrmap_from_index)
16677 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
16678 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
16679 (add_partial_subprogram, dwarf2_ranges_read): Update.
16680 * dwarf-index-write.c (write_address_map)
16681 (write_one_signatured_type, recursively_write_psymbols)
16682 (class debug_names, class debug_names, write_psymtabs_to_index):
16683 Update.
16684
1d94a5a3
TT
166852019-01-10 Tom Tromey <tom@tromey.com>
16686
16687 * symtab.h (SYMBOL_SET_NAMES): Update.
16688 (symbol_set_names): Update.
16689 (MSYMBOL_SET_NAMES): Update.
16690 * symtab.c (symbol_set_names): Change argument to be an
16691 objfile_per_bfd_storage.
16692 * psymtab.c (add_psymbol_to_bcache): Update.
16693 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
16694
0f14768a
TT
166952019-01-10 Tom Tromey <tom@tromey.com>
16696
16697 * symtab.c (create_demangled_names_hash): Change argument to be an
16698 objfile_per_bfd_storage.
16699 (symbol_set_names): Update.
16700
6eee24ce
TT
167012019-01-10 Tom Tromey <tom@tromey.com>
16702
16703 * xcoffread.c (xcoff_initial_scan): Unconditionally call
16704 init_psymbol_list.
16705 * psymtab.c (init_psymbol_list): Do nothing if already called.
16706 * psympriv.h (init_psymbol_list): Add comment.
16707 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
16708 init_psymbol_list.
16709 * dbxread.c (dbx_symfile_read): Unconditionally call
16710 init_psymbol_list.
16711
75aedd27
TT
167122019-01-10 Tom Tromey <tom@tromey.com>
16713
16714 * xcoffread.c (scan_xcoff_symtab): Update.
16715 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
16716 "where".
16717 * mdebugread.c (parse_partial_symbols)
16718 (handle_psymbol_enumerators): Update.
16719 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
16720 * dbxread.c (read_dbx_symtab): Update.
16721 * psympriv.h (psymbol_placement): New enum.
16722 (add_psymbol_to_list): Update.
16723
939652a5
TT
167242019-01-10 Tom Tromey <tom@tromey.com>
16725
16726 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
16727 static_psymbols parameters.
16728 (scan_xcoff_symtab): Update.
16729 * psymtab.c (start_psymtab_common): Remove global_psymbols and
16730 static_psymbols parameters.
16731 * psympriv.h (start_psymtab_common): Update.
16732 * mdebugread.c (parse_partial_symbols): Update.
16733 * dwarf2read.c (create_partial_symtab): Update.
16734 * dbxread.c (read_dbx_symtab): Update.
16735 (start_psymtab): Remove global_psymbols and static_psymbols
16736 parameters.
16737
baa62830
TT
167382019-01-10 Tom Tromey <tom@tromey.com>
16739
16740 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
16741 * psymtab.c (allocate_psymtab): Add comment.
16742 * psympriv.h (allocate_psymtab): Add comment.
16743 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
16744 initializations.
16745 * dbxread.c (dbx_end_psymtab): Remove some initializations.
16746
0e8f53ba
TT
167472019-01-10 Tom Tromey <tom@tromey.com>
16748
16749 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
16750 Don't declare.
16751 * mipsread.c: Include mdebugread.h.
16752 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
16753 Declare.
16754 * elfread.c: Include mdebugread.h.
16755
b22a7c6a
TT
167562019-01-09 Tom Tromey <tom@tromey.com>
16757
16758 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
16759 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
16760 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
16761 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
16762 (psym_lookup_symbol, psym_find_last_source_symtab)
16763 (psym_forget_cached_source_info, psym_print_stats)
16764 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
16765 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
16766 (psym_map_matching_symbols, psym_expand_symtabs_matching)
16767 (psym_find_compunit_symtab_by_address)
16768 (maintenance_print_psymbols, maintenance_info_psymtabs)
16769 (maintenance_check_psymtabs): Use ranged for.
16770 * psymtab.h (class objfile_psymtabs): New.
16771 (require_partial_symbols): Return objfile_psymtabs.
16772 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
16773
3b9d3ac2
TT
167742019-01-09 Tom Tromey <tom@tromey.com>
16775
16776 * symfile.c (overlay_invalidate_all, find_pc_overlay)
16777 (find_pc_mapped_section, list_overlays_command)
16778 (map_overlay_command, unmap_overlay_command)
16779 (simple_overlay_update): Use all_objfiles.
16780 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
16781 * printcmd.c (info_symbol_command): Use all_objfiles.
16782 * objfiles.h (ALL_OBJSECTIONS): Remove.
16783 * maint.c (maintenance_translate_address): Use all_objfiles.
16784 * gcore.c (gcore_create_callback): Use all_objfiles.
16785 (objfile_find_memory_regions): Likewise.
16786
8b31193a
TT
167872019-01-09 Tom Tromey <tom@tromey.com>
16788
16789 * symtab.c (find_line_symtab, info_sources_command)
16790 (make_source_files_completion_list): Use objfile_compunits.
16791 * source.c (select_source_symtab): Use objfile_compunits.
16792 * objfiles.h (struct objfile): Update comment.
16793 (ALL_OBJFILES): Remove.
16794 (ALL_FILETABS): Remove.
16795 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
16796 objfile_compunits.
16797
d5da8b3c
TT
167982019-01-09 Tom Tromey <tom@tromey.com>
16799
16800 * symmisc.c (print_objfile_statistics, dump_objfile)
16801 (maintenance_print_symbols): Use compunit_filetabs.
16802 * source.c (forget_cached_source_info_for_objfile): Use
16803 compunit_filetabs.
16804 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
16805 (ALL_FILETABS): Use compunit_filetabs.
16806 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
16807 * coffread.c (coff_symtab_read): Use compunit_filetabs.
16808
5accd1a0
TT
168092019-01-09 Tom Tromey <tom@tromey.com>
16810
16811 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
16812 (compunit_filetabs): New.
16813 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
16814 compunit_filetabs.
16815 (info_sources_command, make_source_files_completion_list): Remove
16816 declaration.
16817 * symmisc.c (print_objfile_statistics, dump_objfile)
16818 (maintenance_print_symbols): Remove declaration.
16819 (maintenance_info_symtabs): Use compunit_filetabs.
16820 (maintenance_info_line_tables): Likewise.
16821 * source.c (select_source_symtab): Change local variable name.
16822 (forget_cached_source_info_for_objfile): Remove declaration.
16823 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
16824 * objfiles.c (objfile_relocate1): Remove declaration.
16825 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
16826 declaration.
16827 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
16828 * coffread.c (coff_symtab_read): Remove declaration.
16829 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
16830 compunit_filetabs.
16831
d8aeb77f
TT
168322019-01-09 Tom Tromey <tom@tromey.com>
16833
16834 * symtab.c (lookup_objfile_from_block)
16835 (find_pc_sect_compunit_symtab, search_symbols)
16836 (default_collect_symbol_completion_matches_break_on): Use
16837 objfile_compunits.
16838 * objfiles.h (ALL_COMPUNITS): Remove.
16839 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
16840 * cp-support.c (add_symbol_overload_list_qualified): Use
16841 objfile_compunits.
16842 * ada-lang.c (ada_collect_symbol_completion_matches)
16843 (ada_add_global_exceptions): Use objfile_compunits.
16844
592553c4
TT
168452019-01-09 Tom Tromey <tom@tromey.com>
16846
16847 * source.c (select_source_symtab)
16848 (forget_cached_source_info_for_objfile): Remove declaration.
16849 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
16850 declaration.
16851 * maint.c (count_symtabs_and_blocks): Remove declaration.
16852 * cp-support.c (add_symbol_overload_list_qualified): Remove
16853 declaration.
16854 * coffread.c (coff_symtab_read): Remove declaration.
16855 * symtab.c (lookup_symbol_in_objfile_symtabs)
16856 (basic_lookup_transparent_type_1): Use objfile_compunits.
16857 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
16858 (info_sources_command, search_symbols)
16859 (default_collect_symbol_completion_matches_break_on)
16860 (make_source_files_completion_list): Remove declaration.
16861 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
16862 (ada_collect_symbol_completion_matches)
16863 (ada_add_global_exceptions): Remove declaration.
16864 * linespec.c (iterate_over_all_matching_symtabs): Use
16865 objfile_compunits.
16866 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
16867 (class objfile_compunits): New.
16868 (ALL_COMPUNITS): Use objfile_compunits.
16869 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
16870 (maintenance_check_symtabs, maintenance_info_line_tables): Use
16871 objfile_compunits.
16872 * objfiles.c (objfile_relocate1): Use objfile_compunits.
16873
5325b9bf
TT
168742019-01-09 Tom Tromey <tom@tromey.com>
16875
16876 * symtab.c (search_symbols)
16877 (default_collect_symbol_completion_matches_break_on): Use
16878 objfile_msymbols.
16879 * ada-lang.c (ada_lookup_simple_minsym)
16880 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
16881 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
16882 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
16883 objfile_msymbols.
16884 * coffread.c (coff_symfile_read): Use objfile_msymbols.
16885 * symmisc.c (dump_msymbols): Use objfile_msymbols.
16886 * objc-lang.c (find_methods): Use objfile_msymbols.
16887 (info_selectors_command, info_classes_command): Likewise.
16888 * stabsread.c (scan_file_globals): Use objfile_msymbols.
16889 * objfiles.h (class objfile_msymbols): New.
16890 (ALL_OBJFILE_MSYMBOLS): Remove.
16891 (ALL_MSYMBOLS): Remove.
16892
cac85af2
TT
168932019-01-09 Tom Tromey <tom@tromey.com>
16894
16895 * common/next-iterator.h (next_adapter): Add Iterator template
16896 parameter.
16897 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
16898 (class all_objfiles_safe): New.
16899 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
16900 * objfiles.c (put_objfile_before): Update comment.
16901 (add_separate_debug_objfile): Likewise.
16902 (free_all_objfiles): Use all_objfiles_safe.
16903 (objfile_purge_solibs): Likewise.
16904
aed57c53
TT
169052019-01-09 Tom Tromey <tom@tromey.com>
16906
16907 * symtab.c (iterate_over_symtabs, matching_obj_sections)
16908 (expand_symtab_containing_pc, lookup_static_symbol)
16909 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
16910 (find_symbol_at_address, find_line_symtab, find_main_name): Use
16911 all_objfiles.
16912 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
16913 * breakpoint.c (create_overlay_event_breakpoint)
16914 (create_longjmp_master_breakpoint)
16915 (create_std_terminate_master_breakpoint)
16916 (create_exception_master_breakpoint): Use all_objfiles.
16917 * linux-thread-db.c (try_thread_db_load_from_pdir)
16918 (has_libpthread): Use all_objfiles.
16919 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
16920 * linespec.c (iterate_over_all_matching_symtabs)
16921 (search_minsyms_for_name): Use all_objfiles.
16922 * maint.c (maintenance_info_sections): Use all_objfiles.
16923 * main.c (captured_main_1): Use all_objfiles.
16924 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
16925 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
16926 * guile/scm-pretty-print.c
16927 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
16928 * solib-spu.c (append_ocl_sos): Use all_objfiles.
16929 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
16930 (maintenance_print_msymbols): Use all_objfiles.
16931 * source.c (select_source_symtab): Use all_objfiles.
16932 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
16933 * symfile.c (remove_symbol_file_command)
16934 (expand_symtabs_matching, map_symbol_filenames): Use
16935 all_objfiles.
16936 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
16937 all_objfiles.
16938 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
16939 * objc-lang.c (find_methods): Use all_objfiles.
16940 * objfiles.c (have_partial_symbols, have_full_symbols)
16941 (have_minimal_symbols, qsort_cmp)
16942 (default_iterate_over_objfiles_in_search_order): Use
16943 all_objfiles.
16944 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
16945 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
16946 (maintenance_check_psymtabs): Use all_objfiles.
16947 (ALL_PSYMTABS): Remove.
16948 * compile/compile-object-run.c (do_module_cleanup): Use
16949 all_objfiles.
16950 * blockframe.c (find_pc_partial_function): Use all_objfiles.
16951 * cp-support.c (add_symbol_overload_list_qualified): Use
16952 all_objfiles.
16953 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
16954 Use all_objfiles.
16955 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
16956 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
16957 all_objfiles.
16958 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
16959 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
16960 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
16961 Uses all_objfiles.
16962 * solib.c (solib_read_symbols): Use all_objfiles
16963
99d89cde
TT
169642019-01-09 Tom Tromey <tom@tromey.com>
16965
16966 * probe.c (parse_probes_in_pspace): Use all_objfiles.
16967 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
16968 all_objfiles.
16969 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
16970 * symmisc.c (print_symbol_bcache_statistics)
16971 (print_objfile_statistics, maintenance_print_objfiles)
16972 (maintenance_info_symtabs, maintenance_check_symtabs)
16973 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
16974 all_objfiles.
16975 * source.c (forget_cached_source_info): Use all_objfiles.
16976 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
16977 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
16978 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
16979 * objfiles.c (update_section_map): Use all_objfiles.
16980 (shared_objfile_contains_address_p): Likewise.
16981 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
16982 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
16983
21708325
TT
169842019-01-09 Tom Tromey <tom@tromey.com>
16985
16986 * common/next-iterator.h: New file.
16987 * objfiles.h (class all_objfiles): New.
16988 (struct objfile_iterator): New.
16989
669e09f6
PW
169902019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16991
16992 * NEWS: Move the description of the changed "frame", "select-frame",
16993 and "info frame" commands to the Changed commands section.
16994
041be526
SM
169952019-01-09 Simon Marchi <simon.marchi@ericsson.com>
16996
16997 * gdbtypes.c (check_stub_method_group): Remove handling of old
16998 mangling schemes.
16999 * linespec.c (find_methods): Likewise.
17000 * stabsread.c (read_member_functions): Likewise.
17001 * valops.c (search_struct_method): Likewise.
17002 (value_struct_elt_for_reference): Likewise.
17003 * NEWS: Mention this change.
17004
0e2a2133
AB
170052019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
17006
17007 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
17008 print_source_lines.
17009 * source.c (print_source_lines_base): Update line number check.
17010 (print_source_lines): New function.
17011 (source_lines_range::source_lines_range): New function.
17012 * source.h (class source_lines_range): New class.
17013 (print_source_lines): New declaration.
17014
1055a3b4
PW
170152019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
17016
17017 * linespec.c (linespec_state_destructor): Free self->canonical_names.
17018
cfeadda5
TT
170192019-01-08 Tom Tromey <tom@tromey.com>
17020 Simon Marchi <simon.marchi@ericsson.com>
17021
17022 PR gdb/24060
17023 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
17024 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
17025 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
17026 * f-exp.y (DOLLAR_VARIABLE): Likewise.
17027 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
17028 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
17029
583068ca
AB
170302019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
17031
17032 * source.c (select_source_symtab): Move header comment to
17033 declaration in source.h.
17034 (forget_cached_source_info_for_objfile): Likewise.
17035 (forget_cached_source_info): Likewise.
17036 (identify_source_line): Likewise.
17037 * source.h (identify_source_line): Move declaration from symtab.h
17038 and add comment from source.c
17039 (print_source_lines): Likewise.
17040 (forget_cached_source_info_for_objfile): Likewise.
17041 (forget_cached_source_info): Likewise.
17042 (select_source_symtab): Likewise.
17043 (enum print_source_lines_flag): Move definition from symtab.h.
17044 * symtab.h (identify_source_line): Move declaration to source.h.
17045 (print_source_lines): Likewise.
17046 (forget_cached_source_info_for_objfile): Likewise.
17047 (forget_cached_source_info): Likewise.
17048 (select_source_symtab): Likewise.
17049 (enum print_source_lines_flag): Move definition to source.h.
17050 * tui/tui-hooks.c: Add 'source.h' include.
17051
ec98a4ad
AB
170522019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
17053
17054 * source.c (print_source_lines_base): Handle requests to print
17055 reverse line number sequences, and guard against empty lines
17056 string.
17057
62ea19c1
AB
170582019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
17059
17060 * source.c (print_source_lines_base): Fix skip of '\r' if next
17061 character is '\n'.
17062
9d30e1fd
TT
170632019-01-06 Tom Tromey <tom@tromey.com>
17064
17065 * c-exp.y (struct c_parse_state) <macro_original_text,
17066 expansion_obstack>: New member.
17067 (macro_original_text, expansion_obstack): Remove globals.
17068 (scan_macro_expansion, scanning_macro_expansion)
17069 (finished_macro_expansion): Update.
17070 (scan_macro_cleanup): Remove.
17071 (yylex, c_parse): Update.
17072
c65bac38
TT
170732019-01-06 Tom Tromey <tom@tromey.com>
17074
17075 * c-exp.y (struct c_parse_state) <strings>: New member.
17076 (operator_stoken): Update.
17077
02e12e38
TT
170782019-01-06 Tom Tromey <tom@tromey.com>
17079
17080 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
17081 (union type_stack_elt) <typelist_val>: Now a pointer to
17082 std::vector.
17083 (type_stack_cleanup): Don't declare.
17084 (push_typelist): Update.
17085 * parse.c (pop_typelist): Return a std::vector.
17086 (push_typelist): Take a std::vector.
17087 (follow_types): Update. Do not free args.
17088 (type_stack_cleanup): Remove.
17089 * c-exp.y (struct c_parse_state): New.
17090 (cpstate): New global.
17091 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
17092 (nonempty_typelist): Update.
17093 (func_mod): Create a new vector.
17094 (c_parse): Create a c_parse_state.
17095 (check_parameter_typelist): Do not delete params.
17096 (function_method): Update. Do not delete type_list.
17097
f097f5ad
TT
170982019-01-06 Tom Tromey <tom@tromey.com>
17099
17100 PR gdb/28155:
17101 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
17102 check_typedef.
17103 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
17104 (print_return_value): Likewise.
17105
d2adf9f1
TT
171062019-01-05 Tom Tromey <tom@tromey.com>
17107
17108 * contrib/cleanup_check.py: Remove.
17109 * contrib/gcc-with-excheck: Remove.
17110 * contrib/exsummary.py: Remove.
17111 * contrib/excheck.py: Remove.
17112
2eab46b1
JB
171132019-01-05 Joel Brobecker <brobecker@adacore.com>
17114
17115 * thread.c (delete_thread_1): Add gdb_assert that THR is not
17116 NULL. Initialize tpprev to NULL instead of assigning it
17117 to NULL on the next statement.
17118 * windows-nat.c (windows_delete_thread): Remove check for
17119 main_thread_id before printing thread exit notifications.
17120 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
17121 Remove thread ID check against main_thread_id.
17122 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
17123 windows_delete_thread.
17124 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
17125
48c5e7e2
TT
171262019-01-04 Tom Tromey <tom@tromey.com>
17127
17128 * compile/compile.c (_initialize_compile): Use upper case for
17129 metasyntactic variables.
17130 * symmisc.c (_initialize_symmisc): Use upper case for
17131 metasyntactic variables.
17132 * psymtab.c (_initialize_psymtab): Use upper case for
17133 metasyntactic variables.
17134 * demangle.c (demangle_command): Use upper case for metasyntactic
17135 variables.
17136 (_initialize_demangler): Likewise.
17137 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
17138 variables.
17139
986041cd
TT
171402019-01-03 Tom Tromey <tom@tromey.com>
17141
17142 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
17143
7c711119
TT
171442019-01-03 Tom Tromey <tom@tromey.com>
17145
17146 * python/py-symtab.c (salpy_str): Update.
17147 (struct salpy_sal_object) <symtab>: Now a PyObject.
17148 (salpy_dealloc): Update.
17149 (del_objfile_sal): Use gdbpy_ref.
17150
1b20edf0
TT
171512019-01-03 Tom Tromey <tom@tromey.com>
17152
17153 * python/py-type.c (convert_field): Use new_reference. Return
17154 gdbpy_ref.
17155 (make_fielditem): Return gdbpy_ref.
17156 (typy_fields): Update.
17157 (typy_getitem): Update.
17158 (field_name): Return gdbpy_ref. Use new_reference.
17159 (typy_iterator_iternext): Update.
17160
ea41325b
TT
171612019-01-03 Tom Tromey <tom@tromey.com>
17162
17163 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
17164
2a3c71d6
TT
171652019-01-03 Tom Tromey <tom@tromey.com>
17166
17167 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
17168 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
17169 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
17170 (pspy_set_frame_filters, pspy_set_frame_unwinders)
17171 (pspy_set_type_printers): Likewise.
17172 * python/py-function.c (fnpy_init): Use gdbpy_ref.
17173 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
17174 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
17175 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
17176 (objfpy_set_type_printers): Likewise.
17177
5c329e6a
TT
171782019-01-03 Tom Tromey <tom@tromey.com>
17179
17180 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
17181 (gdbpy_print_stack): Use gdbpy_err_fetch.
17182 * python/python-internal.h (class gdbpy_err_fetch): New class.
17183 (class gdbpy_enter) <m_error_type, m_error_value,
17184 m_error_traceback>: Remove.
17185 <m_error>: New member.
17186 (gdbpy_exception_to_string): Don't declare.
17187 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
17188 * python/py-value.c (convert_value_from_python): Use
17189 gdbpy_err_fetch.
17190 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
17191 gdbpy_exception_to_string.
17192 (gdbpy_handle_exception): Use gdbpy_err_fetch.
17193 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
17194 gdbpy_err_fetch.
17195
169bb27b
AB
171962019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
17197
17198 * linux-nat.c (delete_lwp_cleanup): Delete.
17199 (struct lwp_deleter): New struct.
17200 (lwp_info_up): New typedef.
17201 (linux_nat_target::follow_fork): Delete cleanup, and make use of
17202 lwp_info_up.
17203
a07c8880
AB
172042019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
17205
17206 * linux-fork.c (class scoped_switch_fork_info): New class.
17207 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
17208
26089c49
AB
172092019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
17210
17211 * valops.c (find_overload_match): Remove use of null_cleanup, and
17212 calls to do_cleanups.
17213
06d3e5b0
AB
172142019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
17215
17216 * compile/compile-cplus-types.c
17217 (compile_cplus_instance::decl_name): Handle changes to
17218 cp_func_name.
17219 * cp-support.c (cp_func_name): Update header comment, update
17220 return type.
17221 * cp-support.h (cp_func_name): Update return type in declaration.
17222 * valops.c (find_overload_match): Move temp_func local to top
17223 level of function and change its type. Use temp_func to hold and
17224 delete temporary string obtained from cp_func_name.
17225
66644cd3
AB
172262019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
17227
17228 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
17229 gdb::char_vector, remove cleanup, and update uses of `msg`.
17230
592d8c0a
JW
172312019-01-03 Jim Wilson <jimw@sifive.com>
17232
17233 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
17234
c55d06ec
TT
172352019-01-02 Tom Tromey <tom@tromey.com>
17236
17237 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
17238 (tdesc_parse_xml): Remove cleanups.
17239 * target-descriptions.h (make_cleanup_free_target_description):
17240 Don't declare.
17241 (target_desc_deleter): New struct.
17242 (target_desc_up): New typedef.
17243 * target-descriptions.c (target_desc_deleter::operator()): Rename
17244 from free_target_description.
17245 (make_cleanup_free_target_description): Remove.
17246
3a6ae42d
TT
172472019-01-02 Tom Tromey <tom@tromey.com>
17248
17249 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
17250 constructor, destructor.
17251 (linespec_parser): Remove typedef.
17252 (~linespec_parser): Rename from linespec_parser_delete.
17253 (linespec_lex_to_end, linespec_complete_label)
17254 (linespec_complete): Update.
17255 (decode_line_full): Remove cleanups.
17256 (decode_line_1): Update.
17257
61fd3e73
TT
172582019-01-02 Tom Tromey <tom@tromey.com>
17259
17260 * python/python-internal.h (inferior_to_inferior_object): Change
17261 return type.
17262 * python/py-exitedevent.c (create_exited_event_object): Update.
17263 * python/py-inferior.c (inferior_to_inferior_object): Return
17264 gdbpy_ref.
17265 (python_new_inferior, python_inferior_deleted)
17266 (thread_to_thread_object, delete_thread_object)
17267 (build_inferior_list, gdbpy_selected_inferior): Update.
17268 * python/py-infthread.c (create_thread_object): Update. Also fail
17269 if inferior_to_inferior_object fails.
17270
d20172fc
SM
172712019-01-02 Simon Marchi <simon.marchi@ericsson.com>
17272
17273 * inferior.h (class inferior) <displaced_step_state>: New field.
17274 * infrun.h (struct displaced_step_state): Move here from
17275 infrun.c. Initialize fields, add constructor.
17276 <inf>: Remove field.
17277 <reset>: New method.
17278 * infrun.c (struct displaced_step_inferior_state): Move to
17279 infrun.h.
17280 (displaced_step_inferior_states): Remove.
17281 (get_displaced_stepping_state): Adust.
17282 (displaced_step_in_progress_any_inferior): Adjust.
17283 (displaced_step_in_progress_thread): Adjust.
17284 (displaced_step_in_progress): Adjust.
17285 (add_displaced_stepping_state): Remove.
17286 (get_displaced_step_closure_by_addr): Adjust.
17287 (remove_displaced_stepping_state): Remove.
17288 (infrun_inferior_exit): Call displaced_step_state.reset.
17289 (use_displaced_stepping): Don't check for NULL.
17290 (displaced_step_prepare_throw): Call
17291 get_displaced_stepping_state.
17292 (displaced_step_fixup): Don't check for NULL.
17293 (prepare_for_detach): Don't check for NULL.
17294
e3319240
PW
172952019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
17296
17297 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
17298 in case of call that did not complete.
17299
5d36dfb9
AU
173002019-01-02 Andrey Utkin <autkin@undo.io>
17301
17302 * symfile.c (find_separate_debug_file): Fix search of debug files for
17303 remote debuggee.
17304
8833fbf0
TT
173052019-01-02 Tom Tromey <tom@tromey.com>
17306
17307 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
17308 indentation.
17309 * python/py-frame.c (frapy_older): Remove cast.
17310 (frapy_newer): Likewise.
17311 * python/py-breakpoint.c (local_setattro): Remove cast.
17312 * python/py-arch.c (archpy_name): Remove local variable.
17313 * python/py-type.c (gdbpy_lookup_type): Remove cast.
17314
4ada3dfd
JB
173152019-01-02 Joel Brobecker <brobecker@adacore.com>
17316
17317 * unittests/basic_string_view/element_access/char/empty.cc:
17318 Fix year range in copyright header.
17319
113b7b81
AB
173202019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
17321
17322 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
17323 Delete.
17324 <operator==>: Update with for removed field.
17325 <hash>: Likewise.
17326 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
17327 <isa_features>: ...this.
17328 <abi_features>: New field.
17329 (riscv_isa_flen): Update comment.
17330 (riscv_abi_xlen): New declaration.
17331 (riscv_abi_flen): New declaration.
17332 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
17333 isa_features.
17334 (riscv_abi_xlen): New function.
17335 (riscv_isa_flen): Update to get answer from isa_features.
17336 (riscv_abi_flen): New function.
17337 (riscv_has_fp_abi): Update to get answer from abi_features.
17338 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
17339 xlen and flen.
17340 (riscv_call_info) <xlen, flen>: Update comment.
17341 (riscv_call_arg_struct): Remove invalid assertions
17342 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
17343 is removed.
17344 (riscv_gdbarch_init): Gather isa features and abi features
17345 separately, ensure both match on the gdbarch when reusing an old
17346 gdbarch. Relax an error check to allow 32-bit abi float to run on
17347 a target with 64-bit float hardware.
17348
b18ca514
PW
173492019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
17350
17351 * source.c (search_command_helper): Stop reverse search
17352 when line 1 has been searched.
17353
ec70d8db
PW
173542019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
17355
17356 * record-full.c (record_full_base_target::close): Rewrite
17357 record_full_core_buf_list free logic.
17358
5b38f9c1
PW
173592019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
17360
17361 * break-catch-syscall.c (print_one_catch_syscall): xfree
17362 the last text.
17363
66d91b39
JB
173642019-01-01 Joel Brobecker <brobecker@adacore.com>
17365
17366 * top.c (print_gdb_version): Update Copyright year in version
17367 message.
17368
42a4f53d
JB
173692019-01-01 Joel Brobecker <brobecker@adacore.com>
17370
17371 Update copyright year range in all GDB files.
17372
7e955d83 173732019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
2139e8dc 17374
5bbd631d 17375 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
2139e8dc 17376
5bbd631d 17377For older changes see ChangeLog-2018.
c906108c
SS
17378\f
17379Local Variables:
17380mode: change-log
17381left-margin: 8
17382fill-column: 74
17383version-control: never
57da7796 17384coding: utf-8
c906108c 17385End:
5bbd631d 17386