Rename "sun" variable to avoid conflicts on Solaris
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
aa989b27
CB
12019-12-19 Christian Biesinger <cbiesinger@google.com>
2
3 * fbsd-tdep.c (fbsd_info_proc_files_entry): Rename local var
4 "sun" to "saddr_un".
5
2032eb7e
TT
62019-12-19 Tom Tromey <tromey@adacore.com>
7
8 * ui-out.h (enum class field_kind): Fix comment.
9
f69656d0
TT
102019-12-11 Tom Tromey <tromey@adacore.com>
11
12 * xml-support.c (xml_fetch_content_from_file): Use FOPEN_RB.
13
27e4fac7
TT
142019-12-18 Tom Tromey <tromey@adacore.com>
15
16 PR build/25268:
17 * gdbsupport/thread-pool.c (set_thread_name): Expect "int" return
18 type on macOS. Add comment.
19
e623f035
SM
202019-12-18 Simon Marchi <simon.marchi@efficios.com>
21
22 * c-lang.c (c_get_string, asm_language_defn): Remove space
23 before tab.
24
28ce7b07
TT
252019-12-18 Tom Tromey <tromey@adacore.com>
26
27 PR build/25250:
28 * ui-out.c (ui_out::vmessage): Update.
29 * ui-out.h (enum class field_kind) <FIELD_STRING, FIELD_SIGNED>:
30 Rename.
31 (string_field): Update.
32 (signed_field): Update.
33
bbde7025
SM
342019-12-18 Simon Marchi <simon.marchi@efficios.com>
35
36 * top.c (print_gdb_configuration): Adjust indentation.
37
e3169fe0
CB
382019-12-17 Christian Biesinger <cbiesinger@google.com>
39
40 * bsd-kvm.c: Include gdbsupport/pathstuff.h.
41
9b30da15
SM
422019-12-17 Simon Marchi <simon.marchi@polymtl.ca>
43
44 * tui/tui-layout.h (class tui_layout_base): Add virtual
45 destructor.
46
4a4c04f1
BE
472019-12-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
48
49 * infcmd.c (prepare_one_step): Step over skipped inline functions.
50 * infrun.c (inline_frame_is_marked_for_skip): New helper function.
51 (process_event_stop_test): Keep stepping over skipped inline functions.
52
0394eed1
SM
532019-12-16 Simon Marchi <simon.marchi@polymtl.ca>
54
55 * jit.c (struct gdb_block) <next>: Remove field.
56 (struct gdb_symtab) <~gdb_symtab>: Remove.
57 <blocks>: Change type to std::forward_list<gdb_block>.
58 (compare_block): Remove.
59 (jit_block_open_impl): Adjust to std::forward_list. Place the new
60 block at the beginning, don't mind about sorting.
61 (finalize_symtab): Adjust to std::forward_list, sort the blocks list
62 before using it.
63
b6112117
SM
642019-12-16 Simon Marchi <simon.marchi@polymtl.ca>
65
66 * jit.c (struct gdb_block): Add constructor, initialize
67 real_block and next fields.
68 <name>: Change type to gdb::unique_xmalloc_ptr.
69 (struct gdb_symtab) <~gdb_symtab>: Free blocks with delete.
70 (jit_block_open_impl): Allocate gdb_block with new.
71 (finalize_symtab): Adjust to gdb::unique_xmalloc_ptr.
72
1b61f46d
SM
732019-12-16 Simon Marchi <simon.marchi@polymtl.ca>
74
75 * jit.c: Include forward_list.
76 (struct gdb_symtab) <next>: Remove field.
77 (struct gdb_object) <symtabs>: Change type to
78 std::forward_list<gdb_symtab>.
79 (jit_object_open_impl): Allocate gdb_object with new.
80 (jit_symtab_open_impl): Adjust to std::forward_list.
81 (finalize_symtab): Don't delete symtab.
82 (jit_object_close_impl): Adjust to std::forward_list. Free
83 gdb_object with delete.
84
89867184
SM
852019-12-16 Simon Marchi <simon.marchi@polymtl.ca>
86
87 * jit.c (struct gdb_symtab): Add constructor, destructor,
88 initialize fields.
89 <linetable>: Change type to unique_xmalloc_ptr.
90 <file_name>: Change type to std::string.
91 (jit_symtab_open_impl): Allocate gdb_symtab with new.
92 (jit_symtab_line_mapping_add_impl): Adjust.
93 (finalize_symtab): Adjust, call delete on stab.
94
d043f8c8
SM
952019-12-16 Simon Marchi <simon.marchi@polymtl.ca>
96
97 * jit.c (finalize_symtab): Set gdb_block_iter_tmp in loop.
98
d9fa87f4
TT
992019-12-16 Tom Tromey <tromey@adacore.com>
100
101 * windows-nat.c (windows_nat_target::attach): Update.
102 * remote.c (extended_remote_target::attach): Update.
103 * procfs.c (procfs_target::attach): Update.
104 * nto-procfs.c (nto_procfs_target::attach): Update.
105 (nto_procfs_target::create_inferior): Update.
106 * inf-ptrace.c (inf_ptrace_target::attach): Update.
107 * gnu-nat.c (gnu_nat_target::attach): Update.
108 (gnu_nat_target::detach): Update.
109 * darwin-nat.c (darwin_nat_target::attach): Update.
110 * corefile.c (get_exec_file): Constify result. Remove extraneous
111 return.
112 * bsd-kvm.c (bsd_kvm_target_open): Update.
113 * gdbsupport/common-inferior.h (get_exec_file): Constify result.
114
c0c3707f
CB
1152019-12-16 Christian Biesinger <cbiesinger@google.com>
116
117 * gdbsupport/common-defs.h: Remove workaround for a gnulib bug
118 (we no longer need to include time.h before pathmax.h)
119
d3ecddab
CB
1202019-12-15 Christian Biesinger <cbiesinger@google.com>
121
122 * ada-exp.y (write_ambiguous_var): Update.
123 * coffread.c (process_coff_symbol): Update.
124 * ctfread.c (ctf_add_enum_member_cb): Update.
125 (new_symbol): Update.
126 * dwarf2read.c (fixup_go_packaging): Update.
127 (new_symbol): Update.
128 * language.c (language_alloc_type_symbol): Update.
129 * mdebugread.c (new_symbol): Update.
130 * minsyms.c (minimal_symbol_reader::record_full): Update.
131 * psymtab.c (add_psymbol_to_bcache): Update.
132 * stabsread.c (define_symbol): Update.
133 (read_enum_type): Update.
134 * symtab.c (symbol_set_language): Make this a member function...
135 (general_symbol_info::set_language): ... here.
136 * symtab.h (struct general_symbol_info) <set_language>: New function.
137 (SYMBOL_SET_LANGUAGE): Remove.
138 (symbol_set_language): Remove.
139
c1b5c1eb
CB
1402019-12-15 Christian Biesinger <cbiesinger@google.com>
141
142 * ada-lang.c (ada_add_block_symbols): Update.
143 (ada_collect_symbol_completion_matches): Update.
144 * ax-gdb.c (gen_expr): Update.
145 * block.c (block_lookup_symbol): Update.
146 (block_lookup_symbol_primary): Update.
147 (block_find_symbol): Update.
148 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Update.
149 * dbxread.c (process_one_symbol): Update.
150 * dictionary.c (insert_symbol_hashed): Update.
151 (collate_pending_symbols_by_language): Update.
152 (mdict_add_symbol): Update.
153 * dwarf-index-write.c (write_psymbols): Update.
154 * dwarf2read.c (fixup_go_packaging): Update.
155 * findvar.c (read_var_value): Update.
156 * ft32-tdep.c (ft32_skip_prologue): Update.
157 * go-lang.c (go_symbol_package_name): Update.
158 * language.h (scoped_switch_to_sym_language_if_auto::
159 scoped_switch_to_sym_language_if_auto): Update.
160 * linespec.c (find_method): Update.
161 (find_label_symbols_in_block): Update.
162 * mdebugread.c (parse_symbol): Update.
163 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
164 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
165 (minimal_symbol_reader::install): Update.
166 * moxie-tdep.c (moxie_skip_prologue): Update.
167 * parse.c (parse_exp_in_context): Update.
168 * psymtab.c (psymbol_name_matches): Update.
169 (match_partial_symbol): Update.
170 (lookup_partial_symbol): Update.
171 (psymbol_hash): Update.
172 (psymbol_compare): Update.
173 * python/py-framefilter.c (extract_sym): Update.
174 (py_print_single_arg): Update.
175 * stabsread.c (define_symbol): Update.
176 * stack.c (print_frame_arg): Update.
177 (find_frame_funname): Update.
178 (info_frame_command_core): Update.
179 * symfile.c (set_initial_language): Update.
180 * symtab.c (symbol_set_demangled_name): Update.
181 (symbol_get_demangled_name): Update.
182 (symbol_set_language): Update.
183 (symbol_find_demangled_name): Update.
184 (symbol_set_names): Update.
185 (general_symbol_info::natural_name): Update.
186 (general_symbol_info::demangled_name): Update.
187 (general_symbol_info::search_name): Update.
188 (symbol_matches_search_name): Update.
189 (eq_symbol_entry): Update.
190 (iterate_over_symbols): Update.
191 (completion_list_add_symbol): Update.
192 (completion_list_add_msymbol): Update.
193 (completion_list_add_fields): Update.
194 * symtab.h (struct general_symbol_info) <language>: New function.
195 <language>: Rename to...
196 <m_language>: ...this.
197 (SYMBOL_LANGUAGE): Remove.
198 (MSYMBOL_LANGUAGE): Remove.
199 (struct symbol) <ctor>: Update.
200 * xstormy16-tdep.c (xstormy16_skip_prologue): Update.
201
747cfc8c
CB
2022019-12-15 Christian Biesinger <cbiesinger@google.com>
203
204 * ada-exp.y (write_ambiguous_var): Call symbol_set_language to
205 set the language of sym.
206 * language.c (language_alloc_type_symbol): Likewise.
207
ff8577f6
SDJ
2082019-12-14 Sergio Durigan Junior <sergiodj@redhat.com>
209
210 https://bugzilla.redhat.com/show_bug.cgi?id=1728147
211 PR gdb/23613
212 * bsd-kvm.c (bsd_kvm_target_open): Use 'gdb_abspath'.
213 * corelow.c: Include 'gdbsupport/pathstuff.h'.
214 (core_target_open): Use 'gdb_abspath'.
215 * gdbsupport/pathstuff.c (gdb_abspath): Guard against
216 'current_directory == NULL' case.
217 * gdbsupport/pathstuff.h (gdb_abspath): Expand comment and
218 explain what happens when 'current_directory' is NULL.
219 * go32-nat.c (go32_nat_target::wait): Check if
220 'current_directory' is NULL before call to 'chdir'.
221 * source.c (add_path): Use 'gdb_abspath'.
222 * top.c: Include 'gdbsupport/pathstuff.h'.
223 (init_history): Use 'gdb_abspath'.
224 (set_history_filename): Likewise.
225 * tracefile-tfile.c: Include 'gdbsupport/pathstuff.h'.
226 (tfile_target_open): Use 'gdb_abspath'.
227
234c3068
TT
2282019-12-13 Tom Tromey <tromey@adacore.com>
229
230 * contrib/ari/gdb_ari.sh: Remove check for multiple calls to
231 warning or error.
232
93537683
TT
2332019-12-13 Tom Tromey <tromey@adacore.com>
234
235 * contrib/ari/gdb_ari.sh: Remove call to "fix" for "long long".
236
63456183
TT
2372019-12-13 Tom Tromey <tromey@adacore.com>
238
239 * contrib/ari/gdb_ari.sh: Handle -Wno- prefix.
240
98f9338a
TT
2412019-12-13 Tom Tromey <tromey@adacore.com>
242
243 * contrib/ari/gdb_ari.sh (usage): Use GNU style.
244
3cb5a3a1
TT
2452019-12-13 Tom Tromey <tromey@adacore.com>
246
247 * gdbsupport/common-utils.c (string_printf, string_vprintf)
248 (string_vappendf): Add ARI comment.
249
c6cbf900
TT
2502019-12-13 Tom Tromey <tromey@adacore.com>
251
252 * contrib/ari/gdb_ari.sh: Remove "fix" call for
253 floatformat_to_double.
254 * target-float.c (host_float_ops<T>::from_target): Add ARI
255 comment.
256
036003a6
TT
2572019-12-13 Tom Tromey <tromey@adacore.com>
258
259 * contrib/ari/gdb_ari.sh: Remove "fix" call for abort.
260 * utils.c (abort_with_message, dump_core, internal_vproblem): Add
261 ARI marker to abort.
262 * event-top.c (handle_sigsegv): Add ARI marker to abort.
263
8aaaf757
TT
2642019-12-13 Tom Tromey <tromey@adacore.com>
265
266 * contrib/ari/gdb_ari.sh: Fix floatformat_from_double text.
267
fe56157f
TT
2682019-12-13 Tom Tromey <tromey@adacore.com>
269
270 * contrib/ari/gdb_ari.sh: Remove ATTRIBUTE_UNUSED check.
271
a15a95ed
TT
2722019-12-13 Tom Tromey <tromey@adacore.com>
273
274 * contrib/ari/gdb_ari.sh: Remove "boolean" and "var_boolean"
275 checks.
276
a5513db2
TT
2772019-12-13 Tom Tromey <tromey@adacore.com>
278
279 * gdbsupport/safe-iterator.h (class basic_safe_range) <begin,
280 end>: No longer "const".
281
3a90f266
SM
2822019-12-13 Simon Marchi <simon.marchi@polymtl.ca>
283
284 * jit.c: Fix indentation, replace spaces with tabs where
285 applicable.
286
b3f4b80f
JL
2872019-12-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
288
289 * configure.tgt: Match msp430-*-elf* targets when configuring GDB.
290
e671856c
TT
2912019-12-12 Tom Tromey <tom@tromey.com>
292
293 * objfiles.h (struct objfile) <partial_symtabs>: Now a
294 unique_ptr.
295
7d7167ce
TT
2962019-12-12 Tom Tromey <tom@tromey.com>
297
298 * progspace.h (objfile_list): New typedef.
299 (class unwrapping_objfile_iterator)
300 (struct unwrapping_objfile_range): Newl
301 (struct program_space) <objfiles_range>: Change type.
302 <objfiles>: Change return type.
303 <add_objfile>: Change type of "objfile" parameter.
304 <objfiles_list>: Now a list of shared_ptr.
305 * progspace.c (program_space::add_objfile): Change type of
306 "objfile". Update.
307 (program_space::remove_objfile): Update.
308 * objfiles.h (struct objfile) <~objfile>: Make public.
309 * objfiles.c (objfile::make): Update.
310 (objfile::unlink): Don't call delete.
311
343cc952
TT
3122019-12-12 Tom Tromey <tom@tromey.com>
313
314 * symfile.c (symbol_file_clear): Update.
315 * progspace.h (struct program_space) <free_all_objfiles>: Declare
316 method.
317 * progspace.c (program_space::free_all_objfiles): New method.
318 * objfiles.h (free_all_objfiles): Don't declare.
319 * objfiles.c (free_all_objfiles): Move to program_space.
320
d0801dd8
TT
3212019-12-12 Tom Tromey <tom@tromey.com>
322
323 * progspace.c (program_space::add_objfile)
324 (program_space::remove_objfile): Update.
325 (program_space::multi_objfile_p): Remove.
326 * objfiles.h (struct objfile) <next>: Remove.
327 * objfiles.c (objfile::objfile): Update.
328 (put_objfile_before): Update.
329 (unlink_objfile): Update.
330 * progspace.h (object_files): Remove.
331 (struct program_space) <objfiles_head>: Remove.
332 <objfiles_list>: New member.
333 <objfiles_range, objfiles_safe_range>: Change type.
334 (objfiles): Change return type.
335 (objfiles_safe): Update.
336 (multi_objfile_p): Rewrite and inline.
337 (object_files): Remove macro.
338
13bff726
TT
3392019-12-12 Tom Tromey <tom@tromey.com>
340
341 * gdbsupport/safe-iterator.h (basic_safe_iterator): Simplify. Add
342 second constructor.
343 (basic_safe_range): New class.
344
deeafabb
TT
3452019-12-12 Tom Tromey <tom@tromey.com>
346
347 * progspace.c (program_space::multi_objfile_p): New method.
348 * printcmd.c (info_symbol_command): Update.
349 * maint.c (maintenance_translate_address): Update.
350 * objfiles.h (MULTI_OBJFILE_P): Remove.
351 * progspace.h (struct program_space) <multi_objfile_p>: New
352 method.
353
23452926
TT
3542019-12-12 Tom Tromey <tom@tromey.com>
355
356 * progspace.h (struct program_space) <remove_objfile>: Declare.
357 * progspace.c (program_space::remove_objfile): New method.
358 * objfiles.c (unlink_objfile): Remove.
359 (objfile::unlink): Call remove_objfile.
360 (objfile): Don't call unlink_objfile.
361
7cac64af
TT
3622019-12-12 Tom Tromey <tom@tromey.com>
363
364 * progspace.h (struct program_space) <add_objfile>: Declare
365 method.
366 * progspace.c (program_space::add_objfile): New method.
367 * objfiles.c (~objfile): Don't unlink objfile.
368 (put_objfile_before): Remove.
369 (add_separate_debug_objfile): Don't call put_objfile_before.
370 (objfile::make): Call add_objfile. Set new_objfiles_available on
371 the per-program-space data.
372
268e4f09
TT
3732019-12-12 Tom Tromey <tom@tromey.com>
374
375 * symfile.c (syms_from_objfile_1): Use objfile_up.
376 (syms_from_objfile_1, remove_symbol_file_command): Call unlink
377 method.
378 (reread_symbols): Use objfile_up.
379 * solib.c (update_solib_list, reload_shared_libraries_1): Call
380 unlink method.
381 * objfiles.h (struct objfile) <~objfile>: Now private.
382 <unlink>: New method.
383 (struct objfile_deleter): New.
384 (objfile_up): New typedef.
385 * objfiles.c (objfile::unlink): New method.
386 (free_objfile_separate_debug, free_all_objfiles)
387 (objfile_purge_solibs): Use it.
388 * jit.c (jit_unregister_code): Remove.
389 (jit_inferior_exit_hook, jit_event_handler): Call unlink on
390 objfile.
391 * compile/compile-object-run.c (do_module_cleanup): Call unlink on
392 objfile.
393 * compile/compile-object-load.c (compile_object_load): Use
394 objfile_up.
395
f65fe570
TT
3962019-12-12 Tom Tromey <tom@tromey.com>
397
398 * symfile.c (symbol_file_add_with_addrs): Pass "parent" to
399 objfile::make.
400 * objfiles.h (struct objjfile) <make>: No longer inline.
401 (add_separate_debug_objfile): Don't declare.
402 * objfiles.c (add_separate_debug_objfile): Now static.
403 (objfile::make): Move from objfiles.h. Call
404 add_separate_debug_objfile. Add "parent" parameter.
405
bda13cdc
TT
4062019-12-12 Tom Tromey <tom@tromey.com>
407
408 * symfile.c (symbol_file_add_with_addrs): Use objfile::make.
409 * objfiles.h (struct objfile): Make constructor private.
410 <make>: New static method.
411 * jit.c (jit_object_close_impl): Update.
412
7190276c
SM
4132019-12-12 Simon Marchi <simon.marchi@polymtl.ca>
414
415 * jit.c (jit_reader_try_read_symtab): Replace xmalloc/xfree with
416 gdb::byte_vector.
417
d61df897
TT
4182019-12-12 Tom Tromey <tromey@adacore.com>
419
420 * xml-support.c (xml_fetch_content_from_file): Don't call
421 malloc_failure.
422 * utils.h (class gdb_argv): Remove malloc_failure comment.
423 * utils.c (gdb_argv::reset): Don't call malloc_failure.
424
db3ad2f0
TT
4252019-12-12 Tom Tromey <tromey@adacore.com>
426
427 * Makefile.in (ALL_TARGET_OBS): Add riscv-ravenscar-thread.o.
428 (HFILES_NO_SRCDIR): Add riscv-ravenscar-thread.h.
429 (ALLDEPFILES): Add riscv-ravenscar-thread.c.
430 * configure.tgt (riscv-*-*): Add riscv-ravenscar-thread.o.
431 * riscv-ravenscar-thread.c: New file.
432 * riscv-ravenscar-thread.h: New file.
433 * riscv-tdep.c (riscv_gdbarch_init): Call
434 register_riscv_ravenscar_ops.
435
2ffe5b9c
TT
4362019-12-12 Tom Tromey <tromey@adacore.com>
437
438 * gdbsupport/thread-pool.c (set_thread_name): Use
439 ATTRIBUTE_UNUSED.
440
39f34d7b
LM
4412019-12-12 Luis Machado <luis.machado@linaro.org>
442
443 * gdbsupport/safe-strerror.c: Don't include diagnostics.h.
444 (select_strerror_r): Use ATTRIBUTE_UNUSED instead of the diagnostics
445 macros.
446
d4eeccfe
TT
4472019-12-11 Tom Tromey <tom@tromey.com>
448
449 * tui/tui-win.c (tui_set_win_height_command): Call
450 tui_adjust_window_height.
451 (tui_adjust_win_heights, new_height_ok): Remove.
452 * tui/tui-layout.h (tui_adjust_window_height): Declare.
453 * tui/tui-layout.c (tui_adjust_window_height): New function.
454
3d979945
TT
4552019-12-11 Tom Tromey <tom@tromey.com>
456
457 * tui/tui-win.c (tui_resize_all): Remove code, call
458 tui_apply_current_layout.
459
2192a9d3
TT
4602019-12-11 Tom Tromey <tom@tromey.com>
461
462 * tui/tui-layout.h (tui_apply_current_layout): Declare.
463 * tui/tui-layout.c (standard_layouts, applied_layout): New
464 globals.
465 (tui_apply_current_layout): New function.
466 (show_layout): Set applied_layout. Call
467 tui_apply_current_layout.
468 (show_source_command, show_disasm_command)
469 (show_source_disasm_command, show_data)
470 (show_source_or_disasm_and_command): Remove.
471 (initialize_layouts): New function.
472 (_initialize_tui_layout): Call initialize_layouts.
473
389e7ddb
TT
4742019-12-11 Tom Tromey <tom@tromey.com>
475
476 * tui/tui-layout.h (class tui_layout_base)
477 (class tui_layout_window, class tui_layout_split): New.
478 * tui/tui-layout.c (tui_get_window_by_name)
479 (tui_layout_window::clone, tui_layout_window::apply)
480 (tui_layout_window::get_sizes, tui_layout_window::add_split)
481 (tui_layout_split::add_window, tui_layout_split::clone)
482 (tui_layout_split::get_sizes)
483 (tui_layout_split::set_weights_from_heights)
484 (tui_layout_split::adjust_size, tui_layout_split::apply): New
485 functions.
486 (tui_layout_split::add_split, tui_layout_split::add_split)
487 (tui_layout_split::set_weights_from_heights)
488 (tui_layout_split::set_weights_from_heights): New functions.
489
fb3184d8
TT
4902019-12-11 Tom Tromey <tom@tromey.com>
491
492 * tui/tui-wingeneral.c (tui_gen_win_info::make_window): Update.
493 * tui/tui-win.c (tui_adjust_win_heights, tui_resize_all): Update.
494 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
495 * tui/tui-data.h (struct tui_point): Remove.
496 (struct tui_gen_win_info) <origin>: Remove.
497 <x, y>: New fields.
498 * tui/tui-command.c (tui_cmd_window::resize): Update.
499
dc7ff8a6
TT
5002019-12-11 Tom Tromey <tom@tromey.com>
501
502 * tui/tui-stack.h (struct tui_locator_window) <min_height>:
503 Implement.
504 * tui/tui-regs.h (struct tui_data_item_window) <min_height>:
505 Implement.
506 * tui/tui-data.h (struct tui_gen_win_info) <min_height>: New
507 method.
508 (struct tui_win_info) <min_height>: Implement.
509
1431937b
TT
5102019-12-11 Tom Tromey <tom@tromey.com>
511
512 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
513 (struct tui_win_info) <can_box>: Update.
514
c8ec2f43
TT
5152019-12-11 Tom Tromey <tom@tromey.com>
516
517 * tui/tui-stack.h (struct tui_locator_window) <max_height>: New
518 method.
519 * tui/tui-regs.h (struct tui_data_item_window) <max_height>: New
520 method.
521 * tui/tui-data.h (struct tui_gen_win_info) <max_height>: New
522 method.
523 (struct tui_win_info) <max_height>: Now override.
524
4decd62b
JB
5252019-12-11 Joel Brobecker <brobecker@adacore.com>
526
527 * NEWS: Create a new section for the next release branch.
528 Rename the section of the current branch, now that it has
529 been cut.
530
d746744e
JB
5312019-12-11 Joel Brobecker <brobecker@adacore.com>
532
533 GDB 9 branch created (27f7b2f64062ac9e52afc60509263c2702a9ebd0):
534 * version.in: Bump version to 10.0.50.DATE-git.
535
2e744276
TT
5362019-12-11 Tom Tromey <tromey@adacore.com>
537
538 PR build/25268:
539 * gdbsupport/thread-pool.c (set_thread_name): New function.
540 (thread_pool::set_thread_count): Don't call pthread_setname_np.
541 (thread_pool::thread_function): Call set_thread_name.
542
aac4760f
TT
5432019-12-11 Tom Tromey <tromey@adacore.com>
544
545 * fbsd-tdep.c (fbsd_core_info_proc_status): Cast result of
546 bfd_get_signed_8.
547
d8edc8b7
PW
5482019-12-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
549
550 * NEWS: Document -raw-values option and the related setting commands.
551 * printcmd.c (print_command_parse_format): Do not set opts->raw off,
552 only set it on when /r is given.
553 * valprint.c (value_print_option_defs): New element raw-values.
554 * Makefile.in: Add the new file.
555
cb511130
CB
5562019-12-10 Christian Biesinger <cbiesinger@google.com>
557
558 * gdbsupport/safe-strerror.c: Supress the unused function warning
559 for select_strerror_r.
560
ab7d13f0
CB
5612019-12-10 Christian Biesinger <cbiesinger@google.com>
562
563 * config.in: Regenerate.
564 * configure: Regenerate.
565 * gdbsupport/agent.c (gdb_connect_sync_socket): Call
566 safe_strerror instead of strerror.
567 * gdbsupport/common.m4: Don't check for strerror.
568 * gdbsupport/safe-strerror.c: Support both the glibc version
569 of strerror_r and the XSI version.
570
6c71eb7d
TT
5712019-12-10 Tom Tromey <tromey@adacore.com>
572
573 * ada-typeprint.c (print_choices): Use a single "?".
574 (print_variant_part): Print "?" if the discriminant name
575 is not known.
576
bac7c5cf
GB
5772019-12-10 George Barrett <bob@bob131.so>
578
579 Fix scripted probe breakpoints.
580 * breakpoint.c (tracepoint_probe_breakpoint_ops): Move
581 declaration forward.
582 (breakpoint_ops_for_event_location_type)
583 (breakpoint_ops_for_event_location): Add function definitions.
584 (break_command_1, trace_command): Use
585 breakpoint_ops_for_event_location.
586 * breakpoint.h (breakpoint_ops_for_event_location): Add function
587 declarations.
588 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Use
589 breakpoint_ops_for_event_location.
590 * python/py-breakpoint.c (bppy_init): Use
591 breakpoint_ops_for_event_location.
592
330f1d38
TBA
5932019-12-09 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
594
595 * gdbtypes.c (rank_one_type): Return INCOMPATIBLE_TYPE_BADNESS
596 when ranking an lvalue argument for an rvalue parameter.
597
b1f0c0b9
WA
5982019-12-08 Wataru Ashihara <wataash@wataash.com>
599
600 * darwin-nat.c (darwin_nat_target::create_inferior): Fix
601 template argument for scoped_restore_tmpl from bool to int.
602
aa2d5a42
KS
6032019-12-07 Keith Seitz <keiths@redhat.com>
604
605 * build-id.c (build_id_bfd_get): Permit bfd_core, too.
606 (build_id_to_debug_bfd): Make static, rewriting to use
607 build_id_to_bfd_suffix.
608 (build_id_to_bfd_suffix): Copy of build_id_to_debug_bfd,
609 adding `suffix' parameter. Append SUFFIX to file names
610 when searching for matching files.
611 (build_id_to_debug_bfd): Use build_id_to_bfd_suffix.
612 (build_id_to_exec_bfd): Likewise.
613 * build-id.h (build_id_to_debug_bfd): Clarify that function
614 searches for BFD of debug info file.
615 (build_id_to_exec_bfd): Declare.
616 * corelow.c: Include build-id.h.
617 (locate_exec_from_corefile_build_id): New function.
618 (core_target_open): If no executable BFD is found,
619 search for a core file BFD using build-id.
620
dfb65191
CB
6212019-12-06 Christian Biesinger <cbiesinger@google.com>
622
623 * bcache.c: Put in namespace gdb.
624 * bcache.h: Likewise.
625 * gdbtypes.c (check_types_worklist): Update.
626 (types_deeply_equal): Update.
627 * macrotab.c (struct macro_table) <bcache>: Update.
628 (new_macro_table): Update.
629 * macrotab.h (struct bcache): Put this forward declaration
630 inside namespace gdb.
631 (new_macro_table): Update.
632 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache>:
633 Update.
634 <macro_cache>: Update.
635 * psymtab.h: (psymtab_storage) <psymbol_cache>: Update.
636
93e55f0a
TV
6372019-12-06 Tom de Vries <tdevries@suse.de>
638
639 PR symtab/24971
640 * block.c (best_symbol, better_symbol): New function.
641 (block_lookup_symbol_primary, block_lookup_symbol): Prefer def over
642 decl.
643
06acc08f
TBA
6442019-12-06 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
645
646 * gdbtypes.h: Define the REFERENCE_SEE_THROUGH_BADNESS value.
647 * gdbtypes.c (rank_one_type): Use REFERENCE_SEE_THROUGH_BADNESS
648 for ranking see-through reference cases.
649
e0fad1ea
PW
6502019-12-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
651 * stack.c (faas_command): Check a command is provided.
652 * thread.c (taas_command, tfaas_command): Likewise.
653
908641f5
PW
6542019-12-05 Philippe Waroquiers <philippe.waroquiers@skynet.be>
655 * inferior.c (prune_inferiors): Only call delete_inferior,
656 Do not modify the inferior list.
657
b858499d
SM
6582019-12-05 Simon Marchi <simon.marchi@polymtl.ca>
659
660 * c-exp.y: Update calls to lookup_typename,
661 lookup_signed_typename and lookup_unsigned_typename.
662 * c-lang.c (evaluate_subexp_c): Likewise.
663 * cp-namespace.c (cp_lookup_symbol_imports_or_template):
664 Likewise.
665 * eval.c (binop_promote): Likewise.
666 * gdbtypes.c (lookup_typename): Remove gdbarch parameter.
667 (lookup_unsigned_typename): Likewise.
668 (lookup_signed_typename): Likewise.
669 * gdbtypes.h (lookup_unsigned_typename): Likewise.
670 (lookup_signed_typename): Likewise.
671 (lookup_typename): Likewise.
672 * guile/scm-type.c (tyscm_lookup_typename): Update calls to
673 lookup_typename, lookup_signed_typename,
674 lookup_unsigned_typename.
675 * m2-exp.y: Likewise.
676 * printcmd.c (printf_wide_c_string): Likewise.
677 (ui_printf): Likewise.
678 * python/py-type.c (typy_lookup_typename): Likewise.
679 * python/py-xmethods.c (python_xmethod_worker::invoke):
680 Likewise.
681 * rust-exp.y: Likewise.
682
3a8fa228
CB
6832019-12-04 Christian Biesinger <cbiesinger@google.com>
684
685 * configure.nat (obsd64): Add missing files x86-nat.o and
686 nat/x86-dregs.o.
687
2dbc041e
TT
6882019-12-04 Tom Tromey <tom@tromey.com>
689
690 * valprint.c (val_print_string): Use metadata_style.
691 * go-valprint.c (print_go_string): Use metadata style.
692 * p-valprint.c (pascal_object_print_static_field): Use metadata
693 style.
694 * cp-valprint.c (cp_print_static_field): Use metadata style.
695
36c8fb93
AB
6962019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
697 Chris January <chris.january@arm.com>
698
699 * f-exp.y (COMPLEX_KEYWORD, SINGLE, DOUBLE, PRECISION): New
700 tokens.
701 (typebase): New patterns for complex, single/double precision, and
702 single/double complex.
703 (f77_keywords): Change token for complex keyword, and add single,
704 double, and precision keywords.
705
c6170c2c
SM
7062019-12-04 Simon Marchi <simon.marchi@polymtl.ca>
707
708 * avr-tdep.c (_initialize_avr_tdep): Improve help of command
709 "info io_registers".
710
894ecaf4
SM
7112019-12-04 Simon Marchi <simon.marchi@polymtl.ca>
712
713 * regcache.c (cooked_read_test): Initialize thread list of
714 mock_inferior.
715
be155ebb
SM
7162019-12-04 Simon Marchi <simon.marchi@polymtl.ca>
717
718 * aarch64-linux-tdep.c: Remove includes.
719
c577cdd7
SM
7202019-12-04 Simon Marchi <simon.marchi@polymtl.ca>
721
722 * aarch64-tdep.c: Remove includes.
723
610cfd61
SM
7242019-12-04 Simon Marchi <simon.marchi@efficios.com>
725
726 * filtered-iterator.h (filtered_iterator) <operator==,
727 operator!=>: Compare wrapped iterators, not wrapped pointers.
728 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
729 unittests/filtered_iterator-selftests.c.
730 * unittests/filtered_iterator-selftests.c: New file.
731
a05cf17a
TT
7322019-12-04 Tom Tromey <tromey@adacore.com>
733
734 * gdbtypes.c (create_range_type): Inherit endianity
735 from base type.
736
d5a22e77
TT
7372019-12-04 Tom Tromey <tromey@adacore.com>
738
739 * ada-lang.c (decode_constrained_packed_array)
740 (ada_value_assign, value_assign_to_component): Update.
741 * dwarf2loc.c (rw_pieced_value, access_memory)
742 (dwarf2_compile_expr_to_ax): Update.
743 * dwarf2read.c (dwarf2_add_field): Update.
744 * eval.c (evaluate_subexp_standard): Update.
745 * gdbarch.c, gdbarch.h: Rebuild.
746 * gdbarch.sh (bits_big_endian): Remove.
747 * gdbtypes.h (union field_location): Update comment.
748 * target-descriptions.c (make_gdb_type): Update.
749 * valarith.c (value_bit_index): Update.
750 * value.c (struct value) <bitpos>: Update comment.
751 (unpack_bits_as_long, modify_field): Update.
752 * value.h (value_bitpos): Update comment.
753
7ab4a236
TT
7542019-12-04 Tom Tromey <tromey@adacore.com>
755
756 * gdbtypes.c (type_byte_order): Move earlier. Assert for unknown
757 endian-ness.
758
103a685e
TT
7592019-12-04 Tom Tromey <tromey@adacore.com>
760
761 * dwarf2read.c (dwarf2_init_float_type)
762 (dwarf2_init_complex_target_type): Add byte_order parameter.
763 (read_base_type): Compute byte order earlier.
764 * gdbtypes.c (init_float_type): Add byte_order parameter.
765 * gdbtypes.h (init_float_type): Add byte_order parameter.
766
7a9e9f9f
TT
7672019-12-04 Tom Tromey <tromey@adacore.com>
768
769 * unittests/tui-selftests.c: Conditionally include tui-winsource.h.
770
feee869b
TT
7712019-12-04 Tom Tromey <tromey@adacore.com>
772
773 * dwarf2read.c (process_structure_scope): Initialize
774 "discr_offset".
775
c2512106
AB
7762019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
777
778 * mi/mi-symbol-cmds.c (mi_symbol_info): Take extra parameter, and
779 add it into the search spec.
780 (parse_max_results_option): New function.
781 (mi_info_functions_or_variables): Parse -max-results flag and pass
782 it to mi_symbol_info.
783 (mi_cmd_symbol_info_modules): Likewise.
784 (mi_cmd_symbol_info_types): Likewise.
785 * symtab.c (global_symbol_searcher::add_matching_symbols): Change
786 return type to bool, change result container into a set, and don't
787 add new results if we have enough already.
788 (global_symbol_searcher::add_matching_msymbols): Change return
789 type to bool, and don't add new results if we have enough already.
790 (sort_search_symbols_remove_dups): Delete.
791 (global_symbol_searcher::search): Early exit from search loop when
792 we have enough results. Use a std::set to collect the results
793 from calling add_matching_symbols.
794 * symtab.h (global_symbol_searcher) <set_max_seach_results>: New
795 member function.
796 (global_symbol_searcher) <m_max_search_results>: New member
797 variable.
798 (global_symbol_searcher) <add_matching_symbols>: Update header
799 comment and change return type to bool.
800 (global_symbol_searcher) <add_matching_msymbols>: Update header
801 comment and change return type to bool.
802
f97a63c5
AB
8032019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
804
805 * symtab.c (symbol_search::compare_search_syms): Update header
806 comment.
807 (global_symbol_searcher::is_suitable_msymbol): New function.
808 (global_symbol_searcher::expand_symtabs): New function.
809 (global_symbol_searcher::add_matching_symbols): New function.
810 (global_symbol_searcher::add_matching_msymbols): New function.
811 (global_symbol_searcher::search): Move most of the content
812 into the new functions above, and call them as needed.
813 * symtab.h (global_symbol_searcher) <expand_symtabs>: New member
814 function.
815 (global_symbol_searcher) <add_matching_symbols>: New member
816 function.
817 (global_symbol_searcher) <add_matching_msymbols>: New member
818 function.
819 (global_symbol_searcher) <is_suitable_msymbol>: New member
820 function.
821
293b38d6
AB
8222019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
823
824 * mi/mi-cmds.c (mi_cmds): Add -symbol-info-module-functions and
825 -symbol-info-module-variables entries.
826 * mi/mi-cmds.h (mi_cmd_symbol_info_module_functions): Declare.
827 (mi_cmd_symbol_info_module_variables): Declare.
828 * mi/mi-symbol-cmds.c
829 (module_symbol_search_iterator): New typedef.
830 (output_module_symbols_in_single_module_and_file): New function.
831 (output_module_symbols_in_single_module): New function.
832 (mi_info_module_functions_or_variables): New function.
833 (mi_cmd_symbol_info_module_functions): New function.
834 (mi_cmd_symbol_info_module_variables): New function.
835 * NEWS: Mention new MI command.
836
4cbd39b2
CB
8372019-12-03 Christian Biesinger <cbiesinger@google.com>
838
839 * bcache.c (hash): Remove.
840 (hash_continue): Remove.
841 * bcache.h (hash): Remove.
842 (hash_continue): Remove.
843 (struct bcache) <ctor>: Update.
844 * psymtab.c (psymbol_hash): Update.
845 * stabsread.c (hashname): Update.
846 * utils.h (fast_hash): Add an argument for a start value,
847 defaulting to zero.
848
82f910ea
PW
8492019-12-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
850 * symtab.c (symbol_cache_clear_slot): Move close to cleared type.
851 (destroy_block_symbol_cache): New function.
852 (symbol_cache:~symbol_cache) Call destroy_block_symbol_cache.
853 (resize_symbol_cache): Likewise.
854
de2396d0
TT
8552019-12-02 Tom Tromey <tom@tromey.com>
856
857 * unittests/tui-selftests.c (run_tests): Make conditional.
858 (_initialize_tui_selftest): Make conditional.
859
638d85bc
CB
8602019-12-02 Christian Biesinger <cbiesinger@google.com>
861
862 * aix-thread.c (debug_aix_thread): Change type to bool.
863
7532a164
LM
8642019-12-02 Luis Machado <luis.machado@linaro.org>
865
866 * infrun.c (follow_fork_inferior): Remove outdated FIXME comment.
867
216a7e6b
AB
8682019-12-01 Andrew Burgess <andrew.burgess@embecosm.com>
869
870 * dwarf2read.c (read_tag_string_type): Read the fields required to
871 make a dynamic string, and possibly create a dynamic range for the
872 string.
873 (attr_to_dynamic_prop): Setup is_reference based on the type of
874 attribute being processed.
875 * gdbtypes.c (is_dynamic_type_internal): Handle TYPE_CODE_STRING.
876 (resolve_dynamic_array): Rename to...
877 (resolve_dynamic_array_or_string): ...this, update header comment,
878 and accept TYPE_CODE_STRING.
879 (resolve_dynamic_type_internal): Handle TYPE_CODE_STRING.
880
11a8b164
AB
8812019-12-01 Andrew Burgess <andrew.burgess@embecosm.com>
882
883 * dwarf2read.c (dwarf2_per_cu_int_type): New function, takes most
884 of its implementation from...
885 (dwarf2_per_cu_addr_sized_int_type): ...here, which now just calls
886 the new function.
887
5bbd8269
AB
8882019-12-01 Andrew Burgess <andrew.burgess@embecosm.com>
889
890 * dwarf2read.c (read_subrange_type): Read bit and byte stride and
891 create a range with stride where appropriate.
892 * f-valprint.c: Include 'gdbarch.h'.
893 (f77_print_array_1): Take the stride into account when walking the
894 array. Also convert the stride into addressable units.
895 * gdbtypes.c (create_range_type): Initialise the stride to
896 constant zero.
897 (create_range_type_with_stride): New function, initialise the
898 range as normal, and then setup the stride.
899 (has_static_range): Include the stride here. Also change the
900 return type to bool.
901 (create_array_type_with_stride): Consider the range stride if the
902 array isn't given its own stride.
903 (resolve_dynamic_range): Resolve the stride if needed.
904 * gdbtypes.h (struct range_bounds) <stride>: New member variable.
905 (struct range_bounds) <flag_is_byte_stride>: New member variable.
906 (TYPE_BIT_STRIDE): Define.
907 (TYPE_ARRAY_BIT_STRIDE): Define.
908 (create_range_type_with_stride): Declare.
909 * valarith.c (value_subscripted_rvalue): Take range stride into
910 account when walking the array.
911
82e3b564
TT
9122019-12-01 Tom Tromey <tom@tromey.com>
913
914 * tui/tui-win.c (tui_all_windows_info): Treat inactive TUI
915 specially.
916
517d261d
TT
9172019-12-01 Tom Tromey <tom@tromey.com>
918
919 * tui/tui-winsource.c (tui_copy_source_line): Don't advance past
920 \0.
921 * unittests/tui-selftests.c: New file.
922 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add tui-selftests.c.
923
484c9b64
TT
9242019-12-01 Tom Tromey <tom@tromey.com>
925
926 * tui/tui.c (tui_enable): Call tui_update_variables earlier.
927
a2a7af0c
TT
9282019-12-01 Tom Tromey <tom@tromey.com>
929
930 * NEWS: Document new settings.
931 * tui/tui-wingeneral.c (box_win): Apply appropriate border style.
932 * tui/tui-win.c (_initialize_tui_win): Add border style
933 observers.
934 * tui/tui-io.h (tui_apply_style): Declare.
935 * tui/tui-io.c (tui_apply_style): Rename from apply_style. No
936 longer static.
937 (apply_ansi_escape, tui_set_reverse_mode): Update.
938 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
939 Add "skip_intensity" parameter.
940 <changed>: New member.
941 <do_set_value>: Declare.
942 (tui_border_style, tui_active_border_style): Declare.
943 * cli/cli-style.c (tui_border_style, tui_active_border_style): New
944 globals.
945 (cli_style_option): Initialize "changed".
946 (cli_style_option::do_set_value): New function.
947 (cli_style_option::add_setshow_commands): Add "skip_intensity"
948 parameter. Update.
949 (STYLE_ADD_SETSHOW_COMMANDS): Add "SKIP" parameter.
950 (_initialize_cli_style): Update. Create TUI border style
951 commands.
952
d1da6b01
TT
9532019-12-01 Tom Tromey <tom@tromey.com>
954
955 * tui/tui-winsource.h (tui_copy_source_line): Add "ndigits"
956 parameter.
957 * tui/tui-winsource.c (tui_copy_source_line): Add "ndigits"
958 parameter.
959 * tui/tui-win.h (compact_source): Declare.
960 * tui/tui-win.c (compact_source): New global.
961 (tui_set_compact_source, tui_show_compact_source): New functions.
962 (_initialize_tui_win): Add "compact-source" setting.
963 * tui/tui-source.c (tui_source_window::set_contents): Handle
964 compact_source setting.
965 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
966 * NEWS: Document new setting.
967
489dbda6
TT
9682019-11-30 Tom Tromey <tom@tromey.com>
969
970 * dwarf2read.c (dwarf2_add_field): Include field offset when
971 computing variant part length.
972
bf498525
PW
9732019-11-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
974 * NEWS: Mention define-prefix. Tell that command names can now
975 contain a . character.
976
be09caf1
PW
9772019-11-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
978
979 * command.h (valid_cmd_char_p): Declare.
980 * cli/cli-decode.c (valid_cmd_char_p): New function factorizing
981 the check of valid command char.
982 (find_command_name_length, valid_user_defined_cmd_name_p): Use
983 valid_cmd_char_p.
984 * cli/cli-script.c (validate_comname): Likewise.
985 * completer.c (gdb_completer_command_word_break_characters):
986 Do not remove . from the word break char, update comments.
987 (complete_line_internal_1): Use valid_cmd_char_p.
988 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
989 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
990
c6ac7fc9
PW
9912019-11-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
992
993 * cli/cli-script.c (do_define_command): Ensure a redefined
994 prefix command is kept as a prefix command.
995 (define_prefix_command): New function.
996 (show_user_1): Report user defined prefixes.
997 (_initialize_cli_script): Create the new 'define-prefix' command.
998 Add completers for 'define' and 'document'.
999 * top.c (execute_command): If command is a user-defined prefix only
1000 command, report the list of commands for this prefix command.
1001
a992a3b0
TBA
10022019-11-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1003
1004 * valops.c (find_oload_champ): Improve debug output.
1005
e9194a1a
TBA
10062019-11-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1007
1008 * valops.c (find_oload_champ): Print part of debug messages
1009 before the badness vector is std::move'd.
1010
53a008a6
TT
10112019-11-28 Tom Tromey <tom@tromey.com>
1012
1013 * value.c (creal_internal_fn): Fix comment.
1014
bab05c83
TT
10152019-11-28 Tom Tromey <tom@tromey.com>
1016
1017 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count,
1018 flag_bound_evaluated>: Now unsigned.
1019
2522f049
TT
10202019-11-28 Tom Tromey <tom@tromey.com>
1021
1022 * guile/guile-internal.h (vlscm_scm_from_value_unsafe): Don't
1023 declare.
1024
38b49e22
MS
10252019-11-28 Mihails Strasuns <mihails.strasuns@intel.com>
1026
1027 * jit.c (jit_bfd_try_read_symtab): Fix printed function name in the
1028 debug output.
1029 * jit.c (jit_unregister_code): Add debug print to match
1030 `jit_register_code`.
1031
35125921
CB
10322019-11-27 Christian Biesinger <cbiesinger@google.com>
1033
1034 * NEWS: Mention the new multithreaded symbol loading.
1035
62e77f56
CB
10362019-11-27 Christian Biesinger <cbiesinger@google.com>
1037
1038 * maint.c (n_worker_threads): Default to 0.
1039 (worker_threads_disabled): New function.
1040 * maint.h (worker_threads_disabled): New function.
1041 * minsyms.c (minimal_symbol_reader::record_full): Call symbol_set_names
1042 here if worker_threads_disabled () is true.
1043 (minimal_symbol_reader::install): Skip all threading if
1044 worker_threads_disabled () is true.
1045
f29d7f6b
CB
10462019-11-27 Christian Biesinger <cbiesinger@google.com>
1047
1048 * minsyms.c (add_minsym_to_hash_table): Use a previously computed
1049 hash code if possible.
1050 (add_minsym_to_demangled_hash_table): Likewise.
1051 (minimal_symbol_reader::install): Compute the hash codes for msymbol
1052 on the background thread.
1053 * symtab.h (struct minimal_symbol) <hash_value, demangled_hash_value>:
1054 Add these fields.
1055
e76b2246
CB
10562019-11-27 Christian Biesinger <cbiesinger@google.com>
1057
1058 * minsyms.c (minimal_symbol_reader::install): Also compute the hash
1059 of the mangled name on the background thread.
1060 * symtab.c (symbol_set_names): Allow passing in the hash of the
1061 linkage_name.
1062 * symtab.h (symbol_set_names): Likewise.
1063
8d9a2568
KB
10642019-11-27 Kevin Buettner <kevinb@redhat.com>
1065
1066 * dwarf2read.c (inherit_abstract_dies): Ensure that delayed
1067 physnames are computed for inherited DIEs.
1068
fad03f6e
TT
10692019-11-27 Tom Tromey <tromey@adacore.com>
1070
1071 * dwarf2read.h (struct dwarf2_per_objfile): Remove unnecessary
1072 backslashes.
1073 * cp-support.c: Remove unnecessary backslashes.
1074
43678b0a
CB
10752019-11-27 Christian Biesinger <cbiesinger@google.com>
1076
1077 * ada-exp.y (write_ambiguous_var): Replace SYMBOL_SET_LINKAGE_NAME
1078 with sym->set_linkage_name.
1079 * coffread.c (coff_read_enum_type): Likewise.
1080 * mdebugread.c (parse_symbol): Likewise.
1081 * stabsread.c (patch_block_stabs): Likewise.
1082 (define_symbol): Likewise.
1083 (read_enum_type): Likewise.
1084 (common_block_end): Likewise.
1085 * symtab.h (struct general_symbol_info) <set_linkage_name>: New
1086 function.
1087 (SYMBOL_SET_LINKAGE_NAME): Remove.
1088 * xcoffread.c (process_xcoff_symbol): Replace SYMBOL_SET_LINKAGE_NAME
1089 with sym->set_linkage_name.
1090
db5960b4
AB
10912019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
1092
1093 * mi/mi-cmds.c (mi_cmds): Add 'symbol-info-modules' entry.
1094 * mi/mi-cmds.h (mi_cmd_symbol_info_modules): Declare.
1095 * mi/mi-symbol-cmds.c (mi_cmd_symbol_info_modules): New function.
1096 * NEWS: Mention new MI command.
1097
7dc42066
AB
10982019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
1099
1100 * mi/mi-cmds.c (mi_cmds): Add '-symbol-info-functions',
1101 '-symbol-info-types', and '-symbol-info-variables'.
1102 * mi/mi-cmds.h (mi_cmd_symbol_info_functions): Declare.
1103 (mi_cmd_symbol_info_types): Declare.
1104 (mi_cmd_symbol_info_variables): Declare.
1105 * mi/mi-symbol-cmds.c: Add 'source.h' and 'mi-getopt.h' includes.
1106 (output_debug_symbol): New function.
1107 (output_nondebug_symbol): New function.
1108 (mi_symbol_info): New function.
1109 (mi_info_functions_or_variables): New function.
1110 (mi_cmd_symbol_info_functions): New function.
1111 (mi_cmd_symbol_info_types): New function.
1112 (mi_cmd_symbol_info_variables): New function.
1113 * NEWS: Mention new commands.
1114
5f512a7d
AB
11152019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
1116
1117 * symtab.c (symbol_to_info_string): New function, most content
1118 moved from print_symbol_info, but updated to return a std::string.
1119 (print_symbol_info): Update to use symbol_to_info_string and print
1120 returned string.
1121 * symtab.h (symbol_to_info_string): Declare new function.
1122
470c0b1c
AB
11232019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
1124
1125 * python/python.c (gdbpy_rbreak): Convert to using
1126 global_symbol_searcher.
1127 * symtab.c (file_matches): Convert return type to bool, change
1128 file list to std::vector, update header comment.
1129 (search_symbols): Rename to...
1130 (global_symbol_searcher::search): ...this and update now its
1131 a member function of global_symbol_searcher. Take account of the
1132 changes to file_matches.
1133 (symtab_symbol_info): Convert to using global_symbol_searcher.
1134 (rbreak_command): Likewise.
1135 (search_module_symbols): Likewise.
1136 * symtab.h (enum symbol_search): Update comment.
1137 (search_symbols): Remove declaration.
1138 (class global_symbol_searcher): New class.
1139
57357d9d
TT
11402019-11-26 Tom Tromey <tromey@adacore.com>
1141
1142 * cp-support.c (_initialize_cp_support): Conditionally initialize
1143 gdb_demangle_attempt_core_dump.
1144
3ea16160
TT
11452019-11-26 Tom Tromey <tom@tromey.com>
1146
1147 * python/py-function.c (fnpy_init): Update.
1148 * value.h (add_internal_function): Adjust declaration.
1149 * value.c (function_destroyer): Remove.
1150 (do_add_internal_function): Don't set destroyer or copy name.
1151 (add_internal_function): Take unique_xmalloc_ptr<char> for name.
1152 Set name_allocated.
1153 * python/py-cmd.c (cmdpy_destroyer): Don't free "name".
1154 (cmdpy_init): Set name_allocated.
1155 * cli/cli-decode.h (struct cmd_list_element) <name_allocated>: New
1156 member.
1157 (~cmd_list_element): Free "name" if needed.
1158
1a6d41c6
TT
11592019-11-26 Tom Tromey <tom@tromey.com>
1160
1161 * value.h (add_internal_function): Add new overload. Move
1162 documentation from value.h.
1163 * value.c (do_add_internal_function): New function.
1164 (add_internal_function): Use it. Add new overload.
1165 (function_destroyer): Don't free doc.
1166 * python/py-function.c (fnpy_init): Update.
1167
8318f3c3
TT
11682019-11-26 Tom Tromey <tom@tromey.com>
1169
1170 * python/py-cmd.c (cmdpy_destroyer): Don't free "doc".
1171 (cmdpy_init): Set "doc_allocated".
1172
4da8c3a8
TT
11732019-11-26 Tom Tromey <tom@tromey.com>
1174
1175 * gdbsupport/thread-pool.c (thread_pool::set_thread_count): Set
1176 name of worker thread.
1177 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for
1178 pthread_setname_np.
1179 * configure, config.in: Rebuild.
1180
971db5e2
TT
11812019-11-26 Tom Tromey <tom@tromey.com>
1182
1183 * python/python.c (class gdbpy_gil): New.
1184 (struct gdbpy_event): Add constructor, destructor, operator().
1185 (gdbpy_post_event): Use run_on_main_thread.
1186 (gdbpy_initialize_events): Remove.
1187 (do_start_initialization): Update.
1188
22138db6
TT
11892019-11-26 Tom Tromey <tom@tromey.com>
1190
1191 * NEWS: Add entry.
1192 * maint.c (_initialize_maint_cmds): Add "worker-threads" maint
1193 commands. Call update_thread_pool_size.
1194 (update_thread_pool_size, maintenance_set_worker_threads): New
1195 functions.
1196 (n_worker_threads): New global.
1197
d55c9a68
TT
11982019-11-26 Christian Biesinger <cbiesinger@google.com>
1199 Tom Tromey <tom@tromey.com>
1200
1201 * minsyms.c (minimal_symbol_reader::install): Use
1202 parallel_for_each.
1203 * gdbsupport/parallel-for.h: New file.
1204 * Makefile.in (HFILES_NO_SRCDIR): Add gdbsupport/parallel-for.h.
1205
a0b57563
CB
12062019-11-26 Christian Biesinger <cbiesinger@google.com>
1207 Tom Tromey <tom@tromey.com>
1208
1209 * gdbsupport/thread-pool.h: New file.
1210 * gdbsupport/thread-pool.c: New file.
1211 * Makefile.in (COMMON_SFILES): Add thread-pool.c.
1212 (HFILES_NO_SRCDIR): Add thread-pool.h.
1213
3b3978bc
TT
12142019-11-26 Tom Tromey <tom@tromey.com>
1215
1216 * event-top.h (thread_local_segv_handler): Declare.
1217 * event-top.c (thread_local_segv_handler): New global.
1218 (install_handle_sigsegv, handle_sigsegv): New functions.
1219 (async_init_signals): Install SIGSEGV handler.
1220 * cp-support.c (gdb_demangle_jmp_buf): Change type. Now
1221 thread-local.
1222 (report_failed_demangle): New function.
1223 (gdb_demangle): Make core_dump_allowed atomic. Remove signal
1224 handler-setting code, instead use segv_handler. Run warning code
1225 on main thread.
1226
9411c49e
TT
12272019-11-26 Tom Tromey <tom@tromey.com>
1228
1229 * run-on-main-thread.c: New file.
1230 * run-on-main-thread.h: New file.
1231 * unittests/main-thread-selftests.c: New file.
1232 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1233 main-thread-selftests.c.
1234 (HFILES_NO_SRCDIR): Add run-on-main-thread.h.
1235 (COMMON_SFILES): Add run-on-main-thread.c.
1236
c3efb965
TT
12372019-11-26 Tom Tromey <tom@tromey.com>
1238
1239 * main.c (setup_alternate_signal_stack): Remove.
1240 (captured_main_1): Use gdb::alternate_signal_stack.
1241 * gdbsupport/alt-stack.h: New file.
1242
21987b9c
TT
12432019-11-26 Tom Tromey <tom@tromey.com>
1244
1245 * gdbsupport/signals-state-save-restore.c (original_signal_mask):
1246 Remove comment.
1247 (save_original_signals_state, restore_original_signals_state): Use
1248 gdb_sigmask.
1249 * linux-nat.c (block_child_signals, restore_child_signals_mask)
1250 (_initialize_linux_nat): Use gdb_sigmask.
1251 * guile/guile.c (_initialize_guile): Use block_signals.
1252 * Makefile.in (HFILES_NO_SRCDIR): Add gdb-sigmask.h.
1253 * gdbsupport/gdb-sigmask.h: New file.
1254 * event-top.c (async_sigtstp_handler): Use gdb_sigmask.
1255 * cp-support.c (gdb_demangle): Use gdb_sigmask.
1256 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for
1257 pthread_sigmask.
1258 * configure, config.in: Rebuild.
1259 * gdbsupport/block-signals.h: New file.
1260
5e030278
TT
12612019-11-26 Tom Tromey <tom@tromey.com>
1262
1263 * acinclude.m4: Include ax_pthread.m4.
1264 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
1265 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
1266 (CLIBS): Use PTHREAD_LIBS.
1267 (aclocal_m4_deps): Add ax_pthread.m4.
1268 * config.in, configure: Rebuild.
1269 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for std::thread.
1270
5a79c107
TT
12712019-11-26 Tom Tromey <tom@tromey.com>
1272
1273 * symtab.h (struct minimal_symbol) <name_set>: New member.
1274 * minsyms.c (minimal_symbol_reader::record_full): Copy name.
1275 Don't call symbol_set_names.
1276 (minimal_symbol_reader::install): Call symbol_set_names.
1277
aa369509
PW
12782019-11-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1279
1280 * python/python.c (gdbpy_enter::~gdbpy_enter): Release GIL after
1281 restore_active_ext_lang, as GIL is needed for (indirectly)
1282 called PyOS_InterruptOccurred.
1283
cadc9cb8
SM
12842019-11-26 Simon Marchi <simon.marchi@efficios.com>
1285
1286 * sparc-nat.c (sparc_xfer_wcookie): Sync declaration with
1287 definition.
1288
d04afd58
SM
12892019-11-26 Simon Marchi <simon.marchi@efficios.com>
1290
1291 * remote-sim.c (simulator_command): Make static, remove
1292 declaration.
1293
dd694d77
SM
12942019-11-26 Simon Marchi <simon.marchi@efficios.com>
1295
1296 * unittests/array-view-selftests.c (check_ptr_size_ctor2): Make
1297 static.
1298 * unittests/basic_string_view/capacity/1.cc (test01): Likewise.
1299 * unittests/basic_string_view/cons/char/1.cc (test01): Likewise.
1300 (main): Likewise.
1301 * unittests/basic_string_view/cons/char/2.cc (test03): Likewise.
1302 (main): Likewise.
1303 * unittests/basic_string_view/cons/char/3.cc (test05): Likewise.
1304 (main): Likewise.
1305 * unittests/basic_string_view/element_access/char/1.cc (test01):
1306 Likewise.
1307 (main): Likewise.
1308 * unittests/basic_string_view/element_access/char/empty.cc (main):
1309 Likewise.
1310 * unittests/basic_string_view/element_access/char/front_back.cc
1311 (test01): Likewise.
1312 (main): Likewise.
1313 * unittests/basic_string_view/inserters/char/2.cc (test05):
1314 Likewise.
1315 (main): Likewise.
1316 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc
1317 (test01): Likewise.
1318 (main): Likewise.
1319 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc
1320 (test01): Likewise.
1321 (main): Likewise.
1322 * unittests/basic_string_view/modifiers/swap/char/1.cc (test01):
1323 Likewise.
1324 * unittests/basic_string_view/operations/compare/char/1.cc
1325 (test01): Likewise.
1326 (main): Likewise.
1327 * unittests/basic_string_view/operations/compare/char/13650.cc
1328 (test01): Likewise.
1329 * unittests/basic_string_view/operations/copy/char/1.cc (test01):
1330 Likewise.
1331 (main): Likewise.
1332 * unittests/basic_string_view/operations/data/char/1.cc (test01):
1333 Likewise.
1334 (main): Likewise.
1335 * unittests/basic_string_view/operations/find/char/1.cc (test01):
1336 Likewise.
1337 (main): Likewise.
1338 * unittests/basic_string_view/operations/find/char/2.cc (test02):
1339 Likewise.
1340 (main): Likewise.
1341 * unittests/basic_string_view/operations/find/char/3.cc (test03):
1342 Likewise.
1343 (main): Likewise.
1344 * unittests/basic_string_view/operations/find/char/4.cc (main):
1345 Likewise.
1346 * unittests/basic_string_view/operations/rfind/char/1.cc (test01):
1347 Likewise.
1348 (main): Likewise.
1349 * unittests/basic_string_view/operations/rfind/char/2.cc (test02):
1350 Likewise.
1351 (main): Likewise.
1352 * unittests/basic_string_view/operations/rfind/char/3.cc (test03):
1353 Likewise.
1354 (main): Likewise.
1355 * unittests/basic_string_view/operations/substr/char/1.cc
1356 (test01): Likewise.
1357 (main): Likewise.
1358 * unittests/basic_string_view/operators/char/2.cc (main):
1359 Likewise.
1360 * unittests/optional/assignment/1.cc (test): Likewise.
1361 * unittests/optional/assignment/2.cc (test): Likewise.
1362 * unittests/optional/assignment/3.cc (test): Likewise.
1363 * unittests/optional/assignment/4.cc (test): Likewise.
1364 * unittests/optional/assignment/5.cc (test): Likewise.
1365 * unittests/optional/assignment/6.cc (test): Likewise.
1366 * unittests/optional/assignment/7.cc (test): Likewise.
1367 * unittests/optional/cons/copy.cc (test): Likewise.
1368 * unittests/optional/cons/default.cc (test): Likewise.
1369 * unittests/optional/cons/move.cc (test): Likewise.
1370 * unittests/optional/cons/value.cc (test): Likewise.
1371 * unittests/optional/in_place.cc (test): Likewise.
1372 * unittests/optional/observers/1.cc (test): Likewise.
1373 * unittests/optional/observers/2.cc (test): Likewise.
1374
3b5c1d49
SM
13752019-11-26 Simon Marchi <simon.marchi@efficios.com>
1376
1377 * tui-win.h (tui_set_var_cmd): Remove.
1378 * tui-win.c (tui_set_var_cmd): Make static.
1379
adce99fe
SM
13802019-11-26 Simon Marchi <simon.marchi@efficios.com>
1381
1382 * breakpoint.h (hbreak_command_wrapper, thbreak_command_wrapper,
1383 rbreak_command_wrapper): Remove.
1384 * symtab.c (rbreak_command_wrapper): Remove.
1385
fe3adccf
SM
13862019-11-26 Simon Marchi <simon.marchi@efficios.com>
1387
1388 * inferior.h (info_terminal_command): Remove declaration.
1389 * inflow.c (info_terminal_command): Make static.
1390
b926335f
SM
13912019-11-26 Simon Marchi <simon.marchi@efficios.com>
1392
1393 * inferior.c (exit_inferior_silent): Remove.
1394
b62f6f54
SM
13952019-11-26 Simon Marchi <simon.marchi@efficios.com>
1396
1397 * dictionary.c (dict_empty, mdict_empty): Remove.
1398 * dictionary.c (mdict_empty): Remove.
1399
cb8c24b6
SM
14002019-11-26 Simon Marchi <simon.marchi@efficios.com>
1401
1402 * arc-tdep.c (arc_insn_get_memory_base_reg): Make static.
1403 (arc_insn_get_memory_offset): Likewise.
1404 (arc_insn_dump): Likewise.
1405 * cp-support.c (test_cp_symbol_name_matches): Likewise.
1406 * csky-linux-tdep.c (csky_supply_fregset): Likewise.
1407 * dictionary.c (dict_iterator_next): Likewise.
1408 (dict_iter_match_first): Likewise.
1409 (dict_iter_match_next): Likewise.
1410 * f-lang.c (evaluate_subexp_f): Likewise.
1411 * hppa-tdep.c (hppa_read_pc): Likewise.
1412 * i386-tdep.c (i386_floatformat_for_type): Likewise.
1413 * parse.c (write_exp_elt_msym): Likewise.
1414 * ppc-linux-tdep.c (ppc_floatformat_for_type): Likewise.
1415 * remote.c (remote_packet_size): Likewise.
1416 (remote_notif_stop_parse): Likewise.
1417 * rs6000-aix-tdep.c (aix_sighandle_frame_sniffer): Likewise.
1418 * s12z-tdep.c (s12z_disassemble_info): Likewise.
1419 * source.c (prepare_path_for_appending): Likewise.
1420 * sparc64-linux-tdep.c
1421 (sparc64_linux_handle_segmentation_fault); Likewise.
1422 * stack.c (frame_selection_by_function_completer): Likewise.
1423
781597ff
SM
14242019-11-26 Simon Marchi <simon.marchi@efficios.com>
1425
1426 * completer.c (set_gdb_completion_word_break_characters):
1427 Remove.
1428
23baa4cc
SM
14292019-11-26 Simon Marchi <simon.marchi@efficios.com>
1430
1431 * dwarf-index-write.c: Include dwarf-index-write.h.
1432 * mi/mi-interp.c: Include mi/mi-interp.h.
1433
23767560
SM
14342019-11-26 Simon Marchi <simon.marchi@efficios.com>
1435
1436 * aarch32-tdep.c: Include aarch32-tdep.h.
1437 * aarch32-tdep.h: Forward-declare struct target_desc.
1438
6d91ce9a
CB
14392019-11-26 Christian Biesinger <cbiesinger@google.com>
1440
1441 * linux-nat.c (detach_one_lwp): Call safe_strerror instead of
1442 strerror.
1443 * nto-procfs.c (nto_procfs_target::create_inferior): Likewise.
1444 * windows-nat.c (windows_nat_target::create_inferior): Likewise.
1445
3cf2f237
TV
14462019-11-25 Tom de Vries <tdevries@suse.de>
1447
1448 * contrib/words.sh: Add -c option.
1449
5b89c67a
CB
14502019-11-25 Christian Biesinger <cbiesinger@google.com>
1451
1452 * solib.c (solib_find_1): Change int to bool.
1453 (exec_file_find): Change int to bool.
1454 (solib_find): Change int to bool.
1455 (solib_read_symbols): Change int to bool.
1456 (solib_used): Change int to bool.
1457 (solib_add): Change int to bool.
1458 (info_sharedlibrary_command): Change int to bool.
1459 (solib_contains_address_p): Change int to bool.
1460 (solib_keep_data_in_core): Change int to bool.
1461 (in_solib_dynsym_resolve_code): Change int to bool.
1462 (reload_shared_libraries_1): Change int to bool.
1463 (gdb_sysroot_changed): Change int to bool.
1464 * solib.h (solib_read_symbols): Change int to bool.
1465 (solib_contains_address_p): Change int to bool.
1466 (solib_keep_data_in_core): Change int to bool.
1467 (in_solib_dynsym_resolve_code): Change int to bool.
1468 (libpthread_name_p): Change int to bool.
1469
6cc8564b
LM
14702019-11-25 Luis Machado <luis.machado@linaro.org>
1471
1472 * NEWS (New Commands): Mention "set debug remote-packet-max-chars".
1473 * remote.c (REMOTE_DEBUG_MAX_CHAR): Remove.
1474 (remote_packet_max_chars): New static global.
1475 (show_remote_packet_max_chars): New function.
1476 (remote_target::putpkt_binary): Adjust to use new
1477 remote_packet_max_chars option.
1478 (remote_target::getpkt_or_notif_sane_1): Likewise.
1479 (_initialize_remote): Register new remote-packet-max-chars option.
1480
a7cdaa91
SM
14812019-11-24 Simon Marchi <simon.marchi@efficios.com>
1482
1483 * m68k-linux-nat.c: Include gdbarch.h.
1484
26abc753
TT
14852019-11-24 Tom Tromey <tom@tromey.com>
1486
1487 * symfile.c (read_symbols): Update.
1488 * psymtab.c (require_partial_symbols): Change type of "verbose" to
1489 bool.
1490 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
1491 (psym_lookup_symbol, psym_find_last_source_symtab)
1492 (psym_forget_cached_source_info, psym_print_stats)
1493 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
1494 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
1495 (psym_map_matching_symbols, psym_expand_symtabs_matching)
1496 (psym_find_compunit_symtab_by_address)
1497 (maintenance_print_psymbols, maintenance_info_psymtabs)
1498 (maintenance_check_psymtabs): Update.
1499 * psymtab.h (require_partial_symbols): Change type of "verbose" to
1500 bool.
1501
012fc909
TT
15022019-11-22 Tom Tromey <tom@tromey.com>
1503
1504 * observable.h: Update comments.
1505
c83d8d32
TT
15062019-11-22 Tom Tromey <tromey@adacore.com>
1507
1508 * ada-tasks.c (ada_task_is_alive): Make parameter const.
1509 (print_ada_task_info): Don't try to fetch thread id if task is not
1510 alive.
1511
987012b8
CB
15122019-11-22 Christian Biesinger <cbiesinger@google.com>
1513
1514 * ada-exp.y: Update.
1515 * ada-lang.c (sort_choices): Update.
1516 (ada_print_symbol_signature): Update.
1517 (resolve_subexp): Update.
1518 (ada_parse_renaming): Update.
1519 (ada_read_renaming_var_value): Update.
1520 (lesseq_defined_than): Update.
1521 (remove_extra_symbols): Update.
1522 (remove_irrelevant_renamings): Update.
1523 (ada_add_block_symbols): Update.
1524 (ada_collect_symbol_completion_matches): Update.
1525 (ada_is_renaming_symbol): Update.
1526 (aggregate_assign_from_choices): Update.
1527 (ada_evaluate_subexp): Update.
1528 (ada_has_this_exception_support): Update.
1529 (ada_is_non_standard_exception_sym): Update.
1530 (ada_add_exceptions_from_frame): Update.
1531 (ada_add_global_exceptions): Update.
1532 (ada_print_subexp): Update.
1533 * ax-gdb.c (gen_var_ref): Update.
1534 (gen_maybe_namespace_elt): Update.
1535 (gen_expr_for_cast): Update.
1536 (gen_expr): Update.
1537 * block.h: Update.
1538 * blockframe.c (find_pc_partial_function): Update.
1539 * breakpoint.c (print_breakpoint_location): Update.
1540 (update_static_tracepoint): Update.
1541 * btrace.c (ftrace_print_function_name): Update.
1542 (ftrace_function_switched): Update.
1543 * buildsym.c (find_symbol_in_list): Update.
1544 * c-exp.y: Update.
1545 * c-typeprint.c (c_print_typedef): Update.
1546 (c_type_print_template_args): Update.
1547 * cli/cli-cmds.c (edit_command): Update.
1548 (list_command): Update.
1549 (print_sal_location): Update.
1550 * coffread.c (patch_opaque_types): Update.
1551 (process_coff_symbol): Update.
1552 (coff_read_enum_type): Update.
1553 * compile/compile-c-symbols.c (c_symbol_substitution_name): Update.
1554 (convert_one_symbol): Update.
1555 (hash_symname): Update.
1556 (eq_symname): Update.
1557 * compile/compile-cplus-symbols.c (convert_one_symbol): Update.
1558 * compile/compile-cplus-types.c (debug_print_scope): Update.
1559 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
1560 * compile/compile-object-load.c (get_out_value_type): Update.
1561 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
1562 (search_symbol_list): Update.
1563 (cp_lookup_symbol_imports_or_template): Update.
1564 * cp-support.c (overload_list_add_symbol): Update.
1565 * ctfread.c (psymtab_to_symtab): Update.
1566 * dbxread.c (cp_set_block_scope): Update.
1567 * dictionary.c (iter_match_first_hashed): Update.
1568 (iter_match_next_hashed): Update.
1569 (insert_symbol_hashed): Update.
1570 (iter_match_next_linear): Update.
1571 * dictionary.h: Update.
1572 * dwarf2loc.c (func_get_frame_base_dwarf_block): Update.
1573 (locexpr_describe_location_piece): Update.
1574 (locexpr_describe_location_1): Update.
1575 (locexpr_generate_c_location): Update.
1576 (loclist_describe_location): Update.
1577 (loclist_generate_c_location): Update.
1578 * dwarf2read.c (dw2_debug_names_lookup_symbol): Update.
1579 (read_func_scope): Update.
1580 (process_enumeration_scope): Update.
1581 (new_symbol): Update.
1582 (dwarf2_const_value): Update.
1583 (dwarf2_symbol_mark_computed): Update.
1584 * eval.c (evaluate_funcall): Update.
1585 (evaluate_subexp_standard): Update.
1586 * expprint.c (print_subexp_standard): Update.
1587 (dump_subexp_body_standard): Update.
1588 * f-valprint.c (info_common_command_for_block): Update.
1589 * findvar.c (get_hosting_frame): Update.
1590 (default_read_var_value): Update.
1591 * go-lang.c (go_symbol_package_name): Update.
1592 * guile/scm-block.c (bkscm_print_block_smob): Update.
1593 * guile/scm-symbol.c (syscm_print_symbol_smob): Update.
1594 (gdbscm_symbol_name): Update.
1595 (gdbscm_symbol_linkage_name): Update.
1596 (gdbscm_symbol_print_name): Update.
1597 * infcall.c (get_function_name): Update.
1598 * infcmd.c (jump_command): Update.
1599 (finish_command): Update.
1600 * infrun.c (insert_exception_resume_breakpoint): Update.
1601 * linespec.c (canonicalize_linespec): Update.
1602 (create_sals_line_offset): Update.
1603 (convert_linespec_to_sals): Update.
1604 (complete_label): Update.
1605 (find_label_symbols_in_block): Update.
1606 * m2-typeprint.c (m2_print_typedef): Update.
1607 * mdebugread.c (mdebug_reg_to_regnum): Update.
1608 (parse_symbol): Update.
1609 (mylookup_symbol): Update.
1610 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
1611 (list_args_or_locals): Update.
1612 * objc-lang.c (compare_selectors): Update.
1613 (info_selectors_command): Update.
1614 (compare_classes): Update.
1615 (info_classes_command): Update.
1616 (find_imps): Update.
1617 * p-typeprint.c (pascal_print_typedef): Update.
1618 * printcmd.c (build_address_symbolic): Update.
1619 (info_address_command): Update.
1620 (print_variable_and_value): Update.
1621 * python/py-framefilter.c (extract_sym): Update.
1622 (py_print_single_arg): Update.
1623 * python/py-symbol.c (sympy_str): Update.
1624 (sympy_get_name): Update.
1625 (sympy_get_linkage_name): Update.
1626 * python/python.c (gdbpy_rbreak): Update.
1627 * record-btrace.c (btrace_get_bfun_name): Update.
1628 (btrace_call_history): Update.
1629 * rust-lang.c (rust_print_typedef): Update.
1630 * solib-frv.c (frv_fdpic_find_canonical_descriptor): Update.
1631 * stabsread.c (stab_reg_to_regnum): Update.
1632 (define_symbol): Update.
1633 (read_enum_type): Update.
1634 (common_block_end): Update.
1635 (cleanup_undefined_types_1): Update.
1636 (scan_file_globals): Update.
1637 * stack.c (print_frame_arg): Update.
1638 (print_frame_args): Update.
1639 (find_frame_funname): Update.
1640 (info_frame_command_core): Update.
1641 (iterate_over_block_locals): Update.
1642 (print_block_frame_labels): Update.
1643 (do_print_variable_and_value): Update.
1644 (iterate_over_block_arg_vars): Update.
1645 (return_command): Update.
1646 * symmisc.c (dump_symtab_1): Update.
1647 (print_symbol): Update.
1648 * symtab.c (eq_symbol_entry): Update.
1649 (symbol_cache_dump): Update.
1650 (lookup_language_this): Update.
1651 (find_pc_sect_line): Update.
1652 (skip_prologue_sal): Update.
1653 (symbol_search::compare_search_syms): Update.
1654 (treg_matches_sym_type_name): Update.
1655 (search_symbols): Update.
1656 (print_symbol_info): Update.
1657 (rbreak_command): Update.
1658 (completion_list_add_symbol): Update.
1659 (find_gnu_ifunc): Update.
1660 (get_symbol_address): Update.
1661 (search_module_symbols): Update.
1662 (info_module_subcommand): Update.
1663 * symtab.h (SYMBOL_NATURAL_NAME): Remove.
1664 (SYMBOL_LINKAGE_NAME): Remove.
1665 (SYMBOL_DEMANGLED_NAME): Remove.
1666 (SYMBOL_PRINT_NAME): Remove.
1667 (SYMBOL_SEARCH_NAME): Remove.
1668 * tracepoint.c (set_traceframe_context): Update.
1669 (validate_actionline): Update.
1670 (collection_list::collect_symbol): Update.
1671 (encode_actions_1): Update.
1672 (info_scope_command): Update.
1673 (print_one_static_tracepoint_marker): Update.
1674 * typeprint.c (typedef_hash_table::add_template_parameters): Update.
1675 * valops.c (address_of_variable): Update.
1676 (find_overload_match): Update.
1677 (find_oload_champ): Update.
1678
c9d95fa3
CB
16792019-11-22 Christian Biesinger <cbiesinger@google.com>
1680
1681 * ada-lang.c (ada_lookup_simple_minsym): Update.
1682 (ada_collect_symbol_completion_matches): Update.
1683 * ada-tasks.c (read_atcb): Update.
1684 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
1685 (amd64_windows_skip_trampoline_code): Update.
1686 * arm-tdep.c (skip_prologue_function): Update.
1687 (arm_skip_stack_protector): Update.
1688 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
1689 (arm_wince_skip_main_prologue): Update.
1690 * ax-gdb.c (gen_expr): Update.
1691 * block.c (call_site_for_pc): Update.
1692 * blockframe.c (find_pc_partial_function): Update.
1693 * breakpoint.c (set_breakpoint_location_function): Update.
1694 * btrace.c (ftrace_print_function_name): Update.
1695 (ftrace_function_switched): Update.
1696 * c-valprint.c (print_unpacked_pointer): Update.
1697 * coffread.c (coff_symfile_read): Update.
1698 * compile/compile-c-symbols.c (convert_symbol_bmsym): Update.
1699 * compile/compile-cplus-symbols.c (convert_symbol_bmsym): Update.
1700 * dwarf-index-write.c (write_psymbols): Update.
1701 * dwarf2loc.c (call_site_to_target_addr): Update.
1702 (func_verify_no_selftailcall): Update.
1703 (tailcall_dump): Update.
1704 (call_site_find_chain_1): Update.
1705 (dwarf_expr_reg_to_entry_parameter): Update.
1706 * elfread.c (elf_gnu_ifunc_record_cache): Update.
1707 * eval.c (evaluate_funcall): Update.
1708 (evaluate_subexp_standard): Update.
1709 (evaluate_subexp_for_sizeof): Update.
1710 * expprint.c (print_subexp_standard): Update.
1711 (dump_subexp_body_standard): Update.
1712 * frame.c (get_prev_frame_always_1): Update.
1713 * frv-tdep.c (frv_skip_main_prologue): Update.
1714 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
1715 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
1716 (gnuv3_get_typename_from_type_info): Update.
1717 (gnuv3_skip_trampoline): Update.
1718 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
1719 * i386-tdep.c (i386_skip_main_prologue): Update.
1720 (i386_pe_skip_trampoline_code): Update.
1721 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
1722 * infcall.c (get_function_name): Update.
1723 * linespec.c (minsym_found): Update.
1724 * linux-fork.c (info_checkpoints_command): Update.
1725 * m32c-tdep.c (m32c_m16c_address_to_pointer): Update.
1726 (m32c_m16c_pointer_to_address): Update.
1727 * maint.c (maintenance_translate_address): Update.
1728 * minsyms.c (add_minsym_to_hash_table): Update.
1729 (add_minsym_to_demangled_hash_table): Update.
1730 (lookup_minimal_symbol_mangled): Update.
1731 (lookup_minimal_symbol_demangled): Update.
1732 (lookup_minimal_symbol_linkage): Update.
1733 (lookup_minimal_symbol_text): Update.
1734 (lookup_minimal_symbol_by_pc_name): Update.
1735 (minimal_symbol_is_less_than): Update.
1736 (compact_minimal_symbols): Update.
1737 (build_minimal_symbol_hash_tables): Update.
1738 (find_solib_trampoline_target): Update.
1739 * mips-tdep.c (mips_stub_frame_sniffer): Update.
1740 (mips_skip_pic_trampoline_code): Update.
1741 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
1742 * objc-lang.c (info_selectors_command): Update.
1743 (info_classes_command): Update.
1744 (find_methods): Update.
1745 (find_imps): Update.
1746 * p-valprint.c (pascal_val_print): Update.
1747 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Update.
1748 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
1749 * printcmd.c (build_address_symbolic): Update.
1750 (info_symbol_command): Update.
1751 * psymtab.c (psymbol_name_matches): Update.
1752 (match_partial_symbol): Update.
1753 (lookup_partial_symbol): Update.
1754 (print_partial_symbols): Update.
1755 (sort_pst_symbols): Update.
1756 (maintenance_check_psymtabs): Update.
1757 * python/py-framefilter.c (py_print_frame): Update.
1758 * python/python.c (gdbpy_rbreak): Update.
1759 * record-btrace.c (btrace_get_bfun_name): Update.
1760 (btrace_call_history): Update.
1761 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
1762 (rs6000_skip_trampoline_code): Update.
1763 * sol-thread.c (info_cb): Update.
1764 * stabsread.c (scan_file_globals): Update.
1765 * stack.c (find_frame_funname): Update.
1766 (info_frame_command_core): Update.
1767 * symmisc.c (dump_msymbols): Update.
1768 * symtab.c (symbol_natural_name): Rename to..,
1769 (general_symbol_info::natural_name): ...this.
1770 (symbol_demangled_name): Rename to...
1771 (general_symbol_info::demangled_name): ...this.
1772 (symbol_search_name): Rename to...
1773 (general_symbol_info::search_name): ...this.
1774 (symbol_matches_search_name): Update.
1775 (find_pc_sect_line): Update.
1776 (skip_prologue_sal): Update.
1777 (search_symbols): Update.
1778 (print_msymbol_info): Update.
1779 (rbreak_command): Update.
1780 (completion_list_add_msymbol): Update.
1781 (completion_list_objc_symbol): Update.
1782 (get_msymbol_address): Update.
1783 * symtab.h (struct general_symbol_info): Add member functions
1784 natural_name (), linkage_name (), print_name (), demangled_name (),
1785 and search_name ().
1786 (SYMBOL_NATURAL_NAME): Update.
1787 (symbol_natural_name): Move to a member function on general_symbol_info.
1788 (SYMBOL_DEMANGLED_NAME): Update.
1789 (symbol_demangled_name): Move to a member function on
1790 general_symbol_info.
1791 (SYMBOL_SEARCH_NAME): Update.
1792 (symbol_search_name): Move to a member function on general_symbol_info.
1793 (MSYMBOL_NATURAL_NAME): Remove.
1794 (MSYMBOL_LINKAGE_NAME): Remove.
1795 (MSYMBOL_PRINT_NAME): Remove.
1796 (MSYMBOL_DEMANGLED_NAME): Remove.
1797 (MSYMBOL_SEARCH_NAME): Remove.
1798 * x86-tdep.c (x86_in_indirect_branch_thunk): Update.
1799
f8bab2d6
CB
18002019-11-22 Christian Biesinger <cbiesinger@google.com>
1801
1802 * symtab.c (create_demangled_names_hash): Use per_bfd->
1803 minimal_symbol_count for computing the initial size, if greater
1804 than our default size.
1805
85e7588d
TV
18062019-11-22 Tom de Vries <tdevries@suse.de>
1807
1808 * contrib/words.sh: Improve words extraction.
1809
f6180073
TV
18102019-11-22 Tom de Vries <tdevries@suse.de>
1811
1812 * contrib/words.sh: Combine sed invocations.
1813
f10ffa41
CB
18142019-11-21 Christian Biesinger <cbiesinger@google.com>
1815
1816 * Makefile.in: Update.
1817 * demangle.c: Rename to...
1818 * gdb-demangle.c: ..this.
1819 (is_cplus_marker): Change return type to bool.
1820 (_initialize_demangler): Rename to...
1821 (_initialize_gdb_demangle): ...this.
1822 * gdb-demangle.h (is_cplus_marker): Change return type to bool.
1823 * symtab.h (demangle): Remove declaration; instead include
1824 gdb-demangle.h.
1825
6ba18521
TT
18262019-11-21 Tom Tromey <tromey@adacore.com>
1827
1828 * gdbsupport/format.c (format_pieces): Parse %I64d.
1829 * unittests/format_pieces-selftests.c (test_windows_formats): New
1830 function.
1831 (run_tests): Call it.
1832
34877895
PJ
18332019-11-21 Peeter Joot <peeter.joot@lzlabs.com>
1834
1835 Byte reverse display of variables with DW_END_big, DW_END_little
1836 (DW_AT_endianity) dwarf attributes if different than the native
1837 byte order.
1838 * ada-lang.c (ada_value_binop):
1839 Use type_byte_order instead of gdbarch_byte_order.
1840 * ada-valprint.c (printstr):
1841 (ada_val_print_string):
1842 * ada-lang.c (value_pointer):
1843 (ada_value_binop):
1844 Use type_byte_order instead of gdbarch_byte_order.
1845 * c-lang.c (c_get_string):
1846 Use type_byte_order instead of gdbarch_byte_order.
1847 * c-valprint.c (c_val_print_array):
1848 Use type_byte_order instead of gdbarch_byte_order.
1849 * cp-valprint.c (cp_print_class_member):
1850 Use type_byte_order instead of gdbarch_byte_order.
1851 * dwarf2loc.c (rw_pieced_value):
1852 Use type_byte_order instead of gdbarch_byte_order.
1853 * dwarf2read.c (read_base_type): Handle DW_END_big,
1854 DW_END_little
1855 * f-lang.c (f_get_encoding):
1856 Use type_byte_order instead of gdbarch_byte_order.
1857 * findvar.c (default_read_var_value):
1858 Use type_byte_order instead of gdbarch_byte_order.
1859 * gdbtypes.c (check_types_equal):
1860 Require matching TYPE_ENDIANITY_NOT_DEFAULT if set.
1861 (recursive_dump_type): Print TYPE_ENDIANITY_BIG,
1862 and TYPE_ENDIANITY_LITTLE if set.
1863 (type_byte_order): new function.
1864 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): New macro.
1865 (struct main_type) <flag_endianity_not_default>:
1866 New field.
1867 (type_byte_order): New function.
1868 * infcmd.c (default_print_one_register_info):
1869 Use type_byte_order instead of gdbarch_byte_order.
1870 * p-lang.c (pascal_printstr):
1871 Use type_byte_order instead of gdbarch_byte_order.
1872 * p-valprint.c (pascal_val_print):
1873 Use type_byte_order instead of gdbarch_byte_order.
1874 * printcmd.c (print_scalar_formatted):
1875 Use type_byte_order instead of gdbarch_byte_order.
1876 * solib-darwin.c (darwin_current_sos):
1877 Use type_byte_order instead of gdbarch_byte_order.
1878 * solib-svr4.c (solib_svr4_r_ldsomap):
1879 Use type_byte_order instead of gdbarch_byte_order.
1880 * stap-probe.c (stap_modify_semaphore):
1881 Use type_byte_order instead of gdbarch_byte_order.
1882 * target-float.c (target_float_same_format_p):
1883 Use type_byte_order instead of gdbarch_byte_order.
1884 * valarith.c (scalar_binop):
1885 (value_bit_index):
1886 Use type_byte_order instead of gdbarch_byte_order.
1887 * valops.c (value_cast):
1888 Use type_byte_order instead of gdbarch_byte_order.
1889 * valprint.c (generic_emit_char):
1890 (generic_printstr):
1891 (val_print_string):
1892 Use type_byte_order instead of gdbarch_byte_order.
1893 * value.c (unpack_long):
1894 (unpack_bits_as_long):
1895 (unpack_value_bitfield):
1896 (modify_field):
1897 (pack_long):
1898 (pack_unsigned_long):
1899 Use type_byte_order instead of gdbarch_byte_order.
1900 * findvar.c (unsigned_pointer_to_address):
1901 (signed_pointer_to_address):
1902 (unsigned_address_to_pointer):
1903 (address_to_signed_pointer):
1904 (default_read_var_value):
1905 (default_value_from_register):
1906 Use type_byte_order instead of gdbarch_byte_order.
1907 * gnu-v3-abi.c (gnuv3_make_method_ptr):
1908 Use type_byte_order instead of gdbarch_byte_order.
1909 * riscv-tdep.c (riscv_print_one_register_info):
1910 Use type_byte_order instead of gdbarch_byte_order.
1911
87fb00ea
SM
19122019-11-21 Simon Marchi <simon.marchi@polymtl.ca>
1913
1914 * top.c (current_ui_gdb_stdout_ptr): Spell out by hand.
1915 (current_ui_gdb_stdin_ptr): Likewise.
1916 (current_ui_gdb_stderr_ptr): Likewise.
1917 (current_ui_gdb_stdlog_ptr): Likewise.
1918 (current_ui_current_uiout_ptr): Likewise.
1919 (gen_ret_current_ui_field_ptr): Remove.
1920
65d1cd5f
TV
19212019-11-21 Tom de Vries <tdevries@suse.de>
1922
1923 PR gdb/24956
1924 * cli/cli-script.c (execute_control_command): Only switch to
1925 INTERP_CONSOLE's ui_out when INTERP_MI is active.
1926
9f6ad286
TT
19272019-11-19 Tom Tromey <tom@tromey.com>
1928
1929 * tui/tui-win.c (tui_partial_win_by_name): Move from tui-data.c.
1930 Now static. Change type of "name".
1931 (tui_set_win_height_command): Don't copy "arg".
1932 * tui/tui-data.h (tui_partial_win_by_name): Don't declare.
1933 * tui/tui-data.c (tui_partial_win_by_name): Move to tui-win.c.
1934
435d3d88
AT
19352019-11-19 Ali Tamur <tamur@google.com>
1936
1937 * dwarf2read.c (dw2_get_file_names_reader): Replace "if (attr)" with
1938 "if (attr != nullptr)".
1939 (dwarf2_find_base_address): Likewise.
1940 (dwarf2_build_include_psymtabs): Likewise.
1941 (read_cutu_die_from_dwo): Likewise.
1942 (read_func_scope): Likewise.
1943 (read_call_site_scope): Likewise.
1944 (dwarf2_get_pc_bounds): Likewise.
1945 (dwarf2_record_block_ranges): Likewise.
1946 (dwarf2_add_field): Likewise.
1947 (dwarf2_add_member_fn): Likewise.
1948 (read_structure_type): Likewise.
1949 (read_enumeration_type): Likewise.
1950 (read_array_type): Likewise.
1951 (read_array_order): Likewise.
1952 (read_set_type): Likewise.
1953 (read_common_block): Likewise.
1954 (read_tag_reference_type): Likewise.
1955 (read_tag_string_type): Likewise.
1956 (read_subroutine_type): Likewise.
1957 (read_base_type): Likewise.
1958 (read_subrange_type): Likewise.
1959 (new_symbol): Likewise.
1960 (prepare_one_comp_unit): Likewise.
1961
c9739b6a
TT
19622019-11-19 Tom Tromey <tromey@adacore.com>
1963
1964 * windows-nat.c (windows_nat_target::attach): Include GetLastError
1965 result in error when DebugActiveProcess fails.
1966
494409bb
SDJ
19672019-11-18 Sergio Durigan Junior <sergiodj@redhat.com>
1968 Pedro Alves <palves@redhat.com>
1969
1970 https://bugzilla.redhat.com/show_bug.cgi?id=1765117
1971 * target.c (target_stack::push): Call 'unpush' if there's a
1972 target on top of the stack.
1973
2e953aca
PW
19742019-11-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1975
1976 * python/py-block.c (blpy_dealloc): Call tp_free.
1977 (blpy_block_syms_dealloc): Likewise.
1978 * python/py-finishbreakpoint.c (bpfinishpy_dealloc): Likewise.
1979 * python/py-inferior.c (infpy_dealloc): Likewise.
1980 * python/py-lazy-string.c (stpy_dealloc): Likewise.
1981 * python/py-linetable.c (ltpy_iterator_dealloc): Likewise.
1982 * python/py-symbol.c (sympy_dealloc): Likewise.
1983 * python/py-symtab.c (stpy_dealloc): Likewise.
1984 * python/py-type.c (typy_iterator_dealloc): Likewise.
1985
6edc43ec
CB
19862019-11-18 Christian Biesinger <cbiesinger@google.com>
1987
1988 * symtab.h (struct symbol) <owner>: Initialize explicitly in the
1989 constructor instead of using a class initializer.
1990
cd850b40
CB
19912019-11-15 Christian Biesinger <cbiesinger@google.com>
1992
1993 * Makefile.in: Replace {posix,mingw}-strerror.c with safe-strerror.c.
1994 * configure: Regenerate.
1995 * configure.ac: Don't source common.host.
1996 * gdbsupport/common.host: Remove.
1997 * gdbsupport/mingw-strerror.c: Remove.
1998 * gdbsupport/posix-strerror.c: Rename to...
1999 * gdbsupport/safe-strerror.c: ...this.
2000
53fea9c7
CB
20012019-11-15 Christian Biesinger <cbiesinger@google.com>
2002
2003 * maint.c (scoped_command_stats::print_time): Use localtime_r
2004 instead of localtime (provided through gnulib if necessary).
2005 * nat/linux-osdata.c (time_from_time_t): Use ctime_r instead
2006 of ctime.
2007
f8e27d88
CB
20082019-11-15 Christian Biesinger <cbiesinger@google.com>
2009
2010 * gdbsupport/common-defs.h: Include time.h before pathmax.h to
2011 avoid compile errors.
2012
5abebf3c
CB
20132019-11-15 Christian Biesinger <cbiesinger@google.com>
2014
2015 * config.in: Regenerate.
2016 * configure: Regenerate.
2017 * gdbsupport/common.m4: No longer check for strerror_r.
2018 * gdbsupport/posix-strerror.c (safe_strerror): Always call the
2019 POSIX version of strerror_r, now that gnulib provides it if
2020 necessary.
2021
9a351667
CB
20222019-11-14 Christian Biesinger <cbiesinger@google.com>
2023
2024 * README (`configure' options): Update.
2025
55708e99
TT
20262019-11-14 Tom Tromey <tromey@adacore.com>
2027
2028 * eval.c (evaluate_subexp_standard) <BINOP_ASSIGN>: Do not pass an
2029 expected type for the RHS if the LHS is a convenience variable.
2030
4b09bb2e
SM
20312019-11-14 Simon Marchi <simon.marchi@polymtl.ca>
2032
2033 * unittests/vec-utils-selftests.c (unordered_remove_tests::obj):
2034 Provide explicit default and copy constructor.
2035
bd454f8b
PW
20362019-11-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2037
2038 * python/py-finishbreakpoint.c (gdbpy_breakpoint_created):
2039 only call Py_INCREF (newbp) in the bppy_pending_object case.
2040
d1aa3cf0
TT
20412019-11-13 Tom Tromey <tromey@adacore.com>
2042
2043 PR build/25182:
2044 * psympriv.h (partial_symbol): Remove static assert.
2045 * symtab.h (general_symbol_info, symbol): Remove static assert.
2046
e06f3d6e
AB
20472019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
2048
2049 * gdbsupport/format.c (format_pieces::format_pieces): Support
2050 printf 'z' size modifier.
2051 * gdbsupport/format.h (enum argclass): Add size_t_arg.
2052 * printcmd.c (ui_printf): Handle size_t_arg.
2053 * ui-out.c (ui_out::vmessage): Likewise.
2054 * unittests/format_pieces-selftests.c (test_format_int_sizes): New
2055 function.
2056 (run_tests): Call test_format_int_sizes.
2057
468c0cbb
CB
20582019-11-12 Christian Biesinger <cbiesinger@google.com>
2059
2060 * ada-exp.y (write_ambiguous_var): Update.
2061 * buildsym.c (add_symbol_to_list): Update.
2062 * dwarf2read.c (read_variable): Update.
2063 (new_symbol): Update.
2064 * jit.c (finalize_symtab): Update.
2065 * language.c (language_alloc_type_symbol): Update.
2066 * symtab.c (fixup_symbol_section): Update.
2067 (initialize_objfile_symbol_1): Move code to...
2068 (initialize_objfile_symbol): ...here. Remove now-unnecessary memset.
2069 (allocate_symbol): Update.
2070 (allocate_template_symbol): Update.
2071 (get_symbol_address): Update.
2072 * symtab.h (struct symbol): Inherit from general_symbol_info instead
2073 of having as a field, and add a constructor.
2074 (SYMBOL_VALUE): Update.
2075 (SYMBOL_VALUE_ADDRESS): Update.
2076 (SET_SYMBOL_VALUE_ADDRESS): Update.
2077 (SYMBOL_VALUE_BYTES): Update.
2078 (SYMBOL_VALUE_COMMON_BLOCK): Update.
2079 (SYMBOL_BLOCK_VALUE): Update.
2080 (SYMBOL_VALUE_CHAIN): Update.
2081 (SYMBOL_LANGUAGE): Update.
2082 (SYMBOL_SECTION): Update.
2083 (SYMBOL_OBJ_SECTION): Update.
2084 (SYMBOL_SET_LANGUAGE): Update.
2085 (SYMBOL_SET_LINKAGE_NAME): Update.
2086 (SYMBOL_SET_NAMES): Update.
2087 (SYMBOL_NATURAL_NAME): Update.
2088 (SYMBOL_LINKAGE_NAME): Update.
2089 (SYMBOL_DEMANGLED_NAME): Update.
2090 (SYMBOL_SEARCH_NAME): Update.
2091 (SYMBOL_MATCHES_SEARCH_NAME): Update.
2092 (struct symbol): Update.
2093 (struct template_symbol): Update.
2094 (struct rust_vtable_symbol): Update.
2095 * xcoffread.c (SYMBOL_DUP): Update.
2096
ed2c82c3
TT
20972019-11-12 Tom Tromey <tom@tromey.com>
2098
2099 * tui/tui-layout.c (show_layout): Set current_layout.
2100 (show_source_disasm_command, show_data)
2101 (show_source_or_disasm_and_command): Don't set current_layout.
2102
d9fcefd5
TT
21032019-11-12 Tom Tromey <tom@tromey.com>
2104
2105 * tui/tui-layout.c (_initialize_tui_layout): Move to end.
2106
45e42163
TT
21072019-11-12 Tom Tromey <tom@tromey.com>
2108
2109 * tui/tui-win.c (resize_message): New global.
2110 (show_tui_resize_message): New function.
2111 (tui_async_resize_screen): Print message if requested.
2112 (_initialize_tui_win): Add tui-resize-message setting.
2113 * NEWS: Add entry for new commands.
2114
c86d74cc
TT
21152019-11-11 Tom Tromey <tom@tromey.com>
2116
2117 * tui/tui.c (tui_initialize_readline): Add new bindable readline
2118 functions.
2119
7b7b9424
CB
21202019-11-11 Christian Biesinger <cbiesinger@google.com>
2121
2122 * nat/linux-osdata.c (user_from_uid): Use getpwuid_r.
2123
086baaf1
AB
21242019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
2125
2126 * python/py-symbol.c (gdbpy_lookup_static_symbols): New
2127 function.
2128 * python/python-internal.h (gdbpy_lookup_static_symbols):
2129 Declare new function.
2130 * python/python.c (python_GdbMethods): Add
2131 gdb.lookup_static_symbols method.
2132 * NEWS: Mention gdb.lookup_static_symbols.
2133
09ff83af
AB
21342019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
2135
2136 * python/py-symbol.c (gdbpy_lookup_static_symbol): Lookup in
2137 static block of current object file first. Also fix typo in
2138 header comment.
2139
eb2dd8df
AB
21402019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
2141
2142 * stack.c (set_last_displayed_sal): Delete.
2143 (last_displayed_sal_valid): Delete.
2144 (last_displayed_pspace): Delete.
2145 (last_displayed_addr): Delete.
2146 (last_displayed_symtab): Delete.
2147 (last_displayed_line): Delete.
2148 (class last_displayed_symtab_info_type): New.
2149 (last_displayed_symtab_info): New static global variable.
2150 (print_frame_info): Call methods on last_displayed_symtab_info.
2151 (clear_last_displayed_sal): Update header comment, and make use of
2152 last_displayed_symtab_info.
2153 (last_displayed_sal_is_valid): Likewise.
2154 (get_last_displayed_pspace): Likewise.
2155 (get_last_displayed_addr): Likewise.
2156 (get_last_displayed_symtab): Likewise.
2157 (get_last_displayed_line): Likewise.
2158 (get_last_displayed_sal): Likewise.
2159 * stack.h (clear_last_displayed_sal): Update header comment.
2160 (last_displayed_sal_is_valid): Likewise.
2161 (get_last_displayed_pspace): Likewise.
2162 (get_last_displayed_addr): Likewise.
2163 (get_last_displayed_symtab): Likewise.
2164 (get_last_displayed_line): Likewise.
2165 (get_last_displayed_sal): Likewise.
2166
62137775
AB
21672019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
2168
2169 * stack.c (frame_show_address): Convert return type to bool.
2170 * stack.h (frame_show_address): Likewise, and update header
2171 comment.
2172
cf57ad6d
AB
21732019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
2174
2175 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new file to the list.
2176 * unittests/vec-utils-selftests.c: New file.
2177 * gdbsupport/gdb_vecs.h (unordered_remove): Avoid self move assign.
2178
0b026263
TT
21792019-11-10 Tom Tromey <tom@tromey.com>
2180
2181 * tui/tui-wingeneral.c (tui_unhighlight_win): Use can_box.
2182 (tui_highlight_win): Likewise.
2183 (tui_win_info::check_and_display_highlight_if_needed): Likewise.
2184 * tui/tui-data.h (struct tui_win_info) <can_highlight>: Remove.
2185 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
2186 Don't set can_highlight.
2187
b049ce2d
TT
21882019-11-10 Tom Tromey <tom@tromey.com>
2189
2190 * cli/cli-style.h (class cli_style_option) <cli_style_option>:
2191 Remove unused declaration.
2192
992a7040
TT
21932019-11-08 Tom Tromey <tromey@adacore.com>
2194
2195 * top.c (read_command_file): Update.
2196 (command_line_input): Make return type const.
2197 * python/py-gdb-readline.c: Update.
2198 * linespec.c (decode_line_2): Update.
2199 * defs.h (command_line_input): Make return type const.
2200 * cli/cli-script.c (read_next_line): Make return type const.
2201 * ada-lang.c (get_selections): Update.
2202
ca3a04f6
CB
22032019-11-06 Christian Biesinger <cbiesinger@google.com>
2204
2205 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
2206 * mi/mi-main.c (output_cores): Likewise.
2207 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
2208 (linux_xfer_osdata_modules): Likewise.
2209 * remote.c (register_remote_support_xml): Likewise.
2210 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
2211 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
2212
e0eac551
TT
22132019-11-06 Tom Tromey <tom@tromey.com>
2214
2215 * tui/tui-interp.c: Don't include readline.h.
2216 * tui/tui-hooks.c: Don't include readline.h.
2217 * symmisc.c: Include tilde.h, not readline.h.
2218 * symfile.c: Include tilde.h, not readline.h.
2219 * source.c: Include tilde.h, not readline.h.
2220 * solib.c: Include tilde.h, not readline.h.
2221 * psymtab.c: Include tilde.h, not readline.h.
2222 * exec.c: Include tilde.h, not readline.h.
2223 * corelow.c: Include tilde.h, not readline.h.
2224 * cli/cli-dump.c: Include tilde.h, not readline.h.
2225 * cli/cli-cmds.c: Don't include readline.h.
2226
825165c5
TT
22272019-11-05 Tom Tromey <tom@tromey.com>
2228
2229 * tui/tui-disasm.c (struct tui_asm_line) <addr_size>: New member.
2230 (tui_disassemble): Set addr_size.
2231 (tui_disasm_window::set_contents): Use addr_size.
2232
91ae903f
TT
22332019-11-05 Tom Tromey <tom@tromey.com>
2234
2235 * rust-lang.c (rust_language_defn): Update.
2236 * python/py-value.c (valpy_string): Call c_get_string.
2237 * p-lang.c (pascal_language_defn): Update.
2238 * opencl-lang.c (opencl_language_defn): Update.
2239 * objc-lang.c (objc_language_defn): Update.
2240 * m2-lang.c (m2_language_defn): Update.
2241 * language.c (unknown_language_defn, auto_language_defn): Update.
2242 (default_get_string): Remove.
2243 * guile/scm-value.c (gdbscm_value_to_string): Use c_get_string.
2244 * go-lang.c (go_language_defn): Update.
2245 * f-lang.c (f_language_defn): Update.
2246 * d-lang.c (d_language_defn): Update.
2247 * c-lang.c (c_language_defn, cplus_language_defn)
2248 (asm_language_defn, minimal_language_defn): Update.
2249 * ada-lang.c (ada_language_defn): Update.
2250 * language.h (struct language_defn) <la_get_string>: Remove.
2251 (LA_GET_STRING): Remove.
2252 (default_get_string): Don't declare.
2253
1df2f9ef
TT
22542019-11-05 Tom Tromey <tom@tromey.com>
2255
2256 * tui/tui-source.h (struct tui_source_window): Inline
2257 constructor. Remove destructor.
2258 <style_changed, m_observable>: Move to superclass.
2259 * tui/tui-winsource.h (tui_copy_source_line): Declare.
2260 (struct tui_source_window_base): Move private members to end.
2261 <style_changed, m_observable>: Move from tui_source_window.
2262 * tui/tui-winsource.c (tui_copy_source_line): Move from
2263 tui-source.c. Rename from copy_source_line. Add special handling
2264 for negative line number.
2265 (tui_source_window_base::style_changed): Move from
2266 tui_source_window.
2267 (tui_source_window_base): Register observer.
2268 (~tui_source_window_base): New.
2269 * tui/tui-source.c (copy_source_line): Move to tui-winsource.c;
2270 rename.
2271 (tui_source_window::set_contents): Use tui_copy_source_line.
2272 (tui_source_window::tui_source_window): Move to tui-source.h.
2273 (tui_source_window::~tui_source_window): Remove.
2274 (tui_source_window::style_changed): Move to superclass.
2275 * tui/tui-disasm.c (tui_disassemble): Create string file with
2276 styling, when possible. Add "addr_size" parameter.
2277 (tui_disasm_window::set_contents): Use tui_copy_source_line.
2278 Don't compute maximum size.
2279 (len_without_escapes): New function
2280
5d051055
TT
22812019-11-05 Tom Tromey <tom@tromey.com>
2282
2283 * tui/tui-winsource.h (struct tui_source_element) <line>: Now a
2284 std::string.
2285 * tui/tui-winsource.c (tui_show_source_line): Update.
2286 * tui/tui-source.c (tui_source_window::set_contents): Update.
2287 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
2288
ade7beea
CB
22892019-11-05 Christian Biesinger <cbiesinger@google.com>
2290
2291 * symtab.h (gdb_static_assert): Put && operator at the beginning
2292 of the line instead of the end.
2293
3573abe1
CB
22942019-11-04 Christian Biesinger <cbiesinger@google.com>
2295
2296 * psympriv.h: Add static_asserts for sizeof (general_symbol_info)
2297 and sizeof (symbol).
2298 * symtab.h: Add a static_assert for sizeof (partial_symbol).
2299
dae8b3eb
RO
23002019-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2301
2302 * NEWS (Changes since GDB 8.3): Document Solaris 10 removal.
2303 * configure.host: Mark *-*-solaris2.10* obsolete.
2304 * configure.tgt: Mark Solaris < 11 obsolete.
2305 * MAINTAINERS (Target Instruction Set Architectures) <sparc>:
2306 Update target triplet.
2307
5df96a4e
TT
23082019-11-01 Tom Tromey <tromey@adacore.com>
2309
2310 * utils.c (print_sys_errmsg): Simplify.
2311
b7481649
TT
23122019-11-01 Tom Tromey <tromey@adacore.com>
2313
2314 * gdbsupport/mingw-strerror.c (safe_strerror): Constify result.
2315
e48f6033
CB
23162019-11-01 Christian Biesinger <cbiesinger@google.com>
2317
2318 * configure: Regenerate.
2319 * configure.ac: Remove check for strerror_r.
2320 * gdbsupport/common.m4: Check for strerror_r.
2321
bd5766ec
LM
23222019-11-01 Luis Machado <luis.machado@linaro.org>
2323
2324 PR gdb/25124
2325
2326 * arm-tdep.c (arm_per_objfile): Rename to ...
2327 (arm_per_bfd): ... this.
2328 (arm_objfile_data_key): Rename to ...
2329 (arm_bfd_data_key): ... this.
2330 (arm_find_mapping_symbol): Adjust access to new bfd_key-based
2331 data.
2332 (arm_record_special_symbol): Likewise.
2333
e1709896
AB
23342019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
2335
2336 * ada-typeprint.c (ada_print_typedef): Don't print newline at the
2337 end.
2338 * c-typeprint.c (c_print_typedef): Likewise.
2339 * f-typeprint.c (f_print_typedef): Likewise.
2340 * m2-typeprint.c (m2_print_typedef): Likewise.
2341 * p-typeprint.c (pascal_print_typedef): Likewise.
2342 * rust-lang.c (rust_print_typedef): Likewise.
2343 * symtab.c (print_symbol_info): Print a newline after calling
2344 typedef_print.
2345
165f8965
AB
23462019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
2347
2348 * symtab.c (info_module_cmdlist): New variable.
2349 (info_module_command): New function.
2350 (search_module_symbols): New function.
2351 (info_module_subcommand): New function.
2352 (struct info_modules_var_func_options): New struct.
2353 (info_modules_var_func_options_defs): New variable.
2354 (make_info_modules_var_func_options_def_group): New function.
2355 (info_module_functions_command): New function.
2356 (info_module_variables_command): New function.
2357 (info_module_var_func_command_completer): New function.
2358 (_initialize_symtab): Register new 'info module functions' and
2359 'info module variables' commands.
2360 * symtab.h (typedef symbol_search_in_module): New typedef.
2361 (search_module_symbols): Declare new function.
2362 * NEWS: Mention new commands.
2363
59c35742
AB
23642019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
2365
2366 * dwarf2read.c (dw2_symtab_iter_next): Handle MODULE_DOMAIN.
2367 (dw2_expand_marked_cus): Handle MODULES_DOMAIN.
2368 (dw2_debug_names_iterator::next): Handle MODULE_DOMAIN and
2369 MODULES_DOMAIN.
2370 (scan_partial_symbols): Only create partial module symbols for non
2371 declarations.
2372 * psymtab.c (recursively_search_psymtabs): Handle MODULE_DOMAIN
2373 and MODULES_DOMAIN.
2374 * symtab.c (search_domain_name): Likewise.
2375 (search_symbols): Likewise.
2376 (print_symbol_info): Likewise.
2377 (symtab_symbol_info): Likewise.
2378 (info_modules_command): New function.
2379 (_initialize_symtab): Register 'info modules' command.
2380 * symtab.h (enum search_domain): Add MODULES_DOMAIN.
2381 * NEWS: Mention new 'info modules' command.
2382
aed61d02
PW
23832019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2384
2385 * NEWS: Mention $_gdb_setting, $_gdb_setting_str, $_gdb_maint_setting
2386 and $_gdb_maint_setting_str.
2387
9ad9b77d
PW
23882019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2389
2390 * cli/cli-cmds.c (setting_cmd, value_from_setting)
2391 (gdb_setting_internal_fn, gdb_maint_setting_internal_fn)
2392 (str_value_from_setting, gdb_setting_str_internal_fn)
2393 (gdb_maint_setting_str_internal_fn): New functions.
2394 (_initialize_cli_cmds): Define the new convenience functions.
2395 * gdb/cli/cli-setshow.h (get_setshow_command_value_string): Constify.
2396 * gdb/cli/cli-setshow.c (get_setshow_command_value_string): Constify.
2397
8d6efaa2
CB
23982019-10-31 Christian Biesinger <cbiesinger@google.com>
2399
2400 * agent.c (set_can_use_agent): When the setting is turned on,
2401 look up agent symbols if we don't have them yet.
2402 (agent_new_objfile): Don't look up agent symbols when the agent
2403 setting is off.
2404
33cb1647
CB
24052019-10-31 Christian Biesinger <cbiesinger@google.com>
2406
2407 * config.in: Regenerate.
2408
b231e86a
CB
24092019-10-31 Christian Biesinger <cbiesinger@google.com>
2410
2411 * configure: Regenerate.
2412 * configure.ac: Check for strerror_r.
2413 * gdbsupport/common-utils.h (safe_strerror): Change return value
2414 to const char * and document that this function is now threadsafe.
2415 * gdbsupport/posix-strerror.c (safe_strerror): Make buf
2416 thread_local and call strerror_r, if available.
2417 * utils.c (perror_string): Update.
2418 (print_sys_errmsg): Update.
2419
a2726d4f
LM
24202019-10-31 Luis Machado <luis.machado@linaro.org>
2421
2422 * arm-tdep.c (arm_exidx_data_key): Use bfd_key instead of
2423 objfile_key.
2424 (arm_exidx_new_objfile): Adjust to use objfile->obfd instead of
2425 objfile to fetch per-bfd data.
2426 (arm_find_exidx_entry): Likewise.
2427
75cafaa6
CB
24282019-10-31 Christian Biesinger <cbiesinger@google.com>
2429
2430 * gdbsupport/agent.c (debug_agent): Change type to bool.
2431 (use_agent): Likewise.
2432 (all_agent_symbols_look_up): Likewise.
2433 (agent_loaded_p): Change return value to bool.
2434 (agent_look_up_symbols): Update.
2435 (agent_capability_check): Change return value to bool.
2436 * gdbsupport/agent.h (agent_loaded_p): Likewise.
2437 (debug_agent): Change type to bool.
2438 (use_agent): Likewise.
2439 (agent_capability_check): Change return value to bool.
2440
808590ec
CB
24412019-10-30 Christian Biesinger <cbiesinger@google.com>
2442
2443 * minsyms.c (clear_minimal_symbol_hash_tables): New function.
2444 (build_minimal_symbol_hash_tables): Code to clear the table moved
2445 to clear_minimal_symbol_hash_tables.
2446 (minimal_symbol_reader::install): Call clear_minimal_symbol_hash_tables
2447 when needed.
2448
f18ad8a1
SM
24492019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2450
2451 * infcmd.c: Remove includes.
2452 * infrun.c: Remove includes.
2453
de93309a
SM
24542019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2455
2456 * ada-lang.h (GROW_VECT): Move to ada-lang.c.
2457 (grow_vect): Remove declaration.
2458 (ada_type_of_array): Remove declaration.
2459 (ada_update_initial_language): Remove declaration.
2460 (ada_fold_name): Remove declaration.
2461 (ada_fill_in_ada_prototype): Remove declaration.
2462 (user_select_syms): Remove declaration.
2463 (get_selections): Remove declaration.
2464 (ada_tag_type): Remove declaration.
2465 (ada_value_tag): Remove declaration.
2466 (ada_is_others_clause): Remove declaration.
2467 (ada_in_variant): Remove declaration.
2468 (ada_value_struct_elt): Remove declaration.
2469 (ada_attribute_name): Remove declaration.
2470 (ada_system_address_type): Remove declaration.
2471 * ada-lang.c (ada_watch_location_expression): Make static.
2472 (GROW_VECT): Move here from ada-lang.h.
2473 (grow_vect): Make static.
2474 (ada_update_initial_language): Make static.
2475 (ada_fold_name): Make static.
2476 (ada_type_of_array): Make static.
2477 (encoded_ordered_before): Move up.
2478 (sort_choices): Move up.
2479 (print_signatures): Move up.
2480 (ada_print_symbol_signature): Move up.
2481 (get_selections): Move up and make static.
2482 (user_select_syms): Move up and make static.
2483 (ada_value_struct_elt): Move up and make static.
2484 (ada_tag_type): Make static.
2485 (ada_value_tag): Make static.
2486 (ada_is_others_clause): Make static.
2487 (ada_in_variant): Make static.
2488 (ada_attribute_name): Make static.
2489
cdc46a9f
SM
24902019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2491
2492 * ada-lang.c: Remove includes.
2493 * ada-typeprint.c: Remove includes.
2494 * ada-valprint.c: Remove includes.
2495
90421c56
SM
24962019-10-29 Simon Marchi <simon.marchi@efficios.com>
2497
2498 * addrmap.c: Add static assertions of type size, moved from
2499 _initialize_addrmap.
2500 (_initialize_addrmap): Remove.
2501
31edb802
CB
25022019-10-29 Christian Biesinger <cbiesinger@google.com>
2503
2504 * coffread.c (record_minimal_symbol): Update.
2505 (process_coff_symbol): Update.
2506 * dbxread.c (read_dbx_symtab): Update.
2507 * dwarf2read.c (add_partial_symbol): Update.
2508 (fixup_go_packaging): Update.
2509 (load_partial_dies): Update.
2510 (new_symbol): Update.
2511 * elfread.c (record_minimal_symbol): Change signature to use
2512 gdb::string_view instead of name+len.
2513 (elf_symtab_read): Update.
2514 (elf_rel_plt_read): Update.
2515 * mdebugread.c (parse_partial_symbols): Update.
2516 (handle_psymbol_enumerators): Update.
2517 (new_symbol): Update.
2518 * minsyms.c (minimal_symbol_reader::record_full): Change signature
2519 to use gdb::string_view instead of name+len.
2520 * minsyms.h (class minimal_symbol_reader) <record_full>: Likewise.
2521 * psympriv.h (add_psymbol_to_list): Likewise.
2522 * psymtab.c (add_psymbol_to_bcache): Likewise.
2523 (add_psymbol_to_list): Likewise.
2524 * stabsread.c (define_symbol): Update.
2525 * symtab.c (symbol_set_names): Change signature to use gdb::string_view.
2526 * symtab.h (SYMBOL_SET_NAMES): Likewise.
2527 (symbol_set_names): Likewise.
2528 * xcoffread.c (scan_xcoff_symtab): Update.
2529
0c921b21
CB
25302019-10-29 Christian Biesinger <cbiesinger@google.com>
2531
2532 * symtab.h (symbol_set_names): Document that copy_name must be
2533 set to true for non-nullterminated strings.
2534 * symtab.c (symbol_set_names): Only make a nullterminated copy of
2535 linkage_name if the entry was not found and we need to demangle.
2536
35e65c49
CB
25372019-10-29 Christian Biesinger <cbiesinger@google.com>
2538
2539 * Makefile.in (HFILES_NO_SRCDIR): Add gdb_binary_search.h.
2540 * dwarf2-frame.c (bsearch_fde_cmp): Update.
2541 (dwarf2_frame_find_fde): Replace bsearch with gdb::binary_search.
2542 * gdbsupport/gdb_binary_search.h: New file.
2543
ed2a2229
CB
25442019-10-29 Christian Biesinger <cbiesinger@google.com>
2545
2546 * NEWS: Mention new --with-system-gdbinit-dir option.
2547 * config.in: Regenerate.
2548 * configure: Regenerate.
2549 * configure.ac: Add new option --with-system-gdbinit-dir.
2550 * extension.c (get_ext_lang_of_file): Return extension_language_gdb
2551 for a ".gdb" suffix.
2552 * main.c (get_init_files): Change system_gdbinit argument to
2553 a vector and return the files in SYSTEM_GDBINIT_DIR in
2554 addition to SYSTEM_GDBINIT.
2555 (captured_main_1): Update.
2556 (print_gdb_help): Update.
2557 * top.c (print_gdb_configuration): Also print the value of
2558 SYSTEM_GDBINIT_DIR.
2559
87f34879
CB
25602019-10-28 Christian Biesinger <cbiesinger@google.com>
2561
2562 * gdbsupport/common-utils.h (startswith): Add an overloaded version
2563 that takes gdb::string_view arguments.
2564
30baf67b
TV
25652019-10-26 Tom de Vries <tdevries@suse.de>
2566
2567 * aarch64-linux-tdep.c: Fix typos in comments.
2568 * aarch64-tdep.c: Same.
2569 * ada-lang.c: Same.
2570 * amd64-nat.c: Same.
2571 * arc-tdep.c: Same.
2572 * arch/aarch64-insn.c: Same.
2573 * block.c: Same.
2574 * breakpoint.h: Same.
2575 * btrace.h: Same.
2576 * c-varobj.c: Same.
2577 * cli/cli-decode.c: Same.
2578 * cli/cli-script.c: Same.
2579 * cli/cli-utils.h: Same.
2580 * coff-pe-read.c: Same.
2581 * coffread.c: Same.
2582 * compile/compile-cplus-symbols.c: Same.
2583 * compile/compile-object-run.c: Same.
2584 * completer.c: Same.
2585 * corelow.c: Same.
2586 * cp-support.c: Same.
2587 * demangle.c: Same.
2588 * dwarf-index-write.c: Same.
2589 * dwarf2-frame.c: Same.
2590 * dwarf2-frame.h: Same.
2591 * eval.c: Same.
2592 * frame-base.h: Same.
2593 * frame.h: Same.
2594 * gdbcmd.h: Same.
2595 * gdbtypes.h: Same.
2596 * gnu-nat.c: Same.
2597 * guile/scm-objfile.c: Same.
2598 * i386-tdep.c: Same.
2599 * i386-tdep.h: Same.
2600 * infcall.c: Same.
2601 * infcall.h: Same.
2602 * linux-nat.c: Same.
2603 * m68k-tdep.c: Same.
2604 * macroexp.c: Same.
2605 * memattr.c: Same.
2606 * mi/mi-cmd-disas.c: Same.
2607 * mi/mi-getopt.h: Same.
2608 * mi/mi-main.c: Same.
2609 * minsyms.c: Same.
2610 * nat/aarch64-sve-linux-sigcontext.h: Same.
2611 * objfiles.h: Same.
2612 * ppc-linux-nat.c: Same.
2613 * ppc-linux-tdep.c: Same.
2614 * ppc-tdep.h: Same.
2615 * progspace.h: Same.
2616 * prologue-value.h: Same.
2617 * python/py-evtregistry.c: Same.
2618 * python/py-instruction.h: Same.
2619 * record-btrace.c: Same.
2620 * record-full.c: Same.
2621 * remote.c: Same.
2622 * rs6000-tdep.c: Same.
2623 * ser-tcp.c: Same.
2624 * sol-thread.c: Same.
2625 * sparc-sol2-tdep.c: Same.
2626 * sparc64-tdep.c: Same.
2627 * stabsread.c: Same.
2628 * symfile.c: Same.
2629 * symtab.h: Same.
2630 * target.c: Same.
2631 * tracepoint.c: Same.
2632 * tui/tui-data.h: Same.
2633 * tui/tui-io.c: Same.
2634 * tui/tui-win.c: Same.
2635 * tui/tui.c: Same.
2636 * unittests/rsp-low-selftests.c: Same.
2637 * user-regs.h: Same.
2638 * utils.c: Same.
2639 * utils.h: Same.
2640 * valarith.c: Same.
2641 * valops.c: Same.
2642 * valprint.c: Same.
2643 * valprint.h: Same.
2644 * value.c: Same.
2645 * value.h: Same.
2646 * varobj.c: Same.
2647 * x86-nat.h: Same.
2648 * xtensa-tdep.c: Same.
2649
1834d45f
AT
26502019-10-25 Ali Tamur <tamur@google.com>
2651
2652 * charset.c (find_charset_names): Reflect API change.
2653
5396ae17
CB
26542019-10-25 Christian Biesinger <cbiesinger@google.com>
2655
2656 * symtab.c (struct demangled_name_entry): Change demangled name
2657 to a unique_xmalloc_ptr<char>, now that we don't allocate it as
2658 part of the struct anymore.
2659 (symbol_set_names): No longer obstack allocate + copy the demangled
2660 name, just store the allocated name from bfd.
2661
93878f47
TT
26622019-10-25 Tom Tromey <tromey@adacore.com>
2663
2664 * dwarf2-frame.c (dwarf2_cie_table): Now a typedef.
2665 (bsearch_cie_cmp, add_cie): Remove.
2666 (find_cie): Reimplement.
2667 (decode_frame_entry_1, decode_frame_entry): Change type. Update.
2668 (dwarf2_build_frame_info): Update.
2669
7b71fc97
L
26702019-10-24 H.J. Lu <hongjiu.lu@intel.com>
2671
2672 PR gdb/25126
2673 * symfile.c (reread_symbols): Call forget_cached_source_info to
2674 clear the stale source cache.
2675
cbb5a2ea
CB
26762019-10-24 Christian Biesinger <cbiesinger@google.com>
2677
2678 * configure: Regenerate.
2679 * configure.ac: Remove code that sets python_has_threads.
2680
71737c43
CB
26812019-10-24 Christian Biesinger <cbiesinger@google.com>
2682
2683 * config.in: Regenerate.
2684 * configure: Regenerate.
2685 * configure.ac: Remove the code that uses sed to get the python
2686 version and defines HAVE_LIBPYTHON2_6 / HAVE_LIBPYTHON2_7.
2687
33d569b7
AB
26882019-10-24 Andrew Burgess <andrew.burgess@embecosm.com>
2689
2690 * python/py-progspace.c (pspy_block_for_pc): Return None for all
2691 error paths.
2692
f16f7b7c
TT
26932019-10-23 Tom Tromey <tom@tromey.com>
2694
2695 * arc-tdep.c: Remove ".." from include.
2696 * frv-tdep.c: Remove ".." from include.
2697 * lm32-tdep.c: Remove ".." from include.
2698 * microblaze-tdep.c: Remove ".." from include.
2699 * or1k-tdep.h: Remove ".." from include.
2700 * s12z-tdep.c: Remove ".." from include.
2701 * Makefile.in (OPCODES_CFLAGS): Add comment.
2702 (TOP_CFLAGS): New variable.
2703 (INTERNAL_CFLAGS_BASE): Add TOP_CFLAGS.
2704
6999161a
TT
27052019-10-23 Tom Tromey <tom@tromey.com>
2706
2707 * Makefile.in (READLINE_DIR): Update.
2708
12e7c35e
TBA
27092019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2710
2711 * infcall.c (call_function_by_hand_dummy): Fix the function
2712 comment. And extract out a code section into...
2713 (reserve_stack_space): ...this new function.
2714
37055cad
TBA
27152019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2716
2717 * infcall.c (value_arg_coerce): Remove an unused parameter.
2718 (call_function_by_hand_dummy): Update the call to
2719 'value_arg_coerce'.
2720
39bcc47c
TBA
27212019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2722
2723 * infcall.c (call_function_by_hand_dummy): Refactor.
2724
bd888c0f
TBA
27252019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2726
2727 * MAINTAINERS (Write After Approval): Add Tankut Baris Aktemur.
2728
c12d372d
TT
27292019-10-23 Tom Tromey <tom@tromey.com>
2730
2731 * configure: Rebuild.
2732 * configure.ac: Don't check for sigprocmask.
2733 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for sigprocmask.
2734
4d0b984b
TT
27352019-10-23 Tom Tromey <tom@tromey.com>
2736
2737 * configure: Rebuild.
2738 * acinclude.m4: Use m4_include, not sinclude.
2739
7e785608
TV
27402019-10-23 Tom de Vries <tdevries@suse.de>
2741
2742 PR breakpoints/24687
2743 * symtab.c (iterate_over_some_symtabs): Apply gdb_realpath on fullname.
2744
403772ef
CB
27452019-10-22 Christian Biesinger <cbiesinger@google.com>
2746
2747 * symtab.c (struct demangled_name_entry) <language>: Change from
2748 bitfield to regular variable.
2749
3a494279
CB
27502019-10-22 Christian Biesinger <cbiesinger@google.com>
2751
2752 * symtab.c (struct demangled_name_entry): Add a constructor.
2753 (free_demangled_name_entry): New function to call the destructor
2754 for demangled_name_entry.
2755 (create_demangled_names_hash): Pass free_demangled_name_entry to
2756 htab_create_alloc.
2757 (symbol_set_names): Call placement new for demangled_name_entry.
2758 * utils.c: No longer include xxhash.h here, now that fast_hash
2759 is inlined in the header.
2760 * utils.h: Instead, include it here.
2761
ccb1ba62
CB
27622019-10-22 Christian Biesinger <cbiesinger@google.com>
2763
2764 * Makefile.in: Link with libxxhash.
2765 * config.in: Regenerate.
2766 * configure: Regenerate.
2767 * configure.ac: Search for libxxhash.
2768 * utils.c (fast_hash): Use xxhash if present.
2769
1a6ff1a9
CB
27702019-10-22 Christian Biesinger <cbiesinger@google.com>
2771
2772 * utils.h (fast_hash): New function.
2773 * symtab.c (hash_demangled_name_entry): Call new function
2774 fast_hash.
2775
7bb43059
CB
27762019-10-22 Christian Biesinger <cbiesinger@google.com>
2777
2778 * symtab.c (struct demangled_name_entry): Change type of mangled
2779 to gdb::string_view. Also adds a constructor that takes the
2780 mangled name.
2781 (hash_demangled_name_entry): Update.
2782 (eq_demangled_name_entry): Update.
2783 (free_demangled_name_entry): New function to call the destructor
2784 now that this is not a POD anymore.
2785 (create_demangled_names_hash): Pass free_demangled_name_entry to
2786 htab_create_alloc.
2787 (symbol_set_names): Update.
2788
7ba99d21
AT
27892019-10-21 Ali Tamur <tamu@google.com>
2790
2791 * dwarf2read.c (dir_index): Change type.
2792 (file_name_index): Likewise.
2793 (line_header::include_dir_at): Change comment and implementation on
2794 whether it is DWARF 5.
2795 (line_header::is_valid_file_index): New function.
2796 (line_header::file_name_at): Change comment and implementation on
2797 whether it is DWARF 5.
2798 (line_header::file_names): Change to private field renamed as
2799 m_file_names and introduce a new accessor method.
2800 (line_header::file_names_size): New method.
2801 (line_header::include_dirs): Change to private field and rename as
2802 m_include_dirs.
2803 (dw2_get_file_names_reader): Define local var at a smaller scope and
2804 reflect API change.
2805 (dwarf2_cu::setup_type_unit_groups): Reflect API change.
2806 (process_structure_scope): Likewise.
2807 (line_header::add_include_dir): Change message and reflect renaming.
2808 (line_header::add_file_name): Likewise.
2809 (read_formatted_entries): Handle DW_FORM_data16.
2810 (dwarf_decode_line_header): Fix line header length calculation.
2811 (psymtab_include_file_name): Change comment and API.
2812 (lnp_state_machine::m_file): Update comment and reflect type change.
2813 (lnp_state_machine::record_line): Reflect type change.
2814 (dwarf_decode_lines): Reflect API change.
2815 (file_file_name): Likewise.
2816 (file_full_name): Likewise.
2817
45f47c3a
AB
28182019-10-21 Andrew Burgess <andrew.burgess@embecosm.com>
2819
2820 * objfiles.c (sort_cmp): Ensure that !(a < a) holds true.
2821
e5f3c0e3
TT
28222019-10-21 Tom Tromey <tom@tromey.com>
2823
2824 * tui/tui-winsource.h (tui_exec_info_content): Remove typedef.
2825
a0a461e5
TT
28262019-10-21 Tom Tromey <tom@tromey.com>
2827
2828 * configure.ac (nm.h): Conditionally create nm.h link. Subst
2829 NM_H. Use AC_CONFIG_LINKS.
2830 * configure: Rebuild.
2831 * Makefile.in (NM_H): New variable.
2832 (generated_files): Add NM_H. Remove gcore.
2833 (nm.h, stamp-nmh): New targets.
2834
54d83b8d
TT
28352019-10-20 Tom Tromey <tom@tromey.com>
2836
2837 * objfiles.h (unlink_objfile, put_objfile_before): Don't declare.
2838 * objfiles.c (unlink_objfile): Move earlier. Now static. Remove
2839 obsolete comment.
2840 (put_objfile_before): Now static.
2841
23771117
SM
28422019-10-19 Simon Marchi <simon.marchi@polymtl.ca>
2843
2844 * gdbsupport/common-utils.h (startswith): Change return type to
2845 bool.
2846
39ef2f62
CB
28472019-10-19 Christian Biesinger <cbiesinger@google.com>
2848
2849 * bcache.c (bcache::print_statistics): Use std::sort instead of qsort.
2850 * breakpoint.c (bp_locations_compare): Rename to...
2851 (bp_location_is_less_than): ...this, and change to std::sort semantics.
2852 (update_global_location_list): Use std::sort instead of qsort.
2853 * buildsym.c (compare_line_numbers): Rename to...
2854 (lte_is_less_than): ...this, and change to std::sort semantics.
2855 (buildsym_compunit::end_symtab_with_blockvector): Use std::sort
2856 instead of qsort.
2857 * disasm.c (compare_lines): Rename to...
2858 (line_is_less_than): ...this, and change to std::sort semantics.
2859 (do_mixed_source_and_assembly_deprecated): Call std::sort instead
2860 of qsort.
2861 * dwarf2-frame.c (qsort_fde_cmp): Rename to...
2862 (fde_is_less_than): ...this, and change to std::sort semantics.
2863 (dwarf2_build_frame_info): Call std::sort instead of qsort.
2864 * mdebugread.c (compare_blocks):
2865 (block_is_less_than): ...this, and change to std::sort semantics.
2866 (sort_blocks): Call std::sort instead of qsort.
2867 * objfiles.c (qsort_cmp): Rename to...
2868 (sort_cmp): ...this, and change to std::sort semantics.
2869 (update_section_map): Call std::sort instead of qsort.
2870 * remote.c (compare_pnums): Remove.
2871 (map_regcache_remote_table): Call std::sort instead of qsort.
2872 * utils.c (compare_positive_ints): Remove.
2873 * utils.h (compare_positive_ints): Remove.
2874 * xcoffread.c (compare_lte): Remove.
2875 (arrange_linetable): Call std::sort instead of qsort.
2876
f71433ee
SDJ
28772019-10-19 Sergio Durigan Junior <sergiodj@redhat.com>
2878
2879 * symfile.c (init_entry_point_info): Fix typo.
2880 * i386-darwin-tdep.c (darwin_dwarf_signal_frame_p): Fix typo.
2881
85102364
TV
28822019-10-18 Tom de Vries <tdevries@suse.de>
2883
2884 * aarch64-tdep.c: Fix typos in comments.
2885 * ada-lang.c: Same.
2886 * ada-tasks.c: Same.
2887 * alpha-tdep.c: Same.
2888 * alpha-tdep.h: Same.
2889 * amd64-nat.c: Same.
2890 * amd64-windows-tdep.c: Same.
2891 * arc-tdep.c: Same.
2892 * arc-tdep.h: Same.
2893 * arch-utils.c: Same.
2894 * arm-nbsd-tdep.c: Same.
2895 * arm-tdep.c: Same.
2896 * ax-gdb.c: Same.
2897 * blockframe.c: Same.
2898 * btrace.c: Same.
2899 * c-varobj.c: Same.
2900 * coff-pe-read.c: Same.
2901 * coffread.c: Same.
2902 * cris-tdep.c: Same.
2903 * darwin-nat.c: Same.
2904 * dbxread.c: Same.
2905 * dcache.c: Same.
2906 * disasm.c: Same.
2907 * dtrace-probe.c: Same.
2908 * dwarf-index-write.c: Same.
2909 * dwarf2-frame-tailcall.c: Same.
2910 * dwarf2-frame.c: Same.
2911 * dwarf2read.c: Same.
2912 * eval.c: Same.
2913 * exceptions.c: Same.
2914 * fbsd-tdep.c: Same.
2915 * findvar.c: Same.
2916 * frame.c: Same.
2917 * frv-tdep.c: Same.
2918 * gnu-v3-abi.c: Same.
2919 * go32-nat.c: Same.
2920 * h8300-tdep.c: Same.
2921 * hppa-tdep.c: Same.
2922 * i386-linux-tdep.c: Same.
2923 * i386-tdep.c: Same.
2924 * ia64-libunwind-tdep.c: Same.
2925 * ia64-tdep.c: Same.
2926 * infcmd.c: Same.
2927 * infrun.c: Same.
2928 * linespec.c: Same.
2929 * linux-nat.c: Same.
2930 * linux-thread-db.c: Same.
2931 * machoread.c: Same.
2932 * mdebugread.c: Same.
2933 * mep-tdep.c: Same.
2934 * mn10300-tdep.c: Same.
2935 * namespace.c: Same.
2936 * objfiles.c: Same.
2937 * opencl-lang.c: Same.
2938 * or1k-tdep.c: Same.
2939 * osabi.c: Same.
2940 * ppc-linux-nat.c: Same.
2941 * ppc-linux-tdep.c: Same.
2942 * ppc-sysv-tdep.c: Same.
2943 * printcmd.c: Same.
2944 * procfs.c: Same.
2945 * record-btrace.c: Same.
2946 * record-full.c: Same.
2947 * remote-fileio.c: Same.
2948 * remote.c: Same.
2949 * rs6000-tdep.c: Same.
2950 * s12z-tdep.c: Same.
2951 * score-tdep.c: Same.
2952 * ser-base.c: Same.
2953 * ser-go32.c: Same.
2954 * skip.c: Same.
2955 * sol-thread.c: Same.
2956 * solib-svr4.c: Same.
2957 * solib.c: Same.
2958 * source.c: Same.
2959 * sparc-nat.c: Same.
2960 * sparc-sol2-tdep.c: Same.
2961 * sparc-tdep.c: Same.
2962 * sparc64-tdep.c: Same.
2963 * stabsread.c: Same.
2964 * stack.c: Same.
2965 * symfile.c: Same.
2966 * symtab.c: Same.
2967 * target-descriptions.c: Same.
2968 * target-float.c: Same.
2969 * thread.c: Same.
2970 * utils.c: Same.
2971 * valops.c: Same.
2972 * valprint.c: Same.
2973 * value.c: Same.
2974 * varobj.c: Same.
2975 * windows-nat.c: Same.
2976 * xcoffread.c: Same.
2977 * xstormy16-tdep.c: Same.
2978 * xtensa-tdep.c: Same.
2979
c5adaa19
TT
29802019-10-17 Tom Tromey <tromey@adacore.com>
2981
2982 * configure: Rebuild.
2983 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
2984 in AC_CONFIG_FILES invocation.
2985 * Makefile.in (Makefile, data-directory/Makefile, stamp-h): Use
2986 new-style config.status invocation.
2987
405feb71
TV
29882019-10-17 Tom de Vries <tdevries@suse.de>
2989
2990 * arm-nbsd-nat.c: Fix typos in comments.
2991 * arm-tdep.c: Same.
2992 * darwin-nat-info.c: Same.
2993 * dwarf2read.c: Same.
2994 * elfread.c: Same.
2995 * event-top.c: Same.
2996 * findvar.c: Same.
2997 * gdbtypes.c: Same.
2998 * hppa-tdep.c: Same.
2999 * i386-tdep.c: Same.
3000 * jit.c: Same.
3001 * main.c: Same.
3002 * mdebugread.c: Same.
3003 * moxie-tdep.c: Same.
3004 * nto-procfs.c: Same.
3005 * osabi.c: Same.
3006 * ppc-linux-tdep.c: Same.
3007 * remote.c: Same.
3008 * riscv-tdep.c: Same.
3009 * s390-tdep.c: Same.
3010 * sh-tdep.c: Same.
3011 * sparc-linux-tdep.c: Same.
3012 * sparc-nat.c: Same.
3013 * stack.c: Same.
3014 * target-descriptions.c: Same.
3015 * top.c: Same.
3016 * varobj.c: Same.
3017
befcd486
TT
30182019-10-16 Tom Tromey <tom@tromey.com>
3019
3020 * objfiles.h (struct objfile) <original_name>: Now const.
3021
17bfe554
CB
30222019-10-16 Christian Biesinger <cbiesinger@google.com>
3023
3024 * gdbsupport/gdb_setjmp.h (SIGSETJMP): Allow passing in the value to
3025 pass on to sigsetjmp's second argument.
3026 * cp-support.c (gdb_demangle): Unblock SIGSEGV if we caught a crash.
3027
950b7495
KS
30282019-10-16 Keith Seitz <keiths@redhat.com>
3029
3030 PR gdb/23567
3031 * dwarf2read.c (dwarf2_per_objfile::locate_sections): Discard
3032 sections whose size is greater than the file size.
3033
ff371ec9
JW
30342019-10-16 Jim Wilson <jimw@sifive.com>
3035
3036 * riscv-tdep.c (riscv_gcc_target_options): New.
3037 (riscv_gnu_triplet_regexp): New.
3038 (riscv_gdbarch_init): Call set_gdbarch_gcc_triplet_options and
3039 set_gdbarch_gnu_triplet_regexp.
3040
fec4e896
CB
30412019-10-16 Christian Biesinger <cbiesinger@google.com>
3042
3043 * Makefile.in: Add xml-builtin.h.
3044 * features/feature_to_c.sh: Add an include for xml-builtin.h
3045 to ensure that the compiler checks that the types match.
3046 * xml-builtin.h: New file.
3047 * xml-support.c (fetch_xml_builtin): Add missing const.
3048 * xml-support.h: Remove declaration of xml_builtins.
3049
d10eccaa
TV
30502019-10-16 Tom de Vries <tdevries@suse.de>
3051
3052 PR tdep/25096
3053 * amd64-tdep.c (amd64_classify_aggregate_field): Factor out of ...
3054 (amd64_classify_aggregate): ... here.
3055 (amd64_classify_aggregate_field): Handled fiels of nested structs
3056 recursively.
3057
745ff14e
TV
30582019-10-16 Tom de Vries <tdevries@suse.de>
3059
3060 PR tdep/24104
3061 * amd64-tdep.c (amd64_push_arguments): Handle AMD64_NO_CLASS in loop
3062 that handles 'theclass'.
3063
791b7405
AB
30642019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
3065
3066 * linespec.c (decode_digits_ordinary): Update comment.
3067 * make-target-delegates: No longer need to handle VEC case.
3068 * memrange.c (normalize_mem_ranges): Update comment.
3069 * namespace.c (add_using_directive): Update comment.
3070 * objc-lang.c (uniquify_strings): Update comment.
3071 * ppc-linux-nat.c (struct thread_points): Update comment.
3072 * probe.h (find_probes_in_objfile): Update comment.
3073 * target.h (enum flash_preserve_mode): Update comment.
3074 * varobj.c (varobj_restrict_range): Update comment.
3075 * varobj.h (varobj_list_children): Update comment.
3076
0dc32745
AB
30772019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
3078
3079 * Makefile.in: Remove references to vec.h and vec.c.
3080 * aarch64-tdep.c: No longer include vec.h.
3081 * ada-lang.c: Likewise.
3082 * ada-lang.h: Likewise.
3083 * arm-tdep.c: Likewise.
3084 * ax.h: Likewise.
3085 * breakpoint.h: Likewise.
3086 * charset.c: Likewise.
3087 * cp-support.h: Likewise.
3088 * dtrace-probe.c: Likewise.
3089 * dwarf2read.c: Likewise.
3090 * extension.h: Likewise.
3091 * gdb_bfd.c: Likewise.
3092 * gdbsupport/gdb_vecs.h: Likewise.
3093 * gdbsupport/vec.c: Remove.
3094 * gdbsupport/vec.h: Remove.
3095 * gdbthread.h: Likewise.
3096 * guile/scm-type.c: Likewise.
3097 * inline-frame.c: Likewise.
3098 * machoread.c: Likewise.
3099 * memattr.c: Likewise.
3100 * memrange.h: Likewise.
3101 * namespace.h: Likewise.
3102 * nat/linux-btrace.h: Likewise.
3103 * osdata.c: Likewise.
3104 * parser-defs.h: Likewise.
3105 * progspace.h: Likewise.
3106 * python/py-type.c: Likewise.
3107 * record-btrace.c: Likewise.
3108 * rust-exp.y: Likewise.
3109 * solib-target.c: Likewise.
3110 * stap-probe.c: Likewise.
3111 * target-descriptions.c: Likewise.
3112 * target-memory.c: Likewise.
3113 * target.h: Likewise.
3114 * varobj.c: Likewise.
3115 * varobj.h: Likewise.
3116 * xml-support.h: Likewise.
3117
ae640021
AB
31182019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
3119
3120 * gdb/dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile):
3121 Update for new std::vector based implementation.
3122 (process_psymtab_comp_unit_reader): Likewise.
3123 (scan_partial_symbols): Likewise.
3124 (recursively_compute_inclusions): Likewise.
3125 (compute_compunit_symtab_includes): Likewise.
3126 (process_imported_unit_die): Likewise.
3127 (queue_and_load_dwo_tu): Likewise.
3128 (follow_die_sig_1): Likewise.
3129 * gdb/dwarf2read.h: Remove DEF_VEC_P.
3130 (typedef dwarf2_per_cu_ptr): Remove.
3131 (struct dwarf2_per_cu_data) <imported_symtabs_empty>: New
3132 function.
3133 (struct dwarf2_per_cu_data) <imported_symtabs_push>: New function.
3134 (struct dwarf2_per_cu_data) <imported_symtabs_size>: New function.
3135 (struct dwarf2_per_cu_data) <imported_symtabs_free>: New function.
3136 (struct dwarf2_per_cu_data) <imported_symtabs>: Change to
3137 std::vector.
3138
55dfc88f
TT
31392019-10-15 Tom Tromey <tromey@adacore.com>
3140
3141 * windows-nat.c (windows_nat_target::resume): Use %x when logging
3142 TID.
3143
96b49c5e
TT
31442019-10-15 Tom Tromey <tromey@adacore.com>
3145
3146 * windows-nat.c (windows_nat_target::fetch_registers)
3147 (windows_nat_target::store_registers): Rename "pid" to "tid".
3148
953cff56
TT
31492019-10-15 Tom Tromey <tromey@adacore.com>
3150
3151 * gdbarch.h, gdbarch.c: Rebuild.
3152 * gdbarch.sh (gcc_target_options): Change return type to
3153 std::string.
3154 * compile/compile.c (get_args): Update.
3155 * nios2-tdep.c (nios2_gcc_target_options): Return std::string.
3156 * arm-linux-tdep.c (arm_linux_gcc_target_options): Return
3157 std::string.
3158 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): Return
3159 std::string.
3160 * arch-utils.c (default_gcc_target_options): Return std::string.
3161 * arch-utils.h (default_gcc_target_options): Return std::string.
3162 * s390-tdep.c (s390_gcc_target_options): Return std::string.
3163
81e6b8eb
CB
31642019-10-15 Christian Biesinger <cbiesinger@google.com>
3165
3166 * breakpoint.c (breakpoint_chain): Make static.
3167 * tui/tui-winsource.c: Call iterate_over_breakpoints instead
3168 of accessing breakpoint_chain.
3169
95da600f
CB
31702019-10-15 Christian Biesinger <cbiesinger@google.com>
3171
3172 * breakpoint.c (iterate_over_breakpoints): Change function pointer
3173 to a gdb::function_view and return value to bool.
3174 * breakpoint.h (iterate_over_breakpoints): Likewise.
3175 * dummy-frame.c (pop_dummy_frame_bpt): Update.
3176 (pop_dummy_frame): Update.
3177 * guile/scm-breakpoint.c (bpscm_build_bp_list): Update.
3178 (gdbscm_breakpoints): Update.
3179 * python/py-breakpoint.c (build_bp_list): Update.
3180 (gdbpy_breakpoints): Update.
3181 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
3182 Update.
3183 (bpfinishpy_handle_stop): Update.
3184 (bpfinishpy_handle_exit): Update.
3185 * solib-svr4.c (svr4_update_solib_event_breakpoint): Update.
3186 (svr4_update_solib_event_breakpoints): Update.
3187
ba18312d
AA
31882019-10-15 Andreas Arnez <arnez@linux.ibm.com>
3189
3190 * s390-tdep.c (s390_effective_inner_type): Ignore static fields
3191 when unwrapping single-field structs.
3192
6acc1a0b
SM
31932019-10-14 Simon Marchi <simon.marchi@polymtl.ca>
3194
3195 * dwarf2read.c: Remove includes.
3196
284782de
SM
31972019-10-13 Simon Marchi <simon.marchi@polymtl.ca>
3198
3199 * ui-out.c (ui_out::call_do_message): Silence
3200 -Wformat-nonliteral warning.
3201
073bbbb0
SM
32022019-10-12 Simon Marchi <simon.marchi@polymtl.ca>
3203
3204 * breakpoint.c: Remove some includes: continuations.h, skip.h,
3205 mi/mi-main.h, readline/readline.h, readline/history.h. Add
3206 include: readline/tilde.h.
3207
7b9a15e1
CB
32082019-10-12 Christian Biesinger <cbiesinger@google.com>
3209
3210 * remote.c (remote_target::get_trace_status): Remove declaration of
3211 trace_regblock_size.
3212
cc8dee1f
CB
32132019-10-12 Christian Biesinger <cbiesinger@google.com>
3214
3215 * cli/cli-cmds.c (max_user_call_depth): Move comment to header.
3216 (show_user): Remove declaration of cmdlist.
3217 * cli/cli-cmds.h (max_user_call_depth): Declare.
3218 * cli/cli-script.c (execute_user_command): Remove declaration
3219 of max_user_call_depth.
3220
a83d4ef6
JW
32212019-10-11 Jim Wilson <jimw@sifive.com>
3222
5f93c5a6
JW
3223 * gdbsupport/print-utils.h (pulongest): Fix comment.
3224 (plongest): Likewise.
3225 (phex): Add missing comment, mention leading zeros.
3226 (phex_nz): Add mention of no leading zeros to comment.
3227
a83d4ef6
JW
3228 * riscv-tdep.c (riscv_push_dummy_code): Change %lld to %s and use
3229 plongest instead of unsigned long long cast.
3230
26344e0c
CB
32312019-10-10 Christian Biesinger <cbiesinger@google.com>
3232
3233 * main.c (captured_main_1): Include gdbtk.h and remove declarations
3234 for external_editor_command and gdbtk_test.
3235
c2c440a9
CB
32362019-10-10 Christian Biesinger <cbiesinger@google.com>
3237
3238 * mi/mi-cmd-var.c (varobjdebug): Remove declaration.
3239 * varobj.c (varobjdebug): Move comment to...
3240 * varobj.h (varobjdebug): ...here, and declare.
3241
a31bff9d
TT
32422019-10-09 Tom Tromey <tom@tromey.com>
3243
3244 * tui/tui-regs.c (tui_data_window::show_registers): Don't call
3245 erase_data_content.
3246
7523da63
TT
32472019-10-09 Tom Tromey <tom@tromey.com>
3248
3249 * tui/tui-wingeneral.h (tui_delete_win): Don't declare.
3250 * tui/tui-stack.c (tui_locator_window::rerender): Update.
3251 * tui/tui-command.c (tui_cmd_window::resize)
3252 (tui_refresh_cmd_win): Update.
3253 * tui/tui-win.c (tui_resize_all, tui_set_focus_command): Update.
3254 * tui/tui.c (tui_rl_other_window, tui_enable): Update.
3255 * tui/tui-data.c (~tui_gen_win_info): Remove.
3256 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
3257 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
3258 (tui_redisplay_readline, tui_mld_flush)
3259 (tui_mld_erase_entire_line, tui_mld_getc, tui_getc): Update.
3260 * tui/tui-regs.c (tui_data_window::delete_data_content_windows)
3261 (tui_data_window::erase_data_content)
3262 (tui_data_item_window::rerender)
3263 (tui_data_item_window::refresh_window): Update.
3264 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window)
3265 (box_win, tui_gen_win_info::make_window)
3266 (tui_gen_win_info::make_visible): Update.
3267 (tui_delete_win): Remove.
3268 * tui/tui-winsource.c
3269 (tui_source_window_base::do_erase_source_content): Update.
3270 (tui_show_source_line, tui_source_window_base::update_tab_width)
3271 (tui_source_window_base::update_exec_info): Update.
3272 * tui/tui-data.h (struct curses_deleter): New.
3273 (struct tui_gen_win_info) <handle>: Now a unique_ptr.
3274 (struct tui_gen_win_info) <~tui_gen_win_info>: Define.
3275
a7798e7f
TT
32762019-10-09 Tom Tromey <tom@tromey.com>
3277
3278 * tui/tui-wingeneral.h (struct tui_gen_win_info): Don't declare.
3279
5c45899e
TT
32802019-10-09 Tom Tromey <tom@tromey.com>
3281
3282 * tui/tui-data.c (tui_win_is_auxiliary): Remove.
3283 * tui/tui-data.h (tui_win_is_auxiliary): Don't declare.
3284
6d7fd9aa
TT
32852019-10-09 Tom Tromey <tom@tromey.com>
3286
3287 * tui/tui-disasm.c (tui_get_low_disassembly_address): Compute
3288 window height directly.
3289 * tui/tui-layout.h (tui_default_win_viewport_height): Don't
3290 declare.
3291 * tui/tui-layout.c (tui_default_win_height): Remove.
3292 (tui_default_win_viewport_height): Remove.
3293
d2dd1084
TT
32942019-10-09 Tom Tromey <tom@tromey.com>
3295
3296 * tui/tui.h: Remove comments.
3297
cff32449
TV
32982019-10-09 Tom de Vries <tdevries@suse.de>
3299
3300 * python/lib/gdb/printer/bound_registers.py: Use
3301 '^builtin_type_bound128' as regexp argument for
3302 add_builtin_pretty_printer.
3303
6a25e8a2
CB
33042019-10-09 Christian Biesinger <cbiesinger@google.com>
3305
3306 * guile/guile.c (guile_extension_script_ops): Remove forward
3307 declaration and mark as static.
3308 (guile_script_ops): Likewise.
3309 (extension_language_guile): Move further down in the file so
3310 it can reference the definitions for guile_{extension_,}script_ops.
3311
6d9d6da4
AA
33122019-10-09 Andreas Arnez <arnez@linux.ibm.com>
3313
3314 * s390-tdep.c (390_process_record): Handle new arch13 instructions
3315 except SORTL, DFLTCC, and KDSA.
3316
3abea05d
TT
33172019-10-08 Tom Tromey <tromey@adacore.com>
3318
3319 * windows-nat.c (struct windows_thread_info_struct) <sf>: Remove.
3320 (struct safe_symbol_file_add_args): Remove.
3321
dde996e2
TT
33222019-10-08 Tom Tromey <tromey@adacore.com>
3323
3324 * windows-nat.c: Don't include buildsym-legacy.h.
3325
cd6fdaa1
TT
33262019-10-08 Tom Tromey <tromey@adacore.com>
3327
3328 * contrib/ari/gdb_ari.sh (%p): Allow gdb-specific %p extensions.
3329
79bb1944
CB
33302019-10-08 Christian Biesinger <cbiesinger@google.com>
3331
3332 * gdbtypes.c (overload_debug): Move comment to header.
3333 * gdbtypes.h (overload_debug): Declare.
3334 * valops.c: Remove declaration of overload_debug, instead
3335 include gdbtypes.h.
3336
34916edc
CB
33372019-10-08 Christian Biesinger <cbiesinger@google.com>
3338
3339 * language.c (show_language_command): Pass lang_frame_mismatch_warn
3340 through _().
3341 (lang_frame_mismatch_warn): Make const, mark with N_(), and
3342 move comment...
3343 * language.h (lang_frame_mismatch_warn): ... here. Also add
3344 declaration.
3345 * top.c (lang_frame_mismatch_warn): Remove declaration.
3346 (check_frame_language_change): Pass lang_frame_mismatch_warn
3347 through _().
3348
bad5c026
CB
33492019-10-07 Christian Biesinger <cbiesinger@google.com>
3350
3351 * c-lang.h (vtbl_ptr_name): Declare.
3352 * cp-valprint.c (vtbl_ptr_name): Remove "extern" now that we get
3353 it from the header.
3354 * stabsread.c (define_symbol): Remove declaration of vtbl_ptr_name.
3355
51f1fdc3
CB
33562019-10-07 Christian Biesinger <cbiesinger@google.com>
3357
3358 * charset.c (your_gdb_wchar_t_is_bogus): Replace with a
3359 gdb_static_assert.
3360
30d1f018
WP
33612019-10-07 Weimin Pan <weimin.pan@oracle.com>
3362
606813d5
WP
3363 * ../Makefile.def (dependencies): Add all-libctf to all-gdb
3364 * ../Makefile.in: Add "all-gdb: maybe-all-libctf"
30d1f018
WP
3365 * ctfread.c: New file.
3366 * ctfread.h: New file.
3367 * elfread.c: Include ctfread.h.
3368 (struct elfinfo text_p): New member ctfsect.
3369 (elf_locate_sections): Mark CTF section.
3370 (elf_symfile_read): Call elfctf_build_psymtabs.
3371 * Makefile.in (LIBCTF): Add.
3372 (CLIBS): Use it.
3373 (CDEPS): Likewise.
3374 (DIST): Add ctfread.c.
606813d5
WP
3375
33762019-10-07 Andrew Burgess <andrew.burgess@embecosm.com>
3377
3378 * ctfread.c (struct nextfield): Renamed to ...
3379 (struct ctf_nextfield): ... this.
3380 (struct field_info): Renamed to ...
3381 (strut ctf_field_info): ... this.
3382 (attach_fields_to_type): Update for renamed structures.
3383 (ctf_add_member_cb): Likewise.
3384 (ctf_add_enum_member_cb): Likewise.
3385 (process_struct_members): Likewise.
3386 (process_enum_type): Likewise.
30d1f018 3387
518fe38c
WP
33882019-10-07 Weimin Pan <weimin.pan@oracle.com>
3389
3390 * tracectf.h: Rename, was ctf.h.
3391 * tracectf.c: Rename, was ctf.c, replace ctf.h with tracectf.h.
3392 * tracefile.c: Likewise.
3393 * tracepoint.c: Remove unused include ctf.h.
3394 * mi/mi-main.c: Likewise.
3395 * Makefile.in Replace ctf.c with tracectf.c.
3396
225f296a
JB
33972019-10-06 Joel Brobecker <brobecker@adacore.com>
3398
3399 * version.in: Change version number to "9.0.50.DATE-git".
3400
77c2dba3
TT
34012019-10-03 Tom Tromey <tom@tromey.com>
3402
3403 PR rust/24976:
3404 * dwarf2read.c (quirk_rust_enum): Handle single-element unions.
3405
179aed7f
AB
34062019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
3407
3408 * f-lang.c (f_language_defn): Use cp_get_symbol_name_matcher and
3409 cp_search_name_hash.
3410 * NEWS: Add entry about nested function support.
3411
0a4b0913
AB
34122019-10-03 Bernhard Heckel <bernhard.heckel@intel.com>
3413 Andrew Burgess <andrew.burgess@embecosm.com>
3414
3415 * cp-namespace.c (cp_search_static_and_baseclasses): Only search
3416 for nested static variables when searchin VAR_DOMAIN.
3417 * dwarf2read.c (add_partial_symbol): Add nested subroutines to the
3418 global scope, update comment.
3419 (add_partial_subprogram): Call add_partial_subprogram recursively
3420 for nested subroutines when processinng Fortran.
3421 (load_partial_dies): Process the child entities of a subprogram
3422 when processing Fortran.
3423 (partial_die_parent_scope): Handle building scope
3424 for Fortran nested functions.
3425 (process_die): Record that nested functions have a scope.
3426 (new_symbol): Always record Fortran subprograms on the global
3427 symbol list.
3428 (determine_prefix): How to build the prefix for Fortran
3429 subprograms.
3430
d8c06f22
AB
34312019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
3432
3433 * linux-nat.c (linux_nat_filter_event): Don't ignore SIGSTOP if we
3434 have just sent the thread a SIGSTOP and are waiting for it to
3435 arrive.
3436
a8b3b8e9
AB
34372019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
3438
3439 * btrace.c (btrace_add_pc): Remove whitespace before the template
3440 parameter in 'std::vector <...>'.
3441 (parse_xml_btrace_block): Likewise.
3442 (btrace_maint_decode_pt): Likewise.
3443 (btrace_maint_update_packets): Likewise.
3444 (btrace_maint_print_packets): Likewise.
3445 * btrace.h (struct btrace_maint_info): Likewise.
3446 * dwarf2read.c (struct type_unit_group): Likewise.
3447 (build_type_psymtabs_reader): Likewise.
3448 * gdbsupport/btrace-common.c (btrace_data_append): Likewise.
3449 * gdbsupport/btrace-common.h (struct btrace_data_bts): Likewise.
3450 * nat/linux-btrace.c (perf_event_read_bts): Likewise.
3451
4d825eab
TV
34522019-10-03 Tom de Vries <tdevries@suse.de>
3453
3454 * cli/cli-style.c (_initialize_cli_style): Adding a '.' at the end of
3455 the first line of the help text for set/show style metadata.
3456
80fd2826
TT
34572019-10-02 Tom Tromey <tromey@adacore.com>
3458
3459 * Makefile.in (COMMON_SFILES): Add common-inferior.c.
3460 * gdbsupport/common-inferior.c: New file.
3461 * infcmd.c (startup_with_shell): Don't define.
3462 * nat/fork-inferior.h (startup_with_shell): Don't declare.
3463 * gdbsupport/common-inferior.h (startup_with_shell): Declare.
3464 * inferior.h (startup_with_shell): Don't declare.
3465
70054538
CB
34662019-10-02 Christian Biesinger <cbiesinger@google.com>
3467
3468 * gdbsupport/gdb_assert.h: Include errors.h.
3469 * gdbsupport/gdb_string_view.h: Include gdb_assert.h.
3470
37f6a7f4
TT
34712019-10-02 Tom Tromey <tromey@adacore.com>
3472
3473 * NEWS: Add $_ada_exception entry.
3474 * ada-lang.c (struct ada_catchpoint): Add constructor.
3475 <m_kind>: New member.
3476 (allocate_location_exception, re_set_exception): Remove
3477 "ex" parameter.
3478 (should_stop_exception): Compute $_ada_exception.
3479 (check_status_exception, print_it_exception)
3480 (print_one_exception, print_mention_exception): Remove
3481 "ex" parameter.
3482 (allocate_location_catch_exception, re_set_catch_exception)
3483 (check_status_exception, print_it_catch_exception)
3484 (print_one_catch_exception, print_mention_catch_exception)
3485 (print_recreate_catch_exception)
3486 (allocate_location_catch_exception_unhandled)
3487 (re_set_catch_exception_unhandled)
3488 (check_status_exception, print_it_catch_exception_unhandled)
3489 (print_one_catch_exception_unhandled)
3490 (print_mention_catch_exception_unhandled)
3491 (print_recreate_catch_exception_unhandled)
3492 (allocate_location_catch_assert, re_set_catch_assert)
3493 (check_status_assert, print_it_catch_assert)
3494 (print_one_catch_assert, print_mention_catch_assert)
3495 (print_recreate_catch_assert)
3496 (allocate_location_catch_handlers, re_set_catch_handlers)
3497 (check_status_handlers, print_it_catch_handlers)
3498 (print_one_catch_handlers, print_mention_catch_handlers)
3499 (print_recreate_catch_handlers): Remove.
3500 (create_ada_exception_catchpoint): Update.
3501 (initialize_ada_catchpoint_ops): Update.
3502
fccf9de1
TT
35032019-10-02 Tom Tromey <tromey@adacore.com>
3504
3505 * ada-lang.c (ada_lookup_simple_minsyms): Remove.
3506 (create_excep_cond_exprs): Simplify exception string computation.
3507 (ada_exception_catchpoint_cond_string): Likewise.
3508
4b610737
TT
35092019-10-02 Tom Tromey <tromey@adacore.com>
3510
3511 * symmisc.c (dump_msymbols): Don't use MSYMBOL_VALUE_ADDRESS.
3512 * ada-lang.c (lesseq_defined_than): Handle
3513 LOC_STATIC.
3514 * dwarf2read.c (dwarf2_per_objfile): Add can_copy
3515 parameter.
3516 (dwarf2_has_info): Likewise.
3517 (new_symbol): Set maybe_copied on symbol when
3518 appropriate.
3519 * dwarf2read.h (dwarf2_per_objfile): Add can_copy
3520 parameter.
3521 <can_copy>: New member.
3522 * elfread.c (record_minimal_symbol): Set maybe_copied
3523 on symbol when appropriate.
3524 (elf_symfile_read): Update call to dwarf2_has_info.
3525 * minsyms.c (lookup_minimal_symbol_linkage): New
3526 function.
3527 * minsyms.h (lookup_minimal_symbol_linkage): Declare.
3528 * symtab.c (get_symbol_address, get_msymbol_address):
3529 New functions.
3530 * symtab.h (get_symbol_address, get_msymbol_address):
3531 Declare.
3532 (SYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_ADDRESS): Handle
3533 maybe_copied.
3534 (struct symbol, struct minimal_symbol) <maybe_copied>:
3535 New member.
3536
1dd58850
TT
35372019-10-02 Tom Tromey <tromey@adacore.com>
3538
3539 * source.c (struct current_source_location): New.
3540 (current_source_key): New global.
3541 (current_source_symtab, current_source_line)
3542 (current_source_pspace): Remove.
3543 (get_source_location): New function.
3544 (get_current_source_symtab_and_line)
3545 (set_default_source_symtab_and_line)
3546 (set_current_source_symtab_and_line)
3547 (clear_current_source_symtab_and_line, select_source_symtab)
3548 (info_source_command, print_source_lines_base)
3549 (info_line_command, search_command_helper, _initialize_source):
3550 Update.
3551
5c281dbb
TT
35522019-10-02 Tom Tromey <tromey@adacore.com>
3553
3554 * source.c (select_source_symtab): Don't call
3555 decode_line_with_current_source.
3556
d3d32391
AB
35572019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
3558
3559 * symtab.c (lookup_global_symbol): Search global block.
3560
38583298
TT
35612019-10-02 Tom Tromey <tromey@adacore.com>
3562
3563 * coffread.c (process_coff_symbol): Update.
3564 * dwarf2read.c (var_decode_location, new_symbol): Update.
3565 * mdebugread.c (parse_symbol): Update.
3566 * objfiles.c (relocate_one_symbol): Update.
3567 * stabsread.c (define_symbol, fix_common_block)
3568 (scan_file_globals): Update.
3569 * symtab.h (SYMBOL_VALUE_ADDRESS): Expand to an rvalue.
3570 (SET_SYMBOL_VALUE_ADDRESS): New macro.
3571 * xcoffread.c (process_xcoff_symbol): Update.
3572
9344c18f
AA
35732019-10-02 Andreas Arnez <arnez@linux.ibm.com>
3574
3575 * MAINTAINERS: Update my email address.
3576
df07e2c7
AB
35772019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
3578
3579 * dwarf2read.c (struct type_unit_group) <tus>: Convert to
3580 std::vector.
3581 (build_type_psymtabs_reader): Update for std::vector.
3582 (build_type_psymtab_dependencies): Likewise.
3583 * dwarf2read.h: Remove use of DEF_VEC_P.
3584 (typedef sig_type_ptr): Delete.
3585
554ac434
AB
35862019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
3587
3588 * btrace.c (btrace_maint_clear): Update to handle change from VEC
3589 to std::vector.
3590 (btrace_maint_decode_pt): Likewise, and move allocation of the
3591 vector outside of the loop.
3592 (btrace_maint_update_packets): Update to handle change from VEC to
3593 std::vector.
3594 (btrace_maint_print_packets): Likewise.
3595 (maint_info_btrace_cmd): Likewise.
3596 * btrace.h: Remove use of DEF_VEC_O.
3597 (typedef btrace_pt_packet_s): Delete.
3598 (struct btrace_maint_info) <packets>: Change fromm VEC to
3599 std::vector.
3600 * gdbsupport/btrace-common.h: Remove 'vec.h' include.
3601
46f29a9a
AB
36022019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
3603
3604 * btrace.c (btrace_compute_ftrace_bts): Update for std::vector,
3605 make accesses into the vector constant references.
3606 (btrace_add_pc): Update for std::vector.
3607 (btrace_stitch_bts): Likewise.
3608 (parse_xml_btrace_block): Likewise.
3609 (btrace_maint_update_packets): Likewise.
3610 (btrace_maint_print_packets): Likewise.
3611 (maint_info_btrace_cmd): Likewise.
3612 * gdbsupport/btrace-common.c (btrace_data::fini): Update for
3613 std::vector.
3614 (btrace_data::empty): Likewise.
3615 (btrace_data_append): Likewise.
3616 * gdbsupport/btrace-common.h: Remove use of DEF_VEC_O.
3617 (typedef btrace_block_s): Delete.
3618 (struct btrace_block): Add constructor.
3619 (struct btrace_data_bts) <blocks>: Change to std::vector.
3620 * nat/linux-btrace.c (perf_event_read_bts): Update for
3621 std::vector.
3622 (linux_read_bts): Likewise.
3623
d770d56f
TT
36242019-10-01 Tom Tromey <tom@tromey.com>
3625
3626 * cli/cli-logging.c (show_logging_filename): Use styled_string.
3627
9d636d67
TT
36282019-10-01 Tom Tromey <tom@tromey.com>
3629
3630 * stack.c (print_frame, info_frame_command_core): Use
3631 styled_string.
3632 * linux-thread-db.c (try_thread_db_load_1)
3633 (try_thread_db_load_from_pdir_1): Use styled_string.
3634 * auto-load.c (file_is_auto_load_safe, execute_script_contents)
3635 (auto_load_section_scripts, info_auto_load_local_gdbinit)
3636 (maybe_print_unsupported_script_warning)
3637 (maybe_print_script_not_found_warning): Use styled_string.
3638 * ada-lang.c (user_select_syms): Use styled_string.
3639
7f6aba03
TT
36402019-10-01 Tom Tromey <tom@tromey.com>
3641
3642 * p-lang.c (pascal_printstr): Use metadata style.
3643 * value.c (show_convenience): Use metadata style.
3644 * valprint.c (valprint_check_validity, val_print_optimized_out)
3645 (val_print_not_saved, val_print_unavailable)
3646 (val_print_invalid_address, generic_val_print, val_print)
3647 (value_check_printable, val_print_array_elements): Use metadata
3648 style.
3649 * ui-out.h (class ui_out) <field_fmt>: New overload.
3650 <do_field_fmt>: Add style parameter.
3651 * ui-out.c (ui_out::field_fmt): New overload.
3652 * typeprint.c (type_print_unknown_return_type)
3653 (val_print_not_allocated, val_print_not_associated): Use metadata
3654 style.
3655 * tui/tui-out.h (class tui_ui_out) <do_field_fmt>: Add style
3656 parameter.
3657 * tui/tui-out.c (tui_ui_out::do_field_fmt): Update.
3658 * tracepoint.c (tvariables_info_1): Use metadata style.
3659 * stack.c (print_frame_arg, print_frame_info, print_frame)
3660 (info_frame_command_core): Use metadata style.
3661 * skip.c (info_skip_command): Use metadata style.
3662 * rust-lang.c (rust_print_enum): Use metadata style.
3663 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
3664 metadata style.
3665 * python/py-framefilter.c (py_print_single_arg): Use metadata
3666 style.
3667 * printcmd.c (do_one_display, print_variable_and_value): Use
3668 metadata style.
3669 * p-valprint.c (pascal_val_print)
3670 (pascal_object_print_value_fields): Use metadata style.
3671 * p-typeprint.c (pascal_type_print_base): Use metadata style.
3672 * mi/mi-out.h (class mi_ui_out) <do_field_fmt>: Add style
3673 parameter.
3674 * mi/mi-out.c (mi_ui_out::do_field_fmt): Update.
3675 * m2-valprint.c (m2_print_long_set): Use metadata style.
3676 * m2-typeprint.c (m2_print_type): Use metadata style.
3677 * infcmd.c (print_return_value_1): Use metadata style.
3678 * gnu-v3-abi.c (print_one_vtable): Use metadata style.
3679 * f-valprint.c (info_common_command_for_block): Use metadata
3680 style.
3681 * f-typeprint.c (f_type_print_base): Use metadata style.
3682 * expprint.c (print_subexp_standard): Use metadata style.
3683 * cp-valprint.c (cp_print_value_fields): Use metadata style.
3684 * cli/cli-style.h (class cli_style_option): Add constructor.
3685 (metadata_style): Declare.
3686 * cli/cli-style.c (metadata_style): New global.
3687 (_initialize_cli_style): Register metadata style.
3688 * cli-out.h (class cli_ui_out) <do_field_fmt>: Add style
3689 parameter.
3690 * cli-out.c (cli_ui_out::do_field_fmt): Update.
3691 * c-typeprint.c (c_type_print_base_struct_union)
3692 (c_type_print_base_1): Use metadata style.
3693 * breakpoint.c (watchpoint_value_print)
3694 (print_one_breakpoint_location): Use metadata style.
3695 * break-catch-syscall.c (print_one_catch_syscall): Use metadata
3696 style.
3697 * break-catch-sig.c (signal_catchpoint_print_one): Use metadata
3698 style.
3699 * ada-valprint.c (val_print_packed_array_elements, printstr)
3700 (print_field_values, ada_val_print_ref, ada_val_print): Use
3701 metadata style.
3702 * ada-typeprint.c (print_array_type, ada_print_type): Use metadata
3703 style.
3704 * ada-tasks.c (print_ada_task_info, info_task): Use metadata
3705 style.
3706 * ada-lang.c (user_select_syms): Use metadata style.
3707
14309bb6
TT
37082019-10-01 Tom Tromey <tom@tromey.com>
3709
3710 * cli/cli-cmds.c (pwd_command): Style output.
3711
6a831f06
PA
37122019-10-01 Pedro Alves <palves@redhat.com>
3713 Tom Tromey <tom@tromey.com>
3714
3715 * symtab.c (print_symbol_info): Use %ps.
3716 (print_msymbol_info): Use %ps.
3717 * symfile.c (symbol_file_add_with_addrs): Use %ps.
3718 * printcmd.c (print_variable_and_value): Use %ps.
3719 * macrocmd.c (show_pp_source_pos): Use %ps.
3720 * infrun.c (print_exited_reason): Use ui_out::message.
3721 * breakpoint.c (watchpoint_check, print_one_breakpoint_location)
3722 (describe_other_breakpoints): Use ui_out::message and new
3723 formats.
3724 (say_where): Use new formats.
3725 (bkpt_print_it, tracepoint_print_one_detail): Use ui_out::message
3726 and new formats.
3727
2a3c1174
PA
37282019-10-01 Pedro Alves <palves@redhat.com>
3729 Tom Tromey <tom@tromey.com>
3730
3731 * unittests/format_pieces-selftests.c: Add gdb_format parameter.
3732 (test_gdb_formats): New function.
3733 (run_tests): Call it.
3734 (test_format_specifier): Update.
3735 * utils.h (fputs_filtered): Update comment.
3736 (vfprintf_styled, vfprintf_styled_no_gdbfmt)
3737 (fputs_styled_unfiltered): Declare.
3738 * utils.c (fputs_styled_unfiltered): New function.
3739 (vfprintf_maybe_filtered): Add gdbfmt parameter.
3740 (vfprintf_filtered): Update.
3741 (vfprintf_unfiltered, vprintf_filtered): Update.
3742 (vfprintf_styled, vfprintf_styled_no_gdbfmt): New functions.
3743 * ui-out.h (enum ui_out_flag) <unfiltered_output,
3744 disallow_ui_out_field>: New constants.
3745 (enum class field_kind): New.
3746 (struct base_field_s, struct signed_field_s): New.
3747 (signed_field): New function.
3748 (struct string_field_s): New.
3749 (string_field): New function.
3750 (struct styled_string_s): New.
3751 (styled_string): New function.
3752 (class ui_out) <message>: Add comment.
3753 <vmessage, call_do_message>: New methods.
3754 <do_message>: Add style parameter.
3755 * ui-out.c (ui_out::call_do_message, ui_out::vmessage): New
3756 methods.
3757 (ui_out::message): Rewrite.
3758 * mi/mi-out.h (class mi_ui_out) <do_message>: Add style
3759 parameter.
3760 * mi/mi-out.c (mi_ui_out::do_message): Add style parameter.
3761 * gdbsupport/format.h (class format_pieces) <format_pieces>: Add
3762 gdb_extensions parameter.
3763 (class format_piece): Add parameter to constructor.
3764 (n_int_args): New field.
3765 * gdbsupport/format.c (format_pieces::format_pieces): Add
3766 gdb_extensions parameter. Handle '*'.
3767 * cli-out.h (class cli_ui_out) <do_message>: Add style parameter.
3768 * cli-out.c (cli_ui_out::do_message): Add style parameter. Call
3769 vfprintf_styled_no_gdbfmt.
3770 (cli_ui_out::do_field_string, cli_ui_out::do_spaces)
3771 (cli_ui_out::do_text, cli_ui_out::field_separator): Allow
3772 unfiltered output.
3773 * ui-style.h (struct ui_file_style) <ptr>: New method.
3774
0dfe5bfb
TT
37752019-10-01 Tom Tromey <tom@tromey.com>
3776
3777 * unittests/format_pieces-selftests.c: Update. Add final format.
3778 * gdbsupport/format.c (format_pieces::format_pieces): Don't add
3779 empty literal pieces.
3780
e43b10e1
TT
37812019-10-01 Tom Tromey <tom@tromey.com>
3782
3783 * ui-out.h (enum class ui_out_style_kind): Remove.
3784 (class ui_out) <field_string, field_stsream, do_field_string>:
3785 Change type of "style".
3786 * ui-out.c (ui_out::field_core_addr, ui_out::field_stream)
3787 (ui_out::field_string): Update.
3788 * tui/tui-out.h (class tui_ui_out) <do_field_string>: Change type
3789 of "style".
3790 * tui/tui-out.c (tui_ui_out::do_field_string): Update.
3791 * tracepoint.c (print_one_static_tracepoint_marker): Update.
3792 * stack.c (print_frame_arg, print_frame_info, print_frame):
3793 Update.
3794 * source.c (print_source_lines_base): Update.
3795 * solib.c (info_sharedlibrary_command): Update.
3796 * skip.c (info_skip_command): Update.
3797 * record-btrace.c (btrace_call_history_src_line)
3798 (btrace_call_history): Update.
3799 * python/py-framefilter.c (py_print_frame): Update.
3800 * mi/mi-out.h (class mi_ui_out) <do_field_string>: Change type of
3801 "style".
3802 * mi/mi-out.c (mi_ui_out::do_table_header)
3803 (mi_ui_out::do_field_signed, mi_ui_out::do_field_unsigned)
3804 (mi_ui_out::do_field_string): Update.
3805 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
3806 Update.
3807 * cli-out.h (class cli_ui_out) <do_field_string>: Change type of
3808 "style".
3809 * cli-out.c (cli_ui_out::do_table_header)
3810 (cli_ui_out::do_field_signed, cli_ui_out::do_field_unsigned)
3811 (cli_ui_out::do_field_skip, cli_ui_out::do_field_string)
3812 (cli_ui_out::do_field_fmt): Update.
3813 * breakpoint.c (print_breakpoint_location): Update.
3814 (update_static_tracepoint): Update.
3815
cd7c32c3
PW
38162019-10-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3817
3818 * main.c (relocate_gdbinit_path_maybe_in_datadir): Remove std::string
3819 conversion of gdb_datadir.
3820 (captured_main_1): Remove xstrdup when assigning to gdb_datadir,
3821 remove not needed c_str ().
3822
8fe0f950
AT
38232019-09-30 Ali Tamur <tamur@google.com>
3824
3825 * dwarf2read.c (skip_one_die): Handle DW_FORM_strx forms.
3826 (dwarf2_string_attr): Likewise.
3827
5f48f8f3
AT
38282019-09-30 Ali Tamur <tamur@google.com>
3829
3830 * dwarf2read.c (process_full_comp_unit): Remove whitespace at the EOL.
3831 (process_full_type_unit): Likewise.
3832 (dump_die_shallow): Likewise.
3833 (cu_debug_loc_section): Likewise.
3834
6fb08628
CB
38352019-09-28 Christian Biesinger <cbiesinger@google.com>
3836
3837 * minsyms.c (compare_minimal_symbols): Rename to...
3838 (minimal_symbol_is_less_than): ...this, and adjust to STL
3839 conventions (return bool, take arguments as references)
3840 (minimal_symbol_reader::install): Call std::sort instead
3841 of qsort.
3842
c7ee338a
CB
38432019-09-29 Christian Biesinger <cbiesinger@google.com>
3844
3845 * minsyms.h (msymbol_hash): Document that this is a case-insensitive
3846 hash and why.
3847 * objfiles.h (struct objfile_per_bfd_storage) <demangled_names_hash,
3848 msymbol_hash, msymbol_demangled_hash>: Improve comments.
3849
703a86c2
SM
38502019-09-30 Simon Marchi <simon.marchi@polymtl.ca>
3851
3852 * psymtab.c (add_psymbol_to_list): Move comment to psympriv.h.
3853 * psympriv.h (add_psymbol_to_list): Move comment here and update
3854 it.
3855
0df0352a
TV
38562019-09-29 Tom de Vries <tdevries@suse.de>
3857
3858 * contrib/cc-with-tweaks.sh (get_tmpdir): New function.
3859 Use $tmpdir/$(basename "$output_file").dwz instead of
3860 "${output_file}.dwz".
3861
ad75efa6
SM
38622019-09-28 Simon Marchi <simon.marchi@polymtl.ca>
3863
3864 PR gdb/25045
3865 * hppa-linux-nat.c: Include gdbarch.h.
3866
ececd218
CB
38672019-09-26 Christian Biesinger <cbiesinger@google.com>
3868
3869 * blockframe.c (find_pc_partial_function): Change return type to bool.
3870 * elfread.c (elf_gnu_ifunc_resolve_name): Likewise.
3871 * minsyms.c (in_gnu_ifunc_stub): Likewise.
3872 (stub_gnu_ifunc_resolve_name): Likewise.
3873 * symtab.c (compare_filenames_for_search): Likewise.
3874 (compare_glob_filenames_for_search): Likewise.
3875 (matching_obj_sections): Likewise.
3876 (symbol_matches_domain): Likewise.
3877 (find_line_symtab): Change out param EXACT_MATCH to bool *.
3878 (find_line_pc): Change return type to bool.
3879 (find_line_pc_range): Likewise.
3880 (producer_is_realview): Likewise.
3881 * symtab.h (symbol_matches_domain): Likewise.
3882 (find_pc_partial_function): Likewise.
3883 (find_pc_line_pc_range): Likewise.
3884 (in_gnu_ifunc_stub): Likewise.
3885 (struct gnu_ifunc_fns) <gnu_ifunc_resolve_name>: Likewise.
3886 (find_line_pc): Likewise.
3887 (find_line_pc_range): Likewise.
3888 (matching_obj_sections): Likewise.
3889 (find_line_symtab): Change out parameter to bool.
3890 (producer_is_realview): Change return type to bool.
3891 (compare_filenames_for_search): Likewise.
3892 (compare_glob_filenames_for_search): Likewise.
3893
27a900b8
TT
38942019-09-26 Tom Tromey <tom@tromey.com>
3895
3896 * Makefile.in (COMMON_SFILES): Remove gdb_usleep.c.
3897 (HFILES_NO_SRCDIR): Remove gdb_usleep.h.
3898 * gdb_usleep.h: Remove.
3899 * gdb_usleep.c: Remove.
3900 * utils.c: Don't include gdb_usleep.h.
3901
5d63b30a
TT
39022019-09-26 Tom Tromey <tromey@adacore.com>
3903
3904 * python/py-type.c (type_to_type_object): Call check_typedef
3905 for stub types.
3906
12904d37
TT
39072019-09-26 Tom Tromey <tom@tromey.com>
3908
3909 * utils.h (initialize_utils): Don't declare.
3910 * top.c (gdb_init): Don't call initialize_utils.
3911 * utils.c (initialize_utils): Remove. Move contents...
3912 (_initialize_utils): ... here.
3913
858f25f0
TT
39142019-09-25 Tom Tromey <tom@tromey.com>
3915
3916 * python/py-objfile.c (objfpy_get_build_id): Use bin2hex.
3917 * utils.h (make_hex_string): Don't declare.
3918 * utils.c (make_hex_string): Remove.
3919
3d435220
TV
39202019-09-24 Tom de Vries <tdevries@suse.de>
3921
3922 PR gdb/23815
3923 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers):
3924 Initialize xstateregs before ptrace PTRACE_GETREGSET call.
3925
ddd44b70
DD
39262019-09-23 Dimitar Dimitrov <dimitar@dinux.eu>
3927
3928 * NEWS: Mention new simulator port for PRU.
3929
f945dedf
CB
39302019-09-23 Christian Biesinger <cbiesinger@google.com>
3931
3932 * ada-exp.y (write_object_remaining): Update.
3933 * ada-lang.c (ada_decode): Return a std::string instead of a char*
3934 and eliminate the static buffer.
3935 (ada_decode_symbol): Update.
3936 (ada_la_decode): Update.
3937 (ada_sniff_from_mangled_name): Update.
3938 (is_valid_name_for_wild_match): Update.
3939 (ada_lookup_name_info::matches): Update and simplify.
3940 (name_matches_regex): Update.
3941 (ada_add_global_exceptions): Update.
3942 * ada-lang.h (ada_decode): Update signature.
3943 * ada-varobj.c (ada_varobj_describe_simple_array_child): Update.
3944 * dwarf-index-write.c (debug_names::insert): Update.
3945
7ab78ccb
SM
39462019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
3947
3948 * solib-svr4.c (svr4_iterate_over_objfiles_in_search_order): Fix
3949 formatting.
3950
9252448b
SM
39512019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
3952
3953 * breakpoint.h (bp_location) <inserted, permanent, duplicate>:
3954 Change "nonzero" to "true" in documentation.
3955
626ca2c0
CB
39562019-09-20 Christian Biesinger <cbiesinger@google.com>
3957
3958 * solib-darwin.c (darwin_lookup_lib_symbol): Remove.
3959 (_initialize_darwin_solib): Don't set
3960 darwin_so_ops.lookup_lib_global_symbol.
3961 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets): Call
3962 set_gdbarch_iterate_over_objfiles_in_search_order.
3963 (elf_lookup_lib_symbol): Rename to...
3964 (svr4_iterate_over_objfiles_in_search_order): this, and update
3965 to iterate semantics.
3966 (_initialize_svr4_solib): Don't set lookup_lib_global_symbol.
3967 * solib.c (solib_global_lookup): Remove.
3968 * solist.h (struct target_so_ops): Remove lookup_lib_global_symbol.
3969 (solib_global_lookup): Remove.
3970 * symtab.c (lookup_global_or_static_symbol): Remove call to
3971 solib_global_lookup.
3972
5a3a0d63
JB
39732019-09-20 Joel Brobecker <brobecker@adacore.com>
3974
3975 * NEWS: Move entries about default MI version now being
3976 version 3, and about the GDB/MI fix for multi-location
3977 breakpoints to the "since GDB 8.3" section.
3978
ffea1427
JB
39792019-09-20 Joel Brobecker <brobecker@adacore.com>
3980
3981 GDB 8.3.1 released.
3982
abf516c6
UW
39832019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
3984
3985 * NEWS: Mention that Cell/B.E. debugging support was removed.
3986 * MAINTAINERS: Remove spu target.
3987
3988 * config/djgpp/fnchange.lst: Remove entries for removed files.
3989
3990 * Makefile.in (ALL_TARGET_OBS): Remove solib-spu.o,
3991 spu-multiarch.o, and spu-tdep.o.
3992 (HFILES_NO_SRCDIR): Remove solib-spu.h and spu-tdep.h.
3993 (ALLDEPFILES): Remove solib-spu.c, spu-linux-nat.c,
3994 spu-multiarch.c, and spu-tdep.c.
3995 * spu-linux-nat.c: Remove file.
3996 * spu-multiarch.c: Remove file.
3997 * spu-tdep.c: Remove file.
3998 * spu-tdep.h: Remove file.
3999 * solib-spu.c: Remove file.
4000 * solib-spu.h: Remove file.
4001
4002 * configure.host (powerpc64*-*-linux*): Remove Cell/B.E. support.
4003 * configure.nat (spu-linux): Remove.
4004 * configure.tgt (powerpc*-*-linux*): Remove solib-spu.o and
4005 solib-multiarch.o from gdb_target_obs.
4006 (spu*-*-*): Remove.
4007
4008 * arch/ppc-linux-common.h (struct ppc_linux_features): Remove "cell"
4009 feature flag.
4010 (ppc_linux_no_features): Update.
4011 * arch/ppc-linux-common.c (ppc_linux_match_description): Remove
4012 Cell/B.E. support.
4013 * arch/ppc-linux-tdesc.h (tdesc_powerpc_cell32l): Remove declaration.
4014 (tdesc_powerpc_cell64l): Likewise.
4015 * nat/ppc-linux.h (PPC_FEATURE_CELL): Remove.
4016 * ppc-linux-nat.c (ppc_linux_nat_target::read_description): Remove
4017 Cell/B.E. support.
4018 * ppc-linux-tdep.h: Do not include "solib-spu.h" or "spu-tdep.h".
4019 Do not include "features/rs6000/powerpc-cell32l.c" or
4020 "features/rs6000/powerpc-cell64l.c".
4021 (ppc_linux_spu_section): Remove.
4022 (ppc_linux_core_read_description): Remove Cell/B.E. support.
4023 (spe_context_objfile, spe_context_lm_addr, spe_context_offset,
4024 spe_context_cache_ptid, spe_context_cache_ptid): Remove.
4025 (ppc_linux_spe_context_lookup): Remove.
4026 (ppc_linux_spe_context_inferior_created): Remove.
4027 (ppc_linux_spe_context_solib_loaded): Remove.
4028 (ppc_linux_spe_context_solib_unloaded): Remove.
4029 (ppc_linux_spe_context): Remove.
4030 (struct ppu2spu_cache): Remove.
4031 (ppu2spu_prev_arch, ppu2spu_this_id, ppu2spu_prev_register): Remove.
4032 (struct ppu2spu_data): Remove.
4033 (ppu2spu_unwind_register, ppu2spu_sniffer, ppu2spu_dealloc_cache,
4034 ppu2spu_unwind): Remove.
4035 (ppc_linux_init_abi): Remove Cell/B.E. support.
4036 * rs6000-tdep.h (rs6000_gdbarch_init): Remove Cell/B.E. support.
4037
4038 * features/Makefile (rs6000/powerpc-cell32l-expedite): Remove.
4039 (rs6000/powerpc-cell64l-expedite): Likewise
4040 (WHICH): Remove rs6000/powerpc-cell32l and rs6000/powerpc-cell64l.
4041 (XMLTOC): Remove rs6000/powerpc-cell32l.xml and
4042 rs6000/powerpc-cell64l.xml.
4043 * features/rs6000/powerpc-cell32l.xml: Remove.
4044 * features/rs6000/powerpc-cell64l.xml: Likewise.
4045 * features/rs6000/powerpc-cell32l.c: Remove generated file.
4046 * features/rs6000/powerpc-cell64l.c: Likewise.
4047 * regformats/rs6000/powerpc-cell32l.dat: Remove generated file.
4048 * regformats/rs6000/powerpc-cell64l.dat: Likewise.
4049 * regformats/reg-spu.dat: Remove.
4050
4051 * target.h (enum target_object): Remove TARGET_OBJECT_SPU.
4052 * corelow.c (struct spuid_list): Remove.
4053 (add_to_spuid_list): Remove.
4054 (core_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
4055 * remote.c (PACKET_qXfer_spu_read, PACKET_qXfer_spu_write): Remove.
4056 (remote_protocol_features): Remove associated entries.
4057 (_initialize_remote): No longer initialize them.
4058 (remote_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
4059 * linux-nat.c (SPUFS_MAGIC): Remove.
4060 (linux_proc_xfer_spu): Remove.
4061 (spu_enumerate_spu_ids): Remove.
4062 (linux_nat_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
4063 * linux-tdep.c (-linux_spu_make_corefile_notes): Remove.
4064 (linux_make_corefile_notes): No longer call it.
4065
4066 * regcache.c (cooked_read_test): Remove bfd_arch_spu special case.
4067 (cooked_write_test): Likewise.
4068
78e8cb91
TT
40692019-09-20 Tom Tromey <tom@tromey.com>
4070
4071 * NEWS: Mention case-sensitivity of TUI commands.
4072 * tui/tui-win.c (tui_set_focus_command): Now case-sensitive.
4073 (tui_set_win_height_command, parse_scrolling_args): Likewise.
4074 * tui/tui-layout.c (tui_layout_command): Now case-sensitive.
4075
f074b67e
TT
40762019-09-20 Tom Tromey <tom@tromey.com>
4077
4078 * tui/tui-source.c (tui_source_window::set_contents): Use
4079 make_unique_xstrdup.
4080 * tui/tui-disasm.c (tui_disasm_window::set_contents): Use
4081 make_unique_xstrdup.
4082
63c4bf19
TT
40832019-09-20 Tom Tromey <tom@tromey.com>
4084
4085 * tui/tui-data.c: Remove separator comments.
4086 * tui/tui-layout.c: Remove separator comments.
4087 * tui/tui-win.c: Remove separator comments.
4088 * tui/tui-wingeneral.c: Remove separator comments.
4089
43df9b2f
TT
40902019-09-20 Tom Tromey <tom@tromey.com>
4091
4092 * tui/tui.h (strcat_to_buf): Don't declare.
4093 * tui/tui.c (strcat_to_buf): Remove.
4094
7226433c
TT
40952019-09-20 Tom Tromey <tom@tromey.com>
4096
4097 * tui/tui-source.h (struct tui_source_window) <m_fullname>: Rename
4098 from "fullname".
4099 * tui/tui-source.c (tui_source_window::set_contents)
4100 (tui_source_window::location_matches_p)
4101 (tui_source_window::maybe_update): Update.
4102
80df3337
TT
41032019-09-20 Tom Tromey <tom@tromey.com>
4104
4105 * tui/tui-regs.h (struct tui_data_window) <get_current_group>:
4106 Update.
4107 <m_regs_content, m_regs_column_count, m_current_group>: Add "m_"
4108 prefix.
4109 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
4110 (tui_data_window::line_from_reg_element_no)
4111 (tui_data_window::first_reg_element_no_inline)
4112 (tui_data_window::show_registers)
4113 (tui_data_window::show_register_group)
4114 (tui_data_window::display_registers_from)
4115 (tui_data_window::display_registers_from_line)
4116 (tui_data_window::first_data_item_displayed)
4117 (tui_data_window::delete_data_content_windows)
4118 (tui_data_window::erase_data_content)
4119 (tui_data_window::do_scroll_vertical)
4120 (tui_data_window::refresh_window)
4121 (tui_data_window::check_register_values): Update.
4122
9923f347
TT
41232019-09-20 Tom Tromey <tom@tromey.com>
4124
4125 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN): Remove define.
4126 (struct tui_locator_window) <full_name, proc_name>: Now
4127 std::string.
4128 * tui/tui-stack.c (tui_locator_window::make_status_line)
4129 (tui_locator_window::set_locator_fullname)
4130 (tui_locator_window::set_locator_info): Update.
4131 * tui/tui-source.c (tui_source_window::set_contents)
4132 (tui_source_window::showing_source_p): Update.
4133
b76251ab
TT
41342019-09-20 Tom Tromey <tom@tromey.com>
4135
4136 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
4137 Don't call tui_locator_win_info_ptr.
4138
0891be08
TT
41392019-09-20 Tom Tromey <tom@tromey.com>
4140
4141 * tui/tui-win.c (tui_resize_all): Don't call refresh.
4142
1b935acf
TT
41432019-09-20 Tom Tromey <tom@tromey.com>
4144
4145 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use 1 as
4146 height for locator.
4147 * tui/tui-stack.c (tui_locator_window::rerender): Call scrollok.
4148 * tui/tui-layout.c (show_source_disasm_command, show_data)
4149 (show_source_or_disasm_and_command): Use 1 as height for locator.
4150
9abd8a65
TT
41512019-09-20 Tom Tromey <tom@tromey.com>
4152
4153 * tui/tui.c (tui_enable): Update.
4154 * tui/tui-win.c (tui_sigwinch_handler, tui_async_resize_screen):
4155 Update.
4156 * tui/tui-data.h (tui_win_resized, tui_set_win_resized_to):
4157 Update.
4158 * tui/tui-data.c (win_resized): Now bool.
4159 (tui_win_resized): Return bool.
4160 (tui_set_win_resized_to): Accept a bool.
4161
b5457826
TT
41622019-09-20 Tom Tromey <tom@tromey.com>
4163
4164 * tui/tui-regs.h (struct tui_data_window) <show_register_group>:
4165 Change type of "refresh_values_only".
4166 * tui/tui-regs.c (tui_data_window::show_register_group): Change
4167 type of "refresh_values_only".
4168
6b915f7d
TT
41692019-09-20 Tom Tromey <tom@tromey.com>
4170
4171 * tui/tui-disasm.c (struct tui_asm_line) <addr_string, insn>: Now
4172 std::string.
4173 (tui_disassemble): Add "pos" parameter.
4174 (tui_disasm_window::set_contents): Simplify.
4175
2ad52f6f
TT
41762019-09-20 Tom Tromey <tom@tromey.com>
4177
4178 * tui/tui-winsource.h (struct tui_source_window_base)
4179 <show_source_content>: Now private.
4180 * tui/tui-winsource.c
4181 (tui_source_window_base::show_source_content): Don't handle empty
4182 content case.
4183
b3b1bde6
TT
41842019-09-20 Tom Tromey <tom@tromey.com>
4185
4186 * tui/tui-layout.c (show_source_disasm_command)
4187 (show_source_or_disasm_and_command): Don't call
4188 show_source_content.
4189
71a25ed2
TT
41902019-09-20 Tom Tromey <tom@tromey.com>
4191
4192 * tui/tui-stack.h (struct tui_locator_window) <make_status_line>:
4193 Declare.
4194 * tui/tui-stack.c (tui_locator_window::make_status_line): Rename
4195 from tui_make_status_line.
4196 (tui_locator_window::rerender): Update.
4197
f8532154
TT
41982019-09-20 Tom Tromey <tom@tromey.com>
4199
4200 * tui/tui-stack.c (tui_make_status_line): Return std::string.
4201 (tui_locator_window::rerender): Update.
4202
2d81b349
TT
42032019-09-20 Tom Tromey <tom@tromey.com>
4204
4205 * tui/tui-winsource.h (struct tui_source_window_base)
4206 <~tui_source_window_base>: Don't declare.
4207 <fullname>: Remove.
4208 * tui/tui-winsource.c (~tui_source_window_base): Remove.
4209 * tui/tui-source.h (struct tui_source_window) <fullname>: New
4210 member.
4211 * tui/tui-source.c (tui_source_window::set_contents): Update.
4212 (tui_source_window::location_matches_p)
4213 (tui_source_window::maybe_update): Update.
4214
f14bec58
TT
42152019-09-20 Tom Tromey <tom@tromey.com>
4216
4217 * tui/tui-winsource.h (~tui_source_element): Remove.
4218 (tui_source_element): Update.
4219 (struct tui_source_element) <line>: Now a unique_xmalloc_ptr.
4220 * tui/tui-winsource.c (tui_show_source_line): Update.
4221 * tui/tui-source.c (tui_source_window::set_contents): Update.
4222 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
4223
78d5933a
TT
42242019-09-20 Tom Tromey <tom@tromey.com>
4225
4226 * tui/tui-data.h (tui_clear_source_windows_detail): Don't
4227 declare.
4228 * tui/tui-layout.c (tui_add_win_to_layout): Don't call
4229 tui_clear_source_windows_detail.
4230 * tui/tui-winsource.h (struct tui_source_window_base)
4231 <clear_detail>: Don't declare.
4232 * tui/tui-winsource.c (tui_source_window_base::clear_detail):
4233 Remove.
4234 * tui/tui-data.c (tui_clear_source_windows_detail): Remove.
4235
d4207696
TT
42362019-09-20 Tom Tromey <tromey@adacore.com>
4237
4238 PR ada/24919:
4239 * block.c (contained_in): Fix final return value.
4240
00f93c44
AM
42412019-09-20 Alan Modra <amodra@gmail.com>
4242
4243 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Use bfd_set_usrdata.
4244 * dwarf2read.c (dwarf2_read_gdb_index, dwarf2_read_debug_names),
4245 (read_indirect_string_from_dwz): Use bfd accessor.
4246 * dwarf2read.h (struct dwz_file <filename>): Likewise.
4247 * machoread.c (macho_symfile_read_all_oso): Likewise.
4248 * solib.c (solib_bfd_open): Likewise.
4249
e4153ae6
CB
42502019-09-19 Christian Biesinger <cbiesinger@google.com>
4251
4252 * eval.c: Move declaration of overload_resolution to...
4253 * value.h: ...here.
4254
c7ae7675
CB
42552019-09-19 Christian Biesinger <cbiesinger@google.com>
4256
4257 * arm-linux-nat.c: Remove extern declaration for arm_apcs_32.
4258 * arm-linux-tdep.c: Likewise.
4259 * arm-nbsd-nat.c: Likewise.
4260 * arm-tdep.h: Declare arm_apcs_32.
4261 * arm-tdep.c: Move documentation for arm_apcs_32 to arm-tdep.h.
4262
e86f08d2
CB
42632019-09-19 Christian Biesinger <cbiesinger@google.com>
4264
4265 * dwarf2loc.c: Remove extern declaration of dwarf_always_disassemble.
4266 * dwarf2read.h: Declare dwarf_always_disassemble.
4267
f64e2f40
TV
42682019-09-19 Tom de Vries <tdevries@suse.de>
4269
4270 PR gdb/25009
4271 * source-cache.c (source_cache::ensure): Catch exception thrown during
4272 construction of the highlighter.
4273
fd361982
AM
42742019-09-18 Alan Modra <amodra@gmail.com>
4275
4276 * aarch64-linux-tdep.c, * arm-tdep.c, * auto-load.c,
4277 * coff-pe-read.c, * coffread.c, * corelow.c, * dbxread.c,
4278 * dicos-tdep.c, * dwarf2-frame.c, * dwarf2read.c, * elfread.c,
4279 * exec.c, * fbsd-tdep.c, * gcore.c, * gdb_bfd.c, * gdb_bfd.h,
4280 * hppa-tdep.c, * i386-cygwin-tdep.c, * i386-fbsd-tdep.c,
4281 * i386-linux-tdep.c, * jit.c, * linux-tdep.c, * machoread.c,
4282 * maint.c, * mdebugread.c, * minidebug.c, * mips-linux-tdep.c,
4283 * mips-sde-tdep.c, * mips-tdep.c, * mipsread.c, * nto-tdep.c,
4284 * objfiles.c, * objfiles.h, * osabi.c, * ppc-linux-tdep.c,
4285 * ppc64-tdep.c, * record-btrace.c, * record-full.c, * remote.c,
4286 * rs6000-aix-tdep.c, * rs6000-tdep.c, * s390-linux-tdep.c,
4287 * s390-tdep.c, * solib-aix.c, * solib-dsbt.c, * solib-frv.c,
4288 * solib-spu.c, * solib-svr4.c, * solib-target.c,
4289 * spu-linux-nat.c, * spu-tdep.c, * symfile-mem.c, * symfile.c,
4290 * symmisc.c, * symtab.c, * target.c, * windows-nat.c,
4291 * xcoffread.c, * cli/cli-dump.c, * compile/compile-object-load.c,
4292 * mi/mi-interp.c: Update throughout for bfd section macro and
4293 function changes.
4294 * gcore (gcore_create_callback): Use bfd_set_section_lma.
4295 * spu-tdep.c (spu_overlay_new_objfile): Likewise.
4296
11061048
TT
42972019-09-18 Tom Tromey <tom@tromey.com>
4298
4299 * NEWS: Add entry.
4300 * tui/tui.c (tui_initialize_readline): Set name of keymap. Do not
4301 call rl_initialize.
4302 (tui_enable): Do not call rl_initialize.
4303
7a27b85f
CG
43042019-09-18 Christian Groessler <chris@groessler.org>
4305
4306 * alpha-linux-nat.c: Include gdbarch.h.
4307
f64eea3a
SM
43082019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
4309
4310 * ui-file.c: Include cli/cli-style.h.
4311 (term_cli_styling): Remove cli_styling declaration.
4312
e6f7f6d1
AM
43132019-09-18 Alan Modra <amodra@gmail.com>
4314
4315 * arm-tdep.c (arm_record_special_symbol): Update bfd_get_section
4316 to bfd_asymbol_section.
4317
1d38e9d1
AM
43182019-09-18 Alan Modra <amodra@gmail.com>
4319
4320 * amd64-dicos-tdep.c (amd64_dicos_osabi_sniffer): Constify target.
4321 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
4322 * i386-dicos-tdep.c (i386_dicos_osabi_sniffer): Likewise.
4323
90d92a63
AM
43242019-09-18 Alan Modra <amodra@gmail.com>
4325
4326 * solib-spu.c (spu_bfd_open): Use bfd_set_filename.
4327 * spu-linux-nat.c (spu_bfd_open): Likewise.
4328
a3d181d2
CB
43292019-09-18 Christian Biesinger <cbiesinger@google.com>
4330
4331 * dwarf2loc.c: Change extern declaration of dwarf_always_disassemble
4332 to bool to match definition in dwarf2read.c.
4333
491144b5
CB
43342019-09-17 Christian Biesinger <cbiesinger@google.com>
4335
4336 * ada-lang.c (ada_ignore_descriptive_types_p): Change to bool.
4337 (print_signatures): Likewise.
4338 (trust_pad_over_xvs): Likewise.
4339 * arch/aarch64-insn.c (aarch64_debug): Likewise.
4340 * arch/aarch64-insn.h (aarch64_debug): Likewise.
4341 * arm-linux-nat.c (arm_apcs_32): Likewise.
4342 * arm-linux-tdep.c (arm_apcs_32): Likewise.
4343 * arm-nbsd-nat.c (arm_apcs_32): Likewise.
4344 * arm-tdep.c (arm_debug): Likewise.
4345 (arm_apcs_32): Likewise.
4346 * auto-load.c (debug_auto_load): Likewise.
4347 (auto_load_gdb_scripts): Likewise.
4348 (global_auto_load): Likewise.
4349 (auto_load_local_gdbinit): Likewise.
4350 (auto_load_local_gdbinit_loaded): Likewise.
4351 * auto-load.h (global_auto_load): Likewise.
4352 (auto_load_local_gdbinit): Likewise.
4353 (auto_load_local_gdbinit_loaded): Likewise.
4354 * breakpoint.c (disconnected_dprintf): Likewise.
4355 (breakpoint_proceeded): Likewise.
4356 (automatic_hardware_breakpoints): Likewise.
4357 (always_inserted_mode): Likewise.
4358 (target_exact_watchpoints): Likewise.
4359 (_initialize_breakpoint): Update.
4360 * breakpoint.h (target_exact_watchpoints): Change to bool.
4361 * btrace.c (maint_btrace_pt_skip_pad): Likewise.
4362 * cli/cli-cmds.c (trace_commands): Likewise.
4363 * cli/cli-cmds.h (trace_commands): Likewise.
4364 * cli/cli-decode.c (add_setshow_boolean_cmd): Change int* argument
4365 to bool*.
4366 * cli/cli-logging.c (logging_overwrite): Change to bool.
4367 (logging_redirect): Likewise.
4368 (debug_redirect): Likewise.
4369 * cli/cli-option.h (option_def) <boolean>: Change return type to bool*.
4370 (struct boolean_option_def) <get_var_address_cb_>: Change return type
4371 to bool.
4372 <boolean_option_def>: Update.
4373 (struct flag_option_def): Change default type of Context to bool
4374 from int.
4375 <flag_option_def>: Change return type of var_address_cb_ to bool*.
4376 * cli/cli-setshow.c (do_set_command): Cast to bool* instead of int*.
4377 (get_setshow_command_value_string): Likewise.
4378 * cli/cli-style.c (cli_styling): Change to bool.
4379 (source_styling): Likewise.
4380 * cli/cli-style.h (source_styling): Likewise.
4381 (cli_styling): Likewise.
4382 * cli/cli-utils.h (struct qcs_flags) <quiet, cont, silent>: Change
4383 to bool.
4384 * command.h (var_types): Update comment.
4385 (add_setshow_boolean_cmd): Change int* var argument to bool*.
4386 * compile/compile-cplus-types.c (debug_compile_cplus_types): Change to
4387 bool.
4388 (debug_compile_cplus_scopes): Likewise.
4389 * compile/compile-internal.h (compile_debug): Likewise.
4390 * compile/compile.c (compile_debug): Likewise.
4391 (struct compile_options) <raw>: Likewise.
4392 * cp-support.c (catch_demangler_crashes): Likewise.
4393 * cris-tdep.c (usr_cmd_cris_version_valid): Likewise.
4394 (usr_cmd_cris_dwarf2_cfi): Likewise.
4395 * csky-tdep.c (csky_debug): Likewise.
4396 * darwin-nat.c (enable_mach_exceptions): Likewise.
4397 * dcache.c (dcache_enabled_p): Likewise.
4398 * defs.h (info_verbose): Likewise.
4399 * demangle.c (demangle): Likewise.
4400 (asm_demangle): Likewise.
4401 * dwarf-index-cache.c (debug_index_cache): Likewise.
4402 * dwarf2-frame.c (dwarf2_frame_unwinders_enabled_p): Likewise.
4403 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Likewise.
4404 * dwarf2read.c (check_physname): Likewise.
4405 (use_deprecated_index_sections): Likewise.
4406 (dwarf_always_disassemble): Likewise.
4407 * eval.c (overload_resolution): Likewise.
4408 * event-top.c (set_editing_cmd_var): Likewise.
4409 (exec_done_display_p): Likewise.
4410 * event-top.h (set_editing_cmd_var): Likewise.
4411 (exec_done_display_p): Likewise.
4412 * exec.c (write_files): Likewise.
4413 * fbsd-nat.c (debug_fbsd_lwp): Likewise
4414 (debug_fbsd_nat): Likewise.
4415 * frame.h (struct frame_print_options) <print_raw_frame_arguments>:
4416 Likewise.
4417 (struct set_backtrace_options) <backtrace_past_main>: Likewise.
4418 <backtrace_past_entry> Likewise.
4419 * gdb-demangle.h (demangle): Likewise.
4420 (asm_demangle): Likewise.
4421 * gdb_bfd.c (bfd_sharing): Likewise.
4422 * gdbcore.h (write_files): Likewise.
4423 * gdbsupport/common-debug.c (show_debug_regs): Likewise.
4424 * gdbsupport/common-debug.h (show_debug_regs): Likewise.
4425 * gdbthread.h (print_thread_events): Likewise.
4426 * gdbtypes.c (opaque_type_resolution): Likewise.
4427 (strict_type_checking): Likewise.
4428 * gnu-nat.c (gnu_debug_flag): Likewise.
4429 * guile/scm-auto-load.c (auto_load_guile_scripts): Likewise.
4430 * guile/scm-param.c (pascm_variable): Add boolval.
4431 (add_setshow_generic): Update.
4432 (pascm_param_value): Update.
4433 (pascm_set_param_value_x): Update.
4434 * hppa-tdep.c (hppa_debug): Change to bool..
4435 * infcall.c (may_call_functions_p): Likewise.
4436 (coerce_float_to_double_p): Likewise.
4437 (unwind_on_signal_p): Likewise.
4438 (unwind_on_terminating_exception_p): Likewise.
4439 * infcmd.c (startup_with_shell): Likewise.
4440 * inferior.c (print_inferior_events): Likewise.
4441 * inferior.h (startup_with_shell): Likewise.
4442 (print_inferior_events): Likewise.
4443 * infrun.c (step_stop_if_no_debug): Likewise.
4444 (detach_fork): Likewise.
4445 (debug_displaced): Likewise.
4446 (disable_randomization): Likewise.
4447 (non_stop): Likewise.
4448 (non_stop_1): Likewise.
4449 (observer_mode): Likewise.
4450 (observer_mode_1): Likewise.
4451 (set_observer_mode): Update.
4452 (sched_multi): Change to bool.
4453 * infrun.h (debug_displaced): Likewise.
4454 (sched_multi): Likewise.
4455 (step_stop_if_no_debug): Likewise.
4456 (non_stop): Likewise.
4457 (disable_randomization): Likewise.
4458 * linux-tdep.c (use_coredump_filter): Likewise.
4459 (dump_excluded_mappings): Likewise.
4460 * linux-thread-db.c (auto_load_thread_db): Likewise.
4461 (check_thread_db_on_load): Likewise.
4462 * main.c (captured_main_1): Update.
4463 * maint-test-options.c (struct test_options_opts) <flag_opt, xx1_opt,
4464 xx2_opt, boolean_opt>: Change to bool.
4465 * maint-test-settings.c (maintenance_test_settings_boolean): Likewise.
4466 * maint.c (maintenance_profile_p): Likewise.
4467 (per_command_time): Likewise.
4468 (per_command_space): Likewise.
4469 (per_command_symtab): Likewise.
4470 * memattr.c (inaccessible_by_default): Likewise.
4471 * mi/mi-main.c (mi_async): Likewise.
4472 (mi_async_1): Likewise.
4473 * mips-tdep.c (mips64_transfers_32bit_regs_p): Likewise.
4474 * nat/fork-inferior.h (startup_with_shell): Likewise.
4475 * nat/linux-namespaces.c (debug_linux_namespaces): Likewise.
4476 * nat/linux-namespaces.h (debug_linux_namespaces): Likewise.
4477 * nios2-tdep.c (nios2_debug): Likewise.
4478 * or1k-tdep.c (or1k_debug): Likewise.
4479 * parse.c (parser_debug): Likewise.
4480 * parser-defs.h (parser_debug): Likewise.
4481 * printcmd.c (print_symbol_filename): Likewise.
4482 * proc-api.c (procfs_trace): Likewise.
4483 * python/py-auto-load.c (auto_load_python_scripts): Likewise.
4484 * python/py-param.c (union parmpy_variable): Add "bool boolval" field.
4485 (set_parameter_value): Update.
4486 (add_setshow_generic): Update.
4487 * python/py-value.c (copy_py_bool_obj): Change argument from int*
4488 to bool*.
4489 * python/python.c (gdbpy_parameter_value): Cast to bool* instead of
4490 int*.
4491 * ravenscar-thread.c (ravenscar_task_support): Change to bool.
4492 * record-btrace.c (record_btrace_target::store_registers): Update.
4493 * record-full.c (record_full_memory_query): Change to bool.
4494 (record_full_stop_at_limit): Likewise.
4495 * record-full.h (record_full_memory_query): Likewise.
4496 * remote-notif.c (notif_debug): Likewise.
4497 * remote-notif.h (notif_debug): Likewise.
4498 * remote.c (use_range_stepping): Likewise.
4499 (interrupt_on_connect): Likewise.
4500 (remote_break): Likewise.
4501 * ser-tcp.c (tcp_auto_retry): Likewise.
4502 * ser-unix.c (serial_hwflow): Likewise.
4503 * skip.c (debug_skip): Likewise.
4504 * solib-aix.c (solib_aix_debug): Likewise.
4505 * spu-tdep.c (spu_stop_on_load_p): Likewise.
4506 (spu_auto_flush_cache_p): Likewise.
4507 * stack.c (struct backtrace_cmd_options) <full, no_filters, hide>:
4508 Likewise.
4509 (struct info_print_options) <quiet>: Likewise.
4510 * symfile-debug.c (debug_symfile): Likewise.
4511 * symfile.c (auto_solib_add): Likewise.
4512 (separate_debug_file_debug): Likewise.
4513 * symfile.h (auto_solib_add): Likewise.
4514 (separate_debug_file_debug): Likewise.
4515 * symtab.c (basenames_may_differ): Likewise.
4516 (struct filename_partial_match_opts) <dirname, basename>: Likewise.
4517 (struct info_print_options) <quiet, exclude_minsyms>: Likewise.
4518 (struct info_types_options) <quiet>: Likewise.
4519 * symtab.h (demangle): Likewise.
4520 (basenames_may_differ): Likewise.
4521 * target-dcache.c (stack_cache_enabled_1): Likewise.
4522 (code_cache_enabled_1): Likewise.
4523 * target.c (trust_readonly): Likewise.
4524 (may_write_registers): Likewise.
4525 (may_write_memory): Likewise.
4526 (may_insert_breakpoints): Likewise.
4527 (may_insert_tracepoints): Likewise.
4528 (may_insert_fast_tracepoints): Likewise.
4529 (may_stop): Likewise.
4530 (auto_connect_native_target): Likewise.
4531 (target_stop_and_wait): Update.
4532 (target_async_permitted): Change to bool.
4533 (target_async_permitted_1): Likewise.
4534 (may_write_registers_1): Likewise.
4535 (may_write_memory_1): Likewise.
4536 (may_insert_breakpoints_1): Likewise.
4537 (may_insert_tracepoints_1): Likewise.
4538 (may_insert_fast_tracepoints_1): Likewise.
4539 (may_stop_1): Likewise.
4540 * target.h (target_async_permitted): Likewise.
4541 (may_write_registers): Likewise.
4542 (may_write_memory): Likewise.
4543 (may_insert_breakpoints): Likewise.
4544 (may_insert_tracepoints): Likewise.
4545 (may_insert_fast_tracepoints): Likewise.
4546 (may_stop): Likewise.
4547 * thread.c (struct info_threads_opts) <show_global_ids>: Likewise.
4548 (make_thread_apply_all_options_def_group): Change argument from int*
4549 to bool*.
4550 (thread_apply_all_command): Update.
4551 (print_thread_events): Change to bool.
4552 * top.c (confirm): Likewise.
4553 (command_editing_p): Likewise.
4554 (history_expansion_p): Likewise.
4555 (write_history_p): Likewise.
4556 (info_verbose): Likewise.
4557 * top.h (confirm): Likewise.
4558 (history_expansion_p): Likewise.
4559 * tracepoint.c (disconnected_tracing): Likewise.
4560 (circular_trace_buffer): Likewise.
4561 * typeprint.c (print_methods): Likewise.
4562 (print_typedefs): Likewise.
4563 * utils.c (debug_timestamp): Likewise.
4564 (sevenbit_strings): Likewise.
4565 (pagination_enabled): Likewise.
4566 * utils.h (sevenbit_strings): Likewise.
4567 (pagination_enabled): Likewise.
4568 * valops.c (overload_resolution): Likewise.
4569 * valprint.h (struct value_print_options) <prettyformat_arrays,
4570 prettyformat_structs, vtblprint, unionprint, addressprint, objectprint,
4571 stop_print_at_null, print_array_indexes, deref_ref, static_field_print,
4572 pascal_static_field_print, raw, summary, symbol_print, finish_print>:
4573 Likewise.
4574 * windows-nat.c (new_console): Likewise.
4575 (cygwin_exceptions): Likewise.
4576 (new_group): Likewise.
4577 (debug_exec): Likewise.
4578 (debug_events): Likewise.
4579 (debug_memory): Likewise.
4580 (debug_exceptions): Likewise.
4581 (useshell): Likewise.
4582 * windows-tdep.c (maint_display_all_tib): Likewise.
4583 * xml-support.c (debug_xml): Likewise.
4584
f1b620e9
MG
45852019-09-17 Mike Gulick <mgulick@mathworks.com>
4586
4587 * source.c (prepare_path_for_appending): New function.
4588 (openp): Make use of new function.
4589 (find_and_open_source): Search for the compilation directory and
4590 source file as a relative path beneath the directory search path.
4591
67f3ed6a
AB
45922019-09-17 Andrew Burgess <andrew.burgess@embecosm.com>
4593
4594 * source-cache.c (source_cache::get_line_charpos): Catch
4595 exceptions and return false, this matches the behaviour documented
4596 in the header file.
4597
74332189
JB
45982019-09-17 Joel Brobecker <brobecker@adacore.com>
4599
4600 * ada-tasks.c (info_task): Remove quoting of the task's name.
4601
f2f24aa9
CB
46022019-09-16 Christian Biesinger <cbiesinger@google.com>
4603
4604 * symfile.c (auto_solib_add): Replace comment with a reference
4605 to the header file.
4606
6a062a93
CB
46072019-09-14 Christian Biesinger <cbiesinger@google.com>
4608
4609 * NEWS: Mention that gdb can now be compiled with Python 3
4610 on Windows.
4611
ec6c8338
AB
46122019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
4613
4614 * maint.c (maint_print_section_data::maint_print_section_data):
4615 Force use of 'float log10 (float)' by casting the argument to
4616 float.
4617
aa17805f
AB
46182019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
4619
4620 * maint.c: Add 'cmath' include.
4621 (struct maint_print_section_data): New structure.
4622 (print_section_index): New function.
4623 (print_bfd_section_info): Add header comment, small whitespace
4624 cleanup, and update to call new print_section_index function.
4625 (print_objfile_section_info): Likewise.
4626 (maint_obj_section_from_bfd_section): New function.
4627 (print_bfd_section_info_maybe_relocated): New function.
4628 (maintenance_info_sections): Add header comment, always use
4629 bfd_map_over_sections instead of ALL_OBJFILE_OSECTIONS.
4630
3dd9bb46
AB
46312019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
4632
4633 * psymtab.c (find_pc_sect_psymtab): Move baseaddr local into more
4634 inner scope, add check that the objfile has psymtabs before
4635 checking psymtabs_addrmap.
4636 * psymtab.h (psymtab_storage) <psymtabs_addrmap>: Extend comment.
4637
4993045d
PW
46382019-09-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4639
4640 * NEWS: Announce that Ada task names are now shown at more places,
4641 and between quotes (except in info task output).
4642 * gdb/ada-tasks.c (task_to_str): New function.
4643 (display_current_task_id): Call task_to_str.
4644 (task_command_1): Likewise.
4645 (print_ada_task_info): In non-mi mode, Properly align headers and data
4646 when task-id length is > 9 (9 is the default for a 32 bits CORE_ADDR).
4647
7a289707
RO
46482019-09-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4649
4650 * procfs.c (procfs_target::wait) <PR_FAULTED>: Get signal from
4651 prstatus.pr_lwp.pr_info instead of making it up.
4652
f2aec7f6
CB
46532019-09-11 Christian Biesinger <cbiesinger@google.com>
4654
4655 * auto-load.c (auto_load_expand_dir_vars): Update.
4656 * defs.h (gdb_datadir): Change to std::string.
4657 (python_libdir): Likewise.
4658 (relocate_gdb_directory): Change return type to std::string.
4659 * guile/guile.c (gdbscm_data_directory): Update.
4660 (initialize_scheme_side): Update.
4661 * jit.c (jit_reader_dir): Change to std::string.
4662 (jit_reader_load_command): Update.
4663 * main.c (gdb_datadir): Change to std::string.
4664 (python_libdir): Likewise.
4665 (set_gdb_data_directory): Update.
4666 (relocate_path): Change to return std::string.
4667 (relocate_gdb_directory): Change to return std::string.
4668 (relocate_gdbinit_path_maybe_in_datadir): Update.
4669 (captured_main_1): Update.
4670 * python/python.c (do_start_initialization): Update.
4671 * top.c (show_gdb_datadir): Update.
4672 * xml-syscall.c (xml_init_syscalls_info): Update.
4673 (init_syscalls_info): Update.
4674
9224a013
CB
46752019-09-11 Christian Biesinger <cbiesinger@google.com>
4676
4677 * main.c (relocate_gdbinit_path_maybe_in_datadir): Factor this code
4678 out of get_init_files.
4679 (get_init_files): Update.
4680
f48cd836
CB
46812019-09-11 Christian Biesinger <cbiesinger@google.com>
4682
4683 * main.c (get_init_files): Change to use std::string.
4684 (captured_main_1): Update.
4685 (print_gdb_help): Update.
4686
9cab7ecd
AT
46872019-09-11 Ali Tamur <tamur@google.com>
4688
4689 *gdb/target-float.c (host_float_ops<T>::to_longest): Update
4690 implementation.
4691
67547d89
CB
46922019-09-11 Christian Biesinger <cbiesinger@google.com>
4693
4694 * dbxread.c (read_dbx_symtab): Update.
4695 * dwarf2read.c (load_partial_dies): Update.
4696 * mdebugread.c (parse_partial_symbols): Update.
4697 (handle_psymbol_enumerators): Update.
4698 * psympriv.h (add_psymbol_to_list): Change type of copy_names to bool.
4699 * psymtab.c (add_psymbol_to_bcache): Likewise.
4700 (add_psymbol_to_list): Likewise.
4701 * symtab.c (symbol_set_names): Likewise.
4702 * symtab.h (symbol_set_names): Likewise.
4703 * xcoffread.c (scan_xcoff_symtab): Update.
4704
64b2d4a0
TT
47052019-09-11 Tom Tromey <tom@tromey.com>
4706
4707 * symfile-mem.c (symbol_file_add_from_memory): Use
4708 bfd_set_filename.
4709 * solib-darwin.c (darwin_bfd_open): Use bfd_set_filename.
4710 * solib-aix.c (solib_aix_bfd_open): Use bfd_set_filename.
4711
3b00ef10
TT
47122019-09-10 Tom Tromey <tromey@adacore.com>
4713
4714 * dwarf-index-write.c (write_psymbols): Extend error message.
4715 (debug_names::insert): Add Ada code.
4716 (debug_names::write_psymbols): Remove Ada check.
4717 (debug_names) <m_string_obstack>: New member.
4718 * dwarf2read.c (gdb_index_symbol_name_matcher): Remove.
4719 (gdb_index_symbol_name_matcher::matches): Remove.
4720 (mapped_index_base::find_name_components_bounds): Add "lang"
4721 parameter.
4722 (mapped_index_base::build_name_components): Also split names
4723 according to Ada syntax.
4724 (dw2_expand_symtabs_matching_symbol): Loop over languages. Change
4725 type of "match_callback".
4726 (check_match, check_find_bounds_finds)
4727 (dw2_expand_symtabs_matching): Update.
4728 (dw2_debug_names_iterator): Add new constructor.
4729 (dw2_debug_names_map_matching_symbols): New function.
4730 (dw2_debug_names_expand_symtabs_matching): Update.
4731 (dwarf2_debug_names_functions): Use
4732 dw2_debug_names_map_matching_symbols.
4733
aa391654
TT
47342019-09-10 Tom Tromey <tromey@adacore.com>
4735
4736 * dwarf2read.c (dw2_get_file_names_reader): Add the
4737 CU's file name to the results.
4738
b054970d
TT
47392019-09-10 Tom Tromey <tromey@adacore.com>
4740
4741 * ada-lang.c (add_nonlocal_symbols): Combine calls to
4742 map_matching_symbols. Update.
4743 * dwarf2read.c (dw2_map_matching_symbols): Update.
4744 * psymtab.c (match_partial_symbol): Change type; update.
4745 (psym_map_matching_symbols): Likewise.
4746 * symfile-debug.c (debug_qf_map_matching_symbols): Change
4747 type; update.
4748 * symfile.h (struct quick_symbol_functions)
4749 <map_matching_symbols>: Change "name" to be a lookup_name_info.
4750 Remove "match".
4751
6a3dbf1b
TT
47522019-09-10 Tom Tromey <tromey@adacore.com>
4753
4754 * psymtab.c (map_block): Remove.
4755 (psym_map_matching_symbols): Use iterate_over_symbols_terminated.
4756 * symtab.c (iterate_over_symbols_terminated): New function.
4757 * symtab.c (iterate_over_symbols_terminated): Declare.
4758
6969f124
TT
47592019-09-10 Tom Tromey <tromey@adacore.com>
4760
4761 * ada-lang.c (ada_iterate_over_symbols): Return bool.
4762 * language.h (struct language_defn) <la_iterate_over_symbols>:
4763 Return bool.
4764 * symtab.c (iterate_over_symbols): Return bool.
4765 * symtab.h (iterate_over_symbols): Return bool.
4766
199b4314
TT
47672019-09-10 Tom Tromey <tromey@adacore.com>
4768
4769 * ada-lang.c (aux_add_nonlocal_symbols): Change type.
4770 (add_nonlocal_symbols): Update.
4771 * dwarf2read.c (dw2_map_matching_symbols): Change type.
4772 * psymtab.c (map_block, psym_map_matching_symbols): Change type.
4773 * symfile-debug.c (debug_qf_map_matching_symbols): Change type.
4774 * symfile.h (struct quick_symbol_functions) <map_matching_symbols>:
4775 Change type of "callback". Remove "data".
4776
a084a2a6
AT
4777
47782019-09-09 Ali Tamur <tamur@google.com>
4779
4780 * dwarf2read.c (comp_unit_head): Update comment.
4781 (dwarf2_dwo_name): New function declaration.
4782 (dwarf_unit_type_name): New function declaration.
4783 (read_comp_unit_head): Add support for new compilation units,
4784 DW_UT_partial, DW_UT_skeleton, DW_UT_split_compile, DW_UT_split_type.
4785 Particularly, DW_UT_skeleton and DW_UT_split_compile have dwo_id
4786 (currently named as "signature") in their header. Also clarify error
4787 messages.
4788 (lookup_dwo_id): New function. Returns the dwo id of the given
4789 compile unit.
4790 (lookup_dwo_unit): Use the new lookup_dwo_id function.
4791 (init_cutu_and_read_dies): Use the new dwarf2_dwo_name and lookup_dwo_id
4792 functions.
4793 (create_dwo_cu_reader): Use the added lookup_dwo_id function.
4794 (dwarf2_dwo_name): Get the dwo name if present.
4795 (dwarf_unit_type_name): Convert DW_UT_* types to string for diagnostic
4796 purposes.
4797
25a2915e
TT
47982019-09-09 Tom Tromey <tom@tromey.com>
4799
4800 * tui/tui-win.c (tui_all_windows_info): Use ui_out.
4801
e4df0874
PW
48022019-09-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4803
4804 * python/python.c (do_start_initialization): Make progname_copy static,
4805 to avoid a leak report.
4806
8634b462
TT
48072019-09-08 Tom Tromey <tom@tromey.com>
4808
4809 * tui/tui-wingeneral.c (box_win): Truncate long window titles.
4810
c7f839cb
SM
48112019-09-07 Simon Marchi <simon.marchi@efficios.com>
4812
4813 * dwarf2read.c (struct dw2_symtab_iterator) <block_index>:
4814 Change type to gdb::optional<block_enum>.
4815 (dw2_symtab_iter_init): Change block_index parameter type
4816 to gdb::optional<block_enum>.
4817 (dw2_lookup_symbol): Change block_index parameter
4818 type to block_enum.c
4819 (dw2_debug_names_lookup_symbol): Likewise.
4820 * psymtab.c (psym_lookup_symbol): Likewise.
4821 * symfile-debug.c (debug_qf_lookup_symbol): Likewise.
4822 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
4823 Likewise.
4824
ead0e69a
CB
48252019-09-06 Christian Biesinger <cbiesinger@google.com>
4826
4827 * defs.h (relocate_gdb_directory): Change int to bool in
4828 signature and rename flag to relocatable.
4829 * main.c (relocate_path): Likewise.
4830 (relocate_gdb_directory): Likewise.
4831
b16c44de
AM
48322019-09-06 Alan Modra <amodra@gmail.com>
4833
4834 * coffread.c (coff_symfile_read): Constify filename variable.
4835 * dbxread.c (dbx_symfile_init, coffstab_build_psymtabs),
4836 (elfstab_build_psymtabs, stabsect_build_psymtabs): Likewise.
4837 * gdb_bfd.c (gdb_bfd_close_or_warn): Likewise.
4838 * solib.c (reload_shared_libraries_1): Likewise.
4839 * symfile.c (reread_symbols): Likewise.
4840 * solib-aix.c (solib_aix_bfd_open): Add cast for xfree of filename.
4841 * solib-darwin.c (darwin_bfd_open): Likewise.
4842 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
4843
06ff036e
AB
48442019-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
4845
4846 * psymtab.c (print_partial_symbols): Handle missing domain_enum
4847 values MODULE_DOMAIN and COMMON_BLOCK_DOMAIN.
4848
4e962e74
TT
48492019-09-03 Tom Tromey <tromey@adacore.com>
4850
4851 * ada-valprint.c (ada_val_print_num): Don't recurse for range
4852 types.
4853 (has_negatives): Unbias a range type bound.
4854 * dwarf2read.c (read_subrange_type): Handle DW_AT_GNU_bias.
4855 * gdbtypes.c (operator==): Handle new field.
4856 (create_range_type): Add "bias" parameter.
4857 (create_static_range_type, resolve_dynamic_range): Update.
4858 * gdbtypes.h (struct range_bounds) <bias>: New member.
4859 (create_range_type): Add bias parameter.
4860 * printcmd.c (print_scalar_formatted): Unbias range types.
4861 * value.c (unpack_long): Unbias range types.
4862 (pack_long): Bias range types.
4863
d90b8f26
AH
48642019-09-02 Alan Hayward <alan.hayward@arm.com>
4865
4866 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Check all
4867 probe arguments.
4868
fe01123e
AH
48692019-09-02 Alan Hayward <alan.hayward@arm.com>
4870
4871 * break-catch-throw.c (fetch_probe_arguments): Use gdbarch.
4872 * dtrace-probe.c (dtrace_probe::get_argument_count): Likewise.
4873 * probe.c (probe_safe_evaluate_at_pc) (compute_probe_arg)
4874 (compile_probe_arg): Likewise.
4875 * probe.h (get_argument_count): Likewise.
4876 * solib-svr4.c (solib_event_probe_action): Likewise.
4877 * stap-probe.c (stap_probe::get_argument_count): Likewise.
4878
e661ef01
AH
48792019-09-02 Alan Hayward <alan.hayward@arm.com>
4880
4881 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Move
4882 code to here...
4883 (svr4_create_solib_event_breakpoints): ...from here.
4884
47a536d9
SDJ
48852019-08-30 Sergio Durigan Junior <sergiodj@redhat.com>
4886
4887 * nat/fork-inferior.c (trace_start_error): Remove "\nError: "
4888 suffix from warning message.
4889
d6a00eba
TT
48902019-08-30 Tom Tromey <tom@tromey.com>
4891
4892 * tui/tui-winsource.h (struct tui_source_window_base)
4893 <refresh_all>: Don't declare.
4894 * tui/tui-winsource.c (tui_source_window_base::refresh_all):
4895 Remove.
4896 * tui/tui-win.c (tui_refresh_all_win): Don't call refresh_all or
4897 tui_show_locator_content.
4898 * tui/tui-regs.h (struct tui_data_window) <refresh_all>: Don't
4899 declare.
4900 * tui/tui-regs.c (tui_data_window::refresh_all): Remove.
4901 * tui/tui-data.h (struct tui_win_info) <refresh_all>: Don't
4902 declare.
4903
55b2657b
TT
49042019-08-30 Tom Tromey <tom@tromey.com>
4905
4906 * tui/tui-io.c (tui_cont_sig): Don't call wrefresh.
4907
12a8555a
TT
49082019-08-30 Tom Tromey <tom@tromey.com>
4909
4910 * tui/tui-stack.c (_initialize_tui_stack): Move later.
4911 Remove unnecessary forward declarations.
4912
900ac242
TT
49132019-08-30 Tom Tromey <tom@tromey.com>
4914
4915 * tui/tui-stack.c (tui_locator_window::set_locator_fullname): Call
4916 rerender.
4917 (tui_update_locator_fullname, tui_show_frame_info): Don't call
4918 tui_show_locator_content.
4919
99ab33fb
TT
49202019-08-30 Tom Tromey <tom@tromey.com>
4921
4922 * tui/tui-stack.c (tui_show_locator_content): Move lower. Rewrite.
4923 (tui_locator_window::rerender): Rewrite using body of previous
4924 tui_show_locator_content.
4925
e594a5d1
TT
49262019-08-30 Tom Tromey <tom@tromey.com>
4927
4928 * tui/tui-stack.h (struct tui_locator_window) <set_locator_info,
4929 set_locator_fullname>: New methods.
4930 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
4931 Rename from tui_set_locator_fullname.
4932 (tui_locator_window::set_locator_info): Rename from
4933 tui_set_locator_info. Return bool.
4934 (tui_update_locator_fullname, tui_show_frame_info): Update.
4935
715bb467
TT
49362019-08-30 Tom Tromey <tom@tromey.com>
4937
4938 * tui/tui-layout.c (show_layout): Don't call tui_refresh_all.
4939
772f3f03
TT
49402019-08-30 Tom Tromey <tom@tromey.com>
4941
4942 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Don't
4943 call touchwin.
4944
108e13ab
TT
49452019-08-30 Tom Tromey <tom@tromey.com>
4946
4947 * tui/tui-wingeneral.c (box_win): Assume win_info and
4948 win_info->handle cannot be NULL.
4949
cdaa6eb4
TT
49502019-08-30 Tom Tromey <tom@tromey.com>
4951
4952 * tui/tui-regs.h (struct tui_data_item_window) <rerender,
4953 refresh_window>: Declare.
4954 * tui/tui-regs.c (tui_data_window::display_registers_from): Call
4955 resize.
4956 (tui_data_item_window::rerender): Rename from
4957 tui_display_register.
4958 (tui_data_item_window::refresh_window): New method.
4959 * tui/tui-layout.c (tui_gen_win_info::resize): Do nothing on
4960 no-op.
4961
89df7f90
TT
49622019-08-30 Tom Tromey <tom@tromey.com>
4963
4964 * tui/tui-regs.h (struct tui_data_window) <regs_content,
4965 regs_column_count, current_group>: Move later. Now private.
4966 <get_current_group>: New method.
4967 * tui/tui-regs.c (tui_reg_command): Update.
4968 * tui/tui-layout.c (tui_set_layout): Update.
4969
1bf2866a
TT
49702019-08-30 Tom Tromey <tom@tromey.com>
4971
4972 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
4973 (tui_data_window::rerender): Don't call
4974 check_and_display_highlight_if_needed.
4975 (tui_data_window::refresh_all): Remove call to
4976 erase_data_content.
4977
0670413d
TT
49782019-08-30 Tom Tromey <tom@tromey.com>
4979
4980 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
4981 (tui_data_window::display_registers_from)
4982 (tui_data_window::display_reg_element_at_line)
4983 (tui_data_window::display_registers_from_line): Remove checks of
4984 "empty".
4985
18bb55c7
TT
49862019-08-30 Tom Tromey <tom@tromey.com>
4987
4988 * tui/tui-regs.h (struct tui_data_window) <display_all_data>:
4989 Don't declare.
4990 * tui/tui-regs.c (tui_data_window::show_registers): Call
4991 rerender.
4992 (tui_data_window::rerender): Rename from display_all_data.
4993 (tui_data_window::rerender): Remove old implementation.
4994
1f6d2f10
TT
49952019-08-30 Tom Tromey <tom@tromey.com>
4996
4997 * tui/tui-regs.c (tui_data_window::display_all_data): Change
4998 text.
4999 * tui/tui-data.h (NO_DATA_STRING): Remove define.
5000
16d01f9c
BW
50012019-08-29 Bernhard Wodok <barto@gmx.net>
5002 Sergio Durigan Junior <sergiodj@redhat.com>
5003
5004 PR win32/24284
5005 * mingw-hdep.c (gdb_select): Handle case when 'n' is zero.
5006
d8f27c60
AB
50072019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
5008
5009 * symtab.c (search_symbols): Don't include MODULE_DOMAIN symbols
5010 when searching for types.
5011
1f20c35e
AB
50122019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
5013
5014 * f-lang.c (f_language_defn): Use f_print_typedef.
5015 * f-lang.h (f_print_typedef): Declare.
5016 * f-typeprint.c (f_print_typedef): Define.
5017
550105b7
CB
50182019-08-27 Christian Biesinger <cbiesinger@google.com>
5019
5020 * nat/linux-namespaces.c (mnsh_main): Initialize fd (to -1).
5021
4acfdd20
AB
50222019-08-27 Andrew Burgess <andrew.burgess@embecosm.com>
5023
5024 * cli/cli-utils.c (info_print_options_defs): Delete.
5025 (make_info_print_options_def_group): Delete.
5026 (extract_info_print_options): Delete.
5027 (info_print_command_completer): Delete.
5028 (info_print_args_help): Add extra parameter, and optionally
5029 include text about -n flag.
5030 * cli/cli-utils.h (struct info_print_options): Delete.
5031 (extract_info_print_options): Delete declaration.
5032 (info_print_command_completer): Delete declaration.
5033 (info_print_args_help): Add extra parameter, extend header
5034 comment.
5035 * python/python.c (gdbpy_rbreak): Pass additional parameter to
5036 search_symbols.
5037 * stack.c (struct info_print_options): New type.
5038 (info_print_options_defs): New file scoped variable.
5039 (make_info_print_options_def_group): New static function.
5040 (info_print_command_completer): New static function.
5041 (info_locals_command): Update to use new local functions.
5042 (info_args_command): Likewise.
5043 (_initialize_stack): Add extra parameter to calls to
5044 info_print_args_help.
5045 * symtab.c (search_symbols): Add extra parameter, use this to
5046 possibly excluse non-debug symbols.
5047 (symtab_symbol_info): Add extra parameter, which is passed on to
5048 search_symbols.
5049 (struct info_print_options): New type.
5050 (info_print_options_defs): New file scoped variable.
5051 (make_info_print_options_def_group): New static function.
5052 (info_print_command_completer): New static function.
5053 (info_variables_command): Update to use local functions, and pass
5054 extra parameter through to symtab_symbol_info.
5055 (info_functions_command): Likewise.
5056 (info_types_command): Pass additional argument through to
5057 symtab_symbol_info.
5058 (rbreak_command): Pass extra argument to search_symbols.
5059 (_initialize_symtab): Add extra arguments for calls to
5060 info_print_args_help, and update help text for 'info variables',
5061 'whereis', and 'info functions' commands.
5062 * symtab.h (search_symbols): Add extra argument to declaration.
5063 * NEWS: Mention new flags.
5064
9aa55206
CB
50652019-08-26 Christian Biesinger <cbiesinger@google.com>
5066
5067 * symtab.c (lookup_static_symbol): Call the new function (and move
5068 it down to be next to lookup_global_symbol).
5069 (struct global_sym_lookup_data): Add block_enum member and rename to...
5070 (struct global_or_static_sym_lookup_data): ...this.
5071 (lookup_symbol_global_iterator_cb): Pass block_index instead of
5072 GLOBAL_BLOCK to lookup_symbol_in_objfile and rename to...
5073 (lookup_symbol_global_or_static_iterator_cb): ...this.
5074 (lookup_global_or_static_symbol): New function.
5075 (lookup_global_symbol): Call new function.
5076
5c31b358
TV
50772019-08-26 Tom de Vries <tdevries@suse.de>
5078
5079 PR c++/24852
5080 * break-catch-throw.c (fetch_probe_arguments): Improve error mesage
5081 when pc_probe.prob == NULL.
5082
23c13d42
SM
50832019-08-25 Simon Marchi <simon.marchi@efficios.com>
5084
5085 * dwarf2read.c (dw2_debug_names_iterator::next): Rename local
5086 variable symbol_linkage to symbol_linkage_.
5087
beadd3e8
SM
50882019-08-25 Simon Marchi <simon.marchi@efficios.com>
5089
5090 * dwarf2read.c (dw2_debug_names_iterator::next): Use enum to
5091 represent whether the symbol is static, dynamic, or we don't
5092 know.
5093
e3ec872f
YS
50942019-08-25 Yoshinori Sato <ysato@users.sourceforge.jp>
5095
5096 * gdb/rx-tdep.c (rx_register_names): New.
5097 (rx_register_name): Delete.
5098 (rx_psw_type): Delete.
5099 (rx_fpsw_type): Delete.
5100 (rx_register_type): Delete.
5101 (rx_gdbarch_init): Convert target-descriptions.
5102 (_initialize_rx_tdep): Add initialize_tdesc_rx.
5103 * gdb/features/Makefile: Add rx.xml.
5104 * gdb/features/rx.xml: New.
5105 * gdb/features/rx.c: Generated.
5106 * gdb/NEWS: Mention target description support.
5107
d0509ba4
CB
51082019-08-22 Christian Biesinger <cbiesinger@google.com>
5109
5110 * symtab.c (symbol_cache_lookup): Always initialize *bsc_ptr and
5111 *slot_ptr.
5112
2d41fa11
SDJ
51132019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
5114
5115 * configure.ac: Don't check for 'dlfcn.h' (moved to
5116 gdbsupport/common.m4).
5117 * Makefile.in (COMMON_SFILES): Move 'gdb-dlfcn.c' to
5118 'gdbsupport/'.
5119 (HFILES_NO_SRCDIR): Likewise, for 'gdb-dlfcn.h'.
5120 * compile/compile-c-support.c: Include
5121 'gdbsupport/gdb-dlfcn.h'.
5122 * gdbsupport/common.m4: Check for 'dlfcn.h'.
5123 * gdb-dlfcn.c: Move to...
5124 * gdbsupport/gdb-dlfcn.c: ... here.
5125 * gdb-dlfcn.h: Move to...
5126 * gdbsupport/gdb-dlfcn.h: ... here.
5127
de8af808
SL
51282019-08-23 Sandra Loosemore <sandra@codesourcery.com>
5129
5130 * nios2-tdep.c (struct reg_value): Improve comments. Make
5131 the offset field signed.
5132
27204489
CB
51332019-08-22 Christian Biesinger <cbiesinger@google.com>
5134
5135 * python/lib/gdb/__init__.py (_execute_file): New function.
5136 * python/python.c (python_run_simple_file): Call gdb._execute_file
5137 on Windows.
5138
43771869
AB
51392019-08-22 Andrew Burgess <andrew.burgess@embecosm.com>
5140
5141 * f-exp.y (yylex): Remove is_a_field_of_this local variable, and
5142 all uses as this was never set to anything but a zero value.
5143
26c957f1
PA
51442019-08-21 Bogdan Harjoc <harjoc@gmail.com>
5145
5146 * cli/cli-cmds.c (with_command_1): Error out if no arguments.
5147
c07aae6e
CB
51482019-08-21 Christian Biesinger <cbiesinger@google.com>
5149
5150 * tui/tui-data.h (tui_gen_win_info): Add an =default
5151 move constructor, required by some GCC versions.
5152
3960cb7a
JF
51532019-08-21 Jinke Fan <fanjinke51@yeah.net>
5154
5155 * go32-nat.c (go32_sysinfo): Add hygon_p.
5156
04c72a68
TT
51572019-08-20 Tom Tromey <tom@tromey.com>
5158
5159 * tui/tui-regs.h (struct tui_data_window) <last_regs_line_no,
5160 line_from_reg_element_no, first_reg_element_no_inline,
5161 display_all_data, delete_data_content_windows,
5162 erase_data_content>: Now private.
5163
072272ce
TT
51642019-08-20 Tom Tromey <tom@tromey.com>
5165
5166 * tui/tui-wingeneral.c (box_win): Change type of highlight_flag.
5167 (tui_unhighlight_win, tui_highlight_win)
5168 (tui_win_info::make_window): Update.
5169 * tui/tui-data.h (HILITE, NO_HILITE): Remove.
5170
973961bd
TT
51712019-08-20 Tom Tromey <tom@tromey.com>
5172
5173 * tui/tui-data.h (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
5174 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
5175 (MAX_PID_WIDTH): Move to tui-stack.c.
5176 * tui/tui-stack.c (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
5177 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
5178 (MAX_PID_WIDTH): Move from tui-data.h.
5179
ab0e1f1a
TT
51802019-08-20 Tom Tromey <tom@tromey.com>
5181
5182 * tui/tui-wingeneral.h (tui_make_window): Don't declare.
5183 * tui/tui-wingeneral.c (box_win): Change type of win_info.
5184 (box_win): Update.
5185 (tui_gen_win_info::make_window): Rename from tui_make_window.
5186 (tui_win_info::make_window): New method.
5187 (tui_gen_win_info::make_visible): Update.
5188 * tui/tui-source.c (tui_source_window::set_contents): Update.
5189 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
5190 (tui_data_window::display_registers_from): Update.
5191 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
5192 * tui/tui-data.h (struct tui_gen_win_info) <make_window>:
5193 Declare.
5194 <can_box>: Remove.
5195 <title>: Remove.
5196 (struct tui_win_info) <make_window>: Declare.
5197 <can_box>: Now virtual.
5198 <title>: New member.
5199 * tui/tui-data.c (~tui_gen_win_info): Don't free title.
5200 * tui/tui-command.c (tui_cmd_window::resize): Update.
5201
100c2bf3
TT
52022019-08-20 Tom Tromey <tom@tromey.com>
5203
5204 * tui/tui-regs.h (struct tui_data_window) <display_regs>: Remove.
5205 * tui/tui-regs.c (tui_data_window::show_registers): Update.
5206 (tui_data_window::check_register_values): Update.
5207
fa4dc567
TT
52082019-08-20 Tom Tromey <tom@tromey.com>
5209
5210 * tui/tui-regs.h (struct tui_data_window): Use
5211 DISABLE_COPY_AND_ASSIGN.
5212 <regs_content>: Change type, removing unique_ptr.
5213 <tui_data_window>: Add move constructor.
5214 * tui/tui-regs.c (tui_data_window::show_registers)
5215 (tui_data_window::show_register_group)
5216 (tui_data_window::display_registers_from)
5217 (tui_data_window::display_registers_from)
5218 (tui_data_window::first_data_item_displayed)
5219 (tui_data_window::delete_data_content_windows)
5220 (tui_data_window::rerender, tui_data_window::refresh_window)
5221 (tui_data_window::check_register_values): Update.
5222
ca02d7c8
TT
52232019-08-20 Tom Tromey <tom@tromey.com>
5224
5225 * tui/tui-regs.h (struct tui_data_window) <show_registers,
5226 show_register_group>: Declare.
5227 (tui_show_register_group): Don't declare.
5228 * tui/tui-regs.c (tui_data_window::show_registers): Rename from
5229 tui_show_registers.
5230 (tui_data_window::show_register_group): Rename from
5231 tui_show_register_group.
5232 (tui_data_window::check_register_values, tui_reg_command):
5233 Update.
5234 * tui/tui-layout.c (tui_set_layout): Update.
5235
63356bfd
TT
52362019-08-20 Tom Tromey <tom@tromey.com>
5237
5238 * tui/tui-regs.h (struct tui_data_window) <check_register_values>:
5239 Declare.
5240 (tui_check_register_values): Don't declare.
5241 * tui/tui-regs.c (tui_data_window::check_register_values): Rename
5242 from tui_check_register_values.
5243 * tui/tui-hooks.c (tui_register_changed): Update.
5244
42cc14a7
TT
52452019-08-20 Tom Tromey <tom@tromey.com>
5246
5247 * tui/tui-regs.c (tui_reg_layout): Move later.
5248 (tui_show_registers): Don't enable TUI mode or change layout.
5249
b9ad3686
TT
52502019-08-20 Tom Tromey <tom@tromey.com>
5251
5252 * tui/tui-regs.h (struct tui_data_item_window)
5253 <~tui_data_item_window>: Remove.
5254 <content>: Now a unique_xmalloc_ptr.
5255 * tui/tui-regs.c (tui_register_format): Return a
5256 unique_xmalloc_ptr.
5257 (tui_get_register): Update.
5258 (~tui_data_item_window): Remove.
5259 (tui_data_window::display_registers_from, tui_display_register):
5260 Update.
5261 * tui/tui-io.h (tui_expand_tabs): Update.
5262 * tui/tui-io.c (tui_expand_tabs): Return a unique_xmalloc_ptr.
5263 Remove "col" parameter.
5264
8e114aab
TT
52652019-08-20 Tom Tromey <tom@tromey.com>
5266
5267 * tui/tui-regs.h (struct tui_data_item_window) <value>: Remove
5268 field.
5269 * tui/tui-regs.c (~tui_data_item_window): Update.
5270
1a4f81dd
TT
52712019-08-20 Tom Tromey <tom@tromey.com>
5272
5273 * tui/tui-regs.c (tui_register_format, tui_get_register): Move
5274 earlier.
5275
0f8d8876
TT
52762019-08-20 Tom Tromey <tom@tromey.com>
5277
5278 * tui/tui-regs.c (tui_reg_command): Remove NULL check.
5279
605dc2c2
TT
52802019-08-20 Tom Tromey <tom@tromey.com>
5281
5282 * tui/tui-source.h (struct tui_source_window): Update.
5283 * tui/tui-regs.c (tui_show_registers): Update.
5284 * tui/tui-disasm.h (struct tui_disasm_window): Update.
5285 * tui/tui-data.h (NO_SRC_STRING, NO_DISASSEM_STRING)
5286 (NO_REGS_STRING): Remove defines.
5287
aedbe3bb
CM
52882019-08-20 Conrad Meyer <cem@FreeBSD.org>
5289
5290 * remote.c (remote_target::remote_btrace_maybe_reopen): Avoid
5291 unnecessary thread walk if remote doesn't support the packet.
5292
7ce8f214
TT
52932019-08-19 Tom Tromey <tromey@adacore.com>
5294
5295 * python/py-value.c (value_has_field): Fix indentation.
5296
f21c2bd7
TT
52972019-08-19 Tom Tromey <tromey@adacore.com>
5298
5299 * printcmd.c (do_one_display, info_display_command): Update.
5300 * block.h (contained_in): Return bool. Add allow_nested
5301 parameter.
5302 * block.c (contained_in): Return bool. Add allow_nested
5303 parameter.
5304
d806ea2d
TT
53052019-08-19 Tom Tromey <tom@tromey.com>
5306
5307 * configure: Rebuild.
5308 * configure.ac: Disallow the combination of -static-libstdc++ and
5309 source highlight.
5310 * source-cache.c (get_language_name): Handle rust.
5311 (source_cache::get_source_lines): Ignore highlighting exceptions.
5312
398fdd60
TT
53132019-08-16 Tom Tromey <tom@tromey.com>
5314
5315 * tui/tui.h (enum tui_win_type) <EXEC_INFO_WIN>: Remove.
5316 * tui/tui-winsource.h (struct tui_exec_info_window): Remove.
5317 (struct tui_source_window_base) <make_visible, refresh_window,
5318 resize>: Remove methods.
5319 <execution_info>: Remove field.
5320 * tui/tui-winsource.c (tui_source_window_base::do_erase_source_content)
5321 (tui_show_source_line, tui_source_window_base)
5322 (~tui_source_window_base): Update.
5323 (tui_source_window_base::resize)
5324 (tui_source_window_base::make_visible)
5325 (tui_source_window_base::refresh_window): Remove.
5326 (tui_source_window_base::update_exec_info): Update.
5327 * tui/tui-source.c (tui_source_window::set_contents): Update.
5328 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
5329
e699d331
TT
53302019-08-16 Tom Tromey <tom@tromey.com>
5331
5332 * tui/tui-hooks.c (tui_remove_hooks): Don't set
5333 deprecated_query_hook.
5334
bb01dbfc
TT
53352019-08-16 Tom Tromey <tom@tromey.com>
5336
5337 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
5338 (tui_update_source_windows_with_line): Update.
5339 * tui/tui-source.h (struct tui_source_window)
5340 <show_symtab_source>: Declare.
5341 (tui_show_symtab_source): Don't declare.
5342 * tui/tui-source.c (tui_show_symtab_source): Rename from
5343 tui_show_symtab_source.
5344
81c82c4b
TT
53452019-08-16 Tom Tromey <tom@tromey.com>
5346
5347 * tui/tui-winsource.h (struct tui_source_window_base)
5348 <set_contents>: Declare.
5349 * tui/tui-winsource.c
5350 (tui_source_window_base::update_source_window_as_is): Update.
5351 * tui/tui-source.h (struct tui_source_window) <set_contents>:
5352 Declare.
5353 (tui_set_source_content): Don't declare.
5354 * tui/tui-source.c (tui_source_window::set_contents): Rename from
5355 tui_set_source_content.
5356 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
5357 Declare.
5358 (tui_set_disassem_content): Don't declare.
5359 * tui/tui-disasm.c (tui_disasm_window::set_contents): Rename from
5360 tui_set_disassem_content.
5361
2ddaf614
TT
53622019-08-16 Tom Tromey <tom@tromey.com>
5363
5364 * tui/tui-winsource.h (struct tui_source_window_base)
5365 <update_breakpoint_info>: Declare.
5366 (tui_update_breakpoint_info): Don't declare.
5367 * tui/tui-winsource.c (tui_source_window_base::update_source_window_as_is)
5368 (tui_update_all_breakpoint_info): Update.
5369 (tui_source_window_base::update_breakpoint_info): Rename from
5370 tui_update_breakpoint_info.
5371 (tui_source_window_base::update_exec_info): Update.
5372
017f9828
TT
53732019-08-16 Tom Tromey <tom@tromey.com>
5374
5375 * tui/tui-winsource.h (struct tui_source_window_base)
5376 <update_source_window>: Declare.
5377 (tui_update_source_window): Don't declare.
5378 * tui/tui-winsource.c
5379 (tui_source_window_base::update_source_window): Rename from
5380 tui_update_source_window.
5381 (tui_source_window_base::rerender): Update.
5382 * tui/tui-source.c (tui_source_window::maybe_update): Update.
5383 * tui/tui-disasm.c (tui_show_disassem)
5384 (tui_show_disassem_and_update_source)
5385 (tui_disasm_window::maybe_update): Update.
5386
ed8358e9
TT
53872019-08-16 Tom Tromey <tom@tromey.com>
5388
5389 * tui/tui-winsource.h (struct tui_source_window_base)
5390 <update_source_window_as_is>: Declare.
5391 (tui_update_source_window_as_is): Don't declare.
5392 * tui/tui-winsource.c (tui_update_source_window): Update
5393 (tui_source_window_base::update_source_window_as_is): Rename from
5394 tui_update_source_window_as_is.
5395 (tui_source_window_base::refill): Update.
5396 * tui/tui-source.c (tui_show_symtab_source): Update.
5397 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical):
5398 Update.
5399
20149b6b
TT
54002019-08-16 Tom Tromey <tom@tromey.com>
5401
5402 * tui/tui-winsource.h (tui_update_source_window)
5403 (tui_update_source_window_as_is): Remove "noerror" parameter.
5404 * tui/tui-winsource.c (tui_update_source_window)
5405 (tui_update_source_window_as_is): Remove "noerror" parameter.
5406 (tui_update_source_windows_with_addr)
5407 (tui_update_source_windows_with_line)
5408 (tui_source_window_base::rerender)
5409 (tui_source_window_base::refill): Update.
5410 * tui/tui-source.h (tui_set_source_content)
5411 (tui_show_symtab_source): Remove "noerror" parameter.
5412 * tui/tui-source.c (tui_set_source_content): Remove "noerror"
5413 parameter.
5414 (tui_show_symtab_source): Likewise.
5415 (tui_source_window::maybe_update): Update.
5416 * tui/tui-disasm.c (tui_show_disassem)
5417 (tui_show_disassem_and_update_source)
5418 (tui_disasm_window::do_scroll_vertical)
5419 (tui_disasm_window::maybe_update): Update.
5420
2d83e710
TT
54212019-08-16 Tom Tromey <tom@tromey.com>
5422
5423 * tui/tui.c (tui_is_window_visible): Update.
5424 * tui/tui-wingeneral.c (tui_make_window)
5425 (tui_gen_win_info::make_visible, tui_refresh_all): Update.
5426 * tui/tui-win.c (window_name_completer, tui_refresh_all_win)
5427 (tui_set_focus_command, tui_all_windows_info, update_tab_width)
5428 (tui_set_win_height_command, parse_scrolling_args): Update.
5429 * tui/tui-source.c (tui_source_window::style_changed): Update.
5430 * tui/tui-regs.c (tui_show_registers)
5431 (tui_data_window::first_data_item_displayed)
5432 (tui_data_window::delete_data_content_windows)
5433 (tui_check_register_values, tui_reg_command): Update.
5434 * tui/tui-disasm.c (tui_show_disassem): Update.
5435 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: New
5436 method.
5437 <is_visible>: Remove field.
5438 * tui/tui-data.c (tui_next_win, tui_prev_win)
5439 (tui_delete_invisible_windows): Update.
5440
d4ab829a
TT
54412019-08-16 Tom Tromey <tom@tromey.com>
5442
5443 * tui/tui-winsource.h (struct tui_source_window_base)
5444 <m_has_locator>: Remove.
5445 * tui/tui-layout.c (show_source_disasm_command, show_data)
5446 (show_source_or_disasm_and_command): Update.
5447
aa7ca1bb
AH
54482019-08-16 Alan Hayward <alan.hayward@arm.com>
5449
5450 * NEWS (Other MI changes): New subsection.
5451 * aarch64-tdep.c (aarch64_get_pc_address_flags): New function.
5452 (aarch64_gdbarch_init): Add aarch64_get_pc_address_flags.
5453 * arch-utils.c (default_get_pc_address_flags): New function.
5454 * arch-utils.h (default_get_pc_address_flags): New declaration.
5455 * gdbarch.sh: Add get_pc_address_flags.
5456 * gdbarch.c: Regenerate.
5457 * gdbarch.h: Likewise.
5458 * stack.c (print_pc): New function.
5459 (print_frame_info) (print_frame): Call print_pc.
5460
6eac171f
TV
54612019-08-16 Tom de Vries <tdevries@suse.de>
5462
5463 * maint.c (maintenance_info_sections): Also handle !ALLOBJ case using
5464 print_objfile_section_info.
5465
3df505f6
TT
54662019-08-15 Tom Tromey <tom@tromey.com>
5467
5468 * tui/tui-io.c (tui_puts_internal): Check TUI_CMD_WIN before
5469 calling update_cmdwin_start_line.
5470 * tui/tui-winsource.h (struct tui_source_window_base)
5471 <do_make_visible_with_new_height, set_new_height>: Don't declare.
5472 <rerender>: Declare.
5473 * tui/tui-winsource.c (tui_source_window_base::update_tab_width):
5474 Call rerender.
5475 (tui_source_window_base::set_new_height): Remove.
5476 (tui_source_window_base::rerender): Rename from
5477 do_make_visible_with_new_height.
5478 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use
5479 resize method.
5480 (tui_win_info::make_invisible_and_set_new_height)
5481 (tui_win_info::make_visible_with_new_height): Remove.
5482 * tui/tui-stack.h (struct tui_locator_window) <rerender>:
5483 Declare.
5484 * tui/tui-stack.c (tui_locator_window::rerender): New method.
5485 * tui/tui-regs.h (struct tui_data_window) <set_new_height,
5486 do_make_visible_with_new_height>: Don't declare.
5487 <rerender>: Declare.
5488 * tui/tui-regs.c (tui_data_window::rerender): Rename from
5489 set_new_height.
5490 (tui_data_window::do_make_visible_with_new_height): Remove.
5491 * tui/tui-layout.c (show_source_disasm_command, show_data): Don't
5492 call tui_show_locator_content.
5493 (tui_gen_win_info::resize): Call rerender.
5494 (show_source_or_disasm_and_command): Don't call
5495 tui_show_locator_content.
5496 * tui/tui-data.h (struct tui_gen_win_info) <rerender>: New
5497 method.
5498 (struct tui_win_info) <rerender>: Declare.
5499 <set_new_height, make_invisible_and_set_new_height,
5500 make_visible_with_new_height>: Don't declare.
5501 * tui/tui-data.c (tui_win_list::rerender): New method.
5502 * tui/tui-command.h (struct tui_cmd_window)
5503 <do_make_visible_with_new_height>: Don't declare.
5504 * tui/tui-command.c
5505 (tui_cmd_window::do_make_visible_with_new_height): Remove.
5506
272560b5
TT
55072019-08-15 Tom Tromey <tromey@adacore.com>
5508
5509 * ada-exp.y (convert_char_literal): Handle "Q%c" encoding.
5510 * ada-lang.c (ada_enum_name): Likewise.
5511
08235187
CB
55122019-08-15 Christian Biesinger <cbiesinger@google.com>
5513
5514 * python/lib/gdb/__init__.py (GdbOutputFile): Rename to have a
5515 leading underscore.
5516 (GdbOutputErrorFile): Likewise.
5517 (global scope): Adjust constructor calls to GdbOutput{,Error}File
5518 accordingly.
5519 (execute_unwinders): Rename to have a leading underscore.
5520 (auto_load_packages): Likewise.
5521 (global scope): Adjust call to auto_load_packages accordingly.
5522 (GdbSetPythonDirectory): Likewise.
5523 * python/py-unwind.c (pyuw_sniffer): Call _execute_unwinders
5524 instead of execute_unwinders.
5525
db502012
TT
55262019-08-15 Tom Tromey <tom@tromey.com>
5527
5528 * tui/tui-layout.c (show_layout, show_source_disasm_command)
5529 (show_data): Don't change window visibility.
5530 (tui_gen_win_info::resize): Remove special case for command
5531 window. Use wresize, when available.
5532 (show_source_or_disasm_and_command): Don't change window
5533 visibility.
5534 * tui/tui-command.h (struct tui_cmd_window) <resize>: Declare.
5535 <make_visible>: New method.
5536 * tui/tui-command.c (tui_cmd_window::resize): New method.
5537
3891b65e
TT
55382019-08-15 Tom Tromey <tom@tromey.com>
5539
5540 * tui/tui-winsource.h (struct tui_source_window_iterator): New.
5541 (struct tui_source_windows): New.
5542 * tui/tui-winsource.c (tui_display_main): Update.
5543 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
5544 (new_height_ok, parse_scrolling_args): Update.
5545 * tui/tui-layout.c (show_layout, show_data): Update.
5546 * tui/tui-data.h (tui_source_windows, tui_clear_source_windows)
5547 (tui_add_to_source_windows): Don't declare.
5548 * tui/tui-data.c (source_windows, tui_source_windows)
5549 (tui_clear_source_windows, tui_add_to_source_windows): Remove.
5550
ee556432
TT
55512019-08-15 Tom Tromey <tom@tromey.com>
5552
5553 * tui/tui-winsource.h (struct tui_source_window_base) <resize>:
5554 Rename from reset.
5555 * tui/tui-winsource.c (tui_source_window_base::resize): Rename.
5556 * tui/tui-layout.c (show_source_disasm_command, show_data):
5557 Update.
5558 (tui_gen_win_info::resize): Rename.
5559 (show_source_or_disasm_and_command): Update.
5560 * tui/tui-data.h (struct tui_gen_win_info) <resize>: Rename from
5561 reset.
5562
46f438e3
TT
55632019-08-15 Tom Tromey <tom@tromey.com>
5564
5565 * tui/tui-stack.c (tui_initialize_static_data): Remove.
5566 * tui/tui-interp.c (tui_interp::init): Don't call
5567 tui_initialize_static_data.
5568 * tui/tui-data.h (tui_initialize_static_data): Don't declare.
5569
f4ce562c
TT
55702019-08-15 Tom Tromey <tom@tromey.com>
5571
5572 * tui/tui-layout.c (tui_default_win_viewport_height): Don't
5573 examine tui_win_list.
5574
c398c3d0
TT
55752019-08-15 Tom Tromey <tom@tromey.com>
5576
5577 * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
5578 * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
5579 tui_clear_source_content.
5580 (tui_clear_source_content): Remove.
5581 (tui_source_window_base::do_erase_source_content): Hoist call to
5582 content.clear().
5583 * tui/tui-stack.c (tui_show_frame_info): Don't call
5584 tui_clear_source_content.
5585
e25d2004
TT
55862019-08-15 Tom Tromey <tom@tromey.com>
5587
5588 * tui/tui-winsource.h (struct tui_source_window_base)
5589 <do_erase_source_content>: New method.
5590 <erase_source_content>: New method.
5591 (tui_erase_source_content): Don't declare.
5592 * tui/tui-winsource.c (tui_clear_source_content): Update.
5593 (tui_source_window_base::do_erase_source_content): Rename from
5594 tui_erase_source_content.
5595 (tui_source_window_base::show_source_content): Update.
5596 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
5597 * tui/tui-source.h (struct tui_source_window)
5598 <erase_source_content>: New method.
5599 * tui/tui-disasm.h (struct tui_disasm_window)
5600 <erase_source_content>: New method.
5601
002f15c2
TT
56022019-08-15 Tom Tromey <tom@tromey.com>
5603
5604 * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
5605 (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
5606 constructor.
5607 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
5608 * tui/tui-source.c (tui_set_source_content): Update.
5609 * tui/tui-disasm.c (tui_set_disassem_content): Update.
5610
c9033fe8
TT
56112019-08-15 Tom Tromey <tom@tromey.com>
5612
5613 * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
5614 * tui/tui-winsource.c (tui_line_is_displayed): Move to
5615 tui-source.c.
5616 * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
5617 Declare.
5618 * tui/tui-source.c (tui_source_window::line_is_displayed): New
5619 method.
5620 (tui_source_window::maybe_update): Update.
5621
088f37dd
TT
56222019-08-15 Tom Tromey <tom@tromey.com>
5623
5624 * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
5625 * tui/tui-winsource.c (tui_addr_is_displayed): Move to
5626 tui-disasm.c.
5627 * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
5628 Declare.
5629 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
5630 method.
5631 (tui_disasm_window::maybe_update): Update.
5632
a54700c6
TT
56332019-08-15 Tom Tromey <tom@tromey.com>
5634
5635 * tui/tui-winsource.h (struct tui_source_window_base)
5636 <maybe_update>: Declare.
5637 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
5638 method.
5639 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
5640 Declare.
5641 * tui/tui-source.c (tui_source_window::maybe_update): New method.
5642 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
5643 Declare.
5644 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
5645
e2a678a5
TT
56462019-08-15 Tom Tromey <tom@tromey.com>
5647
5648 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
5649
f2dda477
TT
56502019-08-15 Tom Tromey <tom@tromey.com>
5651
5652 * tui/tui-wingeneral.c: Include tui-stack.h.
5653 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
5654 (struct tui_locator_window): Move from tui-data.h.
5655 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
5656 (tui_initialize_static_data): Move from tui-data.c.
5657 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
5658 (struct tui_locator_window): Move to tui-stack.c.
5659 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
5660 (tui_initialize_static_data): Move to tui-stack.c.
5661
ed4a1084
TT
56622019-08-15 Tom Tromey <tom@tromey.com>
5663
5664 * tui/tui-layout.c (show_source_disasm_command)
5665 (show_source_or_disasm_and_command): Use make_visible method, not
5666 tui_make_window.
5667 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
5668 Remove.
5669
65962b20
TT
56702019-08-15 Tom Tromey <tom@tromey.com>
5671
5672 * tui/tui-wingeneral.h (tui_make_window): Update.
5673 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
5674 parameter.
5675 (tui_gen_win_info::make_visible): Update.
5676 * tui/tui-regs.c (tui_data_window::display_registers_from):
5677 Update.
5678 * tui/tui-layout.c (show_source_disasm_command)
5679 (show_source_or_disasm_and_command): Update.
5680 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
5681 (enum tui_box): Remove.
5682 (struct tui_win_info) <can_box>: New method.
5683 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
5684 method.
5685
2208ee91
TV
56862019-08-15 Tom de Vries <tdevries@suse.de>
5687
5688 * linux-nat-trad.c: Include gdbarch.h.
5689
75faf5c4
AH
56902019-08-14 Alan Hayward <alan.hayward@arm.com>
5691
5692 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
5693 register sizes.
5694
b1c896b3
TT
56952019-08-14 Tom Tromey <tromey@adacore.com>
5696
5697 * darwin-nat.c: Include gdbarch.h.
5698 * darwin-nat-info.c: Include gdbarch.h.
5699
6405cd73
TT
57002019-08-13 Tom Tromey <tom@tromey.com>
5701
5702 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
5703 Remove.
5704 * tui/tui-data.c (tui_initialize_static_data): Update.
5705
5216580d
TT
57062019-08-13 Tom Tromey <tom@tromey.com>
5707
5708 * tui/tui-winsource.h (struct tui_exec_info_window)
5709 <~tui_exec_info_window, maybe_allocate_content, get_content,
5710 m_content>: Remove.
5711 (struct tui_source_window_base) <set_exec_info_content,
5712 show_exec_info_content>: Don't declare.
5713 * tui/tui-winsource.c
5714 (tui_exec_info_window::maybe_allocate_content): Remove.
5715 (tui_source_window_base::update_exec_info): Rename from
5716 set_exec_info_content.
5717 (tui_source_window_base::show_exec_info_content)
5718 (tui_source_window_base::update_exec_info): Remove.
5719
93858ad3
TT
57202019-08-13 Tom Tromey <tom@tromey.com>
5721
5722 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
5723 declare.
5724 * tui/tui-winsource.c (tui_update_source_window_as_is)
5725 (tui_update_source_windows_with_addr, tui_erase_source_content):
5726 Update.
5727 (tui_clear_exec_info_content): Remove.
5728
e321e7ce
TT
57292019-08-13 Tom Tromey <tom@tromey.com>
5730
5731 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
5732 declare.
5733 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
5734 call tui_erase_exec_info_content.
5735 (tui_clear_exec_info_content): Rename from
5736 tui_erase_exec_info_content.
5737 (tui_clear_exec_info_content): Delete.
5738
8270ac62
TT
57392019-08-13 Tom Tromey <tom@tromey.com>
5740
5741 * tui/tui-winsource.h (struct tui_source_window_base)
5742 <show_exec_info_content>: Declare.
5743 (tui_show_exec_info_content): Don't declare.
5744 * tui/tui-winsource.c
5745 (tui_source_window_base::show_exec_info_content): Rename from
5746 tui_show_exec_info_content.
5747 (tui_source_window_base::update_exec_info): Update.
5748
7b56485d
TT
57492019-08-13 Tom Tromey <tom@tromey.com>
5750
5751 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
5752 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
5753 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
5754 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
5755 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
5756 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
5757 ... here.
5758
7ba913dc
TT
57592019-08-13 Tom Tromey <tom@tromey.com>
5760
5761 * tui/tui-winsource.h (struct tui_source_window_base)
5762 <update_exec_info>: Declare.
5763 (tui_update_exec_info): Don't declare.
5764 * tui/tui-winsource.c (tui_update_source_window_as_is)
5765 (tui_source_window_base::refresh_all)
5766 (tui_update_all_breakpoint_info): Update.
5767 (tui_source_window_base::update_exec_info): Rename from
5768 tui_update_exec_info.
5769 * tui/tui-stack.c (tui_show_frame_info): Update.
5770
37a4a131
TT
57712019-08-13 Tom Tromey <tom@tromey.com>
5772
5773 * tui/tui-winsource.h (struct tui_source_window_base)
5774 <set_exec_info_content>: Declare.
5775 (tui_set_exec_info_content): Don't declare.
5776 * tui/tui-winsource.c
5777 (tui_source_window_base::set_exec_info_content): Rename from
5778 tui_set_exec_info_content.
5779 (tui_update_exec_info): Update.
5780
0bd27e07
TT
57812019-08-13 Tom Tromey <tom@tromey.com>
5782
5783 * tui/tui-winsource.h (struct tui_source_window_base)
5784 <show_source_content>: Declare.
5785 (tui_show_source_content): Don't declare.
5786 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
5787 (tui_source_window_base::show_source_content): Rename from
5788 tui_show_source_content.
5789 (tui_source_window_base::refresh_all): Update.
5790 * tui/tui-layout.c (show_source_disasm_command)
5791 (show_source_or_disasm_and_command): Update.
5792
b4ef5aeb
TT
57932019-08-13 Tom Tromey <tom@tromey.com>
5794
5795 * tui/tui-winsource.c (tui_erase_source_content)
5796 (tui_show_source_content, tui_source_window_base::refresh_all):
5797 Update.
5798 * tui/tui-wingeneral.h
5799 (tui_check_and_display_highlight_if_needed): Don't declare.
5800 * tui/tui-wingeneral.c
5801 (tui_win_info::check_and_display_highlight_if_needed): Rename from
5802 check_and_display_highlight_if_needed.
5803 * tui/tui-win.c (tui_rehighlight_all)
5804 (tui_win_info::make_visible_with_new_height): Update.
5805 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
5806 (tui_data_window::erase_data_content)
5807 (tui_data_window::display_all_data): Update.
5808 * tui/tui-data.h (struct tui_win_info)
5809 <check_and_display_highlight_if_needed>: Declare.
5810
fede5273
TT
58112019-08-13 Tom Tromey <tom@tromey.com>
5812
5813 * tui/tui-win.c (tui_resize_all): Call
5814 tui_delete_invisible_windows.
5815 * tui/tui-layout.c (show_layout): Call
5816 tui_delete_invisible_windows.
5817 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
5818 * tui/tui-data.c (tui_delete_invisible_windows): New function.
5819
22c3f490
TT
58202019-08-13 Tom Tromey <tom@tromey.com>
5821
5822 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
5823 tui_add_win_to_layout.
5824
16cb7910
TT
58252019-08-13 Tom Tromey <tom@tromey.com>
5826
5827 * tui/tui-layout.h (tui_default_win_height): Don't declare.
5828 * tui/tui-layout.c (tui_default_win_height): Now static.
5829
cc0c3ffb
TT
58302019-08-13 Tom Tromey <tom@tromey.com>
5831
5832 * tui/tui-layout.c (show_layout): Unify all layout cases into a
5833 single switch.
5834 (show_source_disasm_command, show_source_or_disasm_and_command):
5835 Don't check current layout.
5836
3f3ffe54
TT
58372019-08-13 Tom Tromey <tom@tromey.com>
5838
5839 * tui/tui-wingeneral.c (make_all_visible): Remove.
5840 (tui_make_all_invisible): Simplify.
5841 * tui/tui-layout.c (tui_make_all_invisible): Move from
5842 tui-wingeneral.c; simplify.
5843 (show_layout): Hoist call to tui_make_all_invisible.
5844 (show_data): Don't call tui_make_all_invisible.
5845
69258091
TT
58462019-08-13 Tom Tromey <tom@tromey.com>
5847
5848 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
5849 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
5850
62cf57fe
TT
58512019-08-13 Tom Tromey <tom@tromey.com>
5852
5853 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
5854 tui-data.c.
5855 (show_source_disasm_command, show_data)
5856 (show_source_or_disasm_and_command): Don't use
5857 tui_set_current_layout_to.
5858 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
5859 * tui/tui-data.c (current_layout, tui_current_layout): Move to
5860 tui-layout.c.
5861 (tui_set_current_layout_to): Remove.
5862
2afade5d
TT
58632019-08-13 Tom Tromey <tom@tromey.com>
5864
5865 * tui/tui-layout.c (tui_set_layout): Update.
5866 * tui/tui-data.h (struct tui_layout_def): Remove.
5867 (tui_layout_def): Don't declare.
5868 * tui/tui-data.c (layout_def): Remove.
5869 (tui_layout_def): Remove.
5870
a3504e96
TT
58712019-08-13 Tom Tromey <tom@tromey.com>
5872
5873 * tui/tui-winsource.h (struct tui_source_window_base)
5874 <clear_detail>: No longer "override".
5875 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
5876 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
5877 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
5878 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
5879 Remove.
5880 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
5881
29c92911
TT
58822019-08-13 Tom Tromey <tromey@adacore.com>
5883
5884 * tracepoint.c: Don't include readline.h or history.h.
5885
86c6b807
TT
58862019-08-12 Tom Tromey <tom@tromey.com>
5887
5888 * configure: Rebuild.
5889 * configure.ac: Check for readline 7.
5890 * NEWS: Mention readline 7 requirement.
5891 * README: Update.
5892
5db2718c
TT
58932019-08-12 Tom Tromey <tom@tromey.com>
5894
5895 * mingw-hdep.c (gdb_select): Remove readline hack.
5896
dac36daf
PFC
58972019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5898
5899 * blockframe.c (find_pc_partial_function): Set *block to nullptr
5900 when the function fails.
5901
1022c627
AA
59022019-08-09 Andreas Arnez <arnez@linux.ibm.com>
5903
5904 * s390-tdep.c (s390_type_align): New function.
5905 (s390_gdbarch_init): Set it as type_align gdbarch method.
5906
eba4caf2
TV
59072019-08-09 Tom de Vries <tdevries@suse.de>
5908
5909 PR gdb/24591
5910 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
5911 pc_low with relocation offset.
5912
123cd851
TT
59132019-08-07 Tom Tromey <tromey@adacore.com>
5914
5915 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
5916 (print_frame_args): Update.
5917 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
5918 Update.
5919 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
5920 * frame.h (struct frame_arg): Add initializers.
5921 <error>: Now a unique_xmalloc_ptr.
5922
3d31bc39
AH
59232019-08-07 Alan Hayward <alan.hayward@arm.com>
5924
5925 * NEWS: Expand the Pointer Authentication entry.
5926 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
5927 (aarch64_frame_unmask_lr): ... to this.
5928 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
5929 Call aarch64_frame_unmask_lr.
5930 * frame.c (struct frame_info): Add "masked" variable.
5931 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
5932 (fprint_frame): Check for masked pc.
5933 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
5934 declarations.
5935 * python/py-framefilter.c (py_print_frame): Check for masked pc.
5936 * stack.c (print_frame): Check for masked pc.
5937
0cf9feb9
TT
59382019-08-06 Tom Tromey <tom@tromey.com>
5939
5940 * stabsread.c (patch_block_stabs, read_one_struct_field)
5941 (read_enum_type): Use obstack_strndup.
5942 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
5943 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
5944 * dwarf2read.c (guess_full_die_structure_name)
5945 (anonymous_struct_prefix): Use obstack_strndup.
5946 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
5947 * c-exp.y (yylex): Use obstack_strndup.
5948 * ada-exp.y (write_object_renaming, write_ambiguous_var)
5949 (write_var_or_type): Use obstack_strndup.
5950
efba19b0
TT
59512019-08-06 Tom Tromey <tom@tromey.com>
5952
5953 * symfile.c (reread_symbols): Use obstack_strdup.
5954 * stabsread.c (read_type): Use obstack_strdup.
5955 * gdb_obstack.h (obstack_strdup): New overload.
5956 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
5957 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
5958 (dwarf2_canonicalize_name): Use obstack_strdup.
5959 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
5960 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
5961 Use obstack_strdup.
5962
f25102f7
TT
59632019-08-06 Tom Tromey <tom@tromey.com>
5964
5965 * gdb_obstack.h (obstack_strdup): Define.
5966 * gdb_obstack.c (obstack_strdup): Don't define.
5967
021887d8
TT
59682019-08-06 Tom Tromey <tom@tromey.com>
5969
5970 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
5971 obstack_strdup.
5972 * typeprint.c (typedef_hash_table::find_global_typedef): Use
5973 obstack_strdup.
5974 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
5975 * stabsread.c (common_block_start): Use obstack_strdup.
5976 * objfiles.c (set_objfile_main_name, objfile): Use
5977 obstack_strdup.
5978 * namespace.c (add_using_directive): Use obstack_strdup.
5979 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
5980 * jit.c (finalize_symtab): Use obstack_strdup.
5981 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
5982 (guess_partial_die_structure_name, partial_die_info::fixup)
5983 (dwarf2_name): Use obstack_strdup.
5984 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
5985 obstack_strdup.
5986 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
5987 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
5988 obstack_strdup.
5989 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
5990
d2834edc
PW
59912019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5992
5993 * unittests/help-doc-selftests.c: New file.
5994 * Makefile.in: Add the new file.
5995
590042fc
PW
59962019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5997
5998 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
5999 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
6000 the full first line, except when FOR_VALUE_PREFIX. In this case,
6001 the trailing '.' is not output, and the first character is uppercased.
6002 (print_help_for_command): Update call to print_doc_line.
6003 (print_doc_of_command): Likewise.
6004 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
6005 * cli/cli-option.c (append_indented_doc): Do not append newline.
6006 (build_help_option): Append newline after first appended_indented_doc
6007 only if a second call is done.
6008 (build_help): Append 2 new lines before each option, except the first
6009 one.
6010 * compile/compile.c (_initialize_compile): Add new lines after
6011 %OPTIONS%, when not at the end of the help.
6012 Change help doc or code
6013 producing the help doc to respect the invariants.
6014 * maint-test-options.c (_initialize_maint_test_options): Likewise.
6015 Also removed the new line after 'Options:', as all other commands
6016 do not put an empty line between 'Options:' and the first option.
6017 * printcmd.c (_initialize_printcmd): Likewise.
6018 * stack.c (_initialize_stack): Likewise.
6019 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
6020 incorrectly telling COMMAND is optional.
6021 * ada-lang.c (_initialize_ada_language): Change help doc or code
6022 producing the help doc to respect the invariants.
6023 * ada-tasks.c (_initialize_ada_tasks): Likewise.
6024 * breakpoint.c (_initialize_breakpoint): Likewise.
6025 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
6026 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
6027 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
6028 * cli/cli-style.c (cli_style_option::add_setshow_commands,
6029 _initialize_cli_style): Likewise.
6030 * corelow.c (core_target_info): Likewise.
6031 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
6032 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
6033 * filesystem.c (_initialize_filesystem): Likewise.
6034 * frame.c (_initialize_frame): Likewise.
6035 * gnu-nat.c (add_task_commands): Likewise.
6036 * infcall.c (_initialize_infcall): Likewise.
6037 * infcmd.c (_initialize_infcmd): Likewise.
6038 * interps.c (_initialize_interpreter): Likewise.
6039 * language.c (_initialize_language): Likewise.
6040 * linux-fork.c (_initialize_linux_fork): Likewise.
6041 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
6042 * maint.c (_initialize_maint_cmds): Likewise.
6043 * memattr.c (_initialize_mem): Likewise.
6044 * printcmd.c (_initialize_printcmd): Likewise.
6045 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
6046 _RegEx): Likewise.
6047 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
6048 * record-btrace.c (_initialize_record_btrace): Likewise.
6049 * record-full.c (_initialize_record_full): Likewise.
6050 * record.c (_initialize_record): Likewise.
6051 * regcache-dump.c (_initialize_regcache_dump): Likewise.
6052 * regcache.c (_initialize_regcache): Likewise.
6053 * remote.c (add_packet_config_cmd, init_remote_threadtests,
6054 _initialize_remote): Likewise.
6055 * ser-tcp.c (_initialize_ser_tcp): Likewise.
6056 * serial.c (_initialize_serial): Likewise.
6057 * skip.c (_initialize_step_skip): Likewise.
6058 * source.c (_initialize_source): Likewise.
6059 * stack.c (_initialize_stack): Likewise.
6060 * symfile.c (_initialize_symfile): Likewise.
6061 * symtab.c (_initialize_symtab): Likewise.
6062 * target-descriptions.c (_initialize_target_descriptions): Likewise.
6063 * top.c (init_main): Likewise.
6064 * tracefile-tfile.c (tfile_target_info): Likewise.
6065 * tracepoint.c (_initialize_tracepoint): Likewise.
6066 * tui/tui-win.c (_initialize_tui_win): Likewise.
6067 * utils.c (add_internal_problem_command): Likewise.
6068 * valprint.c (value_print_option_defs): Likewise.
6069
404f2902
FCE
60702019-08-06 Frank Ch. Eigler <fche@redhat.com>
6071
6072 PR build/24886
6073 * configure.ac: Drop enable-libmcheck support.
6074 * configure, config.in: Rebuild.
6075 * libmcheck.m4: Remove.
6076 * acinclude.m4: Don't include it.
6077 * Makefile.in: Don't distribute it.
6078 * top.c (print_gdb_configuration): Don't mention it.
6079
046bebe1
TT
60802019-08-06 Tom Tromey <tom@tromey.com>
6081
6082 * utils.c (set_output_style): Sometimes pass stream to
6083 emit_style_escape.
6084 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
6085 * record-btrace.c (btrace_insn_history): Update.
6086 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
6087 method.
6088 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
6089 Update initializers.
6090 <m_uiout>: New field.
6091 <m_di>: Move lower.
6092 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
6093 Remove "uiout" parameter.
6094 (dump_insns): Update.
6095 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
6096 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
6097
ddbcedf5
CB
60982019-08-06 Christian Biesinger <cbiesinger@google.com>
6099
6100 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
6101 (error_in_psymtab_expansion): Likewise.
6102 (lookup_symbol_via_quick_fns): Likewise.
6103 (basic_lookup_transparent_type_quick): Likewise.
6104 (basic_lookup_transparent_type_1): Likewise.
6105
b08b16c8
TT
61062019-08-06 Tom Tromey <tromey@adacore.com>
6107
6108 * source.c (last_source_error): Now bool.
6109 (print_source_lines_base): Make "noprint" bool. Only open
6110 source file when last_source_visited changes.
6111
cb44333d
TT
61122019-08-06 Tom Tromey <tromey@adacore.com>
6113
6114 * annotate.c (annotate_source_line): Use g_source_cache.
6115 * source-cache.c (source_cache::get_plain_source_lines): Change
6116 parameters. Populate m_offset_cache.
6117 (source_cache::ensure): New method.
6118 (source_cache::get_line_charpos): New method.
6119 (extract_lines): Move lower. Change parameters.
6120 (source_cache::get_source_lines): Move lower.
6121 * source-cache.h (class source_cache): Update comment.
6122 <get_line_charpos>: New method.
6123 <get_source_lines>: Update comment.
6124 <clear>: Clear m_offset_cache.
6125 <get_plain_source_lines>: Change parameters.
6126 <ensure>: New method
6127 <m_offset_cache>: New member.
6128 * source.c (forget_cached_source_info_for_objfile): Update.
6129 (info_source_command): Use g_source_cache.
6130 (find_source_lines, open_source_file_with_line_charpos): Remove.
6131 (print_source_lines_base, search_command_helper): Use g_source_cache.
6132 * source.h (open_source_file_with_line_charpos): Don't declare.
6133 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
6134 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
6135 Use g_source_cache.
6136
872dceaa
TT
61372019-08-06 Tom Tromey <tromey@adacore.com>
6138
6139 * source-cache.c (source_cache::get_plain_source_lines):
6140 Remove "first_line" and "last_line" parameters.
6141 (source_cache::get_source_lines): Cache plain text.
6142 * source-cache.h (class source_cache)
6143 <get_plain_source_lines>: Update.
6144
269249d9
TT
61452019-08-06 Tom Tromey <tromey@adacore.com>
6146
6147 * source-cache.c (extract_lines): No longer a method.
6148 Changed type of parameter. Include final newline.
6149 (selftests::extract_lines_test): New function.
6150 (_initialize_source_cache): Likewise.
6151 * source-cache.h (class source_cache)
6152 <extract_lines>: Don't declare.
6153
c0e8dcd8
TT
61542019-08-06 Tom Tromey <tromey@adacore.com>
6155
6156 * breakpoint.c (init_breakpoint_sal): Update.
6157 (breakpoint): Update.
6158 * breakpoint.h (struct breakpoint) <filter>: Now a
6159 unique_xmalloc_ptr.
6160
0b27c27d
CB
61612019-08-05 Christian Biesinger <cbiesinger@google.com>
6162
6163 * NEWS: Mention dictionary access on blocks.
6164 * python/py-block.c (blpy_getitem): New function.
6165 (block_object_as_mapping): New struct.
6166 (block_object_type): Use new struct for tp_as_mapping field.
6167
4ee94178
CB
61682019-08-05 Christian Biesinger <cbiesinger@google.com>
6169
6170 * objfiles.h (objfile): Add a comment describing partial symbols.
6171
8abfcabc
TT
61722019-08-05 Tom Tromey <tromey@adacore.com>
6173
6174 * compile/compile.c (_initialize_compile): Use _(), not N_().
6175 * thread.c (_initialize_thread): Use _(), not N_().
6176 * stack.c (_initialize_stack): Use _(), not N_().
6177 * printcmd.c (_initialize_printcmd): Use _(), not N_().
6178
2b79f376
SM
61792019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6180
6181 * dwarf2read.c (struct dw2_symtab_iterator):
6182 <want_specific_block>: Remove.
6183 <block_index>: Change type to gdb::optional.
6184 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
6185 change type of BLOCK_INDEX parameter to gdb::optional.
6186 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
6187 (dw2_lookup_symbol): Don't pass argument for
6188 WANT_SPECIFIC_BLOCK.
6189 (dw2_expand_symtabs_for_function): Don't pass argument for
6190 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
6191 (class dw2_debug_names_iterator)
6192 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
6193 parameter, change BLOCK_INDEX type to gdb::optional.
6194 <m_want_specific_block>: Remove.
6195 <m_block_index>: Change type to gdb::optional.
6196 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
6197 gdb::optional. Re-write in function of gdb::optional.
6198 (dw2_debug_names_lookup_symbol): Don't pass argument for
6199 WANT_SPECIFIC_BLOCK.
6200 (dw2_debug_names_expand_symtabs_for_function): Don't pass
6201 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
6202 BLOCK_INDEX.
6203
ae60f04e
PW
62042019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6205
6206 * NEWS: Mention changes to "info sources" command.
6207
28cd9371
PW
62082019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6209
6210 * symtab.c (filename_partial_match_opts): New struct type.
6211 (struct output_source_filename_data): New members
6212 regexp, c_regexp, partial_match.
6213 (output_source_filename): Use new members to decide to print file.
6214 (info_sources_option_defs): New variable.
6215 (make_info_sources_options_def_group, print_info_sources_header,
6216 info_sources_command_completer):
6217 New functions.
6218 (info_sources_command): Read new optional arguments.
6219 (_initialize_symtab): Update info sources help.
6220
ca683e3a
AO
62212019-08-02 Alexandre Oliva <oliva@adacore.com>
6222
6223 * ada-lang.c (exception_support_info_v0): Renamed from...
6224 (default_exception_support_info): ... this. Create new
6225 definition for v1.
6226 (ada_has_this_exception_support): Look up catch_handlers_sym.
6227 (ada_exception_support_info_sniffer): Try v0 after default.
6228
f1264162
TT
62292019-08-01 Tom Tromey <tromey@adacore.com>
6230
6231 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
6232 gdbarch.h.
6233
0a7b2485
CB
62342019-08-01 Christian Biesinger <cbiesinger@google.com>
6235
6236 * s12z-tdep.c: Fix include path for s12z-opc.h.
6237
c6bdbeb7
AH
62382019-08-01 Alan Hayward <alan.hayward@arm.com>
6239
6240 * NEWS: Require GNU make 3.82.
6241
a2bd7b82
TT
62422019-07-16 Tom Tromey <tom@tromey.com>
6243
6244 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
6245 declare.
6246
aa3b6533
TT
62472019-07-30 Tom Tromey <tromey@adacore.com>
6248
6249 * block.c (contained_in): Remove BLOCK_FUNCTION check.
6250
a1530dc7
KB
62512019-07-30 Kevin Buettner <kevinb@redhat.com>
6252
6253 * printcmd.c (print_address_symbolic): Print negative offsets.
6254 (build_address_symbolic): Force signed arithmetic when computing
6255 offset.
6256
2906593f
CB
62572019-07-30 Christian Biesinger <cbiesinger@google.com>
6258
6259 PR/24474: Add a function to lookup static variables.
6260 * NEWS: Mention this new function.
6261 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
6262 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
6263 * python/python.c (python_GdbMethods): Add new function.
6264
c620ed88
CB
62652019-07-29 Christian Biesinger <cbiesinger@google.com>
6266
6267 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
6268 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
6269 (objfpy_lookup_static_symbol): New function.
6270 (objfile_object_methods): Add new functions.
6271
bc4268a5
PW
62722019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6273
6274 * NEWS: Mention 'set|show print frame-info'. Mention new
6275 'presence' value for 'frame-arguments'. Mention new '-frame-info'
6276 backtrace argument. Mention that python frame filtering code
6277 is now consistent with what 'backtrace' command prints.
6278
4b5e8d19
PW
62792019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6280
6281 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
6282 comments.
6283 (print_frame_info_auto, print_frame_info_source_line,
6284 print_frame_info_location, print_frame_info_source_and_location,
6285 print_frame_info_location_and_address, print_frame_info_short_location):
6286 New declarations.
6287 (struct frame_print_options): New member print_frame_info.
6288 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
6289 * stack.h (get_user_print_what_frame_info): New declaration.
6290 (frame_show_address): New declaration.
6291 * stack.c (print_frame_arguments_choices): New value 'presence'.
6292 (print_frame_info_auto, print_frame_info_source_line,
6293 print_frame_info_location, print_frame_info_source_and_location,
6294 print_frame_info_location_and_address, print_frame_info_short_location,
6295 print_frame_info_choices, print_frame_info_print_what): New definitions.
6296 (print_frame_args): Only print dots for args if print frame-arguments
6297 is 'presence'.
6298 (frame_print_option_defs): New element for "frame-info".
6299 (get_user_print_what_frame_info): New function.
6300 (frame_show_address): Make non static. Move comment to stack.h.
6301 (print_frame_info_to_print_what): New function.
6302 (print_frame_info): Update comment. Use fp_opts.print_frame_info
6303 to decide what to print.
6304 (backtrace_command_1): Handle the new print_frame_arguments_presence
6305 value.
6306 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
6307 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
6308 (py_print_frame): In non-mi mode, use LOCATION as default for
6309 print_what, similarly to frame information printed directly by
6310 backtrace command. Handle frame-info user option in non MI mode.
6311
6bdfee81
KB
63122019-07-27 Kevin Buettner <kevinb@redhat.com>
6313
6314 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
6315 Add case for debugging 32-bit target on 64-bit host. Revise
6316 comment.
6317
98a617f8
KB
63182019-07-27 Kevin Buettner <kevinb@redhat.com>
6319
6320 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
6321 instead of find_function_entry_range_from_pc.
6322
567238c9
KB
63232019-07-27 Kevin Buettner <kevinb@redhat.com>
6324
6325 * stack.c (find_frame_funname): Remove code which preferred
6326 minsym over symtab sym in "certain pathological cases".
6327
2dc80cf8
KB
6328 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
6329 parameter. Change type of "do_demangle" to bool.
6330 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
6331 Pass suitable "prefer_sym_over_minsym" flag to
6332 build_address_symbolic(). Don't output "+" for negative offsets.
6333 * printcmd.c (print_address_symbolic): Update invocation of
6334 build_address_symbolic to include a "prefer_sym_over_minsym"
6335 flag.
6336 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
6337 Restrict cases in which use of minimal symbol is preferred to that
6338 of a found symbol. Update comments.
6339
1aff7173
KB
6340 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
6341 for entry pc when entry pc is out of range for that FDE.
6342
89b085ac
BC
63432019-07-26 Brian Callahan <bcallah@openbsd.org>
6344
6345 PR gdb/24839:
6346 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
6347 type.
6348
f32feb4a
CB
63492019-07-25 Christian Biesinger <cbiesinger@google.com>
6350
6351 * python/py-objfile.c (add_separate_debug_file): Fix comment about
6352 this function's Python signature.
6353
6354
63552019-07-24 Christian Biesinger <cbiesinger@google.com>
442853af
CB
6356
6357 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
6358 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
6359 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
6360 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
6361 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
6362
6363
c54e4253
YS
63642019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
6365
6366 * h8300-tdep.c (h8300_register_name_common): New.
6367 h8300_register_name): Use h8300_register_name_common.
6368 (h8300s_register_name): Likewise.
6369 (h8300sx_register_name): Likewise.
6370 (h8300h_register_nam): New.
6371 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
6372
6373
40eadf04
SP
63742019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
6375
6376 * arm-tdep.c (arm_skip_cmse_entry): New function.
6377 (arm_is_sgstubs_section): New function.
6378 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
6379
bfa2a36d
TT
63802019-07-22 Tom Tromey <tom@tromey.com>
6381
6382 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
6383 Don't self-assign.
6384
a8e9d247
AB
63852019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
6386
6387 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
6388 type_print.
6389
eb86c5e2
AB
63902019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
6391
6392 * symtab.c (search_symbols): Adjust msymbol matching type arrays
6393 so that GDB doesn't match any msymbols when searching in the
6394 TYPES_DOMAIN.
6395 (print_symbol_info): Print using typedef_print or type_print based
6396 on the type of the symbol. Add updated FIXME comment moved from...
6397 (_initialize_symtab): ... move and update FIXME comment to above.
6398
a8eab7c6
AB
63992019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
6400
6401 * NEWS: Mention adding -q option to "info types".
6402 * symtab.c (struct info_types_options): New struct.
6403 (info_types_options_defs): New variable.
6404 (make_info_types_options_def_group): New function.
6405 (info_types_command): Use gdb::option framework to parse options.
6406 (info_types_command_completer): New function.
6407 (_initialize_symtab): Extend the help text on "info types" and
6408 register command completer.
6409
b4603c34
CB
64102019-07-21 Christian Biesinger <cbiesinger@google.com>
6411
6412 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
6413 (lookup_symbol_in_objfile): Change int to block_enum and add a
6414 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
6415
c8cdc1e0
CB
64162019-07-20 Christian Biesinger <cbiesinger@google.com>
6417
6418 * MAINTAINERS (Write After Approval): Add self.
6419
01e175fe
AB
64202019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
6421
6422 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
6423 instruction to the dummy code region.
6424
56f79b63
TT
64252019-07-19 Tom Tromey <tromey@adacore.com>
6426
6427 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
6428 (ARGSUSED, PARAMS, __func__): Remove rules.
6429
4c5aa8e0
AH
64302019-07-19 Alan Hayward <alan.hayward@arm.com>
6431
6432 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
6433 * features/arm/arm-with-iwmmxt.c: Remove.
6434 * features/arm/arm-with-iwmmxt.xml: Remove.
6435 * features/arm/arm-with-m-fpa-layout.c: Remove.
6436 * features/arm/arm-with-m-fpa-layout.xml: Remove.
6437 * features/arm/arm-with-m-vfp-d16.c: Remove.
6438 * features/arm/arm-with-m-vfp-d16.xml: Remove.
6439 * features/arm/arm-with-m.c: Remove.
6440 * features/arm/arm-with-m.xml: Remove.
6441 * features/arm/arm-with-neon.c: Remove.
6442 * features/arm/arm-with-neon.xml: Remove.
6443 * features/arm/arm-with-vfpv2.c: Remove.
6444 * features/arm/arm-with-vfpv2.xml: Remove.
6445 * features/arm/arm-with-vfpv3.c: Remove.
6446 * features/arm/arm-with-vfpv3.xml: Remove.
6447
f42b2617
AH
64482019-07-19 Alan Hayward <alan.hayward@arm.com>
6449
6450 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
6451
f29ec966
AH
64522019-07-19 Alan Hayward <alan.hayward@arm.com>
6453
6454 * arch/aarch32.c (aarch32_create_target_description): Create
6455 target descriptions using features.
6456 * arch/arm.c (arm_create_target_description)
6457 (arm_create_mprofile_target_description): Likewise.
6458 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
6459
d105cce5
AH
64602019-07-19 Alan Hayward <alan.hayward@arm.com>
6461
6462 * Makefile.in: Add new files.
6463 * aarch32-tdep.c: New file.
6464 * aarch32-tdep.h: New file.
6465 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
6466 Call aarch32_read_description.
6467 * arch/aarch32.c: New file.
6468 * arch/aarch32.h: New file.
6469 * arch/arm.c (arm_create_target_description)
6470 (arm_create_mprofile_target_description): New function.
6471 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
6472 (arm_create_target_description)
6473 (arm_create_mprofile_target_description): New declaration.
6474 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
6475 read_description functions.
6476 * arm-linux-nat.c (arm_linux_nat_target::read_description):
6477 Likewise.
6478 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
6479 * arm-tdep.c (tdesc_arm_list): New variable.
6480 (arm_register_g_packet_guesses): Call create description functions.
6481 (arm_read_description) (arm_read_mprofile_description): New
6482 function.
6483 * arm-tdep.h (arm_read_description)
6484 (arm_read_mprofile_description): Add declaration.
6485 * configure.tgt: Add new files.
6486
afe09f0b
GL
64872019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
6488
6489 * top.c (new_ui_command): Open specified terminal just once.
6490
cd215b2e
TT
64912019-07-18 Tom Tromey <tromey@adacore.com>
6492
6493 * symtab.c (main_name): Constify return type.
6494 * symfile.c (set_initial_language): Update.
6495 * symtab.h (main_name): Constify return type.
6496
d8f68fcb
TT
64972019-07-17 Tom Tromey <tom@tromey.com>
6498
6499 * tui/tui-winsource.c (tui_update_source_window)
6500 (tui_update_source_window_as_is)
6501 (tui_update_source_windows_with_line): Remove return.
6502 * tui/tui-disasm.c (tui_show_disassem)
6503 (tui_show_disassem_and_update_source): Remove return.
6504 * tui/tui.c (tui_reset): Remove return.
6505 * tui/tui-wingeneral.c
6506 (tui_check_and_display_highlight_if_needed): Remove return.
6507
ca5af91e
TT
65082019-07-17 Tom Tromey <tom@tromey.com>
6509
6510 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
6511
5104fe36
TT
65122019-07-17 Tom Tromey <tom@tromey.com>
6513
6514 * tui/tui-winsource.h (struct tui_exec_info_window)
6515 (struct tui_source_window_base): Move from tui-data.h.
6516 * tui/tui-winsource.c: Move many method definitions from
6517 elsewhere. Remove "structuring" comments.
6518 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
6519 (tui_source_window_base::refresh_window): Move to
6520 tui-winsource.c.
6521 * tui/tui-win.c (tui_source_window_base::refresh_all)
6522 (tui_source_window_base::update_tab_width)
6523 (tui_source_window_base::set_new_height)
6524 (tui_source_window_base::do_make_visible_with_new_height): Move to
6525 tui-winsource.c.
6526 * tui/tui-source.h: Update.
6527 * tui/tui-source.c (tui_source_window_base::reset): Move to
6528 tui-winsource.c.
6529 * tui/tui-disasm.h: Update.
6530 * tui/tui-data.h (struct tui_exec_info_window): Move to
6531 tui-winsource.h.
6532 (struct tui_source_window_base): Likewise.
6533 * tui/tui-data.c (tui_source_window_base::clear_detail)
6534 (tui_source_window_base, ~tui_source_window_base): Move to
6535 tui-winsource.c.
6536
daa15dde
TT
65372019-07-17 Tom Tromey <tom@tromey.com>
6538
6539 * tui/tui-win.c (tui_resize_all)
6540 (tui_source_window_base::update_tab_width)
6541 (tui_adjust_win_heights): Update.
6542 (tui_win_info::make_invisible_and_set_new_height): Rename from
6543 make_invisible_and_set_new_height.
6544 * tui/tui-data.h (struct tui_win_info)
6545 <make_invisible_and_set_new_height>: New method.
6546
bfad4537
TT
65472019-07-17 Tom Tromey <tom@tromey.com>
6548
6549 * tui/tui.c: Update.
6550 * tui/tui-source.h (struct tui_source_window): Move from
6551 tui-data.h.
6552 * tui/tui-layout.c: Update.
6553 * tui/tui-disasm.c: Update.
6554 * tui/tui-data.h (struct tui_source_window): Move to
6555 tui-source.h.
6556
88f7e873
TT
65572019-07-17 Tom Tromey <tom@tromey.com>
6558
6559 * tui/tui-disasm.h (struct tui_disasm_window): Move from
6560 tui-data.h.
6561 * tui/tui-data.h (struct tui_disasm_window): Move to
6562 tui-disasm.h.
6563
96bd6233
TT
65642019-07-17 Tom Tromey <tom@tromey.com>
6565
6566 * tui/tui-regs.h (struct tui_data_item_window): Move from
6567 tui-data.h.
6568 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
6569 * tui/tui-data.h (struct tui_data_item_window): Move to
6570 tui-regs.h.
6571 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
6572
ce38393b
TT
65732019-07-17 Tom Tromey <tom@tromey.com>
6574
6575 * tui/tui.c: Update.
6576 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
6577 (tui_cmd_window::max_height): Move to tui-command.c.
6578 * tui/tui-layout.c: Update.
6579 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
6580 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
6581 tui-command.c.
6582 * tui/tui-command.h (struct tui_cmd_window): Move from
6583 tui-data.h.
6584 * tui/tui-command.c: Remove "structuring" comments.
6585 (tui_cmd_window::clear_detail)
6586 (tui_cmd_window::do_make_visible_with_new_height)
6587 (tui_cmd_window::max_height): Move from elsewhere.
6588
2d8b51cb
TT
65892019-07-17 Tom Tromey <tom@tromey.com>
6590
6591 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
6592 Now static.
6593 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
6594 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
6595
18ab23af
TT
65962019-07-17 Tom Tromey <tom@tromey.com>
6597
6598 * tui/tui.c: Update.
6599 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
6600 tui-regs.c.
6601 * tui/tui-windata.h: Remove file.
6602 * tui/tui-windata.c: Remove file.
6603 * tui/tui-win.c (tui_data_window::set_new_height)
6604 (tui_data_window::do_make_visible_with_new_height): Move to
6605 tui-regs.c.
6606 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
6607 * tui/tui-regs.c: Remove "structuring" comments.
6608 (tui_data_window::first_data_item_displayed)
6609 (tui_data_window::delete_data_content_windows)
6610 (tui_data_window::erase_data_content)
6611 (tui_data_window::display_all_data)
6612 (tui_data_window::refresh_all)
6613 (tui_data_window::do_scroll_vertical)
6614 (tui_data_window::clear_detail, tui_data_window::set_new_height)
6615 (tui_data_window::do_make_visible_with_new_height)
6616 (tui_data_window::refresh_window): Move from elsewhere.
6617 (_initialize_tui_regs): Move to end of file.
6618 * tui/tui-layout.c: Update.
6619 * tui/tui-hooks.c: Update.
6620 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
6621 * tui/tui-data.c (tui_data_window::clear_detail): Move to
6622 tui-regs.c.
6623 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
6624
88b7e7cc
TT
66252019-07-17 Tom Tromey <tom@tromey.com>
6626
6627 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
6628 seen.
6629
0fcd3711
TT
66302019-07-17 Tom Tromey <tom@tromey.com>
6631
6632 * tui/tui-win.c (tui_source_window_base::set_new_height)
6633 (tui_source_window_base::do_make_visible_with_new_height): Use
6634 m_has_locator field directly.
6635 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
6636 method.
6637 (struct tui_source_window_base) <has_locator>: Likewise.
6638
4a38112d
TT
66392019-07-17 Tom Tromey <tom@tromey.com>
6640
6641 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
6642 Don't declare.
6643 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
6644 Remove.
6645 * tui/tui-win.c (tui_source_window_base::set_new_height)
6646 (tui_source_window_base::set_new_height)
6647 (make_invisible_and_set_new_height)
6648 (tui_source_window_base::do_make_visible_with_new_height)
6649 (tui_source_window_base::do_make_visible_with_new_height):
6650 Update.
6651 * tui/tui-layout.c (show_source_disasm_command, show_data)
6652 (show_source_or_disasm_and_command): Update.
6653 * tui/tui-layout.c (show_layout): Update.
6654
09129226
TT
66552019-07-17 Tom Tromey <tom@tromey.com>
6656
6657 * tui/tui-layout.c (make_data_window): Remove.
6658 (show_data): Unify creation and re-initialization cases.
6659
4a8a5e84
TT
66602019-07-17 Tom Tromey <tom@tromey.com>
6661
6662 * tui/tui-layout.c (make_source_window, make_disasm_window):
6663 Remove.
6664 (show_data): Unify creation and re-initialization cases.
6665
76d2be8e
TT
66662019-07-17 Tom Tromey <tom@tromey.com>
6667
6668 * tui/tui-layout.c (make_command_window): Remove.
6669 (show_source_disasm_command, show_source_or_disasm_and_command):
6670 Unify creation and re-initialization cases.
6671
890b8bde
TT
66722019-07-17 Tom Tromey <tom@tromey.com>
6673
6674 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
6675 creation and re-initialization cases.
6676
2cdfa113
TT
66772019-07-17 Tom Tromey <tom@tromey.com>
6678
6679 * tui/tui-regs.c (tui_get_register): Return void.
6680
8e3cfd09
TT
66812019-07-17 Tom Tromey <tom@tromey.com>
6682
6683 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
6684 Simplify.
6685
f4e04977
TT
66862019-07-17 Tom Tromey <tom@tromey.com>
6687
6688 * tui/tui-layout.c (show_source_disasm_command): Simplify window
6689 resetting.
6690
0379b883
TT
66912019-07-17 Tom Tromey <tom@tromey.com>
6692
6693 * tui/tui.h (tui_set_layout_by_name): Don't declare.
6694 * tui/tui-regs.c (tui_reg_layout): New function.
6695 (tui_show_registers, tui_reg_command): Use it.
6696 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
6697 (tui_layout_command): Rename from tui_set_layout_by_name. Change
6698 parameters.
6699 (tui_layout_command): Remove.
6700
b7fbad91
TT
67012019-07-17 Tom Tromey <tom@tromey.com>
6702
6703 * tui/tui-layout.h (tui/tui-layout): Return void.
6704 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
6705
4e1e56b9
TT
67062019-07-17 Tom Tromey <tom@tromey.com>
6707
6708 * tui/tui-layout.c (show_source_disasm_command, show_data):
6709 Update.
6710 (reset_locator): Remove.
6711 (show_source_or_disasm_and_command): Update.
6712
1e0c09ba
TT
67132019-07-17 Tom Tromey <tom@tromey.com>
6714
6715 * tui/tui-source.c (tui_source_window_base::reset): Remove
6716 win_type parameter.
6717 * tui/tui-layout.c (make_command_window, make_source_window)
6718 (make_disasm_window, make_data_window)
6719 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
6720 (reset_locator, show_source_or_disasm_and_command): Update.
6721 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
6722 win_type parameter.
6723 (struct tui_source_window_base) <reset>: Likewise.
6724
1bf605de
TT
67252019-07-17 Tom Tromey <tom@tromey.com>
6726
6727 * tui/tui-layout.c (show_source_disasm_command): Use
6728 reset_locator.
6729 (reset_locator): New function.
6730 (init_and_make_win): Remove.
6731 (show_source_or_disasm_and_command): Use reset_locator.
6732
098f9ed4
TT
67332019-07-17 Tom Tromey <tom@tromey.com>
6734
6735 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
6736 condition.
6737 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
6738 Remove condition.
6739 * tui/tui-source.c (tui_source_window_base::reset): New method.
6740 * tui/tui-layout.c (make_command_window): Don't call
6741 init_and_make_win.
6742 (make_source_window, make_disasm_window): Don't call
6743 make_source_or_disasm_window.
6744 (make_data_window): Don't call init_and_make_win. Change calling
6745 convention.
6746 (show_source_disasm_command, show_data): Simplify.
6747 (make_source_or_disasm_window): Remove.
6748 (show_source_or_disasm_and_command): Simplify.
6749 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
6750 (struct tui_source_window_base) <reset>: Likewise.
6751 <execution_info>: Remove initializer.
6752 * tui/tui-data.c (tui_source_window_base): Initialize
6753 execution_info.
6754
80110957
TT
67552019-07-17 Tom Tromey <tom@tromey.com>
6756
6757 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
6758 variable.
6759
cf82af05
TT
67602019-07-17 Tom Tromey <tom@tromey.com>
6761
6762 * tui/tui.c (tui_rl_other_window): Update.
6763 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
6764 superclass method first. Always iterate over regs_content.
6765 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
6766 method.
6767 * tui/tui-win.c (tui_set_focus_command): Update.
6768
01aeb396
TT
67692019-07-17 Tom Tromey <tom@tromey.com>
6770
6771 * tui/tui-win.c (tui_set_focus_command): Rename from
6772 tui_set_focus. Call tui_enable.
6773 (tui_set_focus_command): Remove.
6774
fd6c75ee
TT
67752019-07-17 Tom Tromey <tom@tromey.com>
6776
6777 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
6778 refresh_window.
6779 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
6780 touchwin.
6781 (tui_data_window::refresh_window): Call refresh_window on data
6782 items. Always call superclass refresh_window.
6783 (tui_win_info::refresh): Remove.
6784 (tui_source_window_base::refresh_window): Update.
6785 (tui_refresh_all): Update.
6786 * tui/tui-layout.c (show_source_disasm_command): Remove call to
6787 refresh_window.
6788 (show_source_or_disasm_and_command): Likewise.
6789 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
6790 (struct tui_source_window_base) <refresh>: Likewise.
6791
f6cc34a9
TT
67922019-07-17 Tom Tromey <tom@tromey.com>
6793
6794 * tui/tui-winsource.c (tui_clear_source_content)
6795 (tui_show_source_content): Update.
6796 * tui/tui-source.c (tui_source_window::showing_source_p): Check
6797 whether content is empty.
6798 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
6799 Remove.
6800
f31ec9af
TT
68012019-07-17 Tom Tromey <tom@tromey.com>
6802
6803 * tui/tui-winsource.c (tui_erase_source_content): Clear the
6804 window's contents.
6805 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
6806 * tui/tui-source.c (tui_set_source_content_nil): Remove.
6807
d1b6f1e5
TT
68082019-07-17 Tom Tromey <tom@tromey.com>
6809
6810 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
6811 (struct tui_data_item_window): Update.
6812
d9743a13
TT
68132019-07-17 Tom Tromey <tom@tromey.com>
6814
6815 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
6816 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
6817 defines.
6818
caf0bc4e
TT
68192019-07-17 Tom Tromey <tom@tromey.com>
6820
6821 * tui/tui-winsource.h (tui_erase_source_content)
6822 (tui_clear_source_content): Remove "display_prompt" parameter.
6823 * tui/tui-winsource.c (tui_update_source_window_as_is)
6824 (tui_update_source_windows_with_addr): Update.
6825 (tui_clear_source_content): Remove "display_prompt" parameter.
6826 (tui_erase_source_content): Likewise. Simplify.
6827 (tui_show_source_content): Update.
6828 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
6829 * tui/tui-stack.c (tui_show_frame_info): Update.
6830 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
6831 Remove defines.
6832
9d391078
TT
68332019-07-17 Tom Tromey <tom@tromey.com>
6834
6835 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
6836 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
6837 parameter.
6838 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
6839 parameter.
6840
a38da35d
TT
68412019-07-17 Tom Tromey <tom@tromey.com>
6842
6843 * tui/tui-winsource.c (tui_clear_source_content)
6844 (tui_show_source_content, tui_show_exec_info_content)
6845 (tui_clear_exec_info_content): Update.
6846 * tui/tui-stack.c (tui_show_locator_content): Update.
6847 (tui_show_frame_info): Update.
6848 * tui/tui-source.h (tui_source_window): Don't declare.
6849 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
6850 from tui_source_is_displayed.
6851 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
6852 Remove field.
6853 (struct tui_source_window_base) <content_in_use>: New field. Now
6854 bool.
6855 (struct tui_source_window) <showing_source_p>: New method.
6856 (TUI_SRC_WIN): Change cast.
6857 * tui/tui-data.c (tui_initialize_static_data): Update.
6858
c2cd8994
TT
68592019-07-17 Tom Tromey <tom@tromey.com>
6860
6861 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
6862 location_matches_p.
6863 * tui/tui-source.c (tui_source_window::location_matches_p): New
6864 method.
6865 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
6866 method.
6867 * tui/tui-data.h (struct tui_source_window_base)
6868 <location_matches_p>: New method.
6869 (struct tui_source_window, struct tui_disasm_window)
6870 <location_matches_p>: Likewise.
6871
4dde7b34
TT
68722019-07-17 Tom Tromey <tom@tromey.com>
6873
6874 * tui/tui-win.c (tui_set_win_height_command): Rename from
6875 tui_set_win_height.
6876 (tui_set_win_height_command): Remove.
6877
b73dd877
TT
68782019-07-17 Tom Tromey <tom@tromey.com>
6879
6880 * tui/tui-source.c (tui_source_window): New constructor. Add
6881 observer.
6882 (~tui_source_window): New destructor.
6883 (tui_source_window::style_changed): New method.
6884 * tui/tui-hooks.c (tui_redisplay_source): Remove.
6885 (tui_attach_detach_observers): Update.
6886 * tui/tui-data.h (struct tui_source_window): Make constructor not
6887 inline. Add destructor.
6888 (struct tui_source_window) <style_changed>: New method.
6889 <m_observable>: New member.
6890
ae2b5380
TT
68912019-07-17 Tom Tromey <tom@tromey.com>
6892
6893 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
6894 * tui/tui-win.c (tui_resize_all): Fix typo.
6895
1ce3e844
TT
68962019-07-17 Tom Tromey <tom@tromey.com>
6897
6898 * tui/tui-wingeneral.h (tui_refresh_all): Update.
6899 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
6900 (tui_refresh_all): Remove "list" parameter. Use foreach.
6901 * tui/tui-win.c (window_name_completer): Use foreach.
6902 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
6903 (update_tab_width): Likewise.
6904 * tui/tui-layout.c (show_layout): Update.
6905 * tui/tui-data.h (class tui_window_iterator): New.
6906 (struct all_tui_windows): New.
6907 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
6908
fe3eaf1c
TT
69092019-07-17 Tom Tromey <tom@tromey.com>
6910
6911 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
6912 parameter. Don't reference globals.
6913 (tui_reg_command): Update.
6914
368c1354
TT
69152019-07-17 Tom Tromey <tom@tromey.com>
6916
6917 * tui/tui-regs.c (tui_show_registers): Simplify.
6918
e80cd204
TT
69192019-07-17 Tom Tromey <tom@tromey.com>
6920
6921 * tui/tui-regs.c (tui_show_registers): Update.
6922 (tui_show_register_group): Add win_info parameter.
6923
aca2dd16
TT
69242019-07-17 Tom Tromey <tom@tromey.com>
6925
6926 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
6927 Rename from tui_display_reg_element_at_line.
6928 (tui_data_window::display_registers_from_line): Update.
6929 * tui/tui-data.h (struct tui_data_window)
6930 <display_reg_element_at_line>: New method.
6931
517e9505
TT
69322019-07-17 Tom Tromey <tom@tromey.com>
6933
6934 * tui/tui-regs.h (tui_display_registers_from)
6935 (tui_display_registers_from_line): Don't declare.
6936 * tui/tui-windata.c (tui_data_window::display_all_data)
6937 (tui_data_window::refresh_all)
6938 (tui_data_window::do_scroll_vertical): Update.
6939 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
6940 from tui_display_registers_from.
6941 (tui_display_reg_element_at_line): Update.
6942 (tui_data_window::display_registers_from_line): Rename from
6943 tui_display_registers_from_line.
6944 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
6945 display_registers_from_line>: New methods.
6946
f76d8b19
TT
69472019-07-17 Tom Tromey <tom@tromey.com>
6948
6949 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
6950 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
6951 from tui_erase_data_content.
6952 (tui_data_window::display_all_data)
6953 (tui_data_window::refresh_all)
6954 (tui_data_window::do_scroll_vertical): Update.
6955 * tui/tui-regs.c (tui_show_registers): Update.
6956 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
6957 New method.
6958
b4094625
TT
69592019-07-17 Tom Tromey <tom@tromey.com>
6960
6961 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
6962 declare.
6963 * tui/tui-windata.c
6964 (tui_data_window::delete_data_content_windows): Rename from
6965 tui_delete_data_content_windows.
6966 (tui_data_window::display_all_data)
6967 (tui_data_window::do_scroll_vertical): Update.
6968 * tui/tui-data.h (struct tui_data_window)
6969 <delete_data_content_windows>: New method.
6970
c223a729
TT
69712019-07-17 Tom Tromey <tom@tromey.com>
6972
6973 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
6974 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
6975
50daf268
TT
69762019-07-17 Tom Tromey <tom@tromey.com>
6977
6978 * tui/tui-windata.h (tui_display_all_data): Don't declare.
6979 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
6980 from tui_display_all_data.
6981 * tui/tui-win.c
6982 (tui_data_window::do_make_visible_with_new_height): Update.
6983 * tui/tui-regs.c (tui_show_registers): Update.
6984 * tui/tui-layout.c (tui_set_layout): Update.
6985 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
6986 method.
6987
df5f8cab
TT
69882019-07-17 Tom Tromey <tom@tromey.com>
6989
6990 * tui/tui-windata.h (tui_display_data_from): Don't declare.
6991 * tui/tui-windata.c (tui_display_data_from): Remove.
6992 (tui_data_window::refresh_all): Update.
6993
80cb6c27
TT
69942019-07-17 Tom Tromey <tom@tromey.com>
6995
6996 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
6997 * tui/tui-windata.c (tui_display_data_from_line): Remove.
6998 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
6999 tui_display_registers_from_line.
7000 * tui/tui-regs.h (tui_display_registers_from_line): Update.
7001 * tui/tui-regs.c (tui_display_registers_from_line): Remove
7002 "force_display" parameter.
7003
baff0c28
TT
70042019-07-17 Tom Tromey <tom@tromey.com>
7005
7006 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
7007 declare.
7008 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
7009 Rename from tui_first_reg_element_no_inline.
7010 (tui_display_reg_element_at_line)
7011 (tui_display_registers_from_line): Update.
7012 * tui/tui-data.h (struct tui_data_window)
7013 <first_reg_element_no_inline>: New method.
7014
3b23c5f2
TT
70152019-07-17 Tom Tromey <tom@tromey.com>
7016
7017 * tui/tui-windata.c (tui_display_data_from)
7018 (tui_data_window::do_scroll_vertical): Update.
7019 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
7020 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
7021 Rename from tui_line_from_reg_element_no.
7022 (tui_display_registers_from_line): Update.
7023 * tui/tui-data.h (struct tui_data_window)
7024 <line_from_reg_element_no>: New method.
7025
0b5ec218
TT
70262019-07-17 Tom Tromey <tom@tromey.com>
7027
7028 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
7029 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
7030 tui_last_regs_line_no.
7031 (tui_display_reg_element_at_line)
7032 (tui_display_registers_from_line): Update.
7033 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
7034 method.
7035
0807ab7b
TT
70362019-07-17 Tom Tromey <tom@tromey.com>
7037
7038 PR tui/24722:
7039 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
7040 (tui_update_breakpoint_info): Add "being_deleted" parameter.
7041 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
7042 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
7043 (tui_update_breakpoint_info): Likewise.
7044 * tui/tui-hooks.c (tui_event_create_breakpoint)
7045 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
7046 Update.
7047
9ad7fdef
TT
70482019-07-17 Tom Tromey <tom@tromey.com>
7049
7050 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
7051
5813316f
TT
70522019-07-17 Tom Tromey <tom@tromey.com>
7053
7054 * tui/tui-winsource.c (tui_update_source_window_as_is)
7055 (tui_update_source_windows_with_addr): Update.
7056 * tui/tui-source.h (tui_set_source_content)
7057 (tui_show_symtab_source): Add "win_info" parameter.
7058 * tui/tui-source.c (tui_set_source_content): Add "win_info"
7059 parameter.
7060 (tui_show_symtab_source): Likewise.
7061
00e264e7
TT
70622019-07-17 Tom Tromey <tom@tromey.com>
7063
7064 * tui/tui-wingeneral.c
7065 (tui_check_and_display_highlight_if_needed): Check can_highlight.
7066
06210ce4
TT
70672019-07-17 Tom Tromey <tom@tromey.com>
7068
7069 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
7070 (struct tui_cmd_window) <can_scroll>: New method.
7071 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
7072 method.
7073
381befee
TT
70742019-07-17 Tom Tromey <tromey@adacore.com>
7075
7076 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
7077 do_field_signed>: Rename. Change type of "value".
7078 * ui-out.c (ui_out::field_signed): Rename from field_int.
7079 Change type of "value".
7080 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
7081 type of "value".
7082 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
7083 do_field_int. Change type of "value".
7084 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
7085 do_field_int. Change type of "value".
7086 * tracepoint.c (trace_status_mi, tfind_1)
7087 (print_one_static_tracepoint_marker): Update.
7088 * thread.c (print_thread_info_1, print_selected_thread_frame):
7089 Update.
7090 * stack.c (print_frame, print_frame_info): Update.
7091 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
7092 Update.
7093 * source.c (print_source_lines_base): Update.
7094 * skip.c (info_skip_command): Update.
7095 * record-btrace.c (btrace_ui_out_decode_error)
7096 (btrace_call_history_src_line): Update.
7097 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
7098 Update.
7099 * progspace.c (print_program_space): Update.
7100 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
7101 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
7102 do_field_int. Change type of "value".
7103 * mi/mi-out.c (mi_ui_out::do_table_begin)
7104 (mi_ui_out::do_table_header): Update.
7105 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
7106 type of "value".
7107 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
7108 (mi_cmd_data_list_changed_registers, output_register)
7109 (mi_cmd_data_read_memory, mi_load_progress)
7110 (mi_cmd_trace_frame_collected): Update.
7111 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
7112 Update.
7113 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
7114 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
7115 (mi_cmd_var_list_children, varobj_update_one): Update.
7116 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
7117 (mi_cmd_stack_list_args, list_arg_or_local): Update.
7118 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
7119 * inferior.c (print_inferior): Update.
7120 * gdb_bfd.c (print_one_bfd): Update.
7121 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
7122 Update.
7123 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
7124 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
7125 do_field_int. Change type of "value".
7126 * cli-out.c (cli_ui_out::do_field_signed): Rename from
7127 do_field_int. Change type of "value".
7128 * breakpoint.c (watchpoint_check, print_breakpoint_location)
7129 (print_one_breakpoint_location, print_it_catch_fork)
7130 (print_one_catch_fork, print_it_catch_vfork)
7131 (print_one_catch_vfork, print_it_catch_solib)
7132 (print_it_catch_exec, print_it_ranged_breakpoint)
7133 (print_mention_watchpoint, print_mention_masked_watchpoint)
7134 (bkpt_print_it, update_static_tracepoint): Update.
7135 * break-catch-throw.c (print_it_exception_catchpoint): Update.
7136 * break-catch-syscall.c (print_it_catch_syscall): Update.
7137 * ada-tasks.c (print_ada_task_info): Update.
7138 * ada-lang.c (print_it_exception, print_mention_exception):
7139 Update.
7140
6b78c3f8
AB
71412019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
7142
7143 PR breakpoints/24541
7144 * gdbarch.c: Regenerate.
7145 * gdbarch.h: Regenerate.
7146 * gdbarch.sh: Adjust return type and parameter types for
7147 'stap_adjust_register'.
7148 (i386_stap_adjust_register): Adjust signature and return new
7149 register name.
7150 * stap-probe.c (stap_parse_register_operand): Adjust use of
7151 'gdbarch_stap_adjust_register'.
7152
d72a9b85
TT
71532019-07-17 Tom Tromey <tromey@adacore.com>
7154
7155 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
7156 declare VEC.
7157 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
7158 std::vector.
7159 (struct s390_process_info): Add initializers.
7160 (s390_add_process): Use new.
7161 (s390_linux_nat_target::low_forget_process): Use delete.
7162 (s390_linux_nat_target::low_new_fork)
7163 (s390_linux_nat_target::stopped_by_watchpoint)
7164 (s390_linux_nat_target::low_prepare_to_resume)
7165 (s390_linux_nat_target::insert_watchpoint)
7166 (s390_linux_nat_target::insert_hw_breakpoint)
7167 (s390_linux_nat_target::remove_watchpoint)
7168 (s390_linux_nat_target::remove_hw_breakpoint): Update.
7169
206e6c58
JB
71702019-07-16 John Baldwin <jhb@FreeBSD.org>
7171
7172 * aarch64-fbsd-nat.c: Include regcache.h.
7173 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
7174 argument.
7175 (aarch64_fbsd_nat_target::fetch_registers)
7176 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
7177 variable.
7178 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
7179
cbde90f2
JB
71802019-07-16 John Baldwin <jhb@FreeBSD.org>
7181
7182 * fbsd-nat.c: Include gdbarch.h.
7183
07128006
TT
71842019-07-15 Tom Tromey <tromey@adacore.com>
7185
7186 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
7187
1f77b012
TT
71882019-07-15 Tom Tromey <tromey@adacore.com>
7189
7190 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
7191 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
7192 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
7193 * cli-out.c (cli_ui_out::do_field_int): New method.
7194 * ui-out.c (ui_out::field_unsigned): New method.
7195 * symfile.c (generic_load): Use field_unsigned.
7196 (print_transfer_performance): Likewise.
7197 * record-btrace.c (ui_out_field_uint): Remove.
7198 (btrace_call_history_insn_range, btrace_call_history): Use
7199 field_unsigned.
7200 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
7201 field_unsigned.
7202 * ui-out.h (class ui_out) <field_unsigned>: New method.
7203 <do_field_unsigned>: Likewise.
7204
33eca680
TT
72052019-07-15 Tom Tromey <tromey@adacore.com>
7206
7207 * mi/mi-main.c (list_available_thread_groups): Use field_string.
7208 * mi/mi-interp.c (mi_memory_changed): Use field_string.
7209 * target.c (flash_erase_command): Use field_string.
7210 * infrun.c (print_signal_received_reason): Use field_string.
7211 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
7212 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
7213 field_string.
7214 * ada-tasks.c (print_ada_task_info): Use field_string.
7215
ca8d69be
TT
72162019-07-15 Tom Tromey <tromey@adacore.com>
7217
7218 * target.c (flash_erase_command): Use field_core_addr.
7219 * symfile.c (generic_load): Use field_core_addr.
7220 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
7221 Use field_core_addr.
7222 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
7223 field_core_addr.
7224
0d4e84ed
AB
72252019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
7226
7227 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
7228 value if its desired type is smaller than a CORE_ADDR and signed.
7229
9a49df9d
AB
72302019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
7231
7232 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
7233 of changes to field names, and use new is_reference field to
7234 decide if a property is a reference or not.
7235 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
7236 field.
7237 (struct dwarf2_property_baton): Update header comment, rename
7238 'referenced_type' to 'property_type' and update comments.
7239 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
7240 default property type, store in property baton, update to take
7241 accound of renamed field.
7242 (read_func_scope): Update call to attr_to_dynamic_prop.
7243 (read_array_type): Likewise.
7244 (dwarf2_per_cu_addr_sized_int_type): New function.
7245 (read_subrange_index_type): Move type finding code to
7246 dwarf2_per_cu_addr_sized_int_type.
7247 (read_subrange_type): Update calls to attr_to_dynamic_prop.
7248 (dwarf2_per_cu_addr_type): New function.
7249 (set_die_type): Update calls to attr_to_dynamic_prop.
7250
b86352cf
AB
72512019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
7252
7253 * dwarf2read.c (read_subrange_index_type): New function.
7254 (read_subrange_type): Move code into new function and call it.
7255 * gdbtypes.c (create_range_type): Add some asserts.
7256
603490bf
AB
72572019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
7258
7259 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
7260 update return statements.
7261 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
7262 declaration, and update comment to match.
7263 * gdbtypes.c (resolve_dynamic_array): Update call to
7264 dwarf2_evaluate_property to match new return type.
7265
592f9d27
AB
72662019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
7267
7268 * valarith.c (value_subscripted_rvalue): Change lowerbound
7269 parameter type from int to LONGEST.
7270 * value.h (value_subscripted_rvalue): Likewise in declaration.
7271
60cfcb20
AB
72722019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
7273
7274 * cli/cli-utils.c (info_print_command_completer): New function.
7275 * cli/cli-utils.h: Add 'completer.h' include, and forward
7276 declaration for 'struct cmd_list_element'.
7277 (info_print_command_completer): Declare.
7278 * stack.c (_initialize_stack): Add completer for 'info locals' and
7279 'info args'.
7280 * symtab.c (_initialize_symtab): Add completer for 'info
7281 variables' and 'info functions'.
7282 * NEWS: Mention completion for additional info commands.
7283
b16507e0
AB
72842019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
7285
7286 * cli/cli-utils.c (extract_info_print_args): Delete.
7287 (extract_arg_maybe_quoted): Delete.
7288 (info_print_options_defs): New variable.
7289 (make_info_print_options_def_group): New function.
7290 (extract_info_print_options): Define new function.
7291 * cli/cli-utils.h (extract_info_print_args): Delete.
7292 (struct info_print_options): New structure.
7293 (extract_info_print_options): Declare new function.
7294 * stack.c (info_locals_command): Update to use new
7295 extract_info_print_options, also add a header comment.
7296 (info_args_command): Likewise.
7297 * symtab.c (info_variables_command): Likewise.
7298 (info_functions_command): Likewise.
7299
021d8588
AB
73002019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
7301
7302 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
7303 to extract string arguments.
7304 * common/common-utils.c (extract_string_maybe_quoted): New function.
7305 * common/common-utils.h (extract_string_maybe_quoted): Declare.
7306
b777eb6d
TT
73072019-07-11 Tom Tromey <tromey@adacore.com>
7308
7309 * main.c (get_init_files): Use GDBINIT, not gdbinit.
7310 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
7311 * top.h (gdbinit): Don't declare.
7312 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
7313 into...
7314 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
7315 * top.c (gdb_init): Don't call init_cli_cmds.
7316 (gdbinit): Remove.
7317 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
7318
72ee03ff
TT
73192019-07-11 Tom Tromey <tromey@adacore.com>
7320
7321 * python/py-inferior.c (add_thread_object): Don't use thread_obj
7322 after it has been moved.
7323
00db9531
SM
73242019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
7325
7326 * valops.c (value_must_coerce_to_target): Change return type to
7327 bool.
7328 * value.h (value_must_coerce_to_target): Likewise.
7329
f2478a7e
SM
73302019-07-10 Simon Marchi <simon.marchi@efficios.com>
7331
7332 * breakpoint.c (is_hardware_watchpoint): Remove
7333 forward-declaration.
7334 (is_masked_watchpoint): Change return type to bool.
7335 (is_tracepoint): Likewise.
7336 (is_breakpoint): Likewise.
7337 (is_hardware_watchpoint): Likewise.
7338 (is_watchpoint): Likewise.
7339 (is_no_memory_software_watchpoint): Likewise.
7340 (is_catchpoint): Likewise.
7341 (breakpoint_1): Make FILTER parameter's return type bool.
7342 is_masked_watchpoint): Change return type to bool.
7343 (save_breakpoints): Make FILTER parameter's return type bool.
7344 * breakpoint.h (is_breakpoint): Change return type to bool.
7345 (is_watchpoint): Likewise.
7346 (is_catchpoint): Likewise.
7347 (is_tracepoint): Likewise.
7348
0d12e84c
TT
73492019-07-10 Tom Tromey <tom@tromey.com>
7350
7351 * defs.h: Don't include gdbarch.h.
7352 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
7353 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
7354 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
7355 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
7356 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
7357 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
7358 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
7359 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
7360 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
7361 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
7362 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
7363 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
7364 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
7365 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
7366 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
7367 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
7368 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
7369 record-btrace.c, record.h, regcache-dump.c, regcache.h,
7370 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
7371 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
7372 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
7373 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
7374 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
7375 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
7376 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
7377 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
7378 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
7379
f06f1252
TT
73802019-07-10 Tom Tromey <tromey@adacore.com>
7381
7382 * ada-lang.h (is_ada_exception_catchpoint): Declare.
7383 * breakpoint.c (init_ada_exception_breakpoint): Register as
7384 bp_catchpoint.
7385 (print_one_breakpoint_location, print_one_breakpoint): Use
7386 is_ada_exception_catchpoint.
7387 * ada-lang.c (class ada_catchpoint_location): Pass
7388 bp_loc_software_breakpoint to bp_location constructor.
7389 (is_ada_exception_catchpoint): New function.
7390
7a5d944b
TT
73912019-07-10 Tom Tromey <tromey@adacore.com>
7392
7393 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
7394 VEC.
7395 (struct arm_exidx_entry): New method operator<.
7396 (struct arm_exidx_data) <section_maps>: Change type.
7397 (arm_exidx_data_free): Remove.
7398 (arm_exidx_data_key): Change type. Move lower.
7399 (arm_exidx_new_objfile): Update.
7400 (arm_compare_exidx_entries): Remove.
7401 (arm_find_exidx_entry, _initialize_arm_tdep)
7402
48c66e1d
TT
74032019-07-10 Tom Tromey <tromey@adacore.com>
7404
7405 * solib-spu.c (ocl_program_data_key): Change type.
7406 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
7407 Update.
7408
a269fbf1
TT
74092019-07-10 Tom Tromey <tromey@adacore.com>
7410
7411 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
7412 (struct solib_aix_inferior_data) <library_list>: Change type.
7413 (solib_aix_inferior_data_handle): Change type.
7414 (get_solib_aix_inferior_data): Update.
7415 (solib_aix_free_library_list): Remove.
7416 (library_list_start_library): Update.
7417 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
7418 return type.
7419 (solib_aix_get_library_list)
7420 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
7421 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
7422
c294730c
TT
74232019-07-10 Tom Tromey <tromey@adacore.com>
7424
7425 * solib-dsbt.c (struct dsbt_info): Add initializers.
7426 (solib_dsbt_pspace_data): Change type.
7427 (dsbt_pspace_data_cleanup): Remove.
7428 (get_dsbt_info, _initialize_dsbt_solib): Update.
7429
9d52077d
TT
74302019-07-10 Tom Tromey <tromey@adacore.com>
7431
7432 * spu-tdep.c (spu_overlay_data): Change type.
7433 (spu_get_overlay_table, spu_overlay_new_objfile)
7434 (_initialize_spu_tdep): Update.
7435
22a20dca
TT
74362019-07-10 Tom Tromey <tromey@adacore.com>
7437
7438 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
7439 destructor.
7440 (dbx_objfile_data_key): Change type and declare later.
7441 (DBX_SYMFILE_INFO): Rewrite.
7442 * dbxread.c (dbx_objfile_data_key): Change type.
7443 (dbx_symfile_init): Update.
7444 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
7445 (coffstab_build_psymtabs, elfstab_build_psymtabs)
7446 (stabsect_build_psymtabs, _initialize_dbxread): Update.
7447
cb60f420
TT
74482019-07-10 Tom Tromey <tromey@adacore.com>
7449
7450 * jit.c (jit_program_space_key): Change type. Move lower.
7451 (get_jit_program_space_data): Update.
7452 (jit_program_space_data_cleanup): Remove.
7453 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
7454 Update.
7455 (struct jit_program_space_data): Add initializers.
7456
51df2ae3
TT
74572019-07-10 Tom Tromey <tromey@adacore.com>
7458
7459 * solib-darwin.c (struct darwin_info): Add initializers.
7460 (solib_darwin_pspace_data): Change type.
7461 (darwin_pspace_data_cleanup): Remove.
7462 (get_darwin_info, _initialize_darwin_solib): Update.
7463
18101a35
TT
74642019-07-10 Tom Tromey <tromey@adacore.com>
7465
7466 * remote-sim.c (struct sim_inferior_data): Add initializers,
7467 constructor, and destructor.
7468 (sim_inferior_data_key): Change type. Move lower.
7469 (check_for_duplicate_sim_descriptor): Update.
7470 (get_sim_inferior_data): Use new. Update.
7471 (~sim_inferior_data_cleanup): Rename from
7472 sim_inferior_data_cleanup. Simplify.
7473 (gdbsim_close_inferior, simulator_command)
7474 (sim_command_completer, _initialize_remote_sim): Update.
7475 (next_pid, INITIAL_PID): Move earlier.
7476
05b08ac1
TT
74772019-07-10 Tom Tromey <tromey@adacore.com>
7478
7479 * python/python-internal.h (create_thread_object): Return
7480 gdbpy_ref.
7481 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
7482 * python/py-inferior.c (struct threadlist_entry): Add
7483 constructor.
7484 <thread_obj>: Now a gdbpy_ref.
7485 (thread_to_thread_object): Update.
7486 (add_thread_object): Use new.
7487 (delete_thread_object): Use delete.
7488 (infpy_threads): Update.
7489 (py_free_inferior): Update. Construct "inf_obj" after acquiring
7490 GIL.
7491
32372d80
TT
74922019-07-10 Tom Tromey <tromey@adacore.com>
7493
7494 * valops.c (value_cast): Specialize error message for Ada.
7495
5c458ae8
SM
74962019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
7497
7498 * breakpoint.c (breakpoint_1): Update doc and parameter names.
7499
4c462cb0
SM
75002019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
7501
7502 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
7503 bpstat_should_step): Return bool, adjust comments.
7504 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
7505 bpstat_should_step): Likewise.
7506
89abbcc2
AH
75072019-07-10 Alan Hayward <alan.hayward@arm.com>
7508
7509 * features/Makefile: Use feature target descriptions for Arm.
7510 * features/arm/arm-core.c: Generate new file.
7511 * features/arm/arm-fpa.c: Likewise.
7512 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
7513 * features/arm/arm-m-profile.c: Likewise.
7514 * features/arm/arm-vfpv2.c: Likewise.
7515 * features/arm/arm-vfpv3.c: Likewise.
7516 * features/arm/xscale-iwmmxt.c: Likewise.
7517 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
7518
166a82be
AH
75192019-07-10 Alan Hayward <alan.hayward@arm.com>
7520
7521 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
7522 ptrace earlier.
7523
9fb4c7e9
AH
75242019-07-10 Alan Hayward <alan.hayward@arm.com>
7525
7526 * features/aarch64-pauth.c: Regenerate.
7527
e2d0f980
SM
75282019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
7529
7530 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
7531 bool.
7532 (bpstat_what): Use false instead of 0.
7533
a38118e5
PA
75342019-07-09 Pedro Alves <palves@redhat.com>
7535
7536 * break-catch-throw.c (is_exception_catchpoint): New.
7537 * breakpoint.c (print_one_breakpoint_location): New parameter
7538 'raw_loc'. Handle it. Use
7539 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
7540 looking at the breakpoint's type.
7541 (print_one_breakpoint): If handling "maint info breakpoints", also
7542 print locations of exception catchpoints.
7543 * breakpoint.h (is_exception_catchpoint): Declare.
7544
cb1e4e32
PA
75452019-07-09 Pedro Alves <palves@redhat.com>
7546
7547 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
7548 "addr" field.
7549 (allocate_location_exception_catchpoint): New.
7550 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
7551 (initialize_throw_catchpoint_ops): Install
7552 allocate_location_exception_catchpoint as allocate_location
7553 method.
7554 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
7555 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
7556 bp_loc_other.
7557 (breakpoint_address_is_meaningful): Delete.
7558 (bl_address_is_meaningful): New.
7559 (breakpoint_locations_match): Adjust comment.
7560 (bp_location_from_bp_type): New, factored out of...
7561 (bp_location::bp_location(breakpoint *)): ... this.
7562 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
7563 factored out of...
7564 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
7565 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
7566 breakpoint_address_is_meaningful.
7567 (bp_locations_compare): Adjust comment.
7568 (update_global_location_list): Use bl_address_is_meaningful
7569 instead of breakpoint_address_is_meaningful.
7570 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
7571 explicit.
7572 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
7573 * python/py-breakpoint.c (bppy_get_location): No longer check
7574 whether location is null.
7575
b58a68fe
PA
75762019-07-09 Pedro Alves <palves@redhat.com>
7577
7578 PR c++/15468
7579 * breakpoint.c (print_one_breakpoint_location): Remove
7580 single-location assert.
7581
268a13a5
TT
75822019-07-09 Tom Tromey <tom@tromey.com>
7583
7584 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
7585 * configure: Rebuild.
7586 * configure.ac: Change common to gdbsupport.
7587 * gdbsupport: Rename from common.
7588 * acinclude.m4: Change common to gdbsupport.
7589 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
7590 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
7591 gdbsupport.
7592 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
7593 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
7594 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
7595 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
7596 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
7597 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
7598 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
7599 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
7600 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
7601 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
7602 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
7603 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
7604 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
7605 coff-pe-read.c, command.h, compile/compile-c-support.c,
7606 compile/compile-c.h, compile/compile-cplus-symbols.c,
7607 compile/compile-cplus-types.c, compile/compile-cplus.h,
7608 compile/compile-loc2c.c, compile/compile.c, completer.c,
7609 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
7610 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
7611 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
7612 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
7613 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
7614 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
7615 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
7616 features/aarch64-core.c, features/aarch64-fpu.c,
7617 features/aarch64-pauth.c, features/aarch64-sve.c,
7618 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
7619 features/i386/32bit-core.c, features/i386/32bit-linux.c,
7620 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
7621 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
7622 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
7623 features/i386/64bit-core.c, features/i386/64bit-linux.c,
7624 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
7625 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
7626 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
7627 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
7628 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
7629 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
7630 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
7631 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
7632 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
7633 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
7634 go32-nat.c, guile/guile.c, guile/scm-ports.c,
7635 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
7636 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
7637 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
7638 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
7639 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
7640 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
7641 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
7642 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
7643 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
7644 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
7645 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
7646 minsyms.c, mips-linux-tdep.c, namespace.h,
7647 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
7648 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
7649 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
7650 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
7651 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
7652 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
7653 nat/linux-waitpid.c, nat/mips-linux-watch.c,
7654 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
7655 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
7656 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
7657 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
7658 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
7659 procfs.c, producer.c, progspace.h, psymtab.h,
7660 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
7661 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
7662 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
7663 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
7664 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
7665 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
7666 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
7667 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
7668 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
7669 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
7670 target-memory.c, target.c, target.h, target/waitstatus.c,
7671 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
7672 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
7673 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
7674 unittests/array-view-selftests.c,
7675 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
7676 unittests/common-utils-selftests.c,
7677 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
7678 unittests/format_pieces-selftests.c,
7679 unittests/function-view-selftests.c,
7680 unittests/lookup_name_info-selftests.c,
7681 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
7682 unittests/mkdir-recursive-selftests.c,
7683 unittests/observable-selftests.c,
7684 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
7685 unittests/parse-connection-spec-selftests.c,
7686 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
7687 unittests/scoped_fd-selftests.c,
7688 unittests/scoped_mmap-selftests.c,
7689 unittests/scoped_restore-selftests.c,
7690 unittests/string_view-selftests.c, unittests/style-selftests.c,
7691 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
7692 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
7693 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
7694 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
7695 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
7696 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
7697
5b0e2db4
AB
76982019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
7699
7700 * linespec.c (decode_digits_list_mode): Set explicit_line to a
7701 bool value.
7702 (decode_digits_ordinary): Set explicit_line field in sal.
7703 * symtab.c (skip_prologue_sal): Don't skip prologue for a
7704 symtab_and_line that was set on an explicit line number in
7705 assembler code. Do always update the recorded symtab and line if
7706 we do skip the prologue.
7707
0ba852ab
AB
77082019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
7709
7710 * breakpoint.c (set_breakpoint_location_function): Remove
7711 explicit_loc parameter.
7712 (momentary_breakpoint_from_master): Update call to
7713 set_breakpoint_location_function.
7714 (add_location_to_breakpoint): Likewise.
7715
b3a7d171
AB
77162019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
7717
7718 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
7719 required features based on default bfd type when no specific bfd
7720 is present.
7721
1f6f6e21
PW
77222019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7723
7724 * NEWS: Mention that GDB printf and eval commands can now print
7725 C-style and Ada-style convenience var strings without
7726 calling the inferior.
7727 * printcmd.c (printf_c_string): Locally print GDB internal var
7728 instead of transiting via the inferior.
7729 (printf_wide_c_string): Likewise.
7730
77312019-07-04 Alan Hayward <alan.hayward@arm.com>
ea142fbf 7732
5862c886 7733 PR breakpoints/25011
ea142fbf
AH
7734 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
7735
0598af48
TT
77362019-07-04 Tom Tromey <tom@tromey.com>
7737
7738 PR tui/24724:
7739 * tui/tui-winsource.c (tui_clear_source_content): Update.
7740 (tui_source_window_base::set_is_exec_point_at): Fix comment.
7741 (tui_update_breakpoint_info): Update.
7742 (tui_set_exec_info_content): Update.
7743 * tui/tui-source.c (tui_set_source_content_nil): Update.
7744 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
7745 has_break.
7746 * tui/tui-data.h (enum tui_bp_flag): New.
7747 (tui_bp_flags): New enum flags type.
7748 (struct tui_source_element) <break_mode>: Change type. Rename
7749 from has_break.
7750 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
7751 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
7752 constants.
7753 * tui/tui-winsource.h: Fix comment.
7754
350fab54
AH
77552019-07-04 Alan Hayward <alan.hayward@arm.com>
7756
7757 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
7758 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
7759 (store_fpregs_to_thread)
7760 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
7761 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
7762 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
7763 (IWMMXT_REGS_SIZE): Add define.
7764 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
7765 (fetch_vfp_regs, store_vfp_regs)
7766 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
7767 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
7768
f0452268
AH
77692019-07-04 Alan Hayward <alan.hayward@arm.com>
7770
7771 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
7772 defines.
7773 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
7774 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
7775 (ARM_INT_REGISTER_SIZE): ...to this.
7776 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
7777 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
7778 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
7779 (arm_linux_collect_gregset, supply_nwfpe_register)
7780 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
7781 defines.
7782 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
7783 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
7784 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
7785 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
7786 (arm_return_in_memory, arm_store_return_value)
7787 (arm_get_longjmp_target, arm_register_g_packet_guesses)
7788 (arm_record_ld_st_multiple): Likewise.
7789 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
7790 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
7791
e935475c
AH
77922019-07-04 Alan Hayward <alan.hayward@arm.com>
7793
7794 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
7795 AARCH64_DISPLACED_MODIFIED_INSNS.
7796 * aarch64-tdep.c (struct aarch64_displaced_step_data)
7797 (aarch64_displaced_step_copy_insn): Likewise.
7798 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
7799 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
7800 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
7801 ARM_DISPLACED_MODIFIED_INSNS.
7802 * arm-tdep.c (arm_gdbarch_init): Likewise.
7803 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
7804 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
7805 (struct arm_displaced_step_closure): Use
7806 ARM_DISPLACED_MODIFIED_INSNS.
7807
df0bb381
AH
78082019-07-04 Alan Hayward <alan.hayward@arm.com>
7809
7810 * features/Makefile: Remove unused xml files.
7811 * features/aarch64.xml: Remove.
7812 * features/i386/amd64-avx-avx512-linux.xml: Remove.
7813 * features/i386/amd64-avx-avx512.xml: Remove.
7814 * features/i386/amd64-avx-linux.xml: Remove.
7815 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
7816 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
7817 * features/i386/amd64-avx-mpx-linux.xml: Remove.
7818 * features/i386/amd64-avx-mpx.xml: Remove.
7819 * features/i386/amd64-avx.xml: Remove.
7820 * features/i386/amd64-linux.xml: Remove.
7821 * features/i386/amd64-mpx-linux.xml: Remove.
7822 * features/i386/amd64-mpx.xml: Remove.
7823 * features/i386/amd64.xml: Remove.
7824 * features/i386/i386-avx-avx512-linux.xml: Remove.
7825 * features/i386/i386-avx-avx512.xml: Remove.
7826 * features/i386/i386-avx-linux.xml: Remove.
7827 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
7828 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
7829 * features/i386/i386-avx-mpx-linux.xml: Remove.
7830 * features/i386/i386-avx-mpx.xml: Remove.
7831 * features/i386/i386-avx.xml: Remove.
7832 * features/i386/i386-linux.xml: Remove.
7833 * features/i386/i386-mmx-linux.xml: Remove.
7834 * features/i386/i386-mmx.xml: Remove.
7835 * features/i386/i386-mpx-linux.xml: Remove.
7836 * features/i386/i386-mpx.xml: Remove.
7837 * features/i386/i386.xml: Remove.
7838 * features/i386/x32-avx-avx512-linux.xml: Remove.
7839 * features/i386/x32-avx-linux.xml: Remove.
7840 * features/i386/x32-linux.xml: Remove.
7841
edd6266a
AH
78422019-07-04 Alan Hayward <alan.hayward@arm.com>
7843
7844 * regformats/aarch64.dat: Remove.
7845 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
7846 * regformats/i386/amd64-avx-linux.dat: Remove.
7847 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
7848 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
7849 * regformats/i386/amd64-linux.dat: Remove.
7850 * regformats/i386/amd64-mpx-linux.dat: Remove.
7851 * regformats/i386/amd64.dat: Remove.
7852 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
7853 * regformats/i386/i386-avx-linux.dat: Remove.
7854 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
7855 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
7856 * regformats/i386/i386-linux.dat: Remove.
7857 * regformats/i386/i386-mmx-linux.dat: Remove.
7858 * regformats/i386/i386-mpx-linux.dat: Remove.
7859 * regformats/i386/i386.dat: Remove.
7860 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
7861 * regformats/i386/x32-avx-linux.dat: Remove.
7862 * regformats/i386/x32-linux.dat: Remove.
7863
2b40fda7
AH
78642019-07-04 Alan Hayward <alan.hayward@arm.com>
7865
7866 * aarch64-tdep.c: Remove xml self tests.
7867 * amd64-linux-tdep.c: Likewise.
7868 * amd64-tdep.c: Likewise.
7869 * i386-linux-tdep.c: Likewise.
7870 * i386-tdep.c: Likewise.
7871
5f4ba3e7
PA
78722019-07-03 Pedro Alves <palves@redhat.com>
7873
7874 PR cli/24732
7875 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
7876 (pipe_cmd_option_defs): New.
7877 (make_pipe_cmd_options_def_group): New.
7878 (pipe_command): Use gdb::option::process_options.
7879 (pipe_command_completer): New function.
7880 (_initialize_cli_cmds): Install completer for "pipe" command.
7881
3d9be6f5
PA
78822019-07-03 Pedro Alves <palves@redhat.com>
7883
7884 * cli/cli-option.c (union option_value) <string>: New field.
7885 (struct option_def_and_value): Add ctor, move ctor, dtor and
7886 use DISABLE_COPY_AND_ASSIGN.
7887 (option_def_and_value::clear_value): New.
7888 (parse_option, save_option_value_in_ctx, get_val_type_str)
7889 (add_setshow_cmds_for_options): Handle var_string.
7890 * cli-option.h (union option_def::var_address) <string>: New
7891 field.
7892 (struct string_option_def): New.
7893 * maint-test-options.c (struct test_options_opts): Add default
7894 ctor and use DISABLE_COPY_AND_ASSIGN.
7895 <string_opt>: New field.
7896 (test_options_opts::~test_options_opts): New.
7897 (test_options_opts::dump): Also dump "-string".
7898 (test_options_option_defs): Install "string.
7899
41fc454c
PA
79002019-07-03 Pedro Alves <palves@redhat.com>
7901
7902 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
7903 option_value with a null enumeration.
7904 (complete_options): Save the option values in the context.
7905 (save_option_value_in_ctx): New, factored out from ...
7906 (process_options): ... here.
7907 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
7908 of the function.
7909 * maint-test-options.c (test_options_opts::dump): New, factored
7910 out from ...
7911 (maintenance_test_options_command_mode): ... here.
7912 (maintenance_test_options_command_completion_result): Delete.
7913 (maintenance_test_options_command_completion_text): Update
7914 comment.
7915 (maintenance_show_test_options_completion_result): Change
7916 prototype. Just print
7917 maintenance_test_options_command_completion_text.
7918 (save_completion_result): New.
7919 (maintenance_test_options_completer_mode): Pass options context to
7920 complete_options, and then save a dump.
7921 (_initialize_maint_test_options): Use add_cmd to install "maint
7922 show test-options-completion-result".
7923
fdbc9870
PA
79242019-07-03 Pedro Alves <palves@redhat.com>
7925
7926 * NEWS (New commands): Mention "with" and "maint with".
7927 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
7928 (with_command, with_command_completer): New.
7929 (pipe_command): Adjust to new repeat_previous
7930 interface.
7931 (_initialize_cli_cmds): Install the "with" command and its "w"
7932 alias.
7933 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
7934 declarations.
7935 * cli/cli-setshow.c (parse_cli_var_uinteger)
7936 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
7937 argument strings for all var_types.
7938 (get_setshow_command_value_string): New, factored out from ...
7939 (do_show_command): ... this.
7940 * cli/cli-setshow.h: Include <string>.
7941 (get_setshow_command_value_string): Declare.
7942 * command.h (repeat_previous): Now returns const char *. Adjust
7943 comment.
7944 * maint.c: Include "cli/cli-cmds.h".
7945 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
7946 (_initialize_maint_cmds): Register the "maintenance with" command.
7947 * top.c (repeat_previous): Move bits from pipe_command here:
7948 Return the saved command line, if any; error out if there's no
7949 command to relaunch.
7950
c6ac8931
PA
79512019-07-03 Pedro Alves <palves@redhat.com>
7952
7953 * NEWS (New commands): Mention "maint set/show test-settings"
7954 instead of "maint test-settings".
7955 * maint-test-settings.c (maintenance_test_settings_list): Delete.
7956 (maintenance_test_settings_set_list): Rename to ...
7957 (maintenance_set_test_settings_list): ... this.
7958 (maintenance_test_settings_show_list): Rename to ...
7959 (maintenance_show_test_settings_list): ... this.
7960 (maintenance_test_settings_cmd): Delete.
7961 (maintenance_test_settings_set_cmd): ...
7962 (maintenance_set_test_settings_cmd): ... this.
7963 (maintenance_test_settings_show_cmd): ...
7964 (maintenance_show_test_settings_cmd): ... this.
7965 (maintenance_test_settings_show_value_cmd):
7966 (maintenance_show_test_settings_value_cmd): ... this.
7967 (_initialize_maint_test_settings): No longer install the "maint
7968 test-settings" prefix command. Rename "maint test-settings set"
7969 to "maint set test-settings", and "maint test-settings show" to
7970 "maint show test-settings". Adjust all subcommands.
7971
d1fcf2fd
PA
79722019-07-03 Pedro Alves <palves@redhat.com>
7973
7974 * maint-test-settings.c: Fix file's intro comment. Replace all
7975 references to "test-options" with references to "test-settings",
7976 in comments.
7977
970f9d09
PA
79782019-07-03 Pedro Alves <palves@redhat.com>
7979
7980 * maint-test-settings.c (maintenance_test_settings_xxx)
7981 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
7982 New.
7983 (maintenance_test_settings_enums): Use them.
7984 (maintenance_test_settings_enum): Default to
7985 maintenance_test_settings_xxx.
7986 (_initialize_maint_test_settings): Initialize
7987 MAINTENANCE_TEST_SETTINGS_FILENAME.
7988
f3869b1a
SM
79892019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7990
7991 * breakpoint.h (remove_breakpoints_inf): Change return type to
7992 void, move function documentation here.
7993 * breakpoint.c (remove_breakpoints_inf): Change return type to
7994 void, move function documentation to header.
7995
54d66006
PA
79962019-07-02 Pedro Alves <palves@redhat.com>
7997
7998 * NEWS (Completion improvements): Mention "info threads".
7999 * thread.c (struct info_threads_opts, info_threads_option_defs)
8000 (make_info_threads_options_def_group): New.
8001 (info_threads_command): Use gdb::option::process_options.
8002 (info_threads_command_completer): New.
8003 (_initialize_thread): Use gdb::option::build_help to build the
8004 help text for "info threads".
8005
854f6088
SM
80062019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
8007
8008 * defs.h (generic_load): Move from here...
8009 * symfile.h (generic_load): ... to here. Rename name parameter
8010 to args.
8011 * symfile.c (generic_load): Add comment.
8012
54ee4252
TT
80132019-07-01 Tom Tromey <tromey@adacore.com>
8014
8015 * dwarf2read.c
8016 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
8017 declaration of without_params. Fix formatting.
8018
65392b3e
TT
80192019-07-01 Tom Tromey <tromey@adacore.com>
8020
8021 * ada-exp.y (find_primitive_type): Update.
8022 * ada-lang.h (ada_lookup_symbol): Update.
8023 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
8024 parameter.
8025 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
8026
7d7571f0
SDJ
80272019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
8028
8029 PR breakpoints/24541
8030 * gdbarch.c: Regenerate.
8031 * gdbarch.h: Regenerate.
8032 * gdbarch.sh: Add 'stap_adjust_register'.
8033 * i386-tdep.c: Include '<unordered_set>'.
8034 (i386_stap_adjust_register): New function.
8035 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
8036 * stap-probe.c (stap_parse_register_operand): Call
8037 'gdbarch_stap_adjust_register'.
8038
5af5392a
SDJ
80392019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
8040
8041 PR python/24742
8042 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
8043 * python/python.c (do_start_initialization): Use 'xmalloc'
8044 instead of 'PyMem_Malloc'.
8045
10d06d82
TT
80462019-06-28 Tom Tromey <tromey@adacore.com>
8047
8048 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
8049 for Ada.
8050
1b7f24cd
TT
80512019-06-27 Tom Tromey <tromey@adacore.com>
8052
8053 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
8054 objfile_key.
8055 (arm_find_mapping_symbol, arm_record_special_symbol)
8056 (_initialize_arm_tdep): Update.
8057 (arm_objfile_data_free): Remove.
8058
3d507ff2
TT
80592019-06-27 Tom Tromey <tromey@adacore.com>
8060
8061 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
8062 to cp_print_static_field.
8063
762c164d
TT
80642019-06-26 Tom Tromey <tromey@adacore.com>
8065
8066 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
8067 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
8068 declare.
8069
aa2f9bcf
AH
80702019-06-26 Alan Hayward <alan.hayward@arm.com>
8071
8072 * features/aarch64-core.c (create_feature_aarch64_core):
8073 Regenerate.
8074 * features/aarch64-core.xml: Add cpsr flags.
8075
3426ae57
AH
80762019-06-26 Alan Hayward <alan.hayward@arm.com>
8077
8078 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
8079 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
8080
4838e44c
SM
80812019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
8082
8083 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
8084 field.
8085 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
8086 use.
8087 (arm_record_special_symbol): Don't insert new symbol in sorted
8088 position, push it at the end.
8089
54cc7474
SM
80902019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
8091
8092 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
8093 (arm_mapping_symbol_s): Remove.
8094 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
8095 (arm_mapping_symbol_vec): New typedef.
8096 (struct arm_per_objfile): Add constructor.
8097 <section_maps>: Change type to
8098 std::unique_ptr<arm_mapping_symbol_vec[]>.
8099 (arm_compare_mapping_symbols): Remove.
8100 (arm_find_mapping_symbol): Adjust to section_maps type change.
8101 (arm_objfile_data_free): Call delete on arm_per_objfile.
8102 (arm_record_special_symbol): Adjust to section_maps type change.
8103 Allocate arm_per_objfile with new.
8104
b65b566c
PW
81052019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8106
8107 * cli/cli-cmds.c (alias_command): Compare the alias prefix
8108 with the command prefix.
8109
c2fc64f5
TT
81102019-06-25 Tom Tromey <tom@tromey.com>
8111
8112 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
8113 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
8114
fb54fa76
TT
81152019-06-25 Tom Tromey <tom@tromey.com>
8116
8117 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
8118 type.
8119 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
8120 protected.
8121
f7952c57
TT
81222019-06-25 Tom Tromey <tom@tromey.com>
8123
8124 * tui/tui-winsource.c
8125 (tui_source_window_base::set_is_exec_point_at): Add check against
8126 LOA_ADDRESS.
8127
17568d78
TT
81282019-06-25 Tom Tromey <tom@tromey.com>
8129
8130 * tui/tui-source.c (tui_set_source_content): Don't check before
8131 xfree.
8132 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
8133
53e7cdba
TT
81342019-06-25 Tom Tromey <tom@tromey.com>
8135
8136 * tui/tui-winsource.h (tui_update_source_window_as_is)
8137 (tui_alloc_source_buffer, tui_line_is_displayed)
8138 (tui_addr_is_displayed): Change type of win_info.
8139 * tui/tui-winsource.c (tui_update_source_window_as_is)
8140 (tui_clear_source_content, tui_show_source_line)
8141 (tui_show_source_content, tui_source_window_base::refill)
8142 (tui_source_window_base::set_is_exec_point_at)
8143 (tui_source_window_base::set_is_exec_point_at)
8144 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
8145 (tui_alloc_source_buffer, tui_line_is_displayed)
8146 (tui_addr_is_displayed): Change type of win_info. Update.
8147 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
8148 (tui_source_window_base::do_make_visible_with_new_height):
8149 Update.
8150 * tui/tui-source.c (tui_set_source_content)
8151 (tui_set_source_content_nil)
8152 (tui_source_window::do_scroll_vertical): Update.
8153 * tui/tui-layout.c (show_layout): Update.
8154 * tui/tui-disasm.c (tui_set_disassem_content)
8155 (tui_disasm_window::do_scroll_vertical): Update.
8156 * tui/tui-data.h (tui_win_content): Remove.
8157 (struct tui_gen_win_info) <content, content_size>: Remove.
8158 (struct tui_source_element): Add initializers and destructor.
8159 (union tui_which_element, struct tui_win_element): Remove.
8160 (struct tui_source_window_base) <content>: New field.
8161 (struct tui_data_window): Remove destructor.
8162 (tui_alloc_content, tui_free_win_content)
8163 (tui_free_all_source_wins_content): Don't declare.
8164 * tui/tui-data.c (tui_initialize_static_data): Update.
8165 (init_content_element, tui_alloc_content): Remove.
8166 (~tui_gen_win_info): Update.
8167 (~tui_data_window, tui_free_all_source_wins_content)
8168 (tui_free_win_content, free_content, free_content_elements):
8169 Remove.
8170
7908abbf
TT
81712019-06-25 Tom Tromey <tom@tromey.com>
8172
8173 * tui/tui-winsource.h (tui_clear_source_content)
8174 (tui_erase_source_content, tui_show_source_content): Change type
8175 of win_info.
8176 * tui/tui-winsource.c (tui_clear_source_content)
8177 (tui_erase_source_content, tui_show_source_content): Change type
8178 of win_info.
8179 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
8180 * tui/tui-source.h (tui_set_source_content_nil): Change type of
8181 win_info.
8182 * tui/tui-source.c (tui_set_source_content_nil): Change type of
8183 win_info.
8184 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
8185
02c28df0
TT
81862019-06-25 Tom Tromey <tom@tromey.com>
8187
8188 * tui/tui-winsource.c (tui_clear_source_content)
8189 (tui_source_window_base::set_is_exec_point_at): Update.
8190 * tui/tui-source.c (tui_set_source_content_nil): Update.
8191 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
8192 a bool.
8193 * tui/tui-data.c (init_content_element): Update.
8194
6658b1bf
TT
81952019-06-25 Tom Tromey <tom@tromey.com>
8196
8197 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
8198 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
8199 * tui/tui-layout.c (init_and_make_win): Update.
8200 * tui/tui.h (enum tui_win_type): Update.
8201 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
8202 tui_win_is_auxillary.
8203 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
8204 tui_win_is_auxillary.
8205
21e1c91e
TT
82062019-06-25 Tom Tromey <tom@tromey.com>
8207
8208 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
8209 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
8210 (tui_delete_data_content_windows, tui_display_all_data)
8211 (tui_data_window::do_scroll_vertical, tui_display_data_from):
8212 Update.
8213 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
8214 * tui/tui-regs.c (tui_last_regs_line_no)
8215 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
8216 (tui_show_registers): Update.
8217 (tui_show_register_group): Return void. Update.
8218 (tui_display_registers_from, tui_display_reg_element_at_line)
8219 (tui_display_registers_from_line, tui_check_register_values):
8220 Update.
8221 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
8222 member.
8223 (struct tui_data_window) <regs_content>: Now a std::vector.
8224 <regs_content_count>: Remove.
8225 (tui_add_content_elements, tui_free_data_content): Don't declare.
8226 * tui/tui-data.c (tui_data_window::clear_detail): Update.
8227 (init_content_element): Remove DATA_WIN case. Add assert.
8228 (tui_add_content_elements): Remove.
8229 (tui_data_window): Update.
8230 (tui_free_data_content): Remove.
8231 (free_content_elements): Remove DATA_WIN case.
8232
115ac53b
TT
82332019-06-25 Tom Tromey <tom@tromey.com>
8234
8235 * tui/tui-data.c (tui_data_item_window): Update.
8236 * tui/tui-windata.h (tui_check_data_values): Don't declare.
8237 * tui/tui-windata.c (tui_display_all_data)
8238 (tui_display_data_from_line): Update.
8239 (tui_check_data_values): Remove.
8240 * tui/tui-regs.c (tui_show_register_group)
8241 (tui_display_reg_element_at_line): Update.
8242 * tui/tui-hooks.c (tui_register_changed)
8243 (tui_refresh_frame_and_register_information): Call
8244 tui_check_register_values.
8245 * tui/tui-data.h (struct tui_data_window) <data_content,
8246 data_content_count, data_type>: Remove.
8247 (enum tui_data_type): Remove.
8248
8249 * tui/tui-data.c (tui_data_window::clear_detail)
8250 (~tui_data_window): Update.
8251
eaf9738b
TT
82522019-06-25 Tom Tromey <tom@tromey.com>
8253
8254 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
8255 declare.
8256 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
8257 Rename from tui_first_data_item_displayed. Update.
8258 (tui_data_window::refresh_all)
8259 (tui_data_window::do_scroll_vertical): Update.
8260 * tui/tui-data.h (struct tui_data_window)
8261 <first_data_item_displayed>: Declare new method.
8262
31ca4723
TT
82632019-06-25 Tom Tromey <tom@tromey.com>
8264
8265 * tui/tui-data.h (tui_init_generic_part): Don't declare.
8266 * tui/tui-data.c (tui_init_generic_part): Remove, moving
8267 contents...
8268 (tui_initialize_static_data): ...here.
8269
41bcff7f
TT
82702019-06-25 Tom Tromey <tom@tromey.com>
8271
8272 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
8273 (tui_display_registers_from, tui_check_register_values): Update.
8274 (tui_display_register): Remove win_info parameter; update.
8275 (tui_get_register): Change type of parameters.
8276 * tui/tui-data.h (struct tui_data_element): Remove.
8277 (union tui_which_element) <data>: Remove.
8278 <data_window>: Change type.
8279 (struct tui_data_item_window): New.
8280 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
8281 case. Add assert.
8282 (~tui_data_item_window): New destructor.
8283 (free_content_elements): Remove DATA_ITEM_WIN case.
8284
d2802c33
TT
82852019-06-25 Tom Tromey <tom@tromey.com>
8286
8287 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
8288 Remove.
8289
dd835f8b
TT
82902019-06-25 Tom Tromey <tom@tromey.com>
8291
8292 * tui/tui-data.h (struct tui_command_element): Remove.
8293 (union tui_which_element) <command>: Remove.
8294 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
8295 assert.
8296 (free_content_elements): Remove CMD_WIN case.
8297
bd7db367
TT
82982019-06-25 Tom Tromey <tom@tromey.com>
8299
8300 * tui/tui-layout.c (tui_set_layout): Update.
8301 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
8302 * tui/tui-data.c (layout_def): Update.
8303
3add462f
TT
83042019-06-25 Tom Tromey <tom@tromey.com>
8305
8306 * tui/tui-wingeneral.c (tui_refresh_all): Update.
8307 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
8308 (tui_source_window_base::set_new_height): Update.
8309 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
8310 Update.
8311 (tui_set_locator_fullname, tui_set_locator_info)
8312 (tui_show_frame_info): Update.
8313 * tui/tui-source.c (tui_set_source_content)
8314 (tui_source_is_displayed): Update.
8315 * tui/tui-layout.c (show_source_disasm_command, show_data)
8316 (show_source_or_disasm_and_command): Update.
8317 * tui/tui-disasm.c (tui_set_disassem_content)
8318 (tui_get_begin_asm_address): Update.
8319 * tui/tui-data.h (struct tui_locator_element): Remove.
8320 (union tui_which_element) <locator>: Remove.
8321 (struct tui_locator_window): New.
8322 (tui_locator_win_info_ptr): Change return type.
8323 * tui/tui-data.c (_locator): Change type.
8324 (tui_locator_win_info_ptr): Change return type.
8325 (init_content_element): Remove LOCATOR_WIN case. Add assert.
8326 (tui_alloc_content): Add assert.
8327
489e9d8b
TT
83282019-06-25 Tom Tromey <tom@tromey.com>
8329
8330 * tui/tui-winsource.c
8331 (tui_exec_info_window::maybe_allocate_content): New method.
8332 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
8333 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
8334 (make_source_or_disasm_window): Add cast.
8335 * tui/tui-data.h (union tui_which_element) <simple_string>:
8336 Remove.
8337 (struct tui_source_info): New.
8338 (struct tui_source_window_base) <execution_info>: Change type.
8339 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
8340 case, and add assert.
8341 (tui_alloc_content): Add assert.
8342
c3fabb7d
TT
83432019-06-25 Tom Tromey <tom@tromey.com>
8344
8345 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
8346 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
8347 * tui/tui-data.c (tui_alloc_win_info): Remove.
8348
bbc228ee
TT
83492019-06-25 Tom Tromey <tom@tromey.com>
8350
8351 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
8352 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
8353 can_highlight.
8354
5fcee43a
TT
83552019-06-25 Tom Tromey <tom@tromey.com>
8356
8357 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
8358 make_visible_with_new_height method.
8359 (tui_win_info::make_visible_with_new_height): New method.
8360 (tui_source_window_base::do_make_visible_with_new_height)
8361 (tui_data_window::do_make_visible_with_new_height)
8362 (tui_cmd_window::do_make_visible_with_new_height): New methods.
8363 (make_visible_with_new_height): Remove.
8364 (tui_resize_all, tui_adjust_win_heights): Use
8365 make_visible_with_new_height method.
8366 * tui/tui-data.h (struct tui_win_info)
8367 <do_make_visible_with_new_height, make_visible_with_new_height>:
8368 New methods.
8369 (struct tui_source_window_base, struct tui_data_window)
8370 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
8371 methods.
8372
d83f1fe6
TT
83732019-06-25 Tom Tromey <tom@tromey.com>
8374
8375 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
8376 method.
8377 (update_tab_width): Call update_tab_width method.
8378 * tui/tui-data.h (struct tui_win_info)
8379 (struct tui_source_window_base) <update_tab_width>: New methods.
8380
17374de4
TT
83812019-06-25 Tom Tromey <tom@tromey.com>
8382
8383 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
8384 parameter.
8385 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
8386 parameter.
8387 (tui_gen_win_info::make_visible): Update.
8388 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
8389 parameter.
8390 * tui/tui-data.h (enum tui_box): New enum.
8391 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
8392
f936bca2
TT
83932019-06-25 Tom Tromey <tom@tromey.com>
8394
8395 * tui/tui-layout.c (make_source_or_disasm_window): Always use
8396 init_and_make_win for EXEC_INFO_WIN.
8397 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
8398 longer inline.
8399 (struct tui_win_info) <~tui_win_info>: Inline.
8400 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
8401 Don't declare.
8402 * tui/tui-data.c (source_win, disasm_win): Remove globals.
8403 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
8404 Remove.
8405 (tui_initialize_static_data): Update.
8406 (~tui_gen_win_info): Handle more cleanup here.
8407 (~tui_source_window_base): Delete "execution_info".
8408 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
8409
d6ba6a11
TT
84102019-06-25 Tom Tromey <tom@tromey.com>
8411
8412 * tui/tui-layout.c (make_command_window): Don't set
8413 can_highlight.
8414 (show_source_disasm_command): Call the reset method.
8415 (show_data): Don't set can_highlight. Call the reset method.
8416 (tui_gen_win_info::reset): Rename from init_gen_win_info
8417 (init_and_make_win): Simplify. Return tui_gen_win_info.
8418 (show_source_or_disasm_and_command): Call the reset method.
8419 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
8420 (struct tui_cmd_window): Set can_highlight.
8421
48a3bd16
TT
84222019-06-25 Tom Tromey <tom@tromey.com>
8423
8424 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
8425 from make_visible.
8426 (tui_make_visible, tui_make_invisible): Rewrite.
8427 (tui_win_info::make_visible): Remove.
8428 (tui_source_window_base::make_visible): Update.
8429 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
8430 method. Moved from...
8431 (struct tui_win_info) <make_visible>: ...here.
8432
c3bd716f
TT
84332019-06-25 Tom Tromey <tom@tromey.com>
8434
8435 * tui/tui-winsource.c
8436 (tui_source_window_base::do_scroll_horizontal): Remove direction
8437 parameter.
8438 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
8439 direction parameter.
8440 * tui/tui-win.c (tui_win_info::forward_scroll)
8441 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
8442 (tui_win_info::right_scroll): Update.
8443 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
8444 direction parameter.
8445 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
8446 direction parameter.
8447 * tui/tui-data.h (enum tui_scroll_direction): Remove.
8448 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
8449 Remove direction parameter.
8450 (struct tui_source_window_base, struct tui_source_window)
8451 (struct tui_disasm_window, struct tui_data_window)
8452 (struct tui_cmd_window): Update.
8453
21c32dca
TT
84542019-06-25 Tom Tromey <tom@tromey.com>
8455
8456 * tui/tui-winsource.h (tui_set_exec_info_content)
8457 (tui_show_exec_info_content, tui_erase_exec_info_content)
8458 (tui_clear_exec_info_content, tui_update_exec_info): Change
8459 argument to tui_source_window_base.
8460 * tui/tui-winsource.c (tui_set_exec_info_content)
8461 (tui_show_exec_info_content, tui_erase_exec_info_content)
8462 (tui_clear_exec_info_content, tui_update_exec_info): Change
8463 argument to tui_source_window_base.
8464
73fbdc65
TT
84652019-06-25 Tom Tromey <tom@tromey.com>
8466
8467 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
8468 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
8469
33325343
TT
84702019-06-25 Tom Tromey <tom@tromey.com>
8471
8472 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
8473 check.
8474
29d2c474
TT
84752019-06-25 Tom Tromey <tom@tromey.com>
8476
8477 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
8478 type to void.
8479 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
8480 type to void.
8481 * tui/tui-source.c (tui_set_source_content): Update.
8482 * tui/tui-disasm.c (tui_set_disassem_content): Update.
8483
152f3f4b
TT
84842019-06-25 Tom Tromey <tom@tromey.com>
8485
8486 * tui/tui-win.c (window_name_completer, tui_set_focus)
8487 (tui_all_windows_info): Use name method.
8488 * tui/tui-data.h (struct tui_gen_win_info)
8489 (struct tui_source_window, struct tui_disasm_window)
8490 (struct tui_data_window, struct tui_cmd_window) <name>: New
8491 method.
8492 (tui_win_name): Don't declare.
8493 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
8494 (tui_win_name): Remove.
8495
be4da588
TT
84962019-06-25 Tom Tromey <tom@tromey.com>
8497
8498 * tui/tui-winsource.h (tui_update_source_window)
8499 (tui_update_source_window_as_is): Change parameter type.
8500 * tui/tui-winsource.c (tui_update_source_window): Change win_info
8501 to be a tui_source_window_base.
8502 (tui_update_source_window_as_is): Likewise.
8503 * tui/tui-win.c (make_visible_with_new_height): Update.
8504
5b81daba
TT
85052019-06-25 Tom Tromey <tom@tromey.com>
8506
8507 * tui/tui-winsource.c (tui_erase_source_content)
8508 (tui_show_source_content, tui_show_exec_info_content)
8509 (tui_erase_exec_info_content): Use refresh_window method.
8510 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
8511 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
8512 from tui_refresh_win.
8513 (tui_data_window::refresh_window): New method.
8514 (tui_win_info::refresh, tui_source_window_base::refresh)
8515 (tui_refresh_all): Use refresh_window method.
8516 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
8517 method.
8518 * tui/tui-regs.c (tui_display_register): Call refresh_window
8519 method.
8520 * tui/tui-layout.c (show_source_disasm_command)
8521 (show_source_or_disasm_and_command): Call refresh_window method.
8522 * tui/tui-data.h (struct tui_gen_win_info)
8523 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
8524 New method.
8525
cb2ce893
TT
85262019-06-25 Tom Tromey <tom@tromey.com>
8527
8528 * tui/tui.c (tui_rl_other_window, tui_enable)
8529 (tui_is_window_visible, tui_get_command_dimension): Update.
8530 * tui/tui-winsource.c (tui_update_source_window_as_is)
8531 (tui_clear_source_content, tui_erase_source_content)
8532 (tui_show_source_line, tui_source_window_base::refill)
8533 (tui_source_window_base::do_scroll_horizontal)
8534 (tui_source_window_base::set_is_exec_point_at)
8535 (tui_update_breakpoint_info, tui_set_exec_info_content)
8536 (tui_alloc_source_buffer, tui_line_is_displayed)
8537 (tui_addr_is_displayed): Update.
8538 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
8539 (tui_check_and_display_highlight_if_needed)
8540 (tui_win_info::make_visible, tui_win_info::refresh)
8541 (tui_refresh_all): Update.
8542 * tui/tui-windata.c (tui_first_data_item_displayed)
8543 (tui_delete_data_content_windows, tui_erase_data_content)
8544 (tui_display_all_data, tui_data_window::refresh_all)
8545 (tui_check_data_values): Update.
8546 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
8547 (tui_set_win_focus_to, tui_win_info::forward_scroll)
8548 (tui_win_info::backward_scroll, tui_refresh_all_win)
8549 (tui_resize_all, tui_set_focus, tui_all_windows_info)
8550 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
8551 (tui_source_window_base::set_new_height)
8552 (tui_data_window::set_new_height)
8553 (make_invisible_and_set_new_height)
8554 (make_visible_with_new_height, new_height_ok)
8555 (parse_scrolling_args): Update.
8556 * tui/tui-stack.c (tui_show_frame_info): Update.
8557 * tui/tui-source.c (tui_set_source_content)
8558 (tui_set_source_content_nil, tui_source_is_displayed)
8559 (tui_source_window::do_scroll_vertical): Update.
8560 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
8561 (tui_display_registers_from, tui_display_reg_element_at_line)
8562 (tui_check_register_values, tui_reg_command): Update.
8563 * tui/tui-layout.c (tui_default_win_height)
8564 (show_source_disasm_command, show_data, init_and_make_win)
8565 (show_source_or_disasm_and_command): Update.
8566 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
8567 (tui_redisplay_readline, tui_mld_flush)
8568 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
8569 (tui_getc): Update.
8570 * tui/tui-disasm.c (tui_set_disassem_content)
8571 (tui_disasm_window::do_scroll_vertical): Update.
8572 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
8573 Now virtual.
8574 (struct tui_win_info): Derive from tui_gen_win_info.
8575 <~tui_win_info>: Mark as override.
8576 <generic>: Remove member.
8577 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
8578 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
8579 (~tui_data_window, ~tui_win_info)
8580 (tui_free_all_source_wins_content): Update.
8581 * tui/tui-command.c (tui_refresh_cmd_win): Update.
8582
ab313b35
TT
85832019-06-25 Tom Tromey <tom@tromey.com>
8584
8585 * tui/tui-layout.c (init_and_make_win): Use new.
8586 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
8587 destructor, initializers.
8588 (tui_alloc_generic_win_info): Don't declare.
8589 * tui/tui-data.c (_locator): Add argument to constructor.
8590 (source_win, disasm_win): New globals.
8591 (exec_info): Remove.
8592 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
8593 Update.
8594 (tui_alloc_generic_win_info): Remove.
8595 (init_content_element): Use new.
8596 (tui_win_info::tui_win_info): Update.
8597 (free_content_elements) <case DATA_WIN>: Use delete.
8598
dc2c33e4
TT
85992019-06-25 Tom Tromey <tom@tromey.com>
8600
8601 * tui/tui-wingeneral.c (tui_refresh_win): Update.
8602 * tui/tui-windata.c (tui_first_data_item_displayed)
8603 (tui_delete_data_content_windows): Update.
8604 * tui/tui-win.c (tui_data_window::set_new_height): Update.
8605 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
8606 (tui_display_registers_from, tui_check_register_values): Update.
8607 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
8608 pointer.
8609 * tui/tui-data.c (init_content_element): Update. Allocate the new
8610 window.
8611 (tui_free_data_content): Update.
8612 (free_content_elements) <case DATA_WIN>: Free the window.
8613
214a5cbe
TT
86142019-06-25 Tom Tromey <tom@tromey.com>
8615
8616 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
8617 Update.
8618 * tui/tui-layout.c (make_command_window)
8619 (show_source_disasm_command, show_data, init_and_make_win)
8620 (show_source_or_disasm_and_command): Update.
8621 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
8622 method.
8623 <can_highight, is_highlighted>: Now bool.
8624 (tui_set_win_highlight): Don't declare.
8625 * tui/tui-data.c (tui_set_win_highlight): Remove.
8626
8e2daf15
TT
86272019-06-25 Tom Tromey <tom@tromey.com>
8628
8629 * tui/tui-wingeneral.c (make_visible): Remove check of window
8630 type.
8631
8903bd8a
TT
86322019-06-25 Tom Tromey <tom@tromey.com>
8633
8634 * tui/tui-win.c (tui_win_info::max_height)
8635 (tui_cmd_window::max_height): New methods.
8636 (new_height_ok): Call max_height.
8637 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
8638 <max_height>: New method.
8639
3f02ce1e
TT
86402019-06-25 Tom Tromey <tom@tromey.com>
8641
8642 * tui/tui-win.c (tui_source_window_base::set_new_height)
8643 (tui_data_window::set_new_height): New methods.
8644 (make_invisible_and_set_new_height): Call set_new_height method.
8645 * tui/tui-data.h (struct tui_win_info)
8646 (struct tui_source_window_base, struct tui_data_window)
8647 <set_new_height>: New method.
8648
1825f487
TT
86492019-06-25 Tom Tromey <tom@tromey.com>
8650
8651 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
8652 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
8653 tui_refresh_data_win.
8654 * tui/tui-win.c (tui_source_window_base::refresh_all): New
8655 method.
8656 (tui_refresh_all_win): Call the refresh_all method.
8657 (tui_set_focus): Likewise.
8658 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
8659 (struct tui_source_window_base, struct tui_data_window) <refresh>:
8660 Likewise.
8661
ad54d15b
TT
86622019-06-25 Tom Tromey <tom@tromey.com>
8663
8664 * tui/tui-winsource.h (tui_refill_source_window)
8665 (tui_set_is_exec_point_at): Don't declare.
8666 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
8667 (tui_source_window_base::refill): Rename from
8668 tui_refill_source_window.
8669 (tui_source_window_base::do_scroll_horizontal): Update.
8670 (tui_source_window_base::set_is_exec_point_at): Rename from
8671 tui_set_is_exec_point_at.
8672 (tui_update_all_breakpoint_info): Update.
8673 * tui/tui-stack.c (tui_show_frame_info): Update.
8674 * tui/tui-layout.c (show_data): Add cast.
8675 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
8676 * tui/tui-data.h (struct tui_source_window_base) <refill,
8677 set_is_exec_point_at>: New methods.
8678 (tui_source_windows, tui_add_to_source_windows): Update types.
8679 (tui_add_to_source_windows): Remove redundant declaration.
8680 * tui/tui-data.c (source_windows): Store tui_source_window_base.
8681 (tui_source_windows): Change return type.
8682 (tui_clear_source_windows_detail): Update.
8683 (tui_add_to_source_windows): Change type of parameter.
8684 (tui_free_all_source_wins_content): Update.
8685
2042b506
TT
86862019-06-25 Tom Tromey <tom@tromey.com>
8687
8688 * tui/tui-wingeneral.c (tui_win_info::refresh)
8689 (tui_source_window_base::refresh): New methods.
8690 (tui_refresh_all): Call the refresh method.
8691 * tui/tui-data.h (struct tui_win_info)
8692 (struct tui_source_window_base) <refresh>: New method.
8693
56122977
TT
86942019-06-25 Tom Tromey <tom@tromey.com>
8695
8696 * tui/tui.h (tui_is_window_visible): Return bool.
8697 * tui/tui.c (tui_is_window_visible): Return bool.
8698 * tui/tui-wingeneral.c (tui_make_window, make_visible)
8699 (tui_make_visible, tui_make_invisible)
8700 (tui_win_info::make_visible)
8701 (tui_source_window_base::make_visible, make_all_visible)
8702 (tui_make_all_visible, tui_make_all_invisible): Update.
8703 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
8704 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
8705 bool.
8706 (struct tui_win_info, struct tui_source_window_base)
8707 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
8708 * tui/tui-data.c (tui_init_generic_part): Update.
8709
cda37efb
TT
87102019-06-25 Tom Tromey <tom@tromey.com>
8711
8712 * tui/tui-wingeneral.c (tui_win_info::make_visible)
8713 (tui_source_window_base::make_visible): New methods.
8714 (make_all_visible): Make method call.
8715 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
8716 (struct tui_source_window_base, struct tui_cmd_window): Override
8717 make_visible.
8718 (tui_win_is_source_type): Don't declare.
8719 * tui/tui-data.c (tui_win_is_source_type): Remove.
8720
6a0ee02c
TT
87212019-06-25 Tom Tromey <tom@tromey.com>
8722
8723 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
8724 NULL check.
8725
63901aec
TT
87262019-06-25 Tom Tromey <tom@tromey.com>
8727
8728 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
8729 Inline constructor. Add initializers for members.
8730 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
8731 constructors; now inline in class.
8732
ceb13a13
TT
87332019-06-25 Tom Tromey <tom@tromey.com>
8734
8735 * tui/tui-regs.c (tui_show_registers): Update.
8736 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
8737 bool.
8738 * tui/tui-data.c (tui_data_window::clear_detail)
8739 (tui_data_window): Update.
8740
238eb706
TT
87412019-06-25 Tom Tromey <tom@tromey.com>
8742
8743 * tui/tui-windata.c (tui_display_all_data)
8744 (tui_display_data_from_line, tui_display_data_from)
8745 (tui_check_data_values, tui_data_window::do_scroll_vertical):
8746 Update.
8747 * tui/tui-regs.c (tui_last_regs_line_no)
8748 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
8749 (tui_show_registers, tui_show_register_group)
8750 (tui_display_registers_from, tui_display_reg_element_at_line)
8751 (tui_display_registers_from_line, tui_check_register_values)
8752 (tui_reg_next, tui_reg_prev): Update.
8753 * tui/tui-layout.c (tui_set_layout, show_data): Update.
8754 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
8755 tui_data_window.
8756 (struct tui_win_info) <detail>: Remove. Add new fields from
8757 tui_data_info.
8758 (TUI_DATA_WIN): Add cast.
8759 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
8760 (~tui_data_window): Simplify.
8761
81491aa0
TT
87622019-06-25 Tom Tromey <tom@tromey.com>
8763
8764 * tui/tui-layout.c (show_source_disasm_command)
8765 (show_source_or_disasm_and_command): Update.
8766 * tui/tui-io.c (update_cmdwin_start_line)
8767 (tui_redisplay_readline): Update.
8768 * tui/tui-data.h (struct tui_command_info): Remove.
8769 (struct tui_win_info) <detail>: Remove command_info member.
8770 (struct tui_data_window) <start_line>: New member, from
8771 tui_command_info.
8772 (TUI_CMD_WIN): Add casts.
8773
e6e41501
TT
87742019-06-25 Tom Tromey <tom@tromey.com>
8775
8776 * tui/tui-winsource.c (tui_update_source_window)
8777 (tui_refill_source_window)
8778 (tui_source_window_base::do_scroll_horizontal)
8779 (tui_update_breakpoint_info, tui_set_exec_info_content)
8780 (tui_show_exec_info_content, tui_erase_exec_info_content)
8781 (tui_clear_exec_info_content): Update.
8782 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
8783 Update.
8784 * tui/tui-win.c (make_invisible_and_set_new_height)
8785 (make_visible_with_new_height): Update.
8786 * tui/tui-source.c (tui_set_source_content)
8787 (tui_show_symtab_source): Update.
8788 * tui/tui-layout.c (extract_display_start_addr)
8789 (show_source_disasm_command, show_data)
8790 (make_source_or_disasm_window)
8791 (show_source_or_disasm_and_command): Update.
8792 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
8793 (tui_disasm_window::do_scroll_vertical): Remove shadowing
8794 "gdbarch".
8795 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
8796 to tui_source_window_base.
8797 (struct tui_win_info) <detail>: Remove source_info member.
8798 (struct tui_source_window_base) <has_locator>: Inline.
8799 Move contents from tui_source_info; rename has_locator member to
8800 m_has_locator.
8801 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
8802 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
8803 header file.
8804 (tui_source_window_base::clear_detail, ~tui_source_window_base):
8805 Simplify.
8806 (tui_free_all_source_wins_content): Cast to
8807 tui_source_window_base.
8808
44f0e208
TT
88092019-06-25 Tom Tromey <tom@tromey.com>
8810
8811 * tui/tui-win.c (make_invisible_and_set_new_height)
8812 (make_visible_with_new_height): Call has_locator method.
8813 * tui/tui-layout.c (show_source_disasm_command, show_data)
8814 (show_source_or_disasm_and_command): Update for bool change.
8815 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
8816 (tui_win_info) <has_locator>: New method.
8817 (struct tui_source_window_base) <has_locator>: New method.
8818 (tui_win_has_locator): Don't declare.
8819 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
8820 from tui_win_has_locator.
8821 (tui_source_window_base): Use false, not FALSE.
8822
7778b912
TT
88232019-06-25 Tom Tromey <tom@tromey.com>
8824
8825 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
8826 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
8827 clear_detail method directly.
8828 (tui_clear_win_detail): Remove.
8829
f83d391c
TT
88302019-06-25 Tom Tromey <tom@tromey.com>
8831
8832 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
8833 "this", not TUI_DISASM_WIN.
8834
13446e05
TT
88352019-06-25 Tom Tromey <tom@tromey.com>
8836
8837 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
8838 declare.
8839 * tui/tui-winsource.c
8840 (tui_source_window_base::do_scroll_horizontal): Rename from
8841 tui_horizontal_source_scroll.
8842 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
8843 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
8844 from tui_vertical_data_scroll.
8845 * tui/tui-win.h (tui_scroll): Don't declare.
8846 * tui/tui-win.c (tui_win_info::forward_scroll)
8847 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
8848 (tui_win_info::right_scroll): Rename and update.
8849 (tui_scroll_forward_command, tui_scroll_backward_command)
8850 (tui_scroll_left_command, tui_scroll_right_command): Update.
8851 (tui_scroll): Remove.
8852 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
8853 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
8854 from tui_vertical_source_scroll.
8855 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
8856 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
8857 from tui_vertical_disassem_scroll.
8858 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
8859 do_scroll_horizontal>: New methods.
8860 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
8861 Likewise.
8862 (struct tui_source_window_base): Add do_scroll_horizontal.
8863 (struct tui_source_window, struct tui_disasm_window): Add
8864 do_scroll_vertical.
8865 (struct tui_data_window, struct tui_cmd_window): Add
8866 do_scroll_horizontal and do_scroll_vertical.
8867 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
8868
5cf82909
TT
88692019-06-25 Tom Tromey <tom@tromey.com>
8870
8871 * tui/tui-data.h (struct tui_source_window_base): New struct.
8872 (struct tui_source_window): Derive from tui_source_window_base.
8873 (struct tui_disasm_window): New struct.
8874 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
8875 from tui_source_window::clear_detail.
8876 (tui_source_window_base): Rename from tui_source_window.
8877 (~tui_source_window_base): Rename from ~tui_source_window.
8878 (tui_alloc_win_info): Create a tui_disasm_window.
8879
ee1d42d6
TT
88802019-06-25 Tom Tromey <tom@tromey.com>
8881
8882 * tui/tui-data.h (struct tui_source_window)
8883 (struct tui_data_window): Declare destructors.
8884 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
8885 destructors.
8886 (tui_win_info): Simplify.
8887
b4eb2452
TT
88882019-06-25 Tom Tromey <tom@tromey.com>
8889
8890 * tui/tui-winsource.c (tui_display_main)
8891 (tui_update_source_windows_with_addr)
8892 (tui_update_all_breakpoint_info): Update.
8893 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
8894 (new_height_ok, parse_scrolling_args): Update.
8895 * tui/tui-stack.c (tui_show_frame_info): Update.
8896 * tui/tui-data.h (struct tui_list): Remove.
8897 (tui_source_windows): Return a reference to a std::vector.
8898 * tui/tui-data.c (source_windows): Now a std::vector.
8899 (tui_source_windows): Change return type.
8900 (tui_clear_source_windows): Rewrite.
8901 (tui_clear_source_windows_detail, tui_add_to_source_windows)
8902 (tui_free_all_source_wins_content): Rewrite.
8903
8761a91b
TT
89042019-06-25 Tom Tromey <tom@tromey.com>
8905
8906 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
8907 (struct tui_data_window, struct tui_cmd_window): Declare
8908 clear_detail method.
8909 * tui/tui-data.c (tui_source_window::clear_detail)
8910 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
8911 methods.
8912 (tui_clear_win_detail): Simplify.
8913
0ed69eda
TT
89142019-06-25 Tom Tromey <tom@tromey.com>
8915
8916 * tui/tui-layout.c (make_source_window, make_disasm_window)
8917 (make_source_or_disasm_window): Remove win_info_ptr parameter.
8918 Return the new window.
8919 (show_source_disasm_command, show_data)
8920 (show_source_or_disasm_and_command): Update.
8921
82432e10
TT
89222019-06-25 Tom Tromey <tom@tromey.com>
8923
8924 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
8925 parameter. Return the new window.
8926 (show_source_disasm_command): Update and remove NULL check.
8927 (show_source_or_disasm_and_command): Update.
8928
ec328aa5
TT
89292019-06-25 Tom Tromey <tom@tromey.com>
8930
8931 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
8932
33b906ab
TT
89332019-06-25 Tom Tromey <tom@tromey.com>
8934
8935 * tui/tui-data.h (struct tui_win_info): Make constructor
8936 protected. Make destructor virtual. Add initializers.
8937 (tui_source_window, tui_data_window, tui_cmd_window): New
8938 classes.
8939 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
8940 constructor. Add "type" parameter.
8941 (tui_source_window, tui_data_window, tui_cmd_window): New
8942 constructors.
8943 (tui_alloc_win_info): Instantiate the appropriate subclass.
8944
e7e11af4
TT
89452019-06-25 Tom Tromey <tom@tromey.com>
8946
8947 * tui/tui-win.c (tui_resize_all): Use delete.
8948 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
8949 destructor.
8950 (tui_free_window): Don't declare.
8951 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
8952 Update.
8953
6792b55e
TT
89542019-06-25 Tom Tromey <tom@tromey.com>
8955
8956 * tui/tui-data.h (struct tui_win_info): Add constructor.
8957 * tui/tui-data.c (tui_alloc_win_info): Use new.
8958 (tui_free_window): Use delete.
8959
f95675e1
TT
89602019-06-22 Tom Tromey <tom@tromey.com>
8961
8962 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
8963 declare.
8964 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
8965
5bff081c
TT
89662019-06-22 Tom Tromey <tom@tromey.com>
8967
8968 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
8969 declare.
8970 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
8971
47e3f474
TV
89722019-06-22 Tom de Vries <tdevries@suse.de>
8973
8974 * dwarf2read.c (create_addrmap_from_aranges)
8975 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
8976 instead of '%zu'.
8977
fd5866f6
SM
89782019-06-21 Simon Marchi <simon.marchi@efficios.com>
8979
8980 * dwarf2read.h (dwarf2_section_info_def): Remove.
8981 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
8982 * dwarf2read.c (struct dwo_sections) <types>: Change type to
8983 std::vector<dwarf2_section_info>.
8984 (struct dwo_file) <~dwo_file>: Remove.
8985 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
8986 types field.
8987 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
8988 (dwarf2_read_debug_names): Likewise.
8989 (create_debug_types_hash_table): Change parameter type to
8990 array_view, adjust code accordingly.
8991 (dwarf2_locate_dwo_sections): Adjust to std::vector.
8992 (partial_die_info::fixup): Likewise.
8993 (determine_prefix): Likewise.
8994 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
8995
fb1eb2f9
SM
89962019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
8997
8998 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
8999 gdb_bfd_ref_ptr.
9000 <~dwo_file>: Remove call to gdb_bfd_unref.
9001 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
9002 gdb_bfd_ref_ptr::get.
9003
51ac9db5
SM
90042019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
9005
9006 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
9007 type to htab_up.
9008 * dwarf2read.c (struct dwo_file): Initialize fields.
9009 <~dwo_file>: New.
9010 (free_dwo_file): Remove, move content to ~dwo_file.
9011 (struct dwo_file_deleter): Remove.
9012 (dwo_file_up>: Remove custom deleter.
9013 (free_dwo_files): Remove.
9014 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
9015 dwo_files.
9016 (process_skeletonless_type_units): Call unique_ptr::get.
9017 (allocate_dwo_file_hash_table): Add deleter to created hash
9018 table. Change return type to htab_up.
9019 (lookup_dwo_file_slot): Don't memset dwo_file, call
9020 unique_ptr::get.
9021 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
9022 (create_dwo_unit_in_dwp_v2): Likewise.
9023 (open_and_init_dwo_file): Likewise.
9024 (free_dwo_file_from_slot): Remove.
9025
dc4ccb6f
SM
90262019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
9027
9028 * dwarf2read.h (struct dwarf2_section_info) <readin,
9029 is_virtual>: Change type to bool.
9030 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
9031 true instead of 1.
9032
e6a1c5cb
TT
90332019-06-19 Tom Tromey <tom@tromey.com>
9034
9035 * tui/tui-data.h (tui_init_content_element): Don't declare.
9036
6f6ffbeb
TT
90372019-06-19 Tom Tromey <tom@tromey.com>
9038
9039 * tui/tui-data.h (tui_init_win_info): Don't declare.
9040
f23f598e
TV
90412019-06-19 Tom de Vries <tdevries@suse.de>
9042
9043 * dwarf2read.h (abstract_to_concrete): Change type to
9044 std::unordered_map<sect_offset, std::vector<sect_offset>,
9045 gdb::hash_enum<sect_offset>>.
9046
680e1bee
TT
90472019-06-19 Tom Tromey <tromey@adacore.com>
9048
9049 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
9050 EVAL_AVOID_SIDE_EFFECTS specially.
9051
dcf37923
TT
90522019-06-19 Tom Tromey <tromey@adacore.com>
9053
9054 * source-cache.c (highlighter): New global.
9055 (source_cache::get_source_lines): Create a highlighter on demand.
9056
494986d5
AB
90572019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
9058
9059 * defs.h (deprecated_interactive_hook): Delete declaration.
9060 * interps.c (clear_interpreter_hooks): Remove use of
9061 deprecated_interactive_hook.
9062 * top.c (deprecated_interactive_hook): Delete definition.
9063 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
9064
3360b6e7
TV
90652019-06-18 Tom de Vries <tdevries@suse.de>
9066
9067 PR gdb/24515
9068 * dwarf2read.h (abstract_to_concrete): Change type from
9069 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
9070 std::unordered_map<sect_offset, std::vector<sect_offset>>.
9071 * dwarf2read.c (read_variable): Update.
9072 (dwarf2_fetch_die_loc_sect_off): Update.
9073
310b3441
TV
90742019-06-17 Tom de Vries <tdevries@suse.de>
9075
9076 PR gdb/24617
9077 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
9078 accessing parent[parent_len - 1].
9079
ba9777be
PP
90802019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
9081
9082 PR gdb/24364
9083 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
9084 call dtrace_process_dof with NULL dof.
9085
2b9f6e89
TV
90862019-06-16 Tom de Vries <tdevries@suse.de>
9087
9088 PR gdb/24445
9089 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
9090
431b3ead
TT
90912019-06-16 Tom Tromey <tom@tromey.com>
9092
9093 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
9094 (make_all_visible): Use address of member.
9095
d04b44a1
TT
90962019-06-16 Tom Tromey <tom@tromey.com>
9097
9098 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
9099 (tui_free_window, free_content, free_content_elements): Remove
9100 unnecessary cast.
9101 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
9102 cast.
9103 * tui/tui-regs.c (tui_show_register_group)
9104 (tui_display_registers_from, tui_display_reg_element_at_line):
9105 Remove unnecessary cast.
9106
bf5142e7
AB
91072019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
9108
9109 * linux-nat.c (normal_mask): Delete.
9110 (_initialize_linux_nat): Don't initialise normal_mask.
9111
c4973306
SM
91122019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
9113
9114 PR gdb/24445
9115 * dwarf-index-write.h (write_psymtabs_to_index): Add
9116 dwz_basename parameter.
9117 * dwarf-index-write.c (write_gdbindex): Move file writing to
9118 write_gdbindex_1. Change return type void.
9119 (assert_file_size): Move up, remove filename parameter.
9120 (write_gdbindex_1): New function.
9121 (write_debug_names): Change return type to void, call
9122 assert_file_size.
9123 (struct index_wip_file): New struct.
9124 (write_psymtabs_to_index): Add dwz_basename parameter. Move
9125 file logic to index_wip_file. Write index for dwz file if
9126 needed.
9127 (save_gdb_index_command): Pass basename of dwz file, if present.
9128 * dwarf-index-cache.c (index_cache::store): Obtain and pass
9129 build-id of dwz file, if present.
9130 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
9131 (dwarf2_get_dwz_file): Likewise.
9132 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
9133 (dwarf2_get_dwz_file): Likewise.
9134
395f9c91
TT
91352019-06-16 Tom Tromey <tom@tromey.com>
9136
9137 * coffread.c (process_coff_symbol): Use xstrdup.
9138 * value.c (create_internalvar): Use xstrdup.
9139
cafb3438
TT
91402019-06-16 Tom Tromey <tom@tromey.com>
9141
9142 * valops.c (value_cast, value_slice): Remove unnecessary cast.
9143 * breakpoint.c (stopin_command, stopat_command)
9144 (until_break_command, decode_location_default): Remove unnecessary
9145 cast.
9146 * utils.c (subset_compare): Remove unnecessary cast.
9147 * ada-lang.c (ada_update_initial_language): Remove unnecessary
9148 cast.
9149 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
9150 cast.
9151 * infcmd.c (path_command): Remove unnecessary cast.
9152 * coffread.c (decode_type): Remove unnecessary cast.
9153 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
9154 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
9155 * tui/tui-stack.c (tui_show_locator_content)
9156 (tui_show_frame_info): Remove unnecessary cast.
9157 * tui/tui-win.c (tui_scroll_forward_command)
9158 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
9159 (parse_scrolling_args): Remove unnecessary cast.
9160 * tui/tui-data.c (init_win_info, tui_del_window)
9161 (tui_free_window, tui_del_data_windows, tui_free_data_content)
9162 (free_content_elements): Remove unnecessary cast.
9163 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
9164 unnecessary cast.
9165 * tui/tui-source.c (tui_set_source_content)
9166 (tui_vertical_source_scroll): Remove unnecessary cast.
9167 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
9168 cast.
9169 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
9170 * tui/tui-regs.c (tui_display_registers_from)
9171 (tui_display_register): Remove unnecessary cast.
9172 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
9173 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
9174 (make_visible): Remove unnecessary cast.
9175 * tui/tui-winsource.c (tui_erase_source_content)
9176 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
9177 unnecessary cast.
9178 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
9179 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
9180 * stabsread.c (read_type, read_array_type, read_range_type):
9181 Remove unnecessary cast.
9182 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
9183 (parse_symbol, parse_type, upgrade_type, parse_external)
9184 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
9185 unnecessary cast.
9186 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
9187
730ead81
TT
91882019-06-16 Tom Tromey <tom@tromey.com>
9189
9190 * tui/tui-data.c (tui_alloc_generic_win_info)
9191 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
9192 checks.
9193
584a927c
AB
91942019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
9195 Andrew Burgess <andrew.burgess@embecosm.com>
9196
9197 * f-typeprint.c (f_print_type): Don't return early for not
9198 associated or not allocated types.
9199 (f_type_print_varspec_suffix): Add print_rank parameter and print
9200 ranks of array types in case they dangling.
9201 (f_type_print_base): Add print_rank parameter.
9202
30056ea0
AB
92032019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
9204
9205 * NEWS: Mention new MI commands.
9206 * break-catch-throw.c (enum exception_event_kind): Move to
9207 breakpoint.h.
9208 (print_mention_exception_catchpoint): Output text as a single
9209 message.
9210 (catch_exception_command_1): Rename to...
9211 (catch_exception_event): ...this, make non-static, update header
9212 command, and change some parameter types.
9213 (catch_catch_command): Update for changes to
9214 catch_exception_command_1.
9215 (catch_throw_command): Likewise.
9216 (catch_rethrow_command): Likewise.
9217 * breakpoint.c (enum exception_event_kind): Delete.
9218 * breakpoint.h (enum exception_event_kind): Moved here from
9219 break-catch-throw.c.
9220 (catch_exception_event): Declare.
9221 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
9222 (mi_cmd_catch_throw): New function.
9223 (mi_cmd_catch_rethrow): New function.
9224 (mi_cmd_catch_catch): New function.
9225 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
9226 'catch-catch' entries.
9227 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
9228 (mi_cmd_catch_rethrow): Declare.
9229 (mi_cmd_catch_catch): Declare.
9230
ec8e2b6d
AB
92312019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
9232
9233 * annotate.c (annotate_source_line): Change return type to void,
9234 update implementation to match.
9235 * annotate.h (annotate_source_line): Change return type to void,
9236 update header comment.
9237 * stack.c (print_frame_info): Don't change what frame information
9238 is printed based on whether annotations are on or not.
9239
0d3abd8c
AB
92402019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
9241
9242 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
9243 (annotate_source): Make static.
9244 (annotate_source_line): Moved from source.c and renamed from
9245 identify_source_line. Update the return type.
9246 * annotate.h (annotate_source): Delete declaration.
9247 (annotate_source_line): Declaration moved from source.h, and
9248 renamed from identify_source_line. Return type updated.
9249 * source.c (identify_source_line): Moved to annotate.c and renamed
9250 to annotate_source_line.
9251 (info_line_command): Remove check of annotation_level.
9252 * source.h (identify_source_line): Move declaration to annotate.h
9253 and rename to annotate_source_line.
9254 * stack.c: Add 'annotate.h' include.
9255 (print_frame_info): Remove check of annotation_level before
9256 calling annotate_source_line.
9257
00df30ae
AB
92582019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
9259
9260 * source-cache.c (source_cache::get_plain_source_lines): Use
9261 open_source_file_with_line_charpos instead of just
9262 open_source_file, remove call to find_source_lines.
9263 (source_cache::get_source_lines): Likewise.
9264 * source.c (find_source_lines): Make static.
9265 (get_filename_and_charpos): Renamed into...
9266 (open_source_file_with_line_charpos): ..this along with changes to
9267 return a scoped_fd, and some other minor clean ups.
9268 (identify_source_line): Use open_source_file_with_line_charpos.
9269 (search_command_helper): Use open_source_file_with_line_charpos
9270 instead of just open_source_file, remove call to
9271 find_source_lines.
9272 * source.h (open_source_file_with_line_charpos): Declare new
9273 function.
9274 (find_source_lines): Delete declaration.
9275
afda45a2
AB
92762019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
9277
9278 * source.c (get_filename_and_charpos): Remove fullname
9279 parameter.
9280 (identify_source_line): Update call to get_filename_and_charpos.
9281
0735b091
TT
92822019-06-14 Tom Tromey <tromey@adacore.com>
9283
9284 PR gdb/24502:
9285 * ui-style.h (skip_ansi_escape): Update comment.
9286 * ui-file.h (class no_terminal_escape_file): New class.
9287 * ui-file.c (no_terminal_escape_file::write)
9288 (no_terminal_escape_file::puts): New methods.
9289 * cli/cli-logging.c (handle_redirections): Use
9290 no_terminal_escape_file.
9291
52ce35e2
TT
92922019-06-14 Tom Tromey <tromey@adacore.com>
9293
9294 * NEWS: Move convenience variable news above Python news.
9295
73cc7272
TT
92962019-06-14 Tom Tromey <tom@tromey.com>
9297
9298 * gnulib: Move directory to top-level.
9299 * configure.ac: Don't configure gnulib.
9300 * configure: Rebuild.
9301 * common/common-defs.h: Use new path to gnulib.
9302 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
9303 (GNULIB_H): Remove.
9304 (INCGNU): Look in new gnulib location.
9305 (HFILES_NO_SRCDIR): Remove gnulib files.
9306 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
9307 (generated_files): Remove GNULIB_H.
9308 ($(LIBGNU), all-lib): Remove targets.
9309 (distclean): Don't mention GNULIB_BUILDDIR.
9310 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
9311
f5686554
TT
93122019-06-14 Tom Tromey <tromey@adacore.com>
9313
9314 * symfile.c (add_symbol_file_command): Remove obsolete comment.
9315 Warn if symbol file does not provide any symbols.
9316
a0c1ffed
TT
93172019-06-14 Tom Tromey <tromey@adacore.com>
9318
9319 * source.c (find_and_open_source): Respect basenames_may_differ.
9320
7c39e397
AB
93212019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
9322
9323 * annotate.c (annotate_breakpoints_invalid): Make use of
9324 scoped_restore_terminal_state.
9325 (annotate_frames_invalid): Likewise.
9326
f411722c
TT
93272019-06-14 Tom Tromey <tromey@adacore.com>
9328
9329 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
9330 allow assignment to an internalvar.
9331
4268ec18
TT
93322019-06-14 Tom Tromey <tromey@adacore.com>
9333
9334 * ada-lex.l: Allow "_" in attribute names.
9335
abdb711e
TT
93362019-06-14 Tom Tromey <tromey@adacore.com>
9337
9338 PR gdb/24653:
9339 * regcache.c (registers_changed): Don't call alloca.
9340 * top.c (execute_command): Don't call alloca.
9341
4c048731
PA
93422019-06-13 Pedro Alves <palves@redhat.com>
9343
9344 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
9345 'expression'. When parsing an expression, error out if there's
9346 junk after "unlimited".
9347 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
9348 (do_set_command): Adjust calls to is_unlimited_literal.
9349
66eb1ed3
PA
93502019-06-13 Pedro Alves <palves@redhat.com>
9351
9352 * compile/compile.c (make_compile_options_def_group): Add braces
9353 around array_view initializer.
9354 * thread.c (make_thread_apply_all_options_def_group)
9355 (make_thread_apply_all_options_def_group): Likewise.
9356
3345721a
PA
93572019-06-13 Pedro Alves <palves@redhat.com>
9358
9359 * NEWS (New commands): Mention "maint test-options
9360 require-delimiter", "maint test-options unknown-is-error", "maint
9361 test-options unknown-is-operand" and "maint show
9362 test-options-completion-result".
9363 (New command options, command completion): New section.
9364 (Completion improvements): New section.
9365 Mention that you can abbreviate "unlimited".
9366
6206060d
PA
93672019-06-13 Pedro Alves <palves@redhat.com>
9368
9369 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
9370 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
9371 * unittests/cli-utils-selftests.c (test_parse_flags)
9372 (test_parse_flags_qcs): Delete.
9373 (test_cli_utils): Don't call deleted functions.
9374
6665660a
PA
93752019-06-13 Pedro Alves <palves@redhat.com>
9376
9377 * thread.c: Include "cli/cli-option.h".
9378 (tp_array_compar_ascending): Global.
9379 (tp_array_compar): Delete function.
9380 (tp_array_compar_ascending, tp_array_compar_descending): New
9381 functions.
9382 (ascending_option_def, qcs_flag_option_def)
9383 (thr_qcs_flags_option_defs)
9384 (make_thread_apply_all_options_def_group)
9385 (make_thread_apply_options_def_group): New.
9386 (thread_apply_all_command): Use gdb::option::process_options.
9387 (thread_apply_command_completer)
9388 (thread_apply_all_command_completer): New.
9389 (thread_apply_command): Use gdb::option::process_options.
9390 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
9391 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
9392 to generate help text of "thread apply". Adjust "taas"'s help.
9393 * tid-parse.c (tid_range_parser::in_thread_range): New method.
9394 * tid-parse.h (tid_range_parser::in_thread_range): New method.
9395
f7e13587
PA
93962019-06-13 Pedro Alves <palves@redhat.com>
9397
9398 * thread.c (thread_apply_command): Check for invalid TID with
9399 isdigit instead of !isalpha.
9400
5d707134
PA
94012019-06-13 Pedro Alves <palves@redhat.com>
9402
9403 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
9404 (validate_flags_qcs): New.
9405 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
9406 (validate_flags_qcs): Declare.
9407 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
9408 (make_frame_apply_options_def_group): New.
9409 (frame_apply_command_count): Process options with
9410 gdb::option::process_options.
9411 (frame_apply_completer): New.
9412 (frame_apply_level_completer, frame_apply_all_completer)
9413 (frame_apply_completer): New.
9414 (_initialize_stack): Update help of "frame apply", "frame apply
9415 level", "frame apply all" and "faas" to mention supported options
9416 and install command completers.
9417 * stack.h (frame_apply_all_completer): Declare.
9418 * thread.c: Include "stack.h".
9419 (tfaas_command): Add "--".
9420 (_initialize_thread): Update help "tfaas" to mention supported
9421 options and install command completer.
9422
272d4594
PA
94232019-06-13 Pedro Alves <palves@redhat.com>
9424
9425 * completer.c (complete_nested_command_line): New.
9426 (gdb_completion_word_break_characters_throw): Add assertion.
9427 * completer.h (complete_nested_command_line): Declare.
9428
90a1ef87
PA
94292019-06-13 Pedro Alves <palves@redhat.com>
9430
9431 * stack.c (parse_backtrace_qualifiers): New.
9432 (backtrace_command): Use it.
9433 (backtrace_command_completer): Complete on qualifiers.
9434
d4c16835
PA
94352019-06-13 Pedro Alves <palves@redhat.com>
9436
9437 * frame.c: Include "cli/cli-option.h.
9438 (user_set_backtrace_options): New.
9439 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
9440 Delete.
9441 (get_prev_frame): Adjust.
9442 (boolean_option_def, uinteger_option_def)
9443 (set_backtrace_option_defs): New.
9444 (_initialize_frame): Adjust and use
9445 gdb::option::add_setshow_cmds_for_options to install "set
9446 backtrace past-main" and "set backtrace past-entry".
9447 * frame.h: Include "cli/cli-option.h".
9448 (struct frame_print_options): Forward declare.
9449 (print_frame_arguments_all, print_frame_arguments_scalars)
9450 (print_frame_arguments_none): Declare.
9451 (print_entry_values): Delete declaration.
9452 (struct frame_print_options, user_frame_print_options): New.
9453 (struct set_backtrace_options): New.
9454 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
9455 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
9456 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
9457 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
9458 (list_args_or_locals): Add frame_print_options parameter.
9459 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
9460 * python/py-framefilter.c (enumerate_args): Pass down
9461 USER_FRAME_PRINT_OPTIONS.
9462 * stack.c: Include "cli/cli-option.h".
9463 (print_frame_arguments_all, print_frame_arguments_scalars)
9464 (print_frame_arguments_none): Declare.
9465 (print_raw_frame_arguments, print_entry_values): Delete.
9466 (user_frame_print_options): New.
9467 (boolean_option_def, enum_option_def, frame_print_option_defs):
9468 New.
9469 (struct backtrace_cmd_options): New.
9470 (bt_flag_option_def): New.
9471 (backtrace_command_option_defs): New.
9472 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
9473 (print_frame_arg, read_frame_arg, print_frame_args)
9474 (print_frame_info, print_frame): Add frame_print_options parameter
9475 and use it.
9476 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
9477 (backtrace_command_1): Add frame_print_options and
9478 backtrace_cmd_options parameters and use them.
9479 (make_backtrace_options_def_group): New.
9480 (backtrace_command): Process command options with
9481 gdb::option::process_options.
9482 (backtrace_command_completer): New.
9483 (_initialize_stack): Extend "backtrace"'s help to mention
9484 supported options. Install completer for "backtrace".
9485 Install some settings commands with add_setshow_cmds_for_options.
9486
2daf894e
PA
94872019-06-13 Pedro Alves <palves@redhat.com>
9488
9489 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
9490 and that "set/show print raw frame-arguments" are now deprecated.
9491
9492 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
9493 command.
9494 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
9495 * stack.c (_initialize_stack): Install "set/show print
9496 raw-frame-arguments", and deprecate "set/show print raw
9497 frame-arguments".
9498 * valprint.c (_initialize_valprint): Deprecate "set/show print
9499 raw".
9500
e6ed716c
PA
95012019-06-13 Pedro Alves <palves@redhat.com>
9502
9503 * compile/compile.c (struct compile_options): New.
9504 (compile_flag_option_def, compile_command_option_defs)
9505 (make_compile_options_def_group): New.
9506 (compile_file_command): Handle options with
9507 gdb::option::process_options.
9508 (compile_file_command_completer): New function.
9509 (compile_code_command): Handle options with
9510 gdb::option::process_options.
9511 (compile_code_command_completer): New function.
9512 (_initialize_compiler): Install completers for "compile code" and
9513 "compile file". Mention available options in "compile code" and
9514 "compile code"'s help.
9515 * completer.c (advance_to_completion_word): New, factored out from
9516 ...
9517 (advance_to_expression_complete_word_point): ... this.
9518 (advance_to_filename_complete_word_point): New.
9519 * completer.h (advance_to_filename_complete_word_point): New
9520 declaration.
9521
7d8062de
PA
95222019-06-13 Pedro Alves <palves@redhat.com>
9523
9524 * compile/compile.c: Include "cli/cli-option.h".
9525 (compile_print_value): Scope data pointer is now a
9526 value_print_options pointer; adjust.
9527 (compile_print_command): Process options. Scope data pointer is
9528 now a value_print_options pointer; adjust.
9529 (_initialize_compile): Update "compile print"'s help to include
9530 supported options. Install a completer for "compile print".
9531 * cp-valprint.c (show_vtblprint, show_objectprint)
9532 (show_static_field_print): Delete.
9533 (_initialize_cp_valprint): Don't install "set print
9534 static-members", "set print vtbl", "set print object" here.
9535 * printcmd.c: Include "cli/cli-option.h" and
9536 "common/gdb_optional.h".
9537 (print_command_parse_format): Rework to fill in a
9538 value_print_options instead of a format_data.
9539 (print_value): Change parameter type from format_data pointer to
9540 value_print_options reference. Adjust.
9541 (print_command_1): Process options. Adjust to pass down a
9542 value_print_options.
9543 (print_command_completer): New.
9544 (_initialize_printcmd): Install print_command_completer as
9545 handle_brkchars completer for the "print" command. Update
9546 "print"'s help to include supported options.
9547 * valprint.c: Include "cli/cli-option.h".
9548 (show_vtblprint, show_objectprint, show_static_field_print): Moved
9549 here from cp-valprint.c.
9550 (boolean_option_def, uinteger_option_def)
9551 (value_print_option_defs, make_value_print_options_def_group):
9552 New. Use gdb::option::add_setshow_cmds_for_options to install
9553 "set print elements", "set print null-stop", "set print repeats",
9554 "set print pretty", "set print union", "set print array", "set
9555 print address", "set print symbol", "set print array-indexes".
9556 * valprint.h: Include <string> and "cli/cli-option.h".
9557 (make_value_print_options_def_group): Declare.
9558 (print_value): Change parameter type from format_data pointer to
9559 value_print_options reference.
9560 (print_command_completer): Declare.
9561
9d0faba9
PA
95622019-06-13 Pedro Alves <palves@redhat.com>
9563
9564 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
9565 (COMMON_SFILES): Add maint-test-settings.c.
9566 * cli/cli-decode.c (boolean_enums): New global, factored out from
9567 ...
9568 (add_setshow_boolean_cmd): ... here.
9569 * cli/cli-decode.h (boolean_enums): Declare.
9570 * cli/cli-option.c: New file.
9571 * cli/cli-option.h: New file.
9572 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
9573 factored out from ...
9574 (parse_cli_boolean_value(const char *)): ... this.
9575 (is_unlimited_literal): Change parameter type to pointer to
9576 pointer. Adjust and advance ARG pointer.
9577 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
9578 (parse_cli_var_enum): New, factored out from ...
9579 (do_set_command): ... this. Adjust.
9580 * cli/cli-setshow.h (parse_cli_boolean_value)
9581 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
9582 (parse_cli_var_enum): Declare.
9583 * cli/cli-utils.c: Include "cli/cli-option.h".
9584 (get_ulongest): New.
9585 * cli/cli-utils.h (get_ulongest): Declare.
9586 (check_for_argument): New overloads.
9587 * maint-test-options.c: New file.
9588
2c722807
PA
95892019-06-13 Pedro Alves <palves@redhat.com>
9590
9591 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
9592 parse a range if "-" is at the end of the string.
9593
dee7b4c8
PA
95942019-06-13 Pedro Alves <palves@redhat.com>
9595
9596 * cli/cli-setshow.c (parse_auto_binary_operation)
9597 (parse_cli_boolean_value): Don't allow "o".
9598
dca0f6c0
PA
95992019-06-13 Pedro Alves <palves@redhat.com>
9600
9601 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
9602 * NEWS: Mention maint test-settings KIND.
9603 * maint-test-settings.c: New file.
9604
597bf39d
PA
96052019-06-13 Pedro Alves <palves@redhat.com>
9606
9607 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
9608 completer.
9609 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
9610 "set" completers.
9611
48c410fb
PA
96122019-06-13 Pedro Alves <palves@redhat.com>
9613
9614 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
9615 after item.
9616
93bcb043
PA
96172019-06-13 Pedro Alves <palves@redhat.com>
9618
9619 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
9620
cbba3ecd
PA
96212019-06-13 Pedro Alves <palves@redhat.com>
9622
9623 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
9624 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
9625 call.
9626 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
9627 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
9628 calls.
9629 (check_for_argument): Skip spaces after argument.
9630
b9a3f842
PA
96312019-06-13 Pedro Alves <palves@redhat.com>
9632
9633 * thread.c (thread_apply_command): Adjust TID parsing.
9634 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
9635 detected before end of string.
9636 (tid_is_in_list): Error out if LIST is invalid.
9637
3844e605
PA
96382019-06-13 Pedro Alves <palves@redhat.com>
9639
9640 * completer.c (complete_line_internal_1): Rewind completion word
9641 point.
9642 (completion_tracker::advance_custom_word_point_by): Change
9643 parameter type to int.
9644 * completer.h (completion_tracker::advance_custom_word_point_by):
9645 Likewise.
9646
00b56dbe
PA
96472019-06-13 Pedro Alves <palves@redhat.com>
9648
9649 * completer.c (advance_to_completion_word): Handle delimiters.
9650
d106773e
PA
96512019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
9652
9653 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
9654
08f10e02
TT
96552019-06-11 Tom Tromey <tom@tromey.com>
9656
9657 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
9658 (xmalloc_failed): Move to alloc.c.
9659 * alloc.c: New file.
9660 * Makefile.in (COMMON_SFILES): Add alloc.c.
9661
1c7fe951
TT
96622019-06-11 Tom Tromey <tom@tromey.com>
9663
9664 * nat/linux-waitpid.c: Don't include server.h.
9665 (linux_debug): Remove.
9666 (my_waitpid): Update.
9667
89549d7f
TT
96682019-06-11 Tom Tromey <tromey@adacore.com>
9669
9670 * infcall.c (_initialize_infcall): Remove trailing newline from
9671 help.
9672 * user-regs.c (_initialize_user_regs): Remove trailing newline
9673 from help.
9674 * typeprint.c (_initialize_typeprint): Remove trailing newline
9675 from help.
9676 * reverse.c (_initialize_reverse): Remove trailing newlines from
9677 help.
9678 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
9679 from help.
9680 * language.c (add_set_language_command): Remove trailing newline
9681 from help.
9682 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
9683 help.
9684 * disasm.c (_initialize_disasm): Remove trailing newline from
9685 help.
9686 * top.c (init_main): Remove trailing newline from help.
9687 * interps.c (_initialize_interpreter): Remove trailing newline
9688 from help.
9689 * btrace.c (_initialize_btrace): Remove trailing newlines from
9690 help.
9691 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
9692 from help.
9693 * python/python.c (_initialize_python): Remove trailing newline
9694 from help.
9695 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
9696 help.
9697 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
9698 from help. Reformat some text.
9699 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
9700 from help.
9701 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
9702 newline from help.
9703
86108c13
TT
97042019-06-11 Tom Tromey <tromey@adacore.com>
9705
9706 * darwin-nat.c (darwin_decode_exception_message)
9707 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
9708
a7067863
AB
97092019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
9710
9711 * valops.c (value_slice): Check for not allocated or not
9712 associated values.
9713
9ab08412
TV
97142019-06-10 Tom de Vries <tdevries@suse.de>
9715
9716 PR gdb/24618
9717 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
9718 sure an empty slot (defined by a 32-bit zero pair) is recognized as
9719 invalid.
9720
f19e22e9
TV
97212019-06-10 Tom de Vries <tdevries@suse.de>
9722
9723 PR gdb/24611
9724 * linespec.c (linespec_lexer_lex_string): Remove incorrect
9725 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
9726
e99f9db0
TV
97272019-06-10 Tom de Vries <tdevries@suse.de>
9728
9729 PR symtab/24545
9730 * symtab.c (struct demangled_name_entry): Add language field.
9731 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
9732 static minimal symbol". Set and use language field.
9733
9bf7038b
TT
97342019-06-10 Tom Tromey <tromey@adacore.com>
9735
9736 * ada-lang.c (_initialize_ada_language): Update help text.
9737
422186a9
TT
97382019-06-10 Tom Tromey <tromey@adacore.com>
9739
9740 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
9741 with a newline.
9742 * guile/guile.c (handle_boot_error): Don't end warning with a
9743 newline.
9744 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
9745 warning with a newline.
9746 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
9747 newline.
9748 (s12z_frame_cache): Likewise.
9749 * dwarf-index-cache.c (index_cache::store): Don't end warning with
9750 a newline.
9751 * solib-svr4.c (disable_probes_interface): Don't end warning with
9752 a newline.
9753 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
9754 newline.
9755 * python/python.c (do_finish_initialization): Don't end warning
9756 with a newline.
9757
25ce02ee
TT
97582019-06-10 Tom Tromey <tom@tromey.com>
9759
9760 * python/py-breakpoint.c (gdbpy_breakpoint_created)
9761 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
9762 gdbpy_enter.
9763
caa429d8
TT
97642019-06-10 Tom Tromey <tromey@adacore.com>
9765
9766 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
9767 data.
9768 (elf_new_init): Don't call stabsread_new_init.
9769 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
9770 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
9771 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
9772
81873cc8
TV
97732019-06-10 Tom de Vries <tdevries@suse.de>
9774
9775 PR symtab/16264
9776 PR symtab/24517
9777 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
9778
4fa0265e
РИ
97792019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
9780
9781 * source.c (find_and_open_source): Also rewrite relative file
9782 names.
9783
1a3da2cd
AB
97842019-04-26 Amos Bird <amosbird@gmail.com>
9785
9786 * annotate.c (annotate_thread_exited): Add "thread-exited"
9787 annotation.
9788
3847a7bf
TT
97892019-06-06 Tom Tromey <tromey@adacore.com>
9790
9791 * maint.h (class scoped_command_stats): Use
9792 DISABLE_COPY_AND_ASSIGN.
9793 <print_time>: New method.
9794 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
9795 print_time.
9796 (scoped_command_stats::print_time): New method.
9797
312617a3
AB
97982019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
9799
9800 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
9801 instructions of lengths 6 or 8 bytes.
9802
b02f78f9
PA
98032019-06-04 Pedro Alves <palves@redhat.com>
9804
9805 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
9806
9807 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
9808 * breakpoint.c (condition_completer): Likewise.
9809 * cli/cli-dump.c (scan_expression): Likewise.
9810 * common/filestuff.c (mkdir_recursive): Likewise.
9811 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
9812 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
9813 (gdb_abspath): Likewise.
9814 * compile/compile-cplus-types.c
9815 (compile_cplus_instance::decl_name): Likewise.
9816 * completer.c (complete_explicit_location):
9817 (signal_completer, reg_or_group_completer_1): Likewise.
9818 * cp-support.c (cp_remove_params_if_any): Likewise.
9819 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
9820 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
9821 * infcmd.c (strip_bg_char): Likewise.
9822 * linespec.c (copy_token_string): Likewise.
9823 * mi/mi-main.c (output_cores): Likewise.
9824 * psymtab.c (psymtab_search_name):
9825 * symfile.c (test_set_ext_lang_command): Likewise.
9826 * target.c (target_fileio_read_stralloc): Likewise.
9827 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
9828 * value.c (complete_internalvar): Likewise.
9829
e1f2e1a2
CB
98302019-06-04 Christian Biesinger <cbiesinger@google.com>
9831
9832 Add objfile property to gdb.Type.
d3238f7d
PA
9833 * NEWS: Mention Python API addition.
9834 * python/py-type.c (typy_get_objfile): New method.
e1f2e1a2 9835
e664d728
PW
98362019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9837
9838 * NEWS: Mention the new set|show style [title|highlight].
9839 Mention changes to "show style", "help" and "apropos".
9840
66d8c862
PW
98412019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9842
9843 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
9844 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
9845 instead of print_help_for_command.
9846 (print_doc_of_command): New function.
9847 (help_list): Add 'apropos -v word' suggestion.
9848 (print_help_for_command): Style the command name using title style.
9849 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
9850 (_initialize_cli_cmds): Describe -v in apropos_command help.
9851
9303eb2f
PW
98522019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9853
9854 * cli/cli-style.h (cli_style_option): Add name in constructor,
9855 add m_name class member, add constructor with intensity,
9856 add name class function.
9857 (cli_style_option::add_setshow_commands): Remove name argument.
9858 (highlight_style, title_style): New styles.
9859 * cli/cli-style.c (do_show): New function that shows a style
9860 characteristic styling the style name with itself.
9861 (set_style_name): New function.
9862 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
9863 Update all callers according to the changes in cli/cli-style.h.
9864 * utils.h (fputs_highlighted): New function.
9865 * utils.c (fputs_highlighted): Likewise.
9866
e2c52041
PW
98672019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9868
9869 * NEWS: Mention new pipe command and new convenience variables.
9870
947d3946
PW
98712019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9872
9873 * cli/cli-cmds.c (pipe_command): New function.
9874 (_initialize_cli_cmds): Call add_com for pipe_command.
9875 Define | as an alias for pipe.
9876 (exit_status_set_internal_vars): New function.
9877 (shell_escape): Call exit_status_set_internal_vars.
9878 cli/cli-decode.c (find_command_name_length): Recognize | as
9879 a single character command.
9880
b8fd0918
PW
98812019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9882
9883 * gdbcmd.h (execute_command_to_ui_file): New declaration.
9884 top.c (execute_command_to_ui_file): New function, mostly a copy
9885 of execute_command_to_string.
9886 (execute_command_to_string): Implement by calling
9887 execute_command_to_ui_file.
9888
68bb5386
PW
98892019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9890
9891 * top.h (saved_command_line): Remove declaration.
9892 * top.c (previous_saved_command_line, previous_repeat_arguments):
9893 New variables.
9894 (saved_command_line): Make static, define together with other
9895 'repeat variables'.
9896 (dont_repeat): Clear repeat_arguments.
9897 (repeat_previous, get_saved_command_line, save_command_line):
9898 New functions.
9899 (gdb_init): Initialize saved_command_line
9900 and previous_saved_command_line.
9901 * main.c (captured_main_1): Remove saved_command_line initialization.
9902 * event-top.c (handle_line_of_input): Update to use
9903 the new 'repeat' related functions instead of direct access to
9904 saved_command_line.
9905 * command.h (repeat_previous, get_saved_command_line,
9906 save_command_line): New declarations.
9907 (dont_repeat): Add comment.
9908
bfcdb852
TT
99092019-05-30 Tom Tromey <tromey@adacore.com>
9910
9911 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
9912 Fix comment.
9913 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
9914
0ef209f2
JV
99152019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
9916
9917 PR cli/24587
9918 * completer.c (complete): Initialize variable word.
9919
955b06fa
SDJ
99202019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
9921
9922 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
9923 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
9924 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
9925 'body' is NULL to the outter 'if', protecting the '!is_define'
9926 situation as well.
9927
fa9c3fa0
TT
99282019-05-29 Tom Tromey <tromey@adacore.com>
9929
9930 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
9931 (dwarf_unknown): New function.
9932 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
9933 (dwarf_type_encoding_name): Use dwarf_unknown.
9934
4330d61d
TT
99352019-05-29 Tom Tromey <tromey@adacore.com>
9936
9937 PR c++/20020:
9938 * cp-valprint.c (cp_print_value_fields): Call
9939 cp_print_static_field inside "try".
9940
33a6bc35
TT
99412019-05-29 Tom Tromey <tromey@adacore.com>
9942
9943 * inflow.c (struct terminal_info): Add default operator=.
9944 * configure: Rebuild.
9945 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
9946 -Wdeprecated-copy-dtor, -Wredundant-move.
9947
000439d5
TT
99482019-05-29 Tom Tromey <tromey@adacore.com>
9949
9950 * NEWS: Add entry.
9951 * infcmd.c (print_return_value_1): Handle finish_print
9952 option.
9953 (show_print_finish): New function.
9954 (_initialize_infcmd): Add "set/show print finish" commands.
9955 * valprint.c (user_print_options): Initialize new member.
9956 * valprint.h (struct value_print_options) <finish_print>: New
9957 member.
9958
c0e70c62
TT
99592019-05-28 Tom Tromey <tromey@adacore.com>
9960
9961 * ada-lang.c (ada_remove_Xbn_suffix)
9962 (find_old_style_renaming_symbol)
9963 (parse_old_style_renaming): Remove.
9964 (ada_find_renaming_symbol): Don't call
9965 find_old_style_renaming_symbol.
9966 (ada_is_renaming_symbol): Rename from
9967 ada_find_renaming_symbol. Remove "block" parameter. Return
9968 bool. Now static.
9969 (ada_read_var_value): Update and simplify.
9970 * ada-exp.y (write_var_or_type): Remove old code.
9971
766f8836
AH
99722019-05-28 Alan Hayward <alan.hayward@arm.com>
9973
68255adc 9974 PR gdb/25010
766f8836
AH
9975 * event-top.c: Remove include comment.
9976 * inflow.c (class scoped_ignore_sigttou): Move from here...
9977 * inflow.h (class scoped_ignore_sigttou): ...to here.
9978 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
9979 * top.c: Remove include comment.
9980
eb41253a
TT
99812019-05-27 Tom Tromey <tom@tromey.com>
9982
9983 * NEWS: Fix typo.
9984
4ca51187
TT
99852019-05-22 Tom Tromey <tromey@adacore.com>
9986
9987 * target.c (target_follow_exec): Constify parameter.
9988 * target-delegates.c: Rebuild.
9989 * remote.c (remote_target::follow_exec): Constify parameter.
9990 * infrun.c (follow_exec): Constify parameter.
9991 * target.h (struct target_ops) <follow_exec>: Constify parameter.
9992 (target_follow_exec): Likewise.
9993
8fca4da0
AH
99942019-05-22 Alan Hayward <alan.hayward@arm.com>
9995
9996 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
9997 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
9998
b7060614
AH
99992019-05-22 Alan Hayward <alan.hayward@arm.com>
10000
10001 * NEWS: Add debugredirect and testsuite sections.
10002
0a5954bd
SC
100032019-05-22 Simon Cook <simon.cook@embecosm.com>
10004
10005 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
10006 target descriptions using exclusively floating point register name
10007 aliases.
10008
dc42e902
AB
100092019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
10010
10011 PR gdb/18644:
10012 * f-lang.c (build_fortran_types): Handle the case where
10013 gdbarch_floatformat_for_type returns a nullptr.
10014
fb7806c7
TV
100152019-05-21 Tom de Vries <tdevries@suse.de>
10016
10017 PR cli/24587
10018 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
10019
34d11c68
AB
100202019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
10021
10022 PR gdb/18644:
10023 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
10024 16-byte floats.
10025 * i386-tdep.c (i386_floatformat_for_type): Use
10026 floatformats_ia64_quad for the 16-byte floating point component
10027 within a fortran 32-byte complex number.
10028
122cf0f2
AB
100292019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
10030
10031 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
10032 delete default constructor.
10033 (find_partial_die): Update to return const struct.
10034 (partial_die_parent_scope): Move variable declaration into scope
10035 of its use and change its type to auto.
10036 (guess_partial_die_structure_name): Likewise.
10037 (partial_die_info::fixup): Likewise.
10038
33d0e35a
TT
100392019-05-17 Tom Tromey <tromey@adacore.com>
10040
10041 * source.c (find_and_open_source): Remove cast.
10042
a45575b0
TT
100432019-05-17 Tom Tromey <tromey@adacore.com>
10044
10045 * annotate.c (annotate_source): Make "filename" const.
10046 * annotate.h (annotate_source): Use const.
10047
81f47ac2
AH
100482019-05-17 Alan Hayward <alan.hayward@arm.com>
10049
10050 * disasm.c (set_disassembler_options): Send errors to stderr.
10051
ca1285d1
AH
100522019-05-17 Alan Hayward <alan.hayward@arm.com>
10053
10054 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
10055 (cli_interp_base::set_logging): Check debug_redirect.
10056 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
10057 * cli/cli-logging.c (debug_redirect): Add static variable.
10058 (pop_output_files): Add default param.
10059 (handle_redirections): Print debug setting.
10060 (show_logging_command): Likewise.
10061 (_initialize_cli_logging): Add debugredirect command.
10062 * interps.c (current_interp_set_logging): Add debug_redirect
10063 parameter.
10064 * interps.h (set_logging): Add debug_redirect parameter.
10065 (current_interp_set_logging): Likewise.
10066 * mi/mi-common.h: Likewise.
10067 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
10068
100692019-05-17 Alan Hayward <alan.hayward@arm.com>
f3a09c80
AH
10070 Tom Tromey <tromey@adacore.com>
10071
10072 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
10073 directly.
10074 * cli/cli-interp.h (make_logging_output): Remove declaration.
10075 * cli/cli-logging.c (make_logging_output): Remove function.
10076 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
10077 directly.
10078 * ui-file.c (tee_file::tee_file): Remove bools.
10079 (tee_file::~tee_file): Remove deletes.
10080 * ui-file.h (tee_file): Remove bools.
10081
26648588
JV
100822019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
10083
10084 * mi/mi-cmds.h (mi_cmd_complete): New function.
10085 * mi/mi-main.c (mi_cmd_complete): Likewise.
10086 * mi/mi-cmds.c: Define new MI command -complete.
10087 * NEWS: Mention new -complete command.
10088
6e035501
JV
100892019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
10090
10091 * completer.h (complete): New function.
10092 * completer.c (complete): Likewise.
10093 * cli/cli-cmds.c: (complete_command): Update to use new complete()
10094 function defined in completer.h.
10095
7d0e2ece
JV
100962019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
10097
e79be6e5 10098 * MAINTAINERS (Write After Approval): Add myself.
7d0e2ece 10099
fb816e8b
TV
101002019-05-17 Tom de Vries <tdevries@suse.de>
10101
10102 PR gdb/24094
10103 * dwarf2read.c (struct cu_partial_die_info): New struct.
10104 (find_partial_die): Return cu_partial_die_info.
10105 (partial_die_parent_scope, guess_partial_die_structure_name)
10106 (partial_die_info::fixup): Handle new return type of find_partial_die.
10107
677052f2
SDJ
101082019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
10109
a1726c38 10110 PR breakpoints/24541
677052f2
SDJ
10111 * stap-probe.c (stap_parse_register_operand): Make "regname" an
10112 "std::string", simplifying the algorithm.
10113
f3da9116
SDJ
101142019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
10115
10116 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
10117 (stap_static_probe_ops::get_probes): Likewise.
10118
f1bb75ab
SDJ
101192019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
10120
10121 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
10122 '-')" and "else if".
10123 (stap_parse_single_operand): Join checks for
10124 "gdbarch_stap_parse_special_token_p" and
10125 "gdbarch_stap_parse_special_token" in the same "if" statement.
10126 Invert check when verifying for operation on register
10127 displacement.
10128
3ca58cde
SDJ
101292019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
10130
10131 * stap-probe.c (stap_get_opcode): Update comment.
10132 (stap_get_expected_argument_type): Likewise.
10133 (handle_stap_probe): Likewise.
10134
af2d9bee
SDJ
101352019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
10136
10137 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
10138 return type to 'bool'. Adjust comment. Use 'bool' when
10139 appropriate.
10140 (i386_stap_parse_special_token_three_arg_disp): Likewise.
10141 * stap-probe.c (stap_parse_argument_1): Likewise.
10142 (stap_is_operator): Likewise.
10143 (stap_is_generic_prefix): Likewise.
10144 (stap_is_register_prefix): Likewise.
10145 (stap_is_register_indirection_prefix): Likewise.
10146 (stap_is_integer_prefix): Likewise.
10147 (stap_generic_check_suffix): Likewise.
10148 (stap_check_integer_suffix): Likewise.
10149 (stap_check_register_suffix): Likewise.
10150 (stap_check_register_indirection_suffix): Likewise.
10151 (stap_parse_register_operand): Likewise.
10152 (stap_parse_single_operand): Likewise.
10153 (stap_parse_argument_1): Likewise.
10154 (stap_probe::get_argument_count): Likewise.
10155 (stap_is_operator): Likewise.
10156
61c9c421
TT
101572019-05-16 Tom Tromey <tromey@adacore.com>
10158
10159 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
10160 keyword to foreach.
10161
9ddc1af1
SM
101622019-05-15 Simon Marchi <simon.marchi@efficios.com>
10163
10164 * linux-thread-db.c (try_thread_db_load_1): Change return type
10165 to bool.
10166 (try_thread_db_load): Likewise.
10167 (try_thread_db_load_from_pdir_1): Likewise.
10168 (try_thread_db_load_from_pdir): Likewise.
10169 (try_thread_db_load_from_sdir): Likewise.
10170 (try_thread_db_load_from_dir): Likewise.
10171 (thread_db_load_search): Likewise.
10172 (has_libpthread): Likewise.
10173 (thread_db_load): Likewise.
10174
7bede828
SDJ
101752019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
10176
10177 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
10178 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
10179 NULL, and complain/return if that's the case.
10180
c5358db4
JD
101812019-05-15 John Darrington <john@darrington.wattle.id.au>
10182
10183 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
10184 (advance, posn, abstract_read_memory): New functions.
10185 [struct mem_read_abstraction]: New struct.
10186 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
10187
c408a94f
TT
101882019-05-14 Tom Tromey <tromey@adacore.com>
10189
10190 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
10191 value is not lval_memory.
10192
e7bd7fba
TT
101932019-05-14 Tom Tromey <tromey@adacore.com>
10194
10195 * solib.c (info_sharedlibrary_command): Style the file name.
10196
a6d0f249
AH
101972019-05-14 Alan Hayward <alan.hayward@arm.com>
10198
10199 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
10200 (aarch64_vnv_type): Likewise.
10201 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
10202 * common/tdesc.c: Likewise.
10203 * common/tdesc.h (enum tdesc_type_kind): Likewise.
10204 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
10205 * features/aarch64-fpu.xml: Add ieee half view.
10206 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
10207 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
10208 * gdbtypes.h (struct builtin_type): Likewise.
10209 (struct objfile_type): Likewise.
10210
66b8bb74
SM
102112019-05-12 Paul Naert <paul.naert@polymtl.ca>
10212
10213 * language.c (language_sniff_from_mangled_name): Fix "langauge"
10214 typo.
10215 * location.h (string_to_event_location): Likewise.
10216
21c219fd
JB
102172019-05-11 Joel Brobecker <brobecker@adacore.com>
10218
10219 GDB 8.3 released.
10220
13674803
SM
102212019-05-10 Simon Marchi <simon.marchi@efficios.com>
10222
10223 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
10224 New variable declaration.
10225 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
10226 New variable.
10227 (print_one_breakpoint): Use ui_out::test_flags and new global
10228 variable to compute use_fixed_output.
10229 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
10230 Remove.
10231 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
10232 (mi_multi_location_breakpoint_output_fixed): Remove.
10233 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
10234 new variable.
10235 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
10236 fix_multi_location_breakpoint_output flag if version >= 3.
10237 * ui-out.h (enum ui_out_flag)
10238 <fix_multi_location_breakpoint_output>: New enumerator.
10239
a9eac7f9
SM
102402019-05-10 Simon Marchi <simon.marchi@efficios.com>
10241
10242 * contrib/cc-with-tweaks.sh: Validate dwz's work.
10243
71bed2db
TT
102442019-05-10 Tom Tromey <tromey@adacore.com>
10245
10246 * ada-lang.c (catch_ada_completer): New function.
10247 (_initialize_ada_language): Use it.
10248
24c54127
TT
102492019-05-10 Tom Tromey <tromey@adacore.com>
10250
10251 * thread.c (print_thread_info): Make "requested_threads" const.
10252 * gdbthread.h (print_thread_info): Make "requested_threads"
10253 const.
10254 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
10255 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
10256
7a102139
TT
102572019-05-08 Tom Tromey <tom@tromey.com>
10258
10259 * gdbtypes.c (objfile_type_data): Change type.
10260 (objfile_type, _initialize_gdbtypes): Update.
10261
924d79e2
TT
102622019-05-08 Tom Tromey <tom@tromey.com>
10263
10264 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
10265 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
10266 (_initialize_dwarf2_frame): Update.
10267
4c58e337
TT
102682019-05-08 Tom Tromey <tom@tromey.com>
10269
10270 * objc-lang.c (objc_objfile_data): Change type.
10271 (find_methods): Update.
10272 (_initialize_objc_lang): Remove.
10273
d772d2ab
TT
102742019-05-08 Tom Tromey <tom@tromey.com>
10275
10276 * stabsread.c (rs6000_builtin_type_data): Change type.
10277 (rs6000_builtin_type, _initialize_stabsread): Update.
10278
d11d83f4
TT
102792019-05-08 Tom Tromey <tom@tromey.com>
10280
10281 * mips-tdep.c (mips_pdr_data): Remove.
10282 (_initialize_mips_tdep): Update.
10283
9a73f0ad
TT
102842019-05-08 Tom Tromey <tom@tromey.com>
10285
10286 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
10287 (hppa_init_objfile_priv_data, read_unwind_info)
10288 (find_unwind_entry, _initialize_hppa_tdep): Update.
10289
8127a2fa
TT
102902019-05-08 Tom Tromey <tom@tromey.com>
10291
10292 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
10293 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
10294 on obstack.
10295 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
10296
91d3055d
TT
102972019-05-08 Tom Tromey <tom@tromey.com>
10298
10299 * mdebugread.c (basic_type_data): Change type.
10300 (basic_type, _initialize_mdebugread): Update.
10301
31930bd3
TT
103022019-05-08 Tom Tromey <tom@tromey.com>
10303
10304 * common/gdb_unique_ptr.h (struct noop_deleter): New.
10305
bdb3ed9e
TT
103062019-05-08 Tom Tromey <tom@tromey.com>
10307
10308 * nto-tdep.c (nto_inferior_data_reg): Change type.
10309 (nto_inferior_data): Update.
10310 (nto_inferior_data_cleanup, nto_new_inferior_data)
10311 (_initialize_nto_tdep): Remove.
10312 * nto-tdep.h (struct nto_inferior_data): Add initializers.
10313
f37b313d
TT
103142019-05-08 Tom Tromey <tom@tromey.com>
10315
10316 * ada-lang.c (struct ada_inferior_data): Add initializers.
10317 (ada_inferior_data): Change type.
10318 (ada_inferior_data_cleanup): Remove.
10319 (get_ada_inferior_data, ada_inferior_exit)
10320 (struct ada_pspace_data): Add initializers, destructor.
10321 (ada_pspace_data_handle): Change type.
10322 (get_ada_pspace_data): Update.
10323 (ada_pspace_data_cleanup): Remove.
10324
24699405
TT
103252019-05-08 Tom Tromey <tom@tromey.com>
10326
10327 * coffread.c (struct coff_symfile_info): Add initializers.
10328 (coff_objfile_data_key): Move lower. Change type.
10329 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
10330 Update.
10331 (coff_free_info): Remove.
10332
d4e05d2f
TT
103332019-05-08 Tom Tromey <tom@tromey.com>
10334
10335 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
10336 (fbsd_pspace_data_handle): Move lower. Change type.
10337 (get_fbsd_pspace_data): Update.
10338 (fbsd_pspace_data_cleanup): Remove.
10339 (_initialize_fbsd_tdep): Update.
10340
14ef6690
TT
103412019-05-08 Tom Tromey <tom@tromey.com>
10342
10343 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
10344 (get_ada_tasks_pspace_data): Update.
10345 (ada_tasks_pspace_data_cleanup): Remove.
10346 (_initialize_tasks): Update.
10347 (ada_tasks_inferior_data_handle): Change type.
10348 (get_ada_tasks_inferior_data): Update.
10349 (ada_tasks_inferior_data_cleanup): Remove.
10350 (struct ada_tasks_pspace_data): Add initializers.
10351
814cf43a
TT
103522019-05-08 Tom Tromey <tom@tromey.com>
10353
10354 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
10355 * symfile-debug.c (debug_sym_get_probes): Change type.
10356 * stap-probe.c (handle_stap_probe):
10357 (stap_static_probe_ops::get_probes): Change type.
10358 * probe.h (class static_probe_ops) <get_probes>: Change type.
10359 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
10360 (parse_probes_in_pspace): Update.
10361 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
10362 Update.
10363 (any_static_probe_ops::get_probes): Change type.
10364 * elfread.c (elfread_data): New typedef.
10365 (probe_key): Change type.
10366 (elf_get_probes): Likewise. Update.
10367 (probe_key_free): Remove.
10368 (_initialize_elfread): Update.
10369 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
10370 Change type.
10371 (dtrace_process_dof_probe, dtrace_process_dof)
10372 (dtrace_static_probe_ops::get_probe): Change type.
10373
02dc647e
TT
103742019-05-08 Tom Tromey <tom@tromey.com>
10375
10376 * xcoffread.c (struct xcoff_symfile_info): Rename from
10377 coff_symfile_info. Add initializers.
10378 (xcoff_objfile_data_key): Move lower. Change type.
10379 (XCOFF_DATA): Rewrite.
10380 (xcoff_free_info): Remove.
10381 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
10382 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
10383 (xcoff_initial_scan): Update.
10384
09232438
TT
103852019-05-08 Tom Tromey <tom@tromey.com>
10386
10387 * solib-svr4.c (struct svr4_info): Add initializers and
10388 destructor.
10389 <probes_table>: Now an htab_up.
10390 (solib_svr4_pspace_data): Change type.
10391 (free_probes_table): Simplify.
10392 (~svr4_info): Rename from svr4_pspace_data_cleanup.
10393 (get_svr4_info, probes_table_htab_remove_objfile_probes)
10394 (probes_table_remove_objfile_probes, register_solib_event_probe)
10395 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
10396 (_initialize_svr4_solib): Update.
10397
7b4a314f
TT
103982019-05-08 Tom Tromey <tom@tromey.com>
10399
10400 * remote.c (remote_pspace_data): Change type.
10401 (remote_pspace_data_cleanup): Remove.
10402 (get_remote_exec_file, set_pspace_remote_exec_file)
10403 (_initialize_remote): Update.
10404
51d3063a
TT
104052019-05-08 Tom Tromey <tom@tromey.com>
10406
10407 * breakpoint.c (breakpoint_objfile_key): Change type.
10408 (get_breakpoint_objfile_data): Update.
10409 (free_breakpoint_objfile_data): Remove.
10410 (_initialize_breakpoint): Update.
10411
89fb8848
TT
104122019-05-08 Tom Tromey <tom@tromey.com>
10413
10414 * linux-tdep.c (struct linux_info): Add initializers.
10415 (linux_inferior_data): Move. Change type.
10416 (invalidate_linux_cache_inf): Update.
10417 (linux_inferior_data_cleanup): Remove.
10418 (get_linux_inferior_data, _initialize_linux_tdep): Update.
10419
e9b89e2d
TT
104202019-05-08 Tom Tromey <tom@tromey.com>
10421
10422 * auxv.c (auxv_inferior_data): Move. Change type.
10423 (auxv_inferior_data_cleanup): Remove.
10424 (invalidate_auxv_cache_inf): Rewrite.
10425 (get_auxv_inferior_data, _initialize_auxv): Update.
10426
8c42777c
TT
104272019-05-08 Tom Tromey <tom@tromey.com>
10428
10429 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
10430 (symfile_debug_objfile_data_key): Change type.
10431 (symfile_debug_installed, debug_qf_has_symbols)
10432 (debug_qf_find_last_source_symtab)
10433 (debug_qf_forget_cached_source_info)
10434 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
10435 (debug_qf_print_stats, debug_qf_dump)
10436 (debug_qf_expand_symtabs_for_function)
10437 (debug_qf_expand_all_symtabs)
10438 (debug_qf_expand_symtabs_with_fullname)
10439 (debug_qf_map_matching_symbols)
10440 (debug_qf_expand_symtabs_matching)
10441 (debug_qf_find_pc_sect_compunit_symtab)
10442 (debug_qf_map_symbol_filenames)
10443 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
10444 (debug_sym_new_init, debug_sym_init, debug_sym_read)
10445 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
10446 (debug_sym_read_linetable, debug_sym_relocate): Update.
10447 (symfile_debug_free_objfile): Remove.
10448 (install_symfile_debug_logging, _initialize_symfile_debug):
10449 Update.
10450
5bfd760d
TT
104512019-05-08 Tom Tromey <tom@tromey.com>
10452
10453 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
10454 allocate_on_obstack.
10455 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
10456 (get_dwarf2_per_objfile): Update.
10457 (set_dwarf2_per_objfile): Remove.
10458 (dwarf2_has_info, dwarf2_get_section_info): Update.
10459 (dwarf2_free_objfile): Remove.
10460 (_initialize_dwarf2_read): Update.
10461
e85e19b4
TT
104622019-05-08 Tom Tromey <tom@tromey.com>
10463
10464 * auto-load.c (struct auto_load_pspace_info): Add destructor and
10465 initializers.
10466 <unsupported_script_warning_printed,
10467 script_not_found_warning_printed>: Now bool.
10468 (auto_load_pspace_data): Change type.
10469 (~auto_load_pspace_info): Rename from
10470 auto_load_pspace_data_cleanup.
10471 (get_auto_load_pspace_data, init_loaded_scripts_info)
10472 (clear_section_scripts, maybe_print_unsupported_script_warning)
10473 (maybe_print_script_not_found_warning, _initialize_auto_load):
10474 Update.
10475
f6aa7436
TT
104762019-05-08 Tom Tromey <tom@tromey.com>
10477
10478 * objfiles.c (objfile_pspace_info): Add destructor and
10479 initializers.
10480 (objfiles_pspace_data): Change type.
10481 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
10482 (get_objfile_pspace_data): Update.
10483 (objfiles_bfd_data): Change type.
10484 (get_objfile_bfd_data): Update.
10485 (objfile_bfd_data_free, _initialize_objfiles): Remove.
10486
6ae614f6
TT
104872019-05-08 Tom Tromey <tom@tromey.com>
10488
10489 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
10490 Change type.
10491 (get_catch_syscall_inferior_data): Update.
10492 (catch_syscall_inferior_data_cleanup): Remove.
10493 (_initialize_break_catch_syscall): Update.
10494
6509b8eb
TT
104952019-05-08 Tom Tromey <tom@tromey.com>
10496
10497 * inflow.c (struct terminal_info): Add destructor and
10498 initializers.
10499 (inflow_inferior_data): Change type.
10500 (~terminal_info): Rename from inflow_inferior_data_cleanup.
10501 (get_inflow_inferior_data, inflow_inferior_exit)
10502 (swap_terminal_info, _initialize_inflow): Update.
10503
35632941
TT
105042019-05-08 Tom Tromey <tom@tromey.com>
10505
10506 * target-dcache.c (target_dcache_cleanup): Remove.
10507 (target_dcache_aspace_key): Change type.
10508 (target_dcache_init_p, target_dcache_invalidate)
10509 (target_dcache_get, target_dcache_get_or_init)
10510 (_initialize_target_dcache): Update.
10511 * dcache.h (struct dcache_deleter): New.
10512
3017b94d
TT
105132019-05-08 Tom Tromey <tom@tromey.com>
10514
10515 * symtab.c (struct symbol_cache): Add destructor and
10516 initializers.
10517 (symbol_cache_key): Move. Change type.
10518 (make_symbol_cache, free_symbol_cache): Remove.
10519 (get_symbol_cache): Update.
10520 (symbol_cache_cleanup): Remove.
10521 (ALL_PSPACES, symbol_cache_flush)
10522 (maintenance_print_symbol_cache)
10523 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
10524 Update.
10525
a32ad8c5
TT
105262019-05-08 Tom Tromey <tom@tromey.com>
10527
10528 * symtab.c (struct main_info): Add destructor and initializers.
10529 (main_progspace_key): Move. Change type.
10530 (get_main_info): Update.
10531 (main_info_cleanup): Remove.
10532 (_initialize_symtab): Update.
10533
5f6e90a0
TT
105342019-05-08 Tom Tromey <tom@tromey.com>
10535
10536 * registry.h (DECLARE_REGISTRY): Define the _key class.
10537
1bd0c6e4
AB
105382019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
10539
10540 * NEWS: Merge two 'New commands' sections.
10541
2228ef77
XR
105422019-05-08 Joel Brobecker <brobecker@adacore.com>
10543
10544 * ada-valprint.c (ada_val_print_gnat_array): Remove language
10545 parameter and use Ada language definition instead.
10546 (ada_val_print_ptr): Remove unused language parameter.
10547 (ada_val_print_num): Remove language parameter and use Ada language
10548 definition instead.
10549 (ada_val_print_enum, ada_val_print_flt): Remove unused language
10550 parameter.
10551 (ada_val_print_struct_union, ada_val_print_ref): Remove language
10552 parameter and use Ada language definition instead.
10553 (ada_val_print_1): Update all ada_val_print_xxx calls.
10554 Remove language parameter.
10555 (ada_val_print): Update ada_val_print_1 call.
10556
60fcc1c3
TT
105572019-05-08 Tom Tromey <tromey@adacore.com>
10558
10559 * remote.c (remote_hw_watchpoint_limit)
10560 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
10561 Now static.
10562
ed2b7c17
TT
105632019-05-08 Tom Tromey <tromey@adacore.com>
10564
10565 * maint.c (_initialize_maint_cmds): Move initialization code to
10566 remote.c.
10567 (watchdog, show_watchdog): Move to remote.c.
10568 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
10569 "watchdog" static.
10570 (_initialize_remote): Move initialization code from maint.c.
10571 * defs.h (watchdog): Don't declare.
10572
b0be6c91
TT
105732019-05-08 Tom Tromey <tromey@adacore.com>
10574
10575 * tui/tui-interp.c: Include main.h.
10576 * interps.c: Include main.h.
10577 * main.h (interpreter_p): Declare.
10578 * defs.h (interpreter_p): Don't declare.
10579
587ee17b
TT
105802019-05-08 Tom Tromey <tromey@adacore.com>
10581
10582 * dwarf2loc.c: Include dwarf2read.h.
10583 * defs.h (read_unsigned_leb128): Don't declare.
10584 * dwarf2read.h (read_unsigned_leb128): Declare.
10585
ca1df239
TT
105862019-05-08 Tom Tromey <tromey@adacore.com>
10587
10588 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
10589 method.
10590
99f20f08
TT
105912019-05-08 Tom Tromey <tromey@adacore.com>
10592
10593 * utils.c (fputs_maybe_filtered): Reset style after paging, even
10594 when no wrap column is set.
10595
80e55b13
TT
105962019-05-08 Tom Tromey <tromey@adacore.com>
10597
10598 * c-lang.c (c_get_string): Handle non-C-style arrays.
10599
9d3421af
TT
106002019-05-08 Tom Tromey <tromey@adacore.com>
10601
10602 * typeprint.c (print_offset_data::update): Print the bit offset,
10603 not the number of bits remaining.
10604
844333e2
TT
106052019-05-08 Tom Tromey <tromey@adacore.com>
10606
10607 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
10608 padding at end of comment.
10609
988915ee
TT
106102019-05-08 Tom Tromey <tromey@adacore.com>
10611
10612 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
10613 Compare main types.
10614
26bfd823
TT
106152019-05-06 Tom Tromey <tom@tromey.com>
10616
10617 * common/scoped_mmap.c: Include common-defs.h.
10618 * common/scoped_mmap.h: Don't include config.h.
10619
89055eaa
TT
106202019-05-04 Tom Tromey <tom@tromey.com>
10621
10622 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
10623 (struct aarch64_call_info): Add initializers.
10624 <si>: Now a std::vector.
10625 (pass_on_stack, aarch64_push_dummy_call): Update.
10626
5da01df5
TT
106272019-05-04 Simon Marchi <simon.marchi@efficios.com>
10628 Tom Tromey <tom@tromey.com>
10629
10630 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
10631 (ppc_threads): Now a std::vector. Now static.
10632 (hwdebug_find_thread_points_by_tid)
10633 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
10634 Update.
10635
fbdf05a1
TT
106362019-05-04 Tom Tromey <tom@tromey.com>
10637
10638 * arc-tdep.c (arc_tdesc_init): Return bool.
10639
06d16ec9
TT
106402019-05-04 Tom Tromey <tom@tromey.com>
10641
10642 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
10643 Use gdb_assert_not_reached.
10644
9c056022
TT
106452019-05-04 Tom Tromey <tom@tromey.com>
10646
10647 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
10648 "false".
10649
fa9c2a59
TT
106502019-05-04 Tom Tromey <tom@tromey.com>
10651
10652 * arc-tdep.c (arc_tdesc_init): Use bool.
10653
e2eb806a
TT
106542019-05-04 Tom Tromey <tom@tromey.com>
10655
10656 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
10657
6fe87677
TT
106582019-05-04 Tom Tromey <tom@tromey.com>
10659
10660 * cli/cli-cmds.c (valid_command_p): Return bool.
10661
7f008c9e
TT
106622019-05-04 Tom Tromey <tom@tromey.com>
10663
10664 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
10665 * command.h (valid_user_defined_cmd_name_p): Channge return type.
10666
b6484282
RT
106672019-05-04 Raul Tambre <raul@tambre.ee>
10668
10669 * python/lib/gdb/prompt.py (_ExtendedPrompt)
10670 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
10671 operator for comparison.
10672
af97b416
TT
106732019-05-04 Tom Tromey <tom@tromey.com>
10674
10675 * psymtab.c (psymbol_name_matches, match_partial_symbol)
10676 (lookup_partial_symbol, print_partial_symbols)
10677 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
10678 (psymbol_compare): Update.
10679 (add_psymbol_to_bcache): Clear the entire psymbol.
10680 (maintenance_check_psymtabs): Update.
10681 * psympriv.h (struct partial_symbol): Don't derive from
10682 general_symbol_info.
10683 <obj_section, unrelocated_address, address,
10684 set_unrelocated_address>: Update.
10685 <ginfo>: New member.
10686 * dwarf-index-write.c (write_psymbols, debug_names::insert)
10687 (debug_names::write_psymbols): Update.
10688
9d6d4be8
TV
106892019-05-04 Tom de Vries <tdevries@suse.de>
10690
10691 * contrib/cc-with-tweaks.sh: Support -n arg.
10692
66452beb
PW
106932019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10694
10695 * corelow.c (core_target::detach): Ensure frame cache and
10696 register caches are cleared.
10697 inferior.c (exit_inferior_1): Likewise.
10698
bde09ab7
TT
106992019-05-03 Sandra Loosemore <sandra@codesourcery.com>
10700 Tom Tromey <tom@tromey.com>
10701
10702 * dictionary.c (collate_pending_symbols_by_language): Remove
10703 "struct" from foreach.
10704 * symtab.c (lookup_global_symbol_from_objfile)
10705 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
10706 foreach.
10707 * ser-tcp.c (net_open): Remove "struct" from foreach.
10708 * objfiles.c (objfile_relocate, objfile_rebase)
10709 (objfile_has_symbols): Remove "struct" from foreach.
10710 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
10711 from foreach.
10712 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
10713 foreach.
10714 * darwin-nat.c (thread_info_from_private_thread_info): Remove
10715 "struct" from foreach.
10716 * ada-lang.c (create_excep_cond_exprs)
10717 (ada_exception_catchpoint_cond_string): Remove "struct" from
10718 foreach.
10719
222a8d25
TT
107202019-05-03 Tom Tromey <tromey@adacore.com>
10721
10722 * ada-exp.y (convert_char_literal): Check suffix of each
10723 enumerator.
10724
fcd60b84
DP
107252019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
10726
10727 PR ada/21406:
10728 * ada-exp.y (yywrap): Don't define.
10729 * ada-lex.l (%option): Add noyywrap
10730 (yywrap): Remove.
10731
5f2459c2
EZ
107322019-05-03 Eli Zaretskii <eliz@gnu.org>
10733
353ea2d1
EZ
10734 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
10735 _WIN32_WINNT to the XP level, unless already defined to a higher
10736 level.
10737
10738 * unittests/parse-connection-spec-selftests.c:
10739 * ser-tcp.c:
10740 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
10741 override.
10742
5f2459c2
EZ
10743 * symfile.c (find_separate_debug_file): Remove colon from the
10744 drive spec of DOS/Windows file names of the target, so that the
10745 file name produced from DEBUGDIR and the target's directory will
10746 be valid on DOS/Windows systems.
10747
80062eb9
AB
107482019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
10749
10750 * rust-lang.c (val_print_struct): Handle printing structures
10751 containing strings.
10752
b8c05e85
TT
107532019-05-02 Tom Tromey <tromey@adacore.com>
10754
10755 * valarith.c (_initialize_valarith): Remove.
10756
4504bbde
TT
107572019-05-01 Tom Tromey <tromey@adacore.com>
10758
10759 * ada-lang.c (ada_value_primitive_field): Treat more fields as
10760 bitfields.
10761
d48e62f4
TT
107622019-05-01 Tom Tromey <tromey@adacore.com>
10763
10764 * ada-lang.c (ada_value_assign): Correctly compute starting offset
10765 for big-endian copies.
10766
15f18d14
AT
107672019-04-30 Ali Tamur <tamur@google.com>
10768 * gdb/dwarf2read.c (read_3_bytes): New declaration.
10769 (read_attribute_value): Added DW_FORM_strx1-4 cases.
10770 (read_3_bytes): New function.
10771
ab4ee614
JB
107722019-04-30 Joel Brobecker <brobecker@adacore.com>
10773
10774 * windows-nat.c (main_thread_id): Delete.
10775 (handle_output_debug_string): Replace main_thread_id by
10776 current_event.dwThreadId.
10777 (fake_create_process): Likewise.
10778 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
10779 Do not set main_thread_id.
10780 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
10781 current_event.dwThreadId.
10782 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
10783
8ed5b76e
JB
107842019-04-30 Joel Brobecker <brobecker@adacore.com>
10785
10786 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
10787 Use current_event.dwThreadId instead of main_thread_id.
10788
2ff0a947
TT
107892019-04-30 Tom Tromey <tromey@adacore.com>
10790
10791 * ada-lang.c (ada_lookup_simple_minsyms): New function.
10792 (create_excep_cond_exprs): Iterate over program spaces.
10793 (ada_exception_catchpoint_cond_string): Examine all minimal
10794 symbols for exception types.
10795
a776957c
TT
107962019-04-30 Tom Tromey <tromey@adacore.com>
10797
10798 PR c++/24470:
10799 * dwarf2read.c (process_structure_scope): Handle case where type
10800 has template parameters but no symbol was created.
10801
bc68014d
AB
108022019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10803 Chris January <chris.january@arm.com>
10804
10805 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
10806 qualifier.
10807 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
10808
f1fdc960
AB
108092019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10810
10811 * f-typeprint.c (f_print_type): Update rules for printing
10812 whitespace.
10813 (f_type_print_varspec_suffix): Likewise.
10814
bf7a4de1
AB
108152019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10816 Chris January <chris.january@arm.com>
10817
10818 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
10819 function arguments.
10820
bbe75b9d
AB
108212019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10822
10823 * f-lang.c (build_fortran_types): Change name of void type to
10824 lower case.
10825 * f-typeprint.c (f_type_print_base): Print the name of the void
10826 type, rather than a fixed string.
10827 * f-valprint.c (f_decorations): Use lower case void string.
10828
1db455a7
AB
108292019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10830 Chris January <chris.january@arm.com>
10831
10832 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
10833 types for Fortran.
10834
b6d03bb2
AB
108352019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10836 Chris January <chris.january@arm.com>
10837 David Lecomber <david.lecomber@arm.com>
10838
10839 * f-exp.y (BINOP_INTRINSIC): New token.
10840 (exp): New parser rule handling BINOP_INTRINSIC.
10841 (f77_keywords): Add new builtin procedures.
10842 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
10843 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
10844 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
10845 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
10846 (print_unop_subexp_f): New function.
10847 (print_binop_subexp_f): New function.
10848 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
10849 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
10850 (dump_subexp_body_f): Likewise.
10851 (operator_check_f): Likewise.
10852 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
10853 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
10854
83228e93
AB
108552019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10856
10857 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
10858 UNOP_KIND.
10859 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
10860 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
10861 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
10862 (operator_length_f): New fuction.
10863 (print_subexp_f): New function.
10864 (op_name_f): New function.
10865 (dump_subexp_body_f): New function.
10866 (operator_check_f): New function.
10867 (exp_descriptor_f): Replace standard expression handling functions
10868 with new functions.
10869 * gdb/fortran-operator.def: New file.
10870 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
10871 * gdb/std-operator.def: Remove UNOP_KIND.
10872
6fdcd7cc
AB
108732019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10874
10875 * std-operator.def: Remove unbalanced, stray double quote
10876 character.
10877
2e62ab40
AB
108782019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
10879 Chris January <chris.january@arm.com>
10880 Daniel Everett <daniel.everett@arm.com>
10881 Nick Forrington <nick.forrington@arm.com>
10882 Richard Bunt <richard.bunt@arm.com>
10883
10884 * cp-valprint.c (cp_print_value_fields): Allow an additional level
10885 of depth when printing anonymous structs or unions.
10886 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
10887 Don't print either the top-level value, or the children if the
10888 max-depth is exceeded.
10889 (ppscm_print_children): When printing the key of a map, allow one
10890 extra level of depth.
10891 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
10892 print either the top-level value, or the children if the max-depth
10893 is exceeded.
10894 (print_children): When printing the key of a map, allow one extra
10895 level of depth.
10896 * python/py-value.c (valpy_format_string): Add max_depth keyword.
10897 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
10898 (user_print_options): Initialise max_depth field.
10899 (val_print_scalar_or_string_type_p): New function.
10900 (val_print): Check to see if the max depth has been reached.
10901 (val_print_check_max_depth): Define new function.
10902 (show_print_max_depth): New function.
10903 (_initialize_valprint): Add 'print max-depth' option.
10904 * valprint.h (struct value_print_options) <max_depth>: New field.
10905 (val_print_check_max_depth): Declare new function.
10906 * NEWS: Document new feature.
10907
4be290b2
AB
109082019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
10909
10910 * ada-lang.c (ada_language_defn): Initialise new field.
10911 * c-lang.c (c_is_string_type_p): New function.
10912 (c_language_defn): Initialise new field.
10913 (cplus_language_defn): Initialise new field.
10914 (asm_language_defn): Initialise new field.
10915 (minimal_language_defn): Initialise new field.
10916 * c-lang.h (c_is_string_type_p): Declare new function.
10917 * d-lang.c (d_language_defn): Initialise new field.
10918 * f-lang.c (f_is_string_type_p): New function.
10919 (f_language_defn): Initialise new field.
10920 * go-lang.c (go_is_string_type_p): New function.
10921 (go_language_defn): Initialise new field.
10922 * language.c (default_is_string_type_p): New function.
10923 (unknown_language_defn): Initialise new field.
10924 (auto_language_defn): Initialise new field.
10925 * language.h (struct language_defn) <la_is_string_type_p>: New
10926 member variable.
10927 (default_is_string_type_p): Declare new function.
10928 * m2-lang.c (m2_language_defn): Initialise new field.
10929 * objc-lang.c (objc_language_defn): Initialise new field.
10930 * opencl-lang.c (opencl_language_defn): Initialise new field.
10931 * p-lang.c (pascal_is_string_type_p): New function.
10932 (pascal_language_defn): Initialise new field.
10933 * rust-lang.c (rust_is_string_type_p): New function.
10934 (rust_language_defn): Initialise new field.
10935
721b08c6
AB
109362019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
10937
10938 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
10939 New field.
10940 * ada-lang.c (ada_language_defn): Initialise new field.
10941 * c-lang.c (c_language_defn): Likewise.
10942 (cplus_language_defn): Likewise.
10943 (asm_language_defn): Likewise.
10944 (minimal_language_defn): Likewise.
10945 * d-lang.c (d_language_defn): Likewise.
10946 * f-lang.c (f_language_defn): Likewise.
10947 * go-lang.c (go_language_defn): Likewise.
10948 * language.c (unknown_language_defn): Likewise.
10949 (auto_language_defn): Likewise.
10950 * m2-lang.c (m2_language_defn): Likewise.
10951 * objc-lang.c (objc_language_defn): Likewise.
10952 * opencl-lang.c (opencl_language_defn): Likewise.
10953 * p-lang.c (pascal_language_defn): Likewise.
10954 * rust-lang.c (rust_language_defn): Likewise.
10955
fc913e53
AB
109562019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
10957
10958 * ada-lang.c (ada_is_character_type): Change return type to bool.
10959 (ada_is_string_type): Likewise.
10960 * ada-lang.h (ada_is_character_type): Update declaration
10961 (ada_is_string_type): Likewise.
10962
fa731fa0
PW
109632019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10964
10965 Support style in 'frame|thread apply'
10966
10967 * gdbcmd.h (execute_command_to_string): New term_out parameter.
10968 * record.c (record_start, record_stop): Update callers of
10969 execute_command_to_string with false.
10970 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
10971 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
10972 methods.
10973 (class string_file): New constructor with term_out parameter.
10974 Override methods term_out and can_emit_style_escape. New member
10975 term_out.
10976 (class stdio_file): Override can_emit_style_escape.
10977 (class tee_file): Override term_out and can_emit_style_escape.
10978 * utils.h (can_emit_style_escape): Remove.
10979 * utils.c (can_emit_style_escape): Likewise.
10980 Update all callers of can_emit_style_escape (SOMESTREAM) to
10981 SOMESTREAM->can_emit_style_escape.
10982 * source-cache.c (source_cache::get_source_lines): Likewise.
10983 * stack.c (frame_apply_command_count): Call execute_command_to_string
10984 passing the term_out characteristic of the current gdb_stdout.
10985 * thread.c (thr_try_catch_cmd): Likewise.
10986 * top.c (execute_command_to_string): pass term_out parameter
10987 to construct the string_file for the command output.
10988 * ui-file.c (term_cli_styling): New function (most code moved
10989 from utils.c can_emit_style_escape).
10990 (string_file::string_file, string_file::can_emit_style_escape,
10991 stdio_file::can_emit_style_escape, tee_file::term_out,
10992 tee_file::can_emit_style_escape): New functions.
10993
136afab8
PW
109942019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10995
10996 * NEWS: Mention the new set|show may-call-functions.
10997 * infcall.c (may_call_functions_p): New variable.
10998 (show_may_call_functions_p): New function.
10999 (call_function_by_hand_dummy): Throws an error if not
11000 may-call-functions.
11001 (_initialize_infcall): Call add_setshow_boolean_cmd for
11002 may-call-functions.
11003
725cbb63
KS
110042019-04-25 Keith Seitz <keiths@redhat.com>
11005
11006 PR c++/24367
11007 * cp-support.c (inspect_type): Don't attempt substitutions
11008 of symbol with the same name.
11009
3d1cbb78
TT
110102019-04-25 Tom Tromey <tromey@adacore.com>
11011
11012 PR gdb/24475:
11013 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
11014 static.
11015
94aeb44b
TT
110162019-04-25 Tom Tromey <tromey@adacore.com>
11017
11018 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
11019 rvalue reference.
11020 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
11021 (gdb_xml_parser::parse): Use std::move.
11022 * python/python-internal.h (gdbpy_convert_exception): Take a const
11023 reference.
11024 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
11025 std::move.
11026 * python/py-utils.c (gdbpy_convert_exception): Take a const
11027 reference.
11028 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
11029 Use std::move.
11030 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
11031 Use std::move.
11032 * mi/mi-main.c (mi_print_exception): Take a const reference.
11033 * main.c (handle_command_errors): Take a const reference.
11034 * linespec.c (parse_linespec): Use std::move.
11035 * infcall.c (run_inferior_call): Use std::move.
11036 (call_function_by_hand_dummy): Use std::move.
11037 * exec.c (try_open_exec_file): Use std::move.
11038 * exceptions.h (exception_print, exception_fprintf)
11039 (exception_print_same): Update.
11040 * exceptions.c (print_exception, exception_print)
11041 (exception_fprintf, exception_print_same): Change parameters to
11042 const reference.
11043 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
11044 * common/new-op.c: Use std::move.
11045 * common/common-exceptions.h (struct gdb_exception): Add move
11046 constructor.
11047 (struct gdb_exception_error, struct gdb_exception_quit, struct
11048 gdb_quit_bad_alloc): Change constructor to move constructor.
11049 (throw_exception): Change parameter to rvalue reference.
11050 * common/common-exceptions.c (throw_exception): Take rvalue
11051 reference.
11052 * cli/cli-interp.c (safe_execute_command): Use std::move.
11053 * breakpoint.c (insert_bp_location, location_to_sals): Use
11054 std::move.
11055
680d7fd5
TT
110562019-04-25 Tom Tromey <tromey@adacore.com>
11057
11058 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
11059 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
11060 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
11061 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
11062 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
11063 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
11064 guile/scm-value.c: Use unpack.
11065 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
11066 gdbscm_gdb_exception.
11067 (gdbscm_throw_gdb_exception): Likewise.
11068 (struct gdbscm_gdb_exception): New.
11069 (unpack): New function.
11070 (gdbscm_wrap): Use unpack.
11071
c6fdd8b2
TT
110722019-04-25 Tom Tromey <tromey@adacore.com>
11073
11074 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
11075 (gdb_rl_callback_handler): Use std::move.
11076 * common/common-exceptions.h (struct gdb_exception): Add move
11077 assignment operator.
11078 (throw_exception_sjlj): Change "exception" to const reference.
11079 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
11080 (throw_exception_sjlj): Change "exception" to const reference.
11081
cc06b668
TT
110822019-04-25 Tom Tromey <tromey@adacore.com>
11083
11084 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
11085 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
11086 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
11087 Update.
11088 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
11089 Update.
11090 * mi/mi-interp.c (mi_interp::exec): Update.
11091 * linespec.c (parse_linespec): Update.
11092 * infcall.c (run_inferior_call): Update.
11093 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
11094 * guile/scm-symbol.c (gdbscm_lookup_symbol)
11095 (gdbscm_lookup_global_symbol): Update.
11096 * guile/scm-param.c (gdbscm_parameter_value): Update.
11097 * guile/scm-frame.c (gdbscm_frame_read_register)
11098 (gdbscm_frame_read_var): Update.
11099 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
11100 * exec.c (try_open_exec_file): Update.
11101 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
11102 (gdb_rl_callback_handler): Update.
11103 * common/common-exceptions.h (exception_none): Don't declare.
11104 * common/common-exceptions.c (exception_none): Don't define.
11105 (struct catcher) <exception>: Update.
11106 * cli/cli-interp.c (safe_execute_command): Update.
11107 * breakpoint.c (insert_bp_location, location_to_sals): Update.
11108
cf532bd1
AT
111092019-04-25 Ali Tamur <tamur@google.com>
11110
11111 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
11112 (read_attribute_value): Likewise.
11113 (dwarf2_read_addr_index): Update comment.
11114 (read_str_index): Add DW_FORM_strx.
11115 (dwarf2_string_attr): Likewise.
11116 (dwarf2_const_value_attr): Likewise.
11117 (dump_die_shallow): Likewise.
11118 (dwarf2_fetch_constant_bytes): Likewise.
11119 (skip_form_bytes): Likewise.
11120 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
11121
82433e3e
SDJ
111222019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
11123
11124 PR corefiles/11608
11125 PR corefiles/18187
11126 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
11127 OFFSET. Verify if current mapping contains an ELF header.
11128 (linux_find_memory_regions_full): Adjust call to
11129 dump_mapping_p.
11130
723adb65
SL
111312019-04-25 Sandra Loosemore <sandra@codesourcery.com>
11132 Kang Li <kanglictf@gmail.com>
11133
11134 PR gdb/21600
11135
11136 * dwarf2-frame.c (read_initial_length): Be consistent about using
11137 unsigned representation of length.
11138 (decode_frame_entry_1): Likewise. Check for wraparound of
11139 end pointer as well as buffer overflow.
11140
596179f7
SDJ
111412019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
11142
11143 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
11144 "vq".
11145
a59240a4
TT
111462019-04-24 Tom Tromey <tromey@adacore.com>
11147
11148 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
11149
f872fdbb
AB
111502019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11151
11152 * s12z-tdep.c (s12z_unwind_pc): Delete.
11153 (s12z_unwind_sp): Delete.
11154 (s12z_gdbarch_init): Don't register deleted functions with
11155 gdbarch.
11156
b614e6f3
AB
111572019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11158
11159 * rl78-tdep.c (rl78_unwind_sp): Delete.
11160 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
11161
14faed38
AB
111622019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11163
11164 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
11165 (xstormy16_unwind_pc): Delete.
11166 (xstormy16_dummy_id): Delete.
11167 (xstormy16_gdbarch_init): Don't register deleted functions with
11168 gdbarch.
11169
541aad8a
AB
111702019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11171
11172 * vax-tdep.c (vax_unwind_pc): Delete.
11173 (vax_gdbarch_init): Don't register deleted function with gdbarch.
11174
29222070
AB
111752019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11176
11177 * v850-tdep.c (v850_unwind_sp): Delete.
11178 (v850_unwind_pc): Delete.
11179 (v850_dummy_id): Delete.
11180 (v850_gdbarch_init): Don't register deleted functions with
11181 gdbarch.
11182
0f534d76
AB
111832019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11184
11185 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
11186 (tilegx_unwind_pc): Delete.
11187 (tilegx_unwind_dummy_id): Delete.
11188 (tilegx_gdbarch_init): Don't register deleted functions with
11189 gdbarch.
11190
1ba7b7f9
AB
111912019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11192
11193 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
11194 (tic6x_dummy_id): Delete.
11195 (tic6x_gdbarch_init): Don't register deleted functions with
11196 gdbarch.
11197
d31f262c
AB
111982019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11199
11200 * sparc-tdep.c (sparc_unwind_pc): Delete.
11201 (sparc32_gdbarch_init): Don't register deleted function with
11202 gdbarch.
11203
6d14d64d
AB
112042019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11205
11206 * sh-tdep.c (sh_unwind_sp): Delete.
11207 (sh_unwind_pc): Delete.
11208 (sh_dummy_id): Delete.
11209 (sh_gdbarch_init): Don't register deleted functions with
11210 gdbarch.
11211
a40dde9d
AB
112122019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11213
11214 * score-tdep.c (score_unwind_sp): Delete.
11215 (score_unwind_pc): Delete.
11216 (score_dummy_id): Delete.
11217 (score_gdbarch_init): Don't register deleted functions with
11218 gdbarch.
11219
47c47d69
AB
112202019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11221
11222 * rx-tdep.c (rx_unwind_pc): Delete.
11223 (rx_unwind_sp): Delete.
11224 (rx_dummy_id): Delete.
11225 (rx_gdbarch_init): Don't register deleted functions with
11226 gdbarch. Update comment.
11227
833a4480
AB
112282019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11229
11230 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
11231 (rs6000_dummy_id): Delete.
11232 (rs6000_gdbarch_init): Don't register deleted functions with
11233 gdbarch.
11234
3f2cef49
AB
112352019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11236
11237 * or1k-tdep.c (or1k_dummy_id): Delete.
11238 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
11239
96acf884
AB
112402019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11241
11242 * nios2-tdep.c (nios2_dummy_id): Delete.
11243 (nios2_unwind_sp): Delete.
11244 (nios2_gdbarch_init): Don't register deleted functions with
11245 gdbarch.
11246
ca0ab0aa
AB
112472019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11248
11249 * nds32-tdep.c (nds32_dummy_id): Delete.
11250 (nds32_unwind_pc): Delete.
11251 (nds32_unwind_sp): Delete.
11252 (nds32_gdbarch_init): Don't register deleted functions with
11253 gdbarch.
11254
c8259044
AB
112552019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11256
11257 * msp430-tdep.c (msp430_unwind_pc): Delete.
11258 (msp430_unwind_sp): Delete.
11259 (msp430_dummy_id): Delete.
11260 (msp430_gdbarch_init): Don't register deleted functions with
11261 gdbarch.
11262
27f113c8
AB
112632019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11264
11265 * moxie-tdep.c (moxie_unwind_sp): Delete.
11266 (moxie_unwind_pc): Delete.
11267 (moxie_dummy_id): Delete.
11268 (moxie_gdbarch_init): Don't register deleted functions with
11269 gdbarch.
11270
aee6c3cd
AB
112712019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11272
11273 * mn10300-tdep.c (mn10300_dummy_id): Delete.
11274 (mn10300_unwind_pc): Delete.
11275 (mn10300_unwind_sp): Delete.
11276 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
11277 mn10300_unwind_sp.
11278 (mn10300_frame_unwind_init): Don't register deleted functions with
11279 gdbarch.
11280
8e2b5aea
AB
112812019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11282
11283 * mep-tdep.c (mep_unwind_pc): Delete.
11284 (mep_unwind_sp): Delete.
11285 (mep_dummy_id): Delete.
11286 (mep_gdbarch_init): Don't register deleted functions with
11287 gdbarch.
11288
43cf3ede
AB
112892019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11290
11291 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
11292 (m68hc11_unwind_sp): Delete.
11293 (m68hc11_gdbarch_init): Don't register deleted functions with
11294 gdbarch.
11295
5e79b7bb
AB
112962019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11297
11298 * m32r-tdep.c (m32r_unwind_sp): Delete.
11299 (m32r_unwind_pc): Delete.
11300 (m32r_dummy_id): Delete.
11301 (m32r_gdbarch_init): Don't register deleted functions with
11302 gdbarch.
11303
89b268d8
AB
113042019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11305
11306 * m32c-tdep.c (m32c_unwind_pc): Delete.
11307 (m32c_unwind_sp): Delete.
11308 (m32c_dummy_id): Delete.
11309 (m32c_gdbarch_init): Don't register deleted functions with
11310 gdbarch.
11311
946c28d2
AB
113122019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11313
11314 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
11315 (lm32_unwind_pc): Delete.
11316 (lm32_dummy_id): Delete.
11317 (lm32_gdbarch_init): Don't register deleted functions with
11318 gdbarch.
11319
bf12844a
AB
113202019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11321
11322 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
11323 (iq2000_unwind_pc): Delete.
11324 (iq2000_dummy_id): Delete.
11325 (iq2000_gdbarch_init): Don't register deleted functions with
11326 gdbarch.
11327
ecbc06d2
AB
113282019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11329
11330 * nds32-tdep.c (nds32_type_align): Delete.
11331 (nds32_push_dummy_call): Use type_align instead.
11332
030197b4
AB
113332019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11334
11335 * arm-tdep.c (arm_type_align): Only handle vector override case.
11336 (arm_push_dummy_call): Use type_align.
11337 (arm_gdbarch_init): Register arm_type_align gdbarch function.
11338
b907456c
AB
113392019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11340
11341 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
11342 case.
11343 (pass_on_stack): Use type_align.
11344 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
11345 function.
11346
9e97ba43
TT
113472019-04-23 Tom Tromey <tromey@adacore.com>
11348
11349 * dwarf2read.c (line_header::file_name_at): Remove unused
11350 overload.
11351
6892f601
TV
113522019-04-23 Tom de Vries <tdevries@suse.de>
11353
11354 PR gdb/24438
11355 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
11356 invocation.
11357
336d760d
AT
11358
113592019-03-27 Ali Tamur <tamur@google.com>
11360
11361 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
11362 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
11363 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
11364 (dwarf_expr_context::get_addr_index): Likewise
11365 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
11366 (symbol_needs_eval_context::get_addr_index): Likewise
11367 (disassemble_dwarf_expression): Add DW_OP_addrx
11368 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
11369 (read_cutu_die_from_dwo): Update comment
11370 (skip_one_die): Add DW_FORM_addrx
11371 (read_attribute_value): Likewise
11372 (var_decode_location): Add DW_OP_addrx
11373 (dwarf2_const_value_attr): Add DW_FORM_addrx
11374 (dump_die_shallow): Likewise
11375 (dwarf2_fetch_constant_bytes): Likewise
11376 (decode_locdesc): Add DW_OP_addrx
11377 (skip_form_bytes): Add DW_FORM_addrx
11378
ad9d13f8
AT
113792019-04-22 Ali Tamur <tamur@google.com>
11380
11381 * MAINTAINERS (Write After Approval): Add self.
11382
d70cc3ba
SM
113832019-04-22 Simon Marchi <simon.marchi@efficios.com>
11384
11385 * solib-svr4.c (get_svr4_info): Add pspace parameter.
11386 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
11387 (open_symbol_file_object): Likewise.
11388 (svr4_default_sos): Add info parameter.
11389 (svr4_read_so_list): Likewise.
11390 (svr4_current_sos_direct): Adjust functions calls to pass down
11391 info.
11392 (svr4_current_sos_1): Add info parameter.
11393 (svr4_current_sos): Call get_svr4_info, pass info down to
11394 svr4_current_sos_1.
11395 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
11396 get_svr4_info.
11397 (svr4_in_dynsym_resolve_code): Pass current_program_space to
11398 get_svr4_info.
11399 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
11400 to get_svr4_info.
11401 (probes_table_remove_objfile_probes): Likewise.
11402 (register_solib_event_probe): Add info parameter.
11403 (solist_update_incremental): Pass info parameter down to
11404 svr4_read_so_list.
11405 (disable_probes_interface): Add info parameter.
11406 (svr4_handle_solib_event): Pass current_program_space to
11407 get_svr4_info. Adjust disable_probes_interface cleanup.
11408 (svr4_create_probe_breakpoints): Add info parameter, pass it
11409 down to register_solib_event_probe.
11410 (svr4_create_solib_event_breakpoints): Add info parameter,
11411 pass it down to svr4_create_probe_breakpoints.
11412 (enable_break): Pass info down to
11413 svr4_create_solib_event_breakpoints.
11414 (svr4_solib_create_inferior_hook): Pass current_program_space to
11415 get_svr4_info.
11416 (svr4_clear_solib): Likewise.
11417
7905fc35
PA
114182019-04-22 Pedro Alves <palves@redhat.com>
11419
11420 * solib-svr4.c (svr4_free_objfile_observer): New.
11421 (probe_and_action::objfile): New field.
11422 (probes_table_htab_remove_objfile_probes)
11423 (probes_table_remove_objfile_probes): New functions.
11424 (register_solib_event_probe): Add 'objfile' parameter. Store it
11425 in the new probe_and_action. Don't store the probe in 'lookup'.
11426 (svr4_create_probe_breakpoints): Pass objfile to
11427 register_solib_event_probe.
11428 (_initialize_svr4_solib): Register a free_objfile observer.
11429
fb881986
TT
114302019-04-19 Tom Tromey <tom@tromey.com>
11431
11432 * common/queue.h: Remove.
11433
8732db6c
TT
114342019-04-19 Tom Tromey <tom@tromey.com>
11435
11436 * event-loop.c: Don't include "common/queue.h".
11437
97dfbadd
TT
114382019-04-19 Tom Tromey <tom@tromey.com>
11439
11440 * remote.c (remote_target): Use delete.
11441 * remote-notif.h: Include <list>, not "common/queue.h".
11442 (notif_client_p): Remove typedef.
11443 (remote_notif_state): Add constructor, destructor, initializer.
11444 <notif_queue>: Now a std::list.
11445 (remote_notif_state_xfree): Don't declare.
11446 * remote-notif.c (remote_notif_process, handle_notification)
11447 (remote_notif_state_allocate): Update.
11448 (~remote_notif_state): Rename from remote_notif_state_xfree.
11449
cf250e36
TT
114502019-04-19 Tom Tromey <tom@tromey.com>
11451
11452 * symfile.c (reread_symbols): Update.
11453 * objfiles.c (objfile_register_static_link)
11454 (objfile_lookup_static_link): Update
11455 (~objfile) Don't delete static_links.
11456 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
11457
61f4b350
TT
114582019-04-19 Tom Tromey <tom@tromey.com>
11459
11460 * type-stack.h (struct type_stack) <insert>: Constify string.
11461 * type-stack.c (type_stack::insert): Constify string.
11462 * gdbtypes.h (lookup_template_type): Update.
11463 (address_space_name_to_int): Update.
11464 * gdbtypes.c (address_space_name_to_int): Make space_identifier
11465 const.
11466 (lookup_template_type): Make name const.
11467 * c-exp.y: Update rules.
11468 (lex_one_token, classify_name, classify_inner_name)
11469 (c_print_token): Update.
11470 * p-exp.y: Update rules.
11471 (yylex): Update.
11472 * f-exp.y: Update rules.
11473 (yylex): Update.
11474 * d-exp.y: Update rules.
11475 (lex_one_token, classify_name, classify_inner_name): Update.
11476 * parse.c (write_dollar_variable, copy_name): Return std::string.
11477 * parser-defs.h (copy_name): Change return type.
11478 * m2-exp.y: Update rules.
11479 (yylex): Update.
11480 * go-exp.y (lex_one_token): Update.
11481 Update rules.
11482 (classify_unsafe_function, classify_packaged_name)
11483 (classify_name, yylex): Update.
11484
189b8c2e
ST
114852019-04-19 Sergei Trofimovich <siarheit@google.com>
11486
11487 * configure.ac: add --enable-source-highlight switch.
11488 * configure: Regenerate.
11489 * top.c (print_gdb_version): plumb --enable-source-highlight
11490 status to "show configuration".
11491
8ecb59f8
TT
114922019-04-19 Tom Tromey <tromey@adacore.com>
11493
11494 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
11495 Check ADA_TYPE_P.
11496 (empty_record, ada_template_to_fixed_record_type_1)
11497 (template_to_static_fixed_type)
11498 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
11499 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
11500 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
11501 macros.
11502
62160ec9
TT
115032019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
11504
11505 PR symtab/24423:
11506 * source.c (print_source_lines_base): Advance "iter" when a
11507 control character is seen.
11508
f2ae8bc8
PW
115092019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11510
11511 * inferior.h (struct infcall_suspend_state_deleter):
11512 Catch exception in destructor to avoid crash.
11513
d563b953
PW
115142019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11515
11516 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
11517 close to the add_com "shell".
11518
dc34c897
TT
115192019-04-18 Tom Tromey <tromey@adacore.com>
11520
11521 * process-stratum-target.h (class process_stratum_target)
11522 <stratum>: Add "final".
11523
a12e5744
TT
115242019-04-17 Tom Tromey <tromey@adacore.com>
11525
11526 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
11527 against nullptr before use.
11528
a7e559cc
AH
115292019-04-17 Alan Hayward <alan.hayward@arm.com>
11530
11531 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
11532
c01660c6
AB
115332019-04-17 Jim Wilson <jimw@sifive.com>
11534 Andrew Burgess <andrew.burgess@embecosm.com>
11535
11536 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
11537 code read might fail, assume 4-byte breakpoint in that case.
11538
4aa866af
LS
115392019-04-15 Leszek Swirski <leszeks@google.com>
11540
11541 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
11542 rather than a hand-rolled POD check when checking for forced MEMORY
11543 classification.
11544
48574d91
AH
115452019-04-15 Alan Hayward <alan.hayward@arm.com>
11546
11547 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
11548 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
11549 function.
11550 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
11551 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
11552 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
11553 declaration.
11554
4da037ef
AH
115552019-04-15 Alan Hayward <alan.hayward@arm.com>
11556
11557 * aarch64-linux-nat.c
11558 (aarch64_linux_nat_target::thread_architecture): Add override.
11559 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
11560 each VQ.
11561
ccb8d7e8
AH
115622019-04-15 Alan Hayward <alan.hayward@arm.com>
11563
11564 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
11565
35add35e
AB
115662019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
11567
11568 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
11569 target types of size 96-bits, add some additional comments, and
11570 check that the builtin type we found was the correct size.
11571
51196bbc
EZ
115722019-04-12 Eli Zaretskii <eliz@gnu.org>
11573
11574 * utils.c (prompt_for_continue): Don't restore the styling at the
11575 end, as applied_style has the wrong value. This fixes styling in
11576 long lists of file names that are interrupted by the "Continue?"
11577 prompt.
11578
62253a61
AB
115792019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
11580
11581 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
11582 * c-lang.c (c_language_defn): Likewise.
11583 (cplus_language_defn): Likewise.
11584 (asm_language_defn): Likewise.
11585 (minimal_language_defn): Likewise.
11586 * d-lang.c (d_language_defn): Likewise.
11587 * f-lang.c (f_language_defn): Likewise.
11588 * go-lang.c (go_language_defn): Likewise.
11589 * language.c (unknown_language_defn): Likewise.
11590 (auto_language_defn): Likewise.
11591 * language.h (struct language_defn): Remove la_magic field.
11592 (LANG_MAGIC): Delete.
11593 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
11594 * objc-lang.c (objc_language_defn): Likewise.
11595 * opencl-lang.c (opencl_language_defn): Likewise.
11596 * p-lang.c (pascal_language_defn): Likewise.
11597 * rust-lang.c (rust_language_defn): Likewise.
11598
a9158a86
AB
115992019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
11600
11601 * riscv-tdep.c (riscv_type_align): New function.
11602 (riscv_type_alignment): Delete.
11603 (riscv_arg_location): Use 'type_align'.
11604 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
11605
41077b66
AB
116062019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
11607
11608 * gdbtypes.c (type_align): A struct with no non-static fields also
11609 has alignment of 1.
11610
9f0272f8
AB
116112019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
11612
11613 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
11614 component to 0.
11615 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
11616 member.
11617 (riscv_struct_info::analyse): New implementation using new
11618 analyse_inner member function.
11619 (riscv_struct_info::field_offset): New member function.
11620 (riscv_struct_info::m_offsets): New member variable.
11621 (riscv_struct_info::analyse_inner): New private member function,
11622 takes the old implementation of riscv_struct_info::analyse but
11623 extended to track field offsets.
11624 (riscv_call_arg_struct): Update the struct folding special cases
11625 to handle cases where empty C++ structs, which are non-zero
11626 length, are found.
11627 (riscv_arg_location): Initialise the length of each location, a
11628 non-zero length now indicates the location is in use.
11629 (riscv_push_dummy_call): Allow for the first location having a
11630 non-zero offset when setting up arguments.
11631 (riscv_return_value): Likewise, but for return values.
11632
02cf60c7
TT
116332019-04-11 Tom Tromey <tromey@adacore.com>
11634
11635 * utils.c (internal_vproblem): Make "msg" const.
11636
68811f8f
AH
116372019-04-11 Alan Hayward <alan.hayward@arm.com>
11638
11639 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
11640 * trad-frame.c (trad_frame_reset_saved_regs): New function.
11641 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
11642 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
11643
3f52fdbc
KB
116442019-04-10 Kevin Buettner <kevinb@redhat.com>
11645
11646 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
11647 function.
11648 (fill_gregset): Call amd64_linux_collect_native_gregset instead
11649 of amd64_collect_native_gregset.
11650 (amd64_linux_nat_target::store_registers): Likewise.
11651
e9ad22ee
TT
116522019-04-10 Tom Tromey <tom@tromey.com>
11653
11654 * symtab.c (lookup_global_symbol_from_objfile)
11655 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
11656 * objfiles.h (class separate_debug_iterator): New.
11657 (class separate_debug_range): New.
11658 (struct objfile) <separate_debug_objfiles>: New method.
11659 (objfile_separate_debug_iterate): Don't declare.
11660 * objfiles.c (separate_debug_iterator::operator++): Rename from
11661 objfile_separate_debug_iterate.
11662 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
11663 iterator.
11664 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
11665 iterator.
11666
ee371134
TT
116672019-04-10 Tom Tromey <tom@tromey.com>
11668
11669 * symfile.c (reread_symbols): Remove old comment.
11670 * objfiles.c (free_all_objfiles): Fix a typo.
11671
bf227d61
TT
116722019-04-10 Tom Tromey <tom@tromey.com>
11673
11674 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
11675 * minsyms.c (lookup_minimal_symbol): Use foreach.
11676 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
11677 (lookup_minimal_symbol_solib_trampoline): Likewise.
11678 * symfile.c (reread_symbols): Use foreach.
11679
8dc433a0
TT
116802019-04-09 Ivan Begert <ivanbegert@gmail.com>
11681 Tom Tromey <tromey@adacore.com>
11682
11683 PR rust/24414:
11684 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
11685 (rust_lex_int_test): Change "value" to be LONGEST.
11686 (rust_lex_tests): Add test for long integer literal.
11687
9ab8741a
TT
116882019-04-09 Tom Tromey <tromey@adacore.com>
11689
11690 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
11691 to bool.
11692 (extended_remote_target::attach): Update.
11693 (remote_target::remote_notice_new_inferior): Update.
11694 (remote_target::add_current_inferior_and_thread): Update.
11695 * inferior.c (exit_inferior_1): Use "false".
11696 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
11697
e242fd12
SM
116982019-04-09 Simon Marchi <simon.marchi@efficios.com>
11699
9ca1957f 11700 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
e242fd12
SM
11701 the "start" command.
11702
2b0c8b01
KB
117032019-04-08 Kevin Buettner <kevinb@redhat.com>
11704
11705 * python/py-inferior.c (infpy_thread_from_thread_handle):
11706 Adjust comments to reflect renaming of thread_from_thread_handle
11707 to thread_from_handle. Adjust keywords. Fix type error message.
11708 (inferior_object_methods): Add thread_from_handle. Retain
11709 thread_from_thread_handle, but mark it as deprecated.
11710
50a82723
KB
117112019-04-08 Kevin Buettner <kevinb@redhat.com>
11712
11713 * gdbthread.h (find_thread_by_handle): Revise declaration.
11714 * thread.c (find_thread_by_handle): Likewise. Adjust
11715 implementation too.
11716 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
11717 support for buffer objects as handles.
11718
cf63b016
KB
117192019-04-08 Kevin Buettner <kevinb@redhat.com>
11720
11721 * python/py-infthread.c (thpy_thread_handle): New function.
11722 (thread_object_methods): Register thpy_thread_handle.
11723
3d6c6204
KB
117242019-04-08 Kevin Buettner <kevinb@redhat.com>
11725
11726 * gdbthread.h (thread_to_thread_handle): Declare.
11727 * thread.c (gdbtypes.h): Include.
11728 (thread_to_thread_handle): New function.
11729
11730 * target.h (struct target_ops): Add thread_info_to_thread_handle.
11731 (target_thread_info_to_thread_handle): Declare.
11732 * target.c (target_thread_info_to_thread_handle): New function.
11733 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
11734 * target-delegates.c: Regenerate.
11735
11736 * linux-thread-db.c (class thread_db_target): Add method
11737 thread_info_to_thread_handle.
11738 (thread_db_target::thread_info_to_thread_handle): Define.
11739 * remote.c (class remote_target): Add new method
11740 thread_info_to_thread_handle.
11741 (remote_target::thread_info_to_thread_handle): Define.
11742
56be6ea8
PA
117432019-04-08 Pedro Alves <palves@redhat.com>
11744
11745 * common/common-exceptions.c (throw_exception): Don't create
11746 named object to throw; throw directly.
11747 (throw_it): Likewise. Don't initialize gdb_exception::message
11748 here, with new; pass FMT and AP to the ctor instead.
11749 * common/common-exceptions.h: Include <string>.
11750 (gdb_exception::gdb_exception(enum return_reason, enum errors,
11751 const char *, va_list)): New ctor. Use std::make_shared.
11752 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
11753 errors)): Delete.
11754 (gdb_exception_error::gdb_exception_error(enum errors, const char
11755 *, va_list)): New.
11756 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
11757 Add assertion.
11758 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
11759 errors)): Delete.
11760 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
11761 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
11762 Add assertion.
11763
eedc3f4f
TT
117642019-04-08 Tom Tromey <tom@tromey.com>
11765
11766 * valops.c (value_rtti_indirect_type): Replace throw_exception
11767 with throw.
11768 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
11769 with throw.
11770 * thread.c (thr_try_catch_cmd): Replace throw_exception with
11771 throw.
11772 * target.c (target_translate_tls_address): Replace throw_exception
11773 with throw.
11774 * stack.c (frame_apply_command_count): Replace throw_exception
11775 with throw.
11776 * solib-spu.c (append_ocl_sos): Replace throw_exception with
11777 throw.
11778 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
11779 with throw.
11780 * rs6000-tdep.c (rs6000_frame_cache)
11781 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
11782 * remote.c: Replace throw_exception with throw.
11783 * record-full.c (record_full_message, record_full_wait_1)
11784 (record_full_restore): Replace throw_exception with throw.
11785 * record-btrace.c:
11786 (get_thread_current_frame_id, record_btrace_start_replaying)
11787 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
11788 (cmd_record_btrace_start): Replace throw_exception with throw.
11789 * parse.c (parse_exp_in_context_1): Replace throw_exception with
11790 throw.
11791 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
11792 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
11793 * linespec.c:
11794 (find_linespec_symbols): Replace throw_exception with throw.
11795 * infrun.c (displaced_step_prepare, resume): Replace
11796 throw_exception with throw.
11797 * infcmd.c (post_create_inferior): Replace throw_exception with
11798 throw.
11799 * inf-loop.c (inferior_event_handler): Replace throw_exception
11800 with throw.
11801 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
11802 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
11803 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
11804 (get_prev_frame_always, get_frame_pc_if_available)
11805 (get_frame_address_in_block_if_available, get_frame_language):
11806 Replace throw_exception with throw.
11807 * frame-unwind.c (frame_unwind_try_unwinder): Replace
11808 throw_exception with throw.
11809 * eval.c (fetch_subexp_value, evaluate_var_value)
11810 (evaluate_funcall, evaluate_subexp_standard): Replace
11811 throw_exception with throw.
11812 * dwarf2loc.c (call_site_find_chain)
11813 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
11814 Replace throw_exception with throw.
11815 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
11816 with throw.
11817 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
11818 throw.
11819 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
11820 * completer.c (complete_line_internal): Replace throw_exception
11821 with throw.
11822 * compile/compile-object-run.c (compile_object_run): Replace
11823 throw_exception with throw.
11824 * cli/cli-script.c (process_next_line): Replace throw_exception
11825 with throw.
11826 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
11827 (btrace_enable, btrace_maint_update_pt_packets): Replace
11828 throw_exception with throw.
11829 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
11830 throw_exception with throw.
11831 * break-catch-throw.c (re_set_exception_catchpoint): Replace
11832 throw_exception with throw.
11833 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
11834 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
11835 * aarch64-tdep.c (aarch64_make_prologue_cache)
11836 (aarch64_make_stub_cache): Replace throw_exception with throw.
11837
26003a20
TT
118382019-04-08 Tom Tromey <tom@tromey.com>
11839
11840 * common/common-exceptions.c (throw_exception): Rename from
11841 throw_exception_cxx. Remove old copy. Make argument const.
11842 (throw_it): Create and throw exception objects directly.
11843 * common/common-exceptions.h (throw_exception): Make argument
11844 const.
11845 (struct gdb_exception_error): Add constructor.
11846 (struct gdb_exception_quit): Add constructor.
11847
d272eb37
TT
118482019-04-08 Tom Tromey <tom@tromey.com>
11849
11850 * common/common-exceptions.h (exception_rethrow): Don't declare.
11851 (TRY_SJLJ): Update comment.
11852 (TRY, CATCH, END_CATCH): Remove.
11853 * common/common-exceptions.c (exception_rethrow): Remove.
11854
230d2906
TT
118552019-04-08 Tom Tromey <tom@tromey.com>
11856
11857 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
11858 Remove.
11859 (gdb_exception_error): Rename from
11860 gdb_exception_RETURN_MASK_ERROR.
11861 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
11862 (gdb_quit_bad_alloc): Update.
11863 * aarch64-tdep.c: Update.
11864 * ada-lang.c: Update.
11865 * ada-typeprint.c: Update.
11866 * ada-valprint.c: Update.
11867 * amd64-tdep.c: Update.
11868 * arch-utils.c: Update.
11869 * break-catch-throw.c: Update.
11870 * breakpoint.c: Update.
11871 * btrace.c: Update.
11872 * c-varobj.c: Update.
11873 * cli/cli-cmds.c: Update.
11874 * cli/cli-interp.c: Update.
11875 * cli/cli-script.c: Update.
11876 * common/common-exceptions.c: Update.
11877 * common/new-op.c: Update.
11878 * common/selftest.c: Update.
11879 * compile/compile-c-symbols.c: Update.
11880 * compile/compile-cplus-symbols.c: Update.
11881 * compile/compile-object-load.c: Update.
11882 * compile/compile-object-run.c: Update.
11883 * completer.c: Update.
11884 * corelow.c: Update.
11885 * cp-abi.c: Update.
11886 * cp-support.c: Update.
11887 * cp-valprint.c: Update.
11888 * darwin-nat.c: Update.
11889 * disasm-selftests.c: Update.
11890 * dtrace-probe.c: Update.
11891 * dwarf-index-cache.c: Update.
11892 * dwarf-index-write.c: Update.
11893 * dwarf2-frame-tailcall.c: Update.
11894 * dwarf2-frame.c: Update.
11895 * dwarf2loc.c: Update.
11896 * dwarf2read.c: Update.
11897 * eval.c: Update.
11898 * event-loop.c: Update.
11899 * event-top.c: Update.
11900 * exec.c: Update.
11901 * f-valprint.c: Update.
11902 * fbsd-tdep.c: Update.
11903 * frame-unwind.c: Update.
11904 * frame.c: Update.
11905 * gdbtypes.c: Update.
11906 * gnu-v3-abi.c: Update.
11907 * guile/guile-internal.h: Update.
11908 * guile/scm-block.c: Update.
11909 * guile/scm-breakpoint.c: Update.
11910 * guile/scm-cmd.c: Update.
11911 * guile/scm-disasm.c: Update.
11912 * guile/scm-frame.c: Update.
11913 * guile/scm-lazy-string.c: Update.
11914 * guile/scm-math.c: Update.
11915 * guile/scm-param.c: Update.
11916 * guile/scm-ports.c: Update.
11917 * guile/scm-pretty-print.c: Update.
11918 * guile/scm-symbol.c: Update.
11919 * guile/scm-symtab.c: Update.
11920 * guile/scm-type.c: Update.
11921 * guile/scm-value.c: Update.
11922 * i386-linux-tdep.c: Update.
11923 * i386-tdep.c: Update.
11924 * inf-loop.c: Update.
11925 * infcall.c: Update.
11926 * infcmd.c: Update.
11927 * infrun.c: Update.
11928 * jit.c: Update.
11929 * language.c: Update.
11930 * linespec.c: Update.
11931 * linux-fork.c: Update.
11932 * linux-nat.c: Update.
11933 * linux-tdep.c: Update.
11934 * linux-thread-db.c: Update.
11935 * main.c: Update.
11936 * mi/mi-cmd-break.c: Update.
11937 * mi/mi-cmd-stack.c: Update.
11938 * mi/mi-interp.c: Update.
11939 * mi/mi-main.c: Update.
11940 * objc-lang.c: Update.
11941 * p-valprint.c: Update.
11942 * parse.c: Update.
11943 * ppc-linux-tdep.c: Update.
11944 * printcmd.c: Update.
11945 * python/py-arch.c: Update.
11946 * python/py-breakpoint.c: Update.
11947 * python/py-cmd.c: Update.
11948 * python/py-finishbreakpoint.c: Update.
11949 * python/py-frame.c: Update.
11950 * python/py-framefilter.c: Update.
11951 * python/py-gdb-readline.c: Update.
11952 * python/py-inferior.c: Update.
11953 * python/py-infthread.c: Update.
11954 * python/py-lazy-string.c: Update.
11955 * python/py-linetable.c: Update.
11956 * python/py-objfile.c: Update.
11957 * python/py-param.c: Update.
11958 * python/py-prettyprint.c: Update.
11959 * python/py-progspace.c: Update.
11960 * python/py-record-btrace.c: Update.
11961 * python/py-record.c: Update.
11962 * python/py-symbol.c: Update.
11963 * python/py-type.c: Update.
11964 * python/py-unwind.c: Update.
11965 * python/py-utils.c: Update.
11966 * python/py-value.c: Update.
11967 * python/python.c: Update.
11968 * record-btrace.c: Update.
11969 * record-full.c: Update.
11970 * remote-fileio.c: Update.
11971 * remote.c: Update.
11972 * riscv-tdep.c: Update.
11973 * rs6000-aix-tdep.c: Update.
11974 * rs6000-tdep.c: Update.
11975 * rust-exp.y: Update.
11976 * rust-lang.c: Update.
11977 * s390-tdep.c: Update.
11978 * selftest-arch.c: Update.
11979 * solib-dsbt.c: Update.
11980 * solib-frv.c: Update.
11981 * solib-spu.c: Update.
11982 * solib-svr4.c: Update.
11983 * solib.c: Update.
11984 * sparc64-linux-tdep.c: Update.
11985 * stack.c: Update.
11986 * symfile-mem.c: Update.
11987 * symmisc.c: Update.
11988 * target.c: Update.
11989 * thread.c: Update.
11990 * top.c: Update.
11991 * tracefile-tfile.c: Update.
11992 * tui/tui.c: Update.
11993 * typeprint.c: Update.
11994 * unittests/cli-utils-selftests.c: Update.
11995 * unittests/parse-connection-spec-selftests.c: Update.
11996 * valops.c: Update.
11997 * valprint.c: Update.
11998 * value.c: Update.
11999 * varobj.c: Update.
12000 * windows-nat.c: Update.
12001 * x86-linux-nat.c: Update.
12002 * xml-support.c: Update.
12003
a70b8144
TT
120042019-04-08 Tom Tromey <tom@tromey.com>
12005
12006 * xml-support.c: Use C++ exception handling.
12007 * x86-linux-nat.c: Use C++ exception handling.
12008 * windows-nat.c: Use C++ exception handling.
12009 * varobj.c: Use C++ exception handling.
12010 * value.c: Use C++ exception handling.
12011 * valprint.c: Use C++ exception handling.
12012 * valops.c: Use C++ exception handling.
12013 * unittests/parse-connection-spec-selftests.c: Use C++ exception
12014 handling.
12015 * unittests/cli-utils-selftests.c: Use C++ exception handling.
12016 * typeprint.c: Use C++ exception handling.
12017 * tui/tui.c: Use C++ exception handling.
12018 * tracefile-tfile.c: Use C++ exception handling.
12019 * top.c: Use C++ exception handling.
12020 * thread.c: Use C++ exception handling.
12021 * target.c: Use C++ exception handling.
12022 * symmisc.c: Use C++ exception handling.
12023 * symfile-mem.c: Use C++ exception handling.
12024 * stack.c: Use C++ exception handling.
12025 * sparc64-linux-tdep.c: Use C++ exception handling.
12026 * solib.c: Use C++ exception handling.
12027 * solib-svr4.c: Use C++ exception handling.
12028 * solib-spu.c: Use C++ exception handling.
12029 * solib-frv.c: Use C++ exception handling.
12030 * solib-dsbt.c: Use C++ exception handling.
12031 * selftest-arch.c: Use C++ exception handling.
12032 * s390-tdep.c: Use C++ exception handling.
12033 * rust-lang.c: Use C++ exception handling.
12034 * rust-exp.y: Use C++ exception handling.
12035 * rs6000-tdep.c: Use C++ exception handling.
12036 * rs6000-aix-tdep.c: Use C++ exception handling.
12037 * riscv-tdep.c: Use C++ exception handling.
12038 * remote.c: Use C++ exception handling.
12039 * remote-fileio.c: Use C++ exception handling.
12040 * record-full.c: Use C++ exception handling.
12041 * record-btrace.c: Use C++ exception handling.
12042 * python/python.c: Use C++ exception handling.
12043 * python/py-value.c: Use C++ exception handling.
12044 * python/py-utils.c: Use C++ exception handling.
12045 * python/py-unwind.c: Use C++ exception handling.
12046 * python/py-type.c: Use C++ exception handling.
12047 * python/py-symbol.c: Use C++ exception handling.
12048 * python/py-record.c: Use C++ exception handling.
12049 * python/py-record-btrace.c: Use C++ exception handling.
12050 * python/py-progspace.c: Use C++ exception handling.
12051 * python/py-prettyprint.c: Use C++ exception handling.
12052 * python/py-param.c: Use C++ exception handling.
12053 * python/py-objfile.c: Use C++ exception handling.
12054 * python/py-linetable.c: Use C++ exception handling.
12055 * python/py-lazy-string.c: Use C++ exception handling.
12056 * python/py-infthread.c: Use C++ exception handling.
12057 * python/py-inferior.c: Use C++ exception handling.
12058 * python/py-gdb-readline.c: Use C++ exception handling.
12059 * python/py-framefilter.c: Use C++ exception handling.
12060 * python/py-frame.c: Use C++ exception handling.
12061 * python/py-finishbreakpoint.c: Use C++ exception handling.
12062 * python/py-cmd.c: Use C++ exception handling.
12063 * python/py-breakpoint.c: Use C++ exception handling.
12064 * python/py-arch.c: Use C++ exception handling.
12065 * printcmd.c: Use C++ exception handling.
12066 * ppc-linux-tdep.c: Use C++ exception handling.
12067 * parse.c: Use C++ exception handling.
12068 * p-valprint.c: Use C++ exception handling.
12069 * objc-lang.c: Use C++ exception handling.
12070 * mi/mi-main.c: Use C++ exception handling.
12071 * mi/mi-interp.c: Use C++ exception handling.
12072 * mi/mi-cmd-stack.c: Use C++ exception handling.
12073 * mi/mi-cmd-break.c: Use C++ exception handling.
12074 * main.c: Use C++ exception handling.
12075 * linux-thread-db.c: Use C++ exception handling.
12076 * linux-tdep.c: Use C++ exception handling.
12077 * linux-nat.c: Use C++ exception handling.
12078 * linux-fork.c: Use C++ exception handling.
12079 * linespec.c: Use C++ exception handling.
12080 * language.c: Use C++ exception handling.
12081 * jit.c: Use C++ exception handling.
12082 * infrun.c: Use C++ exception handling.
12083 * infcmd.c: Use C++ exception handling.
12084 * infcall.c: Use C++ exception handling.
12085 * inf-loop.c: Use C++ exception handling.
12086 * i386-tdep.c: Use C++ exception handling.
12087 * i386-linux-tdep.c: Use C++ exception handling.
12088 * guile/scm-value.c: Use C++ exception handling.
12089 * guile/scm-type.c: Use C++ exception handling.
12090 * guile/scm-symtab.c: Use C++ exception handling.
12091 * guile/scm-symbol.c: Use C++ exception handling.
12092 * guile/scm-pretty-print.c: Use C++ exception handling.
12093 * guile/scm-ports.c: Use C++ exception handling.
12094 * guile/scm-param.c: Use C++ exception handling.
12095 * guile/scm-math.c: Use C++ exception handling.
12096 * guile/scm-lazy-string.c: Use C++ exception handling.
12097 * guile/scm-frame.c: Use C++ exception handling.
12098 * guile/scm-disasm.c: Use C++ exception handling.
12099 * guile/scm-cmd.c: Use C++ exception handling.
12100 * guile/scm-breakpoint.c: Use C++ exception handling.
12101 * guile/scm-block.c: Use C++ exception handling.
12102 * guile/guile-internal.h: Use C++ exception handling.
12103 * gnu-v3-abi.c: Use C++ exception handling.
12104 * gdbtypes.c: Use C++ exception handling.
12105 * frame.c: Use C++ exception handling.
12106 * frame-unwind.c: Use C++ exception handling.
12107 * fbsd-tdep.c: Use C++ exception handling.
12108 * f-valprint.c: Use C++ exception handling.
12109 * exec.c: Use C++ exception handling.
12110 * event-top.c: Use C++ exception handling.
12111 * event-loop.c: Use C++ exception handling.
12112 * eval.c: Use C++ exception handling.
12113 * dwarf2read.c: Use C++ exception handling.
12114 * dwarf2loc.c: Use C++ exception handling.
12115 * dwarf2-frame.c: Use C++ exception handling.
12116 * dwarf2-frame-tailcall.c: Use C++ exception handling.
12117 * dwarf-index-write.c: Use C++ exception handling.
12118 * dwarf-index-cache.c: Use C++ exception handling.
12119 * dtrace-probe.c: Use C++ exception handling.
12120 * disasm-selftests.c: Use C++ exception handling.
12121 * darwin-nat.c: Use C++ exception handling.
12122 * cp-valprint.c: Use C++ exception handling.
12123 * cp-support.c: Use C++ exception handling.
12124 * cp-abi.c: Use C++ exception handling.
12125 * corelow.c: Use C++ exception handling.
12126 * completer.c: Use C++ exception handling.
12127 * compile/compile-object-run.c: Use C++ exception handling.
12128 * compile/compile-object-load.c: Use C++ exception handling.
12129 * compile/compile-cplus-symbols.c: Use C++ exception handling.
12130 * compile/compile-c-symbols.c: Use C++ exception handling.
12131 * common/selftest.c: Use C++ exception handling.
12132 * common/new-op.c: Use C++ exception handling.
12133 * cli/cli-script.c: Use C++ exception handling.
12134 * cli/cli-interp.c: Use C++ exception handling.
12135 * cli/cli-cmds.c: Use C++ exception handling.
12136 * c-varobj.c: Use C++ exception handling.
12137 * btrace.c: Use C++ exception handling.
12138 * breakpoint.c: Use C++ exception handling.
12139 * break-catch-throw.c: Use C++ exception handling.
12140 * arch-utils.c: Use C++ exception handling.
12141 * amd64-tdep.c: Use C++ exception handling.
12142 * ada-valprint.c: Use C++ exception handling.
12143 * ada-typeprint.c: Use C++ exception handling.
12144 * ada-lang.c: Use C++ exception handling.
12145 * aarch64-tdep.c: Use C++ exception handling.
12146
3d6e9d23
TT
121472019-04-08 Tom Tromey <tom@tromey.com>
12148
12149 * xml-support.c (gdb_xml_parser::parse): Update.
12150 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
12151 * value.c (show_convenience): Update.
12152 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
12153 (test_parse_flags_qcs): Update.
12154 * thread.c (thr_try_catch_cmd): Update.
12155 * target.c (target_translate_tls_address): Update.
12156 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
12157 (info_frame_command_core, frame_apply_command_count): Update.
12158 * rust-exp.y (rust_lex_exception_test): Update.
12159 * riscv-tdep.c (riscv_print_one_register_info): Update.
12160 * remote.c (remote_target::enable_btrace): Update.
12161 * record-btrace.c (record_btrace_enable_warn): Update.
12162 * python/py-utils.c (gdbpy_convert_exception): Update.
12163 * printcmd.c (do_one_display, print_variable_and_value): Update.
12164 * mi/mi-main.c (mi_print_exception): Update.
12165 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
12166 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
12167 * linux-nat.c (linux_nat_target::attach): Update.
12168 * linux-fork.c (class scoped_switch_fork_info): Update.
12169 * infrun.c (displaced_step_prepare): Update.
12170 * infcall.c (call_function_by_hand_dummy): Update.
12171 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
12172 * gnu-v3-abi.c (print_one_vtable): Update.
12173 * frame.c (get_prev_frame_always): Update.
12174 * f-valprint.c (info_common_command_for_block): Update.
12175 * exec.c (try_open_exec_file): Update.
12176 * exceptions.c (print_exception, exception_print)
12177 (exception_fprintf, exception_print_same): Update.
12178 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
12179 * dwarf-index-cache.c (index_cache::store)
12180 (index_cache::lookup_gdb_index): Update.
12181 * darwin-nat.c (maybe_cache_shell): Update.
12182 * cp-valprint.c (cp_print_value_fields): Update.
12183 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
12184 (gcc_cplus_symbol_address): Update.
12185 * compile/compile-c-symbols.c (gcc_convert_symbol)
12186 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
12187 * common/selftest.c: Update.
12188 * common/common-exceptions.h (struct gdb_exception) <message>: Now
12189 a std::string.
12190 (exception_try_scope_entry, exception_try_scope_exit): Don't
12191 declare.
12192 (struct exception_try_scope): Remove.
12193 (TRY): Don't use exception_try_scope.
12194 (struct gdb_exception): Add constructor, operator=.
12195 <what>: New method.
12196 (struct gdb_exception_RETURN_MASK_ALL)
12197 (struct gdb_exception_RETURN_MASK_ERROR)
12198 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
12199 (struct gdb_quit_bad_alloc): Update.
12200 * common/common-exceptions.c (exception_none): Change
12201 initializer.
12202 (struct catcher) <state, exception>: Initialize inline.
12203 <prev>: Remove member.
12204 (current_catcher): Remove.
12205 (catchers): New global.
12206 (exceptions_state_mc_init): Simplify.
12207 (catcher_pop): Remove.
12208 (exceptions_state_mc, exceptions_state_mc_catch): Update.
12209 (try_scope_depth, exception_try_scope_entry)
12210 (exception_try_scope_exit): Remove.
12211 (throw_exception_sjlj): Update.
12212 (exception_messages, exception_messages_size): Remove.
12213 (throw_it): Simplify.
12214 (gdb_exception_sliced_copy): Remove.
12215 (throw_exception_cxx): Update.
12216 * cli/cli-script.c (script_from_file): Update.
12217 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
12218 Update.
12219 * ada-valprint.c (ada_val_print): Update.
12220 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
12221 (create_excep_cond_exprs): Update.
12222
c5c10118
TT
122232019-04-08 Tom Tromey <tom@tromey.com>
12224
12225 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
12226 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
12227 (TRY, CATCH, END_CATCH): Remove some definitions.
12228 * common/common-exceptions.c: Don't use GDB_XCPT.
12229 (catcher_list_size): Remove.
12230 (throw_exception, throw_it): Simplify.
12231
4de283e4
TT
122322019-04-05 Tom Tromey <tom@tromey.com>
12233
12234 Revert the header-sorting patch.
12235 * ft32-tdep.c: Revert.
12236 * frv-tdep.c: Revert.
12237 * frv-linux-tdep.c: Revert.
12238 * frame.c: Revert.
12239 * frame-unwind.c: Revert.
12240 * frame-base.c: Revert.
12241 * fork-child.c: Revert.
12242 * findvar.c: Revert.
12243 * findcmd.c: Revert.
12244 * filesystem.c: Revert.
12245 * filename-seen-cache.h: Revert.
12246 * filename-seen-cache.c: Revert.
12247 * fbsd-tdep.c: Revert.
12248 * fbsd-nat.h: Revert.
12249 * fbsd-nat.c: Revert.
12250 * f-valprint.c: Revert.
12251 * f-typeprint.c: Revert.
12252 * f-lang.c: Revert.
12253 * extension.h: Revert.
12254 * extension.c: Revert.
12255 * extension-priv.h: Revert.
12256 * expprint.c: Revert.
12257 * exec.h: Revert.
12258 * exec.c: Revert.
12259 * exceptions.c: Revert.
12260 * event-top.c: Revert.
12261 * event-loop.c: Revert.
12262 * eval.c: Revert.
12263 * elfread.c: Revert.
12264 * dwarf2read.h: Revert.
12265 * dwarf2read.c: Revert.
12266 * dwarf2loc.c: Revert.
12267 * dwarf2expr.h: Revert.
12268 * dwarf2expr.c: Revert.
12269 * dwarf2-frame.c: Revert.
12270 * dwarf2-frame-tailcall.c: Revert.
12271 * dwarf-index-write.h: Revert.
12272 * dwarf-index-write.c: Revert.
12273 * dwarf-index-common.c: Revert.
12274 * dwarf-index-cache.h: Revert.
12275 * dwarf-index-cache.c: Revert.
12276 * dummy-frame.c: Revert.
12277 * dtrace-probe.c: Revert.
12278 * disasm.h: Revert.
12279 * disasm.c: Revert.
12280 * disasm-selftests.c: Revert.
12281 * dictionary.c: Revert.
12282 * dicos-tdep.c: Revert.
12283 * demangle.c: Revert.
12284 * dcache.h: Revert.
12285 * dcache.c: Revert.
12286 * darwin-nat.h: Revert.
12287 * darwin-nat.c: Revert.
12288 * darwin-nat-info.c: Revert.
12289 * d-valprint.c: Revert.
12290 * d-namespace.c: Revert.
12291 * d-lang.c: Revert.
12292 * ctf.c: Revert.
12293 * csky-tdep.c: Revert.
12294 * csky-linux-tdep.c: Revert.
12295 * cris-tdep.c: Revert.
12296 * cris-linux-tdep.c: Revert.
12297 * cp-valprint.c: Revert.
12298 * cp-support.c: Revert.
12299 * cp-namespace.c: Revert.
12300 * cp-abi.c: Revert.
12301 * corelow.c: Revert.
12302 * corefile.c: Revert.
12303 * continuations.c: Revert.
12304 * completer.h: Revert.
12305 * completer.c: Revert.
12306 * complaints.c: Revert.
12307 * coffread.c: Revert.
12308 * coff-pe-read.c: Revert.
12309 * cli-out.h: Revert.
12310 * cli-out.c: Revert.
12311 * charset.c: Revert.
12312 * c-varobj.c: Revert.
12313 * c-valprint.c: Revert.
12314 * c-typeprint.c: Revert.
12315 * c-lang.c: Revert.
12316 * buildsym.c: Revert.
12317 * buildsym-legacy.c: Revert.
12318 * build-id.h: Revert.
12319 * build-id.c: Revert.
12320 * btrace.c: Revert.
12321 * bsd-uthread.c: Revert.
12322 * breakpoint.h: Revert.
12323 * breakpoint.c: Revert.
12324 * break-catch-throw.c: Revert.
12325 * break-catch-syscall.c: Revert.
12326 * break-catch-sig.c: Revert.
12327 * blockframe.c: Revert.
12328 * block.c: Revert.
12329 * bfin-tdep.c: Revert.
12330 * bfin-linux-tdep.c: Revert.
12331 * bfd-target.c: Revert.
12332 * bcache.c: Revert.
12333 * ax-general.c: Revert.
12334 * ax-gdb.h: Revert.
12335 * ax-gdb.c: Revert.
12336 * avr-tdep.c: Revert.
12337 * auxv.c: Revert.
12338 * auto-load.c: Revert.
12339 * arm-wince-tdep.c: Revert.
12340 * arm-tdep.c: Revert.
12341 * arm-symbian-tdep.c: Revert.
12342 * arm-pikeos-tdep.c: Revert.
12343 * arm-obsd-tdep.c: Revert.
12344 * arm-nbsd-tdep.c: Revert.
12345 * arm-nbsd-nat.c: Revert.
12346 * arm-linux-tdep.c: Revert.
12347 * arm-linux-nat.c: Revert.
12348 * arm-fbsd-tdep.c: Revert.
12349 * arm-fbsd-nat.c: Revert.
12350 * arm-bsd-tdep.c: Revert.
12351 * arch-utils.c: Revert.
12352 * arc-tdep.c: Revert.
12353 * arc-newlib-tdep.c: Revert.
12354 * annotate.h: Revert.
12355 * annotate.c: Revert.
12356 * amd64-windows-tdep.c: Revert.
12357 * amd64-windows-nat.c: Revert.
12358 * amd64-tdep.c: Revert.
12359 * amd64-sol2-tdep.c: Revert.
12360 * amd64-obsd-tdep.c: Revert.
12361 * amd64-obsd-nat.c: Revert.
12362 * amd64-nbsd-tdep.c: Revert.
12363 * amd64-nbsd-nat.c: Revert.
12364 * amd64-nat.c: Revert.
12365 * amd64-linux-tdep.c: Revert.
12366 * amd64-linux-nat.c: Revert.
12367 * amd64-fbsd-tdep.c: Revert.
12368 * amd64-fbsd-nat.c: Revert.
12369 * amd64-dicos-tdep.c: Revert.
12370 * amd64-darwin-tdep.c: Revert.
12371 * amd64-bsd-nat.c: Revert.
12372 * alpha-tdep.c: Revert.
12373 * alpha-obsd-tdep.c: Revert.
12374 * alpha-nbsd-tdep.c: Revert.
12375 * alpha-mdebug-tdep.c: Revert.
12376 * alpha-linux-tdep.c: Revert.
12377 * alpha-linux-nat.c: Revert.
12378 * alpha-bsd-tdep.c: Revert.
12379 * alpha-bsd-nat.c: Revert.
12380 * aix-thread.c: Revert.
12381 * agent.c: Revert.
12382 * addrmap.c: Revert.
12383 * ada-varobj.c: Revert.
12384 * ada-valprint.c: Revert.
12385 * ada-typeprint.c: Revert.
12386 * ada-tasks.c: Revert.
12387 * ada-lang.c: Revert.
12388 * aarch64-tdep.c: Revert.
12389 * aarch64-ravenscar-thread.c: Revert.
12390 * aarch64-newlib-tdep.c: Revert.
12391 * aarch64-linux-tdep.c: Revert.
12392 * aarch64-linux-nat.c: Revert.
12393 * aarch64-fbsd-tdep.c: Revert.
12394 * aarch64-fbsd-nat.c: Revert.
12395 * aarch32-linux-nat.c: Revert.
12396
d55e5aa6
TT
123972019-04-05 Tom Tromey <tom@tromey.com>
12398
12399 * ft32-tdep.c: Sort headers.
12400 * frv-tdep.c: Sort headers.
12401 * frv-linux-tdep.c: Sort headers.
12402 * frame.c: Sort headers.
12403 * frame-unwind.c: Sort headers.
12404 * frame-base.c: Sort headers.
12405 * fork-child.c: Sort headers.
12406 * findvar.c: Sort headers.
12407 * findcmd.c: Sort headers.
12408 * filesystem.c: Sort headers.
12409 * filename-seen-cache.h: Sort headers.
12410 * filename-seen-cache.c: Sort headers.
12411 * fbsd-tdep.c: Sort headers.
12412 * fbsd-nat.h: Sort headers.
12413 * fbsd-nat.c: Sort headers.
12414 * f-valprint.c: Sort headers.
12415 * f-typeprint.c: Sort headers.
12416 * f-lang.c: Sort headers.
12417 * extension.h: Sort headers.
12418 * extension.c: Sort headers.
12419 * extension-priv.h: Sort headers.
12420 * expprint.c: Sort headers.
12421 * exec.h: Sort headers.
12422 * exec.c: Sort headers.
12423 * exceptions.c: Sort headers.
12424 * event-top.c: Sort headers.
12425 * event-loop.c: Sort headers.
12426 * eval.c: Sort headers.
12427 * elfread.c: Sort headers.
12428 * dwarf2read.h: Sort headers.
12429 * dwarf2read.c: Sort headers.
12430 * dwarf2loc.c: Sort headers.
12431 * dwarf2expr.h: Sort headers.
12432 * dwarf2expr.c: Sort headers.
12433 * dwarf2-frame.c: Sort headers.
12434 * dwarf2-frame-tailcall.c: Sort headers.
12435 * dwarf-index-write.h: Sort headers.
12436 * dwarf-index-write.c: Sort headers.
12437 * dwarf-index-common.c: Sort headers.
12438 * dwarf-index-cache.h: Sort headers.
12439 * dwarf-index-cache.c: Sort headers.
12440 * dummy-frame.c: Sort headers.
12441 * dtrace-probe.c: Sort headers.
12442 * disasm.h: Sort headers.
12443 * disasm.c: Sort headers.
12444 * disasm-selftests.c: Sort headers.
12445 * dictionary.c: Sort headers.
12446 * dicos-tdep.c: Sort headers.
12447 * demangle.c: Sort headers.
12448 * dcache.h: Sort headers.
12449 * dcache.c: Sort headers.
12450 * darwin-nat.h: Sort headers.
12451 * darwin-nat.c: Sort headers.
12452 * darwin-nat-info.c: Sort headers.
12453 * d-valprint.c: Sort headers.
12454 * d-namespace.c: Sort headers.
12455 * d-lang.c: Sort headers.
12456 * ctf.c: Sort headers.
12457 * csky-tdep.c: Sort headers.
12458 * csky-linux-tdep.c: Sort headers.
12459 * cris-tdep.c: Sort headers.
12460 * cris-linux-tdep.c: Sort headers.
12461 * cp-valprint.c: Sort headers.
12462 * cp-support.c: Sort headers.
12463 * cp-namespace.c: Sort headers.
12464 * cp-abi.c: Sort headers.
12465 * corelow.c: Sort headers.
12466 * corefile.c: Sort headers.
12467 * continuations.c: Sort headers.
12468 * completer.h: Sort headers.
12469 * completer.c: Sort headers.
12470 * complaints.c: Sort headers.
12471 * coffread.c: Sort headers.
12472 * coff-pe-read.c: Sort headers.
12473 * cli-out.h: Sort headers.
12474 * cli-out.c: Sort headers.
12475 * charset.c: Sort headers.
12476 * c-varobj.c: Sort headers.
12477 * c-valprint.c: Sort headers.
12478 * c-typeprint.c: Sort headers.
12479 * c-lang.c: Sort headers.
12480 * buildsym.c: Sort headers.
12481 * buildsym-legacy.c: Sort headers.
12482 * build-id.h: Sort headers.
12483 * build-id.c: Sort headers.
12484 * btrace.c: Sort headers.
12485 * bsd-uthread.c: Sort headers.
12486 * breakpoint.h: Sort headers.
12487 * breakpoint.c: Sort headers.
12488 * break-catch-throw.c: Sort headers.
12489 * break-catch-syscall.c: Sort headers.
12490 * break-catch-sig.c: Sort headers.
12491 * blockframe.c: Sort headers.
12492 * block.c: Sort headers.
12493 * bfin-tdep.c: Sort headers.
12494 * bfin-linux-tdep.c: Sort headers.
12495 * bfd-target.c: Sort headers.
12496 * bcache.c: Sort headers.
12497 * ax-general.c: Sort headers.
12498 * ax-gdb.h: Sort headers.
12499 * ax-gdb.c: Sort headers.
12500 * avr-tdep.c: Sort headers.
12501 * auxv.c: Sort headers.
12502 * auto-load.c: Sort headers.
12503 * arm-wince-tdep.c: Sort headers.
12504 * arm-tdep.c: Sort headers.
12505 * arm-symbian-tdep.c: Sort headers.
12506 * arm-pikeos-tdep.c: Sort headers.
12507 * arm-obsd-tdep.c: Sort headers.
12508 * arm-nbsd-tdep.c: Sort headers.
12509 * arm-nbsd-nat.c: Sort headers.
12510 * arm-linux-tdep.c: Sort headers.
12511 * arm-linux-nat.c: Sort headers.
12512 * arm-fbsd-tdep.c: Sort headers.
12513 * arm-fbsd-nat.c: Sort headers.
12514 * arm-bsd-tdep.c: Sort headers.
12515 * arch-utils.c: Sort headers.
12516 * arc-tdep.c: Sort headers.
12517 * arc-newlib-tdep.c: Sort headers.
12518 * annotate.h: Sort headers.
12519 * annotate.c: Sort headers.
12520 * amd64-windows-tdep.c: Sort headers.
12521 * amd64-windows-nat.c: Sort headers.
12522 * amd64-tdep.c: Sort headers.
12523 * amd64-sol2-tdep.c: Sort headers.
12524 * amd64-obsd-tdep.c: Sort headers.
12525 * amd64-obsd-nat.c: Sort headers.
12526 * amd64-nbsd-tdep.c: Sort headers.
12527 * amd64-nbsd-nat.c: Sort headers.
12528 * amd64-nat.c: Sort headers.
12529 * amd64-linux-tdep.c: Sort headers.
12530 * amd64-linux-nat.c: Sort headers.
12531 * amd64-fbsd-tdep.c: Sort headers.
12532 * amd64-fbsd-nat.c: Sort headers.
12533 * amd64-dicos-tdep.c: Sort headers.
12534 * amd64-darwin-tdep.c: Sort headers.
12535 * amd64-bsd-nat.c: Sort headers.
12536 * alpha-tdep.c: Sort headers.
12537 * alpha-obsd-tdep.c: Sort headers.
12538 * alpha-nbsd-tdep.c: Sort headers.
12539 * alpha-mdebug-tdep.c: Sort headers.
12540 * alpha-linux-tdep.c: Sort headers.
12541 * alpha-linux-nat.c: Sort headers.
12542 * alpha-bsd-tdep.c: Sort headers.
12543 * alpha-bsd-nat.c: Sort headers.
12544 * aix-thread.c: Sort headers.
12545 * agent.c: Sort headers.
12546 * addrmap.c: Sort headers.
12547 * ada-varobj.c: Sort headers.
12548 * ada-valprint.c: Sort headers.
12549 * ada-typeprint.c: Sort headers.
12550 * ada-tasks.c: Sort headers.
12551 * ada-lang.c: Sort headers.
12552 * aarch64-tdep.c: Sort headers.
12553 * aarch64-ravenscar-thread.c: Sort headers.
12554 * aarch64-newlib-tdep.c: Sort headers.
12555 * aarch64-linux-tdep.c: Sort headers.
12556 * aarch64-linux-nat.c: Sort headers.
12557 * aarch64-fbsd-tdep.c: Sort headers.
12558 * aarch64-fbsd-nat.c: Sort headers.
12559 * aarch32-linux-nat.c: Sort headers.
12560
699bd4cf
TT
125612019-04-04 Tom Tromey <tom@tromey.com>
12562
12563 * varobj.c (varobj_create): Update.
12564 * rust-exp.y (struct rust_parser) <update_innermost_block,
12565 lookup_symbol>: New methods.
12566 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
12567 Rename.
12568 (rust_parser::rust_lookup_type)
12569 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
12570 * printcmd.c (display_command, do_one_display): Update.
12571 * parser-defs.h (struct parser_state) <parser_state>: Add
12572 "tracker" parameter.
12573 (block_tracker): New member.
12574 (class innermost_block_tracker) <innermost_block_tracker>: Add
12575 "types" parameter.
12576 <reset>: Remove method.
12577 (innermost_block): Don't declare.
12578 (null_post_parser): Update.
12579 * parse.c (innermost_block): Remove global.
12580 (write_dollar_variable): Update.
12581 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
12582 Remove "tracker_types" parameter.
12583 (parse_expression): Add "tracker" parameter.
12584 (parse_expression_for_completion): Update.
12585 (null_post_parser): Add "tracker" parameter.
12586 * p-exp.y: Update rules.
12587 * m2-exp.y: Update rules.
12588 * language.h (struct language_defn) <la_post_parser>: Add
12589 "tracker" parameter.
12590 * go-exp.y: Update rules.
12591 * f-exp.y: Update rules.
12592 * expression.h (parse_expression, parse_exp_1): Add "tracker"
12593 parameter.
12594 * d-exp.y: Update rules.
12595 * c-exp.y: Update rules.
12596 * breakpoint.c (set_breakpoint_condition): Create an
12597 innermost_block_tracker.
12598 (watch_command_1): Likewise.
12599 * ada-lang.c (resolve): Add "tracker" parameter.
12600 (resolve_subexp): Likewise.
12601 * ada-exp.y (write_var_from_sym): Update.
12602
dac43e32
TT
126032019-04-04 Tom Tromey <tom@tromey.com>
12604
12605 * type-stack.h: New file.
12606 * type-stack.c: New file.
12607 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
12608 type-stack.h.
12609 (insert_into_type_stack, insert_type, push_type, push_type_int)
12610 (insert_type_address_space, pop_type, pop_type_int)
12611 (pop_typelist, pop_type_stack, append_type_stack)
12612 (push_type_stack, get_type_stack, push_typelist)
12613 (follow_type_instance_flags, follow_types): Don't declare.
12614 * parse.c (type_stack): Remove global.
12615 (parse_exp_in_context): Update.
12616 (insert_into_type_stack, insert_type, push_type, push_type_int)
12617 (insert_type_address_space, pop_type, pop_type_int)
12618 (pop_typelist, pop_type_stack, append_type_stack)
12619 (push_type_stack, get_type_stack, push_typelist)
12620 (follow_type_instance_flags, follow_types): Remove (moved to
12621 type-stack.c).
12622 * f-exp.y (type_stack): New global.
12623 Update rules.
12624 (push_kind_type, f_parse): Update.
12625 * d-exp.y (type_stack): New global.
12626 Update rules.
12627 (d_parse): Update.
12628 * c-exp.y (struct c_parse_state) <type_stack>: New member.
12629 Update rules.
12630 * Makefile.in (COMMON_SFILES): Add type-stack.c.
12631 (HFILES_NO_SRCDIR): Add type-stack.h.
12632
2a612529
TT
126332019-04-04 Tom Tromey <tom@tromey.com>
12634
12635 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
12636 (rust_parser::convert_ast_to_expression, rust_parse)
12637 (rust_lex_test_completion, rust_lex_tests): Update.
12638 * parser-defs.h (struct expr_completion_state): New.
12639 (struct parser_state) <parser_state>: Add completion parameter.
12640 <mark_struct_expression, mark_completion_tag>: New methods.
12641 <parse_completion, m_completion_state>: New members.
12642 (prefixify_expression, null_post_parser): Update.
12643 (mark_struct_expression, mark_completion_tag): Don't declare.
12644 * parse.c (parse_completion, expout_last_struct)
12645 (expout_tag_completion_type, expout_completion_name): Remove
12646 globals.
12647 (parser_state::mark_struct_expression)
12648 (parser_state::mark_completion_tag): Now methods.
12649 (prefixify_expression): Add last_struct parameter.
12650 (prefixify_subexp): Likewise.
12651 (parse_exp_1): Update.
12652 (parse_exp_in_context): Add cstate parameter. Update.
12653 (parse_expression_for_completion): Create an
12654 expr_completion_state.
12655 (null_post_parser): Add "completion" parameter.
12656 * p-exp.y: Update rules.
12657 (yylex): Update.
12658 * language.h (struct language_defn) <la_post_parser>: Add
12659 "completing" parameter.
12660 * go-exp.y: Update rules.
12661 (lex_one_token): Update.
12662 * expression.h (parse_completion): Don't declare.
12663 * d-exp.y: Update rules.
12664 (lex_one_token): Update rules.
12665 * c-exp.y: Update rules.
12666 (lex_one_token): Update.
12667 * ada-lang.c (resolve): Add "parse_completion" parameter.
12668 (resolve_subexp): Likewise.
12669 (ada_resolve_function): Likewise.
12670
43476f0b
TT
126712019-04-04 Tom Tromey <tom@tromey.com>
12672
12673 * parser-defs.h (struct parser_state) <start_arglist,
12674 end_arglist>: New methods.
12675 <arglist_len, m_funcall_chain>: New members.
12676 (arglist_len, start_arglist, end_arglist): Don't declare.
12677 * parse.c (arglist_len, funcall_chain): Remove global.
12678 (start_arglist, end_arglist): Remove functions.
12679 (parse_exp_in_context): Update.
12680 * p-exp.y: Update rules.
12681 * m2-exp.y: Update rules.
12682 * go-exp.y: Update rules.
12683 * f-exp.y: Update rules.
12684 * d-exp.y: Update rules.
12685 * c-exp.y: Update rules.
12686
5776fca3
TT
126872019-04-04 Tom Tromey <tom@tromey.com>
12688
12689 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
12690 lex_operator, push_back>: New methods.
12691 Update all rules.
12692 (rust_parser::lex_hex, lex_escape): Rename and update.
12693 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
12694 (rust_parser::lex_operator): Rename and update.
12695 (rust_parser::lex_number, rustyylex, rustyyerror)
12696 (rust_lex_test_init, rust_lex_test_sequence)
12697 (rust_lex_test_push_back, rust_lex_tests): Update.
12698 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
12699 parameter.
12700 <lexptr, prev_lexptr>: New members.
12701 (lexptr, prev_lexptr): Don't declare.
12702 * parse.c (lexptr, prev_lexptr): Remove globals.
12703 (parse_exp_in_context): Update.
12704 * p-exp.y (yylex, yyerror): Update.
12705 * m2-exp.y (parse_number, yylex, yyerror): Update.
12706 * go-exp.y (lex_one_token, yyerror): Update.
12707 * f-exp.y (match_string_literal, yylex, yyerror): Update.
12708 * d-exp.y (lex_one_token, yyerror): Update.
12709 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
12710 (lex_one_token, yyerror): Update.
12711 * ada-lex.l (YY_INPUT): Update.
12712 (rewind_to_char): Update.
12713 * ada-exp.y (yyerror): Update.
12714
8621b685
TT
127152019-04-04 Tom Tromey <tom@tromey.com>
12716
12717 * rust-exp.y (rustyylex, rust_lex_tests): Update.
12718 * parser-defs.h (struct parser_state) <parser_state>: Add new
12719 parameter.
12720 <comma_terminates>: New member.
12721 (comma_terminates): Don't declare global.
12722 * parse.c (comma_terminates): Remove global.
12723 (parse_exp_in_context): Update.
12724 * p-exp.y (yylex): Update.
12725 * m2-exp.y (yylex): Update.
12726 * go-exp.y (lex_one_token): Update.
12727 * f-exp.y (yylex): Update.
12728 * d-exp.y (lex_one_token): Update.
12729 * c-exp.y (lex_one_token): Update.
12730 * ada-lex.l: Update.
12731
28aaf3fd
TT
127322019-04-04 Tom Tromey <tom@tromey.com>
12733
12734 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
12735 (rustyylex, rust_lex_test_init, rust_lex_test_one)
12736 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
12737 * parser-defs.h (paren_depth): Don't declare.
12738 * parse.c (paren_depth): Remove global.
12739 (parse_exp_in_context): Update.
12740 * p-exp.y (paren_depth): New global.
12741 (pascal_parse): Initialize it.
12742 * m2-exp.y (paren_depth): New global.
12743 (m2_parse): Initialize it.
12744 * go-exp.y (paren_depth): New global.
12745 (go_parse): Initialize it.
12746 * f-exp.y (paren_depth): New global.
12747 (f_parse): Initialize it.
12748 * d-exp.y (paren_depth): New global.
12749 (d_parse): Initialize it.
12750 * c-exp.y (paren_depth): New global.
12751 (c_parse): Initialize it.
12752 * ada-lex.l (paren_depth): New global.
12753 (lexer_init): Initialize it.
12754
1e58a4a4
TT
127552019-04-04 Tom Tromey <tom@tromey.com>
12756
12757 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
12758 (rust_parser::convert_ast_to_type)
12759 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
12760 * parser-defs.h (struct parser_state) <parser_state>: Add
12761 parameters. Initialize new members.
12762 <expression_context_block, expression_context_pc>: New members.
12763 * parse.c (expression_context_block, expression_context_pc):
12764 Remove globals.
12765 (parse_exp_in_context): Update.
12766 * p-exp.y: Update all rules.
12767 (yylex): Update.
12768 * m2-exp.y: Update all rules.
12769 (yylex): Update.
12770 * go-exp.y (yylex): Update.
12771 * f-exp.y (yylex): Update.
12772 * d-exp.y: Update all rules.
12773 (yylex): Update.
12774 * c-exp.y: Update all rules.
12775 (lex_one_token, classify_name, yylex, c_parse): Update.
12776 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
12777
37eedb39
TT
127782019-04-04 Tom Tromey <tom@tromey.com>
12779
12780 * gdbarch.h, gdbarch.c: Rebuild.
12781 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
12782 * stap-probe.h:
12783 (struct stap_parse_info): Replace "parser_state" with
12784 "expr_builder".
12785 * parser-defs.h (struct expr_builder): Rename from "parser_state".
12786 (parser_state): New class.
12787 * parse.c (expr_builder): Rename.
12788 (expr_builder::release): Rename.
12789 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
12790 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
12791 (write_exp_elt_longcst, write_exp_elt_floatcst)
12792 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
12793 (write_exp_string_vector, write_exp_bitstring)
12794 (write_exp_msymbol, mark_struct_expression)
12795 (write_dollar_variable)
12796 (insert_type_address_space, increase_expout_size): Replace
12797 "parser_state" with "expr_builder".
12798 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
12799 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
12800 "parser_state" with "expr_builder".
12801
73923d7e
TT
128022019-04-04 Tom Tromey <tom@tromey.com>
12803
12804 * rust-exp.y: Replace "parse_language" with method call.
12805 * p-exp.y:
12806 (yylex): Replace "parse_language" with method call.
12807 * m2-exp.y:
12808 (yylex): Replace "parse_language" with method call.
12809 * go-exp.y (classify_name): Replace "parse_language" with method
12810 call.
12811 * f-exp.y (yylex): Replace "parse_language" with method call.
12812 * d-exp.y (lex_one_token): Replace "parse_language" with method
12813 call.
12814 * c-exp.y:
12815 (lex_one_token, classify_name, yylex): Replace "parse_language"
12816 with method call.
12817 * ada-exp.y (find_primitive_type, type_char)
12818 (type_system_address): Replace "parse_language" with method call.
12819
fa9f5be6
TT
128202019-04-04 Tom Tromey <tom@tromey.com>
12821
12822 * rust-exp.y: Replace "parse_gdbarch" with method call.
12823 * parse.c (write_dollar_variable, insert_type_address_space):
12824 Replace "parse_gdbarch" with method call.
12825 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
12826 call.
12827 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
12828 call.
12829 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
12830 "parse_gdbarch" with method call.
12831 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
12832 with method call.
12833 * f-exp.y (parse_type, parse_f_type, yylex): Replace
12834 "parse_gdbarch" with method call.
12835 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
12836 "parse_gdbarch" with method call.
12837 * c-exp.y (parse_type, parse_number, classify_name): Replace
12838 "parse_gdbarch" with method call.
12839 * ada-lex.l: Replace "parse_gdbarch" with method call.
12840 * ada-exp.y (parse_type, find_primitive_type, type_char)
12841 (type_system_address): Replace "parse_gdbarch" with method call.
12842
1201a264
TT
128432019-04-04 Tom Tromey <tom@tromey.com>
12844
12845 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
12846 * stap-probe.c (stap_parse_argument): Update.
12847 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
12848 initial_size parameter.
12849 * rust-exp.y (rust_lex_tests): Update.
12850 * parse.c (parser_state): Update.
12851 (parse_exp_in_context): Update.
12852 * parser-defs.h (struct parser_state) <parser_state>: Remove
12853 "initial_size" parameter.
12854
e3980ce2
TT
128552019-04-04 Tom Tromey <tom@tromey.com>
12856
12857 * parser-defs.h (increase_expout_size): Don't declare.
12858 * parse.c (increase_expout_size): Now static.
12859
e9f8e3f1
TS
128602019-04-04 Thomas Schwinge <thomas@codesourcery.com>
12861
12862 * gnu-nat.c (gnu_nat_target::wait): Fix
12863 target_waitstatus_to_string call.
12864
d7df6549
AB
128652019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
12866
12867 * eval.c (evaluate_subexp_standard): Handle internal functions
12868 during Fortran function call handling.
12869
8bdc1658
AB
128702019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
12871
12872 * NEWS: Mention new internal functions.
12873 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
12874 (read_base_type): Use dwarf2_init_complex_target_type.
12875 * value.c (creal_internal_fn): New function.
12876 (cimag_internal_fn): New function.
12877 (_initialize_values): Register new internal functions.
12878
c29705b7
PW
128792019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12880
12881 * infrun.c (stop_all_threads): If debug_infrun, always
12882 trace the wait status after wait_one, using
12883 target_waitstatus_to_string and target_pid_to_str.
12884 (handle_inferior_event): Replace various trace of
12885 wait status kind by a single trace.
12886 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
12887 wait status kind image by target_waitstatus_to_string.
12888 * target/waitstatus.c (target_waitstatus_to_string): Fix
12889 obsolete comment.
12890
05caa1d2
TT
128912019-04-01 Tom Tromey <tromey@adacore.com>
12892
12893 PR symtab/23331:
12894 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
12895
9d1447e0
SDJ
128962019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
12897 Pedro Alves <palves@redhat.com>
12898
12899 * top.c (quit_force): Call 'finalize_values'.
12900 * value.c (finalize_values): New function.
12901 * value.h (finalize_values): Declare.
12902
7734102d
EZ
129032019-03-30 Eli Zaretskii <eliz@gnu.org>
12904
12905 * NEWS: Announce $_gdb_major and $_gdb_minor.
12906
12907 * top.c (init_gdb_version_vars): New function.
12908 (gdb_init): Call init_gdb_version_vars.
12909
188e1fa9
TT
129102019-03-29 Tom Tromey <tromey@adacore.com>
12911
12912 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
12913 help text. Remove dead code.
12914
2880242d
KS
129152019-03-29 Keith Seitz <keiths@redhat.com>
12916
12917 From Siddhesh Poyarekar:
12918 * f-lang.h (f77_get_upperbound): Return LONGEST.
12919 (f77_get_lowerbound): Likewise.
12920 * f-typeprint.c (f_type_print_varspec_suffix): Expand
12921 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
12922 print them.
12923 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
12924 plongest to format print it.
12925 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
12926 (f77_get_upperbound): Likewise.
12927 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
12928 LOWER_BOUND to LONGEST.
12929 (f77_create_arrayprint_offset_tbl): Likewise.
12930
cc1defb1
KS
129312019-03-29 Keith Seitz <keiths@redhat.com>
12932
12933 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
12934 %s/pulongest for TYPE_LENGTH instead of %d in format
12935 strings.
12936 * ada-typerint.c (ada_print_type): Likewise.
12937 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
12938 * compile/compile-c-support.c (generate_register_struct): Likewise.
12939 * gdbtypes.c (recursive_dump_type): Likewise.
12940 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
12941 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
12942 instead of %d in format strings.
12943 * riscv-tdep.c (riscv_type_alignment): Cast second argument
12944 to std::min to ULONGEST.
12945 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
12946 instead of %d in format strings.
12947 * tracepoint.c (info_scope_command): Likewise.
12948 * typeprint.c (print_offset_data::update)
12949 (print_offset_data::finish): Likewise.
12950 * xtensa-tdep.c (xtensa_store_return_value)
12951 (xtensa_push_dummy_call): Likewise.
12952
e432ccf1
JT
129532019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
12954
12955 * windows-nat.c (display_selector): Fixed format specifications
12956 for 64-bit Cygwin.
12957
65d2b333
PW
129582019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12959
12960 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
12961
f489207e
SL
129622019-03-28 Sandra Loosemore <sandra@codesourcery.com>
12963
12964 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
12965 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
12966 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
12967 (nios2_linux_init_abi): Install it.
12968
bffa1015
AH
129692019-03-28 Alan Hayward <alan.hayward@arm.com>
12970
12971 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
12972
fc96163a
AH
129732019-03-28 Alan Hayward <alan.hayward@arm.com>
12974
12975 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
12976
20dc7e9b
PW
129772019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12978 Tom Tromey <tromey@adacore.com>
12979
12980 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
12981
7f5331a8
JB
129822019-03-26 Joel Brobecker <brobecker@adacore.com>
12983
12984 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
12985 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
12986 method to compute the bounds of range types. Also print "[evaluated]"
12987 if the bounds' values come from a dynamic evaluation.
12988
18c77628
AB
129892019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
12990
12991 * cp-valprint.c (cp_print_value_fields): Don't print trailing
12992 whitespace when pretty printing is on.
12993
53c973f2
AH
129942019-03-26 Alan Hayward <alan.hayward@arm.com>
12995
e79be6e5 12996 * ppc-linux-nat.c: Add include.
53c973f2 12997
d851aa71
AH
129982019-03-26 Alan Hayward <alan.hayward@arm.com>
12999
e79be6e5 13000 * NEWS: Mention AArch64 Pointer Authentication.
d851aa71 13001
2fe7bab7
AH
130022019-03-26 Alan Hayward <alan.hayward@arm.com>
13003
e79be6e5 13004 * arm-linux-nat.c: Add include.
2fe7bab7 13005
068ef30e
SM
130062019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
13007
13008 * source-cache.c (source_cache::get_source_lines): Re-read
13009 fullname after calling open_source_file.
13010
81a24d04
JB
130112019-03-25 John Baldwin <jhb@FreeBSD.org>
13012
13013 * NEWS: Mention TLS support for FreeBSD.
13014
79e7ae11
TT
130152019-03-25 Tom Tromey <tromey@adacore.com>
13016
13017 * minsyms.c (BUNCH_SIZE): Update comment.
13018 (~minimal_symbol_reader): Remove old comment.
13019 (compact_minimal_symbols): Update comment.
13020 (minimal_symbol_reader::install): Remove old comment. Update
13021 other comments.
13022
d45963c2
AH
130232019-03-25 Alan Hayward <alan.hayward@arm.com>
13024
13025 * s390-linux-nat.c: Add include.
13026
0f83012e
AH
130272019-03-25 Alan Hayward <alan.hayward@arm.com>
13028
13029 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
13030 Call linux_get_hwcap.
13031 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
13032 Likewise.
13033 (aarch64_linux_get_hwcap): Remove function.
13034 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
13035 declaration.
13036 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
13037 linux_get_hwcap.
13038 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
13039 * linux-tdep.c (linux_get_hwcap): Add function.
13040 (linux_get_hwcap2): Likewise.
13041 * linux-tdep.h (linux_get_hwcap): Add declaration.
13042 (linux_get_hwcap2): Likewise.
13043 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
13044 (ppc_linux_get_hwcap2): Likewise.
13045 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
13046 linux_get_hwcap.
13047 (ppc_linux_nat_target::insert_watchpoint): Likewise.
13048 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
13049 (ppc_linux_nat_target::read_description): Likewise.
13050 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
13051 * s390-linux-nat.c: Likewise.
13052 * s390-linux-tdep.c (s390_core_read_description): Likewise.
13053
6640a367
TT
130542019-03-24 Tom Tromey <tom@tromey.com>
13055
13056 * ada-lang.c (standard_lookup): Simplify initialization.
13057 (ada_lookup_symbol_nonlocal): Simplify return.
13058 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
13059 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
13060 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
13061 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
13062 initialization.
13063 * solib.c (solib_global_lookup): Simplify.
13064 * symtab.c (null_block_symbol): Remove.
13065 (symbol_cache_lookup): Simplify returns.
13066 (lookup_language_this): Simplify returns.
13067 (lookup_symbol_aux): Simplify return.
13068 (lookup_local_symbol): Simplify returns.
13069 (lookup_global_symbol_from_objfile): Simplify return.
13070 (lookup_symbol_in_objfile_symtabs)
13071 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
13072 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
13073 (lookup_static_symbol, lookup_global_symbol): Simplify return.
13074 * cp-namespace.c (cp_lookup_bare_symbol)
13075 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
13076 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
13077 (cp_lookup_nested_symbol): Don't use null_block_symbol.
13078 (cp_lookup_symbol_via_imports): Simplify initialization.
13079 (find_symbol_in_baseclass): Likewise.
13080 * symtab.h (null_block_symbol): Remove.
13081 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
13082 (d_lookup_nested_symbol, d_lookup_symbol_imports)
13083 (d_lookup_symbol_module): Likewise.
13084 (find_symbol_in_baseclass): Simplify initialization.
13085
a930ebcd
TT
130862019-03-24 Tom Tromey <tom@tromey.com>
13087
13088 * expression.h: Don't include symtab.h.
13089 (struct block): Forward declare.
13090
582942f4
TT
130912019-03-24 Tom Tromey <tom@tromey.com>
13092
13093 * c-exp.y (typebase): Remove casts.
13094 * gdbtypes.c (lookup_unsigned_typename, )
13095 (lookup_signed_typename): Remove cast.
13096 * eval.c (parse_to_comma_and_eval): Remove cast.
13097 * parse.c (write_dollar_variable): Remove cast.
13098 * block.h (struct block) <superblock>: Now const.
13099 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
13100 * psymtab.c (psym_map_matching_symbols): Make "block" const.
13101 (map_block): Make "block" const.
13102 * symfile.h (struct quick_symbol_functions)
13103 <map_matching_symbols>: Constify block argument to "callback".
13104 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
13105 const.
13106 (find_pc_sect_compunit_symtab): Make "b" const.
13107 (find_symbol_at_address): Likewise.
13108 (search_symbols): Likewise.
13109 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
13110 (dw2_debug_names_lookup_symbol): Likewise.
13111 (dw2_map_matching_symbols): Update.
13112 * p-valprint.c (pascal_val_print): Remove "block".
13113 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
13114 (aux_add_nonlocal_symbols): Make "block" const.
13115 (resolve_subexp): Remove cast.
13116 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
13117 const.
13118 (iterate_over_file_blocks): Likewise.
13119 * f-exp.y (%union) <bval>: Remove.
13120 * coffread.c (patch_opaque_types): Make "b" const.
13121 * spu-tdep.c (spu_catch_start): Make "block" const.
13122 * c-valprint.c (print_unpacked_pointer): Remove "block".
13123 * symmisc.c (dump_symtab_1): Make "b" const.
13124 (block_depth): Make "block" const.
13125 * d-exp.y (%union) <bval>: Remove.
13126 * cp-support.h (cp_lookup_rtti_type): Update.
13127 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
13128 * psymtab.c (psym_lookup_symbol): Make "block" const.
13129 (maintenance_check_psymtabs): Make "b" const.
13130 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
13131 (enumerate_locals, enumerate_args): Update.
13132 * python/py-symtab.c (stpy_global_block): Make "block" const.
13133 (stpy_static_block): Likewise.
13134 * inline-frame.c (block_starting_point_at): Make "new_block"
13135 const.
13136 * block.c (find_block_in_blockvector): Make return type const.
13137 (blockvector_for_pc_sect): Make "b" const.
13138 (find_block_in_blockvector): Make "b" const.
13139
7ad417dd
TT
131402019-03-23 Tom Tromey <tom@tromey.com>
13141
13142 * varobj.c (varobj_create): Update.
13143 * symfile.c (clear_symtab_users): Don't reset innermost_block.
13144 * printcmd.c (display_command, do_one_display): Don't reset
13145 innermost_block.
13146 * parser-defs.h (enum innermost_block_tracker_type): Move to
13147 expression.h.
13148 (innermost_block): Update comment.
13149 * parse.c (parse_exp_1): Add tracker_types parameter.
13150 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
13151 tracker_types parameter. Reset innermost_block.
13152 (parse_exp_in_context): Remove.
13153 (parse_expression_for_completion): Update.
13154 * objfiles.c (~objfile): Don't reset expression_context_block or
13155 innermost_block.
13156 * expression.h (enum innermost_block_tracker_type): Move from
13157 parser-defs.h.
13158 (parse_exp_1): Add tracker_types parameter.
13159 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
13160 reset innermost_block.
13161
b366c208
TT
131622019-03-23 Tom Tromey <tom@tromey.com>
13163
13164 * objfiles.h: Include bcache.h.
13165
9bb9b2f9
TT
131662019-03-23 Tom Tromey <tom@tromey.com>
13167
13168 * linespec.c (get_current_search_block): Use
13169 scoped_restore_current_language.
13170 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
13171
59c28372
AH
131722019-03-22 Alan Hayward <alan.hayward@arm.com>
13173 Jiong Wang <jiong.wang@arm.com>
13174
13175 * aarch64-linux-tdep.c
13176 (aarch64_linux_iterate_over_regset_sections): Check for pauth
13177 section.
13178 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
13179
17e116a7
AH
131802019-03-22 Alan Hayward <alan.hayward@arm.com>
13181 Jiong Wang <jiong.wang@arm.com>
13182
13183 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
13184 instructions.
13185 (aarch64_analyze_prologue_test): Add PACIASP test.
13186 (aarch64_prologue_prev_register): Unmask PC value.
13187
11e1b75f
AH
131882019-03-22 Alan Hayward <alan.hayward@arm.com>
13189 Jiong Wang <jiong.wang@arm.com>
13190
13191 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
13192 (aarch64_dwarf2_prev_register): Unmask PC value.
13193 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
13194 (aarch64_execute_dwarf_cfa_vendor_op): Check for
13195 DW_CFA_AARCH64_negate_ra_state.
13196 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
13197
34dcc7cf
AH
131982019-03-22 Alan Hayward <alan.hayward@arm.com>
13199 Jiong Wang <jiong.wang@arm.com>
13200
13201 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
13202 registers.
13203 (aarch64_pseudo_register_name): Likewise.
13204 (aarch64_pseudo_register_type): Likewise.
13205 (aarch64_pseudo_register_reggroup_p): Likewise.
13206 (aarch64_gdbarch_init): Add pauth registers.
13207 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
13208 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
13209 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
13210 (struct gdbarch_tdep): Add regnum for ra_state.
13211
1ef53e6b
AH
132122019-03-22 Alan Hayward <alan.hayward@arm.com>
13213 Jiong Wang <jiong.wang@arm.com>
13214
13215 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
13216
76bed0fd
AH
132172019-03-22 Alan Hayward <alan.hayward@arm.com>
13218 Jiong Wang <jiong.wang@arm.com>
13219
13220 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
13221 function.
13222 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
13223 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
13224 (aarch64_gdbarch_init): Add puth registers.
13225 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
13226 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
13227 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
13228
ee4fbcfa
AH
132292019-03-22 Alan Hayward <alan.hayward@arm.com>
13230 Jiong Wang <jiong.wang@arm.com>
13231
13232 * aarch64-linux-nat.c
13233 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
13234 * aarch64-linux-tdep.c
13235 (aarch64_linux_core_read_description): Likewise.
13236 (aarch64_linux_get_hwcap): New function.
13237 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
13238 (aarch64_linux_get_hwcap): New declaration.
13239
6dc0ebde
AH
132402019-03-22 Alan Hayward <alan.hayward@arm.com>
13241 Jiong Wang <jiong.wang@arm.com>
13242
13243 * aarch64-linux-nat.c
13244 (aarch64_linux_nat_target::read_description): Add pauth param.
13245 * aarch64-linux-tdep.c
13246 (aarch64_linux_core_read_description): Likewise.
13247 * aarch64-tdep.c (struct target_desc): Add in pauth.
13248 (aarch64_read_description): Add pauth param.
13249 (aarch64_gdbarch_init): Likewise.
13250 * aarch64-tdep.h (aarch64_read_description): Likewise.
13251 * arch/aarch64.c (aarch64_create_target_description): Likewise.
13252 * arch/aarch64.h (aarch64_create_target_description): Likewise.
13253 * features/Makefile: Add new files.
13254 * features/aarch64-pauth.c: New file.
13255 * features/aarch64-pauth.xml: New file.
13256
595915c1
TT
132572019-03-20 Tom Tromey <tromey@adacore.com>
13258
13259 * infrun.c (handle_inferior_event): Rename from
13260 handle_inferior_event_1. Create a scoped_value_mark.
13261 (handle_inferior_event): Remove.
13262
4c7d57e7
TT
132632019-03-19 Tom Tromey <tromey@adacore.com>
13264
13265 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
13266 * infrun.h (print_stop_event): Add "displays" parameter.
13267 * infrun.c (print_stop_event): Add "displays" parameter.
13268
cb246234
PA
132692019-03-19 Pedro Alves <palves@redhat.com>
13270
13271 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
13272 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
13273 to -1. Fix TABs vs spaces.
13274 (tui_ui_out::tui_ui_out): Don't initialize fields here.
13275 * tui/tui-out.h (tui_ui_out) Add intro comments.
13276 <m_line, m_start_of_line>: In-class initialize, and add describing
13277 comment.
13278
3a0e45b2
AH
132792019-03-18 Alan Hayward <alan.hayward@arm.com>
13280
13281 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
13282 variable names.
13283 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
13284
5371b850
PA
132852019-03-18 Pedro Alves <palves@redhat.com>
13286 Eli Zaretskii <eliz@gnu.org>
13287
13288 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
13289 m_line and m_start_of_line.
13290
b17c4cd0
EZ
132912019-03-18 Eli Zaretskii <eliz@gnu.org>
13292
13293 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
13294 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
13295 it returns a newline. This fixes a regression in TU mode, whereby
13296 the next line is output on the same screen line as the user input.
13297
4bd56d18
TT
132982019-03-18 Tom Tromey <tromey@adacore.com>
13299
13300 * minsyms.c (minimal_symbol_reader::install): Remove call to
13301 obstack_blank.
13302
55c10aca
PA
133032019-03-18 Pedro Alves <palves@redhat.com>
13304
13305 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
13306 New globals.
13307 (apply_style): New, factored out from ...
13308 (apply_ansi_escape): ... this. Handle reverse video mode.
13309 (tui_set_reverse_mode): New function.
13310 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
13311 * tui/tui-winsource.c (tui_show_source_line): Use
13312 tui_set_reverse_mode instead of setting A_STANDOUT.
13313 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
13314 New setter methods.
13315
647bb750
HD
133162019-03-18 Hannes Domani <ssbssa@yahoo.de>
13317
13318 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
13319 Handle tabs.
13320
bff8c71f
TT
133212019-03-18 Tom Tromey <tromey@adacore.com>
13322
13323 * ada-lang.c (empty_array): Add "high" parameter.
13324 (ada_evaluate_subexp): Update.
13325
58785d98
ST
133262019-03-17 Sergei Trofimovich <siarheit@google.com>
13327
13328 * unittests/string_view-selftests.c: Define
13329 _initialize_string_view_selftests unconditionally.
13330
d4cbef22
ВМ
133312019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
13332
13333 PR gdb/24350
13334 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
13335
fce4c071
ВМ
133362019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
13337
13338 PR gdb/24351
13339 * windows-nat.c (display_selector): Fix format specifiers.
13340
f7f0a123
EZ
133412019-03-17 Eli Zaretskii <eliz@gnu.org>
13342
13343 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
13344 tui_refill_source_window instead of tui_refresh_win, to update the
13345 current execution line. This fixes redisplay of the current line
13346 when stepping through the code with "next" or "step".
13347
ab42892f
EZ
133482019-03-16 Eli Zaretskii <eliz@gnu.org>
13349
13350 * source-cache.c (source_cache::get_source_lines): Call
13351 find_source_lines to initialize s->nlines. This fixes vertical
13352 scrolling of TUI source window when the DOWN arrow is pressed.
13353
8d8c087f
PW
133542019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13355
13356 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
13357 linux-thread-db.c (_initialize_thread_db): Likewise.
13358
798e1c30
EZ
133592019-03-16 Eli Zaretskii <eliz@gnu.org>
13360
13361 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
13362 wclrtoeol in tui_show_source_line". This reverts changes made in
13363 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
13364
eefba3da
TT
133652019-03-15 Tom Tromey <tom@tromey.com>
13366
13367 * symtab.h (struct minimal_symbol): Derive from
13368 general_symbol_info.
13369 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
13370 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
13371 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
13372 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
13373 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
13374 (MSYMBOL_SEARCH_NAME): Update.
13375 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
13376 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
13377 * minsyms.c (minimal_symbol_reader::record_full): Update.
13378
0de2420c
TT
133792019-03-15 Tom Tromey <tom@tromey.com>
13380
13381 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
13382
042d75e4
TT
133832019-03-15 Tom Tromey <tom@tromey.com>
13384
13385 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
13386 unique_xmalloc_ptr.
13387 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
13388 Update.
13389 * minsyms.c (lookup_minimal_symbol_by_pc_section)
13390 (build_minimal_symbol_hash_tables)
13391 (minimal_symbol_reader::install): Update.
13392
db92718b
TT
133932019-03-15 Tom Tromey <tom@tromey.com>
13394
13395 * symtab.c (create_demangled_names_hash): Update.
13396 (symbol_set_names): Update.
13397 * objfiles.h (struct objfile_per_bfd_storage)
13398 <demangled_names_hash>: Now an htab_up.
13399 * objfiles.c (objfile_per_bfd_storage): Simplify.
13400
d6797f46
TT
134012019-03-15 Tom Tromey <tom@tromey.com>
13402
13403 * objfiles.h (struct objfile_per_bfd_storage): Declare
13404 destructor.
13405 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
13406 New.
13407 (get_objfile_bfd_data): Use new. Don't initialize
13408 language_of_main.
13409 (free_objfile_per_bfd_storage): Remove.
13410 (objfile_bfd_data_free, objfile::~objfile): Use delete.
13411
741d7538
TT
134122019-03-15 Tom Tromey <tom@tromey.com>
13413
13414 * symfile.c (reread_symbols): Update.
13415 * objfiles.c (objfile::objfile): Update.
13416 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
13417 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
13418 comment.
13419 (minimal_symbol_reader::install): Update.
13420 (terminate_minimal_symbol_table): Remove.
13421 * jit.c (jit_object_close_impl): Update.
13422
788c80d1
TT
134232019-03-15 Tom Tromey <tom@tromey.com>
13424
13425 * minsyms.c (minimal_symbol_reader::record_full): Remove some
13426 initializations.
13427
1b7a07cb
TT
134282019-03-15 Tom Tromey <tom@tromey.com>
13429
13430 * objfiles.h (struct objfile_per_bfd_storage)
13431 <demangled_hash_languages>: Now a bitset.
13432 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
13433 (lookup_minimal_symbol): Update.
13434
3db066bc
TT
134352019-03-15 Tom Tromey <tom@tromey.com>
13436
13437 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
13438 Don't return the symbol.
13439 * coffread.c (record_minimal_symbol): Use record_full.
13440
3fff2c37
EZ
134412019-03-14 Eli Zaretskii <eliz@gnu.org>
13442
13443 The MS-Windows port of ncurses fails to switch to a color pair if
13444 one or both of the colors are the implicit default colors. This
13445 change records the default colors when TUI is initialized, and
13446 then specifies them explicitly when a color pair uses the default
13447 colors. This allows color styling in TUI mode on MS-Windows.
13448
13449 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
13450 ncurses_norm_attr.
13451 (tui_initialize_io) [__MINGW32__]: Record the default terminal
13452 colors in ncurses_norm_attr.
13453 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
13454 "none", replace it with the default color recorded in
13455 ncurses_norm_attr.
13456
3b336828
TT
134572019-03-14 Tom Tromey <tromey@adacore.com>
13458
13459 * source-cache.h (class source_cache) <get_source_lines>: Return
13460 std::string.
13461 * source-cache.c (source_cache::extract_lines): Handle case where
13462 first_pos==npos. Return std::string.
13463 (source_cache::get_source_lines): Update.
13464
d085f989
TT
134652019-03-14 Tom Tromey <tromey@adacore.com>
13466
13467 * NEWS: Add item for "style sources" commands.
13468 * source-cache.c (source_cache::get_source_lines): Check
13469 source_styling.
13470 * cli/cli-style.c (source_styling): New global.
13471 (_initialize_cli_style): Add "style sources" commands.
13472 (show_style_sources): New function.
13473 * cli/cli-style.h (source_styling): Declare.
13474
6f11e682
TT
134752019-03-14 Pedro Alves <palves@redhat.com>
13476 Tom Tromey <tromey@adacore.com>
13477
13478 * tui/tui-winsource.h (tui_refill_source_window): Declare.
13479 * tui/tui-winsource.c (tui_refill_source_window): New function,
13480 from...
13481 (tui_horizontal_source_scroll): ... here. Move some logic.
13482 * cli/cli-style.c (set_style_enabled): Notify new observable.
13483 * tui/tui-hooks.c (tui_redisplay_source): New function.
13484 (tui_attach_detach_observers): Attach or detach
13485 tui_redisplay_source.
13486 * observable.h (source_styling_changed): New observable.
13487 * observable.c: Define source_styling_changed observable.
13488
a068643d
TT
134892019-03-13 Tom Tromey <tromey@adacore.com>
13490
13491 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
13492 (i386_gnu_nat_target::store_registers): Update.
13493 * target-debug.h (target_debug_print_std_string): New macro.
13494 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
13495 * windows-tdep.c (display_one_tib): Update.
13496 * tui/tui-stack.c (tui_make_status_line): Update.
13497 * top.c (print_inferior_quit_action): Update.
13498 * thread.c (thr_try_catch_cmd): Update.
13499 (add_thread_with_info): Update.
13500 (thread_target_id_str): Update.
13501 (thr_try_catch_cmd): Update.
13502 (thread_command): Update.
13503 (thread_find_command): Update.
13504 * record-btrace.c (record_btrace_target::info_record)
13505 (record_btrace_resume_thread, record_btrace_target::resume)
13506 (record_btrace_cancel_resume, record_btrace_step_thread)
13507 (record_btrace_target::wait, record_btrace_target::wait)
13508 (record_btrace_target::wait, record_btrace_target::stop): Update.
13509 * progspace.c (print_program_space): Update.
13510 * process-stratum-target.c
13511 (process_stratum_target::thread_address_space): Update.
13512 * linux-fork.c (linux_fork_mourn_inferior)
13513 (detach_checkpoint_command, info_checkpoints_command)
13514 (linux_fork_context): Update.
13515 (linux_fork_detach): Update.
13516 (class scoped_switch_fork_info): Update.
13517 (delete_checkpoint_command): Update.
13518 * infrun.c (follow_fork_inferior): Update.
13519 (follow_fork_inferior): Update.
13520 (proceed_after_vfork_done): Update.
13521 (handle_vfork_child_exec_or_exit): Update.
13522 (follow_exec): Update.
13523 (displaced_step_prepare_throw): Update.
13524 (displaced_step_restore): Update.
13525 (start_step_over): Update.
13526 (resume_1): Update.
13527 (clear_proceed_status_thread): Update.
13528 (proceed): Update.
13529 (print_target_wait_results): Update.
13530 (do_target_wait): Update.
13531 (context_switch): Update.
13532 (stop_all_threads): Update.
13533 (restart_threads): Update.
13534 (finish_step_over): Update.
13535 (handle_signal_stop): Update.
13536 (switch_back_to_stepped_thread): Update.
13537 (keep_going_pass_signal): Update.
13538 (print_exited_reason): Update.
13539 (normal_stop): Update.
13540 * inferior.c (inferior_pid_to_str): Change return type.
13541 (print_selected_inferior): Update.
13542 (add_inferior): Update.
13543 (detach_inferior): Update.
13544 * dummy-frame.c (fprint_dummy_frames): Update.
13545 * dcache.c (dcache_info_1): Update.
13546 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
13547 (btrace_fetch, btrace_clear): Update.
13548 * linux-tdep.c (linux_core_pid_to_str): Change return type.
13549 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
13550 type.
13551 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
13552 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
13553 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
13554 * gdbarch.c, gdbarch.h: Rebuild.
13555 * gdbarch.sh (core_pid_to_str): Change return type.
13556 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
13557 return type.
13558 (windows_nat_target::pid_to_str): Change return type.
13559 (windows_delete_thread): Update.
13560 (windows_nat_target::attach): Update.
13561 (windows_nat_target::files_info): Update.
13562 * target-delegates.c: Rebuild.
13563 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
13564 return type.
13565 (sol_thread_target::pid_to_str): Change return type.
13566 * remote.c (class remote_target) <pid_to_str>: Change return
13567 type.
13568 (remote_target::pid_to_str): Change return type.
13569 (extended_remote_target::attach, remote_target::remote_stop_ns)
13570 (remote_target::remote_notif_remove_queued_reply)
13571 (remote_target::push_stop_reply, remote_target::disable_btrace):
13572 Update.
13573 (extended_remote_target::attach): Update.
13574 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
13575 type.
13576 (gdbsim_target::pid_to_str): Change return type.
13577 * ravenscar-thread.c (struct ravenscar_thread_target)
13578 <pid_to_str>: Change return type.
13579 (ravenscar_thread_target::pid_to_str): Change return type.
13580 * procfs.c (class procfs_target) <pid_to_str>: Change return
13581 type.
13582 (procfs_target::pid_to_str): Change return type.
13583 (procfs_target::attach): Update.
13584 (procfs_target::detach): Update.
13585 (procfs_target::fetch_registers): Update.
13586 (procfs_target::store_registers): Update.
13587 (procfs_target::wait): Update.
13588 (procfs_target::files_info): Update.
13589 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
13590 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
13591 return type.
13592 (nto_procfs_target::pid_to_str): Change return type.
13593 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
13594 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
13595 return type.
13596 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
13597 (exit_lwp): Update.
13598 (attach_proc_task_lwp_callback, get_detach_signal)
13599 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
13600 (linux_nat_target::resume, wait_lwp, stop_callback)
13601 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
13602 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
13603 (linux_nat_wait_1, resume_stopped_resumed_lwps)
13604 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
13605 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
13606 type.
13607 (inf_ptrace_target::attach): Update.
13608 (inf_ptrace_target::files_info): Update.
13609 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
13610 type.
13611 (go32_nat_target::pid_to_str): Change return type.
13612 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
13613 (gnu_nat_target::wait): Update.
13614 (gnu_nat_target::wait): Update.
13615 (gnu_nat_target::resume): Update.
13616 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
13617 (fbsd_nat_target::wait): Update.
13618 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
13619 type.
13620 (darwin_nat_target::attach): Update.
13621 * corelow.c (class core_target) <pid_to_str>: Change return type.
13622 (core_target::pid_to_str): Change return type.
13623 * target.c (normal_pid_to_str): Change return type.
13624 (default_pid_to_str): Likewise.
13625 (target_pid_to_str): Change return type.
13626 (target_translate_tls_address): Update.
13627 (target_announce_detach): Update.
13628 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
13629 return type.
13630 (bsd_uthread_target::pid_to_str): Change return type.
13631 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
13632 type.
13633 (bsd_kvm_target::pid_to_str): Change return type.
13634 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
13635 return type.
13636 (aix_thread_target::pid_to_str): Change return type.
13637 * target.h (struct target_ops) <pid_to_str>: Change return type.
13638 (target_pid_to_str, normal_pid_to_str): Likewise.
13639 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
13640 type.
13641 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
13642 type.
13643 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
13644 return type.
13645 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
13646 type.
13647 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
13648 type.
13649 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
13650 return type.
13651
b4be1b06
SM
136522019-03-13 Simon Marchi <simon.marchi@ericsson.com>
13653
13654 * NEWS: Mention that the new default MI version is 3. Mention
13655 changes to the output of commands and events that deal with
13656 multi-location breakpoints.
13657 * breakpoint.c: Include "mi/mi-out.h".
13658 (print_one_breakpoint): Change output syntax if using MI version
13659 >= 3.
13660 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
13661 New.
13662 (mi_multi_location_breakpoint_output_fixed): New.
13663 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
13664 (mi_cmd_fix_multi_location_breakpoint_output): New.
13665 (mi_multi_location_breakpoint_output_fixed): New.
13666 * mi/mi-cmds.c (mi_cmds): Register command
13667 -fix-multi-location-breakpoint-output.
13668 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
13669 interpreter "mi".
13670
8e5e5494
SM
136712019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
13672
13673 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
13674 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
13675 instantiate mi_ui_out based on interpreter name.
13676 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
13677 * mi/mi-main.c (mi_load_progress): Likewise.
13678
197df35e
JB
136792019-03-12 John Baldwin <jhb@FreeBSD.org>
13680
13681 * NEWS: Combine separate "New targets" sections for 8.3.
13682
8399425f
JB
136832019-03-12 John Baldwin <jhb@FreeBSD.org>
13684
13685 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
13686 (ppcfbsd_init_abi): Install gdbarch
13687 "fetch_tls_load_module_address" and "get_thread_local_address"
13688 methods.
13689
b0f87ed0
JB
136902019-03-12 John Baldwin <jhb@FreeBSD.org>
13691
13692 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
13693 (riscv_fbsd_init_abi): Install gdbarch
13694 "fetch_tls_load_module_address" and "get_thread_local_address"
13695 methods.
13696
ce25aa57
JB
136972019-03-12 John Baldwin <jhb@FreeBSD.org>
13698
13699 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
13700 (i386fbsd_init_abi): Install gdbarch
13701 "fetch_tls_load_module_address" and "get_thread_local_address"
13702 methods.
13703
f5424cfa
JB
137042019-03-12 John Baldwin <jhb@FreeBSD.org>
13705
13706 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
13707 (amd64fbsd_init_abi): Install gdbarch
13708 "fetch_tls_load_module_address" and "get_thread_local_address"
13709 methods.
13710
945f3901
JB
137112019-03-12 John Baldwin <jhb@FreeBSD.org>
13712
13713 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
13714 (struct fbsd_pspace_data): New type.
13715 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
13716 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
13717 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
13718 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
13719 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
13720
ef0bd204
JB
137212019-03-12 John Baldwin <jhb@FreeBSD.org>
13722
13723 * gdbtypes.c (lookup_struct_elt): New function.
13724 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
13725 * gdbtypes.h (struct struct_elt): New type.
13726 (lookup_struct_elt): New prototype.
13727
36c53a02
JB
137282019-03-12 John Baldwin <jhb@FreeBSD.org>
13729
13730 * gdbtypes.c (lookup_struct_elt_type): Update comment and
13731 remove disabled code block.
13732
6e056c81
JB
137332019-03-12 John Baldwin <jhb@FreeBSD.org>
13734
13735 * gdbarch.sh (get_thread_local_address): New method.
13736 * gdbarch.h, gdbarch.c: Regenerate.
13737 * target.c (target_translate_tls_address): Use
13738 gdbarch_get_thread_local_address if present instead of
13739 target::get_thread_local_address.
13740
cd250a18
JB
137412019-03-12 John Baldwin <jhb@FreeBSD.org>
13742
13743 * target.h (target::get_thread_local_address): Update comment.
13744
df22c1e5
JB
137452019-03-12 John Baldwin <jhb@FreeBSD.org>
13746
13747 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
13748 objfile->separate_debug_objfile_backlink if not NULL.
13749
dd6876c9
JB
137502019-03-12 John Baldwin <jhb@FreeBSD.org>
13751
13752 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
13753 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
13754 (amd64bsd_store_inferior_registers): Likewise.
13755 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
13756 Enable segment base registers.
13757 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
13758 PT_GETFSBASE and PT_GETGSBASE.
13759 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
13760 PT_SETGSBASE.
13761 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
13762 segment base registers.
13763 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
13764
1163a4b7
JB
137652019-03-12 John Baldwin <jhb@FreeBSD.org>
13766
13767 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
13768 Update calls to i386_target_description to add 'segments'
13769 parameter.
13770 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
13771 add segment base registers.
13772 * arch/i386.c (i386_create_target_description): Add 'segments'
13773 parameter to enable segment base registers.
13774 * arch/i386.h (i386_create_target_description): Likewise.
13775 * features/i386/32bit-segments.xml: New file.
13776 * features/i386/32bit-segments.c: Generate.
13777 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
13778 call to i386_target_description to add 'segments' parameter.
13779 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
13780 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
13781 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
13782 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
13783 if feature is present.
13784 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
13785 Add 'segments' parameter to call to i386_target_description.
13786 (i386_target_description): Add 'segments' parameter to enable
13787 segment base registers.
13788 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
13789 to call to i386_target_description.
13790 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
13791 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
13792 Define I386_NUM_REGS.
13793 (i386_target_description): Add 'segments' parameter to enable
13794 segment base registers.
13795
3a350822
EZ
137962019-03-12 Eli Zaretskii <eliz@gnu.org>
13797
13798 PR/24325
13799 * source-cache.c: #undef open and close, to avoid unresolved
13800 externals during linking.
13801
ffdd69cf
TT
138022019-03-12 Tom Tromey <tromey@adacore.com>
13803
13804 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
13805 const. Add initializers.
13806 (_initialize_remote): Don't initialize ptid globals.
13807
ec148c57
PA
138082019-03-12 Pedro Alves <palves@redhat.com>
13809
13810 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
13811
32764270
PA
138122019-03-12 Pedro Alves <palves@redhat.com>
13813
13814 * cp-name-parser.y (main): Remove unused 'len' variable.
13815
17547186
TT
138162019-03-12 Tom Tromey <tromey@adacore.com>
13817
13818 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
13819 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
13820
d3a70e03
TT
138212019-03-12 Tom Tromey <tromey@adacore.com>
13822
13823 * linux-nat.c (iterate_over_lwps): Update.
13824 (stop_callback): Remove parameter.
13825 (stop_wait_callback, detach_callback, resume_set_callback)
13826 (select_singlestep_lwp_callback, set_ignore_sigint)
13827 (status_callback, resumed_callback, resume_clear_callback)
13828 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
13829 data parameter.
13830 (linux_nat_target::detach, linux_nat_target::resume)
13831 (linux_stop_and_wait_all_lwps, select_event_lwp)
13832 (linux_nat_filter_event, linux_nat_wait_1)
13833 (linux_nat_target::kill, linux_nat_target::stop)
13834 (linux_nat_target::stop): Update.
13835 (linux_nat_resume_callback): Change type.
13836 (resume_stopped_resumed_lwps, count_events_callback)
13837 (select_event_lwp_callback): Likewise.
13838 (linux_stop_lwp, linux_nat_stop_lwp): Update.
13839 * arm-linux-nat.c (struct update_registers_data): Remove.
13840 (update_registers_callback): Change type.
13841 (arm_linux_insert_hw_breakpoint1): Update.
13842 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
13843 parameter.
13844 (x86_linux_dr_set_addr): Update.
13845 (x86_linux_dr_set_control): Update.
13846 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
13847 (iterate_over_lwps): Use gdb::function_view.
13848 * nat/aarch64-linux-hw-point.c (struct
13849 aarch64_dr_update_callback_param): Remove.
13850 (debug_reg_change_callback): Change type.
13851 (aarch64_notify_debug_reg_change): Update.
13852 * s390-linux-nat.c (s390_refresh_per_info): Update.
13853
82cb27ff
TT
138542019-03-11 Tom Tromey <tromey@adacore.com>
13855
13856 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
13857 redundant assignment to "this_cu".
13858
568c0683
SM
138592019-03-08 Simon Marchi <simon.marchi@efficios.com>
13860
13861 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
13862
f09ce22d
SM
138632019-03-08 Simon Marchi <simon.marchi@efficios.com>
13864
13865 * gdbtypes.c (rank_one_type_parm_set): New function extracted
13866 from...
13867 (rank_one_type): ... this.
13868
595f96a9
SM
138692019-03-08 Simon Marchi <simon.marchi@efficios.com>
13870
13871 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
13872 from...
13873 (rank_one_type): ... this.
13874
2598a94b
SM
138752019-03-08 Simon Marchi <simon.marchi@efficios.com>
13876
13877 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
13878 from...
13879 (rank_one_type): ... this.
13880
7f17b20d
SM
138812019-03-08 Simon Marchi <simon.marchi@efficios.com>
13882
13883 * gdbtypes.c (rank_one_type_parm_float): New function extracted
13884 from...
13885 (rank_one_type): ... this.
13886
2c509035
SM
138872019-03-08 Simon Marchi <simon.marchi@efficios.com>
13888
13889 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
13890 from...
13891 (rank_one_type): ... this.
13892
0dd322dc
SM
138932019-03-08 Simon Marchi <simon.marchi@efficios.com>
13894
13895 * gdbtypes.c (rank_one_type_parm_range): New function extracted
13896 from...
13897 (rank_one_type): ... this.
13898
41ea4728
SM
138992019-03-08 Simon Marchi <simon.marchi@efficios.com>
13900
13901 * gdbtypes.c (rank_one_type_parm_char): New function extracted
13902 from...
13903 (rank_one_type): ... this.
13904
793cd1d2
SM
139052019-03-08 Simon Marchi <simon.marchi@efficios.com>
13906
13907 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
13908 from...
13909 (rank_one_type): ... this.
13910
34910087
SM
139112019-03-08 Simon Marchi <simon.marchi@efficios.com>
13912
13913 * gdbtypes.c (rank_one_type_parm_int): New function extracted
13914 from...
13915 (rank_one_type): ... this.
13916
f1f832d6
SM
139172019-03-08 Simon Marchi <simon.marchi@efficios.com>
13918
13919 * gdbtypes.c (rank_one_type_parm_func): New function extracted
13920 from...
13921 (rank_one_type): ... this.
13922
b9f4512f
SM
139232019-03-08 Simon Marchi <simon.marchi@efficios.com>
13924
13925 * gdbtypes.c (rank_one_type_parm_array): New function extracted
13926 from...
13927 (rank_one_type): ... this.
13928
9293fc63
SM
139292019-03-08 Simon Marchi <simon.marchi@efficios.com>
13930
13931 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
13932 from...
13933 (rank_one_type): ... this.
13934
e3abbe7e
PW
139352019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13936
13937 * inferior.c (initialize_inferiors): Ensure 'help set/show print
13938 inferior-events' shows the example events.
13939
e4adb939
EZ
139402019-03-08 Eli Zaretskii <eliz@gnu.org>
13941
13942 Support styling on native MS-Windows console
13943
13944 PR/24315
13945 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
13946 on MS-Windows if $TERM is not defined.
13947
13948 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
13949
13950 * posix-hdep.c (gdb_console_fputs):
13951 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
13952 functions.
13953 * ui-file.h (gdb_console_fputs): Add prototype.
13954
13955 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
13956 back to fputs only if the former returns zero.
13957
25629dfd
TT
139582019-03-07 Tom Tromey <tom@tromey.com>
13959
13960 * symmisc.c (print_symbol_bcache_statistics): Update.
13961 (print_objfile_statistics): Update.
13962 * symfile.c (allocate_symtab): Update.
13963 * stabsread.c: Don't include bcache.h.
13964 * psymtab.h (struct psymbol_bcache): Don't declare.
13965 (class psymtab_storage) <psymbol_cache>: Now a bcache.
13966 (psymbol_bcache_init, psymbol_bcache_free)
13967 (psymbol_bcache_get_bcache): Don't declare.
13968 * psymtab.c (struct psymbol_bcache): Remove.
13969 (psymtab_storage::psymtab_storage): Update.
13970 (psymtab_storage::~psymtab_storage): Update.
13971 (psymbol_bcache_init, psymbol_bcache_free)
13972 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
13973 (add_psymbol_to_bcache): Update.
13974 (allocate_psymtab): Update.
13975 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
13976 macro_cache>: No longer pointers.
13977 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
13978 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
13979 * macrotab.c (macro_bcache): Update.
13980 * macroexp.c: Don't include bcache.h.
13981 * gdbtypes.c (check_types_worklist): Update.
13982 (types_deeply_equal): Remove TRY/CATCH. Update.
13983 * elfread.c (elf_symtab_read): Update.
13984 * dwarf2read.c: Don't include bcache.h.
13985 * buildsym.c (buildsym_compunit::get_macro_table): Update.
13986 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
13987 (print_bcache_statistics, bcache_memory_used): Don't declare.
13988 (struct bcache): Move from bcache.c. Add constructor, destructor,
13989 methods. Rename all data members.
13990 * bcache.c (struct bcache): Move to bcache.h.
13991 (bcache::expand_hash_table): Rename from expand_hash_table.
13992 (bcache): Remove.
13993 (bcache::insert): Rename from bcache_full.
13994 (bcache::compare): Rename from bcache_compare.
13995 (bcache_xmalloc): Remove.
13996 (bcache::~bcache): Rename from bcache_xfree.
13997 (bcache::print_statistics): Rename from print_bcache_statistics.
13998 (bcache::memory_used): Rename from bcache_memory_used.
13999
fe726667
PA
140002019-03-07 Pedro Alves <palves@redhat.com>
14001
14002 * infrun.c (normal_stop): Also check for
14003 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
14004
7584bb30
AB
140052019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
14006
14007 * f-lang.c (value_from_host_double): Moved to...
14008 * value.c (value_from_host_double): ...here.
14009 * value.h (value_from_host_double): Declare.
14010 * guile/scm-math.c (vlscm_convert_typed_number): Use
14011 value_from_host_double.
14012 (vlscm_convert_number): Likewise.
14013 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
14014 * python/py-value.c (convert_value_from_python): Likewise.
14015
a7b1986e
TT
140162019-03-06 Tom Tromey <tom@tromey.com>
14017
14018 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
14019
0ccf4211
TT
140202019-03-06 Tom Tromey <tom@tromey.com>
14021
14022 * utils.h (free_current_contents): Don't declare.
14023 * utils.c (free_current_contents): Remove.
14024
fe7b42e5
TT
140252019-03-06 Tom Tromey <tom@tromey.com>
14026
14027 * top.c (quit_force): Update.
14028 * main.c (captured_command_loop): Update.
14029 * common/new-op.c (operator new): Update.
14030 * common/common-exceptions.c (struct catcher)
14031 <save_cleanup_chain>: Remove member.
14032 (exceptions_state_mc_init): Update.
14033 (exception_try_scope_entry): Return nullptr.
14034 (exception_try_scope_exit, exception_rethrow)
14035 (throw_exception_sjlj, throw_exception_cxx): Update.
14036 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
14037 (all_cleanups, do_cleanups, discard_cleanups)
14038 (discard_final_cleanups, save_cleanups, save_final_cleanups)
14039 (restore_cleanups, restore_final_cleanups): Don't declare.
14040 (do_final_cleanups): Remove parameter.
14041 * common/cleanups.c (cleanup_chain, make_cleanup)
14042 (make_cleanup_dtor, all_cleanups, do_cleanups)
14043 (discard_my_cleanups, discard_cleanups)
14044 (discard_final_cleanups, save_my_cleanups, save_cleanups)
14045 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
14046 (null_cleanup): Remove.
14047 (do_final_cleanups): Remove parameter.
14048
c6321f19
TT
140492019-03-06 Tom Tromey <tom@tromey.com>
14050
14051 * remote.c (remote_target::remote_parse_stop_reply): Use
14052 unique_xmalloc_ptr.
14053
61b30099
TT
140542019-03-06 Tom Tromey <tom@tromey.com>
14055
14056 * stabsread.c (struct stabs_field_info): Rename from field_info.
14057 <list, fnlist>: Add initializers.
14058 <obstack>: New member.
14059 (read_member_functions, read_struct_fields, read_baseclasses):
14060 Allocate on obstack. Don't use cleanups.
14061 (read_one_struct_field, read_member_functions, read_struct_fields)
14062 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
14063 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
14064 (read_struct_type): Update.
14065
6cceac94
TT
140662019-03-06 Tom Tromey <tom@tromey.com>
14067
14068 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
14069 * common/filestuff.h (make_cleanup_close): Don't declare.
14070 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
14071 Remove.
14072
72412762
TT
140732019-03-06 Tom Tromey <tom@tromey.com>
14074
14075 * solib-aix.c: Use make_scope_exit.
14076
2b6ff1c0
TT
140772019-03-06 Tom Tromey <tom@tromey.com>
14078
14079 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
14080 Use make_scope_exit.
14081
d01c5877
TT
140822019-03-06 Tom Tromey <tom@tromey.com>
14083
14084 * solib-svr4.c (disable_probes_interface): Remove parameter.
14085 (svr4_handle_solib_event): Use make_scope_exit.
14086
32603266
TT
140872019-03-06 Tom Tromey <tom@tromey.com>
14088
14089 * remote.c (struct stop_reply_deleter): Remove.
14090 (stop_reply_up): Update.
14091 (struct stop_reply): Derive from notif_event. Don't typedef.
14092 <regcache>: Now a std::vector.
14093 (stop_reply_xfree): Remove.
14094 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
14095 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
14096 (remote_target::discard_pending_stop_replies): Use delete.
14097 (remote_target::remote_parse_stop_reply): Update.
14098 (remote_target::process_stop_reply): Update.
14099 * remote-notif.h (struct notif_event): Add virtual destructor.
14100 Remove "dtr" member.
14101 (struct notif_client) <alloc_event>: Return a unique_ptr.
14102 (notif_event_xfree): Don't declare.
14103 (notif_event_up): New typedef.
14104 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
14105 (notif_event_xfree, do_notif_event_xfree): Remove.
14106 (remote_notif_state_xfree): Update.
14107
9799571e
TT
141082019-03-06 Tom Tromey <tom@tromey.com>
14109
14110 * infrun.c (displaced_step_clear_cleanup): Now a
14111 forward_scope_exit type.
14112 (displaced_step_prepare_throw): Update.
14113 (displaced_step_fixup): Update.
14114
09e3c4ca
TT
141152019-03-06 Tom Tromey <tom@tromey.com>
14116
14117 * inferior.h (class inferior): Update comment.
14118 * gdbthread.h (class thread_info): Update comment.
14119
e2a03548
TT
141202019-03-06 Joel Brobecker <brobecker@adacore.com>
14121 Tom Tromey <tom@tromey.com>
14122
14123 * stabsread.h (struct stab_section_list): Remove.
14124 (coffstab_build_psymtabs): Update.
14125 * dbxread.c (symbuf_sections): Now a std::vector.
14126 (sect_idx): New global.
14127 (fill_symbuf): Update.
14128 (coffstab_build_psymtabs): Change type of stabsects parameter.
14129 Update.
14130 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
14131 std::vector.
14132 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
14133 (coff_locate_sections): Update.
14134 (coff_symfile_read): Remove cleanups. Update.
14135 (init_stringtab): Add storage parameter.
14136 (free_stringtab, free_stringtab_cleanup): Remove.
14137 (init_lineno): Add storage parameter.
14138 (free_linetab, free_linetab_cleanup): Remove.
14139
b7e60d85
PA
141402019-03-06 Pedro Alves <palves@redhat.com>
14141
14142 * linux-fork.c (fork_info::clobber_regs): Delete.
14143 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
14144 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
14145 comment. Adjust.
14146 (scoped_switch_fork_info::scoped_switch_fork_info)
14147 (checkpoint_command, linux_fork_context): Adjust
14148 fork_save_infrun_state calls.
14149
e52c971f
PA
141502019-03-06 Pedro Alves <palves@redhat.com>
14151
14152 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
14153 (inf_has_multiple_threads): Return 'bool' and rewrite using
14154 inferior_info::threads().
14155
06974e6c
PA
141562019-03-06 Pedro Alves <palves@redhat.com>
14157
14158 * linux-fork.c: Include <list>.
14159 (fork_list): Now a std::list instance.
14160 (fork_info): Add ctor, dtor, and in-class initialize all fields.
14161 (forks_exist_p, find_last_fork): Adjust.
14162 (new_fork): Delete.
14163 (one_fork_p): New.
14164 (add_fork): Adjust.
14165 (free_fork): Delete, folded into fork_info::~fork_info().
14166 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
14167 Adjust.
14168 (init_fork_list): Delete.
14169 (linux_fork_killall, linux_fork_mourn_inferior)
14170 (linux_fork_detach, info_checkpoints_command): Adjust.
14171 (_initialize_linux_fork): No longer call init_fork_list.
14172
72f31aea
PA
141732019-03-06 Pedro Alves <palves@redhat.com>
14174
14175 * linux-fork.c (new_fork): New, split out of ...
14176 (add_fork): ... this. Return void. Move "first fork" special
14177 case from here, to ...
14178 (checkpoint_command): ... here.
14179 * linux-linux.h (add_fork): Return void.
14180
efbecbc1
AB
141812019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14182
14183 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
14184
0841c79a
AB
141852019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14186 Chris January <chris.january@arm.com>
14187 David Lecomber <david.lecomber@arm.com>
14188
14189 * f-exp.y: New token, UNOP_INTRINSIC.
14190 (exp): New pattern using UNOP_INTRINSIC token.
14191 (f77_keywords): Add 'abs' keyword.
14192 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
14193 (value_from_host_double): New function.
14194 (evaluate_subexp_f): Support UNOP_ABS.
14195
4a270568
AB
141962019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14197
14198 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
14199 types.
14200
067630bd
AB
142012019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14202
14203 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
14204 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
14205 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
14206
3be47f7a
AB
142072019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14208
14209 * f-exp.y (convert_to_kind_type): Handle more type kinds.
14210
4d00f5d8
AB
142112019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14212 Chris January <chris.january@arm.com>
14213
14214 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
14215 * f-exp.y: Define 'KIND' token.
14216 (exp): New pattern for KIND expressions.
14217 (ptype): Handle types with a kind extension.
14218 (direct_abs_decl): Extend to spot kind extensions.
14219 (f77_keywords): Add 'kind' to the list.
14220 (push_kind_type): New function.
14221 (convert_to_kind_type): New function.
14222 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
14223 * parse.c (operator_length_standard): Likewise.
14224 * parser-defs.h (enum type_pieces): Add tp_kind.
14225 * std-operator.def: Add UNOP_KIND.
14226
e454224f
AB
142272019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14228
14229 * f-exp.y (f_parse): Set yydebug.
14230
9dad4a58
AB
142312019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14232
14233 * f-lang.c (evaluate_subexp_f): New function.
14234 (exp_descriptor_f): New global.
14235 (f_language_defn): Use exp_descriptor_f instead of
14236 exp_descriptor_standard.
14237
c8f91604
AB
142382019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14239
14240 * f-exp.y (struct token): Add comments.
14241 (dot_ops): Remove uppercase versions and the end marker.
14242 (f77_keywords): Likewise.
14243 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
14244 entries in the dot_ops array are case insensitive, and use
14245 strncasecmp to compare strings. Also some whitespace cleanup in
14246 this area. Similar for the f77_keywords array, except entries in
14247 this list might be case sensitive.
14248
dd9f2c76
AB
142492019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14250
14251 * f-exp.y (struct f77_boolean_val): Add comments.
14252 (boolean_values): Remove uppercase versions, and end marker.
14253 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
14254 and use strncasecmp to achieve case insensitivity. Additionally,
14255 perform whitespace cleanup around this code.
14256
67a3048c
TT
142572019-03-06 Tom Tromey <tromey@adacore.com>
14258
14259 * remote-sim.c (gdbsim_target_open): Use result of
14260 gdb_argv::release.
14261
aa3cfbda
RB
142622019-03-06 Richard Bunt <richard.bunt@arm.com>
14263 Dirk Schubert <dirk.schubert@arm.com>
14264 Chris January <chris.january@arm.com>
14265
14266 * eval.c (evaluate_subexp_standard): Call Fortran argument
14267 wrapping logic.
14268 * f-lang.c (struct value): A value which can be passed into a
14269 Fortran function call.
14270 (fortran_argument_convert): Wrap Fortran arguments in a pointer
14271 where appropriate.
14272 (struct type): Value ready for a Fortran function call.
14273 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
14274 is needed.
14275 * f-lang.h (fortran_argument_convert): Declaration.
14276 (fortran_preserve_arg_pointer): Declaration.
14277 * infcall.c (value_arg_coerce): Call Fortran argument logic.
14278
ea38e5df
TT
142792019-03-05 Tom Tromey <tromey@adacore.com>
14280
14281 * python/py-prettyprint.c (print_string_repr): Remove #if.
14282 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
14283
06b5b831
TT
142842019-03-05 Tom Tromey <tromey@adacore.com>
14285
14286 * target.c (the_dummy_target): Move later. Change type to
14287 "dummy_target".
14288 (initialize_targets): Don't initialize the_dummy_target.
14289
edbd9e45
TT
142902019-03-05 Tom Tromey <tromey@adacore.com>
14291
14292 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
14293 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
14294
c119e040
TT
142952019-03-05 Tom Tromey <tromey@adacore.com>
14296
14297 * windows-nat.c (windows_nat_target::attach)
14298 (windows_nat_target::detach): Don't call gdb_flush.
14299 * valprint.c (generic_val_print, val_print, val_print_string):
14300 Don't call gdb_flush.
14301 * utils.c (defaulted_query): Don't call gdb_flush.
14302 * typeprint.c (print_type_scalar): Don't call gdb_flush.
14303 * target.c (target_announce_detach): Don't call gdb_flush.
14304 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
14305 * remote.c (extended_remote_target::attach): Don't call
14306 gdb_flush.
14307 * procfs.c (procfs_target::detach): Don't call gdb_flush.
14308 * printcmd.c (do_examine): Don't call gdb_flush.
14309 (info_display_command): Don't call gdb_flush.
14310 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
14311 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
14312 * memattr.c (info_mem_command): Don't call gdb_flush.
14313 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
14314 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
14315 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
14316 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
14317 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
14318 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
14319 (gnu_nat_target::detach): Don't call gdb_flush.
14320 * f-valprint.c (f_val_print): Don't call gdb_flush.
14321 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
14322 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
14323 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
14324 gdb_flush.
14325 * c-valprint.c (c_val_print): Don't call gdb_flush.
14326 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
14327
895dafa6
TT
143282019-03-05 Tom Tromey <tromey@adacore.com>
14329
14330 * varobj.c (update_dynamic_varobj_children): Update.
14331 (install_default_visualizer): Use reset, not release.
14332 * value.c (set_internalvar): Update.
14333 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
14334 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
14335 ATTRIBUTE_UNUSED_RESULT.
14336
88a774b9
TT
143372019-03-05 Tom Tromey <tromey@adacore.com>
14338
14339 * remote.c (class scoped_remote_fd) <release>: Add
14340 ATTRIBUTE_UNUSED_RESULT.
14341
4e4a8b93
TT
143422019-03-05 Tom Tromey <tromey@adacore.com>
14343
14344 * macroexp.c (struct macro_buffer) <release>: Add
14345 ATTRIBUTE_UNUSED_RESULT.
14346
083eef1f
TT
143472019-03-05 Tom Tromey <tromey@adacore.com>
14348
14349 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
14350 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
14351 ATTRIBUTE_UNUSED_RESULT.
14352
3cabd438
TT
143532019-03-05 Tom Tromey <tromey@adacore.com>
14354
14355 * common/scoped_fd.h (class scoped_fd) <release>: Add
14356 ATTRIBUTE_UNUSED_RESULT.
14357
41e3300a
TT
143582019-03-05 Tom Tromey <tromey@adacore.com>
14359
14360 * parser-defs.h (struct parser_state) <release>: Add
14361 ATTRIBUTE_UNUSED_RESULT.
14362
18cb7c9f
TT
143632019-03-05 Tom Tromey <tromey@adacore.com>
14364
14365 * utils.h (class gdb_argv) <release>: Add
14366 ATTRIBUTE_UNUSED_RESULT.
14367 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
14368
41fa577f
EZ
143692019-03-02 Eli Zaretskii <eliz@gnu.org>
14370
a6a4b2c6
EZ
14371 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
14372 for-loop range, to avoid compiler warnings.
14373
14374 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
14375 avoid compiler warnings about unused variables.
14376
742a7df5
EZ
14377 * NEWS: Mention end of support for native debugging on MS-Windows
14378 before XP.
14379
41fa577f
EZ
14380 PR gdb/24292
14381 * common/netstuff.c:
14382 * gdbserver/gdbreplay.c
14383 * gdbserver/remote-utils.c:
14384 * ser-tcp.c:
14385 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
14386 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
14387 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
14388 'getaddrinfo' and 'freeaddrinfo' were not available before
14389 Windows XP, and mingw.org's MinGW headers by default define
14390 _WIN32_WINNT to 0x500.
14391
827f438f
GB
143922019-03-01 Gary Benson <gbenson@redhat.com>
14393
14394 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
14395
92137da0
RO
143962019-02-28 Brian Vandenberg <phantall@gmail.com>
14397 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14398
14399 PR gdb/8527
14400 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
14401 set_sigint_trap, clear_sigint_trap.
14402
799efbe8
PW
144032019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14404
14405 * target.c (target_detach): Clear the regcache and the
14406 frame cache.
14407
8ed25214
PA
144082019-02-27 Pedro Alves <palves@redhat.com>
14409
14410 * utils.c (set_screen_size): When we cap the height/width sizes,
14411 tweak the corresponding command variable to show "unlimited":
14412
23031e31
SJ
144132019-02-27 Saagar Jha <saagar@saagarjha.com>
14414 Pedro Alves <palves@redhat.com>
14415
14416 * utils.c (set_screen_size): Reduce "infinite" rows and columns
14417 before calling rl_set_screen_size.
14418
6c28e44a
TT
144192019-02-27 Tom Tromey <tromey@adacore.com>
14420
14421 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
14422 define.
14423 * python/py-value.c: Remove Python 2.4 workaround.
14424 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
14425 workaround.
14426 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
14427 Python 2.4 workaround.
14428 * python/python-internal.h: Remove Python 2.4 comment.
14429 (Py_ssize_t): Don't define.
14430 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
14431 (gdb_Py_DECREF): Remove Python 2.4 workaround.
14432 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
14433 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
14434 * python/python.c (do_start_initialization): Remove Python 2.4
14435 workaround.
14436 * python/py-prettyprint.c (class dummy_python_frame): Remove.
14437 (print_children): Remove Python 2.4 workaround.
14438 * python/py-inferior.c (buffer_procs): Remove Python 2.4
14439 workaround.
14440 (CHARBUFFERPROC_NAME): Remove.
14441 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
14442 Python 2.4 workaround.
14443
2c3fc25d 144442019-02-27 Kevin Buettner <kevinb@redhat.com>
799efbe8 14445
2c3fc25d
KB
14446 * NEWS: Note minimum Python version.
14447
6ca62222
KB
144482019-02-27 Kevin Buettner <kevinb@redhat.com>
14449
14450 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
14451 code from these functions. Remove corresponding ifdefs. Use
14452 Py_buffer_up instead of explicit calls to PyBuffer_Release.
14453 Remove gotos and target of gotos.
14454 (infpy_search_memory): Likewise.
14455
f4bc7d2c
AB
144562019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14457
14458 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
14459 (hppa_gdbarch_init): Don't register deleted functions with
14460 gdbarch.
14461
9734a586
AB
144622019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14463
14464 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
14465 (h8300_unwind_sp): Delete.
14466 (h8300_dummy_id): Delete.
14467 (h8300_gdbarch_init): Don't register deleted functions with
14468 gdbarch.
14469
68b867f3
AB
144702019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14471
14472 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
14473 (ft32_unwind_pc): Delete.
14474 (ft32_unwind_sp): Delete.
14475 (ft32_gdbarch_init): Don't register deleted functions with
14476 gdbarch.
14477
2fbe7ad0
AB
144782019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14479
14480 * gdb/frv-tdep.c (frv_dummy_id): Delete.
14481 (frv_unwind_pc): Delete.
14482 (frv_unwind_sp): Delete.
14483 (frv_gdbarch_init): Don't register deleted functions with
14484 gdbarch.
14485
76055cbe
AB
144862019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14487
14488 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
14489 (riscv_unwind_pc): Delete.
14490 (riscv_unwind_sp): Delete.
14491 (riscv_gdbarch_init): Don't register deleted functions with
14492 gdbarch.
14493
4133e5a1
AB
144942019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14495
14496 * gdb/csky-tdep.c (csky_dummy_id): Delete.
14497 (csky_unwind_pc): Delete.
14498 (csky_unwind_sp): Delete.
14499 (csky_gdbarch_init): Don't register deleted functions with
14500 gdbarch.
14501
8010f576
AB
145022019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14503
14504 * gdb/cris-tdep.c (cris_dummy_id): Delete.
14505 (cris_unwind_pc): Delete.
14506 (cris_unwind_sp): Delete.
14507 (cris_gdbarch_init): Don't register deleted functions with
14508 gdbarch.
14509
b56bf084
AB
145102019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14511
14512 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
14513 (bfin_unwind_pc): Delete.
14514 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
14515
a19a650f
AB
145162019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14517
14518 * gdb/arm-tdep.c (arm_dummy_id): Delete.
14519 (arm_unwind_pc): Delete.
14520 (arm_unwind_sp): Delete.
14521 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
14522
f8278c3c
AB
145232019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14524
14525 * gdb/arc-tdep.c (arc_dummy_id): Delete.
14526 (arc_unwind_pc): Delete.
14527 (arc_unwind_sp): Delete.
14528 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
14529
480e46cf
AB
145302019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14531
14532 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
14533 (alpha_unwind_pc): Delete.
14534 (alpha_gdbarch_init): Don't register deleted functions with
14535 gdbarch.
14536
7a995095
AB
145372019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14538
14539 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
14540 (aarch64_unwind_pc): Delete.
14541 (aarch64_unwind_sp): Delete.
14542 (aarch64_gdbarch_init): Don't register deleted functions with
14543 gdbarch.
14544
bf9a735e
AB
145452019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14546
14547 * gdbtypes.c (type_align): Don't consider static members when
14548 computing structure alignment.
14549
5561fc30
AB
145502019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14551
14552 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
14553 return 0 for other types.
14554 * arch-utils.c (default_type_align): Always return 0.
14555 * gdbarch.h: Regenerate.
14556 * gdbarch.sh (type_align): Extend comment.
14557 * gdbtypes.c (type_align): Add additional comments, always call
14558 gdbarch_type_align before applying the default rules.
14559 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
14560 generic code will then apply a suitable default.
14561 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
14562 types, return 0 for other types.
14563
9335e75a
JB
145642019-02-27 Joel Brobecker <brobecker@adacore.com>
14565
14566 * NEWS: Create a new section for the next release branch.
14567 Rename the section of the current branch, now that it has
14568 been cut.
14569
3d34d8de
JB
145702019-02-27 Joel Brobecker <brobecker@adacore.com>
14571
14572 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
14573 * version.in: Bump version to 8.3.50.DATE-git.
14574
143420fb
SM
145752019-02-26 Simon Marchi <simon.marchi@efficios.com>
14576
14577 * aix-thread.c (ptid_cmp): Remove unused variable.
14578 (get_signaled_thread): Likewise.
14579 (store_regs_user_thread): Likewise.
14580 (store_regs_kernel_thread): Likewise.
14581 (fetch_regs_kernel_thread): Remove shadowed variable.
14582
172fb711
AB
145832019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
14584
14585 * features/riscv/32bit-cpu.xml: Add register numbers.
14586 * features/riscv/32bit-fpu.c: Regenerate.
14587 * features/riscv/32bit-fpu.xml: Add register numbers.
14588 * features/riscv/64bit-cpu.xml: Add register numbers.
14589 * features/riscv/64bit-fpu.c: Regenerate.
14590 * features/riscv/64bit-fpu.xml: Add register numbers.
14591
26c89782
KB
145922019-02-26 Kevin Buettner <kevinb@redhat.com>
14593
af54ade9 14594 * NEWS: Mention two argument form of gdb.Value constructor.
fe07eca5
KB
14595 * python/py-value.c (convert_buffer_and_type_to_value): New
14596 function.
14597 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
14598 Add support for handling an optional second argument. Call
14599 convert_buffer_and_type_to_value as appropriate.
26c89782
KB
14600 * python/python-internal.h (Py_buffer_deleter): New struct.
14601 (Py_buffer_up): New typedef.
14602
0f58c9e8
JB
146032019-02-25 John Baldwin <jhb@FreeBSD.org>
14604
14605 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
14606 instead of releasing ownership.
14607
0a0f4c01
JR
146082019-02-25 Jordan Rupprecht <rupprecht@google.com>
14609
14610 * dwarf2read.c (open_and_init_dwp_file): Call
14611 elf_numsections instead of bfd_count_sections to initialize
14612 dwp_file->num_sections.
14613
cd5a152c
TT
146142019-02-25 Tom Tromey <tromey@adacore.com>
14615
14616 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
14617
8a6a8513
SDJ
146182019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
14619
14620 * gcore.in: Add '--readnever' option when invoking GDB.
14621
04dcda9c
SM
146222019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
14623
14624 * MAINTAINERS: Update my email address.
14625
07bc701d
SM
146262019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
14627
14628 * build-id.c (build_id_to_debug_bfd_1): New function.
14629 (build_id_to_debug_bfd): Look for separate debug file in
14630 sysroot.
14631
c6f4a5d0
AB
146322019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
14633
14634 * gdbarch.sh: Update the copyright year range that is placed into
14635 generated files.
14636
9600246d
KS
146372019-02-22 Keith Seitz <keiths@redhat.com>
14638
14639 PR symtab/23853
14640 * linespec.c (create_sals_line_offset): Search for the default
14641 symtab's filename instead of its fullname.
14642
7557a514
AH
146432019-02-21 Alan Hayward <alan.hayward@arm.com>
14644
14645 * NEWS: Update style defaults.
14646
ee2bcb0c
AH
146472019-02-21 Alan Hayward <alan.hayward@arm.com>
14648
14649 * main.c (captured_main_1): Disable styling in batch mode.
14650
0c95f9ed
TT
146512019-02-20 Tom Tromey <tom@tromey.com>
14652
14653 * symtab.c (symtab_symbol_info): Fix typos.
14654
c763b894
TT
146552019-02-20 Tom Tromey <tromey@adacore.com>
14656
14657 * findcmd.c (_initialize_mem_search): Use upper case for
14658 metasyntactic variables.
14659
0ef8a082
AH
146602019-02-20 Alan Hayward <alan.hayward@arm.com>
14661
14662 * aarch64-tdep.c (aarch64_add_reggroups): New function.
14663 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
14664
6caa91b6
SM
146652019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
14666
14667 * top.h (source_file_name): Change to std::string.
14668 * top.c (source_file_name): Likewise.
14669 (command_line_input): Adjust.
14670 * cli/cli-script.c (script_from_file): Adjust.
14671
98814c6c
TT
146722019-02-19 Tom Tromey <tromey@adacore.com>
14673
14674 * ravenscar-thread.c
14675 (ravenscar_thread_target::update_thread_list): Don't call
14676 ada_build_task_list.
14677 * ada-lang.h (ada_build_task_list): Don't declare.
14678 * ada-tasks.c (struct ada_tasks_inferior_data)
14679 <task_list_valid_p>: Now bool.
14680 (read_known_tasks, ada_task_list_changed)
14681 (ada_tasks_invalidate_inferior_data): Update.
14682 (read_known_tasks_array): Return bool.
14683 (read_known_tasks_list): Likewise.
14684 (read_known_tasks): Return void.
14685 (ada_build_task_list): Now static.
14686
70cd633e
AB
146872019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
14688
14689 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
14690 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
14691
040b3e95
PW
146922019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14693
14694 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
14695 variant for ada_tasks_pspace_data_handle and
14696 ada_tasks_inferior_data_handle.
14697 (ada_tasks_pspace_data_cleanup): New function.
14698 (ada_tasks_inferior_data_cleanup): New function.
14699
9409233b
TT
147002019-02-17 Tom Tromey <tom@tromey.com>
14701
14702 * macrotab.h (macro_source_fullname): Return a std::string.
14703 * macrotab.c (macro_include, check_for_redefinition)
14704 (macro_undef, macro_lookup_definition, foreach_macro)
14705 (foreach_macro_in_scope): Update.
14706 (macro_source_fullname): Return a std::string.
14707 * macrocmd.c (show_pp_source_pos): Update.
14708
6506371f
TT
147092019-02-17 Tom Tromey <tom@tromey.com>
14710
14711 * macrocmd.c (show_pp_source_pos): Style the file names.
14712
0c820d67
TT
147132019-02-17 Tom Tromey <tom@tromey.com>
14714
14715 PR tui/24197:
14716 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
14717
a0087920
TT
147182019-02-17 Tom Tromey <tom@tromey.com>
14719
14720 * ada-lang.c (user_select_syms): Use filtered printing.
14721 * utils.c (wrap_style): New global.
14722 (desired_style): Remove.
14723 (emit_style_escape): Add stream parameter.
14724 (set_output_style, reset_terminal_style, prompt_for_continue):
14725 Update.
14726 (flush_wrap_buffer): Only flush gdb_stdout.
14727 (wrap_here): Set wrap_style.
14728 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
14729 treat escape sequences as a character. Change when wrap buffer is
14730 flushed.
14731 (fputs_styled): Do not set the output style when the default is
14732 requested.
14733 * ui-style.h (struct ui_file_style) <is_default>: New method.
14734 * source.c (print_source_lines_base): Emit escape sequences in one
14735 piece.
14736
75ba10dc
JB
147372019-02-17 Joel Brobecker <brobecker@adacore.com>
14738
14739 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
14740 integers and enumeration types.
14741
a2cd4f14
JB
147422019-02-17 Joel Brobecker <brobecker@adacore.com>
14743
14744 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
14745 instead of lookup_symbol_in_language
14746 (do_exact_match): New function.
14747 (ada_get_symbol_name_matcher): Return do_exact_match when
14748 doing a verbatim match.
14749
485b851b
TT
147502019-02-15 Tom Tromey <tromey@adacore.com>
14751
14752 * ravenscar-thread.c (ravenscar_thread_target::resume)
14753 (ravenscar_thread_target::wait): Special case wildcard requests.
14754
0b790b1e
TT
147552019-02-15 Tom Tromey <tromey@adacore.com>
14756
14757 * ravenscar-thread.c (base_ptid): Remove.
14758 (struct ravenscar_thread_target) <close>: New method.
14759 <m_base_ptid>: New member.
14760 <update_inferior_ptid, active_task, task_is_currently_active,
14761 runtime_initialized>: Declare methods.
14762 <ravenscar_thread_target>: Add constructor.
14763 (ravenscar_thread_target::task_is_currently_active)
14764 (ravenscar_thread_target::update_inferior_ptid)
14765 (ravenscar_runtime_initialized): Rename. Now methods.
14766 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
14767 (ravenscar_thread_target::update_thread_list): Update.
14768 (ravenscar_thread_target::active_task): Now method.
14769 (ravenscar_thread_target::store_registers)
14770 (ravenscar_thread_target::prepare_to_store)
14771 (ravenscar_thread_target::prepare_to_store)
14772 (ravenscar_thread_target::mourn_inferior): Update.
14773 (ravenscar_inferior_created): Use "new" to create target.
14774 (ravenscar_thread_target::get_ada_task_ptid): Update.
14775 (_initialize_ravenscar): Don't initialize base_ptid.
14776 (ravenscar_ops): Remove global.
14777
dea57a62
TT
147782019-02-15 Tom Tromey <tromey@adacore.com>
14779
14780 * target.h (push_target): Declare new overload.
14781 * target.c (push_target): New overload, taking an rvalue reference.
14782 * remote.c (remote_target::open_1): Use push_target overload.
14783 * corelow.c (core_target_open): Use push_target overload.
14784
989f3c58
TT
147852019-02-15 Tom Tromey <tromey@adacore.com>
14786
14787 * ravenscar-thread.c (is_ravenscar_task)
14788 (ravenscar_task_is_currently_active): Return bool.
14789 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
14790 (_initialize_ravenscar): Remove "(void)".
14791 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
14792 Return bool.
14793
6cbcc006
TT
147942019-02-15 Tom Tromey <tromey@adacore.com>
14795
14796 * ravenscar-thread.c (ravenscar_runtime_initializer)
14797 (has_ravenscar_runtime, get_running_thread_id)
14798 (ravenscar_thread_target::resume): Fix indentation.
14799
7657f14d
TT
148002019-02-15 Tom Tromey <tromey@adacore.com>
14801
14802 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
14803 from ravenscar_arch_ops.
14804 (sparc_ravenscar_ops::fetch_registers)
14805 (sparc_ravenscar_ops::store_registers): Now methods.
14806 (sparc_ravenscar_prepare_to_store): Remove.
14807 (sparc_ravenscar_ops): Redefine.
14808 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
14809 methods and destructor. Remove members.
14810 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
14811 (ravenscar_thread_target::store_registers)
14812 (ravenscar_thread_target::prepare_to_store): Update.
14813 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
14814 Remove.
14815 (struct ppc_ravenscar_powerpc_ops): Derive from
14816 ravenscar_arch_ops.
14817 (ppc_ravenscar_powerpc_ops::fetch_registers)
14818 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
14819 (ppc_ravenscar_powerpc_ops): Redefine.
14820 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
14821 (ppc_ravenscar_e500_ops::fetch_registers)
14822 (ppc_ravenscar_e500_ops::store_registers): Now methods.
14823 (ppc_ravenscar_e500_ops): Redefine.
14824 * aarch64-ravenscar-thread.c
14825 (aarch64_ravenscar_generic_prepare_to_store): Remove.
14826 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
14827 (aarch64_ravenscar_fetch_registers)
14828 (aarch64_ravenscar_store_registers): Now methods.
14829 (aarch64_ravenscar_ops): Redefine.
14830
5b6ea500
TT
148312019-02-15 Tom Tromey <tromey@adacore.com>
14832
14833 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
14834 (ravenscar_thread_target::stopped_by_hw_breakpoint)
14835 (ravenscar_thread_target::stopped_by_watchpoint)
14836 (ravenscar_thread_target::stopped_data_address)
14837 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
14838
e397fd39
TT
148392019-02-15 Tom Tromey <tromey@adacore.com>
14840
14841 * ravenscar-thread.c: Fix some typos.
14842
cc12f4a8
TT
148432019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14844 Tom Tromey <tromey@adacore.com>
14845
14846 * ada-lang.c (ada_exception_sal): Change addr_string to a
14847 std::string.
14848 (create_ada_exception_catchpoint): Update.
14849
5f486660
TT
148502019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14851 Tom Tromey <tromey@adacore.com>
14852
14853 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
14854 (bp_location_ops): Remove.
14855 (base_breakpoint_allocate_location): Update.
14856 (free_bp_location): Update.
14857 * ada-lang.c (class ada_catchpoint_location)
14858 <ada_catchpoint_location>: Remove ops parameter.
14859 (ada_catchpoint_location_dtor): Remove.
14860 (ada_catchpoint_location_ops): Remove.
14861 (allocate_location_exception): Update.
14862 * breakpoint.h (struct bp_location_ops): Remove.
14863 (class bp_location) <bp_location>: Remove bp_location_ops
14864 parameter.
14865 <~bp_location>: Add destructor.
14866 <ops>: Remove.
14867
b671c7fb
TS
148682019-02-14 Thomas Schwinge <thomas@codesourcery.com>
14869 Pedro Alves <palves@redhat.com>
14870
14871 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
14872 'PATH_MAX'.
14873
8071c5ce
DM
148742019-02-14 David Michael <fedora.dm0@gmail.com>
14875 Samuel Thibault <samuel.thibault@gnu.org>
14876 Thomas Schwinge <thomas@codesourcery.com>
14877
14878 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
14879 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
14880
b1041ae0
TS
148812019-02-14 Thomas Schwinge <thomas@codesourcery.com>
14882
924514e1
TS
14883 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
14884 (check_empty): Use "const char *".
14885
c29ee8d4
TS
14886 * gnu-nat.c (gnu_nat_target::detach): Instead of
14887 'detach_inferior (pid)' call
14888 'detach_inferior (find_inferior_pid (pid))'.
14889
6c6ef69f
TS
14890 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
14891 'nat/fork-inferior.o'.
14892 * gnu-nat.c: #include "nat/fork-inferior.h".
14893
2d0a338c
TS
14894 * gnu-nat.c (gnu_nat_target::detach): Instead of
14895 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
14896 * gnu-nat.h: #include "inf-child.h".
14897 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
14898 'i386_gnu_nat_target::fetch_registers'.
14899 (gnu_store_registers): Rename/move to
14900 'i386_gnu_nat_target::store_registers'.
14901
cabb5f06
TS
14902 * config/i386/nm-i386gnu.h: Don't "#include" any files.
14903 * gnu-nat.h (mach_thread_info): New function.
14904 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
14905
b1041ae0
TS
14906 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
14907
2988d01e
KF
149082019-02-14 Frederic Konrad <konrad@adacore.com>
14909
14910 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
14911
c559d709
JB
149122019-02-14 Joel Brobecker <brobecker@adacore.com>
14913
14914 * windows-nat.c (windows_add_thread): Add new parameter
14915 "main_thread_p" with default value set to false. Update
14916 function documentation as well as all callers.
14917 (windows_delete_thread): Likewise.
14918 (fake_create_process): Update call to windows_add_thread.
14919 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
14920 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
14921 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
14922 call to windows_delete_thread.
14923
007024cc
SM
149242019-02-13 Simon Marchi <simon.marchi@ericsson.com>
14925
14926 * MAINTAINERS: Add Andrew Burgess as global maintainer.
14927
f62318e9
JB
149282019-02-12 John Baldwin <jhb@FreeBSD.org>
14929
14930 * symfile.c (find_separate_debug_file): Use canonical path of
14931 sysroot with child_path instead of gdb_sysroot if it is valid.
14932
cd4b7848
JB
149332019-02-12 John Baldwin <jhb@FreeBSD.org>
14934
14935 * symfile.c (find_separate_debug_file): Use child_path to
14936 determine if an object file is under a sysroot.
14937
efac4bfe
JB
149382019-02-12 John Baldwin <jhb@FreeBSD.org>
14939
14940 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
14941 unittests/child-path-selftests.c.
14942 * common/pathstuff.c (child_path): New function.
14943 * common/pathstuff.h (child_path): New prototype.
14944 * unittests/child-path-selftests.c: New file.
14945
402d2bfe
JB
149462019-02-12 John Baldwin <jhb@FreeBSD.org>
14947
14948 * symfile.c (find_separate_debug_file): Look for separate debug
14949 files in debug directories under the sysroot.
14950
1ed9f74e
PW
149512019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14952
14953 * symtab.h (struct minimal_symbol data_p): New const method.
14954 (struct minimal_symbol text_p): Likewise.
14955 * symtab.c (output_source_filename): Use file name style
14956 to print file name.
14957 (print_symbol_info): Likewise.
14958 (print_msymbol_info): Use address style to print addresses.
14959 Use function name style to print executable text symbols.
14960 (expand_symtab_containing_pc): Use data_p.
14961 (find_pc_sect_compunit_symtab): Likewise.
14962
2636d81d
PW
149632019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14964
14965 * breakpoint.c (describe_other_breakpoints): Use address style
14966 to print addresses.
14967 (say_where): Likewise.
14968
ac8c53cc
PW
149692019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14970
14971 * ada-typeprint.c (print_func_type): Print function name
14972 style to print function name.
14973 * c-typeprint.c (c_print_type_1): Likewise.
14974
ea638c43
AH
149752019-02-11 Alan Hayward <alan.hayward@arm.com>
14976
14977 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
14978 for execve.
14979
ab759ca8
PW
149802019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14981
14982 * c-exp.y (direct_abs_decl): Use emplace_back to record the
14983 type_stack.
14984
aff29d1c
JB
149852019-02-10 Joel Brobecker <brobecker@adacore.com>
14986
14987 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
14988 TYPE_CODE_REF types.
14989
617126bc
JW
149902019-02-08 Jim Wilson <jimw@sifive.com>
14991
14992 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
14993 (riscv_linux_fregset): New.
14994 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
14995
46e3ed7f
TT
149962019-02-07 Tom Tromey <tom@tromey.com>
14997
14998 * thread.c (thread_cancel_execution_command): Update.
14999 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
15000 methods.
15001 (struct thread_fsm_ops): Remove.
15002 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
15003 (thread_fsm_should_stop, thread_fsm_return_value)
15004 (thread_fsm_set_finished, thread_fsm_finished_p)
15005 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
15006 Don't declare.
15007 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
15008 * infrun.c (clear_proceed_status_thread)
15009 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
15010 (print_stop_event): Update.
15011 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
15012 Add constructor.
15013 (step_command_fsm_ops): Remove.
15014 (new_step_command_fsm): Remove.
15015 (step_1): Update.
15016 (step_command_fsm::should_stop): Rename from
15017 step_command_fsm_should_stop.
15018 (step_command_fsm::clean_up): Rename from
15019 step_command_fsm_clean_up.
15020 (step_command_fsm::do_async_reply_reason): Rename from
15021 step_command_fsm_async_reply_reason.
15022 (struct until_next_fsm): Inherit from thread_fsm. Add
15023 constructor.
15024 (until_next_fsm_ops): Remove.
15025 (new_until_next_fsm): Remove.
15026 (until_next_fsm::should_stop): Rename from
15027 until_next_fsm_should_stop.
15028 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
15029 (until_next_fsm::do_async_reply_reason): Rename from
15030 until_next_fsm_async_reply_reason.
15031 (struct finish_command_fsm): Inherit from thread_fsm. Add
15032 constructor. Change type of breakpoint.
15033 (finish_command_fsm_ops): Remove.
15034 (new_finish_command_fsm): Remove.
15035 (finish_command_fsm::should_stop): Rename from
15036 finish_command_fsm_should_stop.
15037 (finish_command_fsm::clean_up): Rename from
15038 finish_command_fsm_clean_up.
15039 (finish_command_fsm::return_value): Rename from
15040 finish_command_fsm_return_value.
15041 (finish_command_fsm::do_async_reply_reason): Rename from
15042 finish_command_fsm_async_reply_reason.
15043 (finish_command): Update.
15044 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
15045 Add constructor.
15046 (call_thread_fsm_ops): Remove.
15047 (call_thread_fsm::call_thread_fsm): Rename from
15048 new_call_thread_fsm.
15049 (call_thread_fsm::should_stop): Rename from
15050 call_thread_fsm_should_stop.
15051 (call_thread_fsm::should_notify_stop): Rename from
15052 call_thread_fsm_should_notify_stop.
15053 (run_inferior_call, call_function_by_hand_dummy): Update.
15054 * cli/cli-interp.c (should_print_stop_to_console): Update.
15055 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
15056 Add constructor. Change type of location_breakpoint,
15057 caller_breakpoint.
15058 (until_break_fsm_ops): Remove.
15059 (new_until_break_fsm): Remove.
15060 (until_break_fsm::should_stop): Rename from
15061 until_break_fsm_should_stop.
15062 (until_break_fsm::clean_up): Rename from
15063 until_break_fsm_clean_up.
15064 (until_break_fsm::do_async_reply_reason): Rename from
15065 until_break_fsm_async_reply_reason.
15066 (until_break_command): Update.
15067 * thread-fsm.c: Remove.
15068 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
15069
1a5c2598
TT
150702019-02-07 Tom Tromey <tom@tromey.com>
15071
15072 * yy-remap.h: Add include guard.
15073 * xtensa-tdep.h: Add include guard.
15074 * xcoffread.h: Rename include guard.
15075 * varobj-iter.h: Add include guard.
15076 * tui/tui.h: Rename include guard.
15077 * tui/tui-winsource.h: Rename include guard.
15078 * tui/tui-wingeneral.h: Rename include guard.
15079 * tui/tui-windata.h: Rename include guard.
15080 * tui/tui-win.h: Rename include guard.
15081 * tui/tui-stack.h: Rename include guard.
15082 * tui/tui-source.h: Rename include guard.
15083 * tui/tui-regs.h: Rename include guard.
15084 * tui/tui-out.h: Rename include guard.
15085 * tui/tui-layout.h: Rename include guard.
15086 * tui/tui-io.h: Rename include guard.
15087 * tui/tui-hooks.h: Rename include guard.
15088 * tui/tui-file.h: Rename include guard.
15089 * tui/tui-disasm.h: Rename include guard.
15090 * tui/tui-data.h: Rename include guard.
15091 * tui/tui-command.h: Rename include guard.
15092 * tic6x-tdep.h: Add include guard.
15093 * target/waitstatus.h: Rename include guard.
15094 * target/wait.h: Rename include guard.
15095 * target/target.h: Rename include guard.
15096 * target/resume.h: Rename include guard.
15097 * target-float.h: Rename include guard.
15098 * stabsread.h: Add include guard.
15099 * rs6000-tdep.h: Add include guard.
15100 * riscv-fbsd-tdep.h: Add include guard.
15101 * regformats/regdef.h: Rename include guard.
15102 * record.h: Rename include guard.
15103 * python/python.h: Rename include guard.
15104 * python/python-internal.h: Rename include guard.
15105 * python/py-stopevent.h: Rename include guard.
15106 * python/py-ref.h: Rename include guard.
15107 * python/py-record.h: Rename include guard.
15108 * python/py-record-full.h: Rename include guard.
15109 * python/py-record-btrace.h: Rename include guard.
15110 * python/py-instruction.h: Rename include guard.
15111 * python/py-events.h: Rename include guard.
15112 * python/py-event.h: Rename include guard.
15113 * procfs.h: Add include guard.
15114 * proc-utils.h: Add include guard.
15115 * p-lang.h: Add include guard.
15116 * or1k-tdep.h: Rename include guard.
15117 * observable.h: Rename include guard.
15118 * nto-tdep.h: Rename include guard.
15119 * nat/x86-linux.h: Rename include guard.
15120 * nat/x86-linux-dregs.h: Rename include guard.
15121 * nat/x86-gcc-cpuid.h: Add include guard.
15122 * nat/x86-dregs.h: Rename include guard.
15123 * nat/x86-cpuid.h: Rename include guard.
15124 * nat/ppc-linux.h: Rename include guard.
15125 * nat/mips-linux-watch.h: Rename include guard.
15126 * nat/linux-waitpid.h: Rename include guard.
15127 * nat/linux-ptrace.h: Rename include guard.
15128 * nat/linux-procfs.h: Rename include guard.
15129 * nat/linux-osdata.h: Rename include guard.
15130 * nat/linux-nat.h: Rename include guard.
15131 * nat/linux-namespaces.h: Rename include guard.
15132 * nat/linux-btrace.h: Rename include guard.
15133 * nat/glibc_thread_db.h: Rename include guard.
15134 * nat/gdb_thread_db.h: Rename include guard.
15135 * nat/gdb_ptrace.h: Rename include guard.
15136 * nat/fork-inferior.h: Rename include guard.
15137 * nat/amd64-linux-siginfo.h: Rename include guard.
15138 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
15139 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
15140 * nat/aarch64-linux.h: Rename include guard.
15141 * nat/aarch64-linux-hw-point.h: Rename include guard.
15142 * mn10300-tdep.h: Add include guard.
15143 * mips-linux-tdep.h: Add include guard.
15144 * mi/mi-parse.h: Rename include guard.
15145 * mi/mi-out.h: Rename include guard.
15146 * mi/mi-main.h: Rename include guard.
15147 * mi/mi-interp.h: Rename include guard.
15148 * mi/mi-getopt.h: Rename include guard.
15149 * mi/mi-console.h: Rename include guard.
15150 * mi/mi-common.h: Rename include guard.
15151 * mi/mi-cmds.h: Rename include guard.
15152 * mi/mi-cmd-break.h: Rename include guard.
15153 * m2-lang.h: Add include guard.
15154 * location.h: Rename include guard.
15155 * linux-record.h: Rename include guard.
15156 * linux-nat.h: Add include guard.
15157 * linux-fork.h: Add include guard.
15158 * i386-darwin-tdep.h: Rename include guard.
15159 * hppa-linux-offsets.h: Add include guard.
15160 * guile/guile.h: Rename include guard.
15161 * guile/guile-internal.h: Rename include guard.
15162 * gnu-nat.h: Rename include guard.
15163 * gdb-stabs.h: Rename include guard.
15164 * frv-tdep.h: Add include guard.
15165 * f-lang.h: Add include guard.
15166 * event-loop.h: Add include guard.
15167 * darwin-nat.h: Rename include guard.
15168 * cp-abi.h: Rename include guard.
15169 * config/sparc/nm-sol2.h: Rename include guard.
15170 * config/nm-nto.h: Rename include guard.
15171 * config/nm-linux.h: Add include guard.
15172 * config/i386/nm-i386gnu.h: Rename include guard.
15173 * config/djgpp/nl_types.h: Rename include guard.
15174 * config/djgpp/langinfo.h: Rename include guard.
15175 * compile/gcc-cp-plugin.h: Add include guard.
15176 * compile/gcc-c-plugin.h: Add include guard.
15177 * compile/compile.h: Rename include guard.
15178 * compile/compile-object-run.h: Rename include guard.
15179 * compile/compile-object-load.h: Rename include guard.
15180 * compile/compile-internal.h: Rename include guard.
15181 * compile/compile-cplus.h: Rename include guard.
15182 * compile/compile-c.h: Rename include guard.
15183 * common/xml-utils.h: Rename include guard.
15184 * common/x86-xstate.h: Rename include guard.
15185 * common/version.h: Rename include guard.
15186 * common/vec.h: Rename include guard.
15187 * common/tdesc.h: Rename include guard.
15188 * common/selftest.h: Rename include guard.
15189 * common/scoped_restore.h: Rename include guard.
15190 * common/scoped_mmap.h: Rename include guard.
15191 * common/scoped_fd.h: Rename include guard.
15192 * common/safe-iterator.h: Rename include guard.
15193 * common/run-time-clock.h: Rename include guard.
15194 * common/refcounted-object.h: Rename include guard.
15195 * common/queue.h: Rename include guard.
15196 * common/ptid.h: Rename include guard.
15197 * common/print-utils.h: Rename include guard.
15198 * common/preprocessor.h: Rename include guard.
15199 * common/pathstuff.h: Rename include guard.
15200 * common/observable.h: Rename include guard.
15201 * common/netstuff.h: Rename include guard.
15202 * common/job-control.h: Rename include guard.
15203 * common/host-defs.h: Rename include guard.
15204 * common/gdb_wait.h: Rename include guard.
15205 * common/gdb_vecs.h: Rename include guard.
15206 * common/gdb_unlinker.h: Rename include guard.
15207 * common/gdb_unique_ptr.h: Rename include guard.
15208 * common/gdb_tilde_expand.h: Rename include guard.
15209 * common/gdb_sys_time.h: Rename include guard.
15210 * common/gdb_string_view.h: Rename include guard.
15211 * common/gdb_splay_tree.h: Rename include guard.
15212 * common/gdb_setjmp.h: Rename include guard.
15213 * common/gdb_ref_ptr.h: Rename include guard.
15214 * common/gdb_optional.h: Rename include guard.
15215 * common/gdb_locale.h: Rename include guard.
15216 * common/gdb_assert.h: Rename include guard.
15217 * common/filtered-iterator.h: Rename include guard.
15218 * common/filestuff.h: Rename include guard.
15219 * common/fileio.h: Rename include guard.
15220 * common/environ.h: Rename include guard.
15221 * common/common-utils.h: Rename include guard.
15222 * common/common-types.h: Rename include guard.
15223 * common/common-regcache.h: Rename include guard.
15224 * common/common-inferior.h: Rename include guard.
15225 * common/common-gdbthread.h: Rename include guard.
15226 * common/common-exceptions.h: Rename include guard.
15227 * common/common-defs.h: Rename include guard.
15228 * common/common-debug.h: Rename include guard.
15229 * common/cleanups.h: Rename include guard.
15230 * common/buffer.h: Rename include guard.
15231 * common/btrace-common.h: Rename include guard.
15232 * common/break-common.h: Rename include guard.
15233 * cli/cli-utils.h: Rename include guard.
15234 * cli/cli-style.h: Rename include guard.
15235 * cli/cli-setshow.h: Rename include guard.
15236 * cli/cli-script.h: Rename include guard.
15237 * cli/cli-interp.h: Rename include guard.
15238 * cli/cli-decode.h: Rename include guard.
15239 * cli/cli-cmds.h: Rename include guard.
15240 * charset-list.h: Add include guard.
15241 * buildsym-legacy.h: Rename include guard.
15242 * bfin-tdep.h: Add include guard.
15243 * ax.h: Rename include guard.
15244 * arm-linux-tdep.h: Add include guard.
15245 * arm-fbsd-tdep.h: Add include guard.
15246 * arch/xtensa.h: Rename include guard.
15247 * arch/tic6x.h: Add include guard.
15248 * arch/i386.h: Add include guard.
15249 * arch/arm.h: Rename include guard.
15250 * arch/arm-linux.h: Rename include guard.
15251 * arch/arm-get-next-pcs.h: Rename include guard.
15252 * arch/amd64.h: Add include guard.
15253 * arch/aarch64-insn.h: Rename include guard.
15254 * arch-utils.h: Rename include guard.
15255 * annotate.h: Add include guard.
15256 * amd64-darwin-tdep.h: Rename include guard.
15257 * aarch64-linux-tdep.h: Add include guard.
15258 * aarch64-fbsd-tdep.h: Add include guard.
15259 * aarch32-linux-nat.h: Add include guard.
15260
ab9268d2
PW
152612019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15262
15263 * macrotab.c (macro_define_internal): New function that
15264 factorizes macro_define_object_internal and macro_define_function
15265 code.
15266 (macro_define_object_internal): Use macro_define_internal.
15267 (macro_define_function): Likewise.
15268
bb0da2b4
PW
152692019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15270
15271 * macrocmd.c (extract_identifier): Return
15272 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
15273 callers.
15274
424eb552
JB
152752019-02-06 John Baldwin <jhb@FreeBSD.org>
15276
15277 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
15278
1688cb29
TT
152792019-02-05 Tom Tromey <tom@tromey.com>
15280
15281 * target.c (target_stack::unpush): Move assertion earlier.
15282
b5eba2d8
TT
152832019-01-30 Tom Tromey <tom@tromey.com>
15284
15285 PR python/23615:
15286 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
15287 (gdbpy_parse_and_eval): Likewise.
15288 * python/python-internal.h (gdbpy_allow_threads): New class.
15289
7054e2ff
JB
152902019-01-28 John Baldwin <jhb@FreeBSD.org>
15291
15292 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
15293 (aarch64_fbsd_fpregmap): Move earlier.
15294 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
15295 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
15296 instead of individual calls to trad_frame_set_reg_addr.
15297 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
15298 earlier.
15299 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
15300 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
15301 instead of individual calls to trad_frame_set_reg_addr.
15302
36c25ffa
AH
153032019-01-28 Alan Hayward <alan.hayward@arm.com>
15304
15305 * CONTRIBUTE: Replace contribution list with wiki link.
15306
a0707f3c
TT
153072019-01-25 Tom Tromey <tom@tromey.com>
15308
15309 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
15310
0747795c
TT
153112019-01-25 Tom Tromey <tom@tromey.com>
15312
15313 * xtensa-linux-nat.c: Fix common/ includes.
15314 * xml-support.h: Fix common/ includes.
15315 * xml-support.c: Fix common/ includes.
15316 * x86-linux-nat.c: Fix common/ includes.
15317 * windows-nat.c: Fix common/ includes.
15318 * varobj.h: Fix common/ includes.
15319 * varobj.c: Fix common/ includes.
15320 * value.c: Fix common/ includes.
15321 * valops.c: Fix common/ includes.
15322 * utils.c: Fix common/ includes.
15323 * unittests/xml-utils-selftests.c: Fix common/ includes.
15324 * unittests/utils-selftests.c: Fix common/ includes.
15325 * unittests/unpack-selftests.c: Fix common/ includes.
15326 * unittests/tracepoint-selftests.c: Fix common/ includes.
15327 * unittests/style-selftests.c: Fix common/ includes.
15328 * unittests/string_view-selftests.c: Fix common/ includes.
15329 * unittests/scoped_restore-selftests.c: Fix common/ includes.
15330 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
15331 * unittests/scoped_fd-selftests.c: Fix common/ includes.
15332 * unittests/rsp-low-selftests.c: Fix common/ includes.
15333 * unittests/parse-connection-spec-selftests.c: Fix common/
15334 includes.
15335 * unittests/optional-selftests.c: Fix common/ includes.
15336 * unittests/offset-type-selftests.c: Fix common/ includes.
15337 * unittests/observable-selftests.c: Fix common/ includes.
15338 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
15339 * unittests/memrange-selftests.c: Fix common/ includes.
15340 * unittests/memory-map-selftests.c: Fix common/ includes.
15341 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
15342 * unittests/function-view-selftests.c: Fix common/ includes.
15343 * unittests/environ-selftests.c: Fix common/ includes.
15344 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
15345 * unittests/common-utils-selftests.c: Fix common/ includes.
15346 * unittests/cli-utils-selftests.c: Fix common/ includes.
15347 * unittests/array-view-selftests.c: Fix common/ includes.
15348 * ui-file.c: Fix common/ includes.
15349 * tui/tui-io.c: Fix common/ includes.
15350 * tracepoint.h: Fix common/ includes.
15351 * tracepoint.c: Fix common/ includes.
15352 * tracefile-tfile.c: Fix common/ includes.
15353 * top.h: Fix common/ includes.
15354 * top.c: Fix common/ includes.
15355 * thread.c: Fix common/ includes.
15356 * target/waitstatus.h: Fix common/ includes.
15357 * target/waitstatus.c: Fix common/ includes.
15358 * target.h: Fix common/ includes.
15359 * target.c: Fix common/ includes.
15360 * target-memory.c: Fix common/ includes.
15361 * target-descriptions.c: Fix common/ includes.
15362 * symtab.h: Fix common/ includes.
15363 * symfile.c: Fix common/ includes.
15364 * stap-probe.c: Fix common/ includes.
15365 * spu-linux-nat.c: Fix common/ includes.
15366 * sparc-nat.c: Fix common/ includes.
15367 * source.c: Fix common/ includes.
15368 * solib.c: Fix common/ includes.
15369 * solib-target.c: Fix common/ includes.
15370 * ser-unix.c: Fix common/ includes.
15371 * ser-tcp.c: Fix common/ includes.
15372 * ser-pipe.c: Fix common/ includes.
15373 * ser-base.c: Fix common/ includes.
15374 * selftest-arch.c: Fix common/ includes.
15375 * s12z-tdep.c: Fix common/ includes.
15376 * rust-exp.y: Fix common/ includes.
15377 * rs6000-aix-tdep.c: Fix common/ includes.
15378 * riscv-tdep.c: Fix common/ includes.
15379 * remote.c: Fix common/ includes.
15380 * remote-notif.h: Fix common/ includes.
15381 * remote-fileio.h: Fix common/ includes.
15382 * remote-fileio.c: Fix common/ includes.
15383 * regcache.h: Fix common/ includes.
15384 * regcache.c: Fix common/ includes.
15385 * record-btrace.c: Fix common/ includes.
15386 * python/python.c: Fix common/ includes.
15387 * python/py-type.c: Fix common/ includes.
15388 * python/py-inferior.c: Fix common/ includes.
15389 * progspace.h: Fix common/ includes.
15390 * producer.c: Fix common/ includes.
15391 * procfs.c: Fix common/ includes.
15392 * proc-api.c: Fix common/ includes.
15393 * printcmd.c: Fix common/ includes.
15394 * ppc-linux-nat.c: Fix common/ includes.
15395 * parser-defs.h: Fix common/ includes.
15396 * osdata.c: Fix common/ includes.
15397 * obsd-nat.c: Fix common/ includes.
15398 * nat/x86-linux.c: Fix common/ includes.
15399 * nat/x86-linux-dregs.c: Fix common/ includes.
15400 * nat/x86-dregs.h: Fix common/ includes.
15401 * nat/x86-dregs.c: Fix common/ includes.
15402 * nat/ppc-linux.c: Fix common/ includes.
15403 * nat/mips-linux-watch.h: Fix common/ includes.
15404 * nat/mips-linux-watch.c: Fix common/ includes.
15405 * nat/linux-waitpid.c: Fix common/ includes.
15406 * nat/linux-ptrace.h: Fix common/ includes.
15407 * nat/linux-ptrace.c: Fix common/ includes.
15408 * nat/linux-procfs.c: Fix common/ includes.
15409 * nat/linux-personality.c: Fix common/ includes.
15410 * nat/linux-osdata.c: Fix common/ includes.
15411 * nat/linux-namespaces.c: Fix common/ includes.
15412 * nat/linux-btrace.h: Fix common/ includes.
15413 * nat/linux-btrace.c: Fix common/ includes.
15414 * nat/fork-inferior.c: Fix common/ includes.
15415 * nat/amd64-linux-siginfo.c: Fix common/ includes.
15416 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
15417 * nat/aarch64-linux.c: Fix common/ includes.
15418 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
15419 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
15420 * namespace.h: Fix common/ includes.
15421 * mips-linux-tdep.c: Fix common/ includes.
15422 * minsyms.c: Fix common/ includes.
15423 * mi/mi-parse.h: Fix common/ includes.
15424 * mi/mi-main.c: Fix common/ includes.
15425 * mi/mi-cmd-env.c: Fix common/ includes.
15426 * memrange.h: Fix common/ includes.
15427 * memattr.c: Fix common/ includes.
15428 * maint.h: Fix common/ includes.
15429 * maint.c: Fix common/ includes.
15430 * main.c: Fix common/ includes.
15431 * machoread.c: Fix common/ includes.
15432 * location.c: Fix common/ includes.
15433 * linux-thread-db.c: Fix common/ includes.
15434 * linux-nat.c: Fix common/ includes.
15435 * linux-fork.c: Fix common/ includes.
15436 * inline-frame.c: Fix common/ includes.
15437 * infrun.c: Fix common/ includes.
15438 * inflow.c: Fix common/ includes.
15439 * inferior.h: Fix common/ includes.
15440 * inferior.c: Fix common/ includes.
15441 * infcmd.c: Fix common/ includes.
15442 * inf-ptrace.c: Fix common/ includes.
15443 * inf-child.c: Fix common/ includes.
15444 * ia64-linux-nat.c: Fix common/ includes.
15445 * i387-tdep.c: Fix common/ includes.
15446 * i386-tdep.c: Fix common/ includes.
15447 * i386-linux-tdep.c: Fix common/ includes.
15448 * i386-linux-nat.c: Fix common/ includes.
15449 * i386-go32-tdep.c: Fix common/ includes.
15450 * i386-fbsd-tdep.c: Fix common/ includes.
15451 * i386-fbsd-nat.c: Fix common/ includes.
15452 * guile/scm-type.c: Fix common/ includes.
15453 * guile/guile.c: Fix common/ includes.
15454 * go32-nat.c: Fix common/ includes.
15455 * gnu-nat.c: Fix common/ includes.
15456 * gdbthread.h: Fix common/ includes.
15457 * gdbarch-selftests.c: Fix common/ includes.
15458 * gdb_usleep.c: Fix common/ includes.
15459 * gdb_select.h: Fix common/ includes.
15460 * gdb_bfd.c: Fix common/ includes.
15461 * gcore.c: Fix common/ includes.
15462 * fork-child.c: Fix common/ includes.
15463 * findvar.c: Fix common/ includes.
15464 * fbsd-nat.c: Fix common/ includes.
15465 * event-top.c: Fix common/ includes.
15466 * event-loop.c: Fix common/ includes.
15467 * dwarf2read.c: Fix common/ includes.
15468 * dwarf2loc.c: Fix common/ includes.
15469 * dwarf2-frame.c: Fix common/ includes.
15470 * dwarf-index-cache.c: Fix common/ includes.
15471 * dtrace-probe.c: Fix common/ includes.
15472 * disasm-selftests.c: Fix common/ includes.
15473 * defs.h: Fix common/ includes.
15474 * csky-tdep.c: Fix common/ includes.
15475 * cp-valprint.c: Fix common/ includes.
15476 * cp-support.h: Fix common/ includes.
15477 * cp-support.c: Fix common/ includes.
15478 * corelow.c: Fix common/ includes.
15479 * completer.h: Fix common/ includes.
15480 * completer.c: Fix common/ includes.
15481 * compile/compile.c: Fix common/ includes.
15482 * compile/compile-loc2c.c: Fix common/ includes.
15483 * compile/compile-cplus-types.c: Fix common/ includes.
15484 * compile/compile-cplus-symbols.c: Fix common/ includes.
15485 * command.h: Fix common/ includes.
15486 * cli/cli-dump.c: Fix common/ includes.
15487 * cli/cli-cmds.c: Fix common/ includes.
15488 * charset.c: Fix common/ includes.
15489 * build-id.c: Fix common/ includes.
15490 * btrace.h: Fix common/ includes.
15491 * btrace.c: Fix common/ includes.
15492 * breakpoint.h: Fix common/ includes.
15493 * breakpoint.c: Fix common/ includes.
15494 * ax.h:
15495 (enum agent_op): Fix common/ includes.
15496 * ax-general.c (struct aop_map): Fix common/ includes.
15497 * ax-gdb.c: Fix common/ includes.
15498 * auxv.c: Fix common/ includes.
15499 * auto-load.c: Fix common/ includes.
15500 * arm-tdep.c: Fix common/ includes.
15501 * arch/riscv.c: Fix common/ includes.
15502 * arch/ppc-linux-common.c: Fix common/ includes.
15503 * arch/i386.c: Fix common/ includes.
15504 * arch/arm.c: Fix common/ includes.
15505 * arch/arm-linux.c: Fix common/ includes.
15506 * arch/arm-get-next-pcs.c: Fix common/ includes.
15507 * arch/amd64.c: Fix common/ includes.
15508 * arch/aarch64.c: Fix common/ includes.
15509 * arch/aarch64-insn.c: Fix common/ includes.
15510 * arch-utils.c: Fix common/ includes.
15511 * amd64-windows-tdep.c: Fix common/ includes.
15512 * amd64-tdep.c: Fix common/ includes.
15513 * amd64-sol2-tdep.c: Fix common/ includes.
15514 * amd64-obsd-tdep.c: Fix common/ includes.
15515 * amd64-nbsd-tdep.c: Fix common/ includes.
15516 * amd64-linux-tdep.c: Fix common/ includes.
15517 * amd64-linux-nat.c: Fix common/ includes.
15518 * amd64-fbsd-tdep.c: Fix common/ includes.
15519 * amd64-fbsd-nat.c: Fix common/ includes.
15520 * amd64-dicos-tdep.c: Fix common/ includes.
15521 * amd64-darwin-tdep.c: Fix common/ includes.
15522 * agent.c: Fix common/ includes.
15523 * ada-lang.h: Fix common/ includes.
15524 * ada-lang.c: Fix common/ includes.
15525 * aarch64-tdep.c: Fix common/ includes.
15526
2f5c153e
TT
155272019-01-25 Tom Tromey <tom@tromey.com>
15528
15529 * common/create-version.sh: Use common/version.h.
15530
adc6a863
PA
155312019-01-24 Pedro Alves <palves@redhat.com>
15532
15533 * infrun.c (signal_stop, signal_print, signal_program)
15534 (signal_catch, signal_pass): Now arrays instead of pointers.
15535 (update_signals_program_target, do_target_resume)
15536 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
15537 * linux-nat.c (linux_nat_target::pass_signals)
15538 (linux_nat_target::create_inferior, linux_nat_target::attach):
15539 Adjust.
15540 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
15541 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
15542 * procfs.c (procfs_target::pass_signals): Adjust.
15543 * record-full.c (record_full_target::resume): Adjust.
15544 * remote.c (remote_target::pass_signals)
15545 (remote_target::program_signals): Adjust.
15546 * target-debug.h (target_debug_print_signals): Now takes a
15547 gdb::array_view as parameter. Adjust.
15548 * target.h (target_ops) <pass_signals, program_signals>: Replace
15549 pointer and length parameters with gdb::array_view.
15550 (target_pass_signals, target_program_signals): Likewise.
15551 * target-delegates.c: Regenerate.
15552
3046d67a
PA
155532019-01-24 Pedro Alves <palves@redhat.com>
15554
15555 * common/forward-scope-exit.h
15556 (forward_scope_exit::forward_scope_exit): Pass arguments to
15557 m_bind_function directly, instead of creating a std::bind and
15558 copying that.
15559
353229bf
AH
155602019-01-24 Alan Hayward <alan.hayward@arm.com>
15561
15562 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
15563 for static members.
15564 (pass_in_v_vfp_candidate): Likewise.
15565
311dc83a
TT
155662019-01-23 Tom Tromey <tom@tromey.com>
15567 Pedro Alves <palves@redhat.com>
15568
15569 * regcache.c (class regcache_invalidator): Remove.
15570 (regcache::raw_write): Use make_scope_exit.
15571
296bd123
TT
155722019-01-23 Tom Tromey <tom@tromey.com>
15573
15574 * ui-out.h (class ui_out_emit_type): Update comment.
15575
979a0d13
TT
155762019-01-23 Tom Tromey <tom@tromey.com>
15577
15578 * infrun.c (fetch_inferior_event): Update comment.
15579
d238133d
TT
155802019-01-23 Tom Tromey <tom@tromey.com>
15581 Pedro Alves <palves@redhat.com>
15582
15583 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
15584 parameter.
15585 (fetch_inferior_event): Use SCOPE_EXIT.
15586
15587
9885e6bb
TT
155882019-01-23 Tom Tromey <tom@tromey.com>
15589 Pedro Alves <palves@redhat.com>
15590
15591 * infrun.c (disable_thread_events): Delete.
15592 (stop_all_threads): Use SCOPE_EXIT.
15593
286526c1
TT
155942019-01-23 Tom Tromey <tom@tromey.com>
15595 Pedro Alves <palves@redhat.com>
15596
15597 * symfile.c: Include forward-scope-exit.h.
15598 (clear_symtab_users_cleanup): Replace forward declaration with
15599 a FORWARD_SCOPE_EXIT.
15600 (syms_from_objfile_1): Use the forward_scope_exit and
15601 gdb::optional instead of cleanup_function.
15602 (reread_symbols): Use the forward_scope_exit instead of
15603 cleanup_function.
15604 (clear_symtab_users_cleanup): Remove function.
15605
1db93f14
TT
156062019-01-23 Tom Tromey <tom@tromey.com>
15607 Pedro Alves <palves@redhat.com>
15608
15609 * linux-nat.c: Include scope-exit.h.
15610 (cleanup_target_stop): Remove.
15611 (linux_nat_target::static_tracepoint_markers_by_strid): Use
15612 SCOPE_EXIT.
15613
2cc83d1e
TT
156142019-01-23 Tom Tromey <tom@tromey.com>
15615 Pedro Alves <palves@redhat.com>
15616
15617 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
15618 (call_function_by_hand_dummy): Use SCOPE_EXIT.
15619
694c6bf5
TT
156202019-01-23 Tom Tromey <tom@tromey.com>
15621 Andrew Burgess <andrew.burgess@embecosm.com>
15622 Pedro Alves <palves@redhat.com>
15623
15624 * infrun.c (fetch_inferior_event): Use scope_exit.
15625 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
15626 * top.c (execute_command): Use scope_exit.
15627 * breakpoint.c (bpstat_do_actions): Use scope_exit.
15628 * utils.c (do_bpstat_clear_actions_cleanup)
15629 (make_bpstat_clear_actions_cleanup): Remove.
15630
4c41382a
TT
156312019-01-23 Tom Tromey <tom@tromey.com>
15632 Pedro Alves <palves@redhat.com>
15633
15634 * infrun.c: Include "common/scope-exit.h"
15635 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
15636 (wait_for_inferior): Use SCOPE_EXIT.
15637 (fetch_inferior_event): Use scope_exit.
15638
89f8fb50
TT
156392019-01-23 Tom Tromey <tom@tromey.com>
15640 Pedro Alves <palves@redhat.com>
15641
15642 * breakpoint.c (create_breakpoint): Remove cleanup.
15643
5419bdae
TT
156442019-01-23 Tom Tromey <tom@tromey.com>
15645 Andrew Burgess <andrew.burgess@embecosm.com>
15646 Pedro Alves <palves@redhat.com>
15647
e587ef42
PA
156482019-01-23 Pedro Alves <palves@redhat.com>
15649
15650 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
15651
77f0e74c
PA
156522019-01-23 Pedro Alves <palves@redhat.com>
15653 Andrew Burgess <andrew.burgess@embecosm.com>
15654
15655 * gdbthread.h: Include "common/forward-scope-exit.h".
15656 (scoped_finish_thread_state): Redefine custom class in terms of
15657 forward_scope_exit.
15658
5b9b3e53
PA
156592019-01-23 Pedro Alves <palves@redhat.com>
15660 Andrew Burgess <andrew.burgess@embecosm.com>
15661
15662 * common/forward-scope-exit.h: New file.
15663
54b65c9b
PA
156642019-01-23 Pedro Alves <palves@redhat.com>
15665 Andrew Burgess <andrew.burgess@embecosm.com>
15666 Tom Tromey <tom@tromey.com>
15667
15668 * common/scope-exit.h: New file.
15669
cf08fb29
PA
156702019-01-23 Pedro Alves <palves@redhat.com>
15671
15672 * common/preprocessor.h (ESC): Rename to ...
15673 (ESC_PARENS): ... this.
15674 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
15675 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
15676
ae73e2e2
TT
156772019-01-23 Tom Tromey <tom@tromey.com>
15678
15679 * language.h (class scoped_switch_to_sym_language_if_auto):
15680 Initialize m_lang in both cases.
15681
6594e122
AH
156822019-01-23 Alan Hayward <alan.hayward@arm.com>
15683
15684 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
15685 with XCNEW.
15686
a7c9855d
TT
156872019-01-22 Tom Tromey <tom@tromey.com>
15688
15689 * corelow.c: Do not include sys/file.h.
15690
93cc1d53
TT
156912019-01-22 Tom Tromey <tom@tromey.com>
15692
15693 * tui/tui-wingeneral.h: Include gdb_curses.h.
15694
38561778
TT
156952019-01-22 Tom Tromey <tom@tromey.com>
15696
15697 * source-cache.h (class source_cache) <get_source_lines,
15698 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
15699
37b3ab5b
TT
157002019-01-22 Tom Tromey <tom@tromey.com>
15701
15702 * remote-fileio.h (struct remote_target): Declare.
15703
3fabc016
TT
157042019-01-22 Tom Tromey <tom@tromey.com>
15705
15706 * python/py-arch.c: Do not include py-ref.h.
15707 * python/py-bpevent.c: Do not include py-ref.h.
15708 * python/py-cmd.c: Do not include py-ref.h.
15709 * python/py-continueevent.c: Do not include py-ref.h.
15710 * python/py-event.h: Do not include py-ref.h.
15711 * python/py-evtregistry.c: Do not include py-ref.h.
15712 * python/py-finishbreakpoint.c: Do not include py-ref.h.
15713 * python/py-frame.c: Do not include py-ref.h.
15714 * python/py-framefilter.c: Do not include py-ref.h.
15715 * python/py-function.c: Do not include py-ref.h.
15716 * python/py-infevents.c: Do not include py-ref.h.
15717 * python/py-linetable.c: Do not include py-ref.h.
15718 * python/py-objfile.c: Do not include py-ref.h.
15719 * python/py-param.c: Do not include py-ref.h.
15720 * python/py-prettyprint.c: Do not include py-ref.h.
15721 * python/py-progspace.c: Do not include py-ref.h.
15722 * python/py-symbol.c: Do not include py-ref.h.
15723 * python/py-symtab.c: Do not include py-ref.h.
15724 * python/py-type.c: Do not include py-ref.h.
15725 * python/py-unwind.c: Do not include py-ref.h.
15726 * python/py-utils.c: Do not include py-ref.h.
15727 * python/py-value.c: Do not include py-ref.h.
15728 * python/py-varobj.c: Do not include py-ref.h.
15729 * python/py-xmethods.c: Do not include py-ref.h.
15730 * python/python.c: Do not include py-ref.h.
15731 * varobj.c: Do not include py-ref.h.
15732
6b4d7774
TT
157332019-01-22 Tom Tromey <tom@tromey.com>
15734
15735 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
15736 keyword for bcache.
15737
7af7e9b5
TT
157382019-01-22 Tom Tromey <tom@tromey.com>
15739
15740 * compile/compile-cplus-types.c: Remove a comment by #include.
15741
951d1049
TT
157422019-01-22 Tom Tromey <tom@tromey.com>
15743
15744 * compile/gcc-c-plugin.h: Include compile-internal.h.
15745
d65d5705
TT
157462019-01-22 Tom Tromey <tom@tromey.com>
15747
15748 * stabsread.c (EXTERN): Do not define.
15749 (symnum, next_symbol_text_func, processing_gcc_compilation)
15750 (within_function, global_sym_chain, global_stabs)
15751 (previous_stab_code, this_object_header_files)
15752 (n_this_object_header_files)
15753 (n_allocated_this_object_header_files): Define.
15754 * stabsread.h (EXTERN): Never define. Use "extern".
15755
b6fb1ee5
PW
157562019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15757
15758 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
15759 history_value.
15760
be6d4f74
TT
157612019-01-21 Tom Tromey <tom@tromey.com>
15762
15763 * ui-out.c: Fix includes.
15764 * tui/tui-source.c: Fix includes.
15765 * target.c: Fix includes.
15766 * remote.c: Fix includes.
15767 * regcache.c: Fix includes.
15768 * python/py-block.c: Fix includes.
15769 * printcmd.c: Fix includes.
15770 * or1k-tdep.c: Fix includes.
15771 * mi/mi-main.c: Fix includes.
15772 * m32r-tdep.c: Fix includes.
15773 * csky-tdep.c: Fix includes.
15774 * compile/compile-cplus-types.c: Fix includes.
15775 * cli/cli-interp.c: Fix includes.
15776
73021deb
AH
157772019-01-21 Alan Hayward <alan.hayward@arm.com>
15778
15779 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
15780 for padding.
15781
7932255d
TT
157822019-01-16 Tom Tromey <tom@tromey.com>
15783
15784 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
15785 earlier.
15786 (struct objfile) <msymbols_range>: Move from top level.
15787 <msymbols>: New method.
15788 (class objfile_msymbols): Remove.
15789 * symtab.c (default_collect_symbol_completion_matches_break_on):
15790 Update.
15791 * symmisc.c (dump_msymbols): Update.
15792 * stabsread.c (scan_file_globals): Update.
15793 * objc-lang.c (info_selectors_command, info_classes_command)
15794 (find_methods): Update.
15795 * minsyms.c (find_solib_trampoline_target): Update.
15796 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
15797 * coffread.c (coff_symfile_read): Update.
15798 * ada-lang.c (ada_lookup_simple_minsym)
15799 (ada_collect_symbol_completion_matches): Update.
15800
604b1bfb
TT
158012019-01-16 Tom Tromey <tom@tromey.com>
15802
15803 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
15804 type. Remove no-argument constructor.
15805 <iterator::operator++>: Simplify.
15806 <begin>: Update.
15807 <end>: Use minimal_symbol_count.
15808
f252c6d5
TT
158092019-01-16 Tom Tromey <tom@tromey.com>
15810
15811 * objfiles.h (struct objfile) <psymtabs>: New method.
15812 (class objfile_psymtabs): Remove.
15813 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
15814 typedef.
15815 <range>: New method.
15816 (require_partial_symbols): Change return type.
15817 * psymtab.c (require_partial_symbols)
15818 (psym_expand_symtabs_matching): Update.
15819 * mdebugread.c (parse_partial_symbols): Update.
15820 * dbxread.c (dbx_end_psymtab): Update.
15821
b669c953
TT
158222019-01-15 Tom Tromey <tom@tromey.com>
15823
15824 * symtab.c (lookup_objfile_from_block)
15825 (lookup_symbol_in_objfile_symtabs)
15826 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
15827 (find_line_symtab, info_sources_command)
15828 (default_collect_symbol_completion_matches_break_on)
15829 (make_source_files_completion_list): Update.
15830 * symmisc.c (print_objfile_statistics, dump_objfile)
15831 (maintenance_print_symbols, maintenance_info_symtabs)
15832 (maintenance_check_symtabs, maintenance_info_line_tables):
15833 Update.
15834 * source.c (select_source_symtab)
15835 (forget_cached_source_info_for_objfile): Update.
15836 * objfiles.h (class objfile_compunits): Remove.
15837 (struct objfile) <compunits_range>: New typedef.
15838 (compunits): New method.
15839 * objfiles.c (objfile_relocate1): Update.
15840 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
15841 * maint.c (count_symtabs_and_blocks): Update.
15842 * linespec.c (iterate_over_all_matching_symtabs): Update.
15843 * cp-support.c (add_symbol_overload_list_qualified): Update.
15844 * coffread.c (coff_symtab_read): Update.
15845 * ada-lang.c (add_nonlocal_symbols)
15846 (ada_collect_symbol_completion_matches)
15847 (ada_add_global_exceptions): Update.
15848
7e955d83
TT
158492019-01-15 Tom Tromey <tom@tromey.com>
15850
15851 * progspace.h (program_space) <objfiles_safe_range>: New
15852 typedef.
15853 <objfiles_safe>: New method.
15854 * objfiles.h (class all_objfiles_safe): Remove.
15855 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
15856 * jit.c (jit_inferior_exit_hook): Update.
15857
2030c079
TT
158582019-01-17 Tom Tromey <tom@tromey.com>
15859
15860 * progspace.h (program_space) <objfiles_range>: New typedef.
15861 <objfiles>: New method.
15862 <objfiles_head>: Rename from objfiles.
15863 (object_files): Update.
15864 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
15865 * guile/scm-pretty-print.c
15866 (ppscm_find_pretty_printer_from_objfiles): Update.
15867 * guile/scm-objfile.c (gdbscm_objfiles): Update.
15868 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
15869 Update.
15870 * python/py-progspace.c (pspy_get_objfiles): Update.
15871 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
15872 Update.
15873 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
15874 (objfpy_lookup_objfile_by_build_id): Update.
15875 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
15876 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
15877 Update.
15878 * symtab.c (iterate_over_symtabs, matching_obj_sections)
15879 (expand_symtab_containing_pc, lookup_objfile_from_block)
15880 (lookup_static_symbol, basic_lookup_transparent_type)
15881 (find_pc_sect_compunit_symtab, find_symbol_at_address)
15882 (find_line_symtab, info_sources_command)
15883 (default_collect_symbol_completion_matches_break_on)
15884 (make_source_files_completion_list, find_main_name): Update.
15885 * symmisc.c (print_symbol_bcache_statistics)
15886 (print_objfile_statistics, maintenance_print_symbols)
15887 (maintenance_print_msymbols, maintenance_print_objfiles)
15888 (maintenance_info_symtabs, maintenance_check_symtabs)
15889 (maintenance_expand_symtabs, maintenance_info_line_tables):
15890 Update.
15891 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
15892 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
15893 (map_overlay_command, unmap_overlay_command)
15894 (simple_overlay_update, expand_symtabs_matching)
15895 (map_symbol_filenames): Update.
15896 * symfile-debug.c (set_debug_symfile): Update.
15897 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
15898 Update.
15899 * source.c (select_source_symtab, forget_cached_source_info):
15900 Update.
15901 * solib.c (solib_read_symbols): Update.
15902 * solib-spu.c (append_ocl_sos): Update.
15903 * psymtab.c (maintenance_print_psymbols)
15904 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
15905 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
15906 * printcmd.c (info_symbol_command): Update.
15907 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
15908 Update.
15909 * objfiles.h (class all_objfiles): Remove.
15910 * objfiles.c (have_partial_symbols, have_full_symbols)
15911 (have_minimal_symbols, qsort_cmp, update_section_map)
15912 (shared_objfile_contains_address_p)
15913 (default_iterate_over_objfiles_in_search_order): Update.
15914 * objc-lang.c (info_selectors_command, info_classes_command)
15915 (find_methods): Update.
15916 * minsyms.c (find_solib_trampoline_target): Update.
15917 * maint.c (maintenance_info_sections)
15918 (maintenance_translate_address, count_symtabs_and_blocks):
15919 Update.
15920 * main.c (captured_main_1): Update.
15921 * linux-thread-db.c (try_thread_db_load_from_pdir)
15922 (has_libpthread): Update.
15923 * linespec.c (iterate_over_all_matching_symtabs)
15924 (search_minsyms_for_name): Update.
15925 * jit.c (jit_find_objf_with_entry_addr): Update.
15926 * hppa-tdep.c (find_unwind_entry)
15927 (hppa_lookup_stub_minimal_symbol): Update.
15928 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
15929 Update.
15930 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
15931 (elf_gnu_ifunc_resolve_by_got): Update.
15932 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
15933 * dwarf-index-write.c (save_gdb_index_command): Update.
15934 * cp-support.c (add_symbol_overload_list_qualified): Update.
15935 * breakpoint.c (create_overlay_event_breakpoint)
15936 (create_longjmp_master_breakpoint)
15937 (create_std_terminate_master_breakpoint)
15938 (create_exception_master_breakpoint): Update.
15939 * blockframe.c (find_pc_partial_function): Update.
15940 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
15941 (ada_collect_symbol_completion_matches)
15942 (ada_add_global_exceptions): Update.
15943
776489e0
TT
159442019-01-17 Tom Tromey <tom@tromey.com>
15945
15946 * solib-target.c (lm_info_target_p): Remove typedef. Don't
15947 declare VEC.
15948 (solib_target_parse_libraries): Change return type.
15949 (library_list_start_segment, library_list_start_section)
15950 (library_list_end_library, library_list_start_library); Update.
15951 (solib_target_free_library_list): Remove.
15952 (solib_target_parse_libraries): Remove cleanup. Change return
15953 type.
15954 (solib_target_current_sos): Update.
15955
6471e7d2
TT
159562019-01-17 Tom Tromey <tromey@bapiya>
15957
15958 * valprint.c: Replace "the the" with "the".
15959 * symtab.c: Replace "the the" with "the".
15960 * solib.c: Replace "the the" with "the".
15961 * solib-dsbt.c: Replace "the the" with "the".
15962 * linespec.c: Replace "the the" with "the".
15963 * dwarf2loc.h: Replace "the the" with "the".
15964 * amd64-windows-tdep.c: Replace "the the" with "the".
15965 * aarch64-tdep.c: Replace "the the" with "the".
15966
c24bdb02
KS
159672019-01-16 Keith Seitz <keiths@redhat.com>
15968
15969 PR gdb/23773
15970 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
15971 <builder>: Rename to ..
15972 <m_builder>: ... this and make private.
15973 (dwarf2_cu::get_builder): New method. Change all users of
15974 `builder' to use this method.
15975 (dwarf2_start_symtab): Move to ...
15976 (dwarf2_cu::start_symtab): ... here. Update all callers
15977 (setup_type_unit_groups): Move to ...
15978 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
15979 callers.
15980 (dwarf2_cu::reset_builder): New method.
15981 (process_full_compunit, process_full_type_unit): Use
15982 dwarf2_cu::reset_builder.
15983 (follow_die_offset): Record the ancestor CU if it is different
15984 from the followed DIE's CU.
15985 (follow_die_sig_1): Likewise.
15986
8d64371b
TT
159872019-01-15 Tom Tromey <tom@tromey.com>
15988
15989 * remote.c (class remote_state) <buf>: Now a char_vector.
15990 <buf_size>: Remove.
15991 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
15992 parameter.
15993 (remote_target::getpkt_or_notif_sane_1)
15994 (remote_target::getpkt_sane)
15995 (remote_target::getpkt_or_notif_sane): Likewise.
15996 (class remote_target) <putpkt>: New overload.
15997 (remote_target::read_frame): Change type of "buf_p". Remove
15998 sizeof_p parameter.
15999 (packet_ok): New overload.
16000 (packet_check_result): New overload.
16001 Update all uses.
16002
bb277751
TT
160032019-01-14 Tom Tromey <tom@tromey.com>
16004
16005 * remote-notif.c (handle_notification, remote_notif_ack)
16006 (remote_notif_parse): Make "buf" const.
16007 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
16008 const.
16009 (remote_notif_parse, remote_notif_ack, handle_notification):
16010 Likewise.
16011 * remote.c (remote_notif_stop_parse): Make "buf" const.
16012 (remote_target::remote_parse_stop_reply): Make "buf" const.
16013 (remote_notif_stop_ack): Make "buf" const.
16014
05be00a8
TT
160152019-01-14 Tom Tromey <tom@tromey.com>
16016
16017 * remote.c (remote_console_output): Make parameter const.
16018
491adeca
TT
160192019-01-14 Tom Tromey <tom@tromey.com>
16020
16021 * target-debug.h (target_debug_print_signals): Constify.
16022 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
16023 * procfs.c (procfs_target::pass_signals): Update.
16024 * linux-nat.c (linux_nat_target::pass_signals): Update.
16025 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
16026 * target-delegates.c: Rebuild.
16027 * remote.c (remote_target::program_signals): Update.
16028 (remote_target::pass_signals): Update.
16029 * target.c (target_pass_signals): Constify argument.
16030 (target_program_signals): Likewise.
16031 * target.h (struct target_ops) <pass_signals, program_signals>:
16032 Constify argument.
16033 (target_pass_signals, target_program_signals): Constify argument.
16034
bbd94648
TT
160352019-01-14 Tom Tromey <tom@tromey.com>
16036
16037 PR tui/28819:
16038 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
16039
6f072a10
PFC
160402019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
16041
16042 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
16043 field.
16044 * rs6000-tdep.c: Include reggroups.h.
16045 (IS_V_ALIAS_PSEUDOREG): Define.
16046 (rs6000_register_name): Return names for the "vX" aliases.
16047 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
16048 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
16049 aliases. Call default_register_reggroup_p for all other
16050 pseudo-registers.
16051 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
16052 New functions.
16053 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
16054 Handle "vX" aliases.
16055 (v_alias_pseudo_register_collect): New function.
16056 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
16057 (rs6000_gdbarch_init): Initialize "vX" aliases as
16058 pseudo-registers. Restore registration of
16059 rs6000_pseudo_register_reggroup_p with
16060 set_tdesc_pseudo_register_reggroup_p.
16061
1a782351
MF
160622019-01-13 Max Filippov <jcmvbkbc@gmail.com>
16063
16064 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
16065 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
16066 set_gdbarch_num_pseudo_regs.
16067
d73cff18
PW
160682019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16069
16070 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
16071 Remove arg prefixname, add do_set and do_show.
16072 Add member functions set_list and show_list.
16073 * cli/cli-style.c (class cli_style_option): Update accordingly.
16074 (style_set_list): Move to file scope.
16075 (style_show_list): Likewise.
16076 (set_style): Call help_list.
16077 (show_style): Call cmd_show_list.
16078 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
16079 Update to use the new macro.
16080
60a90376
JB
160812019-10-12 Joel Brobecker <brobecker@adacore.com>
16082
16083 * ada-lang.c (_initialize_ada_language): Expand the help text
16084 for the "catch exception" command.
16085
9d7c67bf
PW
160862019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16087
16088 * symtab.c (matching_obj_sections): Initialize obj,
16089 declare it closer to its usage.
16090
7cf47dc4
TT
160912019-01-10 Tom Tromey <tom@tromey.com>
16092
16093 * thread-iter.h (inf_threads_iterator): Use next_iterator.
16094 (basic_inf_threads_range): Remove.
16095 (inf_threads_range, inf_non_exited_threads_range)
16096 (safe_inf_threads_range): Use next_adapter.
16097
d3cb6808
KS
160982019-01-10 Keith Seitz <keiths@redhat.com>
16099
16100 PR gdb/23712
16101 PR symtab/23010
16102 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
16103 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
16104
63a20375
KS
161052019-01-10 Keith Seitz <keiths@redhat.com>
16106
16107 PR gdb/23712
16108 PR symtab/23010
16109 * dictionary.c (pending_to_vector): Remove.
16110 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
16111 Remove _1 suffix, replacing functions of the same name. Update
16112 all callers.
16113 (dict_create_hashed, dict_create_hashed_expandable)
16114 (dict_create_linear, dict_create_linear_expandable, dict_free)
16115 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
16116 Make functions static.
16117
b026f593
KS
161182019-01-10 Keith Seitz <keiths@redhat.com>
16119
16120 PR gdb/23712
16121 PR symtab/23010
16122 * dictionary.h (struct dictionary): Replace declaration with
16123 multidictionary.
16124 (dict_create_hashed, dict_create_hashed_expandable)
16125 (dict_create_linear, dict_create_linear_expandable)
16126 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
16127 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
16128 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
16129 taking multidictionary argument.
16130 [ALL_DICT_SYMBOLS]: Update for multidictionary.
16131 * block.h (struct block) <dict>: Change to multidictionary
16132 and rename `multidict'.
16133 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
16134 symmisc.c: Update all dictionary references to multidictionary.
16135
c7748ee9
KS
161362019-01-10 Keith Seitz <keiths@redhat.com>
16137
16138 PR gdb/23712
16139 PR symtab/23010
16140 * dictionary.c: Include unordered_map.
16141 (pending_to_vector): New function.
16142 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
16143 Rewrite the non-"_1" functions to take vector instead
16144 of linked list.
16145 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
16146 "new" _1 versions of the same name.
16147 (multidictionary): Define.
16148 (std::hash<enum language): New definition.
16149 (collate_pending_symbols_by_language, mdict_create_hashed)
16150 (mdict_create_hashed_expandable, mdict_create_linear)
16151 (mdict_create_linear_expandable, mdict_free)
16152 (find_language_dictionary, create_new_language_dictionary)
16153 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
16154 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
16155 (mdict_size, mdict_empty): New functions.
16156 * dictionary.h (mdict_iterator): Define.
16157
67aa1f3c
PA
161582019-01-10 Pedro Alves <palves@redhat.com>
16159
16160 * breakpoint.c (read_uploaded_action)
16161 (create_tracepoint_from_upload): Adjust to use
16162 gdb::unique_xmalloc_ptr.
16163 * ctf.c (ctf_write_uploaded_tp):
16164 (SET_ARRAY_FIELD): Use emplace_back.
16165 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
16166 * tracefile-tfile.c (tfile_write_uploaded_tp):
16167 * tracepoint.c (parse_tracepoint_definition): Adjust to use
16168 gdb::unique_xmalloc_ptr.
16169 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
16170 at_string, cond_string, cmd_strings>: Replace char pointers
16171 with gdb::unique_xmalloc_ptr.
16172
2f667667
PA
161732019-01-10 Pedro Alves <palves@redhat.com>
16174
16175 * solib-target.c (library_list_start_library): Don't xstrdup name.
16176
36cb7237
PA
161772019-01-10 Pedro Alves <palves@redhat.com>
16178
16179 * mdebugread.c (parse_partial_symbols): Use
16180 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
16181
da584958
AB
161822019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
16183
16184 * linux-fork.c (scoped_switch_fork_info)
16185 <~scoped_switch_fork_info>: Fix incorrect variable name.
16186
1ef8573c
AB
161872019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
16188
16189 * linux-fork.c (scoped_switch_fork_info)
16190 <scoped_switch_fork_info>: Make explicit.
16191 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
16192
8d7bcccb
TT
161932019-01-10 Tom Tromey <tom@tromey.com>
16194
16195 * objfiles.h (objfile::reset_psymtabs): Update.
16196 * objfiles.c (objfile::objfile): Update.
16197 * psymtab.h (psymtab_storage::obstack): Update.
16198 (psymtab_storage::m_obstack): Use gdb::optional.
16199 (class psymtab_storage): Update comment. Remove objfile
16200 parameter.
16201 * psymtab.c (psymtab_storage::psymtab_storage): Update.
16202
b596a3c7
TT
162032019-01-10 Tom Tromey <tom@tromey.com>
16204
16205 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
16206 <free_psymtabs>: Now private.
16207 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
16208 (allocate_psymtab): Use new method.
16209
a9342b62
TT
162102019-01-10 Tom Tromey <tom@tromey.com>
16211
16212 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
16213 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
16214 * mdebugread.c (parse_partial_symbols): Use
16215 allocate_dependencies.
16216 * dwarf2read.c (dwarf2_create_include_psymtab): Use
16217 allocate_dependencies.
16218 (process_psymtab_comp_unit_reader)
16219 (build_type_psymtab_dependencies): Likewise.
16220 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
16221
5af70966
TT
162222019-01-10 Tom Tromey <tom@tromey.com>
16223
16224 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
16225 PSYMBOL_SET_LANGUAGE.
16226 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
16227
5923a04c
TT
162282019-01-10 Tom Tromey <tom@tromey.com>
16229
16230 * psymtab.h (psymtab_storage::obstack): New method.
16231 <m_obstack>: Rename from obstack; now private.
16232 * psymtab.c (psymtab_storage): Update.
16233 * dwarf2read.c (create_addrmap_from_index)
16234 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
16235 Update.
16236
6d6a12bf
TT
162372019-01-10 Tom Tromey <tom@tromey.com>
16238
16239 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
16240 * objfiles.h (objfile::reset_psymtabs): New method.
16241
d320c2b5
TT
162422019-01-10 Tom Tromey <tom@tromey.com>
16243
16244 * symmisc.c (print_symbol_bcache_statistics): Update.
16245 (print_objfile_statistics): Update.
16246 * symfile.c (reread_symbols): Update.
16247 * psymtab.h (class psymtab_storage): New.
16248 * psymtab.c (psymtab_storage): New constructor.
16249 (~psymtab_storage): New destructor.
16250 (require_partial_symbols): Update.
16251 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
16252 (find_pc_sect_psymtab, find_pc_sect_psymbol)
16253 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
16254 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
16255 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
16256 (start_psymtab_common, end_psymtab_common)
16257 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
16258 (allocate_psymtab): Update.
16259 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
16260 Update.
16261 (dump_psymtab_addrmap, maintenance_print_psymbols)
16262 (maintenance_check_psymtabs): Update.
16263 (class objfile_psymtabs): Move to objfiles.h.
16264 * psympriv.h (discard_psymtab): Now inline.
16265 (psymtab_discarder::psymtab_discarder): Update.
16266 (psymtab_discarder::~psymtab_discarder): Update.
16267 (ALL_OBJFILE_PSYMTABS): Rewrite.
16268 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
16269 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
16270 Remove fields.
16271 <partial_symtabs>: New field.
16272 (class objfile_psymtabs): Move from psymtab.h. Update.
16273 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
16274 psymbol_cache.
16275 (objfile::~objfile): Don't destroy psymbol_cache.
16276 * mdebugread.c (parse_partial_symbols): Update.
16277 * dwarf2read.c (create_addrmap_from_index)
16278 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
16279 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
16280 (add_partial_subprogram, dwarf2_ranges_read): Update.
16281 * dwarf-index-write.c (write_address_map)
16282 (write_one_signatured_type, recursively_write_psymbols)
16283 (class debug_names, class debug_names, write_psymtabs_to_index):
16284 Update.
16285
1d94a5a3
TT
162862019-01-10 Tom Tromey <tom@tromey.com>
16287
16288 * symtab.h (SYMBOL_SET_NAMES): Update.
16289 (symbol_set_names): Update.
16290 (MSYMBOL_SET_NAMES): Update.
16291 * symtab.c (symbol_set_names): Change argument to be an
16292 objfile_per_bfd_storage.
16293 * psymtab.c (add_psymbol_to_bcache): Update.
16294 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
16295
0f14768a
TT
162962019-01-10 Tom Tromey <tom@tromey.com>
16297
16298 * symtab.c (create_demangled_names_hash): Change argument to be an
16299 objfile_per_bfd_storage.
16300 (symbol_set_names): Update.
16301
6eee24ce
TT
163022019-01-10 Tom Tromey <tom@tromey.com>
16303
16304 * xcoffread.c (xcoff_initial_scan): Unconditionally call
16305 init_psymbol_list.
16306 * psymtab.c (init_psymbol_list): Do nothing if already called.
16307 * psympriv.h (init_psymbol_list): Add comment.
16308 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
16309 init_psymbol_list.
16310 * dbxread.c (dbx_symfile_read): Unconditionally call
16311 init_psymbol_list.
16312
75aedd27
TT
163132019-01-10 Tom Tromey <tom@tromey.com>
16314
16315 * xcoffread.c (scan_xcoff_symtab): Update.
16316 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
16317 "where".
16318 * mdebugread.c (parse_partial_symbols)
16319 (handle_psymbol_enumerators): Update.
16320 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
16321 * dbxread.c (read_dbx_symtab): Update.
16322 * psympriv.h (psymbol_placement): New enum.
16323 (add_psymbol_to_list): Update.
16324
939652a5
TT
163252019-01-10 Tom Tromey <tom@tromey.com>
16326
16327 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
16328 static_psymbols parameters.
16329 (scan_xcoff_symtab): Update.
16330 * psymtab.c (start_psymtab_common): Remove global_psymbols and
16331 static_psymbols parameters.
16332 * psympriv.h (start_psymtab_common): Update.
16333 * mdebugread.c (parse_partial_symbols): Update.
16334 * dwarf2read.c (create_partial_symtab): Update.
16335 * dbxread.c (read_dbx_symtab): Update.
16336 (start_psymtab): Remove global_psymbols and static_psymbols
16337 parameters.
16338
baa62830
TT
163392019-01-10 Tom Tromey <tom@tromey.com>
16340
16341 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
16342 * psymtab.c (allocate_psymtab): Add comment.
16343 * psympriv.h (allocate_psymtab): Add comment.
16344 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
16345 initializations.
16346 * dbxread.c (dbx_end_psymtab): Remove some initializations.
16347
0e8f53ba
TT
163482019-01-10 Tom Tromey <tom@tromey.com>
16349
16350 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
16351 Don't declare.
16352 * mipsread.c: Include mdebugread.h.
16353 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
16354 Declare.
16355 * elfread.c: Include mdebugread.h.
16356
b22a7c6a
TT
163572019-01-09 Tom Tromey <tom@tromey.com>
16358
16359 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
16360 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
16361 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
16362 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
16363 (psym_lookup_symbol, psym_find_last_source_symtab)
16364 (psym_forget_cached_source_info, psym_print_stats)
16365 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
16366 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
16367 (psym_map_matching_symbols, psym_expand_symtabs_matching)
16368 (psym_find_compunit_symtab_by_address)
16369 (maintenance_print_psymbols, maintenance_info_psymtabs)
16370 (maintenance_check_psymtabs): Use ranged for.
16371 * psymtab.h (class objfile_psymtabs): New.
16372 (require_partial_symbols): Return objfile_psymtabs.
16373 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
16374
3b9d3ac2
TT
163752019-01-09 Tom Tromey <tom@tromey.com>
16376
16377 * symfile.c (overlay_invalidate_all, find_pc_overlay)
16378 (find_pc_mapped_section, list_overlays_command)
16379 (map_overlay_command, unmap_overlay_command)
16380 (simple_overlay_update): Use all_objfiles.
16381 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
16382 * printcmd.c (info_symbol_command): Use all_objfiles.
16383 * objfiles.h (ALL_OBJSECTIONS): Remove.
16384 * maint.c (maintenance_translate_address): Use all_objfiles.
16385 * gcore.c (gcore_create_callback): Use all_objfiles.
16386 (objfile_find_memory_regions): Likewise.
16387
8b31193a
TT
163882019-01-09 Tom Tromey <tom@tromey.com>
16389
16390 * symtab.c (find_line_symtab, info_sources_command)
16391 (make_source_files_completion_list): Use objfile_compunits.
16392 * source.c (select_source_symtab): Use objfile_compunits.
16393 * objfiles.h (struct objfile): Update comment.
16394 (ALL_OBJFILES): Remove.
16395 (ALL_FILETABS): Remove.
16396 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
16397 objfile_compunits.
16398
d5da8b3c
TT
163992019-01-09 Tom Tromey <tom@tromey.com>
16400
16401 * symmisc.c (print_objfile_statistics, dump_objfile)
16402 (maintenance_print_symbols): Use compunit_filetabs.
16403 * source.c (forget_cached_source_info_for_objfile): Use
16404 compunit_filetabs.
16405 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
16406 (ALL_FILETABS): Use compunit_filetabs.
16407 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
16408 * coffread.c (coff_symtab_read): Use compunit_filetabs.
16409
5accd1a0
TT
164102019-01-09 Tom Tromey <tom@tromey.com>
16411
16412 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
16413 (compunit_filetabs): New.
16414 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
16415 compunit_filetabs.
16416 (info_sources_command, make_source_files_completion_list): Remove
16417 declaration.
16418 * symmisc.c (print_objfile_statistics, dump_objfile)
16419 (maintenance_print_symbols): Remove declaration.
16420 (maintenance_info_symtabs): Use compunit_filetabs.
16421 (maintenance_info_line_tables): Likewise.
16422 * source.c (select_source_symtab): Change local variable name.
16423 (forget_cached_source_info_for_objfile): Remove declaration.
16424 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
16425 * objfiles.c (objfile_relocate1): Remove declaration.
16426 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
16427 declaration.
16428 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
16429 * coffread.c (coff_symtab_read): Remove declaration.
16430 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
16431 compunit_filetabs.
16432
d8aeb77f
TT
164332019-01-09 Tom Tromey <tom@tromey.com>
16434
16435 * symtab.c (lookup_objfile_from_block)
16436 (find_pc_sect_compunit_symtab, search_symbols)
16437 (default_collect_symbol_completion_matches_break_on): Use
16438 objfile_compunits.
16439 * objfiles.h (ALL_COMPUNITS): Remove.
16440 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
16441 * cp-support.c (add_symbol_overload_list_qualified): Use
16442 objfile_compunits.
16443 * ada-lang.c (ada_collect_symbol_completion_matches)
16444 (ada_add_global_exceptions): Use objfile_compunits.
16445
592553c4
TT
164462019-01-09 Tom Tromey <tom@tromey.com>
16447
16448 * source.c (select_source_symtab)
16449 (forget_cached_source_info_for_objfile): Remove declaration.
16450 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
16451 declaration.
16452 * maint.c (count_symtabs_and_blocks): Remove declaration.
16453 * cp-support.c (add_symbol_overload_list_qualified): Remove
16454 declaration.
16455 * coffread.c (coff_symtab_read): Remove declaration.
16456 * symtab.c (lookup_symbol_in_objfile_symtabs)
16457 (basic_lookup_transparent_type_1): Use objfile_compunits.
16458 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
16459 (info_sources_command, search_symbols)
16460 (default_collect_symbol_completion_matches_break_on)
16461 (make_source_files_completion_list): Remove declaration.
16462 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
16463 (ada_collect_symbol_completion_matches)
16464 (ada_add_global_exceptions): Remove declaration.
16465 * linespec.c (iterate_over_all_matching_symtabs): Use
16466 objfile_compunits.
16467 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
16468 (class objfile_compunits): New.
16469 (ALL_COMPUNITS): Use objfile_compunits.
16470 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
16471 (maintenance_check_symtabs, maintenance_info_line_tables): Use
16472 objfile_compunits.
16473 * objfiles.c (objfile_relocate1): Use objfile_compunits.
16474
5325b9bf
TT
164752019-01-09 Tom Tromey <tom@tromey.com>
16476
16477 * symtab.c (search_symbols)
16478 (default_collect_symbol_completion_matches_break_on): Use
16479 objfile_msymbols.
16480 * ada-lang.c (ada_lookup_simple_minsym)
16481 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
16482 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
16483 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
16484 objfile_msymbols.
16485 * coffread.c (coff_symfile_read): Use objfile_msymbols.
16486 * symmisc.c (dump_msymbols): Use objfile_msymbols.
16487 * objc-lang.c (find_methods): Use objfile_msymbols.
16488 (info_selectors_command, info_classes_command): Likewise.
16489 * stabsread.c (scan_file_globals): Use objfile_msymbols.
16490 * objfiles.h (class objfile_msymbols): New.
16491 (ALL_OBJFILE_MSYMBOLS): Remove.
16492 (ALL_MSYMBOLS): Remove.
16493
cac85af2
TT
164942019-01-09 Tom Tromey <tom@tromey.com>
16495
16496 * common/next-iterator.h (next_adapter): Add Iterator template
16497 parameter.
16498 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
16499 (class all_objfiles_safe): New.
16500 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
16501 * objfiles.c (put_objfile_before): Update comment.
16502 (add_separate_debug_objfile): Likewise.
16503 (free_all_objfiles): Use all_objfiles_safe.
16504 (objfile_purge_solibs): Likewise.
16505
aed57c53
TT
165062019-01-09 Tom Tromey <tom@tromey.com>
16507
16508 * symtab.c (iterate_over_symtabs, matching_obj_sections)
16509 (expand_symtab_containing_pc, lookup_static_symbol)
16510 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
16511 (find_symbol_at_address, find_line_symtab, find_main_name): Use
16512 all_objfiles.
16513 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
16514 * breakpoint.c (create_overlay_event_breakpoint)
16515 (create_longjmp_master_breakpoint)
16516 (create_std_terminate_master_breakpoint)
16517 (create_exception_master_breakpoint): Use all_objfiles.
16518 * linux-thread-db.c (try_thread_db_load_from_pdir)
16519 (has_libpthread): Use all_objfiles.
16520 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
16521 * linespec.c (iterate_over_all_matching_symtabs)
16522 (search_minsyms_for_name): Use all_objfiles.
16523 * maint.c (maintenance_info_sections): Use all_objfiles.
16524 * main.c (captured_main_1): Use all_objfiles.
16525 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
16526 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
16527 * guile/scm-pretty-print.c
16528 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
16529 * solib-spu.c (append_ocl_sos): Use all_objfiles.
16530 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
16531 (maintenance_print_msymbols): Use all_objfiles.
16532 * source.c (select_source_symtab): Use all_objfiles.
16533 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
16534 * symfile.c (remove_symbol_file_command)
16535 (expand_symtabs_matching, map_symbol_filenames): Use
16536 all_objfiles.
16537 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
16538 all_objfiles.
16539 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
16540 * objc-lang.c (find_methods): Use all_objfiles.
16541 * objfiles.c (have_partial_symbols, have_full_symbols)
16542 (have_minimal_symbols, qsort_cmp)
16543 (default_iterate_over_objfiles_in_search_order): Use
16544 all_objfiles.
16545 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
16546 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
16547 (maintenance_check_psymtabs): Use all_objfiles.
16548 (ALL_PSYMTABS): Remove.
16549 * compile/compile-object-run.c (do_module_cleanup): Use
16550 all_objfiles.
16551 * blockframe.c (find_pc_partial_function): Use all_objfiles.
16552 * cp-support.c (add_symbol_overload_list_qualified): Use
16553 all_objfiles.
16554 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
16555 Use all_objfiles.
16556 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
16557 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
16558 all_objfiles.
16559 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
16560 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
16561 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
16562 Uses all_objfiles.
16563 * solib.c (solib_read_symbols): Use all_objfiles
16564
99d89cde
TT
165652019-01-09 Tom Tromey <tom@tromey.com>
16566
16567 * probe.c (parse_probes_in_pspace): Use all_objfiles.
16568 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
16569 all_objfiles.
16570 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
16571 * symmisc.c (print_symbol_bcache_statistics)
16572 (print_objfile_statistics, maintenance_print_objfiles)
16573 (maintenance_info_symtabs, maintenance_check_symtabs)
16574 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
16575 all_objfiles.
16576 * source.c (forget_cached_source_info): Use all_objfiles.
16577 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
16578 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
16579 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
16580 * objfiles.c (update_section_map): Use all_objfiles.
16581 (shared_objfile_contains_address_p): Likewise.
16582 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
16583 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
16584
21708325
TT
165852019-01-09 Tom Tromey <tom@tromey.com>
16586
16587 * common/next-iterator.h: New file.
16588 * objfiles.h (class all_objfiles): New.
16589 (struct objfile_iterator): New.
16590
669e09f6
PW
165912019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16592
16593 * NEWS: Move the description of the changed "frame", "select-frame",
16594 and "info frame" commands to the Changed commands section.
16595
041be526
SM
165962019-01-09 Simon Marchi <simon.marchi@ericsson.com>
16597
16598 * gdbtypes.c (check_stub_method_group): Remove handling of old
16599 mangling schemes.
16600 * linespec.c (find_methods): Likewise.
16601 * stabsread.c (read_member_functions): Likewise.
16602 * valops.c (search_struct_method): Likewise.
16603 (value_struct_elt_for_reference): Likewise.
16604 * NEWS: Mention this change.
16605
0e2a2133
AB
166062019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
16607
16608 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
16609 print_source_lines.
16610 * source.c (print_source_lines_base): Update line number check.
16611 (print_source_lines): New function.
16612 (source_lines_range::source_lines_range): New function.
16613 * source.h (class source_lines_range): New class.
16614 (print_source_lines): New declaration.
16615
1055a3b4
PW
166162019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16617
16618 * linespec.c (linespec_state_destructor): Free self->canonical_names.
16619
cfeadda5
TT
166202019-01-08 Tom Tromey <tom@tromey.com>
16621 Simon Marchi <simon.marchi@ericsson.com>
16622
16623 PR gdb/24060
16624 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
16625 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
16626 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
16627 * f-exp.y (DOLLAR_VARIABLE): Likewise.
16628 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
16629 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
16630
583068ca
AB
166312019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
16632
16633 * source.c (select_source_symtab): Move header comment to
16634 declaration in source.h.
16635 (forget_cached_source_info_for_objfile): Likewise.
16636 (forget_cached_source_info): Likewise.
16637 (identify_source_line): Likewise.
16638 * source.h (identify_source_line): Move declaration from symtab.h
16639 and add comment from source.c
16640 (print_source_lines): Likewise.
16641 (forget_cached_source_info_for_objfile): Likewise.
16642 (forget_cached_source_info): Likewise.
16643 (select_source_symtab): Likewise.
16644 (enum print_source_lines_flag): Move definition from symtab.h.
16645 * symtab.h (identify_source_line): Move declaration to source.h.
16646 (print_source_lines): Likewise.
16647 (forget_cached_source_info_for_objfile): Likewise.
16648 (forget_cached_source_info): Likewise.
16649 (select_source_symtab): Likewise.
16650 (enum print_source_lines_flag): Move definition to source.h.
16651 * tui/tui-hooks.c: Add 'source.h' include.
16652
ec98a4ad
AB
166532019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
16654
16655 * source.c (print_source_lines_base): Handle requests to print
16656 reverse line number sequences, and guard against empty lines
16657 string.
16658
62ea19c1
AB
166592019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
16660
16661 * source.c (print_source_lines_base): Fix skip of '\r' if next
16662 character is '\n'.
16663
9d30e1fd
TT
166642019-01-06 Tom Tromey <tom@tromey.com>
16665
16666 * c-exp.y (struct c_parse_state) <macro_original_text,
16667 expansion_obstack>: New member.
16668 (macro_original_text, expansion_obstack): Remove globals.
16669 (scan_macro_expansion, scanning_macro_expansion)
16670 (finished_macro_expansion): Update.
16671 (scan_macro_cleanup): Remove.
16672 (yylex, c_parse): Update.
16673
c65bac38
TT
166742019-01-06 Tom Tromey <tom@tromey.com>
16675
16676 * c-exp.y (struct c_parse_state) <strings>: New member.
16677 (operator_stoken): Update.
16678
02e12e38
TT
166792019-01-06 Tom Tromey <tom@tromey.com>
16680
16681 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
16682 (union type_stack_elt) <typelist_val>: Now a pointer to
16683 std::vector.
16684 (type_stack_cleanup): Don't declare.
16685 (push_typelist): Update.
16686 * parse.c (pop_typelist): Return a std::vector.
16687 (push_typelist): Take a std::vector.
16688 (follow_types): Update. Do not free args.
16689 (type_stack_cleanup): Remove.
16690 * c-exp.y (struct c_parse_state): New.
16691 (cpstate): New global.
16692 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
16693 (nonempty_typelist): Update.
16694 (func_mod): Create a new vector.
16695 (c_parse): Create a c_parse_state.
16696 (check_parameter_typelist): Do not delete params.
16697 (function_method): Update. Do not delete type_list.
16698
f097f5ad
TT
166992019-01-06 Tom Tromey <tom@tromey.com>
16700
16701 PR gdb/28155:
16702 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
16703 check_typedef.
16704 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
16705 (print_return_value): Likewise.
16706
d2adf9f1
TT
167072019-01-05 Tom Tromey <tom@tromey.com>
16708
16709 * contrib/cleanup_check.py: Remove.
16710 * contrib/gcc-with-excheck: Remove.
16711 * contrib/exsummary.py: Remove.
16712 * contrib/excheck.py: Remove.
16713
2eab46b1
JB
167142019-01-05 Joel Brobecker <brobecker@adacore.com>
16715
16716 * thread.c (delete_thread_1): Add gdb_assert that THR is not
16717 NULL. Initialize tpprev to NULL instead of assigning it
16718 to NULL on the next statement.
16719 * windows-nat.c (windows_delete_thread): Remove check for
16720 main_thread_id before printing thread exit notifications.
16721 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
16722 Remove thread ID check against main_thread_id.
16723 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
16724 windows_delete_thread.
16725 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
16726
48c5e7e2
TT
167272019-01-04 Tom Tromey <tom@tromey.com>
16728
16729 * compile/compile.c (_initialize_compile): Use upper case for
16730 metasyntactic variables.
16731 * symmisc.c (_initialize_symmisc): Use upper case for
16732 metasyntactic variables.
16733 * psymtab.c (_initialize_psymtab): Use upper case for
16734 metasyntactic variables.
16735 * demangle.c (demangle_command): Use upper case for metasyntactic
16736 variables.
16737 (_initialize_demangler): Likewise.
16738 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
16739 variables.
16740
986041cd
TT
167412019-01-03 Tom Tromey <tom@tromey.com>
16742
16743 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
16744
7c711119
TT
167452019-01-03 Tom Tromey <tom@tromey.com>
16746
16747 * python/py-symtab.c (salpy_str): Update.
16748 (struct salpy_sal_object) <symtab>: Now a PyObject.
16749 (salpy_dealloc): Update.
16750 (del_objfile_sal): Use gdbpy_ref.
16751
1b20edf0
TT
167522019-01-03 Tom Tromey <tom@tromey.com>
16753
16754 * python/py-type.c (convert_field): Use new_reference. Return
16755 gdbpy_ref.
16756 (make_fielditem): Return gdbpy_ref.
16757 (typy_fields): Update.
16758 (typy_getitem): Update.
16759 (field_name): Return gdbpy_ref. Use new_reference.
16760 (typy_iterator_iternext): Update.
16761
ea41325b
TT
167622019-01-03 Tom Tromey <tom@tromey.com>
16763
16764 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
16765
2a3c71d6
TT
167662019-01-03 Tom Tromey <tom@tromey.com>
16767
16768 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
16769 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
16770 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
16771 (pspy_set_frame_filters, pspy_set_frame_unwinders)
16772 (pspy_set_type_printers): Likewise.
16773 * python/py-function.c (fnpy_init): Use gdbpy_ref.
16774 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
16775 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
16776 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
16777 (objfpy_set_type_printers): Likewise.
16778
5c329e6a
TT
167792019-01-03 Tom Tromey <tom@tromey.com>
16780
16781 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
16782 (gdbpy_print_stack): Use gdbpy_err_fetch.
16783 * python/python-internal.h (class gdbpy_err_fetch): New class.
16784 (class gdbpy_enter) <m_error_type, m_error_value,
16785 m_error_traceback>: Remove.
16786 <m_error>: New member.
16787 (gdbpy_exception_to_string): Don't declare.
16788 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
16789 * python/py-value.c (convert_value_from_python): Use
16790 gdbpy_err_fetch.
16791 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
16792 gdbpy_exception_to_string.
16793 (gdbpy_handle_exception): Use gdbpy_err_fetch.
16794 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
16795 gdbpy_err_fetch.
16796
169bb27b
AB
167972019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16798
16799 * linux-nat.c (delete_lwp_cleanup): Delete.
16800 (struct lwp_deleter): New struct.
16801 (lwp_info_up): New typedef.
16802 (linux_nat_target::follow_fork): Delete cleanup, and make use of
16803 lwp_info_up.
16804
a07c8880
AB
168052019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16806
16807 * linux-fork.c (class scoped_switch_fork_info): New class.
16808 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
16809
26089c49
AB
168102019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16811
16812 * valops.c (find_overload_match): Remove use of null_cleanup, and
16813 calls to do_cleanups.
16814
06d3e5b0
AB
168152019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16816
16817 * compile/compile-cplus-types.c
16818 (compile_cplus_instance::decl_name): Handle changes to
16819 cp_func_name.
16820 * cp-support.c (cp_func_name): Update header comment, update
16821 return type.
16822 * cp-support.h (cp_func_name): Update return type in declaration.
16823 * valops.c (find_overload_match): Move temp_func local to top
16824 level of function and change its type. Use temp_func to hold and
16825 delete temporary string obtained from cp_func_name.
16826
66644cd3
AB
168272019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16828
16829 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
16830 gdb::char_vector, remove cleanup, and update uses of `msg`.
16831
592d8c0a
JW
168322019-01-03 Jim Wilson <jimw@sifive.com>
16833
16834 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
16835
c55d06ec
TT
168362019-01-02 Tom Tromey <tom@tromey.com>
16837
16838 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
16839 (tdesc_parse_xml): Remove cleanups.
16840 * target-descriptions.h (make_cleanup_free_target_description):
16841 Don't declare.
16842 (target_desc_deleter): New struct.
16843 (target_desc_up): New typedef.
16844 * target-descriptions.c (target_desc_deleter::operator()): Rename
16845 from free_target_description.
16846 (make_cleanup_free_target_description): Remove.
16847
3a6ae42d
TT
168482019-01-02 Tom Tromey <tom@tromey.com>
16849
16850 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
16851 constructor, destructor.
16852 (linespec_parser): Remove typedef.
16853 (~linespec_parser): Rename from linespec_parser_delete.
16854 (linespec_lex_to_end, linespec_complete_label)
16855 (linespec_complete): Update.
16856 (decode_line_full): Remove cleanups.
16857 (decode_line_1): Update.
16858
61fd3e73
TT
168592019-01-02 Tom Tromey <tom@tromey.com>
16860
16861 * python/python-internal.h (inferior_to_inferior_object): Change
16862 return type.
16863 * python/py-exitedevent.c (create_exited_event_object): Update.
16864 * python/py-inferior.c (inferior_to_inferior_object): Return
16865 gdbpy_ref.
16866 (python_new_inferior, python_inferior_deleted)
16867 (thread_to_thread_object, delete_thread_object)
16868 (build_inferior_list, gdbpy_selected_inferior): Update.
16869 * python/py-infthread.c (create_thread_object): Update. Also fail
16870 if inferior_to_inferior_object fails.
16871
d20172fc
SM
168722019-01-02 Simon Marchi <simon.marchi@ericsson.com>
16873
16874 * inferior.h (class inferior) <displaced_step_state>: New field.
16875 * infrun.h (struct displaced_step_state): Move here from
16876 infrun.c. Initialize fields, add constructor.
16877 <inf>: Remove field.
16878 <reset>: New method.
16879 * infrun.c (struct displaced_step_inferior_state): Move to
16880 infrun.h.
16881 (displaced_step_inferior_states): Remove.
16882 (get_displaced_stepping_state): Adust.
16883 (displaced_step_in_progress_any_inferior): Adjust.
16884 (displaced_step_in_progress_thread): Adjust.
16885 (displaced_step_in_progress): Adjust.
16886 (add_displaced_stepping_state): Remove.
16887 (get_displaced_step_closure_by_addr): Adjust.
16888 (remove_displaced_stepping_state): Remove.
16889 (infrun_inferior_exit): Call displaced_step_state.reset.
16890 (use_displaced_stepping): Don't check for NULL.
16891 (displaced_step_prepare_throw): Call
16892 get_displaced_stepping_state.
16893 (displaced_step_fixup): Don't check for NULL.
16894 (prepare_for_detach): Don't check for NULL.
16895
e3319240
PW
168962019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16897
16898 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
16899 in case of call that did not complete.
16900
5d36dfb9
AU
169012019-01-02 Andrey Utkin <autkin@undo.io>
16902
16903 * symfile.c (find_separate_debug_file): Fix search of debug files for
16904 remote debuggee.
16905
8833fbf0
TT
169062019-01-02 Tom Tromey <tom@tromey.com>
16907
16908 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
16909 indentation.
16910 * python/py-frame.c (frapy_older): Remove cast.
16911 (frapy_newer): Likewise.
16912 * python/py-breakpoint.c (local_setattro): Remove cast.
16913 * python/py-arch.c (archpy_name): Remove local variable.
16914 * python/py-type.c (gdbpy_lookup_type): Remove cast.
16915
4ada3dfd
JB
169162019-01-02 Joel Brobecker <brobecker@adacore.com>
16917
16918 * unittests/basic_string_view/element_access/char/empty.cc:
16919 Fix year range in copyright header.
16920
113b7b81
AB
169212019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
16922
16923 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
16924 Delete.
16925 <operator==>: Update with for removed field.
16926 <hash>: Likewise.
16927 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
16928 <isa_features>: ...this.
16929 <abi_features>: New field.
16930 (riscv_isa_flen): Update comment.
16931 (riscv_abi_xlen): New declaration.
16932 (riscv_abi_flen): New declaration.
16933 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
16934 isa_features.
16935 (riscv_abi_xlen): New function.
16936 (riscv_isa_flen): Update to get answer from isa_features.
16937 (riscv_abi_flen): New function.
16938 (riscv_has_fp_abi): Update to get answer from abi_features.
16939 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
16940 xlen and flen.
16941 (riscv_call_info) <xlen, flen>: Update comment.
16942 (riscv_call_arg_struct): Remove invalid assertions
16943 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
16944 is removed.
16945 (riscv_gdbarch_init): Gather isa features and abi features
16946 separately, ensure both match on the gdbarch when reusing an old
16947 gdbarch. Relax an error check to allow 32-bit abi float to run on
16948 a target with 64-bit float hardware.
16949
b18ca514
PW
169502019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16951
16952 * source.c (search_command_helper): Stop reverse search
16953 when line 1 has been searched.
16954
ec70d8db
PW
169552019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16956
16957 * record-full.c (record_full_base_target::close): Rewrite
16958 record_full_core_buf_list free logic.
16959
5b38f9c1
PW
169602019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16961
16962 * break-catch-syscall.c (print_one_catch_syscall): xfree
16963 the last text.
16964
66d91b39
JB
169652019-01-01 Joel Brobecker <brobecker@adacore.com>
16966
16967 * top.c (print_gdb_version): Update Copyright year in version
16968 message.
16969
42a4f53d
JB
169702019-01-01 Joel Brobecker <brobecker@adacore.com>
16971
16972 Update copyright year range in all GDB files.
16973
7e955d83 169742019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
2139e8dc 16975
5bbd631d 16976 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
2139e8dc 16977
5bbd631d 16978For older changes see ChangeLog-2018.
c906108c
SS
16979\f
16980Local Variables:
16981mode: change-log
16982left-margin: 8
16983fill-column: 74
16984version-control: never
57da7796 16985coding: utf-8
c906108c 16986End:
5bbd631d 16987
This page took 3.011431 seconds and 4 git commands to generate.