Fix setting breakpoints or stepping on line 65535
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
c296cbe6
BE
12019-12-29 Bernd Edlinger <bernd.edlinger@hotmail.de>
2
3 * buildsym.c (buildsym_compunit::record_line): Do no longer ignore
4 line 65535.
5
ace206a5
TT
62019-12-27 Tom Tromey <tom@tromey.com>
7
8 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
9 commented-out code.
10 * tui/tui.c: Remove #if 0 code.
11
f9ba974d
TT
122019-12-27 Tom Tromey <tom@tromey.com>
13
14 * cli/cli-cmds.c (print_disassembly): Reorder "if".
15
a1e4dee4
TT
162019-12-27 Tom Tromey <tom@tromey.com>
17
18 * tui/tui.c (tui_active): Now bool.
19 (tui_finish_init): Likewise.
20 (tui_enable): Update.
21 (tui_disable): Update.
22 (tui_is_window_visible): Update.
23 * tui/tui.h (tui_active): Now bool.
24
1630140d
TT
252019-12-27 Tom Tromey <tom@tromey.com>
26
27 * tui/tui-source.c (tui_source_window::maybe_update): Update.
28 * tui/tui-regs.c (tui_data_window::display_registers_from):
29 Update.
30 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
31 * tui/tui-data.h (struct tui_gen_win_info) <viewport_height>:
32 Remove.
33 * tui/tui-command.c (tui_cmd_window::resize): Update.
34
4d4eaa30
CB
352019-12-26 Christian Biesinger <cbiesinger@google.com>
36
37 * ada-lang.c (ada_decode_symbol): Update.
38 * buildsym.c (add_symbol_to_list): Update.
39 * coffread.c (process_coff_symbol): Update.
40 * ctfread.c (ctf_add_enum_member_cb): Update.
41 (new_symbol): Update.
42 (ctf_add_var_cb): Update.
43 * dwarf2read.c (fixup_go_packaging): Update.
44 (dwarf2_compute_name): Update.
45 (new_symbol): Update.
46 * jit.c (finalize_symtab): Update.
47 * language.c (language_alloc_type_symbol): Update.
48 * mdebugread.c (new_symbol): Update.
49 * minsyms.c (minimal_symbol_reader::record_full): Update.
50 (minimal_symbol_reader::install): Update.
51 * psymtab.c (print_partial_symbols): Update.
52 (psymbol_hash): Update.
53 (psymbol_compare): Update.
54 (add_psymbol_to_bcache): Update.
55 (maintenance_check_psymtabs): Update.
56 * stabsread.c (define_symbol): Update.
57 * symtab.c (symbol_set_names): Rename to...
58 (general_symbol_info::compute_and_set_names): ...this.
59 (general_symbol_info::natural_name): Update.
60 (general_symbol_info::search_name): Update.
61 (fixup_section): Update.
62 * symtab.h (struct general_symbol_info) <name>: Rename to...
63 <m_name>: ...this.
64 <compute_and_set_names>: Rename from...
65 (symbol_set_names): ...this.
66 (SYMBOL_SET_NAMES): Remove.
67 (struct symbol) <ctor>: Update.
68
8fb75323
CB
692019-12-26 Christian Biesinger <cbiesinger@google.com>
70
71 * NEWS: Mention that multithreaded symbol loading is now on by
72 default.
73
3142e908
RK
742019-12-26 Ruslan Kabatsayev <b7.10110111@gmail.com>
75
76 * dwarf2read.c (is_valid_DW_AT_defaulted)
77 (is_valid_DW_AT_calling_convention_for_type)
78 (is_valid_DW_AT_calling_convention_for_subroutine): Fix printing
79 ULONGEST variables on x86-32.
80
cb736441
GB
812019-12-21 George Barrett <bob@bob131.so>
82
83 * solib-svr4.c (svr4_handle_solib_event): Add fallback link
84 namespace test for when the debug struct isn't available.
85
15b07e4f
EZ
862019-12-21 Eli Zaretskii <eliz@gnu.org>
87
88 * top.c (print_gdb_configuration): Print "--with-xxhash" or
89 "--without-xxhash" according to HAVE_LIBXXHASH.
90
1c7148dd
WP
912019-12-20 Weimin Pan <weimin.pan@oracle.com>
92 * ctfread.c (ctf_file_key): Change type to objfile_key.
93 (struct ctf_context): Remove typedef.
94 (get_objfile_text_range): Use ANOFFSET to get text base.
95
d0922fcf
TBA
962019-12-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
97
98 * dwarf2read.c (is_valid_DW_AT_calling_convention_for_subroutine):
99 New function.
100 (read_subroutine_type): Validate the parsed
101 DW_AT_calling_convention value before assigning it to a
102 subroutine's calling_convention attribute.
103 * gdbtypes.h (struct func_type) <calling_convention>: Use
104 an enum bitfield as its type, instead of plain unsigned.
105
099a6354
TBA
1062019-12-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
107
108 PR gdb/25054
109 * infcall.c (call_function_by_hand_dummy): Update the argument-
110 passing section for call-by-value parameters.
111 (struct destructor_info): New struct.
112 (call_destructors): New auxiliary function.
113
62bf63d7
TBA
1142019-12-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
115
116 * gnu-v3-abi.c (enum definition_style): New enum type.
117 (get_def_style): New function.
118 (is_user_provided_def): New function.
119 (is_implicit_def): New function.
120 (is_copy_or_move_constructor_type): New function.
121 (is_copy_constructor_type): New function.
122 (is_move_constructor_type): New function.
123 (gnuv3_pass_by_reference): Collect language_pass_by_ref_info
124 for a given type.
125
9d084466
TBA
1262019-12-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
127
128 * language.h (struct language_pass_by_ref_info): New struct.
129 (struct language_defn)<la_pass_by_reference>: Change the signature
130 to return a language_pass_by_ref_info instead of an int.
131 (language_pass_by_reference): Ditto.
132 (default_pass_by_reference): Ditto.
133 Adjust the users listed below.
134 * arch-utils.c (default_return_in_first_hidden_param_p):
135 Update.
136 * cp-abi.c (cp_pass_by_reference): Update.
137 * cp-abi.h (cp_pass_by_reference): Update declaration.
138 (struct cp_abi_ops)<pass_by_reference>: Update.
139 * gnu-v3-abi.c (gnuv3_pass_by_reference): Update.
140 * infcall.c (call_function_by_hand_dummy): Update.
141 * language.c (language_pass_by_reference): Update.
142 (default_pass_by_reference): Update.
143 * tic6x-tdep.c (tic6x_return_value): Update.
144
e35000a7
TBA
1452019-12-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
146
147 * dwarf2read.c (dwarf2_add_member_fn): Read the DW_AT_defaulted
148 and DW_AT_deleted attributes of a function.
149 (read_structure_type): Read the DW_AT_calling_convention attribute
150 of a type.
151 (is_valid_DW_AT_defaulted): New function.
152 (is_valid_DW_AT_calling_convention_for_type): New function.
153 * gdbtypes.h: Include dwarf2.h.
154 (struct fn_field)<defaulted>: New field to store the
155 DW_AT_defaulted attribute.
156 (struct fn_field)<is_deleted>: New field to store the
157 DW_AT_deleted attribute.
158 (struct cplus_struct_type)<calling_convention>: New field to store
159 the DW_AT_calling_convention attribute.
160 (TYPE_FN_FIELD_DEFAULTED): New macro.
161 (TYPE_FN_FIELD_DELETED): New macro.
162 (TYPE_CPLUS_CALLING_CONVENTION): New macro.
163 * gdbtypes.c (dump_fn_fieldlists): Update for the changes made
164 to the .h file.
165 (print_cplus_stuff): Likewise.
166
b4b49dcb
TT
1672019-12-20 Tom Tromey <tom@tromey.com>
168
169 * tui/tui.c (tui_show_source): Remove.
170 * tui/tui.h (tui_show_source): Don't declare.
171 * tui/tui-out.c (tui_ui_out::do_field_string): Don't call
172 tui_show_source.
173
eb390f49
TT
1742019-12-20 Tom Tromey <tom@tromey.com>
175
176 * tui/tui-stack.h (tui_show_frame_info): Return bool.
177 * tui/tui-stack.c (tui_show_frame_info): Return bool.
178 * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
179 Update.
180
fc9d2d72
TT
1812019-12-20 Tom Tromey <tom@tromey.com>
182
183 PR tui/18932:
184 * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
185 Rename parameters. Handle the not-from-stack-frame case.
186 (from_stack, from_source_symtab): New globals.
187 (tui_before_prompt, tui_normal_stop): Update.
188 (tui_context_changed, tui_symtab_changed): New functions.
189 (tui_attach_detach_observers): Attach new observers.
190
a75cd9a2
TT
1912019-12-20 Tom Tromey <tom@tromey.com>
192
193 * source.c (struct current_source_location) <set, symtab, line>:
194 New methods.
195 <m_symtab, m_line>: Rename. Now private.
196 (get_current_source_symtab_and_line)
197 (set_default_source_symtab_and_line)
198 (set_current_source_symtab_and_line)
199 (clear_current_source_symtab_and_line, select_source_symtab)
200 (info_source_command, print_source_lines_base)
201 (info_line_command, search_command_helper): Update.
202 * observable.h (current_source_symtab_and_line_changed): Declare
203 observable.
204 * observable.c (current_source_symtab_and_line_changed): Define
205 observable.
206
2dfd3df4
TT
2072019-12-20 Tom Tromey <tom@tromey.com>
208
209 * tui/tui-hooks.c (tui_before_prompt): Change parameter to bool.
210 (tui_before_prompt, tui_normal_stop): Update.
211
54217b84
TT
2122019-12-20 Tom Tromey <tom@tromey.com>
213
214 * tui/tui-winsource.c
215 (tui_source_window_base::update_source_window_as_is): Don't call
216 set_current_source_symtab_and_line.
217
0ab92974
TT
2182019-12-20 Tom Tromey <tom@tromey.com>
219
220 * tui/tui-stack.h (struct tui_locator_window) <set_locator_info>:
221 Take a symtab_and_line.
222 * tui/tui-stack.c (tui_locator_window::set_locator_info): Take a
223 symtab_and_line.
224 (tui_show_frame_info): Update.
225
ae4393e2
TT
2262019-12-20 Tom Tromey <tom@tromey.com>
227
228 * tui/tui-stack.c (tui_show_frame_info): Don't call
229 update_exec_info.
230
77b97e00
TT
2312019-12-20 Tom Tromey <tom@tromey.com>
232
233 * tui/tui.c (tui_enable): Call tui_display_main.
234
52469d76
TT
2352019-12-20 Tom Tromey <tom@tromey.com>
236
237 * tui/tui-disasm.c (tui_get_begin_asm_address): Use
238 get_current_source_symtab_and_line, and main_name.
239
5d49bf1b
TT
2402019-12-20 Tom Tromey <tom@tromey.com>
241
242 * tui/tui.c (tui_show_source): Update.
243 * tui/tui-winsource.h (tui_update_source_windows_with_line): Update.
244 * tui/tui-winsource.c (tui_update_source_windows_with_line): Take
245 a symtab_symbol_info, not a separate symtab and line. Simplify.
246
88180c08
TT
2472019-12-20 Tom Tromey <tom@tromey.com>
248
249 * tui/tui-winsource.c (tui_update_source_windows_with_addr):
250 Simplify.
251
9f7540a5
TT
2522019-12-20 Tom Tromey <tom@tromey.com>
253
254 * tui/tui-winsource.h (struct tui_source_window_base)
255 <set_contents, update_source_window_as_is, update_source_window>:
256 Take a sal, not a separate symtab and tui_line_or_address.
257 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
258 (tui_source_window_base::update_source_window_as_is): Take a sal,
259 not a separate symtab and tui_line_or_address.
260 (tui_update_source_windows_with_addr)
261 (tui_update_source_windows_with_line)
262 (tui_source_window_base::rerender)
263 (tui_source_window_base::refill): Update.
264 * tui/tui-source.h (struct tui_source_window) <set_contents>: Take
265 a sal, not a separate symtab and tui_line_or_address.
266 * tui/tui-source.c (tui_source_window::set_contents): Take a sal,
267 not a separate symtab and tui_line_or_address.
268 (tui_source_window::maybe_update): Update.
269 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>: Take
270 a sal, not a separate symtab and tui_line_or_address.
271 * tui/tui-disasm.c (tui_disasm_window::set_contents): Take a sal,
272 not a separate symtab and tui_line_or_address.
273 (tui_disasm_window::do_scroll_vertical)
274 (tui_disasm_window::maybe_update): Update.
275
57e4b379
TT
2762019-12-20 Tom Tromey <tom@tromey.com>
277
278 * tui/tui-winsource.c (tui_source_window_base::refill): Use
279 start_line_or_addr.
280 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Use
281 start_line_or_addr.
282 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
283 start_line_or_addr.
284
61c33f10
TT
2852019-12-20 Tom Tromey <tom@tromey.com>
286
287 * tui/tui-winsource.h (struct tui_source_window_base)
288 <set_contents>: Return bool.
289 * tui/tui-winsource.c
290 (tui_source_window_base::update_source_window_as_is): Update.
291 * tui/tui-source.h (struct tui_source_window) <set_contents>:
292 Return bool.
293 * tui/tui-source.c (tui_source_window::set_contents): Return
294 bool. Simplify.
295 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
296 Return bool.
297 * tui/tui-disasm.c (tui_disasm_window::set_contents): Return
298 bool.
299
469b0731
TT
3002019-12-20 Tom Tromey <tom@tromey.com>
301
302 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
303 (tui_update_source_windows_with_line): Call update_source_window.
304 * tui/tui-source.h (struct tui_source_window)
305 <show_symtab_source>: Don't declare.
306 * tui/tui-source.c (tui_source_window::show_symtab_source):
307 Remove.
308
855f89b3
TT
3092019-12-20 Tom Tromey <tom@tromey.com>
310
311 * tui/tui-winsource.c (tui_update_source_windows_with_addr): Call
312 update_source_window directly.
313 * tui/tui-disasm.h (tui_show_disassem): Don't declare.
314 * tui/tui-disasm.c (tui_show_disassem): Remove.
315
d4669c0f
TT
3162019-12-20 Tom Tromey <tom@tromey.com>
317
318 * tui/tui-winsource.c
319 (tui_source_window_base::update_source_window_as_is): Don't switch focus.
320 * tui/tui-disasm.c (tui_show_disassem): Don't switch focus.
321
1ae58f0c
TT
3222019-12-20 Tom Tromey <tom@tromey.com>
323
324 * tui/tui-winsource.h (struct tui_source_window_base)
325 <maybe_update>: Remove line_no and addr parameters.
326 * tui/tui-stack.c (tui_show_frame_info): Set PC on sal. Update.
327 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
328 Update.
329 * tui/tui-source.c (tui_source_window::maybe_update): Remove
330 line_no and addr parameters.
331 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
332 Update.
333 * tui/tui-disasm.c (tui_disasm_window::maybe_update): Remove
334 line_no and addr parameters.
335
039298ec
TT
3362019-12-20 Tom Tromey <tom@tromey.com>
337
338 * tui/tui-winsource.c (tui_source_window_base::set_is_exec_point_at)
339 (tui_source_window_base::update_breakpoint_info): Remove asserts.
340
8acfefcc
TT
3412019-12-20 Tom Tromey <tom@tromey.com>
342
343 * tui/tui-winsource.c (tui_update_source_windows_with_addr): Call
344 tui_show_disassem.
345 * tui/tui-disasm.h (tui_show_disassem_and_update_source): Don't
346 declare.
347 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Remove.
348
5ebd5402
TT
3492019-12-20 Tom Tromey <tom@tromey.com>
350
351 * tui/tui.h (tui_show_source): Remove parameters.
352 * tui/tui.c (tui_show_source): Remove parameters.
353 * tui/tui-out.c (tui_ui_out::do_field_string): Update.
354
c1b167d7
TT
3552019-12-20 Tom Tromey <tom@tromey.com>
356
357 * tui/tui.c (tui_show_source): Update.
358 * tui/tui-winsource.c (tui_display_main): Update.
359 * tui/tui-stack.h (tui_update_locator_fullname): Change parameter
360 to symtab.
361 * tui/tui-stack.c (tui_update_locator_fullname): Change parameter
362 to symtab.
363 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Update.
364
364d7104
TT
3652019-12-20 Tom Tromey <tom@tromey.com>
366
367 PR tui/23619:
368 * tui/tui-io.c (tui_rl_saved_prompt): Remove.
369 (tui_redisplay_readline): Use rl_display_prompt.
370 (tui_prep_terminal): Update.
371
0ad6b8ee
CB
3722019-12-19 Christian Biesinger <cbiesinger@google.com>
373
374 * configure: Regenerate.
375 * configure.ac: Quote variable arguments of test.
376 * gdbsupport/common.m4: Likewise.
377
d411762c
CB
3782019-12-19 Christian Biesinger <cbiesinger@google.com>
379
380 * score-tdep.c (score7_analyze_prologue): Pass 2.0 instead of
381 2 to pow ().
382
1cd4a20a
CB
3832019-12-19 Christian Biesinger <cbiesinger@google.com>
384
385 * tui/tui-source.c (tui_source_window::set_contents): Cast argument of
386 log10 to double to fix Solaris 11 with gcc 5.5.
387
aa989b27
CB
3882019-12-19 Christian Biesinger <cbiesinger@google.com>
389
390 * fbsd-tdep.c (fbsd_info_proc_files_entry): Rename local var
391 "sun" to "saddr_un".
392
2032eb7e
TT
3932019-12-19 Tom Tromey <tromey@adacore.com>
394
395 * ui-out.h (enum class field_kind): Fix comment.
396
f69656d0
TT
3972019-12-11 Tom Tromey <tromey@adacore.com>
398
399 * xml-support.c (xml_fetch_content_from_file): Use FOPEN_RB.
400
27e4fac7
TT
4012019-12-18 Tom Tromey <tromey@adacore.com>
402
403 PR build/25268:
404 * gdbsupport/thread-pool.c (set_thread_name): Expect "int" return
405 type on macOS. Add comment.
406
e623f035
SM
4072019-12-18 Simon Marchi <simon.marchi@efficios.com>
408
409 * c-lang.c (c_get_string, asm_language_defn): Remove space
410 before tab.
411
28ce7b07
TT
4122019-12-18 Tom Tromey <tromey@adacore.com>
413
414 PR build/25250:
415 * ui-out.c (ui_out::vmessage): Update.
416 * ui-out.h (enum class field_kind) <FIELD_STRING, FIELD_SIGNED>:
417 Rename.
418 (string_field): Update.
419 (signed_field): Update.
420
bbde7025
SM
4212019-12-18 Simon Marchi <simon.marchi@efficios.com>
422
423 * top.c (print_gdb_configuration): Adjust indentation.
424
e3169fe0
CB
4252019-12-17 Christian Biesinger <cbiesinger@google.com>
426
427 * bsd-kvm.c: Include gdbsupport/pathstuff.h.
428
9b30da15
SM
4292019-12-17 Simon Marchi <simon.marchi@polymtl.ca>
430
431 * tui/tui-layout.h (class tui_layout_base): Add virtual
432 destructor.
433
4a4c04f1
BE
4342019-12-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
435
436 * infcmd.c (prepare_one_step): Step over skipped inline functions.
437 * infrun.c (inline_frame_is_marked_for_skip): New helper function.
438 (process_event_stop_test): Keep stepping over skipped inline functions.
439
0394eed1
SM
4402019-12-16 Simon Marchi <simon.marchi@polymtl.ca>
441
442 * jit.c (struct gdb_block) <next>: Remove field.
443 (struct gdb_symtab) <~gdb_symtab>: Remove.
444 <blocks>: Change type to std::forward_list<gdb_block>.
445 (compare_block): Remove.
446 (jit_block_open_impl): Adjust to std::forward_list. Place the new
447 block at the beginning, don't mind about sorting.
448 (finalize_symtab): Adjust to std::forward_list, sort the blocks list
449 before using it.
450
b6112117
SM
4512019-12-16 Simon Marchi <simon.marchi@polymtl.ca>
452
453 * jit.c (struct gdb_block): Add constructor, initialize
454 real_block and next fields.
455 <name>: Change type to gdb::unique_xmalloc_ptr.
456 (struct gdb_symtab) <~gdb_symtab>: Free blocks with delete.
457 (jit_block_open_impl): Allocate gdb_block with new.
458 (finalize_symtab): Adjust to gdb::unique_xmalloc_ptr.
459
1b61f46d
SM
4602019-12-16 Simon Marchi <simon.marchi@polymtl.ca>
461
462 * jit.c: Include forward_list.
463 (struct gdb_symtab) <next>: Remove field.
464 (struct gdb_object) <symtabs>: Change type to
465 std::forward_list<gdb_symtab>.
466 (jit_object_open_impl): Allocate gdb_object with new.
467 (jit_symtab_open_impl): Adjust to std::forward_list.
468 (finalize_symtab): Don't delete symtab.
469 (jit_object_close_impl): Adjust to std::forward_list. Free
470 gdb_object with delete.
471
89867184
SM
4722019-12-16 Simon Marchi <simon.marchi@polymtl.ca>
473
474 * jit.c (struct gdb_symtab): Add constructor, destructor,
475 initialize fields.
476 <linetable>: Change type to unique_xmalloc_ptr.
477 <file_name>: Change type to std::string.
478 (jit_symtab_open_impl): Allocate gdb_symtab with new.
479 (jit_symtab_line_mapping_add_impl): Adjust.
480 (finalize_symtab): Adjust, call delete on stab.
481
d043f8c8
SM
4822019-12-16 Simon Marchi <simon.marchi@polymtl.ca>
483
484 * jit.c (finalize_symtab): Set gdb_block_iter_tmp in loop.
485
d9fa87f4
TT
4862019-12-16 Tom Tromey <tromey@adacore.com>
487
488 * windows-nat.c (windows_nat_target::attach): Update.
489 * remote.c (extended_remote_target::attach): Update.
490 * procfs.c (procfs_target::attach): Update.
491 * nto-procfs.c (nto_procfs_target::attach): Update.
492 (nto_procfs_target::create_inferior): Update.
493 * inf-ptrace.c (inf_ptrace_target::attach): Update.
494 * gnu-nat.c (gnu_nat_target::attach): Update.
495 (gnu_nat_target::detach): Update.
496 * darwin-nat.c (darwin_nat_target::attach): Update.
497 * corefile.c (get_exec_file): Constify result. Remove extraneous
498 return.
499 * bsd-kvm.c (bsd_kvm_target_open): Update.
500 * gdbsupport/common-inferior.h (get_exec_file): Constify result.
501
c0c3707f
CB
5022019-12-16 Christian Biesinger <cbiesinger@google.com>
503
504 * gdbsupport/common-defs.h: Remove workaround for a gnulib bug
505 (we no longer need to include time.h before pathmax.h)
506
d3ecddab
CB
5072019-12-15 Christian Biesinger <cbiesinger@google.com>
508
509 * ada-exp.y (write_ambiguous_var): Update.
510 * coffread.c (process_coff_symbol): Update.
511 * ctfread.c (ctf_add_enum_member_cb): Update.
512 (new_symbol): Update.
513 * dwarf2read.c (fixup_go_packaging): Update.
514 (new_symbol): Update.
515 * language.c (language_alloc_type_symbol): Update.
516 * mdebugread.c (new_symbol): Update.
517 * minsyms.c (minimal_symbol_reader::record_full): Update.
518 * psymtab.c (add_psymbol_to_bcache): Update.
519 * stabsread.c (define_symbol): Update.
520 (read_enum_type): Update.
521 * symtab.c (symbol_set_language): Make this a member function...
522 (general_symbol_info::set_language): ... here.
523 * symtab.h (struct general_symbol_info) <set_language>: New function.
524 (SYMBOL_SET_LANGUAGE): Remove.
525 (symbol_set_language): Remove.
526
c1b5c1eb
CB
5272019-12-15 Christian Biesinger <cbiesinger@google.com>
528
529 * ada-lang.c (ada_add_block_symbols): Update.
530 (ada_collect_symbol_completion_matches): Update.
531 * ax-gdb.c (gen_expr): Update.
532 * block.c (block_lookup_symbol): Update.
533 (block_lookup_symbol_primary): Update.
534 (block_find_symbol): Update.
535 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Update.
536 * dbxread.c (process_one_symbol): Update.
537 * dictionary.c (insert_symbol_hashed): Update.
538 (collate_pending_symbols_by_language): Update.
539 (mdict_add_symbol): Update.
540 * dwarf-index-write.c (write_psymbols): Update.
541 * dwarf2read.c (fixup_go_packaging): Update.
542 * findvar.c (read_var_value): Update.
543 * ft32-tdep.c (ft32_skip_prologue): Update.
544 * go-lang.c (go_symbol_package_name): Update.
545 * language.h (scoped_switch_to_sym_language_if_auto::
546 scoped_switch_to_sym_language_if_auto): Update.
547 * linespec.c (find_method): Update.
548 (find_label_symbols_in_block): Update.
549 * mdebugread.c (parse_symbol): Update.
550 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
551 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
552 (minimal_symbol_reader::install): Update.
553 * moxie-tdep.c (moxie_skip_prologue): Update.
554 * parse.c (parse_exp_in_context): Update.
555 * psymtab.c (psymbol_name_matches): Update.
556 (match_partial_symbol): Update.
557 (lookup_partial_symbol): Update.
558 (psymbol_hash): Update.
559 (psymbol_compare): Update.
560 * python/py-framefilter.c (extract_sym): Update.
561 (py_print_single_arg): Update.
562 * stabsread.c (define_symbol): Update.
563 * stack.c (print_frame_arg): Update.
564 (find_frame_funname): Update.
565 (info_frame_command_core): Update.
566 * symfile.c (set_initial_language): Update.
567 * symtab.c (symbol_set_demangled_name): Update.
568 (symbol_get_demangled_name): Update.
569 (symbol_set_language): Update.
570 (symbol_find_demangled_name): Update.
571 (symbol_set_names): Update.
572 (general_symbol_info::natural_name): Update.
573 (general_symbol_info::demangled_name): Update.
574 (general_symbol_info::search_name): Update.
575 (symbol_matches_search_name): Update.
576 (eq_symbol_entry): Update.
577 (iterate_over_symbols): Update.
578 (completion_list_add_symbol): Update.
579 (completion_list_add_msymbol): Update.
580 (completion_list_add_fields): Update.
581 * symtab.h (struct general_symbol_info) <language>: New function.
582 <language>: Rename to...
583 <m_language>: ...this.
584 (SYMBOL_LANGUAGE): Remove.
585 (MSYMBOL_LANGUAGE): Remove.
586 (struct symbol) <ctor>: Update.
587 * xstormy16-tdep.c (xstormy16_skip_prologue): Update.
588
747cfc8c
CB
5892019-12-15 Christian Biesinger <cbiesinger@google.com>
590
591 * ada-exp.y (write_ambiguous_var): Call symbol_set_language to
592 set the language of sym.
593 * language.c (language_alloc_type_symbol): Likewise.
594
ff8577f6
SDJ
5952019-12-14 Sergio Durigan Junior <sergiodj@redhat.com>
596
597 https://bugzilla.redhat.com/show_bug.cgi?id=1728147
598 PR gdb/23613
599 * bsd-kvm.c (bsd_kvm_target_open): Use 'gdb_abspath'.
600 * corelow.c: Include 'gdbsupport/pathstuff.h'.
601 (core_target_open): Use 'gdb_abspath'.
602 * gdbsupport/pathstuff.c (gdb_abspath): Guard against
603 'current_directory == NULL' case.
604 * gdbsupport/pathstuff.h (gdb_abspath): Expand comment and
605 explain what happens when 'current_directory' is NULL.
606 * go32-nat.c (go32_nat_target::wait): Check if
607 'current_directory' is NULL before call to 'chdir'.
608 * source.c (add_path): Use 'gdb_abspath'.
609 * top.c: Include 'gdbsupport/pathstuff.h'.
610 (init_history): Use 'gdb_abspath'.
611 (set_history_filename): Likewise.
612 * tracefile-tfile.c: Include 'gdbsupport/pathstuff.h'.
613 (tfile_target_open): Use 'gdb_abspath'.
614
234c3068
TT
6152019-12-13 Tom Tromey <tromey@adacore.com>
616
617 * contrib/ari/gdb_ari.sh: Remove check for multiple calls to
618 warning or error.
619
93537683
TT
6202019-12-13 Tom Tromey <tromey@adacore.com>
621
622 * contrib/ari/gdb_ari.sh: Remove call to "fix" for "long long".
623
63456183
TT
6242019-12-13 Tom Tromey <tromey@adacore.com>
625
626 * contrib/ari/gdb_ari.sh: Handle -Wno- prefix.
627
98f9338a
TT
6282019-12-13 Tom Tromey <tromey@adacore.com>
629
630 * contrib/ari/gdb_ari.sh (usage): Use GNU style.
631
3cb5a3a1
TT
6322019-12-13 Tom Tromey <tromey@adacore.com>
633
634 * gdbsupport/common-utils.c (string_printf, string_vprintf)
635 (string_vappendf): Add ARI comment.
636
c6cbf900
TT
6372019-12-13 Tom Tromey <tromey@adacore.com>
638
639 * contrib/ari/gdb_ari.sh: Remove "fix" call for
640 floatformat_to_double.
641 * target-float.c (host_float_ops<T>::from_target): Add ARI
642 comment.
643
036003a6
TT
6442019-12-13 Tom Tromey <tromey@adacore.com>
645
646 * contrib/ari/gdb_ari.sh: Remove "fix" call for abort.
647 * utils.c (abort_with_message, dump_core, internal_vproblem): Add
648 ARI marker to abort.
649 * event-top.c (handle_sigsegv): Add ARI marker to abort.
650
8aaaf757
TT
6512019-12-13 Tom Tromey <tromey@adacore.com>
652
653 * contrib/ari/gdb_ari.sh: Fix floatformat_from_double text.
654
fe56157f
TT
6552019-12-13 Tom Tromey <tromey@adacore.com>
656
657 * contrib/ari/gdb_ari.sh: Remove ATTRIBUTE_UNUSED check.
658
a15a95ed
TT
6592019-12-13 Tom Tromey <tromey@adacore.com>
660
661 * contrib/ari/gdb_ari.sh: Remove "boolean" and "var_boolean"
662 checks.
663
a5513db2
TT
6642019-12-13 Tom Tromey <tromey@adacore.com>
665
666 * gdbsupport/safe-iterator.h (class basic_safe_range) <begin,
667 end>: No longer "const".
668
3a90f266
SM
6692019-12-13 Simon Marchi <simon.marchi@polymtl.ca>
670
671 * jit.c: Fix indentation, replace spaces with tabs where
672 applicable.
673
b3f4b80f
JL
6742019-12-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
675
676 * configure.tgt: Match msp430-*-elf* targets when configuring GDB.
677
e671856c
TT
6782019-12-12 Tom Tromey <tom@tromey.com>
679
680 * objfiles.h (struct objfile) <partial_symtabs>: Now a
681 unique_ptr.
682
7d7167ce
TT
6832019-12-12 Tom Tromey <tom@tromey.com>
684
685 * progspace.h (objfile_list): New typedef.
686 (class unwrapping_objfile_iterator)
687 (struct unwrapping_objfile_range): Newl
688 (struct program_space) <objfiles_range>: Change type.
689 <objfiles>: Change return type.
690 <add_objfile>: Change type of "objfile" parameter.
691 <objfiles_list>: Now a list of shared_ptr.
692 * progspace.c (program_space::add_objfile): Change type of
693 "objfile". Update.
694 (program_space::remove_objfile): Update.
695 * objfiles.h (struct objfile) <~objfile>: Make public.
696 * objfiles.c (objfile::make): Update.
697 (objfile::unlink): Don't call delete.
698
343cc952
TT
6992019-12-12 Tom Tromey <tom@tromey.com>
700
701 * symfile.c (symbol_file_clear): Update.
702 * progspace.h (struct program_space) <free_all_objfiles>: Declare
703 method.
704 * progspace.c (program_space::free_all_objfiles): New method.
705 * objfiles.h (free_all_objfiles): Don't declare.
706 * objfiles.c (free_all_objfiles): Move to program_space.
707
d0801dd8
TT
7082019-12-12 Tom Tromey <tom@tromey.com>
709
710 * progspace.c (program_space::add_objfile)
711 (program_space::remove_objfile): Update.
712 (program_space::multi_objfile_p): Remove.
713 * objfiles.h (struct objfile) <next>: Remove.
714 * objfiles.c (objfile::objfile): Update.
715 (put_objfile_before): Update.
716 (unlink_objfile): Update.
717 * progspace.h (object_files): Remove.
718 (struct program_space) <objfiles_head>: Remove.
719 <objfiles_list>: New member.
720 <objfiles_range, objfiles_safe_range>: Change type.
721 (objfiles): Change return type.
722 (objfiles_safe): Update.
723 (multi_objfile_p): Rewrite and inline.
724 (object_files): Remove macro.
725
13bff726
TT
7262019-12-12 Tom Tromey <tom@tromey.com>
727
728 * gdbsupport/safe-iterator.h (basic_safe_iterator): Simplify. Add
729 second constructor.
730 (basic_safe_range): New class.
731
deeafabb
TT
7322019-12-12 Tom Tromey <tom@tromey.com>
733
734 * progspace.c (program_space::multi_objfile_p): New method.
735 * printcmd.c (info_symbol_command): Update.
736 * maint.c (maintenance_translate_address): Update.
737 * objfiles.h (MULTI_OBJFILE_P): Remove.
738 * progspace.h (struct program_space) <multi_objfile_p>: New
739 method.
740
23452926
TT
7412019-12-12 Tom Tromey <tom@tromey.com>
742
743 * progspace.h (struct program_space) <remove_objfile>: Declare.
744 * progspace.c (program_space::remove_objfile): New method.
745 * objfiles.c (unlink_objfile): Remove.
746 (objfile::unlink): Call remove_objfile.
747 (objfile): Don't call unlink_objfile.
748
7cac64af
TT
7492019-12-12 Tom Tromey <tom@tromey.com>
750
751 * progspace.h (struct program_space) <add_objfile>: Declare
752 method.
753 * progspace.c (program_space::add_objfile): New method.
754 * objfiles.c (~objfile): Don't unlink objfile.
755 (put_objfile_before): Remove.
756 (add_separate_debug_objfile): Don't call put_objfile_before.
757 (objfile::make): Call add_objfile. Set new_objfiles_available on
758 the per-program-space data.
759
268e4f09
TT
7602019-12-12 Tom Tromey <tom@tromey.com>
761
762 * symfile.c (syms_from_objfile_1): Use objfile_up.
763 (syms_from_objfile_1, remove_symbol_file_command): Call unlink
764 method.
765 (reread_symbols): Use objfile_up.
766 * solib.c (update_solib_list, reload_shared_libraries_1): Call
767 unlink method.
768 * objfiles.h (struct objfile) <~objfile>: Now private.
769 <unlink>: New method.
770 (struct objfile_deleter): New.
771 (objfile_up): New typedef.
772 * objfiles.c (objfile::unlink): New method.
773 (free_objfile_separate_debug, free_all_objfiles)
774 (objfile_purge_solibs): Use it.
775 * jit.c (jit_unregister_code): Remove.
776 (jit_inferior_exit_hook, jit_event_handler): Call unlink on
777 objfile.
778 * compile/compile-object-run.c (do_module_cleanup): Call unlink on
779 objfile.
780 * compile/compile-object-load.c (compile_object_load): Use
781 objfile_up.
782
f65fe570
TT
7832019-12-12 Tom Tromey <tom@tromey.com>
784
785 * symfile.c (symbol_file_add_with_addrs): Pass "parent" to
786 objfile::make.
787 * objfiles.h (struct objjfile) <make>: No longer inline.
788 (add_separate_debug_objfile): Don't declare.
789 * objfiles.c (add_separate_debug_objfile): Now static.
790 (objfile::make): Move from objfiles.h. Call
791 add_separate_debug_objfile. Add "parent" parameter.
792
bda13cdc
TT
7932019-12-12 Tom Tromey <tom@tromey.com>
794
795 * symfile.c (symbol_file_add_with_addrs): Use objfile::make.
796 * objfiles.h (struct objfile): Make constructor private.
797 <make>: New static method.
798 * jit.c (jit_object_close_impl): Update.
799
7190276c
SM
8002019-12-12 Simon Marchi <simon.marchi@polymtl.ca>
801
802 * jit.c (jit_reader_try_read_symtab): Replace xmalloc/xfree with
803 gdb::byte_vector.
804
d61df897
TT
8052019-12-12 Tom Tromey <tromey@adacore.com>
806
807 * xml-support.c (xml_fetch_content_from_file): Don't call
808 malloc_failure.
809 * utils.h (class gdb_argv): Remove malloc_failure comment.
810 * utils.c (gdb_argv::reset): Don't call malloc_failure.
811
db3ad2f0
TT
8122019-12-12 Tom Tromey <tromey@adacore.com>
813
814 * Makefile.in (ALL_TARGET_OBS): Add riscv-ravenscar-thread.o.
815 (HFILES_NO_SRCDIR): Add riscv-ravenscar-thread.h.
816 (ALLDEPFILES): Add riscv-ravenscar-thread.c.
817 * configure.tgt (riscv-*-*): Add riscv-ravenscar-thread.o.
818 * riscv-ravenscar-thread.c: New file.
819 * riscv-ravenscar-thread.h: New file.
820 * riscv-tdep.c (riscv_gdbarch_init): Call
821 register_riscv_ravenscar_ops.
822
2ffe5b9c
TT
8232019-12-12 Tom Tromey <tromey@adacore.com>
824
825 * gdbsupport/thread-pool.c (set_thread_name): Use
826 ATTRIBUTE_UNUSED.
827
39f34d7b
LM
8282019-12-12 Luis Machado <luis.machado@linaro.org>
829
830 * gdbsupport/safe-strerror.c: Don't include diagnostics.h.
831 (select_strerror_r): Use ATTRIBUTE_UNUSED instead of the diagnostics
832 macros.
833
d4eeccfe
TT
8342019-12-11 Tom Tromey <tom@tromey.com>
835
836 * tui/tui-win.c (tui_set_win_height_command): Call
837 tui_adjust_window_height.
838 (tui_adjust_win_heights, new_height_ok): Remove.
839 * tui/tui-layout.h (tui_adjust_window_height): Declare.
840 * tui/tui-layout.c (tui_adjust_window_height): New function.
841
3d979945
TT
8422019-12-11 Tom Tromey <tom@tromey.com>
843
844 * tui/tui-win.c (tui_resize_all): Remove code, call
845 tui_apply_current_layout.
846
2192a9d3
TT
8472019-12-11 Tom Tromey <tom@tromey.com>
848
849 * tui/tui-layout.h (tui_apply_current_layout): Declare.
850 * tui/tui-layout.c (standard_layouts, applied_layout): New
851 globals.
852 (tui_apply_current_layout): New function.
853 (show_layout): Set applied_layout. Call
854 tui_apply_current_layout.
855 (show_source_command, show_disasm_command)
856 (show_source_disasm_command, show_data)
857 (show_source_or_disasm_and_command): Remove.
858 (initialize_layouts): New function.
859 (_initialize_tui_layout): Call initialize_layouts.
860
389e7ddb
TT
8612019-12-11 Tom Tromey <tom@tromey.com>
862
863 * tui/tui-layout.h (class tui_layout_base)
864 (class tui_layout_window, class tui_layout_split): New.
865 * tui/tui-layout.c (tui_get_window_by_name)
866 (tui_layout_window::clone, tui_layout_window::apply)
867 (tui_layout_window::get_sizes, tui_layout_window::add_split)
868 (tui_layout_split::add_window, tui_layout_split::clone)
869 (tui_layout_split::get_sizes)
870 (tui_layout_split::set_weights_from_heights)
871 (tui_layout_split::adjust_size, tui_layout_split::apply): New
872 functions.
873 (tui_layout_split::add_split, tui_layout_split::add_split)
874 (tui_layout_split::set_weights_from_heights)
875 (tui_layout_split::set_weights_from_heights): New functions.
876
fb3184d8
TT
8772019-12-11 Tom Tromey <tom@tromey.com>
878
879 * tui/tui-wingeneral.c (tui_gen_win_info::make_window): Update.
880 * tui/tui-win.c (tui_adjust_win_heights, tui_resize_all): Update.
881 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
882 * tui/tui-data.h (struct tui_point): Remove.
883 (struct tui_gen_win_info) <origin>: Remove.
884 <x, y>: New fields.
885 * tui/tui-command.c (tui_cmd_window::resize): Update.
886
dc7ff8a6
TT
8872019-12-11 Tom Tromey <tom@tromey.com>
888
889 * tui/tui-stack.h (struct tui_locator_window) <min_height>:
890 Implement.
891 * tui/tui-regs.h (struct tui_data_item_window) <min_height>:
892 Implement.
893 * tui/tui-data.h (struct tui_gen_win_info) <min_height>: New
894 method.
895 (struct tui_win_info) <min_height>: Implement.
896
1431937b
TT
8972019-12-11 Tom Tromey <tom@tromey.com>
898
899 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
900 (struct tui_win_info) <can_box>: Update.
901
c8ec2f43
TT
9022019-12-11 Tom Tromey <tom@tromey.com>
903
904 * tui/tui-stack.h (struct tui_locator_window) <max_height>: New
905 method.
906 * tui/tui-regs.h (struct tui_data_item_window) <max_height>: New
907 method.
908 * tui/tui-data.h (struct tui_gen_win_info) <max_height>: New
909 method.
910 (struct tui_win_info) <max_height>: Now override.
911
4decd62b
JB
9122019-12-11 Joel Brobecker <brobecker@adacore.com>
913
914 * NEWS: Create a new section for the next release branch.
915 Rename the section of the current branch, now that it has
916 been cut.
917
d746744e
JB
9182019-12-11 Joel Brobecker <brobecker@adacore.com>
919
920 GDB 9 branch created (27f7b2f64062ac9e52afc60509263c2702a9ebd0):
921 * version.in: Bump version to 10.0.50.DATE-git.
922
2e744276
TT
9232019-12-11 Tom Tromey <tromey@adacore.com>
924
925 PR build/25268:
926 * gdbsupport/thread-pool.c (set_thread_name): New function.
927 (thread_pool::set_thread_count): Don't call pthread_setname_np.
928 (thread_pool::thread_function): Call set_thread_name.
929
aac4760f
TT
9302019-12-11 Tom Tromey <tromey@adacore.com>
931
932 * fbsd-tdep.c (fbsd_core_info_proc_status): Cast result of
933 bfd_get_signed_8.
934
d8edc8b7
PW
9352019-12-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
936
937 * NEWS: Document -raw-values option and the related setting commands.
938 * printcmd.c (print_command_parse_format): Do not set opts->raw off,
939 only set it on when /r is given.
940 * valprint.c (value_print_option_defs): New element raw-values.
941 * Makefile.in: Add the new file.
942
cb511130
CB
9432019-12-10 Christian Biesinger <cbiesinger@google.com>
944
945 * gdbsupport/safe-strerror.c: Supress the unused function warning
946 for select_strerror_r.
947
ab7d13f0
CB
9482019-12-10 Christian Biesinger <cbiesinger@google.com>
949
950 * config.in: Regenerate.
951 * configure: Regenerate.
952 * gdbsupport/agent.c (gdb_connect_sync_socket): Call
953 safe_strerror instead of strerror.
954 * gdbsupport/common.m4: Don't check for strerror.
955 * gdbsupport/safe-strerror.c: Support both the glibc version
956 of strerror_r and the XSI version.
957
6c71eb7d
TT
9582019-12-10 Tom Tromey <tromey@adacore.com>
959
960 * ada-typeprint.c (print_choices): Use a single "?".
961 (print_variant_part): Print "?" if the discriminant name
962 is not known.
963
bac7c5cf
GB
9642019-12-10 George Barrett <bob@bob131.so>
965
966 Fix scripted probe breakpoints.
967 * breakpoint.c (tracepoint_probe_breakpoint_ops): Move
968 declaration forward.
969 (breakpoint_ops_for_event_location_type)
970 (breakpoint_ops_for_event_location): Add function definitions.
971 (break_command_1, trace_command): Use
972 breakpoint_ops_for_event_location.
973 * breakpoint.h (breakpoint_ops_for_event_location): Add function
974 declarations.
975 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Use
976 breakpoint_ops_for_event_location.
977 * python/py-breakpoint.c (bppy_init): Use
978 breakpoint_ops_for_event_location.
979
330f1d38
TBA
9802019-12-09 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
981
982 * gdbtypes.c (rank_one_type): Return INCOMPATIBLE_TYPE_BADNESS
983 when ranking an lvalue argument for an rvalue parameter.
984
b1f0c0b9
WA
9852019-12-08 Wataru Ashihara <wataash@wataash.com>
986
987 * darwin-nat.c (darwin_nat_target::create_inferior): Fix
988 template argument for scoped_restore_tmpl from bool to int.
989
aa2d5a42
KS
9902019-12-07 Keith Seitz <keiths@redhat.com>
991
992 * build-id.c (build_id_bfd_get): Permit bfd_core, too.
993 (build_id_to_debug_bfd): Make static, rewriting to use
994 build_id_to_bfd_suffix.
995 (build_id_to_bfd_suffix): Copy of build_id_to_debug_bfd,
996 adding `suffix' parameter. Append SUFFIX to file names
997 when searching for matching files.
998 (build_id_to_debug_bfd): Use build_id_to_bfd_suffix.
999 (build_id_to_exec_bfd): Likewise.
1000 * build-id.h (build_id_to_debug_bfd): Clarify that function
1001 searches for BFD of debug info file.
1002 (build_id_to_exec_bfd): Declare.
1003 * corelow.c: Include build-id.h.
1004 (locate_exec_from_corefile_build_id): New function.
1005 (core_target_open): If no executable BFD is found,
1006 search for a core file BFD using build-id.
1007
dfb65191
CB
10082019-12-06 Christian Biesinger <cbiesinger@google.com>
1009
1010 * bcache.c: Put in namespace gdb.
1011 * bcache.h: Likewise.
1012 * gdbtypes.c (check_types_worklist): Update.
1013 (types_deeply_equal): Update.
1014 * macrotab.c (struct macro_table) <bcache>: Update.
1015 (new_macro_table): Update.
1016 * macrotab.h (struct bcache): Put this forward declaration
1017 inside namespace gdb.
1018 (new_macro_table): Update.
1019 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache>:
1020 Update.
1021 <macro_cache>: Update.
1022 * psymtab.h: (psymtab_storage) <psymbol_cache>: Update.
1023
93e55f0a
TV
10242019-12-06 Tom de Vries <tdevries@suse.de>
1025
1026 PR symtab/24971
1027 * block.c (best_symbol, better_symbol): New function.
1028 (block_lookup_symbol_primary, block_lookup_symbol): Prefer def over
1029 decl.
1030
06acc08f
TBA
10312019-12-06 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1032
1033 * gdbtypes.h: Define the REFERENCE_SEE_THROUGH_BADNESS value.
1034 * gdbtypes.c (rank_one_type): Use REFERENCE_SEE_THROUGH_BADNESS
1035 for ranking see-through reference cases.
1036
e0fad1ea
PW
10372019-12-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1038 * stack.c (faas_command): Check a command is provided.
1039 * thread.c (taas_command, tfaas_command): Likewise.
1040
908641f5
PW
10412019-12-05 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1042 * inferior.c (prune_inferiors): Only call delete_inferior,
1043 Do not modify the inferior list.
1044
b858499d
SM
10452019-12-05 Simon Marchi <simon.marchi@polymtl.ca>
1046
1047 * c-exp.y: Update calls to lookup_typename,
1048 lookup_signed_typename and lookup_unsigned_typename.
1049 * c-lang.c (evaluate_subexp_c): Likewise.
1050 * cp-namespace.c (cp_lookup_symbol_imports_or_template):
1051 Likewise.
1052 * eval.c (binop_promote): Likewise.
1053 * gdbtypes.c (lookup_typename): Remove gdbarch parameter.
1054 (lookup_unsigned_typename): Likewise.
1055 (lookup_signed_typename): Likewise.
1056 * gdbtypes.h (lookup_unsigned_typename): Likewise.
1057 (lookup_signed_typename): Likewise.
1058 (lookup_typename): Likewise.
1059 * guile/scm-type.c (tyscm_lookup_typename): Update calls to
1060 lookup_typename, lookup_signed_typename,
1061 lookup_unsigned_typename.
1062 * m2-exp.y: Likewise.
1063 * printcmd.c (printf_wide_c_string): Likewise.
1064 (ui_printf): Likewise.
1065 * python/py-type.c (typy_lookup_typename): Likewise.
1066 * python/py-xmethods.c (python_xmethod_worker::invoke):
1067 Likewise.
1068 * rust-exp.y: Likewise.
1069
3a8fa228
CB
10702019-12-04 Christian Biesinger <cbiesinger@google.com>
1071
1072 * configure.nat (obsd64): Add missing files x86-nat.o and
1073 nat/x86-dregs.o.
1074
2dbc041e
TT
10752019-12-04 Tom Tromey <tom@tromey.com>
1076
1077 * valprint.c (val_print_string): Use metadata_style.
1078 * go-valprint.c (print_go_string): Use metadata style.
1079 * p-valprint.c (pascal_object_print_static_field): Use metadata
1080 style.
1081 * cp-valprint.c (cp_print_static_field): Use metadata style.
1082
36c8fb93
AB
10832019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
1084 Chris January <chris.january@arm.com>
1085
1086 * f-exp.y (COMPLEX_KEYWORD, SINGLE, DOUBLE, PRECISION): New
1087 tokens.
1088 (typebase): New patterns for complex, single/double precision, and
1089 single/double complex.
1090 (f77_keywords): Change token for complex keyword, and add single,
1091 double, and precision keywords.
1092
c6170c2c
SM
10932019-12-04 Simon Marchi <simon.marchi@polymtl.ca>
1094
1095 * avr-tdep.c (_initialize_avr_tdep): Improve help of command
1096 "info io_registers".
1097
894ecaf4
SM
10982019-12-04 Simon Marchi <simon.marchi@polymtl.ca>
1099
1100 * regcache.c (cooked_read_test): Initialize thread list of
1101 mock_inferior.
1102
be155ebb
SM
11032019-12-04 Simon Marchi <simon.marchi@polymtl.ca>
1104
1105 * aarch64-linux-tdep.c: Remove includes.
1106
c577cdd7
SM
11072019-12-04 Simon Marchi <simon.marchi@polymtl.ca>
1108
1109 * aarch64-tdep.c: Remove includes.
1110
610cfd61
SM
11112019-12-04 Simon Marchi <simon.marchi@efficios.com>
1112
1113 * filtered-iterator.h (filtered_iterator) <operator==,
1114 operator!=>: Compare wrapped iterators, not wrapped pointers.
1115 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1116 unittests/filtered_iterator-selftests.c.
1117 * unittests/filtered_iterator-selftests.c: New file.
1118
a05cf17a
TT
11192019-12-04 Tom Tromey <tromey@adacore.com>
1120
1121 * gdbtypes.c (create_range_type): Inherit endianity
1122 from base type.
1123
d5a22e77
TT
11242019-12-04 Tom Tromey <tromey@adacore.com>
1125
1126 * ada-lang.c (decode_constrained_packed_array)
1127 (ada_value_assign, value_assign_to_component): Update.
1128 * dwarf2loc.c (rw_pieced_value, access_memory)
1129 (dwarf2_compile_expr_to_ax): Update.
1130 * dwarf2read.c (dwarf2_add_field): Update.
1131 * eval.c (evaluate_subexp_standard): Update.
1132 * gdbarch.c, gdbarch.h: Rebuild.
1133 * gdbarch.sh (bits_big_endian): Remove.
1134 * gdbtypes.h (union field_location): Update comment.
1135 * target-descriptions.c (make_gdb_type): Update.
1136 * valarith.c (value_bit_index): Update.
1137 * value.c (struct value) <bitpos>: Update comment.
1138 (unpack_bits_as_long, modify_field): Update.
1139 * value.h (value_bitpos): Update comment.
1140
7ab4a236
TT
11412019-12-04 Tom Tromey <tromey@adacore.com>
1142
1143 * gdbtypes.c (type_byte_order): Move earlier. Assert for unknown
1144 endian-ness.
1145
103a685e
TT
11462019-12-04 Tom Tromey <tromey@adacore.com>
1147
1148 * dwarf2read.c (dwarf2_init_float_type)
1149 (dwarf2_init_complex_target_type): Add byte_order parameter.
1150 (read_base_type): Compute byte order earlier.
1151 * gdbtypes.c (init_float_type): Add byte_order parameter.
1152 * gdbtypes.h (init_float_type): Add byte_order parameter.
1153
7a9e9f9f
TT
11542019-12-04 Tom Tromey <tromey@adacore.com>
1155
1156 * unittests/tui-selftests.c: Conditionally include tui-winsource.h.
1157
feee869b
TT
11582019-12-04 Tom Tromey <tromey@adacore.com>
1159
1160 * dwarf2read.c (process_structure_scope): Initialize
1161 "discr_offset".
1162
c2512106
AB
11632019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
1164
1165 * mi/mi-symbol-cmds.c (mi_symbol_info): Take extra parameter, and
1166 add it into the search spec.
1167 (parse_max_results_option): New function.
1168 (mi_info_functions_or_variables): Parse -max-results flag and pass
1169 it to mi_symbol_info.
1170 (mi_cmd_symbol_info_modules): Likewise.
1171 (mi_cmd_symbol_info_types): Likewise.
1172 * symtab.c (global_symbol_searcher::add_matching_symbols): Change
1173 return type to bool, change result container into a set, and don't
1174 add new results if we have enough already.
1175 (global_symbol_searcher::add_matching_msymbols): Change return
1176 type to bool, and don't add new results if we have enough already.
1177 (sort_search_symbols_remove_dups): Delete.
1178 (global_symbol_searcher::search): Early exit from search loop when
1179 we have enough results. Use a std::set to collect the results
1180 from calling add_matching_symbols.
1181 * symtab.h (global_symbol_searcher) <set_max_seach_results>: New
1182 member function.
1183 (global_symbol_searcher) <m_max_search_results>: New member
1184 variable.
1185 (global_symbol_searcher) <add_matching_symbols>: Update header
1186 comment and change return type to bool.
1187 (global_symbol_searcher) <add_matching_msymbols>: Update header
1188 comment and change return type to bool.
1189
f97a63c5
AB
11902019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
1191
1192 * symtab.c (symbol_search::compare_search_syms): Update header
1193 comment.
1194 (global_symbol_searcher::is_suitable_msymbol): New function.
1195 (global_symbol_searcher::expand_symtabs): New function.
1196 (global_symbol_searcher::add_matching_symbols): New function.
1197 (global_symbol_searcher::add_matching_msymbols): New function.
1198 (global_symbol_searcher::search): Move most of the content
1199 into the new functions above, and call them as needed.
1200 * symtab.h (global_symbol_searcher) <expand_symtabs>: New member
1201 function.
1202 (global_symbol_searcher) <add_matching_symbols>: New member
1203 function.
1204 (global_symbol_searcher) <add_matching_msymbols>: New member
1205 function.
1206 (global_symbol_searcher) <is_suitable_msymbol>: New member
1207 function.
1208
293b38d6
AB
12092019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
1210
1211 * mi/mi-cmds.c (mi_cmds): Add -symbol-info-module-functions and
1212 -symbol-info-module-variables entries.
1213 * mi/mi-cmds.h (mi_cmd_symbol_info_module_functions): Declare.
1214 (mi_cmd_symbol_info_module_variables): Declare.
1215 * mi/mi-symbol-cmds.c
1216 (module_symbol_search_iterator): New typedef.
1217 (output_module_symbols_in_single_module_and_file): New function.
1218 (output_module_symbols_in_single_module): New function.
1219 (mi_info_module_functions_or_variables): New function.
1220 (mi_cmd_symbol_info_module_functions): New function.
1221 (mi_cmd_symbol_info_module_variables): New function.
1222 * NEWS: Mention new MI command.
1223
4cbd39b2
CB
12242019-12-03 Christian Biesinger <cbiesinger@google.com>
1225
1226 * bcache.c (hash): Remove.
1227 (hash_continue): Remove.
1228 * bcache.h (hash): Remove.
1229 (hash_continue): Remove.
1230 (struct bcache) <ctor>: Update.
1231 * psymtab.c (psymbol_hash): Update.
1232 * stabsread.c (hashname): Update.
1233 * utils.h (fast_hash): Add an argument for a start value,
1234 defaulting to zero.
1235
82f910ea
PW
12362019-12-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1237 * symtab.c (symbol_cache_clear_slot): Move close to cleared type.
1238 (destroy_block_symbol_cache): New function.
1239 (symbol_cache:~symbol_cache) Call destroy_block_symbol_cache.
1240 (resize_symbol_cache): Likewise.
1241
de2396d0
TT
12422019-12-02 Tom Tromey <tom@tromey.com>
1243
1244 * unittests/tui-selftests.c (run_tests): Make conditional.
1245 (_initialize_tui_selftest): Make conditional.
1246
638d85bc
CB
12472019-12-02 Christian Biesinger <cbiesinger@google.com>
1248
1249 * aix-thread.c (debug_aix_thread): Change type to bool.
1250
7532a164
LM
12512019-12-02 Luis Machado <luis.machado@linaro.org>
1252
1253 * infrun.c (follow_fork_inferior): Remove outdated FIXME comment.
1254
216a7e6b
AB
12552019-12-01 Andrew Burgess <andrew.burgess@embecosm.com>
1256
1257 * dwarf2read.c (read_tag_string_type): Read the fields required to
1258 make a dynamic string, and possibly create a dynamic range for the
1259 string.
1260 (attr_to_dynamic_prop): Setup is_reference based on the type of
1261 attribute being processed.
1262 * gdbtypes.c (is_dynamic_type_internal): Handle TYPE_CODE_STRING.
1263 (resolve_dynamic_array): Rename to...
1264 (resolve_dynamic_array_or_string): ...this, update header comment,
1265 and accept TYPE_CODE_STRING.
1266 (resolve_dynamic_type_internal): Handle TYPE_CODE_STRING.
1267
11a8b164
AB
12682019-12-01 Andrew Burgess <andrew.burgess@embecosm.com>
1269
1270 * dwarf2read.c (dwarf2_per_cu_int_type): New function, takes most
1271 of its implementation from...
1272 (dwarf2_per_cu_addr_sized_int_type): ...here, which now just calls
1273 the new function.
1274
5bbd8269
AB
12752019-12-01 Andrew Burgess <andrew.burgess@embecosm.com>
1276
1277 * dwarf2read.c (read_subrange_type): Read bit and byte stride and
1278 create a range with stride where appropriate.
1279 * f-valprint.c: Include 'gdbarch.h'.
1280 (f77_print_array_1): Take the stride into account when walking the
1281 array. Also convert the stride into addressable units.
1282 * gdbtypes.c (create_range_type): Initialise the stride to
1283 constant zero.
1284 (create_range_type_with_stride): New function, initialise the
1285 range as normal, and then setup the stride.
1286 (has_static_range): Include the stride here. Also change the
1287 return type to bool.
1288 (create_array_type_with_stride): Consider the range stride if the
1289 array isn't given its own stride.
1290 (resolve_dynamic_range): Resolve the stride if needed.
1291 * gdbtypes.h (struct range_bounds) <stride>: New member variable.
1292 (struct range_bounds) <flag_is_byte_stride>: New member variable.
1293 (TYPE_BIT_STRIDE): Define.
1294 (TYPE_ARRAY_BIT_STRIDE): Define.
1295 (create_range_type_with_stride): Declare.
1296 * valarith.c (value_subscripted_rvalue): Take range stride into
1297 account when walking the array.
1298
82e3b564
TT
12992019-12-01 Tom Tromey <tom@tromey.com>
1300
1301 * tui/tui-win.c (tui_all_windows_info): Treat inactive TUI
1302 specially.
1303
517d261d
TT
13042019-12-01 Tom Tromey <tom@tromey.com>
1305
1306 * tui/tui-winsource.c (tui_copy_source_line): Don't advance past
1307 \0.
1308 * unittests/tui-selftests.c: New file.
1309 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add tui-selftests.c.
1310
484c9b64
TT
13112019-12-01 Tom Tromey <tom@tromey.com>
1312
1313 * tui/tui.c (tui_enable): Call tui_update_variables earlier.
1314
a2a7af0c
TT
13152019-12-01 Tom Tromey <tom@tromey.com>
1316
1317 * NEWS: Document new settings.
1318 * tui/tui-wingeneral.c (box_win): Apply appropriate border style.
1319 * tui/tui-win.c (_initialize_tui_win): Add border style
1320 observers.
1321 * tui/tui-io.h (tui_apply_style): Declare.
1322 * tui/tui-io.c (tui_apply_style): Rename from apply_style. No
1323 longer static.
1324 (apply_ansi_escape, tui_set_reverse_mode): Update.
1325 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
1326 Add "skip_intensity" parameter.
1327 <changed>: New member.
1328 <do_set_value>: Declare.
1329 (tui_border_style, tui_active_border_style): Declare.
1330 * cli/cli-style.c (tui_border_style, tui_active_border_style): New
1331 globals.
1332 (cli_style_option): Initialize "changed".
1333 (cli_style_option::do_set_value): New function.
1334 (cli_style_option::add_setshow_commands): Add "skip_intensity"
1335 parameter. Update.
1336 (STYLE_ADD_SETSHOW_COMMANDS): Add "SKIP" parameter.
1337 (_initialize_cli_style): Update. Create TUI border style
1338 commands.
1339
d1da6b01
TT
13402019-12-01 Tom Tromey <tom@tromey.com>
1341
1342 * tui/tui-winsource.h (tui_copy_source_line): Add "ndigits"
1343 parameter.
1344 * tui/tui-winsource.c (tui_copy_source_line): Add "ndigits"
1345 parameter.
1346 * tui/tui-win.h (compact_source): Declare.
1347 * tui/tui-win.c (compact_source): New global.
1348 (tui_set_compact_source, tui_show_compact_source): New functions.
1349 (_initialize_tui_win): Add "compact-source" setting.
1350 * tui/tui-source.c (tui_source_window::set_contents): Handle
1351 compact_source setting.
1352 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
1353 * NEWS: Document new setting.
1354
489dbda6
TT
13552019-11-30 Tom Tromey <tom@tromey.com>
1356
1357 * dwarf2read.c (dwarf2_add_field): Include field offset when
1358 computing variant part length.
1359
bf498525
PW
13602019-11-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1361 * NEWS: Mention define-prefix. Tell that command names can now
1362 contain a . character.
1363
be09caf1
PW
13642019-11-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1365
1366 * command.h (valid_cmd_char_p): Declare.
1367 * cli/cli-decode.c (valid_cmd_char_p): New function factorizing
1368 the check of valid command char.
1369 (find_command_name_length, valid_user_defined_cmd_name_p): Use
1370 valid_cmd_char_p.
1371 * cli/cli-script.c (validate_comname): Likewise.
1372 * completer.c (gdb_completer_command_word_break_characters):
1373 Do not remove . from the word break char, update comments.
1374 (complete_line_internal_1): Use valid_cmd_char_p.
1375 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
1376 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
1377
c6ac7fc9
PW
13782019-11-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1379
1380 * cli/cli-script.c (do_define_command): Ensure a redefined
1381 prefix command is kept as a prefix command.
1382 (define_prefix_command): New function.
1383 (show_user_1): Report user defined prefixes.
1384 (_initialize_cli_script): Create the new 'define-prefix' command.
1385 Add completers for 'define' and 'document'.
1386 * top.c (execute_command): If command is a user-defined prefix only
1387 command, report the list of commands for this prefix command.
1388
a992a3b0
TBA
13892019-11-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1390
1391 * valops.c (find_oload_champ): Improve debug output.
1392
e9194a1a
TBA
13932019-11-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1394
1395 * valops.c (find_oload_champ): Print part of debug messages
1396 before the badness vector is std::move'd.
1397
53a008a6
TT
13982019-11-28 Tom Tromey <tom@tromey.com>
1399
1400 * value.c (creal_internal_fn): Fix comment.
1401
bab05c83
TT
14022019-11-28 Tom Tromey <tom@tromey.com>
1403
1404 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count,
1405 flag_bound_evaluated>: Now unsigned.
1406
2522f049
TT
14072019-11-28 Tom Tromey <tom@tromey.com>
1408
1409 * guile/guile-internal.h (vlscm_scm_from_value_unsafe): Don't
1410 declare.
1411
38b49e22
MS
14122019-11-28 Mihails Strasuns <mihails.strasuns@intel.com>
1413
1414 * jit.c (jit_bfd_try_read_symtab): Fix printed function name in the
1415 debug output.
1416 * jit.c (jit_unregister_code): Add debug print to match
1417 `jit_register_code`.
1418
35125921
CB
14192019-11-27 Christian Biesinger <cbiesinger@google.com>
1420
1421 * NEWS: Mention the new multithreaded symbol loading.
1422
62e77f56
CB
14232019-11-27 Christian Biesinger <cbiesinger@google.com>
1424
1425 * maint.c (n_worker_threads): Default to 0.
1426 (worker_threads_disabled): New function.
1427 * maint.h (worker_threads_disabled): New function.
1428 * minsyms.c (minimal_symbol_reader::record_full): Call symbol_set_names
1429 here if worker_threads_disabled () is true.
1430 (minimal_symbol_reader::install): Skip all threading if
1431 worker_threads_disabled () is true.
1432
f29d7f6b
CB
14332019-11-27 Christian Biesinger <cbiesinger@google.com>
1434
1435 * minsyms.c (add_minsym_to_hash_table): Use a previously computed
1436 hash code if possible.
1437 (add_minsym_to_demangled_hash_table): Likewise.
1438 (minimal_symbol_reader::install): Compute the hash codes for msymbol
1439 on the background thread.
1440 * symtab.h (struct minimal_symbol) <hash_value, demangled_hash_value>:
1441 Add these fields.
1442
e76b2246
CB
14432019-11-27 Christian Biesinger <cbiesinger@google.com>
1444
1445 * minsyms.c (minimal_symbol_reader::install): Also compute the hash
1446 of the mangled name on the background thread.
1447 * symtab.c (symbol_set_names): Allow passing in the hash of the
1448 linkage_name.
1449 * symtab.h (symbol_set_names): Likewise.
1450
8d9a2568
KB
14512019-11-27 Kevin Buettner <kevinb@redhat.com>
1452
1453 * dwarf2read.c (inherit_abstract_dies): Ensure that delayed
1454 physnames are computed for inherited DIEs.
1455
fad03f6e
TT
14562019-11-27 Tom Tromey <tromey@adacore.com>
1457
1458 * dwarf2read.h (struct dwarf2_per_objfile): Remove unnecessary
1459 backslashes.
1460 * cp-support.c: Remove unnecessary backslashes.
1461
43678b0a
CB
14622019-11-27 Christian Biesinger <cbiesinger@google.com>
1463
1464 * ada-exp.y (write_ambiguous_var): Replace SYMBOL_SET_LINKAGE_NAME
1465 with sym->set_linkage_name.
1466 * coffread.c (coff_read_enum_type): Likewise.
1467 * mdebugread.c (parse_symbol): Likewise.
1468 * stabsread.c (patch_block_stabs): Likewise.
1469 (define_symbol): Likewise.
1470 (read_enum_type): Likewise.
1471 (common_block_end): Likewise.
1472 * symtab.h (struct general_symbol_info) <set_linkage_name>: New
1473 function.
1474 (SYMBOL_SET_LINKAGE_NAME): Remove.
1475 * xcoffread.c (process_xcoff_symbol): Replace SYMBOL_SET_LINKAGE_NAME
1476 with sym->set_linkage_name.
1477
db5960b4
AB
14782019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
1479
1480 * mi/mi-cmds.c (mi_cmds): Add 'symbol-info-modules' entry.
1481 * mi/mi-cmds.h (mi_cmd_symbol_info_modules): Declare.
1482 * mi/mi-symbol-cmds.c (mi_cmd_symbol_info_modules): New function.
1483 * NEWS: Mention new MI command.
1484
7dc42066
AB
14852019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
1486
1487 * mi/mi-cmds.c (mi_cmds): Add '-symbol-info-functions',
1488 '-symbol-info-types', and '-symbol-info-variables'.
1489 * mi/mi-cmds.h (mi_cmd_symbol_info_functions): Declare.
1490 (mi_cmd_symbol_info_types): Declare.
1491 (mi_cmd_symbol_info_variables): Declare.
1492 * mi/mi-symbol-cmds.c: Add 'source.h' and 'mi-getopt.h' includes.
1493 (output_debug_symbol): New function.
1494 (output_nondebug_symbol): New function.
1495 (mi_symbol_info): New function.
1496 (mi_info_functions_or_variables): New function.
1497 (mi_cmd_symbol_info_functions): New function.
1498 (mi_cmd_symbol_info_types): New function.
1499 (mi_cmd_symbol_info_variables): New function.
1500 * NEWS: Mention new commands.
1501
5f512a7d
AB
15022019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
1503
1504 * symtab.c (symbol_to_info_string): New function, most content
1505 moved from print_symbol_info, but updated to return a std::string.
1506 (print_symbol_info): Update to use symbol_to_info_string and print
1507 returned string.
1508 * symtab.h (symbol_to_info_string): Declare new function.
1509
470c0b1c
AB
15102019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
1511
1512 * python/python.c (gdbpy_rbreak): Convert to using
1513 global_symbol_searcher.
1514 * symtab.c (file_matches): Convert return type to bool, change
1515 file list to std::vector, update header comment.
1516 (search_symbols): Rename to...
1517 (global_symbol_searcher::search): ...this and update now its
1518 a member function of global_symbol_searcher. Take account of the
1519 changes to file_matches.
1520 (symtab_symbol_info): Convert to using global_symbol_searcher.
1521 (rbreak_command): Likewise.
1522 (search_module_symbols): Likewise.
1523 * symtab.h (enum symbol_search): Update comment.
1524 (search_symbols): Remove declaration.
1525 (class global_symbol_searcher): New class.
1526
57357d9d
TT
15272019-11-26 Tom Tromey <tromey@adacore.com>
1528
1529 * cp-support.c (_initialize_cp_support): Conditionally initialize
1530 gdb_demangle_attempt_core_dump.
1531
3ea16160
TT
15322019-11-26 Tom Tromey <tom@tromey.com>
1533
1534 * python/py-function.c (fnpy_init): Update.
1535 * value.h (add_internal_function): Adjust declaration.
1536 * value.c (function_destroyer): Remove.
1537 (do_add_internal_function): Don't set destroyer or copy name.
1538 (add_internal_function): Take unique_xmalloc_ptr<char> for name.
1539 Set name_allocated.
1540 * python/py-cmd.c (cmdpy_destroyer): Don't free "name".
1541 (cmdpy_init): Set name_allocated.
1542 * cli/cli-decode.h (struct cmd_list_element) <name_allocated>: New
1543 member.
1544 (~cmd_list_element): Free "name" if needed.
1545
1a6d41c6
TT
15462019-11-26 Tom Tromey <tom@tromey.com>
1547
1548 * value.h (add_internal_function): Add new overload. Move
1549 documentation from value.h.
1550 * value.c (do_add_internal_function): New function.
1551 (add_internal_function): Use it. Add new overload.
1552 (function_destroyer): Don't free doc.
1553 * python/py-function.c (fnpy_init): Update.
1554
8318f3c3
TT
15552019-11-26 Tom Tromey <tom@tromey.com>
1556
1557 * python/py-cmd.c (cmdpy_destroyer): Don't free "doc".
1558 (cmdpy_init): Set "doc_allocated".
1559
4da8c3a8
TT
15602019-11-26 Tom Tromey <tom@tromey.com>
1561
1562 * gdbsupport/thread-pool.c (thread_pool::set_thread_count): Set
1563 name of worker thread.
1564 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for
1565 pthread_setname_np.
1566 * configure, config.in: Rebuild.
1567
971db5e2
TT
15682019-11-26 Tom Tromey <tom@tromey.com>
1569
1570 * python/python.c (class gdbpy_gil): New.
1571 (struct gdbpy_event): Add constructor, destructor, operator().
1572 (gdbpy_post_event): Use run_on_main_thread.
1573 (gdbpy_initialize_events): Remove.
1574 (do_start_initialization): Update.
1575
22138db6
TT
15762019-11-26 Tom Tromey <tom@tromey.com>
1577
1578 * NEWS: Add entry.
1579 * maint.c (_initialize_maint_cmds): Add "worker-threads" maint
1580 commands. Call update_thread_pool_size.
1581 (update_thread_pool_size, maintenance_set_worker_threads): New
1582 functions.
1583 (n_worker_threads): New global.
1584
d55c9a68
TT
15852019-11-26 Christian Biesinger <cbiesinger@google.com>
1586 Tom Tromey <tom@tromey.com>
1587
1588 * minsyms.c (minimal_symbol_reader::install): Use
1589 parallel_for_each.
1590 * gdbsupport/parallel-for.h: New file.
1591 * Makefile.in (HFILES_NO_SRCDIR): Add gdbsupport/parallel-for.h.
1592
a0b57563
CB
15932019-11-26 Christian Biesinger <cbiesinger@google.com>
1594 Tom Tromey <tom@tromey.com>
1595
1596 * gdbsupport/thread-pool.h: New file.
1597 * gdbsupport/thread-pool.c: New file.
1598 * Makefile.in (COMMON_SFILES): Add thread-pool.c.
1599 (HFILES_NO_SRCDIR): Add thread-pool.h.
1600
3b3978bc
TT
16012019-11-26 Tom Tromey <tom@tromey.com>
1602
1603 * event-top.h (thread_local_segv_handler): Declare.
1604 * event-top.c (thread_local_segv_handler): New global.
1605 (install_handle_sigsegv, handle_sigsegv): New functions.
1606 (async_init_signals): Install SIGSEGV handler.
1607 * cp-support.c (gdb_demangle_jmp_buf): Change type. Now
1608 thread-local.
1609 (report_failed_demangle): New function.
1610 (gdb_demangle): Make core_dump_allowed atomic. Remove signal
1611 handler-setting code, instead use segv_handler. Run warning code
1612 on main thread.
1613
9411c49e
TT
16142019-11-26 Tom Tromey <tom@tromey.com>
1615
1616 * run-on-main-thread.c: New file.
1617 * run-on-main-thread.h: New file.
1618 * unittests/main-thread-selftests.c: New file.
1619 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1620 main-thread-selftests.c.
1621 (HFILES_NO_SRCDIR): Add run-on-main-thread.h.
1622 (COMMON_SFILES): Add run-on-main-thread.c.
1623
c3efb965
TT
16242019-11-26 Tom Tromey <tom@tromey.com>
1625
1626 * main.c (setup_alternate_signal_stack): Remove.
1627 (captured_main_1): Use gdb::alternate_signal_stack.
1628 * gdbsupport/alt-stack.h: New file.
1629
21987b9c
TT
16302019-11-26 Tom Tromey <tom@tromey.com>
1631
1632 * gdbsupport/signals-state-save-restore.c (original_signal_mask):
1633 Remove comment.
1634 (save_original_signals_state, restore_original_signals_state): Use
1635 gdb_sigmask.
1636 * linux-nat.c (block_child_signals, restore_child_signals_mask)
1637 (_initialize_linux_nat): Use gdb_sigmask.
1638 * guile/guile.c (_initialize_guile): Use block_signals.
1639 * Makefile.in (HFILES_NO_SRCDIR): Add gdb-sigmask.h.
1640 * gdbsupport/gdb-sigmask.h: New file.
1641 * event-top.c (async_sigtstp_handler): Use gdb_sigmask.
1642 * cp-support.c (gdb_demangle): Use gdb_sigmask.
1643 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for
1644 pthread_sigmask.
1645 * configure, config.in: Rebuild.
1646 * gdbsupport/block-signals.h: New file.
1647
5e030278
TT
16482019-11-26 Tom Tromey <tom@tromey.com>
1649
1650 * acinclude.m4: Include ax_pthread.m4.
1651 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
1652 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
1653 (CLIBS): Use PTHREAD_LIBS.
1654 (aclocal_m4_deps): Add ax_pthread.m4.
1655 * config.in, configure: Rebuild.
1656 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for std::thread.
1657
5a79c107
TT
16582019-11-26 Tom Tromey <tom@tromey.com>
1659
1660 * symtab.h (struct minimal_symbol) <name_set>: New member.
1661 * minsyms.c (minimal_symbol_reader::record_full): Copy name.
1662 Don't call symbol_set_names.
1663 (minimal_symbol_reader::install): Call symbol_set_names.
1664
aa369509
PW
16652019-11-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1666
1667 * python/python.c (gdbpy_enter::~gdbpy_enter): Release GIL after
1668 restore_active_ext_lang, as GIL is needed for (indirectly)
1669 called PyOS_InterruptOccurred.
1670
cadc9cb8
SM
16712019-11-26 Simon Marchi <simon.marchi@efficios.com>
1672
1673 * sparc-nat.c (sparc_xfer_wcookie): Sync declaration with
1674 definition.
1675
d04afd58
SM
16762019-11-26 Simon Marchi <simon.marchi@efficios.com>
1677
1678 * remote-sim.c (simulator_command): Make static, remove
1679 declaration.
1680
dd694d77
SM
16812019-11-26 Simon Marchi <simon.marchi@efficios.com>
1682
1683 * unittests/array-view-selftests.c (check_ptr_size_ctor2): Make
1684 static.
1685 * unittests/basic_string_view/capacity/1.cc (test01): Likewise.
1686 * unittests/basic_string_view/cons/char/1.cc (test01): Likewise.
1687 (main): Likewise.
1688 * unittests/basic_string_view/cons/char/2.cc (test03): Likewise.
1689 (main): Likewise.
1690 * unittests/basic_string_view/cons/char/3.cc (test05): Likewise.
1691 (main): Likewise.
1692 * unittests/basic_string_view/element_access/char/1.cc (test01):
1693 Likewise.
1694 (main): Likewise.
1695 * unittests/basic_string_view/element_access/char/empty.cc (main):
1696 Likewise.
1697 * unittests/basic_string_view/element_access/char/front_back.cc
1698 (test01): Likewise.
1699 (main): Likewise.
1700 * unittests/basic_string_view/inserters/char/2.cc (test05):
1701 Likewise.
1702 (main): Likewise.
1703 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc
1704 (test01): Likewise.
1705 (main): Likewise.
1706 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc
1707 (test01): Likewise.
1708 (main): Likewise.
1709 * unittests/basic_string_view/modifiers/swap/char/1.cc (test01):
1710 Likewise.
1711 * unittests/basic_string_view/operations/compare/char/1.cc
1712 (test01): Likewise.
1713 (main): Likewise.
1714 * unittests/basic_string_view/operations/compare/char/13650.cc
1715 (test01): Likewise.
1716 * unittests/basic_string_view/operations/copy/char/1.cc (test01):
1717 Likewise.
1718 (main): Likewise.
1719 * unittests/basic_string_view/operations/data/char/1.cc (test01):
1720 Likewise.
1721 (main): Likewise.
1722 * unittests/basic_string_view/operations/find/char/1.cc (test01):
1723 Likewise.
1724 (main): Likewise.
1725 * unittests/basic_string_view/operations/find/char/2.cc (test02):
1726 Likewise.
1727 (main): Likewise.
1728 * unittests/basic_string_view/operations/find/char/3.cc (test03):
1729 Likewise.
1730 (main): Likewise.
1731 * unittests/basic_string_view/operations/find/char/4.cc (main):
1732 Likewise.
1733 * unittests/basic_string_view/operations/rfind/char/1.cc (test01):
1734 Likewise.
1735 (main): Likewise.
1736 * unittests/basic_string_view/operations/rfind/char/2.cc (test02):
1737 Likewise.
1738 (main): Likewise.
1739 * unittests/basic_string_view/operations/rfind/char/3.cc (test03):
1740 Likewise.
1741 (main): Likewise.
1742 * unittests/basic_string_view/operations/substr/char/1.cc
1743 (test01): Likewise.
1744 (main): Likewise.
1745 * unittests/basic_string_view/operators/char/2.cc (main):
1746 Likewise.
1747 * unittests/optional/assignment/1.cc (test): Likewise.
1748 * unittests/optional/assignment/2.cc (test): Likewise.
1749 * unittests/optional/assignment/3.cc (test): Likewise.
1750 * unittests/optional/assignment/4.cc (test): Likewise.
1751 * unittests/optional/assignment/5.cc (test): Likewise.
1752 * unittests/optional/assignment/6.cc (test): Likewise.
1753 * unittests/optional/assignment/7.cc (test): Likewise.
1754 * unittests/optional/cons/copy.cc (test): Likewise.
1755 * unittests/optional/cons/default.cc (test): Likewise.
1756 * unittests/optional/cons/move.cc (test): Likewise.
1757 * unittests/optional/cons/value.cc (test): Likewise.
1758 * unittests/optional/in_place.cc (test): Likewise.
1759 * unittests/optional/observers/1.cc (test): Likewise.
1760 * unittests/optional/observers/2.cc (test): Likewise.
1761
3b5c1d49
SM
17622019-11-26 Simon Marchi <simon.marchi@efficios.com>
1763
1764 * tui-win.h (tui_set_var_cmd): Remove.
1765 * tui-win.c (tui_set_var_cmd): Make static.
1766
adce99fe
SM
17672019-11-26 Simon Marchi <simon.marchi@efficios.com>
1768
1769 * breakpoint.h (hbreak_command_wrapper, thbreak_command_wrapper,
1770 rbreak_command_wrapper): Remove.
1771 * symtab.c (rbreak_command_wrapper): Remove.
1772
fe3adccf
SM
17732019-11-26 Simon Marchi <simon.marchi@efficios.com>
1774
1775 * inferior.h (info_terminal_command): Remove declaration.
1776 * inflow.c (info_terminal_command): Make static.
1777
b926335f
SM
17782019-11-26 Simon Marchi <simon.marchi@efficios.com>
1779
1780 * inferior.c (exit_inferior_silent): Remove.
1781
b62f6f54
SM
17822019-11-26 Simon Marchi <simon.marchi@efficios.com>
1783
1784 * dictionary.c (dict_empty, mdict_empty): Remove.
1785 * dictionary.c (mdict_empty): Remove.
1786
cb8c24b6
SM
17872019-11-26 Simon Marchi <simon.marchi@efficios.com>
1788
1789 * arc-tdep.c (arc_insn_get_memory_base_reg): Make static.
1790 (arc_insn_get_memory_offset): Likewise.
1791 (arc_insn_dump): Likewise.
1792 * cp-support.c (test_cp_symbol_name_matches): Likewise.
1793 * csky-linux-tdep.c (csky_supply_fregset): Likewise.
1794 * dictionary.c (dict_iterator_next): Likewise.
1795 (dict_iter_match_first): Likewise.
1796 (dict_iter_match_next): Likewise.
1797 * f-lang.c (evaluate_subexp_f): Likewise.
1798 * hppa-tdep.c (hppa_read_pc): Likewise.
1799 * i386-tdep.c (i386_floatformat_for_type): Likewise.
1800 * parse.c (write_exp_elt_msym): Likewise.
1801 * ppc-linux-tdep.c (ppc_floatformat_for_type): Likewise.
1802 * remote.c (remote_packet_size): Likewise.
1803 (remote_notif_stop_parse): Likewise.
1804 * rs6000-aix-tdep.c (aix_sighandle_frame_sniffer): Likewise.
1805 * s12z-tdep.c (s12z_disassemble_info): Likewise.
1806 * source.c (prepare_path_for_appending): Likewise.
1807 * sparc64-linux-tdep.c
1808 (sparc64_linux_handle_segmentation_fault); Likewise.
1809 * stack.c (frame_selection_by_function_completer): Likewise.
1810
781597ff
SM
18112019-11-26 Simon Marchi <simon.marchi@efficios.com>
1812
1813 * completer.c (set_gdb_completion_word_break_characters):
1814 Remove.
1815
23baa4cc
SM
18162019-11-26 Simon Marchi <simon.marchi@efficios.com>
1817
1818 * dwarf-index-write.c: Include dwarf-index-write.h.
1819 * mi/mi-interp.c: Include mi/mi-interp.h.
1820
23767560
SM
18212019-11-26 Simon Marchi <simon.marchi@efficios.com>
1822
1823 * aarch32-tdep.c: Include aarch32-tdep.h.
1824 * aarch32-tdep.h: Forward-declare struct target_desc.
1825
6d91ce9a
CB
18262019-11-26 Christian Biesinger <cbiesinger@google.com>
1827
1828 * linux-nat.c (detach_one_lwp): Call safe_strerror instead of
1829 strerror.
1830 * nto-procfs.c (nto_procfs_target::create_inferior): Likewise.
1831 * windows-nat.c (windows_nat_target::create_inferior): Likewise.
1832
3cf2f237
TV
18332019-11-25 Tom de Vries <tdevries@suse.de>
1834
1835 * contrib/words.sh: Add -c option.
1836
5b89c67a
CB
18372019-11-25 Christian Biesinger <cbiesinger@google.com>
1838
1839 * solib.c (solib_find_1): Change int to bool.
1840 (exec_file_find): Change int to bool.
1841 (solib_find): Change int to bool.
1842 (solib_read_symbols): Change int to bool.
1843 (solib_used): Change int to bool.
1844 (solib_add): Change int to bool.
1845 (info_sharedlibrary_command): Change int to bool.
1846 (solib_contains_address_p): Change int to bool.
1847 (solib_keep_data_in_core): Change int to bool.
1848 (in_solib_dynsym_resolve_code): Change int to bool.
1849 (reload_shared_libraries_1): Change int to bool.
1850 (gdb_sysroot_changed): Change int to bool.
1851 * solib.h (solib_read_symbols): Change int to bool.
1852 (solib_contains_address_p): Change int to bool.
1853 (solib_keep_data_in_core): Change int to bool.
1854 (in_solib_dynsym_resolve_code): Change int to bool.
1855 (libpthread_name_p): Change int to bool.
1856
6cc8564b
LM
18572019-11-25 Luis Machado <luis.machado@linaro.org>
1858
1859 * NEWS (New Commands): Mention "set debug remote-packet-max-chars".
1860 * remote.c (REMOTE_DEBUG_MAX_CHAR): Remove.
1861 (remote_packet_max_chars): New static global.
1862 (show_remote_packet_max_chars): New function.
1863 (remote_target::putpkt_binary): Adjust to use new
1864 remote_packet_max_chars option.
1865 (remote_target::getpkt_or_notif_sane_1): Likewise.
1866 (_initialize_remote): Register new remote-packet-max-chars option.
1867
a7cdaa91
SM
18682019-11-24 Simon Marchi <simon.marchi@efficios.com>
1869
1870 * m68k-linux-nat.c: Include gdbarch.h.
1871
26abc753
TT
18722019-11-24 Tom Tromey <tom@tromey.com>
1873
1874 * symfile.c (read_symbols): Update.
1875 * psymtab.c (require_partial_symbols): Change type of "verbose" to
1876 bool.
1877 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
1878 (psym_lookup_symbol, psym_find_last_source_symtab)
1879 (psym_forget_cached_source_info, psym_print_stats)
1880 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
1881 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
1882 (psym_map_matching_symbols, psym_expand_symtabs_matching)
1883 (psym_find_compunit_symtab_by_address)
1884 (maintenance_print_psymbols, maintenance_info_psymtabs)
1885 (maintenance_check_psymtabs): Update.
1886 * psymtab.h (require_partial_symbols): Change type of "verbose" to
1887 bool.
1888
012fc909
TT
18892019-11-22 Tom Tromey <tom@tromey.com>
1890
1891 * observable.h: Update comments.
1892
c83d8d32
TT
18932019-11-22 Tom Tromey <tromey@adacore.com>
1894
1895 * ada-tasks.c (ada_task_is_alive): Make parameter const.
1896 (print_ada_task_info): Don't try to fetch thread id if task is not
1897 alive.
1898
987012b8
CB
18992019-11-22 Christian Biesinger <cbiesinger@google.com>
1900
1901 * ada-exp.y: Update.
1902 * ada-lang.c (sort_choices): Update.
1903 (ada_print_symbol_signature): Update.
1904 (resolve_subexp): Update.
1905 (ada_parse_renaming): Update.
1906 (ada_read_renaming_var_value): Update.
1907 (lesseq_defined_than): Update.
1908 (remove_extra_symbols): Update.
1909 (remove_irrelevant_renamings): Update.
1910 (ada_add_block_symbols): Update.
1911 (ada_collect_symbol_completion_matches): Update.
1912 (ada_is_renaming_symbol): Update.
1913 (aggregate_assign_from_choices): Update.
1914 (ada_evaluate_subexp): Update.
1915 (ada_has_this_exception_support): Update.
1916 (ada_is_non_standard_exception_sym): Update.
1917 (ada_add_exceptions_from_frame): Update.
1918 (ada_add_global_exceptions): Update.
1919 (ada_print_subexp): Update.
1920 * ax-gdb.c (gen_var_ref): Update.
1921 (gen_maybe_namespace_elt): Update.
1922 (gen_expr_for_cast): Update.
1923 (gen_expr): Update.
1924 * block.h: Update.
1925 * blockframe.c (find_pc_partial_function): Update.
1926 * breakpoint.c (print_breakpoint_location): Update.
1927 (update_static_tracepoint): Update.
1928 * btrace.c (ftrace_print_function_name): Update.
1929 (ftrace_function_switched): Update.
1930 * buildsym.c (find_symbol_in_list): Update.
1931 * c-exp.y: Update.
1932 * c-typeprint.c (c_print_typedef): Update.
1933 (c_type_print_template_args): Update.
1934 * cli/cli-cmds.c (edit_command): Update.
1935 (list_command): Update.
1936 (print_sal_location): Update.
1937 * coffread.c (patch_opaque_types): Update.
1938 (process_coff_symbol): Update.
1939 (coff_read_enum_type): Update.
1940 * compile/compile-c-symbols.c (c_symbol_substitution_name): Update.
1941 (convert_one_symbol): Update.
1942 (hash_symname): Update.
1943 (eq_symname): Update.
1944 * compile/compile-cplus-symbols.c (convert_one_symbol): Update.
1945 * compile/compile-cplus-types.c (debug_print_scope): Update.
1946 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
1947 * compile/compile-object-load.c (get_out_value_type): Update.
1948 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
1949 (search_symbol_list): Update.
1950 (cp_lookup_symbol_imports_or_template): Update.
1951 * cp-support.c (overload_list_add_symbol): Update.
1952 * ctfread.c (psymtab_to_symtab): Update.
1953 * dbxread.c (cp_set_block_scope): Update.
1954 * dictionary.c (iter_match_first_hashed): Update.
1955 (iter_match_next_hashed): Update.
1956 (insert_symbol_hashed): Update.
1957 (iter_match_next_linear): Update.
1958 * dictionary.h: Update.
1959 * dwarf2loc.c (func_get_frame_base_dwarf_block): Update.
1960 (locexpr_describe_location_piece): Update.
1961 (locexpr_describe_location_1): Update.
1962 (locexpr_generate_c_location): Update.
1963 (loclist_describe_location): Update.
1964 (loclist_generate_c_location): Update.
1965 * dwarf2read.c (dw2_debug_names_lookup_symbol): Update.
1966 (read_func_scope): Update.
1967 (process_enumeration_scope): Update.
1968 (new_symbol): Update.
1969 (dwarf2_const_value): Update.
1970 (dwarf2_symbol_mark_computed): Update.
1971 * eval.c (evaluate_funcall): Update.
1972 (evaluate_subexp_standard): Update.
1973 * expprint.c (print_subexp_standard): Update.
1974 (dump_subexp_body_standard): Update.
1975 * f-valprint.c (info_common_command_for_block): Update.
1976 * findvar.c (get_hosting_frame): Update.
1977 (default_read_var_value): Update.
1978 * go-lang.c (go_symbol_package_name): Update.
1979 * guile/scm-block.c (bkscm_print_block_smob): Update.
1980 * guile/scm-symbol.c (syscm_print_symbol_smob): Update.
1981 (gdbscm_symbol_name): Update.
1982 (gdbscm_symbol_linkage_name): Update.
1983 (gdbscm_symbol_print_name): Update.
1984 * infcall.c (get_function_name): Update.
1985 * infcmd.c (jump_command): Update.
1986 (finish_command): Update.
1987 * infrun.c (insert_exception_resume_breakpoint): Update.
1988 * linespec.c (canonicalize_linespec): Update.
1989 (create_sals_line_offset): Update.
1990 (convert_linespec_to_sals): Update.
1991 (complete_label): Update.
1992 (find_label_symbols_in_block): Update.
1993 * m2-typeprint.c (m2_print_typedef): Update.
1994 * mdebugread.c (mdebug_reg_to_regnum): Update.
1995 (parse_symbol): Update.
1996 (mylookup_symbol): Update.
1997 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
1998 (list_args_or_locals): Update.
1999 * objc-lang.c (compare_selectors): Update.
2000 (info_selectors_command): Update.
2001 (compare_classes): Update.
2002 (info_classes_command): Update.
2003 (find_imps): Update.
2004 * p-typeprint.c (pascal_print_typedef): Update.
2005 * printcmd.c (build_address_symbolic): Update.
2006 (info_address_command): Update.
2007 (print_variable_and_value): Update.
2008 * python/py-framefilter.c (extract_sym): Update.
2009 (py_print_single_arg): Update.
2010 * python/py-symbol.c (sympy_str): Update.
2011 (sympy_get_name): Update.
2012 (sympy_get_linkage_name): Update.
2013 * python/python.c (gdbpy_rbreak): Update.
2014 * record-btrace.c (btrace_get_bfun_name): Update.
2015 (btrace_call_history): Update.
2016 * rust-lang.c (rust_print_typedef): Update.
2017 * solib-frv.c (frv_fdpic_find_canonical_descriptor): Update.
2018 * stabsread.c (stab_reg_to_regnum): Update.
2019 (define_symbol): Update.
2020 (read_enum_type): Update.
2021 (common_block_end): Update.
2022 (cleanup_undefined_types_1): Update.
2023 (scan_file_globals): Update.
2024 * stack.c (print_frame_arg): Update.
2025 (print_frame_args): Update.
2026 (find_frame_funname): Update.
2027 (info_frame_command_core): Update.
2028 (iterate_over_block_locals): Update.
2029 (print_block_frame_labels): Update.
2030 (do_print_variable_and_value): Update.
2031 (iterate_over_block_arg_vars): Update.
2032 (return_command): Update.
2033 * symmisc.c (dump_symtab_1): Update.
2034 (print_symbol): Update.
2035 * symtab.c (eq_symbol_entry): Update.
2036 (symbol_cache_dump): Update.
2037 (lookup_language_this): Update.
2038 (find_pc_sect_line): Update.
2039 (skip_prologue_sal): Update.
2040 (symbol_search::compare_search_syms): Update.
2041 (treg_matches_sym_type_name): Update.
2042 (search_symbols): Update.
2043 (print_symbol_info): Update.
2044 (rbreak_command): Update.
2045 (completion_list_add_symbol): Update.
2046 (find_gnu_ifunc): Update.
2047 (get_symbol_address): Update.
2048 (search_module_symbols): Update.
2049 (info_module_subcommand): Update.
2050 * symtab.h (SYMBOL_NATURAL_NAME): Remove.
2051 (SYMBOL_LINKAGE_NAME): Remove.
2052 (SYMBOL_DEMANGLED_NAME): Remove.
2053 (SYMBOL_PRINT_NAME): Remove.
2054 (SYMBOL_SEARCH_NAME): Remove.
2055 * tracepoint.c (set_traceframe_context): Update.
2056 (validate_actionline): Update.
2057 (collection_list::collect_symbol): Update.
2058 (encode_actions_1): Update.
2059 (info_scope_command): Update.
2060 (print_one_static_tracepoint_marker): Update.
2061 * typeprint.c (typedef_hash_table::add_template_parameters): Update.
2062 * valops.c (address_of_variable): Update.
2063 (find_overload_match): Update.
2064 (find_oload_champ): Update.
2065
c9d95fa3
CB
20662019-11-22 Christian Biesinger <cbiesinger@google.com>
2067
2068 * ada-lang.c (ada_lookup_simple_minsym): Update.
2069 (ada_collect_symbol_completion_matches): Update.
2070 * ada-tasks.c (read_atcb): Update.
2071 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
2072 (amd64_windows_skip_trampoline_code): Update.
2073 * arm-tdep.c (skip_prologue_function): Update.
2074 (arm_skip_stack_protector): Update.
2075 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
2076 (arm_wince_skip_main_prologue): Update.
2077 * ax-gdb.c (gen_expr): Update.
2078 * block.c (call_site_for_pc): Update.
2079 * blockframe.c (find_pc_partial_function): Update.
2080 * breakpoint.c (set_breakpoint_location_function): Update.
2081 * btrace.c (ftrace_print_function_name): Update.
2082 (ftrace_function_switched): Update.
2083 * c-valprint.c (print_unpacked_pointer): Update.
2084 * coffread.c (coff_symfile_read): Update.
2085 * compile/compile-c-symbols.c (convert_symbol_bmsym): Update.
2086 * compile/compile-cplus-symbols.c (convert_symbol_bmsym): Update.
2087 * dwarf-index-write.c (write_psymbols): Update.
2088 * dwarf2loc.c (call_site_to_target_addr): Update.
2089 (func_verify_no_selftailcall): Update.
2090 (tailcall_dump): Update.
2091 (call_site_find_chain_1): Update.
2092 (dwarf_expr_reg_to_entry_parameter): Update.
2093 * elfread.c (elf_gnu_ifunc_record_cache): Update.
2094 * eval.c (evaluate_funcall): Update.
2095 (evaluate_subexp_standard): Update.
2096 (evaluate_subexp_for_sizeof): Update.
2097 * expprint.c (print_subexp_standard): Update.
2098 (dump_subexp_body_standard): Update.
2099 * frame.c (get_prev_frame_always_1): Update.
2100 * frv-tdep.c (frv_skip_main_prologue): Update.
2101 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
2102 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
2103 (gnuv3_get_typename_from_type_info): Update.
2104 (gnuv3_skip_trampoline): Update.
2105 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
2106 * i386-tdep.c (i386_skip_main_prologue): Update.
2107 (i386_pe_skip_trampoline_code): Update.
2108 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
2109 * infcall.c (get_function_name): Update.
2110 * linespec.c (minsym_found): Update.
2111 * linux-fork.c (info_checkpoints_command): Update.
2112 * m32c-tdep.c (m32c_m16c_address_to_pointer): Update.
2113 (m32c_m16c_pointer_to_address): Update.
2114 * maint.c (maintenance_translate_address): Update.
2115 * minsyms.c (add_minsym_to_hash_table): Update.
2116 (add_minsym_to_demangled_hash_table): Update.
2117 (lookup_minimal_symbol_mangled): Update.
2118 (lookup_minimal_symbol_demangled): Update.
2119 (lookup_minimal_symbol_linkage): Update.
2120 (lookup_minimal_symbol_text): Update.
2121 (lookup_minimal_symbol_by_pc_name): Update.
2122 (minimal_symbol_is_less_than): Update.
2123 (compact_minimal_symbols): Update.
2124 (build_minimal_symbol_hash_tables): Update.
2125 (find_solib_trampoline_target): Update.
2126 * mips-tdep.c (mips_stub_frame_sniffer): Update.
2127 (mips_skip_pic_trampoline_code): Update.
2128 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
2129 * objc-lang.c (info_selectors_command): Update.
2130 (info_classes_command): Update.
2131 (find_methods): Update.
2132 (find_imps): Update.
2133 * p-valprint.c (pascal_val_print): Update.
2134 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Update.
2135 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
2136 * printcmd.c (build_address_symbolic): Update.
2137 (info_symbol_command): Update.
2138 * psymtab.c (psymbol_name_matches): Update.
2139 (match_partial_symbol): Update.
2140 (lookup_partial_symbol): Update.
2141 (print_partial_symbols): Update.
2142 (sort_pst_symbols): Update.
2143 (maintenance_check_psymtabs): Update.
2144 * python/py-framefilter.c (py_print_frame): Update.
2145 * python/python.c (gdbpy_rbreak): Update.
2146 * record-btrace.c (btrace_get_bfun_name): Update.
2147 (btrace_call_history): Update.
2148 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
2149 (rs6000_skip_trampoline_code): Update.
2150 * sol-thread.c (info_cb): Update.
2151 * stabsread.c (scan_file_globals): Update.
2152 * stack.c (find_frame_funname): Update.
2153 (info_frame_command_core): Update.
2154 * symmisc.c (dump_msymbols): Update.
2155 * symtab.c (symbol_natural_name): Rename to..,
2156 (general_symbol_info::natural_name): ...this.
2157 (symbol_demangled_name): Rename to...
2158 (general_symbol_info::demangled_name): ...this.
2159 (symbol_search_name): Rename to...
2160 (general_symbol_info::search_name): ...this.
2161 (symbol_matches_search_name): Update.
2162 (find_pc_sect_line): Update.
2163 (skip_prologue_sal): Update.
2164 (search_symbols): Update.
2165 (print_msymbol_info): Update.
2166 (rbreak_command): Update.
2167 (completion_list_add_msymbol): Update.
2168 (completion_list_objc_symbol): Update.
2169 (get_msymbol_address): Update.
2170 * symtab.h (struct general_symbol_info): Add member functions
2171 natural_name (), linkage_name (), print_name (), demangled_name (),
2172 and search_name ().
2173 (SYMBOL_NATURAL_NAME): Update.
2174 (symbol_natural_name): Move to a member function on general_symbol_info.
2175 (SYMBOL_DEMANGLED_NAME): Update.
2176 (symbol_demangled_name): Move to a member function on
2177 general_symbol_info.
2178 (SYMBOL_SEARCH_NAME): Update.
2179 (symbol_search_name): Move to a member function on general_symbol_info.
2180 (MSYMBOL_NATURAL_NAME): Remove.
2181 (MSYMBOL_LINKAGE_NAME): Remove.
2182 (MSYMBOL_PRINT_NAME): Remove.
2183 (MSYMBOL_DEMANGLED_NAME): Remove.
2184 (MSYMBOL_SEARCH_NAME): Remove.
2185 * x86-tdep.c (x86_in_indirect_branch_thunk): Update.
2186
f8bab2d6
CB
21872019-11-22 Christian Biesinger <cbiesinger@google.com>
2188
2189 * symtab.c (create_demangled_names_hash): Use per_bfd->
2190 minimal_symbol_count for computing the initial size, if greater
2191 than our default size.
2192
85e7588d
TV
21932019-11-22 Tom de Vries <tdevries@suse.de>
2194
2195 * contrib/words.sh: Improve words extraction.
2196
f6180073
TV
21972019-11-22 Tom de Vries <tdevries@suse.de>
2198
2199 * contrib/words.sh: Combine sed invocations.
2200
f10ffa41
CB
22012019-11-21 Christian Biesinger <cbiesinger@google.com>
2202
2203 * Makefile.in: Update.
2204 * demangle.c: Rename to...
2205 * gdb-demangle.c: ..this.
2206 (is_cplus_marker): Change return type to bool.
2207 (_initialize_demangler): Rename to...
2208 (_initialize_gdb_demangle): ...this.
2209 * gdb-demangle.h (is_cplus_marker): Change return type to bool.
2210 * symtab.h (demangle): Remove declaration; instead include
2211 gdb-demangle.h.
2212
6ba18521
TT
22132019-11-21 Tom Tromey <tromey@adacore.com>
2214
2215 * gdbsupport/format.c (format_pieces): Parse %I64d.
2216 * unittests/format_pieces-selftests.c (test_windows_formats): New
2217 function.
2218 (run_tests): Call it.
2219
34877895
PJ
22202019-11-21 Peeter Joot <peeter.joot@lzlabs.com>
2221
2222 Byte reverse display of variables with DW_END_big, DW_END_little
2223 (DW_AT_endianity) dwarf attributes if different than the native
2224 byte order.
2225 * ada-lang.c (ada_value_binop):
2226 Use type_byte_order instead of gdbarch_byte_order.
2227 * ada-valprint.c (printstr):
2228 (ada_val_print_string):
2229 * ada-lang.c (value_pointer):
2230 (ada_value_binop):
2231 Use type_byte_order instead of gdbarch_byte_order.
2232 * c-lang.c (c_get_string):
2233 Use type_byte_order instead of gdbarch_byte_order.
2234 * c-valprint.c (c_val_print_array):
2235 Use type_byte_order instead of gdbarch_byte_order.
2236 * cp-valprint.c (cp_print_class_member):
2237 Use type_byte_order instead of gdbarch_byte_order.
2238 * dwarf2loc.c (rw_pieced_value):
2239 Use type_byte_order instead of gdbarch_byte_order.
2240 * dwarf2read.c (read_base_type): Handle DW_END_big,
2241 DW_END_little
2242 * f-lang.c (f_get_encoding):
2243 Use type_byte_order instead of gdbarch_byte_order.
2244 * findvar.c (default_read_var_value):
2245 Use type_byte_order instead of gdbarch_byte_order.
2246 * gdbtypes.c (check_types_equal):
2247 Require matching TYPE_ENDIANITY_NOT_DEFAULT if set.
2248 (recursive_dump_type): Print TYPE_ENDIANITY_BIG,
2249 and TYPE_ENDIANITY_LITTLE if set.
2250 (type_byte_order): new function.
2251 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): New macro.
2252 (struct main_type) <flag_endianity_not_default>:
2253 New field.
2254 (type_byte_order): New function.
2255 * infcmd.c (default_print_one_register_info):
2256 Use type_byte_order instead of gdbarch_byte_order.
2257 * p-lang.c (pascal_printstr):
2258 Use type_byte_order instead of gdbarch_byte_order.
2259 * p-valprint.c (pascal_val_print):
2260 Use type_byte_order instead of gdbarch_byte_order.
2261 * printcmd.c (print_scalar_formatted):
2262 Use type_byte_order instead of gdbarch_byte_order.
2263 * solib-darwin.c (darwin_current_sos):
2264 Use type_byte_order instead of gdbarch_byte_order.
2265 * solib-svr4.c (solib_svr4_r_ldsomap):
2266 Use type_byte_order instead of gdbarch_byte_order.
2267 * stap-probe.c (stap_modify_semaphore):
2268 Use type_byte_order instead of gdbarch_byte_order.
2269 * target-float.c (target_float_same_format_p):
2270 Use type_byte_order instead of gdbarch_byte_order.
2271 * valarith.c (scalar_binop):
2272 (value_bit_index):
2273 Use type_byte_order instead of gdbarch_byte_order.
2274 * valops.c (value_cast):
2275 Use type_byte_order instead of gdbarch_byte_order.
2276 * valprint.c (generic_emit_char):
2277 (generic_printstr):
2278 (val_print_string):
2279 Use type_byte_order instead of gdbarch_byte_order.
2280 * value.c (unpack_long):
2281 (unpack_bits_as_long):
2282 (unpack_value_bitfield):
2283 (modify_field):
2284 (pack_long):
2285 (pack_unsigned_long):
2286 Use type_byte_order instead of gdbarch_byte_order.
2287 * findvar.c (unsigned_pointer_to_address):
2288 (signed_pointer_to_address):
2289 (unsigned_address_to_pointer):
2290 (address_to_signed_pointer):
2291 (default_read_var_value):
2292 (default_value_from_register):
2293 Use type_byte_order instead of gdbarch_byte_order.
2294 * gnu-v3-abi.c (gnuv3_make_method_ptr):
2295 Use type_byte_order instead of gdbarch_byte_order.
2296 * riscv-tdep.c (riscv_print_one_register_info):
2297 Use type_byte_order instead of gdbarch_byte_order.
2298
87fb00ea
SM
22992019-11-21 Simon Marchi <simon.marchi@polymtl.ca>
2300
2301 * top.c (current_ui_gdb_stdout_ptr): Spell out by hand.
2302 (current_ui_gdb_stdin_ptr): Likewise.
2303 (current_ui_gdb_stderr_ptr): Likewise.
2304 (current_ui_gdb_stdlog_ptr): Likewise.
2305 (current_ui_current_uiout_ptr): Likewise.
2306 (gen_ret_current_ui_field_ptr): Remove.
2307
65d1cd5f
TV
23082019-11-21 Tom de Vries <tdevries@suse.de>
2309
2310 PR gdb/24956
2311 * cli/cli-script.c (execute_control_command): Only switch to
2312 INTERP_CONSOLE's ui_out when INTERP_MI is active.
2313
9f6ad286
TT
23142019-11-19 Tom Tromey <tom@tromey.com>
2315
2316 * tui/tui-win.c (tui_partial_win_by_name): Move from tui-data.c.
2317 Now static. Change type of "name".
2318 (tui_set_win_height_command): Don't copy "arg".
2319 * tui/tui-data.h (tui_partial_win_by_name): Don't declare.
2320 * tui/tui-data.c (tui_partial_win_by_name): Move to tui-win.c.
2321
435d3d88
AT
23222019-11-19 Ali Tamur <tamur@google.com>
2323
2324 * dwarf2read.c (dw2_get_file_names_reader): Replace "if (attr)" with
2325 "if (attr != nullptr)".
2326 (dwarf2_find_base_address): Likewise.
2327 (dwarf2_build_include_psymtabs): Likewise.
2328 (read_cutu_die_from_dwo): Likewise.
2329 (read_func_scope): Likewise.
2330 (read_call_site_scope): Likewise.
2331 (dwarf2_get_pc_bounds): Likewise.
2332 (dwarf2_record_block_ranges): Likewise.
2333 (dwarf2_add_field): Likewise.
2334 (dwarf2_add_member_fn): Likewise.
2335 (read_structure_type): Likewise.
2336 (read_enumeration_type): Likewise.
2337 (read_array_type): Likewise.
2338 (read_array_order): Likewise.
2339 (read_set_type): Likewise.
2340 (read_common_block): Likewise.
2341 (read_tag_reference_type): Likewise.
2342 (read_tag_string_type): Likewise.
2343 (read_subroutine_type): Likewise.
2344 (read_base_type): Likewise.
2345 (read_subrange_type): Likewise.
2346 (new_symbol): Likewise.
2347 (prepare_one_comp_unit): Likewise.
2348
c9739b6a
TT
23492019-11-19 Tom Tromey <tromey@adacore.com>
2350
2351 * windows-nat.c (windows_nat_target::attach): Include GetLastError
2352 result in error when DebugActiveProcess fails.
2353
494409bb
SDJ
23542019-11-18 Sergio Durigan Junior <sergiodj@redhat.com>
2355 Pedro Alves <palves@redhat.com>
2356
2357 https://bugzilla.redhat.com/show_bug.cgi?id=1765117
2358 * target.c (target_stack::push): Call 'unpush' if there's a
2359 target on top of the stack.
2360
2e953aca
PW
23612019-11-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2362
2363 * python/py-block.c (blpy_dealloc): Call tp_free.
2364 (blpy_block_syms_dealloc): Likewise.
2365 * python/py-finishbreakpoint.c (bpfinishpy_dealloc): Likewise.
2366 * python/py-inferior.c (infpy_dealloc): Likewise.
2367 * python/py-lazy-string.c (stpy_dealloc): Likewise.
2368 * python/py-linetable.c (ltpy_iterator_dealloc): Likewise.
2369 * python/py-symbol.c (sympy_dealloc): Likewise.
2370 * python/py-symtab.c (stpy_dealloc): Likewise.
2371 * python/py-type.c (typy_iterator_dealloc): Likewise.
2372
6edc43ec
CB
23732019-11-18 Christian Biesinger <cbiesinger@google.com>
2374
2375 * symtab.h (struct symbol) <owner>: Initialize explicitly in the
2376 constructor instead of using a class initializer.
2377
cd850b40
CB
23782019-11-15 Christian Biesinger <cbiesinger@google.com>
2379
2380 * Makefile.in: Replace {posix,mingw}-strerror.c with safe-strerror.c.
2381 * configure: Regenerate.
2382 * configure.ac: Don't source common.host.
2383 * gdbsupport/common.host: Remove.
2384 * gdbsupport/mingw-strerror.c: Remove.
2385 * gdbsupport/posix-strerror.c: Rename to...
2386 * gdbsupport/safe-strerror.c: ...this.
2387
53fea9c7
CB
23882019-11-15 Christian Biesinger <cbiesinger@google.com>
2389
2390 * maint.c (scoped_command_stats::print_time): Use localtime_r
2391 instead of localtime (provided through gnulib if necessary).
2392 * nat/linux-osdata.c (time_from_time_t): Use ctime_r instead
2393 of ctime.
2394
f8e27d88
CB
23952019-11-15 Christian Biesinger <cbiesinger@google.com>
2396
2397 * gdbsupport/common-defs.h: Include time.h before pathmax.h to
2398 avoid compile errors.
2399
5abebf3c
CB
24002019-11-15 Christian Biesinger <cbiesinger@google.com>
2401
2402 * config.in: Regenerate.
2403 * configure: Regenerate.
2404 * gdbsupport/common.m4: No longer check for strerror_r.
2405 * gdbsupport/posix-strerror.c (safe_strerror): Always call the
2406 POSIX version of strerror_r, now that gnulib provides it if
2407 necessary.
2408
9a351667
CB
24092019-11-14 Christian Biesinger <cbiesinger@google.com>
2410
2411 * README (`configure' options): Update.
2412
55708e99
TT
24132019-11-14 Tom Tromey <tromey@adacore.com>
2414
2415 * eval.c (evaluate_subexp_standard) <BINOP_ASSIGN>: Do not pass an
2416 expected type for the RHS if the LHS is a convenience variable.
2417
4b09bb2e
SM
24182019-11-14 Simon Marchi <simon.marchi@polymtl.ca>
2419
2420 * unittests/vec-utils-selftests.c (unordered_remove_tests::obj):
2421 Provide explicit default and copy constructor.
2422
bd454f8b
PW
24232019-11-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2424
2425 * python/py-finishbreakpoint.c (gdbpy_breakpoint_created):
2426 only call Py_INCREF (newbp) in the bppy_pending_object case.
2427
d1aa3cf0
TT
24282019-11-13 Tom Tromey <tromey@adacore.com>
2429
2430 PR build/25182:
2431 * psympriv.h (partial_symbol): Remove static assert.
2432 * symtab.h (general_symbol_info, symbol): Remove static assert.
2433
e06f3d6e
AB
24342019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
2435
2436 * gdbsupport/format.c (format_pieces::format_pieces): Support
2437 printf 'z' size modifier.
2438 * gdbsupport/format.h (enum argclass): Add size_t_arg.
2439 * printcmd.c (ui_printf): Handle size_t_arg.
2440 * ui-out.c (ui_out::vmessage): Likewise.
2441 * unittests/format_pieces-selftests.c (test_format_int_sizes): New
2442 function.
2443 (run_tests): Call test_format_int_sizes.
2444
468c0cbb
CB
24452019-11-12 Christian Biesinger <cbiesinger@google.com>
2446
2447 * ada-exp.y (write_ambiguous_var): Update.
2448 * buildsym.c (add_symbol_to_list): Update.
2449 * dwarf2read.c (read_variable): Update.
2450 (new_symbol): Update.
2451 * jit.c (finalize_symtab): Update.
2452 * language.c (language_alloc_type_symbol): Update.
2453 * symtab.c (fixup_symbol_section): Update.
2454 (initialize_objfile_symbol_1): Move code to...
2455 (initialize_objfile_symbol): ...here. Remove now-unnecessary memset.
2456 (allocate_symbol): Update.
2457 (allocate_template_symbol): Update.
2458 (get_symbol_address): Update.
2459 * symtab.h (struct symbol): Inherit from general_symbol_info instead
2460 of having as a field, and add a constructor.
2461 (SYMBOL_VALUE): Update.
2462 (SYMBOL_VALUE_ADDRESS): Update.
2463 (SET_SYMBOL_VALUE_ADDRESS): Update.
2464 (SYMBOL_VALUE_BYTES): Update.
2465 (SYMBOL_VALUE_COMMON_BLOCK): Update.
2466 (SYMBOL_BLOCK_VALUE): Update.
2467 (SYMBOL_VALUE_CHAIN): Update.
2468 (SYMBOL_LANGUAGE): Update.
2469 (SYMBOL_SECTION): Update.
2470 (SYMBOL_OBJ_SECTION): Update.
2471 (SYMBOL_SET_LANGUAGE): Update.
2472 (SYMBOL_SET_LINKAGE_NAME): Update.
2473 (SYMBOL_SET_NAMES): Update.
2474 (SYMBOL_NATURAL_NAME): Update.
2475 (SYMBOL_LINKAGE_NAME): Update.
2476 (SYMBOL_DEMANGLED_NAME): Update.
2477 (SYMBOL_SEARCH_NAME): Update.
2478 (SYMBOL_MATCHES_SEARCH_NAME): Update.
2479 (struct symbol): Update.
2480 (struct template_symbol): Update.
2481 (struct rust_vtable_symbol): Update.
2482 * xcoffread.c (SYMBOL_DUP): Update.
2483
ed2c82c3
TT
24842019-11-12 Tom Tromey <tom@tromey.com>
2485
2486 * tui/tui-layout.c (show_layout): Set current_layout.
2487 (show_source_disasm_command, show_data)
2488 (show_source_or_disasm_and_command): Don't set current_layout.
2489
d9fcefd5
TT
24902019-11-12 Tom Tromey <tom@tromey.com>
2491
2492 * tui/tui-layout.c (_initialize_tui_layout): Move to end.
2493
45e42163
TT
24942019-11-12 Tom Tromey <tom@tromey.com>
2495
2496 * tui/tui-win.c (resize_message): New global.
2497 (show_tui_resize_message): New function.
2498 (tui_async_resize_screen): Print message if requested.
2499 (_initialize_tui_win): Add tui-resize-message setting.
2500 * NEWS: Add entry for new commands.
2501
c86d74cc
TT
25022019-11-11 Tom Tromey <tom@tromey.com>
2503
2504 * tui/tui.c (tui_initialize_readline): Add new bindable readline
2505 functions.
2506
7b7b9424
CB
25072019-11-11 Christian Biesinger <cbiesinger@google.com>
2508
2509 * nat/linux-osdata.c (user_from_uid): Use getpwuid_r.
2510
086baaf1
AB
25112019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
2512
2513 * python/py-symbol.c (gdbpy_lookup_static_symbols): New
2514 function.
2515 * python/python-internal.h (gdbpy_lookup_static_symbols):
2516 Declare new function.
2517 * python/python.c (python_GdbMethods): Add
2518 gdb.lookup_static_symbols method.
2519 * NEWS: Mention gdb.lookup_static_symbols.
2520
09ff83af
AB
25212019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
2522
2523 * python/py-symbol.c (gdbpy_lookup_static_symbol): Lookup in
2524 static block of current object file first. Also fix typo in
2525 header comment.
2526
eb2dd8df
AB
25272019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
2528
2529 * stack.c (set_last_displayed_sal): Delete.
2530 (last_displayed_sal_valid): Delete.
2531 (last_displayed_pspace): Delete.
2532 (last_displayed_addr): Delete.
2533 (last_displayed_symtab): Delete.
2534 (last_displayed_line): Delete.
2535 (class last_displayed_symtab_info_type): New.
2536 (last_displayed_symtab_info): New static global variable.
2537 (print_frame_info): Call methods on last_displayed_symtab_info.
2538 (clear_last_displayed_sal): Update header comment, and make use of
2539 last_displayed_symtab_info.
2540 (last_displayed_sal_is_valid): Likewise.
2541 (get_last_displayed_pspace): Likewise.
2542 (get_last_displayed_addr): Likewise.
2543 (get_last_displayed_symtab): Likewise.
2544 (get_last_displayed_line): Likewise.
2545 (get_last_displayed_sal): Likewise.
2546 * stack.h (clear_last_displayed_sal): Update header comment.
2547 (last_displayed_sal_is_valid): Likewise.
2548 (get_last_displayed_pspace): Likewise.
2549 (get_last_displayed_addr): Likewise.
2550 (get_last_displayed_symtab): Likewise.
2551 (get_last_displayed_line): Likewise.
2552 (get_last_displayed_sal): Likewise.
2553
62137775
AB
25542019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
2555
2556 * stack.c (frame_show_address): Convert return type to bool.
2557 * stack.h (frame_show_address): Likewise, and update header
2558 comment.
2559
cf57ad6d
AB
25602019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
2561
2562 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new file to the list.
2563 * unittests/vec-utils-selftests.c: New file.
2564 * gdbsupport/gdb_vecs.h (unordered_remove): Avoid self move assign.
2565
0b026263
TT
25662019-11-10 Tom Tromey <tom@tromey.com>
2567
2568 * tui/tui-wingeneral.c (tui_unhighlight_win): Use can_box.
2569 (tui_highlight_win): Likewise.
2570 (tui_win_info::check_and_display_highlight_if_needed): Likewise.
2571 * tui/tui-data.h (struct tui_win_info) <can_highlight>: Remove.
2572 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
2573 Don't set can_highlight.
2574
b049ce2d
TT
25752019-11-10 Tom Tromey <tom@tromey.com>
2576
2577 * cli/cli-style.h (class cli_style_option) <cli_style_option>:
2578 Remove unused declaration.
2579
992a7040
TT
25802019-11-08 Tom Tromey <tromey@adacore.com>
2581
2582 * top.c (read_command_file): Update.
2583 (command_line_input): Make return type const.
2584 * python/py-gdb-readline.c: Update.
2585 * linespec.c (decode_line_2): Update.
2586 * defs.h (command_line_input): Make return type const.
2587 * cli/cli-script.c (read_next_line): Make return type const.
2588 * ada-lang.c (get_selections): Update.
2589
ca3a04f6
CB
25902019-11-06 Christian Biesinger <cbiesinger@google.com>
2591
2592 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
2593 * mi/mi-main.c (output_cores): Likewise.
2594 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
2595 (linux_xfer_osdata_modules): Likewise.
2596 * remote.c (register_remote_support_xml): Likewise.
2597 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
2598 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
2599
e0eac551
TT
26002019-11-06 Tom Tromey <tom@tromey.com>
2601
2602 * tui/tui-interp.c: Don't include readline.h.
2603 * tui/tui-hooks.c: Don't include readline.h.
2604 * symmisc.c: Include tilde.h, not readline.h.
2605 * symfile.c: Include tilde.h, not readline.h.
2606 * source.c: Include tilde.h, not readline.h.
2607 * solib.c: Include tilde.h, not readline.h.
2608 * psymtab.c: Include tilde.h, not readline.h.
2609 * exec.c: Include tilde.h, not readline.h.
2610 * corelow.c: Include tilde.h, not readline.h.
2611 * cli/cli-dump.c: Include tilde.h, not readline.h.
2612 * cli/cli-cmds.c: Don't include readline.h.
2613
825165c5
TT
26142019-11-05 Tom Tromey <tom@tromey.com>
2615
2616 * tui/tui-disasm.c (struct tui_asm_line) <addr_size>: New member.
2617 (tui_disassemble): Set addr_size.
2618 (tui_disasm_window::set_contents): Use addr_size.
2619
91ae903f
TT
26202019-11-05 Tom Tromey <tom@tromey.com>
2621
2622 * rust-lang.c (rust_language_defn): Update.
2623 * python/py-value.c (valpy_string): Call c_get_string.
2624 * p-lang.c (pascal_language_defn): Update.
2625 * opencl-lang.c (opencl_language_defn): Update.
2626 * objc-lang.c (objc_language_defn): Update.
2627 * m2-lang.c (m2_language_defn): Update.
2628 * language.c (unknown_language_defn, auto_language_defn): Update.
2629 (default_get_string): Remove.
2630 * guile/scm-value.c (gdbscm_value_to_string): Use c_get_string.
2631 * go-lang.c (go_language_defn): Update.
2632 * f-lang.c (f_language_defn): Update.
2633 * d-lang.c (d_language_defn): Update.
2634 * c-lang.c (c_language_defn, cplus_language_defn)
2635 (asm_language_defn, minimal_language_defn): Update.
2636 * ada-lang.c (ada_language_defn): Update.
2637 * language.h (struct language_defn) <la_get_string>: Remove.
2638 (LA_GET_STRING): Remove.
2639 (default_get_string): Don't declare.
2640
1df2f9ef
TT
26412019-11-05 Tom Tromey <tom@tromey.com>
2642
2643 * tui/tui-source.h (struct tui_source_window): Inline
2644 constructor. Remove destructor.
2645 <style_changed, m_observable>: Move to superclass.
2646 * tui/tui-winsource.h (tui_copy_source_line): Declare.
2647 (struct tui_source_window_base): Move private members to end.
2648 <style_changed, m_observable>: Move from tui_source_window.
2649 * tui/tui-winsource.c (tui_copy_source_line): Move from
2650 tui-source.c. Rename from copy_source_line. Add special handling
2651 for negative line number.
2652 (tui_source_window_base::style_changed): Move from
2653 tui_source_window.
2654 (tui_source_window_base): Register observer.
2655 (~tui_source_window_base): New.
2656 * tui/tui-source.c (copy_source_line): Move to tui-winsource.c;
2657 rename.
2658 (tui_source_window::set_contents): Use tui_copy_source_line.
2659 (tui_source_window::tui_source_window): Move to tui-source.h.
2660 (tui_source_window::~tui_source_window): Remove.
2661 (tui_source_window::style_changed): Move to superclass.
2662 * tui/tui-disasm.c (tui_disassemble): Create string file with
2663 styling, when possible. Add "addr_size" parameter.
2664 (tui_disasm_window::set_contents): Use tui_copy_source_line.
2665 Don't compute maximum size.
2666 (len_without_escapes): New function
2667
5d051055
TT
26682019-11-05 Tom Tromey <tom@tromey.com>
2669
2670 * tui/tui-winsource.h (struct tui_source_element) <line>: Now a
2671 std::string.
2672 * tui/tui-winsource.c (tui_show_source_line): Update.
2673 * tui/tui-source.c (tui_source_window::set_contents): Update.
2674 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
2675
ade7beea
CB
26762019-11-05 Christian Biesinger <cbiesinger@google.com>
2677
2678 * symtab.h (gdb_static_assert): Put && operator at the beginning
2679 of the line instead of the end.
2680
3573abe1
CB
26812019-11-04 Christian Biesinger <cbiesinger@google.com>
2682
2683 * psympriv.h: Add static_asserts for sizeof (general_symbol_info)
2684 and sizeof (symbol).
2685 * symtab.h: Add a static_assert for sizeof (partial_symbol).
2686
dae8b3eb
RO
26872019-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2688
2689 * NEWS (Changes since GDB 8.3): Document Solaris 10 removal.
2690 * configure.host: Mark *-*-solaris2.10* obsolete.
2691 * configure.tgt: Mark Solaris < 11 obsolete.
2692 * MAINTAINERS (Target Instruction Set Architectures) <sparc>:
2693 Update target triplet.
2694
5df96a4e
TT
26952019-11-01 Tom Tromey <tromey@adacore.com>
2696
2697 * utils.c (print_sys_errmsg): Simplify.
2698
b7481649
TT
26992019-11-01 Tom Tromey <tromey@adacore.com>
2700
2701 * gdbsupport/mingw-strerror.c (safe_strerror): Constify result.
2702
e48f6033
CB
27032019-11-01 Christian Biesinger <cbiesinger@google.com>
2704
2705 * configure: Regenerate.
2706 * configure.ac: Remove check for strerror_r.
2707 * gdbsupport/common.m4: Check for strerror_r.
2708
bd5766ec
LM
27092019-11-01 Luis Machado <luis.machado@linaro.org>
2710
2711 PR gdb/25124
2712
2713 * arm-tdep.c (arm_per_objfile): Rename to ...
2714 (arm_per_bfd): ... this.
2715 (arm_objfile_data_key): Rename to ...
2716 (arm_bfd_data_key): ... this.
2717 (arm_find_mapping_symbol): Adjust access to new bfd_key-based
2718 data.
2719 (arm_record_special_symbol): Likewise.
2720
e1709896
AB
27212019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
2722
2723 * ada-typeprint.c (ada_print_typedef): Don't print newline at the
2724 end.
2725 * c-typeprint.c (c_print_typedef): Likewise.
2726 * f-typeprint.c (f_print_typedef): Likewise.
2727 * m2-typeprint.c (m2_print_typedef): Likewise.
2728 * p-typeprint.c (pascal_print_typedef): Likewise.
2729 * rust-lang.c (rust_print_typedef): Likewise.
2730 * symtab.c (print_symbol_info): Print a newline after calling
2731 typedef_print.
2732
165f8965
AB
27332019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
2734
2735 * symtab.c (info_module_cmdlist): New variable.
2736 (info_module_command): New function.
2737 (search_module_symbols): New function.
2738 (info_module_subcommand): New function.
2739 (struct info_modules_var_func_options): New struct.
2740 (info_modules_var_func_options_defs): New variable.
2741 (make_info_modules_var_func_options_def_group): New function.
2742 (info_module_functions_command): New function.
2743 (info_module_variables_command): New function.
2744 (info_module_var_func_command_completer): New function.
2745 (_initialize_symtab): Register new 'info module functions' and
2746 'info module variables' commands.
2747 * symtab.h (typedef symbol_search_in_module): New typedef.
2748 (search_module_symbols): Declare new function.
2749 * NEWS: Mention new commands.
2750
59c35742
AB
27512019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
2752
2753 * dwarf2read.c (dw2_symtab_iter_next): Handle MODULE_DOMAIN.
2754 (dw2_expand_marked_cus): Handle MODULES_DOMAIN.
2755 (dw2_debug_names_iterator::next): Handle MODULE_DOMAIN and
2756 MODULES_DOMAIN.
2757 (scan_partial_symbols): Only create partial module symbols for non
2758 declarations.
2759 * psymtab.c (recursively_search_psymtabs): Handle MODULE_DOMAIN
2760 and MODULES_DOMAIN.
2761 * symtab.c (search_domain_name): Likewise.
2762 (search_symbols): Likewise.
2763 (print_symbol_info): Likewise.
2764 (symtab_symbol_info): Likewise.
2765 (info_modules_command): New function.
2766 (_initialize_symtab): Register 'info modules' command.
2767 * symtab.h (enum search_domain): Add MODULES_DOMAIN.
2768 * NEWS: Mention new 'info modules' command.
2769
aed61d02
PW
27702019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2771
2772 * NEWS: Mention $_gdb_setting, $_gdb_setting_str, $_gdb_maint_setting
2773 and $_gdb_maint_setting_str.
2774
9ad9b77d
PW
27752019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2776
2777 * cli/cli-cmds.c (setting_cmd, value_from_setting)
2778 (gdb_setting_internal_fn, gdb_maint_setting_internal_fn)
2779 (str_value_from_setting, gdb_setting_str_internal_fn)
2780 (gdb_maint_setting_str_internal_fn): New functions.
2781 (_initialize_cli_cmds): Define the new convenience functions.
2782 * gdb/cli/cli-setshow.h (get_setshow_command_value_string): Constify.
2783 * gdb/cli/cli-setshow.c (get_setshow_command_value_string): Constify.
2784
8d6efaa2
CB
27852019-10-31 Christian Biesinger <cbiesinger@google.com>
2786
2787 * agent.c (set_can_use_agent): When the setting is turned on,
2788 look up agent symbols if we don't have them yet.
2789 (agent_new_objfile): Don't look up agent symbols when the agent
2790 setting is off.
2791
33cb1647
CB
27922019-10-31 Christian Biesinger <cbiesinger@google.com>
2793
2794 * config.in: Regenerate.
2795
b231e86a
CB
27962019-10-31 Christian Biesinger <cbiesinger@google.com>
2797
2798 * configure: Regenerate.
2799 * configure.ac: Check for strerror_r.
2800 * gdbsupport/common-utils.h (safe_strerror): Change return value
2801 to const char * and document that this function is now threadsafe.
2802 * gdbsupport/posix-strerror.c (safe_strerror): Make buf
2803 thread_local and call strerror_r, if available.
2804 * utils.c (perror_string): Update.
2805 (print_sys_errmsg): Update.
2806
a2726d4f
LM
28072019-10-31 Luis Machado <luis.machado@linaro.org>
2808
2809 * arm-tdep.c (arm_exidx_data_key): Use bfd_key instead of
2810 objfile_key.
2811 (arm_exidx_new_objfile): Adjust to use objfile->obfd instead of
2812 objfile to fetch per-bfd data.
2813 (arm_find_exidx_entry): Likewise.
2814
75cafaa6
CB
28152019-10-31 Christian Biesinger <cbiesinger@google.com>
2816
2817 * gdbsupport/agent.c (debug_agent): Change type to bool.
2818 (use_agent): Likewise.
2819 (all_agent_symbols_look_up): Likewise.
2820 (agent_loaded_p): Change return value to bool.
2821 (agent_look_up_symbols): Update.
2822 (agent_capability_check): Change return value to bool.
2823 * gdbsupport/agent.h (agent_loaded_p): Likewise.
2824 (debug_agent): Change type to bool.
2825 (use_agent): Likewise.
2826 (agent_capability_check): Change return value to bool.
2827
808590ec
CB
28282019-10-30 Christian Biesinger <cbiesinger@google.com>
2829
2830 * minsyms.c (clear_minimal_symbol_hash_tables): New function.
2831 (build_minimal_symbol_hash_tables): Code to clear the table moved
2832 to clear_minimal_symbol_hash_tables.
2833 (minimal_symbol_reader::install): Call clear_minimal_symbol_hash_tables
2834 when needed.
2835
f18ad8a1
SM
28362019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2837
2838 * infcmd.c: Remove includes.
2839 * infrun.c: Remove includes.
2840
de93309a
SM
28412019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2842
2843 * ada-lang.h (GROW_VECT): Move to ada-lang.c.
2844 (grow_vect): Remove declaration.
2845 (ada_type_of_array): Remove declaration.
2846 (ada_update_initial_language): Remove declaration.
2847 (ada_fold_name): Remove declaration.
2848 (ada_fill_in_ada_prototype): Remove declaration.
2849 (user_select_syms): Remove declaration.
2850 (get_selections): Remove declaration.
2851 (ada_tag_type): Remove declaration.
2852 (ada_value_tag): Remove declaration.
2853 (ada_is_others_clause): Remove declaration.
2854 (ada_in_variant): Remove declaration.
2855 (ada_value_struct_elt): Remove declaration.
2856 (ada_attribute_name): Remove declaration.
2857 (ada_system_address_type): Remove declaration.
2858 * ada-lang.c (ada_watch_location_expression): Make static.
2859 (GROW_VECT): Move here from ada-lang.h.
2860 (grow_vect): Make static.
2861 (ada_update_initial_language): Make static.
2862 (ada_fold_name): Make static.
2863 (ada_type_of_array): Make static.
2864 (encoded_ordered_before): Move up.
2865 (sort_choices): Move up.
2866 (print_signatures): Move up.
2867 (ada_print_symbol_signature): Move up.
2868 (get_selections): Move up and make static.
2869 (user_select_syms): Move up and make static.
2870 (ada_value_struct_elt): Move up and make static.
2871 (ada_tag_type): Make static.
2872 (ada_value_tag): Make static.
2873 (ada_is_others_clause): Make static.
2874 (ada_in_variant): Make static.
2875 (ada_attribute_name): Make static.
2876
cdc46a9f
SM
28772019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2878
2879 * ada-lang.c: Remove includes.
2880 * ada-typeprint.c: Remove includes.
2881 * ada-valprint.c: Remove includes.
2882
90421c56
SM
28832019-10-29 Simon Marchi <simon.marchi@efficios.com>
2884
2885 * addrmap.c: Add static assertions of type size, moved from
2886 _initialize_addrmap.
2887 (_initialize_addrmap): Remove.
2888
31edb802
CB
28892019-10-29 Christian Biesinger <cbiesinger@google.com>
2890
2891 * coffread.c (record_minimal_symbol): Update.
2892 (process_coff_symbol): Update.
2893 * dbxread.c (read_dbx_symtab): Update.
2894 * dwarf2read.c (add_partial_symbol): Update.
2895 (fixup_go_packaging): Update.
2896 (load_partial_dies): Update.
2897 (new_symbol): Update.
2898 * elfread.c (record_minimal_symbol): Change signature to use
2899 gdb::string_view instead of name+len.
2900 (elf_symtab_read): Update.
2901 (elf_rel_plt_read): Update.
2902 * mdebugread.c (parse_partial_symbols): Update.
2903 (handle_psymbol_enumerators): Update.
2904 (new_symbol): Update.
2905 * minsyms.c (minimal_symbol_reader::record_full): Change signature
2906 to use gdb::string_view instead of name+len.
2907 * minsyms.h (class minimal_symbol_reader) <record_full>: Likewise.
2908 * psympriv.h (add_psymbol_to_list): Likewise.
2909 * psymtab.c (add_psymbol_to_bcache): Likewise.
2910 (add_psymbol_to_list): Likewise.
2911 * stabsread.c (define_symbol): Update.
2912 * symtab.c (symbol_set_names): Change signature to use gdb::string_view.
2913 * symtab.h (SYMBOL_SET_NAMES): Likewise.
2914 (symbol_set_names): Likewise.
2915 * xcoffread.c (scan_xcoff_symtab): Update.
2916
0c921b21
CB
29172019-10-29 Christian Biesinger <cbiesinger@google.com>
2918
2919 * symtab.h (symbol_set_names): Document that copy_name must be
2920 set to true for non-nullterminated strings.
2921 * symtab.c (symbol_set_names): Only make a nullterminated copy of
2922 linkage_name if the entry was not found and we need to demangle.
2923
35e65c49
CB
29242019-10-29 Christian Biesinger <cbiesinger@google.com>
2925
2926 * Makefile.in (HFILES_NO_SRCDIR): Add gdb_binary_search.h.
2927 * dwarf2-frame.c (bsearch_fde_cmp): Update.
2928 (dwarf2_frame_find_fde): Replace bsearch with gdb::binary_search.
2929 * gdbsupport/gdb_binary_search.h: New file.
2930
ed2a2229
CB
29312019-10-29 Christian Biesinger <cbiesinger@google.com>
2932
2933 * NEWS: Mention new --with-system-gdbinit-dir option.
2934 * config.in: Regenerate.
2935 * configure: Regenerate.
2936 * configure.ac: Add new option --with-system-gdbinit-dir.
2937 * extension.c (get_ext_lang_of_file): Return extension_language_gdb
2938 for a ".gdb" suffix.
2939 * main.c (get_init_files): Change system_gdbinit argument to
2940 a vector and return the files in SYSTEM_GDBINIT_DIR in
2941 addition to SYSTEM_GDBINIT.
2942 (captured_main_1): Update.
2943 (print_gdb_help): Update.
2944 * top.c (print_gdb_configuration): Also print the value of
2945 SYSTEM_GDBINIT_DIR.
2946
87f34879
CB
29472019-10-28 Christian Biesinger <cbiesinger@google.com>
2948
2949 * gdbsupport/common-utils.h (startswith): Add an overloaded version
2950 that takes gdb::string_view arguments.
2951
30baf67b
TV
29522019-10-26 Tom de Vries <tdevries@suse.de>
2953
2954 * aarch64-linux-tdep.c: Fix typos in comments.
2955 * aarch64-tdep.c: Same.
2956 * ada-lang.c: Same.
2957 * amd64-nat.c: Same.
2958 * arc-tdep.c: Same.
2959 * arch/aarch64-insn.c: Same.
2960 * block.c: Same.
2961 * breakpoint.h: Same.
2962 * btrace.h: Same.
2963 * c-varobj.c: Same.
2964 * cli/cli-decode.c: Same.
2965 * cli/cli-script.c: Same.
2966 * cli/cli-utils.h: Same.
2967 * coff-pe-read.c: Same.
2968 * coffread.c: Same.
2969 * compile/compile-cplus-symbols.c: Same.
2970 * compile/compile-object-run.c: Same.
2971 * completer.c: Same.
2972 * corelow.c: Same.
2973 * cp-support.c: Same.
2974 * demangle.c: Same.
2975 * dwarf-index-write.c: Same.
2976 * dwarf2-frame.c: Same.
2977 * dwarf2-frame.h: Same.
2978 * eval.c: Same.
2979 * frame-base.h: Same.
2980 * frame.h: Same.
2981 * gdbcmd.h: Same.
2982 * gdbtypes.h: Same.
2983 * gnu-nat.c: Same.
2984 * guile/scm-objfile.c: Same.
2985 * i386-tdep.c: Same.
2986 * i386-tdep.h: Same.
2987 * infcall.c: Same.
2988 * infcall.h: Same.
2989 * linux-nat.c: Same.
2990 * m68k-tdep.c: Same.
2991 * macroexp.c: Same.
2992 * memattr.c: Same.
2993 * mi/mi-cmd-disas.c: Same.
2994 * mi/mi-getopt.h: Same.
2995 * mi/mi-main.c: Same.
2996 * minsyms.c: Same.
2997 * nat/aarch64-sve-linux-sigcontext.h: Same.
2998 * objfiles.h: Same.
2999 * ppc-linux-nat.c: Same.
3000 * ppc-linux-tdep.c: Same.
3001 * ppc-tdep.h: Same.
3002 * progspace.h: Same.
3003 * prologue-value.h: Same.
3004 * python/py-evtregistry.c: Same.
3005 * python/py-instruction.h: Same.
3006 * record-btrace.c: Same.
3007 * record-full.c: Same.
3008 * remote.c: Same.
3009 * rs6000-tdep.c: Same.
3010 * ser-tcp.c: Same.
3011 * sol-thread.c: Same.
3012 * sparc-sol2-tdep.c: Same.
3013 * sparc64-tdep.c: Same.
3014 * stabsread.c: Same.
3015 * symfile.c: Same.
3016 * symtab.h: Same.
3017 * target.c: Same.
3018 * tracepoint.c: Same.
3019 * tui/tui-data.h: Same.
3020 * tui/tui-io.c: Same.
3021 * tui/tui-win.c: Same.
3022 * tui/tui.c: Same.
3023 * unittests/rsp-low-selftests.c: Same.
3024 * user-regs.h: Same.
3025 * utils.c: Same.
3026 * utils.h: Same.
3027 * valarith.c: Same.
3028 * valops.c: Same.
3029 * valprint.c: Same.
3030 * valprint.h: Same.
3031 * value.c: Same.
3032 * value.h: Same.
3033 * varobj.c: Same.
3034 * x86-nat.h: Same.
3035 * xtensa-tdep.c: Same.
3036
1834d45f
AT
30372019-10-25 Ali Tamur <tamur@google.com>
3038
3039 * charset.c (find_charset_names): Reflect API change.
3040
5396ae17
CB
30412019-10-25 Christian Biesinger <cbiesinger@google.com>
3042
3043 * symtab.c (struct demangled_name_entry): Change demangled name
3044 to a unique_xmalloc_ptr<char>, now that we don't allocate it as
3045 part of the struct anymore.
3046 (symbol_set_names): No longer obstack allocate + copy the demangled
3047 name, just store the allocated name from bfd.
3048
93878f47
TT
30492019-10-25 Tom Tromey <tromey@adacore.com>
3050
3051 * dwarf2-frame.c (dwarf2_cie_table): Now a typedef.
3052 (bsearch_cie_cmp, add_cie): Remove.
3053 (find_cie): Reimplement.
3054 (decode_frame_entry_1, decode_frame_entry): Change type. Update.
3055 (dwarf2_build_frame_info): Update.
3056
7b71fc97
L
30572019-10-24 H.J. Lu <hongjiu.lu@intel.com>
3058
3059 PR gdb/25126
3060 * symfile.c (reread_symbols): Call forget_cached_source_info to
3061 clear the stale source cache.
3062
cbb5a2ea
CB
30632019-10-24 Christian Biesinger <cbiesinger@google.com>
3064
3065 * configure: Regenerate.
3066 * configure.ac: Remove code that sets python_has_threads.
3067
71737c43
CB
30682019-10-24 Christian Biesinger <cbiesinger@google.com>
3069
3070 * config.in: Regenerate.
3071 * configure: Regenerate.
3072 * configure.ac: Remove the code that uses sed to get the python
3073 version and defines HAVE_LIBPYTHON2_6 / HAVE_LIBPYTHON2_7.
3074
33d569b7
AB
30752019-10-24 Andrew Burgess <andrew.burgess@embecosm.com>
3076
3077 * python/py-progspace.c (pspy_block_for_pc): Return None for all
3078 error paths.
3079
f16f7b7c
TT
30802019-10-23 Tom Tromey <tom@tromey.com>
3081
3082 * arc-tdep.c: Remove ".." from include.
3083 * frv-tdep.c: Remove ".." from include.
3084 * lm32-tdep.c: Remove ".." from include.
3085 * microblaze-tdep.c: Remove ".." from include.
3086 * or1k-tdep.h: Remove ".." from include.
3087 * s12z-tdep.c: Remove ".." from include.
3088 * Makefile.in (OPCODES_CFLAGS): Add comment.
3089 (TOP_CFLAGS): New variable.
3090 (INTERNAL_CFLAGS_BASE): Add TOP_CFLAGS.
3091
6999161a
TT
30922019-10-23 Tom Tromey <tom@tromey.com>
3093
3094 * Makefile.in (READLINE_DIR): Update.
3095
12e7c35e
TBA
30962019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3097
3098 * infcall.c (call_function_by_hand_dummy): Fix the function
3099 comment. And extract out a code section into...
3100 (reserve_stack_space): ...this new function.
3101
37055cad
TBA
31022019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3103
3104 * infcall.c (value_arg_coerce): Remove an unused parameter.
3105 (call_function_by_hand_dummy): Update the call to
3106 'value_arg_coerce'.
3107
39bcc47c
TBA
31082019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3109
3110 * infcall.c (call_function_by_hand_dummy): Refactor.
3111
bd888c0f
TBA
31122019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3113
3114 * MAINTAINERS (Write After Approval): Add Tankut Baris Aktemur.
3115
c12d372d
TT
31162019-10-23 Tom Tromey <tom@tromey.com>
3117
3118 * configure: Rebuild.
3119 * configure.ac: Don't check for sigprocmask.
3120 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for sigprocmask.
3121
4d0b984b
TT
31222019-10-23 Tom Tromey <tom@tromey.com>
3123
3124 * configure: Rebuild.
3125 * acinclude.m4: Use m4_include, not sinclude.
3126
7e785608
TV
31272019-10-23 Tom de Vries <tdevries@suse.de>
3128
3129 PR breakpoints/24687
3130 * symtab.c (iterate_over_some_symtabs): Apply gdb_realpath on fullname.
3131
403772ef
CB
31322019-10-22 Christian Biesinger <cbiesinger@google.com>
3133
3134 * symtab.c (struct demangled_name_entry) <language>: Change from
3135 bitfield to regular variable.
3136
3a494279
CB
31372019-10-22 Christian Biesinger <cbiesinger@google.com>
3138
3139 * symtab.c (struct demangled_name_entry): Add a constructor.
3140 (free_demangled_name_entry): New function to call the destructor
3141 for demangled_name_entry.
3142 (create_demangled_names_hash): Pass free_demangled_name_entry to
3143 htab_create_alloc.
3144 (symbol_set_names): Call placement new for demangled_name_entry.
3145 * utils.c: No longer include xxhash.h here, now that fast_hash
3146 is inlined in the header.
3147 * utils.h: Instead, include it here.
3148
ccb1ba62
CB
31492019-10-22 Christian Biesinger <cbiesinger@google.com>
3150
3151 * Makefile.in: Link with libxxhash.
3152 * config.in: Regenerate.
3153 * configure: Regenerate.
3154 * configure.ac: Search for libxxhash.
3155 * utils.c (fast_hash): Use xxhash if present.
3156
1a6ff1a9
CB
31572019-10-22 Christian Biesinger <cbiesinger@google.com>
3158
3159 * utils.h (fast_hash): New function.
3160 * symtab.c (hash_demangled_name_entry): Call new function
3161 fast_hash.
3162
7bb43059
CB
31632019-10-22 Christian Biesinger <cbiesinger@google.com>
3164
3165 * symtab.c (struct demangled_name_entry): Change type of mangled
3166 to gdb::string_view. Also adds a constructor that takes the
3167 mangled name.
3168 (hash_demangled_name_entry): Update.
3169 (eq_demangled_name_entry): Update.
3170 (free_demangled_name_entry): New function to call the destructor
3171 now that this is not a POD anymore.
3172 (create_demangled_names_hash): Pass free_demangled_name_entry to
3173 htab_create_alloc.
3174 (symbol_set_names): Update.
3175
7ba99d21
AT
31762019-10-21 Ali Tamur <tamu@google.com>
3177
3178 * dwarf2read.c (dir_index): Change type.
3179 (file_name_index): Likewise.
3180 (line_header::include_dir_at): Change comment and implementation on
3181 whether it is DWARF 5.
3182 (line_header::is_valid_file_index): New function.
3183 (line_header::file_name_at): Change comment and implementation on
3184 whether it is DWARF 5.
3185 (line_header::file_names): Change to private field renamed as
3186 m_file_names and introduce a new accessor method.
3187 (line_header::file_names_size): New method.
3188 (line_header::include_dirs): Change to private field and rename as
3189 m_include_dirs.
3190 (dw2_get_file_names_reader): Define local var at a smaller scope and
3191 reflect API change.
3192 (dwarf2_cu::setup_type_unit_groups): Reflect API change.
3193 (process_structure_scope): Likewise.
3194 (line_header::add_include_dir): Change message and reflect renaming.
3195 (line_header::add_file_name): Likewise.
3196 (read_formatted_entries): Handle DW_FORM_data16.
3197 (dwarf_decode_line_header): Fix line header length calculation.
3198 (psymtab_include_file_name): Change comment and API.
3199 (lnp_state_machine::m_file): Update comment and reflect type change.
3200 (lnp_state_machine::record_line): Reflect type change.
3201 (dwarf_decode_lines): Reflect API change.
3202 (file_file_name): Likewise.
3203 (file_full_name): Likewise.
3204
45f47c3a
AB
32052019-10-21 Andrew Burgess <andrew.burgess@embecosm.com>
3206
3207 * objfiles.c (sort_cmp): Ensure that !(a < a) holds true.
3208
e5f3c0e3
TT
32092019-10-21 Tom Tromey <tom@tromey.com>
3210
3211 * tui/tui-winsource.h (tui_exec_info_content): Remove typedef.
3212
a0a461e5
TT
32132019-10-21 Tom Tromey <tom@tromey.com>
3214
3215 * configure.ac (nm.h): Conditionally create nm.h link. Subst
3216 NM_H. Use AC_CONFIG_LINKS.
3217 * configure: Rebuild.
3218 * Makefile.in (NM_H): New variable.
3219 (generated_files): Add NM_H. Remove gcore.
3220 (nm.h, stamp-nmh): New targets.
3221
54d83b8d
TT
32222019-10-20 Tom Tromey <tom@tromey.com>
3223
3224 * objfiles.h (unlink_objfile, put_objfile_before): Don't declare.
3225 * objfiles.c (unlink_objfile): Move earlier. Now static. Remove
3226 obsolete comment.
3227 (put_objfile_before): Now static.
3228
23771117
SM
32292019-10-19 Simon Marchi <simon.marchi@polymtl.ca>
3230
3231 * gdbsupport/common-utils.h (startswith): Change return type to
3232 bool.
3233
39ef2f62
CB
32342019-10-19 Christian Biesinger <cbiesinger@google.com>
3235
3236 * bcache.c (bcache::print_statistics): Use std::sort instead of qsort.
3237 * breakpoint.c (bp_locations_compare): Rename to...
3238 (bp_location_is_less_than): ...this, and change to std::sort semantics.
3239 (update_global_location_list): Use std::sort instead of qsort.
3240 * buildsym.c (compare_line_numbers): Rename to...
3241 (lte_is_less_than): ...this, and change to std::sort semantics.
3242 (buildsym_compunit::end_symtab_with_blockvector): Use std::sort
3243 instead of qsort.
3244 * disasm.c (compare_lines): Rename to...
3245 (line_is_less_than): ...this, and change to std::sort semantics.
3246 (do_mixed_source_and_assembly_deprecated): Call std::sort instead
3247 of qsort.
3248 * dwarf2-frame.c (qsort_fde_cmp): Rename to...
3249 (fde_is_less_than): ...this, and change to std::sort semantics.
3250 (dwarf2_build_frame_info): Call std::sort instead of qsort.
3251 * mdebugread.c (compare_blocks):
3252 (block_is_less_than): ...this, and change to std::sort semantics.
3253 (sort_blocks): Call std::sort instead of qsort.
3254 * objfiles.c (qsort_cmp): Rename to...
3255 (sort_cmp): ...this, and change to std::sort semantics.
3256 (update_section_map): Call std::sort instead of qsort.
3257 * remote.c (compare_pnums): Remove.
3258 (map_regcache_remote_table): Call std::sort instead of qsort.
3259 * utils.c (compare_positive_ints): Remove.
3260 * utils.h (compare_positive_ints): Remove.
3261 * xcoffread.c (compare_lte): Remove.
3262 (arrange_linetable): Call std::sort instead of qsort.
3263
f71433ee
SDJ
32642019-10-19 Sergio Durigan Junior <sergiodj@redhat.com>
3265
3266 * symfile.c (init_entry_point_info): Fix typo.
3267 * i386-darwin-tdep.c (darwin_dwarf_signal_frame_p): Fix typo.
3268
85102364
TV
32692019-10-18 Tom de Vries <tdevries@suse.de>
3270
3271 * aarch64-tdep.c: Fix typos in comments.
3272 * ada-lang.c: Same.
3273 * ada-tasks.c: Same.
3274 * alpha-tdep.c: Same.
3275 * alpha-tdep.h: Same.
3276 * amd64-nat.c: Same.
3277 * amd64-windows-tdep.c: Same.
3278 * arc-tdep.c: Same.
3279 * arc-tdep.h: Same.
3280 * arch-utils.c: Same.
3281 * arm-nbsd-tdep.c: Same.
3282 * arm-tdep.c: Same.
3283 * ax-gdb.c: Same.
3284 * blockframe.c: Same.
3285 * btrace.c: Same.
3286 * c-varobj.c: Same.
3287 * coff-pe-read.c: Same.
3288 * coffread.c: Same.
3289 * cris-tdep.c: Same.
3290 * darwin-nat.c: Same.
3291 * dbxread.c: Same.
3292 * dcache.c: Same.
3293 * disasm.c: Same.
3294 * dtrace-probe.c: Same.
3295 * dwarf-index-write.c: Same.
3296 * dwarf2-frame-tailcall.c: Same.
3297 * dwarf2-frame.c: Same.
3298 * dwarf2read.c: Same.
3299 * eval.c: Same.
3300 * exceptions.c: Same.
3301 * fbsd-tdep.c: Same.
3302 * findvar.c: Same.
3303 * frame.c: Same.
3304 * frv-tdep.c: Same.
3305 * gnu-v3-abi.c: Same.
3306 * go32-nat.c: Same.
3307 * h8300-tdep.c: Same.
3308 * hppa-tdep.c: Same.
3309 * i386-linux-tdep.c: Same.
3310 * i386-tdep.c: Same.
3311 * ia64-libunwind-tdep.c: Same.
3312 * ia64-tdep.c: Same.
3313 * infcmd.c: Same.
3314 * infrun.c: Same.
3315 * linespec.c: Same.
3316 * linux-nat.c: Same.
3317 * linux-thread-db.c: Same.
3318 * machoread.c: Same.
3319 * mdebugread.c: Same.
3320 * mep-tdep.c: Same.
3321 * mn10300-tdep.c: Same.
3322 * namespace.c: Same.
3323 * objfiles.c: Same.
3324 * opencl-lang.c: Same.
3325 * or1k-tdep.c: Same.
3326 * osabi.c: Same.
3327 * ppc-linux-nat.c: Same.
3328 * ppc-linux-tdep.c: Same.
3329 * ppc-sysv-tdep.c: Same.
3330 * printcmd.c: Same.
3331 * procfs.c: Same.
3332 * record-btrace.c: Same.
3333 * record-full.c: Same.
3334 * remote-fileio.c: Same.
3335 * remote.c: Same.
3336 * rs6000-tdep.c: Same.
3337 * s12z-tdep.c: Same.
3338 * score-tdep.c: Same.
3339 * ser-base.c: Same.
3340 * ser-go32.c: Same.
3341 * skip.c: Same.
3342 * sol-thread.c: Same.
3343 * solib-svr4.c: Same.
3344 * solib.c: Same.
3345 * source.c: Same.
3346 * sparc-nat.c: Same.
3347 * sparc-sol2-tdep.c: Same.
3348 * sparc-tdep.c: Same.
3349 * sparc64-tdep.c: Same.
3350 * stabsread.c: Same.
3351 * stack.c: Same.
3352 * symfile.c: Same.
3353 * symtab.c: Same.
3354 * target-descriptions.c: Same.
3355 * target-float.c: Same.
3356 * thread.c: Same.
3357 * utils.c: Same.
3358 * valops.c: Same.
3359 * valprint.c: Same.
3360 * value.c: Same.
3361 * varobj.c: Same.
3362 * windows-nat.c: Same.
3363 * xcoffread.c: Same.
3364 * xstormy16-tdep.c: Same.
3365 * xtensa-tdep.c: Same.
3366
c5adaa19
TT
33672019-10-17 Tom Tromey <tromey@adacore.com>
3368
3369 * configure: Rebuild.
3370 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
3371 in AC_CONFIG_FILES invocation.
3372 * Makefile.in (Makefile, data-directory/Makefile, stamp-h): Use
3373 new-style config.status invocation.
3374
405feb71
TV
33752019-10-17 Tom de Vries <tdevries@suse.de>
3376
3377 * arm-nbsd-nat.c: Fix typos in comments.
3378 * arm-tdep.c: Same.
3379 * darwin-nat-info.c: Same.
3380 * dwarf2read.c: Same.
3381 * elfread.c: Same.
3382 * event-top.c: Same.
3383 * findvar.c: Same.
3384 * gdbtypes.c: Same.
3385 * hppa-tdep.c: Same.
3386 * i386-tdep.c: Same.
3387 * jit.c: Same.
3388 * main.c: Same.
3389 * mdebugread.c: Same.
3390 * moxie-tdep.c: Same.
3391 * nto-procfs.c: Same.
3392 * osabi.c: Same.
3393 * ppc-linux-tdep.c: Same.
3394 * remote.c: Same.
3395 * riscv-tdep.c: Same.
3396 * s390-tdep.c: Same.
3397 * sh-tdep.c: Same.
3398 * sparc-linux-tdep.c: Same.
3399 * sparc-nat.c: Same.
3400 * stack.c: Same.
3401 * target-descriptions.c: Same.
3402 * top.c: Same.
3403 * varobj.c: Same.
3404
befcd486
TT
34052019-10-16 Tom Tromey <tom@tromey.com>
3406
3407 * objfiles.h (struct objfile) <original_name>: Now const.
3408
17bfe554
CB
34092019-10-16 Christian Biesinger <cbiesinger@google.com>
3410
3411 * gdbsupport/gdb_setjmp.h (SIGSETJMP): Allow passing in the value to
3412 pass on to sigsetjmp's second argument.
3413 * cp-support.c (gdb_demangle): Unblock SIGSEGV if we caught a crash.
3414
950b7495
KS
34152019-10-16 Keith Seitz <keiths@redhat.com>
3416
3417 PR gdb/23567
3418 * dwarf2read.c (dwarf2_per_objfile::locate_sections): Discard
3419 sections whose size is greater than the file size.
3420
ff371ec9
JW
34212019-10-16 Jim Wilson <jimw@sifive.com>
3422
3423 * riscv-tdep.c (riscv_gcc_target_options): New.
3424 (riscv_gnu_triplet_regexp): New.
3425 (riscv_gdbarch_init): Call set_gdbarch_gcc_triplet_options and
3426 set_gdbarch_gnu_triplet_regexp.
3427
fec4e896
CB
34282019-10-16 Christian Biesinger <cbiesinger@google.com>
3429
3430 * Makefile.in: Add xml-builtin.h.
3431 * features/feature_to_c.sh: Add an include for xml-builtin.h
3432 to ensure that the compiler checks that the types match.
3433 * xml-builtin.h: New file.
3434 * xml-support.c (fetch_xml_builtin): Add missing const.
3435 * xml-support.h: Remove declaration of xml_builtins.
3436
d10eccaa
TV
34372019-10-16 Tom de Vries <tdevries@suse.de>
3438
3439 PR tdep/25096
3440 * amd64-tdep.c (amd64_classify_aggregate_field): Factor out of ...
3441 (amd64_classify_aggregate): ... here.
3442 (amd64_classify_aggregate_field): Handled fiels of nested structs
3443 recursively.
3444
745ff14e
TV
34452019-10-16 Tom de Vries <tdevries@suse.de>
3446
3447 PR tdep/24104
3448 * amd64-tdep.c (amd64_push_arguments): Handle AMD64_NO_CLASS in loop
3449 that handles 'theclass'.
3450
791b7405
AB
34512019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
3452
3453 * linespec.c (decode_digits_ordinary): Update comment.
3454 * make-target-delegates: No longer need to handle VEC case.
3455 * memrange.c (normalize_mem_ranges): Update comment.
3456 * namespace.c (add_using_directive): Update comment.
3457 * objc-lang.c (uniquify_strings): Update comment.
3458 * ppc-linux-nat.c (struct thread_points): Update comment.
3459 * probe.h (find_probes_in_objfile): Update comment.
3460 * target.h (enum flash_preserve_mode): Update comment.
3461 * varobj.c (varobj_restrict_range): Update comment.
3462 * varobj.h (varobj_list_children): Update comment.
3463
0dc32745
AB
34642019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
3465
3466 * Makefile.in: Remove references to vec.h and vec.c.
3467 * aarch64-tdep.c: No longer include vec.h.
3468 * ada-lang.c: Likewise.
3469 * ada-lang.h: Likewise.
3470 * arm-tdep.c: Likewise.
3471 * ax.h: Likewise.
3472 * breakpoint.h: Likewise.
3473 * charset.c: Likewise.
3474 * cp-support.h: Likewise.
3475 * dtrace-probe.c: Likewise.
3476 * dwarf2read.c: Likewise.
3477 * extension.h: Likewise.
3478 * gdb_bfd.c: Likewise.
3479 * gdbsupport/gdb_vecs.h: Likewise.
3480 * gdbsupport/vec.c: Remove.
3481 * gdbsupport/vec.h: Remove.
3482 * gdbthread.h: Likewise.
3483 * guile/scm-type.c: Likewise.
3484 * inline-frame.c: Likewise.
3485 * machoread.c: Likewise.
3486 * memattr.c: Likewise.
3487 * memrange.h: Likewise.
3488 * namespace.h: Likewise.
3489 * nat/linux-btrace.h: Likewise.
3490 * osdata.c: Likewise.
3491 * parser-defs.h: Likewise.
3492 * progspace.h: Likewise.
3493 * python/py-type.c: Likewise.
3494 * record-btrace.c: Likewise.
3495 * rust-exp.y: Likewise.
3496 * solib-target.c: Likewise.
3497 * stap-probe.c: Likewise.
3498 * target-descriptions.c: Likewise.
3499 * target-memory.c: Likewise.
3500 * target.h: Likewise.
3501 * varobj.c: Likewise.
3502 * varobj.h: Likewise.
3503 * xml-support.h: Likewise.
3504
ae640021
AB
35052019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
3506
3507 * gdb/dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile):
3508 Update for new std::vector based implementation.
3509 (process_psymtab_comp_unit_reader): Likewise.
3510 (scan_partial_symbols): Likewise.
3511 (recursively_compute_inclusions): Likewise.
3512 (compute_compunit_symtab_includes): Likewise.
3513 (process_imported_unit_die): Likewise.
3514 (queue_and_load_dwo_tu): Likewise.
3515 (follow_die_sig_1): Likewise.
3516 * gdb/dwarf2read.h: Remove DEF_VEC_P.
3517 (typedef dwarf2_per_cu_ptr): Remove.
3518 (struct dwarf2_per_cu_data) <imported_symtabs_empty>: New
3519 function.
3520 (struct dwarf2_per_cu_data) <imported_symtabs_push>: New function.
3521 (struct dwarf2_per_cu_data) <imported_symtabs_size>: New function.
3522 (struct dwarf2_per_cu_data) <imported_symtabs_free>: New function.
3523 (struct dwarf2_per_cu_data) <imported_symtabs>: Change to
3524 std::vector.
3525
55dfc88f
TT
35262019-10-15 Tom Tromey <tromey@adacore.com>
3527
3528 * windows-nat.c (windows_nat_target::resume): Use %x when logging
3529 TID.
3530
96b49c5e
TT
35312019-10-15 Tom Tromey <tromey@adacore.com>
3532
3533 * windows-nat.c (windows_nat_target::fetch_registers)
3534 (windows_nat_target::store_registers): Rename "pid" to "tid".
3535
953cff56
TT
35362019-10-15 Tom Tromey <tromey@adacore.com>
3537
3538 * gdbarch.h, gdbarch.c: Rebuild.
3539 * gdbarch.sh (gcc_target_options): Change return type to
3540 std::string.
3541 * compile/compile.c (get_args): Update.
3542 * nios2-tdep.c (nios2_gcc_target_options): Return std::string.
3543 * arm-linux-tdep.c (arm_linux_gcc_target_options): Return
3544 std::string.
3545 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): Return
3546 std::string.
3547 * arch-utils.c (default_gcc_target_options): Return std::string.
3548 * arch-utils.h (default_gcc_target_options): Return std::string.
3549 * s390-tdep.c (s390_gcc_target_options): Return std::string.
3550
81e6b8eb
CB
35512019-10-15 Christian Biesinger <cbiesinger@google.com>
3552
3553 * breakpoint.c (breakpoint_chain): Make static.
3554 * tui/tui-winsource.c: Call iterate_over_breakpoints instead
3555 of accessing breakpoint_chain.
3556
95da600f
CB
35572019-10-15 Christian Biesinger <cbiesinger@google.com>
3558
3559 * breakpoint.c (iterate_over_breakpoints): Change function pointer
3560 to a gdb::function_view and return value to bool.
3561 * breakpoint.h (iterate_over_breakpoints): Likewise.
3562 * dummy-frame.c (pop_dummy_frame_bpt): Update.
3563 (pop_dummy_frame): Update.
3564 * guile/scm-breakpoint.c (bpscm_build_bp_list): Update.
3565 (gdbscm_breakpoints): Update.
3566 * python/py-breakpoint.c (build_bp_list): Update.
3567 (gdbpy_breakpoints): Update.
3568 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
3569 Update.
3570 (bpfinishpy_handle_stop): Update.
3571 (bpfinishpy_handle_exit): Update.
3572 * solib-svr4.c (svr4_update_solib_event_breakpoint): Update.
3573 (svr4_update_solib_event_breakpoints): Update.
3574
ba18312d
AA
35752019-10-15 Andreas Arnez <arnez@linux.ibm.com>
3576
3577 * s390-tdep.c (s390_effective_inner_type): Ignore static fields
3578 when unwrapping single-field structs.
3579
6acc1a0b
SM
35802019-10-14 Simon Marchi <simon.marchi@polymtl.ca>
3581
3582 * dwarf2read.c: Remove includes.
3583
284782de
SM
35842019-10-13 Simon Marchi <simon.marchi@polymtl.ca>
3585
3586 * ui-out.c (ui_out::call_do_message): Silence
3587 -Wformat-nonliteral warning.
3588
073bbbb0
SM
35892019-10-12 Simon Marchi <simon.marchi@polymtl.ca>
3590
3591 * breakpoint.c: Remove some includes: continuations.h, skip.h,
3592 mi/mi-main.h, readline/readline.h, readline/history.h. Add
3593 include: readline/tilde.h.
3594
7b9a15e1
CB
35952019-10-12 Christian Biesinger <cbiesinger@google.com>
3596
3597 * remote.c (remote_target::get_trace_status): Remove declaration of
3598 trace_regblock_size.
3599
cc8dee1f
CB
36002019-10-12 Christian Biesinger <cbiesinger@google.com>
3601
3602 * cli/cli-cmds.c (max_user_call_depth): Move comment to header.
3603 (show_user): Remove declaration of cmdlist.
3604 * cli/cli-cmds.h (max_user_call_depth): Declare.
3605 * cli/cli-script.c (execute_user_command): Remove declaration
3606 of max_user_call_depth.
3607
a83d4ef6
JW
36082019-10-11 Jim Wilson <jimw@sifive.com>
3609
5f93c5a6
JW
3610 * gdbsupport/print-utils.h (pulongest): Fix comment.
3611 (plongest): Likewise.
3612 (phex): Add missing comment, mention leading zeros.
3613 (phex_nz): Add mention of no leading zeros to comment.
3614
a83d4ef6
JW
3615 * riscv-tdep.c (riscv_push_dummy_code): Change %lld to %s and use
3616 plongest instead of unsigned long long cast.
3617
26344e0c
CB
36182019-10-10 Christian Biesinger <cbiesinger@google.com>
3619
3620 * main.c (captured_main_1): Include gdbtk.h and remove declarations
3621 for external_editor_command and gdbtk_test.
3622
c2c440a9
CB
36232019-10-10 Christian Biesinger <cbiesinger@google.com>
3624
3625 * mi/mi-cmd-var.c (varobjdebug): Remove declaration.
3626 * varobj.c (varobjdebug): Move comment to...
3627 * varobj.h (varobjdebug): ...here, and declare.
3628
a31bff9d
TT
36292019-10-09 Tom Tromey <tom@tromey.com>
3630
3631 * tui/tui-regs.c (tui_data_window::show_registers): Don't call
3632 erase_data_content.
3633
7523da63
TT
36342019-10-09 Tom Tromey <tom@tromey.com>
3635
3636 * tui/tui-wingeneral.h (tui_delete_win): Don't declare.
3637 * tui/tui-stack.c (tui_locator_window::rerender): Update.
3638 * tui/tui-command.c (tui_cmd_window::resize)
3639 (tui_refresh_cmd_win): Update.
3640 * tui/tui-win.c (tui_resize_all, tui_set_focus_command): Update.
3641 * tui/tui.c (tui_rl_other_window, tui_enable): Update.
3642 * tui/tui-data.c (~tui_gen_win_info): Remove.
3643 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
3644 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
3645 (tui_redisplay_readline, tui_mld_flush)
3646 (tui_mld_erase_entire_line, tui_mld_getc, tui_getc): Update.
3647 * tui/tui-regs.c (tui_data_window::delete_data_content_windows)
3648 (tui_data_window::erase_data_content)
3649 (tui_data_item_window::rerender)
3650 (tui_data_item_window::refresh_window): Update.
3651 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window)
3652 (box_win, tui_gen_win_info::make_window)
3653 (tui_gen_win_info::make_visible): Update.
3654 (tui_delete_win): Remove.
3655 * tui/tui-winsource.c
3656 (tui_source_window_base::do_erase_source_content): Update.
3657 (tui_show_source_line, tui_source_window_base::update_tab_width)
3658 (tui_source_window_base::update_exec_info): Update.
3659 * tui/tui-data.h (struct curses_deleter): New.
3660 (struct tui_gen_win_info) <handle>: Now a unique_ptr.
3661 (struct tui_gen_win_info) <~tui_gen_win_info>: Define.
3662
a7798e7f
TT
36632019-10-09 Tom Tromey <tom@tromey.com>
3664
3665 * tui/tui-wingeneral.h (struct tui_gen_win_info): Don't declare.
3666
5c45899e
TT
36672019-10-09 Tom Tromey <tom@tromey.com>
3668
3669 * tui/tui-data.c (tui_win_is_auxiliary): Remove.
3670 * tui/tui-data.h (tui_win_is_auxiliary): Don't declare.
3671
6d7fd9aa
TT
36722019-10-09 Tom Tromey <tom@tromey.com>
3673
3674 * tui/tui-disasm.c (tui_get_low_disassembly_address): Compute
3675 window height directly.
3676 * tui/tui-layout.h (tui_default_win_viewport_height): Don't
3677 declare.
3678 * tui/tui-layout.c (tui_default_win_height): Remove.
3679 (tui_default_win_viewport_height): Remove.
3680
d2dd1084
TT
36812019-10-09 Tom Tromey <tom@tromey.com>
3682
3683 * tui/tui.h: Remove comments.
3684
cff32449
TV
36852019-10-09 Tom de Vries <tdevries@suse.de>
3686
3687 * python/lib/gdb/printer/bound_registers.py: Use
3688 '^builtin_type_bound128' as regexp argument for
3689 add_builtin_pretty_printer.
3690
6a25e8a2
CB
36912019-10-09 Christian Biesinger <cbiesinger@google.com>
3692
3693 * guile/guile.c (guile_extension_script_ops): Remove forward
3694 declaration and mark as static.
3695 (guile_script_ops): Likewise.
3696 (extension_language_guile): Move further down in the file so
3697 it can reference the definitions for guile_{extension_,}script_ops.
3698
6d9d6da4
AA
36992019-10-09 Andreas Arnez <arnez@linux.ibm.com>
3700
3701 * s390-tdep.c (390_process_record): Handle new arch13 instructions
3702 except SORTL, DFLTCC, and KDSA.
3703
3abea05d
TT
37042019-10-08 Tom Tromey <tromey@adacore.com>
3705
3706 * windows-nat.c (struct windows_thread_info_struct) <sf>: Remove.
3707 (struct safe_symbol_file_add_args): Remove.
3708
dde996e2
TT
37092019-10-08 Tom Tromey <tromey@adacore.com>
3710
3711 * windows-nat.c: Don't include buildsym-legacy.h.
3712
cd6fdaa1
TT
37132019-10-08 Tom Tromey <tromey@adacore.com>
3714
3715 * contrib/ari/gdb_ari.sh (%p): Allow gdb-specific %p extensions.
3716
79bb1944
CB
37172019-10-08 Christian Biesinger <cbiesinger@google.com>
3718
3719 * gdbtypes.c (overload_debug): Move comment to header.
3720 * gdbtypes.h (overload_debug): Declare.
3721 * valops.c: Remove declaration of overload_debug, instead
3722 include gdbtypes.h.
3723
34916edc
CB
37242019-10-08 Christian Biesinger <cbiesinger@google.com>
3725
3726 * language.c (show_language_command): Pass lang_frame_mismatch_warn
3727 through _().
3728 (lang_frame_mismatch_warn): Make const, mark with N_(), and
3729 move comment...
3730 * language.h (lang_frame_mismatch_warn): ... here. Also add
3731 declaration.
3732 * top.c (lang_frame_mismatch_warn): Remove declaration.
3733 (check_frame_language_change): Pass lang_frame_mismatch_warn
3734 through _().
3735
bad5c026
CB
37362019-10-07 Christian Biesinger <cbiesinger@google.com>
3737
3738 * c-lang.h (vtbl_ptr_name): Declare.
3739 * cp-valprint.c (vtbl_ptr_name): Remove "extern" now that we get
3740 it from the header.
3741 * stabsread.c (define_symbol): Remove declaration of vtbl_ptr_name.
3742
51f1fdc3
CB
37432019-10-07 Christian Biesinger <cbiesinger@google.com>
3744
3745 * charset.c (your_gdb_wchar_t_is_bogus): Replace with a
3746 gdb_static_assert.
3747
30d1f018
WP
37482019-10-07 Weimin Pan <weimin.pan@oracle.com>
3749
606813d5
WP
3750 * ../Makefile.def (dependencies): Add all-libctf to all-gdb
3751 * ../Makefile.in: Add "all-gdb: maybe-all-libctf"
30d1f018
WP
3752 * ctfread.c: New file.
3753 * ctfread.h: New file.
3754 * elfread.c: Include ctfread.h.
3755 (struct elfinfo text_p): New member ctfsect.
3756 (elf_locate_sections): Mark CTF section.
3757 (elf_symfile_read): Call elfctf_build_psymtabs.
3758 * Makefile.in (LIBCTF): Add.
3759 (CLIBS): Use it.
3760 (CDEPS): Likewise.
3761 (DIST): Add ctfread.c.
606813d5
WP
3762
37632019-10-07 Andrew Burgess <andrew.burgess@embecosm.com>
3764
3765 * ctfread.c (struct nextfield): Renamed to ...
3766 (struct ctf_nextfield): ... this.
3767 (struct field_info): Renamed to ...
3768 (strut ctf_field_info): ... this.
3769 (attach_fields_to_type): Update for renamed structures.
3770 (ctf_add_member_cb): Likewise.
3771 (ctf_add_enum_member_cb): Likewise.
3772 (process_struct_members): Likewise.
3773 (process_enum_type): Likewise.
30d1f018 3774
518fe38c
WP
37752019-10-07 Weimin Pan <weimin.pan@oracle.com>
3776
3777 * tracectf.h: Rename, was ctf.h.
3778 * tracectf.c: Rename, was ctf.c, replace ctf.h with tracectf.h.
3779 * tracefile.c: Likewise.
3780 * tracepoint.c: Remove unused include ctf.h.
3781 * mi/mi-main.c: Likewise.
3782 * Makefile.in Replace ctf.c with tracectf.c.
3783
225f296a
JB
37842019-10-06 Joel Brobecker <brobecker@adacore.com>
3785
3786 * version.in: Change version number to "9.0.50.DATE-git".
3787
77c2dba3
TT
37882019-10-03 Tom Tromey <tom@tromey.com>
3789
3790 PR rust/24976:
3791 * dwarf2read.c (quirk_rust_enum): Handle single-element unions.
3792
179aed7f
AB
37932019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
3794
3795 * f-lang.c (f_language_defn): Use cp_get_symbol_name_matcher and
3796 cp_search_name_hash.
3797 * NEWS: Add entry about nested function support.
3798
0a4b0913
AB
37992019-10-03 Bernhard Heckel <bernhard.heckel@intel.com>
3800 Andrew Burgess <andrew.burgess@embecosm.com>
3801
3802 * cp-namespace.c (cp_search_static_and_baseclasses): Only search
3803 for nested static variables when searchin VAR_DOMAIN.
3804 * dwarf2read.c (add_partial_symbol): Add nested subroutines to the
3805 global scope, update comment.
3806 (add_partial_subprogram): Call add_partial_subprogram recursively
3807 for nested subroutines when processinng Fortran.
3808 (load_partial_dies): Process the child entities of a subprogram
3809 when processing Fortran.
3810 (partial_die_parent_scope): Handle building scope
3811 for Fortran nested functions.
3812 (process_die): Record that nested functions have a scope.
3813 (new_symbol): Always record Fortran subprograms on the global
3814 symbol list.
3815 (determine_prefix): How to build the prefix for Fortran
3816 subprograms.
3817
d8c06f22
AB
38182019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
3819
3820 * linux-nat.c (linux_nat_filter_event): Don't ignore SIGSTOP if we
3821 have just sent the thread a SIGSTOP and are waiting for it to
3822 arrive.
3823
a8b3b8e9
AB
38242019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
3825
3826 * btrace.c (btrace_add_pc): Remove whitespace before the template
3827 parameter in 'std::vector <...>'.
3828 (parse_xml_btrace_block): Likewise.
3829 (btrace_maint_decode_pt): Likewise.
3830 (btrace_maint_update_packets): Likewise.
3831 (btrace_maint_print_packets): Likewise.
3832 * btrace.h (struct btrace_maint_info): Likewise.
3833 * dwarf2read.c (struct type_unit_group): Likewise.
3834 (build_type_psymtabs_reader): Likewise.
3835 * gdbsupport/btrace-common.c (btrace_data_append): Likewise.
3836 * gdbsupport/btrace-common.h (struct btrace_data_bts): Likewise.
3837 * nat/linux-btrace.c (perf_event_read_bts): Likewise.
3838
4d825eab
TV
38392019-10-03 Tom de Vries <tdevries@suse.de>
3840
3841 * cli/cli-style.c (_initialize_cli_style): Adding a '.' at the end of
3842 the first line of the help text for set/show style metadata.
3843
80fd2826
TT
38442019-10-02 Tom Tromey <tromey@adacore.com>
3845
3846 * Makefile.in (COMMON_SFILES): Add common-inferior.c.
3847 * gdbsupport/common-inferior.c: New file.
3848 * infcmd.c (startup_with_shell): Don't define.
3849 * nat/fork-inferior.h (startup_with_shell): Don't declare.
3850 * gdbsupport/common-inferior.h (startup_with_shell): Declare.
3851 * inferior.h (startup_with_shell): Don't declare.
3852
70054538
CB
38532019-10-02 Christian Biesinger <cbiesinger@google.com>
3854
3855 * gdbsupport/gdb_assert.h: Include errors.h.
3856 * gdbsupport/gdb_string_view.h: Include gdb_assert.h.
3857
37f6a7f4
TT
38582019-10-02 Tom Tromey <tromey@adacore.com>
3859
3860 * NEWS: Add $_ada_exception entry.
3861 * ada-lang.c (struct ada_catchpoint): Add constructor.
3862 <m_kind>: New member.
3863 (allocate_location_exception, re_set_exception): Remove
3864 "ex" parameter.
3865 (should_stop_exception): Compute $_ada_exception.
3866 (check_status_exception, print_it_exception)
3867 (print_one_exception, print_mention_exception): Remove
3868 "ex" parameter.
3869 (allocate_location_catch_exception, re_set_catch_exception)
3870 (check_status_exception, print_it_catch_exception)
3871 (print_one_catch_exception, print_mention_catch_exception)
3872 (print_recreate_catch_exception)
3873 (allocate_location_catch_exception_unhandled)
3874 (re_set_catch_exception_unhandled)
3875 (check_status_exception, print_it_catch_exception_unhandled)
3876 (print_one_catch_exception_unhandled)
3877 (print_mention_catch_exception_unhandled)
3878 (print_recreate_catch_exception_unhandled)
3879 (allocate_location_catch_assert, re_set_catch_assert)
3880 (check_status_assert, print_it_catch_assert)
3881 (print_one_catch_assert, print_mention_catch_assert)
3882 (print_recreate_catch_assert)
3883 (allocate_location_catch_handlers, re_set_catch_handlers)
3884 (check_status_handlers, print_it_catch_handlers)
3885 (print_one_catch_handlers, print_mention_catch_handlers)
3886 (print_recreate_catch_handlers): Remove.
3887 (create_ada_exception_catchpoint): Update.
3888 (initialize_ada_catchpoint_ops): Update.
3889
fccf9de1
TT
38902019-10-02 Tom Tromey <tromey@adacore.com>
3891
3892 * ada-lang.c (ada_lookup_simple_minsyms): Remove.
3893 (create_excep_cond_exprs): Simplify exception string computation.
3894 (ada_exception_catchpoint_cond_string): Likewise.
3895
4b610737
TT
38962019-10-02 Tom Tromey <tromey@adacore.com>
3897
3898 * symmisc.c (dump_msymbols): Don't use MSYMBOL_VALUE_ADDRESS.
3899 * ada-lang.c (lesseq_defined_than): Handle
3900 LOC_STATIC.
3901 * dwarf2read.c (dwarf2_per_objfile): Add can_copy
3902 parameter.
3903 (dwarf2_has_info): Likewise.
3904 (new_symbol): Set maybe_copied on symbol when
3905 appropriate.
3906 * dwarf2read.h (dwarf2_per_objfile): Add can_copy
3907 parameter.
3908 <can_copy>: New member.
3909 * elfread.c (record_minimal_symbol): Set maybe_copied
3910 on symbol when appropriate.
3911 (elf_symfile_read): Update call to dwarf2_has_info.
3912 * minsyms.c (lookup_minimal_symbol_linkage): New
3913 function.
3914 * minsyms.h (lookup_minimal_symbol_linkage): Declare.
3915 * symtab.c (get_symbol_address, get_msymbol_address):
3916 New functions.
3917 * symtab.h (get_symbol_address, get_msymbol_address):
3918 Declare.
3919 (SYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_ADDRESS): Handle
3920 maybe_copied.
3921 (struct symbol, struct minimal_symbol) <maybe_copied>:
3922 New member.
3923
1dd58850
TT
39242019-10-02 Tom Tromey <tromey@adacore.com>
3925
3926 * source.c (struct current_source_location): New.
3927 (current_source_key): New global.
3928 (current_source_symtab, current_source_line)
3929 (current_source_pspace): Remove.
3930 (get_source_location): New function.
3931 (get_current_source_symtab_and_line)
3932 (set_default_source_symtab_and_line)
3933 (set_current_source_symtab_and_line)
3934 (clear_current_source_symtab_and_line, select_source_symtab)
3935 (info_source_command, print_source_lines_base)
3936 (info_line_command, search_command_helper, _initialize_source):
3937 Update.
3938
5c281dbb
TT
39392019-10-02 Tom Tromey <tromey@adacore.com>
3940
3941 * source.c (select_source_symtab): Don't call
3942 decode_line_with_current_source.
3943
d3d32391
AB
39442019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
3945
3946 * symtab.c (lookup_global_symbol): Search global block.
3947
38583298
TT
39482019-10-02 Tom Tromey <tromey@adacore.com>
3949
3950 * coffread.c (process_coff_symbol): Update.
3951 * dwarf2read.c (var_decode_location, new_symbol): Update.
3952 * mdebugread.c (parse_symbol): Update.
3953 * objfiles.c (relocate_one_symbol): Update.
3954 * stabsread.c (define_symbol, fix_common_block)
3955 (scan_file_globals): Update.
3956 * symtab.h (SYMBOL_VALUE_ADDRESS): Expand to an rvalue.
3957 (SET_SYMBOL_VALUE_ADDRESS): New macro.
3958 * xcoffread.c (process_xcoff_symbol): Update.
3959
9344c18f
AA
39602019-10-02 Andreas Arnez <arnez@linux.ibm.com>
3961
3962 * MAINTAINERS: Update my email address.
3963
df07e2c7
AB
39642019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
3965
3966 * dwarf2read.c (struct type_unit_group) <tus>: Convert to
3967 std::vector.
3968 (build_type_psymtabs_reader): Update for std::vector.
3969 (build_type_psymtab_dependencies): Likewise.
3970 * dwarf2read.h: Remove use of DEF_VEC_P.
3971 (typedef sig_type_ptr): Delete.
3972
554ac434
AB
39732019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
3974
3975 * btrace.c (btrace_maint_clear): Update to handle change from VEC
3976 to std::vector.
3977 (btrace_maint_decode_pt): Likewise, and move allocation of the
3978 vector outside of the loop.
3979 (btrace_maint_update_packets): Update to handle change from VEC to
3980 std::vector.
3981 (btrace_maint_print_packets): Likewise.
3982 (maint_info_btrace_cmd): Likewise.
3983 * btrace.h: Remove use of DEF_VEC_O.
3984 (typedef btrace_pt_packet_s): Delete.
3985 (struct btrace_maint_info) <packets>: Change fromm VEC to
3986 std::vector.
3987 * gdbsupport/btrace-common.h: Remove 'vec.h' include.
3988
46f29a9a
AB
39892019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
3990
3991 * btrace.c (btrace_compute_ftrace_bts): Update for std::vector,
3992 make accesses into the vector constant references.
3993 (btrace_add_pc): Update for std::vector.
3994 (btrace_stitch_bts): Likewise.
3995 (parse_xml_btrace_block): Likewise.
3996 (btrace_maint_update_packets): Likewise.
3997 (btrace_maint_print_packets): Likewise.
3998 (maint_info_btrace_cmd): Likewise.
3999 * gdbsupport/btrace-common.c (btrace_data::fini): Update for
4000 std::vector.
4001 (btrace_data::empty): Likewise.
4002 (btrace_data_append): Likewise.
4003 * gdbsupport/btrace-common.h: Remove use of DEF_VEC_O.
4004 (typedef btrace_block_s): Delete.
4005 (struct btrace_block): Add constructor.
4006 (struct btrace_data_bts) <blocks>: Change to std::vector.
4007 * nat/linux-btrace.c (perf_event_read_bts): Update for
4008 std::vector.
4009 (linux_read_bts): Likewise.
4010
d770d56f
TT
40112019-10-01 Tom Tromey <tom@tromey.com>
4012
4013 * cli/cli-logging.c (show_logging_filename): Use styled_string.
4014
9d636d67
TT
40152019-10-01 Tom Tromey <tom@tromey.com>
4016
4017 * stack.c (print_frame, info_frame_command_core): Use
4018 styled_string.
4019 * linux-thread-db.c (try_thread_db_load_1)
4020 (try_thread_db_load_from_pdir_1): Use styled_string.
4021 * auto-load.c (file_is_auto_load_safe, execute_script_contents)
4022 (auto_load_section_scripts, info_auto_load_local_gdbinit)
4023 (maybe_print_unsupported_script_warning)
4024 (maybe_print_script_not_found_warning): Use styled_string.
4025 * ada-lang.c (user_select_syms): Use styled_string.
4026
7f6aba03
TT
40272019-10-01 Tom Tromey <tom@tromey.com>
4028
4029 * p-lang.c (pascal_printstr): Use metadata style.
4030 * value.c (show_convenience): Use metadata style.
4031 * valprint.c (valprint_check_validity, val_print_optimized_out)
4032 (val_print_not_saved, val_print_unavailable)
4033 (val_print_invalid_address, generic_val_print, val_print)
4034 (value_check_printable, val_print_array_elements): Use metadata
4035 style.
4036 * ui-out.h (class ui_out) <field_fmt>: New overload.
4037 <do_field_fmt>: Add style parameter.
4038 * ui-out.c (ui_out::field_fmt): New overload.
4039 * typeprint.c (type_print_unknown_return_type)
4040 (val_print_not_allocated, val_print_not_associated): Use metadata
4041 style.
4042 * tui/tui-out.h (class tui_ui_out) <do_field_fmt>: Add style
4043 parameter.
4044 * tui/tui-out.c (tui_ui_out::do_field_fmt): Update.
4045 * tracepoint.c (tvariables_info_1): Use metadata style.
4046 * stack.c (print_frame_arg, print_frame_info, print_frame)
4047 (info_frame_command_core): Use metadata style.
4048 * skip.c (info_skip_command): Use metadata style.
4049 * rust-lang.c (rust_print_enum): Use metadata style.
4050 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
4051 metadata style.
4052 * python/py-framefilter.c (py_print_single_arg): Use metadata
4053 style.
4054 * printcmd.c (do_one_display, print_variable_and_value): Use
4055 metadata style.
4056 * p-valprint.c (pascal_val_print)
4057 (pascal_object_print_value_fields): Use metadata style.
4058 * p-typeprint.c (pascal_type_print_base): Use metadata style.
4059 * mi/mi-out.h (class mi_ui_out) <do_field_fmt>: Add style
4060 parameter.
4061 * mi/mi-out.c (mi_ui_out::do_field_fmt): Update.
4062 * m2-valprint.c (m2_print_long_set): Use metadata style.
4063 * m2-typeprint.c (m2_print_type): Use metadata style.
4064 * infcmd.c (print_return_value_1): Use metadata style.
4065 * gnu-v3-abi.c (print_one_vtable): Use metadata style.
4066 * f-valprint.c (info_common_command_for_block): Use metadata
4067 style.
4068 * f-typeprint.c (f_type_print_base): Use metadata style.
4069 * expprint.c (print_subexp_standard): Use metadata style.
4070 * cp-valprint.c (cp_print_value_fields): Use metadata style.
4071 * cli/cli-style.h (class cli_style_option): Add constructor.
4072 (metadata_style): Declare.
4073 * cli/cli-style.c (metadata_style): New global.
4074 (_initialize_cli_style): Register metadata style.
4075 * cli-out.h (class cli_ui_out) <do_field_fmt>: Add style
4076 parameter.
4077 * cli-out.c (cli_ui_out::do_field_fmt): Update.
4078 * c-typeprint.c (c_type_print_base_struct_union)
4079 (c_type_print_base_1): Use metadata style.
4080 * breakpoint.c (watchpoint_value_print)
4081 (print_one_breakpoint_location): Use metadata style.
4082 * break-catch-syscall.c (print_one_catch_syscall): Use metadata
4083 style.
4084 * break-catch-sig.c (signal_catchpoint_print_one): Use metadata
4085 style.
4086 * ada-valprint.c (val_print_packed_array_elements, printstr)
4087 (print_field_values, ada_val_print_ref, ada_val_print): Use
4088 metadata style.
4089 * ada-typeprint.c (print_array_type, ada_print_type): Use metadata
4090 style.
4091 * ada-tasks.c (print_ada_task_info, info_task): Use metadata
4092 style.
4093 * ada-lang.c (user_select_syms): Use metadata style.
4094
14309bb6
TT
40952019-10-01 Tom Tromey <tom@tromey.com>
4096
4097 * cli/cli-cmds.c (pwd_command): Style output.
4098
6a831f06
PA
40992019-10-01 Pedro Alves <palves@redhat.com>
4100 Tom Tromey <tom@tromey.com>
4101
4102 * symtab.c (print_symbol_info): Use %ps.
4103 (print_msymbol_info): Use %ps.
4104 * symfile.c (symbol_file_add_with_addrs): Use %ps.
4105 * printcmd.c (print_variable_and_value): Use %ps.
4106 * macrocmd.c (show_pp_source_pos): Use %ps.
4107 * infrun.c (print_exited_reason): Use ui_out::message.
4108 * breakpoint.c (watchpoint_check, print_one_breakpoint_location)
4109 (describe_other_breakpoints): Use ui_out::message and new
4110 formats.
4111 (say_where): Use new formats.
4112 (bkpt_print_it, tracepoint_print_one_detail): Use ui_out::message
4113 and new formats.
4114
2a3c1174
PA
41152019-10-01 Pedro Alves <palves@redhat.com>
4116 Tom Tromey <tom@tromey.com>
4117
4118 * unittests/format_pieces-selftests.c: Add gdb_format parameter.
4119 (test_gdb_formats): New function.
4120 (run_tests): Call it.
4121 (test_format_specifier): Update.
4122 * utils.h (fputs_filtered): Update comment.
4123 (vfprintf_styled, vfprintf_styled_no_gdbfmt)
4124 (fputs_styled_unfiltered): Declare.
4125 * utils.c (fputs_styled_unfiltered): New function.
4126 (vfprintf_maybe_filtered): Add gdbfmt parameter.
4127 (vfprintf_filtered): Update.
4128 (vfprintf_unfiltered, vprintf_filtered): Update.
4129 (vfprintf_styled, vfprintf_styled_no_gdbfmt): New functions.
4130 * ui-out.h (enum ui_out_flag) <unfiltered_output,
4131 disallow_ui_out_field>: New constants.
4132 (enum class field_kind): New.
4133 (struct base_field_s, struct signed_field_s): New.
4134 (signed_field): New function.
4135 (struct string_field_s): New.
4136 (string_field): New function.
4137 (struct styled_string_s): New.
4138 (styled_string): New function.
4139 (class ui_out) <message>: Add comment.
4140 <vmessage, call_do_message>: New methods.
4141 <do_message>: Add style parameter.
4142 * ui-out.c (ui_out::call_do_message, ui_out::vmessage): New
4143 methods.
4144 (ui_out::message): Rewrite.
4145 * mi/mi-out.h (class mi_ui_out) <do_message>: Add style
4146 parameter.
4147 * mi/mi-out.c (mi_ui_out::do_message): Add style parameter.
4148 * gdbsupport/format.h (class format_pieces) <format_pieces>: Add
4149 gdb_extensions parameter.
4150 (class format_piece): Add parameter to constructor.
4151 (n_int_args): New field.
4152 * gdbsupport/format.c (format_pieces::format_pieces): Add
4153 gdb_extensions parameter. Handle '*'.
4154 * cli-out.h (class cli_ui_out) <do_message>: Add style parameter.
4155 * cli-out.c (cli_ui_out::do_message): Add style parameter. Call
4156 vfprintf_styled_no_gdbfmt.
4157 (cli_ui_out::do_field_string, cli_ui_out::do_spaces)
4158 (cli_ui_out::do_text, cli_ui_out::field_separator): Allow
4159 unfiltered output.
4160 * ui-style.h (struct ui_file_style) <ptr>: New method.
4161
0dfe5bfb
TT
41622019-10-01 Tom Tromey <tom@tromey.com>
4163
4164 * unittests/format_pieces-selftests.c: Update. Add final format.
4165 * gdbsupport/format.c (format_pieces::format_pieces): Don't add
4166 empty literal pieces.
4167
e43b10e1
TT
41682019-10-01 Tom Tromey <tom@tromey.com>
4169
4170 * ui-out.h (enum class ui_out_style_kind): Remove.
4171 (class ui_out) <field_string, field_stsream, do_field_string>:
4172 Change type of "style".
4173 * ui-out.c (ui_out::field_core_addr, ui_out::field_stream)
4174 (ui_out::field_string): Update.
4175 * tui/tui-out.h (class tui_ui_out) <do_field_string>: Change type
4176 of "style".
4177 * tui/tui-out.c (tui_ui_out::do_field_string): Update.
4178 * tracepoint.c (print_one_static_tracepoint_marker): Update.
4179 * stack.c (print_frame_arg, print_frame_info, print_frame):
4180 Update.
4181 * source.c (print_source_lines_base): Update.
4182 * solib.c (info_sharedlibrary_command): Update.
4183 * skip.c (info_skip_command): Update.
4184 * record-btrace.c (btrace_call_history_src_line)
4185 (btrace_call_history): Update.
4186 * python/py-framefilter.c (py_print_frame): Update.
4187 * mi/mi-out.h (class mi_ui_out) <do_field_string>: Change type of
4188 "style".
4189 * mi/mi-out.c (mi_ui_out::do_table_header)
4190 (mi_ui_out::do_field_signed, mi_ui_out::do_field_unsigned)
4191 (mi_ui_out::do_field_string): Update.
4192 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
4193 Update.
4194 * cli-out.h (class cli_ui_out) <do_field_string>: Change type of
4195 "style".
4196 * cli-out.c (cli_ui_out::do_table_header)
4197 (cli_ui_out::do_field_signed, cli_ui_out::do_field_unsigned)
4198 (cli_ui_out::do_field_skip, cli_ui_out::do_field_string)
4199 (cli_ui_out::do_field_fmt): Update.
4200 * breakpoint.c (print_breakpoint_location): Update.
4201 (update_static_tracepoint): Update.
4202
cd7c32c3
PW
42032019-10-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4204
4205 * main.c (relocate_gdbinit_path_maybe_in_datadir): Remove std::string
4206 conversion of gdb_datadir.
4207 (captured_main_1): Remove xstrdup when assigning to gdb_datadir,
4208 remove not needed c_str ().
4209
8fe0f950
AT
42102019-09-30 Ali Tamur <tamur@google.com>
4211
4212 * dwarf2read.c (skip_one_die): Handle DW_FORM_strx forms.
4213 (dwarf2_string_attr): Likewise.
4214
5f48f8f3
AT
42152019-09-30 Ali Tamur <tamur@google.com>
4216
4217 * dwarf2read.c (process_full_comp_unit): Remove whitespace at the EOL.
4218 (process_full_type_unit): Likewise.
4219 (dump_die_shallow): Likewise.
4220 (cu_debug_loc_section): Likewise.
4221
6fb08628
CB
42222019-09-28 Christian Biesinger <cbiesinger@google.com>
4223
4224 * minsyms.c (compare_minimal_symbols): Rename to...
4225 (minimal_symbol_is_less_than): ...this, and adjust to STL
4226 conventions (return bool, take arguments as references)
4227 (minimal_symbol_reader::install): Call std::sort instead
4228 of qsort.
4229
c7ee338a
CB
42302019-09-29 Christian Biesinger <cbiesinger@google.com>
4231
4232 * minsyms.h (msymbol_hash): Document that this is a case-insensitive
4233 hash and why.
4234 * objfiles.h (struct objfile_per_bfd_storage) <demangled_names_hash,
4235 msymbol_hash, msymbol_demangled_hash>: Improve comments.
4236
703a86c2
SM
42372019-09-30 Simon Marchi <simon.marchi@polymtl.ca>
4238
4239 * psymtab.c (add_psymbol_to_list): Move comment to psympriv.h.
4240 * psympriv.h (add_psymbol_to_list): Move comment here and update
4241 it.
4242
0df0352a
TV
42432019-09-29 Tom de Vries <tdevries@suse.de>
4244
4245 * contrib/cc-with-tweaks.sh (get_tmpdir): New function.
4246 Use $tmpdir/$(basename "$output_file").dwz instead of
4247 "${output_file}.dwz".
4248
ad75efa6
SM
42492019-09-28 Simon Marchi <simon.marchi@polymtl.ca>
4250
4251 PR gdb/25045
4252 * hppa-linux-nat.c: Include gdbarch.h.
4253
ececd218
CB
42542019-09-26 Christian Biesinger <cbiesinger@google.com>
4255
4256 * blockframe.c (find_pc_partial_function): Change return type to bool.
4257 * elfread.c (elf_gnu_ifunc_resolve_name): Likewise.
4258 * minsyms.c (in_gnu_ifunc_stub): Likewise.
4259 (stub_gnu_ifunc_resolve_name): Likewise.
4260 * symtab.c (compare_filenames_for_search): Likewise.
4261 (compare_glob_filenames_for_search): Likewise.
4262 (matching_obj_sections): Likewise.
4263 (symbol_matches_domain): Likewise.
4264 (find_line_symtab): Change out param EXACT_MATCH to bool *.
4265 (find_line_pc): Change return type to bool.
4266 (find_line_pc_range): Likewise.
4267 (producer_is_realview): Likewise.
4268 * symtab.h (symbol_matches_domain): Likewise.
4269 (find_pc_partial_function): Likewise.
4270 (find_pc_line_pc_range): Likewise.
4271 (in_gnu_ifunc_stub): Likewise.
4272 (struct gnu_ifunc_fns) <gnu_ifunc_resolve_name>: Likewise.
4273 (find_line_pc): Likewise.
4274 (find_line_pc_range): Likewise.
4275 (matching_obj_sections): Likewise.
4276 (find_line_symtab): Change out parameter to bool.
4277 (producer_is_realview): Change return type to bool.
4278 (compare_filenames_for_search): Likewise.
4279 (compare_glob_filenames_for_search): Likewise.
4280
27a900b8
TT
42812019-09-26 Tom Tromey <tom@tromey.com>
4282
4283 * Makefile.in (COMMON_SFILES): Remove gdb_usleep.c.
4284 (HFILES_NO_SRCDIR): Remove gdb_usleep.h.
4285 * gdb_usleep.h: Remove.
4286 * gdb_usleep.c: Remove.
4287 * utils.c: Don't include gdb_usleep.h.
4288
5d63b30a
TT
42892019-09-26 Tom Tromey <tromey@adacore.com>
4290
4291 * python/py-type.c (type_to_type_object): Call check_typedef
4292 for stub types.
4293
12904d37
TT
42942019-09-26 Tom Tromey <tom@tromey.com>
4295
4296 * utils.h (initialize_utils): Don't declare.
4297 * top.c (gdb_init): Don't call initialize_utils.
4298 * utils.c (initialize_utils): Remove. Move contents...
4299 (_initialize_utils): ... here.
4300
858f25f0
TT
43012019-09-25 Tom Tromey <tom@tromey.com>
4302
4303 * python/py-objfile.c (objfpy_get_build_id): Use bin2hex.
4304 * utils.h (make_hex_string): Don't declare.
4305 * utils.c (make_hex_string): Remove.
4306
3d435220
TV
43072019-09-24 Tom de Vries <tdevries@suse.de>
4308
4309 PR gdb/23815
4310 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers):
4311 Initialize xstateregs before ptrace PTRACE_GETREGSET call.
4312
ddd44b70
DD
43132019-09-23 Dimitar Dimitrov <dimitar@dinux.eu>
4314
4315 * NEWS: Mention new simulator port for PRU.
4316
f945dedf
CB
43172019-09-23 Christian Biesinger <cbiesinger@google.com>
4318
4319 * ada-exp.y (write_object_remaining): Update.
4320 * ada-lang.c (ada_decode): Return a std::string instead of a char*
4321 and eliminate the static buffer.
4322 (ada_decode_symbol): Update.
4323 (ada_la_decode): Update.
4324 (ada_sniff_from_mangled_name): Update.
4325 (is_valid_name_for_wild_match): Update.
4326 (ada_lookup_name_info::matches): Update and simplify.
4327 (name_matches_regex): Update.
4328 (ada_add_global_exceptions): Update.
4329 * ada-lang.h (ada_decode): Update signature.
4330 * ada-varobj.c (ada_varobj_describe_simple_array_child): Update.
4331 * dwarf-index-write.c (debug_names::insert): Update.
4332
7ab78ccb
SM
43332019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
4334
4335 * solib-svr4.c (svr4_iterate_over_objfiles_in_search_order): Fix
4336 formatting.
4337
9252448b
SM
43382019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
4339
4340 * breakpoint.h (bp_location) <inserted, permanent, duplicate>:
4341 Change "nonzero" to "true" in documentation.
4342
626ca2c0
CB
43432019-09-20 Christian Biesinger <cbiesinger@google.com>
4344
4345 * solib-darwin.c (darwin_lookup_lib_symbol): Remove.
4346 (_initialize_darwin_solib): Don't set
4347 darwin_so_ops.lookup_lib_global_symbol.
4348 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets): Call
4349 set_gdbarch_iterate_over_objfiles_in_search_order.
4350 (elf_lookup_lib_symbol): Rename to...
4351 (svr4_iterate_over_objfiles_in_search_order): this, and update
4352 to iterate semantics.
4353 (_initialize_svr4_solib): Don't set lookup_lib_global_symbol.
4354 * solib.c (solib_global_lookup): Remove.
4355 * solist.h (struct target_so_ops): Remove lookup_lib_global_symbol.
4356 (solib_global_lookup): Remove.
4357 * symtab.c (lookup_global_or_static_symbol): Remove call to
4358 solib_global_lookup.
4359
5a3a0d63
JB
43602019-09-20 Joel Brobecker <brobecker@adacore.com>
4361
4362 * NEWS: Move entries about default MI version now being
4363 version 3, and about the GDB/MI fix for multi-location
4364 breakpoints to the "since GDB 8.3" section.
4365
ffea1427
JB
43662019-09-20 Joel Brobecker <brobecker@adacore.com>
4367
4368 GDB 8.3.1 released.
4369
abf516c6
UW
43702019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
4371
4372 * NEWS: Mention that Cell/B.E. debugging support was removed.
4373 * MAINTAINERS: Remove spu target.
4374
4375 * config/djgpp/fnchange.lst: Remove entries for removed files.
4376
4377 * Makefile.in (ALL_TARGET_OBS): Remove solib-spu.o,
4378 spu-multiarch.o, and spu-tdep.o.
4379 (HFILES_NO_SRCDIR): Remove solib-spu.h and spu-tdep.h.
4380 (ALLDEPFILES): Remove solib-spu.c, spu-linux-nat.c,
4381 spu-multiarch.c, and spu-tdep.c.
4382 * spu-linux-nat.c: Remove file.
4383 * spu-multiarch.c: Remove file.
4384 * spu-tdep.c: Remove file.
4385 * spu-tdep.h: Remove file.
4386 * solib-spu.c: Remove file.
4387 * solib-spu.h: Remove file.
4388
4389 * configure.host (powerpc64*-*-linux*): Remove Cell/B.E. support.
4390 * configure.nat (spu-linux): Remove.
4391 * configure.tgt (powerpc*-*-linux*): Remove solib-spu.o and
4392 solib-multiarch.o from gdb_target_obs.
4393 (spu*-*-*): Remove.
4394
4395 * arch/ppc-linux-common.h (struct ppc_linux_features): Remove "cell"
4396 feature flag.
4397 (ppc_linux_no_features): Update.
4398 * arch/ppc-linux-common.c (ppc_linux_match_description): Remove
4399 Cell/B.E. support.
4400 * arch/ppc-linux-tdesc.h (tdesc_powerpc_cell32l): Remove declaration.
4401 (tdesc_powerpc_cell64l): Likewise.
4402 * nat/ppc-linux.h (PPC_FEATURE_CELL): Remove.
4403 * ppc-linux-nat.c (ppc_linux_nat_target::read_description): Remove
4404 Cell/B.E. support.
4405 * ppc-linux-tdep.h: Do not include "solib-spu.h" or "spu-tdep.h".
4406 Do not include "features/rs6000/powerpc-cell32l.c" or
4407 "features/rs6000/powerpc-cell64l.c".
4408 (ppc_linux_spu_section): Remove.
4409 (ppc_linux_core_read_description): Remove Cell/B.E. support.
4410 (spe_context_objfile, spe_context_lm_addr, spe_context_offset,
4411 spe_context_cache_ptid, spe_context_cache_ptid): Remove.
4412 (ppc_linux_spe_context_lookup): Remove.
4413 (ppc_linux_spe_context_inferior_created): Remove.
4414 (ppc_linux_spe_context_solib_loaded): Remove.
4415 (ppc_linux_spe_context_solib_unloaded): Remove.
4416 (ppc_linux_spe_context): Remove.
4417 (struct ppu2spu_cache): Remove.
4418 (ppu2spu_prev_arch, ppu2spu_this_id, ppu2spu_prev_register): Remove.
4419 (struct ppu2spu_data): Remove.
4420 (ppu2spu_unwind_register, ppu2spu_sniffer, ppu2spu_dealloc_cache,
4421 ppu2spu_unwind): Remove.
4422 (ppc_linux_init_abi): Remove Cell/B.E. support.
4423 * rs6000-tdep.h (rs6000_gdbarch_init): Remove Cell/B.E. support.
4424
4425 * features/Makefile (rs6000/powerpc-cell32l-expedite): Remove.
4426 (rs6000/powerpc-cell64l-expedite): Likewise
4427 (WHICH): Remove rs6000/powerpc-cell32l and rs6000/powerpc-cell64l.
4428 (XMLTOC): Remove rs6000/powerpc-cell32l.xml and
4429 rs6000/powerpc-cell64l.xml.
4430 * features/rs6000/powerpc-cell32l.xml: Remove.
4431 * features/rs6000/powerpc-cell64l.xml: Likewise.
4432 * features/rs6000/powerpc-cell32l.c: Remove generated file.
4433 * features/rs6000/powerpc-cell64l.c: Likewise.
4434 * regformats/rs6000/powerpc-cell32l.dat: Remove generated file.
4435 * regformats/rs6000/powerpc-cell64l.dat: Likewise.
4436 * regformats/reg-spu.dat: Remove.
4437
4438 * target.h (enum target_object): Remove TARGET_OBJECT_SPU.
4439 * corelow.c (struct spuid_list): Remove.
4440 (add_to_spuid_list): Remove.
4441 (core_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
4442 * remote.c (PACKET_qXfer_spu_read, PACKET_qXfer_spu_write): Remove.
4443 (remote_protocol_features): Remove associated entries.
4444 (_initialize_remote): No longer initialize them.
4445 (remote_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
4446 * linux-nat.c (SPUFS_MAGIC): Remove.
4447 (linux_proc_xfer_spu): Remove.
4448 (spu_enumerate_spu_ids): Remove.
4449 (linux_nat_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
4450 * linux-tdep.c (-linux_spu_make_corefile_notes): Remove.
4451 (linux_make_corefile_notes): No longer call it.
4452
4453 * regcache.c (cooked_read_test): Remove bfd_arch_spu special case.
4454 (cooked_write_test): Likewise.
4455
78e8cb91
TT
44562019-09-20 Tom Tromey <tom@tromey.com>
4457
4458 * NEWS: Mention case-sensitivity of TUI commands.
4459 * tui/tui-win.c (tui_set_focus_command): Now case-sensitive.
4460 (tui_set_win_height_command, parse_scrolling_args): Likewise.
4461 * tui/tui-layout.c (tui_layout_command): Now case-sensitive.
4462
f074b67e
TT
44632019-09-20 Tom Tromey <tom@tromey.com>
4464
4465 * tui/tui-source.c (tui_source_window::set_contents): Use
4466 make_unique_xstrdup.
4467 * tui/tui-disasm.c (tui_disasm_window::set_contents): Use
4468 make_unique_xstrdup.
4469
63c4bf19
TT
44702019-09-20 Tom Tromey <tom@tromey.com>
4471
4472 * tui/tui-data.c: Remove separator comments.
4473 * tui/tui-layout.c: Remove separator comments.
4474 * tui/tui-win.c: Remove separator comments.
4475 * tui/tui-wingeneral.c: Remove separator comments.
4476
43df9b2f
TT
44772019-09-20 Tom Tromey <tom@tromey.com>
4478
4479 * tui/tui.h (strcat_to_buf): Don't declare.
4480 * tui/tui.c (strcat_to_buf): Remove.
4481
7226433c
TT
44822019-09-20 Tom Tromey <tom@tromey.com>
4483
4484 * tui/tui-source.h (struct tui_source_window) <m_fullname>: Rename
4485 from "fullname".
4486 * tui/tui-source.c (tui_source_window::set_contents)
4487 (tui_source_window::location_matches_p)
4488 (tui_source_window::maybe_update): Update.
4489
80df3337
TT
44902019-09-20 Tom Tromey <tom@tromey.com>
4491
4492 * tui/tui-regs.h (struct tui_data_window) <get_current_group>:
4493 Update.
4494 <m_regs_content, m_regs_column_count, m_current_group>: Add "m_"
4495 prefix.
4496 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
4497 (tui_data_window::line_from_reg_element_no)
4498 (tui_data_window::first_reg_element_no_inline)
4499 (tui_data_window::show_registers)
4500 (tui_data_window::show_register_group)
4501 (tui_data_window::display_registers_from)
4502 (tui_data_window::display_registers_from_line)
4503 (tui_data_window::first_data_item_displayed)
4504 (tui_data_window::delete_data_content_windows)
4505 (tui_data_window::erase_data_content)
4506 (tui_data_window::do_scroll_vertical)
4507 (tui_data_window::refresh_window)
4508 (tui_data_window::check_register_values): Update.
4509
9923f347
TT
45102019-09-20 Tom Tromey <tom@tromey.com>
4511
4512 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN): Remove define.
4513 (struct tui_locator_window) <full_name, proc_name>: Now
4514 std::string.
4515 * tui/tui-stack.c (tui_locator_window::make_status_line)
4516 (tui_locator_window::set_locator_fullname)
4517 (tui_locator_window::set_locator_info): Update.
4518 * tui/tui-source.c (tui_source_window::set_contents)
4519 (tui_source_window::showing_source_p): Update.
4520
b76251ab
TT
45212019-09-20 Tom Tromey <tom@tromey.com>
4522
4523 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
4524 Don't call tui_locator_win_info_ptr.
4525
0891be08
TT
45262019-09-20 Tom Tromey <tom@tromey.com>
4527
4528 * tui/tui-win.c (tui_resize_all): Don't call refresh.
4529
1b935acf
TT
45302019-09-20 Tom Tromey <tom@tromey.com>
4531
4532 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use 1 as
4533 height for locator.
4534 * tui/tui-stack.c (tui_locator_window::rerender): Call scrollok.
4535 * tui/tui-layout.c (show_source_disasm_command, show_data)
4536 (show_source_or_disasm_and_command): Use 1 as height for locator.
4537
9abd8a65
TT
45382019-09-20 Tom Tromey <tom@tromey.com>
4539
4540 * tui/tui.c (tui_enable): Update.
4541 * tui/tui-win.c (tui_sigwinch_handler, tui_async_resize_screen):
4542 Update.
4543 * tui/tui-data.h (tui_win_resized, tui_set_win_resized_to):
4544 Update.
4545 * tui/tui-data.c (win_resized): Now bool.
4546 (tui_win_resized): Return bool.
4547 (tui_set_win_resized_to): Accept a bool.
4548
b5457826
TT
45492019-09-20 Tom Tromey <tom@tromey.com>
4550
4551 * tui/tui-regs.h (struct tui_data_window) <show_register_group>:
4552 Change type of "refresh_values_only".
4553 * tui/tui-regs.c (tui_data_window::show_register_group): Change
4554 type of "refresh_values_only".
4555
6b915f7d
TT
45562019-09-20 Tom Tromey <tom@tromey.com>
4557
4558 * tui/tui-disasm.c (struct tui_asm_line) <addr_string, insn>: Now
4559 std::string.
4560 (tui_disassemble): Add "pos" parameter.
4561 (tui_disasm_window::set_contents): Simplify.
4562
2ad52f6f
TT
45632019-09-20 Tom Tromey <tom@tromey.com>
4564
4565 * tui/tui-winsource.h (struct tui_source_window_base)
4566 <show_source_content>: Now private.
4567 * tui/tui-winsource.c
4568 (tui_source_window_base::show_source_content): Don't handle empty
4569 content case.
4570
b3b1bde6
TT
45712019-09-20 Tom Tromey <tom@tromey.com>
4572
4573 * tui/tui-layout.c (show_source_disasm_command)
4574 (show_source_or_disasm_and_command): Don't call
4575 show_source_content.
4576
71a25ed2
TT
45772019-09-20 Tom Tromey <tom@tromey.com>
4578
4579 * tui/tui-stack.h (struct tui_locator_window) <make_status_line>:
4580 Declare.
4581 * tui/tui-stack.c (tui_locator_window::make_status_line): Rename
4582 from tui_make_status_line.
4583 (tui_locator_window::rerender): Update.
4584
f8532154
TT
45852019-09-20 Tom Tromey <tom@tromey.com>
4586
4587 * tui/tui-stack.c (tui_make_status_line): Return std::string.
4588 (tui_locator_window::rerender): Update.
4589
2d81b349
TT
45902019-09-20 Tom Tromey <tom@tromey.com>
4591
4592 * tui/tui-winsource.h (struct tui_source_window_base)
4593 <~tui_source_window_base>: Don't declare.
4594 <fullname>: Remove.
4595 * tui/tui-winsource.c (~tui_source_window_base): Remove.
4596 * tui/tui-source.h (struct tui_source_window) <fullname>: New
4597 member.
4598 * tui/tui-source.c (tui_source_window::set_contents): Update.
4599 (tui_source_window::location_matches_p)
4600 (tui_source_window::maybe_update): Update.
4601
f14bec58
TT
46022019-09-20 Tom Tromey <tom@tromey.com>
4603
4604 * tui/tui-winsource.h (~tui_source_element): Remove.
4605 (tui_source_element): Update.
4606 (struct tui_source_element) <line>: Now a unique_xmalloc_ptr.
4607 * tui/tui-winsource.c (tui_show_source_line): Update.
4608 * tui/tui-source.c (tui_source_window::set_contents): Update.
4609 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
4610
78d5933a
TT
46112019-09-20 Tom Tromey <tom@tromey.com>
4612
4613 * tui/tui-data.h (tui_clear_source_windows_detail): Don't
4614 declare.
4615 * tui/tui-layout.c (tui_add_win_to_layout): Don't call
4616 tui_clear_source_windows_detail.
4617 * tui/tui-winsource.h (struct tui_source_window_base)
4618 <clear_detail>: Don't declare.
4619 * tui/tui-winsource.c (tui_source_window_base::clear_detail):
4620 Remove.
4621 * tui/tui-data.c (tui_clear_source_windows_detail): Remove.
4622
d4207696
TT
46232019-09-20 Tom Tromey <tromey@adacore.com>
4624
4625 PR ada/24919:
4626 * block.c (contained_in): Fix final return value.
4627
00f93c44
AM
46282019-09-20 Alan Modra <amodra@gmail.com>
4629
4630 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Use bfd_set_usrdata.
4631 * dwarf2read.c (dwarf2_read_gdb_index, dwarf2_read_debug_names),
4632 (read_indirect_string_from_dwz): Use bfd accessor.
4633 * dwarf2read.h (struct dwz_file <filename>): Likewise.
4634 * machoread.c (macho_symfile_read_all_oso): Likewise.
4635 * solib.c (solib_bfd_open): Likewise.
4636
e4153ae6
CB
46372019-09-19 Christian Biesinger <cbiesinger@google.com>
4638
4639 * eval.c: Move declaration of overload_resolution to...
4640 * value.h: ...here.
4641
c7ae7675
CB
46422019-09-19 Christian Biesinger <cbiesinger@google.com>
4643
4644 * arm-linux-nat.c: Remove extern declaration for arm_apcs_32.
4645 * arm-linux-tdep.c: Likewise.
4646 * arm-nbsd-nat.c: Likewise.
4647 * arm-tdep.h: Declare arm_apcs_32.
4648 * arm-tdep.c: Move documentation for arm_apcs_32 to arm-tdep.h.
4649
e86f08d2
CB
46502019-09-19 Christian Biesinger <cbiesinger@google.com>
4651
4652 * dwarf2loc.c: Remove extern declaration of dwarf_always_disassemble.
4653 * dwarf2read.h: Declare dwarf_always_disassemble.
4654
f64e2f40
TV
46552019-09-19 Tom de Vries <tdevries@suse.de>
4656
4657 PR gdb/25009
4658 * source-cache.c (source_cache::ensure): Catch exception thrown during
4659 construction of the highlighter.
4660
fd361982
AM
46612019-09-18 Alan Modra <amodra@gmail.com>
4662
4663 * aarch64-linux-tdep.c, * arm-tdep.c, * auto-load.c,
4664 * coff-pe-read.c, * coffread.c, * corelow.c, * dbxread.c,
4665 * dicos-tdep.c, * dwarf2-frame.c, * dwarf2read.c, * elfread.c,
4666 * exec.c, * fbsd-tdep.c, * gcore.c, * gdb_bfd.c, * gdb_bfd.h,
4667 * hppa-tdep.c, * i386-cygwin-tdep.c, * i386-fbsd-tdep.c,
4668 * i386-linux-tdep.c, * jit.c, * linux-tdep.c, * machoread.c,
4669 * maint.c, * mdebugread.c, * minidebug.c, * mips-linux-tdep.c,
4670 * mips-sde-tdep.c, * mips-tdep.c, * mipsread.c, * nto-tdep.c,
4671 * objfiles.c, * objfiles.h, * osabi.c, * ppc-linux-tdep.c,
4672 * ppc64-tdep.c, * record-btrace.c, * record-full.c, * remote.c,
4673 * rs6000-aix-tdep.c, * rs6000-tdep.c, * s390-linux-tdep.c,
4674 * s390-tdep.c, * solib-aix.c, * solib-dsbt.c, * solib-frv.c,
4675 * solib-spu.c, * solib-svr4.c, * solib-target.c,
4676 * spu-linux-nat.c, * spu-tdep.c, * symfile-mem.c, * symfile.c,
4677 * symmisc.c, * symtab.c, * target.c, * windows-nat.c,
4678 * xcoffread.c, * cli/cli-dump.c, * compile/compile-object-load.c,
4679 * mi/mi-interp.c: Update throughout for bfd section macro and
4680 function changes.
4681 * gcore (gcore_create_callback): Use bfd_set_section_lma.
4682 * spu-tdep.c (spu_overlay_new_objfile): Likewise.
4683
11061048
TT
46842019-09-18 Tom Tromey <tom@tromey.com>
4685
4686 * NEWS: Add entry.
4687 * tui/tui.c (tui_initialize_readline): Set name of keymap. Do not
4688 call rl_initialize.
4689 (tui_enable): Do not call rl_initialize.
4690
7a27b85f
CG
46912019-09-18 Christian Groessler <chris@groessler.org>
4692
4693 * alpha-linux-nat.c: Include gdbarch.h.
4694
f64eea3a
SM
46952019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
4696
4697 * ui-file.c: Include cli/cli-style.h.
4698 (term_cli_styling): Remove cli_styling declaration.
4699
e6f7f6d1
AM
47002019-09-18 Alan Modra <amodra@gmail.com>
4701
4702 * arm-tdep.c (arm_record_special_symbol): Update bfd_get_section
4703 to bfd_asymbol_section.
4704
1d38e9d1
AM
47052019-09-18 Alan Modra <amodra@gmail.com>
4706
4707 * amd64-dicos-tdep.c (amd64_dicos_osabi_sniffer): Constify target.
4708 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
4709 * i386-dicos-tdep.c (i386_dicos_osabi_sniffer): Likewise.
4710
90d92a63
AM
47112019-09-18 Alan Modra <amodra@gmail.com>
4712
4713 * solib-spu.c (spu_bfd_open): Use bfd_set_filename.
4714 * spu-linux-nat.c (spu_bfd_open): Likewise.
4715
a3d181d2
CB
47162019-09-18 Christian Biesinger <cbiesinger@google.com>
4717
4718 * dwarf2loc.c: Change extern declaration of dwarf_always_disassemble
4719 to bool to match definition in dwarf2read.c.
4720
491144b5
CB
47212019-09-17 Christian Biesinger <cbiesinger@google.com>
4722
4723 * ada-lang.c (ada_ignore_descriptive_types_p): Change to bool.
4724 (print_signatures): Likewise.
4725 (trust_pad_over_xvs): Likewise.
4726 * arch/aarch64-insn.c (aarch64_debug): Likewise.
4727 * arch/aarch64-insn.h (aarch64_debug): Likewise.
4728 * arm-linux-nat.c (arm_apcs_32): Likewise.
4729 * arm-linux-tdep.c (arm_apcs_32): Likewise.
4730 * arm-nbsd-nat.c (arm_apcs_32): Likewise.
4731 * arm-tdep.c (arm_debug): Likewise.
4732 (arm_apcs_32): Likewise.
4733 * auto-load.c (debug_auto_load): Likewise.
4734 (auto_load_gdb_scripts): Likewise.
4735 (global_auto_load): Likewise.
4736 (auto_load_local_gdbinit): Likewise.
4737 (auto_load_local_gdbinit_loaded): Likewise.
4738 * auto-load.h (global_auto_load): Likewise.
4739 (auto_load_local_gdbinit): Likewise.
4740 (auto_load_local_gdbinit_loaded): Likewise.
4741 * breakpoint.c (disconnected_dprintf): Likewise.
4742 (breakpoint_proceeded): Likewise.
4743 (automatic_hardware_breakpoints): Likewise.
4744 (always_inserted_mode): Likewise.
4745 (target_exact_watchpoints): Likewise.
4746 (_initialize_breakpoint): Update.
4747 * breakpoint.h (target_exact_watchpoints): Change to bool.
4748 * btrace.c (maint_btrace_pt_skip_pad): Likewise.
4749 * cli/cli-cmds.c (trace_commands): Likewise.
4750 * cli/cli-cmds.h (trace_commands): Likewise.
4751 * cli/cli-decode.c (add_setshow_boolean_cmd): Change int* argument
4752 to bool*.
4753 * cli/cli-logging.c (logging_overwrite): Change to bool.
4754 (logging_redirect): Likewise.
4755 (debug_redirect): Likewise.
4756 * cli/cli-option.h (option_def) <boolean>: Change return type to bool*.
4757 (struct boolean_option_def) <get_var_address_cb_>: Change return type
4758 to bool.
4759 <boolean_option_def>: Update.
4760 (struct flag_option_def): Change default type of Context to bool
4761 from int.
4762 <flag_option_def>: Change return type of var_address_cb_ to bool*.
4763 * cli/cli-setshow.c (do_set_command): Cast to bool* instead of int*.
4764 (get_setshow_command_value_string): Likewise.
4765 * cli/cli-style.c (cli_styling): Change to bool.
4766 (source_styling): Likewise.
4767 * cli/cli-style.h (source_styling): Likewise.
4768 (cli_styling): Likewise.
4769 * cli/cli-utils.h (struct qcs_flags) <quiet, cont, silent>: Change
4770 to bool.
4771 * command.h (var_types): Update comment.
4772 (add_setshow_boolean_cmd): Change int* var argument to bool*.
4773 * compile/compile-cplus-types.c (debug_compile_cplus_types): Change to
4774 bool.
4775 (debug_compile_cplus_scopes): Likewise.
4776 * compile/compile-internal.h (compile_debug): Likewise.
4777 * compile/compile.c (compile_debug): Likewise.
4778 (struct compile_options) <raw>: Likewise.
4779 * cp-support.c (catch_demangler_crashes): Likewise.
4780 * cris-tdep.c (usr_cmd_cris_version_valid): Likewise.
4781 (usr_cmd_cris_dwarf2_cfi): Likewise.
4782 * csky-tdep.c (csky_debug): Likewise.
4783 * darwin-nat.c (enable_mach_exceptions): Likewise.
4784 * dcache.c (dcache_enabled_p): Likewise.
4785 * defs.h (info_verbose): Likewise.
4786 * demangle.c (demangle): Likewise.
4787 (asm_demangle): Likewise.
4788 * dwarf-index-cache.c (debug_index_cache): Likewise.
4789 * dwarf2-frame.c (dwarf2_frame_unwinders_enabled_p): Likewise.
4790 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Likewise.
4791 * dwarf2read.c (check_physname): Likewise.
4792 (use_deprecated_index_sections): Likewise.
4793 (dwarf_always_disassemble): Likewise.
4794 * eval.c (overload_resolution): Likewise.
4795 * event-top.c (set_editing_cmd_var): Likewise.
4796 (exec_done_display_p): Likewise.
4797 * event-top.h (set_editing_cmd_var): Likewise.
4798 (exec_done_display_p): Likewise.
4799 * exec.c (write_files): Likewise.
4800 * fbsd-nat.c (debug_fbsd_lwp): Likewise
4801 (debug_fbsd_nat): Likewise.
4802 * frame.h (struct frame_print_options) <print_raw_frame_arguments>:
4803 Likewise.
4804 (struct set_backtrace_options) <backtrace_past_main>: Likewise.
4805 <backtrace_past_entry> Likewise.
4806 * gdb-demangle.h (demangle): Likewise.
4807 (asm_demangle): Likewise.
4808 * gdb_bfd.c (bfd_sharing): Likewise.
4809 * gdbcore.h (write_files): Likewise.
4810 * gdbsupport/common-debug.c (show_debug_regs): Likewise.
4811 * gdbsupport/common-debug.h (show_debug_regs): Likewise.
4812 * gdbthread.h (print_thread_events): Likewise.
4813 * gdbtypes.c (opaque_type_resolution): Likewise.
4814 (strict_type_checking): Likewise.
4815 * gnu-nat.c (gnu_debug_flag): Likewise.
4816 * guile/scm-auto-load.c (auto_load_guile_scripts): Likewise.
4817 * guile/scm-param.c (pascm_variable): Add boolval.
4818 (add_setshow_generic): Update.
4819 (pascm_param_value): Update.
4820 (pascm_set_param_value_x): Update.
4821 * hppa-tdep.c (hppa_debug): Change to bool..
4822 * infcall.c (may_call_functions_p): Likewise.
4823 (coerce_float_to_double_p): Likewise.
4824 (unwind_on_signal_p): Likewise.
4825 (unwind_on_terminating_exception_p): Likewise.
4826 * infcmd.c (startup_with_shell): Likewise.
4827 * inferior.c (print_inferior_events): Likewise.
4828 * inferior.h (startup_with_shell): Likewise.
4829 (print_inferior_events): Likewise.
4830 * infrun.c (step_stop_if_no_debug): Likewise.
4831 (detach_fork): Likewise.
4832 (debug_displaced): Likewise.
4833 (disable_randomization): Likewise.
4834 (non_stop): Likewise.
4835 (non_stop_1): Likewise.
4836 (observer_mode): Likewise.
4837 (observer_mode_1): Likewise.
4838 (set_observer_mode): Update.
4839 (sched_multi): Change to bool.
4840 * infrun.h (debug_displaced): Likewise.
4841 (sched_multi): Likewise.
4842 (step_stop_if_no_debug): Likewise.
4843 (non_stop): Likewise.
4844 (disable_randomization): Likewise.
4845 * linux-tdep.c (use_coredump_filter): Likewise.
4846 (dump_excluded_mappings): Likewise.
4847 * linux-thread-db.c (auto_load_thread_db): Likewise.
4848 (check_thread_db_on_load): Likewise.
4849 * main.c (captured_main_1): Update.
4850 * maint-test-options.c (struct test_options_opts) <flag_opt, xx1_opt,
4851 xx2_opt, boolean_opt>: Change to bool.
4852 * maint-test-settings.c (maintenance_test_settings_boolean): Likewise.
4853 * maint.c (maintenance_profile_p): Likewise.
4854 (per_command_time): Likewise.
4855 (per_command_space): Likewise.
4856 (per_command_symtab): Likewise.
4857 * memattr.c (inaccessible_by_default): Likewise.
4858 * mi/mi-main.c (mi_async): Likewise.
4859 (mi_async_1): Likewise.
4860 * mips-tdep.c (mips64_transfers_32bit_regs_p): Likewise.
4861 * nat/fork-inferior.h (startup_with_shell): Likewise.
4862 * nat/linux-namespaces.c (debug_linux_namespaces): Likewise.
4863 * nat/linux-namespaces.h (debug_linux_namespaces): Likewise.
4864 * nios2-tdep.c (nios2_debug): Likewise.
4865 * or1k-tdep.c (or1k_debug): Likewise.
4866 * parse.c (parser_debug): Likewise.
4867 * parser-defs.h (parser_debug): Likewise.
4868 * printcmd.c (print_symbol_filename): Likewise.
4869 * proc-api.c (procfs_trace): Likewise.
4870 * python/py-auto-load.c (auto_load_python_scripts): Likewise.
4871 * python/py-param.c (union parmpy_variable): Add "bool boolval" field.
4872 (set_parameter_value): Update.
4873 (add_setshow_generic): Update.
4874 * python/py-value.c (copy_py_bool_obj): Change argument from int*
4875 to bool*.
4876 * python/python.c (gdbpy_parameter_value): Cast to bool* instead of
4877 int*.
4878 * ravenscar-thread.c (ravenscar_task_support): Change to bool.
4879 * record-btrace.c (record_btrace_target::store_registers): Update.
4880 * record-full.c (record_full_memory_query): Change to bool.
4881 (record_full_stop_at_limit): Likewise.
4882 * record-full.h (record_full_memory_query): Likewise.
4883 * remote-notif.c (notif_debug): Likewise.
4884 * remote-notif.h (notif_debug): Likewise.
4885 * remote.c (use_range_stepping): Likewise.
4886 (interrupt_on_connect): Likewise.
4887 (remote_break): Likewise.
4888 * ser-tcp.c (tcp_auto_retry): Likewise.
4889 * ser-unix.c (serial_hwflow): Likewise.
4890 * skip.c (debug_skip): Likewise.
4891 * solib-aix.c (solib_aix_debug): Likewise.
4892 * spu-tdep.c (spu_stop_on_load_p): Likewise.
4893 (spu_auto_flush_cache_p): Likewise.
4894 * stack.c (struct backtrace_cmd_options) <full, no_filters, hide>:
4895 Likewise.
4896 (struct info_print_options) <quiet>: Likewise.
4897 * symfile-debug.c (debug_symfile): Likewise.
4898 * symfile.c (auto_solib_add): Likewise.
4899 (separate_debug_file_debug): Likewise.
4900 * symfile.h (auto_solib_add): Likewise.
4901 (separate_debug_file_debug): Likewise.
4902 * symtab.c (basenames_may_differ): Likewise.
4903 (struct filename_partial_match_opts) <dirname, basename>: Likewise.
4904 (struct info_print_options) <quiet, exclude_minsyms>: Likewise.
4905 (struct info_types_options) <quiet>: Likewise.
4906 * symtab.h (demangle): Likewise.
4907 (basenames_may_differ): Likewise.
4908 * target-dcache.c (stack_cache_enabled_1): Likewise.
4909 (code_cache_enabled_1): Likewise.
4910 * target.c (trust_readonly): Likewise.
4911 (may_write_registers): Likewise.
4912 (may_write_memory): Likewise.
4913 (may_insert_breakpoints): Likewise.
4914 (may_insert_tracepoints): Likewise.
4915 (may_insert_fast_tracepoints): Likewise.
4916 (may_stop): Likewise.
4917 (auto_connect_native_target): Likewise.
4918 (target_stop_and_wait): Update.
4919 (target_async_permitted): Change to bool.
4920 (target_async_permitted_1): Likewise.
4921 (may_write_registers_1): Likewise.
4922 (may_write_memory_1): Likewise.
4923 (may_insert_breakpoints_1): Likewise.
4924 (may_insert_tracepoints_1): Likewise.
4925 (may_insert_fast_tracepoints_1): Likewise.
4926 (may_stop_1): Likewise.
4927 * target.h (target_async_permitted): Likewise.
4928 (may_write_registers): Likewise.
4929 (may_write_memory): Likewise.
4930 (may_insert_breakpoints): Likewise.
4931 (may_insert_tracepoints): Likewise.
4932 (may_insert_fast_tracepoints): Likewise.
4933 (may_stop): Likewise.
4934 * thread.c (struct info_threads_opts) <show_global_ids>: Likewise.
4935 (make_thread_apply_all_options_def_group): Change argument from int*
4936 to bool*.
4937 (thread_apply_all_command): Update.
4938 (print_thread_events): Change to bool.
4939 * top.c (confirm): Likewise.
4940 (command_editing_p): Likewise.
4941 (history_expansion_p): Likewise.
4942 (write_history_p): Likewise.
4943 (info_verbose): Likewise.
4944 * top.h (confirm): Likewise.
4945 (history_expansion_p): Likewise.
4946 * tracepoint.c (disconnected_tracing): Likewise.
4947 (circular_trace_buffer): Likewise.
4948 * typeprint.c (print_methods): Likewise.
4949 (print_typedefs): Likewise.
4950 * utils.c (debug_timestamp): Likewise.
4951 (sevenbit_strings): Likewise.
4952 (pagination_enabled): Likewise.
4953 * utils.h (sevenbit_strings): Likewise.
4954 (pagination_enabled): Likewise.
4955 * valops.c (overload_resolution): Likewise.
4956 * valprint.h (struct value_print_options) <prettyformat_arrays,
4957 prettyformat_structs, vtblprint, unionprint, addressprint, objectprint,
4958 stop_print_at_null, print_array_indexes, deref_ref, static_field_print,
4959 pascal_static_field_print, raw, summary, symbol_print, finish_print>:
4960 Likewise.
4961 * windows-nat.c (new_console): Likewise.
4962 (cygwin_exceptions): Likewise.
4963 (new_group): Likewise.
4964 (debug_exec): Likewise.
4965 (debug_events): Likewise.
4966 (debug_memory): Likewise.
4967 (debug_exceptions): Likewise.
4968 (useshell): Likewise.
4969 * windows-tdep.c (maint_display_all_tib): Likewise.
4970 * xml-support.c (debug_xml): Likewise.
4971
f1b620e9
MG
49722019-09-17 Mike Gulick <mgulick@mathworks.com>
4973
4974 * source.c (prepare_path_for_appending): New function.
4975 (openp): Make use of new function.
4976 (find_and_open_source): Search for the compilation directory and
4977 source file as a relative path beneath the directory search path.
4978
67f3ed6a
AB
49792019-09-17 Andrew Burgess <andrew.burgess@embecosm.com>
4980
4981 * source-cache.c (source_cache::get_line_charpos): Catch
4982 exceptions and return false, this matches the behaviour documented
4983 in the header file.
4984
74332189
JB
49852019-09-17 Joel Brobecker <brobecker@adacore.com>
4986
4987 * ada-tasks.c (info_task): Remove quoting of the task's name.
4988
f2f24aa9
CB
49892019-09-16 Christian Biesinger <cbiesinger@google.com>
4990
4991 * symfile.c (auto_solib_add): Replace comment with a reference
4992 to the header file.
4993
6a062a93
CB
49942019-09-14 Christian Biesinger <cbiesinger@google.com>
4995
4996 * NEWS: Mention that gdb can now be compiled with Python 3
4997 on Windows.
4998
ec6c8338
AB
49992019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
5000
5001 * maint.c (maint_print_section_data::maint_print_section_data):
5002 Force use of 'float log10 (float)' by casting the argument to
5003 float.
5004
aa17805f
AB
50052019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
5006
5007 * maint.c: Add 'cmath' include.
5008 (struct maint_print_section_data): New structure.
5009 (print_section_index): New function.
5010 (print_bfd_section_info): Add header comment, small whitespace
5011 cleanup, and update to call new print_section_index function.
5012 (print_objfile_section_info): Likewise.
5013 (maint_obj_section_from_bfd_section): New function.
5014 (print_bfd_section_info_maybe_relocated): New function.
5015 (maintenance_info_sections): Add header comment, always use
5016 bfd_map_over_sections instead of ALL_OBJFILE_OSECTIONS.
5017
3dd9bb46
AB
50182019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
5019
5020 * psymtab.c (find_pc_sect_psymtab): Move baseaddr local into more
5021 inner scope, add check that the objfile has psymtabs before
5022 checking psymtabs_addrmap.
5023 * psymtab.h (psymtab_storage) <psymtabs_addrmap>: Extend comment.
5024
4993045d
PW
50252019-09-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5026
5027 * NEWS: Announce that Ada task names are now shown at more places,
5028 and between quotes (except in info task output).
5029 * gdb/ada-tasks.c (task_to_str): New function.
5030 (display_current_task_id): Call task_to_str.
5031 (task_command_1): Likewise.
5032 (print_ada_task_info): In non-mi mode, Properly align headers and data
5033 when task-id length is > 9 (9 is the default for a 32 bits CORE_ADDR).
5034
7a289707
RO
50352019-09-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5036
5037 * procfs.c (procfs_target::wait) <PR_FAULTED>: Get signal from
5038 prstatus.pr_lwp.pr_info instead of making it up.
5039
f2aec7f6
CB
50402019-09-11 Christian Biesinger <cbiesinger@google.com>
5041
5042 * auto-load.c (auto_load_expand_dir_vars): Update.
5043 * defs.h (gdb_datadir): Change to std::string.
5044 (python_libdir): Likewise.
5045 (relocate_gdb_directory): Change return type to std::string.
5046 * guile/guile.c (gdbscm_data_directory): Update.
5047 (initialize_scheme_side): Update.
5048 * jit.c (jit_reader_dir): Change to std::string.
5049 (jit_reader_load_command): Update.
5050 * main.c (gdb_datadir): Change to std::string.
5051 (python_libdir): Likewise.
5052 (set_gdb_data_directory): Update.
5053 (relocate_path): Change to return std::string.
5054 (relocate_gdb_directory): Change to return std::string.
5055 (relocate_gdbinit_path_maybe_in_datadir): Update.
5056 (captured_main_1): Update.
5057 * python/python.c (do_start_initialization): Update.
5058 * top.c (show_gdb_datadir): Update.
5059 * xml-syscall.c (xml_init_syscalls_info): Update.
5060 (init_syscalls_info): Update.
5061
9224a013
CB
50622019-09-11 Christian Biesinger <cbiesinger@google.com>
5063
5064 * main.c (relocate_gdbinit_path_maybe_in_datadir): Factor this code
5065 out of get_init_files.
5066 (get_init_files): Update.
5067
f48cd836
CB
50682019-09-11 Christian Biesinger <cbiesinger@google.com>
5069
5070 * main.c (get_init_files): Change to use std::string.
5071 (captured_main_1): Update.
5072 (print_gdb_help): Update.
5073
9cab7ecd
AT
50742019-09-11 Ali Tamur <tamur@google.com>
5075
5076 *gdb/target-float.c (host_float_ops<T>::to_longest): Update
5077 implementation.
5078
67547d89
CB
50792019-09-11 Christian Biesinger <cbiesinger@google.com>
5080
5081 * dbxread.c (read_dbx_symtab): Update.
5082 * dwarf2read.c (load_partial_dies): Update.
5083 * mdebugread.c (parse_partial_symbols): Update.
5084 (handle_psymbol_enumerators): Update.
5085 * psympriv.h (add_psymbol_to_list): Change type of copy_names to bool.
5086 * psymtab.c (add_psymbol_to_bcache): Likewise.
5087 (add_psymbol_to_list): Likewise.
5088 * symtab.c (symbol_set_names): Likewise.
5089 * symtab.h (symbol_set_names): Likewise.
5090 * xcoffread.c (scan_xcoff_symtab): Update.
5091
64b2d4a0
TT
50922019-09-11 Tom Tromey <tom@tromey.com>
5093
5094 * symfile-mem.c (symbol_file_add_from_memory): Use
5095 bfd_set_filename.
5096 * solib-darwin.c (darwin_bfd_open): Use bfd_set_filename.
5097 * solib-aix.c (solib_aix_bfd_open): Use bfd_set_filename.
5098
3b00ef10
TT
50992019-09-10 Tom Tromey <tromey@adacore.com>
5100
5101 * dwarf-index-write.c (write_psymbols): Extend error message.
5102 (debug_names::insert): Add Ada code.
5103 (debug_names::write_psymbols): Remove Ada check.
5104 (debug_names) <m_string_obstack>: New member.
5105 * dwarf2read.c (gdb_index_symbol_name_matcher): Remove.
5106 (gdb_index_symbol_name_matcher::matches): Remove.
5107 (mapped_index_base::find_name_components_bounds): Add "lang"
5108 parameter.
5109 (mapped_index_base::build_name_components): Also split names
5110 according to Ada syntax.
5111 (dw2_expand_symtabs_matching_symbol): Loop over languages. Change
5112 type of "match_callback".
5113 (check_match, check_find_bounds_finds)
5114 (dw2_expand_symtabs_matching): Update.
5115 (dw2_debug_names_iterator): Add new constructor.
5116 (dw2_debug_names_map_matching_symbols): New function.
5117 (dw2_debug_names_expand_symtabs_matching): Update.
5118 (dwarf2_debug_names_functions): Use
5119 dw2_debug_names_map_matching_symbols.
5120
aa391654
TT
51212019-09-10 Tom Tromey <tromey@adacore.com>
5122
5123 * dwarf2read.c (dw2_get_file_names_reader): Add the
5124 CU's file name to the results.
5125
b054970d
TT
51262019-09-10 Tom Tromey <tromey@adacore.com>
5127
5128 * ada-lang.c (add_nonlocal_symbols): Combine calls to
5129 map_matching_symbols. Update.
5130 * dwarf2read.c (dw2_map_matching_symbols): Update.
5131 * psymtab.c (match_partial_symbol): Change type; update.
5132 (psym_map_matching_symbols): Likewise.
5133 * symfile-debug.c (debug_qf_map_matching_symbols): Change
5134 type; update.
5135 * symfile.h (struct quick_symbol_functions)
5136 <map_matching_symbols>: Change "name" to be a lookup_name_info.
5137 Remove "match".
5138
6a3dbf1b
TT
51392019-09-10 Tom Tromey <tromey@adacore.com>
5140
5141 * psymtab.c (map_block): Remove.
5142 (psym_map_matching_symbols): Use iterate_over_symbols_terminated.
5143 * symtab.c (iterate_over_symbols_terminated): New function.
5144 * symtab.c (iterate_over_symbols_terminated): Declare.
5145
6969f124
TT
51462019-09-10 Tom Tromey <tromey@adacore.com>
5147
5148 * ada-lang.c (ada_iterate_over_symbols): Return bool.
5149 * language.h (struct language_defn) <la_iterate_over_symbols>:
5150 Return bool.
5151 * symtab.c (iterate_over_symbols): Return bool.
5152 * symtab.h (iterate_over_symbols): Return bool.
5153
199b4314
TT
51542019-09-10 Tom Tromey <tromey@adacore.com>
5155
5156 * ada-lang.c (aux_add_nonlocal_symbols): Change type.
5157 (add_nonlocal_symbols): Update.
5158 * dwarf2read.c (dw2_map_matching_symbols): Change type.
5159 * psymtab.c (map_block, psym_map_matching_symbols): Change type.
5160 * symfile-debug.c (debug_qf_map_matching_symbols): Change type.
5161 * symfile.h (struct quick_symbol_functions) <map_matching_symbols>:
5162 Change type of "callback". Remove "data".
5163
a084a2a6
AT
5164
51652019-09-09 Ali Tamur <tamur@google.com>
5166
5167 * dwarf2read.c (comp_unit_head): Update comment.
5168 (dwarf2_dwo_name): New function declaration.
5169 (dwarf_unit_type_name): New function declaration.
5170 (read_comp_unit_head): Add support for new compilation units,
5171 DW_UT_partial, DW_UT_skeleton, DW_UT_split_compile, DW_UT_split_type.
5172 Particularly, DW_UT_skeleton and DW_UT_split_compile have dwo_id
5173 (currently named as "signature") in their header. Also clarify error
5174 messages.
5175 (lookup_dwo_id): New function. Returns the dwo id of the given
5176 compile unit.
5177 (lookup_dwo_unit): Use the new lookup_dwo_id function.
5178 (init_cutu_and_read_dies): Use the new dwarf2_dwo_name and lookup_dwo_id
5179 functions.
5180 (create_dwo_cu_reader): Use the added lookup_dwo_id function.
5181 (dwarf2_dwo_name): Get the dwo name if present.
5182 (dwarf_unit_type_name): Convert DW_UT_* types to string for diagnostic
5183 purposes.
5184
25a2915e
TT
51852019-09-09 Tom Tromey <tom@tromey.com>
5186
5187 * tui/tui-win.c (tui_all_windows_info): Use ui_out.
5188
e4df0874
PW
51892019-09-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5190
5191 * python/python.c (do_start_initialization): Make progname_copy static,
5192 to avoid a leak report.
5193
8634b462
TT
51942019-09-08 Tom Tromey <tom@tromey.com>
5195
5196 * tui/tui-wingeneral.c (box_win): Truncate long window titles.
5197
c7f839cb
SM
51982019-09-07 Simon Marchi <simon.marchi@efficios.com>
5199
5200 * dwarf2read.c (struct dw2_symtab_iterator) <block_index>:
5201 Change type to gdb::optional<block_enum>.
5202 (dw2_symtab_iter_init): Change block_index parameter type
5203 to gdb::optional<block_enum>.
5204 (dw2_lookup_symbol): Change block_index parameter
5205 type to block_enum.c
5206 (dw2_debug_names_lookup_symbol): Likewise.
5207 * psymtab.c (psym_lookup_symbol): Likewise.
5208 * symfile-debug.c (debug_qf_lookup_symbol): Likewise.
5209 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
5210 Likewise.
5211
ead0e69a
CB
52122019-09-06 Christian Biesinger <cbiesinger@google.com>
5213
5214 * defs.h (relocate_gdb_directory): Change int to bool in
5215 signature and rename flag to relocatable.
5216 * main.c (relocate_path): Likewise.
5217 (relocate_gdb_directory): Likewise.
5218
b16c44de
AM
52192019-09-06 Alan Modra <amodra@gmail.com>
5220
5221 * coffread.c (coff_symfile_read): Constify filename variable.
5222 * dbxread.c (dbx_symfile_init, coffstab_build_psymtabs),
5223 (elfstab_build_psymtabs, stabsect_build_psymtabs): Likewise.
5224 * gdb_bfd.c (gdb_bfd_close_or_warn): Likewise.
5225 * solib.c (reload_shared_libraries_1): Likewise.
5226 * symfile.c (reread_symbols): Likewise.
5227 * solib-aix.c (solib_aix_bfd_open): Add cast for xfree of filename.
5228 * solib-darwin.c (darwin_bfd_open): Likewise.
5229 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
5230
06ff036e
AB
52312019-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
5232
5233 * psymtab.c (print_partial_symbols): Handle missing domain_enum
5234 values MODULE_DOMAIN and COMMON_BLOCK_DOMAIN.
5235
4e962e74
TT
52362019-09-03 Tom Tromey <tromey@adacore.com>
5237
5238 * ada-valprint.c (ada_val_print_num): Don't recurse for range
5239 types.
5240 (has_negatives): Unbias a range type bound.
5241 * dwarf2read.c (read_subrange_type): Handle DW_AT_GNU_bias.
5242 * gdbtypes.c (operator==): Handle new field.
5243 (create_range_type): Add "bias" parameter.
5244 (create_static_range_type, resolve_dynamic_range): Update.
5245 * gdbtypes.h (struct range_bounds) <bias>: New member.
5246 (create_range_type): Add bias parameter.
5247 * printcmd.c (print_scalar_formatted): Unbias range types.
5248 * value.c (unpack_long): Unbias range types.
5249 (pack_long): Bias range types.
5250
d90b8f26
AH
52512019-09-02 Alan Hayward <alan.hayward@arm.com>
5252
5253 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Check all
5254 probe arguments.
5255
fe01123e
AH
52562019-09-02 Alan Hayward <alan.hayward@arm.com>
5257
5258 * break-catch-throw.c (fetch_probe_arguments): Use gdbarch.
5259 * dtrace-probe.c (dtrace_probe::get_argument_count): Likewise.
5260 * probe.c (probe_safe_evaluate_at_pc) (compute_probe_arg)
5261 (compile_probe_arg): Likewise.
5262 * probe.h (get_argument_count): Likewise.
5263 * solib-svr4.c (solib_event_probe_action): Likewise.
5264 * stap-probe.c (stap_probe::get_argument_count): Likewise.
5265
e661ef01
AH
52662019-09-02 Alan Hayward <alan.hayward@arm.com>
5267
5268 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Move
5269 code to here...
5270 (svr4_create_solib_event_breakpoints): ...from here.
5271
47a536d9
SDJ
52722019-08-30 Sergio Durigan Junior <sergiodj@redhat.com>
5273
5274 * nat/fork-inferior.c (trace_start_error): Remove "\nError: "
5275 suffix from warning message.
5276
d6a00eba
TT
52772019-08-30 Tom Tromey <tom@tromey.com>
5278
5279 * tui/tui-winsource.h (struct tui_source_window_base)
5280 <refresh_all>: Don't declare.
5281 * tui/tui-winsource.c (tui_source_window_base::refresh_all):
5282 Remove.
5283 * tui/tui-win.c (tui_refresh_all_win): Don't call refresh_all or
5284 tui_show_locator_content.
5285 * tui/tui-regs.h (struct tui_data_window) <refresh_all>: Don't
5286 declare.
5287 * tui/tui-regs.c (tui_data_window::refresh_all): Remove.
5288 * tui/tui-data.h (struct tui_win_info) <refresh_all>: Don't
5289 declare.
5290
55b2657b
TT
52912019-08-30 Tom Tromey <tom@tromey.com>
5292
5293 * tui/tui-io.c (tui_cont_sig): Don't call wrefresh.
5294
12a8555a
TT
52952019-08-30 Tom Tromey <tom@tromey.com>
5296
5297 * tui/tui-stack.c (_initialize_tui_stack): Move later.
5298 Remove unnecessary forward declarations.
5299
900ac242
TT
53002019-08-30 Tom Tromey <tom@tromey.com>
5301
5302 * tui/tui-stack.c (tui_locator_window::set_locator_fullname): Call
5303 rerender.
5304 (tui_update_locator_fullname, tui_show_frame_info): Don't call
5305 tui_show_locator_content.
5306
99ab33fb
TT
53072019-08-30 Tom Tromey <tom@tromey.com>
5308
5309 * tui/tui-stack.c (tui_show_locator_content): Move lower. Rewrite.
5310 (tui_locator_window::rerender): Rewrite using body of previous
5311 tui_show_locator_content.
5312
e594a5d1
TT
53132019-08-30 Tom Tromey <tom@tromey.com>
5314
5315 * tui/tui-stack.h (struct tui_locator_window) <set_locator_info,
5316 set_locator_fullname>: New methods.
5317 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
5318 Rename from tui_set_locator_fullname.
5319 (tui_locator_window::set_locator_info): Rename from
5320 tui_set_locator_info. Return bool.
5321 (tui_update_locator_fullname, tui_show_frame_info): Update.
5322
715bb467
TT
53232019-08-30 Tom Tromey <tom@tromey.com>
5324
5325 * tui/tui-layout.c (show_layout): Don't call tui_refresh_all.
5326
772f3f03
TT
53272019-08-30 Tom Tromey <tom@tromey.com>
5328
5329 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Don't
5330 call touchwin.
5331
108e13ab
TT
53322019-08-30 Tom Tromey <tom@tromey.com>
5333
5334 * tui/tui-wingeneral.c (box_win): Assume win_info and
5335 win_info->handle cannot be NULL.
5336
cdaa6eb4
TT
53372019-08-30 Tom Tromey <tom@tromey.com>
5338
5339 * tui/tui-regs.h (struct tui_data_item_window) <rerender,
5340 refresh_window>: Declare.
5341 * tui/tui-regs.c (tui_data_window::display_registers_from): Call
5342 resize.
5343 (tui_data_item_window::rerender): Rename from
5344 tui_display_register.
5345 (tui_data_item_window::refresh_window): New method.
5346 * tui/tui-layout.c (tui_gen_win_info::resize): Do nothing on
5347 no-op.
5348
89df7f90
TT
53492019-08-30 Tom Tromey <tom@tromey.com>
5350
5351 * tui/tui-regs.h (struct tui_data_window) <regs_content,
5352 regs_column_count, current_group>: Move later. Now private.
5353 <get_current_group>: New method.
5354 * tui/tui-regs.c (tui_reg_command): Update.
5355 * tui/tui-layout.c (tui_set_layout): Update.
5356
1bf2866a
TT
53572019-08-30 Tom Tromey <tom@tromey.com>
5358
5359 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
5360 (tui_data_window::rerender): Don't call
5361 check_and_display_highlight_if_needed.
5362 (tui_data_window::refresh_all): Remove call to
5363 erase_data_content.
5364
0670413d
TT
53652019-08-30 Tom Tromey <tom@tromey.com>
5366
5367 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
5368 (tui_data_window::display_registers_from)
5369 (tui_data_window::display_reg_element_at_line)
5370 (tui_data_window::display_registers_from_line): Remove checks of
5371 "empty".
5372
18bb55c7
TT
53732019-08-30 Tom Tromey <tom@tromey.com>
5374
5375 * tui/tui-regs.h (struct tui_data_window) <display_all_data>:
5376 Don't declare.
5377 * tui/tui-regs.c (tui_data_window::show_registers): Call
5378 rerender.
5379 (tui_data_window::rerender): Rename from display_all_data.
5380 (tui_data_window::rerender): Remove old implementation.
5381
1f6d2f10
TT
53822019-08-30 Tom Tromey <tom@tromey.com>
5383
5384 * tui/tui-regs.c (tui_data_window::display_all_data): Change
5385 text.
5386 * tui/tui-data.h (NO_DATA_STRING): Remove define.
5387
16d01f9c
BW
53882019-08-29 Bernhard Wodok <barto@gmx.net>
5389 Sergio Durigan Junior <sergiodj@redhat.com>
5390
5391 PR win32/24284
5392 * mingw-hdep.c (gdb_select): Handle case when 'n' is zero.
5393
d8f27c60
AB
53942019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
5395
5396 * symtab.c (search_symbols): Don't include MODULE_DOMAIN symbols
5397 when searching for types.
5398
1f20c35e
AB
53992019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
5400
5401 * f-lang.c (f_language_defn): Use f_print_typedef.
5402 * f-lang.h (f_print_typedef): Declare.
5403 * f-typeprint.c (f_print_typedef): Define.
5404
550105b7
CB
54052019-08-27 Christian Biesinger <cbiesinger@google.com>
5406
5407 * nat/linux-namespaces.c (mnsh_main): Initialize fd (to -1).
5408
4acfdd20
AB
54092019-08-27 Andrew Burgess <andrew.burgess@embecosm.com>
5410
5411 * cli/cli-utils.c (info_print_options_defs): Delete.
5412 (make_info_print_options_def_group): Delete.
5413 (extract_info_print_options): Delete.
5414 (info_print_command_completer): Delete.
5415 (info_print_args_help): Add extra parameter, and optionally
5416 include text about -n flag.
5417 * cli/cli-utils.h (struct info_print_options): Delete.
5418 (extract_info_print_options): Delete declaration.
5419 (info_print_command_completer): Delete declaration.
5420 (info_print_args_help): Add extra parameter, extend header
5421 comment.
5422 * python/python.c (gdbpy_rbreak): Pass additional parameter to
5423 search_symbols.
5424 * stack.c (struct info_print_options): New type.
5425 (info_print_options_defs): New file scoped variable.
5426 (make_info_print_options_def_group): New static function.
5427 (info_print_command_completer): New static function.
5428 (info_locals_command): Update to use new local functions.
5429 (info_args_command): Likewise.
5430 (_initialize_stack): Add extra parameter to calls to
5431 info_print_args_help.
5432 * symtab.c (search_symbols): Add extra parameter, use this to
5433 possibly excluse non-debug symbols.
5434 (symtab_symbol_info): Add extra parameter, which is passed on to
5435 search_symbols.
5436 (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_variables_command): Update to use local functions, and pass
5441 extra parameter through to symtab_symbol_info.
5442 (info_functions_command): Likewise.
5443 (info_types_command): Pass additional argument through to
5444 symtab_symbol_info.
5445 (rbreak_command): Pass extra argument to search_symbols.
5446 (_initialize_symtab): Add extra arguments for calls to
5447 info_print_args_help, and update help text for 'info variables',
5448 'whereis', and 'info functions' commands.
5449 * symtab.h (search_symbols): Add extra argument to declaration.
5450 * NEWS: Mention new flags.
5451
9aa55206
CB
54522019-08-26 Christian Biesinger <cbiesinger@google.com>
5453
5454 * symtab.c (lookup_static_symbol): Call the new function (and move
5455 it down to be next to lookup_global_symbol).
5456 (struct global_sym_lookup_data): Add block_enum member and rename to...
5457 (struct global_or_static_sym_lookup_data): ...this.
5458 (lookup_symbol_global_iterator_cb): Pass block_index instead of
5459 GLOBAL_BLOCK to lookup_symbol_in_objfile and rename to...
5460 (lookup_symbol_global_or_static_iterator_cb): ...this.
5461 (lookup_global_or_static_symbol): New function.
5462 (lookup_global_symbol): Call new function.
5463
5c31b358
TV
54642019-08-26 Tom de Vries <tdevries@suse.de>
5465
5466 PR c++/24852
5467 * break-catch-throw.c (fetch_probe_arguments): Improve error mesage
5468 when pc_probe.prob == NULL.
5469
23c13d42
SM
54702019-08-25 Simon Marchi <simon.marchi@efficios.com>
5471
5472 * dwarf2read.c (dw2_debug_names_iterator::next): Rename local
5473 variable symbol_linkage to symbol_linkage_.
5474
beadd3e8
SM
54752019-08-25 Simon Marchi <simon.marchi@efficios.com>
5476
5477 * dwarf2read.c (dw2_debug_names_iterator::next): Use enum to
5478 represent whether the symbol is static, dynamic, or we don't
5479 know.
5480
e3ec872f
YS
54812019-08-25 Yoshinori Sato <ysato@users.sourceforge.jp>
5482
5483 * gdb/rx-tdep.c (rx_register_names): New.
5484 (rx_register_name): Delete.
5485 (rx_psw_type): Delete.
5486 (rx_fpsw_type): Delete.
5487 (rx_register_type): Delete.
5488 (rx_gdbarch_init): Convert target-descriptions.
5489 (_initialize_rx_tdep): Add initialize_tdesc_rx.
5490 * gdb/features/Makefile: Add rx.xml.
5491 * gdb/features/rx.xml: New.
5492 * gdb/features/rx.c: Generated.
5493 * gdb/NEWS: Mention target description support.
5494
d0509ba4
CB
54952019-08-22 Christian Biesinger <cbiesinger@google.com>
5496
5497 * symtab.c (symbol_cache_lookup): Always initialize *bsc_ptr and
5498 *slot_ptr.
5499
2d41fa11
SDJ
55002019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
5501
5502 * configure.ac: Don't check for 'dlfcn.h' (moved to
5503 gdbsupport/common.m4).
5504 * Makefile.in (COMMON_SFILES): Move 'gdb-dlfcn.c' to
5505 'gdbsupport/'.
5506 (HFILES_NO_SRCDIR): Likewise, for 'gdb-dlfcn.h'.
5507 * compile/compile-c-support.c: Include
5508 'gdbsupport/gdb-dlfcn.h'.
5509 * gdbsupport/common.m4: Check for 'dlfcn.h'.
5510 * gdb-dlfcn.c: Move to...
5511 * gdbsupport/gdb-dlfcn.c: ... here.
5512 * gdb-dlfcn.h: Move to...
5513 * gdbsupport/gdb-dlfcn.h: ... here.
5514
de8af808
SL
55152019-08-23 Sandra Loosemore <sandra@codesourcery.com>
5516
5517 * nios2-tdep.c (struct reg_value): Improve comments. Make
5518 the offset field signed.
5519
27204489
CB
55202019-08-22 Christian Biesinger <cbiesinger@google.com>
5521
5522 * python/lib/gdb/__init__.py (_execute_file): New function.
5523 * python/python.c (python_run_simple_file): Call gdb._execute_file
5524 on Windows.
5525
43771869
AB
55262019-08-22 Andrew Burgess <andrew.burgess@embecosm.com>
5527
5528 * f-exp.y (yylex): Remove is_a_field_of_this local variable, and
5529 all uses as this was never set to anything but a zero value.
5530
26c957f1
PA
55312019-08-21 Bogdan Harjoc <harjoc@gmail.com>
5532
5533 * cli/cli-cmds.c (with_command_1): Error out if no arguments.
5534
c07aae6e
CB
55352019-08-21 Christian Biesinger <cbiesinger@google.com>
5536
5537 * tui/tui-data.h (tui_gen_win_info): Add an =default
5538 move constructor, required by some GCC versions.
5539
3960cb7a
JF
55402019-08-21 Jinke Fan <fanjinke51@yeah.net>
5541
5542 * go32-nat.c (go32_sysinfo): Add hygon_p.
5543
04c72a68
TT
55442019-08-20 Tom Tromey <tom@tromey.com>
5545
5546 * tui/tui-regs.h (struct tui_data_window) <last_regs_line_no,
5547 line_from_reg_element_no, first_reg_element_no_inline,
5548 display_all_data, delete_data_content_windows,
5549 erase_data_content>: Now private.
5550
072272ce
TT
55512019-08-20 Tom Tromey <tom@tromey.com>
5552
5553 * tui/tui-wingeneral.c (box_win): Change type of highlight_flag.
5554 (tui_unhighlight_win, tui_highlight_win)
5555 (tui_win_info::make_window): Update.
5556 * tui/tui-data.h (HILITE, NO_HILITE): Remove.
5557
973961bd
TT
55582019-08-20 Tom Tromey <tom@tromey.com>
5559
5560 * tui/tui-data.h (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
5561 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
5562 (MAX_PID_WIDTH): Move to tui-stack.c.
5563 * tui/tui-stack.c (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
5564 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
5565 (MAX_PID_WIDTH): Move from tui-data.h.
5566
ab0e1f1a
TT
55672019-08-20 Tom Tromey <tom@tromey.com>
5568
5569 * tui/tui-wingeneral.h (tui_make_window): Don't declare.
5570 * tui/tui-wingeneral.c (box_win): Change type of win_info.
5571 (box_win): Update.
5572 (tui_gen_win_info::make_window): Rename from tui_make_window.
5573 (tui_win_info::make_window): New method.
5574 (tui_gen_win_info::make_visible): Update.
5575 * tui/tui-source.c (tui_source_window::set_contents): Update.
5576 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
5577 (tui_data_window::display_registers_from): Update.
5578 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
5579 * tui/tui-data.h (struct tui_gen_win_info) <make_window>:
5580 Declare.
5581 <can_box>: Remove.
5582 <title>: Remove.
5583 (struct tui_win_info) <make_window>: Declare.
5584 <can_box>: Now virtual.
5585 <title>: New member.
5586 * tui/tui-data.c (~tui_gen_win_info): Don't free title.
5587 * tui/tui-command.c (tui_cmd_window::resize): Update.
5588
100c2bf3
TT
55892019-08-20 Tom Tromey <tom@tromey.com>
5590
5591 * tui/tui-regs.h (struct tui_data_window) <display_regs>: Remove.
5592 * tui/tui-regs.c (tui_data_window::show_registers): Update.
5593 (tui_data_window::check_register_values): Update.
5594
fa4dc567
TT
55952019-08-20 Tom Tromey <tom@tromey.com>
5596
5597 * tui/tui-regs.h (struct tui_data_window): Use
5598 DISABLE_COPY_AND_ASSIGN.
5599 <regs_content>: Change type, removing unique_ptr.
5600 <tui_data_window>: Add move constructor.
5601 * tui/tui-regs.c (tui_data_window::show_registers)
5602 (tui_data_window::show_register_group)
5603 (tui_data_window::display_registers_from)
5604 (tui_data_window::display_registers_from)
5605 (tui_data_window::first_data_item_displayed)
5606 (tui_data_window::delete_data_content_windows)
5607 (tui_data_window::rerender, tui_data_window::refresh_window)
5608 (tui_data_window::check_register_values): Update.
5609
ca02d7c8
TT
56102019-08-20 Tom Tromey <tom@tromey.com>
5611
5612 * tui/tui-regs.h (struct tui_data_window) <show_registers,
5613 show_register_group>: Declare.
5614 (tui_show_register_group): Don't declare.
5615 * tui/tui-regs.c (tui_data_window::show_registers): Rename from
5616 tui_show_registers.
5617 (tui_data_window::show_register_group): Rename from
5618 tui_show_register_group.
5619 (tui_data_window::check_register_values, tui_reg_command):
5620 Update.
5621 * tui/tui-layout.c (tui_set_layout): Update.
5622
63356bfd
TT
56232019-08-20 Tom Tromey <tom@tromey.com>
5624
5625 * tui/tui-regs.h (struct tui_data_window) <check_register_values>:
5626 Declare.
5627 (tui_check_register_values): Don't declare.
5628 * tui/tui-regs.c (tui_data_window::check_register_values): Rename
5629 from tui_check_register_values.
5630 * tui/tui-hooks.c (tui_register_changed): Update.
5631
42cc14a7
TT
56322019-08-20 Tom Tromey <tom@tromey.com>
5633
5634 * tui/tui-regs.c (tui_reg_layout): Move later.
5635 (tui_show_registers): Don't enable TUI mode or change layout.
5636
b9ad3686
TT
56372019-08-20 Tom Tromey <tom@tromey.com>
5638
5639 * tui/tui-regs.h (struct tui_data_item_window)
5640 <~tui_data_item_window>: Remove.
5641 <content>: Now a unique_xmalloc_ptr.
5642 * tui/tui-regs.c (tui_register_format): Return a
5643 unique_xmalloc_ptr.
5644 (tui_get_register): Update.
5645 (~tui_data_item_window): Remove.
5646 (tui_data_window::display_registers_from, tui_display_register):
5647 Update.
5648 * tui/tui-io.h (tui_expand_tabs): Update.
5649 * tui/tui-io.c (tui_expand_tabs): Return a unique_xmalloc_ptr.
5650 Remove "col" parameter.
5651
8e114aab
TT
56522019-08-20 Tom Tromey <tom@tromey.com>
5653
5654 * tui/tui-regs.h (struct tui_data_item_window) <value>: Remove
5655 field.
5656 * tui/tui-regs.c (~tui_data_item_window): Update.
5657
1a4f81dd
TT
56582019-08-20 Tom Tromey <tom@tromey.com>
5659
5660 * tui/tui-regs.c (tui_register_format, tui_get_register): Move
5661 earlier.
5662
0f8d8876
TT
56632019-08-20 Tom Tromey <tom@tromey.com>
5664
5665 * tui/tui-regs.c (tui_reg_command): Remove NULL check.
5666
605dc2c2
TT
56672019-08-20 Tom Tromey <tom@tromey.com>
5668
5669 * tui/tui-source.h (struct tui_source_window): Update.
5670 * tui/tui-regs.c (tui_show_registers): Update.
5671 * tui/tui-disasm.h (struct tui_disasm_window): Update.
5672 * tui/tui-data.h (NO_SRC_STRING, NO_DISASSEM_STRING)
5673 (NO_REGS_STRING): Remove defines.
5674
aedbe3bb
CM
56752019-08-20 Conrad Meyer <cem@FreeBSD.org>
5676
5677 * remote.c (remote_target::remote_btrace_maybe_reopen): Avoid
5678 unnecessary thread walk if remote doesn't support the packet.
5679
7ce8f214
TT
56802019-08-19 Tom Tromey <tromey@adacore.com>
5681
5682 * python/py-value.c (value_has_field): Fix indentation.
5683
f21c2bd7
TT
56842019-08-19 Tom Tromey <tromey@adacore.com>
5685
5686 * printcmd.c (do_one_display, info_display_command): Update.
5687 * block.h (contained_in): Return bool. Add allow_nested
5688 parameter.
5689 * block.c (contained_in): Return bool. Add allow_nested
5690 parameter.
5691
d806ea2d
TT
56922019-08-19 Tom Tromey <tom@tromey.com>
5693
5694 * configure: Rebuild.
5695 * configure.ac: Disallow the combination of -static-libstdc++ and
5696 source highlight.
5697 * source-cache.c (get_language_name): Handle rust.
5698 (source_cache::get_source_lines): Ignore highlighting exceptions.
5699
398fdd60
TT
57002019-08-16 Tom Tromey <tom@tromey.com>
5701
5702 * tui/tui.h (enum tui_win_type) <EXEC_INFO_WIN>: Remove.
5703 * tui/tui-winsource.h (struct tui_exec_info_window): Remove.
5704 (struct tui_source_window_base) <make_visible, refresh_window,
5705 resize>: Remove methods.
5706 <execution_info>: Remove field.
5707 * tui/tui-winsource.c (tui_source_window_base::do_erase_source_content)
5708 (tui_show_source_line, tui_source_window_base)
5709 (~tui_source_window_base): Update.
5710 (tui_source_window_base::resize)
5711 (tui_source_window_base::make_visible)
5712 (tui_source_window_base::refresh_window): Remove.
5713 (tui_source_window_base::update_exec_info): Update.
5714 * tui/tui-source.c (tui_source_window::set_contents): Update.
5715 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
5716
e699d331
TT
57172019-08-16 Tom Tromey <tom@tromey.com>
5718
5719 * tui/tui-hooks.c (tui_remove_hooks): Don't set
5720 deprecated_query_hook.
5721
bb01dbfc
TT
57222019-08-16 Tom Tromey <tom@tromey.com>
5723
5724 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
5725 (tui_update_source_windows_with_line): Update.
5726 * tui/tui-source.h (struct tui_source_window)
5727 <show_symtab_source>: Declare.
5728 (tui_show_symtab_source): Don't declare.
5729 * tui/tui-source.c (tui_show_symtab_source): Rename from
5730 tui_show_symtab_source.
5731
81c82c4b
TT
57322019-08-16 Tom Tromey <tom@tromey.com>
5733
5734 * tui/tui-winsource.h (struct tui_source_window_base)
5735 <set_contents>: Declare.
5736 * tui/tui-winsource.c
5737 (tui_source_window_base::update_source_window_as_is): Update.
5738 * tui/tui-source.h (struct tui_source_window) <set_contents>:
5739 Declare.
5740 (tui_set_source_content): Don't declare.
5741 * tui/tui-source.c (tui_source_window::set_contents): Rename from
5742 tui_set_source_content.
5743 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
5744 Declare.
5745 (tui_set_disassem_content): Don't declare.
5746 * tui/tui-disasm.c (tui_disasm_window::set_contents): Rename from
5747 tui_set_disassem_content.
5748
2ddaf614
TT
57492019-08-16 Tom Tromey <tom@tromey.com>
5750
5751 * tui/tui-winsource.h (struct tui_source_window_base)
5752 <update_breakpoint_info>: Declare.
5753 (tui_update_breakpoint_info): Don't declare.
5754 * tui/tui-winsource.c (tui_source_window_base::update_source_window_as_is)
5755 (tui_update_all_breakpoint_info): Update.
5756 (tui_source_window_base::update_breakpoint_info): Rename from
5757 tui_update_breakpoint_info.
5758 (tui_source_window_base::update_exec_info): Update.
5759
017f9828
TT
57602019-08-16 Tom Tromey <tom@tromey.com>
5761
5762 * tui/tui-winsource.h (struct tui_source_window_base)
5763 <update_source_window>: Declare.
5764 (tui_update_source_window): Don't declare.
5765 * tui/tui-winsource.c
5766 (tui_source_window_base::update_source_window): Rename from
5767 tui_update_source_window.
5768 (tui_source_window_base::rerender): Update.
5769 * tui/tui-source.c (tui_source_window::maybe_update): Update.
5770 * tui/tui-disasm.c (tui_show_disassem)
5771 (tui_show_disassem_and_update_source)
5772 (tui_disasm_window::maybe_update): Update.
5773
ed8358e9
TT
57742019-08-16 Tom Tromey <tom@tromey.com>
5775
5776 * tui/tui-winsource.h (struct tui_source_window_base)
5777 <update_source_window_as_is>: Declare.
5778 (tui_update_source_window_as_is): Don't declare.
5779 * tui/tui-winsource.c (tui_update_source_window): Update
5780 (tui_source_window_base::update_source_window_as_is): Rename from
5781 tui_update_source_window_as_is.
5782 (tui_source_window_base::refill): Update.
5783 * tui/tui-source.c (tui_show_symtab_source): Update.
5784 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical):
5785 Update.
5786
20149b6b
TT
57872019-08-16 Tom Tromey <tom@tromey.com>
5788
5789 * tui/tui-winsource.h (tui_update_source_window)
5790 (tui_update_source_window_as_is): Remove "noerror" parameter.
5791 * tui/tui-winsource.c (tui_update_source_window)
5792 (tui_update_source_window_as_is): Remove "noerror" parameter.
5793 (tui_update_source_windows_with_addr)
5794 (tui_update_source_windows_with_line)
5795 (tui_source_window_base::rerender)
5796 (tui_source_window_base::refill): Update.
5797 * tui/tui-source.h (tui_set_source_content)
5798 (tui_show_symtab_source): Remove "noerror" parameter.
5799 * tui/tui-source.c (tui_set_source_content): Remove "noerror"
5800 parameter.
5801 (tui_show_symtab_source): Likewise.
5802 (tui_source_window::maybe_update): Update.
5803 * tui/tui-disasm.c (tui_show_disassem)
5804 (tui_show_disassem_and_update_source)
5805 (tui_disasm_window::do_scroll_vertical)
5806 (tui_disasm_window::maybe_update): Update.
5807
2d83e710
TT
58082019-08-16 Tom Tromey <tom@tromey.com>
5809
5810 * tui/tui.c (tui_is_window_visible): Update.
5811 * tui/tui-wingeneral.c (tui_make_window)
5812 (tui_gen_win_info::make_visible, tui_refresh_all): Update.
5813 * tui/tui-win.c (window_name_completer, tui_refresh_all_win)
5814 (tui_set_focus_command, tui_all_windows_info, update_tab_width)
5815 (tui_set_win_height_command, parse_scrolling_args): Update.
5816 * tui/tui-source.c (tui_source_window::style_changed): Update.
5817 * tui/tui-regs.c (tui_show_registers)
5818 (tui_data_window::first_data_item_displayed)
5819 (tui_data_window::delete_data_content_windows)
5820 (tui_check_register_values, tui_reg_command): Update.
5821 * tui/tui-disasm.c (tui_show_disassem): Update.
5822 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: New
5823 method.
5824 <is_visible>: Remove field.
5825 * tui/tui-data.c (tui_next_win, tui_prev_win)
5826 (tui_delete_invisible_windows): Update.
5827
d4ab829a
TT
58282019-08-16 Tom Tromey <tom@tromey.com>
5829
5830 * tui/tui-winsource.h (struct tui_source_window_base)
5831 <m_has_locator>: Remove.
5832 * tui/tui-layout.c (show_source_disasm_command, show_data)
5833 (show_source_or_disasm_and_command): Update.
5834
aa7ca1bb
AH
58352019-08-16 Alan Hayward <alan.hayward@arm.com>
5836
5837 * NEWS (Other MI changes): New subsection.
5838 * aarch64-tdep.c (aarch64_get_pc_address_flags): New function.
5839 (aarch64_gdbarch_init): Add aarch64_get_pc_address_flags.
5840 * arch-utils.c (default_get_pc_address_flags): New function.
5841 * arch-utils.h (default_get_pc_address_flags): New declaration.
5842 * gdbarch.sh: Add get_pc_address_flags.
5843 * gdbarch.c: Regenerate.
5844 * gdbarch.h: Likewise.
5845 * stack.c (print_pc): New function.
5846 (print_frame_info) (print_frame): Call print_pc.
5847
6eac171f
TV
58482019-08-16 Tom de Vries <tdevries@suse.de>
5849
5850 * maint.c (maintenance_info_sections): Also handle !ALLOBJ case using
5851 print_objfile_section_info.
5852
3df505f6
TT
58532019-08-15 Tom Tromey <tom@tromey.com>
5854
5855 * tui/tui-io.c (tui_puts_internal): Check TUI_CMD_WIN before
5856 calling update_cmdwin_start_line.
5857 * tui/tui-winsource.h (struct tui_source_window_base)
5858 <do_make_visible_with_new_height, set_new_height>: Don't declare.
5859 <rerender>: Declare.
5860 * tui/tui-winsource.c (tui_source_window_base::update_tab_width):
5861 Call rerender.
5862 (tui_source_window_base::set_new_height): Remove.
5863 (tui_source_window_base::rerender): Rename from
5864 do_make_visible_with_new_height.
5865 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use
5866 resize method.
5867 (tui_win_info::make_invisible_and_set_new_height)
5868 (tui_win_info::make_visible_with_new_height): Remove.
5869 * tui/tui-stack.h (struct tui_locator_window) <rerender>:
5870 Declare.
5871 * tui/tui-stack.c (tui_locator_window::rerender): New method.
5872 * tui/tui-regs.h (struct tui_data_window) <set_new_height,
5873 do_make_visible_with_new_height>: Don't declare.
5874 <rerender>: Declare.
5875 * tui/tui-regs.c (tui_data_window::rerender): Rename from
5876 set_new_height.
5877 (tui_data_window::do_make_visible_with_new_height): Remove.
5878 * tui/tui-layout.c (show_source_disasm_command, show_data): Don't
5879 call tui_show_locator_content.
5880 (tui_gen_win_info::resize): Call rerender.
5881 (show_source_or_disasm_and_command): Don't call
5882 tui_show_locator_content.
5883 * tui/tui-data.h (struct tui_gen_win_info) <rerender>: New
5884 method.
5885 (struct tui_win_info) <rerender>: Declare.
5886 <set_new_height, make_invisible_and_set_new_height,
5887 make_visible_with_new_height>: Don't declare.
5888 * tui/tui-data.c (tui_win_list::rerender): New method.
5889 * tui/tui-command.h (struct tui_cmd_window)
5890 <do_make_visible_with_new_height>: Don't declare.
5891 * tui/tui-command.c
5892 (tui_cmd_window::do_make_visible_with_new_height): Remove.
5893
272560b5
TT
58942019-08-15 Tom Tromey <tromey@adacore.com>
5895
5896 * ada-exp.y (convert_char_literal): Handle "Q%c" encoding.
5897 * ada-lang.c (ada_enum_name): Likewise.
5898
08235187
CB
58992019-08-15 Christian Biesinger <cbiesinger@google.com>
5900
5901 * python/lib/gdb/__init__.py (GdbOutputFile): Rename to have a
5902 leading underscore.
5903 (GdbOutputErrorFile): Likewise.
5904 (global scope): Adjust constructor calls to GdbOutput{,Error}File
5905 accordingly.
5906 (execute_unwinders): Rename to have a leading underscore.
5907 (auto_load_packages): Likewise.
5908 (global scope): Adjust call to auto_load_packages accordingly.
5909 (GdbSetPythonDirectory): Likewise.
5910 * python/py-unwind.c (pyuw_sniffer): Call _execute_unwinders
5911 instead of execute_unwinders.
5912
db502012
TT
59132019-08-15 Tom Tromey <tom@tromey.com>
5914
5915 * tui/tui-layout.c (show_layout, show_source_disasm_command)
5916 (show_data): Don't change window visibility.
5917 (tui_gen_win_info::resize): Remove special case for command
5918 window. Use wresize, when available.
5919 (show_source_or_disasm_and_command): Don't change window
5920 visibility.
5921 * tui/tui-command.h (struct tui_cmd_window) <resize>: Declare.
5922 <make_visible>: New method.
5923 * tui/tui-command.c (tui_cmd_window::resize): New method.
5924
3891b65e
TT
59252019-08-15 Tom Tromey <tom@tromey.com>
5926
5927 * tui/tui-winsource.h (struct tui_source_window_iterator): New.
5928 (struct tui_source_windows): New.
5929 * tui/tui-winsource.c (tui_display_main): Update.
5930 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
5931 (new_height_ok, parse_scrolling_args): Update.
5932 * tui/tui-layout.c (show_layout, show_data): Update.
5933 * tui/tui-data.h (tui_source_windows, tui_clear_source_windows)
5934 (tui_add_to_source_windows): Don't declare.
5935 * tui/tui-data.c (source_windows, tui_source_windows)
5936 (tui_clear_source_windows, tui_add_to_source_windows): Remove.
5937
ee556432
TT
59382019-08-15 Tom Tromey <tom@tromey.com>
5939
5940 * tui/tui-winsource.h (struct tui_source_window_base) <resize>:
5941 Rename from reset.
5942 * tui/tui-winsource.c (tui_source_window_base::resize): Rename.
5943 * tui/tui-layout.c (show_source_disasm_command, show_data):
5944 Update.
5945 (tui_gen_win_info::resize): Rename.
5946 (show_source_or_disasm_and_command): Update.
5947 * tui/tui-data.h (struct tui_gen_win_info) <resize>: Rename from
5948 reset.
5949
46f438e3
TT
59502019-08-15 Tom Tromey <tom@tromey.com>
5951
5952 * tui/tui-stack.c (tui_initialize_static_data): Remove.
5953 * tui/tui-interp.c (tui_interp::init): Don't call
5954 tui_initialize_static_data.
5955 * tui/tui-data.h (tui_initialize_static_data): Don't declare.
5956
f4ce562c
TT
59572019-08-15 Tom Tromey <tom@tromey.com>
5958
5959 * tui/tui-layout.c (tui_default_win_viewport_height): Don't
5960 examine tui_win_list.
5961
c398c3d0
TT
59622019-08-15 Tom Tromey <tom@tromey.com>
5963
5964 * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
5965 * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
5966 tui_clear_source_content.
5967 (tui_clear_source_content): Remove.
5968 (tui_source_window_base::do_erase_source_content): Hoist call to
5969 content.clear().
5970 * tui/tui-stack.c (tui_show_frame_info): Don't call
5971 tui_clear_source_content.
5972
e25d2004
TT
59732019-08-15 Tom Tromey <tom@tromey.com>
5974
5975 * tui/tui-winsource.h (struct tui_source_window_base)
5976 <do_erase_source_content>: New method.
5977 <erase_source_content>: New method.
5978 (tui_erase_source_content): Don't declare.
5979 * tui/tui-winsource.c (tui_clear_source_content): Update.
5980 (tui_source_window_base::do_erase_source_content): Rename from
5981 tui_erase_source_content.
5982 (tui_source_window_base::show_source_content): Update.
5983 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
5984 * tui/tui-source.h (struct tui_source_window)
5985 <erase_source_content>: New method.
5986 * tui/tui-disasm.h (struct tui_disasm_window)
5987 <erase_source_content>: New method.
5988
002f15c2
TT
59892019-08-15 Tom Tromey <tom@tromey.com>
5990
5991 * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
5992 (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
5993 constructor.
5994 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
5995 * tui/tui-source.c (tui_set_source_content): Update.
5996 * tui/tui-disasm.c (tui_set_disassem_content): Update.
5997
c9033fe8
TT
59982019-08-15 Tom Tromey <tom@tromey.com>
5999
6000 * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
6001 * tui/tui-winsource.c (tui_line_is_displayed): Move to
6002 tui-source.c.
6003 * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
6004 Declare.
6005 * tui/tui-source.c (tui_source_window::line_is_displayed): New
6006 method.
6007 (tui_source_window::maybe_update): Update.
6008
088f37dd
TT
60092019-08-15 Tom Tromey <tom@tromey.com>
6010
6011 * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
6012 * tui/tui-winsource.c (tui_addr_is_displayed): Move to
6013 tui-disasm.c.
6014 * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
6015 Declare.
6016 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
6017 method.
6018 (tui_disasm_window::maybe_update): Update.
6019
a54700c6
TT
60202019-08-15 Tom Tromey <tom@tromey.com>
6021
6022 * tui/tui-winsource.h (struct tui_source_window_base)
6023 <maybe_update>: Declare.
6024 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
6025 method.
6026 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
6027 Declare.
6028 * tui/tui-source.c (tui_source_window::maybe_update): New method.
6029 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
6030 Declare.
6031 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
6032
e2a678a5
TT
60332019-08-15 Tom Tromey <tom@tromey.com>
6034
6035 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
6036
f2dda477
TT
60372019-08-15 Tom Tromey <tom@tromey.com>
6038
6039 * tui/tui-wingeneral.c: Include tui-stack.h.
6040 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
6041 (struct tui_locator_window): Move from tui-data.h.
6042 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
6043 (tui_initialize_static_data): Move from tui-data.c.
6044 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
6045 (struct tui_locator_window): Move to tui-stack.c.
6046 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
6047 (tui_initialize_static_data): Move to tui-stack.c.
6048
ed4a1084
TT
60492019-08-15 Tom Tromey <tom@tromey.com>
6050
6051 * tui/tui-layout.c (show_source_disasm_command)
6052 (show_source_or_disasm_and_command): Use make_visible method, not
6053 tui_make_window.
6054 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
6055 Remove.
6056
65962b20
TT
60572019-08-15 Tom Tromey <tom@tromey.com>
6058
6059 * tui/tui-wingeneral.h (tui_make_window): Update.
6060 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
6061 parameter.
6062 (tui_gen_win_info::make_visible): Update.
6063 * tui/tui-regs.c (tui_data_window::display_registers_from):
6064 Update.
6065 * tui/tui-layout.c (show_source_disasm_command)
6066 (show_source_or_disasm_and_command): Update.
6067 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
6068 (enum tui_box): Remove.
6069 (struct tui_win_info) <can_box>: New method.
6070 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
6071 method.
6072
2208ee91
TV
60732019-08-15 Tom de Vries <tdevries@suse.de>
6074
6075 * linux-nat-trad.c: Include gdbarch.h.
6076
75faf5c4
AH
60772019-08-14 Alan Hayward <alan.hayward@arm.com>
6078
6079 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
6080 register sizes.
6081
b1c896b3
TT
60822019-08-14 Tom Tromey <tromey@adacore.com>
6083
6084 * darwin-nat.c: Include gdbarch.h.
6085 * darwin-nat-info.c: Include gdbarch.h.
6086
6405cd73
TT
60872019-08-13 Tom Tromey <tom@tromey.com>
6088
6089 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
6090 Remove.
6091 * tui/tui-data.c (tui_initialize_static_data): Update.
6092
5216580d
TT
60932019-08-13 Tom Tromey <tom@tromey.com>
6094
6095 * tui/tui-winsource.h (struct tui_exec_info_window)
6096 <~tui_exec_info_window, maybe_allocate_content, get_content,
6097 m_content>: Remove.
6098 (struct tui_source_window_base) <set_exec_info_content,
6099 show_exec_info_content>: Don't declare.
6100 * tui/tui-winsource.c
6101 (tui_exec_info_window::maybe_allocate_content): Remove.
6102 (tui_source_window_base::update_exec_info): Rename from
6103 set_exec_info_content.
6104 (tui_source_window_base::show_exec_info_content)
6105 (tui_source_window_base::update_exec_info): Remove.
6106
93858ad3
TT
61072019-08-13 Tom Tromey <tom@tromey.com>
6108
6109 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
6110 declare.
6111 * tui/tui-winsource.c (tui_update_source_window_as_is)
6112 (tui_update_source_windows_with_addr, tui_erase_source_content):
6113 Update.
6114 (tui_clear_exec_info_content): Remove.
6115
e321e7ce
TT
61162019-08-13 Tom Tromey <tom@tromey.com>
6117
6118 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
6119 declare.
6120 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
6121 call tui_erase_exec_info_content.
6122 (tui_clear_exec_info_content): Rename from
6123 tui_erase_exec_info_content.
6124 (tui_clear_exec_info_content): Delete.
6125
8270ac62
TT
61262019-08-13 Tom Tromey <tom@tromey.com>
6127
6128 * tui/tui-winsource.h (struct tui_source_window_base)
6129 <show_exec_info_content>: Declare.
6130 (tui_show_exec_info_content): Don't declare.
6131 * tui/tui-winsource.c
6132 (tui_source_window_base::show_exec_info_content): Rename from
6133 tui_show_exec_info_content.
6134 (tui_source_window_base::update_exec_info): Update.
6135
7b56485d
TT
61362019-08-13 Tom Tromey <tom@tromey.com>
6137
6138 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
6139 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
6140 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
6141 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
6142 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
6143 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
6144 ... here.
6145
7ba913dc
TT
61462019-08-13 Tom Tromey <tom@tromey.com>
6147
6148 * tui/tui-winsource.h (struct tui_source_window_base)
6149 <update_exec_info>: Declare.
6150 (tui_update_exec_info): Don't declare.
6151 * tui/tui-winsource.c (tui_update_source_window_as_is)
6152 (tui_source_window_base::refresh_all)
6153 (tui_update_all_breakpoint_info): Update.
6154 (tui_source_window_base::update_exec_info): Rename from
6155 tui_update_exec_info.
6156 * tui/tui-stack.c (tui_show_frame_info): Update.
6157
37a4a131
TT
61582019-08-13 Tom Tromey <tom@tromey.com>
6159
6160 * tui/tui-winsource.h (struct tui_source_window_base)
6161 <set_exec_info_content>: Declare.
6162 (tui_set_exec_info_content): Don't declare.
6163 * tui/tui-winsource.c
6164 (tui_source_window_base::set_exec_info_content): Rename from
6165 tui_set_exec_info_content.
6166 (tui_update_exec_info): Update.
6167
0bd27e07
TT
61682019-08-13 Tom Tromey <tom@tromey.com>
6169
6170 * tui/tui-winsource.h (struct tui_source_window_base)
6171 <show_source_content>: Declare.
6172 (tui_show_source_content): Don't declare.
6173 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
6174 (tui_source_window_base::show_source_content): Rename from
6175 tui_show_source_content.
6176 (tui_source_window_base::refresh_all): Update.
6177 * tui/tui-layout.c (show_source_disasm_command)
6178 (show_source_or_disasm_and_command): Update.
6179
b4ef5aeb
TT
61802019-08-13 Tom Tromey <tom@tromey.com>
6181
6182 * tui/tui-winsource.c (tui_erase_source_content)
6183 (tui_show_source_content, tui_source_window_base::refresh_all):
6184 Update.
6185 * tui/tui-wingeneral.h
6186 (tui_check_and_display_highlight_if_needed): Don't declare.
6187 * tui/tui-wingeneral.c
6188 (tui_win_info::check_and_display_highlight_if_needed): Rename from
6189 check_and_display_highlight_if_needed.
6190 * tui/tui-win.c (tui_rehighlight_all)
6191 (tui_win_info::make_visible_with_new_height): Update.
6192 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
6193 (tui_data_window::erase_data_content)
6194 (tui_data_window::display_all_data): Update.
6195 * tui/tui-data.h (struct tui_win_info)
6196 <check_and_display_highlight_if_needed>: Declare.
6197
fede5273
TT
61982019-08-13 Tom Tromey <tom@tromey.com>
6199
6200 * tui/tui-win.c (tui_resize_all): Call
6201 tui_delete_invisible_windows.
6202 * tui/tui-layout.c (show_layout): Call
6203 tui_delete_invisible_windows.
6204 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
6205 * tui/tui-data.c (tui_delete_invisible_windows): New function.
6206
22c3f490
TT
62072019-08-13 Tom Tromey <tom@tromey.com>
6208
6209 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
6210 tui_add_win_to_layout.
6211
16cb7910
TT
62122019-08-13 Tom Tromey <tom@tromey.com>
6213
6214 * tui/tui-layout.h (tui_default_win_height): Don't declare.
6215 * tui/tui-layout.c (tui_default_win_height): Now static.
6216
cc0c3ffb
TT
62172019-08-13 Tom Tromey <tom@tromey.com>
6218
6219 * tui/tui-layout.c (show_layout): Unify all layout cases into a
6220 single switch.
6221 (show_source_disasm_command, show_source_or_disasm_and_command):
6222 Don't check current layout.
6223
3f3ffe54
TT
62242019-08-13 Tom Tromey <tom@tromey.com>
6225
6226 * tui/tui-wingeneral.c (make_all_visible): Remove.
6227 (tui_make_all_invisible): Simplify.
6228 * tui/tui-layout.c (tui_make_all_invisible): Move from
6229 tui-wingeneral.c; simplify.
6230 (show_layout): Hoist call to tui_make_all_invisible.
6231 (show_data): Don't call tui_make_all_invisible.
6232
69258091
TT
62332019-08-13 Tom Tromey <tom@tromey.com>
6234
6235 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
6236 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
6237
62cf57fe
TT
62382019-08-13 Tom Tromey <tom@tromey.com>
6239
6240 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
6241 tui-data.c.
6242 (show_source_disasm_command, show_data)
6243 (show_source_or_disasm_and_command): Don't use
6244 tui_set_current_layout_to.
6245 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
6246 * tui/tui-data.c (current_layout, tui_current_layout): Move to
6247 tui-layout.c.
6248 (tui_set_current_layout_to): Remove.
6249
2afade5d
TT
62502019-08-13 Tom Tromey <tom@tromey.com>
6251
6252 * tui/tui-layout.c (tui_set_layout): Update.
6253 * tui/tui-data.h (struct tui_layout_def): Remove.
6254 (tui_layout_def): Don't declare.
6255 * tui/tui-data.c (layout_def): Remove.
6256 (tui_layout_def): Remove.
6257
a3504e96
TT
62582019-08-13 Tom Tromey <tom@tromey.com>
6259
6260 * tui/tui-winsource.h (struct tui_source_window_base)
6261 <clear_detail>: No longer "override".
6262 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
6263 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
6264 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
6265 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
6266 Remove.
6267 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
6268
29c92911
TT
62692019-08-13 Tom Tromey <tromey@adacore.com>
6270
6271 * tracepoint.c: Don't include readline.h or history.h.
6272
86c6b807
TT
62732019-08-12 Tom Tromey <tom@tromey.com>
6274
6275 * configure: Rebuild.
6276 * configure.ac: Check for readline 7.
6277 * NEWS: Mention readline 7 requirement.
6278 * README: Update.
6279
5db2718c
TT
62802019-08-12 Tom Tromey <tom@tromey.com>
6281
6282 * mingw-hdep.c (gdb_select): Remove readline hack.
6283
dac36daf
PFC
62842019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6285
6286 * blockframe.c (find_pc_partial_function): Set *block to nullptr
6287 when the function fails.
6288
1022c627
AA
62892019-08-09 Andreas Arnez <arnez@linux.ibm.com>
6290
6291 * s390-tdep.c (s390_type_align): New function.
6292 (s390_gdbarch_init): Set it as type_align gdbarch method.
6293
eba4caf2
TV
62942019-08-09 Tom de Vries <tdevries@suse.de>
6295
6296 PR gdb/24591
6297 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
6298 pc_low with relocation offset.
6299
123cd851
TT
63002019-08-07 Tom Tromey <tromey@adacore.com>
6301
6302 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
6303 (print_frame_args): Update.
6304 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
6305 Update.
6306 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
6307 * frame.h (struct frame_arg): Add initializers.
6308 <error>: Now a unique_xmalloc_ptr.
6309
3d31bc39
AH
63102019-08-07 Alan Hayward <alan.hayward@arm.com>
6311
6312 * NEWS: Expand the Pointer Authentication entry.
6313 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
6314 (aarch64_frame_unmask_lr): ... to this.
6315 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
6316 Call aarch64_frame_unmask_lr.
6317 * frame.c (struct frame_info): Add "masked" variable.
6318 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
6319 (fprint_frame): Check for masked pc.
6320 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
6321 declarations.
6322 * python/py-framefilter.c (py_print_frame): Check for masked pc.
6323 * stack.c (print_frame): Check for masked pc.
6324
0cf9feb9
TT
63252019-08-06 Tom Tromey <tom@tromey.com>
6326
6327 * stabsread.c (patch_block_stabs, read_one_struct_field)
6328 (read_enum_type): Use obstack_strndup.
6329 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
6330 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
6331 * dwarf2read.c (guess_full_die_structure_name)
6332 (anonymous_struct_prefix): Use obstack_strndup.
6333 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
6334 * c-exp.y (yylex): Use obstack_strndup.
6335 * ada-exp.y (write_object_renaming, write_ambiguous_var)
6336 (write_var_or_type): Use obstack_strndup.
6337
efba19b0
TT
63382019-08-06 Tom Tromey <tom@tromey.com>
6339
6340 * symfile.c (reread_symbols): Use obstack_strdup.
6341 * stabsread.c (read_type): Use obstack_strdup.
6342 * gdb_obstack.h (obstack_strdup): New overload.
6343 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
6344 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
6345 (dwarf2_canonicalize_name): Use obstack_strdup.
6346 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
6347 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
6348 Use obstack_strdup.
6349
f25102f7
TT
63502019-08-06 Tom Tromey <tom@tromey.com>
6351
6352 * gdb_obstack.h (obstack_strdup): Define.
6353 * gdb_obstack.c (obstack_strdup): Don't define.
6354
021887d8
TT
63552019-08-06 Tom Tromey <tom@tromey.com>
6356
6357 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
6358 obstack_strdup.
6359 * typeprint.c (typedef_hash_table::find_global_typedef): Use
6360 obstack_strdup.
6361 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
6362 * stabsread.c (common_block_start): Use obstack_strdup.
6363 * objfiles.c (set_objfile_main_name, objfile): Use
6364 obstack_strdup.
6365 * namespace.c (add_using_directive): Use obstack_strdup.
6366 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
6367 * jit.c (finalize_symtab): Use obstack_strdup.
6368 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
6369 (guess_partial_die_structure_name, partial_die_info::fixup)
6370 (dwarf2_name): Use obstack_strdup.
6371 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
6372 obstack_strdup.
6373 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
6374 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
6375 obstack_strdup.
6376 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
6377
d2834edc
PW
63782019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6379
6380 * unittests/help-doc-selftests.c: New file.
6381 * Makefile.in: Add the new file.
6382
590042fc
PW
63832019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6384
6385 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
6386 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
6387 the full first line, except when FOR_VALUE_PREFIX. In this case,
6388 the trailing '.' is not output, and the first character is uppercased.
6389 (print_help_for_command): Update call to print_doc_line.
6390 (print_doc_of_command): Likewise.
6391 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
6392 * cli/cli-option.c (append_indented_doc): Do not append newline.
6393 (build_help_option): Append newline after first appended_indented_doc
6394 only if a second call is done.
6395 (build_help): Append 2 new lines before each option, except the first
6396 one.
6397 * compile/compile.c (_initialize_compile): Add new lines after
6398 %OPTIONS%, when not at the end of the help.
6399 Change help doc or code
6400 producing the help doc to respect the invariants.
6401 * maint-test-options.c (_initialize_maint_test_options): Likewise.
6402 Also removed the new line after 'Options:', as all other commands
6403 do not put an empty line between 'Options:' and the first option.
6404 * printcmd.c (_initialize_printcmd): Likewise.
6405 * stack.c (_initialize_stack): Likewise.
6406 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
6407 incorrectly telling COMMAND is optional.
6408 * ada-lang.c (_initialize_ada_language): Change help doc or code
6409 producing the help doc to respect the invariants.
6410 * ada-tasks.c (_initialize_ada_tasks): Likewise.
6411 * breakpoint.c (_initialize_breakpoint): Likewise.
6412 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
6413 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
6414 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
6415 * cli/cli-style.c (cli_style_option::add_setshow_commands,
6416 _initialize_cli_style): Likewise.
6417 * corelow.c (core_target_info): Likewise.
6418 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
6419 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
6420 * filesystem.c (_initialize_filesystem): Likewise.
6421 * frame.c (_initialize_frame): Likewise.
6422 * gnu-nat.c (add_task_commands): Likewise.
6423 * infcall.c (_initialize_infcall): Likewise.
6424 * infcmd.c (_initialize_infcmd): Likewise.
6425 * interps.c (_initialize_interpreter): Likewise.
6426 * language.c (_initialize_language): Likewise.
6427 * linux-fork.c (_initialize_linux_fork): Likewise.
6428 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
6429 * maint.c (_initialize_maint_cmds): Likewise.
6430 * memattr.c (_initialize_mem): Likewise.
6431 * printcmd.c (_initialize_printcmd): Likewise.
6432 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
6433 _RegEx): Likewise.
6434 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
6435 * record-btrace.c (_initialize_record_btrace): Likewise.
6436 * record-full.c (_initialize_record_full): Likewise.
6437 * record.c (_initialize_record): Likewise.
6438 * regcache-dump.c (_initialize_regcache_dump): Likewise.
6439 * regcache.c (_initialize_regcache): Likewise.
6440 * remote.c (add_packet_config_cmd, init_remote_threadtests,
6441 _initialize_remote): Likewise.
6442 * ser-tcp.c (_initialize_ser_tcp): Likewise.
6443 * serial.c (_initialize_serial): Likewise.
6444 * skip.c (_initialize_step_skip): Likewise.
6445 * source.c (_initialize_source): Likewise.
6446 * stack.c (_initialize_stack): Likewise.
6447 * symfile.c (_initialize_symfile): Likewise.
6448 * symtab.c (_initialize_symtab): Likewise.
6449 * target-descriptions.c (_initialize_target_descriptions): Likewise.
6450 * top.c (init_main): Likewise.
6451 * tracefile-tfile.c (tfile_target_info): Likewise.
6452 * tracepoint.c (_initialize_tracepoint): Likewise.
6453 * tui/tui-win.c (_initialize_tui_win): Likewise.
6454 * utils.c (add_internal_problem_command): Likewise.
6455 * valprint.c (value_print_option_defs): Likewise.
6456
404f2902
FCE
64572019-08-06 Frank Ch. Eigler <fche@redhat.com>
6458
6459 PR build/24886
6460 * configure.ac: Drop enable-libmcheck support.
6461 * configure, config.in: Rebuild.
6462 * libmcheck.m4: Remove.
6463 * acinclude.m4: Don't include it.
6464 * Makefile.in: Don't distribute it.
6465 * top.c (print_gdb_configuration): Don't mention it.
6466
046bebe1
TT
64672019-08-06 Tom Tromey <tom@tromey.com>
6468
6469 * utils.c (set_output_style): Sometimes pass stream to
6470 emit_style_escape.
6471 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
6472 * record-btrace.c (btrace_insn_history): Update.
6473 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
6474 method.
6475 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
6476 Update initializers.
6477 <m_uiout>: New field.
6478 <m_di>: Move lower.
6479 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
6480 Remove "uiout" parameter.
6481 (dump_insns): Update.
6482 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
6483 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
6484
ddbcedf5
CB
64852019-08-06 Christian Biesinger <cbiesinger@google.com>
6486
6487 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
6488 (error_in_psymtab_expansion): Likewise.
6489 (lookup_symbol_via_quick_fns): Likewise.
6490 (basic_lookup_transparent_type_quick): Likewise.
6491 (basic_lookup_transparent_type_1): Likewise.
6492
b08b16c8
TT
64932019-08-06 Tom Tromey <tromey@adacore.com>
6494
6495 * source.c (last_source_error): Now bool.
6496 (print_source_lines_base): Make "noprint" bool. Only open
6497 source file when last_source_visited changes.
6498
cb44333d
TT
64992019-08-06 Tom Tromey <tromey@adacore.com>
6500
6501 * annotate.c (annotate_source_line): Use g_source_cache.
6502 * source-cache.c (source_cache::get_plain_source_lines): Change
6503 parameters. Populate m_offset_cache.
6504 (source_cache::ensure): New method.
6505 (source_cache::get_line_charpos): New method.
6506 (extract_lines): Move lower. Change parameters.
6507 (source_cache::get_source_lines): Move lower.
6508 * source-cache.h (class source_cache): Update comment.
6509 <get_line_charpos>: New method.
6510 <get_source_lines>: Update comment.
6511 <clear>: Clear m_offset_cache.
6512 <get_plain_source_lines>: Change parameters.
6513 <ensure>: New method
6514 <m_offset_cache>: New member.
6515 * source.c (forget_cached_source_info_for_objfile): Update.
6516 (info_source_command): Use g_source_cache.
6517 (find_source_lines, open_source_file_with_line_charpos): Remove.
6518 (print_source_lines_base, search_command_helper): Use g_source_cache.
6519 * source.h (open_source_file_with_line_charpos): Don't declare.
6520 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
6521 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
6522 Use g_source_cache.
6523
872dceaa
TT
65242019-08-06 Tom Tromey <tromey@adacore.com>
6525
6526 * source-cache.c (source_cache::get_plain_source_lines):
6527 Remove "first_line" and "last_line" parameters.
6528 (source_cache::get_source_lines): Cache plain text.
6529 * source-cache.h (class source_cache)
6530 <get_plain_source_lines>: Update.
6531
269249d9
TT
65322019-08-06 Tom Tromey <tromey@adacore.com>
6533
6534 * source-cache.c (extract_lines): No longer a method.
6535 Changed type of parameter. Include final newline.
6536 (selftests::extract_lines_test): New function.
6537 (_initialize_source_cache): Likewise.
6538 * source-cache.h (class source_cache)
6539 <extract_lines>: Don't declare.
6540
c0e8dcd8
TT
65412019-08-06 Tom Tromey <tromey@adacore.com>
6542
6543 * breakpoint.c (init_breakpoint_sal): Update.
6544 (breakpoint): Update.
6545 * breakpoint.h (struct breakpoint) <filter>: Now a
6546 unique_xmalloc_ptr.
6547
0b27c27d
CB
65482019-08-05 Christian Biesinger <cbiesinger@google.com>
6549
6550 * NEWS: Mention dictionary access on blocks.
6551 * python/py-block.c (blpy_getitem): New function.
6552 (block_object_as_mapping): New struct.
6553 (block_object_type): Use new struct for tp_as_mapping field.
6554
4ee94178
CB
65552019-08-05 Christian Biesinger <cbiesinger@google.com>
6556
6557 * objfiles.h (objfile): Add a comment describing partial symbols.
6558
8abfcabc
TT
65592019-08-05 Tom Tromey <tromey@adacore.com>
6560
6561 * compile/compile.c (_initialize_compile): Use _(), not N_().
6562 * thread.c (_initialize_thread): Use _(), not N_().
6563 * stack.c (_initialize_stack): Use _(), not N_().
6564 * printcmd.c (_initialize_printcmd): Use _(), not N_().
6565
2b79f376
SM
65662019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6567
6568 * dwarf2read.c (struct dw2_symtab_iterator):
6569 <want_specific_block>: Remove.
6570 <block_index>: Change type to gdb::optional.
6571 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
6572 change type of BLOCK_INDEX parameter to gdb::optional.
6573 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
6574 (dw2_lookup_symbol): Don't pass argument for
6575 WANT_SPECIFIC_BLOCK.
6576 (dw2_expand_symtabs_for_function): Don't pass argument for
6577 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
6578 (class dw2_debug_names_iterator)
6579 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
6580 parameter, change BLOCK_INDEX type to gdb::optional.
6581 <m_want_specific_block>: Remove.
6582 <m_block_index>: Change type to gdb::optional.
6583 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
6584 gdb::optional. Re-write in function of gdb::optional.
6585 (dw2_debug_names_lookup_symbol): Don't pass argument for
6586 WANT_SPECIFIC_BLOCK.
6587 (dw2_debug_names_expand_symtabs_for_function): Don't pass
6588 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
6589 BLOCK_INDEX.
6590
ae60f04e
PW
65912019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6592
6593 * NEWS: Mention changes to "info sources" command.
6594
28cd9371
PW
65952019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6596
6597 * symtab.c (filename_partial_match_opts): New struct type.
6598 (struct output_source_filename_data): New members
6599 regexp, c_regexp, partial_match.
6600 (output_source_filename): Use new members to decide to print file.
6601 (info_sources_option_defs): New variable.
6602 (make_info_sources_options_def_group, print_info_sources_header,
6603 info_sources_command_completer):
6604 New functions.
6605 (info_sources_command): Read new optional arguments.
6606 (_initialize_symtab): Update info sources help.
6607
ca683e3a
AO
66082019-08-02 Alexandre Oliva <oliva@adacore.com>
6609
6610 * ada-lang.c (exception_support_info_v0): Renamed from...
6611 (default_exception_support_info): ... this. Create new
6612 definition for v1.
6613 (ada_has_this_exception_support): Look up catch_handlers_sym.
6614 (ada_exception_support_info_sniffer): Try v0 after default.
6615
f1264162
TT
66162019-08-01 Tom Tromey <tromey@adacore.com>
6617
6618 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
6619 gdbarch.h.
6620
0a7b2485
CB
66212019-08-01 Christian Biesinger <cbiesinger@google.com>
6622
6623 * s12z-tdep.c: Fix include path for s12z-opc.h.
6624
c6bdbeb7
AH
66252019-08-01 Alan Hayward <alan.hayward@arm.com>
6626
6627 * NEWS: Require GNU make 3.82.
6628
a2bd7b82
TT
66292019-07-16 Tom Tromey <tom@tromey.com>
6630
6631 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
6632 declare.
6633
aa3b6533
TT
66342019-07-30 Tom Tromey <tromey@adacore.com>
6635
6636 * block.c (contained_in): Remove BLOCK_FUNCTION check.
6637
a1530dc7
KB
66382019-07-30 Kevin Buettner <kevinb@redhat.com>
6639
6640 * printcmd.c (print_address_symbolic): Print negative offsets.
6641 (build_address_symbolic): Force signed arithmetic when computing
6642 offset.
6643
2906593f
CB
66442019-07-30 Christian Biesinger <cbiesinger@google.com>
6645
6646 PR/24474: Add a function to lookup static variables.
6647 * NEWS: Mention this new function.
6648 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
6649 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
6650 * python/python.c (python_GdbMethods): Add new function.
6651
c620ed88
CB
66522019-07-29 Christian Biesinger <cbiesinger@google.com>
6653
6654 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
6655 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
6656 (objfpy_lookup_static_symbol): New function.
6657 (objfile_object_methods): Add new functions.
6658
bc4268a5
PW
66592019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6660
6661 * NEWS: Mention 'set|show print frame-info'. Mention new
6662 'presence' value for 'frame-arguments'. Mention new '-frame-info'
6663 backtrace argument. Mention that python frame filtering code
6664 is now consistent with what 'backtrace' command prints.
6665
4b5e8d19
PW
66662019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6667
6668 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
6669 comments.
6670 (print_frame_info_auto, print_frame_info_source_line,
6671 print_frame_info_location, print_frame_info_source_and_location,
6672 print_frame_info_location_and_address, print_frame_info_short_location):
6673 New declarations.
6674 (struct frame_print_options): New member print_frame_info.
6675 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
6676 * stack.h (get_user_print_what_frame_info): New declaration.
6677 (frame_show_address): New declaration.
6678 * stack.c (print_frame_arguments_choices): New value 'presence'.
6679 (print_frame_info_auto, print_frame_info_source_line,
6680 print_frame_info_location, print_frame_info_source_and_location,
6681 print_frame_info_location_and_address, print_frame_info_short_location,
6682 print_frame_info_choices, print_frame_info_print_what): New definitions.
6683 (print_frame_args): Only print dots for args if print frame-arguments
6684 is 'presence'.
6685 (frame_print_option_defs): New element for "frame-info".
6686 (get_user_print_what_frame_info): New function.
6687 (frame_show_address): Make non static. Move comment to stack.h.
6688 (print_frame_info_to_print_what): New function.
6689 (print_frame_info): Update comment. Use fp_opts.print_frame_info
6690 to decide what to print.
6691 (backtrace_command_1): Handle the new print_frame_arguments_presence
6692 value.
6693 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
6694 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
6695 (py_print_frame): In non-mi mode, use LOCATION as default for
6696 print_what, similarly to frame information printed directly by
6697 backtrace command. Handle frame-info user option in non MI mode.
6698
6bdfee81
KB
66992019-07-27 Kevin Buettner <kevinb@redhat.com>
6700
6701 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
6702 Add case for debugging 32-bit target on 64-bit host. Revise
6703 comment.
6704
98a617f8
KB
67052019-07-27 Kevin Buettner <kevinb@redhat.com>
6706
6707 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
6708 instead of find_function_entry_range_from_pc.
6709
567238c9
KB
67102019-07-27 Kevin Buettner <kevinb@redhat.com>
6711
6712 * stack.c (find_frame_funname): Remove code which preferred
6713 minsym over symtab sym in "certain pathological cases".
6714
2dc80cf8
KB
6715 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
6716 parameter. Change type of "do_demangle" to bool.
6717 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
6718 Pass suitable "prefer_sym_over_minsym" flag to
6719 build_address_symbolic(). Don't output "+" for negative offsets.
6720 * printcmd.c (print_address_symbolic): Update invocation of
6721 build_address_symbolic to include a "prefer_sym_over_minsym"
6722 flag.
6723 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
6724 Restrict cases in which use of minimal symbol is preferred to that
6725 of a found symbol. Update comments.
6726
1aff7173
KB
6727 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
6728 for entry pc when entry pc is out of range for that FDE.
6729
89b085ac
BC
67302019-07-26 Brian Callahan <bcallah@openbsd.org>
6731
6732 PR gdb/24839:
6733 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
6734 type.
6735
f32feb4a
CB
67362019-07-25 Christian Biesinger <cbiesinger@google.com>
6737
6738 * python/py-objfile.c (add_separate_debug_file): Fix comment about
6739 this function's Python signature.
6740
6741
67422019-07-24 Christian Biesinger <cbiesinger@google.com>
442853af
CB
6743
6744 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
6745 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
6746 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
6747 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
6748 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
6749
6750
c54e4253
YS
67512019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
6752
6753 * h8300-tdep.c (h8300_register_name_common): New.
6754 h8300_register_name): Use h8300_register_name_common.
6755 (h8300s_register_name): Likewise.
6756 (h8300sx_register_name): Likewise.
6757 (h8300h_register_nam): New.
6758 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
6759
6760
40eadf04
SP
67612019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
6762
6763 * arm-tdep.c (arm_skip_cmse_entry): New function.
6764 (arm_is_sgstubs_section): New function.
6765 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
6766
bfa2a36d
TT
67672019-07-22 Tom Tromey <tom@tromey.com>
6768
6769 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
6770 Don't self-assign.
6771
a8e9d247
AB
67722019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
6773
6774 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
6775 type_print.
6776
eb86c5e2
AB
67772019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
6778
6779 * symtab.c (search_symbols): Adjust msymbol matching type arrays
6780 so that GDB doesn't match any msymbols when searching in the
6781 TYPES_DOMAIN.
6782 (print_symbol_info): Print using typedef_print or type_print based
6783 on the type of the symbol. Add updated FIXME comment moved from...
6784 (_initialize_symtab): ... move and update FIXME comment to above.
6785
a8eab7c6
AB
67862019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
6787
6788 * NEWS: Mention adding -q option to "info types".
6789 * symtab.c (struct info_types_options): New struct.
6790 (info_types_options_defs): New variable.
6791 (make_info_types_options_def_group): New function.
6792 (info_types_command): Use gdb::option framework to parse options.
6793 (info_types_command_completer): New function.
6794 (_initialize_symtab): Extend the help text on "info types" and
6795 register command completer.
6796
b4603c34
CB
67972019-07-21 Christian Biesinger <cbiesinger@google.com>
6798
6799 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
6800 (lookup_symbol_in_objfile): Change int to block_enum and add a
6801 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
6802
c8cdc1e0
CB
68032019-07-20 Christian Biesinger <cbiesinger@google.com>
6804
6805 * MAINTAINERS (Write After Approval): Add self.
6806
01e175fe
AB
68072019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
6808
6809 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
6810 instruction to the dummy code region.
6811
56f79b63
TT
68122019-07-19 Tom Tromey <tromey@adacore.com>
6813
6814 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
6815 (ARGSUSED, PARAMS, __func__): Remove rules.
6816
4c5aa8e0
AH
68172019-07-19 Alan Hayward <alan.hayward@arm.com>
6818
6819 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
6820 * features/arm/arm-with-iwmmxt.c: Remove.
6821 * features/arm/arm-with-iwmmxt.xml: Remove.
6822 * features/arm/arm-with-m-fpa-layout.c: Remove.
6823 * features/arm/arm-with-m-fpa-layout.xml: Remove.
6824 * features/arm/arm-with-m-vfp-d16.c: Remove.
6825 * features/arm/arm-with-m-vfp-d16.xml: Remove.
6826 * features/arm/arm-with-m.c: Remove.
6827 * features/arm/arm-with-m.xml: Remove.
6828 * features/arm/arm-with-neon.c: Remove.
6829 * features/arm/arm-with-neon.xml: Remove.
6830 * features/arm/arm-with-vfpv2.c: Remove.
6831 * features/arm/arm-with-vfpv2.xml: Remove.
6832 * features/arm/arm-with-vfpv3.c: Remove.
6833 * features/arm/arm-with-vfpv3.xml: Remove.
6834
f42b2617
AH
68352019-07-19 Alan Hayward <alan.hayward@arm.com>
6836
6837 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
6838
f29ec966
AH
68392019-07-19 Alan Hayward <alan.hayward@arm.com>
6840
6841 * arch/aarch32.c (aarch32_create_target_description): Create
6842 target descriptions using features.
6843 * arch/arm.c (arm_create_target_description)
6844 (arm_create_mprofile_target_description): Likewise.
6845 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
6846
d105cce5
AH
68472019-07-19 Alan Hayward <alan.hayward@arm.com>
6848
6849 * Makefile.in: Add new files.
6850 * aarch32-tdep.c: New file.
6851 * aarch32-tdep.h: New file.
6852 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
6853 Call aarch32_read_description.
6854 * arch/aarch32.c: New file.
6855 * arch/aarch32.h: New file.
6856 * arch/arm.c (arm_create_target_description)
6857 (arm_create_mprofile_target_description): New function.
6858 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
6859 (arm_create_target_description)
6860 (arm_create_mprofile_target_description): New declaration.
6861 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
6862 read_description functions.
6863 * arm-linux-nat.c (arm_linux_nat_target::read_description):
6864 Likewise.
6865 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
6866 * arm-tdep.c (tdesc_arm_list): New variable.
6867 (arm_register_g_packet_guesses): Call create description functions.
6868 (arm_read_description) (arm_read_mprofile_description): New
6869 function.
6870 * arm-tdep.h (arm_read_description)
6871 (arm_read_mprofile_description): Add declaration.
6872 * configure.tgt: Add new files.
6873
afe09f0b
GL
68742019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
6875
6876 * top.c (new_ui_command): Open specified terminal just once.
6877
cd215b2e
TT
68782019-07-18 Tom Tromey <tromey@adacore.com>
6879
6880 * symtab.c (main_name): Constify return type.
6881 * symfile.c (set_initial_language): Update.
6882 * symtab.h (main_name): Constify return type.
6883
d8f68fcb
TT
68842019-07-17 Tom Tromey <tom@tromey.com>
6885
6886 * tui/tui-winsource.c (tui_update_source_window)
6887 (tui_update_source_window_as_is)
6888 (tui_update_source_windows_with_line): Remove return.
6889 * tui/tui-disasm.c (tui_show_disassem)
6890 (tui_show_disassem_and_update_source): Remove return.
6891 * tui/tui.c (tui_reset): Remove return.
6892 * tui/tui-wingeneral.c
6893 (tui_check_and_display_highlight_if_needed): Remove return.
6894
ca5af91e
TT
68952019-07-17 Tom Tromey <tom@tromey.com>
6896
6897 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
6898
5104fe36
TT
68992019-07-17 Tom Tromey <tom@tromey.com>
6900
6901 * tui/tui-winsource.h (struct tui_exec_info_window)
6902 (struct tui_source_window_base): Move from tui-data.h.
6903 * tui/tui-winsource.c: Move many method definitions from
6904 elsewhere. Remove "structuring" comments.
6905 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
6906 (tui_source_window_base::refresh_window): Move to
6907 tui-winsource.c.
6908 * tui/tui-win.c (tui_source_window_base::refresh_all)
6909 (tui_source_window_base::update_tab_width)
6910 (tui_source_window_base::set_new_height)
6911 (tui_source_window_base::do_make_visible_with_new_height): Move to
6912 tui-winsource.c.
6913 * tui/tui-source.h: Update.
6914 * tui/tui-source.c (tui_source_window_base::reset): Move to
6915 tui-winsource.c.
6916 * tui/tui-disasm.h: Update.
6917 * tui/tui-data.h (struct tui_exec_info_window): Move to
6918 tui-winsource.h.
6919 (struct tui_source_window_base): Likewise.
6920 * tui/tui-data.c (tui_source_window_base::clear_detail)
6921 (tui_source_window_base, ~tui_source_window_base): Move to
6922 tui-winsource.c.
6923
daa15dde
TT
69242019-07-17 Tom Tromey <tom@tromey.com>
6925
6926 * tui/tui-win.c (tui_resize_all)
6927 (tui_source_window_base::update_tab_width)
6928 (tui_adjust_win_heights): Update.
6929 (tui_win_info::make_invisible_and_set_new_height): Rename from
6930 make_invisible_and_set_new_height.
6931 * tui/tui-data.h (struct tui_win_info)
6932 <make_invisible_and_set_new_height>: New method.
6933
bfad4537
TT
69342019-07-17 Tom Tromey <tom@tromey.com>
6935
6936 * tui/tui.c: Update.
6937 * tui/tui-source.h (struct tui_source_window): Move from
6938 tui-data.h.
6939 * tui/tui-layout.c: Update.
6940 * tui/tui-disasm.c: Update.
6941 * tui/tui-data.h (struct tui_source_window): Move to
6942 tui-source.h.
6943
88f7e873
TT
69442019-07-17 Tom Tromey <tom@tromey.com>
6945
6946 * tui/tui-disasm.h (struct tui_disasm_window): Move from
6947 tui-data.h.
6948 * tui/tui-data.h (struct tui_disasm_window): Move to
6949 tui-disasm.h.
6950
96bd6233
TT
69512019-07-17 Tom Tromey <tom@tromey.com>
6952
6953 * tui/tui-regs.h (struct tui_data_item_window): Move from
6954 tui-data.h.
6955 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
6956 * tui/tui-data.h (struct tui_data_item_window): Move to
6957 tui-regs.h.
6958 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
6959
ce38393b
TT
69602019-07-17 Tom Tromey <tom@tromey.com>
6961
6962 * tui/tui.c: Update.
6963 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
6964 (tui_cmd_window::max_height): Move to tui-command.c.
6965 * tui/tui-layout.c: Update.
6966 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
6967 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
6968 tui-command.c.
6969 * tui/tui-command.h (struct tui_cmd_window): Move from
6970 tui-data.h.
6971 * tui/tui-command.c: Remove "structuring" comments.
6972 (tui_cmd_window::clear_detail)
6973 (tui_cmd_window::do_make_visible_with_new_height)
6974 (tui_cmd_window::max_height): Move from elsewhere.
6975
2d8b51cb
TT
69762019-07-17 Tom Tromey <tom@tromey.com>
6977
6978 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
6979 Now static.
6980 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
6981 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
6982
18ab23af
TT
69832019-07-17 Tom Tromey <tom@tromey.com>
6984
6985 * tui/tui.c: Update.
6986 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
6987 tui-regs.c.
6988 * tui/tui-windata.h: Remove file.
6989 * tui/tui-windata.c: Remove file.
6990 * tui/tui-win.c (tui_data_window::set_new_height)
6991 (tui_data_window::do_make_visible_with_new_height): Move to
6992 tui-regs.c.
6993 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
6994 * tui/tui-regs.c: Remove "structuring" comments.
6995 (tui_data_window::first_data_item_displayed)
6996 (tui_data_window::delete_data_content_windows)
6997 (tui_data_window::erase_data_content)
6998 (tui_data_window::display_all_data)
6999 (tui_data_window::refresh_all)
7000 (tui_data_window::do_scroll_vertical)
7001 (tui_data_window::clear_detail, tui_data_window::set_new_height)
7002 (tui_data_window::do_make_visible_with_new_height)
7003 (tui_data_window::refresh_window): Move from elsewhere.
7004 (_initialize_tui_regs): Move to end of file.
7005 * tui/tui-layout.c: Update.
7006 * tui/tui-hooks.c: Update.
7007 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
7008 * tui/tui-data.c (tui_data_window::clear_detail): Move to
7009 tui-regs.c.
7010 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
7011
88b7e7cc
TT
70122019-07-17 Tom Tromey <tom@tromey.com>
7013
7014 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
7015 seen.
7016
0fcd3711
TT
70172019-07-17 Tom Tromey <tom@tromey.com>
7018
7019 * tui/tui-win.c (tui_source_window_base::set_new_height)
7020 (tui_source_window_base::do_make_visible_with_new_height): Use
7021 m_has_locator field directly.
7022 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
7023 method.
7024 (struct tui_source_window_base) <has_locator>: Likewise.
7025
4a38112d
TT
70262019-07-17 Tom Tromey <tom@tromey.com>
7027
7028 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
7029 Don't declare.
7030 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
7031 Remove.
7032 * tui/tui-win.c (tui_source_window_base::set_new_height)
7033 (tui_source_window_base::set_new_height)
7034 (make_invisible_and_set_new_height)
7035 (tui_source_window_base::do_make_visible_with_new_height)
7036 (tui_source_window_base::do_make_visible_with_new_height):
7037 Update.
7038 * tui/tui-layout.c (show_source_disasm_command, show_data)
7039 (show_source_or_disasm_and_command): Update.
7040 * tui/tui-layout.c (show_layout): Update.
7041
09129226
TT
70422019-07-17 Tom Tromey <tom@tromey.com>
7043
7044 * tui/tui-layout.c (make_data_window): Remove.
7045 (show_data): Unify creation and re-initialization cases.
7046
4a8a5e84
TT
70472019-07-17 Tom Tromey <tom@tromey.com>
7048
7049 * tui/tui-layout.c (make_source_window, make_disasm_window):
7050 Remove.
7051 (show_data): Unify creation and re-initialization cases.
7052
76d2be8e
TT
70532019-07-17 Tom Tromey <tom@tromey.com>
7054
7055 * tui/tui-layout.c (make_command_window): Remove.
7056 (show_source_disasm_command, show_source_or_disasm_and_command):
7057 Unify creation and re-initialization cases.
7058
890b8bde
TT
70592019-07-17 Tom Tromey <tom@tromey.com>
7060
7061 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
7062 creation and re-initialization cases.
7063
2cdfa113
TT
70642019-07-17 Tom Tromey <tom@tromey.com>
7065
7066 * tui/tui-regs.c (tui_get_register): Return void.
7067
8e3cfd09
TT
70682019-07-17 Tom Tromey <tom@tromey.com>
7069
7070 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
7071 Simplify.
7072
f4e04977
TT
70732019-07-17 Tom Tromey <tom@tromey.com>
7074
7075 * tui/tui-layout.c (show_source_disasm_command): Simplify window
7076 resetting.
7077
0379b883
TT
70782019-07-17 Tom Tromey <tom@tromey.com>
7079
7080 * tui/tui.h (tui_set_layout_by_name): Don't declare.
7081 * tui/tui-regs.c (tui_reg_layout): New function.
7082 (tui_show_registers, tui_reg_command): Use it.
7083 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
7084 (tui_layout_command): Rename from tui_set_layout_by_name. Change
7085 parameters.
7086 (tui_layout_command): Remove.
7087
b7fbad91
TT
70882019-07-17 Tom Tromey <tom@tromey.com>
7089
7090 * tui/tui-layout.h (tui/tui-layout): Return void.
7091 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
7092
4e1e56b9
TT
70932019-07-17 Tom Tromey <tom@tromey.com>
7094
7095 * tui/tui-layout.c (show_source_disasm_command, show_data):
7096 Update.
7097 (reset_locator): Remove.
7098 (show_source_or_disasm_and_command): Update.
7099
1e0c09ba
TT
71002019-07-17 Tom Tromey <tom@tromey.com>
7101
7102 * tui/tui-source.c (tui_source_window_base::reset): Remove
7103 win_type parameter.
7104 * tui/tui-layout.c (make_command_window, make_source_window)
7105 (make_disasm_window, make_data_window)
7106 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
7107 (reset_locator, show_source_or_disasm_and_command): Update.
7108 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
7109 win_type parameter.
7110 (struct tui_source_window_base) <reset>: Likewise.
7111
1bf605de
TT
71122019-07-17 Tom Tromey <tom@tromey.com>
7113
7114 * tui/tui-layout.c (show_source_disasm_command): Use
7115 reset_locator.
7116 (reset_locator): New function.
7117 (init_and_make_win): Remove.
7118 (show_source_or_disasm_and_command): Use reset_locator.
7119
098f9ed4
TT
71202019-07-17 Tom Tromey <tom@tromey.com>
7121
7122 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
7123 condition.
7124 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
7125 Remove condition.
7126 * tui/tui-source.c (tui_source_window_base::reset): New method.
7127 * tui/tui-layout.c (make_command_window): Don't call
7128 init_and_make_win.
7129 (make_source_window, make_disasm_window): Don't call
7130 make_source_or_disasm_window.
7131 (make_data_window): Don't call init_and_make_win. Change calling
7132 convention.
7133 (show_source_disasm_command, show_data): Simplify.
7134 (make_source_or_disasm_window): Remove.
7135 (show_source_or_disasm_and_command): Simplify.
7136 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
7137 (struct tui_source_window_base) <reset>: Likewise.
7138 <execution_info>: Remove initializer.
7139 * tui/tui-data.c (tui_source_window_base): Initialize
7140 execution_info.
7141
80110957
TT
71422019-07-17 Tom Tromey <tom@tromey.com>
7143
7144 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
7145 variable.
7146
cf82af05
TT
71472019-07-17 Tom Tromey <tom@tromey.com>
7148
7149 * tui/tui.c (tui_rl_other_window): Update.
7150 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
7151 superclass method first. Always iterate over regs_content.
7152 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
7153 method.
7154 * tui/tui-win.c (tui_set_focus_command): Update.
7155
01aeb396
TT
71562019-07-17 Tom Tromey <tom@tromey.com>
7157
7158 * tui/tui-win.c (tui_set_focus_command): Rename from
7159 tui_set_focus. Call tui_enable.
7160 (tui_set_focus_command): Remove.
7161
fd6c75ee
TT
71622019-07-17 Tom Tromey <tom@tromey.com>
7163
7164 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
7165 refresh_window.
7166 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
7167 touchwin.
7168 (tui_data_window::refresh_window): Call refresh_window on data
7169 items. Always call superclass refresh_window.
7170 (tui_win_info::refresh): Remove.
7171 (tui_source_window_base::refresh_window): Update.
7172 (tui_refresh_all): Update.
7173 * tui/tui-layout.c (show_source_disasm_command): Remove call to
7174 refresh_window.
7175 (show_source_or_disasm_and_command): Likewise.
7176 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
7177 (struct tui_source_window_base) <refresh>: Likewise.
7178
f6cc34a9
TT
71792019-07-17 Tom Tromey <tom@tromey.com>
7180
7181 * tui/tui-winsource.c (tui_clear_source_content)
7182 (tui_show_source_content): Update.
7183 * tui/tui-source.c (tui_source_window::showing_source_p): Check
7184 whether content is empty.
7185 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
7186 Remove.
7187
f31ec9af
TT
71882019-07-17 Tom Tromey <tom@tromey.com>
7189
7190 * tui/tui-winsource.c (tui_erase_source_content): Clear the
7191 window's contents.
7192 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
7193 * tui/tui-source.c (tui_set_source_content_nil): Remove.
7194
d1b6f1e5
TT
71952019-07-17 Tom Tromey <tom@tromey.com>
7196
7197 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
7198 (struct tui_data_item_window): Update.
7199
d9743a13
TT
72002019-07-17 Tom Tromey <tom@tromey.com>
7201
7202 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
7203 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
7204 defines.
7205
caf0bc4e
TT
72062019-07-17 Tom Tromey <tom@tromey.com>
7207
7208 * tui/tui-winsource.h (tui_erase_source_content)
7209 (tui_clear_source_content): Remove "display_prompt" parameter.
7210 * tui/tui-winsource.c (tui_update_source_window_as_is)
7211 (tui_update_source_windows_with_addr): Update.
7212 (tui_clear_source_content): Remove "display_prompt" parameter.
7213 (tui_erase_source_content): Likewise. Simplify.
7214 (tui_show_source_content): Update.
7215 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
7216 * tui/tui-stack.c (tui_show_frame_info): Update.
7217 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
7218 Remove defines.
7219
9d391078
TT
72202019-07-17 Tom Tromey <tom@tromey.com>
7221
7222 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
7223 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
7224 parameter.
7225 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
7226 parameter.
7227
a38da35d
TT
72282019-07-17 Tom Tromey <tom@tromey.com>
7229
7230 * tui/tui-winsource.c (tui_clear_source_content)
7231 (tui_show_source_content, tui_show_exec_info_content)
7232 (tui_clear_exec_info_content): Update.
7233 * tui/tui-stack.c (tui_show_locator_content): Update.
7234 (tui_show_frame_info): Update.
7235 * tui/tui-source.h (tui_source_window): Don't declare.
7236 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
7237 from tui_source_is_displayed.
7238 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
7239 Remove field.
7240 (struct tui_source_window_base) <content_in_use>: New field. Now
7241 bool.
7242 (struct tui_source_window) <showing_source_p>: New method.
7243 (TUI_SRC_WIN): Change cast.
7244 * tui/tui-data.c (tui_initialize_static_data): Update.
7245
c2cd8994
TT
72462019-07-17 Tom Tromey <tom@tromey.com>
7247
7248 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
7249 location_matches_p.
7250 * tui/tui-source.c (tui_source_window::location_matches_p): New
7251 method.
7252 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
7253 method.
7254 * tui/tui-data.h (struct tui_source_window_base)
7255 <location_matches_p>: New method.
7256 (struct tui_source_window, struct tui_disasm_window)
7257 <location_matches_p>: Likewise.
7258
4dde7b34
TT
72592019-07-17 Tom Tromey <tom@tromey.com>
7260
7261 * tui/tui-win.c (tui_set_win_height_command): Rename from
7262 tui_set_win_height.
7263 (tui_set_win_height_command): Remove.
7264
b73dd877
TT
72652019-07-17 Tom Tromey <tom@tromey.com>
7266
7267 * tui/tui-source.c (tui_source_window): New constructor. Add
7268 observer.
7269 (~tui_source_window): New destructor.
7270 (tui_source_window::style_changed): New method.
7271 * tui/tui-hooks.c (tui_redisplay_source): Remove.
7272 (tui_attach_detach_observers): Update.
7273 * tui/tui-data.h (struct tui_source_window): Make constructor not
7274 inline. Add destructor.
7275 (struct tui_source_window) <style_changed>: New method.
7276 <m_observable>: New member.
7277
ae2b5380
TT
72782019-07-17 Tom Tromey <tom@tromey.com>
7279
7280 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
7281 * tui/tui-win.c (tui_resize_all): Fix typo.
7282
1ce3e844
TT
72832019-07-17 Tom Tromey <tom@tromey.com>
7284
7285 * tui/tui-wingeneral.h (tui_refresh_all): Update.
7286 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
7287 (tui_refresh_all): Remove "list" parameter. Use foreach.
7288 * tui/tui-win.c (window_name_completer): Use foreach.
7289 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
7290 (update_tab_width): Likewise.
7291 * tui/tui-layout.c (show_layout): Update.
7292 * tui/tui-data.h (class tui_window_iterator): New.
7293 (struct all_tui_windows): New.
7294 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
7295
fe3eaf1c
TT
72962019-07-17 Tom Tromey <tom@tromey.com>
7297
7298 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
7299 parameter. Don't reference globals.
7300 (tui_reg_command): Update.
7301
368c1354
TT
73022019-07-17 Tom Tromey <tom@tromey.com>
7303
7304 * tui/tui-regs.c (tui_show_registers): Simplify.
7305
e80cd204
TT
73062019-07-17 Tom Tromey <tom@tromey.com>
7307
7308 * tui/tui-regs.c (tui_show_registers): Update.
7309 (tui_show_register_group): Add win_info parameter.
7310
aca2dd16
TT
73112019-07-17 Tom Tromey <tom@tromey.com>
7312
7313 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
7314 Rename from tui_display_reg_element_at_line.
7315 (tui_data_window::display_registers_from_line): Update.
7316 * tui/tui-data.h (struct tui_data_window)
7317 <display_reg_element_at_line>: New method.
7318
517e9505
TT
73192019-07-17 Tom Tromey <tom@tromey.com>
7320
7321 * tui/tui-regs.h (tui_display_registers_from)
7322 (tui_display_registers_from_line): Don't declare.
7323 * tui/tui-windata.c (tui_data_window::display_all_data)
7324 (tui_data_window::refresh_all)
7325 (tui_data_window::do_scroll_vertical): Update.
7326 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
7327 from tui_display_registers_from.
7328 (tui_display_reg_element_at_line): Update.
7329 (tui_data_window::display_registers_from_line): Rename from
7330 tui_display_registers_from_line.
7331 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
7332 display_registers_from_line>: New methods.
7333
f76d8b19
TT
73342019-07-17 Tom Tromey <tom@tromey.com>
7335
7336 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
7337 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
7338 from tui_erase_data_content.
7339 (tui_data_window::display_all_data)
7340 (tui_data_window::refresh_all)
7341 (tui_data_window::do_scroll_vertical): Update.
7342 * tui/tui-regs.c (tui_show_registers): Update.
7343 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
7344 New method.
7345
b4094625
TT
73462019-07-17 Tom Tromey <tom@tromey.com>
7347
7348 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
7349 declare.
7350 * tui/tui-windata.c
7351 (tui_data_window::delete_data_content_windows): Rename from
7352 tui_delete_data_content_windows.
7353 (tui_data_window::display_all_data)
7354 (tui_data_window::do_scroll_vertical): Update.
7355 * tui/tui-data.h (struct tui_data_window)
7356 <delete_data_content_windows>: New method.
7357
c223a729
TT
73582019-07-17 Tom Tromey <tom@tromey.com>
7359
7360 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
7361 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
7362
50daf268
TT
73632019-07-17 Tom Tromey <tom@tromey.com>
7364
7365 * tui/tui-windata.h (tui_display_all_data): Don't declare.
7366 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
7367 from tui_display_all_data.
7368 * tui/tui-win.c
7369 (tui_data_window::do_make_visible_with_new_height): Update.
7370 * tui/tui-regs.c (tui_show_registers): Update.
7371 * tui/tui-layout.c (tui_set_layout): Update.
7372 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
7373 method.
7374
df5f8cab
TT
73752019-07-17 Tom Tromey <tom@tromey.com>
7376
7377 * tui/tui-windata.h (tui_display_data_from): Don't declare.
7378 * tui/tui-windata.c (tui_display_data_from): Remove.
7379 (tui_data_window::refresh_all): Update.
7380
80cb6c27
TT
73812019-07-17 Tom Tromey <tom@tromey.com>
7382
7383 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
7384 * tui/tui-windata.c (tui_display_data_from_line): Remove.
7385 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
7386 tui_display_registers_from_line.
7387 * tui/tui-regs.h (tui_display_registers_from_line): Update.
7388 * tui/tui-regs.c (tui_display_registers_from_line): Remove
7389 "force_display" parameter.
7390
baff0c28
TT
73912019-07-17 Tom Tromey <tom@tromey.com>
7392
7393 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
7394 declare.
7395 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
7396 Rename from tui_first_reg_element_no_inline.
7397 (tui_display_reg_element_at_line)
7398 (tui_display_registers_from_line): Update.
7399 * tui/tui-data.h (struct tui_data_window)
7400 <first_reg_element_no_inline>: New method.
7401
3b23c5f2
TT
74022019-07-17 Tom Tromey <tom@tromey.com>
7403
7404 * tui/tui-windata.c (tui_display_data_from)
7405 (tui_data_window::do_scroll_vertical): Update.
7406 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
7407 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
7408 Rename from tui_line_from_reg_element_no.
7409 (tui_display_registers_from_line): Update.
7410 * tui/tui-data.h (struct tui_data_window)
7411 <line_from_reg_element_no>: New method.
7412
0b5ec218
TT
74132019-07-17 Tom Tromey <tom@tromey.com>
7414
7415 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
7416 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
7417 tui_last_regs_line_no.
7418 (tui_display_reg_element_at_line)
7419 (tui_display_registers_from_line): Update.
7420 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
7421 method.
7422
0807ab7b
TT
74232019-07-17 Tom Tromey <tom@tromey.com>
7424
7425 PR tui/24722:
7426 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
7427 (tui_update_breakpoint_info): Add "being_deleted" parameter.
7428 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
7429 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
7430 (tui_update_breakpoint_info): Likewise.
7431 * tui/tui-hooks.c (tui_event_create_breakpoint)
7432 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
7433 Update.
7434
9ad7fdef
TT
74352019-07-17 Tom Tromey <tom@tromey.com>
7436
7437 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
7438
5813316f
TT
74392019-07-17 Tom Tromey <tom@tromey.com>
7440
7441 * tui/tui-winsource.c (tui_update_source_window_as_is)
7442 (tui_update_source_windows_with_addr): Update.
7443 * tui/tui-source.h (tui_set_source_content)
7444 (tui_show_symtab_source): Add "win_info" parameter.
7445 * tui/tui-source.c (tui_set_source_content): Add "win_info"
7446 parameter.
7447 (tui_show_symtab_source): Likewise.
7448
00e264e7
TT
74492019-07-17 Tom Tromey <tom@tromey.com>
7450
7451 * tui/tui-wingeneral.c
7452 (tui_check_and_display_highlight_if_needed): Check can_highlight.
7453
06210ce4
TT
74542019-07-17 Tom Tromey <tom@tromey.com>
7455
7456 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
7457 (struct tui_cmd_window) <can_scroll>: New method.
7458 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
7459 method.
7460
381befee
TT
74612019-07-17 Tom Tromey <tromey@adacore.com>
7462
7463 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
7464 do_field_signed>: Rename. Change type of "value".
7465 * ui-out.c (ui_out::field_signed): Rename from field_int.
7466 Change type of "value".
7467 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
7468 type of "value".
7469 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
7470 do_field_int. Change type of "value".
7471 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
7472 do_field_int. Change type of "value".
7473 * tracepoint.c (trace_status_mi, tfind_1)
7474 (print_one_static_tracepoint_marker): Update.
7475 * thread.c (print_thread_info_1, print_selected_thread_frame):
7476 Update.
7477 * stack.c (print_frame, print_frame_info): Update.
7478 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
7479 Update.
7480 * source.c (print_source_lines_base): Update.
7481 * skip.c (info_skip_command): Update.
7482 * record-btrace.c (btrace_ui_out_decode_error)
7483 (btrace_call_history_src_line): Update.
7484 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
7485 Update.
7486 * progspace.c (print_program_space): Update.
7487 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
7488 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
7489 do_field_int. Change type of "value".
7490 * mi/mi-out.c (mi_ui_out::do_table_begin)
7491 (mi_ui_out::do_table_header): Update.
7492 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
7493 type of "value".
7494 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
7495 (mi_cmd_data_list_changed_registers, output_register)
7496 (mi_cmd_data_read_memory, mi_load_progress)
7497 (mi_cmd_trace_frame_collected): Update.
7498 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
7499 Update.
7500 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
7501 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
7502 (mi_cmd_var_list_children, varobj_update_one): Update.
7503 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
7504 (mi_cmd_stack_list_args, list_arg_or_local): Update.
7505 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
7506 * inferior.c (print_inferior): Update.
7507 * gdb_bfd.c (print_one_bfd): Update.
7508 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
7509 Update.
7510 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
7511 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
7512 do_field_int. Change type of "value".
7513 * cli-out.c (cli_ui_out::do_field_signed): Rename from
7514 do_field_int. Change type of "value".
7515 * breakpoint.c (watchpoint_check, print_breakpoint_location)
7516 (print_one_breakpoint_location, print_it_catch_fork)
7517 (print_one_catch_fork, print_it_catch_vfork)
7518 (print_one_catch_vfork, print_it_catch_solib)
7519 (print_it_catch_exec, print_it_ranged_breakpoint)
7520 (print_mention_watchpoint, print_mention_masked_watchpoint)
7521 (bkpt_print_it, update_static_tracepoint): Update.
7522 * break-catch-throw.c (print_it_exception_catchpoint): Update.
7523 * break-catch-syscall.c (print_it_catch_syscall): Update.
7524 * ada-tasks.c (print_ada_task_info): Update.
7525 * ada-lang.c (print_it_exception, print_mention_exception):
7526 Update.
7527
6b78c3f8
AB
75282019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
7529
7530 PR breakpoints/24541
7531 * gdbarch.c: Regenerate.
7532 * gdbarch.h: Regenerate.
7533 * gdbarch.sh: Adjust return type and parameter types for
7534 'stap_adjust_register'.
7535 (i386_stap_adjust_register): Adjust signature and return new
7536 register name.
7537 * stap-probe.c (stap_parse_register_operand): Adjust use of
7538 'gdbarch_stap_adjust_register'.
7539
d72a9b85
TT
75402019-07-17 Tom Tromey <tromey@adacore.com>
7541
7542 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
7543 declare VEC.
7544 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
7545 std::vector.
7546 (struct s390_process_info): Add initializers.
7547 (s390_add_process): Use new.
7548 (s390_linux_nat_target::low_forget_process): Use delete.
7549 (s390_linux_nat_target::low_new_fork)
7550 (s390_linux_nat_target::stopped_by_watchpoint)
7551 (s390_linux_nat_target::low_prepare_to_resume)
7552 (s390_linux_nat_target::insert_watchpoint)
7553 (s390_linux_nat_target::insert_hw_breakpoint)
7554 (s390_linux_nat_target::remove_watchpoint)
7555 (s390_linux_nat_target::remove_hw_breakpoint): Update.
7556
206e6c58
JB
75572019-07-16 John Baldwin <jhb@FreeBSD.org>
7558
7559 * aarch64-fbsd-nat.c: Include regcache.h.
7560 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
7561 argument.
7562 (aarch64_fbsd_nat_target::fetch_registers)
7563 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
7564 variable.
7565 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
7566
cbde90f2
JB
75672019-07-16 John Baldwin <jhb@FreeBSD.org>
7568
7569 * fbsd-nat.c: Include gdbarch.h.
7570
07128006
TT
75712019-07-15 Tom Tromey <tromey@adacore.com>
7572
7573 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
7574
1f77b012
TT
75752019-07-15 Tom Tromey <tromey@adacore.com>
7576
7577 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
7578 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
7579 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
7580 * cli-out.c (cli_ui_out::do_field_int): New method.
7581 * ui-out.c (ui_out::field_unsigned): New method.
7582 * symfile.c (generic_load): Use field_unsigned.
7583 (print_transfer_performance): Likewise.
7584 * record-btrace.c (ui_out_field_uint): Remove.
7585 (btrace_call_history_insn_range, btrace_call_history): Use
7586 field_unsigned.
7587 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
7588 field_unsigned.
7589 * ui-out.h (class ui_out) <field_unsigned>: New method.
7590 <do_field_unsigned>: Likewise.
7591
33eca680
TT
75922019-07-15 Tom Tromey <tromey@adacore.com>
7593
7594 * mi/mi-main.c (list_available_thread_groups): Use field_string.
7595 * mi/mi-interp.c (mi_memory_changed): Use field_string.
7596 * target.c (flash_erase_command): Use field_string.
7597 * infrun.c (print_signal_received_reason): Use field_string.
7598 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
7599 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
7600 field_string.
7601 * ada-tasks.c (print_ada_task_info): Use field_string.
7602
ca8d69be
TT
76032019-07-15 Tom Tromey <tromey@adacore.com>
7604
7605 * target.c (flash_erase_command): Use field_core_addr.
7606 * symfile.c (generic_load): Use field_core_addr.
7607 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
7608 Use field_core_addr.
7609 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
7610 field_core_addr.
7611
0d4e84ed
AB
76122019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
7613
7614 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
7615 value if its desired type is smaller than a CORE_ADDR and signed.
7616
9a49df9d
AB
76172019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
7618
7619 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
7620 of changes to field names, and use new is_reference field to
7621 decide if a property is a reference or not.
7622 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
7623 field.
7624 (struct dwarf2_property_baton): Update header comment, rename
7625 'referenced_type' to 'property_type' and update comments.
7626 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
7627 default property type, store in property baton, update to take
7628 accound of renamed field.
7629 (read_func_scope): Update call to attr_to_dynamic_prop.
7630 (read_array_type): Likewise.
7631 (dwarf2_per_cu_addr_sized_int_type): New function.
7632 (read_subrange_index_type): Move type finding code to
7633 dwarf2_per_cu_addr_sized_int_type.
7634 (read_subrange_type): Update calls to attr_to_dynamic_prop.
7635 (dwarf2_per_cu_addr_type): New function.
7636 (set_die_type): Update calls to attr_to_dynamic_prop.
7637
b86352cf
AB
76382019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
7639
7640 * dwarf2read.c (read_subrange_index_type): New function.
7641 (read_subrange_type): Move code into new function and call it.
7642 * gdbtypes.c (create_range_type): Add some asserts.
7643
603490bf
AB
76442019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
7645
7646 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
7647 update return statements.
7648 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
7649 declaration, and update comment to match.
7650 * gdbtypes.c (resolve_dynamic_array): Update call to
7651 dwarf2_evaluate_property to match new return type.
7652
592f9d27
AB
76532019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
7654
7655 * valarith.c (value_subscripted_rvalue): Change lowerbound
7656 parameter type from int to LONGEST.
7657 * value.h (value_subscripted_rvalue): Likewise in declaration.
7658
60cfcb20
AB
76592019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
7660
7661 * cli/cli-utils.c (info_print_command_completer): New function.
7662 * cli/cli-utils.h: Add 'completer.h' include, and forward
7663 declaration for 'struct cmd_list_element'.
7664 (info_print_command_completer): Declare.
7665 * stack.c (_initialize_stack): Add completer for 'info locals' and
7666 'info args'.
7667 * symtab.c (_initialize_symtab): Add completer for 'info
7668 variables' and 'info functions'.
7669 * NEWS: Mention completion for additional info commands.
7670
b16507e0
AB
76712019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
7672
7673 * cli/cli-utils.c (extract_info_print_args): Delete.
7674 (extract_arg_maybe_quoted): Delete.
7675 (info_print_options_defs): New variable.
7676 (make_info_print_options_def_group): New function.
7677 (extract_info_print_options): Define new function.
7678 * cli/cli-utils.h (extract_info_print_args): Delete.
7679 (struct info_print_options): New structure.
7680 (extract_info_print_options): Declare new function.
7681 * stack.c (info_locals_command): Update to use new
7682 extract_info_print_options, also add a header comment.
7683 (info_args_command): Likewise.
7684 * symtab.c (info_variables_command): Likewise.
7685 (info_functions_command): Likewise.
7686
021d8588
AB
76872019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
7688
7689 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
7690 to extract string arguments.
7691 * common/common-utils.c (extract_string_maybe_quoted): New function.
7692 * common/common-utils.h (extract_string_maybe_quoted): Declare.
7693
b777eb6d
TT
76942019-07-11 Tom Tromey <tromey@adacore.com>
7695
7696 * main.c (get_init_files): Use GDBINIT, not gdbinit.
7697 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
7698 * top.h (gdbinit): Don't declare.
7699 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
7700 into...
7701 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
7702 * top.c (gdb_init): Don't call init_cli_cmds.
7703 (gdbinit): Remove.
7704 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
7705
72ee03ff
TT
77062019-07-11 Tom Tromey <tromey@adacore.com>
7707
7708 * python/py-inferior.c (add_thread_object): Don't use thread_obj
7709 after it has been moved.
7710
00db9531
SM
77112019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
7712
7713 * valops.c (value_must_coerce_to_target): Change return type to
7714 bool.
7715 * value.h (value_must_coerce_to_target): Likewise.
7716
f2478a7e
SM
77172019-07-10 Simon Marchi <simon.marchi@efficios.com>
7718
7719 * breakpoint.c (is_hardware_watchpoint): Remove
7720 forward-declaration.
7721 (is_masked_watchpoint): Change return type to bool.
7722 (is_tracepoint): Likewise.
7723 (is_breakpoint): Likewise.
7724 (is_hardware_watchpoint): Likewise.
7725 (is_watchpoint): Likewise.
7726 (is_no_memory_software_watchpoint): Likewise.
7727 (is_catchpoint): Likewise.
7728 (breakpoint_1): Make FILTER parameter's return type bool.
7729 is_masked_watchpoint): Change return type to bool.
7730 (save_breakpoints): Make FILTER parameter's return type bool.
7731 * breakpoint.h (is_breakpoint): Change return type to bool.
7732 (is_watchpoint): Likewise.
7733 (is_catchpoint): Likewise.
7734 (is_tracepoint): Likewise.
7735
0d12e84c
TT
77362019-07-10 Tom Tromey <tom@tromey.com>
7737
7738 * defs.h: Don't include gdbarch.h.
7739 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
7740 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
7741 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
7742 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
7743 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
7744 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
7745 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
7746 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
7747 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
7748 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
7749 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
7750 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
7751 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
7752 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
7753 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
7754 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
7755 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
7756 record-btrace.c, record.h, regcache-dump.c, regcache.h,
7757 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
7758 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
7759 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
7760 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
7761 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
7762 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
7763 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
7764 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
7765 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
7766
f06f1252
TT
77672019-07-10 Tom Tromey <tromey@adacore.com>
7768
7769 * ada-lang.h (is_ada_exception_catchpoint): Declare.
7770 * breakpoint.c (init_ada_exception_breakpoint): Register as
7771 bp_catchpoint.
7772 (print_one_breakpoint_location, print_one_breakpoint): Use
7773 is_ada_exception_catchpoint.
7774 * ada-lang.c (class ada_catchpoint_location): Pass
7775 bp_loc_software_breakpoint to bp_location constructor.
7776 (is_ada_exception_catchpoint): New function.
7777
7a5d944b
TT
77782019-07-10 Tom Tromey <tromey@adacore.com>
7779
7780 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
7781 VEC.
7782 (struct arm_exidx_entry): New method operator<.
7783 (struct arm_exidx_data) <section_maps>: Change type.
7784 (arm_exidx_data_free): Remove.
7785 (arm_exidx_data_key): Change type. Move lower.
7786 (arm_exidx_new_objfile): Update.
7787 (arm_compare_exidx_entries): Remove.
7788 (arm_find_exidx_entry, _initialize_arm_tdep)
7789
48c66e1d
TT
77902019-07-10 Tom Tromey <tromey@adacore.com>
7791
7792 * solib-spu.c (ocl_program_data_key): Change type.
7793 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
7794 Update.
7795
a269fbf1
TT
77962019-07-10 Tom Tromey <tromey@adacore.com>
7797
7798 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
7799 (struct solib_aix_inferior_data) <library_list>: Change type.
7800 (solib_aix_inferior_data_handle): Change type.
7801 (get_solib_aix_inferior_data): Update.
7802 (solib_aix_free_library_list): Remove.
7803 (library_list_start_library): Update.
7804 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
7805 return type.
7806 (solib_aix_get_library_list)
7807 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
7808 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
7809
c294730c
TT
78102019-07-10 Tom Tromey <tromey@adacore.com>
7811
7812 * solib-dsbt.c (struct dsbt_info): Add initializers.
7813 (solib_dsbt_pspace_data): Change type.
7814 (dsbt_pspace_data_cleanup): Remove.
7815 (get_dsbt_info, _initialize_dsbt_solib): Update.
7816
9d52077d
TT
78172019-07-10 Tom Tromey <tromey@adacore.com>
7818
7819 * spu-tdep.c (spu_overlay_data): Change type.
7820 (spu_get_overlay_table, spu_overlay_new_objfile)
7821 (_initialize_spu_tdep): Update.
7822
22a20dca
TT
78232019-07-10 Tom Tromey <tromey@adacore.com>
7824
7825 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
7826 destructor.
7827 (dbx_objfile_data_key): Change type and declare later.
7828 (DBX_SYMFILE_INFO): Rewrite.
7829 * dbxread.c (dbx_objfile_data_key): Change type.
7830 (dbx_symfile_init): Update.
7831 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
7832 (coffstab_build_psymtabs, elfstab_build_psymtabs)
7833 (stabsect_build_psymtabs, _initialize_dbxread): Update.
7834
cb60f420
TT
78352019-07-10 Tom Tromey <tromey@adacore.com>
7836
7837 * jit.c (jit_program_space_key): Change type. Move lower.
7838 (get_jit_program_space_data): Update.
7839 (jit_program_space_data_cleanup): Remove.
7840 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
7841 Update.
7842 (struct jit_program_space_data): Add initializers.
7843
51df2ae3
TT
78442019-07-10 Tom Tromey <tromey@adacore.com>
7845
7846 * solib-darwin.c (struct darwin_info): Add initializers.
7847 (solib_darwin_pspace_data): Change type.
7848 (darwin_pspace_data_cleanup): Remove.
7849 (get_darwin_info, _initialize_darwin_solib): Update.
7850
18101a35
TT
78512019-07-10 Tom Tromey <tromey@adacore.com>
7852
7853 * remote-sim.c (struct sim_inferior_data): Add initializers,
7854 constructor, and destructor.
7855 (sim_inferior_data_key): Change type. Move lower.
7856 (check_for_duplicate_sim_descriptor): Update.
7857 (get_sim_inferior_data): Use new. Update.
7858 (~sim_inferior_data_cleanup): Rename from
7859 sim_inferior_data_cleanup. Simplify.
7860 (gdbsim_close_inferior, simulator_command)
7861 (sim_command_completer, _initialize_remote_sim): Update.
7862 (next_pid, INITIAL_PID): Move earlier.
7863
05b08ac1
TT
78642019-07-10 Tom Tromey <tromey@adacore.com>
7865
7866 * python/python-internal.h (create_thread_object): Return
7867 gdbpy_ref.
7868 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
7869 * python/py-inferior.c (struct threadlist_entry): Add
7870 constructor.
7871 <thread_obj>: Now a gdbpy_ref.
7872 (thread_to_thread_object): Update.
7873 (add_thread_object): Use new.
7874 (delete_thread_object): Use delete.
7875 (infpy_threads): Update.
7876 (py_free_inferior): Update. Construct "inf_obj" after acquiring
7877 GIL.
7878
32372d80
TT
78792019-07-10 Tom Tromey <tromey@adacore.com>
7880
7881 * valops.c (value_cast): Specialize error message for Ada.
7882
5c458ae8
SM
78832019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
7884
7885 * breakpoint.c (breakpoint_1): Update doc and parameter names.
7886
4c462cb0
SM
78872019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
7888
7889 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
7890 bpstat_should_step): Return bool, adjust comments.
7891 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
7892 bpstat_should_step): Likewise.
7893
89abbcc2
AH
78942019-07-10 Alan Hayward <alan.hayward@arm.com>
7895
7896 * features/Makefile: Use feature target descriptions for Arm.
7897 * features/arm/arm-core.c: Generate new file.
7898 * features/arm/arm-fpa.c: Likewise.
7899 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
7900 * features/arm/arm-m-profile.c: Likewise.
7901 * features/arm/arm-vfpv2.c: Likewise.
7902 * features/arm/arm-vfpv3.c: Likewise.
7903 * features/arm/xscale-iwmmxt.c: Likewise.
7904 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
7905
166a82be
AH
79062019-07-10 Alan Hayward <alan.hayward@arm.com>
7907
7908 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
7909 ptrace earlier.
7910
9fb4c7e9
AH
79112019-07-10 Alan Hayward <alan.hayward@arm.com>
7912
7913 * features/aarch64-pauth.c: Regenerate.
7914
e2d0f980
SM
79152019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
7916
7917 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
7918 bool.
7919 (bpstat_what): Use false instead of 0.
7920
a38118e5
PA
79212019-07-09 Pedro Alves <palves@redhat.com>
7922
7923 * break-catch-throw.c (is_exception_catchpoint): New.
7924 * breakpoint.c (print_one_breakpoint_location): New parameter
7925 'raw_loc'. Handle it. Use
7926 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
7927 looking at the breakpoint's type.
7928 (print_one_breakpoint): If handling "maint info breakpoints", also
7929 print locations of exception catchpoints.
7930 * breakpoint.h (is_exception_catchpoint): Declare.
7931
cb1e4e32
PA
79322019-07-09 Pedro Alves <palves@redhat.com>
7933
7934 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
7935 "addr" field.
7936 (allocate_location_exception_catchpoint): New.
7937 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
7938 (initialize_throw_catchpoint_ops): Install
7939 allocate_location_exception_catchpoint as allocate_location
7940 method.
7941 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
7942 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
7943 bp_loc_other.
7944 (breakpoint_address_is_meaningful): Delete.
7945 (bl_address_is_meaningful): New.
7946 (breakpoint_locations_match): Adjust comment.
7947 (bp_location_from_bp_type): New, factored out of...
7948 (bp_location::bp_location(breakpoint *)): ... this.
7949 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
7950 factored out of...
7951 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
7952 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
7953 breakpoint_address_is_meaningful.
7954 (bp_locations_compare): Adjust comment.
7955 (update_global_location_list): Use bl_address_is_meaningful
7956 instead of breakpoint_address_is_meaningful.
7957 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
7958 explicit.
7959 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
7960 * python/py-breakpoint.c (bppy_get_location): No longer check
7961 whether location is null.
7962
b58a68fe
PA
79632019-07-09 Pedro Alves <palves@redhat.com>
7964
7965 PR c++/15468
7966 * breakpoint.c (print_one_breakpoint_location): Remove
7967 single-location assert.
7968
268a13a5
TT
79692019-07-09 Tom Tromey <tom@tromey.com>
7970
7971 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
7972 * configure: Rebuild.
7973 * configure.ac: Change common to gdbsupport.
7974 * gdbsupport: Rename from common.
7975 * acinclude.m4: Change common to gdbsupport.
7976 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
7977 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
7978 gdbsupport.
7979 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
7980 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
7981 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
7982 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
7983 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
7984 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
7985 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
7986 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
7987 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
7988 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
7989 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
7990 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
7991 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
7992 coff-pe-read.c, command.h, compile/compile-c-support.c,
7993 compile/compile-c.h, compile/compile-cplus-symbols.c,
7994 compile/compile-cplus-types.c, compile/compile-cplus.h,
7995 compile/compile-loc2c.c, compile/compile.c, completer.c,
7996 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
7997 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
7998 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
7999 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
8000 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
8001 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
8002 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
8003 features/aarch64-core.c, features/aarch64-fpu.c,
8004 features/aarch64-pauth.c, features/aarch64-sve.c,
8005 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
8006 features/i386/32bit-core.c, features/i386/32bit-linux.c,
8007 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
8008 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
8009 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
8010 features/i386/64bit-core.c, features/i386/64bit-linux.c,
8011 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
8012 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
8013 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
8014 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
8015 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
8016 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
8017 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
8018 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
8019 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
8020 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
8021 go32-nat.c, guile/guile.c, guile/scm-ports.c,
8022 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
8023 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
8024 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
8025 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
8026 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
8027 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
8028 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
8029 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
8030 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
8031 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
8032 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
8033 minsyms.c, mips-linux-tdep.c, namespace.h,
8034 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
8035 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
8036 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
8037 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
8038 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
8039 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
8040 nat/linux-waitpid.c, nat/mips-linux-watch.c,
8041 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
8042 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
8043 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
8044 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
8045 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
8046 procfs.c, producer.c, progspace.h, psymtab.h,
8047 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
8048 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
8049 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
8050 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
8051 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
8052 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
8053 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
8054 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
8055 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
8056 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
8057 target-memory.c, target.c, target.h, target/waitstatus.c,
8058 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
8059 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
8060 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
8061 unittests/array-view-selftests.c,
8062 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
8063 unittests/common-utils-selftests.c,
8064 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
8065 unittests/format_pieces-selftests.c,
8066 unittests/function-view-selftests.c,
8067 unittests/lookup_name_info-selftests.c,
8068 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
8069 unittests/mkdir-recursive-selftests.c,
8070 unittests/observable-selftests.c,
8071 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
8072 unittests/parse-connection-spec-selftests.c,
8073 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
8074 unittests/scoped_fd-selftests.c,
8075 unittests/scoped_mmap-selftests.c,
8076 unittests/scoped_restore-selftests.c,
8077 unittests/string_view-selftests.c, unittests/style-selftests.c,
8078 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
8079 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
8080 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
8081 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
8082 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
8083 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
8084
5b0e2db4
AB
80852019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
8086
8087 * linespec.c (decode_digits_list_mode): Set explicit_line to a
8088 bool value.
8089 (decode_digits_ordinary): Set explicit_line field in sal.
8090 * symtab.c (skip_prologue_sal): Don't skip prologue for a
8091 symtab_and_line that was set on an explicit line number in
8092 assembler code. Do always update the recorded symtab and line if
8093 we do skip the prologue.
8094
0ba852ab
AB
80952019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
8096
8097 * breakpoint.c (set_breakpoint_location_function): Remove
8098 explicit_loc parameter.
8099 (momentary_breakpoint_from_master): Update call to
8100 set_breakpoint_location_function.
8101 (add_location_to_breakpoint): Likewise.
8102
b3a7d171
AB
81032019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
8104
8105 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
8106 required features based on default bfd type when no specific bfd
8107 is present.
8108
1f6f6e21
PW
81092019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8110
8111 * NEWS: Mention that GDB printf and eval commands can now print
8112 C-style and Ada-style convenience var strings without
8113 calling the inferior.
8114 * printcmd.c (printf_c_string): Locally print GDB internal var
8115 instead of transiting via the inferior.
8116 (printf_wide_c_string): Likewise.
8117
81182019-07-04 Alan Hayward <alan.hayward@arm.com>
ea142fbf 8119
5862c886 8120 PR breakpoints/25011
ea142fbf
AH
8121 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
8122
0598af48
TT
81232019-07-04 Tom Tromey <tom@tromey.com>
8124
8125 PR tui/24724:
8126 * tui/tui-winsource.c (tui_clear_source_content): Update.
8127 (tui_source_window_base::set_is_exec_point_at): Fix comment.
8128 (tui_update_breakpoint_info): Update.
8129 (tui_set_exec_info_content): Update.
8130 * tui/tui-source.c (tui_set_source_content_nil): Update.
8131 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
8132 has_break.
8133 * tui/tui-data.h (enum tui_bp_flag): New.
8134 (tui_bp_flags): New enum flags type.
8135 (struct tui_source_element) <break_mode>: Change type. Rename
8136 from has_break.
8137 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
8138 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
8139 constants.
8140 * tui/tui-winsource.h: Fix comment.
8141
350fab54
AH
81422019-07-04 Alan Hayward <alan.hayward@arm.com>
8143
8144 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
8145 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
8146 (store_fpregs_to_thread)
8147 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
8148 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
8149 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
8150 (IWMMXT_REGS_SIZE): Add define.
8151 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
8152 (fetch_vfp_regs, store_vfp_regs)
8153 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
8154 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
8155
f0452268
AH
81562019-07-04 Alan Hayward <alan.hayward@arm.com>
8157
8158 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
8159 defines.
8160 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
8161 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
8162 (ARM_INT_REGISTER_SIZE): ...to this.
8163 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
8164 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
8165 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
8166 (arm_linux_collect_gregset, supply_nwfpe_register)
8167 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
8168 defines.
8169 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
8170 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
8171 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
8172 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
8173 (arm_return_in_memory, arm_store_return_value)
8174 (arm_get_longjmp_target, arm_register_g_packet_guesses)
8175 (arm_record_ld_st_multiple): Likewise.
8176 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
8177 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
8178
e935475c
AH
81792019-07-04 Alan Hayward <alan.hayward@arm.com>
8180
8181 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
8182 AARCH64_DISPLACED_MODIFIED_INSNS.
8183 * aarch64-tdep.c (struct aarch64_displaced_step_data)
8184 (aarch64_displaced_step_copy_insn): Likewise.
8185 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
8186 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
8187 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
8188 ARM_DISPLACED_MODIFIED_INSNS.
8189 * arm-tdep.c (arm_gdbarch_init): Likewise.
8190 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
8191 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
8192 (struct arm_displaced_step_closure): Use
8193 ARM_DISPLACED_MODIFIED_INSNS.
8194
df0bb381
AH
81952019-07-04 Alan Hayward <alan.hayward@arm.com>
8196
8197 * features/Makefile: Remove unused xml files.
8198 * features/aarch64.xml: Remove.
8199 * features/i386/amd64-avx-avx512-linux.xml: Remove.
8200 * features/i386/amd64-avx-avx512.xml: Remove.
8201 * features/i386/amd64-avx-linux.xml: Remove.
8202 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
8203 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
8204 * features/i386/amd64-avx-mpx-linux.xml: Remove.
8205 * features/i386/amd64-avx-mpx.xml: Remove.
8206 * features/i386/amd64-avx.xml: Remove.
8207 * features/i386/amd64-linux.xml: Remove.
8208 * features/i386/amd64-mpx-linux.xml: Remove.
8209 * features/i386/amd64-mpx.xml: Remove.
8210 * features/i386/amd64.xml: Remove.
8211 * features/i386/i386-avx-avx512-linux.xml: Remove.
8212 * features/i386/i386-avx-avx512.xml: Remove.
8213 * features/i386/i386-avx-linux.xml: Remove.
8214 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
8215 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
8216 * features/i386/i386-avx-mpx-linux.xml: Remove.
8217 * features/i386/i386-avx-mpx.xml: Remove.
8218 * features/i386/i386-avx.xml: Remove.
8219 * features/i386/i386-linux.xml: Remove.
8220 * features/i386/i386-mmx-linux.xml: Remove.
8221 * features/i386/i386-mmx.xml: Remove.
8222 * features/i386/i386-mpx-linux.xml: Remove.
8223 * features/i386/i386-mpx.xml: Remove.
8224 * features/i386/i386.xml: Remove.
8225 * features/i386/x32-avx-avx512-linux.xml: Remove.
8226 * features/i386/x32-avx-linux.xml: Remove.
8227 * features/i386/x32-linux.xml: Remove.
8228
edd6266a
AH
82292019-07-04 Alan Hayward <alan.hayward@arm.com>
8230
8231 * regformats/aarch64.dat: Remove.
8232 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
8233 * regformats/i386/amd64-avx-linux.dat: Remove.
8234 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
8235 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
8236 * regformats/i386/amd64-linux.dat: Remove.
8237 * regformats/i386/amd64-mpx-linux.dat: Remove.
8238 * regformats/i386/amd64.dat: Remove.
8239 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
8240 * regformats/i386/i386-avx-linux.dat: Remove.
8241 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
8242 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
8243 * regformats/i386/i386-linux.dat: Remove.
8244 * regformats/i386/i386-mmx-linux.dat: Remove.
8245 * regformats/i386/i386-mpx-linux.dat: Remove.
8246 * regformats/i386/i386.dat: Remove.
8247 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
8248 * regformats/i386/x32-avx-linux.dat: Remove.
8249 * regformats/i386/x32-linux.dat: Remove.
8250
2b40fda7
AH
82512019-07-04 Alan Hayward <alan.hayward@arm.com>
8252
8253 * aarch64-tdep.c: Remove xml self tests.
8254 * amd64-linux-tdep.c: Likewise.
8255 * amd64-tdep.c: Likewise.
8256 * i386-linux-tdep.c: Likewise.
8257 * i386-tdep.c: Likewise.
8258
5f4ba3e7
PA
82592019-07-03 Pedro Alves <palves@redhat.com>
8260
8261 PR cli/24732
8262 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
8263 (pipe_cmd_option_defs): New.
8264 (make_pipe_cmd_options_def_group): New.
8265 (pipe_command): Use gdb::option::process_options.
8266 (pipe_command_completer): New function.
8267 (_initialize_cli_cmds): Install completer for "pipe" command.
8268
3d9be6f5
PA
82692019-07-03 Pedro Alves <palves@redhat.com>
8270
8271 * cli/cli-option.c (union option_value) <string>: New field.
8272 (struct option_def_and_value): Add ctor, move ctor, dtor and
8273 use DISABLE_COPY_AND_ASSIGN.
8274 (option_def_and_value::clear_value): New.
8275 (parse_option, save_option_value_in_ctx, get_val_type_str)
8276 (add_setshow_cmds_for_options): Handle var_string.
8277 * cli-option.h (union option_def::var_address) <string>: New
8278 field.
8279 (struct string_option_def): New.
8280 * maint-test-options.c (struct test_options_opts): Add default
8281 ctor and use DISABLE_COPY_AND_ASSIGN.
8282 <string_opt>: New field.
8283 (test_options_opts::~test_options_opts): New.
8284 (test_options_opts::dump): Also dump "-string".
8285 (test_options_option_defs): Install "string.
8286
41fc454c
PA
82872019-07-03 Pedro Alves <palves@redhat.com>
8288
8289 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
8290 option_value with a null enumeration.
8291 (complete_options): Save the option values in the context.
8292 (save_option_value_in_ctx): New, factored out from ...
8293 (process_options): ... here.
8294 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
8295 of the function.
8296 * maint-test-options.c (test_options_opts::dump): New, factored
8297 out from ...
8298 (maintenance_test_options_command_mode): ... here.
8299 (maintenance_test_options_command_completion_result): Delete.
8300 (maintenance_test_options_command_completion_text): Update
8301 comment.
8302 (maintenance_show_test_options_completion_result): Change
8303 prototype. Just print
8304 maintenance_test_options_command_completion_text.
8305 (save_completion_result): New.
8306 (maintenance_test_options_completer_mode): Pass options context to
8307 complete_options, and then save a dump.
8308 (_initialize_maint_test_options): Use add_cmd to install "maint
8309 show test-options-completion-result".
8310
fdbc9870
PA
83112019-07-03 Pedro Alves <palves@redhat.com>
8312
8313 * NEWS (New commands): Mention "with" and "maint with".
8314 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
8315 (with_command, with_command_completer): New.
8316 (pipe_command): Adjust to new repeat_previous
8317 interface.
8318 (_initialize_cli_cmds): Install the "with" command and its "w"
8319 alias.
8320 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
8321 declarations.
8322 * cli/cli-setshow.c (parse_cli_var_uinteger)
8323 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
8324 argument strings for all var_types.
8325 (get_setshow_command_value_string): New, factored out from ...
8326 (do_show_command): ... this.
8327 * cli/cli-setshow.h: Include <string>.
8328 (get_setshow_command_value_string): Declare.
8329 * command.h (repeat_previous): Now returns const char *. Adjust
8330 comment.
8331 * maint.c: Include "cli/cli-cmds.h".
8332 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
8333 (_initialize_maint_cmds): Register the "maintenance with" command.
8334 * top.c (repeat_previous): Move bits from pipe_command here:
8335 Return the saved command line, if any; error out if there's no
8336 command to relaunch.
8337
c6ac8931
PA
83382019-07-03 Pedro Alves <palves@redhat.com>
8339
8340 * NEWS (New commands): Mention "maint set/show test-settings"
8341 instead of "maint test-settings".
8342 * maint-test-settings.c (maintenance_test_settings_list): Delete.
8343 (maintenance_test_settings_set_list): Rename to ...
8344 (maintenance_set_test_settings_list): ... this.
8345 (maintenance_test_settings_show_list): Rename to ...
8346 (maintenance_show_test_settings_list): ... this.
8347 (maintenance_test_settings_cmd): Delete.
8348 (maintenance_test_settings_set_cmd): ...
8349 (maintenance_set_test_settings_cmd): ... this.
8350 (maintenance_test_settings_show_cmd): ...
8351 (maintenance_show_test_settings_cmd): ... this.
8352 (maintenance_test_settings_show_value_cmd):
8353 (maintenance_show_test_settings_value_cmd): ... this.
8354 (_initialize_maint_test_settings): No longer install the "maint
8355 test-settings" prefix command. Rename "maint test-settings set"
8356 to "maint set test-settings", and "maint test-settings show" to
8357 "maint show test-settings". Adjust all subcommands.
8358
d1fcf2fd
PA
83592019-07-03 Pedro Alves <palves@redhat.com>
8360
8361 * maint-test-settings.c: Fix file's intro comment. Replace all
8362 references to "test-options" with references to "test-settings",
8363 in comments.
8364
970f9d09
PA
83652019-07-03 Pedro Alves <palves@redhat.com>
8366
8367 * maint-test-settings.c (maintenance_test_settings_xxx)
8368 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
8369 New.
8370 (maintenance_test_settings_enums): Use them.
8371 (maintenance_test_settings_enum): Default to
8372 maintenance_test_settings_xxx.
8373 (_initialize_maint_test_settings): Initialize
8374 MAINTENANCE_TEST_SETTINGS_FILENAME.
8375
f3869b1a
SM
83762019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
8377
8378 * breakpoint.h (remove_breakpoints_inf): Change return type to
8379 void, move function documentation here.
8380 * breakpoint.c (remove_breakpoints_inf): Change return type to
8381 void, move function documentation to header.
8382
54d66006
PA
83832019-07-02 Pedro Alves <palves@redhat.com>
8384
8385 * NEWS (Completion improvements): Mention "info threads".
8386 * thread.c (struct info_threads_opts, info_threads_option_defs)
8387 (make_info_threads_options_def_group): New.
8388 (info_threads_command): Use gdb::option::process_options.
8389 (info_threads_command_completer): New.
8390 (_initialize_thread): Use gdb::option::build_help to build the
8391 help text for "info threads".
8392
854f6088
SM
83932019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
8394
8395 * defs.h (generic_load): Move from here...
8396 * symfile.h (generic_load): ... to here. Rename name parameter
8397 to args.
8398 * symfile.c (generic_load): Add comment.
8399
54ee4252
TT
84002019-07-01 Tom Tromey <tromey@adacore.com>
8401
8402 * dwarf2read.c
8403 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
8404 declaration of without_params. Fix formatting.
8405
65392b3e
TT
84062019-07-01 Tom Tromey <tromey@adacore.com>
8407
8408 * ada-exp.y (find_primitive_type): Update.
8409 * ada-lang.h (ada_lookup_symbol): Update.
8410 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
8411 parameter.
8412 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
8413
7d7571f0
SDJ
84142019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
8415
8416 PR breakpoints/24541
8417 * gdbarch.c: Regenerate.
8418 * gdbarch.h: Regenerate.
8419 * gdbarch.sh: Add 'stap_adjust_register'.
8420 * i386-tdep.c: Include '<unordered_set>'.
8421 (i386_stap_adjust_register): New function.
8422 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
8423 * stap-probe.c (stap_parse_register_operand): Call
8424 'gdbarch_stap_adjust_register'.
8425
5af5392a
SDJ
84262019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
8427
8428 PR python/24742
8429 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
8430 * python/python.c (do_start_initialization): Use 'xmalloc'
8431 instead of 'PyMem_Malloc'.
8432
10d06d82
TT
84332019-06-28 Tom Tromey <tromey@adacore.com>
8434
8435 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
8436 for Ada.
8437
1b7f24cd
TT
84382019-06-27 Tom Tromey <tromey@adacore.com>
8439
8440 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
8441 objfile_key.
8442 (arm_find_mapping_symbol, arm_record_special_symbol)
8443 (_initialize_arm_tdep): Update.
8444 (arm_objfile_data_free): Remove.
8445
3d507ff2
TT
84462019-06-27 Tom Tromey <tromey@adacore.com>
8447
8448 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
8449 to cp_print_static_field.
8450
762c164d
TT
84512019-06-26 Tom Tromey <tromey@adacore.com>
8452
8453 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
8454 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
8455 declare.
8456
aa2f9bcf
AH
84572019-06-26 Alan Hayward <alan.hayward@arm.com>
8458
8459 * features/aarch64-core.c (create_feature_aarch64_core):
8460 Regenerate.
8461 * features/aarch64-core.xml: Add cpsr flags.
8462
3426ae57
AH
84632019-06-26 Alan Hayward <alan.hayward@arm.com>
8464
8465 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
8466 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
8467
4838e44c
SM
84682019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
8469
8470 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
8471 field.
8472 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
8473 use.
8474 (arm_record_special_symbol): Don't insert new symbol in sorted
8475 position, push it at the end.
8476
54cc7474
SM
84772019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
8478
8479 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
8480 (arm_mapping_symbol_s): Remove.
8481 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
8482 (arm_mapping_symbol_vec): New typedef.
8483 (struct arm_per_objfile): Add constructor.
8484 <section_maps>: Change type to
8485 std::unique_ptr<arm_mapping_symbol_vec[]>.
8486 (arm_compare_mapping_symbols): Remove.
8487 (arm_find_mapping_symbol): Adjust to section_maps type change.
8488 (arm_objfile_data_free): Call delete on arm_per_objfile.
8489 (arm_record_special_symbol): Adjust to section_maps type change.
8490 Allocate arm_per_objfile with new.
8491
b65b566c
PW
84922019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8493
8494 * cli/cli-cmds.c (alias_command): Compare the alias prefix
8495 with the command prefix.
8496
c2fc64f5
TT
84972019-06-25 Tom Tromey <tom@tromey.com>
8498
8499 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
8500 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
8501
fb54fa76
TT
85022019-06-25 Tom Tromey <tom@tromey.com>
8503
8504 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
8505 type.
8506 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
8507 protected.
8508
f7952c57
TT
85092019-06-25 Tom Tromey <tom@tromey.com>
8510
8511 * tui/tui-winsource.c
8512 (tui_source_window_base::set_is_exec_point_at): Add check against
8513 LOA_ADDRESS.
8514
17568d78
TT
85152019-06-25 Tom Tromey <tom@tromey.com>
8516
8517 * tui/tui-source.c (tui_set_source_content): Don't check before
8518 xfree.
8519 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
8520
53e7cdba
TT
85212019-06-25 Tom Tromey <tom@tromey.com>
8522
8523 * tui/tui-winsource.h (tui_update_source_window_as_is)
8524 (tui_alloc_source_buffer, tui_line_is_displayed)
8525 (tui_addr_is_displayed): Change type of win_info.
8526 * tui/tui-winsource.c (tui_update_source_window_as_is)
8527 (tui_clear_source_content, tui_show_source_line)
8528 (tui_show_source_content, tui_source_window_base::refill)
8529 (tui_source_window_base::set_is_exec_point_at)
8530 (tui_source_window_base::set_is_exec_point_at)
8531 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
8532 (tui_alloc_source_buffer, tui_line_is_displayed)
8533 (tui_addr_is_displayed): Change type of win_info. Update.
8534 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
8535 (tui_source_window_base::do_make_visible_with_new_height):
8536 Update.
8537 * tui/tui-source.c (tui_set_source_content)
8538 (tui_set_source_content_nil)
8539 (tui_source_window::do_scroll_vertical): Update.
8540 * tui/tui-layout.c (show_layout): Update.
8541 * tui/tui-disasm.c (tui_set_disassem_content)
8542 (tui_disasm_window::do_scroll_vertical): Update.
8543 * tui/tui-data.h (tui_win_content): Remove.
8544 (struct tui_gen_win_info) <content, content_size>: Remove.
8545 (struct tui_source_element): Add initializers and destructor.
8546 (union tui_which_element, struct tui_win_element): Remove.
8547 (struct tui_source_window_base) <content>: New field.
8548 (struct tui_data_window): Remove destructor.
8549 (tui_alloc_content, tui_free_win_content)
8550 (tui_free_all_source_wins_content): Don't declare.
8551 * tui/tui-data.c (tui_initialize_static_data): Update.
8552 (init_content_element, tui_alloc_content): Remove.
8553 (~tui_gen_win_info): Update.
8554 (~tui_data_window, tui_free_all_source_wins_content)
8555 (tui_free_win_content, free_content, free_content_elements):
8556 Remove.
8557
7908abbf
TT
85582019-06-25 Tom Tromey <tom@tromey.com>
8559
8560 * tui/tui-winsource.h (tui_clear_source_content)
8561 (tui_erase_source_content, tui_show_source_content): Change type
8562 of win_info.
8563 * tui/tui-winsource.c (tui_clear_source_content)
8564 (tui_erase_source_content, tui_show_source_content): Change type
8565 of win_info.
8566 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
8567 * tui/tui-source.h (tui_set_source_content_nil): Change type of
8568 win_info.
8569 * tui/tui-source.c (tui_set_source_content_nil): Change type of
8570 win_info.
8571 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
8572
02c28df0
TT
85732019-06-25 Tom Tromey <tom@tromey.com>
8574
8575 * tui/tui-winsource.c (tui_clear_source_content)
8576 (tui_source_window_base::set_is_exec_point_at): Update.
8577 * tui/tui-source.c (tui_set_source_content_nil): Update.
8578 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
8579 a bool.
8580 * tui/tui-data.c (init_content_element): Update.
8581
6658b1bf
TT
85822019-06-25 Tom Tromey <tom@tromey.com>
8583
8584 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
8585 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
8586 * tui/tui-layout.c (init_and_make_win): Update.
8587 * tui/tui.h (enum tui_win_type): Update.
8588 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
8589 tui_win_is_auxillary.
8590 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
8591 tui_win_is_auxillary.
8592
21e1c91e
TT
85932019-06-25 Tom Tromey <tom@tromey.com>
8594
8595 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
8596 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
8597 (tui_delete_data_content_windows, tui_display_all_data)
8598 (tui_data_window::do_scroll_vertical, tui_display_data_from):
8599 Update.
8600 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
8601 * tui/tui-regs.c (tui_last_regs_line_no)
8602 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
8603 (tui_show_registers): Update.
8604 (tui_show_register_group): Return void. Update.
8605 (tui_display_registers_from, tui_display_reg_element_at_line)
8606 (tui_display_registers_from_line, tui_check_register_values):
8607 Update.
8608 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
8609 member.
8610 (struct tui_data_window) <regs_content>: Now a std::vector.
8611 <regs_content_count>: Remove.
8612 (tui_add_content_elements, tui_free_data_content): Don't declare.
8613 * tui/tui-data.c (tui_data_window::clear_detail): Update.
8614 (init_content_element): Remove DATA_WIN case. Add assert.
8615 (tui_add_content_elements): Remove.
8616 (tui_data_window): Update.
8617 (tui_free_data_content): Remove.
8618 (free_content_elements): Remove DATA_WIN case.
8619
115ac53b
TT
86202019-06-25 Tom Tromey <tom@tromey.com>
8621
8622 * tui/tui-data.c (tui_data_item_window): Update.
8623 * tui/tui-windata.h (tui_check_data_values): Don't declare.
8624 * tui/tui-windata.c (tui_display_all_data)
8625 (tui_display_data_from_line): Update.
8626 (tui_check_data_values): Remove.
8627 * tui/tui-regs.c (tui_show_register_group)
8628 (tui_display_reg_element_at_line): Update.
8629 * tui/tui-hooks.c (tui_register_changed)
8630 (tui_refresh_frame_and_register_information): Call
8631 tui_check_register_values.
8632 * tui/tui-data.h (struct tui_data_window) <data_content,
8633 data_content_count, data_type>: Remove.
8634 (enum tui_data_type): Remove.
8635
8636 * tui/tui-data.c (tui_data_window::clear_detail)
8637 (~tui_data_window): Update.
8638
eaf9738b
TT
86392019-06-25 Tom Tromey <tom@tromey.com>
8640
8641 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
8642 declare.
8643 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
8644 Rename from tui_first_data_item_displayed. Update.
8645 (tui_data_window::refresh_all)
8646 (tui_data_window::do_scroll_vertical): Update.
8647 * tui/tui-data.h (struct tui_data_window)
8648 <first_data_item_displayed>: Declare new method.
8649
31ca4723
TT
86502019-06-25 Tom Tromey <tom@tromey.com>
8651
8652 * tui/tui-data.h (tui_init_generic_part): Don't declare.
8653 * tui/tui-data.c (tui_init_generic_part): Remove, moving
8654 contents...
8655 (tui_initialize_static_data): ...here.
8656
41bcff7f
TT
86572019-06-25 Tom Tromey <tom@tromey.com>
8658
8659 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
8660 (tui_display_registers_from, tui_check_register_values): Update.
8661 (tui_display_register): Remove win_info parameter; update.
8662 (tui_get_register): Change type of parameters.
8663 * tui/tui-data.h (struct tui_data_element): Remove.
8664 (union tui_which_element) <data>: Remove.
8665 <data_window>: Change type.
8666 (struct tui_data_item_window): New.
8667 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
8668 case. Add assert.
8669 (~tui_data_item_window): New destructor.
8670 (free_content_elements): Remove DATA_ITEM_WIN case.
8671
d2802c33
TT
86722019-06-25 Tom Tromey <tom@tromey.com>
8673
8674 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
8675 Remove.
8676
dd835f8b
TT
86772019-06-25 Tom Tromey <tom@tromey.com>
8678
8679 * tui/tui-data.h (struct tui_command_element): Remove.
8680 (union tui_which_element) <command>: Remove.
8681 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
8682 assert.
8683 (free_content_elements): Remove CMD_WIN case.
8684
bd7db367
TT
86852019-06-25 Tom Tromey <tom@tromey.com>
8686
8687 * tui/tui-layout.c (tui_set_layout): Update.
8688 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
8689 * tui/tui-data.c (layout_def): Update.
8690
3add462f
TT
86912019-06-25 Tom Tromey <tom@tromey.com>
8692
8693 * tui/tui-wingeneral.c (tui_refresh_all): Update.
8694 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
8695 (tui_source_window_base::set_new_height): Update.
8696 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
8697 Update.
8698 (tui_set_locator_fullname, tui_set_locator_info)
8699 (tui_show_frame_info): Update.
8700 * tui/tui-source.c (tui_set_source_content)
8701 (tui_source_is_displayed): Update.
8702 * tui/tui-layout.c (show_source_disasm_command, show_data)
8703 (show_source_or_disasm_and_command): Update.
8704 * tui/tui-disasm.c (tui_set_disassem_content)
8705 (tui_get_begin_asm_address): Update.
8706 * tui/tui-data.h (struct tui_locator_element): Remove.
8707 (union tui_which_element) <locator>: Remove.
8708 (struct tui_locator_window): New.
8709 (tui_locator_win_info_ptr): Change return type.
8710 * tui/tui-data.c (_locator): Change type.
8711 (tui_locator_win_info_ptr): Change return type.
8712 (init_content_element): Remove LOCATOR_WIN case. Add assert.
8713 (tui_alloc_content): Add assert.
8714
489e9d8b
TT
87152019-06-25 Tom Tromey <tom@tromey.com>
8716
8717 * tui/tui-winsource.c
8718 (tui_exec_info_window::maybe_allocate_content): New method.
8719 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
8720 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
8721 (make_source_or_disasm_window): Add cast.
8722 * tui/tui-data.h (union tui_which_element) <simple_string>:
8723 Remove.
8724 (struct tui_source_info): New.
8725 (struct tui_source_window_base) <execution_info>: Change type.
8726 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
8727 case, and add assert.
8728 (tui_alloc_content): Add assert.
8729
c3fabb7d
TT
87302019-06-25 Tom Tromey <tom@tromey.com>
8731
8732 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
8733 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
8734 * tui/tui-data.c (tui_alloc_win_info): Remove.
8735
bbc228ee
TT
87362019-06-25 Tom Tromey <tom@tromey.com>
8737
8738 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
8739 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
8740 can_highlight.
8741
5fcee43a
TT
87422019-06-25 Tom Tromey <tom@tromey.com>
8743
8744 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
8745 make_visible_with_new_height method.
8746 (tui_win_info::make_visible_with_new_height): New method.
8747 (tui_source_window_base::do_make_visible_with_new_height)
8748 (tui_data_window::do_make_visible_with_new_height)
8749 (tui_cmd_window::do_make_visible_with_new_height): New methods.
8750 (make_visible_with_new_height): Remove.
8751 (tui_resize_all, tui_adjust_win_heights): Use
8752 make_visible_with_new_height method.
8753 * tui/tui-data.h (struct tui_win_info)
8754 <do_make_visible_with_new_height, make_visible_with_new_height>:
8755 New methods.
8756 (struct tui_source_window_base, struct tui_data_window)
8757 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
8758 methods.
8759
d83f1fe6
TT
87602019-06-25 Tom Tromey <tom@tromey.com>
8761
8762 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
8763 method.
8764 (update_tab_width): Call update_tab_width method.
8765 * tui/tui-data.h (struct tui_win_info)
8766 (struct tui_source_window_base) <update_tab_width>: New methods.
8767
17374de4
TT
87682019-06-25 Tom Tromey <tom@tromey.com>
8769
8770 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
8771 parameter.
8772 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
8773 parameter.
8774 (tui_gen_win_info::make_visible): Update.
8775 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
8776 parameter.
8777 * tui/tui-data.h (enum tui_box): New enum.
8778 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
8779
f936bca2
TT
87802019-06-25 Tom Tromey <tom@tromey.com>
8781
8782 * tui/tui-layout.c (make_source_or_disasm_window): Always use
8783 init_and_make_win for EXEC_INFO_WIN.
8784 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
8785 longer inline.
8786 (struct tui_win_info) <~tui_win_info>: Inline.
8787 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
8788 Don't declare.
8789 * tui/tui-data.c (source_win, disasm_win): Remove globals.
8790 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
8791 Remove.
8792 (tui_initialize_static_data): Update.
8793 (~tui_gen_win_info): Handle more cleanup here.
8794 (~tui_source_window_base): Delete "execution_info".
8795 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
8796
d6ba6a11
TT
87972019-06-25 Tom Tromey <tom@tromey.com>
8798
8799 * tui/tui-layout.c (make_command_window): Don't set
8800 can_highlight.
8801 (show_source_disasm_command): Call the reset method.
8802 (show_data): Don't set can_highlight. Call the reset method.
8803 (tui_gen_win_info::reset): Rename from init_gen_win_info
8804 (init_and_make_win): Simplify. Return tui_gen_win_info.
8805 (show_source_or_disasm_and_command): Call the reset method.
8806 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
8807 (struct tui_cmd_window): Set can_highlight.
8808
48a3bd16
TT
88092019-06-25 Tom Tromey <tom@tromey.com>
8810
8811 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
8812 from make_visible.
8813 (tui_make_visible, tui_make_invisible): Rewrite.
8814 (tui_win_info::make_visible): Remove.
8815 (tui_source_window_base::make_visible): Update.
8816 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
8817 method. Moved from...
8818 (struct tui_win_info) <make_visible>: ...here.
8819
c3bd716f
TT
88202019-06-25 Tom Tromey <tom@tromey.com>
8821
8822 * tui/tui-winsource.c
8823 (tui_source_window_base::do_scroll_horizontal): Remove direction
8824 parameter.
8825 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
8826 direction parameter.
8827 * tui/tui-win.c (tui_win_info::forward_scroll)
8828 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
8829 (tui_win_info::right_scroll): Update.
8830 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
8831 direction parameter.
8832 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
8833 direction parameter.
8834 * tui/tui-data.h (enum tui_scroll_direction): Remove.
8835 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
8836 Remove direction parameter.
8837 (struct tui_source_window_base, struct tui_source_window)
8838 (struct tui_disasm_window, struct tui_data_window)
8839 (struct tui_cmd_window): Update.
8840
21c32dca
TT
88412019-06-25 Tom Tromey <tom@tromey.com>
8842
8843 * tui/tui-winsource.h (tui_set_exec_info_content)
8844 (tui_show_exec_info_content, tui_erase_exec_info_content)
8845 (tui_clear_exec_info_content, tui_update_exec_info): Change
8846 argument to tui_source_window_base.
8847 * tui/tui-winsource.c (tui_set_exec_info_content)
8848 (tui_show_exec_info_content, tui_erase_exec_info_content)
8849 (tui_clear_exec_info_content, tui_update_exec_info): Change
8850 argument to tui_source_window_base.
8851
73fbdc65
TT
88522019-06-25 Tom Tromey <tom@tromey.com>
8853
8854 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
8855 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
8856
33325343
TT
88572019-06-25 Tom Tromey <tom@tromey.com>
8858
8859 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
8860 check.
8861
29d2c474
TT
88622019-06-25 Tom Tromey <tom@tromey.com>
8863
8864 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
8865 type to void.
8866 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
8867 type to void.
8868 * tui/tui-source.c (tui_set_source_content): Update.
8869 * tui/tui-disasm.c (tui_set_disassem_content): Update.
8870
152f3f4b
TT
88712019-06-25 Tom Tromey <tom@tromey.com>
8872
8873 * tui/tui-win.c (window_name_completer, tui_set_focus)
8874 (tui_all_windows_info): Use name method.
8875 * tui/tui-data.h (struct tui_gen_win_info)
8876 (struct tui_source_window, struct tui_disasm_window)
8877 (struct tui_data_window, struct tui_cmd_window) <name>: New
8878 method.
8879 (tui_win_name): Don't declare.
8880 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
8881 (tui_win_name): Remove.
8882
be4da588
TT
88832019-06-25 Tom Tromey <tom@tromey.com>
8884
8885 * tui/tui-winsource.h (tui_update_source_window)
8886 (tui_update_source_window_as_is): Change parameter type.
8887 * tui/tui-winsource.c (tui_update_source_window): Change win_info
8888 to be a tui_source_window_base.
8889 (tui_update_source_window_as_is): Likewise.
8890 * tui/tui-win.c (make_visible_with_new_height): Update.
8891
5b81daba
TT
88922019-06-25 Tom Tromey <tom@tromey.com>
8893
8894 * tui/tui-winsource.c (tui_erase_source_content)
8895 (tui_show_source_content, tui_show_exec_info_content)
8896 (tui_erase_exec_info_content): Use refresh_window method.
8897 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
8898 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
8899 from tui_refresh_win.
8900 (tui_data_window::refresh_window): New method.
8901 (tui_win_info::refresh, tui_source_window_base::refresh)
8902 (tui_refresh_all): Use refresh_window method.
8903 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
8904 method.
8905 * tui/tui-regs.c (tui_display_register): Call refresh_window
8906 method.
8907 * tui/tui-layout.c (show_source_disasm_command)
8908 (show_source_or_disasm_and_command): Call refresh_window method.
8909 * tui/tui-data.h (struct tui_gen_win_info)
8910 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
8911 New method.
8912
cb2ce893
TT
89132019-06-25 Tom Tromey <tom@tromey.com>
8914
8915 * tui/tui.c (tui_rl_other_window, tui_enable)
8916 (tui_is_window_visible, tui_get_command_dimension): Update.
8917 * tui/tui-winsource.c (tui_update_source_window_as_is)
8918 (tui_clear_source_content, tui_erase_source_content)
8919 (tui_show_source_line, tui_source_window_base::refill)
8920 (tui_source_window_base::do_scroll_horizontal)
8921 (tui_source_window_base::set_is_exec_point_at)
8922 (tui_update_breakpoint_info, tui_set_exec_info_content)
8923 (tui_alloc_source_buffer, tui_line_is_displayed)
8924 (tui_addr_is_displayed): Update.
8925 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
8926 (tui_check_and_display_highlight_if_needed)
8927 (tui_win_info::make_visible, tui_win_info::refresh)
8928 (tui_refresh_all): Update.
8929 * tui/tui-windata.c (tui_first_data_item_displayed)
8930 (tui_delete_data_content_windows, tui_erase_data_content)
8931 (tui_display_all_data, tui_data_window::refresh_all)
8932 (tui_check_data_values): Update.
8933 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
8934 (tui_set_win_focus_to, tui_win_info::forward_scroll)
8935 (tui_win_info::backward_scroll, tui_refresh_all_win)
8936 (tui_resize_all, tui_set_focus, tui_all_windows_info)
8937 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
8938 (tui_source_window_base::set_new_height)
8939 (tui_data_window::set_new_height)
8940 (make_invisible_and_set_new_height)
8941 (make_visible_with_new_height, new_height_ok)
8942 (parse_scrolling_args): Update.
8943 * tui/tui-stack.c (tui_show_frame_info): Update.
8944 * tui/tui-source.c (tui_set_source_content)
8945 (tui_set_source_content_nil, tui_source_is_displayed)
8946 (tui_source_window::do_scroll_vertical): Update.
8947 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
8948 (tui_display_registers_from, tui_display_reg_element_at_line)
8949 (tui_check_register_values, tui_reg_command): Update.
8950 * tui/tui-layout.c (tui_default_win_height)
8951 (show_source_disasm_command, show_data, init_and_make_win)
8952 (show_source_or_disasm_and_command): Update.
8953 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
8954 (tui_redisplay_readline, tui_mld_flush)
8955 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
8956 (tui_getc): Update.
8957 * tui/tui-disasm.c (tui_set_disassem_content)
8958 (tui_disasm_window::do_scroll_vertical): Update.
8959 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
8960 Now virtual.
8961 (struct tui_win_info): Derive from tui_gen_win_info.
8962 <~tui_win_info>: Mark as override.
8963 <generic>: Remove member.
8964 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
8965 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
8966 (~tui_data_window, ~tui_win_info)
8967 (tui_free_all_source_wins_content): Update.
8968 * tui/tui-command.c (tui_refresh_cmd_win): Update.
8969
ab313b35
TT
89702019-06-25 Tom Tromey <tom@tromey.com>
8971
8972 * tui/tui-layout.c (init_and_make_win): Use new.
8973 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
8974 destructor, initializers.
8975 (tui_alloc_generic_win_info): Don't declare.
8976 * tui/tui-data.c (_locator): Add argument to constructor.
8977 (source_win, disasm_win): New globals.
8978 (exec_info): Remove.
8979 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
8980 Update.
8981 (tui_alloc_generic_win_info): Remove.
8982 (init_content_element): Use new.
8983 (tui_win_info::tui_win_info): Update.
8984 (free_content_elements) <case DATA_WIN>: Use delete.
8985
dc2c33e4
TT
89862019-06-25 Tom Tromey <tom@tromey.com>
8987
8988 * tui/tui-wingeneral.c (tui_refresh_win): Update.
8989 * tui/tui-windata.c (tui_first_data_item_displayed)
8990 (tui_delete_data_content_windows): Update.
8991 * tui/tui-win.c (tui_data_window::set_new_height): Update.
8992 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
8993 (tui_display_registers_from, tui_check_register_values): Update.
8994 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
8995 pointer.
8996 * tui/tui-data.c (init_content_element): Update. Allocate the new
8997 window.
8998 (tui_free_data_content): Update.
8999 (free_content_elements) <case DATA_WIN>: Free the window.
9000
214a5cbe
TT
90012019-06-25 Tom Tromey <tom@tromey.com>
9002
9003 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
9004 Update.
9005 * tui/tui-layout.c (make_command_window)
9006 (show_source_disasm_command, show_data, init_and_make_win)
9007 (show_source_or_disasm_and_command): Update.
9008 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
9009 method.
9010 <can_highight, is_highlighted>: Now bool.
9011 (tui_set_win_highlight): Don't declare.
9012 * tui/tui-data.c (tui_set_win_highlight): Remove.
9013
8e2daf15
TT
90142019-06-25 Tom Tromey <tom@tromey.com>
9015
9016 * tui/tui-wingeneral.c (make_visible): Remove check of window
9017 type.
9018
8903bd8a
TT
90192019-06-25 Tom Tromey <tom@tromey.com>
9020
9021 * tui/tui-win.c (tui_win_info::max_height)
9022 (tui_cmd_window::max_height): New methods.
9023 (new_height_ok): Call max_height.
9024 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
9025 <max_height>: New method.
9026
3f02ce1e
TT
90272019-06-25 Tom Tromey <tom@tromey.com>
9028
9029 * tui/tui-win.c (tui_source_window_base::set_new_height)
9030 (tui_data_window::set_new_height): New methods.
9031 (make_invisible_and_set_new_height): Call set_new_height method.
9032 * tui/tui-data.h (struct tui_win_info)
9033 (struct tui_source_window_base, struct tui_data_window)
9034 <set_new_height>: New method.
9035
1825f487
TT
90362019-06-25 Tom Tromey <tom@tromey.com>
9037
9038 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
9039 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
9040 tui_refresh_data_win.
9041 * tui/tui-win.c (tui_source_window_base::refresh_all): New
9042 method.
9043 (tui_refresh_all_win): Call the refresh_all method.
9044 (tui_set_focus): Likewise.
9045 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
9046 (struct tui_source_window_base, struct tui_data_window) <refresh>:
9047 Likewise.
9048
ad54d15b
TT
90492019-06-25 Tom Tromey <tom@tromey.com>
9050
9051 * tui/tui-winsource.h (tui_refill_source_window)
9052 (tui_set_is_exec_point_at): Don't declare.
9053 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
9054 (tui_source_window_base::refill): Rename from
9055 tui_refill_source_window.
9056 (tui_source_window_base::do_scroll_horizontal): Update.
9057 (tui_source_window_base::set_is_exec_point_at): Rename from
9058 tui_set_is_exec_point_at.
9059 (tui_update_all_breakpoint_info): Update.
9060 * tui/tui-stack.c (tui_show_frame_info): Update.
9061 * tui/tui-layout.c (show_data): Add cast.
9062 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
9063 * tui/tui-data.h (struct tui_source_window_base) <refill,
9064 set_is_exec_point_at>: New methods.
9065 (tui_source_windows, tui_add_to_source_windows): Update types.
9066 (tui_add_to_source_windows): Remove redundant declaration.
9067 * tui/tui-data.c (source_windows): Store tui_source_window_base.
9068 (tui_source_windows): Change return type.
9069 (tui_clear_source_windows_detail): Update.
9070 (tui_add_to_source_windows): Change type of parameter.
9071 (tui_free_all_source_wins_content): Update.
9072
2042b506
TT
90732019-06-25 Tom Tromey <tom@tromey.com>
9074
9075 * tui/tui-wingeneral.c (tui_win_info::refresh)
9076 (tui_source_window_base::refresh): New methods.
9077 (tui_refresh_all): Call the refresh method.
9078 * tui/tui-data.h (struct tui_win_info)
9079 (struct tui_source_window_base) <refresh>: New method.
9080
56122977
TT
90812019-06-25 Tom Tromey <tom@tromey.com>
9082
9083 * tui/tui.h (tui_is_window_visible): Return bool.
9084 * tui/tui.c (tui_is_window_visible): Return bool.
9085 * tui/tui-wingeneral.c (tui_make_window, make_visible)
9086 (tui_make_visible, tui_make_invisible)
9087 (tui_win_info::make_visible)
9088 (tui_source_window_base::make_visible, make_all_visible)
9089 (tui_make_all_visible, tui_make_all_invisible): Update.
9090 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
9091 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
9092 bool.
9093 (struct tui_win_info, struct tui_source_window_base)
9094 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
9095 * tui/tui-data.c (tui_init_generic_part): Update.
9096
cda37efb
TT
90972019-06-25 Tom Tromey <tom@tromey.com>
9098
9099 * tui/tui-wingeneral.c (tui_win_info::make_visible)
9100 (tui_source_window_base::make_visible): New methods.
9101 (make_all_visible): Make method call.
9102 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
9103 (struct tui_source_window_base, struct tui_cmd_window): Override
9104 make_visible.
9105 (tui_win_is_source_type): Don't declare.
9106 * tui/tui-data.c (tui_win_is_source_type): Remove.
9107
6a0ee02c
TT
91082019-06-25 Tom Tromey <tom@tromey.com>
9109
9110 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
9111 NULL check.
9112
63901aec
TT
91132019-06-25 Tom Tromey <tom@tromey.com>
9114
9115 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
9116 Inline constructor. Add initializers for members.
9117 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
9118 constructors; now inline in class.
9119
ceb13a13
TT
91202019-06-25 Tom Tromey <tom@tromey.com>
9121
9122 * tui/tui-regs.c (tui_show_registers): Update.
9123 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
9124 bool.
9125 * tui/tui-data.c (tui_data_window::clear_detail)
9126 (tui_data_window): Update.
9127
238eb706
TT
91282019-06-25 Tom Tromey <tom@tromey.com>
9129
9130 * tui/tui-windata.c (tui_display_all_data)
9131 (tui_display_data_from_line, tui_display_data_from)
9132 (tui_check_data_values, tui_data_window::do_scroll_vertical):
9133 Update.
9134 * tui/tui-regs.c (tui_last_regs_line_no)
9135 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
9136 (tui_show_registers, tui_show_register_group)
9137 (tui_display_registers_from, tui_display_reg_element_at_line)
9138 (tui_display_registers_from_line, tui_check_register_values)
9139 (tui_reg_next, tui_reg_prev): Update.
9140 * tui/tui-layout.c (tui_set_layout, show_data): Update.
9141 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
9142 tui_data_window.
9143 (struct tui_win_info) <detail>: Remove. Add new fields from
9144 tui_data_info.
9145 (TUI_DATA_WIN): Add cast.
9146 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
9147 (~tui_data_window): Simplify.
9148
81491aa0
TT
91492019-06-25 Tom Tromey <tom@tromey.com>
9150
9151 * tui/tui-layout.c (show_source_disasm_command)
9152 (show_source_or_disasm_and_command): Update.
9153 * tui/tui-io.c (update_cmdwin_start_line)
9154 (tui_redisplay_readline): Update.
9155 * tui/tui-data.h (struct tui_command_info): Remove.
9156 (struct tui_win_info) <detail>: Remove command_info member.
9157 (struct tui_data_window) <start_line>: New member, from
9158 tui_command_info.
9159 (TUI_CMD_WIN): Add casts.
9160
e6e41501
TT
91612019-06-25 Tom Tromey <tom@tromey.com>
9162
9163 * tui/tui-winsource.c (tui_update_source_window)
9164 (tui_refill_source_window)
9165 (tui_source_window_base::do_scroll_horizontal)
9166 (tui_update_breakpoint_info, tui_set_exec_info_content)
9167 (tui_show_exec_info_content, tui_erase_exec_info_content)
9168 (tui_clear_exec_info_content): Update.
9169 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
9170 Update.
9171 * tui/tui-win.c (make_invisible_and_set_new_height)
9172 (make_visible_with_new_height): Update.
9173 * tui/tui-source.c (tui_set_source_content)
9174 (tui_show_symtab_source): Update.
9175 * tui/tui-layout.c (extract_display_start_addr)
9176 (show_source_disasm_command, show_data)
9177 (make_source_or_disasm_window)
9178 (show_source_or_disasm_and_command): Update.
9179 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
9180 (tui_disasm_window::do_scroll_vertical): Remove shadowing
9181 "gdbarch".
9182 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
9183 to tui_source_window_base.
9184 (struct tui_win_info) <detail>: Remove source_info member.
9185 (struct tui_source_window_base) <has_locator>: Inline.
9186 Move contents from tui_source_info; rename has_locator member to
9187 m_has_locator.
9188 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
9189 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
9190 header file.
9191 (tui_source_window_base::clear_detail, ~tui_source_window_base):
9192 Simplify.
9193 (tui_free_all_source_wins_content): Cast to
9194 tui_source_window_base.
9195
44f0e208
TT
91962019-06-25 Tom Tromey <tom@tromey.com>
9197
9198 * tui/tui-win.c (make_invisible_and_set_new_height)
9199 (make_visible_with_new_height): Call has_locator method.
9200 * tui/tui-layout.c (show_source_disasm_command, show_data)
9201 (show_source_or_disasm_and_command): Update for bool change.
9202 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
9203 (tui_win_info) <has_locator>: New method.
9204 (struct tui_source_window_base) <has_locator>: New method.
9205 (tui_win_has_locator): Don't declare.
9206 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
9207 from tui_win_has_locator.
9208 (tui_source_window_base): Use false, not FALSE.
9209
7778b912
TT
92102019-06-25 Tom Tromey <tom@tromey.com>
9211
9212 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
9213 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
9214 clear_detail method directly.
9215 (tui_clear_win_detail): Remove.
9216
f83d391c
TT
92172019-06-25 Tom Tromey <tom@tromey.com>
9218
9219 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
9220 "this", not TUI_DISASM_WIN.
9221
13446e05
TT
92222019-06-25 Tom Tromey <tom@tromey.com>
9223
9224 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
9225 declare.
9226 * tui/tui-winsource.c
9227 (tui_source_window_base::do_scroll_horizontal): Rename from
9228 tui_horizontal_source_scroll.
9229 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
9230 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
9231 from tui_vertical_data_scroll.
9232 * tui/tui-win.h (tui_scroll): Don't declare.
9233 * tui/tui-win.c (tui_win_info::forward_scroll)
9234 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
9235 (tui_win_info::right_scroll): Rename and update.
9236 (tui_scroll_forward_command, tui_scroll_backward_command)
9237 (tui_scroll_left_command, tui_scroll_right_command): Update.
9238 (tui_scroll): Remove.
9239 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
9240 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
9241 from tui_vertical_source_scroll.
9242 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
9243 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
9244 from tui_vertical_disassem_scroll.
9245 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
9246 do_scroll_horizontal>: New methods.
9247 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
9248 Likewise.
9249 (struct tui_source_window_base): Add do_scroll_horizontal.
9250 (struct tui_source_window, struct tui_disasm_window): Add
9251 do_scroll_vertical.
9252 (struct tui_data_window, struct tui_cmd_window): Add
9253 do_scroll_horizontal and do_scroll_vertical.
9254 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
9255
5cf82909
TT
92562019-06-25 Tom Tromey <tom@tromey.com>
9257
9258 * tui/tui-data.h (struct tui_source_window_base): New struct.
9259 (struct tui_source_window): Derive from tui_source_window_base.
9260 (struct tui_disasm_window): New struct.
9261 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
9262 from tui_source_window::clear_detail.
9263 (tui_source_window_base): Rename from tui_source_window.
9264 (~tui_source_window_base): Rename from ~tui_source_window.
9265 (tui_alloc_win_info): Create a tui_disasm_window.
9266
ee1d42d6
TT
92672019-06-25 Tom Tromey <tom@tromey.com>
9268
9269 * tui/tui-data.h (struct tui_source_window)
9270 (struct tui_data_window): Declare destructors.
9271 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
9272 destructors.
9273 (tui_win_info): Simplify.
9274
b4eb2452
TT
92752019-06-25 Tom Tromey <tom@tromey.com>
9276
9277 * tui/tui-winsource.c (tui_display_main)
9278 (tui_update_source_windows_with_addr)
9279 (tui_update_all_breakpoint_info): Update.
9280 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
9281 (new_height_ok, parse_scrolling_args): Update.
9282 * tui/tui-stack.c (tui_show_frame_info): Update.
9283 * tui/tui-data.h (struct tui_list): Remove.
9284 (tui_source_windows): Return a reference to a std::vector.
9285 * tui/tui-data.c (source_windows): Now a std::vector.
9286 (tui_source_windows): Change return type.
9287 (tui_clear_source_windows): Rewrite.
9288 (tui_clear_source_windows_detail, tui_add_to_source_windows)
9289 (tui_free_all_source_wins_content): Rewrite.
9290
8761a91b
TT
92912019-06-25 Tom Tromey <tom@tromey.com>
9292
9293 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
9294 (struct tui_data_window, struct tui_cmd_window): Declare
9295 clear_detail method.
9296 * tui/tui-data.c (tui_source_window::clear_detail)
9297 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
9298 methods.
9299 (tui_clear_win_detail): Simplify.
9300
0ed69eda
TT
93012019-06-25 Tom Tromey <tom@tromey.com>
9302
9303 * tui/tui-layout.c (make_source_window, make_disasm_window)
9304 (make_source_or_disasm_window): Remove win_info_ptr parameter.
9305 Return the new window.
9306 (show_source_disasm_command, show_data)
9307 (show_source_or_disasm_and_command): Update.
9308
82432e10
TT
93092019-06-25 Tom Tromey <tom@tromey.com>
9310
9311 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
9312 parameter. Return the new window.
9313 (show_source_disasm_command): Update and remove NULL check.
9314 (show_source_or_disasm_and_command): Update.
9315
ec328aa5
TT
93162019-06-25 Tom Tromey <tom@tromey.com>
9317
9318 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
9319
33b906ab
TT
93202019-06-25 Tom Tromey <tom@tromey.com>
9321
9322 * tui/tui-data.h (struct tui_win_info): Make constructor
9323 protected. Make destructor virtual. Add initializers.
9324 (tui_source_window, tui_data_window, tui_cmd_window): New
9325 classes.
9326 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
9327 constructor. Add "type" parameter.
9328 (tui_source_window, tui_data_window, tui_cmd_window): New
9329 constructors.
9330 (tui_alloc_win_info): Instantiate the appropriate subclass.
9331
e7e11af4
TT
93322019-06-25 Tom Tromey <tom@tromey.com>
9333
9334 * tui/tui-win.c (tui_resize_all): Use delete.
9335 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
9336 destructor.
9337 (tui_free_window): Don't declare.
9338 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
9339 Update.
9340
6792b55e
TT
93412019-06-25 Tom Tromey <tom@tromey.com>
9342
9343 * tui/tui-data.h (struct tui_win_info): Add constructor.
9344 * tui/tui-data.c (tui_alloc_win_info): Use new.
9345 (tui_free_window): Use delete.
9346
f95675e1
TT
93472019-06-22 Tom Tromey <tom@tromey.com>
9348
9349 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
9350 declare.
9351 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
9352
5bff081c
TT
93532019-06-22 Tom Tromey <tom@tromey.com>
9354
9355 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
9356 declare.
9357 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
9358
47e3f474
TV
93592019-06-22 Tom de Vries <tdevries@suse.de>
9360
9361 * dwarf2read.c (create_addrmap_from_aranges)
9362 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
9363 instead of '%zu'.
9364
fd5866f6
SM
93652019-06-21 Simon Marchi <simon.marchi@efficios.com>
9366
9367 * dwarf2read.h (dwarf2_section_info_def): Remove.
9368 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
9369 * dwarf2read.c (struct dwo_sections) <types>: Change type to
9370 std::vector<dwarf2_section_info>.
9371 (struct dwo_file) <~dwo_file>: Remove.
9372 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
9373 types field.
9374 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
9375 (dwarf2_read_debug_names): Likewise.
9376 (create_debug_types_hash_table): Change parameter type to
9377 array_view, adjust code accordingly.
9378 (dwarf2_locate_dwo_sections): Adjust to std::vector.
9379 (partial_die_info::fixup): Likewise.
9380 (determine_prefix): Likewise.
9381 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
9382
fb1eb2f9
SM
93832019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
9384
9385 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
9386 gdb_bfd_ref_ptr.
9387 <~dwo_file>: Remove call to gdb_bfd_unref.
9388 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
9389 gdb_bfd_ref_ptr::get.
9390
51ac9db5
SM
93912019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
9392
9393 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
9394 type to htab_up.
9395 * dwarf2read.c (struct dwo_file): Initialize fields.
9396 <~dwo_file>: New.
9397 (free_dwo_file): Remove, move content to ~dwo_file.
9398 (struct dwo_file_deleter): Remove.
9399 (dwo_file_up>: Remove custom deleter.
9400 (free_dwo_files): Remove.
9401 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
9402 dwo_files.
9403 (process_skeletonless_type_units): Call unique_ptr::get.
9404 (allocate_dwo_file_hash_table): Add deleter to created hash
9405 table. Change return type to htab_up.
9406 (lookup_dwo_file_slot): Don't memset dwo_file, call
9407 unique_ptr::get.
9408 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
9409 (create_dwo_unit_in_dwp_v2): Likewise.
9410 (open_and_init_dwo_file): Likewise.
9411 (free_dwo_file_from_slot): Remove.
9412
dc4ccb6f
SM
94132019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
9414
9415 * dwarf2read.h (struct dwarf2_section_info) <readin,
9416 is_virtual>: Change type to bool.
9417 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
9418 true instead of 1.
9419
e6a1c5cb
TT
94202019-06-19 Tom Tromey <tom@tromey.com>
9421
9422 * tui/tui-data.h (tui_init_content_element): Don't declare.
9423
6f6ffbeb
TT
94242019-06-19 Tom Tromey <tom@tromey.com>
9425
9426 * tui/tui-data.h (tui_init_win_info): Don't declare.
9427
f23f598e
TV
94282019-06-19 Tom de Vries <tdevries@suse.de>
9429
9430 * dwarf2read.h (abstract_to_concrete): Change type to
9431 std::unordered_map<sect_offset, std::vector<sect_offset>,
9432 gdb::hash_enum<sect_offset>>.
9433
680e1bee
TT
94342019-06-19 Tom Tromey <tromey@adacore.com>
9435
9436 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
9437 EVAL_AVOID_SIDE_EFFECTS specially.
9438
dcf37923
TT
94392019-06-19 Tom Tromey <tromey@adacore.com>
9440
9441 * source-cache.c (highlighter): New global.
9442 (source_cache::get_source_lines): Create a highlighter on demand.
9443
494986d5
AB
94442019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
9445
9446 * defs.h (deprecated_interactive_hook): Delete declaration.
9447 * interps.c (clear_interpreter_hooks): Remove use of
9448 deprecated_interactive_hook.
9449 * top.c (deprecated_interactive_hook): Delete definition.
9450 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
9451
3360b6e7
TV
94522019-06-18 Tom de Vries <tdevries@suse.de>
9453
9454 PR gdb/24515
9455 * dwarf2read.h (abstract_to_concrete): Change type from
9456 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
9457 std::unordered_map<sect_offset, std::vector<sect_offset>>.
9458 * dwarf2read.c (read_variable): Update.
9459 (dwarf2_fetch_die_loc_sect_off): Update.
9460
310b3441
TV
94612019-06-17 Tom de Vries <tdevries@suse.de>
9462
9463 PR gdb/24617
9464 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
9465 accessing parent[parent_len - 1].
9466
ba9777be
PP
94672019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
9468
9469 PR gdb/24364
9470 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
9471 call dtrace_process_dof with NULL dof.
9472
2b9f6e89
TV
94732019-06-16 Tom de Vries <tdevries@suse.de>
9474
9475 PR gdb/24445
9476 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
9477
431b3ead
TT
94782019-06-16 Tom Tromey <tom@tromey.com>
9479
9480 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
9481 (make_all_visible): Use address of member.
9482
d04b44a1
TT
94832019-06-16 Tom Tromey <tom@tromey.com>
9484
9485 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
9486 (tui_free_window, free_content, free_content_elements): Remove
9487 unnecessary cast.
9488 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
9489 cast.
9490 * tui/tui-regs.c (tui_show_register_group)
9491 (tui_display_registers_from, tui_display_reg_element_at_line):
9492 Remove unnecessary cast.
9493
bf5142e7
AB
94942019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
9495
9496 * linux-nat.c (normal_mask): Delete.
9497 (_initialize_linux_nat): Don't initialise normal_mask.
9498
c4973306
SM
94992019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
9500
9501 PR gdb/24445
9502 * dwarf-index-write.h (write_psymtabs_to_index): Add
9503 dwz_basename parameter.
9504 * dwarf-index-write.c (write_gdbindex): Move file writing to
9505 write_gdbindex_1. Change return type void.
9506 (assert_file_size): Move up, remove filename parameter.
9507 (write_gdbindex_1): New function.
9508 (write_debug_names): Change return type to void, call
9509 assert_file_size.
9510 (struct index_wip_file): New struct.
9511 (write_psymtabs_to_index): Add dwz_basename parameter. Move
9512 file logic to index_wip_file. Write index for dwz file if
9513 needed.
9514 (save_gdb_index_command): Pass basename of dwz file, if present.
9515 * dwarf-index-cache.c (index_cache::store): Obtain and pass
9516 build-id of dwz file, if present.
9517 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
9518 (dwarf2_get_dwz_file): Likewise.
9519 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
9520 (dwarf2_get_dwz_file): Likewise.
9521
395f9c91
TT
95222019-06-16 Tom Tromey <tom@tromey.com>
9523
9524 * coffread.c (process_coff_symbol): Use xstrdup.
9525 * value.c (create_internalvar): Use xstrdup.
9526
cafb3438
TT
95272019-06-16 Tom Tromey <tom@tromey.com>
9528
9529 * valops.c (value_cast, value_slice): Remove unnecessary cast.
9530 * breakpoint.c (stopin_command, stopat_command)
9531 (until_break_command, decode_location_default): Remove unnecessary
9532 cast.
9533 * utils.c (subset_compare): Remove unnecessary cast.
9534 * ada-lang.c (ada_update_initial_language): Remove unnecessary
9535 cast.
9536 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
9537 cast.
9538 * infcmd.c (path_command): Remove unnecessary cast.
9539 * coffread.c (decode_type): Remove unnecessary cast.
9540 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
9541 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
9542 * tui/tui-stack.c (tui_show_locator_content)
9543 (tui_show_frame_info): Remove unnecessary cast.
9544 * tui/tui-win.c (tui_scroll_forward_command)
9545 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
9546 (parse_scrolling_args): Remove unnecessary cast.
9547 * tui/tui-data.c (init_win_info, tui_del_window)
9548 (tui_free_window, tui_del_data_windows, tui_free_data_content)
9549 (free_content_elements): Remove unnecessary cast.
9550 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
9551 unnecessary cast.
9552 * tui/tui-source.c (tui_set_source_content)
9553 (tui_vertical_source_scroll): Remove unnecessary cast.
9554 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
9555 cast.
9556 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
9557 * tui/tui-regs.c (tui_display_registers_from)
9558 (tui_display_register): Remove unnecessary cast.
9559 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
9560 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
9561 (make_visible): Remove unnecessary cast.
9562 * tui/tui-winsource.c (tui_erase_source_content)
9563 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
9564 unnecessary cast.
9565 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
9566 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
9567 * stabsread.c (read_type, read_array_type, read_range_type):
9568 Remove unnecessary cast.
9569 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
9570 (parse_symbol, parse_type, upgrade_type, parse_external)
9571 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
9572 unnecessary cast.
9573 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
9574
730ead81
TT
95752019-06-16 Tom Tromey <tom@tromey.com>
9576
9577 * tui/tui-data.c (tui_alloc_generic_win_info)
9578 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
9579 checks.
9580
584a927c
AB
95812019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
9582 Andrew Burgess <andrew.burgess@embecosm.com>
9583
9584 * f-typeprint.c (f_print_type): Don't return early for not
9585 associated or not allocated types.
9586 (f_type_print_varspec_suffix): Add print_rank parameter and print
9587 ranks of array types in case they dangling.
9588 (f_type_print_base): Add print_rank parameter.
9589
30056ea0
AB
95902019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
9591
9592 * NEWS: Mention new MI commands.
9593 * break-catch-throw.c (enum exception_event_kind): Move to
9594 breakpoint.h.
9595 (print_mention_exception_catchpoint): Output text as a single
9596 message.
9597 (catch_exception_command_1): Rename to...
9598 (catch_exception_event): ...this, make non-static, update header
9599 command, and change some parameter types.
9600 (catch_catch_command): Update for changes to
9601 catch_exception_command_1.
9602 (catch_throw_command): Likewise.
9603 (catch_rethrow_command): Likewise.
9604 * breakpoint.c (enum exception_event_kind): Delete.
9605 * breakpoint.h (enum exception_event_kind): Moved here from
9606 break-catch-throw.c.
9607 (catch_exception_event): Declare.
9608 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
9609 (mi_cmd_catch_throw): New function.
9610 (mi_cmd_catch_rethrow): New function.
9611 (mi_cmd_catch_catch): New function.
9612 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
9613 'catch-catch' entries.
9614 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
9615 (mi_cmd_catch_rethrow): Declare.
9616 (mi_cmd_catch_catch): Declare.
9617
ec8e2b6d
AB
96182019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
9619
9620 * annotate.c (annotate_source_line): Change return type to void,
9621 update implementation to match.
9622 * annotate.h (annotate_source_line): Change return type to void,
9623 update header comment.
9624 * stack.c (print_frame_info): Don't change what frame information
9625 is printed based on whether annotations are on or not.
9626
0d3abd8c
AB
96272019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
9628
9629 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
9630 (annotate_source): Make static.
9631 (annotate_source_line): Moved from source.c and renamed from
9632 identify_source_line. Update the return type.
9633 * annotate.h (annotate_source): Delete declaration.
9634 (annotate_source_line): Declaration moved from source.h, and
9635 renamed from identify_source_line. Return type updated.
9636 * source.c (identify_source_line): Moved to annotate.c and renamed
9637 to annotate_source_line.
9638 (info_line_command): Remove check of annotation_level.
9639 * source.h (identify_source_line): Move declaration to annotate.h
9640 and rename to annotate_source_line.
9641 * stack.c: Add 'annotate.h' include.
9642 (print_frame_info): Remove check of annotation_level before
9643 calling annotate_source_line.
9644
00df30ae
AB
96452019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
9646
9647 * source-cache.c (source_cache::get_plain_source_lines): Use
9648 open_source_file_with_line_charpos instead of just
9649 open_source_file, remove call to find_source_lines.
9650 (source_cache::get_source_lines): Likewise.
9651 * source.c (find_source_lines): Make static.
9652 (get_filename_and_charpos): Renamed into...
9653 (open_source_file_with_line_charpos): ..this along with changes to
9654 return a scoped_fd, and some other minor clean ups.
9655 (identify_source_line): Use open_source_file_with_line_charpos.
9656 (search_command_helper): Use open_source_file_with_line_charpos
9657 instead of just open_source_file, remove call to
9658 find_source_lines.
9659 * source.h (open_source_file_with_line_charpos): Declare new
9660 function.
9661 (find_source_lines): Delete declaration.
9662
afda45a2
AB
96632019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
9664
9665 * source.c (get_filename_and_charpos): Remove fullname
9666 parameter.
9667 (identify_source_line): Update call to get_filename_and_charpos.
9668
0735b091
TT
96692019-06-14 Tom Tromey <tromey@adacore.com>
9670
9671 PR gdb/24502:
9672 * ui-style.h (skip_ansi_escape): Update comment.
9673 * ui-file.h (class no_terminal_escape_file): New class.
9674 * ui-file.c (no_terminal_escape_file::write)
9675 (no_terminal_escape_file::puts): New methods.
9676 * cli/cli-logging.c (handle_redirections): Use
9677 no_terminal_escape_file.
9678
52ce35e2
TT
96792019-06-14 Tom Tromey <tromey@adacore.com>
9680
9681 * NEWS: Move convenience variable news above Python news.
9682
73cc7272
TT
96832019-06-14 Tom Tromey <tom@tromey.com>
9684
9685 * gnulib: Move directory to top-level.
9686 * configure.ac: Don't configure gnulib.
9687 * configure: Rebuild.
9688 * common/common-defs.h: Use new path to gnulib.
9689 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
9690 (GNULIB_H): Remove.
9691 (INCGNU): Look in new gnulib location.
9692 (HFILES_NO_SRCDIR): Remove gnulib files.
9693 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
9694 (generated_files): Remove GNULIB_H.
9695 ($(LIBGNU), all-lib): Remove targets.
9696 (distclean): Don't mention GNULIB_BUILDDIR.
9697 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
9698
f5686554
TT
96992019-06-14 Tom Tromey <tromey@adacore.com>
9700
9701 * symfile.c (add_symbol_file_command): Remove obsolete comment.
9702 Warn if symbol file does not provide any symbols.
9703
a0c1ffed
TT
97042019-06-14 Tom Tromey <tromey@adacore.com>
9705
9706 * source.c (find_and_open_source): Respect basenames_may_differ.
9707
7c39e397
AB
97082019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
9709
9710 * annotate.c (annotate_breakpoints_invalid): Make use of
9711 scoped_restore_terminal_state.
9712 (annotate_frames_invalid): Likewise.
9713
f411722c
TT
97142019-06-14 Tom Tromey <tromey@adacore.com>
9715
9716 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
9717 allow assignment to an internalvar.
9718
4268ec18
TT
97192019-06-14 Tom Tromey <tromey@adacore.com>
9720
9721 * ada-lex.l: Allow "_" in attribute names.
9722
abdb711e
TT
97232019-06-14 Tom Tromey <tromey@adacore.com>
9724
9725 PR gdb/24653:
9726 * regcache.c (registers_changed): Don't call alloca.
9727 * top.c (execute_command): Don't call alloca.
9728
4c048731
PA
97292019-06-13 Pedro Alves <palves@redhat.com>
9730
9731 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
9732 'expression'. When parsing an expression, error out if there's
9733 junk after "unlimited".
9734 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
9735 (do_set_command): Adjust calls to is_unlimited_literal.
9736
66eb1ed3
PA
97372019-06-13 Pedro Alves <palves@redhat.com>
9738
9739 * compile/compile.c (make_compile_options_def_group): Add braces
9740 around array_view initializer.
9741 * thread.c (make_thread_apply_all_options_def_group)
9742 (make_thread_apply_all_options_def_group): Likewise.
9743
3345721a
PA
97442019-06-13 Pedro Alves <palves@redhat.com>
9745
9746 * NEWS (New commands): Mention "maint test-options
9747 require-delimiter", "maint test-options unknown-is-error", "maint
9748 test-options unknown-is-operand" and "maint show
9749 test-options-completion-result".
9750 (New command options, command completion): New section.
9751 (Completion improvements): New section.
9752 Mention that you can abbreviate "unlimited".
9753
6206060d
PA
97542019-06-13 Pedro Alves <palves@redhat.com>
9755
9756 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
9757 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
9758 * unittests/cli-utils-selftests.c (test_parse_flags)
9759 (test_parse_flags_qcs): Delete.
9760 (test_cli_utils): Don't call deleted functions.
9761
6665660a
PA
97622019-06-13 Pedro Alves <palves@redhat.com>
9763
9764 * thread.c: Include "cli/cli-option.h".
9765 (tp_array_compar_ascending): Global.
9766 (tp_array_compar): Delete function.
9767 (tp_array_compar_ascending, tp_array_compar_descending): New
9768 functions.
9769 (ascending_option_def, qcs_flag_option_def)
9770 (thr_qcs_flags_option_defs)
9771 (make_thread_apply_all_options_def_group)
9772 (make_thread_apply_options_def_group): New.
9773 (thread_apply_all_command): Use gdb::option::process_options.
9774 (thread_apply_command_completer)
9775 (thread_apply_all_command_completer): New.
9776 (thread_apply_command): Use gdb::option::process_options.
9777 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
9778 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
9779 to generate help text of "thread apply". Adjust "taas"'s help.
9780 * tid-parse.c (tid_range_parser::in_thread_range): New method.
9781 * tid-parse.h (tid_range_parser::in_thread_range): New method.
9782
f7e13587
PA
97832019-06-13 Pedro Alves <palves@redhat.com>
9784
9785 * thread.c (thread_apply_command): Check for invalid TID with
9786 isdigit instead of !isalpha.
9787
5d707134
PA
97882019-06-13 Pedro Alves <palves@redhat.com>
9789
9790 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
9791 (validate_flags_qcs): New.
9792 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
9793 (validate_flags_qcs): Declare.
9794 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
9795 (make_frame_apply_options_def_group): New.
9796 (frame_apply_command_count): Process options with
9797 gdb::option::process_options.
9798 (frame_apply_completer): New.
9799 (frame_apply_level_completer, frame_apply_all_completer)
9800 (frame_apply_completer): New.
9801 (_initialize_stack): Update help of "frame apply", "frame apply
9802 level", "frame apply all" and "faas" to mention supported options
9803 and install command completers.
9804 * stack.h (frame_apply_all_completer): Declare.
9805 * thread.c: Include "stack.h".
9806 (tfaas_command): Add "--".
9807 (_initialize_thread): Update help "tfaas" to mention supported
9808 options and install command completer.
9809
272d4594
PA
98102019-06-13 Pedro Alves <palves@redhat.com>
9811
9812 * completer.c (complete_nested_command_line): New.
9813 (gdb_completion_word_break_characters_throw): Add assertion.
9814 * completer.h (complete_nested_command_line): Declare.
9815
90a1ef87
PA
98162019-06-13 Pedro Alves <palves@redhat.com>
9817
9818 * stack.c (parse_backtrace_qualifiers): New.
9819 (backtrace_command): Use it.
9820 (backtrace_command_completer): Complete on qualifiers.
9821
d4c16835
PA
98222019-06-13 Pedro Alves <palves@redhat.com>
9823
9824 * frame.c: Include "cli/cli-option.h.
9825 (user_set_backtrace_options): New.
9826 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
9827 Delete.
9828 (get_prev_frame): Adjust.
9829 (boolean_option_def, uinteger_option_def)
9830 (set_backtrace_option_defs): New.
9831 (_initialize_frame): Adjust and use
9832 gdb::option::add_setshow_cmds_for_options to install "set
9833 backtrace past-main" and "set backtrace past-entry".
9834 * frame.h: Include "cli/cli-option.h".
9835 (struct frame_print_options): Forward declare.
9836 (print_frame_arguments_all, print_frame_arguments_scalars)
9837 (print_frame_arguments_none): Declare.
9838 (print_entry_values): Delete declaration.
9839 (struct frame_print_options, user_frame_print_options): New.
9840 (struct set_backtrace_options): New.
9841 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
9842 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
9843 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
9844 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
9845 (list_args_or_locals): Add frame_print_options parameter.
9846 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
9847 * python/py-framefilter.c (enumerate_args): Pass down
9848 USER_FRAME_PRINT_OPTIONS.
9849 * stack.c: Include "cli/cli-option.h".
9850 (print_frame_arguments_all, print_frame_arguments_scalars)
9851 (print_frame_arguments_none): Declare.
9852 (print_raw_frame_arguments, print_entry_values): Delete.
9853 (user_frame_print_options): New.
9854 (boolean_option_def, enum_option_def, frame_print_option_defs):
9855 New.
9856 (struct backtrace_cmd_options): New.
9857 (bt_flag_option_def): New.
9858 (backtrace_command_option_defs): New.
9859 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
9860 (print_frame_arg, read_frame_arg, print_frame_args)
9861 (print_frame_info, print_frame): Add frame_print_options parameter
9862 and use it.
9863 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
9864 (backtrace_command_1): Add frame_print_options and
9865 backtrace_cmd_options parameters and use them.
9866 (make_backtrace_options_def_group): New.
9867 (backtrace_command): Process command options with
9868 gdb::option::process_options.
9869 (backtrace_command_completer): New.
9870 (_initialize_stack): Extend "backtrace"'s help to mention
9871 supported options. Install completer for "backtrace".
9872 Install some settings commands with add_setshow_cmds_for_options.
9873
2daf894e
PA
98742019-06-13 Pedro Alves <palves@redhat.com>
9875
9876 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
9877 and that "set/show print raw frame-arguments" are now deprecated.
9878
9879 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
9880 command.
9881 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
9882 * stack.c (_initialize_stack): Install "set/show print
9883 raw-frame-arguments", and deprecate "set/show print raw
9884 frame-arguments".
9885 * valprint.c (_initialize_valprint): Deprecate "set/show print
9886 raw".
9887
e6ed716c
PA
98882019-06-13 Pedro Alves <palves@redhat.com>
9889
9890 * compile/compile.c (struct compile_options): New.
9891 (compile_flag_option_def, compile_command_option_defs)
9892 (make_compile_options_def_group): New.
9893 (compile_file_command): Handle options with
9894 gdb::option::process_options.
9895 (compile_file_command_completer): New function.
9896 (compile_code_command): Handle options with
9897 gdb::option::process_options.
9898 (compile_code_command_completer): New function.
9899 (_initialize_compiler): Install completers for "compile code" and
9900 "compile file". Mention available options in "compile code" and
9901 "compile code"'s help.
9902 * completer.c (advance_to_completion_word): New, factored out from
9903 ...
9904 (advance_to_expression_complete_word_point): ... this.
9905 (advance_to_filename_complete_word_point): New.
9906 * completer.h (advance_to_filename_complete_word_point): New
9907 declaration.
9908
7d8062de
PA
99092019-06-13 Pedro Alves <palves@redhat.com>
9910
9911 * compile/compile.c: Include "cli/cli-option.h".
9912 (compile_print_value): Scope data pointer is now a
9913 value_print_options pointer; adjust.
9914 (compile_print_command): Process options. Scope data pointer is
9915 now a value_print_options pointer; adjust.
9916 (_initialize_compile): Update "compile print"'s help to include
9917 supported options. Install a completer for "compile print".
9918 * cp-valprint.c (show_vtblprint, show_objectprint)
9919 (show_static_field_print): Delete.
9920 (_initialize_cp_valprint): Don't install "set print
9921 static-members", "set print vtbl", "set print object" here.
9922 * printcmd.c: Include "cli/cli-option.h" and
9923 "common/gdb_optional.h".
9924 (print_command_parse_format): Rework to fill in a
9925 value_print_options instead of a format_data.
9926 (print_value): Change parameter type from format_data pointer to
9927 value_print_options reference. Adjust.
9928 (print_command_1): Process options. Adjust to pass down a
9929 value_print_options.
9930 (print_command_completer): New.
9931 (_initialize_printcmd): Install print_command_completer as
9932 handle_brkchars completer for the "print" command. Update
9933 "print"'s help to include supported options.
9934 * valprint.c: Include "cli/cli-option.h".
9935 (show_vtblprint, show_objectprint, show_static_field_print): Moved
9936 here from cp-valprint.c.
9937 (boolean_option_def, uinteger_option_def)
9938 (value_print_option_defs, make_value_print_options_def_group):
9939 New. Use gdb::option::add_setshow_cmds_for_options to install
9940 "set print elements", "set print null-stop", "set print repeats",
9941 "set print pretty", "set print union", "set print array", "set
9942 print address", "set print symbol", "set print array-indexes".
9943 * valprint.h: Include <string> and "cli/cli-option.h".
9944 (make_value_print_options_def_group): Declare.
9945 (print_value): Change parameter type from format_data pointer to
9946 value_print_options reference.
9947 (print_command_completer): Declare.
9948
9d0faba9
PA
99492019-06-13 Pedro Alves <palves@redhat.com>
9950
9951 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
9952 (COMMON_SFILES): Add maint-test-settings.c.
9953 * cli/cli-decode.c (boolean_enums): New global, factored out from
9954 ...
9955 (add_setshow_boolean_cmd): ... here.
9956 * cli/cli-decode.h (boolean_enums): Declare.
9957 * cli/cli-option.c: New file.
9958 * cli/cli-option.h: New file.
9959 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
9960 factored out from ...
9961 (parse_cli_boolean_value(const char *)): ... this.
9962 (is_unlimited_literal): Change parameter type to pointer to
9963 pointer. Adjust and advance ARG pointer.
9964 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
9965 (parse_cli_var_enum): New, factored out from ...
9966 (do_set_command): ... this. Adjust.
9967 * cli/cli-setshow.h (parse_cli_boolean_value)
9968 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
9969 (parse_cli_var_enum): Declare.
9970 * cli/cli-utils.c: Include "cli/cli-option.h".
9971 (get_ulongest): New.
9972 * cli/cli-utils.h (get_ulongest): Declare.
9973 (check_for_argument): New overloads.
9974 * maint-test-options.c: New file.
9975
2c722807
PA
99762019-06-13 Pedro Alves <palves@redhat.com>
9977
9978 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
9979 parse a range if "-" is at the end of the string.
9980
dee7b4c8
PA
99812019-06-13 Pedro Alves <palves@redhat.com>
9982
9983 * cli/cli-setshow.c (parse_auto_binary_operation)
9984 (parse_cli_boolean_value): Don't allow "o".
9985
dca0f6c0
PA
99862019-06-13 Pedro Alves <palves@redhat.com>
9987
9988 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
9989 * NEWS: Mention maint test-settings KIND.
9990 * maint-test-settings.c: New file.
9991
597bf39d
PA
99922019-06-13 Pedro Alves <palves@redhat.com>
9993
9994 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
9995 completer.
9996 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
9997 "set" completers.
9998
48c410fb
PA
99992019-06-13 Pedro Alves <palves@redhat.com>
10000
10001 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
10002 after item.
10003
93bcb043
PA
100042019-06-13 Pedro Alves <palves@redhat.com>
10005
10006 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
10007
cbba3ecd
PA
100082019-06-13 Pedro Alves <palves@redhat.com>
10009
10010 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
10011 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
10012 call.
10013 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
10014 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
10015 calls.
10016 (check_for_argument): Skip spaces after argument.
10017
b9a3f842
PA
100182019-06-13 Pedro Alves <palves@redhat.com>
10019
10020 * thread.c (thread_apply_command): Adjust TID parsing.
10021 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
10022 detected before end of string.
10023 (tid_is_in_list): Error out if LIST is invalid.
10024
3844e605
PA
100252019-06-13 Pedro Alves <palves@redhat.com>
10026
10027 * completer.c (complete_line_internal_1): Rewind completion word
10028 point.
10029 (completion_tracker::advance_custom_word_point_by): Change
10030 parameter type to int.
10031 * completer.h (completion_tracker::advance_custom_word_point_by):
10032 Likewise.
10033
00b56dbe
PA
100342019-06-13 Pedro Alves <palves@redhat.com>
10035
10036 * completer.c (advance_to_completion_word): Handle delimiters.
10037
d106773e
PA
100382019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
10039
10040 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
10041
08f10e02
TT
100422019-06-11 Tom Tromey <tom@tromey.com>
10043
10044 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
10045 (xmalloc_failed): Move to alloc.c.
10046 * alloc.c: New file.
10047 * Makefile.in (COMMON_SFILES): Add alloc.c.
10048
1c7fe951
TT
100492019-06-11 Tom Tromey <tom@tromey.com>
10050
10051 * nat/linux-waitpid.c: Don't include server.h.
10052 (linux_debug): Remove.
10053 (my_waitpid): Update.
10054
89549d7f
TT
100552019-06-11 Tom Tromey <tromey@adacore.com>
10056
10057 * infcall.c (_initialize_infcall): Remove trailing newline from
10058 help.
10059 * user-regs.c (_initialize_user_regs): Remove trailing newline
10060 from help.
10061 * typeprint.c (_initialize_typeprint): Remove trailing newline
10062 from help.
10063 * reverse.c (_initialize_reverse): Remove trailing newlines from
10064 help.
10065 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
10066 from help.
10067 * language.c (add_set_language_command): Remove trailing newline
10068 from help.
10069 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
10070 help.
10071 * disasm.c (_initialize_disasm): Remove trailing newline from
10072 help.
10073 * top.c (init_main): Remove trailing newline from help.
10074 * interps.c (_initialize_interpreter): Remove trailing newline
10075 from help.
10076 * btrace.c (_initialize_btrace): Remove trailing newlines from
10077 help.
10078 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
10079 from help.
10080 * python/python.c (_initialize_python): Remove trailing newline
10081 from help.
10082 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
10083 help.
10084 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
10085 from help. Reformat some text.
10086 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
10087 from help.
10088 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
10089 newline from help.
10090
86108c13
TT
100912019-06-11 Tom Tromey <tromey@adacore.com>
10092
10093 * darwin-nat.c (darwin_decode_exception_message)
10094 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
10095
a7067863
AB
100962019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
10097
10098 * valops.c (value_slice): Check for not allocated or not
10099 associated values.
10100
9ab08412
TV
101012019-06-10 Tom de Vries <tdevries@suse.de>
10102
10103 PR gdb/24618
10104 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
10105 sure an empty slot (defined by a 32-bit zero pair) is recognized as
10106 invalid.
10107
f19e22e9
TV
101082019-06-10 Tom de Vries <tdevries@suse.de>
10109
10110 PR gdb/24611
10111 * linespec.c (linespec_lexer_lex_string): Remove incorrect
10112 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
10113
e99f9db0
TV
101142019-06-10 Tom de Vries <tdevries@suse.de>
10115
10116 PR symtab/24545
10117 * symtab.c (struct demangled_name_entry): Add language field.
10118 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
10119 static minimal symbol". Set and use language field.
10120
9bf7038b
TT
101212019-06-10 Tom Tromey <tromey@adacore.com>
10122
10123 * ada-lang.c (_initialize_ada_language): Update help text.
10124
422186a9
TT
101252019-06-10 Tom Tromey <tromey@adacore.com>
10126
10127 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
10128 with a newline.
10129 * guile/guile.c (handle_boot_error): Don't end warning with a
10130 newline.
10131 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
10132 warning with a newline.
10133 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
10134 newline.
10135 (s12z_frame_cache): Likewise.
10136 * dwarf-index-cache.c (index_cache::store): Don't end warning with
10137 a newline.
10138 * solib-svr4.c (disable_probes_interface): Don't end warning with
10139 a newline.
10140 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
10141 newline.
10142 * python/python.c (do_finish_initialization): Don't end warning
10143 with a newline.
10144
25ce02ee
TT
101452019-06-10 Tom Tromey <tom@tromey.com>
10146
10147 * python/py-breakpoint.c (gdbpy_breakpoint_created)
10148 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
10149 gdbpy_enter.
10150
caa429d8
TT
101512019-06-10 Tom Tromey <tromey@adacore.com>
10152
10153 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
10154 data.
10155 (elf_new_init): Don't call stabsread_new_init.
10156 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
10157 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
10158 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
10159
81873cc8
TV
101602019-06-10 Tom de Vries <tdevries@suse.de>
10161
10162 PR symtab/16264
10163 PR symtab/24517
10164 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
10165
4fa0265e
РИ
101662019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
10167
10168 * source.c (find_and_open_source): Also rewrite relative file
10169 names.
10170
1a3da2cd
AB
101712019-04-26 Amos Bird <amosbird@gmail.com>
10172
10173 * annotate.c (annotate_thread_exited): Add "thread-exited"
10174 annotation.
10175
3847a7bf
TT
101762019-06-06 Tom Tromey <tromey@adacore.com>
10177
10178 * maint.h (class scoped_command_stats): Use
10179 DISABLE_COPY_AND_ASSIGN.
10180 <print_time>: New method.
10181 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
10182 print_time.
10183 (scoped_command_stats::print_time): New method.
10184
312617a3
AB
101852019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
10186
10187 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
10188 instructions of lengths 6 or 8 bytes.
10189
b02f78f9
PA
101902019-06-04 Pedro Alves <palves@redhat.com>
10191
10192 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
10193
10194 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
10195 * breakpoint.c (condition_completer): Likewise.
10196 * cli/cli-dump.c (scan_expression): Likewise.
10197 * common/filestuff.c (mkdir_recursive): Likewise.
10198 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
10199 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
10200 (gdb_abspath): Likewise.
10201 * compile/compile-cplus-types.c
10202 (compile_cplus_instance::decl_name): Likewise.
10203 * completer.c (complete_explicit_location):
10204 (signal_completer, reg_or_group_completer_1): Likewise.
10205 * cp-support.c (cp_remove_params_if_any): Likewise.
10206 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
10207 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
10208 * infcmd.c (strip_bg_char): Likewise.
10209 * linespec.c (copy_token_string): Likewise.
10210 * mi/mi-main.c (output_cores): Likewise.
10211 * psymtab.c (psymtab_search_name):
10212 * symfile.c (test_set_ext_lang_command): Likewise.
10213 * target.c (target_fileio_read_stralloc): Likewise.
10214 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
10215 * value.c (complete_internalvar): Likewise.
10216
e1f2e1a2
CB
102172019-06-04 Christian Biesinger <cbiesinger@google.com>
10218
10219 Add objfile property to gdb.Type.
d3238f7d
PA
10220 * NEWS: Mention Python API addition.
10221 * python/py-type.c (typy_get_objfile): New method.
e1f2e1a2 10222
e664d728
PW
102232019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10224
10225 * NEWS: Mention the new set|show style [title|highlight].
10226 Mention changes to "show style", "help" and "apropos".
10227
66d8c862
PW
102282019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10229
10230 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
10231 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
10232 instead of print_help_for_command.
10233 (print_doc_of_command): New function.
10234 (help_list): Add 'apropos -v word' suggestion.
10235 (print_help_for_command): Style the command name using title style.
10236 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
10237 (_initialize_cli_cmds): Describe -v in apropos_command help.
10238
9303eb2f
PW
102392019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10240
10241 * cli/cli-style.h (cli_style_option): Add name in constructor,
10242 add m_name class member, add constructor with intensity,
10243 add name class function.
10244 (cli_style_option::add_setshow_commands): Remove name argument.
10245 (highlight_style, title_style): New styles.
10246 * cli/cli-style.c (do_show): New function that shows a style
10247 characteristic styling the style name with itself.
10248 (set_style_name): New function.
10249 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
10250 Update all callers according to the changes in cli/cli-style.h.
10251 * utils.h (fputs_highlighted): New function.
10252 * utils.c (fputs_highlighted): Likewise.
10253
e2c52041
PW
102542019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10255
10256 * NEWS: Mention new pipe command and new convenience variables.
10257
947d3946
PW
102582019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10259
10260 * cli/cli-cmds.c (pipe_command): New function.
10261 (_initialize_cli_cmds): Call add_com for pipe_command.
10262 Define | as an alias for pipe.
10263 (exit_status_set_internal_vars): New function.
10264 (shell_escape): Call exit_status_set_internal_vars.
10265 cli/cli-decode.c (find_command_name_length): Recognize | as
10266 a single character command.
10267
b8fd0918
PW
102682019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10269
10270 * gdbcmd.h (execute_command_to_ui_file): New declaration.
10271 top.c (execute_command_to_ui_file): New function, mostly a copy
10272 of execute_command_to_string.
10273 (execute_command_to_string): Implement by calling
10274 execute_command_to_ui_file.
10275
68bb5386
PW
102762019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10277
10278 * top.h (saved_command_line): Remove declaration.
10279 * top.c (previous_saved_command_line, previous_repeat_arguments):
10280 New variables.
10281 (saved_command_line): Make static, define together with other
10282 'repeat variables'.
10283 (dont_repeat): Clear repeat_arguments.
10284 (repeat_previous, get_saved_command_line, save_command_line):
10285 New functions.
10286 (gdb_init): Initialize saved_command_line
10287 and previous_saved_command_line.
10288 * main.c (captured_main_1): Remove saved_command_line initialization.
10289 * event-top.c (handle_line_of_input): Update to use
10290 the new 'repeat' related functions instead of direct access to
10291 saved_command_line.
10292 * command.h (repeat_previous, get_saved_command_line,
10293 save_command_line): New declarations.
10294 (dont_repeat): Add comment.
10295
bfcdb852
TT
102962019-05-30 Tom Tromey <tromey@adacore.com>
10297
10298 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
10299 Fix comment.
10300 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
10301
0ef209f2
JV
103022019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
10303
10304 PR cli/24587
10305 * completer.c (complete): Initialize variable word.
10306
955b06fa
SDJ
103072019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
10308
10309 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
10310 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
10311 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
10312 'body' is NULL to the outter 'if', protecting the '!is_define'
10313 situation as well.
10314
fa9c3fa0
TT
103152019-05-29 Tom Tromey <tromey@adacore.com>
10316
10317 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
10318 (dwarf_unknown): New function.
10319 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
10320 (dwarf_type_encoding_name): Use dwarf_unknown.
10321
4330d61d
TT
103222019-05-29 Tom Tromey <tromey@adacore.com>
10323
10324 PR c++/20020:
10325 * cp-valprint.c (cp_print_value_fields): Call
10326 cp_print_static_field inside "try".
10327
33a6bc35
TT
103282019-05-29 Tom Tromey <tromey@adacore.com>
10329
10330 * inflow.c (struct terminal_info): Add default operator=.
10331 * configure: Rebuild.
10332 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
10333 -Wdeprecated-copy-dtor, -Wredundant-move.
10334
000439d5
TT
103352019-05-29 Tom Tromey <tromey@adacore.com>
10336
10337 * NEWS: Add entry.
10338 * infcmd.c (print_return_value_1): Handle finish_print
10339 option.
10340 (show_print_finish): New function.
10341 (_initialize_infcmd): Add "set/show print finish" commands.
10342 * valprint.c (user_print_options): Initialize new member.
10343 * valprint.h (struct value_print_options) <finish_print>: New
10344 member.
10345
c0e70c62
TT
103462019-05-28 Tom Tromey <tromey@adacore.com>
10347
10348 * ada-lang.c (ada_remove_Xbn_suffix)
10349 (find_old_style_renaming_symbol)
10350 (parse_old_style_renaming): Remove.
10351 (ada_find_renaming_symbol): Don't call
10352 find_old_style_renaming_symbol.
10353 (ada_is_renaming_symbol): Rename from
10354 ada_find_renaming_symbol. Remove "block" parameter. Return
10355 bool. Now static.
10356 (ada_read_var_value): Update and simplify.
10357 * ada-exp.y (write_var_or_type): Remove old code.
10358
766f8836
AH
103592019-05-28 Alan Hayward <alan.hayward@arm.com>
10360
68255adc 10361 PR gdb/25010
766f8836
AH
10362 * event-top.c: Remove include comment.
10363 * inflow.c (class scoped_ignore_sigttou): Move from here...
10364 * inflow.h (class scoped_ignore_sigttou): ...to here.
10365 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
10366 * top.c: Remove include comment.
10367
eb41253a
TT
103682019-05-27 Tom Tromey <tom@tromey.com>
10369
10370 * NEWS: Fix typo.
10371
4ca51187
TT
103722019-05-22 Tom Tromey <tromey@adacore.com>
10373
10374 * target.c (target_follow_exec): Constify parameter.
10375 * target-delegates.c: Rebuild.
10376 * remote.c (remote_target::follow_exec): Constify parameter.
10377 * infrun.c (follow_exec): Constify parameter.
10378 * target.h (struct target_ops) <follow_exec>: Constify parameter.
10379 (target_follow_exec): Likewise.
10380
8fca4da0
AH
103812019-05-22 Alan Hayward <alan.hayward@arm.com>
10382
10383 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
10384 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
10385
b7060614
AH
103862019-05-22 Alan Hayward <alan.hayward@arm.com>
10387
10388 * NEWS: Add debugredirect and testsuite sections.
10389
0a5954bd
SC
103902019-05-22 Simon Cook <simon.cook@embecosm.com>
10391
10392 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
10393 target descriptions using exclusively floating point register name
10394 aliases.
10395
dc42e902
AB
103962019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
10397
10398 PR gdb/18644:
10399 * f-lang.c (build_fortran_types): Handle the case where
10400 gdbarch_floatformat_for_type returns a nullptr.
10401
fb7806c7
TV
104022019-05-21 Tom de Vries <tdevries@suse.de>
10403
10404 PR cli/24587
10405 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
10406
34d11c68
AB
104072019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
10408
10409 PR gdb/18644:
10410 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
10411 16-byte floats.
10412 * i386-tdep.c (i386_floatformat_for_type): Use
10413 floatformats_ia64_quad for the 16-byte floating point component
10414 within a fortran 32-byte complex number.
10415
122cf0f2
AB
104162019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
10417
10418 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
10419 delete default constructor.
10420 (find_partial_die): Update to return const struct.
10421 (partial_die_parent_scope): Move variable declaration into scope
10422 of its use and change its type to auto.
10423 (guess_partial_die_structure_name): Likewise.
10424 (partial_die_info::fixup): Likewise.
10425
33d0e35a
TT
104262019-05-17 Tom Tromey <tromey@adacore.com>
10427
10428 * source.c (find_and_open_source): Remove cast.
10429
a45575b0
TT
104302019-05-17 Tom Tromey <tromey@adacore.com>
10431
10432 * annotate.c (annotate_source): Make "filename" const.
10433 * annotate.h (annotate_source): Use const.
10434
81f47ac2
AH
104352019-05-17 Alan Hayward <alan.hayward@arm.com>
10436
10437 * disasm.c (set_disassembler_options): Send errors to stderr.
10438
ca1285d1
AH
104392019-05-17 Alan Hayward <alan.hayward@arm.com>
10440
10441 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
10442 (cli_interp_base::set_logging): Check debug_redirect.
10443 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
10444 * cli/cli-logging.c (debug_redirect): Add static variable.
10445 (pop_output_files): Add default param.
10446 (handle_redirections): Print debug setting.
10447 (show_logging_command): Likewise.
10448 (_initialize_cli_logging): Add debugredirect command.
10449 * interps.c (current_interp_set_logging): Add debug_redirect
10450 parameter.
10451 * interps.h (set_logging): Add debug_redirect parameter.
10452 (current_interp_set_logging): Likewise.
10453 * mi/mi-common.h: Likewise.
10454 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
10455
104562019-05-17 Alan Hayward <alan.hayward@arm.com>
f3a09c80
AH
10457 Tom Tromey <tromey@adacore.com>
10458
10459 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
10460 directly.
10461 * cli/cli-interp.h (make_logging_output): Remove declaration.
10462 * cli/cli-logging.c (make_logging_output): Remove function.
10463 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
10464 directly.
10465 * ui-file.c (tee_file::tee_file): Remove bools.
10466 (tee_file::~tee_file): Remove deletes.
10467 * ui-file.h (tee_file): Remove bools.
10468
26648588
JV
104692019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
10470
10471 * mi/mi-cmds.h (mi_cmd_complete): New function.
10472 * mi/mi-main.c (mi_cmd_complete): Likewise.
10473 * mi/mi-cmds.c: Define new MI command -complete.
10474 * NEWS: Mention new -complete command.
10475
6e035501
JV
104762019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
10477
10478 * completer.h (complete): New function.
10479 * completer.c (complete): Likewise.
10480 * cli/cli-cmds.c: (complete_command): Update to use new complete()
10481 function defined in completer.h.
10482
7d0e2ece
JV
104832019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
10484
e79be6e5 10485 * MAINTAINERS (Write After Approval): Add myself.
7d0e2ece 10486
fb816e8b
TV
104872019-05-17 Tom de Vries <tdevries@suse.de>
10488
10489 PR gdb/24094
10490 * dwarf2read.c (struct cu_partial_die_info): New struct.
10491 (find_partial_die): Return cu_partial_die_info.
10492 (partial_die_parent_scope, guess_partial_die_structure_name)
10493 (partial_die_info::fixup): Handle new return type of find_partial_die.
10494
677052f2
SDJ
104952019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
10496
a1726c38 10497 PR breakpoints/24541
677052f2
SDJ
10498 * stap-probe.c (stap_parse_register_operand): Make "regname" an
10499 "std::string", simplifying the algorithm.
10500
f3da9116
SDJ
105012019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
10502
10503 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
10504 (stap_static_probe_ops::get_probes): Likewise.
10505
f1bb75ab
SDJ
105062019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
10507
10508 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
10509 '-')" and "else if".
10510 (stap_parse_single_operand): Join checks for
10511 "gdbarch_stap_parse_special_token_p" and
10512 "gdbarch_stap_parse_special_token" in the same "if" statement.
10513 Invert check when verifying for operation on register
10514 displacement.
10515
3ca58cde
SDJ
105162019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
10517
10518 * stap-probe.c (stap_get_opcode): Update comment.
10519 (stap_get_expected_argument_type): Likewise.
10520 (handle_stap_probe): Likewise.
10521
af2d9bee
SDJ
105222019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
10523
10524 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
10525 return type to 'bool'. Adjust comment. Use 'bool' when
10526 appropriate.
10527 (i386_stap_parse_special_token_three_arg_disp): Likewise.
10528 * stap-probe.c (stap_parse_argument_1): Likewise.
10529 (stap_is_operator): Likewise.
10530 (stap_is_generic_prefix): Likewise.
10531 (stap_is_register_prefix): Likewise.
10532 (stap_is_register_indirection_prefix): Likewise.
10533 (stap_is_integer_prefix): Likewise.
10534 (stap_generic_check_suffix): Likewise.
10535 (stap_check_integer_suffix): Likewise.
10536 (stap_check_register_suffix): Likewise.
10537 (stap_check_register_indirection_suffix): Likewise.
10538 (stap_parse_register_operand): Likewise.
10539 (stap_parse_single_operand): Likewise.
10540 (stap_parse_argument_1): Likewise.
10541 (stap_probe::get_argument_count): Likewise.
10542 (stap_is_operator): Likewise.
10543
61c9c421
TT
105442019-05-16 Tom Tromey <tromey@adacore.com>
10545
10546 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
10547 keyword to foreach.
10548
9ddc1af1
SM
105492019-05-15 Simon Marchi <simon.marchi@efficios.com>
10550
10551 * linux-thread-db.c (try_thread_db_load_1): Change return type
10552 to bool.
10553 (try_thread_db_load): Likewise.
10554 (try_thread_db_load_from_pdir_1): Likewise.
10555 (try_thread_db_load_from_pdir): Likewise.
10556 (try_thread_db_load_from_sdir): Likewise.
10557 (try_thread_db_load_from_dir): Likewise.
10558 (thread_db_load_search): Likewise.
10559 (has_libpthread): Likewise.
10560 (thread_db_load): Likewise.
10561
7bede828
SDJ
105622019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
10563
10564 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
10565 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
10566 NULL, and complain/return if that's the case.
10567
c5358db4
JD
105682019-05-15 John Darrington <john@darrington.wattle.id.au>
10569
10570 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
10571 (advance, posn, abstract_read_memory): New functions.
10572 [struct mem_read_abstraction]: New struct.
10573 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
10574
c408a94f
TT
105752019-05-14 Tom Tromey <tromey@adacore.com>
10576
10577 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
10578 value is not lval_memory.
10579
e7bd7fba
TT
105802019-05-14 Tom Tromey <tromey@adacore.com>
10581
10582 * solib.c (info_sharedlibrary_command): Style the file name.
10583
a6d0f249
AH
105842019-05-14 Alan Hayward <alan.hayward@arm.com>
10585
10586 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
10587 (aarch64_vnv_type): Likewise.
10588 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
10589 * common/tdesc.c: Likewise.
10590 * common/tdesc.h (enum tdesc_type_kind): Likewise.
10591 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
10592 * features/aarch64-fpu.xml: Add ieee half view.
10593 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
10594 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
10595 * gdbtypes.h (struct builtin_type): Likewise.
10596 (struct objfile_type): Likewise.
10597
66b8bb74
SM
105982019-05-12 Paul Naert <paul.naert@polymtl.ca>
10599
10600 * language.c (language_sniff_from_mangled_name): Fix "langauge"
10601 typo.
10602 * location.h (string_to_event_location): Likewise.
10603
21c219fd
JB
106042019-05-11 Joel Brobecker <brobecker@adacore.com>
10605
10606 GDB 8.3 released.
10607
13674803
SM
106082019-05-10 Simon Marchi <simon.marchi@efficios.com>
10609
10610 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
10611 New variable declaration.
10612 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
10613 New variable.
10614 (print_one_breakpoint): Use ui_out::test_flags and new global
10615 variable to compute use_fixed_output.
10616 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
10617 Remove.
10618 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
10619 (mi_multi_location_breakpoint_output_fixed): Remove.
10620 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
10621 new variable.
10622 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
10623 fix_multi_location_breakpoint_output flag if version >= 3.
10624 * ui-out.h (enum ui_out_flag)
10625 <fix_multi_location_breakpoint_output>: New enumerator.
10626
a9eac7f9
SM
106272019-05-10 Simon Marchi <simon.marchi@efficios.com>
10628
10629 * contrib/cc-with-tweaks.sh: Validate dwz's work.
10630
71bed2db
TT
106312019-05-10 Tom Tromey <tromey@adacore.com>
10632
10633 * ada-lang.c (catch_ada_completer): New function.
10634 (_initialize_ada_language): Use it.
10635
24c54127
TT
106362019-05-10 Tom Tromey <tromey@adacore.com>
10637
10638 * thread.c (print_thread_info): Make "requested_threads" const.
10639 * gdbthread.h (print_thread_info): Make "requested_threads"
10640 const.
10641 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
10642 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
10643
7a102139
TT
106442019-05-08 Tom Tromey <tom@tromey.com>
10645
10646 * gdbtypes.c (objfile_type_data): Change type.
10647 (objfile_type, _initialize_gdbtypes): Update.
10648
924d79e2
TT
106492019-05-08 Tom Tromey <tom@tromey.com>
10650
10651 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
10652 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
10653 (_initialize_dwarf2_frame): Update.
10654
4c58e337
TT
106552019-05-08 Tom Tromey <tom@tromey.com>
10656
10657 * objc-lang.c (objc_objfile_data): Change type.
10658 (find_methods): Update.
10659 (_initialize_objc_lang): Remove.
10660
d772d2ab
TT
106612019-05-08 Tom Tromey <tom@tromey.com>
10662
10663 * stabsread.c (rs6000_builtin_type_data): Change type.
10664 (rs6000_builtin_type, _initialize_stabsread): Update.
10665
d11d83f4
TT
106662019-05-08 Tom Tromey <tom@tromey.com>
10667
10668 * mips-tdep.c (mips_pdr_data): Remove.
10669 (_initialize_mips_tdep): Update.
10670
9a73f0ad
TT
106712019-05-08 Tom Tromey <tom@tromey.com>
10672
10673 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
10674 (hppa_init_objfile_priv_data, read_unwind_info)
10675 (find_unwind_entry, _initialize_hppa_tdep): Update.
10676
8127a2fa
TT
106772019-05-08 Tom Tromey <tom@tromey.com>
10678
10679 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
10680 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
10681 on obstack.
10682 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
10683
91d3055d
TT
106842019-05-08 Tom Tromey <tom@tromey.com>
10685
10686 * mdebugread.c (basic_type_data): Change type.
10687 (basic_type, _initialize_mdebugread): Update.
10688
31930bd3
TT
106892019-05-08 Tom Tromey <tom@tromey.com>
10690
10691 * common/gdb_unique_ptr.h (struct noop_deleter): New.
10692
bdb3ed9e
TT
106932019-05-08 Tom Tromey <tom@tromey.com>
10694
10695 * nto-tdep.c (nto_inferior_data_reg): Change type.
10696 (nto_inferior_data): Update.
10697 (nto_inferior_data_cleanup, nto_new_inferior_data)
10698 (_initialize_nto_tdep): Remove.
10699 * nto-tdep.h (struct nto_inferior_data): Add initializers.
10700
f37b313d
TT
107012019-05-08 Tom Tromey <tom@tromey.com>
10702
10703 * ada-lang.c (struct ada_inferior_data): Add initializers.
10704 (ada_inferior_data): Change type.
10705 (ada_inferior_data_cleanup): Remove.
10706 (get_ada_inferior_data, ada_inferior_exit)
10707 (struct ada_pspace_data): Add initializers, destructor.
10708 (ada_pspace_data_handle): Change type.
10709 (get_ada_pspace_data): Update.
10710 (ada_pspace_data_cleanup): Remove.
10711
24699405
TT
107122019-05-08 Tom Tromey <tom@tromey.com>
10713
10714 * coffread.c (struct coff_symfile_info): Add initializers.
10715 (coff_objfile_data_key): Move lower. Change type.
10716 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
10717 Update.
10718 (coff_free_info): Remove.
10719
d4e05d2f
TT
107202019-05-08 Tom Tromey <tom@tromey.com>
10721
10722 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
10723 (fbsd_pspace_data_handle): Move lower. Change type.
10724 (get_fbsd_pspace_data): Update.
10725 (fbsd_pspace_data_cleanup): Remove.
10726 (_initialize_fbsd_tdep): Update.
10727
14ef6690
TT
107282019-05-08 Tom Tromey <tom@tromey.com>
10729
10730 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
10731 (get_ada_tasks_pspace_data): Update.
10732 (ada_tasks_pspace_data_cleanup): Remove.
10733 (_initialize_tasks): Update.
10734 (ada_tasks_inferior_data_handle): Change type.
10735 (get_ada_tasks_inferior_data): Update.
10736 (ada_tasks_inferior_data_cleanup): Remove.
10737 (struct ada_tasks_pspace_data): Add initializers.
10738
814cf43a
TT
107392019-05-08 Tom Tromey <tom@tromey.com>
10740
10741 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
10742 * symfile-debug.c (debug_sym_get_probes): Change type.
10743 * stap-probe.c (handle_stap_probe):
10744 (stap_static_probe_ops::get_probes): Change type.
10745 * probe.h (class static_probe_ops) <get_probes>: Change type.
10746 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
10747 (parse_probes_in_pspace): Update.
10748 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
10749 Update.
10750 (any_static_probe_ops::get_probes): Change type.
10751 * elfread.c (elfread_data): New typedef.
10752 (probe_key): Change type.
10753 (elf_get_probes): Likewise. Update.
10754 (probe_key_free): Remove.
10755 (_initialize_elfread): Update.
10756 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
10757 Change type.
10758 (dtrace_process_dof_probe, dtrace_process_dof)
10759 (dtrace_static_probe_ops::get_probe): Change type.
10760
02dc647e
TT
107612019-05-08 Tom Tromey <tom@tromey.com>
10762
10763 * xcoffread.c (struct xcoff_symfile_info): Rename from
10764 coff_symfile_info. Add initializers.
10765 (xcoff_objfile_data_key): Move lower. Change type.
10766 (XCOFF_DATA): Rewrite.
10767 (xcoff_free_info): Remove.
10768 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
10769 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
10770 (xcoff_initial_scan): Update.
10771
09232438
TT
107722019-05-08 Tom Tromey <tom@tromey.com>
10773
10774 * solib-svr4.c (struct svr4_info): Add initializers and
10775 destructor.
10776 <probes_table>: Now an htab_up.
10777 (solib_svr4_pspace_data): Change type.
10778 (free_probes_table): Simplify.
10779 (~svr4_info): Rename from svr4_pspace_data_cleanup.
10780 (get_svr4_info, probes_table_htab_remove_objfile_probes)
10781 (probes_table_remove_objfile_probes, register_solib_event_probe)
10782 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
10783 (_initialize_svr4_solib): Update.
10784
7b4a314f
TT
107852019-05-08 Tom Tromey <tom@tromey.com>
10786
10787 * remote.c (remote_pspace_data): Change type.
10788 (remote_pspace_data_cleanup): Remove.
10789 (get_remote_exec_file, set_pspace_remote_exec_file)
10790 (_initialize_remote): Update.
10791
51d3063a
TT
107922019-05-08 Tom Tromey <tom@tromey.com>
10793
10794 * breakpoint.c (breakpoint_objfile_key): Change type.
10795 (get_breakpoint_objfile_data): Update.
10796 (free_breakpoint_objfile_data): Remove.
10797 (_initialize_breakpoint): Update.
10798
89fb8848
TT
107992019-05-08 Tom Tromey <tom@tromey.com>
10800
10801 * linux-tdep.c (struct linux_info): Add initializers.
10802 (linux_inferior_data): Move. Change type.
10803 (invalidate_linux_cache_inf): Update.
10804 (linux_inferior_data_cleanup): Remove.
10805 (get_linux_inferior_data, _initialize_linux_tdep): Update.
10806
e9b89e2d
TT
108072019-05-08 Tom Tromey <tom@tromey.com>
10808
10809 * auxv.c (auxv_inferior_data): Move. Change type.
10810 (auxv_inferior_data_cleanup): Remove.
10811 (invalidate_auxv_cache_inf): Rewrite.
10812 (get_auxv_inferior_data, _initialize_auxv): Update.
10813
8c42777c
TT
108142019-05-08 Tom Tromey <tom@tromey.com>
10815
10816 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
10817 (symfile_debug_objfile_data_key): Change type.
10818 (symfile_debug_installed, debug_qf_has_symbols)
10819 (debug_qf_find_last_source_symtab)
10820 (debug_qf_forget_cached_source_info)
10821 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
10822 (debug_qf_print_stats, debug_qf_dump)
10823 (debug_qf_expand_symtabs_for_function)
10824 (debug_qf_expand_all_symtabs)
10825 (debug_qf_expand_symtabs_with_fullname)
10826 (debug_qf_map_matching_symbols)
10827 (debug_qf_expand_symtabs_matching)
10828 (debug_qf_find_pc_sect_compunit_symtab)
10829 (debug_qf_map_symbol_filenames)
10830 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
10831 (debug_sym_new_init, debug_sym_init, debug_sym_read)
10832 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
10833 (debug_sym_read_linetable, debug_sym_relocate): Update.
10834 (symfile_debug_free_objfile): Remove.
10835 (install_symfile_debug_logging, _initialize_symfile_debug):
10836 Update.
10837
5bfd760d
TT
108382019-05-08 Tom Tromey <tom@tromey.com>
10839
10840 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
10841 allocate_on_obstack.
10842 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
10843 (get_dwarf2_per_objfile): Update.
10844 (set_dwarf2_per_objfile): Remove.
10845 (dwarf2_has_info, dwarf2_get_section_info): Update.
10846 (dwarf2_free_objfile): Remove.
10847 (_initialize_dwarf2_read): Update.
10848
e85e19b4
TT
108492019-05-08 Tom Tromey <tom@tromey.com>
10850
10851 * auto-load.c (struct auto_load_pspace_info): Add destructor and
10852 initializers.
10853 <unsupported_script_warning_printed,
10854 script_not_found_warning_printed>: Now bool.
10855 (auto_load_pspace_data): Change type.
10856 (~auto_load_pspace_info): Rename from
10857 auto_load_pspace_data_cleanup.
10858 (get_auto_load_pspace_data, init_loaded_scripts_info)
10859 (clear_section_scripts, maybe_print_unsupported_script_warning)
10860 (maybe_print_script_not_found_warning, _initialize_auto_load):
10861 Update.
10862
f6aa7436
TT
108632019-05-08 Tom Tromey <tom@tromey.com>
10864
10865 * objfiles.c (objfile_pspace_info): Add destructor and
10866 initializers.
10867 (objfiles_pspace_data): Change type.
10868 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
10869 (get_objfile_pspace_data): Update.
10870 (objfiles_bfd_data): Change type.
10871 (get_objfile_bfd_data): Update.
10872 (objfile_bfd_data_free, _initialize_objfiles): Remove.
10873
6ae614f6
TT
108742019-05-08 Tom Tromey <tom@tromey.com>
10875
10876 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
10877 Change type.
10878 (get_catch_syscall_inferior_data): Update.
10879 (catch_syscall_inferior_data_cleanup): Remove.
10880 (_initialize_break_catch_syscall): Update.
10881
6509b8eb
TT
108822019-05-08 Tom Tromey <tom@tromey.com>
10883
10884 * inflow.c (struct terminal_info): Add destructor and
10885 initializers.
10886 (inflow_inferior_data): Change type.
10887 (~terminal_info): Rename from inflow_inferior_data_cleanup.
10888 (get_inflow_inferior_data, inflow_inferior_exit)
10889 (swap_terminal_info, _initialize_inflow): Update.
10890
35632941
TT
108912019-05-08 Tom Tromey <tom@tromey.com>
10892
10893 * target-dcache.c (target_dcache_cleanup): Remove.
10894 (target_dcache_aspace_key): Change type.
10895 (target_dcache_init_p, target_dcache_invalidate)
10896 (target_dcache_get, target_dcache_get_or_init)
10897 (_initialize_target_dcache): Update.
10898 * dcache.h (struct dcache_deleter): New.
10899
3017b94d
TT
109002019-05-08 Tom Tromey <tom@tromey.com>
10901
10902 * symtab.c (struct symbol_cache): Add destructor and
10903 initializers.
10904 (symbol_cache_key): Move. Change type.
10905 (make_symbol_cache, free_symbol_cache): Remove.
10906 (get_symbol_cache): Update.
10907 (symbol_cache_cleanup): Remove.
10908 (ALL_PSPACES, symbol_cache_flush)
10909 (maintenance_print_symbol_cache)
10910 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
10911 Update.
10912
a32ad8c5
TT
109132019-05-08 Tom Tromey <tom@tromey.com>
10914
10915 * symtab.c (struct main_info): Add destructor and initializers.
10916 (main_progspace_key): Move. Change type.
10917 (get_main_info): Update.
10918 (main_info_cleanup): Remove.
10919 (_initialize_symtab): Update.
10920
5f6e90a0
TT
109212019-05-08 Tom Tromey <tom@tromey.com>
10922
10923 * registry.h (DECLARE_REGISTRY): Define the _key class.
10924
1bd0c6e4
AB
109252019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
10926
10927 * NEWS: Merge two 'New commands' sections.
10928
2228ef77
XR
109292019-05-08 Joel Brobecker <brobecker@adacore.com>
10930
10931 * ada-valprint.c (ada_val_print_gnat_array): Remove language
10932 parameter and use Ada language definition instead.
10933 (ada_val_print_ptr): Remove unused language parameter.
10934 (ada_val_print_num): Remove language parameter and use Ada language
10935 definition instead.
10936 (ada_val_print_enum, ada_val_print_flt): Remove unused language
10937 parameter.
10938 (ada_val_print_struct_union, ada_val_print_ref): Remove language
10939 parameter and use Ada language definition instead.
10940 (ada_val_print_1): Update all ada_val_print_xxx calls.
10941 Remove language parameter.
10942 (ada_val_print): Update ada_val_print_1 call.
10943
60fcc1c3
TT
109442019-05-08 Tom Tromey <tromey@adacore.com>
10945
10946 * remote.c (remote_hw_watchpoint_limit)
10947 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
10948 Now static.
10949
ed2b7c17
TT
109502019-05-08 Tom Tromey <tromey@adacore.com>
10951
10952 * maint.c (_initialize_maint_cmds): Move initialization code to
10953 remote.c.
10954 (watchdog, show_watchdog): Move to remote.c.
10955 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
10956 "watchdog" static.
10957 (_initialize_remote): Move initialization code from maint.c.
10958 * defs.h (watchdog): Don't declare.
10959
b0be6c91
TT
109602019-05-08 Tom Tromey <tromey@adacore.com>
10961
10962 * tui/tui-interp.c: Include main.h.
10963 * interps.c: Include main.h.
10964 * main.h (interpreter_p): Declare.
10965 * defs.h (interpreter_p): Don't declare.
10966
587ee17b
TT
109672019-05-08 Tom Tromey <tromey@adacore.com>
10968
10969 * dwarf2loc.c: Include dwarf2read.h.
10970 * defs.h (read_unsigned_leb128): Don't declare.
10971 * dwarf2read.h (read_unsigned_leb128): Declare.
10972
ca1df239
TT
109732019-05-08 Tom Tromey <tromey@adacore.com>
10974
10975 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
10976 method.
10977
99f20f08
TT
109782019-05-08 Tom Tromey <tromey@adacore.com>
10979
10980 * utils.c (fputs_maybe_filtered): Reset style after paging, even
10981 when no wrap column is set.
10982
80e55b13
TT
109832019-05-08 Tom Tromey <tromey@adacore.com>
10984
10985 * c-lang.c (c_get_string): Handle non-C-style arrays.
10986
9d3421af
TT
109872019-05-08 Tom Tromey <tromey@adacore.com>
10988
10989 * typeprint.c (print_offset_data::update): Print the bit offset,
10990 not the number of bits remaining.
10991
844333e2
TT
109922019-05-08 Tom Tromey <tromey@adacore.com>
10993
10994 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
10995 padding at end of comment.
10996
988915ee
TT
109972019-05-08 Tom Tromey <tromey@adacore.com>
10998
10999 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
11000 Compare main types.
11001
26bfd823
TT
110022019-05-06 Tom Tromey <tom@tromey.com>
11003
11004 * common/scoped_mmap.c: Include common-defs.h.
11005 * common/scoped_mmap.h: Don't include config.h.
11006
89055eaa
TT
110072019-05-04 Tom Tromey <tom@tromey.com>
11008
11009 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
11010 (struct aarch64_call_info): Add initializers.
11011 <si>: Now a std::vector.
11012 (pass_on_stack, aarch64_push_dummy_call): Update.
11013
5da01df5
TT
110142019-05-04 Simon Marchi <simon.marchi@efficios.com>
11015 Tom Tromey <tom@tromey.com>
11016
11017 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
11018 (ppc_threads): Now a std::vector. Now static.
11019 (hwdebug_find_thread_points_by_tid)
11020 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
11021 Update.
11022
fbdf05a1
TT
110232019-05-04 Tom Tromey <tom@tromey.com>
11024
11025 * arc-tdep.c (arc_tdesc_init): Return bool.
11026
06d16ec9
TT
110272019-05-04 Tom Tromey <tom@tromey.com>
11028
11029 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
11030 Use gdb_assert_not_reached.
11031
9c056022
TT
110322019-05-04 Tom Tromey <tom@tromey.com>
11033
11034 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
11035 "false".
11036
fa9c2a59
TT
110372019-05-04 Tom Tromey <tom@tromey.com>
11038
11039 * arc-tdep.c (arc_tdesc_init): Use bool.
11040
e2eb806a
TT
110412019-05-04 Tom Tromey <tom@tromey.com>
11042
11043 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
11044
6fe87677
TT
110452019-05-04 Tom Tromey <tom@tromey.com>
11046
11047 * cli/cli-cmds.c (valid_command_p): Return bool.
11048
7f008c9e
TT
110492019-05-04 Tom Tromey <tom@tromey.com>
11050
11051 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
11052 * command.h (valid_user_defined_cmd_name_p): Channge return type.
11053
b6484282
RT
110542019-05-04 Raul Tambre <raul@tambre.ee>
11055
11056 * python/lib/gdb/prompt.py (_ExtendedPrompt)
11057 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
11058 operator for comparison.
11059
af97b416
TT
110602019-05-04 Tom Tromey <tom@tromey.com>
11061
11062 * psymtab.c (psymbol_name_matches, match_partial_symbol)
11063 (lookup_partial_symbol, print_partial_symbols)
11064 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
11065 (psymbol_compare): Update.
11066 (add_psymbol_to_bcache): Clear the entire psymbol.
11067 (maintenance_check_psymtabs): Update.
11068 * psympriv.h (struct partial_symbol): Don't derive from
11069 general_symbol_info.
11070 <obj_section, unrelocated_address, address,
11071 set_unrelocated_address>: Update.
11072 <ginfo>: New member.
11073 * dwarf-index-write.c (write_psymbols, debug_names::insert)
11074 (debug_names::write_psymbols): Update.
11075
9d6d4be8
TV
110762019-05-04 Tom de Vries <tdevries@suse.de>
11077
11078 * contrib/cc-with-tweaks.sh: Support -n arg.
11079
66452beb
PW
110802019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11081
11082 * corelow.c (core_target::detach): Ensure frame cache and
11083 register caches are cleared.
11084 inferior.c (exit_inferior_1): Likewise.
11085
bde09ab7
TT
110862019-05-03 Sandra Loosemore <sandra@codesourcery.com>
11087 Tom Tromey <tom@tromey.com>
11088
11089 * dictionary.c (collate_pending_symbols_by_language): Remove
11090 "struct" from foreach.
11091 * symtab.c (lookup_global_symbol_from_objfile)
11092 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
11093 foreach.
11094 * ser-tcp.c (net_open): Remove "struct" from foreach.
11095 * objfiles.c (objfile_relocate, objfile_rebase)
11096 (objfile_has_symbols): Remove "struct" from foreach.
11097 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
11098 from foreach.
11099 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
11100 foreach.
11101 * darwin-nat.c (thread_info_from_private_thread_info): Remove
11102 "struct" from foreach.
11103 * ada-lang.c (create_excep_cond_exprs)
11104 (ada_exception_catchpoint_cond_string): Remove "struct" from
11105 foreach.
11106
222a8d25
TT
111072019-05-03 Tom Tromey <tromey@adacore.com>
11108
11109 * ada-exp.y (convert_char_literal): Check suffix of each
11110 enumerator.
11111
fcd60b84
DP
111122019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
11113
11114 PR ada/21406:
11115 * ada-exp.y (yywrap): Don't define.
11116 * ada-lex.l (%option): Add noyywrap
11117 (yywrap): Remove.
11118
5f2459c2
EZ
111192019-05-03 Eli Zaretskii <eliz@gnu.org>
11120
353ea2d1
EZ
11121 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
11122 _WIN32_WINNT to the XP level, unless already defined to a higher
11123 level.
11124
11125 * unittests/parse-connection-spec-selftests.c:
11126 * ser-tcp.c:
11127 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
11128 override.
11129
5f2459c2
EZ
11130 * symfile.c (find_separate_debug_file): Remove colon from the
11131 drive spec of DOS/Windows file names of the target, so that the
11132 file name produced from DEBUGDIR and the target's directory will
11133 be valid on DOS/Windows systems.
11134
80062eb9
AB
111352019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
11136
11137 * rust-lang.c (val_print_struct): Handle printing structures
11138 containing strings.
11139
b8c05e85
TT
111402019-05-02 Tom Tromey <tromey@adacore.com>
11141
11142 * valarith.c (_initialize_valarith): Remove.
11143
4504bbde
TT
111442019-05-01 Tom Tromey <tromey@adacore.com>
11145
11146 * ada-lang.c (ada_value_primitive_field): Treat more fields as
11147 bitfields.
11148
d48e62f4
TT
111492019-05-01 Tom Tromey <tromey@adacore.com>
11150
11151 * ada-lang.c (ada_value_assign): Correctly compute starting offset
11152 for big-endian copies.
11153
15f18d14
AT
111542019-04-30 Ali Tamur <tamur@google.com>
11155 * gdb/dwarf2read.c (read_3_bytes): New declaration.
11156 (read_attribute_value): Added DW_FORM_strx1-4 cases.
11157 (read_3_bytes): New function.
11158
ab4ee614
JB
111592019-04-30 Joel Brobecker <brobecker@adacore.com>
11160
11161 * windows-nat.c (main_thread_id): Delete.
11162 (handle_output_debug_string): Replace main_thread_id by
11163 current_event.dwThreadId.
11164 (fake_create_process): Likewise.
11165 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
11166 Do not set main_thread_id.
11167 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
11168 current_event.dwThreadId.
11169 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
11170
8ed5b76e
JB
111712019-04-30 Joel Brobecker <brobecker@adacore.com>
11172
11173 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
11174 Use current_event.dwThreadId instead of main_thread_id.
11175
2ff0a947
TT
111762019-04-30 Tom Tromey <tromey@adacore.com>
11177
11178 * ada-lang.c (ada_lookup_simple_minsyms): New function.
11179 (create_excep_cond_exprs): Iterate over program spaces.
11180 (ada_exception_catchpoint_cond_string): Examine all minimal
11181 symbols for exception types.
11182
a776957c
TT
111832019-04-30 Tom Tromey <tromey@adacore.com>
11184
11185 PR c++/24470:
11186 * dwarf2read.c (process_structure_scope): Handle case where type
11187 has template parameters but no symbol was created.
11188
bc68014d
AB
111892019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
11190 Chris January <chris.january@arm.com>
11191
11192 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
11193 qualifier.
11194 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
11195
f1fdc960
AB
111962019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
11197
11198 * f-typeprint.c (f_print_type): Update rules for printing
11199 whitespace.
11200 (f_type_print_varspec_suffix): Likewise.
11201
bf7a4de1
AB
112022019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
11203 Chris January <chris.january@arm.com>
11204
11205 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
11206 function arguments.
11207
bbe75b9d
AB
112082019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
11209
11210 * f-lang.c (build_fortran_types): Change name of void type to
11211 lower case.
11212 * f-typeprint.c (f_type_print_base): Print the name of the void
11213 type, rather than a fixed string.
11214 * f-valprint.c (f_decorations): Use lower case void string.
11215
1db455a7
AB
112162019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
11217 Chris January <chris.january@arm.com>
11218
11219 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
11220 types for Fortran.
11221
b6d03bb2
AB
112222019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
11223 Chris January <chris.january@arm.com>
11224 David Lecomber <david.lecomber@arm.com>
11225
11226 * f-exp.y (BINOP_INTRINSIC): New token.
11227 (exp): New parser rule handling BINOP_INTRINSIC.
11228 (f77_keywords): Add new builtin procedures.
11229 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
11230 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
11231 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
11232 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
11233 (print_unop_subexp_f): New function.
11234 (print_binop_subexp_f): New function.
11235 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
11236 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
11237 (dump_subexp_body_f): Likewise.
11238 (operator_check_f): Likewise.
11239 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
11240 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
11241
83228e93
AB
112422019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
11243
11244 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
11245 UNOP_KIND.
11246 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
11247 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
11248 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
11249 (operator_length_f): New fuction.
11250 (print_subexp_f): New function.
11251 (op_name_f): New function.
11252 (dump_subexp_body_f): New function.
11253 (operator_check_f): New function.
11254 (exp_descriptor_f): Replace standard expression handling functions
11255 with new functions.
11256 * gdb/fortran-operator.def: New file.
11257 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
11258 * gdb/std-operator.def: Remove UNOP_KIND.
11259
6fdcd7cc
AB
112602019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
11261
11262 * std-operator.def: Remove unbalanced, stray double quote
11263 character.
11264
2e62ab40
AB
112652019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
11266 Chris January <chris.january@arm.com>
11267 Daniel Everett <daniel.everett@arm.com>
11268 Nick Forrington <nick.forrington@arm.com>
11269 Richard Bunt <richard.bunt@arm.com>
11270
11271 * cp-valprint.c (cp_print_value_fields): Allow an additional level
11272 of depth when printing anonymous structs or unions.
11273 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
11274 Don't print either the top-level value, or the children if the
11275 max-depth is exceeded.
11276 (ppscm_print_children): When printing the key of a map, allow one
11277 extra level of depth.
11278 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
11279 print either the top-level value, or the children if the max-depth
11280 is exceeded.
11281 (print_children): When printing the key of a map, allow one extra
11282 level of depth.
11283 * python/py-value.c (valpy_format_string): Add max_depth keyword.
11284 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
11285 (user_print_options): Initialise max_depth field.
11286 (val_print_scalar_or_string_type_p): New function.
11287 (val_print): Check to see if the max depth has been reached.
11288 (val_print_check_max_depth): Define new function.
11289 (show_print_max_depth): New function.
11290 (_initialize_valprint): Add 'print max-depth' option.
11291 * valprint.h (struct value_print_options) <max_depth>: New field.
11292 (val_print_check_max_depth): Declare new function.
11293 * NEWS: Document new feature.
11294
4be290b2
AB
112952019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
11296
11297 * ada-lang.c (ada_language_defn): Initialise new field.
11298 * c-lang.c (c_is_string_type_p): New function.
11299 (c_language_defn): Initialise new field.
11300 (cplus_language_defn): Initialise new field.
11301 (asm_language_defn): Initialise new field.
11302 (minimal_language_defn): Initialise new field.
11303 * c-lang.h (c_is_string_type_p): Declare new function.
11304 * d-lang.c (d_language_defn): Initialise new field.
11305 * f-lang.c (f_is_string_type_p): New function.
11306 (f_language_defn): Initialise new field.
11307 * go-lang.c (go_is_string_type_p): New function.
11308 (go_language_defn): Initialise new field.
11309 * language.c (default_is_string_type_p): New function.
11310 (unknown_language_defn): Initialise new field.
11311 (auto_language_defn): Initialise new field.
11312 * language.h (struct language_defn) <la_is_string_type_p>: New
11313 member variable.
11314 (default_is_string_type_p): Declare new function.
11315 * m2-lang.c (m2_language_defn): Initialise new field.
11316 * objc-lang.c (objc_language_defn): Initialise new field.
11317 * opencl-lang.c (opencl_language_defn): Initialise new field.
11318 * p-lang.c (pascal_is_string_type_p): New function.
11319 (pascal_language_defn): Initialise new field.
11320 * rust-lang.c (rust_is_string_type_p): New function.
11321 (rust_language_defn): Initialise new field.
11322
721b08c6
AB
113232019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
11324
11325 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
11326 New field.
11327 * ada-lang.c (ada_language_defn): Initialise new field.
11328 * c-lang.c (c_language_defn): Likewise.
11329 (cplus_language_defn): Likewise.
11330 (asm_language_defn): Likewise.
11331 (minimal_language_defn): Likewise.
11332 * d-lang.c (d_language_defn): Likewise.
11333 * f-lang.c (f_language_defn): Likewise.
11334 * go-lang.c (go_language_defn): Likewise.
11335 * language.c (unknown_language_defn): Likewise.
11336 (auto_language_defn): Likewise.
11337 * m2-lang.c (m2_language_defn): Likewise.
11338 * objc-lang.c (objc_language_defn): Likewise.
11339 * opencl-lang.c (opencl_language_defn): Likewise.
11340 * p-lang.c (pascal_language_defn): Likewise.
11341 * rust-lang.c (rust_language_defn): Likewise.
11342
fc913e53
AB
113432019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
11344
11345 * ada-lang.c (ada_is_character_type): Change return type to bool.
11346 (ada_is_string_type): Likewise.
11347 * ada-lang.h (ada_is_character_type): Update declaration
11348 (ada_is_string_type): Likewise.
11349
fa731fa0
PW
113502019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11351
11352 Support style in 'frame|thread apply'
11353
11354 * gdbcmd.h (execute_command_to_string): New term_out parameter.
11355 * record.c (record_start, record_stop): Update callers of
11356 execute_command_to_string with false.
11357 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
11358 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
11359 methods.
11360 (class string_file): New constructor with term_out parameter.
11361 Override methods term_out and can_emit_style_escape. New member
11362 term_out.
11363 (class stdio_file): Override can_emit_style_escape.
11364 (class tee_file): Override term_out and can_emit_style_escape.
11365 * utils.h (can_emit_style_escape): Remove.
11366 * utils.c (can_emit_style_escape): Likewise.
11367 Update all callers of can_emit_style_escape (SOMESTREAM) to
11368 SOMESTREAM->can_emit_style_escape.
11369 * source-cache.c (source_cache::get_source_lines): Likewise.
11370 * stack.c (frame_apply_command_count): Call execute_command_to_string
11371 passing the term_out characteristic of the current gdb_stdout.
11372 * thread.c (thr_try_catch_cmd): Likewise.
11373 * top.c (execute_command_to_string): pass term_out parameter
11374 to construct the string_file for the command output.
11375 * ui-file.c (term_cli_styling): New function (most code moved
11376 from utils.c can_emit_style_escape).
11377 (string_file::string_file, string_file::can_emit_style_escape,
11378 stdio_file::can_emit_style_escape, tee_file::term_out,
11379 tee_file::can_emit_style_escape): New functions.
11380
136afab8
PW
113812019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11382
11383 * NEWS: Mention the new set|show may-call-functions.
11384 * infcall.c (may_call_functions_p): New variable.
11385 (show_may_call_functions_p): New function.
11386 (call_function_by_hand_dummy): Throws an error if not
11387 may-call-functions.
11388 (_initialize_infcall): Call add_setshow_boolean_cmd for
11389 may-call-functions.
11390
725cbb63
KS
113912019-04-25 Keith Seitz <keiths@redhat.com>
11392
11393 PR c++/24367
11394 * cp-support.c (inspect_type): Don't attempt substitutions
11395 of symbol with the same name.
11396
3d1cbb78
TT
113972019-04-25 Tom Tromey <tromey@adacore.com>
11398
11399 PR gdb/24475:
11400 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
11401 static.
11402
94aeb44b
TT
114032019-04-25 Tom Tromey <tromey@adacore.com>
11404
11405 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
11406 rvalue reference.
11407 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
11408 (gdb_xml_parser::parse): Use std::move.
11409 * python/python-internal.h (gdbpy_convert_exception): Take a const
11410 reference.
11411 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
11412 std::move.
11413 * python/py-utils.c (gdbpy_convert_exception): Take a const
11414 reference.
11415 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
11416 Use std::move.
11417 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
11418 Use std::move.
11419 * mi/mi-main.c (mi_print_exception): Take a const reference.
11420 * main.c (handle_command_errors): Take a const reference.
11421 * linespec.c (parse_linespec): Use std::move.
11422 * infcall.c (run_inferior_call): Use std::move.
11423 (call_function_by_hand_dummy): Use std::move.
11424 * exec.c (try_open_exec_file): Use std::move.
11425 * exceptions.h (exception_print, exception_fprintf)
11426 (exception_print_same): Update.
11427 * exceptions.c (print_exception, exception_print)
11428 (exception_fprintf, exception_print_same): Change parameters to
11429 const reference.
11430 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
11431 * common/new-op.c: Use std::move.
11432 * common/common-exceptions.h (struct gdb_exception): Add move
11433 constructor.
11434 (struct gdb_exception_error, struct gdb_exception_quit, struct
11435 gdb_quit_bad_alloc): Change constructor to move constructor.
11436 (throw_exception): Change parameter to rvalue reference.
11437 * common/common-exceptions.c (throw_exception): Take rvalue
11438 reference.
11439 * cli/cli-interp.c (safe_execute_command): Use std::move.
11440 * breakpoint.c (insert_bp_location, location_to_sals): Use
11441 std::move.
11442
680d7fd5
TT
114432019-04-25 Tom Tromey <tromey@adacore.com>
11444
11445 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
11446 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
11447 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
11448 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
11449 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
11450 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
11451 guile/scm-value.c: Use unpack.
11452 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
11453 gdbscm_gdb_exception.
11454 (gdbscm_throw_gdb_exception): Likewise.
11455 (struct gdbscm_gdb_exception): New.
11456 (unpack): New function.
11457 (gdbscm_wrap): Use unpack.
11458
c6fdd8b2
TT
114592019-04-25 Tom Tromey <tromey@adacore.com>
11460
11461 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
11462 (gdb_rl_callback_handler): Use std::move.
11463 * common/common-exceptions.h (struct gdb_exception): Add move
11464 assignment operator.
11465 (throw_exception_sjlj): Change "exception" to const reference.
11466 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
11467 (throw_exception_sjlj): Change "exception" to const reference.
11468
cc06b668
TT
114692019-04-25 Tom Tromey <tromey@adacore.com>
11470
11471 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
11472 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
11473 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
11474 Update.
11475 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
11476 Update.
11477 * mi/mi-interp.c (mi_interp::exec): Update.
11478 * linespec.c (parse_linespec): Update.
11479 * infcall.c (run_inferior_call): Update.
11480 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
11481 * guile/scm-symbol.c (gdbscm_lookup_symbol)
11482 (gdbscm_lookup_global_symbol): Update.
11483 * guile/scm-param.c (gdbscm_parameter_value): Update.
11484 * guile/scm-frame.c (gdbscm_frame_read_register)
11485 (gdbscm_frame_read_var): Update.
11486 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
11487 * exec.c (try_open_exec_file): Update.
11488 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
11489 (gdb_rl_callback_handler): Update.
11490 * common/common-exceptions.h (exception_none): Don't declare.
11491 * common/common-exceptions.c (exception_none): Don't define.
11492 (struct catcher) <exception>: Update.
11493 * cli/cli-interp.c (safe_execute_command): Update.
11494 * breakpoint.c (insert_bp_location, location_to_sals): Update.
11495
cf532bd1
AT
114962019-04-25 Ali Tamur <tamur@google.com>
11497
11498 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
11499 (read_attribute_value): Likewise.
11500 (dwarf2_read_addr_index): Update comment.
11501 (read_str_index): Add DW_FORM_strx.
11502 (dwarf2_string_attr): Likewise.
11503 (dwarf2_const_value_attr): Likewise.
11504 (dump_die_shallow): Likewise.
11505 (dwarf2_fetch_constant_bytes): Likewise.
11506 (skip_form_bytes): Likewise.
11507 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
11508
82433e3e
SDJ
115092019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
11510
11511 PR corefiles/11608
11512 PR corefiles/18187
11513 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
11514 OFFSET. Verify if current mapping contains an ELF header.
11515 (linux_find_memory_regions_full): Adjust call to
11516 dump_mapping_p.
11517
723adb65
SL
115182019-04-25 Sandra Loosemore <sandra@codesourcery.com>
11519 Kang Li <kanglictf@gmail.com>
11520
11521 PR gdb/21600
11522
11523 * dwarf2-frame.c (read_initial_length): Be consistent about using
11524 unsigned representation of length.
11525 (decode_frame_entry_1): Likewise. Check for wraparound of
11526 end pointer as well as buffer overflow.
11527
596179f7
SDJ
115282019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
11529
11530 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
11531 "vq".
11532
a59240a4
TT
115332019-04-24 Tom Tromey <tromey@adacore.com>
11534
11535 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
11536
f872fdbb
AB
115372019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11538
11539 * s12z-tdep.c (s12z_unwind_pc): Delete.
11540 (s12z_unwind_sp): Delete.
11541 (s12z_gdbarch_init): Don't register deleted functions with
11542 gdbarch.
11543
b614e6f3
AB
115442019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11545
11546 * rl78-tdep.c (rl78_unwind_sp): Delete.
11547 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
11548
14faed38
AB
115492019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11550
11551 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
11552 (xstormy16_unwind_pc): Delete.
11553 (xstormy16_dummy_id): Delete.
11554 (xstormy16_gdbarch_init): Don't register deleted functions with
11555 gdbarch.
11556
541aad8a
AB
115572019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11558
11559 * vax-tdep.c (vax_unwind_pc): Delete.
11560 (vax_gdbarch_init): Don't register deleted function with gdbarch.
11561
29222070
AB
115622019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11563
11564 * v850-tdep.c (v850_unwind_sp): Delete.
11565 (v850_unwind_pc): Delete.
11566 (v850_dummy_id): Delete.
11567 (v850_gdbarch_init): Don't register deleted functions with
11568 gdbarch.
11569
0f534d76
AB
115702019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11571
11572 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
11573 (tilegx_unwind_pc): Delete.
11574 (tilegx_unwind_dummy_id): Delete.
11575 (tilegx_gdbarch_init): Don't register deleted functions with
11576 gdbarch.
11577
1ba7b7f9
AB
115782019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11579
11580 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
11581 (tic6x_dummy_id): Delete.
11582 (tic6x_gdbarch_init): Don't register deleted functions with
11583 gdbarch.
11584
d31f262c
AB
115852019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11586
11587 * sparc-tdep.c (sparc_unwind_pc): Delete.
11588 (sparc32_gdbarch_init): Don't register deleted function with
11589 gdbarch.
11590
6d14d64d
AB
115912019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11592
11593 * sh-tdep.c (sh_unwind_sp): Delete.
11594 (sh_unwind_pc): Delete.
11595 (sh_dummy_id): Delete.
11596 (sh_gdbarch_init): Don't register deleted functions with
11597 gdbarch.
11598
a40dde9d
AB
115992019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11600
11601 * score-tdep.c (score_unwind_sp): Delete.
11602 (score_unwind_pc): Delete.
11603 (score_dummy_id): Delete.
11604 (score_gdbarch_init): Don't register deleted functions with
11605 gdbarch.
11606
47c47d69
AB
116072019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11608
11609 * rx-tdep.c (rx_unwind_pc): Delete.
11610 (rx_unwind_sp): Delete.
11611 (rx_dummy_id): Delete.
11612 (rx_gdbarch_init): Don't register deleted functions with
11613 gdbarch. Update comment.
11614
833a4480
AB
116152019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11616
11617 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
11618 (rs6000_dummy_id): Delete.
11619 (rs6000_gdbarch_init): Don't register deleted functions with
11620 gdbarch.
11621
3f2cef49
AB
116222019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11623
11624 * or1k-tdep.c (or1k_dummy_id): Delete.
11625 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
11626
96acf884
AB
116272019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11628
11629 * nios2-tdep.c (nios2_dummy_id): Delete.
11630 (nios2_unwind_sp): Delete.
11631 (nios2_gdbarch_init): Don't register deleted functions with
11632 gdbarch.
11633
ca0ab0aa
AB
116342019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11635
11636 * nds32-tdep.c (nds32_dummy_id): Delete.
11637 (nds32_unwind_pc): Delete.
11638 (nds32_unwind_sp): Delete.
11639 (nds32_gdbarch_init): Don't register deleted functions with
11640 gdbarch.
11641
c8259044
AB
116422019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11643
11644 * msp430-tdep.c (msp430_unwind_pc): Delete.
11645 (msp430_unwind_sp): Delete.
11646 (msp430_dummy_id): Delete.
11647 (msp430_gdbarch_init): Don't register deleted functions with
11648 gdbarch.
11649
27f113c8
AB
116502019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11651
11652 * moxie-tdep.c (moxie_unwind_sp): Delete.
11653 (moxie_unwind_pc): Delete.
11654 (moxie_dummy_id): Delete.
11655 (moxie_gdbarch_init): Don't register deleted functions with
11656 gdbarch.
11657
aee6c3cd
AB
116582019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11659
11660 * mn10300-tdep.c (mn10300_dummy_id): Delete.
11661 (mn10300_unwind_pc): Delete.
11662 (mn10300_unwind_sp): Delete.
11663 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
11664 mn10300_unwind_sp.
11665 (mn10300_frame_unwind_init): Don't register deleted functions with
11666 gdbarch.
11667
8e2b5aea
AB
116682019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11669
11670 * mep-tdep.c (mep_unwind_pc): Delete.
11671 (mep_unwind_sp): Delete.
11672 (mep_dummy_id): Delete.
11673 (mep_gdbarch_init): Don't register deleted functions with
11674 gdbarch.
11675
43cf3ede
AB
116762019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11677
11678 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
11679 (m68hc11_unwind_sp): Delete.
11680 (m68hc11_gdbarch_init): Don't register deleted functions with
11681 gdbarch.
11682
5e79b7bb
AB
116832019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11684
11685 * m32r-tdep.c (m32r_unwind_sp): Delete.
11686 (m32r_unwind_pc): Delete.
11687 (m32r_dummy_id): Delete.
11688 (m32r_gdbarch_init): Don't register deleted functions with
11689 gdbarch.
11690
89b268d8
AB
116912019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11692
11693 * m32c-tdep.c (m32c_unwind_pc): Delete.
11694 (m32c_unwind_sp): Delete.
11695 (m32c_dummy_id): Delete.
11696 (m32c_gdbarch_init): Don't register deleted functions with
11697 gdbarch.
11698
946c28d2
AB
116992019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11700
11701 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
11702 (lm32_unwind_pc): Delete.
11703 (lm32_dummy_id): Delete.
11704 (lm32_gdbarch_init): Don't register deleted functions with
11705 gdbarch.
11706
bf12844a
AB
117072019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11708
11709 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
11710 (iq2000_unwind_pc): Delete.
11711 (iq2000_dummy_id): Delete.
11712 (iq2000_gdbarch_init): Don't register deleted functions with
11713 gdbarch.
11714
ecbc06d2
AB
117152019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11716
11717 * nds32-tdep.c (nds32_type_align): Delete.
11718 (nds32_push_dummy_call): Use type_align instead.
11719
030197b4
AB
117202019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11721
11722 * arm-tdep.c (arm_type_align): Only handle vector override case.
11723 (arm_push_dummy_call): Use type_align.
11724 (arm_gdbarch_init): Register arm_type_align gdbarch function.
11725
b907456c
AB
117262019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11727
11728 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
11729 case.
11730 (pass_on_stack): Use type_align.
11731 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
11732 function.
11733
9e97ba43
TT
117342019-04-23 Tom Tromey <tromey@adacore.com>
11735
11736 * dwarf2read.c (line_header::file_name_at): Remove unused
11737 overload.
11738
6892f601
TV
117392019-04-23 Tom de Vries <tdevries@suse.de>
11740
11741 PR gdb/24438
11742 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
11743 invocation.
11744
336d760d
AT
11745
117462019-03-27 Ali Tamur <tamur@google.com>
11747
11748 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
11749 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
11750 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
11751 (dwarf_expr_context::get_addr_index): Likewise
11752 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
11753 (symbol_needs_eval_context::get_addr_index): Likewise
11754 (disassemble_dwarf_expression): Add DW_OP_addrx
11755 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
11756 (read_cutu_die_from_dwo): Update comment
11757 (skip_one_die): Add DW_FORM_addrx
11758 (read_attribute_value): Likewise
11759 (var_decode_location): Add DW_OP_addrx
11760 (dwarf2_const_value_attr): Add DW_FORM_addrx
11761 (dump_die_shallow): Likewise
11762 (dwarf2_fetch_constant_bytes): Likewise
11763 (decode_locdesc): Add DW_OP_addrx
11764 (skip_form_bytes): Add DW_FORM_addrx
11765
ad9d13f8
AT
117662019-04-22 Ali Tamur <tamur@google.com>
11767
11768 * MAINTAINERS (Write After Approval): Add self.
11769
d70cc3ba
SM
117702019-04-22 Simon Marchi <simon.marchi@efficios.com>
11771
11772 * solib-svr4.c (get_svr4_info): Add pspace parameter.
11773 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
11774 (open_symbol_file_object): Likewise.
11775 (svr4_default_sos): Add info parameter.
11776 (svr4_read_so_list): Likewise.
11777 (svr4_current_sos_direct): Adjust functions calls to pass down
11778 info.
11779 (svr4_current_sos_1): Add info parameter.
11780 (svr4_current_sos): Call get_svr4_info, pass info down to
11781 svr4_current_sos_1.
11782 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
11783 get_svr4_info.
11784 (svr4_in_dynsym_resolve_code): Pass current_program_space to
11785 get_svr4_info.
11786 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
11787 to get_svr4_info.
11788 (probes_table_remove_objfile_probes): Likewise.
11789 (register_solib_event_probe): Add info parameter.
11790 (solist_update_incremental): Pass info parameter down to
11791 svr4_read_so_list.
11792 (disable_probes_interface): Add info parameter.
11793 (svr4_handle_solib_event): Pass current_program_space to
11794 get_svr4_info. Adjust disable_probes_interface cleanup.
11795 (svr4_create_probe_breakpoints): Add info parameter, pass it
11796 down to register_solib_event_probe.
11797 (svr4_create_solib_event_breakpoints): Add info parameter,
11798 pass it down to svr4_create_probe_breakpoints.
11799 (enable_break): Pass info down to
11800 svr4_create_solib_event_breakpoints.
11801 (svr4_solib_create_inferior_hook): Pass current_program_space to
11802 get_svr4_info.
11803 (svr4_clear_solib): Likewise.
11804
7905fc35
PA
118052019-04-22 Pedro Alves <palves@redhat.com>
11806
11807 * solib-svr4.c (svr4_free_objfile_observer): New.
11808 (probe_and_action::objfile): New field.
11809 (probes_table_htab_remove_objfile_probes)
11810 (probes_table_remove_objfile_probes): New functions.
11811 (register_solib_event_probe): Add 'objfile' parameter. Store it
11812 in the new probe_and_action. Don't store the probe in 'lookup'.
11813 (svr4_create_probe_breakpoints): Pass objfile to
11814 register_solib_event_probe.
11815 (_initialize_svr4_solib): Register a free_objfile observer.
11816
fb881986
TT
118172019-04-19 Tom Tromey <tom@tromey.com>
11818
11819 * common/queue.h: Remove.
11820
8732db6c
TT
118212019-04-19 Tom Tromey <tom@tromey.com>
11822
11823 * event-loop.c: Don't include "common/queue.h".
11824
97dfbadd
TT
118252019-04-19 Tom Tromey <tom@tromey.com>
11826
11827 * remote.c (remote_target): Use delete.
11828 * remote-notif.h: Include <list>, not "common/queue.h".
11829 (notif_client_p): Remove typedef.
11830 (remote_notif_state): Add constructor, destructor, initializer.
11831 <notif_queue>: Now a std::list.
11832 (remote_notif_state_xfree): Don't declare.
11833 * remote-notif.c (remote_notif_process, handle_notification)
11834 (remote_notif_state_allocate): Update.
11835 (~remote_notif_state): Rename from remote_notif_state_xfree.
11836
cf250e36
TT
118372019-04-19 Tom Tromey <tom@tromey.com>
11838
11839 * symfile.c (reread_symbols): Update.
11840 * objfiles.c (objfile_register_static_link)
11841 (objfile_lookup_static_link): Update
11842 (~objfile) Don't delete static_links.
11843 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
11844
61f4b350
TT
118452019-04-19 Tom Tromey <tom@tromey.com>
11846
11847 * type-stack.h (struct type_stack) <insert>: Constify string.
11848 * type-stack.c (type_stack::insert): Constify string.
11849 * gdbtypes.h (lookup_template_type): Update.
11850 (address_space_name_to_int): Update.
11851 * gdbtypes.c (address_space_name_to_int): Make space_identifier
11852 const.
11853 (lookup_template_type): Make name const.
11854 * c-exp.y: Update rules.
11855 (lex_one_token, classify_name, classify_inner_name)
11856 (c_print_token): Update.
11857 * p-exp.y: Update rules.
11858 (yylex): Update.
11859 * f-exp.y: Update rules.
11860 (yylex): Update.
11861 * d-exp.y: Update rules.
11862 (lex_one_token, classify_name, classify_inner_name): Update.
11863 * parse.c (write_dollar_variable, copy_name): Return std::string.
11864 * parser-defs.h (copy_name): Change return type.
11865 * m2-exp.y: Update rules.
11866 (yylex): Update.
11867 * go-exp.y (lex_one_token): Update.
11868 Update rules.
11869 (classify_unsafe_function, classify_packaged_name)
11870 (classify_name, yylex): Update.
11871
189b8c2e
ST
118722019-04-19 Sergei Trofimovich <siarheit@google.com>
11873
11874 * configure.ac: add --enable-source-highlight switch.
11875 * configure: Regenerate.
11876 * top.c (print_gdb_version): plumb --enable-source-highlight
11877 status to "show configuration".
11878
8ecb59f8
TT
118792019-04-19 Tom Tromey <tromey@adacore.com>
11880
11881 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
11882 Check ADA_TYPE_P.
11883 (empty_record, ada_template_to_fixed_record_type_1)
11884 (template_to_static_fixed_type)
11885 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
11886 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
11887 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
11888 macros.
11889
62160ec9
TT
118902019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
11891
11892 PR symtab/24423:
11893 * source.c (print_source_lines_base): Advance "iter" when a
11894 control character is seen.
11895
f2ae8bc8
PW
118962019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11897
11898 * inferior.h (struct infcall_suspend_state_deleter):
11899 Catch exception in destructor to avoid crash.
11900
d563b953
PW
119012019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11902
11903 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
11904 close to the add_com "shell".
11905
dc34c897
TT
119062019-04-18 Tom Tromey <tromey@adacore.com>
11907
11908 * process-stratum-target.h (class process_stratum_target)
11909 <stratum>: Add "final".
11910
a12e5744
TT
119112019-04-17 Tom Tromey <tromey@adacore.com>
11912
11913 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
11914 against nullptr before use.
11915
a7e559cc
AH
119162019-04-17 Alan Hayward <alan.hayward@arm.com>
11917
11918 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
11919
c01660c6
AB
119202019-04-17 Jim Wilson <jimw@sifive.com>
11921 Andrew Burgess <andrew.burgess@embecosm.com>
11922
11923 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
11924 code read might fail, assume 4-byte breakpoint in that case.
11925
4aa866af
LS
119262019-04-15 Leszek Swirski <leszeks@google.com>
11927
11928 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
11929 rather than a hand-rolled POD check when checking for forced MEMORY
11930 classification.
11931
48574d91
AH
119322019-04-15 Alan Hayward <alan.hayward@arm.com>
11933
11934 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
11935 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
11936 function.
11937 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
11938 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
11939 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
11940 declaration.
11941
4da037ef
AH
119422019-04-15 Alan Hayward <alan.hayward@arm.com>
11943
11944 * aarch64-linux-nat.c
11945 (aarch64_linux_nat_target::thread_architecture): Add override.
11946 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
11947 each VQ.
11948
ccb8d7e8
AH
119492019-04-15 Alan Hayward <alan.hayward@arm.com>
11950
11951 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
11952
35add35e
AB
119532019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
11954
11955 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
11956 target types of size 96-bits, add some additional comments, and
11957 check that the builtin type we found was the correct size.
11958
51196bbc
EZ
119592019-04-12 Eli Zaretskii <eliz@gnu.org>
11960
11961 * utils.c (prompt_for_continue): Don't restore the styling at the
11962 end, as applied_style has the wrong value. This fixes styling in
11963 long lists of file names that are interrupted by the "Continue?"
11964 prompt.
11965
62253a61
AB
119662019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
11967
11968 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
11969 * c-lang.c (c_language_defn): Likewise.
11970 (cplus_language_defn): Likewise.
11971 (asm_language_defn): Likewise.
11972 (minimal_language_defn): Likewise.
11973 * d-lang.c (d_language_defn): Likewise.
11974 * f-lang.c (f_language_defn): Likewise.
11975 * go-lang.c (go_language_defn): Likewise.
11976 * language.c (unknown_language_defn): Likewise.
11977 (auto_language_defn): Likewise.
11978 * language.h (struct language_defn): Remove la_magic field.
11979 (LANG_MAGIC): Delete.
11980 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
11981 * objc-lang.c (objc_language_defn): Likewise.
11982 * opencl-lang.c (opencl_language_defn): Likewise.
11983 * p-lang.c (pascal_language_defn): Likewise.
11984 * rust-lang.c (rust_language_defn): Likewise.
11985
a9158a86
AB
119862019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
11987
11988 * riscv-tdep.c (riscv_type_align): New function.
11989 (riscv_type_alignment): Delete.
11990 (riscv_arg_location): Use 'type_align'.
11991 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
11992
41077b66
AB
119932019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
11994
11995 * gdbtypes.c (type_align): A struct with no non-static fields also
11996 has alignment of 1.
11997
9f0272f8
AB
119982019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
11999
12000 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
12001 component to 0.
12002 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
12003 member.
12004 (riscv_struct_info::analyse): New implementation using new
12005 analyse_inner member function.
12006 (riscv_struct_info::field_offset): New member function.
12007 (riscv_struct_info::m_offsets): New member variable.
12008 (riscv_struct_info::analyse_inner): New private member function,
12009 takes the old implementation of riscv_struct_info::analyse but
12010 extended to track field offsets.
12011 (riscv_call_arg_struct): Update the struct folding special cases
12012 to handle cases where empty C++ structs, which are non-zero
12013 length, are found.
12014 (riscv_arg_location): Initialise the length of each location, a
12015 non-zero length now indicates the location is in use.
12016 (riscv_push_dummy_call): Allow for the first location having a
12017 non-zero offset when setting up arguments.
12018 (riscv_return_value): Likewise, but for return values.
12019
02cf60c7
TT
120202019-04-11 Tom Tromey <tromey@adacore.com>
12021
12022 * utils.c (internal_vproblem): Make "msg" const.
12023
68811f8f
AH
120242019-04-11 Alan Hayward <alan.hayward@arm.com>
12025
12026 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
12027 * trad-frame.c (trad_frame_reset_saved_regs): New function.
12028 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
12029 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
12030
3f52fdbc
KB
120312019-04-10 Kevin Buettner <kevinb@redhat.com>
12032
12033 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
12034 function.
12035 (fill_gregset): Call amd64_linux_collect_native_gregset instead
12036 of amd64_collect_native_gregset.
12037 (amd64_linux_nat_target::store_registers): Likewise.
12038
e9ad22ee
TT
120392019-04-10 Tom Tromey <tom@tromey.com>
12040
12041 * symtab.c (lookup_global_symbol_from_objfile)
12042 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
12043 * objfiles.h (class separate_debug_iterator): New.
12044 (class separate_debug_range): New.
12045 (struct objfile) <separate_debug_objfiles>: New method.
12046 (objfile_separate_debug_iterate): Don't declare.
12047 * objfiles.c (separate_debug_iterator::operator++): Rename from
12048 objfile_separate_debug_iterate.
12049 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
12050 iterator.
12051 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
12052 iterator.
12053
ee371134
TT
120542019-04-10 Tom Tromey <tom@tromey.com>
12055
12056 * symfile.c (reread_symbols): Remove old comment.
12057 * objfiles.c (free_all_objfiles): Fix a typo.
12058
bf227d61
TT
120592019-04-10 Tom Tromey <tom@tromey.com>
12060
12061 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
12062 * minsyms.c (lookup_minimal_symbol): Use foreach.
12063 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
12064 (lookup_minimal_symbol_solib_trampoline): Likewise.
12065 * symfile.c (reread_symbols): Use foreach.
12066
8dc433a0
TT
120672019-04-09 Ivan Begert <ivanbegert@gmail.com>
12068 Tom Tromey <tromey@adacore.com>
12069
12070 PR rust/24414:
12071 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
12072 (rust_lex_int_test): Change "value" to be LONGEST.
12073 (rust_lex_tests): Add test for long integer literal.
12074
9ab8741a
TT
120752019-04-09 Tom Tromey <tromey@adacore.com>
12076
12077 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
12078 to bool.
12079 (extended_remote_target::attach): Update.
12080 (remote_target::remote_notice_new_inferior): Update.
12081 (remote_target::add_current_inferior_and_thread): Update.
12082 * inferior.c (exit_inferior_1): Use "false".
12083 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
12084
e242fd12
SM
120852019-04-09 Simon Marchi <simon.marchi@efficios.com>
12086
9ca1957f 12087 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
e242fd12
SM
12088 the "start" command.
12089
2b0c8b01
KB
120902019-04-08 Kevin Buettner <kevinb@redhat.com>
12091
12092 * python/py-inferior.c (infpy_thread_from_thread_handle):
12093 Adjust comments to reflect renaming of thread_from_thread_handle
12094 to thread_from_handle. Adjust keywords. Fix type error message.
12095 (inferior_object_methods): Add thread_from_handle. Retain
12096 thread_from_thread_handle, but mark it as deprecated.
12097
50a82723
KB
120982019-04-08 Kevin Buettner <kevinb@redhat.com>
12099
12100 * gdbthread.h (find_thread_by_handle): Revise declaration.
12101 * thread.c (find_thread_by_handle): Likewise. Adjust
12102 implementation too.
12103 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
12104 support for buffer objects as handles.
12105
cf63b016
KB
121062019-04-08 Kevin Buettner <kevinb@redhat.com>
12107
12108 * python/py-infthread.c (thpy_thread_handle): New function.
12109 (thread_object_methods): Register thpy_thread_handle.
12110
3d6c6204
KB
121112019-04-08 Kevin Buettner <kevinb@redhat.com>
12112
12113 * gdbthread.h (thread_to_thread_handle): Declare.
12114 * thread.c (gdbtypes.h): Include.
12115 (thread_to_thread_handle): New function.
12116
12117 * target.h (struct target_ops): Add thread_info_to_thread_handle.
12118 (target_thread_info_to_thread_handle): Declare.
12119 * target.c (target_thread_info_to_thread_handle): New function.
12120 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
12121 * target-delegates.c: Regenerate.
12122
12123 * linux-thread-db.c (class thread_db_target): Add method
12124 thread_info_to_thread_handle.
12125 (thread_db_target::thread_info_to_thread_handle): Define.
12126 * remote.c (class remote_target): Add new method
12127 thread_info_to_thread_handle.
12128 (remote_target::thread_info_to_thread_handle): Define.
12129
56be6ea8
PA
121302019-04-08 Pedro Alves <palves@redhat.com>
12131
12132 * common/common-exceptions.c (throw_exception): Don't create
12133 named object to throw; throw directly.
12134 (throw_it): Likewise. Don't initialize gdb_exception::message
12135 here, with new; pass FMT and AP to the ctor instead.
12136 * common/common-exceptions.h: Include <string>.
12137 (gdb_exception::gdb_exception(enum return_reason, enum errors,
12138 const char *, va_list)): New ctor. Use std::make_shared.
12139 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
12140 errors)): Delete.
12141 (gdb_exception_error::gdb_exception_error(enum errors, const char
12142 *, va_list)): New.
12143 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
12144 Add assertion.
12145 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
12146 errors)): Delete.
12147 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
12148 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
12149 Add assertion.
12150
eedc3f4f
TT
121512019-04-08 Tom Tromey <tom@tromey.com>
12152
12153 * valops.c (value_rtti_indirect_type): Replace throw_exception
12154 with throw.
12155 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
12156 with throw.
12157 * thread.c (thr_try_catch_cmd): Replace throw_exception with
12158 throw.
12159 * target.c (target_translate_tls_address): Replace throw_exception
12160 with throw.
12161 * stack.c (frame_apply_command_count): Replace throw_exception
12162 with throw.
12163 * solib-spu.c (append_ocl_sos): Replace throw_exception with
12164 throw.
12165 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
12166 with throw.
12167 * rs6000-tdep.c (rs6000_frame_cache)
12168 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
12169 * remote.c: Replace throw_exception with throw.
12170 * record-full.c (record_full_message, record_full_wait_1)
12171 (record_full_restore): Replace throw_exception with throw.
12172 * record-btrace.c:
12173 (get_thread_current_frame_id, record_btrace_start_replaying)
12174 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
12175 (cmd_record_btrace_start): Replace throw_exception with throw.
12176 * parse.c (parse_exp_in_context_1): Replace throw_exception with
12177 throw.
12178 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
12179 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
12180 * linespec.c:
12181 (find_linespec_symbols): Replace throw_exception with throw.
12182 * infrun.c (displaced_step_prepare, resume): Replace
12183 throw_exception with throw.
12184 * infcmd.c (post_create_inferior): Replace throw_exception with
12185 throw.
12186 * inf-loop.c (inferior_event_handler): Replace throw_exception
12187 with throw.
12188 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
12189 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
12190 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
12191 (get_prev_frame_always, get_frame_pc_if_available)
12192 (get_frame_address_in_block_if_available, get_frame_language):
12193 Replace throw_exception with throw.
12194 * frame-unwind.c (frame_unwind_try_unwinder): Replace
12195 throw_exception with throw.
12196 * eval.c (fetch_subexp_value, evaluate_var_value)
12197 (evaluate_funcall, evaluate_subexp_standard): Replace
12198 throw_exception with throw.
12199 * dwarf2loc.c (call_site_find_chain)
12200 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
12201 Replace throw_exception with throw.
12202 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
12203 with throw.
12204 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
12205 throw.
12206 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
12207 * completer.c (complete_line_internal): Replace throw_exception
12208 with throw.
12209 * compile/compile-object-run.c (compile_object_run): Replace
12210 throw_exception with throw.
12211 * cli/cli-script.c (process_next_line): Replace throw_exception
12212 with throw.
12213 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
12214 (btrace_enable, btrace_maint_update_pt_packets): Replace
12215 throw_exception with throw.
12216 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
12217 throw_exception with throw.
12218 * break-catch-throw.c (re_set_exception_catchpoint): Replace
12219 throw_exception with throw.
12220 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
12221 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
12222 * aarch64-tdep.c (aarch64_make_prologue_cache)
12223 (aarch64_make_stub_cache): Replace throw_exception with throw.
12224
26003a20
TT
122252019-04-08 Tom Tromey <tom@tromey.com>
12226
12227 * common/common-exceptions.c (throw_exception): Rename from
12228 throw_exception_cxx. Remove old copy. Make argument const.
12229 (throw_it): Create and throw exception objects directly.
12230 * common/common-exceptions.h (throw_exception): Make argument
12231 const.
12232 (struct gdb_exception_error): Add constructor.
12233 (struct gdb_exception_quit): Add constructor.
12234
d272eb37
TT
122352019-04-08 Tom Tromey <tom@tromey.com>
12236
12237 * common/common-exceptions.h (exception_rethrow): Don't declare.
12238 (TRY_SJLJ): Update comment.
12239 (TRY, CATCH, END_CATCH): Remove.
12240 * common/common-exceptions.c (exception_rethrow): Remove.
12241
230d2906
TT
122422019-04-08 Tom Tromey <tom@tromey.com>
12243
12244 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
12245 Remove.
12246 (gdb_exception_error): Rename from
12247 gdb_exception_RETURN_MASK_ERROR.
12248 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
12249 (gdb_quit_bad_alloc): Update.
12250 * aarch64-tdep.c: Update.
12251 * ada-lang.c: Update.
12252 * ada-typeprint.c: Update.
12253 * ada-valprint.c: Update.
12254 * amd64-tdep.c: Update.
12255 * arch-utils.c: Update.
12256 * break-catch-throw.c: Update.
12257 * breakpoint.c: Update.
12258 * btrace.c: Update.
12259 * c-varobj.c: Update.
12260 * cli/cli-cmds.c: Update.
12261 * cli/cli-interp.c: Update.
12262 * cli/cli-script.c: Update.
12263 * common/common-exceptions.c: Update.
12264 * common/new-op.c: Update.
12265 * common/selftest.c: Update.
12266 * compile/compile-c-symbols.c: Update.
12267 * compile/compile-cplus-symbols.c: Update.
12268 * compile/compile-object-load.c: Update.
12269 * compile/compile-object-run.c: Update.
12270 * completer.c: Update.
12271 * corelow.c: Update.
12272 * cp-abi.c: Update.
12273 * cp-support.c: Update.
12274 * cp-valprint.c: Update.
12275 * darwin-nat.c: Update.
12276 * disasm-selftests.c: Update.
12277 * dtrace-probe.c: Update.
12278 * dwarf-index-cache.c: Update.
12279 * dwarf-index-write.c: Update.
12280 * dwarf2-frame-tailcall.c: Update.
12281 * dwarf2-frame.c: Update.
12282 * dwarf2loc.c: Update.
12283 * dwarf2read.c: Update.
12284 * eval.c: Update.
12285 * event-loop.c: Update.
12286 * event-top.c: Update.
12287 * exec.c: Update.
12288 * f-valprint.c: Update.
12289 * fbsd-tdep.c: Update.
12290 * frame-unwind.c: Update.
12291 * frame.c: Update.
12292 * gdbtypes.c: Update.
12293 * gnu-v3-abi.c: Update.
12294 * guile/guile-internal.h: Update.
12295 * guile/scm-block.c: Update.
12296 * guile/scm-breakpoint.c: Update.
12297 * guile/scm-cmd.c: Update.
12298 * guile/scm-disasm.c: Update.
12299 * guile/scm-frame.c: Update.
12300 * guile/scm-lazy-string.c: Update.
12301 * guile/scm-math.c: Update.
12302 * guile/scm-param.c: Update.
12303 * guile/scm-ports.c: Update.
12304 * guile/scm-pretty-print.c: Update.
12305 * guile/scm-symbol.c: Update.
12306 * guile/scm-symtab.c: Update.
12307 * guile/scm-type.c: Update.
12308 * guile/scm-value.c: Update.
12309 * i386-linux-tdep.c: Update.
12310 * i386-tdep.c: Update.
12311 * inf-loop.c: Update.
12312 * infcall.c: Update.
12313 * infcmd.c: Update.
12314 * infrun.c: Update.
12315 * jit.c: Update.
12316 * language.c: Update.
12317 * linespec.c: Update.
12318 * linux-fork.c: Update.
12319 * linux-nat.c: Update.
12320 * linux-tdep.c: Update.
12321 * linux-thread-db.c: Update.
12322 * main.c: Update.
12323 * mi/mi-cmd-break.c: Update.
12324 * mi/mi-cmd-stack.c: Update.
12325 * mi/mi-interp.c: Update.
12326 * mi/mi-main.c: Update.
12327 * objc-lang.c: Update.
12328 * p-valprint.c: Update.
12329 * parse.c: Update.
12330 * ppc-linux-tdep.c: Update.
12331 * printcmd.c: Update.
12332 * python/py-arch.c: Update.
12333 * python/py-breakpoint.c: Update.
12334 * python/py-cmd.c: Update.
12335 * python/py-finishbreakpoint.c: Update.
12336 * python/py-frame.c: Update.
12337 * python/py-framefilter.c: Update.
12338 * python/py-gdb-readline.c: Update.
12339 * python/py-inferior.c: Update.
12340 * python/py-infthread.c: Update.
12341 * python/py-lazy-string.c: Update.
12342 * python/py-linetable.c: Update.
12343 * python/py-objfile.c: Update.
12344 * python/py-param.c: Update.
12345 * python/py-prettyprint.c: Update.
12346 * python/py-progspace.c: Update.
12347 * python/py-record-btrace.c: Update.
12348 * python/py-record.c: Update.
12349 * python/py-symbol.c: Update.
12350 * python/py-type.c: Update.
12351 * python/py-unwind.c: Update.
12352 * python/py-utils.c: Update.
12353 * python/py-value.c: Update.
12354 * python/python.c: Update.
12355 * record-btrace.c: Update.
12356 * record-full.c: Update.
12357 * remote-fileio.c: Update.
12358 * remote.c: Update.
12359 * riscv-tdep.c: Update.
12360 * rs6000-aix-tdep.c: Update.
12361 * rs6000-tdep.c: Update.
12362 * rust-exp.y: Update.
12363 * rust-lang.c: Update.
12364 * s390-tdep.c: Update.
12365 * selftest-arch.c: Update.
12366 * solib-dsbt.c: Update.
12367 * solib-frv.c: Update.
12368 * solib-spu.c: Update.
12369 * solib-svr4.c: Update.
12370 * solib.c: Update.
12371 * sparc64-linux-tdep.c: Update.
12372 * stack.c: Update.
12373 * symfile-mem.c: Update.
12374 * symmisc.c: Update.
12375 * target.c: Update.
12376 * thread.c: Update.
12377 * top.c: Update.
12378 * tracefile-tfile.c: Update.
12379 * tui/tui.c: Update.
12380 * typeprint.c: Update.
12381 * unittests/cli-utils-selftests.c: Update.
12382 * unittests/parse-connection-spec-selftests.c: Update.
12383 * valops.c: Update.
12384 * valprint.c: Update.
12385 * value.c: Update.
12386 * varobj.c: Update.
12387 * windows-nat.c: Update.
12388 * x86-linux-nat.c: Update.
12389 * xml-support.c: Update.
12390
a70b8144
TT
123912019-04-08 Tom Tromey <tom@tromey.com>
12392
12393 * xml-support.c: Use C++ exception handling.
12394 * x86-linux-nat.c: Use C++ exception handling.
12395 * windows-nat.c: Use C++ exception handling.
12396 * varobj.c: Use C++ exception handling.
12397 * value.c: Use C++ exception handling.
12398 * valprint.c: Use C++ exception handling.
12399 * valops.c: Use C++ exception handling.
12400 * unittests/parse-connection-spec-selftests.c: Use C++ exception
12401 handling.
12402 * unittests/cli-utils-selftests.c: Use C++ exception handling.
12403 * typeprint.c: Use C++ exception handling.
12404 * tui/tui.c: Use C++ exception handling.
12405 * tracefile-tfile.c: Use C++ exception handling.
12406 * top.c: Use C++ exception handling.
12407 * thread.c: Use C++ exception handling.
12408 * target.c: Use C++ exception handling.
12409 * symmisc.c: Use C++ exception handling.
12410 * symfile-mem.c: Use C++ exception handling.
12411 * stack.c: Use C++ exception handling.
12412 * sparc64-linux-tdep.c: Use C++ exception handling.
12413 * solib.c: Use C++ exception handling.
12414 * solib-svr4.c: Use C++ exception handling.
12415 * solib-spu.c: Use C++ exception handling.
12416 * solib-frv.c: Use C++ exception handling.
12417 * solib-dsbt.c: Use C++ exception handling.
12418 * selftest-arch.c: Use C++ exception handling.
12419 * s390-tdep.c: Use C++ exception handling.
12420 * rust-lang.c: Use C++ exception handling.
12421 * rust-exp.y: Use C++ exception handling.
12422 * rs6000-tdep.c: Use C++ exception handling.
12423 * rs6000-aix-tdep.c: Use C++ exception handling.
12424 * riscv-tdep.c: Use C++ exception handling.
12425 * remote.c: Use C++ exception handling.
12426 * remote-fileio.c: Use C++ exception handling.
12427 * record-full.c: Use C++ exception handling.
12428 * record-btrace.c: Use C++ exception handling.
12429 * python/python.c: Use C++ exception handling.
12430 * python/py-value.c: Use C++ exception handling.
12431 * python/py-utils.c: Use C++ exception handling.
12432 * python/py-unwind.c: Use C++ exception handling.
12433 * python/py-type.c: Use C++ exception handling.
12434 * python/py-symbol.c: Use C++ exception handling.
12435 * python/py-record.c: Use C++ exception handling.
12436 * python/py-record-btrace.c: Use C++ exception handling.
12437 * python/py-progspace.c: Use C++ exception handling.
12438 * python/py-prettyprint.c: Use C++ exception handling.
12439 * python/py-param.c: Use C++ exception handling.
12440 * python/py-objfile.c: Use C++ exception handling.
12441 * python/py-linetable.c: Use C++ exception handling.
12442 * python/py-lazy-string.c: Use C++ exception handling.
12443 * python/py-infthread.c: Use C++ exception handling.
12444 * python/py-inferior.c: Use C++ exception handling.
12445 * python/py-gdb-readline.c: Use C++ exception handling.
12446 * python/py-framefilter.c: Use C++ exception handling.
12447 * python/py-frame.c: Use C++ exception handling.
12448 * python/py-finishbreakpoint.c: Use C++ exception handling.
12449 * python/py-cmd.c: Use C++ exception handling.
12450 * python/py-breakpoint.c: Use C++ exception handling.
12451 * python/py-arch.c: Use C++ exception handling.
12452 * printcmd.c: Use C++ exception handling.
12453 * ppc-linux-tdep.c: Use C++ exception handling.
12454 * parse.c: Use C++ exception handling.
12455 * p-valprint.c: Use C++ exception handling.
12456 * objc-lang.c: Use C++ exception handling.
12457 * mi/mi-main.c: Use C++ exception handling.
12458 * mi/mi-interp.c: Use C++ exception handling.
12459 * mi/mi-cmd-stack.c: Use C++ exception handling.
12460 * mi/mi-cmd-break.c: Use C++ exception handling.
12461 * main.c: Use C++ exception handling.
12462 * linux-thread-db.c: Use C++ exception handling.
12463 * linux-tdep.c: Use C++ exception handling.
12464 * linux-nat.c: Use C++ exception handling.
12465 * linux-fork.c: Use C++ exception handling.
12466 * linespec.c: Use C++ exception handling.
12467 * language.c: Use C++ exception handling.
12468 * jit.c: Use C++ exception handling.
12469 * infrun.c: Use C++ exception handling.
12470 * infcmd.c: Use C++ exception handling.
12471 * infcall.c: Use C++ exception handling.
12472 * inf-loop.c: Use C++ exception handling.
12473 * i386-tdep.c: Use C++ exception handling.
12474 * i386-linux-tdep.c: Use C++ exception handling.
12475 * guile/scm-value.c: Use C++ exception handling.
12476 * guile/scm-type.c: Use C++ exception handling.
12477 * guile/scm-symtab.c: Use C++ exception handling.
12478 * guile/scm-symbol.c: Use C++ exception handling.
12479 * guile/scm-pretty-print.c: Use C++ exception handling.
12480 * guile/scm-ports.c: Use C++ exception handling.
12481 * guile/scm-param.c: Use C++ exception handling.
12482 * guile/scm-math.c: Use C++ exception handling.
12483 * guile/scm-lazy-string.c: Use C++ exception handling.
12484 * guile/scm-frame.c: Use C++ exception handling.
12485 * guile/scm-disasm.c: Use C++ exception handling.
12486 * guile/scm-cmd.c: Use C++ exception handling.
12487 * guile/scm-breakpoint.c: Use C++ exception handling.
12488 * guile/scm-block.c: Use C++ exception handling.
12489 * guile/guile-internal.h: Use C++ exception handling.
12490 * gnu-v3-abi.c: Use C++ exception handling.
12491 * gdbtypes.c: Use C++ exception handling.
12492 * frame.c: Use C++ exception handling.
12493 * frame-unwind.c: Use C++ exception handling.
12494 * fbsd-tdep.c: Use C++ exception handling.
12495 * f-valprint.c: Use C++ exception handling.
12496 * exec.c: Use C++ exception handling.
12497 * event-top.c: Use C++ exception handling.
12498 * event-loop.c: Use C++ exception handling.
12499 * eval.c: Use C++ exception handling.
12500 * dwarf2read.c: Use C++ exception handling.
12501 * dwarf2loc.c: Use C++ exception handling.
12502 * dwarf2-frame.c: Use C++ exception handling.
12503 * dwarf2-frame-tailcall.c: Use C++ exception handling.
12504 * dwarf-index-write.c: Use C++ exception handling.
12505 * dwarf-index-cache.c: Use C++ exception handling.
12506 * dtrace-probe.c: Use C++ exception handling.
12507 * disasm-selftests.c: Use C++ exception handling.
12508 * darwin-nat.c: Use C++ exception handling.
12509 * cp-valprint.c: Use C++ exception handling.
12510 * cp-support.c: Use C++ exception handling.
12511 * cp-abi.c: Use C++ exception handling.
12512 * corelow.c: Use C++ exception handling.
12513 * completer.c: Use C++ exception handling.
12514 * compile/compile-object-run.c: Use C++ exception handling.
12515 * compile/compile-object-load.c: Use C++ exception handling.
12516 * compile/compile-cplus-symbols.c: Use C++ exception handling.
12517 * compile/compile-c-symbols.c: Use C++ exception handling.
12518 * common/selftest.c: Use C++ exception handling.
12519 * common/new-op.c: Use C++ exception handling.
12520 * cli/cli-script.c: Use C++ exception handling.
12521 * cli/cli-interp.c: Use C++ exception handling.
12522 * cli/cli-cmds.c: Use C++ exception handling.
12523 * c-varobj.c: Use C++ exception handling.
12524 * btrace.c: Use C++ exception handling.
12525 * breakpoint.c: Use C++ exception handling.
12526 * break-catch-throw.c: Use C++ exception handling.
12527 * arch-utils.c: Use C++ exception handling.
12528 * amd64-tdep.c: Use C++ exception handling.
12529 * ada-valprint.c: Use C++ exception handling.
12530 * ada-typeprint.c: Use C++ exception handling.
12531 * ada-lang.c: Use C++ exception handling.
12532 * aarch64-tdep.c: Use C++ exception handling.
12533
3d6e9d23
TT
125342019-04-08 Tom Tromey <tom@tromey.com>
12535
12536 * xml-support.c (gdb_xml_parser::parse): Update.
12537 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
12538 * value.c (show_convenience): Update.
12539 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
12540 (test_parse_flags_qcs): Update.
12541 * thread.c (thr_try_catch_cmd): Update.
12542 * target.c (target_translate_tls_address): Update.
12543 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
12544 (info_frame_command_core, frame_apply_command_count): Update.
12545 * rust-exp.y (rust_lex_exception_test): Update.
12546 * riscv-tdep.c (riscv_print_one_register_info): Update.
12547 * remote.c (remote_target::enable_btrace): Update.
12548 * record-btrace.c (record_btrace_enable_warn): Update.
12549 * python/py-utils.c (gdbpy_convert_exception): Update.
12550 * printcmd.c (do_one_display, print_variable_and_value): Update.
12551 * mi/mi-main.c (mi_print_exception): Update.
12552 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
12553 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
12554 * linux-nat.c (linux_nat_target::attach): Update.
12555 * linux-fork.c (class scoped_switch_fork_info): Update.
12556 * infrun.c (displaced_step_prepare): Update.
12557 * infcall.c (call_function_by_hand_dummy): Update.
12558 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
12559 * gnu-v3-abi.c (print_one_vtable): Update.
12560 * frame.c (get_prev_frame_always): Update.
12561 * f-valprint.c (info_common_command_for_block): Update.
12562 * exec.c (try_open_exec_file): Update.
12563 * exceptions.c (print_exception, exception_print)
12564 (exception_fprintf, exception_print_same): Update.
12565 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
12566 * dwarf-index-cache.c (index_cache::store)
12567 (index_cache::lookup_gdb_index): Update.
12568 * darwin-nat.c (maybe_cache_shell): Update.
12569 * cp-valprint.c (cp_print_value_fields): Update.
12570 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
12571 (gcc_cplus_symbol_address): Update.
12572 * compile/compile-c-symbols.c (gcc_convert_symbol)
12573 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
12574 * common/selftest.c: Update.
12575 * common/common-exceptions.h (struct gdb_exception) <message>: Now
12576 a std::string.
12577 (exception_try_scope_entry, exception_try_scope_exit): Don't
12578 declare.
12579 (struct exception_try_scope): Remove.
12580 (TRY): Don't use exception_try_scope.
12581 (struct gdb_exception): Add constructor, operator=.
12582 <what>: New method.
12583 (struct gdb_exception_RETURN_MASK_ALL)
12584 (struct gdb_exception_RETURN_MASK_ERROR)
12585 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
12586 (struct gdb_quit_bad_alloc): Update.
12587 * common/common-exceptions.c (exception_none): Change
12588 initializer.
12589 (struct catcher) <state, exception>: Initialize inline.
12590 <prev>: Remove member.
12591 (current_catcher): Remove.
12592 (catchers): New global.
12593 (exceptions_state_mc_init): Simplify.
12594 (catcher_pop): Remove.
12595 (exceptions_state_mc, exceptions_state_mc_catch): Update.
12596 (try_scope_depth, exception_try_scope_entry)
12597 (exception_try_scope_exit): Remove.
12598 (throw_exception_sjlj): Update.
12599 (exception_messages, exception_messages_size): Remove.
12600 (throw_it): Simplify.
12601 (gdb_exception_sliced_copy): Remove.
12602 (throw_exception_cxx): Update.
12603 * cli/cli-script.c (script_from_file): Update.
12604 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
12605 Update.
12606 * ada-valprint.c (ada_val_print): Update.
12607 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
12608 (create_excep_cond_exprs): Update.
12609
c5c10118
TT
126102019-04-08 Tom Tromey <tom@tromey.com>
12611
12612 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
12613 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
12614 (TRY, CATCH, END_CATCH): Remove some definitions.
12615 * common/common-exceptions.c: Don't use GDB_XCPT.
12616 (catcher_list_size): Remove.
12617 (throw_exception, throw_it): Simplify.
12618
4de283e4
TT
126192019-04-05 Tom Tromey <tom@tromey.com>
12620
12621 Revert the header-sorting patch.
12622 * ft32-tdep.c: Revert.
12623 * frv-tdep.c: Revert.
12624 * frv-linux-tdep.c: Revert.
12625 * frame.c: Revert.
12626 * frame-unwind.c: Revert.
12627 * frame-base.c: Revert.
12628 * fork-child.c: Revert.
12629 * findvar.c: Revert.
12630 * findcmd.c: Revert.
12631 * filesystem.c: Revert.
12632 * filename-seen-cache.h: Revert.
12633 * filename-seen-cache.c: Revert.
12634 * fbsd-tdep.c: Revert.
12635 * fbsd-nat.h: Revert.
12636 * fbsd-nat.c: Revert.
12637 * f-valprint.c: Revert.
12638 * f-typeprint.c: Revert.
12639 * f-lang.c: Revert.
12640 * extension.h: Revert.
12641 * extension.c: Revert.
12642 * extension-priv.h: Revert.
12643 * expprint.c: Revert.
12644 * exec.h: Revert.
12645 * exec.c: Revert.
12646 * exceptions.c: Revert.
12647 * event-top.c: Revert.
12648 * event-loop.c: Revert.
12649 * eval.c: Revert.
12650 * elfread.c: Revert.
12651 * dwarf2read.h: Revert.
12652 * dwarf2read.c: Revert.
12653 * dwarf2loc.c: Revert.
12654 * dwarf2expr.h: Revert.
12655 * dwarf2expr.c: Revert.
12656 * dwarf2-frame.c: Revert.
12657 * dwarf2-frame-tailcall.c: Revert.
12658 * dwarf-index-write.h: Revert.
12659 * dwarf-index-write.c: Revert.
12660 * dwarf-index-common.c: Revert.
12661 * dwarf-index-cache.h: Revert.
12662 * dwarf-index-cache.c: Revert.
12663 * dummy-frame.c: Revert.
12664 * dtrace-probe.c: Revert.
12665 * disasm.h: Revert.
12666 * disasm.c: Revert.
12667 * disasm-selftests.c: Revert.
12668 * dictionary.c: Revert.
12669 * dicos-tdep.c: Revert.
12670 * demangle.c: Revert.
12671 * dcache.h: Revert.
12672 * dcache.c: Revert.
12673 * darwin-nat.h: Revert.
12674 * darwin-nat.c: Revert.
12675 * darwin-nat-info.c: Revert.
12676 * d-valprint.c: Revert.
12677 * d-namespace.c: Revert.
12678 * d-lang.c: Revert.
12679 * ctf.c: Revert.
12680 * csky-tdep.c: Revert.
12681 * csky-linux-tdep.c: Revert.
12682 * cris-tdep.c: Revert.
12683 * cris-linux-tdep.c: Revert.
12684 * cp-valprint.c: Revert.
12685 * cp-support.c: Revert.
12686 * cp-namespace.c: Revert.
12687 * cp-abi.c: Revert.
12688 * corelow.c: Revert.
12689 * corefile.c: Revert.
12690 * continuations.c: Revert.
12691 * completer.h: Revert.
12692 * completer.c: Revert.
12693 * complaints.c: Revert.
12694 * coffread.c: Revert.
12695 * coff-pe-read.c: Revert.
12696 * cli-out.h: Revert.
12697 * cli-out.c: Revert.
12698 * charset.c: Revert.
12699 * c-varobj.c: Revert.
12700 * c-valprint.c: Revert.
12701 * c-typeprint.c: Revert.
12702 * c-lang.c: Revert.
12703 * buildsym.c: Revert.
12704 * buildsym-legacy.c: Revert.
12705 * build-id.h: Revert.
12706 * build-id.c: Revert.
12707 * btrace.c: Revert.
12708 * bsd-uthread.c: Revert.
12709 * breakpoint.h: Revert.
12710 * breakpoint.c: Revert.
12711 * break-catch-throw.c: Revert.
12712 * break-catch-syscall.c: Revert.
12713 * break-catch-sig.c: Revert.
12714 * blockframe.c: Revert.
12715 * block.c: Revert.
12716 * bfin-tdep.c: Revert.
12717 * bfin-linux-tdep.c: Revert.
12718 * bfd-target.c: Revert.
12719 * bcache.c: Revert.
12720 * ax-general.c: Revert.
12721 * ax-gdb.h: Revert.
12722 * ax-gdb.c: Revert.
12723 * avr-tdep.c: Revert.
12724 * auxv.c: Revert.
12725 * auto-load.c: Revert.
12726 * arm-wince-tdep.c: Revert.
12727 * arm-tdep.c: Revert.
12728 * arm-symbian-tdep.c: Revert.
12729 * arm-pikeos-tdep.c: Revert.
12730 * arm-obsd-tdep.c: Revert.
12731 * arm-nbsd-tdep.c: Revert.
12732 * arm-nbsd-nat.c: Revert.
12733 * arm-linux-tdep.c: Revert.
12734 * arm-linux-nat.c: Revert.
12735 * arm-fbsd-tdep.c: Revert.
12736 * arm-fbsd-nat.c: Revert.
12737 * arm-bsd-tdep.c: Revert.
12738 * arch-utils.c: Revert.
12739 * arc-tdep.c: Revert.
12740 * arc-newlib-tdep.c: Revert.
12741 * annotate.h: Revert.
12742 * annotate.c: Revert.
12743 * amd64-windows-tdep.c: Revert.
12744 * amd64-windows-nat.c: Revert.
12745 * amd64-tdep.c: Revert.
12746 * amd64-sol2-tdep.c: Revert.
12747 * amd64-obsd-tdep.c: Revert.
12748 * amd64-obsd-nat.c: Revert.
12749 * amd64-nbsd-tdep.c: Revert.
12750 * amd64-nbsd-nat.c: Revert.
12751 * amd64-nat.c: Revert.
12752 * amd64-linux-tdep.c: Revert.
12753 * amd64-linux-nat.c: Revert.
12754 * amd64-fbsd-tdep.c: Revert.
12755 * amd64-fbsd-nat.c: Revert.
12756 * amd64-dicos-tdep.c: Revert.
12757 * amd64-darwin-tdep.c: Revert.
12758 * amd64-bsd-nat.c: Revert.
12759 * alpha-tdep.c: Revert.
12760 * alpha-obsd-tdep.c: Revert.
12761 * alpha-nbsd-tdep.c: Revert.
12762 * alpha-mdebug-tdep.c: Revert.
12763 * alpha-linux-tdep.c: Revert.
12764 * alpha-linux-nat.c: Revert.
12765 * alpha-bsd-tdep.c: Revert.
12766 * alpha-bsd-nat.c: Revert.
12767 * aix-thread.c: Revert.
12768 * agent.c: Revert.
12769 * addrmap.c: Revert.
12770 * ada-varobj.c: Revert.
12771 * ada-valprint.c: Revert.
12772 * ada-typeprint.c: Revert.
12773 * ada-tasks.c: Revert.
12774 * ada-lang.c: Revert.
12775 * aarch64-tdep.c: Revert.
12776 * aarch64-ravenscar-thread.c: Revert.
12777 * aarch64-newlib-tdep.c: Revert.
12778 * aarch64-linux-tdep.c: Revert.
12779 * aarch64-linux-nat.c: Revert.
12780 * aarch64-fbsd-tdep.c: Revert.
12781 * aarch64-fbsd-nat.c: Revert.
12782 * aarch32-linux-nat.c: Revert.
12783
d55e5aa6
TT
127842019-04-05 Tom Tromey <tom@tromey.com>
12785
12786 * ft32-tdep.c: Sort headers.
12787 * frv-tdep.c: Sort headers.
12788 * frv-linux-tdep.c: Sort headers.
12789 * frame.c: Sort headers.
12790 * frame-unwind.c: Sort headers.
12791 * frame-base.c: Sort headers.
12792 * fork-child.c: Sort headers.
12793 * findvar.c: Sort headers.
12794 * findcmd.c: Sort headers.
12795 * filesystem.c: Sort headers.
12796 * filename-seen-cache.h: Sort headers.
12797 * filename-seen-cache.c: Sort headers.
12798 * fbsd-tdep.c: Sort headers.
12799 * fbsd-nat.h: Sort headers.
12800 * fbsd-nat.c: Sort headers.
12801 * f-valprint.c: Sort headers.
12802 * f-typeprint.c: Sort headers.
12803 * f-lang.c: Sort headers.
12804 * extension.h: Sort headers.
12805 * extension.c: Sort headers.
12806 * extension-priv.h: Sort headers.
12807 * expprint.c: Sort headers.
12808 * exec.h: Sort headers.
12809 * exec.c: Sort headers.
12810 * exceptions.c: Sort headers.
12811 * event-top.c: Sort headers.
12812 * event-loop.c: Sort headers.
12813 * eval.c: Sort headers.
12814 * elfread.c: Sort headers.
12815 * dwarf2read.h: Sort headers.
12816 * dwarf2read.c: Sort headers.
12817 * dwarf2loc.c: Sort headers.
12818 * dwarf2expr.h: Sort headers.
12819 * dwarf2expr.c: Sort headers.
12820 * dwarf2-frame.c: Sort headers.
12821 * dwarf2-frame-tailcall.c: Sort headers.
12822 * dwarf-index-write.h: Sort headers.
12823 * dwarf-index-write.c: Sort headers.
12824 * dwarf-index-common.c: Sort headers.
12825 * dwarf-index-cache.h: Sort headers.
12826 * dwarf-index-cache.c: Sort headers.
12827 * dummy-frame.c: Sort headers.
12828 * dtrace-probe.c: Sort headers.
12829 * disasm.h: Sort headers.
12830 * disasm.c: Sort headers.
12831 * disasm-selftests.c: Sort headers.
12832 * dictionary.c: Sort headers.
12833 * dicos-tdep.c: Sort headers.
12834 * demangle.c: Sort headers.
12835 * dcache.h: Sort headers.
12836 * dcache.c: Sort headers.
12837 * darwin-nat.h: Sort headers.
12838 * darwin-nat.c: Sort headers.
12839 * darwin-nat-info.c: Sort headers.
12840 * d-valprint.c: Sort headers.
12841 * d-namespace.c: Sort headers.
12842 * d-lang.c: Sort headers.
12843 * ctf.c: Sort headers.
12844 * csky-tdep.c: Sort headers.
12845 * csky-linux-tdep.c: Sort headers.
12846 * cris-tdep.c: Sort headers.
12847 * cris-linux-tdep.c: Sort headers.
12848 * cp-valprint.c: Sort headers.
12849 * cp-support.c: Sort headers.
12850 * cp-namespace.c: Sort headers.
12851 * cp-abi.c: Sort headers.
12852 * corelow.c: Sort headers.
12853 * corefile.c: Sort headers.
12854 * continuations.c: Sort headers.
12855 * completer.h: Sort headers.
12856 * completer.c: Sort headers.
12857 * complaints.c: Sort headers.
12858 * coffread.c: Sort headers.
12859 * coff-pe-read.c: Sort headers.
12860 * cli-out.h: Sort headers.
12861 * cli-out.c: Sort headers.
12862 * charset.c: Sort headers.
12863 * c-varobj.c: Sort headers.
12864 * c-valprint.c: Sort headers.
12865 * c-typeprint.c: Sort headers.
12866 * c-lang.c: Sort headers.
12867 * buildsym.c: Sort headers.
12868 * buildsym-legacy.c: Sort headers.
12869 * build-id.h: Sort headers.
12870 * build-id.c: Sort headers.
12871 * btrace.c: Sort headers.
12872 * bsd-uthread.c: Sort headers.
12873 * breakpoint.h: Sort headers.
12874 * breakpoint.c: Sort headers.
12875 * break-catch-throw.c: Sort headers.
12876 * break-catch-syscall.c: Sort headers.
12877 * break-catch-sig.c: Sort headers.
12878 * blockframe.c: Sort headers.
12879 * block.c: Sort headers.
12880 * bfin-tdep.c: Sort headers.
12881 * bfin-linux-tdep.c: Sort headers.
12882 * bfd-target.c: Sort headers.
12883 * bcache.c: Sort headers.
12884 * ax-general.c: Sort headers.
12885 * ax-gdb.h: Sort headers.
12886 * ax-gdb.c: Sort headers.
12887 * avr-tdep.c: Sort headers.
12888 * auxv.c: Sort headers.
12889 * auto-load.c: Sort headers.
12890 * arm-wince-tdep.c: Sort headers.
12891 * arm-tdep.c: Sort headers.
12892 * arm-symbian-tdep.c: Sort headers.
12893 * arm-pikeos-tdep.c: Sort headers.
12894 * arm-obsd-tdep.c: Sort headers.
12895 * arm-nbsd-tdep.c: Sort headers.
12896 * arm-nbsd-nat.c: Sort headers.
12897 * arm-linux-tdep.c: Sort headers.
12898 * arm-linux-nat.c: Sort headers.
12899 * arm-fbsd-tdep.c: Sort headers.
12900 * arm-fbsd-nat.c: Sort headers.
12901 * arm-bsd-tdep.c: Sort headers.
12902 * arch-utils.c: Sort headers.
12903 * arc-tdep.c: Sort headers.
12904 * arc-newlib-tdep.c: Sort headers.
12905 * annotate.h: Sort headers.
12906 * annotate.c: Sort headers.
12907 * amd64-windows-tdep.c: Sort headers.
12908 * amd64-windows-nat.c: Sort headers.
12909 * amd64-tdep.c: Sort headers.
12910 * amd64-sol2-tdep.c: Sort headers.
12911 * amd64-obsd-tdep.c: Sort headers.
12912 * amd64-obsd-nat.c: Sort headers.
12913 * amd64-nbsd-tdep.c: Sort headers.
12914 * amd64-nbsd-nat.c: Sort headers.
12915 * amd64-nat.c: Sort headers.
12916 * amd64-linux-tdep.c: Sort headers.
12917 * amd64-linux-nat.c: Sort headers.
12918 * amd64-fbsd-tdep.c: Sort headers.
12919 * amd64-fbsd-nat.c: Sort headers.
12920 * amd64-dicos-tdep.c: Sort headers.
12921 * amd64-darwin-tdep.c: Sort headers.
12922 * amd64-bsd-nat.c: Sort headers.
12923 * alpha-tdep.c: Sort headers.
12924 * alpha-obsd-tdep.c: Sort headers.
12925 * alpha-nbsd-tdep.c: Sort headers.
12926 * alpha-mdebug-tdep.c: Sort headers.
12927 * alpha-linux-tdep.c: Sort headers.
12928 * alpha-linux-nat.c: Sort headers.
12929 * alpha-bsd-tdep.c: Sort headers.
12930 * alpha-bsd-nat.c: Sort headers.
12931 * aix-thread.c: Sort headers.
12932 * agent.c: Sort headers.
12933 * addrmap.c: Sort headers.
12934 * ada-varobj.c: Sort headers.
12935 * ada-valprint.c: Sort headers.
12936 * ada-typeprint.c: Sort headers.
12937 * ada-tasks.c: Sort headers.
12938 * ada-lang.c: Sort headers.
12939 * aarch64-tdep.c: Sort headers.
12940 * aarch64-ravenscar-thread.c: Sort headers.
12941 * aarch64-newlib-tdep.c: Sort headers.
12942 * aarch64-linux-tdep.c: Sort headers.
12943 * aarch64-linux-nat.c: Sort headers.
12944 * aarch64-fbsd-tdep.c: Sort headers.
12945 * aarch64-fbsd-nat.c: Sort headers.
12946 * aarch32-linux-nat.c: Sort headers.
12947
699bd4cf
TT
129482019-04-04 Tom Tromey <tom@tromey.com>
12949
12950 * varobj.c (varobj_create): Update.
12951 * rust-exp.y (struct rust_parser) <update_innermost_block,
12952 lookup_symbol>: New methods.
12953 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
12954 Rename.
12955 (rust_parser::rust_lookup_type)
12956 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
12957 * printcmd.c (display_command, do_one_display): Update.
12958 * parser-defs.h (struct parser_state) <parser_state>: Add
12959 "tracker" parameter.
12960 (block_tracker): New member.
12961 (class innermost_block_tracker) <innermost_block_tracker>: Add
12962 "types" parameter.
12963 <reset>: Remove method.
12964 (innermost_block): Don't declare.
12965 (null_post_parser): Update.
12966 * parse.c (innermost_block): Remove global.
12967 (write_dollar_variable): Update.
12968 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
12969 Remove "tracker_types" parameter.
12970 (parse_expression): Add "tracker" parameter.
12971 (parse_expression_for_completion): Update.
12972 (null_post_parser): Add "tracker" parameter.
12973 * p-exp.y: Update rules.
12974 * m2-exp.y: Update rules.
12975 * language.h (struct language_defn) <la_post_parser>: Add
12976 "tracker" parameter.
12977 * go-exp.y: Update rules.
12978 * f-exp.y: Update rules.
12979 * expression.h (parse_expression, parse_exp_1): Add "tracker"
12980 parameter.
12981 * d-exp.y: Update rules.
12982 * c-exp.y: Update rules.
12983 * breakpoint.c (set_breakpoint_condition): Create an
12984 innermost_block_tracker.
12985 (watch_command_1): Likewise.
12986 * ada-lang.c (resolve): Add "tracker" parameter.
12987 (resolve_subexp): Likewise.
12988 * ada-exp.y (write_var_from_sym): Update.
12989
dac43e32
TT
129902019-04-04 Tom Tromey <tom@tromey.com>
12991
12992 * type-stack.h: New file.
12993 * type-stack.c: New file.
12994 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
12995 type-stack.h.
12996 (insert_into_type_stack, insert_type, push_type, push_type_int)
12997 (insert_type_address_space, pop_type, pop_type_int)
12998 (pop_typelist, pop_type_stack, append_type_stack)
12999 (push_type_stack, get_type_stack, push_typelist)
13000 (follow_type_instance_flags, follow_types): Don't declare.
13001 * parse.c (type_stack): Remove global.
13002 (parse_exp_in_context): Update.
13003 (insert_into_type_stack, insert_type, push_type, push_type_int)
13004 (insert_type_address_space, pop_type, pop_type_int)
13005 (pop_typelist, pop_type_stack, append_type_stack)
13006 (push_type_stack, get_type_stack, push_typelist)
13007 (follow_type_instance_flags, follow_types): Remove (moved to
13008 type-stack.c).
13009 * f-exp.y (type_stack): New global.
13010 Update rules.
13011 (push_kind_type, f_parse): Update.
13012 * d-exp.y (type_stack): New global.
13013 Update rules.
13014 (d_parse): Update.
13015 * c-exp.y (struct c_parse_state) <type_stack>: New member.
13016 Update rules.
13017 * Makefile.in (COMMON_SFILES): Add type-stack.c.
13018 (HFILES_NO_SRCDIR): Add type-stack.h.
13019
2a612529
TT
130202019-04-04 Tom Tromey <tom@tromey.com>
13021
13022 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
13023 (rust_parser::convert_ast_to_expression, rust_parse)
13024 (rust_lex_test_completion, rust_lex_tests): Update.
13025 * parser-defs.h (struct expr_completion_state): New.
13026 (struct parser_state) <parser_state>: Add completion parameter.
13027 <mark_struct_expression, mark_completion_tag>: New methods.
13028 <parse_completion, m_completion_state>: New members.
13029 (prefixify_expression, null_post_parser): Update.
13030 (mark_struct_expression, mark_completion_tag): Don't declare.
13031 * parse.c (parse_completion, expout_last_struct)
13032 (expout_tag_completion_type, expout_completion_name): Remove
13033 globals.
13034 (parser_state::mark_struct_expression)
13035 (parser_state::mark_completion_tag): Now methods.
13036 (prefixify_expression): Add last_struct parameter.
13037 (prefixify_subexp): Likewise.
13038 (parse_exp_1): Update.
13039 (parse_exp_in_context): Add cstate parameter. Update.
13040 (parse_expression_for_completion): Create an
13041 expr_completion_state.
13042 (null_post_parser): Add "completion" parameter.
13043 * p-exp.y: Update rules.
13044 (yylex): Update.
13045 * language.h (struct language_defn) <la_post_parser>: Add
13046 "completing" parameter.
13047 * go-exp.y: Update rules.
13048 (lex_one_token): Update.
13049 * expression.h (parse_completion): Don't declare.
13050 * d-exp.y: Update rules.
13051 (lex_one_token): Update rules.
13052 * c-exp.y: Update rules.
13053 (lex_one_token): Update.
13054 * ada-lang.c (resolve): Add "parse_completion" parameter.
13055 (resolve_subexp): Likewise.
13056 (ada_resolve_function): Likewise.
13057
43476f0b
TT
130582019-04-04 Tom Tromey <tom@tromey.com>
13059
13060 * parser-defs.h (struct parser_state) <start_arglist,
13061 end_arglist>: New methods.
13062 <arglist_len, m_funcall_chain>: New members.
13063 (arglist_len, start_arglist, end_arglist): Don't declare.
13064 * parse.c (arglist_len, funcall_chain): Remove global.
13065 (start_arglist, end_arglist): Remove functions.
13066 (parse_exp_in_context): Update.
13067 * p-exp.y: Update rules.
13068 * m2-exp.y: Update rules.
13069 * go-exp.y: Update rules.
13070 * f-exp.y: Update rules.
13071 * d-exp.y: Update rules.
13072 * c-exp.y: Update rules.
13073
5776fca3
TT
130742019-04-04 Tom Tromey <tom@tromey.com>
13075
13076 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
13077 lex_operator, push_back>: New methods.
13078 Update all rules.
13079 (rust_parser::lex_hex, lex_escape): Rename and update.
13080 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
13081 (rust_parser::lex_operator): Rename and update.
13082 (rust_parser::lex_number, rustyylex, rustyyerror)
13083 (rust_lex_test_init, rust_lex_test_sequence)
13084 (rust_lex_test_push_back, rust_lex_tests): Update.
13085 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
13086 parameter.
13087 <lexptr, prev_lexptr>: New members.
13088 (lexptr, prev_lexptr): Don't declare.
13089 * parse.c (lexptr, prev_lexptr): Remove globals.
13090 (parse_exp_in_context): Update.
13091 * p-exp.y (yylex, yyerror): Update.
13092 * m2-exp.y (parse_number, yylex, yyerror): Update.
13093 * go-exp.y (lex_one_token, yyerror): Update.
13094 * f-exp.y (match_string_literal, yylex, yyerror): Update.
13095 * d-exp.y (lex_one_token, yyerror): Update.
13096 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
13097 (lex_one_token, yyerror): Update.
13098 * ada-lex.l (YY_INPUT): Update.
13099 (rewind_to_char): Update.
13100 * ada-exp.y (yyerror): Update.
13101
8621b685
TT
131022019-04-04 Tom Tromey <tom@tromey.com>
13103
13104 * rust-exp.y (rustyylex, rust_lex_tests): Update.
13105 * parser-defs.h (struct parser_state) <parser_state>: Add new
13106 parameter.
13107 <comma_terminates>: New member.
13108 (comma_terminates): Don't declare global.
13109 * parse.c (comma_terminates): Remove global.
13110 (parse_exp_in_context): Update.
13111 * p-exp.y (yylex): Update.
13112 * m2-exp.y (yylex): Update.
13113 * go-exp.y (lex_one_token): Update.
13114 * f-exp.y (yylex): Update.
13115 * d-exp.y (lex_one_token): Update.
13116 * c-exp.y (lex_one_token): Update.
13117 * ada-lex.l: Update.
13118
28aaf3fd
TT
131192019-04-04 Tom Tromey <tom@tromey.com>
13120
13121 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
13122 (rustyylex, rust_lex_test_init, rust_lex_test_one)
13123 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
13124 * parser-defs.h (paren_depth): Don't declare.
13125 * parse.c (paren_depth): Remove global.
13126 (parse_exp_in_context): Update.
13127 * p-exp.y (paren_depth): New global.
13128 (pascal_parse): Initialize it.
13129 * m2-exp.y (paren_depth): New global.
13130 (m2_parse): Initialize it.
13131 * go-exp.y (paren_depth): New global.
13132 (go_parse): Initialize it.
13133 * f-exp.y (paren_depth): New global.
13134 (f_parse): Initialize it.
13135 * d-exp.y (paren_depth): New global.
13136 (d_parse): Initialize it.
13137 * c-exp.y (paren_depth): New global.
13138 (c_parse): Initialize it.
13139 * ada-lex.l (paren_depth): New global.
13140 (lexer_init): Initialize it.
13141
1e58a4a4
TT
131422019-04-04 Tom Tromey <tom@tromey.com>
13143
13144 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
13145 (rust_parser::convert_ast_to_type)
13146 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
13147 * parser-defs.h (struct parser_state) <parser_state>: Add
13148 parameters. Initialize new members.
13149 <expression_context_block, expression_context_pc>: New members.
13150 * parse.c (expression_context_block, expression_context_pc):
13151 Remove globals.
13152 (parse_exp_in_context): Update.
13153 * p-exp.y: Update all rules.
13154 (yylex): Update.
13155 * m2-exp.y: Update all rules.
13156 (yylex): Update.
13157 * go-exp.y (yylex): Update.
13158 * f-exp.y (yylex): Update.
13159 * d-exp.y: Update all rules.
13160 (yylex): Update.
13161 * c-exp.y: Update all rules.
13162 (lex_one_token, classify_name, yylex, c_parse): Update.
13163 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
13164
37eedb39
TT
131652019-04-04 Tom Tromey <tom@tromey.com>
13166
13167 * gdbarch.h, gdbarch.c: Rebuild.
13168 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
13169 * stap-probe.h:
13170 (struct stap_parse_info): Replace "parser_state" with
13171 "expr_builder".
13172 * parser-defs.h (struct expr_builder): Rename from "parser_state".
13173 (parser_state): New class.
13174 * parse.c (expr_builder): Rename.
13175 (expr_builder::release): Rename.
13176 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
13177 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
13178 (write_exp_elt_longcst, write_exp_elt_floatcst)
13179 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
13180 (write_exp_string_vector, write_exp_bitstring)
13181 (write_exp_msymbol, mark_struct_expression)
13182 (write_dollar_variable)
13183 (insert_type_address_space, increase_expout_size): Replace
13184 "parser_state" with "expr_builder".
13185 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
13186 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
13187 "parser_state" with "expr_builder".
13188
73923d7e
TT
131892019-04-04 Tom Tromey <tom@tromey.com>
13190
13191 * rust-exp.y: Replace "parse_language" with method call.
13192 * p-exp.y:
13193 (yylex): Replace "parse_language" with method call.
13194 * m2-exp.y:
13195 (yylex): Replace "parse_language" with method call.
13196 * go-exp.y (classify_name): Replace "parse_language" with method
13197 call.
13198 * f-exp.y (yylex): Replace "parse_language" with method call.
13199 * d-exp.y (lex_one_token): Replace "parse_language" with method
13200 call.
13201 * c-exp.y:
13202 (lex_one_token, classify_name, yylex): Replace "parse_language"
13203 with method call.
13204 * ada-exp.y (find_primitive_type, type_char)
13205 (type_system_address): Replace "parse_language" with method call.
13206
fa9f5be6
TT
132072019-04-04 Tom Tromey <tom@tromey.com>
13208
13209 * rust-exp.y: Replace "parse_gdbarch" with method call.
13210 * parse.c (write_dollar_variable, insert_type_address_space):
13211 Replace "parse_gdbarch" with method call.
13212 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
13213 call.
13214 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
13215 call.
13216 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
13217 "parse_gdbarch" with method call.
13218 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
13219 with method call.
13220 * f-exp.y (parse_type, parse_f_type, yylex): Replace
13221 "parse_gdbarch" with method call.
13222 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
13223 "parse_gdbarch" with method call.
13224 * c-exp.y (parse_type, parse_number, classify_name): Replace
13225 "parse_gdbarch" with method call.
13226 * ada-lex.l: Replace "parse_gdbarch" with method call.
13227 * ada-exp.y (parse_type, find_primitive_type, type_char)
13228 (type_system_address): Replace "parse_gdbarch" with method call.
13229
1201a264
TT
132302019-04-04 Tom Tromey <tom@tromey.com>
13231
13232 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
13233 * stap-probe.c (stap_parse_argument): Update.
13234 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
13235 initial_size parameter.
13236 * rust-exp.y (rust_lex_tests): Update.
13237 * parse.c (parser_state): Update.
13238 (parse_exp_in_context): Update.
13239 * parser-defs.h (struct parser_state) <parser_state>: Remove
13240 "initial_size" parameter.
13241
e3980ce2
TT
132422019-04-04 Tom Tromey <tom@tromey.com>
13243
13244 * parser-defs.h (increase_expout_size): Don't declare.
13245 * parse.c (increase_expout_size): Now static.
13246
e9f8e3f1
TS
132472019-04-04 Thomas Schwinge <thomas@codesourcery.com>
13248
13249 * gnu-nat.c (gnu_nat_target::wait): Fix
13250 target_waitstatus_to_string call.
13251
d7df6549
AB
132522019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
13253
13254 * eval.c (evaluate_subexp_standard): Handle internal functions
13255 during Fortran function call handling.
13256
8bdc1658
AB
132572019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
13258
13259 * NEWS: Mention new internal functions.
13260 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
13261 (read_base_type): Use dwarf2_init_complex_target_type.
13262 * value.c (creal_internal_fn): New function.
13263 (cimag_internal_fn): New function.
13264 (_initialize_values): Register new internal functions.
13265
c29705b7
PW
132662019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13267
13268 * infrun.c (stop_all_threads): If debug_infrun, always
13269 trace the wait status after wait_one, using
13270 target_waitstatus_to_string and target_pid_to_str.
13271 (handle_inferior_event): Replace various trace of
13272 wait status kind by a single trace.
13273 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
13274 wait status kind image by target_waitstatus_to_string.
13275 * target/waitstatus.c (target_waitstatus_to_string): Fix
13276 obsolete comment.
13277
05caa1d2
TT
132782019-04-01 Tom Tromey <tromey@adacore.com>
13279
13280 PR symtab/23331:
13281 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
13282
9d1447e0
SDJ
132832019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
13284 Pedro Alves <palves@redhat.com>
13285
13286 * top.c (quit_force): Call 'finalize_values'.
13287 * value.c (finalize_values): New function.
13288 * value.h (finalize_values): Declare.
13289
7734102d
EZ
132902019-03-30 Eli Zaretskii <eliz@gnu.org>
13291
13292 * NEWS: Announce $_gdb_major and $_gdb_minor.
13293
13294 * top.c (init_gdb_version_vars): New function.
13295 (gdb_init): Call init_gdb_version_vars.
13296
188e1fa9
TT
132972019-03-29 Tom Tromey <tromey@adacore.com>
13298
13299 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
13300 help text. Remove dead code.
13301
2880242d
KS
133022019-03-29 Keith Seitz <keiths@redhat.com>
13303
13304 From Siddhesh Poyarekar:
13305 * f-lang.h (f77_get_upperbound): Return LONGEST.
13306 (f77_get_lowerbound): Likewise.
13307 * f-typeprint.c (f_type_print_varspec_suffix): Expand
13308 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
13309 print them.
13310 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
13311 plongest to format print it.
13312 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
13313 (f77_get_upperbound): Likewise.
13314 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
13315 LOWER_BOUND to LONGEST.
13316 (f77_create_arrayprint_offset_tbl): Likewise.
13317
cc1defb1
KS
133182019-03-29 Keith Seitz <keiths@redhat.com>
13319
13320 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
13321 %s/pulongest for TYPE_LENGTH instead of %d in format
13322 strings.
13323 * ada-typerint.c (ada_print_type): Likewise.
13324 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
13325 * compile/compile-c-support.c (generate_register_struct): Likewise.
13326 * gdbtypes.c (recursive_dump_type): Likewise.
13327 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
13328 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
13329 instead of %d in format strings.
13330 * riscv-tdep.c (riscv_type_alignment): Cast second argument
13331 to std::min to ULONGEST.
13332 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
13333 instead of %d in format strings.
13334 * tracepoint.c (info_scope_command): Likewise.
13335 * typeprint.c (print_offset_data::update)
13336 (print_offset_data::finish): Likewise.
13337 * xtensa-tdep.c (xtensa_store_return_value)
13338 (xtensa_push_dummy_call): Likewise.
13339
e432ccf1
JT
133402019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
13341
13342 * windows-nat.c (display_selector): Fixed format specifications
13343 for 64-bit Cygwin.
13344
65d2b333
PW
133452019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13346
13347 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
13348
f489207e
SL
133492019-03-28 Sandra Loosemore <sandra@codesourcery.com>
13350
13351 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
13352 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
13353 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
13354 (nios2_linux_init_abi): Install it.
13355
bffa1015
AH
133562019-03-28 Alan Hayward <alan.hayward@arm.com>
13357
13358 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
13359
fc96163a
AH
133602019-03-28 Alan Hayward <alan.hayward@arm.com>
13361
13362 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
13363
20dc7e9b
PW
133642019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13365 Tom Tromey <tromey@adacore.com>
13366
13367 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
13368
7f5331a8
JB
133692019-03-26 Joel Brobecker <brobecker@adacore.com>
13370
13371 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
13372 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
13373 method to compute the bounds of range types. Also print "[evaluated]"
13374 if the bounds' values come from a dynamic evaluation.
13375
18c77628
AB
133762019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
13377
13378 * cp-valprint.c (cp_print_value_fields): Don't print trailing
13379 whitespace when pretty printing is on.
13380
53c973f2
AH
133812019-03-26 Alan Hayward <alan.hayward@arm.com>
13382
e79be6e5 13383 * ppc-linux-nat.c: Add include.
53c973f2 13384
d851aa71
AH
133852019-03-26 Alan Hayward <alan.hayward@arm.com>
13386
e79be6e5 13387 * NEWS: Mention AArch64 Pointer Authentication.
d851aa71 13388
2fe7bab7
AH
133892019-03-26 Alan Hayward <alan.hayward@arm.com>
13390
e79be6e5 13391 * arm-linux-nat.c: Add include.
2fe7bab7 13392
068ef30e
SM
133932019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
13394
13395 * source-cache.c (source_cache::get_source_lines): Re-read
13396 fullname after calling open_source_file.
13397
81a24d04
JB
133982019-03-25 John Baldwin <jhb@FreeBSD.org>
13399
13400 * NEWS: Mention TLS support for FreeBSD.
13401
79e7ae11
TT
134022019-03-25 Tom Tromey <tromey@adacore.com>
13403
13404 * minsyms.c (BUNCH_SIZE): Update comment.
13405 (~minimal_symbol_reader): Remove old comment.
13406 (compact_minimal_symbols): Update comment.
13407 (minimal_symbol_reader::install): Remove old comment. Update
13408 other comments.
13409
d45963c2
AH
134102019-03-25 Alan Hayward <alan.hayward@arm.com>
13411
13412 * s390-linux-nat.c: Add include.
13413
0f83012e
AH
134142019-03-25 Alan Hayward <alan.hayward@arm.com>
13415
13416 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
13417 Call linux_get_hwcap.
13418 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
13419 Likewise.
13420 (aarch64_linux_get_hwcap): Remove function.
13421 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
13422 declaration.
13423 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
13424 linux_get_hwcap.
13425 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
13426 * linux-tdep.c (linux_get_hwcap): Add function.
13427 (linux_get_hwcap2): Likewise.
13428 * linux-tdep.h (linux_get_hwcap): Add declaration.
13429 (linux_get_hwcap2): Likewise.
13430 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
13431 (ppc_linux_get_hwcap2): Likewise.
13432 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
13433 linux_get_hwcap.
13434 (ppc_linux_nat_target::insert_watchpoint): Likewise.
13435 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
13436 (ppc_linux_nat_target::read_description): Likewise.
13437 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
13438 * s390-linux-nat.c: Likewise.
13439 * s390-linux-tdep.c (s390_core_read_description): Likewise.
13440
6640a367
TT
134412019-03-24 Tom Tromey <tom@tromey.com>
13442
13443 * ada-lang.c (standard_lookup): Simplify initialization.
13444 (ada_lookup_symbol_nonlocal): Simplify return.
13445 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
13446 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
13447 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
13448 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
13449 initialization.
13450 * solib.c (solib_global_lookup): Simplify.
13451 * symtab.c (null_block_symbol): Remove.
13452 (symbol_cache_lookup): Simplify returns.
13453 (lookup_language_this): Simplify returns.
13454 (lookup_symbol_aux): Simplify return.
13455 (lookup_local_symbol): Simplify returns.
13456 (lookup_global_symbol_from_objfile): Simplify return.
13457 (lookup_symbol_in_objfile_symtabs)
13458 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
13459 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
13460 (lookup_static_symbol, lookup_global_symbol): Simplify return.
13461 * cp-namespace.c (cp_lookup_bare_symbol)
13462 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
13463 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
13464 (cp_lookup_nested_symbol): Don't use null_block_symbol.
13465 (cp_lookup_symbol_via_imports): Simplify initialization.
13466 (find_symbol_in_baseclass): Likewise.
13467 * symtab.h (null_block_symbol): Remove.
13468 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
13469 (d_lookup_nested_symbol, d_lookup_symbol_imports)
13470 (d_lookup_symbol_module): Likewise.
13471 (find_symbol_in_baseclass): Simplify initialization.
13472
a930ebcd
TT
134732019-03-24 Tom Tromey <tom@tromey.com>
13474
13475 * expression.h: Don't include symtab.h.
13476 (struct block): Forward declare.
13477
582942f4
TT
134782019-03-24 Tom Tromey <tom@tromey.com>
13479
13480 * c-exp.y (typebase): Remove casts.
13481 * gdbtypes.c (lookup_unsigned_typename, )
13482 (lookup_signed_typename): Remove cast.
13483 * eval.c (parse_to_comma_and_eval): Remove cast.
13484 * parse.c (write_dollar_variable): Remove cast.
13485 * block.h (struct block) <superblock>: Now const.
13486 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
13487 * psymtab.c (psym_map_matching_symbols): Make "block" const.
13488 (map_block): Make "block" const.
13489 * symfile.h (struct quick_symbol_functions)
13490 <map_matching_symbols>: Constify block argument to "callback".
13491 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
13492 const.
13493 (find_pc_sect_compunit_symtab): Make "b" const.
13494 (find_symbol_at_address): Likewise.
13495 (search_symbols): Likewise.
13496 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
13497 (dw2_debug_names_lookup_symbol): Likewise.
13498 (dw2_map_matching_symbols): Update.
13499 * p-valprint.c (pascal_val_print): Remove "block".
13500 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
13501 (aux_add_nonlocal_symbols): Make "block" const.
13502 (resolve_subexp): Remove cast.
13503 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
13504 const.
13505 (iterate_over_file_blocks): Likewise.
13506 * f-exp.y (%union) <bval>: Remove.
13507 * coffread.c (patch_opaque_types): Make "b" const.
13508 * spu-tdep.c (spu_catch_start): Make "block" const.
13509 * c-valprint.c (print_unpacked_pointer): Remove "block".
13510 * symmisc.c (dump_symtab_1): Make "b" const.
13511 (block_depth): Make "block" const.
13512 * d-exp.y (%union) <bval>: Remove.
13513 * cp-support.h (cp_lookup_rtti_type): Update.
13514 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
13515 * psymtab.c (psym_lookup_symbol): Make "block" const.
13516 (maintenance_check_psymtabs): Make "b" const.
13517 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
13518 (enumerate_locals, enumerate_args): Update.
13519 * python/py-symtab.c (stpy_global_block): Make "block" const.
13520 (stpy_static_block): Likewise.
13521 * inline-frame.c (block_starting_point_at): Make "new_block"
13522 const.
13523 * block.c (find_block_in_blockvector): Make return type const.
13524 (blockvector_for_pc_sect): Make "b" const.
13525 (find_block_in_blockvector): Make "b" const.
13526
7ad417dd
TT
135272019-03-23 Tom Tromey <tom@tromey.com>
13528
13529 * varobj.c (varobj_create): Update.
13530 * symfile.c (clear_symtab_users): Don't reset innermost_block.
13531 * printcmd.c (display_command, do_one_display): Don't reset
13532 innermost_block.
13533 * parser-defs.h (enum innermost_block_tracker_type): Move to
13534 expression.h.
13535 (innermost_block): Update comment.
13536 * parse.c (parse_exp_1): Add tracker_types parameter.
13537 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
13538 tracker_types parameter. Reset innermost_block.
13539 (parse_exp_in_context): Remove.
13540 (parse_expression_for_completion): Update.
13541 * objfiles.c (~objfile): Don't reset expression_context_block or
13542 innermost_block.
13543 * expression.h (enum innermost_block_tracker_type): Move from
13544 parser-defs.h.
13545 (parse_exp_1): Add tracker_types parameter.
13546 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
13547 reset innermost_block.
13548
b366c208
TT
135492019-03-23 Tom Tromey <tom@tromey.com>
13550
13551 * objfiles.h: Include bcache.h.
13552
9bb9b2f9
TT
135532019-03-23 Tom Tromey <tom@tromey.com>
13554
13555 * linespec.c (get_current_search_block): Use
13556 scoped_restore_current_language.
13557 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
13558
59c28372
AH
135592019-03-22 Alan Hayward <alan.hayward@arm.com>
13560 Jiong Wang <jiong.wang@arm.com>
13561
13562 * aarch64-linux-tdep.c
13563 (aarch64_linux_iterate_over_regset_sections): Check for pauth
13564 section.
13565 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
13566
17e116a7
AH
135672019-03-22 Alan Hayward <alan.hayward@arm.com>
13568 Jiong Wang <jiong.wang@arm.com>
13569
13570 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
13571 instructions.
13572 (aarch64_analyze_prologue_test): Add PACIASP test.
13573 (aarch64_prologue_prev_register): Unmask PC value.
13574
11e1b75f
AH
135752019-03-22 Alan Hayward <alan.hayward@arm.com>
13576 Jiong Wang <jiong.wang@arm.com>
13577
13578 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
13579 (aarch64_dwarf2_prev_register): Unmask PC value.
13580 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
13581 (aarch64_execute_dwarf_cfa_vendor_op): Check for
13582 DW_CFA_AARCH64_negate_ra_state.
13583 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
13584
34dcc7cf
AH
135852019-03-22 Alan Hayward <alan.hayward@arm.com>
13586 Jiong Wang <jiong.wang@arm.com>
13587
13588 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
13589 registers.
13590 (aarch64_pseudo_register_name): Likewise.
13591 (aarch64_pseudo_register_type): Likewise.
13592 (aarch64_pseudo_register_reggroup_p): Likewise.
13593 (aarch64_gdbarch_init): Add pauth registers.
13594 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
13595 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
13596 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
13597 (struct gdbarch_tdep): Add regnum for ra_state.
13598
1ef53e6b
AH
135992019-03-22 Alan Hayward <alan.hayward@arm.com>
13600 Jiong Wang <jiong.wang@arm.com>
13601
13602 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
13603
76bed0fd
AH
136042019-03-22 Alan Hayward <alan.hayward@arm.com>
13605 Jiong Wang <jiong.wang@arm.com>
13606
13607 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
13608 function.
13609 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
13610 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
13611 (aarch64_gdbarch_init): Add puth registers.
13612 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
13613 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
13614 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
13615
ee4fbcfa
AH
136162019-03-22 Alan Hayward <alan.hayward@arm.com>
13617 Jiong Wang <jiong.wang@arm.com>
13618
13619 * aarch64-linux-nat.c
13620 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
13621 * aarch64-linux-tdep.c
13622 (aarch64_linux_core_read_description): Likewise.
13623 (aarch64_linux_get_hwcap): New function.
13624 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
13625 (aarch64_linux_get_hwcap): New declaration.
13626
6dc0ebde
AH
136272019-03-22 Alan Hayward <alan.hayward@arm.com>
13628 Jiong Wang <jiong.wang@arm.com>
13629
13630 * aarch64-linux-nat.c
13631 (aarch64_linux_nat_target::read_description): Add pauth param.
13632 * aarch64-linux-tdep.c
13633 (aarch64_linux_core_read_description): Likewise.
13634 * aarch64-tdep.c (struct target_desc): Add in pauth.
13635 (aarch64_read_description): Add pauth param.
13636 (aarch64_gdbarch_init): Likewise.
13637 * aarch64-tdep.h (aarch64_read_description): Likewise.
13638 * arch/aarch64.c (aarch64_create_target_description): Likewise.
13639 * arch/aarch64.h (aarch64_create_target_description): Likewise.
13640 * features/Makefile: Add new files.
13641 * features/aarch64-pauth.c: New file.
13642 * features/aarch64-pauth.xml: New file.
13643
595915c1
TT
136442019-03-20 Tom Tromey <tromey@adacore.com>
13645
13646 * infrun.c (handle_inferior_event): Rename from
13647 handle_inferior_event_1. Create a scoped_value_mark.
13648 (handle_inferior_event): Remove.
13649
4c7d57e7
TT
136502019-03-19 Tom Tromey <tromey@adacore.com>
13651
13652 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
13653 * infrun.h (print_stop_event): Add "displays" parameter.
13654 * infrun.c (print_stop_event): Add "displays" parameter.
13655
cb246234
PA
136562019-03-19 Pedro Alves <palves@redhat.com>
13657
13658 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
13659 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
13660 to -1. Fix TABs vs spaces.
13661 (tui_ui_out::tui_ui_out): Don't initialize fields here.
13662 * tui/tui-out.h (tui_ui_out) Add intro comments.
13663 <m_line, m_start_of_line>: In-class initialize, and add describing
13664 comment.
13665
3a0e45b2
AH
136662019-03-18 Alan Hayward <alan.hayward@arm.com>
13667
13668 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
13669 variable names.
13670 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
13671
5371b850
PA
136722019-03-18 Pedro Alves <palves@redhat.com>
13673 Eli Zaretskii <eliz@gnu.org>
13674
13675 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
13676 m_line and m_start_of_line.
13677
b17c4cd0
EZ
136782019-03-18 Eli Zaretskii <eliz@gnu.org>
13679
13680 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
13681 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
13682 it returns a newline. This fixes a regression in TU mode, whereby
13683 the next line is output on the same screen line as the user input.
13684
4bd56d18
TT
136852019-03-18 Tom Tromey <tromey@adacore.com>
13686
13687 * minsyms.c (minimal_symbol_reader::install): Remove call to
13688 obstack_blank.
13689
55c10aca
PA
136902019-03-18 Pedro Alves <palves@redhat.com>
13691
13692 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
13693 New globals.
13694 (apply_style): New, factored out from ...
13695 (apply_ansi_escape): ... this. Handle reverse video mode.
13696 (tui_set_reverse_mode): New function.
13697 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
13698 * tui/tui-winsource.c (tui_show_source_line): Use
13699 tui_set_reverse_mode instead of setting A_STANDOUT.
13700 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
13701 New setter methods.
13702
647bb750
HD
137032019-03-18 Hannes Domani <ssbssa@yahoo.de>
13704
13705 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
13706 Handle tabs.
13707
bff8c71f
TT
137082019-03-18 Tom Tromey <tromey@adacore.com>
13709
13710 * ada-lang.c (empty_array): Add "high" parameter.
13711 (ada_evaluate_subexp): Update.
13712
58785d98
ST
137132019-03-17 Sergei Trofimovich <siarheit@google.com>
13714
13715 * unittests/string_view-selftests.c: Define
13716 _initialize_string_view_selftests unconditionally.
13717
d4cbef22
ВМ
137182019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
13719
13720 PR gdb/24350
13721 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
13722
fce4c071
ВМ
137232019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
13724
13725 PR gdb/24351
13726 * windows-nat.c (display_selector): Fix format specifiers.
13727
f7f0a123
EZ
137282019-03-17 Eli Zaretskii <eliz@gnu.org>
13729
13730 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
13731 tui_refill_source_window instead of tui_refresh_win, to update the
13732 current execution line. This fixes redisplay of the current line
13733 when stepping through the code with "next" or "step".
13734
ab42892f
EZ
137352019-03-16 Eli Zaretskii <eliz@gnu.org>
13736
13737 * source-cache.c (source_cache::get_source_lines): Call
13738 find_source_lines to initialize s->nlines. This fixes vertical
13739 scrolling of TUI source window when the DOWN arrow is pressed.
13740
8d8c087f
PW
137412019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13742
13743 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
13744 linux-thread-db.c (_initialize_thread_db): Likewise.
13745
798e1c30
EZ
137462019-03-16 Eli Zaretskii <eliz@gnu.org>
13747
13748 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
13749 wclrtoeol in tui_show_source_line". This reverts changes made in
13750 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
13751
eefba3da
TT
137522019-03-15 Tom Tromey <tom@tromey.com>
13753
13754 * symtab.h (struct minimal_symbol): Derive from
13755 general_symbol_info.
13756 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
13757 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
13758 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
13759 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
13760 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
13761 (MSYMBOL_SEARCH_NAME): Update.
13762 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
13763 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
13764 * minsyms.c (minimal_symbol_reader::record_full): Update.
13765
0de2420c
TT
137662019-03-15 Tom Tromey <tom@tromey.com>
13767
13768 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
13769
042d75e4
TT
137702019-03-15 Tom Tromey <tom@tromey.com>
13771
13772 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
13773 unique_xmalloc_ptr.
13774 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
13775 Update.
13776 * minsyms.c (lookup_minimal_symbol_by_pc_section)
13777 (build_minimal_symbol_hash_tables)
13778 (minimal_symbol_reader::install): Update.
13779
db92718b
TT
137802019-03-15 Tom Tromey <tom@tromey.com>
13781
13782 * symtab.c (create_demangled_names_hash): Update.
13783 (symbol_set_names): Update.
13784 * objfiles.h (struct objfile_per_bfd_storage)
13785 <demangled_names_hash>: Now an htab_up.
13786 * objfiles.c (objfile_per_bfd_storage): Simplify.
13787
d6797f46
TT
137882019-03-15 Tom Tromey <tom@tromey.com>
13789
13790 * objfiles.h (struct objfile_per_bfd_storage): Declare
13791 destructor.
13792 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
13793 New.
13794 (get_objfile_bfd_data): Use new. Don't initialize
13795 language_of_main.
13796 (free_objfile_per_bfd_storage): Remove.
13797 (objfile_bfd_data_free, objfile::~objfile): Use delete.
13798
741d7538
TT
137992019-03-15 Tom Tromey <tom@tromey.com>
13800
13801 * symfile.c (reread_symbols): Update.
13802 * objfiles.c (objfile::objfile): Update.
13803 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
13804 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
13805 comment.
13806 (minimal_symbol_reader::install): Update.
13807 (terminate_minimal_symbol_table): Remove.
13808 * jit.c (jit_object_close_impl): Update.
13809
788c80d1
TT
138102019-03-15 Tom Tromey <tom@tromey.com>
13811
13812 * minsyms.c (minimal_symbol_reader::record_full): Remove some
13813 initializations.
13814
1b7a07cb
TT
138152019-03-15 Tom Tromey <tom@tromey.com>
13816
13817 * objfiles.h (struct objfile_per_bfd_storage)
13818 <demangled_hash_languages>: Now a bitset.
13819 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
13820 (lookup_minimal_symbol): Update.
13821
3db066bc
TT
138222019-03-15 Tom Tromey <tom@tromey.com>
13823
13824 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
13825 Don't return the symbol.
13826 * coffread.c (record_minimal_symbol): Use record_full.
13827
3fff2c37
EZ
138282019-03-14 Eli Zaretskii <eliz@gnu.org>
13829
13830 The MS-Windows port of ncurses fails to switch to a color pair if
13831 one or both of the colors are the implicit default colors. This
13832 change records the default colors when TUI is initialized, and
13833 then specifies them explicitly when a color pair uses the default
13834 colors. This allows color styling in TUI mode on MS-Windows.
13835
13836 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
13837 ncurses_norm_attr.
13838 (tui_initialize_io) [__MINGW32__]: Record the default terminal
13839 colors in ncurses_norm_attr.
13840 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
13841 "none", replace it with the default color recorded in
13842 ncurses_norm_attr.
13843
3b336828
TT
138442019-03-14 Tom Tromey <tromey@adacore.com>
13845
13846 * source-cache.h (class source_cache) <get_source_lines>: Return
13847 std::string.
13848 * source-cache.c (source_cache::extract_lines): Handle case where
13849 first_pos==npos. Return std::string.
13850 (source_cache::get_source_lines): Update.
13851
d085f989
TT
138522019-03-14 Tom Tromey <tromey@adacore.com>
13853
13854 * NEWS: Add item for "style sources" commands.
13855 * source-cache.c (source_cache::get_source_lines): Check
13856 source_styling.
13857 * cli/cli-style.c (source_styling): New global.
13858 (_initialize_cli_style): Add "style sources" commands.
13859 (show_style_sources): New function.
13860 * cli/cli-style.h (source_styling): Declare.
13861
6f11e682
TT
138622019-03-14 Pedro Alves <palves@redhat.com>
13863 Tom Tromey <tromey@adacore.com>
13864
13865 * tui/tui-winsource.h (tui_refill_source_window): Declare.
13866 * tui/tui-winsource.c (tui_refill_source_window): New function,
13867 from...
13868 (tui_horizontal_source_scroll): ... here. Move some logic.
13869 * cli/cli-style.c (set_style_enabled): Notify new observable.
13870 * tui/tui-hooks.c (tui_redisplay_source): New function.
13871 (tui_attach_detach_observers): Attach or detach
13872 tui_redisplay_source.
13873 * observable.h (source_styling_changed): New observable.
13874 * observable.c: Define source_styling_changed observable.
13875
a068643d
TT
138762019-03-13 Tom Tromey <tromey@adacore.com>
13877
13878 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
13879 (i386_gnu_nat_target::store_registers): Update.
13880 * target-debug.h (target_debug_print_std_string): New macro.
13881 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
13882 * windows-tdep.c (display_one_tib): Update.
13883 * tui/tui-stack.c (tui_make_status_line): Update.
13884 * top.c (print_inferior_quit_action): Update.
13885 * thread.c (thr_try_catch_cmd): Update.
13886 (add_thread_with_info): Update.
13887 (thread_target_id_str): Update.
13888 (thr_try_catch_cmd): Update.
13889 (thread_command): Update.
13890 (thread_find_command): Update.
13891 * record-btrace.c (record_btrace_target::info_record)
13892 (record_btrace_resume_thread, record_btrace_target::resume)
13893 (record_btrace_cancel_resume, record_btrace_step_thread)
13894 (record_btrace_target::wait, record_btrace_target::wait)
13895 (record_btrace_target::wait, record_btrace_target::stop): Update.
13896 * progspace.c (print_program_space): Update.
13897 * process-stratum-target.c
13898 (process_stratum_target::thread_address_space): Update.
13899 * linux-fork.c (linux_fork_mourn_inferior)
13900 (detach_checkpoint_command, info_checkpoints_command)
13901 (linux_fork_context): Update.
13902 (linux_fork_detach): Update.
13903 (class scoped_switch_fork_info): Update.
13904 (delete_checkpoint_command): Update.
13905 * infrun.c (follow_fork_inferior): Update.
13906 (follow_fork_inferior): Update.
13907 (proceed_after_vfork_done): Update.
13908 (handle_vfork_child_exec_or_exit): Update.
13909 (follow_exec): Update.
13910 (displaced_step_prepare_throw): Update.
13911 (displaced_step_restore): Update.
13912 (start_step_over): Update.
13913 (resume_1): Update.
13914 (clear_proceed_status_thread): Update.
13915 (proceed): Update.
13916 (print_target_wait_results): Update.
13917 (do_target_wait): Update.
13918 (context_switch): Update.
13919 (stop_all_threads): Update.
13920 (restart_threads): Update.
13921 (finish_step_over): Update.
13922 (handle_signal_stop): Update.
13923 (switch_back_to_stepped_thread): Update.
13924 (keep_going_pass_signal): Update.
13925 (print_exited_reason): Update.
13926 (normal_stop): Update.
13927 * inferior.c (inferior_pid_to_str): Change return type.
13928 (print_selected_inferior): Update.
13929 (add_inferior): Update.
13930 (detach_inferior): Update.
13931 * dummy-frame.c (fprint_dummy_frames): Update.
13932 * dcache.c (dcache_info_1): Update.
13933 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
13934 (btrace_fetch, btrace_clear): Update.
13935 * linux-tdep.c (linux_core_pid_to_str): Change return type.
13936 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
13937 type.
13938 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
13939 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
13940 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
13941 * gdbarch.c, gdbarch.h: Rebuild.
13942 * gdbarch.sh (core_pid_to_str): Change return type.
13943 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
13944 return type.
13945 (windows_nat_target::pid_to_str): Change return type.
13946 (windows_delete_thread): Update.
13947 (windows_nat_target::attach): Update.
13948 (windows_nat_target::files_info): Update.
13949 * target-delegates.c: Rebuild.
13950 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
13951 return type.
13952 (sol_thread_target::pid_to_str): Change return type.
13953 * remote.c (class remote_target) <pid_to_str>: Change return
13954 type.
13955 (remote_target::pid_to_str): Change return type.
13956 (extended_remote_target::attach, remote_target::remote_stop_ns)
13957 (remote_target::remote_notif_remove_queued_reply)
13958 (remote_target::push_stop_reply, remote_target::disable_btrace):
13959 Update.
13960 (extended_remote_target::attach): Update.
13961 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
13962 type.
13963 (gdbsim_target::pid_to_str): Change return type.
13964 * ravenscar-thread.c (struct ravenscar_thread_target)
13965 <pid_to_str>: Change return type.
13966 (ravenscar_thread_target::pid_to_str): Change return type.
13967 * procfs.c (class procfs_target) <pid_to_str>: Change return
13968 type.
13969 (procfs_target::pid_to_str): Change return type.
13970 (procfs_target::attach): Update.
13971 (procfs_target::detach): Update.
13972 (procfs_target::fetch_registers): Update.
13973 (procfs_target::store_registers): Update.
13974 (procfs_target::wait): Update.
13975 (procfs_target::files_info): Update.
13976 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
13977 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
13978 return type.
13979 (nto_procfs_target::pid_to_str): Change return type.
13980 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
13981 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
13982 return type.
13983 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
13984 (exit_lwp): Update.
13985 (attach_proc_task_lwp_callback, get_detach_signal)
13986 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
13987 (linux_nat_target::resume, wait_lwp, stop_callback)
13988 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
13989 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
13990 (linux_nat_wait_1, resume_stopped_resumed_lwps)
13991 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
13992 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
13993 type.
13994 (inf_ptrace_target::attach): Update.
13995 (inf_ptrace_target::files_info): Update.
13996 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
13997 type.
13998 (go32_nat_target::pid_to_str): Change return type.
13999 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
14000 (gnu_nat_target::wait): Update.
14001 (gnu_nat_target::wait): Update.
14002 (gnu_nat_target::resume): Update.
14003 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
14004 (fbsd_nat_target::wait): Update.
14005 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
14006 type.
14007 (darwin_nat_target::attach): Update.
14008 * corelow.c (class core_target) <pid_to_str>: Change return type.
14009 (core_target::pid_to_str): Change return type.
14010 * target.c (normal_pid_to_str): Change return type.
14011 (default_pid_to_str): Likewise.
14012 (target_pid_to_str): Change return type.
14013 (target_translate_tls_address): Update.
14014 (target_announce_detach): Update.
14015 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
14016 return type.
14017 (bsd_uthread_target::pid_to_str): Change return type.
14018 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
14019 type.
14020 (bsd_kvm_target::pid_to_str): Change return type.
14021 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
14022 return type.
14023 (aix_thread_target::pid_to_str): Change return type.
14024 * target.h (struct target_ops) <pid_to_str>: Change return type.
14025 (target_pid_to_str, normal_pid_to_str): Likewise.
14026 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
14027 type.
14028 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
14029 type.
14030 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
14031 return type.
14032 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
14033 type.
14034 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
14035 type.
14036 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
14037 return type.
14038
b4be1b06
SM
140392019-03-13 Simon Marchi <simon.marchi@ericsson.com>
14040
14041 * NEWS: Mention that the new default MI version is 3. Mention
14042 changes to the output of commands and events that deal with
14043 multi-location breakpoints.
14044 * breakpoint.c: Include "mi/mi-out.h".
14045 (print_one_breakpoint): Change output syntax if using MI version
14046 >= 3.
14047 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
14048 New.
14049 (mi_multi_location_breakpoint_output_fixed): New.
14050 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
14051 (mi_cmd_fix_multi_location_breakpoint_output): New.
14052 (mi_multi_location_breakpoint_output_fixed): New.
14053 * mi/mi-cmds.c (mi_cmds): Register command
14054 -fix-multi-location-breakpoint-output.
14055 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
14056 interpreter "mi".
14057
8e5e5494
SM
140582019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
14059
14060 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
14061 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
14062 instantiate mi_ui_out based on interpreter name.
14063 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
14064 * mi/mi-main.c (mi_load_progress): Likewise.
14065
197df35e
JB
140662019-03-12 John Baldwin <jhb@FreeBSD.org>
14067
14068 * NEWS: Combine separate "New targets" sections for 8.3.
14069
8399425f
JB
140702019-03-12 John Baldwin <jhb@FreeBSD.org>
14071
14072 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
14073 (ppcfbsd_init_abi): Install gdbarch
14074 "fetch_tls_load_module_address" and "get_thread_local_address"
14075 methods.
14076
b0f87ed0
JB
140772019-03-12 John Baldwin <jhb@FreeBSD.org>
14078
14079 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
14080 (riscv_fbsd_init_abi): Install gdbarch
14081 "fetch_tls_load_module_address" and "get_thread_local_address"
14082 methods.
14083
ce25aa57
JB
140842019-03-12 John Baldwin <jhb@FreeBSD.org>
14085
14086 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
14087 (i386fbsd_init_abi): Install gdbarch
14088 "fetch_tls_load_module_address" and "get_thread_local_address"
14089 methods.
14090
f5424cfa
JB
140912019-03-12 John Baldwin <jhb@FreeBSD.org>
14092
14093 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
14094 (amd64fbsd_init_abi): Install gdbarch
14095 "fetch_tls_load_module_address" and "get_thread_local_address"
14096 methods.
14097
945f3901
JB
140982019-03-12 John Baldwin <jhb@FreeBSD.org>
14099
14100 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
14101 (struct fbsd_pspace_data): New type.
14102 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
14103 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
14104 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
14105 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
14106 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
14107
ef0bd204
JB
141082019-03-12 John Baldwin <jhb@FreeBSD.org>
14109
14110 * gdbtypes.c (lookup_struct_elt): New function.
14111 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
14112 * gdbtypes.h (struct struct_elt): New type.
14113 (lookup_struct_elt): New prototype.
14114
36c53a02
JB
141152019-03-12 John Baldwin <jhb@FreeBSD.org>
14116
14117 * gdbtypes.c (lookup_struct_elt_type): Update comment and
14118 remove disabled code block.
14119
6e056c81
JB
141202019-03-12 John Baldwin <jhb@FreeBSD.org>
14121
14122 * gdbarch.sh (get_thread_local_address): New method.
14123 * gdbarch.h, gdbarch.c: Regenerate.
14124 * target.c (target_translate_tls_address): Use
14125 gdbarch_get_thread_local_address if present instead of
14126 target::get_thread_local_address.
14127
cd250a18
JB
141282019-03-12 John Baldwin <jhb@FreeBSD.org>
14129
14130 * target.h (target::get_thread_local_address): Update comment.
14131
df22c1e5
JB
141322019-03-12 John Baldwin <jhb@FreeBSD.org>
14133
14134 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
14135 objfile->separate_debug_objfile_backlink if not NULL.
14136
dd6876c9
JB
141372019-03-12 John Baldwin <jhb@FreeBSD.org>
14138
14139 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
14140 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
14141 (amd64bsd_store_inferior_registers): Likewise.
14142 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
14143 Enable segment base registers.
14144 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
14145 PT_GETFSBASE and PT_GETGSBASE.
14146 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
14147 PT_SETGSBASE.
14148 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
14149 segment base registers.
14150 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
14151
1163a4b7
JB
141522019-03-12 John Baldwin <jhb@FreeBSD.org>
14153
14154 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
14155 Update calls to i386_target_description to add 'segments'
14156 parameter.
14157 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
14158 add segment base registers.
14159 * arch/i386.c (i386_create_target_description): Add 'segments'
14160 parameter to enable segment base registers.
14161 * arch/i386.h (i386_create_target_description): Likewise.
14162 * features/i386/32bit-segments.xml: New file.
14163 * features/i386/32bit-segments.c: Generate.
14164 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
14165 call to i386_target_description to add 'segments' parameter.
14166 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
14167 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
14168 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
14169 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
14170 if feature is present.
14171 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
14172 Add 'segments' parameter to call to i386_target_description.
14173 (i386_target_description): Add 'segments' parameter to enable
14174 segment base registers.
14175 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
14176 to call to i386_target_description.
14177 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
14178 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
14179 Define I386_NUM_REGS.
14180 (i386_target_description): Add 'segments' parameter to enable
14181 segment base registers.
14182
3a350822
EZ
141832019-03-12 Eli Zaretskii <eliz@gnu.org>
14184
14185 PR/24325
14186 * source-cache.c: #undef open and close, to avoid unresolved
14187 externals during linking.
14188
ffdd69cf
TT
141892019-03-12 Tom Tromey <tromey@adacore.com>
14190
14191 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
14192 const. Add initializers.
14193 (_initialize_remote): Don't initialize ptid globals.
14194
ec148c57
PA
141952019-03-12 Pedro Alves <palves@redhat.com>
14196
14197 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
14198
32764270
PA
141992019-03-12 Pedro Alves <palves@redhat.com>
14200
14201 * cp-name-parser.y (main): Remove unused 'len' variable.
14202
17547186
TT
142032019-03-12 Tom Tromey <tromey@adacore.com>
14204
14205 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
14206 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
14207
d3a70e03
TT
142082019-03-12 Tom Tromey <tromey@adacore.com>
14209
14210 * linux-nat.c (iterate_over_lwps): Update.
14211 (stop_callback): Remove parameter.
14212 (stop_wait_callback, detach_callback, resume_set_callback)
14213 (select_singlestep_lwp_callback, set_ignore_sigint)
14214 (status_callback, resumed_callback, resume_clear_callback)
14215 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
14216 data parameter.
14217 (linux_nat_target::detach, linux_nat_target::resume)
14218 (linux_stop_and_wait_all_lwps, select_event_lwp)
14219 (linux_nat_filter_event, linux_nat_wait_1)
14220 (linux_nat_target::kill, linux_nat_target::stop)
14221 (linux_nat_target::stop): Update.
14222 (linux_nat_resume_callback): Change type.
14223 (resume_stopped_resumed_lwps, count_events_callback)
14224 (select_event_lwp_callback): Likewise.
14225 (linux_stop_lwp, linux_nat_stop_lwp): Update.
14226 * arm-linux-nat.c (struct update_registers_data): Remove.
14227 (update_registers_callback): Change type.
14228 (arm_linux_insert_hw_breakpoint1): Update.
14229 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
14230 parameter.
14231 (x86_linux_dr_set_addr): Update.
14232 (x86_linux_dr_set_control): Update.
14233 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
14234 (iterate_over_lwps): Use gdb::function_view.
14235 * nat/aarch64-linux-hw-point.c (struct
14236 aarch64_dr_update_callback_param): Remove.
14237 (debug_reg_change_callback): Change type.
14238 (aarch64_notify_debug_reg_change): Update.
14239 * s390-linux-nat.c (s390_refresh_per_info): Update.
14240
82cb27ff
TT
142412019-03-11 Tom Tromey <tromey@adacore.com>
14242
14243 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
14244 redundant assignment to "this_cu".
14245
568c0683
SM
142462019-03-08 Simon Marchi <simon.marchi@efficios.com>
14247
14248 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
14249
f09ce22d
SM
142502019-03-08 Simon Marchi <simon.marchi@efficios.com>
14251
14252 * gdbtypes.c (rank_one_type_parm_set): New function extracted
14253 from...
14254 (rank_one_type): ... this.
14255
595f96a9
SM
142562019-03-08 Simon Marchi <simon.marchi@efficios.com>
14257
14258 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
14259 from...
14260 (rank_one_type): ... this.
14261
2598a94b
SM
142622019-03-08 Simon Marchi <simon.marchi@efficios.com>
14263
14264 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
14265 from...
14266 (rank_one_type): ... this.
14267
7f17b20d
SM
142682019-03-08 Simon Marchi <simon.marchi@efficios.com>
14269
14270 * gdbtypes.c (rank_one_type_parm_float): New function extracted
14271 from...
14272 (rank_one_type): ... this.
14273
2c509035
SM
142742019-03-08 Simon Marchi <simon.marchi@efficios.com>
14275
14276 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
14277 from...
14278 (rank_one_type): ... this.
14279
0dd322dc
SM
142802019-03-08 Simon Marchi <simon.marchi@efficios.com>
14281
14282 * gdbtypes.c (rank_one_type_parm_range): New function extracted
14283 from...
14284 (rank_one_type): ... this.
14285
41ea4728
SM
142862019-03-08 Simon Marchi <simon.marchi@efficios.com>
14287
14288 * gdbtypes.c (rank_one_type_parm_char): New function extracted
14289 from...
14290 (rank_one_type): ... this.
14291
793cd1d2
SM
142922019-03-08 Simon Marchi <simon.marchi@efficios.com>
14293
14294 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
14295 from...
14296 (rank_one_type): ... this.
14297
34910087
SM
142982019-03-08 Simon Marchi <simon.marchi@efficios.com>
14299
14300 * gdbtypes.c (rank_one_type_parm_int): New function extracted
14301 from...
14302 (rank_one_type): ... this.
14303
f1f832d6
SM
143042019-03-08 Simon Marchi <simon.marchi@efficios.com>
14305
14306 * gdbtypes.c (rank_one_type_parm_func): New function extracted
14307 from...
14308 (rank_one_type): ... this.
14309
b9f4512f
SM
143102019-03-08 Simon Marchi <simon.marchi@efficios.com>
14311
14312 * gdbtypes.c (rank_one_type_parm_array): New function extracted
14313 from...
14314 (rank_one_type): ... this.
14315
9293fc63
SM
143162019-03-08 Simon Marchi <simon.marchi@efficios.com>
14317
14318 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
14319 from...
14320 (rank_one_type): ... this.
14321
e3abbe7e
PW
143222019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14323
14324 * inferior.c (initialize_inferiors): Ensure 'help set/show print
14325 inferior-events' shows the example events.
14326
e4adb939
EZ
143272019-03-08 Eli Zaretskii <eliz@gnu.org>
14328
14329 Support styling on native MS-Windows console
14330
14331 PR/24315
14332 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
14333 on MS-Windows if $TERM is not defined.
14334
14335 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
14336
14337 * posix-hdep.c (gdb_console_fputs):
14338 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
14339 functions.
14340 * ui-file.h (gdb_console_fputs): Add prototype.
14341
14342 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
14343 back to fputs only if the former returns zero.
14344
25629dfd
TT
143452019-03-07 Tom Tromey <tom@tromey.com>
14346
14347 * symmisc.c (print_symbol_bcache_statistics): Update.
14348 (print_objfile_statistics): Update.
14349 * symfile.c (allocate_symtab): Update.
14350 * stabsread.c: Don't include bcache.h.
14351 * psymtab.h (struct psymbol_bcache): Don't declare.
14352 (class psymtab_storage) <psymbol_cache>: Now a bcache.
14353 (psymbol_bcache_init, psymbol_bcache_free)
14354 (psymbol_bcache_get_bcache): Don't declare.
14355 * psymtab.c (struct psymbol_bcache): Remove.
14356 (psymtab_storage::psymtab_storage): Update.
14357 (psymtab_storage::~psymtab_storage): Update.
14358 (psymbol_bcache_init, psymbol_bcache_free)
14359 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
14360 (add_psymbol_to_bcache): Update.
14361 (allocate_psymtab): Update.
14362 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
14363 macro_cache>: No longer pointers.
14364 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
14365 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
14366 * macrotab.c (macro_bcache): Update.
14367 * macroexp.c: Don't include bcache.h.
14368 * gdbtypes.c (check_types_worklist): Update.
14369 (types_deeply_equal): Remove TRY/CATCH. Update.
14370 * elfread.c (elf_symtab_read): Update.
14371 * dwarf2read.c: Don't include bcache.h.
14372 * buildsym.c (buildsym_compunit::get_macro_table): Update.
14373 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
14374 (print_bcache_statistics, bcache_memory_used): Don't declare.
14375 (struct bcache): Move from bcache.c. Add constructor, destructor,
14376 methods. Rename all data members.
14377 * bcache.c (struct bcache): Move to bcache.h.
14378 (bcache::expand_hash_table): Rename from expand_hash_table.
14379 (bcache): Remove.
14380 (bcache::insert): Rename from bcache_full.
14381 (bcache::compare): Rename from bcache_compare.
14382 (bcache_xmalloc): Remove.
14383 (bcache::~bcache): Rename from bcache_xfree.
14384 (bcache::print_statistics): Rename from print_bcache_statistics.
14385 (bcache::memory_used): Rename from bcache_memory_used.
14386
fe726667
PA
143872019-03-07 Pedro Alves <palves@redhat.com>
14388
14389 * infrun.c (normal_stop): Also check for
14390 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
14391
7584bb30
AB
143922019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
14393
14394 * f-lang.c (value_from_host_double): Moved to...
14395 * value.c (value_from_host_double): ...here.
14396 * value.h (value_from_host_double): Declare.
14397 * guile/scm-math.c (vlscm_convert_typed_number): Use
14398 value_from_host_double.
14399 (vlscm_convert_number): Likewise.
14400 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
14401 * python/py-value.c (convert_value_from_python): Likewise.
14402
a7b1986e
TT
144032019-03-06 Tom Tromey <tom@tromey.com>
14404
14405 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
14406
0ccf4211
TT
144072019-03-06 Tom Tromey <tom@tromey.com>
14408
14409 * utils.h (free_current_contents): Don't declare.
14410 * utils.c (free_current_contents): Remove.
14411
fe7b42e5
TT
144122019-03-06 Tom Tromey <tom@tromey.com>
14413
14414 * top.c (quit_force): Update.
14415 * main.c (captured_command_loop): Update.
14416 * common/new-op.c (operator new): Update.
14417 * common/common-exceptions.c (struct catcher)
14418 <save_cleanup_chain>: Remove member.
14419 (exceptions_state_mc_init): Update.
14420 (exception_try_scope_entry): Return nullptr.
14421 (exception_try_scope_exit, exception_rethrow)
14422 (throw_exception_sjlj, throw_exception_cxx): Update.
14423 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
14424 (all_cleanups, do_cleanups, discard_cleanups)
14425 (discard_final_cleanups, save_cleanups, save_final_cleanups)
14426 (restore_cleanups, restore_final_cleanups): Don't declare.
14427 (do_final_cleanups): Remove parameter.
14428 * common/cleanups.c (cleanup_chain, make_cleanup)
14429 (make_cleanup_dtor, all_cleanups, do_cleanups)
14430 (discard_my_cleanups, discard_cleanups)
14431 (discard_final_cleanups, save_my_cleanups, save_cleanups)
14432 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
14433 (null_cleanup): Remove.
14434 (do_final_cleanups): Remove parameter.
14435
c6321f19
TT
144362019-03-06 Tom Tromey <tom@tromey.com>
14437
14438 * remote.c (remote_target::remote_parse_stop_reply): Use
14439 unique_xmalloc_ptr.
14440
61b30099
TT
144412019-03-06 Tom Tromey <tom@tromey.com>
14442
14443 * stabsread.c (struct stabs_field_info): Rename from field_info.
14444 <list, fnlist>: Add initializers.
14445 <obstack>: New member.
14446 (read_member_functions, read_struct_fields, read_baseclasses):
14447 Allocate on obstack. Don't use cleanups.
14448 (read_one_struct_field, read_member_functions, read_struct_fields)
14449 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
14450 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
14451 (read_struct_type): Update.
14452
6cceac94
TT
144532019-03-06 Tom Tromey <tom@tromey.com>
14454
14455 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
14456 * common/filestuff.h (make_cleanup_close): Don't declare.
14457 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
14458 Remove.
14459
72412762
TT
144602019-03-06 Tom Tromey <tom@tromey.com>
14461
14462 * solib-aix.c: Use make_scope_exit.
14463
2b6ff1c0
TT
144642019-03-06 Tom Tromey <tom@tromey.com>
14465
14466 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
14467 Use make_scope_exit.
14468
d01c5877
TT
144692019-03-06 Tom Tromey <tom@tromey.com>
14470
14471 * solib-svr4.c (disable_probes_interface): Remove parameter.
14472 (svr4_handle_solib_event): Use make_scope_exit.
14473
32603266
TT
144742019-03-06 Tom Tromey <tom@tromey.com>
14475
14476 * remote.c (struct stop_reply_deleter): Remove.
14477 (stop_reply_up): Update.
14478 (struct stop_reply): Derive from notif_event. Don't typedef.
14479 <regcache>: Now a std::vector.
14480 (stop_reply_xfree): Remove.
14481 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
14482 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
14483 (remote_target::discard_pending_stop_replies): Use delete.
14484 (remote_target::remote_parse_stop_reply): Update.
14485 (remote_target::process_stop_reply): Update.
14486 * remote-notif.h (struct notif_event): Add virtual destructor.
14487 Remove "dtr" member.
14488 (struct notif_client) <alloc_event>: Return a unique_ptr.
14489 (notif_event_xfree): Don't declare.
14490 (notif_event_up): New typedef.
14491 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
14492 (notif_event_xfree, do_notif_event_xfree): Remove.
14493 (remote_notif_state_xfree): Update.
14494
9799571e
TT
144952019-03-06 Tom Tromey <tom@tromey.com>
14496
14497 * infrun.c (displaced_step_clear_cleanup): Now a
14498 forward_scope_exit type.
14499 (displaced_step_prepare_throw): Update.
14500 (displaced_step_fixup): Update.
14501
09e3c4ca
TT
145022019-03-06 Tom Tromey <tom@tromey.com>
14503
14504 * inferior.h (class inferior): Update comment.
14505 * gdbthread.h (class thread_info): Update comment.
14506
e2a03548
TT
145072019-03-06 Joel Brobecker <brobecker@adacore.com>
14508 Tom Tromey <tom@tromey.com>
14509
14510 * stabsread.h (struct stab_section_list): Remove.
14511 (coffstab_build_psymtabs): Update.
14512 * dbxread.c (symbuf_sections): Now a std::vector.
14513 (sect_idx): New global.
14514 (fill_symbuf): Update.
14515 (coffstab_build_psymtabs): Change type of stabsects parameter.
14516 Update.
14517 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
14518 std::vector.
14519 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
14520 (coff_locate_sections): Update.
14521 (coff_symfile_read): Remove cleanups. Update.
14522 (init_stringtab): Add storage parameter.
14523 (free_stringtab, free_stringtab_cleanup): Remove.
14524 (init_lineno): Add storage parameter.
14525 (free_linetab, free_linetab_cleanup): Remove.
14526
b7e60d85
PA
145272019-03-06 Pedro Alves <palves@redhat.com>
14528
14529 * linux-fork.c (fork_info::clobber_regs): Delete.
14530 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
14531 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
14532 comment. Adjust.
14533 (scoped_switch_fork_info::scoped_switch_fork_info)
14534 (checkpoint_command, linux_fork_context): Adjust
14535 fork_save_infrun_state calls.
14536
e52c971f
PA
145372019-03-06 Pedro Alves <palves@redhat.com>
14538
14539 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
14540 (inf_has_multiple_threads): Return 'bool' and rewrite using
14541 inferior_info::threads().
14542
06974e6c
PA
145432019-03-06 Pedro Alves <palves@redhat.com>
14544
14545 * linux-fork.c: Include <list>.
14546 (fork_list): Now a std::list instance.
14547 (fork_info): Add ctor, dtor, and in-class initialize all fields.
14548 (forks_exist_p, find_last_fork): Adjust.
14549 (new_fork): Delete.
14550 (one_fork_p): New.
14551 (add_fork): Adjust.
14552 (free_fork): Delete, folded into fork_info::~fork_info().
14553 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
14554 Adjust.
14555 (init_fork_list): Delete.
14556 (linux_fork_killall, linux_fork_mourn_inferior)
14557 (linux_fork_detach, info_checkpoints_command): Adjust.
14558 (_initialize_linux_fork): No longer call init_fork_list.
14559
72f31aea
PA
145602019-03-06 Pedro Alves <palves@redhat.com>
14561
14562 * linux-fork.c (new_fork): New, split out of ...
14563 (add_fork): ... this. Return void. Move "first fork" special
14564 case from here, to ...
14565 (checkpoint_command): ... here.
14566 * linux-linux.h (add_fork): Return void.
14567
efbecbc1
AB
145682019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14569
14570 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
14571
0841c79a
AB
145722019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14573 Chris January <chris.january@arm.com>
14574 David Lecomber <david.lecomber@arm.com>
14575
14576 * f-exp.y: New token, UNOP_INTRINSIC.
14577 (exp): New pattern using UNOP_INTRINSIC token.
14578 (f77_keywords): Add 'abs' keyword.
14579 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
14580 (value_from_host_double): New function.
14581 (evaluate_subexp_f): Support UNOP_ABS.
14582
4a270568
AB
145832019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14584
14585 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
14586 types.
14587
067630bd
AB
145882019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14589
14590 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
14591 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
14592 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
14593
3be47f7a
AB
145942019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14595
14596 * f-exp.y (convert_to_kind_type): Handle more type kinds.
14597
4d00f5d8
AB
145982019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14599 Chris January <chris.january@arm.com>
14600
14601 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
14602 * f-exp.y: Define 'KIND' token.
14603 (exp): New pattern for KIND expressions.
14604 (ptype): Handle types with a kind extension.
14605 (direct_abs_decl): Extend to spot kind extensions.
14606 (f77_keywords): Add 'kind' to the list.
14607 (push_kind_type): New function.
14608 (convert_to_kind_type): New function.
14609 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
14610 * parse.c (operator_length_standard): Likewise.
14611 * parser-defs.h (enum type_pieces): Add tp_kind.
14612 * std-operator.def: Add UNOP_KIND.
14613
e454224f
AB
146142019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14615
14616 * f-exp.y (f_parse): Set yydebug.
14617
9dad4a58
AB
146182019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14619
14620 * f-lang.c (evaluate_subexp_f): New function.
14621 (exp_descriptor_f): New global.
14622 (f_language_defn): Use exp_descriptor_f instead of
14623 exp_descriptor_standard.
14624
c8f91604
AB
146252019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14626
14627 * f-exp.y (struct token): Add comments.
14628 (dot_ops): Remove uppercase versions and the end marker.
14629 (f77_keywords): Likewise.
14630 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
14631 entries in the dot_ops array are case insensitive, and use
14632 strncasecmp to compare strings. Also some whitespace cleanup in
14633 this area. Similar for the f77_keywords array, except entries in
14634 this list might be case sensitive.
14635
dd9f2c76
AB
146362019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14637
14638 * f-exp.y (struct f77_boolean_val): Add comments.
14639 (boolean_values): Remove uppercase versions, and end marker.
14640 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
14641 and use strncasecmp to achieve case insensitivity. Additionally,
14642 perform whitespace cleanup around this code.
14643
67a3048c
TT
146442019-03-06 Tom Tromey <tromey@adacore.com>
14645
14646 * remote-sim.c (gdbsim_target_open): Use result of
14647 gdb_argv::release.
14648
aa3cfbda
RB
146492019-03-06 Richard Bunt <richard.bunt@arm.com>
14650 Dirk Schubert <dirk.schubert@arm.com>
14651 Chris January <chris.january@arm.com>
14652
14653 * eval.c (evaluate_subexp_standard): Call Fortran argument
14654 wrapping logic.
14655 * f-lang.c (struct value): A value which can be passed into a
14656 Fortran function call.
14657 (fortran_argument_convert): Wrap Fortran arguments in a pointer
14658 where appropriate.
14659 (struct type): Value ready for a Fortran function call.
14660 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
14661 is needed.
14662 * f-lang.h (fortran_argument_convert): Declaration.
14663 (fortran_preserve_arg_pointer): Declaration.
14664 * infcall.c (value_arg_coerce): Call Fortran argument logic.
14665
ea38e5df
TT
146662019-03-05 Tom Tromey <tromey@adacore.com>
14667
14668 * python/py-prettyprint.c (print_string_repr): Remove #if.
14669 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
14670
06b5b831
TT
146712019-03-05 Tom Tromey <tromey@adacore.com>
14672
14673 * target.c (the_dummy_target): Move later. Change type to
14674 "dummy_target".
14675 (initialize_targets): Don't initialize the_dummy_target.
14676
edbd9e45
TT
146772019-03-05 Tom Tromey <tromey@adacore.com>
14678
14679 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
14680 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
14681
c119e040
TT
146822019-03-05 Tom Tromey <tromey@adacore.com>
14683
14684 * windows-nat.c (windows_nat_target::attach)
14685 (windows_nat_target::detach): Don't call gdb_flush.
14686 * valprint.c (generic_val_print, val_print, val_print_string):
14687 Don't call gdb_flush.
14688 * utils.c (defaulted_query): Don't call gdb_flush.
14689 * typeprint.c (print_type_scalar): Don't call gdb_flush.
14690 * target.c (target_announce_detach): Don't call gdb_flush.
14691 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
14692 * remote.c (extended_remote_target::attach): Don't call
14693 gdb_flush.
14694 * procfs.c (procfs_target::detach): Don't call gdb_flush.
14695 * printcmd.c (do_examine): Don't call gdb_flush.
14696 (info_display_command): Don't call gdb_flush.
14697 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
14698 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
14699 * memattr.c (info_mem_command): Don't call gdb_flush.
14700 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
14701 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
14702 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
14703 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
14704 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
14705 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
14706 (gnu_nat_target::detach): Don't call gdb_flush.
14707 * f-valprint.c (f_val_print): Don't call gdb_flush.
14708 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
14709 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
14710 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
14711 gdb_flush.
14712 * c-valprint.c (c_val_print): Don't call gdb_flush.
14713 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
14714
895dafa6
TT
147152019-03-05 Tom Tromey <tromey@adacore.com>
14716
14717 * varobj.c (update_dynamic_varobj_children): Update.
14718 (install_default_visualizer): Use reset, not release.
14719 * value.c (set_internalvar): Update.
14720 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
14721 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
14722 ATTRIBUTE_UNUSED_RESULT.
14723
88a774b9
TT
147242019-03-05 Tom Tromey <tromey@adacore.com>
14725
14726 * remote.c (class scoped_remote_fd) <release>: Add
14727 ATTRIBUTE_UNUSED_RESULT.
14728
4e4a8b93
TT
147292019-03-05 Tom Tromey <tromey@adacore.com>
14730
14731 * macroexp.c (struct macro_buffer) <release>: Add
14732 ATTRIBUTE_UNUSED_RESULT.
14733
083eef1f
TT
147342019-03-05 Tom Tromey <tromey@adacore.com>
14735
14736 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
14737 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
14738 ATTRIBUTE_UNUSED_RESULT.
14739
3cabd438
TT
147402019-03-05 Tom Tromey <tromey@adacore.com>
14741
14742 * common/scoped_fd.h (class scoped_fd) <release>: Add
14743 ATTRIBUTE_UNUSED_RESULT.
14744
41e3300a
TT
147452019-03-05 Tom Tromey <tromey@adacore.com>
14746
14747 * parser-defs.h (struct parser_state) <release>: Add
14748 ATTRIBUTE_UNUSED_RESULT.
14749
18cb7c9f
TT
147502019-03-05 Tom Tromey <tromey@adacore.com>
14751
14752 * utils.h (class gdb_argv) <release>: Add
14753 ATTRIBUTE_UNUSED_RESULT.
14754 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
14755
41fa577f
EZ
147562019-03-02 Eli Zaretskii <eliz@gnu.org>
14757
a6a4b2c6
EZ
14758 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
14759 for-loop range, to avoid compiler warnings.
14760
14761 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
14762 avoid compiler warnings about unused variables.
14763
742a7df5
EZ
14764 * NEWS: Mention end of support for native debugging on MS-Windows
14765 before XP.
14766
41fa577f
EZ
14767 PR gdb/24292
14768 * common/netstuff.c:
14769 * gdbserver/gdbreplay.c
14770 * gdbserver/remote-utils.c:
14771 * ser-tcp.c:
14772 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
14773 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
14774 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
14775 'getaddrinfo' and 'freeaddrinfo' were not available before
14776 Windows XP, and mingw.org's MinGW headers by default define
14777 _WIN32_WINNT to 0x500.
14778
827f438f
GB
147792019-03-01 Gary Benson <gbenson@redhat.com>
14780
14781 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
14782
92137da0
RO
147832019-02-28 Brian Vandenberg <phantall@gmail.com>
14784 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14785
14786 PR gdb/8527
14787 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
14788 set_sigint_trap, clear_sigint_trap.
14789
799efbe8
PW
147902019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14791
14792 * target.c (target_detach): Clear the regcache and the
14793 frame cache.
14794
8ed25214
PA
147952019-02-27 Pedro Alves <palves@redhat.com>
14796
14797 * utils.c (set_screen_size): When we cap the height/width sizes,
14798 tweak the corresponding command variable to show "unlimited":
14799
23031e31
SJ
148002019-02-27 Saagar Jha <saagar@saagarjha.com>
14801 Pedro Alves <palves@redhat.com>
14802
14803 * utils.c (set_screen_size): Reduce "infinite" rows and columns
14804 before calling rl_set_screen_size.
14805
6c28e44a
TT
148062019-02-27 Tom Tromey <tromey@adacore.com>
14807
14808 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
14809 define.
14810 * python/py-value.c: Remove Python 2.4 workaround.
14811 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
14812 workaround.
14813 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
14814 Python 2.4 workaround.
14815 * python/python-internal.h: Remove Python 2.4 comment.
14816 (Py_ssize_t): Don't define.
14817 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
14818 (gdb_Py_DECREF): Remove Python 2.4 workaround.
14819 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
14820 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
14821 * python/python.c (do_start_initialization): Remove Python 2.4
14822 workaround.
14823 * python/py-prettyprint.c (class dummy_python_frame): Remove.
14824 (print_children): Remove Python 2.4 workaround.
14825 * python/py-inferior.c (buffer_procs): Remove Python 2.4
14826 workaround.
14827 (CHARBUFFERPROC_NAME): Remove.
14828 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
14829 Python 2.4 workaround.
14830
2c3fc25d 148312019-02-27 Kevin Buettner <kevinb@redhat.com>
799efbe8 14832
2c3fc25d
KB
14833 * NEWS: Note minimum Python version.
14834
6ca62222
KB
148352019-02-27 Kevin Buettner <kevinb@redhat.com>
14836
14837 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
14838 code from these functions. Remove corresponding ifdefs. Use
14839 Py_buffer_up instead of explicit calls to PyBuffer_Release.
14840 Remove gotos and target of gotos.
14841 (infpy_search_memory): Likewise.
14842
f4bc7d2c
AB
148432019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14844
14845 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
14846 (hppa_gdbarch_init): Don't register deleted functions with
14847 gdbarch.
14848
9734a586
AB
148492019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14850
14851 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
14852 (h8300_unwind_sp): Delete.
14853 (h8300_dummy_id): Delete.
14854 (h8300_gdbarch_init): Don't register deleted functions with
14855 gdbarch.
14856
68b867f3
AB
148572019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14858
14859 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
14860 (ft32_unwind_pc): Delete.
14861 (ft32_unwind_sp): Delete.
14862 (ft32_gdbarch_init): Don't register deleted functions with
14863 gdbarch.
14864
2fbe7ad0
AB
148652019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14866
14867 * gdb/frv-tdep.c (frv_dummy_id): Delete.
14868 (frv_unwind_pc): Delete.
14869 (frv_unwind_sp): Delete.
14870 (frv_gdbarch_init): Don't register deleted functions with
14871 gdbarch.
14872
76055cbe
AB
148732019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14874
14875 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
14876 (riscv_unwind_pc): Delete.
14877 (riscv_unwind_sp): Delete.
14878 (riscv_gdbarch_init): Don't register deleted functions with
14879 gdbarch.
14880
4133e5a1
AB
148812019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14882
14883 * gdb/csky-tdep.c (csky_dummy_id): Delete.
14884 (csky_unwind_pc): Delete.
14885 (csky_unwind_sp): Delete.
14886 (csky_gdbarch_init): Don't register deleted functions with
14887 gdbarch.
14888
8010f576
AB
148892019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14890
14891 * gdb/cris-tdep.c (cris_dummy_id): Delete.
14892 (cris_unwind_pc): Delete.
14893 (cris_unwind_sp): Delete.
14894 (cris_gdbarch_init): Don't register deleted functions with
14895 gdbarch.
14896
b56bf084
AB
148972019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14898
14899 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
14900 (bfin_unwind_pc): Delete.
14901 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
14902
a19a650f
AB
149032019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14904
14905 * gdb/arm-tdep.c (arm_dummy_id): Delete.
14906 (arm_unwind_pc): Delete.
14907 (arm_unwind_sp): Delete.
14908 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
14909
f8278c3c
AB
149102019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14911
14912 * gdb/arc-tdep.c (arc_dummy_id): Delete.
14913 (arc_unwind_pc): Delete.
14914 (arc_unwind_sp): Delete.
14915 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
14916
480e46cf
AB
149172019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14918
14919 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
14920 (alpha_unwind_pc): Delete.
14921 (alpha_gdbarch_init): Don't register deleted functions with
14922 gdbarch.
14923
7a995095
AB
149242019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14925
14926 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
14927 (aarch64_unwind_pc): Delete.
14928 (aarch64_unwind_sp): Delete.
14929 (aarch64_gdbarch_init): Don't register deleted functions with
14930 gdbarch.
14931
bf9a735e
AB
149322019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14933
14934 * gdbtypes.c (type_align): Don't consider static members when
14935 computing structure alignment.
14936
5561fc30
AB
149372019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14938
14939 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
14940 return 0 for other types.
14941 * arch-utils.c (default_type_align): Always return 0.
14942 * gdbarch.h: Regenerate.
14943 * gdbarch.sh (type_align): Extend comment.
14944 * gdbtypes.c (type_align): Add additional comments, always call
14945 gdbarch_type_align before applying the default rules.
14946 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
14947 generic code will then apply a suitable default.
14948 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
14949 types, return 0 for other types.
14950
9335e75a
JB
149512019-02-27 Joel Brobecker <brobecker@adacore.com>
14952
14953 * NEWS: Create a new section for the next release branch.
14954 Rename the section of the current branch, now that it has
14955 been cut.
14956
3d34d8de
JB
149572019-02-27 Joel Brobecker <brobecker@adacore.com>
14958
14959 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
14960 * version.in: Bump version to 8.3.50.DATE-git.
14961
143420fb
SM
149622019-02-26 Simon Marchi <simon.marchi@efficios.com>
14963
14964 * aix-thread.c (ptid_cmp): Remove unused variable.
14965 (get_signaled_thread): Likewise.
14966 (store_regs_user_thread): Likewise.
14967 (store_regs_kernel_thread): Likewise.
14968 (fetch_regs_kernel_thread): Remove shadowed variable.
14969
172fb711
AB
149702019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
14971
14972 * features/riscv/32bit-cpu.xml: Add register numbers.
14973 * features/riscv/32bit-fpu.c: Regenerate.
14974 * features/riscv/32bit-fpu.xml: Add register numbers.
14975 * features/riscv/64bit-cpu.xml: Add register numbers.
14976 * features/riscv/64bit-fpu.c: Regenerate.
14977 * features/riscv/64bit-fpu.xml: Add register numbers.
14978
26c89782
KB
149792019-02-26 Kevin Buettner <kevinb@redhat.com>
14980
af54ade9 14981 * NEWS: Mention two argument form of gdb.Value constructor.
fe07eca5
KB
14982 * python/py-value.c (convert_buffer_and_type_to_value): New
14983 function.
14984 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
14985 Add support for handling an optional second argument. Call
14986 convert_buffer_and_type_to_value as appropriate.
26c89782
KB
14987 * python/python-internal.h (Py_buffer_deleter): New struct.
14988 (Py_buffer_up): New typedef.
14989
0f58c9e8
JB
149902019-02-25 John Baldwin <jhb@FreeBSD.org>
14991
14992 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
14993 instead of releasing ownership.
14994
0a0f4c01
JR
149952019-02-25 Jordan Rupprecht <rupprecht@google.com>
14996
14997 * dwarf2read.c (open_and_init_dwp_file): Call
14998 elf_numsections instead of bfd_count_sections to initialize
14999 dwp_file->num_sections.
15000
cd5a152c
TT
150012019-02-25 Tom Tromey <tromey@adacore.com>
15002
15003 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
15004
8a6a8513
SDJ
150052019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
15006
15007 * gcore.in: Add '--readnever' option when invoking GDB.
15008
04dcda9c
SM
150092019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
15010
15011 * MAINTAINERS: Update my email address.
15012
07bc701d
SM
150132019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
15014
15015 * build-id.c (build_id_to_debug_bfd_1): New function.
15016 (build_id_to_debug_bfd): Look for separate debug file in
15017 sysroot.
15018
c6f4a5d0
AB
150192019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
15020
15021 * gdbarch.sh: Update the copyright year range that is placed into
15022 generated files.
15023
9600246d
KS
150242019-02-22 Keith Seitz <keiths@redhat.com>
15025
15026 PR symtab/23853
15027 * linespec.c (create_sals_line_offset): Search for the default
15028 symtab's filename instead of its fullname.
15029
7557a514
AH
150302019-02-21 Alan Hayward <alan.hayward@arm.com>
15031
15032 * NEWS: Update style defaults.
15033
ee2bcb0c
AH
150342019-02-21 Alan Hayward <alan.hayward@arm.com>
15035
15036 * main.c (captured_main_1): Disable styling in batch mode.
15037
0c95f9ed
TT
150382019-02-20 Tom Tromey <tom@tromey.com>
15039
15040 * symtab.c (symtab_symbol_info): Fix typos.
15041
c763b894
TT
150422019-02-20 Tom Tromey <tromey@adacore.com>
15043
15044 * findcmd.c (_initialize_mem_search): Use upper case for
15045 metasyntactic variables.
15046
0ef8a082
AH
150472019-02-20 Alan Hayward <alan.hayward@arm.com>
15048
15049 * aarch64-tdep.c (aarch64_add_reggroups): New function.
15050 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
15051
6caa91b6
SM
150522019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
15053
15054 * top.h (source_file_name): Change to std::string.
15055 * top.c (source_file_name): Likewise.
15056 (command_line_input): Adjust.
15057 * cli/cli-script.c (script_from_file): Adjust.
15058
98814c6c
TT
150592019-02-19 Tom Tromey <tromey@adacore.com>
15060
15061 * ravenscar-thread.c
15062 (ravenscar_thread_target::update_thread_list): Don't call
15063 ada_build_task_list.
15064 * ada-lang.h (ada_build_task_list): Don't declare.
15065 * ada-tasks.c (struct ada_tasks_inferior_data)
15066 <task_list_valid_p>: Now bool.
15067 (read_known_tasks, ada_task_list_changed)
15068 (ada_tasks_invalidate_inferior_data): Update.
15069 (read_known_tasks_array): Return bool.
15070 (read_known_tasks_list): Likewise.
15071 (read_known_tasks): Return void.
15072 (ada_build_task_list): Now static.
15073
70cd633e
AB
150742019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
15075
15076 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
15077 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
15078
040b3e95
PW
150792019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15080
15081 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
15082 variant for ada_tasks_pspace_data_handle and
15083 ada_tasks_inferior_data_handle.
15084 (ada_tasks_pspace_data_cleanup): New function.
15085 (ada_tasks_inferior_data_cleanup): New function.
15086
9409233b
TT
150872019-02-17 Tom Tromey <tom@tromey.com>
15088
15089 * macrotab.h (macro_source_fullname): Return a std::string.
15090 * macrotab.c (macro_include, check_for_redefinition)
15091 (macro_undef, macro_lookup_definition, foreach_macro)
15092 (foreach_macro_in_scope): Update.
15093 (macro_source_fullname): Return a std::string.
15094 * macrocmd.c (show_pp_source_pos): Update.
15095
6506371f
TT
150962019-02-17 Tom Tromey <tom@tromey.com>
15097
15098 * macrocmd.c (show_pp_source_pos): Style the file names.
15099
0c820d67
TT
151002019-02-17 Tom Tromey <tom@tromey.com>
15101
15102 PR tui/24197:
15103 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
15104
a0087920
TT
151052019-02-17 Tom Tromey <tom@tromey.com>
15106
15107 * ada-lang.c (user_select_syms): Use filtered printing.
15108 * utils.c (wrap_style): New global.
15109 (desired_style): Remove.
15110 (emit_style_escape): Add stream parameter.
15111 (set_output_style, reset_terminal_style, prompt_for_continue):
15112 Update.
15113 (flush_wrap_buffer): Only flush gdb_stdout.
15114 (wrap_here): Set wrap_style.
15115 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
15116 treat escape sequences as a character. Change when wrap buffer is
15117 flushed.
15118 (fputs_styled): Do not set the output style when the default is
15119 requested.
15120 * ui-style.h (struct ui_file_style) <is_default>: New method.
15121 * source.c (print_source_lines_base): Emit escape sequences in one
15122 piece.
15123
75ba10dc
JB
151242019-02-17 Joel Brobecker <brobecker@adacore.com>
15125
15126 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
15127 integers and enumeration types.
15128
a2cd4f14
JB
151292019-02-17 Joel Brobecker <brobecker@adacore.com>
15130
15131 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
15132 instead of lookup_symbol_in_language
15133 (do_exact_match): New function.
15134 (ada_get_symbol_name_matcher): Return do_exact_match when
15135 doing a verbatim match.
15136
485b851b
TT
151372019-02-15 Tom Tromey <tromey@adacore.com>
15138
15139 * ravenscar-thread.c (ravenscar_thread_target::resume)
15140 (ravenscar_thread_target::wait): Special case wildcard requests.
15141
0b790b1e
TT
151422019-02-15 Tom Tromey <tromey@adacore.com>
15143
15144 * ravenscar-thread.c (base_ptid): Remove.
15145 (struct ravenscar_thread_target) <close>: New method.
15146 <m_base_ptid>: New member.
15147 <update_inferior_ptid, active_task, task_is_currently_active,
15148 runtime_initialized>: Declare methods.
15149 <ravenscar_thread_target>: Add constructor.
15150 (ravenscar_thread_target::task_is_currently_active)
15151 (ravenscar_thread_target::update_inferior_ptid)
15152 (ravenscar_runtime_initialized): Rename. Now methods.
15153 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
15154 (ravenscar_thread_target::update_thread_list): Update.
15155 (ravenscar_thread_target::active_task): Now method.
15156 (ravenscar_thread_target::store_registers)
15157 (ravenscar_thread_target::prepare_to_store)
15158 (ravenscar_thread_target::prepare_to_store)
15159 (ravenscar_thread_target::mourn_inferior): Update.
15160 (ravenscar_inferior_created): Use "new" to create target.
15161 (ravenscar_thread_target::get_ada_task_ptid): Update.
15162 (_initialize_ravenscar): Don't initialize base_ptid.
15163 (ravenscar_ops): Remove global.
15164
dea57a62
TT
151652019-02-15 Tom Tromey <tromey@adacore.com>
15166
15167 * target.h (push_target): Declare new overload.
15168 * target.c (push_target): New overload, taking an rvalue reference.
15169 * remote.c (remote_target::open_1): Use push_target overload.
15170 * corelow.c (core_target_open): Use push_target overload.
15171
989f3c58
TT
151722019-02-15 Tom Tromey <tromey@adacore.com>
15173
15174 * ravenscar-thread.c (is_ravenscar_task)
15175 (ravenscar_task_is_currently_active): Return bool.
15176 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
15177 (_initialize_ravenscar): Remove "(void)".
15178 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
15179 Return bool.
15180
6cbcc006
TT
151812019-02-15 Tom Tromey <tromey@adacore.com>
15182
15183 * ravenscar-thread.c (ravenscar_runtime_initializer)
15184 (has_ravenscar_runtime, get_running_thread_id)
15185 (ravenscar_thread_target::resume): Fix indentation.
15186
7657f14d
TT
151872019-02-15 Tom Tromey <tromey@adacore.com>
15188
15189 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
15190 from ravenscar_arch_ops.
15191 (sparc_ravenscar_ops::fetch_registers)
15192 (sparc_ravenscar_ops::store_registers): Now methods.
15193 (sparc_ravenscar_prepare_to_store): Remove.
15194 (sparc_ravenscar_ops): Redefine.
15195 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
15196 methods and destructor. Remove members.
15197 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
15198 (ravenscar_thread_target::store_registers)
15199 (ravenscar_thread_target::prepare_to_store): Update.
15200 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
15201 Remove.
15202 (struct ppc_ravenscar_powerpc_ops): Derive from
15203 ravenscar_arch_ops.
15204 (ppc_ravenscar_powerpc_ops::fetch_registers)
15205 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
15206 (ppc_ravenscar_powerpc_ops): Redefine.
15207 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
15208 (ppc_ravenscar_e500_ops::fetch_registers)
15209 (ppc_ravenscar_e500_ops::store_registers): Now methods.
15210 (ppc_ravenscar_e500_ops): Redefine.
15211 * aarch64-ravenscar-thread.c
15212 (aarch64_ravenscar_generic_prepare_to_store): Remove.
15213 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
15214 (aarch64_ravenscar_fetch_registers)
15215 (aarch64_ravenscar_store_registers): Now methods.
15216 (aarch64_ravenscar_ops): Redefine.
15217
5b6ea500
TT
152182019-02-15 Tom Tromey <tromey@adacore.com>
15219
15220 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
15221 (ravenscar_thread_target::stopped_by_hw_breakpoint)
15222 (ravenscar_thread_target::stopped_by_watchpoint)
15223 (ravenscar_thread_target::stopped_data_address)
15224 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
15225
e397fd39
TT
152262019-02-15 Tom Tromey <tromey@adacore.com>
15227
15228 * ravenscar-thread.c: Fix some typos.
15229
cc12f4a8
TT
152302019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15231 Tom Tromey <tromey@adacore.com>
15232
15233 * ada-lang.c (ada_exception_sal): Change addr_string to a
15234 std::string.
15235 (create_ada_exception_catchpoint): Update.
15236
5f486660
TT
152372019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15238 Tom Tromey <tromey@adacore.com>
15239
15240 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
15241 (bp_location_ops): Remove.
15242 (base_breakpoint_allocate_location): Update.
15243 (free_bp_location): Update.
15244 * ada-lang.c (class ada_catchpoint_location)
15245 <ada_catchpoint_location>: Remove ops parameter.
15246 (ada_catchpoint_location_dtor): Remove.
15247 (ada_catchpoint_location_ops): Remove.
15248 (allocate_location_exception): Update.
15249 * breakpoint.h (struct bp_location_ops): Remove.
15250 (class bp_location) <bp_location>: Remove bp_location_ops
15251 parameter.
15252 <~bp_location>: Add destructor.
15253 <ops>: Remove.
15254
b671c7fb
TS
152552019-02-14 Thomas Schwinge <thomas@codesourcery.com>
15256 Pedro Alves <palves@redhat.com>
15257
15258 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
15259 'PATH_MAX'.
15260
8071c5ce
DM
152612019-02-14 David Michael <fedora.dm0@gmail.com>
15262 Samuel Thibault <samuel.thibault@gnu.org>
15263 Thomas Schwinge <thomas@codesourcery.com>
15264
15265 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
15266 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
15267
b1041ae0
TS
152682019-02-14 Thomas Schwinge <thomas@codesourcery.com>
15269
924514e1
TS
15270 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
15271 (check_empty): Use "const char *".
15272
c29ee8d4
TS
15273 * gnu-nat.c (gnu_nat_target::detach): Instead of
15274 'detach_inferior (pid)' call
15275 'detach_inferior (find_inferior_pid (pid))'.
15276
6c6ef69f
TS
15277 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
15278 'nat/fork-inferior.o'.
15279 * gnu-nat.c: #include "nat/fork-inferior.h".
15280
2d0a338c
TS
15281 * gnu-nat.c (gnu_nat_target::detach): Instead of
15282 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
15283 * gnu-nat.h: #include "inf-child.h".
15284 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
15285 'i386_gnu_nat_target::fetch_registers'.
15286 (gnu_store_registers): Rename/move to
15287 'i386_gnu_nat_target::store_registers'.
15288
cabb5f06
TS
15289 * config/i386/nm-i386gnu.h: Don't "#include" any files.
15290 * gnu-nat.h (mach_thread_info): New function.
15291 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
15292
b1041ae0
TS
15293 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
15294
2988d01e
KF
152952019-02-14 Frederic Konrad <konrad@adacore.com>
15296
15297 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
15298
c559d709
JB
152992019-02-14 Joel Brobecker <brobecker@adacore.com>
15300
15301 * windows-nat.c (windows_add_thread): Add new parameter
15302 "main_thread_p" with default value set to false. Update
15303 function documentation as well as all callers.
15304 (windows_delete_thread): Likewise.
15305 (fake_create_process): Update call to windows_add_thread.
15306 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
15307 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
15308 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
15309 call to windows_delete_thread.
15310
007024cc
SM
153112019-02-13 Simon Marchi <simon.marchi@ericsson.com>
15312
15313 * MAINTAINERS: Add Andrew Burgess as global maintainer.
15314
f62318e9
JB
153152019-02-12 John Baldwin <jhb@FreeBSD.org>
15316
15317 * symfile.c (find_separate_debug_file): Use canonical path of
15318 sysroot with child_path instead of gdb_sysroot if it is valid.
15319
cd4b7848
JB
153202019-02-12 John Baldwin <jhb@FreeBSD.org>
15321
15322 * symfile.c (find_separate_debug_file): Use child_path to
15323 determine if an object file is under a sysroot.
15324
efac4bfe
JB
153252019-02-12 John Baldwin <jhb@FreeBSD.org>
15326
15327 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
15328 unittests/child-path-selftests.c.
15329 * common/pathstuff.c (child_path): New function.
15330 * common/pathstuff.h (child_path): New prototype.
15331 * unittests/child-path-selftests.c: New file.
15332
402d2bfe
JB
153332019-02-12 John Baldwin <jhb@FreeBSD.org>
15334
15335 * symfile.c (find_separate_debug_file): Look for separate debug
15336 files in debug directories under the sysroot.
15337
1ed9f74e
PW
153382019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15339
15340 * symtab.h (struct minimal_symbol data_p): New const method.
15341 (struct minimal_symbol text_p): Likewise.
15342 * symtab.c (output_source_filename): Use file name style
15343 to print file name.
15344 (print_symbol_info): Likewise.
15345 (print_msymbol_info): Use address style to print addresses.
15346 Use function name style to print executable text symbols.
15347 (expand_symtab_containing_pc): Use data_p.
15348 (find_pc_sect_compunit_symtab): Likewise.
15349
2636d81d
PW
153502019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15351
15352 * breakpoint.c (describe_other_breakpoints): Use address style
15353 to print addresses.
15354 (say_where): Likewise.
15355
ac8c53cc
PW
153562019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15357
15358 * ada-typeprint.c (print_func_type): Print function name
15359 style to print function name.
15360 * c-typeprint.c (c_print_type_1): Likewise.
15361
ea638c43
AH
153622019-02-11 Alan Hayward <alan.hayward@arm.com>
15363
15364 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
15365 for execve.
15366
ab759ca8
PW
153672019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15368
15369 * c-exp.y (direct_abs_decl): Use emplace_back to record the
15370 type_stack.
15371
aff29d1c
JB
153722019-02-10 Joel Brobecker <brobecker@adacore.com>
15373
15374 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
15375 TYPE_CODE_REF types.
15376
617126bc
JW
153772019-02-08 Jim Wilson <jimw@sifive.com>
15378
15379 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
15380 (riscv_linux_fregset): New.
15381 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
15382
46e3ed7f
TT
153832019-02-07 Tom Tromey <tom@tromey.com>
15384
15385 * thread.c (thread_cancel_execution_command): Update.
15386 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
15387 methods.
15388 (struct thread_fsm_ops): Remove.
15389 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
15390 (thread_fsm_should_stop, thread_fsm_return_value)
15391 (thread_fsm_set_finished, thread_fsm_finished_p)
15392 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
15393 Don't declare.
15394 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
15395 * infrun.c (clear_proceed_status_thread)
15396 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
15397 (print_stop_event): Update.
15398 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
15399 Add constructor.
15400 (step_command_fsm_ops): Remove.
15401 (new_step_command_fsm): Remove.
15402 (step_1): Update.
15403 (step_command_fsm::should_stop): Rename from
15404 step_command_fsm_should_stop.
15405 (step_command_fsm::clean_up): Rename from
15406 step_command_fsm_clean_up.
15407 (step_command_fsm::do_async_reply_reason): Rename from
15408 step_command_fsm_async_reply_reason.
15409 (struct until_next_fsm): Inherit from thread_fsm. Add
15410 constructor.
15411 (until_next_fsm_ops): Remove.
15412 (new_until_next_fsm): Remove.
15413 (until_next_fsm::should_stop): Rename from
15414 until_next_fsm_should_stop.
15415 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
15416 (until_next_fsm::do_async_reply_reason): Rename from
15417 until_next_fsm_async_reply_reason.
15418 (struct finish_command_fsm): Inherit from thread_fsm. Add
15419 constructor. Change type of breakpoint.
15420 (finish_command_fsm_ops): Remove.
15421 (new_finish_command_fsm): Remove.
15422 (finish_command_fsm::should_stop): Rename from
15423 finish_command_fsm_should_stop.
15424 (finish_command_fsm::clean_up): Rename from
15425 finish_command_fsm_clean_up.
15426 (finish_command_fsm::return_value): Rename from
15427 finish_command_fsm_return_value.
15428 (finish_command_fsm::do_async_reply_reason): Rename from
15429 finish_command_fsm_async_reply_reason.
15430 (finish_command): Update.
15431 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
15432 Add constructor.
15433 (call_thread_fsm_ops): Remove.
15434 (call_thread_fsm::call_thread_fsm): Rename from
15435 new_call_thread_fsm.
15436 (call_thread_fsm::should_stop): Rename from
15437 call_thread_fsm_should_stop.
15438 (call_thread_fsm::should_notify_stop): Rename from
15439 call_thread_fsm_should_notify_stop.
15440 (run_inferior_call, call_function_by_hand_dummy): Update.
15441 * cli/cli-interp.c (should_print_stop_to_console): Update.
15442 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
15443 Add constructor. Change type of location_breakpoint,
15444 caller_breakpoint.
15445 (until_break_fsm_ops): Remove.
15446 (new_until_break_fsm): Remove.
15447 (until_break_fsm::should_stop): Rename from
15448 until_break_fsm_should_stop.
15449 (until_break_fsm::clean_up): Rename from
15450 until_break_fsm_clean_up.
15451 (until_break_fsm::do_async_reply_reason): Rename from
15452 until_break_fsm_async_reply_reason.
15453 (until_break_command): Update.
15454 * thread-fsm.c: Remove.
15455 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
15456
1a5c2598
TT
154572019-02-07 Tom Tromey <tom@tromey.com>
15458
15459 * yy-remap.h: Add include guard.
15460 * xtensa-tdep.h: Add include guard.
15461 * xcoffread.h: Rename include guard.
15462 * varobj-iter.h: Add include guard.
15463 * tui/tui.h: Rename include guard.
15464 * tui/tui-winsource.h: Rename include guard.
15465 * tui/tui-wingeneral.h: Rename include guard.
15466 * tui/tui-windata.h: Rename include guard.
15467 * tui/tui-win.h: Rename include guard.
15468 * tui/tui-stack.h: Rename include guard.
15469 * tui/tui-source.h: Rename include guard.
15470 * tui/tui-regs.h: Rename include guard.
15471 * tui/tui-out.h: Rename include guard.
15472 * tui/tui-layout.h: Rename include guard.
15473 * tui/tui-io.h: Rename include guard.
15474 * tui/tui-hooks.h: Rename include guard.
15475 * tui/tui-file.h: Rename include guard.
15476 * tui/tui-disasm.h: Rename include guard.
15477 * tui/tui-data.h: Rename include guard.
15478 * tui/tui-command.h: Rename include guard.
15479 * tic6x-tdep.h: Add include guard.
15480 * target/waitstatus.h: Rename include guard.
15481 * target/wait.h: Rename include guard.
15482 * target/target.h: Rename include guard.
15483 * target/resume.h: Rename include guard.
15484 * target-float.h: Rename include guard.
15485 * stabsread.h: Add include guard.
15486 * rs6000-tdep.h: Add include guard.
15487 * riscv-fbsd-tdep.h: Add include guard.
15488 * regformats/regdef.h: Rename include guard.
15489 * record.h: Rename include guard.
15490 * python/python.h: Rename include guard.
15491 * python/python-internal.h: Rename include guard.
15492 * python/py-stopevent.h: Rename include guard.
15493 * python/py-ref.h: Rename include guard.
15494 * python/py-record.h: Rename include guard.
15495 * python/py-record-full.h: Rename include guard.
15496 * python/py-record-btrace.h: Rename include guard.
15497 * python/py-instruction.h: Rename include guard.
15498 * python/py-events.h: Rename include guard.
15499 * python/py-event.h: Rename include guard.
15500 * procfs.h: Add include guard.
15501 * proc-utils.h: Add include guard.
15502 * p-lang.h: Add include guard.
15503 * or1k-tdep.h: Rename include guard.
15504 * observable.h: Rename include guard.
15505 * nto-tdep.h: Rename include guard.
15506 * nat/x86-linux.h: Rename include guard.
15507 * nat/x86-linux-dregs.h: Rename include guard.
15508 * nat/x86-gcc-cpuid.h: Add include guard.
15509 * nat/x86-dregs.h: Rename include guard.
15510 * nat/x86-cpuid.h: Rename include guard.
15511 * nat/ppc-linux.h: Rename include guard.
15512 * nat/mips-linux-watch.h: Rename include guard.
15513 * nat/linux-waitpid.h: Rename include guard.
15514 * nat/linux-ptrace.h: Rename include guard.
15515 * nat/linux-procfs.h: Rename include guard.
15516 * nat/linux-osdata.h: Rename include guard.
15517 * nat/linux-nat.h: Rename include guard.
15518 * nat/linux-namespaces.h: Rename include guard.
15519 * nat/linux-btrace.h: Rename include guard.
15520 * nat/glibc_thread_db.h: Rename include guard.
15521 * nat/gdb_thread_db.h: Rename include guard.
15522 * nat/gdb_ptrace.h: Rename include guard.
15523 * nat/fork-inferior.h: Rename include guard.
15524 * nat/amd64-linux-siginfo.h: Rename include guard.
15525 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
15526 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
15527 * nat/aarch64-linux.h: Rename include guard.
15528 * nat/aarch64-linux-hw-point.h: Rename include guard.
15529 * mn10300-tdep.h: Add include guard.
15530 * mips-linux-tdep.h: Add include guard.
15531 * mi/mi-parse.h: Rename include guard.
15532 * mi/mi-out.h: Rename include guard.
15533 * mi/mi-main.h: Rename include guard.
15534 * mi/mi-interp.h: Rename include guard.
15535 * mi/mi-getopt.h: Rename include guard.
15536 * mi/mi-console.h: Rename include guard.
15537 * mi/mi-common.h: Rename include guard.
15538 * mi/mi-cmds.h: Rename include guard.
15539 * mi/mi-cmd-break.h: Rename include guard.
15540 * m2-lang.h: Add include guard.
15541 * location.h: Rename include guard.
15542 * linux-record.h: Rename include guard.
15543 * linux-nat.h: Add include guard.
15544 * linux-fork.h: Add include guard.
15545 * i386-darwin-tdep.h: Rename include guard.
15546 * hppa-linux-offsets.h: Add include guard.
15547 * guile/guile.h: Rename include guard.
15548 * guile/guile-internal.h: Rename include guard.
15549 * gnu-nat.h: Rename include guard.
15550 * gdb-stabs.h: Rename include guard.
15551 * frv-tdep.h: Add include guard.
15552 * f-lang.h: Add include guard.
15553 * event-loop.h: Add include guard.
15554 * darwin-nat.h: Rename include guard.
15555 * cp-abi.h: Rename include guard.
15556 * config/sparc/nm-sol2.h: Rename include guard.
15557 * config/nm-nto.h: Rename include guard.
15558 * config/nm-linux.h: Add include guard.
15559 * config/i386/nm-i386gnu.h: Rename include guard.
15560 * config/djgpp/nl_types.h: Rename include guard.
15561 * config/djgpp/langinfo.h: Rename include guard.
15562 * compile/gcc-cp-plugin.h: Add include guard.
15563 * compile/gcc-c-plugin.h: Add include guard.
15564 * compile/compile.h: Rename include guard.
15565 * compile/compile-object-run.h: Rename include guard.
15566 * compile/compile-object-load.h: Rename include guard.
15567 * compile/compile-internal.h: Rename include guard.
15568 * compile/compile-cplus.h: Rename include guard.
15569 * compile/compile-c.h: Rename include guard.
15570 * common/xml-utils.h: Rename include guard.
15571 * common/x86-xstate.h: Rename include guard.
15572 * common/version.h: Rename include guard.
15573 * common/vec.h: Rename include guard.
15574 * common/tdesc.h: Rename include guard.
15575 * common/selftest.h: Rename include guard.
15576 * common/scoped_restore.h: Rename include guard.
15577 * common/scoped_mmap.h: Rename include guard.
15578 * common/scoped_fd.h: Rename include guard.
15579 * common/safe-iterator.h: Rename include guard.
15580 * common/run-time-clock.h: Rename include guard.
15581 * common/refcounted-object.h: Rename include guard.
15582 * common/queue.h: Rename include guard.
15583 * common/ptid.h: Rename include guard.
15584 * common/print-utils.h: Rename include guard.
15585 * common/preprocessor.h: Rename include guard.
15586 * common/pathstuff.h: Rename include guard.
15587 * common/observable.h: Rename include guard.
15588 * common/netstuff.h: Rename include guard.
15589 * common/job-control.h: Rename include guard.
15590 * common/host-defs.h: Rename include guard.
15591 * common/gdb_wait.h: Rename include guard.
15592 * common/gdb_vecs.h: Rename include guard.
15593 * common/gdb_unlinker.h: Rename include guard.
15594 * common/gdb_unique_ptr.h: Rename include guard.
15595 * common/gdb_tilde_expand.h: Rename include guard.
15596 * common/gdb_sys_time.h: Rename include guard.
15597 * common/gdb_string_view.h: Rename include guard.
15598 * common/gdb_splay_tree.h: Rename include guard.
15599 * common/gdb_setjmp.h: Rename include guard.
15600 * common/gdb_ref_ptr.h: Rename include guard.
15601 * common/gdb_optional.h: Rename include guard.
15602 * common/gdb_locale.h: Rename include guard.
15603 * common/gdb_assert.h: Rename include guard.
15604 * common/filtered-iterator.h: Rename include guard.
15605 * common/filestuff.h: Rename include guard.
15606 * common/fileio.h: Rename include guard.
15607 * common/environ.h: Rename include guard.
15608 * common/common-utils.h: Rename include guard.
15609 * common/common-types.h: Rename include guard.
15610 * common/common-regcache.h: Rename include guard.
15611 * common/common-inferior.h: Rename include guard.
15612 * common/common-gdbthread.h: Rename include guard.
15613 * common/common-exceptions.h: Rename include guard.
15614 * common/common-defs.h: Rename include guard.
15615 * common/common-debug.h: Rename include guard.
15616 * common/cleanups.h: Rename include guard.
15617 * common/buffer.h: Rename include guard.
15618 * common/btrace-common.h: Rename include guard.
15619 * common/break-common.h: Rename include guard.
15620 * cli/cli-utils.h: Rename include guard.
15621 * cli/cli-style.h: Rename include guard.
15622 * cli/cli-setshow.h: Rename include guard.
15623 * cli/cli-script.h: Rename include guard.
15624 * cli/cli-interp.h: Rename include guard.
15625 * cli/cli-decode.h: Rename include guard.
15626 * cli/cli-cmds.h: Rename include guard.
15627 * charset-list.h: Add include guard.
15628 * buildsym-legacy.h: Rename include guard.
15629 * bfin-tdep.h: Add include guard.
15630 * ax.h: Rename include guard.
15631 * arm-linux-tdep.h: Add include guard.
15632 * arm-fbsd-tdep.h: Add include guard.
15633 * arch/xtensa.h: Rename include guard.
15634 * arch/tic6x.h: Add include guard.
15635 * arch/i386.h: Add include guard.
15636 * arch/arm.h: Rename include guard.
15637 * arch/arm-linux.h: Rename include guard.
15638 * arch/arm-get-next-pcs.h: Rename include guard.
15639 * arch/amd64.h: Add include guard.
15640 * arch/aarch64-insn.h: Rename include guard.
15641 * arch-utils.h: Rename include guard.
15642 * annotate.h: Add include guard.
15643 * amd64-darwin-tdep.h: Rename include guard.
15644 * aarch64-linux-tdep.h: Add include guard.
15645 * aarch64-fbsd-tdep.h: Add include guard.
15646 * aarch32-linux-nat.h: Add include guard.
15647
ab9268d2
PW
156482019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15649
15650 * macrotab.c (macro_define_internal): New function that
15651 factorizes macro_define_object_internal and macro_define_function
15652 code.
15653 (macro_define_object_internal): Use macro_define_internal.
15654 (macro_define_function): Likewise.
15655
bb0da2b4
PW
156562019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15657
15658 * macrocmd.c (extract_identifier): Return
15659 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
15660 callers.
15661
424eb552
JB
156622019-02-06 John Baldwin <jhb@FreeBSD.org>
15663
15664 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
15665
1688cb29
TT
156662019-02-05 Tom Tromey <tom@tromey.com>
15667
15668 * target.c (target_stack::unpush): Move assertion earlier.
15669
b5eba2d8
TT
156702019-01-30 Tom Tromey <tom@tromey.com>
15671
15672 PR python/23615:
15673 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
15674 (gdbpy_parse_and_eval): Likewise.
15675 * python/python-internal.h (gdbpy_allow_threads): New class.
15676
7054e2ff
JB
156772019-01-28 John Baldwin <jhb@FreeBSD.org>
15678
15679 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
15680 (aarch64_fbsd_fpregmap): Move earlier.
15681 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
15682 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
15683 instead of individual calls to trad_frame_set_reg_addr.
15684 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
15685 earlier.
15686 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
15687 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
15688 instead of individual calls to trad_frame_set_reg_addr.
15689
36c25ffa
AH
156902019-01-28 Alan Hayward <alan.hayward@arm.com>
15691
15692 * CONTRIBUTE: Replace contribution list with wiki link.
15693
a0707f3c
TT
156942019-01-25 Tom Tromey <tom@tromey.com>
15695
15696 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
15697
0747795c
TT
156982019-01-25 Tom Tromey <tom@tromey.com>
15699
15700 * xtensa-linux-nat.c: Fix common/ includes.
15701 * xml-support.h: Fix common/ includes.
15702 * xml-support.c: Fix common/ includes.
15703 * x86-linux-nat.c: Fix common/ includes.
15704 * windows-nat.c: Fix common/ includes.
15705 * varobj.h: Fix common/ includes.
15706 * varobj.c: Fix common/ includes.
15707 * value.c: Fix common/ includes.
15708 * valops.c: Fix common/ includes.
15709 * utils.c: Fix common/ includes.
15710 * unittests/xml-utils-selftests.c: Fix common/ includes.
15711 * unittests/utils-selftests.c: Fix common/ includes.
15712 * unittests/unpack-selftests.c: Fix common/ includes.
15713 * unittests/tracepoint-selftests.c: Fix common/ includes.
15714 * unittests/style-selftests.c: Fix common/ includes.
15715 * unittests/string_view-selftests.c: Fix common/ includes.
15716 * unittests/scoped_restore-selftests.c: Fix common/ includes.
15717 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
15718 * unittests/scoped_fd-selftests.c: Fix common/ includes.
15719 * unittests/rsp-low-selftests.c: Fix common/ includes.
15720 * unittests/parse-connection-spec-selftests.c: Fix common/
15721 includes.
15722 * unittests/optional-selftests.c: Fix common/ includes.
15723 * unittests/offset-type-selftests.c: Fix common/ includes.
15724 * unittests/observable-selftests.c: Fix common/ includes.
15725 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
15726 * unittests/memrange-selftests.c: Fix common/ includes.
15727 * unittests/memory-map-selftests.c: Fix common/ includes.
15728 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
15729 * unittests/function-view-selftests.c: Fix common/ includes.
15730 * unittests/environ-selftests.c: Fix common/ includes.
15731 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
15732 * unittests/common-utils-selftests.c: Fix common/ includes.
15733 * unittests/cli-utils-selftests.c: Fix common/ includes.
15734 * unittests/array-view-selftests.c: Fix common/ includes.
15735 * ui-file.c: Fix common/ includes.
15736 * tui/tui-io.c: Fix common/ includes.
15737 * tracepoint.h: Fix common/ includes.
15738 * tracepoint.c: Fix common/ includes.
15739 * tracefile-tfile.c: Fix common/ includes.
15740 * top.h: Fix common/ includes.
15741 * top.c: Fix common/ includes.
15742 * thread.c: Fix common/ includes.
15743 * target/waitstatus.h: Fix common/ includes.
15744 * target/waitstatus.c: Fix common/ includes.
15745 * target.h: Fix common/ includes.
15746 * target.c: Fix common/ includes.
15747 * target-memory.c: Fix common/ includes.
15748 * target-descriptions.c: Fix common/ includes.
15749 * symtab.h: Fix common/ includes.
15750 * symfile.c: Fix common/ includes.
15751 * stap-probe.c: Fix common/ includes.
15752 * spu-linux-nat.c: Fix common/ includes.
15753 * sparc-nat.c: Fix common/ includes.
15754 * source.c: Fix common/ includes.
15755 * solib.c: Fix common/ includes.
15756 * solib-target.c: Fix common/ includes.
15757 * ser-unix.c: Fix common/ includes.
15758 * ser-tcp.c: Fix common/ includes.
15759 * ser-pipe.c: Fix common/ includes.
15760 * ser-base.c: Fix common/ includes.
15761 * selftest-arch.c: Fix common/ includes.
15762 * s12z-tdep.c: Fix common/ includes.
15763 * rust-exp.y: Fix common/ includes.
15764 * rs6000-aix-tdep.c: Fix common/ includes.
15765 * riscv-tdep.c: Fix common/ includes.
15766 * remote.c: Fix common/ includes.
15767 * remote-notif.h: Fix common/ includes.
15768 * remote-fileio.h: Fix common/ includes.
15769 * remote-fileio.c: Fix common/ includes.
15770 * regcache.h: Fix common/ includes.
15771 * regcache.c: Fix common/ includes.
15772 * record-btrace.c: Fix common/ includes.
15773 * python/python.c: Fix common/ includes.
15774 * python/py-type.c: Fix common/ includes.
15775 * python/py-inferior.c: Fix common/ includes.
15776 * progspace.h: Fix common/ includes.
15777 * producer.c: Fix common/ includes.
15778 * procfs.c: Fix common/ includes.
15779 * proc-api.c: Fix common/ includes.
15780 * printcmd.c: Fix common/ includes.
15781 * ppc-linux-nat.c: Fix common/ includes.
15782 * parser-defs.h: Fix common/ includes.
15783 * osdata.c: Fix common/ includes.
15784 * obsd-nat.c: Fix common/ includes.
15785 * nat/x86-linux.c: Fix common/ includes.
15786 * nat/x86-linux-dregs.c: Fix common/ includes.
15787 * nat/x86-dregs.h: Fix common/ includes.
15788 * nat/x86-dregs.c: Fix common/ includes.
15789 * nat/ppc-linux.c: Fix common/ includes.
15790 * nat/mips-linux-watch.h: Fix common/ includes.
15791 * nat/mips-linux-watch.c: Fix common/ includes.
15792 * nat/linux-waitpid.c: Fix common/ includes.
15793 * nat/linux-ptrace.h: Fix common/ includes.
15794 * nat/linux-ptrace.c: Fix common/ includes.
15795 * nat/linux-procfs.c: Fix common/ includes.
15796 * nat/linux-personality.c: Fix common/ includes.
15797 * nat/linux-osdata.c: Fix common/ includes.
15798 * nat/linux-namespaces.c: Fix common/ includes.
15799 * nat/linux-btrace.h: Fix common/ includes.
15800 * nat/linux-btrace.c: Fix common/ includes.
15801 * nat/fork-inferior.c: Fix common/ includes.
15802 * nat/amd64-linux-siginfo.c: Fix common/ includes.
15803 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
15804 * nat/aarch64-linux.c: Fix common/ includes.
15805 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
15806 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
15807 * namespace.h: Fix common/ includes.
15808 * mips-linux-tdep.c: Fix common/ includes.
15809 * minsyms.c: Fix common/ includes.
15810 * mi/mi-parse.h: Fix common/ includes.
15811 * mi/mi-main.c: Fix common/ includes.
15812 * mi/mi-cmd-env.c: Fix common/ includes.
15813 * memrange.h: Fix common/ includes.
15814 * memattr.c: Fix common/ includes.
15815 * maint.h: Fix common/ includes.
15816 * maint.c: Fix common/ includes.
15817 * main.c: Fix common/ includes.
15818 * machoread.c: Fix common/ includes.
15819 * location.c: Fix common/ includes.
15820 * linux-thread-db.c: Fix common/ includes.
15821 * linux-nat.c: Fix common/ includes.
15822 * linux-fork.c: Fix common/ includes.
15823 * inline-frame.c: Fix common/ includes.
15824 * infrun.c: Fix common/ includes.
15825 * inflow.c: Fix common/ includes.
15826 * inferior.h: Fix common/ includes.
15827 * inferior.c: Fix common/ includes.
15828 * infcmd.c: Fix common/ includes.
15829 * inf-ptrace.c: Fix common/ includes.
15830 * inf-child.c: Fix common/ includes.
15831 * ia64-linux-nat.c: Fix common/ includes.
15832 * i387-tdep.c: Fix common/ includes.
15833 * i386-tdep.c: Fix common/ includes.
15834 * i386-linux-tdep.c: Fix common/ includes.
15835 * i386-linux-nat.c: Fix common/ includes.
15836 * i386-go32-tdep.c: Fix common/ includes.
15837 * i386-fbsd-tdep.c: Fix common/ includes.
15838 * i386-fbsd-nat.c: Fix common/ includes.
15839 * guile/scm-type.c: Fix common/ includes.
15840 * guile/guile.c: Fix common/ includes.
15841 * go32-nat.c: Fix common/ includes.
15842 * gnu-nat.c: Fix common/ includes.
15843 * gdbthread.h: Fix common/ includes.
15844 * gdbarch-selftests.c: Fix common/ includes.
15845 * gdb_usleep.c: Fix common/ includes.
15846 * gdb_select.h: Fix common/ includes.
15847 * gdb_bfd.c: Fix common/ includes.
15848 * gcore.c: Fix common/ includes.
15849 * fork-child.c: Fix common/ includes.
15850 * findvar.c: Fix common/ includes.
15851 * fbsd-nat.c: Fix common/ includes.
15852 * event-top.c: Fix common/ includes.
15853 * event-loop.c: Fix common/ includes.
15854 * dwarf2read.c: Fix common/ includes.
15855 * dwarf2loc.c: Fix common/ includes.
15856 * dwarf2-frame.c: Fix common/ includes.
15857 * dwarf-index-cache.c: Fix common/ includes.
15858 * dtrace-probe.c: Fix common/ includes.
15859 * disasm-selftests.c: Fix common/ includes.
15860 * defs.h: Fix common/ includes.
15861 * csky-tdep.c: Fix common/ includes.
15862 * cp-valprint.c: Fix common/ includes.
15863 * cp-support.h: Fix common/ includes.
15864 * cp-support.c: Fix common/ includes.
15865 * corelow.c: Fix common/ includes.
15866 * completer.h: Fix common/ includes.
15867 * completer.c: Fix common/ includes.
15868 * compile/compile.c: Fix common/ includes.
15869 * compile/compile-loc2c.c: Fix common/ includes.
15870 * compile/compile-cplus-types.c: Fix common/ includes.
15871 * compile/compile-cplus-symbols.c: Fix common/ includes.
15872 * command.h: Fix common/ includes.
15873 * cli/cli-dump.c: Fix common/ includes.
15874 * cli/cli-cmds.c: Fix common/ includes.
15875 * charset.c: Fix common/ includes.
15876 * build-id.c: Fix common/ includes.
15877 * btrace.h: Fix common/ includes.
15878 * btrace.c: Fix common/ includes.
15879 * breakpoint.h: Fix common/ includes.
15880 * breakpoint.c: Fix common/ includes.
15881 * ax.h:
15882 (enum agent_op): Fix common/ includes.
15883 * ax-general.c (struct aop_map): Fix common/ includes.
15884 * ax-gdb.c: Fix common/ includes.
15885 * auxv.c: Fix common/ includes.
15886 * auto-load.c: Fix common/ includes.
15887 * arm-tdep.c: Fix common/ includes.
15888 * arch/riscv.c: Fix common/ includes.
15889 * arch/ppc-linux-common.c: Fix common/ includes.
15890 * arch/i386.c: Fix common/ includes.
15891 * arch/arm.c: Fix common/ includes.
15892 * arch/arm-linux.c: Fix common/ includes.
15893 * arch/arm-get-next-pcs.c: Fix common/ includes.
15894 * arch/amd64.c: Fix common/ includes.
15895 * arch/aarch64.c: Fix common/ includes.
15896 * arch/aarch64-insn.c: Fix common/ includes.
15897 * arch-utils.c: Fix common/ includes.
15898 * amd64-windows-tdep.c: Fix common/ includes.
15899 * amd64-tdep.c: Fix common/ includes.
15900 * amd64-sol2-tdep.c: Fix common/ includes.
15901 * amd64-obsd-tdep.c: Fix common/ includes.
15902 * amd64-nbsd-tdep.c: Fix common/ includes.
15903 * amd64-linux-tdep.c: Fix common/ includes.
15904 * amd64-linux-nat.c: Fix common/ includes.
15905 * amd64-fbsd-tdep.c: Fix common/ includes.
15906 * amd64-fbsd-nat.c: Fix common/ includes.
15907 * amd64-dicos-tdep.c: Fix common/ includes.
15908 * amd64-darwin-tdep.c: Fix common/ includes.
15909 * agent.c: Fix common/ includes.
15910 * ada-lang.h: Fix common/ includes.
15911 * ada-lang.c: Fix common/ includes.
15912 * aarch64-tdep.c: Fix common/ includes.
15913
2f5c153e
TT
159142019-01-25 Tom Tromey <tom@tromey.com>
15915
15916 * common/create-version.sh: Use common/version.h.
15917
adc6a863
PA
159182019-01-24 Pedro Alves <palves@redhat.com>
15919
15920 * infrun.c (signal_stop, signal_print, signal_program)
15921 (signal_catch, signal_pass): Now arrays instead of pointers.
15922 (update_signals_program_target, do_target_resume)
15923 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
15924 * linux-nat.c (linux_nat_target::pass_signals)
15925 (linux_nat_target::create_inferior, linux_nat_target::attach):
15926 Adjust.
15927 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
15928 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
15929 * procfs.c (procfs_target::pass_signals): Adjust.
15930 * record-full.c (record_full_target::resume): Adjust.
15931 * remote.c (remote_target::pass_signals)
15932 (remote_target::program_signals): Adjust.
15933 * target-debug.h (target_debug_print_signals): Now takes a
15934 gdb::array_view as parameter. Adjust.
15935 * target.h (target_ops) <pass_signals, program_signals>: Replace
15936 pointer and length parameters with gdb::array_view.
15937 (target_pass_signals, target_program_signals): Likewise.
15938 * target-delegates.c: Regenerate.
15939
3046d67a
PA
159402019-01-24 Pedro Alves <palves@redhat.com>
15941
15942 * common/forward-scope-exit.h
15943 (forward_scope_exit::forward_scope_exit): Pass arguments to
15944 m_bind_function directly, instead of creating a std::bind and
15945 copying that.
15946
353229bf
AH
159472019-01-24 Alan Hayward <alan.hayward@arm.com>
15948
15949 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
15950 for static members.
15951 (pass_in_v_vfp_candidate): Likewise.
15952
311dc83a
TT
159532019-01-23 Tom Tromey <tom@tromey.com>
15954 Pedro Alves <palves@redhat.com>
15955
15956 * regcache.c (class regcache_invalidator): Remove.
15957 (regcache::raw_write): Use make_scope_exit.
15958
296bd123
TT
159592019-01-23 Tom Tromey <tom@tromey.com>
15960
15961 * ui-out.h (class ui_out_emit_type): Update comment.
15962
979a0d13
TT
159632019-01-23 Tom Tromey <tom@tromey.com>
15964
15965 * infrun.c (fetch_inferior_event): Update comment.
15966
d238133d
TT
159672019-01-23 Tom Tromey <tom@tromey.com>
15968 Pedro Alves <palves@redhat.com>
15969
15970 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
15971 parameter.
15972 (fetch_inferior_event): Use SCOPE_EXIT.
15973
15974
9885e6bb
TT
159752019-01-23 Tom Tromey <tom@tromey.com>
15976 Pedro Alves <palves@redhat.com>
15977
15978 * infrun.c (disable_thread_events): Delete.
15979 (stop_all_threads): Use SCOPE_EXIT.
15980
286526c1
TT
159812019-01-23 Tom Tromey <tom@tromey.com>
15982 Pedro Alves <palves@redhat.com>
15983
15984 * symfile.c: Include forward-scope-exit.h.
15985 (clear_symtab_users_cleanup): Replace forward declaration with
15986 a FORWARD_SCOPE_EXIT.
15987 (syms_from_objfile_1): Use the forward_scope_exit and
15988 gdb::optional instead of cleanup_function.
15989 (reread_symbols): Use the forward_scope_exit instead of
15990 cleanup_function.
15991 (clear_symtab_users_cleanup): Remove function.
15992
1db93f14
TT
159932019-01-23 Tom Tromey <tom@tromey.com>
15994 Pedro Alves <palves@redhat.com>
15995
15996 * linux-nat.c: Include scope-exit.h.
15997 (cleanup_target_stop): Remove.
15998 (linux_nat_target::static_tracepoint_markers_by_strid): Use
15999 SCOPE_EXIT.
16000
2cc83d1e
TT
160012019-01-23 Tom Tromey <tom@tromey.com>
16002 Pedro Alves <palves@redhat.com>
16003
16004 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
16005 (call_function_by_hand_dummy): Use SCOPE_EXIT.
16006
694c6bf5
TT
160072019-01-23 Tom Tromey <tom@tromey.com>
16008 Andrew Burgess <andrew.burgess@embecosm.com>
16009 Pedro Alves <palves@redhat.com>
16010
16011 * infrun.c (fetch_inferior_event): Use scope_exit.
16012 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
16013 * top.c (execute_command): Use scope_exit.
16014 * breakpoint.c (bpstat_do_actions): Use scope_exit.
16015 * utils.c (do_bpstat_clear_actions_cleanup)
16016 (make_bpstat_clear_actions_cleanup): Remove.
16017
4c41382a
TT
160182019-01-23 Tom Tromey <tom@tromey.com>
16019 Pedro Alves <palves@redhat.com>
16020
16021 * infrun.c: Include "common/scope-exit.h"
16022 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
16023 (wait_for_inferior): Use SCOPE_EXIT.
16024 (fetch_inferior_event): Use scope_exit.
16025
89f8fb50
TT
160262019-01-23 Tom Tromey <tom@tromey.com>
16027 Pedro Alves <palves@redhat.com>
16028
16029 * breakpoint.c (create_breakpoint): Remove cleanup.
16030
5419bdae
TT
160312019-01-23 Tom Tromey <tom@tromey.com>
16032 Andrew Burgess <andrew.burgess@embecosm.com>
16033 Pedro Alves <palves@redhat.com>
16034
e587ef42
PA
160352019-01-23 Pedro Alves <palves@redhat.com>
16036
16037 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
16038
77f0e74c
PA
160392019-01-23 Pedro Alves <palves@redhat.com>
16040 Andrew Burgess <andrew.burgess@embecosm.com>
16041
16042 * gdbthread.h: Include "common/forward-scope-exit.h".
16043 (scoped_finish_thread_state): Redefine custom class in terms of
16044 forward_scope_exit.
16045
5b9b3e53
PA
160462019-01-23 Pedro Alves <palves@redhat.com>
16047 Andrew Burgess <andrew.burgess@embecosm.com>
16048
16049 * common/forward-scope-exit.h: New file.
16050
54b65c9b
PA
160512019-01-23 Pedro Alves <palves@redhat.com>
16052 Andrew Burgess <andrew.burgess@embecosm.com>
16053 Tom Tromey <tom@tromey.com>
16054
16055 * common/scope-exit.h: New file.
16056
cf08fb29
PA
160572019-01-23 Pedro Alves <palves@redhat.com>
16058
16059 * common/preprocessor.h (ESC): Rename to ...
16060 (ESC_PARENS): ... this.
16061 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
16062 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
16063
ae73e2e2
TT
160642019-01-23 Tom Tromey <tom@tromey.com>
16065
16066 * language.h (class scoped_switch_to_sym_language_if_auto):
16067 Initialize m_lang in both cases.
16068
6594e122
AH
160692019-01-23 Alan Hayward <alan.hayward@arm.com>
16070
16071 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
16072 with XCNEW.
16073
a7c9855d
TT
160742019-01-22 Tom Tromey <tom@tromey.com>
16075
16076 * corelow.c: Do not include sys/file.h.
16077
93cc1d53
TT
160782019-01-22 Tom Tromey <tom@tromey.com>
16079
16080 * tui/tui-wingeneral.h: Include gdb_curses.h.
16081
38561778
TT
160822019-01-22 Tom Tromey <tom@tromey.com>
16083
16084 * source-cache.h (class source_cache) <get_source_lines,
16085 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
16086
37b3ab5b
TT
160872019-01-22 Tom Tromey <tom@tromey.com>
16088
16089 * remote-fileio.h (struct remote_target): Declare.
16090
3fabc016
TT
160912019-01-22 Tom Tromey <tom@tromey.com>
16092
16093 * python/py-arch.c: Do not include py-ref.h.
16094 * python/py-bpevent.c: Do not include py-ref.h.
16095 * python/py-cmd.c: Do not include py-ref.h.
16096 * python/py-continueevent.c: Do not include py-ref.h.
16097 * python/py-event.h: Do not include py-ref.h.
16098 * python/py-evtregistry.c: Do not include py-ref.h.
16099 * python/py-finishbreakpoint.c: Do not include py-ref.h.
16100 * python/py-frame.c: Do not include py-ref.h.
16101 * python/py-framefilter.c: Do not include py-ref.h.
16102 * python/py-function.c: Do not include py-ref.h.
16103 * python/py-infevents.c: Do not include py-ref.h.
16104 * python/py-linetable.c: Do not include py-ref.h.
16105 * python/py-objfile.c: Do not include py-ref.h.
16106 * python/py-param.c: Do not include py-ref.h.
16107 * python/py-prettyprint.c: Do not include py-ref.h.
16108 * python/py-progspace.c: Do not include py-ref.h.
16109 * python/py-symbol.c: Do not include py-ref.h.
16110 * python/py-symtab.c: Do not include py-ref.h.
16111 * python/py-type.c: Do not include py-ref.h.
16112 * python/py-unwind.c: Do not include py-ref.h.
16113 * python/py-utils.c: Do not include py-ref.h.
16114 * python/py-value.c: Do not include py-ref.h.
16115 * python/py-varobj.c: Do not include py-ref.h.
16116 * python/py-xmethods.c: Do not include py-ref.h.
16117 * python/python.c: Do not include py-ref.h.
16118 * varobj.c: Do not include py-ref.h.
16119
6b4d7774
TT
161202019-01-22 Tom Tromey <tom@tromey.com>
16121
16122 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
16123 keyword for bcache.
16124
7af7e9b5
TT
161252019-01-22 Tom Tromey <tom@tromey.com>
16126
16127 * compile/compile-cplus-types.c: Remove a comment by #include.
16128
951d1049
TT
161292019-01-22 Tom Tromey <tom@tromey.com>
16130
16131 * compile/gcc-c-plugin.h: Include compile-internal.h.
16132
d65d5705
TT
161332019-01-22 Tom Tromey <tom@tromey.com>
16134
16135 * stabsread.c (EXTERN): Do not define.
16136 (symnum, next_symbol_text_func, processing_gcc_compilation)
16137 (within_function, global_sym_chain, global_stabs)
16138 (previous_stab_code, this_object_header_files)
16139 (n_this_object_header_files)
16140 (n_allocated_this_object_header_files): Define.
16141 * stabsread.h (EXTERN): Never define. Use "extern".
16142
b6fb1ee5
PW
161432019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16144
16145 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
16146 history_value.
16147
be6d4f74
TT
161482019-01-21 Tom Tromey <tom@tromey.com>
16149
16150 * ui-out.c: Fix includes.
16151 * tui/tui-source.c: Fix includes.
16152 * target.c: Fix includes.
16153 * remote.c: Fix includes.
16154 * regcache.c: Fix includes.
16155 * python/py-block.c: Fix includes.
16156 * printcmd.c: Fix includes.
16157 * or1k-tdep.c: Fix includes.
16158 * mi/mi-main.c: Fix includes.
16159 * m32r-tdep.c: Fix includes.
16160 * csky-tdep.c: Fix includes.
16161 * compile/compile-cplus-types.c: Fix includes.
16162 * cli/cli-interp.c: Fix includes.
16163
73021deb
AH
161642019-01-21 Alan Hayward <alan.hayward@arm.com>
16165
16166 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
16167 for padding.
16168
7932255d
TT
161692019-01-16 Tom Tromey <tom@tromey.com>
16170
16171 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
16172 earlier.
16173 (struct objfile) <msymbols_range>: Move from top level.
16174 <msymbols>: New method.
16175 (class objfile_msymbols): Remove.
16176 * symtab.c (default_collect_symbol_completion_matches_break_on):
16177 Update.
16178 * symmisc.c (dump_msymbols): Update.
16179 * stabsread.c (scan_file_globals): Update.
16180 * objc-lang.c (info_selectors_command, info_classes_command)
16181 (find_methods): Update.
16182 * minsyms.c (find_solib_trampoline_target): Update.
16183 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
16184 * coffread.c (coff_symfile_read): Update.
16185 * ada-lang.c (ada_lookup_simple_minsym)
16186 (ada_collect_symbol_completion_matches): Update.
16187
604b1bfb
TT
161882019-01-16 Tom Tromey <tom@tromey.com>
16189
16190 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
16191 type. Remove no-argument constructor.
16192 <iterator::operator++>: Simplify.
16193 <begin>: Update.
16194 <end>: Use minimal_symbol_count.
16195
f252c6d5
TT
161962019-01-16 Tom Tromey <tom@tromey.com>
16197
16198 * objfiles.h (struct objfile) <psymtabs>: New method.
16199 (class objfile_psymtabs): Remove.
16200 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
16201 typedef.
16202 <range>: New method.
16203 (require_partial_symbols): Change return type.
16204 * psymtab.c (require_partial_symbols)
16205 (psym_expand_symtabs_matching): Update.
16206 * mdebugread.c (parse_partial_symbols): Update.
16207 * dbxread.c (dbx_end_psymtab): Update.
16208
b669c953
TT
162092019-01-15 Tom Tromey <tom@tromey.com>
16210
16211 * symtab.c (lookup_objfile_from_block)
16212 (lookup_symbol_in_objfile_symtabs)
16213 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
16214 (find_line_symtab, info_sources_command)
16215 (default_collect_symbol_completion_matches_break_on)
16216 (make_source_files_completion_list): Update.
16217 * symmisc.c (print_objfile_statistics, dump_objfile)
16218 (maintenance_print_symbols, maintenance_info_symtabs)
16219 (maintenance_check_symtabs, maintenance_info_line_tables):
16220 Update.
16221 * source.c (select_source_symtab)
16222 (forget_cached_source_info_for_objfile): Update.
16223 * objfiles.h (class objfile_compunits): Remove.
16224 (struct objfile) <compunits_range>: New typedef.
16225 (compunits): New method.
16226 * objfiles.c (objfile_relocate1): Update.
16227 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
16228 * maint.c (count_symtabs_and_blocks): Update.
16229 * linespec.c (iterate_over_all_matching_symtabs): Update.
16230 * cp-support.c (add_symbol_overload_list_qualified): Update.
16231 * coffread.c (coff_symtab_read): Update.
16232 * ada-lang.c (add_nonlocal_symbols)
16233 (ada_collect_symbol_completion_matches)
16234 (ada_add_global_exceptions): Update.
16235
7e955d83
TT
162362019-01-15 Tom Tromey <tom@tromey.com>
16237
16238 * progspace.h (program_space) <objfiles_safe_range>: New
16239 typedef.
16240 <objfiles_safe>: New method.
16241 * objfiles.h (class all_objfiles_safe): Remove.
16242 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
16243 * jit.c (jit_inferior_exit_hook): Update.
16244
2030c079
TT
162452019-01-17 Tom Tromey <tom@tromey.com>
16246
16247 * progspace.h (program_space) <objfiles_range>: New typedef.
16248 <objfiles>: New method.
16249 <objfiles_head>: Rename from objfiles.
16250 (object_files): Update.
16251 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
16252 * guile/scm-pretty-print.c
16253 (ppscm_find_pretty_printer_from_objfiles): Update.
16254 * guile/scm-objfile.c (gdbscm_objfiles): Update.
16255 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
16256 Update.
16257 * python/py-progspace.c (pspy_get_objfiles): Update.
16258 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
16259 Update.
16260 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
16261 (objfpy_lookup_objfile_by_build_id): Update.
16262 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
16263 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
16264 Update.
16265 * symtab.c (iterate_over_symtabs, matching_obj_sections)
16266 (expand_symtab_containing_pc, lookup_objfile_from_block)
16267 (lookup_static_symbol, basic_lookup_transparent_type)
16268 (find_pc_sect_compunit_symtab, find_symbol_at_address)
16269 (find_line_symtab, info_sources_command)
16270 (default_collect_symbol_completion_matches_break_on)
16271 (make_source_files_completion_list, find_main_name): Update.
16272 * symmisc.c (print_symbol_bcache_statistics)
16273 (print_objfile_statistics, maintenance_print_symbols)
16274 (maintenance_print_msymbols, maintenance_print_objfiles)
16275 (maintenance_info_symtabs, maintenance_check_symtabs)
16276 (maintenance_expand_symtabs, maintenance_info_line_tables):
16277 Update.
16278 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
16279 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
16280 (map_overlay_command, unmap_overlay_command)
16281 (simple_overlay_update, expand_symtabs_matching)
16282 (map_symbol_filenames): Update.
16283 * symfile-debug.c (set_debug_symfile): Update.
16284 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
16285 Update.
16286 * source.c (select_source_symtab, forget_cached_source_info):
16287 Update.
16288 * solib.c (solib_read_symbols): Update.
16289 * solib-spu.c (append_ocl_sos): Update.
16290 * psymtab.c (maintenance_print_psymbols)
16291 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
16292 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
16293 * printcmd.c (info_symbol_command): Update.
16294 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
16295 Update.
16296 * objfiles.h (class all_objfiles): Remove.
16297 * objfiles.c (have_partial_symbols, have_full_symbols)
16298 (have_minimal_symbols, qsort_cmp, update_section_map)
16299 (shared_objfile_contains_address_p)
16300 (default_iterate_over_objfiles_in_search_order): Update.
16301 * objc-lang.c (info_selectors_command, info_classes_command)
16302 (find_methods): Update.
16303 * minsyms.c (find_solib_trampoline_target): Update.
16304 * maint.c (maintenance_info_sections)
16305 (maintenance_translate_address, count_symtabs_and_blocks):
16306 Update.
16307 * main.c (captured_main_1): Update.
16308 * linux-thread-db.c (try_thread_db_load_from_pdir)
16309 (has_libpthread): Update.
16310 * linespec.c (iterate_over_all_matching_symtabs)
16311 (search_minsyms_for_name): Update.
16312 * jit.c (jit_find_objf_with_entry_addr): Update.
16313 * hppa-tdep.c (find_unwind_entry)
16314 (hppa_lookup_stub_minimal_symbol): Update.
16315 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
16316 Update.
16317 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
16318 (elf_gnu_ifunc_resolve_by_got): Update.
16319 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
16320 * dwarf-index-write.c (save_gdb_index_command): Update.
16321 * cp-support.c (add_symbol_overload_list_qualified): Update.
16322 * breakpoint.c (create_overlay_event_breakpoint)
16323 (create_longjmp_master_breakpoint)
16324 (create_std_terminate_master_breakpoint)
16325 (create_exception_master_breakpoint): Update.
16326 * blockframe.c (find_pc_partial_function): Update.
16327 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
16328 (ada_collect_symbol_completion_matches)
16329 (ada_add_global_exceptions): Update.
16330
776489e0
TT
163312019-01-17 Tom Tromey <tom@tromey.com>
16332
16333 * solib-target.c (lm_info_target_p): Remove typedef. Don't
16334 declare VEC.
16335 (solib_target_parse_libraries): Change return type.
16336 (library_list_start_segment, library_list_start_section)
16337 (library_list_end_library, library_list_start_library); Update.
16338 (solib_target_free_library_list): Remove.
16339 (solib_target_parse_libraries): Remove cleanup. Change return
16340 type.
16341 (solib_target_current_sos): Update.
16342
6471e7d2
TT
163432019-01-17 Tom Tromey <tromey@bapiya>
16344
16345 * valprint.c: Replace "the the" with "the".
16346 * symtab.c: Replace "the the" with "the".
16347 * solib.c: Replace "the the" with "the".
16348 * solib-dsbt.c: Replace "the the" with "the".
16349 * linespec.c: Replace "the the" with "the".
16350 * dwarf2loc.h: Replace "the the" with "the".
16351 * amd64-windows-tdep.c: Replace "the the" with "the".
16352 * aarch64-tdep.c: Replace "the the" with "the".
16353
c24bdb02
KS
163542019-01-16 Keith Seitz <keiths@redhat.com>
16355
16356 PR gdb/23773
16357 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
16358 <builder>: Rename to ..
16359 <m_builder>: ... this and make private.
16360 (dwarf2_cu::get_builder): New method. Change all users of
16361 `builder' to use this method.
16362 (dwarf2_start_symtab): Move to ...
16363 (dwarf2_cu::start_symtab): ... here. Update all callers
16364 (setup_type_unit_groups): Move to ...
16365 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
16366 callers.
16367 (dwarf2_cu::reset_builder): New method.
16368 (process_full_compunit, process_full_type_unit): Use
16369 dwarf2_cu::reset_builder.
16370 (follow_die_offset): Record the ancestor CU if it is different
16371 from the followed DIE's CU.
16372 (follow_die_sig_1): Likewise.
16373
8d64371b
TT
163742019-01-15 Tom Tromey <tom@tromey.com>
16375
16376 * remote.c (class remote_state) <buf>: Now a char_vector.
16377 <buf_size>: Remove.
16378 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
16379 parameter.
16380 (remote_target::getpkt_or_notif_sane_1)
16381 (remote_target::getpkt_sane)
16382 (remote_target::getpkt_or_notif_sane): Likewise.
16383 (class remote_target) <putpkt>: New overload.
16384 (remote_target::read_frame): Change type of "buf_p". Remove
16385 sizeof_p parameter.
16386 (packet_ok): New overload.
16387 (packet_check_result): New overload.
16388 Update all uses.
16389
bb277751
TT
163902019-01-14 Tom Tromey <tom@tromey.com>
16391
16392 * remote-notif.c (handle_notification, remote_notif_ack)
16393 (remote_notif_parse): Make "buf" const.
16394 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
16395 const.
16396 (remote_notif_parse, remote_notif_ack, handle_notification):
16397 Likewise.
16398 * remote.c (remote_notif_stop_parse): Make "buf" const.
16399 (remote_target::remote_parse_stop_reply): Make "buf" const.
16400 (remote_notif_stop_ack): Make "buf" const.
16401
05be00a8
TT
164022019-01-14 Tom Tromey <tom@tromey.com>
16403
16404 * remote.c (remote_console_output): Make parameter const.
16405
491adeca
TT
164062019-01-14 Tom Tromey <tom@tromey.com>
16407
16408 * target-debug.h (target_debug_print_signals): Constify.
16409 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
16410 * procfs.c (procfs_target::pass_signals): Update.
16411 * linux-nat.c (linux_nat_target::pass_signals): Update.
16412 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
16413 * target-delegates.c: Rebuild.
16414 * remote.c (remote_target::program_signals): Update.
16415 (remote_target::pass_signals): Update.
16416 * target.c (target_pass_signals): Constify argument.
16417 (target_program_signals): Likewise.
16418 * target.h (struct target_ops) <pass_signals, program_signals>:
16419 Constify argument.
16420 (target_pass_signals, target_program_signals): Constify argument.
16421
bbd94648
TT
164222019-01-14 Tom Tromey <tom@tromey.com>
16423
16424 PR tui/28819:
16425 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
16426
6f072a10
PFC
164272019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
16428
16429 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
16430 field.
16431 * rs6000-tdep.c: Include reggroups.h.
16432 (IS_V_ALIAS_PSEUDOREG): Define.
16433 (rs6000_register_name): Return names for the "vX" aliases.
16434 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
16435 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
16436 aliases. Call default_register_reggroup_p for all other
16437 pseudo-registers.
16438 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
16439 New functions.
16440 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
16441 Handle "vX" aliases.
16442 (v_alias_pseudo_register_collect): New function.
16443 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
16444 (rs6000_gdbarch_init): Initialize "vX" aliases as
16445 pseudo-registers. Restore registration of
16446 rs6000_pseudo_register_reggroup_p with
16447 set_tdesc_pseudo_register_reggroup_p.
16448
1a782351
MF
164492019-01-13 Max Filippov <jcmvbkbc@gmail.com>
16450
16451 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
16452 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
16453 set_gdbarch_num_pseudo_regs.
16454
d73cff18
PW
164552019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16456
16457 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
16458 Remove arg prefixname, add do_set and do_show.
16459 Add member functions set_list and show_list.
16460 * cli/cli-style.c (class cli_style_option): Update accordingly.
16461 (style_set_list): Move to file scope.
16462 (style_show_list): Likewise.
16463 (set_style): Call help_list.
16464 (show_style): Call cmd_show_list.
16465 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
16466 Update to use the new macro.
16467
60a90376
JB
164682019-10-12 Joel Brobecker <brobecker@adacore.com>
16469
16470 * ada-lang.c (_initialize_ada_language): Expand the help text
16471 for the "catch exception" command.
16472
9d7c67bf
PW
164732019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16474
16475 * symtab.c (matching_obj_sections): Initialize obj,
16476 declare it closer to its usage.
16477
7cf47dc4
TT
164782019-01-10 Tom Tromey <tom@tromey.com>
16479
16480 * thread-iter.h (inf_threads_iterator): Use next_iterator.
16481 (basic_inf_threads_range): Remove.
16482 (inf_threads_range, inf_non_exited_threads_range)
16483 (safe_inf_threads_range): Use next_adapter.
16484
d3cb6808
KS
164852019-01-10 Keith Seitz <keiths@redhat.com>
16486
16487 PR gdb/23712
16488 PR symtab/23010
16489 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
16490 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
16491
63a20375
KS
164922019-01-10 Keith Seitz <keiths@redhat.com>
16493
16494 PR gdb/23712
16495 PR symtab/23010
16496 * dictionary.c (pending_to_vector): Remove.
16497 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
16498 Remove _1 suffix, replacing functions of the same name. Update
16499 all callers.
16500 (dict_create_hashed, dict_create_hashed_expandable)
16501 (dict_create_linear, dict_create_linear_expandable, dict_free)
16502 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
16503 Make functions static.
16504
b026f593
KS
165052019-01-10 Keith Seitz <keiths@redhat.com>
16506
16507 PR gdb/23712
16508 PR symtab/23010
16509 * dictionary.h (struct dictionary): Replace declaration with
16510 multidictionary.
16511 (dict_create_hashed, dict_create_hashed_expandable)
16512 (dict_create_linear, dict_create_linear_expandable)
16513 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
16514 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
16515 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
16516 taking multidictionary argument.
16517 [ALL_DICT_SYMBOLS]: Update for multidictionary.
16518 * block.h (struct block) <dict>: Change to multidictionary
16519 and rename `multidict'.
16520 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
16521 symmisc.c: Update all dictionary references to multidictionary.
16522
c7748ee9
KS
165232019-01-10 Keith Seitz <keiths@redhat.com>
16524
16525 PR gdb/23712
16526 PR symtab/23010
16527 * dictionary.c: Include unordered_map.
16528 (pending_to_vector): New function.
16529 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
16530 Rewrite the non-"_1" functions to take vector instead
16531 of linked list.
16532 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
16533 "new" _1 versions of the same name.
16534 (multidictionary): Define.
16535 (std::hash<enum language): New definition.
16536 (collate_pending_symbols_by_language, mdict_create_hashed)
16537 (mdict_create_hashed_expandable, mdict_create_linear)
16538 (mdict_create_linear_expandable, mdict_free)
16539 (find_language_dictionary, create_new_language_dictionary)
16540 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
16541 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
16542 (mdict_size, mdict_empty): New functions.
16543 * dictionary.h (mdict_iterator): Define.
16544
67aa1f3c
PA
165452019-01-10 Pedro Alves <palves@redhat.com>
16546
16547 * breakpoint.c (read_uploaded_action)
16548 (create_tracepoint_from_upload): Adjust to use
16549 gdb::unique_xmalloc_ptr.
16550 * ctf.c (ctf_write_uploaded_tp):
16551 (SET_ARRAY_FIELD): Use emplace_back.
16552 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
16553 * tracefile-tfile.c (tfile_write_uploaded_tp):
16554 * tracepoint.c (parse_tracepoint_definition): Adjust to use
16555 gdb::unique_xmalloc_ptr.
16556 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
16557 at_string, cond_string, cmd_strings>: Replace char pointers
16558 with gdb::unique_xmalloc_ptr.
16559
2f667667
PA
165602019-01-10 Pedro Alves <palves@redhat.com>
16561
16562 * solib-target.c (library_list_start_library): Don't xstrdup name.
16563
36cb7237
PA
165642019-01-10 Pedro Alves <palves@redhat.com>
16565
16566 * mdebugread.c (parse_partial_symbols): Use
16567 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
16568
da584958
AB
165692019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
16570
16571 * linux-fork.c (scoped_switch_fork_info)
16572 <~scoped_switch_fork_info>: Fix incorrect variable name.
16573
1ef8573c
AB
165742019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
16575
16576 * linux-fork.c (scoped_switch_fork_info)
16577 <scoped_switch_fork_info>: Make explicit.
16578 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
16579
8d7bcccb
TT
165802019-01-10 Tom Tromey <tom@tromey.com>
16581
16582 * objfiles.h (objfile::reset_psymtabs): Update.
16583 * objfiles.c (objfile::objfile): Update.
16584 * psymtab.h (psymtab_storage::obstack): Update.
16585 (psymtab_storage::m_obstack): Use gdb::optional.
16586 (class psymtab_storage): Update comment. Remove objfile
16587 parameter.
16588 * psymtab.c (psymtab_storage::psymtab_storage): Update.
16589
b596a3c7
TT
165902019-01-10 Tom Tromey <tom@tromey.com>
16591
16592 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
16593 <free_psymtabs>: Now private.
16594 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
16595 (allocate_psymtab): Use new method.
16596
a9342b62
TT
165972019-01-10 Tom Tromey <tom@tromey.com>
16598
16599 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
16600 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
16601 * mdebugread.c (parse_partial_symbols): Use
16602 allocate_dependencies.
16603 * dwarf2read.c (dwarf2_create_include_psymtab): Use
16604 allocate_dependencies.
16605 (process_psymtab_comp_unit_reader)
16606 (build_type_psymtab_dependencies): Likewise.
16607 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
16608
5af70966
TT
166092019-01-10 Tom Tromey <tom@tromey.com>
16610
16611 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
16612 PSYMBOL_SET_LANGUAGE.
16613 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
16614
5923a04c
TT
166152019-01-10 Tom Tromey <tom@tromey.com>
16616
16617 * psymtab.h (psymtab_storage::obstack): New method.
16618 <m_obstack>: Rename from obstack; now private.
16619 * psymtab.c (psymtab_storage): Update.
16620 * dwarf2read.c (create_addrmap_from_index)
16621 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
16622 Update.
16623
6d6a12bf
TT
166242019-01-10 Tom Tromey <tom@tromey.com>
16625
16626 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
16627 * objfiles.h (objfile::reset_psymtabs): New method.
16628
d320c2b5
TT
166292019-01-10 Tom Tromey <tom@tromey.com>
16630
16631 * symmisc.c (print_symbol_bcache_statistics): Update.
16632 (print_objfile_statistics): Update.
16633 * symfile.c (reread_symbols): Update.
16634 * psymtab.h (class psymtab_storage): New.
16635 * psymtab.c (psymtab_storage): New constructor.
16636 (~psymtab_storage): New destructor.
16637 (require_partial_symbols): Update.
16638 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
16639 (find_pc_sect_psymtab, find_pc_sect_psymbol)
16640 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
16641 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
16642 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
16643 (start_psymtab_common, end_psymtab_common)
16644 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
16645 (allocate_psymtab): Update.
16646 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
16647 Update.
16648 (dump_psymtab_addrmap, maintenance_print_psymbols)
16649 (maintenance_check_psymtabs): Update.
16650 (class objfile_psymtabs): Move to objfiles.h.
16651 * psympriv.h (discard_psymtab): Now inline.
16652 (psymtab_discarder::psymtab_discarder): Update.
16653 (psymtab_discarder::~psymtab_discarder): Update.
16654 (ALL_OBJFILE_PSYMTABS): Rewrite.
16655 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
16656 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
16657 Remove fields.
16658 <partial_symtabs>: New field.
16659 (class objfile_psymtabs): Move from psymtab.h. Update.
16660 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
16661 psymbol_cache.
16662 (objfile::~objfile): Don't destroy psymbol_cache.
16663 * mdebugread.c (parse_partial_symbols): Update.
16664 * dwarf2read.c (create_addrmap_from_index)
16665 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
16666 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
16667 (add_partial_subprogram, dwarf2_ranges_read): Update.
16668 * dwarf-index-write.c (write_address_map)
16669 (write_one_signatured_type, recursively_write_psymbols)
16670 (class debug_names, class debug_names, write_psymtabs_to_index):
16671 Update.
16672
1d94a5a3
TT
166732019-01-10 Tom Tromey <tom@tromey.com>
16674
16675 * symtab.h (SYMBOL_SET_NAMES): Update.
16676 (symbol_set_names): Update.
16677 (MSYMBOL_SET_NAMES): Update.
16678 * symtab.c (symbol_set_names): Change argument to be an
16679 objfile_per_bfd_storage.
16680 * psymtab.c (add_psymbol_to_bcache): Update.
16681 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
16682
0f14768a
TT
166832019-01-10 Tom Tromey <tom@tromey.com>
16684
16685 * symtab.c (create_demangled_names_hash): Change argument to be an
16686 objfile_per_bfd_storage.
16687 (symbol_set_names): Update.
16688
6eee24ce
TT
166892019-01-10 Tom Tromey <tom@tromey.com>
16690
16691 * xcoffread.c (xcoff_initial_scan): Unconditionally call
16692 init_psymbol_list.
16693 * psymtab.c (init_psymbol_list): Do nothing if already called.
16694 * psympriv.h (init_psymbol_list): Add comment.
16695 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
16696 init_psymbol_list.
16697 * dbxread.c (dbx_symfile_read): Unconditionally call
16698 init_psymbol_list.
16699
75aedd27
TT
167002019-01-10 Tom Tromey <tom@tromey.com>
16701
16702 * xcoffread.c (scan_xcoff_symtab): Update.
16703 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
16704 "where".
16705 * mdebugread.c (parse_partial_symbols)
16706 (handle_psymbol_enumerators): Update.
16707 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
16708 * dbxread.c (read_dbx_symtab): Update.
16709 * psympriv.h (psymbol_placement): New enum.
16710 (add_psymbol_to_list): Update.
16711
939652a5
TT
167122019-01-10 Tom Tromey <tom@tromey.com>
16713
16714 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
16715 static_psymbols parameters.
16716 (scan_xcoff_symtab): Update.
16717 * psymtab.c (start_psymtab_common): Remove global_psymbols and
16718 static_psymbols parameters.
16719 * psympriv.h (start_psymtab_common): Update.
16720 * mdebugread.c (parse_partial_symbols): Update.
16721 * dwarf2read.c (create_partial_symtab): Update.
16722 * dbxread.c (read_dbx_symtab): Update.
16723 (start_psymtab): Remove global_psymbols and static_psymbols
16724 parameters.
16725
baa62830
TT
167262019-01-10 Tom Tromey <tom@tromey.com>
16727
16728 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
16729 * psymtab.c (allocate_psymtab): Add comment.
16730 * psympriv.h (allocate_psymtab): Add comment.
16731 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
16732 initializations.
16733 * dbxread.c (dbx_end_psymtab): Remove some initializations.
16734
0e8f53ba
TT
167352019-01-10 Tom Tromey <tom@tromey.com>
16736
16737 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
16738 Don't declare.
16739 * mipsread.c: Include mdebugread.h.
16740 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
16741 Declare.
16742 * elfread.c: Include mdebugread.h.
16743
b22a7c6a
TT
167442019-01-09 Tom Tromey <tom@tromey.com>
16745
16746 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
16747 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
16748 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
16749 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
16750 (psym_lookup_symbol, psym_find_last_source_symtab)
16751 (psym_forget_cached_source_info, psym_print_stats)
16752 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
16753 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
16754 (psym_map_matching_symbols, psym_expand_symtabs_matching)
16755 (psym_find_compunit_symtab_by_address)
16756 (maintenance_print_psymbols, maintenance_info_psymtabs)
16757 (maintenance_check_psymtabs): Use ranged for.
16758 * psymtab.h (class objfile_psymtabs): New.
16759 (require_partial_symbols): Return objfile_psymtabs.
16760 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
16761
3b9d3ac2
TT
167622019-01-09 Tom Tromey <tom@tromey.com>
16763
16764 * symfile.c (overlay_invalidate_all, find_pc_overlay)
16765 (find_pc_mapped_section, list_overlays_command)
16766 (map_overlay_command, unmap_overlay_command)
16767 (simple_overlay_update): Use all_objfiles.
16768 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
16769 * printcmd.c (info_symbol_command): Use all_objfiles.
16770 * objfiles.h (ALL_OBJSECTIONS): Remove.
16771 * maint.c (maintenance_translate_address): Use all_objfiles.
16772 * gcore.c (gcore_create_callback): Use all_objfiles.
16773 (objfile_find_memory_regions): Likewise.
16774
8b31193a
TT
167752019-01-09 Tom Tromey <tom@tromey.com>
16776
16777 * symtab.c (find_line_symtab, info_sources_command)
16778 (make_source_files_completion_list): Use objfile_compunits.
16779 * source.c (select_source_symtab): Use objfile_compunits.
16780 * objfiles.h (struct objfile): Update comment.
16781 (ALL_OBJFILES): Remove.
16782 (ALL_FILETABS): Remove.
16783 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
16784 objfile_compunits.
16785
d5da8b3c
TT
167862019-01-09 Tom Tromey <tom@tromey.com>
16787
16788 * symmisc.c (print_objfile_statistics, dump_objfile)
16789 (maintenance_print_symbols): Use compunit_filetabs.
16790 * source.c (forget_cached_source_info_for_objfile): Use
16791 compunit_filetabs.
16792 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
16793 (ALL_FILETABS): Use compunit_filetabs.
16794 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
16795 * coffread.c (coff_symtab_read): Use compunit_filetabs.
16796
5accd1a0
TT
167972019-01-09 Tom Tromey <tom@tromey.com>
16798
16799 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
16800 (compunit_filetabs): New.
16801 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
16802 compunit_filetabs.
16803 (info_sources_command, make_source_files_completion_list): Remove
16804 declaration.
16805 * symmisc.c (print_objfile_statistics, dump_objfile)
16806 (maintenance_print_symbols): Remove declaration.
16807 (maintenance_info_symtabs): Use compunit_filetabs.
16808 (maintenance_info_line_tables): Likewise.
16809 * source.c (select_source_symtab): Change local variable name.
16810 (forget_cached_source_info_for_objfile): Remove declaration.
16811 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
16812 * objfiles.c (objfile_relocate1): Remove declaration.
16813 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
16814 declaration.
16815 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
16816 * coffread.c (coff_symtab_read): Remove declaration.
16817 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
16818 compunit_filetabs.
16819
d8aeb77f
TT
168202019-01-09 Tom Tromey <tom@tromey.com>
16821
16822 * symtab.c (lookup_objfile_from_block)
16823 (find_pc_sect_compunit_symtab, search_symbols)
16824 (default_collect_symbol_completion_matches_break_on): Use
16825 objfile_compunits.
16826 * objfiles.h (ALL_COMPUNITS): Remove.
16827 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
16828 * cp-support.c (add_symbol_overload_list_qualified): Use
16829 objfile_compunits.
16830 * ada-lang.c (ada_collect_symbol_completion_matches)
16831 (ada_add_global_exceptions): Use objfile_compunits.
16832
592553c4
TT
168332019-01-09 Tom Tromey <tom@tromey.com>
16834
16835 * source.c (select_source_symtab)
16836 (forget_cached_source_info_for_objfile): Remove declaration.
16837 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
16838 declaration.
16839 * maint.c (count_symtabs_and_blocks): Remove declaration.
16840 * cp-support.c (add_symbol_overload_list_qualified): Remove
16841 declaration.
16842 * coffread.c (coff_symtab_read): Remove declaration.
16843 * symtab.c (lookup_symbol_in_objfile_symtabs)
16844 (basic_lookup_transparent_type_1): Use objfile_compunits.
16845 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
16846 (info_sources_command, search_symbols)
16847 (default_collect_symbol_completion_matches_break_on)
16848 (make_source_files_completion_list): Remove declaration.
16849 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
16850 (ada_collect_symbol_completion_matches)
16851 (ada_add_global_exceptions): Remove declaration.
16852 * linespec.c (iterate_over_all_matching_symtabs): Use
16853 objfile_compunits.
16854 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
16855 (class objfile_compunits): New.
16856 (ALL_COMPUNITS): Use objfile_compunits.
16857 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
16858 (maintenance_check_symtabs, maintenance_info_line_tables): Use
16859 objfile_compunits.
16860 * objfiles.c (objfile_relocate1): Use objfile_compunits.
16861
5325b9bf
TT
168622019-01-09 Tom Tromey <tom@tromey.com>
16863
16864 * symtab.c (search_symbols)
16865 (default_collect_symbol_completion_matches_break_on): Use
16866 objfile_msymbols.
16867 * ada-lang.c (ada_lookup_simple_minsym)
16868 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
16869 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
16870 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
16871 objfile_msymbols.
16872 * coffread.c (coff_symfile_read): Use objfile_msymbols.
16873 * symmisc.c (dump_msymbols): Use objfile_msymbols.
16874 * objc-lang.c (find_methods): Use objfile_msymbols.
16875 (info_selectors_command, info_classes_command): Likewise.
16876 * stabsread.c (scan_file_globals): Use objfile_msymbols.
16877 * objfiles.h (class objfile_msymbols): New.
16878 (ALL_OBJFILE_MSYMBOLS): Remove.
16879 (ALL_MSYMBOLS): Remove.
16880
cac85af2
TT
168812019-01-09 Tom Tromey <tom@tromey.com>
16882
16883 * common/next-iterator.h (next_adapter): Add Iterator template
16884 parameter.
16885 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
16886 (class all_objfiles_safe): New.
16887 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
16888 * objfiles.c (put_objfile_before): Update comment.
16889 (add_separate_debug_objfile): Likewise.
16890 (free_all_objfiles): Use all_objfiles_safe.
16891 (objfile_purge_solibs): Likewise.
16892
aed57c53
TT
168932019-01-09 Tom Tromey <tom@tromey.com>
16894
16895 * symtab.c (iterate_over_symtabs, matching_obj_sections)
16896 (expand_symtab_containing_pc, lookup_static_symbol)
16897 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
16898 (find_symbol_at_address, find_line_symtab, find_main_name): Use
16899 all_objfiles.
16900 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
16901 * breakpoint.c (create_overlay_event_breakpoint)
16902 (create_longjmp_master_breakpoint)
16903 (create_std_terminate_master_breakpoint)
16904 (create_exception_master_breakpoint): Use all_objfiles.
16905 * linux-thread-db.c (try_thread_db_load_from_pdir)
16906 (has_libpthread): Use all_objfiles.
16907 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
16908 * linespec.c (iterate_over_all_matching_symtabs)
16909 (search_minsyms_for_name): Use all_objfiles.
16910 * maint.c (maintenance_info_sections): Use all_objfiles.
16911 * main.c (captured_main_1): Use all_objfiles.
16912 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
16913 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
16914 * guile/scm-pretty-print.c
16915 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
16916 * solib-spu.c (append_ocl_sos): Use all_objfiles.
16917 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
16918 (maintenance_print_msymbols): Use all_objfiles.
16919 * source.c (select_source_symtab): Use all_objfiles.
16920 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
16921 * symfile.c (remove_symbol_file_command)
16922 (expand_symtabs_matching, map_symbol_filenames): Use
16923 all_objfiles.
16924 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
16925 all_objfiles.
16926 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
16927 * objc-lang.c (find_methods): Use all_objfiles.
16928 * objfiles.c (have_partial_symbols, have_full_symbols)
16929 (have_minimal_symbols, qsort_cmp)
16930 (default_iterate_over_objfiles_in_search_order): Use
16931 all_objfiles.
16932 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
16933 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
16934 (maintenance_check_psymtabs): Use all_objfiles.
16935 (ALL_PSYMTABS): Remove.
16936 * compile/compile-object-run.c (do_module_cleanup): Use
16937 all_objfiles.
16938 * blockframe.c (find_pc_partial_function): Use all_objfiles.
16939 * cp-support.c (add_symbol_overload_list_qualified): Use
16940 all_objfiles.
16941 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
16942 Use all_objfiles.
16943 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
16944 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
16945 all_objfiles.
16946 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
16947 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
16948 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
16949 Uses all_objfiles.
16950 * solib.c (solib_read_symbols): Use all_objfiles
16951
99d89cde
TT
169522019-01-09 Tom Tromey <tom@tromey.com>
16953
16954 * probe.c (parse_probes_in_pspace): Use all_objfiles.
16955 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
16956 all_objfiles.
16957 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
16958 * symmisc.c (print_symbol_bcache_statistics)
16959 (print_objfile_statistics, maintenance_print_objfiles)
16960 (maintenance_info_symtabs, maintenance_check_symtabs)
16961 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
16962 all_objfiles.
16963 * source.c (forget_cached_source_info): Use all_objfiles.
16964 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
16965 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
16966 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
16967 * objfiles.c (update_section_map): Use all_objfiles.
16968 (shared_objfile_contains_address_p): Likewise.
16969 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
16970 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
16971
21708325
TT
169722019-01-09 Tom Tromey <tom@tromey.com>
16973
16974 * common/next-iterator.h: New file.
16975 * objfiles.h (class all_objfiles): New.
16976 (struct objfile_iterator): New.
16977
669e09f6
PW
169782019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16979
16980 * NEWS: Move the description of the changed "frame", "select-frame",
16981 and "info frame" commands to the Changed commands section.
16982
041be526
SM
169832019-01-09 Simon Marchi <simon.marchi@ericsson.com>
16984
16985 * gdbtypes.c (check_stub_method_group): Remove handling of old
16986 mangling schemes.
16987 * linespec.c (find_methods): Likewise.
16988 * stabsread.c (read_member_functions): Likewise.
16989 * valops.c (search_struct_method): Likewise.
16990 (value_struct_elt_for_reference): Likewise.
16991 * NEWS: Mention this change.
16992
0e2a2133
AB
169932019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
16994
16995 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
16996 print_source_lines.
16997 * source.c (print_source_lines_base): Update line number check.
16998 (print_source_lines): New function.
16999 (source_lines_range::source_lines_range): New function.
17000 * source.h (class source_lines_range): New class.
17001 (print_source_lines): New declaration.
17002
1055a3b4
PW
170032019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
17004
17005 * linespec.c (linespec_state_destructor): Free self->canonical_names.
17006
cfeadda5
TT
170072019-01-08 Tom Tromey <tom@tromey.com>
17008 Simon Marchi <simon.marchi@ericsson.com>
17009
17010 PR gdb/24060
17011 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
17012 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
17013 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
17014 * f-exp.y (DOLLAR_VARIABLE): Likewise.
17015 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
17016 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
17017
583068ca
AB
170182019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
17019
17020 * source.c (select_source_symtab): Move header comment to
17021 declaration in source.h.
17022 (forget_cached_source_info_for_objfile): Likewise.
17023 (forget_cached_source_info): Likewise.
17024 (identify_source_line): Likewise.
17025 * source.h (identify_source_line): Move declaration from symtab.h
17026 and add comment from source.c
17027 (print_source_lines): Likewise.
17028 (forget_cached_source_info_for_objfile): Likewise.
17029 (forget_cached_source_info): Likewise.
17030 (select_source_symtab): Likewise.
17031 (enum print_source_lines_flag): Move definition from symtab.h.
17032 * symtab.h (identify_source_line): Move declaration to source.h.
17033 (print_source_lines): Likewise.
17034 (forget_cached_source_info_for_objfile): Likewise.
17035 (forget_cached_source_info): Likewise.
17036 (select_source_symtab): Likewise.
17037 (enum print_source_lines_flag): Move definition to source.h.
17038 * tui/tui-hooks.c: Add 'source.h' include.
17039
ec98a4ad
AB
170402019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
17041
17042 * source.c (print_source_lines_base): Handle requests to print
17043 reverse line number sequences, and guard against empty lines
17044 string.
17045
62ea19c1
AB
170462019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
17047
17048 * source.c (print_source_lines_base): Fix skip of '\r' if next
17049 character is '\n'.
17050
9d30e1fd
TT
170512019-01-06 Tom Tromey <tom@tromey.com>
17052
17053 * c-exp.y (struct c_parse_state) <macro_original_text,
17054 expansion_obstack>: New member.
17055 (macro_original_text, expansion_obstack): Remove globals.
17056 (scan_macro_expansion, scanning_macro_expansion)
17057 (finished_macro_expansion): Update.
17058 (scan_macro_cleanup): Remove.
17059 (yylex, c_parse): Update.
17060
c65bac38
TT
170612019-01-06 Tom Tromey <tom@tromey.com>
17062
17063 * c-exp.y (struct c_parse_state) <strings>: New member.
17064 (operator_stoken): Update.
17065
02e12e38
TT
170662019-01-06 Tom Tromey <tom@tromey.com>
17067
17068 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
17069 (union type_stack_elt) <typelist_val>: Now a pointer to
17070 std::vector.
17071 (type_stack_cleanup): Don't declare.
17072 (push_typelist): Update.
17073 * parse.c (pop_typelist): Return a std::vector.
17074 (push_typelist): Take a std::vector.
17075 (follow_types): Update. Do not free args.
17076 (type_stack_cleanup): Remove.
17077 * c-exp.y (struct c_parse_state): New.
17078 (cpstate): New global.
17079 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
17080 (nonempty_typelist): Update.
17081 (func_mod): Create a new vector.
17082 (c_parse): Create a c_parse_state.
17083 (check_parameter_typelist): Do not delete params.
17084 (function_method): Update. Do not delete type_list.
17085
f097f5ad
TT
170862019-01-06 Tom Tromey <tom@tromey.com>
17087
17088 PR gdb/28155:
17089 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
17090 check_typedef.
17091 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
17092 (print_return_value): Likewise.
17093
d2adf9f1
TT
170942019-01-05 Tom Tromey <tom@tromey.com>
17095
17096 * contrib/cleanup_check.py: Remove.
17097 * contrib/gcc-with-excheck: Remove.
17098 * contrib/exsummary.py: Remove.
17099 * contrib/excheck.py: Remove.
17100
2eab46b1
JB
171012019-01-05 Joel Brobecker <brobecker@adacore.com>
17102
17103 * thread.c (delete_thread_1): Add gdb_assert that THR is not
17104 NULL. Initialize tpprev to NULL instead of assigning it
17105 to NULL on the next statement.
17106 * windows-nat.c (windows_delete_thread): Remove check for
17107 main_thread_id before printing thread exit notifications.
17108 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
17109 Remove thread ID check against main_thread_id.
17110 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
17111 windows_delete_thread.
17112 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
17113
48c5e7e2
TT
171142019-01-04 Tom Tromey <tom@tromey.com>
17115
17116 * compile/compile.c (_initialize_compile): Use upper case for
17117 metasyntactic variables.
17118 * symmisc.c (_initialize_symmisc): Use upper case for
17119 metasyntactic variables.
17120 * psymtab.c (_initialize_psymtab): Use upper case for
17121 metasyntactic variables.
17122 * demangle.c (demangle_command): Use upper case for metasyntactic
17123 variables.
17124 (_initialize_demangler): Likewise.
17125 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
17126 variables.
17127
986041cd
TT
171282019-01-03 Tom Tromey <tom@tromey.com>
17129
17130 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
17131
7c711119
TT
171322019-01-03 Tom Tromey <tom@tromey.com>
17133
17134 * python/py-symtab.c (salpy_str): Update.
17135 (struct salpy_sal_object) <symtab>: Now a PyObject.
17136 (salpy_dealloc): Update.
17137 (del_objfile_sal): Use gdbpy_ref.
17138
1b20edf0
TT
171392019-01-03 Tom Tromey <tom@tromey.com>
17140
17141 * python/py-type.c (convert_field): Use new_reference. Return
17142 gdbpy_ref.
17143 (make_fielditem): Return gdbpy_ref.
17144 (typy_fields): Update.
17145 (typy_getitem): Update.
17146 (field_name): Return gdbpy_ref. Use new_reference.
17147 (typy_iterator_iternext): Update.
17148
ea41325b
TT
171492019-01-03 Tom Tromey <tom@tromey.com>
17150
17151 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
17152
2a3c71d6
TT
171532019-01-03 Tom Tromey <tom@tromey.com>
17154
17155 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
17156 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
17157 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
17158 (pspy_set_frame_filters, pspy_set_frame_unwinders)
17159 (pspy_set_type_printers): Likewise.
17160 * python/py-function.c (fnpy_init): Use gdbpy_ref.
17161 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
17162 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
17163 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
17164 (objfpy_set_type_printers): Likewise.
17165
5c329e6a
TT
171662019-01-03 Tom Tromey <tom@tromey.com>
17167
17168 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
17169 (gdbpy_print_stack): Use gdbpy_err_fetch.
17170 * python/python-internal.h (class gdbpy_err_fetch): New class.
17171 (class gdbpy_enter) <m_error_type, m_error_value,
17172 m_error_traceback>: Remove.
17173 <m_error>: New member.
17174 (gdbpy_exception_to_string): Don't declare.
17175 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
17176 * python/py-value.c (convert_value_from_python): Use
17177 gdbpy_err_fetch.
17178 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
17179 gdbpy_exception_to_string.
17180 (gdbpy_handle_exception): Use gdbpy_err_fetch.
17181 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
17182 gdbpy_err_fetch.
17183
169bb27b
AB
171842019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
17185
17186 * linux-nat.c (delete_lwp_cleanup): Delete.
17187 (struct lwp_deleter): New struct.
17188 (lwp_info_up): New typedef.
17189 (linux_nat_target::follow_fork): Delete cleanup, and make use of
17190 lwp_info_up.
17191
a07c8880
AB
171922019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
17193
17194 * linux-fork.c (class scoped_switch_fork_info): New class.
17195 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
17196
26089c49
AB
171972019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
17198
17199 * valops.c (find_overload_match): Remove use of null_cleanup, and
17200 calls to do_cleanups.
17201
06d3e5b0
AB
172022019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
17203
17204 * compile/compile-cplus-types.c
17205 (compile_cplus_instance::decl_name): Handle changes to
17206 cp_func_name.
17207 * cp-support.c (cp_func_name): Update header comment, update
17208 return type.
17209 * cp-support.h (cp_func_name): Update return type in declaration.
17210 * valops.c (find_overload_match): Move temp_func local to top
17211 level of function and change its type. Use temp_func to hold and
17212 delete temporary string obtained from cp_func_name.
17213
66644cd3
AB
172142019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
17215
17216 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
17217 gdb::char_vector, remove cleanup, and update uses of `msg`.
17218
592d8c0a
JW
172192019-01-03 Jim Wilson <jimw@sifive.com>
17220
17221 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
17222
c55d06ec
TT
172232019-01-02 Tom Tromey <tom@tromey.com>
17224
17225 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
17226 (tdesc_parse_xml): Remove cleanups.
17227 * target-descriptions.h (make_cleanup_free_target_description):
17228 Don't declare.
17229 (target_desc_deleter): New struct.
17230 (target_desc_up): New typedef.
17231 * target-descriptions.c (target_desc_deleter::operator()): Rename
17232 from free_target_description.
17233 (make_cleanup_free_target_description): Remove.
17234
3a6ae42d
TT
172352019-01-02 Tom Tromey <tom@tromey.com>
17236
17237 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
17238 constructor, destructor.
17239 (linespec_parser): Remove typedef.
17240 (~linespec_parser): Rename from linespec_parser_delete.
17241 (linespec_lex_to_end, linespec_complete_label)
17242 (linespec_complete): Update.
17243 (decode_line_full): Remove cleanups.
17244 (decode_line_1): Update.
17245
61fd3e73
TT
172462019-01-02 Tom Tromey <tom@tromey.com>
17247
17248 * python/python-internal.h (inferior_to_inferior_object): Change
17249 return type.
17250 * python/py-exitedevent.c (create_exited_event_object): Update.
17251 * python/py-inferior.c (inferior_to_inferior_object): Return
17252 gdbpy_ref.
17253 (python_new_inferior, python_inferior_deleted)
17254 (thread_to_thread_object, delete_thread_object)
17255 (build_inferior_list, gdbpy_selected_inferior): Update.
17256 * python/py-infthread.c (create_thread_object): Update. Also fail
17257 if inferior_to_inferior_object fails.
17258
d20172fc
SM
172592019-01-02 Simon Marchi <simon.marchi@ericsson.com>
17260
17261 * inferior.h (class inferior) <displaced_step_state>: New field.
17262 * infrun.h (struct displaced_step_state): Move here from
17263 infrun.c. Initialize fields, add constructor.
17264 <inf>: Remove field.
17265 <reset>: New method.
17266 * infrun.c (struct displaced_step_inferior_state): Move to
17267 infrun.h.
17268 (displaced_step_inferior_states): Remove.
17269 (get_displaced_stepping_state): Adust.
17270 (displaced_step_in_progress_any_inferior): Adjust.
17271 (displaced_step_in_progress_thread): Adjust.
17272 (displaced_step_in_progress): Adjust.
17273 (add_displaced_stepping_state): Remove.
17274 (get_displaced_step_closure_by_addr): Adjust.
17275 (remove_displaced_stepping_state): Remove.
17276 (infrun_inferior_exit): Call displaced_step_state.reset.
17277 (use_displaced_stepping): Don't check for NULL.
17278 (displaced_step_prepare_throw): Call
17279 get_displaced_stepping_state.
17280 (displaced_step_fixup): Don't check for NULL.
17281 (prepare_for_detach): Don't check for NULL.
17282
e3319240
PW
172832019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
17284
17285 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
17286 in case of call that did not complete.
17287
5d36dfb9
AU
172882019-01-02 Andrey Utkin <autkin@undo.io>
17289
17290 * symfile.c (find_separate_debug_file): Fix search of debug files for
17291 remote debuggee.
17292
8833fbf0
TT
172932019-01-02 Tom Tromey <tom@tromey.com>
17294
17295 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
17296 indentation.
17297 * python/py-frame.c (frapy_older): Remove cast.
17298 (frapy_newer): Likewise.
17299 * python/py-breakpoint.c (local_setattro): Remove cast.
17300 * python/py-arch.c (archpy_name): Remove local variable.
17301 * python/py-type.c (gdbpy_lookup_type): Remove cast.
17302
4ada3dfd
JB
173032019-01-02 Joel Brobecker <brobecker@adacore.com>
17304
17305 * unittests/basic_string_view/element_access/char/empty.cc:
17306 Fix year range in copyright header.
17307
113b7b81
AB
173082019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
17309
17310 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
17311 Delete.
17312 <operator==>: Update with for removed field.
17313 <hash>: Likewise.
17314 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
17315 <isa_features>: ...this.
17316 <abi_features>: New field.
17317 (riscv_isa_flen): Update comment.
17318 (riscv_abi_xlen): New declaration.
17319 (riscv_abi_flen): New declaration.
17320 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
17321 isa_features.
17322 (riscv_abi_xlen): New function.
17323 (riscv_isa_flen): Update to get answer from isa_features.
17324 (riscv_abi_flen): New function.
17325 (riscv_has_fp_abi): Update to get answer from abi_features.
17326 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
17327 xlen and flen.
17328 (riscv_call_info) <xlen, flen>: Update comment.
17329 (riscv_call_arg_struct): Remove invalid assertions
17330 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
17331 is removed.
17332 (riscv_gdbarch_init): Gather isa features and abi features
17333 separately, ensure both match on the gdbarch when reusing an old
17334 gdbarch. Relax an error check to allow 32-bit abi float to run on
17335 a target with 64-bit float hardware.
17336
b18ca514
PW
173372019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
17338
17339 * source.c (search_command_helper): Stop reverse search
17340 when line 1 has been searched.
17341
ec70d8db
PW
173422019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
17343
17344 * record-full.c (record_full_base_target::close): Rewrite
17345 record_full_core_buf_list free logic.
17346
5b38f9c1
PW
173472019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
17348
17349 * break-catch-syscall.c (print_one_catch_syscall): xfree
17350 the last text.
17351
66d91b39
JB
173522019-01-01 Joel Brobecker <brobecker@adacore.com>
17353
17354 * top.c (print_gdb_version): Update Copyright year in version
17355 message.
17356
42a4f53d
JB
173572019-01-01 Joel Brobecker <brobecker@adacore.com>
17358
17359 Update copyright year range in all GDB files.
17360
7e955d83 173612019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
2139e8dc 17362
5bbd631d 17363 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
2139e8dc 17364
5bbd631d 17365For older changes see ChangeLog-2018.
c906108c
SS
17366\f
17367Local Variables:
17368mode: change-log
17369left-margin: 8
17370fill-column: 74
17371version-control: never
57da7796 17372coding: utf-8
c906108c 17373End:
5bbd631d 17374
This page took 3.084935 seconds and 4 git commands to generate.