Change tui_source_window_base::set_contents to return bool
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
61c33f10
TT
12019-12-20 Tom Tromey <tom@tromey.com>
2
3 * tui/tui-winsource.h (struct tui_source_window_base)
4 <set_contents>: Return bool.
5 * tui/tui-winsource.c
6 (tui_source_window_base::update_source_window_as_is): Update.
7 * tui/tui-source.h (struct tui_source_window) <set_contents>:
8 Return bool.
9 * tui/tui-source.c (tui_source_window::set_contents): Return
10 bool. Simplify.
11 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
12 Return bool.
13 * tui/tui-disasm.c (tui_disasm_window::set_contents): Return
14 bool.
15
469b0731
TT
162019-12-20 Tom Tromey <tom@tromey.com>
17
18 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
19 (tui_update_source_windows_with_line): Call update_source_window.
20 * tui/tui-source.h (struct tui_source_window)
21 <show_symtab_source>: Don't declare.
22 * tui/tui-source.c (tui_source_window::show_symtab_source):
23 Remove.
24
855f89b3
TT
252019-12-20 Tom Tromey <tom@tromey.com>
26
27 * tui/tui-winsource.c (tui_update_source_windows_with_addr): Call
28 update_source_window directly.
29 * tui/tui-disasm.h (tui_show_disassem): Don't declare.
30 * tui/tui-disasm.c (tui_show_disassem): Remove.
31
d4669c0f
TT
322019-12-20 Tom Tromey <tom@tromey.com>
33
34 * tui/tui-winsource.c
35 (tui_source_window_base::update_source_window_as_is): Don't switch focus.
36 * tui/tui-disasm.c (tui_show_disassem): Don't switch focus.
37
1ae58f0c
TT
382019-12-20 Tom Tromey <tom@tromey.com>
39
40 * tui/tui-winsource.h (struct tui_source_window_base)
41 <maybe_update>: Remove line_no and addr parameters.
42 * tui/tui-stack.c (tui_show_frame_info): Set PC on sal. Update.
43 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
44 Update.
45 * tui/tui-source.c (tui_source_window::maybe_update): Remove
46 line_no and addr parameters.
47 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
48 Update.
49 * tui/tui-disasm.c (tui_disasm_window::maybe_update): Remove
50 line_no and addr parameters.
51
039298ec
TT
522019-12-20 Tom Tromey <tom@tromey.com>
53
54 * tui/tui-winsource.c (tui_source_window_base::set_is_exec_point_at)
55 (tui_source_window_base::update_breakpoint_info): Remove asserts.
56
8acfefcc
TT
572019-12-20 Tom Tromey <tom@tromey.com>
58
59 * tui/tui-winsource.c (tui_update_source_windows_with_addr): Call
60 tui_show_disassem.
61 * tui/tui-disasm.h (tui_show_disassem_and_update_source): Don't
62 declare.
63 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Remove.
64
5ebd5402
TT
652019-12-20 Tom Tromey <tom@tromey.com>
66
67 * tui/tui.h (tui_show_source): Remove parameters.
68 * tui/tui.c (tui_show_source): Remove parameters.
69 * tui/tui-out.c (tui_ui_out::do_field_string): Update.
70
c1b167d7
TT
712019-12-20 Tom Tromey <tom@tromey.com>
72
73 * tui/tui.c (tui_show_source): Update.
74 * tui/tui-winsource.c (tui_display_main): Update.
75 * tui/tui-stack.h (tui_update_locator_fullname): Change parameter
76 to symtab.
77 * tui/tui-stack.c (tui_update_locator_fullname): Change parameter
78 to symtab.
79 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Update.
80
364d7104
TT
812019-12-20 Tom Tromey <tom@tromey.com>
82
83 PR tui/23619:
84 * tui/tui-io.c (tui_rl_saved_prompt): Remove.
85 (tui_redisplay_readline): Use rl_display_prompt.
86 (tui_prep_terminal): Update.
87
0ad6b8ee
CB
882019-12-19 Christian Biesinger <cbiesinger@google.com>
89
90 * configure: Regenerate.
91 * configure.ac: Quote variable arguments of test.
92 * gdbsupport/common.m4: Likewise.
93
d411762c
CB
942019-12-19 Christian Biesinger <cbiesinger@google.com>
95
96 * score-tdep.c (score7_analyze_prologue): Pass 2.0 instead of
97 2 to pow ().
98
1cd4a20a
CB
992019-12-19 Christian Biesinger <cbiesinger@google.com>
100
101 * tui/tui-source.c (tui_source_window::set_contents): Cast argument of
102 log10 to double to fix Solaris 11 with gcc 5.5.
103
aa989b27
CB
1042019-12-19 Christian Biesinger <cbiesinger@google.com>
105
106 * fbsd-tdep.c (fbsd_info_proc_files_entry): Rename local var
107 "sun" to "saddr_un".
108
2032eb7e
TT
1092019-12-19 Tom Tromey <tromey@adacore.com>
110
111 * ui-out.h (enum class field_kind): Fix comment.
112
f69656d0
TT
1132019-12-11 Tom Tromey <tromey@adacore.com>
114
115 * xml-support.c (xml_fetch_content_from_file): Use FOPEN_RB.
116
27e4fac7
TT
1172019-12-18 Tom Tromey <tromey@adacore.com>
118
119 PR build/25268:
120 * gdbsupport/thread-pool.c (set_thread_name): Expect "int" return
121 type on macOS. Add comment.
122
e623f035
SM
1232019-12-18 Simon Marchi <simon.marchi@efficios.com>
124
125 * c-lang.c (c_get_string, asm_language_defn): Remove space
126 before tab.
127
28ce7b07
TT
1282019-12-18 Tom Tromey <tromey@adacore.com>
129
130 PR build/25250:
131 * ui-out.c (ui_out::vmessage): Update.
132 * ui-out.h (enum class field_kind) <FIELD_STRING, FIELD_SIGNED>:
133 Rename.
134 (string_field): Update.
135 (signed_field): Update.
136
bbde7025
SM
1372019-12-18 Simon Marchi <simon.marchi@efficios.com>
138
139 * top.c (print_gdb_configuration): Adjust indentation.
140
e3169fe0
CB
1412019-12-17 Christian Biesinger <cbiesinger@google.com>
142
143 * bsd-kvm.c: Include gdbsupport/pathstuff.h.
144
9b30da15
SM
1452019-12-17 Simon Marchi <simon.marchi@polymtl.ca>
146
147 * tui/tui-layout.h (class tui_layout_base): Add virtual
148 destructor.
149
4a4c04f1
BE
1502019-12-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
151
152 * infcmd.c (prepare_one_step): Step over skipped inline functions.
153 * infrun.c (inline_frame_is_marked_for_skip): New helper function.
154 (process_event_stop_test): Keep stepping over skipped inline functions.
155
0394eed1
SM
1562019-12-16 Simon Marchi <simon.marchi@polymtl.ca>
157
158 * jit.c (struct gdb_block) <next>: Remove field.
159 (struct gdb_symtab) <~gdb_symtab>: Remove.
160 <blocks>: Change type to std::forward_list<gdb_block>.
161 (compare_block): Remove.
162 (jit_block_open_impl): Adjust to std::forward_list. Place the new
163 block at the beginning, don't mind about sorting.
164 (finalize_symtab): Adjust to std::forward_list, sort the blocks list
165 before using it.
166
b6112117
SM
1672019-12-16 Simon Marchi <simon.marchi@polymtl.ca>
168
169 * jit.c (struct gdb_block): Add constructor, initialize
170 real_block and next fields.
171 <name>: Change type to gdb::unique_xmalloc_ptr.
172 (struct gdb_symtab) <~gdb_symtab>: Free blocks with delete.
173 (jit_block_open_impl): Allocate gdb_block with new.
174 (finalize_symtab): Adjust to gdb::unique_xmalloc_ptr.
175
1b61f46d
SM
1762019-12-16 Simon Marchi <simon.marchi@polymtl.ca>
177
178 * jit.c: Include forward_list.
179 (struct gdb_symtab) <next>: Remove field.
180 (struct gdb_object) <symtabs>: Change type to
181 std::forward_list<gdb_symtab>.
182 (jit_object_open_impl): Allocate gdb_object with new.
183 (jit_symtab_open_impl): Adjust to std::forward_list.
184 (finalize_symtab): Don't delete symtab.
185 (jit_object_close_impl): Adjust to std::forward_list. Free
186 gdb_object with delete.
187
89867184
SM
1882019-12-16 Simon Marchi <simon.marchi@polymtl.ca>
189
190 * jit.c (struct gdb_symtab): Add constructor, destructor,
191 initialize fields.
192 <linetable>: Change type to unique_xmalloc_ptr.
193 <file_name>: Change type to std::string.
194 (jit_symtab_open_impl): Allocate gdb_symtab with new.
195 (jit_symtab_line_mapping_add_impl): Adjust.
196 (finalize_symtab): Adjust, call delete on stab.
197
d043f8c8
SM
1982019-12-16 Simon Marchi <simon.marchi@polymtl.ca>
199
200 * jit.c (finalize_symtab): Set gdb_block_iter_tmp in loop.
201
d9fa87f4
TT
2022019-12-16 Tom Tromey <tromey@adacore.com>
203
204 * windows-nat.c (windows_nat_target::attach): Update.
205 * remote.c (extended_remote_target::attach): Update.
206 * procfs.c (procfs_target::attach): Update.
207 * nto-procfs.c (nto_procfs_target::attach): Update.
208 (nto_procfs_target::create_inferior): Update.
209 * inf-ptrace.c (inf_ptrace_target::attach): Update.
210 * gnu-nat.c (gnu_nat_target::attach): Update.
211 (gnu_nat_target::detach): Update.
212 * darwin-nat.c (darwin_nat_target::attach): Update.
213 * corefile.c (get_exec_file): Constify result. Remove extraneous
214 return.
215 * bsd-kvm.c (bsd_kvm_target_open): Update.
216 * gdbsupport/common-inferior.h (get_exec_file): Constify result.
217
c0c3707f
CB
2182019-12-16 Christian Biesinger <cbiesinger@google.com>
219
220 * gdbsupport/common-defs.h: Remove workaround for a gnulib bug
221 (we no longer need to include time.h before pathmax.h)
222
d3ecddab
CB
2232019-12-15 Christian Biesinger <cbiesinger@google.com>
224
225 * ada-exp.y (write_ambiguous_var): Update.
226 * coffread.c (process_coff_symbol): Update.
227 * ctfread.c (ctf_add_enum_member_cb): Update.
228 (new_symbol): Update.
229 * dwarf2read.c (fixup_go_packaging): Update.
230 (new_symbol): Update.
231 * language.c (language_alloc_type_symbol): Update.
232 * mdebugread.c (new_symbol): Update.
233 * minsyms.c (minimal_symbol_reader::record_full): Update.
234 * psymtab.c (add_psymbol_to_bcache): Update.
235 * stabsread.c (define_symbol): Update.
236 (read_enum_type): Update.
237 * symtab.c (symbol_set_language): Make this a member function...
238 (general_symbol_info::set_language): ... here.
239 * symtab.h (struct general_symbol_info) <set_language>: New function.
240 (SYMBOL_SET_LANGUAGE): Remove.
241 (symbol_set_language): Remove.
242
c1b5c1eb
CB
2432019-12-15 Christian Biesinger <cbiesinger@google.com>
244
245 * ada-lang.c (ada_add_block_symbols): Update.
246 (ada_collect_symbol_completion_matches): Update.
247 * ax-gdb.c (gen_expr): Update.
248 * block.c (block_lookup_symbol): Update.
249 (block_lookup_symbol_primary): Update.
250 (block_find_symbol): Update.
251 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Update.
252 * dbxread.c (process_one_symbol): Update.
253 * dictionary.c (insert_symbol_hashed): Update.
254 (collate_pending_symbols_by_language): Update.
255 (mdict_add_symbol): Update.
256 * dwarf-index-write.c (write_psymbols): Update.
257 * dwarf2read.c (fixup_go_packaging): Update.
258 * findvar.c (read_var_value): Update.
259 * ft32-tdep.c (ft32_skip_prologue): Update.
260 * go-lang.c (go_symbol_package_name): Update.
261 * language.h (scoped_switch_to_sym_language_if_auto::
262 scoped_switch_to_sym_language_if_auto): Update.
263 * linespec.c (find_method): Update.
264 (find_label_symbols_in_block): Update.
265 * mdebugread.c (parse_symbol): Update.
266 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
267 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
268 (minimal_symbol_reader::install): Update.
269 * moxie-tdep.c (moxie_skip_prologue): Update.
270 * parse.c (parse_exp_in_context): Update.
271 * psymtab.c (psymbol_name_matches): Update.
272 (match_partial_symbol): Update.
273 (lookup_partial_symbol): Update.
274 (psymbol_hash): Update.
275 (psymbol_compare): Update.
276 * python/py-framefilter.c (extract_sym): Update.
277 (py_print_single_arg): Update.
278 * stabsread.c (define_symbol): Update.
279 * stack.c (print_frame_arg): Update.
280 (find_frame_funname): Update.
281 (info_frame_command_core): Update.
282 * symfile.c (set_initial_language): Update.
283 * symtab.c (symbol_set_demangled_name): Update.
284 (symbol_get_demangled_name): Update.
285 (symbol_set_language): Update.
286 (symbol_find_demangled_name): Update.
287 (symbol_set_names): Update.
288 (general_symbol_info::natural_name): Update.
289 (general_symbol_info::demangled_name): Update.
290 (general_symbol_info::search_name): Update.
291 (symbol_matches_search_name): Update.
292 (eq_symbol_entry): Update.
293 (iterate_over_symbols): Update.
294 (completion_list_add_symbol): Update.
295 (completion_list_add_msymbol): Update.
296 (completion_list_add_fields): Update.
297 * symtab.h (struct general_symbol_info) <language>: New function.
298 <language>: Rename to...
299 <m_language>: ...this.
300 (SYMBOL_LANGUAGE): Remove.
301 (MSYMBOL_LANGUAGE): Remove.
302 (struct symbol) <ctor>: Update.
303 * xstormy16-tdep.c (xstormy16_skip_prologue): Update.
304
747cfc8c
CB
3052019-12-15 Christian Biesinger <cbiesinger@google.com>
306
307 * ada-exp.y (write_ambiguous_var): Call symbol_set_language to
308 set the language of sym.
309 * language.c (language_alloc_type_symbol): Likewise.
310
ff8577f6
SDJ
3112019-12-14 Sergio Durigan Junior <sergiodj@redhat.com>
312
313 https://bugzilla.redhat.com/show_bug.cgi?id=1728147
314 PR gdb/23613
315 * bsd-kvm.c (bsd_kvm_target_open): Use 'gdb_abspath'.
316 * corelow.c: Include 'gdbsupport/pathstuff.h'.
317 (core_target_open): Use 'gdb_abspath'.
318 * gdbsupport/pathstuff.c (gdb_abspath): Guard against
319 'current_directory == NULL' case.
320 * gdbsupport/pathstuff.h (gdb_abspath): Expand comment and
321 explain what happens when 'current_directory' is NULL.
322 * go32-nat.c (go32_nat_target::wait): Check if
323 'current_directory' is NULL before call to 'chdir'.
324 * source.c (add_path): Use 'gdb_abspath'.
325 * top.c: Include 'gdbsupport/pathstuff.h'.
326 (init_history): Use 'gdb_abspath'.
327 (set_history_filename): Likewise.
328 * tracefile-tfile.c: Include 'gdbsupport/pathstuff.h'.
329 (tfile_target_open): Use 'gdb_abspath'.
330
234c3068
TT
3312019-12-13 Tom Tromey <tromey@adacore.com>
332
333 * contrib/ari/gdb_ari.sh: Remove check for multiple calls to
334 warning or error.
335
93537683
TT
3362019-12-13 Tom Tromey <tromey@adacore.com>
337
338 * contrib/ari/gdb_ari.sh: Remove call to "fix" for "long long".
339
63456183
TT
3402019-12-13 Tom Tromey <tromey@adacore.com>
341
342 * contrib/ari/gdb_ari.sh: Handle -Wno- prefix.
343
98f9338a
TT
3442019-12-13 Tom Tromey <tromey@adacore.com>
345
346 * contrib/ari/gdb_ari.sh (usage): Use GNU style.
347
3cb5a3a1
TT
3482019-12-13 Tom Tromey <tromey@adacore.com>
349
350 * gdbsupport/common-utils.c (string_printf, string_vprintf)
351 (string_vappendf): Add ARI comment.
352
c6cbf900
TT
3532019-12-13 Tom Tromey <tromey@adacore.com>
354
355 * contrib/ari/gdb_ari.sh: Remove "fix" call for
356 floatformat_to_double.
357 * target-float.c (host_float_ops<T>::from_target): Add ARI
358 comment.
359
036003a6
TT
3602019-12-13 Tom Tromey <tromey@adacore.com>
361
362 * contrib/ari/gdb_ari.sh: Remove "fix" call for abort.
363 * utils.c (abort_with_message, dump_core, internal_vproblem): Add
364 ARI marker to abort.
365 * event-top.c (handle_sigsegv): Add ARI marker to abort.
366
8aaaf757
TT
3672019-12-13 Tom Tromey <tromey@adacore.com>
368
369 * contrib/ari/gdb_ari.sh: Fix floatformat_from_double text.
370
fe56157f
TT
3712019-12-13 Tom Tromey <tromey@adacore.com>
372
373 * contrib/ari/gdb_ari.sh: Remove ATTRIBUTE_UNUSED check.
374
a15a95ed
TT
3752019-12-13 Tom Tromey <tromey@adacore.com>
376
377 * contrib/ari/gdb_ari.sh: Remove "boolean" and "var_boolean"
378 checks.
379
a5513db2
TT
3802019-12-13 Tom Tromey <tromey@adacore.com>
381
382 * gdbsupport/safe-iterator.h (class basic_safe_range) <begin,
383 end>: No longer "const".
384
3a90f266
SM
3852019-12-13 Simon Marchi <simon.marchi@polymtl.ca>
386
387 * jit.c: Fix indentation, replace spaces with tabs where
388 applicable.
389
b3f4b80f
JL
3902019-12-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
391
392 * configure.tgt: Match msp430-*-elf* targets when configuring GDB.
393
e671856c
TT
3942019-12-12 Tom Tromey <tom@tromey.com>
395
396 * objfiles.h (struct objfile) <partial_symtabs>: Now a
397 unique_ptr.
398
7d7167ce
TT
3992019-12-12 Tom Tromey <tom@tromey.com>
400
401 * progspace.h (objfile_list): New typedef.
402 (class unwrapping_objfile_iterator)
403 (struct unwrapping_objfile_range): Newl
404 (struct program_space) <objfiles_range>: Change type.
405 <objfiles>: Change return type.
406 <add_objfile>: Change type of "objfile" parameter.
407 <objfiles_list>: Now a list of shared_ptr.
408 * progspace.c (program_space::add_objfile): Change type of
409 "objfile". Update.
410 (program_space::remove_objfile): Update.
411 * objfiles.h (struct objfile) <~objfile>: Make public.
412 * objfiles.c (objfile::make): Update.
413 (objfile::unlink): Don't call delete.
414
343cc952
TT
4152019-12-12 Tom Tromey <tom@tromey.com>
416
417 * symfile.c (symbol_file_clear): Update.
418 * progspace.h (struct program_space) <free_all_objfiles>: Declare
419 method.
420 * progspace.c (program_space::free_all_objfiles): New method.
421 * objfiles.h (free_all_objfiles): Don't declare.
422 * objfiles.c (free_all_objfiles): Move to program_space.
423
d0801dd8
TT
4242019-12-12 Tom Tromey <tom@tromey.com>
425
426 * progspace.c (program_space::add_objfile)
427 (program_space::remove_objfile): Update.
428 (program_space::multi_objfile_p): Remove.
429 * objfiles.h (struct objfile) <next>: Remove.
430 * objfiles.c (objfile::objfile): Update.
431 (put_objfile_before): Update.
432 (unlink_objfile): Update.
433 * progspace.h (object_files): Remove.
434 (struct program_space) <objfiles_head>: Remove.
435 <objfiles_list>: New member.
436 <objfiles_range, objfiles_safe_range>: Change type.
437 (objfiles): Change return type.
438 (objfiles_safe): Update.
439 (multi_objfile_p): Rewrite and inline.
440 (object_files): Remove macro.
441
13bff726
TT
4422019-12-12 Tom Tromey <tom@tromey.com>
443
444 * gdbsupport/safe-iterator.h (basic_safe_iterator): Simplify. Add
445 second constructor.
446 (basic_safe_range): New class.
447
deeafabb
TT
4482019-12-12 Tom Tromey <tom@tromey.com>
449
450 * progspace.c (program_space::multi_objfile_p): New method.
451 * printcmd.c (info_symbol_command): Update.
452 * maint.c (maintenance_translate_address): Update.
453 * objfiles.h (MULTI_OBJFILE_P): Remove.
454 * progspace.h (struct program_space) <multi_objfile_p>: New
455 method.
456
23452926
TT
4572019-12-12 Tom Tromey <tom@tromey.com>
458
459 * progspace.h (struct program_space) <remove_objfile>: Declare.
460 * progspace.c (program_space::remove_objfile): New method.
461 * objfiles.c (unlink_objfile): Remove.
462 (objfile::unlink): Call remove_objfile.
463 (objfile): Don't call unlink_objfile.
464
7cac64af
TT
4652019-12-12 Tom Tromey <tom@tromey.com>
466
467 * progspace.h (struct program_space) <add_objfile>: Declare
468 method.
469 * progspace.c (program_space::add_objfile): New method.
470 * objfiles.c (~objfile): Don't unlink objfile.
471 (put_objfile_before): Remove.
472 (add_separate_debug_objfile): Don't call put_objfile_before.
473 (objfile::make): Call add_objfile. Set new_objfiles_available on
474 the per-program-space data.
475
268e4f09
TT
4762019-12-12 Tom Tromey <tom@tromey.com>
477
478 * symfile.c (syms_from_objfile_1): Use objfile_up.
479 (syms_from_objfile_1, remove_symbol_file_command): Call unlink
480 method.
481 (reread_symbols): Use objfile_up.
482 * solib.c (update_solib_list, reload_shared_libraries_1): Call
483 unlink method.
484 * objfiles.h (struct objfile) <~objfile>: Now private.
485 <unlink>: New method.
486 (struct objfile_deleter): New.
487 (objfile_up): New typedef.
488 * objfiles.c (objfile::unlink): New method.
489 (free_objfile_separate_debug, free_all_objfiles)
490 (objfile_purge_solibs): Use it.
491 * jit.c (jit_unregister_code): Remove.
492 (jit_inferior_exit_hook, jit_event_handler): Call unlink on
493 objfile.
494 * compile/compile-object-run.c (do_module_cleanup): Call unlink on
495 objfile.
496 * compile/compile-object-load.c (compile_object_load): Use
497 objfile_up.
498
f65fe570
TT
4992019-12-12 Tom Tromey <tom@tromey.com>
500
501 * symfile.c (symbol_file_add_with_addrs): Pass "parent" to
502 objfile::make.
503 * objfiles.h (struct objjfile) <make>: No longer inline.
504 (add_separate_debug_objfile): Don't declare.
505 * objfiles.c (add_separate_debug_objfile): Now static.
506 (objfile::make): Move from objfiles.h. Call
507 add_separate_debug_objfile. Add "parent" parameter.
508
bda13cdc
TT
5092019-12-12 Tom Tromey <tom@tromey.com>
510
511 * symfile.c (symbol_file_add_with_addrs): Use objfile::make.
512 * objfiles.h (struct objfile): Make constructor private.
513 <make>: New static method.
514 * jit.c (jit_object_close_impl): Update.
515
7190276c
SM
5162019-12-12 Simon Marchi <simon.marchi@polymtl.ca>
517
518 * jit.c (jit_reader_try_read_symtab): Replace xmalloc/xfree with
519 gdb::byte_vector.
520
d61df897
TT
5212019-12-12 Tom Tromey <tromey@adacore.com>
522
523 * xml-support.c (xml_fetch_content_from_file): Don't call
524 malloc_failure.
525 * utils.h (class gdb_argv): Remove malloc_failure comment.
526 * utils.c (gdb_argv::reset): Don't call malloc_failure.
527
db3ad2f0
TT
5282019-12-12 Tom Tromey <tromey@adacore.com>
529
530 * Makefile.in (ALL_TARGET_OBS): Add riscv-ravenscar-thread.o.
531 (HFILES_NO_SRCDIR): Add riscv-ravenscar-thread.h.
532 (ALLDEPFILES): Add riscv-ravenscar-thread.c.
533 * configure.tgt (riscv-*-*): Add riscv-ravenscar-thread.o.
534 * riscv-ravenscar-thread.c: New file.
535 * riscv-ravenscar-thread.h: New file.
536 * riscv-tdep.c (riscv_gdbarch_init): Call
537 register_riscv_ravenscar_ops.
538
2ffe5b9c
TT
5392019-12-12 Tom Tromey <tromey@adacore.com>
540
541 * gdbsupport/thread-pool.c (set_thread_name): Use
542 ATTRIBUTE_UNUSED.
543
39f34d7b
LM
5442019-12-12 Luis Machado <luis.machado@linaro.org>
545
546 * gdbsupport/safe-strerror.c: Don't include diagnostics.h.
547 (select_strerror_r): Use ATTRIBUTE_UNUSED instead of the diagnostics
548 macros.
549
d4eeccfe
TT
5502019-12-11 Tom Tromey <tom@tromey.com>
551
552 * tui/tui-win.c (tui_set_win_height_command): Call
553 tui_adjust_window_height.
554 (tui_adjust_win_heights, new_height_ok): Remove.
555 * tui/tui-layout.h (tui_adjust_window_height): Declare.
556 * tui/tui-layout.c (tui_adjust_window_height): New function.
557
3d979945
TT
5582019-12-11 Tom Tromey <tom@tromey.com>
559
560 * tui/tui-win.c (tui_resize_all): Remove code, call
561 tui_apply_current_layout.
562
2192a9d3
TT
5632019-12-11 Tom Tromey <tom@tromey.com>
564
565 * tui/tui-layout.h (tui_apply_current_layout): Declare.
566 * tui/tui-layout.c (standard_layouts, applied_layout): New
567 globals.
568 (tui_apply_current_layout): New function.
569 (show_layout): Set applied_layout. Call
570 tui_apply_current_layout.
571 (show_source_command, show_disasm_command)
572 (show_source_disasm_command, show_data)
573 (show_source_or_disasm_and_command): Remove.
574 (initialize_layouts): New function.
575 (_initialize_tui_layout): Call initialize_layouts.
576
389e7ddb
TT
5772019-12-11 Tom Tromey <tom@tromey.com>
578
579 * tui/tui-layout.h (class tui_layout_base)
580 (class tui_layout_window, class tui_layout_split): New.
581 * tui/tui-layout.c (tui_get_window_by_name)
582 (tui_layout_window::clone, tui_layout_window::apply)
583 (tui_layout_window::get_sizes, tui_layout_window::add_split)
584 (tui_layout_split::add_window, tui_layout_split::clone)
585 (tui_layout_split::get_sizes)
586 (tui_layout_split::set_weights_from_heights)
587 (tui_layout_split::adjust_size, tui_layout_split::apply): New
588 functions.
589 (tui_layout_split::add_split, tui_layout_split::add_split)
590 (tui_layout_split::set_weights_from_heights)
591 (tui_layout_split::set_weights_from_heights): New functions.
592
fb3184d8
TT
5932019-12-11 Tom Tromey <tom@tromey.com>
594
595 * tui/tui-wingeneral.c (tui_gen_win_info::make_window): Update.
596 * tui/tui-win.c (tui_adjust_win_heights, tui_resize_all): Update.
597 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
598 * tui/tui-data.h (struct tui_point): Remove.
599 (struct tui_gen_win_info) <origin>: Remove.
600 <x, y>: New fields.
601 * tui/tui-command.c (tui_cmd_window::resize): Update.
602
dc7ff8a6
TT
6032019-12-11 Tom Tromey <tom@tromey.com>
604
605 * tui/tui-stack.h (struct tui_locator_window) <min_height>:
606 Implement.
607 * tui/tui-regs.h (struct tui_data_item_window) <min_height>:
608 Implement.
609 * tui/tui-data.h (struct tui_gen_win_info) <min_height>: New
610 method.
611 (struct tui_win_info) <min_height>: Implement.
612
1431937b
TT
6132019-12-11 Tom Tromey <tom@tromey.com>
614
615 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
616 (struct tui_win_info) <can_box>: Update.
617
c8ec2f43
TT
6182019-12-11 Tom Tromey <tom@tromey.com>
619
620 * tui/tui-stack.h (struct tui_locator_window) <max_height>: New
621 method.
622 * tui/tui-regs.h (struct tui_data_item_window) <max_height>: New
623 method.
624 * tui/tui-data.h (struct tui_gen_win_info) <max_height>: New
625 method.
626 (struct tui_win_info) <max_height>: Now override.
627
4decd62b
JB
6282019-12-11 Joel Brobecker <brobecker@adacore.com>
629
630 * NEWS: Create a new section for the next release branch.
631 Rename the section of the current branch, now that it has
632 been cut.
633
d746744e
JB
6342019-12-11 Joel Brobecker <brobecker@adacore.com>
635
636 GDB 9 branch created (27f7b2f64062ac9e52afc60509263c2702a9ebd0):
637 * version.in: Bump version to 10.0.50.DATE-git.
638
2e744276
TT
6392019-12-11 Tom Tromey <tromey@adacore.com>
640
641 PR build/25268:
642 * gdbsupport/thread-pool.c (set_thread_name): New function.
643 (thread_pool::set_thread_count): Don't call pthread_setname_np.
644 (thread_pool::thread_function): Call set_thread_name.
645
aac4760f
TT
6462019-12-11 Tom Tromey <tromey@adacore.com>
647
648 * fbsd-tdep.c (fbsd_core_info_proc_status): Cast result of
649 bfd_get_signed_8.
650
d8edc8b7
PW
6512019-12-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
652
653 * NEWS: Document -raw-values option and the related setting commands.
654 * printcmd.c (print_command_parse_format): Do not set opts->raw off,
655 only set it on when /r is given.
656 * valprint.c (value_print_option_defs): New element raw-values.
657 * Makefile.in: Add the new file.
658
cb511130
CB
6592019-12-10 Christian Biesinger <cbiesinger@google.com>
660
661 * gdbsupport/safe-strerror.c: Supress the unused function warning
662 for select_strerror_r.
663
ab7d13f0
CB
6642019-12-10 Christian Biesinger <cbiesinger@google.com>
665
666 * config.in: Regenerate.
667 * configure: Regenerate.
668 * gdbsupport/agent.c (gdb_connect_sync_socket): Call
669 safe_strerror instead of strerror.
670 * gdbsupport/common.m4: Don't check for strerror.
671 * gdbsupport/safe-strerror.c: Support both the glibc version
672 of strerror_r and the XSI version.
673
6c71eb7d
TT
6742019-12-10 Tom Tromey <tromey@adacore.com>
675
676 * ada-typeprint.c (print_choices): Use a single "?".
677 (print_variant_part): Print "?" if the discriminant name
678 is not known.
679
bac7c5cf
GB
6802019-12-10 George Barrett <bob@bob131.so>
681
682 Fix scripted probe breakpoints.
683 * breakpoint.c (tracepoint_probe_breakpoint_ops): Move
684 declaration forward.
685 (breakpoint_ops_for_event_location_type)
686 (breakpoint_ops_for_event_location): Add function definitions.
687 (break_command_1, trace_command): Use
688 breakpoint_ops_for_event_location.
689 * breakpoint.h (breakpoint_ops_for_event_location): Add function
690 declarations.
691 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Use
692 breakpoint_ops_for_event_location.
693 * python/py-breakpoint.c (bppy_init): Use
694 breakpoint_ops_for_event_location.
695
330f1d38
TBA
6962019-12-09 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
697
698 * gdbtypes.c (rank_one_type): Return INCOMPATIBLE_TYPE_BADNESS
699 when ranking an lvalue argument for an rvalue parameter.
700
b1f0c0b9
WA
7012019-12-08 Wataru Ashihara <wataash@wataash.com>
702
703 * darwin-nat.c (darwin_nat_target::create_inferior): Fix
704 template argument for scoped_restore_tmpl from bool to int.
705
aa2d5a42
KS
7062019-12-07 Keith Seitz <keiths@redhat.com>
707
708 * build-id.c (build_id_bfd_get): Permit bfd_core, too.
709 (build_id_to_debug_bfd): Make static, rewriting to use
710 build_id_to_bfd_suffix.
711 (build_id_to_bfd_suffix): Copy of build_id_to_debug_bfd,
712 adding `suffix' parameter. Append SUFFIX to file names
713 when searching for matching files.
714 (build_id_to_debug_bfd): Use build_id_to_bfd_suffix.
715 (build_id_to_exec_bfd): Likewise.
716 * build-id.h (build_id_to_debug_bfd): Clarify that function
717 searches for BFD of debug info file.
718 (build_id_to_exec_bfd): Declare.
719 * corelow.c: Include build-id.h.
720 (locate_exec_from_corefile_build_id): New function.
721 (core_target_open): If no executable BFD is found,
722 search for a core file BFD using build-id.
723
dfb65191
CB
7242019-12-06 Christian Biesinger <cbiesinger@google.com>
725
726 * bcache.c: Put in namespace gdb.
727 * bcache.h: Likewise.
728 * gdbtypes.c (check_types_worklist): Update.
729 (types_deeply_equal): Update.
730 * macrotab.c (struct macro_table) <bcache>: Update.
731 (new_macro_table): Update.
732 * macrotab.h (struct bcache): Put this forward declaration
733 inside namespace gdb.
734 (new_macro_table): Update.
735 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache>:
736 Update.
737 <macro_cache>: Update.
738 * psymtab.h: (psymtab_storage) <psymbol_cache>: Update.
739
93e55f0a
TV
7402019-12-06 Tom de Vries <tdevries@suse.de>
741
742 PR symtab/24971
743 * block.c (best_symbol, better_symbol): New function.
744 (block_lookup_symbol_primary, block_lookup_symbol): Prefer def over
745 decl.
746
06acc08f
TBA
7472019-12-06 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
748
749 * gdbtypes.h: Define the REFERENCE_SEE_THROUGH_BADNESS value.
750 * gdbtypes.c (rank_one_type): Use REFERENCE_SEE_THROUGH_BADNESS
751 for ranking see-through reference cases.
752
e0fad1ea
PW
7532019-12-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
754 * stack.c (faas_command): Check a command is provided.
755 * thread.c (taas_command, tfaas_command): Likewise.
756
908641f5
PW
7572019-12-05 Philippe Waroquiers <philippe.waroquiers@skynet.be>
758 * inferior.c (prune_inferiors): Only call delete_inferior,
759 Do not modify the inferior list.
760
b858499d
SM
7612019-12-05 Simon Marchi <simon.marchi@polymtl.ca>
762
763 * c-exp.y: Update calls to lookup_typename,
764 lookup_signed_typename and lookup_unsigned_typename.
765 * c-lang.c (evaluate_subexp_c): Likewise.
766 * cp-namespace.c (cp_lookup_symbol_imports_or_template):
767 Likewise.
768 * eval.c (binop_promote): Likewise.
769 * gdbtypes.c (lookup_typename): Remove gdbarch parameter.
770 (lookup_unsigned_typename): Likewise.
771 (lookup_signed_typename): Likewise.
772 * gdbtypes.h (lookup_unsigned_typename): Likewise.
773 (lookup_signed_typename): Likewise.
774 (lookup_typename): Likewise.
775 * guile/scm-type.c (tyscm_lookup_typename): Update calls to
776 lookup_typename, lookup_signed_typename,
777 lookup_unsigned_typename.
778 * m2-exp.y: Likewise.
779 * printcmd.c (printf_wide_c_string): Likewise.
780 (ui_printf): Likewise.
781 * python/py-type.c (typy_lookup_typename): Likewise.
782 * python/py-xmethods.c (python_xmethod_worker::invoke):
783 Likewise.
784 * rust-exp.y: Likewise.
785
3a8fa228
CB
7862019-12-04 Christian Biesinger <cbiesinger@google.com>
787
788 * configure.nat (obsd64): Add missing files x86-nat.o and
789 nat/x86-dregs.o.
790
2dbc041e
TT
7912019-12-04 Tom Tromey <tom@tromey.com>
792
793 * valprint.c (val_print_string): Use metadata_style.
794 * go-valprint.c (print_go_string): Use metadata style.
795 * p-valprint.c (pascal_object_print_static_field): Use metadata
796 style.
797 * cp-valprint.c (cp_print_static_field): Use metadata style.
798
36c8fb93
AB
7992019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
800 Chris January <chris.january@arm.com>
801
802 * f-exp.y (COMPLEX_KEYWORD, SINGLE, DOUBLE, PRECISION): New
803 tokens.
804 (typebase): New patterns for complex, single/double precision, and
805 single/double complex.
806 (f77_keywords): Change token for complex keyword, and add single,
807 double, and precision keywords.
808
c6170c2c
SM
8092019-12-04 Simon Marchi <simon.marchi@polymtl.ca>
810
811 * avr-tdep.c (_initialize_avr_tdep): Improve help of command
812 "info io_registers".
813
894ecaf4
SM
8142019-12-04 Simon Marchi <simon.marchi@polymtl.ca>
815
816 * regcache.c (cooked_read_test): Initialize thread list of
817 mock_inferior.
818
be155ebb
SM
8192019-12-04 Simon Marchi <simon.marchi@polymtl.ca>
820
821 * aarch64-linux-tdep.c: Remove includes.
822
c577cdd7
SM
8232019-12-04 Simon Marchi <simon.marchi@polymtl.ca>
824
825 * aarch64-tdep.c: Remove includes.
826
610cfd61
SM
8272019-12-04 Simon Marchi <simon.marchi@efficios.com>
828
829 * filtered-iterator.h (filtered_iterator) <operator==,
830 operator!=>: Compare wrapped iterators, not wrapped pointers.
831 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
832 unittests/filtered_iterator-selftests.c.
833 * unittests/filtered_iterator-selftests.c: New file.
834
a05cf17a
TT
8352019-12-04 Tom Tromey <tromey@adacore.com>
836
837 * gdbtypes.c (create_range_type): Inherit endianity
838 from base type.
839
d5a22e77
TT
8402019-12-04 Tom Tromey <tromey@adacore.com>
841
842 * ada-lang.c (decode_constrained_packed_array)
843 (ada_value_assign, value_assign_to_component): Update.
844 * dwarf2loc.c (rw_pieced_value, access_memory)
845 (dwarf2_compile_expr_to_ax): Update.
846 * dwarf2read.c (dwarf2_add_field): Update.
847 * eval.c (evaluate_subexp_standard): Update.
848 * gdbarch.c, gdbarch.h: Rebuild.
849 * gdbarch.sh (bits_big_endian): Remove.
850 * gdbtypes.h (union field_location): Update comment.
851 * target-descriptions.c (make_gdb_type): Update.
852 * valarith.c (value_bit_index): Update.
853 * value.c (struct value) <bitpos>: Update comment.
854 (unpack_bits_as_long, modify_field): Update.
855 * value.h (value_bitpos): Update comment.
856
7ab4a236
TT
8572019-12-04 Tom Tromey <tromey@adacore.com>
858
859 * gdbtypes.c (type_byte_order): Move earlier. Assert for unknown
860 endian-ness.
861
103a685e
TT
8622019-12-04 Tom Tromey <tromey@adacore.com>
863
864 * dwarf2read.c (dwarf2_init_float_type)
865 (dwarf2_init_complex_target_type): Add byte_order parameter.
866 (read_base_type): Compute byte order earlier.
867 * gdbtypes.c (init_float_type): Add byte_order parameter.
868 * gdbtypes.h (init_float_type): Add byte_order parameter.
869
7a9e9f9f
TT
8702019-12-04 Tom Tromey <tromey@adacore.com>
871
872 * unittests/tui-selftests.c: Conditionally include tui-winsource.h.
873
feee869b
TT
8742019-12-04 Tom Tromey <tromey@adacore.com>
875
876 * dwarf2read.c (process_structure_scope): Initialize
877 "discr_offset".
878
c2512106
AB
8792019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
880
881 * mi/mi-symbol-cmds.c (mi_symbol_info): Take extra parameter, and
882 add it into the search spec.
883 (parse_max_results_option): New function.
884 (mi_info_functions_or_variables): Parse -max-results flag and pass
885 it to mi_symbol_info.
886 (mi_cmd_symbol_info_modules): Likewise.
887 (mi_cmd_symbol_info_types): Likewise.
888 * symtab.c (global_symbol_searcher::add_matching_symbols): Change
889 return type to bool, change result container into a set, and don't
890 add new results if we have enough already.
891 (global_symbol_searcher::add_matching_msymbols): Change return
892 type to bool, and don't add new results if we have enough already.
893 (sort_search_symbols_remove_dups): Delete.
894 (global_symbol_searcher::search): Early exit from search loop when
895 we have enough results. Use a std::set to collect the results
896 from calling add_matching_symbols.
897 * symtab.h (global_symbol_searcher) <set_max_seach_results>: New
898 member function.
899 (global_symbol_searcher) <m_max_search_results>: New member
900 variable.
901 (global_symbol_searcher) <add_matching_symbols>: Update header
902 comment and change return type to bool.
903 (global_symbol_searcher) <add_matching_msymbols>: Update header
904 comment and change return type to bool.
905
f97a63c5
AB
9062019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
907
908 * symtab.c (symbol_search::compare_search_syms): Update header
909 comment.
910 (global_symbol_searcher::is_suitable_msymbol): New function.
911 (global_symbol_searcher::expand_symtabs): New function.
912 (global_symbol_searcher::add_matching_symbols): New function.
913 (global_symbol_searcher::add_matching_msymbols): New function.
914 (global_symbol_searcher::search): Move most of the content
915 into the new functions above, and call them as needed.
916 * symtab.h (global_symbol_searcher) <expand_symtabs>: New member
917 function.
918 (global_symbol_searcher) <add_matching_symbols>: New member
919 function.
920 (global_symbol_searcher) <add_matching_msymbols>: New member
921 function.
922 (global_symbol_searcher) <is_suitable_msymbol>: New member
923 function.
924
293b38d6
AB
9252019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
926
927 * mi/mi-cmds.c (mi_cmds): Add -symbol-info-module-functions and
928 -symbol-info-module-variables entries.
929 * mi/mi-cmds.h (mi_cmd_symbol_info_module_functions): Declare.
930 (mi_cmd_symbol_info_module_variables): Declare.
931 * mi/mi-symbol-cmds.c
932 (module_symbol_search_iterator): New typedef.
933 (output_module_symbols_in_single_module_and_file): New function.
934 (output_module_symbols_in_single_module): New function.
935 (mi_info_module_functions_or_variables): New function.
936 (mi_cmd_symbol_info_module_functions): New function.
937 (mi_cmd_symbol_info_module_variables): New function.
938 * NEWS: Mention new MI command.
939
4cbd39b2
CB
9402019-12-03 Christian Biesinger <cbiesinger@google.com>
941
942 * bcache.c (hash): Remove.
943 (hash_continue): Remove.
944 * bcache.h (hash): Remove.
945 (hash_continue): Remove.
946 (struct bcache) <ctor>: Update.
947 * psymtab.c (psymbol_hash): Update.
948 * stabsread.c (hashname): Update.
949 * utils.h (fast_hash): Add an argument for a start value,
950 defaulting to zero.
951
82f910ea
PW
9522019-12-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
953 * symtab.c (symbol_cache_clear_slot): Move close to cleared type.
954 (destroy_block_symbol_cache): New function.
955 (symbol_cache:~symbol_cache) Call destroy_block_symbol_cache.
956 (resize_symbol_cache): Likewise.
957
de2396d0
TT
9582019-12-02 Tom Tromey <tom@tromey.com>
959
960 * unittests/tui-selftests.c (run_tests): Make conditional.
961 (_initialize_tui_selftest): Make conditional.
962
638d85bc
CB
9632019-12-02 Christian Biesinger <cbiesinger@google.com>
964
965 * aix-thread.c (debug_aix_thread): Change type to bool.
966
7532a164
LM
9672019-12-02 Luis Machado <luis.machado@linaro.org>
968
969 * infrun.c (follow_fork_inferior): Remove outdated FIXME comment.
970
216a7e6b
AB
9712019-12-01 Andrew Burgess <andrew.burgess@embecosm.com>
972
973 * dwarf2read.c (read_tag_string_type): Read the fields required to
974 make a dynamic string, and possibly create a dynamic range for the
975 string.
976 (attr_to_dynamic_prop): Setup is_reference based on the type of
977 attribute being processed.
978 * gdbtypes.c (is_dynamic_type_internal): Handle TYPE_CODE_STRING.
979 (resolve_dynamic_array): Rename to...
980 (resolve_dynamic_array_or_string): ...this, update header comment,
981 and accept TYPE_CODE_STRING.
982 (resolve_dynamic_type_internal): Handle TYPE_CODE_STRING.
983
11a8b164
AB
9842019-12-01 Andrew Burgess <andrew.burgess@embecosm.com>
985
986 * dwarf2read.c (dwarf2_per_cu_int_type): New function, takes most
987 of its implementation from...
988 (dwarf2_per_cu_addr_sized_int_type): ...here, which now just calls
989 the new function.
990
5bbd8269
AB
9912019-12-01 Andrew Burgess <andrew.burgess@embecosm.com>
992
993 * dwarf2read.c (read_subrange_type): Read bit and byte stride and
994 create a range with stride where appropriate.
995 * f-valprint.c: Include 'gdbarch.h'.
996 (f77_print_array_1): Take the stride into account when walking the
997 array. Also convert the stride into addressable units.
998 * gdbtypes.c (create_range_type): Initialise the stride to
999 constant zero.
1000 (create_range_type_with_stride): New function, initialise the
1001 range as normal, and then setup the stride.
1002 (has_static_range): Include the stride here. Also change the
1003 return type to bool.
1004 (create_array_type_with_stride): Consider the range stride if the
1005 array isn't given its own stride.
1006 (resolve_dynamic_range): Resolve the stride if needed.
1007 * gdbtypes.h (struct range_bounds) <stride>: New member variable.
1008 (struct range_bounds) <flag_is_byte_stride>: New member variable.
1009 (TYPE_BIT_STRIDE): Define.
1010 (TYPE_ARRAY_BIT_STRIDE): Define.
1011 (create_range_type_with_stride): Declare.
1012 * valarith.c (value_subscripted_rvalue): Take range stride into
1013 account when walking the array.
1014
82e3b564
TT
10152019-12-01 Tom Tromey <tom@tromey.com>
1016
1017 * tui/tui-win.c (tui_all_windows_info): Treat inactive TUI
1018 specially.
1019
517d261d
TT
10202019-12-01 Tom Tromey <tom@tromey.com>
1021
1022 * tui/tui-winsource.c (tui_copy_source_line): Don't advance past
1023 \0.
1024 * unittests/tui-selftests.c: New file.
1025 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add tui-selftests.c.
1026
484c9b64
TT
10272019-12-01 Tom Tromey <tom@tromey.com>
1028
1029 * tui/tui.c (tui_enable): Call tui_update_variables earlier.
1030
a2a7af0c
TT
10312019-12-01 Tom Tromey <tom@tromey.com>
1032
1033 * NEWS: Document new settings.
1034 * tui/tui-wingeneral.c (box_win): Apply appropriate border style.
1035 * tui/tui-win.c (_initialize_tui_win): Add border style
1036 observers.
1037 * tui/tui-io.h (tui_apply_style): Declare.
1038 * tui/tui-io.c (tui_apply_style): Rename from apply_style. No
1039 longer static.
1040 (apply_ansi_escape, tui_set_reverse_mode): Update.
1041 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
1042 Add "skip_intensity" parameter.
1043 <changed>: New member.
1044 <do_set_value>: Declare.
1045 (tui_border_style, tui_active_border_style): Declare.
1046 * cli/cli-style.c (tui_border_style, tui_active_border_style): New
1047 globals.
1048 (cli_style_option): Initialize "changed".
1049 (cli_style_option::do_set_value): New function.
1050 (cli_style_option::add_setshow_commands): Add "skip_intensity"
1051 parameter. Update.
1052 (STYLE_ADD_SETSHOW_COMMANDS): Add "SKIP" parameter.
1053 (_initialize_cli_style): Update. Create TUI border style
1054 commands.
1055
d1da6b01
TT
10562019-12-01 Tom Tromey <tom@tromey.com>
1057
1058 * tui/tui-winsource.h (tui_copy_source_line): Add "ndigits"
1059 parameter.
1060 * tui/tui-winsource.c (tui_copy_source_line): Add "ndigits"
1061 parameter.
1062 * tui/tui-win.h (compact_source): Declare.
1063 * tui/tui-win.c (compact_source): New global.
1064 (tui_set_compact_source, tui_show_compact_source): New functions.
1065 (_initialize_tui_win): Add "compact-source" setting.
1066 * tui/tui-source.c (tui_source_window::set_contents): Handle
1067 compact_source setting.
1068 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
1069 * NEWS: Document new setting.
1070
489dbda6
TT
10712019-11-30 Tom Tromey <tom@tromey.com>
1072
1073 * dwarf2read.c (dwarf2_add_field): Include field offset when
1074 computing variant part length.
1075
bf498525
PW
10762019-11-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1077 * NEWS: Mention define-prefix. Tell that command names can now
1078 contain a . character.
1079
be09caf1
PW
10802019-11-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1081
1082 * command.h (valid_cmd_char_p): Declare.
1083 * cli/cli-decode.c (valid_cmd_char_p): New function factorizing
1084 the check of valid command char.
1085 (find_command_name_length, valid_user_defined_cmd_name_p): Use
1086 valid_cmd_char_p.
1087 * cli/cli-script.c (validate_comname): Likewise.
1088 * completer.c (gdb_completer_command_word_break_characters):
1089 Do not remove . from the word break char, update comments.
1090 (complete_line_internal_1): Use valid_cmd_char_p.
1091 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
1092 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
1093
c6ac7fc9
PW
10942019-11-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1095
1096 * cli/cli-script.c (do_define_command): Ensure a redefined
1097 prefix command is kept as a prefix command.
1098 (define_prefix_command): New function.
1099 (show_user_1): Report user defined prefixes.
1100 (_initialize_cli_script): Create the new 'define-prefix' command.
1101 Add completers for 'define' and 'document'.
1102 * top.c (execute_command): If command is a user-defined prefix only
1103 command, report the list of commands for this prefix command.
1104
a992a3b0
TBA
11052019-11-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1106
1107 * valops.c (find_oload_champ): Improve debug output.
1108
e9194a1a
TBA
11092019-11-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1110
1111 * valops.c (find_oload_champ): Print part of debug messages
1112 before the badness vector is std::move'd.
1113
53a008a6
TT
11142019-11-28 Tom Tromey <tom@tromey.com>
1115
1116 * value.c (creal_internal_fn): Fix comment.
1117
bab05c83
TT
11182019-11-28 Tom Tromey <tom@tromey.com>
1119
1120 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count,
1121 flag_bound_evaluated>: Now unsigned.
1122
2522f049
TT
11232019-11-28 Tom Tromey <tom@tromey.com>
1124
1125 * guile/guile-internal.h (vlscm_scm_from_value_unsafe): Don't
1126 declare.
1127
38b49e22
MS
11282019-11-28 Mihails Strasuns <mihails.strasuns@intel.com>
1129
1130 * jit.c (jit_bfd_try_read_symtab): Fix printed function name in the
1131 debug output.
1132 * jit.c (jit_unregister_code): Add debug print to match
1133 `jit_register_code`.
1134
35125921
CB
11352019-11-27 Christian Biesinger <cbiesinger@google.com>
1136
1137 * NEWS: Mention the new multithreaded symbol loading.
1138
62e77f56
CB
11392019-11-27 Christian Biesinger <cbiesinger@google.com>
1140
1141 * maint.c (n_worker_threads): Default to 0.
1142 (worker_threads_disabled): New function.
1143 * maint.h (worker_threads_disabled): New function.
1144 * minsyms.c (minimal_symbol_reader::record_full): Call symbol_set_names
1145 here if worker_threads_disabled () is true.
1146 (minimal_symbol_reader::install): Skip all threading if
1147 worker_threads_disabled () is true.
1148
f29d7f6b
CB
11492019-11-27 Christian Biesinger <cbiesinger@google.com>
1150
1151 * minsyms.c (add_minsym_to_hash_table): Use a previously computed
1152 hash code if possible.
1153 (add_minsym_to_demangled_hash_table): Likewise.
1154 (minimal_symbol_reader::install): Compute the hash codes for msymbol
1155 on the background thread.
1156 * symtab.h (struct minimal_symbol) <hash_value, demangled_hash_value>:
1157 Add these fields.
1158
e76b2246
CB
11592019-11-27 Christian Biesinger <cbiesinger@google.com>
1160
1161 * minsyms.c (minimal_symbol_reader::install): Also compute the hash
1162 of the mangled name on the background thread.
1163 * symtab.c (symbol_set_names): Allow passing in the hash of the
1164 linkage_name.
1165 * symtab.h (symbol_set_names): Likewise.
1166
8d9a2568
KB
11672019-11-27 Kevin Buettner <kevinb@redhat.com>
1168
1169 * dwarf2read.c (inherit_abstract_dies): Ensure that delayed
1170 physnames are computed for inherited DIEs.
1171
fad03f6e
TT
11722019-11-27 Tom Tromey <tromey@adacore.com>
1173
1174 * dwarf2read.h (struct dwarf2_per_objfile): Remove unnecessary
1175 backslashes.
1176 * cp-support.c: Remove unnecessary backslashes.
1177
43678b0a
CB
11782019-11-27 Christian Biesinger <cbiesinger@google.com>
1179
1180 * ada-exp.y (write_ambiguous_var): Replace SYMBOL_SET_LINKAGE_NAME
1181 with sym->set_linkage_name.
1182 * coffread.c (coff_read_enum_type): Likewise.
1183 * mdebugread.c (parse_symbol): Likewise.
1184 * stabsread.c (patch_block_stabs): Likewise.
1185 (define_symbol): Likewise.
1186 (read_enum_type): Likewise.
1187 (common_block_end): Likewise.
1188 * symtab.h (struct general_symbol_info) <set_linkage_name>: New
1189 function.
1190 (SYMBOL_SET_LINKAGE_NAME): Remove.
1191 * xcoffread.c (process_xcoff_symbol): Replace SYMBOL_SET_LINKAGE_NAME
1192 with sym->set_linkage_name.
1193
db5960b4
AB
11942019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
1195
1196 * mi/mi-cmds.c (mi_cmds): Add 'symbol-info-modules' entry.
1197 * mi/mi-cmds.h (mi_cmd_symbol_info_modules): Declare.
1198 * mi/mi-symbol-cmds.c (mi_cmd_symbol_info_modules): New function.
1199 * NEWS: Mention new MI command.
1200
7dc42066
AB
12012019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
1202
1203 * mi/mi-cmds.c (mi_cmds): Add '-symbol-info-functions',
1204 '-symbol-info-types', and '-symbol-info-variables'.
1205 * mi/mi-cmds.h (mi_cmd_symbol_info_functions): Declare.
1206 (mi_cmd_symbol_info_types): Declare.
1207 (mi_cmd_symbol_info_variables): Declare.
1208 * mi/mi-symbol-cmds.c: Add 'source.h' and 'mi-getopt.h' includes.
1209 (output_debug_symbol): New function.
1210 (output_nondebug_symbol): New function.
1211 (mi_symbol_info): New function.
1212 (mi_info_functions_or_variables): New function.
1213 (mi_cmd_symbol_info_functions): New function.
1214 (mi_cmd_symbol_info_types): New function.
1215 (mi_cmd_symbol_info_variables): New function.
1216 * NEWS: Mention new commands.
1217
5f512a7d
AB
12182019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
1219
1220 * symtab.c (symbol_to_info_string): New function, most content
1221 moved from print_symbol_info, but updated to return a std::string.
1222 (print_symbol_info): Update to use symbol_to_info_string and print
1223 returned string.
1224 * symtab.h (symbol_to_info_string): Declare new function.
1225
470c0b1c
AB
12262019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
1227
1228 * python/python.c (gdbpy_rbreak): Convert to using
1229 global_symbol_searcher.
1230 * symtab.c (file_matches): Convert return type to bool, change
1231 file list to std::vector, update header comment.
1232 (search_symbols): Rename to...
1233 (global_symbol_searcher::search): ...this and update now its
1234 a member function of global_symbol_searcher. Take account of the
1235 changes to file_matches.
1236 (symtab_symbol_info): Convert to using global_symbol_searcher.
1237 (rbreak_command): Likewise.
1238 (search_module_symbols): Likewise.
1239 * symtab.h (enum symbol_search): Update comment.
1240 (search_symbols): Remove declaration.
1241 (class global_symbol_searcher): New class.
1242
57357d9d
TT
12432019-11-26 Tom Tromey <tromey@adacore.com>
1244
1245 * cp-support.c (_initialize_cp_support): Conditionally initialize
1246 gdb_demangle_attempt_core_dump.
1247
3ea16160
TT
12482019-11-26 Tom Tromey <tom@tromey.com>
1249
1250 * python/py-function.c (fnpy_init): Update.
1251 * value.h (add_internal_function): Adjust declaration.
1252 * value.c (function_destroyer): Remove.
1253 (do_add_internal_function): Don't set destroyer or copy name.
1254 (add_internal_function): Take unique_xmalloc_ptr<char> for name.
1255 Set name_allocated.
1256 * python/py-cmd.c (cmdpy_destroyer): Don't free "name".
1257 (cmdpy_init): Set name_allocated.
1258 * cli/cli-decode.h (struct cmd_list_element) <name_allocated>: New
1259 member.
1260 (~cmd_list_element): Free "name" if needed.
1261
1a6d41c6
TT
12622019-11-26 Tom Tromey <tom@tromey.com>
1263
1264 * value.h (add_internal_function): Add new overload. Move
1265 documentation from value.h.
1266 * value.c (do_add_internal_function): New function.
1267 (add_internal_function): Use it. Add new overload.
1268 (function_destroyer): Don't free doc.
1269 * python/py-function.c (fnpy_init): Update.
1270
8318f3c3
TT
12712019-11-26 Tom Tromey <tom@tromey.com>
1272
1273 * python/py-cmd.c (cmdpy_destroyer): Don't free "doc".
1274 (cmdpy_init): Set "doc_allocated".
1275
4da8c3a8
TT
12762019-11-26 Tom Tromey <tom@tromey.com>
1277
1278 * gdbsupport/thread-pool.c (thread_pool::set_thread_count): Set
1279 name of worker thread.
1280 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for
1281 pthread_setname_np.
1282 * configure, config.in: Rebuild.
1283
971db5e2
TT
12842019-11-26 Tom Tromey <tom@tromey.com>
1285
1286 * python/python.c (class gdbpy_gil): New.
1287 (struct gdbpy_event): Add constructor, destructor, operator().
1288 (gdbpy_post_event): Use run_on_main_thread.
1289 (gdbpy_initialize_events): Remove.
1290 (do_start_initialization): Update.
1291
22138db6
TT
12922019-11-26 Tom Tromey <tom@tromey.com>
1293
1294 * NEWS: Add entry.
1295 * maint.c (_initialize_maint_cmds): Add "worker-threads" maint
1296 commands. Call update_thread_pool_size.
1297 (update_thread_pool_size, maintenance_set_worker_threads): New
1298 functions.
1299 (n_worker_threads): New global.
1300
d55c9a68
TT
13012019-11-26 Christian Biesinger <cbiesinger@google.com>
1302 Tom Tromey <tom@tromey.com>
1303
1304 * minsyms.c (minimal_symbol_reader::install): Use
1305 parallel_for_each.
1306 * gdbsupport/parallel-for.h: New file.
1307 * Makefile.in (HFILES_NO_SRCDIR): Add gdbsupport/parallel-for.h.
1308
a0b57563
CB
13092019-11-26 Christian Biesinger <cbiesinger@google.com>
1310 Tom Tromey <tom@tromey.com>
1311
1312 * gdbsupport/thread-pool.h: New file.
1313 * gdbsupport/thread-pool.c: New file.
1314 * Makefile.in (COMMON_SFILES): Add thread-pool.c.
1315 (HFILES_NO_SRCDIR): Add thread-pool.h.
1316
3b3978bc
TT
13172019-11-26 Tom Tromey <tom@tromey.com>
1318
1319 * event-top.h (thread_local_segv_handler): Declare.
1320 * event-top.c (thread_local_segv_handler): New global.
1321 (install_handle_sigsegv, handle_sigsegv): New functions.
1322 (async_init_signals): Install SIGSEGV handler.
1323 * cp-support.c (gdb_demangle_jmp_buf): Change type. Now
1324 thread-local.
1325 (report_failed_demangle): New function.
1326 (gdb_demangle): Make core_dump_allowed atomic. Remove signal
1327 handler-setting code, instead use segv_handler. Run warning code
1328 on main thread.
1329
9411c49e
TT
13302019-11-26 Tom Tromey <tom@tromey.com>
1331
1332 * run-on-main-thread.c: New file.
1333 * run-on-main-thread.h: New file.
1334 * unittests/main-thread-selftests.c: New file.
1335 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1336 main-thread-selftests.c.
1337 (HFILES_NO_SRCDIR): Add run-on-main-thread.h.
1338 (COMMON_SFILES): Add run-on-main-thread.c.
1339
c3efb965
TT
13402019-11-26 Tom Tromey <tom@tromey.com>
1341
1342 * main.c (setup_alternate_signal_stack): Remove.
1343 (captured_main_1): Use gdb::alternate_signal_stack.
1344 * gdbsupport/alt-stack.h: New file.
1345
21987b9c
TT
13462019-11-26 Tom Tromey <tom@tromey.com>
1347
1348 * gdbsupport/signals-state-save-restore.c (original_signal_mask):
1349 Remove comment.
1350 (save_original_signals_state, restore_original_signals_state): Use
1351 gdb_sigmask.
1352 * linux-nat.c (block_child_signals, restore_child_signals_mask)
1353 (_initialize_linux_nat): Use gdb_sigmask.
1354 * guile/guile.c (_initialize_guile): Use block_signals.
1355 * Makefile.in (HFILES_NO_SRCDIR): Add gdb-sigmask.h.
1356 * gdbsupport/gdb-sigmask.h: New file.
1357 * event-top.c (async_sigtstp_handler): Use gdb_sigmask.
1358 * cp-support.c (gdb_demangle): Use gdb_sigmask.
1359 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for
1360 pthread_sigmask.
1361 * configure, config.in: Rebuild.
1362 * gdbsupport/block-signals.h: New file.
1363
5e030278
TT
13642019-11-26 Tom Tromey <tom@tromey.com>
1365
1366 * acinclude.m4: Include ax_pthread.m4.
1367 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
1368 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
1369 (CLIBS): Use PTHREAD_LIBS.
1370 (aclocal_m4_deps): Add ax_pthread.m4.
1371 * config.in, configure: Rebuild.
1372 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for std::thread.
1373
5a79c107
TT
13742019-11-26 Tom Tromey <tom@tromey.com>
1375
1376 * symtab.h (struct minimal_symbol) <name_set>: New member.
1377 * minsyms.c (minimal_symbol_reader::record_full): Copy name.
1378 Don't call symbol_set_names.
1379 (minimal_symbol_reader::install): Call symbol_set_names.
1380
aa369509
PW
13812019-11-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1382
1383 * python/python.c (gdbpy_enter::~gdbpy_enter): Release GIL after
1384 restore_active_ext_lang, as GIL is needed for (indirectly)
1385 called PyOS_InterruptOccurred.
1386
cadc9cb8
SM
13872019-11-26 Simon Marchi <simon.marchi@efficios.com>
1388
1389 * sparc-nat.c (sparc_xfer_wcookie): Sync declaration with
1390 definition.
1391
d04afd58
SM
13922019-11-26 Simon Marchi <simon.marchi@efficios.com>
1393
1394 * remote-sim.c (simulator_command): Make static, remove
1395 declaration.
1396
dd694d77
SM
13972019-11-26 Simon Marchi <simon.marchi@efficios.com>
1398
1399 * unittests/array-view-selftests.c (check_ptr_size_ctor2): Make
1400 static.
1401 * unittests/basic_string_view/capacity/1.cc (test01): Likewise.
1402 * unittests/basic_string_view/cons/char/1.cc (test01): Likewise.
1403 (main): Likewise.
1404 * unittests/basic_string_view/cons/char/2.cc (test03): Likewise.
1405 (main): Likewise.
1406 * unittests/basic_string_view/cons/char/3.cc (test05): Likewise.
1407 (main): Likewise.
1408 * unittests/basic_string_view/element_access/char/1.cc (test01):
1409 Likewise.
1410 (main): Likewise.
1411 * unittests/basic_string_view/element_access/char/empty.cc (main):
1412 Likewise.
1413 * unittests/basic_string_view/element_access/char/front_back.cc
1414 (test01): Likewise.
1415 (main): Likewise.
1416 * unittests/basic_string_view/inserters/char/2.cc (test05):
1417 Likewise.
1418 (main): Likewise.
1419 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc
1420 (test01): Likewise.
1421 (main): Likewise.
1422 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc
1423 (test01): Likewise.
1424 (main): Likewise.
1425 * unittests/basic_string_view/modifiers/swap/char/1.cc (test01):
1426 Likewise.
1427 * unittests/basic_string_view/operations/compare/char/1.cc
1428 (test01): Likewise.
1429 (main): Likewise.
1430 * unittests/basic_string_view/operations/compare/char/13650.cc
1431 (test01): Likewise.
1432 * unittests/basic_string_view/operations/copy/char/1.cc (test01):
1433 Likewise.
1434 (main): Likewise.
1435 * unittests/basic_string_view/operations/data/char/1.cc (test01):
1436 Likewise.
1437 (main): Likewise.
1438 * unittests/basic_string_view/operations/find/char/1.cc (test01):
1439 Likewise.
1440 (main): Likewise.
1441 * unittests/basic_string_view/operations/find/char/2.cc (test02):
1442 Likewise.
1443 (main): Likewise.
1444 * unittests/basic_string_view/operations/find/char/3.cc (test03):
1445 Likewise.
1446 (main): Likewise.
1447 * unittests/basic_string_view/operations/find/char/4.cc (main):
1448 Likewise.
1449 * unittests/basic_string_view/operations/rfind/char/1.cc (test01):
1450 Likewise.
1451 (main): Likewise.
1452 * unittests/basic_string_view/operations/rfind/char/2.cc (test02):
1453 Likewise.
1454 (main): Likewise.
1455 * unittests/basic_string_view/operations/rfind/char/3.cc (test03):
1456 Likewise.
1457 (main): Likewise.
1458 * unittests/basic_string_view/operations/substr/char/1.cc
1459 (test01): Likewise.
1460 (main): Likewise.
1461 * unittests/basic_string_view/operators/char/2.cc (main):
1462 Likewise.
1463 * unittests/optional/assignment/1.cc (test): Likewise.
1464 * unittests/optional/assignment/2.cc (test): Likewise.
1465 * unittests/optional/assignment/3.cc (test): Likewise.
1466 * unittests/optional/assignment/4.cc (test): Likewise.
1467 * unittests/optional/assignment/5.cc (test): Likewise.
1468 * unittests/optional/assignment/6.cc (test): Likewise.
1469 * unittests/optional/assignment/7.cc (test): Likewise.
1470 * unittests/optional/cons/copy.cc (test): Likewise.
1471 * unittests/optional/cons/default.cc (test): Likewise.
1472 * unittests/optional/cons/move.cc (test): Likewise.
1473 * unittests/optional/cons/value.cc (test): Likewise.
1474 * unittests/optional/in_place.cc (test): Likewise.
1475 * unittests/optional/observers/1.cc (test): Likewise.
1476 * unittests/optional/observers/2.cc (test): Likewise.
1477
3b5c1d49
SM
14782019-11-26 Simon Marchi <simon.marchi@efficios.com>
1479
1480 * tui-win.h (tui_set_var_cmd): Remove.
1481 * tui-win.c (tui_set_var_cmd): Make static.
1482
adce99fe
SM
14832019-11-26 Simon Marchi <simon.marchi@efficios.com>
1484
1485 * breakpoint.h (hbreak_command_wrapper, thbreak_command_wrapper,
1486 rbreak_command_wrapper): Remove.
1487 * symtab.c (rbreak_command_wrapper): Remove.
1488
fe3adccf
SM
14892019-11-26 Simon Marchi <simon.marchi@efficios.com>
1490
1491 * inferior.h (info_terminal_command): Remove declaration.
1492 * inflow.c (info_terminal_command): Make static.
1493
b926335f
SM
14942019-11-26 Simon Marchi <simon.marchi@efficios.com>
1495
1496 * inferior.c (exit_inferior_silent): Remove.
1497
b62f6f54
SM
14982019-11-26 Simon Marchi <simon.marchi@efficios.com>
1499
1500 * dictionary.c (dict_empty, mdict_empty): Remove.
1501 * dictionary.c (mdict_empty): Remove.
1502
cb8c24b6
SM
15032019-11-26 Simon Marchi <simon.marchi@efficios.com>
1504
1505 * arc-tdep.c (arc_insn_get_memory_base_reg): Make static.
1506 (arc_insn_get_memory_offset): Likewise.
1507 (arc_insn_dump): Likewise.
1508 * cp-support.c (test_cp_symbol_name_matches): Likewise.
1509 * csky-linux-tdep.c (csky_supply_fregset): Likewise.
1510 * dictionary.c (dict_iterator_next): Likewise.
1511 (dict_iter_match_first): Likewise.
1512 (dict_iter_match_next): Likewise.
1513 * f-lang.c (evaluate_subexp_f): Likewise.
1514 * hppa-tdep.c (hppa_read_pc): Likewise.
1515 * i386-tdep.c (i386_floatformat_for_type): Likewise.
1516 * parse.c (write_exp_elt_msym): Likewise.
1517 * ppc-linux-tdep.c (ppc_floatformat_for_type): Likewise.
1518 * remote.c (remote_packet_size): Likewise.
1519 (remote_notif_stop_parse): Likewise.
1520 * rs6000-aix-tdep.c (aix_sighandle_frame_sniffer): Likewise.
1521 * s12z-tdep.c (s12z_disassemble_info): Likewise.
1522 * source.c (prepare_path_for_appending): Likewise.
1523 * sparc64-linux-tdep.c
1524 (sparc64_linux_handle_segmentation_fault); Likewise.
1525 * stack.c (frame_selection_by_function_completer): Likewise.
1526
781597ff
SM
15272019-11-26 Simon Marchi <simon.marchi@efficios.com>
1528
1529 * completer.c (set_gdb_completion_word_break_characters):
1530 Remove.
1531
23baa4cc
SM
15322019-11-26 Simon Marchi <simon.marchi@efficios.com>
1533
1534 * dwarf-index-write.c: Include dwarf-index-write.h.
1535 * mi/mi-interp.c: Include mi/mi-interp.h.
1536
23767560
SM
15372019-11-26 Simon Marchi <simon.marchi@efficios.com>
1538
1539 * aarch32-tdep.c: Include aarch32-tdep.h.
1540 * aarch32-tdep.h: Forward-declare struct target_desc.
1541
6d91ce9a
CB
15422019-11-26 Christian Biesinger <cbiesinger@google.com>
1543
1544 * linux-nat.c (detach_one_lwp): Call safe_strerror instead of
1545 strerror.
1546 * nto-procfs.c (nto_procfs_target::create_inferior): Likewise.
1547 * windows-nat.c (windows_nat_target::create_inferior): Likewise.
1548
3cf2f237
TV
15492019-11-25 Tom de Vries <tdevries@suse.de>
1550
1551 * contrib/words.sh: Add -c option.
1552
5b89c67a
CB
15532019-11-25 Christian Biesinger <cbiesinger@google.com>
1554
1555 * solib.c (solib_find_1): Change int to bool.
1556 (exec_file_find): Change int to bool.
1557 (solib_find): Change int to bool.
1558 (solib_read_symbols): Change int to bool.
1559 (solib_used): Change int to bool.
1560 (solib_add): Change int to bool.
1561 (info_sharedlibrary_command): Change int to bool.
1562 (solib_contains_address_p): Change int to bool.
1563 (solib_keep_data_in_core): Change int to bool.
1564 (in_solib_dynsym_resolve_code): Change int to bool.
1565 (reload_shared_libraries_1): Change int to bool.
1566 (gdb_sysroot_changed): Change int to bool.
1567 * solib.h (solib_read_symbols): Change int to bool.
1568 (solib_contains_address_p): Change int to bool.
1569 (solib_keep_data_in_core): Change int to bool.
1570 (in_solib_dynsym_resolve_code): Change int to bool.
1571 (libpthread_name_p): Change int to bool.
1572
6cc8564b
LM
15732019-11-25 Luis Machado <luis.machado@linaro.org>
1574
1575 * NEWS (New Commands): Mention "set debug remote-packet-max-chars".
1576 * remote.c (REMOTE_DEBUG_MAX_CHAR): Remove.
1577 (remote_packet_max_chars): New static global.
1578 (show_remote_packet_max_chars): New function.
1579 (remote_target::putpkt_binary): Adjust to use new
1580 remote_packet_max_chars option.
1581 (remote_target::getpkt_or_notif_sane_1): Likewise.
1582 (_initialize_remote): Register new remote-packet-max-chars option.
1583
a7cdaa91
SM
15842019-11-24 Simon Marchi <simon.marchi@efficios.com>
1585
1586 * m68k-linux-nat.c: Include gdbarch.h.
1587
26abc753
TT
15882019-11-24 Tom Tromey <tom@tromey.com>
1589
1590 * symfile.c (read_symbols): Update.
1591 * psymtab.c (require_partial_symbols): Change type of "verbose" to
1592 bool.
1593 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
1594 (psym_lookup_symbol, psym_find_last_source_symtab)
1595 (psym_forget_cached_source_info, psym_print_stats)
1596 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
1597 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
1598 (psym_map_matching_symbols, psym_expand_symtabs_matching)
1599 (psym_find_compunit_symtab_by_address)
1600 (maintenance_print_psymbols, maintenance_info_psymtabs)
1601 (maintenance_check_psymtabs): Update.
1602 * psymtab.h (require_partial_symbols): Change type of "verbose" to
1603 bool.
1604
012fc909
TT
16052019-11-22 Tom Tromey <tom@tromey.com>
1606
1607 * observable.h: Update comments.
1608
c83d8d32
TT
16092019-11-22 Tom Tromey <tromey@adacore.com>
1610
1611 * ada-tasks.c (ada_task_is_alive): Make parameter const.
1612 (print_ada_task_info): Don't try to fetch thread id if task is not
1613 alive.
1614
987012b8
CB
16152019-11-22 Christian Biesinger <cbiesinger@google.com>
1616
1617 * ada-exp.y: Update.
1618 * ada-lang.c (sort_choices): Update.
1619 (ada_print_symbol_signature): Update.
1620 (resolve_subexp): Update.
1621 (ada_parse_renaming): Update.
1622 (ada_read_renaming_var_value): Update.
1623 (lesseq_defined_than): Update.
1624 (remove_extra_symbols): Update.
1625 (remove_irrelevant_renamings): Update.
1626 (ada_add_block_symbols): Update.
1627 (ada_collect_symbol_completion_matches): Update.
1628 (ada_is_renaming_symbol): Update.
1629 (aggregate_assign_from_choices): Update.
1630 (ada_evaluate_subexp): Update.
1631 (ada_has_this_exception_support): Update.
1632 (ada_is_non_standard_exception_sym): Update.
1633 (ada_add_exceptions_from_frame): Update.
1634 (ada_add_global_exceptions): Update.
1635 (ada_print_subexp): Update.
1636 * ax-gdb.c (gen_var_ref): Update.
1637 (gen_maybe_namespace_elt): Update.
1638 (gen_expr_for_cast): Update.
1639 (gen_expr): Update.
1640 * block.h: Update.
1641 * blockframe.c (find_pc_partial_function): Update.
1642 * breakpoint.c (print_breakpoint_location): Update.
1643 (update_static_tracepoint): Update.
1644 * btrace.c (ftrace_print_function_name): Update.
1645 (ftrace_function_switched): Update.
1646 * buildsym.c (find_symbol_in_list): Update.
1647 * c-exp.y: Update.
1648 * c-typeprint.c (c_print_typedef): Update.
1649 (c_type_print_template_args): Update.
1650 * cli/cli-cmds.c (edit_command): Update.
1651 (list_command): Update.
1652 (print_sal_location): Update.
1653 * coffread.c (patch_opaque_types): Update.
1654 (process_coff_symbol): Update.
1655 (coff_read_enum_type): Update.
1656 * compile/compile-c-symbols.c (c_symbol_substitution_name): Update.
1657 (convert_one_symbol): Update.
1658 (hash_symname): Update.
1659 (eq_symname): Update.
1660 * compile/compile-cplus-symbols.c (convert_one_symbol): Update.
1661 * compile/compile-cplus-types.c (debug_print_scope): Update.
1662 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
1663 * compile/compile-object-load.c (get_out_value_type): Update.
1664 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
1665 (search_symbol_list): Update.
1666 (cp_lookup_symbol_imports_or_template): Update.
1667 * cp-support.c (overload_list_add_symbol): Update.
1668 * ctfread.c (psymtab_to_symtab): Update.
1669 * dbxread.c (cp_set_block_scope): Update.
1670 * dictionary.c (iter_match_first_hashed): Update.
1671 (iter_match_next_hashed): Update.
1672 (insert_symbol_hashed): Update.
1673 (iter_match_next_linear): Update.
1674 * dictionary.h: Update.
1675 * dwarf2loc.c (func_get_frame_base_dwarf_block): Update.
1676 (locexpr_describe_location_piece): Update.
1677 (locexpr_describe_location_1): Update.
1678 (locexpr_generate_c_location): Update.
1679 (loclist_describe_location): Update.
1680 (loclist_generate_c_location): Update.
1681 * dwarf2read.c (dw2_debug_names_lookup_symbol): Update.
1682 (read_func_scope): Update.
1683 (process_enumeration_scope): Update.
1684 (new_symbol): Update.
1685 (dwarf2_const_value): Update.
1686 (dwarf2_symbol_mark_computed): Update.
1687 * eval.c (evaluate_funcall): Update.
1688 (evaluate_subexp_standard): Update.
1689 * expprint.c (print_subexp_standard): Update.
1690 (dump_subexp_body_standard): Update.
1691 * f-valprint.c (info_common_command_for_block): Update.
1692 * findvar.c (get_hosting_frame): Update.
1693 (default_read_var_value): Update.
1694 * go-lang.c (go_symbol_package_name): Update.
1695 * guile/scm-block.c (bkscm_print_block_smob): Update.
1696 * guile/scm-symbol.c (syscm_print_symbol_smob): Update.
1697 (gdbscm_symbol_name): Update.
1698 (gdbscm_symbol_linkage_name): Update.
1699 (gdbscm_symbol_print_name): Update.
1700 * infcall.c (get_function_name): Update.
1701 * infcmd.c (jump_command): Update.
1702 (finish_command): Update.
1703 * infrun.c (insert_exception_resume_breakpoint): Update.
1704 * linespec.c (canonicalize_linespec): Update.
1705 (create_sals_line_offset): Update.
1706 (convert_linespec_to_sals): Update.
1707 (complete_label): Update.
1708 (find_label_symbols_in_block): Update.
1709 * m2-typeprint.c (m2_print_typedef): Update.
1710 * mdebugread.c (mdebug_reg_to_regnum): Update.
1711 (parse_symbol): Update.
1712 (mylookup_symbol): Update.
1713 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
1714 (list_args_or_locals): Update.
1715 * objc-lang.c (compare_selectors): Update.
1716 (info_selectors_command): Update.
1717 (compare_classes): Update.
1718 (info_classes_command): Update.
1719 (find_imps): Update.
1720 * p-typeprint.c (pascal_print_typedef): Update.
1721 * printcmd.c (build_address_symbolic): Update.
1722 (info_address_command): Update.
1723 (print_variable_and_value): Update.
1724 * python/py-framefilter.c (extract_sym): Update.
1725 (py_print_single_arg): Update.
1726 * python/py-symbol.c (sympy_str): Update.
1727 (sympy_get_name): Update.
1728 (sympy_get_linkage_name): Update.
1729 * python/python.c (gdbpy_rbreak): Update.
1730 * record-btrace.c (btrace_get_bfun_name): Update.
1731 (btrace_call_history): Update.
1732 * rust-lang.c (rust_print_typedef): Update.
1733 * solib-frv.c (frv_fdpic_find_canonical_descriptor): Update.
1734 * stabsread.c (stab_reg_to_regnum): Update.
1735 (define_symbol): Update.
1736 (read_enum_type): Update.
1737 (common_block_end): Update.
1738 (cleanup_undefined_types_1): Update.
1739 (scan_file_globals): Update.
1740 * stack.c (print_frame_arg): Update.
1741 (print_frame_args): Update.
1742 (find_frame_funname): Update.
1743 (info_frame_command_core): Update.
1744 (iterate_over_block_locals): Update.
1745 (print_block_frame_labels): Update.
1746 (do_print_variable_and_value): Update.
1747 (iterate_over_block_arg_vars): Update.
1748 (return_command): Update.
1749 * symmisc.c (dump_symtab_1): Update.
1750 (print_symbol): Update.
1751 * symtab.c (eq_symbol_entry): Update.
1752 (symbol_cache_dump): Update.
1753 (lookup_language_this): Update.
1754 (find_pc_sect_line): Update.
1755 (skip_prologue_sal): Update.
1756 (symbol_search::compare_search_syms): Update.
1757 (treg_matches_sym_type_name): Update.
1758 (search_symbols): Update.
1759 (print_symbol_info): Update.
1760 (rbreak_command): Update.
1761 (completion_list_add_symbol): Update.
1762 (find_gnu_ifunc): Update.
1763 (get_symbol_address): Update.
1764 (search_module_symbols): Update.
1765 (info_module_subcommand): Update.
1766 * symtab.h (SYMBOL_NATURAL_NAME): Remove.
1767 (SYMBOL_LINKAGE_NAME): Remove.
1768 (SYMBOL_DEMANGLED_NAME): Remove.
1769 (SYMBOL_PRINT_NAME): Remove.
1770 (SYMBOL_SEARCH_NAME): Remove.
1771 * tracepoint.c (set_traceframe_context): Update.
1772 (validate_actionline): Update.
1773 (collection_list::collect_symbol): Update.
1774 (encode_actions_1): Update.
1775 (info_scope_command): Update.
1776 (print_one_static_tracepoint_marker): Update.
1777 * typeprint.c (typedef_hash_table::add_template_parameters): Update.
1778 * valops.c (address_of_variable): Update.
1779 (find_overload_match): Update.
1780 (find_oload_champ): Update.
1781
c9d95fa3
CB
17822019-11-22 Christian Biesinger <cbiesinger@google.com>
1783
1784 * ada-lang.c (ada_lookup_simple_minsym): Update.
1785 (ada_collect_symbol_completion_matches): Update.
1786 * ada-tasks.c (read_atcb): Update.
1787 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
1788 (amd64_windows_skip_trampoline_code): Update.
1789 * arm-tdep.c (skip_prologue_function): Update.
1790 (arm_skip_stack_protector): Update.
1791 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
1792 (arm_wince_skip_main_prologue): Update.
1793 * ax-gdb.c (gen_expr): Update.
1794 * block.c (call_site_for_pc): Update.
1795 * blockframe.c (find_pc_partial_function): Update.
1796 * breakpoint.c (set_breakpoint_location_function): Update.
1797 * btrace.c (ftrace_print_function_name): Update.
1798 (ftrace_function_switched): Update.
1799 * c-valprint.c (print_unpacked_pointer): Update.
1800 * coffread.c (coff_symfile_read): Update.
1801 * compile/compile-c-symbols.c (convert_symbol_bmsym): Update.
1802 * compile/compile-cplus-symbols.c (convert_symbol_bmsym): Update.
1803 * dwarf-index-write.c (write_psymbols): Update.
1804 * dwarf2loc.c (call_site_to_target_addr): Update.
1805 (func_verify_no_selftailcall): Update.
1806 (tailcall_dump): Update.
1807 (call_site_find_chain_1): Update.
1808 (dwarf_expr_reg_to_entry_parameter): Update.
1809 * elfread.c (elf_gnu_ifunc_record_cache): Update.
1810 * eval.c (evaluate_funcall): Update.
1811 (evaluate_subexp_standard): Update.
1812 (evaluate_subexp_for_sizeof): Update.
1813 * expprint.c (print_subexp_standard): Update.
1814 (dump_subexp_body_standard): Update.
1815 * frame.c (get_prev_frame_always_1): Update.
1816 * frv-tdep.c (frv_skip_main_prologue): Update.
1817 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
1818 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
1819 (gnuv3_get_typename_from_type_info): Update.
1820 (gnuv3_skip_trampoline): Update.
1821 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
1822 * i386-tdep.c (i386_skip_main_prologue): Update.
1823 (i386_pe_skip_trampoline_code): Update.
1824 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
1825 * infcall.c (get_function_name): Update.
1826 * linespec.c (minsym_found): Update.
1827 * linux-fork.c (info_checkpoints_command): Update.
1828 * m32c-tdep.c (m32c_m16c_address_to_pointer): Update.
1829 (m32c_m16c_pointer_to_address): Update.
1830 * maint.c (maintenance_translate_address): Update.
1831 * minsyms.c (add_minsym_to_hash_table): Update.
1832 (add_minsym_to_demangled_hash_table): Update.
1833 (lookup_minimal_symbol_mangled): Update.
1834 (lookup_minimal_symbol_demangled): Update.
1835 (lookup_minimal_symbol_linkage): Update.
1836 (lookup_minimal_symbol_text): Update.
1837 (lookup_minimal_symbol_by_pc_name): Update.
1838 (minimal_symbol_is_less_than): Update.
1839 (compact_minimal_symbols): Update.
1840 (build_minimal_symbol_hash_tables): Update.
1841 (find_solib_trampoline_target): Update.
1842 * mips-tdep.c (mips_stub_frame_sniffer): Update.
1843 (mips_skip_pic_trampoline_code): Update.
1844 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
1845 * objc-lang.c (info_selectors_command): Update.
1846 (info_classes_command): Update.
1847 (find_methods): Update.
1848 (find_imps): Update.
1849 * p-valprint.c (pascal_val_print): Update.
1850 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Update.
1851 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
1852 * printcmd.c (build_address_symbolic): Update.
1853 (info_symbol_command): Update.
1854 * psymtab.c (psymbol_name_matches): Update.
1855 (match_partial_symbol): Update.
1856 (lookup_partial_symbol): Update.
1857 (print_partial_symbols): Update.
1858 (sort_pst_symbols): Update.
1859 (maintenance_check_psymtabs): Update.
1860 * python/py-framefilter.c (py_print_frame): Update.
1861 * python/python.c (gdbpy_rbreak): Update.
1862 * record-btrace.c (btrace_get_bfun_name): Update.
1863 (btrace_call_history): Update.
1864 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
1865 (rs6000_skip_trampoline_code): Update.
1866 * sol-thread.c (info_cb): Update.
1867 * stabsread.c (scan_file_globals): Update.
1868 * stack.c (find_frame_funname): Update.
1869 (info_frame_command_core): Update.
1870 * symmisc.c (dump_msymbols): Update.
1871 * symtab.c (symbol_natural_name): Rename to..,
1872 (general_symbol_info::natural_name): ...this.
1873 (symbol_demangled_name): Rename to...
1874 (general_symbol_info::demangled_name): ...this.
1875 (symbol_search_name): Rename to...
1876 (general_symbol_info::search_name): ...this.
1877 (symbol_matches_search_name): Update.
1878 (find_pc_sect_line): Update.
1879 (skip_prologue_sal): Update.
1880 (search_symbols): Update.
1881 (print_msymbol_info): Update.
1882 (rbreak_command): Update.
1883 (completion_list_add_msymbol): Update.
1884 (completion_list_objc_symbol): Update.
1885 (get_msymbol_address): Update.
1886 * symtab.h (struct general_symbol_info): Add member functions
1887 natural_name (), linkage_name (), print_name (), demangled_name (),
1888 and search_name ().
1889 (SYMBOL_NATURAL_NAME): Update.
1890 (symbol_natural_name): Move to a member function on general_symbol_info.
1891 (SYMBOL_DEMANGLED_NAME): Update.
1892 (symbol_demangled_name): Move to a member function on
1893 general_symbol_info.
1894 (SYMBOL_SEARCH_NAME): Update.
1895 (symbol_search_name): Move to a member function on general_symbol_info.
1896 (MSYMBOL_NATURAL_NAME): Remove.
1897 (MSYMBOL_LINKAGE_NAME): Remove.
1898 (MSYMBOL_PRINT_NAME): Remove.
1899 (MSYMBOL_DEMANGLED_NAME): Remove.
1900 (MSYMBOL_SEARCH_NAME): Remove.
1901 * x86-tdep.c (x86_in_indirect_branch_thunk): Update.
1902
f8bab2d6
CB
19032019-11-22 Christian Biesinger <cbiesinger@google.com>
1904
1905 * symtab.c (create_demangled_names_hash): Use per_bfd->
1906 minimal_symbol_count for computing the initial size, if greater
1907 than our default size.
1908
85e7588d
TV
19092019-11-22 Tom de Vries <tdevries@suse.de>
1910
1911 * contrib/words.sh: Improve words extraction.
1912
f6180073
TV
19132019-11-22 Tom de Vries <tdevries@suse.de>
1914
1915 * contrib/words.sh: Combine sed invocations.
1916
f10ffa41
CB
19172019-11-21 Christian Biesinger <cbiesinger@google.com>
1918
1919 * Makefile.in: Update.
1920 * demangle.c: Rename to...
1921 * gdb-demangle.c: ..this.
1922 (is_cplus_marker): Change return type to bool.
1923 (_initialize_demangler): Rename to...
1924 (_initialize_gdb_demangle): ...this.
1925 * gdb-demangle.h (is_cplus_marker): Change return type to bool.
1926 * symtab.h (demangle): Remove declaration; instead include
1927 gdb-demangle.h.
1928
6ba18521
TT
19292019-11-21 Tom Tromey <tromey@adacore.com>
1930
1931 * gdbsupport/format.c (format_pieces): Parse %I64d.
1932 * unittests/format_pieces-selftests.c (test_windows_formats): New
1933 function.
1934 (run_tests): Call it.
1935
34877895
PJ
19362019-11-21 Peeter Joot <peeter.joot@lzlabs.com>
1937
1938 Byte reverse display of variables with DW_END_big, DW_END_little
1939 (DW_AT_endianity) dwarf attributes if different than the native
1940 byte order.
1941 * ada-lang.c (ada_value_binop):
1942 Use type_byte_order instead of gdbarch_byte_order.
1943 * ada-valprint.c (printstr):
1944 (ada_val_print_string):
1945 * ada-lang.c (value_pointer):
1946 (ada_value_binop):
1947 Use type_byte_order instead of gdbarch_byte_order.
1948 * c-lang.c (c_get_string):
1949 Use type_byte_order instead of gdbarch_byte_order.
1950 * c-valprint.c (c_val_print_array):
1951 Use type_byte_order instead of gdbarch_byte_order.
1952 * cp-valprint.c (cp_print_class_member):
1953 Use type_byte_order instead of gdbarch_byte_order.
1954 * dwarf2loc.c (rw_pieced_value):
1955 Use type_byte_order instead of gdbarch_byte_order.
1956 * dwarf2read.c (read_base_type): Handle DW_END_big,
1957 DW_END_little
1958 * f-lang.c (f_get_encoding):
1959 Use type_byte_order instead of gdbarch_byte_order.
1960 * findvar.c (default_read_var_value):
1961 Use type_byte_order instead of gdbarch_byte_order.
1962 * gdbtypes.c (check_types_equal):
1963 Require matching TYPE_ENDIANITY_NOT_DEFAULT if set.
1964 (recursive_dump_type): Print TYPE_ENDIANITY_BIG,
1965 and TYPE_ENDIANITY_LITTLE if set.
1966 (type_byte_order): new function.
1967 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): New macro.
1968 (struct main_type) <flag_endianity_not_default>:
1969 New field.
1970 (type_byte_order): New function.
1971 * infcmd.c (default_print_one_register_info):
1972 Use type_byte_order instead of gdbarch_byte_order.
1973 * p-lang.c (pascal_printstr):
1974 Use type_byte_order instead of gdbarch_byte_order.
1975 * p-valprint.c (pascal_val_print):
1976 Use type_byte_order instead of gdbarch_byte_order.
1977 * printcmd.c (print_scalar_formatted):
1978 Use type_byte_order instead of gdbarch_byte_order.
1979 * solib-darwin.c (darwin_current_sos):
1980 Use type_byte_order instead of gdbarch_byte_order.
1981 * solib-svr4.c (solib_svr4_r_ldsomap):
1982 Use type_byte_order instead of gdbarch_byte_order.
1983 * stap-probe.c (stap_modify_semaphore):
1984 Use type_byte_order instead of gdbarch_byte_order.
1985 * target-float.c (target_float_same_format_p):
1986 Use type_byte_order instead of gdbarch_byte_order.
1987 * valarith.c (scalar_binop):
1988 (value_bit_index):
1989 Use type_byte_order instead of gdbarch_byte_order.
1990 * valops.c (value_cast):
1991 Use type_byte_order instead of gdbarch_byte_order.
1992 * valprint.c (generic_emit_char):
1993 (generic_printstr):
1994 (val_print_string):
1995 Use type_byte_order instead of gdbarch_byte_order.
1996 * value.c (unpack_long):
1997 (unpack_bits_as_long):
1998 (unpack_value_bitfield):
1999 (modify_field):
2000 (pack_long):
2001 (pack_unsigned_long):
2002 Use type_byte_order instead of gdbarch_byte_order.
2003 * findvar.c (unsigned_pointer_to_address):
2004 (signed_pointer_to_address):
2005 (unsigned_address_to_pointer):
2006 (address_to_signed_pointer):
2007 (default_read_var_value):
2008 (default_value_from_register):
2009 Use type_byte_order instead of gdbarch_byte_order.
2010 * gnu-v3-abi.c (gnuv3_make_method_ptr):
2011 Use type_byte_order instead of gdbarch_byte_order.
2012 * riscv-tdep.c (riscv_print_one_register_info):
2013 Use type_byte_order instead of gdbarch_byte_order.
2014
87fb00ea
SM
20152019-11-21 Simon Marchi <simon.marchi@polymtl.ca>
2016
2017 * top.c (current_ui_gdb_stdout_ptr): Spell out by hand.
2018 (current_ui_gdb_stdin_ptr): Likewise.
2019 (current_ui_gdb_stderr_ptr): Likewise.
2020 (current_ui_gdb_stdlog_ptr): Likewise.
2021 (current_ui_current_uiout_ptr): Likewise.
2022 (gen_ret_current_ui_field_ptr): Remove.
2023
65d1cd5f
TV
20242019-11-21 Tom de Vries <tdevries@suse.de>
2025
2026 PR gdb/24956
2027 * cli/cli-script.c (execute_control_command): Only switch to
2028 INTERP_CONSOLE's ui_out when INTERP_MI is active.
2029
9f6ad286
TT
20302019-11-19 Tom Tromey <tom@tromey.com>
2031
2032 * tui/tui-win.c (tui_partial_win_by_name): Move from tui-data.c.
2033 Now static. Change type of "name".
2034 (tui_set_win_height_command): Don't copy "arg".
2035 * tui/tui-data.h (tui_partial_win_by_name): Don't declare.
2036 * tui/tui-data.c (tui_partial_win_by_name): Move to tui-win.c.
2037
435d3d88
AT
20382019-11-19 Ali Tamur <tamur@google.com>
2039
2040 * dwarf2read.c (dw2_get_file_names_reader): Replace "if (attr)" with
2041 "if (attr != nullptr)".
2042 (dwarf2_find_base_address): Likewise.
2043 (dwarf2_build_include_psymtabs): Likewise.
2044 (read_cutu_die_from_dwo): Likewise.
2045 (read_func_scope): Likewise.
2046 (read_call_site_scope): Likewise.
2047 (dwarf2_get_pc_bounds): Likewise.
2048 (dwarf2_record_block_ranges): Likewise.
2049 (dwarf2_add_field): Likewise.
2050 (dwarf2_add_member_fn): Likewise.
2051 (read_structure_type): Likewise.
2052 (read_enumeration_type): Likewise.
2053 (read_array_type): Likewise.
2054 (read_array_order): Likewise.
2055 (read_set_type): Likewise.
2056 (read_common_block): Likewise.
2057 (read_tag_reference_type): Likewise.
2058 (read_tag_string_type): Likewise.
2059 (read_subroutine_type): Likewise.
2060 (read_base_type): Likewise.
2061 (read_subrange_type): Likewise.
2062 (new_symbol): Likewise.
2063 (prepare_one_comp_unit): Likewise.
2064
c9739b6a
TT
20652019-11-19 Tom Tromey <tromey@adacore.com>
2066
2067 * windows-nat.c (windows_nat_target::attach): Include GetLastError
2068 result in error when DebugActiveProcess fails.
2069
494409bb
SDJ
20702019-11-18 Sergio Durigan Junior <sergiodj@redhat.com>
2071 Pedro Alves <palves@redhat.com>
2072
2073 https://bugzilla.redhat.com/show_bug.cgi?id=1765117
2074 * target.c (target_stack::push): Call 'unpush' if there's a
2075 target on top of the stack.
2076
2e953aca
PW
20772019-11-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2078
2079 * python/py-block.c (blpy_dealloc): Call tp_free.
2080 (blpy_block_syms_dealloc): Likewise.
2081 * python/py-finishbreakpoint.c (bpfinishpy_dealloc): Likewise.
2082 * python/py-inferior.c (infpy_dealloc): Likewise.
2083 * python/py-lazy-string.c (stpy_dealloc): Likewise.
2084 * python/py-linetable.c (ltpy_iterator_dealloc): Likewise.
2085 * python/py-symbol.c (sympy_dealloc): Likewise.
2086 * python/py-symtab.c (stpy_dealloc): Likewise.
2087 * python/py-type.c (typy_iterator_dealloc): Likewise.
2088
6edc43ec
CB
20892019-11-18 Christian Biesinger <cbiesinger@google.com>
2090
2091 * symtab.h (struct symbol) <owner>: Initialize explicitly in the
2092 constructor instead of using a class initializer.
2093
cd850b40
CB
20942019-11-15 Christian Biesinger <cbiesinger@google.com>
2095
2096 * Makefile.in: Replace {posix,mingw}-strerror.c with safe-strerror.c.
2097 * configure: Regenerate.
2098 * configure.ac: Don't source common.host.
2099 * gdbsupport/common.host: Remove.
2100 * gdbsupport/mingw-strerror.c: Remove.
2101 * gdbsupport/posix-strerror.c: Rename to...
2102 * gdbsupport/safe-strerror.c: ...this.
2103
53fea9c7
CB
21042019-11-15 Christian Biesinger <cbiesinger@google.com>
2105
2106 * maint.c (scoped_command_stats::print_time): Use localtime_r
2107 instead of localtime (provided through gnulib if necessary).
2108 * nat/linux-osdata.c (time_from_time_t): Use ctime_r instead
2109 of ctime.
2110
f8e27d88
CB
21112019-11-15 Christian Biesinger <cbiesinger@google.com>
2112
2113 * gdbsupport/common-defs.h: Include time.h before pathmax.h to
2114 avoid compile errors.
2115
5abebf3c
CB
21162019-11-15 Christian Biesinger <cbiesinger@google.com>
2117
2118 * config.in: Regenerate.
2119 * configure: Regenerate.
2120 * gdbsupport/common.m4: No longer check for strerror_r.
2121 * gdbsupport/posix-strerror.c (safe_strerror): Always call the
2122 POSIX version of strerror_r, now that gnulib provides it if
2123 necessary.
2124
9a351667
CB
21252019-11-14 Christian Biesinger <cbiesinger@google.com>
2126
2127 * README (`configure' options): Update.
2128
55708e99
TT
21292019-11-14 Tom Tromey <tromey@adacore.com>
2130
2131 * eval.c (evaluate_subexp_standard) <BINOP_ASSIGN>: Do not pass an
2132 expected type for the RHS if the LHS is a convenience variable.
2133
4b09bb2e
SM
21342019-11-14 Simon Marchi <simon.marchi@polymtl.ca>
2135
2136 * unittests/vec-utils-selftests.c (unordered_remove_tests::obj):
2137 Provide explicit default and copy constructor.
2138
bd454f8b
PW
21392019-11-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2140
2141 * python/py-finishbreakpoint.c (gdbpy_breakpoint_created):
2142 only call Py_INCREF (newbp) in the bppy_pending_object case.
2143
d1aa3cf0
TT
21442019-11-13 Tom Tromey <tromey@adacore.com>
2145
2146 PR build/25182:
2147 * psympriv.h (partial_symbol): Remove static assert.
2148 * symtab.h (general_symbol_info, symbol): Remove static assert.
2149
e06f3d6e
AB
21502019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
2151
2152 * gdbsupport/format.c (format_pieces::format_pieces): Support
2153 printf 'z' size modifier.
2154 * gdbsupport/format.h (enum argclass): Add size_t_arg.
2155 * printcmd.c (ui_printf): Handle size_t_arg.
2156 * ui-out.c (ui_out::vmessage): Likewise.
2157 * unittests/format_pieces-selftests.c (test_format_int_sizes): New
2158 function.
2159 (run_tests): Call test_format_int_sizes.
2160
468c0cbb
CB
21612019-11-12 Christian Biesinger <cbiesinger@google.com>
2162
2163 * ada-exp.y (write_ambiguous_var): Update.
2164 * buildsym.c (add_symbol_to_list): Update.
2165 * dwarf2read.c (read_variable): Update.
2166 (new_symbol): Update.
2167 * jit.c (finalize_symtab): Update.
2168 * language.c (language_alloc_type_symbol): Update.
2169 * symtab.c (fixup_symbol_section): Update.
2170 (initialize_objfile_symbol_1): Move code to...
2171 (initialize_objfile_symbol): ...here. Remove now-unnecessary memset.
2172 (allocate_symbol): Update.
2173 (allocate_template_symbol): Update.
2174 (get_symbol_address): Update.
2175 * symtab.h (struct symbol): Inherit from general_symbol_info instead
2176 of having as a field, and add a constructor.
2177 (SYMBOL_VALUE): Update.
2178 (SYMBOL_VALUE_ADDRESS): Update.
2179 (SET_SYMBOL_VALUE_ADDRESS): Update.
2180 (SYMBOL_VALUE_BYTES): Update.
2181 (SYMBOL_VALUE_COMMON_BLOCK): Update.
2182 (SYMBOL_BLOCK_VALUE): Update.
2183 (SYMBOL_VALUE_CHAIN): Update.
2184 (SYMBOL_LANGUAGE): Update.
2185 (SYMBOL_SECTION): Update.
2186 (SYMBOL_OBJ_SECTION): Update.
2187 (SYMBOL_SET_LANGUAGE): Update.
2188 (SYMBOL_SET_LINKAGE_NAME): Update.
2189 (SYMBOL_SET_NAMES): Update.
2190 (SYMBOL_NATURAL_NAME): Update.
2191 (SYMBOL_LINKAGE_NAME): Update.
2192 (SYMBOL_DEMANGLED_NAME): Update.
2193 (SYMBOL_SEARCH_NAME): Update.
2194 (SYMBOL_MATCHES_SEARCH_NAME): Update.
2195 (struct symbol): Update.
2196 (struct template_symbol): Update.
2197 (struct rust_vtable_symbol): Update.
2198 * xcoffread.c (SYMBOL_DUP): Update.
2199
ed2c82c3
TT
22002019-11-12 Tom Tromey <tom@tromey.com>
2201
2202 * tui/tui-layout.c (show_layout): Set current_layout.
2203 (show_source_disasm_command, show_data)
2204 (show_source_or_disasm_and_command): Don't set current_layout.
2205
d9fcefd5
TT
22062019-11-12 Tom Tromey <tom@tromey.com>
2207
2208 * tui/tui-layout.c (_initialize_tui_layout): Move to end.
2209
45e42163
TT
22102019-11-12 Tom Tromey <tom@tromey.com>
2211
2212 * tui/tui-win.c (resize_message): New global.
2213 (show_tui_resize_message): New function.
2214 (tui_async_resize_screen): Print message if requested.
2215 (_initialize_tui_win): Add tui-resize-message setting.
2216 * NEWS: Add entry for new commands.
2217
c86d74cc
TT
22182019-11-11 Tom Tromey <tom@tromey.com>
2219
2220 * tui/tui.c (tui_initialize_readline): Add new bindable readline
2221 functions.
2222
7b7b9424
CB
22232019-11-11 Christian Biesinger <cbiesinger@google.com>
2224
2225 * nat/linux-osdata.c (user_from_uid): Use getpwuid_r.
2226
086baaf1
AB
22272019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
2228
2229 * python/py-symbol.c (gdbpy_lookup_static_symbols): New
2230 function.
2231 * python/python-internal.h (gdbpy_lookup_static_symbols):
2232 Declare new function.
2233 * python/python.c (python_GdbMethods): Add
2234 gdb.lookup_static_symbols method.
2235 * NEWS: Mention gdb.lookup_static_symbols.
2236
09ff83af
AB
22372019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
2238
2239 * python/py-symbol.c (gdbpy_lookup_static_symbol): Lookup in
2240 static block of current object file first. Also fix typo in
2241 header comment.
2242
eb2dd8df
AB
22432019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
2244
2245 * stack.c (set_last_displayed_sal): Delete.
2246 (last_displayed_sal_valid): Delete.
2247 (last_displayed_pspace): Delete.
2248 (last_displayed_addr): Delete.
2249 (last_displayed_symtab): Delete.
2250 (last_displayed_line): Delete.
2251 (class last_displayed_symtab_info_type): New.
2252 (last_displayed_symtab_info): New static global variable.
2253 (print_frame_info): Call methods on last_displayed_symtab_info.
2254 (clear_last_displayed_sal): Update header comment, and make use of
2255 last_displayed_symtab_info.
2256 (last_displayed_sal_is_valid): Likewise.
2257 (get_last_displayed_pspace): Likewise.
2258 (get_last_displayed_addr): Likewise.
2259 (get_last_displayed_symtab): Likewise.
2260 (get_last_displayed_line): Likewise.
2261 (get_last_displayed_sal): Likewise.
2262 * stack.h (clear_last_displayed_sal): Update header comment.
2263 (last_displayed_sal_is_valid): Likewise.
2264 (get_last_displayed_pspace): Likewise.
2265 (get_last_displayed_addr): Likewise.
2266 (get_last_displayed_symtab): Likewise.
2267 (get_last_displayed_line): Likewise.
2268 (get_last_displayed_sal): Likewise.
2269
62137775
AB
22702019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
2271
2272 * stack.c (frame_show_address): Convert return type to bool.
2273 * stack.h (frame_show_address): Likewise, and update header
2274 comment.
2275
cf57ad6d
AB
22762019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
2277
2278 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new file to the list.
2279 * unittests/vec-utils-selftests.c: New file.
2280 * gdbsupport/gdb_vecs.h (unordered_remove): Avoid self move assign.
2281
0b026263
TT
22822019-11-10 Tom Tromey <tom@tromey.com>
2283
2284 * tui/tui-wingeneral.c (tui_unhighlight_win): Use can_box.
2285 (tui_highlight_win): Likewise.
2286 (tui_win_info::check_and_display_highlight_if_needed): Likewise.
2287 * tui/tui-data.h (struct tui_win_info) <can_highlight>: Remove.
2288 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
2289 Don't set can_highlight.
2290
b049ce2d
TT
22912019-11-10 Tom Tromey <tom@tromey.com>
2292
2293 * cli/cli-style.h (class cli_style_option) <cli_style_option>:
2294 Remove unused declaration.
2295
992a7040
TT
22962019-11-08 Tom Tromey <tromey@adacore.com>
2297
2298 * top.c (read_command_file): Update.
2299 (command_line_input): Make return type const.
2300 * python/py-gdb-readline.c: Update.
2301 * linespec.c (decode_line_2): Update.
2302 * defs.h (command_line_input): Make return type const.
2303 * cli/cli-script.c (read_next_line): Make return type const.
2304 * ada-lang.c (get_selections): Update.
2305
ca3a04f6
CB
23062019-11-06 Christian Biesinger <cbiesinger@google.com>
2307
2308 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
2309 * mi/mi-main.c (output_cores): Likewise.
2310 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
2311 (linux_xfer_osdata_modules): Likewise.
2312 * remote.c (register_remote_support_xml): Likewise.
2313 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
2314 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
2315
e0eac551
TT
23162019-11-06 Tom Tromey <tom@tromey.com>
2317
2318 * tui/tui-interp.c: Don't include readline.h.
2319 * tui/tui-hooks.c: Don't include readline.h.
2320 * symmisc.c: Include tilde.h, not readline.h.
2321 * symfile.c: Include tilde.h, not readline.h.
2322 * source.c: Include tilde.h, not readline.h.
2323 * solib.c: Include tilde.h, not readline.h.
2324 * psymtab.c: Include tilde.h, not readline.h.
2325 * exec.c: Include tilde.h, not readline.h.
2326 * corelow.c: Include tilde.h, not readline.h.
2327 * cli/cli-dump.c: Include tilde.h, not readline.h.
2328 * cli/cli-cmds.c: Don't include readline.h.
2329
825165c5
TT
23302019-11-05 Tom Tromey <tom@tromey.com>
2331
2332 * tui/tui-disasm.c (struct tui_asm_line) <addr_size>: New member.
2333 (tui_disassemble): Set addr_size.
2334 (tui_disasm_window::set_contents): Use addr_size.
2335
91ae903f
TT
23362019-11-05 Tom Tromey <tom@tromey.com>
2337
2338 * rust-lang.c (rust_language_defn): Update.
2339 * python/py-value.c (valpy_string): Call c_get_string.
2340 * p-lang.c (pascal_language_defn): Update.
2341 * opencl-lang.c (opencl_language_defn): Update.
2342 * objc-lang.c (objc_language_defn): Update.
2343 * m2-lang.c (m2_language_defn): Update.
2344 * language.c (unknown_language_defn, auto_language_defn): Update.
2345 (default_get_string): Remove.
2346 * guile/scm-value.c (gdbscm_value_to_string): Use c_get_string.
2347 * go-lang.c (go_language_defn): Update.
2348 * f-lang.c (f_language_defn): Update.
2349 * d-lang.c (d_language_defn): Update.
2350 * c-lang.c (c_language_defn, cplus_language_defn)
2351 (asm_language_defn, minimal_language_defn): Update.
2352 * ada-lang.c (ada_language_defn): Update.
2353 * language.h (struct language_defn) <la_get_string>: Remove.
2354 (LA_GET_STRING): Remove.
2355 (default_get_string): Don't declare.
2356
1df2f9ef
TT
23572019-11-05 Tom Tromey <tom@tromey.com>
2358
2359 * tui/tui-source.h (struct tui_source_window): Inline
2360 constructor. Remove destructor.
2361 <style_changed, m_observable>: Move to superclass.
2362 * tui/tui-winsource.h (tui_copy_source_line): Declare.
2363 (struct tui_source_window_base): Move private members to end.
2364 <style_changed, m_observable>: Move from tui_source_window.
2365 * tui/tui-winsource.c (tui_copy_source_line): Move from
2366 tui-source.c. Rename from copy_source_line. Add special handling
2367 for negative line number.
2368 (tui_source_window_base::style_changed): Move from
2369 tui_source_window.
2370 (tui_source_window_base): Register observer.
2371 (~tui_source_window_base): New.
2372 * tui/tui-source.c (copy_source_line): Move to tui-winsource.c;
2373 rename.
2374 (tui_source_window::set_contents): Use tui_copy_source_line.
2375 (tui_source_window::tui_source_window): Move to tui-source.h.
2376 (tui_source_window::~tui_source_window): Remove.
2377 (tui_source_window::style_changed): Move to superclass.
2378 * tui/tui-disasm.c (tui_disassemble): Create string file with
2379 styling, when possible. Add "addr_size" parameter.
2380 (tui_disasm_window::set_contents): Use tui_copy_source_line.
2381 Don't compute maximum size.
2382 (len_without_escapes): New function
2383
5d051055
TT
23842019-11-05 Tom Tromey <tom@tromey.com>
2385
2386 * tui/tui-winsource.h (struct tui_source_element) <line>: Now a
2387 std::string.
2388 * tui/tui-winsource.c (tui_show_source_line): Update.
2389 * tui/tui-source.c (tui_source_window::set_contents): Update.
2390 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
2391
ade7beea
CB
23922019-11-05 Christian Biesinger <cbiesinger@google.com>
2393
2394 * symtab.h (gdb_static_assert): Put && operator at the beginning
2395 of the line instead of the end.
2396
3573abe1
CB
23972019-11-04 Christian Biesinger <cbiesinger@google.com>
2398
2399 * psympriv.h: Add static_asserts for sizeof (general_symbol_info)
2400 and sizeof (symbol).
2401 * symtab.h: Add a static_assert for sizeof (partial_symbol).
2402
dae8b3eb
RO
24032019-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2404
2405 * NEWS (Changes since GDB 8.3): Document Solaris 10 removal.
2406 * configure.host: Mark *-*-solaris2.10* obsolete.
2407 * configure.tgt: Mark Solaris < 11 obsolete.
2408 * MAINTAINERS (Target Instruction Set Architectures) <sparc>:
2409 Update target triplet.
2410
5df96a4e
TT
24112019-11-01 Tom Tromey <tromey@adacore.com>
2412
2413 * utils.c (print_sys_errmsg): Simplify.
2414
b7481649
TT
24152019-11-01 Tom Tromey <tromey@adacore.com>
2416
2417 * gdbsupport/mingw-strerror.c (safe_strerror): Constify result.
2418
e48f6033
CB
24192019-11-01 Christian Biesinger <cbiesinger@google.com>
2420
2421 * configure: Regenerate.
2422 * configure.ac: Remove check for strerror_r.
2423 * gdbsupport/common.m4: Check for strerror_r.
2424
bd5766ec
LM
24252019-11-01 Luis Machado <luis.machado@linaro.org>
2426
2427 PR gdb/25124
2428
2429 * arm-tdep.c (arm_per_objfile): Rename to ...
2430 (arm_per_bfd): ... this.
2431 (arm_objfile_data_key): Rename to ...
2432 (arm_bfd_data_key): ... this.
2433 (arm_find_mapping_symbol): Adjust access to new bfd_key-based
2434 data.
2435 (arm_record_special_symbol): Likewise.
2436
e1709896
AB
24372019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
2438
2439 * ada-typeprint.c (ada_print_typedef): Don't print newline at the
2440 end.
2441 * c-typeprint.c (c_print_typedef): Likewise.
2442 * f-typeprint.c (f_print_typedef): Likewise.
2443 * m2-typeprint.c (m2_print_typedef): Likewise.
2444 * p-typeprint.c (pascal_print_typedef): Likewise.
2445 * rust-lang.c (rust_print_typedef): Likewise.
2446 * symtab.c (print_symbol_info): Print a newline after calling
2447 typedef_print.
2448
165f8965
AB
24492019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
2450
2451 * symtab.c (info_module_cmdlist): New variable.
2452 (info_module_command): New function.
2453 (search_module_symbols): New function.
2454 (info_module_subcommand): New function.
2455 (struct info_modules_var_func_options): New struct.
2456 (info_modules_var_func_options_defs): New variable.
2457 (make_info_modules_var_func_options_def_group): New function.
2458 (info_module_functions_command): New function.
2459 (info_module_variables_command): New function.
2460 (info_module_var_func_command_completer): New function.
2461 (_initialize_symtab): Register new 'info module functions' and
2462 'info module variables' commands.
2463 * symtab.h (typedef symbol_search_in_module): New typedef.
2464 (search_module_symbols): Declare new function.
2465 * NEWS: Mention new commands.
2466
59c35742
AB
24672019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
2468
2469 * dwarf2read.c (dw2_symtab_iter_next): Handle MODULE_DOMAIN.
2470 (dw2_expand_marked_cus): Handle MODULES_DOMAIN.
2471 (dw2_debug_names_iterator::next): Handle MODULE_DOMAIN and
2472 MODULES_DOMAIN.
2473 (scan_partial_symbols): Only create partial module symbols for non
2474 declarations.
2475 * psymtab.c (recursively_search_psymtabs): Handle MODULE_DOMAIN
2476 and MODULES_DOMAIN.
2477 * symtab.c (search_domain_name): Likewise.
2478 (search_symbols): Likewise.
2479 (print_symbol_info): Likewise.
2480 (symtab_symbol_info): Likewise.
2481 (info_modules_command): New function.
2482 (_initialize_symtab): Register 'info modules' command.
2483 * symtab.h (enum search_domain): Add MODULES_DOMAIN.
2484 * NEWS: Mention new 'info modules' command.
2485
aed61d02
PW
24862019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2487
2488 * NEWS: Mention $_gdb_setting, $_gdb_setting_str, $_gdb_maint_setting
2489 and $_gdb_maint_setting_str.
2490
9ad9b77d
PW
24912019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2492
2493 * cli/cli-cmds.c (setting_cmd, value_from_setting)
2494 (gdb_setting_internal_fn, gdb_maint_setting_internal_fn)
2495 (str_value_from_setting, gdb_setting_str_internal_fn)
2496 (gdb_maint_setting_str_internal_fn): New functions.
2497 (_initialize_cli_cmds): Define the new convenience functions.
2498 * gdb/cli/cli-setshow.h (get_setshow_command_value_string): Constify.
2499 * gdb/cli/cli-setshow.c (get_setshow_command_value_string): Constify.
2500
8d6efaa2
CB
25012019-10-31 Christian Biesinger <cbiesinger@google.com>
2502
2503 * agent.c (set_can_use_agent): When the setting is turned on,
2504 look up agent symbols if we don't have them yet.
2505 (agent_new_objfile): Don't look up agent symbols when the agent
2506 setting is off.
2507
33cb1647
CB
25082019-10-31 Christian Biesinger <cbiesinger@google.com>
2509
2510 * config.in: Regenerate.
2511
b231e86a
CB
25122019-10-31 Christian Biesinger <cbiesinger@google.com>
2513
2514 * configure: Regenerate.
2515 * configure.ac: Check for strerror_r.
2516 * gdbsupport/common-utils.h (safe_strerror): Change return value
2517 to const char * and document that this function is now threadsafe.
2518 * gdbsupport/posix-strerror.c (safe_strerror): Make buf
2519 thread_local and call strerror_r, if available.
2520 * utils.c (perror_string): Update.
2521 (print_sys_errmsg): Update.
2522
a2726d4f
LM
25232019-10-31 Luis Machado <luis.machado@linaro.org>
2524
2525 * arm-tdep.c (arm_exidx_data_key): Use bfd_key instead of
2526 objfile_key.
2527 (arm_exidx_new_objfile): Adjust to use objfile->obfd instead of
2528 objfile to fetch per-bfd data.
2529 (arm_find_exidx_entry): Likewise.
2530
75cafaa6
CB
25312019-10-31 Christian Biesinger <cbiesinger@google.com>
2532
2533 * gdbsupport/agent.c (debug_agent): Change type to bool.
2534 (use_agent): Likewise.
2535 (all_agent_symbols_look_up): Likewise.
2536 (agent_loaded_p): Change return value to bool.
2537 (agent_look_up_symbols): Update.
2538 (agent_capability_check): Change return value to bool.
2539 * gdbsupport/agent.h (agent_loaded_p): Likewise.
2540 (debug_agent): Change type to bool.
2541 (use_agent): Likewise.
2542 (agent_capability_check): Change return value to bool.
2543
808590ec
CB
25442019-10-30 Christian Biesinger <cbiesinger@google.com>
2545
2546 * minsyms.c (clear_minimal_symbol_hash_tables): New function.
2547 (build_minimal_symbol_hash_tables): Code to clear the table moved
2548 to clear_minimal_symbol_hash_tables.
2549 (minimal_symbol_reader::install): Call clear_minimal_symbol_hash_tables
2550 when needed.
2551
f18ad8a1
SM
25522019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2553
2554 * infcmd.c: Remove includes.
2555 * infrun.c: Remove includes.
2556
de93309a
SM
25572019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2558
2559 * ada-lang.h (GROW_VECT): Move to ada-lang.c.
2560 (grow_vect): Remove declaration.
2561 (ada_type_of_array): Remove declaration.
2562 (ada_update_initial_language): Remove declaration.
2563 (ada_fold_name): Remove declaration.
2564 (ada_fill_in_ada_prototype): Remove declaration.
2565 (user_select_syms): Remove declaration.
2566 (get_selections): Remove declaration.
2567 (ada_tag_type): Remove declaration.
2568 (ada_value_tag): Remove declaration.
2569 (ada_is_others_clause): Remove declaration.
2570 (ada_in_variant): Remove declaration.
2571 (ada_value_struct_elt): Remove declaration.
2572 (ada_attribute_name): Remove declaration.
2573 (ada_system_address_type): Remove declaration.
2574 * ada-lang.c (ada_watch_location_expression): Make static.
2575 (GROW_VECT): Move here from ada-lang.h.
2576 (grow_vect): Make static.
2577 (ada_update_initial_language): Make static.
2578 (ada_fold_name): Make static.
2579 (ada_type_of_array): Make static.
2580 (encoded_ordered_before): Move up.
2581 (sort_choices): Move up.
2582 (print_signatures): Move up.
2583 (ada_print_symbol_signature): Move up.
2584 (get_selections): Move up and make static.
2585 (user_select_syms): Move up and make static.
2586 (ada_value_struct_elt): Move up and make static.
2587 (ada_tag_type): Make static.
2588 (ada_value_tag): Make static.
2589 (ada_is_others_clause): Make static.
2590 (ada_in_variant): Make static.
2591 (ada_attribute_name): Make static.
2592
cdc46a9f
SM
25932019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2594
2595 * ada-lang.c: Remove includes.
2596 * ada-typeprint.c: Remove includes.
2597 * ada-valprint.c: Remove includes.
2598
90421c56
SM
25992019-10-29 Simon Marchi <simon.marchi@efficios.com>
2600
2601 * addrmap.c: Add static assertions of type size, moved from
2602 _initialize_addrmap.
2603 (_initialize_addrmap): Remove.
2604
31edb802
CB
26052019-10-29 Christian Biesinger <cbiesinger@google.com>
2606
2607 * coffread.c (record_minimal_symbol): Update.
2608 (process_coff_symbol): Update.
2609 * dbxread.c (read_dbx_symtab): Update.
2610 * dwarf2read.c (add_partial_symbol): Update.
2611 (fixup_go_packaging): Update.
2612 (load_partial_dies): Update.
2613 (new_symbol): Update.
2614 * elfread.c (record_minimal_symbol): Change signature to use
2615 gdb::string_view instead of name+len.
2616 (elf_symtab_read): Update.
2617 (elf_rel_plt_read): Update.
2618 * mdebugread.c (parse_partial_symbols): Update.
2619 (handle_psymbol_enumerators): Update.
2620 (new_symbol): Update.
2621 * minsyms.c (minimal_symbol_reader::record_full): Change signature
2622 to use gdb::string_view instead of name+len.
2623 * minsyms.h (class minimal_symbol_reader) <record_full>: Likewise.
2624 * psympriv.h (add_psymbol_to_list): Likewise.
2625 * psymtab.c (add_psymbol_to_bcache): Likewise.
2626 (add_psymbol_to_list): Likewise.
2627 * stabsread.c (define_symbol): Update.
2628 * symtab.c (symbol_set_names): Change signature to use gdb::string_view.
2629 * symtab.h (SYMBOL_SET_NAMES): Likewise.
2630 (symbol_set_names): Likewise.
2631 * xcoffread.c (scan_xcoff_symtab): Update.
2632
0c921b21
CB
26332019-10-29 Christian Biesinger <cbiesinger@google.com>
2634
2635 * symtab.h (symbol_set_names): Document that copy_name must be
2636 set to true for non-nullterminated strings.
2637 * symtab.c (symbol_set_names): Only make a nullterminated copy of
2638 linkage_name if the entry was not found and we need to demangle.
2639
35e65c49
CB
26402019-10-29 Christian Biesinger <cbiesinger@google.com>
2641
2642 * Makefile.in (HFILES_NO_SRCDIR): Add gdb_binary_search.h.
2643 * dwarf2-frame.c (bsearch_fde_cmp): Update.
2644 (dwarf2_frame_find_fde): Replace bsearch with gdb::binary_search.
2645 * gdbsupport/gdb_binary_search.h: New file.
2646
ed2a2229
CB
26472019-10-29 Christian Biesinger <cbiesinger@google.com>
2648
2649 * NEWS: Mention new --with-system-gdbinit-dir option.
2650 * config.in: Regenerate.
2651 * configure: Regenerate.
2652 * configure.ac: Add new option --with-system-gdbinit-dir.
2653 * extension.c (get_ext_lang_of_file): Return extension_language_gdb
2654 for a ".gdb" suffix.
2655 * main.c (get_init_files): Change system_gdbinit argument to
2656 a vector and return the files in SYSTEM_GDBINIT_DIR in
2657 addition to SYSTEM_GDBINIT.
2658 (captured_main_1): Update.
2659 (print_gdb_help): Update.
2660 * top.c (print_gdb_configuration): Also print the value of
2661 SYSTEM_GDBINIT_DIR.
2662
87f34879
CB
26632019-10-28 Christian Biesinger <cbiesinger@google.com>
2664
2665 * gdbsupport/common-utils.h (startswith): Add an overloaded version
2666 that takes gdb::string_view arguments.
2667
30baf67b
TV
26682019-10-26 Tom de Vries <tdevries@suse.de>
2669
2670 * aarch64-linux-tdep.c: Fix typos in comments.
2671 * aarch64-tdep.c: Same.
2672 * ada-lang.c: Same.
2673 * amd64-nat.c: Same.
2674 * arc-tdep.c: Same.
2675 * arch/aarch64-insn.c: Same.
2676 * block.c: Same.
2677 * breakpoint.h: Same.
2678 * btrace.h: Same.
2679 * c-varobj.c: Same.
2680 * cli/cli-decode.c: Same.
2681 * cli/cli-script.c: Same.
2682 * cli/cli-utils.h: Same.
2683 * coff-pe-read.c: Same.
2684 * coffread.c: Same.
2685 * compile/compile-cplus-symbols.c: Same.
2686 * compile/compile-object-run.c: Same.
2687 * completer.c: Same.
2688 * corelow.c: Same.
2689 * cp-support.c: Same.
2690 * demangle.c: Same.
2691 * dwarf-index-write.c: Same.
2692 * dwarf2-frame.c: Same.
2693 * dwarf2-frame.h: Same.
2694 * eval.c: Same.
2695 * frame-base.h: Same.
2696 * frame.h: Same.
2697 * gdbcmd.h: Same.
2698 * gdbtypes.h: Same.
2699 * gnu-nat.c: Same.
2700 * guile/scm-objfile.c: Same.
2701 * i386-tdep.c: Same.
2702 * i386-tdep.h: Same.
2703 * infcall.c: Same.
2704 * infcall.h: Same.
2705 * linux-nat.c: Same.
2706 * m68k-tdep.c: Same.
2707 * macroexp.c: Same.
2708 * memattr.c: Same.
2709 * mi/mi-cmd-disas.c: Same.
2710 * mi/mi-getopt.h: Same.
2711 * mi/mi-main.c: Same.
2712 * minsyms.c: Same.
2713 * nat/aarch64-sve-linux-sigcontext.h: Same.
2714 * objfiles.h: Same.
2715 * ppc-linux-nat.c: Same.
2716 * ppc-linux-tdep.c: Same.
2717 * ppc-tdep.h: Same.
2718 * progspace.h: Same.
2719 * prologue-value.h: Same.
2720 * python/py-evtregistry.c: Same.
2721 * python/py-instruction.h: Same.
2722 * record-btrace.c: Same.
2723 * record-full.c: Same.
2724 * remote.c: Same.
2725 * rs6000-tdep.c: Same.
2726 * ser-tcp.c: Same.
2727 * sol-thread.c: Same.
2728 * sparc-sol2-tdep.c: Same.
2729 * sparc64-tdep.c: Same.
2730 * stabsread.c: Same.
2731 * symfile.c: Same.
2732 * symtab.h: Same.
2733 * target.c: Same.
2734 * tracepoint.c: Same.
2735 * tui/tui-data.h: Same.
2736 * tui/tui-io.c: Same.
2737 * tui/tui-win.c: Same.
2738 * tui/tui.c: Same.
2739 * unittests/rsp-low-selftests.c: Same.
2740 * user-regs.h: Same.
2741 * utils.c: Same.
2742 * utils.h: Same.
2743 * valarith.c: Same.
2744 * valops.c: Same.
2745 * valprint.c: Same.
2746 * valprint.h: Same.
2747 * value.c: Same.
2748 * value.h: Same.
2749 * varobj.c: Same.
2750 * x86-nat.h: Same.
2751 * xtensa-tdep.c: Same.
2752
1834d45f
AT
27532019-10-25 Ali Tamur <tamur@google.com>
2754
2755 * charset.c (find_charset_names): Reflect API change.
2756
5396ae17
CB
27572019-10-25 Christian Biesinger <cbiesinger@google.com>
2758
2759 * symtab.c (struct demangled_name_entry): Change demangled name
2760 to a unique_xmalloc_ptr<char>, now that we don't allocate it as
2761 part of the struct anymore.
2762 (symbol_set_names): No longer obstack allocate + copy the demangled
2763 name, just store the allocated name from bfd.
2764
93878f47
TT
27652019-10-25 Tom Tromey <tromey@adacore.com>
2766
2767 * dwarf2-frame.c (dwarf2_cie_table): Now a typedef.
2768 (bsearch_cie_cmp, add_cie): Remove.
2769 (find_cie): Reimplement.
2770 (decode_frame_entry_1, decode_frame_entry): Change type. Update.
2771 (dwarf2_build_frame_info): Update.
2772
7b71fc97
L
27732019-10-24 H.J. Lu <hongjiu.lu@intel.com>
2774
2775 PR gdb/25126
2776 * symfile.c (reread_symbols): Call forget_cached_source_info to
2777 clear the stale source cache.
2778
cbb5a2ea
CB
27792019-10-24 Christian Biesinger <cbiesinger@google.com>
2780
2781 * configure: Regenerate.
2782 * configure.ac: Remove code that sets python_has_threads.
2783
71737c43
CB
27842019-10-24 Christian Biesinger <cbiesinger@google.com>
2785
2786 * config.in: Regenerate.
2787 * configure: Regenerate.
2788 * configure.ac: Remove the code that uses sed to get the python
2789 version and defines HAVE_LIBPYTHON2_6 / HAVE_LIBPYTHON2_7.
2790
33d569b7
AB
27912019-10-24 Andrew Burgess <andrew.burgess@embecosm.com>
2792
2793 * python/py-progspace.c (pspy_block_for_pc): Return None for all
2794 error paths.
2795
f16f7b7c
TT
27962019-10-23 Tom Tromey <tom@tromey.com>
2797
2798 * arc-tdep.c: Remove ".." from include.
2799 * frv-tdep.c: Remove ".." from include.
2800 * lm32-tdep.c: Remove ".." from include.
2801 * microblaze-tdep.c: Remove ".." from include.
2802 * or1k-tdep.h: Remove ".." from include.
2803 * s12z-tdep.c: Remove ".." from include.
2804 * Makefile.in (OPCODES_CFLAGS): Add comment.
2805 (TOP_CFLAGS): New variable.
2806 (INTERNAL_CFLAGS_BASE): Add TOP_CFLAGS.
2807
6999161a
TT
28082019-10-23 Tom Tromey <tom@tromey.com>
2809
2810 * Makefile.in (READLINE_DIR): Update.
2811
12e7c35e
TBA
28122019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2813
2814 * infcall.c (call_function_by_hand_dummy): Fix the function
2815 comment. And extract out a code section into...
2816 (reserve_stack_space): ...this new function.
2817
37055cad
TBA
28182019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2819
2820 * infcall.c (value_arg_coerce): Remove an unused parameter.
2821 (call_function_by_hand_dummy): Update the call to
2822 'value_arg_coerce'.
2823
39bcc47c
TBA
28242019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2825
2826 * infcall.c (call_function_by_hand_dummy): Refactor.
2827
bd888c0f
TBA
28282019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2829
2830 * MAINTAINERS (Write After Approval): Add Tankut Baris Aktemur.
2831
c12d372d
TT
28322019-10-23 Tom Tromey <tom@tromey.com>
2833
2834 * configure: Rebuild.
2835 * configure.ac: Don't check for sigprocmask.
2836 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for sigprocmask.
2837
4d0b984b
TT
28382019-10-23 Tom Tromey <tom@tromey.com>
2839
2840 * configure: Rebuild.
2841 * acinclude.m4: Use m4_include, not sinclude.
2842
7e785608
TV
28432019-10-23 Tom de Vries <tdevries@suse.de>
2844
2845 PR breakpoints/24687
2846 * symtab.c (iterate_over_some_symtabs): Apply gdb_realpath on fullname.
2847
403772ef
CB
28482019-10-22 Christian Biesinger <cbiesinger@google.com>
2849
2850 * symtab.c (struct demangled_name_entry) <language>: Change from
2851 bitfield to regular variable.
2852
3a494279
CB
28532019-10-22 Christian Biesinger <cbiesinger@google.com>
2854
2855 * symtab.c (struct demangled_name_entry): Add a constructor.
2856 (free_demangled_name_entry): New function to call the destructor
2857 for demangled_name_entry.
2858 (create_demangled_names_hash): Pass free_demangled_name_entry to
2859 htab_create_alloc.
2860 (symbol_set_names): Call placement new for demangled_name_entry.
2861 * utils.c: No longer include xxhash.h here, now that fast_hash
2862 is inlined in the header.
2863 * utils.h: Instead, include it here.
2864
ccb1ba62
CB
28652019-10-22 Christian Biesinger <cbiesinger@google.com>
2866
2867 * Makefile.in: Link with libxxhash.
2868 * config.in: Regenerate.
2869 * configure: Regenerate.
2870 * configure.ac: Search for libxxhash.
2871 * utils.c (fast_hash): Use xxhash if present.
2872
1a6ff1a9
CB
28732019-10-22 Christian Biesinger <cbiesinger@google.com>
2874
2875 * utils.h (fast_hash): New function.
2876 * symtab.c (hash_demangled_name_entry): Call new function
2877 fast_hash.
2878
7bb43059
CB
28792019-10-22 Christian Biesinger <cbiesinger@google.com>
2880
2881 * symtab.c (struct demangled_name_entry): Change type of mangled
2882 to gdb::string_view. Also adds a constructor that takes the
2883 mangled name.
2884 (hash_demangled_name_entry): Update.
2885 (eq_demangled_name_entry): Update.
2886 (free_demangled_name_entry): New function to call the destructor
2887 now that this is not a POD anymore.
2888 (create_demangled_names_hash): Pass free_demangled_name_entry to
2889 htab_create_alloc.
2890 (symbol_set_names): Update.
2891
7ba99d21
AT
28922019-10-21 Ali Tamur <tamu@google.com>
2893
2894 * dwarf2read.c (dir_index): Change type.
2895 (file_name_index): Likewise.
2896 (line_header::include_dir_at): Change comment and implementation on
2897 whether it is DWARF 5.
2898 (line_header::is_valid_file_index): New function.
2899 (line_header::file_name_at): Change comment and implementation on
2900 whether it is DWARF 5.
2901 (line_header::file_names): Change to private field renamed as
2902 m_file_names and introduce a new accessor method.
2903 (line_header::file_names_size): New method.
2904 (line_header::include_dirs): Change to private field and rename as
2905 m_include_dirs.
2906 (dw2_get_file_names_reader): Define local var at a smaller scope and
2907 reflect API change.
2908 (dwarf2_cu::setup_type_unit_groups): Reflect API change.
2909 (process_structure_scope): Likewise.
2910 (line_header::add_include_dir): Change message and reflect renaming.
2911 (line_header::add_file_name): Likewise.
2912 (read_formatted_entries): Handle DW_FORM_data16.
2913 (dwarf_decode_line_header): Fix line header length calculation.
2914 (psymtab_include_file_name): Change comment and API.
2915 (lnp_state_machine::m_file): Update comment and reflect type change.
2916 (lnp_state_machine::record_line): Reflect type change.
2917 (dwarf_decode_lines): Reflect API change.
2918 (file_file_name): Likewise.
2919 (file_full_name): Likewise.
2920
45f47c3a
AB
29212019-10-21 Andrew Burgess <andrew.burgess@embecosm.com>
2922
2923 * objfiles.c (sort_cmp): Ensure that !(a < a) holds true.
2924
e5f3c0e3
TT
29252019-10-21 Tom Tromey <tom@tromey.com>
2926
2927 * tui/tui-winsource.h (tui_exec_info_content): Remove typedef.
2928
a0a461e5
TT
29292019-10-21 Tom Tromey <tom@tromey.com>
2930
2931 * configure.ac (nm.h): Conditionally create nm.h link. Subst
2932 NM_H. Use AC_CONFIG_LINKS.
2933 * configure: Rebuild.
2934 * Makefile.in (NM_H): New variable.
2935 (generated_files): Add NM_H. Remove gcore.
2936 (nm.h, stamp-nmh): New targets.
2937
54d83b8d
TT
29382019-10-20 Tom Tromey <tom@tromey.com>
2939
2940 * objfiles.h (unlink_objfile, put_objfile_before): Don't declare.
2941 * objfiles.c (unlink_objfile): Move earlier. Now static. Remove
2942 obsolete comment.
2943 (put_objfile_before): Now static.
2944
23771117
SM
29452019-10-19 Simon Marchi <simon.marchi@polymtl.ca>
2946
2947 * gdbsupport/common-utils.h (startswith): Change return type to
2948 bool.
2949
39ef2f62
CB
29502019-10-19 Christian Biesinger <cbiesinger@google.com>
2951
2952 * bcache.c (bcache::print_statistics): Use std::sort instead of qsort.
2953 * breakpoint.c (bp_locations_compare): Rename to...
2954 (bp_location_is_less_than): ...this, and change to std::sort semantics.
2955 (update_global_location_list): Use std::sort instead of qsort.
2956 * buildsym.c (compare_line_numbers): Rename to...
2957 (lte_is_less_than): ...this, and change to std::sort semantics.
2958 (buildsym_compunit::end_symtab_with_blockvector): Use std::sort
2959 instead of qsort.
2960 * disasm.c (compare_lines): Rename to...
2961 (line_is_less_than): ...this, and change to std::sort semantics.
2962 (do_mixed_source_and_assembly_deprecated): Call std::sort instead
2963 of qsort.
2964 * dwarf2-frame.c (qsort_fde_cmp): Rename to...
2965 (fde_is_less_than): ...this, and change to std::sort semantics.
2966 (dwarf2_build_frame_info): Call std::sort instead of qsort.
2967 * mdebugread.c (compare_blocks):
2968 (block_is_less_than): ...this, and change to std::sort semantics.
2969 (sort_blocks): Call std::sort instead of qsort.
2970 * objfiles.c (qsort_cmp): Rename to...
2971 (sort_cmp): ...this, and change to std::sort semantics.
2972 (update_section_map): Call std::sort instead of qsort.
2973 * remote.c (compare_pnums): Remove.
2974 (map_regcache_remote_table): Call std::sort instead of qsort.
2975 * utils.c (compare_positive_ints): Remove.
2976 * utils.h (compare_positive_ints): Remove.
2977 * xcoffread.c (compare_lte): Remove.
2978 (arrange_linetable): Call std::sort instead of qsort.
2979
f71433ee
SDJ
29802019-10-19 Sergio Durigan Junior <sergiodj@redhat.com>
2981
2982 * symfile.c (init_entry_point_info): Fix typo.
2983 * i386-darwin-tdep.c (darwin_dwarf_signal_frame_p): Fix typo.
2984
85102364
TV
29852019-10-18 Tom de Vries <tdevries@suse.de>
2986
2987 * aarch64-tdep.c: Fix typos in comments.
2988 * ada-lang.c: Same.
2989 * ada-tasks.c: Same.
2990 * alpha-tdep.c: Same.
2991 * alpha-tdep.h: Same.
2992 * amd64-nat.c: Same.
2993 * amd64-windows-tdep.c: Same.
2994 * arc-tdep.c: Same.
2995 * arc-tdep.h: Same.
2996 * arch-utils.c: Same.
2997 * arm-nbsd-tdep.c: Same.
2998 * arm-tdep.c: Same.
2999 * ax-gdb.c: Same.
3000 * blockframe.c: Same.
3001 * btrace.c: Same.
3002 * c-varobj.c: Same.
3003 * coff-pe-read.c: Same.
3004 * coffread.c: Same.
3005 * cris-tdep.c: Same.
3006 * darwin-nat.c: Same.
3007 * dbxread.c: Same.
3008 * dcache.c: Same.
3009 * disasm.c: Same.
3010 * dtrace-probe.c: Same.
3011 * dwarf-index-write.c: Same.
3012 * dwarf2-frame-tailcall.c: Same.
3013 * dwarf2-frame.c: Same.
3014 * dwarf2read.c: Same.
3015 * eval.c: Same.
3016 * exceptions.c: Same.
3017 * fbsd-tdep.c: Same.
3018 * findvar.c: Same.
3019 * frame.c: Same.
3020 * frv-tdep.c: Same.
3021 * gnu-v3-abi.c: Same.
3022 * go32-nat.c: Same.
3023 * h8300-tdep.c: Same.
3024 * hppa-tdep.c: Same.
3025 * i386-linux-tdep.c: Same.
3026 * i386-tdep.c: Same.
3027 * ia64-libunwind-tdep.c: Same.
3028 * ia64-tdep.c: Same.
3029 * infcmd.c: Same.
3030 * infrun.c: Same.
3031 * linespec.c: Same.
3032 * linux-nat.c: Same.
3033 * linux-thread-db.c: Same.
3034 * machoread.c: Same.
3035 * mdebugread.c: Same.
3036 * mep-tdep.c: Same.
3037 * mn10300-tdep.c: Same.
3038 * namespace.c: Same.
3039 * objfiles.c: Same.
3040 * opencl-lang.c: Same.
3041 * or1k-tdep.c: Same.
3042 * osabi.c: Same.
3043 * ppc-linux-nat.c: Same.
3044 * ppc-linux-tdep.c: Same.
3045 * ppc-sysv-tdep.c: Same.
3046 * printcmd.c: Same.
3047 * procfs.c: Same.
3048 * record-btrace.c: Same.
3049 * record-full.c: Same.
3050 * remote-fileio.c: Same.
3051 * remote.c: Same.
3052 * rs6000-tdep.c: Same.
3053 * s12z-tdep.c: Same.
3054 * score-tdep.c: Same.
3055 * ser-base.c: Same.
3056 * ser-go32.c: Same.
3057 * skip.c: Same.
3058 * sol-thread.c: Same.
3059 * solib-svr4.c: Same.
3060 * solib.c: Same.
3061 * source.c: Same.
3062 * sparc-nat.c: Same.
3063 * sparc-sol2-tdep.c: Same.
3064 * sparc-tdep.c: Same.
3065 * sparc64-tdep.c: Same.
3066 * stabsread.c: Same.
3067 * stack.c: Same.
3068 * symfile.c: Same.
3069 * symtab.c: Same.
3070 * target-descriptions.c: Same.
3071 * target-float.c: Same.
3072 * thread.c: Same.
3073 * utils.c: Same.
3074 * valops.c: Same.
3075 * valprint.c: Same.
3076 * value.c: Same.
3077 * varobj.c: Same.
3078 * windows-nat.c: Same.
3079 * xcoffread.c: Same.
3080 * xstormy16-tdep.c: Same.
3081 * xtensa-tdep.c: Same.
3082
c5adaa19
TT
30832019-10-17 Tom Tromey <tromey@adacore.com>
3084
3085 * configure: Rebuild.
3086 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
3087 in AC_CONFIG_FILES invocation.
3088 * Makefile.in (Makefile, data-directory/Makefile, stamp-h): Use
3089 new-style config.status invocation.
3090
405feb71
TV
30912019-10-17 Tom de Vries <tdevries@suse.de>
3092
3093 * arm-nbsd-nat.c: Fix typos in comments.
3094 * arm-tdep.c: Same.
3095 * darwin-nat-info.c: Same.
3096 * dwarf2read.c: Same.
3097 * elfread.c: Same.
3098 * event-top.c: Same.
3099 * findvar.c: Same.
3100 * gdbtypes.c: Same.
3101 * hppa-tdep.c: Same.
3102 * i386-tdep.c: Same.
3103 * jit.c: Same.
3104 * main.c: Same.
3105 * mdebugread.c: Same.
3106 * moxie-tdep.c: Same.
3107 * nto-procfs.c: Same.
3108 * osabi.c: Same.
3109 * ppc-linux-tdep.c: Same.
3110 * remote.c: Same.
3111 * riscv-tdep.c: Same.
3112 * s390-tdep.c: Same.
3113 * sh-tdep.c: Same.
3114 * sparc-linux-tdep.c: Same.
3115 * sparc-nat.c: Same.
3116 * stack.c: Same.
3117 * target-descriptions.c: Same.
3118 * top.c: Same.
3119 * varobj.c: Same.
3120
befcd486
TT
31212019-10-16 Tom Tromey <tom@tromey.com>
3122
3123 * objfiles.h (struct objfile) <original_name>: Now const.
3124
17bfe554
CB
31252019-10-16 Christian Biesinger <cbiesinger@google.com>
3126
3127 * gdbsupport/gdb_setjmp.h (SIGSETJMP): Allow passing in the value to
3128 pass on to sigsetjmp's second argument.
3129 * cp-support.c (gdb_demangle): Unblock SIGSEGV if we caught a crash.
3130
950b7495
KS
31312019-10-16 Keith Seitz <keiths@redhat.com>
3132
3133 PR gdb/23567
3134 * dwarf2read.c (dwarf2_per_objfile::locate_sections): Discard
3135 sections whose size is greater than the file size.
3136
ff371ec9
JW
31372019-10-16 Jim Wilson <jimw@sifive.com>
3138
3139 * riscv-tdep.c (riscv_gcc_target_options): New.
3140 (riscv_gnu_triplet_regexp): New.
3141 (riscv_gdbarch_init): Call set_gdbarch_gcc_triplet_options and
3142 set_gdbarch_gnu_triplet_regexp.
3143
fec4e896
CB
31442019-10-16 Christian Biesinger <cbiesinger@google.com>
3145
3146 * Makefile.in: Add xml-builtin.h.
3147 * features/feature_to_c.sh: Add an include for xml-builtin.h
3148 to ensure that the compiler checks that the types match.
3149 * xml-builtin.h: New file.
3150 * xml-support.c (fetch_xml_builtin): Add missing const.
3151 * xml-support.h: Remove declaration of xml_builtins.
3152
d10eccaa
TV
31532019-10-16 Tom de Vries <tdevries@suse.de>
3154
3155 PR tdep/25096
3156 * amd64-tdep.c (amd64_classify_aggregate_field): Factor out of ...
3157 (amd64_classify_aggregate): ... here.
3158 (amd64_classify_aggregate_field): Handled fiels of nested structs
3159 recursively.
3160
745ff14e
TV
31612019-10-16 Tom de Vries <tdevries@suse.de>
3162
3163 PR tdep/24104
3164 * amd64-tdep.c (amd64_push_arguments): Handle AMD64_NO_CLASS in loop
3165 that handles 'theclass'.
3166
791b7405
AB
31672019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
3168
3169 * linespec.c (decode_digits_ordinary): Update comment.
3170 * make-target-delegates: No longer need to handle VEC case.
3171 * memrange.c (normalize_mem_ranges): Update comment.
3172 * namespace.c (add_using_directive): Update comment.
3173 * objc-lang.c (uniquify_strings): Update comment.
3174 * ppc-linux-nat.c (struct thread_points): Update comment.
3175 * probe.h (find_probes_in_objfile): Update comment.
3176 * target.h (enum flash_preserve_mode): Update comment.
3177 * varobj.c (varobj_restrict_range): Update comment.
3178 * varobj.h (varobj_list_children): Update comment.
3179
0dc32745
AB
31802019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
3181
3182 * Makefile.in: Remove references to vec.h and vec.c.
3183 * aarch64-tdep.c: No longer include vec.h.
3184 * ada-lang.c: Likewise.
3185 * ada-lang.h: Likewise.
3186 * arm-tdep.c: Likewise.
3187 * ax.h: Likewise.
3188 * breakpoint.h: Likewise.
3189 * charset.c: Likewise.
3190 * cp-support.h: Likewise.
3191 * dtrace-probe.c: Likewise.
3192 * dwarf2read.c: Likewise.
3193 * extension.h: Likewise.
3194 * gdb_bfd.c: Likewise.
3195 * gdbsupport/gdb_vecs.h: Likewise.
3196 * gdbsupport/vec.c: Remove.
3197 * gdbsupport/vec.h: Remove.
3198 * gdbthread.h: Likewise.
3199 * guile/scm-type.c: Likewise.
3200 * inline-frame.c: Likewise.
3201 * machoread.c: Likewise.
3202 * memattr.c: Likewise.
3203 * memrange.h: Likewise.
3204 * namespace.h: Likewise.
3205 * nat/linux-btrace.h: Likewise.
3206 * osdata.c: Likewise.
3207 * parser-defs.h: Likewise.
3208 * progspace.h: Likewise.
3209 * python/py-type.c: Likewise.
3210 * record-btrace.c: Likewise.
3211 * rust-exp.y: Likewise.
3212 * solib-target.c: Likewise.
3213 * stap-probe.c: Likewise.
3214 * target-descriptions.c: Likewise.
3215 * target-memory.c: Likewise.
3216 * target.h: Likewise.
3217 * varobj.c: Likewise.
3218 * varobj.h: Likewise.
3219 * xml-support.h: Likewise.
3220
ae640021
AB
32212019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
3222
3223 * gdb/dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile):
3224 Update for new std::vector based implementation.
3225 (process_psymtab_comp_unit_reader): Likewise.
3226 (scan_partial_symbols): Likewise.
3227 (recursively_compute_inclusions): Likewise.
3228 (compute_compunit_symtab_includes): Likewise.
3229 (process_imported_unit_die): Likewise.
3230 (queue_and_load_dwo_tu): Likewise.
3231 (follow_die_sig_1): Likewise.
3232 * gdb/dwarf2read.h: Remove DEF_VEC_P.
3233 (typedef dwarf2_per_cu_ptr): Remove.
3234 (struct dwarf2_per_cu_data) <imported_symtabs_empty>: New
3235 function.
3236 (struct dwarf2_per_cu_data) <imported_symtabs_push>: New function.
3237 (struct dwarf2_per_cu_data) <imported_symtabs_size>: New function.
3238 (struct dwarf2_per_cu_data) <imported_symtabs_free>: New function.
3239 (struct dwarf2_per_cu_data) <imported_symtabs>: Change to
3240 std::vector.
3241
55dfc88f
TT
32422019-10-15 Tom Tromey <tromey@adacore.com>
3243
3244 * windows-nat.c (windows_nat_target::resume): Use %x when logging
3245 TID.
3246
96b49c5e
TT
32472019-10-15 Tom Tromey <tromey@adacore.com>
3248
3249 * windows-nat.c (windows_nat_target::fetch_registers)
3250 (windows_nat_target::store_registers): Rename "pid" to "tid".
3251
953cff56
TT
32522019-10-15 Tom Tromey <tromey@adacore.com>
3253
3254 * gdbarch.h, gdbarch.c: Rebuild.
3255 * gdbarch.sh (gcc_target_options): Change return type to
3256 std::string.
3257 * compile/compile.c (get_args): Update.
3258 * nios2-tdep.c (nios2_gcc_target_options): Return std::string.
3259 * arm-linux-tdep.c (arm_linux_gcc_target_options): Return
3260 std::string.
3261 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): Return
3262 std::string.
3263 * arch-utils.c (default_gcc_target_options): Return std::string.
3264 * arch-utils.h (default_gcc_target_options): Return std::string.
3265 * s390-tdep.c (s390_gcc_target_options): Return std::string.
3266
81e6b8eb
CB
32672019-10-15 Christian Biesinger <cbiesinger@google.com>
3268
3269 * breakpoint.c (breakpoint_chain): Make static.
3270 * tui/tui-winsource.c: Call iterate_over_breakpoints instead
3271 of accessing breakpoint_chain.
3272
95da600f
CB
32732019-10-15 Christian Biesinger <cbiesinger@google.com>
3274
3275 * breakpoint.c (iterate_over_breakpoints): Change function pointer
3276 to a gdb::function_view and return value to bool.
3277 * breakpoint.h (iterate_over_breakpoints): Likewise.
3278 * dummy-frame.c (pop_dummy_frame_bpt): Update.
3279 (pop_dummy_frame): Update.
3280 * guile/scm-breakpoint.c (bpscm_build_bp_list): Update.
3281 (gdbscm_breakpoints): Update.
3282 * python/py-breakpoint.c (build_bp_list): Update.
3283 (gdbpy_breakpoints): Update.
3284 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
3285 Update.
3286 (bpfinishpy_handle_stop): Update.
3287 (bpfinishpy_handle_exit): Update.
3288 * solib-svr4.c (svr4_update_solib_event_breakpoint): Update.
3289 (svr4_update_solib_event_breakpoints): Update.
3290
ba18312d
AA
32912019-10-15 Andreas Arnez <arnez@linux.ibm.com>
3292
3293 * s390-tdep.c (s390_effective_inner_type): Ignore static fields
3294 when unwrapping single-field structs.
3295
6acc1a0b
SM
32962019-10-14 Simon Marchi <simon.marchi@polymtl.ca>
3297
3298 * dwarf2read.c: Remove includes.
3299
284782de
SM
33002019-10-13 Simon Marchi <simon.marchi@polymtl.ca>
3301
3302 * ui-out.c (ui_out::call_do_message): Silence
3303 -Wformat-nonliteral warning.
3304
073bbbb0
SM
33052019-10-12 Simon Marchi <simon.marchi@polymtl.ca>
3306
3307 * breakpoint.c: Remove some includes: continuations.h, skip.h,
3308 mi/mi-main.h, readline/readline.h, readline/history.h. Add
3309 include: readline/tilde.h.
3310
7b9a15e1
CB
33112019-10-12 Christian Biesinger <cbiesinger@google.com>
3312
3313 * remote.c (remote_target::get_trace_status): Remove declaration of
3314 trace_regblock_size.
3315
cc8dee1f
CB
33162019-10-12 Christian Biesinger <cbiesinger@google.com>
3317
3318 * cli/cli-cmds.c (max_user_call_depth): Move comment to header.
3319 (show_user): Remove declaration of cmdlist.
3320 * cli/cli-cmds.h (max_user_call_depth): Declare.
3321 * cli/cli-script.c (execute_user_command): Remove declaration
3322 of max_user_call_depth.
3323
a83d4ef6
JW
33242019-10-11 Jim Wilson <jimw@sifive.com>
3325
5f93c5a6
JW
3326 * gdbsupport/print-utils.h (pulongest): Fix comment.
3327 (plongest): Likewise.
3328 (phex): Add missing comment, mention leading zeros.
3329 (phex_nz): Add mention of no leading zeros to comment.
3330
a83d4ef6
JW
3331 * riscv-tdep.c (riscv_push_dummy_code): Change %lld to %s and use
3332 plongest instead of unsigned long long cast.
3333
26344e0c
CB
33342019-10-10 Christian Biesinger <cbiesinger@google.com>
3335
3336 * main.c (captured_main_1): Include gdbtk.h and remove declarations
3337 for external_editor_command and gdbtk_test.
3338
c2c440a9
CB
33392019-10-10 Christian Biesinger <cbiesinger@google.com>
3340
3341 * mi/mi-cmd-var.c (varobjdebug): Remove declaration.
3342 * varobj.c (varobjdebug): Move comment to...
3343 * varobj.h (varobjdebug): ...here, and declare.
3344
a31bff9d
TT
33452019-10-09 Tom Tromey <tom@tromey.com>
3346
3347 * tui/tui-regs.c (tui_data_window::show_registers): Don't call
3348 erase_data_content.
3349
7523da63
TT
33502019-10-09 Tom Tromey <tom@tromey.com>
3351
3352 * tui/tui-wingeneral.h (tui_delete_win): Don't declare.
3353 * tui/tui-stack.c (tui_locator_window::rerender): Update.
3354 * tui/tui-command.c (tui_cmd_window::resize)
3355 (tui_refresh_cmd_win): Update.
3356 * tui/tui-win.c (tui_resize_all, tui_set_focus_command): Update.
3357 * tui/tui.c (tui_rl_other_window, tui_enable): Update.
3358 * tui/tui-data.c (~tui_gen_win_info): Remove.
3359 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
3360 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
3361 (tui_redisplay_readline, tui_mld_flush)
3362 (tui_mld_erase_entire_line, tui_mld_getc, tui_getc): Update.
3363 * tui/tui-regs.c (tui_data_window::delete_data_content_windows)
3364 (tui_data_window::erase_data_content)
3365 (tui_data_item_window::rerender)
3366 (tui_data_item_window::refresh_window): Update.
3367 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window)
3368 (box_win, tui_gen_win_info::make_window)
3369 (tui_gen_win_info::make_visible): Update.
3370 (tui_delete_win): Remove.
3371 * tui/tui-winsource.c
3372 (tui_source_window_base::do_erase_source_content): Update.
3373 (tui_show_source_line, tui_source_window_base::update_tab_width)
3374 (tui_source_window_base::update_exec_info): Update.
3375 * tui/tui-data.h (struct curses_deleter): New.
3376 (struct tui_gen_win_info) <handle>: Now a unique_ptr.
3377 (struct tui_gen_win_info) <~tui_gen_win_info>: Define.
3378
a7798e7f
TT
33792019-10-09 Tom Tromey <tom@tromey.com>
3380
3381 * tui/tui-wingeneral.h (struct tui_gen_win_info): Don't declare.
3382
5c45899e
TT
33832019-10-09 Tom Tromey <tom@tromey.com>
3384
3385 * tui/tui-data.c (tui_win_is_auxiliary): Remove.
3386 * tui/tui-data.h (tui_win_is_auxiliary): Don't declare.
3387
6d7fd9aa
TT
33882019-10-09 Tom Tromey <tom@tromey.com>
3389
3390 * tui/tui-disasm.c (tui_get_low_disassembly_address): Compute
3391 window height directly.
3392 * tui/tui-layout.h (tui_default_win_viewport_height): Don't
3393 declare.
3394 * tui/tui-layout.c (tui_default_win_height): Remove.
3395 (tui_default_win_viewport_height): Remove.
3396
d2dd1084
TT
33972019-10-09 Tom Tromey <tom@tromey.com>
3398
3399 * tui/tui.h: Remove comments.
3400
cff32449
TV
34012019-10-09 Tom de Vries <tdevries@suse.de>
3402
3403 * python/lib/gdb/printer/bound_registers.py: Use
3404 '^builtin_type_bound128' as regexp argument for
3405 add_builtin_pretty_printer.
3406
6a25e8a2
CB
34072019-10-09 Christian Biesinger <cbiesinger@google.com>
3408
3409 * guile/guile.c (guile_extension_script_ops): Remove forward
3410 declaration and mark as static.
3411 (guile_script_ops): Likewise.
3412 (extension_language_guile): Move further down in the file so
3413 it can reference the definitions for guile_{extension_,}script_ops.
3414
6d9d6da4
AA
34152019-10-09 Andreas Arnez <arnez@linux.ibm.com>
3416
3417 * s390-tdep.c (390_process_record): Handle new arch13 instructions
3418 except SORTL, DFLTCC, and KDSA.
3419
3abea05d
TT
34202019-10-08 Tom Tromey <tromey@adacore.com>
3421
3422 * windows-nat.c (struct windows_thread_info_struct) <sf>: Remove.
3423 (struct safe_symbol_file_add_args): Remove.
3424
dde996e2
TT
34252019-10-08 Tom Tromey <tromey@adacore.com>
3426
3427 * windows-nat.c: Don't include buildsym-legacy.h.
3428
cd6fdaa1
TT
34292019-10-08 Tom Tromey <tromey@adacore.com>
3430
3431 * contrib/ari/gdb_ari.sh (%p): Allow gdb-specific %p extensions.
3432
79bb1944
CB
34332019-10-08 Christian Biesinger <cbiesinger@google.com>
3434
3435 * gdbtypes.c (overload_debug): Move comment to header.
3436 * gdbtypes.h (overload_debug): Declare.
3437 * valops.c: Remove declaration of overload_debug, instead
3438 include gdbtypes.h.
3439
34916edc
CB
34402019-10-08 Christian Biesinger <cbiesinger@google.com>
3441
3442 * language.c (show_language_command): Pass lang_frame_mismatch_warn
3443 through _().
3444 (lang_frame_mismatch_warn): Make const, mark with N_(), and
3445 move comment...
3446 * language.h (lang_frame_mismatch_warn): ... here. Also add
3447 declaration.
3448 * top.c (lang_frame_mismatch_warn): Remove declaration.
3449 (check_frame_language_change): Pass lang_frame_mismatch_warn
3450 through _().
3451
bad5c026
CB
34522019-10-07 Christian Biesinger <cbiesinger@google.com>
3453
3454 * c-lang.h (vtbl_ptr_name): Declare.
3455 * cp-valprint.c (vtbl_ptr_name): Remove "extern" now that we get
3456 it from the header.
3457 * stabsread.c (define_symbol): Remove declaration of vtbl_ptr_name.
3458
51f1fdc3
CB
34592019-10-07 Christian Biesinger <cbiesinger@google.com>
3460
3461 * charset.c (your_gdb_wchar_t_is_bogus): Replace with a
3462 gdb_static_assert.
3463
30d1f018
WP
34642019-10-07 Weimin Pan <weimin.pan@oracle.com>
3465
606813d5
WP
3466 * ../Makefile.def (dependencies): Add all-libctf to all-gdb
3467 * ../Makefile.in: Add "all-gdb: maybe-all-libctf"
30d1f018
WP
3468 * ctfread.c: New file.
3469 * ctfread.h: New file.
3470 * elfread.c: Include ctfread.h.
3471 (struct elfinfo text_p): New member ctfsect.
3472 (elf_locate_sections): Mark CTF section.
3473 (elf_symfile_read): Call elfctf_build_psymtabs.
3474 * Makefile.in (LIBCTF): Add.
3475 (CLIBS): Use it.
3476 (CDEPS): Likewise.
3477 (DIST): Add ctfread.c.
606813d5
WP
3478
34792019-10-07 Andrew Burgess <andrew.burgess@embecosm.com>
3480
3481 * ctfread.c (struct nextfield): Renamed to ...
3482 (struct ctf_nextfield): ... this.
3483 (struct field_info): Renamed to ...
3484 (strut ctf_field_info): ... this.
3485 (attach_fields_to_type): Update for renamed structures.
3486 (ctf_add_member_cb): Likewise.
3487 (ctf_add_enum_member_cb): Likewise.
3488 (process_struct_members): Likewise.
3489 (process_enum_type): Likewise.
30d1f018 3490
518fe38c
WP
34912019-10-07 Weimin Pan <weimin.pan@oracle.com>
3492
3493 * tracectf.h: Rename, was ctf.h.
3494 * tracectf.c: Rename, was ctf.c, replace ctf.h with tracectf.h.
3495 * tracefile.c: Likewise.
3496 * tracepoint.c: Remove unused include ctf.h.
3497 * mi/mi-main.c: Likewise.
3498 * Makefile.in Replace ctf.c with tracectf.c.
3499
225f296a
JB
35002019-10-06 Joel Brobecker <brobecker@adacore.com>
3501
3502 * version.in: Change version number to "9.0.50.DATE-git".
3503
77c2dba3
TT
35042019-10-03 Tom Tromey <tom@tromey.com>
3505
3506 PR rust/24976:
3507 * dwarf2read.c (quirk_rust_enum): Handle single-element unions.
3508
179aed7f
AB
35092019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
3510
3511 * f-lang.c (f_language_defn): Use cp_get_symbol_name_matcher and
3512 cp_search_name_hash.
3513 * NEWS: Add entry about nested function support.
3514
0a4b0913
AB
35152019-10-03 Bernhard Heckel <bernhard.heckel@intel.com>
3516 Andrew Burgess <andrew.burgess@embecosm.com>
3517
3518 * cp-namespace.c (cp_search_static_and_baseclasses): Only search
3519 for nested static variables when searchin VAR_DOMAIN.
3520 * dwarf2read.c (add_partial_symbol): Add nested subroutines to the
3521 global scope, update comment.
3522 (add_partial_subprogram): Call add_partial_subprogram recursively
3523 for nested subroutines when processinng Fortran.
3524 (load_partial_dies): Process the child entities of a subprogram
3525 when processing Fortran.
3526 (partial_die_parent_scope): Handle building scope
3527 for Fortran nested functions.
3528 (process_die): Record that nested functions have a scope.
3529 (new_symbol): Always record Fortran subprograms on the global
3530 symbol list.
3531 (determine_prefix): How to build the prefix for Fortran
3532 subprograms.
3533
d8c06f22
AB
35342019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
3535
3536 * linux-nat.c (linux_nat_filter_event): Don't ignore SIGSTOP if we
3537 have just sent the thread a SIGSTOP and are waiting for it to
3538 arrive.
3539
a8b3b8e9
AB
35402019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
3541
3542 * btrace.c (btrace_add_pc): Remove whitespace before the template
3543 parameter in 'std::vector <...>'.
3544 (parse_xml_btrace_block): Likewise.
3545 (btrace_maint_decode_pt): Likewise.
3546 (btrace_maint_update_packets): Likewise.
3547 (btrace_maint_print_packets): Likewise.
3548 * btrace.h (struct btrace_maint_info): Likewise.
3549 * dwarf2read.c (struct type_unit_group): Likewise.
3550 (build_type_psymtabs_reader): Likewise.
3551 * gdbsupport/btrace-common.c (btrace_data_append): Likewise.
3552 * gdbsupport/btrace-common.h (struct btrace_data_bts): Likewise.
3553 * nat/linux-btrace.c (perf_event_read_bts): Likewise.
3554
4d825eab
TV
35552019-10-03 Tom de Vries <tdevries@suse.de>
3556
3557 * cli/cli-style.c (_initialize_cli_style): Adding a '.' at the end of
3558 the first line of the help text for set/show style metadata.
3559
80fd2826
TT
35602019-10-02 Tom Tromey <tromey@adacore.com>
3561
3562 * Makefile.in (COMMON_SFILES): Add common-inferior.c.
3563 * gdbsupport/common-inferior.c: New file.
3564 * infcmd.c (startup_with_shell): Don't define.
3565 * nat/fork-inferior.h (startup_with_shell): Don't declare.
3566 * gdbsupport/common-inferior.h (startup_with_shell): Declare.
3567 * inferior.h (startup_with_shell): Don't declare.
3568
70054538
CB
35692019-10-02 Christian Biesinger <cbiesinger@google.com>
3570
3571 * gdbsupport/gdb_assert.h: Include errors.h.
3572 * gdbsupport/gdb_string_view.h: Include gdb_assert.h.
3573
37f6a7f4
TT
35742019-10-02 Tom Tromey <tromey@adacore.com>
3575
3576 * NEWS: Add $_ada_exception entry.
3577 * ada-lang.c (struct ada_catchpoint): Add constructor.
3578 <m_kind>: New member.
3579 (allocate_location_exception, re_set_exception): Remove
3580 "ex" parameter.
3581 (should_stop_exception): Compute $_ada_exception.
3582 (check_status_exception, print_it_exception)
3583 (print_one_exception, print_mention_exception): Remove
3584 "ex" parameter.
3585 (allocate_location_catch_exception, re_set_catch_exception)
3586 (check_status_exception, print_it_catch_exception)
3587 (print_one_catch_exception, print_mention_catch_exception)
3588 (print_recreate_catch_exception)
3589 (allocate_location_catch_exception_unhandled)
3590 (re_set_catch_exception_unhandled)
3591 (check_status_exception, print_it_catch_exception_unhandled)
3592 (print_one_catch_exception_unhandled)
3593 (print_mention_catch_exception_unhandled)
3594 (print_recreate_catch_exception_unhandled)
3595 (allocate_location_catch_assert, re_set_catch_assert)
3596 (check_status_assert, print_it_catch_assert)
3597 (print_one_catch_assert, print_mention_catch_assert)
3598 (print_recreate_catch_assert)
3599 (allocate_location_catch_handlers, re_set_catch_handlers)
3600 (check_status_handlers, print_it_catch_handlers)
3601 (print_one_catch_handlers, print_mention_catch_handlers)
3602 (print_recreate_catch_handlers): Remove.
3603 (create_ada_exception_catchpoint): Update.
3604 (initialize_ada_catchpoint_ops): Update.
3605
fccf9de1
TT
36062019-10-02 Tom Tromey <tromey@adacore.com>
3607
3608 * ada-lang.c (ada_lookup_simple_minsyms): Remove.
3609 (create_excep_cond_exprs): Simplify exception string computation.
3610 (ada_exception_catchpoint_cond_string): Likewise.
3611
4b610737
TT
36122019-10-02 Tom Tromey <tromey@adacore.com>
3613
3614 * symmisc.c (dump_msymbols): Don't use MSYMBOL_VALUE_ADDRESS.
3615 * ada-lang.c (lesseq_defined_than): Handle
3616 LOC_STATIC.
3617 * dwarf2read.c (dwarf2_per_objfile): Add can_copy
3618 parameter.
3619 (dwarf2_has_info): Likewise.
3620 (new_symbol): Set maybe_copied on symbol when
3621 appropriate.
3622 * dwarf2read.h (dwarf2_per_objfile): Add can_copy
3623 parameter.
3624 <can_copy>: New member.
3625 * elfread.c (record_minimal_symbol): Set maybe_copied
3626 on symbol when appropriate.
3627 (elf_symfile_read): Update call to dwarf2_has_info.
3628 * minsyms.c (lookup_minimal_symbol_linkage): New
3629 function.
3630 * minsyms.h (lookup_minimal_symbol_linkage): Declare.
3631 * symtab.c (get_symbol_address, get_msymbol_address):
3632 New functions.
3633 * symtab.h (get_symbol_address, get_msymbol_address):
3634 Declare.
3635 (SYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_ADDRESS): Handle
3636 maybe_copied.
3637 (struct symbol, struct minimal_symbol) <maybe_copied>:
3638 New member.
3639
1dd58850
TT
36402019-10-02 Tom Tromey <tromey@adacore.com>
3641
3642 * source.c (struct current_source_location): New.
3643 (current_source_key): New global.
3644 (current_source_symtab, current_source_line)
3645 (current_source_pspace): Remove.
3646 (get_source_location): New function.
3647 (get_current_source_symtab_and_line)
3648 (set_default_source_symtab_and_line)
3649 (set_current_source_symtab_and_line)
3650 (clear_current_source_symtab_and_line, select_source_symtab)
3651 (info_source_command, print_source_lines_base)
3652 (info_line_command, search_command_helper, _initialize_source):
3653 Update.
3654
5c281dbb
TT
36552019-10-02 Tom Tromey <tromey@adacore.com>
3656
3657 * source.c (select_source_symtab): Don't call
3658 decode_line_with_current_source.
3659
d3d32391
AB
36602019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
3661
3662 * symtab.c (lookup_global_symbol): Search global block.
3663
38583298
TT
36642019-10-02 Tom Tromey <tromey@adacore.com>
3665
3666 * coffread.c (process_coff_symbol): Update.
3667 * dwarf2read.c (var_decode_location, new_symbol): Update.
3668 * mdebugread.c (parse_symbol): Update.
3669 * objfiles.c (relocate_one_symbol): Update.
3670 * stabsread.c (define_symbol, fix_common_block)
3671 (scan_file_globals): Update.
3672 * symtab.h (SYMBOL_VALUE_ADDRESS): Expand to an rvalue.
3673 (SET_SYMBOL_VALUE_ADDRESS): New macro.
3674 * xcoffread.c (process_xcoff_symbol): Update.
3675
9344c18f
AA
36762019-10-02 Andreas Arnez <arnez@linux.ibm.com>
3677
3678 * MAINTAINERS: Update my email address.
3679
df07e2c7
AB
36802019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
3681
3682 * dwarf2read.c (struct type_unit_group) <tus>: Convert to
3683 std::vector.
3684 (build_type_psymtabs_reader): Update for std::vector.
3685 (build_type_psymtab_dependencies): Likewise.
3686 * dwarf2read.h: Remove use of DEF_VEC_P.
3687 (typedef sig_type_ptr): Delete.
3688
554ac434
AB
36892019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
3690
3691 * btrace.c (btrace_maint_clear): Update to handle change from VEC
3692 to std::vector.
3693 (btrace_maint_decode_pt): Likewise, and move allocation of the
3694 vector outside of the loop.
3695 (btrace_maint_update_packets): Update to handle change from VEC to
3696 std::vector.
3697 (btrace_maint_print_packets): Likewise.
3698 (maint_info_btrace_cmd): Likewise.
3699 * btrace.h: Remove use of DEF_VEC_O.
3700 (typedef btrace_pt_packet_s): Delete.
3701 (struct btrace_maint_info) <packets>: Change fromm VEC to
3702 std::vector.
3703 * gdbsupport/btrace-common.h: Remove 'vec.h' include.
3704
46f29a9a
AB
37052019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
3706
3707 * btrace.c (btrace_compute_ftrace_bts): Update for std::vector,
3708 make accesses into the vector constant references.
3709 (btrace_add_pc): Update for std::vector.
3710 (btrace_stitch_bts): Likewise.
3711 (parse_xml_btrace_block): Likewise.
3712 (btrace_maint_update_packets): Likewise.
3713 (btrace_maint_print_packets): Likewise.
3714 (maint_info_btrace_cmd): Likewise.
3715 * gdbsupport/btrace-common.c (btrace_data::fini): Update for
3716 std::vector.
3717 (btrace_data::empty): Likewise.
3718 (btrace_data_append): Likewise.
3719 * gdbsupport/btrace-common.h: Remove use of DEF_VEC_O.
3720 (typedef btrace_block_s): Delete.
3721 (struct btrace_block): Add constructor.
3722 (struct btrace_data_bts) <blocks>: Change to std::vector.
3723 * nat/linux-btrace.c (perf_event_read_bts): Update for
3724 std::vector.
3725 (linux_read_bts): Likewise.
3726
d770d56f
TT
37272019-10-01 Tom Tromey <tom@tromey.com>
3728
3729 * cli/cli-logging.c (show_logging_filename): Use styled_string.
3730
9d636d67
TT
37312019-10-01 Tom Tromey <tom@tromey.com>
3732
3733 * stack.c (print_frame, info_frame_command_core): Use
3734 styled_string.
3735 * linux-thread-db.c (try_thread_db_load_1)
3736 (try_thread_db_load_from_pdir_1): Use styled_string.
3737 * auto-load.c (file_is_auto_load_safe, execute_script_contents)
3738 (auto_load_section_scripts, info_auto_load_local_gdbinit)
3739 (maybe_print_unsupported_script_warning)
3740 (maybe_print_script_not_found_warning): Use styled_string.
3741 * ada-lang.c (user_select_syms): Use styled_string.
3742
7f6aba03
TT
37432019-10-01 Tom Tromey <tom@tromey.com>
3744
3745 * p-lang.c (pascal_printstr): Use metadata style.
3746 * value.c (show_convenience): Use metadata style.
3747 * valprint.c (valprint_check_validity, val_print_optimized_out)
3748 (val_print_not_saved, val_print_unavailable)
3749 (val_print_invalid_address, generic_val_print, val_print)
3750 (value_check_printable, val_print_array_elements): Use metadata
3751 style.
3752 * ui-out.h (class ui_out) <field_fmt>: New overload.
3753 <do_field_fmt>: Add style parameter.
3754 * ui-out.c (ui_out::field_fmt): New overload.
3755 * typeprint.c (type_print_unknown_return_type)
3756 (val_print_not_allocated, val_print_not_associated): Use metadata
3757 style.
3758 * tui/tui-out.h (class tui_ui_out) <do_field_fmt>: Add style
3759 parameter.
3760 * tui/tui-out.c (tui_ui_out::do_field_fmt): Update.
3761 * tracepoint.c (tvariables_info_1): Use metadata style.
3762 * stack.c (print_frame_arg, print_frame_info, print_frame)
3763 (info_frame_command_core): Use metadata style.
3764 * skip.c (info_skip_command): Use metadata style.
3765 * rust-lang.c (rust_print_enum): Use metadata style.
3766 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
3767 metadata style.
3768 * python/py-framefilter.c (py_print_single_arg): Use metadata
3769 style.
3770 * printcmd.c (do_one_display, print_variable_and_value): Use
3771 metadata style.
3772 * p-valprint.c (pascal_val_print)
3773 (pascal_object_print_value_fields): Use metadata style.
3774 * p-typeprint.c (pascal_type_print_base): Use metadata style.
3775 * mi/mi-out.h (class mi_ui_out) <do_field_fmt>: Add style
3776 parameter.
3777 * mi/mi-out.c (mi_ui_out::do_field_fmt): Update.
3778 * m2-valprint.c (m2_print_long_set): Use metadata style.
3779 * m2-typeprint.c (m2_print_type): Use metadata style.
3780 * infcmd.c (print_return_value_1): Use metadata style.
3781 * gnu-v3-abi.c (print_one_vtable): Use metadata style.
3782 * f-valprint.c (info_common_command_for_block): Use metadata
3783 style.
3784 * f-typeprint.c (f_type_print_base): Use metadata style.
3785 * expprint.c (print_subexp_standard): Use metadata style.
3786 * cp-valprint.c (cp_print_value_fields): Use metadata style.
3787 * cli/cli-style.h (class cli_style_option): Add constructor.
3788 (metadata_style): Declare.
3789 * cli/cli-style.c (metadata_style): New global.
3790 (_initialize_cli_style): Register metadata style.
3791 * cli-out.h (class cli_ui_out) <do_field_fmt>: Add style
3792 parameter.
3793 * cli-out.c (cli_ui_out::do_field_fmt): Update.
3794 * c-typeprint.c (c_type_print_base_struct_union)
3795 (c_type_print_base_1): Use metadata style.
3796 * breakpoint.c (watchpoint_value_print)
3797 (print_one_breakpoint_location): Use metadata style.
3798 * break-catch-syscall.c (print_one_catch_syscall): Use metadata
3799 style.
3800 * break-catch-sig.c (signal_catchpoint_print_one): Use metadata
3801 style.
3802 * ada-valprint.c (val_print_packed_array_elements, printstr)
3803 (print_field_values, ada_val_print_ref, ada_val_print): Use
3804 metadata style.
3805 * ada-typeprint.c (print_array_type, ada_print_type): Use metadata
3806 style.
3807 * ada-tasks.c (print_ada_task_info, info_task): Use metadata
3808 style.
3809 * ada-lang.c (user_select_syms): Use metadata style.
3810
14309bb6
TT
38112019-10-01 Tom Tromey <tom@tromey.com>
3812
3813 * cli/cli-cmds.c (pwd_command): Style output.
3814
6a831f06
PA
38152019-10-01 Pedro Alves <palves@redhat.com>
3816 Tom Tromey <tom@tromey.com>
3817
3818 * symtab.c (print_symbol_info): Use %ps.
3819 (print_msymbol_info): Use %ps.
3820 * symfile.c (symbol_file_add_with_addrs): Use %ps.
3821 * printcmd.c (print_variable_and_value): Use %ps.
3822 * macrocmd.c (show_pp_source_pos): Use %ps.
3823 * infrun.c (print_exited_reason): Use ui_out::message.
3824 * breakpoint.c (watchpoint_check, print_one_breakpoint_location)
3825 (describe_other_breakpoints): Use ui_out::message and new
3826 formats.
3827 (say_where): Use new formats.
3828 (bkpt_print_it, tracepoint_print_one_detail): Use ui_out::message
3829 and new formats.
3830
2a3c1174
PA
38312019-10-01 Pedro Alves <palves@redhat.com>
3832 Tom Tromey <tom@tromey.com>
3833
3834 * unittests/format_pieces-selftests.c: Add gdb_format parameter.
3835 (test_gdb_formats): New function.
3836 (run_tests): Call it.
3837 (test_format_specifier): Update.
3838 * utils.h (fputs_filtered): Update comment.
3839 (vfprintf_styled, vfprintf_styled_no_gdbfmt)
3840 (fputs_styled_unfiltered): Declare.
3841 * utils.c (fputs_styled_unfiltered): New function.
3842 (vfprintf_maybe_filtered): Add gdbfmt parameter.
3843 (vfprintf_filtered): Update.
3844 (vfprintf_unfiltered, vprintf_filtered): Update.
3845 (vfprintf_styled, vfprintf_styled_no_gdbfmt): New functions.
3846 * ui-out.h (enum ui_out_flag) <unfiltered_output,
3847 disallow_ui_out_field>: New constants.
3848 (enum class field_kind): New.
3849 (struct base_field_s, struct signed_field_s): New.
3850 (signed_field): New function.
3851 (struct string_field_s): New.
3852 (string_field): New function.
3853 (struct styled_string_s): New.
3854 (styled_string): New function.
3855 (class ui_out) <message>: Add comment.
3856 <vmessage, call_do_message>: New methods.
3857 <do_message>: Add style parameter.
3858 * ui-out.c (ui_out::call_do_message, ui_out::vmessage): New
3859 methods.
3860 (ui_out::message): Rewrite.
3861 * mi/mi-out.h (class mi_ui_out) <do_message>: Add style
3862 parameter.
3863 * mi/mi-out.c (mi_ui_out::do_message): Add style parameter.
3864 * gdbsupport/format.h (class format_pieces) <format_pieces>: Add
3865 gdb_extensions parameter.
3866 (class format_piece): Add parameter to constructor.
3867 (n_int_args): New field.
3868 * gdbsupport/format.c (format_pieces::format_pieces): Add
3869 gdb_extensions parameter. Handle '*'.
3870 * cli-out.h (class cli_ui_out) <do_message>: Add style parameter.
3871 * cli-out.c (cli_ui_out::do_message): Add style parameter. Call
3872 vfprintf_styled_no_gdbfmt.
3873 (cli_ui_out::do_field_string, cli_ui_out::do_spaces)
3874 (cli_ui_out::do_text, cli_ui_out::field_separator): Allow
3875 unfiltered output.
3876 * ui-style.h (struct ui_file_style) <ptr>: New method.
3877
0dfe5bfb
TT
38782019-10-01 Tom Tromey <tom@tromey.com>
3879
3880 * unittests/format_pieces-selftests.c: Update. Add final format.
3881 * gdbsupport/format.c (format_pieces::format_pieces): Don't add
3882 empty literal pieces.
3883
e43b10e1
TT
38842019-10-01 Tom Tromey <tom@tromey.com>
3885
3886 * ui-out.h (enum class ui_out_style_kind): Remove.
3887 (class ui_out) <field_string, field_stsream, do_field_string>:
3888 Change type of "style".
3889 * ui-out.c (ui_out::field_core_addr, ui_out::field_stream)
3890 (ui_out::field_string): Update.
3891 * tui/tui-out.h (class tui_ui_out) <do_field_string>: Change type
3892 of "style".
3893 * tui/tui-out.c (tui_ui_out::do_field_string): Update.
3894 * tracepoint.c (print_one_static_tracepoint_marker): Update.
3895 * stack.c (print_frame_arg, print_frame_info, print_frame):
3896 Update.
3897 * source.c (print_source_lines_base): Update.
3898 * solib.c (info_sharedlibrary_command): Update.
3899 * skip.c (info_skip_command): Update.
3900 * record-btrace.c (btrace_call_history_src_line)
3901 (btrace_call_history): Update.
3902 * python/py-framefilter.c (py_print_frame): Update.
3903 * mi/mi-out.h (class mi_ui_out) <do_field_string>: Change type of
3904 "style".
3905 * mi/mi-out.c (mi_ui_out::do_table_header)
3906 (mi_ui_out::do_field_signed, mi_ui_out::do_field_unsigned)
3907 (mi_ui_out::do_field_string): Update.
3908 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
3909 Update.
3910 * cli-out.h (class cli_ui_out) <do_field_string>: Change type of
3911 "style".
3912 * cli-out.c (cli_ui_out::do_table_header)
3913 (cli_ui_out::do_field_signed, cli_ui_out::do_field_unsigned)
3914 (cli_ui_out::do_field_skip, cli_ui_out::do_field_string)
3915 (cli_ui_out::do_field_fmt): Update.
3916 * breakpoint.c (print_breakpoint_location): Update.
3917 (update_static_tracepoint): Update.
3918
cd7c32c3
PW
39192019-10-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3920
3921 * main.c (relocate_gdbinit_path_maybe_in_datadir): Remove std::string
3922 conversion of gdb_datadir.
3923 (captured_main_1): Remove xstrdup when assigning to gdb_datadir,
3924 remove not needed c_str ().
3925
8fe0f950
AT
39262019-09-30 Ali Tamur <tamur@google.com>
3927
3928 * dwarf2read.c (skip_one_die): Handle DW_FORM_strx forms.
3929 (dwarf2_string_attr): Likewise.
3930
5f48f8f3
AT
39312019-09-30 Ali Tamur <tamur@google.com>
3932
3933 * dwarf2read.c (process_full_comp_unit): Remove whitespace at the EOL.
3934 (process_full_type_unit): Likewise.
3935 (dump_die_shallow): Likewise.
3936 (cu_debug_loc_section): Likewise.
3937
6fb08628
CB
39382019-09-28 Christian Biesinger <cbiesinger@google.com>
3939
3940 * minsyms.c (compare_minimal_symbols): Rename to...
3941 (minimal_symbol_is_less_than): ...this, and adjust to STL
3942 conventions (return bool, take arguments as references)
3943 (minimal_symbol_reader::install): Call std::sort instead
3944 of qsort.
3945
c7ee338a
CB
39462019-09-29 Christian Biesinger <cbiesinger@google.com>
3947
3948 * minsyms.h (msymbol_hash): Document that this is a case-insensitive
3949 hash and why.
3950 * objfiles.h (struct objfile_per_bfd_storage) <demangled_names_hash,
3951 msymbol_hash, msymbol_demangled_hash>: Improve comments.
3952
703a86c2
SM
39532019-09-30 Simon Marchi <simon.marchi@polymtl.ca>
3954
3955 * psymtab.c (add_psymbol_to_list): Move comment to psympriv.h.
3956 * psympriv.h (add_psymbol_to_list): Move comment here and update
3957 it.
3958
0df0352a
TV
39592019-09-29 Tom de Vries <tdevries@suse.de>
3960
3961 * contrib/cc-with-tweaks.sh (get_tmpdir): New function.
3962 Use $tmpdir/$(basename "$output_file").dwz instead of
3963 "${output_file}.dwz".
3964
ad75efa6
SM
39652019-09-28 Simon Marchi <simon.marchi@polymtl.ca>
3966
3967 PR gdb/25045
3968 * hppa-linux-nat.c: Include gdbarch.h.
3969
ececd218
CB
39702019-09-26 Christian Biesinger <cbiesinger@google.com>
3971
3972 * blockframe.c (find_pc_partial_function): Change return type to bool.
3973 * elfread.c (elf_gnu_ifunc_resolve_name): Likewise.
3974 * minsyms.c (in_gnu_ifunc_stub): Likewise.
3975 (stub_gnu_ifunc_resolve_name): Likewise.
3976 * symtab.c (compare_filenames_for_search): Likewise.
3977 (compare_glob_filenames_for_search): Likewise.
3978 (matching_obj_sections): Likewise.
3979 (symbol_matches_domain): Likewise.
3980 (find_line_symtab): Change out param EXACT_MATCH to bool *.
3981 (find_line_pc): Change return type to bool.
3982 (find_line_pc_range): Likewise.
3983 (producer_is_realview): Likewise.
3984 * symtab.h (symbol_matches_domain): Likewise.
3985 (find_pc_partial_function): Likewise.
3986 (find_pc_line_pc_range): Likewise.
3987 (in_gnu_ifunc_stub): Likewise.
3988 (struct gnu_ifunc_fns) <gnu_ifunc_resolve_name>: Likewise.
3989 (find_line_pc): Likewise.
3990 (find_line_pc_range): Likewise.
3991 (matching_obj_sections): Likewise.
3992 (find_line_symtab): Change out parameter to bool.
3993 (producer_is_realview): Change return type to bool.
3994 (compare_filenames_for_search): Likewise.
3995 (compare_glob_filenames_for_search): Likewise.
3996
27a900b8
TT
39972019-09-26 Tom Tromey <tom@tromey.com>
3998
3999 * Makefile.in (COMMON_SFILES): Remove gdb_usleep.c.
4000 (HFILES_NO_SRCDIR): Remove gdb_usleep.h.
4001 * gdb_usleep.h: Remove.
4002 * gdb_usleep.c: Remove.
4003 * utils.c: Don't include gdb_usleep.h.
4004
5d63b30a
TT
40052019-09-26 Tom Tromey <tromey@adacore.com>
4006
4007 * python/py-type.c (type_to_type_object): Call check_typedef
4008 for stub types.
4009
12904d37
TT
40102019-09-26 Tom Tromey <tom@tromey.com>
4011
4012 * utils.h (initialize_utils): Don't declare.
4013 * top.c (gdb_init): Don't call initialize_utils.
4014 * utils.c (initialize_utils): Remove. Move contents...
4015 (_initialize_utils): ... here.
4016
858f25f0
TT
40172019-09-25 Tom Tromey <tom@tromey.com>
4018
4019 * python/py-objfile.c (objfpy_get_build_id): Use bin2hex.
4020 * utils.h (make_hex_string): Don't declare.
4021 * utils.c (make_hex_string): Remove.
4022
3d435220
TV
40232019-09-24 Tom de Vries <tdevries@suse.de>
4024
4025 PR gdb/23815
4026 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers):
4027 Initialize xstateregs before ptrace PTRACE_GETREGSET call.
4028
ddd44b70
DD
40292019-09-23 Dimitar Dimitrov <dimitar@dinux.eu>
4030
4031 * NEWS: Mention new simulator port for PRU.
4032
f945dedf
CB
40332019-09-23 Christian Biesinger <cbiesinger@google.com>
4034
4035 * ada-exp.y (write_object_remaining): Update.
4036 * ada-lang.c (ada_decode): Return a std::string instead of a char*
4037 and eliminate the static buffer.
4038 (ada_decode_symbol): Update.
4039 (ada_la_decode): Update.
4040 (ada_sniff_from_mangled_name): Update.
4041 (is_valid_name_for_wild_match): Update.
4042 (ada_lookup_name_info::matches): Update and simplify.
4043 (name_matches_regex): Update.
4044 (ada_add_global_exceptions): Update.
4045 * ada-lang.h (ada_decode): Update signature.
4046 * ada-varobj.c (ada_varobj_describe_simple_array_child): Update.
4047 * dwarf-index-write.c (debug_names::insert): Update.
4048
7ab78ccb
SM
40492019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
4050
4051 * solib-svr4.c (svr4_iterate_over_objfiles_in_search_order): Fix
4052 formatting.
4053
9252448b
SM
40542019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
4055
4056 * breakpoint.h (bp_location) <inserted, permanent, duplicate>:
4057 Change "nonzero" to "true" in documentation.
4058
626ca2c0
CB
40592019-09-20 Christian Biesinger <cbiesinger@google.com>
4060
4061 * solib-darwin.c (darwin_lookup_lib_symbol): Remove.
4062 (_initialize_darwin_solib): Don't set
4063 darwin_so_ops.lookup_lib_global_symbol.
4064 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets): Call
4065 set_gdbarch_iterate_over_objfiles_in_search_order.
4066 (elf_lookup_lib_symbol): Rename to...
4067 (svr4_iterate_over_objfiles_in_search_order): this, and update
4068 to iterate semantics.
4069 (_initialize_svr4_solib): Don't set lookup_lib_global_symbol.
4070 * solib.c (solib_global_lookup): Remove.
4071 * solist.h (struct target_so_ops): Remove lookup_lib_global_symbol.
4072 (solib_global_lookup): Remove.
4073 * symtab.c (lookup_global_or_static_symbol): Remove call to
4074 solib_global_lookup.
4075
5a3a0d63
JB
40762019-09-20 Joel Brobecker <brobecker@adacore.com>
4077
4078 * NEWS: Move entries about default MI version now being
4079 version 3, and about the GDB/MI fix for multi-location
4080 breakpoints to the "since GDB 8.3" section.
4081
ffea1427
JB
40822019-09-20 Joel Brobecker <brobecker@adacore.com>
4083
4084 GDB 8.3.1 released.
4085
abf516c6
UW
40862019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
4087
4088 * NEWS: Mention that Cell/B.E. debugging support was removed.
4089 * MAINTAINERS: Remove spu target.
4090
4091 * config/djgpp/fnchange.lst: Remove entries for removed files.
4092
4093 * Makefile.in (ALL_TARGET_OBS): Remove solib-spu.o,
4094 spu-multiarch.o, and spu-tdep.o.
4095 (HFILES_NO_SRCDIR): Remove solib-spu.h and spu-tdep.h.
4096 (ALLDEPFILES): Remove solib-spu.c, spu-linux-nat.c,
4097 spu-multiarch.c, and spu-tdep.c.
4098 * spu-linux-nat.c: Remove file.
4099 * spu-multiarch.c: Remove file.
4100 * spu-tdep.c: Remove file.
4101 * spu-tdep.h: Remove file.
4102 * solib-spu.c: Remove file.
4103 * solib-spu.h: Remove file.
4104
4105 * configure.host (powerpc64*-*-linux*): Remove Cell/B.E. support.
4106 * configure.nat (spu-linux): Remove.
4107 * configure.tgt (powerpc*-*-linux*): Remove solib-spu.o and
4108 solib-multiarch.o from gdb_target_obs.
4109 (spu*-*-*): Remove.
4110
4111 * arch/ppc-linux-common.h (struct ppc_linux_features): Remove "cell"
4112 feature flag.
4113 (ppc_linux_no_features): Update.
4114 * arch/ppc-linux-common.c (ppc_linux_match_description): Remove
4115 Cell/B.E. support.
4116 * arch/ppc-linux-tdesc.h (tdesc_powerpc_cell32l): Remove declaration.
4117 (tdesc_powerpc_cell64l): Likewise.
4118 * nat/ppc-linux.h (PPC_FEATURE_CELL): Remove.
4119 * ppc-linux-nat.c (ppc_linux_nat_target::read_description): Remove
4120 Cell/B.E. support.
4121 * ppc-linux-tdep.h: Do not include "solib-spu.h" or "spu-tdep.h".
4122 Do not include "features/rs6000/powerpc-cell32l.c" or
4123 "features/rs6000/powerpc-cell64l.c".
4124 (ppc_linux_spu_section): Remove.
4125 (ppc_linux_core_read_description): Remove Cell/B.E. support.
4126 (spe_context_objfile, spe_context_lm_addr, spe_context_offset,
4127 spe_context_cache_ptid, spe_context_cache_ptid): Remove.
4128 (ppc_linux_spe_context_lookup): Remove.
4129 (ppc_linux_spe_context_inferior_created): Remove.
4130 (ppc_linux_spe_context_solib_loaded): Remove.
4131 (ppc_linux_spe_context_solib_unloaded): Remove.
4132 (ppc_linux_spe_context): Remove.
4133 (struct ppu2spu_cache): Remove.
4134 (ppu2spu_prev_arch, ppu2spu_this_id, ppu2spu_prev_register): Remove.
4135 (struct ppu2spu_data): Remove.
4136 (ppu2spu_unwind_register, ppu2spu_sniffer, ppu2spu_dealloc_cache,
4137 ppu2spu_unwind): Remove.
4138 (ppc_linux_init_abi): Remove Cell/B.E. support.
4139 * rs6000-tdep.h (rs6000_gdbarch_init): Remove Cell/B.E. support.
4140
4141 * features/Makefile (rs6000/powerpc-cell32l-expedite): Remove.
4142 (rs6000/powerpc-cell64l-expedite): Likewise
4143 (WHICH): Remove rs6000/powerpc-cell32l and rs6000/powerpc-cell64l.
4144 (XMLTOC): Remove rs6000/powerpc-cell32l.xml and
4145 rs6000/powerpc-cell64l.xml.
4146 * features/rs6000/powerpc-cell32l.xml: Remove.
4147 * features/rs6000/powerpc-cell64l.xml: Likewise.
4148 * features/rs6000/powerpc-cell32l.c: Remove generated file.
4149 * features/rs6000/powerpc-cell64l.c: Likewise.
4150 * regformats/rs6000/powerpc-cell32l.dat: Remove generated file.
4151 * regformats/rs6000/powerpc-cell64l.dat: Likewise.
4152 * regformats/reg-spu.dat: Remove.
4153
4154 * target.h (enum target_object): Remove TARGET_OBJECT_SPU.
4155 * corelow.c (struct spuid_list): Remove.
4156 (add_to_spuid_list): Remove.
4157 (core_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
4158 * remote.c (PACKET_qXfer_spu_read, PACKET_qXfer_spu_write): Remove.
4159 (remote_protocol_features): Remove associated entries.
4160 (_initialize_remote): No longer initialize them.
4161 (remote_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
4162 * linux-nat.c (SPUFS_MAGIC): Remove.
4163 (linux_proc_xfer_spu): Remove.
4164 (spu_enumerate_spu_ids): Remove.
4165 (linux_nat_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
4166 * linux-tdep.c (-linux_spu_make_corefile_notes): Remove.
4167 (linux_make_corefile_notes): No longer call it.
4168
4169 * regcache.c (cooked_read_test): Remove bfd_arch_spu special case.
4170 (cooked_write_test): Likewise.
4171
78e8cb91
TT
41722019-09-20 Tom Tromey <tom@tromey.com>
4173
4174 * NEWS: Mention case-sensitivity of TUI commands.
4175 * tui/tui-win.c (tui_set_focus_command): Now case-sensitive.
4176 (tui_set_win_height_command, parse_scrolling_args): Likewise.
4177 * tui/tui-layout.c (tui_layout_command): Now case-sensitive.
4178
f074b67e
TT
41792019-09-20 Tom Tromey <tom@tromey.com>
4180
4181 * tui/tui-source.c (tui_source_window::set_contents): Use
4182 make_unique_xstrdup.
4183 * tui/tui-disasm.c (tui_disasm_window::set_contents): Use
4184 make_unique_xstrdup.
4185
63c4bf19
TT
41862019-09-20 Tom Tromey <tom@tromey.com>
4187
4188 * tui/tui-data.c: Remove separator comments.
4189 * tui/tui-layout.c: Remove separator comments.
4190 * tui/tui-win.c: Remove separator comments.
4191 * tui/tui-wingeneral.c: Remove separator comments.
4192
43df9b2f
TT
41932019-09-20 Tom Tromey <tom@tromey.com>
4194
4195 * tui/tui.h (strcat_to_buf): Don't declare.
4196 * tui/tui.c (strcat_to_buf): Remove.
4197
7226433c
TT
41982019-09-20 Tom Tromey <tom@tromey.com>
4199
4200 * tui/tui-source.h (struct tui_source_window) <m_fullname>: Rename
4201 from "fullname".
4202 * tui/tui-source.c (tui_source_window::set_contents)
4203 (tui_source_window::location_matches_p)
4204 (tui_source_window::maybe_update): Update.
4205
80df3337
TT
42062019-09-20 Tom Tromey <tom@tromey.com>
4207
4208 * tui/tui-regs.h (struct tui_data_window) <get_current_group>:
4209 Update.
4210 <m_regs_content, m_regs_column_count, m_current_group>: Add "m_"
4211 prefix.
4212 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
4213 (tui_data_window::line_from_reg_element_no)
4214 (tui_data_window::first_reg_element_no_inline)
4215 (tui_data_window::show_registers)
4216 (tui_data_window::show_register_group)
4217 (tui_data_window::display_registers_from)
4218 (tui_data_window::display_registers_from_line)
4219 (tui_data_window::first_data_item_displayed)
4220 (tui_data_window::delete_data_content_windows)
4221 (tui_data_window::erase_data_content)
4222 (tui_data_window::do_scroll_vertical)
4223 (tui_data_window::refresh_window)
4224 (tui_data_window::check_register_values): Update.
4225
9923f347
TT
42262019-09-20 Tom Tromey <tom@tromey.com>
4227
4228 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN): Remove define.
4229 (struct tui_locator_window) <full_name, proc_name>: Now
4230 std::string.
4231 * tui/tui-stack.c (tui_locator_window::make_status_line)
4232 (tui_locator_window::set_locator_fullname)
4233 (tui_locator_window::set_locator_info): Update.
4234 * tui/tui-source.c (tui_source_window::set_contents)
4235 (tui_source_window::showing_source_p): Update.
4236
b76251ab
TT
42372019-09-20 Tom Tromey <tom@tromey.com>
4238
4239 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
4240 Don't call tui_locator_win_info_ptr.
4241
0891be08
TT
42422019-09-20 Tom Tromey <tom@tromey.com>
4243
4244 * tui/tui-win.c (tui_resize_all): Don't call refresh.
4245
1b935acf
TT
42462019-09-20 Tom Tromey <tom@tromey.com>
4247
4248 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use 1 as
4249 height for locator.
4250 * tui/tui-stack.c (tui_locator_window::rerender): Call scrollok.
4251 * tui/tui-layout.c (show_source_disasm_command, show_data)
4252 (show_source_or_disasm_and_command): Use 1 as height for locator.
4253
9abd8a65
TT
42542019-09-20 Tom Tromey <tom@tromey.com>
4255
4256 * tui/tui.c (tui_enable): Update.
4257 * tui/tui-win.c (tui_sigwinch_handler, tui_async_resize_screen):
4258 Update.
4259 * tui/tui-data.h (tui_win_resized, tui_set_win_resized_to):
4260 Update.
4261 * tui/tui-data.c (win_resized): Now bool.
4262 (tui_win_resized): Return bool.
4263 (tui_set_win_resized_to): Accept a bool.
4264
b5457826
TT
42652019-09-20 Tom Tromey <tom@tromey.com>
4266
4267 * tui/tui-regs.h (struct tui_data_window) <show_register_group>:
4268 Change type of "refresh_values_only".
4269 * tui/tui-regs.c (tui_data_window::show_register_group): Change
4270 type of "refresh_values_only".
4271
6b915f7d
TT
42722019-09-20 Tom Tromey <tom@tromey.com>
4273
4274 * tui/tui-disasm.c (struct tui_asm_line) <addr_string, insn>: Now
4275 std::string.
4276 (tui_disassemble): Add "pos" parameter.
4277 (tui_disasm_window::set_contents): Simplify.
4278
2ad52f6f
TT
42792019-09-20 Tom Tromey <tom@tromey.com>
4280
4281 * tui/tui-winsource.h (struct tui_source_window_base)
4282 <show_source_content>: Now private.
4283 * tui/tui-winsource.c
4284 (tui_source_window_base::show_source_content): Don't handle empty
4285 content case.
4286
b3b1bde6
TT
42872019-09-20 Tom Tromey <tom@tromey.com>
4288
4289 * tui/tui-layout.c (show_source_disasm_command)
4290 (show_source_or_disasm_and_command): Don't call
4291 show_source_content.
4292
71a25ed2
TT
42932019-09-20 Tom Tromey <tom@tromey.com>
4294
4295 * tui/tui-stack.h (struct tui_locator_window) <make_status_line>:
4296 Declare.
4297 * tui/tui-stack.c (tui_locator_window::make_status_line): Rename
4298 from tui_make_status_line.
4299 (tui_locator_window::rerender): Update.
4300
f8532154
TT
43012019-09-20 Tom Tromey <tom@tromey.com>
4302
4303 * tui/tui-stack.c (tui_make_status_line): Return std::string.
4304 (tui_locator_window::rerender): Update.
4305
2d81b349
TT
43062019-09-20 Tom Tromey <tom@tromey.com>
4307
4308 * tui/tui-winsource.h (struct tui_source_window_base)
4309 <~tui_source_window_base>: Don't declare.
4310 <fullname>: Remove.
4311 * tui/tui-winsource.c (~tui_source_window_base): Remove.
4312 * tui/tui-source.h (struct tui_source_window) <fullname>: New
4313 member.
4314 * tui/tui-source.c (tui_source_window::set_contents): Update.
4315 (tui_source_window::location_matches_p)
4316 (tui_source_window::maybe_update): Update.
4317
f14bec58
TT
43182019-09-20 Tom Tromey <tom@tromey.com>
4319
4320 * tui/tui-winsource.h (~tui_source_element): Remove.
4321 (tui_source_element): Update.
4322 (struct tui_source_element) <line>: Now a unique_xmalloc_ptr.
4323 * tui/tui-winsource.c (tui_show_source_line): Update.
4324 * tui/tui-source.c (tui_source_window::set_contents): Update.
4325 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
4326
78d5933a
TT
43272019-09-20 Tom Tromey <tom@tromey.com>
4328
4329 * tui/tui-data.h (tui_clear_source_windows_detail): Don't
4330 declare.
4331 * tui/tui-layout.c (tui_add_win_to_layout): Don't call
4332 tui_clear_source_windows_detail.
4333 * tui/tui-winsource.h (struct tui_source_window_base)
4334 <clear_detail>: Don't declare.
4335 * tui/tui-winsource.c (tui_source_window_base::clear_detail):
4336 Remove.
4337 * tui/tui-data.c (tui_clear_source_windows_detail): Remove.
4338
d4207696
TT
43392019-09-20 Tom Tromey <tromey@adacore.com>
4340
4341 PR ada/24919:
4342 * block.c (contained_in): Fix final return value.
4343
00f93c44
AM
43442019-09-20 Alan Modra <amodra@gmail.com>
4345
4346 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Use bfd_set_usrdata.
4347 * dwarf2read.c (dwarf2_read_gdb_index, dwarf2_read_debug_names),
4348 (read_indirect_string_from_dwz): Use bfd accessor.
4349 * dwarf2read.h (struct dwz_file <filename>): Likewise.
4350 * machoread.c (macho_symfile_read_all_oso): Likewise.
4351 * solib.c (solib_bfd_open): Likewise.
4352
e4153ae6
CB
43532019-09-19 Christian Biesinger <cbiesinger@google.com>
4354
4355 * eval.c: Move declaration of overload_resolution to...
4356 * value.h: ...here.
4357
c7ae7675
CB
43582019-09-19 Christian Biesinger <cbiesinger@google.com>
4359
4360 * arm-linux-nat.c: Remove extern declaration for arm_apcs_32.
4361 * arm-linux-tdep.c: Likewise.
4362 * arm-nbsd-nat.c: Likewise.
4363 * arm-tdep.h: Declare arm_apcs_32.
4364 * arm-tdep.c: Move documentation for arm_apcs_32 to arm-tdep.h.
4365
e86f08d2
CB
43662019-09-19 Christian Biesinger <cbiesinger@google.com>
4367
4368 * dwarf2loc.c: Remove extern declaration of dwarf_always_disassemble.
4369 * dwarf2read.h: Declare dwarf_always_disassemble.
4370
f64e2f40
TV
43712019-09-19 Tom de Vries <tdevries@suse.de>
4372
4373 PR gdb/25009
4374 * source-cache.c (source_cache::ensure): Catch exception thrown during
4375 construction of the highlighter.
4376
fd361982
AM
43772019-09-18 Alan Modra <amodra@gmail.com>
4378
4379 * aarch64-linux-tdep.c, * arm-tdep.c, * auto-load.c,
4380 * coff-pe-read.c, * coffread.c, * corelow.c, * dbxread.c,
4381 * dicos-tdep.c, * dwarf2-frame.c, * dwarf2read.c, * elfread.c,
4382 * exec.c, * fbsd-tdep.c, * gcore.c, * gdb_bfd.c, * gdb_bfd.h,
4383 * hppa-tdep.c, * i386-cygwin-tdep.c, * i386-fbsd-tdep.c,
4384 * i386-linux-tdep.c, * jit.c, * linux-tdep.c, * machoread.c,
4385 * maint.c, * mdebugread.c, * minidebug.c, * mips-linux-tdep.c,
4386 * mips-sde-tdep.c, * mips-tdep.c, * mipsread.c, * nto-tdep.c,
4387 * objfiles.c, * objfiles.h, * osabi.c, * ppc-linux-tdep.c,
4388 * ppc64-tdep.c, * record-btrace.c, * record-full.c, * remote.c,
4389 * rs6000-aix-tdep.c, * rs6000-tdep.c, * s390-linux-tdep.c,
4390 * s390-tdep.c, * solib-aix.c, * solib-dsbt.c, * solib-frv.c,
4391 * solib-spu.c, * solib-svr4.c, * solib-target.c,
4392 * spu-linux-nat.c, * spu-tdep.c, * symfile-mem.c, * symfile.c,
4393 * symmisc.c, * symtab.c, * target.c, * windows-nat.c,
4394 * xcoffread.c, * cli/cli-dump.c, * compile/compile-object-load.c,
4395 * mi/mi-interp.c: Update throughout for bfd section macro and
4396 function changes.
4397 * gcore (gcore_create_callback): Use bfd_set_section_lma.
4398 * spu-tdep.c (spu_overlay_new_objfile): Likewise.
4399
11061048
TT
44002019-09-18 Tom Tromey <tom@tromey.com>
4401
4402 * NEWS: Add entry.
4403 * tui/tui.c (tui_initialize_readline): Set name of keymap. Do not
4404 call rl_initialize.
4405 (tui_enable): Do not call rl_initialize.
4406
7a27b85f
CG
44072019-09-18 Christian Groessler <chris@groessler.org>
4408
4409 * alpha-linux-nat.c: Include gdbarch.h.
4410
f64eea3a
SM
44112019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
4412
4413 * ui-file.c: Include cli/cli-style.h.
4414 (term_cli_styling): Remove cli_styling declaration.
4415
e6f7f6d1
AM
44162019-09-18 Alan Modra <amodra@gmail.com>
4417
4418 * arm-tdep.c (arm_record_special_symbol): Update bfd_get_section
4419 to bfd_asymbol_section.
4420
1d38e9d1
AM
44212019-09-18 Alan Modra <amodra@gmail.com>
4422
4423 * amd64-dicos-tdep.c (amd64_dicos_osabi_sniffer): Constify target.
4424 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
4425 * i386-dicos-tdep.c (i386_dicos_osabi_sniffer): Likewise.
4426
90d92a63
AM
44272019-09-18 Alan Modra <amodra@gmail.com>
4428
4429 * solib-spu.c (spu_bfd_open): Use bfd_set_filename.
4430 * spu-linux-nat.c (spu_bfd_open): Likewise.
4431
a3d181d2
CB
44322019-09-18 Christian Biesinger <cbiesinger@google.com>
4433
4434 * dwarf2loc.c: Change extern declaration of dwarf_always_disassemble
4435 to bool to match definition in dwarf2read.c.
4436
491144b5
CB
44372019-09-17 Christian Biesinger <cbiesinger@google.com>
4438
4439 * ada-lang.c (ada_ignore_descriptive_types_p): Change to bool.
4440 (print_signatures): Likewise.
4441 (trust_pad_over_xvs): Likewise.
4442 * arch/aarch64-insn.c (aarch64_debug): Likewise.
4443 * arch/aarch64-insn.h (aarch64_debug): Likewise.
4444 * arm-linux-nat.c (arm_apcs_32): Likewise.
4445 * arm-linux-tdep.c (arm_apcs_32): Likewise.
4446 * arm-nbsd-nat.c (arm_apcs_32): Likewise.
4447 * arm-tdep.c (arm_debug): Likewise.
4448 (arm_apcs_32): Likewise.
4449 * auto-load.c (debug_auto_load): Likewise.
4450 (auto_load_gdb_scripts): Likewise.
4451 (global_auto_load): Likewise.
4452 (auto_load_local_gdbinit): Likewise.
4453 (auto_load_local_gdbinit_loaded): Likewise.
4454 * auto-load.h (global_auto_load): Likewise.
4455 (auto_load_local_gdbinit): Likewise.
4456 (auto_load_local_gdbinit_loaded): Likewise.
4457 * breakpoint.c (disconnected_dprintf): Likewise.
4458 (breakpoint_proceeded): Likewise.
4459 (automatic_hardware_breakpoints): Likewise.
4460 (always_inserted_mode): Likewise.
4461 (target_exact_watchpoints): Likewise.
4462 (_initialize_breakpoint): Update.
4463 * breakpoint.h (target_exact_watchpoints): Change to bool.
4464 * btrace.c (maint_btrace_pt_skip_pad): Likewise.
4465 * cli/cli-cmds.c (trace_commands): Likewise.
4466 * cli/cli-cmds.h (trace_commands): Likewise.
4467 * cli/cli-decode.c (add_setshow_boolean_cmd): Change int* argument
4468 to bool*.
4469 * cli/cli-logging.c (logging_overwrite): Change to bool.
4470 (logging_redirect): Likewise.
4471 (debug_redirect): Likewise.
4472 * cli/cli-option.h (option_def) <boolean>: Change return type to bool*.
4473 (struct boolean_option_def) <get_var_address_cb_>: Change return type
4474 to bool.
4475 <boolean_option_def>: Update.
4476 (struct flag_option_def): Change default type of Context to bool
4477 from int.
4478 <flag_option_def>: Change return type of var_address_cb_ to bool*.
4479 * cli/cli-setshow.c (do_set_command): Cast to bool* instead of int*.
4480 (get_setshow_command_value_string): Likewise.
4481 * cli/cli-style.c (cli_styling): Change to bool.
4482 (source_styling): Likewise.
4483 * cli/cli-style.h (source_styling): Likewise.
4484 (cli_styling): Likewise.
4485 * cli/cli-utils.h (struct qcs_flags) <quiet, cont, silent>: Change
4486 to bool.
4487 * command.h (var_types): Update comment.
4488 (add_setshow_boolean_cmd): Change int* var argument to bool*.
4489 * compile/compile-cplus-types.c (debug_compile_cplus_types): Change to
4490 bool.
4491 (debug_compile_cplus_scopes): Likewise.
4492 * compile/compile-internal.h (compile_debug): Likewise.
4493 * compile/compile.c (compile_debug): Likewise.
4494 (struct compile_options) <raw>: Likewise.
4495 * cp-support.c (catch_demangler_crashes): Likewise.
4496 * cris-tdep.c (usr_cmd_cris_version_valid): Likewise.
4497 (usr_cmd_cris_dwarf2_cfi): Likewise.
4498 * csky-tdep.c (csky_debug): Likewise.
4499 * darwin-nat.c (enable_mach_exceptions): Likewise.
4500 * dcache.c (dcache_enabled_p): Likewise.
4501 * defs.h (info_verbose): Likewise.
4502 * demangle.c (demangle): Likewise.
4503 (asm_demangle): Likewise.
4504 * dwarf-index-cache.c (debug_index_cache): Likewise.
4505 * dwarf2-frame.c (dwarf2_frame_unwinders_enabled_p): Likewise.
4506 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Likewise.
4507 * dwarf2read.c (check_physname): Likewise.
4508 (use_deprecated_index_sections): Likewise.
4509 (dwarf_always_disassemble): Likewise.
4510 * eval.c (overload_resolution): Likewise.
4511 * event-top.c (set_editing_cmd_var): Likewise.
4512 (exec_done_display_p): Likewise.
4513 * event-top.h (set_editing_cmd_var): Likewise.
4514 (exec_done_display_p): Likewise.
4515 * exec.c (write_files): Likewise.
4516 * fbsd-nat.c (debug_fbsd_lwp): Likewise
4517 (debug_fbsd_nat): Likewise.
4518 * frame.h (struct frame_print_options) <print_raw_frame_arguments>:
4519 Likewise.
4520 (struct set_backtrace_options) <backtrace_past_main>: Likewise.
4521 <backtrace_past_entry> Likewise.
4522 * gdb-demangle.h (demangle): Likewise.
4523 (asm_demangle): Likewise.
4524 * gdb_bfd.c (bfd_sharing): Likewise.
4525 * gdbcore.h (write_files): Likewise.
4526 * gdbsupport/common-debug.c (show_debug_regs): Likewise.
4527 * gdbsupport/common-debug.h (show_debug_regs): Likewise.
4528 * gdbthread.h (print_thread_events): Likewise.
4529 * gdbtypes.c (opaque_type_resolution): Likewise.
4530 (strict_type_checking): Likewise.
4531 * gnu-nat.c (gnu_debug_flag): Likewise.
4532 * guile/scm-auto-load.c (auto_load_guile_scripts): Likewise.
4533 * guile/scm-param.c (pascm_variable): Add boolval.
4534 (add_setshow_generic): Update.
4535 (pascm_param_value): Update.
4536 (pascm_set_param_value_x): Update.
4537 * hppa-tdep.c (hppa_debug): Change to bool..
4538 * infcall.c (may_call_functions_p): Likewise.
4539 (coerce_float_to_double_p): Likewise.
4540 (unwind_on_signal_p): Likewise.
4541 (unwind_on_terminating_exception_p): Likewise.
4542 * infcmd.c (startup_with_shell): Likewise.
4543 * inferior.c (print_inferior_events): Likewise.
4544 * inferior.h (startup_with_shell): Likewise.
4545 (print_inferior_events): Likewise.
4546 * infrun.c (step_stop_if_no_debug): Likewise.
4547 (detach_fork): Likewise.
4548 (debug_displaced): Likewise.
4549 (disable_randomization): Likewise.
4550 (non_stop): Likewise.
4551 (non_stop_1): Likewise.
4552 (observer_mode): Likewise.
4553 (observer_mode_1): Likewise.
4554 (set_observer_mode): Update.
4555 (sched_multi): Change to bool.
4556 * infrun.h (debug_displaced): Likewise.
4557 (sched_multi): Likewise.
4558 (step_stop_if_no_debug): Likewise.
4559 (non_stop): Likewise.
4560 (disable_randomization): Likewise.
4561 * linux-tdep.c (use_coredump_filter): Likewise.
4562 (dump_excluded_mappings): Likewise.
4563 * linux-thread-db.c (auto_load_thread_db): Likewise.
4564 (check_thread_db_on_load): Likewise.
4565 * main.c (captured_main_1): Update.
4566 * maint-test-options.c (struct test_options_opts) <flag_opt, xx1_opt,
4567 xx2_opt, boolean_opt>: Change to bool.
4568 * maint-test-settings.c (maintenance_test_settings_boolean): Likewise.
4569 * maint.c (maintenance_profile_p): Likewise.
4570 (per_command_time): Likewise.
4571 (per_command_space): Likewise.
4572 (per_command_symtab): Likewise.
4573 * memattr.c (inaccessible_by_default): Likewise.
4574 * mi/mi-main.c (mi_async): Likewise.
4575 (mi_async_1): Likewise.
4576 * mips-tdep.c (mips64_transfers_32bit_regs_p): Likewise.
4577 * nat/fork-inferior.h (startup_with_shell): Likewise.
4578 * nat/linux-namespaces.c (debug_linux_namespaces): Likewise.
4579 * nat/linux-namespaces.h (debug_linux_namespaces): Likewise.
4580 * nios2-tdep.c (nios2_debug): Likewise.
4581 * or1k-tdep.c (or1k_debug): Likewise.
4582 * parse.c (parser_debug): Likewise.
4583 * parser-defs.h (parser_debug): Likewise.
4584 * printcmd.c (print_symbol_filename): Likewise.
4585 * proc-api.c (procfs_trace): Likewise.
4586 * python/py-auto-load.c (auto_load_python_scripts): Likewise.
4587 * python/py-param.c (union parmpy_variable): Add "bool boolval" field.
4588 (set_parameter_value): Update.
4589 (add_setshow_generic): Update.
4590 * python/py-value.c (copy_py_bool_obj): Change argument from int*
4591 to bool*.
4592 * python/python.c (gdbpy_parameter_value): Cast to bool* instead of
4593 int*.
4594 * ravenscar-thread.c (ravenscar_task_support): Change to bool.
4595 * record-btrace.c (record_btrace_target::store_registers): Update.
4596 * record-full.c (record_full_memory_query): Change to bool.
4597 (record_full_stop_at_limit): Likewise.
4598 * record-full.h (record_full_memory_query): Likewise.
4599 * remote-notif.c (notif_debug): Likewise.
4600 * remote-notif.h (notif_debug): Likewise.
4601 * remote.c (use_range_stepping): Likewise.
4602 (interrupt_on_connect): Likewise.
4603 (remote_break): Likewise.
4604 * ser-tcp.c (tcp_auto_retry): Likewise.
4605 * ser-unix.c (serial_hwflow): Likewise.
4606 * skip.c (debug_skip): Likewise.
4607 * solib-aix.c (solib_aix_debug): Likewise.
4608 * spu-tdep.c (spu_stop_on_load_p): Likewise.
4609 (spu_auto_flush_cache_p): Likewise.
4610 * stack.c (struct backtrace_cmd_options) <full, no_filters, hide>:
4611 Likewise.
4612 (struct info_print_options) <quiet>: Likewise.
4613 * symfile-debug.c (debug_symfile): Likewise.
4614 * symfile.c (auto_solib_add): Likewise.
4615 (separate_debug_file_debug): Likewise.
4616 * symfile.h (auto_solib_add): Likewise.
4617 (separate_debug_file_debug): Likewise.
4618 * symtab.c (basenames_may_differ): Likewise.
4619 (struct filename_partial_match_opts) <dirname, basename>: Likewise.
4620 (struct info_print_options) <quiet, exclude_minsyms>: Likewise.
4621 (struct info_types_options) <quiet>: Likewise.
4622 * symtab.h (demangle): Likewise.
4623 (basenames_may_differ): Likewise.
4624 * target-dcache.c (stack_cache_enabled_1): Likewise.
4625 (code_cache_enabled_1): Likewise.
4626 * target.c (trust_readonly): Likewise.
4627 (may_write_registers): Likewise.
4628 (may_write_memory): Likewise.
4629 (may_insert_breakpoints): Likewise.
4630 (may_insert_tracepoints): Likewise.
4631 (may_insert_fast_tracepoints): Likewise.
4632 (may_stop): Likewise.
4633 (auto_connect_native_target): Likewise.
4634 (target_stop_and_wait): Update.
4635 (target_async_permitted): Change to bool.
4636 (target_async_permitted_1): Likewise.
4637 (may_write_registers_1): Likewise.
4638 (may_write_memory_1): Likewise.
4639 (may_insert_breakpoints_1): Likewise.
4640 (may_insert_tracepoints_1): Likewise.
4641 (may_insert_fast_tracepoints_1): Likewise.
4642 (may_stop_1): Likewise.
4643 * target.h (target_async_permitted): Likewise.
4644 (may_write_registers): Likewise.
4645 (may_write_memory): Likewise.
4646 (may_insert_breakpoints): Likewise.
4647 (may_insert_tracepoints): Likewise.
4648 (may_insert_fast_tracepoints): Likewise.
4649 (may_stop): Likewise.
4650 * thread.c (struct info_threads_opts) <show_global_ids>: Likewise.
4651 (make_thread_apply_all_options_def_group): Change argument from int*
4652 to bool*.
4653 (thread_apply_all_command): Update.
4654 (print_thread_events): Change to bool.
4655 * top.c (confirm): Likewise.
4656 (command_editing_p): Likewise.
4657 (history_expansion_p): Likewise.
4658 (write_history_p): Likewise.
4659 (info_verbose): Likewise.
4660 * top.h (confirm): Likewise.
4661 (history_expansion_p): Likewise.
4662 * tracepoint.c (disconnected_tracing): Likewise.
4663 (circular_trace_buffer): Likewise.
4664 * typeprint.c (print_methods): Likewise.
4665 (print_typedefs): Likewise.
4666 * utils.c (debug_timestamp): Likewise.
4667 (sevenbit_strings): Likewise.
4668 (pagination_enabled): Likewise.
4669 * utils.h (sevenbit_strings): Likewise.
4670 (pagination_enabled): Likewise.
4671 * valops.c (overload_resolution): Likewise.
4672 * valprint.h (struct value_print_options) <prettyformat_arrays,
4673 prettyformat_structs, vtblprint, unionprint, addressprint, objectprint,
4674 stop_print_at_null, print_array_indexes, deref_ref, static_field_print,
4675 pascal_static_field_print, raw, summary, symbol_print, finish_print>:
4676 Likewise.
4677 * windows-nat.c (new_console): Likewise.
4678 (cygwin_exceptions): Likewise.
4679 (new_group): Likewise.
4680 (debug_exec): Likewise.
4681 (debug_events): Likewise.
4682 (debug_memory): Likewise.
4683 (debug_exceptions): Likewise.
4684 (useshell): Likewise.
4685 * windows-tdep.c (maint_display_all_tib): Likewise.
4686 * xml-support.c (debug_xml): Likewise.
4687
f1b620e9
MG
46882019-09-17 Mike Gulick <mgulick@mathworks.com>
4689
4690 * source.c (prepare_path_for_appending): New function.
4691 (openp): Make use of new function.
4692 (find_and_open_source): Search for the compilation directory and
4693 source file as a relative path beneath the directory search path.
4694
67f3ed6a
AB
46952019-09-17 Andrew Burgess <andrew.burgess@embecosm.com>
4696
4697 * source-cache.c (source_cache::get_line_charpos): Catch
4698 exceptions and return false, this matches the behaviour documented
4699 in the header file.
4700
74332189
JB
47012019-09-17 Joel Brobecker <brobecker@adacore.com>
4702
4703 * ada-tasks.c (info_task): Remove quoting of the task's name.
4704
f2f24aa9
CB
47052019-09-16 Christian Biesinger <cbiesinger@google.com>
4706
4707 * symfile.c (auto_solib_add): Replace comment with a reference
4708 to the header file.
4709
6a062a93
CB
47102019-09-14 Christian Biesinger <cbiesinger@google.com>
4711
4712 * NEWS: Mention that gdb can now be compiled with Python 3
4713 on Windows.
4714
ec6c8338
AB
47152019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
4716
4717 * maint.c (maint_print_section_data::maint_print_section_data):
4718 Force use of 'float log10 (float)' by casting the argument to
4719 float.
4720
aa17805f
AB
47212019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
4722
4723 * maint.c: Add 'cmath' include.
4724 (struct maint_print_section_data): New structure.
4725 (print_section_index): New function.
4726 (print_bfd_section_info): Add header comment, small whitespace
4727 cleanup, and update to call new print_section_index function.
4728 (print_objfile_section_info): Likewise.
4729 (maint_obj_section_from_bfd_section): New function.
4730 (print_bfd_section_info_maybe_relocated): New function.
4731 (maintenance_info_sections): Add header comment, always use
4732 bfd_map_over_sections instead of ALL_OBJFILE_OSECTIONS.
4733
3dd9bb46
AB
47342019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
4735
4736 * psymtab.c (find_pc_sect_psymtab): Move baseaddr local into more
4737 inner scope, add check that the objfile has psymtabs before
4738 checking psymtabs_addrmap.
4739 * psymtab.h (psymtab_storage) <psymtabs_addrmap>: Extend comment.
4740
4993045d
PW
47412019-09-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4742
4743 * NEWS: Announce that Ada task names are now shown at more places,
4744 and between quotes (except in info task output).
4745 * gdb/ada-tasks.c (task_to_str): New function.
4746 (display_current_task_id): Call task_to_str.
4747 (task_command_1): Likewise.
4748 (print_ada_task_info): In non-mi mode, Properly align headers and data
4749 when task-id length is > 9 (9 is the default for a 32 bits CORE_ADDR).
4750
7a289707
RO
47512019-09-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4752
4753 * procfs.c (procfs_target::wait) <PR_FAULTED>: Get signal from
4754 prstatus.pr_lwp.pr_info instead of making it up.
4755
f2aec7f6
CB
47562019-09-11 Christian Biesinger <cbiesinger@google.com>
4757
4758 * auto-load.c (auto_load_expand_dir_vars): Update.
4759 * defs.h (gdb_datadir): Change to std::string.
4760 (python_libdir): Likewise.
4761 (relocate_gdb_directory): Change return type to std::string.
4762 * guile/guile.c (gdbscm_data_directory): Update.
4763 (initialize_scheme_side): Update.
4764 * jit.c (jit_reader_dir): Change to std::string.
4765 (jit_reader_load_command): Update.
4766 * main.c (gdb_datadir): Change to std::string.
4767 (python_libdir): Likewise.
4768 (set_gdb_data_directory): Update.
4769 (relocate_path): Change to return std::string.
4770 (relocate_gdb_directory): Change to return std::string.
4771 (relocate_gdbinit_path_maybe_in_datadir): Update.
4772 (captured_main_1): Update.
4773 * python/python.c (do_start_initialization): Update.
4774 * top.c (show_gdb_datadir): Update.
4775 * xml-syscall.c (xml_init_syscalls_info): Update.
4776 (init_syscalls_info): Update.
4777
9224a013
CB
47782019-09-11 Christian Biesinger <cbiesinger@google.com>
4779
4780 * main.c (relocate_gdbinit_path_maybe_in_datadir): Factor this code
4781 out of get_init_files.
4782 (get_init_files): Update.
4783
f48cd836
CB
47842019-09-11 Christian Biesinger <cbiesinger@google.com>
4785
4786 * main.c (get_init_files): Change to use std::string.
4787 (captured_main_1): Update.
4788 (print_gdb_help): Update.
4789
9cab7ecd
AT
47902019-09-11 Ali Tamur <tamur@google.com>
4791
4792 *gdb/target-float.c (host_float_ops<T>::to_longest): Update
4793 implementation.
4794
67547d89
CB
47952019-09-11 Christian Biesinger <cbiesinger@google.com>
4796
4797 * dbxread.c (read_dbx_symtab): Update.
4798 * dwarf2read.c (load_partial_dies): Update.
4799 * mdebugread.c (parse_partial_symbols): Update.
4800 (handle_psymbol_enumerators): Update.
4801 * psympriv.h (add_psymbol_to_list): Change type of copy_names to bool.
4802 * psymtab.c (add_psymbol_to_bcache): Likewise.
4803 (add_psymbol_to_list): Likewise.
4804 * symtab.c (symbol_set_names): Likewise.
4805 * symtab.h (symbol_set_names): Likewise.
4806 * xcoffread.c (scan_xcoff_symtab): Update.
4807
64b2d4a0
TT
48082019-09-11 Tom Tromey <tom@tromey.com>
4809
4810 * symfile-mem.c (symbol_file_add_from_memory): Use
4811 bfd_set_filename.
4812 * solib-darwin.c (darwin_bfd_open): Use bfd_set_filename.
4813 * solib-aix.c (solib_aix_bfd_open): Use bfd_set_filename.
4814
3b00ef10
TT
48152019-09-10 Tom Tromey <tromey@adacore.com>
4816
4817 * dwarf-index-write.c (write_psymbols): Extend error message.
4818 (debug_names::insert): Add Ada code.
4819 (debug_names::write_psymbols): Remove Ada check.
4820 (debug_names) <m_string_obstack>: New member.
4821 * dwarf2read.c (gdb_index_symbol_name_matcher): Remove.
4822 (gdb_index_symbol_name_matcher::matches): Remove.
4823 (mapped_index_base::find_name_components_bounds): Add "lang"
4824 parameter.
4825 (mapped_index_base::build_name_components): Also split names
4826 according to Ada syntax.
4827 (dw2_expand_symtabs_matching_symbol): Loop over languages. Change
4828 type of "match_callback".
4829 (check_match, check_find_bounds_finds)
4830 (dw2_expand_symtabs_matching): Update.
4831 (dw2_debug_names_iterator): Add new constructor.
4832 (dw2_debug_names_map_matching_symbols): New function.
4833 (dw2_debug_names_expand_symtabs_matching): Update.
4834 (dwarf2_debug_names_functions): Use
4835 dw2_debug_names_map_matching_symbols.
4836
aa391654
TT
48372019-09-10 Tom Tromey <tromey@adacore.com>
4838
4839 * dwarf2read.c (dw2_get_file_names_reader): Add the
4840 CU's file name to the results.
4841
b054970d
TT
48422019-09-10 Tom Tromey <tromey@adacore.com>
4843
4844 * ada-lang.c (add_nonlocal_symbols): Combine calls to
4845 map_matching_symbols. Update.
4846 * dwarf2read.c (dw2_map_matching_symbols): Update.
4847 * psymtab.c (match_partial_symbol): Change type; update.
4848 (psym_map_matching_symbols): Likewise.
4849 * symfile-debug.c (debug_qf_map_matching_symbols): Change
4850 type; update.
4851 * symfile.h (struct quick_symbol_functions)
4852 <map_matching_symbols>: Change "name" to be a lookup_name_info.
4853 Remove "match".
4854
6a3dbf1b
TT
48552019-09-10 Tom Tromey <tromey@adacore.com>
4856
4857 * psymtab.c (map_block): Remove.
4858 (psym_map_matching_symbols): Use iterate_over_symbols_terminated.
4859 * symtab.c (iterate_over_symbols_terminated): New function.
4860 * symtab.c (iterate_over_symbols_terminated): Declare.
4861
6969f124
TT
48622019-09-10 Tom Tromey <tromey@adacore.com>
4863
4864 * ada-lang.c (ada_iterate_over_symbols): Return bool.
4865 * language.h (struct language_defn) <la_iterate_over_symbols>:
4866 Return bool.
4867 * symtab.c (iterate_over_symbols): Return bool.
4868 * symtab.h (iterate_over_symbols): Return bool.
4869
199b4314
TT
48702019-09-10 Tom Tromey <tromey@adacore.com>
4871
4872 * ada-lang.c (aux_add_nonlocal_symbols): Change type.
4873 (add_nonlocal_symbols): Update.
4874 * dwarf2read.c (dw2_map_matching_symbols): Change type.
4875 * psymtab.c (map_block, psym_map_matching_symbols): Change type.
4876 * symfile-debug.c (debug_qf_map_matching_symbols): Change type.
4877 * symfile.h (struct quick_symbol_functions) <map_matching_symbols>:
4878 Change type of "callback". Remove "data".
4879
a084a2a6
AT
4880
48812019-09-09 Ali Tamur <tamur@google.com>
4882
4883 * dwarf2read.c (comp_unit_head): Update comment.
4884 (dwarf2_dwo_name): New function declaration.
4885 (dwarf_unit_type_name): New function declaration.
4886 (read_comp_unit_head): Add support for new compilation units,
4887 DW_UT_partial, DW_UT_skeleton, DW_UT_split_compile, DW_UT_split_type.
4888 Particularly, DW_UT_skeleton and DW_UT_split_compile have dwo_id
4889 (currently named as "signature") in their header. Also clarify error
4890 messages.
4891 (lookup_dwo_id): New function. Returns the dwo id of the given
4892 compile unit.
4893 (lookup_dwo_unit): Use the new lookup_dwo_id function.
4894 (init_cutu_and_read_dies): Use the new dwarf2_dwo_name and lookup_dwo_id
4895 functions.
4896 (create_dwo_cu_reader): Use the added lookup_dwo_id function.
4897 (dwarf2_dwo_name): Get the dwo name if present.
4898 (dwarf_unit_type_name): Convert DW_UT_* types to string for diagnostic
4899 purposes.
4900
25a2915e
TT
49012019-09-09 Tom Tromey <tom@tromey.com>
4902
4903 * tui/tui-win.c (tui_all_windows_info): Use ui_out.
4904
e4df0874
PW
49052019-09-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4906
4907 * python/python.c (do_start_initialization): Make progname_copy static,
4908 to avoid a leak report.
4909
8634b462
TT
49102019-09-08 Tom Tromey <tom@tromey.com>
4911
4912 * tui/tui-wingeneral.c (box_win): Truncate long window titles.
4913
c7f839cb
SM
49142019-09-07 Simon Marchi <simon.marchi@efficios.com>
4915
4916 * dwarf2read.c (struct dw2_symtab_iterator) <block_index>:
4917 Change type to gdb::optional<block_enum>.
4918 (dw2_symtab_iter_init): Change block_index parameter type
4919 to gdb::optional<block_enum>.
4920 (dw2_lookup_symbol): Change block_index parameter
4921 type to block_enum.c
4922 (dw2_debug_names_lookup_symbol): Likewise.
4923 * psymtab.c (psym_lookup_symbol): Likewise.
4924 * symfile-debug.c (debug_qf_lookup_symbol): Likewise.
4925 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
4926 Likewise.
4927
ead0e69a
CB
49282019-09-06 Christian Biesinger <cbiesinger@google.com>
4929
4930 * defs.h (relocate_gdb_directory): Change int to bool in
4931 signature and rename flag to relocatable.
4932 * main.c (relocate_path): Likewise.
4933 (relocate_gdb_directory): Likewise.
4934
b16c44de
AM
49352019-09-06 Alan Modra <amodra@gmail.com>
4936
4937 * coffread.c (coff_symfile_read): Constify filename variable.
4938 * dbxread.c (dbx_symfile_init, coffstab_build_psymtabs),
4939 (elfstab_build_psymtabs, stabsect_build_psymtabs): Likewise.
4940 * gdb_bfd.c (gdb_bfd_close_or_warn): Likewise.
4941 * solib.c (reload_shared_libraries_1): Likewise.
4942 * symfile.c (reread_symbols): Likewise.
4943 * solib-aix.c (solib_aix_bfd_open): Add cast for xfree of filename.
4944 * solib-darwin.c (darwin_bfd_open): Likewise.
4945 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
4946
06ff036e
AB
49472019-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
4948
4949 * psymtab.c (print_partial_symbols): Handle missing domain_enum
4950 values MODULE_DOMAIN and COMMON_BLOCK_DOMAIN.
4951
4e962e74
TT
49522019-09-03 Tom Tromey <tromey@adacore.com>
4953
4954 * ada-valprint.c (ada_val_print_num): Don't recurse for range
4955 types.
4956 (has_negatives): Unbias a range type bound.
4957 * dwarf2read.c (read_subrange_type): Handle DW_AT_GNU_bias.
4958 * gdbtypes.c (operator==): Handle new field.
4959 (create_range_type): Add "bias" parameter.
4960 (create_static_range_type, resolve_dynamic_range): Update.
4961 * gdbtypes.h (struct range_bounds) <bias>: New member.
4962 (create_range_type): Add bias parameter.
4963 * printcmd.c (print_scalar_formatted): Unbias range types.
4964 * value.c (unpack_long): Unbias range types.
4965 (pack_long): Bias range types.
4966
d90b8f26
AH
49672019-09-02 Alan Hayward <alan.hayward@arm.com>
4968
4969 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Check all
4970 probe arguments.
4971
fe01123e
AH
49722019-09-02 Alan Hayward <alan.hayward@arm.com>
4973
4974 * break-catch-throw.c (fetch_probe_arguments): Use gdbarch.
4975 * dtrace-probe.c (dtrace_probe::get_argument_count): Likewise.
4976 * probe.c (probe_safe_evaluate_at_pc) (compute_probe_arg)
4977 (compile_probe_arg): Likewise.
4978 * probe.h (get_argument_count): Likewise.
4979 * solib-svr4.c (solib_event_probe_action): Likewise.
4980 * stap-probe.c (stap_probe::get_argument_count): Likewise.
4981
e661ef01
AH
49822019-09-02 Alan Hayward <alan.hayward@arm.com>
4983
4984 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Move
4985 code to here...
4986 (svr4_create_solib_event_breakpoints): ...from here.
4987
47a536d9
SDJ
49882019-08-30 Sergio Durigan Junior <sergiodj@redhat.com>
4989
4990 * nat/fork-inferior.c (trace_start_error): Remove "\nError: "
4991 suffix from warning message.
4992
d6a00eba
TT
49932019-08-30 Tom Tromey <tom@tromey.com>
4994
4995 * tui/tui-winsource.h (struct tui_source_window_base)
4996 <refresh_all>: Don't declare.
4997 * tui/tui-winsource.c (tui_source_window_base::refresh_all):
4998 Remove.
4999 * tui/tui-win.c (tui_refresh_all_win): Don't call refresh_all or
5000 tui_show_locator_content.
5001 * tui/tui-regs.h (struct tui_data_window) <refresh_all>: Don't
5002 declare.
5003 * tui/tui-regs.c (tui_data_window::refresh_all): Remove.
5004 * tui/tui-data.h (struct tui_win_info) <refresh_all>: Don't
5005 declare.
5006
55b2657b
TT
50072019-08-30 Tom Tromey <tom@tromey.com>
5008
5009 * tui/tui-io.c (tui_cont_sig): Don't call wrefresh.
5010
12a8555a
TT
50112019-08-30 Tom Tromey <tom@tromey.com>
5012
5013 * tui/tui-stack.c (_initialize_tui_stack): Move later.
5014 Remove unnecessary forward declarations.
5015
900ac242
TT
50162019-08-30 Tom Tromey <tom@tromey.com>
5017
5018 * tui/tui-stack.c (tui_locator_window::set_locator_fullname): Call
5019 rerender.
5020 (tui_update_locator_fullname, tui_show_frame_info): Don't call
5021 tui_show_locator_content.
5022
99ab33fb
TT
50232019-08-30 Tom Tromey <tom@tromey.com>
5024
5025 * tui/tui-stack.c (tui_show_locator_content): Move lower. Rewrite.
5026 (tui_locator_window::rerender): Rewrite using body of previous
5027 tui_show_locator_content.
5028
e594a5d1
TT
50292019-08-30 Tom Tromey <tom@tromey.com>
5030
5031 * tui/tui-stack.h (struct tui_locator_window) <set_locator_info,
5032 set_locator_fullname>: New methods.
5033 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
5034 Rename from tui_set_locator_fullname.
5035 (tui_locator_window::set_locator_info): Rename from
5036 tui_set_locator_info. Return bool.
5037 (tui_update_locator_fullname, tui_show_frame_info): Update.
5038
715bb467
TT
50392019-08-30 Tom Tromey <tom@tromey.com>
5040
5041 * tui/tui-layout.c (show_layout): Don't call tui_refresh_all.
5042
772f3f03
TT
50432019-08-30 Tom Tromey <tom@tromey.com>
5044
5045 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Don't
5046 call touchwin.
5047
108e13ab
TT
50482019-08-30 Tom Tromey <tom@tromey.com>
5049
5050 * tui/tui-wingeneral.c (box_win): Assume win_info and
5051 win_info->handle cannot be NULL.
5052
cdaa6eb4
TT
50532019-08-30 Tom Tromey <tom@tromey.com>
5054
5055 * tui/tui-regs.h (struct tui_data_item_window) <rerender,
5056 refresh_window>: Declare.
5057 * tui/tui-regs.c (tui_data_window::display_registers_from): Call
5058 resize.
5059 (tui_data_item_window::rerender): Rename from
5060 tui_display_register.
5061 (tui_data_item_window::refresh_window): New method.
5062 * tui/tui-layout.c (tui_gen_win_info::resize): Do nothing on
5063 no-op.
5064
89df7f90
TT
50652019-08-30 Tom Tromey <tom@tromey.com>
5066
5067 * tui/tui-regs.h (struct tui_data_window) <regs_content,
5068 regs_column_count, current_group>: Move later. Now private.
5069 <get_current_group>: New method.
5070 * tui/tui-regs.c (tui_reg_command): Update.
5071 * tui/tui-layout.c (tui_set_layout): Update.
5072
1bf2866a
TT
50732019-08-30 Tom Tromey <tom@tromey.com>
5074
5075 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
5076 (tui_data_window::rerender): Don't call
5077 check_and_display_highlight_if_needed.
5078 (tui_data_window::refresh_all): Remove call to
5079 erase_data_content.
5080
0670413d
TT
50812019-08-30 Tom Tromey <tom@tromey.com>
5082
5083 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
5084 (tui_data_window::display_registers_from)
5085 (tui_data_window::display_reg_element_at_line)
5086 (tui_data_window::display_registers_from_line): Remove checks of
5087 "empty".
5088
18bb55c7
TT
50892019-08-30 Tom Tromey <tom@tromey.com>
5090
5091 * tui/tui-regs.h (struct tui_data_window) <display_all_data>:
5092 Don't declare.
5093 * tui/tui-regs.c (tui_data_window::show_registers): Call
5094 rerender.
5095 (tui_data_window::rerender): Rename from display_all_data.
5096 (tui_data_window::rerender): Remove old implementation.
5097
1f6d2f10
TT
50982019-08-30 Tom Tromey <tom@tromey.com>
5099
5100 * tui/tui-regs.c (tui_data_window::display_all_data): Change
5101 text.
5102 * tui/tui-data.h (NO_DATA_STRING): Remove define.
5103
16d01f9c
BW
51042019-08-29 Bernhard Wodok <barto@gmx.net>
5105 Sergio Durigan Junior <sergiodj@redhat.com>
5106
5107 PR win32/24284
5108 * mingw-hdep.c (gdb_select): Handle case when 'n' is zero.
5109
d8f27c60
AB
51102019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
5111
5112 * symtab.c (search_symbols): Don't include MODULE_DOMAIN symbols
5113 when searching for types.
5114
1f20c35e
AB
51152019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
5116
5117 * f-lang.c (f_language_defn): Use f_print_typedef.
5118 * f-lang.h (f_print_typedef): Declare.
5119 * f-typeprint.c (f_print_typedef): Define.
5120
550105b7
CB
51212019-08-27 Christian Biesinger <cbiesinger@google.com>
5122
5123 * nat/linux-namespaces.c (mnsh_main): Initialize fd (to -1).
5124
4acfdd20
AB
51252019-08-27 Andrew Burgess <andrew.burgess@embecosm.com>
5126
5127 * cli/cli-utils.c (info_print_options_defs): Delete.
5128 (make_info_print_options_def_group): Delete.
5129 (extract_info_print_options): Delete.
5130 (info_print_command_completer): Delete.
5131 (info_print_args_help): Add extra parameter, and optionally
5132 include text about -n flag.
5133 * cli/cli-utils.h (struct info_print_options): Delete.
5134 (extract_info_print_options): Delete declaration.
5135 (info_print_command_completer): Delete declaration.
5136 (info_print_args_help): Add extra parameter, extend header
5137 comment.
5138 * python/python.c (gdbpy_rbreak): Pass additional parameter to
5139 search_symbols.
5140 * stack.c (struct info_print_options): New type.
5141 (info_print_options_defs): New file scoped variable.
5142 (make_info_print_options_def_group): New static function.
5143 (info_print_command_completer): New static function.
5144 (info_locals_command): Update to use new local functions.
5145 (info_args_command): Likewise.
5146 (_initialize_stack): Add extra parameter to calls to
5147 info_print_args_help.
5148 * symtab.c (search_symbols): Add extra parameter, use this to
5149 possibly excluse non-debug symbols.
5150 (symtab_symbol_info): Add extra parameter, which is passed on to
5151 search_symbols.
5152 (struct info_print_options): New type.
5153 (info_print_options_defs): New file scoped variable.
5154 (make_info_print_options_def_group): New static function.
5155 (info_print_command_completer): New static function.
5156 (info_variables_command): Update to use local functions, and pass
5157 extra parameter through to symtab_symbol_info.
5158 (info_functions_command): Likewise.
5159 (info_types_command): Pass additional argument through to
5160 symtab_symbol_info.
5161 (rbreak_command): Pass extra argument to search_symbols.
5162 (_initialize_symtab): Add extra arguments for calls to
5163 info_print_args_help, and update help text for 'info variables',
5164 'whereis', and 'info functions' commands.
5165 * symtab.h (search_symbols): Add extra argument to declaration.
5166 * NEWS: Mention new flags.
5167
9aa55206
CB
51682019-08-26 Christian Biesinger <cbiesinger@google.com>
5169
5170 * symtab.c (lookup_static_symbol): Call the new function (and move
5171 it down to be next to lookup_global_symbol).
5172 (struct global_sym_lookup_data): Add block_enum member and rename to...
5173 (struct global_or_static_sym_lookup_data): ...this.
5174 (lookup_symbol_global_iterator_cb): Pass block_index instead of
5175 GLOBAL_BLOCK to lookup_symbol_in_objfile and rename to...
5176 (lookup_symbol_global_or_static_iterator_cb): ...this.
5177 (lookup_global_or_static_symbol): New function.
5178 (lookup_global_symbol): Call new function.
5179
5c31b358
TV
51802019-08-26 Tom de Vries <tdevries@suse.de>
5181
5182 PR c++/24852
5183 * break-catch-throw.c (fetch_probe_arguments): Improve error mesage
5184 when pc_probe.prob == NULL.
5185
23c13d42
SM
51862019-08-25 Simon Marchi <simon.marchi@efficios.com>
5187
5188 * dwarf2read.c (dw2_debug_names_iterator::next): Rename local
5189 variable symbol_linkage to symbol_linkage_.
5190
beadd3e8
SM
51912019-08-25 Simon Marchi <simon.marchi@efficios.com>
5192
5193 * dwarf2read.c (dw2_debug_names_iterator::next): Use enum to
5194 represent whether the symbol is static, dynamic, or we don't
5195 know.
5196
e3ec872f
YS
51972019-08-25 Yoshinori Sato <ysato@users.sourceforge.jp>
5198
5199 * gdb/rx-tdep.c (rx_register_names): New.
5200 (rx_register_name): Delete.
5201 (rx_psw_type): Delete.
5202 (rx_fpsw_type): Delete.
5203 (rx_register_type): Delete.
5204 (rx_gdbarch_init): Convert target-descriptions.
5205 (_initialize_rx_tdep): Add initialize_tdesc_rx.
5206 * gdb/features/Makefile: Add rx.xml.
5207 * gdb/features/rx.xml: New.
5208 * gdb/features/rx.c: Generated.
5209 * gdb/NEWS: Mention target description support.
5210
d0509ba4
CB
52112019-08-22 Christian Biesinger <cbiesinger@google.com>
5212
5213 * symtab.c (symbol_cache_lookup): Always initialize *bsc_ptr and
5214 *slot_ptr.
5215
2d41fa11
SDJ
52162019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
5217
5218 * configure.ac: Don't check for 'dlfcn.h' (moved to
5219 gdbsupport/common.m4).
5220 * Makefile.in (COMMON_SFILES): Move 'gdb-dlfcn.c' to
5221 'gdbsupport/'.
5222 (HFILES_NO_SRCDIR): Likewise, for 'gdb-dlfcn.h'.
5223 * compile/compile-c-support.c: Include
5224 'gdbsupport/gdb-dlfcn.h'.
5225 * gdbsupport/common.m4: Check for 'dlfcn.h'.
5226 * gdb-dlfcn.c: Move to...
5227 * gdbsupport/gdb-dlfcn.c: ... here.
5228 * gdb-dlfcn.h: Move to...
5229 * gdbsupport/gdb-dlfcn.h: ... here.
5230
de8af808
SL
52312019-08-23 Sandra Loosemore <sandra@codesourcery.com>
5232
5233 * nios2-tdep.c (struct reg_value): Improve comments. Make
5234 the offset field signed.
5235
27204489
CB
52362019-08-22 Christian Biesinger <cbiesinger@google.com>
5237
5238 * python/lib/gdb/__init__.py (_execute_file): New function.
5239 * python/python.c (python_run_simple_file): Call gdb._execute_file
5240 on Windows.
5241
43771869
AB
52422019-08-22 Andrew Burgess <andrew.burgess@embecosm.com>
5243
5244 * f-exp.y (yylex): Remove is_a_field_of_this local variable, and
5245 all uses as this was never set to anything but a zero value.
5246
26c957f1
PA
52472019-08-21 Bogdan Harjoc <harjoc@gmail.com>
5248
5249 * cli/cli-cmds.c (with_command_1): Error out if no arguments.
5250
c07aae6e
CB
52512019-08-21 Christian Biesinger <cbiesinger@google.com>
5252
5253 * tui/tui-data.h (tui_gen_win_info): Add an =default
5254 move constructor, required by some GCC versions.
5255
3960cb7a
JF
52562019-08-21 Jinke Fan <fanjinke51@yeah.net>
5257
5258 * go32-nat.c (go32_sysinfo): Add hygon_p.
5259
04c72a68
TT
52602019-08-20 Tom Tromey <tom@tromey.com>
5261
5262 * tui/tui-regs.h (struct tui_data_window) <last_regs_line_no,
5263 line_from_reg_element_no, first_reg_element_no_inline,
5264 display_all_data, delete_data_content_windows,
5265 erase_data_content>: Now private.
5266
072272ce
TT
52672019-08-20 Tom Tromey <tom@tromey.com>
5268
5269 * tui/tui-wingeneral.c (box_win): Change type of highlight_flag.
5270 (tui_unhighlight_win, tui_highlight_win)
5271 (tui_win_info::make_window): Update.
5272 * tui/tui-data.h (HILITE, NO_HILITE): Remove.
5273
973961bd
TT
52742019-08-20 Tom Tromey <tom@tromey.com>
5275
5276 * tui/tui-data.h (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
5277 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
5278 (MAX_PID_WIDTH): Move to tui-stack.c.
5279 * tui/tui-stack.c (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
5280 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
5281 (MAX_PID_WIDTH): Move from tui-data.h.
5282
ab0e1f1a
TT
52832019-08-20 Tom Tromey <tom@tromey.com>
5284
5285 * tui/tui-wingeneral.h (tui_make_window): Don't declare.
5286 * tui/tui-wingeneral.c (box_win): Change type of win_info.
5287 (box_win): Update.
5288 (tui_gen_win_info::make_window): Rename from tui_make_window.
5289 (tui_win_info::make_window): New method.
5290 (tui_gen_win_info::make_visible): Update.
5291 * tui/tui-source.c (tui_source_window::set_contents): Update.
5292 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
5293 (tui_data_window::display_registers_from): Update.
5294 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
5295 * tui/tui-data.h (struct tui_gen_win_info) <make_window>:
5296 Declare.
5297 <can_box>: Remove.
5298 <title>: Remove.
5299 (struct tui_win_info) <make_window>: Declare.
5300 <can_box>: Now virtual.
5301 <title>: New member.
5302 * tui/tui-data.c (~tui_gen_win_info): Don't free title.
5303 * tui/tui-command.c (tui_cmd_window::resize): Update.
5304
100c2bf3
TT
53052019-08-20 Tom Tromey <tom@tromey.com>
5306
5307 * tui/tui-regs.h (struct tui_data_window) <display_regs>: Remove.
5308 * tui/tui-regs.c (tui_data_window::show_registers): Update.
5309 (tui_data_window::check_register_values): Update.
5310
fa4dc567
TT
53112019-08-20 Tom Tromey <tom@tromey.com>
5312
5313 * tui/tui-regs.h (struct tui_data_window): Use
5314 DISABLE_COPY_AND_ASSIGN.
5315 <regs_content>: Change type, removing unique_ptr.
5316 <tui_data_window>: Add move constructor.
5317 * tui/tui-regs.c (tui_data_window::show_registers)
5318 (tui_data_window::show_register_group)
5319 (tui_data_window::display_registers_from)
5320 (tui_data_window::display_registers_from)
5321 (tui_data_window::first_data_item_displayed)
5322 (tui_data_window::delete_data_content_windows)
5323 (tui_data_window::rerender, tui_data_window::refresh_window)
5324 (tui_data_window::check_register_values): Update.
5325
ca02d7c8
TT
53262019-08-20 Tom Tromey <tom@tromey.com>
5327
5328 * tui/tui-regs.h (struct tui_data_window) <show_registers,
5329 show_register_group>: Declare.
5330 (tui_show_register_group): Don't declare.
5331 * tui/tui-regs.c (tui_data_window::show_registers): Rename from
5332 tui_show_registers.
5333 (tui_data_window::show_register_group): Rename from
5334 tui_show_register_group.
5335 (tui_data_window::check_register_values, tui_reg_command):
5336 Update.
5337 * tui/tui-layout.c (tui_set_layout): Update.
5338
63356bfd
TT
53392019-08-20 Tom Tromey <tom@tromey.com>
5340
5341 * tui/tui-regs.h (struct tui_data_window) <check_register_values>:
5342 Declare.
5343 (tui_check_register_values): Don't declare.
5344 * tui/tui-regs.c (tui_data_window::check_register_values): Rename
5345 from tui_check_register_values.
5346 * tui/tui-hooks.c (tui_register_changed): Update.
5347
42cc14a7
TT
53482019-08-20 Tom Tromey <tom@tromey.com>
5349
5350 * tui/tui-regs.c (tui_reg_layout): Move later.
5351 (tui_show_registers): Don't enable TUI mode or change layout.
5352
b9ad3686
TT
53532019-08-20 Tom Tromey <tom@tromey.com>
5354
5355 * tui/tui-regs.h (struct tui_data_item_window)
5356 <~tui_data_item_window>: Remove.
5357 <content>: Now a unique_xmalloc_ptr.
5358 * tui/tui-regs.c (tui_register_format): Return a
5359 unique_xmalloc_ptr.
5360 (tui_get_register): Update.
5361 (~tui_data_item_window): Remove.
5362 (tui_data_window::display_registers_from, tui_display_register):
5363 Update.
5364 * tui/tui-io.h (tui_expand_tabs): Update.
5365 * tui/tui-io.c (tui_expand_tabs): Return a unique_xmalloc_ptr.
5366 Remove "col" parameter.
5367
8e114aab
TT
53682019-08-20 Tom Tromey <tom@tromey.com>
5369
5370 * tui/tui-regs.h (struct tui_data_item_window) <value>: Remove
5371 field.
5372 * tui/tui-regs.c (~tui_data_item_window): Update.
5373
1a4f81dd
TT
53742019-08-20 Tom Tromey <tom@tromey.com>
5375
5376 * tui/tui-regs.c (tui_register_format, tui_get_register): Move
5377 earlier.
5378
0f8d8876
TT
53792019-08-20 Tom Tromey <tom@tromey.com>
5380
5381 * tui/tui-regs.c (tui_reg_command): Remove NULL check.
5382
605dc2c2
TT
53832019-08-20 Tom Tromey <tom@tromey.com>
5384
5385 * tui/tui-source.h (struct tui_source_window): Update.
5386 * tui/tui-regs.c (tui_show_registers): Update.
5387 * tui/tui-disasm.h (struct tui_disasm_window): Update.
5388 * tui/tui-data.h (NO_SRC_STRING, NO_DISASSEM_STRING)
5389 (NO_REGS_STRING): Remove defines.
5390
aedbe3bb
CM
53912019-08-20 Conrad Meyer <cem@FreeBSD.org>
5392
5393 * remote.c (remote_target::remote_btrace_maybe_reopen): Avoid
5394 unnecessary thread walk if remote doesn't support the packet.
5395
7ce8f214
TT
53962019-08-19 Tom Tromey <tromey@adacore.com>
5397
5398 * python/py-value.c (value_has_field): Fix indentation.
5399
f21c2bd7
TT
54002019-08-19 Tom Tromey <tromey@adacore.com>
5401
5402 * printcmd.c (do_one_display, info_display_command): Update.
5403 * block.h (contained_in): Return bool. Add allow_nested
5404 parameter.
5405 * block.c (contained_in): Return bool. Add allow_nested
5406 parameter.
5407
d806ea2d
TT
54082019-08-19 Tom Tromey <tom@tromey.com>
5409
5410 * configure: Rebuild.
5411 * configure.ac: Disallow the combination of -static-libstdc++ and
5412 source highlight.
5413 * source-cache.c (get_language_name): Handle rust.
5414 (source_cache::get_source_lines): Ignore highlighting exceptions.
5415
398fdd60
TT
54162019-08-16 Tom Tromey <tom@tromey.com>
5417
5418 * tui/tui.h (enum tui_win_type) <EXEC_INFO_WIN>: Remove.
5419 * tui/tui-winsource.h (struct tui_exec_info_window): Remove.
5420 (struct tui_source_window_base) <make_visible, refresh_window,
5421 resize>: Remove methods.
5422 <execution_info>: Remove field.
5423 * tui/tui-winsource.c (tui_source_window_base::do_erase_source_content)
5424 (tui_show_source_line, tui_source_window_base)
5425 (~tui_source_window_base): Update.
5426 (tui_source_window_base::resize)
5427 (tui_source_window_base::make_visible)
5428 (tui_source_window_base::refresh_window): Remove.
5429 (tui_source_window_base::update_exec_info): Update.
5430 * tui/tui-source.c (tui_source_window::set_contents): Update.
5431 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
5432
e699d331
TT
54332019-08-16 Tom Tromey <tom@tromey.com>
5434
5435 * tui/tui-hooks.c (tui_remove_hooks): Don't set
5436 deprecated_query_hook.
5437
bb01dbfc
TT
54382019-08-16 Tom Tromey <tom@tromey.com>
5439
5440 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
5441 (tui_update_source_windows_with_line): Update.
5442 * tui/tui-source.h (struct tui_source_window)
5443 <show_symtab_source>: Declare.
5444 (tui_show_symtab_source): Don't declare.
5445 * tui/tui-source.c (tui_show_symtab_source): Rename from
5446 tui_show_symtab_source.
5447
81c82c4b
TT
54482019-08-16 Tom Tromey <tom@tromey.com>
5449
5450 * tui/tui-winsource.h (struct tui_source_window_base)
5451 <set_contents>: Declare.
5452 * tui/tui-winsource.c
5453 (tui_source_window_base::update_source_window_as_is): Update.
5454 * tui/tui-source.h (struct tui_source_window) <set_contents>:
5455 Declare.
5456 (tui_set_source_content): Don't declare.
5457 * tui/tui-source.c (tui_source_window::set_contents): Rename from
5458 tui_set_source_content.
5459 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
5460 Declare.
5461 (tui_set_disassem_content): Don't declare.
5462 * tui/tui-disasm.c (tui_disasm_window::set_contents): Rename from
5463 tui_set_disassem_content.
5464
2ddaf614
TT
54652019-08-16 Tom Tromey <tom@tromey.com>
5466
5467 * tui/tui-winsource.h (struct tui_source_window_base)
5468 <update_breakpoint_info>: Declare.
5469 (tui_update_breakpoint_info): Don't declare.
5470 * tui/tui-winsource.c (tui_source_window_base::update_source_window_as_is)
5471 (tui_update_all_breakpoint_info): Update.
5472 (tui_source_window_base::update_breakpoint_info): Rename from
5473 tui_update_breakpoint_info.
5474 (tui_source_window_base::update_exec_info): Update.
5475
017f9828
TT
54762019-08-16 Tom Tromey <tom@tromey.com>
5477
5478 * tui/tui-winsource.h (struct tui_source_window_base)
5479 <update_source_window>: Declare.
5480 (tui_update_source_window): Don't declare.
5481 * tui/tui-winsource.c
5482 (tui_source_window_base::update_source_window): Rename from
5483 tui_update_source_window.
5484 (tui_source_window_base::rerender): Update.
5485 * tui/tui-source.c (tui_source_window::maybe_update): Update.
5486 * tui/tui-disasm.c (tui_show_disassem)
5487 (tui_show_disassem_and_update_source)
5488 (tui_disasm_window::maybe_update): Update.
5489
ed8358e9
TT
54902019-08-16 Tom Tromey <tom@tromey.com>
5491
5492 * tui/tui-winsource.h (struct tui_source_window_base)
5493 <update_source_window_as_is>: Declare.
5494 (tui_update_source_window_as_is): Don't declare.
5495 * tui/tui-winsource.c (tui_update_source_window): Update
5496 (tui_source_window_base::update_source_window_as_is): Rename from
5497 tui_update_source_window_as_is.
5498 (tui_source_window_base::refill): Update.
5499 * tui/tui-source.c (tui_show_symtab_source): Update.
5500 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical):
5501 Update.
5502
20149b6b
TT
55032019-08-16 Tom Tromey <tom@tromey.com>
5504
5505 * tui/tui-winsource.h (tui_update_source_window)
5506 (tui_update_source_window_as_is): Remove "noerror" parameter.
5507 * tui/tui-winsource.c (tui_update_source_window)
5508 (tui_update_source_window_as_is): Remove "noerror" parameter.
5509 (tui_update_source_windows_with_addr)
5510 (tui_update_source_windows_with_line)
5511 (tui_source_window_base::rerender)
5512 (tui_source_window_base::refill): Update.
5513 * tui/tui-source.h (tui_set_source_content)
5514 (tui_show_symtab_source): Remove "noerror" parameter.
5515 * tui/tui-source.c (tui_set_source_content): Remove "noerror"
5516 parameter.
5517 (tui_show_symtab_source): Likewise.
5518 (tui_source_window::maybe_update): Update.
5519 * tui/tui-disasm.c (tui_show_disassem)
5520 (tui_show_disassem_and_update_source)
5521 (tui_disasm_window::do_scroll_vertical)
5522 (tui_disasm_window::maybe_update): Update.
5523
2d83e710
TT
55242019-08-16 Tom Tromey <tom@tromey.com>
5525
5526 * tui/tui.c (tui_is_window_visible): Update.
5527 * tui/tui-wingeneral.c (tui_make_window)
5528 (tui_gen_win_info::make_visible, tui_refresh_all): Update.
5529 * tui/tui-win.c (window_name_completer, tui_refresh_all_win)
5530 (tui_set_focus_command, tui_all_windows_info, update_tab_width)
5531 (tui_set_win_height_command, parse_scrolling_args): Update.
5532 * tui/tui-source.c (tui_source_window::style_changed): Update.
5533 * tui/tui-regs.c (tui_show_registers)
5534 (tui_data_window::first_data_item_displayed)
5535 (tui_data_window::delete_data_content_windows)
5536 (tui_check_register_values, tui_reg_command): Update.
5537 * tui/tui-disasm.c (tui_show_disassem): Update.
5538 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: New
5539 method.
5540 <is_visible>: Remove field.
5541 * tui/tui-data.c (tui_next_win, tui_prev_win)
5542 (tui_delete_invisible_windows): Update.
5543
d4ab829a
TT
55442019-08-16 Tom Tromey <tom@tromey.com>
5545
5546 * tui/tui-winsource.h (struct tui_source_window_base)
5547 <m_has_locator>: Remove.
5548 * tui/tui-layout.c (show_source_disasm_command, show_data)
5549 (show_source_or_disasm_and_command): Update.
5550
aa7ca1bb
AH
55512019-08-16 Alan Hayward <alan.hayward@arm.com>
5552
5553 * NEWS (Other MI changes): New subsection.
5554 * aarch64-tdep.c (aarch64_get_pc_address_flags): New function.
5555 (aarch64_gdbarch_init): Add aarch64_get_pc_address_flags.
5556 * arch-utils.c (default_get_pc_address_flags): New function.
5557 * arch-utils.h (default_get_pc_address_flags): New declaration.
5558 * gdbarch.sh: Add get_pc_address_flags.
5559 * gdbarch.c: Regenerate.
5560 * gdbarch.h: Likewise.
5561 * stack.c (print_pc): New function.
5562 (print_frame_info) (print_frame): Call print_pc.
5563
6eac171f
TV
55642019-08-16 Tom de Vries <tdevries@suse.de>
5565
5566 * maint.c (maintenance_info_sections): Also handle !ALLOBJ case using
5567 print_objfile_section_info.
5568
3df505f6
TT
55692019-08-15 Tom Tromey <tom@tromey.com>
5570
5571 * tui/tui-io.c (tui_puts_internal): Check TUI_CMD_WIN before
5572 calling update_cmdwin_start_line.
5573 * tui/tui-winsource.h (struct tui_source_window_base)
5574 <do_make_visible_with_new_height, set_new_height>: Don't declare.
5575 <rerender>: Declare.
5576 * tui/tui-winsource.c (tui_source_window_base::update_tab_width):
5577 Call rerender.
5578 (tui_source_window_base::set_new_height): Remove.
5579 (tui_source_window_base::rerender): Rename from
5580 do_make_visible_with_new_height.
5581 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use
5582 resize method.
5583 (tui_win_info::make_invisible_and_set_new_height)
5584 (tui_win_info::make_visible_with_new_height): Remove.
5585 * tui/tui-stack.h (struct tui_locator_window) <rerender>:
5586 Declare.
5587 * tui/tui-stack.c (tui_locator_window::rerender): New method.
5588 * tui/tui-regs.h (struct tui_data_window) <set_new_height,
5589 do_make_visible_with_new_height>: Don't declare.
5590 <rerender>: Declare.
5591 * tui/tui-regs.c (tui_data_window::rerender): Rename from
5592 set_new_height.
5593 (tui_data_window::do_make_visible_with_new_height): Remove.
5594 * tui/tui-layout.c (show_source_disasm_command, show_data): Don't
5595 call tui_show_locator_content.
5596 (tui_gen_win_info::resize): Call rerender.
5597 (show_source_or_disasm_and_command): Don't call
5598 tui_show_locator_content.
5599 * tui/tui-data.h (struct tui_gen_win_info) <rerender>: New
5600 method.
5601 (struct tui_win_info) <rerender>: Declare.
5602 <set_new_height, make_invisible_and_set_new_height,
5603 make_visible_with_new_height>: Don't declare.
5604 * tui/tui-data.c (tui_win_list::rerender): New method.
5605 * tui/tui-command.h (struct tui_cmd_window)
5606 <do_make_visible_with_new_height>: Don't declare.
5607 * tui/tui-command.c
5608 (tui_cmd_window::do_make_visible_with_new_height): Remove.
5609
272560b5
TT
56102019-08-15 Tom Tromey <tromey@adacore.com>
5611
5612 * ada-exp.y (convert_char_literal): Handle "Q%c" encoding.
5613 * ada-lang.c (ada_enum_name): Likewise.
5614
08235187
CB
56152019-08-15 Christian Biesinger <cbiesinger@google.com>
5616
5617 * python/lib/gdb/__init__.py (GdbOutputFile): Rename to have a
5618 leading underscore.
5619 (GdbOutputErrorFile): Likewise.
5620 (global scope): Adjust constructor calls to GdbOutput{,Error}File
5621 accordingly.
5622 (execute_unwinders): Rename to have a leading underscore.
5623 (auto_load_packages): Likewise.
5624 (global scope): Adjust call to auto_load_packages accordingly.
5625 (GdbSetPythonDirectory): Likewise.
5626 * python/py-unwind.c (pyuw_sniffer): Call _execute_unwinders
5627 instead of execute_unwinders.
5628
db502012
TT
56292019-08-15 Tom Tromey <tom@tromey.com>
5630
5631 * tui/tui-layout.c (show_layout, show_source_disasm_command)
5632 (show_data): Don't change window visibility.
5633 (tui_gen_win_info::resize): Remove special case for command
5634 window. Use wresize, when available.
5635 (show_source_or_disasm_and_command): Don't change window
5636 visibility.
5637 * tui/tui-command.h (struct tui_cmd_window) <resize>: Declare.
5638 <make_visible>: New method.
5639 * tui/tui-command.c (tui_cmd_window::resize): New method.
5640
3891b65e
TT
56412019-08-15 Tom Tromey <tom@tromey.com>
5642
5643 * tui/tui-winsource.h (struct tui_source_window_iterator): New.
5644 (struct tui_source_windows): New.
5645 * tui/tui-winsource.c (tui_display_main): Update.
5646 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
5647 (new_height_ok, parse_scrolling_args): Update.
5648 * tui/tui-layout.c (show_layout, show_data): Update.
5649 * tui/tui-data.h (tui_source_windows, tui_clear_source_windows)
5650 (tui_add_to_source_windows): Don't declare.
5651 * tui/tui-data.c (source_windows, tui_source_windows)
5652 (tui_clear_source_windows, tui_add_to_source_windows): Remove.
5653
ee556432
TT
56542019-08-15 Tom Tromey <tom@tromey.com>
5655
5656 * tui/tui-winsource.h (struct tui_source_window_base) <resize>:
5657 Rename from reset.
5658 * tui/tui-winsource.c (tui_source_window_base::resize): Rename.
5659 * tui/tui-layout.c (show_source_disasm_command, show_data):
5660 Update.
5661 (tui_gen_win_info::resize): Rename.
5662 (show_source_or_disasm_and_command): Update.
5663 * tui/tui-data.h (struct tui_gen_win_info) <resize>: Rename from
5664 reset.
5665
46f438e3
TT
56662019-08-15 Tom Tromey <tom@tromey.com>
5667
5668 * tui/tui-stack.c (tui_initialize_static_data): Remove.
5669 * tui/tui-interp.c (tui_interp::init): Don't call
5670 tui_initialize_static_data.
5671 * tui/tui-data.h (tui_initialize_static_data): Don't declare.
5672
f4ce562c
TT
56732019-08-15 Tom Tromey <tom@tromey.com>
5674
5675 * tui/tui-layout.c (tui_default_win_viewport_height): Don't
5676 examine tui_win_list.
5677
c398c3d0
TT
56782019-08-15 Tom Tromey <tom@tromey.com>
5679
5680 * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
5681 * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
5682 tui_clear_source_content.
5683 (tui_clear_source_content): Remove.
5684 (tui_source_window_base::do_erase_source_content): Hoist call to
5685 content.clear().
5686 * tui/tui-stack.c (tui_show_frame_info): Don't call
5687 tui_clear_source_content.
5688
e25d2004
TT
56892019-08-15 Tom Tromey <tom@tromey.com>
5690
5691 * tui/tui-winsource.h (struct tui_source_window_base)
5692 <do_erase_source_content>: New method.
5693 <erase_source_content>: New method.
5694 (tui_erase_source_content): Don't declare.
5695 * tui/tui-winsource.c (tui_clear_source_content): Update.
5696 (tui_source_window_base::do_erase_source_content): Rename from
5697 tui_erase_source_content.
5698 (tui_source_window_base::show_source_content): Update.
5699 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
5700 * tui/tui-source.h (struct tui_source_window)
5701 <erase_source_content>: New method.
5702 * tui/tui-disasm.h (struct tui_disasm_window)
5703 <erase_source_content>: New method.
5704
002f15c2
TT
57052019-08-15 Tom Tromey <tom@tromey.com>
5706
5707 * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
5708 (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
5709 constructor.
5710 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
5711 * tui/tui-source.c (tui_set_source_content): Update.
5712 * tui/tui-disasm.c (tui_set_disassem_content): Update.
5713
c9033fe8
TT
57142019-08-15 Tom Tromey <tom@tromey.com>
5715
5716 * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
5717 * tui/tui-winsource.c (tui_line_is_displayed): Move to
5718 tui-source.c.
5719 * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
5720 Declare.
5721 * tui/tui-source.c (tui_source_window::line_is_displayed): New
5722 method.
5723 (tui_source_window::maybe_update): Update.
5724
088f37dd
TT
57252019-08-15 Tom Tromey <tom@tromey.com>
5726
5727 * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
5728 * tui/tui-winsource.c (tui_addr_is_displayed): Move to
5729 tui-disasm.c.
5730 * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
5731 Declare.
5732 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
5733 method.
5734 (tui_disasm_window::maybe_update): Update.
5735
a54700c6
TT
57362019-08-15 Tom Tromey <tom@tromey.com>
5737
5738 * tui/tui-winsource.h (struct tui_source_window_base)
5739 <maybe_update>: Declare.
5740 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
5741 method.
5742 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
5743 Declare.
5744 * tui/tui-source.c (tui_source_window::maybe_update): New method.
5745 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
5746 Declare.
5747 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
5748
e2a678a5
TT
57492019-08-15 Tom Tromey <tom@tromey.com>
5750
5751 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
5752
f2dda477
TT
57532019-08-15 Tom Tromey <tom@tromey.com>
5754
5755 * tui/tui-wingeneral.c: Include tui-stack.h.
5756 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
5757 (struct tui_locator_window): Move from tui-data.h.
5758 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
5759 (tui_initialize_static_data): Move from tui-data.c.
5760 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
5761 (struct tui_locator_window): Move to tui-stack.c.
5762 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
5763 (tui_initialize_static_data): Move to tui-stack.c.
5764
ed4a1084
TT
57652019-08-15 Tom Tromey <tom@tromey.com>
5766
5767 * tui/tui-layout.c (show_source_disasm_command)
5768 (show_source_or_disasm_and_command): Use make_visible method, not
5769 tui_make_window.
5770 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
5771 Remove.
5772
65962b20
TT
57732019-08-15 Tom Tromey <tom@tromey.com>
5774
5775 * tui/tui-wingeneral.h (tui_make_window): Update.
5776 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
5777 parameter.
5778 (tui_gen_win_info::make_visible): Update.
5779 * tui/tui-regs.c (tui_data_window::display_registers_from):
5780 Update.
5781 * tui/tui-layout.c (show_source_disasm_command)
5782 (show_source_or_disasm_and_command): Update.
5783 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
5784 (enum tui_box): Remove.
5785 (struct tui_win_info) <can_box>: New method.
5786 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
5787 method.
5788
2208ee91
TV
57892019-08-15 Tom de Vries <tdevries@suse.de>
5790
5791 * linux-nat-trad.c: Include gdbarch.h.
5792
75faf5c4
AH
57932019-08-14 Alan Hayward <alan.hayward@arm.com>
5794
5795 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
5796 register sizes.
5797
b1c896b3
TT
57982019-08-14 Tom Tromey <tromey@adacore.com>
5799
5800 * darwin-nat.c: Include gdbarch.h.
5801 * darwin-nat-info.c: Include gdbarch.h.
5802
6405cd73
TT
58032019-08-13 Tom Tromey <tom@tromey.com>
5804
5805 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
5806 Remove.
5807 * tui/tui-data.c (tui_initialize_static_data): Update.
5808
5216580d
TT
58092019-08-13 Tom Tromey <tom@tromey.com>
5810
5811 * tui/tui-winsource.h (struct tui_exec_info_window)
5812 <~tui_exec_info_window, maybe_allocate_content, get_content,
5813 m_content>: Remove.
5814 (struct tui_source_window_base) <set_exec_info_content,
5815 show_exec_info_content>: Don't declare.
5816 * tui/tui-winsource.c
5817 (tui_exec_info_window::maybe_allocate_content): Remove.
5818 (tui_source_window_base::update_exec_info): Rename from
5819 set_exec_info_content.
5820 (tui_source_window_base::show_exec_info_content)
5821 (tui_source_window_base::update_exec_info): Remove.
5822
93858ad3
TT
58232019-08-13 Tom Tromey <tom@tromey.com>
5824
5825 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
5826 declare.
5827 * tui/tui-winsource.c (tui_update_source_window_as_is)
5828 (tui_update_source_windows_with_addr, tui_erase_source_content):
5829 Update.
5830 (tui_clear_exec_info_content): Remove.
5831
e321e7ce
TT
58322019-08-13 Tom Tromey <tom@tromey.com>
5833
5834 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
5835 declare.
5836 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
5837 call tui_erase_exec_info_content.
5838 (tui_clear_exec_info_content): Rename from
5839 tui_erase_exec_info_content.
5840 (tui_clear_exec_info_content): Delete.
5841
8270ac62
TT
58422019-08-13 Tom Tromey <tom@tromey.com>
5843
5844 * tui/tui-winsource.h (struct tui_source_window_base)
5845 <show_exec_info_content>: Declare.
5846 (tui_show_exec_info_content): Don't declare.
5847 * tui/tui-winsource.c
5848 (tui_source_window_base::show_exec_info_content): Rename from
5849 tui_show_exec_info_content.
5850 (tui_source_window_base::update_exec_info): Update.
5851
7b56485d
TT
58522019-08-13 Tom Tromey <tom@tromey.com>
5853
5854 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
5855 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
5856 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
5857 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
5858 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
5859 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
5860 ... here.
5861
7ba913dc
TT
58622019-08-13 Tom Tromey <tom@tromey.com>
5863
5864 * tui/tui-winsource.h (struct tui_source_window_base)
5865 <update_exec_info>: Declare.
5866 (tui_update_exec_info): Don't declare.
5867 * tui/tui-winsource.c (tui_update_source_window_as_is)
5868 (tui_source_window_base::refresh_all)
5869 (tui_update_all_breakpoint_info): Update.
5870 (tui_source_window_base::update_exec_info): Rename from
5871 tui_update_exec_info.
5872 * tui/tui-stack.c (tui_show_frame_info): Update.
5873
37a4a131
TT
58742019-08-13 Tom Tromey <tom@tromey.com>
5875
5876 * tui/tui-winsource.h (struct tui_source_window_base)
5877 <set_exec_info_content>: Declare.
5878 (tui_set_exec_info_content): Don't declare.
5879 * tui/tui-winsource.c
5880 (tui_source_window_base::set_exec_info_content): Rename from
5881 tui_set_exec_info_content.
5882 (tui_update_exec_info): Update.
5883
0bd27e07
TT
58842019-08-13 Tom Tromey <tom@tromey.com>
5885
5886 * tui/tui-winsource.h (struct tui_source_window_base)
5887 <show_source_content>: Declare.
5888 (tui_show_source_content): Don't declare.
5889 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
5890 (tui_source_window_base::show_source_content): Rename from
5891 tui_show_source_content.
5892 (tui_source_window_base::refresh_all): Update.
5893 * tui/tui-layout.c (show_source_disasm_command)
5894 (show_source_or_disasm_and_command): Update.
5895
b4ef5aeb
TT
58962019-08-13 Tom Tromey <tom@tromey.com>
5897
5898 * tui/tui-winsource.c (tui_erase_source_content)
5899 (tui_show_source_content, tui_source_window_base::refresh_all):
5900 Update.
5901 * tui/tui-wingeneral.h
5902 (tui_check_and_display_highlight_if_needed): Don't declare.
5903 * tui/tui-wingeneral.c
5904 (tui_win_info::check_and_display_highlight_if_needed): Rename from
5905 check_and_display_highlight_if_needed.
5906 * tui/tui-win.c (tui_rehighlight_all)
5907 (tui_win_info::make_visible_with_new_height): Update.
5908 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
5909 (tui_data_window::erase_data_content)
5910 (tui_data_window::display_all_data): Update.
5911 * tui/tui-data.h (struct tui_win_info)
5912 <check_and_display_highlight_if_needed>: Declare.
5913
fede5273
TT
59142019-08-13 Tom Tromey <tom@tromey.com>
5915
5916 * tui/tui-win.c (tui_resize_all): Call
5917 tui_delete_invisible_windows.
5918 * tui/tui-layout.c (show_layout): Call
5919 tui_delete_invisible_windows.
5920 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
5921 * tui/tui-data.c (tui_delete_invisible_windows): New function.
5922
22c3f490
TT
59232019-08-13 Tom Tromey <tom@tromey.com>
5924
5925 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
5926 tui_add_win_to_layout.
5927
16cb7910
TT
59282019-08-13 Tom Tromey <tom@tromey.com>
5929
5930 * tui/tui-layout.h (tui_default_win_height): Don't declare.
5931 * tui/tui-layout.c (tui_default_win_height): Now static.
5932
cc0c3ffb
TT
59332019-08-13 Tom Tromey <tom@tromey.com>
5934
5935 * tui/tui-layout.c (show_layout): Unify all layout cases into a
5936 single switch.
5937 (show_source_disasm_command, show_source_or_disasm_and_command):
5938 Don't check current layout.
5939
3f3ffe54
TT
59402019-08-13 Tom Tromey <tom@tromey.com>
5941
5942 * tui/tui-wingeneral.c (make_all_visible): Remove.
5943 (tui_make_all_invisible): Simplify.
5944 * tui/tui-layout.c (tui_make_all_invisible): Move from
5945 tui-wingeneral.c; simplify.
5946 (show_layout): Hoist call to tui_make_all_invisible.
5947 (show_data): Don't call tui_make_all_invisible.
5948
69258091
TT
59492019-08-13 Tom Tromey <tom@tromey.com>
5950
5951 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
5952 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
5953
62cf57fe
TT
59542019-08-13 Tom Tromey <tom@tromey.com>
5955
5956 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
5957 tui-data.c.
5958 (show_source_disasm_command, show_data)
5959 (show_source_or_disasm_and_command): Don't use
5960 tui_set_current_layout_to.
5961 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
5962 * tui/tui-data.c (current_layout, tui_current_layout): Move to
5963 tui-layout.c.
5964 (tui_set_current_layout_to): Remove.
5965
2afade5d
TT
59662019-08-13 Tom Tromey <tom@tromey.com>
5967
5968 * tui/tui-layout.c (tui_set_layout): Update.
5969 * tui/tui-data.h (struct tui_layout_def): Remove.
5970 (tui_layout_def): Don't declare.
5971 * tui/tui-data.c (layout_def): Remove.
5972 (tui_layout_def): Remove.
5973
a3504e96
TT
59742019-08-13 Tom Tromey <tom@tromey.com>
5975
5976 * tui/tui-winsource.h (struct tui_source_window_base)
5977 <clear_detail>: No longer "override".
5978 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
5979 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
5980 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
5981 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
5982 Remove.
5983 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
5984
29c92911
TT
59852019-08-13 Tom Tromey <tromey@adacore.com>
5986
5987 * tracepoint.c: Don't include readline.h or history.h.
5988
86c6b807
TT
59892019-08-12 Tom Tromey <tom@tromey.com>
5990
5991 * configure: Rebuild.
5992 * configure.ac: Check for readline 7.
5993 * NEWS: Mention readline 7 requirement.
5994 * README: Update.
5995
5db2718c
TT
59962019-08-12 Tom Tromey <tom@tromey.com>
5997
5998 * mingw-hdep.c (gdb_select): Remove readline hack.
5999
dac36daf
PFC
60002019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6001
6002 * blockframe.c (find_pc_partial_function): Set *block to nullptr
6003 when the function fails.
6004
1022c627
AA
60052019-08-09 Andreas Arnez <arnez@linux.ibm.com>
6006
6007 * s390-tdep.c (s390_type_align): New function.
6008 (s390_gdbarch_init): Set it as type_align gdbarch method.
6009
eba4caf2
TV
60102019-08-09 Tom de Vries <tdevries@suse.de>
6011
6012 PR gdb/24591
6013 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
6014 pc_low with relocation offset.
6015
123cd851
TT
60162019-08-07 Tom Tromey <tromey@adacore.com>
6017
6018 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
6019 (print_frame_args): Update.
6020 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
6021 Update.
6022 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
6023 * frame.h (struct frame_arg): Add initializers.
6024 <error>: Now a unique_xmalloc_ptr.
6025
3d31bc39
AH
60262019-08-07 Alan Hayward <alan.hayward@arm.com>
6027
6028 * NEWS: Expand the Pointer Authentication entry.
6029 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
6030 (aarch64_frame_unmask_lr): ... to this.
6031 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
6032 Call aarch64_frame_unmask_lr.
6033 * frame.c (struct frame_info): Add "masked" variable.
6034 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
6035 (fprint_frame): Check for masked pc.
6036 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
6037 declarations.
6038 * python/py-framefilter.c (py_print_frame): Check for masked pc.
6039 * stack.c (print_frame): Check for masked pc.
6040
0cf9feb9
TT
60412019-08-06 Tom Tromey <tom@tromey.com>
6042
6043 * stabsread.c (patch_block_stabs, read_one_struct_field)
6044 (read_enum_type): Use obstack_strndup.
6045 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
6046 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
6047 * dwarf2read.c (guess_full_die_structure_name)
6048 (anonymous_struct_prefix): Use obstack_strndup.
6049 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
6050 * c-exp.y (yylex): Use obstack_strndup.
6051 * ada-exp.y (write_object_renaming, write_ambiguous_var)
6052 (write_var_or_type): Use obstack_strndup.
6053
efba19b0
TT
60542019-08-06 Tom Tromey <tom@tromey.com>
6055
6056 * symfile.c (reread_symbols): Use obstack_strdup.
6057 * stabsread.c (read_type): Use obstack_strdup.
6058 * gdb_obstack.h (obstack_strdup): New overload.
6059 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
6060 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
6061 (dwarf2_canonicalize_name): Use obstack_strdup.
6062 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
6063 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
6064 Use obstack_strdup.
6065
f25102f7
TT
60662019-08-06 Tom Tromey <tom@tromey.com>
6067
6068 * gdb_obstack.h (obstack_strdup): Define.
6069 * gdb_obstack.c (obstack_strdup): Don't define.
6070
021887d8
TT
60712019-08-06 Tom Tromey <tom@tromey.com>
6072
6073 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
6074 obstack_strdup.
6075 * typeprint.c (typedef_hash_table::find_global_typedef): Use
6076 obstack_strdup.
6077 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
6078 * stabsread.c (common_block_start): Use obstack_strdup.
6079 * objfiles.c (set_objfile_main_name, objfile): Use
6080 obstack_strdup.
6081 * namespace.c (add_using_directive): Use obstack_strdup.
6082 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
6083 * jit.c (finalize_symtab): Use obstack_strdup.
6084 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
6085 (guess_partial_die_structure_name, partial_die_info::fixup)
6086 (dwarf2_name): Use obstack_strdup.
6087 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
6088 obstack_strdup.
6089 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
6090 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
6091 obstack_strdup.
6092 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
6093
d2834edc
PW
60942019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6095
6096 * unittests/help-doc-selftests.c: New file.
6097 * Makefile.in: Add the new file.
6098
590042fc
PW
60992019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6100
6101 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
6102 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
6103 the full first line, except when FOR_VALUE_PREFIX. In this case,
6104 the trailing '.' is not output, and the first character is uppercased.
6105 (print_help_for_command): Update call to print_doc_line.
6106 (print_doc_of_command): Likewise.
6107 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
6108 * cli/cli-option.c (append_indented_doc): Do not append newline.
6109 (build_help_option): Append newline after first appended_indented_doc
6110 only if a second call is done.
6111 (build_help): Append 2 new lines before each option, except the first
6112 one.
6113 * compile/compile.c (_initialize_compile): Add new lines after
6114 %OPTIONS%, when not at the end of the help.
6115 Change help doc or code
6116 producing the help doc to respect the invariants.
6117 * maint-test-options.c (_initialize_maint_test_options): Likewise.
6118 Also removed the new line after 'Options:', as all other commands
6119 do not put an empty line between 'Options:' and the first option.
6120 * printcmd.c (_initialize_printcmd): Likewise.
6121 * stack.c (_initialize_stack): Likewise.
6122 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
6123 incorrectly telling COMMAND is optional.
6124 * ada-lang.c (_initialize_ada_language): Change help doc or code
6125 producing the help doc to respect the invariants.
6126 * ada-tasks.c (_initialize_ada_tasks): Likewise.
6127 * breakpoint.c (_initialize_breakpoint): Likewise.
6128 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
6129 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
6130 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
6131 * cli/cli-style.c (cli_style_option::add_setshow_commands,
6132 _initialize_cli_style): Likewise.
6133 * corelow.c (core_target_info): Likewise.
6134 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
6135 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
6136 * filesystem.c (_initialize_filesystem): Likewise.
6137 * frame.c (_initialize_frame): Likewise.
6138 * gnu-nat.c (add_task_commands): Likewise.
6139 * infcall.c (_initialize_infcall): Likewise.
6140 * infcmd.c (_initialize_infcmd): Likewise.
6141 * interps.c (_initialize_interpreter): Likewise.
6142 * language.c (_initialize_language): Likewise.
6143 * linux-fork.c (_initialize_linux_fork): Likewise.
6144 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
6145 * maint.c (_initialize_maint_cmds): Likewise.
6146 * memattr.c (_initialize_mem): Likewise.
6147 * printcmd.c (_initialize_printcmd): Likewise.
6148 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
6149 _RegEx): Likewise.
6150 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
6151 * record-btrace.c (_initialize_record_btrace): Likewise.
6152 * record-full.c (_initialize_record_full): Likewise.
6153 * record.c (_initialize_record): Likewise.
6154 * regcache-dump.c (_initialize_regcache_dump): Likewise.
6155 * regcache.c (_initialize_regcache): Likewise.
6156 * remote.c (add_packet_config_cmd, init_remote_threadtests,
6157 _initialize_remote): Likewise.
6158 * ser-tcp.c (_initialize_ser_tcp): Likewise.
6159 * serial.c (_initialize_serial): Likewise.
6160 * skip.c (_initialize_step_skip): Likewise.
6161 * source.c (_initialize_source): Likewise.
6162 * stack.c (_initialize_stack): Likewise.
6163 * symfile.c (_initialize_symfile): Likewise.
6164 * symtab.c (_initialize_symtab): Likewise.
6165 * target-descriptions.c (_initialize_target_descriptions): Likewise.
6166 * top.c (init_main): Likewise.
6167 * tracefile-tfile.c (tfile_target_info): Likewise.
6168 * tracepoint.c (_initialize_tracepoint): Likewise.
6169 * tui/tui-win.c (_initialize_tui_win): Likewise.
6170 * utils.c (add_internal_problem_command): Likewise.
6171 * valprint.c (value_print_option_defs): Likewise.
6172
404f2902
FCE
61732019-08-06 Frank Ch. Eigler <fche@redhat.com>
6174
6175 PR build/24886
6176 * configure.ac: Drop enable-libmcheck support.
6177 * configure, config.in: Rebuild.
6178 * libmcheck.m4: Remove.
6179 * acinclude.m4: Don't include it.
6180 * Makefile.in: Don't distribute it.
6181 * top.c (print_gdb_configuration): Don't mention it.
6182
046bebe1
TT
61832019-08-06 Tom Tromey <tom@tromey.com>
6184
6185 * utils.c (set_output_style): Sometimes pass stream to
6186 emit_style_escape.
6187 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
6188 * record-btrace.c (btrace_insn_history): Update.
6189 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
6190 method.
6191 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
6192 Update initializers.
6193 <m_uiout>: New field.
6194 <m_di>: Move lower.
6195 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
6196 Remove "uiout" parameter.
6197 (dump_insns): Update.
6198 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
6199 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
6200
ddbcedf5
CB
62012019-08-06 Christian Biesinger <cbiesinger@google.com>
6202
6203 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
6204 (error_in_psymtab_expansion): Likewise.
6205 (lookup_symbol_via_quick_fns): Likewise.
6206 (basic_lookup_transparent_type_quick): Likewise.
6207 (basic_lookup_transparent_type_1): Likewise.
6208
b08b16c8
TT
62092019-08-06 Tom Tromey <tromey@adacore.com>
6210
6211 * source.c (last_source_error): Now bool.
6212 (print_source_lines_base): Make "noprint" bool. Only open
6213 source file when last_source_visited changes.
6214
cb44333d
TT
62152019-08-06 Tom Tromey <tromey@adacore.com>
6216
6217 * annotate.c (annotate_source_line): Use g_source_cache.
6218 * source-cache.c (source_cache::get_plain_source_lines): Change
6219 parameters. Populate m_offset_cache.
6220 (source_cache::ensure): New method.
6221 (source_cache::get_line_charpos): New method.
6222 (extract_lines): Move lower. Change parameters.
6223 (source_cache::get_source_lines): Move lower.
6224 * source-cache.h (class source_cache): Update comment.
6225 <get_line_charpos>: New method.
6226 <get_source_lines>: Update comment.
6227 <clear>: Clear m_offset_cache.
6228 <get_plain_source_lines>: Change parameters.
6229 <ensure>: New method
6230 <m_offset_cache>: New member.
6231 * source.c (forget_cached_source_info_for_objfile): Update.
6232 (info_source_command): Use g_source_cache.
6233 (find_source_lines, open_source_file_with_line_charpos): Remove.
6234 (print_source_lines_base, search_command_helper): Use g_source_cache.
6235 * source.h (open_source_file_with_line_charpos): Don't declare.
6236 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
6237 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
6238 Use g_source_cache.
6239
872dceaa
TT
62402019-08-06 Tom Tromey <tromey@adacore.com>
6241
6242 * source-cache.c (source_cache::get_plain_source_lines):
6243 Remove "first_line" and "last_line" parameters.
6244 (source_cache::get_source_lines): Cache plain text.
6245 * source-cache.h (class source_cache)
6246 <get_plain_source_lines>: Update.
6247
269249d9
TT
62482019-08-06 Tom Tromey <tromey@adacore.com>
6249
6250 * source-cache.c (extract_lines): No longer a method.
6251 Changed type of parameter. Include final newline.
6252 (selftests::extract_lines_test): New function.
6253 (_initialize_source_cache): Likewise.
6254 * source-cache.h (class source_cache)
6255 <extract_lines>: Don't declare.
6256
c0e8dcd8
TT
62572019-08-06 Tom Tromey <tromey@adacore.com>
6258
6259 * breakpoint.c (init_breakpoint_sal): Update.
6260 (breakpoint): Update.
6261 * breakpoint.h (struct breakpoint) <filter>: Now a
6262 unique_xmalloc_ptr.
6263
0b27c27d
CB
62642019-08-05 Christian Biesinger <cbiesinger@google.com>
6265
6266 * NEWS: Mention dictionary access on blocks.
6267 * python/py-block.c (blpy_getitem): New function.
6268 (block_object_as_mapping): New struct.
6269 (block_object_type): Use new struct for tp_as_mapping field.
6270
4ee94178
CB
62712019-08-05 Christian Biesinger <cbiesinger@google.com>
6272
6273 * objfiles.h (objfile): Add a comment describing partial symbols.
6274
8abfcabc
TT
62752019-08-05 Tom Tromey <tromey@adacore.com>
6276
6277 * compile/compile.c (_initialize_compile): Use _(), not N_().
6278 * thread.c (_initialize_thread): Use _(), not N_().
6279 * stack.c (_initialize_stack): Use _(), not N_().
6280 * printcmd.c (_initialize_printcmd): Use _(), not N_().
6281
2b79f376
SM
62822019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6283
6284 * dwarf2read.c (struct dw2_symtab_iterator):
6285 <want_specific_block>: Remove.
6286 <block_index>: Change type to gdb::optional.
6287 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
6288 change type of BLOCK_INDEX parameter to gdb::optional.
6289 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
6290 (dw2_lookup_symbol): Don't pass argument for
6291 WANT_SPECIFIC_BLOCK.
6292 (dw2_expand_symtabs_for_function): Don't pass argument for
6293 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
6294 (class dw2_debug_names_iterator)
6295 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
6296 parameter, change BLOCK_INDEX type to gdb::optional.
6297 <m_want_specific_block>: Remove.
6298 <m_block_index>: Change type to gdb::optional.
6299 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
6300 gdb::optional. Re-write in function of gdb::optional.
6301 (dw2_debug_names_lookup_symbol): Don't pass argument for
6302 WANT_SPECIFIC_BLOCK.
6303 (dw2_debug_names_expand_symtabs_for_function): Don't pass
6304 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
6305 BLOCK_INDEX.
6306
ae60f04e
PW
63072019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6308
6309 * NEWS: Mention changes to "info sources" command.
6310
28cd9371
PW
63112019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6312
6313 * symtab.c (filename_partial_match_opts): New struct type.
6314 (struct output_source_filename_data): New members
6315 regexp, c_regexp, partial_match.
6316 (output_source_filename): Use new members to decide to print file.
6317 (info_sources_option_defs): New variable.
6318 (make_info_sources_options_def_group, print_info_sources_header,
6319 info_sources_command_completer):
6320 New functions.
6321 (info_sources_command): Read new optional arguments.
6322 (_initialize_symtab): Update info sources help.
6323
ca683e3a
AO
63242019-08-02 Alexandre Oliva <oliva@adacore.com>
6325
6326 * ada-lang.c (exception_support_info_v0): Renamed from...
6327 (default_exception_support_info): ... this. Create new
6328 definition for v1.
6329 (ada_has_this_exception_support): Look up catch_handlers_sym.
6330 (ada_exception_support_info_sniffer): Try v0 after default.
6331
f1264162
TT
63322019-08-01 Tom Tromey <tromey@adacore.com>
6333
6334 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
6335 gdbarch.h.
6336
0a7b2485
CB
63372019-08-01 Christian Biesinger <cbiesinger@google.com>
6338
6339 * s12z-tdep.c: Fix include path for s12z-opc.h.
6340
c6bdbeb7
AH
63412019-08-01 Alan Hayward <alan.hayward@arm.com>
6342
6343 * NEWS: Require GNU make 3.82.
6344
a2bd7b82
TT
63452019-07-16 Tom Tromey <tom@tromey.com>
6346
6347 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
6348 declare.
6349
aa3b6533
TT
63502019-07-30 Tom Tromey <tromey@adacore.com>
6351
6352 * block.c (contained_in): Remove BLOCK_FUNCTION check.
6353
a1530dc7
KB
63542019-07-30 Kevin Buettner <kevinb@redhat.com>
6355
6356 * printcmd.c (print_address_symbolic): Print negative offsets.
6357 (build_address_symbolic): Force signed arithmetic when computing
6358 offset.
6359
2906593f
CB
63602019-07-30 Christian Biesinger <cbiesinger@google.com>
6361
6362 PR/24474: Add a function to lookup static variables.
6363 * NEWS: Mention this new function.
6364 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
6365 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
6366 * python/python.c (python_GdbMethods): Add new function.
6367
c620ed88
CB
63682019-07-29 Christian Biesinger <cbiesinger@google.com>
6369
6370 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
6371 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
6372 (objfpy_lookup_static_symbol): New function.
6373 (objfile_object_methods): Add new functions.
6374
bc4268a5
PW
63752019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6376
6377 * NEWS: Mention 'set|show print frame-info'. Mention new
6378 'presence' value for 'frame-arguments'. Mention new '-frame-info'
6379 backtrace argument. Mention that python frame filtering code
6380 is now consistent with what 'backtrace' command prints.
6381
4b5e8d19
PW
63822019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6383
6384 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
6385 comments.
6386 (print_frame_info_auto, print_frame_info_source_line,
6387 print_frame_info_location, print_frame_info_source_and_location,
6388 print_frame_info_location_and_address, print_frame_info_short_location):
6389 New declarations.
6390 (struct frame_print_options): New member print_frame_info.
6391 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
6392 * stack.h (get_user_print_what_frame_info): New declaration.
6393 (frame_show_address): New declaration.
6394 * stack.c (print_frame_arguments_choices): New value 'presence'.
6395 (print_frame_info_auto, print_frame_info_source_line,
6396 print_frame_info_location, print_frame_info_source_and_location,
6397 print_frame_info_location_and_address, print_frame_info_short_location,
6398 print_frame_info_choices, print_frame_info_print_what): New definitions.
6399 (print_frame_args): Only print dots for args if print frame-arguments
6400 is 'presence'.
6401 (frame_print_option_defs): New element for "frame-info".
6402 (get_user_print_what_frame_info): New function.
6403 (frame_show_address): Make non static. Move comment to stack.h.
6404 (print_frame_info_to_print_what): New function.
6405 (print_frame_info): Update comment. Use fp_opts.print_frame_info
6406 to decide what to print.
6407 (backtrace_command_1): Handle the new print_frame_arguments_presence
6408 value.
6409 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
6410 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
6411 (py_print_frame): In non-mi mode, use LOCATION as default for
6412 print_what, similarly to frame information printed directly by
6413 backtrace command. Handle frame-info user option in non MI mode.
6414
6bdfee81
KB
64152019-07-27 Kevin Buettner <kevinb@redhat.com>
6416
6417 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
6418 Add case for debugging 32-bit target on 64-bit host. Revise
6419 comment.
6420
98a617f8
KB
64212019-07-27 Kevin Buettner <kevinb@redhat.com>
6422
6423 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
6424 instead of find_function_entry_range_from_pc.
6425
567238c9
KB
64262019-07-27 Kevin Buettner <kevinb@redhat.com>
6427
6428 * stack.c (find_frame_funname): Remove code which preferred
6429 minsym over symtab sym in "certain pathological cases".
6430
2dc80cf8
KB
6431 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
6432 parameter. Change type of "do_demangle" to bool.
6433 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
6434 Pass suitable "prefer_sym_over_minsym" flag to
6435 build_address_symbolic(). Don't output "+" for negative offsets.
6436 * printcmd.c (print_address_symbolic): Update invocation of
6437 build_address_symbolic to include a "prefer_sym_over_minsym"
6438 flag.
6439 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
6440 Restrict cases in which use of minimal symbol is preferred to that
6441 of a found symbol. Update comments.
6442
1aff7173
KB
6443 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
6444 for entry pc when entry pc is out of range for that FDE.
6445
89b085ac
BC
64462019-07-26 Brian Callahan <bcallah@openbsd.org>
6447
6448 PR gdb/24839:
6449 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
6450 type.
6451
f32feb4a
CB
64522019-07-25 Christian Biesinger <cbiesinger@google.com>
6453
6454 * python/py-objfile.c (add_separate_debug_file): Fix comment about
6455 this function's Python signature.
6456
6457
64582019-07-24 Christian Biesinger <cbiesinger@google.com>
442853af
CB
6459
6460 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
6461 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
6462 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
6463 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
6464 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
6465
6466
c54e4253
YS
64672019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
6468
6469 * h8300-tdep.c (h8300_register_name_common): New.
6470 h8300_register_name): Use h8300_register_name_common.
6471 (h8300s_register_name): Likewise.
6472 (h8300sx_register_name): Likewise.
6473 (h8300h_register_nam): New.
6474 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
6475
6476
40eadf04
SP
64772019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
6478
6479 * arm-tdep.c (arm_skip_cmse_entry): New function.
6480 (arm_is_sgstubs_section): New function.
6481 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
6482
bfa2a36d
TT
64832019-07-22 Tom Tromey <tom@tromey.com>
6484
6485 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
6486 Don't self-assign.
6487
a8e9d247
AB
64882019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
6489
6490 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
6491 type_print.
6492
eb86c5e2
AB
64932019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
6494
6495 * symtab.c (search_symbols): Adjust msymbol matching type arrays
6496 so that GDB doesn't match any msymbols when searching in the
6497 TYPES_DOMAIN.
6498 (print_symbol_info): Print using typedef_print or type_print based
6499 on the type of the symbol. Add updated FIXME comment moved from...
6500 (_initialize_symtab): ... move and update FIXME comment to above.
6501
a8eab7c6
AB
65022019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
6503
6504 * NEWS: Mention adding -q option to "info types".
6505 * symtab.c (struct info_types_options): New struct.
6506 (info_types_options_defs): New variable.
6507 (make_info_types_options_def_group): New function.
6508 (info_types_command): Use gdb::option framework to parse options.
6509 (info_types_command_completer): New function.
6510 (_initialize_symtab): Extend the help text on "info types" and
6511 register command completer.
6512
b4603c34
CB
65132019-07-21 Christian Biesinger <cbiesinger@google.com>
6514
6515 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
6516 (lookup_symbol_in_objfile): Change int to block_enum and add a
6517 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
6518
c8cdc1e0
CB
65192019-07-20 Christian Biesinger <cbiesinger@google.com>
6520
6521 * MAINTAINERS (Write After Approval): Add self.
6522
01e175fe
AB
65232019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
6524
6525 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
6526 instruction to the dummy code region.
6527
56f79b63
TT
65282019-07-19 Tom Tromey <tromey@adacore.com>
6529
6530 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
6531 (ARGSUSED, PARAMS, __func__): Remove rules.
6532
4c5aa8e0
AH
65332019-07-19 Alan Hayward <alan.hayward@arm.com>
6534
6535 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
6536 * features/arm/arm-with-iwmmxt.c: Remove.
6537 * features/arm/arm-with-iwmmxt.xml: Remove.
6538 * features/arm/arm-with-m-fpa-layout.c: Remove.
6539 * features/arm/arm-with-m-fpa-layout.xml: Remove.
6540 * features/arm/arm-with-m-vfp-d16.c: Remove.
6541 * features/arm/arm-with-m-vfp-d16.xml: Remove.
6542 * features/arm/arm-with-m.c: Remove.
6543 * features/arm/arm-with-m.xml: Remove.
6544 * features/arm/arm-with-neon.c: Remove.
6545 * features/arm/arm-with-neon.xml: Remove.
6546 * features/arm/arm-with-vfpv2.c: Remove.
6547 * features/arm/arm-with-vfpv2.xml: Remove.
6548 * features/arm/arm-with-vfpv3.c: Remove.
6549 * features/arm/arm-with-vfpv3.xml: Remove.
6550
f42b2617
AH
65512019-07-19 Alan Hayward <alan.hayward@arm.com>
6552
6553 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
6554
f29ec966
AH
65552019-07-19 Alan Hayward <alan.hayward@arm.com>
6556
6557 * arch/aarch32.c (aarch32_create_target_description): Create
6558 target descriptions using features.
6559 * arch/arm.c (arm_create_target_description)
6560 (arm_create_mprofile_target_description): Likewise.
6561 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
6562
d105cce5
AH
65632019-07-19 Alan Hayward <alan.hayward@arm.com>
6564
6565 * Makefile.in: Add new files.
6566 * aarch32-tdep.c: New file.
6567 * aarch32-tdep.h: New file.
6568 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
6569 Call aarch32_read_description.
6570 * arch/aarch32.c: New file.
6571 * arch/aarch32.h: New file.
6572 * arch/arm.c (arm_create_target_description)
6573 (arm_create_mprofile_target_description): New function.
6574 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
6575 (arm_create_target_description)
6576 (arm_create_mprofile_target_description): New declaration.
6577 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
6578 read_description functions.
6579 * arm-linux-nat.c (arm_linux_nat_target::read_description):
6580 Likewise.
6581 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
6582 * arm-tdep.c (tdesc_arm_list): New variable.
6583 (arm_register_g_packet_guesses): Call create description functions.
6584 (arm_read_description) (arm_read_mprofile_description): New
6585 function.
6586 * arm-tdep.h (arm_read_description)
6587 (arm_read_mprofile_description): Add declaration.
6588 * configure.tgt: Add new files.
6589
afe09f0b
GL
65902019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
6591
6592 * top.c (new_ui_command): Open specified terminal just once.
6593
cd215b2e
TT
65942019-07-18 Tom Tromey <tromey@adacore.com>
6595
6596 * symtab.c (main_name): Constify return type.
6597 * symfile.c (set_initial_language): Update.
6598 * symtab.h (main_name): Constify return type.
6599
d8f68fcb
TT
66002019-07-17 Tom Tromey <tom@tromey.com>
6601
6602 * tui/tui-winsource.c (tui_update_source_window)
6603 (tui_update_source_window_as_is)
6604 (tui_update_source_windows_with_line): Remove return.
6605 * tui/tui-disasm.c (tui_show_disassem)
6606 (tui_show_disassem_and_update_source): Remove return.
6607 * tui/tui.c (tui_reset): Remove return.
6608 * tui/tui-wingeneral.c
6609 (tui_check_and_display_highlight_if_needed): Remove return.
6610
ca5af91e
TT
66112019-07-17 Tom Tromey <tom@tromey.com>
6612
6613 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
6614
5104fe36
TT
66152019-07-17 Tom Tromey <tom@tromey.com>
6616
6617 * tui/tui-winsource.h (struct tui_exec_info_window)
6618 (struct tui_source_window_base): Move from tui-data.h.
6619 * tui/tui-winsource.c: Move many method definitions from
6620 elsewhere. Remove "structuring" comments.
6621 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
6622 (tui_source_window_base::refresh_window): Move to
6623 tui-winsource.c.
6624 * tui/tui-win.c (tui_source_window_base::refresh_all)
6625 (tui_source_window_base::update_tab_width)
6626 (tui_source_window_base::set_new_height)
6627 (tui_source_window_base::do_make_visible_with_new_height): Move to
6628 tui-winsource.c.
6629 * tui/tui-source.h: Update.
6630 * tui/tui-source.c (tui_source_window_base::reset): Move to
6631 tui-winsource.c.
6632 * tui/tui-disasm.h: Update.
6633 * tui/tui-data.h (struct tui_exec_info_window): Move to
6634 tui-winsource.h.
6635 (struct tui_source_window_base): Likewise.
6636 * tui/tui-data.c (tui_source_window_base::clear_detail)
6637 (tui_source_window_base, ~tui_source_window_base): Move to
6638 tui-winsource.c.
6639
daa15dde
TT
66402019-07-17 Tom Tromey <tom@tromey.com>
6641
6642 * tui/tui-win.c (tui_resize_all)
6643 (tui_source_window_base::update_tab_width)
6644 (tui_adjust_win_heights): Update.
6645 (tui_win_info::make_invisible_and_set_new_height): Rename from
6646 make_invisible_and_set_new_height.
6647 * tui/tui-data.h (struct tui_win_info)
6648 <make_invisible_and_set_new_height>: New method.
6649
bfad4537
TT
66502019-07-17 Tom Tromey <tom@tromey.com>
6651
6652 * tui/tui.c: Update.
6653 * tui/tui-source.h (struct tui_source_window): Move from
6654 tui-data.h.
6655 * tui/tui-layout.c: Update.
6656 * tui/tui-disasm.c: Update.
6657 * tui/tui-data.h (struct tui_source_window): Move to
6658 tui-source.h.
6659
88f7e873
TT
66602019-07-17 Tom Tromey <tom@tromey.com>
6661
6662 * tui/tui-disasm.h (struct tui_disasm_window): Move from
6663 tui-data.h.
6664 * tui/tui-data.h (struct tui_disasm_window): Move to
6665 tui-disasm.h.
6666
96bd6233
TT
66672019-07-17 Tom Tromey <tom@tromey.com>
6668
6669 * tui/tui-regs.h (struct tui_data_item_window): Move from
6670 tui-data.h.
6671 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
6672 * tui/tui-data.h (struct tui_data_item_window): Move to
6673 tui-regs.h.
6674 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
6675
ce38393b
TT
66762019-07-17 Tom Tromey <tom@tromey.com>
6677
6678 * tui/tui.c: Update.
6679 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
6680 (tui_cmd_window::max_height): Move to tui-command.c.
6681 * tui/tui-layout.c: Update.
6682 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
6683 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
6684 tui-command.c.
6685 * tui/tui-command.h (struct tui_cmd_window): Move from
6686 tui-data.h.
6687 * tui/tui-command.c: Remove "structuring" comments.
6688 (tui_cmd_window::clear_detail)
6689 (tui_cmd_window::do_make_visible_with_new_height)
6690 (tui_cmd_window::max_height): Move from elsewhere.
6691
2d8b51cb
TT
66922019-07-17 Tom Tromey <tom@tromey.com>
6693
6694 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
6695 Now static.
6696 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
6697 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
6698
18ab23af
TT
66992019-07-17 Tom Tromey <tom@tromey.com>
6700
6701 * tui/tui.c: Update.
6702 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
6703 tui-regs.c.
6704 * tui/tui-windata.h: Remove file.
6705 * tui/tui-windata.c: Remove file.
6706 * tui/tui-win.c (tui_data_window::set_new_height)
6707 (tui_data_window::do_make_visible_with_new_height): Move to
6708 tui-regs.c.
6709 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
6710 * tui/tui-regs.c: Remove "structuring" comments.
6711 (tui_data_window::first_data_item_displayed)
6712 (tui_data_window::delete_data_content_windows)
6713 (tui_data_window::erase_data_content)
6714 (tui_data_window::display_all_data)
6715 (tui_data_window::refresh_all)
6716 (tui_data_window::do_scroll_vertical)
6717 (tui_data_window::clear_detail, tui_data_window::set_new_height)
6718 (tui_data_window::do_make_visible_with_new_height)
6719 (tui_data_window::refresh_window): Move from elsewhere.
6720 (_initialize_tui_regs): Move to end of file.
6721 * tui/tui-layout.c: Update.
6722 * tui/tui-hooks.c: Update.
6723 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
6724 * tui/tui-data.c (tui_data_window::clear_detail): Move to
6725 tui-regs.c.
6726 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
6727
88b7e7cc
TT
67282019-07-17 Tom Tromey <tom@tromey.com>
6729
6730 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
6731 seen.
6732
0fcd3711
TT
67332019-07-17 Tom Tromey <tom@tromey.com>
6734
6735 * tui/tui-win.c (tui_source_window_base::set_new_height)
6736 (tui_source_window_base::do_make_visible_with_new_height): Use
6737 m_has_locator field directly.
6738 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
6739 method.
6740 (struct tui_source_window_base) <has_locator>: Likewise.
6741
4a38112d
TT
67422019-07-17 Tom Tromey <tom@tromey.com>
6743
6744 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
6745 Don't declare.
6746 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
6747 Remove.
6748 * tui/tui-win.c (tui_source_window_base::set_new_height)
6749 (tui_source_window_base::set_new_height)
6750 (make_invisible_and_set_new_height)
6751 (tui_source_window_base::do_make_visible_with_new_height)
6752 (tui_source_window_base::do_make_visible_with_new_height):
6753 Update.
6754 * tui/tui-layout.c (show_source_disasm_command, show_data)
6755 (show_source_or_disasm_and_command): Update.
6756 * tui/tui-layout.c (show_layout): Update.
6757
09129226
TT
67582019-07-17 Tom Tromey <tom@tromey.com>
6759
6760 * tui/tui-layout.c (make_data_window): Remove.
6761 (show_data): Unify creation and re-initialization cases.
6762
4a8a5e84
TT
67632019-07-17 Tom Tromey <tom@tromey.com>
6764
6765 * tui/tui-layout.c (make_source_window, make_disasm_window):
6766 Remove.
6767 (show_data): Unify creation and re-initialization cases.
6768
76d2be8e
TT
67692019-07-17 Tom Tromey <tom@tromey.com>
6770
6771 * tui/tui-layout.c (make_command_window): Remove.
6772 (show_source_disasm_command, show_source_or_disasm_and_command):
6773 Unify creation and re-initialization cases.
6774
890b8bde
TT
67752019-07-17 Tom Tromey <tom@tromey.com>
6776
6777 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
6778 creation and re-initialization cases.
6779
2cdfa113
TT
67802019-07-17 Tom Tromey <tom@tromey.com>
6781
6782 * tui/tui-regs.c (tui_get_register): Return void.
6783
8e3cfd09
TT
67842019-07-17 Tom Tromey <tom@tromey.com>
6785
6786 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
6787 Simplify.
6788
f4e04977
TT
67892019-07-17 Tom Tromey <tom@tromey.com>
6790
6791 * tui/tui-layout.c (show_source_disasm_command): Simplify window
6792 resetting.
6793
0379b883
TT
67942019-07-17 Tom Tromey <tom@tromey.com>
6795
6796 * tui/tui.h (tui_set_layout_by_name): Don't declare.
6797 * tui/tui-regs.c (tui_reg_layout): New function.
6798 (tui_show_registers, tui_reg_command): Use it.
6799 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
6800 (tui_layout_command): Rename from tui_set_layout_by_name. Change
6801 parameters.
6802 (tui_layout_command): Remove.
6803
b7fbad91
TT
68042019-07-17 Tom Tromey <tom@tromey.com>
6805
6806 * tui/tui-layout.h (tui/tui-layout): Return void.
6807 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
6808
4e1e56b9
TT
68092019-07-17 Tom Tromey <tom@tromey.com>
6810
6811 * tui/tui-layout.c (show_source_disasm_command, show_data):
6812 Update.
6813 (reset_locator): Remove.
6814 (show_source_or_disasm_and_command): Update.
6815
1e0c09ba
TT
68162019-07-17 Tom Tromey <tom@tromey.com>
6817
6818 * tui/tui-source.c (tui_source_window_base::reset): Remove
6819 win_type parameter.
6820 * tui/tui-layout.c (make_command_window, make_source_window)
6821 (make_disasm_window, make_data_window)
6822 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
6823 (reset_locator, show_source_or_disasm_and_command): Update.
6824 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
6825 win_type parameter.
6826 (struct tui_source_window_base) <reset>: Likewise.
6827
1bf605de
TT
68282019-07-17 Tom Tromey <tom@tromey.com>
6829
6830 * tui/tui-layout.c (show_source_disasm_command): Use
6831 reset_locator.
6832 (reset_locator): New function.
6833 (init_and_make_win): Remove.
6834 (show_source_or_disasm_and_command): Use reset_locator.
6835
098f9ed4
TT
68362019-07-17 Tom Tromey <tom@tromey.com>
6837
6838 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
6839 condition.
6840 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
6841 Remove condition.
6842 * tui/tui-source.c (tui_source_window_base::reset): New method.
6843 * tui/tui-layout.c (make_command_window): Don't call
6844 init_and_make_win.
6845 (make_source_window, make_disasm_window): Don't call
6846 make_source_or_disasm_window.
6847 (make_data_window): Don't call init_and_make_win. Change calling
6848 convention.
6849 (show_source_disasm_command, show_data): Simplify.
6850 (make_source_or_disasm_window): Remove.
6851 (show_source_or_disasm_and_command): Simplify.
6852 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
6853 (struct tui_source_window_base) <reset>: Likewise.
6854 <execution_info>: Remove initializer.
6855 * tui/tui-data.c (tui_source_window_base): Initialize
6856 execution_info.
6857
80110957
TT
68582019-07-17 Tom Tromey <tom@tromey.com>
6859
6860 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
6861 variable.
6862
cf82af05
TT
68632019-07-17 Tom Tromey <tom@tromey.com>
6864
6865 * tui/tui.c (tui_rl_other_window): Update.
6866 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
6867 superclass method first. Always iterate over regs_content.
6868 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
6869 method.
6870 * tui/tui-win.c (tui_set_focus_command): Update.
6871
01aeb396
TT
68722019-07-17 Tom Tromey <tom@tromey.com>
6873
6874 * tui/tui-win.c (tui_set_focus_command): Rename from
6875 tui_set_focus. Call tui_enable.
6876 (tui_set_focus_command): Remove.
6877
fd6c75ee
TT
68782019-07-17 Tom Tromey <tom@tromey.com>
6879
6880 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
6881 refresh_window.
6882 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
6883 touchwin.
6884 (tui_data_window::refresh_window): Call refresh_window on data
6885 items. Always call superclass refresh_window.
6886 (tui_win_info::refresh): Remove.
6887 (tui_source_window_base::refresh_window): Update.
6888 (tui_refresh_all): Update.
6889 * tui/tui-layout.c (show_source_disasm_command): Remove call to
6890 refresh_window.
6891 (show_source_or_disasm_and_command): Likewise.
6892 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
6893 (struct tui_source_window_base) <refresh>: Likewise.
6894
f6cc34a9
TT
68952019-07-17 Tom Tromey <tom@tromey.com>
6896
6897 * tui/tui-winsource.c (tui_clear_source_content)
6898 (tui_show_source_content): Update.
6899 * tui/tui-source.c (tui_source_window::showing_source_p): Check
6900 whether content is empty.
6901 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
6902 Remove.
6903
f31ec9af
TT
69042019-07-17 Tom Tromey <tom@tromey.com>
6905
6906 * tui/tui-winsource.c (tui_erase_source_content): Clear the
6907 window's contents.
6908 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
6909 * tui/tui-source.c (tui_set_source_content_nil): Remove.
6910
d1b6f1e5
TT
69112019-07-17 Tom Tromey <tom@tromey.com>
6912
6913 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
6914 (struct tui_data_item_window): Update.
6915
d9743a13
TT
69162019-07-17 Tom Tromey <tom@tromey.com>
6917
6918 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
6919 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
6920 defines.
6921
caf0bc4e
TT
69222019-07-17 Tom Tromey <tom@tromey.com>
6923
6924 * tui/tui-winsource.h (tui_erase_source_content)
6925 (tui_clear_source_content): Remove "display_prompt" parameter.
6926 * tui/tui-winsource.c (tui_update_source_window_as_is)
6927 (tui_update_source_windows_with_addr): Update.
6928 (tui_clear_source_content): Remove "display_prompt" parameter.
6929 (tui_erase_source_content): Likewise. Simplify.
6930 (tui_show_source_content): Update.
6931 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
6932 * tui/tui-stack.c (tui_show_frame_info): Update.
6933 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
6934 Remove defines.
6935
9d391078
TT
69362019-07-17 Tom Tromey <tom@tromey.com>
6937
6938 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
6939 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
6940 parameter.
6941 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
6942 parameter.
6943
a38da35d
TT
69442019-07-17 Tom Tromey <tom@tromey.com>
6945
6946 * tui/tui-winsource.c (tui_clear_source_content)
6947 (tui_show_source_content, tui_show_exec_info_content)
6948 (tui_clear_exec_info_content): Update.
6949 * tui/tui-stack.c (tui_show_locator_content): Update.
6950 (tui_show_frame_info): Update.
6951 * tui/tui-source.h (tui_source_window): Don't declare.
6952 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
6953 from tui_source_is_displayed.
6954 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
6955 Remove field.
6956 (struct tui_source_window_base) <content_in_use>: New field. Now
6957 bool.
6958 (struct tui_source_window) <showing_source_p>: New method.
6959 (TUI_SRC_WIN): Change cast.
6960 * tui/tui-data.c (tui_initialize_static_data): Update.
6961
c2cd8994
TT
69622019-07-17 Tom Tromey <tom@tromey.com>
6963
6964 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
6965 location_matches_p.
6966 * tui/tui-source.c (tui_source_window::location_matches_p): New
6967 method.
6968 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
6969 method.
6970 * tui/tui-data.h (struct tui_source_window_base)
6971 <location_matches_p>: New method.
6972 (struct tui_source_window, struct tui_disasm_window)
6973 <location_matches_p>: Likewise.
6974
4dde7b34
TT
69752019-07-17 Tom Tromey <tom@tromey.com>
6976
6977 * tui/tui-win.c (tui_set_win_height_command): Rename from
6978 tui_set_win_height.
6979 (tui_set_win_height_command): Remove.
6980
b73dd877
TT
69812019-07-17 Tom Tromey <tom@tromey.com>
6982
6983 * tui/tui-source.c (tui_source_window): New constructor. Add
6984 observer.
6985 (~tui_source_window): New destructor.
6986 (tui_source_window::style_changed): New method.
6987 * tui/tui-hooks.c (tui_redisplay_source): Remove.
6988 (tui_attach_detach_observers): Update.
6989 * tui/tui-data.h (struct tui_source_window): Make constructor not
6990 inline. Add destructor.
6991 (struct tui_source_window) <style_changed>: New method.
6992 <m_observable>: New member.
6993
ae2b5380
TT
69942019-07-17 Tom Tromey <tom@tromey.com>
6995
6996 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
6997 * tui/tui-win.c (tui_resize_all): Fix typo.
6998
1ce3e844
TT
69992019-07-17 Tom Tromey <tom@tromey.com>
7000
7001 * tui/tui-wingeneral.h (tui_refresh_all): Update.
7002 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
7003 (tui_refresh_all): Remove "list" parameter. Use foreach.
7004 * tui/tui-win.c (window_name_completer): Use foreach.
7005 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
7006 (update_tab_width): Likewise.
7007 * tui/tui-layout.c (show_layout): Update.
7008 * tui/tui-data.h (class tui_window_iterator): New.
7009 (struct all_tui_windows): New.
7010 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
7011
fe3eaf1c
TT
70122019-07-17 Tom Tromey <tom@tromey.com>
7013
7014 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
7015 parameter. Don't reference globals.
7016 (tui_reg_command): Update.
7017
368c1354
TT
70182019-07-17 Tom Tromey <tom@tromey.com>
7019
7020 * tui/tui-regs.c (tui_show_registers): Simplify.
7021
e80cd204
TT
70222019-07-17 Tom Tromey <tom@tromey.com>
7023
7024 * tui/tui-regs.c (tui_show_registers): Update.
7025 (tui_show_register_group): Add win_info parameter.
7026
aca2dd16
TT
70272019-07-17 Tom Tromey <tom@tromey.com>
7028
7029 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
7030 Rename from tui_display_reg_element_at_line.
7031 (tui_data_window::display_registers_from_line): Update.
7032 * tui/tui-data.h (struct tui_data_window)
7033 <display_reg_element_at_line>: New method.
7034
517e9505
TT
70352019-07-17 Tom Tromey <tom@tromey.com>
7036
7037 * tui/tui-regs.h (tui_display_registers_from)
7038 (tui_display_registers_from_line): Don't declare.
7039 * tui/tui-windata.c (tui_data_window::display_all_data)
7040 (tui_data_window::refresh_all)
7041 (tui_data_window::do_scroll_vertical): Update.
7042 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
7043 from tui_display_registers_from.
7044 (tui_display_reg_element_at_line): Update.
7045 (tui_data_window::display_registers_from_line): Rename from
7046 tui_display_registers_from_line.
7047 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
7048 display_registers_from_line>: New methods.
7049
f76d8b19
TT
70502019-07-17 Tom Tromey <tom@tromey.com>
7051
7052 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
7053 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
7054 from tui_erase_data_content.
7055 (tui_data_window::display_all_data)
7056 (tui_data_window::refresh_all)
7057 (tui_data_window::do_scroll_vertical): Update.
7058 * tui/tui-regs.c (tui_show_registers): Update.
7059 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
7060 New method.
7061
b4094625
TT
70622019-07-17 Tom Tromey <tom@tromey.com>
7063
7064 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
7065 declare.
7066 * tui/tui-windata.c
7067 (tui_data_window::delete_data_content_windows): Rename from
7068 tui_delete_data_content_windows.
7069 (tui_data_window::display_all_data)
7070 (tui_data_window::do_scroll_vertical): Update.
7071 * tui/tui-data.h (struct tui_data_window)
7072 <delete_data_content_windows>: New method.
7073
c223a729
TT
70742019-07-17 Tom Tromey <tom@tromey.com>
7075
7076 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
7077 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
7078
50daf268
TT
70792019-07-17 Tom Tromey <tom@tromey.com>
7080
7081 * tui/tui-windata.h (tui_display_all_data): Don't declare.
7082 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
7083 from tui_display_all_data.
7084 * tui/tui-win.c
7085 (tui_data_window::do_make_visible_with_new_height): Update.
7086 * tui/tui-regs.c (tui_show_registers): Update.
7087 * tui/tui-layout.c (tui_set_layout): Update.
7088 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
7089 method.
7090
df5f8cab
TT
70912019-07-17 Tom Tromey <tom@tromey.com>
7092
7093 * tui/tui-windata.h (tui_display_data_from): Don't declare.
7094 * tui/tui-windata.c (tui_display_data_from): Remove.
7095 (tui_data_window::refresh_all): Update.
7096
80cb6c27
TT
70972019-07-17 Tom Tromey <tom@tromey.com>
7098
7099 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
7100 * tui/tui-windata.c (tui_display_data_from_line): Remove.
7101 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
7102 tui_display_registers_from_line.
7103 * tui/tui-regs.h (tui_display_registers_from_line): Update.
7104 * tui/tui-regs.c (tui_display_registers_from_line): Remove
7105 "force_display" parameter.
7106
baff0c28
TT
71072019-07-17 Tom Tromey <tom@tromey.com>
7108
7109 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
7110 declare.
7111 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
7112 Rename from tui_first_reg_element_no_inline.
7113 (tui_display_reg_element_at_line)
7114 (tui_display_registers_from_line): Update.
7115 * tui/tui-data.h (struct tui_data_window)
7116 <first_reg_element_no_inline>: New method.
7117
3b23c5f2
TT
71182019-07-17 Tom Tromey <tom@tromey.com>
7119
7120 * tui/tui-windata.c (tui_display_data_from)
7121 (tui_data_window::do_scroll_vertical): Update.
7122 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
7123 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
7124 Rename from tui_line_from_reg_element_no.
7125 (tui_display_registers_from_line): Update.
7126 * tui/tui-data.h (struct tui_data_window)
7127 <line_from_reg_element_no>: New method.
7128
0b5ec218
TT
71292019-07-17 Tom Tromey <tom@tromey.com>
7130
7131 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
7132 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
7133 tui_last_regs_line_no.
7134 (tui_display_reg_element_at_line)
7135 (tui_display_registers_from_line): Update.
7136 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
7137 method.
7138
0807ab7b
TT
71392019-07-17 Tom Tromey <tom@tromey.com>
7140
7141 PR tui/24722:
7142 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
7143 (tui_update_breakpoint_info): Add "being_deleted" parameter.
7144 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
7145 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
7146 (tui_update_breakpoint_info): Likewise.
7147 * tui/tui-hooks.c (tui_event_create_breakpoint)
7148 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
7149 Update.
7150
9ad7fdef
TT
71512019-07-17 Tom Tromey <tom@tromey.com>
7152
7153 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
7154
5813316f
TT
71552019-07-17 Tom Tromey <tom@tromey.com>
7156
7157 * tui/tui-winsource.c (tui_update_source_window_as_is)
7158 (tui_update_source_windows_with_addr): Update.
7159 * tui/tui-source.h (tui_set_source_content)
7160 (tui_show_symtab_source): Add "win_info" parameter.
7161 * tui/tui-source.c (tui_set_source_content): Add "win_info"
7162 parameter.
7163 (tui_show_symtab_source): Likewise.
7164
00e264e7
TT
71652019-07-17 Tom Tromey <tom@tromey.com>
7166
7167 * tui/tui-wingeneral.c
7168 (tui_check_and_display_highlight_if_needed): Check can_highlight.
7169
06210ce4
TT
71702019-07-17 Tom Tromey <tom@tromey.com>
7171
7172 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
7173 (struct tui_cmd_window) <can_scroll>: New method.
7174 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
7175 method.
7176
381befee
TT
71772019-07-17 Tom Tromey <tromey@adacore.com>
7178
7179 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
7180 do_field_signed>: Rename. Change type of "value".
7181 * ui-out.c (ui_out::field_signed): Rename from field_int.
7182 Change type of "value".
7183 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
7184 type of "value".
7185 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
7186 do_field_int. Change type of "value".
7187 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
7188 do_field_int. Change type of "value".
7189 * tracepoint.c (trace_status_mi, tfind_1)
7190 (print_one_static_tracepoint_marker): Update.
7191 * thread.c (print_thread_info_1, print_selected_thread_frame):
7192 Update.
7193 * stack.c (print_frame, print_frame_info): Update.
7194 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
7195 Update.
7196 * source.c (print_source_lines_base): Update.
7197 * skip.c (info_skip_command): Update.
7198 * record-btrace.c (btrace_ui_out_decode_error)
7199 (btrace_call_history_src_line): Update.
7200 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
7201 Update.
7202 * progspace.c (print_program_space): Update.
7203 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
7204 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
7205 do_field_int. Change type of "value".
7206 * mi/mi-out.c (mi_ui_out::do_table_begin)
7207 (mi_ui_out::do_table_header): Update.
7208 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
7209 type of "value".
7210 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
7211 (mi_cmd_data_list_changed_registers, output_register)
7212 (mi_cmd_data_read_memory, mi_load_progress)
7213 (mi_cmd_trace_frame_collected): Update.
7214 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
7215 Update.
7216 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
7217 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
7218 (mi_cmd_var_list_children, varobj_update_one): Update.
7219 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
7220 (mi_cmd_stack_list_args, list_arg_or_local): Update.
7221 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
7222 * inferior.c (print_inferior): Update.
7223 * gdb_bfd.c (print_one_bfd): Update.
7224 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
7225 Update.
7226 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
7227 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
7228 do_field_int. Change type of "value".
7229 * cli-out.c (cli_ui_out::do_field_signed): Rename from
7230 do_field_int. Change type of "value".
7231 * breakpoint.c (watchpoint_check, print_breakpoint_location)
7232 (print_one_breakpoint_location, print_it_catch_fork)
7233 (print_one_catch_fork, print_it_catch_vfork)
7234 (print_one_catch_vfork, print_it_catch_solib)
7235 (print_it_catch_exec, print_it_ranged_breakpoint)
7236 (print_mention_watchpoint, print_mention_masked_watchpoint)
7237 (bkpt_print_it, update_static_tracepoint): Update.
7238 * break-catch-throw.c (print_it_exception_catchpoint): Update.
7239 * break-catch-syscall.c (print_it_catch_syscall): Update.
7240 * ada-tasks.c (print_ada_task_info): Update.
7241 * ada-lang.c (print_it_exception, print_mention_exception):
7242 Update.
7243
6b78c3f8
AB
72442019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
7245
7246 PR breakpoints/24541
7247 * gdbarch.c: Regenerate.
7248 * gdbarch.h: Regenerate.
7249 * gdbarch.sh: Adjust return type and parameter types for
7250 'stap_adjust_register'.
7251 (i386_stap_adjust_register): Adjust signature and return new
7252 register name.
7253 * stap-probe.c (stap_parse_register_operand): Adjust use of
7254 'gdbarch_stap_adjust_register'.
7255
d72a9b85
TT
72562019-07-17 Tom Tromey <tromey@adacore.com>
7257
7258 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
7259 declare VEC.
7260 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
7261 std::vector.
7262 (struct s390_process_info): Add initializers.
7263 (s390_add_process): Use new.
7264 (s390_linux_nat_target::low_forget_process): Use delete.
7265 (s390_linux_nat_target::low_new_fork)
7266 (s390_linux_nat_target::stopped_by_watchpoint)
7267 (s390_linux_nat_target::low_prepare_to_resume)
7268 (s390_linux_nat_target::insert_watchpoint)
7269 (s390_linux_nat_target::insert_hw_breakpoint)
7270 (s390_linux_nat_target::remove_watchpoint)
7271 (s390_linux_nat_target::remove_hw_breakpoint): Update.
7272
206e6c58
JB
72732019-07-16 John Baldwin <jhb@FreeBSD.org>
7274
7275 * aarch64-fbsd-nat.c: Include regcache.h.
7276 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
7277 argument.
7278 (aarch64_fbsd_nat_target::fetch_registers)
7279 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
7280 variable.
7281 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
7282
cbde90f2
JB
72832019-07-16 John Baldwin <jhb@FreeBSD.org>
7284
7285 * fbsd-nat.c: Include gdbarch.h.
7286
07128006
TT
72872019-07-15 Tom Tromey <tromey@adacore.com>
7288
7289 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
7290
1f77b012
TT
72912019-07-15 Tom Tromey <tromey@adacore.com>
7292
7293 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
7294 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
7295 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
7296 * cli-out.c (cli_ui_out::do_field_int): New method.
7297 * ui-out.c (ui_out::field_unsigned): New method.
7298 * symfile.c (generic_load): Use field_unsigned.
7299 (print_transfer_performance): Likewise.
7300 * record-btrace.c (ui_out_field_uint): Remove.
7301 (btrace_call_history_insn_range, btrace_call_history): Use
7302 field_unsigned.
7303 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
7304 field_unsigned.
7305 * ui-out.h (class ui_out) <field_unsigned>: New method.
7306 <do_field_unsigned>: Likewise.
7307
33eca680
TT
73082019-07-15 Tom Tromey <tromey@adacore.com>
7309
7310 * mi/mi-main.c (list_available_thread_groups): Use field_string.
7311 * mi/mi-interp.c (mi_memory_changed): Use field_string.
7312 * target.c (flash_erase_command): Use field_string.
7313 * infrun.c (print_signal_received_reason): Use field_string.
7314 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
7315 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
7316 field_string.
7317 * ada-tasks.c (print_ada_task_info): Use field_string.
7318
ca8d69be
TT
73192019-07-15 Tom Tromey <tromey@adacore.com>
7320
7321 * target.c (flash_erase_command): Use field_core_addr.
7322 * symfile.c (generic_load): Use field_core_addr.
7323 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
7324 Use field_core_addr.
7325 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
7326 field_core_addr.
7327
0d4e84ed
AB
73282019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
7329
7330 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
7331 value if its desired type is smaller than a CORE_ADDR and signed.
7332
9a49df9d
AB
73332019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
7334
7335 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
7336 of changes to field names, and use new is_reference field to
7337 decide if a property is a reference or not.
7338 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
7339 field.
7340 (struct dwarf2_property_baton): Update header comment, rename
7341 'referenced_type' to 'property_type' and update comments.
7342 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
7343 default property type, store in property baton, update to take
7344 accound of renamed field.
7345 (read_func_scope): Update call to attr_to_dynamic_prop.
7346 (read_array_type): Likewise.
7347 (dwarf2_per_cu_addr_sized_int_type): New function.
7348 (read_subrange_index_type): Move type finding code to
7349 dwarf2_per_cu_addr_sized_int_type.
7350 (read_subrange_type): Update calls to attr_to_dynamic_prop.
7351 (dwarf2_per_cu_addr_type): New function.
7352 (set_die_type): Update calls to attr_to_dynamic_prop.
7353
b86352cf
AB
73542019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
7355
7356 * dwarf2read.c (read_subrange_index_type): New function.
7357 (read_subrange_type): Move code into new function and call it.
7358 * gdbtypes.c (create_range_type): Add some asserts.
7359
603490bf
AB
73602019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
7361
7362 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
7363 update return statements.
7364 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
7365 declaration, and update comment to match.
7366 * gdbtypes.c (resolve_dynamic_array): Update call to
7367 dwarf2_evaluate_property to match new return type.
7368
592f9d27
AB
73692019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
7370
7371 * valarith.c (value_subscripted_rvalue): Change lowerbound
7372 parameter type from int to LONGEST.
7373 * value.h (value_subscripted_rvalue): Likewise in declaration.
7374
60cfcb20
AB
73752019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
7376
7377 * cli/cli-utils.c (info_print_command_completer): New function.
7378 * cli/cli-utils.h: Add 'completer.h' include, and forward
7379 declaration for 'struct cmd_list_element'.
7380 (info_print_command_completer): Declare.
7381 * stack.c (_initialize_stack): Add completer for 'info locals' and
7382 'info args'.
7383 * symtab.c (_initialize_symtab): Add completer for 'info
7384 variables' and 'info functions'.
7385 * NEWS: Mention completion for additional info commands.
7386
b16507e0
AB
73872019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
7388
7389 * cli/cli-utils.c (extract_info_print_args): Delete.
7390 (extract_arg_maybe_quoted): Delete.
7391 (info_print_options_defs): New variable.
7392 (make_info_print_options_def_group): New function.
7393 (extract_info_print_options): Define new function.
7394 * cli/cli-utils.h (extract_info_print_args): Delete.
7395 (struct info_print_options): New structure.
7396 (extract_info_print_options): Declare new function.
7397 * stack.c (info_locals_command): Update to use new
7398 extract_info_print_options, also add a header comment.
7399 (info_args_command): Likewise.
7400 * symtab.c (info_variables_command): Likewise.
7401 (info_functions_command): Likewise.
7402
021d8588
AB
74032019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
7404
7405 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
7406 to extract string arguments.
7407 * common/common-utils.c (extract_string_maybe_quoted): New function.
7408 * common/common-utils.h (extract_string_maybe_quoted): Declare.
7409
b777eb6d
TT
74102019-07-11 Tom Tromey <tromey@adacore.com>
7411
7412 * main.c (get_init_files): Use GDBINIT, not gdbinit.
7413 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
7414 * top.h (gdbinit): Don't declare.
7415 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
7416 into...
7417 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
7418 * top.c (gdb_init): Don't call init_cli_cmds.
7419 (gdbinit): Remove.
7420 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
7421
72ee03ff
TT
74222019-07-11 Tom Tromey <tromey@adacore.com>
7423
7424 * python/py-inferior.c (add_thread_object): Don't use thread_obj
7425 after it has been moved.
7426
00db9531
SM
74272019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
7428
7429 * valops.c (value_must_coerce_to_target): Change return type to
7430 bool.
7431 * value.h (value_must_coerce_to_target): Likewise.
7432
f2478a7e
SM
74332019-07-10 Simon Marchi <simon.marchi@efficios.com>
7434
7435 * breakpoint.c (is_hardware_watchpoint): Remove
7436 forward-declaration.
7437 (is_masked_watchpoint): Change return type to bool.
7438 (is_tracepoint): Likewise.
7439 (is_breakpoint): Likewise.
7440 (is_hardware_watchpoint): Likewise.
7441 (is_watchpoint): Likewise.
7442 (is_no_memory_software_watchpoint): Likewise.
7443 (is_catchpoint): Likewise.
7444 (breakpoint_1): Make FILTER parameter's return type bool.
7445 is_masked_watchpoint): Change return type to bool.
7446 (save_breakpoints): Make FILTER parameter's return type bool.
7447 * breakpoint.h (is_breakpoint): Change return type to bool.
7448 (is_watchpoint): Likewise.
7449 (is_catchpoint): Likewise.
7450 (is_tracepoint): Likewise.
7451
0d12e84c
TT
74522019-07-10 Tom Tromey <tom@tromey.com>
7453
7454 * defs.h: Don't include gdbarch.h.
7455 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
7456 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
7457 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
7458 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
7459 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
7460 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
7461 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
7462 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
7463 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
7464 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
7465 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
7466 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
7467 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
7468 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
7469 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
7470 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
7471 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
7472 record-btrace.c, record.h, regcache-dump.c, regcache.h,
7473 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
7474 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
7475 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
7476 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
7477 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
7478 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
7479 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
7480 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
7481 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
7482
f06f1252
TT
74832019-07-10 Tom Tromey <tromey@adacore.com>
7484
7485 * ada-lang.h (is_ada_exception_catchpoint): Declare.
7486 * breakpoint.c (init_ada_exception_breakpoint): Register as
7487 bp_catchpoint.
7488 (print_one_breakpoint_location, print_one_breakpoint): Use
7489 is_ada_exception_catchpoint.
7490 * ada-lang.c (class ada_catchpoint_location): Pass
7491 bp_loc_software_breakpoint to bp_location constructor.
7492 (is_ada_exception_catchpoint): New function.
7493
7a5d944b
TT
74942019-07-10 Tom Tromey <tromey@adacore.com>
7495
7496 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
7497 VEC.
7498 (struct arm_exidx_entry): New method operator<.
7499 (struct arm_exidx_data) <section_maps>: Change type.
7500 (arm_exidx_data_free): Remove.
7501 (arm_exidx_data_key): Change type. Move lower.
7502 (arm_exidx_new_objfile): Update.
7503 (arm_compare_exidx_entries): Remove.
7504 (arm_find_exidx_entry, _initialize_arm_tdep)
7505
48c66e1d
TT
75062019-07-10 Tom Tromey <tromey@adacore.com>
7507
7508 * solib-spu.c (ocl_program_data_key): Change type.
7509 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
7510 Update.
7511
a269fbf1
TT
75122019-07-10 Tom Tromey <tromey@adacore.com>
7513
7514 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
7515 (struct solib_aix_inferior_data) <library_list>: Change type.
7516 (solib_aix_inferior_data_handle): Change type.
7517 (get_solib_aix_inferior_data): Update.
7518 (solib_aix_free_library_list): Remove.
7519 (library_list_start_library): Update.
7520 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
7521 return type.
7522 (solib_aix_get_library_list)
7523 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
7524 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
7525
c294730c
TT
75262019-07-10 Tom Tromey <tromey@adacore.com>
7527
7528 * solib-dsbt.c (struct dsbt_info): Add initializers.
7529 (solib_dsbt_pspace_data): Change type.
7530 (dsbt_pspace_data_cleanup): Remove.
7531 (get_dsbt_info, _initialize_dsbt_solib): Update.
7532
9d52077d
TT
75332019-07-10 Tom Tromey <tromey@adacore.com>
7534
7535 * spu-tdep.c (spu_overlay_data): Change type.
7536 (spu_get_overlay_table, spu_overlay_new_objfile)
7537 (_initialize_spu_tdep): Update.
7538
22a20dca
TT
75392019-07-10 Tom Tromey <tromey@adacore.com>
7540
7541 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
7542 destructor.
7543 (dbx_objfile_data_key): Change type and declare later.
7544 (DBX_SYMFILE_INFO): Rewrite.
7545 * dbxread.c (dbx_objfile_data_key): Change type.
7546 (dbx_symfile_init): Update.
7547 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
7548 (coffstab_build_psymtabs, elfstab_build_psymtabs)
7549 (stabsect_build_psymtabs, _initialize_dbxread): Update.
7550
cb60f420
TT
75512019-07-10 Tom Tromey <tromey@adacore.com>
7552
7553 * jit.c (jit_program_space_key): Change type. Move lower.
7554 (get_jit_program_space_data): Update.
7555 (jit_program_space_data_cleanup): Remove.
7556 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
7557 Update.
7558 (struct jit_program_space_data): Add initializers.
7559
51df2ae3
TT
75602019-07-10 Tom Tromey <tromey@adacore.com>
7561
7562 * solib-darwin.c (struct darwin_info): Add initializers.
7563 (solib_darwin_pspace_data): Change type.
7564 (darwin_pspace_data_cleanup): Remove.
7565 (get_darwin_info, _initialize_darwin_solib): Update.
7566
18101a35
TT
75672019-07-10 Tom Tromey <tromey@adacore.com>
7568
7569 * remote-sim.c (struct sim_inferior_data): Add initializers,
7570 constructor, and destructor.
7571 (sim_inferior_data_key): Change type. Move lower.
7572 (check_for_duplicate_sim_descriptor): Update.
7573 (get_sim_inferior_data): Use new. Update.
7574 (~sim_inferior_data_cleanup): Rename from
7575 sim_inferior_data_cleanup. Simplify.
7576 (gdbsim_close_inferior, simulator_command)
7577 (sim_command_completer, _initialize_remote_sim): Update.
7578 (next_pid, INITIAL_PID): Move earlier.
7579
05b08ac1
TT
75802019-07-10 Tom Tromey <tromey@adacore.com>
7581
7582 * python/python-internal.h (create_thread_object): Return
7583 gdbpy_ref.
7584 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
7585 * python/py-inferior.c (struct threadlist_entry): Add
7586 constructor.
7587 <thread_obj>: Now a gdbpy_ref.
7588 (thread_to_thread_object): Update.
7589 (add_thread_object): Use new.
7590 (delete_thread_object): Use delete.
7591 (infpy_threads): Update.
7592 (py_free_inferior): Update. Construct "inf_obj" after acquiring
7593 GIL.
7594
32372d80
TT
75952019-07-10 Tom Tromey <tromey@adacore.com>
7596
7597 * valops.c (value_cast): Specialize error message for Ada.
7598
5c458ae8
SM
75992019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
7600
7601 * breakpoint.c (breakpoint_1): Update doc and parameter names.
7602
4c462cb0
SM
76032019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
7604
7605 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
7606 bpstat_should_step): Return bool, adjust comments.
7607 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
7608 bpstat_should_step): Likewise.
7609
89abbcc2
AH
76102019-07-10 Alan Hayward <alan.hayward@arm.com>
7611
7612 * features/Makefile: Use feature target descriptions for Arm.
7613 * features/arm/arm-core.c: Generate new file.
7614 * features/arm/arm-fpa.c: Likewise.
7615 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
7616 * features/arm/arm-m-profile.c: Likewise.
7617 * features/arm/arm-vfpv2.c: Likewise.
7618 * features/arm/arm-vfpv3.c: Likewise.
7619 * features/arm/xscale-iwmmxt.c: Likewise.
7620 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
7621
166a82be
AH
76222019-07-10 Alan Hayward <alan.hayward@arm.com>
7623
7624 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
7625 ptrace earlier.
7626
9fb4c7e9
AH
76272019-07-10 Alan Hayward <alan.hayward@arm.com>
7628
7629 * features/aarch64-pauth.c: Regenerate.
7630
e2d0f980
SM
76312019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
7632
7633 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
7634 bool.
7635 (bpstat_what): Use false instead of 0.
7636
a38118e5
PA
76372019-07-09 Pedro Alves <palves@redhat.com>
7638
7639 * break-catch-throw.c (is_exception_catchpoint): New.
7640 * breakpoint.c (print_one_breakpoint_location): New parameter
7641 'raw_loc'. Handle it. Use
7642 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
7643 looking at the breakpoint's type.
7644 (print_one_breakpoint): If handling "maint info breakpoints", also
7645 print locations of exception catchpoints.
7646 * breakpoint.h (is_exception_catchpoint): Declare.
7647
cb1e4e32
PA
76482019-07-09 Pedro Alves <palves@redhat.com>
7649
7650 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
7651 "addr" field.
7652 (allocate_location_exception_catchpoint): New.
7653 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
7654 (initialize_throw_catchpoint_ops): Install
7655 allocate_location_exception_catchpoint as allocate_location
7656 method.
7657 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
7658 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
7659 bp_loc_other.
7660 (breakpoint_address_is_meaningful): Delete.
7661 (bl_address_is_meaningful): New.
7662 (breakpoint_locations_match): Adjust comment.
7663 (bp_location_from_bp_type): New, factored out of...
7664 (bp_location::bp_location(breakpoint *)): ... this.
7665 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
7666 factored out of...
7667 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
7668 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
7669 breakpoint_address_is_meaningful.
7670 (bp_locations_compare): Adjust comment.
7671 (update_global_location_list): Use bl_address_is_meaningful
7672 instead of breakpoint_address_is_meaningful.
7673 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
7674 explicit.
7675 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
7676 * python/py-breakpoint.c (bppy_get_location): No longer check
7677 whether location is null.
7678
b58a68fe
PA
76792019-07-09 Pedro Alves <palves@redhat.com>
7680
7681 PR c++/15468
7682 * breakpoint.c (print_one_breakpoint_location): Remove
7683 single-location assert.
7684
268a13a5
TT
76852019-07-09 Tom Tromey <tom@tromey.com>
7686
7687 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
7688 * configure: Rebuild.
7689 * configure.ac: Change common to gdbsupport.
7690 * gdbsupport: Rename from common.
7691 * acinclude.m4: Change common to gdbsupport.
7692 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
7693 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
7694 gdbsupport.
7695 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
7696 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
7697 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
7698 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
7699 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
7700 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
7701 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
7702 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
7703 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
7704 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
7705 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
7706 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
7707 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
7708 coff-pe-read.c, command.h, compile/compile-c-support.c,
7709 compile/compile-c.h, compile/compile-cplus-symbols.c,
7710 compile/compile-cplus-types.c, compile/compile-cplus.h,
7711 compile/compile-loc2c.c, compile/compile.c, completer.c,
7712 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
7713 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
7714 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
7715 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
7716 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
7717 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
7718 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
7719 features/aarch64-core.c, features/aarch64-fpu.c,
7720 features/aarch64-pauth.c, features/aarch64-sve.c,
7721 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
7722 features/i386/32bit-core.c, features/i386/32bit-linux.c,
7723 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
7724 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
7725 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
7726 features/i386/64bit-core.c, features/i386/64bit-linux.c,
7727 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
7728 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
7729 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
7730 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
7731 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
7732 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
7733 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
7734 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
7735 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
7736 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
7737 go32-nat.c, guile/guile.c, guile/scm-ports.c,
7738 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
7739 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
7740 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
7741 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
7742 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
7743 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
7744 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
7745 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
7746 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
7747 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
7748 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
7749 minsyms.c, mips-linux-tdep.c, namespace.h,
7750 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
7751 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
7752 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
7753 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
7754 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
7755 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
7756 nat/linux-waitpid.c, nat/mips-linux-watch.c,
7757 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
7758 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
7759 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
7760 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
7761 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
7762 procfs.c, producer.c, progspace.h, psymtab.h,
7763 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
7764 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
7765 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
7766 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
7767 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
7768 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
7769 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
7770 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
7771 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
7772 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
7773 target-memory.c, target.c, target.h, target/waitstatus.c,
7774 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
7775 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
7776 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
7777 unittests/array-view-selftests.c,
7778 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
7779 unittests/common-utils-selftests.c,
7780 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
7781 unittests/format_pieces-selftests.c,
7782 unittests/function-view-selftests.c,
7783 unittests/lookup_name_info-selftests.c,
7784 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
7785 unittests/mkdir-recursive-selftests.c,
7786 unittests/observable-selftests.c,
7787 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
7788 unittests/parse-connection-spec-selftests.c,
7789 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
7790 unittests/scoped_fd-selftests.c,
7791 unittests/scoped_mmap-selftests.c,
7792 unittests/scoped_restore-selftests.c,
7793 unittests/string_view-selftests.c, unittests/style-selftests.c,
7794 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
7795 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
7796 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
7797 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
7798 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
7799 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
7800
5b0e2db4
AB
78012019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
7802
7803 * linespec.c (decode_digits_list_mode): Set explicit_line to a
7804 bool value.
7805 (decode_digits_ordinary): Set explicit_line field in sal.
7806 * symtab.c (skip_prologue_sal): Don't skip prologue for a
7807 symtab_and_line that was set on an explicit line number in
7808 assembler code. Do always update the recorded symtab and line if
7809 we do skip the prologue.
7810
0ba852ab
AB
78112019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
7812
7813 * breakpoint.c (set_breakpoint_location_function): Remove
7814 explicit_loc parameter.
7815 (momentary_breakpoint_from_master): Update call to
7816 set_breakpoint_location_function.
7817 (add_location_to_breakpoint): Likewise.
7818
b3a7d171
AB
78192019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
7820
7821 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
7822 required features based on default bfd type when no specific bfd
7823 is present.
7824
1f6f6e21
PW
78252019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7826
7827 * NEWS: Mention that GDB printf and eval commands can now print
7828 C-style and Ada-style convenience var strings without
7829 calling the inferior.
7830 * printcmd.c (printf_c_string): Locally print GDB internal var
7831 instead of transiting via the inferior.
7832 (printf_wide_c_string): Likewise.
7833
78342019-07-04 Alan Hayward <alan.hayward@arm.com>
ea142fbf 7835
5862c886 7836 PR breakpoints/25011
ea142fbf
AH
7837 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
7838
0598af48
TT
78392019-07-04 Tom Tromey <tom@tromey.com>
7840
7841 PR tui/24724:
7842 * tui/tui-winsource.c (tui_clear_source_content): Update.
7843 (tui_source_window_base::set_is_exec_point_at): Fix comment.
7844 (tui_update_breakpoint_info): Update.
7845 (tui_set_exec_info_content): Update.
7846 * tui/tui-source.c (tui_set_source_content_nil): Update.
7847 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
7848 has_break.
7849 * tui/tui-data.h (enum tui_bp_flag): New.
7850 (tui_bp_flags): New enum flags type.
7851 (struct tui_source_element) <break_mode>: Change type. Rename
7852 from has_break.
7853 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
7854 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
7855 constants.
7856 * tui/tui-winsource.h: Fix comment.
7857
350fab54
AH
78582019-07-04 Alan Hayward <alan.hayward@arm.com>
7859
7860 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
7861 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
7862 (store_fpregs_to_thread)
7863 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
7864 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
7865 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
7866 (IWMMXT_REGS_SIZE): Add define.
7867 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
7868 (fetch_vfp_regs, store_vfp_regs)
7869 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
7870 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
7871
f0452268
AH
78722019-07-04 Alan Hayward <alan.hayward@arm.com>
7873
7874 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
7875 defines.
7876 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
7877 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
7878 (ARM_INT_REGISTER_SIZE): ...to this.
7879 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
7880 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
7881 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
7882 (arm_linux_collect_gregset, supply_nwfpe_register)
7883 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
7884 defines.
7885 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
7886 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
7887 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
7888 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
7889 (arm_return_in_memory, arm_store_return_value)
7890 (arm_get_longjmp_target, arm_register_g_packet_guesses)
7891 (arm_record_ld_st_multiple): Likewise.
7892 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
7893 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
7894
e935475c
AH
78952019-07-04 Alan Hayward <alan.hayward@arm.com>
7896
7897 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
7898 AARCH64_DISPLACED_MODIFIED_INSNS.
7899 * aarch64-tdep.c (struct aarch64_displaced_step_data)
7900 (aarch64_displaced_step_copy_insn): Likewise.
7901 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
7902 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
7903 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
7904 ARM_DISPLACED_MODIFIED_INSNS.
7905 * arm-tdep.c (arm_gdbarch_init): Likewise.
7906 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
7907 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
7908 (struct arm_displaced_step_closure): Use
7909 ARM_DISPLACED_MODIFIED_INSNS.
7910
df0bb381
AH
79112019-07-04 Alan Hayward <alan.hayward@arm.com>
7912
7913 * features/Makefile: Remove unused xml files.
7914 * features/aarch64.xml: Remove.
7915 * features/i386/amd64-avx-avx512-linux.xml: Remove.
7916 * features/i386/amd64-avx-avx512.xml: Remove.
7917 * features/i386/amd64-avx-linux.xml: Remove.
7918 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
7919 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
7920 * features/i386/amd64-avx-mpx-linux.xml: Remove.
7921 * features/i386/amd64-avx-mpx.xml: Remove.
7922 * features/i386/amd64-avx.xml: Remove.
7923 * features/i386/amd64-linux.xml: Remove.
7924 * features/i386/amd64-mpx-linux.xml: Remove.
7925 * features/i386/amd64-mpx.xml: Remove.
7926 * features/i386/amd64.xml: Remove.
7927 * features/i386/i386-avx-avx512-linux.xml: Remove.
7928 * features/i386/i386-avx-avx512.xml: Remove.
7929 * features/i386/i386-avx-linux.xml: Remove.
7930 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
7931 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
7932 * features/i386/i386-avx-mpx-linux.xml: Remove.
7933 * features/i386/i386-avx-mpx.xml: Remove.
7934 * features/i386/i386-avx.xml: Remove.
7935 * features/i386/i386-linux.xml: Remove.
7936 * features/i386/i386-mmx-linux.xml: Remove.
7937 * features/i386/i386-mmx.xml: Remove.
7938 * features/i386/i386-mpx-linux.xml: Remove.
7939 * features/i386/i386-mpx.xml: Remove.
7940 * features/i386/i386.xml: Remove.
7941 * features/i386/x32-avx-avx512-linux.xml: Remove.
7942 * features/i386/x32-avx-linux.xml: Remove.
7943 * features/i386/x32-linux.xml: Remove.
7944
edd6266a
AH
79452019-07-04 Alan Hayward <alan.hayward@arm.com>
7946
7947 * regformats/aarch64.dat: Remove.
7948 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
7949 * regformats/i386/amd64-avx-linux.dat: Remove.
7950 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
7951 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
7952 * regformats/i386/amd64-linux.dat: Remove.
7953 * regformats/i386/amd64-mpx-linux.dat: Remove.
7954 * regformats/i386/amd64.dat: Remove.
7955 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
7956 * regformats/i386/i386-avx-linux.dat: Remove.
7957 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
7958 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
7959 * regformats/i386/i386-linux.dat: Remove.
7960 * regformats/i386/i386-mmx-linux.dat: Remove.
7961 * regformats/i386/i386-mpx-linux.dat: Remove.
7962 * regformats/i386/i386.dat: Remove.
7963 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
7964 * regformats/i386/x32-avx-linux.dat: Remove.
7965 * regformats/i386/x32-linux.dat: Remove.
7966
2b40fda7
AH
79672019-07-04 Alan Hayward <alan.hayward@arm.com>
7968
7969 * aarch64-tdep.c: Remove xml self tests.
7970 * amd64-linux-tdep.c: Likewise.
7971 * amd64-tdep.c: Likewise.
7972 * i386-linux-tdep.c: Likewise.
7973 * i386-tdep.c: Likewise.
7974
5f4ba3e7
PA
79752019-07-03 Pedro Alves <palves@redhat.com>
7976
7977 PR cli/24732
7978 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
7979 (pipe_cmd_option_defs): New.
7980 (make_pipe_cmd_options_def_group): New.
7981 (pipe_command): Use gdb::option::process_options.
7982 (pipe_command_completer): New function.
7983 (_initialize_cli_cmds): Install completer for "pipe" command.
7984
3d9be6f5
PA
79852019-07-03 Pedro Alves <palves@redhat.com>
7986
7987 * cli/cli-option.c (union option_value) <string>: New field.
7988 (struct option_def_and_value): Add ctor, move ctor, dtor and
7989 use DISABLE_COPY_AND_ASSIGN.
7990 (option_def_and_value::clear_value): New.
7991 (parse_option, save_option_value_in_ctx, get_val_type_str)
7992 (add_setshow_cmds_for_options): Handle var_string.
7993 * cli-option.h (union option_def::var_address) <string>: New
7994 field.
7995 (struct string_option_def): New.
7996 * maint-test-options.c (struct test_options_opts): Add default
7997 ctor and use DISABLE_COPY_AND_ASSIGN.
7998 <string_opt>: New field.
7999 (test_options_opts::~test_options_opts): New.
8000 (test_options_opts::dump): Also dump "-string".
8001 (test_options_option_defs): Install "string.
8002
41fc454c
PA
80032019-07-03 Pedro Alves <palves@redhat.com>
8004
8005 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
8006 option_value with a null enumeration.
8007 (complete_options): Save the option values in the context.
8008 (save_option_value_in_ctx): New, factored out from ...
8009 (process_options): ... here.
8010 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
8011 of the function.
8012 * maint-test-options.c (test_options_opts::dump): New, factored
8013 out from ...
8014 (maintenance_test_options_command_mode): ... here.
8015 (maintenance_test_options_command_completion_result): Delete.
8016 (maintenance_test_options_command_completion_text): Update
8017 comment.
8018 (maintenance_show_test_options_completion_result): Change
8019 prototype. Just print
8020 maintenance_test_options_command_completion_text.
8021 (save_completion_result): New.
8022 (maintenance_test_options_completer_mode): Pass options context to
8023 complete_options, and then save a dump.
8024 (_initialize_maint_test_options): Use add_cmd to install "maint
8025 show test-options-completion-result".
8026
fdbc9870
PA
80272019-07-03 Pedro Alves <palves@redhat.com>
8028
8029 * NEWS (New commands): Mention "with" and "maint with".
8030 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
8031 (with_command, with_command_completer): New.
8032 (pipe_command): Adjust to new repeat_previous
8033 interface.
8034 (_initialize_cli_cmds): Install the "with" command and its "w"
8035 alias.
8036 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
8037 declarations.
8038 * cli/cli-setshow.c (parse_cli_var_uinteger)
8039 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
8040 argument strings for all var_types.
8041 (get_setshow_command_value_string): New, factored out from ...
8042 (do_show_command): ... this.
8043 * cli/cli-setshow.h: Include <string>.
8044 (get_setshow_command_value_string): Declare.
8045 * command.h (repeat_previous): Now returns const char *. Adjust
8046 comment.
8047 * maint.c: Include "cli/cli-cmds.h".
8048 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
8049 (_initialize_maint_cmds): Register the "maintenance with" command.
8050 * top.c (repeat_previous): Move bits from pipe_command here:
8051 Return the saved command line, if any; error out if there's no
8052 command to relaunch.
8053
c6ac8931
PA
80542019-07-03 Pedro Alves <palves@redhat.com>
8055
8056 * NEWS (New commands): Mention "maint set/show test-settings"
8057 instead of "maint test-settings".
8058 * maint-test-settings.c (maintenance_test_settings_list): Delete.
8059 (maintenance_test_settings_set_list): Rename to ...
8060 (maintenance_set_test_settings_list): ... this.
8061 (maintenance_test_settings_show_list): Rename to ...
8062 (maintenance_show_test_settings_list): ... this.
8063 (maintenance_test_settings_cmd): Delete.
8064 (maintenance_test_settings_set_cmd): ...
8065 (maintenance_set_test_settings_cmd): ... this.
8066 (maintenance_test_settings_show_cmd): ...
8067 (maintenance_show_test_settings_cmd): ... this.
8068 (maintenance_test_settings_show_value_cmd):
8069 (maintenance_show_test_settings_value_cmd): ... this.
8070 (_initialize_maint_test_settings): No longer install the "maint
8071 test-settings" prefix command. Rename "maint test-settings set"
8072 to "maint set test-settings", and "maint test-settings show" to
8073 "maint show test-settings". Adjust all subcommands.
8074
d1fcf2fd
PA
80752019-07-03 Pedro Alves <palves@redhat.com>
8076
8077 * maint-test-settings.c: Fix file's intro comment. Replace all
8078 references to "test-options" with references to "test-settings",
8079 in comments.
8080
970f9d09
PA
80812019-07-03 Pedro Alves <palves@redhat.com>
8082
8083 * maint-test-settings.c (maintenance_test_settings_xxx)
8084 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
8085 New.
8086 (maintenance_test_settings_enums): Use them.
8087 (maintenance_test_settings_enum): Default to
8088 maintenance_test_settings_xxx.
8089 (_initialize_maint_test_settings): Initialize
8090 MAINTENANCE_TEST_SETTINGS_FILENAME.
8091
f3869b1a
SM
80922019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
8093
8094 * breakpoint.h (remove_breakpoints_inf): Change return type to
8095 void, move function documentation here.
8096 * breakpoint.c (remove_breakpoints_inf): Change return type to
8097 void, move function documentation to header.
8098
54d66006
PA
80992019-07-02 Pedro Alves <palves@redhat.com>
8100
8101 * NEWS (Completion improvements): Mention "info threads".
8102 * thread.c (struct info_threads_opts, info_threads_option_defs)
8103 (make_info_threads_options_def_group): New.
8104 (info_threads_command): Use gdb::option::process_options.
8105 (info_threads_command_completer): New.
8106 (_initialize_thread): Use gdb::option::build_help to build the
8107 help text for "info threads".
8108
854f6088
SM
81092019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
8110
8111 * defs.h (generic_load): Move from here...
8112 * symfile.h (generic_load): ... to here. Rename name parameter
8113 to args.
8114 * symfile.c (generic_load): Add comment.
8115
54ee4252
TT
81162019-07-01 Tom Tromey <tromey@adacore.com>
8117
8118 * dwarf2read.c
8119 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
8120 declaration of without_params. Fix formatting.
8121
65392b3e
TT
81222019-07-01 Tom Tromey <tromey@adacore.com>
8123
8124 * ada-exp.y (find_primitive_type): Update.
8125 * ada-lang.h (ada_lookup_symbol): Update.
8126 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
8127 parameter.
8128 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
8129
7d7571f0
SDJ
81302019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
8131
8132 PR breakpoints/24541
8133 * gdbarch.c: Regenerate.
8134 * gdbarch.h: Regenerate.
8135 * gdbarch.sh: Add 'stap_adjust_register'.
8136 * i386-tdep.c: Include '<unordered_set>'.
8137 (i386_stap_adjust_register): New function.
8138 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
8139 * stap-probe.c (stap_parse_register_operand): Call
8140 'gdbarch_stap_adjust_register'.
8141
5af5392a
SDJ
81422019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
8143
8144 PR python/24742
8145 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
8146 * python/python.c (do_start_initialization): Use 'xmalloc'
8147 instead of 'PyMem_Malloc'.
8148
10d06d82
TT
81492019-06-28 Tom Tromey <tromey@adacore.com>
8150
8151 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
8152 for Ada.
8153
1b7f24cd
TT
81542019-06-27 Tom Tromey <tromey@adacore.com>
8155
8156 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
8157 objfile_key.
8158 (arm_find_mapping_symbol, arm_record_special_symbol)
8159 (_initialize_arm_tdep): Update.
8160 (arm_objfile_data_free): Remove.
8161
3d507ff2
TT
81622019-06-27 Tom Tromey <tromey@adacore.com>
8163
8164 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
8165 to cp_print_static_field.
8166
762c164d
TT
81672019-06-26 Tom Tromey <tromey@adacore.com>
8168
8169 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
8170 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
8171 declare.
8172
aa2f9bcf
AH
81732019-06-26 Alan Hayward <alan.hayward@arm.com>
8174
8175 * features/aarch64-core.c (create_feature_aarch64_core):
8176 Regenerate.
8177 * features/aarch64-core.xml: Add cpsr flags.
8178
3426ae57
AH
81792019-06-26 Alan Hayward <alan.hayward@arm.com>
8180
8181 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
8182 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
8183
4838e44c
SM
81842019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
8185
8186 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
8187 field.
8188 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
8189 use.
8190 (arm_record_special_symbol): Don't insert new symbol in sorted
8191 position, push it at the end.
8192
54cc7474
SM
81932019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
8194
8195 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
8196 (arm_mapping_symbol_s): Remove.
8197 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
8198 (arm_mapping_symbol_vec): New typedef.
8199 (struct arm_per_objfile): Add constructor.
8200 <section_maps>: Change type to
8201 std::unique_ptr<arm_mapping_symbol_vec[]>.
8202 (arm_compare_mapping_symbols): Remove.
8203 (arm_find_mapping_symbol): Adjust to section_maps type change.
8204 (arm_objfile_data_free): Call delete on arm_per_objfile.
8205 (arm_record_special_symbol): Adjust to section_maps type change.
8206 Allocate arm_per_objfile with new.
8207
b65b566c
PW
82082019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8209
8210 * cli/cli-cmds.c (alias_command): Compare the alias prefix
8211 with the command prefix.
8212
c2fc64f5
TT
82132019-06-25 Tom Tromey <tom@tromey.com>
8214
8215 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
8216 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
8217
fb54fa76
TT
82182019-06-25 Tom Tromey <tom@tromey.com>
8219
8220 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
8221 type.
8222 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
8223 protected.
8224
f7952c57
TT
82252019-06-25 Tom Tromey <tom@tromey.com>
8226
8227 * tui/tui-winsource.c
8228 (tui_source_window_base::set_is_exec_point_at): Add check against
8229 LOA_ADDRESS.
8230
17568d78
TT
82312019-06-25 Tom Tromey <tom@tromey.com>
8232
8233 * tui/tui-source.c (tui_set_source_content): Don't check before
8234 xfree.
8235 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
8236
53e7cdba
TT
82372019-06-25 Tom Tromey <tom@tromey.com>
8238
8239 * tui/tui-winsource.h (tui_update_source_window_as_is)
8240 (tui_alloc_source_buffer, tui_line_is_displayed)
8241 (tui_addr_is_displayed): Change type of win_info.
8242 * tui/tui-winsource.c (tui_update_source_window_as_is)
8243 (tui_clear_source_content, tui_show_source_line)
8244 (tui_show_source_content, tui_source_window_base::refill)
8245 (tui_source_window_base::set_is_exec_point_at)
8246 (tui_source_window_base::set_is_exec_point_at)
8247 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
8248 (tui_alloc_source_buffer, tui_line_is_displayed)
8249 (tui_addr_is_displayed): Change type of win_info. Update.
8250 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
8251 (tui_source_window_base::do_make_visible_with_new_height):
8252 Update.
8253 * tui/tui-source.c (tui_set_source_content)
8254 (tui_set_source_content_nil)
8255 (tui_source_window::do_scroll_vertical): Update.
8256 * tui/tui-layout.c (show_layout): Update.
8257 * tui/tui-disasm.c (tui_set_disassem_content)
8258 (tui_disasm_window::do_scroll_vertical): Update.
8259 * tui/tui-data.h (tui_win_content): Remove.
8260 (struct tui_gen_win_info) <content, content_size>: Remove.
8261 (struct tui_source_element): Add initializers and destructor.
8262 (union tui_which_element, struct tui_win_element): Remove.
8263 (struct tui_source_window_base) <content>: New field.
8264 (struct tui_data_window): Remove destructor.
8265 (tui_alloc_content, tui_free_win_content)
8266 (tui_free_all_source_wins_content): Don't declare.
8267 * tui/tui-data.c (tui_initialize_static_data): Update.
8268 (init_content_element, tui_alloc_content): Remove.
8269 (~tui_gen_win_info): Update.
8270 (~tui_data_window, tui_free_all_source_wins_content)
8271 (tui_free_win_content, free_content, free_content_elements):
8272 Remove.
8273
7908abbf
TT
82742019-06-25 Tom Tromey <tom@tromey.com>
8275
8276 * tui/tui-winsource.h (tui_clear_source_content)
8277 (tui_erase_source_content, tui_show_source_content): Change type
8278 of win_info.
8279 * tui/tui-winsource.c (tui_clear_source_content)
8280 (tui_erase_source_content, tui_show_source_content): Change type
8281 of win_info.
8282 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
8283 * tui/tui-source.h (tui_set_source_content_nil): Change type of
8284 win_info.
8285 * tui/tui-source.c (tui_set_source_content_nil): Change type of
8286 win_info.
8287 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
8288
02c28df0
TT
82892019-06-25 Tom Tromey <tom@tromey.com>
8290
8291 * tui/tui-winsource.c (tui_clear_source_content)
8292 (tui_source_window_base::set_is_exec_point_at): Update.
8293 * tui/tui-source.c (tui_set_source_content_nil): Update.
8294 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
8295 a bool.
8296 * tui/tui-data.c (init_content_element): Update.
8297
6658b1bf
TT
82982019-06-25 Tom Tromey <tom@tromey.com>
8299
8300 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
8301 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
8302 * tui/tui-layout.c (init_and_make_win): Update.
8303 * tui/tui.h (enum tui_win_type): Update.
8304 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
8305 tui_win_is_auxillary.
8306 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
8307 tui_win_is_auxillary.
8308
21e1c91e
TT
83092019-06-25 Tom Tromey <tom@tromey.com>
8310
8311 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
8312 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
8313 (tui_delete_data_content_windows, tui_display_all_data)
8314 (tui_data_window::do_scroll_vertical, tui_display_data_from):
8315 Update.
8316 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
8317 * tui/tui-regs.c (tui_last_regs_line_no)
8318 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
8319 (tui_show_registers): Update.
8320 (tui_show_register_group): Return void. Update.
8321 (tui_display_registers_from, tui_display_reg_element_at_line)
8322 (tui_display_registers_from_line, tui_check_register_values):
8323 Update.
8324 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
8325 member.
8326 (struct tui_data_window) <regs_content>: Now a std::vector.
8327 <regs_content_count>: Remove.
8328 (tui_add_content_elements, tui_free_data_content): Don't declare.
8329 * tui/tui-data.c (tui_data_window::clear_detail): Update.
8330 (init_content_element): Remove DATA_WIN case. Add assert.
8331 (tui_add_content_elements): Remove.
8332 (tui_data_window): Update.
8333 (tui_free_data_content): Remove.
8334 (free_content_elements): Remove DATA_WIN case.
8335
115ac53b
TT
83362019-06-25 Tom Tromey <tom@tromey.com>
8337
8338 * tui/tui-data.c (tui_data_item_window): Update.
8339 * tui/tui-windata.h (tui_check_data_values): Don't declare.
8340 * tui/tui-windata.c (tui_display_all_data)
8341 (tui_display_data_from_line): Update.
8342 (tui_check_data_values): Remove.
8343 * tui/tui-regs.c (tui_show_register_group)
8344 (tui_display_reg_element_at_line): Update.
8345 * tui/tui-hooks.c (tui_register_changed)
8346 (tui_refresh_frame_and_register_information): Call
8347 tui_check_register_values.
8348 * tui/tui-data.h (struct tui_data_window) <data_content,
8349 data_content_count, data_type>: Remove.
8350 (enum tui_data_type): Remove.
8351
8352 * tui/tui-data.c (tui_data_window::clear_detail)
8353 (~tui_data_window): Update.
8354
eaf9738b
TT
83552019-06-25 Tom Tromey <tom@tromey.com>
8356
8357 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
8358 declare.
8359 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
8360 Rename from tui_first_data_item_displayed. Update.
8361 (tui_data_window::refresh_all)
8362 (tui_data_window::do_scroll_vertical): Update.
8363 * tui/tui-data.h (struct tui_data_window)
8364 <first_data_item_displayed>: Declare new method.
8365
31ca4723
TT
83662019-06-25 Tom Tromey <tom@tromey.com>
8367
8368 * tui/tui-data.h (tui_init_generic_part): Don't declare.
8369 * tui/tui-data.c (tui_init_generic_part): Remove, moving
8370 contents...
8371 (tui_initialize_static_data): ...here.
8372
41bcff7f
TT
83732019-06-25 Tom Tromey <tom@tromey.com>
8374
8375 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
8376 (tui_display_registers_from, tui_check_register_values): Update.
8377 (tui_display_register): Remove win_info parameter; update.
8378 (tui_get_register): Change type of parameters.
8379 * tui/tui-data.h (struct tui_data_element): Remove.
8380 (union tui_which_element) <data>: Remove.
8381 <data_window>: Change type.
8382 (struct tui_data_item_window): New.
8383 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
8384 case. Add assert.
8385 (~tui_data_item_window): New destructor.
8386 (free_content_elements): Remove DATA_ITEM_WIN case.
8387
d2802c33
TT
83882019-06-25 Tom Tromey <tom@tromey.com>
8389
8390 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
8391 Remove.
8392
dd835f8b
TT
83932019-06-25 Tom Tromey <tom@tromey.com>
8394
8395 * tui/tui-data.h (struct tui_command_element): Remove.
8396 (union tui_which_element) <command>: Remove.
8397 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
8398 assert.
8399 (free_content_elements): Remove CMD_WIN case.
8400
bd7db367
TT
84012019-06-25 Tom Tromey <tom@tromey.com>
8402
8403 * tui/tui-layout.c (tui_set_layout): Update.
8404 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
8405 * tui/tui-data.c (layout_def): Update.
8406
3add462f
TT
84072019-06-25 Tom Tromey <tom@tromey.com>
8408
8409 * tui/tui-wingeneral.c (tui_refresh_all): Update.
8410 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
8411 (tui_source_window_base::set_new_height): Update.
8412 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
8413 Update.
8414 (tui_set_locator_fullname, tui_set_locator_info)
8415 (tui_show_frame_info): Update.
8416 * tui/tui-source.c (tui_set_source_content)
8417 (tui_source_is_displayed): Update.
8418 * tui/tui-layout.c (show_source_disasm_command, show_data)
8419 (show_source_or_disasm_and_command): Update.
8420 * tui/tui-disasm.c (tui_set_disassem_content)
8421 (tui_get_begin_asm_address): Update.
8422 * tui/tui-data.h (struct tui_locator_element): Remove.
8423 (union tui_which_element) <locator>: Remove.
8424 (struct tui_locator_window): New.
8425 (tui_locator_win_info_ptr): Change return type.
8426 * tui/tui-data.c (_locator): Change type.
8427 (tui_locator_win_info_ptr): Change return type.
8428 (init_content_element): Remove LOCATOR_WIN case. Add assert.
8429 (tui_alloc_content): Add assert.
8430
489e9d8b
TT
84312019-06-25 Tom Tromey <tom@tromey.com>
8432
8433 * tui/tui-winsource.c
8434 (tui_exec_info_window::maybe_allocate_content): New method.
8435 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
8436 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
8437 (make_source_or_disasm_window): Add cast.
8438 * tui/tui-data.h (union tui_which_element) <simple_string>:
8439 Remove.
8440 (struct tui_source_info): New.
8441 (struct tui_source_window_base) <execution_info>: Change type.
8442 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
8443 case, and add assert.
8444 (tui_alloc_content): Add assert.
8445
c3fabb7d
TT
84462019-06-25 Tom Tromey <tom@tromey.com>
8447
8448 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
8449 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
8450 * tui/tui-data.c (tui_alloc_win_info): Remove.
8451
bbc228ee
TT
84522019-06-25 Tom Tromey <tom@tromey.com>
8453
8454 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
8455 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
8456 can_highlight.
8457
5fcee43a
TT
84582019-06-25 Tom Tromey <tom@tromey.com>
8459
8460 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
8461 make_visible_with_new_height method.
8462 (tui_win_info::make_visible_with_new_height): New method.
8463 (tui_source_window_base::do_make_visible_with_new_height)
8464 (tui_data_window::do_make_visible_with_new_height)
8465 (tui_cmd_window::do_make_visible_with_new_height): New methods.
8466 (make_visible_with_new_height): Remove.
8467 (tui_resize_all, tui_adjust_win_heights): Use
8468 make_visible_with_new_height method.
8469 * tui/tui-data.h (struct tui_win_info)
8470 <do_make_visible_with_new_height, make_visible_with_new_height>:
8471 New methods.
8472 (struct tui_source_window_base, struct tui_data_window)
8473 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
8474 methods.
8475
d83f1fe6
TT
84762019-06-25 Tom Tromey <tom@tromey.com>
8477
8478 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
8479 method.
8480 (update_tab_width): Call update_tab_width method.
8481 * tui/tui-data.h (struct tui_win_info)
8482 (struct tui_source_window_base) <update_tab_width>: New methods.
8483
17374de4
TT
84842019-06-25 Tom Tromey <tom@tromey.com>
8485
8486 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
8487 parameter.
8488 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
8489 parameter.
8490 (tui_gen_win_info::make_visible): Update.
8491 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
8492 parameter.
8493 * tui/tui-data.h (enum tui_box): New enum.
8494 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
8495
f936bca2
TT
84962019-06-25 Tom Tromey <tom@tromey.com>
8497
8498 * tui/tui-layout.c (make_source_or_disasm_window): Always use
8499 init_and_make_win for EXEC_INFO_WIN.
8500 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
8501 longer inline.
8502 (struct tui_win_info) <~tui_win_info>: Inline.
8503 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
8504 Don't declare.
8505 * tui/tui-data.c (source_win, disasm_win): Remove globals.
8506 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
8507 Remove.
8508 (tui_initialize_static_data): Update.
8509 (~tui_gen_win_info): Handle more cleanup here.
8510 (~tui_source_window_base): Delete "execution_info".
8511 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
8512
d6ba6a11
TT
85132019-06-25 Tom Tromey <tom@tromey.com>
8514
8515 * tui/tui-layout.c (make_command_window): Don't set
8516 can_highlight.
8517 (show_source_disasm_command): Call the reset method.
8518 (show_data): Don't set can_highlight. Call the reset method.
8519 (tui_gen_win_info::reset): Rename from init_gen_win_info
8520 (init_and_make_win): Simplify. Return tui_gen_win_info.
8521 (show_source_or_disasm_and_command): Call the reset method.
8522 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
8523 (struct tui_cmd_window): Set can_highlight.
8524
48a3bd16
TT
85252019-06-25 Tom Tromey <tom@tromey.com>
8526
8527 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
8528 from make_visible.
8529 (tui_make_visible, tui_make_invisible): Rewrite.
8530 (tui_win_info::make_visible): Remove.
8531 (tui_source_window_base::make_visible): Update.
8532 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
8533 method. Moved from...
8534 (struct tui_win_info) <make_visible>: ...here.
8535
c3bd716f
TT
85362019-06-25 Tom Tromey <tom@tromey.com>
8537
8538 * tui/tui-winsource.c
8539 (tui_source_window_base::do_scroll_horizontal): Remove direction
8540 parameter.
8541 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
8542 direction parameter.
8543 * tui/tui-win.c (tui_win_info::forward_scroll)
8544 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
8545 (tui_win_info::right_scroll): Update.
8546 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
8547 direction parameter.
8548 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
8549 direction parameter.
8550 * tui/tui-data.h (enum tui_scroll_direction): Remove.
8551 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
8552 Remove direction parameter.
8553 (struct tui_source_window_base, struct tui_source_window)
8554 (struct tui_disasm_window, struct tui_data_window)
8555 (struct tui_cmd_window): Update.
8556
21c32dca
TT
85572019-06-25 Tom Tromey <tom@tromey.com>
8558
8559 * tui/tui-winsource.h (tui_set_exec_info_content)
8560 (tui_show_exec_info_content, tui_erase_exec_info_content)
8561 (tui_clear_exec_info_content, tui_update_exec_info): Change
8562 argument to tui_source_window_base.
8563 * tui/tui-winsource.c (tui_set_exec_info_content)
8564 (tui_show_exec_info_content, tui_erase_exec_info_content)
8565 (tui_clear_exec_info_content, tui_update_exec_info): Change
8566 argument to tui_source_window_base.
8567
73fbdc65
TT
85682019-06-25 Tom Tromey <tom@tromey.com>
8569
8570 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
8571 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
8572
33325343
TT
85732019-06-25 Tom Tromey <tom@tromey.com>
8574
8575 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
8576 check.
8577
29d2c474
TT
85782019-06-25 Tom Tromey <tom@tromey.com>
8579
8580 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
8581 type to void.
8582 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
8583 type to void.
8584 * tui/tui-source.c (tui_set_source_content): Update.
8585 * tui/tui-disasm.c (tui_set_disassem_content): Update.
8586
152f3f4b
TT
85872019-06-25 Tom Tromey <tom@tromey.com>
8588
8589 * tui/tui-win.c (window_name_completer, tui_set_focus)
8590 (tui_all_windows_info): Use name method.
8591 * tui/tui-data.h (struct tui_gen_win_info)
8592 (struct tui_source_window, struct tui_disasm_window)
8593 (struct tui_data_window, struct tui_cmd_window) <name>: New
8594 method.
8595 (tui_win_name): Don't declare.
8596 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
8597 (tui_win_name): Remove.
8598
be4da588
TT
85992019-06-25 Tom Tromey <tom@tromey.com>
8600
8601 * tui/tui-winsource.h (tui_update_source_window)
8602 (tui_update_source_window_as_is): Change parameter type.
8603 * tui/tui-winsource.c (tui_update_source_window): Change win_info
8604 to be a tui_source_window_base.
8605 (tui_update_source_window_as_is): Likewise.
8606 * tui/tui-win.c (make_visible_with_new_height): Update.
8607
5b81daba
TT
86082019-06-25 Tom Tromey <tom@tromey.com>
8609
8610 * tui/tui-winsource.c (tui_erase_source_content)
8611 (tui_show_source_content, tui_show_exec_info_content)
8612 (tui_erase_exec_info_content): Use refresh_window method.
8613 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
8614 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
8615 from tui_refresh_win.
8616 (tui_data_window::refresh_window): New method.
8617 (tui_win_info::refresh, tui_source_window_base::refresh)
8618 (tui_refresh_all): Use refresh_window method.
8619 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
8620 method.
8621 * tui/tui-regs.c (tui_display_register): Call refresh_window
8622 method.
8623 * tui/tui-layout.c (show_source_disasm_command)
8624 (show_source_or_disasm_and_command): Call refresh_window method.
8625 * tui/tui-data.h (struct tui_gen_win_info)
8626 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
8627 New method.
8628
cb2ce893
TT
86292019-06-25 Tom Tromey <tom@tromey.com>
8630
8631 * tui/tui.c (tui_rl_other_window, tui_enable)
8632 (tui_is_window_visible, tui_get_command_dimension): Update.
8633 * tui/tui-winsource.c (tui_update_source_window_as_is)
8634 (tui_clear_source_content, tui_erase_source_content)
8635 (tui_show_source_line, tui_source_window_base::refill)
8636 (tui_source_window_base::do_scroll_horizontal)
8637 (tui_source_window_base::set_is_exec_point_at)
8638 (tui_update_breakpoint_info, tui_set_exec_info_content)
8639 (tui_alloc_source_buffer, tui_line_is_displayed)
8640 (tui_addr_is_displayed): Update.
8641 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
8642 (tui_check_and_display_highlight_if_needed)
8643 (tui_win_info::make_visible, tui_win_info::refresh)
8644 (tui_refresh_all): Update.
8645 * tui/tui-windata.c (tui_first_data_item_displayed)
8646 (tui_delete_data_content_windows, tui_erase_data_content)
8647 (tui_display_all_data, tui_data_window::refresh_all)
8648 (tui_check_data_values): Update.
8649 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
8650 (tui_set_win_focus_to, tui_win_info::forward_scroll)
8651 (tui_win_info::backward_scroll, tui_refresh_all_win)
8652 (tui_resize_all, tui_set_focus, tui_all_windows_info)
8653 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
8654 (tui_source_window_base::set_new_height)
8655 (tui_data_window::set_new_height)
8656 (make_invisible_and_set_new_height)
8657 (make_visible_with_new_height, new_height_ok)
8658 (parse_scrolling_args): Update.
8659 * tui/tui-stack.c (tui_show_frame_info): Update.
8660 * tui/tui-source.c (tui_set_source_content)
8661 (tui_set_source_content_nil, tui_source_is_displayed)
8662 (tui_source_window::do_scroll_vertical): Update.
8663 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
8664 (tui_display_registers_from, tui_display_reg_element_at_line)
8665 (tui_check_register_values, tui_reg_command): Update.
8666 * tui/tui-layout.c (tui_default_win_height)
8667 (show_source_disasm_command, show_data, init_and_make_win)
8668 (show_source_or_disasm_and_command): Update.
8669 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
8670 (tui_redisplay_readline, tui_mld_flush)
8671 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
8672 (tui_getc): Update.
8673 * tui/tui-disasm.c (tui_set_disassem_content)
8674 (tui_disasm_window::do_scroll_vertical): Update.
8675 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
8676 Now virtual.
8677 (struct tui_win_info): Derive from tui_gen_win_info.
8678 <~tui_win_info>: Mark as override.
8679 <generic>: Remove member.
8680 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
8681 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
8682 (~tui_data_window, ~tui_win_info)
8683 (tui_free_all_source_wins_content): Update.
8684 * tui/tui-command.c (tui_refresh_cmd_win): Update.
8685
ab313b35
TT
86862019-06-25 Tom Tromey <tom@tromey.com>
8687
8688 * tui/tui-layout.c (init_and_make_win): Use new.
8689 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
8690 destructor, initializers.
8691 (tui_alloc_generic_win_info): Don't declare.
8692 * tui/tui-data.c (_locator): Add argument to constructor.
8693 (source_win, disasm_win): New globals.
8694 (exec_info): Remove.
8695 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
8696 Update.
8697 (tui_alloc_generic_win_info): Remove.
8698 (init_content_element): Use new.
8699 (tui_win_info::tui_win_info): Update.
8700 (free_content_elements) <case DATA_WIN>: Use delete.
8701
dc2c33e4
TT
87022019-06-25 Tom Tromey <tom@tromey.com>
8703
8704 * tui/tui-wingeneral.c (tui_refresh_win): Update.
8705 * tui/tui-windata.c (tui_first_data_item_displayed)
8706 (tui_delete_data_content_windows): Update.
8707 * tui/tui-win.c (tui_data_window::set_new_height): Update.
8708 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
8709 (tui_display_registers_from, tui_check_register_values): Update.
8710 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
8711 pointer.
8712 * tui/tui-data.c (init_content_element): Update. Allocate the new
8713 window.
8714 (tui_free_data_content): Update.
8715 (free_content_elements) <case DATA_WIN>: Free the window.
8716
214a5cbe
TT
87172019-06-25 Tom Tromey <tom@tromey.com>
8718
8719 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
8720 Update.
8721 * tui/tui-layout.c (make_command_window)
8722 (show_source_disasm_command, show_data, init_and_make_win)
8723 (show_source_or_disasm_and_command): Update.
8724 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
8725 method.
8726 <can_highight, is_highlighted>: Now bool.
8727 (tui_set_win_highlight): Don't declare.
8728 * tui/tui-data.c (tui_set_win_highlight): Remove.
8729
8e2daf15
TT
87302019-06-25 Tom Tromey <tom@tromey.com>
8731
8732 * tui/tui-wingeneral.c (make_visible): Remove check of window
8733 type.
8734
8903bd8a
TT
87352019-06-25 Tom Tromey <tom@tromey.com>
8736
8737 * tui/tui-win.c (tui_win_info::max_height)
8738 (tui_cmd_window::max_height): New methods.
8739 (new_height_ok): Call max_height.
8740 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
8741 <max_height>: New method.
8742
3f02ce1e
TT
87432019-06-25 Tom Tromey <tom@tromey.com>
8744
8745 * tui/tui-win.c (tui_source_window_base::set_new_height)
8746 (tui_data_window::set_new_height): New methods.
8747 (make_invisible_and_set_new_height): Call set_new_height method.
8748 * tui/tui-data.h (struct tui_win_info)
8749 (struct tui_source_window_base, struct tui_data_window)
8750 <set_new_height>: New method.
8751
1825f487
TT
87522019-06-25 Tom Tromey <tom@tromey.com>
8753
8754 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
8755 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
8756 tui_refresh_data_win.
8757 * tui/tui-win.c (tui_source_window_base::refresh_all): New
8758 method.
8759 (tui_refresh_all_win): Call the refresh_all method.
8760 (tui_set_focus): Likewise.
8761 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
8762 (struct tui_source_window_base, struct tui_data_window) <refresh>:
8763 Likewise.
8764
ad54d15b
TT
87652019-06-25 Tom Tromey <tom@tromey.com>
8766
8767 * tui/tui-winsource.h (tui_refill_source_window)
8768 (tui_set_is_exec_point_at): Don't declare.
8769 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
8770 (tui_source_window_base::refill): Rename from
8771 tui_refill_source_window.
8772 (tui_source_window_base::do_scroll_horizontal): Update.
8773 (tui_source_window_base::set_is_exec_point_at): Rename from
8774 tui_set_is_exec_point_at.
8775 (tui_update_all_breakpoint_info): Update.
8776 * tui/tui-stack.c (tui_show_frame_info): Update.
8777 * tui/tui-layout.c (show_data): Add cast.
8778 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
8779 * tui/tui-data.h (struct tui_source_window_base) <refill,
8780 set_is_exec_point_at>: New methods.
8781 (tui_source_windows, tui_add_to_source_windows): Update types.
8782 (tui_add_to_source_windows): Remove redundant declaration.
8783 * tui/tui-data.c (source_windows): Store tui_source_window_base.
8784 (tui_source_windows): Change return type.
8785 (tui_clear_source_windows_detail): Update.
8786 (tui_add_to_source_windows): Change type of parameter.
8787 (tui_free_all_source_wins_content): Update.
8788
2042b506
TT
87892019-06-25 Tom Tromey <tom@tromey.com>
8790
8791 * tui/tui-wingeneral.c (tui_win_info::refresh)
8792 (tui_source_window_base::refresh): New methods.
8793 (tui_refresh_all): Call the refresh method.
8794 * tui/tui-data.h (struct tui_win_info)
8795 (struct tui_source_window_base) <refresh>: New method.
8796
56122977
TT
87972019-06-25 Tom Tromey <tom@tromey.com>
8798
8799 * tui/tui.h (tui_is_window_visible): Return bool.
8800 * tui/tui.c (tui_is_window_visible): Return bool.
8801 * tui/tui-wingeneral.c (tui_make_window, make_visible)
8802 (tui_make_visible, tui_make_invisible)
8803 (tui_win_info::make_visible)
8804 (tui_source_window_base::make_visible, make_all_visible)
8805 (tui_make_all_visible, tui_make_all_invisible): Update.
8806 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
8807 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
8808 bool.
8809 (struct tui_win_info, struct tui_source_window_base)
8810 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
8811 * tui/tui-data.c (tui_init_generic_part): Update.
8812
cda37efb
TT
88132019-06-25 Tom Tromey <tom@tromey.com>
8814
8815 * tui/tui-wingeneral.c (tui_win_info::make_visible)
8816 (tui_source_window_base::make_visible): New methods.
8817 (make_all_visible): Make method call.
8818 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
8819 (struct tui_source_window_base, struct tui_cmd_window): Override
8820 make_visible.
8821 (tui_win_is_source_type): Don't declare.
8822 * tui/tui-data.c (tui_win_is_source_type): Remove.
8823
6a0ee02c
TT
88242019-06-25 Tom Tromey <tom@tromey.com>
8825
8826 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
8827 NULL check.
8828
63901aec
TT
88292019-06-25 Tom Tromey <tom@tromey.com>
8830
8831 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
8832 Inline constructor. Add initializers for members.
8833 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
8834 constructors; now inline in class.
8835
ceb13a13
TT
88362019-06-25 Tom Tromey <tom@tromey.com>
8837
8838 * tui/tui-regs.c (tui_show_registers): Update.
8839 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
8840 bool.
8841 * tui/tui-data.c (tui_data_window::clear_detail)
8842 (tui_data_window): Update.
8843
238eb706
TT
88442019-06-25 Tom Tromey <tom@tromey.com>
8845
8846 * tui/tui-windata.c (tui_display_all_data)
8847 (tui_display_data_from_line, tui_display_data_from)
8848 (tui_check_data_values, tui_data_window::do_scroll_vertical):
8849 Update.
8850 * tui/tui-regs.c (tui_last_regs_line_no)
8851 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
8852 (tui_show_registers, tui_show_register_group)
8853 (tui_display_registers_from, tui_display_reg_element_at_line)
8854 (tui_display_registers_from_line, tui_check_register_values)
8855 (tui_reg_next, tui_reg_prev): Update.
8856 * tui/tui-layout.c (tui_set_layout, show_data): Update.
8857 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
8858 tui_data_window.
8859 (struct tui_win_info) <detail>: Remove. Add new fields from
8860 tui_data_info.
8861 (TUI_DATA_WIN): Add cast.
8862 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
8863 (~tui_data_window): Simplify.
8864
81491aa0
TT
88652019-06-25 Tom Tromey <tom@tromey.com>
8866
8867 * tui/tui-layout.c (show_source_disasm_command)
8868 (show_source_or_disasm_and_command): Update.
8869 * tui/tui-io.c (update_cmdwin_start_line)
8870 (tui_redisplay_readline): Update.
8871 * tui/tui-data.h (struct tui_command_info): Remove.
8872 (struct tui_win_info) <detail>: Remove command_info member.
8873 (struct tui_data_window) <start_line>: New member, from
8874 tui_command_info.
8875 (TUI_CMD_WIN): Add casts.
8876
e6e41501
TT
88772019-06-25 Tom Tromey <tom@tromey.com>
8878
8879 * tui/tui-winsource.c (tui_update_source_window)
8880 (tui_refill_source_window)
8881 (tui_source_window_base::do_scroll_horizontal)
8882 (tui_update_breakpoint_info, tui_set_exec_info_content)
8883 (tui_show_exec_info_content, tui_erase_exec_info_content)
8884 (tui_clear_exec_info_content): Update.
8885 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
8886 Update.
8887 * tui/tui-win.c (make_invisible_and_set_new_height)
8888 (make_visible_with_new_height): Update.
8889 * tui/tui-source.c (tui_set_source_content)
8890 (tui_show_symtab_source): Update.
8891 * tui/tui-layout.c (extract_display_start_addr)
8892 (show_source_disasm_command, show_data)
8893 (make_source_or_disasm_window)
8894 (show_source_or_disasm_and_command): Update.
8895 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
8896 (tui_disasm_window::do_scroll_vertical): Remove shadowing
8897 "gdbarch".
8898 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
8899 to tui_source_window_base.
8900 (struct tui_win_info) <detail>: Remove source_info member.
8901 (struct tui_source_window_base) <has_locator>: Inline.
8902 Move contents from tui_source_info; rename has_locator member to
8903 m_has_locator.
8904 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
8905 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
8906 header file.
8907 (tui_source_window_base::clear_detail, ~tui_source_window_base):
8908 Simplify.
8909 (tui_free_all_source_wins_content): Cast to
8910 tui_source_window_base.
8911
44f0e208
TT
89122019-06-25 Tom Tromey <tom@tromey.com>
8913
8914 * tui/tui-win.c (make_invisible_and_set_new_height)
8915 (make_visible_with_new_height): Call has_locator method.
8916 * tui/tui-layout.c (show_source_disasm_command, show_data)
8917 (show_source_or_disasm_and_command): Update for bool change.
8918 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
8919 (tui_win_info) <has_locator>: New method.
8920 (struct tui_source_window_base) <has_locator>: New method.
8921 (tui_win_has_locator): Don't declare.
8922 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
8923 from tui_win_has_locator.
8924 (tui_source_window_base): Use false, not FALSE.
8925
7778b912
TT
89262019-06-25 Tom Tromey <tom@tromey.com>
8927
8928 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
8929 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
8930 clear_detail method directly.
8931 (tui_clear_win_detail): Remove.
8932
f83d391c
TT
89332019-06-25 Tom Tromey <tom@tromey.com>
8934
8935 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
8936 "this", not TUI_DISASM_WIN.
8937
13446e05
TT
89382019-06-25 Tom Tromey <tom@tromey.com>
8939
8940 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
8941 declare.
8942 * tui/tui-winsource.c
8943 (tui_source_window_base::do_scroll_horizontal): Rename from
8944 tui_horizontal_source_scroll.
8945 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
8946 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
8947 from tui_vertical_data_scroll.
8948 * tui/tui-win.h (tui_scroll): Don't declare.
8949 * tui/tui-win.c (tui_win_info::forward_scroll)
8950 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
8951 (tui_win_info::right_scroll): Rename and update.
8952 (tui_scroll_forward_command, tui_scroll_backward_command)
8953 (tui_scroll_left_command, tui_scroll_right_command): Update.
8954 (tui_scroll): Remove.
8955 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
8956 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
8957 from tui_vertical_source_scroll.
8958 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
8959 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
8960 from tui_vertical_disassem_scroll.
8961 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
8962 do_scroll_horizontal>: New methods.
8963 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
8964 Likewise.
8965 (struct tui_source_window_base): Add do_scroll_horizontal.
8966 (struct tui_source_window, struct tui_disasm_window): Add
8967 do_scroll_vertical.
8968 (struct tui_data_window, struct tui_cmd_window): Add
8969 do_scroll_horizontal and do_scroll_vertical.
8970 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
8971
5cf82909
TT
89722019-06-25 Tom Tromey <tom@tromey.com>
8973
8974 * tui/tui-data.h (struct tui_source_window_base): New struct.
8975 (struct tui_source_window): Derive from tui_source_window_base.
8976 (struct tui_disasm_window): New struct.
8977 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
8978 from tui_source_window::clear_detail.
8979 (tui_source_window_base): Rename from tui_source_window.
8980 (~tui_source_window_base): Rename from ~tui_source_window.
8981 (tui_alloc_win_info): Create a tui_disasm_window.
8982
ee1d42d6
TT
89832019-06-25 Tom Tromey <tom@tromey.com>
8984
8985 * tui/tui-data.h (struct tui_source_window)
8986 (struct tui_data_window): Declare destructors.
8987 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
8988 destructors.
8989 (tui_win_info): Simplify.
8990
b4eb2452
TT
89912019-06-25 Tom Tromey <tom@tromey.com>
8992
8993 * tui/tui-winsource.c (tui_display_main)
8994 (tui_update_source_windows_with_addr)
8995 (tui_update_all_breakpoint_info): Update.
8996 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
8997 (new_height_ok, parse_scrolling_args): Update.
8998 * tui/tui-stack.c (tui_show_frame_info): Update.
8999 * tui/tui-data.h (struct tui_list): Remove.
9000 (tui_source_windows): Return a reference to a std::vector.
9001 * tui/tui-data.c (source_windows): Now a std::vector.
9002 (tui_source_windows): Change return type.
9003 (tui_clear_source_windows): Rewrite.
9004 (tui_clear_source_windows_detail, tui_add_to_source_windows)
9005 (tui_free_all_source_wins_content): Rewrite.
9006
8761a91b
TT
90072019-06-25 Tom Tromey <tom@tromey.com>
9008
9009 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
9010 (struct tui_data_window, struct tui_cmd_window): Declare
9011 clear_detail method.
9012 * tui/tui-data.c (tui_source_window::clear_detail)
9013 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
9014 methods.
9015 (tui_clear_win_detail): Simplify.
9016
0ed69eda
TT
90172019-06-25 Tom Tromey <tom@tromey.com>
9018
9019 * tui/tui-layout.c (make_source_window, make_disasm_window)
9020 (make_source_or_disasm_window): Remove win_info_ptr parameter.
9021 Return the new window.
9022 (show_source_disasm_command, show_data)
9023 (show_source_or_disasm_and_command): Update.
9024
82432e10
TT
90252019-06-25 Tom Tromey <tom@tromey.com>
9026
9027 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
9028 parameter. Return the new window.
9029 (show_source_disasm_command): Update and remove NULL check.
9030 (show_source_or_disasm_and_command): Update.
9031
ec328aa5
TT
90322019-06-25 Tom Tromey <tom@tromey.com>
9033
9034 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
9035
33b906ab
TT
90362019-06-25 Tom Tromey <tom@tromey.com>
9037
9038 * tui/tui-data.h (struct tui_win_info): Make constructor
9039 protected. Make destructor virtual. Add initializers.
9040 (tui_source_window, tui_data_window, tui_cmd_window): New
9041 classes.
9042 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
9043 constructor. Add "type" parameter.
9044 (tui_source_window, tui_data_window, tui_cmd_window): New
9045 constructors.
9046 (tui_alloc_win_info): Instantiate the appropriate subclass.
9047
e7e11af4
TT
90482019-06-25 Tom Tromey <tom@tromey.com>
9049
9050 * tui/tui-win.c (tui_resize_all): Use delete.
9051 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
9052 destructor.
9053 (tui_free_window): Don't declare.
9054 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
9055 Update.
9056
6792b55e
TT
90572019-06-25 Tom Tromey <tom@tromey.com>
9058
9059 * tui/tui-data.h (struct tui_win_info): Add constructor.
9060 * tui/tui-data.c (tui_alloc_win_info): Use new.
9061 (tui_free_window): Use delete.
9062
f95675e1
TT
90632019-06-22 Tom Tromey <tom@tromey.com>
9064
9065 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
9066 declare.
9067 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
9068
5bff081c
TT
90692019-06-22 Tom Tromey <tom@tromey.com>
9070
9071 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
9072 declare.
9073 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
9074
47e3f474
TV
90752019-06-22 Tom de Vries <tdevries@suse.de>
9076
9077 * dwarf2read.c (create_addrmap_from_aranges)
9078 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
9079 instead of '%zu'.
9080
fd5866f6
SM
90812019-06-21 Simon Marchi <simon.marchi@efficios.com>
9082
9083 * dwarf2read.h (dwarf2_section_info_def): Remove.
9084 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
9085 * dwarf2read.c (struct dwo_sections) <types>: Change type to
9086 std::vector<dwarf2_section_info>.
9087 (struct dwo_file) <~dwo_file>: Remove.
9088 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
9089 types field.
9090 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
9091 (dwarf2_read_debug_names): Likewise.
9092 (create_debug_types_hash_table): Change parameter type to
9093 array_view, adjust code accordingly.
9094 (dwarf2_locate_dwo_sections): Adjust to std::vector.
9095 (partial_die_info::fixup): Likewise.
9096 (determine_prefix): Likewise.
9097 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
9098
fb1eb2f9
SM
90992019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
9100
9101 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
9102 gdb_bfd_ref_ptr.
9103 <~dwo_file>: Remove call to gdb_bfd_unref.
9104 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
9105 gdb_bfd_ref_ptr::get.
9106
51ac9db5
SM
91072019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
9108
9109 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
9110 type to htab_up.
9111 * dwarf2read.c (struct dwo_file): Initialize fields.
9112 <~dwo_file>: New.
9113 (free_dwo_file): Remove, move content to ~dwo_file.
9114 (struct dwo_file_deleter): Remove.
9115 (dwo_file_up>: Remove custom deleter.
9116 (free_dwo_files): Remove.
9117 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
9118 dwo_files.
9119 (process_skeletonless_type_units): Call unique_ptr::get.
9120 (allocate_dwo_file_hash_table): Add deleter to created hash
9121 table. Change return type to htab_up.
9122 (lookup_dwo_file_slot): Don't memset dwo_file, call
9123 unique_ptr::get.
9124 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
9125 (create_dwo_unit_in_dwp_v2): Likewise.
9126 (open_and_init_dwo_file): Likewise.
9127 (free_dwo_file_from_slot): Remove.
9128
dc4ccb6f
SM
91292019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
9130
9131 * dwarf2read.h (struct dwarf2_section_info) <readin,
9132 is_virtual>: Change type to bool.
9133 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
9134 true instead of 1.
9135
e6a1c5cb
TT
91362019-06-19 Tom Tromey <tom@tromey.com>
9137
9138 * tui/tui-data.h (tui_init_content_element): Don't declare.
9139
6f6ffbeb
TT
91402019-06-19 Tom Tromey <tom@tromey.com>
9141
9142 * tui/tui-data.h (tui_init_win_info): Don't declare.
9143
f23f598e
TV
91442019-06-19 Tom de Vries <tdevries@suse.de>
9145
9146 * dwarf2read.h (abstract_to_concrete): Change type to
9147 std::unordered_map<sect_offset, std::vector<sect_offset>,
9148 gdb::hash_enum<sect_offset>>.
9149
680e1bee
TT
91502019-06-19 Tom Tromey <tromey@adacore.com>
9151
9152 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
9153 EVAL_AVOID_SIDE_EFFECTS specially.
9154
dcf37923
TT
91552019-06-19 Tom Tromey <tromey@adacore.com>
9156
9157 * source-cache.c (highlighter): New global.
9158 (source_cache::get_source_lines): Create a highlighter on demand.
9159
494986d5
AB
91602019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
9161
9162 * defs.h (deprecated_interactive_hook): Delete declaration.
9163 * interps.c (clear_interpreter_hooks): Remove use of
9164 deprecated_interactive_hook.
9165 * top.c (deprecated_interactive_hook): Delete definition.
9166 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
9167
3360b6e7
TV
91682019-06-18 Tom de Vries <tdevries@suse.de>
9169
9170 PR gdb/24515
9171 * dwarf2read.h (abstract_to_concrete): Change type from
9172 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
9173 std::unordered_map<sect_offset, std::vector<sect_offset>>.
9174 * dwarf2read.c (read_variable): Update.
9175 (dwarf2_fetch_die_loc_sect_off): Update.
9176
310b3441
TV
91772019-06-17 Tom de Vries <tdevries@suse.de>
9178
9179 PR gdb/24617
9180 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
9181 accessing parent[parent_len - 1].
9182
ba9777be
PP
91832019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
9184
9185 PR gdb/24364
9186 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
9187 call dtrace_process_dof with NULL dof.
9188
2b9f6e89
TV
91892019-06-16 Tom de Vries <tdevries@suse.de>
9190
9191 PR gdb/24445
9192 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
9193
431b3ead
TT
91942019-06-16 Tom Tromey <tom@tromey.com>
9195
9196 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
9197 (make_all_visible): Use address of member.
9198
d04b44a1
TT
91992019-06-16 Tom Tromey <tom@tromey.com>
9200
9201 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
9202 (tui_free_window, free_content, free_content_elements): Remove
9203 unnecessary cast.
9204 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
9205 cast.
9206 * tui/tui-regs.c (tui_show_register_group)
9207 (tui_display_registers_from, tui_display_reg_element_at_line):
9208 Remove unnecessary cast.
9209
bf5142e7
AB
92102019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
9211
9212 * linux-nat.c (normal_mask): Delete.
9213 (_initialize_linux_nat): Don't initialise normal_mask.
9214
c4973306
SM
92152019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
9216
9217 PR gdb/24445
9218 * dwarf-index-write.h (write_psymtabs_to_index): Add
9219 dwz_basename parameter.
9220 * dwarf-index-write.c (write_gdbindex): Move file writing to
9221 write_gdbindex_1. Change return type void.
9222 (assert_file_size): Move up, remove filename parameter.
9223 (write_gdbindex_1): New function.
9224 (write_debug_names): Change return type to void, call
9225 assert_file_size.
9226 (struct index_wip_file): New struct.
9227 (write_psymtabs_to_index): Add dwz_basename parameter. Move
9228 file logic to index_wip_file. Write index for dwz file if
9229 needed.
9230 (save_gdb_index_command): Pass basename of dwz file, if present.
9231 * dwarf-index-cache.c (index_cache::store): Obtain and pass
9232 build-id of dwz file, if present.
9233 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
9234 (dwarf2_get_dwz_file): Likewise.
9235 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
9236 (dwarf2_get_dwz_file): Likewise.
9237
395f9c91
TT
92382019-06-16 Tom Tromey <tom@tromey.com>
9239
9240 * coffread.c (process_coff_symbol): Use xstrdup.
9241 * value.c (create_internalvar): Use xstrdup.
9242
cafb3438
TT
92432019-06-16 Tom Tromey <tom@tromey.com>
9244
9245 * valops.c (value_cast, value_slice): Remove unnecessary cast.
9246 * breakpoint.c (stopin_command, stopat_command)
9247 (until_break_command, decode_location_default): Remove unnecessary
9248 cast.
9249 * utils.c (subset_compare): Remove unnecessary cast.
9250 * ada-lang.c (ada_update_initial_language): Remove unnecessary
9251 cast.
9252 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
9253 cast.
9254 * infcmd.c (path_command): Remove unnecessary cast.
9255 * coffread.c (decode_type): Remove unnecessary cast.
9256 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
9257 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
9258 * tui/tui-stack.c (tui_show_locator_content)
9259 (tui_show_frame_info): Remove unnecessary cast.
9260 * tui/tui-win.c (tui_scroll_forward_command)
9261 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
9262 (parse_scrolling_args): Remove unnecessary cast.
9263 * tui/tui-data.c (init_win_info, tui_del_window)
9264 (tui_free_window, tui_del_data_windows, tui_free_data_content)
9265 (free_content_elements): Remove unnecessary cast.
9266 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
9267 unnecessary cast.
9268 * tui/tui-source.c (tui_set_source_content)
9269 (tui_vertical_source_scroll): Remove unnecessary cast.
9270 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
9271 cast.
9272 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
9273 * tui/tui-regs.c (tui_display_registers_from)
9274 (tui_display_register): Remove unnecessary cast.
9275 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
9276 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
9277 (make_visible): Remove unnecessary cast.
9278 * tui/tui-winsource.c (tui_erase_source_content)
9279 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
9280 unnecessary cast.
9281 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
9282 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
9283 * stabsread.c (read_type, read_array_type, read_range_type):
9284 Remove unnecessary cast.
9285 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
9286 (parse_symbol, parse_type, upgrade_type, parse_external)
9287 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
9288 unnecessary cast.
9289 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
9290
730ead81
TT
92912019-06-16 Tom Tromey <tom@tromey.com>
9292
9293 * tui/tui-data.c (tui_alloc_generic_win_info)
9294 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
9295 checks.
9296
584a927c
AB
92972019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
9298 Andrew Burgess <andrew.burgess@embecosm.com>
9299
9300 * f-typeprint.c (f_print_type): Don't return early for not
9301 associated or not allocated types.
9302 (f_type_print_varspec_suffix): Add print_rank parameter and print
9303 ranks of array types in case they dangling.
9304 (f_type_print_base): Add print_rank parameter.
9305
30056ea0
AB
93062019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
9307
9308 * NEWS: Mention new MI commands.
9309 * break-catch-throw.c (enum exception_event_kind): Move to
9310 breakpoint.h.
9311 (print_mention_exception_catchpoint): Output text as a single
9312 message.
9313 (catch_exception_command_1): Rename to...
9314 (catch_exception_event): ...this, make non-static, update header
9315 command, and change some parameter types.
9316 (catch_catch_command): Update for changes to
9317 catch_exception_command_1.
9318 (catch_throw_command): Likewise.
9319 (catch_rethrow_command): Likewise.
9320 * breakpoint.c (enum exception_event_kind): Delete.
9321 * breakpoint.h (enum exception_event_kind): Moved here from
9322 break-catch-throw.c.
9323 (catch_exception_event): Declare.
9324 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
9325 (mi_cmd_catch_throw): New function.
9326 (mi_cmd_catch_rethrow): New function.
9327 (mi_cmd_catch_catch): New function.
9328 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
9329 'catch-catch' entries.
9330 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
9331 (mi_cmd_catch_rethrow): Declare.
9332 (mi_cmd_catch_catch): Declare.
9333
ec8e2b6d
AB
93342019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
9335
9336 * annotate.c (annotate_source_line): Change return type to void,
9337 update implementation to match.
9338 * annotate.h (annotate_source_line): Change return type to void,
9339 update header comment.
9340 * stack.c (print_frame_info): Don't change what frame information
9341 is printed based on whether annotations are on or not.
9342
0d3abd8c
AB
93432019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
9344
9345 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
9346 (annotate_source): Make static.
9347 (annotate_source_line): Moved from source.c and renamed from
9348 identify_source_line. Update the return type.
9349 * annotate.h (annotate_source): Delete declaration.
9350 (annotate_source_line): Declaration moved from source.h, and
9351 renamed from identify_source_line. Return type updated.
9352 * source.c (identify_source_line): Moved to annotate.c and renamed
9353 to annotate_source_line.
9354 (info_line_command): Remove check of annotation_level.
9355 * source.h (identify_source_line): Move declaration to annotate.h
9356 and rename to annotate_source_line.
9357 * stack.c: Add 'annotate.h' include.
9358 (print_frame_info): Remove check of annotation_level before
9359 calling annotate_source_line.
9360
00df30ae
AB
93612019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
9362
9363 * source-cache.c (source_cache::get_plain_source_lines): Use
9364 open_source_file_with_line_charpos instead of just
9365 open_source_file, remove call to find_source_lines.
9366 (source_cache::get_source_lines): Likewise.
9367 * source.c (find_source_lines): Make static.
9368 (get_filename_and_charpos): Renamed into...
9369 (open_source_file_with_line_charpos): ..this along with changes to
9370 return a scoped_fd, and some other minor clean ups.
9371 (identify_source_line): Use open_source_file_with_line_charpos.
9372 (search_command_helper): Use open_source_file_with_line_charpos
9373 instead of just open_source_file, remove call to
9374 find_source_lines.
9375 * source.h (open_source_file_with_line_charpos): Declare new
9376 function.
9377 (find_source_lines): Delete declaration.
9378
afda45a2
AB
93792019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
9380
9381 * source.c (get_filename_and_charpos): Remove fullname
9382 parameter.
9383 (identify_source_line): Update call to get_filename_and_charpos.
9384
0735b091
TT
93852019-06-14 Tom Tromey <tromey@adacore.com>
9386
9387 PR gdb/24502:
9388 * ui-style.h (skip_ansi_escape): Update comment.
9389 * ui-file.h (class no_terminal_escape_file): New class.
9390 * ui-file.c (no_terminal_escape_file::write)
9391 (no_terminal_escape_file::puts): New methods.
9392 * cli/cli-logging.c (handle_redirections): Use
9393 no_terminal_escape_file.
9394
52ce35e2
TT
93952019-06-14 Tom Tromey <tromey@adacore.com>
9396
9397 * NEWS: Move convenience variable news above Python news.
9398
73cc7272
TT
93992019-06-14 Tom Tromey <tom@tromey.com>
9400
9401 * gnulib: Move directory to top-level.
9402 * configure.ac: Don't configure gnulib.
9403 * configure: Rebuild.
9404 * common/common-defs.h: Use new path to gnulib.
9405 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
9406 (GNULIB_H): Remove.
9407 (INCGNU): Look in new gnulib location.
9408 (HFILES_NO_SRCDIR): Remove gnulib files.
9409 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
9410 (generated_files): Remove GNULIB_H.
9411 ($(LIBGNU), all-lib): Remove targets.
9412 (distclean): Don't mention GNULIB_BUILDDIR.
9413 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
9414
f5686554
TT
94152019-06-14 Tom Tromey <tromey@adacore.com>
9416
9417 * symfile.c (add_symbol_file_command): Remove obsolete comment.
9418 Warn if symbol file does not provide any symbols.
9419
a0c1ffed
TT
94202019-06-14 Tom Tromey <tromey@adacore.com>
9421
9422 * source.c (find_and_open_source): Respect basenames_may_differ.
9423
7c39e397
AB
94242019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
9425
9426 * annotate.c (annotate_breakpoints_invalid): Make use of
9427 scoped_restore_terminal_state.
9428 (annotate_frames_invalid): Likewise.
9429
f411722c
TT
94302019-06-14 Tom Tromey <tromey@adacore.com>
9431
9432 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
9433 allow assignment to an internalvar.
9434
4268ec18
TT
94352019-06-14 Tom Tromey <tromey@adacore.com>
9436
9437 * ada-lex.l: Allow "_" in attribute names.
9438
abdb711e
TT
94392019-06-14 Tom Tromey <tromey@adacore.com>
9440
9441 PR gdb/24653:
9442 * regcache.c (registers_changed): Don't call alloca.
9443 * top.c (execute_command): Don't call alloca.
9444
4c048731
PA
94452019-06-13 Pedro Alves <palves@redhat.com>
9446
9447 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
9448 'expression'. When parsing an expression, error out if there's
9449 junk after "unlimited".
9450 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
9451 (do_set_command): Adjust calls to is_unlimited_literal.
9452
66eb1ed3
PA
94532019-06-13 Pedro Alves <palves@redhat.com>
9454
9455 * compile/compile.c (make_compile_options_def_group): Add braces
9456 around array_view initializer.
9457 * thread.c (make_thread_apply_all_options_def_group)
9458 (make_thread_apply_all_options_def_group): Likewise.
9459
3345721a
PA
94602019-06-13 Pedro Alves <palves@redhat.com>
9461
9462 * NEWS (New commands): Mention "maint test-options
9463 require-delimiter", "maint test-options unknown-is-error", "maint
9464 test-options unknown-is-operand" and "maint show
9465 test-options-completion-result".
9466 (New command options, command completion): New section.
9467 (Completion improvements): New section.
9468 Mention that you can abbreviate "unlimited".
9469
6206060d
PA
94702019-06-13 Pedro Alves <palves@redhat.com>
9471
9472 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
9473 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
9474 * unittests/cli-utils-selftests.c (test_parse_flags)
9475 (test_parse_flags_qcs): Delete.
9476 (test_cli_utils): Don't call deleted functions.
9477
6665660a
PA
94782019-06-13 Pedro Alves <palves@redhat.com>
9479
9480 * thread.c: Include "cli/cli-option.h".
9481 (tp_array_compar_ascending): Global.
9482 (tp_array_compar): Delete function.
9483 (tp_array_compar_ascending, tp_array_compar_descending): New
9484 functions.
9485 (ascending_option_def, qcs_flag_option_def)
9486 (thr_qcs_flags_option_defs)
9487 (make_thread_apply_all_options_def_group)
9488 (make_thread_apply_options_def_group): New.
9489 (thread_apply_all_command): Use gdb::option::process_options.
9490 (thread_apply_command_completer)
9491 (thread_apply_all_command_completer): New.
9492 (thread_apply_command): Use gdb::option::process_options.
9493 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
9494 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
9495 to generate help text of "thread apply". Adjust "taas"'s help.
9496 * tid-parse.c (tid_range_parser::in_thread_range): New method.
9497 * tid-parse.h (tid_range_parser::in_thread_range): New method.
9498
f7e13587
PA
94992019-06-13 Pedro Alves <palves@redhat.com>
9500
9501 * thread.c (thread_apply_command): Check for invalid TID with
9502 isdigit instead of !isalpha.
9503
5d707134
PA
95042019-06-13 Pedro Alves <palves@redhat.com>
9505
9506 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
9507 (validate_flags_qcs): New.
9508 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
9509 (validate_flags_qcs): Declare.
9510 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
9511 (make_frame_apply_options_def_group): New.
9512 (frame_apply_command_count): Process options with
9513 gdb::option::process_options.
9514 (frame_apply_completer): New.
9515 (frame_apply_level_completer, frame_apply_all_completer)
9516 (frame_apply_completer): New.
9517 (_initialize_stack): Update help of "frame apply", "frame apply
9518 level", "frame apply all" and "faas" to mention supported options
9519 and install command completers.
9520 * stack.h (frame_apply_all_completer): Declare.
9521 * thread.c: Include "stack.h".
9522 (tfaas_command): Add "--".
9523 (_initialize_thread): Update help "tfaas" to mention supported
9524 options and install command completer.
9525
272d4594
PA
95262019-06-13 Pedro Alves <palves@redhat.com>
9527
9528 * completer.c (complete_nested_command_line): New.
9529 (gdb_completion_word_break_characters_throw): Add assertion.
9530 * completer.h (complete_nested_command_line): Declare.
9531
90a1ef87
PA
95322019-06-13 Pedro Alves <palves@redhat.com>
9533
9534 * stack.c (parse_backtrace_qualifiers): New.
9535 (backtrace_command): Use it.
9536 (backtrace_command_completer): Complete on qualifiers.
9537
d4c16835
PA
95382019-06-13 Pedro Alves <palves@redhat.com>
9539
9540 * frame.c: Include "cli/cli-option.h.
9541 (user_set_backtrace_options): New.
9542 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
9543 Delete.
9544 (get_prev_frame): Adjust.
9545 (boolean_option_def, uinteger_option_def)
9546 (set_backtrace_option_defs): New.
9547 (_initialize_frame): Adjust and use
9548 gdb::option::add_setshow_cmds_for_options to install "set
9549 backtrace past-main" and "set backtrace past-entry".
9550 * frame.h: Include "cli/cli-option.h".
9551 (struct frame_print_options): Forward declare.
9552 (print_frame_arguments_all, print_frame_arguments_scalars)
9553 (print_frame_arguments_none): Declare.
9554 (print_entry_values): Delete declaration.
9555 (struct frame_print_options, user_frame_print_options): New.
9556 (struct set_backtrace_options): New.
9557 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
9558 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
9559 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
9560 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
9561 (list_args_or_locals): Add frame_print_options parameter.
9562 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
9563 * python/py-framefilter.c (enumerate_args): Pass down
9564 USER_FRAME_PRINT_OPTIONS.
9565 * stack.c: Include "cli/cli-option.h".
9566 (print_frame_arguments_all, print_frame_arguments_scalars)
9567 (print_frame_arguments_none): Declare.
9568 (print_raw_frame_arguments, print_entry_values): Delete.
9569 (user_frame_print_options): New.
9570 (boolean_option_def, enum_option_def, frame_print_option_defs):
9571 New.
9572 (struct backtrace_cmd_options): New.
9573 (bt_flag_option_def): New.
9574 (backtrace_command_option_defs): New.
9575 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
9576 (print_frame_arg, read_frame_arg, print_frame_args)
9577 (print_frame_info, print_frame): Add frame_print_options parameter
9578 and use it.
9579 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
9580 (backtrace_command_1): Add frame_print_options and
9581 backtrace_cmd_options parameters and use them.
9582 (make_backtrace_options_def_group): New.
9583 (backtrace_command): Process command options with
9584 gdb::option::process_options.
9585 (backtrace_command_completer): New.
9586 (_initialize_stack): Extend "backtrace"'s help to mention
9587 supported options. Install completer for "backtrace".
9588 Install some settings commands with add_setshow_cmds_for_options.
9589
2daf894e
PA
95902019-06-13 Pedro Alves <palves@redhat.com>
9591
9592 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
9593 and that "set/show print raw frame-arguments" are now deprecated.
9594
9595 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
9596 command.
9597 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
9598 * stack.c (_initialize_stack): Install "set/show print
9599 raw-frame-arguments", and deprecate "set/show print raw
9600 frame-arguments".
9601 * valprint.c (_initialize_valprint): Deprecate "set/show print
9602 raw".
9603
e6ed716c
PA
96042019-06-13 Pedro Alves <palves@redhat.com>
9605
9606 * compile/compile.c (struct compile_options): New.
9607 (compile_flag_option_def, compile_command_option_defs)
9608 (make_compile_options_def_group): New.
9609 (compile_file_command): Handle options with
9610 gdb::option::process_options.
9611 (compile_file_command_completer): New function.
9612 (compile_code_command): Handle options with
9613 gdb::option::process_options.
9614 (compile_code_command_completer): New function.
9615 (_initialize_compiler): Install completers for "compile code" and
9616 "compile file". Mention available options in "compile code" and
9617 "compile code"'s help.
9618 * completer.c (advance_to_completion_word): New, factored out from
9619 ...
9620 (advance_to_expression_complete_word_point): ... this.
9621 (advance_to_filename_complete_word_point): New.
9622 * completer.h (advance_to_filename_complete_word_point): New
9623 declaration.
9624
7d8062de
PA
96252019-06-13 Pedro Alves <palves@redhat.com>
9626
9627 * compile/compile.c: Include "cli/cli-option.h".
9628 (compile_print_value): Scope data pointer is now a
9629 value_print_options pointer; adjust.
9630 (compile_print_command): Process options. Scope data pointer is
9631 now a value_print_options pointer; adjust.
9632 (_initialize_compile): Update "compile print"'s help to include
9633 supported options. Install a completer for "compile print".
9634 * cp-valprint.c (show_vtblprint, show_objectprint)
9635 (show_static_field_print): Delete.
9636 (_initialize_cp_valprint): Don't install "set print
9637 static-members", "set print vtbl", "set print object" here.
9638 * printcmd.c: Include "cli/cli-option.h" and
9639 "common/gdb_optional.h".
9640 (print_command_parse_format): Rework to fill in a
9641 value_print_options instead of a format_data.
9642 (print_value): Change parameter type from format_data pointer to
9643 value_print_options reference. Adjust.
9644 (print_command_1): Process options. Adjust to pass down a
9645 value_print_options.
9646 (print_command_completer): New.
9647 (_initialize_printcmd): Install print_command_completer as
9648 handle_brkchars completer for the "print" command. Update
9649 "print"'s help to include supported options.
9650 * valprint.c: Include "cli/cli-option.h".
9651 (show_vtblprint, show_objectprint, show_static_field_print): Moved
9652 here from cp-valprint.c.
9653 (boolean_option_def, uinteger_option_def)
9654 (value_print_option_defs, make_value_print_options_def_group):
9655 New. Use gdb::option::add_setshow_cmds_for_options to install
9656 "set print elements", "set print null-stop", "set print repeats",
9657 "set print pretty", "set print union", "set print array", "set
9658 print address", "set print symbol", "set print array-indexes".
9659 * valprint.h: Include <string> and "cli/cli-option.h".
9660 (make_value_print_options_def_group): Declare.
9661 (print_value): Change parameter type from format_data pointer to
9662 value_print_options reference.
9663 (print_command_completer): Declare.
9664
9d0faba9
PA
96652019-06-13 Pedro Alves <palves@redhat.com>
9666
9667 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
9668 (COMMON_SFILES): Add maint-test-settings.c.
9669 * cli/cli-decode.c (boolean_enums): New global, factored out from
9670 ...
9671 (add_setshow_boolean_cmd): ... here.
9672 * cli/cli-decode.h (boolean_enums): Declare.
9673 * cli/cli-option.c: New file.
9674 * cli/cli-option.h: New file.
9675 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
9676 factored out from ...
9677 (parse_cli_boolean_value(const char *)): ... this.
9678 (is_unlimited_literal): Change parameter type to pointer to
9679 pointer. Adjust and advance ARG pointer.
9680 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
9681 (parse_cli_var_enum): New, factored out from ...
9682 (do_set_command): ... this. Adjust.
9683 * cli/cli-setshow.h (parse_cli_boolean_value)
9684 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
9685 (parse_cli_var_enum): Declare.
9686 * cli/cli-utils.c: Include "cli/cli-option.h".
9687 (get_ulongest): New.
9688 * cli/cli-utils.h (get_ulongest): Declare.
9689 (check_for_argument): New overloads.
9690 * maint-test-options.c: New file.
9691
2c722807
PA
96922019-06-13 Pedro Alves <palves@redhat.com>
9693
9694 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
9695 parse a range if "-" is at the end of the string.
9696
dee7b4c8
PA
96972019-06-13 Pedro Alves <palves@redhat.com>
9698
9699 * cli/cli-setshow.c (parse_auto_binary_operation)
9700 (parse_cli_boolean_value): Don't allow "o".
9701
dca0f6c0
PA
97022019-06-13 Pedro Alves <palves@redhat.com>
9703
9704 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
9705 * NEWS: Mention maint test-settings KIND.
9706 * maint-test-settings.c: New file.
9707
597bf39d
PA
97082019-06-13 Pedro Alves <palves@redhat.com>
9709
9710 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
9711 completer.
9712 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
9713 "set" completers.
9714
48c410fb
PA
97152019-06-13 Pedro Alves <palves@redhat.com>
9716
9717 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
9718 after item.
9719
93bcb043
PA
97202019-06-13 Pedro Alves <palves@redhat.com>
9721
9722 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
9723
cbba3ecd
PA
97242019-06-13 Pedro Alves <palves@redhat.com>
9725
9726 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
9727 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
9728 call.
9729 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
9730 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
9731 calls.
9732 (check_for_argument): Skip spaces after argument.
9733
b9a3f842
PA
97342019-06-13 Pedro Alves <palves@redhat.com>
9735
9736 * thread.c (thread_apply_command): Adjust TID parsing.
9737 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
9738 detected before end of string.
9739 (tid_is_in_list): Error out if LIST is invalid.
9740
3844e605
PA
97412019-06-13 Pedro Alves <palves@redhat.com>
9742
9743 * completer.c (complete_line_internal_1): Rewind completion word
9744 point.
9745 (completion_tracker::advance_custom_word_point_by): Change
9746 parameter type to int.
9747 * completer.h (completion_tracker::advance_custom_word_point_by):
9748 Likewise.
9749
00b56dbe
PA
97502019-06-13 Pedro Alves <palves@redhat.com>
9751
9752 * completer.c (advance_to_completion_word): Handle delimiters.
9753
d106773e
PA
97542019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
9755
9756 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
9757
08f10e02
TT
97582019-06-11 Tom Tromey <tom@tromey.com>
9759
9760 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
9761 (xmalloc_failed): Move to alloc.c.
9762 * alloc.c: New file.
9763 * Makefile.in (COMMON_SFILES): Add alloc.c.
9764
1c7fe951
TT
97652019-06-11 Tom Tromey <tom@tromey.com>
9766
9767 * nat/linux-waitpid.c: Don't include server.h.
9768 (linux_debug): Remove.
9769 (my_waitpid): Update.
9770
89549d7f
TT
97712019-06-11 Tom Tromey <tromey@adacore.com>
9772
9773 * infcall.c (_initialize_infcall): Remove trailing newline from
9774 help.
9775 * user-regs.c (_initialize_user_regs): Remove trailing newline
9776 from help.
9777 * typeprint.c (_initialize_typeprint): Remove trailing newline
9778 from help.
9779 * reverse.c (_initialize_reverse): Remove trailing newlines from
9780 help.
9781 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
9782 from help.
9783 * language.c (add_set_language_command): Remove trailing newline
9784 from help.
9785 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
9786 help.
9787 * disasm.c (_initialize_disasm): Remove trailing newline from
9788 help.
9789 * top.c (init_main): Remove trailing newline from help.
9790 * interps.c (_initialize_interpreter): Remove trailing newline
9791 from help.
9792 * btrace.c (_initialize_btrace): Remove trailing newlines from
9793 help.
9794 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
9795 from help.
9796 * python/python.c (_initialize_python): Remove trailing newline
9797 from help.
9798 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
9799 help.
9800 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
9801 from help. Reformat some text.
9802 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
9803 from help.
9804 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
9805 newline from help.
9806
86108c13
TT
98072019-06-11 Tom Tromey <tromey@adacore.com>
9808
9809 * darwin-nat.c (darwin_decode_exception_message)
9810 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
9811
a7067863
AB
98122019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
9813
9814 * valops.c (value_slice): Check for not allocated or not
9815 associated values.
9816
9ab08412
TV
98172019-06-10 Tom de Vries <tdevries@suse.de>
9818
9819 PR gdb/24618
9820 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
9821 sure an empty slot (defined by a 32-bit zero pair) is recognized as
9822 invalid.
9823
f19e22e9
TV
98242019-06-10 Tom de Vries <tdevries@suse.de>
9825
9826 PR gdb/24611
9827 * linespec.c (linespec_lexer_lex_string): Remove incorrect
9828 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
9829
e99f9db0
TV
98302019-06-10 Tom de Vries <tdevries@suse.de>
9831
9832 PR symtab/24545
9833 * symtab.c (struct demangled_name_entry): Add language field.
9834 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
9835 static minimal symbol". Set and use language field.
9836
9bf7038b
TT
98372019-06-10 Tom Tromey <tromey@adacore.com>
9838
9839 * ada-lang.c (_initialize_ada_language): Update help text.
9840
422186a9
TT
98412019-06-10 Tom Tromey <tromey@adacore.com>
9842
9843 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
9844 with a newline.
9845 * guile/guile.c (handle_boot_error): Don't end warning with a
9846 newline.
9847 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
9848 warning with a newline.
9849 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
9850 newline.
9851 (s12z_frame_cache): Likewise.
9852 * dwarf-index-cache.c (index_cache::store): Don't end warning with
9853 a newline.
9854 * solib-svr4.c (disable_probes_interface): Don't end warning with
9855 a newline.
9856 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
9857 newline.
9858 * python/python.c (do_finish_initialization): Don't end warning
9859 with a newline.
9860
25ce02ee
TT
98612019-06-10 Tom Tromey <tom@tromey.com>
9862
9863 * python/py-breakpoint.c (gdbpy_breakpoint_created)
9864 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
9865 gdbpy_enter.
9866
caa429d8
TT
98672019-06-10 Tom Tromey <tromey@adacore.com>
9868
9869 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
9870 data.
9871 (elf_new_init): Don't call stabsread_new_init.
9872 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
9873 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
9874 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
9875
81873cc8
TV
98762019-06-10 Tom de Vries <tdevries@suse.de>
9877
9878 PR symtab/16264
9879 PR symtab/24517
9880 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
9881
4fa0265e
РИ
98822019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
9883
9884 * source.c (find_and_open_source): Also rewrite relative file
9885 names.
9886
1a3da2cd
AB
98872019-04-26 Amos Bird <amosbird@gmail.com>
9888
9889 * annotate.c (annotate_thread_exited): Add "thread-exited"
9890 annotation.
9891
3847a7bf
TT
98922019-06-06 Tom Tromey <tromey@adacore.com>
9893
9894 * maint.h (class scoped_command_stats): Use
9895 DISABLE_COPY_AND_ASSIGN.
9896 <print_time>: New method.
9897 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
9898 print_time.
9899 (scoped_command_stats::print_time): New method.
9900
312617a3
AB
99012019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
9902
9903 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
9904 instructions of lengths 6 or 8 bytes.
9905
b02f78f9
PA
99062019-06-04 Pedro Alves <palves@redhat.com>
9907
9908 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
9909
9910 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
9911 * breakpoint.c (condition_completer): Likewise.
9912 * cli/cli-dump.c (scan_expression): Likewise.
9913 * common/filestuff.c (mkdir_recursive): Likewise.
9914 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
9915 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
9916 (gdb_abspath): Likewise.
9917 * compile/compile-cplus-types.c
9918 (compile_cplus_instance::decl_name): Likewise.
9919 * completer.c (complete_explicit_location):
9920 (signal_completer, reg_or_group_completer_1): Likewise.
9921 * cp-support.c (cp_remove_params_if_any): Likewise.
9922 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
9923 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
9924 * infcmd.c (strip_bg_char): Likewise.
9925 * linespec.c (copy_token_string): Likewise.
9926 * mi/mi-main.c (output_cores): Likewise.
9927 * psymtab.c (psymtab_search_name):
9928 * symfile.c (test_set_ext_lang_command): Likewise.
9929 * target.c (target_fileio_read_stralloc): Likewise.
9930 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
9931 * value.c (complete_internalvar): Likewise.
9932
e1f2e1a2
CB
99332019-06-04 Christian Biesinger <cbiesinger@google.com>
9934
9935 Add objfile property to gdb.Type.
d3238f7d
PA
9936 * NEWS: Mention Python API addition.
9937 * python/py-type.c (typy_get_objfile): New method.
e1f2e1a2 9938
e664d728
PW
99392019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9940
9941 * NEWS: Mention the new set|show style [title|highlight].
9942 Mention changes to "show style", "help" and "apropos".
9943
66d8c862
PW
99442019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9945
9946 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
9947 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
9948 instead of print_help_for_command.
9949 (print_doc_of_command): New function.
9950 (help_list): Add 'apropos -v word' suggestion.
9951 (print_help_for_command): Style the command name using title style.
9952 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
9953 (_initialize_cli_cmds): Describe -v in apropos_command help.
9954
9303eb2f
PW
99552019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9956
9957 * cli/cli-style.h (cli_style_option): Add name in constructor,
9958 add m_name class member, add constructor with intensity,
9959 add name class function.
9960 (cli_style_option::add_setshow_commands): Remove name argument.
9961 (highlight_style, title_style): New styles.
9962 * cli/cli-style.c (do_show): New function that shows a style
9963 characteristic styling the style name with itself.
9964 (set_style_name): New function.
9965 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
9966 Update all callers according to the changes in cli/cli-style.h.
9967 * utils.h (fputs_highlighted): New function.
9968 * utils.c (fputs_highlighted): Likewise.
9969
e2c52041
PW
99702019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9971
9972 * NEWS: Mention new pipe command and new convenience variables.
9973
947d3946
PW
99742019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9975
9976 * cli/cli-cmds.c (pipe_command): New function.
9977 (_initialize_cli_cmds): Call add_com for pipe_command.
9978 Define | as an alias for pipe.
9979 (exit_status_set_internal_vars): New function.
9980 (shell_escape): Call exit_status_set_internal_vars.
9981 cli/cli-decode.c (find_command_name_length): Recognize | as
9982 a single character command.
9983
b8fd0918
PW
99842019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9985
9986 * gdbcmd.h (execute_command_to_ui_file): New declaration.
9987 top.c (execute_command_to_ui_file): New function, mostly a copy
9988 of execute_command_to_string.
9989 (execute_command_to_string): Implement by calling
9990 execute_command_to_ui_file.
9991
68bb5386
PW
99922019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9993
9994 * top.h (saved_command_line): Remove declaration.
9995 * top.c (previous_saved_command_line, previous_repeat_arguments):
9996 New variables.
9997 (saved_command_line): Make static, define together with other
9998 'repeat variables'.
9999 (dont_repeat): Clear repeat_arguments.
10000 (repeat_previous, get_saved_command_line, save_command_line):
10001 New functions.
10002 (gdb_init): Initialize saved_command_line
10003 and previous_saved_command_line.
10004 * main.c (captured_main_1): Remove saved_command_line initialization.
10005 * event-top.c (handle_line_of_input): Update to use
10006 the new 'repeat' related functions instead of direct access to
10007 saved_command_line.
10008 * command.h (repeat_previous, get_saved_command_line,
10009 save_command_line): New declarations.
10010 (dont_repeat): Add comment.
10011
bfcdb852
TT
100122019-05-30 Tom Tromey <tromey@adacore.com>
10013
10014 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
10015 Fix comment.
10016 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
10017
0ef209f2
JV
100182019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
10019
10020 PR cli/24587
10021 * completer.c (complete): Initialize variable word.
10022
955b06fa
SDJ
100232019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
10024
10025 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
10026 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
10027 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
10028 'body' is NULL to the outter 'if', protecting the '!is_define'
10029 situation as well.
10030
fa9c3fa0
TT
100312019-05-29 Tom Tromey <tromey@adacore.com>
10032
10033 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
10034 (dwarf_unknown): New function.
10035 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
10036 (dwarf_type_encoding_name): Use dwarf_unknown.
10037
4330d61d
TT
100382019-05-29 Tom Tromey <tromey@adacore.com>
10039
10040 PR c++/20020:
10041 * cp-valprint.c (cp_print_value_fields): Call
10042 cp_print_static_field inside "try".
10043
33a6bc35
TT
100442019-05-29 Tom Tromey <tromey@adacore.com>
10045
10046 * inflow.c (struct terminal_info): Add default operator=.
10047 * configure: Rebuild.
10048 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
10049 -Wdeprecated-copy-dtor, -Wredundant-move.
10050
000439d5
TT
100512019-05-29 Tom Tromey <tromey@adacore.com>
10052
10053 * NEWS: Add entry.
10054 * infcmd.c (print_return_value_1): Handle finish_print
10055 option.
10056 (show_print_finish): New function.
10057 (_initialize_infcmd): Add "set/show print finish" commands.
10058 * valprint.c (user_print_options): Initialize new member.
10059 * valprint.h (struct value_print_options) <finish_print>: New
10060 member.
10061
c0e70c62
TT
100622019-05-28 Tom Tromey <tromey@adacore.com>
10063
10064 * ada-lang.c (ada_remove_Xbn_suffix)
10065 (find_old_style_renaming_symbol)
10066 (parse_old_style_renaming): Remove.
10067 (ada_find_renaming_symbol): Don't call
10068 find_old_style_renaming_symbol.
10069 (ada_is_renaming_symbol): Rename from
10070 ada_find_renaming_symbol. Remove "block" parameter. Return
10071 bool. Now static.
10072 (ada_read_var_value): Update and simplify.
10073 * ada-exp.y (write_var_or_type): Remove old code.
10074
766f8836
AH
100752019-05-28 Alan Hayward <alan.hayward@arm.com>
10076
68255adc 10077 PR gdb/25010
766f8836
AH
10078 * event-top.c: Remove include comment.
10079 * inflow.c (class scoped_ignore_sigttou): Move from here...
10080 * inflow.h (class scoped_ignore_sigttou): ...to here.
10081 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
10082 * top.c: Remove include comment.
10083
eb41253a
TT
100842019-05-27 Tom Tromey <tom@tromey.com>
10085
10086 * NEWS: Fix typo.
10087
4ca51187
TT
100882019-05-22 Tom Tromey <tromey@adacore.com>
10089
10090 * target.c (target_follow_exec): Constify parameter.
10091 * target-delegates.c: Rebuild.
10092 * remote.c (remote_target::follow_exec): Constify parameter.
10093 * infrun.c (follow_exec): Constify parameter.
10094 * target.h (struct target_ops) <follow_exec>: Constify parameter.
10095 (target_follow_exec): Likewise.
10096
8fca4da0
AH
100972019-05-22 Alan Hayward <alan.hayward@arm.com>
10098
10099 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
10100 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
10101
b7060614
AH
101022019-05-22 Alan Hayward <alan.hayward@arm.com>
10103
10104 * NEWS: Add debugredirect and testsuite sections.
10105
0a5954bd
SC
101062019-05-22 Simon Cook <simon.cook@embecosm.com>
10107
10108 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
10109 target descriptions using exclusively floating point register name
10110 aliases.
10111
dc42e902
AB
101122019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
10113
10114 PR gdb/18644:
10115 * f-lang.c (build_fortran_types): Handle the case where
10116 gdbarch_floatformat_for_type returns a nullptr.
10117
fb7806c7
TV
101182019-05-21 Tom de Vries <tdevries@suse.de>
10119
10120 PR cli/24587
10121 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
10122
34d11c68
AB
101232019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
10124
10125 PR gdb/18644:
10126 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
10127 16-byte floats.
10128 * i386-tdep.c (i386_floatformat_for_type): Use
10129 floatformats_ia64_quad for the 16-byte floating point component
10130 within a fortran 32-byte complex number.
10131
122cf0f2
AB
101322019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
10133
10134 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
10135 delete default constructor.
10136 (find_partial_die): Update to return const struct.
10137 (partial_die_parent_scope): Move variable declaration into scope
10138 of its use and change its type to auto.
10139 (guess_partial_die_structure_name): Likewise.
10140 (partial_die_info::fixup): Likewise.
10141
33d0e35a
TT
101422019-05-17 Tom Tromey <tromey@adacore.com>
10143
10144 * source.c (find_and_open_source): Remove cast.
10145
a45575b0
TT
101462019-05-17 Tom Tromey <tromey@adacore.com>
10147
10148 * annotate.c (annotate_source): Make "filename" const.
10149 * annotate.h (annotate_source): Use const.
10150
81f47ac2
AH
101512019-05-17 Alan Hayward <alan.hayward@arm.com>
10152
10153 * disasm.c (set_disassembler_options): Send errors to stderr.
10154
ca1285d1
AH
101552019-05-17 Alan Hayward <alan.hayward@arm.com>
10156
10157 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
10158 (cli_interp_base::set_logging): Check debug_redirect.
10159 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
10160 * cli/cli-logging.c (debug_redirect): Add static variable.
10161 (pop_output_files): Add default param.
10162 (handle_redirections): Print debug setting.
10163 (show_logging_command): Likewise.
10164 (_initialize_cli_logging): Add debugredirect command.
10165 * interps.c (current_interp_set_logging): Add debug_redirect
10166 parameter.
10167 * interps.h (set_logging): Add debug_redirect parameter.
10168 (current_interp_set_logging): Likewise.
10169 * mi/mi-common.h: Likewise.
10170 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
10171
101722019-05-17 Alan Hayward <alan.hayward@arm.com>
f3a09c80
AH
10173 Tom Tromey <tromey@adacore.com>
10174
10175 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
10176 directly.
10177 * cli/cli-interp.h (make_logging_output): Remove declaration.
10178 * cli/cli-logging.c (make_logging_output): Remove function.
10179 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
10180 directly.
10181 * ui-file.c (tee_file::tee_file): Remove bools.
10182 (tee_file::~tee_file): Remove deletes.
10183 * ui-file.h (tee_file): Remove bools.
10184
26648588
JV
101852019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
10186
10187 * mi/mi-cmds.h (mi_cmd_complete): New function.
10188 * mi/mi-main.c (mi_cmd_complete): Likewise.
10189 * mi/mi-cmds.c: Define new MI command -complete.
10190 * NEWS: Mention new -complete command.
10191
6e035501
JV
101922019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
10193
10194 * completer.h (complete): New function.
10195 * completer.c (complete): Likewise.
10196 * cli/cli-cmds.c: (complete_command): Update to use new complete()
10197 function defined in completer.h.
10198
7d0e2ece
JV
101992019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
10200
e79be6e5 10201 * MAINTAINERS (Write After Approval): Add myself.
7d0e2ece 10202
fb816e8b
TV
102032019-05-17 Tom de Vries <tdevries@suse.de>
10204
10205 PR gdb/24094
10206 * dwarf2read.c (struct cu_partial_die_info): New struct.
10207 (find_partial_die): Return cu_partial_die_info.
10208 (partial_die_parent_scope, guess_partial_die_structure_name)
10209 (partial_die_info::fixup): Handle new return type of find_partial_die.
10210
677052f2
SDJ
102112019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
10212
a1726c38 10213 PR breakpoints/24541
677052f2
SDJ
10214 * stap-probe.c (stap_parse_register_operand): Make "regname" an
10215 "std::string", simplifying the algorithm.
10216
f3da9116
SDJ
102172019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
10218
10219 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
10220 (stap_static_probe_ops::get_probes): Likewise.
10221
f1bb75ab
SDJ
102222019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
10223
10224 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
10225 '-')" and "else if".
10226 (stap_parse_single_operand): Join checks for
10227 "gdbarch_stap_parse_special_token_p" and
10228 "gdbarch_stap_parse_special_token" in the same "if" statement.
10229 Invert check when verifying for operation on register
10230 displacement.
10231
3ca58cde
SDJ
102322019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
10233
10234 * stap-probe.c (stap_get_opcode): Update comment.
10235 (stap_get_expected_argument_type): Likewise.
10236 (handle_stap_probe): Likewise.
10237
af2d9bee
SDJ
102382019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
10239
10240 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
10241 return type to 'bool'. Adjust comment. Use 'bool' when
10242 appropriate.
10243 (i386_stap_parse_special_token_three_arg_disp): Likewise.
10244 * stap-probe.c (stap_parse_argument_1): Likewise.
10245 (stap_is_operator): Likewise.
10246 (stap_is_generic_prefix): Likewise.
10247 (stap_is_register_prefix): Likewise.
10248 (stap_is_register_indirection_prefix): Likewise.
10249 (stap_is_integer_prefix): Likewise.
10250 (stap_generic_check_suffix): Likewise.
10251 (stap_check_integer_suffix): Likewise.
10252 (stap_check_register_suffix): Likewise.
10253 (stap_check_register_indirection_suffix): Likewise.
10254 (stap_parse_register_operand): Likewise.
10255 (stap_parse_single_operand): Likewise.
10256 (stap_parse_argument_1): Likewise.
10257 (stap_probe::get_argument_count): Likewise.
10258 (stap_is_operator): Likewise.
10259
61c9c421
TT
102602019-05-16 Tom Tromey <tromey@adacore.com>
10261
10262 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
10263 keyword to foreach.
10264
9ddc1af1
SM
102652019-05-15 Simon Marchi <simon.marchi@efficios.com>
10266
10267 * linux-thread-db.c (try_thread_db_load_1): Change return type
10268 to bool.
10269 (try_thread_db_load): Likewise.
10270 (try_thread_db_load_from_pdir_1): Likewise.
10271 (try_thread_db_load_from_pdir): Likewise.
10272 (try_thread_db_load_from_sdir): Likewise.
10273 (try_thread_db_load_from_dir): Likewise.
10274 (thread_db_load_search): Likewise.
10275 (has_libpthread): Likewise.
10276 (thread_db_load): Likewise.
10277
7bede828
SDJ
102782019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
10279
10280 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
10281 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
10282 NULL, and complain/return if that's the case.
10283
c5358db4
JD
102842019-05-15 John Darrington <john@darrington.wattle.id.au>
10285
10286 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
10287 (advance, posn, abstract_read_memory): New functions.
10288 [struct mem_read_abstraction]: New struct.
10289 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
10290
c408a94f
TT
102912019-05-14 Tom Tromey <tromey@adacore.com>
10292
10293 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
10294 value is not lval_memory.
10295
e7bd7fba
TT
102962019-05-14 Tom Tromey <tromey@adacore.com>
10297
10298 * solib.c (info_sharedlibrary_command): Style the file name.
10299
a6d0f249
AH
103002019-05-14 Alan Hayward <alan.hayward@arm.com>
10301
10302 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
10303 (aarch64_vnv_type): Likewise.
10304 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
10305 * common/tdesc.c: Likewise.
10306 * common/tdesc.h (enum tdesc_type_kind): Likewise.
10307 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
10308 * features/aarch64-fpu.xml: Add ieee half view.
10309 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
10310 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
10311 * gdbtypes.h (struct builtin_type): Likewise.
10312 (struct objfile_type): Likewise.
10313
66b8bb74
SM
103142019-05-12 Paul Naert <paul.naert@polymtl.ca>
10315
10316 * language.c (language_sniff_from_mangled_name): Fix "langauge"
10317 typo.
10318 * location.h (string_to_event_location): Likewise.
10319
21c219fd
JB
103202019-05-11 Joel Brobecker <brobecker@adacore.com>
10321
10322 GDB 8.3 released.
10323
13674803
SM
103242019-05-10 Simon Marchi <simon.marchi@efficios.com>
10325
10326 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
10327 New variable declaration.
10328 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
10329 New variable.
10330 (print_one_breakpoint): Use ui_out::test_flags and new global
10331 variable to compute use_fixed_output.
10332 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
10333 Remove.
10334 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
10335 (mi_multi_location_breakpoint_output_fixed): Remove.
10336 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
10337 new variable.
10338 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
10339 fix_multi_location_breakpoint_output flag if version >= 3.
10340 * ui-out.h (enum ui_out_flag)
10341 <fix_multi_location_breakpoint_output>: New enumerator.
10342
a9eac7f9
SM
103432019-05-10 Simon Marchi <simon.marchi@efficios.com>
10344
10345 * contrib/cc-with-tweaks.sh: Validate dwz's work.
10346
71bed2db
TT
103472019-05-10 Tom Tromey <tromey@adacore.com>
10348
10349 * ada-lang.c (catch_ada_completer): New function.
10350 (_initialize_ada_language): Use it.
10351
24c54127
TT
103522019-05-10 Tom Tromey <tromey@adacore.com>
10353
10354 * thread.c (print_thread_info): Make "requested_threads" const.
10355 * gdbthread.h (print_thread_info): Make "requested_threads"
10356 const.
10357 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
10358 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
10359
7a102139
TT
103602019-05-08 Tom Tromey <tom@tromey.com>
10361
10362 * gdbtypes.c (objfile_type_data): Change type.
10363 (objfile_type, _initialize_gdbtypes): Update.
10364
924d79e2
TT
103652019-05-08 Tom Tromey <tom@tromey.com>
10366
10367 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
10368 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
10369 (_initialize_dwarf2_frame): Update.
10370
4c58e337
TT
103712019-05-08 Tom Tromey <tom@tromey.com>
10372
10373 * objc-lang.c (objc_objfile_data): Change type.
10374 (find_methods): Update.
10375 (_initialize_objc_lang): Remove.
10376
d772d2ab
TT
103772019-05-08 Tom Tromey <tom@tromey.com>
10378
10379 * stabsread.c (rs6000_builtin_type_data): Change type.
10380 (rs6000_builtin_type, _initialize_stabsread): Update.
10381
d11d83f4
TT
103822019-05-08 Tom Tromey <tom@tromey.com>
10383
10384 * mips-tdep.c (mips_pdr_data): Remove.
10385 (_initialize_mips_tdep): Update.
10386
9a73f0ad
TT
103872019-05-08 Tom Tromey <tom@tromey.com>
10388
10389 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
10390 (hppa_init_objfile_priv_data, read_unwind_info)
10391 (find_unwind_entry, _initialize_hppa_tdep): Update.
10392
8127a2fa
TT
103932019-05-08 Tom Tromey <tom@tromey.com>
10394
10395 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
10396 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
10397 on obstack.
10398 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
10399
91d3055d
TT
104002019-05-08 Tom Tromey <tom@tromey.com>
10401
10402 * mdebugread.c (basic_type_data): Change type.
10403 (basic_type, _initialize_mdebugread): Update.
10404
31930bd3
TT
104052019-05-08 Tom Tromey <tom@tromey.com>
10406
10407 * common/gdb_unique_ptr.h (struct noop_deleter): New.
10408
bdb3ed9e
TT
104092019-05-08 Tom Tromey <tom@tromey.com>
10410
10411 * nto-tdep.c (nto_inferior_data_reg): Change type.
10412 (nto_inferior_data): Update.
10413 (nto_inferior_data_cleanup, nto_new_inferior_data)
10414 (_initialize_nto_tdep): Remove.
10415 * nto-tdep.h (struct nto_inferior_data): Add initializers.
10416
f37b313d
TT
104172019-05-08 Tom Tromey <tom@tromey.com>
10418
10419 * ada-lang.c (struct ada_inferior_data): Add initializers.
10420 (ada_inferior_data): Change type.
10421 (ada_inferior_data_cleanup): Remove.
10422 (get_ada_inferior_data, ada_inferior_exit)
10423 (struct ada_pspace_data): Add initializers, destructor.
10424 (ada_pspace_data_handle): Change type.
10425 (get_ada_pspace_data): Update.
10426 (ada_pspace_data_cleanup): Remove.
10427
24699405
TT
104282019-05-08 Tom Tromey <tom@tromey.com>
10429
10430 * coffread.c (struct coff_symfile_info): Add initializers.
10431 (coff_objfile_data_key): Move lower. Change type.
10432 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
10433 Update.
10434 (coff_free_info): Remove.
10435
d4e05d2f
TT
104362019-05-08 Tom Tromey <tom@tromey.com>
10437
10438 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
10439 (fbsd_pspace_data_handle): Move lower. Change type.
10440 (get_fbsd_pspace_data): Update.
10441 (fbsd_pspace_data_cleanup): Remove.
10442 (_initialize_fbsd_tdep): Update.
10443
14ef6690
TT
104442019-05-08 Tom Tromey <tom@tromey.com>
10445
10446 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
10447 (get_ada_tasks_pspace_data): Update.
10448 (ada_tasks_pspace_data_cleanup): Remove.
10449 (_initialize_tasks): Update.
10450 (ada_tasks_inferior_data_handle): Change type.
10451 (get_ada_tasks_inferior_data): Update.
10452 (ada_tasks_inferior_data_cleanup): Remove.
10453 (struct ada_tasks_pspace_data): Add initializers.
10454
814cf43a
TT
104552019-05-08 Tom Tromey <tom@tromey.com>
10456
10457 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
10458 * symfile-debug.c (debug_sym_get_probes): Change type.
10459 * stap-probe.c (handle_stap_probe):
10460 (stap_static_probe_ops::get_probes): Change type.
10461 * probe.h (class static_probe_ops) <get_probes>: Change type.
10462 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
10463 (parse_probes_in_pspace): Update.
10464 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
10465 Update.
10466 (any_static_probe_ops::get_probes): Change type.
10467 * elfread.c (elfread_data): New typedef.
10468 (probe_key): Change type.
10469 (elf_get_probes): Likewise. Update.
10470 (probe_key_free): Remove.
10471 (_initialize_elfread): Update.
10472 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
10473 Change type.
10474 (dtrace_process_dof_probe, dtrace_process_dof)
10475 (dtrace_static_probe_ops::get_probe): Change type.
10476
02dc647e
TT
104772019-05-08 Tom Tromey <tom@tromey.com>
10478
10479 * xcoffread.c (struct xcoff_symfile_info): Rename from
10480 coff_symfile_info. Add initializers.
10481 (xcoff_objfile_data_key): Move lower. Change type.
10482 (XCOFF_DATA): Rewrite.
10483 (xcoff_free_info): Remove.
10484 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
10485 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
10486 (xcoff_initial_scan): Update.
10487
09232438
TT
104882019-05-08 Tom Tromey <tom@tromey.com>
10489
10490 * solib-svr4.c (struct svr4_info): Add initializers and
10491 destructor.
10492 <probes_table>: Now an htab_up.
10493 (solib_svr4_pspace_data): Change type.
10494 (free_probes_table): Simplify.
10495 (~svr4_info): Rename from svr4_pspace_data_cleanup.
10496 (get_svr4_info, probes_table_htab_remove_objfile_probes)
10497 (probes_table_remove_objfile_probes, register_solib_event_probe)
10498 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
10499 (_initialize_svr4_solib): Update.
10500
7b4a314f
TT
105012019-05-08 Tom Tromey <tom@tromey.com>
10502
10503 * remote.c (remote_pspace_data): Change type.
10504 (remote_pspace_data_cleanup): Remove.
10505 (get_remote_exec_file, set_pspace_remote_exec_file)
10506 (_initialize_remote): Update.
10507
51d3063a
TT
105082019-05-08 Tom Tromey <tom@tromey.com>
10509
10510 * breakpoint.c (breakpoint_objfile_key): Change type.
10511 (get_breakpoint_objfile_data): Update.
10512 (free_breakpoint_objfile_data): Remove.
10513 (_initialize_breakpoint): Update.
10514
89fb8848
TT
105152019-05-08 Tom Tromey <tom@tromey.com>
10516
10517 * linux-tdep.c (struct linux_info): Add initializers.
10518 (linux_inferior_data): Move. Change type.
10519 (invalidate_linux_cache_inf): Update.
10520 (linux_inferior_data_cleanup): Remove.
10521 (get_linux_inferior_data, _initialize_linux_tdep): Update.
10522
e9b89e2d
TT
105232019-05-08 Tom Tromey <tom@tromey.com>
10524
10525 * auxv.c (auxv_inferior_data): Move. Change type.
10526 (auxv_inferior_data_cleanup): Remove.
10527 (invalidate_auxv_cache_inf): Rewrite.
10528 (get_auxv_inferior_data, _initialize_auxv): Update.
10529
8c42777c
TT
105302019-05-08 Tom Tromey <tom@tromey.com>
10531
10532 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
10533 (symfile_debug_objfile_data_key): Change type.
10534 (symfile_debug_installed, debug_qf_has_symbols)
10535 (debug_qf_find_last_source_symtab)
10536 (debug_qf_forget_cached_source_info)
10537 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
10538 (debug_qf_print_stats, debug_qf_dump)
10539 (debug_qf_expand_symtabs_for_function)
10540 (debug_qf_expand_all_symtabs)
10541 (debug_qf_expand_symtabs_with_fullname)
10542 (debug_qf_map_matching_symbols)
10543 (debug_qf_expand_symtabs_matching)
10544 (debug_qf_find_pc_sect_compunit_symtab)
10545 (debug_qf_map_symbol_filenames)
10546 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
10547 (debug_sym_new_init, debug_sym_init, debug_sym_read)
10548 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
10549 (debug_sym_read_linetable, debug_sym_relocate): Update.
10550 (symfile_debug_free_objfile): Remove.
10551 (install_symfile_debug_logging, _initialize_symfile_debug):
10552 Update.
10553
5bfd760d
TT
105542019-05-08 Tom Tromey <tom@tromey.com>
10555
10556 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
10557 allocate_on_obstack.
10558 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
10559 (get_dwarf2_per_objfile): Update.
10560 (set_dwarf2_per_objfile): Remove.
10561 (dwarf2_has_info, dwarf2_get_section_info): Update.
10562 (dwarf2_free_objfile): Remove.
10563 (_initialize_dwarf2_read): Update.
10564
e85e19b4
TT
105652019-05-08 Tom Tromey <tom@tromey.com>
10566
10567 * auto-load.c (struct auto_load_pspace_info): Add destructor and
10568 initializers.
10569 <unsupported_script_warning_printed,
10570 script_not_found_warning_printed>: Now bool.
10571 (auto_load_pspace_data): Change type.
10572 (~auto_load_pspace_info): Rename from
10573 auto_load_pspace_data_cleanup.
10574 (get_auto_load_pspace_data, init_loaded_scripts_info)
10575 (clear_section_scripts, maybe_print_unsupported_script_warning)
10576 (maybe_print_script_not_found_warning, _initialize_auto_load):
10577 Update.
10578
f6aa7436
TT
105792019-05-08 Tom Tromey <tom@tromey.com>
10580
10581 * objfiles.c (objfile_pspace_info): Add destructor and
10582 initializers.
10583 (objfiles_pspace_data): Change type.
10584 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
10585 (get_objfile_pspace_data): Update.
10586 (objfiles_bfd_data): Change type.
10587 (get_objfile_bfd_data): Update.
10588 (objfile_bfd_data_free, _initialize_objfiles): Remove.
10589
6ae614f6
TT
105902019-05-08 Tom Tromey <tom@tromey.com>
10591
10592 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
10593 Change type.
10594 (get_catch_syscall_inferior_data): Update.
10595 (catch_syscall_inferior_data_cleanup): Remove.
10596 (_initialize_break_catch_syscall): Update.
10597
6509b8eb
TT
105982019-05-08 Tom Tromey <tom@tromey.com>
10599
10600 * inflow.c (struct terminal_info): Add destructor and
10601 initializers.
10602 (inflow_inferior_data): Change type.
10603 (~terminal_info): Rename from inflow_inferior_data_cleanup.
10604 (get_inflow_inferior_data, inflow_inferior_exit)
10605 (swap_terminal_info, _initialize_inflow): Update.
10606
35632941
TT
106072019-05-08 Tom Tromey <tom@tromey.com>
10608
10609 * target-dcache.c (target_dcache_cleanup): Remove.
10610 (target_dcache_aspace_key): Change type.
10611 (target_dcache_init_p, target_dcache_invalidate)
10612 (target_dcache_get, target_dcache_get_or_init)
10613 (_initialize_target_dcache): Update.
10614 * dcache.h (struct dcache_deleter): New.
10615
3017b94d
TT
106162019-05-08 Tom Tromey <tom@tromey.com>
10617
10618 * symtab.c (struct symbol_cache): Add destructor and
10619 initializers.
10620 (symbol_cache_key): Move. Change type.
10621 (make_symbol_cache, free_symbol_cache): Remove.
10622 (get_symbol_cache): Update.
10623 (symbol_cache_cleanup): Remove.
10624 (ALL_PSPACES, symbol_cache_flush)
10625 (maintenance_print_symbol_cache)
10626 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
10627 Update.
10628
a32ad8c5
TT
106292019-05-08 Tom Tromey <tom@tromey.com>
10630
10631 * symtab.c (struct main_info): Add destructor and initializers.
10632 (main_progspace_key): Move. Change type.
10633 (get_main_info): Update.
10634 (main_info_cleanup): Remove.
10635 (_initialize_symtab): Update.
10636
5f6e90a0
TT
106372019-05-08 Tom Tromey <tom@tromey.com>
10638
10639 * registry.h (DECLARE_REGISTRY): Define the _key class.
10640
1bd0c6e4
AB
106412019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
10642
10643 * NEWS: Merge two 'New commands' sections.
10644
2228ef77
XR
106452019-05-08 Joel Brobecker <brobecker@adacore.com>
10646
10647 * ada-valprint.c (ada_val_print_gnat_array): Remove language
10648 parameter and use Ada language definition instead.
10649 (ada_val_print_ptr): Remove unused language parameter.
10650 (ada_val_print_num): Remove language parameter and use Ada language
10651 definition instead.
10652 (ada_val_print_enum, ada_val_print_flt): Remove unused language
10653 parameter.
10654 (ada_val_print_struct_union, ada_val_print_ref): Remove language
10655 parameter and use Ada language definition instead.
10656 (ada_val_print_1): Update all ada_val_print_xxx calls.
10657 Remove language parameter.
10658 (ada_val_print): Update ada_val_print_1 call.
10659
60fcc1c3
TT
106602019-05-08 Tom Tromey <tromey@adacore.com>
10661
10662 * remote.c (remote_hw_watchpoint_limit)
10663 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
10664 Now static.
10665
ed2b7c17
TT
106662019-05-08 Tom Tromey <tromey@adacore.com>
10667
10668 * maint.c (_initialize_maint_cmds): Move initialization code to
10669 remote.c.
10670 (watchdog, show_watchdog): Move to remote.c.
10671 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
10672 "watchdog" static.
10673 (_initialize_remote): Move initialization code from maint.c.
10674 * defs.h (watchdog): Don't declare.
10675
b0be6c91
TT
106762019-05-08 Tom Tromey <tromey@adacore.com>
10677
10678 * tui/tui-interp.c: Include main.h.
10679 * interps.c: Include main.h.
10680 * main.h (interpreter_p): Declare.
10681 * defs.h (interpreter_p): Don't declare.
10682
587ee17b
TT
106832019-05-08 Tom Tromey <tromey@adacore.com>
10684
10685 * dwarf2loc.c: Include dwarf2read.h.
10686 * defs.h (read_unsigned_leb128): Don't declare.
10687 * dwarf2read.h (read_unsigned_leb128): Declare.
10688
ca1df239
TT
106892019-05-08 Tom Tromey <tromey@adacore.com>
10690
10691 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
10692 method.
10693
99f20f08
TT
106942019-05-08 Tom Tromey <tromey@adacore.com>
10695
10696 * utils.c (fputs_maybe_filtered): Reset style after paging, even
10697 when no wrap column is set.
10698
80e55b13
TT
106992019-05-08 Tom Tromey <tromey@adacore.com>
10700
10701 * c-lang.c (c_get_string): Handle non-C-style arrays.
10702
9d3421af
TT
107032019-05-08 Tom Tromey <tromey@adacore.com>
10704
10705 * typeprint.c (print_offset_data::update): Print the bit offset,
10706 not the number of bits remaining.
10707
844333e2
TT
107082019-05-08 Tom Tromey <tromey@adacore.com>
10709
10710 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
10711 padding at end of comment.
10712
988915ee
TT
107132019-05-08 Tom Tromey <tromey@adacore.com>
10714
10715 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
10716 Compare main types.
10717
26bfd823
TT
107182019-05-06 Tom Tromey <tom@tromey.com>
10719
10720 * common/scoped_mmap.c: Include common-defs.h.
10721 * common/scoped_mmap.h: Don't include config.h.
10722
89055eaa
TT
107232019-05-04 Tom Tromey <tom@tromey.com>
10724
10725 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
10726 (struct aarch64_call_info): Add initializers.
10727 <si>: Now a std::vector.
10728 (pass_on_stack, aarch64_push_dummy_call): Update.
10729
5da01df5
TT
107302019-05-04 Simon Marchi <simon.marchi@efficios.com>
10731 Tom Tromey <tom@tromey.com>
10732
10733 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
10734 (ppc_threads): Now a std::vector. Now static.
10735 (hwdebug_find_thread_points_by_tid)
10736 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
10737 Update.
10738
fbdf05a1
TT
107392019-05-04 Tom Tromey <tom@tromey.com>
10740
10741 * arc-tdep.c (arc_tdesc_init): Return bool.
10742
06d16ec9
TT
107432019-05-04 Tom Tromey <tom@tromey.com>
10744
10745 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
10746 Use gdb_assert_not_reached.
10747
9c056022
TT
107482019-05-04 Tom Tromey <tom@tromey.com>
10749
10750 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
10751 "false".
10752
fa9c2a59
TT
107532019-05-04 Tom Tromey <tom@tromey.com>
10754
10755 * arc-tdep.c (arc_tdesc_init): Use bool.
10756
e2eb806a
TT
107572019-05-04 Tom Tromey <tom@tromey.com>
10758
10759 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
10760
6fe87677
TT
107612019-05-04 Tom Tromey <tom@tromey.com>
10762
10763 * cli/cli-cmds.c (valid_command_p): Return bool.
10764
7f008c9e
TT
107652019-05-04 Tom Tromey <tom@tromey.com>
10766
10767 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
10768 * command.h (valid_user_defined_cmd_name_p): Channge return type.
10769
b6484282
RT
107702019-05-04 Raul Tambre <raul@tambre.ee>
10771
10772 * python/lib/gdb/prompt.py (_ExtendedPrompt)
10773 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
10774 operator for comparison.
10775
af97b416
TT
107762019-05-04 Tom Tromey <tom@tromey.com>
10777
10778 * psymtab.c (psymbol_name_matches, match_partial_symbol)
10779 (lookup_partial_symbol, print_partial_symbols)
10780 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
10781 (psymbol_compare): Update.
10782 (add_psymbol_to_bcache): Clear the entire psymbol.
10783 (maintenance_check_psymtabs): Update.
10784 * psympriv.h (struct partial_symbol): Don't derive from
10785 general_symbol_info.
10786 <obj_section, unrelocated_address, address,
10787 set_unrelocated_address>: Update.
10788 <ginfo>: New member.
10789 * dwarf-index-write.c (write_psymbols, debug_names::insert)
10790 (debug_names::write_psymbols): Update.
10791
9d6d4be8
TV
107922019-05-04 Tom de Vries <tdevries@suse.de>
10793
10794 * contrib/cc-with-tweaks.sh: Support -n arg.
10795
66452beb
PW
107962019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10797
10798 * corelow.c (core_target::detach): Ensure frame cache and
10799 register caches are cleared.
10800 inferior.c (exit_inferior_1): Likewise.
10801
bde09ab7
TT
108022019-05-03 Sandra Loosemore <sandra@codesourcery.com>
10803 Tom Tromey <tom@tromey.com>
10804
10805 * dictionary.c (collate_pending_symbols_by_language): Remove
10806 "struct" from foreach.
10807 * symtab.c (lookup_global_symbol_from_objfile)
10808 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
10809 foreach.
10810 * ser-tcp.c (net_open): Remove "struct" from foreach.
10811 * objfiles.c (objfile_relocate, objfile_rebase)
10812 (objfile_has_symbols): Remove "struct" from foreach.
10813 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
10814 from foreach.
10815 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
10816 foreach.
10817 * darwin-nat.c (thread_info_from_private_thread_info): Remove
10818 "struct" from foreach.
10819 * ada-lang.c (create_excep_cond_exprs)
10820 (ada_exception_catchpoint_cond_string): Remove "struct" from
10821 foreach.
10822
222a8d25
TT
108232019-05-03 Tom Tromey <tromey@adacore.com>
10824
10825 * ada-exp.y (convert_char_literal): Check suffix of each
10826 enumerator.
10827
fcd60b84
DP
108282019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
10829
10830 PR ada/21406:
10831 * ada-exp.y (yywrap): Don't define.
10832 * ada-lex.l (%option): Add noyywrap
10833 (yywrap): Remove.
10834
5f2459c2
EZ
108352019-05-03 Eli Zaretskii <eliz@gnu.org>
10836
353ea2d1
EZ
10837 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
10838 _WIN32_WINNT to the XP level, unless already defined to a higher
10839 level.
10840
10841 * unittests/parse-connection-spec-selftests.c:
10842 * ser-tcp.c:
10843 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
10844 override.
10845
5f2459c2
EZ
10846 * symfile.c (find_separate_debug_file): Remove colon from the
10847 drive spec of DOS/Windows file names of the target, so that the
10848 file name produced from DEBUGDIR and the target's directory will
10849 be valid on DOS/Windows systems.
10850
80062eb9
AB
108512019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
10852
10853 * rust-lang.c (val_print_struct): Handle printing structures
10854 containing strings.
10855
b8c05e85
TT
108562019-05-02 Tom Tromey <tromey@adacore.com>
10857
10858 * valarith.c (_initialize_valarith): Remove.
10859
4504bbde
TT
108602019-05-01 Tom Tromey <tromey@adacore.com>
10861
10862 * ada-lang.c (ada_value_primitive_field): Treat more fields as
10863 bitfields.
10864
d48e62f4
TT
108652019-05-01 Tom Tromey <tromey@adacore.com>
10866
10867 * ada-lang.c (ada_value_assign): Correctly compute starting offset
10868 for big-endian copies.
10869
15f18d14
AT
108702019-04-30 Ali Tamur <tamur@google.com>
10871 * gdb/dwarf2read.c (read_3_bytes): New declaration.
10872 (read_attribute_value): Added DW_FORM_strx1-4 cases.
10873 (read_3_bytes): New function.
10874
ab4ee614
JB
108752019-04-30 Joel Brobecker <brobecker@adacore.com>
10876
10877 * windows-nat.c (main_thread_id): Delete.
10878 (handle_output_debug_string): Replace main_thread_id by
10879 current_event.dwThreadId.
10880 (fake_create_process): Likewise.
10881 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
10882 Do not set main_thread_id.
10883 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
10884 current_event.dwThreadId.
10885 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
10886
8ed5b76e
JB
108872019-04-30 Joel Brobecker <brobecker@adacore.com>
10888
10889 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
10890 Use current_event.dwThreadId instead of main_thread_id.
10891
2ff0a947
TT
108922019-04-30 Tom Tromey <tromey@adacore.com>
10893
10894 * ada-lang.c (ada_lookup_simple_minsyms): New function.
10895 (create_excep_cond_exprs): Iterate over program spaces.
10896 (ada_exception_catchpoint_cond_string): Examine all minimal
10897 symbols for exception types.
10898
a776957c
TT
108992019-04-30 Tom Tromey <tromey@adacore.com>
10900
10901 PR c++/24470:
10902 * dwarf2read.c (process_structure_scope): Handle case where type
10903 has template parameters but no symbol was created.
10904
bc68014d
AB
109052019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10906 Chris January <chris.january@arm.com>
10907
10908 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
10909 qualifier.
10910 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
10911
f1fdc960
AB
109122019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10913
10914 * f-typeprint.c (f_print_type): Update rules for printing
10915 whitespace.
10916 (f_type_print_varspec_suffix): Likewise.
10917
bf7a4de1
AB
109182019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10919 Chris January <chris.january@arm.com>
10920
10921 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
10922 function arguments.
10923
bbe75b9d
AB
109242019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10925
10926 * f-lang.c (build_fortran_types): Change name of void type to
10927 lower case.
10928 * f-typeprint.c (f_type_print_base): Print the name of the void
10929 type, rather than a fixed string.
10930 * f-valprint.c (f_decorations): Use lower case void string.
10931
1db455a7
AB
109322019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10933 Chris January <chris.january@arm.com>
10934
10935 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
10936 types for Fortran.
10937
b6d03bb2
AB
109382019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10939 Chris January <chris.january@arm.com>
10940 David Lecomber <david.lecomber@arm.com>
10941
10942 * f-exp.y (BINOP_INTRINSIC): New token.
10943 (exp): New parser rule handling BINOP_INTRINSIC.
10944 (f77_keywords): Add new builtin procedures.
10945 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
10946 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
10947 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
10948 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
10949 (print_unop_subexp_f): New function.
10950 (print_binop_subexp_f): New function.
10951 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
10952 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
10953 (dump_subexp_body_f): Likewise.
10954 (operator_check_f): Likewise.
10955 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
10956 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
10957
83228e93
AB
109582019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10959
10960 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
10961 UNOP_KIND.
10962 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
10963 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
10964 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
10965 (operator_length_f): New fuction.
10966 (print_subexp_f): New function.
10967 (op_name_f): New function.
10968 (dump_subexp_body_f): New function.
10969 (operator_check_f): New function.
10970 (exp_descriptor_f): Replace standard expression handling functions
10971 with new functions.
10972 * gdb/fortran-operator.def: New file.
10973 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
10974 * gdb/std-operator.def: Remove UNOP_KIND.
10975
6fdcd7cc
AB
109762019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10977
10978 * std-operator.def: Remove unbalanced, stray double quote
10979 character.
10980
2e62ab40
AB
109812019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
10982 Chris January <chris.january@arm.com>
10983 Daniel Everett <daniel.everett@arm.com>
10984 Nick Forrington <nick.forrington@arm.com>
10985 Richard Bunt <richard.bunt@arm.com>
10986
10987 * cp-valprint.c (cp_print_value_fields): Allow an additional level
10988 of depth when printing anonymous structs or unions.
10989 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
10990 Don't print either the top-level value, or the children if the
10991 max-depth is exceeded.
10992 (ppscm_print_children): When printing the key of a map, allow one
10993 extra level of depth.
10994 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
10995 print either the top-level value, or the children if the max-depth
10996 is exceeded.
10997 (print_children): When printing the key of a map, allow one extra
10998 level of depth.
10999 * python/py-value.c (valpy_format_string): Add max_depth keyword.
11000 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
11001 (user_print_options): Initialise max_depth field.
11002 (val_print_scalar_or_string_type_p): New function.
11003 (val_print): Check to see if the max depth has been reached.
11004 (val_print_check_max_depth): Define new function.
11005 (show_print_max_depth): New function.
11006 (_initialize_valprint): Add 'print max-depth' option.
11007 * valprint.h (struct value_print_options) <max_depth>: New field.
11008 (val_print_check_max_depth): Declare new function.
11009 * NEWS: Document new feature.
11010
4be290b2
AB
110112019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
11012
11013 * ada-lang.c (ada_language_defn): Initialise new field.
11014 * c-lang.c (c_is_string_type_p): New function.
11015 (c_language_defn): Initialise new field.
11016 (cplus_language_defn): Initialise new field.
11017 (asm_language_defn): Initialise new field.
11018 (minimal_language_defn): Initialise new field.
11019 * c-lang.h (c_is_string_type_p): Declare new function.
11020 * d-lang.c (d_language_defn): Initialise new field.
11021 * f-lang.c (f_is_string_type_p): New function.
11022 (f_language_defn): Initialise new field.
11023 * go-lang.c (go_is_string_type_p): New function.
11024 (go_language_defn): Initialise new field.
11025 * language.c (default_is_string_type_p): New function.
11026 (unknown_language_defn): Initialise new field.
11027 (auto_language_defn): Initialise new field.
11028 * language.h (struct language_defn) <la_is_string_type_p>: New
11029 member variable.
11030 (default_is_string_type_p): Declare new function.
11031 * m2-lang.c (m2_language_defn): Initialise new field.
11032 * objc-lang.c (objc_language_defn): Initialise new field.
11033 * opencl-lang.c (opencl_language_defn): Initialise new field.
11034 * p-lang.c (pascal_is_string_type_p): New function.
11035 (pascal_language_defn): Initialise new field.
11036 * rust-lang.c (rust_is_string_type_p): New function.
11037 (rust_language_defn): Initialise new field.
11038
721b08c6
AB
110392019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
11040
11041 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
11042 New field.
11043 * ada-lang.c (ada_language_defn): Initialise new field.
11044 * c-lang.c (c_language_defn): Likewise.
11045 (cplus_language_defn): Likewise.
11046 (asm_language_defn): Likewise.
11047 (minimal_language_defn): Likewise.
11048 * d-lang.c (d_language_defn): Likewise.
11049 * f-lang.c (f_language_defn): Likewise.
11050 * go-lang.c (go_language_defn): Likewise.
11051 * language.c (unknown_language_defn): Likewise.
11052 (auto_language_defn): Likewise.
11053 * m2-lang.c (m2_language_defn): Likewise.
11054 * objc-lang.c (objc_language_defn): Likewise.
11055 * opencl-lang.c (opencl_language_defn): Likewise.
11056 * p-lang.c (pascal_language_defn): Likewise.
11057 * rust-lang.c (rust_language_defn): Likewise.
11058
fc913e53
AB
110592019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
11060
11061 * ada-lang.c (ada_is_character_type): Change return type to bool.
11062 (ada_is_string_type): Likewise.
11063 * ada-lang.h (ada_is_character_type): Update declaration
11064 (ada_is_string_type): Likewise.
11065
fa731fa0
PW
110662019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11067
11068 Support style in 'frame|thread apply'
11069
11070 * gdbcmd.h (execute_command_to_string): New term_out parameter.
11071 * record.c (record_start, record_stop): Update callers of
11072 execute_command_to_string with false.
11073 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
11074 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
11075 methods.
11076 (class string_file): New constructor with term_out parameter.
11077 Override methods term_out and can_emit_style_escape. New member
11078 term_out.
11079 (class stdio_file): Override can_emit_style_escape.
11080 (class tee_file): Override term_out and can_emit_style_escape.
11081 * utils.h (can_emit_style_escape): Remove.
11082 * utils.c (can_emit_style_escape): Likewise.
11083 Update all callers of can_emit_style_escape (SOMESTREAM) to
11084 SOMESTREAM->can_emit_style_escape.
11085 * source-cache.c (source_cache::get_source_lines): Likewise.
11086 * stack.c (frame_apply_command_count): Call execute_command_to_string
11087 passing the term_out characteristic of the current gdb_stdout.
11088 * thread.c (thr_try_catch_cmd): Likewise.
11089 * top.c (execute_command_to_string): pass term_out parameter
11090 to construct the string_file for the command output.
11091 * ui-file.c (term_cli_styling): New function (most code moved
11092 from utils.c can_emit_style_escape).
11093 (string_file::string_file, string_file::can_emit_style_escape,
11094 stdio_file::can_emit_style_escape, tee_file::term_out,
11095 tee_file::can_emit_style_escape): New functions.
11096
136afab8
PW
110972019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11098
11099 * NEWS: Mention the new set|show may-call-functions.
11100 * infcall.c (may_call_functions_p): New variable.
11101 (show_may_call_functions_p): New function.
11102 (call_function_by_hand_dummy): Throws an error if not
11103 may-call-functions.
11104 (_initialize_infcall): Call add_setshow_boolean_cmd for
11105 may-call-functions.
11106
725cbb63
KS
111072019-04-25 Keith Seitz <keiths@redhat.com>
11108
11109 PR c++/24367
11110 * cp-support.c (inspect_type): Don't attempt substitutions
11111 of symbol with the same name.
11112
3d1cbb78
TT
111132019-04-25 Tom Tromey <tromey@adacore.com>
11114
11115 PR gdb/24475:
11116 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
11117 static.
11118
94aeb44b
TT
111192019-04-25 Tom Tromey <tromey@adacore.com>
11120
11121 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
11122 rvalue reference.
11123 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
11124 (gdb_xml_parser::parse): Use std::move.
11125 * python/python-internal.h (gdbpy_convert_exception): Take a const
11126 reference.
11127 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
11128 std::move.
11129 * python/py-utils.c (gdbpy_convert_exception): Take a const
11130 reference.
11131 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
11132 Use std::move.
11133 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
11134 Use std::move.
11135 * mi/mi-main.c (mi_print_exception): Take a const reference.
11136 * main.c (handle_command_errors): Take a const reference.
11137 * linespec.c (parse_linespec): Use std::move.
11138 * infcall.c (run_inferior_call): Use std::move.
11139 (call_function_by_hand_dummy): Use std::move.
11140 * exec.c (try_open_exec_file): Use std::move.
11141 * exceptions.h (exception_print, exception_fprintf)
11142 (exception_print_same): Update.
11143 * exceptions.c (print_exception, exception_print)
11144 (exception_fprintf, exception_print_same): Change parameters to
11145 const reference.
11146 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
11147 * common/new-op.c: Use std::move.
11148 * common/common-exceptions.h (struct gdb_exception): Add move
11149 constructor.
11150 (struct gdb_exception_error, struct gdb_exception_quit, struct
11151 gdb_quit_bad_alloc): Change constructor to move constructor.
11152 (throw_exception): Change parameter to rvalue reference.
11153 * common/common-exceptions.c (throw_exception): Take rvalue
11154 reference.
11155 * cli/cli-interp.c (safe_execute_command): Use std::move.
11156 * breakpoint.c (insert_bp_location, location_to_sals): Use
11157 std::move.
11158
680d7fd5
TT
111592019-04-25 Tom Tromey <tromey@adacore.com>
11160
11161 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
11162 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
11163 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
11164 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
11165 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
11166 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
11167 guile/scm-value.c: Use unpack.
11168 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
11169 gdbscm_gdb_exception.
11170 (gdbscm_throw_gdb_exception): Likewise.
11171 (struct gdbscm_gdb_exception): New.
11172 (unpack): New function.
11173 (gdbscm_wrap): Use unpack.
11174
c6fdd8b2
TT
111752019-04-25 Tom Tromey <tromey@adacore.com>
11176
11177 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
11178 (gdb_rl_callback_handler): Use std::move.
11179 * common/common-exceptions.h (struct gdb_exception): Add move
11180 assignment operator.
11181 (throw_exception_sjlj): Change "exception" to const reference.
11182 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
11183 (throw_exception_sjlj): Change "exception" to const reference.
11184
cc06b668
TT
111852019-04-25 Tom Tromey <tromey@adacore.com>
11186
11187 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
11188 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
11189 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
11190 Update.
11191 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
11192 Update.
11193 * mi/mi-interp.c (mi_interp::exec): Update.
11194 * linespec.c (parse_linespec): Update.
11195 * infcall.c (run_inferior_call): Update.
11196 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
11197 * guile/scm-symbol.c (gdbscm_lookup_symbol)
11198 (gdbscm_lookup_global_symbol): Update.
11199 * guile/scm-param.c (gdbscm_parameter_value): Update.
11200 * guile/scm-frame.c (gdbscm_frame_read_register)
11201 (gdbscm_frame_read_var): Update.
11202 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
11203 * exec.c (try_open_exec_file): Update.
11204 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
11205 (gdb_rl_callback_handler): Update.
11206 * common/common-exceptions.h (exception_none): Don't declare.
11207 * common/common-exceptions.c (exception_none): Don't define.
11208 (struct catcher) <exception>: Update.
11209 * cli/cli-interp.c (safe_execute_command): Update.
11210 * breakpoint.c (insert_bp_location, location_to_sals): Update.
11211
cf532bd1
AT
112122019-04-25 Ali Tamur <tamur@google.com>
11213
11214 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
11215 (read_attribute_value): Likewise.
11216 (dwarf2_read_addr_index): Update comment.
11217 (read_str_index): Add DW_FORM_strx.
11218 (dwarf2_string_attr): Likewise.
11219 (dwarf2_const_value_attr): Likewise.
11220 (dump_die_shallow): Likewise.
11221 (dwarf2_fetch_constant_bytes): Likewise.
11222 (skip_form_bytes): Likewise.
11223 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
11224
82433e3e
SDJ
112252019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
11226
11227 PR corefiles/11608
11228 PR corefiles/18187
11229 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
11230 OFFSET. Verify if current mapping contains an ELF header.
11231 (linux_find_memory_regions_full): Adjust call to
11232 dump_mapping_p.
11233
723adb65
SL
112342019-04-25 Sandra Loosemore <sandra@codesourcery.com>
11235 Kang Li <kanglictf@gmail.com>
11236
11237 PR gdb/21600
11238
11239 * dwarf2-frame.c (read_initial_length): Be consistent about using
11240 unsigned representation of length.
11241 (decode_frame_entry_1): Likewise. Check for wraparound of
11242 end pointer as well as buffer overflow.
11243
596179f7
SDJ
112442019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
11245
11246 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
11247 "vq".
11248
a59240a4
TT
112492019-04-24 Tom Tromey <tromey@adacore.com>
11250
11251 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
11252
f872fdbb
AB
112532019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11254
11255 * s12z-tdep.c (s12z_unwind_pc): Delete.
11256 (s12z_unwind_sp): Delete.
11257 (s12z_gdbarch_init): Don't register deleted functions with
11258 gdbarch.
11259
b614e6f3
AB
112602019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11261
11262 * rl78-tdep.c (rl78_unwind_sp): Delete.
11263 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
11264
14faed38
AB
112652019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11266
11267 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
11268 (xstormy16_unwind_pc): Delete.
11269 (xstormy16_dummy_id): Delete.
11270 (xstormy16_gdbarch_init): Don't register deleted functions with
11271 gdbarch.
11272
541aad8a
AB
112732019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11274
11275 * vax-tdep.c (vax_unwind_pc): Delete.
11276 (vax_gdbarch_init): Don't register deleted function with gdbarch.
11277
29222070
AB
112782019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11279
11280 * v850-tdep.c (v850_unwind_sp): Delete.
11281 (v850_unwind_pc): Delete.
11282 (v850_dummy_id): Delete.
11283 (v850_gdbarch_init): Don't register deleted functions with
11284 gdbarch.
11285
0f534d76
AB
112862019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11287
11288 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
11289 (tilegx_unwind_pc): Delete.
11290 (tilegx_unwind_dummy_id): Delete.
11291 (tilegx_gdbarch_init): Don't register deleted functions with
11292 gdbarch.
11293
1ba7b7f9
AB
112942019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11295
11296 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
11297 (tic6x_dummy_id): Delete.
11298 (tic6x_gdbarch_init): Don't register deleted functions with
11299 gdbarch.
11300
d31f262c
AB
113012019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11302
11303 * sparc-tdep.c (sparc_unwind_pc): Delete.
11304 (sparc32_gdbarch_init): Don't register deleted function with
11305 gdbarch.
11306
6d14d64d
AB
113072019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11308
11309 * sh-tdep.c (sh_unwind_sp): Delete.
11310 (sh_unwind_pc): Delete.
11311 (sh_dummy_id): Delete.
11312 (sh_gdbarch_init): Don't register deleted functions with
11313 gdbarch.
11314
a40dde9d
AB
113152019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11316
11317 * score-tdep.c (score_unwind_sp): Delete.
11318 (score_unwind_pc): Delete.
11319 (score_dummy_id): Delete.
11320 (score_gdbarch_init): Don't register deleted functions with
11321 gdbarch.
11322
47c47d69
AB
113232019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11324
11325 * rx-tdep.c (rx_unwind_pc): Delete.
11326 (rx_unwind_sp): Delete.
11327 (rx_dummy_id): Delete.
11328 (rx_gdbarch_init): Don't register deleted functions with
11329 gdbarch. Update comment.
11330
833a4480
AB
113312019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11332
11333 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
11334 (rs6000_dummy_id): Delete.
11335 (rs6000_gdbarch_init): Don't register deleted functions with
11336 gdbarch.
11337
3f2cef49
AB
113382019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11339
11340 * or1k-tdep.c (or1k_dummy_id): Delete.
11341 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
11342
96acf884
AB
113432019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11344
11345 * nios2-tdep.c (nios2_dummy_id): Delete.
11346 (nios2_unwind_sp): Delete.
11347 (nios2_gdbarch_init): Don't register deleted functions with
11348 gdbarch.
11349
ca0ab0aa
AB
113502019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11351
11352 * nds32-tdep.c (nds32_dummy_id): Delete.
11353 (nds32_unwind_pc): Delete.
11354 (nds32_unwind_sp): Delete.
11355 (nds32_gdbarch_init): Don't register deleted functions with
11356 gdbarch.
11357
c8259044
AB
113582019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11359
11360 * msp430-tdep.c (msp430_unwind_pc): Delete.
11361 (msp430_unwind_sp): Delete.
11362 (msp430_dummy_id): Delete.
11363 (msp430_gdbarch_init): Don't register deleted functions with
11364 gdbarch.
11365
27f113c8
AB
113662019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11367
11368 * moxie-tdep.c (moxie_unwind_sp): Delete.
11369 (moxie_unwind_pc): Delete.
11370 (moxie_dummy_id): Delete.
11371 (moxie_gdbarch_init): Don't register deleted functions with
11372 gdbarch.
11373
aee6c3cd
AB
113742019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11375
11376 * mn10300-tdep.c (mn10300_dummy_id): Delete.
11377 (mn10300_unwind_pc): Delete.
11378 (mn10300_unwind_sp): Delete.
11379 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
11380 mn10300_unwind_sp.
11381 (mn10300_frame_unwind_init): Don't register deleted functions with
11382 gdbarch.
11383
8e2b5aea
AB
113842019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11385
11386 * mep-tdep.c (mep_unwind_pc): Delete.
11387 (mep_unwind_sp): Delete.
11388 (mep_dummy_id): Delete.
11389 (mep_gdbarch_init): Don't register deleted functions with
11390 gdbarch.
11391
43cf3ede
AB
113922019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11393
11394 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
11395 (m68hc11_unwind_sp): Delete.
11396 (m68hc11_gdbarch_init): Don't register deleted functions with
11397 gdbarch.
11398
5e79b7bb
AB
113992019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11400
11401 * m32r-tdep.c (m32r_unwind_sp): Delete.
11402 (m32r_unwind_pc): Delete.
11403 (m32r_dummy_id): Delete.
11404 (m32r_gdbarch_init): Don't register deleted functions with
11405 gdbarch.
11406
89b268d8
AB
114072019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11408
11409 * m32c-tdep.c (m32c_unwind_pc): Delete.
11410 (m32c_unwind_sp): Delete.
11411 (m32c_dummy_id): Delete.
11412 (m32c_gdbarch_init): Don't register deleted functions with
11413 gdbarch.
11414
946c28d2
AB
114152019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11416
11417 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
11418 (lm32_unwind_pc): Delete.
11419 (lm32_dummy_id): Delete.
11420 (lm32_gdbarch_init): Don't register deleted functions with
11421 gdbarch.
11422
bf12844a
AB
114232019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11424
11425 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
11426 (iq2000_unwind_pc): Delete.
11427 (iq2000_dummy_id): Delete.
11428 (iq2000_gdbarch_init): Don't register deleted functions with
11429 gdbarch.
11430
ecbc06d2
AB
114312019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11432
11433 * nds32-tdep.c (nds32_type_align): Delete.
11434 (nds32_push_dummy_call): Use type_align instead.
11435
030197b4
AB
114362019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11437
11438 * arm-tdep.c (arm_type_align): Only handle vector override case.
11439 (arm_push_dummy_call): Use type_align.
11440 (arm_gdbarch_init): Register arm_type_align gdbarch function.
11441
b907456c
AB
114422019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11443
11444 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
11445 case.
11446 (pass_on_stack): Use type_align.
11447 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
11448 function.
11449
9e97ba43
TT
114502019-04-23 Tom Tromey <tromey@adacore.com>
11451
11452 * dwarf2read.c (line_header::file_name_at): Remove unused
11453 overload.
11454
6892f601
TV
114552019-04-23 Tom de Vries <tdevries@suse.de>
11456
11457 PR gdb/24438
11458 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
11459 invocation.
11460
336d760d
AT
11461
114622019-03-27 Ali Tamur <tamur@google.com>
11463
11464 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
11465 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
11466 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
11467 (dwarf_expr_context::get_addr_index): Likewise
11468 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
11469 (symbol_needs_eval_context::get_addr_index): Likewise
11470 (disassemble_dwarf_expression): Add DW_OP_addrx
11471 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
11472 (read_cutu_die_from_dwo): Update comment
11473 (skip_one_die): Add DW_FORM_addrx
11474 (read_attribute_value): Likewise
11475 (var_decode_location): Add DW_OP_addrx
11476 (dwarf2_const_value_attr): Add DW_FORM_addrx
11477 (dump_die_shallow): Likewise
11478 (dwarf2_fetch_constant_bytes): Likewise
11479 (decode_locdesc): Add DW_OP_addrx
11480 (skip_form_bytes): Add DW_FORM_addrx
11481
ad9d13f8
AT
114822019-04-22 Ali Tamur <tamur@google.com>
11483
11484 * MAINTAINERS (Write After Approval): Add self.
11485
d70cc3ba
SM
114862019-04-22 Simon Marchi <simon.marchi@efficios.com>
11487
11488 * solib-svr4.c (get_svr4_info): Add pspace parameter.
11489 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
11490 (open_symbol_file_object): Likewise.
11491 (svr4_default_sos): Add info parameter.
11492 (svr4_read_so_list): Likewise.
11493 (svr4_current_sos_direct): Adjust functions calls to pass down
11494 info.
11495 (svr4_current_sos_1): Add info parameter.
11496 (svr4_current_sos): Call get_svr4_info, pass info down to
11497 svr4_current_sos_1.
11498 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
11499 get_svr4_info.
11500 (svr4_in_dynsym_resolve_code): Pass current_program_space to
11501 get_svr4_info.
11502 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
11503 to get_svr4_info.
11504 (probes_table_remove_objfile_probes): Likewise.
11505 (register_solib_event_probe): Add info parameter.
11506 (solist_update_incremental): Pass info parameter down to
11507 svr4_read_so_list.
11508 (disable_probes_interface): Add info parameter.
11509 (svr4_handle_solib_event): Pass current_program_space to
11510 get_svr4_info. Adjust disable_probes_interface cleanup.
11511 (svr4_create_probe_breakpoints): Add info parameter, pass it
11512 down to register_solib_event_probe.
11513 (svr4_create_solib_event_breakpoints): Add info parameter,
11514 pass it down to svr4_create_probe_breakpoints.
11515 (enable_break): Pass info down to
11516 svr4_create_solib_event_breakpoints.
11517 (svr4_solib_create_inferior_hook): Pass current_program_space to
11518 get_svr4_info.
11519 (svr4_clear_solib): Likewise.
11520
7905fc35
PA
115212019-04-22 Pedro Alves <palves@redhat.com>
11522
11523 * solib-svr4.c (svr4_free_objfile_observer): New.
11524 (probe_and_action::objfile): New field.
11525 (probes_table_htab_remove_objfile_probes)
11526 (probes_table_remove_objfile_probes): New functions.
11527 (register_solib_event_probe): Add 'objfile' parameter. Store it
11528 in the new probe_and_action. Don't store the probe in 'lookup'.
11529 (svr4_create_probe_breakpoints): Pass objfile to
11530 register_solib_event_probe.
11531 (_initialize_svr4_solib): Register a free_objfile observer.
11532
fb881986
TT
115332019-04-19 Tom Tromey <tom@tromey.com>
11534
11535 * common/queue.h: Remove.
11536
8732db6c
TT
115372019-04-19 Tom Tromey <tom@tromey.com>
11538
11539 * event-loop.c: Don't include "common/queue.h".
11540
97dfbadd
TT
115412019-04-19 Tom Tromey <tom@tromey.com>
11542
11543 * remote.c (remote_target): Use delete.
11544 * remote-notif.h: Include <list>, not "common/queue.h".
11545 (notif_client_p): Remove typedef.
11546 (remote_notif_state): Add constructor, destructor, initializer.
11547 <notif_queue>: Now a std::list.
11548 (remote_notif_state_xfree): Don't declare.
11549 * remote-notif.c (remote_notif_process, handle_notification)
11550 (remote_notif_state_allocate): Update.
11551 (~remote_notif_state): Rename from remote_notif_state_xfree.
11552
cf250e36
TT
115532019-04-19 Tom Tromey <tom@tromey.com>
11554
11555 * symfile.c (reread_symbols): Update.
11556 * objfiles.c (objfile_register_static_link)
11557 (objfile_lookup_static_link): Update
11558 (~objfile) Don't delete static_links.
11559 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
11560
61f4b350
TT
115612019-04-19 Tom Tromey <tom@tromey.com>
11562
11563 * type-stack.h (struct type_stack) <insert>: Constify string.
11564 * type-stack.c (type_stack::insert): Constify string.
11565 * gdbtypes.h (lookup_template_type): Update.
11566 (address_space_name_to_int): Update.
11567 * gdbtypes.c (address_space_name_to_int): Make space_identifier
11568 const.
11569 (lookup_template_type): Make name const.
11570 * c-exp.y: Update rules.
11571 (lex_one_token, classify_name, classify_inner_name)
11572 (c_print_token): Update.
11573 * p-exp.y: Update rules.
11574 (yylex): Update.
11575 * f-exp.y: Update rules.
11576 (yylex): Update.
11577 * d-exp.y: Update rules.
11578 (lex_one_token, classify_name, classify_inner_name): Update.
11579 * parse.c (write_dollar_variable, copy_name): Return std::string.
11580 * parser-defs.h (copy_name): Change return type.
11581 * m2-exp.y: Update rules.
11582 (yylex): Update.
11583 * go-exp.y (lex_one_token): Update.
11584 Update rules.
11585 (classify_unsafe_function, classify_packaged_name)
11586 (classify_name, yylex): Update.
11587
189b8c2e
ST
115882019-04-19 Sergei Trofimovich <siarheit@google.com>
11589
11590 * configure.ac: add --enable-source-highlight switch.
11591 * configure: Regenerate.
11592 * top.c (print_gdb_version): plumb --enable-source-highlight
11593 status to "show configuration".
11594
8ecb59f8
TT
115952019-04-19 Tom Tromey <tromey@adacore.com>
11596
11597 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
11598 Check ADA_TYPE_P.
11599 (empty_record, ada_template_to_fixed_record_type_1)
11600 (template_to_static_fixed_type)
11601 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
11602 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
11603 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
11604 macros.
11605
62160ec9
TT
116062019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
11607
11608 PR symtab/24423:
11609 * source.c (print_source_lines_base): Advance "iter" when a
11610 control character is seen.
11611
f2ae8bc8
PW
116122019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11613
11614 * inferior.h (struct infcall_suspend_state_deleter):
11615 Catch exception in destructor to avoid crash.
11616
d563b953
PW
116172019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11618
11619 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
11620 close to the add_com "shell".
11621
dc34c897
TT
116222019-04-18 Tom Tromey <tromey@adacore.com>
11623
11624 * process-stratum-target.h (class process_stratum_target)
11625 <stratum>: Add "final".
11626
a12e5744
TT
116272019-04-17 Tom Tromey <tromey@adacore.com>
11628
11629 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
11630 against nullptr before use.
11631
a7e559cc
AH
116322019-04-17 Alan Hayward <alan.hayward@arm.com>
11633
11634 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
11635
c01660c6
AB
116362019-04-17 Jim Wilson <jimw@sifive.com>
11637 Andrew Burgess <andrew.burgess@embecosm.com>
11638
11639 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
11640 code read might fail, assume 4-byte breakpoint in that case.
11641
4aa866af
LS
116422019-04-15 Leszek Swirski <leszeks@google.com>
11643
11644 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
11645 rather than a hand-rolled POD check when checking for forced MEMORY
11646 classification.
11647
48574d91
AH
116482019-04-15 Alan Hayward <alan.hayward@arm.com>
11649
11650 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
11651 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
11652 function.
11653 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
11654 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
11655 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
11656 declaration.
11657
4da037ef
AH
116582019-04-15 Alan Hayward <alan.hayward@arm.com>
11659
11660 * aarch64-linux-nat.c
11661 (aarch64_linux_nat_target::thread_architecture): Add override.
11662 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
11663 each VQ.
11664
ccb8d7e8
AH
116652019-04-15 Alan Hayward <alan.hayward@arm.com>
11666
11667 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
11668
35add35e
AB
116692019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
11670
11671 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
11672 target types of size 96-bits, add some additional comments, and
11673 check that the builtin type we found was the correct size.
11674
51196bbc
EZ
116752019-04-12 Eli Zaretskii <eliz@gnu.org>
11676
11677 * utils.c (prompt_for_continue): Don't restore the styling at the
11678 end, as applied_style has the wrong value. This fixes styling in
11679 long lists of file names that are interrupted by the "Continue?"
11680 prompt.
11681
62253a61
AB
116822019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
11683
11684 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
11685 * c-lang.c (c_language_defn): Likewise.
11686 (cplus_language_defn): Likewise.
11687 (asm_language_defn): Likewise.
11688 (minimal_language_defn): Likewise.
11689 * d-lang.c (d_language_defn): Likewise.
11690 * f-lang.c (f_language_defn): Likewise.
11691 * go-lang.c (go_language_defn): Likewise.
11692 * language.c (unknown_language_defn): Likewise.
11693 (auto_language_defn): Likewise.
11694 * language.h (struct language_defn): Remove la_magic field.
11695 (LANG_MAGIC): Delete.
11696 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
11697 * objc-lang.c (objc_language_defn): Likewise.
11698 * opencl-lang.c (opencl_language_defn): Likewise.
11699 * p-lang.c (pascal_language_defn): Likewise.
11700 * rust-lang.c (rust_language_defn): Likewise.
11701
a9158a86
AB
117022019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
11703
11704 * riscv-tdep.c (riscv_type_align): New function.
11705 (riscv_type_alignment): Delete.
11706 (riscv_arg_location): Use 'type_align'.
11707 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
11708
41077b66
AB
117092019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
11710
11711 * gdbtypes.c (type_align): A struct with no non-static fields also
11712 has alignment of 1.
11713
9f0272f8
AB
117142019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
11715
11716 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
11717 component to 0.
11718 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
11719 member.
11720 (riscv_struct_info::analyse): New implementation using new
11721 analyse_inner member function.
11722 (riscv_struct_info::field_offset): New member function.
11723 (riscv_struct_info::m_offsets): New member variable.
11724 (riscv_struct_info::analyse_inner): New private member function,
11725 takes the old implementation of riscv_struct_info::analyse but
11726 extended to track field offsets.
11727 (riscv_call_arg_struct): Update the struct folding special cases
11728 to handle cases where empty C++ structs, which are non-zero
11729 length, are found.
11730 (riscv_arg_location): Initialise the length of each location, a
11731 non-zero length now indicates the location is in use.
11732 (riscv_push_dummy_call): Allow for the first location having a
11733 non-zero offset when setting up arguments.
11734 (riscv_return_value): Likewise, but for return values.
11735
02cf60c7
TT
117362019-04-11 Tom Tromey <tromey@adacore.com>
11737
11738 * utils.c (internal_vproblem): Make "msg" const.
11739
68811f8f
AH
117402019-04-11 Alan Hayward <alan.hayward@arm.com>
11741
11742 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
11743 * trad-frame.c (trad_frame_reset_saved_regs): New function.
11744 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
11745 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
11746
3f52fdbc
KB
117472019-04-10 Kevin Buettner <kevinb@redhat.com>
11748
11749 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
11750 function.
11751 (fill_gregset): Call amd64_linux_collect_native_gregset instead
11752 of amd64_collect_native_gregset.
11753 (amd64_linux_nat_target::store_registers): Likewise.
11754
e9ad22ee
TT
117552019-04-10 Tom Tromey <tom@tromey.com>
11756
11757 * symtab.c (lookup_global_symbol_from_objfile)
11758 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
11759 * objfiles.h (class separate_debug_iterator): New.
11760 (class separate_debug_range): New.
11761 (struct objfile) <separate_debug_objfiles>: New method.
11762 (objfile_separate_debug_iterate): Don't declare.
11763 * objfiles.c (separate_debug_iterator::operator++): Rename from
11764 objfile_separate_debug_iterate.
11765 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
11766 iterator.
11767 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
11768 iterator.
11769
ee371134
TT
117702019-04-10 Tom Tromey <tom@tromey.com>
11771
11772 * symfile.c (reread_symbols): Remove old comment.
11773 * objfiles.c (free_all_objfiles): Fix a typo.
11774
bf227d61
TT
117752019-04-10 Tom Tromey <tom@tromey.com>
11776
11777 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
11778 * minsyms.c (lookup_minimal_symbol): Use foreach.
11779 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
11780 (lookup_minimal_symbol_solib_trampoline): Likewise.
11781 * symfile.c (reread_symbols): Use foreach.
11782
8dc433a0
TT
117832019-04-09 Ivan Begert <ivanbegert@gmail.com>
11784 Tom Tromey <tromey@adacore.com>
11785
11786 PR rust/24414:
11787 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
11788 (rust_lex_int_test): Change "value" to be LONGEST.
11789 (rust_lex_tests): Add test for long integer literal.
11790
9ab8741a
TT
117912019-04-09 Tom Tromey <tromey@adacore.com>
11792
11793 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
11794 to bool.
11795 (extended_remote_target::attach): Update.
11796 (remote_target::remote_notice_new_inferior): Update.
11797 (remote_target::add_current_inferior_and_thread): Update.
11798 * inferior.c (exit_inferior_1): Use "false".
11799 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
11800
e242fd12
SM
118012019-04-09 Simon Marchi <simon.marchi@efficios.com>
11802
9ca1957f 11803 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
e242fd12
SM
11804 the "start" command.
11805
2b0c8b01
KB
118062019-04-08 Kevin Buettner <kevinb@redhat.com>
11807
11808 * python/py-inferior.c (infpy_thread_from_thread_handle):
11809 Adjust comments to reflect renaming of thread_from_thread_handle
11810 to thread_from_handle. Adjust keywords. Fix type error message.
11811 (inferior_object_methods): Add thread_from_handle. Retain
11812 thread_from_thread_handle, but mark it as deprecated.
11813
50a82723
KB
118142019-04-08 Kevin Buettner <kevinb@redhat.com>
11815
11816 * gdbthread.h (find_thread_by_handle): Revise declaration.
11817 * thread.c (find_thread_by_handle): Likewise. Adjust
11818 implementation too.
11819 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
11820 support for buffer objects as handles.
11821
cf63b016
KB
118222019-04-08 Kevin Buettner <kevinb@redhat.com>
11823
11824 * python/py-infthread.c (thpy_thread_handle): New function.
11825 (thread_object_methods): Register thpy_thread_handle.
11826
3d6c6204
KB
118272019-04-08 Kevin Buettner <kevinb@redhat.com>
11828
11829 * gdbthread.h (thread_to_thread_handle): Declare.
11830 * thread.c (gdbtypes.h): Include.
11831 (thread_to_thread_handle): New function.
11832
11833 * target.h (struct target_ops): Add thread_info_to_thread_handle.
11834 (target_thread_info_to_thread_handle): Declare.
11835 * target.c (target_thread_info_to_thread_handle): New function.
11836 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
11837 * target-delegates.c: Regenerate.
11838
11839 * linux-thread-db.c (class thread_db_target): Add method
11840 thread_info_to_thread_handle.
11841 (thread_db_target::thread_info_to_thread_handle): Define.
11842 * remote.c (class remote_target): Add new method
11843 thread_info_to_thread_handle.
11844 (remote_target::thread_info_to_thread_handle): Define.
11845
56be6ea8
PA
118462019-04-08 Pedro Alves <palves@redhat.com>
11847
11848 * common/common-exceptions.c (throw_exception): Don't create
11849 named object to throw; throw directly.
11850 (throw_it): Likewise. Don't initialize gdb_exception::message
11851 here, with new; pass FMT and AP to the ctor instead.
11852 * common/common-exceptions.h: Include <string>.
11853 (gdb_exception::gdb_exception(enum return_reason, enum errors,
11854 const char *, va_list)): New ctor. Use std::make_shared.
11855 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
11856 errors)): Delete.
11857 (gdb_exception_error::gdb_exception_error(enum errors, const char
11858 *, va_list)): New.
11859 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
11860 Add assertion.
11861 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
11862 errors)): Delete.
11863 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
11864 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
11865 Add assertion.
11866
eedc3f4f
TT
118672019-04-08 Tom Tromey <tom@tromey.com>
11868
11869 * valops.c (value_rtti_indirect_type): Replace throw_exception
11870 with throw.
11871 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
11872 with throw.
11873 * thread.c (thr_try_catch_cmd): Replace throw_exception with
11874 throw.
11875 * target.c (target_translate_tls_address): Replace throw_exception
11876 with throw.
11877 * stack.c (frame_apply_command_count): Replace throw_exception
11878 with throw.
11879 * solib-spu.c (append_ocl_sos): Replace throw_exception with
11880 throw.
11881 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
11882 with throw.
11883 * rs6000-tdep.c (rs6000_frame_cache)
11884 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
11885 * remote.c: Replace throw_exception with throw.
11886 * record-full.c (record_full_message, record_full_wait_1)
11887 (record_full_restore): Replace throw_exception with throw.
11888 * record-btrace.c:
11889 (get_thread_current_frame_id, record_btrace_start_replaying)
11890 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
11891 (cmd_record_btrace_start): Replace throw_exception with throw.
11892 * parse.c (parse_exp_in_context_1): Replace throw_exception with
11893 throw.
11894 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
11895 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
11896 * linespec.c:
11897 (find_linespec_symbols): Replace throw_exception with throw.
11898 * infrun.c (displaced_step_prepare, resume): Replace
11899 throw_exception with throw.
11900 * infcmd.c (post_create_inferior): Replace throw_exception with
11901 throw.
11902 * inf-loop.c (inferior_event_handler): Replace throw_exception
11903 with throw.
11904 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
11905 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
11906 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
11907 (get_prev_frame_always, get_frame_pc_if_available)
11908 (get_frame_address_in_block_if_available, get_frame_language):
11909 Replace throw_exception with throw.
11910 * frame-unwind.c (frame_unwind_try_unwinder): Replace
11911 throw_exception with throw.
11912 * eval.c (fetch_subexp_value, evaluate_var_value)
11913 (evaluate_funcall, evaluate_subexp_standard): Replace
11914 throw_exception with throw.
11915 * dwarf2loc.c (call_site_find_chain)
11916 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
11917 Replace throw_exception with throw.
11918 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
11919 with throw.
11920 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
11921 throw.
11922 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
11923 * completer.c (complete_line_internal): Replace throw_exception
11924 with throw.
11925 * compile/compile-object-run.c (compile_object_run): Replace
11926 throw_exception with throw.
11927 * cli/cli-script.c (process_next_line): Replace throw_exception
11928 with throw.
11929 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
11930 (btrace_enable, btrace_maint_update_pt_packets): Replace
11931 throw_exception with throw.
11932 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
11933 throw_exception with throw.
11934 * break-catch-throw.c (re_set_exception_catchpoint): Replace
11935 throw_exception with throw.
11936 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
11937 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
11938 * aarch64-tdep.c (aarch64_make_prologue_cache)
11939 (aarch64_make_stub_cache): Replace throw_exception with throw.
11940
26003a20
TT
119412019-04-08 Tom Tromey <tom@tromey.com>
11942
11943 * common/common-exceptions.c (throw_exception): Rename from
11944 throw_exception_cxx. Remove old copy. Make argument const.
11945 (throw_it): Create and throw exception objects directly.
11946 * common/common-exceptions.h (throw_exception): Make argument
11947 const.
11948 (struct gdb_exception_error): Add constructor.
11949 (struct gdb_exception_quit): Add constructor.
11950
d272eb37
TT
119512019-04-08 Tom Tromey <tom@tromey.com>
11952
11953 * common/common-exceptions.h (exception_rethrow): Don't declare.
11954 (TRY_SJLJ): Update comment.
11955 (TRY, CATCH, END_CATCH): Remove.
11956 * common/common-exceptions.c (exception_rethrow): Remove.
11957
230d2906
TT
119582019-04-08 Tom Tromey <tom@tromey.com>
11959
11960 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
11961 Remove.
11962 (gdb_exception_error): Rename from
11963 gdb_exception_RETURN_MASK_ERROR.
11964 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
11965 (gdb_quit_bad_alloc): Update.
11966 * aarch64-tdep.c: Update.
11967 * ada-lang.c: Update.
11968 * ada-typeprint.c: Update.
11969 * ada-valprint.c: Update.
11970 * amd64-tdep.c: Update.
11971 * arch-utils.c: Update.
11972 * break-catch-throw.c: Update.
11973 * breakpoint.c: Update.
11974 * btrace.c: Update.
11975 * c-varobj.c: Update.
11976 * cli/cli-cmds.c: Update.
11977 * cli/cli-interp.c: Update.
11978 * cli/cli-script.c: Update.
11979 * common/common-exceptions.c: Update.
11980 * common/new-op.c: Update.
11981 * common/selftest.c: Update.
11982 * compile/compile-c-symbols.c: Update.
11983 * compile/compile-cplus-symbols.c: Update.
11984 * compile/compile-object-load.c: Update.
11985 * compile/compile-object-run.c: Update.
11986 * completer.c: Update.
11987 * corelow.c: Update.
11988 * cp-abi.c: Update.
11989 * cp-support.c: Update.
11990 * cp-valprint.c: Update.
11991 * darwin-nat.c: Update.
11992 * disasm-selftests.c: Update.
11993 * dtrace-probe.c: Update.
11994 * dwarf-index-cache.c: Update.
11995 * dwarf-index-write.c: Update.
11996 * dwarf2-frame-tailcall.c: Update.
11997 * dwarf2-frame.c: Update.
11998 * dwarf2loc.c: Update.
11999 * dwarf2read.c: Update.
12000 * eval.c: Update.
12001 * event-loop.c: Update.
12002 * event-top.c: Update.
12003 * exec.c: Update.
12004 * f-valprint.c: Update.
12005 * fbsd-tdep.c: Update.
12006 * frame-unwind.c: Update.
12007 * frame.c: Update.
12008 * gdbtypes.c: Update.
12009 * gnu-v3-abi.c: Update.
12010 * guile/guile-internal.h: Update.
12011 * guile/scm-block.c: Update.
12012 * guile/scm-breakpoint.c: Update.
12013 * guile/scm-cmd.c: Update.
12014 * guile/scm-disasm.c: Update.
12015 * guile/scm-frame.c: Update.
12016 * guile/scm-lazy-string.c: Update.
12017 * guile/scm-math.c: Update.
12018 * guile/scm-param.c: Update.
12019 * guile/scm-ports.c: Update.
12020 * guile/scm-pretty-print.c: Update.
12021 * guile/scm-symbol.c: Update.
12022 * guile/scm-symtab.c: Update.
12023 * guile/scm-type.c: Update.
12024 * guile/scm-value.c: Update.
12025 * i386-linux-tdep.c: Update.
12026 * i386-tdep.c: Update.
12027 * inf-loop.c: Update.
12028 * infcall.c: Update.
12029 * infcmd.c: Update.
12030 * infrun.c: Update.
12031 * jit.c: Update.
12032 * language.c: Update.
12033 * linespec.c: Update.
12034 * linux-fork.c: Update.
12035 * linux-nat.c: Update.
12036 * linux-tdep.c: Update.
12037 * linux-thread-db.c: Update.
12038 * main.c: Update.
12039 * mi/mi-cmd-break.c: Update.
12040 * mi/mi-cmd-stack.c: Update.
12041 * mi/mi-interp.c: Update.
12042 * mi/mi-main.c: Update.
12043 * objc-lang.c: Update.
12044 * p-valprint.c: Update.
12045 * parse.c: Update.
12046 * ppc-linux-tdep.c: Update.
12047 * printcmd.c: Update.
12048 * python/py-arch.c: Update.
12049 * python/py-breakpoint.c: Update.
12050 * python/py-cmd.c: Update.
12051 * python/py-finishbreakpoint.c: Update.
12052 * python/py-frame.c: Update.
12053 * python/py-framefilter.c: Update.
12054 * python/py-gdb-readline.c: Update.
12055 * python/py-inferior.c: Update.
12056 * python/py-infthread.c: Update.
12057 * python/py-lazy-string.c: Update.
12058 * python/py-linetable.c: Update.
12059 * python/py-objfile.c: Update.
12060 * python/py-param.c: Update.
12061 * python/py-prettyprint.c: Update.
12062 * python/py-progspace.c: Update.
12063 * python/py-record-btrace.c: Update.
12064 * python/py-record.c: Update.
12065 * python/py-symbol.c: Update.
12066 * python/py-type.c: Update.
12067 * python/py-unwind.c: Update.
12068 * python/py-utils.c: Update.
12069 * python/py-value.c: Update.
12070 * python/python.c: Update.
12071 * record-btrace.c: Update.
12072 * record-full.c: Update.
12073 * remote-fileio.c: Update.
12074 * remote.c: Update.
12075 * riscv-tdep.c: Update.
12076 * rs6000-aix-tdep.c: Update.
12077 * rs6000-tdep.c: Update.
12078 * rust-exp.y: Update.
12079 * rust-lang.c: Update.
12080 * s390-tdep.c: Update.
12081 * selftest-arch.c: Update.
12082 * solib-dsbt.c: Update.
12083 * solib-frv.c: Update.
12084 * solib-spu.c: Update.
12085 * solib-svr4.c: Update.
12086 * solib.c: Update.
12087 * sparc64-linux-tdep.c: Update.
12088 * stack.c: Update.
12089 * symfile-mem.c: Update.
12090 * symmisc.c: Update.
12091 * target.c: Update.
12092 * thread.c: Update.
12093 * top.c: Update.
12094 * tracefile-tfile.c: Update.
12095 * tui/tui.c: Update.
12096 * typeprint.c: Update.
12097 * unittests/cli-utils-selftests.c: Update.
12098 * unittests/parse-connection-spec-selftests.c: Update.
12099 * valops.c: Update.
12100 * valprint.c: Update.
12101 * value.c: Update.
12102 * varobj.c: Update.
12103 * windows-nat.c: Update.
12104 * x86-linux-nat.c: Update.
12105 * xml-support.c: Update.
12106
a70b8144
TT
121072019-04-08 Tom Tromey <tom@tromey.com>
12108
12109 * xml-support.c: Use C++ exception handling.
12110 * x86-linux-nat.c: Use C++ exception handling.
12111 * windows-nat.c: Use C++ exception handling.
12112 * varobj.c: Use C++ exception handling.
12113 * value.c: Use C++ exception handling.
12114 * valprint.c: Use C++ exception handling.
12115 * valops.c: Use C++ exception handling.
12116 * unittests/parse-connection-spec-selftests.c: Use C++ exception
12117 handling.
12118 * unittests/cli-utils-selftests.c: Use C++ exception handling.
12119 * typeprint.c: Use C++ exception handling.
12120 * tui/tui.c: Use C++ exception handling.
12121 * tracefile-tfile.c: Use C++ exception handling.
12122 * top.c: Use C++ exception handling.
12123 * thread.c: Use C++ exception handling.
12124 * target.c: Use C++ exception handling.
12125 * symmisc.c: Use C++ exception handling.
12126 * symfile-mem.c: Use C++ exception handling.
12127 * stack.c: Use C++ exception handling.
12128 * sparc64-linux-tdep.c: Use C++ exception handling.
12129 * solib.c: Use C++ exception handling.
12130 * solib-svr4.c: Use C++ exception handling.
12131 * solib-spu.c: Use C++ exception handling.
12132 * solib-frv.c: Use C++ exception handling.
12133 * solib-dsbt.c: Use C++ exception handling.
12134 * selftest-arch.c: Use C++ exception handling.
12135 * s390-tdep.c: Use C++ exception handling.
12136 * rust-lang.c: Use C++ exception handling.
12137 * rust-exp.y: Use C++ exception handling.
12138 * rs6000-tdep.c: Use C++ exception handling.
12139 * rs6000-aix-tdep.c: Use C++ exception handling.
12140 * riscv-tdep.c: Use C++ exception handling.
12141 * remote.c: Use C++ exception handling.
12142 * remote-fileio.c: Use C++ exception handling.
12143 * record-full.c: Use C++ exception handling.
12144 * record-btrace.c: Use C++ exception handling.
12145 * python/python.c: Use C++ exception handling.
12146 * python/py-value.c: Use C++ exception handling.
12147 * python/py-utils.c: Use C++ exception handling.
12148 * python/py-unwind.c: Use C++ exception handling.
12149 * python/py-type.c: Use C++ exception handling.
12150 * python/py-symbol.c: Use C++ exception handling.
12151 * python/py-record.c: Use C++ exception handling.
12152 * python/py-record-btrace.c: Use C++ exception handling.
12153 * python/py-progspace.c: Use C++ exception handling.
12154 * python/py-prettyprint.c: Use C++ exception handling.
12155 * python/py-param.c: Use C++ exception handling.
12156 * python/py-objfile.c: Use C++ exception handling.
12157 * python/py-linetable.c: Use C++ exception handling.
12158 * python/py-lazy-string.c: Use C++ exception handling.
12159 * python/py-infthread.c: Use C++ exception handling.
12160 * python/py-inferior.c: Use C++ exception handling.
12161 * python/py-gdb-readline.c: Use C++ exception handling.
12162 * python/py-framefilter.c: Use C++ exception handling.
12163 * python/py-frame.c: Use C++ exception handling.
12164 * python/py-finishbreakpoint.c: Use C++ exception handling.
12165 * python/py-cmd.c: Use C++ exception handling.
12166 * python/py-breakpoint.c: Use C++ exception handling.
12167 * python/py-arch.c: Use C++ exception handling.
12168 * printcmd.c: Use C++ exception handling.
12169 * ppc-linux-tdep.c: Use C++ exception handling.
12170 * parse.c: Use C++ exception handling.
12171 * p-valprint.c: Use C++ exception handling.
12172 * objc-lang.c: Use C++ exception handling.
12173 * mi/mi-main.c: Use C++ exception handling.
12174 * mi/mi-interp.c: Use C++ exception handling.
12175 * mi/mi-cmd-stack.c: Use C++ exception handling.
12176 * mi/mi-cmd-break.c: Use C++ exception handling.
12177 * main.c: Use C++ exception handling.
12178 * linux-thread-db.c: Use C++ exception handling.
12179 * linux-tdep.c: Use C++ exception handling.
12180 * linux-nat.c: Use C++ exception handling.
12181 * linux-fork.c: Use C++ exception handling.
12182 * linespec.c: Use C++ exception handling.
12183 * language.c: Use C++ exception handling.
12184 * jit.c: Use C++ exception handling.
12185 * infrun.c: Use C++ exception handling.
12186 * infcmd.c: Use C++ exception handling.
12187 * infcall.c: Use C++ exception handling.
12188 * inf-loop.c: Use C++ exception handling.
12189 * i386-tdep.c: Use C++ exception handling.
12190 * i386-linux-tdep.c: Use C++ exception handling.
12191 * guile/scm-value.c: Use C++ exception handling.
12192 * guile/scm-type.c: Use C++ exception handling.
12193 * guile/scm-symtab.c: Use C++ exception handling.
12194 * guile/scm-symbol.c: Use C++ exception handling.
12195 * guile/scm-pretty-print.c: Use C++ exception handling.
12196 * guile/scm-ports.c: Use C++ exception handling.
12197 * guile/scm-param.c: Use C++ exception handling.
12198 * guile/scm-math.c: Use C++ exception handling.
12199 * guile/scm-lazy-string.c: Use C++ exception handling.
12200 * guile/scm-frame.c: Use C++ exception handling.
12201 * guile/scm-disasm.c: Use C++ exception handling.
12202 * guile/scm-cmd.c: Use C++ exception handling.
12203 * guile/scm-breakpoint.c: Use C++ exception handling.
12204 * guile/scm-block.c: Use C++ exception handling.
12205 * guile/guile-internal.h: Use C++ exception handling.
12206 * gnu-v3-abi.c: Use C++ exception handling.
12207 * gdbtypes.c: Use C++ exception handling.
12208 * frame.c: Use C++ exception handling.
12209 * frame-unwind.c: Use C++ exception handling.
12210 * fbsd-tdep.c: Use C++ exception handling.
12211 * f-valprint.c: Use C++ exception handling.
12212 * exec.c: Use C++ exception handling.
12213 * event-top.c: Use C++ exception handling.
12214 * event-loop.c: Use C++ exception handling.
12215 * eval.c: Use C++ exception handling.
12216 * dwarf2read.c: Use C++ exception handling.
12217 * dwarf2loc.c: Use C++ exception handling.
12218 * dwarf2-frame.c: Use C++ exception handling.
12219 * dwarf2-frame-tailcall.c: Use C++ exception handling.
12220 * dwarf-index-write.c: Use C++ exception handling.
12221 * dwarf-index-cache.c: Use C++ exception handling.
12222 * dtrace-probe.c: Use C++ exception handling.
12223 * disasm-selftests.c: Use C++ exception handling.
12224 * darwin-nat.c: Use C++ exception handling.
12225 * cp-valprint.c: Use C++ exception handling.
12226 * cp-support.c: Use C++ exception handling.
12227 * cp-abi.c: Use C++ exception handling.
12228 * corelow.c: Use C++ exception handling.
12229 * completer.c: Use C++ exception handling.
12230 * compile/compile-object-run.c: Use C++ exception handling.
12231 * compile/compile-object-load.c: Use C++ exception handling.
12232 * compile/compile-cplus-symbols.c: Use C++ exception handling.
12233 * compile/compile-c-symbols.c: Use C++ exception handling.
12234 * common/selftest.c: Use C++ exception handling.
12235 * common/new-op.c: Use C++ exception handling.
12236 * cli/cli-script.c: Use C++ exception handling.
12237 * cli/cli-interp.c: Use C++ exception handling.
12238 * cli/cli-cmds.c: Use C++ exception handling.
12239 * c-varobj.c: Use C++ exception handling.
12240 * btrace.c: Use C++ exception handling.
12241 * breakpoint.c: Use C++ exception handling.
12242 * break-catch-throw.c: Use C++ exception handling.
12243 * arch-utils.c: Use C++ exception handling.
12244 * amd64-tdep.c: Use C++ exception handling.
12245 * ada-valprint.c: Use C++ exception handling.
12246 * ada-typeprint.c: Use C++ exception handling.
12247 * ada-lang.c: Use C++ exception handling.
12248 * aarch64-tdep.c: Use C++ exception handling.
12249
3d6e9d23
TT
122502019-04-08 Tom Tromey <tom@tromey.com>
12251
12252 * xml-support.c (gdb_xml_parser::parse): Update.
12253 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
12254 * value.c (show_convenience): Update.
12255 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
12256 (test_parse_flags_qcs): Update.
12257 * thread.c (thr_try_catch_cmd): Update.
12258 * target.c (target_translate_tls_address): Update.
12259 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
12260 (info_frame_command_core, frame_apply_command_count): Update.
12261 * rust-exp.y (rust_lex_exception_test): Update.
12262 * riscv-tdep.c (riscv_print_one_register_info): Update.
12263 * remote.c (remote_target::enable_btrace): Update.
12264 * record-btrace.c (record_btrace_enable_warn): Update.
12265 * python/py-utils.c (gdbpy_convert_exception): Update.
12266 * printcmd.c (do_one_display, print_variable_and_value): Update.
12267 * mi/mi-main.c (mi_print_exception): Update.
12268 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
12269 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
12270 * linux-nat.c (linux_nat_target::attach): Update.
12271 * linux-fork.c (class scoped_switch_fork_info): Update.
12272 * infrun.c (displaced_step_prepare): Update.
12273 * infcall.c (call_function_by_hand_dummy): Update.
12274 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
12275 * gnu-v3-abi.c (print_one_vtable): Update.
12276 * frame.c (get_prev_frame_always): Update.
12277 * f-valprint.c (info_common_command_for_block): Update.
12278 * exec.c (try_open_exec_file): Update.
12279 * exceptions.c (print_exception, exception_print)
12280 (exception_fprintf, exception_print_same): Update.
12281 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
12282 * dwarf-index-cache.c (index_cache::store)
12283 (index_cache::lookup_gdb_index): Update.
12284 * darwin-nat.c (maybe_cache_shell): Update.
12285 * cp-valprint.c (cp_print_value_fields): Update.
12286 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
12287 (gcc_cplus_symbol_address): Update.
12288 * compile/compile-c-symbols.c (gcc_convert_symbol)
12289 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
12290 * common/selftest.c: Update.
12291 * common/common-exceptions.h (struct gdb_exception) <message>: Now
12292 a std::string.
12293 (exception_try_scope_entry, exception_try_scope_exit): Don't
12294 declare.
12295 (struct exception_try_scope): Remove.
12296 (TRY): Don't use exception_try_scope.
12297 (struct gdb_exception): Add constructor, operator=.
12298 <what>: New method.
12299 (struct gdb_exception_RETURN_MASK_ALL)
12300 (struct gdb_exception_RETURN_MASK_ERROR)
12301 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
12302 (struct gdb_quit_bad_alloc): Update.
12303 * common/common-exceptions.c (exception_none): Change
12304 initializer.
12305 (struct catcher) <state, exception>: Initialize inline.
12306 <prev>: Remove member.
12307 (current_catcher): Remove.
12308 (catchers): New global.
12309 (exceptions_state_mc_init): Simplify.
12310 (catcher_pop): Remove.
12311 (exceptions_state_mc, exceptions_state_mc_catch): Update.
12312 (try_scope_depth, exception_try_scope_entry)
12313 (exception_try_scope_exit): Remove.
12314 (throw_exception_sjlj): Update.
12315 (exception_messages, exception_messages_size): Remove.
12316 (throw_it): Simplify.
12317 (gdb_exception_sliced_copy): Remove.
12318 (throw_exception_cxx): Update.
12319 * cli/cli-script.c (script_from_file): Update.
12320 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
12321 Update.
12322 * ada-valprint.c (ada_val_print): Update.
12323 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
12324 (create_excep_cond_exprs): Update.
12325
c5c10118
TT
123262019-04-08 Tom Tromey <tom@tromey.com>
12327
12328 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
12329 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
12330 (TRY, CATCH, END_CATCH): Remove some definitions.
12331 * common/common-exceptions.c: Don't use GDB_XCPT.
12332 (catcher_list_size): Remove.
12333 (throw_exception, throw_it): Simplify.
12334
4de283e4
TT
123352019-04-05 Tom Tromey <tom@tromey.com>
12336
12337 Revert the header-sorting patch.
12338 * ft32-tdep.c: Revert.
12339 * frv-tdep.c: Revert.
12340 * frv-linux-tdep.c: Revert.
12341 * frame.c: Revert.
12342 * frame-unwind.c: Revert.
12343 * frame-base.c: Revert.
12344 * fork-child.c: Revert.
12345 * findvar.c: Revert.
12346 * findcmd.c: Revert.
12347 * filesystem.c: Revert.
12348 * filename-seen-cache.h: Revert.
12349 * filename-seen-cache.c: Revert.
12350 * fbsd-tdep.c: Revert.
12351 * fbsd-nat.h: Revert.
12352 * fbsd-nat.c: Revert.
12353 * f-valprint.c: Revert.
12354 * f-typeprint.c: Revert.
12355 * f-lang.c: Revert.
12356 * extension.h: Revert.
12357 * extension.c: Revert.
12358 * extension-priv.h: Revert.
12359 * expprint.c: Revert.
12360 * exec.h: Revert.
12361 * exec.c: Revert.
12362 * exceptions.c: Revert.
12363 * event-top.c: Revert.
12364 * event-loop.c: Revert.
12365 * eval.c: Revert.
12366 * elfread.c: Revert.
12367 * dwarf2read.h: Revert.
12368 * dwarf2read.c: Revert.
12369 * dwarf2loc.c: Revert.
12370 * dwarf2expr.h: Revert.
12371 * dwarf2expr.c: Revert.
12372 * dwarf2-frame.c: Revert.
12373 * dwarf2-frame-tailcall.c: Revert.
12374 * dwarf-index-write.h: Revert.
12375 * dwarf-index-write.c: Revert.
12376 * dwarf-index-common.c: Revert.
12377 * dwarf-index-cache.h: Revert.
12378 * dwarf-index-cache.c: Revert.
12379 * dummy-frame.c: Revert.
12380 * dtrace-probe.c: Revert.
12381 * disasm.h: Revert.
12382 * disasm.c: Revert.
12383 * disasm-selftests.c: Revert.
12384 * dictionary.c: Revert.
12385 * dicos-tdep.c: Revert.
12386 * demangle.c: Revert.
12387 * dcache.h: Revert.
12388 * dcache.c: Revert.
12389 * darwin-nat.h: Revert.
12390 * darwin-nat.c: Revert.
12391 * darwin-nat-info.c: Revert.
12392 * d-valprint.c: Revert.
12393 * d-namespace.c: Revert.
12394 * d-lang.c: Revert.
12395 * ctf.c: Revert.
12396 * csky-tdep.c: Revert.
12397 * csky-linux-tdep.c: Revert.
12398 * cris-tdep.c: Revert.
12399 * cris-linux-tdep.c: Revert.
12400 * cp-valprint.c: Revert.
12401 * cp-support.c: Revert.
12402 * cp-namespace.c: Revert.
12403 * cp-abi.c: Revert.
12404 * corelow.c: Revert.
12405 * corefile.c: Revert.
12406 * continuations.c: Revert.
12407 * completer.h: Revert.
12408 * completer.c: Revert.
12409 * complaints.c: Revert.
12410 * coffread.c: Revert.
12411 * coff-pe-read.c: Revert.
12412 * cli-out.h: Revert.
12413 * cli-out.c: Revert.
12414 * charset.c: Revert.
12415 * c-varobj.c: Revert.
12416 * c-valprint.c: Revert.
12417 * c-typeprint.c: Revert.
12418 * c-lang.c: Revert.
12419 * buildsym.c: Revert.
12420 * buildsym-legacy.c: Revert.
12421 * build-id.h: Revert.
12422 * build-id.c: Revert.
12423 * btrace.c: Revert.
12424 * bsd-uthread.c: Revert.
12425 * breakpoint.h: Revert.
12426 * breakpoint.c: Revert.
12427 * break-catch-throw.c: Revert.
12428 * break-catch-syscall.c: Revert.
12429 * break-catch-sig.c: Revert.
12430 * blockframe.c: Revert.
12431 * block.c: Revert.
12432 * bfin-tdep.c: Revert.
12433 * bfin-linux-tdep.c: Revert.
12434 * bfd-target.c: Revert.
12435 * bcache.c: Revert.
12436 * ax-general.c: Revert.
12437 * ax-gdb.h: Revert.
12438 * ax-gdb.c: Revert.
12439 * avr-tdep.c: Revert.
12440 * auxv.c: Revert.
12441 * auto-load.c: Revert.
12442 * arm-wince-tdep.c: Revert.
12443 * arm-tdep.c: Revert.
12444 * arm-symbian-tdep.c: Revert.
12445 * arm-pikeos-tdep.c: Revert.
12446 * arm-obsd-tdep.c: Revert.
12447 * arm-nbsd-tdep.c: Revert.
12448 * arm-nbsd-nat.c: Revert.
12449 * arm-linux-tdep.c: Revert.
12450 * arm-linux-nat.c: Revert.
12451 * arm-fbsd-tdep.c: Revert.
12452 * arm-fbsd-nat.c: Revert.
12453 * arm-bsd-tdep.c: Revert.
12454 * arch-utils.c: Revert.
12455 * arc-tdep.c: Revert.
12456 * arc-newlib-tdep.c: Revert.
12457 * annotate.h: Revert.
12458 * annotate.c: Revert.
12459 * amd64-windows-tdep.c: Revert.
12460 * amd64-windows-nat.c: Revert.
12461 * amd64-tdep.c: Revert.
12462 * amd64-sol2-tdep.c: Revert.
12463 * amd64-obsd-tdep.c: Revert.
12464 * amd64-obsd-nat.c: Revert.
12465 * amd64-nbsd-tdep.c: Revert.
12466 * amd64-nbsd-nat.c: Revert.
12467 * amd64-nat.c: Revert.
12468 * amd64-linux-tdep.c: Revert.
12469 * amd64-linux-nat.c: Revert.
12470 * amd64-fbsd-tdep.c: Revert.
12471 * amd64-fbsd-nat.c: Revert.
12472 * amd64-dicos-tdep.c: Revert.
12473 * amd64-darwin-tdep.c: Revert.
12474 * amd64-bsd-nat.c: Revert.
12475 * alpha-tdep.c: Revert.
12476 * alpha-obsd-tdep.c: Revert.
12477 * alpha-nbsd-tdep.c: Revert.
12478 * alpha-mdebug-tdep.c: Revert.
12479 * alpha-linux-tdep.c: Revert.
12480 * alpha-linux-nat.c: Revert.
12481 * alpha-bsd-tdep.c: Revert.
12482 * alpha-bsd-nat.c: Revert.
12483 * aix-thread.c: Revert.
12484 * agent.c: Revert.
12485 * addrmap.c: Revert.
12486 * ada-varobj.c: Revert.
12487 * ada-valprint.c: Revert.
12488 * ada-typeprint.c: Revert.
12489 * ada-tasks.c: Revert.
12490 * ada-lang.c: Revert.
12491 * aarch64-tdep.c: Revert.
12492 * aarch64-ravenscar-thread.c: Revert.
12493 * aarch64-newlib-tdep.c: Revert.
12494 * aarch64-linux-tdep.c: Revert.
12495 * aarch64-linux-nat.c: Revert.
12496 * aarch64-fbsd-tdep.c: Revert.
12497 * aarch64-fbsd-nat.c: Revert.
12498 * aarch32-linux-nat.c: Revert.
12499
d55e5aa6
TT
125002019-04-05 Tom Tromey <tom@tromey.com>
12501
12502 * ft32-tdep.c: Sort headers.
12503 * frv-tdep.c: Sort headers.
12504 * frv-linux-tdep.c: Sort headers.
12505 * frame.c: Sort headers.
12506 * frame-unwind.c: Sort headers.
12507 * frame-base.c: Sort headers.
12508 * fork-child.c: Sort headers.
12509 * findvar.c: Sort headers.
12510 * findcmd.c: Sort headers.
12511 * filesystem.c: Sort headers.
12512 * filename-seen-cache.h: Sort headers.
12513 * filename-seen-cache.c: Sort headers.
12514 * fbsd-tdep.c: Sort headers.
12515 * fbsd-nat.h: Sort headers.
12516 * fbsd-nat.c: Sort headers.
12517 * f-valprint.c: Sort headers.
12518 * f-typeprint.c: Sort headers.
12519 * f-lang.c: Sort headers.
12520 * extension.h: Sort headers.
12521 * extension.c: Sort headers.
12522 * extension-priv.h: Sort headers.
12523 * expprint.c: Sort headers.
12524 * exec.h: Sort headers.
12525 * exec.c: Sort headers.
12526 * exceptions.c: Sort headers.
12527 * event-top.c: Sort headers.
12528 * event-loop.c: Sort headers.
12529 * eval.c: Sort headers.
12530 * elfread.c: Sort headers.
12531 * dwarf2read.h: Sort headers.
12532 * dwarf2read.c: Sort headers.
12533 * dwarf2loc.c: Sort headers.
12534 * dwarf2expr.h: Sort headers.
12535 * dwarf2expr.c: Sort headers.
12536 * dwarf2-frame.c: Sort headers.
12537 * dwarf2-frame-tailcall.c: Sort headers.
12538 * dwarf-index-write.h: Sort headers.
12539 * dwarf-index-write.c: Sort headers.
12540 * dwarf-index-common.c: Sort headers.
12541 * dwarf-index-cache.h: Sort headers.
12542 * dwarf-index-cache.c: Sort headers.
12543 * dummy-frame.c: Sort headers.
12544 * dtrace-probe.c: Sort headers.
12545 * disasm.h: Sort headers.
12546 * disasm.c: Sort headers.
12547 * disasm-selftests.c: Sort headers.
12548 * dictionary.c: Sort headers.
12549 * dicos-tdep.c: Sort headers.
12550 * demangle.c: Sort headers.
12551 * dcache.h: Sort headers.
12552 * dcache.c: Sort headers.
12553 * darwin-nat.h: Sort headers.
12554 * darwin-nat.c: Sort headers.
12555 * darwin-nat-info.c: Sort headers.
12556 * d-valprint.c: Sort headers.
12557 * d-namespace.c: Sort headers.
12558 * d-lang.c: Sort headers.
12559 * ctf.c: Sort headers.
12560 * csky-tdep.c: Sort headers.
12561 * csky-linux-tdep.c: Sort headers.
12562 * cris-tdep.c: Sort headers.
12563 * cris-linux-tdep.c: Sort headers.
12564 * cp-valprint.c: Sort headers.
12565 * cp-support.c: Sort headers.
12566 * cp-namespace.c: Sort headers.
12567 * cp-abi.c: Sort headers.
12568 * corelow.c: Sort headers.
12569 * corefile.c: Sort headers.
12570 * continuations.c: Sort headers.
12571 * completer.h: Sort headers.
12572 * completer.c: Sort headers.
12573 * complaints.c: Sort headers.
12574 * coffread.c: Sort headers.
12575 * coff-pe-read.c: Sort headers.
12576 * cli-out.h: Sort headers.
12577 * cli-out.c: Sort headers.
12578 * charset.c: Sort headers.
12579 * c-varobj.c: Sort headers.
12580 * c-valprint.c: Sort headers.
12581 * c-typeprint.c: Sort headers.
12582 * c-lang.c: Sort headers.
12583 * buildsym.c: Sort headers.
12584 * buildsym-legacy.c: Sort headers.
12585 * build-id.h: Sort headers.
12586 * build-id.c: Sort headers.
12587 * btrace.c: Sort headers.
12588 * bsd-uthread.c: Sort headers.
12589 * breakpoint.h: Sort headers.
12590 * breakpoint.c: Sort headers.
12591 * break-catch-throw.c: Sort headers.
12592 * break-catch-syscall.c: Sort headers.
12593 * break-catch-sig.c: Sort headers.
12594 * blockframe.c: Sort headers.
12595 * block.c: Sort headers.
12596 * bfin-tdep.c: Sort headers.
12597 * bfin-linux-tdep.c: Sort headers.
12598 * bfd-target.c: Sort headers.
12599 * bcache.c: Sort headers.
12600 * ax-general.c: Sort headers.
12601 * ax-gdb.h: Sort headers.
12602 * ax-gdb.c: Sort headers.
12603 * avr-tdep.c: Sort headers.
12604 * auxv.c: Sort headers.
12605 * auto-load.c: Sort headers.
12606 * arm-wince-tdep.c: Sort headers.
12607 * arm-tdep.c: Sort headers.
12608 * arm-symbian-tdep.c: Sort headers.
12609 * arm-pikeos-tdep.c: Sort headers.
12610 * arm-obsd-tdep.c: Sort headers.
12611 * arm-nbsd-tdep.c: Sort headers.
12612 * arm-nbsd-nat.c: Sort headers.
12613 * arm-linux-tdep.c: Sort headers.
12614 * arm-linux-nat.c: Sort headers.
12615 * arm-fbsd-tdep.c: Sort headers.
12616 * arm-fbsd-nat.c: Sort headers.
12617 * arm-bsd-tdep.c: Sort headers.
12618 * arch-utils.c: Sort headers.
12619 * arc-tdep.c: Sort headers.
12620 * arc-newlib-tdep.c: Sort headers.
12621 * annotate.h: Sort headers.
12622 * annotate.c: Sort headers.
12623 * amd64-windows-tdep.c: Sort headers.
12624 * amd64-windows-nat.c: Sort headers.
12625 * amd64-tdep.c: Sort headers.
12626 * amd64-sol2-tdep.c: Sort headers.
12627 * amd64-obsd-tdep.c: Sort headers.
12628 * amd64-obsd-nat.c: Sort headers.
12629 * amd64-nbsd-tdep.c: Sort headers.
12630 * amd64-nbsd-nat.c: Sort headers.
12631 * amd64-nat.c: Sort headers.
12632 * amd64-linux-tdep.c: Sort headers.
12633 * amd64-linux-nat.c: Sort headers.
12634 * amd64-fbsd-tdep.c: Sort headers.
12635 * amd64-fbsd-nat.c: Sort headers.
12636 * amd64-dicos-tdep.c: Sort headers.
12637 * amd64-darwin-tdep.c: Sort headers.
12638 * amd64-bsd-nat.c: Sort headers.
12639 * alpha-tdep.c: Sort headers.
12640 * alpha-obsd-tdep.c: Sort headers.
12641 * alpha-nbsd-tdep.c: Sort headers.
12642 * alpha-mdebug-tdep.c: Sort headers.
12643 * alpha-linux-tdep.c: Sort headers.
12644 * alpha-linux-nat.c: Sort headers.
12645 * alpha-bsd-tdep.c: Sort headers.
12646 * alpha-bsd-nat.c: Sort headers.
12647 * aix-thread.c: Sort headers.
12648 * agent.c: Sort headers.
12649 * addrmap.c: Sort headers.
12650 * ada-varobj.c: Sort headers.
12651 * ada-valprint.c: Sort headers.
12652 * ada-typeprint.c: Sort headers.
12653 * ada-tasks.c: Sort headers.
12654 * ada-lang.c: Sort headers.
12655 * aarch64-tdep.c: Sort headers.
12656 * aarch64-ravenscar-thread.c: Sort headers.
12657 * aarch64-newlib-tdep.c: Sort headers.
12658 * aarch64-linux-tdep.c: Sort headers.
12659 * aarch64-linux-nat.c: Sort headers.
12660 * aarch64-fbsd-tdep.c: Sort headers.
12661 * aarch64-fbsd-nat.c: Sort headers.
12662 * aarch32-linux-nat.c: Sort headers.
12663
699bd4cf
TT
126642019-04-04 Tom Tromey <tom@tromey.com>
12665
12666 * varobj.c (varobj_create): Update.
12667 * rust-exp.y (struct rust_parser) <update_innermost_block,
12668 lookup_symbol>: New methods.
12669 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
12670 Rename.
12671 (rust_parser::rust_lookup_type)
12672 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
12673 * printcmd.c (display_command, do_one_display): Update.
12674 * parser-defs.h (struct parser_state) <parser_state>: Add
12675 "tracker" parameter.
12676 (block_tracker): New member.
12677 (class innermost_block_tracker) <innermost_block_tracker>: Add
12678 "types" parameter.
12679 <reset>: Remove method.
12680 (innermost_block): Don't declare.
12681 (null_post_parser): Update.
12682 * parse.c (innermost_block): Remove global.
12683 (write_dollar_variable): Update.
12684 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
12685 Remove "tracker_types" parameter.
12686 (parse_expression): Add "tracker" parameter.
12687 (parse_expression_for_completion): Update.
12688 (null_post_parser): Add "tracker" parameter.
12689 * p-exp.y: Update rules.
12690 * m2-exp.y: Update rules.
12691 * language.h (struct language_defn) <la_post_parser>: Add
12692 "tracker" parameter.
12693 * go-exp.y: Update rules.
12694 * f-exp.y: Update rules.
12695 * expression.h (parse_expression, parse_exp_1): Add "tracker"
12696 parameter.
12697 * d-exp.y: Update rules.
12698 * c-exp.y: Update rules.
12699 * breakpoint.c (set_breakpoint_condition): Create an
12700 innermost_block_tracker.
12701 (watch_command_1): Likewise.
12702 * ada-lang.c (resolve): Add "tracker" parameter.
12703 (resolve_subexp): Likewise.
12704 * ada-exp.y (write_var_from_sym): Update.
12705
dac43e32
TT
127062019-04-04 Tom Tromey <tom@tromey.com>
12707
12708 * type-stack.h: New file.
12709 * type-stack.c: New file.
12710 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
12711 type-stack.h.
12712 (insert_into_type_stack, insert_type, push_type, push_type_int)
12713 (insert_type_address_space, pop_type, pop_type_int)
12714 (pop_typelist, pop_type_stack, append_type_stack)
12715 (push_type_stack, get_type_stack, push_typelist)
12716 (follow_type_instance_flags, follow_types): Don't declare.
12717 * parse.c (type_stack): Remove global.
12718 (parse_exp_in_context): Update.
12719 (insert_into_type_stack, insert_type, push_type, push_type_int)
12720 (insert_type_address_space, pop_type, pop_type_int)
12721 (pop_typelist, pop_type_stack, append_type_stack)
12722 (push_type_stack, get_type_stack, push_typelist)
12723 (follow_type_instance_flags, follow_types): Remove (moved to
12724 type-stack.c).
12725 * f-exp.y (type_stack): New global.
12726 Update rules.
12727 (push_kind_type, f_parse): Update.
12728 * d-exp.y (type_stack): New global.
12729 Update rules.
12730 (d_parse): Update.
12731 * c-exp.y (struct c_parse_state) <type_stack>: New member.
12732 Update rules.
12733 * Makefile.in (COMMON_SFILES): Add type-stack.c.
12734 (HFILES_NO_SRCDIR): Add type-stack.h.
12735
2a612529
TT
127362019-04-04 Tom Tromey <tom@tromey.com>
12737
12738 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
12739 (rust_parser::convert_ast_to_expression, rust_parse)
12740 (rust_lex_test_completion, rust_lex_tests): Update.
12741 * parser-defs.h (struct expr_completion_state): New.
12742 (struct parser_state) <parser_state>: Add completion parameter.
12743 <mark_struct_expression, mark_completion_tag>: New methods.
12744 <parse_completion, m_completion_state>: New members.
12745 (prefixify_expression, null_post_parser): Update.
12746 (mark_struct_expression, mark_completion_tag): Don't declare.
12747 * parse.c (parse_completion, expout_last_struct)
12748 (expout_tag_completion_type, expout_completion_name): Remove
12749 globals.
12750 (parser_state::mark_struct_expression)
12751 (parser_state::mark_completion_tag): Now methods.
12752 (prefixify_expression): Add last_struct parameter.
12753 (prefixify_subexp): Likewise.
12754 (parse_exp_1): Update.
12755 (parse_exp_in_context): Add cstate parameter. Update.
12756 (parse_expression_for_completion): Create an
12757 expr_completion_state.
12758 (null_post_parser): Add "completion" parameter.
12759 * p-exp.y: Update rules.
12760 (yylex): Update.
12761 * language.h (struct language_defn) <la_post_parser>: Add
12762 "completing" parameter.
12763 * go-exp.y: Update rules.
12764 (lex_one_token): Update.
12765 * expression.h (parse_completion): Don't declare.
12766 * d-exp.y: Update rules.
12767 (lex_one_token): Update rules.
12768 * c-exp.y: Update rules.
12769 (lex_one_token): Update.
12770 * ada-lang.c (resolve): Add "parse_completion" parameter.
12771 (resolve_subexp): Likewise.
12772 (ada_resolve_function): Likewise.
12773
43476f0b
TT
127742019-04-04 Tom Tromey <tom@tromey.com>
12775
12776 * parser-defs.h (struct parser_state) <start_arglist,
12777 end_arglist>: New methods.
12778 <arglist_len, m_funcall_chain>: New members.
12779 (arglist_len, start_arglist, end_arglist): Don't declare.
12780 * parse.c (arglist_len, funcall_chain): Remove global.
12781 (start_arglist, end_arglist): Remove functions.
12782 (parse_exp_in_context): Update.
12783 * p-exp.y: Update rules.
12784 * m2-exp.y: Update rules.
12785 * go-exp.y: Update rules.
12786 * f-exp.y: Update rules.
12787 * d-exp.y: Update rules.
12788 * c-exp.y: Update rules.
12789
5776fca3
TT
127902019-04-04 Tom Tromey <tom@tromey.com>
12791
12792 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
12793 lex_operator, push_back>: New methods.
12794 Update all rules.
12795 (rust_parser::lex_hex, lex_escape): Rename and update.
12796 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
12797 (rust_parser::lex_operator): Rename and update.
12798 (rust_parser::lex_number, rustyylex, rustyyerror)
12799 (rust_lex_test_init, rust_lex_test_sequence)
12800 (rust_lex_test_push_back, rust_lex_tests): Update.
12801 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
12802 parameter.
12803 <lexptr, prev_lexptr>: New members.
12804 (lexptr, prev_lexptr): Don't declare.
12805 * parse.c (lexptr, prev_lexptr): Remove globals.
12806 (parse_exp_in_context): Update.
12807 * p-exp.y (yylex, yyerror): Update.
12808 * m2-exp.y (parse_number, yylex, yyerror): Update.
12809 * go-exp.y (lex_one_token, yyerror): Update.
12810 * f-exp.y (match_string_literal, yylex, yyerror): Update.
12811 * d-exp.y (lex_one_token, yyerror): Update.
12812 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
12813 (lex_one_token, yyerror): Update.
12814 * ada-lex.l (YY_INPUT): Update.
12815 (rewind_to_char): Update.
12816 * ada-exp.y (yyerror): Update.
12817
8621b685
TT
128182019-04-04 Tom Tromey <tom@tromey.com>
12819
12820 * rust-exp.y (rustyylex, rust_lex_tests): Update.
12821 * parser-defs.h (struct parser_state) <parser_state>: Add new
12822 parameter.
12823 <comma_terminates>: New member.
12824 (comma_terminates): Don't declare global.
12825 * parse.c (comma_terminates): Remove global.
12826 (parse_exp_in_context): Update.
12827 * p-exp.y (yylex): Update.
12828 * m2-exp.y (yylex): Update.
12829 * go-exp.y (lex_one_token): Update.
12830 * f-exp.y (yylex): Update.
12831 * d-exp.y (lex_one_token): Update.
12832 * c-exp.y (lex_one_token): Update.
12833 * ada-lex.l: Update.
12834
28aaf3fd
TT
128352019-04-04 Tom Tromey <tom@tromey.com>
12836
12837 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
12838 (rustyylex, rust_lex_test_init, rust_lex_test_one)
12839 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
12840 * parser-defs.h (paren_depth): Don't declare.
12841 * parse.c (paren_depth): Remove global.
12842 (parse_exp_in_context): Update.
12843 * p-exp.y (paren_depth): New global.
12844 (pascal_parse): Initialize it.
12845 * m2-exp.y (paren_depth): New global.
12846 (m2_parse): Initialize it.
12847 * go-exp.y (paren_depth): New global.
12848 (go_parse): Initialize it.
12849 * f-exp.y (paren_depth): New global.
12850 (f_parse): Initialize it.
12851 * d-exp.y (paren_depth): New global.
12852 (d_parse): Initialize it.
12853 * c-exp.y (paren_depth): New global.
12854 (c_parse): Initialize it.
12855 * ada-lex.l (paren_depth): New global.
12856 (lexer_init): Initialize it.
12857
1e58a4a4
TT
128582019-04-04 Tom Tromey <tom@tromey.com>
12859
12860 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
12861 (rust_parser::convert_ast_to_type)
12862 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
12863 * parser-defs.h (struct parser_state) <parser_state>: Add
12864 parameters. Initialize new members.
12865 <expression_context_block, expression_context_pc>: New members.
12866 * parse.c (expression_context_block, expression_context_pc):
12867 Remove globals.
12868 (parse_exp_in_context): Update.
12869 * p-exp.y: Update all rules.
12870 (yylex): Update.
12871 * m2-exp.y: Update all rules.
12872 (yylex): Update.
12873 * go-exp.y (yylex): Update.
12874 * f-exp.y (yylex): Update.
12875 * d-exp.y: Update all rules.
12876 (yylex): Update.
12877 * c-exp.y: Update all rules.
12878 (lex_one_token, classify_name, yylex, c_parse): Update.
12879 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
12880
37eedb39
TT
128812019-04-04 Tom Tromey <tom@tromey.com>
12882
12883 * gdbarch.h, gdbarch.c: Rebuild.
12884 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
12885 * stap-probe.h:
12886 (struct stap_parse_info): Replace "parser_state" with
12887 "expr_builder".
12888 * parser-defs.h (struct expr_builder): Rename from "parser_state".
12889 (parser_state): New class.
12890 * parse.c (expr_builder): Rename.
12891 (expr_builder::release): Rename.
12892 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
12893 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
12894 (write_exp_elt_longcst, write_exp_elt_floatcst)
12895 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
12896 (write_exp_string_vector, write_exp_bitstring)
12897 (write_exp_msymbol, mark_struct_expression)
12898 (write_dollar_variable)
12899 (insert_type_address_space, increase_expout_size): Replace
12900 "parser_state" with "expr_builder".
12901 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
12902 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
12903 "parser_state" with "expr_builder".
12904
73923d7e
TT
129052019-04-04 Tom Tromey <tom@tromey.com>
12906
12907 * rust-exp.y: Replace "parse_language" with method call.
12908 * p-exp.y:
12909 (yylex): Replace "parse_language" with method call.
12910 * m2-exp.y:
12911 (yylex): Replace "parse_language" with method call.
12912 * go-exp.y (classify_name): Replace "parse_language" with method
12913 call.
12914 * f-exp.y (yylex): Replace "parse_language" with method call.
12915 * d-exp.y (lex_one_token): Replace "parse_language" with method
12916 call.
12917 * c-exp.y:
12918 (lex_one_token, classify_name, yylex): Replace "parse_language"
12919 with method call.
12920 * ada-exp.y (find_primitive_type, type_char)
12921 (type_system_address): Replace "parse_language" with method call.
12922
fa9f5be6
TT
129232019-04-04 Tom Tromey <tom@tromey.com>
12924
12925 * rust-exp.y: Replace "parse_gdbarch" with method call.
12926 * parse.c (write_dollar_variable, insert_type_address_space):
12927 Replace "parse_gdbarch" with method call.
12928 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
12929 call.
12930 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
12931 call.
12932 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
12933 "parse_gdbarch" with method call.
12934 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
12935 with method call.
12936 * f-exp.y (parse_type, parse_f_type, yylex): Replace
12937 "parse_gdbarch" with method call.
12938 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
12939 "parse_gdbarch" with method call.
12940 * c-exp.y (parse_type, parse_number, classify_name): Replace
12941 "parse_gdbarch" with method call.
12942 * ada-lex.l: Replace "parse_gdbarch" with method call.
12943 * ada-exp.y (parse_type, find_primitive_type, type_char)
12944 (type_system_address): Replace "parse_gdbarch" with method call.
12945
1201a264
TT
129462019-04-04 Tom Tromey <tom@tromey.com>
12947
12948 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
12949 * stap-probe.c (stap_parse_argument): Update.
12950 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
12951 initial_size parameter.
12952 * rust-exp.y (rust_lex_tests): Update.
12953 * parse.c (parser_state): Update.
12954 (parse_exp_in_context): Update.
12955 * parser-defs.h (struct parser_state) <parser_state>: Remove
12956 "initial_size" parameter.
12957
e3980ce2
TT
129582019-04-04 Tom Tromey <tom@tromey.com>
12959
12960 * parser-defs.h (increase_expout_size): Don't declare.
12961 * parse.c (increase_expout_size): Now static.
12962
e9f8e3f1
TS
129632019-04-04 Thomas Schwinge <thomas@codesourcery.com>
12964
12965 * gnu-nat.c (gnu_nat_target::wait): Fix
12966 target_waitstatus_to_string call.
12967
d7df6549
AB
129682019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
12969
12970 * eval.c (evaluate_subexp_standard): Handle internal functions
12971 during Fortran function call handling.
12972
8bdc1658
AB
129732019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
12974
12975 * NEWS: Mention new internal functions.
12976 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
12977 (read_base_type): Use dwarf2_init_complex_target_type.
12978 * value.c (creal_internal_fn): New function.
12979 (cimag_internal_fn): New function.
12980 (_initialize_values): Register new internal functions.
12981
c29705b7
PW
129822019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12983
12984 * infrun.c (stop_all_threads): If debug_infrun, always
12985 trace the wait status after wait_one, using
12986 target_waitstatus_to_string and target_pid_to_str.
12987 (handle_inferior_event): Replace various trace of
12988 wait status kind by a single trace.
12989 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
12990 wait status kind image by target_waitstatus_to_string.
12991 * target/waitstatus.c (target_waitstatus_to_string): Fix
12992 obsolete comment.
12993
05caa1d2
TT
129942019-04-01 Tom Tromey <tromey@adacore.com>
12995
12996 PR symtab/23331:
12997 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
12998
9d1447e0
SDJ
129992019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
13000 Pedro Alves <palves@redhat.com>
13001
13002 * top.c (quit_force): Call 'finalize_values'.
13003 * value.c (finalize_values): New function.
13004 * value.h (finalize_values): Declare.
13005
7734102d
EZ
130062019-03-30 Eli Zaretskii <eliz@gnu.org>
13007
13008 * NEWS: Announce $_gdb_major and $_gdb_minor.
13009
13010 * top.c (init_gdb_version_vars): New function.
13011 (gdb_init): Call init_gdb_version_vars.
13012
188e1fa9
TT
130132019-03-29 Tom Tromey <tromey@adacore.com>
13014
13015 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
13016 help text. Remove dead code.
13017
2880242d
KS
130182019-03-29 Keith Seitz <keiths@redhat.com>
13019
13020 From Siddhesh Poyarekar:
13021 * f-lang.h (f77_get_upperbound): Return LONGEST.
13022 (f77_get_lowerbound): Likewise.
13023 * f-typeprint.c (f_type_print_varspec_suffix): Expand
13024 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
13025 print them.
13026 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
13027 plongest to format print it.
13028 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
13029 (f77_get_upperbound): Likewise.
13030 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
13031 LOWER_BOUND to LONGEST.
13032 (f77_create_arrayprint_offset_tbl): Likewise.
13033
cc1defb1
KS
130342019-03-29 Keith Seitz <keiths@redhat.com>
13035
13036 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
13037 %s/pulongest for TYPE_LENGTH instead of %d in format
13038 strings.
13039 * ada-typerint.c (ada_print_type): Likewise.
13040 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
13041 * compile/compile-c-support.c (generate_register_struct): Likewise.
13042 * gdbtypes.c (recursive_dump_type): Likewise.
13043 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
13044 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
13045 instead of %d in format strings.
13046 * riscv-tdep.c (riscv_type_alignment): Cast second argument
13047 to std::min to ULONGEST.
13048 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
13049 instead of %d in format strings.
13050 * tracepoint.c (info_scope_command): Likewise.
13051 * typeprint.c (print_offset_data::update)
13052 (print_offset_data::finish): Likewise.
13053 * xtensa-tdep.c (xtensa_store_return_value)
13054 (xtensa_push_dummy_call): Likewise.
13055
e432ccf1
JT
130562019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
13057
13058 * windows-nat.c (display_selector): Fixed format specifications
13059 for 64-bit Cygwin.
13060
65d2b333
PW
130612019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13062
13063 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
13064
f489207e
SL
130652019-03-28 Sandra Loosemore <sandra@codesourcery.com>
13066
13067 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
13068 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
13069 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
13070 (nios2_linux_init_abi): Install it.
13071
bffa1015
AH
130722019-03-28 Alan Hayward <alan.hayward@arm.com>
13073
13074 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
13075
fc96163a
AH
130762019-03-28 Alan Hayward <alan.hayward@arm.com>
13077
13078 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
13079
20dc7e9b
PW
130802019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13081 Tom Tromey <tromey@adacore.com>
13082
13083 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
13084
7f5331a8
JB
130852019-03-26 Joel Brobecker <brobecker@adacore.com>
13086
13087 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
13088 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
13089 method to compute the bounds of range types. Also print "[evaluated]"
13090 if the bounds' values come from a dynamic evaluation.
13091
18c77628
AB
130922019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
13093
13094 * cp-valprint.c (cp_print_value_fields): Don't print trailing
13095 whitespace when pretty printing is on.
13096
53c973f2
AH
130972019-03-26 Alan Hayward <alan.hayward@arm.com>
13098
e79be6e5 13099 * ppc-linux-nat.c: Add include.
53c973f2 13100
d851aa71
AH
131012019-03-26 Alan Hayward <alan.hayward@arm.com>
13102
e79be6e5 13103 * NEWS: Mention AArch64 Pointer Authentication.
d851aa71 13104
2fe7bab7
AH
131052019-03-26 Alan Hayward <alan.hayward@arm.com>
13106
e79be6e5 13107 * arm-linux-nat.c: Add include.
2fe7bab7 13108
068ef30e
SM
131092019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
13110
13111 * source-cache.c (source_cache::get_source_lines): Re-read
13112 fullname after calling open_source_file.
13113
81a24d04
JB
131142019-03-25 John Baldwin <jhb@FreeBSD.org>
13115
13116 * NEWS: Mention TLS support for FreeBSD.
13117
79e7ae11
TT
131182019-03-25 Tom Tromey <tromey@adacore.com>
13119
13120 * minsyms.c (BUNCH_SIZE): Update comment.
13121 (~minimal_symbol_reader): Remove old comment.
13122 (compact_minimal_symbols): Update comment.
13123 (minimal_symbol_reader::install): Remove old comment. Update
13124 other comments.
13125
d45963c2
AH
131262019-03-25 Alan Hayward <alan.hayward@arm.com>
13127
13128 * s390-linux-nat.c: Add include.
13129
0f83012e
AH
131302019-03-25 Alan Hayward <alan.hayward@arm.com>
13131
13132 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
13133 Call linux_get_hwcap.
13134 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
13135 Likewise.
13136 (aarch64_linux_get_hwcap): Remove function.
13137 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
13138 declaration.
13139 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
13140 linux_get_hwcap.
13141 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
13142 * linux-tdep.c (linux_get_hwcap): Add function.
13143 (linux_get_hwcap2): Likewise.
13144 * linux-tdep.h (linux_get_hwcap): Add declaration.
13145 (linux_get_hwcap2): Likewise.
13146 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
13147 (ppc_linux_get_hwcap2): Likewise.
13148 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
13149 linux_get_hwcap.
13150 (ppc_linux_nat_target::insert_watchpoint): Likewise.
13151 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
13152 (ppc_linux_nat_target::read_description): Likewise.
13153 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
13154 * s390-linux-nat.c: Likewise.
13155 * s390-linux-tdep.c (s390_core_read_description): Likewise.
13156
6640a367
TT
131572019-03-24 Tom Tromey <tom@tromey.com>
13158
13159 * ada-lang.c (standard_lookup): Simplify initialization.
13160 (ada_lookup_symbol_nonlocal): Simplify return.
13161 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
13162 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
13163 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
13164 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
13165 initialization.
13166 * solib.c (solib_global_lookup): Simplify.
13167 * symtab.c (null_block_symbol): Remove.
13168 (symbol_cache_lookup): Simplify returns.
13169 (lookup_language_this): Simplify returns.
13170 (lookup_symbol_aux): Simplify return.
13171 (lookup_local_symbol): Simplify returns.
13172 (lookup_global_symbol_from_objfile): Simplify return.
13173 (lookup_symbol_in_objfile_symtabs)
13174 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
13175 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
13176 (lookup_static_symbol, lookup_global_symbol): Simplify return.
13177 * cp-namespace.c (cp_lookup_bare_symbol)
13178 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
13179 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
13180 (cp_lookup_nested_symbol): Don't use null_block_symbol.
13181 (cp_lookup_symbol_via_imports): Simplify initialization.
13182 (find_symbol_in_baseclass): Likewise.
13183 * symtab.h (null_block_symbol): Remove.
13184 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
13185 (d_lookup_nested_symbol, d_lookup_symbol_imports)
13186 (d_lookup_symbol_module): Likewise.
13187 (find_symbol_in_baseclass): Simplify initialization.
13188
a930ebcd
TT
131892019-03-24 Tom Tromey <tom@tromey.com>
13190
13191 * expression.h: Don't include symtab.h.
13192 (struct block): Forward declare.
13193
582942f4
TT
131942019-03-24 Tom Tromey <tom@tromey.com>
13195
13196 * c-exp.y (typebase): Remove casts.
13197 * gdbtypes.c (lookup_unsigned_typename, )
13198 (lookup_signed_typename): Remove cast.
13199 * eval.c (parse_to_comma_and_eval): Remove cast.
13200 * parse.c (write_dollar_variable): Remove cast.
13201 * block.h (struct block) <superblock>: Now const.
13202 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
13203 * psymtab.c (psym_map_matching_symbols): Make "block" const.
13204 (map_block): Make "block" const.
13205 * symfile.h (struct quick_symbol_functions)
13206 <map_matching_symbols>: Constify block argument to "callback".
13207 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
13208 const.
13209 (find_pc_sect_compunit_symtab): Make "b" const.
13210 (find_symbol_at_address): Likewise.
13211 (search_symbols): Likewise.
13212 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
13213 (dw2_debug_names_lookup_symbol): Likewise.
13214 (dw2_map_matching_symbols): Update.
13215 * p-valprint.c (pascal_val_print): Remove "block".
13216 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
13217 (aux_add_nonlocal_symbols): Make "block" const.
13218 (resolve_subexp): Remove cast.
13219 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
13220 const.
13221 (iterate_over_file_blocks): Likewise.
13222 * f-exp.y (%union) <bval>: Remove.
13223 * coffread.c (patch_opaque_types): Make "b" const.
13224 * spu-tdep.c (spu_catch_start): Make "block" const.
13225 * c-valprint.c (print_unpacked_pointer): Remove "block".
13226 * symmisc.c (dump_symtab_1): Make "b" const.
13227 (block_depth): Make "block" const.
13228 * d-exp.y (%union) <bval>: Remove.
13229 * cp-support.h (cp_lookup_rtti_type): Update.
13230 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
13231 * psymtab.c (psym_lookup_symbol): Make "block" const.
13232 (maintenance_check_psymtabs): Make "b" const.
13233 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
13234 (enumerate_locals, enumerate_args): Update.
13235 * python/py-symtab.c (stpy_global_block): Make "block" const.
13236 (stpy_static_block): Likewise.
13237 * inline-frame.c (block_starting_point_at): Make "new_block"
13238 const.
13239 * block.c (find_block_in_blockvector): Make return type const.
13240 (blockvector_for_pc_sect): Make "b" const.
13241 (find_block_in_blockvector): Make "b" const.
13242
7ad417dd
TT
132432019-03-23 Tom Tromey <tom@tromey.com>
13244
13245 * varobj.c (varobj_create): Update.
13246 * symfile.c (clear_symtab_users): Don't reset innermost_block.
13247 * printcmd.c (display_command, do_one_display): Don't reset
13248 innermost_block.
13249 * parser-defs.h (enum innermost_block_tracker_type): Move to
13250 expression.h.
13251 (innermost_block): Update comment.
13252 * parse.c (parse_exp_1): Add tracker_types parameter.
13253 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
13254 tracker_types parameter. Reset innermost_block.
13255 (parse_exp_in_context): Remove.
13256 (parse_expression_for_completion): Update.
13257 * objfiles.c (~objfile): Don't reset expression_context_block or
13258 innermost_block.
13259 * expression.h (enum innermost_block_tracker_type): Move from
13260 parser-defs.h.
13261 (parse_exp_1): Add tracker_types parameter.
13262 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
13263 reset innermost_block.
13264
b366c208
TT
132652019-03-23 Tom Tromey <tom@tromey.com>
13266
13267 * objfiles.h: Include bcache.h.
13268
9bb9b2f9
TT
132692019-03-23 Tom Tromey <tom@tromey.com>
13270
13271 * linespec.c (get_current_search_block): Use
13272 scoped_restore_current_language.
13273 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
13274
59c28372
AH
132752019-03-22 Alan Hayward <alan.hayward@arm.com>
13276 Jiong Wang <jiong.wang@arm.com>
13277
13278 * aarch64-linux-tdep.c
13279 (aarch64_linux_iterate_over_regset_sections): Check for pauth
13280 section.
13281 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
13282
17e116a7
AH
132832019-03-22 Alan Hayward <alan.hayward@arm.com>
13284 Jiong Wang <jiong.wang@arm.com>
13285
13286 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
13287 instructions.
13288 (aarch64_analyze_prologue_test): Add PACIASP test.
13289 (aarch64_prologue_prev_register): Unmask PC value.
13290
11e1b75f
AH
132912019-03-22 Alan Hayward <alan.hayward@arm.com>
13292 Jiong Wang <jiong.wang@arm.com>
13293
13294 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
13295 (aarch64_dwarf2_prev_register): Unmask PC value.
13296 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
13297 (aarch64_execute_dwarf_cfa_vendor_op): Check for
13298 DW_CFA_AARCH64_negate_ra_state.
13299 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
13300
34dcc7cf
AH
133012019-03-22 Alan Hayward <alan.hayward@arm.com>
13302 Jiong Wang <jiong.wang@arm.com>
13303
13304 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
13305 registers.
13306 (aarch64_pseudo_register_name): Likewise.
13307 (aarch64_pseudo_register_type): Likewise.
13308 (aarch64_pseudo_register_reggroup_p): Likewise.
13309 (aarch64_gdbarch_init): Add pauth registers.
13310 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
13311 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
13312 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
13313 (struct gdbarch_tdep): Add regnum for ra_state.
13314
1ef53e6b
AH
133152019-03-22 Alan Hayward <alan.hayward@arm.com>
13316 Jiong Wang <jiong.wang@arm.com>
13317
13318 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
13319
76bed0fd
AH
133202019-03-22 Alan Hayward <alan.hayward@arm.com>
13321 Jiong Wang <jiong.wang@arm.com>
13322
13323 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
13324 function.
13325 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
13326 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
13327 (aarch64_gdbarch_init): Add puth registers.
13328 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
13329 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
13330 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
13331
ee4fbcfa
AH
133322019-03-22 Alan Hayward <alan.hayward@arm.com>
13333 Jiong Wang <jiong.wang@arm.com>
13334
13335 * aarch64-linux-nat.c
13336 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
13337 * aarch64-linux-tdep.c
13338 (aarch64_linux_core_read_description): Likewise.
13339 (aarch64_linux_get_hwcap): New function.
13340 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
13341 (aarch64_linux_get_hwcap): New declaration.
13342
6dc0ebde
AH
133432019-03-22 Alan Hayward <alan.hayward@arm.com>
13344 Jiong Wang <jiong.wang@arm.com>
13345
13346 * aarch64-linux-nat.c
13347 (aarch64_linux_nat_target::read_description): Add pauth param.
13348 * aarch64-linux-tdep.c
13349 (aarch64_linux_core_read_description): Likewise.
13350 * aarch64-tdep.c (struct target_desc): Add in pauth.
13351 (aarch64_read_description): Add pauth param.
13352 (aarch64_gdbarch_init): Likewise.
13353 * aarch64-tdep.h (aarch64_read_description): Likewise.
13354 * arch/aarch64.c (aarch64_create_target_description): Likewise.
13355 * arch/aarch64.h (aarch64_create_target_description): Likewise.
13356 * features/Makefile: Add new files.
13357 * features/aarch64-pauth.c: New file.
13358 * features/aarch64-pauth.xml: New file.
13359
595915c1
TT
133602019-03-20 Tom Tromey <tromey@adacore.com>
13361
13362 * infrun.c (handle_inferior_event): Rename from
13363 handle_inferior_event_1. Create a scoped_value_mark.
13364 (handle_inferior_event): Remove.
13365
4c7d57e7
TT
133662019-03-19 Tom Tromey <tromey@adacore.com>
13367
13368 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
13369 * infrun.h (print_stop_event): Add "displays" parameter.
13370 * infrun.c (print_stop_event): Add "displays" parameter.
13371
cb246234
PA
133722019-03-19 Pedro Alves <palves@redhat.com>
13373
13374 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
13375 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
13376 to -1. Fix TABs vs spaces.
13377 (tui_ui_out::tui_ui_out): Don't initialize fields here.
13378 * tui/tui-out.h (tui_ui_out) Add intro comments.
13379 <m_line, m_start_of_line>: In-class initialize, and add describing
13380 comment.
13381
3a0e45b2
AH
133822019-03-18 Alan Hayward <alan.hayward@arm.com>
13383
13384 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
13385 variable names.
13386 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
13387
5371b850
PA
133882019-03-18 Pedro Alves <palves@redhat.com>
13389 Eli Zaretskii <eliz@gnu.org>
13390
13391 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
13392 m_line and m_start_of_line.
13393
b17c4cd0
EZ
133942019-03-18 Eli Zaretskii <eliz@gnu.org>
13395
13396 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
13397 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
13398 it returns a newline. This fixes a regression in TU mode, whereby
13399 the next line is output on the same screen line as the user input.
13400
4bd56d18
TT
134012019-03-18 Tom Tromey <tromey@adacore.com>
13402
13403 * minsyms.c (minimal_symbol_reader::install): Remove call to
13404 obstack_blank.
13405
55c10aca
PA
134062019-03-18 Pedro Alves <palves@redhat.com>
13407
13408 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
13409 New globals.
13410 (apply_style): New, factored out from ...
13411 (apply_ansi_escape): ... this. Handle reverse video mode.
13412 (tui_set_reverse_mode): New function.
13413 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
13414 * tui/tui-winsource.c (tui_show_source_line): Use
13415 tui_set_reverse_mode instead of setting A_STANDOUT.
13416 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
13417 New setter methods.
13418
647bb750
HD
134192019-03-18 Hannes Domani <ssbssa@yahoo.de>
13420
13421 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
13422 Handle tabs.
13423
bff8c71f
TT
134242019-03-18 Tom Tromey <tromey@adacore.com>
13425
13426 * ada-lang.c (empty_array): Add "high" parameter.
13427 (ada_evaluate_subexp): Update.
13428
58785d98
ST
134292019-03-17 Sergei Trofimovich <siarheit@google.com>
13430
13431 * unittests/string_view-selftests.c: Define
13432 _initialize_string_view_selftests unconditionally.
13433
d4cbef22
ВМ
134342019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
13435
13436 PR gdb/24350
13437 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
13438
fce4c071
ВМ
134392019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
13440
13441 PR gdb/24351
13442 * windows-nat.c (display_selector): Fix format specifiers.
13443
f7f0a123
EZ
134442019-03-17 Eli Zaretskii <eliz@gnu.org>
13445
13446 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
13447 tui_refill_source_window instead of tui_refresh_win, to update the
13448 current execution line. This fixes redisplay of the current line
13449 when stepping through the code with "next" or "step".
13450
ab42892f
EZ
134512019-03-16 Eli Zaretskii <eliz@gnu.org>
13452
13453 * source-cache.c (source_cache::get_source_lines): Call
13454 find_source_lines to initialize s->nlines. This fixes vertical
13455 scrolling of TUI source window when the DOWN arrow is pressed.
13456
8d8c087f
PW
134572019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13458
13459 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
13460 linux-thread-db.c (_initialize_thread_db): Likewise.
13461
798e1c30
EZ
134622019-03-16 Eli Zaretskii <eliz@gnu.org>
13463
13464 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
13465 wclrtoeol in tui_show_source_line". This reverts changes made in
13466 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
13467
eefba3da
TT
134682019-03-15 Tom Tromey <tom@tromey.com>
13469
13470 * symtab.h (struct minimal_symbol): Derive from
13471 general_symbol_info.
13472 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
13473 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
13474 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
13475 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
13476 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
13477 (MSYMBOL_SEARCH_NAME): Update.
13478 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
13479 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
13480 * minsyms.c (minimal_symbol_reader::record_full): Update.
13481
0de2420c
TT
134822019-03-15 Tom Tromey <tom@tromey.com>
13483
13484 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
13485
042d75e4
TT
134862019-03-15 Tom Tromey <tom@tromey.com>
13487
13488 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
13489 unique_xmalloc_ptr.
13490 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
13491 Update.
13492 * minsyms.c (lookup_minimal_symbol_by_pc_section)
13493 (build_minimal_symbol_hash_tables)
13494 (minimal_symbol_reader::install): Update.
13495
db92718b
TT
134962019-03-15 Tom Tromey <tom@tromey.com>
13497
13498 * symtab.c (create_demangled_names_hash): Update.
13499 (symbol_set_names): Update.
13500 * objfiles.h (struct objfile_per_bfd_storage)
13501 <demangled_names_hash>: Now an htab_up.
13502 * objfiles.c (objfile_per_bfd_storage): Simplify.
13503
d6797f46
TT
135042019-03-15 Tom Tromey <tom@tromey.com>
13505
13506 * objfiles.h (struct objfile_per_bfd_storage): Declare
13507 destructor.
13508 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
13509 New.
13510 (get_objfile_bfd_data): Use new. Don't initialize
13511 language_of_main.
13512 (free_objfile_per_bfd_storage): Remove.
13513 (objfile_bfd_data_free, objfile::~objfile): Use delete.
13514
741d7538
TT
135152019-03-15 Tom Tromey <tom@tromey.com>
13516
13517 * symfile.c (reread_symbols): Update.
13518 * objfiles.c (objfile::objfile): Update.
13519 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
13520 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
13521 comment.
13522 (minimal_symbol_reader::install): Update.
13523 (terminate_minimal_symbol_table): Remove.
13524 * jit.c (jit_object_close_impl): Update.
13525
788c80d1
TT
135262019-03-15 Tom Tromey <tom@tromey.com>
13527
13528 * minsyms.c (minimal_symbol_reader::record_full): Remove some
13529 initializations.
13530
1b7a07cb
TT
135312019-03-15 Tom Tromey <tom@tromey.com>
13532
13533 * objfiles.h (struct objfile_per_bfd_storage)
13534 <demangled_hash_languages>: Now a bitset.
13535 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
13536 (lookup_minimal_symbol): Update.
13537
3db066bc
TT
135382019-03-15 Tom Tromey <tom@tromey.com>
13539
13540 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
13541 Don't return the symbol.
13542 * coffread.c (record_minimal_symbol): Use record_full.
13543
3fff2c37
EZ
135442019-03-14 Eli Zaretskii <eliz@gnu.org>
13545
13546 The MS-Windows port of ncurses fails to switch to a color pair if
13547 one or both of the colors are the implicit default colors. This
13548 change records the default colors when TUI is initialized, and
13549 then specifies them explicitly when a color pair uses the default
13550 colors. This allows color styling in TUI mode on MS-Windows.
13551
13552 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
13553 ncurses_norm_attr.
13554 (tui_initialize_io) [__MINGW32__]: Record the default terminal
13555 colors in ncurses_norm_attr.
13556 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
13557 "none", replace it with the default color recorded in
13558 ncurses_norm_attr.
13559
3b336828
TT
135602019-03-14 Tom Tromey <tromey@adacore.com>
13561
13562 * source-cache.h (class source_cache) <get_source_lines>: Return
13563 std::string.
13564 * source-cache.c (source_cache::extract_lines): Handle case where
13565 first_pos==npos. Return std::string.
13566 (source_cache::get_source_lines): Update.
13567
d085f989
TT
135682019-03-14 Tom Tromey <tromey@adacore.com>
13569
13570 * NEWS: Add item for "style sources" commands.
13571 * source-cache.c (source_cache::get_source_lines): Check
13572 source_styling.
13573 * cli/cli-style.c (source_styling): New global.
13574 (_initialize_cli_style): Add "style sources" commands.
13575 (show_style_sources): New function.
13576 * cli/cli-style.h (source_styling): Declare.
13577
6f11e682
TT
135782019-03-14 Pedro Alves <palves@redhat.com>
13579 Tom Tromey <tromey@adacore.com>
13580
13581 * tui/tui-winsource.h (tui_refill_source_window): Declare.
13582 * tui/tui-winsource.c (tui_refill_source_window): New function,
13583 from...
13584 (tui_horizontal_source_scroll): ... here. Move some logic.
13585 * cli/cli-style.c (set_style_enabled): Notify new observable.
13586 * tui/tui-hooks.c (tui_redisplay_source): New function.
13587 (tui_attach_detach_observers): Attach or detach
13588 tui_redisplay_source.
13589 * observable.h (source_styling_changed): New observable.
13590 * observable.c: Define source_styling_changed observable.
13591
a068643d
TT
135922019-03-13 Tom Tromey <tromey@adacore.com>
13593
13594 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
13595 (i386_gnu_nat_target::store_registers): Update.
13596 * target-debug.h (target_debug_print_std_string): New macro.
13597 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
13598 * windows-tdep.c (display_one_tib): Update.
13599 * tui/tui-stack.c (tui_make_status_line): Update.
13600 * top.c (print_inferior_quit_action): Update.
13601 * thread.c (thr_try_catch_cmd): Update.
13602 (add_thread_with_info): Update.
13603 (thread_target_id_str): Update.
13604 (thr_try_catch_cmd): Update.
13605 (thread_command): Update.
13606 (thread_find_command): Update.
13607 * record-btrace.c (record_btrace_target::info_record)
13608 (record_btrace_resume_thread, record_btrace_target::resume)
13609 (record_btrace_cancel_resume, record_btrace_step_thread)
13610 (record_btrace_target::wait, record_btrace_target::wait)
13611 (record_btrace_target::wait, record_btrace_target::stop): Update.
13612 * progspace.c (print_program_space): Update.
13613 * process-stratum-target.c
13614 (process_stratum_target::thread_address_space): Update.
13615 * linux-fork.c (linux_fork_mourn_inferior)
13616 (detach_checkpoint_command, info_checkpoints_command)
13617 (linux_fork_context): Update.
13618 (linux_fork_detach): Update.
13619 (class scoped_switch_fork_info): Update.
13620 (delete_checkpoint_command): Update.
13621 * infrun.c (follow_fork_inferior): Update.
13622 (follow_fork_inferior): Update.
13623 (proceed_after_vfork_done): Update.
13624 (handle_vfork_child_exec_or_exit): Update.
13625 (follow_exec): Update.
13626 (displaced_step_prepare_throw): Update.
13627 (displaced_step_restore): Update.
13628 (start_step_over): Update.
13629 (resume_1): Update.
13630 (clear_proceed_status_thread): Update.
13631 (proceed): Update.
13632 (print_target_wait_results): Update.
13633 (do_target_wait): Update.
13634 (context_switch): Update.
13635 (stop_all_threads): Update.
13636 (restart_threads): Update.
13637 (finish_step_over): Update.
13638 (handle_signal_stop): Update.
13639 (switch_back_to_stepped_thread): Update.
13640 (keep_going_pass_signal): Update.
13641 (print_exited_reason): Update.
13642 (normal_stop): Update.
13643 * inferior.c (inferior_pid_to_str): Change return type.
13644 (print_selected_inferior): Update.
13645 (add_inferior): Update.
13646 (detach_inferior): Update.
13647 * dummy-frame.c (fprint_dummy_frames): Update.
13648 * dcache.c (dcache_info_1): Update.
13649 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
13650 (btrace_fetch, btrace_clear): Update.
13651 * linux-tdep.c (linux_core_pid_to_str): Change return type.
13652 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
13653 type.
13654 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
13655 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
13656 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
13657 * gdbarch.c, gdbarch.h: Rebuild.
13658 * gdbarch.sh (core_pid_to_str): Change return type.
13659 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
13660 return type.
13661 (windows_nat_target::pid_to_str): Change return type.
13662 (windows_delete_thread): Update.
13663 (windows_nat_target::attach): Update.
13664 (windows_nat_target::files_info): Update.
13665 * target-delegates.c: Rebuild.
13666 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
13667 return type.
13668 (sol_thread_target::pid_to_str): Change return type.
13669 * remote.c (class remote_target) <pid_to_str>: Change return
13670 type.
13671 (remote_target::pid_to_str): Change return type.
13672 (extended_remote_target::attach, remote_target::remote_stop_ns)
13673 (remote_target::remote_notif_remove_queued_reply)
13674 (remote_target::push_stop_reply, remote_target::disable_btrace):
13675 Update.
13676 (extended_remote_target::attach): Update.
13677 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
13678 type.
13679 (gdbsim_target::pid_to_str): Change return type.
13680 * ravenscar-thread.c (struct ravenscar_thread_target)
13681 <pid_to_str>: Change return type.
13682 (ravenscar_thread_target::pid_to_str): Change return type.
13683 * procfs.c (class procfs_target) <pid_to_str>: Change return
13684 type.
13685 (procfs_target::pid_to_str): Change return type.
13686 (procfs_target::attach): Update.
13687 (procfs_target::detach): Update.
13688 (procfs_target::fetch_registers): Update.
13689 (procfs_target::store_registers): Update.
13690 (procfs_target::wait): Update.
13691 (procfs_target::files_info): Update.
13692 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
13693 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
13694 return type.
13695 (nto_procfs_target::pid_to_str): Change return type.
13696 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
13697 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
13698 return type.
13699 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
13700 (exit_lwp): Update.
13701 (attach_proc_task_lwp_callback, get_detach_signal)
13702 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
13703 (linux_nat_target::resume, wait_lwp, stop_callback)
13704 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
13705 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
13706 (linux_nat_wait_1, resume_stopped_resumed_lwps)
13707 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
13708 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
13709 type.
13710 (inf_ptrace_target::attach): Update.
13711 (inf_ptrace_target::files_info): Update.
13712 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
13713 type.
13714 (go32_nat_target::pid_to_str): Change return type.
13715 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
13716 (gnu_nat_target::wait): Update.
13717 (gnu_nat_target::wait): Update.
13718 (gnu_nat_target::resume): Update.
13719 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
13720 (fbsd_nat_target::wait): Update.
13721 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
13722 type.
13723 (darwin_nat_target::attach): Update.
13724 * corelow.c (class core_target) <pid_to_str>: Change return type.
13725 (core_target::pid_to_str): Change return type.
13726 * target.c (normal_pid_to_str): Change return type.
13727 (default_pid_to_str): Likewise.
13728 (target_pid_to_str): Change return type.
13729 (target_translate_tls_address): Update.
13730 (target_announce_detach): Update.
13731 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
13732 return type.
13733 (bsd_uthread_target::pid_to_str): Change return type.
13734 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
13735 type.
13736 (bsd_kvm_target::pid_to_str): Change return type.
13737 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
13738 return type.
13739 (aix_thread_target::pid_to_str): Change return type.
13740 * target.h (struct target_ops) <pid_to_str>: Change return type.
13741 (target_pid_to_str, normal_pid_to_str): Likewise.
13742 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
13743 type.
13744 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
13745 type.
13746 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
13747 return type.
13748 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
13749 type.
13750 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
13751 type.
13752 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
13753 return type.
13754
b4be1b06
SM
137552019-03-13 Simon Marchi <simon.marchi@ericsson.com>
13756
13757 * NEWS: Mention that the new default MI version is 3. Mention
13758 changes to the output of commands and events that deal with
13759 multi-location breakpoints.
13760 * breakpoint.c: Include "mi/mi-out.h".
13761 (print_one_breakpoint): Change output syntax if using MI version
13762 >= 3.
13763 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
13764 New.
13765 (mi_multi_location_breakpoint_output_fixed): New.
13766 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
13767 (mi_cmd_fix_multi_location_breakpoint_output): New.
13768 (mi_multi_location_breakpoint_output_fixed): New.
13769 * mi/mi-cmds.c (mi_cmds): Register command
13770 -fix-multi-location-breakpoint-output.
13771 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
13772 interpreter "mi".
13773
8e5e5494
SM
137742019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
13775
13776 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
13777 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
13778 instantiate mi_ui_out based on interpreter name.
13779 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
13780 * mi/mi-main.c (mi_load_progress): Likewise.
13781
197df35e
JB
137822019-03-12 John Baldwin <jhb@FreeBSD.org>
13783
13784 * NEWS: Combine separate "New targets" sections for 8.3.
13785
8399425f
JB
137862019-03-12 John Baldwin <jhb@FreeBSD.org>
13787
13788 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
13789 (ppcfbsd_init_abi): Install gdbarch
13790 "fetch_tls_load_module_address" and "get_thread_local_address"
13791 methods.
13792
b0f87ed0
JB
137932019-03-12 John Baldwin <jhb@FreeBSD.org>
13794
13795 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
13796 (riscv_fbsd_init_abi): Install gdbarch
13797 "fetch_tls_load_module_address" and "get_thread_local_address"
13798 methods.
13799
ce25aa57
JB
138002019-03-12 John Baldwin <jhb@FreeBSD.org>
13801
13802 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
13803 (i386fbsd_init_abi): Install gdbarch
13804 "fetch_tls_load_module_address" and "get_thread_local_address"
13805 methods.
13806
f5424cfa
JB
138072019-03-12 John Baldwin <jhb@FreeBSD.org>
13808
13809 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
13810 (amd64fbsd_init_abi): Install gdbarch
13811 "fetch_tls_load_module_address" and "get_thread_local_address"
13812 methods.
13813
945f3901
JB
138142019-03-12 John Baldwin <jhb@FreeBSD.org>
13815
13816 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
13817 (struct fbsd_pspace_data): New type.
13818 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
13819 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
13820 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
13821 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
13822 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
13823
ef0bd204
JB
138242019-03-12 John Baldwin <jhb@FreeBSD.org>
13825
13826 * gdbtypes.c (lookup_struct_elt): New function.
13827 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
13828 * gdbtypes.h (struct struct_elt): New type.
13829 (lookup_struct_elt): New prototype.
13830
36c53a02
JB
138312019-03-12 John Baldwin <jhb@FreeBSD.org>
13832
13833 * gdbtypes.c (lookup_struct_elt_type): Update comment and
13834 remove disabled code block.
13835
6e056c81
JB
138362019-03-12 John Baldwin <jhb@FreeBSD.org>
13837
13838 * gdbarch.sh (get_thread_local_address): New method.
13839 * gdbarch.h, gdbarch.c: Regenerate.
13840 * target.c (target_translate_tls_address): Use
13841 gdbarch_get_thread_local_address if present instead of
13842 target::get_thread_local_address.
13843
cd250a18
JB
138442019-03-12 John Baldwin <jhb@FreeBSD.org>
13845
13846 * target.h (target::get_thread_local_address): Update comment.
13847
df22c1e5
JB
138482019-03-12 John Baldwin <jhb@FreeBSD.org>
13849
13850 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
13851 objfile->separate_debug_objfile_backlink if not NULL.
13852
dd6876c9
JB
138532019-03-12 John Baldwin <jhb@FreeBSD.org>
13854
13855 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
13856 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
13857 (amd64bsd_store_inferior_registers): Likewise.
13858 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
13859 Enable segment base registers.
13860 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
13861 PT_GETFSBASE and PT_GETGSBASE.
13862 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
13863 PT_SETGSBASE.
13864 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
13865 segment base registers.
13866 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
13867
1163a4b7
JB
138682019-03-12 John Baldwin <jhb@FreeBSD.org>
13869
13870 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
13871 Update calls to i386_target_description to add 'segments'
13872 parameter.
13873 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
13874 add segment base registers.
13875 * arch/i386.c (i386_create_target_description): Add 'segments'
13876 parameter to enable segment base registers.
13877 * arch/i386.h (i386_create_target_description): Likewise.
13878 * features/i386/32bit-segments.xml: New file.
13879 * features/i386/32bit-segments.c: Generate.
13880 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
13881 call to i386_target_description to add 'segments' parameter.
13882 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
13883 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
13884 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
13885 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
13886 if feature is present.
13887 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
13888 Add 'segments' parameter to call to i386_target_description.
13889 (i386_target_description): Add 'segments' parameter to enable
13890 segment base registers.
13891 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
13892 to call to i386_target_description.
13893 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
13894 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
13895 Define I386_NUM_REGS.
13896 (i386_target_description): Add 'segments' parameter to enable
13897 segment base registers.
13898
3a350822
EZ
138992019-03-12 Eli Zaretskii <eliz@gnu.org>
13900
13901 PR/24325
13902 * source-cache.c: #undef open and close, to avoid unresolved
13903 externals during linking.
13904
ffdd69cf
TT
139052019-03-12 Tom Tromey <tromey@adacore.com>
13906
13907 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
13908 const. Add initializers.
13909 (_initialize_remote): Don't initialize ptid globals.
13910
ec148c57
PA
139112019-03-12 Pedro Alves <palves@redhat.com>
13912
13913 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
13914
32764270
PA
139152019-03-12 Pedro Alves <palves@redhat.com>
13916
13917 * cp-name-parser.y (main): Remove unused 'len' variable.
13918
17547186
TT
139192019-03-12 Tom Tromey <tromey@adacore.com>
13920
13921 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
13922 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
13923
d3a70e03
TT
139242019-03-12 Tom Tromey <tromey@adacore.com>
13925
13926 * linux-nat.c (iterate_over_lwps): Update.
13927 (stop_callback): Remove parameter.
13928 (stop_wait_callback, detach_callback, resume_set_callback)
13929 (select_singlestep_lwp_callback, set_ignore_sigint)
13930 (status_callback, resumed_callback, resume_clear_callback)
13931 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
13932 data parameter.
13933 (linux_nat_target::detach, linux_nat_target::resume)
13934 (linux_stop_and_wait_all_lwps, select_event_lwp)
13935 (linux_nat_filter_event, linux_nat_wait_1)
13936 (linux_nat_target::kill, linux_nat_target::stop)
13937 (linux_nat_target::stop): Update.
13938 (linux_nat_resume_callback): Change type.
13939 (resume_stopped_resumed_lwps, count_events_callback)
13940 (select_event_lwp_callback): Likewise.
13941 (linux_stop_lwp, linux_nat_stop_lwp): Update.
13942 * arm-linux-nat.c (struct update_registers_data): Remove.
13943 (update_registers_callback): Change type.
13944 (arm_linux_insert_hw_breakpoint1): Update.
13945 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
13946 parameter.
13947 (x86_linux_dr_set_addr): Update.
13948 (x86_linux_dr_set_control): Update.
13949 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
13950 (iterate_over_lwps): Use gdb::function_view.
13951 * nat/aarch64-linux-hw-point.c (struct
13952 aarch64_dr_update_callback_param): Remove.
13953 (debug_reg_change_callback): Change type.
13954 (aarch64_notify_debug_reg_change): Update.
13955 * s390-linux-nat.c (s390_refresh_per_info): Update.
13956
82cb27ff
TT
139572019-03-11 Tom Tromey <tromey@adacore.com>
13958
13959 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
13960 redundant assignment to "this_cu".
13961
568c0683
SM
139622019-03-08 Simon Marchi <simon.marchi@efficios.com>
13963
13964 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
13965
f09ce22d
SM
139662019-03-08 Simon Marchi <simon.marchi@efficios.com>
13967
13968 * gdbtypes.c (rank_one_type_parm_set): New function extracted
13969 from...
13970 (rank_one_type): ... this.
13971
595f96a9
SM
139722019-03-08 Simon Marchi <simon.marchi@efficios.com>
13973
13974 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
13975 from...
13976 (rank_one_type): ... this.
13977
2598a94b
SM
139782019-03-08 Simon Marchi <simon.marchi@efficios.com>
13979
13980 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
13981 from...
13982 (rank_one_type): ... this.
13983
7f17b20d
SM
139842019-03-08 Simon Marchi <simon.marchi@efficios.com>
13985
13986 * gdbtypes.c (rank_one_type_parm_float): New function extracted
13987 from...
13988 (rank_one_type): ... this.
13989
2c509035
SM
139902019-03-08 Simon Marchi <simon.marchi@efficios.com>
13991
13992 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
13993 from...
13994 (rank_one_type): ... this.
13995
0dd322dc
SM
139962019-03-08 Simon Marchi <simon.marchi@efficios.com>
13997
13998 * gdbtypes.c (rank_one_type_parm_range): New function extracted
13999 from...
14000 (rank_one_type): ... this.
14001
41ea4728
SM
140022019-03-08 Simon Marchi <simon.marchi@efficios.com>
14003
14004 * gdbtypes.c (rank_one_type_parm_char): New function extracted
14005 from...
14006 (rank_one_type): ... this.
14007
793cd1d2
SM
140082019-03-08 Simon Marchi <simon.marchi@efficios.com>
14009
14010 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
14011 from...
14012 (rank_one_type): ... this.
14013
34910087
SM
140142019-03-08 Simon Marchi <simon.marchi@efficios.com>
14015
14016 * gdbtypes.c (rank_one_type_parm_int): New function extracted
14017 from...
14018 (rank_one_type): ... this.
14019
f1f832d6
SM
140202019-03-08 Simon Marchi <simon.marchi@efficios.com>
14021
14022 * gdbtypes.c (rank_one_type_parm_func): New function extracted
14023 from...
14024 (rank_one_type): ... this.
14025
b9f4512f
SM
140262019-03-08 Simon Marchi <simon.marchi@efficios.com>
14027
14028 * gdbtypes.c (rank_one_type_parm_array): New function extracted
14029 from...
14030 (rank_one_type): ... this.
14031
9293fc63
SM
140322019-03-08 Simon Marchi <simon.marchi@efficios.com>
14033
14034 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
14035 from...
14036 (rank_one_type): ... this.
14037
e3abbe7e
PW
140382019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14039
14040 * inferior.c (initialize_inferiors): Ensure 'help set/show print
14041 inferior-events' shows the example events.
14042
e4adb939
EZ
140432019-03-08 Eli Zaretskii <eliz@gnu.org>
14044
14045 Support styling on native MS-Windows console
14046
14047 PR/24315
14048 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
14049 on MS-Windows if $TERM is not defined.
14050
14051 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
14052
14053 * posix-hdep.c (gdb_console_fputs):
14054 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
14055 functions.
14056 * ui-file.h (gdb_console_fputs): Add prototype.
14057
14058 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
14059 back to fputs only if the former returns zero.
14060
25629dfd
TT
140612019-03-07 Tom Tromey <tom@tromey.com>
14062
14063 * symmisc.c (print_symbol_bcache_statistics): Update.
14064 (print_objfile_statistics): Update.
14065 * symfile.c (allocate_symtab): Update.
14066 * stabsread.c: Don't include bcache.h.
14067 * psymtab.h (struct psymbol_bcache): Don't declare.
14068 (class psymtab_storage) <psymbol_cache>: Now a bcache.
14069 (psymbol_bcache_init, psymbol_bcache_free)
14070 (psymbol_bcache_get_bcache): Don't declare.
14071 * psymtab.c (struct psymbol_bcache): Remove.
14072 (psymtab_storage::psymtab_storage): Update.
14073 (psymtab_storage::~psymtab_storage): Update.
14074 (psymbol_bcache_init, psymbol_bcache_free)
14075 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
14076 (add_psymbol_to_bcache): Update.
14077 (allocate_psymtab): Update.
14078 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
14079 macro_cache>: No longer pointers.
14080 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
14081 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
14082 * macrotab.c (macro_bcache): Update.
14083 * macroexp.c: Don't include bcache.h.
14084 * gdbtypes.c (check_types_worklist): Update.
14085 (types_deeply_equal): Remove TRY/CATCH. Update.
14086 * elfread.c (elf_symtab_read): Update.
14087 * dwarf2read.c: Don't include bcache.h.
14088 * buildsym.c (buildsym_compunit::get_macro_table): Update.
14089 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
14090 (print_bcache_statistics, bcache_memory_used): Don't declare.
14091 (struct bcache): Move from bcache.c. Add constructor, destructor,
14092 methods. Rename all data members.
14093 * bcache.c (struct bcache): Move to bcache.h.
14094 (bcache::expand_hash_table): Rename from expand_hash_table.
14095 (bcache): Remove.
14096 (bcache::insert): Rename from bcache_full.
14097 (bcache::compare): Rename from bcache_compare.
14098 (bcache_xmalloc): Remove.
14099 (bcache::~bcache): Rename from bcache_xfree.
14100 (bcache::print_statistics): Rename from print_bcache_statistics.
14101 (bcache::memory_used): Rename from bcache_memory_used.
14102
fe726667
PA
141032019-03-07 Pedro Alves <palves@redhat.com>
14104
14105 * infrun.c (normal_stop): Also check for
14106 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
14107
7584bb30
AB
141082019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
14109
14110 * f-lang.c (value_from_host_double): Moved to...
14111 * value.c (value_from_host_double): ...here.
14112 * value.h (value_from_host_double): Declare.
14113 * guile/scm-math.c (vlscm_convert_typed_number): Use
14114 value_from_host_double.
14115 (vlscm_convert_number): Likewise.
14116 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
14117 * python/py-value.c (convert_value_from_python): Likewise.
14118
a7b1986e
TT
141192019-03-06 Tom Tromey <tom@tromey.com>
14120
14121 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
14122
0ccf4211
TT
141232019-03-06 Tom Tromey <tom@tromey.com>
14124
14125 * utils.h (free_current_contents): Don't declare.
14126 * utils.c (free_current_contents): Remove.
14127
fe7b42e5
TT
141282019-03-06 Tom Tromey <tom@tromey.com>
14129
14130 * top.c (quit_force): Update.
14131 * main.c (captured_command_loop): Update.
14132 * common/new-op.c (operator new): Update.
14133 * common/common-exceptions.c (struct catcher)
14134 <save_cleanup_chain>: Remove member.
14135 (exceptions_state_mc_init): Update.
14136 (exception_try_scope_entry): Return nullptr.
14137 (exception_try_scope_exit, exception_rethrow)
14138 (throw_exception_sjlj, throw_exception_cxx): Update.
14139 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
14140 (all_cleanups, do_cleanups, discard_cleanups)
14141 (discard_final_cleanups, save_cleanups, save_final_cleanups)
14142 (restore_cleanups, restore_final_cleanups): Don't declare.
14143 (do_final_cleanups): Remove parameter.
14144 * common/cleanups.c (cleanup_chain, make_cleanup)
14145 (make_cleanup_dtor, all_cleanups, do_cleanups)
14146 (discard_my_cleanups, discard_cleanups)
14147 (discard_final_cleanups, save_my_cleanups, save_cleanups)
14148 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
14149 (null_cleanup): Remove.
14150 (do_final_cleanups): Remove parameter.
14151
c6321f19
TT
141522019-03-06 Tom Tromey <tom@tromey.com>
14153
14154 * remote.c (remote_target::remote_parse_stop_reply): Use
14155 unique_xmalloc_ptr.
14156
61b30099
TT
141572019-03-06 Tom Tromey <tom@tromey.com>
14158
14159 * stabsread.c (struct stabs_field_info): Rename from field_info.
14160 <list, fnlist>: Add initializers.
14161 <obstack>: New member.
14162 (read_member_functions, read_struct_fields, read_baseclasses):
14163 Allocate on obstack. Don't use cleanups.
14164 (read_one_struct_field, read_member_functions, read_struct_fields)
14165 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
14166 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
14167 (read_struct_type): Update.
14168
6cceac94
TT
141692019-03-06 Tom Tromey <tom@tromey.com>
14170
14171 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
14172 * common/filestuff.h (make_cleanup_close): Don't declare.
14173 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
14174 Remove.
14175
72412762
TT
141762019-03-06 Tom Tromey <tom@tromey.com>
14177
14178 * solib-aix.c: Use make_scope_exit.
14179
2b6ff1c0
TT
141802019-03-06 Tom Tromey <tom@tromey.com>
14181
14182 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
14183 Use make_scope_exit.
14184
d01c5877
TT
141852019-03-06 Tom Tromey <tom@tromey.com>
14186
14187 * solib-svr4.c (disable_probes_interface): Remove parameter.
14188 (svr4_handle_solib_event): Use make_scope_exit.
14189
32603266
TT
141902019-03-06 Tom Tromey <tom@tromey.com>
14191
14192 * remote.c (struct stop_reply_deleter): Remove.
14193 (stop_reply_up): Update.
14194 (struct stop_reply): Derive from notif_event. Don't typedef.
14195 <regcache>: Now a std::vector.
14196 (stop_reply_xfree): Remove.
14197 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
14198 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
14199 (remote_target::discard_pending_stop_replies): Use delete.
14200 (remote_target::remote_parse_stop_reply): Update.
14201 (remote_target::process_stop_reply): Update.
14202 * remote-notif.h (struct notif_event): Add virtual destructor.
14203 Remove "dtr" member.
14204 (struct notif_client) <alloc_event>: Return a unique_ptr.
14205 (notif_event_xfree): Don't declare.
14206 (notif_event_up): New typedef.
14207 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
14208 (notif_event_xfree, do_notif_event_xfree): Remove.
14209 (remote_notif_state_xfree): Update.
14210
9799571e
TT
142112019-03-06 Tom Tromey <tom@tromey.com>
14212
14213 * infrun.c (displaced_step_clear_cleanup): Now a
14214 forward_scope_exit type.
14215 (displaced_step_prepare_throw): Update.
14216 (displaced_step_fixup): Update.
14217
09e3c4ca
TT
142182019-03-06 Tom Tromey <tom@tromey.com>
14219
14220 * inferior.h (class inferior): Update comment.
14221 * gdbthread.h (class thread_info): Update comment.
14222
e2a03548
TT
142232019-03-06 Joel Brobecker <brobecker@adacore.com>
14224 Tom Tromey <tom@tromey.com>
14225
14226 * stabsread.h (struct stab_section_list): Remove.
14227 (coffstab_build_psymtabs): Update.
14228 * dbxread.c (symbuf_sections): Now a std::vector.
14229 (sect_idx): New global.
14230 (fill_symbuf): Update.
14231 (coffstab_build_psymtabs): Change type of stabsects parameter.
14232 Update.
14233 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
14234 std::vector.
14235 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
14236 (coff_locate_sections): Update.
14237 (coff_symfile_read): Remove cleanups. Update.
14238 (init_stringtab): Add storage parameter.
14239 (free_stringtab, free_stringtab_cleanup): Remove.
14240 (init_lineno): Add storage parameter.
14241 (free_linetab, free_linetab_cleanup): Remove.
14242
b7e60d85
PA
142432019-03-06 Pedro Alves <palves@redhat.com>
14244
14245 * linux-fork.c (fork_info::clobber_regs): Delete.
14246 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
14247 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
14248 comment. Adjust.
14249 (scoped_switch_fork_info::scoped_switch_fork_info)
14250 (checkpoint_command, linux_fork_context): Adjust
14251 fork_save_infrun_state calls.
14252
e52c971f
PA
142532019-03-06 Pedro Alves <palves@redhat.com>
14254
14255 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
14256 (inf_has_multiple_threads): Return 'bool' and rewrite using
14257 inferior_info::threads().
14258
06974e6c
PA
142592019-03-06 Pedro Alves <palves@redhat.com>
14260
14261 * linux-fork.c: Include <list>.
14262 (fork_list): Now a std::list instance.
14263 (fork_info): Add ctor, dtor, and in-class initialize all fields.
14264 (forks_exist_p, find_last_fork): Adjust.
14265 (new_fork): Delete.
14266 (one_fork_p): New.
14267 (add_fork): Adjust.
14268 (free_fork): Delete, folded into fork_info::~fork_info().
14269 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
14270 Adjust.
14271 (init_fork_list): Delete.
14272 (linux_fork_killall, linux_fork_mourn_inferior)
14273 (linux_fork_detach, info_checkpoints_command): Adjust.
14274 (_initialize_linux_fork): No longer call init_fork_list.
14275
72f31aea
PA
142762019-03-06 Pedro Alves <palves@redhat.com>
14277
14278 * linux-fork.c (new_fork): New, split out of ...
14279 (add_fork): ... this. Return void. Move "first fork" special
14280 case from here, to ...
14281 (checkpoint_command): ... here.
14282 * linux-linux.h (add_fork): Return void.
14283
efbecbc1
AB
142842019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14285
14286 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
14287
0841c79a
AB
142882019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14289 Chris January <chris.january@arm.com>
14290 David Lecomber <david.lecomber@arm.com>
14291
14292 * f-exp.y: New token, UNOP_INTRINSIC.
14293 (exp): New pattern using UNOP_INTRINSIC token.
14294 (f77_keywords): Add 'abs' keyword.
14295 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
14296 (value_from_host_double): New function.
14297 (evaluate_subexp_f): Support UNOP_ABS.
14298
4a270568
AB
142992019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14300
14301 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
14302 types.
14303
067630bd
AB
143042019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14305
14306 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
14307 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
14308 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
14309
3be47f7a
AB
143102019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14311
14312 * f-exp.y (convert_to_kind_type): Handle more type kinds.
14313
4d00f5d8
AB
143142019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14315 Chris January <chris.january@arm.com>
14316
14317 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
14318 * f-exp.y: Define 'KIND' token.
14319 (exp): New pattern for KIND expressions.
14320 (ptype): Handle types with a kind extension.
14321 (direct_abs_decl): Extend to spot kind extensions.
14322 (f77_keywords): Add 'kind' to the list.
14323 (push_kind_type): New function.
14324 (convert_to_kind_type): New function.
14325 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
14326 * parse.c (operator_length_standard): Likewise.
14327 * parser-defs.h (enum type_pieces): Add tp_kind.
14328 * std-operator.def: Add UNOP_KIND.
14329
e454224f
AB
143302019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14331
14332 * f-exp.y (f_parse): Set yydebug.
14333
9dad4a58
AB
143342019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14335
14336 * f-lang.c (evaluate_subexp_f): New function.
14337 (exp_descriptor_f): New global.
14338 (f_language_defn): Use exp_descriptor_f instead of
14339 exp_descriptor_standard.
14340
c8f91604
AB
143412019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14342
14343 * f-exp.y (struct token): Add comments.
14344 (dot_ops): Remove uppercase versions and the end marker.
14345 (f77_keywords): Likewise.
14346 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
14347 entries in the dot_ops array are case insensitive, and use
14348 strncasecmp to compare strings. Also some whitespace cleanup in
14349 this area. Similar for the f77_keywords array, except entries in
14350 this list might be case sensitive.
14351
dd9f2c76
AB
143522019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14353
14354 * f-exp.y (struct f77_boolean_val): Add comments.
14355 (boolean_values): Remove uppercase versions, and end marker.
14356 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
14357 and use strncasecmp to achieve case insensitivity. Additionally,
14358 perform whitespace cleanup around this code.
14359
67a3048c
TT
143602019-03-06 Tom Tromey <tromey@adacore.com>
14361
14362 * remote-sim.c (gdbsim_target_open): Use result of
14363 gdb_argv::release.
14364
aa3cfbda
RB
143652019-03-06 Richard Bunt <richard.bunt@arm.com>
14366 Dirk Schubert <dirk.schubert@arm.com>
14367 Chris January <chris.january@arm.com>
14368
14369 * eval.c (evaluate_subexp_standard): Call Fortran argument
14370 wrapping logic.
14371 * f-lang.c (struct value): A value which can be passed into a
14372 Fortran function call.
14373 (fortran_argument_convert): Wrap Fortran arguments in a pointer
14374 where appropriate.
14375 (struct type): Value ready for a Fortran function call.
14376 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
14377 is needed.
14378 * f-lang.h (fortran_argument_convert): Declaration.
14379 (fortran_preserve_arg_pointer): Declaration.
14380 * infcall.c (value_arg_coerce): Call Fortran argument logic.
14381
ea38e5df
TT
143822019-03-05 Tom Tromey <tromey@adacore.com>
14383
14384 * python/py-prettyprint.c (print_string_repr): Remove #if.
14385 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
14386
06b5b831
TT
143872019-03-05 Tom Tromey <tromey@adacore.com>
14388
14389 * target.c (the_dummy_target): Move later. Change type to
14390 "dummy_target".
14391 (initialize_targets): Don't initialize the_dummy_target.
14392
edbd9e45
TT
143932019-03-05 Tom Tromey <tromey@adacore.com>
14394
14395 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
14396 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
14397
c119e040
TT
143982019-03-05 Tom Tromey <tromey@adacore.com>
14399
14400 * windows-nat.c (windows_nat_target::attach)
14401 (windows_nat_target::detach): Don't call gdb_flush.
14402 * valprint.c (generic_val_print, val_print, val_print_string):
14403 Don't call gdb_flush.
14404 * utils.c (defaulted_query): Don't call gdb_flush.
14405 * typeprint.c (print_type_scalar): Don't call gdb_flush.
14406 * target.c (target_announce_detach): Don't call gdb_flush.
14407 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
14408 * remote.c (extended_remote_target::attach): Don't call
14409 gdb_flush.
14410 * procfs.c (procfs_target::detach): Don't call gdb_flush.
14411 * printcmd.c (do_examine): Don't call gdb_flush.
14412 (info_display_command): Don't call gdb_flush.
14413 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
14414 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
14415 * memattr.c (info_mem_command): Don't call gdb_flush.
14416 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
14417 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
14418 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
14419 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
14420 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
14421 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
14422 (gnu_nat_target::detach): Don't call gdb_flush.
14423 * f-valprint.c (f_val_print): Don't call gdb_flush.
14424 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
14425 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
14426 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
14427 gdb_flush.
14428 * c-valprint.c (c_val_print): Don't call gdb_flush.
14429 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
14430
895dafa6
TT
144312019-03-05 Tom Tromey <tromey@adacore.com>
14432
14433 * varobj.c (update_dynamic_varobj_children): Update.
14434 (install_default_visualizer): Use reset, not release.
14435 * value.c (set_internalvar): Update.
14436 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
14437 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
14438 ATTRIBUTE_UNUSED_RESULT.
14439
88a774b9
TT
144402019-03-05 Tom Tromey <tromey@adacore.com>
14441
14442 * remote.c (class scoped_remote_fd) <release>: Add
14443 ATTRIBUTE_UNUSED_RESULT.
14444
4e4a8b93
TT
144452019-03-05 Tom Tromey <tromey@adacore.com>
14446
14447 * macroexp.c (struct macro_buffer) <release>: Add
14448 ATTRIBUTE_UNUSED_RESULT.
14449
083eef1f
TT
144502019-03-05 Tom Tromey <tromey@adacore.com>
14451
14452 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
14453 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
14454 ATTRIBUTE_UNUSED_RESULT.
14455
3cabd438
TT
144562019-03-05 Tom Tromey <tromey@adacore.com>
14457
14458 * common/scoped_fd.h (class scoped_fd) <release>: Add
14459 ATTRIBUTE_UNUSED_RESULT.
14460
41e3300a
TT
144612019-03-05 Tom Tromey <tromey@adacore.com>
14462
14463 * parser-defs.h (struct parser_state) <release>: Add
14464 ATTRIBUTE_UNUSED_RESULT.
14465
18cb7c9f
TT
144662019-03-05 Tom Tromey <tromey@adacore.com>
14467
14468 * utils.h (class gdb_argv) <release>: Add
14469 ATTRIBUTE_UNUSED_RESULT.
14470 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
14471
41fa577f
EZ
144722019-03-02 Eli Zaretskii <eliz@gnu.org>
14473
a6a4b2c6
EZ
14474 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
14475 for-loop range, to avoid compiler warnings.
14476
14477 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
14478 avoid compiler warnings about unused variables.
14479
742a7df5
EZ
14480 * NEWS: Mention end of support for native debugging on MS-Windows
14481 before XP.
14482
41fa577f
EZ
14483 PR gdb/24292
14484 * common/netstuff.c:
14485 * gdbserver/gdbreplay.c
14486 * gdbserver/remote-utils.c:
14487 * ser-tcp.c:
14488 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
14489 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
14490 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
14491 'getaddrinfo' and 'freeaddrinfo' were not available before
14492 Windows XP, and mingw.org's MinGW headers by default define
14493 _WIN32_WINNT to 0x500.
14494
827f438f
GB
144952019-03-01 Gary Benson <gbenson@redhat.com>
14496
14497 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
14498
92137da0
RO
144992019-02-28 Brian Vandenberg <phantall@gmail.com>
14500 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14501
14502 PR gdb/8527
14503 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
14504 set_sigint_trap, clear_sigint_trap.
14505
799efbe8
PW
145062019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14507
14508 * target.c (target_detach): Clear the regcache and the
14509 frame cache.
14510
8ed25214
PA
145112019-02-27 Pedro Alves <palves@redhat.com>
14512
14513 * utils.c (set_screen_size): When we cap the height/width sizes,
14514 tweak the corresponding command variable to show "unlimited":
14515
23031e31
SJ
145162019-02-27 Saagar Jha <saagar@saagarjha.com>
14517 Pedro Alves <palves@redhat.com>
14518
14519 * utils.c (set_screen_size): Reduce "infinite" rows and columns
14520 before calling rl_set_screen_size.
14521
6c28e44a
TT
145222019-02-27 Tom Tromey <tromey@adacore.com>
14523
14524 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
14525 define.
14526 * python/py-value.c: Remove Python 2.4 workaround.
14527 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
14528 workaround.
14529 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
14530 Python 2.4 workaround.
14531 * python/python-internal.h: Remove Python 2.4 comment.
14532 (Py_ssize_t): Don't define.
14533 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
14534 (gdb_Py_DECREF): Remove Python 2.4 workaround.
14535 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
14536 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
14537 * python/python.c (do_start_initialization): Remove Python 2.4
14538 workaround.
14539 * python/py-prettyprint.c (class dummy_python_frame): Remove.
14540 (print_children): Remove Python 2.4 workaround.
14541 * python/py-inferior.c (buffer_procs): Remove Python 2.4
14542 workaround.
14543 (CHARBUFFERPROC_NAME): Remove.
14544 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
14545 Python 2.4 workaround.
14546
2c3fc25d 145472019-02-27 Kevin Buettner <kevinb@redhat.com>
799efbe8 14548
2c3fc25d
KB
14549 * NEWS: Note minimum Python version.
14550
6ca62222
KB
145512019-02-27 Kevin Buettner <kevinb@redhat.com>
14552
14553 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
14554 code from these functions. Remove corresponding ifdefs. Use
14555 Py_buffer_up instead of explicit calls to PyBuffer_Release.
14556 Remove gotos and target of gotos.
14557 (infpy_search_memory): Likewise.
14558
f4bc7d2c
AB
145592019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14560
14561 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
14562 (hppa_gdbarch_init): Don't register deleted functions with
14563 gdbarch.
14564
9734a586
AB
145652019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14566
14567 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
14568 (h8300_unwind_sp): Delete.
14569 (h8300_dummy_id): Delete.
14570 (h8300_gdbarch_init): Don't register deleted functions with
14571 gdbarch.
14572
68b867f3
AB
145732019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14574
14575 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
14576 (ft32_unwind_pc): Delete.
14577 (ft32_unwind_sp): Delete.
14578 (ft32_gdbarch_init): Don't register deleted functions with
14579 gdbarch.
14580
2fbe7ad0
AB
145812019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14582
14583 * gdb/frv-tdep.c (frv_dummy_id): Delete.
14584 (frv_unwind_pc): Delete.
14585 (frv_unwind_sp): Delete.
14586 (frv_gdbarch_init): Don't register deleted functions with
14587 gdbarch.
14588
76055cbe
AB
145892019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14590
14591 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
14592 (riscv_unwind_pc): Delete.
14593 (riscv_unwind_sp): Delete.
14594 (riscv_gdbarch_init): Don't register deleted functions with
14595 gdbarch.
14596
4133e5a1
AB
145972019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14598
14599 * gdb/csky-tdep.c (csky_dummy_id): Delete.
14600 (csky_unwind_pc): Delete.
14601 (csky_unwind_sp): Delete.
14602 (csky_gdbarch_init): Don't register deleted functions with
14603 gdbarch.
14604
8010f576
AB
146052019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14606
14607 * gdb/cris-tdep.c (cris_dummy_id): Delete.
14608 (cris_unwind_pc): Delete.
14609 (cris_unwind_sp): Delete.
14610 (cris_gdbarch_init): Don't register deleted functions with
14611 gdbarch.
14612
b56bf084
AB
146132019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14614
14615 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
14616 (bfin_unwind_pc): Delete.
14617 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
14618
a19a650f
AB
146192019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14620
14621 * gdb/arm-tdep.c (arm_dummy_id): Delete.
14622 (arm_unwind_pc): Delete.
14623 (arm_unwind_sp): Delete.
14624 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
14625
f8278c3c
AB
146262019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14627
14628 * gdb/arc-tdep.c (arc_dummy_id): Delete.
14629 (arc_unwind_pc): Delete.
14630 (arc_unwind_sp): Delete.
14631 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
14632
480e46cf
AB
146332019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14634
14635 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
14636 (alpha_unwind_pc): Delete.
14637 (alpha_gdbarch_init): Don't register deleted functions with
14638 gdbarch.
14639
7a995095
AB
146402019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14641
14642 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
14643 (aarch64_unwind_pc): Delete.
14644 (aarch64_unwind_sp): Delete.
14645 (aarch64_gdbarch_init): Don't register deleted functions with
14646 gdbarch.
14647
bf9a735e
AB
146482019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14649
14650 * gdbtypes.c (type_align): Don't consider static members when
14651 computing structure alignment.
14652
5561fc30
AB
146532019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14654
14655 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
14656 return 0 for other types.
14657 * arch-utils.c (default_type_align): Always return 0.
14658 * gdbarch.h: Regenerate.
14659 * gdbarch.sh (type_align): Extend comment.
14660 * gdbtypes.c (type_align): Add additional comments, always call
14661 gdbarch_type_align before applying the default rules.
14662 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
14663 generic code will then apply a suitable default.
14664 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
14665 types, return 0 for other types.
14666
9335e75a
JB
146672019-02-27 Joel Brobecker <brobecker@adacore.com>
14668
14669 * NEWS: Create a new section for the next release branch.
14670 Rename the section of the current branch, now that it has
14671 been cut.
14672
3d34d8de
JB
146732019-02-27 Joel Brobecker <brobecker@adacore.com>
14674
14675 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
14676 * version.in: Bump version to 8.3.50.DATE-git.
14677
143420fb
SM
146782019-02-26 Simon Marchi <simon.marchi@efficios.com>
14679
14680 * aix-thread.c (ptid_cmp): Remove unused variable.
14681 (get_signaled_thread): Likewise.
14682 (store_regs_user_thread): Likewise.
14683 (store_regs_kernel_thread): Likewise.
14684 (fetch_regs_kernel_thread): Remove shadowed variable.
14685
172fb711
AB
146862019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
14687
14688 * features/riscv/32bit-cpu.xml: Add register numbers.
14689 * features/riscv/32bit-fpu.c: Regenerate.
14690 * features/riscv/32bit-fpu.xml: Add register numbers.
14691 * features/riscv/64bit-cpu.xml: Add register numbers.
14692 * features/riscv/64bit-fpu.c: Regenerate.
14693 * features/riscv/64bit-fpu.xml: Add register numbers.
14694
26c89782
KB
146952019-02-26 Kevin Buettner <kevinb@redhat.com>
14696
af54ade9 14697 * NEWS: Mention two argument form of gdb.Value constructor.
fe07eca5
KB
14698 * python/py-value.c (convert_buffer_and_type_to_value): New
14699 function.
14700 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
14701 Add support for handling an optional second argument. Call
14702 convert_buffer_and_type_to_value as appropriate.
26c89782
KB
14703 * python/python-internal.h (Py_buffer_deleter): New struct.
14704 (Py_buffer_up): New typedef.
14705
0f58c9e8
JB
147062019-02-25 John Baldwin <jhb@FreeBSD.org>
14707
14708 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
14709 instead of releasing ownership.
14710
0a0f4c01
JR
147112019-02-25 Jordan Rupprecht <rupprecht@google.com>
14712
14713 * dwarf2read.c (open_and_init_dwp_file): Call
14714 elf_numsections instead of bfd_count_sections to initialize
14715 dwp_file->num_sections.
14716
cd5a152c
TT
147172019-02-25 Tom Tromey <tromey@adacore.com>
14718
14719 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
14720
8a6a8513
SDJ
147212019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
14722
14723 * gcore.in: Add '--readnever' option when invoking GDB.
14724
04dcda9c
SM
147252019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
14726
14727 * MAINTAINERS: Update my email address.
14728
07bc701d
SM
147292019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
14730
14731 * build-id.c (build_id_to_debug_bfd_1): New function.
14732 (build_id_to_debug_bfd): Look for separate debug file in
14733 sysroot.
14734
c6f4a5d0
AB
147352019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
14736
14737 * gdbarch.sh: Update the copyright year range that is placed into
14738 generated files.
14739
9600246d
KS
147402019-02-22 Keith Seitz <keiths@redhat.com>
14741
14742 PR symtab/23853
14743 * linespec.c (create_sals_line_offset): Search for the default
14744 symtab's filename instead of its fullname.
14745
7557a514
AH
147462019-02-21 Alan Hayward <alan.hayward@arm.com>
14747
14748 * NEWS: Update style defaults.
14749
ee2bcb0c
AH
147502019-02-21 Alan Hayward <alan.hayward@arm.com>
14751
14752 * main.c (captured_main_1): Disable styling in batch mode.
14753
0c95f9ed
TT
147542019-02-20 Tom Tromey <tom@tromey.com>
14755
14756 * symtab.c (symtab_symbol_info): Fix typos.
14757
c763b894
TT
147582019-02-20 Tom Tromey <tromey@adacore.com>
14759
14760 * findcmd.c (_initialize_mem_search): Use upper case for
14761 metasyntactic variables.
14762
0ef8a082
AH
147632019-02-20 Alan Hayward <alan.hayward@arm.com>
14764
14765 * aarch64-tdep.c (aarch64_add_reggroups): New function.
14766 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
14767
6caa91b6
SM
147682019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
14769
14770 * top.h (source_file_name): Change to std::string.
14771 * top.c (source_file_name): Likewise.
14772 (command_line_input): Adjust.
14773 * cli/cli-script.c (script_from_file): Adjust.
14774
98814c6c
TT
147752019-02-19 Tom Tromey <tromey@adacore.com>
14776
14777 * ravenscar-thread.c
14778 (ravenscar_thread_target::update_thread_list): Don't call
14779 ada_build_task_list.
14780 * ada-lang.h (ada_build_task_list): Don't declare.
14781 * ada-tasks.c (struct ada_tasks_inferior_data)
14782 <task_list_valid_p>: Now bool.
14783 (read_known_tasks, ada_task_list_changed)
14784 (ada_tasks_invalidate_inferior_data): Update.
14785 (read_known_tasks_array): Return bool.
14786 (read_known_tasks_list): Likewise.
14787 (read_known_tasks): Return void.
14788 (ada_build_task_list): Now static.
14789
70cd633e
AB
147902019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
14791
14792 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
14793 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
14794
040b3e95
PW
147952019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14796
14797 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
14798 variant for ada_tasks_pspace_data_handle and
14799 ada_tasks_inferior_data_handle.
14800 (ada_tasks_pspace_data_cleanup): New function.
14801 (ada_tasks_inferior_data_cleanup): New function.
14802
9409233b
TT
148032019-02-17 Tom Tromey <tom@tromey.com>
14804
14805 * macrotab.h (macro_source_fullname): Return a std::string.
14806 * macrotab.c (macro_include, check_for_redefinition)
14807 (macro_undef, macro_lookup_definition, foreach_macro)
14808 (foreach_macro_in_scope): Update.
14809 (macro_source_fullname): Return a std::string.
14810 * macrocmd.c (show_pp_source_pos): Update.
14811
6506371f
TT
148122019-02-17 Tom Tromey <tom@tromey.com>
14813
14814 * macrocmd.c (show_pp_source_pos): Style the file names.
14815
0c820d67
TT
148162019-02-17 Tom Tromey <tom@tromey.com>
14817
14818 PR tui/24197:
14819 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
14820
a0087920
TT
148212019-02-17 Tom Tromey <tom@tromey.com>
14822
14823 * ada-lang.c (user_select_syms): Use filtered printing.
14824 * utils.c (wrap_style): New global.
14825 (desired_style): Remove.
14826 (emit_style_escape): Add stream parameter.
14827 (set_output_style, reset_terminal_style, prompt_for_continue):
14828 Update.
14829 (flush_wrap_buffer): Only flush gdb_stdout.
14830 (wrap_here): Set wrap_style.
14831 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
14832 treat escape sequences as a character. Change when wrap buffer is
14833 flushed.
14834 (fputs_styled): Do not set the output style when the default is
14835 requested.
14836 * ui-style.h (struct ui_file_style) <is_default>: New method.
14837 * source.c (print_source_lines_base): Emit escape sequences in one
14838 piece.
14839
75ba10dc
JB
148402019-02-17 Joel Brobecker <brobecker@adacore.com>
14841
14842 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
14843 integers and enumeration types.
14844
a2cd4f14
JB
148452019-02-17 Joel Brobecker <brobecker@adacore.com>
14846
14847 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
14848 instead of lookup_symbol_in_language
14849 (do_exact_match): New function.
14850 (ada_get_symbol_name_matcher): Return do_exact_match when
14851 doing a verbatim match.
14852
485b851b
TT
148532019-02-15 Tom Tromey <tromey@adacore.com>
14854
14855 * ravenscar-thread.c (ravenscar_thread_target::resume)
14856 (ravenscar_thread_target::wait): Special case wildcard requests.
14857
0b790b1e
TT
148582019-02-15 Tom Tromey <tromey@adacore.com>
14859
14860 * ravenscar-thread.c (base_ptid): Remove.
14861 (struct ravenscar_thread_target) <close>: New method.
14862 <m_base_ptid>: New member.
14863 <update_inferior_ptid, active_task, task_is_currently_active,
14864 runtime_initialized>: Declare methods.
14865 <ravenscar_thread_target>: Add constructor.
14866 (ravenscar_thread_target::task_is_currently_active)
14867 (ravenscar_thread_target::update_inferior_ptid)
14868 (ravenscar_runtime_initialized): Rename. Now methods.
14869 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
14870 (ravenscar_thread_target::update_thread_list): Update.
14871 (ravenscar_thread_target::active_task): Now method.
14872 (ravenscar_thread_target::store_registers)
14873 (ravenscar_thread_target::prepare_to_store)
14874 (ravenscar_thread_target::prepare_to_store)
14875 (ravenscar_thread_target::mourn_inferior): Update.
14876 (ravenscar_inferior_created): Use "new" to create target.
14877 (ravenscar_thread_target::get_ada_task_ptid): Update.
14878 (_initialize_ravenscar): Don't initialize base_ptid.
14879 (ravenscar_ops): Remove global.
14880
dea57a62
TT
148812019-02-15 Tom Tromey <tromey@adacore.com>
14882
14883 * target.h (push_target): Declare new overload.
14884 * target.c (push_target): New overload, taking an rvalue reference.
14885 * remote.c (remote_target::open_1): Use push_target overload.
14886 * corelow.c (core_target_open): Use push_target overload.
14887
989f3c58
TT
148882019-02-15 Tom Tromey <tromey@adacore.com>
14889
14890 * ravenscar-thread.c (is_ravenscar_task)
14891 (ravenscar_task_is_currently_active): Return bool.
14892 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
14893 (_initialize_ravenscar): Remove "(void)".
14894 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
14895 Return bool.
14896
6cbcc006
TT
148972019-02-15 Tom Tromey <tromey@adacore.com>
14898
14899 * ravenscar-thread.c (ravenscar_runtime_initializer)
14900 (has_ravenscar_runtime, get_running_thread_id)
14901 (ravenscar_thread_target::resume): Fix indentation.
14902
7657f14d
TT
149032019-02-15 Tom Tromey <tromey@adacore.com>
14904
14905 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
14906 from ravenscar_arch_ops.
14907 (sparc_ravenscar_ops::fetch_registers)
14908 (sparc_ravenscar_ops::store_registers): Now methods.
14909 (sparc_ravenscar_prepare_to_store): Remove.
14910 (sparc_ravenscar_ops): Redefine.
14911 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
14912 methods and destructor. Remove members.
14913 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
14914 (ravenscar_thread_target::store_registers)
14915 (ravenscar_thread_target::prepare_to_store): Update.
14916 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
14917 Remove.
14918 (struct ppc_ravenscar_powerpc_ops): Derive from
14919 ravenscar_arch_ops.
14920 (ppc_ravenscar_powerpc_ops::fetch_registers)
14921 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
14922 (ppc_ravenscar_powerpc_ops): Redefine.
14923 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
14924 (ppc_ravenscar_e500_ops::fetch_registers)
14925 (ppc_ravenscar_e500_ops::store_registers): Now methods.
14926 (ppc_ravenscar_e500_ops): Redefine.
14927 * aarch64-ravenscar-thread.c
14928 (aarch64_ravenscar_generic_prepare_to_store): Remove.
14929 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
14930 (aarch64_ravenscar_fetch_registers)
14931 (aarch64_ravenscar_store_registers): Now methods.
14932 (aarch64_ravenscar_ops): Redefine.
14933
5b6ea500
TT
149342019-02-15 Tom Tromey <tromey@adacore.com>
14935
14936 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
14937 (ravenscar_thread_target::stopped_by_hw_breakpoint)
14938 (ravenscar_thread_target::stopped_by_watchpoint)
14939 (ravenscar_thread_target::stopped_data_address)
14940 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
14941
e397fd39
TT
149422019-02-15 Tom Tromey <tromey@adacore.com>
14943
14944 * ravenscar-thread.c: Fix some typos.
14945
cc12f4a8
TT
149462019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14947 Tom Tromey <tromey@adacore.com>
14948
14949 * ada-lang.c (ada_exception_sal): Change addr_string to a
14950 std::string.
14951 (create_ada_exception_catchpoint): Update.
14952
5f486660
TT
149532019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14954 Tom Tromey <tromey@adacore.com>
14955
14956 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
14957 (bp_location_ops): Remove.
14958 (base_breakpoint_allocate_location): Update.
14959 (free_bp_location): Update.
14960 * ada-lang.c (class ada_catchpoint_location)
14961 <ada_catchpoint_location>: Remove ops parameter.
14962 (ada_catchpoint_location_dtor): Remove.
14963 (ada_catchpoint_location_ops): Remove.
14964 (allocate_location_exception): Update.
14965 * breakpoint.h (struct bp_location_ops): Remove.
14966 (class bp_location) <bp_location>: Remove bp_location_ops
14967 parameter.
14968 <~bp_location>: Add destructor.
14969 <ops>: Remove.
14970
b671c7fb
TS
149712019-02-14 Thomas Schwinge <thomas@codesourcery.com>
14972 Pedro Alves <palves@redhat.com>
14973
14974 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
14975 'PATH_MAX'.
14976
8071c5ce
DM
149772019-02-14 David Michael <fedora.dm0@gmail.com>
14978 Samuel Thibault <samuel.thibault@gnu.org>
14979 Thomas Schwinge <thomas@codesourcery.com>
14980
14981 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
14982 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
14983
b1041ae0
TS
149842019-02-14 Thomas Schwinge <thomas@codesourcery.com>
14985
924514e1
TS
14986 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
14987 (check_empty): Use "const char *".
14988
c29ee8d4
TS
14989 * gnu-nat.c (gnu_nat_target::detach): Instead of
14990 'detach_inferior (pid)' call
14991 'detach_inferior (find_inferior_pid (pid))'.
14992
6c6ef69f
TS
14993 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
14994 'nat/fork-inferior.o'.
14995 * gnu-nat.c: #include "nat/fork-inferior.h".
14996
2d0a338c
TS
14997 * gnu-nat.c (gnu_nat_target::detach): Instead of
14998 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
14999 * gnu-nat.h: #include "inf-child.h".
15000 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
15001 'i386_gnu_nat_target::fetch_registers'.
15002 (gnu_store_registers): Rename/move to
15003 'i386_gnu_nat_target::store_registers'.
15004
cabb5f06
TS
15005 * config/i386/nm-i386gnu.h: Don't "#include" any files.
15006 * gnu-nat.h (mach_thread_info): New function.
15007 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
15008
b1041ae0
TS
15009 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
15010
2988d01e
KF
150112019-02-14 Frederic Konrad <konrad@adacore.com>
15012
15013 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
15014
c559d709
JB
150152019-02-14 Joel Brobecker <brobecker@adacore.com>
15016
15017 * windows-nat.c (windows_add_thread): Add new parameter
15018 "main_thread_p" with default value set to false. Update
15019 function documentation as well as all callers.
15020 (windows_delete_thread): Likewise.
15021 (fake_create_process): Update call to windows_add_thread.
15022 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
15023 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
15024 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
15025 call to windows_delete_thread.
15026
007024cc
SM
150272019-02-13 Simon Marchi <simon.marchi@ericsson.com>
15028
15029 * MAINTAINERS: Add Andrew Burgess as global maintainer.
15030
f62318e9
JB
150312019-02-12 John Baldwin <jhb@FreeBSD.org>
15032
15033 * symfile.c (find_separate_debug_file): Use canonical path of
15034 sysroot with child_path instead of gdb_sysroot if it is valid.
15035
cd4b7848
JB
150362019-02-12 John Baldwin <jhb@FreeBSD.org>
15037
15038 * symfile.c (find_separate_debug_file): Use child_path to
15039 determine if an object file is under a sysroot.
15040
efac4bfe
JB
150412019-02-12 John Baldwin <jhb@FreeBSD.org>
15042
15043 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
15044 unittests/child-path-selftests.c.
15045 * common/pathstuff.c (child_path): New function.
15046 * common/pathstuff.h (child_path): New prototype.
15047 * unittests/child-path-selftests.c: New file.
15048
402d2bfe
JB
150492019-02-12 John Baldwin <jhb@FreeBSD.org>
15050
15051 * symfile.c (find_separate_debug_file): Look for separate debug
15052 files in debug directories under the sysroot.
15053
1ed9f74e
PW
150542019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15055
15056 * symtab.h (struct minimal_symbol data_p): New const method.
15057 (struct minimal_symbol text_p): Likewise.
15058 * symtab.c (output_source_filename): Use file name style
15059 to print file name.
15060 (print_symbol_info): Likewise.
15061 (print_msymbol_info): Use address style to print addresses.
15062 Use function name style to print executable text symbols.
15063 (expand_symtab_containing_pc): Use data_p.
15064 (find_pc_sect_compunit_symtab): Likewise.
15065
2636d81d
PW
150662019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15067
15068 * breakpoint.c (describe_other_breakpoints): Use address style
15069 to print addresses.
15070 (say_where): Likewise.
15071
ac8c53cc
PW
150722019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15073
15074 * ada-typeprint.c (print_func_type): Print function name
15075 style to print function name.
15076 * c-typeprint.c (c_print_type_1): Likewise.
15077
ea638c43
AH
150782019-02-11 Alan Hayward <alan.hayward@arm.com>
15079
15080 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
15081 for execve.
15082
ab759ca8
PW
150832019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15084
15085 * c-exp.y (direct_abs_decl): Use emplace_back to record the
15086 type_stack.
15087
aff29d1c
JB
150882019-02-10 Joel Brobecker <brobecker@adacore.com>
15089
15090 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
15091 TYPE_CODE_REF types.
15092
617126bc
JW
150932019-02-08 Jim Wilson <jimw@sifive.com>
15094
15095 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
15096 (riscv_linux_fregset): New.
15097 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
15098
46e3ed7f
TT
150992019-02-07 Tom Tromey <tom@tromey.com>
15100
15101 * thread.c (thread_cancel_execution_command): Update.
15102 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
15103 methods.
15104 (struct thread_fsm_ops): Remove.
15105 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
15106 (thread_fsm_should_stop, thread_fsm_return_value)
15107 (thread_fsm_set_finished, thread_fsm_finished_p)
15108 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
15109 Don't declare.
15110 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
15111 * infrun.c (clear_proceed_status_thread)
15112 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
15113 (print_stop_event): Update.
15114 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
15115 Add constructor.
15116 (step_command_fsm_ops): Remove.
15117 (new_step_command_fsm): Remove.
15118 (step_1): Update.
15119 (step_command_fsm::should_stop): Rename from
15120 step_command_fsm_should_stop.
15121 (step_command_fsm::clean_up): Rename from
15122 step_command_fsm_clean_up.
15123 (step_command_fsm::do_async_reply_reason): Rename from
15124 step_command_fsm_async_reply_reason.
15125 (struct until_next_fsm): Inherit from thread_fsm. Add
15126 constructor.
15127 (until_next_fsm_ops): Remove.
15128 (new_until_next_fsm): Remove.
15129 (until_next_fsm::should_stop): Rename from
15130 until_next_fsm_should_stop.
15131 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
15132 (until_next_fsm::do_async_reply_reason): Rename from
15133 until_next_fsm_async_reply_reason.
15134 (struct finish_command_fsm): Inherit from thread_fsm. Add
15135 constructor. Change type of breakpoint.
15136 (finish_command_fsm_ops): Remove.
15137 (new_finish_command_fsm): Remove.
15138 (finish_command_fsm::should_stop): Rename from
15139 finish_command_fsm_should_stop.
15140 (finish_command_fsm::clean_up): Rename from
15141 finish_command_fsm_clean_up.
15142 (finish_command_fsm::return_value): Rename from
15143 finish_command_fsm_return_value.
15144 (finish_command_fsm::do_async_reply_reason): Rename from
15145 finish_command_fsm_async_reply_reason.
15146 (finish_command): Update.
15147 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
15148 Add constructor.
15149 (call_thread_fsm_ops): Remove.
15150 (call_thread_fsm::call_thread_fsm): Rename from
15151 new_call_thread_fsm.
15152 (call_thread_fsm::should_stop): Rename from
15153 call_thread_fsm_should_stop.
15154 (call_thread_fsm::should_notify_stop): Rename from
15155 call_thread_fsm_should_notify_stop.
15156 (run_inferior_call, call_function_by_hand_dummy): Update.
15157 * cli/cli-interp.c (should_print_stop_to_console): Update.
15158 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
15159 Add constructor. Change type of location_breakpoint,
15160 caller_breakpoint.
15161 (until_break_fsm_ops): Remove.
15162 (new_until_break_fsm): Remove.
15163 (until_break_fsm::should_stop): Rename from
15164 until_break_fsm_should_stop.
15165 (until_break_fsm::clean_up): Rename from
15166 until_break_fsm_clean_up.
15167 (until_break_fsm::do_async_reply_reason): Rename from
15168 until_break_fsm_async_reply_reason.
15169 (until_break_command): Update.
15170 * thread-fsm.c: Remove.
15171 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
15172
1a5c2598
TT
151732019-02-07 Tom Tromey <tom@tromey.com>
15174
15175 * yy-remap.h: Add include guard.
15176 * xtensa-tdep.h: Add include guard.
15177 * xcoffread.h: Rename include guard.
15178 * varobj-iter.h: Add include guard.
15179 * tui/tui.h: Rename include guard.
15180 * tui/tui-winsource.h: Rename include guard.
15181 * tui/tui-wingeneral.h: Rename include guard.
15182 * tui/tui-windata.h: Rename include guard.
15183 * tui/tui-win.h: Rename include guard.
15184 * tui/tui-stack.h: Rename include guard.
15185 * tui/tui-source.h: Rename include guard.
15186 * tui/tui-regs.h: Rename include guard.
15187 * tui/tui-out.h: Rename include guard.
15188 * tui/tui-layout.h: Rename include guard.
15189 * tui/tui-io.h: Rename include guard.
15190 * tui/tui-hooks.h: Rename include guard.
15191 * tui/tui-file.h: Rename include guard.
15192 * tui/tui-disasm.h: Rename include guard.
15193 * tui/tui-data.h: Rename include guard.
15194 * tui/tui-command.h: Rename include guard.
15195 * tic6x-tdep.h: Add include guard.
15196 * target/waitstatus.h: Rename include guard.
15197 * target/wait.h: Rename include guard.
15198 * target/target.h: Rename include guard.
15199 * target/resume.h: Rename include guard.
15200 * target-float.h: Rename include guard.
15201 * stabsread.h: Add include guard.
15202 * rs6000-tdep.h: Add include guard.
15203 * riscv-fbsd-tdep.h: Add include guard.
15204 * regformats/regdef.h: Rename include guard.
15205 * record.h: Rename include guard.
15206 * python/python.h: Rename include guard.
15207 * python/python-internal.h: Rename include guard.
15208 * python/py-stopevent.h: Rename include guard.
15209 * python/py-ref.h: Rename include guard.
15210 * python/py-record.h: Rename include guard.
15211 * python/py-record-full.h: Rename include guard.
15212 * python/py-record-btrace.h: Rename include guard.
15213 * python/py-instruction.h: Rename include guard.
15214 * python/py-events.h: Rename include guard.
15215 * python/py-event.h: Rename include guard.
15216 * procfs.h: Add include guard.
15217 * proc-utils.h: Add include guard.
15218 * p-lang.h: Add include guard.
15219 * or1k-tdep.h: Rename include guard.
15220 * observable.h: Rename include guard.
15221 * nto-tdep.h: Rename include guard.
15222 * nat/x86-linux.h: Rename include guard.
15223 * nat/x86-linux-dregs.h: Rename include guard.
15224 * nat/x86-gcc-cpuid.h: Add include guard.
15225 * nat/x86-dregs.h: Rename include guard.
15226 * nat/x86-cpuid.h: Rename include guard.
15227 * nat/ppc-linux.h: Rename include guard.
15228 * nat/mips-linux-watch.h: Rename include guard.
15229 * nat/linux-waitpid.h: Rename include guard.
15230 * nat/linux-ptrace.h: Rename include guard.
15231 * nat/linux-procfs.h: Rename include guard.
15232 * nat/linux-osdata.h: Rename include guard.
15233 * nat/linux-nat.h: Rename include guard.
15234 * nat/linux-namespaces.h: Rename include guard.
15235 * nat/linux-btrace.h: Rename include guard.
15236 * nat/glibc_thread_db.h: Rename include guard.
15237 * nat/gdb_thread_db.h: Rename include guard.
15238 * nat/gdb_ptrace.h: Rename include guard.
15239 * nat/fork-inferior.h: Rename include guard.
15240 * nat/amd64-linux-siginfo.h: Rename include guard.
15241 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
15242 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
15243 * nat/aarch64-linux.h: Rename include guard.
15244 * nat/aarch64-linux-hw-point.h: Rename include guard.
15245 * mn10300-tdep.h: Add include guard.
15246 * mips-linux-tdep.h: Add include guard.
15247 * mi/mi-parse.h: Rename include guard.
15248 * mi/mi-out.h: Rename include guard.
15249 * mi/mi-main.h: Rename include guard.
15250 * mi/mi-interp.h: Rename include guard.
15251 * mi/mi-getopt.h: Rename include guard.
15252 * mi/mi-console.h: Rename include guard.
15253 * mi/mi-common.h: Rename include guard.
15254 * mi/mi-cmds.h: Rename include guard.
15255 * mi/mi-cmd-break.h: Rename include guard.
15256 * m2-lang.h: Add include guard.
15257 * location.h: Rename include guard.
15258 * linux-record.h: Rename include guard.
15259 * linux-nat.h: Add include guard.
15260 * linux-fork.h: Add include guard.
15261 * i386-darwin-tdep.h: Rename include guard.
15262 * hppa-linux-offsets.h: Add include guard.
15263 * guile/guile.h: Rename include guard.
15264 * guile/guile-internal.h: Rename include guard.
15265 * gnu-nat.h: Rename include guard.
15266 * gdb-stabs.h: Rename include guard.
15267 * frv-tdep.h: Add include guard.
15268 * f-lang.h: Add include guard.
15269 * event-loop.h: Add include guard.
15270 * darwin-nat.h: Rename include guard.
15271 * cp-abi.h: Rename include guard.
15272 * config/sparc/nm-sol2.h: Rename include guard.
15273 * config/nm-nto.h: Rename include guard.
15274 * config/nm-linux.h: Add include guard.
15275 * config/i386/nm-i386gnu.h: Rename include guard.
15276 * config/djgpp/nl_types.h: Rename include guard.
15277 * config/djgpp/langinfo.h: Rename include guard.
15278 * compile/gcc-cp-plugin.h: Add include guard.
15279 * compile/gcc-c-plugin.h: Add include guard.
15280 * compile/compile.h: Rename include guard.
15281 * compile/compile-object-run.h: Rename include guard.
15282 * compile/compile-object-load.h: Rename include guard.
15283 * compile/compile-internal.h: Rename include guard.
15284 * compile/compile-cplus.h: Rename include guard.
15285 * compile/compile-c.h: Rename include guard.
15286 * common/xml-utils.h: Rename include guard.
15287 * common/x86-xstate.h: Rename include guard.
15288 * common/version.h: Rename include guard.
15289 * common/vec.h: Rename include guard.
15290 * common/tdesc.h: Rename include guard.
15291 * common/selftest.h: Rename include guard.
15292 * common/scoped_restore.h: Rename include guard.
15293 * common/scoped_mmap.h: Rename include guard.
15294 * common/scoped_fd.h: Rename include guard.
15295 * common/safe-iterator.h: Rename include guard.
15296 * common/run-time-clock.h: Rename include guard.
15297 * common/refcounted-object.h: Rename include guard.
15298 * common/queue.h: Rename include guard.
15299 * common/ptid.h: Rename include guard.
15300 * common/print-utils.h: Rename include guard.
15301 * common/preprocessor.h: Rename include guard.
15302 * common/pathstuff.h: Rename include guard.
15303 * common/observable.h: Rename include guard.
15304 * common/netstuff.h: Rename include guard.
15305 * common/job-control.h: Rename include guard.
15306 * common/host-defs.h: Rename include guard.
15307 * common/gdb_wait.h: Rename include guard.
15308 * common/gdb_vecs.h: Rename include guard.
15309 * common/gdb_unlinker.h: Rename include guard.
15310 * common/gdb_unique_ptr.h: Rename include guard.
15311 * common/gdb_tilde_expand.h: Rename include guard.
15312 * common/gdb_sys_time.h: Rename include guard.
15313 * common/gdb_string_view.h: Rename include guard.
15314 * common/gdb_splay_tree.h: Rename include guard.
15315 * common/gdb_setjmp.h: Rename include guard.
15316 * common/gdb_ref_ptr.h: Rename include guard.
15317 * common/gdb_optional.h: Rename include guard.
15318 * common/gdb_locale.h: Rename include guard.
15319 * common/gdb_assert.h: Rename include guard.
15320 * common/filtered-iterator.h: Rename include guard.
15321 * common/filestuff.h: Rename include guard.
15322 * common/fileio.h: Rename include guard.
15323 * common/environ.h: Rename include guard.
15324 * common/common-utils.h: Rename include guard.
15325 * common/common-types.h: Rename include guard.
15326 * common/common-regcache.h: Rename include guard.
15327 * common/common-inferior.h: Rename include guard.
15328 * common/common-gdbthread.h: Rename include guard.
15329 * common/common-exceptions.h: Rename include guard.
15330 * common/common-defs.h: Rename include guard.
15331 * common/common-debug.h: Rename include guard.
15332 * common/cleanups.h: Rename include guard.
15333 * common/buffer.h: Rename include guard.
15334 * common/btrace-common.h: Rename include guard.
15335 * common/break-common.h: Rename include guard.
15336 * cli/cli-utils.h: Rename include guard.
15337 * cli/cli-style.h: Rename include guard.
15338 * cli/cli-setshow.h: Rename include guard.
15339 * cli/cli-script.h: Rename include guard.
15340 * cli/cli-interp.h: Rename include guard.
15341 * cli/cli-decode.h: Rename include guard.
15342 * cli/cli-cmds.h: Rename include guard.
15343 * charset-list.h: Add include guard.
15344 * buildsym-legacy.h: Rename include guard.
15345 * bfin-tdep.h: Add include guard.
15346 * ax.h: Rename include guard.
15347 * arm-linux-tdep.h: Add include guard.
15348 * arm-fbsd-tdep.h: Add include guard.
15349 * arch/xtensa.h: Rename include guard.
15350 * arch/tic6x.h: Add include guard.
15351 * arch/i386.h: Add include guard.
15352 * arch/arm.h: Rename include guard.
15353 * arch/arm-linux.h: Rename include guard.
15354 * arch/arm-get-next-pcs.h: Rename include guard.
15355 * arch/amd64.h: Add include guard.
15356 * arch/aarch64-insn.h: Rename include guard.
15357 * arch-utils.h: Rename include guard.
15358 * annotate.h: Add include guard.
15359 * amd64-darwin-tdep.h: Rename include guard.
15360 * aarch64-linux-tdep.h: Add include guard.
15361 * aarch64-fbsd-tdep.h: Add include guard.
15362 * aarch32-linux-nat.h: Add include guard.
15363
ab9268d2
PW
153642019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15365
15366 * macrotab.c (macro_define_internal): New function that
15367 factorizes macro_define_object_internal and macro_define_function
15368 code.
15369 (macro_define_object_internal): Use macro_define_internal.
15370 (macro_define_function): Likewise.
15371
bb0da2b4
PW
153722019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15373
15374 * macrocmd.c (extract_identifier): Return
15375 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
15376 callers.
15377
424eb552
JB
153782019-02-06 John Baldwin <jhb@FreeBSD.org>
15379
15380 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
15381
1688cb29
TT
153822019-02-05 Tom Tromey <tom@tromey.com>
15383
15384 * target.c (target_stack::unpush): Move assertion earlier.
15385
b5eba2d8
TT
153862019-01-30 Tom Tromey <tom@tromey.com>
15387
15388 PR python/23615:
15389 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
15390 (gdbpy_parse_and_eval): Likewise.
15391 * python/python-internal.h (gdbpy_allow_threads): New class.
15392
7054e2ff
JB
153932019-01-28 John Baldwin <jhb@FreeBSD.org>
15394
15395 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
15396 (aarch64_fbsd_fpregmap): Move earlier.
15397 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
15398 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
15399 instead of individual calls to trad_frame_set_reg_addr.
15400 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
15401 earlier.
15402 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
15403 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
15404 instead of individual calls to trad_frame_set_reg_addr.
15405
36c25ffa
AH
154062019-01-28 Alan Hayward <alan.hayward@arm.com>
15407
15408 * CONTRIBUTE: Replace contribution list with wiki link.
15409
a0707f3c
TT
154102019-01-25 Tom Tromey <tom@tromey.com>
15411
15412 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
15413
0747795c
TT
154142019-01-25 Tom Tromey <tom@tromey.com>
15415
15416 * xtensa-linux-nat.c: Fix common/ includes.
15417 * xml-support.h: Fix common/ includes.
15418 * xml-support.c: Fix common/ includes.
15419 * x86-linux-nat.c: Fix common/ includes.
15420 * windows-nat.c: Fix common/ includes.
15421 * varobj.h: Fix common/ includes.
15422 * varobj.c: Fix common/ includes.
15423 * value.c: Fix common/ includes.
15424 * valops.c: Fix common/ includes.
15425 * utils.c: Fix common/ includes.
15426 * unittests/xml-utils-selftests.c: Fix common/ includes.
15427 * unittests/utils-selftests.c: Fix common/ includes.
15428 * unittests/unpack-selftests.c: Fix common/ includes.
15429 * unittests/tracepoint-selftests.c: Fix common/ includes.
15430 * unittests/style-selftests.c: Fix common/ includes.
15431 * unittests/string_view-selftests.c: Fix common/ includes.
15432 * unittests/scoped_restore-selftests.c: Fix common/ includes.
15433 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
15434 * unittests/scoped_fd-selftests.c: Fix common/ includes.
15435 * unittests/rsp-low-selftests.c: Fix common/ includes.
15436 * unittests/parse-connection-spec-selftests.c: Fix common/
15437 includes.
15438 * unittests/optional-selftests.c: Fix common/ includes.
15439 * unittests/offset-type-selftests.c: Fix common/ includes.
15440 * unittests/observable-selftests.c: Fix common/ includes.
15441 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
15442 * unittests/memrange-selftests.c: Fix common/ includes.
15443 * unittests/memory-map-selftests.c: Fix common/ includes.
15444 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
15445 * unittests/function-view-selftests.c: Fix common/ includes.
15446 * unittests/environ-selftests.c: Fix common/ includes.
15447 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
15448 * unittests/common-utils-selftests.c: Fix common/ includes.
15449 * unittests/cli-utils-selftests.c: Fix common/ includes.
15450 * unittests/array-view-selftests.c: Fix common/ includes.
15451 * ui-file.c: Fix common/ includes.
15452 * tui/tui-io.c: Fix common/ includes.
15453 * tracepoint.h: Fix common/ includes.
15454 * tracepoint.c: Fix common/ includes.
15455 * tracefile-tfile.c: Fix common/ includes.
15456 * top.h: Fix common/ includes.
15457 * top.c: Fix common/ includes.
15458 * thread.c: Fix common/ includes.
15459 * target/waitstatus.h: Fix common/ includes.
15460 * target/waitstatus.c: Fix common/ includes.
15461 * target.h: Fix common/ includes.
15462 * target.c: Fix common/ includes.
15463 * target-memory.c: Fix common/ includes.
15464 * target-descriptions.c: Fix common/ includes.
15465 * symtab.h: Fix common/ includes.
15466 * symfile.c: Fix common/ includes.
15467 * stap-probe.c: Fix common/ includes.
15468 * spu-linux-nat.c: Fix common/ includes.
15469 * sparc-nat.c: Fix common/ includes.
15470 * source.c: Fix common/ includes.
15471 * solib.c: Fix common/ includes.
15472 * solib-target.c: Fix common/ includes.
15473 * ser-unix.c: Fix common/ includes.
15474 * ser-tcp.c: Fix common/ includes.
15475 * ser-pipe.c: Fix common/ includes.
15476 * ser-base.c: Fix common/ includes.
15477 * selftest-arch.c: Fix common/ includes.
15478 * s12z-tdep.c: Fix common/ includes.
15479 * rust-exp.y: Fix common/ includes.
15480 * rs6000-aix-tdep.c: Fix common/ includes.
15481 * riscv-tdep.c: Fix common/ includes.
15482 * remote.c: Fix common/ includes.
15483 * remote-notif.h: Fix common/ includes.
15484 * remote-fileio.h: Fix common/ includes.
15485 * remote-fileio.c: Fix common/ includes.
15486 * regcache.h: Fix common/ includes.
15487 * regcache.c: Fix common/ includes.
15488 * record-btrace.c: Fix common/ includes.
15489 * python/python.c: Fix common/ includes.
15490 * python/py-type.c: Fix common/ includes.
15491 * python/py-inferior.c: Fix common/ includes.
15492 * progspace.h: Fix common/ includes.
15493 * producer.c: Fix common/ includes.
15494 * procfs.c: Fix common/ includes.
15495 * proc-api.c: Fix common/ includes.
15496 * printcmd.c: Fix common/ includes.
15497 * ppc-linux-nat.c: Fix common/ includes.
15498 * parser-defs.h: Fix common/ includes.
15499 * osdata.c: Fix common/ includes.
15500 * obsd-nat.c: Fix common/ includes.
15501 * nat/x86-linux.c: Fix common/ includes.
15502 * nat/x86-linux-dregs.c: Fix common/ includes.
15503 * nat/x86-dregs.h: Fix common/ includes.
15504 * nat/x86-dregs.c: Fix common/ includes.
15505 * nat/ppc-linux.c: Fix common/ includes.
15506 * nat/mips-linux-watch.h: Fix common/ includes.
15507 * nat/mips-linux-watch.c: Fix common/ includes.
15508 * nat/linux-waitpid.c: Fix common/ includes.
15509 * nat/linux-ptrace.h: Fix common/ includes.
15510 * nat/linux-ptrace.c: Fix common/ includes.
15511 * nat/linux-procfs.c: Fix common/ includes.
15512 * nat/linux-personality.c: Fix common/ includes.
15513 * nat/linux-osdata.c: Fix common/ includes.
15514 * nat/linux-namespaces.c: Fix common/ includes.
15515 * nat/linux-btrace.h: Fix common/ includes.
15516 * nat/linux-btrace.c: Fix common/ includes.
15517 * nat/fork-inferior.c: Fix common/ includes.
15518 * nat/amd64-linux-siginfo.c: Fix common/ includes.
15519 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
15520 * nat/aarch64-linux.c: Fix common/ includes.
15521 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
15522 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
15523 * namespace.h: Fix common/ includes.
15524 * mips-linux-tdep.c: Fix common/ includes.
15525 * minsyms.c: Fix common/ includes.
15526 * mi/mi-parse.h: Fix common/ includes.
15527 * mi/mi-main.c: Fix common/ includes.
15528 * mi/mi-cmd-env.c: Fix common/ includes.
15529 * memrange.h: Fix common/ includes.
15530 * memattr.c: Fix common/ includes.
15531 * maint.h: Fix common/ includes.
15532 * maint.c: Fix common/ includes.
15533 * main.c: Fix common/ includes.
15534 * machoread.c: Fix common/ includes.
15535 * location.c: Fix common/ includes.
15536 * linux-thread-db.c: Fix common/ includes.
15537 * linux-nat.c: Fix common/ includes.
15538 * linux-fork.c: Fix common/ includes.
15539 * inline-frame.c: Fix common/ includes.
15540 * infrun.c: Fix common/ includes.
15541 * inflow.c: Fix common/ includes.
15542 * inferior.h: Fix common/ includes.
15543 * inferior.c: Fix common/ includes.
15544 * infcmd.c: Fix common/ includes.
15545 * inf-ptrace.c: Fix common/ includes.
15546 * inf-child.c: Fix common/ includes.
15547 * ia64-linux-nat.c: Fix common/ includes.
15548 * i387-tdep.c: Fix common/ includes.
15549 * i386-tdep.c: Fix common/ includes.
15550 * i386-linux-tdep.c: Fix common/ includes.
15551 * i386-linux-nat.c: Fix common/ includes.
15552 * i386-go32-tdep.c: Fix common/ includes.
15553 * i386-fbsd-tdep.c: Fix common/ includes.
15554 * i386-fbsd-nat.c: Fix common/ includes.
15555 * guile/scm-type.c: Fix common/ includes.
15556 * guile/guile.c: Fix common/ includes.
15557 * go32-nat.c: Fix common/ includes.
15558 * gnu-nat.c: Fix common/ includes.
15559 * gdbthread.h: Fix common/ includes.
15560 * gdbarch-selftests.c: Fix common/ includes.
15561 * gdb_usleep.c: Fix common/ includes.
15562 * gdb_select.h: Fix common/ includes.
15563 * gdb_bfd.c: Fix common/ includes.
15564 * gcore.c: Fix common/ includes.
15565 * fork-child.c: Fix common/ includes.
15566 * findvar.c: Fix common/ includes.
15567 * fbsd-nat.c: Fix common/ includes.
15568 * event-top.c: Fix common/ includes.
15569 * event-loop.c: Fix common/ includes.
15570 * dwarf2read.c: Fix common/ includes.
15571 * dwarf2loc.c: Fix common/ includes.
15572 * dwarf2-frame.c: Fix common/ includes.
15573 * dwarf-index-cache.c: Fix common/ includes.
15574 * dtrace-probe.c: Fix common/ includes.
15575 * disasm-selftests.c: Fix common/ includes.
15576 * defs.h: Fix common/ includes.
15577 * csky-tdep.c: Fix common/ includes.
15578 * cp-valprint.c: Fix common/ includes.
15579 * cp-support.h: Fix common/ includes.
15580 * cp-support.c: Fix common/ includes.
15581 * corelow.c: Fix common/ includes.
15582 * completer.h: Fix common/ includes.
15583 * completer.c: Fix common/ includes.
15584 * compile/compile.c: Fix common/ includes.
15585 * compile/compile-loc2c.c: Fix common/ includes.
15586 * compile/compile-cplus-types.c: Fix common/ includes.
15587 * compile/compile-cplus-symbols.c: Fix common/ includes.
15588 * command.h: Fix common/ includes.
15589 * cli/cli-dump.c: Fix common/ includes.
15590 * cli/cli-cmds.c: Fix common/ includes.
15591 * charset.c: Fix common/ includes.
15592 * build-id.c: Fix common/ includes.
15593 * btrace.h: Fix common/ includes.
15594 * btrace.c: Fix common/ includes.
15595 * breakpoint.h: Fix common/ includes.
15596 * breakpoint.c: Fix common/ includes.
15597 * ax.h:
15598 (enum agent_op): Fix common/ includes.
15599 * ax-general.c (struct aop_map): Fix common/ includes.
15600 * ax-gdb.c: Fix common/ includes.
15601 * auxv.c: Fix common/ includes.
15602 * auto-load.c: Fix common/ includes.
15603 * arm-tdep.c: Fix common/ includes.
15604 * arch/riscv.c: Fix common/ includes.
15605 * arch/ppc-linux-common.c: Fix common/ includes.
15606 * arch/i386.c: Fix common/ includes.
15607 * arch/arm.c: Fix common/ includes.
15608 * arch/arm-linux.c: Fix common/ includes.
15609 * arch/arm-get-next-pcs.c: Fix common/ includes.
15610 * arch/amd64.c: Fix common/ includes.
15611 * arch/aarch64.c: Fix common/ includes.
15612 * arch/aarch64-insn.c: Fix common/ includes.
15613 * arch-utils.c: Fix common/ includes.
15614 * amd64-windows-tdep.c: Fix common/ includes.
15615 * amd64-tdep.c: Fix common/ includes.
15616 * amd64-sol2-tdep.c: Fix common/ includes.
15617 * amd64-obsd-tdep.c: Fix common/ includes.
15618 * amd64-nbsd-tdep.c: Fix common/ includes.
15619 * amd64-linux-tdep.c: Fix common/ includes.
15620 * amd64-linux-nat.c: Fix common/ includes.
15621 * amd64-fbsd-tdep.c: Fix common/ includes.
15622 * amd64-fbsd-nat.c: Fix common/ includes.
15623 * amd64-dicos-tdep.c: Fix common/ includes.
15624 * amd64-darwin-tdep.c: Fix common/ includes.
15625 * agent.c: Fix common/ includes.
15626 * ada-lang.h: Fix common/ includes.
15627 * ada-lang.c: Fix common/ includes.
15628 * aarch64-tdep.c: Fix common/ includes.
15629
2f5c153e
TT
156302019-01-25 Tom Tromey <tom@tromey.com>
15631
15632 * common/create-version.sh: Use common/version.h.
15633
adc6a863
PA
156342019-01-24 Pedro Alves <palves@redhat.com>
15635
15636 * infrun.c (signal_stop, signal_print, signal_program)
15637 (signal_catch, signal_pass): Now arrays instead of pointers.
15638 (update_signals_program_target, do_target_resume)
15639 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
15640 * linux-nat.c (linux_nat_target::pass_signals)
15641 (linux_nat_target::create_inferior, linux_nat_target::attach):
15642 Adjust.
15643 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
15644 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
15645 * procfs.c (procfs_target::pass_signals): Adjust.
15646 * record-full.c (record_full_target::resume): Adjust.
15647 * remote.c (remote_target::pass_signals)
15648 (remote_target::program_signals): Adjust.
15649 * target-debug.h (target_debug_print_signals): Now takes a
15650 gdb::array_view as parameter. Adjust.
15651 * target.h (target_ops) <pass_signals, program_signals>: Replace
15652 pointer and length parameters with gdb::array_view.
15653 (target_pass_signals, target_program_signals): Likewise.
15654 * target-delegates.c: Regenerate.
15655
3046d67a
PA
156562019-01-24 Pedro Alves <palves@redhat.com>
15657
15658 * common/forward-scope-exit.h
15659 (forward_scope_exit::forward_scope_exit): Pass arguments to
15660 m_bind_function directly, instead of creating a std::bind and
15661 copying that.
15662
353229bf
AH
156632019-01-24 Alan Hayward <alan.hayward@arm.com>
15664
15665 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
15666 for static members.
15667 (pass_in_v_vfp_candidate): Likewise.
15668
311dc83a
TT
156692019-01-23 Tom Tromey <tom@tromey.com>
15670 Pedro Alves <palves@redhat.com>
15671
15672 * regcache.c (class regcache_invalidator): Remove.
15673 (regcache::raw_write): Use make_scope_exit.
15674
296bd123
TT
156752019-01-23 Tom Tromey <tom@tromey.com>
15676
15677 * ui-out.h (class ui_out_emit_type): Update comment.
15678
979a0d13
TT
156792019-01-23 Tom Tromey <tom@tromey.com>
15680
15681 * infrun.c (fetch_inferior_event): Update comment.
15682
d238133d
TT
156832019-01-23 Tom Tromey <tom@tromey.com>
15684 Pedro Alves <palves@redhat.com>
15685
15686 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
15687 parameter.
15688 (fetch_inferior_event): Use SCOPE_EXIT.
15689
15690
9885e6bb
TT
156912019-01-23 Tom Tromey <tom@tromey.com>
15692 Pedro Alves <palves@redhat.com>
15693
15694 * infrun.c (disable_thread_events): Delete.
15695 (stop_all_threads): Use SCOPE_EXIT.
15696
286526c1
TT
156972019-01-23 Tom Tromey <tom@tromey.com>
15698 Pedro Alves <palves@redhat.com>
15699
15700 * symfile.c: Include forward-scope-exit.h.
15701 (clear_symtab_users_cleanup): Replace forward declaration with
15702 a FORWARD_SCOPE_EXIT.
15703 (syms_from_objfile_1): Use the forward_scope_exit and
15704 gdb::optional instead of cleanup_function.
15705 (reread_symbols): Use the forward_scope_exit instead of
15706 cleanup_function.
15707 (clear_symtab_users_cleanup): Remove function.
15708
1db93f14
TT
157092019-01-23 Tom Tromey <tom@tromey.com>
15710 Pedro Alves <palves@redhat.com>
15711
15712 * linux-nat.c: Include scope-exit.h.
15713 (cleanup_target_stop): Remove.
15714 (linux_nat_target::static_tracepoint_markers_by_strid): Use
15715 SCOPE_EXIT.
15716
2cc83d1e
TT
157172019-01-23 Tom Tromey <tom@tromey.com>
15718 Pedro Alves <palves@redhat.com>
15719
15720 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
15721 (call_function_by_hand_dummy): Use SCOPE_EXIT.
15722
694c6bf5
TT
157232019-01-23 Tom Tromey <tom@tromey.com>
15724 Andrew Burgess <andrew.burgess@embecosm.com>
15725 Pedro Alves <palves@redhat.com>
15726
15727 * infrun.c (fetch_inferior_event): Use scope_exit.
15728 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
15729 * top.c (execute_command): Use scope_exit.
15730 * breakpoint.c (bpstat_do_actions): Use scope_exit.
15731 * utils.c (do_bpstat_clear_actions_cleanup)
15732 (make_bpstat_clear_actions_cleanup): Remove.
15733
4c41382a
TT
157342019-01-23 Tom Tromey <tom@tromey.com>
15735 Pedro Alves <palves@redhat.com>
15736
15737 * infrun.c: Include "common/scope-exit.h"
15738 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
15739 (wait_for_inferior): Use SCOPE_EXIT.
15740 (fetch_inferior_event): Use scope_exit.
15741
89f8fb50
TT
157422019-01-23 Tom Tromey <tom@tromey.com>
15743 Pedro Alves <palves@redhat.com>
15744
15745 * breakpoint.c (create_breakpoint): Remove cleanup.
15746
5419bdae
TT
157472019-01-23 Tom Tromey <tom@tromey.com>
15748 Andrew Burgess <andrew.burgess@embecosm.com>
15749 Pedro Alves <palves@redhat.com>
15750
e587ef42
PA
157512019-01-23 Pedro Alves <palves@redhat.com>
15752
15753 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
15754
77f0e74c
PA
157552019-01-23 Pedro Alves <palves@redhat.com>
15756 Andrew Burgess <andrew.burgess@embecosm.com>
15757
15758 * gdbthread.h: Include "common/forward-scope-exit.h".
15759 (scoped_finish_thread_state): Redefine custom class in terms of
15760 forward_scope_exit.
15761
5b9b3e53
PA
157622019-01-23 Pedro Alves <palves@redhat.com>
15763 Andrew Burgess <andrew.burgess@embecosm.com>
15764
15765 * common/forward-scope-exit.h: New file.
15766
54b65c9b
PA
157672019-01-23 Pedro Alves <palves@redhat.com>
15768 Andrew Burgess <andrew.burgess@embecosm.com>
15769 Tom Tromey <tom@tromey.com>
15770
15771 * common/scope-exit.h: New file.
15772
cf08fb29
PA
157732019-01-23 Pedro Alves <palves@redhat.com>
15774
15775 * common/preprocessor.h (ESC): Rename to ...
15776 (ESC_PARENS): ... this.
15777 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
15778 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
15779
ae73e2e2
TT
157802019-01-23 Tom Tromey <tom@tromey.com>
15781
15782 * language.h (class scoped_switch_to_sym_language_if_auto):
15783 Initialize m_lang in both cases.
15784
6594e122
AH
157852019-01-23 Alan Hayward <alan.hayward@arm.com>
15786
15787 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
15788 with XCNEW.
15789
a7c9855d
TT
157902019-01-22 Tom Tromey <tom@tromey.com>
15791
15792 * corelow.c: Do not include sys/file.h.
15793
93cc1d53
TT
157942019-01-22 Tom Tromey <tom@tromey.com>
15795
15796 * tui/tui-wingeneral.h: Include gdb_curses.h.
15797
38561778
TT
157982019-01-22 Tom Tromey <tom@tromey.com>
15799
15800 * source-cache.h (class source_cache) <get_source_lines,
15801 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
15802
37b3ab5b
TT
158032019-01-22 Tom Tromey <tom@tromey.com>
15804
15805 * remote-fileio.h (struct remote_target): Declare.
15806
3fabc016
TT
158072019-01-22 Tom Tromey <tom@tromey.com>
15808
15809 * python/py-arch.c: Do not include py-ref.h.
15810 * python/py-bpevent.c: Do not include py-ref.h.
15811 * python/py-cmd.c: Do not include py-ref.h.
15812 * python/py-continueevent.c: Do not include py-ref.h.
15813 * python/py-event.h: Do not include py-ref.h.
15814 * python/py-evtregistry.c: Do not include py-ref.h.
15815 * python/py-finishbreakpoint.c: Do not include py-ref.h.
15816 * python/py-frame.c: Do not include py-ref.h.
15817 * python/py-framefilter.c: Do not include py-ref.h.
15818 * python/py-function.c: Do not include py-ref.h.
15819 * python/py-infevents.c: Do not include py-ref.h.
15820 * python/py-linetable.c: Do not include py-ref.h.
15821 * python/py-objfile.c: Do not include py-ref.h.
15822 * python/py-param.c: Do not include py-ref.h.
15823 * python/py-prettyprint.c: Do not include py-ref.h.
15824 * python/py-progspace.c: Do not include py-ref.h.
15825 * python/py-symbol.c: Do not include py-ref.h.
15826 * python/py-symtab.c: Do not include py-ref.h.
15827 * python/py-type.c: Do not include py-ref.h.
15828 * python/py-unwind.c: Do not include py-ref.h.
15829 * python/py-utils.c: Do not include py-ref.h.
15830 * python/py-value.c: Do not include py-ref.h.
15831 * python/py-varobj.c: Do not include py-ref.h.
15832 * python/py-xmethods.c: Do not include py-ref.h.
15833 * python/python.c: Do not include py-ref.h.
15834 * varobj.c: Do not include py-ref.h.
15835
6b4d7774
TT
158362019-01-22 Tom Tromey <tom@tromey.com>
15837
15838 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
15839 keyword for bcache.
15840
7af7e9b5
TT
158412019-01-22 Tom Tromey <tom@tromey.com>
15842
15843 * compile/compile-cplus-types.c: Remove a comment by #include.
15844
951d1049
TT
158452019-01-22 Tom Tromey <tom@tromey.com>
15846
15847 * compile/gcc-c-plugin.h: Include compile-internal.h.
15848
d65d5705
TT
158492019-01-22 Tom Tromey <tom@tromey.com>
15850
15851 * stabsread.c (EXTERN): Do not define.
15852 (symnum, next_symbol_text_func, processing_gcc_compilation)
15853 (within_function, global_sym_chain, global_stabs)
15854 (previous_stab_code, this_object_header_files)
15855 (n_this_object_header_files)
15856 (n_allocated_this_object_header_files): Define.
15857 * stabsread.h (EXTERN): Never define. Use "extern".
15858
b6fb1ee5
PW
158592019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15860
15861 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
15862 history_value.
15863
be6d4f74
TT
158642019-01-21 Tom Tromey <tom@tromey.com>
15865
15866 * ui-out.c: Fix includes.
15867 * tui/tui-source.c: Fix includes.
15868 * target.c: Fix includes.
15869 * remote.c: Fix includes.
15870 * regcache.c: Fix includes.
15871 * python/py-block.c: Fix includes.
15872 * printcmd.c: Fix includes.
15873 * or1k-tdep.c: Fix includes.
15874 * mi/mi-main.c: Fix includes.
15875 * m32r-tdep.c: Fix includes.
15876 * csky-tdep.c: Fix includes.
15877 * compile/compile-cplus-types.c: Fix includes.
15878 * cli/cli-interp.c: Fix includes.
15879
73021deb
AH
158802019-01-21 Alan Hayward <alan.hayward@arm.com>
15881
15882 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
15883 for padding.
15884
7932255d
TT
158852019-01-16 Tom Tromey <tom@tromey.com>
15886
15887 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
15888 earlier.
15889 (struct objfile) <msymbols_range>: Move from top level.
15890 <msymbols>: New method.
15891 (class objfile_msymbols): Remove.
15892 * symtab.c (default_collect_symbol_completion_matches_break_on):
15893 Update.
15894 * symmisc.c (dump_msymbols): Update.
15895 * stabsread.c (scan_file_globals): Update.
15896 * objc-lang.c (info_selectors_command, info_classes_command)
15897 (find_methods): Update.
15898 * minsyms.c (find_solib_trampoline_target): Update.
15899 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
15900 * coffread.c (coff_symfile_read): Update.
15901 * ada-lang.c (ada_lookup_simple_minsym)
15902 (ada_collect_symbol_completion_matches): Update.
15903
604b1bfb
TT
159042019-01-16 Tom Tromey <tom@tromey.com>
15905
15906 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
15907 type. Remove no-argument constructor.
15908 <iterator::operator++>: Simplify.
15909 <begin>: Update.
15910 <end>: Use minimal_symbol_count.
15911
f252c6d5
TT
159122019-01-16 Tom Tromey <tom@tromey.com>
15913
15914 * objfiles.h (struct objfile) <psymtabs>: New method.
15915 (class objfile_psymtabs): Remove.
15916 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
15917 typedef.
15918 <range>: New method.
15919 (require_partial_symbols): Change return type.
15920 * psymtab.c (require_partial_symbols)
15921 (psym_expand_symtabs_matching): Update.
15922 * mdebugread.c (parse_partial_symbols): Update.
15923 * dbxread.c (dbx_end_psymtab): Update.
15924
b669c953
TT
159252019-01-15 Tom Tromey <tom@tromey.com>
15926
15927 * symtab.c (lookup_objfile_from_block)
15928 (lookup_symbol_in_objfile_symtabs)
15929 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
15930 (find_line_symtab, info_sources_command)
15931 (default_collect_symbol_completion_matches_break_on)
15932 (make_source_files_completion_list): Update.
15933 * symmisc.c (print_objfile_statistics, dump_objfile)
15934 (maintenance_print_symbols, maintenance_info_symtabs)
15935 (maintenance_check_symtabs, maintenance_info_line_tables):
15936 Update.
15937 * source.c (select_source_symtab)
15938 (forget_cached_source_info_for_objfile): Update.
15939 * objfiles.h (class objfile_compunits): Remove.
15940 (struct objfile) <compunits_range>: New typedef.
15941 (compunits): New method.
15942 * objfiles.c (objfile_relocate1): Update.
15943 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
15944 * maint.c (count_symtabs_and_blocks): Update.
15945 * linespec.c (iterate_over_all_matching_symtabs): Update.
15946 * cp-support.c (add_symbol_overload_list_qualified): Update.
15947 * coffread.c (coff_symtab_read): Update.
15948 * ada-lang.c (add_nonlocal_symbols)
15949 (ada_collect_symbol_completion_matches)
15950 (ada_add_global_exceptions): Update.
15951
7e955d83
TT
159522019-01-15 Tom Tromey <tom@tromey.com>
15953
15954 * progspace.h (program_space) <objfiles_safe_range>: New
15955 typedef.
15956 <objfiles_safe>: New method.
15957 * objfiles.h (class all_objfiles_safe): Remove.
15958 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
15959 * jit.c (jit_inferior_exit_hook): Update.
15960
2030c079
TT
159612019-01-17 Tom Tromey <tom@tromey.com>
15962
15963 * progspace.h (program_space) <objfiles_range>: New typedef.
15964 <objfiles>: New method.
15965 <objfiles_head>: Rename from objfiles.
15966 (object_files): Update.
15967 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
15968 * guile/scm-pretty-print.c
15969 (ppscm_find_pretty_printer_from_objfiles): Update.
15970 * guile/scm-objfile.c (gdbscm_objfiles): Update.
15971 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
15972 Update.
15973 * python/py-progspace.c (pspy_get_objfiles): Update.
15974 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
15975 Update.
15976 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
15977 (objfpy_lookup_objfile_by_build_id): Update.
15978 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
15979 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
15980 Update.
15981 * symtab.c (iterate_over_symtabs, matching_obj_sections)
15982 (expand_symtab_containing_pc, lookup_objfile_from_block)
15983 (lookup_static_symbol, basic_lookup_transparent_type)
15984 (find_pc_sect_compunit_symtab, find_symbol_at_address)
15985 (find_line_symtab, info_sources_command)
15986 (default_collect_symbol_completion_matches_break_on)
15987 (make_source_files_completion_list, find_main_name): Update.
15988 * symmisc.c (print_symbol_bcache_statistics)
15989 (print_objfile_statistics, maintenance_print_symbols)
15990 (maintenance_print_msymbols, maintenance_print_objfiles)
15991 (maintenance_info_symtabs, maintenance_check_symtabs)
15992 (maintenance_expand_symtabs, maintenance_info_line_tables):
15993 Update.
15994 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
15995 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
15996 (map_overlay_command, unmap_overlay_command)
15997 (simple_overlay_update, expand_symtabs_matching)
15998 (map_symbol_filenames): Update.
15999 * symfile-debug.c (set_debug_symfile): Update.
16000 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
16001 Update.
16002 * source.c (select_source_symtab, forget_cached_source_info):
16003 Update.
16004 * solib.c (solib_read_symbols): Update.
16005 * solib-spu.c (append_ocl_sos): Update.
16006 * psymtab.c (maintenance_print_psymbols)
16007 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
16008 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
16009 * printcmd.c (info_symbol_command): Update.
16010 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
16011 Update.
16012 * objfiles.h (class all_objfiles): Remove.
16013 * objfiles.c (have_partial_symbols, have_full_symbols)
16014 (have_minimal_symbols, qsort_cmp, update_section_map)
16015 (shared_objfile_contains_address_p)
16016 (default_iterate_over_objfiles_in_search_order): Update.
16017 * objc-lang.c (info_selectors_command, info_classes_command)
16018 (find_methods): Update.
16019 * minsyms.c (find_solib_trampoline_target): Update.
16020 * maint.c (maintenance_info_sections)
16021 (maintenance_translate_address, count_symtabs_and_blocks):
16022 Update.
16023 * main.c (captured_main_1): Update.
16024 * linux-thread-db.c (try_thread_db_load_from_pdir)
16025 (has_libpthread): Update.
16026 * linespec.c (iterate_over_all_matching_symtabs)
16027 (search_minsyms_for_name): Update.
16028 * jit.c (jit_find_objf_with_entry_addr): Update.
16029 * hppa-tdep.c (find_unwind_entry)
16030 (hppa_lookup_stub_minimal_symbol): Update.
16031 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
16032 Update.
16033 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
16034 (elf_gnu_ifunc_resolve_by_got): Update.
16035 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
16036 * dwarf-index-write.c (save_gdb_index_command): Update.
16037 * cp-support.c (add_symbol_overload_list_qualified): Update.
16038 * breakpoint.c (create_overlay_event_breakpoint)
16039 (create_longjmp_master_breakpoint)
16040 (create_std_terminate_master_breakpoint)
16041 (create_exception_master_breakpoint): Update.
16042 * blockframe.c (find_pc_partial_function): Update.
16043 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
16044 (ada_collect_symbol_completion_matches)
16045 (ada_add_global_exceptions): Update.
16046
776489e0
TT
160472019-01-17 Tom Tromey <tom@tromey.com>
16048
16049 * solib-target.c (lm_info_target_p): Remove typedef. Don't
16050 declare VEC.
16051 (solib_target_parse_libraries): Change return type.
16052 (library_list_start_segment, library_list_start_section)
16053 (library_list_end_library, library_list_start_library); Update.
16054 (solib_target_free_library_list): Remove.
16055 (solib_target_parse_libraries): Remove cleanup. Change return
16056 type.
16057 (solib_target_current_sos): Update.
16058
6471e7d2
TT
160592019-01-17 Tom Tromey <tromey@bapiya>
16060
16061 * valprint.c: Replace "the the" with "the".
16062 * symtab.c: Replace "the the" with "the".
16063 * solib.c: Replace "the the" with "the".
16064 * solib-dsbt.c: Replace "the the" with "the".
16065 * linespec.c: Replace "the the" with "the".
16066 * dwarf2loc.h: Replace "the the" with "the".
16067 * amd64-windows-tdep.c: Replace "the the" with "the".
16068 * aarch64-tdep.c: Replace "the the" with "the".
16069
c24bdb02
KS
160702019-01-16 Keith Seitz <keiths@redhat.com>
16071
16072 PR gdb/23773
16073 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
16074 <builder>: Rename to ..
16075 <m_builder>: ... this and make private.
16076 (dwarf2_cu::get_builder): New method. Change all users of
16077 `builder' to use this method.
16078 (dwarf2_start_symtab): Move to ...
16079 (dwarf2_cu::start_symtab): ... here. Update all callers
16080 (setup_type_unit_groups): Move to ...
16081 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
16082 callers.
16083 (dwarf2_cu::reset_builder): New method.
16084 (process_full_compunit, process_full_type_unit): Use
16085 dwarf2_cu::reset_builder.
16086 (follow_die_offset): Record the ancestor CU if it is different
16087 from the followed DIE's CU.
16088 (follow_die_sig_1): Likewise.
16089
8d64371b
TT
160902019-01-15 Tom Tromey <tom@tromey.com>
16091
16092 * remote.c (class remote_state) <buf>: Now a char_vector.
16093 <buf_size>: Remove.
16094 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
16095 parameter.
16096 (remote_target::getpkt_or_notif_sane_1)
16097 (remote_target::getpkt_sane)
16098 (remote_target::getpkt_or_notif_sane): Likewise.
16099 (class remote_target) <putpkt>: New overload.
16100 (remote_target::read_frame): Change type of "buf_p". Remove
16101 sizeof_p parameter.
16102 (packet_ok): New overload.
16103 (packet_check_result): New overload.
16104 Update all uses.
16105
bb277751
TT
161062019-01-14 Tom Tromey <tom@tromey.com>
16107
16108 * remote-notif.c (handle_notification, remote_notif_ack)
16109 (remote_notif_parse): Make "buf" const.
16110 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
16111 const.
16112 (remote_notif_parse, remote_notif_ack, handle_notification):
16113 Likewise.
16114 * remote.c (remote_notif_stop_parse): Make "buf" const.
16115 (remote_target::remote_parse_stop_reply): Make "buf" const.
16116 (remote_notif_stop_ack): Make "buf" const.
16117
05be00a8
TT
161182019-01-14 Tom Tromey <tom@tromey.com>
16119
16120 * remote.c (remote_console_output): Make parameter const.
16121
491adeca
TT
161222019-01-14 Tom Tromey <tom@tromey.com>
16123
16124 * target-debug.h (target_debug_print_signals): Constify.
16125 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
16126 * procfs.c (procfs_target::pass_signals): Update.
16127 * linux-nat.c (linux_nat_target::pass_signals): Update.
16128 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
16129 * target-delegates.c: Rebuild.
16130 * remote.c (remote_target::program_signals): Update.
16131 (remote_target::pass_signals): Update.
16132 * target.c (target_pass_signals): Constify argument.
16133 (target_program_signals): Likewise.
16134 * target.h (struct target_ops) <pass_signals, program_signals>:
16135 Constify argument.
16136 (target_pass_signals, target_program_signals): Constify argument.
16137
bbd94648
TT
161382019-01-14 Tom Tromey <tom@tromey.com>
16139
16140 PR tui/28819:
16141 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
16142
6f072a10
PFC
161432019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
16144
16145 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
16146 field.
16147 * rs6000-tdep.c: Include reggroups.h.
16148 (IS_V_ALIAS_PSEUDOREG): Define.
16149 (rs6000_register_name): Return names for the "vX" aliases.
16150 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
16151 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
16152 aliases. Call default_register_reggroup_p for all other
16153 pseudo-registers.
16154 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
16155 New functions.
16156 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
16157 Handle "vX" aliases.
16158 (v_alias_pseudo_register_collect): New function.
16159 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
16160 (rs6000_gdbarch_init): Initialize "vX" aliases as
16161 pseudo-registers. Restore registration of
16162 rs6000_pseudo_register_reggroup_p with
16163 set_tdesc_pseudo_register_reggroup_p.
16164
1a782351
MF
161652019-01-13 Max Filippov <jcmvbkbc@gmail.com>
16166
16167 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
16168 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
16169 set_gdbarch_num_pseudo_regs.
16170
d73cff18
PW
161712019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16172
16173 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
16174 Remove arg prefixname, add do_set and do_show.
16175 Add member functions set_list and show_list.
16176 * cli/cli-style.c (class cli_style_option): Update accordingly.
16177 (style_set_list): Move to file scope.
16178 (style_show_list): Likewise.
16179 (set_style): Call help_list.
16180 (show_style): Call cmd_show_list.
16181 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
16182 Update to use the new macro.
16183
60a90376
JB
161842019-10-12 Joel Brobecker <brobecker@adacore.com>
16185
16186 * ada-lang.c (_initialize_ada_language): Expand the help text
16187 for the "catch exception" command.
16188
9d7c67bf
PW
161892019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16190
16191 * symtab.c (matching_obj_sections): Initialize obj,
16192 declare it closer to its usage.
16193
7cf47dc4
TT
161942019-01-10 Tom Tromey <tom@tromey.com>
16195
16196 * thread-iter.h (inf_threads_iterator): Use next_iterator.
16197 (basic_inf_threads_range): Remove.
16198 (inf_threads_range, inf_non_exited_threads_range)
16199 (safe_inf_threads_range): Use next_adapter.
16200
d3cb6808
KS
162012019-01-10 Keith Seitz <keiths@redhat.com>
16202
16203 PR gdb/23712
16204 PR symtab/23010
16205 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
16206 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
16207
63a20375
KS
162082019-01-10 Keith Seitz <keiths@redhat.com>
16209
16210 PR gdb/23712
16211 PR symtab/23010
16212 * dictionary.c (pending_to_vector): Remove.
16213 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
16214 Remove _1 suffix, replacing functions of the same name. Update
16215 all callers.
16216 (dict_create_hashed, dict_create_hashed_expandable)
16217 (dict_create_linear, dict_create_linear_expandable, dict_free)
16218 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
16219 Make functions static.
16220
b026f593
KS
162212019-01-10 Keith Seitz <keiths@redhat.com>
16222
16223 PR gdb/23712
16224 PR symtab/23010
16225 * dictionary.h (struct dictionary): Replace declaration with
16226 multidictionary.
16227 (dict_create_hashed, dict_create_hashed_expandable)
16228 (dict_create_linear, dict_create_linear_expandable)
16229 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
16230 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
16231 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
16232 taking multidictionary argument.
16233 [ALL_DICT_SYMBOLS]: Update for multidictionary.
16234 * block.h (struct block) <dict>: Change to multidictionary
16235 and rename `multidict'.
16236 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
16237 symmisc.c: Update all dictionary references to multidictionary.
16238
c7748ee9
KS
162392019-01-10 Keith Seitz <keiths@redhat.com>
16240
16241 PR gdb/23712
16242 PR symtab/23010
16243 * dictionary.c: Include unordered_map.
16244 (pending_to_vector): New function.
16245 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
16246 Rewrite the non-"_1" functions to take vector instead
16247 of linked list.
16248 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
16249 "new" _1 versions of the same name.
16250 (multidictionary): Define.
16251 (std::hash<enum language): New definition.
16252 (collate_pending_symbols_by_language, mdict_create_hashed)
16253 (mdict_create_hashed_expandable, mdict_create_linear)
16254 (mdict_create_linear_expandable, mdict_free)
16255 (find_language_dictionary, create_new_language_dictionary)
16256 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
16257 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
16258 (mdict_size, mdict_empty): New functions.
16259 * dictionary.h (mdict_iterator): Define.
16260
67aa1f3c
PA
162612019-01-10 Pedro Alves <palves@redhat.com>
16262
16263 * breakpoint.c (read_uploaded_action)
16264 (create_tracepoint_from_upload): Adjust to use
16265 gdb::unique_xmalloc_ptr.
16266 * ctf.c (ctf_write_uploaded_tp):
16267 (SET_ARRAY_FIELD): Use emplace_back.
16268 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
16269 * tracefile-tfile.c (tfile_write_uploaded_tp):
16270 * tracepoint.c (parse_tracepoint_definition): Adjust to use
16271 gdb::unique_xmalloc_ptr.
16272 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
16273 at_string, cond_string, cmd_strings>: Replace char pointers
16274 with gdb::unique_xmalloc_ptr.
16275
2f667667
PA
162762019-01-10 Pedro Alves <palves@redhat.com>
16277
16278 * solib-target.c (library_list_start_library): Don't xstrdup name.
16279
36cb7237
PA
162802019-01-10 Pedro Alves <palves@redhat.com>
16281
16282 * mdebugread.c (parse_partial_symbols): Use
16283 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
16284
da584958
AB
162852019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
16286
16287 * linux-fork.c (scoped_switch_fork_info)
16288 <~scoped_switch_fork_info>: Fix incorrect variable name.
16289
1ef8573c
AB
162902019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
16291
16292 * linux-fork.c (scoped_switch_fork_info)
16293 <scoped_switch_fork_info>: Make explicit.
16294 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
16295
8d7bcccb
TT
162962019-01-10 Tom Tromey <tom@tromey.com>
16297
16298 * objfiles.h (objfile::reset_psymtabs): Update.
16299 * objfiles.c (objfile::objfile): Update.
16300 * psymtab.h (psymtab_storage::obstack): Update.
16301 (psymtab_storage::m_obstack): Use gdb::optional.
16302 (class psymtab_storage): Update comment. Remove objfile
16303 parameter.
16304 * psymtab.c (psymtab_storage::psymtab_storage): Update.
16305
b596a3c7
TT
163062019-01-10 Tom Tromey <tom@tromey.com>
16307
16308 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
16309 <free_psymtabs>: Now private.
16310 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
16311 (allocate_psymtab): Use new method.
16312
a9342b62
TT
163132019-01-10 Tom Tromey <tom@tromey.com>
16314
16315 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
16316 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
16317 * mdebugread.c (parse_partial_symbols): Use
16318 allocate_dependencies.
16319 * dwarf2read.c (dwarf2_create_include_psymtab): Use
16320 allocate_dependencies.
16321 (process_psymtab_comp_unit_reader)
16322 (build_type_psymtab_dependencies): Likewise.
16323 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
16324
5af70966
TT
163252019-01-10 Tom Tromey <tom@tromey.com>
16326
16327 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
16328 PSYMBOL_SET_LANGUAGE.
16329 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
16330
5923a04c
TT
163312019-01-10 Tom Tromey <tom@tromey.com>
16332
16333 * psymtab.h (psymtab_storage::obstack): New method.
16334 <m_obstack>: Rename from obstack; now private.
16335 * psymtab.c (psymtab_storage): Update.
16336 * dwarf2read.c (create_addrmap_from_index)
16337 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
16338 Update.
16339
6d6a12bf
TT
163402019-01-10 Tom Tromey <tom@tromey.com>
16341
16342 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
16343 * objfiles.h (objfile::reset_psymtabs): New method.
16344
d320c2b5
TT
163452019-01-10 Tom Tromey <tom@tromey.com>
16346
16347 * symmisc.c (print_symbol_bcache_statistics): Update.
16348 (print_objfile_statistics): Update.
16349 * symfile.c (reread_symbols): Update.
16350 * psymtab.h (class psymtab_storage): New.
16351 * psymtab.c (psymtab_storage): New constructor.
16352 (~psymtab_storage): New destructor.
16353 (require_partial_symbols): Update.
16354 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
16355 (find_pc_sect_psymtab, find_pc_sect_psymbol)
16356 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
16357 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
16358 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
16359 (start_psymtab_common, end_psymtab_common)
16360 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
16361 (allocate_psymtab): Update.
16362 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
16363 Update.
16364 (dump_psymtab_addrmap, maintenance_print_psymbols)
16365 (maintenance_check_psymtabs): Update.
16366 (class objfile_psymtabs): Move to objfiles.h.
16367 * psympriv.h (discard_psymtab): Now inline.
16368 (psymtab_discarder::psymtab_discarder): Update.
16369 (psymtab_discarder::~psymtab_discarder): Update.
16370 (ALL_OBJFILE_PSYMTABS): Rewrite.
16371 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
16372 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
16373 Remove fields.
16374 <partial_symtabs>: New field.
16375 (class objfile_psymtabs): Move from psymtab.h. Update.
16376 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
16377 psymbol_cache.
16378 (objfile::~objfile): Don't destroy psymbol_cache.
16379 * mdebugread.c (parse_partial_symbols): Update.
16380 * dwarf2read.c (create_addrmap_from_index)
16381 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
16382 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
16383 (add_partial_subprogram, dwarf2_ranges_read): Update.
16384 * dwarf-index-write.c (write_address_map)
16385 (write_one_signatured_type, recursively_write_psymbols)
16386 (class debug_names, class debug_names, write_psymtabs_to_index):
16387 Update.
16388
1d94a5a3
TT
163892019-01-10 Tom Tromey <tom@tromey.com>
16390
16391 * symtab.h (SYMBOL_SET_NAMES): Update.
16392 (symbol_set_names): Update.
16393 (MSYMBOL_SET_NAMES): Update.
16394 * symtab.c (symbol_set_names): Change argument to be an
16395 objfile_per_bfd_storage.
16396 * psymtab.c (add_psymbol_to_bcache): Update.
16397 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
16398
0f14768a
TT
163992019-01-10 Tom Tromey <tom@tromey.com>
16400
16401 * symtab.c (create_demangled_names_hash): Change argument to be an
16402 objfile_per_bfd_storage.
16403 (symbol_set_names): Update.
16404
6eee24ce
TT
164052019-01-10 Tom Tromey <tom@tromey.com>
16406
16407 * xcoffread.c (xcoff_initial_scan): Unconditionally call
16408 init_psymbol_list.
16409 * psymtab.c (init_psymbol_list): Do nothing if already called.
16410 * psympriv.h (init_psymbol_list): Add comment.
16411 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
16412 init_psymbol_list.
16413 * dbxread.c (dbx_symfile_read): Unconditionally call
16414 init_psymbol_list.
16415
75aedd27
TT
164162019-01-10 Tom Tromey <tom@tromey.com>
16417
16418 * xcoffread.c (scan_xcoff_symtab): Update.
16419 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
16420 "where".
16421 * mdebugread.c (parse_partial_symbols)
16422 (handle_psymbol_enumerators): Update.
16423 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
16424 * dbxread.c (read_dbx_symtab): Update.
16425 * psympriv.h (psymbol_placement): New enum.
16426 (add_psymbol_to_list): Update.
16427
939652a5
TT
164282019-01-10 Tom Tromey <tom@tromey.com>
16429
16430 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
16431 static_psymbols parameters.
16432 (scan_xcoff_symtab): Update.
16433 * psymtab.c (start_psymtab_common): Remove global_psymbols and
16434 static_psymbols parameters.
16435 * psympriv.h (start_psymtab_common): Update.
16436 * mdebugread.c (parse_partial_symbols): Update.
16437 * dwarf2read.c (create_partial_symtab): Update.
16438 * dbxread.c (read_dbx_symtab): Update.
16439 (start_psymtab): Remove global_psymbols and static_psymbols
16440 parameters.
16441
baa62830
TT
164422019-01-10 Tom Tromey <tom@tromey.com>
16443
16444 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
16445 * psymtab.c (allocate_psymtab): Add comment.
16446 * psympriv.h (allocate_psymtab): Add comment.
16447 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
16448 initializations.
16449 * dbxread.c (dbx_end_psymtab): Remove some initializations.
16450
0e8f53ba
TT
164512019-01-10 Tom Tromey <tom@tromey.com>
16452
16453 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
16454 Don't declare.
16455 * mipsread.c: Include mdebugread.h.
16456 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
16457 Declare.
16458 * elfread.c: Include mdebugread.h.
16459
b22a7c6a
TT
164602019-01-09 Tom Tromey <tom@tromey.com>
16461
16462 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
16463 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
16464 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
16465 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
16466 (psym_lookup_symbol, psym_find_last_source_symtab)
16467 (psym_forget_cached_source_info, psym_print_stats)
16468 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
16469 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
16470 (psym_map_matching_symbols, psym_expand_symtabs_matching)
16471 (psym_find_compunit_symtab_by_address)
16472 (maintenance_print_psymbols, maintenance_info_psymtabs)
16473 (maintenance_check_psymtabs): Use ranged for.
16474 * psymtab.h (class objfile_psymtabs): New.
16475 (require_partial_symbols): Return objfile_psymtabs.
16476 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
16477
3b9d3ac2
TT
164782019-01-09 Tom Tromey <tom@tromey.com>
16479
16480 * symfile.c (overlay_invalidate_all, find_pc_overlay)
16481 (find_pc_mapped_section, list_overlays_command)
16482 (map_overlay_command, unmap_overlay_command)
16483 (simple_overlay_update): Use all_objfiles.
16484 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
16485 * printcmd.c (info_symbol_command): Use all_objfiles.
16486 * objfiles.h (ALL_OBJSECTIONS): Remove.
16487 * maint.c (maintenance_translate_address): Use all_objfiles.
16488 * gcore.c (gcore_create_callback): Use all_objfiles.
16489 (objfile_find_memory_regions): Likewise.
16490
8b31193a
TT
164912019-01-09 Tom Tromey <tom@tromey.com>
16492
16493 * symtab.c (find_line_symtab, info_sources_command)
16494 (make_source_files_completion_list): Use objfile_compunits.
16495 * source.c (select_source_symtab): Use objfile_compunits.
16496 * objfiles.h (struct objfile): Update comment.
16497 (ALL_OBJFILES): Remove.
16498 (ALL_FILETABS): Remove.
16499 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
16500 objfile_compunits.
16501
d5da8b3c
TT
165022019-01-09 Tom Tromey <tom@tromey.com>
16503
16504 * symmisc.c (print_objfile_statistics, dump_objfile)
16505 (maintenance_print_symbols): Use compunit_filetabs.
16506 * source.c (forget_cached_source_info_for_objfile): Use
16507 compunit_filetabs.
16508 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
16509 (ALL_FILETABS): Use compunit_filetabs.
16510 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
16511 * coffread.c (coff_symtab_read): Use compunit_filetabs.
16512
5accd1a0
TT
165132019-01-09 Tom Tromey <tom@tromey.com>
16514
16515 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
16516 (compunit_filetabs): New.
16517 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
16518 compunit_filetabs.
16519 (info_sources_command, make_source_files_completion_list): Remove
16520 declaration.
16521 * symmisc.c (print_objfile_statistics, dump_objfile)
16522 (maintenance_print_symbols): Remove declaration.
16523 (maintenance_info_symtabs): Use compunit_filetabs.
16524 (maintenance_info_line_tables): Likewise.
16525 * source.c (select_source_symtab): Change local variable name.
16526 (forget_cached_source_info_for_objfile): Remove declaration.
16527 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
16528 * objfiles.c (objfile_relocate1): Remove declaration.
16529 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
16530 declaration.
16531 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
16532 * coffread.c (coff_symtab_read): Remove declaration.
16533 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
16534 compunit_filetabs.
16535
d8aeb77f
TT
165362019-01-09 Tom Tromey <tom@tromey.com>
16537
16538 * symtab.c (lookup_objfile_from_block)
16539 (find_pc_sect_compunit_symtab, search_symbols)
16540 (default_collect_symbol_completion_matches_break_on): Use
16541 objfile_compunits.
16542 * objfiles.h (ALL_COMPUNITS): Remove.
16543 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
16544 * cp-support.c (add_symbol_overload_list_qualified): Use
16545 objfile_compunits.
16546 * ada-lang.c (ada_collect_symbol_completion_matches)
16547 (ada_add_global_exceptions): Use objfile_compunits.
16548
592553c4
TT
165492019-01-09 Tom Tromey <tom@tromey.com>
16550
16551 * source.c (select_source_symtab)
16552 (forget_cached_source_info_for_objfile): Remove declaration.
16553 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
16554 declaration.
16555 * maint.c (count_symtabs_and_blocks): Remove declaration.
16556 * cp-support.c (add_symbol_overload_list_qualified): Remove
16557 declaration.
16558 * coffread.c (coff_symtab_read): Remove declaration.
16559 * symtab.c (lookup_symbol_in_objfile_symtabs)
16560 (basic_lookup_transparent_type_1): Use objfile_compunits.
16561 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
16562 (info_sources_command, search_symbols)
16563 (default_collect_symbol_completion_matches_break_on)
16564 (make_source_files_completion_list): Remove declaration.
16565 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
16566 (ada_collect_symbol_completion_matches)
16567 (ada_add_global_exceptions): Remove declaration.
16568 * linespec.c (iterate_over_all_matching_symtabs): Use
16569 objfile_compunits.
16570 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
16571 (class objfile_compunits): New.
16572 (ALL_COMPUNITS): Use objfile_compunits.
16573 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
16574 (maintenance_check_symtabs, maintenance_info_line_tables): Use
16575 objfile_compunits.
16576 * objfiles.c (objfile_relocate1): Use objfile_compunits.
16577
5325b9bf
TT
165782019-01-09 Tom Tromey <tom@tromey.com>
16579
16580 * symtab.c (search_symbols)
16581 (default_collect_symbol_completion_matches_break_on): Use
16582 objfile_msymbols.
16583 * ada-lang.c (ada_lookup_simple_minsym)
16584 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
16585 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
16586 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
16587 objfile_msymbols.
16588 * coffread.c (coff_symfile_read): Use objfile_msymbols.
16589 * symmisc.c (dump_msymbols): Use objfile_msymbols.
16590 * objc-lang.c (find_methods): Use objfile_msymbols.
16591 (info_selectors_command, info_classes_command): Likewise.
16592 * stabsread.c (scan_file_globals): Use objfile_msymbols.
16593 * objfiles.h (class objfile_msymbols): New.
16594 (ALL_OBJFILE_MSYMBOLS): Remove.
16595 (ALL_MSYMBOLS): Remove.
16596
cac85af2
TT
165972019-01-09 Tom Tromey <tom@tromey.com>
16598
16599 * common/next-iterator.h (next_adapter): Add Iterator template
16600 parameter.
16601 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
16602 (class all_objfiles_safe): New.
16603 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
16604 * objfiles.c (put_objfile_before): Update comment.
16605 (add_separate_debug_objfile): Likewise.
16606 (free_all_objfiles): Use all_objfiles_safe.
16607 (objfile_purge_solibs): Likewise.
16608
aed57c53
TT
166092019-01-09 Tom Tromey <tom@tromey.com>
16610
16611 * symtab.c (iterate_over_symtabs, matching_obj_sections)
16612 (expand_symtab_containing_pc, lookup_static_symbol)
16613 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
16614 (find_symbol_at_address, find_line_symtab, find_main_name): Use
16615 all_objfiles.
16616 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
16617 * breakpoint.c (create_overlay_event_breakpoint)
16618 (create_longjmp_master_breakpoint)
16619 (create_std_terminate_master_breakpoint)
16620 (create_exception_master_breakpoint): Use all_objfiles.
16621 * linux-thread-db.c (try_thread_db_load_from_pdir)
16622 (has_libpthread): Use all_objfiles.
16623 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
16624 * linespec.c (iterate_over_all_matching_symtabs)
16625 (search_minsyms_for_name): Use all_objfiles.
16626 * maint.c (maintenance_info_sections): Use all_objfiles.
16627 * main.c (captured_main_1): Use all_objfiles.
16628 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
16629 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
16630 * guile/scm-pretty-print.c
16631 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
16632 * solib-spu.c (append_ocl_sos): Use all_objfiles.
16633 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
16634 (maintenance_print_msymbols): Use all_objfiles.
16635 * source.c (select_source_symtab): Use all_objfiles.
16636 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
16637 * symfile.c (remove_symbol_file_command)
16638 (expand_symtabs_matching, map_symbol_filenames): Use
16639 all_objfiles.
16640 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
16641 all_objfiles.
16642 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
16643 * objc-lang.c (find_methods): Use all_objfiles.
16644 * objfiles.c (have_partial_symbols, have_full_symbols)
16645 (have_minimal_symbols, qsort_cmp)
16646 (default_iterate_over_objfiles_in_search_order): Use
16647 all_objfiles.
16648 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
16649 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
16650 (maintenance_check_psymtabs): Use all_objfiles.
16651 (ALL_PSYMTABS): Remove.
16652 * compile/compile-object-run.c (do_module_cleanup): Use
16653 all_objfiles.
16654 * blockframe.c (find_pc_partial_function): Use all_objfiles.
16655 * cp-support.c (add_symbol_overload_list_qualified): Use
16656 all_objfiles.
16657 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
16658 Use all_objfiles.
16659 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
16660 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
16661 all_objfiles.
16662 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
16663 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
16664 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
16665 Uses all_objfiles.
16666 * solib.c (solib_read_symbols): Use all_objfiles
16667
99d89cde
TT
166682019-01-09 Tom Tromey <tom@tromey.com>
16669
16670 * probe.c (parse_probes_in_pspace): Use all_objfiles.
16671 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
16672 all_objfiles.
16673 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
16674 * symmisc.c (print_symbol_bcache_statistics)
16675 (print_objfile_statistics, maintenance_print_objfiles)
16676 (maintenance_info_symtabs, maintenance_check_symtabs)
16677 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
16678 all_objfiles.
16679 * source.c (forget_cached_source_info): Use all_objfiles.
16680 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
16681 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
16682 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
16683 * objfiles.c (update_section_map): Use all_objfiles.
16684 (shared_objfile_contains_address_p): Likewise.
16685 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
16686 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
16687
21708325
TT
166882019-01-09 Tom Tromey <tom@tromey.com>
16689
16690 * common/next-iterator.h: New file.
16691 * objfiles.h (class all_objfiles): New.
16692 (struct objfile_iterator): New.
16693
669e09f6
PW
166942019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16695
16696 * NEWS: Move the description of the changed "frame", "select-frame",
16697 and "info frame" commands to the Changed commands section.
16698
041be526
SM
166992019-01-09 Simon Marchi <simon.marchi@ericsson.com>
16700
16701 * gdbtypes.c (check_stub_method_group): Remove handling of old
16702 mangling schemes.
16703 * linespec.c (find_methods): Likewise.
16704 * stabsread.c (read_member_functions): Likewise.
16705 * valops.c (search_struct_method): Likewise.
16706 (value_struct_elt_for_reference): Likewise.
16707 * NEWS: Mention this change.
16708
0e2a2133
AB
167092019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
16710
16711 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
16712 print_source_lines.
16713 * source.c (print_source_lines_base): Update line number check.
16714 (print_source_lines): New function.
16715 (source_lines_range::source_lines_range): New function.
16716 * source.h (class source_lines_range): New class.
16717 (print_source_lines): New declaration.
16718
1055a3b4
PW
167192019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16720
16721 * linespec.c (linespec_state_destructor): Free self->canonical_names.
16722
cfeadda5
TT
167232019-01-08 Tom Tromey <tom@tromey.com>
16724 Simon Marchi <simon.marchi@ericsson.com>
16725
16726 PR gdb/24060
16727 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
16728 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
16729 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
16730 * f-exp.y (DOLLAR_VARIABLE): Likewise.
16731 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
16732 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
16733
583068ca
AB
167342019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
16735
16736 * source.c (select_source_symtab): Move header comment to
16737 declaration in source.h.
16738 (forget_cached_source_info_for_objfile): Likewise.
16739 (forget_cached_source_info): Likewise.
16740 (identify_source_line): Likewise.
16741 * source.h (identify_source_line): Move declaration from symtab.h
16742 and add comment from source.c
16743 (print_source_lines): Likewise.
16744 (forget_cached_source_info_for_objfile): Likewise.
16745 (forget_cached_source_info): Likewise.
16746 (select_source_symtab): Likewise.
16747 (enum print_source_lines_flag): Move definition from symtab.h.
16748 * symtab.h (identify_source_line): Move declaration to source.h.
16749 (print_source_lines): Likewise.
16750 (forget_cached_source_info_for_objfile): Likewise.
16751 (forget_cached_source_info): Likewise.
16752 (select_source_symtab): Likewise.
16753 (enum print_source_lines_flag): Move definition to source.h.
16754 * tui/tui-hooks.c: Add 'source.h' include.
16755
ec98a4ad
AB
167562019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
16757
16758 * source.c (print_source_lines_base): Handle requests to print
16759 reverse line number sequences, and guard against empty lines
16760 string.
16761
62ea19c1
AB
167622019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
16763
16764 * source.c (print_source_lines_base): Fix skip of '\r' if next
16765 character is '\n'.
16766
9d30e1fd
TT
167672019-01-06 Tom Tromey <tom@tromey.com>
16768
16769 * c-exp.y (struct c_parse_state) <macro_original_text,
16770 expansion_obstack>: New member.
16771 (macro_original_text, expansion_obstack): Remove globals.
16772 (scan_macro_expansion, scanning_macro_expansion)
16773 (finished_macro_expansion): Update.
16774 (scan_macro_cleanup): Remove.
16775 (yylex, c_parse): Update.
16776
c65bac38
TT
167772019-01-06 Tom Tromey <tom@tromey.com>
16778
16779 * c-exp.y (struct c_parse_state) <strings>: New member.
16780 (operator_stoken): Update.
16781
02e12e38
TT
167822019-01-06 Tom Tromey <tom@tromey.com>
16783
16784 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
16785 (union type_stack_elt) <typelist_val>: Now a pointer to
16786 std::vector.
16787 (type_stack_cleanup): Don't declare.
16788 (push_typelist): Update.
16789 * parse.c (pop_typelist): Return a std::vector.
16790 (push_typelist): Take a std::vector.
16791 (follow_types): Update. Do not free args.
16792 (type_stack_cleanup): Remove.
16793 * c-exp.y (struct c_parse_state): New.
16794 (cpstate): New global.
16795 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
16796 (nonempty_typelist): Update.
16797 (func_mod): Create a new vector.
16798 (c_parse): Create a c_parse_state.
16799 (check_parameter_typelist): Do not delete params.
16800 (function_method): Update. Do not delete type_list.
16801
f097f5ad
TT
168022019-01-06 Tom Tromey <tom@tromey.com>
16803
16804 PR gdb/28155:
16805 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
16806 check_typedef.
16807 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
16808 (print_return_value): Likewise.
16809
d2adf9f1
TT
168102019-01-05 Tom Tromey <tom@tromey.com>
16811
16812 * contrib/cleanup_check.py: Remove.
16813 * contrib/gcc-with-excheck: Remove.
16814 * contrib/exsummary.py: Remove.
16815 * contrib/excheck.py: Remove.
16816
2eab46b1
JB
168172019-01-05 Joel Brobecker <brobecker@adacore.com>
16818
16819 * thread.c (delete_thread_1): Add gdb_assert that THR is not
16820 NULL. Initialize tpprev to NULL instead of assigning it
16821 to NULL on the next statement.
16822 * windows-nat.c (windows_delete_thread): Remove check for
16823 main_thread_id before printing thread exit notifications.
16824 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
16825 Remove thread ID check against main_thread_id.
16826 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
16827 windows_delete_thread.
16828 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
16829
48c5e7e2
TT
168302019-01-04 Tom Tromey <tom@tromey.com>
16831
16832 * compile/compile.c (_initialize_compile): Use upper case for
16833 metasyntactic variables.
16834 * symmisc.c (_initialize_symmisc): Use upper case for
16835 metasyntactic variables.
16836 * psymtab.c (_initialize_psymtab): Use upper case for
16837 metasyntactic variables.
16838 * demangle.c (demangle_command): Use upper case for metasyntactic
16839 variables.
16840 (_initialize_demangler): Likewise.
16841 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
16842 variables.
16843
986041cd
TT
168442019-01-03 Tom Tromey <tom@tromey.com>
16845
16846 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
16847
7c711119
TT
168482019-01-03 Tom Tromey <tom@tromey.com>
16849
16850 * python/py-symtab.c (salpy_str): Update.
16851 (struct salpy_sal_object) <symtab>: Now a PyObject.
16852 (salpy_dealloc): Update.
16853 (del_objfile_sal): Use gdbpy_ref.
16854
1b20edf0
TT
168552019-01-03 Tom Tromey <tom@tromey.com>
16856
16857 * python/py-type.c (convert_field): Use new_reference. Return
16858 gdbpy_ref.
16859 (make_fielditem): Return gdbpy_ref.
16860 (typy_fields): Update.
16861 (typy_getitem): Update.
16862 (field_name): Return gdbpy_ref. Use new_reference.
16863 (typy_iterator_iternext): Update.
16864
ea41325b
TT
168652019-01-03 Tom Tromey <tom@tromey.com>
16866
16867 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
16868
2a3c71d6
TT
168692019-01-03 Tom Tromey <tom@tromey.com>
16870
16871 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
16872 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
16873 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
16874 (pspy_set_frame_filters, pspy_set_frame_unwinders)
16875 (pspy_set_type_printers): Likewise.
16876 * python/py-function.c (fnpy_init): Use gdbpy_ref.
16877 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
16878 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
16879 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
16880 (objfpy_set_type_printers): Likewise.
16881
5c329e6a
TT
168822019-01-03 Tom Tromey <tom@tromey.com>
16883
16884 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
16885 (gdbpy_print_stack): Use gdbpy_err_fetch.
16886 * python/python-internal.h (class gdbpy_err_fetch): New class.
16887 (class gdbpy_enter) <m_error_type, m_error_value,
16888 m_error_traceback>: Remove.
16889 <m_error>: New member.
16890 (gdbpy_exception_to_string): Don't declare.
16891 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
16892 * python/py-value.c (convert_value_from_python): Use
16893 gdbpy_err_fetch.
16894 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
16895 gdbpy_exception_to_string.
16896 (gdbpy_handle_exception): Use gdbpy_err_fetch.
16897 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
16898 gdbpy_err_fetch.
16899
169bb27b
AB
169002019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16901
16902 * linux-nat.c (delete_lwp_cleanup): Delete.
16903 (struct lwp_deleter): New struct.
16904 (lwp_info_up): New typedef.
16905 (linux_nat_target::follow_fork): Delete cleanup, and make use of
16906 lwp_info_up.
16907
a07c8880
AB
169082019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16909
16910 * linux-fork.c (class scoped_switch_fork_info): New class.
16911 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
16912
26089c49
AB
169132019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16914
16915 * valops.c (find_overload_match): Remove use of null_cleanup, and
16916 calls to do_cleanups.
16917
06d3e5b0
AB
169182019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16919
16920 * compile/compile-cplus-types.c
16921 (compile_cplus_instance::decl_name): Handle changes to
16922 cp_func_name.
16923 * cp-support.c (cp_func_name): Update header comment, update
16924 return type.
16925 * cp-support.h (cp_func_name): Update return type in declaration.
16926 * valops.c (find_overload_match): Move temp_func local to top
16927 level of function and change its type. Use temp_func to hold and
16928 delete temporary string obtained from cp_func_name.
16929
66644cd3
AB
169302019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16931
16932 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
16933 gdb::char_vector, remove cleanup, and update uses of `msg`.
16934
592d8c0a
JW
169352019-01-03 Jim Wilson <jimw@sifive.com>
16936
16937 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
16938
c55d06ec
TT
169392019-01-02 Tom Tromey <tom@tromey.com>
16940
16941 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
16942 (tdesc_parse_xml): Remove cleanups.
16943 * target-descriptions.h (make_cleanup_free_target_description):
16944 Don't declare.
16945 (target_desc_deleter): New struct.
16946 (target_desc_up): New typedef.
16947 * target-descriptions.c (target_desc_deleter::operator()): Rename
16948 from free_target_description.
16949 (make_cleanup_free_target_description): Remove.
16950
3a6ae42d
TT
169512019-01-02 Tom Tromey <tom@tromey.com>
16952
16953 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
16954 constructor, destructor.
16955 (linespec_parser): Remove typedef.
16956 (~linespec_parser): Rename from linespec_parser_delete.
16957 (linespec_lex_to_end, linespec_complete_label)
16958 (linespec_complete): Update.
16959 (decode_line_full): Remove cleanups.
16960 (decode_line_1): Update.
16961
61fd3e73
TT
169622019-01-02 Tom Tromey <tom@tromey.com>
16963
16964 * python/python-internal.h (inferior_to_inferior_object): Change
16965 return type.
16966 * python/py-exitedevent.c (create_exited_event_object): Update.
16967 * python/py-inferior.c (inferior_to_inferior_object): Return
16968 gdbpy_ref.
16969 (python_new_inferior, python_inferior_deleted)
16970 (thread_to_thread_object, delete_thread_object)
16971 (build_inferior_list, gdbpy_selected_inferior): Update.
16972 * python/py-infthread.c (create_thread_object): Update. Also fail
16973 if inferior_to_inferior_object fails.
16974
d20172fc
SM
169752019-01-02 Simon Marchi <simon.marchi@ericsson.com>
16976
16977 * inferior.h (class inferior) <displaced_step_state>: New field.
16978 * infrun.h (struct displaced_step_state): Move here from
16979 infrun.c. Initialize fields, add constructor.
16980 <inf>: Remove field.
16981 <reset>: New method.
16982 * infrun.c (struct displaced_step_inferior_state): Move to
16983 infrun.h.
16984 (displaced_step_inferior_states): Remove.
16985 (get_displaced_stepping_state): Adust.
16986 (displaced_step_in_progress_any_inferior): Adjust.
16987 (displaced_step_in_progress_thread): Adjust.
16988 (displaced_step_in_progress): Adjust.
16989 (add_displaced_stepping_state): Remove.
16990 (get_displaced_step_closure_by_addr): Adjust.
16991 (remove_displaced_stepping_state): Remove.
16992 (infrun_inferior_exit): Call displaced_step_state.reset.
16993 (use_displaced_stepping): Don't check for NULL.
16994 (displaced_step_prepare_throw): Call
16995 get_displaced_stepping_state.
16996 (displaced_step_fixup): Don't check for NULL.
16997 (prepare_for_detach): Don't check for NULL.
16998
e3319240
PW
169992019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
17000
17001 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
17002 in case of call that did not complete.
17003
5d36dfb9
AU
170042019-01-02 Andrey Utkin <autkin@undo.io>
17005
17006 * symfile.c (find_separate_debug_file): Fix search of debug files for
17007 remote debuggee.
17008
8833fbf0
TT
170092019-01-02 Tom Tromey <tom@tromey.com>
17010
17011 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
17012 indentation.
17013 * python/py-frame.c (frapy_older): Remove cast.
17014 (frapy_newer): Likewise.
17015 * python/py-breakpoint.c (local_setattro): Remove cast.
17016 * python/py-arch.c (archpy_name): Remove local variable.
17017 * python/py-type.c (gdbpy_lookup_type): Remove cast.
17018
4ada3dfd
JB
170192019-01-02 Joel Brobecker <brobecker@adacore.com>
17020
17021 * unittests/basic_string_view/element_access/char/empty.cc:
17022 Fix year range in copyright header.
17023
113b7b81
AB
170242019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
17025
17026 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
17027 Delete.
17028 <operator==>: Update with for removed field.
17029 <hash>: Likewise.
17030 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
17031 <isa_features>: ...this.
17032 <abi_features>: New field.
17033 (riscv_isa_flen): Update comment.
17034 (riscv_abi_xlen): New declaration.
17035 (riscv_abi_flen): New declaration.
17036 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
17037 isa_features.
17038 (riscv_abi_xlen): New function.
17039 (riscv_isa_flen): Update to get answer from isa_features.
17040 (riscv_abi_flen): New function.
17041 (riscv_has_fp_abi): Update to get answer from abi_features.
17042 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
17043 xlen and flen.
17044 (riscv_call_info) <xlen, flen>: Update comment.
17045 (riscv_call_arg_struct): Remove invalid assertions
17046 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
17047 is removed.
17048 (riscv_gdbarch_init): Gather isa features and abi features
17049 separately, ensure both match on the gdbarch when reusing an old
17050 gdbarch. Relax an error check to allow 32-bit abi float to run on
17051 a target with 64-bit float hardware.
17052
b18ca514
PW
170532019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
17054
17055 * source.c (search_command_helper): Stop reverse search
17056 when line 1 has been searched.
17057
ec70d8db
PW
170582019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
17059
17060 * record-full.c (record_full_base_target::close): Rewrite
17061 record_full_core_buf_list free logic.
17062
5b38f9c1
PW
170632019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
17064
17065 * break-catch-syscall.c (print_one_catch_syscall): xfree
17066 the last text.
17067
66d91b39
JB
170682019-01-01 Joel Brobecker <brobecker@adacore.com>
17069
17070 * top.c (print_gdb_version): Update Copyright year in version
17071 message.
17072
42a4f53d
JB
170732019-01-01 Joel Brobecker <brobecker@adacore.com>
17074
17075 Update copyright year range in all GDB files.
17076
7e955d83 170772019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
2139e8dc 17078
5bbd631d 17079 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
2139e8dc 17080
5bbd631d 17081For older changes see ChangeLog-2018.
c906108c
SS
17082\f
17083Local Variables:
17084mode: change-log
17085left-margin: 8
17086fill-column: 74
17087version-control: never
57da7796 17088coding: utf-8
c906108c 17089End:
5bbd631d 17090
This page took 3.402195 seconds and 4 git commands to generate.