Don't call set_current_source_symtab_and_line from TUI
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
54217b84
TT
12019-12-20 Tom Tromey <tom@tromey.com>
2
3 * tui/tui-winsource.c
4 (tui_source_window_base::update_source_window_as_is): Don't call
5 set_current_source_symtab_and_line.
6
0ab92974
TT
72019-12-20 Tom Tromey <tom@tromey.com>
8
9 * tui/tui-stack.h (struct tui_locator_window) <set_locator_info>:
10 Take a symtab_and_line.
11 * tui/tui-stack.c (tui_locator_window::set_locator_info): Take a
12 symtab_and_line.
13 (tui_show_frame_info): Update.
14
ae4393e2
TT
152019-12-20 Tom Tromey <tom@tromey.com>
16
17 * tui/tui-stack.c (tui_show_frame_info): Don't call
18 update_exec_info.
19
77b97e00
TT
202019-12-20 Tom Tromey <tom@tromey.com>
21
22 * tui/tui.c (tui_enable): Call tui_display_main.
23
52469d76
TT
242019-12-20 Tom Tromey <tom@tromey.com>
25
26 * tui/tui-disasm.c (tui_get_begin_asm_address): Use
27 get_current_source_symtab_and_line, and main_name.
28
5d49bf1b
TT
292019-12-20 Tom Tromey <tom@tromey.com>
30
31 * tui/tui.c (tui_show_source): Update.
32 * tui/tui-winsource.h (tui_update_source_windows_with_line): Update.
33 * tui/tui-winsource.c (tui_update_source_windows_with_line): Take
34 a symtab_symbol_info, not a separate symtab and line. Simplify.
35
88180c08
TT
362019-12-20 Tom Tromey <tom@tromey.com>
37
38 * tui/tui-winsource.c (tui_update_source_windows_with_addr):
39 Simplify.
40
9f7540a5
TT
412019-12-20 Tom Tromey <tom@tromey.com>
42
43 * tui/tui-winsource.h (struct tui_source_window_base)
44 <set_contents, update_source_window_as_is, update_source_window>:
45 Take a sal, not a separate symtab and tui_line_or_address.
46 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
47 (tui_source_window_base::update_source_window_as_is): Take a sal,
48 not a separate symtab and tui_line_or_address.
49 (tui_update_source_windows_with_addr)
50 (tui_update_source_windows_with_line)
51 (tui_source_window_base::rerender)
52 (tui_source_window_base::refill): Update.
53 * tui/tui-source.h (struct tui_source_window) <set_contents>: Take
54 a sal, not a separate symtab and tui_line_or_address.
55 * tui/tui-source.c (tui_source_window::set_contents): Take a sal,
56 not a separate symtab and tui_line_or_address.
57 (tui_source_window::maybe_update): Update.
58 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>: Take
59 a sal, not a separate symtab and tui_line_or_address.
60 * tui/tui-disasm.c (tui_disasm_window::set_contents): Take a sal,
61 not a separate symtab and tui_line_or_address.
62 (tui_disasm_window::do_scroll_vertical)
63 (tui_disasm_window::maybe_update): Update.
64
57e4b379
TT
652019-12-20 Tom Tromey <tom@tromey.com>
66
67 * tui/tui-winsource.c (tui_source_window_base::refill): Use
68 start_line_or_addr.
69 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Use
70 start_line_or_addr.
71 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
72 start_line_or_addr.
73
61c33f10
TT
742019-12-20 Tom Tromey <tom@tromey.com>
75
76 * tui/tui-winsource.h (struct tui_source_window_base)
77 <set_contents>: Return bool.
78 * tui/tui-winsource.c
79 (tui_source_window_base::update_source_window_as_is): Update.
80 * tui/tui-source.h (struct tui_source_window) <set_contents>:
81 Return bool.
82 * tui/tui-source.c (tui_source_window::set_contents): Return
83 bool. Simplify.
84 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
85 Return bool.
86 * tui/tui-disasm.c (tui_disasm_window::set_contents): Return
87 bool.
88
469b0731
TT
892019-12-20 Tom Tromey <tom@tromey.com>
90
91 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
92 (tui_update_source_windows_with_line): Call update_source_window.
93 * tui/tui-source.h (struct tui_source_window)
94 <show_symtab_source>: Don't declare.
95 * tui/tui-source.c (tui_source_window::show_symtab_source):
96 Remove.
97
855f89b3
TT
982019-12-20 Tom Tromey <tom@tromey.com>
99
100 * tui/tui-winsource.c (tui_update_source_windows_with_addr): Call
101 update_source_window directly.
102 * tui/tui-disasm.h (tui_show_disassem): Don't declare.
103 * tui/tui-disasm.c (tui_show_disassem): Remove.
104
d4669c0f
TT
1052019-12-20 Tom Tromey <tom@tromey.com>
106
107 * tui/tui-winsource.c
108 (tui_source_window_base::update_source_window_as_is): Don't switch focus.
109 * tui/tui-disasm.c (tui_show_disassem): Don't switch focus.
110
1ae58f0c
TT
1112019-12-20 Tom Tromey <tom@tromey.com>
112
113 * tui/tui-winsource.h (struct tui_source_window_base)
114 <maybe_update>: Remove line_no and addr parameters.
115 * tui/tui-stack.c (tui_show_frame_info): Set PC on sal. Update.
116 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
117 Update.
118 * tui/tui-source.c (tui_source_window::maybe_update): Remove
119 line_no and addr parameters.
120 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
121 Update.
122 * tui/tui-disasm.c (tui_disasm_window::maybe_update): Remove
123 line_no and addr parameters.
124
039298ec
TT
1252019-12-20 Tom Tromey <tom@tromey.com>
126
127 * tui/tui-winsource.c (tui_source_window_base::set_is_exec_point_at)
128 (tui_source_window_base::update_breakpoint_info): Remove asserts.
129
8acfefcc
TT
1302019-12-20 Tom Tromey <tom@tromey.com>
131
132 * tui/tui-winsource.c (tui_update_source_windows_with_addr): Call
133 tui_show_disassem.
134 * tui/tui-disasm.h (tui_show_disassem_and_update_source): Don't
135 declare.
136 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Remove.
137
5ebd5402
TT
1382019-12-20 Tom Tromey <tom@tromey.com>
139
140 * tui/tui.h (tui_show_source): Remove parameters.
141 * tui/tui.c (tui_show_source): Remove parameters.
142 * tui/tui-out.c (tui_ui_out::do_field_string): Update.
143
c1b167d7
TT
1442019-12-20 Tom Tromey <tom@tromey.com>
145
146 * tui/tui.c (tui_show_source): Update.
147 * tui/tui-winsource.c (tui_display_main): Update.
148 * tui/tui-stack.h (tui_update_locator_fullname): Change parameter
149 to symtab.
150 * tui/tui-stack.c (tui_update_locator_fullname): Change parameter
151 to symtab.
152 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Update.
153
364d7104
TT
1542019-12-20 Tom Tromey <tom@tromey.com>
155
156 PR tui/23619:
157 * tui/tui-io.c (tui_rl_saved_prompt): Remove.
158 (tui_redisplay_readline): Use rl_display_prompt.
159 (tui_prep_terminal): Update.
160
0ad6b8ee
CB
1612019-12-19 Christian Biesinger <cbiesinger@google.com>
162
163 * configure: Regenerate.
164 * configure.ac: Quote variable arguments of test.
165 * gdbsupport/common.m4: Likewise.
166
d411762c
CB
1672019-12-19 Christian Biesinger <cbiesinger@google.com>
168
169 * score-tdep.c (score7_analyze_prologue): Pass 2.0 instead of
170 2 to pow ().
171
1cd4a20a
CB
1722019-12-19 Christian Biesinger <cbiesinger@google.com>
173
174 * tui/tui-source.c (tui_source_window::set_contents): Cast argument of
175 log10 to double to fix Solaris 11 with gcc 5.5.
176
aa989b27
CB
1772019-12-19 Christian Biesinger <cbiesinger@google.com>
178
179 * fbsd-tdep.c (fbsd_info_proc_files_entry): Rename local var
180 "sun" to "saddr_un".
181
2032eb7e
TT
1822019-12-19 Tom Tromey <tromey@adacore.com>
183
184 * ui-out.h (enum class field_kind): Fix comment.
185
f69656d0
TT
1862019-12-11 Tom Tromey <tromey@adacore.com>
187
188 * xml-support.c (xml_fetch_content_from_file): Use FOPEN_RB.
189
27e4fac7
TT
1902019-12-18 Tom Tromey <tromey@adacore.com>
191
192 PR build/25268:
193 * gdbsupport/thread-pool.c (set_thread_name): Expect "int" return
194 type on macOS. Add comment.
195
e623f035
SM
1962019-12-18 Simon Marchi <simon.marchi@efficios.com>
197
198 * c-lang.c (c_get_string, asm_language_defn): Remove space
199 before tab.
200
28ce7b07
TT
2012019-12-18 Tom Tromey <tromey@adacore.com>
202
203 PR build/25250:
204 * ui-out.c (ui_out::vmessage): Update.
205 * ui-out.h (enum class field_kind) <FIELD_STRING, FIELD_SIGNED>:
206 Rename.
207 (string_field): Update.
208 (signed_field): Update.
209
bbde7025
SM
2102019-12-18 Simon Marchi <simon.marchi@efficios.com>
211
212 * top.c (print_gdb_configuration): Adjust indentation.
213
e3169fe0
CB
2142019-12-17 Christian Biesinger <cbiesinger@google.com>
215
216 * bsd-kvm.c: Include gdbsupport/pathstuff.h.
217
9b30da15
SM
2182019-12-17 Simon Marchi <simon.marchi@polymtl.ca>
219
220 * tui/tui-layout.h (class tui_layout_base): Add virtual
221 destructor.
222
4a4c04f1
BE
2232019-12-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
224
225 * infcmd.c (prepare_one_step): Step over skipped inline functions.
226 * infrun.c (inline_frame_is_marked_for_skip): New helper function.
227 (process_event_stop_test): Keep stepping over skipped inline functions.
228
0394eed1
SM
2292019-12-16 Simon Marchi <simon.marchi@polymtl.ca>
230
231 * jit.c (struct gdb_block) <next>: Remove field.
232 (struct gdb_symtab) <~gdb_symtab>: Remove.
233 <blocks>: Change type to std::forward_list<gdb_block>.
234 (compare_block): Remove.
235 (jit_block_open_impl): Adjust to std::forward_list. Place the new
236 block at the beginning, don't mind about sorting.
237 (finalize_symtab): Adjust to std::forward_list, sort the blocks list
238 before using it.
239
b6112117
SM
2402019-12-16 Simon Marchi <simon.marchi@polymtl.ca>
241
242 * jit.c (struct gdb_block): Add constructor, initialize
243 real_block and next fields.
244 <name>: Change type to gdb::unique_xmalloc_ptr.
245 (struct gdb_symtab) <~gdb_symtab>: Free blocks with delete.
246 (jit_block_open_impl): Allocate gdb_block with new.
247 (finalize_symtab): Adjust to gdb::unique_xmalloc_ptr.
248
1b61f46d
SM
2492019-12-16 Simon Marchi <simon.marchi@polymtl.ca>
250
251 * jit.c: Include forward_list.
252 (struct gdb_symtab) <next>: Remove field.
253 (struct gdb_object) <symtabs>: Change type to
254 std::forward_list<gdb_symtab>.
255 (jit_object_open_impl): Allocate gdb_object with new.
256 (jit_symtab_open_impl): Adjust to std::forward_list.
257 (finalize_symtab): Don't delete symtab.
258 (jit_object_close_impl): Adjust to std::forward_list. Free
259 gdb_object with delete.
260
89867184
SM
2612019-12-16 Simon Marchi <simon.marchi@polymtl.ca>
262
263 * jit.c (struct gdb_symtab): Add constructor, destructor,
264 initialize fields.
265 <linetable>: Change type to unique_xmalloc_ptr.
266 <file_name>: Change type to std::string.
267 (jit_symtab_open_impl): Allocate gdb_symtab with new.
268 (jit_symtab_line_mapping_add_impl): Adjust.
269 (finalize_symtab): Adjust, call delete on stab.
270
d043f8c8
SM
2712019-12-16 Simon Marchi <simon.marchi@polymtl.ca>
272
273 * jit.c (finalize_symtab): Set gdb_block_iter_tmp in loop.
274
d9fa87f4
TT
2752019-12-16 Tom Tromey <tromey@adacore.com>
276
277 * windows-nat.c (windows_nat_target::attach): Update.
278 * remote.c (extended_remote_target::attach): Update.
279 * procfs.c (procfs_target::attach): Update.
280 * nto-procfs.c (nto_procfs_target::attach): Update.
281 (nto_procfs_target::create_inferior): Update.
282 * inf-ptrace.c (inf_ptrace_target::attach): Update.
283 * gnu-nat.c (gnu_nat_target::attach): Update.
284 (gnu_nat_target::detach): Update.
285 * darwin-nat.c (darwin_nat_target::attach): Update.
286 * corefile.c (get_exec_file): Constify result. Remove extraneous
287 return.
288 * bsd-kvm.c (bsd_kvm_target_open): Update.
289 * gdbsupport/common-inferior.h (get_exec_file): Constify result.
290
c0c3707f
CB
2912019-12-16 Christian Biesinger <cbiesinger@google.com>
292
293 * gdbsupport/common-defs.h: Remove workaround for a gnulib bug
294 (we no longer need to include time.h before pathmax.h)
295
d3ecddab
CB
2962019-12-15 Christian Biesinger <cbiesinger@google.com>
297
298 * ada-exp.y (write_ambiguous_var): Update.
299 * coffread.c (process_coff_symbol): Update.
300 * ctfread.c (ctf_add_enum_member_cb): Update.
301 (new_symbol): Update.
302 * dwarf2read.c (fixup_go_packaging): Update.
303 (new_symbol): Update.
304 * language.c (language_alloc_type_symbol): Update.
305 * mdebugread.c (new_symbol): Update.
306 * minsyms.c (minimal_symbol_reader::record_full): Update.
307 * psymtab.c (add_psymbol_to_bcache): Update.
308 * stabsread.c (define_symbol): Update.
309 (read_enum_type): Update.
310 * symtab.c (symbol_set_language): Make this a member function...
311 (general_symbol_info::set_language): ... here.
312 * symtab.h (struct general_symbol_info) <set_language>: New function.
313 (SYMBOL_SET_LANGUAGE): Remove.
314 (symbol_set_language): Remove.
315
c1b5c1eb
CB
3162019-12-15 Christian Biesinger <cbiesinger@google.com>
317
318 * ada-lang.c (ada_add_block_symbols): Update.
319 (ada_collect_symbol_completion_matches): Update.
320 * ax-gdb.c (gen_expr): Update.
321 * block.c (block_lookup_symbol): Update.
322 (block_lookup_symbol_primary): Update.
323 (block_find_symbol): Update.
324 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Update.
325 * dbxread.c (process_one_symbol): Update.
326 * dictionary.c (insert_symbol_hashed): Update.
327 (collate_pending_symbols_by_language): Update.
328 (mdict_add_symbol): Update.
329 * dwarf-index-write.c (write_psymbols): Update.
330 * dwarf2read.c (fixup_go_packaging): Update.
331 * findvar.c (read_var_value): Update.
332 * ft32-tdep.c (ft32_skip_prologue): Update.
333 * go-lang.c (go_symbol_package_name): Update.
334 * language.h (scoped_switch_to_sym_language_if_auto::
335 scoped_switch_to_sym_language_if_auto): Update.
336 * linespec.c (find_method): Update.
337 (find_label_symbols_in_block): Update.
338 * mdebugread.c (parse_symbol): Update.
339 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
340 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
341 (minimal_symbol_reader::install): Update.
342 * moxie-tdep.c (moxie_skip_prologue): Update.
343 * parse.c (parse_exp_in_context): Update.
344 * psymtab.c (psymbol_name_matches): Update.
345 (match_partial_symbol): Update.
346 (lookup_partial_symbol): Update.
347 (psymbol_hash): Update.
348 (psymbol_compare): Update.
349 * python/py-framefilter.c (extract_sym): Update.
350 (py_print_single_arg): Update.
351 * stabsread.c (define_symbol): Update.
352 * stack.c (print_frame_arg): Update.
353 (find_frame_funname): Update.
354 (info_frame_command_core): Update.
355 * symfile.c (set_initial_language): Update.
356 * symtab.c (symbol_set_demangled_name): Update.
357 (symbol_get_demangled_name): Update.
358 (symbol_set_language): Update.
359 (symbol_find_demangled_name): Update.
360 (symbol_set_names): Update.
361 (general_symbol_info::natural_name): Update.
362 (general_symbol_info::demangled_name): Update.
363 (general_symbol_info::search_name): Update.
364 (symbol_matches_search_name): Update.
365 (eq_symbol_entry): Update.
366 (iterate_over_symbols): Update.
367 (completion_list_add_symbol): Update.
368 (completion_list_add_msymbol): Update.
369 (completion_list_add_fields): Update.
370 * symtab.h (struct general_symbol_info) <language>: New function.
371 <language>: Rename to...
372 <m_language>: ...this.
373 (SYMBOL_LANGUAGE): Remove.
374 (MSYMBOL_LANGUAGE): Remove.
375 (struct symbol) <ctor>: Update.
376 * xstormy16-tdep.c (xstormy16_skip_prologue): Update.
377
747cfc8c
CB
3782019-12-15 Christian Biesinger <cbiesinger@google.com>
379
380 * ada-exp.y (write_ambiguous_var): Call symbol_set_language to
381 set the language of sym.
382 * language.c (language_alloc_type_symbol): Likewise.
383
ff8577f6
SDJ
3842019-12-14 Sergio Durigan Junior <sergiodj@redhat.com>
385
386 https://bugzilla.redhat.com/show_bug.cgi?id=1728147
387 PR gdb/23613
388 * bsd-kvm.c (bsd_kvm_target_open): Use 'gdb_abspath'.
389 * corelow.c: Include 'gdbsupport/pathstuff.h'.
390 (core_target_open): Use 'gdb_abspath'.
391 * gdbsupport/pathstuff.c (gdb_abspath): Guard against
392 'current_directory == NULL' case.
393 * gdbsupport/pathstuff.h (gdb_abspath): Expand comment and
394 explain what happens when 'current_directory' is NULL.
395 * go32-nat.c (go32_nat_target::wait): Check if
396 'current_directory' is NULL before call to 'chdir'.
397 * source.c (add_path): Use 'gdb_abspath'.
398 * top.c: Include 'gdbsupport/pathstuff.h'.
399 (init_history): Use 'gdb_abspath'.
400 (set_history_filename): Likewise.
401 * tracefile-tfile.c: Include 'gdbsupport/pathstuff.h'.
402 (tfile_target_open): Use 'gdb_abspath'.
403
234c3068
TT
4042019-12-13 Tom Tromey <tromey@adacore.com>
405
406 * contrib/ari/gdb_ari.sh: Remove check for multiple calls to
407 warning or error.
408
93537683
TT
4092019-12-13 Tom Tromey <tromey@adacore.com>
410
411 * contrib/ari/gdb_ari.sh: Remove call to "fix" for "long long".
412
63456183
TT
4132019-12-13 Tom Tromey <tromey@adacore.com>
414
415 * contrib/ari/gdb_ari.sh: Handle -Wno- prefix.
416
98f9338a
TT
4172019-12-13 Tom Tromey <tromey@adacore.com>
418
419 * contrib/ari/gdb_ari.sh (usage): Use GNU style.
420
3cb5a3a1
TT
4212019-12-13 Tom Tromey <tromey@adacore.com>
422
423 * gdbsupport/common-utils.c (string_printf, string_vprintf)
424 (string_vappendf): Add ARI comment.
425
c6cbf900
TT
4262019-12-13 Tom Tromey <tromey@adacore.com>
427
428 * contrib/ari/gdb_ari.sh: Remove "fix" call for
429 floatformat_to_double.
430 * target-float.c (host_float_ops<T>::from_target): Add ARI
431 comment.
432
036003a6
TT
4332019-12-13 Tom Tromey <tromey@adacore.com>
434
435 * contrib/ari/gdb_ari.sh: Remove "fix" call for abort.
436 * utils.c (abort_with_message, dump_core, internal_vproblem): Add
437 ARI marker to abort.
438 * event-top.c (handle_sigsegv): Add ARI marker to abort.
439
8aaaf757
TT
4402019-12-13 Tom Tromey <tromey@adacore.com>
441
442 * contrib/ari/gdb_ari.sh: Fix floatformat_from_double text.
443
fe56157f
TT
4442019-12-13 Tom Tromey <tromey@adacore.com>
445
446 * contrib/ari/gdb_ari.sh: Remove ATTRIBUTE_UNUSED check.
447
a15a95ed
TT
4482019-12-13 Tom Tromey <tromey@adacore.com>
449
450 * contrib/ari/gdb_ari.sh: Remove "boolean" and "var_boolean"
451 checks.
452
a5513db2
TT
4532019-12-13 Tom Tromey <tromey@adacore.com>
454
455 * gdbsupport/safe-iterator.h (class basic_safe_range) <begin,
456 end>: No longer "const".
457
3a90f266
SM
4582019-12-13 Simon Marchi <simon.marchi@polymtl.ca>
459
460 * jit.c: Fix indentation, replace spaces with tabs where
461 applicable.
462
b3f4b80f
JL
4632019-12-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
464
465 * configure.tgt: Match msp430-*-elf* targets when configuring GDB.
466
e671856c
TT
4672019-12-12 Tom Tromey <tom@tromey.com>
468
469 * objfiles.h (struct objfile) <partial_symtabs>: Now a
470 unique_ptr.
471
7d7167ce
TT
4722019-12-12 Tom Tromey <tom@tromey.com>
473
474 * progspace.h (objfile_list): New typedef.
475 (class unwrapping_objfile_iterator)
476 (struct unwrapping_objfile_range): Newl
477 (struct program_space) <objfiles_range>: Change type.
478 <objfiles>: Change return type.
479 <add_objfile>: Change type of "objfile" parameter.
480 <objfiles_list>: Now a list of shared_ptr.
481 * progspace.c (program_space::add_objfile): Change type of
482 "objfile". Update.
483 (program_space::remove_objfile): Update.
484 * objfiles.h (struct objfile) <~objfile>: Make public.
485 * objfiles.c (objfile::make): Update.
486 (objfile::unlink): Don't call delete.
487
343cc952
TT
4882019-12-12 Tom Tromey <tom@tromey.com>
489
490 * symfile.c (symbol_file_clear): Update.
491 * progspace.h (struct program_space) <free_all_objfiles>: Declare
492 method.
493 * progspace.c (program_space::free_all_objfiles): New method.
494 * objfiles.h (free_all_objfiles): Don't declare.
495 * objfiles.c (free_all_objfiles): Move to program_space.
496
d0801dd8
TT
4972019-12-12 Tom Tromey <tom@tromey.com>
498
499 * progspace.c (program_space::add_objfile)
500 (program_space::remove_objfile): Update.
501 (program_space::multi_objfile_p): Remove.
502 * objfiles.h (struct objfile) <next>: Remove.
503 * objfiles.c (objfile::objfile): Update.
504 (put_objfile_before): Update.
505 (unlink_objfile): Update.
506 * progspace.h (object_files): Remove.
507 (struct program_space) <objfiles_head>: Remove.
508 <objfiles_list>: New member.
509 <objfiles_range, objfiles_safe_range>: Change type.
510 (objfiles): Change return type.
511 (objfiles_safe): Update.
512 (multi_objfile_p): Rewrite and inline.
513 (object_files): Remove macro.
514
13bff726
TT
5152019-12-12 Tom Tromey <tom@tromey.com>
516
517 * gdbsupport/safe-iterator.h (basic_safe_iterator): Simplify. Add
518 second constructor.
519 (basic_safe_range): New class.
520
deeafabb
TT
5212019-12-12 Tom Tromey <tom@tromey.com>
522
523 * progspace.c (program_space::multi_objfile_p): New method.
524 * printcmd.c (info_symbol_command): Update.
525 * maint.c (maintenance_translate_address): Update.
526 * objfiles.h (MULTI_OBJFILE_P): Remove.
527 * progspace.h (struct program_space) <multi_objfile_p>: New
528 method.
529
23452926
TT
5302019-12-12 Tom Tromey <tom@tromey.com>
531
532 * progspace.h (struct program_space) <remove_objfile>: Declare.
533 * progspace.c (program_space::remove_objfile): New method.
534 * objfiles.c (unlink_objfile): Remove.
535 (objfile::unlink): Call remove_objfile.
536 (objfile): Don't call unlink_objfile.
537
7cac64af
TT
5382019-12-12 Tom Tromey <tom@tromey.com>
539
540 * progspace.h (struct program_space) <add_objfile>: Declare
541 method.
542 * progspace.c (program_space::add_objfile): New method.
543 * objfiles.c (~objfile): Don't unlink objfile.
544 (put_objfile_before): Remove.
545 (add_separate_debug_objfile): Don't call put_objfile_before.
546 (objfile::make): Call add_objfile. Set new_objfiles_available on
547 the per-program-space data.
548
268e4f09
TT
5492019-12-12 Tom Tromey <tom@tromey.com>
550
551 * symfile.c (syms_from_objfile_1): Use objfile_up.
552 (syms_from_objfile_1, remove_symbol_file_command): Call unlink
553 method.
554 (reread_symbols): Use objfile_up.
555 * solib.c (update_solib_list, reload_shared_libraries_1): Call
556 unlink method.
557 * objfiles.h (struct objfile) <~objfile>: Now private.
558 <unlink>: New method.
559 (struct objfile_deleter): New.
560 (objfile_up): New typedef.
561 * objfiles.c (objfile::unlink): New method.
562 (free_objfile_separate_debug, free_all_objfiles)
563 (objfile_purge_solibs): Use it.
564 * jit.c (jit_unregister_code): Remove.
565 (jit_inferior_exit_hook, jit_event_handler): Call unlink on
566 objfile.
567 * compile/compile-object-run.c (do_module_cleanup): Call unlink on
568 objfile.
569 * compile/compile-object-load.c (compile_object_load): Use
570 objfile_up.
571
f65fe570
TT
5722019-12-12 Tom Tromey <tom@tromey.com>
573
574 * symfile.c (symbol_file_add_with_addrs): Pass "parent" to
575 objfile::make.
576 * objfiles.h (struct objjfile) <make>: No longer inline.
577 (add_separate_debug_objfile): Don't declare.
578 * objfiles.c (add_separate_debug_objfile): Now static.
579 (objfile::make): Move from objfiles.h. Call
580 add_separate_debug_objfile. Add "parent" parameter.
581
bda13cdc
TT
5822019-12-12 Tom Tromey <tom@tromey.com>
583
584 * symfile.c (symbol_file_add_with_addrs): Use objfile::make.
585 * objfiles.h (struct objfile): Make constructor private.
586 <make>: New static method.
587 * jit.c (jit_object_close_impl): Update.
588
7190276c
SM
5892019-12-12 Simon Marchi <simon.marchi@polymtl.ca>
590
591 * jit.c (jit_reader_try_read_symtab): Replace xmalloc/xfree with
592 gdb::byte_vector.
593
d61df897
TT
5942019-12-12 Tom Tromey <tromey@adacore.com>
595
596 * xml-support.c (xml_fetch_content_from_file): Don't call
597 malloc_failure.
598 * utils.h (class gdb_argv): Remove malloc_failure comment.
599 * utils.c (gdb_argv::reset): Don't call malloc_failure.
600
db3ad2f0
TT
6012019-12-12 Tom Tromey <tromey@adacore.com>
602
603 * Makefile.in (ALL_TARGET_OBS): Add riscv-ravenscar-thread.o.
604 (HFILES_NO_SRCDIR): Add riscv-ravenscar-thread.h.
605 (ALLDEPFILES): Add riscv-ravenscar-thread.c.
606 * configure.tgt (riscv-*-*): Add riscv-ravenscar-thread.o.
607 * riscv-ravenscar-thread.c: New file.
608 * riscv-ravenscar-thread.h: New file.
609 * riscv-tdep.c (riscv_gdbarch_init): Call
610 register_riscv_ravenscar_ops.
611
2ffe5b9c
TT
6122019-12-12 Tom Tromey <tromey@adacore.com>
613
614 * gdbsupport/thread-pool.c (set_thread_name): Use
615 ATTRIBUTE_UNUSED.
616
39f34d7b
LM
6172019-12-12 Luis Machado <luis.machado@linaro.org>
618
619 * gdbsupport/safe-strerror.c: Don't include diagnostics.h.
620 (select_strerror_r): Use ATTRIBUTE_UNUSED instead of the diagnostics
621 macros.
622
d4eeccfe
TT
6232019-12-11 Tom Tromey <tom@tromey.com>
624
625 * tui/tui-win.c (tui_set_win_height_command): Call
626 tui_adjust_window_height.
627 (tui_adjust_win_heights, new_height_ok): Remove.
628 * tui/tui-layout.h (tui_adjust_window_height): Declare.
629 * tui/tui-layout.c (tui_adjust_window_height): New function.
630
3d979945
TT
6312019-12-11 Tom Tromey <tom@tromey.com>
632
633 * tui/tui-win.c (tui_resize_all): Remove code, call
634 tui_apply_current_layout.
635
2192a9d3
TT
6362019-12-11 Tom Tromey <tom@tromey.com>
637
638 * tui/tui-layout.h (tui_apply_current_layout): Declare.
639 * tui/tui-layout.c (standard_layouts, applied_layout): New
640 globals.
641 (tui_apply_current_layout): New function.
642 (show_layout): Set applied_layout. Call
643 tui_apply_current_layout.
644 (show_source_command, show_disasm_command)
645 (show_source_disasm_command, show_data)
646 (show_source_or_disasm_and_command): Remove.
647 (initialize_layouts): New function.
648 (_initialize_tui_layout): Call initialize_layouts.
649
389e7ddb
TT
6502019-12-11 Tom Tromey <tom@tromey.com>
651
652 * tui/tui-layout.h (class tui_layout_base)
653 (class tui_layout_window, class tui_layout_split): New.
654 * tui/tui-layout.c (tui_get_window_by_name)
655 (tui_layout_window::clone, tui_layout_window::apply)
656 (tui_layout_window::get_sizes, tui_layout_window::add_split)
657 (tui_layout_split::add_window, tui_layout_split::clone)
658 (tui_layout_split::get_sizes)
659 (tui_layout_split::set_weights_from_heights)
660 (tui_layout_split::adjust_size, tui_layout_split::apply): New
661 functions.
662 (tui_layout_split::add_split, tui_layout_split::add_split)
663 (tui_layout_split::set_weights_from_heights)
664 (tui_layout_split::set_weights_from_heights): New functions.
665
fb3184d8
TT
6662019-12-11 Tom Tromey <tom@tromey.com>
667
668 * tui/tui-wingeneral.c (tui_gen_win_info::make_window): Update.
669 * tui/tui-win.c (tui_adjust_win_heights, tui_resize_all): Update.
670 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
671 * tui/tui-data.h (struct tui_point): Remove.
672 (struct tui_gen_win_info) <origin>: Remove.
673 <x, y>: New fields.
674 * tui/tui-command.c (tui_cmd_window::resize): Update.
675
dc7ff8a6
TT
6762019-12-11 Tom Tromey <tom@tromey.com>
677
678 * tui/tui-stack.h (struct tui_locator_window) <min_height>:
679 Implement.
680 * tui/tui-regs.h (struct tui_data_item_window) <min_height>:
681 Implement.
682 * tui/tui-data.h (struct tui_gen_win_info) <min_height>: New
683 method.
684 (struct tui_win_info) <min_height>: Implement.
685
1431937b
TT
6862019-12-11 Tom Tromey <tom@tromey.com>
687
688 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
689 (struct tui_win_info) <can_box>: Update.
690
c8ec2f43
TT
6912019-12-11 Tom Tromey <tom@tromey.com>
692
693 * tui/tui-stack.h (struct tui_locator_window) <max_height>: New
694 method.
695 * tui/tui-regs.h (struct tui_data_item_window) <max_height>: New
696 method.
697 * tui/tui-data.h (struct tui_gen_win_info) <max_height>: New
698 method.
699 (struct tui_win_info) <max_height>: Now override.
700
4decd62b
JB
7012019-12-11 Joel Brobecker <brobecker@adacore.com>
702
703 * NEWS: Create a new section for the next release branch.
704 Rename the section of the current branch, now that it has
705 been cut.
706
d746744e
JB
7072019-12-11 Joel Brobecker <brobecker@adacore.com>
708
709 GDB 9 branch created (27f7b2f64062ac9e52afc60509263c2702a9ebd0):
710 * version.in: Bump version to 10.0.50.DATE-git.
711
2e744276
TT
7122019-12-11 Tom Tromey <tromey@adacore.com>
713
714 PR build/25268:
715 * gdbsupport/thread-pool.c (set_thread_name): New function.
716 (thread_pool::set_thread_count): Don't call pthread_setname_np.
717 (thread_pool::thread_function): Call set_thread_name.
718
aac4760f
TT
7192019-12-11 Tom Tromey <tromey@adacore.com>
720
721 * fbsd-tdep.c (fbsd_core_info_proc_status): Cast result of
722 bfd_get_signed_8.
723
d8edc8b7
PW
7242019-12-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
725
726 * NEWS: Document -raw-values option and the related setting commands.
727 * printcmd.c (print_command_parse_format): Do not set opts->raw off,
728 only set it on when /r is given.
729 * valprint.c (value_print_option_defs): New element raw-values.
730 * Makefile.in: Add the new file.
731
cb511130
CB
7322019-12-10 Christian Biesinger <cbiesinger@google.com>
733
734 * gdbsupport/safe-strerror.c: Supress the unused function warning
735 for select_strerror_r.
736
ab7d13f0
CB
7372019-12-10 Christian Biesinger <cbiesinger@google.com>
738
739 * config.in: Regenerate.
740 * configure: Regenerate.
741 * gdbsupport/agent.c (gdb_connect_sync_socket): Call
742 safe_strerror instead of strerror.
743 * gdbsupport/common.m4: Don't check for strerror.
744 * gdbsupport/safe-strerror.c: Support both the glibc version
745 of strerror_r and the XSI version.
746
6c71eb7d
TT
7472019-12-10 Tom Tromey <tromey@adacore.com>
748
749 * ada-typeprint.c (print_choices): Use a single "?".
750 (print_variant_part): Print "?" if the discriminant name
751 is not known.
752
bac7c5cf
GB
7532019-12-10 George Barrett <bob@bob131.so>
754
755 Fix scripted probe breakpoints.
756 * breakpoint.c (tracepoint_probe_breakpoint_ops): Move
757 declaration forward.
758 (breakpoint_ops_for_event_location_type)
759 (breakpoint_ops_for_event_location): Add function definitions.
760 (break_command_1, trace_command): Use
761 breakpoint_ops_for_event_location.
762 * breakpoint.h (breakpoint_ops_for_event_location): Add function
763 declarations.
764 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Use
765 breakpoint_ops_for_event_location.
766 * python/py-breakpoint.c (bppy_init): Use
767 breakpoint_ops_for_event_location.
768
330f1d38
TBA
7692019-12-09 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
770
771 * gdbtypes.c (rank_one_type): Return INCOMPATIBLE_TYPE_BADNESS
772 when ranking an lvalue argument for an rvalue parameter.
773
b1f0c0b9
WA
7742019-12-08 Wataru Ashihara <wataash@wataash.com>
775
776 * darwin-nat.c (darwin_nat_target::create_inferior): Fix
777 template argument for scoped_restore_tmpl from bool to int.
778
aa2d5a42
KS
7792019-12-07 Keith Seitz <keiths@redhat.com>
780
781 * build-id.c (build_id_bfd_get): Permit bfd_core, too.
782 (build_id_to_debug_bfd): Make static, rewriting to use
783 build_id_to_bfd_suffix.
784 (build_id_to_bfd_suffix): Copy of build_id_to_debug_bfd,
785 adding `suffix' parameter. Append SUFFIX to file names
786 when searching for matching files.
787 (build_id_to_debug_bfd): Use build_id_to_bfd_suffix.
788 (build_id_to_exec_bfd): Likewise.
789 * build-id.h (build_id_to_debug_bfd): Clarify that function
790 searches for BFD of debug info file.
791 (build_id_to_exec_bfd): Declare.
792 * corelow.c: Include build-id.h.
793 (locate_exec_from_corefile_build_id): New function.
794 (core_target_open): If no executable BFD is found,
795 search for a core file BFD using build-id.
796
dfb65191
CB
7972019-12-06 Christian Biesinger <cbiesinger@google.com>
798
799 * bcache.c: Put in namespace gdb.
800 * bcache.h: Likewise.
801 * gdbtypes.c (check_types_worklist): Update.
802 (types_deeply_equal): Update.
803 * macrotab.c (struct macro_table) <bcache>: Update.
804 (new_macro_table): Update.
805 * macrotab.h (struct bcache): Put this forward declaration
806 inside namespace gdb.
807 (new_macro_table): Update.
808 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache>:
809 Update.
810 <macro_cache>: Update.
811 * psymtab.h: (psymtab_storage) <psymbol_cache>: Update.
812
93e55f0a
TV
8132019-12-06 Tom de Vries <tdevries@suse.de>
814
815 PR symtab/24971
816 * block.c (best_symbol, better_symbol): New function.
817 (block_lookup_symbol_primary, block_lookup_symbol): Prefer def over
818 decl.
819
06acc08f
TBA
8202019-12-06 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
821
822 * gdbtypes.h: Define the REFERENCE_SEE_THROUGH_BADNESS value.
823 * gdbtypes.c (rank_one_type): Use REFERENCE_SEE_THROUGH_BADNESS
824 for ranking see-through reference cases.
825
e0fad1ea
PW
8262019-12-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
827 * stack.c (faas_command): Check a command is provided.
828 * thread.c (taas_command, tfaas_command): Likewise.
829
908641f5
PW
8302019-12-05 Philippe Waroquiers <philippe.waroquiers@skynet.be>
831 * inferior.c (prune_inferiors): Only call delete_inferior,
832 Do not modify the inferior list.
833
b858499d
SM
8342019-12-05 Simon Marchi <simon.marchi@polymtl.ca>
835
836 * c-exp.y: Update calls to lookup_typename,
837 lookup_signed_typename and lookup_unsigned_typename.
838 * c-lang.c (evaluate_subexp_c): Likewise.
839 * cp-namespace.c (cp_lookup_symbol_imports_or_template):
840 Likewise.
841 * eval.c (binop_promote): Likewise.
842 * gdbtypes.c (lookup_typename): Remove gdbarch parameter.
843 (lookup_unsigned_typename): Likewise.
844 (lookup_signed_typename): Likewise.
845 * gdbtypes.h (lookup_unsigned_typename): Likewise.
846 (lookup_signed_typename): Likewise.
847 (lookup_typename): Likewise.
848 * guile/scm-type.c (tyscm_lookup_typename): Update calls to
849 lookup_typename, lookup_signed_typename,
850 lookup_unsigned_typename.
851 * m2-exp.y: Likewise.
852 * printcmd.c (printf_wide_c_string): Likewise.
853 (ui_printf): Likewise.
854 * python/py-type.c (typy_lookup_typename): Likewise.
855 * python/py-xmethods.c (python_xmethod_worker::invoke):
856 Likewise.
857 * rust-exp.y: Likewise.
858
3a8fa228
CB
8592019-12-04 Christian Biesinger <cbiesinger@google.com>
860
861 * configure.nat (obsd64): Add missing files x86-nat.o and
862 nat/x86-dregs.o.
863
2dbc041e
TT
8642019-12-04 Tom Tromey <tom@tromey.com>
865
866 * valprint.c (val_print_string): Use metadata_style.
867 * go-valprint.c (print_go_string): Use metadata style.
868 * p-valprint.c (pascal_object_print_static_field): Use metadata
869 style.
870 * cp-valprint.c (cp_print_static_field): Use metadata style.
871
36c8fb93
AB
8722019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
873 Chris January <chris.january@arm.com>
874
875 * f-exp.y (COMPLEX_KEYWORD, SINGLE, DOUBLE, PRECISION): New
876 tokens.
877 (typebase): New patterns for complex, single/double precision, and
878 single/double complex.
879 (f77_keywords): Change token for complex keyword, and add single,
880 double, and precision keywords.
881
c6170c2c
SM
8822019-12-04 Simon Marchi <simon.marchi@polymtl.ca>
883
884 * avr-tdep.c (_initialize_avr_tdep): Improve help of command
885 "info io_registers".
886
894ecaf4
SM
8872019-12-04 Simon Marchi <simon.marchi@polymtl.ca>
888
889 * regcache.c (cooked_read_test): Initialize thread list of
890 mock_inferior.
891
be155ebb
SM
8922019-12-04 Simon Marchi <simon.marchi@polymtl.ca>
893
894 * aarch64-linux-tdep.c: Remove includes.
895
c577cdd7
SM
8962019-12-04 Simon Marchi <simon.marchi@polymtl.ca>
897
898 * aarch64-tdep.c: Remove includes.
899
610cfd61
SM
9002019-12-04 Simon Marchi <simon.marchi@efficios.com>
901
902 * filtered-iterator.h (filtered_iterator) <operator==,
903 operator!=>: Compare wrapped iterators, not wrapped pointers.
904 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
905 unittests/filtered_iterator-selftests.c.
906 * unittests/filtered_iterator-selftests.c: New file.
907
a05cf17a
TT
9082019-12-04 Tom Tromey <tromey@adacore.com>
909
910 * gdbtypes.c (create_range_type): Inherit endianity
911 from base type.
912
d5a22e77
TT
9132019-12-04 Tom Tromey <tromey@adacore.com>
914
915 * ada-lang.c (decode_constrained_packed_array)
916 (ada_value_assign, value_assign_to_component): Update.
917 * dwarf2loc.c (rw_pieced_value, access_memory)
918 (dwarf2_compile_expr_to_ax): Update.
919 * dwarf2read.c (dwarf2_add_field): Update.
920 * eval.c (evaluate_subexp_standard): Update.
921 * gdbarch.c, gdbarch.h: Rebuild.
922 * gdbarch.sh (bits_big_endian): Remove.
923 * gdbtypes.h (union field_location): Update comment.
924 * target-descriptions.c (make_gdb_type): Update.
925 * valarith.c (value_bit_index): Update.
926 * value.c (struct value) <bitpos>: Update comment.
927 (unpack_bits_as_long, modify_field): Update.
928 * value.h (value_bitpos): Update comment.
929
7ab4a236
TT
9302019-12-04 Tom Tromey <tromey@adacore.com>
931
932 * gdbtypes.c (type_byte_order): Move earlier. Assert for unknown
933 endian-ness.
934
103a685e
TT
9352019-12-04 Tom Tromey <tromey@adacore.com>
936
937 * dwarf2read.c (dwarf2_init_float_type)
938 (dwarf2_init_complex_target_type): Add byte_order parameter.
939 (read_base_type): Compute byte order earlier.
940 * gdbtypes.c (init_float_type): Add byte_order parameter.
941 * gdbtypes.h (init_float_type): Add byte_order parameter.
942
7a9e9f9f
TT
9432019-12-04 Tom Tromey <tromey@adacore.com>
944
945 * unittests/tui-selftests.c: Conditionally include tui-winsource.h.
946
feee869b
TT
9472019-12-04 Tom Tromey <tromey@adacore.com>
948
949 * dwarf2read.c (process_structure_scope): Initialize
950 "discr_offset".
951
c2512106
AB
9522019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
953
954 * mi/mi-symbol-cmds.c (mi_symbol_info): Take extra parameter, and
955 add it into the search spec.
956 (parse_max_results_option): New function.
957 (mi_info_functions_or_variables): Parse -max-results flag and pass
958 it to mi_symbol_info.
959 (mi_cmd_symbol_info_modules): Likewise.
960 (mi_cmd_symbol_info_types): Likewise.
961 * symtab.c (global_symbol_searcher::add_matching_symbols): Change
962 return type to bool, change result container into a set, and don't
963 add new results if we have enough already.
964 (global_symbol_searcher::add_matching_msymbols): Change return
965 type to bool, and don't add new results if we have enough already.
966 (sort_search_symbols_remove_dups): Delete.
967 (global_symbol_searcher::search): Early exit from search loop when
968 we have enough results. Use a std::set to collect the results
969 from calling add_matching_symbols.
970 * symtab.h (global_symbol_searcher) <set_max_seach_results>: New
971 member function.
972 (global_symbol_searcher) <m_max_search_results>: New member
973 variable.
974 (global_symbol_searcher) <add_matching_symbols>: Update header
975 comment and change return type to bool.
976 (global_symbol_searcher) <add_matching_msymbols>: Update header
977 comment and change return type to bool.
978
f97a63c5
AB
9792019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
980
981 * symtab.c (symbol_search::compare_search_syms): Update header
982 comment.
983 (global_symbol_searcher::is_suitable_msymbol): New function.
984 (global_symbol_searcher::expand_symtabs): New function.
985 (global_symbol_searcher::add_matching_symbols): New function.
986 (global_symbol_searcher::add_matching_msymbols): New function.
987 (global_symbol_searcher::search): Move most of the content
988 into the new functions above, and call them as needed.
989 * symtab.h (global_symbol_searcher) <expand_symtabs>: New member
990 function.
991 (global_symbol_searcher) <add_matching_symbols>: New member
992 function.
993 (global_symbol_searcher) <add_matching_msymbols>: New member
994 function.
995 (global_symbol_searcher) <is_suitable_msymbol>: New member
996 function.
997
293b38d6
AB
9982019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
999
1000 * mi/mi-cmds.c (mi_cmds): Add -symbol-info-module-functions and
1001 -symbol-info-module-variables entries.
1002 * mi/mi-cmds.h (mi_cmd_symbol_info_module_functions): Declare.
1003 (mi_cmd_symbol_info_module_variables): Declare.
1004 * mi/mi-symbol-cmds.c
1005 (module_symbol_search_iterator): New typedef.
1006 (output_module_symbols_in_single_module_and_file): New function.
1007 (output_module_symbols_in_single_module): New function.
1008 (mi_info_module_functions_or_variables): New function.
1009 (mi_cmd_symbol_info_module_functions): New function.
1010 (mi_cmd_symbol_info_module_variables): New function.
1011 * NEWS: Mention new MI command.
1012
4cbd39b2
CB
10132019-12-03 Christian Biesinger <cbiesinger@google.com>
1014
1015 * bcache.c (hash): Remove.
1016 (hash_continue): Remove.
1017 * bcache.h (hash): Remove.
1018 (hash_continue): Remove.
1019 (struct bcache) <ctor>: Update.
1020 * psymtab.c (psymbol_hash): Update.
1021 * stabsread.c (hashname): Update.
1022 * utils.h (fast_hash): Add an argument for a start value,
1023 defaulting to zero.
1024
82f910ea
PW
10252019-12-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1026 * symtab.c (symbol_cache_clear_slot): Move close to cleared type.
1027 (destroy_block_symbol_cache): New function.
1028 (symbol_cache:~symbol_cache) Call destroy_block_symbol_cache.
1029 (resize_symbol_cache): Likewise.
1030
de2396d0
TT
10312019-12-02 Tom Tromey <tom@tromey.com>
1032
1033 * unittests/tui-selftests.c (run_tests): Make conditional.
1034 (_initialize_tui_selftest): Make conditional.
1035
638d85bc
CB
10362019-12-02 Christian Biesinger <cbiesinger@google.com>
1037
1038 * aix-thread.c (debug_aix_thread): Change type to bool.
1039
7532a164
LM
10402019-12-02 Luis Machado <luis.machado@linaro.org>
1041
1042 * infrun.c (follow_fork_inferior): Remove outdated FIXME comment.
1043
216a7e6b
AB
10442019-12-01 Andrew Burgess <andrew.burgess@embecosm.com>
1045
1046 * dwarf2read.c (read_tag_string_type): Read the fields required to
1047 make a dynamic string, and possibly create a dynamic range for the
1048 string.
1049 (attr_to_dynamic_prop): Setup is_reference based on the type of
1050 attribute being processed.
1051 * gdbtypes.c (is_dynamic_type_internal): Handle TYPE_CODE_STRING.
1052 (resolve_dynamic_array): Rename to...
1053 (resolve_dynamic_array_or_string): ...this, update header comment,
1054 and accept TYPE_CODE_STRING.
1055 (resolve_dynamic_type_internal): Handle TYPE_CODE_STRING.
1056
11a8b164
AB
10572019-12-01 Andrew Burgess <andrew.burgess@embecosm.com>
1058
1059 * dwarf2read.c (dwarf2_per_cu_int_type): New function, takes most
1060 of its implementation from...
1061 (dwarf2_per_cu_addr_sized_int_type): ...here, which now just calls
1062 the new function.
1063
5bbd8269
AB
10642019-12-01 Andrew Burgess <andrew.burgess@embecosm.com>
1065
1066 * dwarf2read.c (read_subrange_type): Read bit and byte stride and
1067 create a range with stride where appropriate.
1068 * f-valprint.c: Include 'gdbarch.h'.
1069 (f77_print_array_1): Take the stride into account when walking the
1070 array. Also convert the stride into addressable units.
1071 * gdbtypes.c (create_range_type): Initialise the stride to
1072 constant zero.
1073 (create_range_type_with_stride): New function, initialise the
1074 range as normal, and then setup the stride.
1075 (has_static_range): Include the stride here. Also change the
1076 return type to bool.
1077 (create_array_type_with_stride): Consider the range stride if the
1078 array isn't given its own stride.
1079 (resolve_dynamic_range): Resolve the stride if needed.
1080 * gdbtypes.h (struct range_bounds) <stride>: New member variable.
1081 (struct range_bounds) <flag_is_byte_stride>: New member variable.
1082 (TYPE_BIT_STRIDE): Define.
1083 (TYPE_ARRAY_BIT_STRIDE): Define.
1084 (create_range_type_with_stride): Declare.
1085 * valarith.c (value_subscripted_rvalue): Take range stride into
1086 account when walking the array.
1087
82e3b564
TT
10882019-12-01 Tom Tromey <tom@tromey.com>
1089
1090 * tui/tui-win.c (tui_all_windows_info): Treat inactive TUI
1091 specially.
1092
517d261d
TT
10932019-12-01 Tom Tromey <tom@tromey.com>
1094
1095 * tui/tui-winsource.c (tui_copy_source_line): Don't advance past
1096 \0.
1097 * unittests/tui-selftests.c: New file.
1098 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add tui-selftests.c.
1099
484c9b64
TT
11002019-12-01 Tom Tromey <tom@tromey.com>
1101
1102 * tui/tui.c (tui_enable): Call tui_update_variables earlier.
1103
a2a7af0c
TT
11042019-12-01 Tom Tromey <tom@tromey.com>
1105
1106 * NEWS: Document new settings.
1107 * tui/tui-wingeneral.c (box_win): Apply appropriate border style.
1108 * tui/tui-win.c (_initialize_tui_win): Add border style
1109 observers.
1110 * tui/tui-io.h (tui_apply_style): Declare.
1111 * tui/tui-io.c (tui_apply_style): Rename from apply_style. No
1112 longer static.
1113 (apply_ansi_escape, tui_set_reverse_mode): Update.
1114 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
1115 Add "skip_intensity" parameter.
1116 <changed>: New member.
1117 <do_set_value>: Declare.
1118 (tui_border_style, tui_active_border_style): Declare.
1119 * cli/cli-style.c (tui_border_style, tui_active_border_style): New
1120 globals.
1121 (cli_style_option): Initialize "changed".
1122 (cli_style_option::do_set_value): New function.
1123 (cli_style_option::add_setshow_commands): Add "skip_intensity"
1124 parameter. Update.
1125 (STYLE_ADD_SETSHOW_COMMANDS): Add "SKIP" parameter.
1126 (_initialize_cli_style): Update. Create TUI border style
1127 commands.
1128
d1da6b01
TT
11292019-12-01 Tom Tromey <tom@tromey.com>
1130
1131 * tui/tui-winsource.h (tui_copy_source_line): Add "ndigits"
1132 parameter.
1133 * tui/tui-winsource.c (tui_copy_source_line): Add "ndigits"
1134 parameter.
1135 * tui/tui-win.h (compact_source): Declare.
1136 * tui/tui-win.c (compact_source): New global.
1137 (tui_set_compact_source, tui_show_compact_source): New functions.
1138 (_initialize_tui_win): Add "compact-source" setting.
1139 * tui/tui-source.c (tui_source_window::set_contents): Handle
1140 compact_source setting.
1141 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
1142 * NEWS: Document new setting.
1143
489dbda6
TT
11442019-11-30 Tom Tromey <tom@tromey.com>
1145
1146 * dwarf2read.c (dwarf2_add_field): Include field offset when
1147 computing variant part length.
1148
bf498525
PW
11492019-11-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1150 * NEWS: Mention define-prefix. Tell that command names can now
1151 contain a . character.
1152
be09caf1
PW
11532019-11-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1154
1155 * command.h (valid_cmd_char_p): Declare.
1156 * cli/cli-decode.c (valid_cmd_char_p): New function factorizing
1157 the check of valid command char.
1158 (find_command_name_length, valid_user_defined_cmd_name_p): Use
1159 valid_cmd_char_p.
1160 * cli/cli-script.c (validate_comname): Likewise.
1161 * completer.c (gdb_completer_command_word_break_characters):
1162 Do not remove . from the word break char, update comments.
1163 (complete_line_internal_1): Use valid_cmd_char_p.
1164 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
1165 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
1166
c6ac7fc9
PW
11672019-11-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1168
1169 * cli/cli-script.c (do_define_command): Ensure a redefined
1170 prefix command is kept as a prefix command.
1171 (define_prefix_command): New function.
1172 (show_user_1): Report user defined prefixes.
1173 (_initialize_cli_script): Create the new 'define-prefix' command.
1174 Add completers for 'define' and 'document'.
1175 * top.c (execute_command): If command is a user-defined prefix only
1176 command, report the list of commands for this prefix command.
1177
a992a3b0
TBA
11782019-11-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1179
1180 * valops.c (find_oload_champ): Improve debug output.
1181
e9194a1a
TBA
11822019-11-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1183
1184 * valops.c (find_oload_champ): Print part of debug messages
1185 before the badness vector is std::move'd.
1186
53a008a6
TT
11872019-11-28 Tom Tromey <tom@tromey.com>
1188
1189 * value.c (creal_internal_fn): Fix comment.
1190
bab05c83
TT
11912019-11-28 Tom Tromey <tom@tromey.com>
1192
1193 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count,
1194 flag_bound_evaluated>: Now unsigned.
1195
2522f049
TT
11962019-11-28 Tom Tromey <tom@tromey.com>
1197
1198 * guile/guile-internal.h (vlscm_scm_from_value_unsafe): Don't
1199 declare.
1200
38b49e22
MS
12012019-11-28 Mihails Strasuns <mihails.strasuns@intel.com>
1202
1203 * jit.c (jit_bfd_try_read_symtab): Fix printed function name in the
1204 debug output.
1205 * jit.c (jit_unregister_code): Add debug print to match
1206 `jit_register_code`.
1207
35125921
CB
12082019-11-27 Christian Biesinger <cbiesinger@google.com>
1209
1210 * NEWS: Mention the new multithreaded symbol loading.
1211
62e77f56
CB
12122019-11-27 Christian Biesinger <cbiesinger@google.com>
1213
1214 * maint.c (n_worker_threads): Default to 0.
1215 (worker_threads_disabled): New function.
1216 * maint.h (worker_threads_disabled): New function.
1217 * minsyms.c (minimal_symbol_reader::record_full): Call symbol_set_names
1218 here if worker_threads_disabled () is true.
1219 (minimal_symbol_reader::install): Skip all threading if
1220 worker_threads_disabled () is true.
1221
f29d7f6b
CB
12222019-11-27 Christian Biesinger <cbiesinger@google.com>
1223
1224 * minsyms.c (add_minsym_to_hash_table): Use a previously computed
1225 hash code if possible.
1226 (add_minsym_to_demangled_hash_table): Likewise.
1227 (minimal_symbol_reader::install): Compute the hash codes for msymbol
1228 on the background thread.
1229 * symtab.h (struct minimal_symbol) <hash_value, demangled_hash_value>:
1230 Add these fields.
1231
e76b2246
CB
12322019-11-27 Christian Biesinger <cbiesinger@google.com>
1233
1234 * minsyms.c (minimal_symbol_reader::install): Also compute the hash
1235 of the mangled name on the background thread.
1236 * symtab.c (symbol_set_names): Allow passing in the hash of the
1237 linkage_name.
1238 * symtab.h (symbol_set_names): Likewise.
1239
8d9a2568
KB
12402019-11-27 Kevin Buettner <kevinb@redhat.com>
1241
1242 * dwarf2read.c (inherit_abstract_dies): Ensure that delayed
1243 physnames are computed for inherited DIEs.
1244
fad03f6e
TT
12452019-11-27 Tom Tromey <tromey@adacore.com>
1246
1247 * dwarf2read.h (struct dwarf2_per_objfile): Remove unnecessary
1248 backslashes.
1249 * cp-support.c: Remove unnecessary backslashes.
1250
43678b0a
CB
12512019-11-27 Christian Biesinger <cbiesinger@google.com>
1252
1253 * ada-exp.y (write_ambiguous_var): Replace SYMBOL_SET_LINKAGE_NAME
1254 with sym->set_linkage_name.
1255 * coffread.c (coff_read_enum_type): Likewise.
1256 * mdebugread.c (parse_symbol): Likewise.
1257 * stabsread.c (patch_block_stabs): Likewise.
1258 (define_symbol): Likewise.
1259 (read_enum_type): Likewise.
1260 (common_block_end): Likewise.
1261 * symtab.h (struct general_symbol_info) <set_linkage_name>: New
1262 function.
1263 (SYMBOL_SET_LINKAGE_NAME): Remove.
1264 * xcoffread.c (process_xcoff_symbol): Replace SYMBOL_SET_LINKAGE_NAME
1265 with sym->set_linkage_name.
1266
db5960b4
AB
12672019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
1268
1269 * mi/mi-cmds.c (mi_cmds): Add 'symbol-info-modules' entry.
1270 * mi/mi-cmds.h (mi_cmd_symbol_info_modules): Declare.
1271 * mi/mi-symbol-cmds.c (mi_cmd_symbol_info_modules): New function.
1272 * NEWS: Mention new MI command.
1273
7dc42066
AB
12742019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
1275
1276 * mi/mi-cmds.c (mi_cmds): Add '-symbol-info-functions',
1277 '-symbol-info-types', and '-symbol-info-variables'.
1278 * mi/mi-cmds.h (mi_cmd_symbol_info_functions): Declare.
1279 (mi_cmd_symbol_info_types): Declare.
1280 (mi_cmd_symbol_info_variables): Declare.
1281 * mi/mi-symbol-cmds.c: Add 'source.h' and 'mi-getopt.h' includes.
1282 (output_debug_symbol): New function.
1283 (output_nondebug_symbol): New function.
1284 (mi_symbol_info): New function.
1285 (mi_info_functions_or_variables): New function.
1286 (mi_cmd_symbol_info_functions): New function.
1287 (mi_cmd_symbol_info_types): New function.
1288 (mi_cmd_symbol_info_variables): New function.
1289 * NEWS: Mention new commands.
1290
5f512a7d
AB
12912019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
1292
1293 * symtab.c (symbol_to_info_string): New function, most content
1294 moved from print_symbol_info, but updated to return a std::string.
1295 (print_symbol_info): Update to use symbol_to_info_string and print
1296 returned string.
1297 * symtab.h (symbol_to_info_string): Declare new function.
1298
470c0b1c
AB
12992019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
1300
1301 * python/python.c (gdbpy_rbreak): Convert to using
1302 global_symbol_searcher.
1303 * symtab.c (file_matches): Convert return type to bool, change
1304 file list to std::vector, update header comment.
1305 (search_symbols): Rename to...
1306 (global_symbol_searcher::search): ...this and update now its
1307 a member function of global_symbol_searcher. Take account of the
1308 changes to file_matches.
1309 (symtab_symbol_info): Convert to using global_symbol_searcher.
1310 (rbreak_command): Likewise.
1311 (search_module_symbols): Likewise.
1312 * symtab.h (enum symbol_search): Update comment.
1313 (search_symbols): Remove declaration.
1314 (class global_symbol_searcher): New class.
1315
57357d9d
TT
13162019-11-26 Tom Tromey <tromey@adacore.com>
1317
1318 * cp-support.c (_initialize_cp_support): Conditionally initialize
1319 gdb_demangle_attempt_core_dump.
1320
3ea16160
TT
13212019-11-26 Tom Tromey <tom@tromey.com>
1322
1323 * python/py-function.c (fnpy_init): Update.
1324 * value.h (add_internal_function): Adjust declaration.
1325 * value.c (function_destroyer): Remove.
1326 (do_add_internal_function): Don't set destroyer or copy name.
1327 (add_internal_function): Take unique_xmalloc_ptr<char> for name.
1328 Set name_allocated.
1329 * python/py-cmd.c (cmdpy_destroyer): Don't free "name".
1330 (cmdpy_init): Set name_allocated.
1331 * cli/cli-decode.h (struct cmd_list_element) <name_allocated>: New
1332 member.
1333 (~cmd_list_element): Free "name" if needed.
1334
1a6d41c6
TT
13352019-11-26 Tom Tromey <tom@tromey.com>
1336
1337 * value.h (add_internal_function): Add new overload. Move
1338 documentation from value.h.
1339 * value.c (do_add_internal_function): New function.
1340 (add_internal_function): Use it. Add new overload.
1341 (function_destroyer): Don't free doc.
1342 * python/py-function.c (fnpy_init): Update.
1343
8318f3c3
TT
13442019-11-26 Tom Tromey <tom@tromey.com>
1345
1346 * python/py-cmd.c (cmdpy_destroyer): Don't free "doc".
1347 (cmdpy_init): Set "doc_allocated".
1348
4da8c3a8
TT
13492019-11-26 Tom Tromey <tom@tromey.com>
1350
1351 * gdbsupport/thread-pool.c (thread_pool::set_thread_count): Set
1352 name of worker thread.
1353 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for
1354 pthread_setname_np.
1355 * configure, config.in: Rebuild.
1356
971db5e2
TT
13572019-11-26 Tom Tromey <tom@tromey.com>
1358
1359 * python/python.c (class gdbpy_gil): New.
1360 (struct gdbpy_event): Add constructor, destructor, operator().
1361 (gdbpy_post_event): Use run_on_main_thread.
1362 (gdbpy_initialize_events): Remove.
1363 (do_start_initialization): Update.
1364
22138db6
TT
13652019-11-26 Tom Tromey <tom@tromey.com>
1366
1367 * NEWS: Add entry.
1368 * maint.c (_initialize_maint_cmds): Add "worker-threads" maint
1369 commands. Call update_thread_pool_size.
1370 (update_thread_pool_size, maintenance_set_worker_threads): New
1371 functions.
1372 (n_worker_threads): New global.
1373
d55c9a68
TT
13742019-11-26 Christian Biesinger <cbiesinger@google.com>
1375 Tom Tromey <tom@tromey.com>
1376
1377 * minsyms.c (minimal_symbol_reader::install): Use
1378 parallel_for_each.
1379 * gdbsupport/parallel-for.h: New file.
1380 * Makefile.in (HFILES_NO_SRCDIR): Add gdbsupport/parallel-for.h.
1381
a0b57563
CB
13822019-11-26 Christian Biesinger <cbiesinger@google.com>
1383 Tom Tromey <tom@tromey.com>
1384
1385 * gdbsupport/thread-pool.h: New file.
1386 * gdbsupport/thread-pool.c: New file.
1387 * Makefile.in (COMMON_SFILES): Add thread-pool.c.
1388 (HFILES_NO_SRCDIR): Add thread-pool.h.
1389
3b3978bc
TT
13902019-11-26 Tom Tromey <tom@tromey.com>
1391
1392 * event-top.h (thread_local_segv_handler): Declare.
1393 * event-top.c (thread_local_segv_handler): New global.
1394 (install_handle_sigsegv, handle_sigsegv): New functions.
1395 (async_init_signals): Install SIGSEGV handler.
1396 * cp-support.c (gdb_demangle_jmp_buf): Change type. Now
1397 thread-local.
1398 (report_failed_demangle): New function.
1399 (gdb_demangle): Make core_dump_allowed atomic. Remove signal
1400 handler-setting code, instead use segv_handler. Run warning code
1401 on main thread.
1402
9411c49e
TT
14032019-11-26 Tom Tromey <tom@tromey.com>
1404
1405 * run-on-main-thread.c: New file.
1406 * run-on-main-thread.h: New file.
1407 * unittests/main-thread-selftests.c: New file.
1408 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1409 main-thread-selftests.c.
1410 (HFILES_NO_SRCDIR): Add run-on-main-thread.h.
1411 (COMMON_SFILES): Add run-on-main-thread.c.
1412
c3efb965
TT
14132019-11-26 Tom Tromey <tom@tromey.com>
1414
1415 * main.c (setup_alternate_signal_stack): Remove.
1416 (captured_main_1): Use gdb::alternate_signal_stack.
1417 * gdbsupport/alt-stack.h: New file.
1418
21987b9c
TT
14192019-11-26 Tom Tromey <tom@tromey.com>
1420
1421 * gdbsupport/signals-state-save-restore.c (original_signal_mask):
1422 Remove comment.
1423 (save_original_signals_state, restore_original_signals_state): Use
1424 gdb_sigmask.
1425 * linux-nat.c (block_child_signals, restore_child_signals_mask)
1426 (_initialize_linux_nat): Use gdb_sigmask.
1427 * guile/guile.c (_initialize_guile): Use block_signals.
1428 * Makefile.in (HFILES_NO_SRCDIR): Add gdb-sigmask.h.
1429 * gdbsupport/gdb-sigmask.h: New file.
1430 * event-top.c (async_sigtstp_handler): Use gdb_sigmask.
1431 * cp-support.c (gdb_demangle): Use gdb_sigmask.
1432 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for
1433 pthread_sigmask.
1434 * configure, config.in: Rebuild.
1435 * gdbsupport/block-signals.h: New file.
1436
5e030278
TT
14372019-11-26 Tom Tromey <tom@tromey.com>
1438
1439 * acinclude.m4: Include ax_pthread.m4.
1440 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
1441 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
1442 (CLIBS): Use PTHREAD_LIBS.
1443 (aclocal_m4_deps): Add ax_pthread.m4.
1444 * config.in, configure: Rebuild.
1445 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for std::thread.
1446
5a79c107
TT
14472019-11-26 Tom Tromey <tom@tromey.com>
1448
1449 * symtab.h (struct minimal_symbol) <name_set>: New member.
1450 * minsyms.c (minimal_symbol_reader::record_full): Copy name.
1451 Don't call symbol_set_names.
1452 (minimal_symbol_reader::install): Call symbol_set_names.
1453
aa369509
PW
14542019-11-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1455
1456 * python/python.c (gdbpy_enter::~gdbpy_enter): Release GIL after
1457 restore_active_ext_lang, as GIL is needed for (indirectly)
1458 called PyOS_InterruptOccurred.
1459
cadc9cb8
SM
14602019-11-26 Simon Marchi <simon.marchi@efficios.com>
1461
1462 * sparc-nat.c (sparc_xfer_wcookie): Sync declaration with
1463 definition.
1464
d04afd58
SM
14652019-11-26 Simon Marchi <simon.marchi@efficios.com>
1466
1467 * remote-sim.c (simulator_command): Make static, remove
1468 declaration.
1469
dd694d77
SM
14702019-11-26 Simon Marchi <simon.marchi@efficios.com>
1471
1472 * unittests/array-view-selftests.c (check_ptr_size_ctor2): Make
1473 static.
1474 * unittests/basic_string_view/capacity/1.cc (test01): Likewise.
1475 * unittests/basic_string_view/cons/char/1.cc (test01): Likewise.
1476 (main): Likewise.
1477 * unittests/basic_string_view/cons/char/2.cc (test03): Likewise.
1478 (main): Likewise.
1479 * unittests/basic_string_view/cons/char/3.cc (test05): Likewise.
1480 (main): Likewise.
1481 * unittests/basic_string_view/element_access/char/1.cc (test01):
1482 Likewise.
1483 (main): Likewise.
1484 * unittests/basic_string_view/element_access/char/empty.cc (main):
1485 Likewise.
1486 * unittests/basic_string_view/element_access/char/front_back.cc
1487 (test01): Likewise.
1488 (main): Likewise.
1489 * unittests/basic_string_view/inserters/char/2.cc (test05):
1490 Likewise.
1491 (main): Likewise.
1492 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc
1493 (test01): Likewise.
1494 (main): Likewise.
1495 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc
1496 (test01): Likewise.
1497 (main): Likewise.
1498 * unittests/basic_string_view/modifiers/swap/char/1.cc (test01):
1499 Likewise.
1500 * unittests/basic_string_view/operations/compare/char/1.cc
1501 (test01): Likewise.
1502 (main): Likewise.
1503 * unittests/basic_string_view/operations/compare/char/13650.cc
1504 (test01): Likewise.
1505 * unittests/basic_string_view/operations/copy/char/1.cc (test01):
1506 Likewise.
1507 (main): Likewise.
1508 * unittests/basic_string_view/operations/data/char/1.cc (test01):
1509 Likewise.
1510 (main): Likewise.
1511 * unittests/basic_string_view/operations/find/char/1.cc (test01):
1512 Likewise.
1513 (main): Likewise.
1514 * unittests/basic_string_view/operations/find/char/2.cc (test02):
1515 Likewise.
1516 (main): Likewise.
1517 * unittests/basic_string_view/operations/find/char/3.cc (test03):
1518 Likewise.
1519 (main): Likewise.
1520 * unittests/basic_string_view/operations/find/char/4.cc (main):
1521 Likewise.
1522 * unittests/basic_string_view/operations/rfind/char/1.cc (test01):
1523 Likewise.
1524 (main): Likewise.
1525 * unittests/basic_string_view/operations/rfind/char/2.cc (test02):
1526 Likewise.
1527 (main): Likewise.
1528 * unittests/basic_string_view/operations/rfind/char/3.cc (test03):
1529 Likewise.
1530 (main): Likewise.
1531 * unittests/basic_string_view/operations/substr/char/1.cc
1532 (test01): Likewise.
1533 (main): Likewise.
1534 * unittests/basic_string_view/operators/char/2.cc (main):
1535 Likewise.
1536 * unittests/optional/assignment/1.cc (test): Likewise.
1537 * unittests/optional/assignment/2.cc (test): Likewise.
1538 * unittests/optional/assignment/3.cc (test): Likewise.
1539 * unittests/optional/assignment/4.cc (test): Likewise.
1540 * unittests/optional/assignment/5.cc (test): Likewise.
1541 * unittests/optional/assignment/6.cc (test): Likewise.
1542 * unittests/optional/assignment/7.cc (test): Likewise.
1543 * unittests/optional/cons/copy.cc (test): Likewise.
1544 * unittests/optional/cons/default.cc (test): Likewise.
1545 * unittests/optional/cons/move.cc (test): Likewise.
1546 * unittests/optional/cons/value.cc (test): Likewise.
1547 * unittests/optional/in_place.cc (test): Likewise.
1548 * unittests/optional/observers/1.cc (test): Likewise.
1549 * unittests/optional/observers/2.cc (test): Likewise.
1550
3b5c1d49
SM
15512019-11-26 Simon Marchi <simon.marchi@efficios.com>
1552
1553 * tui-win.h (tui_set_var_cmd): Remove.
1554 * tui-win.c (tui_set_var_cmd): Make static.
1555
adce99fe
SM
15562019-11-26 Simon Marchi <simon.marchi@efficios.com>
1557
1558 * breakpoint.h (hbreak_command_wrapper, thbreak_command_wrapper,
1559 rbreak_command_wrapper): Remove.
1560 * symtab.c (rbreak_command_wrapper): Remove.
1561
fe3adccf
SM
15622019-11-26 Simon Marchi <simon.marchi@efficios.com>
1563
1564 * inferior.h (info_terminal_command): Remove declaration.
1565 * inflow.c (info_terminal_command): Make static.
1566
b926335f
SM
15672019-11-26 Simon Marchi <simon.marchi@efficios.com>
1568
1569 * inferior.c (exit_inferior_silent): Remove.
1570
b62f6f54
SM
15712019-11-26 Simon Marchi <simon.marchi@efficios.com>
1572
1573 * dictionary.c (dict_empty, mdict_empty): Remove.
1574 * dictionary.c (mdict_empty): Remove.
1575
cb8c24b6
SM
15762019-11-26 Simon Marchi <simon.marchi@efficios.com>
1577
1578 * arc-tdep.c (arc_insn_get_memory_base_reg): Make static.
1579 (arc_insn_get_memory_offset): Likewise.
1580 (arc_insn_dump): Likewise.
1581 * cp-support.c (test_cp_symbol_name_matches): Likewise.
1582 * csky-linux-tdep.c (csky_supply_fregset): Likewise.
1583 * dictionary.c (dict_iterator_next): Likewise.
1584 (dict_iter_match_first): Likewise.
1585 (dict_iter_match_next): Likewise.
1586 * f-lang.c (evaluate_subexp_f): Likewise.
1587 * hppa-tdep.c (hppa_read_pc): Likewise.
1588 * i386-tdep.c (i386_floatformat_for_type): Likewise.
1589 * parse.c (write_exp_elt_msym): Likewise.
1590 * ppc-linux-tdep.c (ppc_floatformat_for_type): Likewise.
1591 * remote.c (remote_packet_size): Likewise.
1592 (remote_notif_stop_parse): Likewise.
1593 * rs6000-aix-tdep.c (aix_sighandle_frame_sniffer): Likewise.
1594 * s12z-tdep.c (s12z_disassemble_info): Likewise.
1595 * source.c (prepare_path_for_appending): Likewise.
1596 * sparc64-linux-tdep.c
1597 (sparc64_linux_handle_segmentation_fault); Likewise.
1598 * stack.c (frame_selection_by_function_completer): Likewise.
1599
781597ff
SM
16002019-11-26 Simon Marchi <simon.marchi@efficios.com>
1601
1602 * completer.c (set_gdb_completion_word_break_characters):
1603 Remove.
1604
23baa4cc
SM
16052019-11-26 Simon Marchi <simon.marchi@efficios.com>
1606
1607 * dwarf-index-write.c: Include dwarf-index-write.h.
1608 * mi/mi-interp.c: Include mi/mi-interp.h.
1609
23767560
SM
16102019-11-26 Simon Marchi <simon.marchi@efficios.com>
1611
1612 * aarch32-tdep.c: Include aarch32-tdep.h.
1613 * aarch32-tdep.h: Forward-declare struct target_desc.
1614
6d91ce9a
CB
16152019-11-26 Christian Biesinger <cbiesinger@google.com>
1616
1617 * linux-nat.c (detach_one_lwp): Call safe_strerror instead of
1618 strerror.
1619 * nto-procfs.c (nto_procfs_target::create_inferior): Likewise.
1620 * windows-nat.c (windows_nat_target::create_inferior): Likewise.
1621
3cf2f237
TV
16222019-11-25 Tom de Vries <tdevries@suse.de>
1623
1624 * contrib/words.sh: Add -c option.
1625
5b89c67a
CB
16262019-11-25 Christian Biesinger <cbiesinger@google.com>
1627
1628 * solib.c (solib_find_1): Change int to bool.
1629 (exec_file_find): Change int to bool.
1630 (solib_find): Change int to bool.
1631 (solib_read_symbols): Change int to bool.
1632 (solib_used): Change int to bool.
1633 (solib_add): Change int to bool.
1634 (info_sharedlibrary_command): Change int to bool.
1635 (solib_contains_address_p): Change int to bool.
1636 (solib_keep_data_in_core): Change int to bool.
1637 (in_solib_dynsym_resolve_code): Change int to bool.
1638 (reload_shared_libraries_1): Change int to bool.
1639 (gdb_sysroot_changed): Change int to bool.
1640 * solib.h (solib_read_symbols): Change int to bool.
1641 (solib_contains_address_p): Change int to bool.
1642 (solib_keep_data_in_core): Change int to bool.
1643 (in_solib_dynsym_resolve_code): Change int to bool.
1644 (libpthread_name_p): Change int to bool.
1645
6cc8564b
LM
16462019-11-25 Luis Machado <luis.machado@linaro.org>
1647
1648 * NEWS (New Commands): Mention "set debug remote-packet-max-chars".
1649 * remote.c (REMOTE_DEBUG_MAX_CHAR): Remove.
1650 (remote_packet_max_chars): New static global.
1651 (show_remote_packet_max_chars): New function.
1652 (remote_target::putpkt_binary): Adjust to use new
1653 remote_packet_max_chars option.
1654 (remote_target::getpkt_or_notif_sane_1): Likewise.
1655 (_initialize_remote): Register new remote-packet-max-chars option.
1656
a7cdaa91
SM
16572019-11-24 Simon Marchi <simon.marchi@efficios.com>
1658
1659 * m68k-linux-nat.c: Include gdbarch.h.
1660
26abc753
TT
16612019-11-24 Tom Tromey <tom@tromey.com>
1662
1663 * symfile.c (read_symbols): Update.
1664 * psymtab.c (require_partial_symbols): Change type of "verbose" to
1665 bool.
1666 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
1667 (psym_lookup_symbol, psym_find_last_source_symtab)
1668 (psym_forget_cached_source_info, psym_print_stats)
1669 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
1670 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
1671 (psym_map_matching_symbols, psym_expand_symtabs_matching)
1672 (psym_find_compunit_symtab_by_address)
1673 (maintenance_print_psymbols, maintenance_info_psymtabs)
1674 (maintenance_check_psymtabs): Update.
1675 * psymtab.h (require_partial_symbols): Change type of "verbose" to
1676 bool.
1677
012fc909
TT
16782019-11-22 Tom Tromey <tom@tromey.com>
1679
1680 * observable.h: Update comments.
1681
c83d8d32
TT
16822019-11-22 Tom Tromey <tromey@adacore.com>
1683
1684 * ada-tasks.c (ada_task_is_alive): Make parameter const.
1685 (print_ada_task_info): Don't try to fetch thread id if task is not
1686 alive.
1687
987012b8
CB
16882019-11-22 Christian Biesinger <cbiesinger@google.com>
1689
1690 * ada-exp.y: Update.
1691 * ada-lang.c (sort_choices): Update.
1692 (ada_print_symbol_signature): Update.
1693 (resolve_subexp): Update.
1694 (ada_parse_renaming): Update.
1695 (ada_read_renaming_var_value): Update.
1696 (lesseq_defined_than): Update.
1697 (remove_extra_symbols): Update.
1698 (remove_irrelevant_renamings): Update.
1699 (ada_add_block_symbols): Update.
1700 (ada_collect_symbol_completion_matches): Update.
1701 (ada_is_renaming_symbol): Update.
1702 (aggregate_assign_from_choices): Update.
1703 (ada_evaluate_subexp): Update.
1704 (ada_has_this_exception_support): Update.
1705 (ada_is_non_standard_exception_sym): Update.
1706 (ada_add_exceptions_from_frame): Update.
1707 (ada_add_global_exceptions): Update.
1708 (ada_print_subexp): Update.
1709 * ax-gdb.c (gen_var_ref): Update.
1710 (gen_maybe_namespace_elt): Update.
1711 (gen_expr_for_cast): Update.
1712 (gen_expr): Update.
1713 * block.h: Update.
1714 * blockframe.c (find_pc_partial_function): Update.
1715 * breakpoint.c (print_breakpoint_location): Update.
1716 (update_static_tracepoint): Update.
1717 * btrace.c (ftrace_print_function_name): Update.
1718 (ftrace_function_switched): Update.
1719 * buildsym.c (find_symbol_in_list): Update.
1720 * c-exp.y: Update.
1721 * c-typeprint.c (c_print_typedef): Update.
1722 (c_type_print_template_args): Update.
1723 * cli/cli-cmds.c (edit_command): Update.
1724 (list_command): Update.
1725 (print_sal_location): Update.
1726 * coffread.c (patch_opaque_types): Update.
1727 (process_coff_symbol): Update.
1728 (coff_read_enum_type): Update.
1729 * compile/compile-c-symbols.c (c_symbol_substitution_name): Update.
1730 (convert_one_symbol): Update.
1731 (hash_symname): Update.
1732 (eq_symname): Update.
1733 * compile/compile-cplus-symbols.c (convert_one_symbol): Update.
1734 * compile/compile-cplus-types.c (debug_print_scope): Update.
1735 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
1736 * compile/compile-object-load.c (get_out_value_type): Update.
1737 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
1738 (search_symbol_list): Update.
1739 (cp_lookup_symbol_imports_or_template): Update.
1740 * cp-support.c (overload_list_add_symbol): Update.
1741 * ctfread.c (psymtab_to_symtab): Update.
1742 * dbxread.c (cp_set_block_scope): Update.
1743 * dictionary.c (iter_match_first_hashed): Update.
1744 (iter_match_next_hashed): Update.
1745 (insert_symbol_hashed): Update.
1746 (iter_match_next_linear): Update.
1747 * dictionary.h: Update.
1748 * dwarf2loc.c (func_get_frame_base_dwarf_block): Update.
1749 (locexpr_describe_location_piece): Update.
1750 (locexpr_describe_location_1): Update.
1751 (locexpr_generate_c_location): Update.
1752 (loclist_describe_location): Update.
1753 (loclist_generate_c_location): Update.
1754 * dwarf2read.c (dw2_debug_names_lookup_symbol): Update.
1755 (read_func_scope): Update.
1756 (process_enumeration_scope): Update.
1757 (new_symbol): Update.
1758 (dwarf2_const_value): Update.
1759 (dwarf2_symbol_mark_computed): Update.
1760 * eval.c (evaluate_funcall): Update.
1761 (evaluate_subexp_standard): Update.
1762 * expprint.c (print_subexp_standard): Update.
1763 (dump_subexp_body_standard): Update.
1764 * f-valprint.c (info_common_command_for_block): Update.
1765 * findvar.c (get_hosting_frame): Update.
1766 (default_read_var_value): Update.
1767 * go-lang.c (go_symbol_package_name): Update.
1768 * guile/scm-block.c (bkscm_print_block_smob): Update.
1769 * guile/scm-symbol.c (syscm_print_symbol_smob): Update.
1770 (gdbscm_symbol_name): Update.
1771 (gdbscm_symbol_linkage_name): Update.
1772 (gdbscm_symbol_print_name): Update.
1773 * infcall.c (get_function_name): Update.
1774 * infcmd.c (jump_command): Update.
1775 (finish_command): Update.
1776 * infrun.c (insert_exception_resume_breakpoint): Update.
1777 * linespec.c (canonicalize_linespec): Update.
1778 (create_sals_line_offset): Update.
1779 (convert_linespec_to_sals): Update.
1780 (complete_label): Update.
1781 (find_label_symbols_in_block): Update.
1782 * m2-typeprint.c (m2_print_typedef): Update.
1783 * mdebugread.c (mdebug_reg_to_regnum): Update.
1784 (parse_symbol): Update.
1785 (mylookup_symbol): Update.
1786 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
1787 (list_args_or_locals): Update.
1788 * objc-lang.c (compare_selectors): Update.
1789 (info_selectors_command): Update.
1790 (compare_classes): Update.
1791 (info_classes_command): Update.
1792 (find_imps): Update.
1793 * p-typeprint.c (pascal_print_typedef): Update.
1794 * printcmd.c (build_address_symbolic): Update.
1795 (info_address_command): Update.
1796 (print_variable_and_value): Update.
1797 * python/py-framefilter.c (extract_sym): Update.
1798 (py_print_single_arg): Update.
1799 * python/py-symbol.c (sympy_str): Update.
1800 (sympy_get_name): Update.
1801 (sympy_get_linkage_name): Update.
1802 * python/python.c (gdbpy_rbreak): Update.
1803 * record-btrace.c (btrace_get_bfun_name): Update.
1804 (btrace_call_history): Update.
1805 * rust-lang.c (rust_print_typedef): Update.
1806 * solib-frv.c (frv_fdpic_find_canonical_descriptor): Update.
1807 * stabsread.c (stab_reg_to_regnum): Update.
1808 (define_symbol): Update.
1809 (read_enum_type): Update.
1810 (common_block_end): Update.
1811 (cleanup_undefined_types_1): Update.
1812 (scan_file_globals): Update.
1813 * stack.c (print_frame_arg): Update.
1814 (print_frame_args): Update.
1815 (find_frame_funname): Update.
1816 (info_frame_command_core): Update.
1817 (iterate_over_block_locals): Update.
1818 (print_block_frame_labels): Update.
1819 (do_print_variable_and_value): Update.
1820 (iterate_over_block_arg_vars): Update.
1821 (return_command): Update.
1822 * symmisc.c (dump_symtab_1): Update.
1823 (print_symbol): Update.
1824 * symtab.c (eq_symbol_entry): Update.
1825 (symbol_cache_dump): Update.
1826 (lookup_language_this): Update.
1827 (find_pc_sect_line): Update.
1828 (skip_prologue_sal): Update.
1829 (symbol_search::compare_search_syms): Update.
1830 (treg_matches_sym_type_name): Update.
1831 (search_symbols): Update.
1832 (print_symbol_info): Update.
1833 (rbreak_command): Update.
1834 (completion_list_add_symbol): Update.
1835 (find_gnu_ifunc): Update.
1836 (get_symbol_address): Update.
1837 (search_module_symbols): Update.
1838 (info_module_subcommand): Update.
1839 * symtab.h (SYMBOL_NATURAL_NAME): Remove.
1840 (SYMBOL_LINKAGE_NAME): Remove.
1841 (SYMBOL_DEMANGLED_NAME): Remove.
1842 (SYMBOL_PRINT_NAME): Remove.
1843 (SYMBOL_SEARCH_NAME): Remove.
1844 * tracepoint.c (set_traceframe_context): Update.
1845 (validate_actionline): Update.
1846 (collection_list::collect_symbol): Update.
1847 (encode_actions_1): Update.
1848 (info_scope_command): Update.
1849 (print_one_static_tracepoint_marker): Update.
1850 * typeprint.c (typedef_hash_table::add_template_parameters): Update.
1851 * valops.c (address_of_variable): Update.
1852 (find_overload_match): Update.
1853 (find_oload_champ): Update.
1854
c9d95fa3
CB
18552019-11-22 Christian Biesinger <cbiesinger@google.com>
1856
1857 * ada-lang.c (ada_lookup_simple_minsym): Update.
1858 (ada_collect_symbol_completion_matches): Update.
1859 * ada-tasks.c (read_atcb): Update.
1860 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
1861 (amd64_windows_skip_trampoline_code): Update.
1862 * arm-tdep.c (skip_prologue_function): Update.
1863 (arm_skip_stack_protector): Update.
1864 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
1865 (arm_wince_skip_main_prologue): Update.
1866 * ax-gdb.c (gen_expr): Update.
1867 * block.c (call_site_for_pc): Update.
1868 * blockframe.c (find_pc_partial_function): Update.
1869 * breakpoint.c (set_breakpoint_location_function): Update.
1870 * btrace.c (ftrace_print_function_name): Update.
1871 (ftrace_function_switched): Update.
1872 * c-valprint.c (print_unpacked_pointer): Update.
1873 * coffread.c (coff_symfile_read): Update.
1874 * compile/compile-c-symbols.c (convert_symbol_bmsym): Update.
1875 * compile/compile-cplus-symbols.c (convert_symbol_bmsym): Update.
1876 * dwarf-index-write.c (write_psymbols): Update.
1877 * dwarf2loc.c (call_site_to_target_addr): Update.
1878 (func_verify_no_selftailcall): Update.
1879 (tailcall_dump): Update.
1880 (call_site_find_chain_1): Update.
1881 (dwarf_expr_reg_to_entry_parameter): Update.
1882 * elfread.c (elf_gnu_ifunc_record_cache): Update.
1883 * eval.c (evaluate_funcall): Update.
1884 (evaluate_subexp_standard): Update.
1885 (evaluate_subexp_for_sizeof): Update.
1886 * expprint.c (print_subexp_standard): Update.
1887 (dump_subexp_body_standard): Update.
1888 * frame.c (get_prev_frame_always_1): Update.
1889 * frv-tdep.c (frv_skip_main_prologue): Update.
1890 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
1891 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
1892 (gnuv3_get_typename_from_type_info): Update.
1893 (gnuv3_skip_trampoline): Update.
1894 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
1895 * i386-tdep.c (i386_skip_main_prologue): Update.
1896 (i386_pe_skip_trampoline_code): Update.
1897 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
1898 * infcall.c (get_function_name): Update.
1899 * linespec.c (minsym_found): Update.
1900 * linux-fork.c (info_checkpoints_command): Update.
1901 * m32c-tdep.c (m32c_m16c_address_to_pointer): Update.
1902 (m32c_m16c_pointer_to_address): Update.
1903 * maint.c (maintenance_translate_address): Update.
1904 * minsyms.c (add_minsym_to_hash_table): Update.
1905 (add_minsym_to_demangled_hash_table): Update.
1906 (lookup_minimal_symbol_mangled): Update.
1907 (lookup_minimal_symbol_demangled): Update.
1908 (lookup_minimal_symbol_linkage): Update.
1909 (lookup_minimal_symbol_text): Update.
1910 (lookup_minimal_symbol_by_pc_name): Update.
1911 (minimal_symbol_is_less_than): Update.
1912 (compact_minimal_symbols): Update.
1913 (build_minimal_symbol_hash_tables): Update.
1914 (find_solib_trampoline_target): Update.
1915 * mips-tdep.c (mips_stub_frame_sniffer): Update.
1916 (mips_skip_pic_trampoline_code): Update.
1917 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
1918 * objc-lang.c (info_selectors_command): Update.
1919 (info_classes_command): Update.
1920 (find_methods): Update.
1921 (find_imps): Update.
1922 * p-valprint.c (pascal_val_print): Update.
1923 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Update.
1924 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
1925 * printcmd.c (build_address_symbolic): Update.
1926 (info_symbol_command): Update.
1927 * psymtab.c (psymbol_name_matches): Update.
1928 (match_partial_symbol): Update.
1929 (lookup_partial_symbol): Update.
1930 (print_partial_symbols): Update.
1931 (sort_pst_symbols): Update.
1932 (maintenance_check_psymtabs): Update.
1933 * python/py-framefilter.c (py_print_frame): Update.
1934 * python/python.c (gdbpy_rbreak): Update.
1935 * record-btrace.c (btrace_get_bfun_name): Update.
1936 (btrace_call_history): Update.
1937 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
1938 (rs6000_skip_trampoline_code): Update.
1939 * sol-thread.c (info_cb): Update.
1940 * stabsread.c (scan_file_globals): Update.
1941 * stack.c (find_frame_funname): Update.
1942 (info_frame_command_core): Update.
1943 * symmisc.c (dump_msymbols): Update.
1944 * symtab.c (symbol_natural_name): Rename to..,
1945 (general_symbol_info::natural_name): ...this.
1946 (symbol_demangled_name): Rename to...
1947 (general_symbol_info::demangled_name): ...this.
1948 (symbol_search_name): Rename to...
1949 (general_symbol_info::search_name): ...this.
1950 (symbol_matches_search_name): Update.
1951 (find_pc_sect_line): Update.
1952 (skip_prologue_sal): Update.
1953 (search_symbols): Update.
1954 (print_msymbol_info): Update.
1955 (rbreak_command): Update.
1956 (completion_list_add_msymbol): Update.
1957 (completion_list_objc_symbol): Update.
1958 (get_msymbol_address): Update.
1959 * symtab.h (struct general_symbol_info): Add member functions
1960 natural_name (), linkage_name (), print_name (), demangled_name (),
1961 and search_name ().
1962 (SYMBOL_NATURAL_NAME): Update.
1963 (symbol_natural_name): Move to a member function on general_symbol_info.
1964 (SYMBOL_DEMANGLED_NAME): Update.
1965 (symbol_demangled_name): Move to a member function on
1966 general_symbol_info.
1967 (SYMBOL_SEARCH_NAME): Update.
1968 (symbol_search_name): Move to a member function on general_symbol_info.
1969 (MSYMBOL_NATURAL_NAME): Remove.
1970 (MSYMBOL_LINKAGE_NAME): Remove.
1971 (MSYMBOL_PRINT_NAME): Remove.
1972 (MSYMBOL_DEMANGLED_NAME): Remove.
1973 (MSYMBOL_SEARCH_NAME): Remove.
1974 * x86-tdep.c (x86_in_indirect_branch_thunk): Update.
1975
f8bab2d6
CB
19762019-11-22 Christian Biesinger <cbiesinger@google.com>
1977
1978 * symtab.c (create_demangled_names_hash): Use per_bfd->
1979 minimal_symbol_count for computing the initial size, if greater
1980 than our default size.
1981
85e7588d
TV
19822019-11-22 Tom de Vries <tdevries@suse.de>
1983
1984 * contrib/words.sh: Improve words extraction.
1985
f6180073
TV
19862019-11-22 Tom de Vries <tdevries@suse.de>
1987
1988 * contrib/words.sh: Combine sed invocations.
1989
f10ffa41
CB
19902019-11-21 Christian Biesinger <cbiesinger@google.com>
1991
1992 * Makefile.in: Update.
1993 * demangle.c: Rename to...
1994 * gdb-demangle.c: ..this.
1995 (is_cplus_marker): Change return type to bool.
1996 (_initialize_demangler): Rename to...
1997 (_initialize_gdb_demangle): ...this.
1998 * gdb-demangle.h (is_cplus_marker): Change return type to bool.
1999 * symtab.h (demangle): Remove declaration; instead include
2000 gdb-demangle.h.
2001
6ba18521
TT
20022019-11-21 Tom Tromey <tromey@adacore.com>
2003
2004 * gdbsupport/format.c (format_pieces): Parse %I64d.
2005 * unittests/format_pieces-selftests.c (test_windows_formats): New
2006 function.
2007 (run_tests): Call it.
2008
34877895
PJ
20092019-11-21 Peeter Joot <peeter.joot@lzlabs.com>
2010
2011 Byte reverse display of variables with DW_END_big, DW_END_little
2012 (DW_AT_endianity) dwarf attributes if different than the native
2013 byte order.
2014 * ada-lang.c (ada_value_binop):
2015 Use type_byte_order instead of gdbarch_byte_order.
2016 * ada-valprint.c (printstr):
2017 (ada_val_print_string):
2018 * ada-lang.c (value_pointer):
2019 (ada_value_binop):
2020 Use type_byte_order instead of gdbarch_byte_order.
2021 * c-lang.c (c_get_string):
2022 Use type_byte_order instead of gdbarch_byte_order.
2023 * c-valprint.c (c_val_print_array):
2024 Use type_byte_order instead of gdbarch_byte_order.
2025 * cp-valprint.c (cp_print_class_member):
2026 Use type_byte_order instead of gdbarch_byte_order.
2027 * dwarf2loc.c (rw_pieced_value):
2028 Use type_byte_order instead of gdbarch_byte_order.
2029 * dwarf2read.c (read_base_type): Handle DW_END_big,
2030 DW_END_little
2031 * f-lang.c (f_get_encoding):
2032 Use type_byte_order instead of gdbarch_byte_order.
2033 * findvar.c (default_read_var_value):
2034 Use type_byte_order instead of gdbarch_byte_order.
2035 * gdbtypes.c (check_types_equal):
2036 Require matching TYPE_ENDIANITY_NOT_DEFAULT if set.
2037 (recursive_dump_type): Print TYPE_ENDIANITY_BIG,
2038 and TYPE_ENDIANITY_LITTLE if set.
2039 (type_byte_order): new function.
2040 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): New macro.
2041 (struct main_type) <flag_endianity_not_default>:
2042 New field.
2043 (type_byte_order): New function.
2044 * infcmd.c (default_print_one_register_info):
2045 Use type_byte_order instead of gdbarch_byte_order.
2046 * p-lang.c (pascal_printstr):
2047 Use type_byte_order instead of gdbarch_byte_order.
2048 * p-valprint.c (pascal_val_print):
2049 Use type_byte_order instead of gdbarch_byte_order.
2050 * printcmd.c (print_scalar_formatted):
2051 Use type_byte_order instead of gdbarch_byte_order.
2052 * solib-darwin.c (darwin_current_sos):
2053 Use type_byte_order instead of gdbarch_byte_order.
2054 * solib-svr4.c (solib_svr4_r_ldsomap):
2055 Use type_byte_order instead of gdbarch_byte_order.
2056 * stap-probe.c (stap_modify_semaphore):
2057 Use type_byte_order instead of gdbarch_byte_order.
2058 * target-float.c (target_float_same_format_p):
2059 Use type_byte_order instead of gdbarch_byte_order.
2060 * valarith.c (scalar_binop):
2061 (value_bit_index):
2062 Use type_byte_order instead of gdbarch_byte_order.
2063 * valops.c (value_cast):
2064 Use type_byte_order instead of gdbarch_byte_order.
2065 * valprint.c (generic_emit_char):
2066 (generic_printstr):
2067 (val_print_string):
2068 Use type_byte_order instead of gdbarch_byte_order.
2069 * value.c (unpack_long):
2070 (unpack_bits_as_long):
2071 (unpack_value_bitfield):
2072 (modify_field):
2073 (pack_long):
2074 (pack_unsigned_long):
2075 Use type_byte_order instead of gdbarch_byte_order.
2076 * findvar.c (unsigned_pointer_to_address):
2077 (signed_pointer_to_address):
2078 (unsigned_address_to_pointer):
2079 (address_to_signed_pointer):
2080 (default_read_var_value):
2081 (default_value_from_register):
2082 Use type_byte_order instead of gdbarch_byte_order.
2083 * gnu-v3-abi.c (gnuv3_make_method_ptr):
2084 Use type_byte_order instead of gdbarch_byte_order.
2085 * riscv-tdep.c (riscv_print_one_register_info):
2086 Use type_byte_order instead of gdbarch_byte_order.
2087
87fb00ea
SM
20882019-11-21 Simon Marchi <simon.marchi@polymtl.ca>
2089
2090 * top.c (current_ui_gdb_stdout_ptr): Spell out by hand.
2091 (current_ui_gdb_stdin_ptr): Likewise.
2092 (current_ui_gdb_stderr_ptr): Likewise.
2093 (current_ui_gdb_stdlog_ptr): Likewise.
2094 (current_ui_current_uiout_ptr): Likewise.
2095 (gen_ret_current_ui_field_ptr): Remove.
2096
65d1cd5f
TV
20972019-11-21 Tom de Vries <tdevries@suse.de>
2098
2099 PR gdb/24956
2100 * cli/cli-script.c (execute_control_command): Only switch to
2101 INTERP_CONSOLE's ui_out when INTERP_MI is active.
2102
9f6ad286
TT
21032019-11-19 Tom Tromey <tom@tromey.com>
2104
2105 * tui/tui-win.c (tui_partial_win_by_name): Move from tui-data.c.
2106 Now static. Change type of "name".
2107 (tui_set_win_height_command): Don't copy "arg".
2108 * tui/tui-data.h (tui_partial_win_by_name): Don't declare.
2109 * tui/tui-data.c (tui_partial_win_by_name): Move to tui-win.c.
2110
435d3d88
AT
21112019-11-19 Ali Tamur <tamur@google.com>
2112
2113 * dwarf2read.c (dw2_get_file_names_reader): Replace "if (attr)" with
2114 "if (attr != nullptr)".
2115 (dwarf2_find_base_address): Likewise.
2116 (dwarf2_build_include_psymtabs): Likewise.
2117 (read_cutu_die_from_dwo): Likewise.
2118 (read_func_scope): Likewise.
2119 (read_call_site_scope): Likewise.
2120 (dwarf2_get_pc_bounds): Likewise.
2121 (dwarf2_record_block_ranges): Likewise.
2122 (dwarf2_add_field): Likewise.
2123 (dwarf2_add_member_fn): Likewise.
2124 (read_structure_type): Likewise.
2125 (read_enumeration_type): Likewise.
2126 (read_array_type): Likewise.
2127 (read_array_order): Likewise.
2128 (read_set_type): Likewise.
2129 (read_common_block): Likewise.
2130 (read_tag_reference_type): Likewise.
2131 (read_tag_string_type): Likewise.
2132 (read_subroutine_type): Likewise.
2133 (read_base_type): Likewise.
2134 (read_subrange_type): Likewise.
2135 (new_symbol): Likewise.
2136 (prepare_one_comp_unit): Likewise.
2137
c9739b6a
TT
21382019-11-19 Tom Tromey <tromey@adacore.com>
2139
2140 * windows-nat.c (windows_nat_target::attach): Include GetLastError
2141 result in error when DebugActiveProcess fails.
2142
494409bb
SDJ
21432019-11-18 Sergio Durigan Junior <sergiodj@redhat.com>
2144 Pedro Alves <palves@redhat.com>
2145
2146 https://bugzilla.redhat.com/show_bug.cgi?id=1765117
2147 * target.c (target_stack::push): Call 'unpush' if there's a
2148 target on top of the stack.
2149
2e953aca
PW
21502019-11-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2151
2152 * python/py-block.c (blpy_dealloc): Call tp_free.
2153 (blpy_block_syms_dealloc): Likewise.
2154 * python/py-finishbreakpoint.c (bpfinishpy_dealloc): Likewise.
2155 * python/py-inferior.c (infpy_dealloc): Likewise.
2156 * python/py-lazy-string.c (stpy_dealloc): Likewise.
2157 * python/py-linetable.c (ltpy_iterator_dealloc): Likewise.
2158 * python/py-symbol.c (sympy_dealloc): Likewise.
2159 * python/py-symtab.c (stpy_dealloc): Likewise.
2160 * python/py-type.c (typy_iterator_dealloc): Likewise.
2161
6edc43ec
CB
21622019-11-18 Christian Biesinger <cbiesinger@google.com>
2163
2164 * symtab.h (struct symbol) <owner>: Initialize explicitly in the
2165 constructor instead of using a class initializer.
2166
cd850b40
CB
21672019-11-15 Christian Biesinger <cbiesinger@google.com>
2168
2169 * Makefile.in: Replace {posix,mingw}-strerror.c with safe-strerror.c.
2170 * configure: Regenerate.
2171 * configure.ac: Don't source common.host.
2172 * gdbsupport/common.host: Remove.
2173 * gdbsupport/mingw-strerror.c: Remove.
2174 * gdbsupport/posix-strerror.c: Rename to...
2175 * gdbsupport/safe-strerror.c: ...this.
2176
53fea9c7
CB
21772019-11-15 Christian Biesinger <cbiesinger@google.com>
2178
2179 * maint.c (scoped_command_stats::print_time): Use localtime_r
2180 instead of localtime (provided through gnulib if necessary).
2181 * nat/linux-osdata.c (time_from_time_t): Use ctime_r instead
2182 of ctime.
2183
f8e27d88
CB
21842019-11-15 Christian Biesinger <cbiesinger@google.com>
2185
2186 * gdbsupport/common-defs.h: Include time.h before pathmax.h to
2187 avoid compile errors.
2188
5abebf3c
CB
21892019-11-15 Christian Biesinger <cbiesinger@google.com>
2190
2191 * config.in: Regenerate.
2192 * configure: Regenerate.
2193 * gdbsupport/common.m4: No longer check for strerror_r.
2194 * gdbsupport/posix-strerror.c (safe_strerror): Always call the
2195 POSIX version of strerror_r, now that gnulib provides it if
2196 necessary.
2197
9a351667
CB
21982019-11-14 Christian Biesinger <cbiesinger@google.com>
2199
2200 * README (`configure' options): Update.
2201
55708e99
TT
22022019-11-14 Tom Tromey <tromey@adacore.com>
2203
2204 * eval.c (evaluate_subexp_standard) <BINOP_ASSIGN>: Do not pass an
2205 expected type for the RHS if the LHS is a convenience variable.
2206
4b09bb2e
SM
22072019-11-14 Simon Marchi <simon.marchi@polymtl.ca>
2208
2209 * unittests/vec-utils-selftests.c (unordered_remove_tests::obj):
2210 Provide explicit default and copy constructor.
2211
bd454f8b
PW
22122019-11-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2213
2214 * python/py-finishbreakpoint.c (gdbpy_breakpoint_created):
2215 only call Py_INCREF (newbp) in the bppy_pending_object case.
2216
d1aa3cf0
TT
22172019-11-13 Tom Tromey <tromey@adacore.com>
2218
2219 PR build/25182:
2220 * psympriv.h (partial_symbol): Remove static assert.
2221 * symtab.h (general_symbol_info, symbol): Remove static assert.
2222
e06f3d6e
AB
22232019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
2224
2225 * gdbsupport/format.c (format_pieces::format_pieces): Support
2226 printf 'z' size modifier.
2227 * gdbsupport/format.h (enum argclass): Add size_t_arg.
2228 * printcmd.c (ui_printf): Handle size_t_arg.
2229 * ui-out.c (ui_out::vmessage): Likewise.
2230 * unittests/format_pieces-selftests.c (test_format_int_sizes): New
2231 function.
2232 (run_tests): Call test_format_int_sizes.
2233
468c0cbb
CB
22342019-11-12 Christian Biesinger <cbiesinger@google.com>
2235
2236 * ada-exp.y (write_ambiguous_var): Update.
2237 * buildsym.c (add_symbol_to_list): Update.
2238 * dwarf2read.c (read_variable): Update.
2239 (new_symbol): Update.
2240 * jit.c (finalize_symtab): Update.
2241 * language.c (language_alloc_type_symbol): Update.
2242 * symtab.c (fixup_symbol_section): Update.
2243 (initialize_objfile_symbol_1): Move code to...
2244 (initialize_objfile_symbol): ...here. Remove now-unnecessary memset.
2245 (allocate_symbol): Update.
2246 (allocate_template_symbol): Update.
2247 (get_symbol_address): Update.
2248 * symtab.h (struct symbol): Inherit from general_symbol_info instead
2249 of having as a field, and add a constructor.
2250 (SYMBOL_VALUE): Update.
2251 (SYMBOL_VALUE_ADDRESS): Update.
2252 (SET_SYMBOL_VALUE_ADDRESS): Update.
2253 (SYMBOL_VALUE_BYTES): Update.
2254 (SYMBOL_VALUE_COMMON_BLOCK): Update.
2255 (SYMBOL_BLOCK_VALUE): Update.
2256 (SYMBOL_VALUE_CHAIN): Update.
2257 (SYMBOL_LANGUAGE): Update.
2258 (SYMBOL_SECTION): Update.
2259 (SYMBOL_OBJ_SECTION): Update.
2260 (SYMBOL_SET_LANGUAGE): Update.
2261 (SYMBOL_SET_LINKAGE_NAME): Update.
2262 (SYMBOL_SET_NAMES): Update.
2263 (SYMBOL_NATURAL_NAME): Update.
2264 (SYMBOL_LINKAGE_NAME): Update.
2265 (SYMBOL_DEMANGLED_NAME): Update.
2266 (SYMBOL_SEARCH_NAME): Update.
2267 (SYMBOL_MATCHES_SEARCH_NAME): Update.
2268 (struct symbol): Update.
2269 (struct template_symbol): Update.
2270 (struct rust_vtable_symbol): Update.
2271 * xcoffread.c (SYMBOL_DUP): Update.
2272
ed2c82c3
TT
22732019-11-12 Tom Tromey <tom@tromey.com>
2274
2275 * tui/tui-layout.c (show_layout): Set current_layout.
2276 (show_source_disasm_command, show_data)
2277 (show_source_or_disasm_and_command): Don't set current_layout.
2278
d9fcefd5
TT
22792019-11-12 Tom Tromey <tom@tromey.com>
2280
2281 * tui/tui-layout.c (_initialize_tui_layout): Move to end.
2282
45e42163
TT
22832019-11-12 Tom Tromey <tom@tromey.com>
2284
2285 * tui/tui-win.c (resize_message): New global.
2286 (show_tui_resize_message): New function.
2287 (tui_async_resize_screen): Print message if requested.
2288 (_initialize_tui_win): Add tui-resize-message setting.
2289 * NEWS: Add entry for new commands.
2290
c86d74cc
TT
22912019-11-11 Tom Tromey <tom@tromey.com>
2292
2293 * tui/tui.c (tui_initialize_readline): Add new bindable readline
2294 functions.
2295
7b7b9424
CB
22962019-11-11 Christian Biesinger <cbiesinger@google.com>
2297
2298 * nat/linux-osdata.c (user_from_uid): Use getpwuid_r.
2299
086baaf1
AB
23002019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
2301
2302 * python/py-symbol.c (gdbpy_lookup_static_symbols): New
2303 function.
2304 * python/python-internal.h (gdbpy_lookup_static_symbols):
2305 Declare new function.
2306 * python/python.c (python_GdbMethods): Add
2307 gdb.lookup_static_symbols method.
2308 * NEWS: Mention gdb.lookup_static_symbols.
2309
09ff83af
AB
23102019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
2311
2312 * python/py-symbol.c (gdbpy_lookup_static_symbol): Lookup in
2313 static block of current object file first. Also fix typo in
2314 header comment.
2315
eb2dd8df
AB
23162019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
2317
2318 * stack.c (set_last_displayed_sal): Delete.
2319 (last_displayed_sal_valid): Delete.
2320 (last_displayed_pspace): Delete.
2321 (last_displayed_addr): Delete.
2322 (last_displayed_symtab): Delete.
2323 (last_displayed_line): Delete.
2324 (class last_displayed_symtab_info_type): New.
2325 (last_displayed_symtab_info): New static global variable.
2326 (print_frame_info): Call methods on last_displayed_symtab_info.
2327 (clear_last_displayed_sal): Update header comment, and make use of
2328 last_displayed_symtab_info.
2329 (last_displayed_sal_is_valid): Likewise.
2330 (get_last_displayed_pspace): Likewise.
2331 (get_last_displayed_addr): Likewise.
2332 (get_last_displayed_symtab): Likewise.
2333 (get_last_displayed_line): Likewise.
2334 (get_last_displayed_sal): Likewise.
2335 * stack.h (clear_last_displayed_sal): Update header comment.
2336 (last_displayed_sal_is_valid): Likewise.
2337 (get_last_displayed_pspace): Likewise.
2338 (get_last_displayed_addr): Likewise.
2339 (get_last_displayed_symtab): Likewise.
2340 (get_last_displayed_line): Likewise.
2341 (get_last_displayed_sal): Likewise.
2342
62137775
AB
23432019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
2344
2345 * stack.c (frame_show_address): Convert return type to bool.
2346 * stack.h (frame_show_address): Likewise, and update header
2347 comment.
2348
cf57ad6d
AB
23492019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
2350
2351 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new file to the list.
2352 * unittests/vec-utils-selftests.c: New file.
2353 * gdbsupport/gdb_vecs.h (unordered_remove): Avoid self move assign.
2354
0b026263
TT
23552019-11-10 Tom Tromey <tom@tromey.com>
2356
2357 * tui/tui-wingeneral.c (tui_unhighlight_win): Use can_box.
2358 (tui_highlight_win): Likewise.
2359 (tui_win_info::check_and_display_highlight_if_needed): Likewise.
2360 * tui/tui-data.h (struct tui_win_info) <can_highlight>: Remove.
2361 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
2362 Don't set can_highlight.
2363
b049ce2d
TT
23642019-11-10 Tom Tromey <tom@tromey.com>
2365
2366 * cli/cli-style.h (class cli_style_option) <cli_style_option>:
2367 Remove unused declaration.
2368
992a7040
TT
23692019-11-08 Tom Tromey <tromey@adacore.com>
2370
2371 * top.c (read_command_file): Update.
2372 (command_line_input): Make return type const.
2373 * python/py-gdb-readline.c: Update.
2374 * linespec.c (decode_line_2): Update.
2375 * defs.h (command_line_input): Make return type const.
2376 * cli/cli-script.c (read_next_line): Make return type const.
2377 * ada-lang.c (get_selections): Update.
2378
ca3a04f6
CB
23792019-11-06 Christian Biesinger <cbiesinger@google.com>
2380
2381 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
2382 * mi/mi-main.c (output_cores): Likewise.
2383 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
2384 (linux_xfer_osdata_modules): Likewise.
2385 * remote.c (register_remote_support_xml): Likewise.
2386 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
2387 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
2388
e0eac551
TT
23892019-11-06 Tom Tromey <tom@tromey.com>
2390
2391 * tui/tui-interp.c: Don't include readline.h.
2392 * tui/tui-hooks.c: Don't include readline.h.
2393 * symmisc.c: Include tilde.h, not readline.h.
2394 * symfile.c: Include tilde.h, not readline.h.
2395 * source.c: Include tilde.h, not readline.h.
2396 * solib.c: Include tilde.h, not readline.h.
2397 * psymtab.c: Include tilde.h, not readline.h.
2398 * exec.c: Include tilde.h, not readline.h.
2399 * corelow.c: Include tilde.h, not readline.h.
2400 * cli/cli-dump.c: Include tilde.h, not readline.h.
2401 * cli/cli-cmds.c: Don't include readline.h.
2402
825165c5
TT
24032019-11-05 Tom Tromey <tom@tromey.com>
2404
2405 * tui/tui-disasm.c (struct tui_asm_line) <addr_size>: New member.
2406 (tui_disassemble): Set addr_size.
2407 (tui_disasm_window::set_contents): Use addr_size.
2408
91ae903f
TT
24092019-11-05 Tom Tromey <tom@tromey.com>
2410
2411 * rust-lang.c (rust_language_defn): Update.
2412 * python/py-value.c (valpy_string): Call c_get_string.
2413 * p-lang.c (pascal_language_defn): Update.
2414 * opencl-lang.c (opencl_language_defn): Update.
2415 * objc-lang.c (objc_language_defn): Update.
2416 * m2-lang.c (m2_language_defn): Update.
2417 * language.c (unknown_language_defn, auto_language_defn): Update.
2418 (default_get_string): Remove.
2419 * guile/scm-value.c (gdbscm_value_to_string): Use c_get_string.
2420 * go-lang.c (go_language_defn): Update.
2421 * f-lang.c (f_language_defn): Update.
2422 * d-lang.c (d_language_defn): Update.
2423 * c-lang.c (c_language_defn, cplus_language_defn)
2424 (asm_language_defn, minimal_language_defn): Update.
2425 * ada-lang.c (ada_language_defn): Update.
2426 * language.h (struct language_defn) <la_get_string>: Remove.
2427 (LA_GET_STRING): Remove.
2428 (default_get_string): Don't declare.
2429
1df2f9ef
TT
24302019-11-05 Tom Tromey <tom@tromey.com>
2431
2432 * tui/tui-source.h (struct tui_source_window): Inline
2433 constructor. Remove destructor.
2434 <style_changed, m_observable>: Move to superclass.
2435 * tui/tui-winsource.h (tui_copy_source_line): Declare.
2436 (struct tui_source_window_base): Move private members to end.
2437 <style_changed, m_observable>: Move from tui_source_window.
2438 * tui/tui-winsource.c (tui_copy_source_line): Move from
2439 tui-source.c. Rename from copy_source_line. Add special handling
2440 for negative line number.
2441 (tui_source_window_base::style_changed): Move from
2442 tui_source_window.
2443 (tui_source_window_base): Register observer.
2444 (~tui_source_window_base): New.
2445 * tui/tui-source.c (copy_source_line): Move to tui-winsource.c;
2446 rename.
2447 (tui_source_window::set_contents): Use tui_copy_source_line.
2448 (tui_source_window::tui_source_window): Move to tui-source.h.
2449 (tui_source_window::~tui_source_window): Remove.
2450 (tui_source_window::style_changed): Move to superclass.
2451 * tui/tui-disasm.c (tui_disassemble): Create string file with
2452 styling, when possible. Add "addr_size" parameter.
2453 (tui_disasm_window::set_contents): Use tui_copy_source_line.
2454 Don't compute maximum size.
2455 (len_without_escapes): New function
2456
5d051055
TT
24572019-11-05 Tom Tromey <tom@tromey.com>
2458
2459 * tui/tui-winsource.h (struct tui_source_element) <line>: Now a
2460 std::string.
2461 * tui/tui-winsource.c (tui_show_source_line): Update.
2462 * tui/tui-source.c (tui_source_window::set_contents): Update.
2463 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
2464
ade7beea
CB
24652019-11-05 Christian Biesinger <cbiesinger@google.com>
2466
2467 * symtab.h (gdb_static_assert): Put && operator at the beginning
2468 of the line instead of the end.
2469
3573abe1
CB
24702019-11-04 Christian Biesinger <cbiesinger@google.com>
2471
2472 * psympriv.h: Add static_asserts for sizeof (general_symbol_info)
2473 and sizeof (symbol).
2474 * symtab.h: Add a static_assert for sizeof (partial_symbol).
2475
dae8b3eb
RO
24762019-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2477
2478 * NEWS (Changes since GDB 8.3): Document Solaris 10 removal.
2479 * configure.host: Mark *-*-solaris2.10* obsolete.
2480 * configure.tgt: Mark Solaris < 11 obsolete.
2481 * MAINTAINERS (Target Instruction Set Architectures) <sparc>:
2482 Update target triplet.
2483
5df96a4e
TT
24842019-11-01 Tom Tromey <tromey@adacore.com>
2485
2486 * utils.c (print_sys_errmsg): Simplify.
2487
b7481649
TT
24882019-11-01 Tom Tromey <tromey@adacore.com>
2489
2490 * gdbsupport/mingw-strerror.c (safe_strerror): Constify result.
2491
e48f6033
CB
24922019-11-01 Christian Biesinger <cbiesinger@google.com>
2493
2494 * configure: Regenerate.
2495 * configure.ac: Remove check for strerror_r.
2496 * gdbsupport/common.m4: Check for strerror_r.
2497
bd5766ec
LM
24982019-11-01 Luis Machado <luis.machado@linaro.org>
2499
2500 PR gdb/25124
2501
2502 * arm-tdep.c (arm_per_objfile): Rename to ...
2503 (arm_per_bfd): ... this.
2504 (arm_objfile_data_key): Rename to ...
2505 (arm_bfd_data_key): ... this.
2506 (arm_find_mapping_symbol): Adjust access to new bfd_key-based
2507 data.
2508 (arm_record_special_symbol): Likewise.
2509
e1709896
AB
25102019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
2511
2512 * ada-typeprint.c (ada_print_typedef): Don't print newline at the
2513 end.
2514 * c-typeprint.c (c_print_typedef): Likewise.
2515 * f-typeprint.c (f_print_typedef): Likewise.
2516 * m2-typeprint.c (m2_print_typedef): Likewise.
2517 * p-typeprint.c (pascal_print_typedef): Likewise.
2518 * rust-lang.c (rust_print_typedef): Likewise.
2519 * symtab.c (print_symbol_info): Print a newline after calling
2520 typedef_print.
2521
165f8965
AB
25222019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
2523
2524 * symtab.c (info_module_cmdlist): New variable.
2525 (info_module_command): New function.
2526 (search_module_symbols): New function.
2527 (info_module_subcommand): New function.
2528 (struct info_modules_var_func_options): New struct.
2529 (info_modules_var_func_options_defs): New variable.
2530 (make_info_modules_var_func_options_def_group): New function.
2531 (info_module_functions_command): New function.
2532 (info_module_variables_command): New function.
2533 (info_module_var_func_command_completer): New function.
2534 (_initialize_symtab): Register new 'info module functions' and
2535 'info module variables' commands.
2536 * symtab.h (typedef symbol_search_in_module): New typedef.
2537 (search_module_symbols): Declare new function.
2538 * NEWS: Mention new commands.
2539
59c35742
AB
25402019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
2541
2542 * dwarf2read.c (dw2_symtab_iter_next): Handle MODULE_DOMAIN.
2543 (dw2_expand_marked_cus): Handle MODULES_DOMAIN.
2544 (dw2_debug_names_iterator::next): Handle MODULE_DOMAIN and
2545 MODULES_DOMAIN.
2546 (scan_partial_symbols): Only create partial module symbols for non
2547 declarations.
2548 * psymtab.c (recursively_search_psymtabs): Handle MODULE_DOMAIN
2549 and MODULES_DOMAIN.
2550 * symtab.c (search_domain_name): Likewise.
2551 (search_symbols): Likewise.
2552 (print_symbol_info): Likewise.
2553 (symtab_symbol_info): Likewise.
2554 (info_modules_command): New function.
2555 (_initialize_symtab): Register 'info modules' command.
2556 * symtab.h (enum search_domain): Add MODULES_DOMAIN.
2557 * NEWS: Mention new 'info modules' command.
2558
aed61d02
PW
25592019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2560
2561 * NEWS: Mention $_gdb_setting, $_gdb_setting_str, $_gdb_maint_setting
2562 and $_gdb_maint_setting_str.
2563
9ad9b77d
PW
25642019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2565
2566 * cli/cli-cmds.c (setting_cmd, value_from_setting)
2567 (gdb_setting_internal_fn, gdb_maint_setting_internal_fn)
2568 (str_value_from_setting, gdb_setting_str_internal_fn)
2569 (gdb_maint_setting_str_internal_fn): New functions.
2570 (_initialize_cli_cmds): Define the new convenience functions.
2571 * gdb/cli/cli-setshow.h (get_setshow_command_value_string): Constify.
2572 * gdb/cli/cli-setshow.c (get_setshow_command_value_string): Constify.
2573
8d6efaa2
CB
25742019-10-31 Christian Biesinger <cbiesinger@google.com>
2575
2576 * agent.c (set_can_use_agent): When the setting is turned on,
2577 look up agent symbols if we don't have them yet.
2578 (agent_new_objfile): Don't look up agent symbols when the agent
2579 setting is off.
2580
33cb1647
CB
25812019-10-31 Christian Biesinger <cbiesinger@google.com>
2582
2583 * config.in: Regenerate.
2584
b231e86a
CB
25852019-10-31 Christian Biesinger <cbiesinger@google.com>
2586
2587 * configure: Regenerate.
2588 * configure.ac: Check for strerror_r.
2589 * gdbsupport/common-utils.h (safe_strerror): Change return value
2590 to const char * and document that this function is now threadsafe.
2591 * gdbsupport/posix-strerror.c (safe_strerror): Make buf
2592 thread_local and call strerror_r, if available.
2593 * utils.c (perror_string): Update.
2594 (print_sys_errmsg): Update.
2595
a2726d4f
LM
25962019-10-31 Luis Machado <luis.machado@linaro.org>
2597
2598 * arm-tdep.c (arm_exidx_data_key): Use bfd_key instead of
2599 objfile_key.
2600 (arm_exidx_new_objfile): Adjust to use objfile->obfd instead of
2601 objfile to fetch per-bfd data.
2602 (arm_find_exidx_entry): Likewise.
2603
75cafaa6
CB
26042019-10-31 Christian Biesinger <cbiesinger@google.com>
2605
2606 * gdbsupport/agent.c (debug_agent): Change type to bool.
2607 (use_agent): Likewise.
2608 (all_agent_symbols_look_up): Likewise.
2609 (agent_loaded_p): Change return value to bool.
2610 (agent_look_up_symbols): Update.
2611 (agent_capability_check): Change return value to bool.
2612 * gdbsupport/agent.h (agent_loaded_p): Likewise.
2613 (debug_agent): Change type to bool.
2614 (use_agent): Likewise.
2615 (agent_capability_check): Change return value to bool.
2616
808590ec
CB
26172019-10-30 Christian Biesinger <cbiesinger@google.com>
2618
2619 * minsyms.c (clear_minimal_symbol_hash_tables): New function.
2620 (build_minimal_symbol_hash_tables): Code to clear the table moved
2621 to clear_minimal_symbol_hash_tables.
2622 (minimal_symbol_reader::install): Call clear_minimal_symbol_hash_tables
2623 when needed.
2624
f18ad8a1
SM
26252019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2626
2627 * infcmd.c: Remove includes.
2628 * infrun.c: Remove includes.
2629
de93309a
SM
26302019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2631
2632 * ada-lang.h (GROW_VECT): Move to ada-lang.c.
2633 (grow_vect): Remove declaration.
2634 (ada_type_of_array): Remove declaration.
2635 (ada_update_initial_language): Remove declaration.
2636 (ada_fold_name): Remove declaration.
2637 (ada_fill_in_ada_prototype): Remove declaration.
2638 (user_select_syms): Remove declaration.
2639 (get_selections): Remove declaration.
2640 (ada_tag_type): Remove declaration.
2641 (ada_value_tag): Remove declaration.
2642 (ada_is_others_clause): Remove declaration.
2643 (ada_in_variant): Remove declaration.
2644 (ada_value_struct_elt): Remove declaration.
2645 (ada_attribute_name): Remove declaration.
2646 (ada_system_address_type): Remove declaration.
2647 * ada-lang.c (ada_watch_location_expression): Make static.
2648 (GROW_VECT): Move here from ada-lang.h.
2649 (grow_vect): Make static.
2650 (ada_update_initial_language): Make static.
2651 (ada_fold_name): Make static.
2652 (ada_type_of_array): Make static.
2653 (encoded_ordered_before): Move up.
2654 (sort_choices): Move up.
2655 (print_signatures): Move up.
2656 (ada_print_symbol_signature): Move up.
2657 (get_selections): Move up and make static.
2658 (user_select_syms): Move up and make static.
2659 (ada_value_struct_elt): Move up and make static.
2660 (ada_tag_type): Make static.
2661 (ada_value_tag): Make static.
2662 (ada_is_others_clause): Make static.
2663 (ada_in_variant): Make static.
2664 (ada_attribute_name): Make static.
2665
cdc46a9f
SM
26662019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2667
2668 * ada-lang.c: Remove includes.
2669 * ada-typeprint.c: Remove includes.
2670 * ada-valprint.c: Remove includes.
2671
90421c56
SM
26722019-10-29 Simon Marchi <simon.marchi@efficios.com>
2673
2674 * addrmap.c: Add static assertions of type size, moved from
2675 _initialize_addrmap.
2676 (_initialize_addrmap): Remove.
2677
31edb802
CB
26782019-10-29 Christian Biesinger <cbiesinger@google.com>
2679
2680 * coffread.c (record_minimal_symbol): Update.
2681 (process_coff_symbol): Update.
2682 * dbxread.c (read_dbx_symtab): Update.
2683 * dwarf2read.c (add_partial_symbol): Update.
2684 (fixup_go_packaging): Update.
2685 (load_partial_dies): Update.
2686 (new_symbol): Update.
2687 * elfread.c (record_minimal_symbol): Change signature to use
2688 gdb::string_view instead of name+len.
2689 (elf_symtab_read): Update.
2690 (elf_rel_plt_read): Update.
2691 * mdebugread.c (parse_partial_symbols): Update.
2692 (handle_psymbol_enumerators): Update.
2693 (new_symbol): Update.
2694 * minsyms.c (minimal_symbol_reader::record_full): Change signature
2695 to use gdb::string_view instead of name+len.
2696 * minsyms.h (class minimal_symbol_reader) <record_full>: Likewise.
2697 * psympriv.h (add_psymbol_to_list): Likewise.
2698 * psymtab.c (add_psymbol_to_bcache): Likewise.
2699 (add_psymbol_to_list): Likewise.
2700 * stabsread.c (define_symbol): Update.
2701 * symtab.c (symbol_set_names): Change signature to use gdb::string_view.
2702 * symtab.h (SYMBOL_SET_NAMES): Likewise.
2703 (symbol_set_names): Likewise.
2704 * xcoffread.c (scan_xcoff_symtab): Update.
2705
0c921b21
CB
27062019-10-29 Christian Biesinger <cbiesinger@google.com>
2707
2708 * symtab.h (symbol_set_names): Document that copy_name must be
2709 set to true for non-nullterminated strings.
2710 * symtab.c (symbol_set_names): Only make a nullterminated copy of
2711 linkage_name if the entry was not found and we need to demangle.
2712
35e65c49
CB
27132019-10-29 Christian Biesinger <cbiesinger@google.com>
2714
2715 * Makefile.in (HFILES_NO_SRCDIR): Add gdb_binary_search.h.
2716 * dwarf2-frame.c (bsearch_fde_cmp): Update.
2717 (dwarf2_frame_find_fde): Replace bsearch with gdb::binary_search.
2718 * gdbsupport/gdb_binary_search.h: New file.
2719
ed2a2229
CB
27202019-10-29 Christian Biesinger <cbiesinger@google.com>
2721
2722 * NEWS: Mention new --with-system-gdbinit-dir option.
2723 * config.in: Regenerate.
2724 * configure: Regenerate.
2725 * configure.ac: Add new option --with-system-gdbinit-dir.
2726 * extension.c (get_ext_lang_of_file): Return extension_language_gdb
2727 for a ".gdb" suffix.
2728 * main.c (get_init_files): Change system_gdbinit argument to
2729 a vector and return the files in SYSTEM_GDBINIT_DIR in
2730 addition to SYSTEM_GDBINIT.
2731 (captured_main_1): Update.
2732 (print_gdb_help): Update.
2733 * top.c (print_gdb_configuration): Also print the value of
2734 SYSTEM_GDBINIT_DIR.
2735
87f34879
CB
27362019-10-28 Christian Biesinger <cbiesinger@google.com>
2737
2738 * gdbsupport/common-utils.h (startswith): Add an overloaded version
2739 that takes gdb::string_view arguments.
2740
30baf67b
TV
27412019-10-26 Tom de Vries <tdevries@suse.de>
2742
2743 * aarch64-linux-tdep.c: Fix typos in comments.
2744 * aarch64-tdep.c: Same.
2745 * ada-lang.c: Same.
2746 * amd64-nat.c: Same.
2747 * arc-tdep.c: Same.
2748 * arch/aarch64-insn.c: Same.
2749 * block.c: Same.
2750 * breakpoint.h: Same.
2751 * btrace.h: Same.
2752 * c-varobj.c: Same.
2753 * cli/cli-decode.c: Same.
2754 * cli/cli-script.c: Same.
2755 * cli/cli-utils.h: Same.
2756 * coff-pe-read.c: Same.
2757 * coffread.c: Same.
2758 * compile/compile-cplus-symbols.c: Same.
2759 * compile/compile-object-run.c: Same.
2760 * completer.c: Same.
2761 * corelow.c: Same.
2762 * cp-support.c: Same.
2763 * demangle.c: Same.
2764 * dwarf-index-write.c: Same.
2765 * dwarf2-frame.c: Same.
2766 * dwarf2-frame.h: Same.
2767 * eval.c: Same.
2768 * frame-base.h: Same.
2769 * frame.h: Same.
2770 * gdbcmd.h: Same.
2771 * gdbtypes.h: Same.
2772 * gnu-nat.c: Same.
2773 * guile/scm-objfile.c: Same.
2774 * i386-tdep.c: Same.
2775 * i386-tdep.h: Same.
2776 * infcall.c: Same.
2777 * infcall.h: Same.
2778 * linux-nat.c: Same.
2779 * m68k-tdep.c: Same.
2780 * macroexp.c: Same.
2781 * memattr.c: Same.
2782 * mi/mi-cmd-disas.c: Same.
2783 * mi/mi-getopt.h: Same.
2784 * mi/mi-main.c: Same.
2785 * minsyms.c: Same.
2786 * nat/aarch64-sve-linux-sigcontext.h: Same.
2787 * objfiles.h: Same.
2788 * ppc-linux-nat.c: Same.
2789 * ppc-linux-tdep.c: Same.
2790 * ppc-tdep.h: Same.
2791 * progspace.h: Same.
2792 * prologue-value.h: Same.
2793 * python/py-evtregistry.c: Same.
2794 * python/py-instruction.h: Same.
2795 * record-btrace.c: Same.
2796 * record-full.c: Same.
2797 * remote.c: Same.
2798 * rs6000-tdep.c: Same.
2799 * ser-tcp.c: Same.
2800 * sol-thread.c: Same.
2801 * sparc-sol2-tdep.c: Same.
2802 * sparc64-tdep.c: Same.
2803 * stabsread.c: Same.
2804 * symfile.c: Same.
2805 * symtab.h: Same.
2806 * target.c: Same.
2807 * tracepoint.c: Same.
2808 * tui/tui-data.h: Same.
2809 * tui/tui-io.c: Same.
2810 * tui/tui-win.c: Same.
2811 * tui/tui.c: Same.
2812 * unittests/rsp-low-selftests.c: Same.
2813 * user-regs.h: Same.
2814 * utils.c: Same.
2815 * utils.h: Same.
2816 * valarith.c: Same.
2817 * valops.c: Same.
2818 * valprint.c: Same.
2819 * valprint.h: Same.
2820 * value.c: Same.
2821 * value.h: Same.
2822 * varobj.c: Same.
2823 * x86-nat.h: Same.
2824 * xtensa-tdep.c: Same.
2825
1834d45f
AT
28262019-10-25 Ali Tamur <tamur@google.com>
2827
2828 * charset.c (find_charset_names): Reflect API change.
2829
5396ae17
CB
28302019-10-25 Christian Biesinger <cbiesinger@google.com>
2831
2832 * symtab.c (struct demangled_name_entry): Change demangled name
2833 to a unique_xmalloc_ptr<char>, now that we don't allocate it as
2834 part of the struct anymore.
2835 (symbol_set_names): No longer obstack allocate + copy the demangled
2836 name, just store the allocated name from bfd.
2837
93878f47
TT
28382019-10-25 Tom Tromey <tromey@adacore.com>
2839
2840 * dwarf2-frame.c (dwarf2_cie_table): Now a typedef.
2841 (bsearch_cie_cmp, add_cie): Remove.
2842 (find_cie): Reimplement.
2843 (decode_frame_entry_1, decode_frame_entry): Change type. Update.
2844 (dwarf2_build_frame_info): Update.
2845
7b71fc97
L
28462019-10-24 H.J. Lu <hongjiu.lu@intel.com>
2847
2848 PR gdb/25126
2849 * symfile.c (reread_symbols): Call forget_cached_source_info to
2850 clear the stale source cache.
2851
cbb5a2ea
CB
28522019-10-24 Christian Biesinger <cbiesinger@google.com>
2853
2854 * configure: Regenerate.
2855 * configure.ac: Remove code that sets python_has_threads.
2856
71737c43
CB
28572019-10-24 Christian Biesinger <cbiesinger@google.com>
2858
2859 * config.in: Regenerate.
2860 * configure: Regenerate.
2861 * configure.ac: Remove the code that uses sed to get the python
2862 version and defines HAVE_LIBPYTHON2_6 / HAVE_LIBPYTHON2_7.
2863
33d569b7
AB
28642019-10-24 Andrew Burgess <andrew.burgess@embecosm.com>
2865
2866 * python/py-progspace.c (pspy_block_for_pc): Return None for all
2867 error paths.
2868
f16f7b7c
TT
28692019-10-23 Tom Tromey <tom@tromey.com>
2870
2871 * arc-tdep.c: Remove ".." from include.
2872 * frv-tdep.c: Remove ".." from include.
2873 * lm32-tdep.c: Remove ".." from include.
2874 * microblaze-tdep.c: Remove ".." from include.
2875 * or1k-tdep.h: Remove ".." from include.
2876 * s12z-tdep.c: Remove ".." from include.
2877 * Makefile.in (OPCODES_CFLAGS): Add comment.
2878 (TOP_CFLAGS): New variable.
2879 (INTERNAL_CFLAGS_BASE): Add TOP_CFLAGS.
2880
6999161a
TT
28812019-10-23 Tom Tromey <tom@tromey.com>
2882
2883 * Makefile.in (READLINE_DIR): Update.
2884
12e7c35e
TBA
28852019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2886
2887 * infcall.c (call_function_by_hand_dummy): Fix the function
2888 comment. And extract out a code section into...
2889 (reserve_stack_space): ...this new function.
2890
37055cad
TBA
28912019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2892
2893 * infcall.c (value_arg_coerce): Remove an unused parameter.
2894 (call_function_by_hand_dummy): Update the call to
2895 'value_arg_coerce'.
2896
39bcc47c
TBA
28972019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2898
2899 * infcall.c (call_function_by_hand_dummy): Refactor.
2900
bd888c0f
TBA
29012019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2902
2903 * MAINTAINERS (Write After Approval): Add Tankut Baris Aktemur.
2904
c12d372d
TT
29052019-10-23 Tom Tromey <tom@tromey.com>
2906
2907 * configure: Rebuild.
2908 * configure.ac: Don't check for sigprocmask.
2909 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for sigprocmask.
2910
4d0b984b
TT
29112019-10-23 Tom Tromey <tom@tromey.com>
2912
2913 * configure: Rebuild.
2914 * acinclude.m4: Use m4_include, not sinclude.
2915
7e785608
TV
29162019-10-23 Tom de Vries <tdevries@suse.de>
2917
2918 PR breakpoints/24687
2919 * symtab.c (iterate_over_some_symtabs): Apply gdb_realpath on fullname.
2920
403772ef
CB
29212019-10-22 Christian Biesinger <cbiesinger@google.com>
2922
2923 * symtab.c (struct demangled_name_entry) <language>: Change from
2924 bitfield to regular variable.
2925
3a494279
CB
29262019-10-22 Christian Biesinger <cbiesinger@google.com>
2927
2928 * symtab.c (struct demangled_name_entry): Add a constructor.
2929 (free_demangled_name_entry): New function to call the destructor
2930 for demangled_name_entry.
2931 (create_demangled_names_hash): Pass free_demangled_name_entry to
2932 htab_create_alloc.
2933 (symbol_set_names): Call placement new for demangled_name_entry.
2934 * utils.c: No longer include xxhash.h here, now that fast_hash
2935 is inlined in the header.
2936 * utils.h: Instead, include it here.
2937
ccb1ba62
CB
29382019-10-22 Christian Biesinger <cbiesinger@google.com>
2939
2940 * Makefile.in: Link with libxxhash.
2941 * config.in: Regenerate.
2942 * configure: Regenerate.
2943 * configure.ac: Search for libxxhash.
2944 * utils.c (fast_hash): Use xxhash if present.
2945
1a6ff1a9
CB
29462019-10-22 Christian Biesinger <cbiesinger@google.com>
2947
2948 * utils.h (fast_hash): New function.
2949 * symtab.c (hash_demangled_name_entry): Call new function
2950 fast_hash.
2951
7bb43059
CB
29522019-10-22 Christian Biesinger <cbiesinger@google.com>
2953
2954 * symtab.c (struct demangled_name_entry): Change type of mangled
2955 to gdb::string_view. Also adds a constructor that takes the
2956 mangled name.
2957 (hash_demangled_name_entry): Update.
2958 (eq_demangled_name_entry): Update.
2959 (free_demangled_name_entry): New function to call the destructor
2960 now that this is not a POD anymore.
2961 (create_demangled_names_hash): Pass free_demangled_name_entry to
2962 htab_create_alloc.
2963 (symbol_set_names): Update.
2964
7ba99d21
AT
29652019-10-21 Ali Tamur <tamu@google.com>
2966
2967 * dwarf2read.c (dir_index): Change type.
2968 (file_name_index): Likewise.
2969 (line_header::include_dir_at): Change comment and implementation on
2970 whether it is DWARF 5.
2971 (line_header::is_valid_file_index): New function.
2972 (line_header::file_name_at): Change comment and implementation on
2973 whether it is DWARF 5.
2974 (line_header::file_names): Change to private field renamed as
2975 m_file_names and introduce a new accessor method.
2976 (line_header::file_names_size): New method.
2977 (line_header::include_dirs): Change to private field and rename as
2978 m_include_dirs.
2979 (dw2_get_file_names_reader): Define local var at a smaller scope and
2980 reflect API change.
2981 (dwarf2_cu::setup_type_unit_groups): Reflect API change.
2982 (process_structure_scope): Likewise.
2983 (line_header::add_include_dir): Change message and reflect renaming.
2984 (line_header::add_file_name): Likewise.
2985 (read_formatted_entries): Handle DW_FORM_data16.
2986 (dwarf_decode_line_header): Fix line header length calculation.
2987 (psymtab_include_file_name): Change comment and API.
2988 (lnp_state_machine::m_file): Update comment and reflect type change.
2989 (lnp_state_machine::record_line): Reflect type change.
2990 (dwarf_decode_lines): Reflect API change.
2991 (file_file_name): Likewise.
2992 (file_full_name): Likewise.
2993
45f47c3a
AB
29942019-10-21 Andrew Burgess <andrew.burgess@embecosm.com>
2995
2996 * objfiles.c (sort_cmp): Ensure that !(a < a) holds true.
2997
e5f3c0e3
TT
29982019-10-21 Tom Tromey <tom@tromey.com>
2999
3000 * tui/tui-winsource.h (tui_exec_info_content): Remove typedef.
3001
a0a461e5
TT
30022019-10-21 Tom Tromey <tom@tromey.com>
3003
3004 * configure.ac (nm.h): Conditionally create nm.h link. Subst
3005 NM_H. Use AC_CONFIG_LINKS.
3006 * configure: Rebuild.
3007 * Makefile.in (NM_H): New variable.
3008 (generated_files): Add NM_H. Remove gcore.
3009 (nm.h, stamp-nmh): New targets.
3010
54d83b8d
TT
30112019-10-20 Tom Tromey <tom@tromey.com>
3012
3013 * objfiles.h (unlink_objfile, put_objfile_before): Don't declare.
3014 * objfiles.c (unlink_objfile): Move earlier. Now static. Remove
3015 obsolete comment.
3016 (put_objfile_before): Now static.
3017
23771117
SM
30182019-10-19 Simon Marchi <simon.marchi@polymtl.ca>
3019
3020 * gdbsupport/common-utils.h (startswith): Change return type to
3021 bool.
3022
39ef2f62
CB
30232019-10-19 Christian Biesinger <cbiesinger@google.com>
3024
3025 * bcache.c (bcache::print_statistics): Use std::sort instead of qsort.
3026 * breakpoint.c (bp_locations_compare): Rename to...
3027 (bp_location_is_less_than): ...this, and change to std::sort semantics.
3028 (update_global_location_list): Use std::sort instead of qsort.
3029 * buildsym.c (compare_line_numbers): Rename to...
3030 (lte_is_less_than): ...this, and change to std::sort semantics.
3031 (buildsym_compunit::end_symtab_with_blockvector): Use std::sort
3032 instead of qsort.
3033 * disasm.c (compare_lines): Rename to...
3034 (line_is_less_than): ...this, and change to std::sort semantics.
3035 (do_mixed_source_and_assembly_deprecated): Call std::sort instead
3036 of qsort.
3037 * dwarf2-frame.c (qsort_fde_cmp): Rename to...
3038 (fde_is_less_than): ...this, and change to std::sort semantics.
3039 (dwarf2_build_frame_info): Call std::sort instead of qsort.
3040 * mdebugread.c (compare_blocks):
3041 (block_is_less_than): ...this, and change to std::sort semantics.
3042 (sort_blocks): Call std::sort instead of qsort.
3043 * objfiles.c (qsort_cmp): Rename to...
3044 (sort_cmp): ...this, and change to std::sort semantics.
3045 (update_section_map): Call std::sort instead of qsort.
3046 * remote.c (compare_pnums): Remove.
3047 (map_regcache_remote_table): Call std::sort instead of qsort.
3048 * utils.c (compare_positive_ints): Remove.
3049 * utils.h (compare_positive_ints): Remove.
3050 * xcoffread.c (compare_lte): Remove.
3051 (arrange_linetable): Call std::sort instead of qsort.
3052
f71433ee
SDJ
30532019-10-19 Sergio Durigan Junior <sergiodj@redhat.com>
3054
3055 * symfile.c (init_entry_point_info): Fix typo.
3056 * i386-darwin-tdep.c (darwin_dwarf_signal_frame_p): Fix typo.
3057
85102364
TV
30582019-10-18 Tom de Vries <tdevries@suse.de>
3059
3060 * aarch64-tdep.c: Fix typos in comments.
3061 * ada-lang.c: Same.
3062 * ada-tasks.c: Same.
3063 * alpha-tdep.c: Same.
3064 * alpha-tdep.h: Same.
3065 * amd64-nat.c: Same.
3066 * amd64-windows-tdep.c: Same.
3067 * arc-tdep.c: Same.
3068 * arc-tdep.h: Same.
3069 * arch-utils.c: Same.
3070 * arm-nbsd-tdep.c: Same.
3071 * arm-tdep.c: Same.
3072 * ax-gdb.c: Same.
3073 * blockframe.c: Same.
3074 * btrace.c: Same.
3075 * c-varobj.c: Same.
3076 * coff-pe-read.c: Same.
3077 * coffread.c: Same.
3078 * cris-tdep.c: Same.
3079 * darwin-nat.c: Same.
3080 * dbxread.c: Same.
3081 * dcache.c: Same.
3082 * disasm.c: Same.
3083 * dtrace-probe.c: Same.
3084 * dwarf-index-write.c: Same.
3085 * dwarf2-frame-tailcall.c: Same.
3086 * dwarf2-frame.c: Same.
3087 * dwarf2read.c: Same.
3088 * eval.c: Same.
3089 * exceptions.c: Same.
3090 * fbsd-tdep.c: Same.
3091 * findvar.c: Same.
3092 * frame.c: Same.
3093 * frv-tdep.c: Same.
3094 * gnu-v3-abi.c: Same.
3095 * go32-nat.c: Same.
3096 * h8300-tdep.c: Same.
3097 * hppa-tdep.c: Same.
3098 * i386-linux-tdep.c: Same.
3099 * i386-tdep.c: Same.
3100 * ia64-libunwind-tdep.c: Same.
3101 * ia64-tdep.c: Same.
3102 * infcmd.c: Same.
3103 * infrun.c: Same.
3104 * linespec.c: Same.
3105 * linux-nat.c: Same.
3106 * linux-thread-db.c: Same.
3107 * machoread.c: Same.
3108 * mdebugread.c: Same.
3109 * mep-tdep.c: Same.
3110 * mn10300-tdep.c: Same.
3111 * namespace.c: Same.
3112 * objfiles.c: Same.
3113 * opencl-lang.c: Same.
3114 * or1k-tdep.c: Same.
3115 * osabi.c: Same.
3116 * ppc-linux-nat.c: Same.
3117 * ppc-linux-tdep.c: Same.
3118 * ppc-sysv-tdep.c: Same.
3119 * printcmd.c: Same.
3120 * procfs.c: Same.
3121 * record-btrace.c: Same.
3122 * record-full.c: Same.
3123 * remote-fileio.c: Same.
3124 * remote.c: Same.
3125 * rs6000-tdep.c: Same.
3126 * s12z-tdep.c: Same.
3127 * score-tdep.c: Same.
3128 * ser-base.c: Same.
3129 * ser-go32.c: Same.
3130 * skip.c: Same.
3131 * sol-thread.c: Same.
3132 * solib-svr4.c: Same.
3133 * solib.c: Same.
3134 * source.c: Same.
3135 * sparc-nat.c: Same.
3136 * sparc-sol2-tdep.c: Same.
3137 * sparc-tdep.c: Same.
3138 * sparc64-tdep.c: Same.
3139 * stabsread.c: Same.
3140 * stack.c: Same.
3141 * symfile.c: Same.
3142 * symtab.c: Same.
3143 * target-descriptions.c: Same.
3144 * target-float.c: Same.
3145 * thread.c: Same.
3146 * utils.c: Same.
3147 * valops.c: Same.
3148 * valprint.c: Same.
3149 * value.c: Same.
3150 * varobj.c: Same.
3151 * windows-nat.c: Same.
3152 * xcoffread.c: Same.
3153 * xstormy16-tdep.c: Same.
3154 * xtensa-tdep.c: Same.
3155
c5adaa19
TT
31562019-10-17 Tom Tromey <tromey@adacore.com>
3157
3158 * configure: Rebuild.
3159 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
3160 in AC_CONFIG_FILES invocation.
3161 * Makefile.in (Makefile, data-directory/Makefile, stamp-h): Use
3162 new-style config.status invocation.
3163
405feb71
TV
31642019-10-17 Tom de Vries <tdevries@suse.de>
3165
3166 * arm-nbsd-nat.c: Fix typos in comments.
3167 * arm-tdep.c: Same.
3168 * darwin-nat-info.c: Same.
3169 * dwarf2read.c: Same.
3170 * elfread.c: Same.
3171 * event-top.c: Same.
3172 * findvar.c: Same.
3173 * gdbtypes.c: Same.
3174 * hppa-tdep.c: Same.
3175 * i386-tdep.c: Same.
3176 * jit.c: Same.
3177 * main.c: Same.
3178 * mdebugread.c: Same.
3179 * moxie-tdep.c: Same.
3180 * nto-procfs.c: Same.
3181 * osabi.c: Same.
3182 * ppc-linux-tdep.c: Same.
3183 * remote.c: Same.
3184 * riscv-tdep.c: Same.
3185 * s390-tdep.c: Same.
3186 * sh-tdep.c: Same.
3187 * sparc-linux-tdep.c: Same.
3188 * sparc-nat.c: Same.
3189 * stack.c: Same.
3190 * target-descriptions.c: Same.
3191 * top.c: Same.
3192 * varobj.c: Same.
3193
befcd486
TT
31942019-10-16 Tom Tromey <tom@tromey.com>
3195
3196 * objfiles.h (struct objfile) <original_name>: Now const.
3197
17bfe554
CB
31982019-10-16 Christian Biesinger <cbiesinger@google.com>
3199
3200 * gdbsupport/gdb_setjmp.h (SIGSETJMP): Allow passing in the value to
3201 pass on to sigsetjmp's second argument.
3202 * cp-support.c (gdb_demangle): Unblock SIGSEGV if we caught a crash.
3203
950b7495
KS
32042019-10-16 Keith Seitz <keiths@redhat.com>
3205
3206 PR gdb/23567
3207 * dwarf2read.c (dwarf2_per_objfile::locate_sections): Discard
3208 sections whose size is greater than the file size.
3209
ff371ec9
JW
32102019-10-16 Jim Wilson <jimw@sifive.com>
3211
3212 * riscv-tdep.c (riscv_gcc_target_options): New.
3213 (riscv_gnu_triplet_regexp): New.
3214 (riscv_gdbarch_init): Call set_gdbarch_gcc_triplet_options and
3215 set_gdbarch_gnu_triplet_regexp.
3216
fec4e896
CB
32172019-10-16 Christian Biesinger <cbiesinger@google.com>
3218
3219 * Makefile.in: Add xml-builtin.h.
3220 * features/feature_to_c.sh: Add an include for xml-builtin.h
3221 to ensure that the compiler checks that the types match.
3222 * xml-builtin.h: New file.
3223 * xml-support.c (fetch_xml_builtin): Add missing const.
3224 * xml-support.h: Remove declaration of xml_builtins.
3225
d10eccaa
TV
32262019-10-16 Tom de Vries <tdevries@suse.de>
3227
3228 PR tdep/25096
3229 * amd64-tdep.c (amd64_classify_aggregate_field): Factor out of ...
3230 (amd64_classify_aggregate): ... here.
3231 (amd64_classify_aggregate_field): Handled fiels of nested structs
3232 recursively.
3233
745ff14e
TV
32342019-10-16 Tom de Vries <tdevries@suse.de>
3235
3236 PR tdep/24104
3237 * amd64-tdep.c (amd64_push_arguments): Handle AMD64_NO_CLASS in loop
3238 that handles 'theclass'.
3239
791b7405
AB
32402019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
3241
3242 * linespec.c (decode_digits_ordinary): Update comment.
3243 * make-target-delegates: No longer need to handle VEC case.
3244 * memrange.c (normalize_mem_ranges): Update comment.
3245 * namespace.c (add_using_directive): Update comment.
3246 * objc-lang.c (uniquify_strings): Update comment.
3247 * ppc-linux-nat.c (struct thread_points): Update comment.
3248 * probe.h (find_probes_in_objfile): Update comment.
3249 * target.h (enum flash_preserve_mode): Update comment.
3250 * varobj.c (varobj_restrict_range): Update comment.
3251 * varobj.h (varobj_list_children): Update comment.
3252
0dc32745
AB
32532019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
3254
3255 * Makefile.in: Remove references to vec.h and vec.c.
3256 * aarch64-tdep.c: No longer include vec.h.
3257 * ada-lang.c: Likewise.
3258 * ada-lang.h: Likewise.
3259 * arm-tdep.c: Likewise.
3260 * ax.h: Likewise.
3261 * breakpoint.h: Likewise.
3262 * charset.c: Likewise.
3263 * cp-support.h: Likewise.
3264 * dtrace-probe.c: Likewise.
3265 * dwarf2read.c: Likewise.
3266 * extension.h: Likewise.
3267 * gdb_bfd.c: Likewise.
3268 * gdbsupport/gdb_vecs.h: Likewise.
3269 * gdbsupport/vec.c: Remove.
3270 * gdbsupport/vec.h: Remove.
3271 * gdbthread.h: Likewise.
3272 * guile/scm-type.c: Likewise.
3273 * inline-frame.c: Likewise.
3274 * machoread.c: Likewise.
3275 * memattr.c: Likewise.
3276 * memrange.h: Likewise.
3277 * namespace.h: Likewise.
3278 * nat/linux-btrace.h: Likewise.
3279 * osdata.c: Likewise.
3280 * parser-defs.h: Likewise.
3281 * progspace.h: Likewise.
3282 * python/py-type.c: Likewise.
3283 * record-btrace.c: Likewise.
3284 * rust-exp.y: Likewise.
3285 * solib-target.c: Likewise.
3286 * stap-probe.c: Likewise.
3287 * target-descriptions.c: Likewise.
3288 * target-memory.c: Likewise.
3289 * target.h: Likewise.
3290 * varobj.c: Likewise.
3291 * varobj.h: Likewise.
3292 * xml-support.h: Likewise.
3293
ae640021
AB
32942019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
3295
3296 * gdb/dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile):
3297 Update for new std::vector based implementation.
3298 (process_psymtab_comp_unit_reader): Likewise.
3299 (scan_partial_symbols): Likewise.
3300 (recursively_compute_inclusions): Likewise.
3301 (compute_compunit_symtab_includes): Likewise.
3302 (process_imported_unit_die): Likewise.
3303 (queue_and_load_dwo_tu): Likewise.
3304 (follow_die_sig_1): Likewise.
3305 * gdb/dwarf2read.h: Remove DEF_VEC_P.
3306 (typedef dwarf2_per_cu_ptr): Remove.
3307 (struct dwarf2_per_cu_data) <imported_symtabs_empty>: New
3308 function.
3309 (struct dwarf2_per_cu_data) <imported_symtabs_push>: New function.
3310 (struct dwarf2_per_cu_data) <imported_symtabs_size>: New function.
3311 (struct dwarf2_per_cu_data) <imported_symtabs_free>: New function.
3312 (struct dwarf2_per_cu_data) <imported_symtabs>: Change to
3313 std::vector.
3314
55dfc88f
TT
33152019-10-15 Tom Tromey <tromey@adacore.com>
3316
3317 * windows-nat.c (windows_nat_target::resume): Use %x when logging
3318 TID.
3319
96b49c5e
TT
33202019-10-15 Tom Tromey <tromey@adacore.com>
3321
3322 * windows-nat.c (windows_nat_target::fetch_registers)
3323 (windows_nat_target::store_registers): Rename "pid" to "tid".
3324
953cff56
TT
33252019-10-15 Tom Tromey <tromey@adacore.com>
3326
3327 * gdbarch.h, gdbarch.c: Rebuild.
3328 * gdbarch.sh (gcc_target_options): Change return type to
3329 std::string.
3330 * compile/compile.c (get_args): Update.
3331 * nios2-tdep.c (nios2_gcc_target_options): Return std::string.
3332 * arm-linux-tdep.c (arm_linux_gcc_target_options): Return
3333 std::string.
3334 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): Return
3335 std::string.
3336 * arch-utils.c (default_gcc_target_options): Return std::string.
3337 * arch-utils.h (default_gcc_target_options): Return std::string.
3338 * s390-tdep.c (s390_gcc_target_options): Return std::string.
3339
81e6b8eb
CB
33402019-10-15 Christian Biesinger <cbiesinger@google.com>
3341
3342 * breakpoint.c (breakpoint_chain): Make static.
3343 * tui/tui-winsource.c: Call iterate_over_breakpoints instead
3344 of accessing breakpoint_chain.
3345
95da600f
CB
33462019-10-15 Christian Biesinger <cbiesinger@google.com>
3347
3348 * breakpoint.c (iterate_over_breakpoints): Change function pointer
3349 to a gdb::function_view and return value to bool.
3350 * breakpoint.h (iterate_over_breakpoints): Likewise.
3351 * dummy-frame.c (pop_dummy_frame_bpt): Update.
3352 (pop_dummy_frame): Update.
3353 * guile/scm-breakpoint.c (bpscm_build_bp_list): Update.
3354 (gdbscm_breakpoints): Update.
3355 * python/py-breakpoint.c (build_bp_list): Update.
3356 (gdbpy_breakpoints): Update.
3357 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
3358 Update.
3359 (bpfinishpy_handle_stop): Update.
3360 (bpfinishpy_handle_exit): Update.
3361 * solib-svr4.c (svr4_update_solib_event_breakpoint): Update.
3362 (svr4_update_solib_event_breakpoints): Update.
3363
ba18312d
AA
33642019-10-15 Andreas Arnez <arnez@linux.ibm.com>
3365
3366 * s390-tdep.c (s390_effective_inner_type): Ignore static fields
3367 when unwrapping single-field structs.
3368
6acc1a0b
SM
33692019-10-14 Simon Marchi <simon.marchi@polymtl.ca>
3370
3371 * dwarf2read.c: Remove includes.
3372
284782de
SM
33732019-10-13 Simon Marchi <simon.marchi@polymtl.ca>
3374
3375 * ui-out.c (ui_out::call_do_message): Silence
3376 -Wformat-nonliteral warning.
3377
073bbbb0
SM
33782019-10-12 Simon Marchi <simon.marchi@polymtl.ca>
3379
3380 * breakpoint.c: Remove some includes: continuations.h, skip.h,
3381 mi/mi-main.h, readline/readline.h, readline/history.h. Add
3382 include: readline/tilde.h.
3383
7b9a15e1
CB
33842019-10-12 Christian Biesinger <cbiesinger@google.com>
3385
3386 * remote.c (remote_target::get_trace_status): Remove declaration of
3387 trace_regblock_size.
3388
cc8dee1f
CB
33892019-10-12 Christian Biesinger <cbiesinger@google.com>
3390
3391 * cli/cli-cmds.c (max_user_call_depth): Move comment to header.
3392 (show_user): Remove declaration of cmdlist.
3393 * cli/cli-cmds.h (max_user_call_depth): Declare.
3394 * cli/cli-script.c (execute_user_command): Remove declaration
3395 of max_user_call_depth.
3396
a83d4ef6
JW
33972019-10-11 Jim Wilson <jimw@sifive.com>
3398
5f93c5a6
JW
3399 * gdbsupport/print-utils.h (pulongest): Fix comment.
3400 (plongest): Likewise.
3401 (phex): Add missing comment, mention leading zeros.
3402 (phex_nz): Add mention of no leading zeros to comment.
3403
a83d4ef6
JW
3404 * riscv-tdep.c (riscv_push_dummy_code): Change %lld to %s and use
3405 plongest instead of unsigned long long cast.
3406
26344e0c
CB
34072019-10-10 Christian Biesinger <cbiesinger@google.com>
3408
3409 * main.c (captured_main_1): Include gdbtk.h and remove declarations
3410 for external_editor_command and gdbtk_test.
3411
c2c440a9
CB
34122019-10-10 Christian Biesinger <cbiesinger@google.com>
3413
3414 * mi/mi-cmd-var.c (varobjdebug): Remove declaration.
3415 * varobj.c (varobjdebug): Move comment to...
3416 * varobj.h (varobjdebug): ...here, and declare.
3417
a31bff9d
TT
34182019-10-09 Tom Tromey <tom@tromey.com>
3419
3420 * tui/tui-regs.c (tui_data_window::show_registers): Don't call
3421 erase_data_content.
3422
7523da63
TT
34232019-10-09 Tom Tromey <tom@tromey.com>
3424
3425 * tui/tui-wingeneral.h (tui_delete_win): Don't declare.
3426 * tui/tui-stack.c (tui_locator_window::rerender): Update.
3427 * tui/tui-command.c (tui_cmd_window::resize)
3428 (tui_refresh_cmd_win): Update.
3429 * tui/tui-win.c (tui_resize_all, tui_set_focus_command): Update.
3430 * tui/tui.c (tui_rl_other_window, tui_enable): Update.
3431 * tui/tui-data.c (~tui_gen_win_info): Remove.
3432 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
3433 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
3434 (tui_redisplay_readline, tui_mld_flush)
3435 (tui_mld_erase_entire_line, tui_mld_getc, tui_getc): Update.
3436 * tui/tui-regs.c (tui_data_window::delete_data_content_windows)
3437 (tui_data_window::erase_data_content)
3438 (tui_data_item_window::rerender)
3439 (tui_data_item_window::refresh_window): Update.
3440 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window)
3441 (box_win, tui_gen_win_info::make_window)
3442 (tui_gen_win_info::make_visible): Update.
3443 (tui_delete_win): Remove.
3444 * tui/tui-winsource.c
3445 (tui_source_window_base::do_erase_source_content): Update.
3446 (tui_show_source_line, tui_source_window_base::update_tab_width)
3447 (tui_source_window_base::update_exec_info): Update.
3448 * tui/tui-data.h (struct curses_deleter): New.
3449 (struct tui_gen_win_info) <handle>: Now a unique_ptr.
3450 (struct tui_gen_win_info) <~tui_gen_win_info>: Define.
3451
a7798e7f
TT
34522019-10-09 Tom Tromey <tom@tromey.com>
3453
3454 * tui/tui-wingeneral.h (struct tui_gen_win_info): Don't declare.
3455
5c45899e
TT
34562019-10-09 Tom Tromey <tom@tromey.com>
3457
3458 * tui/tui-data.c (tui_win_is_auxiliary): Remove.
3459 * tui/tui-data.h (tui_win_is_auxiliary): Don't declare.
3460
6d7fd9aa
TT
34612019-10-09 Tom Tromey <tom@tromey.com>
3462
3463 * tui/tui-disasm.c (tui_get_low_disassembly_address): Compute
3464 window height directly.
3465 * tui/tui-layout.h (tui_default_win_viewport_height): Don't
3466 declare.
3467 * tui/tui-layout.c (tui_default_win_height): Remove.
3468 (tui_default_win_viewport_height): Remove.
3469
d2dd1084
TT
34702019-10-09 Tom Tromey <tom@tromey.com>
3471
3472 * tui/tui.h: Remove comments.
3473
cff32449
TV
34742019-10-09 Tom de Vries <tdevries@suse.de>
3475
3476 * python/lib/gdb/printer/bound_registers.py: Use
3477 '^builtin_type_bound128' as regexp argument for
3478 add_builtin_pretty_printer.
3479
6a25e8a2
CB
34802019-10-09 Christian Biesinger <cbiesinger@google.com>
3481
3482 * guile/guile.c (guile_extension_script_ops): Remove forward
3483 declaration and mark as static.
3484 (guile_script_ops): Likewise.
3485 (extension_language_guile): Move further down in the file so
3486 it can reference the definitions for guile_{extension_,}script_ops.
3487
6d9d6da4
AA
34882019-10-09 Andreas Arnez <arnez@linux.ibm.com>
3489
3490 * s390-tdep.c (390_process_record): Handle new arch13 instructions
3491 except SORTL, DFLTCC, and KDSA.
3492
3abea05d
TT
34932019-10-08 Tom Tromey <tromey@adacore.com>
3494
3495 * windows-nat.c (struct windows_thread_info_struct) <sf>: Remove.
3496 (struct safe_symbol_file_add_args): Remove.
3497
dde996e2
TT
34982019-10-08 Tom Tromey <tromey@adacore.com>
3499
3500 * windows-nat.c: Don't include buildsym-legacy.h.
3501
cd6fdaa1
TT
35022019-10-08 Tom Tromey <tromey@adacore.com>
3503
3504 * contrib/ari/gdb_ari.sh (%p): Allow gdb-specific %p extensions.
3505
79bb1944
CB
35062019-10-08 Christian Biesinger <cbiesinger@google.com>
3507
3508 * gdbtypes.c (overload_debug): Move comment to header.
3509 * gdbtypes.h (overload_debug): Declare.
3510 * valops.c: Remove declaration of overload_debug, instead
3511 include gdbtypes.h.
3512
34916edc
CB
35132019-10-08 Christian Biesinger <cbiesinger@google.com>
3514
3515 * language.c (show_language_command): Pass lang_frame_mismatch_warn
3516 through _().
3517 (lang_frame_mismatch_warn): Make const, mark with N_(), and
3518 move comment...
3519 * language.h (lang_frame_mismatch_warn): ... here. Also add
3520 declaration.
3521 * top.c (lang_frame_mismatch_warn): Remove declaration.
3522 (check_frame_language_change): Pass lang_frame_mismatch_warn
3523 through _().
3524
bad5c026
CB
35252019-10-07 Christian Biesinger <cbiesinger@google.com>
3526
3527 * c-lang.h (vtbl_ptr_name): Declare.
3528 * cp-valprint.c (vtbl_ptr_name): Remove "extern" now that we get
3529 it from the header.
3530 * stabsread.c (define_symbol): Remove declaration of vtbl_ptr_name.
3531
51f1fdc3
CB
35322019-10-07 Christian Biesinger <cbiesinger@google.com>
3533
3534 * charset.c (your_gdb_wchar_t_is_bogus): Replace with a
3535 gdb_static_assert.
3536
30d1f018
WP
35372019-10-07 Weimin Pan <weimin.pan@oracle.com>
3538
606813d5
WP
3539 * ../Makefile.def (dependencies): Add all-libctf to all-gdb
3540 * ../Makefile.in: Add "all-gdb: maybe-all-libctf"
30d1f018
WP
3541 * ctfread.c: New file.
3542 * ctfread.h: New file.
3543 * elfread.c: Include ctfread.h.
3544 (struct elfinfo text_p): New member ctfsect.
3545 (elf_locate_sections): Mark CTF section.
3546 (elf_symfile_read): Call elfctf_build_psymtabs.
3547 * Makefile.in (LIBCTF): Add.
3548 (CLIBS): Use it.
3549 (CDEPS): Likewise.
3550 (DIST): Add ctfread.c.
606813d5
WP
3551
35522019-10-07 Andrew Burgess <andrew.burgess@embecosm.com>
3553
3554 * ctfread.c (struct nextfield): Renamed to ...
3555 (struct ctf_nextfield): ... this.
3556 (struct field_info): Renamed to ...
3557 (strut ctf_field_info): ... this.
3558 (attach_fields_to_type): Update for renamed structures.
3559 (ctf_add_member_cb): Likewise.
3560 (ctf_add_enum_member_cb): Likewise.
3561 (process_struct_members): Likewise.
3562 (process_enum_type): Likewise.
30d1f018 3563
518fe38c
WP
35642019-10-07 Weimin Pan <weimin.pan@oracle.com>
3565
3566 * tracectf.h: Rename, was ctf.h.
3567 * tracectf.c: Rename, was ctf.c, replace ctf.h with tracectf.h.
3568 * tracefile.c: Likewise.
3569 * tracepoint.c: Remove unused include ctf.h.
3570 * mi/mi-main.c: Likewise.
3571 * Makefile.in Replace ctf.c with tracectf.c.
3572
225f296a
JB
35732019-10-06 Joel Brobecker <brobecker@adacore.com>
3574
3575 * version.in: Change version number to "9.0.50.DATE-git".
3576
77c2dba3
TT
35772019-10-03 Tom Tromey <tom@tromey.com>
3578
3579 PR rust/24976:
3580 * dwarf2read.c (quirk_rust_enum): Handle single-element unions.
3581
179aed7f
AB
35822019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
3583
3584 * f-lang.c (f_language_defn): Use cp_get_symbol_name_matcher and
3585 cp_search_name_hash.
3586 * NEWS: Add entry about nested function support.
3587
0a4b0913
AB
35882019-10-03 Bernhard Heckel <bernhard.heckel@intel.com>
3589 Andrew Burgess <andrew.burgess@embecosm.com>
3590
3591 * cp-namespace.c (cp_search_static_and_baseclasses): Only search
3592 for nested static variables when searchin VAR_DOMAIN.
3593 * dwarf2read.c (add_partial_symbol): Add nested subroutines to the
3594 global scope, update comment.
3595 (add_partial_subprogram): Call add_partial_subprogram recursively
3596 for nested subroutines when processinng Fortran.
3597 (load_partial_dies): Process the child entities of a subprogram
3598 when processing Fortran.
3599 (partial_die_parent_scope): Handle building scope
3600 for Fortran nested functions.
3601 (process_die): Record that nested functions have a scope.
3602 (new_symbol): Always record Fortran subprograms on the global
3603 symbol list.
3604 (determine_prefix): How to build the prefix for Fortran
3605 subprograms.
3606
d8c06f22
AB
36072019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
3608
3609 * linux-nat.c (linux_nat_filter_event): Don't ignore SIGSTOP if we
3610 have just sent the thread a SIGSTOP and are waiting for it to
3611 arrive.
3612
a8b3b8e9
AB
36132019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
3614
3615 * btrace.c (btrace_add_pc): Remove whitespace before the template
3616 parameter in 'std::vector <...>'.
3617 (parse_xml_btrace_block): Likewise.
3618 (btrace_maint_decode_pt): Likewise.
3619 (btrace_maint_update_packets): Likewise.
3620 (btrace_maint_print_packets): Likewise.
3621 * btrace.h (struct btrace_maint_info): Likewise.
3622 * dwarf2read.c (struct type_unit_group): Likewise.
3623 (build_type_psymtabs_reader): Likewise.
3624 * gdbsupport/btrace-common.c (btrace_data_append): Likewise.
3625 * gdbsupport/btrace-common.h (struct btrace_data_bts): Likewise.
3626 * nat/linux-btrace.c (perf_event_read_bts): Likewise.
3627
4d825eab
TV
36282019-10-03 Tom de Vries <tdevries@suse.de>
3629
3630 * cli/cli-style.c (_initialize_cli_style): Adding a '.' at the end of
3631 the first line of the help text for set/show style metadata.
3632
80fd2826
TT
36332019-10-02 Tom Tromey <tromey@adacore.com>
3634
3635 * Makefile.in (COMMON_SFILES): Add common-inferior.c.
3636 * gdbsupport/common-inferior.c: New file.
3637 * infcmd.c (startup_with_shell): Don't define.
3638 * nat/fork-inferior.h (startup_with_shell): Don't declare.
3639 * gdbsupport/common-inferior.h (startup_with_shell): Declare.
3640 * inferior.h (startup_with_shell): Don't declare.
3641
70054538
CB
36422019-10-02 Christian Biesinger <cbiesinger@google.com>
3643
3644 * gdbsupport/gdb_assert.h: Include errors.h.
3645 * gdbsupport/gdb_string_view.h: Include gdb_assert.h.
3646
37f6a7f4
TT
36472019-10-02 Tom Tromey <tromey@adacore.com>
3648
3649 * NEWS: Add $_ada_exception entry.
3650 * ada-lang.c (struct ada_catchpoint): Add constructor.
3651 <m_kind>: New member.
3652 (allocate_location_exception, re_set_exception): Remove
3653 "ex" parameter.
3654 (should_stop_exception): Compute $_ada_exception.
3655 (check_status_exception, print_it_exception)
3656 (print_one_exception, print_mention_exception): Remove
3657 "ex" parameter.
3658 (allocate_location_catch_exception, re_set_catch_exception)
3659 (check_status_exception, print_it_catch_exception)
3660 (print_one_catch_exception, print_mention_catch_exception)
3661 (print_recreate_catch_exception)
3662 (allocate_location_catch_exception_unhandled)
3663 (re_set_catch_exception_unhandled)
3664 (check_status_exception, print_it_catch_exception_unhandled)
3665 (print_one_catch_exception_unhandled)
3666 (print_mention_catch_exception_unhandled)
3667 (print_recreate_catch_exception_unhandled)
3668 (allocate_location_catch_assert, re_set_catch_assert)
3669 (check_status_assert, print_it_catch_assert)
3670 (print_one_catch_assert, print_mention_catch_assert)
3671 (print_recreate_catch_assert)
3672 (allocate_location_catch_handlers, re_set_catch_handlers)
3673 (check_status_handlers, print_it_catch_handlers)
3674 (print_one_catch_handlers, print_mention_catch_handlers)
3675 (print_recreate_catch_handlers): Remove.
3676 (create_ada_exception_catchpoint): Update.
3677 (initialize_ada_catchpoint_ops): Update.
3678
fccf9de1
TT
36792019-10-02 Tom Tromey <tromey@adacore.com>
3680
3681 * ada-lang.c (ada_lookup_simple_minsyms): Remove.
3682 (create_excep_cond_exprs): Simplify exception string computation.
3683 (ada_exception_catchpoint_cond_string): Likewise.
3684
4b610737
TT
36852019-10-02 Tom Tromey <tromey@adacore.com>
3686
3687 * symmisc.c (dump_msymbols): Don't use MSYMBOL_VALUE_ADDRESS.
3688 * ada-lang.c (lesseq_defined_than): Handle
3689 LOC_STATIC.
3690 * dwarf2read.c (dwarf2_per_objfile): Add can_copy
3691 parameter.
3692 (dwarf2_has_info): Likewise.
3693 (new_symbol): Set maybe_copied on symbol when
3694 appropriate.
3695 * dwarf2read.h (dwarf2_per_objfile): Add can_copy
3696 parameter.
3697 <can_copy>: New member.
3698 * elfread.c (record_minimal_symbol): Set maybe_copied
3699 on symbol when appropriate.
3700 (elf_symfile_read): Update call to dwarf2_has_info.
3701 * minsyms.c (lookup_minimal_symbol_linkage): New
3702 function.
3703 * minsyms.h (lookup_minimal_symbol_linkage): Declare.
3704 * symtab.c (get_symbol_address, get_msymbol_address):
3705 New functions.
3706 * symtab.h (get_symbol_address, get_msymbol_address):
3707 Declare.
3708 (SYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_ADDRESS): Handle
3709 maybe_copied.
3710 (struct symbol, struct minimal_symbol) <maybe_copied>:
3711 New member.
3712
1dd58850
TT
37132019-10-02 Tom Tromey <tromey@adacore.com>
3714
3715 * source.c (struct current_source_location): New.
3716 (current_source_key): New global.
3717 (current_source_symtab, current_source_line)
3718 (current_source_pspace): Remove.
3719 (get_source_location): New function.
3720 (get_current_source_symtab_and_line)
3721 (set_default_source_symtab_and_line)
3722 (set_current_source_symtab_and_line)
3723 (clear_current_source_symtab_and_line, select_source_symtab)
3724 (info_source_command, print_source_lines_base)
3725 (info_line_command, search_command_helper, _initialize_source):
3726 Update.
3727
5c281dbb
TT
37282019-10-02 Tom Tromey <tromey@adacore.com>
3729
3730 * source.c (select_source_symtab): Don't call
3731 decode_line_with_current_source.
3732
d3d32391
AB
37332019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
3734
3735 * symtab.c (lookup_global_symbol): Search global block.
3736
38583298
TT
37372019-10-02 Tom Tromey <tromey@adacore.com>
3738
3739 * coffread.c (process_coff_symbol): Update.
3740 * dwarf2read.c (var_decode_location, new_symbol): Update.
3741 * mdebugread.c (parse_symbol): Update.
3742 * objfiles.c (relocate_one_symbol): Update.
3743 * stabsread.c (define_symbol, fix_common_block)
3744 (scan_file_globals): Update.
3745 * symtab.h (SYMBOL_VALUE_ADDRESS): Expand to an rvalue.
3746 (SET_SYMBOL_VALUE_ADDRESS): New macro.
3747 * xcoffread.c (process_xcoff_symbol): Update.
3748
9344c18f
AA
37492019-10-02 Andreas Arnez <arnez@linux.ibm.com>
3750
3751 * MAINTAINERS: Update my email address.
3752
df07e2c7
AB
37532019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
3754
3755 * dwarf2read.c (struct type_unit_group) <tus>: Convert to
3756 std::vector.
3757 (build_type_psymtabs_reader): Update for std::vector.
3758 (build_type_psymtab_dependencies): Likewise.
3759 * dwarf2read.h: Remove use of DEF_VEC_P.
3760 (typedef sig_type_ptr): Delete.
3761
554ac434
AB
37622019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
3763
3764 * btrace.c (btrace_maint_clear): Update to handle change from VEC
3765 to std::vector.
3766 (btrace_maint_decode_pt): Likewise, and move allocation of the
3767 vector outside of the loop.
3768 (btrace_maint_update_packets): Update to handle change from VEC to
3769 std::vector.
3770 (btrace_maint_print_packets): Likewise.
3771 (maint_info_btrace_cmd): Likewise.
3772 * btrace.h: Remove use of DEF_VEC_O.
3773 (typedef btrace_pt_packet_s): Delete.
3774 (struct btrace_maint_info) <packets>: Change fromm VEC to
3775 std::vector.
3776 * gdbsupport/btrace-common.h: Remove 'vec.h' include.
3777
46f29a9a
AB
37782019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
3779
3780 * btrace.c (btrace_compute_ftrace_bts): Update for std::vector,
3781 make accesses into the vector constant references.
3782 (btrace_add_pc): Update for std::vector.
3783 (btrace_stitch_bts): Likewise.
3784 (parse_xml_btrace_block): Likewise.
3785 (btrace_maint_update_packets): Likewise.
3786 (btrace_maint_print_packets): Likewise.
3787 (maint_info_btrace_cmd): Likewise.
3788 * gdbsupport/btrace-common.c (btrace_data::fini): Update for
3789 std::vector.
3790 (btrace_data::empty): Likewise.
3791 (btrace_data_append): Likewise.
3792 * gdbsupport/btrace-common.h: Remove use of DEF_VEC_O.
3793 (typedef btrace_block_s): Delete.
3794 (struct btrace_block): Add constructor.
3795 (struct btrace_data_bts) <blocks>: Change to std::vector.
3796 * nat/linux-btrace.c (perf_event_read_bts): Update for
3797 std::vector.
3798 (linux_read_bts): Likewise.
3799
d770d56f
TT
38002019-10-01 Tom Tromey <tom@tromey.com>
3801
3802 * cli/cli-logging.c (show_logging_filename): Use styled_string.
3803
9d636d67
TT
38042019-10-01 Tom Tromey <tom@tromey.com>
3805
3806 * stack.c (print_frame, info_frame_command_core): Use
3807 styled_string.
3808 * linux-thread-db.c (try_thread_db_load_1)
3809 (try_thread_db_load_from_pdir_1): Use styled_string.
3810 * auto-load.c (file_is_auto_load_safe, execute_script_contents)
3811 (auto_load_section_scripts, info_auto_load_local_gdbinit)
3812 (maybe_print_unsupported_script_warning)
3813 (maybe_print_script_not_found_warning): Use styled_string.
3814 * ada-lang.c (user_select_syms): Use styled_string.
3815
7f6aba03
TT
38162019-10-01 Tom Tromey <tom@tromey.com>
3817
3818 * p-lang.c (pascal_printstr): Use metadata style.
3819 * value.c (show_convenience): Use metadata style.
3820 * valprint.c (valprint_check_validity, val_print_optimized_out)
3821 (val_print_not_saved, val_print_unavailable)
3822 (val_print_invalid_address, generic_val_print, val_print)
3823 (value_check_printable, val_print_array_elements): Use metadata
3824 style.
3825 * ui-out.h (class ui_out) <field_fmt>: New overload.
3826 <do_field_fmt>: Add style parameter.
3827 * ui-out.c (ui_out::field_fmt): New overload.
3828 * typeprint.c (type_print_unknown_return_type)
3829 (val_print_not_allocated, val_print_not_associated): Use metadata
3830 style.
3831 * tui/tui-out.h (class tui_ui_out) <do_field_fmt>: Add style
3832 parameter.
3833 * tui/tui-out.c (tui_ui_out::do_field_fmt): Update.
3834 * tracepoint.c (tvariables_info_1): Use metadata style.
3835 * stack.c (print_frame_arg, print_frame_info, print_frame)
3836 (info_frame_command_core): Use metadata style.
3837 * skip.c (info_skip_command): Use metadata style.
3838 * rust-lang.c (rust_print_enum): Use metadata style.
3839 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
3840 metadata style.
3841 * python/py-framefilter.c (py_print_single_arg): Use metadata
3842 style.
3843 * printcmd.c (do_one_display, print_variable_and_value): Use
3844 metadata style.
3845 * p-valprint.c (pascal_val_print)
3846 (pascal_object_print_value_fields): Use metadata style.
3847 * p-typeprint.c (pascal_type_print_base): Use metadata style.
3848 * mi/mi-out.h (class mi_ui_out) <do_field_fmt>: Add style
3849 parameter.
3850 * mi/mi-out.c (mi_ui_out::do_field_fmt): Update.
3851 * m2-valprint.c (m2_print_long_set): Use metadata style.
3852 * m2-typeprint.c (m2_print_type): Use metadata style.
3853 * infcmd.c (print_return_value_1): Use metadata style.
3854 * gnu-v3-abi.c (print_one_vtable): Use metadata style.
3855 * f-valprint.c (info_common_command_for_block): Use metadata
3856 style.
3857 * f-typeprint.c (f_type_print_base): Use metadata style.
3858 * expprint.c (print_subexp_standard): Use metadata style.
3859 * cp-valprint.c (cp_print_value_fields): Use metadata style.
3860 * cli/cli-style.h (class cli_style_option): Add constructor.
3861 (metadata_style): Declare.
3862 * cli/cli-style.c (metadata_style): New global.
3863 (_initialize_cli_style): Register metadata style.
3864 * cli-out.h (class cli_ui_out) <do_field_fmt>: Add style
3865 parameter.
3866 * cli-out.c (cli_ui_out::do_field_fmt): Update.
3867 * c-typeprint.c (c_type_print_base_struct_union)
3868 (c_type_print_base_1): Use metadata style.
3869 * breakpoint.c (watchpoint_value_print)
3870 (print_one_breakpoint_location): Use metadata style.
3871 * break-catch-syscall.c (print_one_catch_syscall): Use metadata
3872 style.
3873 * break-catch-sig.c (signal_catchpoint_print_one): Use metadata
3874 style.
3875 * ada-valprint.c (val_print_packed_array_elements, printstr)
3876 (print_field_values, ada_val_print_ref, ada_val_print): Use
3877 metadata style.
3878 * ada-typeprint.c (print_array_type, ada_print_type): Use metadata
3879 style.
3880 * ada-tasks.c (print_ada_task_info, info_task): Use metadata
3881 style.
3882 * ada-lang.c (user_select_syms): Use metadata style.
3883
14309bb6
TT
38842019-10-01 Tom Tromey <tom@tromey.com>
3885
3886 * cli/cli-cmds.c (pwd_command): Style output.
3887
6a831f06
PA
38882019-10-01 Pedro Alves <palves@redhat.com>
3889 Tom Tromey <tom@tromey.com>
3890
3891 * symtab.c (print_symbol_info): Use %ps.
3892 (print_msymbol_info): Use %ps.
3893 * symfile.c (symbol_file_add_with_addrs): Use %ps.
3894 * printcmd.c (print_variable_and_value): Use %ps.
3895 * macrocmd.c (show_pp_source_pos): Use %ps.
3896 * infrun.c (print_exited_reason): Use ui_out::message.
3897 * breakpoint.c (watchpoint_check, print_one_breakpoint_location)
3898 (describe_other_breakpoints): Use ui_out::message and new
3899 formats.
3900 (say_where): Use new formats.
3901 (bkpt_print_it, tracepoint_print_one_detail): Use ui_out::message
3902 and new formats.
3903
2a3c1174
PA
39042019-10-01 Pedro Alves <palves@redhat.com>
3905 Tom Tromey <tom@tromey.com>
3906
3907 * unittests/format_pieces-selftests.c: Add gdb_format parameter.
3908 (test_gdb_formats): New function.
3909 (run_tests): Call it.
3910 (test_format_specifier): Update.
3911 * utils.h (fputs_filtered): Update comment.
3912 (vfprintf_styled, vfprintf_styled_no_gdbfmt)
3913 (fputs_styled_unfiltered): Declare.
3914 * utils.c (fputs_styled_unfiltered): New function.
3915 (vfprintf_maybe_filtered): Add gdbfmt parameter.
3916 (vfprintf_filtered): Update.
3917 (vfprintf_unfiltered, vprintf_filtered): Update.
3918 (vfprintf_styled, vfprintf_styled_no_gdbfmt): New functions.
3919 * ui-out.h (enum ui_out_flag) <unfiltered_output,
3920 disallow_ui_out_field>: New constants.
3921 (enum class field_kind): New.
3922 (struct base_field_s, struct signed_field_s): New.
3923 (signed_field): New function.
3924 (struct string_field_s): New.
3925 (string_field): New function.
3926 (struct styled_string_s): New.
3927 (styled_string): New function.
3928 (class ui_out) <message>: Add comment.
3929 <vmessage, call_do_message>: New methods.
3930 <do_message>: Add style parameter.
3931 * ui-out.c (ui_out::call_do_message, ui_out::vmessage): New
3932 methods.
3933 (ui_out::message): Rewrite.
3934 * mi/mi-out.h (class mi_ui_out) <do_message>: Add style
3935 parameter.
3936 * mi/mi-out.c (mi_ui_out::do_message): Add style parameter.
3937 * gdbsupport/format.h (class format_pieces) <format_pieces>: Add
3938 gdb_extensions parameter.
3939 (class format_piece): Add parameter to constructor.
3940 (n_int_args): New field.
3941 * gdbsupport/format.c (format_pieces::format_pieces): Add
3942 gdb_extensions parameter. Handle '*'.
3943 * cli-out.h (class cli_ui_out) <do_message>: Add style parameter.
3944 * cli-out.c (cli_ui_out::do_message): Add style parameter. Call
3945 vfprintf_styled_no_gdbfmt.
3946 (cli_ui_out::do_field_string, cli_ui_out::do_spaces)
3947 (cli_ui_out::do_text, cli_ui_out::field_separator): Allow
3948 unfiltered output.
3949 * ui-style.h (struct ui_file_style) <ptr>: New method.
3950
0dfe5bfb
TT
39512019-10-01 Tom Tromey <tom@tromey.com>
3952
3953 * unittests/format_pieces-selftests.c: Update. Add final format.
3954 * gdbsupport/format.c (format_pieces::format_pieces): Don't add
3955 empty literal pieces.
3956
e43b10e1
TT
39572019-10-01 Tom Tromey <tom@tromey.com>
3958
3959 * ui-out.h (enum class ui_out_style_kind): Remove.
3960 (class ui_out) <field_string, field_stsream, do_field_string>:
3961 Change type of "style".
3962 * ui-out.c (ui_out::field_core_addr, ui_out::field_stream)
3963 (ui_out::field_string): Update.
3964 * tui/tui-out.h (class tui_ui_out) <do_field_string>: Change type
3965 of "style".
3966 * tui/tui-out.c (tui_ui_out::do_field_string): Update.
3967 * tracepoint.c (print_one_static_tracepoint_marker): Update.
3968 * stack.c (print_frame_arg, print_frame_info, print_frame):
3969 Update.
3970 * source.c (print_source_lines_base): Update.
3971 * solib.c (info_sharedlibrary_command): Update.
3972 * skip.c (info_skip_command): Update.
3973 * record-btrace.c (btrace_call_history_src_line)
3974 (btrace_call_history): Update.
3975 * python/py-framefilter.c (py_print_frame): Update.
3976 * mi/mi-out.h (class mi_ui_out) <do_field_string>: Change type of
3977 "style".
3978 * mi/mi-out.c (mi_ui_out::do_table_header)
3979 (mi_ui_out::do_field_signed, mi_ui_out::do_field_unsigned)
3980 (mi_ui_out::do_field_string): Update.
3981 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
3982 Update.
3983 * cli-out.h (class cli_ui_out) <do_field_string>: Change type of
3984 "style".
3985 * cli-out.c (cli_ui_out::do_table_header)
3986 (cli_ui_out::do_field_signed, cli_ui_out::do_field_unsigned)
3987 (cli_ui_out::do_field_skip, cli_ui_out::do_field_string)
3988 (cli_ui_out::do_field_fmt): Update.
3989 * breakpoint.c (print_breakpoint_location): Update.
3990 (update_static_tracepoint): Update.
3991
cd7c32c3
PW
39922019-10-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3993
3994 * main.c (relocate_gdbinit_path_maybe_in_datadir): Remove std::string
3995 conversion of gdb_datadir.
3996 (captured_main_1): Remove xstrdup when assigning to gdb_datadir,
3997 remove not needed c_str ().
3998
8fe0f950
AT
39992019-09-30 Ali Tamur <tamur@google.com>
4000
4001 * dwarf2read.c (skip_one_die): Handle DW_FORM_strx forms.
4002 (dwarf2_string_attr): Likewise.
4003
5f48f8f3
AT
40042019-09-30 Ali Tamur <tamur@google.com>
4005
4006 * dwarf2read.c (process_full_comp_unit): Remove whitespace at the EOL.
4007 (process_full_type_unit): Likewise.
4008 (dump_die_shallow): Likewise.
4009 (cu_debug_loc_section): Likewise.
4010
6fb08628
CB
40112019-09-28 Christian Biesinger <cbiesinger@google.com>
4012
4013 * minsyms.c (compare_minimal_symbols): Rename to...
4014 (minimal_symbol_is_less_than): ...this, and adjust to STL
4015 conventions (return bool, take arguments as references)
4016 (minimal_symbol_reader::install): Call std::sort instead
4017 of qsort.
4018
c7ee338a
CB
40192019-09-29 Christian Biesinger <cbiesinger@google.com>
4020
4021 * minsyms.h (msymbol_hash): Document that this is a case-insensitive
4022 hash and why.
4023 * objfiles.h (struct objfile_per_bfd_storage) <demangled_names_hash,
4024 msymbol_hash, msymbol_demangled_hash>: Improve comments.
4025
703a86c2
SM
40262019-09-30 Simon Marchi <simon.marchi@polymtl.ca>
4027
4028 * psymtab.c (add_psymbol_to_list): Move comment to psympriv.h.
4029 * psympriv.h (add_psymbol_to_list): Move comment here and update
4030 it.
4031
0df0352a
TV
40322019-09-29 Tom de Vries <tdevries@suse.de>
4033
4034 * contrib/cc-with-tweaks.sh (get_tmpdir): New function.
4035 Use $tmpdir/$(basename "$output_file").dwz instead of
4036 "${output_file}.dwz".
4037
ad75efa6
SM
40382019-09-28 Simon Marchi <simon.marchi@polymtl.ca>
4039
4040 PR gdb/25045
4041 * hppa-linux-nat.c: Include gdbarch.h.
4042
ececd218
CB
40432019-09-26 Christian Biesinger <cbiesinger@google.com>
4044
4045 * blockframe.c (find_pc_partial_function): Change return type to bool.
4046 * elfread.c (elf_gnu_ifunc_resolve_name): Likewise.
4047 * minsyms.c (in_gnu_ifunc_stub): Likewise.
4048 (stub_gnu_ifunc_resolve_name): Likewise.
4049 * symtab.c (compare_filenames_for_search): Likewise.
4050 (compare_glob_filenames_for_search): Likewise.
4051 (matching_obj_sections): Likewise.
4052 (symbol_matches_domain): Likewise.
4053 (find_line_symtab): Change out param EXACT_MATCH to bool *.
4054 (find_line_pc): Change return type to bool.
4055 (find_line_pc_range): Likewise.
4056 (producer_is_realview): Likewise.
4057 * symtab.h (symbol_matches_domain): Likewise.
4058 (find_pc_partial_function): Likewise.
4059 (find_pc_line_pc_range): Likewise.
4060 (in_gnu_ifunc_stub): Likewise.
4061 (struct gnu_ifunc_fns) <gnu_ifunc_resolve_name>: Likewise.
4062 (find_line_pc): Likewise.
4063 (find_line_pc_range): Likewise.
4064 (matching_obj_sections): Likewise.
4065 (find_line_symtab): Change out parameter to bool.
4066 (producer_is_realview): Change return type to bool.
4067 (compare_filenames_for_search): Likewise.
4068 (compare_glob_filenames_for_search): Likewise.
4069
27a900b8
TT
40702019-09-26 Tom Tromey <tom@tromey.com>
4071
4072 * Makefile.in (COMMON_SFILES): Remove gdb_usleep.c.
4073 (HFILES_NO_SRCDIR): Remove gdb_usleep.h.
4074 * gdb_usleep.h: Remove.
4075 * gdb_usleep.c: Remove.
4076 * utils.c: Don't include gdb_usleep.h.
4077
5d63b30a
TT
40782019-09-26 Tom Tromey <tromey@adacore.com>
4079
4080 * python/py-type.c (type_to_type_object): Call check_typedef
4081 for stub types.
4082
12904d37
TT
40832019-09-26 Tom Tromey <tom@tromey.com>
4084
4085 * utils.h (initialize_utils): Don't declare.
4086 * top.c (gdb_init): Don't call initialize_utils.
4087 * utils.c (initialize_utils): Remove. Move contents...
4088 (_initialize_utils): ... here.
4089
858f25f0
TT
40902019-09-25 Tom Tromey <tom@tromey.com>
4091
4092 * python/py-objfile.c (objfpy_get_build_id): Use bin2hex.
4093 * utils.h (make_hex_string): Don't declare.
4094 * utils.c (make_hex_string): Remove.
4095
3d435220
TV
40962019-09-24 Tom de Vries <tdevries@suse.de>
4097
4098 PR gdb/23815
4099 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers):
4100 Initialize xstateregs before ptrace PTRACE_GETREGSET call.
4101
ddd44b70
DD
41022019-09-23 Dimitar Dimitrov <dimitar@dinux.eu>
4103
4104 * NEWS: Mention new simulator port for PRU.
4105
f945dedf
CB
41062019-09-23 Christian Biesinger <cbiesinger@google.com>
4107
4108 * ada-exp.y (write_object_remaining): Update.
4109 * ada-lang.c (ada_decode): Return a std::string instead of a char*
4110 and eliminate the static buffer.
4111 (ada_decode_symbol): Update.
4112 (ada_la_decode): Update.
4113 (ada_sniff_from_mangled_name): Update.
4114 (is_valid_name_for_wild_match): Update.
4115 (ada_lookup_name_info::matches): Update and simplify.
4116 (name_matches_regex): Update.
4117 (ada_add_global_exceptions): Update.
4118 * ada-lang.h (ada_decode): Update signature.
4119 * ada-varobj.c (ada_varobj_describe_simple_array_child): Update.
4120 * dwarf-index-write.c (debug_names::insert): Update.
4121
7ab78ccb
SM
41222019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
4123
4124 * solib-svr4.c (svr4_iterate_over_objfiles_in_search_order): Fix
4125 formatting.
4126
9252448b
SM
41272019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
4128
4129 * breakpoint.h (bp_location) <inserted, permanent, duplicate>:
4130 Change "nonzero" to "true" in documentation.
4131
626ca2c0
CB
41322019-09-20 Christian Biesinger <cbiesinger@google.com>
4133
4134 * solib-darwin.c (darwin_lookup_lib_symbol): Remove.
4135 (_initialize_darwin_solib): Don't set
4136 darwin_so_ops.lookup_lib_global_symbol.
4137 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets): Call
4138 set_gdbarch_iterate_over_objfiles_in_search_order.
4139 (elf_lookup_lib_symbol): Rename to...
4140 (svr4_iterate_over_objfiles_in_search_order): this, and update
4141 to iterate semantics.
4142 (_initialize_svr4_solib): Don't set lookup_lib_global_symbol.
4143 * solib.c (solib_global_lookup): Remove.
4144 * solist.h (struct target_so_ops): Remove lookup_lib_global_symbol.
4145 (solib_global_lookup): Remove.
4146 * symtab.c (lookup_global_or_static_symbol): Remove call to
4147 solib_global_lookup.
4148
5a3a0d63
JB
41492019-09-20 Joel Brobecker <brobecker@adacore.com>
4150
4151 * NEWS: Move entries about default MI version now being
4152 version 3, and about the GDB/MI fix for multi-location
4153 breakpoints to the "since GDB 8.3" section.
4154
ffea1427
JB
41552019-09-20 Joel Brobecker <brobecker@adacore.com>
4156
4157 GDB 8.3.1 released.
4158
abf516c6
UW
41592019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
4160
4161 * NEWS: Mention that Cell/B.E. debugging support was removed.
4162 * MAINTAINERS: Remove spu target.
4163
4164 * config/djgpp/fnchange.lst: Remove entries for removed files.
4165
4166 * Makefile.in (ALL_TARGET_OBS): Remove solib-spu.o,
4167 spu-multiarch.o, and spu-tdep.o.
4168 (HFILES_NO_SRCDIR): Remove solib-spu.h and spu-tdep.h.
4169 (ALLDEPFILES): Remove solib-spu.c, spu-linux-nat.c,
4170 spu-multiarch.c, and spu-tdep.c.
4171 * spu-linux-nat.c: Remove file.
4172 * spu-multiarch.c: Remove file.
4173 * spu-tdep.c: Remove file.
4174 * spu-tdep.h: Remove file.
4175 * solib-spu.c: Remove file.
4176 * solib-spu.h: Remove file.
4177
4178 * configure.host (powerpc64*-*-linux*): Remove Cell/B.E. support.
4179 * configure.nat (spu-linux): Remove.
4180 * configure.tgt (powerpc*-*-linux*): Remove solib-spu.o and
4181 solib-multiarch.o from gdb_target_obs.
4182 (spu*-*-*): Remove.
4183
4184 * arch/ppc-linux-common.h (struct ppc_linux_features): Remove "cell"
4185 feature flag.
4186 (ppc_linux_no_features): Update.
4187 * arch/ppc-linux-common.c (ppc_linux_match_description): Remove
4188 Cell/B.E. support.
4189 * arch/ppc-linux-tdesc.h (tdesc_powerpc_cell32l): Remove declaration.
4190 (tdesc_powerpc_cell64l): Likewise.
4191 * nat/ppc-linux.h (PPC_FEATURE_CELL): Remove.
4192 * ppc-linux-nat.c (ppc_linux_nat_target::read_description): Remove
4193 Cell/B.E. support.
4194 * ppc-linux-tdep.h: Do not include "solib-spu.h" or "spu-tdep.h".
4195 Do not include "features/rs6000/powerpc-cell32l.c" or
4196 "features/rs6000/powerpc-cell64l.c".
4197 (ppc_linux_spu_section): Remove.
4198 (ppc_linux_core_read_description): Remove Cell/B.E. support.
4199 (spe_context_objfile, spe_context_lm_addr, spe_context_offset,
4200 spe_context_cache_ptid, spe_context_cache_ptid): Remove.
4201 (ppc_linux_spe_context_lookup): Remove.
4202 (ppc_linux_spe_context_inferior_created): Remove.
4203 (ppc_linux_spe_context_solib_loaded): Remove.
4204 (ppc_linux_spe_context_solib_unloaded): Remove.
4205 (ppc_linux_spe_context): Remove.
4206 (struct ppu2spu_cache): Remove.
4207 (ppu2spu_prev_arch, ppu2spu_this_id, ppu2spu_prev_register): Remove.
4208 (struct ppu2spu_data): Remove.
4209 (ppu2spu_unwind_register, ppu2spu_sniffer, ppu2spu_dealloc_cache,
4210 ppu2spu_unwind): Remove.
4211 (ppc_linux_init_abi): Remove Cell/B.E. support.
4212 * rs6000-tdep.h (rs6000_gdbarch_init): Remove Cell/B.E. support.
4213
4214 * features/Makefile (rs6000/powerpc-cell32l-expedite): Remove.
4215 (rs6000/powerpc-cell64l-expedite): Likewise
4216 (WHICH): Remove rs6000/powerpc-cell32l and rs6000/powerpc-cell64l.
4217 (XMLTOC): Remove rs6000/powerpc-cell32l.xml and
4218 rs6000/powerpc-cell64l.xml.
4219 * features/rs6000/powerpc-cell32l.xml: Remove.
4220 * features/rs6000/powerpc-cell64l.xml: Likewise.
4221 * features/rs6000/powerpc-cell32l.c: Remove generated file.
4222 * features/rs6000/powerpc-cell64l.c: Likewise.
4223 * regformats/rs6000/powerpc-cell32l.dat: Remove generated file.
4224 * regformats/rs6000/powerpc-cell64l.dat: Likewise.
4225 * regformats/reg-spu.dat: Remove.
4226
4227 * target.h (enum target_object): Remove TARGET_OBJECT_SPU.
4228 * corelow.c (struct spuid_list): Remove.
4229 (add_to_spuid_list): Remove.
4230 (core_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
4231 * remote.c (PACKET_qXfer_spu_read, PACKET_qXfer_spu_write): Remove.
4232 (remote_protocol_features): Remove associated entries.
4233 (_initialize_remote): No longer initialize them.
4234 (remote_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
4235 * linux-nat.c (SPUFS_MAGIC): Remove.
4236 (linux_proc_xfer_spu): Remove.
4237 (spu_enumerate_spu_ids): Remove.
4238 (linux_nat_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
4239 * linux-tdep.c (-linux_spu_make_corefile_notes): Remove.
4240 (linux_make_corefile_notes): No longer call it.
4241
4242 * regcache.c (cooked_read_test): Remove bfd_arch_spu special case.
4243 (cooked_write_test): Likewise.
4244
78e8cb91
TT
42452019-09-20 Tom Tromey <tom@tromey.com>
4246
4247 * NEWS: Mention case-sensitivity of TUI commands.
4248 * tui/tui-win.c (tui_set_focus_command): Now case-sensitive.
4249 (tui_set_win_height_command, parse_scrolling_args): Likewise.
4250 * tui/tui-layout.c (tui_layout_command): Now case-sensitive.
4251
f074b67e
TT
42522019-09-20 Tom Tromey <tom@tromey.com>
4253
4254 * tui/tui-source.c (tui_source_window::set_contents): Use
4255 make_unique_xstrdup.
4256 * tui/tui-disasm.c (tui_disasm_window::set_contents): Use
4257 make_unique_xstrdup.
4258
63c4bf19
TT
42592019-09-20 Tom Tromey <tom@tromey.com>
4260
4261 * tui/tui-data.c: Remove separator comments.
4262 * tui/tui-layout.c: Remove separator comments.
4263 * tui/tui-win.c: Remove separator comments.
4264 * tui/tui-wingeneral.c: Remove separator comments.
4265
43df9b2f
TT
42662019-09-20 Tom Tromey <tom@tromey.com>
4267
4268 * tui/tui.h (strcat_to_buf): Don't declare.
4269 * tui/tui.c (strcat_to_buf): Remove.
4270
7226433c
TT
42712019-09-20 Tom Tromey <tom@tromey.com>
4272
4273 * tui/tui-source.h (struct tui_source_window) <m_fullname>: Rename
4274 from "fullname".
4275 * tui/tui-source.c (tui_source_window::set_contents)
4276 (tui_source_window::location_matches_p)
4277 (tui_source_window::maybe_update): Update.
4278
80df3337
TT
42792019-09-20 Tom Tromey <tom@tromey.com>
4280
4281 * tui/tui-regs.h (struct tui_data_window) <get_current_group>:
4282 Update.
4283 <m_regs_content, m_regs_column_count, m_current_group>: Add "m_"
4284 prefix.
4285 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
4286 (tui_data_window::line_from_reg_element_no)
4287 (tui_data_window::first_reg_element_no_inline)
4288 (tui_data_window::show_registers)
4289 (tui_data_window::show_register_group)
4290 (tui_data_window::display_registers_from)
4291 (tui_data_window::display_registers_from_line)
4292 (tui_data_window::first_data_item_displayed)
4293 (tui_data_window::delete_data_content_windows)
4294 (tui_data_window::erase_data_content)
4295 (tui_data_window::do_scroll_vertical)
4296 (tui_data_window::refresh_window)
4297 (tui_data_window::check_register_values): Update.
4298
9923f347
TT
42992019-09-20 Tom Tromey <tom@tromey.com>
4300
4301 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN): Remove define.
4302 (struct tui_locator_window) <full_name, proc_name>: Now
4303 std::string.
4304 * tui/tui-stack.c (tui_locator_window::make_status_line)
4305 (tui_locator_window::set_locator_fullname)
4306 (tui_locator_window::set_locator_info): Update.
4307 * tui/tui-source.c (tui_source_window::set_contents)
4308 (tui_source_window::showing_source_p): Update.
4309
b76251ab
TT
43102019-09-20 Tom Tromey <tom@tromey.com>
4311
4312 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
4313 Don't call tui_locator_win_info_ptr.
4314
0891be08
TT
43152019-09-20 Tom Tromey <tom@tromey.com>
4316
4317 * tui/tui-win.c (tui_resize_all): Don't call refresh.
4318
1b935acf
TT
43192019-09-20 Tom Tromey <tom@tromey.com>
4320
4321 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use 1 as
4322 height for locator.
4323 * tui/tui-stack.c (tui_locator_window::rerender): Call scrollok.
4324 * tui/tui-layout.c (show_source_disasm_command, show_data)
4325 (show_source_or_disasm_and_command): Use 1 as height for locator.
4326
9abd8a65
TT
43272019-09-20 Tom Tromey <tom@tromey.com>
4328
4329 * tui/tui.c (tui_enable): Update.
4330 * tui/tui-win.c (tui_sigwinch_handler, tui_async_resize_screen):
4331 Update.
4332 * tui/tui-data.h (tui_win_resized, tui_set_win_resized_to):
4333 Update.
4334 * tui/tui-data.c (win_resized): Now bool.
4335 (tui_win_resized): Return bool.
4336 (tui_set_win_resized_to): Accept a bool.
4337
b5457826
TT
43382019-09-20 Tom Tromey <tom@tromey.com>
4339
4340 * tui/tui-regs.h (struct tui_data_window) <show_register_group>:
4341 Change type of "refresh_values_only".
4342 * tui/tui-regs.c (tui_data_window::show_register_group): Change
4343 type of "refresh_values_only".
4344
6b915f7d
TT
43452019-09-20 Tom Tromey <tom@tromey.com>
4346
4347 * tui/tui-disasm.c (struct tui_asm_line) <addr_string, insn>: Now
4348 std::string.
4349 (tui_disassemble): Add "pos" parameter.
4350 (tui_disasm_window::set_contents): Simplify.
4351
2ad52f6f
TT
43522019-09-20 Tom Tromey <tom@tromey.com>
4353
4354 * tui/tui-winsource.h (struct tui_source_window_base)
4355 <show_source_content>: Now private.
4356 * tui/tui-winsource.c
4357 (tui_source_window_base::show_source_content): Don't handle empty
4358 content case.
4359
b3b1bde6
TT
43602019-09-20 Tom Tromey <tom@tromey.com>
4361
4362 * tui/tui-layout.c (show_source_disasm_command)
4363 (show_source_or_disasm_and_command): Don't call
4364 show_source_content.
4365
71a25ed2
TT
43662019-09-20 Tom Tromey <tom@tromey.com>
4367
4368 * tui/tui-stack.h (struct tui_locator_window) <make_status_line>:
4369 Declare.
4370 * tui/tui-stack.c (tui_locator_window::make_status_line): Rename
4371 from tui_make_status_line.
4372 (tui_locator_window::rerender): Update.
4373
f8532154
TT
43742019-09-20 Tom Tromey <tom@tromey.com>
4375
4376 * tui/tui-stack.c (tui_make_status_line): Return std::string.
4377 (tui_locator_window::rerender): Update.
4378
2d81b349
TT
43792019-09-20 Tom Tromey <tom@tromey.com>
4380
4381 * tui/tui-winsource.h (struct tui_source_window_base)
4382 <~tui_source_window_base>: Don't declare.
4383 <fullname>: Remove.
4384 * tui/tui-winsource.c (~tui_source_window_base): Remove.
4385 * tui/tui-source.h (struct tui_source_window) <fullname>: New
4386 member.
4387 * tui/tui-source.c (tui_source_window::set_contents): Update.
4388 (tui_source_window::location_matches_p)
4389 (tui_source_window::maybe_update): Update.
4390
f14bec58
TT
43912019-09-20 Tom Tromey <tom@tromey.com>
4392
4393 * tui/tui-winsource.h (~tui_source_element): Remove.
4394 (tui_source_element): Update.
4395 (struct tui_source_element) <line>: Now a unique_xmalloc_ptr.
4396 * tui/tui-winsource.c (tui_show_source_line): Update.
4397 * tui/tui-source.c (tui_source_window::set_contents): Update.
4398 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
4399
78d5933a
TT
44002019-09-20 Tom Tromey <tom@tromey.com>
4401
4402 * tui/tui-data.h (tui_clear_source_windows_detail): Don't
4403 declare.
4404 * tui/tui-layout.c (tui_add_win_to_layout): Don't call
4405 tui_clear_source_windows_detail.
4406 * tui/tui-winsource.h (struct tui_source_window_base)
4407 <clear_detail>: Don't declare.
4408 * tui/tui-winsource.c (tui_source_window_base::clear_detail):
4409 Remove.
4410 * tui/tui-data.c (tui_clear_source_windows_detail): Remove.
4411
d4207696
TT
44122019-09-20 Tom Tromey <tromey@adacore.com>
4413
4414 PR ada/24919:
4415 * block.c (contained_in): Fix final return value.
4416
00f93c44
AM
44172019-09-20 Alan Modra <amodra@gmail.com>
4418
4419 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Use bfd_set_usrdata.
4420 * dwarf2read.c (dwarf2_read_gdb_index, dwarf2_read_debug_names),
4421 (read_indirect_string_from_dwz): Use bfd accessor.
4422 * dwarf2read.h (struct dwz_file <filename>): Likewise.
4423 * machoread.c (macho_symfile_read_all_oso): Likewise.
4424 * solib.c (solib_bfd_open): Likewise.
4425
e4153ae6
CB
44262019-09-19 Christian Biesinger <cbiesinger@google.com>
4427
4428 * eval.c: Move declaration of overload_resolution to...
4429 * value.h: ...here.
4430
c7ae7675
CB
44312019-09-19 Christian Biesinger <cbiesinger@google.com>
4432
4433 * arm-linux-nat.c: Remove extern declaration for arm_apcs_32.
4434 * arm-linux-tdep.c: Likewise.
4435 * arm-nbsd-nat.c: Likewise.
4436 * arm-tdep.h: Declare arm_apcs_32.
4437 * arm-tdep.c: Move documentation for arm_apcs_32 to arm-tdep.h.
4438
e86f08d2
CB
44392019-09-19 Christian Biesinger <cbiesinger@google.com>
4440
4441 * dwarf2loc.c: Remove extern declaration of dwarf_always_disassemble.
4442 * dwarf2read.h: Declare dwarf_always_disassemble.
4443
f64e2f40
TV
44442019-09-19 Tom de Vries <tdevries@suse.de>
4445
4446 PR gdb/25009
4447 * source-cache.c (source_cache::ensure): Catch exception thrown during
4448 construction of the highlighter.
4449
fd361982
AM
44502019-09-18 Alan Modra <amodra@gmail.com>
4451
4452 * aarch64-linux-tdep.c, * arm-tdep.c, * auto-load.c,
4453 * coff-pe-read.c, * coffread.c, * corelow.c, * dbxread.c,
4454 * dicos-tdep.c, * dwarf2-frame.c, * dwarf2read.c, * elfread.c,
4455 * exec.c, * fbsd-tdep.c, * gcore.c, * gdb_bfd.c, * gdb_bfd.h,
4456 * hppa-tdep.c, * i386-cygwin-tdep.c, * i386-fbsd-tdep.c,
4457 * i386-linux-tdep.c, * jit.c, * linux-tdep.c, * machoread.c,
4458 * maint.c, * mdebugread.c, * minidebug.c, * mips-linux-tdep.c,
4459 * mips-sde-tdep.c, * mips-tdep.c, * mipsread.c, * nto-tdep.c,
4460 * objfiles.c, * objfiles.h, * osabi.c, * ppc-linux-tdep.c,
4461 * ppc64-tdep.c, * record-btrace.c, * record-full.c, * remote.c,
4462 * rs6000-aix-tdep.c, * rs6000-tdep.c, * s390-linux-tdep.c,
4463 * s390-tdep.c, * solib-aix.c, * solib-dsbt.c, * solib-frv.c,
4464 * solib-spu.c, * solib-svr4.c, * solib-target.c,
4465 * spu-linux-nat.c, * spu-tdep.c, * symfile-mem.c, * symfile.c,
4466 * symmisc.c, * symtab.c, * target.c, * windows-nat.c,
4467 * xcoffread.c, * cli/cli-dump.c, * compile/compile-object-load.c,
4468 * mi/mi-interp.c: Update throughout for bfd section macro and
4469 function changes.
4470 * gcore (gcore_create_callback): Use bfd_set_section_lma.
4471 * spu-tdep.c (spu_overlay_new_objfile): Likewise.
4472
11061048
TT
44732019-09-18 Tom Tromey <tom@tromey.com>
4474
4475 * NEWS: Add entry.
4476 * tui/tui.c (tui_initialize_readline): Set name of keymap. Do not
4477 call rl_initialize.
4478 (tui_enable): Do not call rl_initialize.
4479
7a27b85f
CG
44802019-09-18 Christian Groessler <chris@groessler.org>
4481
4482 * alpha-linux-nat.c: Include gdbarch.h.
4483
f64eea3a
SM
44842019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
4485
4486 * ui-file.c: Include cli/cli-style.h.
4487 (term_cli_styling): Remove cli_styling declaration.
4488
e6f7f6d1
AM
44892019-09-18 Alan Modra <amodra@gmail.com>
4490
4491 * arm-tdep.c (arm_record_special_symbol): Update bfd_get_section
4492 to bfd_asymbol_section.
4493
1d38e9d1
AM
44942019-09-18 Alan Modra <amodra@gmail.com>
4495
4496 * amd64-dicos-tdep.c (amd64_dicos_osabi_sniffer): Constify target.
4497 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
4498 * i386-dicos-tdep.c (i386_dicos_osabi_sniffer): Likewise.
4499
90d92a63
AM
45002019-09-18 Alan Modra <amodra@gmail.com>
4501
4502 * solib-spu.c (spu_bfd_open): Use bfd_set_filename.
4503 * spu-linux-nat.c (spu_bfd_open): Likewise.
4504
a3d181d2
CB
45052019-09-18 Christian Biesinger <cbiesinger@google.com>
4506
4507 * dwarf2loc.c: Change extern declaration of dwarf_always_disassemble
4508 to bool to match definition in dwarf2read.c.
4509
491144b5
CB
45102019-09-17 Christian Biesinger <cbiesinger@google.com>
4511
4512 * ada-lang.c (ada_ignore_descriptive_types_p): Change to bool.
4513 (print_signatures): Likewise.
4514 (trust_pad_over_xvs): Likewise.
4515 * arch/aarch64-insn.c (aarch64_debug): Likewise.
4516 * arch/aarch64-insn.h (aarch64_debug): Likewise.
4517 * arm-linux-nat.c (arm_apcs_32): Likewise.
4518 * arm-linux-tdep.c (arm_apcs_32): Likewise.
4519 * arm-nbsd-nat.c (arm_apcs_32): Likewise.
4520 * arm-tdep.c (arm_debug): Likewise.
4521 (arm_apcs_32): Likewise.
4522 * auto-load.c (debug_auto_load): Likewise.
4523 (auto_load_gdb_scripts): Likewise.
4524 (global_auto_load): Likewise.
4525 (auto_load_local_gdbinit): Likewise.
4526 (auto_load_local_gdbinit_loaded): Likewise.
4527 * auto-load.h (global_auto_load): Likewise.
4528 (auto_load_local_gdbinit): Likewise.
4529 (auto_load_local_gdbinit_loaded): Likewise.
4530 * breakpoint.c (disconnected_dprintf): Likewise.
4531 (breakpoint_proceeded): Likewise.
4532 (automatic_hardware_breakpoints): Likewise.
4533 (always_inserted_mode): Likewise.
4534 (target_exact_watchpoints): Likewise.
4535 (_initialize_breakpoint): Update.
4536 * breakpoint.h (target_exact_watchpoints): Change to bool.
4537 * btrace.c (maint_btrace_pt_skip_pad): Likewise.
4538 * cli/cli-cmds.c (trace_commands): Likewise.
4539 * cli/cli-cmds.h (trace_commands): Likewise.
4540 * cli/cli-decode.c (add_setshow_boolean_cmd): Change int* argument
4541 to bool*.
4542 * cli/cli-logging.c (logging_overwrite): Change to bool.
4543 (logging_redirect): Likewise.
4544 (debug_redirect): Likewise.
4545 * cli/cli-option.h (option_def) <boolean>: Change return type to bool*.
4546 (struct boolean_option_def) <get_var_address_cb_>: Change return type
4547 to bool.
4548 <boolean_option_def>: Update.
4549 (struct flag_option_def): Change default type of Context to bool
4550 from int.
4551 <flag_option_def>: Change return type of var_address_cb_ to bool*.
4552 * cli/cli-setshow.c (do_set_command): Cast to bool* instead of int*.
4553 (get_setshow_command_value_string): Likewise.
4554 * cli/cli-style.c (cli_styling): Change to bool.
4555 (source_styling): Likewise.
4556 * cli/cli-style.h (source_styling): Likewise.
4557 (cli_styling): Likewise.
4558 * cli/cli-utils.h (struct qcs_flags) <quiet, cont, silent>: Change
4559 to bool.
4560 * command.h (var_types): Update comment.
4561 (add_setshow_boolean_cmd): Change int* var argument to bool*.
4562 * compile/compile-cplus-types.c (debug_compile_cplus_types): Change to
4563 bool.
4564 (debug_compile_cplus_scopes): Likewise.
4565 * compile/compile-internal.h (compile_debug): Likewise.
4566 * compile/compile.c (compile_debug): Likewise.
4567 (struct compile_options) <raw>: Likewise.
4568 * cp-support.c (catch_demangler_crashes): Likewise.
4569 * cris-tdep.c (usr_cmd_cris_version_valid): Likewise.
4570 (usr_cmd_cris_dwarf2_cfi): Likewise.
4571 * csky-tdep.c (csky_debug): Likewise.
4572 * darwin-nat.c (enable_mach_exceptions): Likewise.
4573 * dcache.c (dcache_enabled_p): Likewise.
4574 * defs.h (info_verbose): Likewise.
4575 * demangle.c (demangle): Likewise.
4576 (asm_demangle): Likewise.
4577 * dwarf-index-cache.c (debug_index_cache): Likewise.
4578 * dwarf2-frame.c (dwarf2_frame_unwinders_enabled_p): Likewise.
4579 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Likewise.
4580 * dwarf2read.c (check_physname): Likewise.
4581 (use_deprecated_index_sections): Likewise.
4582 (dwarf_always_disassemble): Likewise.
4583 * eval.c (overload_resolution): Likewise.
4584 * event-top.c (set_editing_cmd_var): Likewise.
4585 (exec_done_display_p): Likewise.
4586 * event-top.h (set_editing_cmd_var): Likewise.
4587 (exec_done_display_p): Likewise.
4588 * exec.c (write_files): Likewise.
4589 * fbsd-nat.c (debug_fbsd_lwp): Likewise
4590 (debug_fbsd_nat): Likewise.
4591 * frame.h (struct frame_print_options) <print_raw_frame_arguments>:
4592 Likewise.
4593 (struct set_backtrace_options) <backtrace_past_main>: Likewise.
4594 <backtrace_past_entry> Likewise.
4595 * gdb-demangle.h (demangle): Likewise.
4596 (asm_demangle): Likewise.
4597 * gdb_bfd.c (bfd_sharing): Likewise.
4598 * gdbcore.h (write_files): Likewise.
4599 * gdbsupport/common-debug.c (show_debug_regs): Likewise.
4600 * gdbsupport/common-debug.h (show_debug_regs): Likewise.
4601 * gdbthread.h (print_thread_events): Likewise.
4602 * gdbtypes.c (opaque_type_resolution): Likewise.
4603 (strict_type_checking): Likewise.
4604 * gnu-nat.c (gnu_debug_flag): Likewise.
4605 * guile/scm-auto-load.c (auto_load_guile_scripts): Likewise.
4606 * guile/scm-param.c (pascm_variable): Add boolval.
4607 (add_setshow_generic): Update.
4608 (pascm_param_value): Update.
4609 (pascm_set_param_value_x): Update.
4610 * hppa-tdep.c (hppa_debug): Change to bool..
4611 * infcall.c (may_call_functions_p): Likewise.
4612 (coerce_float_to_double_p): Likewise.
4613 (unwind_on_signal_p): Likewise.
4614 (unwind_on_terminating_exception_p): Likewise.
4615 * infcmd.c (startup_with_shell): Likewise.
4616 * inferior.c (print_inferior_events): Likewise.
4617 * inferior.h (startup_with_shell): Likewise.
4618 (print_inferior_events): Likewise.
4619 * infrun.c (step_stop_if_no_debug): Likewise.
4620 (detach_fork): Likewise.
4621 (debug_displaced): Likewise.
4622 (disable_randomization): Likewise.
4623 (non_stop): Likewise.
4624 (non_stop_1): Likewise.
4625 (observer_mode): Likewise.
4626 (observer_mode_1): Likewise.
4627 (set_observer_mode): Update.
4628 (sched_multi): Change to bool.
4629 * infrun.h (debug_displaced): Likewise.
4630 (sched_multi): Likewise.
4631 (step_stop_if_no_debug): Likewise.
4632 (non_stop): Likewise.
4633 (disable_randomization): Likewise.
4634 * linux-tdep.c (use_coredump_filter): Likewise.
4635 (dump_excluded_mappings): Likewise.
4636 * linux-thread-db.c (auto_load_thread_db): Likewise.
4637 (check_thread_db_on_load): Likewise.
4638 * main.c (captured_main_1): Update.
4639 * maint-test-options.c (struct test_options_opts) <flag_opt, xx1_opt,
4640 xx2_opt, boolean_opt>: Change to bool.
4641 * maint-test-settings.c (maintenance_test_settings_boolean): Likewise.
4642 * maint.c (maintenance_profile_p): Likewise.
4643 (per_command_time): Likewise.
4644 (per_command_space): Likewise.
4645 (per_command_symtab): Likewise.
4646 * memattr.c (inaccessible_by_default): Likewise.
4647 * mi/mi-main.c (mi_async): Likewise.
4648 (mi_async_1): Likewise.
4649 * mips-tdep.c (mips64_transfers_32bit_regs_p): Likewise.
4650 * nat/fork-inferior.h (startup_with_shell): Likewise.
4651 * nat/linux-namespaces.c (debug_linux_namespaces): Likewise.
4652 * nat/linux-namespaces.h (debug_linux_namespaces): Likewise.
4653 * nios2-tdep.c (nios2_debug): Likewise.
4654 * or1k-tdep.c (or1k_debug): Likewise.
4655 * parse.c (parser_debug): Likewise.
4656 * parser-defs.h (parser_debug): Likewise.
4657 * printcmd.c (print_symbol_filename): Likewise.
4658 * proc-api.c (procfs_trace): Likewise.
4659 * python/py-auto-load.c (auto_load_python_scripts): Likewise.
4660 * python/py-param.c (union parmpy_variable): Add "bool boolval" field.
4661 (set_parameter_value): Update.
4662 (add_setshow_generic): Update.
4663 * python/py-value.c (copy_py_bool_obj): Change argument from int*
4664 to bool*.
4665 * python/python.c (gdbpy_parameter_value): Cast to bool* instead of
4666 int*.
4667 * ravenscar-thread.c (ravenscar_task_support): Change to bool.
4668 * record-btrace.c (record_btrace_target::store_registers): Update.
4669 * record-full.c (record_full_memory_query): Change to bool.
4670 (record_full_stop_at_limit): Likewise.
4671 * record-full.h (record_full_memory_query): Likewise.
4672 * remote-notif.c (notif_debug): Likewise.
4673 * remote-notif.h (notif_debug): Likewise.
4674 * remote.c (use_range_stepping): Likewise.
4675 (interrupt_on_connect): Likewise.
4676 (remote_break): Likewise.
4677 * ser-tcp.c (tcp_auto_retry): Likewise.
4678 * ser-unix.c (serial_hwflow): Likewise.
4679 * skip.c (debug_skip): Likewise.
4680 * solib-aix.c (solib_aix_debug): Likewise.
4681 * spu-tdep.c (spu_stop_on_load_p): Likewise.
4682 (spu_auto_flush_cache_p): Likewise.
4683 * stack.c (struct backtrace_cmd_options) <full, no_filters, hide>:
4684 Likewise.
4685 (struct info_print_options) <quiet>: Likewise.
4686 * symfile-debug.c (debug_symfile): Likewise.
4687 * symfile.c (auto_solib_add): Likewise.
4688 (separate_debug_file_debug): Likewise.
4689 * symfile.h (auto_solib_add): Likewise.
4690 (separate_debug_file_debug): Likewise.
4691 * symtab.c (basenames_may_differ): Likewise.
4692 (struct filename_partial_match_opts) <dirname, basename>: Likewise.
4693 (struct info_print_options) <quiet, exclude_minsyms>: Likewise.
4694 (struct info_types_options) <quiet>: Likewise.
4695 * symtab.h (demangle): Likewise.
4696 (basenames_may_differ): Likewise.
4697 * target-dcache.c (stack_cache_enabled_1): Likewise.
4698 (code_cache_enabled_1): Likewise.
4699 * target.c (trust_readonly): Likewise.
4700 (may_write_registers): Likewise.
4701 (may_write_memory): Likewise.
4702 (may_insert_breakpoints): Likewise.
4703 (may_insert_tracepoints): Likewise.
4704 (may_insert_fast_tracepoints): Likewise.
4705 (may_stop): Likewise.
4706 (auto_connect_native_target): Likewise.
4707 (target_stop_and_wait): Update.
4708 (target_async_permitted): Change to bool.
4709 (target_async_permitted_1): Likewise.
4710 (may_write_registers_1): Likewise.
4711 (may_write_memory_1): Likewise.
4712 (may_insert_breakpoints_1): Likewise.
4713 (may_insert_tracepoints_1): Likewise.
4714 (may_insert_fast_tracepoints_1): Likewise.
4715 (may_stop_1): Likewise.
4716 * target.h (target_async_permitted): Likewise.
4717 (may_write_registers): Likewise.
4718 (may_write_memory): Likewise.
4719 (may_insert_breakpoints): Likewise.
4720 (may_insert_tracepoints): Likewise.
4721 (may_insert_fast_tracepoints): Likewise.
4722 (may_stop): Likewise.
4723 * thread.c (struct info_threads_opts) <show_global_ids>: Likewise.
4724 (make_thread_apply_all_options_def_group): Change argument from int*
4725 to bool*.
4726 (thread_apply_all_command): Update.
4727 (print_thread_events): Change to bool.
4728 * top.c (confirm): Likewise.
4729 (command_editing_p): Likewise.
4730 (history_expansion_p): Likewise.
4731 (write_history_p): Likewise.
4732 (info_verbose): Likewise.
4733 * top.h (confirm): Likewise.
4734 (history_expansion_p): Likewise.
4735 * tracepoint.c (disconnected_tracing): Likewise.
4736 (circular_trace_buffer): Likewise.
4737 * typeprint.c (print_methods): Likewise.
4738 (print_typedefs): Likewise.
4739 * utils.c (debug_timestamp): Likewise.
4740 (sevenbit_strings): Likewise.
4741 (pagination_enabled): Likewise.
4742 * utils.h (sevenbit_strings): Likewise.
4743 (pagination_enabled): Likewise.
4744 * valops.c (overload_resolution): Likewise.
4745 * valprint.h (struct value_print_options) <prettyformat_arrays,
4746 prettyformat_structs, vtblprint, unionprint, addressprint, objectprint,
4747 stop_print_at_null, print_array_indexes, deref_ref, static_field_print,
4748 pascal_static_field_print, raw, summary, symbol_print, finish_print>:
4749 Likewise.
4750 * windows-nat.c (new_console): Likewise.
4751 (cygwin_exceptions): Likewise.
4752 (new_group): Likewise.
4753 (debug_exec): Likewise.
4754 (debug_events): Likewise.
4755 (debug_memory): Likewise.
4756 (debug_exceptions): Likewise.
4757 (useshell): Likewise.
4758 * windows-tdep.c (maint_display_all_tib): Likewise.
4759 * xml-support.c (debug_xml): Likewise.
4760
f1b620e9
MG
47612019-09-17 Mike Gulick <mgulick@mathworks.com>
4762
4763 * source.c (prepare_path_for_appending): New function.
4764 (openp): Make use of new function.
4765 (find_and_open_source): Search for the compilation directory and
4766 source file as a relative path beneath the directory search path.
4767
67f3ed6a
AB
47682019-09-17 Andrew Burgess <andrew.burgess@embecosm.com>
4769
4770 * source-cache.c (source_cache::get_line_charpos): Catch
4771 exceptions and return false, this matches the behaviour documented
4772 in the header file.
4773
74332189
JB
47742019-09-17 Joel Brobecker <brobecker@adacore.com>
4775
4776 * ada-tasks.c (info_task): Remove quoting of the task's name.
4777
f2f24aa9
CB
47782019-09-16 Christian Biesinger <cbiesinger@google.com>
4779
4780 * symfile.c (auto_solib_add): Replace comment with a reference
4781 to the header file.
4782
6a062a93
CB
47832019-09-14 Christian Biesinger <cbiesinger@google.com>
4784
4785 * NEWS: Mention that gdb can now be compiled with Python 3
4786 on Windows.
4787
ec6c8338
AB
47882019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
4789
4790 * maint.c (maint_print_section_data::maint_print_section_data):
4791 Force use of 'float log10 (float)' by casting the argument to
4792 float.
4793
aa17805f
AB
47942019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
4795
4796 * maint.c: Add 'cmath' include.
4797 (struct maint_print_section_data): New structure.
4798 (print_section_index): New function.
4799 (print_bfd_section_info): Add header comment, small whitespace
4800 cleanup, and update to call new print_section_index function.
4801 (print_objfile_section_info): Likewise.
4802 (maint_obj_section_from_bfd_section): New function.
4803 (print_bfd_section_info_maybe_relocated): New function.
4804 (maintenance_info_sections): Add header comment, always use
4805 bfd_map_over_sections instead of ALL_OBJFILE_OSECTIONS.
4806
3dd9bb46
AB
48072019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
4808
4809 * psymtab.c (find_pc_sect_psymtab): Move baseaddr local into more
4810 inner scope, add check that the objfile has psymtabs before
4811 checking psymtabs_addrmap.
4812 * psymtab.h (psymtab_storage) <psymtabs_addrmap>: Extend comment.
4813
4993045d
PW
48142019-09-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4815
4816 * NEWS: Announce that Ada task names are now shown at more places,
4817 and between quotes (except in info task output).
4818 * gdb/ada-tasks.c (task_to_str): New function.
4819 (display_current_task_id): Call task_to_str.
4820 (task_command_1): Likewise.
4821 (print_ada_task_info): In non-mi mode, Properly align headers and data
4822 when task-id length is > 9 (9 is the default for a 32 bits CORE_ADDR).
4823
7a289707
RO
48242019-09-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4825
4826 * procfs.c (procfs_target::wait) <PR_FAULTED>: Get signal from
4827 prstatus.pr_lwp.pr_info instead of making it up.
4828
f2aec7f6
CB
48292019-09-11 Christian Biesinger <cbiesinger@google.com>
4830
4831 * auto-load.c (auto_load_expand_dir_vars): Update.
4832 * defs.h (gdb_datadir): Change to std::string.
4833 (python_libdir): Likewise.
4834 (relocate_gdb_directory): Change return type to std::string.
4835 * guile/guile.c (gdbscm_data_directory): Update.
4836 (initialize_scheme_side): Update.
4837 * jit.c (jit_reader_dir): Change to std::string.
4838 (jit_reader_load_command): Update.
4839 * main.c (gdb_datadir): Change to std::string.
4840 (python_libdir): Likewise.
4841 (set_gdb_data_directory): Update.
4842 (relocate_path): Change to return std::string.
4843 (relocate_gdb_directory): Change to return std::string.
4844 (relocate_gdbinit_path_maybe_in_datadir): Update.
4845 (captured_main_1): Update.
4846 * python/python.c (do_start_initialization): Update.
4847 * top.c (show_gdb_datadir): Update.
4848 * xml-syscall.c (xml_init_syscalls_info): Update.
4849 (init_syscalls_info): Update.
4850
9224a013
CB
48512019-09-11 Christian Biesinger <cbiesinger@google.com>
4852
4853 * main.c (relocate_gdbinit_path_maybe_in_datadir): Factor this code
4854 out of get_init_files.
4855 (get_init_files): Update.
4856
f48cd836
CB
48572019-09-11 Christian Biesinger <cbiesinger@google.com>
4858
4859 * main.c (get_init_files): Change to use std::string.
4860 (captured_main_1): Update.
4861 (print_gdb_help): Update.
4862
9cab7ecd
AT
48632019-09-11 Ali Tamur <tamur@google.com>
4864
4865 *gdb/target-float.c (host_float_ops<T>::to_longest): Update
4866 implementation.
4867
67547d89
CB
48682019-09-11 Christian Biesinger <cbiesinger@google.com>
4869
4870 * dbxread.c (read_dbx_symtab): Update.
4871 * dwarf2read.c (load_partial_dies): Update.
4872 * mdebugread.c (parse_partial_symbols): Update.
4873 (handle_psymbol_enumerators): Update.
4874 * psympriv.h (add_psymbol_to_list): Change type of copy_names to bool.
4875 * psymtab.c (add_psymbol_to_bcache): Likewise.
4876 (add_psymbol_to_list): Likewise.
4877 * symtab.c (symbol_set_names): Likewise.
4878 * symtab.h (symbol_set_names): Likewise.
4879 * xcoffread.c (scan_xcoff_symtab): Update.
4880
64b2d4a0
TT
48812019-09-11 Tom Tromey <tom@tromey.com>
4882
4883 * symfile-mem.c (symbol_file_add_from_memory): Use
4884 bfd_set_filename.
4885 * solib-darwin.c (darwin_bfd_open): Use bfd_set_filename.
4886 * solib-aix.c (solib_aix_bfd_open): Use bfd_set_filename.
4887
3b00ef10
TT
48882019-09-10 Tom Tromey <tromey@adacore.com>
4889
4890 * dwarf-index-write.c (write_psymbols): Extend error message.
4891 (debug_names::insert): Add Ada code.
4892 (debug_names::write_psymbols): Remove Ada check.
4893 (debug_names) <m_string_obstack>: New member.
4894 * dwarf2read.c (gdb_index_symbol_name_matcher): Remove.
4895 (gdb_index_symbol_name_matcher::matches): Remove.
4896 (mapped_index_base::find_name_components_bounds): Add "lang"
4897 parameter.
4898 (mapped_index_base::build_name_components): Also split names
4899 according to Ada syntax.
4900 (dw2_expand_symtabs_matching_symbol): Loop over languages. Change
4901 type of "match_callback".
4902 (check_match, check_find_bounds_finds)
4903 (dw2_expand_symtabs_matching): Update.
4904 (dw2_debug_names_iterator): Add new constructor.
4905 (dw2_debug_names_map_matching_symbols): New function.
4906 (dw2_debug_names_expand_symtabs_matching): Update.
4907 (dwarf2_debug_names_functions): Use
4908 dw2_debug_names_map_matching_symbols.
4909
aa391654
TT
49102019-09-10 Tom Tromey <tromey@adacore.com>
4911
4912 * dwarf2read.c (dw2_get_file_names_reader): Add the
4913 CU's file name to the results.
4914
b054970d
TT
49152019-09-10 Tom Tromey <tromey@adacore.com>
4916
4917 * ada-lang.c (add_nonlocal_symbols): Combine calls to
4918 map_matching_symbols. Update.
4919 * dwarf2read.c (dw2_map_matching_symbols): Update.
4920 * psymtab.c (match_partial_symbol): Change type; update.
4921 (psym_map_matching_symbols): Likewise.
4922 * symfile-debug.c (debug_qf_map_matching_symbols): Change
4923 type; update.
4924 * symfile.h (struct quick_symbol_functions)
4925 <map_matching_symbols>: Change "name" to be a lookup_name_info.
4926 Remove "match".
4927
6a3dbf1b
TT
49282019-09-10 Tom Tromey <tromey@adacore.com>
4929
4930 * psymtab.c (map_block): Remove.
4931 (psym_map_matching_symbols): Use iterate_over_symbols_terminated.
4932 * symtab.c (iterate_over_symbols_terminated): New function.
4933 * symtab.c (iterate_over_symbols_terminated): Declare.
4934
6969f124
TT
49352019-09-10 Tom Tromey <tromey@adacore.com>
4936
4937 * ada-lang.c (ada_iterate_over_symbols): Return bool.
4938 * language.h (struct language_defn) <la_iterate_over_symbols>:
4939 Return bool.
4940 * symtab.c (iterate_over_symbols): Return bool.
4941 * symtab.h (iterate_over_symbols): Return bool.
4942
199b4314
TT
49432019-09-10 Tom Tromey <tromey@adacore.com>
4944
4945 * ada-lang.c (aux_add_nonlocal_symbols): Change type.
4946 (add_nonlocal_symbols): Update.
4947 * dwarf2read.c (dw2_map_matching_symbols): Change type.
4948 * psymtab.c (map_block, psym_map_matching_symbols): Change type.
4949 * symfile-debug.c (debug_qf_map_matching_symbols): Change type.
4950 * symfile.h (struct quick_symbol_functions) <map_matching_symbols>:
4951 Change type of "callback". Remove "data".
4952
a084a2a6
AT
4953
49542019-09-09 Ali Tamur <tamur@google.com>
4955
4956 * dwarf2read.c (comp_unit_head): Update comment.
4957 (dwarf2_dwo_name): New function declaration.
4958 (dwarf_unit_type_name): New function declaration.
4959 (read_comp_unit_head): Add support for new compilation units,
4960 DW_UT_partial, DW_UT_skeleton, DW_UT_split_compile, DW_UT_split_type.
4961 Particularly, DW_UT_skeleton and DW_UT_split_compile have dwo_id
4962 (currently named as "signature") in their header. Also clarify error
4963 messages.
4964 (lookup_dwo_id): New function. Returns the dwo id of the given
4965 compile unit.
4966 (lookup_dwo_unit): Use the new lookup_dwo_id function.
4967 (init_cutu_and_read_dies): Use the new dwarf2_dwo_name and lookup_dwo_id
4968 functions.
4969 (create_dwo_cu_reader): Use the added lookup_dwo_id function.
4970 (dwarf2_dwo_name): Get the dwo name if present.
4971 (dwarf_unit_type_name): Convert DW_UT_* types to string for diagnostic
4972 purposes.
4973
25a2915e
TT
49742019-09-09 Tom Tromey <tom@tromey.com>
4975
4976 * tui/tui-win.c (tui_all_windows_info): Use ui_out.
4977
e4df0874
PW
49782019-09-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4979
4980 * python/python.c (do_start_initialization): Make progname_copy static,
4981 to avoid a leak report.
4982
8634b462
TT
49832019-09-08 Tom Tromey <tom@tromey.com>
4984
4985 * tui/tui-wingeneral.c (box_win): Truncate long window titles.
4986
c7f839cb
SM
49872019-09-07 Simon Marchi <simon.marchi@efficios.com>
4988
4989 * dwarf2read.c (struct dw2_symtab_iterator) <block_index>:
4990 Change type to gdb::optional<block_enum>.
4991 (dw2_symtab_iter_init): Change block_index parameter type
4992 to gdb::optional<block_enum>.
4993 (dw2_lookup_symbol): Change block_index parameter
4994 type to block_enum.c
4995 (dw2_debug_names_lookup_symbol): Likewise.
4996 * psymtab.c (psym_lookup_symbol): Likewise.
4997 * symfile-debug.c (debug_qf_lookup_symbol): Likewise.
4998 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
4999 Likewise.
5000
ead0e69a
CB
50012019-09-06 Christian Biesinger <cbiesinger@google.com>
5002
5003 * defs.h (relocate_gdb_directory): Change int to bool in
5004 signature and rename flag to relocatable.
5005 * main.c (relocate_path): Likewise.
5006 (relocate_gdb_directory): Likewise.
5007
b16c44de
AM
50082019-09-06 Alan Modra <amodra@gmail.com>
5009
5010 * coffread.c (coff_symfile_read): Constify filename variable.
5011 * dbxread.c (dbx_symfile_init, coffstab_build_psymtabs),
5012 (elfstab_build_psymtabs, stabsect_build_psymtabs): Likewise.
5013 * gdb_bfd.c (gdb_bfd_close_or_warn): Likewise.
5014 * solib.c (reload_shared_libraries_1): Likewise.
5015 * symfile.c (reread_symbols): Likewise.
5016 * solib-aix.c (solib_aix_bfd_open): Add cast for xfree of filename.
5017 * solib-darwin.c (darwin_bfd_open): Likewise.
5018 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
5019
06ff036e
AB
50202019-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
5021
5022 * psymtab.c (print_partial_symbols): Handle missing domain_enum
5023 values MODULE_DOMAIN and COMMON_BLOCK_DOMAIN.
5024
4e962e74
TT
50252019-09-03 Tom Tromey <tromey@adacore.com>
5026
5027 * ada-valprint.c (ada_val_print_num): Don't recurse for range
5028 types.
5029 (has_negatives): Unbias a range type bound.
5030 * dwarf2read.c (read_subrange_type): Handle DW_AT_GNU_bias.
5031 * gdbtypes.c (operator==): Handle new field.
5032 (create_range_type): Add "bias" parameter.
5033 (create_static_range_type, resolve_dynamic_range): Update.
5034 * gdbtypes.h (struct range_bounds) <bias>: New member.
5035 (create_range_type): Add bias parameter.
5036 * printcmd.c (print_scalar_formatted): Unbias range types.
5037 * value.c (unpack_long): Unbias range types.
5038 (pack_long): Bias range types.
5039
d90b8f26
AH
50402019-09-02 Alan Hayward <alan.hayward@arm.com>
5041
5042 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Check all
5043 probe arguments.
5044
fe01123e
AH
50452019-09-02 Alan Hayward <alan.hayward@arm.com>
5046
5047 * break-catch-throw.c (fetch_probe_arguments): Use gdbarch.
5048 * dtrace-probe.c (dtrace_probe::get_argument_count): Likewise.
5049 * probe.c (probe_safe_evaluate_at_pc) (compute_probe_arg)
5050 (compile_probe_arg): Likewise.
5051 * probe.h (get_argument_count): Likewise.
5052 * solib-svr4.c (solib_event_probe_action): Likewise.
5053 * stap-probe.c (stap_probe::get_argument_count): Likewise.
5054
e661ef01
AH
50552019-09-02 Alan Hayward <alan.hayward@arm.com>
5056
5057 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Move
5058 code to here...
5059 (svr4_create_solib_event_breakpoints): ...from here.
5060
47a536d9
SDJ
50612019-08-30 Sergio Durigan Junior <sergiodj@redhat.com>
5062
5063 * nat/fork-inferior.c (trace_start_error): Remove "\nError: "
5064 suffix from warning message.
5065
d6a00eba
TT
50662019-08-30 Tom Tromey <tom@tromey.com>
5067
5068 * tui/tui-winsource.h (struct tui_source_window_base)
5069 <refresh_all>: Don't declare.
5070 * tui/tui-winsource.c (tui_source_window_base::refresh_all):
5071 Remove.
5072 * tui/tui-win.c (tui_refresh_all_win): Don't call refresh_all or
5073 tui_show_locator_content.
5074 * tui/tui-regs.h (struct tui_data_window) <refresh_all>: Don't
5075 declare.
5076 * tui/tui-regs.c (tui_data_window::refresh_all): Remove.
5077 * tui/tui-data.h (struct tui_win_info) <refresh_all>: Don't
5078 declare.
5079
55b2657b
TT
50802019-08-30 Tom Tromey <tom@tromey.com>
5081
5082 * tui/tui-io.c (tui_cont_sig): Don't call wrefresh.
5083
12a8555a
TT
50842019-08-30 Tom Tromey <tom@tromey.com>
5085
5086 * tui/tui-stack.c (_initialize_tui_stack): Move later.
5087 Remove unnecessary forward declarations.
5088
900ac242
TT
50892019-08-30 Tom Tromey <tom@tromey.com>
5090
5091 * tui/tui-stack.c (tui_locator_window::set_locator_fullname): Call
5092 rerender.
5093 (tui_update_locator_fullname, tui_show_frame_info): Don't call
5094 tui_show_locator_content.
5095
99ab33fb
TT
50962019-08-30 Tom Tromey <tom@tromey.com>
5097
5098 * tui/tui-stack.c (tui_show_locator_content): Move lower. Rewrite.
5099 (tui_locator_window::rerender): Rewrite using body of previous
5100 tui_show_locator_content.
5101
e594a5d1
TT
51022019-08-30 Tom Tromey <tom@tromey.com>
5103
5104 * tui/tui-stack.h (struct tui_locator_window) <set_locator_info,
5105 set_locator_fullname>: New methods.
5106 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
5107 Rename from tui_set_locator_fullname.
5108 (tui_locator_window::set_locator_info): Rename from
5109 tui_set_locator_info. Return bool.
5110 (tui_update_locator_fullname, tui_show_frame_info): Update.
5111
715bb467
TT
51122019-08-30 Tom Tromey <tom@tromey.com>
5113
5114 * tui/tui-layout.c (show_layout): Don't call tui_refresh_all.
5115
772f3f03
TT
51162019-08-30 Tom Tromey <tom@tromey.com>
5117
5118 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Don't
5119 call touchwin.
5120
108e13ab
TT
51212019-08-30 Tom Tromey <tom@tromey.com>
5122
5123 * tui/tui-wingeneral.c (box_win): Assume win_info and
5124 win_info->handle cannot be NULL.
5125
cdaa6eb4
TT
51262019-08-30 Tom Tromey <tom@tromey.com>
5127
5128 * tui/tui-regs.h (struct tui_data_item_window) <rerender,
5129 refresh_window>: Declare.
5130 * tui/tui-regs.c (tui_data_window::display_registers_from): Call
5131 resize.
5132 (tui_data_item_window::rerender): Rename from
5133 tui_display_register.
5134 (tui_data_item_window::refresh_window): New method.
5135 * tui/tui-layout.c (tui_gen_win_info::resize): Do nothing on
5136 no-op.
5137
89df7f90
TT
51382019-08-30 Tom Tromey <tom@tromey.com>
5139
5140 * tui/tui-regs.h (struct tui_data_window) <regs_content,
5141 regs_column_count, current_group>: Move later. Now private.
5142 <get_current_group>: New method.
5143 * tui/tui-regs.c (tui_reg_command): Update.
5144 * tui/tui-layout.c (tui_set_layout): Update.
5145
1bf2866a
TT
51462019-08-30 Tom Tromey <tom@tromey.com>
5147
5148 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
5149 (tui_data_window::rerender): Don't call
5150 check_and_display_highlight_if_needed.
5151 (tui_data_window::refresh_all): Remove call to
5152 erase_data_content.
5153
0670413d
TT
51542019-08-30 Tom Tromey <tom@tromey.com>
5155
5156 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
5157 (tui_data_window::display_registers_from)
5158 (tui_data_window::display_reg_element_at_line)
5159 (tui_data_window::display_registers_from_line): Remove checks of
5160 "empty".
5161
18bb55c7
TT
51622019-08-30 Tom Tromey <tom@tromey.com>
5163
5164 * tui/tui-regs.h (struct tui_data_window) <display_all_data>:
5165 Don't declare.
5166 * tui/tui-regs.c (tui_data_window::show_registers): Call
5167 rerender.
5168 (tui_data_window::rerender): Rename from display_all_data.
5169 (tui_data_window::rerender): Remove old implementation.
5170
1f6d2f10
TT
51712019-08-30 Tom Tromey <tom@tromey.com>
5172
5173 * tui/tui-regs.c (tui_data_window::display_all_data): Change
5174 text.
5175 * tui/tui-data.h (NO_DATA_STRING): Remove define.
5176
16d01f9c
BW
51772019-08-29 Bernhard Wodok <barto@gmx.net>
5178 Sergio Durigan Junior <sergiodj@redhat.com>
5179
5180 PR win32/24284
5181 * mingw-hdep.c (gdb_select): Handle case when 'n' is zero.
5182
d8f27c60
AB
51832019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
5184
5185 * symtab.c (search_symbols): Don't include MODULE_DOMAIN symbols
5186 when searching for types.
5187
1f20c35e
AB
51882019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
5189
5190 * f-lang.c (f_language_defn): Use f_print_typedef.
5191 * f-lang.h (f_print_typedef): Declare.
5192 * f-typeprint.c (f_print_typedef): Define.
5193
550105b7
CB
51942019-08-27 Christian Biesinger <cbiesinger@google.com>
5195
5196 * nat/linux-namespaces.c (mnsh_main): Initialize fd (to -1).
5197
4acfdd20
AB
51982019-08-27 Andrew Burgess <andrew.burgess@embecosm.com>
5199
5200 * cli/cli-utils.c (info_print_options_defs): Delete.
5201 (make_info_print_options_def_group): Delete.
5202 (extract_info_print_options): Delete.
5203 (info_print_command_completer): Delete.
5204 (info_print_args_help): Add extra parameter, and optionally
5205 include text about -n flag.
5206 * cli/cli-utils.h (struct info_print_options): Delete.
5207 (extract_info_print_options): Delete declaration.
5208 (info_print_command_completer): Delete declaration.
5209 (info_print_args_help): Add extra parameter, extend header
5210 comment.
5211 * python/python.c (gdbpy_rbreak): Pass additional parameter to
5212 search_symbols.
5213 * stack.c (struct info_print_options): New type.
5214 (info_print_options_defs): New file scoped variable.
5215 (make_info_print_options_def_group): New static function.
5216 (info_print_command_completer): New static function.
5217 (info_locals_command): Update to use new local functions.
5218 (info_args_command): Likewise.
5219 (_initialize_stack): Add extra parameter to calls to
5220 info_print_args_help.
5221 * symtab.c (search_symbols): Add extra parameter, use this to
5222 possibly excluse non-debug symbols.
5223 (symtab_symbol_info): Add extra parameter, which is passed on to
5224 search_symbols.
5225 (struct info_print_options): New type.
5226 (info_print_options_defs): New file scoped variable.
5227 (make_info_print_options_def_group): New static function.
5228 (info_print_command_completer): New static function.
5229 (info_variables_command): Update to use local functions, and pass
5230 extra parameter through to symtab_symbol_info.
5231 (info_functions_command): Likewise.
5232 (info_types_command): Pass additional argument through to
5233 symtab_symbol_info.
5234 (rbreak_command): Pass extra argument to search_symbols.
5235 (_initialize_symtab): Add extra arguments for calls to
5236 info_print_args_help, and update help text for 'info variables',
5237 'whereis', and 'info functions' commands.
5238 * symtab.h (search_symbols): Add extra argument to declaration.
5239 * NEWS: Mention new flags.
5240
9aa55206
CB
52412019-08-26 Christian Biesinger <cbiesinger@google.com>
5242
5243 * symtab.c (lookup_static_symbol): Call the new function (and move
5244 it down to be next to lookup_global_symbol).
5245 (struct global_sym_lookup_data): Add block_enum member and rename to...
5246 (struct global_or_static_sym_lookup_data): ...this.
5247 (lookup_symbol_global_iterator_cb): Pass block_index instead of
5248 GLOBAL_BLOCK to lookup_symbol_in_objfile and rename to...
5249 (lookup_symbol_global_or_static_iterator_cb): ...this.
5250 (lookup_global_or_static_symbol): New function.
5251 (lookup_global_symbol): Call new function.
5252
5c31b358
TV
52532019-08-26 Tom de Vries <tdevries@suse.de>
5254
5255 PR c++/24852
5256 * break-catch-throw.c (fetch_probe_arguments): Improve error mesage
5257 when pc_probe.prob == NULL.
5258
23c13d42
SM
52592019-08-25 Simon Marchi <simon.marchi@efficios.com>
5260
5261 * dwarf2read.c (dw2_debug_names_iterator::next): Rename local
5262 variable symbol_linkage to symbol_linkage_.
5263
beadd3e8
SM
52642019-08-25 Simon Marchi <simon.marchi@efficios.com>
5265
5266 * dwarf2read.c (dw2_debug_names_iterator::next): Use enum to
5267 represent whether the symbol is static, dynamic, or we don't
5268 know.
5269
e3ec872f
YS
52702019-08-25 Yoshinori Sato <ysato@users.sourceforge.jp>
5271
5272 * gdb/rx-tdep.c (rx_register_names): New.
5273 (rx_register_name): Delete.
5274 (rx_psw_type): Delete.
5275 (rx_fpsw_type): Delete.
5276 (rx_register_type): Delete.
5277 (rx_gdbarch_init): Convert target-descriptions.
5278 (_initialize_rx_tdep): Add initialize_tdesc_rx.
5279 * gdb/features/Makefile: Add rx.xml.
5280 * gdb/features/rx.xml: New.
5281 * gdb/features/rx.c: Generated.
5282 * gdb/NEWS: Mention target description support.
5283
d0509ba4
CB
52842019-08-22 Christian Biesinger <cbiesinger@google.com>
5285
5286 * symtab.c (symbol_cache_lookup): Always initialize *bsc_ptr and
5287 *slot_ptr.
5288
2d41fa11
SDJ
52892019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
5290
5291 * configure.ac: Don't check for 'dlfcn.h' (moved to
5292 gdbsupport/common.m4).
5293 * Makefile.in (COMMON_SFILES): Move 'gdb-dlfcn.c' to
5294 'gdbsupport/'.
5295 (HFILES_NO_SRCDIR): Likewise, for 'gdb-dlfcn.h'.
5296 * compile/compile-c-support.c: Include
5297 'gdbsupport/gdb-dlfcn.h'.
5298 * gdbsupport/common.m4: Check for 'dlfcn.h'.
5299 * gdb-dlfcn.c: Move to...
5300 * gdbsupport/gdb-dlfcn.c: ... here.
5301 * gdb-dlfcn.h: Move to...
5302 * gdbsupport/gdb-dlfcn.h: ... here.
5303
de8af808
SL
53042019-08-23 Sandra Loosemore <sandra@codesourcery.com>
5305
5306 * nios2-tdep.c (struct reg_value): Improve comments. Make
5307 the offset field signed.
5308
27204489
CB
53092019-08-22 Christian Biesinger <cbiesinger@google.com>
5310
5311 * python/lib/gdb/__init__.py (_execute_file): New function.
5312 * python/python.c (python_run_simple_file): Call gdb._execute_file
5313 on Windows.
5314
43771869
AB
53152019-08-22 Andrew Burgess <andrew.burgess@embecosm.com>
5316
5317 * f-exp.y (yylex): Remove is_a_field_of_this local variable, and
5318 all uses as this was never set to anything but a zero value.
5319
26c957f1
PA
53202019-08-21 Bogdan Harjoc <harjoc@gmail.com>
5321
5322 * cli/cli-cmds.c (with_command_1): Error out if no arguments.
5323
c07aae6e
CB
53242019-08-21 Christian Biesinger <cbiesinger@google.com>
5325
5326 * tui/tui-data.h (tui_gen_win_info): Add an =default
5327 move constructor, required by some GCC versions.
5328
3960cb7a
JF
53292019-08-21 Jinke Fan <fanjinke51@yeah.net>
5330
5331 * go32-nat.c (go32_sysinfo): Add hygon_p.
5332
04c72a68
TT
53332019-08-20 Tom Tromey <tom@tromey.com>
5334
5335 * tui/tui-regs.h (struct tui_data_window) <last_regs_line_no,
5336 line_from_reg_element_no, first_reg_element_no_inline,
5337 display_all_data, delete_data_content_windows,
5338 erase_data_content>: Now private.
5339
072272ce
TT
53402019-08-20 Tom Tromey <tom@tromey.com>
5341
5342 * tui/tui-wingeneral.c (box_win): Change type of highlight_flag.
5343 (tui_unhighlight_win, tui_highlight_win)
5344 (tui_win_info::make_window): Update.
5345 * tui/tui-data.h (HILITE, NO_HILITE): Remove.
5346
973961bd
TT
53472019-08-20 Tom Tromey <tom@tromey.com>
5348
5349 * tui/tui-data.h (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
5350 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
5351 (MAX_PID_WIDTH): Move to tui-stack.c.
5352 * tui/tui-stack.c (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
5353 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
5354 (MAX_PID_WIDTH): Move from tui-data.h.
5355
ab0e1f1a
TT
53562019-08-20 Tom Tromey <tom@tromey.com>
5357
5358 * tui/tui-wingeneral.h (tui_make_window): Don't declare.
5359 * tui/tui-wingeneral.c (box_win): Change type of win_info.
5360 (box_win): Update.
5361 (tui_gen_win_info::make_window): Rename from tui_make_window.
5362 (tui_win_info::make_window): New method.
5363 (tui_gen_win_info::make_visible): Update.
5364 * tui/tui-source.c (tui_source_window::set_contents): Update.
5365 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
5366 (tui_data_window::display_registers_from): Update.
5367 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
5368 * tui/tui-data.h (struct tui_gen_win_info) <make_window>:
5369 Declare.
5370 <can_box>: Remove.
5371 <title>: Remove.
5372 (struct tui_win_info) <make_window>: Declare.
5373 <can_box>: Now virtual.
5374 <title>: New member.
5375 * tui/tui-data.c (~tui_gen_win_info): Don't free title.
5376 * tui/tui-command.c (tui_cmd_window::resize): Update.
5377
100c2bf3
TT
53782019-08-20 Tom Tromey <tom@tromey.com>
5379
5380 * tui/tui-regs.h (struct tui_data_window) <display_regs>: Remove.
5381 * tui/tui-regs.c (tui_data_window::show_registers): Update.
5382 (tui_data_window::check_register_values): Update.
5383
fa4dc567
TT
53842019-08-20 Tom Tromey <tom@tromey.com>
5385
5386 * tui/tui-regs.h (struct tui_data_window): Use
5387 DISABLE_COPY_AND_ASSIGN.
5388 <regs_content>: Change type, removing unique_ptr.
5389 <tui_data_window>: Add move constructor.
5390 * tui/tui-regs.c (tui_data_window::show_registers)
5391 (tui_data_window::show_register_group)
5392 (tui_data_window::display_registers_from)
5393 (tui_data_window::display_registers_from)
5394 (tui_data_window::first_data_item_displayed)
5395 (tui_data_window::delete_data_content_windows)
5396 (tui_data_window::rerender, tui_data_window::refresh_window)
5397 (tui_data_window::check_register_values): Update.
5398
ca02d7c8
TT
53992019-08-20 Tom Tromey <tom@tromey.com>
5400
5401 * tui/tui-regs.h (struct tui_data_window) <show_registers,
5402 show_register_group>: Declare.
5403 (tui_show_register_group): Don't declare.
5404 * tui/tui-regs.c (tui_data_window::show_registers): Rename from
5405 tui_show_registers.
5406 (tui_data_window::show_register_group): Rename from
5407 tui_show_register_group.
5408 (tui_data_window::check_register_values, tui_reg_command):
5409 Update.
5410 * tui/tui-layout.c (tui_set_layout): Update.
5411
63356bfd
TT
54122019-08-20 Tom Tromey <tom@tromey.com>
5413
5414 * tui/tui-regs.h (struct tui_data_window) <check_register_values>:
5415 Declare.
5416 (tui_check_register_values): Don't declare.
5417 * tui/tui-regs.c (tui_data_window::check_register_values): Rename
5418 from tui_check_register_values.
5419 * tui/tui-hooks.c (tui_register_changed): Update.
5420
42cc14a7
TT
54212019-08-20 Tom Tromey <tom@tromey.com>
5422
5423 * tui/tui-regs.c (tui_reg_layout): Move later.
5424 (tui_show_registers): Don't enable TUI mode or change layout.
5425
b9ad3686
TT
54262019-08-20 Tom Tromey <tom@tromey.com>
5427
5428 * tui/tui-regs.h (struct tui_data_item_window)
5429 <~tui_data_item_window>: Remove.
5430 <content>: Now a unique_xmalloc_ptr.
5431 * tui/tui-regs.c (tui_register_format): Return a
5432 unique_xmalloc_ptr.
5433 (tui_get_register): Update.
5434 (~tui_data_item_window): Remove.
5435 (tui_data_window::display_registers_from, tui_display_register):
5436 Update.
5437 * tui/tui-io.h (tui_expand_tabs): Update.
5438 * tui/tui-io.c (tui_expand_tabs): Return a unique_xmalloc_ptr.
5439 Remove "col" parameter.
5440
8e114aab
TT
54412019-08-20 Tom Tromey <tom@tromey.com>
5442
5443 * tui/tui-regs.h (struct tui_data_item_window) <value>: Remove
5444 field.
5445 * tui/tui-regs.c (~tui_data_item_window): Update.
5446
1a4f81dd
TT
54472019-08-20 Tom Tromey <tom@tromey.com>
5448
5449 * tui/tui-regs.c (tui_register_format, tui_get_register): Move
5450 earlier.
5451
0f8d8876
TT
54522019-08-20 Tom Tromey <tom@tromey.com>
5453
5454 * tui/tui-regs.c (tui_reg_command): Remove NULL check.
5455
605dc2c2
TT
54562019-08-20 Tom Tromey <tom@tromey.com>
5457
5458 * tui/tui-source.h (struct tui_source_window): Update.
5459 * tui/tui-regs.c (tui_show_registers): Update.
5460 * tui/tui-disasm.h (struct tui_disasm_window): Update.
5461 * tui/tui-data.h (NO_SRC_STRING, NO_DISASSEM_STRING)
5462 (NO_REGS_STRING): Remove defines.
5463
aedbe3bb
CM
54642019-08-20 Conrad Meyer <cem@FreeBSD.org>
5465
5466 * remote.c (remote_target::remote_btrace_maybe_reopen): Avoid
5467 unnecessary thread walk if remote doesn't support the packet.
5468
7ce8f214
TT
54692019-08-19 Tom Tromey <tromey@adacore.com>
5470
5471 * python/py-value.c (value_has_field): Fix indentation.
5472
f21c2bd7
TT
54732019-08-19 Tom Tromey <tromey@adacore.com>
5474
5475 * printcmd.c (do_one_display, info_display_command): Update.
5476 * block.h (contained_in): Return bool. Add allow_nested
5477 parameter.
5478 * block.c (contained_in): Return bool. Add allow_nested
5479 parameter.
5480
d806ea2d
TT
54812019-08-19 Tom Tromey <tom@tromey.com>
5482
5483 * configure: Rebuild.
5484 * configure.ac: Disallow the combination of -static-libstdc++ and
5485 source highlight.
5486 * source-cache.c (get_language_name): Handle rust.
5487 (source_cache::get_source_lines): Ignore highlighting exceptions.
5488
398fdd60
TT
54892019-08-16 Tom Tromey <tom@tromey.com>
5490
5491 * tui/tui.h (enum tui_win_type) <EXEC_INFO_WIN>: Remove.
5492 * tui/tui-winsource.h (struct tui_exec_info_window): Remove.
5493 (struct tui_source_window_base) <make_visible, refresh_window,
5494 resize>: Remove methods.
5495 <execution_info>: Remove field.
5496 * tui/tui-winsource.c (tui_source_window_base::do_erase_source_content)
5497 (tui_show_source_line, tui_source_window_base)
5498 (~tui_source_window_base): Update.
5499 (tui_source_window_base::resize)
5500 (tui_source_window_base::make_visible)
5501 (tui_source_window_base::refresh_window): Remove.
5502 (tui_source_window_base::update_exec_info): Update.
5503 * tui/tui-source.c (tui_source_window::set_contents): Update.
5504 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
5505
e699d331
TT
55062019-08-16 Tom Tromey <tom@tromey.com>
5507
5508 * tui/tui-hooks.c (tui_remove_hooks): Don't set
5509 deprecated_query_hook.
5510
bb01dbfc
TT
55112019-08-16 Tom Tromey <tom@tromey.com>
5512
5513 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
5514 (tui_update_source_windows_with_line): Update.
5515 * tui/tui-source.h (struct tui_source_window)
5516 <show_symtab_source>: Declare.
5517 (tui_show_symtab_source): Don't declare.
5518 * tui/tui-source.c (tui_show_symtab_source): Rename from
5519 tui_show_symtab_source.
5520
81c82c4b
TT
55212019-08-16 Tom Tromey <tom@tromey.com>
5522
5523 * tui/tui-winsource.h (struct tui_source_window_base)
5524 <set_contents>: Declare.
5525 * tui/tui-winsource.c
5526 (tui_source_window_base::update_source_window_as_is): Update.
5527 * tui/tui-source.h (struct tui_source_window) <set_contents>:
5528 Declare.
5529 (tui_set_source_content): Don't declare.
5530 * tui/tui-source.c (tui_source_window::set_contents): Rename from
5531 tui_set_source_content.
5532 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
5533 Declare.
5534 (tui_set_disassem_content): Don't declare.
5535 * tui/tui-disasm.c (tui_disasm_window::set_contents): Rename from
5536 tui_set_disassem_content.
5537
2ddaf614
TT
55382019-08-16 Tom Tromey <tom@tromey.com>
5539
5540 * tui/tui-winsource.h (struct tui_source_window_base)
5541 <update_breakpoint_info>: Declare.
5542 (tui_update_breakpoint_info): Don't declare.
5543 * tui/tui-winsource.c (tui_source_window_base::update_source_window_as_is)
5544 (tui_update_all_breakpoint_info): Update.
5545 (tui_source_window_base::update_breakpoint_info): Rename from
5546 tui_update_breakpoint_info.
5547 (tui_source_window_base::update_exec_info): Update.
5548
017f9828
TT
55492019-08-16 Tom Tromey <tom@tromey.com>
5550
5551 * tui/tui-winsource.h (struct tui_source_window_base)
5552 <update_source_window>: Declare.
5553 (tui_update_source_window): Don't declare.
5554 * tui/tui-winsource.c
5555 (tui_source_window_base::update_source_window): Rename from
5556 tui_update_source_window.
5557 (tui_source_window_base::rerender): Update.
5558 * tui/tui-source.c (tui_source_window::maybe_update): Update.
5559 * tui/tui-disasm.c (tui_show_disassem)
5560 (tui_show_disassem_and_update_source)
5561 (tui_disasm_window::maybe_update): Update.
5562
ed8358e9
TT
55632019-08-16 Tom Tromey <tom@tromey.com>
5564
5565 * tui/tui-winsource.h (struct tui_source_window_base)
5566 <update_source_window_as_is>: Declare.
5567 (tui_update_source_window_as_is): Don't declare.
5568 * tui/tui-winsource.c (tui_update_source_window): Update
5569 (tui_source_window_base::update_source_window_as_is): Rename from
5570 tui_update_source_window_as_is.
5571 (tui_source_window_base::refill): Update.
5572 * tui/tui-source.c (tui_show_symtab_source): Update.
5573 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical):
5574 Update.
5575
20149b6b
TT
55762019-08-16 Tom Tromey <tom@tromey.com>
5577
5578 * tui/tui-winsource.h (tui_update_source_window)
5579 (tui_update_source_window_as_is): Remove "noerror" parameter.
5580 * tui/tui-winsource.c (tui_update_source_window)
5581 (tui_update_source_window_as_is): Remove "noerror" parameter.
5582 (tui_update_source_windows_with_addr)
5583 (tui_update_source_windows_with_line)
5584 (tui_source_window_base::rerender)
5585 (tui_source_window_base::refill): Update.
5586 * tui/tui-source.h (tui_set_source_content)
5587 (tui_show_symtab_source): Remove "noerror" parameter.
5588 * tui/tui-source.c (tui_set_source_content): Remove "noerror"
5589 parameter.
5590 (tui_show_symtab_source): Likewise.
5591 (tui_source_window::maybe_update): Update.
5592 * tui/tui-disasm.c (tui_show_disassem)
5593 (tui_show_disassem_and_update_source)
5594 (tui_disasm_window::do_scroll_vertical)
5595 (tui_disasm_window::maybe_update): Update.
5596
2d83e710
TT
55972019-08-16 Tom Tromey <tom@tromey.com>
5598
5599 * tui/tui.c (tui_is_window_visible): Update.
5600 * tui/tui-wingeneral.c (tui_make_window)
5601 (tui_gen_win_info::make_visible, tui_refresh_all): Update.
5602 * tui/tui-win.c (window_name_completer, tui_refresh_all_win)
5603 (tui_set_focus_command, tui_all_windows_info, update_tab_width)
5604 (tui_set_win_height_command, parse_scrolling_args): Update.
5605 * tui/tui-source.c (tui_source_window::style_changed): Update.
5606 * tui/tui-regs.c (tui_show_registers)
5607 (tui_data_window::first_data_item_displayed)
5608 (tui_data_window::delete_data_content_windows)
5609 (tui_check_register_values, tui_reg_command): Update.
5610 * tui/tui-disasm.c (tui_show_disassem): Update.
5611 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: New
5612 method.
5613 <is_visible>: Remove field.
5614 * tui/tui-data.c (tui_next_win, tui_prev_win)
5615 (tui_delete_invisible_windows): Update.
5616
d4ab829a
TT
56172019-08-16 Tom Tromey <tom@tromey.com>
5618
5619 * tui/tui-winsource.h (struct tui_source_window_base)
5620 <m_has_locator>: Remove.
5621 * tui/tui-layout.c (show_source_disasm_command, show_data)
5622 (show_source_or_disasm_and_command): Update.
5623
aa7ca1bb
AH
56242019-08-16 Alan Hayward <alan.hayward@arm.com>
5625
5626 * NEWS (Other MI changes): New subsection.
5627 * aarch64-tdep.c (aarch64_get_pc_address_flags): New function.
5628 (aarch64_gdbarch_init): Add aarch64_get_pc_address_flags.
5629 * arch-utils.c (default_get_pc_address_flags): New function.
5630 * arch-utils.h (default_get_pc_address_flags): New declaration.
5631 * gdbarch.sh: Add get_pc_address_flags.
5632 * gdbarch.c: Regenerate.
5633 * gdbarch.h: Likewise.
5634 * stack.c (print_pc): New function.
5635 (print_frame_info) (print_frame): Call print_pc.
5636
6eac171f
TV
56372019-08-16 Tom de Vries <tdevries@suse.de>
5638
5639 * maint.c (maintenance_info_sections): Also handle !ALLOBJ case using
5640 print_objfile_section_info.
5641
3df505f6
TT
56422019-08-15 Tom Tromey <tom@tromey.com>
5643
5644 * tui/tui-io.c (tui_puts_internal): Check TUI_CMD_WIN before
5645 calling update_cmdwin_start_line.
5646 * tui/tui-winsource.h (struct tui_source_window_base)
5647 <do_make_visible_with_new_height, set_new_height>: Don't declare.
5648 <rerender>: Declare.
5649 * tui/tui-winsource.c (tui_source_window_base::update_tab_width):
5650 Call rerender.
5651 (tui_source_window_base::set_new_height): Remove.
5652 (tui_source_window_base::rerender): Rename from
5653 do_make_visible_with_new_height.
5654 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use
5655 resize method.
5656 (tui_win_info::make_invisible_and_set_new_height)
5657 (tui_win_info::make_visible_with_new_height): Remove.
5658 * tui/tui-stack.h (struct tui_locator_window) <rerender>:
5659 Declare.
5660 * tui/tui-stack.c (tui_locator_window::rerender): New method.
5661 * tui/tui-regs.h (struct tui_data_window) <set_new_height,
5662 do_make_visible_with_new_height>: Don't declare.
5663 <rerender>: Declare.
5664 * tui/tui-regs.c (tui_data_window::rerender): Rename from
5665 set_new_height.
5666 (tui_data_window::do_make_visible_with_new_height): Remove.
5667 * tui/tui-layout.c (show_source_disasm_command, show_data): Don't
5668 call tui_show_locator_content.
5669 (tui_gen_win_info::resize): Call rerender.
5670 (show_source_or_disasm_and_command): Don't call
5671 tui_show_locator_content.
5672 * tui/tui-data.h (struct tui_gen_win_info) <rerender>: New
5673 method.
5674 (struct tui_win_info) <rerender>: Declare.
5675 <set_new_height, make_invisible_and_set_new_height,
5676 make_visible_with_new_height>: Don't declare.
5677 * tui/tui-data.c (tui_win_list::rerender): New method.
5678 * tui/tui-command.h (struct tui_cmd_window)
5679 <do_make_visible_with_new_height>: Don't declare.
5680 * tui/tui-command.c
5681 (tui_cmd_window::do_make_visible_with_new_height): Remove.
5682
272560b5
TT
56832019-08-15 Tom Tromey <tromey@adacore.com>
5684
5685 * ada-exp.y (convert_char_literal): Handle "Q%c" encoding.
5686 * ada-lang.c (ada_enum_name): Likewise.
5687
08235187
CB
56882019-08-15 Christian Biesinger <cbiesinger@google.com>
5689
5690 * python/lib/gdb/__init__.py (GdbOutputFile): Rename to have a
5691 leading underscore.
5692 (GdbOutputErrorFile): Likewise.
5693 (global scope): Adjust constructor calls to GdbOutput{,Error}File
5694 accordingly.
5695 (execute_unwinders): Rename to have a leading underscore.
5696 (auto_load_packages): Likewise.
5697 (global scope): Adjust call to auto_load_packages accordingly.
5698 (GdbSetPythonDirectory): Likewise.
5699 * python/py-unwind.c (pyuw_sniffer): Call _execute_unwinders
5700 instead of execute_unwinders.
5701
db502012
TT
57022019-08-15 Tom Tromey <tom@tromey.com>
5703
5704 * tui/tui-layout.c (show_layout, show_source_disasm_command)
5705 (show_data): Don't change window visibility.
5706 (tui_gen_win_info::resize): Remove special case for command
5707 window. Use wresize, when available.
5708 (show_source_or_disasm_and_command): Don't change window
5709 visibility.
5710 * tui/tui-command.h (struct tui_cmd_window) <resize>: Declare.
5711 <make_visible>: New method.
5712 * tui/tui-command.c (tui_cmd_window::resize): New method.
5713
3891b65e
TT
57142019-08-15 Tom Tromey <tom@tromey.com>
5715
5716 * tui/tui-winsource.h (struct tui_source_window_iterator): New.
5717 (struct tui_source_windows): New.
5718 * tui/tui-winsource.c (tui_display_main): Update.
5719 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
5720 (new_height_ok, parse_scrolling_args): Update.
5721 * tui/tui-layout.c (show_layout, show_data): Update.
5722 * tui/tui-data.h (tui_source_windows, tui_clear_source_windows)
5723 (tui_add_to_source_windows): Don't declare.
5724 * tui/tui-data.c (source_windows, tui_source_windows)
5725 (tui_clear_source_windows, tui_add_to_source_windows): Remove.
5726
ee556432
TT
57272019-08-15 Tom Tromey <tom@tromey.com>
5728
5729 * tui/tui-winsource.h (struct tui_source_window_base) <resize>:
5730 Rename from reset.
5731 * tui/tui-winsource.c (tui_source_window_base::resize): Rename.
5732 * tui/tui-layout.c (show_source_disasm_command, show_data):
5733 Update.
5734 (tui_gen_win_info::resize): Rename.
5735 (show_source_or_disasm_and_command): Update.
5736 * tui/tui-data.h (struct tui_gen_win_info) <resize>: Rename from
5737 reset.
5738
46f438e3
TT
57392019-08-15 Tom Tromey <tom@tromey.com>
5740
5741 * tui/tui-stack.c (tui_initialize_static_data): Remove.
5742 * tui/tui-interp.c (tui_interp::init): Don't call
5743 tui_initialize_static_data.
5744 * tui/tui-data.h (tui_initialize_static_data): Don't declare.
5745
f4ce562c
TT
57462019-08-15 Tom Tromey <tom@tromey.com>
5747
5748 * tui/tui-layout.c (tui_default_win_viewport_height): Don't
5749 examine tui_win_list.
5750
c398c3d0
TT
57512019-08-15 Tom Tromey <tom@tromey.com>
5752
5753 * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
5754 * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
5755 tui_clear_source_content.
5756 (tui_clear_source_content): Remove.
5757 (tui_source_window_base::do_erase_source_content): Hoist call to
5758 content.clear().
5759 * tui/tui-stack.c (tui_show_frame_info): Don't call
5760 tui_clear_source_content.
5761
e25d2004
TT
57622019-08-15 Tom Tromey <tom@tromey.com>
5763
5764 * tui/tui-winsource.h (struct tui_source_window_base)
5765 <do_erase_source_content>: New method.
5766 <erase_source_content>: New method.
5767 (tui_erase_source_content): Don't declare.
5768 * tui/tui-winsource.c (tui_clear_source_content): Update.
5769 (tui_source_window_base::do_erase_source_content): Rename from
5770 tui_erase_source_content.
5771 (tui_source_window_base::show_source_content): Update.
5772 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
5773 * tui/tui-source.h (struct tui_source_window)
5774 <erase_source_content>: New method.
5775 * tui/tui-disasm.h (struct tui_disasm_window)
5776 <erase_source_content>: New method.
5777
002f15c2
TT
57782019-08-15 Tom Tromey <tom@tromey.com>
5779
5780 * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
5781 (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
5782 constructor.
5783 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
5784 * tui/tui-source.c (tui_set_source_content): Update.
5785 * tui/tui-disasm.c (tui_set_disassem_content): Update.
5786
c9033fe8
TT
57872019-08-15 Tom Tromey <tom@tromey.com>
5788
5789 * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
5790 * tui/tui-winsource.c (tui_line_is_displayed): Move to
5791 tui-source.c.
5792 * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
5793 Declare.
5794 * tui/tui-source.c (tui_source_window::line_is_displayed): New
5795 method.
5796 (tui_source_window::maybe_update): Update.
5797
088f37dd
TT
57982019-08-15 Tom Tromey <tom@tromey.com>
5799
5800 * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
5801 * tui/tui-winsource.c (tui_addr_is_displayed): Move to
5802 tui-disasm.c.
5803 * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
5804 Declare.
5805 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
5806 method.
5807 (tui_disasm_window::maybe_update): Update.
5808
a54700c6
TT
58092019-08-15 Tom Tromey <tom@tromey.com>
5810
5811 * tui/tui-winsource.h (struct tui_source_window_base)
5812 <maybe_update>: Declare.
5813 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
5814 method.
5815 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
5816 Declare.
5817 * tui/tui-source.c (tui_source_window::maybe_update): New method.
5818 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
5819 Declare.
5820 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
5821
e2a678a5
TT
58222019-08-15 Tom Tromey <tom@tromey.com>
5823
5824 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
5825
f2dda477
TT
58262019-08-15 Tom Tromey <tom@tromey.com>
5827
5828 * tui/tui-wingeneral.c: Include tui-stack.h.
5829 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
5830 (struct tui_locator_window): Move from tui-data.h.
5831 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
5832 (tui_initialize_static_data): Move from tui-data.c.
5833 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
5834 (struct tui_locator_window): Move to tui-stack.c.
5835 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
5836 (tui_initialize_static_data): Move to tui-stack.c.
5837
ed4a1084
TT
58382019-08-15 Tom Tromey <tom@tromey.com>
5839
5840 * tui/tui-layout.c (show_source_disasm_command)
5841 (show_source_or_disasm_and_command): Use make_visible method, not
5842 tui_make_window.
5843 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
5844 Remove.
5845
65962b20
TT
58462019-08-15 Tom Tromey <tom@tromey.com>
5847
5848 * tui/tui-wingeneral.h (tui_make_window): Update.
5849 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
5850 parameter.
5851 (tui_gen_win_info::make_visible): Update.
5852 * tui/tui-regs.c (tui_data_window::display_registers_from):
5853 Update.
5854 * tui/tui-layout.c (show_source_disasm_command)
5855 (show_source_or_disasm_and_command): Update.
5856 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
5857 (enum tui_box): Remove.
5858 (struct tui_win_info) <can_box>: New method.
5859 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
5860 method.
5861
2208ee91
TV
58622019-08-15 Tom de Vries <tdevries@suse.de>
5863
5864 * linux-nat-trad.c: Include gdbarch.h.
5865
75faf5c4
AH
58662019-08-14 Alan Hayward <alan.hayward@arm.com>
5867
5868 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
5869 register sizes.
5870
b1c896b3
TT
58712019-08-14 Tom Tromey <tromey@adacore.com>
5872
5873 * darwin-nat.c: Include gdbarch.h.
5874 * darwin-nat-info.c: Include gdbarch.h.
5875
6405cd73
TT
58762019-08-13 Tom Tromey <tom@tromey.com>
5877
5878 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
5879 Remove.
5880 * tui/tui-data.c (tui_initialize_static_data): Update.
5881
5216580d
TT
58822019-08-13 Tom Tromey <tom@tromey.com>
5883
5884 * tui/tui-winsource.h (struct tui_exec_info_window)
5885 <~tui_exec_info_window, maybe_allocate_content, get_content,
5886 m_content>: Remove.
5887 (struct tui_source_window_base) <set_exec_info_content,
5888 show_exec_info_content>: Don't declare.
5889 * tui/tui-winsource.c
5890 (tui_exec_info_window::maybe_allocate_content): Remove.
5891 (tui_source_window_base::update_exec_info): Rename from
5892 set_exec_info_content.
5893 (tui_source_window_base::show_exec_info_content)
5894 (tui_source_window_base::update_exec_info): Remove.
5895
93858ad3
TT
58962019-08-13 Tom Tromey <tom@tromey.com>
5897
5898 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
5899 declare.
5900 * tui/tui-winsource.c (tui_update_source_window_as_is)
5901 (tui_update_source_windows_with_addr, tui_erase_source_content):
5902 Update.
5903 (tui_clear_exec_info_content): Remove.
5904
e321e7ce
TT
59052019-08-13 Tom Tromey <tom@tromey.com>
5906
5907 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
5908 declare.
5909 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
5910 call tui_erase_exec_info_content.
5911 (tui_clear_exec_info_content): Rename from
5912 tui_erase_exec_info_content.
5913 (tui_clear_exec_info_content): Delete.
5914
8270ac62
TT
59152019-08-13 Tom Tromey <tom@tromey.com>
5916
5917 * tui/tui-winsource.h (struct tui_source_window_base)
5918 <show_exec_info_content>: Declare.
5919 (tui_show_exec_info_content): Don't declare.
5920 * tui/tui-winsource.c
5921 (tui_source_window_base::show_exec_info_content): Rename from
5922 tui_show_exec_info_content.
5923 (tui_source_window_base::update_exec_info): Update.
5924
7b56485d
TT
59252019-08-13 Tom Tromey <tom@tromey.com>
5926
5927 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
5928 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
5929 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
5930 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
5931 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
5932 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
5933 ... here.
5934
7ba913dc
TT
59352019-08-13 Tom Tromey <tom@tromey.com>
5936
5937 * tui/tui-winsource.h (struct tui_source_window_base)
5938 <update_exec_info>: Declare.
5939 (tui_update_exec_info): Don't declare.
5940 * tui/tui-winsource.c (tui_update_source_window_as_is)
5941 (tui_source_window_base::refresh_all)
5942 (tui_update_all_breakpoint_info): Update.
5943 (tui_source_window_base::update_exec_info): Rename from
5944 tui_update_exec_info.
5945 * tui/tui-stack.c (tui_show_frame_info): Update.
5946
37a4a131
TT
59472019-08-13 Tom Tromey <tom@tromey.com>
5948
5949 * tui/tui-winsource.h (struct tui_source_window_base)
5950 <set_exec_info_content>: Declare.
5951 (tui_set_exec_info_content): Don't declare.
5952 * tui/tui-winsource.c
5953 (tui_source_window_base::set_exec_info_content): Rename from
5954 tui_set_exec_info_content.
5955 (tui_update_exec_info): Update.
5956
0bd27e07
TT
59572019-08-13 Tom Tromey <tom@tromey.com>
5958
5959 * tui/tui-winsource.h (struct tui_source_window_base)
5960 <show_source_content>: Declare.
5961 (tui_show_source_content): Don't declare.
5962 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
5963 (tui_source_window_base::show_source_content): Rename from
5964 tui_show_source_content.
5965 (tui_source_window_base::refresh_all): Update.
5966 * tui/tui-layout.c (show_source_disasm_command)
5967 (show_source_or_disasm_and_command): Update.
5968
b4ef5aeb
TT
59692019-08-13 Tom Tromey <tom@tromey.com>
5970
5971 * tui/tui-winsource.c (tui_erase_source_content)
5972 (tui_show_source_content, tui_source_window_base::refresh_all):
5973 Update.
5974 * tui/tui-wingeneral.h
5975 (tui_check_and_display_highlight_if_needed): Don't declare.
5976 * tui/tui-wingeneral.c
5977 (tui_win_info::check_and_display_highlight_if_needed): Rename from
5978 check_and_display_highlight_if_needed.
5979 * tui/tui-win.c (tui_rehighlight_all)
5980 (tui_win_info::make_visible_with_new_height): Update.
5981 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
5982 (tui_data_window::erase_data_content)
5983 (tui_data_window::display_all_data): Update.
5984 * tui/tui-data.h (struct tui_win_info)
5985 <check_and_display_highlight_if_needed>: Declare.
5986
fede5273
TT
59872019-08-13 Tom Tromey <tom@tromey.com>
5988
5989 * tui/tui-win.c (tui_resize_all): Call
5990 tui_delete_invisible_windows.
5991 * tui/tui-layout.c (show_layout): Call
5992 tui_delete_invisible_windows.
5993 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
5994 * tui/tui-data.c (tui_delete_invisible_windows): New function.
5995
22c3f490
TT
59962019-08-13 Tom Tromey <tom@tromey.com>
5997
5998 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
5999 tui_add_win_to_layout.
6000
16cb7910
TT
60012019-08-13 Tom Tromey <tom@tromey.com>
6002
6003 * tui/tui-layout.h (tui_default_win_height): Don't declare.
6004 * tui/tui-layout.c (tui_default_win_height): Now static.
6005
cc0c3ffb
TT
60062019-08-13 Tom Tromey <tom@tromey.com>
6007
6008 * tui/tui-layout.c (show_layout): Unify all layout cases into a
6009 single switch.
6010 (show_source_disasm_command, show_source_or_disasm_and_command):
6011 Don't check current layout.
6012
3f3ffe54
TT
60132019-08-13 Tom Tromey <tom@tromey.com>
6014
6015 * tui/tui-wingeneral.c (make_all_visible): Remove.
6016 (tui_make_all_invisible): Simplify.
6017 * tui/tui-layout.c (tui_make_all_invisible): Move from
6018 tui-wingeneral.c; simplify.
6019 (show_layout): Hoist call to tui_make_all_invisible.
6020 (show_data): Don't call tui_make_all_invisible.
6021
69258091
TT
60222019-08-13 Tom Tromey <tom@tromey.com>
6023
6024 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
6025 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
6026
62cf57fe
TT
60272019-08-13 Tom Tromey <tom@tromey.com>
6028
6029 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
6030 tui-data.c.
6031 (show_source_disasm_command, show_data)
6032 (show_source_or_disasm_and_command): Don't use
6033 tui_set_current_layout_to.
6034 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
6035 * tui/tui-data.c (current_layout, tui_current_layout): Move to
6036 tui-layout.c.
6037 (tui_set_current_layout_to): Remove.
6038
2afade5d
TT
60392019-08-13 Tom Tromey <tom@tromey.com>
6040
6041 * tui/tui-layout.c (tui_set_layout): Update.
6042 * tui/tui-data.h (struct tui_layout_def): Remove.
6043 (tui_layout_def): Don't declare.
6044 * tui/tui-data.c (layout_def): Remove.
6045 (tui_layout_def): Remove.
6046
a3504e96
TT
60472019-08-13 Tom Tromey <tom@tromey.com>
6048
6049 * tui/tui-winsource.h (struct tui_source_window_base)
6050 <clear_detail>: No longer "override".
6051 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
6052 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
6053 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
6054 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
6055 Remove.
6056 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
6057
29c92911
TT
60582019-08-13 Tom Tromey <tromey@adacore.com>
6059
6060 * tracepoint.c: Don't include readline.h or history.h.
6061
86c6b807
TT
60622019-08-12 Tom Tromey <tom@tromey.com>
6063
6064 * configure: Rebuild.
6065 * configure.ac: Check for readline 7.
6066 * NEWS: Mention readline 7 requirement.
6067 * README: Update.
6068
5db2718c
TT
60692019-08-12 Tom Tromey <tom@tromey.com>
6070
6071 * mingw-hdep.c (gdb_select): Remove readline hack.
6072
dac36daf
PFC
60732019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6074
6075 * blockframe.c (find_pc_partial_function): Set *block to nullptr
6076 when the function fails.
6077
1022c627
AA
60782019-08-09 Andreas Arnez <arnez@linux.ibm.com>
6079
6080 * s390-tdep.c (s390_type_align): New function.
6081 (s390_gdbarch_init): Set it as type_align gdbarch method.
6082
eba4caf2
TV
60832019-08-09 Tom de Vries <tdevries@suse.de>
6084
6085 PR gdb/24591
6086 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
6087 pc_low with relocation offset.
6088
123cd851
TT
60892019-08-07 Tom Tromey <tromey@adacore.com>
6090
6091 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
6092 (print_frame_args): Update.
6093 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
6094 Update.
6095 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
6096 * frame.h (struct frame_arg): Add initializers.
6097 <error>: Now a unique_xmalloc_ptr.
6098
3d31bc39
AH
60992019-08-07 Alan Hayward <alan.hayward@arm.com>
6100
6101 * NEWS: Expand the Pointer Authentication entry.
6102 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
6103 (aarch64_frame_unmask_lr): ... to this.
6104 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
6105 Call aarch64_frame_unmask_lr.
6106 * frame.c (struct frame_info): Add "masked" variable.
6107 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
6108 (fprint_frame): Check for masked pc.
6109 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
6110 declarations.
6111 * python/py-framefilter.c (py_print_frame): Check for masked pc.
6112 * stack.c (print_frame): Check for masked pc.
6113
0cf9feb9
TT
61142019-08-06 Tom Tromey <tom@tromey.com>
6115
6116 * stabsread.c (patch_block_stabs, read_one_struct_field)
6117 (read_enum_type): Use obstack_strndup.
6118 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
6119 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
6120 * dwarf2read.c (guess_full_die_structure_name)
6121 (anonymous_struct_prefix): Use obstack_strndup.
6122 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
6123 * c-exp.y (yylex): Use obstack_strndup.
6124 * ada-exp.y (write_object_renaming, write_ambiguous_var)
6125 (write_var_or_type): Use obstack_strndup.
6126
efba19b0
TT
61272019-08-06 Tom Tromey <tom@tromey.com>
6128
6129 * symfile.c (reread_symbols): Use obstack_strdup.
6130 * stabsread.c (read_type): Use obstack_strdup.
6131 * gdb_obstack.h (obstack_strdup): New overload.
6132 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
6133 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
6134 (dwarf2_canonicalize_name): Use obstack_strdup.
6135 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
6136 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
6137 Use obstack_strdup.
6138
f25102f7
TT
61392019-08-06 Tom Tromey <tom@tromey.com>
6140
6141 * gdb_obstack.h (obstack_strdup): Define.
6142 * gdb_obstack.c (obstack_strdup): Don't define.
6143
021887d8
TT
61442019-08-06 Tom Tromey <tom@tromey.com>
6145
6146 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
6147 obstack_strdup.
6148 * typeprint.c (typedef_hash_table::find_global_typedef): Use
6149 obstack_strdup.
6150 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
6151 * stabsread.c (common_block_start): Use obstack_strdup.
6152 * objfiles.c (set_objfile_main_name, objfile): Use
6153 obstack_strdup.
6154 * namespace.c (add_using_directive): Use obstack_strdup.
6155 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
6156 * jit.c (finalize_symtab): Use obstack_strdup.
6157 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
6158 (guess_partial_die_structure_name, partial_die_info::fixup)
6159 (dwarf2_name): Use obstack_strdup.
6160 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
6161 obstack_strdup.
6162 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
6163 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
6164 obstack_strdup.
6165 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
6166
d2834edc
PW
61672019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6168
6169 * unittests/help-doc-selftests.c: New file.
6170 * Makefile.in: Add the new file.
6171
590042fc
PW
61722019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6173
6174 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
6175 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
6176 the full first line, except when FOR_VALUE_PREFIX. In this case,
6177 the trailing '.' is not output, and the first character is uppercased.
6178 (print_help_for_command): Update call to print_doc_line.
6179 (print_doc_of_command): Likewise.
6180 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
6181 * cli/cli-option.c (append_indented_doc): Do not append newline.
6182 (build_help_option): Append newline after first appended_indented_doc
6183 only if a second call is done.
6184 (build_help): Append 2 new lines before each option, except the first
6185 one.
6186 * compile/compile.c (_initialize_compile): Add new lines after
6187 %OPTIONS%, when not at the end of the help.
6188 Change help doc or code
6189 producing the help doc to respect the invariants.
6190 * maint-test-options.c (_initialize_maint_test_options): Likewise.
6191 Also removed the new line after 'Options:', as all other commands
6192 do not put an empty line between 'Options:' and the first option.
6193 * printcmd.c (_initialize_printcmd): Likewise.
6194 * stack.c (_initialize_stack): Likewise.
6195 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
6196 incorrectly telling COMMAND is optional.
6197 * ada-lang.c (_initialize_ada_language): Change help doc or code
6198 producing the help doc to respect the invariants.
6199 * ada-tasks.c (_initialize_ada_tasks): Likewise.
6200 * breakpoint.c (_initialize_breakpoint): Likewise.
6201 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
6202 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
6203 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
6204 * cli/cli-style.c (cli_style_option::add_setshow_commands,
6205 _initialize_cli_style): Likewise.
6206 * corelow.c (core_target_info): Likewise.
6207 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
6208 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
6209 * filesystem.c (_initialize_filesystem): Likewise.
6210 * frame.c (_initialize_frame): Likewise.
6211 * gnu-nat.c (add_task_commands): Likewise.
6212 * infcall.c (_initialize_infcall): Likewise.
6213 * infcmd.c (_initialize_infcmd): Likewise.
6214 * interps.c (_initialize_interpreter): Likewise.
6215 * language.c (_initialize_language): Likewise.
6216 * linux-fork.c (_initialize_linux_fork): Likewise.
6217 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
6218 * maint.c (_initialize_maint_cmds): Likewise.
6219 * memattr.c (_initialize_mem): Likewise.
6220 * printcmd.c (_initialize_printcmd): Likewise.
6221 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
6222 _RegEx): Likewise.
6223 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
6224 * record-btrace.c (_initialize_record_btrace): Likewise.
6225 * record-full.c (_initialize_record_full): Likewise.
6226 * record.c (_initialize_record): Likewise.
6227 * regcache-dump.c (_initialize_regcache_dump): Likewise.
6228 * regcache.c (_initialize_regcache): Likewise.
6229 * remote.c (add_packet_config_cmd, init_remote_threadtests,
6230 _initialize_remote): Likewise.
6231 * ser-tcp.c (_initialize_ser_tcp): Likewise.
6232 * serial.c (_initialize_serial): Likewise.
6233 * skip.c (_initialize_step_skip): Likewise.
6234 * source.c (_initialize_source): Likewise.
6235 * stack.c (_initialize_stack): Likewise.
6236 * symfile.c (_initialize_symfile): Likewise.
6237 * symtab.c (_initialize_symtab): Likewise.
6238 * target-descriptions.c (_initialize_target_descriptions): Likewise.
6239 * top.c (init_main): Likewise.
6240 * tracefile-tfile.c (tfile_target_info): Likewise.
6241 * tracepoint.c (_initialize_tracepoint): Likewise.
6242 * tui/tui-win.c (_initialize_tui_win): Likewise.
6243 * utils.c (add_internal_problem_command): Likewise.
6244 * valprint.c (value_print_option_defs): Likewise.
6245
404f2902
FCE
62462019-08-06 Frank Ch. Eigler <fche@redhat.com>
6247
6248 PR build/24886
6249 * configure.ac: Drop enable-libmcheck support.
6250 * configure, config.in: Rebuild.
6251 * libmcheck.m4: Remove.
6252 * acinclude.m4: Don't include it.
6253 * Makefile.in: Don't distribute it.
6254 * top.c (print_gdb_configuration): Don't mention it.
6255
046bebe1
TT
62562019-08-06 Tom Tromey <tom@tromey.com>
6257
6258 * utils.c (set_output_style): Sometimes pass stream to
6259 emit_style_escape.
6260 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
6261 * record-btrace.c (btrace_insn_history): Update.
6262 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
6263 method.
6264 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
6265 Update initializers.
6266 <m_uiout>: New field.
6267 <m_di>: Move lower.
6268 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
6269 Remove "uiout" parameter.
6270 (dump_insns): Update.
6271 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
6272 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
6273
ddbcedf5
CB
62742019-08-06 Christian Biesinger <cbiesinger@google.com>
6275
6276 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
6277 (error_in_psymtab_expansion): Likewise.
6278 (lookup_symbol_via_quick_fns): Likewise.
6279 (basic_lookup_transparent_type_quick): Likewise.
6280 (basic_lookup_transparent_type_1): Likewise.
6281
b08b16c8
TT
62822019-08-06 Tom Tromey <tromey@adacore.com>
6283
6284 * source.c (last_source_error): Now bool.
6285 (print_source_lines_base): Make "noprint" bool. Only open
6286 source file when last_source_visited changes.
6287
cb44333d
TT
62882019-08-06 Tom Tromey <tromey@adacore.com>
6289
6290 * annotate.c (annotate_source_line): Use g_source_cache.
6291 * source-cache.c (source_cache::get_plain_source_lines): Change
6292 parameters. Populate m_offset_cache.
6293 (source_cache::ensure): New method.
6294 (source_cache::get_line_charpos): New method.
6295 (extract_lines): Move lower. Change parameters.
6296 (source_cache::get_source_lines): Move lower.
6297 * source-cache.h (class source_cache): Update comment.
6298 <get_line_charpos>: New method.
6299 <get_source_lines>: Update comment.
6300 <clear>: Clear m_offset_cache.
6301 <get_plain_source_lines>: Change parameters.
6302 <ensure>: New method
6303 <m_offset_cache>: New member.
6304 * source.c (forget_cached_source_info_for_objfile): Update.
6305 (info_source_command): Use g_source_cache.
6306 (find_source_lines, open_source_file_with_line_charpos): Remove.
6307 (print_source_lines_base, search_command_helper): Use g_source_cache.
6308 * source.h (open_source_file_with_line_charpos): Don't declare.
6309 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
6310 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
6311 Use g_source_cache.
6312
872dceaa
TT
63132019-08-06 Tom Tromey <tromey@adacore.com>
6314
6315 * source-cache.c (source_cache::get_plain_source_lines):
6316 Remove "first_line" and "last_line" parameters.
6317 (source_cache::get_source_lines): Cache plain text.
6318 * source-cache.h (class source_cache)
6319 <get_plain_source_lines>: Update.
6320
269249d9
TT
63212019-08-06 Tom Tromey <tromey@adacore.com>
6322
6323 * source-cache.c (extract_lines): No longer a method.
6324 Changed type of parameter. Include final newline.
6325 (selftests::extract_lines_test): New function.
6326 (_initialize_source_cache): Likewise.
6327 * source-cache.h (class source_cache)
6328 <extract_lines>: Don't declare.
6329
c0e8dcd8
TT
63302019-08-06 Tom Tromey <tromey@adacore.com>
6331
6332 * breakpoint.c (init_breakpoint_sal): Update.
6333 (breakpoint): Update.
6334 * breakpoint.h (struct breakpoint) <filter>: Now a
6335 unique_xmalloc_ptr.
6336
0b27c27d
CB
63372019-08-05 Christian Biesinger <cbiesinger@google.com>
6338
6339 * NEWS: Mention dictionary access on blocks.
6340 * python/py-block.c (blpy_getitem): New function.
6341 (block_object_as_mapping): New struct.
6342 (block_object_type): Use new struct for tp_as_mapping field.
6343
4ee94178
CB
63442019-08-05 Christian Biesinger <cbiesinger@google.com>
6345
6346 * objfiles.h (objfile): Add a comment describing partial symbols.
6347
8abfcabc
TT
63482019-08-05 Tom Tromey <tromey@adacore.com>
6349
6350 * compile/compile.c (_initialize_compile): Use _(), not N_().
6351 * thread.c (_initialize_thread): Use _(), not N_().
6352 * stack.c (_initialize_stack): Use _(), not N_().
6353 * printcmd.c (_initialize_printcmd): Use _(), not N_().
6354
2b79f376
SM
63552019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6356
6357 * dwarf2read.c (struct dw2_symtab_iterator):
6358 <want_specific_block>: Remove.
6359 <block_index>: Change type to gdb::optional.
6360 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
6361 change type of BLOCK_INDEX parameter to gdb::optional.
6362 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
6363 (dw2_lookup_symbol): Don't pass argument for
6364 WANT_SPECIFIC_BLOCK.
6365 (dw2_expand_symtabs_for_function): Don't pass argument for
6366 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
6367 (class dw2_debug_names_iterator)
6368 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
6369 parameter, change BLOCK_INDEX type to gdb::optional.
6370 <m_want_specific_block>: Remove.
6371 <m_block_index>: Change type to gdb::optional.
6372 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
6373 gdb::optional. Re-write in function of gdb::optional.
6374 (dw2_debug_names_lookup_symbol): Don't pass argument for
6375 WANT_SPECIFIC_BLOCK.
6376 (dw2_debug_names_expand_symtabs_for_function): Don't pass
6377 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
6378 BLOCK_INDEX.
6379
ae60f04e
PW
63802019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6381
6382 * NEWS: Mention changes to "info sources" command.
6383
28cd9371
PW
63842019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6385
6386 * symtab.c (filename_partial_match_opts): New struct type.
6387 (struct output_source_filename_data): New members
6388 regexp, c_regexp, partial_match.
6389 (output_source_filename): Use new members to decide to print file.
6390 (info_sources_option_defs): New variable.
6391 (make_info_sources_options_def_group, print_info_sources_header,
6392 info_sources_command_completer):
6393 New functions.
6394 (info_sources_command): Read new optional arguments.
6395 (_initialize_symtab): Update info sources help.
6396
ca683e3a
AO
63972019-08-02 Alexandre Oliva <oliva@adacore.com>
6398
6399 * ada-lang.c (exception_support_info_v0): Renamed from...
6400 (default_exception_support_info): ... this. Create new
6401 definition for v1.
6402 (ada_has_this_exception_support): Look up catch_handlers_sym.
6403 (ada_exception_support_info_sniffer): Try v0 after default.
6404
f1264162
TT
64052019-08-01 Tom Tromey <tromey@adacore.com>
6406
6407 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
6408 gdbarch.h.
6409
0a7b2485
CB
64102019-08-01 Christian Biesinger <cbiesinger@google.com>
6411
6412 * s12z-tdep.c: Fix include path for s12z-opc.h.
6413
c6bdbeb7
AH
64142019-08-01 Alan Hayward <alan.hayward@arm.com>
6415
6416 * NEWS: Require GNU make 3.82.
6417
a2bd7b82
TT
64182019-07-16 Tom Tromey <tom@tromey.com>
6419
6420 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
6421 declare.
6422
aa3b6533
TT
64232019-07-30 Tom Tromey <tromey@adacore.com>
6424
6425 * block.c (contained_in): Remove BLOCK_FUNCTION check.
6426
a1530dc7
KB
64272019-07-30 Kevin Buettner <kevinb@redhat.com>
6428
6429 * printcmd.c (print_address_symbolic): Print negative offsets.
6430 (build_address_symbolic): Force signed arithmetic when computing
6431 offset.
6432
2906593f
CB
64332019-07-30 Christian Biesinger <cbiesinger@google.com>
6434
6435 PR/24474: Add a function to lookup static variables.
6436 * NEWS: Mention this new function.
6437 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
6438 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
6439 * python/python.c (python_GdbMethods): Add new function.
6440
c620ed88
CB
64412019-07-29 Christian Biesinger <cbiesinger@google.com>
6442
6443 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
6444 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
6445 (objfpy_lookup_static_symbol): New function.
6446 (objfile_object_methods): Add new functions.
6447
bc4268a5
PW
64482019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6449
6450 * NEWS: Mention 'set|show print frame-info'. Mention new
6451 'presence' value for 'frame-arguments'. Mention new '-frame-info'
6452 backtrace argument. Mention that python frame filtering code
6453 is now consistent with what 'backtrace' command prints.
6454
4b5e8d19
PW
64552019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6456
6457 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
6458 comments.
6459 (print_frame_info_auto, print_frame_info_source_line,
6460 print_frame_info_location, print_frame_info_source_and_location,
6461 print_frame_info_location_and_address, print_frame_info_short_location):
6462 New declarations.
6463 (struct frame_print_options): New member print_frame_info.
6464 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
6465 * stack.h (get_user_print_what_frame_info): New declaration.
6466 (frame_show_address): New declaration.
6467 * stack.c (print_frame_arguments_choices): New value 'presence'.
6468 (print_frame_info_auto, print_frame_info_source_line,
6469 print_frame_info_location, print_frame_info_source_and_location,
6470 print_frame_info_location_and_address, print_frame_info_short_location,
6471 print_frame_info_choices, print_frame_info_print_what): New definitions.
6472 (print_frame_args): Only print dots for args if print frame-arguments
6473 is 'presence'.
6474 (frame_print_option_defs): New element for "frame-info".
6475 (get_user_print_what_frame_info): New function.
6476 (frame_show_address): Make non static. Move comment to stack.h.
6477 (print_frame_info_to_print_what): New function.
6478 (print_frame_info): Update comment. Use fp_opts.print_frame_info
6479 to decide what to print.
6480 (backtrace_command_1): Handle the new print_frame_arguments_presence
6481 value.
6482 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
6483 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
6484 (py_print_frame): In non-mi mode, use LOCATION as default for
6485 print_what, similarly to frame information printed directly by
6486 backtrace command. Handle frame-info user option in non MI mode.
6487
6bdfee81
KB
64882019-07-27 Kevin Buettner <kevinb@redhat.com>
6489
6490 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
6491 Add case for debugging 32-bit target on 64-bit host. Revise
6492 comment.
6493
98a617f8
KB
64942019-07-27 Kevin Buettner <kevinb@redhat.com>
6495
6496 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
6497 instead of find_function_entry_range_from_pc.
6498
567238c9
KB
64992019-07-27 Kevin Buettner <kevinb@redhat.com>
6500
6501 * stack.c (find_frame_funname): Remove code which preferred
6502 minsym over symtab sym in "certain pathological cases".
6503
2dc80cf8
KB
6504 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
6505 parameter. Change type of "do_demangle" to bool.
6506 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
6507 Pass suitable "prefer_sym_over_minsym" flag to
6508 build_address_symbolic(). Don't output "+" for negative offsets.
6509 * printcmd.c (print_address_symbolic): Update invocation of
6510 build_address_symbolic to include a "prefer_sym_over_minsym"
6511 flag.
6512 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
6513 Restrict cases in which use of minimal symbol is preferred to that
6514 of a found symbol. Update comments.
6515
1aff7173
KB
6516 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
6517 for entry pc when entry pc is out of range for that FDE.
6518
89b085ac
BC
65192019-07-26 Brian Callahan <bcallah@openbsd.org>
6520
6521 PR gdb/24839:
6522 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
6523 type.
6524
f32feb4a
CB
65252019-07-25 Christian Biesinger <cbiesinger@google.com>
6526
6527 * python/py-objfile.c (add_separate_debug_file): Fix comment about
6528 this function's Python signature.
6529
6530
65312019-07-24 Christian Biesinger <cbiesinger@google.com>
442853af
CB
6532
6533 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
6534 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
6535 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
6536 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
6537 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
6538
6539
c54e4253
YS
65402019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
6541
6542 * h8300-tdep.c (h8300_register_name_common): New.
6543 h8300_register_name): Use h8300_register_name_common.
6544 (h8300s_register_name): Likewise.
6545 (h8300sx_register_name): Likewise.
6546 (h8300h_register_nam): New.
6547 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
6548
6549
40eadf04
SP
65502019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
6551
6552 * arm-tdep.c (arm_skip_cmse_entry): New function.
6553 (arm_is_sgstubs_section): New function.
6554 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
6555
bfa2a36d
TT
65562019-07-22 Tom Tromey <tom@tromey.com>
6557
6558 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
6559 Don't self-assign.
6560
a8e9d247
AB
65612019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
6562
6563 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
6564 type_print.
6565
eb86c5e2
AB
65662019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
6567
6568 * symtab.c (search_symbols): Adjust msymbol matching type arrays
6569 so that GDB doesn't match any msymbols when searching in the
6570 TYPES_DOMAIN.
6571 (print_symbol_info): Print using typedef_print or type_print based
6572 on the type of the symbol. Add updated FIXME comment moved from...
6573 (_initialize_symtab): ... move and update FIXME comment to above.
6574
a8eab7c6
AB
65752019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
6576
6577 * NEWS: Mention adding -q option to "info types".
6578 * symtab.c (struct info_types_options): New struct.
6579 (info_types_options_defs): New variable.
6580 (make_info_types_options_def_group): New function.
6581 (info_types_command): Use gdb::option framework to parse options.
6582 (info_types_command_completer): New function.
6583 (_initialize_symtab): Extend the help text on "info types" and
6584 register command completer.
6585
b4603c34
CB
65862019-07-21 Christian Biesinger <cbiesinger@google.com>
6587
6588 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
6589 (lookup_symbol_in_objfile): Change int to block_enum and add a
6590 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
6591
c8cdc1e0
CB
65922019-07-20 Christian Biesinger <cbiesinger@google.com>
6593
6594 * MAINTAINERS (Write After Approval): Add self.
6595
01e175fe
AB
65962019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
6597
6598 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
6599 instruction to the dummy code region.
6600
56f79b63
TT
66012019-07-19 Tom Tromey <tromey@adacore.com>
6602
6603 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
6604 (ARGSUSED, PARAMS, __func__): Remove rules.
6605
4c5aa8e0
AH
66062019-07-19 Alan Hayward <alan.hayward@arm.com>
6607
6608 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
6609 * features/arm/arm-with-iwmmxt.c: Remove.
6610 * features/arm/arm-with-iwmmxt.xml: Remove.
6611 * features/arm/arm-with-m-fpa-layout.c: Remove.
6612 * features/arm/arm-with-m-fpa-layout.xml: Remove.
6613 * features/arm/arm-with-m-vfp-d16.c: Remove.
6614 * features/arm/arm-with-m-vfp-d16.xml: Remove.
6615 * features/arm/arm-with-m.c: Remove.
6616 * features/arm/arm-with-m.xml: Remove.
6617 * features/arm/arm-with-neon.c: Remove.
6618 * features/arm/arm-with-neon.xml: Remove.
6619 * features/arm/arm-with-vfpv2.c: Remove.
6620 * features/arm/arm-with-vfpv2.xml: Remove.
6621 * features/arm/arm-with-vfpv3.c: Remove.
6622 * features/arm/arm-with-vfpv3.xml: Remove.
6623
f42b2617
AH
66242019-07-19 Alan Hayward <alan.hayward@arm.com>
6625
6626 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
6627
f29ec966
AH
66282019-07-19 Alan Hayward <alan.hayward@arm.com>
6629
6630 * arch/aarch32.c (aarch32_create_target_description): Create
6631 target descriptions using features.
6632 * arch/arm.c (arm_create_target_description)
6633 (arm_create_mprofile_target_description): Likewise.
6634 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
6635
d105cce5
AH
66362019-07-19 Alan Hayward <alan.hayward@arm.com>
6637
6638 * Makefile.in: Add new files.
6639 * aarch32-tdep.c: New file.
6640 * aarch32-tdep.h: New file.
6641 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
6642 Call aarch32_read_description.
6643 * arch/aarch32.c: New file.
6644 * arch/aarch32.h: New file.
6645 * arch/arm.c (arm_create_target_description)
6646 (arm_create_mprofile_target_description): New function.
6647 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
6648 (arm_create_target_description)
6649 (arm_create_mprofile_target_description): New declaration.
6650 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
6651 read_description functions.
6652 * arm-linux-nat.c (arm_linux_nat_target::read_description):
6653 Likewise.
6654 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
6655 * arm-tdep.c (tdesc_arm_list): New variable.
6656 (arm_register_g_packet_guesses): Call create description functions.
6657 (arm_read_description) (arm_read_mprofile_description): New
6658 function.
6659 * arm-tdep.h (arm_read_description)
6660 (arm_read_mprofile_description): Add declaration.
6661 * configure.tgt: Add new files.
6662
afe09f0b
GL
66632019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
6664
6665 * top.c (new_ui_command): Open specified terminal just once.
6666
cd215b2e
TT
66672019-07-18 Tom Tromey <tromey@adacore.com>
6668
6669 * symtab.c (main_name): Constify return type.
6670 * symfile.c (set_initial_language): Update.
6671 * symtab.h (main_name): Constify return type.
6672
d8f68fcb
TT
66732019-07-17 Tom Tromey <tom@tromey.com>
6674
6675 * tui/tui-winsource.c (tui_update_source_window)
6676 (tui_update_source_window_as_is)
6677 (tui_update_source_windows_with_line): Remove return.
6678 * tui/tui-disasm.c (tui_show_disassem)
6679 (tui_show_disassem_and_update_source): Remove return.
6680 * tui/tui.c (tui_reset): Remove return.
6681 * tui/tui-wingeneral.c
6682 (tui_check_and_display_highlight_if_needed): Remove return.
6683
ca5af91e
TT
66842019-07-17 Tom Tromey <tom@tromey.com>
6685
6686 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
6687
5104fe36
TT
66882019-07-17 Tom Tromey <tom@tromey.com>
6689
6690 * tui/tui-winsource.h (struct tui_exec_info_window)
6691 (struct tui_source_window_base): Move from tui-data.h.
6692 * tui/tui-winsource.c: Move many method definitions from
6693 elsewhere. Remove "structuring" comments.
6694 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
6695 (tui_source_window_base::refresh_window): Move to
6696 tui-winsource.c.
6697 * tui/tui-win.c (tui_source_window_base::refresh_all)
6698 (tui_source_window_base::update_tab_width)
6699 (tui_source_window_base::set_new_height)
6700 (tui_source_window_base::do_make_visible_with_new_height): Move to
6701 tui-winsource.c.
6702 * tui/tui-source.h: Update.
6703 * tui/tui-source.c (tui_source_window_base::reset): Move to
6704 tui-winsource.c.
6705 * tui/tui-disasm.h: Update.
6706 * tui/tui-data.h (struct tui_exec_info_window): Move to
6707 tui-winsource.h.
6708 (struct tui_source_window_base): Likewise.
6709 * tui/tui-data.c (tui_source_window_base::clear_detail)
6710 (tui_source_window_base, ~tui_source_window_base): Move to
6711 tui-winsource.c.
6712
daa15dde
TT
67132019-07-17 Tom Tromey <tom@tromey.com>
6714
6715 * tui/tui-win.c (tui_resize_all)
6716 (tui_source_window_base::update_tab_width)
6717 (tui_adjust_win_heights): Update.
6718 (tui_win_info::make_invisible_and_set_new_height): Rename from
6719 make_invisible_and_set_new_height.
6720 * tui/tui-data.h (struct tui_win_info)
6721 <make_invisible_and_set_new_height>: New method.
6722
bfad4537
TT
67232019-07-17 Tom Tromey <tom@tromey.com>
6724
6725 * tui/tui.c: Update.
6726 * tui/tui-source.h (struct tui_source_window): Move from
6727 tui-data.h.
6728 * tui/tui-layout.c: Update.
6729 * tui/tui-disasm.c: Update.
6730 * tui/tui-data.h (struct tui_source_window): Move to
6731 tui-source.h.
6732
88f7e873
TT
67332019-07-17 Tom Tromey <tom@tromey.com>
6734
6735 * tui/tui-disasm.h (struct tui_disasm_window): Move from
6736 tui-data.h.
6737 * tui/tui-data.h (struct tui_disasm_window): Move to
6738 tui-disasm.h.
6739
96bd6233
TT
67402019-07-17 Tom Tromey <tom@tromey.com>
6741
6742 * tui/tui-regs.h (struct tui_data_item_window): Move from
6743 tui-data.h.
6744 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
6745 * tui/tui-data.h (struct tui_data_item_window): Move to
6746 tui-regs.h.
6747 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
6748
ce38393b
TT
67492019-07-17 Tom Tromey <tom@tromey.com>
6750
6751 * tui/tui.c: Update.
6752 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
6753 (tui_cmd_window::max_height): Move to tui-command.c.
6754 * tui/tui-layout.c: Update.
6755 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
6756 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
6757 tui-command.c.
6758 * tui/tui-command.h (struct tui_cmd_window): Move from
6759 tui-data.h.
6760 * tui/tui-command.c: Remove "structuring" comments.
6761 (tui_cmd_window::clear_detail)
6762 (tui_cmd_window::do_make_visible_with_new_height)
6763 (tui_cmd_window::max_height): Move from elsewhere.
6764
2d8b51cb
TT
67652019-07-17 Tom Tromey <tom@tromey.com>
6766
6767 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
6768 Now static.
6769 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
6770 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
6771
18ab23af
TT
67722019-07-17 Tom Tromey <tom@tromey.com>
6773
6774 * tui/tui.c: Update.
6775 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
6776 tui-regs.c.
6777 * tui/tui-windata.h: Remove file.
6778 * tui/tui-windata.c: Remove file.
6779 * tui/tui-win.c (tui_data_window::set_new_height)
6780 (tui_data_window::do_make_visible_with_new_height): Move to
6781 tui-regs.c.
6782 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
6783 * tui/tui-regs.c: Remove "structuring" comments.
6784 (tui_data_window::first_data_item_displayed)
6785 (tui_data_window::delete_data_content_windows)
6786 (tui_data_window::erase_data_content)
6787 (tui_data_window::display_all_data)
6788 (tui_data_window::refresh_all)
6789 (tui_data_window::do_scroll_vertical)
6790 (tui_data_window::clear_detail, tui_data_window::set_new_height)
6791 (tui_data_window::do_make_visible_with_new_height)
6792 (tui_data_window::refresh_window): Move from elsewhere.
6793 (_initialize_tui_regs): Move to end of file.
6794 * tui/tui-layout.c: Update.
6795 * tui/tui-hooks.c: Update.
6796 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
6797 * tui/tui-data.c (tui_data_window::clear_detail): Move to
6798 tui-regs.c.
6799 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
6800
88b7e7cc
TT
68012019-07-17 Tom Tromey <tom@tromey.com>
6802
6803 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
6804 seen.
6805
0fcd3711
TT
68062019-07-17 Tom Tromey <tom@tromey.com>
6807
6808 * tui/tui-win.c (tui_source_window_base::set_new_height)
6809 (tui_source_window_base::do_make_visible_with_new_height): Use
6810 m_has_locator field directly.
6811 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
6812 method.
6813 (struct tui_source_window_base) <has_locator>: Likewise.
6814
4a38112d
TT
68152019-07-17 Tom Tromey <tom@tromey.com>
6816
6817 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
6818 Don't declare.
6819 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
6820 Remove.
6821 * tui/tui-win.c (tui_source_window_base::set_new_height)
6822 (tui_source_window_base::set_new_height)
6823 (make_invisible_and_set_new_height)
6824 (tui_source_window_base::do_make_visible_with_new_height)
6825 (tui_source_window_base::do_make_visible_with_new_height):
6826 Update.
6827 * tui/tui-layout.c (show_source_disasm_command, show_data)
6828 (show_source_or_disasm_and_command): Update.
6829 * tui/tui-layout.c (show_layout): Update.
6830
09129226
TT
68312019-07-17 Tom Tromey <tom@tromey.com>
6832
6833 * tui/tui-layout.c (make_data_window): Remove.
6834 (show_data): Unify creation and re-initialization cases.
6835
4a8a5e84
TT
68362019-07-17 Tom Tromey <tom@tromey.com>
6837
6838 * tui/tui-layout.c (make_source_window, make_disasm_window):
6839 Remove.
6840 (show_data): Unify creation and re-initialization cases.
6841
76d2be8e
TT
68422019-07-17 Tom Tromey <tom@tromey.com>
6843
6844 * tui/tui-layout.c (make_command_window): Remove.
6845 (show_source_disasm_command, show_source_or_disasm_and_command):
6846 Unify creation and re-initialization cases.
6847
890b8bde
TT
68482019-07-17 Tom Tromey <tom@tromey.com>
6849
6850 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
6851 creation and re-initialization cases.
6852
2cdfa113
TT
68532019-07-17 Tom Tromey <tom@tromey.com>
6854
6855 * tui/tui-regs.c (tui_get_register): Return void.
6856
8e3cfd09
TT
68572019-07-17 Tom Tromey <tom@tromey.com>
6858
6859 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
6860 Simplify.
6861
f4e04977
TT
68622019-07-17 Tom Tromey <tom@tromey.com>
6863
6864 * tui/tui-layout.c (show_source_disasm_command): Simplify window
6865 resetting.
6866
0379b883
TT
68672019-07-17 Tom Tromey <tom@tromey.com>
6868
6869 * tui/tui.h (tui_set_layout_by_name): Don't declare.
6870 * tui/tui-regs.c (tui_reg_layout): New function.
6871 (tui_show_registers, tui_reg_command): Use it.
6872 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
6873 (tui_layout_command): Rename from tui_set_layout_by_name. Change
6874 parameters.
6875 (tui_layout_command): Remove.
6876
b7fbad91
TT
68772019-07-17 Tom Tromey <tom@tromey.com>
6878
6879 * tui/tui-layout.h (tui/tui-layout): Return void.
6880 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
6881
4e1e56b9
TT
68822019-07-17 Tom Tromey <tom@tromey.com>
6883
6884 * tui/tui-layout.c (show_source_disasm_command, show_data):
6885 Update.
6886 (reset_locator): Remove.
6887 (show_source_or_disasm_and_command): Update.
6888
1e0c09ba
TT
68892019-07-17 Tom Tromey <tom@tromey.com>
6890
6891 * tui/tui-source.c (tui_source_window_base::reset): Remove
6892 win_type parameter.
6893 * tui/tui-layout.c (make_command_window, make_source_window)
6894 (make_disasm_window, make_data_window)
6895 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
6896 (reset_locator, show_source_or_disasm_and_command): Update.
6897 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
6898 win_type parameter.
6899 (struct tui_source_window_base) <reset>: Likewise.
6900
1bf605de
TT
69012019-07-17 Tom Tromey <tom@tromey.com>
6902
6903 * tui/tui-layout.c (show_source_disasm_command): Use
6904 reset_locator.
6905 (reset_locator): New function.
6906 (init_and_make_win): Remove.
6907 (show_source_or_disasm_and_command): Use reset_locator.
6908
098f9ed4
TT
69092019-07-17 Tom Tromey <tom@tromey.com>
6910
6911 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
6912 condition.
6913 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
6914 Remove condition.
6915 * tui/tui-source.c (tui_source_window_base::reset): New method.
6916 * tui/tui-layout.c (make_command_window): Don't call
6917 init_and_make_win.
6918 (make_source_window, make_disasm_window): Don't call
6919 make_source_or_disasm_window.
6920 (make_data_window): Don't call init_and_make_win. Change calling
6921 convention.
6922 (show_source_disasm_command, show_data): Simplify.
6923 (make_source_or_disasm_window): Remove.
6924 (show_source_or_disasm_and_command): Simplify.
6925 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
6926 (struct tui_source_window_base) <reset>: Likewise.
6927 <execution_info>: Remove initializer.
6928 * tui/tui-data.c (tui_source_window_base): Initialize
6929 execution_info.
6930
80110957
TT
69312019-07-17 Tom Tromey <tom@tromey.com>
6932
6933 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
6934 variable.
6935
cf82af05
TT
69362019-07-17 Tom Tromey <tom@tromey.com>
6937
6938 * tui/tui.c (tui_rl_other_window): Update.
6939 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
6940 superclass method first. Always iterate over regs_content.
6941 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
6942 method.
6943 * tui/tui-win.c (tui_set_focus_command): Update.
6944
01aeb396
TT
69452019-07-17 Tom Tromey <tom@tromey.com>
6946
6947 * tui/tui-win.c (tui_set_focus_command): Rename from
6948 tui_set_focus. Call tui_enable.
6949 (tui_set_focus_command): Remove.
6950
fd6c75ee
TT
69512019-07-17 Tom Tromey <tom@tromey.com>
6952
6953 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
6954 refresh_window.
6955 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
6956 touchwin.
6957 (tui_data_window::refresh_window): Call refresh_window on data
6958 items. Always call superclass refresh_window.
6959 (tui_win_info::refresh): Remove.
6960 (tui_source_window_base::refresh_window): Update.
6961 (tui_refresh_all): Update.
6962 * tui/tui-layout.c (show_source_disasm_command): Remove call to
6963 refresh_window.
6964 (show_source_or_disasm_and_command): Likewise.
6965 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
6966 (struct tui_source_window_base) <refresh>: Likewise.
6967
f6cc34a9
TT
69682019-07-17 Tom Tromey <tom@tromey.com>
6969
6970 * tui/tui-winsource.c (tui_clear_source_content)
6971 (tui_show_source_content): Update.
6972 * tui/tui-source.c (tui_source_window::showing_source_p): Check
6973 whether content is empty.
6974 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
6975 Remove.
6976
f31ec9af
TT
69772019-07-17 Tom Tromey <tom@tromey.com>
6978
6979 * tui/tui-winsource.c (tui_erase_source_content): Clear the
6980 window's contents.
6981 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
6982 * tui/tui-source.c (tui_set_source_content_nil): Remove.
6983
d1b6f1e5
TT
69842019-07-17 Tom Tromey <tom@tromey.com>
6985
6986 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
6987 (struct tui_data_item_window): Update.
6988
d9743a13
TT
69892019-07-17 Tom Tromey <tom@tromey.com>
6990
6991 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
6992 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
6993 defines.
6994
caf0bc4e
TT
69952019-07-17 Tom Tromey <tom@tromey.com>
6996
6997 * tui/tui-winsource.h (tui_erase_source_content)
6998 (tui_clear_source_content): Remove "display_prompt" parameter.
6999 * tui/tui-winsource.c (tui_update_source_window_as_is)
7000 (tui_update_source_windows_with_addr): Update.
7001 (tui_clear_source_content): Remove "display_prompt" parameter.
7002 (tui_erase_source_content): Likewise. Simplify.
7003 (tui_show_source_content): Update.
7004 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
7005 * tui/tui-stack.c (tui_show_frame_info): Update.
7006 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
7007 Remove defines.
7008
9d391078
TT
70092019-07-17 Tom Tromey <tom@tromey.com>
7010
7011 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
7012 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
7013 parameter.
7014 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
7015 parameter.
7016
a38da35d
TT
70172019-07-17 Tom Tromey <tom@tromey.com>
7018
7019 * tui/tui-winsource.c (tui_clear_source_content)
7020 (tui_show_source_content, tui_show_exec_info_content)
7021 (tui_clear_exec_info_content): Update.
7022 * tui/tui-stack.c (tui_show_locator_content): Update.
7023 (tui_show_frame_info): Update.
7024 * tui/tui-source.h (tui_source_window): Don't declare.
7025 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
7026 from tui_source_is_displayed.
7027 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
7028 Remove field.
7029 (struct tui_source_window_base) <content_in_use>: New field. Now
7030 bool.
7031 (struct tui_source_window) <showing_source_p>: New method.
7032 (TUI_SRC_WIN): Change cast.
7033 * tui/tui-data.c (tui_initialize_static_data): Update.
7034
c2cd8994
TT
70352019-07-17 Tom Tromey <tom@tromey.com>
7036
7037 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
7038 location_matches_p.
7039 * tui/tui-source.c (tui_source_window::location_matches_p): New
7040 method.
7041 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
7042 method.
7043 * tui/tui-data.h (struct tui_source_window_base)
7044 <location_matches_p>: New method.
7045 (struct tui_source_window, struct tui_disasm_window)
7046 <location_matches_p>: Likewise.
7047
4dde7b34
TT
70482019-07-17 Tom Tromey <tom@tromey.com>
7049
7050 * tui/tui-win.c (tui_set_win_height_command): Rename from
7051 tui_set_win_height.
7052 (tui_set_win_height_command): Remove.
7053
b73dd877
TT
70542019-07-17 Tom Tromey <tom@tromey.com>
7055
7056 * tui/tui-source.c (tui_source_window): New constructor. Add
7057 observer.
7058 (~tui_source_window): New destructor.
7059 (tui_source_window::style_changed): New method.
7060 * tui/tui-hooks.c (tui_redisplay_source): Remove.
7061 (tui_attach_detach_observers): Update.
7062 * tui/tui-data.h (struct tui_source_window): Make constructor not
7063 inline. Add destructor.
7064 (struct tui_source_window) <style_changed>: New method.
7065 <m_observable>: New member.
7066
ae2b5380
TT
70672019-07-17 Tom Tromey <tom@tromey.com>
7068
7069 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
7070 * tui/tui-win.c (tui_resize_all): Fix typo.
7071
1ce3e844
TT
70722019-07-17 Tom Tromey <tom@tromey.com>
7073
7074 * tui/tui-wingeneral.h (tui_refresh_all): Update.
7075 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
7076 (tui_refresh_all): Remove "list" parameter. Use foreach.
7077 * tui/tui-win.c (window_name_completer): Use foreach.
7078 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
7079 (update_tab_width): Likewise.
7080 * tui/tui-layout.c (show_layout): Update.
7081 * tui/tui-data.h (class tui_window_iterator): New.
7082 (struct all_tui_windows): New.
7083 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
7084
fe3eaf1c
TT
70852019-07-17 Tom Tromey <tom@tromey.com>
7086
7087 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
7088 parameter. Don't reference globals.
7089 (tui_reg_command): Update.
7090
368c1354
TT
70912019-07-17 Tom Tromey <tom@tromey.com>
7092
7093 * tui/tui-regs.c (tui_show_registers): Simplify.
7094
e80cd204
TT
70952019-07-17 Tom Tromey <tom@tromey.com>
7096
7097 * tui/tui-regs.c (tui_show_registers): Update.
7098 (tui_show_register_group): Add win_info parameter.
7099
aca2dd16
TT
71002019-07-17 Tom Tromey <tom@tromey.com>
7101
7102 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
7103 Rename from tui_display_reg_element_at_line.
7104 (tui_data_window::display_registers_from_line): Update.
7105 * tui/tui-data.h (struct tui_data_window)
7106 <display_reg_element_at_line>: New method.
7107
517e9505
TT
71082019-07-17 Tom Tromey <tom@tromey.com>
7109
7110 * tui/tui-regs.h (tui_display_registers_from)
7111 (tui_display_registers_from_line): Don't declare.
7112 * tui/tui-windata.c (tui_data_window::display_all_data)
7113 (tui_data_window::refresh_all)
7114 (tui_data_window::do_scroll_vertical): Update.
7115 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
7116 from tui_display_registers_from.
7117 (tui_display_reg_element_at_line): Update.
7118 (tui_data_window::display_registers_from_line): Rename from
7119 tui_display_registers_from_line.
7120 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
7121 display_registers_from_line>: New methods.
7122
f76d8b19
TT
71232019-07-17 Tom Tromey <tom@tromey.com>
7124
7125 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
7126 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
7127 from tui_erase_data_content.
7128 (tui_data_window::display_all_data)
7129 (tui_data_window::refresh_all)
7130 (tui_data_window::do_scroll_vertical): Update.
7131 * tui/tui-regs.c (tui_show_registers): Update.
7132 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
7133 New method.
7134
b4094625
TT
71352019-07-17 Tom Tromey <tom@tromey.com>
7136
7137 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
7138 declare.
7139 * tui/tui-windata.c
7140 (tui_data_window::delete_data_content_windows): Rename from
7141 tui_delete_data_content_windows.
7142 (tui_data_window::display_all_data)
7143 (tui_data_window::do_scroll_vertical): Update.
7144 * tui/tui-data.h (struct tui_data_window)
7145 <delete_data_content_windows>: New method.
7146
c223a729
TT
71472019-07-17 Tom Tromey <tom@tromey.com>
7148
7149 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
7150 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
7151
50daf268
TT
71522019-07-17 Tom Tromey <tom@tromey.com>
7153
7154 * tui/tui-windata.h (tui_display_all_data): Don't declare.
7155 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
7156 from tui_display_all_data.
7157 * tui/tui-win.c
7158 (tui_data_window::do_make_visible_with_new_height): Update.
7159 * tui/tui-regs.c (tui_show_registers): Update.
7160 * tui/tui-layout.c (tui_set_layout): Update.
7161 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
7162 method.
7163
df5f8cab
TT
71642019-07-17 Tom Tromey <tom@tromey.com>
7165
7166 * tui/tui-windata.h (tui_display_data_from): Don't declare.
7167 * tui/tui-windata.c (tui_display_data_from): Remove.
7168 (tui_data_window::refresh_all): Update.
7169
80cb6c27
TT
71702019-07-17 Tom Tromey <tom@tromey.com>
7171
7172 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
7173 * tui/tui-windata.c (tui_display_data_from_line): Remove.
7174 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
7175 tui_display_registers_from_line.
7176 * tui/tui-regs.h (tui_display_registers_from_line): Update.
7177 * tui/tui-regs.c (tui_display_registers_from_line): Remove
7178 "force_display" parameter.
7179
baff0c28
TT
71802019-07-17 Tom Tromey <tom@tromey.com>
7181
7182 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
7183 declare.
7184 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
7185 Rename from tui_first_reg_element_no_inline.
7186 (tui_display_reg_element_at_line)
7187 (tui_display_registers_from_line): Update.
7188 * tui/tui-data.h (struct tui_data_window)
7189 <first_reg_element_no_inline>: New method.
7190
3b23c5f2
TT
71912019-07-17 Tom Tromey <tom@tromey.com>
7192
7193 * tui/tui-windata.c (tui_display_data_from)
7194 (tui_data_window::do_scroll_vertical): Update.
7195 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
7196 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
7197 Rename from tui_line_from_reg_element_no.
7198 (tui_display_registers_from_line): Update.
7199 * tui/tui-data.h (struct tui_data_window)
7200 <line_from_reg_element_no>: New method.
7201
0b5ec218
TT
72022019-07-17 Tom Tromey <tom@tromey.com>
7203
7204 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
7205 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
7206 tui_last_regs_line_no.
7207 (tui_display_reg_element_at_line)
7208 (tui_display_registers_from_line): Update.
7209 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
7210 method.
7211
0807ab7b
TT
72122019-07-17 Tom Tromey <tom@tromey.com>
7213
7214 PR tui/24722:
7215 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
7216 (tui_update_breakpoint_info): Add "being_deleted" parameter.
7217 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
7218 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
7219 (tui_update_breakpoint_info): Likewise.
7220 * tui/tui-hooks.c (tui_event_create_breakpoint)
7221 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
7222 Update.
7223
9ad7fdef
TT
72242019-07-17 Tom Tromey <tom@tromey.com>
7225
7226 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
7227
5813316f
TT
72282019-07-17 Tom Tromey <tom@tromey.com>
7229
7230 * tui/tui-winsource.c (tui_update_source_window_as_is)
7231 (tui_update_source_windows_with_addr): Update.
7232 * tui/tui-source.h (tui_set_source_content)
7233 (tui_show_symtab_source): Add "win_info" parameter.
7234 * tui/tui-source.c (tui_set_source_content): Add "win_info"
7235 parameter.
7236 (tui_show_symtab_source): Likewise.
7237
00e264e7
TT
72382019-07-17 Tom Tromey <tom@tromey.com>
7239
7240 * tui/tui-wingeneral.c
7241 (tui_check_and_display_highlight_if_needed): Check can_highlight.
7242
06210ce4
TT
72432019-07-17 Tom Tromey <tom@tromey.com>
7244
7245 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
7246 (struct tui_cmd_window) <can_scroll>: New method.
7247 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
7248 method.
7249
381befee
TT
72502019-07-17 Tom Tromey <tromey@adacore.com>
7251
7252 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
7253 do_field_signed>: Rename. Change type of "value".
7254 * ui-out.c (ui_out::field_signed): Rename from field_int.
7255 Change type of "value".
7256 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
7257 type of "value".
7258 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
7259 do_field_int. Change type of "value".
7260 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
7261 do_field_int. Change type of "value".
7262 * tracepoint.c (trace_status_mi, tfind_1)
7263 (print_one_static_tracepoint_marker): Update.
7264 * thread.c (print_thread_info_1, print_selected_thread_frame):
7265 Update.
7266 * stack.c (print_frame, print_frame_info): Update.
7267 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
7268 Update.
7269 * source.c (print_source_lines_base): Update.
7270 * skip.c (info_skip_command): Update.
7271 * record-btrace.c (btrace_ui_out_decode_error)
7272 (btrace_call_history_src_line): Update.
7273 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
7274 Update.
7275 * progspace.c (print_program_space): Update.
7276 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
7277 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
7278 do_field_int. Change type of "value".
7279 * mi/mi-out.c (mi_ui_out::do_table_begin)
7280 (mi_ui_out::do_table_header): Update.
7281 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
7282 type of "value".
7283 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
7284 (mi_cmd_data_list_changed_registers, output_register)
7285 (mi_cmd_data_read_memory, mi_load_progress)
7286 (mi_cmd_trace_frame_collected): Update.
7287 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
7288 Update.
7289 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
7290 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
7291 (mi_cmd_var_list_children, varobj_update_one): Update.
7292 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
7293 (mi_cmd_stack_list_args, list_arg_or_local): Update.
7294 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
7295 * inferior.c (print_inferior): Update.
7296 * gdb_bfd.c (print_one_bfd): Update.
7297 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
7298 Update.
7299 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
7300 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
7301 do_field_int. Change type of "value".
7302 * cli-out.c (cli_ui_out::do_field_signed): Rename from
7303 do_field_int. Change type of "value".
7304 * breakpoint.c (watchpoint_check, print_breakpoint_location)
7305 (print_one_breakpoint_location, print_it_catch_fork)
7306 (print_one_catch_fork, print_it_catch_vfork)
7307 (print_one_catch_vfork, print_it_catch_solib)
7308 (print_it_catch_exec, print_it_ranged_breakpoint)
7309 (print_mention_watchpoint, print_mention_masked_watchpoint)
7310 (bkpt_print_it, update_static_tracepoint): Update.
7311 * break-catch-throw.c (print_it_exception_catchpoint): Update.
7312 * break-catch-syscall.c (print_it_catch_syscall): Update.
7313 * ada-tasks.c (print_ada_task_info): Update.
7314 * ada-lang.c (print_it_exception, print_mention_exception):
7315 Update.
7316
6b78c3f8
AB
73172019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
7318
7319 PR breakpoints/24541
7320 * gdbarch.c: Regenerate.
7321 * gdbarch.h: Regenerate.
7322 * gdbarch.sh: Adjust return type and parameter types for
7323 'stap_adjust_register'.
7324 (i386_stap_adjust_register): Adjust signature and return new
7325 register name.
7326 * stap-probe.c (stap_parse_register_operand): Adjust use of
7327 'gdbarch_stap_adjust_register'.
7328
d72a9b85
TT
73292019-07-17 Tom Tromey <tromey@adacore.com>
7330
7331 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
7332 declare VEC.
7333 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
7334 std::vector.
7335 (struct s390_process_info): Add initializers.
7336 (s390_add_process): Use new.
7337 (s390_linux_nat_target::low_forget_process): Use delete.
7338 (s390_linux_nat_target::low_new_fork)
7339 (s390_linux_nat_target::stopped_by_watchpoint)
7340 (s390_linux_nat_target::low_prepare_to_resume)
7341 (s390_linux_nat_target::insert_watchpoint)
7342 (s390_linux_nat_target::insert_hw_breakpoint)
7343 (s390_linux_nat_target::remove_watchpoint)
7344 (s390_linux_nat_target::remove_hw_breakpoint): Update.
7345
206e6c58
JB
73462019-07-16 John Baldwin <jhb@FreeBSD.org>
7347
7348 * aarch64-fbsd-nat.c: Include regcache.h.
7349 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
7350 argument.
7351 (aarch64_fbsd_nat_target::fetch_registers)
7352 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
7353 variable.
7354 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
7355
cbde90f2
JB
73562019-07-16 John Baldwin <jhb@FreeBSD.org>
7357
7358 * fbsd-nat.c: Include gdbarch.h.
7359
07128006
TT
73602019-07-15 Tom Tromey <tromey@adacore.com>
7361
7362 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
7363
1f77b012
TT
73642019-07-15 Tom Tromey <tromey@adacore.com>
7365
7366 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
7367 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
7368 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
7369 * cli-out.c (cli_ui_out::do_field_int): New method.
7370 * ui-out.c (ui_out::field_unsigned): New method.
7371 * symfile.c (generic_load): Use field_unsigned.
7372 (print_transfer_performance): Likewise.
7373 * record-btrace.c (ui_out_field_uint): Remove.
7374 (btrace_call_history_insn_range, btrace_call_history): Use
7375 field_unsigned.
7376 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
7377 field_unsigned.
7378 * ui-out.h (class ui_out) <field_unsigned>: New method.
7379 <do_field_unsigned>: Likewise.
7380
33eca680
TT
73812019-07-15 Tom Tromey <tromey@adacore.com>
7382
7383 * mi/mi-main.c (list_available_thread_groups): Use field_string.
7384 * mi/mi-interp.c (mi_memory_changed): Use field_string.
7385 * target.c (flash_erase_command): Use field_string.
7386 * infrun.c (print_signal_received_reason): Use field_string.
7387 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
7388 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
7389 field_string.
7390 * ada-tasks.c (print_ada_task_info): Use field_string.
7391
ca8d69be
TT
73922019-07-15 Tom Tromey <tromey@adacore.com>
7393
7394 * target.c (flash_erase_command): Use field_core_addr.
7395 * symfile.c (generic_load): Use field_core_addr.
7396 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
7397 Use field_core_addr.
7398 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
7399 field_core_addr.
7400
0d4e84ed
AB
74012019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
7402
7403 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
7404 value if its desired type is smaller than a CORE_ADDR and signed.
7405
9a49df9d
AB
74062019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
7407
7408 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
7409 of changes to field names, and use new is_reference field to
7410 decide if a property is a reference or not.
7411 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
7412 field.
7413 (struct dwarf2_property_baton): Update header comment, rename
7414 'referenced_type' to 'property_type' and update comments.
7415 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
7416 default property type, store in property baton, update to take
7417 accound of renamed field.
7418 (read_func_scope): Update call to attr_to_dynamic_prop.
7419 (read_array_type): Likewise.
7420 (dwarf2_per_cu_addr_sized_int_type): New function.
7421 (read_subrange_index_type): Move type finding code to
7422 dwarf2_per_cu_addr_sized_int_type.
7423 (read_subrange_type): Update calls to attr_to_dynamic_prop.
7424 (dwarf2_per_cu_addr_type): New function.
7425 (set_die_type): Update calls to attr_to_dynamic_prop.
7426
b86352cf
AB
74272019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
7428
7429 * dwarf2read.c (read_subrange_index_type): New function.
7430 (read_subrange_type): Move code into new function and call it.
7431 * gdbtypes.c (create_range_type): Add some asserts.
7432
603490bf
AB
74332019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
7434
7435 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
7436 update return statements.
7437 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
7438 declaration, and update comment to match.
7439 * gdbtypes.c (resolve_dynamic_array): Update call to
7440 dwarf2_evaluate_property to match new return type.
7441
592f9d27
AB
74422019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
7443
7444 * valarith.c (value_subscripted_rvalue): Change lowerbound
7445 parameter type from int to LONGEST.
7446 * value.h (value_subscripted_rvalue): Likewise in declaration.
7447
60cfcb20
AB
74482019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
7449
7450 * cli/cli-utils.c (info_print_command_completer): New function.
7451 * cli/cli-utils.h: Add 'completer.h' include, and forward
7452 declaration for 'struct cmd_list_element'.
7453 (info_print_command_completer): Declare.
7454 * stack.c (_initialize_stack): Add completer for 'info locals' and
7455 'info args'.
7456 * symtab.c (_initialize_symtab): Add completer for 'info
7457 variables' and 'info functions'.
7458 * NEWS: Mention completion for additional info commands.
7459
b16507e0
AB
74602019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
7461
7462 * cli/cli-utils.c (extract_info_print_args): Delete.
7463 (extract_arg_maybe_quoted): Delete.
7464 (info_print_options_defs): New variable.
7465 (make_info_print_options_def_group): New function.
7466 (extract_info_print_options): Define new function.
7467 * cli/cli-utils.h (extract_info_print_args): Delete.
7468 (struct info_print_options): New structure.
7469 (extract_info_print_options): Declare new function.
7470 * stack.c (info_locals_command): Update to use new
7471 extract_info_print_options, also add a header comment.
7472 (info_args_command): Likewise.
7473 * symtab.c (info_variables_command): Likewise.
7474 (info_functions_command): Likewise.
7475
021d8588
AB
74762019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
7477
7478 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
7479 to extract string arguments.
7480 * common/common-utils.c (extract_string_maybe_quoted): New function.
7481 * common/common-utils.h (extract_string_maybe_quoted): Declare.
7482
b777eb6d
TT
74832019-07-11 Tom Tromey <tromey@adacore.com>
7484
7485 * main.c (get_init_files): Use GDBINIT, not gdbinit.
7486 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
7487 * top.h (gdbinit): Don't declare.
7488 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
7489 into...
7490 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
7491 * top.c (gdb_init): Don't call init_cli_cmds.
7492 (gdbinit): Remove.
7493 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
7494
72ee03ff
TT
74952019-07-11 Tom Tromey <tromey@adacore.com>
7496
7497 * python/py-inferior.c (add_thread_object): Don't use thread_obj
7498 after it has been moved.
7499
00db9531
SM
75002019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
7501
7502 * valops.c (value_must_coerce_to_target): Change return type to
7503 bool.
7504 * value.h (value_must_coerce_to_target): Likewise.
7505
f2478a7e
SM
75062019-07-10 Simon Marchi <simon.marchi@efficios.com>
7507
7508 * breakpoint.c (is_hardware_watchpoint): Remove
7509 forward-declaration.
7510 (is_masked_watchpoint): Change return type to bool.
7511 (is_tracepoint): Likewise.
7512 (is_breakpoint): Likewise.
7513 (is_hardware_watchpoint): Likewise.
7514 (is_watchpoint): Likewise.
7515 (is_no_memory_software_watchpoint): Likewise.
7516 (is_catchpoint): Likewise.
7517 (breakpoint_1): Make FILTER parameter's return type bool.
7518 is_masked_watchpoint): Change return type to bool.
7519 (save_breakpoints): Make FILTER parameter's return type bool.
7520 * breakpoint.h (is_breakpoint): Change return type to bool.
7521 (is_watchpoint): Likewise.
7522 (is_catchpoint): Likewise.
7523 (is_tracepoint): Likewise.
7524
0d12e84c
TT
75252019-07-10 Tom Tromey <tom@tromey.com>
7526
7527 * defs.h: Don't include gdbarch.h.
7528 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
7529 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
7530 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
7531 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
7532 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
7533 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
7534 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
7535 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
7536 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
7537 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
7538 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
7539 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
7540 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
7541 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
7542 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
7543 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
7544 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
7545 record-btrace.c, record.h, regcache-dump.c, regcache.h,
7546 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
7547 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
7548 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
7549 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
7550 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
7551 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
7552 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
7553 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
7554 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
7555
f06f1252
TT
75562019-07-10 Tom Tromey <tromey@adacore.com>
7557
7558 * ada-lang.h (is_ada_exception_catchpoint): Declare.
7559 * breakpoint.c (init_ada_exception_breakpoint): Register as
7560 bp_catchpoint.
7561 (print_one_breakpoint_location, print_one_breakpoint): Use
7562 is_ada_exception_catchpoint.
7563 * ada-lang.c (class ada_catchpoint_location): Pass
7564 bp_loc_software_breakpoint to bp_location constructor.
7565 (is_ada_exception_catchpoint): New function.
7566
7a5d944b
TT
75672019-07-10 Tom Tromey <tromey@adacore.com>
7568
7569 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
7570 VEC.
7571 (struct arm_exidx_entry): New method operator<.
7572 (struct arm_exidx_data) <section_maps>: Change type.
7573 (arm_exidx_data_free): Remove.
7574 (arm_exidx_data_key): Change type. Move lower.
7575 (arm_exidx_new_objfile): Update.
7576 (arm_compare_exidx_entries): Remove.
7577 (arm_find_exidx_entry, _initialize_arm_tdep)
7578
48c66e1d
TT
75792019-07-10 Tom Tromey <tromey@adacore.com>
7580
7581 * solib-spu.c (ocl_program_data_key): Change type.
7582 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
7583 Update.
7584
a269fbf1
TT
75852019-07-10 Tom Tromey <tromey@adacore.com>
7586
7587 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
7588 (struct solib_aix_inferior_data) <library_list>: Change type.
7589 (solib_aix_inferior_data_handle): Change type.
7590 (get_solib_aix_inferior_data): Update.
7591 (solib_aix_free_library_list): Remove.
7592 (library_list_start_library): Update.
7593 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
7594 return type.
7595 (solib_aix_get_library_list)
7596 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
7597 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
7598
c294730c
TT
75992019-07-10 Tom Tromey <tromey@adacore.com>
7600
7601 * solib-dsbt.c (struct dsbt_info): Add initializers.
7602 (solib_dsbt_pspace_data): Change type.
7603 (dsbt_pspace_data_cleanup): Remove.
7604 (get_dsbt_info, _initialize_dsbt_solib): Update.
7605
9d52077d
TT
76062019-07-10 Tom Tromey <tromey@adacore.com>
7607
7608 * spu-tdep.c (spu_overlay_data): Change type.
7609 (spu_get_overlay_table, spu_overlay_new_objfile)
7610 (_initialize_spu_tdep): Update.
7611
22a20dca
TT
76122019-07-10 Tom Tromey <tromey@adacore.com>
7613
7614 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
7615 destructor.
7616 (dbx_objfile_data_key): Change type and declare later.
7617 (DBX_SYMFILE_INFO): Rewrite.
7618 * dbxread.c (dbx_objfile_data_key): Change type.
7619 (dbx_symfile_init): Update.
7620 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
7621 (coffstab_build_psymtabs, elfstab_build_psymtabs)
7622 (stabsect_build_psymtabs, _initialize_dbxread): Update.
7623
cb60f420
TT
76242019-07-10 Tom Tromey <tromey@adacore.com>
7625
7626 * jit.c (jit_program_space_key): Change type. Move lower.
7627 (get_jit_program_space_data): Update.
7628 (jit_program_space_data_cleanup): Remove.
7629 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
7630 Update.
7631 (struct jit_program_space_data): Add initializers.
7632
51df2ae3
TT
76332019-07-10 Tom Tromey <tromey@adacore.com>
7634
7635 * solib-darwin.c (struct darwin_info): Add initializers.
7636 (solib_darwin_pspace_data): Change type.
7637 (darwin_pspace_data_cleanup): Remove.
7638 (get_darwin_info, _initialize_darwin_solib): Update.
7639
18101a35
TT
76402019-07-10 Tom Tromey <tromey@adacore.com>
7641
7642 * remote-sim.c (struct sim_inferior_data): Add initializers,
7643 constructor, and destructor.
7644 (sim_inferior_data_key): Change type. Move lower.
7645 (check_for_duplicate_sim_descriptor): Update.
7646 (get_sim_inferior_data): Use new. Update.
7647 (~sim_inferior_data_cleanup): Rename from
7648 sim_inferior_data_cleanup. Simplify.
7649 (gdbsim_close_inferior, simulator_command)
7650 (sim_command_completer, _initialize_remote_sim): Update.
7651 (next_pid, INITIAL_PID): Move earlier.
7652
05b08ac1
TT
76532019-07-10 Tom Tromey <tromey@adacore.com>
7654
7655 * python/python-internal.h (create_thread_object): Return
7656 gdbpy_ref.
7657 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
7658 * python/py-inferior.c (struct threadlist_entry): Add
7659 constructor.
7660 <thread_obj>: Now a gdbpy_ref.
7661 (thread_to_thread_object): Update.
7662 (add_thread_object): Use new.
7663 (delete_thread_object): Use delete.
7664 (infpy_threads): Update.
7665 (py_free_inferior): Update. Construct "inf_obj" after acquiring
7666 GIL.
7667
32372d80
TT
76682019-07-10 Tom Tromey <tromey@adacore.com>
7669
7670 * valops.c (value_cast): Specialize error message for Ada.
7671
5c458ae8
SM
76722019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
7673
7674 * breakpoint.c (breakpoint_1): Update doc and parameter names.
7675
4c462cb0
SM
76762019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
7677
7678 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
7679 bpstat_should_step): Return bool, adjust comments.
7680 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
7681 bpstat_should_step): Likewise.
7682
89abbcc2
AH
76832019-07-10 Alan Hayward <alan.hayward@arm.com>
7684
7685 * features/Makefile: Use feature target descriptions for Arm.
7686 * features/arm/arm-core.c: Generate new file.
7687 * features/arm/arm-fpa.c: Likewise.
7688 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
7689 * features/arm/arm-m-profile.c: Likewise.
7690 * features/arm/arm-vfpv2.c: Likewise.
7691 * features/arm/arm-vfpv3.c: Likewise.
7692 * features/arm/xscale-iwmmxt.c: Likewise.
7693 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
7694
166a82be
AH
76952019-07-10 Alan Hayward <alan.hayward@arm.com>
7696
7697 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
7698 ptrace earlier.
7699
9fb4c7e9
AH
77002019-07-10 Alan Hayward <alan.hayward@arm.com>
7701
7702 * features/aarch64-pauth.c: Regenerate.
7703
e2d0f980
SM
77042019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
7705
7706 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
7707 bool.
7708 (bpstat_what): Use false instead of 0.
7709
a38118e5
PA
77102019-07-09 Pedro Alves <palves@redhat.com>
7711
7712 * break-catch-throw.c (is_exception_catchpoint): New.
7713 * breakpoint.c (print_one_breakpoint_location): New parameter
7714 'raw_loc'. Handle it. Use
7715 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
7716 looking at the breakpoint's type.
7717 (print_one_breakpoint): If handling "maint info breakpoints", also
7718 print locations of exception catchpoints.
7719 * breakpoint.h (is_exception_catchpoint): Declare.
7720
cb1e4e32
PA
77212019-07-09 Pedro Alves <palves@redhat.com>
7722
7723 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
7724 "addr" field.
7725 (allocate_location_exception_catchpoint): New.
7726 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
7727 (initialize_throw_catchpoint_ops): Install
7728 allocate_location_exception_catchpoint as allocate_location
7729 method.
7730 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
7731 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
7732 bp_loc_other.
7733 (breakpoint_address_is_meaningful): Delete.
7734 (bl_address_is_meaningful): New.
7735 (breakpoint_locations_match): Adjust comment.
7736 (bp_location_from_bp_type): New, factored out of...
7737 (bp_location::bp_location(breakpoint *)): ... this.
7738 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
7739 factored out of...
7740 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
7741 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
7742 breakpoint_address_is_meaningful.
7743 (bp_locations_compare): Adjust comment.
7744 (update_global_location_list): Use bl_address_is_meaningful
7745 instead of breakpoint_address_is_meaningful.
7746 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
7747 explicit.
7748 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
7749 * python/py-breakpoint.c (bppy_get_location): No longer check
7750 whether location is null.
7751
b58a68fe
PA
77522019-07-09 Pedro Alves <palves@redhat.com>
7753
7754 PR c++/15468
7755 * breakpoint.c (print_one_breakpoint_location): Remove
7756 single-location assert.
7757
268a13a5
TT
77582019-07-09 Tom Tromey <tom@tromey.com>
7759
7760 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
7761 * configure: Rebuild.
7762 * configure.ac: Change common to gdbsupport.
7763 * gdbsupport: Rename from common.
7764 * acinclude.m4: Change common to gdbsupport.
7765 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
7766 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
7767 gdbsupport.
7768 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
7769 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
7770 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
7771 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
7772 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
7773 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
7774 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
7775 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
7776 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
7777 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
7778 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
7779 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
7780 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
7781 coff-pe-read.c, command.h, compile/compile-c-support.c,
7782 compile/compile-c.h, compile/compile-cplus-symbols.c,
7783 compile/compile-cplus-types.c, compile/compile-cplus.h,
7784 compile/compile-loc2c.c, compile/compile.c, completer.c,
7785 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
7786 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
7787 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
7788 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
7789 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
7790 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
7791 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
7792 features/aarch64-core.c, features/aarch64-fpu.c,
7793 features/aarch64-pauth.c, features/aarch64-sve.c,
7794 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
7795 features/i386/32bit-core.c, features/i386/32bit-linux.c,
7796 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
7797 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
7798 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
7799 features/i386/64bit-core.c, features/i386/64bit-linux.c,
7800 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
7801 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
7802 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
7803 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
7804 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
7805 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
7806 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
7807 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
7808 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
7809 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
7810 go32-nat.c, guile/guile.c, guile/scm-ports.c,
7811 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
7812 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
7813 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
7814 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
7815 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
7816 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
7817 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
7818 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
7819 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
7820 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
7821 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
7822 minsyms.c, mips-linux-tdep.c, namespace.h,
7823 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
7824 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
7825 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
7826 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
7827 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
7828 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
7829 nat/linux-waitpid.c, nat/mips-linux-watch.c,
7830 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
7831 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
7832 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
7833 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
7834 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
7835 procfs.c, producer.c, progspace.h, psymtab.h,
7836 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
7837 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
7838 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
7839 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
7840 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
7841 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
7842 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
7843 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
7844 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
7845 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
7846 target-memory.c, target.c, target.h, target/waitstatus.c,
7847 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
7848 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
7849 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
7850 unittests/array-view-selftests.c,
7851 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
7852 unittests/common-utils-selftests.c,
7853 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
7854 unittests/format_pieces-selftests.c,
7855 unittests/function-view-selftests.c,
7856 unittests/lookup_name_info-selftests.c,
7857 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
7858 unittests/mkdir-recursive-selftests.c,
7859 unittests/observable-selftests.c,
7860 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
7861 unittests/parse-connection-spec-selftests.c,
7862 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
7863 unittests/scoped_fd-selftests.c,
7864 unittests/scoped_mmap-selftests.c,
7865 unittests/scoped_restore-selftests.c,
7866 unittests/string_view-selftests.c, unittests/style-selftests.c,
7867 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
7868 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
7869 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
7870 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
7871 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
7872 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
7873
5b0e2db4
AB
78742019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
7875
7876 * linespec.c (decode_digits_list_mode): Set explicit_line to a
7877 bool value.
7878 (decode_digits_ordinary): Set explicit_line field in sal.
7879 * symtab.c (skip_prologue_sal): Don't skip prologue for a
7880 symtab_and_line that was set on an explicit line number in
7881 assembler code. Do always update the recorded symtab and line if
7882 we do skip the prologue.
7883
0ba852ab
AB
78842019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
7885
7886 * breakpoint.c (set_breakpoint_location_function): Remove
7887 explicit_loc parameter.
7888 (momentary_breakpoint_from_master): Update call to
7889 set_breakpoint_location_function.
7890 (add_location_to_breakpoint): Likewise.
7891
b3a7d171
AB
78922019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
7893
7894 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
7895 required features based on default bfd type when no specific bfd
7896 is present.
7897
1f6f6e21
PW
78982019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7899
7900 * NEWS: Mention that GDB printf and eval commands can now print
7901 C-style and Ada-style convenience var strings without
7902 calling the inferior.
7903 * printcmd.c (printf_c_string): Locally print GDB internal var
7904 instead of transiting via the inferior.
7905 (printf_wide_c_string): Likewise.
7906
79072019-07-04 Alan Hayward <alan.hayward@arm.com>
ea142fbf 7908
5862c886 7909 PR breakpoints/25011
ea142fbf
AH
7910 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
7911
0598af48
TT
79122019-07-04 Tom Tromey <tom@tromey.com>
7913
7914 PR tui/24724:
7915 * tui/tui-winsource.c (tui_clear_source_content): Update.
7916 (tui_source_window_base::set_is_exec_point_at): Fix comment.
7917 (tui_update_breakpoint_info): Update.
7918 (tui_set_exec_info_content): Update.
7919 * tui/tui-source.c (tui_set_source_content_nil): Update.
7920 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
7921 has_break.
7922 * tui/tui-data.h (enum tui_bp_flag): New.
7923 (tui_bp_flags): New enum flags type.
7924 (struct tui_source_element) <break_mode>: Change type. Rename
7925 from has_break.
7926 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
7927 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
7928 constants.
7929 * tui/tui-winsource.h: Fix comment.
7930
350fab54
AH
79312019-07-04 Alan Hayward <alan.hayward@arm.com>
7932
7933 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
7934 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
7935 (store_fpregs_to_thread)
7936 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
7937 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
7938 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
7939 (IWMMXT_REGS_SIZE): Add define.
7940 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
7941 (fetch_vfp_regs, store_vfp_regs)
7942 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
7943 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
7944
f0452268
AH
79452019-07-04 Alan Hayward <alan.hayward@arm.com>
7946
7947 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
7948 defines.
7949 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
7950 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
7951 (ARM_INT_REGISTER_SIZE): ...to this.
7952 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
7953 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
7954 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
7955 (arm_linux_collect_gregset, supply_nwfpe_register)
7956 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
7957 defines.
7958 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
7959 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
7960 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
7961 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
7962 (arm_return_in_memory, arm_store_return_value)
7963 (arm_get_longjmp_target, arm_register_g_packet_guesses)
7964 (arm_record_ld_st_multiple): Likewise.
7965 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
7966 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
7967
e935475c
AH
79682019-07-04 Alan Hayward <alan.hayward@arm.com>
7969
7970 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
7971 AARCH64_DISPLACED_MODIFIED_INSNS.
7972 * aarch64-tdep.c (struct aarch64_displaced_step_data)
7973 (aarch64_displaced_step_copy_insn): Likewise.
7974 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
7975 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
7976 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
7977 ARM_DISPLACED_MODIFIED_INSNS.
7978 * arm-tdep.c (arm_gdbarch_init): Likewise.
7979 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
7980 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
7981 (struct arm_displaced_step_closure): Use
7982 ARM_DISPLACED_MODIFIED_INSNS.
7983
df0bb381
AH
79842019-07-04 Alan Hayward <alan.hayward@arm.com>
7985
7986 * features/Makefile: Remove unused xml files.
7987 * features/aarch64.xml: Remove.
7988 * features/i386/amd64-avx-avx512-linux.xml: Remove.
7989 * features/i386/amd64-avx-avx512.xml: Remove.
7990 * features/i386/amd64-avx-linux.xml: Remove.
7991 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
7992 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
7993 * features/i386/amd64-avx-mpx-linux.xml: Remove.
7994 * features/i386/amd64-avx-mpx.xml: Remove.
7995 * features/i386/amd64-avx.xml: Remove.
7996 * features/i386/amd64-linux.xml: Remove.
7997 * features/i386/amd64-mpx-linux.xml: Remove.
7998 * features/i386/amd64-mpx.xml: Remove.
7999 * features/i386/amd64.xml: Remove.
8000 * features/i386/i386-avx-avx512-linux.xml: Remove.
8001 * features/i386/i386-avx-avx512.xml: Remove.
8002 * features/i386/i386-avx-linux.xml: Remove.
8003 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
8004 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
8005 * features/i386/i386-avx-mpx-linux.xml: Remove.
8006 * features/i386/i386-avx-mpx.xml: Remove.
8007 * features/i386/i386-avx.xml: Remove.
8008 * features/i386/i386-linux.xml: Remove.
8009 * features/i386/i386-mmx-linux.xml: Remove.
8010 * features/i386/i386-mmx.xml: Remove.
8011 * features/i386/i386-mpx-linux.xml: Remove.
8012 * features/i386/i386-mpx.xml: Remove.
8013 * features/i386/i386.xml: Remove.
8014 * features/i386/x32-avx-avx512-linux.xml: Remove.
8015 * features/i386/x32-avx-linux.xml: Remove.
8016 * features/i386/x32-linux.xml: Remove.
8017
edd6266a
AH
80182019-07-04 Alan Hayward <alan.hayward@arm.com>
8019
8020 * regformats/aarch64.dat: Remove.
8021 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
8022 * regformats/i386/amd64-avx-linux.dat: Remove.
8023 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
8024 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
8025 * regformats/i386/amd64-linux.dat: Remove.
8026 * regformats/i386/amd64-mpx-linux.dat: Remove.
8027 * regformats/i386/amd64.dat: Remove.
8028 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
8029 * regformats/i386/i386-avx-linux.dat: Remove.
8030 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
8031 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
8032 * regformats/i386/i386-linux.dat: Remove.
8033 * regformats/i386/i386-mmx-linux.dat: Remove.
8034 * regformats/i386/i386-mpx-linux.dat: Remove.
8035 * regformats/i386/i386.dat: Remove.
8036 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
8037 * regformats/i386/x32-avx-linux.dat: Remove.
8038 * regformats/i386/x32-linux.dat: Remove.
8039
2b40fda7
AH
80402019-07-04 Alan Hayward <alan.hayward@arm.com>
8041
8042 * aarch64-tdep.c: Remove xml self tests.
8043 * amd64-linux-tdep.c: Likewise.
8044 * amd64-tdep.c: Likewise.
8045 * i386-linux-tdep.c: Likewise.
8046 * i386-tdep.c: Likewise.
8047
5f4ba3e7
PA
80482019-07-03 Pedro Alves <palves@redhat.com>
8049
8050 PR cli/24732
8051 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
8052 (pipe_cmd_option_defs): New.
8053 (make_pipe_cmd_options_def_group): New.
8054 (pipe_command): Use gdb::option::process_options.
8055 (pipe_command_completer): New function.
8056 (_initialize_cli_cmds): Install completer for "pipe" command.
8057
3d9be6f5
PA
80582019-07-03 Pedro Alves <palves@redhat.com>
8059
8060 * cli/cli-option.c (union option_value) <string>: New field.
8061 (struct option_def_and_value): Add ctor, move ctor, dtor and
8062 use DISABLE_COPY_AND_ASSIGN.
8063 (option_def_and_value::clear_value): New.
8064 (parse_option, save_option_value_in_ctx, get_val_type_str)
8065 (add_setshow_cmds_for_options): Handle var_string.
8066 * cli-option.h (union option_def::var_address) <string>: New
8067 field.
8068 (struct string_option_def): New.
8069 * maint-test-options.c (struct test_options_opts): Add default
8070 ctor and use DISABLE_COPY_AND_ASSIGN.
8071 <string_opt>: New field.
8072 (test_options_opts::~test_options_opts): New.
8073 (test_options_opts::dump): Also dump "-string".
8074 (test_options_option_defs): Install "string.
8075
41fc454c
PA
80762019-07-03 Pedro Alves <palves@redhat.com>
8077
8078 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
8079 option_value with a null enumeration.
8080 (complete_options): Save the option values in the context.
8081 (save_option_value_in_ctx): New, factored out from ...
8082 (process_options): ... here.
8083 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
8084 of the function.
8085 * maint-test-options.c (test_options_opts::dump): New, factored
8086 out from ...
8087 (maintenance_test_options_command_mode): ... here.
8088 (maintenance_test_options_command_completion_result): Delete.
8089 (maintenance_test_options_command_completion_text): Update
8090 comment.
8091 (maintenance_show_test_options_completion_result): Change
8092 prototype. Just print
8093 maintenance_test_options_command_completion_text.
8094 (save_completion_result): New.
8095 (maintenance_test_options_completer_mode): Pass options context to
8096 complete_options, and then save a dump.
8097 (_initialize_maint_test_options): Use add_cmd to install "maint
8098 show test-options-completion-result".
8099
fdbc9870
PA
81002019-07-03 Pedro Alves <palves@redhat.com>
8101
8102 * NEWS (New commands): Mention "with" and "maint with".
8103 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
8104 (with_command, with_command_completer): New.
8105 (pipe_command): Adjust to new repeat_previous
8106 interface.
8107 (_initialize_cli_cmds): Install the "with" command and its "w"
8108 alias.
8109 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
8110 declarations.
8111 * cli/cli-setshow.c (parse_cli_var_uinteger)
8112 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
8113 argument strings for all var_types.
8114 (get_setshow_command_value_string): New, factored out from ...
8115 (do_show_command): ... this.
8116 * cli/cli-setshow.h: Include <string>.
8117 (get_setshow_command_value_string): Declare.
8118 * command.h (repeat_previous): Now returns const char *. Adjust
8119 comment.
8120 * maint.c: Include "cli/cli-cmds.h".
8121 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
8122 (_initialize_maint_cmds): Register the "maintenance with" command.
8123 * top.c (repeat_previous): Move bits from pipe_command here:
8124 Return the saved command line, if any; error out if there's no
8125 command to relaunch.
8126
c6ac8931
PA
81272019-07-03 Pedro Alves <palves@redhat.com>
8128
8129 * NEWS (New commands): Mention "maint set/show test-settings"
8130 instead of "maint test-settings".
8131 * maint-test-settings.c (maintenance_test_settings_list): Delete.
8132 (maintenance_test_settings_set_list): Rename to ...
8133 (maintenance_set_test_settings_list): ... this.
8134 (maintenance_test_settings_show_list): Rename to ...
8135 (maintenance_show_test_settings_list): ... this.
8136 (maintenance_test_settings_cmd): Delete.
8137 (maintenance_test_settings_set_cmd): ...
8138 (maintenance_set_test_settings_cmd): ... this.
8139 (maintenance_test_settings_show_cmd): ...
8140 (maintenance_show_test_settings_cmd): ... this.
8141 (maintenance_test_settings_show_value_cmd):
8142 (maintenance_show_test_settings_value_cmd): ... this.
8143 (_initialize_maint_test_settings): No longer install the "maint
8144 test-settings" prefix command. Rename "maint test-settings set"
8145 to "maint set test-settings", and "maint test-settings show" to
8146 "maint show test-settings". Adjust all subcommands.
8147
d1fcf2fd
PA
81482019-07-03 Pedro Alves <palves@redhat.com>
8149
8150 * maint-test-settings.c: Fix file's intro comment. Replace all
8151 references to "test-options" with references to "test-settings",
8152 in comments.
8153
970f9d09
PA
81542019-07-03 Pedro Alves <palves@redhat.com>
8155
8156 * maint-test-settings.c (maintenance_test_settings_xxx)
8157 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
8158 New.
8159 (maintenance_test_settings_enums): Use them.
8160 (maintenance_test_settings_enum): Default to
8161 maintenance_test_settings_xxx.
8162 (_initialize_maint_test_settings): Initialize
8163 MAINTENANCE_TEST_SETTINGS_FILENAME.
8164
f3869b1a
SM
81652019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
8166
8167 * breakpoint.h (remove_breakpoints_inf): Change return type to
8168 void, move function documentation here.
8169 * breakpoint.c (remove_breakpoints_inf): Change return type to
8170 void, move function documentation to header.
8171
54d66006
PA
81722019-07-02 Pedro Alves <palves@redhat.com>
8173
8174 * NEWS (Completion improvements): Mention "info threads".
8175 * thread.c (struct info_threads_opts, info_threads_option_defs)
8176 (make_info_threads_options_def_group): New.
8177 (info_threads_command): Use gdb::option::process_options.
8178 (info_threads_command_completer): New.
8179 (_initialize_thread): Use gdb::option::build_help to build the
8180 help text for "info threads".
8181
854f6088
SM
81822019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
8183
8184 * defs.h (generic_load): Move from here...
8185 * symfile.h (generic_load): ... to here. Rename name parameter
8186 to args.
8187 * symfile.c (generic_load): Add comment.
8188
54ee4252
TT
81892019-07-01 Tom Tromey <tromey@adacore.com>
8190
8191 * dwarf2read.c
8192 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
8193 declaration of without_params. Fix formatting.
8194
65392b3e
TT
81952019-07-01 Tom Tromey <tromey@adacore.com>
8196
8197 * ada-exp.y (find_primitive_type): Update.
8198 * ada-lang.h (ada_lookup_symbol): Update.
8199 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
8200 parameter.
8201 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
8202
7d7571f0
SDJ
82032019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
8204
8205 PR breakpoints/24541
8206 * gdbarch.c: Regenerate.
8207 * gdbarch.h: Regenerate.
8208 * gdbarch.sh: Add 'stap_adjust_register'.
8209 * i386-tdep.c: Include '<unordered_set>'.
8210 (i386_stap_adjust_register): New function.
8211 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
8212 * stap-probe.c (stap_parse_register_operand): Call
8213 'gdbarch_stap_adjust_register'.
8214
5af5392a
SDJ
82152019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
8216
8217 PR python/24742
8218 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
8219 * python/python.c (do_start_initialization): Use 'xmalloc'
8220 instead of 'PyMem_Malloc'.
8221
10d06d82
TT
82222019-06-28 Tom Tromey <tromey@adacore.com>
8223
8224 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
8225 for Ada.
8226
1b7f24cd
TT
82272019-06-27 Tom Tromey <tromey@adacore.com>
8228
8229 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
8230 objfile_key.
8231 (arm_find_mapping_symbol, arm_record_special_symbol)
8232 (_initialize_arm_tdep): Update.
8233 (arm_objfile_data_free): Remove.
8234
3d507ff2
TT
82352019-06-27 Tom Tromey <tromey@adacore.com>
8236
8237 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
8238 to cp_print_static_field.
8239
762c164d
TT
82402019-06-26 Tom Tromey <tromey@adacore.com>
8241
8242 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
8243 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
8244 declare.
8245
aa2f9bcf
AH
82462019-06-26 Alan Hayward <alan.hayward@arm.com>
8247
8248 * features/aarch64-core.c (create_feature_aarch64_core):
8249 Regenerate.
8250 * features/aarch64-core.xml: Add cpsr flags.
8251
3426ae57
AH
82522019-06-26 Alan Hayward <alan.hayward@arm.com>
8253
8254 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
8255 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
8256
4838e44c
SM
82572019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
8258
8259 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
8260 field.
8261 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
8262 use.
8263 (arm_record_special_symbol): Don't insert new symbol in sorted
8264 position, push it at the end.
8265
54cc7474
SM
82662019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
8267
8268 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
8269 (arm_mapping_symbol_s): Remove.
8270 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
8271 (arm_mapping_symbol_vec): New typedef.
8272 (struct arm_per_objfile): Add constructor.
8273 <section_maps>: Change type to
8274 std::unique_ptr<arm_mapping_symbol_vec[]>.
8275 (arm_compare_mapping_symbols): Remove.
8276 (arm_find_mapping_symbol): Adjust to section_maps type change.
8277 (arm_objfile_data_free): Call delete on arm_per_objfile.
8278 (arm_record_special_symbol): Adjust to section_maps type change.
8279 Allocate arm_per_objfile with new.
8280
b65b566c
PW
82812019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8282
8283 * cli/cli-cmds.c (alias_command): Compare the alias prefix
8284 with the command prefix.
8285
c2fc64f5
TT
82862019-06-25 Tom Tromey <tom@tromey.com>
8287
8288 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
8289 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
8290
fb54fa76
TT
82912019-06-25 Tom Tromey <tom@tromey.com>
8292
8293 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
8294 type.
8295 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
8296 protected.
8297
f7952c57
TT
82982019-06-25 Tom Tromey <tom@tromey.com>
8299
8300 * tui/tui-winsource.c
8301 (tui_source_window_base::set_is_exec_point_at): Add check against
8302 LOA_ADDRESS.
8303
17568d78
TT
83042019-06-25 Tom Tromey <tom@tromey.com>
8305
8306 * tui/tui-source.c (tui_set_source_content): Don't check before
8307 xfree.
8308 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
8309
53e7cdba
TT
83102019-06-25 Tom Tromey <tom@tromey.com>
8311
8312 * tui/tui-winsource.h (tui_update_source_window_as_is)
8313 (tui_alloc_source_buffer, tui_line_is_displayed)
8314 (tui_addr_is_displayed): Change type of win_info.
8315 * tui/tui-winsource.c (tui_update_source_window_as_is)
8316 (tui_clear_source_content, tui_show_source_line)
8317 (tui_show_source_content, tui_source_window_base::refill)
8318 (tui_source_window_base::set_is_exec_point_at)
8319 (tui_source_window_base::set_is_exec_point_at)
8320 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
8321 (tui_alloc_source_buffer, tui_line_is_displayed)
8322 (tui_addr_is_displayed): Change type of win_info. Update.
8323 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
8324 (tui_source_window_base::do_make_visible_with_new_height):
8325 Update.
8326 * tui/tui-source.c (tui_set_source_content)
8327 (tui_set_source_content_nil)
8328 (tui_source_window::do_scroll_vertical): Update.
8329 * tui/tui-layout.c (show_layout): Update.
8330 * tui/tui-disasm.c (tui_set_disassem_content)
8331 (tui_disasm_window::do_scroll_vertical): Update.
8332 * tui/tui-data.h (tui_win_content): Remove.
8333 (struct tui_gen_win_info) <content, content_size>: Remove.
8334 (struct tui_source_element): Add initializers and destructor.
8335 (union tui_which_element, struct tui_win_element): Remove.
8336 (struct tui_source_window_base) <content>: New field.
8337 (struct tui_data_window): Remove destructor.
8338 (tui_alloc_content, tui_free_win_content)
8339 (tui_free_all_source_wins_content): Don't declare.
8340 * tui/tui-data.c (tui_initialize_static_data): Update.
8341 (init_content_element, tui_alloc_content): Remove.
8342 (~tui_gen_win_info): Update.
8343 (~tui_data_window, tui_free_all_source_wins_content)
8344 (tui_free_win_content, free_content, free_content_elements):
8345 Remove.
8346
7908abbf
TT
83472019-06-25 Tom Tromey <tom@tromey.com>
8348
8349 * tui/tui-winsource.h (tui_clear_source_content)
8350 (tui_erase_source_content, tui_show_source_content): Change type
8351 of win_info.
8352 * tui/tui-winsource.c (tui_clear_source_content)
8353 (tui_erase_source_content, tui_show_source_content): Change type
8354 of win_info.
8355 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
8356 * tui/tui-source.h (tui_set_source_content_nil): Change type of
8357 win_info.
8358 * tui/tui-source.c (tui_set_source_content_nil): Change type of
8359 win_info.
8360 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
8361
02c28df0
TT
83622019-06-25 Tom Tromey <tom@tromey.com>
8363
8364 * tui/tui-winsource.c (tui_clear_source_content)
8365 (tui_source_window_base::set_is_exec_point_at): Update.
8366 * tui/tui-source.c (tui_set_source_content_nil): Update.
8367 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
8368 a bool.
8369 * tui/tui-data.c (init_content_element): Update.
8370
6658b1bf
TT
83712019-06-25 Tom Tromey <tom@tromey.com>
8372
8373 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
8374 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
8375 * tui/tui-layout.c (init_and_make_win): Update.
8376 * tui/tui.h (enum tui_win_type): Update.
8377 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
8378 tui_win_is_auxillary.
8379 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
8380 tui_win_is_auxillary.
8381
21e1c91e
TT
83822019-06-25 Tom Tromey <tom@tromey.com>
8383
8384 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
8385 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
8386 (tui_delete_data_content_windows, tui_display_all_data)
8387 (tui_data_window::do_scroll_vertical, tui_display_data_from):
8388 Update.
8389 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
8390 * tui/tui-regs.c (tui_last_regs_line_no)
8391 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
8392 (tui_show_registers): Update.
8393 (tui_show_register_group): Return void. Update.
8394 (tui_display_registers_from, tui_display_reg_element_at_line)
8395 (tui_display_registers_from_line, tui_check_register_values):
8396 Update.
8397 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
8398 member.
8399 (struct tui_data_window) <regs_content>: Now a std::vector.
8400 <regs_content_count>: Remove.
8401 (tui_add_content_elements, tui_free_data_content): Don't declare.
8402 * tui/tui-data.c (tui_data_window::clear_detail): Update.
8403 (init_content_element): Remove DATA_WIN case. Add assert.
8404 (tui_add_content_elements): Remove.
8405 (tui_data_window): Update.
8406 (tui_free_data_content): Remove.
8407 (free_content_elements): Remove DATA_WIN case.
8408
115ac53b
TT
84092019-06-25 Tom Tromey <tom@tromey.com>
8410
8411 * tui/tui-data.c (tui_data_item_window): Update.
8412 * tui/tui-windata.h (tui_check_data_values): Don't declare.
8413 * tui/tui-windata.c (tui_display_all_data)
8414 (tui_display_data_from_line): Update.
8415 (tui_check_data_values): Remove.
8416 * tui/tui-regs.c (tui_show_register_group)
8417 (tui_display_reg_element_at_line): Update.
8418 * tui/tui-hooks.c (tui_register_changed)
8419 (tui_refresh_frame_and_register_information): Call
8420 tui_check_register_values.
8421 * tui/tui-data.h (struct tui_data_window) <data_content,
8422 data_content_count, data_type>: Remove.
8423 (enum tui_data_type): Remove.
8424
8425 * tui/tui-data.c (tui_data_window::clear_detail)
8426 (~tui_data_window): Update.
8427
eaf9738b
TT
84282019-06-25 Tom Tromey <tom@tromey.com>
8429
8430 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
8431 declare.
8432 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
8433 Rename from tui_first_data_item_displayed. Update.
8434 (tui_data_window::refresh_all)
8435 (tui_data_window::do_scroll_vertical): Update.
8436 * tui/tui-data.h (struct tui_data_window)
8437 <first_data_item_displayed>: Declare new method.
8438
31ca4723
TT
84392019-06-25 Tom Tromey <tom@tromey.com>
8440
8441 * tui/tui-data.h (tui_init_generic_part): Don't declare.
8442 * tui/tui-data.c (tui_init_generic_part): Remove, moving
8443 contents...
8444 (tui_initialize_static_data): ...here.
8445
41bcff7f
TT
84462019-06-25 Tom Tromey <tom@tromey.com>
8447
8448 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
8449 (tui_display_registers_from, tui_check_register_values): Update.
8450 (tui_display_register): Remove win_info parameter; update.
8451 (tui_get_register): Change type of parameters.
8452 * tui/tui-data.h (struct tui_data_element): Remove.
8453 (union tui_which_element) <data>: Remove.
8454 <data_window>: Change type.
8455 (struct tui_data_item_window): New.
8456 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
8457 case. Add assert.
8458 (~tui_data_item_window): New destructor.
8459 (free_content_elements): Remove DATA_ITEM_WIN case.
8460
d2802c33
TT
84612019-06-25 Tom Tromey <tom@tromey.com>
8462
8463 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
8464 Remove.
8465
dd835f8b
TT
84662019-06-25 Tom Tromey <tom@tromey.com>
8467
8468 * tui/tui-data.h (struct tui_command_element): Remove.
8469 (union tui_which_element) <command>: Remove.
8470 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
8471 assert.
8472 (free_content_elements): Remove CMD_WIN case.
8473
bd7db367
TT
84742019-06-25 Tom Tromey <tom@tromey.com>
8475
8476 * tui/tui-layout.c (tui_set_layout): Update.
8477 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
8478 * tui/tui-data.c (layout_def): Update.
8479
3add462f
TT
84802019-06-25 Tom Tromey <tom@tromey.com>
8481
8482 * tui/tui-wingeneral.c (tui_refresh_all): Update.
8483 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
8484 (tui_source_window_base::set_new_height): Update.
8485 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
8486 Update.
8487 (tui_set_locator_fullname, tui_set_locator_info)
8488 (tui_show_frame_info): Update.
8489 * tui/tui-source.c (tui_set_source_content)
8490 (tui_source_is_displayed): Update.
8491 * tui/tui-layout.c (show_source_disasm_command, show_data)
8492 (show_source_or_disasm_and_command): Update.
8493 * tui/tui-disasm.c (tui_set_disassem_content)
8494 (tui_get_begin_asm_address): Update.
8495 * tui/tui-data.h (struct tui_locator_element): Remove.
8496 (union tui_which_element) <locator>: Remove.
8497 (struct tui_locator_window): New.
8498 (tui_locator_win_info_ptr): Change return type.
8499 * tui/tui-data.c (_locator): Change type.
8500 (tui_locator_win_info_ptr): Change return type.
8501 (init_content_element): Remove LOCATOR_WIN case. Add assert.
8502 (tui_alloc_content): Add assert.
8503
489e9d8b
TT
85042019-06-25 Tom Tromey <tom@tromey.com>
8505
8506 * tui/tui-winsource.c
8507 (tui_exec_info_window::maybe_allocate_content): New method.
8508 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
8509 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
8510 (make_source_or_disasm_window): Add cast.
8511 * tui/tui-data.h (union tui_which_element) <simple_string>:
8512 Remove.
8513 (struct tui_source_info): New.
8514 (struct tui_source_window_base) <execution_info>: Change type.
8515 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
8516 case, and add assert.
8517 (tui_alloc_content): Add assert.
8518
c3fabb7d
TT
85192019-06-25 Tom Tromey <tom@tromey.com>
8520
8521 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
8522 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
8523 * tui/tui-data.c (tui_alloc_win_info): Remove.
8524
bbc228ee
TT
85252019-06-25 Tom Tromey <tom@tromey.com>
8526
8527 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
8528 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
8529 can_highlight.
8530
5fcee43a
TT
85312019-06-25 Tom Tromey <tom@tromey.com>
8532
8533 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
8534 make_visible_with_new_height method.
8535 (tui_win_info::make_visible_with_new_height): New method.
8536 (tui_source_window_base::do_make_visible_with_new_height)
8537 (tui_data_window::do_make_visible_with_new_height)
8538 (tui_cmd_window::do_make_visible_with_new_height): New methods.
8539 (make_visible_with_new_height): Remove.
8540 (tui_resize_all, tui_adjust_win_heights): Use
8541 make_visible_with_new_height method.
8542 * tui/tui-data.h (struct tui_win_info)
8543 <do_make_visible_with_new_height, make_visible_with_new_height>:
8544 New methods.
8545 (struct tui_source_window_base, struct tui_data_window)
8546 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
8547 methods.
8548
d83f1fe6
TT
85492019-06-25 Tom Tromey <tom@tromey.com>
8550
8551 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
8552 method.
8553 (update_tab_width): Call update_tab_width method.
8554 * tui/tui-data.h (struct tui_win_info)
8555 (struct tui_source_window_base) <update_tab_width>: New methods.
8556
17374de4
TT
85572019-06-25 Tom Tromey <tom@tromey.com>
8558
8559 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
8560 parameter.
8561 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
8562 parameter.
8563 (tui_gen_win_info::make_visible): Update.
8564 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
8565 parameter.
8566 * tui/tui-data.h (enum tui_box): New enum.
8567 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
8568
f936bca2
TT
85692019-06-25 Tom Tromey <tom@tromey.com>
8570
8571 * tui/tui-layout.c (make_source_or_disasm_window): Always use
8572 init_and_make_win for EXEC_INFO_WIN.
8573 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
8574 longer inline.
8575 (struct tui_win_info) <~tui_win_info>: Inline.
8576 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
8577 Don't declare.
8578 * tui/tui-data.c (source_win, disasm_win): Remove globals.
8579 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
8580 Remove.
8581 (tui_initialize_static_data): Update.
8582 (~tui_gen_win_info): Handle more cleanup here.
8583 (~tui_source_window_base): Delete "execution_info".
8584 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
8585
d6ba6a11
TT
85862019-06-25 Tom Tromey <tom@tromey.com>
8587
8588 * tui/tui-layout.c (make_command_window): Don't set
8589 can_highlight.
8590 (show_source_disasm_command): Call the reset method.
8591 (show_data): Don't set can_highlight. Call the reset method.
8592 (tui_gen_win_info::reset): Rename from init_gen_win_info
8593 (init_and_make_win): Simplify. Return tui_gen_win_info.
8594 (show_source_or_disasm_and_command): Call the reset method.
8595 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
8596 (struct tui_cmd_window): Set can_highlight.
8597
48a3bd16
TT
85982019-06-25 Tom Tromey <tom@tromey.com>
8599
8600 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
8601 from make_visible.
8602 (tui_make_visible, tui_make_invisible): Rewrite.
8603 (tui_win_info::make_visible): Remove.
8604 (tui_source_window_base::make_visible): Update.
8605 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
8606 method. Moved from...
8607 (struct tui_win_info) <make_visible>: ...here.
8608
c3bd716f
TT
86092019-06-25 Tom Tromey <tom@tromey.com>
8610
8611 * tui/tui-winsource.c
8612 (tui_source_window_base::do_scroll_horizontal): Remove direction
8613 parameter.
8614 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
8615 direction parameter.
8616 * tui/tui-win.c (tui_win_info::forward_scroll)
8617 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
8618 (tui_win_info::right_scroll): Update.
8619 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
8620 direction parameter.
8621 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
8622 direction parameter.
8623 * tui/tui-data.h (enum tui_scroll_direction): Remove.
8624 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
8625 Remove direction parameter.
8626 (struct tui_source_window_base, struct tui_source_window)
8627 (struct tui_disasm_window, struct tui_data_window)
8628 (struct tui_cmd_window): Update.
8629
21c32dca
TT
86302019-06-25 Tom Tromey <tom@tromey.com>
8631
8632 * tui/tui-winsource.h (tui_set_exec_info_content)
8633 (tui_show_exec_info_content, tui_erase_exec_info_content)
8634 (tui_clear_exec_info_content, tui_update_exec_info): Change
8635 argument to tui_source_window_base.
8636 * tui/tui-winsource.c (tui_set_exec_info_content)
8637 (tui_show_exec_info_content, tui_erase_exec_info_content)
8638 (tui_clear_exec_info_content, tui_update_exec_info): Change
8639 argument to tui_source_window_base.
8640
73fbdc65
TT
86412019-06-25 Tom Tromey <tom@tromey.com>
8642
8643 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
8644 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
8645
33325343
TT
86462019-06-25 Tom Tromey <tom@tromey.com>
8647
8648 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
8649 check.
8650
29d2c474
TT
86512019-06-25 Tom Tromey <tom@tromey.com>
8652
8653 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
8654 type to void.
8655 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
8656 type to void.
8657 * tui/tui-source.c (tui_set_source_content): Update.
8658 * tui/tui-disasm.c (tui_set_disassem_content): Update.
8659
152f3f4b
TT
86602019-06-25 Tom Tromey <tom@tromey.com>
8661
8662 * tui/tui-win.c (window_name_completer, tui_set_focus)
8663 (tui_all_windows_info): Use name method.
8664 * tui/tui-data.h (struct tui_gen_win_info)
8665 (struct tui_source_window, struct tui_disasm_window)
8666 (struct tui_data_window, struct tui_cmd_window) <name>: New
8667 method.
8668 (tui_win_name): Don't declare.
8669 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
8670 (tui_win_name): Remove.
8671
be4da588
TT
86722019-06-25 Tom Tromey <tom@tromey.com>
8673
8674 * tui/tui-winsource.h (tui_update_source_window)
8675 (tui_update_source_window_as_is): Change parameter type.
8676 * tui/tui-winsource.c (tui_update_source_window): Change win_info
8677 to be a tui_source_window_base.
8678 (tui_update_source_window_as_is): Likewise.
8679 * tui/tui-win.c (make_visible_with_new_height): Update.
8680
5b81daba
TT
86812019-06-25 Tom Tromey <tom@tromey.com>
8682
8683 * tui/tui-winsource.c (tui_erase_source_content)
8684 (tui_show_source_content, tui_show_exec_info_content)
8685 (tui_erase_exec_info_content): Use refresh_window method.
8686 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
8687 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
8688 from tui_refresh_win.
8689 (tui_data_window::refresh_window): New method.
8690 (tui_win_info::refresh, tui_source_window_base::refresh)
8691 (tui_refresh_all): Use refresh_window method.
8692 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
8693 method.
8694 * tui/tui-regs.c (tui_display_register): Call refresh_window
8695 method.
8696 * tui/tui-layout.c (show_source_disasm_command)
8697 (show_source_or_disasm_and_command): Call refresh_window method.
8698 * tui/tui-data.h (struct tui_gen_win_info)
8699 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
8700 New method.
8701
cb2ce893
TT
87022019-06-25 Tom Tromey <tom@tromey.com>
8703
8704 * tui/tui.c (tui_rl_other_window, tui_enable)
8705 (tui_is_window_visible, tui_get_command_dimension): Update.
8706 * tui/tui-winsource.c (tui_update_source_window_as_is)
8707 (tui_clear_source_content, tui_erase_source_content)
8708 (tui_show_source_line, tui_source_window_base::refill)
8709 (tui_source_window_base::do_scroll_horizontal)
8710 (tui_source_window_base::set_is_exec_point_at)
8711 (tui_update_breakpoint_info, tui_set_exec_info_content)
8712 (tui_alloc_source_buffer, tui_line_is_displayed)
8713 (tui_addr_is_displayed): Update.
8714 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
8715 (tui_check_and_display_highlight_if_needed)
8716 (tui_win_info::make_visible, tui_win_info::refresh)
8717 (tui_refresh_all): Update.
8718 * tui/tui-windata.c (tui_first_data_item_displayed)
8719 (tui_delete_data_content_windows, tui_erase_data_content)
8720 (tui_display_all_data, tui_data_window::refresh_all)
8721 (tui_check_data_values): Update.
8722 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
8723 (tui_set_win_focus_to, tui_win_info::forward_scroll)
8724 (tui_win_info::backward_scroll, tui_refresh_all_win)
8725 (tui_resize_all, tui_set_focus, tui_all_windows_info)
8726 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
8727 (tui_source_window_base::set_new_height)
8728 (tui_data_window::set_new_height)
8729 (make_invisible_and_set_new_height)
8730 (make_visible_with_new_height, new_height_ok)
8731 (parse_scrolling_args): Update.
8732 * tui/tui-stack.c (tui_show_frame_info): Update.
8733 * tui/tui-source.c (tui_set_source_content)
8734 (tui_set_source_content_nil, tui_source_is_displayed)
8735 (tui_source_window::do_scroll_vertical): Update.
8736 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
8737 (tui_display_registers_from, tui_display_reg_element_at_line)
8738 (tui_check_register_values, tui_reg_command): Update.
8739 * tui/tui-layout.c (tui_default_win_height)
8740 (show_source_disasm_command, show_data, init_and_make_win)
8741 (show_source_or_disasm_and_command): Update.
8742 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
8743 (tui_redisplay_readline, tui_mld_flush)
8744 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
8745 (tui_getc): Update.
8746 * tui/tui-disasm.c (tui_set_disassem_content)
8747 (tui_disasm_window::do_scroll_vertical): Update.
8748 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
8749 Now virtual.
8750 (struct tui_win_info): Derive from tui_gen_win_info.
8751 <~tui_win_info>: Mark as override.
8752 <generic>: Remove member.
8753 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
8754 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
8755 (~tui_data_window, ~tui_win_info)
8756 (tui_free_all_source_wins_content): Update.
8757 * tui/tui-command.c (tui_refresh_cmd_win): Update.
8758
ab313b35
TT
87592019-06-25 Tom Tromey <tom@tromey.com>
8760
8761 * tui/tui-layout.c (init_and_make_win): Use new.
8762 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
8763 destructor, initializers.
8764 (tui_alloc_generic_win_info): Don't declare.
8765 * tui/tui-data.c (_locator): Add argument to constructor.
8766 (source_win, disasm_win): New globals.
8767 (exec_info): Remove.
8768 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
8769 Update.
8770 (tui_alloc_generic_win_info): Remove.
8771 (init_content_element): Use new.
8772 (tui_win_info::tui_win_info): Update.
8773 (free_content_elements) <case DATA_WIN>: Use delete.
8774
dc2c33e4
TT
87752019-06-25 Tom Tromey <tom@tromey.com>
8776
8777 * tui/tui-wingeneral.c (tui_refresh_win): Update.
8778 * tui/tui-windata.c (tui_first_data_item_displayed)
8779 (tui_delete_data_content_windows): Update.
8780 * tui/tui-win.c (tui_data_window::set_new_height): Update.
8781 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
8782 (tui_display_registers_from, tui_check_register_values): Update.
8783 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
8784 pointer.
8785 * tui/tui-data.c (init_content_element): Update. Allocate the new
8786 window.
8787 (tui_free_data_content): Update.
8788 (free_content_elements) <case DATA_WIN>: Free the window.
8789
214a5cbe
TT
87902019-06-25 Tom Tromey <tom@tromey.com>
8791
8792 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
8793 Update.
8794 * tui/tui-layout.c (make_command_window)
8795 (show_source_disasm_command, show_data, init_and_make_win)
8796 (show_source_or_disasm_and_command): Update.
8797 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
8798 method.
8799 <can_highight, is_highlighted>: Now bool.
8800 (tui_set_win_highlight): Don't declare.
8801 * tui/tui-data.c (tui_set_win_highlight): Remove.
8802
8e2daf15
TT
88032019-06-25 Tom Tromey <tom@tromey.com>
8804
8805 * tui/tui-wingeneral.c (make_visible): Remove check of window
8806 type.
8807
8903bd8a
TT
88082019-06-25 Tom Tromey <tom@tromey.com>
8809
8810 * tui/tui-win.c (tui_win_info::max_height)
8811 (tui_cmd_window::max_height): New methods.
8812 (new_height_ok): Call max_height.
8813 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
8814 <max_height>: New method.
8815
3f02ce1e
TT
88162019-06-25 Tom Tromey <tom@tromey.com>
8817
8818 * tui/tui-win.c (tui_source_window_base::set_new_height)
8819 (tui_data_window::set_new_height): New methods.
8820 (make_invisible_and_set_new_height): Call set_new_height method.
8821 * tui/tui-data.h (struct tui_win_info)
8822 (struct tui_source_window_base, struct tui_data_window)
8823 <set_new_height>: New method.
8824
1825f487
TT
88252019-06-25 Tom Tromey <tom@tromey.com>
8826
8827 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
8828 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
8829 tui_refresh_data_win.
8830 * tui/tui-win.c (tui_source_window_base::refresh_all): New
8831 method.
8832 (tui_refresh_all_win): Call the refresh_all method.
8833 (tui_set_focus): Likewise.
8834 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
8835 (struct tui_source_window_base, struct tui_data_window) <refresh>:
8836 Likewise.
8837
ad54d15b
TT
88382019-06-25 Tom Tromey <tom@tromey.com>
8839
8840 * tui/tui-winsource.h (tui_refill_source_window)
8841 (tui_set_is_exec_point_at): Don't declare.
8842 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
8843 (tui_source_window_base::refill): Rename from
8844 tui_refill_source_window.
8845 (tui_source_window_base::do_scroll_horizontal): Update.
8846 (tui_source_window_base::set_is_exec_point_at): Rename from
8847 tui_set_is_exec_point_at.
8848 (tui_update_all_breakpoint_info): Update.
8849 * tui/tui-stack.c (tui_show_frame_info): Update.
8850 * tui/tui-layout.c (show_data): Add cast.
8851 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
8852 * tui/tui-data.h (struct tui_source_window_base) <refill,
8853 set_is_exec_point_at>: New methods.
8854 (tui_source_windows, tui_add_to_source_windows): Update types.
8855 (tui_add_to_source_windows): Remove redundant declaration.
8856 * tui/tui-data.c (source_windows): Store tui_source_window_base.
8857 (tui_source_windows): Change return type.
8858 (tui_clear_source_windows_detail): Update.
8859 (tui_add_to_source_windows): Change type of parameter.
8860 (tui_free_all_source_wins_content): Update.
8861
2042b506
TT
88622019-06-25 Tom Tromey <tom@tromey.com>
8863
8864 * tui/tui-wingeneral.c (tui_win_info::refresh)
8865 (tui_source_window_base::refresh): New methods.
8866 (tui_refresh_all): Call the refresh method.
8867 * tui/tui-data.h (struct tui_win_info)
8868 (struct tui_source_window_base) <refresh>: New method.
8869
56122977
TT
88702019-06-25 Tom Tromey <tom@tromey.com>
8871
8872 * tui/tui.h (tui_is_window_visible): Return bool.
8873 * tui/tui.c (tui_is_window_visible): Return bool.
8874 * tui/tui-wingeneral.c (tui_make_window, make_visible)
8875 (tui_make_visible, tui_make_invisible)
8876 (tui_win_info::make_visible)
8877 (tui_source_window_base::make_visible, make_all_visible)
8878 (tui_make_all_visible, tui_make_all_invisible): Update.
8879 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
8880 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
8881 bool.
8882 (struct tui_win_info, struct tui_source_window_base)
8883 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
8884 * tui/tui-data.c (tui_init_generic_part): Update.
8885
cda37efb
TT
88862019-06-25 Tom Tromey <tom@tromey.com>
8887
8888 * tui/tui-wingeneral.c (tui_win_info::make_visible)
8889 (tui_source_window_base::make_visible): New methods.
8890 (make_all_visible): Make method call.
8891 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
8892 (struct tui_source_window_base, struct tui_cmd_window): Override
8893 make_visible.
8894 (tui_win_is_source_type): Don't declare.
8895 * tui/tui-data.c (tui_win_is_source_type): Remove.
8896
6a0ee02c
TT
88972019-06-25 Tom Tromey <tom@tromey.com>
8898
8899 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
8900 NULL check.
8901
63901aec
TT
89022019-06-25 Tom Tromey <tom@tromey.com>
8903
8904 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
8905 Inline constructor. Add initializers for members.
8906 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
8907 constructors; now inline in class.
8908
ceb13a13
TT
89092019-06-25 Tom Tromey <tom@tromey.com>
8910
8911 * tui/tui-regs.c (tui_show_registers): Update.
8912 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
8913 bool.
8914 * tui/tui-data.c (tui_data_window::clear_detail)
8915 (tui_data_window): Update.
8916
238eb706
TT
89172019-06-25 Tom Tromey <tom@tromey.com>
8918
8919 * tui/tui-windata.c (tui_display_all_data)
8920 (tui_display_data_from_line, tui_display_data_from)
8921 (tui_check_data_values, tui_data_window::do_scroll_vertical):
8922 Update.
8923 * tui/tui-regs.c (tui_last_regs_line_no)
8924 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
8925 (tui_show_registers, tui_show_register_group)
8926 (tui_display_registers_from, tui_display_reg_element_at_line)
8927 (tui_display_registers_from_line, tui_check_register_values)
8928 (tui_reg_next, tui_reg_prev): Update.
8929 * tui/tui-layout.c (tui_set_layout, show_data): Update.
8930 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
8931 tui_data_window.
8932 (struct tui_win_info) <detail>: Remove. Add new fields from
8933 tui_data_info.
8934 (TUI_DATA_WIN): Add cast.
8935 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
8936 (~tui_data_window): Simplify.
8937
81491aa0
TT
89382019-06-25 Tom Tromey <tom@tromey.com>
8939
8940 * tui/tui-layout.c (show_source_disasm_command)
8941 (show_source_or_disasm_and_command): Update.
8942 * tui/tui-io.c (update_cmdwin_start_line)
8943 (tui_redisplay_readline): Update.
8944 * tui/tui-data.h (struct tui_command_info): Remove.
8945 (struct tui_win_info) <detail>: Remove command_info member.
8946 (struct tui_data_window) <start_line>: New member, from
8947 tui_command_info.
8948 (TUI_CMD_WIN): Add casts.
8949
e6e41501
TT
89502019-06-25 Tom Tromey <tom@tromey.com>
8951
8952 * tui/tui-winsource.c (tui_update_source_window)
8953 (tui_refill_source_window)
8954 (tui_source_window_base::do_scroll_horizontal)
8955 (tui_update_breakpoint_info, tui_set_exec_info_content)
8956 (tui_show_exec_info_content, tui_erase_exec_info_content)
8957 (tui_clear_exec_info_content): Update.
8958 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
8959 Update.
8960 * tui/tui-win.c (make_invisible_and_set_new_height)
8961 (make_visible_with_new_height): Update.
8962 * tui/tui-source.c (tui_set_source_content)
8963 (tui_show_symtab_source): Update.
8964 * tui/tui-layout.c (extract_display_start_addr)
8965 (show_source_disasm_command, show_data)
8966 (make_source_or_disasm_window)
8967 (show_source_or_disasm_and_command): Update.
8968 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
8969 (tui_disasm_window::do_scroll_vertical): Remove shadowing
8970 "gdbarch".
8971 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
8972 to tui_source_window_base.
8973 (struct tui_win_info) <detail>: Remove source_info member.
8974 (struct tui_source_window_base) <has_locator>: Inline.
8975 Move contents from tui_source_info; rename has_locator member to
8976 m_has_locator.
8977 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
8978 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
8979 header file.
8980 (tui_source_window_base::clear_detail, ~tui_source_window_base):
8981 Simplify.
8982 (tui_free_all_source_wins_content): Cast to
8983 tui_source_window_base.
8984
44f0e208
TT
89852019-06-25 Tom Tromey <tom@tromey.com>
8986
8987 * tui/tui-win.c (make_invisible_and_set_new_height)
8988 (make_visible_with_new_height): Call has_locator method.
8989 * tui/tui-layout.c (show_source_disasm_command, show_data)
8990 (show_source_or_disasm_and_command): Update for bool change.
8991 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
8992 (tui_win_info) <has_locator>: New method.
8993 (struct tui_source_window_base) <has_locator>: New method.
8994 (tui_win_has_locator): Don't declare.
8995 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
8996 from tui_win_has_locator.
8997 (tui_source_window_base): Use false, not FALSE.
8998
7778b912
TT
89992019-06-25 Tom Tromey <tom@tromey.com>
9000
9001 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
9002 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
9003 clear_detail method directly.
9004 (tui_clear_win_detail): Remove.
9005
f83d391c
TT
90062019-06-25 Tom Tromey <tom@tromey.com>
9007
9008 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
9009 "this", not TUI_DISASM_WIN.
9010
13446e05
TT
90112019-06-25 Tom Tromey <tom@tromey.com>
9012
9013 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
9014 declare.
9015 * tui/tui-winsource.c
9016 (tui_source_window_base::do_scroll_horizontal): Rename from
9017 tui_horizontal_source_scroll.
9018 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
9019 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
9020 from tui_vertical_data_scroll.
9021 * tui/tui-win.h (tui_scroll): Don't declare.
9022 * tui/tui-win.c (tui_win_info::forward_scroll)
9023 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
9024 (tui_win_info::right_scroll): Rename and update.
9025 (tui_scroll_forward_command, tui_scroll_backward_command)
9026 (tui_scroll_left_command, tui_scroll_right_command): Update.
9027 (tui_scroll): Remove.
9028 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
9029 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
9030 from tui_vertical_source_scroll.
9031 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
9032 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
9033 from tui_vertical_disassem_scroll.
9034 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
9035 do_scroll_horizontal>: New methods.
9036 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
9037 Likewise.
9038 (struct tui_source_window_base): Add do_scroll_horizontal.
9039 (struct tui_source_window, struct tui_disasm_window): Add
9040 do_scroll_vertical.
9041 (struct tui_data_window, struct tui_cmd_window): Add
9042 do_scroll_horizontal and do_scroll_vertical.
9043 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
9044
5cf82909
TT
90452019-06-25 Tom Tromey <tom@tromey.com>
9046
9047 * tui/tui-data.h (struct tui_source_window_base): New struct.
9048 (struct tui_source_window): Derive from tui_source_window_base.
9049 (struct tui_disasm_window): New struct.
9050 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
9051 from tui_source_window::clear_detail.
9052 (tui_source_window_base): Rename from tui_source_window.
9053 (~tui_source_window_base): Rename from ~tui_source_window.
9054 (tui_alloc_win_info): Create a tui_disasm_window.
9055
ee1d42d6
TT
90562019-06-25 Tom Tromey <tom@tromey.com>
9057
9058 * tui/tui-data.h (struct tui_source_window)
9059 (struct tui_data_window): Declare destructors.
9060 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
9061 destructors.
9062 (tui_win_info): Simplify.
9063
b4eb2452
TT
90642019-06-25 Tom Tromey <tom@tromey.com>
9065
9066 * tui/tui-winsource.c (tui_display_main)
9067 (tui_update_source_windows_with_addr)
9068 (tui_update_all_breakpoint_info): Update.
9069 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
9070 (new_height_ok, parse_scrolling_args): Update.
9071 * tui/tui-stack.c (tui_show_frame_info): Update.
9072 * tui/tui-data.h (struct tui_list): Remove.
9073 (tui_source_windows): Return a reference to a std::vector.
9074 * tui/tui-data.c (source_windows): Now a std::vector.
9075 (tui_source_windows): Change return type.
9076 (tui_clear_source_windows): Rewrite.
9077 (tui_clear_source_windows_detail, tui_add_to_source_windows)
9078 (tui_free_all_source_wins_content): Rewrite.
9079
8761a91b
TT
90802019-06-25 Tom Tromey <tom@tromey.com>
9081
9082 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
9083 (struct tui_data_window, struct tui_cmd_window): Declare
9084 clear_detail method.
9085 * tui/tui-data.c (tui_source_window::clear_detail)
9086 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
9087 methods.
9088 (tui_clear_win_detail): Simplify.
9089
0ed69eda
TT
90902019-06-25 Tom Tromey <tom@tromey.com>
9091
9092 * tui/tui-layout.c (make_source_window, make_disasm_window)
9093 (make_source_or_disasm_window): Remove win_info_ptr parameter.
9094 Return the new window.
9095 (show_source_disasm_command, show_data)
9096 (show_source_or_disasm_and_command): Update.
9097
82432e10
TT
90982019-06-25 Tom Tromey <tom@tromey.com>
9099
9100 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
9101 parameter. Return the new window.
9102 (show_source_disasm_command): Update and remove NULL check.
9103 (show_source_or_disasm_and_command): Update.
9104
ec328aa5
TT
91052019-06-25 Tom Tromey <tom@tromey.com>
9106
9107 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
9108
33b906ab
TT
91092019-06-25 Tom Tromey <tom@tromey.com>
9110
9111 * tui/tui-data.h (struct tui_win_info): Make constructor
9112 protected. Make destructor virtual. Add initializers.
9113 (tui_source_window, tui_data_window, tui_cmd_window): New
9114 classes.
9115 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
9116 constructor. Add "type" parameter.
9117 (tui_source_window, tui_data_window, tui_cmd_window): New
9118 constructors.
9119 (tui_alloc_win_info): Instantiate the appropriate subclass.
9120
e7e11af4
TT
91212019-06-25 Tom Tromey <tom@tromey.com>
9122
9123 * tui/tui-win.c (tui_resize_all): Use delete.
9124 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
9125 destructor.
9126 (tui_free_window): Don't declare.
9127 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
9128 Update.
9129
6792b55e
TT
91302019-06-25 Tom Tromey <tom@tromey.com>
9131
9132 * tui/tui-data.h (struct tui_win_info): Add constructor.
9133 * tui/tui-data.c (tui_alloc_win_info): Use new.
9134 (tui_free_window): Use delete.
9135
f95675e1
TT
91362019-06-22 Tom Tromey <tom@tromey.com>
9137
9138 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
9139 declare.
9140 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
9141
5bff081c
TT
91422019-06-22 Tom Tromey <tom@tromey.com>
9143
9144 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
9145 declare.
9146 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
9147
47e3f474
TV
91482019-06-22 Tom de Vries <tdevries@suse.de>
9149
9150 * dwarf2read.c (create_addrmap_from_aranges)
9151 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
9152 instead of '%zu'.
9153
fd5866f6
SM
91542019-06-21 Simon Marchi <simon.marchi@efficios.com>
9155
9156 * dwarf2read.h (dwarf2_section_info_def): Remove.
9157 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
9158 * dwarf2read.c (struct dwo_sections) <types>: Change type to
9159 std::vector<dwarf2_section_info>.
9160 (struct dwo_file) <~dwo_file>: Remove.
9161 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
9162 types field.
9163 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
9164 (dwarf2_read_debug_names): Likewise.
9165 (create_debug_types_hash_table): Change parameter type to
9166 array_view, adjust code accordingly.
9167 (dwarf2_locate_dwo_sections): Adjust to std::vector.
9168 (partial_die_info::fixup): Likewise.
9169 (determine_prefix): Likewise.
9170 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
9171
fb1eb2f9
SM
91722019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
9173
9174 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
9175 gdb_bfd_ref_ptr.
9176 <~dwo_file>: Remove call to gdb_bfd_unref.
9177 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
9178 gdb_bfd_ref_ptr::get.
9179
51ac9db5
SM
91802019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
9181
9182 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
9183 type to htab_up.
9184 * dwarf2read.c (struct dwo_file): Initialize fields.
9185 <~dwo_file>: New.
9186 (free_dwo_file): Remove, move content to ~dwo_file.
9187 (struct dwo_file_deleter): Remove.
9188 (dwo_file_up>: Remove custom deleter.
9189 (free_dwo_files): Remove.
9190 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
9191 dwo_files.
9192 (process_skeletonless_type_units): Call unique_ptr::get.
9193 (allocate_dwo_file_hash_table): Add deleter to created hash
9194 table. Change return type to htab_up.
9195 (lookup_dwo_file_slot): Don't memset dwo_file, call
9196 unique_ptr::get.
9197 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
9198 (create_dwo_unit_in_dwp_v2): Likewise.
9199 (open_and_init_dwo_file): Likewise.
9200 (free_dwo_file_from_slot): Remove.
9201
dc4ccb6f
SM
92022019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
9203
9204 * dwarf2read.h (struct dwarf2_section_info) <readin,
9205 is_virtual>: Change type to bool.
9206 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
9207 true instead of 1.
9208
e6a1c5cb
TT
92092019-06-19 Tom Tromey <tom@tromey.com>
9210
9211 * tui/tui-data.h (tui_init_content_element): Don't declare.
9212
6f6ffbeb
TT
92132019-06-19 Tom Tromey <tom@tromey.com>
9214
9215 * tui/tui-data.h (tui_init_win_info): Don't declare.
9216
f23f598e
TV
92172019-06-19 Tom de Vries <tdevries@suse.de>
9218
9219 * dwarf2read.h (abstract_to_concrete): Change type to
9220 std::unordered_map<sect_offset, std::vector<sect_offset>,
9221 gdb::hash_enum<sect_offset>>.
9222
680e1bee
TT
92232019-06-19 Tom Tromey <tromey@adacore.com>
9224
9225 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
9226 EVAL_AVOID_SIDE_EFFECTS specially.
9227
dcf37923
TT
92282019-06-19 Tom Tromey <tromey@adacore.com>
9229
9230 * source-cache.c (highlighter): New global.
9231 (source_cache::get_source_lines): Create a highlighter on demand.
9232
494986d5
AB
92332019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
9234
9235 * defs.h (deprecated_interactive_hook): Delete declaration.
9236 * interps.c (clear_interpreter_hooks): Remove use of
9237 deprecated_interactive_hook.
9238 * top.c (deprecated_interactive_hook): Delete definition.
9239 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
9240
3360b6e7
TV
92412019-06-18 Tom de Vries <tdevries@suse.de>
9242
9243 PR gdb/24515
9244 * dwarf2read.h (abstract_to_concrete): Change type from
9245 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
9246 std::unordered_map<sect_offset, std::vector<sect_offset>>.
9247 * dwarf2read.c (read_variable): Update.
9248 (dwarf2_fetch_die_loc_sect_off): Update.
9249
310b3441
TV
92502019-06-17 Tom de Vries <tdevries@suse.de>
9251
9252 PR gdb/24617
9253 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
9254 accessing parent[parent_len - 1].
9255
ba9777be
PP
92562019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
9257
9258 PR gdb/24364
9259 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
9260 call dtrace_process_dof with NULL dof.
9261
2b9f6e89
TV
92622019-06-16 Tom de Vries <tdevries@suse.de>
9263
9264 PR gdb/24445
9265 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
9266
431b3ead
TT
92672019-06-16 Tom Tromey <tom@tromey.com>
9268
9269 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
9270 (make_all_visible): Use address of member.
9271
d04b44a1
TT
92722019-06-16 Tom Tromey <tom@tromey.com>
9273
9274 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
9275 (tui_free_window, free_content, free_content_elements): Remove
9276 unnecessary cast.
9277 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
9278 cast.
9279 * tui/tui-regs.c (tui_show_register_group)
9280 (tui_display_registers_from, tui_display_reg_element_at_line):
9281 Remove unnecessary cast.
9282
bf5142e7
AB
92832019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
9284
9285 * linux-nat.c (normal_mask): Delete.
9286 (_initialize_linux_nat): Don't initialise normal_mask.
9287
c4973306
SM
92882019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
9289
9290 PR gdb/24445
9291 * dwarf-index-write.h (write_psymtabs_to_index): Add
9292 dwz_basename parameter.
9293 * dwarf-index-write.c (write_gdbindex): Move file writing to
9294 write_gdbindex_1. Change return type void.
9295 (assert_file_size): Move up, remove filename parameter.
9296 (write_gdbindex_1): New function.
9297 (write_debug_names): Change return type to void, call
9298 assert_file_size.
9299 (struct index_wip_file): New struct.
9300 (write_psymtabs_to_index): Add dwz_basename parameter. Move
9301 file logic to index_wip_file. Write index for dwz file if
9302 needed.
9303 (save_gdb_index_command): Pass basename of dwz file, if present.
9304 * dwarf-index-cache.c (index_cache::store): Obtain and pass
9305 build-id of dwz file, if present.
9306 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
9307 (dwarf2_get_dwz_file): Likewise.
9308 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
9309 (dwarf2_get_dwz_file): Likewise.
9310
395f9c91
TT
93112019-06-16 Tom Tromey <tom@tromey.com>
9312
9313 * coffread.c (process_coff_symbol): Use xstrdup.
9314 * value.c (create_internalvar): Use xstrdup.
9315
cafb3438
TT
93162019-06-16 Tom Tromey <tom@tromey.com>
9317
9318 * valops.c (value_cast, value_slice): Remove unnecessary cast.
9319 * breakpoint.c (stopin_command, stopat_command)
9320 (until_break_command, decode_location_default): Remove unnecessary
9321 cast.
9322 * utils.c (subset_compare): Remove unnecessary cast.
9323 * ada-lang.c (ada_update_initial_language): Remove unnecessary
9324 cast.
9325 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
9326 cast.
9327 * infcmd.c (path_command): Remove unnecessary cast.
9328 * coffread.c (decode_type): Remove unnecessary cast.
9329 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
9330 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
9331 * tui/tui-stack.c (tui_show_locator_content)
9332 (tui_show_frame_info): Remove unnecessary cast.
9333 * tui/tui-win.c (tui_scroll_forward_command)
9334 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
9335 (parse_scrolling_args): Remove unnecessary cast.
9336 * tui/tui-data.c (init_win_info, tui_del_window)
9337 (tui_free_window, tui_del_data_windows, tui_free_data_content)
9338 (free_content_elements): Remove unnecessary cast.
9339 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
9340 unnecessary cast.
9341 * tui/tui-source.c (tui_set_source_content)
9342 (tui_vertical_source_scroll): Remove unnecessary cast.
9343 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
9344 cast.
9345 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
9346 * tui/tui-regs.c (tui_display_registers_from)
9347 (tui_display_register): Remove unnecessary cast.
9348 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
9349 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
9350 (make_visible): Remove unnecessary cast.
9351 * tui/tui-winsource.c (tui_erase_source_content)
9352 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
9353 unnecessary cast.
9354 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
9355 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
9356 * stabsread.c (read_type, read_array_type, read_range_type):
9357 Remove unnecessary cast.
9358 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
9359 (parse_symbol, parse_type, upgrade_type, parse_external)
9360 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
9361 unnecessary cast.
9362 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
9363
730ead81
TT
93642019-06-16 Tom Tromey <tom@tromey.com>
9365
9366 * tui/tui-data.c (tui_alloc_generic_win_info)
9367 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
9368 checks.
9369
584a927c
AB
93702019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
9371 Andrew Burgess <andrew.burgess@embecosm.com>
9372
9373 * f-typeprint.c (f_print_type): Don't return early for not
9374 associated or not allocated types.
9375 (f_type_print_varspec_suffix): Add print_rank parameter and print
9376 ranks of array types in case they dangling.
9377 (f_type_print_base): Add print_rank parameter.
9378
30056ea0
AB
93792019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
9380
9381 * NEWS: Mention new MI commands.
9382 * break-catch-throw.c (enum exception_event_kind): Move to
9383 breakpoint.h.
9384 (print_mention_exception_catchpoint): Output text as a single
9385 message.
9386 (catch_exception_command_1): Rename to...
9387 (catch_exception_event): ...this, make non-static, update header
9388 command, and change some parameter types.
9389 (catch_catch_command): Update for changes to
9390 catch_exception_command_1.
9391 (catch_throw_command): Likewise.
9392 (catch_rethrow_command): Likewise.
9393 * breakpoint.c (enum exception_event_kind): Delete.
9394 * breakpoint.h (enum exception_event_kind): Moved here from
9395 break-catch-throw.c.
9396 (catch_exception_event): Declare.
9397 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
9398 (mi_cmd_catch_throw): New function.
9399 (mi_cmd_catch_rethrow): New function.
9400 (mi_cmd_catch_catch): New function.
9401 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
9402 'catch-catch' entries.
9403 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
9404 (mi_cmd_catch_rethrow): Declare.
9405 (mi_cmd_catch_catch): Declare.
9406
ec8e2b6d
AB
94072019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
9408
9409 * annotate.c (annotate_source_line): Change return type to void,
9410 update implementation to match.
9411 * annotate.h (annotate_source_line): Change return type to void,
9412 update header comment.
9413 * stack.c (print_frame_info): Don't change what frame information
9414 is printed based on whether annotations are on or not.
9415
0d3abd8c
AB
94162019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
9417
9418 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
9419 (annotate_source): Make static.
9420 (annotate_source_line): Moved from source.c and renamed from
9421 identify_source_line. Update the return type.
9422 * annotate.h (annotate_source): Delete declaration.
9423 (annotate_source_line): Declaration moved from source.h, and
9424 renamed from identify_source_line. Return type updated.
9425 * source.c (identify_source_line): Moved to annotate.c and renamed
9426 to annotate_source_line.
9427 (info_line_command): Remove check of annotation_level.
9428 * source.h (identify_source_line): Move declaration to annotate.h
9429 and rename to annotate_source_line.
9430 * stack.c: Add 'annotate.h' include.
9431 (print_frame_info): Remove check of annotation_level before
9432 calling annotate_source_line.
9433
00df30ae
AB
94342019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
9435
9436 * source-cache.c (source_cache::get_plain_source_lines): Use
9437 open_source_file_with_line_charpos instead of just
9438 open_source_file, remove call to find_source_lines.
9439 (source_cache::get_source_lines): Likewise.
9440 * source.c (find_source_lines): Make static.
9441 (get_filename_and_charpos): Renamed into...
9442 (open_source_file_with_line_charpos): ..this along with changes to
9443 return a scoped_fd, and some other minor clean ups.
9444 (identify_source_line): Use open_source_file_with_line_charpos.
9445 (search_command_helper): Use open_source_file_with_line_charpos
9446 instead of just open_source_file, remove call to
9447 find_source_lines.
9448 * source.h (open_source_file_with_line_charpos): Declare new
9449 function.
9450 (find_source_lines): Delete declaration.
9451
afda45a2
AB
94522019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
9453
9454 * source.c (get_filename_and_charpos): Remove fullname
9455 parameter.
9456 (identify_source_line): Update call to get_filename_and_charpos.
9457
0735b091
TT
94582019-06-14 Tom Tromey <tromey@adacore.com>
9459
9460 PR gdb/24502:
9461 * ui-style.h (skip_ansi_escape): Update comment.
9462 * ui-file.h (class no_terminal_escape_file): New class.
9463 * ui-file.c (no_terminal_escape_file::write)
9464 (no_terminal_escape_file::puts): New methods.
9465 * cli/cli-logging.c (handle_redirections): Use
9466 no_terminal_escape_file.
9467
52ce35e2
TT
94682019-06-14 Tom Tromey <tromey@adacore.com>
9469
9470 * NEWS: Move convenience variable news above Python news.
9471
73cc7272
TT
94722019-06-14 Tom Tromey <tom@tromey.com>
9473
9474 * gnulib: Move directory to top-level.
9475 * configure.ac: Don't configure gnulib.
9476 * configure: Rebuild.
9477 * common/common-defs.h: Use new path to gnulib.
9478 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
9479 (GNULIB_H): Remove.
9480 (INCGNU): Look in new gnulib location.
9481 (HFILES_NO_SRCDIR): Remove gnulib files.
9482 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
9483 (generated_files): Remove GNULIB_H.
9484 ($(LIBGNU), all-lib): Remove targets.
9485 (distclean): Don't mention GNULIB_BUILDDIR.
9486 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
9487
f5686554
TT
94882019-06-14 Tom Tromey <tromey@adacore.com>
9489
9490 * symfile.c (add_symbol_file_command): Remove obsolete comment.
9491 Warn if symbol file does not provide any symbols.
9492
a0c1ffed
TT
94932019-06-14 Tom Tromey <tromey@adacore.com>
9494
9495 * source.c (find_and_open_source): Respect basenames_may_differ.
9496
7c39e397
AB
94972019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
9498
9499 * annotate.c (annotate_breakpoints_invalid): Make use of
9500 scoped_restore_terminal_state.
9501 (annotate_frames_invalid): Likewise.
9502
f411722c
TT
95032019-06-14 Tom Tromey <tromey@adacore.com>
9504
9505 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
9506 allow assignment to an internalvar.
9507
4268ec18
TT
95082019-06-14 Tom Tromey <tromey@adacore.com>
9509
9510 * ada-lex.l: Allow "_" in attribute names.
9511
abdb711e
TT
95122019-06-14 Tom Tromey <tromey@adacore.com>
9513
9514 PR gdb/24653:
9515 * regcache.c (registers_changed): Don't call alloca.
9516 * top.c (execute_command): Don't call alloca.
9517
4c048731
PA
95182019-06-13 Pedro Alves <palves@redhat.com>
9519
9520 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
9521 'expression'. When parsing an expression, error out if there's
9522 junk after "unlimited".
9523 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
9524 (do_set_command): Adjust calls to is_unlimited_literal.
9525
66eb1ed3
PA
95262019-06-13 Pedro Alves <palves@redhat.com>
9527
9528 * compile/compile.c (make_compile_options_def_group): Add braces
9529 around array_view initializer.
9530 * thread.c (make_thread_apply_all_options_def_group)
9531 (make_thread_apply_all_options_def_group): Likewise.
9532
3345721a
PA
95332019-06-13 Pedro Alves <palves@redhat.com>
9534
9535 * NEWS (New commands): Mention "maint test-options
9536 require-delimiter", "maint test-options unknown-is-error", "maint
9537 test-options unknown-is-operand" and "maint show
9538 test-options-completion-result".
9539 (New command options, command completion): New section.
9540 (Completion improvements): New section.
9541 Mention that you can abbreviate "unlimited".
9542
6206060d
PA
95432019-06-13 Pedro Alves <palves@redhat.com>
9544
9545 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
9546 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
9547 * unittests/cli-utils-selftests.c (test_parse_flags)
9548 (test_parse_flags_qcs): Delete.
9549 (test_cli_utils): Don't call deleted functions.
9550
6665660a
PA
95512019-06-13 Pedro Alves <palves@redhat.com>
9552
9553 * thread.c: Include "cli/cli-option.h".
9554 (tp_array_compar_ascending): Global.
9555 (tp_array_compar): Delete function.
9556 (tp_array_compar_ascending, tp_array_compar_descending): New
9557 functions.
9558 (ascending_option_def, qcs_flag_option_def)
9559 (thr_qcs_flags_option_defs)
9560 (make_thread_apply_all_options_def_group)
9561 (make_thread_apply_options_def_group): New.
9562 (thread_apply_all_command): Use gdb::option::process_options.
9563 (thread_apply_command_completer)
9564 (thread_apply_all_command_completer): New.
9565 (thread_apply_command): Use gdb::option::process_options.
9566 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
9567 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
9568 to generate help text of "thread apply". Adjust "taas"'s help.
9569 * tid-parse.c (tid_range_parser::in_thread_range): New method.
9570 * tid-parse.h (tid_range_parser::in_thread_range): New method.
9571
f7e13587
PA
95722019-06-13 Pedro Alves <palves@redhat.com>
9573
9574 * thread.c (thread_apply_command): Check for invalid TID with
9575 isdigit instead of !isalpha.
9576
5d707134
PA
95772019-06-13 Pedro Alves <palves@redhat.com>
9578
9579 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
9580 (validate_flags_qcs): New.
9581 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
9582 (validate_flags_qcs): Declare.
9583 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
9584 (make_frame_apply_options_def_group): New.
9585 (frame_apply_command_count): Process options with
9586 gdb::option::process_options.
9587 (frame_apply_completer): New.
9588 (frame_apply_level_completer, frame_apply_all_completer)
9589 (frame_apply_completer): New.
9590 (_initialize_stack): Update help of "frame apply", "frame apply
9591 level", "frame apply all" and "faas" to mention supported options
9592 and install command completers.
9593 * stack.h (frame_apply_all_completer): Declare.
9594 * thread.c: Include "stack.h".
9595 (tfaas_command): Add "--".
9596 (_initialize_thread): Update help "tfaas" to mention supported
9597 options and install command completer.
9598
272d4594
PA
95992019-06-13 Pedro Alves <palves@redhat.com>
9600
9601 * completer.c (complete_nested_command_line): New.
9602 (gdb_completion_word_break_characters_throw): Add assertion.
9603 * completer.h (complete_nested_command_line): Declare.
9604
90a1ef87
PA
96052019-06-13 Pedro Alves <palves@redhat.com>
9606
9607 * stack.c (parse_backtrace_qualifiers): New.
9608 (backtrace_command): Use it.
9609 (backtrace_command_completer): Complete on qualifiers.
9610
d4c16835
PA
96112019-06-13 Pedro Alves <palves@redhat.com>
9612
9613 * frame.c: Include "cli/cli-option.h.
9614 (user_set_backtrace_options): New.
9615 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
9616 Delete.
9617 (get_prev_frame): Adjust.
9618 (boolean_option_def, uinteger_option_def)
9619 (set_backtrace_option_defs): New.
9620 (_initialize_frame): Adjust and use
9621 gdb::option::add_setshow_cmds_for_options to install "set
9622 backtrace past-main" and "set backtrace past-entry".
9623 * frame.h: Include "cli/cli-option.h".
9624 (struct frame_print_options): Forward declare.
9625 (print_frame_arguments_all, print_frame_arguments_scalars)
9626 (print_frame_arguments_none): Declare.
9627 (print_entry_values): Delete declaration.
9628 (struct frame_print_options, user_frame_print_options): New.
9629 (struct set_backtrace_options): New.
9630 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
9631 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
9632 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
9633 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
9634 (list_args_or_locals): Add frame_print_options parameter.
9635 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
9636 * python/py-framefilter.c (enumerate_args): Pass down
9637 USER_FRAME_PRINT_OPTIONS.
9638 * stack.c: Include "cli/cli-option.h".
9639 (print_frame_arguments_all, print_frame_arguments_scalars)
9640 (print_frame_arguments_none): Declare.
9641 (print_raw_frame_arguments, print_entry_values): Delete.
9642 (user_frame_print_options): New.
9643 (boolean_option_def, enum_option_def, frame_print_option_defs):
9644 New.
9645 (struct backtrace_cmd_options): New.
9646 (bt_flag_option_def): New.
9647 (backtrace_command_option_defs): New.
9648 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
9649 (print_frame_arg, read_frame_arg, print_frame_args)
9650 (print_frame_info, print_frame): Add frame_print_options parameter
9651 and use it.
9652 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
9653 (backtrace_command_1): Add frame_print_options and
9654 backtrace_cmd_options parameters and use them.
9655 (make_backtrace_options_def_group): New.
9656 (backtrace_command): Process command options with
9657 gdb::option::process_options.
9658 (backtrace_command_completer): New.
9659 (_initialize_stack): Extend "backtrace"'s help to mention
9660 supported options. Install completer for "backtrace".
9661 Install some settings commands with add_setshow_cmds_for_options.
9662
2daf894e
PA
96632019-06-13 Pedro Alves <palves@redhat.com>
9664
9665 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
9666 and that "set/show print raw frame-arguments" are now deprecated.
9667
9668 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
9669 command.
9670 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
9671 * stack.c (_initialize_stack): Install "set/show print
9672 raw-frame-arguments", and deprecate "set/show print raw
9673 frame-arguments".
9674 * valprint.c (_initialize_valprint): Deprecate "set/show print
9675 raw".
9676
e6ed716c
PA
96772019-06-13 Pedro Alves <palves@redhat.com>
9678
9679 * compile/compile.c (struct compile_options): New.
9680 (compile_flag_option_def, compile_command_option_defs)
9681 (make_compile_options_def_group): New.
9682 (compile_file_command): Handle options with
9683 gdb::option::process_options.
9684 (compile_file_command_completer): New function.
9685 (compile_code_command): Handle options with
9686 gdb::option::process_options.
9687 (compile_code_command_completer): New function.
9688 (_initialize_compiler): Install completers for "compile code" and
9689 "compile file". Mention available options in "compile code" and
9690 "compile code"'s help.
9691 * completer.c (advance_to_completion_word): New, factored out from
9692 ...
9693 (advance_to_expression_complete_word_point): ... this.
9694 (advance_to_filename_complete_word_point): New.
9695 * completer.h (advance_to_filename_complete_word_point): New
9696 declaration.
9697
7d8062de
PA
96982019-06-13 Pedro Alves <palves@redhat.com>
9699
9700 * compile/compile.c: Include "cli/cli-option.h".
9701 (compile_print_value): Scope data pointer is now a
9702 value_print_options pointer; adjust.
9703 (compile_print_command): Process options. Scope data pointer is
9704 now a value_print_options pointer; adjust.
9705 (_initialize_compile): Update "compile print"'s help to include
9706 supported options. Install a completer for "compile print".
9707 * cp-valprint.c (show_vtblprint, show_objectprint)
9708 (show_static_field_print): Delete.
9709 (_initialize_cp_valprint): Don't install "set print
9710 static-members", "set print vtbl", "set print object" here.
9711 * printcmd.c: Include "cli/cli-option.h" and
9712 "common/gdb_optional.h".
9713 (print_command_parse_format): Rework to fill in a
9714 value_print_options instead of a format_data.
9715 (print_value): Change parameter type from format_data pointer to
9716 value_print_options reference. Adjust.
9717 (print_command_1): Process options. Adjust to pass down a
9718 value_print_options.
9719 (print_command_completer): New.
9720 (_initialize_printcmd): Install print_command_completer as
9721 handle_brkchars completer for the "print" command. Update
9722 "print"'s help to include supported options.
9723 * valprint.c: Include "cli/cli-option.h".
9724 (show_vtblprint, show_objectprint, show_static_field_print): Moved
9725 here from cp-valprint.c.
9726 (boolean_option_def, uinteger_option_def)
9727 (value_print_option_defs, make_value_print_options_def_group):
9728 New. Use gdb::option::add_setshow_cmds_for_options to install
9729 "set print elements", "set print null-stop", "set print repeats",
9730 "set print pretty", "set print union", "set print array", "set
9731 print address", "set print symbol", "set print array-indexes".
9732 * valprint.h: Include <string> and "cli/cli-option.h".
9733 (make_value_print_options_def_group): Declare.
9734 (print_value): Change parameter type from format_data pointer to
9735 value_print_options reference.
9736 (print_command_completer): Declare.
9737
9d0faba9
PA
97382019-06-13 Pedro Alves <palves@redhat.com>
9739
9740 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
9741 (COMMON_SFILES): Add maint-test-settings.c.
9742 * cli/cli-decode.c (boolean_enums): New global, factored out from
9743 ...
9744 (add_setshow_boolean_cmd): ... here.
9745 * cli/cli-decode.h (boolean_enums): Declare.
9746 * cli/cli-option.c: New file.
9747 * cli/cli-option.h: New file.
9748 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
9749 factored out from ...
9750 (parse_cli_boolean_value(const char *)): ... this.
9751 (is_unlimited_literal): Change parameter type to pointer to
9752 pointer. Adjust and advance ARG pointer.
9753 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
9754 (parse_cli_var_enum): New, factored out from ...
9755 (do_set_command): ... this. Adjust.
9756 * cli/cli-setshow.h (parse_cli_boolean_value)
9757 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
9758 (parse_cli_var_enum): Declare.
9759 * cli/cli-utils.c: Include "cli/cli-option.h".
9760 (get_ulongest): New.
9761 * cli/cli-utils.h (get_ulongest): Declare.
9762 (check_for_argument): New overloads.
9763 * maint-test-options.c: New file.
9764
2c722807
PA
97652019-06-13 Pedro Alves <palves@redhat.com>
9766
9767 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
9768 parse a range if "-" is at the end of the string.
9769
dee7b4c8
PA
97702019-06-13 Pedro Alves <palves@redhat.com>
9771
9772 * cli/cli-setshow.c (parse_auto_binary_operation)
9773 (parse_cli_boolean_value): Don't allow "o".
9774
dca0f6c0
PA
97752019-06-13 Pedro Alves <palves@redhat.com>
9776
9777 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
9778 * NEWS: Mention maint test-settings KIND.
9779 * maint-test-settings.c: New file.
9780
597bf39d
PA
97812019-06-13 Pedro Alves <palves@redhat.com>
9782
9783 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
9784 completer.
9785 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
9786 "set" completers.
9787
48c410fb
PA
97882019-06-13 Pedro Alves <palves@redhat.com>
9789
9790 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
9791 after item.
9792
93bcb043
PA
97932019-06-13 Pedro Alves <palves@redhat.com>
9794
9795 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
9796
cbba3ecd
PA
97972019-06-13 Pedro Alves <palves@redhat.com>
9798
9799 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
9800 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
9801 call.
9802 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
9803 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
9804 calls.
9805 (check_for_argument): Skip spaces after argument.
9806
b9a3f842
PA
98072019-06-13 Pedro Alves <palves@redhat.com>
9808
9809 * thread.c (thread_apply_command): Adjust TID parsing.
9810 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
9811 detected before end of string.
9812 (tid_is_in_list): Error out if LIST is invalid.
9813
3844e605
PA
98142019-06-13 Pedro Alves <palves@redhat.com>
9815
9816 * completer.c (complete_line_internal_1): Rewind completion word
9817 point.
9818 (completion_tracker::advance_custom_word_point_by): Change
9819 parameter type to int.
9820 * completer.h (completion_tracker::advance_custom_word_point_by):
9821 Likewise.
9822
00b56dbe
PA
98232019-06-13 Pedro Alves <palves@redhat.com>
9824
9825 * completer.c (advance_to_completion_word): Handle delimiters.
9826
d106773e
PA
98272019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
9828
9829 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
9830
08f10e02
TT
98312019-06-11 Tom Tromey <tom@tromey.com>
9832
9833 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
9834 (xmalloc_failed): Move to alloc.c.
9835 * alloc.c: New file.
9836 * Makefile.in (COMMON_SFILES): Add alloc.c.
9837
1c7fe951
TT
98382019-06-11 Tom Tromey <tom@tromey.com>
9839
9840 * nat/linux-waitpid.c: Don't include server.h.
9841 (linux_debug): Remove.
9842 (my_waitpid): Update.
9843
89549d7f
TT
98442019-06-11 Tom Tromey <tromey@adacore.com>
9845
9846 * infcall.c (_initialize_infcall): Remove trailing newline from
9847 help.
9848 * user-regs.c (_initialize_user_regs): Remove trailing newline
9849 from help.
9850 * typeprint.c (_initialize_typeprint): Remove trailing newline
9851 from help.
9852 * reverse.c (_initialize_reverse): Remove trailing newlines from
9853 help.
9854 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
9855 from help.
9856 * language.c (add_set_language_command): Remove trailing newline
9857 from help.
9858 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
9859 help.
9860 * disasm.c (_initialize_disasm): Remove trailing newline from
9861 help.
9862 * top.c (init_main): Remove trailing newline from help.
9863 * interps.c (_initialize_interpreter): Remove trailing newline
9864 from help.
9865 * btrace.c (_initialize_btrace): Remove trailing newlines from
9866 help.
9867 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
9868 from help.
9869 * python/python.c (_initialize_python): Remove trailing newline
9870 from help.
9871 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
9872 help.
9873 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
9874 from help. Reformat some text.
9875 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
9876 from help.
9877 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
9878 newline from help.
9879
86108c13
TT
98802019-06-11 Tom Tromey <tromey@adacore.com>
9881
9882 * darwin-nat.c (darwin_decode_exception_message)
9883 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
9884
a7067863
AB
98852019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
9886
9887 * valops.c (value_slice): Check for not allocated or not
9888 associated values.
9889
9ab08412
TV
98902019-06-10 Tom de Vries <tdevries@suse.de>
9891
9892 PR gdb/24618
9893 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
9894 sure an empty slot (defined by a 32-bit zero pair) is recognized as
9895 invalid.
9896
f19e22e9
TV
98972019-06-10 Tom de Vries <tdevries@suse.de>
9898
9899 PR gdb/24611
9900 * linespec.c (linespec_lexer_lex_string): Remove incorrect
9901 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
9902
e99f9db0
TV
99032019-06-10 Tom de Vries <tdevries@suse.de>
9904
9905 PR symtab/24545
9906 * symtab.c (struct demangled_name_entry): Add language field.
9907 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
9908 static minimal symbol". Set and use language field.
9909
9bf7038b
TT
99102019-06-10 Tom Tromey <tromey@adacore.com>
9911
9912 * ada-lang.c (_initialize_ada_language): Update help text.
9913
422186a9
TT
99142019-06-10 Tom Tromey <tromey@adacore.com>
9915
9916 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
9917 with a newline.
9918 * guile/guile.c (handle_boot_error): Don't end warning with a
9919 newline.
9920 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
9921 warning with a newline.
9922 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
9923 newline.
9924 (s12z_frame_cache): Likewise.
9925 * dwarf-index-cache.c (index_cache::store): Don't end warning with
9926 a newline.
9927 * solib-svr4.c (disable_probes_interface): Don't end warning with
9928 a newline.
9929 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
9930 newline.
9931 * python/python.c (do_finish_initialization): Don't end warning
9932 with a newline.
9933
25ce02ee
TT
99342019-06-10 Tom Tromey <tom@tromey.com>
9935
9936 * python/py-breakpoint.c (gdbpy_breakpoint_created)
9937 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
9938 gdbpy_enter.
9939
caa429d8
TT
99402019-06-10 Tom Tromey <tromey@adacore.com>
9941
9942 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
9943 data.
9944 (elf_new_init): Don't call stabsread_new_init.
9945 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
9946 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
9947 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
9948
81873cc8
TV
99492019-06-10 Tom de Vries <tdevries@suse.de>
9950
9951 PR symtab/16264
9952 PR symtab/24517
9953 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
9954
4fa0265e
РИ
99552019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
9956
9957 * source.c (find_and_open_source): Also rewrite relative file
9958 names.
9959
1a3da2cd
AB
99602019-04-26 Amos Bird <amosbird@gmail.com>
9961
9962 * annotate.c (annotate_thread_exited): Add "thread-exited"
9963 annotation.
9964
3847a7bf
TT
99652019-06-06 Tom Tromey <tromey@adacore.com>
9966
9967 * maint.h (class scoped_command_stats): Use
9968 DISABLE_COPY_AND_ASSIGN.
9969 <print_time>: New method.
9970 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
9971 print_time.
9972 (scoped_command_stats::print_time): New method.
9973
312617a3
AB
99742019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
9975
9976 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
9977 instructions of lengths 6 or 8 bytes.
9978
b02f78f9
PA
99792019-06-04 Pedro Alves <palves@redhat.com>
9980
9981 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
9982
9983 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
9984 * breakpoint.c (condition_completer): Likewise.
9985 * cli/cli-dump.c (scan_expression): Likewise.
9986 * common/filestuff.c (mkdir_recursive): Likewise.
9987 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
9988 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
9989 (gdb_abspath): Likewise.
9990 * compile/compile-cplus-types.c
9991 (compile_cplus_instance::decl_name): Likewise.
9992 * completer.c (complete_explicit_location):
9993 (signal_completer, reg_or_group_completer_1): Likewise.
9994 * cp-support.c (cp_remove_params_if_any): Likewise.
9995 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
9996 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
9997 * infcmd.c (strip_bg_char): Likewise.
9998 * linespec.c (copy_token_string): Likewise.
9999 * mi/mi-main.c (output_cores): Likewise.
10000 * psymtab.c (psymtab_search_name):
10001 * symfile.c (test_set_ext_lang_command): Likewise.
10002 * target.c (target_fileio_read_stralloc): Likewise.
10003 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
10004 * value.c (complete_internalvar): Likewise.
10005
e1f2e1a2
CB
100062019-06-04 Christian Biesinger <cbiesinger@google.com>
10007
10008 Add objfile property to gdb.Type.
d3238f7d
PA
10009 * NEWS: Mention Python API addition.
10010 * python/py-type.c (typy_get_objfile): New method.
e1f2e1a2 10011
e664d728
PW
100122019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10013
10014 * NEWS: Mention the new set|show style [title|highlight].
10015 Mention changes to "show style", "help" and "apropos".
10016
66d8c862
PW
100172019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10018
10019 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
10020 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
10021 instead of print_help_for_command.
10022 (print_doc_of_command): New function.
10023 (help_list): Add 'apropos -v word' suggestion.
10024 (print_help_for_command): Style the command name using title style.
10025 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
10026 (_initialize_cli_cmds): Describe -v in apropos_command help.
10027
9303eb2f
PW
100282019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10029
10030 * cli/cli-style.h (cli_style_option): Add name in constructor,
10031 add m_name class member, add constructor with intensity,
10032 add name class function.
10033 (cli_style_option::add_setshow_commands): Remove name argument.
10034 (highlight_style, title_style): New styles.
10035 * cli/cli-style.c (do_show): New function that shows a style
10036 characteristic styling the style name with itself.
10037 (set_style_name): New function.
10038 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
10039 Update all callers according to the changes in cli/cli-style.h.
10040 * utils.h (fputs_highlighted): New function.
10041 * utils.c (fputs_highlighted): Likewise.
10042
e2c52041
PW
100432019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10044
10045 * NEWS: Mention new pipe command and new convenience variables.
10046
947d3946
PW
100472019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10048
10049 * cli/cli-cmds.c (pipe_command): New function.
10050 (_initialize_cli_cmds): Call add_com for pipe_command.
10051 Define | as an alias for pipe.
10052 (exit_status_set_internal_vars): New function.
10053 (shell_escape): Call exit_status_set_internal_vars.
10054 cli/cli-decode.c (find_command_name_length): Recognize | as
10055 a single character command.
10056
b8fd0918
PW
100572019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10058
10059 * gdbcmd.h (execute_command_to_ui_file): New declaration.
10060 top.c (execute_command_to_ui_file): New function, mostly a copy
10061 of execute_command_to_string.
10062 (execute_command_to_string): Implement by calling
10063 execute_command_to_ui_file.
10064
68bb5386
PW
100652019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10066
10067 * top.h (saved_command_line): Remove declaration.
10068 * top.c (previous_saved_command_line, previous_repeat_arguments):
10069 New variables.
10070 (saved_command_line): Make static, define together with other
10071 'repeat variables'.
10072 (dont_repeat): Clear repeat_arguments.
10073 (repeat_previous, get_saved_command_line, save_command_line):
10074 New functions.
10075 (gdb_init): Initialize saved_command_line
10076 and previous_saved_command_line.
10077 * main.c (captured_main_1): Remove saved_command_line initialization.
10078 * event-top.c (handle_line_of_input): Update to use
10079 the new 'repeat' related functions instead of direct access to
10080 saved_command_line.
10081 * command.h (repeat_previous, get_saved_command_line,
10082 save_command_line): New declarations.
10083 (dont_repeat): Add comment.
10084
bfcdb852
TT
100852019-05-30 Tom Tromey <tromey@adacore.com>
10086
10087 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
10088 Fix comment.
10089 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
10090
0ef209f2
JV
100912019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
10092
10093 PR cli/24587
10094 * completer.c (complete): Initialize variable word.
10095
955b06fa
SDJ
100962019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
10097
10098 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
10099 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
10100 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
10101 'body' is NULL to the outter 'if', protecting the '!is_define'
10102 situation as well.
10103
fa9c3fa0
TT
101042019-05-29 Tom Tromey <tromey@adacore.com>
10105
10106 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
10107 (dwarf_unknown): New function.
10108 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
10109 (dwarf_type_encoding_name): Use dwarf_unknown.
10110
4330d61d
TT
101112019-05-29 Tom Tromey <tromey@adacore.com>
10112
10113 PR c++/20020:
10114 * cp-valprint.c (cp_print_value_fields): Call
10115 cp_print_static_field inside "try".
10116
33a6bc35
TT
101172019-05-29 Tom Tromey <tromey@adacore.com>
10118
10119 * inflow.c (struct terminal_info): Add default operator=.
10120 * configure: Rebuild.
10121 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
10122 -Wdeprecated-copy-dtor, -Wredundant-move.
10123
000439d5
TT
101242019-05-29 Tom Tromey <tromey@adacore.com>
10125
10126 * NEWS: Add entry.
10127 * infcmd.c (print_return_value_1): Handle finish_print
10128 option.
10129 (show_print_finish): New function.
10130 (_initialize_infcmd): Add "set/show print finish" commands.
10131 * valprint.c (user_print_options): Initialize new member.
10132 * valprint.h (struct value_print_options) <finish_print>: New
10133 member.
10134
c0e70c62
TT
101352019-05-28 Tom Tromey <tromey@adacore.com>
10136
10137 * ada-lang.c (ada_remove_Xbn_suffix)
10138 (find_old_style_renaming_symbol)
10139 (parse_old_style_renaming): Remove.
10140 (ada_find_renaming_symbol): Don't call
10141 find_old_style_renaming_symbol.
10142 (ada_is_renaming_symbol): Rename from
10143 ada_find_renaming_symbol. Remove "block" parameter. Return
10144 bool. Now static.
10145 (ada_read_var_value): Update and simplify.
10146 * ada-exp.y (write_var_or_type): Remove old code.
10147
766f8836
AH
101482019-05-28 Alan Hayward <alan.hayward@arm.com>
10149
68255adc 10150 PR gdb/25010
766f8836
AH
10151 * event-top.c: Remove include comment.
10152 * inflow.c (class scoped_ignore_sigttou): Move from here...
10153 * inflow.h (class scoped_ignore_sigttou): ...to here.
10154 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
10155 * top.c: Remove include comment.
10156
eb41253a
TT
101572019-05-27 Tom Tromey <tom@tromey.com>
10158
10159 * NEWS: Fix typo.
10160
4ca51187
TT
101612019-05-22 Tom Tromey <tromey@adacore.com>
10162
10163 * target.c (target_follow_exec): Constify parameter.
10164 * target-delegates.c: Rebuild.
10165 * remote.c (remote_target::follow_exec): Constify parameter.
10166 * infrun.c (follow_exec): Constify parameter.
10167 * target.h (struct target_ops) <follow_exec>: Constify parameter.
10168 (target_follow_exec): Likewise.
10169
8fca4da0
AH
101702019-05-22 Alan Hayward <alan.hayward@arm.com>
10171
10172 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
10173 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
10174
b7060614
AH
101752019-05-22 Alan Hayward <alan.hayward@arm.com>
10176
10177 * NEWS: Add debugredirect and testsuite sections.
10178
0a5954bd
SC
101792019-05-22 Simon Cook <simon.cook@embecosm.com>
10180
10181 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
10182 target descriptions using exclusively floating point register name
10183 aliases.
10184
dc42e902
AB
101852019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
10186
10187 PR gdb/18644:
10188 * f-lang.c (build_fortran_types): Handle the case where
10189 gdbarch_floatformat_for_type returns a nullptr.
10190
fb7806c7
TV
101912019-05-21 Tom de Vries <tdevries@suse.de>
10192
10193 PR cli/24587
10194 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
10195
34d11c68
AB
101962019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
10197
10198 PR gdb/18644:
10199 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
10200 16-byte floats.
10201 * i386-tdep.c (i386_floatformat_for_type): Use
10202 floatformats_ia64_quad for the 16-byte floating point component
10203 within a fortran 32-byte complex number.
10204
122cf0f2
AB
102052019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
10206
10207 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
10208 delete default constructor.
10209 (find_partial_die): Update to return const struct.
10210 (partial_die_parent_scope): Move variable declaration into scope
10211 of its use and change its type to auto.
10212 (guess_partial_die_structure_name): Likewise.
10213 (partial_die_info::fixup): Likewise.
10214
33d0e35a
TT
102152019-05-17 Tom Tromey <tromey@adacore.com>
10216
10217 * source.c (find_and_open_source): Remove cast.
10218
a45575b0
TT
102192019-05-17 Tom Tromey <tromey@adacore.com>
10220
10221 * annotate.c (annotate_source): Make "filename" const.
10222 * annotate.h (annotate_source): Use const.
10223
81f47ac2
AH
102242019-05-17 Alan Hayward <alan.hayward@arm.com>
10225
10226 * disasm.c (set_disassembler_options): Send errors to stderr.
10227
ca1285d1
AH
102282019-05-17 Alan Hayward <alan.hayward@arm.com>
10229
10230 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
10231 (cli_interp_base::set_logging): Check debug_redirect.
10232 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
10233 * cli/cli-logging.c (debug_redirect): Add static variable.
10234 (pop_output_files): Add default param.
10235 (handle_redirections): Print debug setting.
10236 (show_logging_command): Likewise.
10237 (_initialize_cli_logging): Add debugredirect command.
10238 * interps.c (current_interp_set_logging): Add debug_redirect
10239 parameter.
10240 * interps.h (set_logging): Add debug_redirect parameter.
10241 (current_interp_set_logging): Likewise.
10242 * mi/mi-common.h: Likewise.
10243 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
10244
102452019-05-17 Alan Hayward <alan.hayward@arm.com>
f3a09c80
AH
10246 Tom Tromey <tromey@adacore.com>
10247
10248 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
10249 directly.
10250 * cli/cli-interp.h (make_logging_output): Remove declaration.
10251 * cli/cli-logging.c (make_logging_output): Remove function.
10252 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
10253 directly.
10254 * ui-file.c (tee_file::tee_file): Remove bools.
10255 (tee_file::~tee_file): Remove deletes.
10256 * ui-file.h (tee_file): Remove bools.
10257
26648588
JV
102582019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
10259
10260 * mi/mi-cmds.h (mi_cmd_complete): New function.
10261 * mi/mi-main.c (mi_cmd_complete): Likewise.
10262 * mi/mi-cmds.c: Define new MI command -complete.
10263 * NEWS: Mention new -complete command.
10264
6e035501
JV
102652019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
10266
10267 * completer.h (complete): New function.
10268 * completer.c (complete): Likewise.
10269 * cli/cli-cmds.c: (complete_command): Update to use new complete()
10270 function defined in completer.h.
10271
7d0e2ece
JV
102722019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
10273
e79be6e5 10274 * MAINTAINERS (Write After Approval): Add myself.
7d0e2ece 10275
fb816e8b
TV
102762019-05-17 Tom de Vries <tdevries@suse.de>
10277
10278 PR gdb/24094
10279 * dwarf2read.c (struct cu_partial_die_info): New struct.
10280 (find_partial_die): Return cu_partial_die_info.
10281 (partial_die_parent_scope, guess_partial_die_structure_name)
10282 (partial_die_info::fixup): Handle new return type of find_partial_die.
10283
677052f2
SDJ
102842019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
10285
a1726c38 10286 PR breakpoints/24541
677052f2
SDJ
10287 * stap-probe.c (stap_parse_register_operand): Make "regname" an
10288 "std::string", simplifying the algorithm.
10289
f3da9116
SDJ
102902019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
10291
10292 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
10293 (stap_static_probe_ops::get_probes): Likewise.
10294
f1bb75ab
SDJ
102952019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
10296
10297 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
10298 '-')" and "else if".
10299 (stap_parse_single_operand): Join checks for
10300 "gdbarch_stap_parse_special_token_p" and
10301 "gdbarch_stap_parse_special_token" in the same "if" statement.
10302 Invert check when verifying for operation on register
10303 displacement.
10304
3ca58cde
SDJ
103052019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
10306
10307 * stap-probe.c (stap_get_opcode): Update comment.
10308 (stap_get_expected_argument_type): Likewise.
10309 (handle_stap_probe): Likewise.
10310
af2d9bee
SDJ
103112019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
10312
10313 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
10314 return type to 'bool'. Adjust comment. Use 'bool' when
10315 appropriate.
10316 (i386_stap_parse_special_token_three_arg_disp): Likewise.
10317 * stap-probe.c (stap_parse_argument_1): Likewise.
10318 (stap_is_operator): Likewise.
10319 (stap_is_generic_prefix): Likewise.
10320 (stap_is_register_prefix): Likewise.
10321 (stap_is_register_indirection_prefix): Likewise.
10322 (stap_is_integer_prefix): Likewise.
10323 (stap_generic_check_suffix): Likewise.
10324 (stap_check_integer_suffix): Likewise.
10325 (stap_check_register_suffix): Likewise.
10326 (stap_check_register_indirection_suffix): Likewise.
10327 (stap_parse_register_operand): Likewise.
10328 (stap_parse_single_operand): Likewise.
10329 (stap_parse_argument_1): Likewise.
10330 (stap_probe::get_argument_count): Likewise.
10331 (stap_is_operator): Likewise.
10332
61c9c421
TT
103332019-05-16 Tom Tromey <tromey@adacore.com>
10334
10335 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
10336 keyword to foreach.
10337
9ddc1af1
SM
103382019-05-15 Simon Marchi <simon.marchi@efficios.com>
10339
10340 * linux-thread-db.c (try_thread_db_load_1): Change return type
10341 to bool.
10342 (try_thread_db_load): Likewise.
10343 (try_thread_db_load_from_pdir_1): Likewise.
10344 (try_thread_db_load_from_pdir): Likewise.
10345 (try_thread_db_load_from_sdir): Likewise.
10346 (try_thread_db_load_from_dir): Likewise.
10347 (thread_db_load_search): Likewise.
10348 (has_libpthread): Likewise.
10349 (thread_db_load): Likewise.
10350
7bede828
SDJ
103512019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
10352
10353 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
10354 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
10355 NULL, and complain/return if that's the case.
10356
c5358db4
JD
103572019-05-15 John Darrington <john@darrington.wattle.id.au>
10358
10359 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
10360 (advance, posn, abstract_read_memory): New functions.
10361 [struct mem_read_abstraction]: New struct.
10362 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
10363
c408a94f
TT
103642019-05-14 Tom Tromey <tromey@adacore.com>
10365
10366 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
10367 value is not lval_memory.
10368
e7bd7fba
TT
103692019-05-14 Tom Tromey <tromey@adacore.com>
10370
10371 * solib.c (info_sharedlibrary_command): Style the file name.
10372
a6d0f249
AH
103732019-05-14 Alan Hayward <alan.hayward@arm.com>
10374
10375 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
10376 (aarch64_vnv_type): Likewise.
10377 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
10378 * common/tdesc.c: Likewise.
10379 * common/tdesc.h (enum tdesc_type_kind): Likewise.
10380 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
10381 * features/aarch64-fpu.xml: Add ieee half view.
10382 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
10383 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
10384 * gdbtypes.h (struct builtin_type): Likewise.
10385 (struct objfile_type): Likewise.
10386
66b8bb74
SM
103872019-05-12 Paul Naert <paul.naert@polymtl.ca>
10388
10389 * language.c (language_sniff_from_mangled_name): Fix "langauge"
10390 typo.
10391 * location.h (string_to_event_location): Likewise.
10392
21c219fd
JB
103932019-05-11 Joel Brobecker <brobecker@adacore.com>
10394
10395 GDB 8.3 released.
10396
13674803
SM
103972019-05-10 Simon Marchi <simon.marchi@efficios.com>
10398
10399 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
10400 New variable declaration.
10401 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
10402 New variable.
10403 (print_one_breakpoint): Use ui_out::test_flags and new global
10404 variable to compute use_fixed_output.
10405 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
10406 Remove.
10407 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
10408 (mi_multi_location_breakpoint_output_fixed): Remove.
10409 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
10410 new variable.
10411 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
10412 fix_multi_location_breakpoint_output flag if version >= 3.
10413 * ui-out.h (enum ui_out_flag)
10414 <fix_multi_location_breakpoint_output>: New enumerator.
10415
a9eac7f9
SM
104162019-05-10 Simon Marchi <simon.marchi@efficios.com>
10417
10418 * contrib/cc-with-tweaks.sh: Validate dwz's work.
10419
71bed2db
TT
104202019-05-10 Tom Tromey <tromey@adacore.com>
10421
10422 * ada-lang.c (catch_ada_completer): New function.
10423 (_initialize_ada_language): Use it.
10424
24c54127
TT
104252019-05-10 Tom Tromey <tromey@adacore.com>
10426
10427 * thread.c (print_thread_info): Make "requested_threads" const.
10428 * gdbthread.h (print_thread_info): Make "requested_threads"
10429 const.
10430 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
10431 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
10432
7a102139
TT
104332019-05-08 Tom Tromey <tom@tromey.com>
10434
10435 * gdbtypes.c (objfile_type_data): Change type.
10436 (objfile_type, _initialize_gdbtypes): Update.
10437
924d79e2
TT
104382019-05-08 Tom Tromey <tom@tromey.com>
10439
10440 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
10441 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
10442 (_initialize_dwarf2_frame): Update.
10443
4c58e337
TT
104442019-05-08 Tom Tromey <tom@tromey.com>
10445
10446 * objc-lang.c (objc_objfile_data): Change type.
10447 (find_methods): Update.
10448 (_initialize_objc_lang): Remove.
10449
d772d2ab
TT
104502019-05-08 Tom Tromey <tom@tromey.com>
10451
10452 * stabsread.c (rs6000_builtin_type_data): Change type.
10453 (rs6000_builtin_type, _initialize_stabsread): Update.
10454
d11d83f4
TT
104552019-05-08 Tom Tromey <tom@tromey.com>
10456
10457 * mips-tdep.c (mips_pdr_data): Remove.
10458 (_initialize_mips_tdep): Update.
10459
9a73f0ad
TT
104602019-05-08 Tom Tromey <tom@tromey.com>
10461
10462 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
10463 (hppa_init_objfile_priv_data, read_unwind_info)
10464 (find_unwind_entry, _initialize_hppa_tdep): Update.
10465
8127a2fa
TT
104662019-05-08 Tom Tromey <tom@tromey.com>
10467
10468 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
10469 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
10470 on obstack.
10471 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
10472
91d3055d
TT
104732019-05-08 Tom Tromey <tom@tromey.com>
10474
10475 * mdebugread.c (basic_type_data): Change type.
10476 (basic_type, _initialize_mdebugread): Update.
10477
31930bd3
TT
104782019-05-08 Tom Tromey <tom@tromey.com>
10479
10480 * common/gdb_unique_ptr.h (struct noop_deleter): New.
10481
bdb3ed9e
TT
104822019-05-08 Tom Tromey <tom@tromey.com>
10483
10484 * nto-tdep.c (nto_inferior_data_reg): Change type.
10485 (nto_inferior_data): Update.
10486 (nto_inferior_data_cleanup, nto_new_inferior_data)
10487 (_initialize_nto_tdep): Remove.
10488 * nto-tdep.h (struct nto_inferior_data): Add initializers.
10489
f37b313d
TT
104902019-05-08 Tom Tromey <tom@tromey.com>
10491
10492 * ada-lang.c (struct ada_inferior_data): Add initializers.
10493 (ada_inferior_data): Change type.
10494 (ada_inferior_data_cleanup): Remove.
10495 (get_ada_inferior_data, ada_inferior_exit)
10496 (struct ada_pspace_data): Add initializers, destructor.
10497 (ada_pspace_data_handle): Change type.
10498 (get_ada_pspace_data): Update.
10499 (ada_pspace_data_cleanup): Remove.
10500
24699405
TT
105012019-05-08 Tom Tromey <tom@tromey.com>
10502
10503 * coffread.c (struct coff_symfile_info): Add initializers.
10504 (coff_objfile_data_key): Move lower. Change type.
10505 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
10506 Update.
10507 (coff_free_info): Remove.
10508
d4e05d2f
TT
105092019-05-08 Tom Tromey <tom@tromey.com>
10510
10511 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
10512 (fbsd_pspace_data_handle): Move lower. Change type.
10513 (get_fbsd_pspace_data): Update.
10514 (fbsd_pspace_data_cleanup): Remove.
10515 (_initialize_fbsd_tdep): Update.
10516
14ef6690
TT
105172019-05-08 Tom Tromey <tom@tromey.com>
10518
10519 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
10520 (get_ada_tasks_pspace_data): Update.
10521 (ada_tasks_pspace_data_cleanup): Remove.
10522 (_initialize_tasks): Update.
10523 (ada_tasks_inferior_data_handle): Change type.
10524 (get_ada_tasks_inferior_data): Update.
10525 (ada_tasks_inferior_data_cleanup): Remove.
10526 (struct ada_tasks_pspace_data): Add initializers.
10527
814cf43a
TT
105282019-05-08 Tom Tromey <tom@tromey.com>
10529
10530 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
10531 * symfile-debug.c (debug_sym_get_probes): Change type.
10532 * stap-probe.c (handle_stap_probe):
10533 (stap_static_probe_ops::get_probes): Change type.
10534 * probe.h (class static_probe_ops) <get_probes>: Change type.
10535 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
10536 (parse_probes_in_pspace): Update.
10537 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
10538 Update.
10539 (any_static_probe_ops::get_probes): Change type.
10540 * elfread.c (elfread_data): New typedef.
10541 (probe_key): Change type.
10542 (elf_get_probes): Likewise. Update.
10543 (probe_key_free): Remove.
10544 (_initialize_elfread): Update.
10545 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
10546 Change type.
10547 (dtrace_process_dof_probe, dtrace_process_dof)
10548 (dtrace_static_probe_ops::get_probe): Change type.
10549
02dc647e
TT
105502019-05-08 Tom Tromey <tom@tromey.com>
10551
10552 * xcoffread.c (struct xcoff_symfile_info): Rename from
10553 coff_symfile_info. Add initializers.
10554 (xcoff_objfile_data_key): Move lower. Change type.
10555 (XCOFF_DATA): Rewrite.
10556 (xcoff_free_info): Remove.
10557 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
10558 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
10559 (xcoff_initial_scan): Update.
10560
09232438
TT
105612019-05-08 Tom Tromey <tom@tromey.com>
10562
10563 * solib-svr4.c (struct svr4_info): Add initializers and
10564 destructor.
10565 <probes_table>: Now an htab_up.
10566 (solib_svr4_pspace_data): Change type.
10567 (free_probes_table): Simplify.
10568 (~svr4_info): Rename from svr4_pspace_data_cleanup.
10569 (get_svr4_info, probes_table_htab_remove_objfile_probes)
10570 (probes_table_remove_objfile_probes, register_solib_event_probe)
10571 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
10572 (_initialize_svr4_solib): Update.
10573
7b4a314f
TT
105742019-05-08 Tom Tromey <tom@tromey.com>
10575
10576 * remote.c (remote_pspace_data): Change type.
10577 (remote_pspace_data_cleanup): Remove.
10578 (get_remote_exec_file, set_pspace_remote_exec_file)
10579 (_initialize_remote): Update.
10580
51d3063a
TT
105812019-05-08 Tom Tromey <tom@tromey.com>
10582
10583 * breakpoint.c (breakpoint_objfile_key): Change type.
10584 (get_breakpoint_objfile_data): Update.
10585 (free_breakpoint_objfile_data): Remove.
10586 (_initialize_breakpoint): Update.
10587
89fb8848
TT
105882019-05-08 Tom Tromey <tom@tromey.com>
10589
10590 * linux-tdep.c (struct linux_info): Add initializers.
10591 (linux_inferior_data): Move. Change type.
10592 (invalidate_linux_cache_inf): Update.
10593 (linux_inferior_data_cleanup): Remove.
10594 (get_linux_inferior_data, _initialize_linux_tdep): Update.
10595
e9b89e2d
TT
105962019-05-08 Tom Tromey <tom@tromey.com>
10597
10598 * auxv.c (auxv_inferior_data): Move. Change type.
10599 (auxv_inferior_data_cleanup): Remove.
10600 (invalidate_auxv_cache_inf): Rewrite.
10601 (get_auxv_inferior_data, _initialize_auxv): Update.
10602
8c42777c
TT
106032019-05-08 Tom Tromey <tom@tromey.com>
10604
10605 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
10606 (symfile_debug_objfile_data_key): Change type.
10607 (symfile_debug_installed, debug_qf_has_symbols)
10608 (debug_qf_find_last_source_symtab)
10609 (debug_qf_forget_cached_source_info)
10610 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
10611 (debug_qf_print_stats, debug_qf_dump)
10612 (debug_qf_expand_symtabs_for_function)
10613 (debug_qf_expand_all_symtabs)
10614 (debug_qf_expand_symtabs_with_fullname)
10615 (debug_qf_map_matching_symbols)
10616 (debug_qf_expand_symtabs_matching)
10617 (debug_qf_find_pc_sect_compunit_symtab)
10618 (debug_qf_map_symbol_filenames)
10619 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
10620 (debug_sym_new_init, debug_sym_init, debug_sym_read)
10621 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
10622 (debug_sym_read_linetable, debug_sym_relocate): Update.
10623 (symfile_debug_free_objfile): Remove.
10624 (install_symfile_debug_logging, _initialize_symfile_debug):
10625 Update.
10626
5bfd760d
TT
106272019-05-08 Tom Tromey <tom@tromey.com>
10628
10629 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
10630 allocate_on_obstack.
10631 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
10632 (get_dwarf2_per_objfile): Update.
10633 (set_dwarf2_per_objfile): Remove.
10634 (dwarf2_has_info, dwarf2_get_section_info): Update.
10635 (dwarf2_free_objfile): Remove.
10636 (_initialize_dwarf2_read): Update.
10637
e85e19b4
TT
106382019-05-08 Tom Tromey <tom@tromey.com>
10639
10640 * auto-load.c (struct auto_load_pspace_info): Add destructor and
10641 initializers.
10642 <unsupported_script_warning_printed,
10643 script_not_found_warning_printed>: Now bool.
10644 (auto_load_pspace_data): Change type.
10645 (~auto_load_pspace_info): Rename from
10646 auto_load_pspace_data_cleanup.
10647 (get_auto_load_pspace_data, init_loaded_scripts_info)
10648 (clear_section_scripts, maybe_print_unsupported_script_warning)
10649 (maybe_print_script_not_found_warning, _initialize_auto_load):
10650 Update.
10651
f6aa7436
TT
106522019-05-08 Tom Tromey <tom@tromey.com>
10653
10654 * objfiles.c (objfile_pspace_info): Add destructor and
10655 initializers.
10656 (objfiles_pspace_data): Change type.
10657 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
10658 (get_objfile_pspace_data): Update.
10659 (objfiles_bfd_data): Change type.
10660 (get_objfile_bfd_data): Update.
10661 (objfile_bfd_data_free, _initialize_objfiles): Remove.
10662
6ae614f6
TT
106632019-05-08 Tom Tromey <tom@tromey.com>
10664
10665 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
10666 Change type.
10667 (get_catch_syscall_inferior_data): Update.
10668 (catch_syscall_inferior_data_cleanup): Remove.
10669 (_initialize_break_catch_syscall): Update.
10670
6509b8eb
TT
106712019-05-08 Tom Tromey <tom@tromey.com>
10672
10673 * inflow.c (struct terminal_info): Add destructor and
10674 initializers.
10675 (inflow_inferior_data): Change type.
10676 (~terminal_info): Rename from inflow_inferior_data_cleanup.
10677 (get_inflow_inferior_data, inflow_inferior_exit)
10678 (swap_terminal_info, _initialize_inflow): Update.
10679
35632941
TT
106802019-05-08 Tom Tromey <tom@tromey.com>
10681
10682 * target-dcache.c (target_dcache_cleanup): Remove.
10683 (target_dcache_aspace_key): Change type.
10684 (target_dcache_init_p, target_dcache_invalidate)
10685 (target_dcache_get, target_dcache_get_or_init)
10686 (_initialize_target_dcache): Update.
10687 * dcache.h (struct dcache_deleter): New.
10688
3017b94d
TT
106892019-05-08 Tom Tromey <tom@tromey.com>
10690
10691 * symtab.c (struct symbol_cache): Add destructor and
10692 initializers.
10693 (symbol_cache_key): Move. Change type.
10694 (make_symbol_cache, free_symbol_cache): Remove.
10695 (get_symbol_cache): Update.
10696 (symbol_cache_cleanup): Remove.
10697 (ALL_PSPACES, symbol_cache_flush)
10698 (maintenance_print_symbol_cache)
10699 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
10700 Update.
10701
a32ad8c5
TT
107022019-05-08 Tom Tromey <tom@tromey.com>
10703
10704 * symtab.c (struct main_info): Add destructor and initializers.
10705 (main_progspace_key): Move. Change type.
10706 (get_main_info): Update.
10707 (main_info_cleanup): Remove.
10708 (_initialize_symtab): Update.
10709
5f6e90a0
TT
107102019-05-08 Tom Tromey <tom@tromey.com>
10711
10712 * registry.h (DECLARE_REGISTRY): Define the _key class.
10713
1bd0c6e4
AB
107142019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
10715
10716 * NEWS: Merge two 'New commands' sections.
10717
2228ef77
XR
107182019-05-08 Joel Brobecker <brobecker@adacore.com>
10719
10720 * ada-valprint.c (ada_val_print_gnat_array): Remove language
10721 parameter and use Ada language definition instead.
10722 (ada_val_print_ptr): Remove unused language parameter.
10723 (ada_val_print_num): Remove language parameter and use Ada language
10724 definition instead.
10725 (ada_val_print_enum, ada_val_print_flt): Remove unused language
10726 parameter.
10727 (ada_val_print_struct_union, ada_val_print_ref): Remove language
10728 parameter and use Ada language definition instead.
10729 (ada_val_print_1): Update all ada_val_print_xxx calls.
10730 Remove language parameter.
10731 (ada_val_print): Update ada_val_print_1 call.
10732
60fcc1c3
TT
107332019-05-08 Tom Tromey <tromey@adacore.com>
10734
10735 * remote.c (remote_hw_watchpoint_limit)
10736 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
10737 Now static.
10738
ed2b7c17
TT
107392019-05-08 Tom Tromey <tromey@adacore.com>
10740
10741 * maint.c (_initialize_maint_cmds): Move initialization code to
10742 remote.c.
10743 (watchdog, show_watchdog): Move to remote.c.
10744 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
10745 "watchdog" static.
10746 (_initialize_remote): Move initialization code from maint.c.
10747 * defs.h (watchdog): Don't declare.
10748
b0be6c91
TT
107492019-05-08 Tom Tromey <tromey@adacore.com>
10750
10751 * tui/tui-interp.c: Include main.h.
10752 * interps.c: Include main.h.
10753 * main.h (interpreter_p): Declare.
10754 * defs.h (interpreter_p): Don't declare.
10755
587ee17b
TT
107562019-05-08 Tom Tromey <tromey@adacore.com>
10757
10758 * dwarf2loc.c: Include dwarf2read.h.
10759 * defs.h (read_unsigned_leb128): Don't declare.
10760 * dwarf2read.h (read_unsigned_leb128): Declare.
10761
ca1df239
TT
107622019-05-08 Tom Tromey <tromey@adacore.com>
10763
10764 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
10765 method.
10766
99f20f08
TT
107672019-05-08 Tom Tromey <tromey@adacore.com>
10768
10769 * utils.c (fputs_maybe_filtered): Reset style after paging, even
10770 when no wrap column is set.
10771
80e55b13
TT
107722019-05-08 Tom Tromey <tromey@adacore.com>
10773
10774 * c-lang.c (c_get_string): Handle non-C-style arrays.
10775
9d3421af
TT
107762019-05-08 Tom Tromey <tromey@adacore.com>
10777
10778 * typeprint.c (print_offset_data::update): Print the bit offset,
10779 not the number of bits remaining.
10780
844333e2
TT
107812019-05-08 Tom Tromey <tromey@adacore.com>
10782
10783 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
10784 padding at end of comment.
10785
988915ee
TT
107862019-05-08 Tom Tromey <tromey@adacore.com>
10787
10788 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
10789 Compare main types.
10790
26bfd823
TT
107912019-05-06 Tom Tromey <tom@tromey.com>
10792
10793 * common/scoped_mmap.c: Include common-defs.h.
10794 * common/scoped_mmap.h: Don't include config.h.
10795
89055eaa
TT
107962019-05-04 Tom Tromey <tom@tromey.com>
10797
10798 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
10799 (struct aarch64_call_info): Add initializers.
10800 <si>: Now a std::vector.
10801 (pass_on_stack, aarch64_push_dummy_call): Update.
10802
5da01df5
TT
108032019-05-04 Simon Marchi <simon.marchi@efficios.com>
10804 Tom Tromey <tom@tromey.com>
10805
10806 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
10807 (ppc_threads): Now a std::vector. Now static.
10808 (hwdebug_find_thread_points_by_tid)
10809 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
10810 Update.
10811
fbdf05a1
TT
108122019-05-04 Tom Tromey <tom@tromey.com>
10813
10814 * arc-tdep.c (arc_tdesc_init): Return bool.
10815
06d16ec9
TT
108162019-05-04 Tom Tromey <tom@tromey.com>
10817
10818 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
10819 Use gdb_assert_not_reached.
10820
9c056022
TT
108212019-05-04 Tom Tromey <tom@tromey.com>
10822
10823 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
10824 "false".
10825
fa9c2a59
TT
108262019-05-04 Tom Tromey <tom@tromey.com>
10827
10828 * arc-tdep.c (arc_tdesc_init): Use bool.
10829
e2eb806a
TT
108302019-05-04 Tom Tromey <tom@tromey.com>
10831
10832 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
10833
6fe87677
TT
108342019-05-04 Tom Tromey <tom@tromey.com>
10835
10836 * cli/cli-cmds.c (valid_command_p): Return bool.
10837
7f008c9e
TT
108382019-05-04 Tom Tromey <tom@tromey.com>
10839
10840 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
10841 * command.h (valid_user_defined_cmd_name_p): Channge return type.
10842
b6484282
RT
108432019-05-04 Raul Tambre <raul@tambre.ee>
10844
10845 * python/lib/gdb/prompt.py (_ExtendedPrompt)
10846 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
10847 operator for comparison.
10848
af97b416
TT
108492019-05-04 Tom Tromey <tom@tromey.com>
10850
10851 * psymtab.c (psymbol_name_matches, match_partial_symbol)
10852 (lookup_partial_symbol, print_partial_symbols)
10853 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
10854 (psymbol_compare): Update.
10855 (add_psymbol_to_bcache): Clear the entire psymbol.
10856 (maintenance_check_psymtabs): Update.
10857 * psympriv.h (struct partial_symbol): Don't derive from
10858 general_symbol_info.
10859 <obj_section, unrelocated_address, address,
10860 set_unrelocated_address>: Update.
10861 <ginfo>: New member.
10862 * dwarf-index-write.c (write_psymbols, debug_names::insert)
10863 (debug_names::write_psymbols): Update.
10864
9d6d4be8
TV
108652019-05-04 Tom de Vries <tdevries@suse.de>
10866
10867 * contrib/cc-with-tweaks.sh: Support -n arg.
10868
66452beb
PW
108692019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10870
10871 * corelow.c (core_target::detach): Ensure frame cache and
10872 register caches are cleared.
10873 inferior.c (exit_inferior_1): Likewise.
10874
bde09ab7
TT
108752019-05-03 Sandra Loosemore <sandra@codesourcery.com>
10876 Tom Tromey <tom@tromey.com>
10877
10878 * dictionary.c (collate_pending_symbols_by_language): Remove
10879 "struct" from foreach.
10880 * symtab.c (lookup_global_symbol_from_objfile)
10881 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
10882 foreach.
10883 * ser-tcp.c (net_open): Remove "struct" from foreach.
10884 * objfiles.c (objfile_relocate, objfile_rebase)
10885 (objfile_has_symbols): Remove "struct" from foreach.
10886 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
10887 from foreach.
10888 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
10889 foreach.
10890 * darwin-nat.c (thread_info_from_private_thread_info): Remove
10891 "struct" from foreach.
10892 * ada-lang.c (create_excep_cond_exprs)
10893 (ada_exception_catchpoint_cond_string): Remove "struct" from
10894 foreach.
10895
222a8d25
TT
108962019-05-03 Tom Tromey <tromey@adacore.com>
10897
10898 * ada-exp.y (convert_char_literal): Check suffix of each
10899 enumerator.
10900
fcd60b84
DP
109012019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
10902
10903 PR ada/21406:
10904 * ada-exp.y (yywrap): Don't define.
10905 * ada-lex.l (%option): Add noyywrap
10906 (yywrap): Remove.
10907
5f2459c2
EZ
109082019-05-03 Eli Zaretskii <eliz@gnu.org>
10909
353ea2d1
EZ
10910 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
10911 _WIN32_WINNT to the XP level, unless already defined to a higher
10912 level.
10913
10914 * unittests/parse-connection-spec-selftests.c:
10915 * ser-tcp.c:
10916 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
10917 override.
10918
5f2459c2
EZ
10919 * symfile.c (find_separate_debug_file): Remove colon from the
10920 drive spec of DOS/Windows file names of the target, so that the
10921 file name produced from DEBUGDIR and the target's directory will
10922 be valid on DOS/Windows systems.
10923
80062eb9
AB
109242019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
10925
10926 * rust-lang.c (val_print_struct): Handle printing structures
10927 containing strings.
10928
b8c05e85
TT
109292019-05-02 Tom Tromey <tromey@adacore.com>
10930
10931 * valarith.c (_initialize_valarith): Remove.
10932
4504bbde
TT
109332019-05-01 Tom Tromey <tromey@adacore.com>
10934
10935 * ada-lang.c (ada_value_primitive_field): Treat more fields as
10936 bitfields.
10937
d48e62f4
TT
109382019-05-01 Tom Tromey <tromey@adacore.com>
10939
10940 * ada-lang.c (ada_value_assign): Correctly compute starting offset
10941 for big-endian copies.
10942
15f18d14
AT
109432019-04-30 Ali Tamur <tamur@google.com>
10944 * gdb/dwarf2read.c (read_3_bytes): New declaration.
10945 (read_attribute_value): Added DW_FORM_strx1-4 cases.
10946 (read_3_bytes): New function.
10947
ab4ee614
JB
109482019-04-30 Joel Brobecker <brobecker@adacore.com>
10949
10950 * windows-nat.c (main_thread_id): Delete.
10951 (handle_output_debug_string): Replace main_thread_id by
10952 current_event.dwThreadId.
10953 (fake_create_process): Likewise.
10954 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
10955 Do not set main_thread_id.
10956 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
10957 current_event.dwThreadId.
10958 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
10959
8ed5b76e
JB
109602019-04-30 Joel Brobecker <brobecker@adacore.com>
10961
10962 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
10963 Use current_event.dwThreadId instead of main_thread_id.
10964
2ff0a947
TT
109652019-04-30 Tom Tromey <tromey@adacore.com>
10966
10967 * ada-lang.c (ada_lookup_simple_minsyms): New function.
10968 (create_excep_cond_exprs): Iterate over program spaces.
10969 (ada_exception_catchpoint_cond_string): Examine all minimal
10970 symbols for exception types.
10971
a776957c
TT
109722019-04-30 Tom Tromey <tromey@adacore.com>
10973
10974 PR c++/24470:
10975 * dwarf2read.c (process_structure_scope): Handle case where type
10976 has template parameters but no symbol was created.
10977
bc68014d
AB
109782019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10979 Chris January <chris.january@arm.com>
10980
10981 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
10982 qualifier.
10983 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
10984
f1fdc960
AB
109852019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10986
10987 * f-typeprint.c (f_print_type): Update rules for printing
10988 whitespace.
10989 (f_type_print_varspec_suffix): Likewise.
10990
bf7a4de1
AB
109912019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10992 Chris January <chris.january@arm.com>
10993
10994 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
10995 function arguments.
10996
bbe75b9d
AB
109972019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10998
10999 * f-lang.c (build_fortran_types): Change name of void type to
11000 lower case.
11001 * f-typeprint.c (f_type_print_base): Print the name of the void
11002 type, rather than a fixed string.
11003 * f-valprint.c (f_decorations): Use lower case void string.
11004
1db455a7
AB
110052019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
11006 Chris January <chris.january@arm.com>
11007
11008 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
11009 types for Fortran.
11010
b6d03bb2
AB
110112019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
11012 Chris January <chris.january@arm.com>
11013 David Lecomber <david.lecomber@arm.com>
11014
11015 * f-exp.y (BINOP_INTRINSIC): New token.
11016 (exp): New parser rule handling BINOP_INTRINSIC.
11017 (f77_keywords): Add new builtin procedures.
11018 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
11019 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
11020 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
11021 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
11022 (print_unop_subexp_f): New function.
11023 (print_binop_subexp_f): New function.
11024 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
11025 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
11026 (dump_subexp_body_f): Likewise.
11027 (operator_check_f): Likewise.
11028 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
11029 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
11030
83228e93
AB
110312019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
11032
11033 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
11034 UNOP_KIND.
11035 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
11036 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
11037 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
11038 (operator_length_f): New fuction.
11039 (print_subexp_f): New function.
11040 (op_name_f): New function.
11041 (dump_subexp_body_f): New function.
11042 (operator_check_f): New function.
11043 (exp_descriptor_f): Replace standard expression handling functions
11044 with new functions.
11045 * gdb/fortran-operator.def: New file.
11046 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
11047 * gdb/std-operator.def: Remove UNOP_KIND.
11048
6fdcd7cc
AB
110492019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
11050
11051 * std-operator.def: Remove unbalanced, stray double quote
11052 character.
11053
2e62ab40
AB
110542019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
11055 Chris January <chris.january@arm.com>
11056 Daniel Everett <daniel.everett@arm.com>
11057 Nick Forrington <nick.forrington@arm.com>
11058 Richard Bunt <richard.bunt@arm.com>
11059
11060 * cp-valprint.c (cp_print_value_fields): Allow an additional level
11061 of depth when printing anonymous structs or unions.
11062 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
11063 Don't print either the top-level value, or the children if the
11064 max-depth is exceeded.
11065 (ppscm_print_children): When printing the key of a map, allow one
11066 extra level of depth.
11067 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
11068 print either the top-level value, or the children if the max-depth
11069 is exceeded.
11070 (print_children): When printing the key of a map, allow one extra
11071 level of depth.
11072 * python/py-value.c (valpy_format_string): Add max_depth keyword.
11073 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
11074 (user_print_options): Initialise max_depth field.
11075 (val_print_scalar_or_string_type_p): New function.
11076 (val_print): Check to see if the max depth has been reached.
11077 (val_print_check_max_depth): Define new function.
11078 (show_print_max_depth): New function.
11079 (_initialize_valprint): Add 'print max-depth' option.
11080 * valprint.h (struct value_print_options) <max_depth>: New field.
11081 (val_print_check_max_depth): Declare new function.
11082 * NEWS: Document new feature.
11083
4be290b2
AB
110842019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
11085
11086 * ada-lang.c (ada_language_defn): Initialise new field.
11087 * c-lang.c (c_is_string_type_p): New function.
11088 (c_language_defn): Initialise new field.
11089 (cplus_language_defn): Initialise new field.
11090 (asm_language_defn): Initialise new field.
11091 (minimal_language_defn): Initialise new field.
11092 * c-lang.h (c_is_string_type_p): Declare new function.
11093 * d-lang.c (d_language_defn): Initialise new field.
11094 * f-lang.c (f_is_string_type_p): New function.
11095 (f_language_defn): Initialise new field.
11096 * go-lang.c (go_is_string_type_p): New function.
11097 (go_language_defn): Initialise new field.
11098 * language.c (default_is_string_type_p): New function.
11099 (unknown_language_defn): Initialise new field.
11100 (auto_language_defn): Initialise new field.
11101 * language.h (struct language_defn) <la_is_string_type_p>: New
11102 member variable.
11103 (default_is_string_type_p): Declare new function.
11104 * m2-lang.c (m2_language_defn): Initialise new field.
11105 * objc-lang.c (objc_language_defn): Initialise new field.
11106 * opencl-lang.c (opencl_language_defn): Initialise new field.
11107 * p-lang.c (pascal_is_string_type_p): New function.
11108 (pascal_language_defn): Initialise new field.
11109 * rust-lang.c (rust_is_string_type_p): New function.
11110 (rust_language_defn): Initialise new field.
11111
721b08c6
AB
111122019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
11113
11114 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
11115 New field.
11116 * ada-lang.c (ada_language_defn): Initialise new field.
11117 * c-lang.c (c_language_defn): Likewise.
11118 (cplus_language_defn): Likewise.
11119 (asm_language_defn): Likewise.
11120 (minimal_language_defn): Likewise.
11121 * d-lang.c (d_language_defn): Likewise.
11122 * f-lang.c (f_language_defn): Likewise.
11123 * go-lang.c (go_language_defn): Likewise.
11124 * language.c (unknown_language_defn): Likewise.
11125 (auto_language_defn): Likewise.
11126 * m2-lang.c (m2_language_defn): Likewise.
11127 * objc-lang.c (objc_language_defn): Likewise.
11128 * opencl-lang.c (opencl_language_defn): Likewise.
11129 * p-lang.c (pascal_language_defn): Likewise.
11130 * rust-lang.c (rust_language_defn): Likewise.
11131
fc913e53
AB
111322019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
11133
11134 * ada-lang.c (ada_is_character_type): Change return type to bool.
11135 (ada_is_string_type): Likewise.
11136 * ada-lang.h (ada_is_character_type): Update declaration
11137 (ada_is_string_type): Likewise.
11138
fa731fa0
PW
111392019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11140
11141 Support style in 'frame|thread apply'
11142
11143 * gdbcmd.h (execute_command_to_string): New term_out parameter.
11144 * record.c (record_start, record_stop): Update callers of
11145 execute_command_to_string with false.
11146 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
11147 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
11148 methods.
11149 (class string_file): New constructor with term_out parameter.
11150 Override methods term_out and can_emit_style_escape. New member
11151 term_out.
11152 (class stdio_file): Override can_emit_style_escape.
11153 (class tee_file): Override term_out and can_emit_style_escape.
11154 * utils.h (can_emit_style_escape): Remove.
11155 * utils.c (can_emit_style_escape): Likewise.
11156 Update all callers of can_emit_style_escape (SOMESTREAM) to
11157 SOMESTREAM->can_emit_style_escape.
11158 * source-cache.c (source_cache::get_source_lines): Likewise.
11159 * stack.c (frame_apply_command_count): Call execute_command_to_string
11160 passing the term_out characteristic of the current gdb_stdout.
11161 * thread.c (thr_try_catch_cmd): Likewise.
11162 * top.c (execute_command_to_string): pass term_out parameter
11163 to construct the string_file for the command output.
11164 * ui-file.c (term_cli_styling): New function (most code moved
11165 from utils.c can_emit_style_escape).
11166 (string_file::string_file, string_file::can_emit_style_escape,
11167 stdio_file::can_emit_style_escape, tee_file::term_out,
11168 tee_file::can_emit_style_escape): New functions.
11169
136afab8
PW
111702019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11171
11172 * NEWS: Mention the new set|show may-call-functions.
11173 * infcall.c (may_call_functions_p): New variable.
11174 (show_may_call_functions_p): New function.
11175 (call_function_by_hand_dummy): Throws an error if not
11176 may-call-functions.
11177 (_initialize_infcall): Call add_setshow_boolean_cmd for
11178 may-call-functions.
11179
725cbb63
KS
111802019-04-25 Keith Seitz <keiths@redhat.com>
11181
11182 PR c++/24367
11183 * cp-support.c (inspect_type): Don't attempt substitutions
11184 of symbol with the same name.
11185
3d1cbb78
TT
111862019-04-25 Tom Tromey <tromey@adacore.com>
11187
11188 PR gdb/24475:
11189 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
11190 static.
11191
94aeb44b
TT
111922019-04-25 Tom Tromey <tromey@adacore.com>
11193
11194 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
11195 rvalue reference.
11196 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
11197 (gdb_xml_parser::parse): Use std::move.
11198 * python/python-internal.h (gdbpy_convert_exception): Take a const
11199 reference.
11200 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
11201 std::move.
11202 * python/py-utils.c (gdbpy_convert_exception): Take a const
11203 reference.
11204 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
11205 Use std::move.
11206 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
11207 Use std::move.
11208 * mi/mi-main.c (mi_print_exception): Take a const reference.
11209 * main.c (handle_command_errors): Take a const reference.
11210 * linespec.c (parse_linespec): Use std::move.
11211 * infcall.c (run_inferior_call): Use std::move.
11212 (call_function_by_hand_dummy): Use std::move.
11213 * exec.c (try_open_exec_file): Use std::move.
11214 * exceptions.h (exception_print, exception_fprintf)
11215 (exception_print_same): Update.
11216 * exceptions.c (print_exception, exception_print)
11217 (exception_fprintf, exception_print_same): Change parameters to
11218 const reference.
11219 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
11220 * common/new-op.c: Use std::move.
11221 * common/common-exceptions.h (struct gdb_exception): Add move
11222 constructor.
11223 (struct gdb_exception_error, struct gdb_exception_quit, struct
11224 gdb_quit_bad_alloc): Change constructor to move constructor.
11225 (throw_exception): Change parameter to rvalue reference.
11226 * common/common-exceptions.c (throw_exception): Take rvalue
11227 reference.
11228 * cli/cli-interp.c (safe_execute_command): Use std::move.
11229 * breakpoint.c (insert_bp_location, location_to_sals): Use
11230 std::move.
11231
680d7fd5
TT
112322019-04-25 Tom Tromey <tromey@adacore.com>
11233
11234 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
11235 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
11236 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
11237 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
11238 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
11239 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
11240 guile/scm-value.c: Use unpack.
11241 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
11242 gdbscm_gdb_exception.
11243 (gdbscm_throw_gdb_exception): Likewise.
11244 (struct gdbscm_gdb_exception): New.
11245 (unpack): New function.
11246 (gdbscm_wrap): Use unpack.
11247
c6fdd8b2
TT
112482019-04-25 Tom Tromey <tromey@adacore.com>
11249
11250 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
11251 (gdb_rl_callback_handler): Use std::move.
11252 * common/common-exceptions.h (struct gdb_exception): Add move
11253 assignment operator.
11254 (throw_exception_sjlj): Change "exception" to const reference.
11255 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
11256 (throw_exception_sjlj): Change "exception" to const reference.
11257
cc06b668
TT
112582019-04-25 Tom Tromey <tromey@adacore.com>
11259
11260 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
11261 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
11262 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
11263 Update.
11264 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
11265 Update.
11266 * mi/mi-interp.c (mi_interp::exec): Update.
11267 * linespec.c (parse_linespec): Update.
11268 * infcall.c (run_inferior_call): Update.
11269 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
11270 * guile/scm-symbol.c (gdbscm_lookup_symbol)
11271 (gdbscm_lookup_global_symbol): Update.
11272 * guile/scm-param.c (gdbscm_parameter_value): Update.
11273 * guile/scm-frame.c (gdbscm_frame_read_register)
11274 (gdbscm_frame_read_var): Update.
11275 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
11276 * exec.c (try_open_exec_file): Update.
11277 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
11278 (gdb_rl_callback_handler): Update.
11279 * common/common-exceptions.h (exception_none): Don't declare.
11280 * common/common-exceptions.c (exception_none): Don't define.
11281 (struct catcher) <exception>: Update.
11282 * cli/cli-interp.c (safe_execute_command): Update.
11283 * breakpoint.c (insert_bp_location, location_to_sals): Update.
11284
cf532bd1
AT
112852019-04-25 Ali Tamur <tamur@google.com>
11286
11287 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
11288 (read_attribute_value): Likewise.
11289 (dwarf2_read_addr_index): Update comment.
11290 (read_str_index): Add DW_FORM_strx.
11291 (dwarf2_string_attr): Likewise.
11292 (dwarf2_const_value_attr): Likewise.
11293 (dump_die_shallow): Likewise.
11294 (dwarf2_fetch_constant_bytes): Likewise.
11295 (skip_form_bytes): Likewise.
11296 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
11297
82433e3e
SDJ
112982019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
11299
11300 PR corefiles/11608
11301 PR corefiles/18187
11302 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
11303 OFFSET. Verify if current mapping contains an ELF header.
11304 (linux_find_memory_regions_full): Adjust call to
11305 dump_mapping_p.
11306
723adb65
SL
113072019-04-25 Sandra Loosemore <sandra@codesourcery.com>
11308 Kang Li <kanglictf@gmail.com>
11309
11310 PR gdb/21600
11311
11312 * dwarf2-frame.c (read_initial_length): Be consistent about using
11313 unsigned representation of length.
11314 (decode_frame_entry_1): Likewise. Check for wraparound of
11315 end pointer as well as buffer overflow.
11316
596179f7
SDJ
113172019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
11318
11319 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
11320 "vq".
11321
a59240a4
TT
113222019-04-24 Tom Tromey <tromey@adacore.com>
11323
11324 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
11325
f872fdbb
AB
113262019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11327
11328 * s12z-tdep.c (s12z_unwind_pc): Delete.
11329 (s12z_unwind_sp): Delete.
11330 (s12z_gdbarch_init): Don't register deleted functions with
11331 gdbarch.
11332
b614e6f3
AB
113332019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11334
11335 * rl78-tdep.c (rl78_unwind_sp): Delete.
11336 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
11337
14faed38
AB
113382019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11339
11340 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
11341 (xstormy16_unwind_pc): Delete.
11342 (xstormy16_dummy_id): Delete.
11343 (xstormy16_gdbarch_init): Don't register deleted functions with
11344 gdbarch.
11345
541aad8a
AB
113462019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11347
11348 * vax-tdep.c (vax_unwind_pc): Delete.
11349 (vax_gdbarch_init): Don't register deleted function with gdbarch.
11350
29222070
AB
113512019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11352
11353 * v850-tdep.c (v850_unwind_sp): Delete.
11354 (v850_unwind_pc): Delete.
11355 (v850_dummy_id): Delete.
11356 (v850_gdbarch_init): Don't register deleted functions with
11357 gdbarch.
11358
0f534d76
AB
113592019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11360
11361 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
11362 (tilegx_unwind_pc): Delete.
11363 (tilegx_unwind_dummy_id): Delete.
11364 (tilegx_gdbarch_init): Don't register deleted functions with
11365 gdbarch.
11366
1ba7b7f9
AB
113672019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11368
11369 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
11370 (tic6x_dummy_id): Delete.
11371 (tic6x_gdbarch_init): Don't register deleted functions with
11372 gdbarch.
11373
d31f262c
AB
113742019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11375
11376 * sparc-tdep.c (sparc_unwind_pc): Delete.
11377 (sparc32_gdbarch_init): Don't register deleted function with
11378 gdbarch.
11379
6d14d64d
AB
113802019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11381
11382 * sh-tdep.c (sh_unwind_sp): Delete.
11383 (sh_unwind_pc): Delete.
11384 (sh_dummy_id): Delete.
11385 (sh_gdbarch_init): Don't register deleted functions with
11386 gdbarch.
11387
a40dde9d
AB
113882019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11389
11390 * score-tdep.c (score_unwind_sp): Delete.
11391 (score_unwind_pc): Delete.
11392 (score_dummy_id): Delete.
11393 (score_gdbarch_init): Don't register deleted functions with
11394 gdbarch.
11395
47c47d69
AB
113962019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11397
11398 * rx-tdep.c (rx_unwind_pc): Delete.
11399 (rx_unwind_sp): Delete.
11400 (rx_dummy_id): Delete.
11401 (rx_gdbarch_init): Don't register deleted functions with
11402 gdbarch. Update comment.
11403
833a4480
AB
114042019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11405
11406 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
11407 (rs6000_dummy_id): Delete.
11408 (rs6000_gdbarch_init): Don't register deleted functions with
11409 gdbarch.
11410
3f2cef49
AB
114112019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11412
11413 * or1k-tdep.c (or1k_dummy_id): Delete.
11414 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
11415
96acf884
AB
114162019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11417
11418 * nios2-tdep.c (nios2_dummy_id): Delete.
11419 (nios2_unwind_sp): Delete.
11420 (nios2_gdbarch_init): Don't register deleted functions with
11421 gdbarch.
11422
ca0ab0aa
AB
114232019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11424
11425 * nds32-tdep.c (nds32_dummy_id): Delete.
11426 (nds32_unwind_pc): Delete.
11427 (nds32_unwind_sp): Delete.
11428 (nds32_gdbarch_init): Don't register deleted functions with
11429 gdbarch.
11430
c8259044
AB
114312019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11432
11433 * msp430-tdep.c (msp430_unwind_pc): Delete.
11434 (msp430_unwind_sp): Delete.
11435 (msp430_dummy_id): Delete.
11436 (msp430_gdbarch_init): Don't register deleted functions with
11437 gdbarch.
11438
27f113c8
AB
114392019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11440
11441 * moxie-tdep.c (moxie_unwind_sp): Delete.
11442 (moxie_unwind_pc): Delete.
11443 (moxie_dummy_id): Delete.
11444 (moxie_gdbarch_init): Don't register deleted functions with
11445 gdbarch.
11446
aee6c3cd
AB
114472019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11448
11449 * mn10300-tdep.c (mn10300_dummy_id): Delete.
11450 (mn10300_unwind_pc): Delete.
11451 (mn10300_unwind_sp): Delete.
11452 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
11453 mn10300_unwind_sp.
11454 (mn10300_frame_unwind_init): Don't register deleted functions with
11455 gdbarch.
11456
8e2b5aea
AB
114572019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11458
11459 * mep-tdep.c (mep_unwind_pc): Delete.
11460 (mep_unwind_sp): Delete.
11461 (mep_dummy_id): Delete.
11462 (mep_gdbarch_init): Don't register deleted functions with
11463 gdbarch.
11464
43cf3ede
AB
114652019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11466
11467 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
11468 (m68hc11_unwind_sp): Delete.
11469 (m68hc11_gdbarch_init): Don't register deleted functions with
11470 gdbarch.
11471
5e79b7bb
AB
114722019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11473
11474 * m32r-tdep.c (m32r_unwind_sp): Delete.
11475 (m32r_unwind_pc): Delete.
11476 (m32r_dummy_id): Delete.
11477 (m32r_gdbarch_init): Don't register deleted functions with
11478 gdbarch.
11479
89b268d8
AB
114802019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11481
11482 * m32c-tdep.c (m32c_unwind_pc): Delete.
11483 (m32c_unwind_sp): Delete.
11484 (m32c_dummy_id): Delete.
11485 (m32c_gdbarch_init): Don't register deleted functions with
11486 gdbarch.
11487
946c28d2
AB
114882019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11489
11490 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
11491 (lm32_unwind_pc): Delete.
11492 (lm32_dummy_id): Delete.
11493 (lm32_gdbarch_init): Don't register deleted functions with
11494 gdbarch.
11495
bf12844a
AB
114962019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11497
11498 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
11499 (iq2000_unwind_pc): Delete.
11500 (iq2000_dummy_id): Delete.
11501 (iq2000_gdbarch_init): Don't register deleted functions with
11502 gdbarch.
11503
ecbc06d2
AB
115042019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11505
11506 * nds32-tdep.c (nds32_type_align): Delete.
11507 (nds32_push_dummy_call): Use type_align instead.
11508
030197b4
AB
115092019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11510
11511 * arm-tdep.c (arm_type_align): Only handle vector override case.
11512 (arm_push_dummy_call): Use type_align.
11513 (arm_gdbarch_init): Register arm_type_align gdbarch function.
11514
b907456c
AB
115152019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11516
11517 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
11518 case.
11519 (pass_on_stack): Use type_align.
11520 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
11521 function.
11522
9e97ba43
TT
115232019-04-23 Tom Tromey <tromey@adacore.com>
11524
11525 * dwarf2read.c (line_header::file_name_at): Remove unused
11526 overload.
11527
6892f601
TV
115282019-04-23 Tom de Vries <tdevries@suse.de>
11529
11530 PR gdb/24438
11531 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
11532 invocation.
11533
336d760d
AT
11534
115352019-03-27 Ali Tamur <tamur@google.com>
11536
11537 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
11538 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
11539 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
11540 (dwarf_expr_context::get_addr_index): Likewise
11541 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
11542 (symbol_needs_eval_context::get_addr_index): Likewise
11543 (disassemble_dwarf_expression): Add DW_OP_addrx
11544 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
11545 (read_cutu_die_from_dwo): Update comment
11546 (skip_one_die): Add DW_FORM_addrx
11547 (read_attribute_value): Likewise
11548 (var_decode_location): Add DW_OP_addrx
11549 (dwarf2_const_value_attr): Add DW_FORM_addrx
11550 (dump_die_shallow): Likewise
11551 (dwarf2_fetch_constant_bytes): Likewise
11552 (decode_locdesc): Add DW_OP_addrx
11553 (skip_form_bytes): Add DW_FORM_addrx
11554
ad9d13f8
AT
115552019-04-22 Ali Tamur <tamur@google.com>
11556
11557 * MAINTAINERS (Write After Approval): Add self.
11558
d70cc3ba
SM
115592019-04-22 Simon Marchi <simon.marchi@efficios.com>
11560
11561 * solib-svr4.c (get_svr4_info): Add pspace parameter.
11562 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
11563 (open_symbol_file_object): Likewise.
11564 (svr4_default_sos): Add info parameter.
11565 (svr4_read_so_list): Likewise.
11566 (svr4_current_sos_direct): Adjust functions calls to pass down
11567 info.
11568 (svr4_current_sos_1): Add info parameter.
11569 (svr4_current_sos): Call get_svr4_info, pass info down to
11570 svr4_current_sos_1.
11571 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
11572 get_svr4_info.
11573 (svr4_in_dynsym_resolve_code): Pass current_program_space to
11574 get_svr4_info.
11575 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
11576 to get_svr4_info.
11577 (probes_table_remove_objfile_probes): Likewise.
11578 (register_solib_event_probe): Add info parameter.
11579 (solist_update_incremental): Pass info parameter down to
11580 svr4_read_so_list.
11581 (disable_probes_interface): Add info parameter.
11582 (svr4_handle_solib_event): Pass current_program_space to
11583 get_svr4_info. Adjust disable_probes_interface cleanup.
11584 (svr4_create_probe_breakpoints): Add info parameter, pass it
11585 down to register_solib_event_probe.
11586 (svr4_create_solib_event_breakpoints): Add info parameter,
11587 pass it down to svr4_create_probe_breakpoints.
11588 (enable_break): Pass info down to
11589 svr4_create_solib_event_breakpoints.
11590 (svr4_solib_create_inferior_hook): Pass current_program_space to
11591 get_svr4_info.
11592 (svr4_clear_solib): Likewise.
11593
7905fc35
PA
115942019-04-22 Pedro Alves <palves@redhat.com>
11595
11596 * solib-svr4.c (svr4_free_objfile_observer): New.
11597 (probe_and_action::objfile): New field.
11598 (probes_table_htab_remove_objfile_probes)
11599 (probes_table_remove_objfile_probes): New functions.
11600 (register_solib_event_probe): Add 'objfile' parameter. Store it
11601 in the new probe_and_action. Don't store the probe in 'lookup'.
11602 (svr4_create_probe_breakpoints): Pass objfile to
11603 register_solib_event_probe.
11604 (_initialize_svr4_solib): Register a free_objfile observer.
11605
fb881986
TT
116062019-04-19 Tom Tromey <tom@tromey.com>
11607
11608 * common/queue.h: Remove.
11609
8732db6c
TT
116102019-04-19 Tom Tromey <tom@tromey.com>
11611
11612 * event-loop.c: Don't include "common/queue.h".
11613
97dfbadd
TT
116142019-04-19 Tom Tromey <tom@tromey.com>
11615
11616 * remote.c (remote_target): Use delete.
11617 * remote-notif.h: Include <list>, not "common/queue.h".
11618 (notif_client_p): Remove typedef.
11619 (remote_notif_state): Add constructor, destructor, initializer.
11620 <notif_queue>: Now a std::list.
11621 (remote_notif_state_xfree): Don't declare.
11622 * remote-notif.c (remote_notif_process, handle_notification)
11623 (remote_notif_state_allocate): Update.
11624 (~remote_notif_state): Rename from remote_notif_state_xfree.
11625
cf250e36
TT
116262019-04-19 Tom Tromey <tom@tromey.com>
11627
11628 * symfile.c (reread_symbols): Update.
11629 * objfiles.c (objfile_register_static_link)
11630 (objfile_lookup_static_link): Update
11631 (~objfile) Don't delete static_links.
11632 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
11633
61f4b350
TT
116342019-04-19 Tom Tromey <tom@tromey.com>
11635
11636 * type-stack.h (struct type_stack) <insert>: Constify string.
11637 * type-stack.c (type_stack::insert): Constify string.
11638 * gdbtypes.h (lookup_template_type): Update.
11639 (address_space_name_to_int): Update.
11640 * gdbtypes.c (address_space_name_to_int): Make space_identifier
11641 const.
11642 (lookup_template_type): Make name const.
11643 * c-exp.y: Update rules.
11644 (lex_one_token, classify_name, classify_inner_name)
11645 (c_print_token): Update.
11646 * p-exp.y: Update rules.
11647 (yylex): Update.
11648 * f-exp.y: Update rules.
11649 (yylex): Update.
11650 * d-exp.y: Update rules.
11651 (lex_one_token, classify_name, classify_inner_name): Update.
11652 * parse.c (write_dollar_variable, copy_name): Return std::string.
11653 * parser-defs.h (copy_name): Change return type.
11654 * m2-exp.y: Update rules.
11655 (yylex): Update.
11656 * go-exp.y (lex_one_token): Update.
11657 Update rules.
11658 (classify_unsafe_function, classify_packaged_name)
11659 (classify_name, yylex): Update.
11660
189b8c2e
ST
116612019-04-19 Sergei Trofimovich <siarheit@google.com>
11662
11663 * configure.ac: add --enable-source-highlight switch.
11664 * configure: Regenerate.
11665 * top.c (print_gdb_version): plumb --enable-source-highlight
11666 status to "show configuration".
11667
8ecb59f8
TT
116682019-04-19 Tom Tromey <tromey@adacore.com>
11669
11670 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
11671 Check ADA_TYPE_P.
11672 (empty_record, ada_template_to_fixed_record_type_1)
11673 (template_to_static_fixed_type)
11674 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
11675 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
11676 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
11677 macros.
11678
62160ec9
TT
116792019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
11680
11681 PR symtab/24423:
11682 * source.c (print_source_lines_base): Advance "iter" when a
11683 control character is seen.
11684
f2ae8bc8
PW
116852019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11686
11687 * inferior.h (struct infcall_suspend_state_deleter):
11688 Catch exception in destructor to avoid crash.
11689
d563b953
PW
116902019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11691
11692 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
11693 close to the add_com "shell".
11694
dc34c897
TT
116952019-04-18 Tom Tromey <tromey@adacore.com>
11696
11697 * process-stratum-target.h (class process_stratum_target)
11698 <stratum>: Add "final".
11699
a12e5744
TT
117002019-04-17 Tom Tromey <tromey@adacore.com>
11701
11702 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
11703 against nullptr before use.
11704
a7e559cc
AH
117052019-04-17 Alan Hayward <alan.hayward@arm.com>
11706
11707 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
11708
c01660c6
AB
117092019-04-17 Jim Wilson <jimw@sifive.com>
11710 Andrew Burgess <andrew.burgess@embecosm.com>
11711
11712 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
11713 code read might fail, assume 4-byte breakpoint in that case.
11714
4aa866af
LS
117152019-04-15 Leszek Swirski <leszeks@google.com>
11716
11717 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
11718 rather than a hand-rolled POD check when checking for forced MEMORY
11719 classification.
11720
48574d91
AH
117212019-04-15 Alan Hayward <alan.hayward@arm.com>
11722
11723 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
11724 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
11725 function.
11726 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
11727 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
11728 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
11729 declaration.
11730
4da037ef
AH
117312019-04-15 Alan Hayward <alan.hayward@arm.com>
11732
11733 * aarch64-linux-nat.c
11734 (aarch64_linux_nat_target::thread_architecture): Add override.
11735 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
11736 each VQ.
11737
ccb8d7e8
AH
117382019-04-15 Alan Hayward <alan.hayward@arm.com>
11739
11740 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
11741
35add35e
AB
117422019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
11743
11744 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
11745 target types of size 96-bits, add some additional comments, and
11746 check that the builtin type we found was the correct size.
11747
51196bbc
EZ
117482019-04-12 Eli Zaretskii <eliz@gnu.org>
11749
11750 * utils.c (prompt_for_continue): Don't restore the styling at the
11751 end, as applied_style has the wrong value. This fixes styling in
11752 long lists of file names that are interrupted by the "Continue?"
11753 prompt.
11754
62253a61
AB
117552019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
11756
11757 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
11758 * c-lang.c (c_language_defn): Likewise.
11759 (cplus_language_defn): Likewise.
11760 (asm_language_defn): Likewise.
11761 (minimal_language_defn): Likewise.
11762 * d-lang.c (d_language_defn): Likewise.
11763 * f-lang.c (f_language_defn): Likewise.
11764 * go-lang.c (go_language_defn): Likewise.
11765 * language.c (unknown_language_defn): Likewise.
11766 (auto_language_defn): Likewise.
11767 * language.h (struct language_defn): Remove la_magic field.
11768 (LANG_MAGIC): Delete.
11769 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
11770 * objc-lang.c (objc_language_defn): Likewise.
11771 * opencl-lang.c (opencl_language_defn): Likewise.
11772 * p-lang.c (pascal_language_defn): Likewise.
11773 * rust-lang.c (rust_language_defn): Likewise.
11774
a9158a86
AB
117752019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
11776
11777 * riscv-tdep.c (riscv_type_align): New function.
11778 (riscv_type_alignment): Delete.
11779 (riscv_arg_location): Use 'type_align'.
11780 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
11781
41077b66
AB
117822019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
11783
11784 * gdbtypes.c (type_align): A struct with no non-static fields also
11785 has alignment of 1.
11786
9f0272f8
AB
117872019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
11788
11789 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
11790 component to 0.
11791 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
11792 member.
11793 (riscv_struct_info::analyse): New implementation using new
11794 analyse_inner member function.
11795 (riscv_struct_info::field_offset): New member function.
11796 (riscv_struct_info::m_offsets): New member variable.
11797 (riscv_struct_info::analyse_inner): New private member function,
11798 takes the old implementation of riscv_struct_info::analyse but
11799 extended to track field offsets.
11800 (riscv_call_arg_struct): Update the struct folding special cases
11801 to handle cases where empty C++ structs, which are non-zero
11802 length, are found.
11803 (riscv_arg_location): Initialise the length of each location, a
11804 non-zero length now indicates the location is in use.
11805 (riscv_push_dummy_call): Allow for the first location having a
11806 non-zero offset when setting up arguments.
11807 (riscv_return_value): Likewise, but for return values.
11808
02cf60c7
TT
118092019-04-11 Tom Tromey <tromey@adacore.com>
11810
11811 * utils.c (internal_vproblem): Make "msg" const.
11812
68811f8f
AH
118132019-04-11 Alan Hayward <alan.hayward@arm.com>
11814
11815 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
11816 * trad-frame.c (trad_frame_reset_saved_regs): New function.
11817 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
11818 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
11819
3f52fdbc
KB
118202019-04-10 Kevin Buettner <kevinb@redhat.com>
11821
11822 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
11823 function.
11824 (fill_gregset): Call amd64_linux_collect_native_gregset instead
11825 of amd64_collect_native_gregset.
11826 (amd64_linux_nat_target::store_registers): Likewise.
11827
e9ad22ee
TT
118282019-04-10 Tom Tromey <tom@tromey.com>
11829
11830 * symtab.c (lookup_global_symbol_from_objfile)
11831 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
11832 * objfiles.h (class separate_debug_iterator): New.
11833 (class separate_debug_range): New.
11834 (struct objfile) <separate_debug_objfiles>: New method.
11835 (objfile_separate_debug_iterate): Don't declare.
11836 * objfiles.c (separate_debug_iterator::operator++): Rename from
11837 objfile_separate_debug_iterate.
11838 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
11839 iterator.
11840 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
11841 iterator.
11842
ee371134
TT
118432019-04-10 Tom Tromey <tom@tromey.com>
11844
11845 * symfile.c (reread_symbols): Remove old comment.
11846 * objfiles.c (free_all_objfiles): Fix a typo.
11847
bf227d61
TT
118482019-04-10 Tom Tromey <tom@tromey.com>
11849
11850 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
11851 * minsyms.c (lookup_minimal_symbol): Use foreach.
11852 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
11853 (lookup_minimal_symbol_solib_trampoline): Likewise.
11854 * symfile.c (reread_symbols): Use foreach.
11855
8dc433a0
TT
118562019-04-09 Ivan Begert <ivanbegert@gmail.com>
11857 Tom Tromey <tromey@adacore.com>
11858
11859 PR rust/24414:
11860 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
11861 (rust_lex_int_test): Change "value" to be LONGEST.
11862 (rust_lex_tests): Add test for long integer literal.
11863
9ab8741a
TT
118642019-04-09 Tom Tromey <tromey@adacore.com>
11865
11866 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
11867 to bool.
11868 (extended_remote_target::attach): Update.
11869 (remote_target::remote_notice_new_inferior): Update.
11870 (remote_target::add_current_inferior_and_thread): Update.
11871 * inferior.c (exit_inferior_1): Use "false".
11872 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
11873
e242fd12
SM
118742019-04-09 Simon Marchi <simon.marchi@efficios.com>
11875
9ca1957f 11876 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
e242fd12
SM
11877 the "start" command.
11878
2b0c8b01
KB
118792019-04-08 Kevin Buettner <kevinb@redhat.com>
11880
11881 * python/py-inferior.c (infpy_thread_from_thread_handle):
11882 Adjust comments to reflect renaming of thread_from_thread_handle
11883 to thread_from_handle. Adjust keywords. Fix type error message.
11884 (inferior_object_methods): Add thread_from_handle. Retain
11885 thread_from_thread_handle, but mark it as deprecated.
11886
50a82723
KB
118872019-04-08 Kevin Buettner <kevinb@redhat.com>
11888
11889 * gdbthread.h (find_thread_by_handle): Revise declaration.
11890 * thread.c (find_thread_by_handle): Likewise. Adjust
11891 implementation too.
11892 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
11893 support for buffer objects as handles.
11894
cf63b016
KB
118952019-04-08 Kevin Buettner <kevinb@redhat.com>
11896
11897 * python/py-infthread.c (thpy_thread_handle): New function.
11898 (thread_object_methods): Register thpy_thread_handle.
11899
3d6c6204
KB
119002019-04-08 Kevin Buettner <kevinb@redhat.com>
11901
11902 * gdbthread.h (thread_to_thread_handle): Declare.
11903 * thread.c (gdbtypes.h): Include.
11904 (thread_to_thread_handle): New function.
11905
11906 * target.h (struct target_ops): Add thread_info_to_thread_handle.
11907 (target_thread_info_to_thread_handle): Declare.
11908 * target.c (target_thread_info_to_thread_handle): New function.
11909 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
11910 * target-delegates.c: Regenerate.
11911
11912 * linux-thread-db.c (class thread_db_target): Add method
11913 thread_info_to_thread_handle.
11914 (thread_db_target::thread_info_to_thread_handle): Define.
11915 * remote.c (class remote_target): Add new method
11916 thread_info_to_thread_handle.
11917 (remote_target::thread_info_to_thread_handle): Define.
11918
56be6ea8
PA
119192019-04-08 Pedro Alves <palves@redhat.com>
11920
11921 * common/common-exceptions.c (throw_exception): Don't create
11922 named object to throw; throw directly.
11923 (throw_it): Likewise. Don't initialize gdb_exception::message
11924 here, with new; pass FMT and AP to the ctor instead.
11925 * common/common-exceptions.h: Include <string>.
11926 (gdb_exception::gdb_exception(enum return_reason, enum errors,
11927 const char *, va_list)): New ctor. Use std::make_shared.
11928 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
11929 errors)): Delete.
11930 (gdb_exception_error::gdb_exception_error(enum errors, const char
11931 *, va_list)): New.
11932 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
11933 Add assertion.
11934 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
11935 errors)): Delete.
11936 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
11937 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
11938 Add assertion.
11939
eedc3f4f
TT
119402019-04-08 Tom Tromey <tom@tromey.com>
11941
11942 * valops.c (value_rtti_indirect_type): Replace throw_exception
11943 with throw.
11944 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
11945 with throw.
11946 * thread.c (thr_try_catch_cmd): Replace throw_exception with
11947 throw.
11948 * target.c (target_translate_tls_address): Replace throw_exception
11949 with throw.
11950 * stack.c (frame_apply_command_count): Replace throw_exception
11951 with throw.
11952 * solib-spu.c (append_ocl_sos): Replace throw_exception with
11953 throw.
11954 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
11955 with throw.
11956 * rs6000-tdep.c (rs6000_frame_cache)
11957 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
11958 * remote.c: Replace throw_exception with throw.
11959 * record-full.c (record_full_message, record_full_wait_1)
11960 (record_full_restore): Replace throw_exception with throw.
11961 * record-btrace.c:
11962 (get_thread_current_frame_id, record_btrace_start_replaying)
11963 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
11964 (cmd_record_btrace_start): Replace throw_exception with throw.
11965 * parse.c (parse_exp_in_context_1): Replace throw_exception with
11966 throw.
11967 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
11968 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
11969 * linespec.c:
11970 (find_linespec_symbols): Replace throw_exception with throw.
11971 * infrun.c (displaced_step_prepare, resume): Replace
11972 throw_exception with throw.
11973 * infcmd.c (post_create_inferior): Replace throw_exception with
11974 throw.
11975 * inf-loop.c (inferior_event_handler): Replace throw_exception
11976 with throw.
11977 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
11978 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
11979 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
11980 (get_prev_frame_always, get_frame_pc_if_available)
11981 (get_frame_address_in_block_if_available, get_frame_language):
11982 Replace throw_exception with throw.
11983 * frame-unwind.c (frame_unwind_try_unwinder): Replace
11984 throw_exception with throw.
11985 * eval.c (fetch_subexp_value, evaluate_var_value)
11986 (evaluate_funcall, evaluate_subexp_standard): Replace
11987 throw_exception with throw.
11988 * dwarf2loc.c (call_site_find_chain)
11989 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
11990 Replace throw_exception with throw.
11991 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
11992 with throw.
11993 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
11994 throw.
11995 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
11996 * completer.c (complete_line_internal): Replace throw_exception
11997 with throw.
11998 * compile/compile-object-run.c (compile_object_run): Replace
11999 throw_exception with throw.
12000 * cli/cli-script.c (process_next_line): Replace throw_exception
12001 with throw.
12002 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
12003 (btrace_enable, btrace_maint_update_pt_packets): Replace
12004 throw_exception with throw.
12005 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
12006 throw_exception with throw.
12007 * break-catch-throw.c (re_set_exception_catchpoint): Replace
12008 throw_exception with throw.
12009 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
12010 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
12011 * aarch64-tdep.c (aarch64_make_prologue_cache)
12012 (aarch64_make_stub_cache): Replace throw_exception with throw.
12013
26003a20
TT
120142019-04-08 Tom Tromey <tom@tromey.com>
12015
12016 * common/common-exceptions.c (throw_exception): Rename from
12017 throw_exception_cxx. Remove old copy. Make argument const.
12018 (throw_it): Create and throw exception objects directly.
12019 * common/common-exceptions.h (throw_exception): Make argument
12020 const.
12021 (struct gdb_exception_error): Add constructor.
12022 (struct gdb_exception_quit): Add constructor.
12023
d272eb37
TT
120242019-04-08 Tom Tromey <tom@tromey.com>
12025
12026 * common/common-exceptions.h (exception_rethrow): Don't declare.
12027 (TRY_SJLJ): Update comment.
12028 (TRY, CATCH, END_CATCH): Remove.
12029 * common/common-exceptions.c (exception_rethrow): Remove.
12030
230d2906
TT
120312019-04-08 Tom Tromey <tom@tromey.com>
12032
12033 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
12034 Remove.
12035 (gdb_exception_error): Rename from
12036 gdb_exception_RETURN_MASK_ERROR.
12037 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
12038 (gdb_quit_bad_alloc): Update.
12039 * aarch64-tdep.c: Update.
12040 * ada-lang.c: Update.
12041 * ada-typeprint.c: Update.
12042 * ada-valprint.c: Update.
12043 * amd64-tdep.c: Update.
12044 * arch-utils.c: Update.
12045 * break-catch-throw.c: Update.
12046 * breakpoint.c: Update.
12047 * btrace.c: Update.
12048 * c-varobj.c: Update.
12049 * cli/cli-cmds.c: Update.
12050 * cli/cli-interp.c: Update.
12051 * cli/cli-script.c: Update.
12052 * common/common-exceptions.c: Update.
12053 * common/new-op.c: Update.
12054 * common/selftest.c: Update.
12055 * compile/compile-c-symbols.c: Update.
12056 * compile/compile-cplus-symbols.c: Update.
12057 * compile/compile-object-load.c: Update.
12058 * compile/compile-object-run.c: Update.
12059 * completer.c: Update.
12060 * corelow.c: Update.
12061 * cp-abi.c: Update.
12062 * cp-support.c: Update.
12063 * cp-valprint.c: Update.
12064 * darwin-nat.c: Update.
12065 * disasm-selftests.c: Update.
12066 * dtrace-probe.c: Update.
12067 * dwarf-index-cache.c: Update.
12068 * dwarf-index-write.c: Update.
12069 * dwarf2-frame-tailcall.c: Update.
12070 * dwarf2-frame.c: Update.
12071 * dwarf2loc.c: Update.
12072 * dwarf2read.c: Update.
12073 * eval.c: Update.
12074 * event-loop.c: Update.
12075 * event-top.c: Update.
12076 * exec.c: Update.
12077 * f-valprint.c: Update.
12078 * fbsd-tdep.c: Update.
12079 * frame-unwind.c: Update.
12080 * frame.c: Update.
12081 * gdbtypes.c: Update.
12082 * gnu-v3-abi.c: Update.
12083 * guile/guile-internal.h: Update.
12084 * guile/scm-block.c: Update.
12085 * guile/scm-breakpoint.c: Update.
12086 * guile/scm-cmd.c: Update.
12087 * guile/scm-disasm.c: Update.
12088 * guile/scm-frame.c: Update.
12089 * guile/scm-lazy-string.c: Update.
12090 * guile/scm-math.c: Update.
12091 * guile/scm-param.c: Update.
12092 * guile/scm-ports.c: Update.
12093 * guile/scm-pretty-print.c: Update.
12094 * guile/scm-symbol.c: Update.
12095 * guile/scm-symtab.c: Update.
12096 * guile/scm-type.c: Update.
12097 * guile/scm-value.c: Update.
12098 * i386-linux-tdep.c: Update.
12099 * i386-tdep.c: Update.
12100 * inf-loop.c: Update.
12101 * infcall.c: Update.
12102 * infcmd.c: Update.
12103 * infrun.c: Update.
12104 * jit.c: Update.
12105 * language.c: Update.
12106 * linespec.c: Update.
12107 * linux-fork.c: Update.
12108 * linux-nat.c: Update.
12109 * linux-tdep.c: Update.
12110 * linux-thread-db.c: Update.
12111 * main.c: Update.
12112 * mi/mi-cmd-break.c: Update.
12113 * mi/mi-cmd-stack.c: Update.
12114 * mi/mi-interp.c: Update.
12115 * mi/mi-main.c: Update.
12116 * objc-lang.c: Update.
12117 * p-valprint.c: Update.
12118 * parse.c: Update.
12119 * ppc-linux-tdep.c: Update.
12120 * printcmd.c: Update.
12121 * python/py-arch.c: Update.
12122 * python/py-breakpoint.c: Update.
12123 * python/py-cmd.c: Update.
12124 * python/py-finishbreakpoint.c: Update.
12125 * python/py-frame.c: Update.
12126 * python/py-framefilter.c: Update.
12127 * python/py-gdb-readline.c: Update.
12128 * python/py-inferior.c: Update.
12129 * python/py-infthread.c: Update.
12130 * python/py-lazy-string.c: Update.
12131 * python/py-linetable.c: Update.
12132 * python/py-objfile.c: Update.
12133 * python/py-param.c: Update.
12134 * python/py-prettyprint.c: Update.
12135 * python/py-progspace.c: Update.
12136 * python/py-record-btrace.c: Update.
12137 * python/py-record.c: Update.
12138 * python/py-symbol.c: Update.
12139 * python/py-type.c: Update.
12140 * python/py-unwind.c: Update.
12141 * python/py-utils.c: Update.
12142 * python/py-value.c: Update.
12143 * python/python.c: Update.
12144 * record-btrace.c: Update.
12145 * record-full.c: Update.
12146 * remote-fileio.c: Update.
12147 * remote.c: Update.
12148 * riscv-tdep.c: Update.
12149 * rs6000-aix-tdep.c: Update.
12150 * rs6000-tdep.c: Update.
12151 * rust-exp.y: Update.
12152 * rust-lang.c: Update.
12153 * s390-tdep.c: Update.
12154 * selftest-arch.c: Update.
12155 * solib-dsbt.c: Update.
12156 * solib-frv.c: Update.
12157 * solib-spu.c: Update.
12158 * solib-svr4.c: Update.
12159 * solib.c: Update.
12160 * sparc64-linux-tdep.c: Update.
12161 * stack.c: Update.
12162 * symfile-mem.c: Update.
12163 * symmisc.c: Update.
12164 * target.c: Update.
12165 * thread.c: Update.
12166 * top.c: Update.
12167 * tracefile-tfile.c: Update.
12168 * tui/tui.c: Update.
12169 * typeprint.c: Update.
12170 * unittests/cli-utils-selftests.c: Update.
12171 * unittests/parse-connection-spec-selftests.c: Update.
12172 * valops.c: Update.
12173 * valprint.c: Update.
12174 * value.c: Update.
12175 * varobj.c: Update.
12176 * windows-nat.c: Update.
12177 * x86-linux-nat.c: Update.
12178 * xml-support.c: Update.
12179
a70b8144
TT
121802019-04-08 Tom Tromey <tom@tromey.com>
12181
12182 * xml-support.c: Use C++ exception handling.
12183 * x86-linux-nat.c: Use C++ exception handling.
12184 * windows-nat.c: Use C++ exception handling.
12185 * varobj.c: Use C++ exception handling.
12186 * value.c: Use C++ exception handling.
12187 * valprint.c: Use C++ exception handling.
12188 * valops.c: Use C++ exception handling.
12189 * unittests/parse-connection-spec-selftests.c: Use C++ exception
12190 handling.
12191 * unittests/cli-utils-selftests.c: Use C++ exception handling.
12192 * typeprint.c: Use C++ exception handling.
12193 * tui/tui.c: Use C++ exception handling.
12194 * tracefile-tfile.c: Use C++ exception handling.
12195 * top.c: Use C++ exception handling.
12196 * thread.c: Use C++ exception handling.
12197 * target.c: Use C++ exception handling.
12198 * symmisc.c: Use C++ exception handling.
12199 * symfile-mem.c: Use C++ exception handling.
12200 * stack.c: Use C++ exception handling.
12201 * sparc64-linux-tdep.c: Use C++ exception handling.
12202 * solib.c: Use C++ exception handling.
12203 * solib-svr4.c: Use C++ exception handling.
12204 * solib-spu.c: Use C++ exception handling.
12205 * solib-frv.c: Use C++ exception handling.
12206 * solib-dsbt.c: Use C++ exception handling.
12207 * selftest-arch.c: Use C++ exception handling.
12208 * s390-tdep.c: Use C++ exception handling.
12209 * rust-lang.c: Use C++ exception handling.
12210 * rust-exp.y: Use C++ exception handling.
12211 * rs6000-tdep.c: Use C++ exception handling.
12212 * rs6000-aix-tdep.c: Use C++ exception handling.
12213 * riscv-tdep.c: Use C++ exception handling.
12214 * remote.c: Use C++ exception handling.
12215 * remote-fileio.c: Use C++ exception handling.
12216 * record-full.c: Use C++ exception handling.
12217 * record-btrace.c: Use C++ exception handling.
12218 * python/python.c: Use C++ exception handling.
12219 * python/py-value.c: Use C++ exception handling.
12220 * python/py-utils.c: Use C++ exception handling.
12221 * python/py-unwind.c: Use C++ exception handling.
12222 * python/py-type.c: Use C++ exception handling.
12223 * python/py-symbol.c: Use C++ exception handling.
12224 * python/py-record.c: Use C++ exception handling.
12225 * python/py-record-btrace.c: Use C++ exception handling.
12226 * python/py-progspace.c: Use C++ exception handling.
12227 * python/py-prettyprint.c: Use C++ exception handling.
12228 * python/py-param.c: Use C++ exception handling.
12229 * python/py-objfile.c: Use C++ exception handling.
12230 * python/py-linetable.c: Use C++ exception handling.
12231 * python/py-lazy-string.c: Use C++ exception handling.
12232 * python/py-infthread.c: Use C++ exception handling.
12233 * python/py-inferior.c: Use C++ exception handling.
12234 * python/py-gdb-readline.c: Use C++ exception handling.
12235 * python/py-framefilter.c: Use C++ exception handling.
12236 * python/py-frame.c: Use C++ exception handling.
12237 * python/py-finishbreakpoint.c: Use C++ exception handling.
12238 * python/py-cmd.c: Use C++ exception handling.
12239 * python/py-breakpoint.c: Use C++ exception handling.
12240 * python/py-arch.c: Use C++ exception handling.
12241 * printcmd.c: Use C++ exception handling.
12242 * ppc-linux-tdep.c: Use C++ exception handling.
12243 * parse.c: Use C++ exception handling.
12244 * p-valprint.c: Use C++ exception handling.
12245 * objc-lang.c: Use C++ exception handling.
12246 * mi/mi-main.c: Use C++ exception handling.
12247 * mi/mi-interp.c: Use C++ exception handling.
12248 * mi/mi-cmd-stack.c: Use C++ exception handling.
12249 * mi/mi-cmd-break.c: Use C++ exception handling.
12250 * main.c: Use C++ exception handling.
12251 * linux-thread-db.c: Use C++ exception handling.
12252 * linux-tdep.c: Use C++ exception handling.
12253 * linux-nat.c: Use C++ exception handling.
12254 * linux-fork.c: Use C++ exception handling.
12255 * linespec.c: Use C++ exception handling.
12256 * language.c: Use C++ exception handling.
12257 * jit.c: Use C++ exception handling.
12258 * infrun.c: Use C++ exception handling.
12259 * infcmd.c: Use C++ exception handling.
12260 * infcall.c: Use C++ exception handling.
12261 * inf-loop.c: Use C++ exception handling.
12262 * i386-tdep.c: Use C++ exception handling.
12263 * i386-linux-tdep.c: Use C++ exception handling.
12264 * guile/scm-value.c: Use C++ exception handling.
12265 * guile/scm-type.c: Use C++ exception handling.
12266 * guile/scm-symtab.c: Use C++ exception handling.
12267 * guile/scm-symbol.c: Use C++ exception handling.
12268 * guile/scm-pretty-print.c: Use C++ exception handling.
12269 * guile/scm-ports.c: Use C++ exception handling.
12270 * guile/scm-param.c: Use C++ exception handling.
12271 * guile/scm-math.c: Use C++ exception handling.
12272 * guile/scm-lazy-string.c: Use C++ exception handling.
12273 * guile/scm-frame.c: Use C++ exception handling.
12274 * guile/scm-disasm.c: Use C++ exception handling.
12275 * guile/scm-cmd.c: Use C++ exception handling.
12276 * guile/scm-breakpoint.c: Use C++ exception handling.
12277 * guile/scm-block.c: Use C++ exception handling.
12278 * guile/guile-internal.h: Use C++ exception handling.
12279 * gnu-v3-abi.c: Use C++ exception handling.
12280 * gdbtypes.c: Use C++ exception handling.
12281 * frame.c: Use C++ exception handling.
12282 * frame-unwind.c: Use C++ exception handling.
12283 * fbsd-tdep.c: Use C++ exception handling.
12284 * f-valprint.c: Use C++ exception handling.
12285 * exec.c: Use C++ exception handling.
12286 * event-top.c: Use C++ exception handling.
12287 * event-loop.c: Use C++ exception handling.
12288 * eval.c: Use C++ exception handling.
12289 * dwarf2read.c: Use C++ exception handling.
12290 * dwarf2loc.c: Use C++ exception handling.
12291 * dwarf2-frame.c: Use C++ exception handling.
12292 * dwarf2-frame-tailcall.c: Use C++ exception handling.
12293 * dwarf-index-write.c: Use C++ exception handling.
12294 * dwarf-index-cache.c: Use C++ exception handling.
12295 * dtrace-probe.c: Use C++ exception handling.
12296 * disasm-selftests.c: Use C++ exception handling.
12297 * darwin-nat.c: Use C++ exception handling.
12298 * cp-valprint.c: Use C++ exception handling.
12299 * cp-support.c: Use C++ exception handling.
12300 * cp-abi.c: Use C++ exception handling.
12301 * corelow.c: Use C++ exception handling.
12302 * completer.c: Use C++ exception handling.
12303 * compile/compile-object-run.c: Use C++ exception handling.
12304 * compile/compile-object-load.c: Use C++ exception handling.
12305 * compile/compile-cplus-symbols.c: Use C++ exception handling.
12306 * compile/compile-c-symbols.c: Use C++ exception handling.
12307 * common/selftest.c: Use C++ exception handling.
12308 * common/new-op.c: Use C++ exception handling.
12309 * cli/cli-script.c: Use C++ exception handling.
12310 * cli/cli-interp.c: Use C++ exception handling.
12311 * cli/cli-cmds.c: Use C++ exception handling.
12312 * c-varobj.c: Use C++ exception handling.
12313 * btrace.c: Use C++ exception handling.
12314 * breakpoint.c: Use C++ exception handling.
12315 * break-catch-throw.c: Use C++ exception handling.
12316 * arch-utils.c: Use C++ exception handling.
12317 * amd64-tdep.c: Use C++ exception handling.
12318 * ada-valprint.c: Use C++ exception handling.
12319 * ada-typeprint.c: Use C++ exception handling.
12320 * ada-lang.c: Use C++ exception handling.
12321 * aarch64-tdep.c: Use C++ exception handling.
12322
3d6e9d23
TT
123232019-04-08 Tom Tromey <tom@tromey.com>
12324
12325 * xml-support.c (gdb_xml_parser::parse): Update.
12326 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
12327 * value.c (show_convenience): Update.
12328 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
12329 (test_parse_flags_qcs): Update.
12330 * thread.c (thr_try_catch_cmd): Update.
12331 * target.c (target_translate_tls_address): Update.
12332 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
12333 (info_frame_command_core, frame_apply_command_count): Update.
12334 * rust-exp.y (rust_lex_exception_test): Update.
12335 * riscv-tdep.c (riscv_print_one_register_info): Update.
12336 * remote.c (remote_target::enable_btrace): Update.
12337 * record-btrace.c (record_btrace_enable_warn): Update.
12338 * python/py-utils.c (gdbpy_convert_exception): Update.
12339 * printcmd.c (do_one_display, print_variable_and_value): Update.
12340 * mi/mi-main.c (mi_print_exception): Update.
12341 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
12342 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
12343 * linux-nat.c (linux_nat_target::attach): Update.
12344 * linux-fork.c (class scoped_switch_fork_info): Update.
12345 * infrun.c (displaced_step_prepare): Update.
12346 * infcall.c (call_function_by_hand_dummy): Update.
12347 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
12348 * gnu-v3-abi.c (print_one_vtable): Update.
12349 * frame.c (get_prev_frame_always): Update.
12350 * f-valprint.c (info_common_command_for_block): Update.
12351 * exec.c (try_open_exec_file): Update.
12352 * exceptions.c (print_exception, exception_print)
12353 (exception_fprintf, exception_print_same): Update.
12354 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
12355 * dwarf-index-cache.c (index_cache::store)
12356 (index_cache::lookup_gdb_index): Update.
12357 * darwin-nat.c (maybe_cache_shell): Update.
12358 * cp-valprint.c (cp_print_value_fields): Update.
12359 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
12360 (gcc_cplus_symbol_address): Update.
12361 * compile/compile-c-symbols.c (gcc_convert_symbol)
12362 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
12363 * common/selftest.c: Update.
12364 * common/common-exceptions.h (struct gdb_exception) <message>: Now
12365 a std::string.
12366 (exception_try_scope_entry, exception_try_scope_exit): Don't
12367 declare.
12368 (struct exception_try_scope): Remove.
12369 (TRY): Don't use exception_try_scope.
12370 (struct gdb_exception): Add constructor, operator=.
12371 <what>: New method.
12372 (struct gdb_exception_RETURN_MASK_ALL)
12373 (struct gdb_exception_RETURN_MASK_ERROR)
12374 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
12375 (struct gdb_quit_bad_alloc): Update.
12376 * common/common-exceptions.c (exception_none): Change
12377 initializer.
12378 (struct catcher) <state, exception>: Initialize inline.
12379 <prev>: Remove member.
12380 (current_catcher): Remove.
12381 (catchers): New global.
12382 (exceptions_state_mc_init): Simplify.
12383 (catcher_pop): Remove.
12384 (exceptions_state_mc, exceptions_state_mc_catch): Update.
12385 (try_scope_depth, exception_try_scope_entry)
12386 (exception_try_scope_exit): Remove.
12387 (throw_exception_sjlj): Update.
12388 (exception_messages, exception_messages_size): Remove.
12389 (throw_it): Simplify.
12390 (gdb_exception_sliced_copy): Remove.
12391 (throw_exception_cxx): Update.
12392 * cli/cli-script.c (script_from_file): Update.
12393 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
12394 Update.
12395 * ada-valprint.c (ada_val_print): Update.
12396 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
12397 (create_excep_cond_exprs): Update.
12398
c5c10118
TT
123992019-04-08 Tom Tromey <tom@tromey.com>
12400
12401 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
12402 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
12403 (TRY, CATCH, END_CATCH): Remove some definitions.
12404 * common/common-exceptions.c: Don't use GDB_XCPT.
12405 (catcher_list_size): Remove.
12406 (throw_exception, throw_it): Simplify.
12407
4de283e4
TT
124082019-04-05 Tom Tromey <tom@tromey.com>
12409
12410 Revert the header-sorting patch.
12411 * ft32-tdep.c: Revert.
12412 * frv-tdep.c: Revert.
12413 * frv-linux-tdep.c: Revert.
12414 * frame.c: Revert.
12415 * frame-unwind.c: Revert.
12416 * frame-base.c: Revert.
12417 * fork-child.c: Revert.
12418 * findvar.c: Revert.
12419 * findcmd.c: Revert.
12420 * filesystem.c: Revert.
12421 * filename-seen-cache.h: Revert.
12422 * filename-seen-cache.c: Revert.
12423 * fbsd-tdep.c: Revert.
12424 * fbsd-nat.h: Revert.
12425 * fbsd-nat.c: Revert.
12426 * f-valprint.c: Revert.
12427 * f-typeprint.c: Revert.
12428 * f-lang.c: Revert.
12429 * extension.h: Revert.
12430 * extension.c: Revert.
12431 * extension-priv.h: Revert.
12432 * expprint.c: Revert.
12433 * exec.h: Revert.
12434 * exec.c: Revert.
12435 * exceptions.c: Revert.
12436 * event-top.c: Revert.
12437 * event-loop.c: Revert.
12438 * eval.c: Revert.
12439 * elfread.c: Revert.
12440 * dwarf2read.h: Revert.
12441 * dwarf2read.c: Revert.
12442 * dwarf2loc.c: Revert.
12443 * dwarf2expr.h: Revert.
12444 * dwarf2expr.c: Revert.
12445 * dwarf2-frame.c: Revert.
12446 * dwarf2-frame-tailcall.c: Revert.
12447 * dwarf-index-write.h: Revert.
12448 * dwarf-index-write.c: Revert.
12449 * dwarf-index-common.c: Revert.
12450 * dwarf-index-cache.h: Revert.
12451 * dwarf-index-cache.c: Revert.
12452 * dummy-frame.c: Revert.
12453 * dtrace-probe.c: Revert.
12454 * disasm.h: Revert.
12455 * disasm.c: Revert.
12456 * disasm-selftests.c: Revert.
12457 * dictionary.c: Revert.
12458 * dicos-tdep.c: Revert.
12459 * demangle.c: Revert.
12460 * dcache.h: Revert.
12461 * dcache.c: Revert.
12462 * darwin-nat.h: Revert.
12463 * darwin-nat.c: Revert.
12464 * darwin-nat-info.c: Revert.
12465 * d-valprint.c: Revert.
12466 * d-namespace.c: Revert.
12467 * d-lang.c: Revert.
12468 * ctf.c: Revert.
12469 * csky-tdep.c: Revert.
12470 * csky-linux-tdep.c: Revert.
12471 * cris-tdep.c: Revert.
12472 * cris-linux-tdep.c: Revert.
12473 * cp-valprint.c: Revert.
12474 * cp-support.c: Revert.
12475 * cp-namespace.c: Revert.
12476 * cp-abi.c: Revert.
12477 * corelow.c: Revert.
12478 * corefile.c: Revert.
12479 * continuations.c: Revert.
12480 * completer.h: Revert.
12481 * completer.c: Revert.
12482 * complaints.c: Revert.
12483 * coffread.c: Revert.
12484 * coff-pe-read.c: Revert.
12485 * cli-out.h: Revert.
12486 * cli-out.c: Revert.
12487 * charset.c: Revert.
12488 * c-varobj.c: Revert.
12489 * c-valprint.c: Revert.
12490 * c-typeprint.c: Revert.
12491 * c-lang.c: Revert.
12492 * buildsym.c: Revert.
12493 * buildsym-legacy.c: Revert.
12494 * build-id.h: Revert.
12495 * build-id.c: Revert.
12496 * btrace.c: Revert.
12497 * bsd-uthread.c: Revert.
12498 * breakpoint.h: Revert.
12499 * breakpoint.c: Revert.
12500 * break-catch-throw.c: Revert.
12501 * break-catch-syscall.c: Revert.
12502 * break-catch-sig.c: Revert.
12503 * blockframe.c: Revert.
12504 * block.c: Revert.
12505 * bfin-tdep.c: Revert.
12506 * bfin-linux-tdep.c: Revert.
12507 * bfd-target.c: Revert.
12508 * bcache.c: Revert.
12509 * ax-general.c: Revert.
12510 * ax-gdb.h: Revert.
12511 * ax-gdb.c: Revert.
12512 * avr-tdep.c: Revert.
12513 * auxv.c: Revert.
12514 * auto-load.c: Revert.
12515 * arm-wince-tdep.c: Revert.
12516 * arm-tdep.c: Revert.
12517 * arm-symbian-tdep.c: Revert.
12518 * arm-pikeos-tdep.c: Revert.
12519 * arm-obsd-tdep.c: Revert.
12520 * arm-nbsd-tdep.c: Revert.
12521 * arm-nbsd-nat.c: Revert.
12522 * arm-linux-tdep.c: Revert.
12523 * arm-linux-nat.c: Revert.
12524 * arm-fbsd-tdep.c: Revert.
12525 * arm-fbsd-nat.c: Revert.
12526 * arm-bsd-tdep.c: Revert.
12527 * arch-utils.c: Revert.
12528 * arc-tdep.c: Revert.
12529 * arc-newlib-tdep.c: Revert.
12530 * annotate.h: Revert.
12531 * annotate.c: Revert.
12532 * amd64-windows-tdep.c: Revert.
12533 * amd64-windows-nat.c: Revert.
12534 * amd64-tdep.c: Revert.
12535 * amd64-sol2-tdep.c: Revert.
12536 * amd64-obsd-tdep.c: Revert.
12537 * amd64-obsd-nat.c: Revert.
12538 * amd64-nbsd-tdep.c: Revert.
12539 * amd64-nbsd-nat.c: Revert.
12540 * amd64-nat.c: Revert.
12541 * amd64-linux-tdep.c: Revert.
12542 * amd64-linux-nat.c: Revert.
12543 * amd64-fbsd-tdep.c: Revert.
12544 * amd64-fbsd-nat.c: Revert.
12545 * amd64-dicos-tdep.c: Revert.
12546 * amd64-darwin-tdep.c: Revert.
12547 * amd64-bsd-nat.c: Revert.
12548 * alpha-tdep.c: Revert.
12549 * alpha-obsd-tdep.c: Revert.
12550 * alpha-nbsd-tdep.c: Revert.
12551 * alpha-mdebug-tdep.c: Revert.
12552 * alpha-linux-tdep.c: Revert.
12553 * alpha-linux-nat.c: Revert.
12554 * alpha-bsd-tdep.c: Revert.
12555 * alpha-bsd-nat.c: Revert.
12556 * aix-thread.c: Revert.
12557 * agent.c: Revert.
12558 * addrmap.c: Revert.
12559 * ada-varobj.c: Revert.
12560 * ada-valprint.c: Revert.
12561 * ada-typeprint.c: Revert.
12562 * ada-tasks.c: Revert.
12563 * ada-lang.c: Revert.
12564 * aarch64-tdep.c: Revert.
12565 * aarch64-ravenscar-thread.c: Revert.
12566 * aarch64-newlib-tdep.c: Revert.
12567 * aarch64-linux-tdep.c: Revert.
12568 * aarch64-linux-nat.c: Revert.
12569 * aarch64-fbsd-tdep.c: Revert.
12570 * aarch64-fbsd-nat.c: Revert.
12571 * aarch32-linux-nat.c: Revert.
12572
d55e5aa6
TT
125732019-04-05 Tom Tromey <tom@tromey.com>
12574
12575 * ft32-tdep.c: Sort headers.
12576 * frv-tdep.c: Sort headers.
12577 * frv-linux-tdep.c: Sort headers.
12578 * frame.c: Sort headers.
12579 * frame-unwind.c: Sort headers.
12580 * frame-base.c: Sort headers.
12581 * fork-child.c: Sort headers.
12582 * findvar.c: Sort headers.
12583 * findcmd.c: Sort headers.
12584 * filesystem.c: Sort headers.
12585 * filename-seen-cache.h: Sort headers.
12586 * filename-seen-cache.c: Sort headers.
12587 * fbsd-tdep.c: Sort headers.
12588 * fbsd-nat.h: Sort headers.
12589 * fbsd-nat.c: Sort headers.
12590 * f-valprint.c: Sort headers.
12591 * f-typeprint.c: Sort headers.
12592 * f-lang.c: Sort headers.
12593 * extension.h: Sort headers.
12594 * extension.c: Sort headers.
12595 * extension-priv.h: Sort headers.
12596 * expprint.c: Sort headers.
12597 * exec.h: Sort headers.
12598 * exec.c: Sort headers.
12599 * exceptions.c: Sort headers.
12600 * event-top.c: Sort headers.
12601 * event-loop.c: Sort headers.
12602 * eval.c: Sort headers.
12603 * elfread.c: Sort headers.
12604 * dwarf2read.h: Sort headers.
12605 * dwarf2read.c: Sort headers.
12606 * dwarf2loc.c: Sort headers.
12607 * dwarf2expr.h: Sort headers.
12608 * dwarf2expr.c: Sort headers.
12609 * dwarf2-frame.c: Sort headers.
12610 * dwarf2-frame-tailcall.c: Sort headers.
12611 * dwarf-index-write.h: Sort headers.
12612 * dwarf-index-write.c: Sort headers.
12613 * dwarf-index-common.c: Sort headers.
12614 * dwarf-index-cache.h: Sort headers.
12615 * dwarf-index-cache.c: Sort headers.
12616 * dummy-frame.c: Sort headers.
12617 * dtrace-probe.c: Sort headers.
12618 * disasm.h: Sort headers.
12619 * disasm.c: Sort headers.
12620 * disasm-selftests.c: Sort headers.
12621 * dictionary.c: Sort headers.
12622 * dicos-tdep.c: Sort headers.
12623 * demangle.c: Sort headers.
12624 * dcache.h: Sort headers.
12625 * dcache.c: Sort headers.
12626 * darwin-nat.h: Sort headers.
12627 * darwin-nat.c: Sort headers.
12628 * darwin-nat-info.c: Sort headers.
12629 * d-valprint.c: Sort headers.
12630 * d-namespace.c: Sort headers.
12631 * d-lang.c: Sort headers.
12632 * ctf.c: Sort headers.
12633 * csky-tdep.c: Sort headers.
12634 * csky-linux-tdep.c: Sort headers.
12635 * cris-tdep.c: Sort headers.
12636 * cris-linux-tdep.c: Sort headers.
12637 * cp-valprint.c: Sort headers.
12638 * cp-support.c: Sort headers.
12639 * cp-namespace.c: Sort headers.
12640 * cp-abi.c: Sort headers.
12641 * corelow.c: Sort headers.
12642 * corefile.c: Sort headers.
12643 * continuations.c: Sort headers.
12644 * completer.h: Sort headers.
12645 * completer.c: Sort headers.
12646 * complaints.c: Sort headers.
12647 * coffread.c: Sort headers.
12648 * coff-pe-read.c: Sort headers.
12649 * cli-out.h: Sort headers.
12650 * cli-out.c: Sort headers.
12651 * charset.c: Sort headers.
12652 * c-varobj.c: Sort headers.
12653 * c-valprint.c: Sort headers.
12654 * c-typeprint.c: Sort headers.
12655 * c-lang.c: Sort headers.
12656 * buildsym.c: Sort headers.
12657 * buildsym-legacy.c: Sort headers.
12658 * build-id.h: Sort headers.
12659 * build-id.c: Sort headers.
12660 * btrace.c: Sort headers.
12661 * bsd-uthread.c: Sort headers.
12662 * breakpoint.h: Sort headers.
12663 * breakpoint.c: Sort headers.
12664 * break-catch-throw.c: Sort headers.
12665 * break-catch-syscall.c: Sort headers.
12666 * break-catch-sig.c: Sort headers.
12667 * blockframe.c: Sort headers.
12668 * block.c: Sort headers.
12669 * bfin-tdep.c: Sort headers.
12670 * bfin-linux-tdep.c: Sort headers.
12671 * bfd-target.c: Sort headers.
12672 * bcache.c: Sort headers.
12673 * ax-general.c: Sort headers.
12674 * ax-gdb.h: Sort headers.
12675 * ax-gdb.c: Sort headers.
12676 * avr-tdep.c: Sort headers.
12677 * auxv.c: Sort headers.
12678 * auto-load.c: Sort headers.
12679 * arm-wince-tdep.c: Sort headers.
12680 * arm-tdep.c: Sort headers.
12681 * arm-symbian-tdep.c: Sort headers.
12682 * arm-pikeos-tdep.c: Sort headers.
12683 * arm-obsd-tdep.c: Sort headers.
12684 * arm-nbsd-tdep.c: Sort headers.
12685 * arm-nbsd-nat.c: Sort headers.
12686 * arm-linux-tdep.c: Sort headers.
12687 * arm-linux-nat.c: Sort headers.
12688 * arm-fbsd-tdep.c: Sort headers.
12689 * arm-fbsd-nat.c: Sort headers.
12690 * arm-bsd-tdep.c: Sort headers.
12691 * arch-utils.c: Sort headers.
12692 * arc-tdep.c: Sort headers.
12693 * arc-newlib-tdep.c: Sort headers.
12694 * annotate.h: Sort headers.
12695 * annotate.c: Sort headers.
12696 * amd64-windows-tdep.c: Sort headers.
12697 * amd64-windows-nat.c: Sort headers.
12698 * amd64-tdep.c: Sort headers.
12699 * amd64-sol2-tdep.c: Sort headers.
12700 * amd64-obsd-tdep.c: Sort headers.
12701 * amd64-obsd-nat.c: Sort headers.
12702 * amd64-nbsd-tdep.c: Sort headers.
12703 * amd64-nbsd-nat.c: Sort headers.
12704 * amd64-nat.c: Sort headers.
12705 * amd64-linux-tdep.c: Sort headers.
12706 * amd64-linux-nat.c: Sort headers.
12707 * amd64-fbsd-tdep.c: Sort headers.
12708 * amd64-fbsd-nat.c: Sort headers.
12709 * amd64-dicos-tdep.c: Sort headers.
12710 * amd64-darwin-tdep.c: Sort headers.
12711 * amd64-bsd-nat.c: Sort headers.
12712 * alpha-tdep.c: Sort headers.
12713 * alpha-obsd-tdep.c: Sort headers.
12714 * alpha-nbsd-tdep.c: Sort headers.
12715 * alpha-mdebug-tdep.c: Sort headers.
12716 * alpha-linux-tdep.c: Sort headers.
12717 * alpha-linux-nat.c: Sort headers.
12718 * alpha-bsd-tdep.c: Sort headers.
12719 * alpha-bsd-nat.c: Sort headers.
12720 * aix-thread.c: Sort headers.
12721 * agent.c: Sort headers.
12722 * addrmap.c: Sort headers.
12723 * ada-varobj.c: Sort headers.
12724 * ada-valprint.c: Sort headers.
12725 * ada-typeprint.c: Sort headers.
12726 * ada-tasks.c: Sort headers.
12727 * ada-lang.c: Sort headers.
12728 * aarch64-tdep.c: Sort headers.
12729 * aarch64-ravenscar-thread.c: Sort headers.
12730 * aarch64-newlib-tdep.c: Sort headers.
12731 * aarch64-linux-tdep.c: Sort headers.
12732 * aarch64-linux-nat.c: Sort headers.
12733 * aarch64-fbsd-tdep.c: Sort headers.
12734 * aarch64-fbsd-nat.c: Sort headers.
12735 * aarch32-linux-nat.c: Sort headers.
12736
699bd4cf
TT
127372019-04-04 Tom Tromey <tom@tromey.com>
12738
12739 * varobj.c (varobj_create): Update.
12740 * rust-exp.y (struct rust_parser) <update_innermost_block,
12741 lookup_symbol>: New methods.
12742 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
12743 Rename.
12744 (rust_parser::rust_lookup_type)
12745 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
12746 * printcmd.c (display_command, do_one_display): Update.
12747 * parser-defs.h (struct parser_state) <parser_state>: Add
12748 "tracker" parameter.
12749 (block_tracker): New member.
12750 (class innermost_block_tracker) <innermost_block_tracker>: Add
12751 "types" parameter.
12752 <reset>: Remove method.
12753 (innermost_block): Don't declare.
12754 (null_post_parser): Update.
12755 * parse.c (innermost_block): Remove global.
12756 (write_dollar_variable): Update.
12757 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
12758 Remove "tracker_types" parameter.
12759 (parse_expression): Add "tracker" parameter.
12760 (parse_expression_for_completion): Update.
12761 (null_post_parser): Add "tracker" parameter.
12762 * p-exp.y: Update rules.
12763 * m2-exp.y: Update rules.
12764 * language.h (struct language_defn) <la_post_parser>: Add
12765 "tracker" parameter.
12766 * go-exp.y: Update rules.
12767 * f-exp.y: Update rules.
12768 * expression.h (parse_expression, parse_exp_1): Add "tracker"
12769 parameter.
12770 * d-exp.y: Update rules.
12771 * c-exp.y: Update rules.
12772 * breakpoint.c (set_breakpoint_condition): Create an
12773 innermost_block_tracker.
12774 (watch_command_1): Likewise.
12775 * ada-lang.c (resolve): Add "tracker" parameter.
12776 (resolve_subexp): Likewise.
12777 * ada-exp.y (write_var_from_sym): Update.
12778
dac43e32
TT
127792019-04-04 Tom Tromey <tom@tromey.com>
12780
12781 * type-stack.h: New file.
12782 * type-stack.c: New file.
12783 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
12784 type-stack.h.
12785 (insert_into_type_stack, insert_type, push_type, push_type_int)
12786 (insert_type_address_space, pop_type, pop_type_int)
12787 (pop_typelist, pop_type_stack, append_type_stack)
12788 (push_type_stack, get_type_stack, push_typelist)
12789 (follow_type_instance_flags, follow_types): Don't declare.
12790 * parse.c (type_stack): Remove global.
12791 (parse_exp_in_context): Update.
12792 (insert_into_type_stack, insert_type, push_type, push_type_int)
12793 (insert_type_address_space, pop_type, pop_type_int)
12794 (pop_typelist, pop_type_stack, append_type_stack)
12795 (push_type_stack, get_type_stack, push_typelist)
12796 (follow_type_instance_flags, follow_types): Remove (moved to
12797 type-stack.c).
12798 * f-exp.y (type_stack): New global.
12799 Update rules.
12800 (push_kind_type, f_parse): Update.
12801 * d-exp.y (type_stack): New global.
12802 Update rules.
12803 (d_parse): Update.
12804 * c-exp.y (struct c_parse_state) <type_stack>: New member.
12805 Update rules.
12806 * Makefile.in (COMMON_SFILES): Add type-stack.c.
12807 (HFILES_NO_SRCDIR): Add type-stack.h.
12808
2a612529
TT
128092019-04-04 Tom Tromey <tom@tromey.com>
12810
12811 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
12812 (rust_parser::convert_ast_to_expression, rust_parse)
12813 (rust_lex_test_completion, rust_lex_tests): Update.
12814 * parser-defs.h (struct expr_completion_state): New.
12815 (struct parser_state) <parser_state>: Add completion parameter.
12816 <mark_struct_expression, mark_completion_tag>: New methods.
12817 <parse_completion, m_completion_state>: New members.
12818 (prefixify_expression, null_post_parser): Update.
12819 (mark_struct_expression, mark_completion_tag): Don't declare.
12820 * parse.c (parse_completion, expout_last_struct)
12821 (expout_tag_completion_type, expout_completion_name): Remove
12822 globals.
12823 (parser_state::mark_struct_expression)
12824 (parser_state::mark_completion_tag): Now methods.
12825 (prefixify_expression): Add last_struct parameter.
12826 (prefixify_subexp): Likewise.
12827 (parse_exp_1): Update.
12828 (parse_exp_in_context): Add cstate parameter. Update.
12829 (parse_expression_for_completion): Create an
12830 expr_completion_state.
12831 (null_post_parser): Add "completion" parameter.
12832 * p-exp.y: Update rules.
12833 (yylex): Update.
12834 * language.h (struct language_defn) <la_post_parser>: Add
12835 "completing" parameter.
12836 * go-exp.y: Update rules.
12837 (lex_one_token): Update.
12838 * expression.h (parse_completion): Don't declare.
12839 * d-exp.y: Update rules.
12840 (lex_one_token): Update rules.
12841 * c-exp.y: Update rules.
12842 (lex_one_token): Update.
12843 * ada-lang.c (resolve): Add "parse_completion" parameter.
12844 (resolve_subexp): Likewise.
12845 (ada_resolve_function): Likewise.
12846
43476f0b
TT
128472019-04-04 Tom Tromey <tom@tromey.com>
12848
12849 * parser-defs.h (struct parser_state) <start_arglist,
12850 end_arglist>: New methods.
12851 <arglist_len, m_funcall_chain>: New members.
12852 (arglist_len, start_arglist, end_arglist): Don't declare.
12853 * parse.c (arglist_len, funcall_chain): Remove global.
12854 (start_arglist, end_arglist): Remove functions.
12855 (parse_exp_in_context): Update.
12856 * p-exp.y: Update rules.
12857 * m2-exp.y: Update rules.
12858 * go-exp.y: Update rules.
12859 * f-exp.y: Update rules.
12860 * d-exp.y: Update rules.
12861 * c-exp.y: Update rules.
12862
5776fca3
TT
128632019-04-04 Tom Tromey <tom@tromey.com>
12864
12865 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
12866 lex_operator, push_back>: New methods.
12867 Update all rules.
12868 (rust_parser::lex_hex, lex_escape): Rename and update.
12869 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
12870 (rust_parser::lex_operator): Rename and update.
12871 (rust_parser::lex_number, rustyylex, rustyyerror)
12872 (rust_lex_test_init, rust_lex_test_sequence)
12873 (rust_lex_test_push_back, rust_lex_tests): Update.
12874 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
12875 parameter.
12876 <lexptr, prev_lexptr>: New members.
12877 (lexptr, prev_lexptr): Don't declare.
12878 * parse.c (lexptr, prev_lexptr): Remove globals.
12879 (parse_exp_in_context): Update.
12880 * p-exp.y (yylex, yyerror): Update.
12881 * m2-exp.y (parse_number, yylex, yyerror): Update.
12882 * go-exp.y (lex_one_token, yyerror): Update.
12883 * f-exp.y (match_string_literal, yylex, yyerror): Update.
12884 * d-exp.y (lex_one_token, yyerror): Update.
12885 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
12886 (lex_one_token, yyerror): Update.
12887 * ada-lex.l (YY_INPUT): Update.
12888 (rewind_to_char): Update.
12889 * ada-exp.y (yyerror): Update.
12890
8621b685
TT
128912019-04-04 Tom Tromey <tom@tromey.com>
12892
12893 * rust-exp.y (rustyylex, rust_lex_tests): Update.
12894 * parser-defs.h (struct parser_state) <parser_state>: Add new
12895 parameter.
12896 <comma_terminates>: New member.
12897 (comma_terminates): Don't declare global.
12898 * parse.c (comma_terminates): Remove global.
12899 (parse_exp_in_context): Update.
12900 * p-exp.y (yylex): Update.
12901 * m2-exp.y (yylex): Update.
12902 * go-exp.y (lex_one_token): Update.
12903 * f-exp.y (yylex): Update.
12904 * d-exp.y (lex_one_token): Update.
12905 * c-exp.y (lex_one_token): Update.
12906 * ada-lex.l: Update.
12907
28aaf3fd
TT
129082019-04-04 Tom Tromey <tom@tromey.com>
12909
12910 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
12911 (rustyylex, rust_lex_test_init, rust_lex_test_one)
12912 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
12913 * parser-defs.h (paren_depth): Don't declare.
12914 * parse.c (paren_depth): Remove global.
12915 (parse_exp_in_context): Update.
12916 * p-exp.y (paren_depth): New global.
12917 (pascal_parse): Initialize it.
12918 * m2-exp.y (paren_depth): New global.
12919 (m2_parse): Initialize it.
12920 * go-exp.y (paren_depth): New global.
12921 (go_parse): Initialize it.
12922 * f-exp.y (paren_depth): New global.
12923 (f_parse): Initialize it.
12924 * d-exp.y (paren_depth): New global.
12925 (d_parse): Initialize it.
12926 * c-exp.y (paren_depth): New global.
12927 (c_parse): Initialize it.
12928 * ada-lex.l (paren_depth): New global.
12929 (lexer_init): Initialize it.
12930
1e58a4a4
TT
129312019-04-04 Tom Tromey <tom@tromey.com>
12932
12933 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
12934 (rust_parser::convert_ast_to_type)
12935 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
12936 * parser-defs.h (struct parser_state) <parser_state>: Add
12937 parameters. Initialize new members.
12938 <expression_context_block, expression_context_pc>: New members.
12939 * parse.c (expression_context_block, expression_context_pc):
12940 Remove globals.
12941 (parse_exp_in_context): Update.
12942 * p-exp.y: Update all rules.
12943 (yylex): Update.
12944 * m2-exp.y: Update all rules.
12945 (yylex): Update.
12946 * go-exp.y (yylex): Update.
12947 * f-exp.y (yylex): Update.
12948 * d-exp.y: Update all rules.
12949 (yylex): Update.
12950 * c-exp.y: Update all rules.
12951 (lex_one_token, classify_name, yylex, c_parse): Update.
12952 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
12953
37eedb39
TT
129542019-04-04 Tom Tromey <tom@tromey.com>
12955
12956 * gdbarch.h, gdbarch.c: Rebuild.
12957 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
12958 * stap-probe.h:
12959 (struct stap_parse_info): Replace "parser_state" with
12960 "expr_builder".
12961 * parser-defs.h (struct expr_builder): Rename from "parser_state".
12962 (parser_state): New class.
12963 * parse.c (expr_builder): Rename.
12964 (expr_builder::release): Rename.
12965 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
12966 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
12967 (write_exp_elt_longcst, write_exp_elt_floatcst)
12968 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
12969 (write_exp_string_vector, write_exp_bitstring)
12970 (write_exp_msymbol, mark_struct_expression)
12971 (write_dollar_variable)
12972 (insert_type_address_space, increase_expout_size): Replace
12973 "parser_state" with "expr_builder".
12974 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
12975 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
12976 "parser_state" with "expr_builder".
12977
73923d7e
TT
129782019-04-04 Tom Tromey <tom@tromey.com>
12979
12980 * rust-exp.y: Replace "parse_language" with method call.
12981 * p-exp.y:
12982 (yylex): Replace "parse_language" with method call.
12983 * m2-exp.y:
12984 (yylex): Replace "parse_language" with method call.
12985 * go-exp.y (classify_name): Replace "parse_language" with method
12986 call.
12987 * f-exp.y (yylex): Replace "parse_language" with method call.
12988 * d-exp.y (lex_one_token): Replace "parse_language" with method
12989 call.
12990 * c-exp.y:
12991 (lex_one_token, classify_name, yylex): Replace "parse_language"
12992 with method call.
12993 * ada-exp.y (find_primitive_type, type_char)
12994 (type_system_address): Replace "parse_language" with method call.
12995
fa9f5be6
TT
129962019-04-04 Tom Tromey <tom@tromey.com>
12997
12998 * rust-exp.y: Replace "parse_gdbarch" with method call.
12999 * parse.c (write_dollar_variable, insert_type_address_space):
13000 Replace "parse_gdbarch" with method call.
13001 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
13002 call.
13003 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
13004 call.
13005 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
13006 "parse_gdbarch" with method call.
13007 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
13008 with method call.
13009 * f-exp.y (parse_type, parse_f_type, yylex): Replace
13010 "parse_gdbarch" with method call.
13011 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
13012 "parse_gdbarch" with method call.
13013 * c-exp.y (parse_type, parse_number, classify_name): Replace
13014 "parse_gdbarch" with method call.
13015 * ada-lex.l: Replace "parse_gdbarch" with method call.
13016 * ada-exp.y (parse_type, find_primitive_type, type_char)
13017 (type_system_address): Replace "parse_gdbarch" with method call.
13018
1201a264
TT
130192019-04-04 Tom Tromey <tom@tromey.com>
13020
13021 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
13022 * stap-probe.c (stap_parse_argument): Update.
13023 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
13024 initial_size parameter.
13025 * rust-exp.y (rust_lex_tests): Update.
13026 * parse.c (parser_state): Update.
13027 (parse_exp_in_context): Update.
13028 * parser-defs.h (struct parser_state) <parser_state>: Remove
13029 "initial_size" parameter.
13030
e3980ce2
TT
130312019-04-04 Tom Tromey <tom@tromey.com>
13032
13033 * parser-defs.h (increase_expout_size): Don't declare.
13034 * parse.c (increase_expout_size): Now static.
13035
e9f8e3f1
TS
130362019-04-04 Thomas Schwinge <thomas@codesourcery.com>
13037
13038 * gnu-nat.c (gnu_nat_target::wait): Fix
13039 target_waitstatus_to_string call.
13040
d7df6549
AB
130412019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
13042
13043 * eval.c (evaluate_subexp_standard): Handle internal functions
13044 during Fortran function call handling.
13045
8bdc1658
AB
130462019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
13047
13048 * NEWS: Mention new internal functions.
13049 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
13050 (read_base_type): Use dwarf2_init_complex_target_type.
13051 * value.c (creal_internal_fn): New function.
13052 (cimag_internal_fn): New function.
13053 (_initialize_values): Register new internal functions.
13054
c29705b7
PW
130552019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13056
13057 * infrun.c (stop_all_threads): If debug_infrun, always
13058 trace the wait status after wait_one, using
13059 target_waitstatus_to_string and target_pid_to_str.
13060 (handle_inferior_event): Replace various trace of
13061 wait status kind by a single trace.
13062 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
13063 wait status kind image by target_waitstatus_to_string.
13064 * target/waitstatus.c (target_waitstatus_to_string): Fix
13065 obsolete comment.
13066
05caa1d2
TT
130672019-04-01 Tom Tromey <tromey@adacore.com>
13068
13069 PR symtab/23331:
13070 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
13071
9d1447e0
SDJ
130722019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
13073 Pedro Alves <palves@redhat.com>
13074
13075 * top.c (quit_force): Call 'finalize_values'.
13076 * value.c (finalize_values): New function.
13077 * value.h (finalize_values): Declare.
13078
7734102d
EZ
130792019-03-30 Eli Zaretskii <eliz@gnu.org>
13080
13081 * NEWS: Announce $_gdb_major and $_gdb_minor.
13082
13083 * top.c (init_gdb_version_vars): New function.
13084 (gdb_init): Call init_gdb_version_vars.
13085
188e1fa9
TT
130862019-03-29 Tom Tromey <tromey@adacore.com>
13087
13088 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
13089 help text. Remove dead code.
13090
2880242d
KS
130912019-03-29 Keith Seitz <keiths@redhat.com>
13092
13093 From Siddhesh Poyarekar:
13094 * f-lang.h (f77_get_upperbound): Return LONGEST.
13095 (f77_get_lowerbound): Likewise.
13096 * f-typeprint.c (f_type_print_varspec_suffix): Expand
13097 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
13098 print them.
13099 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
13100 plongest to format print it.
13101 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
13102 (f77_get_upperbound): Likewise.
13103 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
13104 LOWER_BOUND to LONGEST.
13105 (f77_create_arrayprint_offset_tbl): Likewise.
13106
cc1defb1
KS
131072019-03-29 Keith Seitz <keiths@redhat.com>
13108
13109 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
13110 %s/pulongest for TYPE_LENGTH instead of %d in format
13111 strings.
13112 * ada-typerint.c (ada_print_type): Likewise.
13113 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
13114 * compile/compile-c-support.c (generate_register_struct): Likewise.
13115 * gdbtypes.c (recursive_dump_type): Likewise.
13116 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
13117 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
13118 instead of %d in format strings.
13119 * riscv-tdep.c (riscv_type_alignment): Cast second argument
13120 to std::min to ULONGEST.
13121 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
13122 instead of %d in format strings.
13123 * tracepoint.c (info_scope_command): Likewise.
13124 * typeprint.c (print_offset_data::update)
13125 (print_offset_data::finish): Likewise.
13126 * xtensa-tdep.c (xtensa_store_return_value)
13127 (xtensa_push_dummy_call): Likewise.
13128
e432ccf1
JT
131292019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
13130
13131 * windows-nat.c (display_selector): Fixed format specifications
13132 for 64-bit Cygwin.
13133
65d2b333
PW
131342019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13135
13136 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
13137
f489207e
SL
131382019-03-28 Sandra Loosemore <sandra@codesourcery.com>
13139
13140 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
13141 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
13142 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
13143 (nios2_linux_init_abi): Install it.
13144
bffa1015
AH
131452019-03-28 Alan Hayward <alan.hayward@arm.com>
13146
13147 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
13148
fc96163a
AH
131492019-03-28 Alan Hayward <alan.hayward@arm.com>
13150
13151 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
13152
20dc7e9b
PW
131532019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13154 Tom Tromey <tromey@adacore.com>
13155
13156 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
13157
7f5331a8
JB
131582019-03-26 Joel Brobecker <brobecker@adacore.com>
13159
13160 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
13161 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
13162 method to compute the bounds of range types. Also print "[evaluated]"
13163 if the bounds' values come from a dynamic evaluation.
13164
18c77628
AB
131652019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
13166
13167 * cp-valprint.c (cp_print_value_fields): Don't print trailing
13168 whitespace when pretty printing is on.
13169
53c973f2
AH
131702019-03-26 Alan Hayward <alan.hayward@arm.com>
13171
e79be6e5 13172 * ppc-linux-nat.c: Add include.
53c973f2 13173
d851aa71
AH
131742019-03-26 Alan Hayward <alan.hayward@arm.com>
13175
e79be6e5 13176 * NEWS: Mention AArch64 Pointer Authentication.
d851aa71 13177
2fe7bab7
AH
131782019-03-26 Alan Hayward <alan.hayward@arm.com>
13179
e79be6e5 13180 * arm-linux-nat.c: Add include.
2fe7bab7 13181
068ef30e
SM
131822019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
13183
13184 * source-cache.c (source_cache::get_source_lines): Re-read
13185 fullname after calling open_source_file.
13186
81a24d04
JB
131872019-03-25 John Baldwin <jhb@FreeBSD.org>
13188
13189 * NEWS: Mention TLS support for FreeBSD.
13190
79e7ae11
TT
131912019-03-25 Tom Tromey <tromey@adacore.com>
13192
13193 * minsyms.c (BUNCH_SIZE): Update comment.
13194 (~minimal_symbol_reader): Remove old comment.
13195 (compact_minimal_symbols): Update comment.
13196 (minimal_symbol_reader::install): Remove old comment. Update
13197 other comments.
13198
d45963c2
AH
131992019-03-25 Alan Hayward <alan.hayward@arm.com>
13200
13201 * s390-linux-nat.c: Add include.
13202
0f83012e
AH
132032019-03-25 Alan Hayward <alan.hayward@arm.com>
13204
13205 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
13206 Call linux_get_hwcap.
13207 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
13208 Likewise.
13209 (aarch64_linux_get_hwcap): Remove function.
13210 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
13211 declaration.
13212 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
13213 linux_get_hwcap.
13214 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
13215 * linux-tdep.c (linux_get_hwcap): Add function.
13216 (linux_get_hwcap2): Likewise.
13217 * linux-tdep.h (linux_get_hwcap): Add declaration.
13218 (linux_get_hwcap2): Likewise.
13219 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
13220 (ppc_linux_get_hwcap2): Likewise.
13221 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
13222 linux_get_hwcap.
13223 (ppc_linux_nat_target::insert_watchpoint): Likewise.
13224 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
13225 (ppc_linux_nat_target::read_description): Likewise.
13226 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
13227 * s390-linux-nat.c: Likewise.
13228 * s390-linux-tdep.c (s390_core_read_description): Likewise.
13229
6640a367
TT
132302019-03-24 Tom Tromey <tom@tromey.com>
13231
13232 * ada-lang.c (standard_lookup): Simplify initialization.
13233 (ada_lookup_symbol_nonlocal): Simplify return.
13234 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
13235 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
13236 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
13237 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
13238 initialization.
13239 * solib.c (solib_global_lookup): Simplify.
13240 * symtab.c (null_block_symbol): Remove.
13241 (symbol_cache_lookup): Simplify returns.
13242 (lookup_language_this): Simplify returns.
13243 (lookup_symbol_aux): Simplify return.
13244 (lookup_local_symbol): Simplify returns.
13245 (lookup_global_symbol_from_objfile): Simplify return.
13246 (lookup_symbol_in_objfile_symtabs)
13247 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
13248 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
13249 (lookup_static_symbol, lookup_global_symbol): Simplify return.
13250 * cp-namespace.c (cp_lookup_bare_symbol)
13251 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
13252 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
13253 (cp_lookup_nested_symbol): Don't use null_block_symbol.
13254 (cp_lookup_symbol_via_imports): Simplify initialization.
13255 (find_symbol_in_baseclass): Likewise.
13256 * symtab.h (null_block_symbol): Remove.
13257 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
13258 (d_lookup_nested_symbol, d_lookup_symbol_imports)
13259 (d_lookup_symbol_module): Likewise.
13260 (find_symbol_in_baseclass): Simplify initialization.
13261
a930ebcd
TT
132622019-03-24 Tom Tromey <tom@tromey.com>
13263
13264 * expression.h: Don't include symtab.h.
13265 (struct block): Forward declare.
13266
582942f4
TT
132672019-03-24 Tom Tromey <tom@tromey.com>
13268
13269 * c-exp.y (typebase): Remove casts.
13270 * gdbtypes.c (lookup_unsigned_typename, )
13271 (lookup_signed_typename): Remove cast.
13272 * eval.c (parse_to_comma_and_eval): Remove cast.
13273 * parse.c (write_dollar_variable): Remove cast.
13274 * block.h (struct block) <superblock>: Now const.
13275 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
13276 * psymtab.c (psym_map_matching_symbols): Make "block" const.
13277 (map_block): Make "block" const.
13278 * symfile.h (struct quick_symbol_functions)
13279 <map_matching_symbols>: Constify block argument to "callback".
13280 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
13281 const.
13282 (find_pc_sect_compunit_symtab): Make "b" const.
13283 (find_symbol_at_address): Likewise.
13284 (search_symbols): Likewise.
13285 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
13286 (dw2_debug_names_lookup_symbol): Likewise.
13287 (dw2_map_matching_symbols): Update.
13288 * p-valprint.c (pascal_val_print): Remove "block".
13289 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
13290 (aux_add_nonlocal_symbols): Make "block" const.
13291 (resolve_subexp): Remove cast.
13292 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
13293 const.
13294 (iterate_over_file_blocks): Likewise.
13295 * f-exp.y (%union) <bval>: Remove.
13296 * coffread.c (patch_opaque_types): Make "b" const.
13297 * spu-tdep.c (spu_catch_start): Make "block" const.
13298 * c-valprint.c (print_unpacked_pointer): Remove "block".
13299 * symmisc.c (dump_symtab_1): Make "b" const.
13300 (block_depth): Make "block" const.
13301 * d-exp.y (%union) <bval>: Remove.
13302 * cp-support.h (cp_lookup_rtti_type): Update.
13303 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
13304 * psymtab.c (psym_lookup_symbol): Make "block" const.
13305 (maintenance_check_psymtabs): Make "b" const.
13306 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
13307 (enumerate_locals, enumerate_args): Update.
13308 * python/py-symtab.c (stpy_global_block): Make "block" const.
13309 (stpy_static_block): Likewise.
13310 * inline-frame.c (block_starting_point_at): Make "new_block"
13311 const.
13312 * block.c (find_block_in_blockvector): Make return type const.
13313 (blockvector_for_pc_sect): Make "b" const.
13314 (find_block_in_blockvector): Make "b" const.
13315
7ad417dd
TT
133162019-03-23 Tom Tromey <tom@tromey.com>
13317
13318 * varobj.c (varobj_create): Update.
13319 * symfile.c (clear_symtab_users): Don't reset innermost_block.
13320 * printcmd.c (display_command, do_one_display): Don't reset
13321 innermost_block.
13322 * parser-defs.h (enum innermost_block_tracker_type): Move to
13323 expression.h.
13324 (innermost_block): Update comment.
13325 * parse.c (parse_exp_1): Add tracker_types parameter.
13326 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
13327 tracker_types parameter. Reset innermost_block.
13328 (parse_exp_in_context): Remove.
13329 (parse_expression_for_completion): Update.
13330 * objfiles.c (~objfile): Don't reset expression_context_block or
13331 innermost_block.
13332 * expression.h (enum innermost_block_tracker_type): Move from
13333 parser-defs.h.
13334 (parse_exp_1): Add tracker_types parameter.
13335 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
13336 reset innermost_block.
13337
b366c208
TT
133382019-03-23 Tom Tromey <tom@tromey.com>
13339
13340 * objfiles.h: Include bcache.h.
13341
9bb9b2f9
TT
133422019-03-23 Tom Tromey <tom@tromey.com>
13343
13344 * linespec.c (get_current_search_block): Use
13345 scoped_restore_current_language.
13346 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
13347
59c28372
AH
133482019-03-22 Alan Hayward <alan.hayward@arm.com>
13349 Jiong Wang <jiong.wang@arm.com>
13350
13351 * aarch64-linux-tdep.c
13352 (aarch64_linux_iterate_over_regset_sections): Check for pauth
13353 section.
13354 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
13355
17e116a7
AH
133562019-03-22 Alan Hayward <alan.hayward@arm.com>
13357 Jiong Wang <jiong.wang@arm.com>
13358
13359 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
13360 instructions.
13361 (aarch64_analyze_prologue_test): Add PACIASP test.
13362 (aarch64_prologue_prev_register): Unmask PC value.
13363
11e1b75f
AH
133642019-03-22 Alan Hayward <alan.hayward@arm.com>
13365 Jiong Wang <jiong.wang@arm.com>
13366
13367 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
13368 (aarch64_dwarf2_prev_register): Unmask PC value.
13369 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
13370 (aarch64_execute_dwarf_cfa_vendor_op): Check for
13371 DW_CFA_AARCH64_negate_ra_state.
13372 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
13373
34dcc7cf
AH
133742019-03-22 Alan Hayward <alan.hayward@arm.com>
13375 Jiong Wang <jiong.wang@arm.com>
13376
13377 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
13378 registers.
13379 (aarch64_pseudo_register_name): Likewise.
13380 (aarch64_pseudo_register_type): Likewise.
13381 (aarch64_pseudo_register_reggroup_p): Likewise.
13382 (aarch64_gdbarch_init): Add pauth registers.
13383 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
13384 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
13385 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
13386 (struct gdbarch_tdep): Add regnum for ra_state.
13387
1ef53e6b
AH
133882019-03-22 Alan Hayward <alan.hayward@arm.com>
13389 Jiong Wang <jiong.wang@arm.com>
13390
13391 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
13392
76bed0fd
AH
133932019-03-22 Alan Hayward <alan.hayward@arm.com>
13394 Jiong Wang <jiong.wang@arm.com>
13395
13396 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
13397 function.
13398 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
13399 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
13400 (aarch64_gdbarch_init): Add puth registers.
13401 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
13402 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
13403 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
13404
ee4fbcfa
AH
134052019-03-22 Alan Hayward <alan.hayward@arm.com>
13406 Jiong Wang <jiong.wang@arm.com>
13407
13408 * aarch64-linux-nat.c
13409 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
13410 * aarch64-linux-tdep.c
13411 (aarch64_linux_core_read_description): Likewise.
13412 (aarch64_linux_get_hwcap): New function.
13413 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
13414 (aarch64_linux_get_hwcap): New declaration.
13415
6dc0ebde
AH
134162019-03-22 Alan Hayward <alan.hayward@arm.com>
13417 Jiong Wang <jiong.wang@arm.com>
13418
13419 * aarch64-linux-nat.c
13420 (aarch64_linux_nat_target::read_description): Add pauth param.
13421 * aarch64-linux-tdep.c
13422 (aarch64_linux_core_read_description): Likewise.
13423 * aarch64-tdep.c (struct target_desc): Add in pauth.
13424 (aarch64_read_description): Add pauth param.
13425 (aarch64_gdbarch_init): Likewise.
13426 * aarch64-tdep.h (aarch64_read_description): Likewise.
13427 * arch/aarch64.c (aarch64_create_target_description): Likewise.
13428 * arch/aarch64.h (aarch64_create_target_description): Likewise.
13429 * features/Makefile: Add new files.
13430 * features/aarch64-pauth.c: New file.
13431 * features/aarch64-pauth.xml: New file.
13432
595915c1
TT
134332019-03-20 Tom Tromey <tromey@adacore.com>
13434
13435 * infrun.c (handle_inferior_event): Rename from
13436 handle_inferior_event_1. Create a scoped_value_mark.
13437 (handle_inferior_event): Remove.
13438
4c7d57e7
TT
134392019-03-19 Tom Tromey <tromey@adacore.com>
13440
13441 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
13442 * infrun.h (print_stop_event): Add "displays" parameter.
13443 * infrun.c (print_stop_event): Add "displays" parameter.
13444
cb246234
PA
134452019-03-19 Pedro Alves <palves@redhat.com>
13446
13447 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
13448 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
13449 to -1. Fix TABs vs spaces.
13450 (tui_ui_out::tui_ui_out): Don't initialize fields here.
13451 * tui/tui-out.h (tui_ui_out) Add intro comments.
13452 <m_line, m_start_of_line>: In-class initialize, and add describing
13453 comment.
13454
3a0e45b2
AH
134552019-03-18 Alan Hayward <alan.hayward@arm.com>
13456
13457 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
13458 variable names.
13459 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
13460
5371b850
PA
134612019-03-18 Pedro Alves <palves@redhat.com>
13462 Eli Zaretskii <eliz@gnu.org>
13463
13464 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
13465 m_line and m_start_of_line.
13466
b17c4cd0
EZ
134672019-03-18 Eli Zaretskii <eliz@gnu.org>
13468
13469 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
13470 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
13471 it returns a newline. This fixes a regression in TU mode, whereby
13472 the next line is output on the same screen line as the user input.
13473
4bd56d18
TT
134742019-03-18 Tom Tromey <tromey@adacore.com>
13475
13476 * minsyms.c (minimal_symbol_reader::install): Remove call to
13477 obstack_blank.
13478
55c10aca
PA
134792019-03-18 Pedro Alves <palves@redhat.com>
13480
13481 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
13482 New globals.
13483 (apply_style): New, factored out from ...
13484 (apply_ansi_escape): ... this. Handle reverse video mode.
13485 (tui_set_reverse_mode): New function.
13486 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
13487 * tui/tui-winsource.c (tui_show_source_line): Use
13488 tui_set_reverse_mode instead of setting A_STANDOUT.
13489 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
13490 New setter methods.
13491
647bb750
HD
134922019-03-18 Hannes Domani <ssbssa@yahoo.de>
13493
13494 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
13495 Handle tabs.
13496
bff8c71f
TT
134972019-03-18 Tom Tromey <tromey@adacore.com>
13498
13499 * ada-lang.c (empty_array): Add "high" parameter.
13500 (ada_evaluate_subexp): Update.
13501
58785d98
ST
135022019-03-17 Sergei Trofimovich <siarheit@google.com>
13503
13504 * unittests/string_view-selftests.c: Define
13505 _initialize_string_view_selftests unconditionally.
13506
d4cbef22
ВМ
135072019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
13508
13509 PR gdb/24350
13510 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
13511
fce4c071
ВМ
135122019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
13513
13514 PR gdb/24351
13515 * windows-nat.c (display_selector): Fix format specifiers.
13516
f7f0a123
EZ
135172019-03-17 Eli Zaretskii <eliz@gnu.org>
13518
13519 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
13520 tui_refill_source_window instead of tui_refresh_win, to update the
13521 current execution line. This fixes redisplay of the current line
13522 when stepping through the code with "next" or "step".
13523
ab42892f
EZ
135242019-03-16 Eli Zaretskii <eliz@gnu.org>
13525
13526 * source-cache.c (source_cache::get_source_lines): Call
13527 find_source_lines to initialize s->nlines. This fixes vertical
13528 scrolling of TUI source window when the DOWN arrow is pressed.
13529
8d8c087f
PW
135302019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13531
13532 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
13533 linux-thread-db.c (_initialize_thread_db): Likewise.
13534
798e1c30
EZ
135352019-03-16 Eli Zaretskii <eliz@gnu.org>
13536
13537 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
13538 wclrtoeol in tui_show_source_line". This reverts changes made in
13539 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
13540
eefba3da
TT
135412019-03-15 Tom Tromey <tom@tromey.com>
13542
13543 * symtab.h (struct minimal_symbol): Derive from
13544 general_symbol_info.
13545 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
13546 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
13547 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
13548 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
13549 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
13550 (MSYMBOL_SEARCH_NAME): Update.
13551 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
13552 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
13553 * minsyms.c (minimal_symbol_reader::record_full): Update.
13554
0de2420c
TT
135552019-03-15 Tom Tromey <tom@tromey.com>
13556
13557 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
13558
042d75e4
TT
135592019-03-15 Tom Tromey <tom@tromey.com>
13560
13561 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
13562 unique_xmalloc_ptr.
13563 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
13564 Update.
13565 * minsyms.c (lookup_minimal_symbol_by_pc_section)
13566 (build_minimal_symbol_hash_tables)
13567 (minimal_symbol_reader::install): Update.
13568
db92718b
TT
135692019-03-15 Tom Tromey <tom@tromey.com>
13570
13571 * symtab.c (create_demangled_names_hash): Update.
13572 (symbol_set_names): Update.
13573 * objfiles.h (struct objfile_per_bfd_storage)
13574 <demangled_names_hash>: Now an htab_up.
13575 * objfiles.c (objfile_per_bfd_storage): Simplify.
13576
d6797f46
TT
135772019-03-15 Tom Tromey <tom@tromey.com>
13578
13579 * objfiles.h (struct objfile_per_bfd_storage): Declare
13580 destructor.
13581 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
13582 New.
13583 (get_objfile_bfd_data): Use new. Don't initialize
13584 language_of_main.
13585 (free_objfile_per_bfd_storage): Remove.
13586 (objfile_bfd_data_free, objfile::~objfile): Use delete.
13587
741d7538
TT
135882019-03-15 Tom Tromey <tom@tromey.com>
13589
13590 * symfile.c (reread_symbols): Update.
13591 * objfiles.c (objfile::objfile): Update.
13592 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
13593 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
13594 comment.
13595 (minimal_symbol_reader::install): Update.
13596 (terminate_minimal_symbol_table): Remove.
13597 * jit.c (jit_object_close_impl): Update.
13598
788c80d1
TT
135992019-03-15 Tom Tromey <tom@tromey.com>
13600
13601 * minsyms.c (minimal_symbol_reader::record_full): Remove some
13602 initializations.
13603
1b7a07cb
TT
136042019-03-15 Tom Tromey <tom@tromey.com>
13605
13606 * objfiles.h (struct objfile_per_bfd_storage)
13607 <demangled_hash_languages>: Now a bitset.
13608 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
13609 (lookup_minimal_symbol): Update.
13610
3db066bc
TT
136112019-03-15 Tom Tromey <tom@tromey.com>
13612
13613 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
13614 Don't return the symbol.
13615 * coffread.c (record_minimal_symbol): Use record_full.
13616
3fff2c37
EZ
136172019-03-14 Eli Zaretskii <eliz@gnu.org>
13618
13619 The MS-Windows port of ncurses fails to switch to a color pair if
13620 one or both of the colors are the implicit default colors. This
13621 change records the default colors when TUI is initialized, and
13622 then specifies them explicitly when a color pair uses the default
13623 colors. This allows color styling in TUI mode on MS-Windows.
13624
13625 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
13626 ncurses_norm_attr.
13627 (tui_initialize_io) [__MINGW32__]: Record the default terminal
13628 colors in ncurses_norm_attr.
13629 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
13630 "none", replace it with the default color recorded in
13631 ncurses_norm_attr.
13632
3b336828
TT
136332019-03-14 Tom Tromey <tromey@adacore.com>
13634
13635 * source-cache.h (class source_cache) <get_source_lines>: Return
13636 std::string.
13637 * source-cache.c (source_cache::extract_lines): Handle case where
13638 first_pos==npos. Return std::string.
13639 (source_cache::get_source_lines): Update.
13640
d085f989
TT
136412019-03-14 Tom Tromey <tromey@adacore.com>
13642
13643 * NEWS: Add item for "style sources" commands.
13644 * source-cache.c (source_cache::get_source_lines): Check
13645 source_styling.
13646 * cli/cli-style.c (source_styling): New global.
13647 (_initialize_cli_style): Add "style sources" commands.
13648 (show_style_sources): New function.
13649 * cli/cli-style.h (source_styling): Declare.
13650
6f11e682
TT
136512019-03-14 Pedro Alves <palves@redhat.com>
13652 Tom Tromey <tromey@adacore.com>
13653
13654 * tui/tui-winsource.h (tui_refill_source_window): Declare.
13655 * tui/tui-winsource.c (tui_refill_source_window): New function,
13656 from...
13657 (tui_horizontal_source_scroll): ... here. Move some logic.
13658 * cli/cli-style.c (set_style_enabled): Notify new observable.
13659 * tui/tui-hooks.c (tui_redisplay_source): New function.
13660 (tui_attach_detach_observers): Attach or detach
13661 tui_redisplay_source.
13662 * observable.h (source_styling_changed): New observable.
13663 * observable.c: Define source_styling_changed observable.
13664
a068643d
TT
136652019-03-13 Tom Tromey <tromey@adacore.com>
13666
13667 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
13668 (i386_gnu_nat_target::store_registers): Update.
13669 * target-debug.h (target_debug_print_std_string): New macro.
13670 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
13671 * windows-tdep.c (display_one_tib): Update.
13672 * tui/tui-stack.c (tui_make_status_line): Update.
13673 * top.c (print_inferior_quit_action): Update.
13674 * thread.c (thr_try_catch_cmd): Update.
13675 (add_thread_with_info): Update.
13676 (thread_target_id_str): Update.
13677 (thr_try_catch_cmd): Update.
13678 (thread_command): Update.
13679 (thread_find_command): Update.
13680 * record-btrace.c (record_btrace_target::info_record)
13681 (record_btrace_resume_thread, record_btrace_target::resume)
13682 (record_btrace_cancel_resume, record_btrace_step_thread)
13683 (record_btrace_target::wait, record_btrace_target::wait)
13684 (record_btrace_target::wait, record_btrace_target::stop): Update.
13685 * progspace.c (print_program_space): Update.
13686 * process-stratum-target.c
13687 (process_stratum_target::thread_address_space): Update.
13688 * linux-fork.c (linux_fork_mourn_inferior)
13689 (detach_checkpoint_command, info_checkpoints_command)
13690 (linux_fork_context): Update.
13691 (linux_fork_detach): Update.
13692 (class scoped_switch_fork_info): Update.
13693 (delete_checkpoint_command): Update.
13694 * infrun.c (follow_fork_inferior): Update.
13695 (follow_fork_inferior): Update.
13696 (proceed_after_vfork_done): Update.
13697 (handle_vfork_child_exec_or_exit): Update.
13698 (follow_exec): Update.
13699 (displaced_step_prepare_throw): Update.
13700 (displaced_step_restore): Update.
13701 (start_step_over): Update.
13702 (resume_1): Update.
13703 (clear_proceed_status_thread): Update.
13704 (proceed): Update.
13705 (print_target_wait_results): Update.
13706 (do_target_wait): Update.
13707 (context_switch): Update.
13708 (stop_all_threads): Update.
13709 (restart_threads): Update.
13710 (finish_step_over): Update.
13711 (handle_signal_stop): Update.
13712 (switch_back_to_stepped_thread): Update.
13713 (keep_going_pass_signal): Update.
13714 (print_exited_reason): Update.
13715 (normal_stop): Update.
13716 * inferior.c (inferior_pid_to_str): Change return type.
13717 (print_selected_inferior): Update.
13718 (add_inferior): Update.
13719 (detach_inferior): Update.
13720 * dummy-frame.c (fprint_dummy_frames): Update.
13721 * dcache.c (dcache_info_1): Update.
13722 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
13723 (btrace_fetch, btrace_clear): Update.
13724 * linux-tdep.c (linux_core_pid_to_str): Change return type.
13725 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
13726 type.
13727 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
13728 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
13729 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
13730 * gdbarch.c, gdbarch.h: Rebuild.
13731 * gdbarch.sh (core_pid_to_str): Change return type.
13732 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
13733 return type.
13734 (windows_nat_target::pid_to_str): Change return type.
13735 (windows_delete_thread): Update.
13736 (windows_nat_target::attach): Update.
13737 (windows_nat_target::files_info): Update.
13738 * target-delegates.c: Rebuild.
13739 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
13740 return type.
13741 (sol_thread_target::pid_to_str): Change return type.
13742 * remote.c (class remote_target) <pid_to_str>: Change return
13743 type.
13744 (remote_target::pid_to_str): Change return type.
13745 (extended_remote_target::attach, remote_target::remote_stop_ns)
13746 (remote_target::remote_notif_remove_queued_reply)
13747 (remote_target::push_stop_reply, remote_target::disable_btrace):
13748 Update.
13749 (extended_remote_target::attach): Update.
13750 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
13751 type.
13752 (gdbsim_target::pid_to_str): Change return type.
13753 * ravenscar-thread.c (struct ravenscar_thread_target)
13754 <pid_to_str>: Change return type.
13755 (ravenscar_thread_target::pid_to_str): Change return type.
13756 * procfs.c (class procfs_target) <pid_to_str>: Change return
13757 type.
13758 (procfs_target::pid_to_str): Change return type.
13759 (procfs_target::attach): Update.
13760 (procfs_target::detach): Update.
13761 (procfs_target::fetch_registers): Update.
13762 (procfs_target::store_registers): Update.
13763 (procfs_target::wait): Update.
13764 (procfs_target::files_info): Update.
13765 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
13766 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
13767 return type.
13768 (nto_procfs_target::pid_to_str): Change return type.
13769 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
13770 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
13771 return type.
13772 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
13773 (exit_lwp): Update.
13774 (attach_proc_task_lwp_callback, get_detach_signal)
13775 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
13776 (linux_nat_target::resume, wait_lwp, stop_callback)
13777 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
13778 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
13779 (linux_nat_wait_1, resume_stopped_resumed_lwps)
13780 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
13781 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
13782 type.
13783 (inf_ptrace_target::attach): Update.
13784 (inf_ptrace_target::files_info): Update.
13785 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
13786 type.
13787 (go32_nat_target::pid_to_str): Change return type.
13788 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
13789 (gnu_nat_target::wait): Update.
13790 (gnu_nat_target::wait): Update.
13791 (gnu_nat_target::resume): Update.
13792 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
13793 (fbsd_nat_target::wait): Update.
13794 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
13795 type.
13796 (darwin_nat_target::attach): Update.
13797 * corelow.c (class core_target) <pid_to_str>: Change return type.
13798 (core_target::pid_to_str): Change return type.
13799 * target.c (normal_pid_to_str): Change return type.
13800 (default_pid_to_str): Likewise.
13801 (target_pid_to_str): Change return type.
13802 (target_translate_tls_address): Update.
13803 (target_announce_detach): Update.
13804 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
13805 return type.
13806 (bsd_uthread_target::pid_to_str): Change return type.
13807 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
13808 type.
13809 (bsd_kvm_target::pid_to_str): Change return type.
13810 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
13811 return type.
13812 (aix_thread_target::pid_to_str): Change return type.
13813 * target.h (struct target_ops) <pid_to_str>: Change return type.
13814 (target_pid_to_str, normal_pid_to_str): Likewise.
13815 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
13816 type.
13817 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
13818 type.
13819 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
13820 return type.
13821 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
13822 type.
13823 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
13824 type.
13825 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
13826 return type.
13827
b4be1b06
SM
138282019-03-13 Simon Marchi <simon.marchi@ericsson.com>
13829
13830 * NEWS: Mention that the new default MI version is 3. Mention
13831 changes to the output of commands and events that deal with
13832 multi-location breakpoints.
13833 * breakpoint.c: Include "mi/mi-out.h".
13834 (print_one_breakpoint): Change output syntax if using MI version
13835 >= 3.
13836 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
13837 New.
13838 (mi_multi_location_breakpoint_output_fixed): New.
13839 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
13840 (mi_cmd_fix_multi_location_breakpoint_output): New.
13841 (mi_multi_location_breakpoint_output_fixed): New.
13842 * mi/mi-cmds.c (mi_cmds): Register command
13843 -fix-multi-location-breakpoint-output.
13844 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
13845 interpreter "mi".
13846
8e5e5494
SM
138472019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
13848
13849 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
13850 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
13851 instantiate mi_ui_out based on interpreter name.
13852 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
13853 * mi/mi-main.c (mi_load_progress): Likewise.
13854
197df35e
JB
138552019-03-12 John Baldwin <jhb@FreeBSD.org>
13856
13857 * NEWS: Combine separate "New targets" sections for 8.3.
13858
8399425f
JB
138592019-03-12 John Baldwin <jhb@FreeBSD.org>
13860
13861 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
13862 (ppcfbsd_init_abi): Install gdbarch
13863 "fetch_tls_load_module_address" and "get_thread_local_address"
13864 methods.
13865
b0f87ed0
JB
138662019-03-12 John Baldwin <jhb@FreeBSD.org>
13867
13868 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
13869 (riscv_fbsd_init_abi): Install gdbarch
13870 "fetch_tls_load_module_address" and "get_thread_local_address"
13871 methods.
13872
ce25aa57
JB
138732019-03-12 John Baldwin <jhb@FreeBSD.org>
13874
13875 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
13876 (i386fbsd_init_abi): Install gdbarch
13877 "fetch_tls_load_module_address" and "get_thread_local_address"
13878 methods.
13879
f5424cfa
JB
138802019-03-12 John Baldwin <jhb@FreeBSD.org>
13881
13882 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
13883 (amd64fbsd_init_abi): Install gdbarch
13884 "fetch_tls_load_module_address" and "get_thread_local_address"
13885 methods.
13886
945f3901
JB
138872019-03-12 John Baldwin <jhb@FreeBSD.org>
13888
13889 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
13890 (struct fbsd_pspace_data): New type.
13891 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
13892 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
13893 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
13894 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
13895 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
13896
ef0bd204
JB
138972019-03-12 John Baldwin <jhb@FreeBSD.org>
13898
13899 * gdbtypes.c (lookup_struct_elt): New function.
13900 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
13901 * gdbtypes.h (struct struct_elt): New type.
13902 (lookup_struct_elt): New prototype.
13903
36c53a02
JB
139042019-03-12 John Baldwin <jhb@FreeBSD.org>
13905
13906 * gdbtypes.c (lookup_struct_elt_type): Update comment and
13907 remove disabled code block.
13908
6e056c81
JB
139092019-03-12 John Baldwin <jhb@FreeBSD.org>
13910
13911 * gdbarch.sh (get_thread_local_address): New method.
13912 * gdbarch.h, gdbarch.c: Regenerate.
13913 * target.c (target_translate_tls_address): Use
13914 gdbarch_get_thread_local_address if present instead of
13915 target::get_thread_local_address.
13916
cd250a18
JB
139172019-03-12 John Baldwin <jhb@FreeBSD.org>
13918
13919 * target.h (target::get_thread_local_address): Update comment.
13920
df22c1e5
JB
139212019-03-12 John Baldwin <jhb@FreeBSD.org>
13922
13923 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
13924 objfile->separate_debug_objfile_backlink if not NULL.
13925
dd6876c9
JB
139262019-03-12 John Baldwin <jhb@FreeBSD.org>
13927
13928 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
13929 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
13930 (amd64bsd_store_inferior_registers): Likewise.
13931 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
13932 Enable segment base registers.
13933 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
13934 PT_GETFSBASE and PT_GETGSBASE.
13935 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
13936 PT_SETGSBASE.
13937 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
13938 segment base registers.
13939 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
13940
1163a4b7
JB
139412019-03-12 John Baldwin <jhb@FreeBSD.org>
13942
13943 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
13944 Update calls to i386_target_description to add 'segments'
13945 parameter.
13946 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
13947 add segment base registers.
13948 * arch/i386.c (i386_create_target_description): Add 'segments'
13949 parameter to enable segment base registers.
13950 * arch/i386.h (i386_create_target_description): Likewise.
13951 * features/i386/32bit-segments.xml: New file.
13952 * features/i386/32bit-segments.c: Generate.
13953 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
13954 call to i386_target_description to add 'segments' parameter.
13955 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
13956 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
13957 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
13958 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
13959 if feature is present.
13960 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
13961 Add 'segments' parameter to call to i386_target_description.
13962 (i386_target_description): Add 'segments' parameter to enable
13963 segment base registers.
13964 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
13965 to call to i386_target_description.
13966 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
13967 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
13968 Define I386_NUM_REGS.
13969 (i386_target_description): Add 'segments' parameter to enable
13970 segment base registers.
13971
3a350822
EZ
139722019-03-12 Eli Zaretskii <eliz@gnu.org>
13973
13974 PR/24325
13975 * source-cache.c: #undef open and close, to avoid unresolved
13976 externals during linking.
13977
ffdd69cf
TT
139782019-03-12 Tom Tromey <tromey@adacore.com>
13979
13980 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
13981 const. Add initializers.
13982 (_initialize_remote): Don't initialize ptid globals.
13983
ec148c57
PA
139842019-03-12 Pedro Alves <palves@redhat.com>
13985
13986 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
13987
32764270
PA
139882019-03-12 Pedro Alves <palves@redhat.com>
13989
13990 * cp-name-parser.y (main): Remove unused 'len' variable.
13991
17547186
TT
139922019-03-12 Tom Tromey <tromey@adacore.com>
13993
13994 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
13995 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
13996
d3a70e03
TT
139972019-03-12 Tom Tromey <tromey@adacore.com>
13998
13999 * linux-nat.c (iterate_over_lwps): Update.
14000 (stop_callback): Remove parameter.
14001 (stop_wait_callback, detach_callback, resume_set_callback)
14002 (select_singlestep_lwp_callback, set_ignore_sigint)
14003 (status_callback, resumed_callback, resume_clear_callback)
14004 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
14005 data parameter.
14006 (linux_nat_target::detach, linux_nat_target::resume)
14007 (linux_stop_and_wait_all_lwps, select_event_lwp)
14008 (linux_nat_filter_event, linux_nat_wait_1)
14009 (linux_nat_target::kill, linux_nat_target::stop)
14010 (linux_nat_target::stop): Update.
14011 (linux_nat_resume_callback): Change type.
14012 (resume_stopped_resumed_lwps, count_events_callback)
14013 (select_event_lwp_callback): Likewise.
14014 (linux_stop_lwp, linux_nat_stop_lwp): Update.
14015 * arm-linux-nat.c (struct update_registers_data): Remove.
14016 (update_registers_callback): Change type.
14017 (arm_linux_insert_hw_breakpoint1): Update.
14018 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
14019 parameter.
14020 (x86_linux_dr_set_addr): Update.
14021 (x86_linux_dr_set_control): Update.
14022 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
14023 (iterate_over_lwps): Use gdb::function_view.
14024 * nat/aarch64-linux-hw-point.c (struct
14025 aarch64_dr_update_callback_param): Remove.
14026 (debug_reg_change_callback): Change type.
14027 (aarch64_notify_debug_reg_change): Update.
14028 * s390-linux-nat.c (s390_refresh_per_info): Update.
14029
82cb27ff
TT
140302019-03-11 Tom Tromey <tromey@adacore.com>
14031
14032 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
14033 redundant assignment to "this_cu".
14034
568c0683
SM
140352019-03-08 Simon Marchi <simon.marchi@efficios.com>
14036
14037 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
14038
f09ce22d
SM
140392019-03-08 Simon Marchi <simon.marchi@efficios.com>
14040
14041 * gdbtypes.c (rank_one_type_parm_set): New function extracted
14042 from...
14043 (rank_one_type): ... this.
14044
595f96a9
SM
140452019-03-08 Simon Marchi <simon.marchi@efficios.com>
14046
14047 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
14048 from...
14049 (rank_one_type): ... this.
14050
2598a94b
SM
140512019-03-08 Simon Marchi <simon.marchi@efficios.com>
14052
14053 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
14054 from...
14055 (rank_one_type): ... this.
14056
7f17b20d
SM
140572019-03-08 Simon Marchi <simon.marchi@efficios.com>
14058
14059 * gdbtypes.c (rank_one_type_parm_float): New function extracted
14060 from...
14061 (rank_one_type): ... this.
14062
2c509035
SM
140632019-03-08 Simon Marchi <simon.marchi@efficios.com>
14064
14065 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
14066 from...
14067 (rank_one_type): ... this.
14068
0dd322dc
SM
140692019-03-08 Simon Marchi <simon.marchi@efficios.com>
14070
14071 * gdbtypes.c (rank_one_type_parm_range): New function extracted
14072 from...
14073 (rank_one_type): ... this.
14074
41ea4728
SM
140752019-03-08 Simon Marchi <simon.marchi@efficios.com>
14076
14077 * gdbtypes.c (rank_one_type_parm_char): New function extracted
14078 from...
14079 (rank_one_type): ... this.
14080
793cd1d2
SM
140812019-03-08 Simon Marchi <simon.marchi@efficios.com>
14082
14083 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
14084 from...
14085 (rank_one_type): ... this.
14086
34910087
SM
140872019-03-08 Simon Marchi <simon.marchi@efficios.com>
14088
14089 * gdbtypes.c (rank_one_type_parm_int): New function extracted
14090 from...
14091 (rank_one_type): ... this.
14092
f1f832d6
SM
140932019-03-08 Simon Marchi <simon.marchi@efficios.com>
14094
14095 * gdbtypes.c (rank_one_type_parm_func): New function extracted
14096 from...
14097 (rank_one_type): ... this.
14098
b9f4512f
SM
140992019-03-08 Simon Marchi <simon.marchi@efficios.com>
14100
14101 * gdbtypes.c (rank_one_type_parm_array): New function extracted
14102 from...
14103 (rank_one_type): ... this.
14104
9293fc63
SM
141052019-03-08 Simon Marchi <simon.marchi@efficios.com>
14106
14107 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
14108 from...
14109 (rank_one_type): ... this.
14110
e3abbe7e
PW
141112019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14112
14113 * inferior.c (initialize_inferiors): Ensure 'help set/show print
14114 inferior-events' shows the example events.
14115
e4adb939
EZ
141162019-03-08 Eli Zaretskii <eliz@gnu.org>
14117
14118 Support styling on native MS-Windows console
14119
14120 PR/24315
14121 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
14122 on MS-Windows if $TERM is not defined.
14123
14124 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
14125
14126 * posix-hdep.c (gdb_console_fputs):
14127 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
14128 functions.
14129 * ui-file.h (gdb_console_fputs): Add prototype.
14130
14131 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
14132 back to fputs only if the former returns zero.
14133
25629dfd
TT
141342019-03-07 Tom Tromey <tom@tromey.com>
14135
14136 * symmisc.c (print_symbol_bcache_statistics): Update.
14137 (print_objfile_statistics): Update.
14138 * symfile.c (allocate_symtab): Update.
14139 * stabsread.c: Don't include bcache.h.
14140 * psymtab.h (struct psymbol_bcache): Don't declare.
14141 (class psymtab_storage) <psymbol_cache>: Now a bcache.
14142 (psymbol_bcache_init, psymbol_bcache_free)
14143 (psymbol_bcache_get_bcache): Don't declare.
14144 * psymtab.c (struct psymbol_bcache): Remove.
14145 (psymtab_storage::psymtab_storage): Update.
14146 (psymtab_storage::~psymtab_storage): Update.
14147 (psymbol_bcache_init, psymbol_bcache_free)
14148 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
14149 (add_psymbol_to_bcache): Update.
14150 (allocate_psymtab): Update.
14151 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
14152 macro_cache>: No longer pointers.
14153 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
14154 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
14155 * macrotab.c (macro_bcache): Update.
14156 * macroexp.c: Don't include bcache.h.
14157 * gdbtypes.c (check_types_worklist): Update.
14158 (types_deeply_equal): Remove TRY/CATCH. Update.
14159 * elfread.c (elf_symtab_read): Update.
14160 * dwarf2read.c: Don't include bcache.h.
14161 * buildsym.c (buildsym_compunit::get_macro_table): Update.
14162 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
14163 (print_bcache_statistics, bcache_memory_used): Don't declare.
14164 (struct bcache): Move from bcache.c. Add constructor, destructor,
14165 methods. Rename all data members.
14166 * bcache.c (struct bcache): Move to bcache.h.
14167 (bcache::expand_hash_table): Rename from expand_hash_table.
14168 (bcache): Remove.
14169 (bcache::insert): Rename from bcache_full.
14170 (bcache::compare): Rename from bcache_compare.
14171 (bcache_xmalloc): Remove.
14172 (bcache::~bcache): Rename from bcache_xfree.
14173 (bcache::print_statistics): Rename from print_bcache_statistics.
14174 (bcache::memory_used): Rename from bcache_memory_used.
14175
fe726667
PA
141762019-03-07 Pedro Alves <palves@redhat.com>
14177
14178 * infrun.c (normal_stop): Also check for
14179 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
14180
7584bb30
AB
141812019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
14182
14183 * f-lang.c (value_from_host_double): Moved to...
14184 * value.c (value_from_host_double): ...here.
14185 * value.h (value_from_host_double): Declare.
14186 * guile/scm-math.c (vlscm_convert_typed_number): Use
14187 value_from_host_double.
14188 (vlscm_convert_number): Likewise.
14189 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
14190 * python/py-value.c (convert_value_from_python): Likewise.
14191
a7b1986e
TT
141922019-03-06 Tom Tromey <tom@tromey.com>
14193
14194 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
14195
0ccf4211
TT
141962019-03-06 Tom Tromey <tom@tromey.com>
14197
14198 * utils.h (free_current_contents): Don't declare.
14199 * utils.c (free_current_contents): Remove.
14200
fe7b42e5
TT
142012019-03-06 Tom Tromey <tom@tromey.com>
14202
14203 * top.c (quit_force): Update.
14204 * main.c (captured_command_loop): Update.
14205 * common/new-op.c (operator new): Update.
14206 * common/common-exceptions.c (struct catcher)
14207 <save_cleanup_chain>: Remove member.
14208 (exceptions_state_mc_init): Update.
14209 (exception_try_scope_entry): Return nullptr.
14210 (exception_try_scope_exit, exception_rethrow)
14211 (throw_exception_sjlj, throw_exception_cxx): Update.
14212 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
14213 (all_cleanups, do_cleanups, discard_cleanups)
14214 (discard_final_cleanups, save_cleanups, save_final_cleanups)
14215 (restore_cleanups, restore_final_cleanups): Don't declare.
14216 (do_final_cleanups): Remove parameter.
14217 * common/cleanups.c (cleanup_chain, make_cleanup)
14218 (make_cleanup_dtor, all_cleanups, do_cleanups)
14219 (discard_my_cleanups, discard_cleanups)
14220 (discard_final_cleanups, save_my_cleanups, save_cleanups)
14221 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
14222 (null_cleanup): Remove.
14223 (do_final_cleanups): Remove parameter.
14224
c6321f19
TT
142252019-03-06 Tom Tromey <tom@tromey.com>
14226
14227 * remote.c (remote_target::remote_parse_stop_reply): Use
14228 unique_xmalloc_ptr.
14229
61b30099
TT
142302019-03-06 Tom Tromey <tom@tromey.com>
14231
14232 * stabsread.c (struct stabs_field_info): Rename from field_info.
14233 <list, fnlist>: Add initializers.
14234 <obstack>: New member.
14235 (read_member_functions, read_struct_fields, read_baseclasses):
14236 Allocate on obstack. Don't use cleanups.
14237 (read_one_struct_field, read_member_functions, read_struct_fields)
14238 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
14239 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
14240 (read_struct_type): Update.
14241
6cceac94
TT
142422019-03-06 Tom Tromey <tom@tromey.com>
14243
14244 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
14245 * common/filestuff.h (make_cleanup_close): Don't declare.
14246 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
14247 Remove.
14248
72412762
TT
142492019-03-06 Tom Tromey <tom@tromey.com>
14250
14251 * solib-aix.c: Use make_scope_exit.
14252
2b6ff1c0
TT
142532019-03-06 Tom Tromey <tom@tromey.com>
14254
14255 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
14256 Use make_scope_exit.
14257
d01c5877
TT
142582019-03-06 Tom Tromey <tom@tromey.com>
14259
14260 * solib-svr4.c (disable_probes_interface): Remove parameter.
14261 (svr4_handle_solib_event): Use make_scope_exit.
14262
32603266
TT
142632019-03-06 Tom Tromey <tom@tromey.com>
14264
14265 * remote.c (struct stop_reply_deleter): Remove.
14266 (stop_reply_up): Update.
14267 (struct stop_reply): Derive from notif_event. Don't typedef.
14268 <regcache>: Now a std::vector.
14269 (stop_reply_xfree): Remove.
14270 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
14271 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
14272 (remote_target::discard_pending_stop_replies): Use delete.
14273 (remote_target::remote_parse_stop_reply): Update.
14274 (remote_target::process_stop_reply): Update.
14275 * remote-notif.h (struct notif_event): Add virtual destructor.
14276 Remove "dtr" member.
14277 (struct notif_client) <alloc_event>: Return a unique_ptr.
14278 (notif_event_xfree): Don't declare.
14279 (notif_event_up): New typedef.
14280 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
14281 (notif_event_xfree, do_notif_event_xfree): Remove.
14282 (remote_notif_state_xfree): Update.
14283
9799571e
TT
142842019-03-06 Tom Tromey <tom@tromey.com>
14285
14286 * infrun.c (displaced_step_clear_cleanup): Now a
14287 forward_scope_exit type.
14288 (displaced_step_prepare_throw): Update.
14289 (displaced_step_fixup): Update.
14290
09e3c4ca
TT
142912019-03-06 Tom Tromey <tom@tromey.com>
14292
14293 * inferior.h (class inferior): Update comment.
14294 * gdbthread.h (class thread_info): Update comment.
14295
e2a03548
TT
142962019-03-06 Joel Brobecker <brobecker@adacore.com>
14297 Tom Tromey <tom@tromey.com>
14298
14299 * stabsread.h (struct stab_section_list): Remove.
14300 (coffstab_build_psymtabs): Update.
14301 * dbxread.c (symbuf_sections): Now a std::vector.
14302 (sect_idx): New global.
14303 (fill_symbuf): Update.
14304 (coffstab_build_psymtabs): Change type of stabsects parameter.
14305 Update.
14306 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
14307 std::vector.
14308 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
14309 (coff_locate_sections): Update.
14310 (coff_symfile_read): Remove cleanups. Update.
14311 (init_stringtab): Add storage parameter.
14312 (free_stringtab, free_stringtab_cleanup): Remove.
14313 (init_lineno): Add storage parameter.
14314 (free_linetab, free_linetab_cleanup): Remove.
14315
b7e60d85
PA
143162019-03-06 Pedro Alves <palves@redhat.com>
14317
14318 * linux-fork.c (fork_info::clobber_regs): Delete.
14319 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
14320 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
14321 comment. Adjust.
14322 (scoped_switch_fork_info::scoped_switch_fork_info)
14323 (checkpoint_command, linux_fork_context): Adjust
14324 fork_save_infrun_state calls.
14325
e52c971f
PA
143262019-03-06 Pedro Alves <palves@redhat.com>
14327
14328 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
14329 (inf_has_multiple_threads): Return 'bool' and rewrite using
14330 inferior_info::threads().
14331
06974e6c
PA
143322019-03-06 Pedro Alves <palves@redhat.com>
14333
14334 * linux-fork.c: Include <list>.
14335 (fork_list): Now a std::list instance.
14336 (fork_info): Add ctor, dtor, and in-class initialize all fields.
14337 (forks_exist_p, find_last_fork): Adjust.
14338 (new_fork): Delete.
14339 (one_fork_p): New.
14340 (add_fork): Adjust.
14341 (free_fork): Delete, folded into fork_info::~fork_info().
14342 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
14343 Adjust.
14344 (init_fork_list): Delete.
14345 (linux_fork_killall, linux_fork_mourn_inferior)
14346 (linux_fork_detach, info_checkpoints_command): Adjust.
14347 (_initialize_linux_fork): No longer call init_fork_list.
14348
72f31aea
PA
143492019-03-06 Pedro Alves <palves@redhat.com>
14350
14351 * linux-fork.c (new_fork): New, split out of ...
14352 (add_fork): ... this. Return void. Move "first fork" special
14353 case from here, to ...
14354 (checkpoint_command): ... here.
14355 * linux-linux.h (add_fork): Return void.
14356
efbecbc1
AB
143572019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14358
14359 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
14360
0841c79a
AB
143612019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14362 Chris January <chris.january@arm.com>
14363 David Lecomber <david.lecomber@arm.com>
14364
14365 * f-exp.y: New token, UNOP_INTRINSIC.
14366 (exp): New pattern using UNOP_INTRINSIC token.
14367 (f77_keywords): Add 'abs' keyword.
14368 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
14369 (value_from_host_double): New function.
14370 (evaluate_subexp_f): Support UNOP_ABS.
14371
4a270568
AB
143722019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14373
14374 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
14375 types.
14376
067630bd
AB
143772019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14378
14379 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
14380 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
14381 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
14382
3be47f7a
AB
143832019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14384
14385 * f-exp.y (convert_to_kind_type): Handle more type kinds.
14386
4d00f5d8
AB
143872019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14388 Chris January <chris.january@arm.com>
14389
14390 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
14391 * f-exp.y: Define 'KIND' token.
14392 (exp): New pattern for KIND expressions.
14393 (ptype): Handle types with a kind extension.
14394 (direct_abs_decl): Extend to spot kind extensions.
14395 (f77_keywords): Add 'kind' to the list.
14396 (push_kind_type): New function.
14397 (convert_to_kind_type): New function.
14398 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
14399 * parse.c (operator_length_standard): Likewise.
14400 * parser-defs.h (enum type_pieces): Add tp_kind.
14401 * std-operator.def: Add UNOP_KIND.
14402
e454224f
AB
144032019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14404
14405 * f-exp.y (f_parse): Set yydebug.
14406
9dad4a58
AB
144072019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14408
14409 * f-lang.c (evaluate_subexp_f): New function.
14410 (exp_descriptor_f): New global.
14411 (f_language_defn): Use exp_descriptor_f instead of
14412 exp_descriptor_standard.
14413
c8f91604
AB
144142019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14415
14416 * f-exp.y (struct token): Add comments.
14417 (dot_ops): Remove uppercase versions and the end marker.
14418 (f77_keywords): Likewise.
14419 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
14420 entries in the dot_ops array are case insensitive, and use
14421 strncasecmp to compare strings. Also some whitespace cleanup in
14422 this area. Similar for the f77_keywords array, except entries in
14423 this list might be case sensitive.
14424
dd9f2c76
AB
144252019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14426
14427 * f-exp.y (struct f77_boolean_val): Add comments.
14428 (boolean_values): Remove uppercase versions, and end marker.
14429 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
14430 and use strncasecmp to achieve case insensitivity. Additionally,
14431 perform whitespace cleanup around this code.
14432
67a3048c
TT
144332019-03-06 Tom Tromey <tromey@adacore.com>
14434
14435 * remote-sim.c (gdbsim_target_open): Use result of
14436 gdb_argv::release.
14437
aa3cfbda
RB
144382019-03-06 Richard Bunt <richard.bunt@arm.com>
14439 Dirk Schubert <dirk.schubert@arm.com>
14440 Chris January <chris.january@arm.com>
14441
14442 * eval.c (evaluate_subexp_standard): Call Fortran argument
14443 wrapping logic.
14444 * f-lang.c (struct value): A value which can be passed into a
14445 Fortran function call.
14446 (fortran_argument_convert): Wrap Fortran arguments in a pointer
14447 where appropriate.
14448 (struct type): Value ready for a Fortran function call.
14449 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
14450 is needed.
14451 * f-lang.h (fortran_argument_convert): Declaration.
14452 (fortran_preserve_arg_pointer): Declaration.
14453 * infcall.c (value_arg_coerce): Call Fortran argument logic.
14454
ea38e5df
TT
144552019-03-05 Tom Tromey <tromey@adacore.com>
14456
14457 * python/py-prettyprint.c (print_string_repr): Remove #if.
14458 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
14459
06b5b831
TT
144602019-03-05 Tom Tromey <tromey@adacore.com>
14461
14462 * target.c (the_dummy_target): Move later. Change type to
14463 "dummy_target".
14464 (initialize_targets): Don't initialize the_dummy_target.
14465
edbd9e45
TT
144662019-03-05 Tom Tromey <tromey@adacore.com>
14467
14468 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
14469 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
14470
c119e040
TT
144712019-03-05 Tom Tromey <tromey@adacore.com>
14472
14473 * windows-nat.c (windows_nat_target::attach)
14474 (windows_nat_target::detach): Don't call gdb_flush.
14475 * valprint.c (generic_val_print, val_print, val_print_string):
14476 Don't call gdb_flush.
14477 * utils.c (defaulted_query): Don't call gdb_flush.
14478 * typeprint.c (print_type_scalar): Don't call gdb_flush.
14479 * target.c (target_announce_detach): Don't call gdb_flush.
14480 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
14481 * remote.c (extended_remote_target::attach): Don't call
14482 gdb_flush.
14483 * procfs.c (procfs_target::detach): Don't call gdb_flush.
14484 * printcmd.c (do_examine): Don't call gdb_flush.
14485 (info_display_command): Don't call gdb_flush.
14486 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
14487 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
14488 * memattr.c (info_mem_command): Don't call gdb_flush.
14489 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
14490 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
14491 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
14492 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
14493 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
14494 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
14495 (gnu_nat_target::detach): Don't call gdb_flush.
14496 * f-valprint.c (f_val_print): Don't call gdb_flush.
14497 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
14498 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
14499 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
14500 gdb_flush.
14501 * c-valprint.c (c_val_print): Don't call gdb_flush.
14502 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
14503
895dafa6
TT
145042019-03-05 Tom Tromey <tromey@adacore.com>
14505
14506 * varobj.c (update_dynamic_varobj_children): Update.
14507 (install_default_visualizer): Use reset, not release.
14508 * value.c (set_internalvar): Update.
14509 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
14510 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
14511 ATTRIBUTE_UNUSED_RESULT.
14512
88a774b9
TT
145132019-03-05 Tom Tromey <tromey@adacore.com>
14514
14515 * remote.c (class scoped_remote_fd) <release>: Add
14516 ATTRIBUTE_UNUSED_RESULT.
14517
4e4a8b93
TT
145182019-03-05 Tom Tromey <tromey@adacore.com>
14519
14520 * macroexp.c (struct macro_buffer) <release>: Add
14521 ATTRIBUTE_UNUSED_RESULT.
14522
083eef1f
TT
145232019-03-05 Tom Tromey <tromey@adacore.com>
14524
14525 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
14526 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
14527 ATTRIBUTE_UNUSED_RESULT.
14528
3cabd438
TT
145292019-03-05 Tom Tromey <tromey@adacore.com>
14530
14531 * common/scoped_fd.h (class scoped_fd) <release>: Add
14532 ATTRIBUTE_UNUSED_RESULT.
14533
41e3300a
TT
145342019-03-05 Tom Tromey <tromey@adacore.com>
14535
14536 * parser-defs.h (struct parser_state) <release>: Add
14537 ATTRIBUTE_UNUSED_RESULT.
14538
18cb7c9f
TT
145392019-03-05 Tom Tromey <tromey@adacore.com>
14540
14541 * utils.h (class gdb_argv) <release>: Add
14542 ATTRIBUTE_UNUSED_RESULT.
14543 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
14544
41fa577f
EZ
145452019-03-02 Eli Zaretskii <eliz@gnu.org>
14546
a6a4b2c6
EZ
14547 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
14548 for-loop range, to avoid compiler warnings.
14549
14550 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
14551 avoid compiler warnings about unused variables.
14552
742a7df5
EZ
14553 * NEWS: Mention end of support for native debugging on MS-Windows
14554 before XP.
14555
41fa577f
EZ
14556 PR gdb/24292
14557 * common/netstuff.c:
14558 * gdbserver/gdbreplay.c
14559 * gdbserver/remote-utils.c:
14560 * ser-tcp.c:
14561 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
14562 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
14563 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
14564 'getaddrinfo' and 'freeaddrinfo' were not available before
14565 Windows XP, and mingw.org's MinGW headers by default define
14566 _WIN32_WINNT to 0x500.
14567
827f438f
GB
145682019-03-01 Gary Benson <gbenson@redhat.com>
14569
14570 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
14571
92137da0
RO
145722019-02-28 Brian Vandenberg <phantall@gmail.com>
14573 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14574
14575 PR gdb/8527
14576 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
14577 set_sigint_trap, clear_sigint_trap.
14578
799efbe8
PW
145792019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14580
14581 * target.c (target_detach): Clear the regcache and the
14582 frame cache.
14583
8ed25214
PA
145842019-02-27 Pedro Alves <palves@redhat.com>
14585
14586 * utils.c (set_screen_size): When we cap the height/width sizes,
14587 tweak the corresponding command variable to show "unlimited":
14588
23031e31
SJ
145892019-02-27 Saagar Jha <saagar@saagarjha.com>
14590 Pedro Alves <palves@redhat.com>
14591
14592 * utils.c (set_screen_size): Reduce "infinite" rows and columns
14593 before calling rl_set_screen_size.
14594
6c28e44a
TT
145952019-02-27 Tom Tromey <tromey@adacore.com>
14596
14597 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
14598 define.
14599 * python/py-value.c: Remove Python 2.4 workaround.
14600 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
14601 workaround.
14602 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
14603 Python 2.4 workaround.
14604 * python/python-internal.h: Remove Python 2.4 comment.
14605 (Py_ssize_t): Don't define.
14606 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
14607 (gdb_Py_DECREF): Remove Python 2.4 workaround.
14608 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
14609 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
14610 * python/python.c (do_start_initialization): Remove Python 2.4
14611 workaround.
14612 * python/py-prettyprint.c (class dummy_python_frame): Remove.
14613 (print_children): Remove Python 2.4 workaround.
14614 * python/py-inferior.c (buffer_procs): Remove Python 2.4
14615 workaround.
14616 (CHARBUFFERPROC_NAME): Remove.
14617 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
14618 Python 2.4 workaround.
14619
2c3fc25d 146202019-02-27 Kevin Buettner <kevinb@redhat.com>
799efbe8 14621
2c3fc25d
KB
14622 * NEWS: Note minimum Python version.
14623
6ca62222
KB
146242019-02-27 Kevin Buettner <kevinb@redhat.com>
14625
14626 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
14627 code from these functions. Remove corresponding ifdefs. Use
14628 Py_buffer_up instead of explicit calls to PyBuffer_Release.
14629 Remove gotos and target of gotos.
14630 (infpy_search_memory): Likewise.
14631
f4bc7d2c
AB
146322019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14633
14634 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
14635 (hppa_gdbarch_init): Don't register deleted functions with
14636 gdbarch.
14637
9734a586
AB
146382019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14639
14640 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
14641 (h8300_unwind_sp): Delete.
14642 (h8300_dummy_id): Delete.
14643 (h8300_gdbarch_init): Don't register deleted functions with
14644 gdbarch.
14645
68b867f3
AB
146462019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14647
14648 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
14649 (ft32_unwind_pc): Delete.
14650 (ft32_unwind_sp): Delete.
14651 (ft32_gdbarch_init): Don't register deleted functions with
14652 gdbarch.
14653
2fbe7ad0
AB
146542019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14655
14656 * gdb/frv-tdep.c (frv_dummy_id): Delete.
14657 (frv_unwind_pc): Delete.
14658 (frv_unwind_sp): Delete.
14659 (frv_gdbarch_init): Don't register deleted functions with
14660 gdbarch.
14661
76055cbe
AB
146622019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14663
14664 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
14665 (riscv_unwind_pc): Delete.
14666 (riscv_unwind_sp): Delete.
14667 (riscv_gdbarch_init): Don't register deleted functions with
14668 gdbarch.
14669
4133e5a1
AB
146702019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14671
14672 * gdb/csky-tdep.c (csky_dummy_id): Delete.
14673 (csky_unwind_pc): Delete.
14674 (csky_unwind_sp): Delete.
14675 (csky_gdbarch_init): Don't register deleted functions with
14676 gdbarch.
14677
8010f576
AB
146782019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14679
14680 * gdb/cris-tdep.c (cris_dummy_id): Delete.
14681 (cris_unwind_pc): Delete.
14682 (cris_unwind_sp): Delete.
14683 (cris_gdbarch_init): Don't register deleted functions with
14684 gdbarch.
14685
b56bf084
AB
146862019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14687
14688 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
14689 (bfin_unwind_pc): Delete.
14690 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
14691
a19a650f
AB
146922019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14693
14694 * gdb/arm-tdep.c (arm_dummy_id): Delete.
14695 (arm_unwind_pc): Delete.
14696 (arm_unwind_sp): Delete.
14697 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
14698
f8278c3c
AB
146992019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14700
14701 * gdb/arc-tdep.c (arc_dummy_id): Delete.
14702 (arc_unwind_pc): Delete.
14703 (arc_unwind_sp): Delete.
14704 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
14705
480e46cf
AB
147062019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14707
14708 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
14709 (alpha_unwind_pc): Delete.
14710 (alpha_gdbarch_init): Don't register deleted functions with
14711 gdbarch.
14712
7a995095
AB
147132019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14714
14715 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
14716 (aarch64_unwind_pc): Delete.
14717 (aarch64_unwind_sp): Delete.
14718 (aarch64_gdbarch_init): Don't register deleted functions with
14719 gdbarch.
14720
bf9a735e
AB
147212019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14722
14723 * gdbtypes.c (type_align): Don't consider static members when
14724 computing structure alignment.
14725
5561fc30
AB
147262019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14727
14728 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
14729 return 0 for other types.
14730 * arch-utils.c (default_type_align): Always return 0.
14731 * gdbarch.h: Regenerate.
14732 * gdbarch.sh (type_align): Extend comment.
14733 * gdbtypes.c (type_align): Add additional comments, always call
14734 gdbarch_type_align before applying the default rules.
14735 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
14736 generic code will then apply a suitable default.
14737 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
14738 types, return 0 for other types.
14739
9335e75a
JB
147402019-02-27 Joel Brobecker <brobecker@adacore.com>
14741
14742 * NEWS: Create a new section for the next release branch.
14743 Rename the section of the current branch, now that it has
14744 been cut.
14745
3d34d8de
JB
147462019-02-27 Joel Brobecker <brobecker@adacore.com>
14747
14748 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
14749 * version.in: Bump version to 8.3.50.DATE-git.
14750
143420fb
SM
147512019-02-26 Simon Marchi <simon.marchi@efficios.com>
14752
14753 * aix-thread.c (ptid_cmp): Remove unused variable.
14754 (get_signaled_thread): Likewise.
14755 (store_regs_user_thread): Likewise.
14756 (store_regs_kernel_thread): Likewise.
14757 (fetch_regs_kernel_thread): Remove shadowed variable.
14758
172fb711
AB
147592019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
14760
14761 * features/riscv/32bit-cpu.xml: Add register numbers.
14762 * features/riscv/32bit-fpu.c: Regenerate.
14763 * features/riscv/32bit-fpu.xml: Add register numbers.
14764 * features/riscv/64bit-cpu.xml: Add register numbers.
14765 * features/riscv/64bit-fpu.c: Regenerate.
14766 * features/riscv/64bit-fpu.xml: Add register numbers.
14767
26c89782
KB
147682019-02-26 Kevin Buettner <kevinb@redhat.com>
14769
af54ade9 14770 * NEWS: Mention two argument form of gdb.Value constructor.
fe07eca5
KB
14771 * python/py-value.c (convert_buffer_and_type_to_value): New
14772 function.
14773 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
14774 Add support for handling an optional second argument. Call
14775 convert_buffer_and_type_to_value as appropriate.
26c89782
KB
14776 * python/python-internal.h (Py_buffer_deleter): New struct.
14777 (Py_buffer_up): New typedef.
14778
0f58c9e8
JB
147792019-02-25 John Baldwin <jhb@FreeBSD.org>
14780
14781 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
14782 instead of releasing ownership.
14783
0a0f4c01
JR
147842019-02-25 Jordan Rupprecht <rupprecht@google.com>
14785
14786 * dwarf2read.c (open_and_init_dwp_file): Call
14787 elf_numsections instead of bfd_count_sections to initialize
14788 dwp_file->num_sections.
14789
cd5a152c
TT
147902019-02-25 Tom Tromey <tromey@adacore.com>
14791
14792 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
14793
8a6a8513
SDJ
147942019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
14795
14796 * gcore.in: Add '--readnever' option when invoking GDB.
14797
04dcda9c
SM
147982019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
14799
14800 * MAINTAINERS: Update my email address.
14801
07bc701d
SM
148022019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
14803
14804 * build-id.c (build_id_to_debug_bfd_1): New function.
14805 (build_id_to_debug_bfd): Look for separate debug file in
14806 sysroot.
14807
c6f4a5d0
AB
148082019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
14809
14810 * gdbarch.sh: Update the copyright year range that is placed into
14811 generated files.
14812
9600246d
KS
148132019-02-22 Keith Seitz <keiths@redhat.com>
14814
14815 PR symtab/23853
14816 * linespec.c (create_sals_line_offset): Search for the default
14817 symtab's filename instead of its fullname.
14818
7557a514
AH
148192019-02-21 Alan Hayward <alan.hayward@arm.com>
14820
14821 * NEWS: Update style defaults.
14822
ee2bcb0c
AH
148232019-02-21 Alan Hayward <alan.hayward@arm.com>
14824
14825 * main.c (captured_main_1): Disable styling in batch mode.
14826
0c95f9ed
TT
148272019-02-20 Tom Tromey <tom@tromey.com>
14828
14829 * symtab.c (symtab_symbol_info): Fix typos.
14830
c763b894
TT
148312019-02-20 Tom Tromey <tromey@adacore.com>
14832
14833 * findcmd.c (_initialize_mem_search): Use upper case for
14834 metasyntactic variables.
14835
0ef8a082
AH
148362019-02-20 Alan Hayward <alan.hayward@arm.com>
14837
14838 * aarch64-tdep.c (aarch64_add_reggroups): New function.
14839 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
14840
6caa91b6
SM
148412019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
14842
14843 * top.h (source_file_name): Change to std::string.
14844 * top.c (source_file_name): Likewise.
14845 (command_line_input): Adjust.
14846 * cli/cli-script.c (script_from_file): Adjust.
14847
98814c6c
TT
148482019-02-19 Tom Tromey <tromey@adacore.com>
14849
14850 * ravenscar-thread.c
14851 (ravenscar_thread_target::update_thread_list): Don't call
14852 ada_build_task_list.
14853 * ada-lang.h (ada_build_task_list): Don't declare.
14854 * ada-tasks.c (struct ada_tasks_inferior_data)
14855 <task_list_valid_p>: Now bool.
14856 (read_known_tasks, ada_task_list_changed)
14857 (ada_tasks_invalidate_inferior_data): Update.
14858 (read_known_tasks_array): Return bool.
14859 (read_known_tasks_list): Likewise.
14860 (read_known_tasks): Return void.
14861 (ada_build_task_list): Now static.
14862
70cd633e
AB
148632019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
14864
14865 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
14866 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
14867
040b3e95
PW
148682019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14869
14870 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
14871 variant for ada_tasks_pspace_data_handle and
14872 ada_tasks_inferior_data_handle.
14873 (ada_tasks_pspace_data_cleanup): New function.
14874 (ada_tasks_inferior_data_cleanup): New function.
14875
9409233b
TT
148762019-02-17 Tom Tromey <tom@tromey.com>
14877
14878 * macrotab.h (macro_source_fullname): Return a std::string.
14879 * macrotab.c (macro_include, check_for_redefinition)
14880 (macro_undef, macro_lookup_definition, foreach_macro)
14881 (foreach_macro_in_scope): Update.
14882 (macro_source_fullname): Return a std::string.
14883 * macrocmd.c (show_pp_source_pos): Update.
14884
6506371f
TT
148852019-02-17 Tom Tromey <tom@tromey.com>
14886
14887 * macrocmd.c (show_pp_source_pos): Style the file names.
14888
0c820d67
TT
148892019-02-17 Tom Tromey <tom@tromey.com>
14890
14891 PR tui/24197:
14892 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
14893
a0087920
TT
148942019-02-17 Tom Tromey <tom@tromey.com>
14895
14896 * ada-lang.c (user_select_syms): Use filtered printing.
14897 * utils.c (wrap_style): New global.
14898 (desired_style): Remove.
14899 (emit_style_escape): Add stream parameter.
14900 (set_output_style, reset_terminal_style, prompt_for_continue):
14901 Update.
14902 (flush_wrap_buffer): Only flush gdb_stdout.
14903 (wrap_here): Set wrap_style.
14904 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
14905 treat escape sequences as a character. Change when wrap buffer is
14906 flushed.
14907 (fputs_styled): Do not set the output style when the default is
14908 requested.
14909 * ui-style.h (struct ui_file_style) <is_default>: New method.
14910 * source.c (print_source_lines_base): Emit escape sequences in one
14911 piece.
14912
75ba10dc
JB
149132019-02-17 Joel Brobecker <brobecker@adacore.com>
14914
14915 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
14916 integers and enumeration types.
14917
a2cd4f14
JB
149182019-02-17 Joel Brobecker <brobecker@adacore.com>
14919
14920 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
14921 instead of lookup_symbol_in_language
14922 (do_exact_match): New function.
14923 (ada_get_symbol_name_matcher): Return do_exact_match when
14924 doing a verbatim match.
14925
485b851b
TT
149262019-02-15 Tom Tromey <tromey@adacore.com>
14927
14928 * ravenscar-thread.c (ravenscar_thread_target::resume)
14929 (ravenscar_thread_target::wait): Special case wildcard requests.
14930
0b790b1e
TT
149312019-02-15 Tom Tromey <tromey@adacore.com>
14932
14933 * ravenscar-thread.c (base_ptid): Remove.
14934 (struct ravenscar_thread_target) <close>: New method.
14935 <m_base_ptid>: New member.
14936 <update_inferior_ptid, active_task, task_is_currently_active,
14937 runtime_initialized>: Declare methods.
14938 <ravenscar_thread_target>: Add constructor.
14939 (ravenscar_thread_target::task_is_currently_active)
14940 (ravenscar_thread_target::update_inferior_ptid)
14941 (ravenscar_runtime_initialized): Rename. Now methods.
14942 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
14943 (ravenscar_thread_target::update_thread_list): Update.
14944 (ravenscar_thread_target::active_task): Now method.
14945 (ravenscar_thread_target::store_registers)
14946 (ravenscar_thread_target::prepare_to_store)
14947 (ravenscar_thread_target::prepare_to_store)
14948 (ravenscar_thread_target::mourn_inferior): Update.
14949 (ravenscar_inferior_created): Use "new" to create target.
14950 (ravenscar_thread_target::get_ada_task_ptid): Update.
14951 (_initialize_ravenscar): Don't initialize base_ptid.
14952 (ravenscar_ops): Remove global.
14953
dea57a62
TT
149542019-02-15 Tom Tromey <tromey@adacore.com>
14955
14956 * target.h (push_target): Declare new overload.
14957 * target.c (push_target): New overload, taking an rvalue reference.
14958 * remote.c (remote_target::open_1): Use push_target overload.
14959 * corelow.c (core_target_open): Use push_target overload.
14960
989f3c58
TT
149612019-02-15 Tom Tromey <tromey@adacore.com>
14962
14963 * ravenscar-thread.c (is_ravenscar_task)
14964 (ravenscar_task_is_currently_active): Return bool.
14965 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
14966 (_initialize_ravenscar): Remove "(void)".
14967 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
14968 Return bool.
14969
6cbcc006
TT
149702019-02-15 Tom Tromey <tromey@adacore.com>
14971
14972 * ravenscar-thread.c (ravenscar_runtime_initializer)
14973 (has_ravenscar_runtime, get_running_thread_id)
14974 (ravenscar_thread_target::resume): Fix indentation.
14975
7657f14d
TT
149762019-02-15 Tom Tromey <tromey@adacore.com>
14977
14978 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
14979 from ravenscar_arch_ops.
14980 (sparc_ravenscar_ops::fetch_registers)
14981 (sparc_ravenscar_ops::store_registers): Now methods.
14982 (sparc_ravenscar_prepare_to_store): Remove.
14983 (sparc_ravenscar_ops): Redefine.
14984 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
14985 methods and destructor. Remove members.
14986 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
14987 (ravenscar_thread_target::store_registers)
14988 (ravenscar_thread_target::prepare_to_store): Update.
14989 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
14990 Remove.
14991 (struct ppc_ravenscar_powerpc_ops): Derive from
14992 ravenscar_arch_ops.
14993 (ppc_ravenscar_powerpc_ops::fetch_registers)
14994 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
14995 (ppc_ravenscar_powerpc_ops): Redefine.
14996 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
14997 (ppc_ravenscar_e500_ops::fetch_registers)
14998 (ppc_ravenscar_e500_ops::store_registers): Now methods.
14999 (ppc_ravenscar_e500_ops): Redefine.
15000 * aarch64-ravenscar-thread.c
15001 (aarch64_ravenscar_generic_prepare_to_store): Remove.
15002 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
15003 (aarch64_ravenscar_fetch_registers)
15004 (aarch64_ravenscar_store_registers): Now methods.
15005 (aarch64_ravenscar_ops): Redefine.
15006
5b6ea500
TT
150072019-02-15 Tom Tromey <tromey@adacore.com>
15008
15009 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
15010 (ravenscar_thread_target::stopped_by_hw_breakpoint)
15011 (ravenscar_thread_target::stopped_by_watchpoint)
15012 (ravenscar_thread_target::stopped_data_address)
15013 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
15014
e397fd39
TT
150152019-02-15 Tom Tromey <tromey@adacore.com>
15016
15017 * ravenscar-thread.c: Fix some typos.
15018
cc12f4a8
TT
150192019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15020 Tom Tromey <tromey@adacore.com>
15021
15022 * ada-lang.c (ada_exception_sal): Change addr_string to a
15023 std::string.
15024 (create_ada_exception_catchpoint): Update.
15025
5f486660
TT
150262019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15027 Tom Tromey <tromey@adacore.com>
15028
15029 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
15030 (bp_location_ops): Remove.
15031 (base_breakpoint_allocate_location): Update.
15032 (free_bp_location): Update.
15033 * ada-lang.c (class ada_catchpoint_location)
15034 <ada_catchpoint_location>: Remove ops parameter.
15035 (ada_catchpoint_location_dtor): Remove.
15036 (ada_catchpoint_location_ops): Remove.
15037 (allocate_location_exception): Update.
15038 * breakpoint.h (struct bp_location_ops): Remove.
15039 (class bp_location) <bp_location>: Remove bp_location_ops
15040 parameter.
15041 <~bp_location>: Add destructor.
15042 <ops>: Remove.
15043
b671c7fb
TS
150442019-02-14 Thomas Schwinge <thomas@codesourcery.com>
15045 Pedro Alves <palves@redhat.com>
15046
15047 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
15048 'PATH_MAX'.
15049
8071c5ce
DM
150502019-02-14 David Michael <fedora.dm0@gmail.com>
15051 Samuel Thibault <samuel.thibault@gnu.org>
15052 Thomas Schwinge <thomas@codesourcery.com>
15053
15054 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
15055 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
15056
b1041ae0
TS
150572019-02-14 Thomas Schwinge <thomas@codesourcery.com>
15058
924514e1
TS
15059 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
15060 (check_empty): Use "const char *".
15061
c29ee8d4
TS
15062 * gnu-nat.c (gnu_nat_target::detach): Instead of
15063 'detach_inferior (pid)' call
15064 'detach_inferior (find_inferior_pid (pid))'.
15065
6c6ef69f
TS
15066 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
15067 'nat/fork-inferior.o'.
15068 * gnu-nat.c: #include "nat/fork-inferior.h".
15069
2d0a338c
TS
15070 * gnu-nat.c (gnu_nat_target::detach): Instead of
15071 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
15072 * gnu-nat.h: #include "inf-child.h".
15073 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
15074 'i386_gnu_nat_target::fetch_registers'.
15075 (gnu_store_registers): Rename/move to
15076 'i386_gnu_nat_target::store_registers'.
15077
cabb5f06
TS
15078 * config/i386/nm-i386gnu.h: Don't "#include" any files.
15079 * gnu-nat.h (mach_thread_info): New function.
15080 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
15081
b1041ae0
TS
15082 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
15083
2988d01e
KF
150842019-02-14 Frederic Konrad <konrad@adacore.com>
15085
15086 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
15087
c559d709
JB
150882019-02-14 Joel Brobecker <brobecker@adacore.com>
15089
15090 * windows-nat.c (windows_add_thread): Add new parameter
15091 "main_thread_p" with default value set to false. Update
15092 function documentation as well as all callers.
15093 (windows_delete_thread): Likewise.
15094 (fake_create_process): Update call to windows_add_thread.
15095 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
15096 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
15097 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
15098 call to windows_delete_thread.
15099
007024cc
SM
151002019-02-13 Simon Marchi <simon.marchi@ericsson.com>
15101
15102 * MAINTAINERS: Add Andrew Burgess as global maintainer.
15103
f62318e9
JB
151042019-02-12 John Baldwin <jhb@FreeBSD.org>
15105
15106 * symfile.c (find_separate_debug_file): Use canonical path of
15107 sysroot with child_path instead of gdb_sysroot if it is valid.
15108
cd4b7848
JB
151092019-02-12 John Baldwin <jhb@FreeBSD.org>
15110
15111 * symfile.c (find_separate_debug_file): Use child_path to
15112 determine if an object file is under a sysroot.
15113
efac4bfe
JB
151142019-02-12 John Baldwin <jhb@FreeBSD.org>
15115
15116 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
15117 unittests/child-path-selftests.c.
15118 * common/pathstuff.c (child_path): New function.
15119 * common/pathstuff.h (child_path): New prototype.
15120 * unittests/child-path-selftests.c: New file.
15121
402d2bfe
JB
151222019-02-12 John Baldwin <jhb@FreeBSD.org>
15123
15124 * symfile.c (find_separate_debug_file): Look for separate debug
15125 files in debug directories under the sysroot.
15126
1ed9f74e
PW
151272019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15128
15129 * symtab.h (struct minimal_symbol data_p): New const method.
15130 (struct minimal_symbol text_p): Likewise.
15131 * symtab.c (output_source_filename): Use file name style
15132 to print file name.
15133 (print_symbol_info): Likewise.
15134 (print_msymbol_info): Use address style to print addresses.
15135 Use function name style to print executable text symbols.
15136 (expand_symtab_containing_pc): Use data_p.
15137 (find_pc_sect_compunit_symtab): Likewise.
15138
2636d81d
PW
151392019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15140
15141 * breakpoint.c (describe_other_breakpoints): Use address style
15142 to print addresses.
15143 (say_where): Likewise.
15144
ac8c53cc
PW
151452019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15146
15147 * ada-typeprint.c (print_func_type): Print function name
15148 style to print function name.
15149 * c-typeprint.c (c_print_type_1): Likewise.
15150
ea638c43
AH
151512019-02-11 Alan Hayward <alan.hayward@arm.com>
15152
15153 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
15154 for execve.
15155
ab759ca8
PW
151562019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15157
15158 * c-exp.y (direct_abs_decl): Use emplace_back to record the
15159 type_stack.
15160
aff29d1c
JB
151612019-02-10 Joel Brobecker <brobecker@adacore.com>
15162
15163 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
15164 TYPE_CODE_REF types.
15165
617126bc
JW
151662019-02-08 Jim Wilson <jimw@sifive.com>
15167
15168 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
15169 (riscv_linux_fregset): New.
15170 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
15171
46e3ed7f
TT
151722019-02-07 Tom Tromey <tom@tromey.com>
15173
15174 * thread.c (thread_cancel_execution_command): Update.
15175 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
15176 methods.
15177 (struct thread_fsm_ops): Remove.
15178 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
15179 (thread_fsm_should_stop, thread_fsm_return_value)
15180 (thread_fsm_set_finished, thread_fsm_finished_p)
15181 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
15182 Don't declare.
15183 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
15184 * infrun.c (clear_proceed_status_thread)
15185 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
15186 (print_stop_event): Update.
15187 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
15188 Add constructor.
15189 (step_command_fsm_ops): Remove.
15190 (new_step_command_fsm): Remove.
15191 (step_1): Update.
15192 (step_command_fsm::should_stop): Rename from
15193 step_command_fsm_should_stop.
15194 (step_command_fsm::clean_up): Rename from
15195 step_command_fsm_clean_up.
15196 (step_command_fsm::do_async_reply_reason): Rename from
15197 step_command_fsm_async_reply_reason.
15198 (struct until_next_fsm): Inherit from thread_fsm. Add
15199 constructor.
15200 (until_next_fsm_ops): Remove.
15201 (new_until_next_fsm): Remove.
15202 (until_next_fsm::should_stop): Rename from
15203 until_next_fsm_should_stop.
15204 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
15205 (until_next_fsm::do_async_reply_reason): Rename from
15206 until_next_fsm_async_reply_reason.
15207 (struct finish_command_fsm): Inherit from thread_fsm. Add
15208 constructor. Change type of breakpoint.
15209 (finish_command_fsm_ops): Remove.
15210 (new_finish_command_fsm): Remove.
15211 (finish_command_fsm::should_stop): Rename from
15212 finish_command_fsm_should_stop.
15213 (finish_command_fsm::clean_up): Rename from
15214 finish_command_fsm_clean_up.
15215 (finish_command_fsm::return_value): Rename from
15216 finish_command_fsm_return_value.
15217 (finish_command_fsm::do_async_reply_reason): Rename from
15218 finish_command_fsm_async_reply_reason.
15219 (finish_command): Update.
15220 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
15221 Add constructor.
15222 (call_thread_fsm_ops): Remove.
15223 (call_thread_fsm::call_thread_fsm): Rename from
15224 new_call_thread_fsm.
15225 (call_thread_fsm::should_stop): Rename from
15226 call_thread_fsm_should_stop.
15227 (call_thread_fsm::should_notify_stop): Rename from
15228 call_thread_fsm_should_notify_stop.
15229 (run_inferior_call, call_function_by_hand_dummy): Update.
15230 * cli/cli-interp.c (should_print_stop_to_console): Update.
15231 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
15232 Add constructor. Change type of location_breakpoint,
15233 caller_breakpoint.
15234 (until_break_fsm_ops): Remove.
15235 (new_until_break_fsm): Remove.
15236 (until_break_fsm::should_stop): Rename from
15237 until_break_fsm_should_stop.
15238 (until_break_fsm::clean_up): Rename from
15239 until_break_fsm_clean_up.
15240 (until_break_fsm::do_async_reply_reason): Rename from
15241 until_break_fsm_async_reply_reason.
15242 (until_break_command): Update.
15243 * thread-fsm.c: Remove.
15244 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
15245
1a5c2598
TT
152462019-02-07 Tom Tromey <tom@tromey.com>
15247
15248 * yy-remap.h: Add include guard.
15249 * xtensa-tdep.h: Add include guard.
15250 * xcoffread.h: Rename include guard.
15251 * varobj-iter.h: Add include guard.
15252 * tui/tui.h: Rename include guard.
15253 * tui/tui-winsource.h: Rename include guard.
15254 * tui/tui-wingeneral.h: Rename include guard.
15255 * tui/tui-windata.h: Rename include guard.
15256 * tui/tui-win.h: Rename include guard.
15257 * tui/tui-stack.h: Rename include guard.
15258 * tui/tui-source.h: Rename include guard.
15259 * tui/tui-regs.h: Rename include guard.
15260 * tui/tui-out.h: Rename include guard.
15261 * tui/tui-layout.h: Rename include guard.
15262 * tui/tui-io.h: Rename include guard.
15263 * tui/tui-hooks.h: Rename include guard.
15264 * tui/tui-file.h: Rename include guard.
15265 * tui/tui-disasm.h: Rename include guard.
15266 * tui/tui-data.h: Rename include guard.
15267 * tui/tui-command.h: Rename include guard.
15268 * tic6x-tdep.h: Add include guard.
15269 * target/waitstatus.h: Rename include guard.
15270 * target/wait.h: Rename include guard.
15271 * target/target.h: Rename include guard.
15272 * target/resume.h: Rename include guard.
15273 * target-float.h: Rename include guard.
15274 * stabsread.h: Add include guard.
15275 * rs6000-tdep.h: Add include guard.
15276 * riscv-fbsd-tdep.h: Add include guard.
15277 * regformats/regdef.h: Rename include guard.
15278 * record.h: Rename include guard.
15279 * python/python.h: Rename include guard.
15280 * python/python-internal.h: Rename include guard.
15281 * python/py-stopevent.h: Rename include guard.
15282 * python/py-ref.h: Rename include guard.
15283 * python/py-record.h: Rename include guard.
15284 * python/py-record-full.h: Rename include guard.
15285 * python/py-record-btrace.h: Rename include guard.
15286 * python/py-instruction.h: Rename include guard.
15287 * python/py-events.h: Rename include guard.
15288 * python/py-event.h: Rename include guard.
15289 * procfs.h: Add include guard.
15290 * proc-utils.h: Add include guard.
15291 * p-lang.h: Add include guard.
15292 * or1k-tdep.h: Rename include guard.
15293 * observable.h: Rename include guard.
15294 * nto-tdep.h: Rename include guard.
15295 * nat/x86-linux.h: Rename include guard.
15296 * nat/x86-linux-dregs.h: Rename include guard.
15297 * nat/x86-gcc-cpuid.h: Add include guard.
15298 * nat/x86-dregs.h: Rename include guard.
15299 * nat/x86-cpuid.h: Rename include guard.
15300 * nat/ppc-linux.h: Rename include guard.
15301 * nat/mips-linux-watch.h: Rename include guard.
15302 * nat/linux-waitpid.h: Rename include guard.
15303 * nat/linux-ptrace.h: Rename include guard.
15304 * nat/linux-procfs.h: Rename include guard.
15305 * nat/linux-osdata.h: Rename include guard.
15306 * nat/linux-nat.h: Rename include guard.
15307 * nat/linux-namespaces.h: Rename include guard.
15308 * nat/linux-btrace.h: Rename include guard.
15309 * nat/glibc_thread_db.h: Rename include guard.
15310 * nat/gdb_thread_db.h: Rename include guard.
15311 * nat/gdb_ptrace.h: Rename include guard.
15312 * nat/fork-inferior.h: Rename include guard.
15313 * nat/amd64-linux-siginfo.h: Rename include guard.
15314 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
15315 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
15316 * nat/aarch64-linux.h: Rename include guard.
15317 * nat/aarch64-linux-hw-point.h: Rename include guard.
15318 * mn10300-tdep.h: Add include guard.
15319 * mips-linux-tdep.h: Add include guard.
15320 * mi/mi-parse.h: Rename include guard.
15321 * mi/mi-out.h: Rename include guard.
15322 * mi/mi-main.h: Rename include guard.
15323 * mi/mi-interp.h: Rename include guard.
15324 * mi/mi-getopt.h: Rename include guard.
15325 * mi/mi-console.h: Rename include guard.
15326 * mi/mi-common.h: Rename include guard.
15327 * mi/mi-cmds.h: Rename include guard.
15328 * mi/mi-cmd-break.h: Rename include guard.
15329 * m2-lang.h: Add include guard.
15330 * location.h: Rename include guard.
15331 * linux-record.h: Rename include guard.
15332 * linux-nat.h: Add include guard.
15333 * linux-fork.h: Add include guard.
15334 * i386-darwin-tdep.h: Rename include guard.
15335 * hppa-linux-offsets.h: Add include guard.
15336 * guile/guile.h: Rename include guard.
15337 * guile/guile-internal.h: Rename include guard.
15338 * gnu-nat.h: Rename include guard.
15339 * gdb-stabs.h: Rename include guard.
15340 * frv-tdep.h: Add include guard.
15341 * f-lang.h: Add include guard.
15342 * event-loop.h: Add include guard.
15343 * darwin-nat.h: Rename include guard.
15344 * cp-abi.h: Rename include guard.
15345 * config/sparc/nm-sol2.h: Rename include guard.
15346 * config/nm-nto.h: Rename include guard.
15347 * config/nm-linux.h: Add include guard.
15348 * config/i386/nm-i386gnu.h: Rename include guard.
15349 * config/djgpp/nl_types.h: Rename include guard.
15350 * config/djgpp/langinfo.h: Rename include guard.
15351 * compile/gcc-cp-plugin.h: Add include guard.
15352 * compile/gcc-c-plugin.h: Add include guard.
15353 * compile/compile.h: Rename include guard.
15354 * compile/compile-object-run.h: Rename include guard.
15355 * compile/compile-object-load.h: Rename include guard.
15356 * compile/compile-internal.h: Rename include guard.
15357 * compile/compile-cplus.h: Rename include guard.
15358 * compile/compile-c.h: Rename include guard.
15359 * common/xml-utils.h: Rename include guard.
15360 * common/x86-xstate.h: Rename include guard.
15361 * common/version.h: Rename include guard.
15362 * common/vec.h: Rename include guard.
15363 * common/tdesc.h: Rename include guard.
15364 * common/selftest.h: Rename include guard.
15365 * common/scoped_restore.h: Rename include guard.
15366 * common/scoped_mmap.h: Rename include guard.
15367 * common/scoped_fd.h: Rename include guard.
15368 * common/safe-iterator.h: Rename include guard.
15369 * common/run-time-clock.h: Rename include guard.
15370 * common/refcounted-object.h: Rename include guard.
15371 * common/queue.h: Rename include guard.
15372 * common/ptid.h: Rename include guard.
15373 * common/print-utils.h: Rename include guard.
15374 * common/preprocessor.h: Rename include guard.
15375 * common/pathstuff.h: Rename include guard.
15376 * common/observable.h: Rename include guard.
15377 * common/netstuff.h: Rename include guard.
15378 * common/job-control.h: Rename include guard.
15379 * common/host-defs.h: Rename include guard.
15380 * common/gdb_wait.h: Rename include guard.
15381 * common/gdb_vecs.h: Rename include guard.
15382 * common/gdb_unlinker.h: Rename include guard.
15383 * common/gdb_unique_ptr.h: Rename include guard.
15384 * common/gdb_tilde_expand.h: Rename include guard.
15385 * common/gdb_sys_time.h: Rename include guard.
15386 * common/gdb_string_view.h: Rename include guard.
15387 * common/gdb_splay_tree.h: Rename include guard.
15388 * common/gdb_setjmp.h: Rename include guard.
15389 * common/gdb_ref_ptr.h: Rename include guard.
15390 * common/gdb_optional.h: Rename include guard.
15391 * common/gdb_locale.h: Rename include guard.
15392 * common/gdb_assert.h: Rename include guard.
15393 * common/filtered-iterator.h: Rename include guard.
15394 * common/filestuff.h: Rename include guard.
15395 * common/fileio.h: Rename include guard.
15396 * common/environ.h: Rename include guard.
15397 * common/common-utils.h: Rename include guard.
15398 * common/common-types.h: Rename include guard.
15399 * common/common-regcache.h: Rename include guard.
15400 * common/common-inferior.h: Rename include guard.
15401 * common/common-gdbthread.h: Rename include guard.
15402 * common/common-exceptions.h: Rename include guard.
15403 * common/common-defs.h: Rename include guard.
15404 * common/common-debug.h: Rename include guard.
15405 * common/cleanups.h: Rename include guard.
15406 * common/buffer.h: Rename include guard.
15407 * common/btrace-common.h: Rename include guard.
15408 * common/break-common.h: Rename include guard.
15409 * cli/cli-utils.h: Rename include guard.
15410 * cli/cli-style.h: Rename include guard.
15411 * cli/cli-setshow.h: Rename include guard.
15412 * cli/cli-script.h: Rename include guard.
15413 * cli/cli-interp.h: Rename include guard.
15414 * cli/cli-decode.h: Rename include guard.
15415 * cli/cli-cmds.h: Rename include guard.
15416 * charset-list.h: Add include guard.
15417 * buildsym-legacy.h: Rename include guard.
15418 * bfin-tdep.h: Add include guard.
15419 * ax.h: Rename include guard.
15420 * arm-linux-tdep.h: Add include guard.
15421 * arm-fbsd-tdep.h: Add include guard.
15422 * arch/xtensa.h: Rename include guard.
15423 * arch/tic6x.h: Add include guard.
15424 * arch/i386.h: Add include guard.
15425 * arch/arm.h: Rename include guard.
15426 * arch/arm-linux.h: Rename include guard.
15427 * arch/arm-get-next-pcs.h: Rename include guard.
15428 * arch/amd64.h: Add include guard.
15429 * arch/aarch64-insn.h: Rename include guard.
15430 * arch-utils.h: Rename include guard.
15431 * annotate.h: Add include guard.
15432 * amd64-darwin-tdep.h: Rename include guard.
15433 * aarch64-linux-tdep.h: Add include guard.
15434 * aarch64-fbsd-tdep.h: Add include guard.
15435 * aarch32-linux-nat.h: Add include guard.
15436
ab9268d2
PW
154372019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15438
15439 * macrotab.c (macro_define_internal): New function that
15440 factorizes macro_define_object_internal and macro_define_function
15441 code.
15442 (macro_define_object_internal): Use macro_define_internal.
15443 (macro_define_function): Likewise.
15444
bb0da2b4
PW
154452019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15446
15447 * macrocmd.c (extract_identifier): Return
15448 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
15449 callers.
15450
424eb552
JB
154512019-02-06 John Baldwin <jhb@FreeBSD.org>
15452
15453 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
15454
1688cb29
TT
154552019-02-05 Tom Tromey <tom@tromey.com>
15456
15457 * target.c (target_stack::unpush): Move assertion earlier.
15458
b5eba2d8
TT
154592019-01-30 Tom Tromey <tom@tromey.com>
15460
15461 PR python/23615:
15462 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
15463 (gdbpy_parse_and_eval): Likewise.
15464 * python/python-internal.h (gdbpy_allow_threads): New class.
15465
7054e2ff
JB
154662019-01-28 John Baldwin <jhb@FreeBSD.org>
15467
15468 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
15469 (aarch64_fbsd_fpregmap): Move earlier.
15470 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
15471 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
15472 instead of individual calls to trad_frame_set_reg_addr.
15473 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
15474 earlier.
15475 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
15476 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
15477 instead of individual calls to trad_frame_set_reg_addr.
15478
36c25ffa
AH
154792019-01-28 Alan Hayward <alan.hayward@arm.com>
15480
15481 * CONTRIBUTE: Replace contribution list with wiki link.
15482
a0707f3c
TT
154832019-01-25 Tom Tromey <tom@tromey.com>
15484
15485 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
15486
0747795c
TT
154872019-01-25 Tom Tromey <tom@tromey.com>
15488
15489 * xtensa-linux-nat.c: Fix common/ includes.
15490 * xml-support.h: Fix common/ includes.
15491 * xml-support.c: Fix common/ includes.
15492 * x86-linux-nat.c: Fix common/ includes.
15493 * windows-nat.c: Fix common/ includes.
15494 * varobj.h: Fix common/ includes.
15495 * varobj.c: Fix common/ includes.
15496 * value.c: Fix common/ includes.
15497 * valops.c: Fix common/ includes.
15498 * utils.c: Fix common/ includes.
15499 * unittests/xml-utils-selftests.c: Fix common/ includes.
15500 * unittests/utils-selftests.c: Fix common/ includes.
15501 * unittests/unpack-selftests.c: Fix common/ includes.
15502 * unittests/tracepoint-selftests.c: Fix common/ includes.
15503 * unittests/style-selftests.c: Fix common/ includes.
15504 * unittests/string_view-selftests.c: Fix common/ includes.
15505 * unittests/scoped_restore-selftests.c: Fix common/ includes.
15506 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
15507 * unittests/scoped_fd-selftests.c: Fix common/ includes.
15508 * unittests/rsp-low-selftests.c: Fix common/ includes.
15509 * unittests/parse-connection-spec-selftests.c: Fix common/
15510 includes.
15511 * unittests/optional-selftests.c: Fix common/ includes.
15512 * unittests/offset-type-selftests.c: Fix common/ includes.
15513 * unittests/observable-selftests.c: Fix common/ includes.
15514 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
15515 * unittests/memrange-selftests.c: Fix common/ includes.
15516 * unittests/memory-map-selftests.c: Fix common/ includes.
15517 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
15518 * unittests/function-view-selftests.c: Fix common/ includes.
15519 * unittests/environ-selftests.c: Fix common/ includes.
15520 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
15521 * unittests/common-utils-selftests.c: Fix common/ includes.
15522 * unittests/cli-utils-selftests.c: Fix common/ includes.
15523 * unittests/array-view-selftests.c: Fix common/ includes.
15524 * ui-file.c: Fix common/ includes.
15525 * tui/tui-io.c: Fix common/ includes.
15526 * tracepoint.h: Fix common/ includes.
15527 * tracepoint.c: Fix common/ includes.
15528 * tracefile-tfile.c: Fix common/ includes.
15529 * top.h: Fix common/ includes.
15530 * top.c: Fix common/ includes.
15531 * thread.c: Fix common/ includes.
15532 * target/waitstatus.h: Fix common/ includes.
15533 * target/waitstatus.c: Fix common/ includes.
15534 * target.h: Fix common/ includes.
15535 * target.c: Fix common/ includes.
15536 * target-memory.c: Fix common/ includes.
15537 * target-descriptions.c: Fix common/ includes.
15538 * symtab.h: Fix common/ includes.
15539 * symfile.c: Fix common/ includes.
15540 * stap-probe.c: Fix common/ includes.
15541 * spu-linux-nat.c: Fix common/ includes.
15542 * sparc-nat.c: Fix common/ includes.
15543 * source.c: Fix common/ includes.
15544 * solib.c: Fix common/ includes.
15545 * solib-target.c: Fix common/ includes.
15546 * ser-unix.c: Fix common/ includes.
15547 * ser-tcp.c: Fix common/ includes.
15548 * ser-pipe.c: Fix common/ includes.
15549 * ser-base.c: Fix common/ includes.
15550 * selftest-arch.c: Fix common/ includes.
15551 * s12z-tdep.c: Fix common/ includes.
15552 * rust-exp.y: Fix common/ includes.
15553 * rs6000-aix-tdep.c: Fix common/ includes.
15554 * riscv-tdep.c: Fix common/ includes.
15555 * remote.c: Fix common/ includes.
15556 * remote-notif.h: Fix common/ includes.
15557 * remote-fileio.h: Fix common/ includes.
15558 * remote-fileio.c: Fix common/ includes.
15559 * regcache.h: Fix common/ includes.
15560 * regcache.c: Fix common/ includes.
15561 * record-btrace.c: Fix common/ includes.
15562 * python/python.c: Fix common/ includes.
15563 * python/py-type.c: Fix common/ includes.
15564 * python/py-inferior.c: Fix common/ includes.
15565 * progspace.h: Fix common/ includes.
15566 * producer.c: Fix common/ includes.
15567 * procfs.c: Fix common/ includes.
15568 * proc-api.c: Fix common/ includes.
15569 * printcmd.c: Fix common/ includes.
15570 * ppc-linux-nat.c: Fix common/ includes.
15571 * parser-defs.h: Fix common/ includes.
15572 * osdata.c: Fix common/ includes.
15573 * obsd-nat.c: Fix common/ includes.
15574 * nat/x86-linux.c: Fix common/ includes.
15575 * nat/x86-linux-dregs.c: Fix common/ includes.
15576 * nat/x86-dregs.h: Fix common/ includes.
15577 * nat/x86-dregs.c: Fix common/ includes.
15578 * nat/ppc-linux.c: Fix common/ includes.
15579 * nat/mips-linux-watch.h: Fix common/ includes.
15580 * nat/mips-linux-watch.c: Fix common/ includes.
15581 * nat/linux-waitpid.c: Fix common/ includes.
15582 * nat/linux-ptrace.h: Fix common/ includes.
15583 * nat/linux-ptrace.c: Fix common/ includes.
15584 * nat/linux-procfs.c: Fix common/ includes.
15585 * nat/linux-personality.c: Fix common/ includes.
15586 * nat/linux-osdata.c: Fix common/ includes.
15587 * nat/linux-namespaces.c: Fix common/ includes.
15588 * nat/linux-btrace.h: Fix common/ includes.
15589 * nat/linux-btrace.c: Fix common/ includes.
15590 * nat/fork-inferior.c: Fix common/ includes.
15591 * nat/amd64-linux-siginfo.c: Fix common/ includes.
15592 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
15593 * nat/aarch64-linux.c: Fix common/ includes.
15594 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
15595 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
15596 * namespace.h: Fix common/ includes.
15597 * mips-linux-tdep.c: Fix common/ includes.
15598 * minsyms.c: Fix common/ includes.
15599 * mi/mi-parse.h: Fix common/ includes.
15600 * mi/mi-main.c: Fix common/ includes.
15601 * mi/mi-cmd-env.c: Fix common/ includes.
15602 * memrange.h: Fix common/ includes.
15603 * memattr.c: Fix common/ includes.
15604 * maint.h: Fix common/ includes.
15605 * maint.c: Fix common/ includes.
15606 * main.c: Fix common/ includes.
15607 * machoread.c: Fix common/ includes.
15608 * location.c: Fix common/ includes.
15609 * linux-thread-db.c: Fix common/ includes.
15610 * linux-nat.c: Fix common/ includes.
15611 * linux-fork.c: Fix common/ includes.
15612 * inline-frame.c: Fix common/ includes.
15613 * infrun.c: Fix common/ includes.
15614 * inflow.c: Fix common/ includes.
15615 * inferior.h: Fix common/ includes.
15616 * inferior.c: Fix common/ includes.
15617 * infcmd.c: Fix common/ includes.
15618 * inf-ptrace.c: Fix common/ includes.
15619 * inf-child.c: Fix common/ includes.
15620 * ia64-linux-nat.c: Fix common/ includes.
15621 * i387-tdep.c: Fix common/ includes.
15622 * i386-tdep.c: Fix common/ includes.
15623 * i386-linux-tdep.c: Fix common/ includes.
15624 * i386-linux-nat.c: Fix common/ includes.
15625 * i386-go32-tdep.c: Fix common/ includes.
15626 * i386-fbsd-tdep.c: Fix common/ includes.
15627 * i386-fbsd-nat.c: Fix common/ includes.
15628 * guile/scm-type.c: Fix common/ includes.
15629 * guile/guile.c: Fix common/ includes.
15630 * go32-nat.c: Fix common/ includes.
15631 * gnu-nat.c: Fix common/ includes.
15632 * gdbthread.h: Fix common/ includes.
15633 * gdbarch-selftests.c: Fix common/ includes.
15634 * gdb_usleep.c: Fix common/ includes.
15635 * gdb_select.h: Fix common/ includes.
15636 * gdb_bfd.c: Fix common/ includes.
15637 * gcore.c: Fix common/ includes.
15638 * fork-child.c: Fix common/ includes.
15639 * findvar.c: Fix common/ includes.
15640 * fbsd-nat.c: Fix common/ includes.
15641 * event-top.c: Fix common/ includes.
15642 * event-loop.c: Fix common/ includes.
15643 * dwarf2read.c: Fix common/ includes.
15644 * dwarf2loc.c: Fix common/ includes.
15645 * dwarf2-frame.c: Fix common/ includes.
15646 * dwarf-index-cache.c: Fix common/ includes.
15647 * dtrace-probe.c: Fix common/ includes.
15648 * disasm-selftests.c: Fix common/ includes.
15649 * defs.h: Fix common/ includes.
15650 * csky-tdep.c: Fix common/ includes.
15651 * cp-valprint.c: Fix common/ includes.
15652 * cp-support.h: Fix common/ includes.
15653 * cp-support.c: Fix common/ includes.
15654 * corelow.c: Fix common/ includes.
15655 * completer.h: Fix common/ includes.
15656 * completer.c: Fix common/ includes.
15657 * compile/compile.c: Fix common/ includes.
15658 * compile/compile-loc2c.c: Fix common/ includes.
15659 * compile/compile-cplus-types.c: Fix common/ includes.
15660 * compile/compile-cplus-symbols.c: Fix common/ includes.
15661 * command.h: Fix common/ includes.
15662 * cli/cli-dump.c: Fix common/ includes.
15663 * cli/cli-cmds.c: Fix common/ includes.
15664 * charset.c: Fix common/ includes.
15665 * build-id.c: Fix common/ includes.
15666 * btrace.h: Fix common/ includes.
15667 * btrace.c: Fix common/ includes.
15668 * breakpoint.h: Fix common/ includes.
15669 * breakpoint.c: Fix common/ includes.
15670 * ax.h:
15671 (enum agent_op): Fix common/ includes.
15672 * ax-general.c (struct aop_map): Fix common/ includes.
15673 * ax-gdb.c: Fix common/ includes.
15674 * auxv.c: Fix common/ includes.
15675 * auto-load.c: Fix common/ includes.
15676 * arm-tdep.c: Fix common/ includes.
15677 * arch/riscv.c: Fix common/ includes.
15678 * arch/ppc-linux-common.c: Fix common/ includes.
15679 * arch/i386.c: Fix common/ includes.
15680 * arch/arm.c: Fix common/ includes.
15681 * arch/arm-linux.c: Fix common/ includes.
15682 * arch/arm-get-next-pcs.c: Fix common/ includes.
15683 * arch/amd64.c: Fix common/ includes.
15684 * arch/aarch64.c: Fix common/ includes.
15685 * arch/aarch64-insn.c: Fix common/ includes.
15686 * arch-utils.c: Fix common/ includes.
15687 * amd64-windows-tdep.c: Fix common/ includes.
15688 * amd64-tdep.c: Fix common/ includes.
15689 * amd64-sol2-tdep.c: Fix common/ includes.
15690 * amd64-obsd-tdep.c: Fix common/ includes.
15691 * amd64-nbsd-tdep.c: Fix common/ includes.
15692 * amd64-linux-tdep.c: Fix common/ includes.
15693 * amd64-linux-nat.c: Fix common/ includes.
15694 * amd64-fbsd-tdep.c: Fix common/ includes.
15695 * amd64-fbsd-nat.c: Fix common/ includes.
15696 * amd64-dicos-tdep.c: Fix common/ includes.
15697 * amd64-darwin-tdep.c: Fix common/ includes.
15698 * agent.c: Fix common/ includes.
15699 * ada-lang.h: Fix common/ includes.
15700 * ada-lang.c: Fix common/ includes.
15701 * aarch64-tdep.c: Fix common/ includes.
15702
2f5c153e
TT
157032019-01-25 Tom Tromey <tom@tromey.com>
15704
15705 * common/create-version.sh: Use common/version.h.
15706
adc6a863
PA
157072019-01-24 Pedro Alves <palves@redhat.com>
15708
15709 * infrun.c (signal_stop, signal_print, signal_program)
15710 (signal_catch, signal_pass): Now arrays instead of pointers.
15711 (update_signals_program_target, do_target_resume)
15712 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
15713 * linux-nat.c (linux_nat_target::pass_signals)
15714 (linux_nat_target::create_inferior, linux_nat_target::attach):
15715 Adjust.
15716 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
15717 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
15718 * procfs.c (procfs_target::pass_signals): Adjust.
15719 * record-full.c (record_full_target::resume): Adjust.
15720 * remote.c (remote_target::pass_signals)
15721 (remote_target::program_signals): Adjust.
15722 * target-debug.h (target_debug_print_signals): Now takes a
15723 gdb::array_view as parameter. Adjust.
15724 * target.h (target_ops) <pass_signals, program_signals>: Replace
15725 pointer and length parameters with gdb::array_view.
15726 (target_pass_signals, target_program_signals): Likewise.
15727 * target-delegates.c: Regenerate.
15728
3046d67a
PA
157292019-01-24 Pedro Alves <palves@redhat.com>
15730
15731 * common/forward-scope-exit.h
15732 (forward_scope_exit::forward_scope_exit): Pass arguments to
15733 m_bind_function directly, instead of creating a std::bind and
15734 copying that.
15735
353229bf
AH
157362019-01-24 Alan Hayward <alan.hayward@arm.com>
15737
15738 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
15739 for static members.
15740 (pass_in_v_vfp_candidate): Likewise.
15741
311dc83a
TT
157422019-01-23 Tom Tromey <tom@tromey.com>
15743 Pedro Alves <palves@redhat.com>
15744
15745 * regcache.c (class regcache_invalidator): Remove.
15746 (regcache::raw_write): Use make_scope_exit.
15747
296bd123
TT
157482019-01-23 Tom Tromey <tom@tromey.com>
15749
15750 * ui-out.h (class ui_out_emit_type): Update comment.
15751
979a0d13
TT
157522019-01-23 Tom Tromey <tom@tromey.com>
15753
15754 * infrun.c (fetch_inferior_event): Update comment.
15755
d238133d
TT
157562019-01-23 Tom Tromey <tom@tromey.com>
15757 Pedro Alves <palves@redhat.com>
15758
15759 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
15760 parameter.
15761 (fetch_inferior_event): Use SCOPE_EXIT.
15762
15763
9885e6bb
TT
157642019-01-23 Tom Tromey <tom@tromey.com>
15765 Pedro Alves <palves@redhat.com>
15766
15767 * infrun.c (disable_thread_events): Delete.
15768 (stop_all_threads): Use SCOPE_EXIT.
15769
286526c1
TT
157702019-01-23 Tom Tromey <tom@tromey.com>
15771 Pedro Alves <palves@redhat.com>
15772
15773 * symfile.c: Include forward-scope-exit.h.
15774 (clear_symtab_users_cleanup): Replace forward declaration with
15775 a FORWARD_SCOPE_EXIT.
15776 (syms_from_objfile_1): Use the forward_scope_exit and
15777 gdb::optional instead of cleanup_function.
15778 (reread_symbols): Use the forward_scope_exit instead of
15779 cleanup_function.
15780 (clear_symtab_users_cleanup): Remove function.
15781
1db93f14
TT
157822019-01-23 Tom Tromey <tom@tromey.com>
15783 Pedro Alves <palves@redhat.com>
15784
15785 * linux-nat.c: Include scope-exit.h.
15786 (cleanup_target_stop): Remove.
15787 (linux_nat_target::static_tracepoint_markers_by_strid): Use
15788 SCOPE_EXIT.
15789
2cc83d1e
TT
157902019-01-23 Tom Tromey <tom@tromey.com>
15791 Pedro Alves <palves@redhat.com>
15792
15793 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
15794 (call_function_by_hand_dummy): Use SCOPE_EXIT.
15795
694c6bf5
TT
157962019-01-23 Tom Tromey <tom@tromey.com>
15797 Andrew Burgess <andrew.burgess@embecosm.com>
15798 Pedro Alves <palves@redhat.com>
15799
15800 * infrun.c (fetch_inferior_event): Use scope_exit.
15801 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
15802 * top.c (execute_command): Use scope_exit.
15803 * breakpoint.c (bpstat_do_actions): Use scope_exit.
15804 * utils.c (do_bpstat_clear_actions_cleanup)
15805 (make_bpstat_clear_actions_cleanup): Remove.
15806
4c41382a
TT
158072019-01-23 Tom Tromey <tom@tromey.com>
15808 Pedro Alves <palves@redhat.com>
15809
15810 * infrun.c: Include "common/scope-exit.h"
15811 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
15812 (wait_for_inferior): Use SCOPE_EXIT.
15813 (fetch_inferior_event): Use scope_exit.
15814
89f8fb50
TT
158152019-01-23 Tom Tromey <tom@tromey.com>
15816 Pedro Alves <palves@redhat.com>
15817
15818 * breakpoint.c (create_breakpoint): Remove cleanup.
15819
5419bdae
TT
158202019-01-23 Tom Tromey <tom@tromey.com>
15821 Andrew Burgess <andrew.burgess@embecosm.com>
15822 Pedro Alves <palves@redhat.com>
15823
e587ef42
PA
158242019-01-23 Pedro Alves <palves@redhat.com>
15825
15826 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
15827
77f0e74c
PA
158282019-01-23 Pedro Alves <palves@redhat.com>
15829 Andrew Burgess <andrew.burgess@embecosm.com>
15830
15831 * gdbthread.h: Include "common/forward-scope-exit.h".
15832 (scoped_finish_thread_state): Redefine custom class in terms of
15833 forward_scope_exit.
15834
5b9b3e53
PA
158352019-01-23 Pedro Alves <palves@redhat.com>
15836 Andrew Burgess <andrew.burgess@embecosm.com>
15837
15838 * common/forward-scope-exit.h: New file.
15839
54b65c9b
PA
158402019-01-23 Pedro Alves <palves@redhat.com>
15841 Andrew Burgess <andrew.burgess@embecosm.com>
15842 Tom Tromey <tom@tromey.com>
15843
15844 * common/scope-exit.h: New file.
15845
cf08fb29
PA
158462019-01-23 Pedro Alves <palves@redhat.com>
15847
15848 * common/preprocessor.h (ESC): Rename to ...
15849 (ESC_PARENS): ... this.
15850 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
15851 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
15852
ae73e2e2
TT
158532019-01-23 Tom Tromey <tom@tromey.com>
15854
15855 * language.h (class scoped_switch_to_sym_language_if_auto):
15856 Initialize m_lang in both cases.
15857
6594e122
AH
158582019-01-23 Alan Hayward <alan.hayward@arm.com>
15859
15860 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
15861 with XCNEW.
15862
a7c9855d
TT
158632019-01-22 Tom Tromey <tom@tromey.com>
15864
15865 * corelow.c: Do not include sys/file.h.
15866
93cc1d53
TT
158672019-01-22 Tom Tromey <tom@tromey.com>
15868
15869 * tui/tui-wingeneral.h: Include gdb_curses.h.
15870
38561778
TT
158712019-01-22 Tom Tromey <tom@tromey.com>
15872
15873 * source-cache.h (class source_cache) <get_source_lines,
15874 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
15875
37b3ab5b
TT
158762019-01-22 Tom Tromey <tom@tromey.com>
15877
15878 * remote-fileio.h (struct remote_target): Declare.
15879
3fabc016
TT
158802019-01-22 Tom Tromey <tom@tromey.com>
15881
15882 * python/py-arch.c: Do not include py-ref.h.
15883 * python/py-bpevent.c: Do not include py-ref.h.
15884 * python/py-cmd.c: Do not include py-ref.h.
15885 * python/py-continueevent.c: Do not include py-ref.h.
15886 * python/py-event.h: Do not include py-ref.h.
15887 * python/py-evtregistry.c: Do not include py-ref.h.
15888 * python/py-finishbreakpoint.c: Do not include py-ref.h.
15889 * python/py-frame.c: Do not include py-ref.h.
15890 * python/py-framefilter.c: Do not include py-ref.h.
15891 * python/py-function.c: Do not include py-ref.h.
15892 * python/py-infevents.c: Do not include py-ref.h.
15893 * python/py-linetable.c: Do not include py-ref.h.
15894 * python/py-objfile.c: Do not include py-ref.h.
15895 * python/py-param.c: Do not include py-ref.h.
15896 * python/py-prettyprint.c: Do not include py-ref.h.
15897 * python/py-progspace.c: Do not include py-ref.h.
15898 * python/py-symbol.c: Do not include py-ref.h.
15899 * python/py-symtab.c: Do not include py-ref.h.
15900 * python/py-type.c: Do not include py-ref.h.
15901 * python/py-unwind.c: Do not include py-ref.h.
15902 * python/py-utils.c: Do not include py-ref.h.
15903 * python/py-value.c: Do not include py-ref.h.
15904 * python/py-varobj.c: Do not include py-ref.h.
15905 * python/py-xmethods.c: Do not include py-ref.h.
15906 * python/python.c: Do not include py-ref.h.
15907 * varobj.c: Do not include py-ref.h.
15908
6b4d7774
TT
159092019-01-22 Tom Tromey <tom@tromey.com>
15910
15911 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
15912 keyword for bcache.
15913
7af7e9b5
TT
159142019-01-22 Tom Tromey <tom@tromey.com>
15915
15916 * compile/compile-cplus-types.c: Remove a comment by #include.
15917
951d1049
TT
159182019-01-22 Tom Tromey <tom@tromey.com>
15919
15920 * compile/gcc-c-plugin.h: Include compile-internal.h.
15921
d65d5705
TT
159222019-01-22 Tom Tromey <tom@tromey.com>
15923
15924 * stabsread.c (EXTERN): Do not define.
15925 (symnum, next_symbol_text_func, processing_gcc_compilation)
15926 (within_function, global_sym_chain, global_stabs)
15927 (previous_stab_code, this_object_header_files)
15928 (n_this_object_header_files)
15929 (n_allocated_this_object_header_files): Define.
15930 * stabsread.h (EXTERN): Never define. Use "extern".
15931
b6fb1ee5
PW
159322019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15933
15934 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
15935 history_value.
15936
be6d4f74
TT
159372019-01-21 Tom Tromey <tom@tromey.com>
15938
15939 * ui-out.c: Fix includes.
15940 * tui/tui-source.c: Fix includes.
15941 * target.c: Fix includes.
15942 * remote.c: Fix includes.
15943 * regcache.c: Fix includes.
15944 * python/py-block.c: Fix includes.
15945 * printcmd.c: Fix includes.
15946 * or1k-tdep.c: Fix includes.
15947 * mi/mi-main.c: Fix includes.
15948 * m32r-tdep.c: Fix includes.
15949 * csky-tdep.c: Fix includes.
15950 * compile/compile-cplus-types.c: Fix includes.
15951 * cli/cli-interp.c: Fix includes.
15952
73021deb
AH
159532019-01-21 Alan Hayward <alan.hayward@arm.com>
15954
15955 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
15956 for padding.
15957
7932255d
TT
159582019-01-16 Tom Tromey <tom@tromey.com>
15959
15960 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
15961 earlier.
15962 (struct objfile) <msymbols_range>: Move from top level.
15963 <msymbols>: New method.
15964 (class objfile_msymbols): Remove.
15965 * symtab.c (default_collect_symbol_completion_matches_break_on):
15966 Update.
15967 * symmisc.c (dump_msymbols): Update.
15968 * stabsread.c (scan_file_globals): Update.
15969 * objc-lang.c (info_selectors_command, info_classes_command)
15970 (find_methods): Update.
15971 * minsyms.c (find_solib_trampoline_target): Update.
15972 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
15973 * coffread.c (coff_symfile_read): Update.
15974 * ada-lang.c (ada_lookup_simple_minsym)
15975 (ada_collect_symbol_completion_matches): Update.
15976
604b1bfb
TT
159772019-01-16 Tom Tromey <tom@tromey.com>
15978
15979 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
15980 type. Remove no-argument constructor.
15981 <iterator::operator++>: Simplify.
15982 <begin>: Update.
15983 <end>: Use minimal_symbol_count.
15984
f252c6d5
TT
159852019-01-16 Tom Tromey <tom@tromey.com>
15986
15987 * objfiles.h (struct objfile) <psymtabs>: New method.
15988 (class objfile_psymtabs): Remove.
15989 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
15990 typedef.
15991 <range>: New method.
15992 (require_partial_symbols): Change return type.
15993 * psymtab.c (require_partial_symbols)
15994 (psym_expand_symtabs_matching): Update.
15995 * mdebugread.c (parse_partial_symbols): Update.
15996 * dbxread.c (dbx_end_psymtab): Update.
15997
b669c953
TT
159982019-01-15 Tom Tromey <tom@tromey.com>
15999
16000 * symtab.c (lookup_objfile_from_block)
16001 (lookup_symbol_in_objfile_symtabs)
16002 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
16003 (find_line_symtab, info_sources_command)
16004 (default_collect_symbol_completion_matches_break_on)
16005 (make_source_files_completion_list): Update.
16006 * symmisc.c (print_objfile_statistics, dump_objfile)
16007 (maintenance_print_symbols, maintenance_info_symtabs)
16008 (maintenance_check_symtabs, maintenance_info_line_tables):
16009 Update.
16010 * source.c (select_source_symtab)
16011 (forget_cached_source_info_for_objfile): Update.
16012 * objfiles.h (class objfile_compunits): Remove.
16013 (struct objfile) <compunits_range>: New typedef.
16014 (compunits): New method.
16015 * objfiles.c (objfile_relocate1): Update.
16016 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
16017 * maint.c (count_symtabs_and_blocks): Update.
16018 * linespec.c (iterate_over_all_matching_symtabs): Update.
16019 * cp-support.c (add_symbol_overload_list_qualified): Update.
16020 * coffread.c (coff_symtab_read): Update.
16021 * ada-lang.c (add_nonlocal_symbols)
16022 (ada_collect_symbol_completion_matches)
16023 (ada_add_global_exceptions): Update.
16024
7e955d83
TT
160252019-01-15 Tom Tromey <tom@tromey.com>
16026
16027 * progspace.h (program_space) <objfiles_safe_range>: New
16028 typedef.
16029 <objfiles_safe>: New method.
16030 * objfiles.h (class all_objfiles_safe): Remove.
16031 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
16032 * jit.c (jit_inferior_exit_hook): Update.
16033
2030c079
TT
160342019-01-17 Tom Tromey <tom@tromey.com>
16035
16036 * progspace.h (program_space) <objfiles_range>: New typedef.
16037 <objfiles>: New method.
16038 <objfiles_head>: Rename from objfiles.
16039 (object_files): Update.
16040 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
16041 * guile/scm-pretty-print.c
16042 (ppscm_find_pretty_printer_from_objfiles): Update.
16043 * guile/scm-objfile.c (gdbscm_objfiles): Update.
16044 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
16045 Update.
16046 * python/py-progspace.c (pspy_get_objfiles): Update.
16047 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
16048 Update.
16049 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
16050 (objfpy_lookup_objfile_by_build_id): Update.
16051 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
16052 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
16053 Update.
16054 * symtab.c (iterate_over_symtabs, matching_obj_sections)
16055 (expand_symtab_containing_pc, lookup_objfile_from_block)
16056 (lookup_static_symbol, basic_lookup_transparent_type)
16057 (find_pc_sect_compunit_symtab, find_symbol_at_address)
16058 (find_line_symtab, info_sources_command)
16059 (default_collect_symbol_completion_matches_break_on)
16060 (make_source_files_completion_list, find_main_name): Update.
16061 * symmisc.c (print_symbol_bcache_statistics)
16062 (print_objfile_statistics, maintenance_print_symbols)
16063 (maintenance_print_msymbols, maintenance_print_objfiles)
16064 (maintenance_info_symtabs, maintenance_check_symtabs)
16065 (maintenance_expand_symtabs, maintenance_info_line_tables):
16066 Update.
16067 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
16068 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
16069 (map_overlay_command, unmap_overlay_command)
16070 (simple_overlay_update, expand_symtabs_matching)
16071 (map_symbol_filenames): Update.
16072 * symfile-debug.c (set_debug_symfile): Update.
16073 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
16074 Update.
16075 * source.c (select_source_symtab, forget_cached_source_info):
16076 Update.
16077 * solib.c (solib_read_symbols): Update.
16078 * solib-spu.c (append_ocl_sos): Update.
16079 * psymtab.c (maintenance_print_psymbols)
16080 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
16081 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
16082 * printcmd.c (info_symbol_command): Update.
16083 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
16084 Update.
16085 * objfiles.h (class all_objfiles): Remove.
16086 * objfiles.c (have_partial_symbols, have_full_symbols)
16087 (have_minimal_symbols, qsort_cmp, update_section_map)
16088 (shared_objfile_contains_address_p)
16089 (default_iterate_over_objfiles_in_search_order): Update.
16090 * objc-lang.c (info_selectors_command, info_classes_command)
16091 (find_methods): Update.
16092 * minsyms.c (find_solib_trampoline_target): Update.
16093 * maint.c (maintenance_info_sections)
16094 (maintenance_translate_address, count_symtabs_and_blocks):
16095 Update.
16096 * main.c (captured_main_1): Update.
16097 * linux-thread-db.c (try_thread_db_load_from_pdir)
16098 (has_libpthread): Update.
16099 * linespec.c (iterate_over_all_matching_symtabs)
16100 (search_minsyms_for_name): Update.
16101 * jit.c (jit_find_objf_with_entry_addr): Update.
16102 * hppa-tdep.c (find_unwind_entry)
16103 (hppa_lookup_stub_minimal_symbol): Update.
16104 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
16105 Update.
16106 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
16107 (elf_gnu_ifunc_resolve_by_got): Update.
16108 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
16109 * dwarf-index-write.c (save_gdb_index_command): Update.
16110 * cp-support.c (add_symbol_overload_list_qualified): Update.
16111 * breakpoint.c (create_overlay_event_breakpoint)
16112 (create_longjmp_master_breakpoint)
16113 (create_std_terminate_master_breakpoint)
16114 (create_exception_master_breakpoint): Update.
16115 * blockframe.c (find_pc_partial_function): Update.
16116 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
16117 (ada_collect_symbol_completion_matches)
16118 (ada_add_global_exceptions): Update.
16119
776489e0
TT
161202019-01-17 Tom Tromey <tom@tromey.com>
16121
16122 * solib-target.c (lm_info_target_p): Remove typedef. Don't
16123 declare VEC.
16124 (solib_target_parse_libraries): Change return type.
16125 (library_list_start_segment, library_list_start_section)
16126 (library_list_end_library, library_list_start_library); Update.
16127 (solib_target_free_library_list): Remove.
16128 (solib_target_parse_libraries): Remove cleanup. Change return
16129 type.
16130 (solib_target_current_sos): Update.
16131
6471e7d2
TT
161322019-01-17 Tom Tromey <tromey@bapiya>
16133
16134 * valprint.c: Replace "the the" with "the".
16135 * symtab.c: Replace "the the" with "the".
16136 * solib.c: Replace "the the" with "the".
16137 * solib-dsbt.c: Replace "the the" with "the".
16138 * linespec.c: Replace "the the" with "the".
16139 * dwarf2loc.h: Replace "the the" with "the".
16140 * amd64-windows-tdep.c: Replace "the the" with "the".
16141 * aarch64-tdep.c: Replace "the the" with "the".
16142
c24bdb02
KS
161432019-01-16 Keith Seitz <keiths@redhat.com>
16144
16145 PR gdb/23773
16146 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
16147 <builder>: Rename to ..
16148 <m_builder>: ... this and make private.
16149 (dwarf2_cu::get_builder): New method. Change all users of
16150 `builder' to use this method.
16151 (dwarf2_start_symtab): Move to ...
16152 (dwarf2_cu::start_symtab): ... here. Update all callers
16153 (setup_type_unit_groups): Move to ...
16154 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
16155 callers.
16156 (dwarf2_cu::reset_builder): New method.
16157 (process_full_compunit, process_full_type_unit): Use
16158 dwarf2_cu::reset_builder.
16159 (follow_die_offset): Record the ancestor CU if it is different
16160 from the followed DIE's CU.
16161 (follow_die_sig_1): Likewise.
16162
8d64371b
TT
161632019-01-15 Tom Tromey <tom@tromey.com>
16164
16165 * remote.c (class remote_state) <buf>: Now a char_vector.
16166 <buf_size>: Remove.
16167 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
16168 parameter.
16169 (remote_target::getpkt_or_notif_sane_1)
16170 (remote_target::getpkt_sane)
16171 (remote_target::getpkt_or_notif_sane): Likewise.
16172 (class remote_target) <putpkt>: New overload.
16173 (remote_target::read_frame): Change type of "buf_p". Remove
16174 sizeof_p parameter.
16175 (packet_ok): New overload.
16176 (packet_check_result): New overload.
16177 Update all uses.
16178
bb277751
TT
161792019-01-14 Tom Tromey <tom@tromey.com>
16180
16181 * remote-notif.c (handle_notification, remote_notif_ack)
16182 (remote_notif_parse): Make "buf" const.
16183 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
16184 const.
16185 (remote_notif_parse, remote_notif_ack, handle_notification):
16186 Likewise.
16187 * remote.c (remote_notif_stop_parse): Make "buf" const.
16188 (remote_target::remote_parse_stop_reply): Make "buf" const.
16189 (remote_notif_stop_ack): Make "buf" const.
16190
05be00a8
TT
161912019-01-14 Tom Tromey <tom@tromey.com>
16192
16193 * remote.c (remote_console_output): Make parameter const.
16194
491adeca
TT
161952019-01-14 Tom Tromey <tom@tromey.com>
16196
16197 * target-debug.h (target_debug_print_signals): Constify.
16198 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
16199 * procfs.c (procfs_target::pass_signals): Update.
16200 * linux-nat.c (linux_nat_target::pass_signals): Update.
16201 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
16202 * target-delegates.c: Rebuild.
16203 * remote.c (remote_target::program_signals): Update.
16204 (remote_target::pass_signals): Update.
16205 * target.c (target_pass_signals): Constify argument.
16206 (target_program_signals): Likewise.
16207 * target.h (struct target_ops) <pass_signals, program_signals>:
16208 Constify argument.
16209 (target_pass_signals, target_program_signals): Constify argument.
16210
bbd94648
TT
162112019-01-14 Tom Tromey <tom@tromey.com>
16212
16213 PR tui/28819:
16214 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
16215
6f072a10
PFC
162162019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
16217
16218 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
16219 field.
16220 * rs6000-tdep.c: Include reggroups.h.
16221 (IS_V_ALIAS_PSEUDOREG): Define.
16222 (rs6000_register_name): Return names for the "vX" aliases.
16223 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
16224 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
16225 aliases. Call default_register_reggroup_p for all other
16226 pseudo-registers.
16227 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
16228 New functions.
16229 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
16230 Handle "vX" aliases.
16231 (v_alias_pseudo_register_collect): New function.
16232 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
16233 (rs6000_gdbarch_init): Initialize "vX" aliases as
16234 pseudo-registers. Restore registration of
16235 rs6000_pseudo_register_reggroup_p with
16236 set_tdesc_pseudo_register_reggroup_p.
16237
1a782351
MF
162382019-01-13 Max Filippov <jcmvbkbc@gmail.com>
16239
16240 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
16241 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
16242 set_gdbarch_num_pseudo_regs.
16243
d73cff18
PW
162442019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16245
16246 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
16247 Remove arg prefixname, add do_set and do_show.
16248 Add member functions set_list and show_list.
16249 * cli/cli-style.c (class cli_style_option): Update accordingly.
16250 (style_set_list): Move to file scope.
16251 (style_show_list): Likewise.
16252 (set_style): Call help_list.
16253 (show_style): Call cmd_show_list.
16254 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
16255 Update to use the new macro.
16256
60a90376
JB
162572019-10-12 Joel Brobecker <brobecker@adacore.com>
16258
16259 * ada-lang.c (_initialize_ada_language): Expand the help text
16260 for the "catch exception" command.
16261
9d7c67bf
PW
162622019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16263
16264 * symtab.c (matching_obj_sections): Initialize obj,
16265 declare it closer to its usage.
16266
7cf47dc4
TT
162672019-01-10 Tom Tromey <tom@tromey.com>
16268
16269 * thread-iter.h (inf_threads_iterator): Use next_iterator.
16270 (basic_inf_threads_range): Remove.
16271 (inf_threads_range, inf_non_exited_threads_range)
16272 (safe_inf_threads_range): Use next_adapter.
16273
d3cb6808
KS
162742019-01-10 Keith Seitz <keiths@redhat.com>
16275
16276 PR gdb/23712
16277 PR symtab/23010
16278 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
16279 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
16280
63a20375
KS
162812019-01-10 Keith Seitz <keiths@redhat.com>
16282
16283 PR gdb/23712
16284 PR symtab/23010
16285 * dictionary.c (pending_to_vector): Remove.
16286 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
16287 Remove _1 suffix, replacing functions of the same name. Update
16288 all callers.
16289 (dict_create_hashed, dict_create_hashed_expandable)
16290 (dict_create_linear, dict_create_linear_expandable, dict_free)
16291 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
16292 Make functions static.
16293
b026f593
KS
162942019-01-10 Keith Seitz <keiths@redhat.com>
16295
16296 PR gdb/23712
16297 PR symtab/23010
16298 * dictionary.h (struct dictionary): Replace declaration with
16299 multidictionary.
16300 (dict_create_hashed, dict_create_hashed_expandable)
16301 (dict_create_linear, dict_create_linear_expandable)
16302 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
16303 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
16304 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
16305 taking multidictionary argument.
16306 [ALL_DICT_SYMBOLS]: Update for multidictionary.
16307 * block.h (struct block) <dict>: Change to multidictionary
16308 and rename `multidict'.
16309 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
16310 symmisc.c: Update all dictionary references to multidictionary.
16311
c7748ee9
KS
163122019-01-10 Keith Seitz <keiths@redhat.com>
16313
16314 PR gdb/23712
16315 PR symtab/23010
16316 * dictionary.c: Include unordered_map.
16317 (pending_to_vector): New function.
16318 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
16319 Rewrite the non-"_1" functions to take vector instead
16320 of linked list.
16321 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
16322 "new" _1 versions of the same name.
16323 (multidictionary): Define.
16324 (std::hash<enum language): New definition.
16325 (collate_pending_symbols_by_language, mdict_create_hashed)
16326 (mdict_create_hashed_expandable, mdict_create_linear)
16327 (mdict_create_linear_expandable, mdict_free)
16328 (find_language_dictionary, create_new_language_dictionary)
16329 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
16330 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
16331 (mdict_size, mdict_empty): New functions.
16332 * dictionary.h (mdict_iterator): Define.
16333
67aa1f3c
PA
163342019-01-10 Pedro Alves <palves@redhat.com>
16335
16336 * breakpoint.c (read_uploaded_action)
16337 (create_tracepoint_from_upload): Adjust to use
16338 gdb::unique_xmalloc_ptr.
16339 * ctf.c (ctf_write_uploaded_tp):
16340 (SET_ARRAY_FIELD): Use emplace_back.
16341 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
16342 * tracefile-tfile.c (tfile_write_uploaded_tp):
16343 * tracepoint.c (parse_tracepoint_definition): Adjust to use
16344 gdb::unique_xmalloc_ptr.
16345 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
16346 at_string, cond_string, cmd_strings>: Replace char pointers
16347 with gdb::unique_xmalloc_ptr.
16348
2f667667
PA
163492019-01-10 Pedro Alves <palves@redhat.com>
16350
16351 * solib-target.c (library_list_start_library): Don't xstrdup name.
16352
36cb7237
PA
163532019-01-10 Pedro Alves <palves@redhat.com>
16354
16355 * mdebugread.c (parse_partial_symbols): Use
16356 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
16357
da584958
AB
163582019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
16359
16360 * linux-fork.c (scoped_switch_fork_info)
16361 <~scoped_switch_fork_info>: Fix incorrect variable name.
16362
1ef8573c
AB
163632019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
16364
16365 * linux-fork.c (scoped_switch_fork_info)
16366 <scoped_switch_fork_info>: Make explicit.
16367 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
16368
8d7bcccb
TT
163692019-01-10 Tom Tromey <tom@tromey.com>
16370
16371 * objfiles.h (objfile::reset_psymtabs): Update.
16372 * objfiles.c (objfile::objfile): Update.
16373 * psymtab.h (psymtab_storage::obstack): Update.
16374 (psymtab_storage::m_obstack): Use gdb::optional.
16375 (class psymtab_storage): Update comment. Remove objfile
16376 parameter.
16377 * psymtab.c (psymtab_storage::psymtab_storage): Update.
16378
b596a3c7
TT
163792019-01-10 Tom Tromey <tom@tromey.com>
16380
16381 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
16382 <free_psymtabs>: Now private.
16383 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
16384 (allocate_psymtab): Use new method.
16385
a9342b62
TT
163862019-01-10 Tom Tromey <tom@tromey.com>
16387
16388 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
16389 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
16390 * mdebugread.c (parse_partial_symbols): Use
16391 allocate_dependencies.
16392 * dwarf2read.c (dwarf2_create_include_psymtab): Use
16393 allocate_dependencies.
16394 (process_psymtab_comp_unit_reader)
16395 (build_type_psymtab_dependencies): Likewise.
16396 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
16397
5af70966
TT
163982019-01-10 Tom Tromey <tom@tromey.com>
16399
16400 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
16401 PSYMBOL_SET_LANGUAGE.
16402 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
16403
5923a04c
TT
164042019-01-10 Tom Tromey <tom@tromey.com>
16405
16406 * psymtab.h (psymtab_storage::obstack): New method.
16407 <m_obstack>: Rename from obstack; now private.
16408 * psymtab.c (psymtab_storage): Update.
16409 * dwarf2read.c (create_addrmap_from_index)
16410 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
16411 Update.
16412
6d6a12bf
TT
164132019-01-10 Tom Tromey <tom@tromey.com>
16414
16415 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
16416 * objfiles.h (objfile::reset_psymtabs): New method.
16417
d320c2b5
TT
164182019-01-10 Tom Tromey <tom@tromey.com>
16419
16420 * symmisc.c (print_symbol_bcache_statistics): Update.
16421 (print_objfile_statistics): Update.
16422 * symfile.c (reread_symbols): Update.
16423 * psymtab.h (class psymtab_storage): New.
16424 * psymtab.c (psymtab_storage): New constructor.
16425 (~psymtab_storage): New destructor.
16426 (require_partial_symbols): Update.
16427 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
16428 (find_pc_sect_psymtab, find_pc_sect_psymbol)
16429 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
16430 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
16431 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
16432 (start_psymtab_common, end_psymtab_common)
16433 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
16434 (allocate_psymtab): Update.
16435 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
16436 Update.
16437 (dump_psymtab_addrmap, maintenance_print_psymbols)
16438 (maintenance_check_psymtabs): Update.
16439 (class objfile_psymtabs): Move to objfiles.h.
16440 * psympriv.h (discard_psymtab): Now inline.
16441 (psymtab_discarder::psymtab_discarder): Update.
16442 (psymtab_discarder::~psymtab_discarder): Update.
16443 (ALL_OBJFILE_PSYMTABS): Rewrite.
16444 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
16445 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
16446 Remove fields.
16447 <partial_symtabs>: New field.
16448 (class objfile_psymtabs): Move from psymtab.h. Update.
16449 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
16450 psymbol_cache.
16451 (objfile::~objfile): Don't destroy psymbol_cache.
16452 * mdebugread.c (parse_partial_symbols): Update.
16453 * dwarf2read.c (create_addrmap_from_index)
16454 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
16455 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
16456 (add_partial_subprogram, dwarf2_ranges_read): Update.
16457 * dwarf-index-write.c (write_address_map)
16458 (write_one_signatured_type, recursively_write_psymbols)
16459 (class debug_names, class debug_names, write_psymtabs_to_index):
16460 Update.
16461
1d94a5a3
TT
164622019-01-10 Tom Tromey <tom@tromey.com>
16463
16464 * symtab.h (SYMBOL_SET_NAMES): Update.
16465 (symbol_set_names): Update.
16466 (MSYMBOL_SET_NAMES): Update.
16467 * symtab.c (symbol_set_names): Change argument to be an
16468 objfile_per_bfd_storage.
16469 * psymtab.c (add_psymbol_to_bcache): Update.
16470 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
16471
0f14768a
TT
164722019-01-10 Tom Tromey <tom@tromey.com>
16473
16474 * symtab.c (create_demangled_names_hash): Change argument to be an
16475 objfile_per_bfd_storage.
16476 (symbol_set_names): Update.
16477
6eee24ce
TT
164782019-01-10 Tom Tromey <tom@tromey.com>
16479
16480 * xcoffread.c (xcoff_initial_scan): Unconditionally call
16481 init_psymbol_list.
16482 * psymtab.c (init_psymbol_list): Do nothing if already called.
16483 * psympriv.h (init_psymbol_list): Add comment.
16484 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
16485 init_psymbol_list.
16486 * dbxread.c (dbx_symfile_read): Unconditionally call
16487 init_psymbol_list.
16488
75aedd27
TT
164892019-01-10 Tom Tromey <tom@tromey.com>
16490
16491 * xcoffread.c (scan_xcoff_symtab): Update.
16492 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
16493 "where".
16494 * mdebugread.c (parse_partial_symbols)
16495 (handle_psymbol_enumerators): Update.
16496 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
16497 * dbxread.c (read_dbx_symtab): Update.
16498 * psympriv.h (psymbol_placement): New enum.
16499 (add_psymbol_to_list): Update.
16500
939652a5
TT
165012019-01-10 Tom Tromey <tom@tromey.com>
16502
16503 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
16504 static_psymbols parameters.
16505 (scan_xcoff_symtab): Update.
16506 * psymtab.c (start_psymtab_common): Remove global_psymbols and
16507 static_psymbols parameters.
16508 * psympriv.h (start_psymtab_common): Update.
16509 * mdebugread.c (parse_partial_symbols): Update.
16510 * dwarf2read.c (create_partial_symtab): Update.
16511 * dbxread.c (read_dbx_symtab): Update.
16512 (start_psymtab): Remove global_psymbols and static_psymbols
16513 parameters.
16514
baa62830
TT
165152019-01-10 Tom Tromey <tom@tromey.com>
16516
16517 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
16518 * psymtab.c (allocate_psymtab): Add comment.
16519 * psympriv.h (allocate_psymtab): Add comment.
16520 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
16521 initializations.
16522 * dbxread.c (dbx_end_psymtab): Remove some initializations.
16523
0e8f53ba
TT
165242019-01-10 Tom Tromey <tom@tromey.com>
16525
16526 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
16527 Don't declare.
16528 * mipsread.c: Include mdebugread.h.
16529 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
16530 Declare.
16531 * elfread.c: Include mdebugread.h.
16532
b22a7c6a
TT
165332019-01-09 Tom Tromey <tom@tromey.com>
16534
16535 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
16536 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
16537 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
16538 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
16539 (psym_lookup_symbol, psym_find_last_source_symtab)
16540 (psym_forget_cached_source_info, psym_print_stats)
16541 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
16542 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
16543 (psym_map_matching_symbols, psym_expand_symtabs_matching)
16544 (psym_find_compunit_symtab_by_address)
16545 (maintenance_print_psymbols, maintenance_info_psymtabs)
16546 (maintenance_check_psymtabs): Use ranged for.
16547 * psymtab.h (class objfile_psymtabs): New.
16548 (require_partial_symbols): Return objfile_psymtabs.
16549 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
16550
3b9d3ac2
TT
165512019-01-09 Tom Tromey <tom@tromey.com>
16552
16553 * symfile.c (overlay_invalidate_all, find_pc_overlay)
16554 (find_pc_mapped_section, list_overlays_command)
16555 (map_overlay_command, unmap_overlay_command)
16556 (simple_overlay_update): Use all_objfiles.
16557 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
16558 * printcmd.c (info_symbol_command): Use all_objfiles.
16559 * objfiles.h (ALL_OBJSECTIONS): Remove.
16560 * maint.c (maintenance_translate_address): Use all_objfiles.
16561 * gcore.c (gcore_create_callback): Use all_objfiles.
16562 (objfile_find_memory_regions): Likewise.
16563
8b31193a
TT
165642019-01-09 Tom Tromey <tom@tromey.com>
16565
16566 * symtab.c (find_line_symtab, info_sources_command)
16567 (make_source_files_completion_list): Use objfile_compunits.
16568 * source.c (select_source_symtab): Use objfile_compunits.
16569 * objfiles.h (struct objfile): Update comment.
16570 (ALL_OBJFILES): Remove.
16571 (ALL_FILETABS): Remove.
16572 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
16573 objfile_compunits.
16574
d5da8b3c
TT
165752019-01-09 Tom Tromey <tom@tromey.com>
16576
16577 * symmisc.c (print_objfile_statistics, dump_objfile)
16578 (maintenance_print_symbols): Use compunit_filetabs.
16579 * source.c (forget_cached_source_info_for_objfile): Use
16580 compunit_filetabs.
16581 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
16582 (ALL_FILETABS): Use compunit_filetabs.
16583 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
16584 * coffread.c (coff_symtab_read): Use compunit_filetabs.
16585
5accd1a0
TT
165862019-01-09 Tom Tromey <tom@tromey.com>
16587
16588 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
16589 (compunit_filetabs): New.
16590 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
16591 compunit_filetabs.
16592 (info_sources_command, make_source_files_completion_list): Remove
16593 declaration.
16594 * symmisc.c (print_objfile_statistics, dump_objfile)
16595 (maintenance_print_symbols): Remove declaration.
16596 (maintenance_info_symtabs): Use compunit_filetabs.
16597 (maintenance_info_line_tables): Likewise.
16598 * source.c (select_source_symtab): Change local variable name.
16599 (forget_cached_source_info_for_objfile): Remove declaration.
16600 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
16601 * objfiles.c (objfile_relocate1): Remove declaration.
16602 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
16603 declaration.
16604 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
16605 * coffread.c (coff_symtab_read): Remove declaration.
16606 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
16607 compunit_filetabs.
16608
d8aeb77f
TT
166092019-01-09 Tom Tromey <tom@tromey.com>
16610
16611 * symtab.c (lookup_objfile_from_block)
16612 (find_pc_sect_compunit_symtab, search_symbols)
16613 (default_collect_symbol_completion_matches_break_on): Use
16614 objfile_compunits.
16615 * objfiles.h (ALL_COMPUNITS): Remove.
16616 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
16617 * cp-support.c (add_symbol_overload_list_qualified): Use
16618 objfile_compunits.
16619 * ada-lang.c (ada_collect_symbol_completion_matches)
16620 (ada_add_global_exceptions): Use objfile_compunits.
16621
592553c4
TT
166222019-01-09 Tom Tromey <tom@tromey.com>
16623
16624 * source.c (select_source_symtab)
16625 (forget_cached_source_info_for_objfile): Remove declaration.
16626 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
16627 declaration.
16628 * maint.c (count_symtabs_and_blocks): Remove declaration.
16629 * cp-support.c (add_symbol_overload_list_qualified): Remove
16630 declaration.
16631 * coffread.c (coff_symtab_read): Remove declaration.
16632 * symtab.c (lookup_symbol_in_objfile_symtabs)
16633 (basic_lookup_transparent_type_1): Use objfile_compunits.
16634 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
16635 (info_sources_command, search_symbols)
16636 (default_collect_symbol_completion_matches_break_on)
16637 (make_source_files_completion_list): Remove declaration.
16638 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
16639 (ada_collect_symbol_completion_matches)
16640 (ada_add_global_exceptions): Remove declaration.
16641 * linespec.c (iterate_over_all_matching_symtabs): Use
16642 objfile_compunits.
16643 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
16644 (class objfile_compunits): New.
16645 (ALL_COMPUNITS): Use objfile_compunits.
16646 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
16647 (maintenance_check_symtabs, maintenance_info_line_tables): Use
16648 objfile_compunits.
16649 * objfiles.c (objfile_relocate1): Use objfile_compunits.
16650
5325b9bf
TT
166512019-01-09 Tom Tromey <tom@tromey.com>
16652
16653 * symtab.c (search_symbols)
16654 (default_collect_symbol_completion_matches_break_on): Use
16655 objfile_msymbols.
16656 * ada-lang.c (ada_lookup_simple_minsym)
16657 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
16658 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
16659 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
16660 objfile_msymbols.
16661 * coffread.c (coff_symfile_read): Use objfile_msymbols.
16662 * symmisc.c (dump_msymbols): Use objfile_msymbols.
16663 * objc-lang.c (find_methods): Use objfile_msymbols.
16664 (info_selectors_command, info_classes_command): Likewise.
16665 * stabsread.c (scan_file_globals): Use objfile_msymbols.
16666 * objfiles.h (class objfile_msymbols): New.
16667 (ALL_OBJFILE_MSYMBOLS): Remove.
16668 (ALL_MSYMBOLS): Remove.
16669
cac85af2
TT
166702019-01-09 Tom Tromey <tom@tromey.com>
16671
16672 * common/next-iterator.h (next_adapter): Add Iterator template
16673 parameter.
16674 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
16675 (class all_objfiles_safe): New.
16676 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
16677 * objfiles.c (put_objfile_before): Update comment.
16678 (add_separate_debug_objfile): Likewise.
16679 (free_all_objfiles): Use all_objfiles_safe.
16680 (objfile_purge_solibs): Likewise.
16681
aed57c53
TT
166822019-01-09 Tom Tromey <tom@tromey.com>
16683
16684 * symtab.c (iterate_over_symtabs, matching_obj_sections)
16685 (expand_symtab_containing_pc, lookup_static_symbol)
16686 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
16687 (find_symbol_at_address, find_line_symtab, find_main_name): Use
16688 all_objfiles.
16689 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
16690 * breakpoint.c (create_overlay_event_breakpoint)
16691 (create_longjmp_master_breakpoint)
16692 (create_std_terminate_master_breakpoint)
16693 (create_exception_master_breakpoint): Use all_objfiles.
16694 * linux-thread-db.c (try_thread_db_load_from_pdir)
16695 (has_libpthread): Use all_objfiles.
16696 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
16697 * linespec.c (iterate_over_all_matching_symtabs)
16698 (search_minsyms_for_name): Use all_objfiles.
16699 * maint.c (maintenance_info_sections): Use all_objfiles.
16700 * main.c (captured_main_1): Use all_objfiles.
16701 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
16702 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
16703 * guile/scm-pretty-print.c
16704 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
16705 * solib-spu.c (append_ocl_sos): Use all_objfiles.
16706 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
16707 (maintenance_print_msymbols): Use all_objfiles.
16708 * source.c (select_source_symtab): Use all_objfiles.
16709 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
16710 * symfile.c (remove_symbol_file_command)
16711 (expand_symtabs_matching, map_symbol_filenames): Use
16712 all_objfiles.
16713 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
16714 all_objfiles.
16715 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
16716 * objc-lang.c (find_methods): Use all_objfiles.
16717 * objfiles.c (have_partial_symbols, have_full_symbols)
16718 (have_minimal_symbols, qsort_cmp)
16719 (default_iterate_over_objfiles_in_search_order): Use
16720 all_objfiles.
16721 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
16722 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
16723 (maintenance_check_psymtabs): Use all_objfiles.
16724 (ALL_PSYMTABS): Remove.
16725 * compile/compile-object-run.c (do_module_cleanup): Use
16726 all_objfiles.
16727 * blockframe.c (find_pc_partial_function): Use all_objfiles.
16728 * cp-support.c (add_symbol_overload_list_qualified): Use
16729 all_objfiles.
16730 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
16731 Use all_objfiles.
16732 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
16733 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
16734 all_objfiles.
16735 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
16736 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
16737 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
16738 Uses all_objfiles.
16739 * solib.c (solib_read_symbols): Use all_objfiles
16740
99d89cde
TT
167412019-01-09 Tom Tromey <tom@tromey.com>
16742
16743 * probe.c (parse_probes_in_pspace): Use all_objfiles.
16744 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
16745 all_objfiles.
16746 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
16747 * symmisc.c (print_symbol_bcache_statistics)
16748 (print_objfile_statistics, maintenance_print_objfiles)
16749 (maintenance_info_symtabs, maintenance_check_symtabs)
16750 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
16751 all_objfiles.
16752 * source.c (forget_cached_source_info): Use all_objfiles.
16753 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
16754 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
16755 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
16756 * objfiles.c (update_section_map): Use all_objfiles.
16757 (shared_objfile_contains_address_p): Likewise.
16758 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
16759 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
16760
21708325
TT
167612019-01-09 Tom Tromey <tom@tromey.com>
16762
16763 * common/next-iterator.h: New file.
16764 * objfiles.h (class all_objfiles): New.
16765 (struct objfile_iterator): New.
16766
669e09f6
PW
167672019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16768
16769 * NEWS: Move the description of the changed "frame", "select-frame",
16770 and "info frame" commands to the Changed commands section.
16771
041be526
SM
167722019-01-09 Simon Marchi <simon.marchi@ericsson.com>
16773
16774 * gdbtypes.c (check_stub_method_group): Remove handling of old
16775 mangling schemes.
16776 * linespec.c (find_methods): Likewise.
16777 * stabsread.c (read_member_functions): Likewise.
16778 * valops.c (search_struct_method): Likewise.
16779 (value_struct_elt_for_reference): Likewise.
16780 * NEWS: Mention this change.
16781
0e2a2133
AB
167822019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
16783
16784 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
16785 print_source_lines.
16786 * source.c (print_source_lines_base): Update line number check.
16787 (print_source_lines): New function.
16788 (source_lines_range::source_lines_range): New function.
16789 * source.h (class source_lines_range): New class.
16790 (print_source_lines): New declaration.
16791
1055a3b4
PW
167922019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16793
16794 * linespec.c (linespec_state_destructor): Free self->canonical_names.
16795
cfeadda5
TT
167962019-01-08 Tom Tromey <tom@tromey.com>
16797 Simon Marchi <simon.marchi@ericsson.com>
16798
16799 PR gdb/24060
16800 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
16801 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
16802 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
16803 * f-exp.y (DOLLAR_VARIABLE): Likewise.
16804 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
16805 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
16806
583068ca
AB
168072019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
16808
16809 * source.c (select_source_symtab): Move header comment to
16810 declaration in source.h.
16811 (forget_cached_source_info_for_objfile): Likewise.
16812 (forget_cached_source_info): Likewise.
16813 (identify_source_line): Likewise.
16814 * source.h (identify_source_line): Move declaration from symtab.h
16815 and add comment from source.c
16816 (print_source_lines): Likewise.
16817 (forget_cached_source_info_for_objfile): Likewise.
16818 (forget_cached_source_info): Likewise.
16819 (select_source_symtab): Likewise.
16820 (enum print_source_lines_flag): Move definition from symtab.h.
16821 * symtab.h (identify_source_line): Move declaration to source.h.
16822 (print_source_lines): Likewise.
16823 (forget_cached_source_info_for_objfile): Likewise.
16824 (forget_cached_source_info): Likewise.
16825 (select_source_symtab): Likewise.
16826 (enum print_source_lines_flag): Move definition to source.h.
16827 * tui/tui-hooks.c: Add 'source.h' include.
16828
ec98a4ad
AB
168292019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
16830
16831 * source.c (print_source_lines_base): Handle requests to print
16832 reverse line number sequences, and guard against empty lines
16833 string.
16834
62ea19c1
AB
168352019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
16836
16837 * source.c (print_source_lines_base): Fix skip of '\r' if next
16838 character is '\n'.
16839
9d30e1fd
TT
168402019-01-06 Tom Tromey <tom@tromey.com>
16841
16842 * c-exp.y (struct c_parse_state) <macro_original_text,
16843 expansion_obstack>: New member.
16844 (macro_original_text, expansion_obstack): Remove globals.
16845 (scan_macro_expansion, scanning_macro_expansion)
16846 (finished_macro_expansion): Update.
16847 (scan_macro_cleanup): Remove.
16848 (yylex, c_parse): Update.
16849
c65bac38
TT
168502019-01-06 Tom Tromey <tom@tromey.com>
16851
16852 * c-exp.y (struct c_parse_state) <strings>: New member.
16853 (operator_stoken): Update.
16854
02e12e38
TT
168552019-01-06 Tom Tromey <tom@tromey.com>
16856
16857 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
16858 (union type_stack_elt) <typelist_val>: Now a pointer to
16859 std::vector.
16860 (type_stack_cleanup): Don't declare.
16861 (push_typelist): Update.
16862 * parse.c (pop_typelist): Return a std::vector.
16863 (push_typelist): Take a std::vector.
16864 (follow_types): Update. Do not free args.
16865 (type_stack_cleanup): Remove.
16866 * c-exp.y (struct c_parse_state): New.
16867 (cpstate): New global.
16868 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
16869 (nonempty_typelist): Update.
16870 (func_mod): Create a new vector.
16871 (c_parse): Create a c_parse_state.
16872 (check_parameter_typelist): Do not delete params.
16873 (function_method): Update. Do not delete type_list.
16874
f097f5ad
TT
168752019-01-06 Tom Tromey <tom@tromey.com>
16876
16877 PR gdb/28155:
16878 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
16879 check_typedef.
16880 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
16881 (print_return_value): Likewise.
16882
d2adf9f1
TT
168832019-01-05 Tom Tromey <tom@tromey.com>
16884
16885 * contrib/cleanup_check.py: Remove.
16886 * contrib/gcc-with-excheck: Remove.
16887 * contrib/exsummary.py: Remove.
16888 * contrib/excheck.py: Remove.
16889
2eab46b1
JB
168902019-01-05 Joel Brobecker <brobecker@adacore.com>
16891
16892 * thread.c (delete_thread_1): Add gdb_assert that THR is not
16893 NULL. Initialize tpprev to NULL instead of assigning it
16894 to NULL on the next statement.
16895 * windows-nat.c (windows_delete_thread): Remove check for
16896 main_thread_id before printing thread exit notifications.
16897 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
16898 Remove thread ID check against main_thread_id.
16899 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
16900 windows_delete_thread.
16901 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
16902
48c5e7e2
TT
169032019-01-04 Tom Tromey <tom@tromey.com>
16904
16905 * compile/compile.c (_initialize_compile): Use upper case for
16906 metasyntactic variables.
16907 * symmisc.c (_initialize_symmisc): Use upper case for
16908 metasyntactic variables.
16909 * psymtab.c (_initialize_psymtab): Use upper case for
16910 metasyntactic variables.
16911 * demangle.c (demangle_command): Use upper case for metasyntactic
16912 variables.
16913 (_initialize_demangler): Likewise.
16914 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
16915 variables.
16916
986041cd
TT
169172019-01-03 Tom Tromey <tom@tromey.com>
16918
16919 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
16920
7c711119
TT
169212019-01-03 Tom Tromey <tom@tromey.com>
16922
16923 * python/py-symtab.c (salpy_str): Update.
16924 (struct salpy_sal_object) <symtab>: Now a PyObject.
16925 (salpy_dealloc): Update.
16926 (del_objfile_sal): Use gdbpy_ref.
16927
1b20edf0
TT
169282019-01-03 Tom Tromey <tom@tromey.com>
16929
16930 * python/py-type.c (convert_field): Use new_reference. Return
16931 gdbpy_ref.
16932 (make_fielditem): Return gdbpy_ref.
16933 (typy_fields): Update.
16934 (typy_getitem): Update.
16935 (field_name): Return gdbpy_ref. Use new_reference.
16936 (typy_iterator_iternext): Update.
16937
ea41325b
TT
169382019-01-03 Tom Tromey <tom@tromey.com>
16939
16940 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
16941
2a3c71d6
TT
169422019-01-03 Tom Tromey <tom@tromey.com>
16943
16944 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
16945 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
16946 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
16947 (pspy_set_frame_filters, pspy_set_frame_unwinders)
16948 (pspy_set_type_printers): Likewise.
16949 * python/py-function.c (fnpy_init): Use gdbpy_ref.
16950 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
16951 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
16952 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
16953 (objfpy_set_type_printers): Likewise.
16954
5c329e6a
TT
169552019-01-03 Tom Tromey <tom@tromey.com>
16956
16957 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
16958 (gdbpy_print_stack): Use gdbpy_err_fetch.
16959 * python/python-internal.h (class gdbpy_err_fetch): New class.
16960 (class gdbpy_enter) <m_error_type, m_error_value,
16961 m_error_traceback>: Remove.
16962 <m_error>: New member.
16963 (gdbpy_exception_to_string): Don't declare.
16964 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
16965 * python/py-value.c (convert_value_from_python): Use
16966 gdbpy_err_fetch.
16967 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
16968 gdbpy_exception_to_string.
16969 (gdbpy_handle_exception): Use gdbpy_err_fetch.
16970 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
16971 gdbpy_err_fetch.
16972
169bb27b
AB
169732019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16974
16975 * linux-nat.c (delete_lwp_cleanup): Delete.
16976 (struct lwp_deleter): New struct.
16977 (lwp_info_up): New typedef.
16978 (linux_nat_target::follow_fork): Delete cleanup, and make use of
16979 lwp_info_up.
16980
a07c8880
AB
169812019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16982
16983 * linux-fork.c (class scoped_switch_fork_info): New class.
16984 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
16985
26089c49
AB
169862019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16987
16988 * valops.c (find_overload_match): Remove use of null_cleanup, and
16989 calls to do_cleanups.
16990
06d3e5b0
AB
169912019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16992
16993 * compile/compile-cplus-types.c
16994 (compile_cplus_instance::decl_name): Handle changes to
16995 cp_func_name.
16996 * cp-support.c (cp_func_name): Update header comment, update
16997 return type.
16998 * cp-support.h (cp_func_name): Update return type in declaration.
16999 * valops.c (find_overload_match): Move temp_func local to top
17000 level of function and change its type. Use temp_func to hold and
17001 delete temporary string obtained from cp_func_name.
17002
66644cd3
AB
170032019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
17004
17005 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
17006 gdb::char_vector, remove cleanup, and update uses of `msg`.
17007
592d8c0a
JW
170082019-01-03 Jim Wilson <jimw@sifive.com>
17009
17010 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
17011
c55d06ec
TT
170122019-01-02 Tom Tromey <tom@tromey.com>
17013
17014 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
17015 (tdesc_parse_xml): Remove cleanups.
17016 * target-descriptions.h (make_cleanup_free_target_description):
17017 Don't declare.
17018 (target_desc_deleter): New struct.
17019 (target_desc_up): New typedef.
17020 * target-descriptions.c (target_desc_deleter::operator()): Rename
17021 from free_target_description.
17022 (make_cleanup_free_target_description): Remove.
17023
3a6ae42d
TT
170242019-01-02 Tom Tromey <tom@tromey.com>
17025
17026 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
17027 constructor, destructor.
17028 (linespec_parser): Remove typedef.
17029 (~linespec_parser): Rename from linespec_parser_delete.
17030 (linespec_lex_to_end, linespec_complete_label)
17031 (linespec_complete): Update.
17032 (decode_line_full): Remove cleanups.
17033 (decode_line_1): Update.
17034
61fd3e73
TT
170352019-01-02 Tom Tromey <tom@tromey.com>
17036
17037 * python/python-internal.h (inferior_to_inferior_object): Change
17038 return type.
17039 * python/py-exitedevent.c (create_exited_event_object): Update.
17040 * python/py-inferior.c (inferior_to_inferior_object): Return
17041 gdbpy_ref.
17042 (python_new_inferior, python_inferior_deleted)
17043 (thread_to_thread_object, delete_thread_object)
17044 (build_inferior_list, gdbpy_selected_inferior): Update.
17045 * python/py-infthread.c (create_thread_object): Update. Also fail
17046 if inferior_to_inferior_object fails.
17047
d20172fc
SM
170482019-01-02 Simon Marchi <simon.marchi@ericsson.com>
17049
17050 * inferior.h (class inferior) <displaced_step_state>: New field.
17051 * infrun.h (struct displaced_step_state): Move here from
17052 infrun.c. Initialize fields, add constructor.
17053 <inf>: Remove field.
17054 <reset>: New method.
17055 * infrun.c (struct displaced_step_inferior_state): Move to
17056 infrun.h.
17057 (displaced_step_inferior_states): Remove.
17058 (get_displaced_stepping_state): Adust.
17059 (displaced_step_in_progress_any_inferior): Adjust.
17060 (displaced_step_in_progress_thread): Adjust.
17061 (displaced_step_in_progress): Adjust.
17062 (add_displaced_stepping_state): Remove.
17063 (get_displaced_step_closure_by_addr): Adjust.
17064 (remove_displaced_stepping_state): Remove.
17065 (infrun_inferior_exit): Call displaced_step_state.reset.
17066 (use_displaced_stepping): Don't check for NULL.
17067 (displaced_step_prepare_throw): Call
17068 get_displaced_stepping_state.
17069 (displaced_step_fixup): Don't check for NULL.
17070 (prepare_for_detach): Don't check for NULL.
17071
e3319240
PW
170722019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
17073
17074 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
17075 in case of call that did not complete.
17076
5d36dfb9
AU
170772019-01-02 Andrey Utkin <autkin@undo.io>
17078
17079 * symfile.c (find_separate_debug_file): Fix search of debug files for
17080 remote debuggee.
17081
8833fbf0
TT
170822019-01-02 Tom Tromey <tom@tromey.com>
17083
17084 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
17085 indentation.
17086 * python/py-frame.c (frapy_older): Remove cast.
17087 (frapy_newer): Likewise.
17088 * python/py-breakpoint.c (local_setattro): Remove cast.
17089 * python/py-arch.c (archpy_name): Remove local variable.
17090 * python/py-type.c (gdbpy_lookup_type): Remove cast.
17091
4ada3dfd
JB
170922019-01-02 Joel Brobecker <brobecker@adacore.com>
17093
17094 * unittests/basic_string_view/element_access/char/empty.cc:
17095 Fix year range in copyright header.
17096
113b7b81
AB
170972019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
17098
17099 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
17100 Delete.
17101 <operator==>: Update with for removed field.
17102 <hash>: Likewise.
17103 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
17104 <isa_features>: ...this.
17105 <abi_features>: New field.
17106 (riscv_isa_flen): Update comment.
17107 (riscv_abi_xlen): New declaration.
17108 (riscv_abi_flen): New declaration.
17109 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
17110 isa_features.
17111 (riscv_abi_xlen): New function.
17112 (riscv_isa_flen): Update to get answer from isa_features.
17113 (riscv_abi_flen): New function.
17114 (riscv_has_fp_abi): Update to get answer from abi_features.
17115 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
17116 xlen and flen.
17117 (riscv_call_info) <xlen, flen>: Update comment.
17118 (riscv_call_arg_struct): Remove invalid assertions
17119 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
17120 is removed.
17121 (riscv_gdbarch_init): Gather isa features and abi features
17122 separately, ensure both match on the gdbarch when reusing an old
17123 gdbarch. Relax an error check to allow 32-bit abi float to run on
17124 a target with 64-bit float hardware.
17125
b18ca514
PW
171262019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
17127
17128 * source.c (search_command_helper): Stop reverse search
17129 when line 1 has been searched.
17130
ec70d8db
PW
171312019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
17132
17133 * record-full.c (record_full_base_target::close): Rewrite
17134 record_full_core_buf_list free logic.
17135
5b38f9c1
PW
171362019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
17137
17138 * break-catch-syscall.c (print_one_catch_syscall): xfree
17139 the last text.
17140
66d91b39
JB
171412019-01-01 Joel Brobecker <brobecker@adacore.com>
17142
17143 * top.c (print_gdb_version): Update Copyright year in version
17144 message.
17145
42a4f53d
JB
171462019-01-01 Joel Brobecker <brobecker@adacore.com>
17147
17148 Update copyright year range in all GDB files.
17149
7e955d83 171502019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
2139e8dc 17151
5bbd631d 17152 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
2139e8dc 17153
5bbd631d 17154For older changes see ChangeLog-2018.
c906108c
SS
17155\f
17156Local Variables:
17157mode: change-log
17158left-margin: 8
17159fill-column: 74
17160version-control: never
57da7796 17161coding: utf-8
c906108c 17162End:
5bbd631d 17163
This page took 3.583384 seconds and 4 git commands to generate.