Handle CRLF when reading XML on Windows
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
f69656d0
TT
12019-12-11 Tom Tromey <tromey@adacore.com>
2
3 * xml-support.c (xml_fetch_content_from_file): Use FOPEN_RB.
4
27e4fac7
TT
52019-12-18 Tom Tromey <tromey@adacore.com>
6
7 PR build/25268:
8 * gdbsupport/thread-pool.c (set_thread_name): Expect "int" return
9 type on macOS. Add comment.
10
e623f035
SM
112019-12-18 Simon Marchi <simon.marchi@efficios.com>
12
13 * c-lang.c (c_get_string, asm_language_defn): Remove space
14 before tab.
15
28ce7b07
TT
162019-12-18 Tom Tromey <tromey@adacore.com>
17
18 PR build/25250:
19 * ui-out.c (ui_out::vmessage): Update.
20 * ui-out.h (enum class field_kind) <FIELD_STRING, FIELD_SIGNED>:
21 Rename.
22 (string_field): Update.
23 (signed_field): Update.
24
bbde7025
SM
252019-12-18 Simon Marchi <simon.marchi@efficios.com>
26
27 * top.c (print_gdb_configuration): Adjust indentation.
28
e3169fe0
CB
292019-12-17 Christian Biesinger <cbiesinger@google.com>
30
31 * bsd-kvm.c: Include gdbsupport/pathstuff.h.
32
9b30da15
SM
332019-12-17 Simon Marchi <simon.marchi@polymtl.ca>
34
35 * tui/tui-layout.h (class tui_layout_base): Add virtual
36 destructor.
37
4a4c04f1
BE
382019-12-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
39
40 * infcmd.c (prepare_one_step): Step over skipped inline functions.
41 * infrun.c (inline_frame_is_marked_for_skip): New helper function.
42 (process_event_stop_test): Keep stepping over skipped inline functions.
43
0394eed1
SM
442019-12-16 Simon Marchi <simon.marchi@polymtl.ca>
45
46 * jit.c (struct gdb_block) <next>: Remove field.
47 (struct gdb_symtab) <~gdb_symtab>: Remove.
48 <blocks>: Change type to std::forward_list<gdb_block>.
49 (compare_block): Remove.
50 (jit_block_open_impl): Adjust to std::forward_list. Place the new
51 block at the beginning, don't mind about sorting.
52 (finalize_symtab): Adjust to std::forward_list, sort the blocks list
53 before using it.
54
b6112117
SM
552019-12-16 Simon Marchi <simon.marchi@polymtl.ca>
56
57 * jit.c (struct gdb_block): Add constructor, initialize
58 real_block and next fields.
59 <name>: Change type to gdb::unique_xmalloc_ptr.
60 (struct gdb_symtab) <~gdb_symtab>: Free blocks with delete.
61 (jit_block_open_impl): Allocate gdb_block with new.
62 (finalize_symtab): Adjust to gdb::unique_xmalloc_ptr.
63
1b61f46d
SM
642019-12-16 Simon Marchi <simon.marchi@polymtl.ca>
65
66 * jit.c: Include forward_list.
67 (struct gdb_symtab) <next>: Remove field.
68 (struct gdb_object) <symtabs>: Change type to
69 std::forward_list<gdb_symtab>.
70 (jit_object_open_impl): Allocate gdb_object with new.
71 (jit_symtab_open_impl): Adjust to std::forward_list.
72 (finalize_symtab): Don't delete symtab.
73 (jit_object_close_impl): Adjust to std::forward_list. Free
74 gdb_object with delete.
75
89867184
SM
762019-12-16 Simon Marchi <simon.marchi@polymtl.ca>
77
78 * jit.c (struct gdb_symtab): Add constructor, destructor,
79 initialize fields.
80 <linetable>: Change type to unique_xmalloc_ptr.
81 <file_name>: Change type to std::string.
82 (jit_symtab_open_impl): Allocate gdb_symtab with new.
83 (jit_symtab_line_mapping_add_impl): Adjust.
84 (finalize_symtab): Adjust, call delete on stab.
85
d043f8c8
SM
862019-12-16 Simon Marchi <simon.marchi@polymtl.ca>
87
88 * jit.c (finalize_symtab): Set gdb_block_iter_tmp in loop.
89
d9fa87f4
TT
902019-12-16 Tom Tromey <tromey@adacore.com>
91
92 * windows-nat.c (windows_nat_target::attach): Update.
93 * remote.c (extended_remote_target::attach): Update.
94 * procfs.c (procfs_target::attach): Update.
95 * nto-procfs.c (nto_procfs_target::attach): Update.
96 (nto_procfs_target::create_inferior): Update.
97 * inf-ptrace.c (inf_ptrace_target::attach): Update.
98 * gnu-nat.c (gnu_nat_target::attach): Update.
99 (gnu_nat_target::detach): Update.
100 * darwin-nat.c (darwin_nat_target::attach): Update.
101 * corefile.c (get_exec_file): Constify result. Remove extraneous
102 return.
103 * bsd-kvm.c (bsd_kvm_target_open): Update.
104 * gdbsupport/common-inferior.h (get_exec_file): Constify result.
105
c0c3707f
CB
1062019-12-16 Christian Biesinger <cbiesinger@google.com>
107
108 * gdbsupport/common-defs.h: Remove workaround for a gnulib bug
109 (we no longer need to include time.h before pathmax.h)
110
d3ecddab
CB
1112019-12-15 Christian Biesinger <cbiesinger@google.com>
112
113 * ada-exp.y (write_ambiguous_var): Update.
114 * coffread.c (process_coff_symbol): Update.
115 * ctfread.c (ctf_add_enum_member_cb): Update.
116 (new_symbol): Update.
117 * dwarf2read.c (fixup_go_packaging): Update.
118 (new_symbol): Update.
119 * language.c (language_alloc_type_symbol): Update.
120 * mdebugread.c (new_symbol): Update.
121 * minsyms.c (minimal_symbol_reader::record_full): Update.
122 * psymtab.c (add_psymbol_to_bcache): Update.
123 * stabsread.c (define_symbol): Update.
124 (read_enum_type): Update.
125 * symtab.c (symbol_set_language): Make this a member function...
126 (general_symbol_info::set_language): ... here.
127 * symtab.h (struct general_symbol_info) <set_language>: New function.
128 (SYMBOL_SET_LANGUAGE): Remove.
129 (symbol_set_language): Remove.
130
c1b5c1eb
CB
1312019-12-15 Christian Biesinger <cbiesinger@google.com>
132
133 * ada-lang.c (ada_add_block_symbols): Update.
134 (ada_collect_symbol_completion_matches): Update.
135 * ax-gdb.c (gen_expr): Update.
136 * block.c (block_lookup_symbol): Update.
137 (block_lookup_symbol_primary): Update.
138 (block_find_symbol): Update.
139 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Update.
140 * dbxread.c (process_one_symbol): Update.
141 * dictionary.c (insert_symbol_hashed): Update.
142 (collate_pending_symbols_by_language): Update.
143 (mdict_add_symbol): Update.
144 * dwarf-index-write.c (write_psymbols): Update.
145 * dwarf2read.c (fixup_go_packaging): Update.
146 * findvar.c (read_var_value): Update.
147 * ft32-tdep.c (ft32_skip_prologue): Update.
148 * go-lang.c (go_symbol_package_name): Update.
149 * language.h (scoped_switch_to_sym_language_if_auto::
150 scoped_switch_to_sym_language_if_auto): Update.
151 * linespec.c (find_method): Update.
152 (find_label_symbols_in_block): Update.
153 * mdebugread.c (parse_symbol): Update.
154 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
155 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
156 (minimal_symbol_reader::install): Update.
157 * moxie-tdep.c (moxie_skip_prologue): Update.
158 * parse.c (parse_exp_in_context): Update.
159 * psymtab.c (psymbol_name_matches): Update.
160 (match_partial_symbol): Update.
161 (lookup_partial_symbol): Update.
162 (psymbol_hash): Update.
163 (psymbol_compare): Update.
164 * python/py-framefilter.c (extract_sym): Update.
165 (py_print_single_arg): Update.
166 * stabsread.c (define_symbol): Update.
167 * stack.c (print_frame_arg): Update.
168 (find_frame_funname): Update.
169 (info_frame_command_core): Update.
170 * symfile.c (set_initial_language): Update.
171 * symtab.c (symbol_set_demangled_name): Update.
172 (symbol_get_demangled_name): Update.
173 (symbol_set_language): Update.
174 (symbol_find_demangled_name): Update.
175 (symbol_set_names): Update.
176 (general_symbol_info::natural_name): Update.
177 (general_symbol_info::demangled_name): Update.
178 (general_symbol_info::search_name): Update.
179 (symbol_matches_search_name): Update.
180 (eq_symbol_entry): Update.
181 (iterate_over_symbols): Update.
182 (completion_list_add_symbol): Update.
183 (completion_list_add_msymbol): Update.
184 (completion_list_add_fields): Update.
185 * symtab.h (struct general_symbol_info) <language>: New function.
186 <language>: Rename to...
187 <m_language>: ...this.
188 (SYMBOL_LANGUAGE): Remove.
189 (MSYMBOL_LANGUAGE): Remove.
190 (struct symbol) <ctor>: Update.
191 * xstormy16-tdep.c (xstormy16_skip_prologue): Update.
192
747cfc8c
CB
1932019-12-15 Christian Biesinger <cbiesinger@google.com>
194
195 * ada-exp.y (write_ambiguous_var): Call symbol_set_language to
196 set the language of sym.
197 * language.c (language_alloc_type_symbol): Likewise.
198
ff8577f6
SDJ
1992019-12-14 Sergio Durigan Junior <sergiodj@redhat.com>
200
201 https://bugzilla.redhat.com/show_bug.cgi?id=1728147
202 PR gdb/23613
203 * bsd-kvm.c (bsd_kvm_target_open): Use 'gdb_abspath'.
204 * corelow.c: Include 'gdbsupport/pathstuff.h'.
205 (core_target_open): Use 'gdb_abspath'.
206 * gdbsupport/pathstuff.c (gdb_abspath): Guard against
207 'current_directory == NULL' case.
208 * gdbsupport/pathstuff.h (gdb_abspath): Expand comment and
209 explain what happens when 'current_directory' is NULL.
210 * go32-nat.c (go32_nat_target::wait): Check if
211 'current_directory' is NULL before call to 'chdir'.
212 * source.c (add_path): Use 'gdb_abspath'.
213 * top.c: Include 'gdbsupport/pathstuff.h'.
214 (init_history): Use 'gdb_abspath'.
215 (set_history_filename): Likewise.
216 * tracefile-tfile.c: Include 'gdbsupport/pathstuff.h'.
217 (tfile_target_open): Use 'gdb_abspath'.
218
234c3068
TT
2192019-12-13 Tom Tromey <tromey@adacore.com>
220
221 * contrib/ari/gdb_ari.sh: Remove check for multiple calls to
222 warning or error.
223
93537683
TT
2242019-12-13 Tom Tromey <tromey@adacore.com>
225
226 * contrib/ari/gdb_ari.sh: Remove call to "fix" for "long long".
227
63456183
TT
2282019-12-13 Tom Tromey <tromey@adacore.com>
229
230 * contrib/ari/gdb_ari.sh: Handle -Wno- prefix.
231
98f9338a
TT
2322019-12-13 Tom Tromey <tromey@adacore.com>
233
234 * contrib/ari/gdb_ari.sh (usage): Use GNU style.
235
3cb5a3a1
TT
2362019-12-13 Tom Tromey <tromey@adacore.com>
237
238 * gdbsupport/common-utils.c (string_printf, string_vprintf)
239 (string_vappendf): Add ARI comment.
240
c6cbf900
TT
2412019-12-13 Tom Tromey <tromey@adacore.com>
242
243 * contrib/ari/gdb_ari.sh: Remove "fix" call for
244 floatformat_to_double.
245 * target-float.c (host_float_ops<T>::from_target): Add ARI
246 comment.
247
036003a6
TT
2482019-12-13 Tom Tromey <tromey@adacore.com>
249
250 * contrib/ari/gdb_ari.sh: Remove "fix" call for abort.
251 * utils.c (abort_with_message, dump_core, internal_vproblem): Add
252 ARI marker to abort.
253 * event-top.c (handle_sigsegv): Add ARI marker to abort.
254
8aaaf757
TT
2552019-12-13 Tom Tromey <tromey@adacore.com>
256
257 * contrib/ari/gdb_ari.sh: Fix floatformat_from_double text.
258
fe56157f
TT
2592019-12-13 Tom Tromey <tromey@adacore.com>
260
261 * contrib/ari/gdb_ari.sh: Remove ATTRIBUTE_UNUSED check.
262
a15a95ed
TT
2632019-12-13 Tom Tromey <tromey@adacore.com>
264
265 * contrib/ari/gdb_ari.sh: Remove "boolean" and "var_boolean"
266 checks.
267
a5513db2
TT
2682019-12-13 Tom Tromey <tromey@adacore.com>
269
270 * gdbsupport/safe-iterator.h (class basic_safe_range) <begin,
271 end>: No longer "const".
272
3a90f266
SM
2732019-12-13 Simon Marchi <simon.marchi@polymtl.ca>
274
275 * jit.c: Fix indentation, replace spaces with tabs where
276 applicable.
277
b3f4b80f
JL
2782019-12-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
279
280 * configure.tgt: Match msp430-*-elf* targets when configuring GDB.
281
e671856c
TT
2822019-12-12 Tom Tromey <tom@tromey.com>
283
284 * objfiles.h (struct objfile) <partial_symtabs>: Now a
285 unique_ptr.
286
7d7167ce
TT
2872019-12-12 Tom Tromey <tom@tromey.com>
288
289 * progspace.h (objfile_list): New typedef.
290 (class unwrapping_objfile_iterator)
291 (struct unwrapping_objfile_range): Newl
292 (struct program_space) <objfiles_range>: Change type.
293 <objfiles>: Change return type.
294 <add_objfile>: Change type of "objfile" parameter.
295 <objfiles_list>: Now a list of shared_ptr.
296 * progspace.c (program_space::add_objfile): Change type of
297 "objfile". Update.
298 (program_space::remove_objfile): Update.
299 * objfiles.h (struct objfile) <~objfile>: Make public.
300 * objfiles.c (objfile::make): Update.
301 (objfile::unlink): Don't call delete.
302
343cc952
TT
3032019-12-12 Tom Tromey <tom@tromey.com>
304
305 * symfile.c (symbol_file_clear): Update.
306 * progspace.h (struct program_space) <free_all_objfiles>: Declare
307 method.
308 * progspace.c (program_space::free_all_objfiles): New method.
309 * objfiles.h (free_all_objfiles): Don't declare.
310 * objfiles.c (free_all_objfiles): Move to program_space.
311
d0801dd8
TT
3122019-12-12 Tom Tromey <tom@tromey.com>
313
314 * progspace.c (program_space::add_objfile)
315 (program_space::remove_objfile): Update.
316 (program_space::multi_objfile_p): Remove.
317 * objfiles.h (struct objfile) <next>: Remove.
318 * objfiles.c (objfile::objfile): Update.
319 (put_objfile_before): Update.
320 (unlink_objfile): Update.
321 * progspace.h (object_files): Remove.
322 (struct program_space) <objfiles_head>: Remove.
323 <objfiles_list>: New member.
324 <objfiles_range, objfiles_safe_range>: Change type.
325 (objfiles): Change return type.
326 (objfiles_safe): Update.
327 (multi_objfile_p): Rewrite and inline.
328 (object_files): Remove macro.
329
13bff726
TT
3302019-12-12 Tom Tromey <tom@tromey.com>
331
332 * gdbsupport/safe-iterator.h (basic_safe_iterator): Simplify. Add
333 second constructor.
334 (basic_safe_range): New class.
335
deeafabb
TT
3362019-12-12 Tom Tromey <tom@tromey.com>
337
338 * progspace.c (program_space::multi_objfile_p): New method.
339 * printcmd.c (info_symbol_command): Update.
340 * maint.c (maintenance_translate_address): Update.
341 * objfiles.h (MULTI_OBJFILE_P): Remove.
342 * progspace.h (struct program_space) <multi_objfile_p>: New
343 method.
344
23452926
TT
3452019-12-12 Tom Tromey <tom@tromey.com>
346
347 * progspace.h (struct program_space) <remove_objfile>: Declare.
348 * progspace.c (program_space::remove_objfile): New method.
349 * objfiles.c (unlink_objfile): Remove.
350 (objfile::unlink): Call remove_objfile.
351 (objfile): Don't call unlink_objfile.
352
7cac64af
TT
3532019-12-12 Tom Tromey <tom@tromey.com>
354
355 * progspace.h (struct program_space) <add_objfile>: Declare
356 method.
357 * progspace.c (program_space::add_objfile): New method.
358 * objfiles.c (~objfile): Don't unlink objfile.
359 (put_objfile_before): Remove.
360 (add_separate_debug_objfile): Don't call put_objfile_before.
361 (objfile::make): Call add_objfile. Set new_objfiles_available on
362 the per-program-space data.
363
268e4f09
TT
3642019-12-12 Tom Tromey <tom@tromey.com>
365
366 * symfile.c (syms_from_objfile_1): Use objfile_up.
367 (syms_from_objfile_1, remove_symbol_file_command): Call unlink
368 method.
369 (reread_symbols): Use objfile_up.
370 * solib.c (update_solib_list, reload_shared_libraries_1): Call
371 unlink method.
372 * objfiles.h (struct objfile) <~objfile>: Now private.
373 <unlink>: New method.
374 (struct objfile_deleter): New.
375 (objfile_up): New typedef.
376 * objfiles.c (objfile::unlink): New method.
377 (free_objfile_separate_debug, free_all_objfiles)
378 (objfile_purge_solibs): Use it.
379 * jit.c (jit_unregister_code): Remove.
380 (jit_inferior_exit_hook, jit_event_handler): Call unlink on
381 objfile.
382 * compile/compile-object-run.c (do_module_cleanup): Call unlink on
383 objfile.
384 * compile/compile-object-load.c (compile_object_load): Use
385 objfile_up.
386
f65fe570
TT
3872019-12-12 Tom Tromey <tom@tromey.com>
388
389 * symfile.c (symbol_file_add_with_addrs): Pass "parent" to
390 objfile::make.
391 * objfiles.h (struct objjfile) <make>: No longer inline.
392 (add_separate_debug_objfile): Don't declare.
393 * objfiles.c (add_separate_debug_objfile): Now static.
394 (objfile::make): Move from objfiles.h. Call
395 add_separate_debug_objfile. Add "parent" parameter.
396
bda13cdc
TT
3972019-12-12 Tom Tromey <tom@tromey.com>
398
399 * symfile.c (symbol_file_add_with_addrs): Use objfile::make.
400 * objfiles.h (struct objfile): Make constructor private.
401 <make>: New static method.
402 * jit.c (jit_object_close_impl): Update.
403
7190276c
SM
4042019-12-12 Simon Marchi <simon.marchi@polymtl.ca>
405
406 * jit.c (jit_reader_try_read_symtab): Replace xmalloc/xfree with
407 gdb::byte_vector.
408
d61df897
TT
4092019-12-12 Tom Tromey <tromey@adacore.com>
410
411 * xml-support.c (xml_fetch_content_from_file): Don't call
412 malloc_failure.
413 * utils.h (class gdb_argv): Remove malloc_failure comment.
414 * utils.c (gdb_argv::reset): Don't call malloc_failure.
415
db3ad2f0
TT
4162019-12-12 Tom Tromey <tromey@adacore.com>
417
418 * Makefile.in (ALL_TARGET_OBS): Add riscv-ravenscar-thread.o.
419 (HFILES_NO_SRCDIR): Add riscv-ravenscar-thread.h.
420 (ALLDEPFILES): Add riscv-ravenscar-thread.c.
421 * configure.tgt (riscv-*-*): Add riscv-ravenscar-thread.o.
422 * riscv-ravenscar-thread.c: New file.
423 * riscv-ravenscar-thread.h: New file.
424 * riscv-tdep.c (riscv_gdbarch_init): Call
425 register_riscv_ravenscar_ops.
426
2ffe5b9c
TT
4272019-12-12 Tom Tromey <tromey@adacore.com>
428
429 * gdbsupport/thread-pool.c (set_thread_name): Use
430 ATTRIBUTE_UNUSED.
431
39f34d7b
LM
4322019-12-12 Luis Machado <luis.machado@linaro.org>
433
434 * gdbsupport/safe-strerror.c: Don't include diagnostics.h.
435 (select_strerror_r): Use ATTRIBUTE_UNUSED instead of the diagnostics
436 macros.
437
d4eeccfe
TT
4382019-12-11 Tom Tromey <tom@tromey.com>
439
440 * tui/tui-win.c (tui_set_win_height_command): Call
441 tui_adjust_window_height.
442 (tui_adjust_win_heights, new_height_ok): Remove.
443 * tui/tui-layout.h (tui_adjust_window_height): Declare.
444 * tui/tui-layout.c (tui_adjust_window_height): New function.
445
3d979945
TT
4462019-12-11 Tom Tromey <tom@tromey.com>
447
448 * tui/tui-win.c (tui_resize_all): Remove code, call
449 tui_apply_current_layout.
450
2192a9d3
TT
4512019-12-11 Tom Tromey <tom@tromey.com>
452
453 * tui/tui-layout.h (tui_apply_current_layout): Declare.
454 * tui/tui-layout.c (standard_layouts, applied_layout): New
455 globals.
456 (tui_apply_current_layout): New function.
457 (show_layout): Set applied_layout. Call
458 tui_apply_current_layout.
459 (show_source_command, show_disasm_command)
460 (show_source_disasm_command, show_data)
461 (show_source_or_disasm_and_command): Remove.
462 (initialize_layouts): New function.
463 (_initialize_tui_layout): Call initialize_layouts.
464
389e7ddb
TT
4652019-12-11 Tom Tromey <tom@tromey.com>
466
467 * tui/tui-layout.h (class tui_layout_base)
468 (class tui_layout_window, class tui_layout_split): New.
469 * tui/tui-layout.c (tui_get_window_by_name)
470 (tui_layout_window::clone, tui_layout_window::apply)
471 (tui_layout_window::get_sizes, tui_layout_window::add_split)
472 (tui_layout_split::add_window, tui_layout_split::clone)
473 (tui_layout_split::get_sizes)
474 (tui_layout_split::set_weights_from_heights)
475 (tui_layout_split::adjust_size, tui_layout_split::apply): New
476 functions.
477 (tui_layout_split::add_split, tui_layout_split::add_split)
478 (tui_layout_split::set_weights_from_heights)
479 (tui_layout_split::set_weights_from_heights): New functions.
480
fb3184d8
TT
4812019-12-11 Tom Tromey <tom@tromey.com>
482
483 * tui/tui-wingeneral.c (tui_gen_win_info::make_window): Update.
484 * tui/tui-win.c (tui_adjust_win_heights, tui_resize_all): Update.
485 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
486 * tui/tui-data.h (struct tui_point): Remove.
487 (struct tui_gen_win_info) <origin>: Remove.
488 <x, y>: New fields.
489 * tui/tui-command.c (tui_cmd_window::resize): Update.
490
dc7ff8a6
TT
4912019-12-11 Tom Tromey <tom@tromey.com>
492
493 * tui/tui-stack.h (struct tui_locator_window) <min_height>:
494 Implement.
495 * tui/tui-regs.h (struct tui_data_item_window) <min_height>:
496 Implement.
497 * tui/tui-data.h (struct tui_gen_win_info) <min_height>: New
498 method.
499 (struct tui_win_info) <min_height>: Implement.
500
1431937b
TT
5012019-12-11 Tom Tromey <tom@tromey.com>
502
503 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
504 (struct tui_win_info) <can_box>: Update.
505
c8ec2f43
TT
5062019-12-11 Tom Tromey <tom@tromey.com>
507
508 * tui/tui-stack.h (struct tui_locator_window) <max_height>: New
509 method.
510 * tui/tui-regs.h (struct tui_data_item_window) <max_height>: New
511 method.
512 * tui/tui-data.h (struct tui_gen_win_info) <max_height>: New
513 method.
514 (struct tui_win_info) <max_height>: Now override.
515
4decd62b
JB
5162019-12-11 Joel Brobecker <brobecker@adacore.com>
517
518 * NEWS: Create a new section for the next release branch.
519 Rename the section of the current branch, now that it has
520 been cut.
521
d746744e
JB
5222019-12-11 Joel Brobecker <brobecker@adacore.com>
523
524 GDB 9 branch created (27f7b2f64062ac9e52afc60509263c2702a9ebd0):
525 * version.in: Bump version to 10.0.50.DATE-git.
526
2e744276
TT
5272019-12-11 Tom Tromey <tromey@adacore.com>
528
529 PR build/25268:
530 * gdbsupport/thread-pool.c (set_thread_name): New function.
531 (thread_pool::set_thread_count): Don't call pthread_setname_np.
532 (thread_pool::thread_function): Call set_thread_name.
533
aac4760f
TT
5342019-12-11 Tom Tromey <tromey@adacore.com>
535
536 * fbsd-tdep.c (fbsd_core_info_proc_status): Cast result of
537 bfd_get_signed_8.
538
d8edc8b7
PW
5392019-12-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
540
541 * NEWS: Document -raw-values option and the related setting commands.
542 * printcmd.c (print_command_parse_format): Do not set opts->raw off,
543 only set it on when /r is given.
544 * valprint.c (value_print_option_defs): New element raw-values.
545 * Makefile.in: Add the new file.
546
cb511130
CB
5472019-12-10 Christian Biesinger <cbiesinger@google.com>
548
549 * gdbsupport/safe-strerror.c: Supress the unused function warning
550 for select_strerror_r.
551
ab7d13f0
CB
5522019-12-10 Christian Biesinger <cbiesinger@google.com>
553
554 * config.in: Regenerate.
555 * configure: Regenerate.
556 * gdbsupport/agent.c (gdb_connect_sync_socket): Call
557 safe_strerror instead of strerror.
558 * gdbsupport/common.m4: Don't check for strerror.
559 * gdbsupport/safe-strerror.c: Support both the glibc version
560 of strerror_r and the XSI version.
561
6c71eb7d
TT
5622019-12-10 Tom Tromey <tromey@adacore.com>
563
564 * ada-typeprint.c (print_choices): Use a single "?".
565 (print_variant_part): Print "?" if the discriminant name
566 is not known.
567
bac7c5cf
GB
5682019-12-10 George Barrett <bob@bob131.so>
569
570 Fix scripted probe breakpoints.
571 * breakpoint.c (tracepoint_probe_breakpoint_ops): Move
572 declaration forward.
573 (breakpoint_ops_for_event_location_type)
574 (breakpoint_ops_for_event_location): Add function definitions.
575 (break_command_1, trace_command): Use
576 breakpoint_ops_for_event_location.
577 * breakpoint.h (breakpoint_ops_for_event_location): Add function
578 declarations.
579 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Use
580 breakpoint_ops_for_event_location.
581 * python/py-breakpoint.c (bppy_init): Use
582 breakpoint_ops_for_event_location.
583
330f1d38
TBA
5842019-12-09 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
585
586 * gdbtypes.c (rank_one_type): Return INCOMPATIBLE_TYPE_BADNESS
587 when ranking an lvalue argument for an rvalue parameter.
588
b1f0c0b9
WA
5892019-12-08 Wataru Ashihara <wataash@wataash.com>
590
591 * darwin-nat.c (darwin_nat_target::create_inferior): Fix
592 template argument for scoped_restore_tmpl from bool to int.
593
aa2d5a42
KS
5942019-12-07 Keith Seitz <keiths@redhat.com>
595
596 * build-id.c (build_id_bfd_get): Permit bfd_core, too.
597 (build_id_to_debug_bfd): Make static, rewriting to use
598 build_id_to_bfd_suffix.
599 (build_id_to_bfd_suffix): Copy of build_id_to_debug_bfd,
600 adding `suffix' parameter. Append SUFFIX to file names
601 when searching for matching files.
602 (build_id_to_debug_bfd): Use build_id_to_bfd_suffix.
603 (build_id_to_exec_bfd): Likewise.
604 * build-id.h (build_id_to_debug_bfd): Clarify that function
605 searches for BFD of debug info file.
606 (build_id_to_exec_bfd): Declare.
607 * corelow.c: Include build-id.h.
608 (locate_exec_from_corefile_build_id): New function.
609 (core_target_open): If no executable BFD is found,
610 search for a core file BFD using build-id.
611
dfb65191
CB
6122019-12-06 Christian Biesinger <cbiesinger@google.com>
613
614 * bcache.c: Put in namespace gdb.
615 * bcache.h: Likewise.
616 * gdbtypes.c (check_types_worklist): Update.
617 (types_deeply_equal): Update.
618 * macrotab.c (struct macro_table) <bcache>: Update.
619 (new_macro_table): Update.
620 * macrotab.h (struct bcache): Put this forward declaration
621 inside namespace gdb.
622 (new_macro_table): Update.
623 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache>:
624 Update.
625 <macro_cache>: Update.
626 * psymtab.h: (psymtab_storage) <psymbol_cache>: Update.
627
93e55f0a
TV
6282019-12-06 Tom de Vries <tdevries@suse.de>
629
630 PR symtab/24971
631 * block.c (best_symbol, better_symbol): New function.
632 (block_lookup_symbol_primary, block_lookup_symbol): Prefer def over
633 decl.
634
06acc08f
TBA
6352019-12-06 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
636
637 * gdbtypes.h: Define the REFERENCE_SEE_THROUGH_BADNESS value.
638 * gdbtypes.c (rank_one_type): Use REFERENCE_SEE_THROUGH_BADNESS
639 for ranking see-through reference cases.
640
e0fad1ea
PW
6412019-12-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
642 * stack.c (faas_command): Check a command is provided.
643 * thread.c (taas_command, tfaas_command): Likewise.
644
908641f5
PW
6452019-12-05 Philippe Waroquiers <philippe.waroquiers@skynet.be>
646 * inferior.c (prune_inferiors): Only call delete_inferior,
647 Do not modify the inferior list.
648
b858499d
SM
6492019-12-05 Simon Marchi <simon.marchi@polymtl.ca>
650
651 * c-exp.y: Update calls to lookup_typename,
652 lookup_signed_typename and lookup_unsigned_typename.
653 * c-lang.c (evaluate_subexp_c): Likewise.
654 * cp-namespace.c (cp_lookup_symbol_imports_or_template):
655 Likewise.
656 * eval.c (binop_promote): Likewise.
657 * gdbtypes.c (lookup_typename): Remove gdbarch parameter.
658 (lookup_unsigned_typename): Likewise.
659 (lookup_signed_typename): Likewise.
660 * gdbtypes.h (lookup_unsigned_typename): Likewise.
661 (lookup_signed_typename): Likewise.
662 (lookup_typename): Likewise.
663 * guile/scm-type.c (tyscm_lookup_typename): Update calls to
664 lookup_typename, lookup_signed_typename,
665 lookup_unsigned_typename.
666 * m2-exp.y: Likewise.
667 * printcmd.c (printf_wide_c_string): Likewise.
668 (ui_printf): Likewise.
669 * python/py-type.c (typy_lookup_typename): Likewise.
670 * python/py-xmethods.c (python_xmethod_worker::invoke):
671 Likewise.
672 * rust-exp.y: Likewise.
673
3a8fa228
CB
6742019-12-04 Christian Biesinger <cbiesinger@google.com>
675
676 * configure.nat (obsd64): Add missing files x86-nat.o and
677 nat/x86-dregs.o.
678
2dbc041e
TT
6792019-12-04 Tom Tromey <tom@tromey.com>
680
681 * valprint.c (val_print_string): Use metadata_style.
682 * go-valprint.c (print_go_string): Use metadata style.
683 * p-valprint.c (pascal_object_print_static_field): Use metadata
684 style.
685 * cp-valprint.c (cp_print_static_field): Use metadata style.
686
36c8fb93
AB
6872019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
688 Chris January <chris.january@arm.com>
689
690 * f-exp.y (COMPLEX_KEYWORD, SINGLE, DOUBLE, PRECISION): New
691 tokens.
692 (typebase): New patterns for complex, single/double precision, and
693 single/double complex.
694 (f77_keywords): Change token for complex keyword, and add single,
695 double, and precision keywords.
696
c6170c2c
SM
6972019-12-04 Simon Marchi <simon.marchi@polymtl.ca>
698
699 * avr-tdep.c (_initialize_avr_tdep): Improve help of command
700 "info io_registers".
701
894ecaf4
SM
7022019-12-04 Simon Marchi <simon.marchi@polymtl.ca>
703
704 * regcache.c (cooked_read_test): Initialize thread list of
705 mock_inferior.
706
be155ebb
SM
7072019-12-04 Simon Marchi <simon.marchi@polymtl.ca>
708
709 * aarch64-linux-tdep.c: Remove includes.
710
c577cdd7
SM
7112019-12-04 Simon Marchi <simon.marchi@polymtl.ca>
712
713 * aarch64-tdep.c: Remove includes.
714
610cfd61
SM
7152019-12-04 Simon Marchi <simon.marchi@efficios.com>
716
717 * filtered-iterator.h (filtered_iterator) <operator==,
718 operator!=>: Compare wrapped iterators, not wrapped pointers.
719 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
720 unittests/filtered_iterator-selftests.c.
721 * unittests/filtered_iterator-selftests.c: New file.
722
a05cf17a
TT
7232019-12-04 Tom Tromey <tromey@adacore.com>
724
725 * gdbtypes.c (create_range_type): Inherit endianity
726 from base type.
727
d5a22e77
TT
7282019-12-04 Tom Tromey <tromey@adacore.com>
729
730 * ada-lang.c (decode_constrained_packed_array)
731 (ada_value_assign, value_assign_to_component): Update.
732 * dwarf2loc.c (rw_pieced_value, access_memory)
733 (dwarf2_compile_expr_to_ax): Update.
734 * dwarf2read.c (dwarf2_add_field): Update.
735 * eval.c (evaluate_subexp_standard): Update.
736 * gdbarch.c, gdbarch.h: Rebuild.
737 * gdbarch.sh (bits_big_endian): Remove.
738 * gdbtypes.h (union field_location): Update comment.
739 * target-descriptions.c (make_gdb_type): Update.
740 * valarith.c (value_bit_index): Update.
741 * value.c (struct value) <bitpos>: Update comment.
742 (unpack_bits_as_long, modify_field): Update.
743 * value.h (value_bitpos): Update comment.
744
7ab4a236
TT
7452019-12-04 Tom Tromey <tromey@adacore.com>
746
747 * gdbtypes.c (type_byte_order): Move earlier. Assert for unknown
748 endian-ness.
749
103a685e
TT
7502019-12-04 Tom Tromey <tromey@adacore.com>
751
752 * dwarf2read.c (dwarf2_init_float_type)
753 (dwarf2_init_complex_target_type): Add byte_order parameter.
754 (read_base_type): Compute byte order earlier.
755 * gdbtypes.c (init_float_type): Add byte_order parameter.
756 * gdbtypes.h (init_float_type): Add byte_order parameter.
757
7a9e9f9f
TT
7582019-12-04 Tom Tromey <tromey@adacore.com>
759
760 * unittests/tui-selftests.c: Conditionally include tui-winsource.h.
761
feee869b
TT
7622019-12-04 Tom Tromey <tromey@adacore.com>
763
764 * dwarf2read.c (process_structure_scope): Initialize
765 "discr_offset".
766
c2512106
AB
7672019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
768
769 * mi/mi-symbol-cmds.c (mi_symbol_info): Take extra parameter, and
770 add it into the search spec.
771 (parse_max_results_option): New function.
772 (mi_info_functions_or_variables): Parse -max-results flag and pass
773 it to mi_symbol_info.
774 (mi_cmd_symbol_info_modules): Likewise.
775 (mi_cmd_symbol_info_types): Likewise.
776 * symtab.c (global_symbol_searcher::add_matching_symbols): Change
777 return type to bool, change result container into a set, and don't
778 add new results if we have enough already.
779 (global_symbol_searcher::add_matching_msymbols): Change return
780 type to bool, and don't add new results if we have enough already.
781 (sort_search_symbols_remove_dups): Delete.
782 (global_symbol_searcher::search): Early exit from search loop when
783 we have enough results. Use a std::set to collect the results
784 from calling add_matching_symbols.
785 * symtab.h (global_symbol_searcher) <set_max_seach_results>: New
786 member function.
787 (global_symbol_searcher) <m_max_search_results>: New member
788 variable.
789 (global_symbol_searcher) <add_matching_symbols>: Update header
790 comment and change return type to bool.
791 (global_symbol_searcher) <add_matching_msymbols>: Update header
792 comment and change return type to bool.
793
f97a63c5
AB
7942019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
795
796 * symtab.c (symbol_search::compare_search_syms): Update header
797 comment.
798 (global_symbol_searcher::is_suitable_msymbol): New function.
799 (global_symbol_searcher::expand_symtabs): New function.
800 (global_symbol_searcher::add_matching_symbols): New function.
801 (global_symbol_searcher::add_matching_msymbols): New function.
802 (global_symbol_searcher::search): Move most of the content
803 into the new functions above, and call them as needed.
804 * symtab.h (global_symbol_searcher) <expand_symtabs>: New member
805 function.
806 (global_symbol_searcher) <add_matching_symbols>: New member
807 function.
808 (global_symbol_searcher) <add_matching_msymbols>: New member
809 function.
810 (global_symbol_searcher) <is_suitable_msymbol>: New member
811 function.
812
293b38d6
AB
8132019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
814
815 * mi/mi-cmds.c (mi_cmds): Add -symbol-info-module-functions and
816 -symbol-info-module-variables entries.
817 * mi/mi-cmds.h (mi_cmd_symbol_info_module_functions): Declare.
818 (mi_cmd_symbol_info_module_variables): Declare.
819 * mi/mi-symbol-cmds.c
820 (module_symbol_search_iterator): New typedef.
821 (output_module_symbols_in_single_module_and_file): New function.
822 (output_module_symbols_in_single_module): New function.
823 (mi_info_module_functions_or_variables): New function.
824 (mi_cmd_symbol_info_module_functions): New function.
825 (mi_cmd_symbol_info_module_variables): New function.
826 * NEWS: Mention new MI command.
827
4cbd39b2
CB
8282019-12-03 Christian Biesinger <cbiesinger@google.com>
829
830 * bcache.c (hash): Remove.
831 (hash_continue): Remove.
832 * bcache.h (hash): Remove.
833 (hash_continue): Remove.
834 (struct bcache) <ctor>: Update.
835 * psymtab.c (psymbol_hash): Update.
836 * stabsread.c (hashname): Update.
837 * utils.h (fast_hash): Add an argument for a start value,
838 defaulting to zero.
839
82f910ea
PW
8402019-12-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
841 * symtab.c (symbol_cache_clear_slot): Move close to cleared type.
842 (destroy_block_symbol_cache): New function.
843 (symbol_cache:~symbol_cache) Call destroy_block_symbol_cache.
844 (resize_symbol_cache): Likewise.
845
de2396d0
TT
8462019-12-02 Tom Tromey <tom@tromey.com>
847
848 * unittests/tui-selftests.c (run_tests): Make conditional.
849 (_initialize_tui_selftest): Make conditional.
850
638d85bc
CB
8512019-12-02 Christian Biesinger <cbiesinger@google.com>
852
853 * aix-thread.c (debug_aix_thread): Change type to bool.
854
7532a164
LM
8552019-12-02 Luis Machado <luis.machado@linaro.org>
856
857 * infrun.c (follow_fork_inferior): Remove outdated FIXME comment.
858
216a7e6b
AB
8592019-12-01 Andrew Burgess <andrew.burgess@embecosm.com>
860
861 * dwarf2read.c (read_tag_string_type): Read the fields required to
862 make a dynamic string, and possibly create a dynamic range for the
863 string.
864 (attr_to_dynamic_prop): Setup is_reference based on the type of
865 attribute being processed.
866 * gdbtypes.c (is_dynamic_type_internal): Handle TYPE_CODE_STRING.
867 (resolve_dynamic_array): Rename to...
868 (resolve_dynamic_array_or_string): ...this, update header comment,
869 and accept TYPE_CODE_STRING.
870 (resolve_dynamic_type_internal): Handle TYPE_CODE_STRING.
871
11a8b164
AB
8722019-12-01 Andrew Burgess <andrew.burgess@embecosm.com>
873
874 * dwarf2read.c (dwarf2_per_cu_int_type): New function, takes most
875 of its implementation from...
876 (dwarf2_per_cu_addr_sized_int_type): ...here, which now just calls
877 the new function.
878
5bbd8269
AB
8792019-12-01 Andrew Burgess <andrew.burgess@embecosm.com>
880
881 * dwarf2read.c (read_subrange_type): Read bit and byte stride and
882 create a range with stride where appropriate.
883 * f-valprint.c: Include 'gdbarch.h'.
884 (f77_print_array_1): Take the stride into account when walking the
885 array. Also convert the stride into addressable units.
886 * gdbtypes.c (create_range_type): Initialise the stride to
887 constant zero.
888 (create_range_type_with_stride): New function, initialise the
889 range as normal, and then setup the stride.
890 (has_static_range): Include the stride here. Also change the
891 return type to bool.
892 (create_array_type_with_stride): Consider the range stride if the
893 array isn't given its own stride.
894 (resolve_dynamic_range): Resolve the stride if needed.
895 * gdbtypes.h (struct range_bounds) <stride>: New member variable.
896 (struct range_bounds) <flag_is_byte_stride>: New member variable.
897 (TYPE_BIT_STRIDE): Define.
898 (TYPE_ARRAY_BIT_STRIDE): Define.
899 (create_range_type_with_stride): Declare.
900 * valarith.c (value_subscripted_rvalue): Take range stride into
901 account when walking the array.
902
82e3b564
TT
9032019-12-01 Tom Tromey <tom@tromey.com>
904
905 * tui/tui-win.c (tui_all_windows_info): Treat inactive TUI
906 specially.
907
517d261d
TT
9082019-12-01 Tom Tromey <tom@tromey.com>
909
910 * tui/tui-winsource.c (tui_copy_source_line): Don't advance past
911 \0.
912 * unittests/tui-selftests.c: New file.
913 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add tui-selftests.c.
914
484c9b64
TT
9152019-12-01 Tom Tromey <tom@tromey.com>
916
917 * tui/tui.c (tui_enable): Call tui_update_variables earlier.
918
a2a7af0c
TT
9192019-12-01 Tom Tromey <tom@tromey.com>
920
921 * NEWS: Document new settings.
922 * tui/tui-wingeneral.c (box_win): Apply appropriate border style.
923 * tui/tui-win.c (_initialize_tui_win): Add border style
924 observers.
925 * tui/tui-io.h (tui_apply_style): Declare.
926 * tui/tui-io.c (tui_apply_style): Rename from apply_style. No
927 longer static.
928 (apply_ansi_escape, tui_set_reverse_mode): Update.
929 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
930 Add "skip_intensity" parameter.
931 <changed>: New member.
932 <do_set_value>: Declare.
933 (tui_border_style, tui_active_border_style): Declare.
934 * cli/cli-style.c (tui_border_style, tui_active_border_style): New
935 globals.
936 (cli_style_option): Initialize "changed".
937 (cli_style_option::do_set_value): New function.
938 (cli_style_option::add_setshow_commands): Add "skip_intensity"
939 parameter. Update.
940 (STYLE_ADD_SETSHOW_COMMANDS): Add "SKIP" parameter.
941 (_initialize_cli_style): Update. Create TUI border style
942 commands.
943
d1da6b01
TT
9442019-12-01 Tom Tromey <tom@tromey.com>
945
946 * tui/tui-winsource.h (tui_copy_source_line): Add "ndigits"
947 parameter.
948 * tui/tui-winsource.c (tui_copy_source_line): Add "ndigits"
949 parameter.
950 * tui/tui-win.h (compact_source): Declare.
951 * tui/tui-win.c (compact_source): New global.
952 (tui_set_compact_source, tui_show_compact_source): New functions.
953 (_initialize_tui_win): Add "compact-source" setting.
954 * tui/tui-source.c (tui_source_window::set_contents): Handle
955 compact_source setting.
956 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
957 * NEWS: Document new setting.
958
489dbda6
TT
9592019-11-30 Tom Tromey <tom@tromey.com>
960
961 * dwarf2read.c (dwarf2_add_field): Include field offset when
962 computing variant part length.
963
bf498525
PW
9642019-11-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
965 * NEWS: Mention define-prefix. Tell that command names can now
966 contain a . character.
967
be09caf1
PW
9682019-11-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
969
970 * command.h (valid_cmd_char_p): Declare.
971 * cli/cli-decode.c (valid_cmd_char_p): New function factorizing
972 the check of valid command char.
973 (find_command_name_length, valid_user_defined_cmd_name_p): Use
974 valid_cmd_char_p.
975 * cli/cli-script.c (validate_comname): Likewise.
976 * completer.c (gdb_completer_command_word_break_characters):
977 Do not remove . from the word break char, update comments.
978 (complete_line_internal_1): Use valid_cmd_char_p.
979 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
980 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
981
c6ac7fc9
PW
9822019-11-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
983
984 * cli/cli-script.c (do_define_command): Ensure a redefined
985 prefix command is kept as a prefix command.
986 (define_prefix_command): New function.
987 (show_user_1): Report user defined prefixes.
988 (_initialize_cli_script): Create the new 'define-prefix' command.
989 Add completers for 'define' and 'document'.
990 * top.c (execute_command): If command is a user-defined prefix only
991 command, report the list of commands for this prefix command.
992
a992a3b0
TBA
9932019-11-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
994
995 * valops.c (find_oload_champ): Improve debug output.
996
e9194a1a
TBA
9972019-11-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
998
999 * valops.c (find_oload_champ): Print part of debug messages
1000 before the badness vector is std::move'd.
1001
53a008a6
TT
10022019-11-28 Tom Tromey <tom@tromey.com>
1003
1004 * value.c (creal_internal_fn): Fix comment.
1005
bab05c83
TT
10062019-11-28 Tom Tromey <tom@tromey.com>
1007
1008 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count,
1009 flag_bound_evaluated>: Now unsigned.
1010
2522f049
TT
10112019-11-28 Tom Tromey <tom@tromey.com>
1012
1013 * guile/guile-internal.h (vlscm_scm_from_value_unsafe): Don't
1014 declare.
1015
38b49e22
MS
10162019-11-28 Mihails Strasuns <mihails.strasuns@intel.com>
1017
1018 * jit.c (jit_bfd_try_read_symtab): Fix printed function name in the
1019 debug output.
1020 * jit.c (jit_unregister_code): Add debug print to match
1021 `jit_register_code`.
1022
35125921
CB
10232019-11-27 Christian Biesinger <cbiesinger@google.com>
1024
1025 * NEWS: Mention the new multithreaded symbol loading.
1026
62e77f56
CB
10272019-11-27 Christian Biesinger <cbiesinger@google.com>
1028
1029 * maint.c (n_worker_threads): Default to 0.
1030 (worker_threads_disabled): New function.
1031 * maint.h (worker_threads_disabled): New function.
1032 * minsyms.c (minimal_symbol_reader::record_full): Call symbol_set_names
1033 here if worker_threads_disabled () is true.
1034 (minimal_symbol_reader::install): Skip all threading if
1035 worker_threads_disabled () is true.
1036
f29d7f6b
CB
10372019-11-27 Christian Biesinger <cbiesinger@google.com>
1038
1039 * minsyms.c (add_minsym_to_hash_table): Use a previously computed
1040 hash code if possible.
1041 (add_minsym_to_demangled_hash_table): Likewise.
1042 (minimal_symbol_reader::install): Compute the hash codes for msymbol
1043 on the background thread.
1044 * symtab.h (struct minimal_symbol) <hash_value, demangled_hash_value>:
1045 Add these fields.
1046
e76b2246
CB
10472019-11-27 Christian Biesinger <cbiesinger@google.com>
1048
1049 * minsyms.c (minimal_symbol_reader::install): Also compute the hash
1050 of the mangled name on the background thread.
1051 * symtab.c (symbol_set_names): Allow passing in the hash of the
1052 linkage_name.
1053 * symtab.h (symbol_set_names): Likewise.
1054
8d9a2568
KB
10552019-11-27 Kevin Buettner <kevinb@redhat.com>
1056
1057 * dwarf2read.c (inherit_abstract_dies): Ensure that delayed
1058 physnames are computed for inherited DIEs.
1059
fad03f6e
TT
10602019-11-27 Tom Tromey <tromey@adacore.com>
1061
1062 * dwarf2read.h (struct dwarf2_per_objfile): Remove unnecessary
1063 backslashes.
1064 * cp-support.c: Remove unnecessary backslashes.
1065
43678b0a
CB
10662019-11-27 Christian Biesinger <cbiesinger@google.com>
1067
1068 * ada-exp.y (write_ambiguous_var): Replace SYMBOL_SET_LINKAGE_NAME
1069 with sym->set_linkage_name.
1070 * coffread.c (coff_read_enum_type): Likewise.
1071 * mdebugread.c (parse_symbol): Likewise.
1072 * stabsread.c (patch_block_stabs): Likewise.
1073 (define_symbol): Likewise.
1074 (read_enum_type): Likewise.
1075 (common_block_end): Likewise.
1076 * symtab.h (struct general_symbol_info) <set_linkage_name>: New
1077 function.
1078 (SYMBOL_SET_LINKAGE_NAME): Remove.
1079 * xcoffread.c (process_xcoff_symbol): Replace SYMBOL_SET_LINKAGE_NAME
1080 with sym->set_linkage_name.
1081
db5960b4
AB
10822019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
1083
1084 * mi/mi-cmds.c (mi_cmds): Add 'symbol-info-modules' entry.
1085 * mi/mi-cmds.h (mi_cmd_symbol_info_modules): Declare.
1086 * mi/mi-symbol-cmds.c (mi_cmd_symbol_info_modules): New function.
1087 * NEWS: Mention new MI command.
1088
7dc42066
AB
10892019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
1090
1091 * mi/mi-cmds.c (mi_cmds): Add '-symbol-info-functions',
1092 '-symbol-info-types', and '-symbol-info-variables'.
1093 * mi/mi-cmds.h (mi_cmd_symbol_info_functions): Declare.
1094 (mi_cmd_symbol_info_types): Declare.
1095 (mi_cmd_symbol_info_variables): Declare.
1096 * mi/mi-symbol-cmds.c: Add 'source.h' and 'mi-getopt.h' includes.
1097 (output_debug_symbol): New function.
1098 (output_nondebug_symbol): New function.
1099 (mi_symbol_info): New function.
1100 (mi_info_functions_or_variables): New function.
1101 (mi_cmd_symbol_info_functions): New function.
1102 (mi_cmd_symbol_info_types): New function.
1103 (mi_cmd_symbol_info_variables): New function.
1104 * NEWS: Mention new commands.
1105
5f512a7d
AB
11062019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
1107
1108 * symtab.c (symbol_to_info_string): New function, most content
1109 moved from print_symbol_info, but updated to return a std::string.
1110 (print_symbol_info): Update to use symbol_to_info_string and print
1111 returned string.
1112 * symtab.h (symbol_to_info_string): Declare new function.
1113
470c0b1c
AB
11142019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
1115
1116 * python/python.c (gdbpy_rbreak): Convert to using
1117 global_symbol_searcher.
1118 * symtab.c (file_matches): Convert return type to bool, change
1119 file list to std::vector, update header comment.
1120 (search_symbols): Rename to...
1121 (global_symbol_searcher::search): ...this and update now its
1122 a member function of global_symbol_searcher. Take account of the
1123 changes to file_matches.
1124 (symtab_symbol_info): Convert to using global_symbol_searcher.
1125 (rbreak_command): Likewise.
1126 (search_module_symbols): Likewise.
1127 * symtab.h (enum symbol_search): Update comment.
1128 (search_symbols): Remove declaration.
1129 (class global_symbol_searcher): New class.
1130
57357d9d
TT
11312019-11-26 Tom Tromey <tromey@adacore.com>
1132
1133 * cp-support.c (_initialize_cp_support): Conditionally initialize
1134 gdb_demangle_attempt_core_dump.
1135
3ea16160
TT
11362019-11-26 Tom Tromey <tom@tromey.com>
1137
1138 * python/py-function.c (fnpy_init): Update.
1139 * value.h (add_internal_function): Adjust declaration.
1140 * value.c (function_destroyer): Remove.
1141 (do_add_internal_function): Don't set destroyer or copy name.
1142 (add_internal_function): Take unique_xmalloc_ptr<char> for name.
1143 Set name_allocated.
1144 * python/py-cmd.c (cmdpy_destroyer): Don't free "name".
1145 (cmdpy_init): Set name_allocated.
1146 * cli/cli-decode.h (struct cmd_list_element) <name_allocated>: New
1147 member.
1148 (~cmd_list_element): Free "name" if needed.
1149
1a6d41c6
TT
11502019-11-26 Tom Tromey <tom@tromey.com>
1151
1152 * value.h (add_internal_function): Add new overload. Move
1153 documentation from value.h.
1154 * value.c (do_add_internal_function): New function.
1155 (add_internal_function): Use it. Add new overload.
1156 (function_destroyer): Don't free doc.
1157 * python/py-function.c (fnpy_init): Update.
1158
8318f3c3
TT
11592019-11-26 Tom Tromey <tom@tromey.com>
1160
1161 * python/py-cmd.c (cmdpy_destroyer): Don't free "doc".
1162 (cmdpy_init): Set "doc_allocated".
1163
4da8c3a8
TT
11642019-11-26 Tom Tromey <tom@tromey.com>
1165
1166 * gdbsupport/thread-pool.c (thread_pool::set_thread_count): Set
1167 name of worker thread.
1168 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for
1169 pthread_setname_np.
1170 * configure, config.in: Rebuild.
1171
971db5e2
TT
11722019-11-26 Tom Tromey <tom@tromey.com>
1173
1174 * python/python.c (class gdbpy_gil): New.
1175 (struct gdbpy_event): Add constructor, destructor, operator().
1176 (gdbpy_post_event): Use run_on_main_thread.
1177 (gdbpy_initialize_events): Remove.
1178 (do_start_initialization): Update.
1179
22138db6
TT
11802019-11-26 Tom Tromey <tom@tromey.com>
1181
1182 * NEWS: Add entry.
1183 * maint.c (_initialize_maint_cmds): Add "worker-threads" maint
1184 commands. Call update_thread_pool_size.
1185 (update_thread_pool_size, maintenance_set_worker_threads): New
1186 functions.
1187 (n_worker_threads): New global.
1188
d55c9a68
TT
11892019-11-26 Christian Biesinger <cbiesinger@google.com>
1190 Tom Tromey <tom@tromey.com>
1191
1192 * minsyms.c (minimal_symbol_reader::install): Use
1193 parallel_for_each.
1194 * gdbsupport/parallel-for.h: New file.
1195 * Makefile.in (HFILES_NO_SRCDIR): Add gdbsupport/parallel-for.h.
1196
a0b57563
CB
11972019-11-26 Christian Biesinger <cbiesinger@google.com>
1198 Tom Tromey <tom@tromey.com>
1199
1200 * gdbsupport/thread-pool.h: New file.
1201 * gdbsupport/thread-pool.c: New file.
1202 * Makefile.in (COMMON_SFILES): Add thread-pool.c.
1203 (HFILES_NO_SRCDIR): Add thread-pool.h.
1204
3b3978bc
TT
12052019-11-26 Tom Tromey <tom@tromey.com>
1206
1207 * event-top.h (thread_local_segv_handler): Declare.
1208 * event-top.c (thread_local_segv_handler): New global.
1209 (install_handle_sigsegv, handle_sigsegv): New functions.
1210 (async_init_signals): Install SIGSEGV handler.
1211 * cp-support.c (gdb_demangle_jmp_buf): Change type. Now
1212 thread-local.
1213 (report_failed_demangle): New function.
1214 (gdb_demangle): Make core_dump_allowed atomic. Remove signal
1215 handler-setting code, instead use segv_handler. Run warning code
1216 on main thread.
1217
9411c49e
TT
12182019-11-26 Tom Tromey <tom@tromey.com>
1219
1220 * run-on-main-thread.c: New file.
1221 * run-on-main-thread.h: New file.
1222 * unittests/main-thread-selftests.c: New file.
1223 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1224 main-thread-selftests.c.
1225 (HFILES_NO_SRCDIR): Add run-on-main-thread.h.
1226 (COMMON_SFILES): Add run-on-main-thread.c.
1227
c3efb965
TT
12282019-11-26 Tom Tromey <tom@tromey.com>
1229
1230 * main.c (setup_alternate_signal_stack): Remove.
1231 (captured_main_1): Use gdb::alternate_signal_stack.
1232 * gdbsupport/alt-stack.h: New file.
1233
21987b9c
TT
12342019-11-26 Tom Tromey <tom@tromey.com>
1235
1236 * gdbsupport/signals-state-save-restore.c (original_signal_mask):
1237 Remove comment.
1238 (save_original_signals_state, restore_original_signals_state): Use
1239 gdb_sigmask.
1240 * linux-nat.c (block_child_signals, restore_child_signals_mask)
1241 (_initialize_linux_nat): Use gdb_sigmask.
1242 * guile/guile.c (_initialize_guile): Use block_signals.
1243 * Makefile.in (HFILES_NO_SRCDIR): Add gdb-sigmask.h.
1244 * gdbsupport/gdb-sigmask.h: New file.
1245 * event-top.c (async_sigtstp_handler): Use gdb_sigmask.
1246 * cp-support.c (gdb_demangle): Use gdb_sigmask.
1247 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for
1248 pthread_sigmask.
1249 * configure, config.in: Rebuild.
1250 * gdbsupport/block-signals.h: New file.
1251
5e030278
TT
12522019-11-26 Tom Tromey <tom@tromey.com>
1253
1254 * acinclude.m4: Include ax_pthread.m4.
1255 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
1256 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
1257 (CLIBS): Use PTHREAD_LIBS.
1258 (aclocal_m4_deps): Add ax_pthread.m4.
1259 * config.in, configure: Rebuild.
1260 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for std::thread.
1261
5a79c107
TT
12622019-11-26 Tom Tromey <tom@tromey.com>
1263
1264 * symtab.h (struct minimal_symbol) <name_set>: New member.
1265 * minsyms.c (minimal_symbol_reader::record_full): Copy name.
1266 Don't call symbol_set_names.
1267 (minimal_symbol_reader::install): Call symbol_set_names.
1268
aa369509
PW
12692019-11-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1270
1271 * python/python.c (gdbpy_enter::~gdbpy_enter): Release GIL after
1272 restore_active_ext_lang, as GIL is needed for (indirectly)
1273 called PyOS_InterruptOccurred.
1274
cadc9cb8
SM
12752019-11-26 Simon Marchi <simon.marchi@efficios.com>
1276
1277 * sparc-nat.c (sparc_xfer_wcookie): Sync declaration with
1278 definition.
1279
d04afd58
SM
12802019-11-26 Simon Marchi <simon.marchi@efficios.com>
1281
1282 * remote-sim.c (simulator_command): Make static, remove
1283 declaration.
1284
dd694d77
SM
12852019-11-26 Simon Marchi <simon.marchi@efficios.com>
1286
1287 * unittests/array-view-selftests.c (check_ptr_size_ctor2): Make
1288 static.
1289 * unittests/basic_string_view/capacity/1.cc (test01): Likewise.
1290 * unittests/basic_string_view/cons/char/1.cc (test01): Likewise.
1291 (main): Likewise.
1292 * unittests/basic_string_view/cons/char/2.cc (test03): Likewise.
1293 (main): Likewise.
1294 * unittests/basic_string_view/cons/char/3.cc (test05): Likewise.
1295 (main): Likewise.
1296 * unittests/basic_string_view/element_access/char/1.cc (test01):
1297 Likewise.
1298 (main): Likewise.
1299 * unittests/basic_string_view/element_access/char/empty.cc (main):
1300 Likewise.
1301 * unittests/basic_string_view/element_access/char/front_back.cc
1302 (test01): Likewise.
1303 (main): Likewise.
1304 * unittests/basic_string_view/inserters/char/2.cc (test05):
1305 Likewise.
1306 (main): Likewise.
1307 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc
1308 (test01): Likewise.
1309 (main): Likewise.
1310 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc
1311 (test01): Likewise.
1312 (main): Likewise.
1313 * unittests/basic_string_view/modifiers/swap/char/1.cc (test01):
1314 Likewise.
1315 * unittests/basic_string_view/operations/compare/char/1.cc
1316 (test01): Likewise.
1317 (main): Likewise.
1318 * unittests/basic_string_view/operations/compare/char/13650.cc
1319 (test01): Likewise.
1320 * unittests/basic_string_view/operations/copy/char/1.cc (test01):
1321 Likewise.
1322 (main): Likewise.
1323 * unittests/basic_string_view/operations/data/char/1.cc (test01):
1324 Likewise.
1325 (main): Likewise.
1326 * unittests/basic_string_view/operations/find/char/1.cc (test01):
1327 Likewise.
1328 (main): Likewise.
1329 * unittests/basic_string_view/operations/find/char/2.cc (test02):
1330 Likewise.
1331 (main): Likewise.
1332 * unittests/basic_string_view/operations/find/char/3.cc (test03):
1333 Likewise.
1334 (main): Likewise.
1335 * unittests/basic_string_view/operations/find/char/4.cc (main):
1336 Likewise.
1337 * unittests/basic_string_view/operations/rfind/char/1.cc (test01):
1338 Likewise.
1339 (main): Likewise.
1340 * unittests/basic_string_view/operations/rfind/char/2.cc (test02):
1341 Likewise.
1342 (main): Likewise.
1343 * unittests/basic_string_view/operations/rfind/char/3.cc (test03):
1344 Likewise.
1345 (main): Likewise.
1346 * unittests/basic_string_view/operations/substr/char/1.cc
1347 (test01): Likewise.
1348 (main): Likewise.
1349 * unittests/basic_string_view/operators/char/2.cc (main):
1350 Likewise.
1351 * unittests/optional/assignment/1.cc (test): Likewise.
1352 * unittests/optional/assignment/2.cc (test): Likewise.
1353 * unittests/optional/assignment/3.cc (test): Likewise.
1354 * unittests/optional/assignment/4.cc (test): Likewise.
1355 * unittests/optional/assignment/5.cc (test): Likewise.
1356 * unittests/optional/assignment/6.cc (test): Likewise.
1357 * unittests/optional/assignment/7.cc (test): Likewise.
1358 * unittests/optional/cons/copy.cc (test): Likewise.
1359 * unittests/optional/cons/default.cc (test): Likewise.
1360 * unittests/optional/cons/move.cc (test): Likewise.
1361 * unittests/optional/cons/value.cc (test): Likewise.
1362 * unittests/optional/in_place.cc (test): Likewise.
1363 * unittests/optional/observers/1.cc (test): Likewise.
1364 * unittests/optional/observers/2.cc (test): Likewise.
1365
3b5c1d49
SM
13662019-11-26 Simon Marchi <simon.marchi@efficios.com>
1367
1368 * tui-win.h (tui_set_var_cmd): Remove.
1369 * tui-win.c (tui_set_var_cmd): Make static.
1370
adce99fe
SM
13712019-11-26 Simon Marchi <simon.marchi@efficios.com>
1372
1373 * breakpoint.h (hbreak_command_wrapper, thbreak_command_wrapper,
1374 rbreak_command_wrapper): Remove.
1375 * symtab.c (rbreak_command_wrapper): Remove.
1376
fe3adccf
SM
13772019-11-26 Simon Marchi <simon.marchi@efficios.com>
1378
1379 * inferior.h (info_terminal_command): Remove declaration.
1380 * inflow.c (info_terminal_command): Make static.
1381
b926335f
SM
13822019-11-26 Simon Marchi <simon.marchi@efficios.com>
1383
1384 * inferior.c (exit_inferior_silent): Remove.
1385
b62f6f54
SM
13862019-11-26 Simon Marchi <simon.marchi@efficios.com>
1387
1388 * dictionary.c (dict_empty, mdict_empty): Remove.
1389 * dictionary.c (mdict_empty): Remove.
1390
cb8c24b6
SM
13912019-11-26 Simon Marchi <simon.marchi@efficios.com>
1392
1393 * arc-tdep.c (arc_insn_get_memory_base_reg): Make static.
1394 (arc_insn_get_memory_offset): Likewise.
1395 (arc_insn_dump): Likewise.
1396 * cp-support.c (test_cp_symbol_name_matches): Likewise.
1397 * csky-linux-tdep.c (csky_supply_fregset): Likewise.
1398 * dictionary.c (dict_iterator_next): Likewise.
1399 (dict_iter_match_first): Likewise.
1400 (dict_iter_match_next): Likewise.
1401 * f-lang.c (evaluate_subexp_f): Likewise.
1402 * hppa-tdep.c (hppa_read_pc): Likewise.
1403 * i386-tdep.c (i386_floatformat_for_type): Likewise.
1404 * parse.c (write_exp_elt_msym): Likewise.
1405 * ppc-linux-tdep.c (ppc_floatformat_for_type): Likewise.
1406 * remote.c (remote_packet_size): Likewise.
1407 (remote_notif_stop_parse): Likewise.
1408 * rs6000-aix-tdep.c (aix_sighandle_frame_sniffer): Likewise.
1409 * s12z-tdep.c (s12z_disassemble_info): Likewise.
1410 * source.c (prepare_path_for_appending): Likewise.
1411 * sparc64-linux-tdep.c
1412 (sparc64_linux_handle_segmentation_fault); Likewise.
1413 * stack.c (frame_selection_by_function_completer): Likewise.
1414
781597ff
SM
14152019-11-26 Simon Marchi <simon.marchi@efficios.com>
1416
1417 * completer.c (set_gdb_completion_word_break_characters):
1418 Remove.
1419
23baa4cc
SM
14202019-11-26 Simon Marchi <simon.marchi@efficios.com>
1421
1422 * dwarf-index-write.c: Include dwarf-index-write.h.
1423 * mi/mi-interp.c: Include mi/mi-interp.h.
1424
23767560
SM
14252019-11-26 Simon Marchi <simon.marchi@efficios.com>
1426
1427 * aarch32-tdep.c: Include aarch32-tdep.h.
1428 * aarch32-tdep.h: Forward-declare struct target_desc.
1429
6d91ce9a
CB
14302019-11-26 Christian Biesinger <cbiesinger@google.com>
1431
1432 * linux-nat.c (detach_one_lwp): Call safe_strerror instead of
1433 strerror.
1434 * nto-procfs.c (nto_procfs_target::create_inferior): Likewise.
1435 * windows-nat.c (windows_nat_target::create_inferior): Likewise.
1436
3cf2f237
TV
14372019-11-25 Tom de Vries <tdevries@suse.de>
1438
1439 * contrib/words.sh: Add -c option.
1440
5b89c67a
CB
14412019-11-25 Christian Biesinger <cbiesinger@google.com>
1442
1443 * solib.c (solib_find_1): Change int to bool.
1444 (exec_file_find): Change int to bool.
1445 (solib_find): Change int to bool.
1446 (solib_read_symbols): Change int to bool.
1447 (solib_used): Change int to bool.
1448 (solib_add): Change int to bool.
1449 (info_sharedlibrary_command): Change int to bool.
1450 (solib_contains_address_p): Change int to bool.
1451 (solib_keep_data_in_core): Change int to bool.
1452 (in_solib_dynsym_resolve_code): Change int to bool.
1453 (reload_shared_libraries_1): Change int to bool.
1454 (gdb_sysroot_changed): Change int to bool.
1455 * solib.h (solib_read_symbols): Change int to bool.
1456 (solib_contains_address_p): Change int to bool.
1457 (solib_keep_data_in_core): Change int to bool.
1458 (in_solib_dynsym_resolve_code): Change int to bool.
1459 (libpthread_name_p): Change int to bool.
1460
6cc8564b
LM
14612019-11-25 Luis Machado <luis.machado@linaro.org>
1462
1463 * NEWS (New Commands): Mention "set debug remote-packet-max-chars".
1464 * remote.c (REMOTE_DEBUG_MAX_CHAR): Remove.
1465 (remote_packet_max_chars): New static global.
1466 (show_remote_packet_max_chars): New function.
1467 (remote_target::putpkt_binary): Adjust to use new
1468 remote_packet_max_chars option.
1469 (remote_target::getpkt_or_notif_sane_1): Likewise.
1470 (_initialize_remote): Register new remote-packet-max-chars option.
1471
a7cdaa91
SM
14722019-11-24 Simon Marchi <simon.marchi@efficios.com>
1473
1474 * m68k-linux-nat.c: Include gdbarch.h.
1475
26abc753
TT
14762019-11-24 Tom Tromey <tom@tromey.com>
1477
1478 * symfile.c (read_symbols): Update.
1479 * psymtab.c (require_partial_symbols): Change type of "verbose" to
1480 bool.
1481 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
1482 (psym_lookup_symbol, psym_find_last_source_symtab)
1483 (psym_forget_cached_source_info, psym_print_stats)
1484 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
1485 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
1486 (psym_map_matching_symbols, psym_expand_symtabs_matching)
1487 (psym_find_compunit_symtab_by_address)
1488 (maintenance_print_psymbols, maintenance_info_psymtabs)
1489 (maintenance_check_psymtabs): Update.
1490 * psymtab.h (require_partial_symbols): Change type of "verbose" to
1491 bool.
1492
012fc909
TT
14932019-11-22 Tom Tromey <tom@tromey.com>
1494
1495 * observable.h: Update comments.
1496
c83d8d32
TT
14972019-11-22 Tom Tromey <tromey@adacore.com>
1498
1499 * ada-tasks.c (ada_task_is_alive): Make parameter const.
1500 (print_ada_task_info): Don't try to fetch thread id if task is not
1501 alive.
1502
987012b8
CB
15032019-11-22 Christian Biesinger <cbiesinger@google.com>
1504
1505 * ada-exp.y: Update.
1506 * ada-lang.c (sort_choices): Update.
1507 (ada_print_symbol_signature): Update.
1508 (resolve_subexp): Update.
1509 (ada_parse_renaming): Update.
1510 (ada_read_renaming_var_value): Update.
1511 (lesseq_defined_than): Update.
1512 (remove_extra_symbols): Update.
1513 (remove_irrelevant_renamings): Update.
1514 (ada_add_block_symbols): Update.
1515 (ada_collect_symbol_completion_matches): Update.
1516 (ada_is_renaming_symbol): Update.
1517 (aggregate_assign_from_choices): Update.
1518 (ada_evaluate_subexp): Update.
1519 (ada_has_this_exception_support): Update.
1520 (ada_is_non_standard_exception_sym): Update.
1521 (ada_add_exceptions_from_frame): Update.
1522 (ada_add_global_exceptions): Update.
1523 (ada_print_subexp): Update.
1524 * ax-gdb.c (gen_var_ref): Update.
1525 (gen_maybe_namespace_elt): Update.
1526 (gen_expr_for_cast): Update.
1527 (gen_expr): Update.
1528 * block.h: Update.
1529 * blockframe.c (find_pc_partial_function): Update.
1530 * breakpoint.c (print_breakpoint_location): Update.
1531 (update_static_tracepoint): Update.
1532 * btrace.c (ftrace_print_function_name): Update.
1533 (ftrace_function_switched): Update.
1534 * buildsym.c (find_symbol_in_list): Update.
1535 * c-exp.y: Update.
1536 * c-typeprint.c (c_print_typedef): Update.
1537 (c_type_print_template_args): Update.
1538 * cli/cli-cmds.c (edit_command): Update.
1539 (list_command): Update.
1540 (print_sal_location): Update.
1541 * coffread.c (patch_opaque_types): Update.
1542 (process_coff_symbol): Update.
1543 (coff_read_enum_type): Update.
1544 * compile/compile-c-symbols.c (c_symbol_substitution_name): Update.
1545 (convert_one_symbol): Update.
1546 (hash_symname): Update.
1547 (eq_symname): Update.
1548 * compile/compile-cplus-symbols.c (convert_one_symbol): Update.
1549 * compile/compile-cplus-types.c (debug_print_scope): Update.
1550 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
1551 * compile/compile-object-load.c (get_out_value_type): Update.
1552 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
1553 (search_symbol_list): Update.
1554 (cp_lookup_symbol_imports_or_template): Update.
1555 * cp-support.c (overload_list_add_symbol): Update.
1556 * ctfread.c (psymtab_to_symtab): Update.
1557 * dbxread.c (cp_set_block_scope): Update.
1558 * dictionary.c (iter_match_first_hashed): Update.
1559 (iter_match_next_hashed): Update.
1560 (insert_symbol_hashed): Update.
1561 (iter_match_next_linear): Update.
1562 * dictionary.h: Update.
1563 * dwarf2loc.c (func_get_frame_base_dwarf_block): Update.
1564 (locexpr_describe_location_piece): Update.
1565 (locexpr_describe_location_1): Update.
1566 (locexpr_generate_c_location): Update.
1567 (loclist_describe_location): Update.
1568 (loclist_generate_c_location): Update.
1569 * dwarf2read.c (dw2_debug_names_lookup_symbol): Update.
1570 (read_func_scope): Update.
1571 (process_enumeration_scope): Update.
1572 (new_symbol): Update.
1573 (dwarf2_const_value): Update.
1574 (dwarf2_symbol_mark_computed): Update.
1575 * eval.c (evaluate_funcall): Update.
1576 (evaluate_subexp_standard): Update.
1577 * expprint.c (print_subexp_standard): Update.
1578 (dump_subexp_body_standard): Update.
1579 * f-valprint.c (info_common_command_for_block): Update.
1580 * findvar.c (get_hosting_frame): Update.
1581 (default_read_var_value): Update.
1582 * go-lang.c (go_symbol_package_name): Update.
1583 * guile/scm-block.c (bkscm_print_block_smob): Update.
1584 * guile/scm-symbol.c (syscm_print_symbol_smob): Update.
1585 (gdbscm_symbol_name): Update.
1586 (gdbscm_symbol_linkage_name): Update.
1587 (gdbscm_symbol_print_name): Update.
1588 * infcall.c (get_function_name): Update.
1589 * infcmd.c (jump_command): Update.
1590 (finish_command): Update.
1591 * infrun.c (insert_exception_resume_breakpoint): Update.
1592 * linespec.c (canonicalize_linespec): Update.
1593 (create_sals_line_offset): Update.
1594 (convert_linespec_to_sals): Update.
1595 (complete_label): Update.
1596 (find_label_symbols_in_block): Update.
1597 * m2-typeprint.c (m2_print_typedef): Update.
1598 * mdebugread.c (mdebug_reg_to_regnum): Update.
1599 (parse_symbol): Update.
1600 (mylookup_symbol): Update.
1601 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
1602 (list_args_or_locals): Update.
1603 * objc-lang.c (compare_selectors): Update.
1604 (info_selectors_command): Update.
1605 (compare_classes): Update.
1606 (info_classes_command): Update.
1607 (find_imps): Update.
1608 * p-typeprint.c (pascal_print_typedef): Update.
1609 * printcmd.c (build_address_symbolic): Update.
1610 (info_address_command): Update.
1611 (print_variable_and_value): Update.
1612 * python/py-framefilter.c (extract_sym): Update.
1613 (py_print_single_arg): Update.
1614 * python/py-symbol.c (sympy_str): Update.
1615 (sympy_get_name): Update.
1616 (sympy_get_linkage_name): Update.
1617 * python/python.c (gdbpy_rbreak): Update.
1618 * record-btrace.c (btrace_get_bfun_name): Update.
1619 (btrace_call_history): Update.
1620 * rust-lang.c (rust_print_typedef): Update.
1621 * solib-frv.c (frv_fdpic_find_canonical_descriptor): Update.
1622 * stabsread.c (stab_reg_to_regnum): Update.
1623 (define_symbol): Update.
1624 (read_enum_type): Update.
1625 (common_block_end): Update.
1626 (cleanup_undefined_types_1): Update.
1627 (scan_file_globals): Update.
1628 * stack.c (print_frame_arg): Update.
1629 (print_frame_args): Update.
1630 (find_frame_funname): Update.
1631 (info_frame_command_core): Update.
1632 (iterate_over_block_locals): Update.
1633 (print_block_frame_labels): Update.
1634 (do_print_variable_and_value): Update.
1635 (iterate_over_block_arg_vars): Update.
1636 (return_command): Update.
1637 * symmisc.c (dump_symtab_1): Update.
1638 (print_symbol): Update.
1639 * symtab.c (eq_symbol_entry): Update.
1640 (symbol_cache_dump): Update.
1641 (lookup_language_this): Update.
1642 (find_pc_sect_line): Update.
1643 (skip_prologue_sal): Update.
1644 (symbol_search::compare_search_syms): Update.
1645 (treg_matches_sym_type_name): Update.
1646 (search_symbols): Update.
1647 (print_symbol_info): Update.
1648 (rbreak_command): Update.
1649 (completion_list_add_symbol): Update.
1650 (find_gnu_ifunc): Update.
1651 (get_symbol_address): Update.
1652 (search_module_symbols): Update.
1653 (info_module_subcommand): Update.
1654 * symtab.h (SYMBOL_NATURAL_NAME): Remove.
1655 (SYMBOL_LINKAGE_NAME): Remove.
1656 (SYMBOL_DEMANGLED_NAME): Remove.
1657 (SYMBOL_PRINT_NAME): Remove.
1658 (SYMBOL_SEARCH_NAME): Remove.
1659 * tracepoint.c (set_traceframe_context): Update.
1660 (validate_actionline): Update.
1661 (collection_list::collect_symbol): Update.
1662 (encode_actions_1): Update.
1663 (info_scope_command): Update.
1664 (print_one_static_tracepoint_marker): Update.
1665 * typeprint.c (typedef_hash_table::add_template_parameters): Update.
1666 * valops.c (address_of_variable): Update.
1667 (find_overload_match): Update.
1668 (find_oload_champ): Update.
1669
c9d95fa3
CB
16702019-11-22 Christian Biesinger <cbiesinger@google.com>
1671
1672 * ada-lang.c (ada_lookup_simple_minsym): Update.
1673 (ada_collect_symbol_completion_matches): Update.
1674 * ada-tasks.c (read_atcb): Update.
1675 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
1676 (amd64_windows_skip_trampoline_code): Update.
1677 * arm-tdep.c (skip_prologue_function): Update.
1678 (arm_skip_stack_protector): Update.
1679 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
1680 (arm_wince_skip_main_prologue): Update.
1681 * ax-gdb.c (gen_expr): Update.
1682 * block.c (call_site_for_pc): Update.
1683 * blockframe.c (find_pc_partial_function): Update.
1684 * breakpoint.c (set_breakpoint_location_function): Update.
1685 * btrace.c (ftrace_print_function_name): Update.
1686 (ftrace_function_switched): Update.
1687 * c-valprint.c (print_unpacked_pointer): Update.
1688 * coffread.c (coff_symfile_read): Update.
1689 * compile/compile-c-symbols.c (convert_symbol_bmsym): Update.
1690 * compile/compile-cplus-symbols.c (convert_symbol_bmsym): Update.
1691 * dwarf-index-write.c (write_psymbols): Update.
1692 * dwarf2loc.c (call_site_to_target_addr): Update.
1693 (func_verify_no_selftailcall): Update.
1694 (tailcall_dump): Update.
1695 (call_site_find_chain_1): Update.
1696 (dwarf_expr_reg_to_entry_parameter): Update.
1697 * elfread.c (elf_gnu_ifunc_record_cache): Update.
1698 * eval.c (evaluate_funcall): Update.
1699 (evaluate_subexp_standard): Update.
1700 (evaluate_subexp_for_sizeof): Update.
1701 * expprint.c (print_subexp_standard): Update.
1702 (dump_subexp_body_standard): Update.
1703 * frame.c (get_prev_frame_always_1): Update.
1704 * frv-tdep.c (frv_skip_main_prologue): Update.
1705 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
1706 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
1707 (gnuv3_get_typename_from_type_info): Update.
1708 (gnuv3_skip_trampoline): Update.
1709 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
1710 * i386-tdep.c (i386_skip_main_prologue): Update.
1711 (i386_pe_skip_trampoline_code): Update.
1712 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
1713 * infcall.c (get_function_name): Update.
1714 * linespec.c (minsym_found): Update.
1715 * linux-fork.c (info_checkpoints_command): Update.
1716 * m32c-tdep.c (m32c_m16c_address_to_pointer): Update.
1717 (m32c_m16c_pointer_to_address): Update.
1718 * maint.c (maintenance_translate_address): Update.
1719 * minsyms.c (add_minsym_to_hash_table): Update.
1720 (add_minsym_to_demangled_hash_table): Update.
1721 (lookup_minimal_symbol_mangled): Update.
1722 (lookup_minimal_symbol_demangled): Update.
1723 (lookup_minimal_symbol_linkage): Update.
1724 (lookup_minimal_symbol_text): Update.
1725 (lookup_minimal_symbol_by_pc_name): Update.
1726 (minimal_symbol_is_less_than): Update.
1727 (compact_minimal_symbols): Update.
1728 (build_minimal_symbol_hash_tables): Update.
1729 (find_solib_trampoline_target): Update.
1730 * mips-tdep.c (mips_stub_frame_sniffer): Update.
1731 (mips_skip_pic_trampoline_code): Update.
1732 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
1733 * objc-lang.c (info_selectors_command): Update.
1734 (info_classes_command): Update.
1735 (find_methods): Update.
1736 (find_imps): Update.
1737 * p-valprint.c (pascal_val_print): Update.
1738 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Update.
1739 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
1740 * printcmd.c (build_address_symbolic): Update.
1741 (info_symbol_command): Update.
1742 * psymtab.c (psymbol_name_matches): Update.
1743 (match_partial_symbol): Update.
1744 (lookup_partial_symbol): Update.
1745 (print_partial_symbols): Update.
1746 (sort_pst_symbols): Update.
1747 (maintenance_check_psymtabs): Update.
1748 * python/py-framefilter.c (py_print_frame): Update.
1749 * python/python.c (gdbpy_rbreak): Update.
1750 * record-btrace.c (btrace_get_bfun_name): Update.
1751 (btrace_call_history): Update.
1752 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
1753 (rs6000_skip_trampoline_code): Update.
1754 * sol-thread.c (info_cb): Update.
1755 * stabsread.c (scan_file_globals): Update.
1756 * stack.c (find_frame_funname): Update.
1757 (info_frame_command_core): Update.
1758 * symmisc.c (dump_msymbols): Update.
1759 * symtab.c (symbol_natural_name): Rename to..,
1760 (general_symbol_info::natural_name): ...this.
1761 (symbol_demangled_name): Rename to...
1762 (general_symbol_info::demangled_name): ...this.
1763 (symbol_search_name): Rename to...
1764 (general_symbol_info::search_name): ...this.
1765 (symbol_matches_search_name): Update.
1766 (find_pc_sect_line): Update.
1767 (skip_prologue_sal): Update.
1768 (search_symbols): Update.
1769 (print_msymbol_info): Update.
1770 (rbreak_command): Update.
1771 (completion_list_add_msymbol): Update.
1772 (completion_list_objc_symbol): Update.
1773 (get_msymbol_address): Update.
1774 * symtab.h (struct general_symbol_info): Add member functions
1775 natural_name (), linkage_name (), print_name (), demangled_name (),
1776 and search_name ().
1777 (SYMBOL_NATURAL_NAME): Update.
1778 (symbol_natural_name): Move to a member function on general_symbol_info.
1779 (SYMBOL_DEMANGLED_NAME): Update.
1780 (symbol_demangled_name): Move to a member function on
1781 general_symbol_info.
1782 (SYMBOL_SEARCH_NAME): Update.
1783 (symbol_search_name): Move to a member function on general_symbol_info.
1784 (MSYMBOL_NATURAL_NAME): Remove.
1785 (MSYMBOL_LINKAGE_NAME): Remove.
1786 (MSYMBOL_PRINT_NAME): Remove.
1787 (MSYMBOL_DEMANGLED_NAME): Remove.
1788 (MSYMBOL_SEARCH_NAME): Remove.
1789 * x86-tdep.c (x86_in_indirect_branch_thunk): Update.
1790
f8bab2d6
CB
17912019-11-22 Christian Biesinger <cbiesinger@google.com>
1792
1793 * symtab.c (create_demangled_names_hash): Use per_bfd->
1794 minimal_symbol_count for computing the initial size, if greater
1795 than our default size.
1796
85e7588d
TV
17972019-11-22 Tom de Vries <tdevries@suse.de>
1798
1799 * contrib/words.sh: Improve words extraction.
1800
f6180073
TV
18012019-11-22 Tom de Vries <tdevries@suse.de>
1802
1803 * contrib/words.sh: Combine sed invocations.
1804
f10ffa41
CB
18052019-11-21 Christian Biesinger <cbiesinger@google.com>
1806
1807 * Makefile.in: Update.
1808 * demangle.c: Rename to...
1809 * gdb-demangle.c: ..this.
1810 (is_cplus_marker): Change return type to bool.
1811 (_initialize_demangler): Rename to...
1812 (_initialize_gdb_demangle): ...this.
1813 * gdb-demangle.h (is_cplus_marker): Change return type to bool.
1814 * symtab.h (demangle): Remove declaration; instead include
1815 gdb-demangle.h.
1816
6ba18521
TT
18172019-11-21 Tom Tromey <tromey@adacore.com>
1818
1819 * gdbsupport/format.c (format_pieces): Parse %I64d.
1820 * unittests/format_pieces-selftests.c (test_windows_formats): New
1821 function.
1822 (run_tests): Call it.
1823
34877895
PJ
18242019-11-21 Peeter Joot <peeter.joot@lzlabs.com>
1825
1826 Byte reverse display of variables with DW_END_big, DW_END_little
1827 (DW_AT_endianity) dwarf attributes if different than the native
1828 byte order.
1829 * ada-lang.c (ada_value_binop):
1830 Use type_byte_order instead of gdbarch_byte_order.
1831 * ada-valprint.c (printstr):
1832 (ada_val_print_string):
1833 * ada-lang.c (value_pointer):
1834 (ada_value_binop):
1835 Use type_byte_order instead of gdbarch_byte_order.
1836 * c-lang.c (c_get_string):
1837 Use type_byte_order instead of gdbarch_byte_order.
1838 * c-valprint.c (c_val_print_array):
1839 Use type_byte_order instead of gdbarch_byte_order.
1840 * cp-valprint.c (cp_print_class_member):
1841 Use type_byte_order instead of gdbarch_byte_order.
1842 * dwarf2loc.c (rw_pieced_value):
1843 Use type_byte_order instead of gdbarch_byte_order.
1844 * dwarf2read.c (read_base_type): Handle DW_END_big,
1845 DW_END_little
1846 * f-lang.c (f_get_encoding):
1847 Use type_byte_order instead of gdbarch_byte_order.
1848 * findvar.c (default_read_var_value):
1849 Use type_byte_order instead of gdbarch_byte_order.
1850 * gdbtypes.c (check_types_equal):
1851 Require matching TYPE_ENDIANITY_NOT_DEFAULT if set.
1852 (recursive_dump_type): Print TYPE_ENDIANITY_BIG,
1853 and TYPE_ENDIANITY_LITTLE if set.
1854 (type_byte_order): new function.
1855 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): New macro.
1856 (struct main_type) <flag_endianity_not_default>:
1857 New field.
1858 (type_byte_order): New function.
1859 * infcmd.c (default_print_one_register_info):
1860 Use type_byte_order instead of gdbarch_byte_order.
1861 * p-lang.c (pascal_printstr):
1862 Use type_byte_order instead of gdbarch_byte_order.
1863 * p-valprint.c (pascal_val_print):
1864 Use type_byte_order instead of gdbarch_byte_order.
1865 * printcmd.c (print_scalar_formatted):
1866 Use type_byte_order instead of gdbarch_byte_order.
1867 * solib-darwin.c (darwin_current_sos):
1868 Use type_byte_order instead of gdbarch_byte_order.
1869 * solib-svr4.c (solib_svr4_r_ldsomap):
1870 Use type_byte_order instead of gdbarch_byte_order.
1871 * stap-probe.c (stap_modify_semaphore):
1872 Use type_byte_order instead of gdbarch_byte_order.
1873 * target-float.c (target_float_same_format_p):
1874 Use type_byte_order instead of gdbarch_byte_order.
1875 * valarith.c (scalar_binop):
1876 (value_bit_index):
1877 Use type_byte_order instead of gdbarch_byte_order.
1878 * valops.c (value_cast):
1879 Use type_byte_order instead of gdbarch_byte_order.
1880 * valprint.c (generic_emit_char):
1881 (generic_printstr):
1882 (val_print_string):
1883 Use type_byte_order instead of gdbarch_byte_order.
1884 * value.c (unpack_long):
1885 (unpack_bits_as_long):
1886 (unpack_value_bitfield):
1887 (modify_field):
1888 (pack_long):
1889 (pack_unsigned_long):
1890 Use type_byte_order instead of gdbarch_byte_order.
1891 * findvar.c (unsigned_pointer_to_address):
1892 (signed_pointer_to_address):
1893 (unsigned_address_to_pointer):
1894 (address_to_signed_pointer):
1895 (default_read_var_value):
1896 (default_value_from_register):
1897 Use type_byte_order instead of gdbarch_byte_order.
1898 * gnu-v3-abi.c (gnuv3_make_method_ptr):
1899 Use type_byte_order instead of gdbarch_byte_order.
1900 * riscv-tdep.c (riscv_print_one_register_info):
1901 Use type_byte_order instead of gdbarch_byte_order.
1902
87fb00ea
SM
19032019-11-21 Simon Marchi <simon.marchi@polymtl.ca>
1904
1905 * top.c (current_ui_gdb_stdout_ptr): Spell out by hand.
1906 (current_ui_gdb_stdin_ptr): Likewise.
1907 (current_ui_gdb_stderr_ptr): Likewise.
1908 (current_ui_gdb_stdlog_ptr): Likewise.
1909 (current_ui_current_uiout_ptr): Likewise.
1910 (gen_ret_current_ui_field_ptr): Remove.
1911
65d1cd5f
TV
19122019-11-21 Tom de Vries <tdevries@suse.de>
1913
1914 PR gdb/24956
1915 * cli/cli-script.c (execute_control_command): Only switch to
1916 INTERP_CONSOLE's ui_out when INTERP_MI is active.
1917
9f6ad286
TT
19182019-11-19 Tom Tromey <tom@tromey.com>
1919
1920 * tui/tui-win.c (tui_partial_win_by_name): Move from tui-data.c.
1921 Now static. Change type of "name".
1922 (tui_set_win_height_command): Don't copy "arg".
1923 * tui/tui-data.h (tui_partial_win_by_name): Don't declare.
1924 * tui/tui-data.c (tui_partial_win_by_name): Move to tui-win.c.
1925
435d3d88
AT
19262019-11-19 Ali Tamur <tamur@google.com>
1927
1928 * dwarf2read.c (dw2_get_file_names_reader): Replace "if (attr)" with
1929 "if (attr != nullptr)".
1930 (dwarf2_find_base_address): Likewise.
1931 (dwarf2_build_include_psymtabs): Likewise.
1932 (read_cutu_die_from_dwo): Likewise.
1933 (read_func_scope): Likewise.
1934 (read_call_site_scope): Likewise.
1935 (dwarf2_get_pc_bounds): Likewise.
1936 (dwarf2_record_block_ranges): Likewise.
1937 (dwarf2_add_field): Likewise.
1938 (dwarf2_add_member_fn): Likewise.
1939 (read_structure_type): Likewise.
1940 (read_enumeration_type): Likewise.
1941 (read_array_type): Likewise.
1942 (read_array_order): Likewise.
1943 (read_set_type): Likewise.
1944 (read_common_block): Likewise.
1945 (read_tag_reference_type): Likewise.
1946 (read_tag_string_type): Likewise.
1947 (read_subroutine_type): Likewise.
1948 (read_base_type): Likewise.
1949 (read_subrange_type): Likewise.
1950 (new_symbol): Likewise.
1951 (prepare_one_comp_unit): Likewise.
1952
c9739b6a
TT
19532019-11-19 Tom Tromey <tromey@adacore.com>
1954
1955 * windows-nat.c (windows_nat_target::attach): Include GetLastError
1956 result in error when DebugActiveProcess fails.
1957
494409bb
SDJ
19582019-11-18 Sergio Durigan Junior <sergiodj@redhat.com>
1959 Pedro Alves <palves@redhat.com>
1960
1961 https://bugzilla.redhat.com/show_bug.cgi?id=1765117
1962 * target.c (target_stack::push): Call 'unpush' if there's a
1963 target on top of the stack.
1964
2e953aca
PW
19652019-11-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1966
1967 * python/py-block.c (blpy_dealloc): Call tp_free.
1968 (blpy_block_syms_dealloc): Likewise.
1969 * python/py-finishbreakpoint.c (bpfinishpy_dealloc): Likewise.
1970 * python/py-inferior.c (infpy_dealloc): Likewise.
1971 * python/py-lazy-string.c (stpy_dealloc): Likewise.
1972 * python/py-linetable.c (ltpy_iterator_dealloc): Likewise.
1973 * python/py-symbol.c (sympy_dealloc): Likewise.
1974 * python/py-symtab.c (stpy_dealloc): Likewise.
1975 * python/py-type.c (typy_iterator_dealloc): Likewise.
1976
6edc43ec
CB
19772019-11-18 Christian Biesinger <cbiesinger@google.com>
1978
1979 * symtab.h (struct symbol) <owner>: Initialize explicitly in the
1980 constructor instead of using a class initializer.
1981
cd850b40
CB
19822019-11-15 Christian Biesinger <cbiesinger@google.com>
1983
1984 * Makefile.in: Replace {posix,mingw}-strerror.c with safe-strerror.c.
1985 * configure: Regenerate.
1986 * configure.ac: Don't source common.host.
1987 * gdbsupport/common.host: Remove.
1988 * gdbsupport/mingw-strerror.c: Remove.
1989 * gdbsupport/posix-strerror.c: Rename to...
1990 * gdbsupport/safe-strerror.c: ...this.
1991
53fea9c7
CB
19922019-11-15 Christian Biesinger <cbiesinger@google.com>
1993
1994 * maint.c (scoped_command_stats::print_time): Use localtime_r
1995 instead of localtime (provided through gnulib if necessary).
1996 * nat/linux-osdata.c (time_from_time_t): Use ctime_r instead
1997 of ctime.
1998
f8e27d88
CB
19992019-11-15 Christian Biesinger <cbiesinger@google.com>
2000
2001 * gdbsupport/common-defs.h: Include time.h before pathmax.h to
2002 avoid compile errors.
2003
5abebf3c
CB
20042019-11-15 Christian Biesinger <cbiesinger@google.com>
2005
2006 * config.in: Regenerate.
2007 * configure: Regenerate.
2008 * gdbsupport/common.m4: No longer check for strerror_r.
2009 * gdbsupport/posix-strerror.c (safe_strerror): Always call the
2010 POSIX version of strerror_r, now that gnulib provides it if
2011 necessary.
2012
9a351667
CB
20132019-11-14 Christian Biesinger <cbiesinger@google.com>
2014
2015 * README (`configure' options): Update.
2016
55708e99
TT
20172019-11-14 Tom Tromey <tromey@adacore.com>
2018
2019 * eval.c (evaluate_subexp_standard) <BINOP_ASSIGN>: Do not pass an
2020 expected type for the RHS if the LHS is a convenience variable.
2021
4b09bb2e
SM
20222019-11-14 Simon Marchi <simon.marchi@polymtl.ca>
2023
2024 * unittests/vec-utils-selftests.c (unordered_remove_tests::obj):
2025 Provide explicit default and copy constructor.
2026
bd454f8b
PW
20272019-11-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2028
2029 * python/py-finishbreakpoint.c (gdbpy_breakpoint_created):
2030 only call Py_INCREF (newbp) in the bppy_pending_object case.
2031
d1aa3cf0
TT
20322019-11-13 Tom Tromey <tromey@adacore.com>
2033
2034 PR build/25182:
2035 * psympriv.h (partial_symbol): Remove static assert.
2036 * symtab.h (general_symbol_info, symbol): Remove static assert.
2037
e06f3d6e
AB
20382019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
2039
2040 * gdbsupport/format.c (format_pieces::format_pieces): Support
2041 printf 'z' size modifier.
2042 * gdbsupport/format.h (enum argclass): Add size_t_arg.
2043 * printcmd.c (ui_printf): Handle size_t_arg.
2044 * ui-out.c (ui_out::vmessage): Likewise.
2045 * unittests/format_pieces-selftests.c (test_format_int_sizes): New
2046 function.
2047 (run_tests): Call test_format_int_sizes.
2048
468c0cbb
CB
20492019-11-12 Christian Biesinger <cbiesinger@google.com>
2050
2051 * ada-exp.y (write_ambiguous_var): Update.
2052 * buildsym.c (add_symbol_to_list): Update.
2053 * dwarf2read.c (read_variable): Update.
2054 (new_symbol): Update.
2055 * jit.c (finalize_symtab): Update.
2056 * language.c (language_alloc_type_symbol): Update.
2057 * symtab.c (fixup_symbol_section): Update.
2058 (initialize_objfile_symbol_1): Move code to...
2059 (initialize_objfile_symbol): ...here. Remove now-unnecessary memset.
2060 (allocate_symbol): Update.
2061 (allocate_template_symbol): Update.
2062 (get_symbol_address): Update.
2063 * symtab.h (struct symbol): Inherit from general_symbol_info instead
2064 of having as a field, and add a constructor.
2065 (SYMBOL_VALUE): Update.
2066 (SYMBOL_VALUE_ADDRESS): Update.
2067 (SET_SYMBOL_VALUE_ADDRESS): Update.
2068 (SYMBOL_VALUE_BYTES): Update.
2069 (SYMBOL_VALUE_COMMON_BLOCK): Update.
2070 (SYMBOL_BLOCK_VALUE): Update.
2071 (SYMBOL_VALUE_CHAIN): Update.
2072 (SYMBOL_LANGUAGE): Update.
2073 (SYMBOL_SECTION): Update.
2074 (SYMBOL_OBJ_SECTION): Update.
2075 (SYMBOL_SET_LANGUAGE): Update.
2076 (SYMBOL_SET_LINKAGE_NAME): Update.
2077 (SYMBOL_SET_NAMES): Update.
2078 (SYMBOL_NATURAL_NAME): Update.
2079 (SYMBOL_LINKAGE_NAME): Update.
2080 (SYMBOL_DEMANGLED_NAME): Update.
2081 (SYMBOL_SEARCH_NAME): Update.
2082 (SYMBOL_MATCHES_SEARCH_NAME): Update.
2083 (struct symbol): Update.
2084 (struct template_symbol): Update.
2085 (struct rust_vtable_symbol): Update.
2086 * xcoffread.c (SYMBOL_DUP): Update.
2087
ed2c82c3
TT
20882019-11-12 Tom Tromey <tom@tromey.com>
2089
2090 * tui/tui-layout.c (show_layout): Set current_layout.
2091 (show_source_disasm_command, show_data)
2092 (show_source_or_disasm_and_command): Don't set current_layout.
2093
d9fcefd5
TT
20942019-11-12 Tom Tromey <tom@tromey.com>
2095
2096 * tui/tui-layout.c (_initialize_tui_layout): Move to end.
2097
45e42163
TT
20982019-11-12 Tom Tromey <tom@tromey.com>
2099
2100 * tui/tui-win.c (resize_message): New global.
2101 (show_tui_resize_message): New function.
2102 (tui_async_resize_screen): Print message if requested.
2103 (_initialize_tui_win): Add tui-resize-message setting.
2104 * NEWS: Add entry for new commands.
2105
c86d74cc
TT
21062019-11-11 Tom Tromey <tom@tromey.com>
2107
2108 * tui/tui.c (tui_initialize_readline): Add new bindable readline
2109 functions.
2110
7b7b9424
CB
21112019-11-11 Christian Biesinger <cbiesinger@google.com>
2112
2113 * nat/linux-osdata.c (user_from_uid): Use getpwuid_r.
2114
086baaf1
AB
21152019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
2116
2117 * python/py-symbol.c (gdbpy_lookup_static_symbols): New
2118 function.
2119 * python/python-internal.h (gdbpy_lookup_static_symbols):
2120 Declare new function.
2121 * python/python.c (python_GdbMethods): Add
2122 gdb.lookup_static_symbols method.
2123 * NEWS: Mention gdb.lookup_static_symbols.
2124
09ff83af
AB
21252019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
2126
2127 * python/py-symbol.c (gdbpy_lookup_static_symbol): Lookup in
2128 static block of current object file first. Also fix typo in
2129 header comment.
2130
eb2dd8df
AB
21312019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
2132
2133 * stack.c (set_last_displayed_sal): Delete.
2134 (last_displayed_sal_valid): Delete.
2135 (last_displayed_pspace): Delete.
2136 (last_displayed_addr): Delete.
2137 (last_displayed_symtab): Delete.
2138 (last_displayed_line): Delete.
2139 (class last_displayed_symtab_info_type): New.
2140 (last_displayed_symtab_info): New static global variable.
2141 (print_frame_info): Call methods on last_displayed_symtab_info.
2142 (clear_last_displayed_sal): Update header comment, and make use of
2143 last_displayed_symtab_info.
2144 (last_displayed_sal_is_valid): Likewise.
2145 (get_last_displayed_pspace): Likewise.
2146 (get_last_displayed_addr): Likewise.
2147 (get_last_displayed_symtab): Likewise.
2148 (get_last_displayed_line): Likewise.
2149 (get_last_displayed_sal): Likewise.
2150 * stack.h (clear_last_displayed_sal): Update header comment.
2151 (last_displayed_sal_is_valid): Likewise.
2152 (get_last_displayed_pspace): Likewise.
2153 (get_last_displayed_addr): Likewise.
2154 (get_last_displayed_symtab): Likewise.
2155 (get_last_displayed_line): Likewise.
2156 (get_last_displayed_sal): Likewise.
2157
62137775
AB
21582019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
2159
2160 * stack.c (frame_show_address): Convert return type to bool.
2161 * stack.h (frame_show_address): Likewise, and update header
2162 comment.
2163
cf57ad6d
AB
21642019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
2165
2166 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new file to the list.
2167 * unittests/vec-utils-selftests.c: New file.
2168 * gdbsupport/gdb_vecs.h (unordered_remove): Avoid self move assign.
2169
0b026263
TT
21702019-11-10 Tom Tromey <tom@tromey.com>
2171
2172 * tui/tui-wingeneral.c (tui_unhighlight_win): Use can_box.
2173 (tui_highlight_win): Likewise.
2174 (tui_win_info::check_and_display_highlight_if_needed): Likewise.
2175 * tui/tui-data.h (struct tui_win_info) <can_highlight>: Remove.
2176 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
2177 Don't set can_highlight.
2178
b049ce2d
TT
21792019-11-10 Tom Tromey <tom@tromey.com>
2180
2181 * cli/cli-style.h (class cli_style_option) <cli_style_option>:
2182 Remove unused declaration.
2183
992a7040
TT
21842019-11-08 Tom Tromey <tromey@adacore.com>
2185
2186 * top.c (read_command_file): Update.
2187 (command_line_input): Make return type const.
2188 * python/py-gdb-readline.c: Update.
2189 * linespec.c (decode_line_2): Update.
2190 * defs.h (command_line_input): Make return type const.
2191 * cli/cli-script.c (read_next_line): Make return type const.
2192 * ada-lang.c (get_selections): Update.
2193
ca3a04f6
CB
21942019-11-06 Christian Biesinger <cbiesinger@google.com>
2195
2196 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
2197 * mi/mi-main.c (output_cores): Likewise.
2198 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
2199 (linux_xfer_osdata_modules): Likewise.
2200 * remote.c (register_remote_support_xml): Likewise.
2201 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
2202 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
2203
e0eac551
TT
22042019-11-06 Tom Tromey <tom@tromey.com>
2205
2206 * tui/tui-interp.c: Don't include readline.h.
2207 * tui/tui-hooks.c: Don't include readline.h.
2208 * symmisc.c: Include tilde.h, not readline.h.
2209 * symfile.c: Include tilde.h, not readline.h.
2210 * source.c: Include tilde.h, not readline.h.
2211 * solib.c: Include tilde.h, not readline.h.
2212 * psymtab.c: Include tilde.h, not readline.h.
2213 * exec.c: Include tilde.h, not readline.h.
2214 * corelow.c: Include tilde.h, not readline.h.
2215 * cli/cli-dump.c: Include tilde.h, not readline.h.
2216 * cli/cli-cmds.c: Don't include readline.h.
2217
825165c5
TT
22182019-11-05 Tom Tromey <tom@tromey.com>
2219
2220 * tui/tui-disasm.c (struct tui_asm_line) <addr_size>: New member.
2221 (tui_disassemble): Set addr_size.
2222 (tui_disasm_window::set_contents): Use addr_size.
2223
91ae903f
TT
22242019-11-05 Tom Tromey <tom@tromey.com>
2225
2226 * rust-lang.c (rust_language_defn): Update.
2227 * python/py-value.c (valpy_string): Call c_get_string.
2228 * p-lang.c (pascal_language_defn): Update.
2229 * opencl-lang.c (opencl_language_defn): Update.
2230 * objc-lang.c (objc_language_defn): Update.
2231 * m2-lang.c (m2_language_defn): Update.
2232 * language.c (unknown_language_defn, auto_language_defn): Update.
2233 (default_get_string): Remove.
2234 * guile/scm-value.c (gdbscm_value_to_string): Use c_get_string.
2235 * go-lang.c (go_language_defn): Update.
2236 * f-lang.c (f_language_defn): Update.
2237 * d-lang.c (d_language_defn): Update.
2238 * c-lang.c (c_language_defn, cplus_language_defn)
2239 (asm_language_defn, minimal_language_defn): Update.
2240 * ada-lang.c (ada_language_defn): Update.
2241 * language.h (struct language_defn) <la_get_string>: Remove.
2242 (LA_GET_STRING): Remove.
2243 (default_get_string): Don't declare.
2244
1df2f9ef
TT
22452019-11-05 Tom Tromey <tom@tromey.com>
2246
2247 * tui/tui-source.h (struct tui_source_window): Inline
2248 constructor. Remove destructor.
2249 <style_changed, m_observable>: Move to superclass.
2250 * tui/tui-winsource.h (tui_copy_source_line): Declare.
2251 (struct tui_source_window_base): Move private members to end.
2252 <style_changed, m_observable>: Move from tui_source_window.
2253 * tui/tui-winsource.c (tui_copy_source_line): Move from
2254 tui-source.c. Rename from copy_source_line. Add special handling
2255 for negative line number.
2256 (tui_source_window_base::style_changed): Move from
2257 tui_source_window.
2258 (tui_source_window_base): Register observer.
2259 (~tui_source_window_base): New.
2260 * tui/tui-source.c (copy_source_line): Move to tui-winsource.c;
2261 rename.
2262 (tui_source_window::set_contents): Use tui_copy_source_line.
2263 (tui_source_window::tui_source_window): Move to tui-source.h.
2264 (tui_source_window::~tui_source_window): Remove.
2265 (tui_source_window::style_changed): Move to superclass.
2266 * tui/tui-disasm.c (tui_disassemble): Create string file with
2267 styling, when possible. Add "addr_size" parameter.
2268 (tui_disasm_window::set_contents): Use tui_copy_source_line.
2269 Don't compute maximum size.
2270 (len_without_escapes): New function
2271
5d051055
TT
22722019-11-05 Tom Tromey <tom@tromey.com>
2273
2274 * tui/tui-winsource.h (struct tui_source_element) <line>: Now a
2275 std::string.
2276 * tui/tui-winsource.c (tui_show_source_line): Update.
2277 * tui/tui-source.c (tui_source_window::set_contents): Update.
2278 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
2279
ade7beea
CB
22802019-11-05 Christian Biesinger <cbiesinger@google.com>
2281
2282 * symtab.h (gdb_static_assert): Put && operator at the beginning
2283 of the line instead of the end.
2284
3573abe1
CB
22852019-11-04 Christian Biesinger <cbiesinger@google.com>
2286
2287 * psympriv.h: Add static_asserts for sizeof (general_symbol_info)
2288 and sizeof (symbol).
2289 * symtab.h: Add a static_assert for sizeof (partial_symbol).
2290
dae8b3eb
RO
22912019-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2292
2293 * NEWS (Changes since GDB 8.3): Document Solaris 10 removal.
2294 * configure.host: Mark *-*-solaris2.10* obsolete.
2295 * configure.tgt: Mark Solaris < 11 obsolete.
2296 * MAINTAINERS (Target Instruction Set Architectures) <sparc>:
2297 Update target triplet.
2298
5df96a4e
TT
22992019-11-01 Tom Tromey <tromey@adacore.com>
2300
2301 * utils.c (print_sys_errmsg): Simplify.
2302
b7481649
TT
23032019-11-01 Tom Tromey <tromey@adacore.com>
2304
2305 * gdbsupport/mingw-strerror.c (safe_strerror): Constify result.
2306
e48f6033
CB
23072019-11-01 Christian Biesinger <cbiesinger@google.com>
2308
2309 * configure: Regenerate.
2310 * configure.ac: Remove check for strerror_r.
2311 * gdbsupport/common.m4: Check for strerror_r.
2312
bd5766ec
LM
23132019-11-01 Luis Machado <luis.machado@linaro.org>
2314
2315 PR gdb/25124
2316
2317 * arm-tdep.c (arm_per_objfile): Rename to ...
2318 (arm_per_bfd): ... this.
2319 (arm_objfile_data_key): Rename to ...
2320 (arm_bfd_data_key): ... this.
2321 (arm_find_mapping_symbol): Adjust access to new bfd_key-based
2322 data.
2323 (arm_record_special_symbol): Likewise.
2324
e1709896
AB
23252019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
2326
2327 * ada-typeprint.c (ada_print_typedef): Don't print newline at the
2328 end.
2329 * c-typeprint.c (c_print_typedef): Likewise.
2330 * f-typeprint.c (f_print_typedef): Likewise.
2331 * m2-typeprint.c (m2_print_typedef): Likewise.
2332 * p-typeprint.c (pascal_print_typedef): Likewise.
2333 * rust-lang.c (rust_print_typedef): Likewise.
2334 * symtab.c (print_symbol_info): Print a newline after calling
2335 typedef_print.
2336
165f8965
AB
23372019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
2338
2339 * symtab.c (info_module_cmdlist): New variable.
2340 (info_module_command): New function.
2341 (search_module_symbols): New function.
2342 (info_module_subcommand): New function.
2343 (struct info_modules_var_func_options): New struct.
2344 (info_modules_var_func_options_defs): New variable.
2345 (make_info_modules_var_func_options_def_group): New function.
2346 (info_module_functions_command): New function.
2347 (info_module_variables_command): New function.
2348 (info_module_var_func_command_completer): New function.
2349 (_initialize_symtab): Register new 'info module functions' and
2350 'info module variables' commands.
2351 * symtab.h (typedef symbol_search_in_module): New typedef.
2352 (search_module_symbols): Declare new function.
2353 * NEWS: Mention new commands.
2354
59c35742
AB
23552019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
2356
2357 * dwarf2read.c (dw2_symtab_iter_next): Handle MODULE_DOMAIN.
2358 (dw2_expand_marked_cus): Handle MODULES_DOMAIN.
2359 (dw2_debug_names_iterator::next): Handle MODULE_DOMAIN and
2360 MODULES_DOMAIN.
2361 (scan_partial_symbols): Only create partial module symbols for non
2362 declarations.
2363 * psymtab.c (recursively_search_psymtabs): Handle MODULE_DOMAIN
2364 and MODULES_DOMAIN.
2365 * symtab.c (search_domain_name): Likewise.
2366 (search_symbols): Likewise.
2367 (print_symbol_info): Likewise.
2368 (symtab_symbol_info): Likewise.
2369 (info_modules_command): New function.
2370 (_initialize_symtab): Register 'info modules' command.
2371 * symtab.h (enum search_domain): Add MODULES_DOMAIN.
2372 * NEWS: Mention new 'info modules' command.
2373
aed61d02
PW
23742019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2375
2376 * NEWS: Mention $_gdb_setting, $_gdb_setting_str, $_gdb_maint_setting
2377 and $_gdb_maint_setting_str.
2378
9ad9b77d
PW
23792019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2380
2381 * cli/cli-cmds.c (setting_cmd, value_from_setting)
2382 (gdb_setting_internal_fn, gdb_maint_setting_internal_fn)
2383 (str_value_from_setting, gdb_setting_str_internal_fn)
2384 (gdb_maint_setting_str_internal_fn): New functions.
2385 (_initialize_cli_cmds): Define the new convenience functions.
2386 * gdb/cli/cli-setshow.h (get_setshow_command_value_string): Constify.
2387 * gdb/cli/cli-setshow.c (get_setshow_command_value_string): Constify.
2388
8d6efaa2
CB
23892019-10-31 Christian Biesinger <cbiesinger@google.com>
2390
2391 * agent.c (set_can_use_agent): When the setting is turned on,
2392 look up agent symbols if we don't have them yet.
2393 (agent_new_objfile): Don't look up agent symbols when the agent
2394 setting is off.
2395
33cb1647
CB
23962019-10-31 Christian Biesinger <cbiesinger@google.com>
2397
2398 * config.in: Regenerate.
2399
b231e86a
CB
24002019-10-31 Christian Biesinger <cbiesinger@google.com>
2401
2402 * configure: Regenerate.
2403 * configure.ac: Check for strerror_r.
2404 * gdbsupport/common-utils.h (safe_strerror): Change return value
2405 to const char * and document that this function is now threadsafe.
2406 * gdbsupport/posix-strerror.c (safe_strerror): Make buf
2407 thread_local and call strerror_r, if available.
2408 * utils.c (perror_string): Update.
2409 (print_sys_errmsg): Update.
2410
a2726d4f
LM
24112019-10-31 Luis Machado <luis.machado@linaro.org>
2412
2413 * arm-tdep.c (arm_exidx_data_key): Use bfd_key instead of
2414 objfile_key.
2415 (arm_exidx_new_objfile): Adjust to use objfile->obfd instead of
2416 objfile to fetch per-bfd data.
2417 (arm_find_exidx_entry): Likewise.
2418
75cafaa6
CB
24192019-10-31 Christian Biesinger <cbiesinger@google.com>
2420
2421 * gdbsupport/agent.c (debug_agent): Change type to bool.
2422 (use_agent): Likewise.
2423 (all_agent_symbols_look_up): Likewise.
2424 (agent_loaded_p): Change return value to bool.
2425 (agent_look_up_symbols): Update.
2426 (agent_capability_check): Change return value to bool.
2427 * gdbsupport/agent.h (agent_loaded_p): Likewise.
2428 (debug_agent): Change type to bool.
2429 (use_agent): Likewise.
2430 (agent_capability_check): Change return value to bool.
2431
808590ec
CB
24322019-10-30 Christian Biesinger <cbiesinger@google.com>
2433
2434 * minsyms.c (clear_minimal_symbol_hash_tables): New function.
2435 (build_minimal_symbol_hash_tables): Code to clear the table moved
2436 to clear_minimal_symbol_hash_tables.
2437 (minimal_symbol_reader::install): Call clear_minimal_symbol_hash_tables
2438 when needed.
2439
f18ad8a1
SM
24402019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2441
2442 * infcmd.c: Remove includes.
2443 * infrun.c: Remove includes.
2444
de93309a
SM
24452019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2446
2447 * ada-lang.h (GROW_VECT): Move to ada-lang.c.
2448 (grow_vect): Remove declaration.
2449 (ada_type_of_array): Remove declaration.
2450 (ada_update_initial_language): Remove declaration.
2451 (ada_fold_name): Remove declaration.
2452 (ada_fill_in_ada_prototype): Remove declaration.
2453 (user_select_syms): Remove declaration.
2454 (get_selections): Remove declaration.
2455 (ada_tag_type): Remove declaration.
2456 (ada_value_tag): Remove declaration.
2457 (ada_is_others_clause): Remove declaration.
2458 (ada_in_variant): Remove declaration.
2459 (ada_value_struct_elt): Remove declaration.
2460 (ada_attribute_name): Remove declaration.
2461 (ada_system_address_type): Remove declaration.
2462 * ada-lang.c (ada_watch_location_expression): Make static.
2463 (GROW_VECT): Move here from ada-lang.h.
2464 (grow_vect): Make static.
2465 (ada_update_initial_language): Make static.
2466 (ada_fold_name): Make static.
2467 (ada_type_of_array): Make static.
2468 (encoded_ordered_before): Move up.
2469 (sort_choices): Move up.
2470 (print_signatures): Move up.
2471 (ada_print_symbol_signature): Move up.
2472 (get_selections): Move up and make static.
2473 (user_select_syms): Move up and make static.
2474 (ada_value_struct_elt): Move up and make static.
2475 (ada_tag_type): Make static.
2476 (ada_value_tag): Make static.
2477 (ada_is_others_clause): Make static.
2478 (ada_in_variant): Make static.
2479 (ada_attribute_name): Make static.
2480
cdc46a9f
SM
24812019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2482
2483 * ada-lang.c: Remove includes.
2484 * ada-typeprint.c: Remove includes.
2485 * ada-valprint.c: Remove includes.
2486
90421c56
SM
24872019-10-29 Simon Marchi <simon.marchi@efficios.com>
2488
2489 * addrmap.c: Add static assertions of type size, moved from
2490 _initialize_addrmap.
2491 (_initialize_addrmap): Remove.
2492
31edb802
CB
24932019-10-29 Christian Biesinger <cbiesinger@google.com>
2494
2495 * coffread.c (record_minimal_symbol): Update.
2496 (process_coff_symbol): Update.
2497 * dbxread.c (read_dbx_symtab): Update.
2498 * dwarf2read.c (add_partial_symbol): Update.
2499 (fixup_go_packaging): Update.
2500 (load_partial_dies): Update.
2501 (new_symbol): Update.
2502 * elfread.c (record_minimal_symbol): Change signature to use
2503 gdb::string_view instead of name+len.
2504 (elf_symtab_read): Update.
2505 (elf_rel_plt_read): Update.
2506 * mdebugread.c (parse_partial_symbols): Update.
2507 (handle_psymbol_enumerators): Update.
2508 (new_symbol): Update.
2509 * minsyms.c (minimal_symbol_reader::record_full): Change signature
2510 to use gdb::string_view instead of name+len.
2511 * minsyms.h (class minimal_symbol_reader) <record_full>: Likewise.
2512 * psympriv.h (add_psymbol_to_list): Likewise.
2513 * psymtab.c (add_psymbol_to_bcache): Likewise.
2514 (add_psymbol_to_list): Likewise.
2515 * stabsread.c (define_symbol): Update.
2516 * symtab.c (symbol_set_names): Change signature to use gdb::string_view.
2517 * symtab.h (SYMBOL_SET_NAMES): Likewise.
2518 (symbol_set_names): Likewise.
2519 * xcoffread.c (scan_xcoff_symtab): Update.
2520
0c921b21
CB
25212019-10-29 Christian Biesinger <cbiesinger@google.com>
2522
2523 * symtab.h (symbol_set_names): Document that copy_name must be
2524 set to true for non-nullterminated strings.
2525 * symtab.c (symbol_set_names): Only make a nullterminated copy of
2526 linkage_name if the entry was not found and we need to demangle.
2527
35e65c49
CB
25282019-10-29 Christian Biesinger <cbiesinger@google.com>
2529
2530 * Makefile.in (HFILES_NO_SRCDIR): Add gdb_binary_search.h.
2531 * dwarf2-frame.c (bsearch_fde_cmp): Update.
2532 (dwarf2_frame_find_fde): Replace bsearch with gdb::binary_search.
2533 * gdbsupport/gdb_binary_search.h: New file.
2534
ed2a2229
CB
25352019-10-29 Christian Biesinger <cbiesinger@google.com>
2536
2537 * NEWS: Mention new --with-system-gdbinit-dir option.
2538 * config.in: Regenerate.
2539 * configure: Regenerate.
2540 * configure.ac: Add new option --with-system-gdbinit-dir.
2541 * extension.c (get_ext_lang_of_file): Return extension_language_gdb
2542 for a ".gdb" suffix.
2543 * main.c (get_init_files): Change system_gdbinit argument to
2544 a vector and return the files in SYSTEM_GDBINIT_DIR in
2545 addition to SYSTEM_GDBINIT.
2546 (captured_main_1): Update.
2547 (print_gdb_help): Update.
2548 * top.c (print_gdb_configuration): Also print the value of
2549 SYSTEM_GDBINIT_DIR.
2550
87f34879
CB
25512019-10-28 Christian Biesinger <cbiesinger@google.com>
2552
2553 * gdbsupport/common-utils.h (startswith): Add an overloaded version
2554 that takes gdb::string_view arguments.
2555
30baf67b
TV
25562019-10-26 Tom de Vries <tdevries@suse.de>
2557
2558 * aarch64-linux-tdep.c: Fix typos in comments.
2559 * aarch64-tdep.c: Same.
2560 * ada-lang.c: Same.
2561 * amd64-nat.c: Same.
2562 * arc-tdep.c: Same.
2563 * arch/aarch64-insn.c: Same.
2564 * block.c: Same.
2565 * breakpoint.h: Same.
2566 * btrace.h: Same.
2567 * c-varobj.c: Same.
2568 * cli/cli-decode.c: Same.
2569 * cli/cli-script.c: Same.
2570 * cli/cli-utils.h: Same.
2571 * coff-pe-read.c: Same.
2572 * coffread.c: Same.
2573 * compile/compile-cplus-symbols.c: Same.
2574 * compile/compile-object-run.c: Same.
2575 * completer.c: Same.
2576 * corelow.c: Same.
2577 * cp-support.c: Same.
2578 * demangle.c: Same.
2579 * dwarf-index-write.c: Same.
2580 * dwarf2-frame.c: Same.
2581 * dwarf2-frame.h: Same.
2582 * eval.c: Same.
2583 * frame-base.h: Same.
2584 * frame.h: Same.
2585 * gdbcmd.h: Same.
2586 * gdbtypes.h: Same.
2587 * gnu-nat.c: Same.
2588 * guile/scm-objfile.c: Same.
2589 * i386-tdep.c: Same.
2590 * i386-tdep.h: Same.
2591 * infcall.c: Same.
2592 * infcall.h: Same.
2593 * linux-nat.c: Same.
2594 * m68k-tdep.c: Same.
2595 * macroexp.c: Same.
2596 * memattr.c: Same.
2597 * mi/mi-cmd-disas.c: Same.
2598 * mi/mi-getopt.h: Same.
2599 * mi/mi-main.c: Same.
2600 * minsyms.c: Same.
2601 * nat/aarch64-sve-linux-sigcontext.h: Same.
2602 * objfiles.h: Same.
2603 * ppc-linux-nat.c: Same.
2604 * ppc-linux-tdep.c: Same.
2605 * ppc-tdep.h: Same.
2606 * progspace.h: Same.
2607 * prologue-value.h: Same.
2608 * python/py-evtregistry.c: Same.
2609 * python/py-instruction.h: Same.
2610 * record-btrace.c: Same.
2611 * record-full.c: Same.
2612 * remote.c: Same.
2613 * rs6000-tdep.c: Same.
2614 * ser-tcp.c: Same.
2615 * sol-thread.c: Same.
2616 * sparc-sol2-tdep.c: Same.
2617 * sparc64-tdep.c: Same.
2618 * stabsread.c: Same.
2619 * symfile.c: Same.
2620 * symtab.h: Same.
2621 * target.c: Same.
2622 * tracepoint.c: Same.
2623 * tui/tui-data.h: Same.
2624 * tui/tui-io.c: Same.
2625 * tui/tui-win.c: Same.
2626 * tui/tui.c: Same.
2627 * unittests/rsp-low-selftests.c: Same.
2628 * user-regs.h: Same.
2629 * utils.c: Same.
2630 * utils.h: Same.
2631 * valarith.c: Same.
2632 * valops.c: Same.
2633 * valprint.c: Same.
2634 * valprint.h: Same.
2635 * value.c: Same.
2636 * value.h: Same.
2637 * varobj.c: Same.
2638 * x86-nat.h: Same.
2639 * xtensa-tdep.c: Same.
2640
1834d45f
AT
26412019-10-25 Ali Tamur <tamur@google.com>
2642
2643 * charset.c (find_charset_names): Reflect API change.
2644
5396ae17
CB
26452019-10-25 Christian Biesinger <cbiesinger@google.com>
2646
2647 * symtab.c (struct demangled_name_entry): Change demangled name
2648 to a unique_xmalloc_ptr<char>, now that we don't allocate it as
2649 part of the struct anymore.
2650 (symbol_set_names): No longer obstack allocate + copy the demangled
2651 name, just store the allocated name from bfd.
2652
93878f47
TT
26532019-10-25 Tom Tromey <tromey@adacore.com>
2654
2655 * dwarf2-frame.c (dwarf2_cie_table): Now a typedef.
2656 (bsearch_cie_cmp, add_cie): Remove.
2657 (find_cie): Reimplement.
2658 (decode_frame_entry_1, decode_frame_entry): Change type. Update.
2659 (dwarf2_build_frame_info): Update.
2660
7b71fc97
L
26612019-10-24 H.J. Lu <hongjiu.lu@intel.com>
2662
2663 PR gdb/25126
2664 * symfile.c (reread_symbols): Call forget_cached_source_info to
2665 clear the stale source cache.
2666
cbb5a2ea
CB
26672019-10-24 Christian Biesinger <cbiesinger@google.com>
2668
2669 * configure: Regenerate.
2670 * configure.ac: Remove code that sets python_has_threads.
2671
71737c43
CB
26722019-10-24 Christian Biesinger <cbiesinger@google.com>
2673
2674 * config.in: Regenerate.
2675 * configure: Regenerate.
2676 * configure.ac: Remove the code that uses sed to get the python
2677 version and defines HAVE_LIBPYTHON2_6 / HAVE_LIBPYTHON2_7.
2678
33d569b7
AB
26792019-10-24 Andrew Burgess <andrew.burgess@embecosm.com>
2680
2681 * python/py-progspace.c (pspy_block_for_pc): Return None for all
2682 error paths.
2683
f16f7b7c
TT
26842019-10-23 Tom Tromey <tom@tromey.com>
2685
2686 * arc-tdep.c: Remove ".." from include.
2687 * frv-tdep.c: Remove ".." from include.
2688 * lm32-tdep.c: Remove ".." from include.
2689 * microblaze-tdep.c: Remove ".." from include.
2690 * or1k-tdep.h: Remove ".." from include.
2691 * s12z-tdep.c: Remove ".." from include.
2692 * Makefile.in (OPCODES_CFLAGS): Add comment.
2693 (TOP_CFLAGS): New variable.
2694 (INTERNAL_CFLAGS_BASE): Add TOP_CFLAGS.
2695
6999161a
TT
26962019-10-23 Tom Tromey <tom@tromey.com>
2697
2698 * Makefile.in (READLINE_DIR): Update.
2699
12e7c35e
TBA
27002019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2701
2702 * infcall.c (call_function_by_hand_dummy): Fix the function
2703 comment. And extract out a code section into...
2704 (reserve_stack_space): ...this new function.
2705
37055cad
TBA
27062019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2707
2708 * infcall.c (value_arg_coerce): Remove an unused parameter.
2709 (call_function_by_hand_dummy): Update the call to
2710 'value_arg_coerce'.
2711
39bcc47c
TBA
27122019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2713
2714 * infcall.c (call_function_by_hand_dummy): Refactor.
2715
bd888c0f
TBA
27162019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2717
2718 * MAINTAINERS (Write After Approval): Add Tankut Baris Aktemur.
2719
c12d372d
TT
27202019-10-23 Tom Tromey <tom@tromey.com>
2721
2722 * configure: Rebuild.
2723 * configure.ac: Don't check for sigprocmask.
2724 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for sigprocmask.
2725
4d0b984b
TT
27262019-10-23 Tom Tromey <tom@tromey.com>
2727
2728 * configure: Rebuild.
2729 * acinclude.m4: Use m4_include, not sinclude.
2730
7e785608
TV
27312019-10-23 Tom de Vries <tdevries@suse.de>
2732
2733 PR breakpoints/24687
2734 * symtab.c (iterate_over_some_symtabs): Apply gdb_realpath on fullname.
2735
403772ef
CB
27362019-10-22 Christian Biesinger <cbiesinger@google.com>
2737
2738 * symtab.c (struct demangled_name_entry) <language>: Change from
2739 bitfield to regular variable.
2740
3a494279
CB
27412019-10-22 Christian Biesinger <cbiesinger@google.com>
2742
2743 * symtab.c (struct demangled_name_entry): Add a constructor.
2744 (free_demangled_name_entry): New function to call the destructor
2745 for demangled_name_entry.
2746 (create_demangled_names_hash): Pass free_demangled_name_entry to
2747 htab_create_alloc.
2748 (symbol_set_names): Call placement new for demangled_name_entry.
2749 * utils.c: No longer include xxhash.h here, now that fast_hash
2750 is inlined in the header.
2751 * utils.h: Instead, include it here.
2752
ccb1ba62
CB
27532019-10-22 Christian Biesinger <cbiesinger@google.com>
2754
2755 * Makefile.in: Link with libxxhash.
2756 * config.in: Regenerate.
2757 * configure: Regenerate.
2758 * configure.ac: Search for libxxhash.
2759 * utils.c (fast_hash): Use xxhash if present.
2760
1a6ff1a9
CB
27612019-10-22 Christian Biesinger <cbiesinger@google.com>
2762
2763 * utils.h (fast_hash): New function.
2764 * symtab.c (hash_demangled_name_entry): Call new function
2765 fast_hash.
2766
7bb43059
CB
27672019-10-22 Christian Biesinger <cbiesinger@google.com>
2768
2769 * symtab.c (struct demangled_name_entry): Change type of mangled
2770 to gdb::string_view. Also adds a constructor that takes the
2771 mangled name.
2772 (hash_demangled_name_entry): Update.
2773 (eq_demangled_name_entry): Update.
2774 (free_demangled_name_entry): New function to call the destructor
2775 now that this is not a POD anymore.
2776 (create_demangled_names_hash): Pass free_demangled_name_entry to
2777 htab_create_alloc.
2778 (symbol_set_names): Update.
2779
7ba99d21
AT
27802019-10-21 Ali Tamur <tamu@google.com>
2781
2782 * dwarf2read.c (dir_index): Change type.
2783 (file_name_index): Likewise.
2784 (line_header::include_dir_at): Change comment and implementation on
2785 whether it is DWARF 5.
2786 (line_header::is_valid_file_index): New function.
2787 (line_header::file_name_at): Change comment and implementation on
2788 whether it is DWARF 5.
2789 (line_header::file_names): Change to private field renamed as
2790 m_file_names and introduce a new accessor method.
2791 (line_header::file_names_size): New method.
2792 (line_header::include_dirs): Change to private field and rename as
2793 m_include_dirs.
2794 (dw2_get_file_names_reader): Define local var at a smaller scope and
2795 reflect API change.
2796 (dwarf2_cu::setup_type_unit_groups): Reflect API change.
2797 (process_structure_scope): Likewise.
2798 (line_header::add_include_dir): Change message and reflect renaming.
2799 (line_header::add_file_name): Likewise.
2800 (read_formatted_entries): Handle DW_FORM_data16.
2801 (dwarf_decode_line_header): Fix line header length calculation.
2802 (psymtab_include_file_name): Change comment and API.
2803 (lnp_state_machine::m_file): Update comment and reflect type change.
2804 (lnp_state_machine::record_line): Reflect type change.
2805 (dwarf_decode_lines): Reflect API change.
2806 (file_file_name): Likewise.
2807 (file_full_name): Likewise.
2808
45f47c3a
AB
28092019-10-21 Andrew Burgess <andrew.burgess@embecosm.com>
2810
2811 * objfiles.c (sort_cmp): Ensure that !(a < a) holds true.
2812
e5f3c0e3
TT
28132019-10-21 Tom Tromey <tom@tromey.com>
2814
2815 * tui/tui-winsource.h (tui_exec_info_content): Remove typedef.
2816
a0a461e5
TT
28172019-10-21 Tom Tromey <tom@tromey.com>
2818
2819 * configure.ac (nm.h): Conditionally create nm.h link. Subst
2820 NM_H. Use AC_CONFIG_LINKS.
2821 * configure: Rebuild.
2822 * Makefile.in (NM_H): New variable.
2823 (generated_files): Add NM_H. Remove gcore.
2824 (nm.h, stamp-nmh): New targets.
2825
54d83b8d
TT
28262019-10-20 Tom Tromey <tom@tromey.com>
2827
2828 * objfiles.h (unlink_objfile, put_objfile_before): Don't declare.
2829 * objfiles.c (unlink_objfile): Move earlier. Now static. Remove
2830 obsolete comment.
2831 (put_objfile_before): Now static.
2832
23771117
SM
28332019-10-19 Simon Marchi <simon.marchi@polymtl.ca>
2834
2835 * gdbsupport/common-utils.h (startswith): Change return type to
2836 bool.
2837
39ef2f62
CB
28382019-10-19 Christian Biesinger <cbiesinger@google.com>
2839
2840 * bcache.c (bcache::print_statistics): Use std::sort instead of qsort.
2841 * breakpoint.c (bp_locations_compare): Rename to...
2842 (bp_location_is_less_than): ...this, and change to std::sort semantics.
2843 (update_global_location_list): Use std::sort instead of qsort.
2844 * buildsym.c (compare_line_numbers): Rename to...
2845 (lte_is_less_than): ...this, and change to std::sort semantics.
2846 (buildsym_compunit::end_symtab_with_blockvector): Use std::sort
2847 instead of qsort.
2848 * disasm.c (compare_lines): Rename to...
2849 (line_is_less_than): ...this, and change to std::sort semantics.
2850 (do_mixed_source_and_assembly_deprecated): Call std::sort instead
2851 of qsort.
2852 * dwarf2-frame.c (qsort_fde_cmp): Rename to...
2853 (fde_is_less_than): ...this, and change to std::sort semantics.
2854 (dwarf2_build_frame_info): Call std::sort instead of qsort.
2855 * mdebugread.c (compare_blocks):
2856 (block_is_less_than): ...this, and change to std::sort semantics.
2857 (sort_blocks): Call std::sort instead of qsort.
2858 * objfiles.c (qsort_cmp): Rename to...
2859 (sort_cmp): ...this, and change to std::sort semantics.
2860 (update_section_map): Call std::sort instead of qsort.
2861 * remote.c (compare_pnums): Remove.
2862 (map_regcache_remote_table): Call std::sort instead of qsort.
2863 * utils.c (compare_positive_ints): Remove.
2864 * utils.h (compare_positive_ints): Remove.
2865 * xcoffread.c (compare_lte): Remove.
2866 (arrange_linetable): Call std::sort instead of qsort.
2867
f71433ee
SDJ
28682019-10-19 Sergio Durigan Junior <sergiodj@redhat.com>
2869
2870 * symfile.c (init_entry_point_info): Fix typo.
2871 * i386-darwin-tdep.c (darwin_dwarf_signal_frame_p): Fix typo.
2872
85102364
TV
28732019-10-18 Tom de Vries <tdevries@suse.de>
2874
2875 * aarch64-tdep.c: Fix typos in comments.
2876 * ada-lang.c: Same.
2877 * ada-tasks.c: Same.
2878 * alpha-tdep.c: Same.
2879 * alpha-tdep.h: Same.
2880 * amd64-nat.c: Same.
2881 * amd64-windows-tdep.c: Same.
2882 * arc-tdep.c: Same.
2883 * arc-tdep.h: Same.
2884 * arch-utils.c: Same.
2885 * arm-nbsd-tdep.c: Same.
2886 * arm-tdep.c: Same.
2887 * ax-gdb.c: Same.
2888 * blockframe.c: Same.
2889 * btrace.c: Same.
2890 * c-varobj.c: Same.
2891 * coff-pe-read.c: Same.
2892 * coffread.c: Same.
2893 * cris-tdep.c: Same.
2894 * darwin-nat.c: Same.
2895 * dbxread.c: Same.
2896 * dcache.c: Same.
2897 * disasm.c: Same.
2898 * dtrace-probe.c: Same.
2899 * dwarf-index-write.c: Same.
2900 * dwarf2-frame-tailcall.c: Same.
2901 * dwarf2-frame.c: Same.
2902 * dwarf2read.c: Same.
2903 * eval.c: Same.
2904 * exceptions.c: Same.
2905 * fbsd-tdep.c: Same.
2906 * findvar.c: Same.
2907 * frame.c: Same.
2908 * frv-tdep.c: Same.
2909 * gnu-v3-abi.c: Same.
2910 * go32-nat.c: Same.
2911 * h8300-tdep.c: Same.
2912 * hppa-tdep.c: Same.
2913 * i386-linux-tdep.c: Same.
2914 * i386-tdep.c: Same.
2915 * ia64-libunwind-tdep.c: Same.
2916 * ia64-tdep.c: Same.
2917 * infcmd.c: Same.
2918 * infrun.c: Same.
2919 * linespec.c: Same.
2920 * linux-nat.c: Same.
2921 * linux-thread-db.c: Same.
2922 * machoread.c: Same.
2923 * mdebugread.c: Same.
2924 * mep-tdep.c: Same.
2925 * mn10300-tdep.c: Same.
2926 * namespace.c: Same.
2927 * objfiles.c: Same.
2928 * opencl-lang.c: Same.
2929 * or1k-tdep.c: Same.
2930 * osabi.c: Same.
2931 * ppc-linux-nat.c: Same.
2932 * ppc-linux-tdep.c: Same.
2933 * ppc-sysv-tdep.c: Same.
2934 * printcmd.c: Same.
2935 * procfs.c: Same.
2936 * record-btrace.c: Same.
2937 * record-full.c: Same.
2938 * remote-fileio.c: Same.
2939 * remote.c: Same.
2940 * rs6000-tdep.c: Same.
2941 * s12z-tdep.c: Same.
2942 * score-tdep.c: Same.
2943 * ser-base.c: Same.
2944 * ser-go32.c: Same.
2945 * skip.c: Same.
2946 * sol-thread.c: Same.
2947 * solib-svr4.c: Same.
2948 * solib.c: Same.
2949 * source.c: Same.
2950 * sparc-nat.c: Same.
2951 * sparc-sol2-tdep.c: Same.
2952 * sparc-tdep.c: Same.
2953 * sparc64-tdep.c: Same.
2954 * stabsread.c: Same.
2955 * stack.c: Same.
2956 * symfile.c: Same.
2957 * symtab.c: Same.
2958 * target-descriptions.c: Same.
2959 * target-float.c: Same.
2960 * thread.c: Same.
2961 * utils.c: Same.
2962 * valops.c: Same.
2963 * valprint.c: Same.
2964 * value.c: Same.
2965 * varobj.c: Same.
2966 * windows-nat.c: Same.
2967 * xcoffread.c: Same.
2968 * xstormy16-tdep.c: Same.
2969 * xtensa-tdep.c: Same.
2970
c5adaa19
TT
29712019-10-17 Tom Tromey <tromey@adacore.com>
2972
2973 * configure: Rebuild.
2974 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
2975 in AC_CONFIG_FILES invocation.
2976 * Makefile.in (Makefile, data-directory/Makefile, stamp-h): Use
2977 new-style config.status invocation.
2978
405feb71
TV
29792019-10-17 Tom de Vries <tdevries@suse.de>
2980
2981 * arm-nbsd-nat.c: Fix typos in comments.
2982 * arm-tdep.c: Same.
2983 * darwin-nat-info.c: Same.
2984 * dwarf2read.c: Same.
2985 * elfread.c: Same.
2986 * event-top.c: Same.
2987 * findvar.c: Same.
2988 * gdbtypes.c: Same.
2989 * hppa-tdep.c: Same.
2990 * i386-tdep.c: Same.
2991 * jit.c: Same.
2992 * main.c: Same.
2993 * mdebugread.c: Same.
2994 * moxie-tdep.c: Same.
2995 * nto-procfs.c: Same.
2996 * osabi.c: Same.
2997 * ppc-linux-tdep.c: Same.
2998 * remote.c: Same.
2999 * riscv-tdep.c: Same.
3000 * s390-tdep.c: Same.
3001 * sh-tdep.c: Same.
3002 * sparc-linux-tdep.c: Same.
3003 * sparc-nat.c: Same.
3004 * stack.c: Same.
3005 * target-descriptions.c: Same.
3006 * top.c: Same.
3007 * varobj.c: Same.
3008
befcd486
TT
30092019-10-16 Tom Tromey <tom@tromey.com>
3010
3011 * objfiles.h (struct objfile) <original_name>: Now const.
3012
17bfe554
CB
30132019-10-16 Christian Biesinger <cbiesinger@google.com>
3014
3015 * gdbsupport/gdb_setjmp.h (SIGSETJMP): Allow passing in the value to
3016 pass on to sigsetjmp's second argument.
3017 * cp-support.c (gdb_demangle): Unblock SIGSEGV if we caught a crash.
3018
950b7495
KS
30192019-10-16 Keith Seitz <keiths@redhat.com>
3020
3021 PR gdb/23567
3022 * dwarf2read.c (dwarf2_per_objfile::locate_sections): Discard
3023 sections whose size is greater than the file size.
3024
ff371ec9
JW
30252019-10-16 Jim Wilson <jimw@sifive.com>
3026
3027 * riscv-tdep.c (riscv_gcc_target_options): New.
3028 (riscv_gnu_triplet_regexp): New.
3029 (riscv_gdbarch_init): Call set_gdbarch_gcc_triplet_options and
3030 set_gdbarch_gnu_triplet_regexp.
3031
fec4e896
CB
30322019-10-16 Christian Biesinger <cbiesinger@google.com>
3033
3034 * Makefile.in: Add xml-builtin.h.
3035 * features/feature_to_c.sh: Add an include for xml-builtin.h
3036 to ensure that the compiler checks that the types match.
3037 * xml-builtin.h: New file.
3038 * xml-support.c (fetch_xml_builtin): Add missing const.
3039 * xml-support.h: Remove declaration of xml_builtins.
3040
d10eccaa
TV
30412019-10-16 Tom de Vries <tdevries@suse.de>
3042
3043 PR tdep/25096
3044 * amd64-tdep.c (amd64_classify_aggregate_field): Factor out of ...
3045 (amd64_classify_aggregate): ... here.
3046 (amd64_classify_aggregate_field): Handled fiels of nested structs
3047 recursively.
3048
745ff14e
TV
30492019-10-16 Tom de Vries <tdevries@suse.de>
3050
3051 PR tdep/24104
3052 * amd64-tdep.c (amd64_push_arguments): Handle AMD64_NO_CLASS in loop
3053 that handles 'theclass'.
3054
791b7405
AB
30552019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
3056
3057 * linespec.c (decode_digits_ordinary): Update comment.
3058 * make-target-delegates: No longer need to handle VEC case.
3059 * memrange.c (normalize_mem_ranges): Update comment.
3060 * namespace.c (add_using_directive): Update comment.
3061 * objc-lang.c (uniquify_strings): Update comment.
3062 * ppc-linux-nat.c (struct thread_points): Update comment.
3063 * probe.h (find_probes_in_objfile): Update comment.
3064 * target.h (enum flash_preserve_mode): Update comment.
3065 * varobj.c (varobj_restrict_range): Update comment.
3066 * varobj.h (varobj_list_children): Update comment.
3067
0dc32745
AB
30682019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
3069
3070 * Makefile.in: Remove references to vec.h and vec.c.
3071 * aarch64-tdep.c: No longer include vec.h.
3072 * ada-lang.c: Likewise.
3073 * ada-lang.h: Likewise.
3074 * arm-tdep.c: Likewise.
3075 * ax.h: Likewise.
3076 * breakpoint.h: Likewise.
3077 * charset.c: Likewise.
3078 * cp-support.h: Likewise.
3079 * dtrace-probe.c: Likewise.
3080 * dwarf2read.c: Likewise.
3081 * extension.h: Likewise.
3082 * gdb_bfd.c: Likewise.
3083 * gdbsupport/gdb_vecs.h: Likewise.
3084 * gdbsupport/vec.c: Remove.
3085 * gdbsupport/vec.h: Remove.
3086 * gdbthread.h: Likewise.
3087 * guile/scm-type.c: Likewise.
3088 * inline-frame.c: Likewise.
3089 * machoread.c: Likewise.
3090 * memattr.c: Likewise.
3091 * memrange.h: Likewise.
3092 * namespace.h: Likewise.
3093 * nat/linux-btrace.h: Likewise.
3094 * osdata.c: Likewise.
3095 * parser-defs.h: Likewise.
3096 * progspace.h: Likewise.
3097 * python/py-type.c: Likewise.
3098 * record-btrace.c: Likewise.
3099 * rust-exp.y: Likewise.
3100 * solib-target.c: Likewise.
3101 * stap-probe.c: Likewise.
3102 * target-descriptions.c: Likewise.
3103 * target-memory.c: Likewise.
3104 * target.h: Likewise.
3105 * varobj.c: Likewise.
3106 * varobj.h: Likewise.
3107 * xml-support.h: Likewise.
3108
ae640021
AB
31092019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
3110
3111 * gdb/dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile):
3112 Update for new std::vector based implementation.
3113 (process_psymtab_comp_unit_reader): Likewise.
3114 (scan_partial_symbols): Likewise.
3115 (recursively_compute_inclusions): Likewise.
3116 (compute_compunit_symtab_includes): Likewise.
3117 (process_imported_unit_die): Likewise.
3118 (queue_and_load_dwo_tu): Likewise.
3119 (follow_die_sig_1): Likewise.
3120 * gdb/dwarf2read.h: Remove DEF_VEC_P.
3121 (typedef dwarf2_per_cu_ptr): Remove.
3122 (struct dwarf2_per_cu_data) <imported_symtabs_empty>: New
3123 function.
3124 (struct dwarf2_per_cu_data) <imported_symtabs_push>: New function.
3125 (struct dwarf2_per_cu_data) <imported_symtabs_size>: New function.
3126 (struct dwarf2_per_cu_data) <imported_symtabs_free>: New function.
3127 (struct dwarf2_per_cu_data) <imported_symtabs>: Change to
3128 std::vector.
3129
55dfc88f
TT
31302019-10-15 Tom Tromey <tromey@adacore.com>
3131
3132 * windows-nat.c (windows_nat_target::resume): Use %x when logging
3133 TID.
3134
96b49c5e
TT
31352019-10-15 Tom Tromey <tromey@adacore.com>
3136
3137 * windows-nat.c (windows_nat_target::fetch_registers)
3138 (windows_nat_target::store_registers): Rename "pid" to "tid".
3139
953cff56
TT
31402019-10-15 Tom Tromey <tromey@adacore.com>
3141
3142 * gdbarch.h, gdbarch.c: Rebuild.
3143 * gdbarch.sh (gcc_target_options): Change return type to
3144 std::string.
3145 * compile/compile.c (get_args): Update.
3146 * nios2-tdep.c (nios2_gcc_target_options): Return std::string.
3147 * arm-linux-tdep.c (arm_linux_gcc_target_options): Return
3148 std::string.
3149 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): Return
3150 std::string.
3151 * arch-utils.c (default_gcc_target_options): Return std::string.
3152 * arch-utils.h (default_gcc_target_options): Return std::string.
3153 * s390-tdep.c (s390_gcc_target_options): Return std::string.
3154
81e6b8eb
CB
31552019-10-15 Christian Biesinger <cbiesinger@google.com>
3156
3157 * breakpoint.c (breakpoint_chain): Make static.
3158 * tui/tui-winsource.c: Call iterate_over_breakpoints instead
3159 of accessing breakpoint_chain.
3160
95da600f
CB
31612019-10-15 Christian Biesinger <cbiesinger@google.com>
3162
3163 * breakpoint.c (iterate_over_breakpoints): Change function pointer
3164 to a gdb::function_view and return value to bool.
3165 * breakpoint.h (iterate_over_breakpoints): Likewise.
3166 * dummy-frame.c (pop_dummy_frame_bpt): Update.
3167 (pop_dummy_frame): Update.
3168 * guile/scm-breakpoint.c (bpscm_build_bp_list): Update.
3169 (gdbscm_breakpoints): Update.
3170 * python/py-breakpoint.c (build_bp_list): Update.
3171 (gdbpy_breakpoints): Update.
3172 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
3173 Update.
3174 (bpfinishpy_handle_stop): Update.
3175 (bpfinishpy_handle_exit): Update.
3176 * solib-svr4.c (svr4_update_solib_event_breakpoint): Update.
3177 (svr4_update_solib_event_breakpoints): Update.
3178
ba18312d
AA
31792019-10-15 Andreas Arnez <arnez@linux.ibm.com>
3180
3181 * s390-tdep.c (s390_effective_inner_type): Ignore static fields
3182 when unwrapping single-field structs.
3183
6acc1a0b
SM
31842019-10-14 Simon Marchi <simon.marchi@polymtl.ca>
3185
3186 * dwarf2read.c: Remove includes.
3187
284782de
SM
31882019-10-13 Simon Marchi <simon.marchi@polymtl.ca>
3189
3190 * ui-out.c (ui_out::call_do_message): Silence
3191 -Wformat-nonliteral warning.
3192
073bbbb0
SM
31932019-10-12 Simon Marchi <simon.marchi@polymtl.ca>
3194
3195 * breakpoint.c: Remove some includes: continuations.h, skip.h,
3196 mi/mi-main.h, readline/readline.h, readline/history.h. Add
3197 include: readline/tilde.h.
3198
7b9a15e1
CB
31992019-10-12 Christian Biesinger <cbiesinger@google.com>
3200
3201 * remote.c (remote_target::get_trace_status): Remove declaration of
3202 trace_regblock_size.
3203
cc8dee1f
CB
32042019-10-12 Christian Biesinger <cbiesinger@google.com>
3205
3206 * cli/cli-cmds.c (max_user_call_depth): Move comment to header.
3207 (show_user): Remove declaration of cmdlist.
3208 * cli/cli-cmds.h (max_user_call_depth): Declare.
3209 * cli/cli-script.c (execute_user_command): Remove declaration
3210 of max_user_call_depth.
3211
a83d4ef6
JW
32122019-10-11 Jim Wilson <jimw@sifive.com>
3213
5f93c5a6
JW
3214 * gdbsupport/print-utils.h (pulongest): Fix comment.
3215 (plongest): Likewise.
3216 (phex): Add missing comment, mention leading zeros.
3217 (phex_nz): Add mention of no leading zeros to comment.
3218
a83d4ef6
JW
3219 * riscv-tdep.c (riscv_push_dummy_code): Change %lld to %s and use
3220 plongest instead of unsigned long long cast.
3221
26344e0c
CB
32222019-10-10 Christian Biesinger <cbiesinger@google.com>
3223
3224 * main.c (captured_main_1): Include gdbtk.h and remove declarations
3225 for external_editor_command and gdbtk_test.
3226
c2c440a9
CB
32272019-10-10 Christian Biesinger <cbiesinger@google.com>
3228
3229 * mi/mi-cmd-var.c (varobjdebug): Remove declaration.
3230 * varobj.c (varobjdebug): Move comment to...
3231 * varobj.h (varobjdebug): ...here, and declare.
3232
a31bff9d
TT
32332019-10-09 Tom Tromey <tom@tromey.com>
3234
3235 * tui/tui-regs.c (tui_data_window::show_registers): Don't call
3236 erase_data_content.
3237
7523da63
TT
32382019-10-09 Tom Tromey <tom@tromey.com>
3239
3240 * tui/tui-wingeneral.h (tui_delete_win): Don't declare.
3241 * tui/tui-stack.c (tui_locator_window::rerender): Update.
3242 * tui/tui-command.c (tui_cmd_window::resize)
3243 (tui_refresh_cmd_win): Update.
3244 * tui/tui-win.c (tui_resize_all, tui_set_focus_command): Update.
3245 * tui/tui.c (tui_rl_other_window, tui_enable): Update.
3246 * tui/tui-data.c (~tui_gen_win_info): Remove.
3247 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
3248 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
3249 (tui_redisplay_readline, tui_mld_flush)
3250 (tui_mld_erase_entire_line, tui_mld_getc, tui_getc): Update.
3251 * tui/tui-regs.c (tui_data_window::delete_data_content_windows)
3252 (tui_data_window::erase_data_content)
3253 (tui_data_item_window::rerender)
3254 (tui_data_item_window::refresh_window): Update.
3255 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window)
3256 (box_win, tui_gen_win_info::make_window)
3257 (tui_gen_win_info::make_visible): Update.
3258 (tui_delete_win): Remove.
3259 * tui/tui-winsource.c
3260 (tui_source_window_base::do_erase_source_content): Update.
3261 (tui_show_source_line, tui_source_window_base::update_tab_width)
3262 (tui_source_window_base::update_exec_info): Update.
3263 * tui/tui-data.h (struct curses_deleter): New.
3264 (struct tui_gen_win_info) <handle>: Now a unique_ptr.
3265 (struct tui_gen_win_info) <~tui_gen_win_info>: Define.
3266
a7798e7f
TT
32672019-10-09 Tom Tromey <tom@tromey.com>
3268
3269 * tui/tui-wingeneral.h (struct tui_gen_win_info): Don't declare.
3270
5c45899e
TT
32712019-10-09 Tom Tromey <tom@tromey.com>
3272
3273 * tui/tui-data.c (tui_win_is_auxiliary): Remove.
3274 * tui/tui-data.h (tui_win_is_auxiliary): Don't declare.
3275
6d7fd9aa
TT
32762019-10-09 Tom Tromey <tom@tromey.com>
3277
3278 * tui/tui-disasm.c (tui_get_low_disassembly_address): Compute
3279 window height directly.
3280 * tui/tui-layout.h (tui_default_win_viewport_height): Don't
3281 declare.
3282 * tui/tui-layout.c (tui_default_win_height): Remove.
3283 (tui_default_win_viewport_height): Remove.
3284
d2dd1084
TT
32852019-10-09 Tom Tromey <tom@tromey.com>
3286
3287 * tui/tui.h: Remove comments.
3288
cff32449
TV
32892019-10-09 Tom de Vries <tdevries@suse.de>
3290
3291 * python/lib/gdb/printer/bound_registers.py: Use
3292 '^builtin_type_bound128' as regexp argument for
3293 add_builtin_pretty_printer.
3294
6a25e8a2
CB
32952019-10-09 Christian Biesinger <cbiesinger@google.com>
3296
3297 * guile/guile.c (guile_extension_script_ops): Remove forward
3298 declaration and mark as static.
3299 (guile_script_ops): Likewise.
3300 (extension_language_guile): Move further down in the file so
3301 it can reference the definitions for guile_{extension_,}script_ops.
3302
6d9d6da4
AA
33032019-10-09 Andreas Arnez <arnez@linux.ibm.com>
3304
3305 * s390-tdep.c (390_process_record): Handle new arch13 instructions
3306 except SORTL, DFLTCC, and KDSA.
3307
3abea05d
TT
33082019-10-08 Tom Tromey <tromey@adacore.com>
3309
3310 * windows-nat.c (struct windows_thread_info_struct) <sf>: Remove.
3311 (struct safe_symbol_file_add_args): Remove.
3312
dde996e2
TT
33132019-10-08 Tom Tromey <tromey@adacore.com>
3314
3315 * windows-nat.c: Don't include buildsym-legacy.h.
3316
cd6fdaa1
TT
33172019-10-08 Tom Tromey <tromey@adacore.com>
3318
3319 * contrib/ari/gdb_ari.sh (%p): Allow gdb-specific %p extensions.
3320
79bb1944
CB
33212019-10-08 Christian Biesinger <cbiesinger@google.com>
3322
3323 * gdbtypes.c (overload_debug): Move comment to header.
3324 * gdbtypes.h (overload_debug): Declare.
3325 * valops.c: Remove declaration of overload_debug, instead
3326 include gdbtypes.h.
3327
34916edc
CB
33282019-10-08 Christian Biesinger <cbiesinger@google.com>
3329
3330 * language.c (show_language_command): Pass lang_frame_mismatch_warn
3331 through _().
3332 (lang_frame_mismatch_warn): Make const, mark with N_(), and
3333 move comment...
3334 * language.h (lang_frame_mismatch_warn): ... here. Also add
3335 declaration.
3336 * top.c (lang_frame_mismatch_warn): Remove declaration.
3337 (check_frame_language_change): Pass lang_frame_mismatch_warn
3338 through _().
3339
bad5c026
CB
33402019-10-07 Christian Biesinger <cbiesinger@google.com>
3341
3342 * c-lang.h (vtbl_ptr_name): Declare.
3343 * cp-valprint.c (vtbl_ptr_name): Remove "extern" now that we get
3344 it from the header.
3345 * stabsread.c (define_symbol): Remove declaration of vtbl_ptr_name.
3346
51f1fdc3
CB
33472019-10-07 Christian Biesinger <cbiesinger@google.com>
3348
3349 * charset.c (your_gdb_wchar_t_is_bogus): Replace with a
3350 gdb_static_assert.
3351
30d1f018
WP
33522019-10-07 Weimin Pan <weimin.pan@oracle.com>
3353
606813d5
WP
3354 * ../Makefile.def (dependencies): Add all-libctf to all-gdb
3355 * ../Makefile.in: Add "all-gdb: maybe-all-libctf"
30d1f018
WP
3356 * ctfread.c: New file.
3357 * ctfread.h: New file.
3358 * elfread.c: Include ctfread.h.
3359 (struct elfinfo text_p): New member ctfsect.
3360 (elf_locate_sections): Mark CTF section.
3361 (elf_symfile_read): Call elfctf_build_psymtabs.
3362 * Makefile.in (LIBCTF): Add.
3363 (CLIBS): Use it.
3364 (CDEPS): Likewise.
3365 (DIST): Add ctfread.c.
606813d5
WP
3366
33672019-10-07 Andrew Burgess <andrew.burgess@embecosm.com>
3368
3369 * ctfread.c (struct nextfield): Renamed to ...
3370 (struct ctf_nextfield): ... this.
3371 (struct field_info): Renamed to ...
3372 (strut ctf_field_info): ... this.
3373 (attach_fields_to_type): Update for renamed structures.
3374 (ctf_add_member_cb): Likewise.
3375 (ctf_add_enum_member_cb): Likewise.
3376 (process_struct_members): Likewise.
3377 (process_enum_type): Likewise.
30d1f018 3378
518fe38c
WP
33792019-10-07 Weimin Pan <weimin.pan@oracle.com>
3380
3381 * tracectf.h: Rename, was ctf.h.
3382 * tracectf.c: Rename, was ctf.c, replace ctf.h with tracectf.h.
3383 * tracefile.c: Likewise.
3384 * tracepoint.c: Remove unused include ctf.h.
3385 * mi/mi-main.c: Likewise.
3386 * Makefile.in Replace ctf.c with tracectf.c.
3387
225f296a
JB
33882019-10-06 Joel Brobecker <brobecker@adacore.com>
3389
3390 * version.in: Change version number to "9.0.50.DATE-git".
3391
77c2dba3
TT
33922019-10-03 Tom Tromey <tom@tromey.com>
3393
3394 PR rust/24976:
3395 * dwarf2read.c (quirk_rust_enum): Handle single-element unions.
3396
179aed7f
AB
33972019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
3398
3399 * f-lang.c (f_language_defn): Use cp_get_symbol_name_matcher and
3400 cp_search_name_hash.
3401 * NEWS: Add entry about nested function support.
3402
0a4b0913
AB
34032019-10-03 Bernhard Heckel <bernhard.heckel@intel.com>
3404 Andrew Burgess <andrew.burgess@embecosm.com>
3405
3406 * cp-namespace.c (cp_search_static_and_baseclasses): Only search
3407 for nested static variables when searchin VAR_DOMAIN.
3408 * dwarf2read.c (add_partial_symbol): Add nested subroutines to the
3409 global scope, update comment.
3410 (add_partial_subprogram): Call add_partial_subprogram recursively
3411 for nested subroutines when processinng Fortran.
3412 (load_partial_dies): Process the child entities of a subprogram
3413 when processing Fortran.
3414 (partial_die_parent_scope): Handle building scope
3415 for Fortran nested functions.
3416 (process_die): Record that nested functions have a scope.
3417 (new_symbol): Always record Fortran subprograms on the global
3418 symbol list.
3419 (determine_prefix): How to build the prefix for Fortran
3420 subprograms.
3421
d8c06f22
AB
34222019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
3423
3424 * linux-nat.c (linux_nat_filter_event): Don't ignore SIGSTOP if we
3425 have just sent the thread a SIGSTOP and are waiting for it to
3426 arrive.
3427
a8b3b8e9
AB
34282019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
3429
3430 * btrace.c (btrace_add_pc): Remove whitespace before the template
3431 parameter in 'std::vector <...>'.
3432 (parse_xml_btrace_block): Likewise.
3433 (btrace_maint_decode_pt): Likewise.
3434 (btrace_maint_update_packets): Likewise.
3435 (btrace_maint_print_packets): Likewise.
3436 * btrace.h (struct btrace_maint_info): Likewise.
3437 * dwarf2read.c (struct type_unit_group): Likewise.
3438 (build_type_psymtabs_reader): Likewise.
3439 * gdbsupport/btrace-common.c (btrace_data_append): Likewise.
3440 * gdbsupport/btrace-common.h (struct btrace_data_bts): Likewise.
3441 * nat/linux-btrace.c (perf_event_read_bts): Likewise.
3442
4d825eab
TV
34432019-10-03 Tom de Vries <tdevries@suse.de>
3444
3445 * cli/cli-style.c (_initialize_cli_style): Adding a '.' at the end of
3446 the first line of the help text for set/show style metadata.
3447
80fd2826
TT
34482019-10-02 Tom Tromey <tromey@adacore.com>
3449
3450 * Makefile.in (COMMON_SFILES): Add common-inferior.c.
3451 * gdbsupport/common-inferior.c: New file.
3452 * infcmd.c (startup_with_shell): Don't define.
3453 * nat/fork-inferior.h (startup_with_shell): Don't declare.
3454 * gdbsupport/common-inferior.h (startup_with_shell): Declare.
3455 * inferior.h (startup_with_shell): Don't declare.
3456
70054538
CB
34572019-10-02 Christian Biesinger <cbiesinger@google.com>
3458
3459 * gdbsupport/gdb_assert.h: Include errors.h.
3460 * gdbsupport/gdb_string_view.h: Include gdb_assert.h.
3461
37f6a7f4
TT
34622019-10-02 Tom Tromey <tromey@adacore.com>
3463
3464 * NEWS: Add $_ada_exception entry.
3465 * ada-lang.c (struct ada_catchpoint): Add constructor.
3466 <m_kind>: New member.
3467 (allocate_location_exception, re_set_exception): Remove
3468 "ex" parameter.
3469 (should_stop_exception): Compute $_ada_exception.
3470 (check_status_exception, print_it_exception)
3471 (print_one_exception, print_mention_exception): Remove
3472 "ex" parameter.
3473 (allocate_location_catch_exception, re_set_catch_exception)
3474 (check_status_exception, print_it_catch_exception)
3475 (print_one_catch_exception, print_mention_catch_exception)
3476 (print_recreate_catch_exception)
3477 (allocate_location_catch_exception_unhandled)
3478 (re_set_catch_exception_unhandled)
3479 (check_status_exception, print_it_catch_exception_unhandled)
3480 (print_one_catch_exception_unhandled)
3481 (print_mention_catch_exception_unhandled)
3482 (print_recreate_catch_exception_unhandled)
3483 (allocate_location_catch_assert, re_set_catch_assert)
3484 (check_status_assert, print_it_catch_assert)
3485 (print_one_catch_assert, print_mention_catch_assert)
3486 (print_recreate_catch_assert)
3487 (allocate_location_catch_handlers, re_set_catch_handlers)
3488 (check_status_handlers, print_it_catch_handlers)
3489 (print_one_catch_handlers, print_mention_catch_handlers)
3490 (print_recreate_catch_handlers): Remove.
3491 (create_ada_exception_catchpoint): Update.
3492 (initialize_ada_catchpoint_ops): Update.
3493
fccf9de1
TT
34942019-10-02 Tom Tromey <tromey@adacore.com>
3495
3496 * ada-lang.c (ada_lookup_simple_minsyms): Remove.
3497 (create_excep_cond_exprs): Simplify exception string computation.
3498 (ada_exception_catchpoint_cond_string): Likewise.
3499
4b610737
TT
35002019-10-02 Tom Tromey <tromey@adacore.com>
3501
3502 * symmisc.c (dump_msymbols): Don't use MSYMBOL_VALUE_ADDRESS.
3503 * ada-lang.c (lesseq_defined_than): Handle
3504 LOC_STATIC.
3505 * dwarf2read.c (dwarf2_per_objfile): Add can_copy
3506 parameter.
3507 (dwarf2_has_info): Likewise.
3508 (new_symbol): Set maybe_copied on symbol when
3509 appropriate.
3510 * dwarf2read.h (dwarf2_per_objfile): Add can_copy
3511 parameter.
3512 <can_copy>: New member.
3513 * elfread.c (record_minimal_symbol): Set maybe_copied
3514 on symbol when appropriate.
3515 (elf_symfile_read): Update call to dwarf2_has_info.
3516 * minsyms.c (lookup_minimal_symbol_linkage): New
3517 function.
3518 * minsyms.h (lookup_minimal_symbol_linkage): Declare.
3519 * symtab.c (get_symbol_address, get_msymbol_address):
3520 New functions.
3521 * symtab.h (get_symbol_address, get_msymbol_address):
3522 Declare.
3523 (SYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_ADDRESS): Handle
3524 maybe_copied.
3525 (struct symbol, struct minimal_symbol) <maybe_copied>:
3526 New member.
3527
1dd58850
TT
35282019-10-02 Tom Tromey <tromey@adacore.com>
3529
3530 * source.c (struct current_source_location): New.
3531 (current_source_key): New global.
3532 (current_source_symtab, current_source_line)
3533 (current_source_pspace): Remove.
3534 (get_source_location): New function.
3535 (get_current_source_symtab_and_line)
3536 (set_default_source_symtab_and_line)
3537 (set_current_source_symtab_and_line)
3538 (clear_current_source_symtab_and_line, select_source_symtab)
3539 (info_source_command, print_source_lines_base)
3540 (info_line_command, search_command_helper, _initialize_source):
3541 Update.
3542
5c281dbb
TT
35432019-10-02 Tom Tromey <tromey@adacore.com>
3544
3545 * source.c (select_source_symtab): Don't call
3546 decode_line_with_current_source.
3547
d3d32391
AB
35482019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
3549
3550 * symtab.c (lookup_global_symbol): Search global block.
3551
38583298
TT
35522019-10-02 Tom Tromey <tromey@adacore.com>
3553
3554 * coffread.c (process_coff_symbol): Update.
3555 * dwarf2read.c (var_decode_location, new_symbol): Update.
3556 * mdebugread.c (parse_symbol): Update.
3557 * objfiles.c (relocate_one_symbol): Update.
3558 * stabsread.c (define_symbol, fix_common_block)
3559 (scan_file_globals): Update.
3560 * symtab.h (SYMBOL_VALUE_ADDRESS): Expand to an rvalue.
3561 (SET_SYMBOL_VALUE_ADDRESS): New macro.
3562 * xcoffread.c (process_xcoff_symbol): Update.
3563
9344c18f
AA
35642019-10-02 Andreas Arnez <arnez@linux.ibm.com>
3565
3566 * MAINTAINERS: Update my email address.
3567
df07e2c7
AB
35682019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
3569
3570 * dwarf2read.c (struct type_unit_group) <tus>: Convert to
3571 std::vector.
3572 (build_type_psymtabs_reader): Update for std::vector.
3573 (build_type_psymtab_dependencies): Likewise.
3574 * dwarf2read.h: Remove use of DEF_VEC_P.
3575 (typedef sig_type_ptr): Delete.
3576
554ac434
AB
35772019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
3578
3579 * btrace.c (btrace_maint_clear): Update to handle change from VEC
3580 to std::vector.
3581 (btrace_maint_decode_pt): Likewise, and move allocation of the
3582 vector outside of the loop.
3583 (btrace_maint_update_packets): Update to handle change from VEC to
3584 std::vector.
3585 (btrace_maint_print_packets): Likewise.
3586 (maint_info_btrace_cmd): Likewise.
3587 * btrace.h: Remove use of DEF_VEC_O.
3588 (typedef btrace_pt_packet_s): Delete.
3589 (struct btrace_maint_info) <packets>: Change fromm VEC to
3590 std::vector.
3591 * gdbsupport/btrace-common.h: Remove 'vec.h' include.
3592
46f29a9a
AB
35932019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
3594
3595 * btrace.c (btrace_compute_ftrace_bts): Update for std::vector,
3596 make accesses into the vector constant references.
3597 (btrace_add_pc): Update for std::vector.
3598 (btrace_stitch_bts): Likewise.
3599 (parse_xml_btrace_block): Likewise.
3600 (btrace_maint_update_packets): Likewise.
3601 (btrace_maint_print_packets): Likewise.
3602 (maint_info_btrace_cmd): Likewise.
3603 * gdbsupport/btrace-common.c (btrace_data::fini): Update for
3604 std::vector.
3605 (btrace_data::empty): Likewise.
3606 (btrace_data_append): Likewise.
3607 * gdbsupport/btrace-common.h: Remove use of DEF_VEC_O.
3608 (typedef btrace_block_s): Delete.
3609 (struct btrace_block): Add constructor.
3610 (struct btrace_data_bts) <blocks>: Change to std::vector.
3611 * nat/linux-btrace.c (perf_event_read_bts): Update for
3612 std::vector.
3613 (linux_read_bts): Likewise.
3614
d770d56f
TT
36152019-10-01 Tom Tromey <tom@tromey.com>
3616
3617 * cli/cli-logging.c (show_logging_filename): Use styled_string.
3618
9d636d67
TT
36192019-10-01 Tom Tromey <tom@tromey.com>
3620
3621 * stack.c (print_frame, info_frame_command_core): Use
3622 styled_string.
3623 * linux-thread-db.c (try_thread_db_load_1)
3624 (try_thread_db_load_from_pdir_1): Use styled_string.
3625 * auto-load.c (file_is_auto_load_safe, execute_script_contents)
3626 (auto_load_section_scripts, info_auto_load_local_gdbinit)
3627 (maybe_print_unsupported_script_warning)
3628 (maybe_print_script_not_found_warning): Use styled_string.
3629 * ada-lang.c (user_select_syms): Use styled_string.
3630
7f6aba03
TT
36312019-10-01 Tom Tromey <tom@tromey.com>
3632
3633 * p-lang.c (pascal_printstr): Use metadata style.
3634 * value.c (show_convenience): Use metadata style.
3635 * valprint.c (valprint_check_validity, val_print_optimized_out)
3636 (val_print_not_saved, val_print_unavailable)
3637 (val_print_invalid_address, generic_val_print, val_print)
3638 (value_check_printable, val_print_array_elements): Use metadata
3639 style.
3640 * ui-out.h (class ui_out) <field_fmt>: New overload.
3641 <do_field_fmt>: Add style parameter.
3642 * ui-out.c (ui_out::field_fmt): New overload.
3643 * typeprint.c (type_print_unknown_return_type)
3644 (val_print_not_allocated, val_print_not_associated): Use metadata
3645 style.
3646 * tui/tui-out.h (class tui_ui_out) <do_field_fmt>: Add style
3647 parameter.
3648 * tui/tui-out.c (tui_ui_out::do_field_fmt): Update.
3649 * tracepoint.c (tvariables_info_1): Use metadata style.
3650 * stack.c (print_frame_arg, print_frame_info, print_frame)
3651 (info_frame_command_core): Use metadata style.
3652 * skip.c (info_skip_command): Use metadata style.
3653 * rust-lang.c (rust_print_enum): Use metadata style.
3654 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
3655 metadata style.
3656 * python/py-framefilter.c (py_print_single_arg): Use metadata
3657 style.
3658 * printcmd.c (do_one_display, print_variable_and_value): Use
3659 metadata style.
3660 * p-valprint.c (pascal_val_print)
3661 (pascal_object_print_value_fields): Use metadata style.
3662 * p-typeprint.c (pascal_type_print_base): Use metadata style.
3663 * mi/mi-out.h (class mi_ui_out) <do_field_fmt>: Add style
3664 parameter.
3665 * mi/mi-out.c (mi_ui_out::do_field_fmt): Update.
3666 * m2-valprint.c (m2_print_long_set): Use metadata style.
3667 * m2-typeprint.c (m2_print_type): Use metadata style.
3668 * infcmd.c (print_return_value_1): Use metadata style.
3669 * gnu-v3-abi.c (print_one_vtable): Use metadata style.
3670 * f-valprint.c (info_common_command_for_block): Use metadata
3671 style.
3672 * f-typeprint.c (f_type_print_base): Use metadata style.
3673 * expprint.c (print_subexp_standard): Use metadata style.
3674 * cp-valprint.c (cp_print_value_fields): Use metadata style.
3675 * cli/cli-style.h (class cli_style_option): Add constructor.
3676 (metadata_style): Declare.
3677 * cli/cli-style.c (metadata_style): New global.
3678 (_initialize_cli_style): Register metadata style.
3679 * cli-out.h (class cli_ui_out) <do_field_fmt>: Add style
3680 parameter.
3681 * cli-out.c (cli_ui_out::do_field_fmt): Update.
3682 * c-typeprint.c (c_type_print_base_struct_union)
3683 (c_type_print_base_1): Use metadata style.
3684 * breakpoint.c (watchpoint_value_print)
3685 (print_one_breakpoint_location): Use metadata style.
3686 * break-catch-syscall.c (print_one_catch_syscall): Use metadata
3687 style.
3688 * break-catch-sig.c (signal_catchpoint_print_one): Use metadata
3689 style.
3690 * ada-valprint.c (val_print_packed_array_elements, printstr)
3691 (print_field_values, ada_val_print_ref, ada_val_print): Use
3692 metadata style.
3693 * ada-typeprint.c (print_array_type, ada_print_type): Use metadata
3694 style.
3695 * ada-tasks.c (print_ada_task_info, info_task): Use metadata
3696 style.
3697 * ada-lang.c (user_select_syms): Use metadata style.
3698
14309bb6
TT
36992019-10-01 Tom Tromey <tom@tromey.com>
3700
3701 * cli/cli-cmds.c (pwd_command): Style output.
3702
6a831f06
PA
37032019-10-01 Pedro Alves <palves@redhat.com>
3704 Tom Tromey <tom@tromey.com>
3705
3706 * symtab.c (print_symbol_info): Use %ps.
3707 (print_msymbol_info): Use %ps.
3708 * symfile.c (symbol_file_add_with_addrs): Use %ps.
3709 * printcmd.c (print_variable_and_value): Use %ps.
3710 * macrocmd.c (show_pp_source_pos): Use %ps.
3711 * infrun.c (print_exited_reason): Use ui_out::message.
3712 * breakpoint.c (watchpoint_check, print_one_breakpoint_location)
3713 (describe_other_breakpoints): Use ui_out::message and new
3714 formats.
3715 (say_where): Use new formats.
3716 (bkpt_print_it, tracepoint_print_one_detail): Use ui_out::message
3717 and new formats.
3718
2a3c1174
PA
37192019-10-01 Pedro Alves <palves@redhat.com>
3720 Tom Tromey <tom@tromey.com>
3721
3722 * unittests/format_pieces-selftests.c: Add gdb_format parameter.
3723 (test_gdb_formats): New function.
3724 (run_tests): Call it.
3725 (test_format_specifier): Update.
3726 * utils.h (fputs_filtered): Update comment.
3727 (vfprintf_styled, vfprintf_styled_no_gdbfmt)
3728 (fputs_styled_unfiltered): Declare.
3729 * utils.c (fputs_styled_unfiltered): New function.
3730 (vfprintf_maybe_filtered): Add gdbfmt parameter.
3731 (vfprintf_filtered): Update.
3732 (vfprintf_unfiltered, vprintf_filtered): Update.
3733 (vfprintf_styled, vfprintf_styled_no_gdbfmt): New functions.
3734 * ui-out.h (enum ui_out_flag) <unfiltered_output,
3735 disallow_ui_out_field>: New constants.
3736 (enum class field_kind): New.
3737 (struct base_field_s, struct signed_field_s): New.
3738 (signed_field): New function.
3739 (struct string_field_s): New.
3740 (string_field): New function.
3741 (struct styled_string_s): New.
3742 (styled_string): New function.
3743 (class ui_out) <message>: Add comment.
3744 <vmessage, call_do_message>: New methods.
3745 <do_message>: Add style parameter.
3746 * ui-out.c (ui_out::call_do_message, ui_out::vmessage): New
3747 methods.
3748 (ui_out::message): Rewrite.
3749 * mi/mi-out.h (class mi_ui_out) <do_message>: Add style
3750 parameter.
3751 * mi/mi-out.c (mi_ui_out::do_message): Add style parameter.
3752 * gdbsupport/format.h (class format_pieces) <format_pieces>: Add
3753 gdb_extensions parameter.
3754 (class format_piece): Add parameter to constructor.
3755 (n_int_args): New field.
3756 * gdbsupport/format.c (format_pieces::format_pieces): Add
3757 gdb_extensions parameter. Handle '*'.
3758 * cli-out.h (class cli_ui_out) <do_message>: Add style parameter.
3759 * cli-out.c (cli_ui_out::do_message): Add style parameter. Call
3760 vfprintf_styled_no_gdbfmt.
3761 (cli_ui_out::do_field_string, cli_ui_out::do_spaces)
3762 (cli_ui_out::do_text, cli_ui_out::field_separator): Allow
3763 unfiltered output.
3764 * ui-style.h (struct ui_file_style) <ptr>: New method.
3765
0dfe5bfb
TT
37662019-10-01 Tom Tromey <tom@tromey.com>
3767
3768 * unittests/format_pieces-selftests.c: Update. Add final format.
3769 * gdbsupport/format.c (format_pieces::format_pieces): Don't add
3770 empty literal pieces.
3771
e43b10e1
TT
37722019-10-01 Tom Tromey <tom@tromey.com>
3773
3774 * ui-out.h (enum class ui_out_style_kind): Remove.
3775 (class ui_out) <field_string, field_stsream, do_field_string>:
3776 Change type of "style".
3777 * ui-out.c (ui_out::field_core_addr, ui_out::field_stream)
3778 (ui_out::field_string): Update.
3779 * tui/tui-out.h (class tui_ui_out) <do_field_string>: Change type
3780 of "style".
3781 * tui/tui-out.c (tui_ui_out::do_field_string): Update.
3782 * tracepoint.c (print_one_static_tracepoint_marker): Update.
3783 * stack.c (print_frame_arg, print_frame_info, print_frame):
3784 Update.
3785 * source.c (print_source_lines_base): Update.
3786 * solib.c (info_sharedlibrary_command): Update.
3787 * skip.c (info_skip_command): Update.
3788 * record-btrace.c (btrace_call_history_src_line)
3789 (btrace_call_history): Update.
3790 * python/py-framefilter.c (py_print_frame): Update.
3791 * mi/mi-out.h (class mi_ui_out) <do_field_string>: Change type of
3792 "style".
3793 * mi/mi-out.c (mi_ui_out::do_table_header)
3794 (mi_ui_out::do_field_signed, mi_ui_out::do_field_unsigned)
3795 (mi_ui_out::do_field_string): Update.
3796 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
3797 Update.
3798 * cli-out.h (class cli_ui_out) <do_field_string>: Change type of
3799 "style".
3800 * cli-out.c (cli_ui_out::do_table_header)
3801 (cli_ui_out::do_field_signed, cli_ui_out::do_field_unsigned)
3802 (cli_ui_out::do_field_skip, cli_ui_out::do_field_string)
3803 (cli_ui_out::do_field_fmt): Update.
3804 * breakpoint.c (print_breakpoint_location): Update.
3805 (update_static_tracepoint): Update.
3806
cd7c32c3
PW
38072019-10-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3808
3809 * main.c (relocate_gdbinit_path_maybe_in_datadir): Remove std::string
3810 conversion of gdb_datadir.
3811 (captured_main_1): Remove xstrdup when assigning to gdb_datadir,
3812 remove not needed c_str ().
3813
8fe0f950
AT
38142019-09-30 Ali Tamur <tamur@google.com>
3815
3816 * dwarf2read.c (skip_one_die): Handle DW_FORM_strx forms.
3817 (dwarf2_string_attr): Likewise.
3818
5f48f8f3
AT
38192019-09-30 Ali Tamur <tamur@google.com>
3820
3821 * dwarf2read.c (process_full_comp_unit): Remove whitespace at the EOL.
3822 (process_full_type_unit): Likewise.
3823 (dump_die_shallow): Likewise.
3824 (cu_debug_loc_section): Likewise.
3825
6fb08628
CB
38262019-09-28 Christian Biesinger <cbiesinger@google.com>
3827
3828 * minsyms.c (compare_minimal_symbols): Rename to...
3829 (minimal_symbol_is_less_than): ...this, and adjust to STL
3830 conventions (return bool, take arguments as references)
3831 (minimal_symbol_reader::install): Call std::sort instead
3832 of qsort.
3833
c7ee338a
CB
38342019-09-29 Christian Biesinger <cbiesinger@google.com>
3835
3836 * minsyms.h (msymbol_hash): Document that this is a case-insensitive
3837 hash and why.
3838 * objfiles.h (struct objfile_per_bfd_storage) <demangled_names_hash,
3839 msymbol_hash, msymbol_demangled_hash>: Improve comments.
3840
703a86c2
SM
38412019-09-30 Simon Marchi <simon.marchi@polymtl.ca>
3842
3843 * psymtab.c (add_psymbol_to_list): Move comment to psympriv.h.
3844 * psympriv.h (add_psymbol_to_list): Move comment here and update
3845 it.
3846
0df0352a
TV
38472019-09-29 Tom de Vries <tdevries@suse.de>
3848
3849 * contrib/cc-with-tweaks.sh (get_tmpdir): New function.
3850 Use $tmpdir/$(basename "$output_file").dwz instead of
3851 "${output_file}.dwz".
3852
ad75efa6
SM
38532019-09-28 Simon Marchi <simon.marchi@polymtl.ca>
3854
3855 PR gdb/25045
3856 * hppa-linux-nat.c: Include gdbarch.h.
3857
ececd218
CB
38582019-09-26 Christian Biesinger <cbiesinger@google.com>
3859
3860 * blockframe.c (find_pc_partial_function): Change return type to bool.
3861 * elfread.c (elf_gnu_ifunc_resolve_name): Likewise.
3862 * minsyms.c (in_gnu_ifunc_stub): Likewise.
3863 (stub_gnu_ifunc_resolve_name): Likewise.
3864 * symtab.c (compare_filenames_for_search): Likewise.
3865 (compare_glob_filenames_for_search): Likewise.
3866 (matching_obj_sections): Likewise.
3867 (symbol_matches_domain): Likewise.
3868 (find_line_symtab): Change out param EXACT_MATCH to bool *.
3869 (find_line_pc): Change return type to bool.
3870 (find_line_pc_range): Likewise.
3871 (producer_is_realview): Likewise.
3872 * symtab.h (symbol_matches_domain): Likewise.
3873 (find_pc_partial_function): Likewise.
3874 (find_pc_line_pc_range): Likewise.
3875 (in_gnu_ifunc_stub): Likewise.
3876 (struct gnu_ifunc_fns) <gnu_ifunc_resolve_name>: Likewise.
3877 (find_line_pc): Likewise.
3878 (find_line_pc_range): Likewise.
3879 (matching_obj_sections): Likewise.
3880 (find_line_symtab): Change out parameter to bool.
3881 (producer_is_realview): Change return type to bool.
3882 (compare_filenames_for_search): Likewise.
3883 (compare_glob_filenames_for_search): Likewise.
3884
27a900b8
TT
38852019-09-26 Tom Tromey <tom@tromey.com>
3886
3887 * Makefile.in (COMMON_SFILES): Remove gdb_usleep.c.
3888 (HFILES_NO_SRCDIR): Remove gdb_usleep.h.
3889 * gdb_usleep.h: Remove.
3890 * gdb_usleep.c: Remove.
3891 * utils.c: Don't include gdb_usleep.h.
3892
5d63b30a
TT
38932019-09-26 Tom Tromey <tromey@adacore.com>
3894
3895 * python/py-type.c (type_to_type_object): Call check_typedef
3896 for stub types.
3897
12904d37
TT
38982019-09-26 Tom Tromey <tom@tromey.com>
3899
3900 * utils.h (initialize_utils): Don't declare.
3901 * top.c (gdb_init): Don't call initialize_utils.
3902 * utils.c (initialize_utils): Remove. Move contents...
3903 (_initialize_utils): ... here.
3904
858f25f0
TT
39052019-09-25 Tom Tromey <tom@tromey.com>
3906
3907 * python/py-objfile.c (objfpy_get_build_id): Use bin2hex.
3908 * utils.h (make_hex_string): Don't declare.
3909 * utils.c (make_hex_string): Remove.
3910
3d435220
TV
39112019-09-24 Tom de Vries <tdevries@suse.de>
3912
3913 PR gdb/23815
3914 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers):
3915 Initialize xstateregs before ptrace PTRACE_GETREGSET call.
3916
ddd44b70
DD
39172019-09-23 Dimitar Dimitrov <dimitar@dinux.eu>
3918
3919 * NEWS: Mention new simulator port for PRU.
3920
f945dedf
CB
39212019-09-23 Christian Biesinger <cbiesinger@google.com>
3922
3923 * ada-exp.y (write_object_remaining): Update.
3924 * ada-lang.c (ada_decode): Return a std::string instead of a char*
3925 and eliminate the static buffer.
3926 (ada_decode_symbol): Update.
3927 (ada_la_decode): Update.
3928 (ada_sniff_from_mangled_name): Update.
3929 (is_valid_name_for_wild_match): Update.
3930 (ada_lookup_name_info::matches): Update and simplify.
3931 (name_matches_regex): Update.
3932 (ada_add_global_exceptions): Update.
3933 * ada-lang.h (ada_decode): Update signature.
3934 * ada-varobj.c (ada_varobj_describe_simple_array_child): Update.
3935 * dwarf-index-write.c (debug_names::insert): Update.
3936
7ab78ccb
SM
39372019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
3938
3939 * solib-svr4.c (svr4_iterate_over_objfiles_in_search_order): Fix
3940 formatting.
3941
9252448b
SM
39422019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
3943
3944 * breakpoint.h (bp_location) <inserted, permanent, duplicate>:
3945 Change "nonzero" to "true" in documentation.
3946
626ca2c0
CB
39472019-09-20 Christian Biesinger <cbiesinger@google.com>
3948
3949 * solib-darwin.c (darwin_lookup_lib_symbol): Remove.
3950 (_initialize_darwin_solib): Don't set
3951 darwin_so_ops.lookup_lib_global_symbol.
3952 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets): Call
3953 set_gdbarch_iterate_over_objfiles_in_search_order.
3954 (elf_lookup_lib_symbol): Rename to...
3955 (svr4_iterate_over_objfiles_in_search_order): this, and update
3956 to iterate semantics.
3957 (_initialize_svr4_solib): Don't set lookup_lib_global_symbol.
3958 * solib.c (solib_global_lookup): Remove.
3959 * solist.h (struct target_so_ops): Remove lookup_lib_global_symbol.
3960 (solib_global_lookup): Remove.
3961 * symtab.c (lookup_global_or_static_symbol): Remove call to
3962 solib_global_lookup.
3963
5a3a0d63
JB
39642019-09-20 Joel Brobecker <brobecker@adacore.com>
3965
3966 * NEWS: Move entries about default MI version now being
3967 version 3, and about the GDB/MI fix for multi-location
3968 breakpoints to the "since GDB 8.3" section.
3969
ffea1427
JB
39702019-09-20 Joel Brobecker <brobecker@adacore.com>
3971
3972 GDB 8.3.1 released.
3973
abf516c6
UW
39742019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
3975
3976 * NEWS: Mention that Cell/B.E. debugging support was removed.
3977 * MAINTAINERS: Remove spu target.
3978
3979 * config/djgpp/fnchange.lst: Remove entries for removed files.
3980
3981 * Makefile.in (ALL_TARGET_OBS): Remove solib-spu.o,
3982 spu-multiarch.o, and spu-tdep.o.
3983 (HFILES_NO_SRCDIR): Remove solib-spu.h and spu-tdep.h.
3984 (ALLDEPFILES): Remove solib-spu.c, spu-linux-nat.c,
3985 spu-multiarch.c, and spu-tdep.c.
3986 * spu-linux-nat.c: Remove file.
3987 * spu-multiarch.c: Remove file.
3988 * spu-tdep.c: Remove file.
3989 * spu-tdep.h: Remove file.
3990 * solib-spu.c: Remove file.
3991 * solib-spu.h: Remove file.
3992
3993 * configure.host (powerpc64*-*-linux*): Remove Cell/B.E. support.
3994 * configure.nat (spu-linux): Remove.
3995 * configure.tgt (powerpc*-*-linux*): Remove solib-spu.o and
3996 solib-multiarch.o from gdb_target_obs.
3997 (spu*-*-*): Remove.
3998
3999 * arch/ppc-linux-common.h (struct ppc_linux_features): Remove "cell"
4000 feature flag.
4001 (ppc_linux_no_features): Update.
4002 * arch/ppc-linux-common.c (ppc_linux_match_description): Remove
4003 Cell/B.E. support.
4004 * arch/ppc-linux-tdesc.h (tdesc_powerpc_cell32l): Remove declaration.
4005 (tdesc_powerpc_cell64l): Likewise.
4006 * nat/ppc-linux.h (PPC_FEATURE_CELL): Remove.
4007 * ppc-linux-nat.c (ppc_linux_nat_target::read_description): Remove
4008 Cell/B.E. support.
4009 * ppc-linux-tdep.h: Do not include "solib-spu.h" or "spu-tdep.h".
4010 Do not include "features/rs6000/powerpc-cell32l.c" or
4011 "features/rs6000/powerpc-cell64l.c".
4012 (ppc_linux_spu_section): Remove.
4013 (ppc_linux_core_read_description): Remove Cell/B.E. support.
4014 (spe_context_objfile, spe_context_lm_addr, spe_context_offset,
4015 spe_context_cache_ptid, spe_context_cache_ptid): Remove.
4016 (ppc_linux_spe_context_lookup): Remove.
4017 (ppc_linux_spe_context_inferior_created): Remove.
4018 (ppc_linux_spe_context_solib_loaded): Remove.
4019 (ppc_linux_spe_context_solib_unloaded): Remove.
4020 (ppc_linux_spe_context): Remove.
4021 (struct ppu2spu_cache): Remove.
4022 (ppu2spu_prev_arch, ppu2spu_this_id, ppu2spu_prev_register): Remove.
4023 (struct ppu2spu_data): Remove.
4024 (ppu2spu_unwind_register, ppu2spu_sniffer, ppu2spu_dealloc_cache,
4025 ppu2spu_unwind): Remove.
4026 (ppc_linux_init_abi): Remove Cell/B.E. support.
4027 * rs6000-tdep.h (rs6000_gdbarch_init): Remove Cell/B.E. support.
4028
4029 * features/Makefile (rs6000/powerpc-cell32l-expedite): Remove.
4030 (rs6000/powerpc-cell64l-expedite): Likewise
4031 (WHICH): Remove rs6000/powerpc-cell32l and rs6000/powerpc-cell64l.
4032 (XMLTOC): Remove rs6000/powerpc-cell32l.xml and
4033 rs6000/powerpc-cell64l.xml.
4034 * features/rs6000/powerpc-cell32l.xml: Remove.
4035 * features/rs6000/powerpc-cell64l.xml: Likewise.
4036 * features/rs6000/powerpc-cell32l.c: Remove generated file.
4037 * features/rs6000/powerpc-cell64l.c: Likewise.
4038 * regformats/rs6000/powerpc-cell32l.dat: Remove generated file.
4039 * regformats/rs6000/powerpc-cell64l.dat: Likewise.
4040 * regformats/reg-spu.dat: Remove.
4041
4042 * target.h (enum target_object): Remove TARGET_OBJECT_SPU.
4043 * corelow.c (struct spuid_list): Remove.
4044 (add_to_spuid_list): Remove.
4045 (core_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
4046 * remote.c (PACKET_qXfer_spu_read, PACKET_qXfer_spu_write): Remove.
4047 (remote_protocol_features): Remove associated entries.
4048 (_initialize_remote): No longer initialize them.
4049 (remote_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
4050 * linux-nat.c (SPUFS_MAGIC): Remove.
4051 (linux_proc_xfer_spu): Remove.
4052 (spu_enumerate_spu_ids): Remove.
4053 (linux_nat_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
4054 * linux-tdep.c (-linux_spu_make_corefile_notes): Remove.
4055 (linux_make_corefile_notes): No longer call it.
4056
4057 * regcache.c (cooked_read_test): Remove bfd_arch_spu special case.
4058 (cooked_write_test): Likewise.
4059
78e8cb91
TT
40602019-09-20 Tom Tromey <tom@tromey.com>
4061
4062 * NEWS: Mention case-sensitivity of TUI commands.
4063 * tui/tui-win.c (tui_set_focus_command): Now case-sensitive.
4064 (tui_set_win_height_command, parse_scrolling_args): Likewise.
4065 * tui/tui-layout.c (tui_layout_command): Now case-sensitive.
4066
f074b67e
TT
40672019-09-20 Tom Tromey <tom@tromey.com>
4068
4069 * tui/tui-source.c (tui_source_window::set_contents): Use
4070 make_unique_xstrdup.
4071 * tui/tui-disasm.c (tui_disasm_window::set_contents): Use
4072 make_unique_xstrdup.
4073
63c4bf19
TT
40742019-09-20 Tom Tromey <tom@tromey.com>
4075
4076 * tui/tui-data.c: Remove separator comments.
4077 * tui/tui-layout.c: Remove separator comments.
4078 * tui/tui-win.c: Remove separator comments.
4079 * tui/tui-wingeneral.c: Remove separator comments.
4080
43df9b2f
TT
40812019-09-20 Tom Tromey <tom@tromey.com>
4082
4083 * tui/tui.h (strcat_to_buf): Don't declare.
4084 * tui/tui.c (strcat_to_buf): Remove.
4085
7226433c
TT
40862019-09-20 Tom Tromey <tom@tromey.com>
4087
4088 * tui/tui-source.h (struct tui_source_window) <m_fullname>: Rename
4089 from "fullname".
4090 * tui/tui-source.c (tui_source_window::set_contents)
4091 (tui_source_window::location_matches_p)
4092 (tui_source_window::maybe_update): Update.
4093
80df3337
TT
40942019-09-20 Tom Tromey <tom@tromey.com>
4095
4096 * tui/tui-regs.h (struct tui_data_window) <get_current_group>:
4097 Update.
4098 <m_regs_content, m_regs_column_count, m_current_group>: Add "m_"
4099 prefix.
4100 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
4101 (tui_data_window::line_from_reg_element_no)
4102 (tui_data_window::first_reg_element_no_inline)
4103 (tui_data_window::show_registers)
4104 (tui_data_window::show_register_group)
4105 (tui_data_window::display_registers_from)
4106 (tui_data_window::display_registers_from_line)
4107 (tui_data_window::first_data_item_displayed)
4108 (tui_data_window::delete_data_content_windows)
4109 (tui_data_window::erase_data_content)
4110 (tui_data_window::do_scroll_vertical)
4111 (tui_data_window::refresh_window)
4112 (tui_data_window::check_register_values): Update.
4113
9923f347
TT
41142019-09-20 Tom Tromey <tom@tromey.com>
4115
4116 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN): Remove define.
4117 (struct tui_locator_window) <full_name, proc_name>: Now
4118 std::string.
4119 * tui/tui-stack.c (tui_locator_window::make_status_line)
4120 (tui_locator_window::set_locator_fullname)
4121 (tui_locator_window::set_locator_info): Update.
4122 * tui/tui-source.c (tui_source_window::set_contents)
4123 (tui_source_window::showing_source_p): Update.
4124
b76251ab
TT
41252019-09-20 Tom Tromey <tom@tromey.com>
4126
4127 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
4128 Don't call tui_locator_win_info_ptr.
4129
0891be08
TT
41302019-09-20 Tom Tromey <tom@tromey.com>
4131
4132 * tui/tui-win.c (tui_resize_all): Don't call refresh.
4133
1b935acf
TT
41342019-09-20 Tom Tromey <tom@tromey.com>
4135
4136 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use 1 as
4137 height for locator.
4138 * tui/tui-stack.c (tui_locator_window::rerender): Call scrollok.
4139 * tui/tui-layout.c (show_source_disasm_command, show_data)
4140 (show_source_or_disasm_and_command): Use 1 as height for locator.
4141
9abd8a65
TT
41422019-09-20 Tom Tromey <tom@tromey.com>
4143
4144 * tui/tui.c (tui_enable): Update.
4145 * tui/tui-win.c (tui_sigwinch_handler, tui_async_resize_screen):
4146 Update.
4147 * tui/tui-data.h (tui_win_resized, tui_set_win_resized_to):
4148 Update.
4149 * tui/tui-data.c (win_resized): Now bool.
4150 (tui_win_resized): Return bool.
4151 (tui_set_win_resized_to): Accept a bool.
4152
b5457826
TT
41532019-09-20 Tom Tromey <tom@tromey.com>
4154
4155 * tui/tui-regs.h (struct tui_data_window) <show_register_group>:
4156 Change type of "refresh_values_only".
4157 * tui/tui-regs.c (tui_data_window::show_register_group): Change
4158 type of "refresh_values_only".
4159
6b915f7d
TT
41602019-09-20 Tom Tromey <tom@tromey.com>
4161
4162 * tui/tui-disasm.c (struct tui_asm_line) <addr_string, insn>: Now
4163 std::string.
4164 (tui_disassemble): Add "pos" parameter.
4165 (tui_disasm_window::set_contents): Simplify.
4166
2ad52f6f
TT
41672019-09-20 Tom Tromey <tom@tromey.com>
4168
4169 * tui/tui-winsource.h (struct tui_source_window_base)
4170 <show_source_content>: Now private.
4171 * tui/tui-winsource.c
4172 (tui_source_window_base::show_source_content): Don't handle empty
4173 content case.
4174
b3b1bde6
TT
41752019-09-20 Tom Tromey <tom@tromey.com>
4176
4177 * tui/tui-layout.c (show_source_disasm_command)
4178 (show_source_or_disasm_and_command): Don't call
4179 show_source_content.
4180
71a25ed2
TT
41812019-09-20 Tom Tromey <tom@tromey.com>
4182
4183 * tui/tui-stack.h (struct tui_locator_window) <make_status_line>:
4184 Declare.
4185 * tui/tui-stack.c (tui_locator_window::make_status_line): Rename
4186 from tui_make_status_line.
4187 (tui_locator_window::rerender): Update.
4188
f8532154
TT
41892019-09-20 Tom Tromey <tom@tromey.com>
4190
4191 * tui/tui-stack.c (tui_make_status_line): Return std::string.
4192 (tui_locator_window::rerender): Update.
4193
2d81b349
TT
41942019-09-20 Tom Tromey <tom@tromey.com>
4195
4196 * tui/tui-winsource.h (struct tui_source_window_base)
4197 <~tui_source_window_base>: Don't declare.
4198 <fullname>: Remove.
4199 * tui/tui-winsource.c (~tui_source_window_base): Remove.
4200 * tui/tui-source.h (struct tui_source_window) <fullname>: New
4201 member.
4202 * tui/tui-source.c (tui_source_window::set_contents): Update.
4203 (tui_source_window::location_matches_p)
4204 (tui_source_window::maybe_update): Update.
4205
f14bec58
TT
42062019-09-20 Tom Tromey <tom@tromey.com>
4207
4208 * tui/tui-winsource.h (~tui_source_element): Remove.
4209 (tui_source_element): Update.
4210 (struct tui_source_element) <line>: Now a unique_xmalloc_ptr.
4211 * tui/tui-winsource.c (tui_show_source_line): Update.
4212 * tui/tui-source.c (tui_source_window::set_contents): Update.
4213 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
4214
78d5933a
TT
42152019-09-20 Tom Tromey <tom@tromey.com>
4216
4217 * tui/tui-data.h (tui_clear_source_windows_detail): Don't
4218 declare.
4219 * tui/tui-layout.c (tui_add_win_to_layout): Don't call
4220 tui_clear_source_windows_detail.
4221 * tui/tui-winsource.h (struct tui_source_window_base)
4222 <clear_detail>: Don't declare.
4223 * tui/tui-winsource.c (tui_source_window_base::clear_detail):
4224 Remove.
4225 * tui/tui-data.c (tui_clear_source_windows_detail): Remove.
4226
d4207696
TT
42272019-09-20 Tom Tromey <tromey@adacore.com>
4228
4229 PR ada/24919:
4230 * block.c (contained_in): Fix final return value.
4231
00f93c44
AM
42322019-09-20 Alan Modra <amodra@gmail.com>
4233
4234 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Use bfd_set_usrdata.
4235 * dwarf2read.c (dwarf2_read_gdb_index, dwarf2_read_debug_names),
4236 (read_indirect_string_from_dwz): Use bfd accessor.
4237 * dwarf2read.h (struct dwz_file <filename>): Likewise.
4238 * machoread.c (macho_symfile_read_all_oso): Likewise.
4239 * solib.c (solib_bfd_open): Likewise.
4240
e4153ae6
CB
42412019-09-19 Christian Biesinger <cbiesinger@google.com>
4242
4243 * eval.c: Move declaration of overload_resolution to...
4244 * value.h: ...here.
4245
c7ae7675
CB
42462019-09-19 Christian Biesinger <cbiesinger@google.com>
4247
4248 * arm-linux-nat.c: Remove extern declaration for arm_apcs_32.
4249 * arm-linux-tdep.c: Likewise.
4250 * arm-nbsd-nat.c: Likewise.
4251 * arm-tdep.h: Declare arm_apcs_32.
4252 * arm-tdep.c: Move documentation for arm_apcs_32 to arm-tdep.h.
4253
e86f08d2
CB
42542019-09-19 Christian Biesinger <cbiesinger@google.com>
4255
4256 * dwarf2loc.c: Remove extern declaration of dwarf_always_disassemble.
4257 * dwarf2read.h: Declare dwarf_always_disassemble.
4258
f64e2f40
TV
42592019-09-19 Tom de Vries <tdevries@suse.de>
4260
4261 PR gdb/25009
4262 * source-cache.c (source_cache::ensure): Catch exception thrown during
4263 construction of the highlighter.
4264
fd361982
AM
42652019-09-18 Alan Modra <amodra@gmail.com>
4266
4267 * aarch64-linux-tdep.c, * arm-tdep.c, * auto-load.c,
4268 * coff-pe-read.c, * coffread.c, * corelow.c, * dbxread.c,
4269 * dicos-tdep.c, * dwarf2-frame.c, * dwarf2read.c, * elfread.c,
4270 * exec.c, * fbsd-tdep.c, * gcore.c, * gdb_bfd.c, * gdb_bfd.h,
4271 * hppa-tdep.c, * i386-cygwin-tdep.c, * i386-fbsd-tdep.c,
4272 * i386-linux-tdep.c, * jit.c, * linux-tdep.c, * machoread.c,
4273 * maint.c, * mdebugread.c, * minidebug.c, * mips-linux-tdep.c,
4274 * mips-sde-tdep.c, * mips-tdep.c, * mipsread.c, * nto-tdep.c,
4275 * objfiles.c, * objfiles.h, * osabi.c, * ppc-linux-tdep.c,
4276 * ppc64-tdep.c, * record-btrace.c, * record-full.c, * remote.c,
4277 * rs6000-aix-tdep.c, * rs6000-tdep.c, * s390-linux-tdep.c,
4278 * s390-tdep.c, * solib-aix.c, * solib-dsbt.c, * solib-frv.c,
4279 * solib-spu.c, * solib-svr4.c, * solib-target.c,
4280 * spu-linux-nat.c, * spu-tdep.c, * symfile-mem.c, * symfile.c,
4281 * symmisc.c, * symtab.c, * target.c, * windows-nat.c,
4282 * xcoffread.c, * cli/cli-dump.c, * compile/compile-object-load.c,
4283 * mi/mi-interp.c: Update throughout for bfd section macro and
4284 function changes.
4285 * gcore (gcore_create_callback): Use bfd_set_section_lma.
4286 * spu-tdep.c (spu_overlay_new_objfile): Likewise.
4287
11061048
TT
42882019-09-18 Tom Tromey <tom@tromey.com>
4289
4290 * NEWS: Add entry.
4291 * tui/tui.c (tui_initialize_readline): Set name of keymap. Do not
4292 call rl_initialize.
4293 (tui_enable): Do not call rl_initialize.
4294
7a27b85f
CG
42952019-09-18 Christian Groessler <chris@groessler.org>
4296
4297 * alpha-linux-nat.c: Include gdbarch.h.
4298
f64eea3a
SM
42992019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
4300
4301 * ui-file.c: Include cli/cli-style.h.
4302 (term_cli_styling): Remove cli_styling declaration.
4303
e6f7f6d1
AM
43042019-09-18 Alan Modra <amodra@gmail.com>
4305
4306 * arm-tdep.c (arm_record_special_symbol): Update bfd_get_section
4307 to bfd_asymbol_section.
4308
1d38e9d1
AM
43092019-09-18 Alan Modra <amodra@gmail.com>
4310
4311 * amd64-dicos-tdep.c (amd64_dicos_osabi_sniffer): Constify target.
4312 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
4313 * i386-dicos-tdep.c (i386_dicos_osabi_sniffer): Likewise.
4314
90d92a63
AM
43152019-09-18 Alan Modra <amodra@gmail.com>
4316
4317 * solib-spu.c (spu_bfd_open): Use bfd_set_filename.
4318 * spu-linux-nat.c (spu_bfd_open): Likewise.
4319
a3d181d2
CB
43202019-09-18 Christian Biesinger <cbiesinger@google.com>
4321
4322 * dwarf2loc.c: Change extern declaration of dwarf_always_disassemble
4323 to bool to match definition in dwarf2read.c.
4324
491144b5
CB
43252019-09-17 Christian Biesinger <cbiesinger@google.com>
4326
4327 * ada-lang.c (ada_ignore_descriptive_types_p): Change to bool.
4328 (print_signatures): Likewise.
4329 (trust_pad_over_xvs): Likewise.
4330 * arch/aarch64-insn.c (aarch64_debug): Likewise.
4331 * arch/aarch64-insn.h (aarch64_debug): Likewise.
4332 * arm-linux-nat.c (arm_apcs_32): Likewise.
4333 * arm-linux-tdep.c (arm_apcs_32): Likewise.
4334 * arm-nbsd-nat.c (arm_apcs_32): Likewise.
4335 * arm-tdep.c (arm_debug): Likewise.
4336 (arm_apcs_32): Likewise.
4337 * auto-load.c (debug_auto_load): Likewise.
4338 (auto_load_gdb_scripts): Likewise.
4339 (global_auto_load): Likewise.
4340 (auto_load_local_gdbinit): Likewise.
4341 (auto_load_local_gdbinit_loaded): Likewise.
4342 * auto-load.h (global_auto_load): Likewise.
4343 (auto_load_local_gdbinit): Likewise.
4344 (auto_load_local_gdbinit_loaded): Likewise.
4345 * breakpoint.c (disconnected_dprintf): Likewise.
4346 (breakpoint_proceeded): Likewise.
4347 (automatic_hardware_breakpoints): Likewise.
4348 (always_inserted_mode): Likewise.
4349 (target_exact_watchpoints): Likewise.
4350 (_initialize_breakpoint): Update.
4351 * breakpoint.h (target_exact_watchpoints): Change to bool.
4352 * btrace.c (maint_btrace_pt_skip_pad): Likewise.
4353 * cli/cli-cmds.c (trace_commands): Likewise.
4354 * cli/cli-cmds.h (trace_commands): Likewise.
4355 * cli/cli-decode.c (add_setshow_boolean_cmd): Change int* argument
4356 to bool*.
4357 * cli/cli-logging.c (logging_overwrite): Change to bool.
4358 (logging_redirect): Likewise.
4359 (debug_redirect): Likewise.
4360 * cli/cli-option.h (option_def) <boolean>: Change return type to bool*.
4361 (struct boolean_option_def) <get_var_address_cb_>: Change return type
4362 to bool.
4363 <boolean_option_def>: Update.
4364 (struct flag_option_def): Change default type of Context to bool
4365 from int.
4366 <flag_option_def>: Change return type of var_address_cb_ to bool*.
4367 * cli/cli-setshow.c (do_set_command): Cast to bool* instead of int*.
4368 (get_setshow_command_value_string): Likewise.
4369 * cli/cli-style.c (cli_styling): Change to bool.
4370 (source_styling): Likewise.
4371 * cli/cli-style.h (source_styling): Likewise.
4372 (cli_styling): Likewise.
4373 * cli/cli-utils.h (struct qcs_flags) <quiet, cont, silent>: Change
4374 to bool.
4375 * command.h (var_types): Update comment.
4376 (add_setshow_boolean_cmd): Change int* var argument to bool*.
4377 * compile/compile-cplus-types.c (debug_compile_cplus_types): Change to
4378 bool.
4379 (debug_compile_cplus_scopes): Likewise.
4380 * compile/compile-internal.h (compile_debug): Likewise.
4381 * compile/compile.c (compile_debug): Likewise.
4382 (struct compile_options) <raw>: Likewise.
4383 * cp-support.c (catch_demangler_crashes): Likewise.
4384 * cris-tdep.c (usr_cmd_cris_version_valid): Likewise.
4385 (usr_cmd_cris_dwarf2_cfi): Likewise.
4386 * csky-tdep.c (csky_debug): Likewise.
4387 * darwin-nat.c (enable_mach_exceptions): Likewise.
4388 * dcache.c (dcache_enabled_p): Likewise.
4389 * defs.h (info_verbose): Likewise.
4390 * demangle.c (demangle): Likewise.
4391 (asm_demangle): Likewise.
4392 * dwarf-index-cache.c (debug_index_cache): Likewise.
4393 * dwarf2-frame.c (dwarf2_frame_unwinders_enabled_p): Likewise.
4394 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Likewise.
4395 * dwarf2read.c (check_physname): Likewise.
4396 (use_deprecated_index_sections): Likewise.
4397 (dwarf_always_disassemble): Likewise.
4398 * eval.c (overload_resolution): Likewise.
4399 * event-top.c (set_editing_cmd_var): Likewise.
4400 (exec_done_display_p): Likewise.
4401 * event-top.h (set_editing_cmd_var): Likewise.
4402 (exec_done_display_p): Likewise.
4403 * exec.c (write_files): Likewise.
4404 * fbsd-nat.c (debug_fbsd_lwp): Likewise
4405 (debug_fbsd_nat): Likewise.
4406 * frame.h (struct frame_print_options) <print_raw_frame_arguments>:
4407 Likewise.
4408 (struct set_backtrace_options) <backtrace_past_main>: Likewise.
4409 <backtrace_past_entry> Likewise.
4410 * gdb-demangle.h (demangle): Likewise.
4411 (asm_demangle): Likewise.
4412 * gdb_bfd.c (bfd_sharing): Likewise.
4413 * gdbcore.h (write_files): Likewise.
4414 * gdbsupport/common-debug.c (show_debug_regs): Likewise.
4415 * gdbsupport/common-debug.h (show_debug_regs): Likewise.
4416 * gdbthread.h (print_thread_events): Likewise.
4417 * gdbtypes.c (opaque_type_resolution): Likewise.
4418 (strict_type_checking): Likewise.
4419 * gnu-nat.c (gnu_debug_flag): Likewise.
4420 * guile/scm-auto-load.c (auto_load_guile_scripts): Likewise.
4421 * guile/scm-param.c (pascm_variable): Add boolval.
4422 (add_setshow_generic): Update.
4423 (pascm_param_value): Update.
4424 (pascm_set_param_value_x): Update.
4425 * hppa-tdep.c (hppa_debug): Change to bool..
4426 * infcall.c (may_call_functions_p): Likewise.
4427 (coerce_float_to_double_p): Likewise.
4428 (unwind_on_signal_p): Likewise.
4429 (unwind_on_terminating_exception_p): Likewise.
4430 * infcmd.c (startup_with_shell): Likewise.
4431 * inferior.c (print_inferior_events): Likewise.
4432 * inferior.h (startup_with_shell): Likewise.
4433 (print_inferior_events): Likewise.
4434 * infrun.c (step_stop_if_no_debug): Likewise.
4435 (detach_fork): Likewise.
4436 (debug_displaced): Likewise.
4437 (disable_randomization): Likewise.
4438 (non_stop): Likewise.
4439 (non_stop_1): Likewise.
4440 (observer_mode): Likewise.
4441 (observer_mode_1): Likewise.
4442 (set_observer_mode): Update.
4443 (sched_multi): Change to bool.
4444 * infrun.h (debug_displaced): Likewise.
4445 (sched_multi): Likewise.
4446 (step_stop_if_no_debug): Likewise.
4447 (non_stop): Likewise.
4448 (disable_randomization): Likewise.
4449 * linux-tdep.c (use_coredump_filter): Likewise.
4450 (dump_excluded_mappings): Likewise.
4451 * linux-thread-db.c (auto_load_thread_db): Likewise.
4452 (check_thread_db_on_load): Likewise.
4453 * main.c (captured_main_1): Update.
4454 * maint-test-options.c (struct test_options_opts) <flag_opt, xx1_opt,
4455 xx2_opt, boolean_opt>: Change to bool.
4456 * maint-test-settings.c (maintenance_test_settings_boolean): Likewise.
4457 * maint.c (maintenance_profile_p): Likewise.
4458 (per_command_time): Likewise.
4459 (per_command_space): Likewise.
4460 (per_command_symtab): Likewise.
4461 * memattr.c (inaccessible_by_default): Likewise.
4462 * mi/mi-main.c (mi_async): Likewise.
4463 (mi_async_1): Likewise.
4464 * mips-tdep.c (mips64_transfers_32bit_regs_p): Likewise.
4465 * nat/fork-inferior.h (startup_with_shell): Likewise.
4466 * nat/linux-namespaces.c (debug_linux_namespaces): Likewise.
4467 * nat/linux-namespaces.h (debug_linux_namespaces): Likewise.
4468 * nios2-tdep.c (nios2_debug): Likewise.
4469 * or1k-tdep.c (or1k_debug): Likewise.
4470 * parse.c (parser_debug): Likewise.
4471 * parser-defs.h (parser_debug): Likewise.
4472 * printcmd.c (print_symbol_filename): Likewise.
4473 * proc-api.c (procfs_trace): Likewise.
4474 * python/py-auto-load.c (auto_load_python_scripts): Likewise.
4475 * python/py-param.c (union parmpy_variable): Add "bool boolval" field.
4476 (set_parameter_value): Update.
4477 (add_setshow_generic): Update.
4478 * python/py-value.c (copy_py_bool_obj): Change argument from int*
4479 to bool*.
4480 * python/python.c (gdbpy_parameter_value): Cast to bool* instead of
4481 int*.
4482 * ravenscar-thread.c (ravenscar_task_support): Change to bool.
4483 * record-btrace.c (record_btrace_target::store_registers): Update.
4484 * record-full.c (record_full_memory_query): Change to bool.
4485 (record_full_stop_at_limit): Likewise.
4486 * record-full.h (record_full_memory_query): Likewise.
4487 * remote-notif.c (notif_debug): Likewise.
4488 * remote-notif.h (notif_debug): Likewise.
4489 * remote.c (use_range_stepping): Likewise.
4490 (interrupt_on_connect): Likewise.
4491 (remote_break): Likewise.
4492 * ser-tcp.c (tcp_auto_retry): Likewise.
4493 * ser-unix.c (serial_hwflow): Likewise.
4494 * skip.c (debug_skip): Likewise.
4495 * solib-aix.c (solib_aix_debug): Likewise.
4496 * spu-tdep.c (spu_stop_on_load_p): Likewise.
4497 (spu_auto_flush_cache_p): Likewise.
4498 * stack.c (struct backtrace_cmd_options) <full, no_filters, hide>:
4499 Likewise.
4500 (struct info_print_options) <quiet>: Likewise.
4501 * symfile-debug.c (debug_symfile): Likewise.
4502 * symfile.c (auto_solib_add): Likewise.
4503 (separate_debug_file_debug): Likewise.
4504 * symfile.h (auto_solib_add): Likewise.
4505 (separate_debug_file_debug): Likewise.
4506 * symtab.c (basenames_may_differ): Likewise.
4507 (struct filename_partial_match_opts) <dirname, basename>: Likewise.
4508 (struct info_print_options) <quiet, exclude_minsyms>: Likewise.
4509 (struct info_types_options) <quiet>: Likewise.
4510 * symtab.h (demangle): Likewise.
4511 (basenames_may_differ): Likewise.
4512 * target-dcache.c (stack_cache_enabled_1): Likewise.
4513 (code_cache_enabled_1): Likewise.
4514 * target.c (trust_readonly): Likewise.
4515 (may_write_registers): Likewise.
4516 (may_write_memory): Likewise.
4517 (may_insert_breakpoints): Likewise.
4518 (may_insert_tracepoints): Likewise.
4519 (may_insert_fast_tracepoints): Likewise.
4520 (may_stop): Likewise.
4521 (auto_connect_native_target): Likewise.
4522 (target_stop_and_wait): Update.
4523 (target_async_permitted): Change to bool.
4524 (target_async_permitted_1): Likewise.
4525 (may_write_registers_1): Likewise.
4526 (may_write_memory_1): Likewise.
4527 (may_insert_breakpoints_1): Likewise.
4528 (may_insert_tracepoints_1): Likewise.
4529 (may_insert_fast_tracepoints_1): Likewise.
4530 (may_stop_1): Likewise.
4531 * target.h (target_async_permitted): Likewise.
4532 (may_write_registers): Likewise.
4533 (may_write_memory): Likewise.
4534 (may_insert_breakpoints): Likewise.
4535 (may_insert_tracepoints): Likewise.
4536 (may_insert_fast_tracepoints): Likewise.
4537 (may_stop): Likewise.
4538 * thread.c (struct info_threads_opts) <show_global_ids>: Likewise.
4539 (make_thread_apply_all_options_def_group): Change argument from int*
4540 to bool*.
4541 (thread_apply_all_command): Update.
4542 (print_thread_events): Change to bool.
4543 * top.c (confirm): Likewise.
4544 (command_editing_p): Likewise.
4545 (history_expansion_p): Likewise.
4546 (write_history_p): Likewise.
4547 (info_verbose): Likewise.
4548 * top.h (confirm): Likewise.
4549 (history_expansion_p): Likewise.
4550 * tracepoint.c (disconnected_tracing): Likewise.
4551 (circular_trace_buffer): Likewise.
4552 * typeprint.c (print_methods): Likewise.
4553 (print_typedefs): Likewise.
4554 * utils.c (debug_timestamp): Likewise.
4555 (sevenbit_strings): Likewise.
4556 (pagination_enabled): Likewise.
4557 * utils.h (sevenbit_strings): Likewise.
4558 (pagination_enabled): Likewise.
4559 * valops.c (overload_resolution): Likewise.
4560 * valprint.h (struct value_print_options) <prettyformat_arrays,
4561 prettyformat_structs, vtblprint, unionprint, addressprint, objectprint,
4562 stop_print_at_null, print_array_indexes, deref_ref, static_field_print,
4563 pascal_static_field_print, raw, summary, symbol_print, finish_print>:
4564 Likewise.
4565 * windows-nat.c (new_console): Likewise.
4566 (cygwin_exceptions): Likewise.
4567 (new_group): Likewise.
4568 (debug_exec): Likewise.
4569 (debug_events): Likewise.
4570 (debug_memory): Likewise.
4571 (debug_exceptions): Likewise.
4572 (useshell): Likewise.
4573 * windows-tdep.c (maint_display_all_tib): Likewise.
4574 * xml-support.c (debug_xml): Likewise.
4575
f1b620e9
MG
45762019-09-17 Mike Gulick <mgulick@mathworks.com>
4577
4578 * source.c (prepare_path_for_appending): New function.
4579 (openp): Make use of new function.
4580 (find_and_open_source): Search for the compilation directory and
4581 source file as a relative path beneath the directory search path.
4582
67f3ed6a
AB
45832019-09-17 Andrew Burgess <andrew.burgess@embecosm.com>
4584
4585 * source-cache.c (source_cache::get_line_charpos): Catch
4586 exceptions and return false, this matches the behaviour documented
4587 in the header file.
4588
74332189
JB
45892019-09-17 Joel Brobecker <brobecker@adacore.com>
4590
4591 * ada-tasks.c (info_task): Remove quoting of the task's name.
4592
f2f24aa9
CB
45932019-09-16 Christian Biesinger <cbiesinger@google.com>
4594
4595 * symfile.c (auto_solib_add): Replace comment with a reference
4596 to the header file.
4597
6a062a93
CB
45982019-09-14 Christian Biesinger <cbiesinger@google.com>
4599
4600 * NEWS: Mention that gdb can now be compiled with Python 3
4601 on Windows.
4602
ec6c8338
AB
46032019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
4604
4605 * maint.c (maint_print_section_data::maint_print_section_data):
4606 Force use of 'float log10 (float)' by casting the argument to
4607 float.
4608
aa17805f
AB
46092019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
4610
4611 * maint.c: Add 'cmath' include.
4612 (struct maint_print_section_data): New structure.
4613 (print_section_index): New function.
4614 (print_bfd_section_info): Add header comment, small whitespace
4615 cleanup, and update to call new print_section_index function.
4616 (print_objfile_section_info): Likewise.
4617 (maint_obj_section_from_bfd_section): New function.
4618 (print_bfd_section_info_maybe_relocated): New function.
4619 (maintenance_info_sections): Add header comment, always use
4620 bfd_map_over_sections instead of ALL_OBJFILE_OSECTIONS.
4621
3dd9bb46
AB
46222019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
4623
4624 * psymtab.c (find_pc_sect_psymtab): Move baseaddr local into more
4625 inner scope, add check that the objfile has psymtabs before
4626 checking psymtabs_addrmap.
4627 * psymtab.h (psymtab_storage) <psymtabs_addrmap>: Extend comment.
4628
4993045d
PW
46292019-09-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4630
4631 * NEWS: Announce that Ada task names are now shown at more places,
4632 and between quotes (except in info task output).
4633 * gdb/ada-tasks.c (task_to_str): New function.
4634 (display_current_task_id): Call task_to_str.
4635 (task_command_1): Likewise.
4636 (print_ada_task_info): In non-mi mode, Properly align headers and data
4637 when task-id length is > 9 (9 is the default for a 32 bits CORE_ADDR).
4638
7a289707
RO
46392019-09-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4640
4641 * procfs.c (procfs_target::wait) <PR_FAULTED>: Get signal from
4642 prstatus.pr_lwp.pr_info instead of making it up.
4643
f2aec7f6
CB
46442019-09-11 Christian Biesinger <cbiesinger@google.com>
4645
4646 * auto-load.c (auto_load_expand_dir_vars): Update.
4647 * defs.h (gdb_datadir): Change to std::string.
4648 (python_libdir): Likewise.
4649 (relocate_gdb_directory): Change return type to std::string.
4650 * guile/guile.c (gdbscm_data_directory): Update.
4651 (initialize_scheme_side): Update.
4652 * jit.c (jit_reader_dir): Change to std::string.
4653 (jit_reader_load_command): Update.
4654 * main.c (gdb_datadir): Change to std::string.
4655 (python_libdir): Likewise.
4656 (set_gdb_data_directory): Update.
4657 (relocate_path): Change to return std::string.
4658 (relocate_gdb_directory): Change to return std::string.
4659 (relocate_gdbinit_path_maybe_in_datadir): Update.
4660 (captured_main_1): Update.
4661 * python/python.c (do_start_initialization): Update.
4662 * top.c (show_gdb_datadir): Update.
4663 * xml-syscall.c (xml_init_syscalls_info): Update.
4664 (init_syscalls_info): Update.
4665
9224a013
CB
46662019-09-11 Christian Biesinger <cbiesinger@google.com>
4667
4668 * main.c (relocate_gdbinit_path_maybe_in_datadir): Factor this code
4669 out of get_init_files.
4670 (get_init_files): Update.
4671
f48cd836
CB
46722019-09-11 Christian Biesinger <cbiesinger@google.com>
4673
4674 * main.c (get_init_files): Change to use std::string.
4675 (captured_main_1): Update.
4676 (print_gdb_help): Update.
4677
9cab7ecd
AT
46782019-09-11 Ali Tamur <tamur@google.com>
4679
4680 *gdb/target-float.c (host_float_ops<T>::to_longest): Update
4681 implementation.
4682
67547d89
CB
46832019-09-11 Christian Biesinger <cbiesinger@google.com>
4684
4685 * dbxread.c (read_dbx_symtab): Update.
4686 * dwarf2read.c (load_partial_dies): Update.
4687 * mdebugread.c (parse_partial_symbols): Update.
4688 (handle_psymbol_enumerators): Update.
4689 * psympriv.h (add_psymbol_to_list): Change type of copy_names to bool.
4690 * psymtab.c (add_psymbol_to_bcache): Likewise.
4691 (add_psymbol_to_list): Likewise.
4692 * symtab.c (symbol_set_names): Likewise.
4693 * symtab.h (symbol_set_names): Likewise.
4694 * xcoffread.c (scan_xcoff_symtab): Update.
4695
64b2d4a0
TT
46962019-09-11 Tom Tromey <tom@tromey.com>
4697
4698 * symfile-mem.c (symbol_file_add_from_memory): Use
4699 bfd_set_filename.
4700 * solib-darwin.c (darwin_bfd_open): Use bfd_set_filename.
4701 * solib-aix.c (solib_aix_bfd_open): Use bfd_set_filename.
4702
3b00ef10
TT
47032019-09-10 Tom Tromey <tromey@adacore.com>
4704
4705 * dwarf-index-write.c (write_psymbols): Extend error message.
4706 (debug_names::insert): Add Ada code.
4707 (debug_names::write_psymbols): Remove Ada check.
4708 (debug_names) <m_string_obstack>: New member.
4709 * dwarf2read.c (gdb_index_symbol_name_matcher): Remove.
4710 (gdb_index_symbol_name_matcher::matches): Remove.
4711 (mapped_index_base::find_name_components_bounds): Add "lang"
4712 parameter.
4713 (mapped_index_base::build_name_components): Also split names
4714 according to Ada syntax.
4715 (dw2_expand_symtabs_matching_symbol): Loop over languages. Change
4716 type of "match_callback".
4717 (check_match, check_find_bounds_finds)
4718 (dw2_expand_symtabs_matching): Update.
4719 (dw2_debug_names_iterator): Add new constructor.
4720 (dw2_debug_names_map_matching_symbols): New function.
4721 (dw2_debug_names_expand_symtabs_matching): Update.
4722 (dwarf2_debug_names_functions): Use
4723 dw2_debug_names_map_matching_symbols.
4724
aa391654
TT
47252019-09-10 Tom Tromey <tromey@adacore.com>
4726
4727 * dwarf2read.c (dw2_get_file_names_reader): Add the
4728 CU's file name to the results.
4729
b054970d
TT
47302019-09-10 Tom Tromey <tromey@adacore.com>
4731
4732 * ada-lang.c (add_nonlocal_symbols): Combine calls to
4733 map_matching_symbols. Update.
4734 * dwarf2read.c (dw2_map_matching_symbols): Update.
4735 * psymtab.c (match_partial_symbol): Change type; update.
4736 (psym_map_matching_symbols): Likewise.
4737 * symfile-debug.c (debug_qf_map_matching_symbols): Change
4738 type; update.
4739 * symfile.h (struct quick_symbol_functions)
4740 <map_matching_symbols>: Change "name" to be a lookup_name_info.
4741 Remove "match".
4742
6a3dbf1b
TT
47432019-09-10 Tom Tromey <tromey@adacore.com>
4744
4745 * psymtab.c (map_block): Remove.
4746 (psym_map_matching_symbols): Use iterate_over_symbols_terminated.
4747 * symtab.c (iterate_over_symbols_terminated): New function.
4748 * symtab.c (iterate_over_symbols_terminated): Declare.
4749
6969f124
TT
47502019-09-10 Tom Tromey <tromey@adacore.com>
4751
4752 * ada-lang.c (ada_iterate_over_symbols): Return bool.
4753 * language.h (struct language_defn) <la_iterate_over_symbols>:
4754 Return bool.
4755 * symtab.c (iterate_over_symbols): Return bool.
4756 * symtab.h (iterate_over_symbols): Return bool.
4757
199b4314
TT
47582019-09-10 Tom Tromey <tromey@adacore.com>
4759
4760 * ada-lang.c (aux_add_nonlocal_symbols): Change type.
4761 (add_nonlocal_symbols): Update.
4762 * dwarf2read.c (dw2_map_matching_symbols): Change type.
4763 * psymtab.c (map_block, psym_map_matching_symbols): Change type.
4764 * symfile-debug.c (debug_qf_map_matching_symbols): Change type.
4765 * symfile.h (struct quick_symbol_functions) <map_matching_symbols>:
4766 Change type of "callback". Remove "data".
4767
a084a2a6
AT
4768
47692019-09-09 Ali Tamur <tamur@google.com>
4770
4771 * dwarf2read.c (comp_unit_head): Update comment.
4772 (dwarf2_dwo_name): New function declaration.
4773 (dwarf_unit_type_name): New function declaration.
4774 (read_comp_unit_head): Add support for new compilation units,
4775 DW_UT_partial, DW_UT_skeleton, DW_UT_split_compile, DW_UT_split_type.
4776 Particularly, DW_UT_skeleton and DW_UT_split_compile have dwo_id
4777 (currently named as "signature") in their header. Also clarify error
4778 messages.
4779 (lookup_dwo_id): New function. Returns the dwo id of the given
4780 compile unit.
4781 (lookup_dwo_unit): Use the new lookup_dwo_id function.
4782 (init_cutu_and_read_dies): Use the new dwarf2_dwo_name and lookup_dwo_id
4783 functions.
4784 (create_dwo_cu_reader): Use the added lookup_dwo_id function.
4785 (dwarf2_dwo_name): Get the dwo name if present.
4786 (dwarf_unit_type_name): Convert DW_UT_* types to string for diagnostic
4787 purposes.
4788
25a2915e
TT
47892019-09-09 Tom Tromey <tom@tromey.com>
4790
4791 * tui/tui-win.c (tui_all_windows_info): Use ui_out.
4792
e4df0874
PW
47932019-09-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4794
4795 * python/python.c (do_start_initialization): Make progname_copy static,
4796 to avoid a leak report.
4797
8634b462
TT
47982019-09-08 Tom Tromey <tom@tromey.com>
4799
4800 * tui/tui-wingeneral.c (box_win): Truncate long window titles.
4801
c7f839cb
SM
48022019-09-07 Simon Marchi <simon.marchi@efficios.com>
4803
4804 * dwarf2read.c (struct dw2_symtab_iterator) <block_index>:
4805 Change type to gdb::optional<block_enum>.
4806 (dw2_symtab_iter_init): Change block_index parameter type
4807 to gdb::optional<block_enum>.
4808 (dw2_lookup_symbol): Change block_index parameter
4809 type to block_enum.c
4810 (dw2_debug_names_lookup_symbol): Likewise.
4811 * psymtab.c (psym_lookup_symbol): Likewise.
4812 * symfile-debug.c (debug_qf_lookup_symbol): Likewise.
4813 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
4814 Likewise.
4815
ead0e69a
CB
48162019-09-06 Christian Biesinger <cbiesinger@google.com>
4817
4818 * defs.h (relocate_gdb_directory): Change int to bool in
4819 signature and rename flag to relocatable.
4820 * main.c (relocate_path): Likewise.
4821 (relocate_gdb_directory): Likewise.
4822
b16c44de
AM
48232019-09-06 Alan Modra <amodra@gmail.com>
4824
4825 * coffread.c (coff_symfile_read): Constify filename variable.
4826 * dbxread.c (dbx_symfile_init, coffstab_build_psymtabs),
4827 (elfstab_build_psymtabs, stabsect_build_psymtabs): Likewise.
4828 * gdb_bfd.c (gdb_bfd_close_or_warn): Likewise.
4829 * solib.c (reload_shared_libraries_1): Likewise.
4830 * symfile.c (reread_symbols): Likewise.
4831 * solib-aix.c (solib_aix_bfd_open): Add cast for xfree of filename.
4832 * solib-darwin.c (darwin_bfd_open): Likewise.
4833 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
4834
06ff036e
AB
48352019-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
4836
4837 * psymtab.c (print_partial_symbols): Handle missing domain_enum
4838 values MODULE_DOMAIN and COMMON_BLOCK_DOMAIN.
4839
4e962e74
TT
48402019-09-03 Tom Tromey <tromey@adacore.com>
4841
4842 * ada-valprint.c (ada_val_print_num): Don't recurse for range
4843 types.
4844 (has_negatives): Unbias a range type bound.
4845 * dwarf2read.c (read_subrange_type): Handle DW_AT_GNU_bias.
4846 * gdbtypes.c (operator==): Handle new field.
4847 (create_range_type): Add "bias" parameter.
4848 (create_static_range_type, resolve_dynamic_range): Update.
4849 * gdbtypes.h (struct range_bounds) <bias>: New member.
4850 (create_range_type): Add bias parameter.
4851 * printcmd.c (print_scalar_formatted): Unbias range types.
4852 * value.c (unpack_long): Unbias range types.
4853 (pack_long): Bias range types.
4854
d90b8f26
AH
48552019-09-02 Alan Hayward <alan.hayward@arm.com>
4856
4857 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Check all
4858 probe arguments.
4859
fe01123e
AH
48602019-09-02 Alan Hayward <alan.hayward@arm.com>
4861
4862 * break-catch-throw.c (fetch_probe_arguments): Use gdbarch.
4863 * dtrace-probe.c (dtrace_probe::get_argument_count): Likewise.
4864 * probe.c (probe_safe_evaluate_at_pc) (compute_probe_arg)
4865 (compile_probe_arg): Likewise.
4866 * probe.h (get_argument_count): Likewise.
4867 * solib-svr4.c (solib_event_probe_action): Likewise.
4868 * stap-probe.c (stap_probe::get_argument_count): Likewise.
4869
e661ef01
AH
48702019-09-02 Alan Hayward <alan.hayward@arm.com>
4871
4872 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Move
4873 code to here...
4874 (svr4_create_solib_event_breakpoints): ...from here.
4875
47a536d9
SDJ
48762019-08-30 Sergio Durigan Junior <sergiodj@redhat.com>
4877
4878 * nat/fork-inferior.c (trace_start_error): Remove "\nError: "
4879 suffix from warning message.
4880
d6a00eba
TT
48812019-08-30 Tom Tromey <tom@tromey.com>
4882
4883 * tui/tui-winsource.h (struct tui_source_window_base)
4884 <refresh_all>: Don't declare.
4885 * tui/tui-winsource.c (tui_source_window_base::refresh_all):
4886 Remove.
4887 * tui/tui-win.c (tui_refresh_all_win): Don't call refresh_all or
4888 tui_show_locator_content.
4889 * tui/tui-regs.h (struct tui_data_window) <refresh_all>: Don't
4890 declare.
4891 * tui/tui-regs.c (tui_data_window::refresh_all): Remove.
4892 * tui/tui-data.h (struct tui_win_info) <refresh_all>: Don't
4893 declare.
4894
55b2657b
TT
48952019-08-30 Tom Tromey <tom@tromey.com>
4896
4897 * tui/tui-io.c (tui_cont_sig): Don't call wrefresh.
4898
12a8555a
TT
48992019-08-30 Tom Tromey <tom@tromey.com>
4900
4901 * tui/tui-stack.c (_initialize_tui_stack): Move later.
4902 Remove unnecessary forward declarations.
4903
900ac242
TT
49042019-08-30 Tom Tromey <tom@tromey.com>
4905
4906 * tui/tui-stack.c (tui_locator_window::set_locator_fullname): Call
4907 rerender.
4908 (tui_update_locator_fullname, tui_show_frame_info): Don't call
4909 tui_show_locator_content.
4910
99ab33fb
TT
49112019-08-30 Tom Tromey <tom@tromey.com>
4912
4913 * tui/tui-stack.c (tui_show_locator_content): Move lower. Rewrite.
4914 (tui_locator_window::rerender): Rewrite using body of previous
4915 tui_show_locator_content.
4916
e594a5d1
TT
49172019-08-30 Tom Tromey <tom@tromey.com>
4918
4919 * tui/tui-stack.h (struct tui_locator_window) <set_locator_info,
4920 set_locator_fullname>: New methods.
4921 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
4922 Rename from tui_set_locator_fullname.
4923 (tui_locator_window::set_locator_info): Rename from
4924 tui_set_locator_info. Return bool.
4925 (tui_update_locator_fullname, tui_show_frame_info): Update.
4926
715bb467
TT
49272019-08-30 Tom Tromey <tom@tromey.com>
4928
4929 * tui/tui-layout.c (show_layout): Don't call tui_refresh_all.
4930
772f3f03
TT
49312019-08-30 Tom Tromey <tom@tromey.com>
4932
4933 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Don't
4934 call touchwin.
4935
108e13ab
TT
49362019-08-30 Tom Tromey <tom@tromey.com>
4937
4938 * tui/tui-wingeneral.c (box_win): Assume win_info and
4939 win_info->handle cannot be NULL.
4940
cdaa6eb4
TT
49412019-08-30 Tom Tromey <tom@tromey.com>
4942
4943 * tui/tui-regs.h (struct tui_data_item_window) <rerender,
4944 refresh_window>: Declare.
4945 * tui/tui-regs.c (tui_data_window::display_registers_from): Call
4946 resize.
4947 (tui_data_item_window::rerender): Rename from
4948 tui_display_register.
4949 (tui_data_item_window::refresh_window): New method.
4950 * tui/tui-layout.c (tui_gen_win_info::resize): Do nothing on
4951 no-op.
4952
89df7f90
TT
49532019-08-30 Tom Tromey <tom@tromey.com>
4954
4955 * tui/tui-regs.h (struct tui_data_window) <regs_content,
4956 regs_column_count, current_group>: Move later. Now private.
4957 <get_current_group>: New method.
4958 * tui/tui-regs.c (tui_reg_command): Update.
4959 * tui/tui-layout.c (tui_set_layout): Update.
4960
1bf2866a
TT
49612019-08-30 Tom Tromey <tom@tromey.com>
4962
4963 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
4964 (tui_data_window::rerender): Don't call
4965 check_and_display_highlight_if_needed.
4966 (tui_data_window::refresh_all): Remove call to
4967 erase_data_content.
4968
0670413d
TT
49692019-08-30 Tom Tromey <tom@tromey.com>
4970
4971 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
4972 (tui_data_window::display_registers_from)
4973 (tui_data_window::display_reg_element_at_line)
4974 (tui_data_window::display_registers_from_line): Remove checks of
4975 "empty".
4976
18bb55c7
TT
49772019-08-30 Tom Tromey <tom@tromey.com>
4978
4979 * tui/tui-regs.h (struct tui_data_window) <display_all_data>:
4980 Don't declare.
4981 * tui/tui-regs.c (tui_data_window::show_registers): Call
4982 rerender.
4983 (tui_data_window::rerender): Rename from display_all_data.
4984 (tui_data_window::rerender): Remove old implementation.
4985
1f6d2f10
TT
49862019-08-30 Tom Tromey <tom@tromey.com>
4987
4988 * tui/tui-regs.c (tui_data_window::display_all_data): Change
4989 text.
4990 * tui/tui-data.h (NO_DATA_STRING): Remove define.
4991
16d01f9c
BW
49922019-08-29 Bernhard Wodok <barto@gmx.net>
4993 Sergio Durigan Junior <sergiodj@redhat.com>
4994
4995 PR win32/24284
4996 * mingw-hdep.c (gdb_select): Handle case when 'n' is zero.
4997
d8f27c60
AB
49982019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
4999
5000 * symtab.c (search_symbols): Don't include MODULE_DOMAIN symbols
5001 when searching for types.
5002
1f20c35e
AB
50032019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
5004
5005 * f-lang.c (f_language_defn): Use f_print_typedef.
5006 * f-lang.h (f_print_typedef): Declare.
5007 * f-typeprint.c (f_print_typedef): Define.
5008
550105b7
CB
50092019-08-27 Christian Biesinger <cbiesinger@google.com>
5010
5011 * nat/linux-namespaces.c (mnsh_main): Initialize fd (to -1).
5012
4acfdd20
AB
50132019-08-27 Andrew Burgess <andrew.burgess@embecosm.com>
5014
5015 * cli/cli-utils.c (info_print_options_defs): Delete.
5016 (make_info_print_options_def_group): Delete.
5017 (extract_info_print_options): Delete.
5018 (info_print_command_completer): Delete.
5019 (info_print_args_help): Add extra parameter, and optionally
5020 include text about -n flag.
5021 * cli/cli-utils.h (struct info_print_options): Delete.
5022 (extract_info_print_options): Delete declaration.
5023 (info_print_command_completer): Delete declaration.
5024 (info_print_args_help): Add extra parameter, extend header
5025 comment.
5026 * python/python.c (gdbpy_rbreak): Pass additional parameter to
5027 search_symbols.
5028 * stack.c (struct info_print_options): New type.
5029 (info_print_options_defs): New file scoped variable.
5030 (make_info_print_options_def_group): New static function.
5031 (info_print_command_completer): New static function.
5032 (info_locals_command): Update to use new local functions.
5033 (info_args_command): Likewise.
5034 (_initialize_stack): Add extra parameter to calls to
5035 info_print_args_help.
5036 * symtab.c (search_symbols): Add extra parameter, use this to
5037 possibly excluse non-debug symbols.
5038 (symtab_symbol_info): Add extra parameter, which is passed on to
5039 search_symbols.
5040 (struct info_print_options): New type.
5041 (info_print_options_defs): New file scoped variable.
5042 (make_info_print_options_def_group): New static function.
5043 (info_print_command_completer): New static function.
5044 (info_variables_command): Update to use local functions, and pass
5045 extra parameter through to symtab_symbol_info.
5046 (info_functions_command): Likewise.
5047 (info_types_command): Pass additional argument through to
5048 symtab_symbol_info.
5049 (rbreak_command): Pass extra argument to search_symbols.
5050 (_initialize_symtab): Add extra arguments for calls to
5051 info_print_args_help, and update help text for 'info variables',
5052 'whereis', and 'info functions' commands.
5053 * symtab.h (search_symbols): Add extra argument to declaration.
5054 * NEWS: Mention new flags.
5055
9aa55206
CB
50562019-08-26 Christian Biesinger <cbiesinger@google.com>
5057
5058 * symtab.c (lookup_static_symbol): Call the new function (and move
5059 it down to be next to lookup_global_symbol).
5060 (struct global_sym_lookup_data): Add block_enum member and rename to...
5061 (struct global_or_static_sym_lookup_data): ...this.
5062 (lookup_symbol_global_iterator_cb): Pass block_index instead of
5063 GLOBAL_BLOCK to lookup_symbol_in_objfile and rename to...
5064 (lookup_symbol_global_or_static_iterator_cb): ...this.
5065 (lookup_global_or_static_symbol): New function.
5066 (lookup_global_symbol): Call new function.
5067
5c31b358
TV
50682019-08-26 Tom de Vries <tdevries@suse.de>
5069
5070 PR c++/24852
5071 * break-catch-throw.c (fetch_probe_arguments): Improve error mesage
5072 when pc_probe.prob == NULL.
5073
23c13d42
SM
50742019-08-25 Simon Marchi <simon.marchi@efficios.com>
5075
5076 * dwarf2read.c (dw2_debug_names_iterator::next): Rename local
5077 variable symbol_linkage to symbol_linkage_.
5078
beadd3e8
SM
50792019-08-25 Simon Marchi <simon.marchi@efficios.com>
5080
5081 * dwarf2read.c (dw2_debug_names_iterator::next): Use enum to
5082 represent whether the symbol is static, dynamic, or we don't
5083 know.
5084
e3ec872f
YS
50852019-08-25 Yoshinori Sato <ysato@users.sourceforge.jp>
5086
5087 * gdb/rx-tdep.c (rx_register_names): New.
5088 (rx_register_name): Delete.
5089 (rx_psw_type): Delete.
5090 (rx_fpsw_type): Delete.
5091 (rx_register_type): Delete.
5092 (rx_gdbarch_init): Convert target-descriptions.
5093 (_initialize_rx_tdep): Add initialize_tdesc_rx.
5094 * gdb/features/Makefile: Add rx.xml.
5095 * gdb/features/rx.xml: New.
5096 * gdb/features/rx.c: Generated.
5097 * gdb/NEWS: Mention target description support.
5098
d0509ba4
CB
50992019-08-22 Christian Biesinger <cbiesinger@google.com>
5100
5101 * symtab.c (symbol_cache_lookup): Always initialize *bsc_ptr and
5102 *slot_ptr.
5103
2d41fa11
SDJ
51042019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
5105
5106 * configure.ac: Don't check for 'dlfcn.h' (moved to
5107 gdbsupport/common.m4).
5108 * Makefile.in (COMMON_SFILES): Move 'gdb-dlfcn.c' to
5109 'gdbsupport/'.
5110 (HFILES_NO_SRCDIR): Likewise, for 'gdb-dlfcn.h'.
5111 * compile/compile-c-support.c: Include
5112 'gdbsupport/gdb-dlfcn.h'.
5113 * gdbsupport/common.m4: Check for 'dlfcn.h'.
5114 * gdb-dlfcn.c: Move to...
5115 * gdbsupport/gdb-dlfcn.c: ... here.
5116 * gdb-dlfcn.h: Move to...
5117 * gdbsupport/gdb-dlfcn.h: ... here.
5118
de8af808
SL
51192019-08-23 Sandra Loosemore <sandra@codesourcery.com>
5120
5121 * nios2-tdep.c (struct reg_value): Improve comments. Make
5122 the offset field signed.
5123
27204489
CB
51242019-08-22 Christian Biesinger <cbiesinger@google.com>
5125
5126 * python/lib/gdb/__init__.py (_execute_file): New function.
5127 * python/python.c (python_run_simple_file): Call gdb._execute_file
5128 on Windows.
5129
43771869
AB
51302019-08-22 Andrew Burgess <andrew.burgess@embecosm.com>
5131
5132 * f-exp.y (yylex): Remove is_a_field_of_this local variable, and
5133 all uses as this was never set to anything but a zero value.
5134
26c957f1
PA
51352019-08-21 Bogdan Harjoc <harjoc@gmail.com>
5136
5137 * cli/cli-cmds.c (with_command_1): Error out if no arguments.
5138
c07aae6e
CB
51392019-08-21 Christian Biesinger <cbiesinger@google.com>
5140
5141 * tui/tui-data.h (tui_gen_win_info): Add an =default
5142 move constructor, required by some GCC versions.
5143
3960cb7a
JF
51442019-08-21 Jinke Fan <fanjinke51@yeah.net>
5145
5146 * go32-nat.c (go32_sysinfo): Add hygon_p.
5147
04c72a68
TT
51482019-08-20 Tom Tromey <tom@tromey.com>
5149
5150 * tui/tui-regs.h (struct tui_data_window) <last_regs_line_no,
5151 line_from_reg_element_no, first_reg_element_no_inline,
5152 display_all_data, delete_data_content_windows,
5153 erase_data_content>: Now private.
5154
072272ce
TT
51552019-08-20 Tom Tromey <tom@tromey.com>
5156
5157 * tui/tui-wingeneral.c (box_win): Change type of highlight_flag.
5158 (tui_unhighlight_win, tui_highlight_win)
5159 (tui_win_info::make_window): Update.
5160 * tui/tui-data.h (HILITE, NO_HILITE): Remove.
5161
973961bd
TT
51622019-08-20 Tom Tromey <tom@tromey.com>
5163
5164 * tui/tui-data.h (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
5165 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
5166 (MAX_PID_WIDTH): Move to tui-stack.c.
5167 * tui/tui-stack.c (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
5168 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
5169 (MAX_PID_WIDTH): Move from tui-data.h.
5170
ab0e1f1a
TT
51712019-08-20 Tom Tromey <tom@tromey.com>
5172
5173 * tui/tui-wingeneral.h (tui_make_window): Don't declare.
5174 * tui/tui-wingeneral.c (box_win): Change type of win_info.
5175 (box_win): Update.
5176 (tui_gen_win_info::make_window): Rename from tui_make_window.
5177 (tui_win_info::make_window): New method.
5178 (tui_gen_win_info::make_visible): Update.
5179 * tui/tui-source.c (tui_source_window::set_contents): Update.
5180 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
5181 (tui_data_window::display_registers_from): Update.
5182 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
5183 * tui/tui-data.h (struct tui_gen_win_info) <make_window>:
5184 Declare.
5185 <can_box>: Remove.
5186 <title>: Remove.
5187 (struct tui_win_info) <make_window>: Declare.
5188 <can_box>: Now virtual.
5189 <title>: New member.
5190 * tui/tui-data.c (~tui_gen_win_info): Don't free title.
5191 * tui/tui-command.c (tui_cmd_window::resize): Update.
5192
100c2bf3
TT
51932019-08-20 Tom Tromey <tom@tromey.com>
5194
5195 * tui/tui-regs.h (struct tui_data_window) <display_regs>: Remove.
5196 * tui/tui-regs.c (tui_data_window::show_registers): Update.
5197 (tui_data_window::check_register_values): Update.
5198
fa4dc567
TT
51992019-08-20 Tom Tromey <tom@tromey.com>
5200
5201 * tui/tui-regs.h (struct tui_data_window): Use
5202 DISABLE_COPY_AND_ASSIGN.
5203 <regs_content>: Change type, removing unique_ptr.
5204 <tui_data_window>: Add move constructor.
5205 * tui/tui-regs.c (tui_data_window::show_registers)
5206 (tui_data_window::show_register_group)
5207 (tui_data_window::display_registers_from)
5208 (tui_data_window::display_registers_from)
5209 (tui_data_window::first_data_item_displayed)
5210 (tui_data_window::delete_data_content_windows)
5211 (tui_data_window::rerender, tui_data_window::refresh_window)
5212 (tui_data_window::check_register_values): Update.
5213
ca02d7c8
TT
52142019-08-20 Tom Tromey <tom@tromey.com>
5215
5216 * tui/tui-regs.h (struct tui_data_window) <show_registers,
5217 show_register_group>: Declare.
5218 (tui_show_register_group): Don't declare.
5219 * tui/tui-regs.c (tui_data_window::show_registers): Rename from
5220 tui_show_registers.
5221 (tui_data_window::show_register_group): Rename from
5222 tui_show_register_group.
5223 (tui_data_window::check_register_values, tui_reg_command):
5224 Update.
5225 * tui/tui-layout.c (tui_set_layout): Update.
5226
63356bfd
TT
52272019-08-20 Tom Tromey <tom@tromey.com>
5228
5229 * tui/tui-regs.h (struct tui_data_window) <check_register_values>:
5230 Declare.
5231 (tui_check_register_values): Don't declare.
5232 * tui/tui-regs.c (tui_data_window::check_register_values): Rename
5233 from tui_check_register_values.
5234 * tui/tui-hooks.c (tui_register_changed): Update.
5235
42cc14a7
TT
52362019-08-20 Tom Tromey <tom@tromey.com>
5237
5238 * tui/tui-regs.c (tui_reg_layout): Move later.
5239 (tui_show_registers): Don't enable TUI mode or change layout.
5240
b9ad3686
TT
52412019-08-20 Tom Tromey <tom@tromey.com>
5242
5243 * tui/tui-regs.h (struct tui_data_item_window)
5244 <~tui_data_item_window>: Remove.
5245 <content>: Now a unique_xmalloc_ptr.
5246 * tui/tui-regs.c (tui_register_format): Return a
5247 unique_xmalloc_ptr.
5248 (tui_get_register): Update.
5249 (~tui_data_item_window): Remove.
5250 (tui_data_window::display_registers_from, tui_display_register):
5251 Update.
5252 * tui/tui-io.h (tui_expand_tabs): Update.
5253 * tui/tui-io.c (tui_expand_tabs): Return a unique_xmalloc_ptr.
5254 Remove "col" parameter.
5255
8e114aab
TT
52562019-08-20 Tom Tromey <tom@tromey.com>
5257
5258 * tui/tui-regs.h (struct tui_data_item_window) <value>: Remove
5259 field.
5260 * tui/tui-regs.c (~tui_data_item_window): Update.
5261
1a4f81dd
TT
52622019-08-20 Tom Tromey <tom@tromey.com>
5263
5264 * tui/tui-regs.c (tui_register_format, tui_get_register): Move
5265 earlier.
5266
0f8d8876
TT
52672019-08-20 Tom Tromey <tom@tromey.com>
5268
5269 * tui/tui-regs.c (tui_reg_command): Remove NULL check.
5270
605dc2c2
TT
52712019-08-20 Tom Tromey <tom@tromey.com>
5272
5273 * tui/tui-source.h (struct tui_source_window): Update.
5274 * tui/tui-regs.c (tui_show_registers): Update.
5275 * tui/tui-disasm.h (struct tui_disasm_window): Update.
5276 * tui/tui-data.h (NO_SRC_STRING, NO_DISASSEM_STRING)
5277 (NO_REGS_STRING): Remove defines.
5278
aedbe3bb
CM
52792019-08-20 Conrad Meyer <cem@FreeBSD.org>
5280
5281 * remote.c (remote_target::remote_btrace_maybe_reopen): Avoid
5282 unnecessary thread walk if remote doesn't support the packet.
5283
7ce8f214
TT
52842019-08-19 Tom Tromey <tromey@adacore.com>
5285
5286 * python/py-value.c (value_has_field): Fix indentation.
5287
f21c2bd7
TT
52882019-08-19 Tom Tromey <tromey@adacore.com>
5289
5290 * printcmd.c (do_one_display, info_display_command): Update.
5291 * block.h (contained_in): Return bool. Add allow_nested
5292 parameter.
5293 * block.c (contained_in): Return bool. Add allow_nested
5294 parameter.
5295
d806ea2d
TT
52962019-08-19 Tom Tromey <tom@tromey.com>
5297
5298 * configure: Rebuild.
5299 * configure.ac: Disallow the combination of -static-libstdc++ and
5300 source highlight.
5301 * source-cache.c (get_language_name): Handle rust.
5302 (source_cache::get_source_lines): Ignore highlighting exceptions.
5303
398fdd60
TT
53042019-08-16 Tom Tromey <tom@tromey.com>
5305
5306 * tui/tui.h (enum tui_win_type) <EXEC_INFO_WIN>: Remove.
5307 * tui/tui-winsource.h (struct tui_exec_info_window): Remove.
5308 (struct tui_source_window_base) <make_visible, refresh_window,
5309 resize>: Remove methods.
5310 <execution_info>: Remove field.
5311 * tui/tui-winsource.c (tui_source_window_base::do_erase_source_content)
5312 (tui_show_source_line, tui_source_window_base)
5313 (~tui_source_window_base): Update.
5314 (tui_source_window_base::resize)
5315 (tui_source_window_base::make_visible)
5316 (tui_source_window_base::refresh_window): Remove.
5317 (tui_source_window_base::update_exec_info): Update.
5318 * tui/tui-source.c (tui_source_window::set_contents): Update.
5319 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
5320
e699d331
TT
53212019-08-16 Tom Tromey <tom@tromey.com>
5322
5323 * tui/tui-hooks.c (tui_remove_hooks): Don't set
5324 deprecated_query_hook.
5325
bb01dbfc
TT
53262019-08-16 Tom Tromey <tom@tromey.com>
5327
5328 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
5329 (tui_update_source_windows_with_line): Update.
5330 * tui/tui-source.h (struct tui_source_window)
5331 <show_symtab_source>: Declare.
5332 (tui_show_symtab_source): Don't declare.
5333 * tui/tui-source.c (tui_show_symtab_source): Rename from
5334 tui_show_symtab_source.
5335
81c82c4b
TT
53362019-08-16 Tom Tromey <tom@tromey.com>
5337
5338 * tui/tui-winsource.h (struct tui_source_window_base)
5339 <set_contents>: Declare.
5340 * tui/tui-winsource.c
5341 (tui_source_window_base::update_source_window_as_is): Update.
5342 * tui/tui-source.h (struct tui_source_window) <set_contents>:
5343 Declare.
5344 (tui_set_source_content): Don't declare.
5345 * tui/tui-source.c (tui_source_window::set_contents): Rename from
5346 tui_set_source_content.
5347 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
5348 Declare.
5349 (tui_set_disassem_content): Don't declare.
5350 * tui/tui-disasm.c (tui_disasm_window::set_contents): Rename from
5351 tui_set_disassem_content.
5352
2ddaf614
TT
53532019-08-16 Tom Tromey <tom@tromey.com>
5354
5355 * tui/tui-winsource.h (struct tui_source_window_base)
5356 <update_breakpoint_info>: Declare.
5357 (tui_update_breakpoint_info): Don't declare.
5358 * tui/tui-winsource.c (tui_source_window_base::update_source_window_as_is)
5359 (tui_update_all_breakpoint_info): Update.
5360 (tui_source_window_base::update_breakpoint_info): Rename from
5361 tui_update_breakpoint_info.
5362 (tui_source_window_base::update_exec_info): Update.
5363
017f9828
TT
53642019-08-16 Tom Tromey <tom@tromey.com>
5365
5366 * tui/tui-winsource.h (struct tui_source_window_base)
5367 <update_source_window>: Declare.
5368 (tui_update_source_window): Don't declare.
5369 * tui/tui-winsource.c
5370 (tui_source_window_base::update_source_window): Rename from
5371 tui_update_source_window.
5372 (tui_source_window_base::rerender): Update.
5373 * tui/tui-source.c (tui_source_window::maybe_update): Update.
5374 * tui/tui-disasm.c (tui_show_disassem)
5375 (tui_show_disassem_and_update_source)
5376 (tui_disasm_window::maybe_update): Update.
5377
ed8358e9
TT
53782019-08-16 Tom Tromey <tom@tromey.com>
5379
5380 * tui/tui-winsource.h (struct tui_source_window_base)
5381 <update_source_window_as_is>: Declare.
5382 (tui_update_source_window_as_is): Don't declare.
5383 * tui/tui-winsource.c (tui_update_source_window): Update
5384 (tui_source_window_base::update_source_window_as_is): Rename from
5385 tui_update_source_window_as_is.
5386 (tui_source_window_base::refill): Update.
5387 * tui/tui-source.c (tui_show_symtab_source): Update.
5388 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical):
5389 Update.
5390
20149b6b
TT
53912019-08-16 Tom Tromey <tom@tromey.com>
5392
5393 * tui/tui-winsource.h (tui_update_source_window)
5394 (tui_update_source_window_as_is): Remove "noerror" parameter.
5395 * tui/tui-winsource.c (tui_update_source_window)
5396 (tui_update_source_window_as_is): Remove "noerror" parameter.
5397 (tui_update_source_windows_with_addr)
5398 (tui_update_source_windows_with_line)
5399 (tui_source_window_base::rerender)
5400 (tui_source_window_base::refill): Update.
5401 * tui/tui-source.h (tui_set_source_content)
5402 (tui_show_symtab_source): Remove "noerror" parameter.
5403 * tui/tui-source.c (tui_set_source_content): Remove "noerror"
5404 parameter.
5405 (tui_show_symtab_source): Likewise.
5406 (tui_source_window::maybe_update): Update.
5407 * tui/tui-disasm.c (tui_show_disassem)
5408 (tui_show_disassem_and_update_source)
5409 (tui_disasm_window::do_scroll_vertical)
5410 (tui_disasm_window::maybe_update): Update.
5411
2d83e710
TT
54122019-08-16 Tom Tromey <tom@tromey.com>
5413
5414 * tui/tui.c (tui_is_window_visible): Update.
5415 * tui/tui-wingeneral.c (tui_make_window)
5416 (tui_gen_win_info::make_visible, tui_refresh_all): Update.
5417 * tui/tui-win.c (window_name_completer, tui_refresh_all_win)
5418 (tui_set_focus_command, tui_all_windows_info, update_tab_width)
5419 (tui_set_win_height_command, parse_scrolling_args): Update.
5420 * tui/tui-source.c (tui_source_window::style_changed): Update.
5421 * tui/tui-regs.c (tui_show_registers)
5422 (tui_data_window::first_data_item_displayed)
5423 (tui_data_window::delete_data_content_windows)
5424 (tui_check_register_values, tui_reg_command): Update.
5425 * tui/tui-disasm.c (tui_show_disassem): Update.
5426 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: New
5427 method.
5428 <is_visible>: Remove field.
5429 * tui/tui-data.c (tui_next_win, tui_prev_win)
5430 (tui_delete_invisible_windows): Update.
5431
d4ab829a
TT
54322019-08-16 Tom Tromey <tom@tromey.com>
5433
5434 * tui/tui-winsource.h (struct tui_source_window_base)
5435 <m_has_locator>: Remove.
5436 * tui/tui-layout.c (show_source_disasm_command, show_data)
5437 (show_source_or_disasm_and_command): Update.
5438
aa7ca1bb
AH
54392019-08-16 Alan Hayward <alan.hayward@arm.com>
5440
5441 * NEWS (Other MI changes): New subsection.
5442 * aarch64-tdep.c (aarch64_get_pc_address_flags): New function.
5443 (aarch64_gdbarch_init): Add aarch64_get_pc_address_flags.
5444 * arch-utils.c (default_get_pc_address_flags): New function.
5445 * arch-utils.h (default_get_pc_address_flags): New declaration.
5446 * gdbarch.sh: Add get_pc_address_flags.
5447 * gdbarch.c: Regenerate.
5448 * gdbarch.h: Likewise.
5449 * stack.c (print_pc): New function.
5450 (print_frame_info) (print_frame): Call print_pc.
5451
6eac171f
TV
54522019-08-16 Tom de Vries <tdevries@suse.de>
5453
5454 * maint.c (maintenance_info_sections): Also handle !ALLOBJ case using
5455 print_objfile_section_info.
5456
3df505f6
TT
54572019-08-15 Tom Tromey <tom@tromey.com>
5458
5459 * tui/tui-io.c (tui_puts_internal): Check TUI_CMD_WIN before
5460 calling update_cmdwin_start_line.
5461 * tui/tui-winsource.h (struct tui_source_window_base)
5462 <do_make_visible_with_new_height, set_new_height>: Don't declare.
5463 <rerender>: Declare.
5464 * tui/tui-winsource.c (tui_source_window_base::update_tab_width):
5465 Call rerender.
5466 (tui_source_window_base::set_new_height): Remove.
5467 (tui_source_window_base::rerender): Rename from
5468 do_make_visible_with_new_height.
5469 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use
5470 resize method.
5471 (tui_win_info::make_invisible_and_set_new_height)
5472 (tui_win_info::make_visible_with_new_height): Remove.
5473 * tui/tui-stack.h (struct tui_locator_window) <rerender>:
5474 Declare.
5475 * tui/tui-stack.c (tui_locator_window::rerender): New method.
5476 * tui/tui-regs.h (struct tui_data_window) <set_new_height,
5477 do_make_visible_with_new_height>: Don't declare.
5478 <rerender>: Declare.
5479 * tui/tui-regs.c (tui_data_window::rerender): Rename from
5480 set_new_height.
5481 (tui_data_window::do_make_visible_with_new_height): Remove.
5482 * tui/tui-layout.c (show_source_disasm_command, show_data): Don't
5483 call tui_show_locator_content.
5484 (tui_gen_win_info::resize): Call rerender.
5485 (show_source_or_disasm_and_command): Don't call
5486 tui_show_locator_content.
5487 * tui/tui-data.h (struct tui_gen_win_info) <rerender>: New
5488 method.
5489 (struct tui_win_info) <rerender>: Declare.
5490 <set_new_height, make_invisible_and_set_new_height,
5491 make_visible_with_new_height>: Don't declare.
5492 * tui/tui-data.c (tui_win_list::rerender): New method.
5493 * tui/tui-command.h (struct tui_cmd_window)
5494 <do_make_visible_with_new_height>: Don't declare.
5495 * tui/tui-command.c
5496 (tui_cmd_window::do_make_visible_with_new_height): Remove.
5497
272560b5
TT
54982019-08-15 Tom Tromey <tromey@adacore.com>
5499
5500 * ada-exp.y (convert_char_literal): Handle "Q%c" encoding.
5501 * ada-lang.c (ada_enum_name): Likewise.
5502
08235187
CB
55032019-08-15 Christian Biesinger <cbiesinger@google.com>
5504
5505 * python/lib/gdb/__init__.py (GdbOutputFile): Rename to have a
5506 leading underscore.
5507 (GdbOutputErrorFile): Likewise.
5508 (global scope): Adjust constructor calls to GdbOutput{,Error}File
5509 accordingly.
5510 (execute_unwinders): Rename to have a leading underscore.
5511 (auto_load_packages): Likewise.
5512 (global scope): Adjust call to auto_load_packages accordingly.
5513 (GdbSetPythonDirectory): Likewise.
5514 * python/py-unwind.c (pyuw_sniffer): Call _execute_unwinders
5515 instead of execute_unwinders.
5516
db502012
TT
55172019-08-15 Tom Tromey <tom@tromey.com>
5518
5519 * tui/tui-layout.c (show_layout, show_source_disasm_command)
5520 (show_data): Don't change window visibility.
5521 (tui_gen_win_info::resize): Remove special case for command
5522 window. Use wresize, when available.
5523 (show_source_or_disasm_and_command): Don't change window
5524 visibility.
5525 * tui/tui-command.h (struct tui_cmd_window) <resize>: Declare.
5526 <make_visible>: New method.
5527 * tui/tui-command.c (tui_cmd_window::resize): New method.
5528
3891b65e
TT
55292019-08-15 Tom Tromey <tom@tromey.com>
5530
5531 * tui/tui-winsource.h (struct tui_source_window_iterator): New.
5532 (struct tui_source_windows): New.
5533 * tui/tui-winsource.c (tui_display_main): Update.
5534 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
5535 (new_height_ok, parse_scrolling_args): Update.
5536 * tui/tui-layout.c (show_layout, show_data): Update.
5537 * tui/tui-data.h (tui_source_windows, tui_clear_source_windows)
5538 (tui_add_to_source_windows): Don't declare.
5539 * tui/tui-data.c (source_windows, tui_source_windows)
5540 (tui_clear_source_windows, tui_add_to_source_windows): Remove.
5541
ee556432
TT
55422019-08-15 Tom Tromey <tom@tromey.com>
5543
5544 * tui/tui-winsource.h (struct tui_source_window_base) <resize>:
5545 Rename from reset.
5546 * tui/tui-winsource.c (tui_source_window_base::resize): Rename.
5547 * tui/tui-layout.c (show_source_disasm_command, show_data):
5548 Update.
5549 (tui_gen_win_info::resize): Rename.
5550 (show_source_or_disasm_and_command): Update.
5551 * tui/tui-data.h (struct tui_gen_win_info) <resize>: Rename from
5552 reset.
5553
46f438e3
TT
55542019-08-15 Tom Tromey <tom@tromey.com>
5555
5556 * tui/tui-stack.c (tui_initialize_static_data): Remove.
5557 * tui/tui-interp.c (tui_interp::init): Don't call
5558 tui_initialize_static_data.
5559 * tui/tui-data.h (tui_initialize_static_data): Don't declare.
5560
f4ce562c
TT
55612019-08-15 Tom Tromey <tom@tromey.com>
5562
5563 * tui/tui-layout.c (tui_default_win_viewport_height): Don't
5564 examine tui_win_list.
5565
c398c3d0
TT
55662019-08-15 Tom Tromey <tom@tromey.com>
5567
5568 * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
5569 * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
5570 tui_clear_source_content.
5571 (tui_clear_source_content): Remove.
5572 (tui_source_window_base::do_erase_source_content): Hoist call to
5573 content.clear().
5574 * tui/tui-stack.c (tui_show_frame_info): Don't call
5575 tui_clear_source_content.
5576
e25d2004
TT
55772019-08-15 Tom Tromey <tom@tromey.com>
5578
5579 * tui/tui-winsource.h (struct tui_source_window_base)
5580 <do_erase_source_content>: New method.
5581 <erase_source_content>: New method.
5582 (tui_erase_source_content): Don't declare.
5583 * tui/tui-winsource.c (tui_clear_source_content): Update.
5584 (tui_source_window_base::do_erase_source_content): Rename from
5585 tui_erase_source_content.
5586 (tui_source_window_base::show_source_content): Update.
5587 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
5588 * tui/tui-source.h (struct tui_source_window)
5589 <erase_source_content>: New method.
5590 * tui/tui-disasm.h (struct tui_disasm_window)
5591 <erase_source_content>: New method.
5592
002f15c2
TT
55932019-08-15 Tom Tromey <tom@tromey.com>
5594
5595 * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
5596 (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
5597 constructor.
5598 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
5599 * tui/tui-source.c (tui_set_source_content): Update.
5600 * tui/tui-disasm.c (tui_set_disassem_content): Update.
5601
c9033fe8
TT
56022019-08-15 Tom Tromey <tom@tromey.com>
5603
5604 * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
5605 * tui/tui-winsource.c (tui_line_is_displayed): Move to
5606 tui-source.c.
5607 * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
5608 Declare.
5609 * tui/tui-source.c (tui_source_window::line_is_displayed): New
5610 method.
5611 (tui_source_window::maybe_update): Update.
5612
088f37dd
TT
56132019-08-15 Tom Tromey <tom@tromey.com>
5614
5615 * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
5616 * tui/tui-winsource.c (tui_addr_is_displayed): Move to
5617 tui-disasm.c.
5618 * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
5619 Declare.
5620 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
5621 method.
5622 (tui_disasm_window::maybe_update): Update.
5623
a54700c6
TT
56242019-08-15 Tom Tromey <tom@tromey.com>
5625
5626 * tui/tui-winsource.h (struct tui_source_window_base)
5627 <maybe_update>: Declare.
5628 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
5629 method.
5630 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
5631 Declare.
5632 * tui/tui-source.c (tui_source_window::maybe_update): New method.
5633 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
5634 Declare.
5635 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
5636
e2a678a5
TT
56372019-08-15 Tom Tromey <tom@tromey.com>
5638
5639 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
5640
f2dda477
TT
56412019-08-15 Tom Tromey <tom@tromey.com>
5642
5643 * tui/tui-wingeneral.c: Include tui-stack.h.
5644 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
5645 (struct tui_locator_window): Move from tui-data.h.
5646 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
5647 (tui_initialize_static_data): Move from tui-data.c.
5648 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
5649 (struct tui_locator_window): Move to tui-stack.c.
5650 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
5651 (tui_initialize_static_data): Move to tui-stack.c.
5652
ed4a1084
TT
56532019-08-15 Tom Tromey <tom@tromey.com>
5654
5655 * tui/tui-layout.c (show_source_disasm_command)
5656 (show_source_or_disasm_and_command): Use make_visible method, not
5657 tui_make_window.
5658 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
5659 Remove.
5660
65962b20
TT
56612019-08-15 Tom Tromey <tom@tromey.com>
5662
5663 * tui/tui-wingeneral.h (tui_make_window): Update.
5664 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
5665 parameter.
5666 (tui_gen_win_info::make_visible): Update.
5667 * tui/tui-regs.c (tui_data_window::display_registers_from):
5668 Update.
5669 * tui/tui-layout.c (show_source_disasm_command)
5670 (show_source_or_disasm_and_command): Update.
5671 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
5672 (enum tui_box): Remove.
5673 (struct tui_win_info) <can_box>: New method.
5674 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
5675 method.
5676
2208ee91
TV
56772019-08-15 Tom de Vries <tdevries@suse.de>
5678
5679 * linux-nat-trad.c: Include gdbarch.h.
5680
75faf5c4
AH
56812019-08-14 Alan Hayward <alan.hayward@arm.com>
5682
5683 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
5684 register sizes.
5685
b1c896b3
TT
56862019-08-14 Tom Tromey <tromey@adacore.com>
5687
5688 * darwin-nat.c: Include gdbarch.h.
5689 * darwin-nat-info.c: Include gdbarch.h.
5690
6405cd73
TT
56912019-08-13 Tom Tromey <tom@tromey.com>
5692
5693 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
5694 Remove.
5695 * tui/tui-data.c (tui_initialize_static_data): Update.
5696
5216580d
TT
56972019-08-13 Tom Tromey <tom@tromey.com>
5698
5699 * tui/tui-winsource.h (struct tui_exec_info_window)
5700 <~tui_exec_info_window, maybe_allocate_content, get_content,
5701 m_content>: Remove.
5702 (struct tui_source_window_base) <set_exec_info_content,
5703 show_exec_info_content>: Don't declare.
5704 * tui/tui-winsource.c
5705 (tui_exec_info_window::maybe_allocate_content): Remove.
5706 (tui_source_window_base::update_exec_info): Rename from
5707 set_exec_info_content.
5708 (tui_source_window_base::show_exec_info_content)
5709 (tui_source_window_base::update_exec_info): Remove.
5710
93858ad3
TT
57112019-08-13 Tom Tromey <tom@tromey.com>
5712
5713 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
5714 declare.
5715 * tui/tui-winsource.c (tui_update_source_window_as_is)
5716 (tui_update_source_windows_with_addr, tui_erase_source_content):
5717 Update.
5718 (tui_clear_exec_info_content): Remove.
5719
e321e7ce
TT
57202019-08-13 Tom Tromey <tom@tromey.com>
5721
5722 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
5723 declare.
5724 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
5725 call tui_erase_exec_info_content.
5726 (tui_clear_exec_info_content): Rename from
5727 tui_erase_exec_info_content.
5728 (tui_clear_exec_info_content): Delete.
5729
8270ac62
TT
57302019-08-13 Tom Tromey <tom@tromey.com>
5731
5732 * tui/tui-winsource.h (struct tui_source_window_base)
5733 <show_exec_info_content>: Declare.
5734 (tui_show_exec_info_content): Don't declare.
5735 * tui/tui-winsource.c
5736 (tui_source_window_base::show_exec_info_content): Rename from
5737 tui_show_exec_info_content.
5738 (tui_source_window_base::update_exec_info): Update.
5739
7b56485d
TT
57402019-08-13 Tom Tromey <tom@tromey.com>
5741
5742 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
5743 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
5744 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
5745 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
5746 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
5747 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
5748 ... here.
5749
7ba913dc
TT
57502019-08-13 Tom Tromey <tom@tromey.com>
5751
5752 * tui/tui-winsource.h (struct tui_source_window_base)
5753 <update_exec_info>: Declare.
5754 (tui_update_exec_info): Don't declare.
5755 * tui/tui-winsource.c (tui_update_source_window_as_is)
5756 (tui_source_window_base::refresh_all)
5757 (tui_update_all_breakpoint_info): Update.
5758 (tui_source_window_base::update_exec_info): Rename from
5759 tui_update_exec_info.
5760 * tui/tui-stack.c (tui_show_frame_info): Update.
5761
37a4a131
TT
57622019-08-13 Tom Tromey <tom@tromey.com>
5763
5764 * tui/tui-winsource.h (struct tui_source_window_base)
5765 <set_exec_info_content>: Declare.
5766 (tui_set_exec_info_content): Don't declare.
5767 * tui/tui-winsource.c
5768 (tui_source_window_base::set_exec_info_content): Rename from
5769 tui_set_exec_info_content.
5770 (tui_update_exec_info): Update.
5771
0bd27e07
TT
57722019-08-13 Tom Tromey <tom@tromey.com>
5773
5774 * tui/tui-winsource.h (struct tui_source_window_base)
5775 <show_source_content>: Declare.
5776 (tui_show_source_content): Don't declare.
5777 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
5778 (tui_source_window_base::show_source_content): Rename from
5779 tui_show_source_content.
5780 (tui_source_window_base::refresh_all): Update.
5781 * tui/tui-layout.c (show_source_disasm_command)
5782 (show_source_or_disasm_and_command): Update.
5783
b4ef5aeb
TT
57842019-08-13 Tom Tromey <tom@tromey.com>
5785
5786 * tui/tui-winsource.c (tui_erase_source_content)
5787 (tui_show_source_content, tui_source_window_base::refresh_all):
5788 Update.
5789 * tui/tui-wingeneral.h
5790 (tui_check_and_display_highlight_if_needed): Don't declare.
5791 * tui/tui-wingeneral.c
5792 (tui_win_info::check_and_display_highlight_if_needed): Rename from
5793 check_and_display_highlight_if_needed.
5794 * tui/tui-win.c (tui_rehighlight_all)
5795 (tui_win_info::make_visible_with_new_height): Update.
5796 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
5797 (tui_data_window::erase_data_content)
5798 (tui_data_window::display_all_data): Update.
5799 * tui/tui-data.h (struct tui_win_info)
5800 <check_and_display_highlight_if_needed>: Declare.
5801
fede5273
TT
58022019-08-13 Tom Tromey <tom@tromey.com>
5803
5804 * tui/tui-win.c (tui_resize_all): Call
5805 tui_delete_invisible_windows.
5806 * tui/tui-layout.c (show_layout): Call
5807 tui_delete_invisible_windows.
5808 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
5809 * tui/tui-data.c (tui_delete_invisible_windows): New function.
5810
22c3f490
TT
58112019-08-13 Tom Tromey <tom@tromey.com>
5812
5813 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
5814 tui_add_win_to_layout.
5815
16cb7910
TT
58162019-08-13 Tom Tromey <tom@tromey.com>
5817
5818 * tui/tui-layout.h (tui_default_win_height): Don't declare.
5819 * tui/tui-layout.c (tui_default_win_height): Now static.
5820
cc0c3ffb
TT
58212019-08-13 Tom Tromey <tom@tromey.com>
5822
5823 * tui/tui-layout.c (show_layout): Unify all layout cases into a
5824 single switch.
5825 (show_source_disasm_command, show_source_or_disasm_and_command):
5826 Don't check current layout.
5827
3f3ffe54
TT
58282019-08-13 Tom Tromey <tom@tromey.com>
5829
5830 * tui/tui-wingeneral.c (make_all_visible): Remove.
5831 (tui_make_all_invisible): Simplify.
5832 * tui/tui-layout.c (tui_make_all_invisible): Move from
5833 tui-wingeneral.c; simplify.
5834 (show_layout): Hoist call to tui_make_all_invisible.
5835 (show_data): Don't call tui_make_all_invisible.
5836
69258091
TT
58372019-08-13 Tom Tromey <tom@tromey.com>
5838
5839 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
5840 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
5841
62cf57fe
TT
58422019-08-13 Tom Tromey <tom@tromey.com>
5843
5844 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
5845 tui-data.c.
5846 (show_source_disasm_command, show_data)
5847 (show_source_or_disasm_and_command): Don't use
5848 tui_set_current_layout_to.
5849 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
5850 * tui/tui-data.c (current_layout, tui_current_layout): Move to
5851 tui-layout.c.
5852 (tui_set_current_layout_to): Remove.
5853
2afade5d
TT
58542019-08-13 Tom Tromey <tom@tromey.com>
5855
5856 * tui/tui-layout.c (tui_set_layout): Update.
5857 * tui/tui-data.h (struct tui_layout_def): Remove.
5858 (tui_layout_def): Don't declare.
5859 * tui/tui-data.c (layout_def): Remove.
5860 (tui_layout_def): Remove.
5861
a3504e96
TT
58622019-08-13 Tom Tromey <tom@tromey.com>
5863
5864 * tui/tui-winsource.h (struct tui_source_window_base)
5865 <clear_detail>: No longer "override".
5866 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
5867 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
5868 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
5869 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
5870 Remove.
5871 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
5872
29c92911
TT
58732019-08-13 Tom Tromey <tromey@adacore.com>
5874
5875 * tracepoint.c: Don't include readline.h or history.h.
5876
86c6b807
TT
58772019-08-12 Tom Tromey <tom@tromey.com>
5878
5879 * configure: Rebuild.
5880 * configure.ac: Check for readline 7.
5881 * NEWS: Mention readline 7 requirement.
5882 * README: Update.
5883
5db2718c
TT
58842019-08-12 Tom Tromey <tom@tromey.com>
5885
5886 * mingw-hdep.c (gdb_select): Remove readline hack.
5887
dac36daf
PFC
58882019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5889
5890 * blockframe.c (find_pc_partial_function): Set *block to nullptr
5891 when the function fails.
5892
1022c627
AA
58932019-08-09 Andreas Arnez <arnez@linux.ibm.com>
5894
5895 * s390-tdep.c (s390_type_align): New function.
5896 (s390_gdbarch_init): Set it as type_align gdbarch method.
5897
eba4caf2
TV
58982019-08-09 Tom de Vries <tdevries@suse.de>
5899
5900 PR gdb/24591
5901 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
5902 pc_low with relocation offset.
5903
123cd851
TT
59042019-08-07 Tom Tromey <tromey@adacore.com>
5905
5906 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
5907 (print_frame_args): Update.
5908 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
5909 Update.
5910 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
5911 * frame.h (struct frame_arg): Add initializers.
5912 <error>: Now a unique_xmalloc_ptr.
5913
3d31bc39
AH
59142019-08-07 Alan Hayward <alan.hayward@arm.com>
5915
5916 * NEWS: Expand the Pointer Authentication entry.
5917 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
5918 (aarch64_frame_unmask_lr): ... to this.
5919 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
5920 Call aarch64_frame_unmask_lr.
5921 * frame.c (struct frame_info): Add "masked" variable.
5922 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
5923 (fprint_frame): Check for masked pc.
5924 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
5925 declarations.
5926 * python/py-framefilter.c (py_print_frame): Check for masked pc.
5927 * stack.c (print_frame): Check for masked pc.
5928
0cf9feb9
TT
59292019-08-06 Tom Tromey <tom@tromey.com>
5930
5931 * stabsread.c (patch_block_stabs, read_one_struct_field)
5932 (read_enum_type): Use obstack_strndup.
5933 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
5934 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
5935 * dwarf2read.c (guess_full_die_structure_name)
5936 (anonymous_struct_prefix): Use obstack_strndup.
5937 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
5938 * c-exp.y (yylex): Use obstack_strndup.
5939 * ada-exp.y (write_object_renaming, write_ambiguous_var)
5940 (write_var_or_type): Use obstack_strndup.
5941
efba19b0
TT
59422019-08-06 Tom Tromey <tom@tromey.com>
5943
5944 * symfile.c (reread_symbols): Use obstack_strdup.
5945 * stabsread.c (read_type): Use obstack_strdup.
5946 * gdb_obstack.h (obstack_strdup): New overload.
5947 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
5948 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
5949 (dwarf2_canonicalize_name): Use obstack_strdup.
5950 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
5951 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
5952 Use obstack_strdup.
5953
f25102f7
TT
59542019-08-06 Tom Tromey <tom@tromey.com>
5955
5956 * gdb_obstack.h (obstack_strdup): Define.
5957 * gdb_obstack.c (obstack_strdup): Don't define.
5958
021887d8
TT
59592019-08-06 Tom Tromey <tom@tromey.com>
5960
5961 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
5962 obstack_strdup.
5963 * typeprint.c (typedef_hash_table::find_global_typedef): Use
5964 obstack_strdup.
5965 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
5966 * stabsread.c (common_block_start): Use obstack_strdup.
5967 * objfiles.c (set_objfile_main_name, objfile): Use
5968 obstack_strdup.
5969 * namespace.c (add_using_directive): Use obstack_strdup.
5970 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
5971 * jit.c (finalize_symtab): Use obstack_strdup.
5972 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
5973 (guess_partial_die_structure_name, partial_die_info::fixup)
5974 (dwarf2_name): Use obstack_strdup.
5975 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
5976 obstack_strdup.
5977 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
5978 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
5979 obstack_strdup.
5980 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
5981
d2834edc
PW
59822019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5983
5984 * unittests/help-doc-selftests.c: New file.
5985 * Makefile.in: Add the new file.
5986
590042fc
PW
59872019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5988
5989 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
5990 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
5991 the full first line, except when FOR_VALUE_PREFIX. In this case,
5992 the trailing '.' is not output, and the first character is uppercased.
5993 (print_help_for_command): Update call to print_doc_line.
5994 (print_doc_of_command): Likewise.
5995 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
5996 * cli/cli-option.c (append_indented_doc): Do not append newline.
5997 (build_help_option): Append newline after first appended_indented_doc
5998 only if a second call is done.
5999 (build_help): Append 2 new lines before each option, except the first
6000 one.
6001 * compile/compile.c (_initialize_compile): Add new lines after
6002 %OPTIONS%, when not at the end of the help.
6003 Change help doc or code
6004 producing the help doc to respect the invariants.
6005 * maint-test-options.c (_initialize_maint_test_options): Likewise.
6006 Also removed the new line after 'Options:', as all other commands
6007 do not put an empty line between 'Options:' and the first option.
6008 * printcmd.c (_initialize_printcmd): Likewise.
6009 * stack.c (_initialize_stack): Likewise.
6010 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
6011 incorrectly telling COMMAND is optional.
6012 * ada-lang.c (_initialize_ada_language): Change help doc or code
6013 producing the help doc to respect the invariants.
6014 * ada-tasks.c (_initialize_ada_tasks): Likewise.
6015 * breakpoint.c (_initialize_breakpoint): Likewise.
6016 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
6017 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
6018 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
6019 * cli/cli-style.c (cli_style_option::add_setshow_commands,
6020 _initialize_cli_style): Likewise.
6021 * corelow.c (core_target_info): Likewise.
6022 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
6023 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
6024 * filesystem.c (_initialize_filesystem): Likewise.
6025 * frame.c (_initialize_frame): Likewise.
6026 * gnu-nat.c (add_task_commands): Likewise.
6027 * infcall.c (_initialize_infcall): Likewise.
6028 * infcmd.c (_initialize_infcmd): Likewise.
6029 * interps.c (_initialize_interpreter): Likewise.
6030 * language.c (_initialize_language): Likewise.
6031 * linux-fork.c (_initialize_linux_fork): Likewise.
6032 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
6033 * maint.c (_initialize_maint_cmds): Likewise.
6034 * memattr.c (_initialize_mem): Likewise.
6035 * printcmd.c (_initialize_printcmd): Likewise.
6036 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
6037 _RegEx): Likewise.
6038 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
6039 * record-btrace.c (_initialize_record_btrace): Likewise.
6040 * record-full.c (_initialize_record_full): Likewise.
6041 * record.c (_initialize_record): Likewise.
6042 * regcache-dump.c (_initialize_regcache_dump): Likewise.
6043 * regcache.c (_initialize_regcache): Likewise.
6044 * remote.c (add_packet_config_cmd, init_remote_threadtests,
6045 _initialize_remote): Likewise.
6046 * ser-tcp.c (_initialize_ser_tcp): Likewise.
6047 * serial.c (_initialize_serial): Likewise.
6048 * skip.c (_initialize_step_skip): Likewise.
6049 * source.c (_initialize_source): Likewise.
6050 * stack.c (_initialize_stack): Likewise.
6051 * symfile.c (_initialize_symfile): Likewise.
6052 * symtab.c (_initialize_symtab): Likewise.
6053 * target-descriptions.c (_initialize_target_descriptions): Likewise.
6054 * top.c (init_main): Likewise.
6055 * tracefile-tfile.c (tfile_target_info): Likewise.
6056 * tracepoint.c (_initialize_tracepoint): Likewise.
6057 * tui/tui-win.c (_initialize_tui_win): Likewise.
6058 * utils.c (add_internal_problem_command): Likewise.
6059 * valprint.c (value_print_option_defs): Likewise.
6060
404f2902
FCE
60612019-08-06 Frank Ch. Eigler <fche@redhat.com>
6062
6063 PR build/24886
6064 * configure.ac: Drop enable-libmcheck support.
6065 * configure, config.in: Rebuild.
6066 * libmcheck.m4: Remove.
6067 * acinclude.m4: Don't include it.
6068 * Makefile.in: Don't distribute it.
6069 * top.c (print_gdb_configuration): Don't mention it.
6070
046bebe1
TT
60712019-08-06 Tom Tromey <tom@tromey.com>
6072
6073 * utils.c (set_output_style): Sometimes pass stream to
6074 emit_style_escape.
6075 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
6076 * record-btrace.c (btrace_insn_history): Update.
6077 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
6078 method.
6079 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
6080 Update initializers.
6081 <m_uiout>: New field.
6082 <m_di>: Move lower.
6083 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
6084 Remove "uiout" parameter.
6085 (dump_insns): Update.
6086 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
6087 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
6088
ddbcedf5
CB
60892019-08-06 Christian Biesinger <cbiesinger@google.com>
6090
6091 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
6092 (error_in_psymtab_expansion): Likewise.
6093 (lookup_symbol_via_quick_fns): Likewise.
6094 (basic_lookup_transparent_type_quick): Likewise.
6095 (basic_lookup_transparent_type_1): Likewise.
6096
b08b16c8
TT
60972019-08-06 Tom Tromey <tromey@adacore.com>
6098
6099 * source.c (last_source_error): Now bool.
6100 (print_source_lines_base): Make "noprint" bool. Only open
6101 source file when last_source_visited changes.
6102
cb44333d
TT
61032019-08-06 Tom Tromey <tromey@adacore.com>
6104
6105 * annotate.c (annotate_source_line): Use g_source_cache.
6106 * source-cache.c (source_cache::get_plain_source_lines): Change
6107 parameters. Populate m_offset_cache.
6108 (source_cache::ensure): New method.
6109 (source_cache::get_line_charpos): New method.
6110 (extract_lines): Move lower. Change parameters.
6111 (source_cache::get_source_lines): Move lower.
6112 * source-cache.h (class source_cache): Update comment.
6113 <get_line_charpos>: New method.
6114 <get_source_lines>: Update comment.
6115 <clear>: Clear m_offset_cache.
6116 <get_plain_source_lines>: Change parameters.
6117 <ensure>: New method
6118 <m_offset_cache>: New member.
6119 * source.c (forget_cached_source_info_for_objfile): Update.
6120 (info_source_command): Use g_source_cache.
6121 (find_source_lines, open_source_file_with_line_charpos): Remove.
6122 (print_source_lines_base, search_command_helper): Use g_source_cache.
6123 * source.h (open_source_file_with_line_charpos): Don't declare.
6124 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
6125 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
6126 Use g_source_cache.
6127
872dceaa
TT
61282019-08-06 Tom Tromey <tromey@adacore.com>
6129
6130 * source-cache.c (source_cache::get_plain_source_lines):
6131 Remove "first_line" and "last_line" parameters.
6132 (source_cache::get_source_lines): Cache plain text.
6133 * source-cache.h (class source_cache)
6134 <get_plain_source_lines>: Update.
6135
269249d9
TT
61362019-08-06 Tom Tromey <tromey@adacore.com>
6137
6138 * source-cache.c (extract_lines): No longer a method.
6139 Changed type of parameter. Include final newline.
6140 (selftests::extract_lines_test): New function.
6141 (_initialize_source_cache): Likewise.
6142 * source-cache.h (class source_cache)
6143 <extract_lines>: Don't declare.
6144
c0e8dcd8
TT
61452019-08-06 Tom Tromey <tromey@adacore.com>
6146
6147 * breakpoint.c (init_breakpoint_sal): Update.
6148 (breakpoint): Update.
6149 * breakpoint.h (struct breakpoint) <filter>: Now a
6150 unique_xmalloc_ptr.
6151
0b27c27d
CB
61522019-08-05 Christian Biesinger <cbiesinger@google.com>
6153
6154 * NEWS: Mention dictionary access on blocks.
6155 * python/py-block.c (blpy_getitem): New function.
6156 (block_object_as_mapping): New struct.
6157 (block_object_type): Use new struct for tp_as_mapping field.
6158
4ee94178
CB
61592019-08-05 Christian Biesinger <cbiesinger@google.com>
6160
6161 * objfiles.h (objfile): Add a comment describing partial symbols.
6162
8abfcabc
TT
61632019-08-05 Tom Tromey <tromey@adacore.com>
6164
6165 * compile/compile.c (_initialize_compile): Use _(), not N_().
6166 * thread.c (_initialize_thread): Use _(), not N_().
6167 * stack.c (_initialize_stack): Use _(), not N_().
6168 * printcmd.c (_initialize_printcmd): Use _(), not N_().
6169
2b79f376
SM
61702019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6171
6172 * dwarf2read.c (struct dw2_symtab_iterator):
6173 <want_specific_block>: Remove.
6174 <block_index>: Change type to gdb::optional.
6175 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
6176 change type of BLOCK_INDEX parameter to gdb::optional.
6177 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
6178 (dw2_lookup_symbol): Don't pass argument for
6179 WANT_SPECIFIC_BLOCK.
6180 (dw2_expand_symtabs_for_function): Don't pass argument for
6181 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
6182 (class dw2_debug_names_iterator)
6183 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
6184 parameter, change BLOCK_INDEX type to gdb::optional.
6185 <m_want_specific_block>: Remove.
6186 <m_block_index>: Change type to gdb::optional.
6187 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
6188 gdb::optional. Re-write in function of gdb::optional.
6189 (dw2_debug_names_lookup_symbol): Don't pass argument for
6190 WANT_SPECIFIC_BLOCK.
6191 (dw2_debug_names_expand_symtabs_for_function): Don't pass
6192 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
6193 BLOCK_INDEX.
6194
ae60f04e
PW
61952019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6196
6197 * NEWS: Mention changes to "info sources" command.
6198
28cd9371
PW
61992019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6200
6201 * symtab.c (filename_partial_match_opts): New struct type.
6202 (struct output_source_filename_data): New members
6203 regexp, c_regexp, partial_match.
6204 (output_source_filename): Use new members to decide to print file.
6205 (info_sources_option_defs): New variable.
6206 (make_info_sources_options_def_group, print_info_sources_header,
6207 info_sources_command_completer):
6208 New functions.
6209 (info_sources_command): Read new optional arguments.
6210 (_initialize_symtab): Update info sources help.
6211
ca683e3a
AO
62122019-08-02 Alexandre Oliva <oliva@adacore.com>
6213
6214 * ada-lang.c (exception_support_info_v0): Renamed from...
6215 (default_exception_support_info): ... this. Create new
6216 definition for v1.
6217 (ada_has_this_exception_support): Look up catch_handlers_sym.
6218 (ada_exception_support_info_sniffer): Try v0 after default.
6219
f1264162
TT
62202019-08-01 Tom Tromey <tromey@adacore.com>
6221
6222 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
6223 gdbarch.h.
6224
0a7b2485
CB
62252019-08-01 Christian Biesinger <cbiesinger@google.com>
6226
6227 * s12z-tdep.c: Fix include path for s12z-opc.h.
6228
c6bdbeb7
AH
62292019-08-01 Alan Hayward <alan.hayward@arm.com>
6230
6231 * NEWS: Require GNU make 3.82.
6232
a2bd7b82
TT
62332019-07-16 Tom Tromey <tom@tromey.com>
6234
6235 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
6236 declare.
6237
aa3b6533
TT
62382019-07-30 Tom Tromey <tromey@adacore.com>
6239
6240 * block.c (contained_in): Remove BLOCK_FUNCTION check.
6241
a1530dc7
KB
62422019-07-30 Kevin Buettner <kevinb@redhat.com>
6243
6244 * printcmd.c (print_address_symbolic): Print negative offsets.
6245 (build_address_symbolic): Force signed arithmetic when computing
6246 offset.
6247
2906593f
CB
62482019-07-30 Christian Biesinger <cbiesinger@google.com>
6249
6250 PR/24474: Add a function to lookup static variables.
6251 * NEWS: Mention this new function.
6252 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
6253 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
6254 * python/python.c (python_GdbMethods): Add new function.
6255
c620ed88
CB
62562019-07-29 Christian Biesinger <cbiesinger@google.com>
6257
6258 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
6259 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
6260 (objfpy_lookup_static_symbol): New function.
6261 (objfile_object_methods): Add new functions.
6262
bc4268a5
PW
62632019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6264
6265 * NEWS: Mention 'set|show print frame-info'. Mention new
6266 'presence' value for 'frame-arguments'. Mention new '-frame-info'
6267 backtrace argument. Mention that python frame filtering code
6268 is now consistent with what 'backtrace' command prints.
6269
4b5e8d19
PW
62702019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6271
6272 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
6273 comments.
6274 (print_frame_info_auto, print_frame_info_source_line,
6275 print_frame_info_location, print_frame_info_source_and_location,
6276 print_frame_info_location_and_address, print_frame_info_short_location):
6277 New declarations.
6278 (struct frame_print_options): New member print_frame_info.
6279 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
6280 * stack.h (get_user_print_what_frame_info): New declaration.
6281 (frame_show_address): New declaration.
6282 * stack.c (print_frame_arguments_choices): New value 'presence'.
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 print_frame_info_choices, print_frame_info_print_what): New definitions.
6287 (print_frame_args): Only print dots for args if print frame-arguments
6288 is 'presence'.
6289 (frame_print_option_defs): New element for "frame-info".
6290 (get_user_print_what_frame_info): New function.
6291 (frame_show_address): Make non static. Move comment to stack.h.
6292 (print_frame_info_to_print_what): New function.
6293 (print_frame_info): Update comment. Use fp_opts.print_frame_info
6294 to decide what to print.
6295 (backtrace_command_1): Handle the new print_frame_arguments_presence
6296 value.
6297 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
6298 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
6299 (py_print_frame): In non-mi mode, use LOCATION as default for
6300 print_what, similarly to frame information printed directly by
6301 backtrace command. Handle frame-info user option in non MI mode.
6302
6bdfee81
KB
63032019-07-27 Kevin Buettner <kevinb@redhat.com>
6304
6305 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
6306 Add case for debugging 32-bit target on 64-bit host. Revise
6307 comment.
6308
98a617f8
KB
63092019-07-27 Kevin Buettner <kevinb@redhat.com>
6310
6311 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
6312 instead of find_function_entry_range_from_pc.
6313
567238c9
KB
63142019-07-27 Kevin Buettner <kevinb@redhat.com>
6315
6316 * stack.c (find_frame_funname): Remove code which preferred
6317 minsym over symtab sym in "certain pathological cases".
6318
2dc80cf8
KB
6319 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
6320 parameter. Change type of "do_demangle" to bool.
6321 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
6322 Pass suitable "prefer_sym_over_minsym" flag to
6323 build_address_symbolic(). Don't output "+" for negative offsets.
6324 * printcmd.c (print_address_symbolic): Update invocation of
6325 build_address_symbolic to include a "prefer_sym_over_minsym"
6326 flag.
6327 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
6328 Restrict cases in which use of minimal symbol is preferred to that
6329 of a found symbol. Update comments.
6330
1aff7173
KB
6331 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
6332 for entry pc when entry pc is out of range for that FDE.
6333
89b085ac
BC
63342019-07-26 Brian Callahan <bcallah@openbsd.org>
6335
6336 PR gdb/24839:
6337 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
6338 type.
6339
f32feb4a
CB
63402019-07-25 Christian Biesinger <cbiesinger@google.com>
6341
6342 * python/py-objfile.c (add_separate_debug_file): Fix comment about
6343 this function's Python signature.
6344
6345
63462019-07-24 Christian Biesinger <cbiesinger@google.com>
442853af
CB
6347
6348 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
6349 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
6350 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
6351 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
6352 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
6353
6354
c54e4253
YS
63552019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
6356
6357 * h8300-tdep.c (h8300_register_name_common): New.
6358 h8300_register_name): Use h8300_register_name_common.
6359 (h8300s_register_name): Likewise.
6360 (h8300sx_register_name): Likewise.
6361 (h8300h_register_nam): New.
6362 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
6363
6364
40eadf04
SP
63652019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
6366
6367 * arm-tdep.c (arm_skip_cmse_entry): New function.
6368 (arm_is_sgstubs_section): New function.
6369 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
6370
bfa2a36d
TT
63712019-07-22 Tom Tromey <tom@tromey.com>
6372
6373 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
6374 Don't self-assign.
6375
a8e9d247
AB
63762019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
6377
6378 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
6379 type_print.
6380
eb86c5e2
AB
63812019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
6382
6383 * symtab.c (search_symbols): Adjust msymbol matching type arrays
6384 so that GDB doesn't match any msymbols when searching in the
6385 TYPES_DOMAIN.
6386 (print_symbol_info): Print using typedef_print or type_print based
6387 on the type of the symbol. Add updated FIXME comment moved from...
6388 (_initialize_symtab): ... move and update FIXME comment to above.
6389
a8eab7c6
AB
63902019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
6391
6392 * NEWS: Mention adding -q option to "info types".
6393 * symtab.c (struct info_types_options): New struct.
6394 (info_types_options_defs): New variable.
6395 (make_info_types_options_def_group): New function.
6396 (info_types_command): Use gdb::option framework to parse options.
6397 (info_types_command_completer): New function.
6398 (_initialize_symtab): Extend the help text on "info types" and
6399 register command completer.
6400
b4603c34
CB
64012019-07-21 Christian Biesinger <cbiesinger@google.com>
6402
6403 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
6404 (lookup_symbol_in_objfile): Change int to block_enum and add a
6405 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
6406
c8cdc1e0
CB
64072019-07-20 Christian Biesinger <cbiesinger@google.com>
6408
6409 * MAINTAINERS (Write After Approval): Add self.
6410
01e175fe
AB
64112019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
6412
6413 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
6414 instruction to the dummy code region.
6415
56f79b63
TT
64162019-07-19 Tom Tromey <tromey@adacore.com>
6417
6418 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
6419 (ARGSUSED, PARAMS, __func__): Remove rules.
6420
4c5aa8e0
AH
64212019-07-19 Alan Hayward <alan.hayward@arm.com>
6422
6423 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
6424 * features/arm/arm-with-iwmmxt.c: Remove.
6425 * features/arm/arm-with-iwmmxt.xml: Remove.
6426 * features/arm/arm-with-m-fpa-layout.c: Remove.
6427 * features/arm/arm-with-m-fpa-layout.xml: Remove.
6428 * features/arm/arm-with-m-vfp-d16.c: Remove.
6429 * features/arm/arm-with-m-vfp-d16.xml: Remove.
6430 * features/arm/arm-with-m.c: Remove.
6431 * features/arm/arm-with-m.xml: Remove.
6432 * features/arm/arm-with-neon.c: Remove.
6433 * features/arm/arm-with-neon.xml: Remove.
6434 * features/arm/arm-with-vfpv2.c: Remove.
6435 * features/arm/arm-with-vfpv2.xml: Remove.
6436 * features/arm/arm-with-vfpv3.c: Remove.
6437 * features/arm/arm-with-vfpv3.xml: Remove.
6438
f42b2617
AH
64392019-07-19 Alan Hayward <alan.hayward@arm.com>
6440
6441 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
6442
f29ec966
AH
64432019-07-19 Alan Hayward <alan.hayward@arm.com>
6444
6445 * arch/aarch32.c (aarch32_create_target_description): Create
6446 target descriptions using features.
6447 * arch/arm.c (arm_create_target_description)
6448 (arm_create_mprofile_target_description): Likewise.
6449 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
6450
d105cce5
AH
64512019-07-19 Alan Hayward <alan.hayward@arm.com>
6452
6453 * Makefile.in: Add new files.
6454 * aarch32-tdep.c: New file.
6455 * aarch32-tdep.h: New file.
6456 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
6457 Call aarch32_read_description.
6458 * arch/aarch32.c: New file.
6459 * arch/aarch32.h: New file.
6460 * arch/arm.c (arm_create_target_description)
6461 (arm_create_mprofile_target_description): New function.
6462 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
6463 (arm_create_target_description)
6464 (arm_create_mprofile_target_description): New declaration.
6465 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
6466 read_description functions.
6467 * arm-linux-nat.c (arm_linux_nat_target::read_description):
6468 Likewise.
6469 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
6470 * arm-tdep.c (tdesc_arm_list): New variable.
6471 (arm_register_g_packet_guesses): Call create description functions.
6472 (arm_read_description) (arm_read_mprofile_description): New
6473 function.
6474 * arm-tdep.h (arm_read_description)
6475 (arm_read_mprofile_description): Add declaration.
6476 * configure.tgt: Add new files.
6477
afe09f0b
GL
64782019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
6479
6480 * top.c (new_ui_command): Open specified terminal just once.
6481
cd215b2e
TT
64822019-07-18 Tom Tromey <tromey@adacore.com>
6483
6484 * symtab.c (main_name): Constify return type.
6485 * symfile.c (set_initial_language): Update.
6486 * symtab.h (main_name): Constify return type.
6487
d8f68fcb
TT
64882019-07-17 Tom Tromey <tom@tromey.com>
6489
6490 * tui/tui-winsource.c (tui_update_source_window)
6491 (tui_update_source_window_as_is)
6492 (tui_update_source_windows_with_line): Remove return.
6493 * tui/tui-disasm.c (tui_show_disassem)
6494 (tui_show_disassem_and_update_source): Remove return.
6495 * tui/tui.c (tui_reset): Remove return.
6496 * tui/tui-wingeneral.c
6497 (tui_check_and_display_highlight_if_needed): Remove return.
6498
ca5af91e
TT
64992019-07-17 Tom Tromey <tom@tromey.com>
6500
6501 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
6502
5104fe36
TT
65032019-07-17 Tom Tromey <tom@tromey.com>
6504
6505 * tui/tui-winsource.h (struct tui_exec_info_window)
6506 (struct tui_source_window_base): Move from tui-data.h.
6507 * tui/tui-winsource.c: Move many method definitions from
6508 elsewhere. Remove "structuring" comments.
6509 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
6510 (tui_source_window_base::refresh_window): Move to
6511 tui-winsource.c.
6512 * tui/tui-win.c (tui_source_window_base::refresh_all)
6513 (tui_source_window_base::update_tab_width)
6514 (tui_source_window_base::set_new_height)
6515 (tui_source_window_base::do_make_visible_with_new_height): Move to
6516 tui-winsource.c.
6517 * tui/tui-source.h: Update.
6518 * tui/tui-source.c (tui_source_window_base::reset): Move to
6519 tui-winsource.c.
6520 * tui/tui-disasm.h: Update.
6521 * tui/tui-data.h (struct tui_exec_info_window): Move to
6522 tui-winsource.h.
6523 (struct tui_source_window_base): Likewise.
6524 * tui/tui-data.c (tui_source_window_base::clear_detail)
6525 (tui_source_window_base, ~tui_source_window_base): Move to
6526 tui-winsource.c.
6527
daa15dde
TT
65282019-07-17 Tom Tromey <tom@tromey.com>
6529
6530 * tui/tui-win.c (tui_resize_all)
6531 (tui_source_window_base::update_tab_width)
6532 (tui_adjust_win_heights): Update.
6533 (tui_win_info::make_invisible_and_set_new_height): Rename from
6534 make_invisible_and_set_new_height.
6535 * tui/tui-data.h (struct tui_win_info)
6536 <make_invisible_and_set_new_height>: New method.
6537
bfad4537
TT
65382019-07-17 Tom Tromey <tom@tromey.com>
6539
6540 * tui/tui.c: Update.
6541 * tui/tui-source.h (struct tui_source_window): Move from
6542 tui-data.h.
6543 * tui/tui-layout.c: Update.
6544 * tui/tui-disasm.c: Update.
6545 * tui/tui-data.h (struct tui_source_window): Move to
6546 tui-source.h.
6547
88f7e873
TT
65482019-07-17 Tom Tromey <tom@tromey.com>
6549
6550 * tui/tui-disasm.h (struct tui_disasm_window): Move from
6551 tui-data.h.
6552 * tui/tui-data.h (struct tui_disasm_window): Move to
6553 tui-disasm.h.
6554
96bd6233
TT
65552019-07-17 Tom Tromey <tom@tromey.com>
6556
6557 * tui/tui-regs.h (struct tui_data_item_window): Move from
6558 tui-data.h.
6559 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
6560 * tui/tui-data.h (struct tui_data_item_window): Move to
6561 tui-regs.h.
6562 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
6563
ce38393b
TT
65642019-07-17 Tom Tromey <tom@tromey.com>
6565
6566 * tui/tui.c: Update.
6567 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
6568 (tui_cmd_window::max_height): Move to tui-command.c.
6569 * tui/tui-layout.c: Update.
6570 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
6571 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
6572 tui-command.c.
6573 * tui/tui-command.h (struct tui_cmd_window): Move from
6574 tui-data.h.
6575 * tui/tui-command.c: Remove "structuring" comments.
6576 (tui_cmd_window::clear_detail)
6577 (tui_cmd_window::do_make_visible_with_new_height)
6578 (tui_cmd_window::max_height): Move from elsewhere.
6579
2d8b51cb
TT
65802019-07-17 Tom Tromey <tom@tromey.com>
6581
6582 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
6583 Now static.
6584 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
6585 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
6586
18ab23af
TT
65872019-07-17 Tom Tromey <tom@tromey.com>
6588
6589 * tui/tui.c: Update.
6590 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
6591 tui-regs.c.
6592 * tui/tui-windata.h: Remove file.
6593 * tui/tui-windata.c: Remove file.
6594 * tui/tui-win.c (tui_data_window::set_new_height)
6595 (tui_data_window::do_make_visible_with_new_height): Move to
6596 tui-regs.c.
6597 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
6598 * tui/tui-regs.c: Remove "structuring" comments.
6599 (tui_data_window::first_data_item_displayed)
6600 (tui_data_window::delete_data_content_windows)
6601 (tui_data_window::erase_data_content)
6602 (tui_data_window::display_all_data)
6603 (tui_data_window::refresh_all)
6604 (tui_data_window::do_scroll_vertical)
6605 (tui_data_window::clear_detail, tui_data_window::set_new_height)
6606 (tui_data_window::do_make_visible_with_new_height)
6607 (tui_data_window::refresh_window): Move from elsewhere.
6608 (_initialize_tui_regs): Move to end of file.
6609 * tui/tui-layout.c: Update.
6610 * tui/tui-hooks.c: Update.
6611 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
6612 * tui/tui-data.c (tui_data_window::clear_detail): Move to
6613 tui-regs.c.
6614 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
6615
88b7e7cc
TT
66162019-07-17 Tom Tromey <tom@tromey.com>
6617
6618 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
6619 seen.
6620
0fcd3711
TT
66212019-07-17 Tom Tromey <tom@tromey.com>
6622
6623 * tui/tui-win.c (tui_source_window_base::set_new_height)
6624 (tui_source_window_base::do_make_visible_with_new_height): Use
6625 m_has_locator field directly.
6626 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
6627 method.
6628 (struct tui_source_window_base) <has_locator>: Likewise.
6629
4a38112d
TT
66302019-07-17 Tom Tromey <tom@tromey.com>
6631
6632 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
6633 Don't declare.
6634 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
6635 Remove.
6636 * tui/tui-win.c (tui_source_window_base::set_new_height)
6637 (tui_source_window_base::set_new_height)
6638 (make_invisible_and_set_new_height)
6639 (tui_source_window_base::do_make_visible_with_new_height)
6640 (tui_source_window_base::do_make_visible_with_new_height):
6641 Update.
6642 * tui/tui-layout.c (show_source_disasm_command, show_data)
6643 (show_source_or_disasm_and_command): Update.
6644 * tui/tui-layout.c (show_layout): Update.
6645
09129226
TT
66462019-07-17 Tom Tromey <tom@tromey.com>
6647
6648 * tui/tui-layout.c (make_data_window): Remove.
6649 (show_data): Unify creation and re-initialization cases.
6650
4a8a5e84
TT
66512019-07-17 Tom Tromey <tom@tromey.com>
6652
6653 * tui/tui-layout.c (make_source_window, make_disasm_window):
6654 Remove.
6655 (show_data): Unify creation and re-initialization cases.
6656
76d2be8e
TT
66572019-07-17 Tom Tromey <tom@tromey.com>
6658
6659 * tui/tui-layout.c (make_command_window): Remove.
6660 (show_source_disasm_command, show_source_or_disasm_and_command):
6661 Unify creation and re-initialization cases.
6662
890b8bde
TT
66632019-07-17 Tom Tromey <tom@tromey.com>
6664
6665 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
6666 creation and re-initialization cases.
6667
2cdfa113
TT
66682019-07-17 Tom Tromey <tom@tromey.com>
6669
6670 * tui/tui-regs.c (tui_get_register): Return void.
6671
8e3cfd09
TT
66722019-07-17 Tom Tromey <tom@tromey.com>
6673
6674 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
6675 Simplify.
6676
f4e04977
TT
66772019-07-17 Tom Tromey <tom@tromey.com>
6678
6679 * tui/tui-layout.c (show_source_disasm_command): Simplify window
6680 resetting.
6681
0379b883
TT
66822019-07-17 Tom Tromey <tom@tromey.com>
6683
6684 * tui/tui.h (tui_set_layout_by_name): Don't declare.
6685 * tui/tui-regs.c (tui_reg_layout): New function.
6686 (tui_show_registers, tui_reg_command): Use it.
6687 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
6688 (tui_layout_command): Rename from tui_set_layout_by_name. Change
6689 parameters.
6690 (tui_layout_command): Remove.
6691
b7fbad91
TT
66922019-07-17 Tom Tromey <tom@tromey.com>
6693
6694 * tui/tui-layout.h (tui/tui-layout): Return void.
6695 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
6696
4e1e56b9
TT
66972019-07-17 Tom Tromey <tom@tromey.com>
6698
6699 * tui/tui-layout.c (show_source_disasm_command, show_data):
6700 Update.
6701 (reset_locator): Remove.
6702 (show_source_or_disasm_and_command): Update.
6703
1e0c09ba
TT
67042019-07-17 Tom Tromey <tom@tromey.com>
6705
6706 * tui/tui-source.c (tui_source_window_base::reset): Remove
6707 win_type parameter.
6708 * tui/tui-layout.c (make_command_window, make_source_window)
6709 (make_disasm_window, make_data_window)
6710 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
6711 (reset_locator, show_source_or_disasm_and_command): Update.
6712 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
6713 win_type parameter.
6714 (struct tui_source_window_base) <reset>: Likewise.
6715
1bf605de
TT
67162019-07-17 Tom Tromey <tom@tromey.com>
6717
6718 * tui/tui-layout.c (show_source_disasm_command): Use
6719 reset_locator.
6720 (reset_locator): New function.
6721 (init_and_make_win): Remove.
6722 (show_source_or_disasm_and_command): Use reset_locator.
6723
098f9ed4
TT
67242019-07-17 Tom Tromey <tom@tromey.com>
6725
6726 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
6727 condition.
6728 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
6729 Remove condition.
6730 * tui/tui-source.c (tui_source_window_base::reset): New method.
6731 * tui/tui-layout.c (make_command_window): Don't call
6732 init_and_make_win.
6733 (make_source_window, make_disasm_window): Don't call
6734 make_source_or_disasm_window.
6735 (make_data_window): Don't call init_and_make_win. Change calling
6736 convention.
6737 (show_source_disasm_command, show_data): Simplify.
6738 (make_source_or_disasm_window): Remove.
6739 (show_source_or_disasm_and_command): Simplify.
6740 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
6741 (struct tui_source_window_base) <reset>: Likewise.
6742 <execution_info>: Remove initializer.
6743 * tui/tui-data.c (tui_source_window_base): Initialize
6744 execution_info.
6745
80110957
TT
67462019-07-17 Tom Tromey <tom@tromey.com>
6747
6748 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
6749 variable.
6750
cf82af05
TT
67512019-07-17 Tom Tromey <tom@tromey.com>
6752
6753 * tui/tui.c (tui_rl_other_window): Update.
6754 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
6755 superclass method first. Always iterate over regs_content.
6756 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
6757 method.
6758 * tui/tui-win.c (tui_set_focus_command): Update.
6759
01aeb396
TT
67602019-07-17 Tom Tromey <tom@tromey.com>
6761
6762 * tui/tui-win.c (tui_set_focus_command): Rename from
6763 tui_set_focus. Call tui_enable.
6764 (tui_set_focus_command): Remove.
6765
fd6c75ee
TT
67662019-07-17 Tom Tromey <tom@tromey.com>
6767
6768 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
6769 refresh_window.
6770 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
6771 touchwin.
6772 (tui_data_window::refresh_window): Call refresh_window on data
6773 items. Always call superclass refresh_window.
6774 (tui_win_info::refresh): Remove.
6775 (tui_source_window_base::refresh_window): Update.
6776 (tui_refresh_all): Update.
6777 * tui/tui-layout.c (show_source_disasm_command): Remove call to
6778 refresh_window.
6779 (show_source_or_disasm_and_command): Likewise.
6780 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
6781 (struct tui_source_window_base) <refresh>: Likewise.
6782
f6cc34a9
TT
67832019-07-17 Tom Tromey <tom@tromey.com>
6784
6785 * tui/tui-winsource.c (tui_clear_source_content)
6786 (tui_show_source_content): Update.
6787 * tui/tui-source.c (tui_source_window::showing_source_p): Check
6788 whether content is empty.
6789 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
6790 Remove.
6791
f31ec9af
TT
67922019-07-17 Tom Tromey <tom@tromey.com>
6793
6794 * tui/tui-winsource.c (tui_erase_source_content): Clear the
6795 window's contents.
6796 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
6797 * tui/tui-source.c (tui_set_source_content_nil): Remove.
6798
d1b6f1e5
TT
67992019-07-17 Tom Tromey <tom@tromey.com>
6800
6801 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
6802 (struct tui_data_item_window): Update.
6803
d9743a13
TT
68042019-07-17 Tom Tromey <tom@tromey.com>
6805
6806 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
6807 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
6808 defines.
6809
caf0bc4e
TT
68102019-07-17 Tom Tromey <tom@tromey.com>
6811
6812 * tui/tui-winsource.h (tui_erase_source_content)
6813 (tui_clear_source_content): Remove "display_prompt" parameter.
6814 * tui/tui-winsource.c (tui_update_source_window_as_is)
6815 (tui_update_source_windows_with_addr): Update.
6816 (tui_clear_source_content): Remove "display_prompt" parameter.
6817 (tui_erase_source_content): Likewise. Simplify.
6818 (tui_show_source_content): Update.
6819 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
6820 * tui/tui-stack.c (tui_show_frame_info): Update.
6821 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
6822 Remove defines.
6823
9d391078
TT
68242019-07-17 Tom Tromey <tom@tromey.com>
6825
6826 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
6827 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
6828 parameter.
6829 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
6830 parameter.
6831
a38da35d
TT
68322019-07-17 Tom Tromey <tom@tromey.com>
6833
6834 * tui/tui-winsource.c (tui_clear_source_content)
6835 (tui_show_source_content, tui_show_exec_info_content)
6836 (tui_clear_exec_info_content): Update.
6837 * tui/tui-stack.c (tui_show_locator_content): Update.
6838 (tui_show_frame_info): Update.
6839 * tui/tui-source.h (tui_source_window): Don't declare.
6840 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
6841 from tui_source_is_displayed.
6842 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
6843 Remove field.
6844 (struct tui_source_window_base) <content_in_use>: New field. Now
6845 bool.
6846 (struct tui_source_window) <showing_source_p>: New method.
6847 (TUI_SRC_WIN): Change cast.
6848 * tui/tui-data.c (tui_initialize_static_data): Update.
6849
c2cd8994
TT
68502019-07-17 Tom Tromey <tom@tromey.com>
6851
6852 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
6853 location_matches_p.
6854 * tui/tui-source.c (tui_source_window::location_matches_p): New
6855 method.
6856 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
6857 method.
6858 * tui/tui-data.h (struct tui_source_window_base)
6859 <location_matches_p>: New method.
6860 (struct tui_source_window, struct tui_disasm_window)
6861 <location_matches_p>: Likewise.
6862
4dde7b34
TT
68632019-07-17 Tom Tromey <tom@tromey.com>
6864
6865 * tui/tui-win.c (tui_set_win_height_command): Rename from
6866 tui_set_win_height.
6867 (tui_set_win_height_command): Remove.
6868
b73dd877
TT
68692019-07-17 Tom Tromey <tom@tromey.com>
6870
6871 * tui/tui-source.c (tui_source_window): New constructor. Add
6872 observer.
6873 (~tui_source_window): New destructor.
6874 (tui_source_window::style_changed): New method.
6875 * tui/tui-hooks.c (tui_redisplay_source): Remove.
6876 (tui_attach_detach_observers): Update.
6877 * tui/tui-data.h (struct tui_source_window): Make constructor not
6878 inline. Add destructor.
6879 (struct tui_source_window) <style_changed>: New method.
6880 <m_observable>: New member.
6881
ae2b5380
TT
68822019-07-17 Tom Tromey <tom@tromey.com>
6883
6884 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
6885 * tui/tui-win.c (tui_resize_all): Fix typo.
6886
1ce3e844
TT
68872019-07-17 Tom Tromey <tom@tromey.com>
6888
6889 * tui/tui-wingeneral.h (tui_refresh_all): Update.
6890 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
6891 (tui_refresh_all): Remove "list" parameter. Use foreach.
6892 * tui/tui-win.c (window_name_completer): Use foreach.
6893 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
6894 (update_tab_width): Likewise.
6895 * tui/tui-layout.c (show_layout): Update.
6896 * tui/tui-data.h (class tui_window_iterator): New.
6897 (struct all_tui_windows): New.
6898 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
6899
fe3eaf1c
TT
69002019-07-17 Tom Tromey <tom@tromey.com>
6901
6902 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
6903 parameter. Don't reference globals.
6904 (tui_reg_command): Update.
6905
368c1354
TT
69062019-07-17 Tom Tromey <tom@tromey.com>
6907
6908 * tui/tui-regs.c (tui_show_registers): Simplify.
6909
e80cd204
TT
69102019-07-17 Tom Tromey <tom@tromey.com>
6911
6912 * tui/tui-regs.c (tui_show_registers): Update.
6913 (tui_show_register_group): Add win_info parameter.
6914
aca2dd16
TT
69152019-07-17 Tom Tromey <tom@tromey.com>
6916
6917 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
6918 Rename from tui_display_reg_element_at_line.
6919 (tui_data_window::display_registers_from_line): Update.
6920 * tui/tui-data.h (struct tui_data_window)
6921 <display_reg_element_at_line>: New method.
6922
517e9505
TT
69232019-07-17 Tom Tromey <tom@tromey.com>
6924
6925 * tui/tui-regs.h (tui_display_registers_from)
6926 (tui_display_registers_from_line): Don't declare.
6927 * tui/tui-windata.c (tui_data_window::display_all_data)
6928 (tui_data_window::refresh_all)
6929 (tui_data_window::do_scroll_vertical): Update.
6930 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
6931 from tui_display_registers_from.
6932 (tui_display_reg_element_at_line): Update.
6933 (tui_data_window::display_registers_from_line): Rename from
6934 tui_display_registers_from_line.
6935 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
6936 display_registers_from_line>: New methods.
6937
f76d8b19
TT
69382019-07-17 Tom Tromey <tom@tromey.com>
6939
6940 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
6941 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
6942 from tui_erase_data_content.
6943 (tui_data_window::display_all_data)
6944 (tui_data_window::refresh_all)
6945 (tui_data_window::do_scroll_vertical): Update.
6946 * tui/tui-regs.c (tui_show_registers): Update.
6947 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
6948 New method.
6949
b4094625
TT
69502019-07-17 Tom Tromey <tom@tromey.com>
6951
6952 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
6953 declare.
6954 * tui/tui-windata.c
6955 (tui_data_window::delete_data_content_windows): Rename from
6956 tui_delete_data_content_windows.
6957 (tui_data_window::display_all_data)
6958 (tui_data_window::do_scroll_vertical): Update.
6959 * tui/tui-data.h (struct tui_data_window)
6960 <delete_data_content_windows>: New method.
6961
c223a729
TT
69622019-07-17 Tom Tromey <tom@tromey.com>
6963
6964 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
6965 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
6966
50daf268
TT
69672019-07-17 Tom Tromey <tom@tromey.com>
6968
6969 * tui/tui-windata.h (tui_display_all_data): Don't declare.
6970 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
6971 from tui_display_all_data.
6972 * tui/tui-win.c
6973 (tui_data_window::do_make_visible_with_new_height): Update.
6974 * tui/tui-regs.c (tui_show_registers): Update.
6975 * tui/tui-layout.c (tui_set_layout): Update.
6976 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
6977 method.
6978
df5f8cab
TT
69792019-07-17 Tom Tromey <tom@tromey.com>
6980
6981 * tui/tui-windata.h (tui_display_data_from): Don't declare.
6982 * tui/tui-windata.c (tui_display_data_from): Remove.
6983 (tui_data_window::refresh_all): Update.
6984
80cb6c27
TT
69852019-07-17 Tom Tromey <tom@tromey.com>
6986
6987 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
6988 * tui/tui-windata.c (tui_display_data_from_line): Remove.
6989 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
6990 tui_display_registers_from_line.
6991 * tui/tui-regs.h (tui_display_registers_from_line): Update.
6992 * tui/tui-regs.c (tui_display_registers_from_line): Remove
6993 "force_display" parameter.
6994
baff0c28
TT
69952019-07-17 Tom Tromey <tom@tromey.com>
6996
6997 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
6998 declare.
6999 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
7000 Rename from tui_first_reg_element_no_inline.
7001 (tui_display_reg_element_at_line)
7002 (tui_display_registers_from_line): Update.
7003 * tui/tui-data.h (struct tui_data_window)
7004 <first_reg_element_no_inline>: New method.
7005
3b23c5f2
TT
70062019-07-17 Tom Tromey <tom@tromey.com>
7007
7008 * tui/tui-windata.c (tui_display_data_from)
7009 (tui_data_window::do_scroll_vertical): Update.
7010 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
7011 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
7012 Rename from tui_line_from_reg_element_no.
7013 (tui_display_registers_from_line): Update.
7014 * tui/tui-data.h (struct tui_data_window)
7015 <line_from_reg_element_no>: New method.
7016
0b5ec218
TT
70172019-07-17 Tom Tromey <tom@tromey.com>
7018
7019 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
7020 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
7021 tui_last_regs_line_no.
7022 (tui_display_reg_element_at_line)
7023 (tui_display_registers_from_line): Update.
7024 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
7025 method.
7026
0807ab7b
TT
70272019-07-17 Tom Tromey <tom@tromey.com>
7028
7029 PR tui/24722:
7030 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
7031 (tui_update_breakpoint_info): Add "being_deleted" parameter.
7032 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
7033 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
7034 (tui_update_breakpoint_info): Likewise.
7035 * tui/tui-hooks.c (tui_event_create_breakpoint)
7036 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
7037 Update.
7038
9ad7fdef
TT
70392019-07-17 Tom Tromey <tom@tromey.com>
7040
7041 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
7042
5813316f
TT
70432019-07-17 Tom Tromey <tom@tromey.com>
7044
7045 * tui/tui-winsource.c (tui_update_source_window_as_is)
7046 (tui_update_source_windows_with_addr): Update.
7047 * tui/tui-source.h (tui_set_source_content)
7048 (tui_show_symtab_source): Add "win_info" parameter.
7049 * tui/tui-source.c (tui_set_source_content): Add "win_info"
7050 parameter.
7051 (tui_show_symtab_source): Likewise.
7052
00e264e7
TT
70532019-07-17 Tom Tromey <tom@tromey.com>
7054
7055 * tui/tui-wingeneral.c
7056 (tui_check_and_display_highlight_if_needed): Check can_highlight.
7057
06210ce4
TT
70582019-07-17 Tom Tromey <tom@tromey.com>
7059
7060 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
7061 (struct tui_cmd_window) <can_scroll>: New method.
7062 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
7063 method.
7064
381befee
TT
70652019-07-17 Tom Tromey <tromey@adacore.com>
7066
7067 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
7068 do_field_signed>: Rename. Change type of "value".
7069 * ui-out.c (ui_out::field_signed): Rename from field_int.
7070 Change type of "value".
7071 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
7072 type of "value".
7073 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
7074 do_field_int. Change type of "value".
7075 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
7076 do_field_int. Change type of "value".
7077 * tracepoint.c (trace_status_mi, tfind_1)
7078 (print_one_static_tracepoint_marker): Update.
7079 * thread.c (print_thread_info_1, print_selected_thread_frame):
7080 Update.
7081 * stack.c (print_frame, print_frame_info): Update.
7082 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
7083 Update.
7084 * source.c (print_source_lines_base): Update.
7085 * skip.c (info_skip_command): Update.
7086 * record-btrace.c (btrace_ui_out_decode_error)
7087 (btrace_call_history_src_line): Update.
7088 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
7089 Update.
7090 * progspace.c (print_program_space): Update.
7091 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
7092 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
7093 do_field_int. Change type of "value".
7094 * mi/mi-out.c (mi_ui_out::do_table_begin)
7095 (mi_ui_out::do_table_header): Update.
7096 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
7097 type of "value".
7098 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
7099 (mi_cmd_data_list_changed_registers, output_register)
7100 (mi_cmd_data_read_memory, mi_load_progress)
7101 (mi_cmd_trace_frame_collected): Update.
7102 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
7103 Update.
7104 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
7105 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
7106 (mi_cmd_var_list_children, varobj_update_one): Update.
7107 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
7108 (mi_cmd_stack_list_args, list_arg_or_local): Update.
7109 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
7110 * inferior.c (print_inferior): Update.
7111 * gdb_bfd.c (print_one_bfd): Update.
7112 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
7113 Update.
7114 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
7115 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
7116 do_field_int. Change type of "value".
7117 * cli-out.c (cli_ui_out::do_field_signed): Rename from
7118 do_field_int. Change type of "value".
7119 * breakpoint.c (watchpoint_check, print_breakpoint_location)
7120 (print_one_breakpoint_location, print_it_catch_fork)
7121 (print_one_catch_fork, print_it_catch_vfork)
7122 (print_one_catch_vfork, print_it_catch_solib)
7123 (print_it_catch_exec, print_it_ranged_breakpoint)
7124 (print_mention_watchpoint, print_mention_masked_watchpoint)
7125 (bkpt_print_it, update_static_tracepoint): Update.
7126 * break-catch-throw.c (print_it_exception_catchpoint): Update.
7127 * break-catch-syscall.c (print_it_catch_syscall): Update.
7128 * ada-tasks.c (print_ada_task_info): Update.
7129 * ada-lang.c (print_it_exception, print_mention_exception):
7130 Update.
7131
6b78c3f8
AB
71322019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
7133
7134 PR breakpoints/24541
7135 * gdbarch.c: Regenerate.
7136 * gdbarch.h: Regenerate.
7137 * gdbarch.sh: Adjust return type and parameter types for
7138 'stap_adjust_register'.
7139 (i386_stap_adjust_register): Adjust signature and return new
7140 register name.
7141 * stap-probe.c (stap_parse_register_operand): Adjust use of
7142 'gdbarch_stap_adjust_register'.
7143
d72a9b85
TT
71442019-07-17 Tom Tromey <tromey@adacore.com>
7145
7146 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
7147 declare VEC.
7148 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
7149 std::vector.
7150 (struct s390_process_info): Add initializers.
7151 (s390_add_process): Use new.
7152 (s390_linux_nat_target::low_forget_process): Use delete.
7153 (s390_linux_nat_target::low_new_fork)
7154 (s390_linux_nat_target::stopped_by_watchpoint)
7155 (s390_linux_nat_target::low_prepare_to_resume)
7156 (s390_linux_nat_target::insert_watchpoint)
7157 (s390_linux_nat_target::insert_hw_breakpoint)
7158 (s390_linux_nat_target::remove_watchpoint)
7159 (s390_linux_nat_target::remove_hw_breakpoint): Update.
7160
206e6c58
JB
71612019-07-16 John Baldwin <jhb@FreeBSD.org>
7162
7163 * aarch64-fbsd-nat.c: Include regcache.h.
7164 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
7165 argument.
7166 (aarch64_fbsd_nat_target::fetch_registers)
7167 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
7168 variable.
7169 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
7170
cbde90f2
JB
71712019-07-16 John Baldwin <jhb@FreeBSD.org>
7172
7173 * fbsd-nat.c: Include gdbarch.h.
7174
07128006
TT
71752019-07-15 Tom Tromey <tromey@adacore.com>
7176
7177 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
7178
1f77b012
TT
71792019-07-15 Tom Tromey <tromey@adacore.com>
7180
7181 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
7182 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
7183 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
7184 * cli-out.c (cli_ui_out::do_field_int): New method.
7185 * ui-out.c (ui_out::field_unsigned): New method.
7186 * symfile.c (generic_load): Use field_unsigned.
7187 (print_transfer_performance): Likewise.
7188 * record-btrace.c (ui_out_field_uint): Remove.
7189 (btrace_call_history_insn_range, btrace_call_history): Use
7190 field_unsigned.
7191 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
7192 field_unsigned.
7193 * ui-out.h (class ui_out) <field_unsigned>: New method.
7194 <do_field_unsigned>: Likewise.
7195
33eca680
TT
71962019-07-15 Tom Tromey <tromey@adacore.com>
7197
7198 * mi/mi-main.c (list_available_thread_groups): Use field_string.
7199 * mi/mi-interp.c (mi_memory_changed): Use field_string.
7200 * target.c (flash_erase_command): Use field_string.
7201 * infrun.c (print_signal_received_reason): Use field_string.
7202 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
7203 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
7204 field_string.
7205 * ada-tasks.c (print_ada_task_info): Use field_string.
7206
ca8d69be
TT
72072019-07-15 Tom Tromey <tromey@adacore.com>
7208
7209 * target.c (flash_erase_command): Use field_core_addr.
7210 * symfile.c (generic_load): Use field_core_addr.
7211 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
7212 Use field_core_addr.
7213 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
7214 field_core_addr.
7215
0d4e84ed
AB
72162019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
7217
7218 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
7219 value if its desired type is smaller than a CORE_ADDR and signed.
7220
9a49df9d
AB
72212019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
7222
7223 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
7224 of changes to field names, and use new is_reference field to
7225 decide if a property is a reference or not.
7226 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
7227 field.
7228 (struct dwarf2_property_baton): Update header comment, rename
7229 'referenced_type' to 'property_type' and update comments.
7230 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
7231 default property type, store in property baton, update to take
7232 accound of renamed field.
7233 (read_func_scope): Update call to attr_to_dynamic_prop.
7234 (read_array_type): Likewise.
7235 (dwarf2_per_cu_addr_sized_int_type): New function.
7236 (read_subrange_index_type): Move type finding code to
7237 dwarf2_per_cu_addr_sized_int_type.
7238 (read_subrange_type): Update calls to attr_to_dynamic_prop.
7239 (dwarf2_per_cu_addr_type): New function.
7240 (set_die_type): Update calls to attr_to_dynamic_prop.
7241
b86352cf
AB
72422019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
7243
7244 * dwarf2read.c (read_subrange_index_type): New function.
7245 (read_subrange_type): Move code into new function and call it.
7246 * gdbtypes.c (create_range_type): Add some asserts.
7247
603490bf
AB
72482019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
7249
7250 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
7251 update return statements.
7252 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
7253 declaration, and update comment to match.
7254 * gdbtypes.c (resolve_dynamic_array): Update call to
7255 dwarf2_evaluate_property to match new return type.
7256
592f9d27
AB
72572019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
7258
7259 * valarith.c (value_subscripted_rvalue): Change lowerbound
7260 parameter type from int to LONGEST.
7261 * value.h (value_subscripted_rvalue): Likewise in declaration.
7262
60cfcb20
AB
72632019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
7264
7265 * cli/cli-utils.c (info_print_command_completer): New function.
7266 * cli/cli-utils.h: Add 'completer.h' include, and forward
7267 declaration for 'struct cmd_list_element'.
7268 (info_print_command_completer): Declare.
7269 * stack.c (_initialize_stack): Add completer for 'info locals' and
7270 'info args'.
7271 * symtab.c (_initialize_symtab): Add completer for 'info
7272 variables' and 'info functions'.
7273 * NEWS: Mention completion for additional info commands.
7274
b16507e0
AB
72752019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
7276
7277 * cli/cli-utils.c (extract_info_print_args): Delete.
7278 (extract_arg_maybe_quoted): Delete.
7279 (info_print_options_defs): New variable.
7280 (make_info_print_options_def_group): New function.
7281 (extract_info_print_options): Define new function.
7282 * cli/cli-utils.h (extract_info_print_args): Delete.
7283 (struct info_print_options): New structure.
7284 (extract_info_print_options): Declare new function.
7285 * stack.c (info_locals_command): Update to use new
7286 extract_info_print_options, also add a header comment.
7287 (info_args_command): Likewise.
7288 * symtab.c (info_variables_command): Likewise.
7289 (info_functions_command): Likewise.
7290
021d8588
AB
72912019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
7292
7293 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
7294 to extract string arguments.
7295 * common/common-utils.c (extract_string_maybe_quoted): New function.
7296 * common/common-utils.h (extract_string_maybe_quoted): Declare.
7297
b777eb6d
TT
72982019-07-11 Tom Tromey <tromey@adacore.com>
7299
7300 * main.c (get_init_files): Use GDBINIT, not gdbinit.
7301 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
7302 * top.h (gdbinit): Don't declare.
7303 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
7304 into...
7305 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
7306 * top.c (gdb_init): Don't call init_cli_cmds.
7307 (gdbinit): Remove.
7308 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
7309
72ee03ff
TT
73102019-07-11 Tom Tromey <tromey@adacore.com>
7311
7312 * python/py-inferior.c (add_thread_object): Don't use thread_obj
7313 after it has been moved.
7314
00db9531
SM
73152019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
7316
7317 * valops.c (value_must_coerce_to_target): Change return type to
7318 bool.
7319 * value.h (value_must_coerce_to_target): Likewise.
7320
f2478a7e
SM
73212019-07-10 Simon Marchi <simon.marchi@efficios.com>
7322
7323 * breakpoint.c (is_hardware_watchpoint): Remove
7324 forward-declaration.
7325 (is_masked_watchpoint): Change return type to bool.
7326 (is_tracepoint): Likewise.
7327 (is_breakpoint): Likewise.
7328 (is_hardware_watchpoint): Likewise.
7329 (is_watchpoint): Likewise.
7330 (is_no_memory_software_watchpoint): Likewise.
7331 (is_catchpoint): Likewise.
7332 (breakpoint_1): Make FILTER parameter's return type bool.
7333 is_masked_watchpoint): Change return type to bool.
7334 (save_breakpoints): Make FILTER parameter's return type bool.
7335 * breakpoint.h (is_breakpoint): Change return type to bool.
7336 (is_watchpoint): Likewise.
7337 (is_catchpoint): Likewise.
7338 (is_tracepoint): Likewise.
7339
0d12e84c
TT
73402019-07-10 Tom Tromey <tom@tromey.com>
7341
7342 * defs.h: Don't include gdbarch.h.
7343 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
7344 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
7345 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
7346 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
7347 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
7348 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
7349 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
7350 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
7351 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
7352 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
7353 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
7354 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
7355 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
7356 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
7357 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
7358 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
7359 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
7360 record-btrace.c, record.h, regcache-dump.c, regcache.h,
7361 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
7362 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
7363 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
7364 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
7365 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
7366 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
7367 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
7368 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
7369 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
7370
f06f1252
TT
73712019-07-10 Tom Tromey <tromey@adacore.com>
7372
7373 * ada-lang.h (is_ada_exception_catchpoint): Declare.
7374 * breakpoint.c (init_ada_exception_breakpoint): Register as
7375 bp_catchpoint.
7376 (print_one_breakpoint_location, print_one_breakpoint): Use
7377 is_ada_exception_catchpoint.
7378 * ada-lang.c (class ada_catchpoint_location): Pass
7379 bp_loc_software_breakpoint to bp_location constructor.
7380 (is_ada_exception_catchpoint): New function.
7381
7a5d944b
TT
73822019-07-10 Tom Tromey <tromey@adacore.com>
7383
7384 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
7385 VEC.
7386 (struct arm_exidx_entry): New method operator<.
7387 (struct arm_exidx_data) <section_maps>: Change type.
7388 (arm_exidx_data_free): Remove.
7389 (arm_exidx_data_key): Change type. Move lower.
7390 (arm_exidx_new_objfile): Update.
7391 (arm_compare_exidx_entries): Remove.
7392 (arm_find_exidx_entry, _initialize_arm_tdep)
7393
48c66e1d
TT
73942019-07-10 Tom Tromey <tromey@adacore.com>
7395
7396 * solib-spu.c (ocl_program_data_key): Change type.
7397 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
7398 Update.
7399
a269fbf1
TT
74002019-07-10 Tom Tromey <tromey@adacore.com>
7401
7402 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
7403 (struct solib_aix_inferior_data) <library_list>: Change type.
7404 (solib_aix_inferior_data_handle): Change type.
7405 (get_solib_aix_inferior_data): Update.
7406 (solib_aix_free_library_list): Remove.
7407 (library_list_start_library): Update.
7408 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
7409 return type.
7410 (solib_aix_get_library_list)
7411 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
7412 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
7413
c294730c
TT
74142019-07-10 Tom Tromey <tromey@adacore.com>
7415
7416 * solib-dsbt.c (struct dsbt_info): Add initializers.
7417 (solib_dsbt_pspace_data): Change type.
7418 (dsbt_pspace_data_cleanup): Remove.
7419 (get_dsbt_info, _initialize_dsbt_solib): Update.
7420
9d52077d
TT
74212019-07-10 Tom Tromey <tromey@adacore.com>
7422
7423 * spu-tdep.c (spu_overlay_data): Change type.
7424 (spu_get_overlay_table, spu_overlay_new_objfile)
7425 (_initialize_spu_tdep): Update.
7426
22a20dca
TT
74272019-07-10 Tom Tromey <tromey@adacore.com>
7428
7429 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
7430 destructor.
7431 (dbx_objfile_data_key): Change type and declare later.
7432 (DBX_SYMFILE_INFO): Rewrite.
7433 * dbxread.c (dbx_objfile_data_key): Change type.
7434 (dbx_symfile_init): Update.
7435 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
7436 (coffstab_build_psymtabs, elfstab_build_psymtabs)
7437 (stabsect_build_psymtabs, _initialize_dbxread): Update.
7438
cb60f420
TT
74392019-07-10 Tom Tromey <tromey@adacore.com>
7440
7441 * jit.c (jit_program_space_key): Change type. Move lower.
7442 (get_jit_program_space_data): Update.
7443 (jit_program_space_data_cleanup): Remove.
7444 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
7445 Update.
7446 (struct jit_program_space_data): Add initializers.
7447
51df2ae3
TT
74482019-07-10 Tom Tromey <tromey@adacore.com>
7449
7450 * solib-darwin.c (struct darwin_info): Add initializers.
7451 (solib_darwin_pspace_data): Change type.
7452 (darwin_pspace_data_cleanup): Remove.
7453 (get_darwin_info, _initialize_darwin_solib): Update.
7454
18101a35
TT
74552019-07-10 Tom Tromey <tromey@adacore.com>
7456
7457 * remote-sim.c (struct sim_inferior_data): Add initializers,
7458 constructor, and destructor.
7459 (sim_inferior_data_key): Change type. Move lower.
7460 (check_for_duplicate_sim_descriptor): Update.
7461 (get_sim_inferior_data): Use new. Update.
7462 (~sim_inferior_data_cleanup): Rename from
7463 sim_inferior_data_cleanup. Simplify.
7464 (gdbsim_close_inferior, simulator_command)
7465 (sim_command_completer, _initialize_remote_sim): Update.
7466 (next_pid, INITIAL_PID): Move earlier.
7467
05b08ac1
TT
74682019-07-10 Tom Tromey <tromey@adacore.com>
7469
7470 * python/python-internal.h (create_thread_object): Return
7471 gdbpy_ref.
7472 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
7473 * python/py-inferior.c (struct threadlist_entry): Add
7474 constructor.
7475 <thread_obj>: Now a gdbpy_ref.
7476 (thread_to_thread_object): Update.
7477 (add_thread_object): Use new.
7478 (delete_thread_object): Use delete.
7479 (infpy_threads): Update.
7480 (py_free_inferior): Update. Construct "inf_obj" after acquiring
7481 GIL.
7482
32372d80
TT
74832019-07-10 Tom Tromey <tromey@adacore.com>
7484
7485 * valops.c (value_cast): Specialize error message for Ada.
7486
5c458ae8
SM
74872019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
7488
7489 * breakpoint.c (breakpoint_1): Update doc and parameter names.
7490
4c462cb0
SM
74912019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
7492
7493 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
7494 bpstat_should_step): Return bool, adjust comments.
7495 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
7496 bpstat_should_step): Likewise.
7497
89abbcc2
AH
74982019-07-10 Alan Hayward <alan.hayward@arm.com>
7499
7500 * features/Makefile: Use feature target descriptions for Arm.
7501 * features/arm/arm-core.c: Generate new file.
7502 * features/arm/arm-fpa.c: Likewise.
7503 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
7504 * features/arm/arm-m-profile.c: Likewise.
7505 * features/arm/arm-vfpv2.c: Likewise.
7506 * features/arm/arm-vfpv3.c: Likewise.
7507 * features/arm/xscale-iwmmxt.c: Likewise.
7508 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
7509
166a82be
AH
75102019-07-10 Alan Hayward <alan.hayward@arm.com>
7511
7512 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
7513 ptrace earlier.
7514
9fb4c7e9
AH
75152019-07-10 Alan Hayward <alan.hayward@arm.com>
7516
7517 * features/aarch64-pauth.c: Regenerate.
7518
e2d0f980
SM
75192019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
7520
7521 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
7522 bool.
7523 (bpstat_what): Use false instead of 0.
7524
a38118e5
PA
75252019-07-09 Pedro Alves <palves@redhat.com>
7526
7527 * break-catch-throw.c (is_exception_catchpoint): New.
7528 * breakpoint.c (print_one_breakpoint_location): New parameter
7529 'raw_loc'. Handle it. Use
7530 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
7531 looking at the breakpoint's type.
7532 (print_one_breakpoint): If handling "maint info breakpoints", also
7533 print locations of exception catchpoints.
7534 * breakpoint.h (is_exception_catchpoint): Declare.
7535
cb1e4e32
PA
75362019-07-09 Pedro Alves <palves@redhat.com>
7537
7538 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
7539 "addr" field.
7540 (allocate_location_exception_catchpoint): New.
7541 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
7542 (initialize_throw_catchpoint_ops): Install
7543 allocate_location_exception_catchpoint as allocate_location
7544 method.
7545 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
7546 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
7547 bp_loc_other.
7548 (breakpoint_address_is_meaningful): Delete.
7549 (bl_address_is_meaningful): New.
7550 (breakpoint_locations_match): Adjust comment.
7551 (bp_location_from_bp_type): New, factored out of...
7552 (bp_location::bp_location(breakpoint *)): ... this.
7553 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
7554 factored out of...
7555 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
7556 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
7557 breakpoint_address_is_meaningful.
7558 (bp_locations_compare): Adjust comment.
7559 (update_global_location_list): Use bl_address_is_meaningful
7560 instead of breakpoint_address_is_meaningful.
7561 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
7562 explicit.
7563 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
7564 * python/py-breakpoint.c (bppy_get_location): No longer check
7565 whether location is null.
7566
b58a68fe
PA
75672019-07-09 Pedro Alves <palves@redhat.com>
7568
7569 PR c++/15468
7570 * breakpoint.c (print_one_breakpoint_location): Remove
7571 single-location assert.
7572
268a13a5
TT
75732019-07-09 Tom Tromey <tom@tromey.com>
7574
7575 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
7576 * configure: Rebuild.
7577 * configure.ac: Change common to gdbsupport.
7578 * gdbsupport: Rename from common.
7579 * acinclude.m4: Change common to gdbsupport.
7580 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
7581 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
7582 gdbsupport.
7583 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
7584 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
7585 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
7586 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
7587 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
7588 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
7589 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
7590 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
7591 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
7592 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
7593 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
7594 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
7595 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
7596 coff-pe-read.c, command.h, compile/compile-c-support.c,
7597 compile/compile-c.h, compile/compile-cplus-symbols.c,
7598 compile/compile-cplus-types.c, compile/compile-cplus.h,
7599 compile/compile-loc2c.c, compile/compile.c, completer.c,
7600 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
7601 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
7602 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
7603 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
7604 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
7605 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
7606 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
7607 features/aarch64-core.c, features/aarch64-fpu.c,
7608 features/aarch64-pauth.c, features/aarch64-sve.c,
7609 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
7610 features/i386/32bit-core.c, features/i386/32bit-linux.c,
7611 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
7612 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
7613 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
7614 features/i386/64bit-core.c, features/i386/64bit-linux.c,
7615 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
7616 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
7617 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
7618 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
7619 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
7620 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
7621 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
7622 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
7623 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
7624 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
7625 go32-nat.c, guile/guile.c, guile/scm-ports.c,
7626 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
7627 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
7628 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
7629 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
7630 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
7631 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
7632 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
7633 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
7634 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
7635 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
7636 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
7637 minsyms.c, mips-linux-tdep.c, namespace.h,
7638 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
7639 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
7640 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
7641 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
7642 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
7643 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
7644 nat/linux-waitpid.c, nat/mips-linux-watch.c,
7645 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
7646 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
7647 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
7648 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
7649 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
7650 procfs.c, producer.c, progspace.h, psymtab.h,
7651 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
7652 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
7653 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
7654 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
7655 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
7656 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
7657 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
7658 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
7659 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
7660 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
7661 target-memory.c, target.c, target.h, target/waitstatus.c,
7662 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
7663 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
7664 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
7665 unittests/array-view-selftests.c,
7666 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
7667 unittests/common-utils-selftests.c,
7668 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
7669 unittests/format_pieces-selftests.c,
7670 unittests/function-view-selftests.c,
7671 unittests/lookup_name_info-selftests.c,
7672 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
7673 unittests/mkdir-recursive-selftests.c,
7674 unittests/observable-selftests.c,
7675 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
7676 unittests/parse-connection-spec-selftests.c,
7677 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
7678 unittests/scoped_fd-selftests.c,
7679 unittests/scoped_mmap-selftests.c,
7680 unittests/scoped_restore-selftests.c,
7681 unittests/string_view-selftests.c, unittests/style-selftests.c,
7682 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
7683 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
7684 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
7685 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
7686 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
7687 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
7688
5b0e2db4
AB
76892019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
7690
7691 * linespec.c (decode_digits_list_mode): Set explicit_line to a
7692 bool value.
7693 (decode_digits_ordinary): Set explicit_line field in sal.
7694 * symtab.c (skip_prologue_sal): Don't skip prologue for a
7695 symtab_and_line that was set on an explicit line number in
7696 assembler code. Do always update the recorded symtab and line if
7697 we do skip the prologue.
7698
0ba852ab
AB
76992019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
7700
7701 * breakpoint.c (set_breakpoint_location_function): Remove
7702 explicit_loc parameter.
7703 (momentary_breakpoint_from_master): Update call to
7704 set_breakpoint_location_function.
7705 (add_location_to_breakpoint): Likewise.
7706
b3a7d171
AB
77072019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
7708
7709 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
7710 required features based on default bfd type when no specific bfd
7711 is present.
7712
1f6f6e21
PW
77132019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7714
7715 * NEWS: Mention that GDB printf and eval commands can now print
7716 C-style and Ada-style convenience var strings without
7717 calling the inferior.
7718 * printcmd.c (printf_c_string): Locally print GDB internal var
7719 instead of transiting via the inferior.
7720 (printf_wide_c_string): Likewise.
7721
77222019-07-04 Alan Hayward <alan.hayward@arm.com>
ea142fbf 7723
5862c886 7724 PR breakpoints/25011
ea142fbf
AH
7725 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
7726
0598af48
TT
77272019-07-04 Tom Tromey <tom@tromey.com>
7728
7729 PR tui/24724:
7730 * tui/tui-winsource.c (tui_clear_source_content): Update.
7731 (tui_source_window_base::set_is_exec_point_at): Fix comment.
7732 (tui_update_breakpoint_info): Update.
7733 (tui_set_exec_info_content): Update.
7734 * tui/tui-source.c (tui_set_source_content_nil): Update.
7735 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
7736 has_break.
7737 * tui/tui-data.h (enum tui_bp_flag): New.
7738 (tui_bp_flags): New enum flags type.
7739 (struct tui_source_element) <break_mode>: Change type. Rename
7740 from has_break.
7741 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
7742 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
7743 constants.
7744 * tui/tui-winsource.h: Fix comment.
7745
350fab54
AH
77462019-07-04 Alan Hayward <alan.hayward@arm.com>
7747
7748 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
7749 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
7750 (store_fpregs_to_thread)
7751 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
7752 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
7753 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
7754 (IWMMXT_REGS_SIZE): Add define.
7755 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
7756 (fetch_vfp_regs, store_vfp_regs)
7757 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
7758 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
7759
f0452268
AH
77602019-07-04 Alan Hayward <alan.hayward@arm.com>
7761
7762 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
7763 defines.
7764 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
7765 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
7766 (ARM_INT_REGISTER_SIZE): ...to this.
7767 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
7768 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
7769 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
7770 (arm_linux_collect_gregset, supply_nwfpe_register)
7771 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
7772 defines.
7773 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
7774 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
7775 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
7776 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
7777 (arm_return_in_memory, arm_store_return_value)
7778 (arm_get_longjmp_target, arm_register_g_packet_guesses)
7779 (arm_record_ld_st_multiple): Likewise.
7780 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
7781 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
7782
e935475c
AH
77832019-07-04 Alan Hayward <alan.hayward@arm.com>
7784
7785 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
7786 AARCH64_DISPLACED_MODIFIED_INSNS.
7787 * aarch64-tdep.c (struct aarch64_displaced_step_data)
7788 (aarch64_displaced_step_copy_insn): Likewise.
7789 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
7790 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
7791 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
7792 ARM_DISPLACED_MODIFIED_INSNS.
7793 * arm-tdep.c (arm_gdbarch_init): Likewise.
7794 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
7795 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
7796 (struct arm_displaced_step_closure): Use
7797 ARM_DISPLACED_MODIFIED_INSNS.
7798
df0bb381
AH
77992019-07-04 Alan Hayward <alan.hayward@arm.com>
7800
7801 * features/Makefile: Remove unused xml files.
7802 * features/aarch64.xml: Remove.
7803 * features/i386/amd64-avx-avx512-linux.xml: Remove.
7804 * features/i386/amd64-avx-avx512.xml: Remove.
7805 * features/i386/amd64-avx-linux.xml: Remove.
7806 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
7807 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
7808 * features/i386/amd64-avx-mpx-linux.xml: Remove.
7809 * features/i386/amd64-avx-mpx.xml: Remove.
7810 * features/i386/amd64-avx.xml: Remove.
7811 * features/i386/amd64-linux.xml: Remove.
7812 * features/i386/amd64-mpx-linux.xml: Remove.
7813 * features/i386/amd64-mpx.xml: Remove.
7814 * features/i386/amd64.xml: Remove.
7815 * features/i386/i386-avx-avx512-linux.xml: Remove.
7816 * features/i386/i386-avx-avx512.xml: Remove.
7817 * features/i386/i386-avx-linux.xml: Remove.
7818 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
7819 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
7820 * features/i386/i386-avx-mpx-linux.xml: Remove.
7821 * features/i386/i386-avx-mpx.xml: Remove.
7822 * features/i386/i386-avx.xml: Remove.
7823 * features/i386/i386-linux.xml: Remove.
7824 * features/i386/i386-mmx-linux.xml: Remove.
7825 * features/i386/i386-mmx.xml: Remove.
7826 * features/i386/i386-mpx-linux.xml: Remove.
7827 * features/i386/i386-mpx.xml: Remove.
7828 * features/i386/i386.xml: Remove.
7829 * features/i386/x32-avx-avx512-linux.xml: Remove.
7830 * features/i386/x32-avx-linux.xml: Remove.
7831 * features/i386/x32-linux.xml: Remove.
7832
edd6266a
AH
78332019-07-04 Alan Hayward <alan.hayward@arm.com>
7834
7835 * regformats/aarch64.dat: Remove.
7836 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
7837 * regformats/i386/amd64-avx-linux.dat: Remove.
7838 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
7839 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
7840 * regformats/i386/amd64-linux.dat: Remove.
7841 * regformats/i386/amd64-mpx-linux.dat: Remove.
7842 * regformats/i386/amd64.dat: Remove.
7843 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
7844 * regformats/i386/i386-avx-linux.dat: Remove.
7845 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
7846 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
7847 * regformats/i386/i386-linux.dat: Remove.
7848 * regformats/i386/i386-mmx-linux.dat: Remove.
7849 * regformats/i386/i386-mpx-linux.dat: Remove.
7850 * regformats/i386/i386.dat: Remove.
7851 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
7852 * regformats/i386/x32-avx-linux.dat: Remove.
7853 * regformats/i386/x32-linux.dat: Remove.
7854
2b40fda7
AH
78552019-07-04 Alan Hayward <alan.hayward@arm.com>
7856
7857 * aarch64-tdep.c: Remove xml self tests.
7858 * amd64-linux-tdep.c: Likewise.
7859 * amd64-tdep.c: Likewise.
7860 * i386-linux-tdep.c: Likewise.
7861 * i386-tdep.c: Likewise.
7862
5f4ba3e7
PA
78632019-07-03 Pedro Alves <palves@redhat.com>
7864
7865 PR cli/24732
7866 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
7867 (pipe_cmd_option_defs): New.
7868 (make_pipe_cmd_options_def_group): New.
7869 (pipe_command): Use gdb::option::process_options.
7870 (pipe_command_completer): New function.
7871 (_initialize_cli_cmds): Install completer for "pipe" command.
7872
3d9be6f5
PA
78732019-07-03 Pedro Alves <palves@redhat.com>
7874
7875 * cli/cli-option.c (union option_value) <string>: New field.
7876 (struct option_def_and_value): Add ctor, move ctor, dtor and
7877 use DISABLE_COPY_AND_ASSIGN.
7878 (option_def_and_value::clear_value): New.
7879 (parse_option, save_option_value_in_ctx, get_val_type_str)
7880 (add_setshow_cmds_for_options): Handle var_string.
7881 * cli-option.h (union option_def::var_address) <string>: New
7882 field.
7883 (struct string_option_def): New.
7884 * maint-test-options.c (struct test_options_opts): Add default
7885 ctor and use DISABLE_COPY_AND_ASSIGN.
7886 <string_opt>: New field.
7887 (test_options_opts::~test_options_opts): New.
7888 (test_options_opts::dump): Also dump "-string".
7889 (test_options_option_defs): Install "string.
7890
41fc454c
PA
78912019-07-03 Pedro Alves <palves@redhat.com>
7892
7893 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
7894 option_value with a null enumeration.
7895 (complete_options): Save the option values in the context.
7896 (save_option_value_in_ctx): New, factored out from ...
7897 (process_options): ... here.
7898 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
7899 of the function.
7900 * maint-test-options.c (test_options_opts::dump): New, factored
7901 out from ...
7902 (maintenance_test_options_command_mode): ... here.
7903 (maintenance_test_options_command_completion_result): Delete.
7904 (maintenance_test_options_command_completion_text): Update
7905 comment.
7906 (maintenance_show_test_options_completion_result): Change
7907 prototype. Just print
7908 maintenance_test_options_command_completion_text.
7909 (save_completion_result): New.
7910 (maintenance_test_options_completer_mode): Pass options context to
7911 complete_options, and then save a dump.
7912 (_initialize_maint_test_options): Use add_cmd to install "maint
7913 show test-options-completion-result".
7914
fdbc9870
PA
79152019-07-03 Pedro Alves <palves@redhat.com>
7916
7917 * NEWS (New commands): Mention "with" and "maint with".
7918 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
7919 (with_command, with_command_completer): New.
7920 (pipe_command): Adjust to new repeat_previous
7921 interface.
7922 (_initialize_cli_cmds): Install the "with" command and its "w"
7923 alias.
7924 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
7925 declarations.
7926 * cli/cli-setshow.c (parse_cli_var_uinteger)
7927 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
7928 argument strings for all var_types.
7929 (get_setshow_command_value_string): New, factored out from ...
7930 (do_show_command): ... this.
7931 * cli/cli-setshow.h: Include <string>.
7932 (get_setshow_command_value_string): Declare.
7933 * command.h (repeat_previous): Now returns const char *. Adjust
7934 comment.
7935 * maint.c: Include "cli/cli-cmds.h".
7936 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
7937 (_initialize_maint_cmds): Register the "maintenance with" command.
7938 * top.c (repeat_previous): Move bits from pipe_command here:
7939 Return the saved command line, if any; error out if there's no
7940 command to relaunch.
7941
c6ac8931
PA
79422019-07-03 Pedro Alves <palves@redhat.com>
7943
7944 * NEWS (New commands): Mention "maint set/show test-settings"
7945 instead of "maint test-settings".
7946 * maint-test-settings.c (maintenance_test_settings_list): Delete.
7947 (maintenance_test_settings_set_list): Rename to ...
7948 (maintenance_set_test_settings_list): ... this.
7949 (maintenance_test_settings_show_list): Rename to ...
7950 (maintenance_show_test_settings_list): ... this.
7951 (maintenance_test_settings_cmd): Delete.
7952 (maintenance_test_settings_set_cmd): ...
7953 (maintenance_set_test_settings_cmd): ... this.
7954 (maintenance_test_settings_show_cmd): ...
7955 (maintenance_show_test_settings_cmd): ... this.
7956 (maintenance_test_settings_show_value_cmd):
7957 (maintenance_show_test_settings_value_cmd): ... this.
7958 (_initialize_maint_test_settings): No longer install the "maint
7959 test-settings" prefix command. Rename "maint test-settings set"
7960 to "maint set test-settings", and "maint test-settings show" to
7961 "maint show test-settings". Adjust all subcommands.
7962
d1fcf2fd
PA
79632019-07-03 Pedro Alves <palves@redhat.com>
7964
7965 * maint-test-settings.c: Fix file's intro comment. Replace all
7966 references to "test-options" with references to "test-settings",
7967 in comments.
7968
970f9d09
PA
79692019-07-03 Pedro Alves <palves@redhat.com>
7970
7971 * maint-test-settings.c (maintenance_test_settings_xxx)
7972 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
7973 New.
7974 (maintenance_test_settings_enums): Use them.
7975 (maintenance_test_settings_enum): Default to
7976 maintenance_test_settings_xxx.
7977 (_initialize_maint_test_settings): Initialize
7978 MAINTENANCE_TEST_SETTINGS_FILENAME.
7979
f3869b1a
SM
79802019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7981
7982 * breakpoint.h (remove_breakpoints_inf): Change return type to
7983 void, move function documentation here.
7984 * breakpoint.c (remove_breakpoints_inf): Change return type to
7985 void, move function documentation to header.
7986
54d66006
PA
79872019-07-02 Pedro Alves <palves@redhat.com>
7988
7989 * NEWS (Completion improvements): Mention "info threads".
7990 * thread.c (struct info_threads_opts, info_threads_option_defs)
7991 (make_info_threads_options_def_group): New.
7992 (info_threads_command): Use gdb::option::process_options.
7993 (info_threads_command_completer): New.
7994 (_initialize_thread): Use gdb::option::build_help to build the
7995 help text for "info threads".
7996
854f6088
SM
79972019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7998
7999 * defs.h (generic_load): Move from here...
8000 * symfile.h (generic_load): ... to here. Rename name parameter
8001 to args.
8002 * symfile.c (generic_load): Add comment.
8003
54ee4252
TT
80042019-07-01 Tom Tromey <tromey@adacore.com>
8005
8006 * dwarf2read.c
8007 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
8008 declaration of without_params. Fix formatting.
8009
65392b3e
TT
80102019-07-01 Tom Tromey <tromey@adacore.com>
8011
8012 * ada-exp.y (find_primitive_type): Update.
8013 * ada-lang.h (ada_lookup_symbol): Update.
8014 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
8015 parameter.
8016 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
8017
7d7571f0
SDJ
80182019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
8019
8020 PR breakpoints/24541
8021 * gdbarch.c: Regenerate.
8022 * gdbarch.h: Regenerate.
8023 * gdbarch.sh: Add 'stap_adjust_register'.
8024 * i386-tdep.c: Include '<unordered_set>'.
8025 (i386_stap_adjust_register): New function.
8026 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
8027 * stap-probe.c (stap_parse_register_operand): Call
8028 'gdbarch_stap_adjust_register'.
8029
5af5392a
SDJ
80302019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
8031
8032 PR python/24742
8033 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
8034 * python/python.c (do_start_initialization): Use 'xmalloc'
8035 instead of 'PyMem_Malloc'.
8036
10d06d82
TT
80372019-06-28 Tom Tromey <tromey@adacore.com>
8038
8039 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
8040 for Ada.
8041
1b7f24cd
TT
80422019-06-27 Tom Tromey <tromey@adacore.com>
8043
8044 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
8045 objfile_key.
8046 (arm_find_mapping_symbol, arm_record_special_symbol)
8047 (_initialize_arm_tdep): Update.
8048 (arm_objfile_data_free): Remove.
8049
3d507ff2
TT
80502019-06-27 Tom Tromey <tromey@adacore.com>
8051
8052 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
8053 to cp_print_static_field.
8054
762c164d
TT
80552019-06-26 Tom Tromey <tromey@adacore.com>
8056
8057 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
8058 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
8059 declare.
8060
aa2f9bcf
AH
80612019-06-26 Alan Hayward <alan.hayward@arm.com>
8062
8063 * features/aarch64-core.c (create_feature_aarch64_core):
8064 Regenerate.
8065 * features/aarch64-core.xml: Add cpsr flags.
8066
3426ae57
AH
80672019-06-26 Alan Hayward <alan.hayward@arm.com>
8068
8069 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
8070 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
8071
4838e44c
SM
80722019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
8073
8074 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
8075 field.
8076 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
8077 use.
8078 (arm_record_special_symbol): Don't insert new symbol in sorted
8079 position, push it at the end.
8080
54cc7474
SM
80812019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
8082
8083 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
8084 (arm_mapping_symbol_s): Remove.
8085 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
8086 (arm_mapping_symbol_vec): New typedef.
8087 (struct arm_per_objfile): Add constructor.
8088 <section_maps>: Change type to
8089 std::unique_ptr<arm_mapping_symbol_vec[]>.
8090 (arm_compare_mapping_symbols): Remove.
8091 (arm_find_mapping_symbol): Adjust to section_maps type change.
8092 (arm_objfile_data_free): Call delete on arm_per_objfile.
8093 (arm_record_special_symbol): Adjust to section_maps type change.
8094 Allocate arm_per_objfile with new.
8095
b65b566c
PW
80962019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8097
8098 * cli/cli-cmds.c (alias_command): Compare the alias prefix
8099 with the command prefix.
8100
c2fc64f5
TT
81012019-06-25 Tom Tromey <tom@tromey.com>
8102
8103 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
8104 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
8105
fb54fa76
TT
81062019-06-25 Tom Tromey <tom@tromey.com>
8107
8108 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
8109 type.
8110 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
8111 protected.
8112
f7952c57
TT
81132019-06-25 Tom Tromey <tom@tromey.com>
8114
8115 * tui/tui-winsource.c
8116 (tui_source_window_base::set_is_exec_point_at): Add check against
8117 LOA_ADDRESS.
8118
17568d78
TT
81192019-06-25 Tom Tromey <tom@tromey.com>
8120
8121 * tui/tui-source.c (tui_set_source_content): Don't check before
8122 xfree.
8123 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
8124
53e7cdba
TT
81252019-06-25 Tom Tromey <tom@tromey.com>
8126
8127 * tui/tui-winsource.h (tui_update_source_window_as_is)
8128 (tui_alloc_source_buffer, tui_line_is_displayed)
8129 (tui_addr_is_displayed): Change type of win_info.
8130 * tui/tui-winsource.c (tui_update_source_window_as_is)
8131 (tui_clear_source_content, tui_show_source_line)
8132 (tui_show_source_content, tui_source_window_base::refill)
8133 (tui_source_window_base::set_is_exec_point_at)
8134 (tui_source_window_base::set_is_exec_point_at)
8135 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
8136 (tui_alloc_source_buffer, tui_line_is_displayed)
8137 (tui_addr_is_displayed): Change type of win_info. Update.
8138 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
8139 (tui_source_window_base::do_make_visible_with_new_height):
8140 Update.
8141 * tui/tui-source.c (tui_set_source_content)
8142 (tui_set_source_content_nil)
8143 (tui_source_window::do_scroll_vertical): Update.
8144 * tui/tui-layout.c (show_layout): Update.
8145 * tui/tui-disasm.c (tui_set_disassem_content)
8146 (tui_disasm_window::do_scroll_vertical): Update.
8147 * tui/tui-data.h (tui_win_content): Remove.
8148 (struct tui_gen_win_info) <content, content_size>: Remove.
8149 (struct tui_source_element): Add initializers and destructor.
8150 (union tui_which_element, struct tui_win_element): Remove.
8151 (struct tui_source_window_base) <content>: New field.
8152 (struct tui_data_window): Remove destructor.
8153 (tui_alloc_content, tui_free_win_content)
8154 (tui_free_all_source_wins_content): Don't declare.
8155 * tui/tui-data.c (tui_initialize_static_data): Update.
8156 (init_content_element, tui_alloc_content): Remove.
8157 (~tui_gen_win_info): Update.
8158 (~tui_data_window, tui_free_all_source_wins_content)
8159 (tui_free_win_content, free_content, free_content_elements):
8160 Remove.
8161
7908abbf
TT
81622019-06-25 Tom Tromey <tom@tromey.com>
8163
8164 * tui/tui-winsource.h (tui_clear_source_content)
8165 (tui_erase_source_content, tui_show_source_content): Change type
8166 of win_info.
8167 * tui/tui-winsource.c (tui_clear_source_content)
8168 (tui_erase_source_content, tui_show_source_content): Change type
8169 of win_info.
8170 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
8171 * tui/tui-source.h (tui_set_source_content_nil): Change type of
8172 win_info.
8173 * tui/tui-source.c (tui_set_source_content_nil): Change type of
8174 win_info.
8175 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
8176
02c28df0
TT
81772019-06-25 Tom Tromey <tom@tromey.com>
8178
8179 * tui/tui-winsource.c (tui_clear_source_content)
8180 (tui_source_window_base::set_is_exec_point_at): Update.
8181 * tui/tui-source.c (tui_set_source_content_nil): Update.
8182 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
8183 a bool.
8184 * tui/tui-data.c (init_content_element): Update.
8185
6658b1bf
TT
81862019-06-25 Tom Tromey <tom@tromey.com>
8187
8188 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
8189 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
8190 * tui/tui-layout.c (init_and_make_win): Update.
8191 * tui/tui.h (enum tui_win_type): Update.
8192 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
8193 tui_win_is_auxillary.
8194 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
8195 tui_win_is_auxillary.
8196
21e1c91e
TT
81972019-06-25 Tom Tromey <tom@tromey.com>
8198
8199 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
8200 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
8201 (tui_delete_data_content_windows, tui_display_all_data)
8202 (tui_data_window::do_scroll_vertical, tui_display_data_from):
8203 Update.
8204 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
8205 * tui/tui-regs.c (tui_last_regs_line_no)
8206 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
8207 (tui_show_registers): Update.
8208 (tui_show_register_group): Return void. Update.
8209 (tui_display_registers_from, tui_display_reg_element_at_line)
8210 (tui_display_registers_from_line, tui_check_register_values):
8211 Update.
8212 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
8213 member.
8214 (struct tui_data_window) <regs_content>: Now a std::vector.
8215 <regs_content_count>: Remove.
8216 (tui_add_content_elements, tui_free_data_content): Don't declare.
8217 * tui/tui-data.c (tui_data_window::clear_detail): Update.
8218 (init_content_element): Remove DATA_WIN case. Add assert.
8219 (tui_add_content_elements): Remove.
8220 (tui_data_window): Update.
8221 (tui_free_data_content): Remove.
8222 (free_content_elements): Remove DATA_WIN case.
8223
115ac53b
TT
82242019-06-25 Tom Tromey <tom@tromey.com>
8225
8226 * tui/tui-data.c (tui_data_item_window): Update.
8227 * tui/tui-windata.h (tui_check_data_values): Don't declare.
8228 * tui/tui-windata.c (tui_display_all_data)
8229 (tui_display_data_from_line): Update.
8230 (tui_check_data_values): Remove.
8231 * tui/tui-regs.c (tui_show_register_group)
8232 (tui_display_reg_element_at_line): Update.
8233 * tui/tui-hooks.c (tui_register_changed)
8234 (tui_refresh_frame_and_register_information): Call
8235 tui_check_register_values.
8236 * tui/tui-data.h (struct tui_data_window) <data_content,
8237 data_content_count, data_type>: Remove.
8238 (enum tui_data_type): Remove.
8239
8240 * tui/tui-data.c (tui_data_window::clear_detail)
8241 (~tui_data_window): Update.
8242
eaf9738b
TT
82432019-06-25 Tom Tromey <tom@tromey.com>
8244
8245 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
8246 declare.
8247 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
8248 Rename from tui_first_data_item_displayed. Update.
8249 (tui_data_window::refresh_all)
8250 (tui_data_window::do_scroll_vertical): Update.
8251 * tui/tui-data.h (struct tui_data_window)
8252 <first_data_item_displayed>: Declare new method.
8253
31ca4723
TT
82542019-06-25 Tom Tromey <tom@tromey.com>
8255
8256 * tui/tui-data.h (tui_init_generic_part): Don't declare.
8257 * tui/tui-data.c (tui_init_generic_part): Remove, moving
8258 contents...
8259 (tui_initialize_static_data): ...here.
8260
41bcff7f
TT
82612019-06-25 Tom Tromey <tom@tromey.com>
8262
8263 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
8264 (tui_display_registers_from, tui_check_register_values): Update.
8265 (tui_display_register): Remove win_info parameter; update.
8266 (tui_get_register): Change type of parameters.
8267 * tui/tui-data.h (struct tui_data_element): Remove.
8268 (union tui_which_element) <data>: Remove.
8269 <data_window>: Change type.
8270 (struct tui_data_item_window): New.
8271 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
8272 case. Add assert.
8273 (~tui_data_item_window): New destructor.
8274 (free_content_elements): Remove DATA_ITEM_WIN case.
8275
d2802c33
TT
82762019-06-25 Tom Tromey <tom@tromey.com>
8277
8278 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
8279 Remove.
8280
dd835f8b
TT
82812019-06-25 Tom Tromey <tom@tromey.com>
8282
8283 * tui/tui-data.h (struct tui_command_element): Remove.
8284 (union tui_which_element) <command>: Remove.
8285 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
8286 assert.
8287 (free_content_elements): Remove CMD_WIN case.
8288
bd7db367
TT
82892019-06-25 Tom Tromey <tom@tromey.com>
8290
8291 * tui/tui-layout.c (tui_set_layout): Update.
8292 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
8293 * tui/tui-data.c (layout_def): Update.
8294
3add462f
TT
82952019-06-25 Tom Tromey <tom@tromey.com>
8296
8297 * tui/tui-wingeneral.c (tui_refresh_all): Update.
8298 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
8299 (tui_source_window_base::set_new_height): Update.
8300 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
8301 Update.
8302 (tui_set_locator_fullname, tui_set_locator_info)
8303 (tui_show_frame_info): Update.
8304 * tui/tui-source.c (tui_set_source_content)
8305 (tui_source_is_displayed): Update.
8306 * tui/tui-layout.c (show_source_disasm_command, show_data)
8307 (show_source_or_disasm_and_command): Update.
8308 * tui/tui-disasm.c (tui_set_disassem_content)
8309 (tui_get_begin_asm_address): Update.
8310 * tui/tui-data.h (struct tui_locator_element): Remove.
8311 (union tui_which_element) <locator>: Remove.
8312 (struct tui_locator_window): New.
8313 (tui_locator_win_info_ptr): Change return type.
8314 * tui/tui-data.c (_locator): Change type.
8315 (tui_locator_win_info_ptr): Change return type.
8316 (init_content_element): Remove LOCATOR_WIN case. Add assert.
8317 (tui_alloc_content): Add assert.
8318
489e9d8b
TT
83192019-06-25 Tom Tromey <tom@tromey.com>
8320
8321 * tui/tui-winsource.c
8322 (tui_exec_info_window::maybe_allocate_content): New method.
8323 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
8324 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
8325 (make_source_or_disasm_window): Add cast.
8326 * tui/tui-data.h (union tui_which_element) <simple_string>:
8327 Remove.
8328 (struct tui_source_info): New.
8329 (struct tui_source_window_base) <execution_info>: Change type.
8330 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
8331 case, and add assert.
8332 (tui_alloc_content): Add assert.
8333
c3fabb7d
TT
83342019-06-25 Tom Tromey <tom@tromey.com>
8335
8336 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
8337 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
8338 * tui/tui-data.c (tui_alloc_win_info): Remove.
8339
bbc228ee
TT
83402019-06-25 Tom Tromey <tom@tromey.com>
8341
8342 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
8343 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
8344 can_highlight.
8345
5fcee43a
TT
83462019-06-25 Tom Tromey <tom@tromey.com>
8347
8348 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
8349 make_visible_with_new_height method.
8350 (tui_win_info::make_visible_with_new_height): New method.
8351 (tui_source_window_base::do_make_visible_with_new_height)
8352 (tui_data_window::do_make_visible_with_new_height)
8353 (tui_cmd_window::do_make_visible_with_new_height): New methods.
8354 (make_visible_with_new_height): Remove.
8355 (tui_resize_all, tui_adjust_win_heights): Use
8356 make_visible_with_new_height method.
8357 * tui/tui-data.h (struct tui_win_info)
8358 <do_make_visible_with_new_height, make_visible_with_new_height>:
8359 New methods.
8360 (struct tui_source_window_base, struct tui_data_window)
8361 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
8362 methods.
8363
d83f1fe6
TT
83642019-06-25 Tom Tromey <tom@tromey.com>
8365
8366 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
8367 method.
8368 (update_tab_width): Call update_tab_width method.
8369 * tui/tui-data.h (struct tui_win_info)
8370 (struct tui_source_window_base) <update_tab_width>: New methods.
8371
17374de4
TT
83722019-06-25 Tom Tromey <tom@tromey.com>
8373
8374 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
8375 parameter.
8376 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
8377 parameter.
8378 (tui_gen_win_info::make_visible): Update.
8379 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
8380 parameter.
8381 * tui/tui-data.h (enum tui_box): New enum.
8382 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
8383
f936bca2
TT
83842019-06-25 Tom Tromey <tom@tromey.com>
8385
8386 * tui/tui-layout.c (make_source_or_disasm_window): Always use
8387 init_and_make_win for EXEC_INFO_WIN.
8388 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
8389 longer inline.
8390 (struct tui_win_info) <~tui_win_info>: Inline.
8391 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
8392 Don't declare.
8393 * tui/tui-data.c (source_win, disasm_win): Remove globals.
8394 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
8395 Remove.
8396 (tui_initialize_static_data): Update.
8397 (~tui_gen_win_info): Handle more cleanup here.
8398 (~tui_source_window_base): Delete "execution_info".
8399 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
8400
d6ba6a11
TT
84012019-06-25 Tom Tromey <tom@tromey.com>
8402
8403 * tui/tui-layout.c (make_command_window): Don't set
8404 can_highlight.
8405 (show_source_disasm_command): Call the reset method.
8406 (show_data): Don't set can_highlight. Call the reset method.
8407 (tui_gen_win_info::reset): Rename from init_gen_win_info
8408 (init_and_make_win): Simplify. Return tui_gen_win_info.
8409 (show_source_or_disasm_and_command): Call the reset method.
8410 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
8411 (struct tui_cmd_window): Set can_highlight.
8412
48a3bd16
TT
84132019-06-25 Tom Tromey <tom@tromey.com>
8414
8415 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
8416 from make_visible.
8417 (tui_make_visible, tui_make_invisible): Rewrite.
8418 (tui_win_info::make_visible): Remove.
8419 (tui_source_window_base::make_visible): Update.
8420 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
8421 method. Moved from...
8422 (struct tui_win_info) <make_visible>: ...here.
8423
c3bd716f
TT
84242019-06-25 Tom Tromey <tom@tromey.com>
8425
8426 * tui/tui-winsource.c
8427 (tui_source_window_base::do_scroll_horizontal): Remove direction
8428 parameter.
8429 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
8430 direction parameter.
8431 * tui/tui-win.c (tui_win_info::forward_scroll)
8432 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
8433 (tui_win_info::right_scroll): Update.
8434 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
8435 direction parameter.
8436 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
8437 direction parameter.
8438 * tui/tui-data.h (enum tui_scroll_direction): Remove.
8439 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
8440 Remove direction parameter.
8441 (struct tui_source_window_base, struct tui_source_window)
8442 (struct tui_disasm_window, struct tui_data_window)
8443 (struct tui_cmd_window): Update.
8444
21c32dca
TT
84452019-06-25 Tom Tromey <tom@tromey.com>
8446
8447 * tui/tui-winsource.h (tui_set_exec_info_content)
8448 (tui_show_exec_info_content, tui_erase_exec_info_content)
8449 (tui_clear_exec_info_content, tui_update_exec_info): Change
8450 argument to tui_source_window_base.
8451 * tui/tui-winsource.c (tui_set_exec_info_content)
8452 (tui_show_exec_info_content, tui_erase_exec_info_content)
8453 (tui_clear_exec_info_content, tui_update_exec_info): Change
8454 argument to tui_source_window_base.
8455
73fbdc65
TT
84562019-06-25 Tom Tromey <tom@tromey.com>
8457
8458 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
8459 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
8460
33325343
TT
84612019-06-25 Tom Tromey <tom@tromey.com>
8462
8463 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
8464 check.
8465
29d2c474
TT
84662019-06-25 Tom Tromey <tom@tromey.com>
8467
8468 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
8469 type to void.
8470 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
8471 type to void.
8472 * tui/tui-source.c (tui_set_source_content): Update.
8473 * tui/tui-disasm.c (tui_set_disassem_content): Update.
8474
152f3f4b
TT
84752019-06-25 Tom Tromey <tom@tromey.com>
8476
8477 * tui/tui-win.c (window_name_completer, tui_set_focus)
8478 (tui_all_windows_info): Use name method.
8479 * tui/tui-data.h (struct tui_gen_win_info)
8480 (struct tui_source_window, struct tui_disasm_window)
8481 (struct tui_data_window, struct tui_cmd_window) <name>: New
8482 method.
8483 (tui_win_name): Don't declare.
8484 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
8485 (tui_win_name): Remove.
8486
be4da588
TT
84872019-06-25 Tom Tromey <tom@tromey.com>
8488
8489 * tui/tui-winsource.h (tui_update_source_window)
8490 (tui_update_source_window_as_is): Change parameter type.
8491 * tui/tui-winsource.c (tui_update_source_window): Change win_info
8492 to be a tui_source_window_base.
8493 (tui_update_source_window_as_is): Likewise.
8494 * tui/tui-win.c (make_visible_with_new_height): Update.
8495
5b81daba
TT
84962019-06-25 Tom Tromey <tom@tromey.com>
8497
8498 * tui/tui-winsource.c (tui_erase_source_content)
8499 (tui_show_source_content, tui_show_exec_info_content)
8500 (tui_erase_exec_info_content): Use refresh_window method.
8501 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
8502 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
8503 from tui_refresh_win.
8504 (tui_data_window::refresh_window): New method.
8505 (tui_win_info::refresh, tui_source_window_base::refresh)
8506 (tui_refresh_all): Use refresh_window method.
8507 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
8508 method.
8509 * tui/tui-regs.c (tui_display_register): Call refresh_window
8510 method.
8511 * tui/tui-layout.c (show_source_disasm_command)
8512 (show_source_or_disasm_and_command): Call refresh_window method.
8513 * tui/tui-data.h (struct tui_gen_win_info)
8514 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
8515 New method.
8516
cb2ce893
TT
85172019-06-25 Tom Tromey <tom@tromey.com>
8518
8519 * tui/tui.c (tui_rl_other_window, tui_enable)
8520 (tui_is_window_visible, tui_get_command_dimension): Update.
8521 * tui/tui-winsource.c (tui_update_source_window_as_is)
8522 (tui_clear_source_content, tui_erase_source_content)
8523 (tui_show_source_line, tui_source_window_base::refill)
8524 (tui_source_window_base::do_scroll_horizontal)
8525 (tui_source_window_base::set_is_exec_point_at)
8526 (tui_update_breakpoint_info, tui_set_exec_info_content)
8527 (tui_alloc_source_buffer, tui_line_is_displayed)
8528 (tui_addr_is_displayed): Update.
8529 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
8530 (tui_check_and_display_highlight_if_needed)
8531 (tui_win_info::make_visible, tui_win_info::refresh)
8532 (tui_refresh_all): Update.
8533 * tui/tui-windata.c (tui_first_data_item_displayed)
8534 (tui_delete_data_content_windows, tui_erase_data_content)
8535 (tui_display_all_data, tui_data_window::refresh_all)
8536 (tui_check_data_values): Update.
8537 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
8538 (tui_set_win_focus_to, tui_win_info::forward_scroll)
8539 (tui_win_info::backward_scroll, tui_refresh_all_win)
8540 (tui_resize_all, tui_set_focus, tui_all_windows_info)
8541 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
8542 (tui_source_window_base::set_new_height)
8543 (tui_data_window::set_new_height)
8544 (make_invisible_and_set_new_height)
8545 (make_visible_with_new_height, new_height_ok)
8546 (parse_scrolling_args): Update.
8547 * tui/tui-stack.c (tui_show_frame_info): Update.
8548 * tui/tui-source.c (tui_set_source_content)
8549 (tui_set_source_content_nil, tui_source_is_displayed)
8550 (tui_source_window::do_scroll_vertical): Update.
8551 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
8552 (tui_display_registers_from, tui_display_reg_element_at_line)
8553 (tui_check_register_values, tui_reg_command): Update.
8554 * tui/tui-layout.c (tui_default_win_height)
8555 (show_source_disasm_command, show_data, init_and_make_win)
8556 (show_source_or_disasm_and_command): Update.
8557 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
8558 (tui_redisplay_readline, tui_mld_flush)
8559 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
8560 (tui_getc): Update.
8561 * tui/tui-disasm.c (tui_set_disassem_content)
8562 (tui_disasm_window::do_scroll_vertical): Update.
8563 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
8564 Now virtual.
8565 (struct tui_win_info): Derive from tui_gen_win_info.
8566 <~tui_win_info>: Mark as override.
8567 <generic>: Remove member.
8568 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
8569 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
8570 (~tui_data_window, ~tui_win_info)
8571 (tui_free_all_source_wins_content): Update.
8572 * tui/tui-command.c (tui_refresh_cmd_win): Update.
8573
ab313b35
TT
85742019-06-25 Tom Tromey <tom@tromey.com>
8575
8576 * tui/tui-layout.c (init_and_make_win): Use new.
8577 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
8578 destructor, initializers.
8579 (tui_alloc_generic_win_info): Don't declare.
8580 * tui/tui-data.c (_locator): Add argument to constructor.
8581 (source_win, disasm_win): New globals.
8582 (exec_info): Remove.
8583 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
8584 Update.
8585 (tui_alloc_generic_win_info): Remove.
8586 (init_content_element): Use new.
8587 (tui_win_info::tui_win_info): Update.
8588 (free_content_elements) <case DATA_WIN>: Use delete.
8589
dc2c33e4
TT
85902019-06-25 Tom Tromey <tom@tromey.com>
8591
8592 * tui/tui-wingeneral.c (tui_refresh_win): Update.
8593 * tui/tui-windata.c (tui_first_data_item_displayed)
8594 (tui_delete_data_content_windows): Update.
8595 * tui/tui-win.c (tui_data_window::set_new_height): Update.
8596 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
8597 (tui_display_registers_from, tui_check_register_values): Update.
8598 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
8599 pointer.
8600 * tui/tui-data.c (init_content_element): Update. Allocate the new
8601 window.
8602 (tui_free_data_content): Update.
8603 (free_content_elements) <case DATA_WIN>: Free the window.
8604
214a5cbe
TT
86052019-06-25 Tom Tromey <tom@tromey.com>
8606
8607 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
8608 Update.
8609 * tui/tui-layout.c (make_command_window)
8610 (show_source_disasm_command, show_data, init_and_make_win)
8611 (show_source_or_disasm_and_command): Update.
8612 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
8613 method.
8614 <can_highight, is_highlighted>: Now bool.
8615 (tui_set_win_highlight): Don't declare.
8616 * tui/tui-data.c (tui_set_win_highlight): Remove.
8617
8e2daf15
TT
86182019-06-25 Tom Tromey <tom@tromey.com>
8619
8620 * tui/tui-wingeneral.c (make_visible): Remove check of window
8621 type.
8622
8903bd8a
TT
86232019-06-25 Tom Tromey <tom@tromey.com>
8624
8625 * tui/tui-win.c (tui_win_info::max_height)
8626 (tui_cmd_window::max_height): New methods.
8627 (new_height_ok): Call max_height.
8628 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
8629 <max_height>: New method.
8630
3f02ce1e
TT
86312019-06-25 Tom Tromey <tom@tromey.com>
8632
8633 * tui/tui-win.c (tui_source_window_base::set_new_height)
8634 (tui_data_window::set_new_height): New methods.
8635 (make_invisible_and_set_new_height): Call set_new_height method.
8636 * tui/tui-data.h (struct tui_win_info)
8637 (struct tui_source_window_base, struct tui_data_window)
8638 <set_new_height>: New method.
8639
1825f487
TT
86402019-06-25 Tom Tromey <tom@tromey.com>
8641
8642 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
8643 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
8644 tui_refresh_data_win.
8645 * tui/tui-win.c (tui_source_window_base::refresh_all): New
8646 method.
8647 (tui_refresh_all_win): Call the refresh_all method.
8648 (tui_set_focus): Likewise.
8649 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
8650 (struct tui_source_window_base, struct tui_data_window) <refresh>:
8651 Likewise.
8652
ad54d15b
TT
86532019-06-25 Tom Tromey <tom@tromey.com>
8654
8655 * tui/tui-winsource.h (tui_refill_source_window)
8656 (tui_set_is_exec_point_at): Don't declare.
8657 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
8658 (tui_source_window_base::refill): Rename from
8659 tui_refill_source_window.
8660 (tui_source_window_base::do_scroll_horizontal): Update.
8661 (tui_source_window_base::set_is_exec_point_at): Rename from
8662 tui_set_is_exec_point_at.
8663 (tui_update_all_breakpoint_info): Update.
8664 * tui/tui-stack.c (tui_show_frame_info): Update.
8665 * tui/tui-layout.c (show_data): Add cast.
8666 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
8667 * tui/tui-data.h (struct tui_source_window_base) <refill,
8668 set_is_exec_point_at>: New methods.
8669 (tui_source_windows, tui_add_to_source_windows): Update types.
8670 (tui_add_to_source_windows): Remove redundant declaration.
8671 * tui/tui-data.c (source_windows): Store tui_source_window_base.
8672 (tui_source_windows): Change return type.
8673 (tui_clear_source_windows_detail): Update.
8674 (tui_add_to_source_windows): Change type of parameter.
8675 (tui_free_all_source_wins_content): Update.
8676
2042b506
TT
86772019-06-25 Tom Tromey <tom@tromey.com>
8678
8679 * tui/tui-wingeneral.c (tui_win_info::refresh)
8680 (tui_source_window_base::refresh): New methods.
8681 (tui_refresh_all): Call the refresh method.
8682 * tui/tui-data.h (struct tui_win_info)
8683 (struct tui_source_window_base) <refresh>: New method.
8684
56122977
TT
86852019-06-25 Tom Tromey <tom@tromey.com>
8686
8687 * tui/tui.h (tui_is_window_visible): Return bool.
8688 * tui/tui.c (tui_is_window_visible): Return bool.
8689 * tui/tui-wingeneral.c (tui_make_window, make_visible)
8690 (tui_make_visible, tui_make_invisible)
8691 (tui_win_info::make_visible)
8692 (tui_source_window_base::make_visible, make_all_visible)
8693 (tui_make_all_visible, tui_make_all_invisible): Update.
8694 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
8695 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
8696 bool.
8697 (struct tui_win_info, struct tui_source_window_base)
8698 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
8699 * tui/tui-data.c (tui_init_generic_part): Update.
8700
cda37efb
TT
87012019-06-25 Tom Tromey <tom@tromey.com>
8702
8703 * tui/tui-wingeneral.c (tui_win_info::make_visible)
8704 (tui_source_window_base::make_visible): New methods.
8705 (make_all_visible): Make method call.
8706 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
8707 (struct tui_source_window_base, struct tui_cmd_window): Override
8708 make_visible.
8709 (tui_win_is_source_type): Don't declare.
8710 * tui/tui-data.c (tui_win_is_source_type): Remove.
8711
6a0ee02c
TT
87122019-06-25 Tom Tromey <tom@tromey.com>
8713
8714 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
8715 NULL check.
8716
63901aec
TT
87172019-06-25 Tom Tromey <tom@tromey.com>
8718
8719 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
8720 Inline constructor. Add initializers for members.
8721 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
8722 constructors; now inline in class.
8723
ceb13a13
TT
87242019-06-25 Tom Tromey <tom@tromey.com>
8725
8726 * tui/tui-regs.c (tui_show_registers): Update.
8727 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
8728 bool.
8729 * tui/tui-data.c (tui_data_window::clear_detail)
8730 (tui_data_window): Update.
8731
238eb706
TT
87322019-06-25 Tom Tromey <tom@tromey.com>
8733
8734 * tui/tui-windata.c (tui_display_all_data)
8735 (tui_display_data_from_line, tui_display_data_from)
8736 (tui_check_data_values, tui_data_window::do_scroll_vertical):
8737 Update.
8738 * tui/tui-regs.c (tui_last_regs_line_no)
8739 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
8740 (tui_show_registers, tui_show_register_group)
8741 (tui_display_registers_from, tui_display_reg_element_at_line)
8742 (tui_display_registers_from_line, tui_check_register_values)
8743 (tui_reg_next, tui_reg_prev): Update.
8744 * tui/tui-layout.c (tui_set_layout, show_data): Update.
8745 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
8746 tui_data_window.
8747 (struct tui_win_info) <detail>: Remove. Add new fields from
8748 tui_data_info.
8749 (TUI_DATA_WIN): Add cast.
8750 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
8751 (~tui_data_window): Simplify.
8752
81491aa0
TT
87532019-06-25 Tom Tromey <tom@tromey.com>
8754
8755 * tui/tui-layout.c (show_source_disasm_command)
8756 (show_source_or_disasm_and_command): Update.
8757 * tui/tui-io.c (update_cmdwin_start_line)
8758 (tui_redisplay_readline): Update.
8759 * tui/tui-data.h (struct tui_command_info): Remove.
8760 (struct tui_win_info) <detail>: Remove command_info member.
8761 (struct tui_data_window) <start_line>: New member, from
8762 tui_command_info.
8763 (TUI_CMD_WIN): Add casts.
8764
e6e41501
TT
87652019-06-25 Tom Tromey <tom@tromey.com>
8766
8767 * tui/tui-winsource.c (tui_update_source_window)
8768 (tui_refill_source_window)
8769 (tui_source_window_base::do_scroll_horizontal)
8770 (tui_update_breakpoint_info, tui_set_exec_info_content)
8771 (tui_show_exec_info_content, tui_erase_exec_info_content)
8772 (tui_clear_exec_info_content): Update.
8773 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
8774 Update.
8775 * tui/tui-win.c (make_invisible_and_set_new_height)
8776 (make_visible_with_new_height): Update.
8777 * tui/tui-source.c (tui_set_source_content)
8778 (tui_show_symtab_source): Update.
8779 * tui/tui-layout.c (extract_display_start_addr)
8780 (show_source_disasm_command, show_data)
8781 (make_source_or_disasm_window)
8782 (show_source_or_disasm_and_command): Update.
8783 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
8784 (tui_disasm_window::do_scroll_vertical): Remove shadowing
8785 "gdbarch".
8786 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
8787 to tui_source_window_base.
8788 (struct tui_win_info) <detail>: Remove source_info member.
8789 (struct tui_source_window_base) <has_locator>: Inline.
8790 Move contents from tui_source_info; rename has_locator member to
8791 m_has_locator.
8792 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
8793 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
8794 header file.
8795 (tui_source_window_base::clear_detail, ~tui_source_window_base):
8796 Simplify.
8797 (tui_free_all_source_wins_content): Cast to
8798 tui_source_window_base.
8799
44f0e208
TT
88002019-06-25 Tom Tromey <tom@tromey.com>
8801
8802 * tui/tui-win.c (make_invisible_and_set_new_height)
8803 (make_visible_with_new_height): Call has_locator method.
8804 * tui/tui-layout.c (show_source_disasm_command, show_data)
8805 (show_source_or_disasm_and_command): Update for bool change.
8806 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
8807 (tui_win_info) <has_locator>: New method.
8808 (struct tui_source_window_base) <has_locator>: New method.
8809 (tui_win_has_locator): Don't declare.
8810 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
8811 from tui_win_has_locator.
8812 (tui_source_window_base): Use false, not FALSE.
8813
7778b912
TT
88142019-06-25 Tom Tromey <tom@tromey.com>
8815
8816 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
8817 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
8818 clear_detail method directly.
8819 (tui_clear_win_detail): Remove.
8820
f83d391c
TT
88212019-06-25 Tom Tromey <tom@tromey.com>
8822
8823 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
8824 "this", not TUI_DISASM_WIN.
8825
13446e05
TT
88262019-06-25 Tom Tromey <tom@tromey.com>
8827
8828 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
8829 declare.
8830 * tui/tui-winsource.c
8831 (tui_source_window_base::do_scroll_horizontal): Rename from
8832 tui_horizontal_source_scroll.
8833 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
8834 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
8835 from tui_vertical_data_scroll.
8836 * tui/tui-win.h (tui_scroll): Don't declare.
8837 * tui/tui-win.c (tui_win_info::forward_scroll)
8838 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
8839 (tui_win_info::right_scroll): Rename and update.
8840 (tui_scroll_forward_command, tui_scroll_backward_command)
8841 (tui_scroll_left_command, tui_scroll_right_command): Update.
8842 (tui_scroll): Remove.
8843 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
8844 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
8845 from tui_vertical_source_scroll.
8846 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
8847 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
8848 from tui_vertical_disassem_scroll.
8849 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
8850 do_scroll_horizontal>: New methods.
8851 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
8852 Likewise.
8853 (struct tui_source_window_base): Add do_scroll_horizontal.
8854 (struct tui_source_window, struct tui_disasm_window): Add
8855 do_scroll_vertical.
8856 (struct tui_data_window, struct tui_cmd_window): Add
8857 do_scroll_horizontal and do_scroll_vertical.
8858 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
8859
5cf82909
TT
88602019-06-25 Tom Tromey <tom@tromey.com>
8861
8862 * tui/tui-data.h (struct tui_source_window_base): New struct.
8863 (struct tui_source_window): Derive from tui_source_window_base.
8864 (struct tui_disasm_window): New struct.
8865 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
8866 from tui_source_window::clear_detail.
8867 (tui_source_window_base): Rename from tui_source_window.
8868 (~tui_source_window_base): Rename from ~tui_source_window.
8869 (tui_alloc_win_info): Create a tui_disasm_window.
8870
ee1d42d6
TT
88712019-06-25 Tom Tromey <tom@tromey.com>
8872
8873 * tui/tui-data.h (struct tui_source_window)
8874 (struct tui_data_window): Declare destructors.
8875 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
8876 destructors.
8877 (tui_win_info): Simplify.
8878
b4eb2452
TT
88792019-06-25 Tom Tromey <tom@tromey.com>
8880
8881 * tui/tui-winsource.c (tui_display_main)
8882 (tui_update_source_windows_with_addr)
8883 (tui_update_all_breakpoint_info): Update.
8884 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
8885 (new_height_ok, parse_scrolling_args): Update.
8886 * tui/tui-stack.c (tui_show_frame_info): Update.
8887 * tui/tui-data.h (struct tui_list): Remove.
8888 (tui_source_windows): Return a reference to a std::vector.
8889 * tui/tui-data.c (source_windows): Now a std::vector.
8890 (tui_source_windows): Change return type.
8891 (tui_clear_source_windows): Rewrite.
8892 (tui_clear_source_windows_detail, tui_add_to_source_windows)
8893 (tui_free_all_source_wins_content): Rewrite.
8894
8761a91b
TT
88952019-06-25 Tom Tromey <tom@tromey.com>
8896
8897 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
8898 (struct tui_data_window, struct tui_cmd_window): Declare
8899 clear_detail method.
8900 * tui/tui-data.c (tui_source_window::clear_detail)
8901 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
8902 methods.
8903 (tui_clear_win_detail): Simplify.
8904
0ed69eda
TT
89052019-06-25 Tom Tromey <tom@tromey.com>
8906
8907 * tui/tui-layout.c (make_source_window, make_disasm_window)
8908 (make_source_or_disasm_window): Remove win_info_ptr parameter.
8909 Return the new window.
8910 (show_source_disasm_command, show_data)
8911 (show_source_or_disasm_and_command): Update.
8912
82432e10
TT
89132019-06-25 Tom Tromey <tom@tromey.com>
8914
8915 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
8916 parameter. Return the new window.
8917 (show_source_disasm_command): Update and remove NULL check.
8918 (show_source_or_disasm_and_command): Update.
8919
ec328aa5
TT
89202019-06-25 Tom Tromey <tom@tromey.com>
8921
8922 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
8923
33b906ab
TT
89242019-06-25 Tom Tromey <tom@tromey.com>
8925
8926 * tui/tui-data.h (struct tui_win_info): Make constructor
8927 protected. Make destructor virtual. Add initializers.
8928 (tui_source_window, tui_data_window, tui_cmd_window): New
8929 classes.
8930 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
8931 constructor. Add "type" parameter.
8932 (tui_source_window, tui_data_window, tui_cmd_window): New
8933 constructors.
8934 (tui_alloc_win_info): Instantiate the appropriate subclass.
8935
e7e11af4
TT
89362019-06-25 Tom Tromey <tom@tromey.com>
8937
8938 * tui/tui-win.c (tui_resize_all): Use delete.
8939 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
8940 destructor.
8941 (tui_free_window): Don't declare.
8942 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
8943 Update.
8944
6792b55e
TT
89452019-06-25 Tom Tromey <tom@tromey.com>
8946
8947 * tui/tui-data.h (struct tui_win_info): Add constructor.
8948 * tui/tui-data.c (tui_alloc_win_info): Use new.
8949 (tui_free_window): Use delete.
8950
f95675e1
TT
89512019-06-22 Tom Tromey <tom@tromey.com>
8952
8953 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
8954 declare.
8955 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
8956
5bff081c
TT
89572019-06-22 Tom Tromey <tom@tromey.com>
8958
8959 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
8960 declare.
8961 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
8962
47e3f474
TV
89632019-06-22 Tom de Vries <tdevries@suse.de>
8964
8965 * dwarf2read.c (create_addrmap_from_aranges)
8966 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
8967 instead of '%zu'.
8968
fd5866f6
SM
89692019-06-21 Simon Marchi <simon.marchi@efficios.com>
8970
8971 * dwarf2read.h (dwarf2_section_info_def): Remove.
8972 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
8973 * dwarf2read.c (struct dwo_sections) <types>: Change type to
8974 std::vector<dwarf2_section_info>.
8975 (struct dwo_file) <~dwo_file>: Remove.
8976 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
8977 types field.
8978 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
8979 (dwarf2_read_debug_names): Likewise.
8980 (create_debug_types_hash_table): Change parameter type to
8981 array_view, adjust code accordingly.
8982 (dwarf2_locate_dwo_sections): Adjust to std::vector.
8983 (partial_die_info::fixup): Likewise.
8984 (determine_prefix): Likewise.
8985 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
8986
fb1eb2f9
SM
89872019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
8988
8989 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
8990 gdb_bfd_ref_ptr.
8991 <~dwo_file>: Remove call to gdb_bfd_unref.
8992 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
8993 gdb_bfd_ref_ptr::get.
8994
51ac9db5
SM
89952019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
8996
8997 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
8998 type to htab_up.
8999 * dwarf2read.c (struct dwo_file): Initialize fields.
9000 <~dwo_file>: New.
9001 (free_dwo_file): Remove, move content to ~dwo_file.
9002 (struct dwo_file_deleter): Remove.
9003 (dwo_file_up>: Remove custom deleter.
9004 (free_dwo_files): Remove.
9005 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
9006 dwo_files.
9007 (process_skeletonless_type_units): Call unique_ptr::get.
9008 (allocate_dwo_file_hash_table): Add deleter to created hash
9009 table. Change return type to htab_up.
9010 (lookup_dwo_file_slot): Don't memset dwo_file, call
9011 unique_ptr::get.
9012 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
9013 (create_dwo_unit_in_dwp_v2): Likewise.
9014 (open_and_init_dwo_file): Likewise.
9015 (free_dwo_file_from_slot): Remove.
9016
dc4ccb6f
SM
90172019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
9018
9019 * dwarf2read.h (struct dwarf2_section_info) <readin,
9020 is_virtual>: Change type to bool.
9021 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
9022 true instead of 1.
9023
e6a1c5cb
TT
90242019-06-19 Tom Tromey <tom@tromey.com>
9025
9026 * tui/tui-data.h (tui_init_content_element): Don't declare.
9027
6f6ffbeb
TT
90282019-06-19 Tom Tromey <tom@tromey.com>
9029
9030 * tui/tui-data.h (tui_init_win_info): Don't declare.
9031
f23f598e
TV
90322019-06-19 Tom de Vries <tdevries@suse.de>
9033
9034 * dwarf2read.h (abstract_to_concrete): Change type to
9035 std::unordered_map<sect_offset, std::vector<sect_offset>,
9036 gdb::hash_enum<sect_offset>>.
9037
680e1bee
TT
90382019-06-19 Tom Tromey <tromey@adacore.com>
9039
9040 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
9041 EVAL_AVOID_SIDE_EFFECTS specially.
9042
dcf37923
TT
90432019-06-19 Tom Tromey <tromey@adacore.com>
9044
9045 * source-cache.c (highlighter): New global.
9046 (source_cache::get_source_lines): Create a highlighter on demand.
9047
494986d5
AB
90482019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
9049
9050 * defs.h (deprecated_interactive_hook): Delete declaration.
9051 * interps.c (clear_interpreter_hooks): Remove use of
9052 deprecated_interactive_hook.
9053 * top.c (deprecated_interactive_hook): Delete definition.
9054 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
9055
3360b6e7
TV
90562019-06-18 Tom de Vries <tdevries@suse.de>
9057
9058 PR gdb/24515
9059 * dwarf2read.h (abstract_to_concrete): Change type from
9060 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
9061 std::unordered_map<sect_offset, std::vector<sect_offset>>.
9062 * dwarf2read.c (read_variable): Update.
9063 (dwarf2_fetch_die_loc_sect_off): Update.
9064
310b3441
TV
90652019-06-17 Tom de Vries <tdevries@suse.de>
9066
9067 PR gdb/24617
9068 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
9069 accessing parent[parent_len - 1].
9070
ba9777be
PP
90712019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
9072
9073 PR gdb/24364
9074 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
9075 call dtrace_process_dof with NULL dof.
9076
2b9f6e89
TV
90772019-06-16 Tom de Vries <tdevries@suse.de>
9078
9079 PR gdb/24445
9080 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
9081
431b3ead
TT
90822019-06-16 Tom Tromey <tom@tromey.com>
9083
9084 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
9085 (make_all_visible): Use address of member.
9086
d04b44a1
TT
90872019-06-16 Tom Tromey <tom@tromey.com>
9088
9089 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
9090 (tui_free_window, free_content, free_content_elements): Remove
9091 unnecessary cast.
9092 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
9093 cast.
9094 * tui/tui-regs.c (tui_show_register_group)
9095 (tui_display_registers_from, tui_display_reg_element_at_line):
9096 Remove unnecessary cast.
9097
bf5142e7
AB
90982019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
9099
9100 * linux-nat.c (normal_mask): Delete.
9101 (_initialize_linux_nat): Don't initialise normal_mask.
9102
c4973306
SM
91032019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
9104
9105 PR gdb/24445
9106 * dwarf-index-write.h (write_psymtabs_to_index): Add
9107 dwz_basename parameter.
9108 * dwarf-index-write.c (write_gdbindex): Move file writing to
9109 write_gdbindex_1. Change return type void.
9110 (assert_file_size): Move up, remove filename parameter.
9111 (write_gdbindex_1): New function.
9112 (write_debug_names): Change return type to void, call
9113 assert_file_size.
9114 (struct index_wip_file): New struct.
9115 (write_psymtabs_to_index): Add dwz_basename parameter. Move
9116 file logic to index_wip_file. Write index for dwz file if
9117 needed.
9118 (save_gdb_index_command): Pass basename of dwz file, if present.
9119 * dwarf-index-cache.c (index_cache::store): Obtain and pass
9120 build-id of dwz file, if present.
9121 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
9122 (dwarf2_get_dwz_file): Likewise.
9123 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
9124 (dwarf2_get_dwz_file): Likewise.
9125
395f9c91
TT
91262019-06-16 Tom Tromey <tom@tromey.com>
9127
9128 * coffread.c (process_coff_symbol): Use xstrdup.
9129 * value.c (create_internalvar): Use xstrdup.
9130
cafb3438
TT
91312019-06-16 Tom Tromey <tom@tromey.com>
9132
9133 * valops.c (value_cast, value_slice): Remove unnecessary cast.
9134 * breakpoint.c (stopin_command, stopat_command)
9135 (until_break_command, decode_location_default): Remove unnecessary
9136 cast.
9137 * utils.c (subset_compare): Remove unnecessary cast.
9138 * ada-lang.c (ada_update_initial_language): Remove unnecessary
9139 cast.
9140 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
9141 cast.
9142 * infcmd.c (path_command): Remove unnecessary cast.
9143 * coffread.c (decode_type): Remove unnecessary cast.
9144 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
9145 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
9146 * tui/tui-stack.c (tui_show_locator_content)
9147 (tui_show_frame_info): Remove unnecessary cast.
9148 * tui/tui-win.c (tui_scroll_forward_command)
9149 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
9150 (parse_scrolling_args): Remove unnecessary cast.
9151 * tui/tui-data.c (init_win_info, tui_del_window)
9152 (tui_free_window, tui_del_data_windows, tui_free_data_content)
9153 (free_content_elements): Remove unnecessary cast.
9154 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
9155 unnecessary cast.
9156 * tui/tui-source.c (tui_set_source_content)
9157 (tui_vertical_source_scroll): Remove unnecessary cast.
9158 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
9159 cast.
9160 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
9161 * tui/tui-regs.c (tui_display_registers_from)
9162 (tui_display_register): Remove unnecessary cast.
9163 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
9164 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
9165 (make_visible): Remove unnecessary cast.
9166 * tui/tui-winsource.c (tui_erase_source_content)
9167 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
9168 unnecessary cast.
9169 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
9170 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
9171 * stabsread.c (read_type, read_array_type, read_range_type):
9172 Remove unnecessary cast.
9173 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
9174 (parse_symbol, parse_type, upgrade_type, parse_external)
9175 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
9176 unnecessary cast.
9177 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
9178
730ead81
TT
91792019-06-16 Tom Tromey <tom@tromey.com>
9180
9181 * tui/tui-data.c (tui_alloc_generic_win_info)
9182 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
9183 checks.
9184
584a927c
AB
91852019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
9186 Andrew Burgess <andrew.burgess@embecosm.com>
9187
9188 * f-typeprint.c (f_print_type): Don't return early for not
9189 associated or not allocated types.
9190 (f_type_print_varspec_suffix): Add print_rank parameter and print
9191 ranks of array types in case they dangling.
9192 (f_type_print_base): Add print_rank parameter.
9193
30056ea0
AB
91942019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
9195
9196 * NEWS: Mention new MI commands.
9197 * break-catch-throw.c (enum exception_event_kind): Move to
9198 breakpoint.h.
9199 (print_mention_exception_catchpoint): Output text as a single
9200 message.
9201 (catch_exception_command_1): Rename to...
9202 (catch_exception_event): ...this, make non-static, update header
9203 command, and change some parameter types.
9204 (catch_catch_command): Update for changes to
9205 catch_exception_command_1.
9206 (catch_throw_command): Likewise.
9207 (catch_rethrow_command): Likewise.
9208 * breakpoint.c (enum exception_event_kind): Delete.
9209 * breakpoint.h (enum exception_event_kind): Moved here from
9210 break-catch-throw.c.
9211 (catch_exception_event): Declare.
9212 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
9213 (mi_cmd_catch_throw): New function.
9214 (mi_cmd_catch_rethrow): New function.
9215 (mi_cmd_catch_catch): New function.
9216 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
9217 'catch-catch' entries.
9218 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
9219 (mi_cmd_catch_rethrow): Declare.
9220 (mi_cmd_catch_catch): Declare.
9221
ec8e2b6d
AB
92222019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
9223
9224 * annotate.c (annotate_source_line): Change return type to void,
9225 update implementation to match.
9226 * annotate.h (annotate_source_line): Change return type to void,
9227 update header comment.
9228 * stack.c (print_frame_info): Don't change what frame information
9229 is printed based on whether annotations are on or not.
9230
0d3abd8c
AB
92312019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
9232
9233 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
9234 (annotate_source): Make static.
9235 (annotate_source_line): Moved from source.c and renamed from
9236 identify_source_line. Update the return type.
9237 * annotate.h (annotate_source): Delete declaration.
9238 (annotate_source_line): Declaration moved from source.h, and
9239 renamed from identify_source_line. Return type updated.
9240 * source.c (identify_source_line): Moved to annotate.c and renamed
9241 to annotate_source_line.
9242 (info_line_command): Remove check of annotation_level.
9243 * source.h (identify_source_line): Move declaration to annotate.h
9244 and rename to annotate_source_line.
9245 * stack.c: Add 'annotate.h' include.
9246 (print_frame_info): Remove check of annotation_level before
9247 calling annotate_source_line.
9248
00df30ae
AB
92492019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
9250
9251 * source-cache.c (source_cache::get_plain_source_lines): Use
9252 open_source_file_with_line_charpos instead of just
9253 open_source_file, remove call to find_source_lines.
9254 (source_cache::get_source_lines): Likewise.
9255 * source.c (find_source_lines): Make static.
9256 (get_filename_and_charpos): Renamed into...
9257 (open_source_file_with_line_charpos): ..this along with changes to
9258 return a scoped_fd, and some other minor clean ups.
9259 (identify_source_line): Use open_source_file_with_line_charpos.
9260 (search_command_helper): Use open_source_file_with_line_charpos
9261 instead of just open_source_file, remove call to
9262 find_source_lines.
9263 * source.h (open_source_file_with_line_charpos): Declare new
9264 function.
9265 (find_source_lines): Delete declaration.
9266
afda45a2
AB
92672019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
9268
9269 * source.c (get_filename_and_charpos): Remove fullname
9270 parameter.
9271 (identify_source_line): Update call to get_filename_and_charpos.
9272
0735b091
TT
92732019-06-14 Tom Tromey <tromey@adacore.com>
9274
9275 PR gdb/24502:
9276 * ui-style.h (skip_ansi_escape): Update comment.
9277 * ui-file.h (class no_terminal_escape_file): New class.
9278 * ui-file.c (no_terminal_escape_file::write)
9279 (no_terminal_escape_file::puts): New methods.
9280 * cli/cli-logging.c (handle_redirections): Use
9281 no_terminal_escape_file.
9282
52ce35e2
TT
92832019-06-14 Tom Tromey <tromey@adacore.com>
9284
9285 * NEWS: Move convenience variable news above Python news.
9286
73cc7272
TT
92872019-06-14 Tom Tromey <tom@tromey.com>
9288
9289 * gnulib: Move directory to top-level.
9290 * configure.ac: Don't configure gnulib.
9291 * configure: Rebuild.
9292 * common/common-defs.h: Use new path to gnulib.
9293 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
9294 (GNULIB_H): Remove.
9295 (INCGNU): Look in new gnulib location.
9296 (HFILES_NO_SRCDIR): Remove gnulib files.
9297 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
9298 (generated_files): Remove GNULIB_H.
9299 ($(LIBGNU), all-lib): Remove targets.
9300 (distclean): Don't mention GNULIB_BUILDDIR.
9301 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
9302
f5686554
TT
93032019-06-14 Tom Tromey <tromey@adacore.com>
9304
9305 * symfile.c (add_symbol_file_command): Remove obsolete comment.
9306 Warn if symbol file does not provide any symbols.
9307
a0c1ffed
TT
93082019-06-14 Tom Tromey <tromey@adacore.com>
9309
9310 * source.c (find_and_open_source): Respect basenames_may_differ.
9311
7c39e397
AB
93122019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
9313
9314 * annotate.c (annotate_breakpoints_invalid): Make use of
9315 scoped_restore_terminal_state.
9316 (annotate_frames_invalid): Likewise.
9317
f411722c
TT
93182019-06-14 Tom Tromey <tromey@adacore.com>
9319
9320 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
9321 allow assignment to an internalvar.
9322
4268ec18
TT
93232019-06-14 Tom Tromey <tromey@adacore.com>
9324
9325 * ada-lex.l: Allow "_" in attribute names.
9326
abdb711e
TT
93272019-06-14 Tom Tromey <tromey@adacore.com>
9328
9329 PR gdb/24653:
9330 * regcache.c (registers_changed): Don't call alloca.
9331 * top.c (execute_command): Don't call alloca.
9332
4c048731
PA
93332019-06-13 Pedro Alves <palves@redhat.com>
9334
9335 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
9336 'expression'. When parsing an expression, error out if there's
9337 junk after "unlimited".
9338 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
9339 (do_set_command): Adjust calls to is_unlimited_literal.
9340
66eb1ed3
PA
93412019-06-13 Pedro Alves <palves@redhat.com>
9342
9343 * compile/compile.c (make_compile_options_def_group): Add braces
9344 around array_view initializer.
9345 * thread.c (make_thread_apply_all_options_def_group)
9346 (make_thread_apply_all_options_def_group): Likewise.
9347
3345721a
PA
93482019-06-13 Pedro Alves <palves@redhat.com>
9349
9350 * NEWS (New commands): Mention "maint test-options
9351 require-delimiter", "maint test-options unknown-is-error", "maint
9352 test-options unknown-is-operand" and "maint show
9353 test-options-completion-result".
9354 (New command options, command completion): New section.
9355 (Completion improvements): New section.
9356 Mention that you can abbreviate "unlimited".
9357
6206060d
PA
93582019-06-13 Pedro Alves <palves@redhat.com>
9359
9360 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
9361 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
9362 * unittests/cli-utils-selftests.c (test_parse_flags)
9363 (test_parse_flags_qcs): Delete.
9364 (test_cli_utils): Don't call deleted functions.
9365
6665660a
PA
93662019-06-13 Pedro Alves <palves@redhat.com>
9367
9368 * thread.c: Include "cli/cli-option.h".
9369 (tp_array_compar_ascending): Global.
9370 (tp_array_compar): Delete function.
9371 (tp_array_compar_ascending, tp_array_compar_descending): New
9372 functions.
9373 (ascending_option_def, qcs_flag_option_def)
9374 (thr_qcs_flags_option_defs)
9375 (make_thread_apply_all_options_def_group)
9376 (make_thread_apply_options_def_group): New.
9377 (thread_apply_all_command): Use gdb::option::process_options.
9378 (thread_apply_command_completer)
9379 (thread_apply_all_command_completer): New.
9380 (thread_apply_command): Use gdb::option::process_options.
9381 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
9382 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
9383 to generate help text of "thread apply". Adjust "taas"'s help.
9384 * tid-parse.c (tid_range_parser::in_thread_range): New method.
9385 * tid-parse.h (tid_range_parser::in_thread_range): New method.
9386
f7e13587
PA
93872019-06-13 Pedro Alves <palves@redhat.com>
9388
9389 * thread.c (thread_apply_command): Check for invalid TID with
9390 isdigit instead of !isalpha.
9391
5d707134
PA
93922019-06-13 Pedro Alves <palves@redhat.com>
9393
9394 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
9395 (validate_flags_qcs): New.
9396 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
9397 (validate_flags_qcs): Declare.
9398 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
9399 (make_frame_apply_options_def_group): New.
9400 (frame_apply_command_count): Process options with
9401 gdb::option::process_options.
9402 (frame_apply_completer): New.
9403 (frame_apply_level_completer, frame_apply_all_completer)
9404 (frame_apply_completer): New.
9405 (_initialize_stack): Update help of "frame apply", "frame apply
9406 level", "frame apply all" and "faas" to mention supported options
9407 and install command completers.
9408 * stack.h (frame_apply_all_completer): Declare.
9409 * thread.c: Include "stack.h".
9410 (tfaas_command): Add "--".
9411 (_initialize_thread): Update help "tfaas" to mention supported
9412 options and install command completer.
9413
272d4594
PA
94142019-06-13 Pedro Alves <palves@redhat.com>
9415
9416 * completer.c (complete_nested_command_line): New.
9417 (gdb_completion_word_break_characters_throw): Add assertion.
9418 * completer.h (complete_nested_command_line): Declare.
9419
90a1ef87
PA
94202019-06-13 Pedro Alves <palves@redhat.com>
9421
9422 * stack.c (parse_backtrace_qualifiers): New.
9423 (backtrace_command): Use it.
9424 (backtrace_command_completer): Complete on qualifiers.
9425
d4c16835
PA
94262019-06-13 Pedro Alves <palves@redhat.com>
9427
9428 * frame.c: Include "cli/cli-option.h.
9429 (user_set_backtrace_options): New.
9430 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
9431 Delete.
9432 (get_prev_frame): Adjust.
9433 (boolean_option_def, uinteger_option_def)
9434 (set_backtrace_option_defs): New.
9435 (_initialize_frame): Adjust and use
9436 gdb::option::add_setshow_cmds_for_options to install "set
9437 backtrace past-main" and "set backtrace past-entry".
9438 * frame.h: Include "cli/cli-option.h".
9439 (struct frame_print_options): Forward declare.
9440 (print_frame_arguments_all, print_frame_arguments_scalars)
9441 (print_frame_arguments_none): Declare.
9442 (print_entry_values): Delete declaration.
9443 (struct frame_print_options, user_frame_print_options): New.
9444 (struct set_backtrace_options): New.
9445 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
9446 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
9447 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
9448 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
9449 (list_args_or_locals): Add frame_print_options parameter.
9450 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
9451 * python/py-framefilter.c (enumerate_args): Pass down
9452 USER_FRAME_PRINT_OPTIONS.
9453 * stack.c: Include "cli/cli-option.h".
9454 (print_frame_arguments_all, print_frame_arguments_scalars)
9455 (print_frame_arguments_none): Declare.
9456 (print_raw_frame_arguments, print_entry_values): Delete.
9457 (user_frame_print_options): New.
9458 (boolean_option_def, enum_option_def, frame_print_option_defs):
9459 New.
9460 (struct backtrace_cmd_options): New.
9461 (bt_flag_option_def): New.
9462 (backtrace_command_option_defs): New.
9463 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
9464 (print_frame_arg, read_frame_arg, print_frame_args)
9465 (print_frame_info, print_frame): Add frame_print_options parameter
9466 and use it.
9467 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
9468 (backtrace_command_1): Add frame_print_options and
9469 backtrace_cmd_options parameters and use them.
9470 (make_backtrace_options_def_group): New.
9471 (backtrace_command): Process command options with
9472 gdb::option::process_options.
9473 (backtrace_command_completer): New.
9474 (_initialize_stack): Extend "backtrace"'s help to mention
9475 supported options. Install completer for "backtrace".
9476 Install some settings commands with add_setshow_cmds_for_options.
9477
2daf894e
PA
94782019-06-13 Pedro Alves <palves@redhat.com>
9479
9480 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
9481 and that "set/show print raw frame-arguments" are now deprecated.
9482
9483 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
9484 command.
9485 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
9486 * stack.c (_initialize_stack): Install "set/show print
9487 raw-frame-arguments", and deprecate "set/show print raw
9488 frame-arguments".
9489 * valprint.c (_initialize_valprint): Deprecate "set/show print
9490 raw".
9491
e6ed716c
PA
94922019-06-13 Pedro Alves <palves@redhat.com>
9493
9494 * compile/compile.c (struct compile_options): New.
9495 (compile_flag_option_def, compile_command_option_defs)
9496 (make_compile_options_def_group): New.
9497 (compile_file_command): Handle options with
9498 gdb::option::process_options.
9499 (compile_file_command_completer): New function.
9500 (compile_code_command): Handle options with
9501 gdb::option::process_options.
9502 (compile_code_command_completer): New function.
9503 (_initialize_compiler): Install completers for "compile code" and
9504 "compile file". Mention available options in "compile code" and
9505 "compile code"'s help.
9506 * completer.c (advance_to_completion_word): New, factored out from
9507 ...
9508 (advance_to_expression_complete_word_point): ... this.
9509 (advance_to_filename_complete_word_point): New.
9510 * completer.h (advance_to_filename_complete_word_point): New
9511 declaration.
9512
7d8062de
PA
95132019-06-13 Pedro Alves <palves@redhat.com>
9514
9515 * compile/compile.c: Include "cli/cli-option.h".
9516 (compile_print_value): Scope data pointer is now a
9517 value_print_options pointer; adjust.
9518 (compile_print_command): Process options. Scope data pointer is
9519 now a value_print_options pointer; adjust.
9520 (_initialize_compile): Update "compile print"'s help to include
9521 supported options. Install a completer for "compile print".
9522 * cp-valprint.c (show_vtblprint, show_objectprint)
9523 (show_static_field_print): Delete.
9524 (_initialize_cp_valprint): Don't install "set print
9525 static-members", "set print vtbl", "set print object" here.
9526 * printcmd.c: Include "cli/cli-option.h" and
9527 "common/gdb_optional.h".
9528 (print_command_parse_format): Rework to fill in a
9529 value_print_options instead of a format_data.
9530 (print_value): Change parameter type from format_data pointer to
9531 value_print_options reference. Adjust.
9532 (print_command_1): Process options. Adjust to pass down a
9533 value_print_options.
9534 (print_command_completer): New.
9535 (_initialize_printcmd): Install print_command_completer as
9536 handle_brkchars completer for the "print" command. Update
9537 "print"'s help to include supported options.
9538 * valprint.c: Include "cli/cli-option.h".
9539 (show_vtblprint, show_objectprint, show_static_field_print): Moved
9540 here from cp-valprint.c.
9541 (boolean_option_def, uinteger_option_def)
9542 (value_print_option_defs, make_value_print_options_def_group):
9543 New. Use gdb::option::add_setshow_cmds_for_options to install
9544 "set print elements", "set print null-stop", "set print repeats",
9545 "set print pretty", "set print union", "set print array", "set
9546 print address", "set print symbol", "set print array-indexes".
9547 * valprint.h: Include <string> and "cli/cli-option.h".
9548 (make_value_print_options_def_group): Declare.
9549 (print_value): Change parameter type from format_data pointer to
9550 value_print_options reference.
9551 (print_command_completer): Declare.
9552
9d0faba9
PA
95532019-06-13 Pedro Alves <palves@redhat.com>
9554
9555 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
9556 (COMMON_SFILES): Add maint-test-settings.c.
9557 * cli/cli-decode.c (boolean_enums): New global, factored out from
9558 ...
9559 (add_setshow_boolean_cmd): ... here.
9560 * cli/cli-decode.h (boolean_enums): Declare.
9561 * cli/cli-option.c: New file.
9562 * cli/cli-option.h: New file.
9563 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
9564 factored out from ...
9565 (parse_cli_boolean_value(const char *)): ... this.
9566 (is_unlimited_literal): Change parameter type to pointer to
9567 pointer. Adjust and advance ARG pointer.
9568 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
9569 (parse_cli_var_enum): New, factored out from ...
9570 (do_set_command): ... this. Adjust.
9571 * cli/cli-setshow.h (parse_cli_boolean_value)
9572 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
9573 (parse_cli_var_enum): Declare.
9574 * cli/cli-utils.c: Include "cli/cli-option.h".
9575 (get_ulongest): New.
9576 * cli/cli-utils.h (get_ulongest): Declare.
9577 (check_for_argument): New overloads.
9578 * maint-test-options.c: New file.
9579
2c722807
PA
95802019-06-13 Pedro Alves <palves@redhat.com>
9581
9582 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
9583 parse a range if "-" is at the end of the string.
9584
dee7b4c8
PA
95852019-06-13 Pedro Alves <palves@redhat.com>
9586
9587 * cli/cli-setshow.c (parse_auto_binary_operation)
9588 (parse_cli_boolean_value): Don't allow "o".
9589
dca0f6c0
PA
95902019-06-13 Pedro Alves <palves@redhat.com>
9591
9592 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
9593 * NEWS: Mention maint test-settings KIND.
9594 * maint-test-settings.c: New file.
9595
597bf39d
PA
95962019-06-13 Pedro Alves <palves@redhat.com>
9597
9598 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
9599 completer.
9600 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
9601 "set" completers.
9602
48c410fb
PA
96032019-06-13 Pedro Alves <palves@redhat.com>
9604
9605 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
9606 after item.
9607
93bcb043
PA
96082019-06-13 Pedro Alves <palves@redhat.com>
9609
9610 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
9611
cbba3ecd
PA
96122019-06-13 Pedro Alves <palves@redhat.com>
9613
9614 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
9615 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
9616 call.
9617 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
9618 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
9619 calls.
9620 (check_for_argument): Skip spaces after argument.
9621
b9a3f842
PA
96222019-06-13 Pedro Alves <palves@redhat.com>
9623
9624 * thread.c (thread_apply_command): Adjust TID parsing.
9625 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
9626 detected before end of string.
9627 (tid_is_in_list): Error out if LIST is invalid.
9628
3844e605
PA
96292019-06-13 Pedro Alves <palves@redhat.com>
9630
9631 * completer.c (complete_line_internal_1): Rewind completion word
9632 point.
9633 (completion_tracker::advance_custom_word_point_by): Change
9634 parameter type to int.
9635 * completer.h (completion_tracker::advance_custom_word_point_by):
9636 Likewise.
9637
00b56dbe
PA
96382019-06-13 Pedro Alves <palves@redhat.com>
9639
9640 * completer.c (advance_to_completion_word): Handle delimiters.
9641
d106773e
PA
96422019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
9643
9644 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
9645
08f10e02
TT
96462019-06-11 Tom Tromey <tom@tromey.com>
9647
9648 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
9649 (xmalloc_failed): Move to alloc.c.
9650 * alloc.c: New file.
9651 * Makefile.in (COMMON_SFILES): Add alloc.c.
9652
1c7fe951
TT
96532019-06-11 Tom Tromey <tom@tromey.com>
9654
9655 * nat/linux-waitpid.c: Don't include server.h.
9656 (linux_debug): Remove.
9657 (my_waitpid): Update.
9658
89549d7f
TT
96592019-06-11 Tom Tromey <tromey@adacore.com>
9660
9661 * infcall.c (_initialize_infcall): Remove trailing newline from
9662 help.
9663 * user-regs.c (_initialize_user_regs): Remove trailing newline
9664 from help.
9665 * typeprint.c (_initialize_typeprint): Remove trailing newline
9666 from help.
9667 * reverse.c (_initialize_reverse): Remove trailing newlines from
9668 help.
9669 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
9670 from help.
9671 * language.c (add_set_language_command): Remove trailing newline
9672 from help.
9673 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
9674 help.
9675 * disasm.c (_initialize_disasm): Remove trailing newline from
9676 help.
9677 * top.c (init_main): Remove trailing newline from help.
9678 * interps.c (_initialize_interpreter): Remove trailing newline
9679 from help.
9680 * btrace.c (_initialize_btrace): Remove trailing newlines from
9681 help.
9682 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
9683 from help.
9684 * python/python.c (_initialize_python): Remove trailing newline
9685 from help.
9686 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
9687 help.
9688 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
9689 from help. Reformat some text.
9690 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
9691 from help.
9692 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
9693 newline from help.
9694
86108c13
TT
96952019-06-11 Tom Tromey <tromey@adacore.com>
9696
9697 * darwin-nat.c (darwin_decode_exception_message)
9698 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
9699
a7067863
AB
97002019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
9701
9702 * valops.c (value_slice): Check for not allocated or not
9703 associated values.
9704
9ab08412
TV
97052019-06-10 Tom de Vries <tdevries@suse.de>
9706
9707 PR gdb/24618
9708 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
9709 sure an empty slot (defined by a 32-bit zero pair) is recognized as
9710 invalid.
9711
f19e22e9
TV
97122019-06-10 Tom de Vries <tdevries@suse.de>
9713
9714 PR gdb/24611
9715 * linespec.c (linespec_lexer_lex_string): Remove incorrect
9716 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
9717
e99f9db0
TV
97182019-06-10 Tom de Vries <tdevries@suse.de>
9719
9720 PR symtab/24545
9721 * symtab.c (struct demangled_name_entry): Add language field.
9722 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
9723 static minimal symbol". Set and use language field.
9724
9bf7038b
TT
97252019-06-10 Tom Tromey <tromey@adacore.com>
9726
9727 * ada-lang.c (_initialize_ada_language): Update help text.
9728
422186a9
TT
97292019-06-10 Tom Tromey <tromey@adacore.com>
9730
9731 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
9732 with a newline.
9733 * guile/guile.c (handle_boot_error): Don't end warning with a
9734 newline.
9735 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
9736 warning with a newline.
9737 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
9738 newline.
9739 (s12z_frame_cache): Likewise.
9740 * dwarf-index-cache.c (index_cache::store): Don't end warning with
9741 a newline.
9742 * solib-svr4.c (disable_probes_interface): Don't end warning with
9743 a newline.
9744 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
9745 newline.
9746 * python/python.c (do_finish_initialization): Don't end warning
9747 with a newline.
9748
25ce02ee
TT
97492019-06-10 Tom Tromey <tom@tromey.com>
9750
9751 * python/py-breakpoint.c (gdbpy_breakpoint_created)
9752 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
9753 gdbpy_enter.
9754
caa429d8
TT
97552019-06-10 Tom Tromey <tromey@adacore.com>
9756
9757 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
9758 data.
9759 (elf_new_init): Don't call stabsread_new_init.
9760 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
9761 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
9762 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
9763
81873cc8
TV
97642019-06-10 Tom de Vries <tdevries@suse.de>
9765
9766 PR symtab/16264
9767 PR symtab/24517
9768 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
9769
4fa0265e
РИ
97702019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
9771
9772 * source.c (find_and_open_source): Also rewrite relative file
9773 names.
9774
1a3da2cd
AB
97752019-04-26 Amos Bird <amosbird@gmail.com>
9776
9777 * annotate.c (annotate_thread_exited): Add "thread-exited"
9778 annotation.
9779
3847a7bf
TT
97802019-06-06 Tom Tromey <tromey@adacore.com>
9781
9782 * maint.h (class scoped_command_stats): Use
9783 DISABLE_COPY_AND_ASSIGN.
9784 <print_time>: New method.
9785 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
9786 print_time.
9787 (scoped_command_stats::print_time): New method.
9788
312617a3
AB
97892019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
9790
9791 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
9792 instructions of lengths 6 or 8 bytes.
9793
b02f78f9
PA
97942019-06-04 Pedro Alves <palves@redhat.com>
9795
9796 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
9797
9798 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
9799 * breakpoint.c (condition_completer): Likewise.
9800 * cli/cli-dump.c (scan_expression): Likewise.
9801 * common/filestuff.c (mkdir_recursive): Likewise.
9802 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
9803 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
9804 (gdb_abspath): Likewise.
9805 * compile/compile-cplus-types.c
9806 (compile_cplus_instance::decl_name): Likewise.
9807 * completer.c (complete_explicit_location):
9808 (signal_completer, reg_or_group_completer_1): Likewise.
9809 * cp-support.c (cp_remove_params_if_any): Likewise.
9810 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
9811 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
9812 * infcmd.c (strip_bg_char): Likewise.
9813 * linespec.c (copy_token_string): Likewise.
9814 * mi/mi-main.c (output_cores): Likewise.
9815 * psymtab.c (psymtab_search_name):
9816 * symfile.c (test_set_ext_lang_command): Likewise.
9817 * target.c (target_fileio_read_stralloc): Likewise.
9818 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
9819 * value.c (complete_internalvar): Likewise.
9820
e1f2e1a2
CB
98212019-06-04 Christian Biesinger <cbiesinger@google.com>
9822
9823 Add objfile property to gdb.Type.
d3238f7d
PA
9824 * NEWS: Mention Python API addition.
9825 * python/py-type.c (typy_get_objfile): New method.
e1f2e1a2 9826
e664d728
PW
98272019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9828
9829 * NEWS: Mention the new set|show style [title|highlight].
9830 Mention changes to "show style", "help" and "apropos".
9831
66d8c862
PW
98322019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9833
9834 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
9835 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
9836 instead of print_help_for_command.
9837 (print_doc_of_command): New function.
9838 (help_list): Add 'apropos -v word' suggestion.
9839 (print_help_for_command): Style the command name using title style.
9840 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
9841 (_initialize_cli_cmds): Describe -v in apropos_command help.
9842
9303eb2f
PW
98432019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9844
9845 * cli/cli-style.h (cli_style_option): Add name in constructor,
9846 add m_name class member, add constructor with intensity,
9847 add name class function.
9848 (cli_style_option::add_setshow_commands): Remove name argument.
9849 (highlight_style, title_style): New styles.
9850 * cli/cli-style.c (do_show): New function that shows a style
9851 characteristic styling the style name with itself.
9852 (set_style_name): New function.
9853 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
9854 Update all callers according to the changes in cli/cli-style.h.
9855 * utils.h (fputs_highlighted): New function.
9856 * utils.c (fputs_highlighted): Likewise.
9857
e2c52041
PW
98582019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9859
9860 * NEWS: Mention new pipe command and new convenience variables.
9861
947d3946
PW
98622019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9863
9864 * cli/cli-cmds.c (pipe_command): New function.
9865 (_initialize_cli_cmds): Call add_com for pipe_command.
9866 Define | as an alias for pipe.
9867 (exit_status_set_internal_vars): New function.
9868 (shell_escape): Call exit_status_set_internal_vars.
9869 cli/cli-decode.c (find_command_name_length): Recognize | as
9870 a single character command.
9871
b8fd0918
PW
98722019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9873
9874 * gdbcmd.h (execute_command_to_ui_file): New declaration.
9875 top.c (execute_command_to_ui_file): New function, mostly a copy
9876 of execute_command_to_string.
9877 (execute_command_to_string): Implement by calling
9878 execute_command_to_ui_file.
9879
68bb5386
PW
98802019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9881
9882 * top.h (saved_command_line): Remove declaration.
9883 * top.c (previous_saved_command_line, previous_repeat_arguments):
9884 New variables.
9885 (saved_command_line): Make static, define together with other
9886 'repeat variables'.
9887 (dont_repeat): Clear repeat_arguments.
9888 (repeat_previous, get_saved_command_line, save_command_line):
9889 New functions.
9890 (gdb_init): Initialize saved_command_line
9891 and previous_saved_command_line.
9892 * main.c (captured_main_1): Remove saved_command_line initialization.
9893 * event-top.c (handle_line_of_input): Update to use
9894 the new 'repeat' related functions instead of direct access to
9895 saved_command_line.
9896 * command.h (repeat_previous, get_saved_command_line,
9897 save_command_line): New declarations.
9898 (dont_repeat): Add comment.
9899
bfcdb852
TT
99002019-05-30 Tom Tromey <tromey@adacore.com>
9901
9902 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
9903 Fix comment.
9904 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
9905
0ef209f2
JV
99062019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
9907
9908 PR cli/24587
9909 * completer.c (complete): Initialize variable word.
9910
955b06fa
SDJ
99112019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
9912
9913 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
9914 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
9915 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
9916 'body' is NULL to the outter 'if', protecting the '!is_define'
9917 situation as well.
9918
fa9c3fa0
TT
99192019-05-29 Tom Tromey <tromey@adacore.com>
9920
9921 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
9922 (dwarf_unknown): New function.
9923 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
9924 (dwarf_type_encoding_name): Use dwarf_unknown.
9925
4330d61d
TT
99262019-05-29 Tom Tromey <tromey@adacore.com>
9927
9928 PR c++/20020:
9929 * cp-valprint.c (cp_print_value_fields): Call
9930 cp_print_static_field inside "try".
9931
33a6bc35
TT
99322019-05-29 Tom Tromey <tromey@adacore.com>
9933
9934 * inflow.c (struct terminal_info): Add default operator=.
9935 * configure: Rebuild.
9936 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
9937 -Wdeprecated-copy-dtor, -Wredundant-move.
9938
000439d5
TT
99392019-05-29 Tom Tromey <tromey@adacore.com>
9940
9941 * NEWS: Add entry.
9942 * infcmd.c (print_return_value_1): Handle finish_print
9943 option.
9944 (show_print_finish): New function.
9945 (_initialize_infcmd): Add "set/show print finish" commands.
9946 * valprint.c (user_print_options): Initialize new member.
9947 * valprint.h (struct value_print_options) <finish_print>: New
9948 member.
9949
c0e70c62
TT
99502019-05-28 Tom Tromey <tromey@adacore.com>
9951
9952 * ada-lang.c (ada_remove_Xbn_suffix)
9953 (find_old_style_renaming_symbol)
9954 (parse_old_style_renaming): Remove.
9955 (ada_find_renaming_symbol): Don't call
9956 find_old_style_renaming_symbol.
9957 (ada_is_renaming_symbol): Rename from
9958 ada_find_renaming_symbol. Remove "block" parameter. Return
9959 bool. Now static.
9960 (ada_read_var_value): Update and simplify.
9961 * ada-exp.y (write_var_or_type): Remove old code.
9962
766f8836
AH
99632019-05-28 Alan Hayward <alan.hayward@arm.com>
9964
68255adc 9965 PR gdb/25010
766f8836
AH
9966 * event-top.c: Remove include comment.
9967 * inflow.c (class scoped_ignore_sigttou): Move from here...
9968 * inflow.h (class scoped_ignore_sigttou): ...to here.
9969 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
9970 * top.c: Remove include comment.
9971
eb41253a
TT
99722019-05-27 Tom Tromey <tom@tromey.com>
9973
9974 * NEWS: Fix typo.
9975
4ca51187
TT
99762019-05-22 Tom Tromey <tromey@adacore.com>
9977
9978 * target.c (target_follow_exec): Constify parameter.
9979 * target-delegates.c: Rebuild.
9980 * remote.c (remote_target::follow_exec): Constify parameter.
9981 * infrun.c (follow_exec): Constify parameter.
9982 * target.h (struct target_ops) <follow_exec>: Constify parameter.
9983 (target_follow_exec): Likewise.
9984
8fca4da0
AH
99852019-05-22 Alan Hayward <alan.hayward@arm.com>
9986
9987 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
9988 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
9989
b7060614
AH
99902019-05-22 Alan Hayward <alan.hayward@arm.com>
9991
9992 * NEWS: Add debugredirect and testsuite sections.
9993
0a5954bd
SC
99942019-05-22 Simon Cook <simon.cook@embecosm.com>
9995
9996 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
9997 target descriptions using exclusively floating point register name
9998 aliases.
9999
dc42e902
AB
100002019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
10001
10002 PR gdb/18644:
10003 * f-lang.c (build_fortran_types): Handle the case where
10004 gdbarch_floatformat_for_type returns a nullptr.
10005
fb7806c7
TV
100062019-05-21 Tom de Vries <tdevries@suse.de>
10007
10008 PR cli/24587
10009 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
10010
34d11c68
AB
100112019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
10012
10013 PR gdb/18644:
10014 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
10015 16-byte floats.
10016 * i386-tdep.c (i386_floatformat_for_type): Use
10017 floatformats_ia64_quad for the 16-byte floating point component
10018 within a fortran 32-byte complex number.
10019
122cf0f2
AB
100202019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
10021
10022 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
10023 delete default constructor.
10024 (find_partial_die): Update to return const struct.
10025 (partial_die_parent_scope): Move variable declaration into scope
10026 of its use and change its type to auto.
10027 (guess_partial_die_structure_name): Likewise.
10028 (partial_die_info::fixup): Likewise.
10029
33d0e35a
TT
100302019-05-17 Tom Tromey <tromey@adacore.com>
10031
10032 * source.c (find_and_open_source): Remove cast.
10033
a45575b0
TT
100342019-05-17 Tom Tromey <tromey@adacore.com>
10035
10036 * annotate.c (annotate_source): Make "filename" const.
10037 * annotate.h (annotate_source): Use const.
10038
81f47ac2
AH
100392019-05-17 Alan Hayward <alan.hayward@arm.com>
10040
10041 * disasm.c (set_disassembler_options): Send errors to stderr.
10042
ca1285d1
AH
100432019-05-17 Alan Hayward <alan.hayward@arm.com>
10044
10045 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
10046 (cli_interp_base::set_logging): Check debug_redirect.
10047 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
10048 * cli/cli-logging.c (debug_redirect): Add static variable.
10049 (pop_output_files): Add default param.
10050 (handle_redirections): Print debug setting.
10051 (show_logging_command): Likewise.
10052 (_initialize_cli_logging): Add debugredirect command.
10053 * interps.c (current_interp_set_logging): Add debug_redirect
10054 parameter.
10055 * interps.h (set_logging): Add debug_redirect parameter.
10056 (current_interp_set_logging): Likewise.
10057 * mi/mi-common.h: Likewise.
10058 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
10059
100602019-05-17 Alan Hayward <alan.hayward@arm.com>
f3a09c80
AH
10061 Tom Tromey <tromey@adacore.com>
10062
10063 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
10064 directly.
10065 * cli/cli-interp.h (make_logging_output): Remove declaration.
10066 * cli/cli-logging.c (make_logging_output): Remove function.
10067 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
10068 directly.
10069 * ui-file.c (tee_file::tee_file): Remove bools.
10070 (tee_file::~tee_file): Remove deletes.
10071 * ui-file.h (tee_file): Remove bools.
10072
26648588
JV
100732019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
10074
10075 * mi/mi-cmds.h (mi_cmd_complete): New function.
10076 * mi/mi-main.c (mi_cmd_complete): Likewise.
10077 * mi/mi-cmds.c: Define new MI command -complete.
10078 * NEWS: Mention new -complete command.
10079
6e035501
JV
100802019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
10081
10082 * completer.h (complete): New function.
10083 * completer.c (complete): Likewise.
10084 * cli/cli-cmds.c: (complete_command): Update to use new complete()
10085 function defined in completer.h.
10086
7d0e2ece
JV
100872019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
10088
e79be6e5 10089 * MAINTAINERS (Write After Approval): Add myself.
7d0e2ece 10090
fb816e8b
TV
100912019-05-17 Tom de Vries <tdevries@suse.de>
10092
10093 PR gdb/24094
10094 * dwarf2read.c (struct cu_partial_die_info): New struct.
10095 (find_partial_die): Return cu_partial_die_info.
10096 (partial_die_parent_scope, guess_partial_die_structure_name)
10097 (partial_die_info::fixup): Handle new return type of find_partial_die.
10098
677052f2
SDJ
100992019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
10100
a1726c38 10101 PR breakpoints/24541
677052f2
SDJ
10102 * stap-probe.c (stap_parse_register_operand): Make "regname" an
10103 "std::string", simplifying the algorithm.
10104
f3da9116
SDJ
101052019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
10106
10107 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
10108 (stap_static_probe_ops::get_probes): Likewise.
10109
f1bb75ab
SDJ
101102019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
10111
10112 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
10113 '-')" and "else if".
10114 (stap_parse_single_operand): Join checks for
10115 "gdbarch_stap_parse_special_token_p" and
10116 "gdbarch_stap_parse_special_token" in the same "if" statement.
10117 Invert check when verifying for operation on register
10118 displacement.
10119
3ca58cde
SDJ
101202019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
10121
10122 * stap-probe.c (stap_get_opcode): Update comment.
10123 (stap_get_expected_argument_type): Likewise.
10124 (handle_stap_probe): Likewise.
10125
af2d9bee
SDJ
101262019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
10127
10128 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
10129 return type to 'bool'. Adjust comment. Use 'bool' when
10130 appropriate.
10131 (i386_stap_parse_special_token_three_arg_disp): Likewise.
10132 * stap-probe.c (stap_parse_argument_1): Likewise.
10133 (stap_is_operator): Likewise.
10134 (stap_is_generic_prefix): Likewise.
10135 (stap_is_register_prefix): Likewise.
10136 (stap_is_register_indirection_prefix): Likewise.
10137 (stap_is_integer_prefix): Likewise.
10138 (stap_generic_check_suffix): Likewise.
10139 (stap_check_integer_suffix): Likewise.
10140 (stap_check_register_suffix): Likewise.
10141 (stap_check_register_indirection_suffix): Likewise.
10142 (stap_parse_register_operand): Likewise.
10143 (stap_parse_single_operand): Likewise.
10144 (stap_parse_argument_1): Likewise.
10145 (stap_probe::get_argument_count): Likewise.
10146 (stap_is_operator): Likewise.
10147
61c9c421
TT
101482019-05-16 Tom Tromey <tromey@adacore.com>
10149
10150 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
10151 keyword to foreach.
10152
9ddc1af1
SM
101532019-05-15 Simon Marchi <simon.marchi@efficios.com>
10154
10155 * linux-thread-db.c (try_thread_db_load_1): Change return type
10156 to bool.
10157 (try_thread_db_load): Likewise.
10158 (try_thread_db_load_from_pdir_1): Likewise.
10159 (try_thread_db_load_from_pdir): Likewise.
10160 (try_thread_db_load_from_sdir): Likewise.
10161 (try_thread_db_load_from_dir): Likewise.
10162 (thread_db_load_search): Likewise.
10163 (has_libpthread): Likewise.
10164 (thread_db_load): Likewise.
10165
7bede828
SDJ
101662019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
10167
10168 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
10169 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
10170 NULL, and complain/return if that's the case.
10171
c5358db4
JD
101722019-05-15 John Darrington <john@darrington.wattle.id.au>
10173
10174 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
10175 (advance, posn, abstract_read_memory): New functions.
10176 [struct mem_read_abstraction]: New struct.
10177 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
10178
c408a94f
TT
101792019-05-14 Tom Tromey <tromey@adacore.com>
10180
10181 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
10182 value is not lval_memory.
10183
e7bd7fba
TT
101842019-05-14 Tom Tromey <tromey@adacore.com>
10185
10186 * solib.c (info_sharedlibrary_command): Style the file name.
10187
a6d0f249
AH
101882019-05-14 Alan Hayward <alan.hayward@arm.com>
10189
10190 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
10191 (aarch64_vnv_type): Likewise.
10192 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
10193 * common/tdesc.c: Likewise.
10194 * common/tdesc.h (enum tdesc_type_kind): Likewise.
10195 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
10196 * features/aarch64-fpu.xml: Add ieee half view.
10197 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
10198 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
10199 * gdbtypes.h (struct builtin_type): Likewise.
10200 (struct objfile_type): Likewise.
10201
66b8bb74
SM
102022019-05-12 Paul Naert <paul.naert@polymtl.ca>
10203
10204 * language.c (language_sniff_from_mangled_name): Fix "langauge"
10205 typo.
10206 * location.h (string_to_event_location): Likewise.
10207
21c219fd
JB
102082019-05-11 Joel Brobecker <brobecker@adacore.com>
10209
10210 GDB 8.3 released.
10211
13674803
SM
102122019-05-10 Simon Marchi <simon.marchi@efficios.com>
10213
10214 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
10215 New variable declaration.
10216 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
10217 New variable.
10218 (print_one_breakpoint): Use ui_out::test_flags and new global
10219 variable to compute use_fixed_output.
10220 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
10221 Remove.
10222 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
10223 (mi_multi_location_breakpoint_output_fixed): Remove.
10224 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
10225 new variable.
10226 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
10227 fix_multi_location_breakpoint_output flag if version >= 3.
10228 * ui-out.h (enum ui_out_flag)
10229 <fix_multi_location_breakpoint_output>: New enumerator.
10230
a9eac7f9
SM
102312019-05-10 Simon Marchi <simon.marchi@efficios.com>
10232
10233 * contrib/cc-with-tweaks.sh: Validate dwz's work.
10234
71bed2db
TT
102352019-05-10 Tom Tromey <tromey@adacore.com>
10236
10237 * ada-lang.c (catch_ada_completer): New function.
10238 (_initialize_ada_language): Use it.
10239
24c54127
TT
102402019-05-10 Tom Tromey <tromey@adacore.com>
10241
10242 * thread.c (print_thread_info): Make "requested_threads" const.
10243 * gdbthread.h (print_thread_info): Make "requested_threads"
10244 const.
10245 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
10246 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
10247
7a102139
TT
102482019-05-08 Tom Tromey <tom@tromey.com>
10249
10250 * gdbtypes.c (objfile_type_data): Change type.
10251 (objfile_type, _initialize_gdbtypes): Update.
10252
924d79e2
TT
102532019-05-08 Tom Tromey <tom@tromey.com>
10254
10255 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
10256 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
10257 (_initialize_dwarf2_frame): Update.
10258
4c58e337
TT
102592019-05-08 Tom Tromey <tom@tromey.com>
10260
10261 * objc-lang.c (objc_objfile_data): Change type.
10262 (find_methods): Update.
10263 (_initialize_objc_lang): Remove.
10264
d772d2ab
TT
102652019-05-08 Tom Tromey <tom@tromey.com>
10266
10267 * stabsread.c (rs6000_builtin_type_data): Change type.
10268 (rs6000_builtin_type, _initialize_stabsread): Update.
10269
d11d83f4
TT
102702019-05-08 Tom Tromey <tom@tromey.com>
10271
10272 * mips-tdep.c (mips_pdr_data): Remove.
10273 (_initialize_mips_tdep): Update.
10274
9a73f0ad
TT
102752019-05-08 Tom Tromey <tom@tromey.com>
10276
10277 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
10278 (hppa_init_objfile_priv_data, read_unwind_info)
10279 (find_unwind_entry, _initialize_hppa_tdep): Update.
10280
8127a2fa
TT
102812019-05-08 Tom Tromey <tom@tromey.com>
10282
10283 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
10284 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
10285 on obstack.
10286 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
10287
91d3055d
TT
102882019-05-08 Tom Tromey <tom@tromey.com>
10289
10290 * mdebugread.c (basic_type_data): Change type.
10291 (basic_type, _initialize_mdebugread): Update.
10292
31930bd3
TT
102932019-05-08 Tom Tromey <tom@tromey.com>
10294
10295 * common/gdb_unique_ptr.h (struct noop_deleter): New.
10296
bdb3ed9e
TT
102972019-05-08 Tom Tromey <tom@tromey.com>
10298
10299 * nto-tdep.c (nto_inferior_data_reg): Change type.
10300 (nto_inferior_data): Update.
10301 (nto_inferior_data_cleanup, nto_new_inferior_data)
10302 (_initialize_nto_tdep): Remove.
10303 * nto-tdep.h (struct nto_inferior_data): Add initializers.
10304
f37b313d
TT
103052019-05-08 Tom Tromey <tom@tromey.com>
10306
10307 * ada-lang.c (struct ada_inferior_data): Add initializers.
10308 (ada_inferior_data): Change type.
10309 (ada_inferior_data_cleanup): Remove.
10310 (get_ada_inferior_data, ada_inferior_exit)
10311 (struct ada_pspace_data): Add initializers, destructor.
10312 (ada_pspace_data_handle): Change type.
10313 (get_ada_pspace_data): Update.
10314 (ada_pspace_data_cleanup): Remove.
10315
24699405
TT
103162019-05-08 Tom Tromey <tom@tromey.com>
10317
10318 * coffread.c (struct coff_symfile_info): Add initializers.
10319 (coff_objfile_data_key): Move lower. Change type.
10320 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
10321 Update.
10322 (coff_free_info): Remove.
10323
d4e05d2f
TT
103242019-05-08 Tom Tromey <tom@tromey.com>
10325
10326 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
10327 (fbsd_pspace_data_handle): Move lower. Change type.
10328 (get_fbsd_pspace_data): Update.
10329 (fbsd_pspace_data_cleanup): Remove.
10330 (_initialize_fbsd_tdep): Update.
10331
14ef6690
TT
103322019-05-08 Tom Tromey <tom@tromey.com>
10333
10334 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
10335 (get_ada_tasks_pspace_data): Update.
10336 (ada_tasks_pspace_data_cleanup): Remove.
10337 (_initialize_tasks): Update.
10338 (ada_tasks_inferior_data_handle): Change type.
10339 (get_ada_tasks_inferior_data): Update.
10340 (ada_tasks_inferior_data_cleanup): Remove.
10341 (struct ada_tasks_pspace_data): Add initializers.
10342
814cf43a
TT
103432019-05-08 Tom Tromey <tom@tromey.com>
10344
10345 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
10346 * symfile-debug.c (debug_sym_get_probes): Change type.
10347 * stap-probe.c (handle_stap_probe):
10348 (stap_static_probe_ops::get_probes): Change type.
10349 * probe.h (class static_probe_ops) <get_probes>: Change type.
10350 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
10351 (parse_probes_in_pspace): Update.
10352 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
10353 Update.
10354 (any_static_probe_ops::get_probes): Change type.
10355 * elfread.c (elfread_data): New typedef.
10356 (probe_key): Change type.
10357 (elf_get_probes): Likewise. Update.
10358 (probe_key_free): Remove.
10359 (_initialize_elfread): Update.
10360 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
10361 Change type.
10362 (dtrace_process_dof_probe, dtrace_process_dof)
10363 (dtrace_static_probe_ops::get_probe): Change type.
10364
02dc647e
TT
103652019-05-08 Tom Tromey <tom@tromey.com>
10366
10367 * xcoffread.c (struct xcoff_symfile_info): Rename from
10368 coff_symfile_info. Add initializers.
10369 (xcoff_objfile_data_key): Move lower. Change type.
10370 (XCOFF_DATA): Rewrite.
10371 (xcoff_free_info): Remove.
10372 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
10373 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
10374 (xcoff_initial_scan): Update.
10375
09232438
TT
103762019-05-08 Tom Tromey <tom@tromey.com>
10377
10378 * solib-svr4.c (struct svr4_info): Add initializers and
10379 destructor.
10380 <probes_table>: Now an htab_up.
10381 (solib_svr4_pspace_data): Change type.
10382 (free_probes_table): Simplify.
10383 (~svr4_info): Rename from svr4_pspace_data_cleanup.
10384 (get_svr4_info, probes_table_htab_remove_objfile_probes)
10385 (probes_table_remove_objfile_probes, register_solib_event_probe)
10386 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
10387 (_initialize_svr4_solib): Update.
10388
7b4a314f
TT
103892019-05-08 Tom Tromey <tom@tromey.com>
10390
10391 * remote.c (remote_pspace_data): Change type.
10392 (remote_pspace_data_cleanup): Remove.
10393 (get_remote_exec_file, set_pspace_remote_exec_file)
10394 (_initialize_remote): Update.
10395
51d3063a
TT
103962019-05-08 Tom Tromey <tom@tromey.com>
10397
10398 * breakpoint.c (breakpoint_objfile_key): Change type.
10399 (get_breakpoint_objfile_data): Update.
10400 (free_breakpoint_objfile_data): Remove.
10401 (_initialize_breakpoint): Update.
10402
89fb8848
TT
104032019-05-08 Tom Tromey <tom@tromey.com>
10404
10405 * linux-tdep.c (struct linux_info): Add initializers.
10406 (linux_inferior_data): Move. Change type.
10407 (invalidate_linux_cache_inf): Update.
10408 (linux_inferior_data_cleanup): Remove.
10409 (get_linux_inferior_data, _initialize_linux_tdep): Update.
10410
e9b89e2d
TT
104112019-05-08 Tom Tromey <tom@tromey.com>
10412
10413 * auxv.c (auxv_inferior_data): Move. Change type.
10414 (auxv_inferior_data_cleanup): Remove.
10415 (invalidate_auxv_cache_inf): Rewrite.
10416 (get_auxv_inferior_data, _initialize_auxv): Update.
10417
8c42777c
TT
104182019-05-08 Tom Tromey <tom@tromey.com>
10419
10420 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
10421 (symfile_debug_objfile_data_key): Change type.
10422 (symfile_debug_installed, debug_qf_has_symbols)
10423 (debug_qf_find_last_source_symtab)
10424 (debug_qf_forget_cached_source_info)
10425 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
10426 (debug_qf_print_stats, debug_qf_dump)
10427 (debug_qf_expand_symtabs_for_function)
10428 (debug_qf_expand_all_symtabs)
10429 (debug_qf_expand_symtabs_with_fullname)
10430 (debug_qf_map_matching_symbols)
10431 (debug_qf_expand_symtabs_matching)
10432 (debug_qf_find_pc_sect_compunit_symtab)
10433 (debug_qf_map_symbol_filenames)
10434 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
10435 (debug_sym_new_init, debug_sym_init, debug_sym_read)
10436 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
10437 (debug_sym_read_linetable, debug_sym_relocate): Update.
10438 (symfile_debug_free_objfile): Remove.
10439 (install_symfile_debug_logging, _initialize_symfile_debug):
10440 Update.
10441
5bfd760d
TT
104422019-05-08 Tom Tromey <tom@tromey.com>
10443
10444 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
10445 allocate_on_obstack.
10446 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
10447 (get_dwarf2_per_objfile): Update.
10448 (set_dwarf2_per_objfile): Remove.
10449 (dwarf2_has_info, dwarf2_get_section_info): Update.
10450 (dwarf2_free_objfile): Remove.
10451 (_initialize_dwarf2_read): Update.
10452
e85e19b4
TT
104532019-05-08 Tom Tromey <tom@tromey.com>
10454
10455 * auto-load.c (struct auto_load_pspace_info): Add destructor and
10456 initializers.
10457 <unsupported_script_warning_printed,
10458 script_not_found_warning_printed>: Now bool.
10459 (auto_load_pspace_data): Change type.
10460 (~auto_load_pspace_info): Rename from
10461 auto_load_pspace_data_cleanup.
10462 (get_auto_load_pspace_data, init_loaded_scripts_info)
10463 (clear_section_scripts, maybe_print_unsupported_script_warning)
10464 (maybe_print_script_not_found_warning, _initialize_auto_load):
10465 Update.
10466
f6aa7436
TT
104672019-05-08 Tom Tromey <tom@tromey.com>
10468
10469 * objfiles.c (objfile_pspace_info): Add destructor and
10470 initializers.
10471 (objfiles_pspace_data): Change type.
10472 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
10473 (get_objfile_pspace_data): Update.
10474 (objfiles_bfd_data): Change type.
10475 (get_objfile_bfd_data): Update.
10476 (objfile_bfd_data_free, _initialize_objfiles): Remove.
10477
6ae614f6
TT
104782019-05-08 Tom Tromey <tom@tromey.com>
10479
10480 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
10481 Change type.
10482 (get_catch_syscall_inferior_data): Update.
10483 (catch_syscall_inferior_data_cleanup): Remove.
10484 (_initialize_break_catch_syscall): Update.
10485
6509b8eb
TT
104862019-05-08 Tom Tromey <tom@tromey.com>
10487
10488 * inflow.c (struct terminal_info): Add destructor and
10489 initializers.
10490 (inflow_inferior_data): Change type.
10491 (~terminal_info): Rename from inflow_inferior_data_cleanup.
10492 (get_inflow_inferior_data, inflow_inferior_exit)
10493 (swap_terminal_info, _initialize_inflow): Update.
10494
35632941
TT
104952019-05-08 Tom Tromey <tom@tromey.com>
10496
10497 * target-dcache.c (target_dcache_cleanup): Remove.
10498 (target_dcache_aspace_key): Change type.
10499 (target_dcache_init_p, target_dcache_invalidate)
10500 (target_dcache_get, target_dcache_get_or_init)
10501 (_initialize_target_dcache): Update.
10502 * dcache.h (struct dcache_deleter): New.
10503
3017b94d
TT
105042019-05-08 Tom Tromey <tom@tromey.com>
10505
10506 * symtab.c (struct symbol_cache): Add destructor and
10507 initializers.
10508 (symbol_cache_key): Move. Change type.
10509 (make_symbol_cache, free_symbol_cache): Remove.
10510 (get_symbol_cache): Update.
10511 (symbol_cache_cleanup): Remove.
10512 (ALL_PSPACES, symbol_cache_flush)
10513 (maintenance_print_symbol_cache)
10514 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
10515 Update.
10516
a32ad8c5
TT
105172019-05-08 Tom Tromey <tom@tromey.com>
10518
10519 * symtab.c (struct main_info): Add destructor and initializers.
10520 (main_progspace_key): Move. Change type.
10521 (get_main_info): Update.
10522 (main_info_cleanup): Remove.
10523 (_initialize_symtab): Update.
10524
5f6e90a0
TT
105252019-05-08 Tom Tromey <tom@tromey.com>
10526
10527 * registry.h (DECLARE_REGISTRY): Define the _key class.
10528
1bd0c6e4
AB
105292019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
10530
10531 * NEWS: Merge two 'New commands' sections.
10532
2228ef77
XR
105332019-05-08 Joel Brobecker <brobecker@adacore.com>
10534
10535 * ada-valprint.c (ada_val_print_gnat_array): Remove language
10536 parameter and use Ada language definition instead.
10537 (ada_val_print_ptr): Remove unused language parameter.
10538 (ada_val_print_num): Remove language parameter and use Ada language
10539 definition instead.
10540 (ada_val_print_enum, ada_val_print_flt): Remove unused language
10541 parameter.
10542 (ada_val_print_struct_union, ada_val_print_ref): Remove language
10543 parameter and use Ada language definition instead.
10544 (ada_val_print_1): Update all ada_val_print_xxx calls.
10545 Remove language parameter.
10546 (ada_val_print): Update ada_val_print_1 call.
10547
60fcc1c3
TT
105482019-05-08 Tom Tromey <tromey@adacore.com>
10549
10550 * remote.c (remote_hw_watchpoint_limit)
10551 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
10552 Now static.
10553
ed2b7c17
TT
105542019-05-08 Tom Tromey <tromey@adacore.com>
10555
10556 * maint.c (_initialize_maint_cmds): Move initialization code to
10557 remote.c.
10558 (watchdog, show_watchdog): Move to remote.c.
10559 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
10560 "watchdog" static.
10561 (_initialize_remote): Move initialization code from maint.c.
10562 * defs.h (watchdog): Don't declare.
10563
b0be6c91
TT
105642019-05-08 Tom Tromey <tromey@adacore.com>
10565
10566 * tui/tui-interp.c: Include main.h.
10567 * interps.c: Include main.h.
10568 * main.h (interpreter_p): Declare.
10569 * defs.h (interpreter_p): Don't declare.
10570
587ee17b
TT
105712019-05-08 Tom Tromey <tromey@adacore.com>
10572
10573 * dwarf2loc.c: Include dwarf2read.h.
10574 * defs.h (read_unsigned_leb128): Don't declare.
10575 * dwarf2read.h (read_unsigned_leb128): Declare.
10576
ca1df239
TT
105772019-05-08 Tom Tromey <tromey@adacore.com>
10578
10579 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
10580 method.
10581
99f20f08
TT
105822019-05-08 Tom Tromey <tromey@adacore.com>
10583
10584 * utils.c (fputs_maybe_filtered): Reset style after paging, even
10585 when no wrap column is set.
10586
80e55b13
TT
105872019-05-08 Tom Tromey <tromey@adacore.com>
10588
10589 * c-lang.c (c_get_string): Handle non-C-style arrays.
10590
9d3421af
TT
105912019-05-08 Tom Tromey <tromey@adacore.com>
10592
10593 * typeprint.c (print_offset_data::update): Print the bit offset,
10594 not the number of bits remaining.
10595
844333e2
TT
105962019-05-08 Tom Tromey <tromey@adacore.com>
10597
10598 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
10599 padding at end of comment.
10600
988915ee
TT
106012019-05-08 Tom Tromey <tromey@adacore.com>
10602
10603 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
10604 Compare main types.
10605
26bfd823
TT
106062019-05-06 Tom Tromey <tom@tromey.com>
10607
10608 * common/scoped_mmap.c: Include common-defs.h.
10609 * common/scoped_mmap.h: Don't include config.h.
10610
89055eaa
TT
106112019-05-04 Tom Tromey <tom@tromey.com>
10612
10613 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
10614 (struct aarch64_call_info): Add initializers.
10615 <si>: Now a std::vector.
10616 (pass_on_stack, aarch64_push_dummy_call): Update.
10617
5da01df5
TT
106182019-05-04 Simon Marchi <simon.marchi@efficios.com>
10619 Tom Tromey <tom@tromey.com>
10620
10621 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
10622 (ppc_threads): Now a std::vector. Now static.
10623 (hwdebug_find_thread_points_by_tid)
10624 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
10625 Update.
10626
fbdf05a1
TT
106272019-05-04 Tom Tromey <tom@tromey.com>
10628
10629 * arc-tdep.c (arc_tdesc_init): Return bool.
10630
06d16ec9
TT
106312019-05-04 Tom Tromey <tom@tromey.com>
10632
10633 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
10634 Use gdb_assert_not_reached.
10635
9c056022
TT
106362019-05-04 Tom Tromey <tom@tromey.com>
10637
10638 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
10639 "false".
10640
fa9c2a59
TT
106412019-05-04 Tom Tromey <tom@tromey.com>
10642
10643 * arc-tdep.c (arc_tdesc_init): Use bool.
10644
e2eb806a
TT
106452019-05-04 Tom Tromey <tom@tromey.com>
10646
10647 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
10648
6fe87677
TT
106492019-05-04 Tom Tromey <tom@tromey.com>
10650
10651 * cli/cli-cmds.c (valid_command_p): Return bool.
10652
7f008c9e
TT
106532019-05-04 Tom Tromey <tom@tromey.com>
10654
10655 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
10656 * command.h (valid_user_defined_cmd_name_p): Channge return type.
10657
b6484282
RT
106582019-05-04 Raul Tambre <raul@tambre.ee>
10659
10660 * python/lib/gdb/prompt.py (_ExtendedPrompt)
10661 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
10662 operator for comparison.
10663
af97b416
TT
106642019-05-04 Tom Tromey <tom@tromey.com>
10665
10666 * psymtab.c (psymbol_name_matches, match_partial_symbol)
10667 (lookup_partial_symbol, print_partial_symbols)
10668 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
10669 (psymbol_compare): Update.
10670 (add_psymbol_to_bcache): Clear the entire psymbol.
10671 (maintenance_check_psymtabs): Update.
10672 * psympriv.h (struct partial_symbol): Don't derive from
10673 general_symbol_info.
10674 <obj_section, unrelocated_address, address,
10675 set_unrelocated_address>: Update.
10676 <ginfo>: New member.
10677 * dwarf-index-write.c (write_psymbols, debug_names::insert)
10678 (debug_names::write_psymbols): Update.
10679
9d6d4be8
TV
106802019-05-04 Tom de Vries <tdevries@suse.de>
10681
10682 * contrib/cc-with-tweaks.sh: Support -n arg.
10683
66452beb
PW
106842019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10685
10686 * corelow.c (core_target::detach): Ensure frame cache and
10687 register caches are cleared.
10688 inferior.c (exit_inferior_1): Likewise.
10689
bde09ab7
TT
106902019-05-03 Sandra Loosemore <sandra@codesourcery.com>
10691 Tom Tromey <tom@tromey.com>
10692
10693 * dictionary.c (collate_pending_symbols_by_language): Remove
10694 "struct" from foreach.
10695 * symtab.c (lookup_global_symbol_from_objfile)
10696 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
10697 foreach.
10698 * ser-tcp.c (net_open): Remove "struct" from foreach.
10699 * objfiles.c (objfile_relocate, objfile_rebase)
10700 (objfile_has_symbols): Remove "struct" from foreach.
10701 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
10702 from foreach.
10703 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
10704 foreach.
10705 * darwin-nat.c (thread_info_from_private_thread_info): Remove
10706 "struct" from foreach.
10707 * ada-lang.c (create_excep_cond_exprs)
10708 (ada_exception_catchpoint_cond_string): Remove "struct" from
10709 foreach.
10710
222a8d25
TT
107112019-05-03 Tom Tromey <tromey@adacore.com>
10712
10713 * ada-exp.y (convert_char_literal): Check suffix of each
10714 enumerator.
10715
fcd60b84
DP
107162019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
10717
10718 PR ada/21406:
10719 * ada-exp.y (yywrap): Don't define.
10720 * ada-lex.l (%option): Add noyywrap
10721 (yywrap): Remove.
10722
5f2459c2
EZ
107232019-05-03 Eli Zaretskii <eliz@gnu.org>
10724
353ea2d1
EZ
10725 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
10726 _WIN32_WINNT to the XP level, unless already defined to a higher
10727 level.
10728
10729 * unittests/parse-connection-spec-selftests.c:
10730 * ser-tcp.c:
10731 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
10732 override.
10733
5f2459c2
EZ
10734 * symfile.c (find_separate_debug_file): Remove colon from the
10735 drive spec of DOS/Windows file names of the target, so that the
10736 file name produced from DEBUGDIR and the target's directory will
10737 be valid on DOS/Windows systems.
10738
80062eb9
AB
107392019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
10740
10741 * rust-lang.c (val_print_struct): Handle printing structures
10742 containing strings.
10743
b8c05e85
TT
107442019-05-02 Tom Tromey <tromey@adacore.com>
10745
10746 * valarith.c (_initialize_valarith): Remove.
10747
4504bbde
TT
107482019-05-01 Tom Tromey <tromey@adacore.com>
10749
10750 * ada-lang.c (ada_value_primitive_field): Treat more fields as
10751 bitfields.
10752
d48e62f4
TT
107532019-05-01 Tom Tromey <tromey@adacore.com>
10754
10755 * ada-lang.c (ada_value_assign): Correctly compute starting offset
10756 for big-endian copies.
10757
15f18d14
AT
107582019-04-30 Ali Tamur <tamur@google.com>
10759 * gdb/dwarf2read.c (read_3_bytes): New declaration.
10760 (read_attribute_value): Added DW_FORM_strx1-4 cases.
10761 (read_3_bytes): New function.
10762
ab4ee614
JB
107632019-04-30 Joel Brobecker <brobecker@adacore.com>
10764
10765 * windows-nat.c (main_thread_id): Delete.
10766 (handle_output_debug_string): Replace main_thread_id by
10767 current_event.dwThreadId.
10768 (fake_create_process): Likewise.
10769 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
10770 Do not set main_thread_id.
10771 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
10772 current_event.dwThreadId.
10773 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
10774
8ed5b76e
JB
107752019-04-30 Joel Brobecker <brobecker@adacore.com>
10776
10777 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
10778 Use current_event.dwThreadId instead of main_thread_id.
10779
2ff0a947
TT
107802019-04-30 Tom Tromey <tromey@adacore.com>
10781
10782 * ada-lang.c (ada_lookup_simple_minsyms): New function.
10783 (create_excep_cond_exprs): Iterate over program spaces.
10784 (ada_exception_catchpoint_cond_string): Examine all minimal
10785 symbols for exception types.
10786
a776957c
TT
107872019-04-30 Tom Tromey <tromey@adacore.com>
10788
10789 PR c++/24470:
10790 * dwarf2read.c (process_structure_scope): Handle case where type
10791 has template parameters but no symbol was created.
10792
bc68014d
AB
107932019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10794 Chris January <chris.january@arm.com>
10795
10796 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
10797 qualifier.
10798 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
10799
f1fdc960
AB
108002019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10801
10802 * f-typeprint.c (f_print_type): Update rules for printing
10803 whitespace.
10804 (f_type_print_varspec_suffix): Likewise.
10805
bf7a4de1
AB
108062019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10807 Chris January <chris.january@arm.com>
10808
10809 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
10810 function arguments.
10811
bbe75b9d
AB
108122019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10813
10814 * f-lang.c (build_fortran_types): Change name of void type to
10815 lower case.
10816 * f-typeprint.c (f_type_print_base): Print the name of the void
10817 type, rather than a fixed string.
10818 * f-valprint.c (f_decorations): Use lower case void string.
10819
1db455a7
AB
108202019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10821 Chris January <chris.january@arm.com>
10822
10823 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
10824 types for Fortran.
10825
b6d03bb2
AB
108262019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10827 Chris January <chris.january@arm.com>
10828 David Lecomber <david.lecomber@arm.com>
10829
10830 * f-exp.y (BINOP_INTRINSIC): New token.
10831 (exp): New parser rule handling BINOP_INTRINSIC.
10832 (f77_keywords): Add new builtin procedures.
10833 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
10834 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
10835 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
10836 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
10837 (print_unop_subexp_f): New function.
10838 (print_binop_subexp_f): New function.
10839 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
10840 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
10841 (dump_subexp_body_f): Likewise.
10842 (operator_check_f): Likewise.
10843 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
10844 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
10845
83228e93
AB
108462019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10847
10848 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
10849 UNOP_KIND.
10850 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
10851 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
10852 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
10853 (operator_length_f): New fuction.
10854 (print_subexp_f): New function.
10855 (op_name_f): New function.
10856 (dump_subexp_body_f): New function.
10857 (operator_check_f): New function.
10858 (exp_descriptor_f): Replace standard expression handling functions
10859 with new functions.
10860 * gdb/fortran-operator.def: New file.
10861 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
10862 * gdb/std-operator.def: Remove UNOP_KIND.
10863
6fdcd7cc
AB
108642019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10865
10866 * std-operator.def: Remove unbalanced, stray double quote
10867 character.
10868
2e62ab40
AB
108692019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
10870 Chris January <chris.january@arm.com>
10871 Daniel Everett <daniel.everett@arm.com>
10872 Nick Forrington <nick.forrington@arm.com>
10873 Richard Bunt <richard.bunt@arm.com>
10874
10875 * cp-valprint.c (cp_print_value_fields): Allow an additional level
10876 of depth when printing anonymous structs or unions.
10877 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
10878 Don't print either the top-level value, or the children if the
10879 max-depth is exceeded.
10880 (ppscm_print_children): When printing the key of a map, allow one
10881 extra level of depth.
10882 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
10883 print either the top-level value, or the children if the max-depth
10884 is exceeded.
10885 (print_children): When printing the key of a map, allow one extra
10886 level of depth.
10887 * python/py-value.c (valpy_format_string): Add max_depth keyword.
10888 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
10889 (user_print_options): Initialise max_depth field.
10890 (val_print_scalar_or_string_type_p): New function.
10891 (val_print): Check to see if the max depth has been reached.
10892 (val_print_check_max_depth): Define new function.
10893 (show_print_max_depth): New function.
10894 (_initialize_valprint): Add 'print max-depth' option.
10895 * valprint.h (struct value_print_options) <max_depth>: New field.
10896 (val_print_check_max_depth): Declare new function.
10897 * NEWS: Document new feature.
10898
4be290b2
AB
108992019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
10900
10901 * ada-lang.c (ada_language_defn): Initialise new field.
10902 * c-lang.c (c_is_string_type_p): New function.
10903 (c_language_defn): Initialise new field.
10904 (cplus_language_defn): Initialise new field.
10905 (asm_language_defn): Initialise new field.
10906 (minimal_language_defn): Initialise new field.
10907 * c-lang.h (c_is_string_type_p): Declare new function.
10908 * d-lang.c (d_language_defn): Initialise new field.
10909 * f-lang.c (f_is_string_type_p): New function.
10910 (f_language_defn): Initialise new field.
10911 * go-lang.c (go_is_string_type_p): New function.
10912 (go_language_defn): Initialise new field.
10913 * language.c (default_is_string_type_p): New function.
10914 (unknown_language_defn): Initialise new field.
10915 (auto_language_defn): Initialise new field.
10916 * language.h (struct language_defn) <la_is_string_type_p>: New
10917 member variable.
10918 (default_is_string_type_p): Declare new function.
10919 * m2-lang.c (m2_language_defn): Initialise new field.
10920 * objc-lang.c (objc_language_defn): Initialise new field.
10921 * opencl-lang.c (opencl_language_defn): Initialise new field.
10922 * p-lang.c (pascal_is_string_type_p): New function.
10923 (pascal_language_defn): Initialise new field.
10924 * rust-lang.c (rust_is_string_type_p): New function.
10925 (rust_language_defn): Initialise new field.
10926
721b08c6
AB
109272019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
10928
10929 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
10930 New field.
10931 * ada-lang.c (ada_language_defn): Initialise new field.
10932 * c-lang.c (c_language_defn): Likewise.
10933 (cplus_language_defn): Likewise.
10934 (asm_language_defn): Likewise.
10935 (minimal_language_defn): Likewise.
10936 * d-lang.c (d_language_defn): Likewise.
10937 * f-lang.c (f_language_defn): Likewise.
10938 * go-lang.c (go_language_defn): Likewise.
10939 * language.c (unknown_language_defn): Likewise.
10940 (auto_language_defn): Likewise.
10941 * m2-lang.c (m2_language_defn): Likewise.
10942 * objc-lang.c (objc_language_defn): Likewise.
10943 * opencl-lang.c (opencl_language_defn): Likewise.
10944 * p-lang.c (pascal_language_defn): Likewise.
10945 * rust-lang.c (rust_language_defn): Likewise.
10946
fc913e53
AB
109472019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
10948
10949 * ada-lang.c (ada_is_character_type): Change return type to bool.
10950 (ada_is_string_type): Likewise.
10951 * ada-lang.h (ada_is_character_type): Update declaration
10952 (ada_is_string_type): Likewise.
10953
fa731fa0
PW
109542019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10955
10956 Support style in 'frame|thread apply'
10957
10958 * gdbcmd.h (execute_command_to_string): New term_out parameter.
10959 * record.c (record_start, record_stop): Update callers of
10960 execute_command_to_string with false.
10961 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
10962 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
10963 methods.
10964 (class string_file): New constructor with term_out parameter.
10965 Override methods term_out and can_emit_style_escape. New member
10966 term_out.
10967 (class stdio_file): Override can_emit_style_escape.
10968 (class tee_file): Override term_out and can_emit_style_escape.
10969 * utils.h (can_emit_style_escape): Remove.
10970 * utils.c (can_emit_style_escape): Likewise.
10971 Update all callers of can_emit_style_escape (SOMESTREAM) to
10972 SOMESTREAM->can_emit_style_escape.
10973 * source-cache.c (source_cache::get_source_lines): Likewise.
10974 * stack.c (frame_apply_command_count): Call execute_command_to_string
10975 passing the term_out characteristic of the current gdb_stdout.
10976 * thread.c (thr_try_catch_cmd): Likewise.
10977 * top.c (execute_command_to_string): pass term_out parameter
10978 to construct the string_file for the command output.
10979 * ui-file.c (term_cli_styling): New function (most code moved
10980 from utils.c can_emit_style_escape).
10981 (string_file::string_file, string_file::can_emit_style_escape,
10982 stdio_file::can_emit_style_escape, tee_file::term_out,
10983 tee_file::can_emit_style_escape): New functions.
10984
136afab8
PW
109852019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10986
10987 * NEWS: Mention the new set|show may-call-functions.
10988 * infcall.c (may_call_functions_p): New variable.
10989 (show_may_call_functions_p): New function.
10990 (call_function_by_hand_dummy): Throws an error if not
10991 may-call-functions.
10992 (_initialize_infcall): Call add_setshow_boolean_cmd for
10993 may-call-functions.
10994
725cbb63
KS
109952019-04-25 Keith Seitz <keiths@redhat.com>
10996
10997 PR c++/24367
10998 * cp-support.c (inspect_type): Don't attempt substitutions
10999 of symbol with the same name.
11000
3d1cbb78
TT
110012019-04-25 Tom Tromey <tromey@adacore.com>
11002
11003 PR gdb/24475:
11004 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
11005 static.
11006
94aeb44b
TT
110072019-04-25 Tom Tromey <tromey@adacore.com>
11008
11009 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
11010 rvalue reference.
11011 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
11012 (gdb_xml_parser::parse): Use std::move.
11013 * python/python-internal.h (gdbpy_convert_exception): Take a const
11014 reference.
11015 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
11016 std::move.
11017 * python/py-utils.c (gdbpy_convert_exception): Take a const
11018 reference.
11019 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
11020 Use std::move.
11021 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
11022 Use std::move.
11023 * mi/mi-main.c (mi_print_exception): Take a const reference.
11024 * main.c (handle_command_errors): Take a const reference.
11025 * linespec.c (parse_linespec): Use std::move.
11026 * infcall.c (run_inferior_call): Use std::move.
11027 (call_function_by_hand_dummy): Use std::move.
11028 * exec.c (try_open_exec_file): Use std::move.
11029 * exceptions.h (exception_print, exception_fprintf)
11030 (exception_print_same): Update.
11031 * exceptions.c (print_exception, exception_print)
11032 (exception_fprintf, exception_print_same): Change parameters to
11033 const reference.
11034 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
11035 * common/new-op.c: Use std::move.
11036 * common/common-exceptions.h (struct gdb_exception): Add move
11037 constructor.
11038 (struct gdb_exception_error, struct gdb_exception_quit, struct
11039 gdb_quit_bad_alloc): Change constructor to move constructor.
11040 (throw_exception): Change parameter to rvalue reference.
11041 * common/common-exceptions.c (throw_exception): Take rvalue
11042 reference.
11043 * cli/cli-interp.c (safe_execute_command): Use std::move.
11044 * breakpoint.c (insert_bp_location, location_to_sals): Use
11045 std::move.
11046
680d7fd5
TT
110472019-04-25 Tom Tromey <tromey@adacore.com>
11048
11049 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
11050 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
11051 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
11052 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
11053 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
11054 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
11055 guile/scm-value.c: Use unpack.
11056 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
11057 gdbscm_gdb_exception.
11058 (gdbscm_throw_gdb_exception): Likewise.
11059 (struct gdbscm_gdb_exception): New.
11060 (unpack): New function.
11061 (gdbscm_wrap): Use unpack.
11062
c6fdd8b2
TT
110632019-04-25 Tom Tromey <tromey@adacore.com>
11064
11065 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
11066 (gdb_rl_callback_handler): Use std::move.
11067 * common/common-exceptions.h (struct gdb_exception): Add move
11068 assignment operator.
11069 (throw_exception_sjlj): Change "exception" to const reference.
11070 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
11071 (throw_exception_sjlj): Change "exception" to const reference.
11072
cc06b668
TT
110732019-04-25 Tom Tromey <tromey@adacore.com>
11074
11075 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
11076 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
11077 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
11078 Update.
11079 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
11080 Update.
11081 * mi/mi-interp.c (mi_interp::exec): Update.
11082 * linespec.c (parse_linespec): Update.
11083 * infcall.c (run_inferior_call): Update.
11084 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
11085 * guile/scm-symbol.c (gdbscm_lookup_symbol)
11086 (gdbscm_lookup_global_symbol): Update.
11087 * guile/scm-param.c (gdbscm_parameter_value): Update.
11088 * guile/scm-frame.c (gdbscm_frame_read_register)
11089 (gdbscm_frame_read_var): Update.
11090 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
11091 * exec.c (try_open_exec_file): Update.
11092 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
11093 (gdb_rl_callback_handler): Update.
11094 * common/common-exceptions.h (exception_none): Don't declare.
11095 * common/common-exceptions.c (exception_none): Don't define.
11096 (struct catcher) <exception>: Update.
11097 * cli/cli-interp.c (safe_execute_command): Update.
11098 * breakpoint.c (insert_bp_location, location_to_sals): Update.
11099
cf532bd1
AT
111002019-04-25 Ali Tamur <tamur@google.com>
11101
11102 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
11103 (read_attribute_value): Likewise.
11104 (dwarf2_read_addr_index): Update comment.
11105 (read_str_index): Add DW_FORM_strx.
11106 (dwarf2_string_attr): Likewise.
11107 (dwarf2_const_value_attr): Likewise.
11108 (dump_die_shallow): Likewise.
11109 (dwarf2_fetch_constant_bytes): Likewise.
11110 (skip_form_bytes): Likewise.
11111 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
11112
82433e3e
SDJ
111132019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
11114
11115 PR corefiles/11608
11116 PR corefiles/18187
11117 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
11118 OFFSET. Verify if current mapping contains an ELF header.
11119 (linux_find_memory_regions_full): Adjust call to
11120 dump_mapping_p.
11121
723adb65
SL
111222019-04-25 Sandra Loosemore <sandra@codesourcery.com>
11123 Kang Li <kanglictf@gmail.com>
11124
11125 PR gdb/21600
11126
11127 * dwarf2-frame.c (read_initial_length): Be consistent about using
11128 unsigned representation of length.
11129 (decode_frame_entry_1): Likewise. Check for wraparound of
11130 end pointer as well as buffer overflow.
11131
596179f7
SDJ
111322019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
11133
11134 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
11135 "vq".
11136
a59240a4
TT
111372019-04-24 Tom Tromey <tromey@adacore.com>
11138
11139 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
11140
f872fdbb
AB
111412019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11142
11143 * s12z-tdep.c (s12z_unwind_pc): Delete.
11144 (s12z_unwind_sp): Delete.
11145 (s12z_gdbarch_init): Don't register deleted functions with
11146 gdbarch.
11147
b614e6f3
AB
111482019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11149
11150 * rl78-tdep.c (rl78_unwind_sp): Delete.
11151 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
11152
14faed38
AB
111532019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11154
11155 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
11156 (xstormy16_unwind_pc): Delete.
11157 (xstormy16_dummy_id): Delete.
11158 (xstormy16_gdbarch_init): Don't register deleted functions with
11159 gdbarch.
11160
541aad8a
AB
111612019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11162
11163 * vax-tdep.c (vax_unwind_pc): Delete.
11164 (vax_gdbarch_init): Don't register deleted function with gdbarch.
11165
29222070
AB
111662019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11167
11168 * v850-tdep.c (v850_unwind_sp): Delete.
11169 (v850_unwind_pc): Delete.
11170 (v850_dummy_id): Delete.
11171 (v850_gdbarch_init): Don't register deleted functions with
11172 gdbarch.
11173
0f534d76
AB
111742019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11175
11176 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
11177 (tilegx_unwind_pc): Delete.
11178 (tilegx_unwind_dummy_id): Delete.
11179 (tilegx_gdbarch_init): Don't register deleted functions with
11180 gdbarch.
11181
1ba7b7f9
AB
111822019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11183
11184 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
11185 (tic6x_dummy_id): Delete.
11186 (tic6x_gdbarch_init): Don't register deleted functions with
11187 gdbarch.
11188
d31f262c
AB
111892019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11190
11191 * sparc-tdep.c (sparc_unwind_pc): Delete.
11192 (sparc32_gdbarch_init): Don't register deleted function with
11193 gdbarch.
11194
6d14d64d
AB
111952019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11196
11197 * sh-tdep.c (sh_unwind_sp): Delete.
11198 (sh_unwind_pc): Delete.
11199 (sh_dummy_id): Delete.
11200 (sh_gdbarch_init): Don't register deleted functions with
11201 gdbarch.
11202
a40dde9d
AB
112032019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11204
11205 * score-tdep.c (score_unwind_sp): Delete.
11206 (score_unwind_pc): Delete.
11207 (score_dummy_id): Delete.
11208 (score_gdbarch_init): Don't register deleted functions with
11209 gdbarch.
11210
47c47d69
AB
112112019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11212
11213 * rx-tdep.c (rx_unwind_pc): Delete.
11214 (rx_unwind_sp): Delete.
11215 (rx_dummy_id): Delete.
11216 (rx_gdbarch_init): Don't register deleted functions with
11217 gdbarch. Update comment.
11218
833a4480
AB
112192019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11220
11221 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
11222 (rs6000_dummy_id): Delete.
11223 (rs6000_gdbarch_init): Don't register deleted functions with
11224 gdbarch.
11225
3f2cef49
AB
112262019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11227
11228 * or1k-tdep.c (or1k_dummy_id): Delete.
11229 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
11230
96acf884
AB
112312019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11232
11233 * nios2-tdep.c (nios2_dummy_id): Delete.
11234 (nios2_unwind_sp): Delete.
11235 (nios2_gdbarch_init): Don't register deleted functions with
11236 gdbarch.
11237
ca0ab0aa
AB
112382019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11239
11240 * nds32-tdep.c (nds32_dummy_id): Delete.
11241 (nds32_unwind_pc): Delete.
11242 (nds32_unwind_sp): Delete.
11243 (nds32_gdbarch_init): Don't register deleted functions with
11244 gdbarch.
11245
c8259044
AB
112462019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11247
11248 * msp430-tdep.c (msp430_unwind_pc): Delete.
11249 (msp430_unwind_sp): Delete.
11250 (msp430_dummy_id): Delete.
11251 (msp430_gdbarch_init): Don't register deleted functions with
11252 gdbarch.
11253
27f113c8
AB
112542019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11255
11256 * moxie-tdep.c (moxie_unwind_sp): Delete.
11257 (moxie_unwind_pc): Delete.
11258 (moxie_dummy_id): Delete.
11259 (moxie_gdbarch_init): Don't register deleted functions with
11260 gdbarch.
11261
aee6c3cd
AB
112622019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11263
11264 * mn10300-tdep.c (mn10300_dummy_id): Delete.
11265 (mn10300_unwind_pc): Delete.
11266 (mn10300_unwind_sp): Delete.
11267 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
11268 mn10300_unwind_sp.
11269 (mn10300_frame_unwind_init): Don't register deleted functions with
11270 gdbarch.
11271
8e2b5aea
AB
112722019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11273
11274 * mep-tdep.c (mep_unwind_pc): Delete.
11275 (mep_unwind_sp): Delete.
11276 (mep_dummy_id): Delete.
11277 (mep_gdbarch_init): Don't register deleted functions with
11278 gdbarch.
11279
43cf3ede
AB
112802019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11281
11282 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
11283 (m68hc11_unwind_sp): Delete.
11284 (m68hc11_gdbarch_init): Don't register deleted functions with
11285 gdbarch.
11286
5e79b7bb
AB
112872019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11288
11289 * m32r-tdep.c (m32r_unwind_sp): Delete.
11290 (m32r_unwind_pc): Delete.
11291 (m32r_dummy_id): Delete.
11292 (m32r_gdbarch_init): Don't register deleted functions with
11293 gdbarch.
11294
89b268d8
AB
112952019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11296
11297 * m32c-tdep.c (m32c_unwind_pc): Delete.
11298 (m32c_unwind_sp): Delete.
11299 (m32c_dummy_id): Delete.
11300 (m32c_gdbarch_init): Don't register deleted functions with
11301 gdbarch.
11302
946c28d2
AB
113032019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11304
11305 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
11306 (lm32_unwind_pc): Delete.
11307 (lm32_dummy_id): Delete.
11308 (lm32_gdbarch_init): Don't register deleted functions with
11309 gdbarch.
11310
bf12844a
AB
113112019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11312
11313 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
11314 (iq2000_unwind_pc): Delete.
11315 (iq2000_dummy_id): Delete.
11316 (iq2000_gdbarch_init): Don't register deleted functions with
11317 gdbarch.
11318
ecbc06d2
AB
113192019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11320
11321 * nds32-tdep.c (nds32_type_align): Delete.
11322 (nds32_push_dummy_call): Use type_align instead.
11323
030197b4
AB
113242019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11325
11326 * arm-tdep.c (arm_type_align): Only handle vector override case.
11327 (arm_push_dummy_call): Use type_align.
11328 (arm_gdbarch_init): Register arm_type_align gdbarch function.
11329
b907456c
AB
113302019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11331
11332 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
11333 case.
11334 (pass_on_stack): Use type_align.
11335 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
11336 function.
11337
9e97ba43
TT
113382019-04-23 Tom Tromey <tromey@adacore.com>
11339
11340 * dwarf2read.c (line_header::file_name_at): Remove unused
11341 overload.
11342
6892f601
TV
113432019-04-23 Tom de Vries <tdevries@suse.de>
11344
11345 PR gdb/24438
11346 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
11347 invocation.
11348
336d760d
AT
11349
113502019-03-27 Ali Tamur <tamur@google.com>
11351
11352 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
11353 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
11354 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
11355 (dwarf_expr_context::get_addr_index): Likewise
11356 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
11357 (symbol_needs_eval_context::get_addr_index): Likewise
11358 (disassemble_dwarf_expression): Add DW_OP_addrx
11359 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
11360 (read_cutu_die_from_dwo): Update comment
11361 (skip_one_die): Add DW_FORM_addrx
11362 (read_attribute_value): Likewise
11363 (var_decode_location): Add DW_OP_addrx
11364 (dwarf2_const_value_attr): Add DW_FORM_addrx
11365 (dump_die_shallow): Likewise
11366 (dwarf2_fetch_constant_bytes): Likewise
11367 (decode_locdesc): Add DW_OP_addrx
11368 (skip_form_bytes): Add DW_FORM_addrx
11369
ad9d13f8
AT
113702019-04-22 Ali Tamur <tamur@google.com>
11371
11372 * MAINTAINERS (Write After Approval): Add self.
11373
d70cc3ba
SM
113742019-04-22 Simon Marchi <simon.marchi@efficios.com>
11375
11376 * solib-svr4.c (get_svr4_info): Add pspace parameter.
11377 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
11378 (open_symbol_file_object): Likewise.
11379 (svr4_default_sos): Add info parameter.
11380 (svr4_read_so_list): Likewise.
11381 (svr4_current_sos_direct): Adjust functions calls to pass down
11382 info.
11383 (svr4_current_sos_1): Add info parameter.
11384 (svr4_current_sos): Call get_svr4_info, pass info down to
11385 svr4_current_sos_1.
11386 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
11387 get_svr4_info.
11388 (svr4_in_dynsym_resolve_code): Pass current_program_space to
11389 get_svr4_info.
11390 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
11391 to get_svr4_info.
11392 (probes_table_remove_objfile_probes): Likewise.
11393 (register_solib_event_probe): Add info parameter.
11394 (solist_update_incremental): Pass info parameter down to
11395 svr4_read_so_list.
11396 (disable_probes_interface): Add info parameter.
11397 (svr4_handle_solib_event): Pass current_program_space to
11398 get_svr4_info. Adjust disable_probes_interface cleanup.
11399 (svr4_create_probe_breakpoints): Add info parameter, pass it
11400 down to register_solib_event_probe.
11401 (svr4_create_solib_event_breakpoints): Add info parameter,
11402 pass it down to svr4_create_probe_breakpoints.
11403 (enable_break): Pass info down to
11404 svr4_create_solib_event_breakpoints.
11405 (svr4_solib_create_inferior_hook): Pass current_program_space to
11406 get_svr4_info.
11407 (svr4_clear_solib): Likewise.
11408
7905fc35
PA
114092019-04-22 Pedro Alves <palves@redhat.com>
11410
11411 * solib-svr4.c (svr4_free_objfile_observer): New.
11412 (probe_and_action::objfile): New field.
11413 (probes_table_htab_remove_objfile_probes)
11414 (probes_table_remove_objfile_probes): New functions.
11415 (register_solib_event_probe): Add 'objfile' parameter. Store it
11416 in the new probe_and_action. Don't store the probe in 'lookup'.
11417 (svr4_create_probe_breakpoints): Pass objfile to
11418 register_solib_event_probe.
11419 (_initialize_svr4_solib): Register a free_objfile observer.
11420
fb881986
TT
114212019-04-19 Tom Tromey <tom@tromey.com>
11422
11423 * common/queue.h: Remove.
11424
8732db6c
TT
114252019-04-19 Tom Tromey <tom@tromey.com>
11426
11427 * event-loop.c: Don't include "common/queue.h".
11428
97dfbadd
TT
114292019-04-19 Tom Tromey <tom@tromey.com>
11430
11431 * remote.c (remote_target): Use delete.
11432 * remote-notif.h: Include <list>, not "common/queue.h".
11433 (notif_client_p): Remove typedef.
11434 (remote_notif_state): Add constructor, destructor, initializer.
11435 <notif_queue>: Now a std::list.
11436 (remote_notif_state_xfree): Don't declare.
11437 * remote-notif.c (remote_notif_process, handle_notification)
11438 (remote_notif_state_allocate): Update.
11439 (~remote_notif_state): Rename from remote_notif_state_xfree.
11440
cf250e36
TT
114412019-04-19 Tom Tromey <tom@tromey.com>
11442
11443 * symfile.c (reread_symbols): Update.
11444 * objfiles.c (objfile_register_static_link)
11445 (objfile_lookup_static_link): Update
11446 (~objfile) Don't delete static_links.
11447 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
11448
61f4b350
TT
114492019-04-19 Tom Tromey <tom@tromey.com>
11450
11451 * type-stack.h (struct type_stack) <insert>: Constify string.
11452 * type-stack.c (type_stack::insert): Constify string.
11453 * gdbtypes.h (lookup_template_type): Update.
11454 (address_space_name_to_int): Update.
11455 * gdbtypes.c (address_space_name_to_int): Make space_identifier
11456 const.
11457 (lookup_template_type): Make name const.
11458 * c-exp.y: Update rules.
11459 (lex_one_token, classify_name, classify_inner_name)
11460 (c_print_token): Update.
11461 * p-exp.y: Update rules.
11462 (yylex): Update.
11463 * f-exp.y: Update rules.
11464 (yylex): Update.
11465 * d-exp.y: Update rules.
11466 (lex_one_token, classify_name, classify_inner_name): Update.
11467 * parse.c (write_dollar_variable, copy_name): Return std::string.
11468 * parser-defs.h (copy_name): Change return type.
11469 * m2-exp.y: Update rules.
11470 (yylex): Update.
11471 * go-exp.y (lex_one_token): Update.
11472 Update rules.
11473 (classify_unsafe_function, classify_packaged_name)
11474 (classify_name, yylex): Update.
11475
189b8c2e
ST
114762019-04-19 Sergei Trofimovich <siarheit@google.com>
11477
11478 * configure.ac: add --enable-source-highlight switch.
11479 * configure: Regenerate.
11480 * top.c (print_gdb_version): plumb --enable-source-highlight
11481 status to "show configuration".
11482
8ecb59f8
TT
114832019-04-19 Tom Tromey <tromey@adacore.com>
11484
11485 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
11486 Check ADA_TYPE_P.
11487 (empty_record, ada_template_to_fixed_record_type_1)
11488 (template_to_static_fixed_type)
11489 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
11490 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
11491 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
11492 macros.
11493
62160ec9
TT
114942019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
11495
11496 PR symtab/24423:
11497 * source.c (print_source_lines_base): Advance "iter" when a
11498 control character is seen.
11499
f2ae8bc8
PW
115002019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11501
11502 * inferior.h (struct infcall_suspend_state_deleter):
11503 Catch exception in destructor to avoid crash.
11504
d563b953
PW
115052019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11506
11507 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
11508 close to the add_com "shell".
11509
dc34c897
TT
115102019-04-18 Tom Tromey <tromey@adacore.com>
11511
11512 * process-stratum-target.h (class process_stratum_target)
11513 <stratum>: Add "final".
11514
a12e5744
TT
115152019-04-17 Tom Tromey <tromey@adacore.com>
11516
11517 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
11518 against nullptr before use.
11519
a7e559cc
AH
115202019-04-17 Alan Hayward <alan.hayward@arm.com>
11521
11522 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
11523
c01660c6
AB
115242019-04-17 Jim Wilson <jimw@sifive.com>
11525 Andrew Burgess <andrew.burgess@embecosm.com>
11526
11527 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
11528 code read might fail, assume 4-byte breakpoint in that case.
11529
4aa866af
LS
115302019-04-15 Leszek Swirski <leszeks@google.com>
11531
11532 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
11533 rather than a hand-rolled POD check when checking for forced MEMORY
11534 classification.
11535
48574d91
AH
115362019-04-15 Alan Hayward <alan.hayward@arm.com>
11537
11538 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
11539 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
11540 function.
11541 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
11542 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
11543 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
11544 declaration.
11545
4da037ef
AH
115462019-04-15 Alan Hayward <alan.hayward@arm.com>
11547
11548 * aarch64-linux-nat.c
11549 (aarch64_linux_nat_target::thread_architecture): Add override.
11550 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
11551 each VQ.
11552
ccb8d7e8
AH
115532019-04-15 Alan Hayward <alan.hayward@arm.com>
11554
11555 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
11556
35add35e
AB
115572019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
11558
11559 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
11560 target types of size 96-bits, add some additional comments, and
11561 check that the builtin type we found was the correct size.
11562
51196bbc
EZ
115632019-04-12 Eli Zaretskii <eliz@gnu.org>
11564
11565 * utils.c (prompt_for_continue): Don't restore the styling at the
11566 end, as applied_style has the wrong value. This fixes styling in
11567 long lists of file names that are interrupted by the "Continue?"
11568 prompt.
11569
62253a61
AB
115702019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
11571
11572 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
11573 * c-lang.c (c_language_defn): Likewise.
11574 (cplus_language_defn): Likewise.
11575 (asm_language_defn): Likewise.
11576 (minimal_language_defn): Likewise.
11577 * d-lang.c (d_language_defn): Likewise.
11578 * f-lang.c (f_language_defn): Likewise.
11579 * go-lang.c (go_language_defn): Likewise.
11580 * language.c (unknown_language_defn): Likewise.
11581 (auto_language_defn): Likewise.
11582 * language.h (struct language_defn): Remove la_magic field.
11583 (LANG_MAGIC): Delete.
11584 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
11585 * objc-lang.c (objc_language_defn): Likewise.
11586 * opencl-lang.c (opencl_language_defn): Likewise.
11587 * p-lang.c (pascal_language_defn): Likewise.
11588 * rust-lang.c (rust_language_defn): Likewise.
11589
a9158a86
AB
115902019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
11591
11592 * riscv-tdep.c (riscv_type_align): New function.
11593 (riscv_type_alignment): Delete.
11594 (riscv_arg_location): Use 'type_align'.
11595 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
11596
41077b66
AB
115972019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
11598
11599 * gdbtypes.c (type_align): A struct with no non-static fields also
11600 has alignment of 1.
11601
9f0272f8
AB
116022019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
11603
11604 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
11605 component to 0.
11606 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
11607 member.
11608 (riscv_struct_info::analyse): New implementation using new
11609 analyse_inner member function.
11610 (riscv_struct_info::field_offset): New member function.
11611 (riscv_struct_info::m_offsets): New member variable.
11612 (riscv_struct_info::analyse_inner): New private member function,
11613 takes the old implementation of riscv_struct_info::analyse but
11614 extended to track field offsets.
11615 (riscv_call_arg_struct): Update the struct folding special cases
11616 to handle cases where empty C++ structs, which are non-zero
11617 length, are found.
11618 (riscv_arg_location): Initialise the length of each location, a
11619 non-zero length now indicates the location is in use.
11620 (riscv_push_dummy_call): Allow for the first location having a
11621 non-zero offset when setting up arguments.
11622 (riscv_return_value): Likewise, but for return values.
11623
02cf60c7
TT
116242019-04-11 Tom Tromey <tromey@adacore.com>
11625
11626 * utils.c (internal_vproblem): Make "msg" const.
11627
68811f8f
AH
116282019-04-11 Alan Hayward <alan.hayward@arm.com>
11629
11630 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
11631 * trad-frame.c (trad_frame_reset_saved_regs): New function.
11632 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
11633 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
11634
3f52fdbc
KB
116352019-04-10 Kevin Buettner <kevinb@redhat.com>
11636
11637 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
11638 function.
11639 (fill_gregset): Call amd64_linux_collect_native_gregset instead
11640 of amd64_collect_native_gregset.
11641 (amd64_linux_nat_target::store_registers): Likewise.
11642
e9ad22ee
TT
116432019-04-10 Tom Tromey <tom@tromey.com>
11644
11645 * symtab.c (lookup_global_symbol_from_objfile)
11646 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
11647 * objfiles.h (class separate_debug_iterator): New.
11648 (class separate_debug_range): New.
11649 (struct objfile) <separate_debug_objfiles>: New method.
11650 (objfile_separate_debug_iterate): Don't declare.
11651 * objfiles.c (separate_debug_iterator::operator++): Rename from
11652 objfile_separate_debug_iterate.
11653 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
11654 iterator.
11655 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
11656 iterator.
11657
ee371134
TT
116582019-04-10 Tom Tromey <tom@tromey.com>
11659
11660 * symfile.c (reread_symbols): Remove old comment.
11661 * objfiles.c (free_all_objfiles): Fix a typo.
11662
bf227d61
TT
116632019-04-10 Tom Tromey <tom@tromey.com>
11664
11665 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
11666 * minsyms.c (lookup_minimal_symbol): Use foreach.
11667 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
11668 (lookup_minimal_symbol_solib_trampoline): Likewise.
11669 * symfile.c (reread_symbols): Use foreach.
11670
8dc433a0
TT
116712019-04-09 Ivan Begert <ivanbegert@gmail.com>
11672 Tom Tromey <tromey@adacore.com>
11673
11674 PR rust/24414:
11675 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
11676 (rust_lex_int_test): Change "value" to be LONGEST.
11677 (rust_lex_tests): Add test for long integer literal.
11678
9ab8741a
TT
116792019-04-09 Tom Tromey <tromey@adacore.com>
11680
11681 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
11682 to bool.
11683 (extended_remote_target::attach): Update.
11684 (remote_target::remote_notice_new_inferior): Update.
11685 (remote_target::add_current_inferior_and_thread): Update.
11686 * inferior.c (exit_inferior_1): Use "false".
11687 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
11688
e242fd12
SM
116892019-04-09 Simon Marchi <simon.marchi@efficios.com>
11690
9ca1957f 11691 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
e242fd12
SM
11692 the "start" command.
11693
2b0c8b01
KB
116942019-04-08 Kevin Buettner <kevinb@redhat.com>
11695
11696 * python/py-inferior.c (infpy_thread_from_thread_handle):
11697 Adjust comments to reflect renaming of thread_from_thread_handle
11698 to thread_from_handle. Adjust keywords. Fix type error message.
11699 (inferior_object_methods): Add thread_from_handle. Retain
11700 thread_from_thread_handle, but mark it as deprecated.
11701
50a82723
KB
117022019-04-08 Kevin Buettner <kevinb@redhat.com>
11703
11704 * gdbthread.h (find_thread_by_handle): Revise declaration.
11705 * thread.c (find_thread_by_handle): Likewise. Adjust
11706 implementation too.
11707 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
11708 support for buffer objects as handles.
11709
cf63b016
KB
117102019-04-08 Kevin Buettner <kevinb@redhat.com>
11711
11712 * python/py-infthread.c (thpy_thread_handle): New function.
11713 (thread_object_methods): Register thpy_thread_handle.
11714
3d6c6204
KB
117152019-04-08 Kevin Buettner <kevinb@redhat.com>
11716
11717 * gdbthread.h (thread_to_thread_handle): Declare.
11718 * thread.c (gdbtypes.h): Include.
11719 (thread_to_thread_handle): New function.
11720
11721 * target.h (struct target_ops): Add thread_info_to_thread_handle.
11722 (target_thread_info_to_thread_handle): Declare.
11723 * target.c (target_thread_info_to_thread_handle): New function.
11724 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
11725 * target-delegates.c: Regenerate.
11726
11727 * linux-thread-db.c (class thread_db_target): Add method
11728 thread_info_to_thread_handle.
11729 (thread_db_target::thread_info_to_thread_handle): Define.
11730 * remote.c (class remote_target): Add new method
11731 thread_info_to_thread_handle.
11732 (remote_target::thread_info_to_thread_handle): Define.
11733
56be6ea8
PA
117342019-04-08 Pedro Alves <palves@redhat.com>
11735
11736 * common/common-exceptions.c (throw_exception): Don't create
11737 named object to throw; throw directly.
11738 (throw_it): Likewise. Don't initialize gdb_exception::message
11739 here, with new; pass FMT and AP to the ctor instead.
11740 * common/common-exceptions.h: Include <string>.
11741 (gdb_exception::gdb_exception(enum return_reason, enum errors,
11742 const char *, va_list)): New ctor. Use std::make_shared.
11743 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
11744 errors)): Delete.
11745 (gdb_exception_error::gdb_exception_error(enum errors, const char
11746 *, va_list)): New.
11747 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
11748 Add assertion.
11749 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
11750 errors)): Delete.
11751 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
11752 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
11753 Add assertion.
11754
eedc3f4f
TT
117552019-04-08 Tom Tromey <tom@tromey.com>
11756
11757 * valops.c (value_rtti_indirect_type): Replace throw_exception
11758 with throw.
11759 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
11760 with throw.
11761 * thread.c (thr_try_catch_cmd): Replace throw_exception with
11762 throw.
11763 * target.c (target_translate_tls_address): Replace throw_exception
11764 with throw.
11765 * stack.c (frame_apply_command_count): Replace throw_exception
11766 with throw.
11767 * solib-spu.c (append_ocl_sos): Replace throw_exception with
11768 throw.
11769 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
11770 with throw.
11771 * rs6000-tdep.c (rs6000_frame_cache)
11772 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
11773 * remote.c: Replace throw_exception with throw.
11774 * record-full.c (record_full_message, record_full_wait_1)
11775 (record_full_restore): Replace throw_exception with throw.
11776 * record-btrace.c:
11777 (get_thread_current_frame_id, record_btrace_start_replaying)
11778 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
11779 (cmd_record_btrace_start): Replace throw_exception with throw.
11780 * parse.c (parse_exp_in_context_1): Replace throw_exception with
11781 throw.
11782 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
11783 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
11784 * linespec.c:
11785 (find_linespec_symbols): Replace throw_exception with throw.
11786 * infrun.c (displaced_step_prepare, resume): Replace
11787 throw_exception with throw.
11788 * infcmd.c (post_create_inferior): Replace throw_exception with
11789 throw.
11790 * inf-loop.c (inferior_event_handler): Replace throw_exception
11791 with throw.
11792 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
11793 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
11794 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
11795 (get_prev_frame_always, get_frame_pc_if_available)
11796 (get_frame_address_in_block_if_available, get_frame_language):
11797 Replace throw_exception with throw.
11798 * frame-unwind.c (frame_unwind_try_unwinder): Replace
11799 throw_exception with throw.
11800 * eval.c (fetch_subexp_value, evaluate_var_value)
11801 (evaluate_funcall, evaluate_subexp_standard): Replace
11802 throw_exception with throw.
11803 * dwarf2loc.c (call_site_find_chain)
11804 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
11805 Replace throw_exception with throw.
11806 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
11807 with throw.
11808 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
11809 throw.
11810 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
11811 * completer.c (complete_line_internal): Replace throw_exception
11812 with throw.
11813 * compile/compile-object-run.c (compile_object_run): Replace
11814 throw_exception with throw.
11815 * cli/cli-script.c (process_next_line): Replace throw_exception
11816 with throw.
11817 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
11818 (btrace_enable, btrace_maint_update_pt_packets): Replace
11819 throw_exception with throw.
11820 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
11821 throw_exception with throw.
11822 * break-catch-throw.c (re_set_exception_catchpoint): Replace
11823 throw_exception with throw.
11824 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
11825 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
11826 * aarch64-tdep.c (aarch64_make_prologue_cache)
11827 (aarch64_make_stub_cache): Replace throw_exception with throw.
11828
26003a20
TT
118292019-04-08 Tom Tromey <tom@tromey.com>
11830
11831 * common/common-exceptions.c (throw_exception): Rename from
11832 throw_exception_cxx. Remove old copy. Make argument const.
11833 (throw_it): Create and throw exception objects directly.
11834 * common/common-exceptions.h (throw_exception): Make argument
11835 const.
11836 (struct gdb_exception_error): Add constructor.
11837 (struct gdb_exception_quit): Add constructor.
11838
d272eb37
TT
118392019-04-08 Tom Tromey <tom@tromey.com>
11840
11841 * common/common-exceptions.h (exception_rethrow): Don't declare.
11842 (TRY_SJLJ): Update comment.
11843 (TRY, CATCH, END_CATCH): Remove.
11844 * common/common-exceptions.c (exception_rethrow): Remove.
11845
230d2906
TT
118462019-04-08 Tom Tromey <tom@tromey.com>
11847
11848 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
11849 Remove.
11850 (gdb_exception_error): Rename from
11851 gdb_exception_RETURN_MASK_ERROR.
11852 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
11853 (gdb_quit_bad_alloc): Update.
11854 * aarch64-tdep.c: Update.
11855 * ada-lang.c: Update.
11856 * ada-typeprint.c: Update.
11857 * ada-valprint.c: Update.
11858 * amd64-tdep.c: Update.
11859 * arch-utils.c: Update.
11860 * break-catch-throw.c: Update.
11861 * breakpoint.c: Update.
11862 * btrace.c: Update.
11863 * c-varobj.c: Update.
11864 * cli/cli-cmds.c: Update.
11865 * cli/cli-interp.c: Update.
11866 * cli/cli-script.c: Update.
11867 * common/common-exceptions.c: Update.
11868 * common/new-op.c: Update.
11869 * common/selftest.c: Update.
11870 * compile/compile-c-symbols.c: Update.
11871 * compile/compile-cplus-symbols.c: Update.
11872 * compile/compile-object-load.c: Update.
11873 * compile/compile-object-run.c: Update.
11874 * completer.c: Update.
11875 * corelow.c: Update.
11876 * cp-abi.c: Update.
11877 * cp-support.c: Update.
11878 * cp-valprint.c: Update.
11879 * darwin-nat.c: Update.
11880 * disasm-selftests.c: Update.
11881 * dtrace-probe.c: Update.
11882 * dwarf-index-cache.c: Update.
11883 * dwarf-index-write.c: Update.
11884 * dwarf2-frame-tailcall.c: Update.
11885 * dwarf2-frame.c: Update.
11886 * dwarf2loc.c: Update.
11887 * dwarf2read.c: Update.
11888 * eval.c: Update.
11889 * event-loop.c: Update.
11890 * event-top.c: Update.
11891 * exec.c: Update.
11892 * f-valprint.c: Update.
11893 * fbsd-tdep.c: Update.
11894 * frame-unwind.c: Update.
11895 * frame.c: Update.
11896 * gdbtypes.c: Update.
11897 * gnu-v3-abi.c: Update.
11898 * guile/guile-internal.h: Update.
11899 * guile/scm-block.c: Update.
11900 * guile/scm-breakpoint.c: Update.
11901 * guile/scm-cmd.c: Update.
11902 * guile/scm-disasm.c: Update.
11903 * guile/scm-frame.c: Update.
11904 * guile/scm-lazy-string.c: Update.
11905 * guile/scm-math.c: Update.
11906 * guile/scm-param.c: Update.
11907 * guile/scm-ports.c: Update.
11908 * guile/scm-pretty-print.c: Update.
11909 * guile/scm-symbol.c: Update.
11910 * guile/scm-symtab.c: Update.
11911 * guile/scm-type.c: Update.
11912 * guile/scm-value.c: Update.
11913 * i386-linux-tdep.c: Update.
11914 * i386-tdep.c: Update.
11915 * inf-loop.c: Update.
11916 * infcall.c: Update.
11917 * infcmd.c: Update.
11918 * infrun.c: Update.
11919 * jit.c: Update.
11920 * language.c: Update.
11921 * linespec.c: Update.
11922 * linux-fork.c: Update.
11923 * linux-nat.c: Update.
11924 * linux-tdep.c: Update.
11925 * linux-thread-db.c: Update.
11926 * main.c: Update.
11927 * mi/mi-cmd-break.c: Update.
11928 * mi/mi-cmd-stack.c: Update.
11929 * mi/mi-interp.c: Update.
11930 * mi/mi-main.c: Update.
11931 * objc-lang.c: Update.
11932 * p-valprint.c: Update.
11933 * parse.c: Update.
11934 * ppc-linux-tdep.c: Update.
11935 * printcmd.c: Update.
11936 * python/py-arch.c: Update.
11937 * python/py-breakpoint.c: Update.
11938 * python/py-cmd.c: Update.
11939 * python/py-finishbreakpoint.c: Update.
11940 * python/py-frame.c: Update.
11941 * python/py-framefilter.c: Update.
11942 * python/py-gdb-readline.c: Update.
11943 * python/py-inferior.c: Update.
11944 * python/py-infthread.c: Update.
11945 * python/py-lazy-string.c: Update.
11946 * python/py-linetable.c: Update.
11947 * python/py-objfile.c: Update.
11948 * python/py-param.c: Update.
11949 * python/py-prettyprint.c: Update.
11950 * python/py-progspace.c: Update.
11951 * python/py-record-btrace.c: Update.
11952 * python/py-record.c: Update.
11953 * python/py-symbol.c: Update.
11954 * python/py-type.c: Update.
11955 * python/py-unwind.c: Update.
11956 * python/py-utils.c: Update.
11957 * python/py-value.c: Update.
11958 * python/python.c: Update.
11959 * record-btrace.c: Update.
11960 * record-full.c: Update.
11961 * remote-fileio.c: Update.
11962 * remote.c: Update.
11963 * riscv-tdep.c: Update.
11964 * rs6000-aix-tdep.c: Update.
11965 * rs6000-tdep.c: Update.
11966 * rust-exp.y: Update.
11967 * rust-lang.c: Update.
11968 * s390-tdep.c: Update.
11969 * selftest-arch.c: Update.
11970 * solib-dsbt.c: Update.
11971 * solib-frv.c: Update.
11972 * solib-spu.c: Update.
11973 * solib-svr4.c: Update.
11974 * solib.c: Update.
11975 * sparc64-linux-tdep.c: Update.
11976 * stack.c: Update.
11977 * symfile-mem.c: Update.
11978 * symmisc.c: Update.
11979 * target.c: Update.
11980 * thread.c: Update.
11981 * top.c: Update.
11982 * tracefile-tfile.c: Update.
11983 * tui/tui.c: Update.
11984 * typeprint.c: Update.
11985 * unittests/cli-utils-selftests.c: Update.
11986 * unittests/parse-connection-spec-selftests.c: Update.
11987 * valops.c: Update.
11988 * valprint.c: Update.
11989 * value.c: Update.
11990 * varobj.c: Update.
11991 * windows-nat.c: Update.
11992 * x86-linux-nat.c: Update.
11993 * xml-support.c: Update.
11994
a70b8144
TT
119952019-04-08 Tom Tromey <tom@tromey.com>
11996
11997 * xml-support.c: Use C++ exception handling.
11998 * x86-linux-nat.c: Use C++ exception handling.
11999 * windows-nat.c: Use C++ exception handling.
12000 * varobj.c: Use C++ exception handling.
12001 * value.c: Use C++ exception handling.
12002 * valprint.c: Use C++ exception handling.
12003 * valops.c: Use C++ exception handling.
12004 * unittests/parse-connection-spec-selftests.c: Use C++ exception
12005 handling.
12006 * unittests/cli-utils-selftests.c: Use C++ exception handling.
12007 * typeprint.c: Use C++ exception handling.
12008 * tui/tui.c: Use C++ exception handling.
12009 * tracefile-tfile.c: Use C++ exception handling.
12010 * top.c: Use C++ exception handling.
12011 * thread.c: Use C++ exception handling.
12012 * target.c: Use C++ exception handling.
12013 * symmisc.c: Use C++ exception handling.
12014 * symfile-mem.c: Use C++ exception handling.
12015 * stack.c: Use C++ exception handling.
12016 * sparc64-linux-tdep.c: Use C++ exception handling.
12017 * solib.c: Use C++ exception handling.
12018 * solib-svr4.c: Use C++ exception handling.
12019 * solib-spu.c: Use C++ exception handling.
12020 * solib-frv.c: Use C++ exception handling.
12021 * solib-dsbt.c: Use C++ exception handling.
12022 * selftest-arch.c: Use C++ exception handling.
12023 * s390-tdep.c: Use C++ exception handling.
12024 * rust-lang.c: Use C++ exception handling.
12025 * rust-exp.y: Use C++ exception handling.
12026 * rs6000-tdep.c: Use C++ exception handling.
12027 * rs6000-aix-tdep.c: Use C++ exception handling.
12028 * riscv-tdep.c: Use C++ exception handling.
12029 * remote.c: Use C++ exception handling.
12030 * remote-fileio.c: Use C++ exception handling.
12031 * record-full.c: Use C++ exception handling.
12032 * record-btrace.c: Use C++ exception handling.
12033 * python/python.c: Use C++ exception handling.
12034 * python/py-value.c: Use C++ exception handling.
12035 * python/py-utils.c: Use C++ exception handling.
12036 * python/py-unwind.c: Use C++ exception handling.
12037 * python/py-type.c: Use C++ exception handling.
12038 * python/py-symbol.c: Use C++ exception handling.
12039 * python/py-record.c: Use C++ exception handling.
12040 * python/py-record-btrace.c: Use C++ exception handling.
12041 * python/py-progspace.c: Use C++ exception handling.
12042 * python/py-prettyprint.c: Use C++ exception handling.
12043 * python/py-param.c: Use C++ exception handling.
12044 * python/py-objfile.c: Use C++ exception handling.
12045 * python/py-linetable.c: Use C++ exception handling.
12046 * python/py-lazy-string.c: Use C++ exception handling.
12047 * python/py-infthread.c: Use C++ exception handling.
12048 * python/py-inferior.c: Use C++ exception handling.
12049 * python/py-gdb-readline.c: Use C++ exception handling.
12050 * python/py-framefilter.c: Use C++ exception handling.
12051 * python/py-frame.c: Use C++ exception handling.
12052 * python/py-finishbreakpoint.c: Use C++ exception handling.
12053 * python/py-cmd.c: Use C++ exception handling.
12054 * python/py-breakpoint.c: Use C++ exception handling.
12055 * python/py-arch.c: Use C++ exception handling.
12056 * printcmd.c: Use C++ exception handling.
12057 * ppc-linux-tdep.c: Use C++ exception handling.
12058 * parse.c: Use C++ exception handling.
12059 * p-valprint.c: Use C++ exception handling.
12060 * objc-lang.c: Use C++ exception handling.
12061 * mi/mi-main.c: Use C++ exception handling.
12062 * mi/mi-interp.c: Use C++ exception handling.
12063 * mi/mi-cmd-stack.c: Use C++ exception handling.
12064 * mi/mi-cmd-break.c: Use C++ exception handling.
12065 * main.c: Use C++ exception handling.
12066 * linux-thread-db.c: Use C++ exception handling.
12067 * linux-tdep.c: Use C++ exception handling.
12068 * linux-nat.c: Use C++ exception handling.
12069 * linux-fork.c: Use C++ exception handling.
12070 * linespec.c: Use C++ exception handling.
12071 * language.c: Use C++ exception handling.
12072 * jit.c: Use C++ exception handling.
12073 * infrun.c: Use C++ exception handling.
12074 * infcmd.c: Use C++ exception handling.
12075 * infcall.c: Use C++ exception handling.
12076 * inf-loop.c: Use C++ exception handling.
12077 * i386-tdep.c: Use C++ exception handling.
12078 * i386-linux-tdep.c: Use C++ exception handling.
12079 * guile/scm-value.c: Use C++ exception handling.
12080 * guile/scm-type.c: Use C++ exception handling.
12081 * guile/scm-symtab.c: Use C++ exception handling.
12082 * guile/scm-symbol.c: Use C++ exception handling.
12083 * guile/scm-pretty-print.c: Use C++ exception handling.
12084 * guile/scm-ports.c: Use C++ exception handling.
12085 * guile/scm-param.c: Use C++ exception handling.
12086 * guile/scm-math.c: Use C++ exception handling.
12087 * guile/scm-lazy-string.c: Use C++ exception handling.
12088 * guile/scm-frame.c: Use C++ exception handling.
12089 * guile/scm-disasm.c: Use C++ exception handling.
12090 * guile/scm-cmd.c: Use C++ exception handling.
12091 * guile/scm-breakpoint.c: Use C++ exception handling.
12092 * guile/scm-block.c: Use C++ exception handling.
12093 * guile/guile-internal.h: Use C++ exception handling.
12094 * gnu-v3-abi.c: Use C++ exception handling.
12095 * gdbtypes.c: Use C++ exception handling.
12096 * frame.c: Use C++ exception handling.
12097 * frame-unwind.c: Use C++ exception handling.
12098 * fbsd-tdep.c: Use C++ exception handling.
12099 * f-valprint.c: Use C++ exception handling.
12100 * exec.c: Use C++ exception handling.
12101 * event-top.c: Use C++ exception handling.
12102 * event-loop.c: Use C++ exception handling.
12103 * eval.c: Use C++ exception handling.
12104 * dwarf2read.c: Use C++ exception handling.
12105 * dwarf2loc.c: Use C++ exception handling.
12106 * dwarf2-frame.c: Use C++ exception handling.
12107 * dwarf2-frame-tailcall.c: Use C++ exception handling.
12108 * dwarf-index-write.c: Use C++ exception handling.
12109 * dwarf-index-cache.c: Use C++ exception handling.
12110 * dtrace-probe.c: Use C++ exception handling.
12111 * disasm-selftests.c: Use C++ exception handling.
12112 * darwin-nat.c: Use C++ exception handling.
12113 * cp-valprint.c: Use C++ exception handling.
12114 * cp-support.c: Use C++ exception handling.
12115 * cp-abi.c: Use C++ exception handling.
12116 * corelow.c: Use C++ exception handling.
12117 * completer.c: Use C++ exception handling.
12118 * compile/compile-object-run.c: Use C++ exception handling.
12119 * compile/compile-object-load.c: Use C++ exception handling.
12120 * compile/compile-cplus-symbols.c: Use C++ exception handling.
12121 * compile/compile-c-symbols.c: Use C++ exception handling.
12122 * common/selftest.c: Use C++ exception handling.
12123 * common/new-op.c: Use C++ exception handling.
12124 * cli/cli-script.c: Use C++ exception handling.
12125 * cli/cli-interp.c: Use C++ exception handling.
12126 * cli/cli-cmds.c: Use C++ exception handling.
12127 * c-varobj.c: Use C++ exception handling.
12128 * btrace.c: Use C++ exception handling.
12129 * breakpoint.c: Use C++ exception handling.
12130 * break-catch-throw.c: Use C++ exception handling.
12131 * arch-utils.c: Use C++ exception handling.
12132 * amd64-tdep.c: Use C++ exception handling.
12133 * ada-valprint.c: Use C++ exception handling.
12134 * ada-typeprint.c: Use C++ exception handling.
12135 * ada-lang.c: Use C++ exception handling.
12136 * aarch64-tdep.c: Use C++ exception handling.
12137
3d6e9d23
TT
121382019-04-08 Tom Tromey <tom@tromey.com>
12139
12140 * xml-support.c (gdb_xml_parser::parse): Update.
12141 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
12142 * value.c (show_convenience): Update.
12143 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
12144 (test_parse_flags_qcs): Update.
12145 * thread.c (thr_try_catch_cmd): Update.
12146 * target.c (target_translate_tls_address): Update.
12147 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
12148 (info_frame_command_core, frame_apply_command_count): Update.
12149 * rust-exp.y (rust_lex_exception_test): Update.
12150 * riscv-tdep.c (riscv_print_one_register_info): Update.
12151 * remote.c (remote_target::enable_btrace): Update.
12152 * record-btrace.c (record_btrace_enable_warn): Update.
12153 * python/py-utils.c (gdbpy_convert_exception): Update.
12154 * printcmd.c (do_one_display, print_variable_and_value): Update.
12155 * mi/mi-main.c (mi_print_exception): Update.
12156 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
12157 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
12158 * linux-nat.c (linux_nat_target::attach): Update.
12159 * linux-fork.c (class scoped_switch_fork_info): Update.
12160 * infrun.c (displaced_step_prepare): Update.
12161 * infcall.c (call_function_by_hand_dummy): Update.
12162 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
12163 * gnu-v3-abi.c (print_one_vtable): Update.
12164 * frame.c (get_prev_frame_always): Update.
12165 * f-valprint.c (info_common_command_for_block): Update.
12166 * exec.c (try_open_exec_file): Update.
12167 * exceptions.c (print_exception, exception_print)
12168 (exception_fprintf, exception_print_same): Update.
12169 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
12170 * dwarf-index-cache.c (index_cache::store)
12171 (index_cache::lookup_gdb_index): Update.
12172 * darwin-nat.c (maybe_cache_shell): Update.
12173 * cp-valprint.c (cp_print_value_fields): Update.
12174 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
12175 (gcc_cplus_symbol_address): Update.
12176 * compile/compile-c-symbols.c (gcc_convert_symbol)
12177 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
12178 * common/selftest.c: Update.
12179 * common/common-exceptions.h (struct gdb_exception) <message>: Now
12180 a std::string.
12181 (exception_try_scope_entry, exception_try_scope_exit): Don't
12182 declare.
12183 (struct exception_try_scope): Remove.
12184 (TRY): Don't use exception_try_scope.
12185 (struct gdb_exception): Add constructor, operator=.
12186 <what>: New method.
12187 (struct gdb_exception_RETURN_MASK_ALL)
12188 (struct gdb_exception_RETURN_MASK_ERROR)
12189 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
12190 (struct gdb_quit_bad_alloc): Update.
12191 * common/common-exceptions.c (exception_none): Change
12192 initializer.
12193 (struct catcher) <state, exception>: Initialize inline.
12194 <prev>: Remove member.
12195 (current_catcher): Remove.
12196 (catchers): New global.
12197 (exceptions_state_mc_init): Simplify.
12198 (catcher_pop): Remove.
12199 (exceptions_state_mc, exceptions_state_mc_catch): Update.
12200 (try_scope_depth, exception_try_scope_entry)
12201 (exception_try_scope_exit): Remove.
12202 (throw_exception_sjlj): Update.
12203 (exception_messages, exception_messages_size): Remove.
12204 (throw_it): Simplify.
12205 (gdb_exception_sliced_copy): Remove.
12206 (throw_exception_cxx): Update.
12207 * cli/cli-script.c (script_from_file): Update.
12208 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
12209 Update.
12210 * ada-valprint.c (ada_val_print): Update.
12211 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
12212 (create_excep_cond_exprs): Update.
12213
c5c10118
TT
122142019-04-08 Tom Tromey <tom@tromey.com>
12215
12216 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
12217 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
12218 (TRY, CATCH, END_CATCH): Remove some definitions.
12219 * common/common-exceptions.c: Don't use GDB_XCPT.
12220 (catcher_list_size): Remove.
12221 (throw_exception, throw_it): Simplify.
12222
4de283e4
TT
122232019-04-05 Tom Tromey <tom@tromey.com>
12224
12225 Revert the header-sorting patch.
12226 * ft32-tdep.c: Revert.
12227 * frv-tdep.c: Revert.
12228 * frv-linux-tdep.c: Revert.
12229 * frame.c: Revert.
12230 * frame-unwind.c: Revert.
12231 * frame-base.c: Revert.
12232 * fork-child.c: Revert.
12233 * findvar.c: Revert.
12234 * findcmd.c: Revert.
12235 * filesystem.c: Revert.
12236 * filename-seen-cache.h: Revert.
12237 * filename-seen-cache.c: Revert.
12238 * fbsd-tdep.c: Revert.
12239 * fbsd-nat.h: Revert.
12240 * fbsd-nat.c: Revert.
12241 * f-valprint.c: Revert.
12242 * f-typeprint.c: Revert.
12243 * f-lang.c: Revert.
12244 * extension.h: Revert.
12245 * extension.c: Revert.
12246 * extension-priv.h: Revert.
12247 * expprint.c: Revert.
12248 * exec.h: Revert.
12249 * exec.c: Revert.
12250 * exceptions.c: Revert.
12251 * event-top.c: Revert.
12252 * event-loop.c: Revert.
12253 * eval.c: Revert.
12254 * elfread.c: Revert.
12255 * dwarf2read.h: Revert.
12256 * dwarf2read.c: Revert.
12257 * dwarf2loc.c: Revert.
12258 * dwarf2expr.h: Revert.
12259 * dwarf2expr.c: Revert.
12260 * dwarf2-frame.c: Revert.
12261 * dwarf2-frame-tailcall.c: Revert.
12262 * dwarf-index-write.h: Revert.
12263 * dwarf-index-write.c: Revert.
12264 * dwarf-index-common.c: Revert.
12265 * dwarf-index-cache.h: Revert.
12266 * dwarf-index-cache.c: Revert.
12267 * dummy-frame.c: Revert.
12268 * dtrace-probe.c: Revert.
12269 * disasm.h: Revert.
12270 * disasm.c: Revert.
12271 * disasm-selftests.c: Revert.
12272 * dictionary.c: Revert.
12273 * dicos-tdep.c: Revert.
12274 * demangle.c: Revert.
12275 * dcache.h: Revert.
12276 * dcache.c: Revert.
12277 * darwin-nat.h: Revert.
12278 * darwin-nat.c: Revert.
12279 * darwin-nat-info.c: Revert.
12280 * d-valprint.c: Revert.
12281 * d-namespace.c: Revert.
12282 * d-lang.c: Revert.
12283 * ctf.c: Revert.
12284 * csky-tdep.c: Revert.
12285 * csky-linux-tdep.c: Revert.
12286 * cris-tdep.c: Revert.
12287 * cris-linux-tdep.c: Revert.
12288 * cp-valprint.c: Revert.
12289 * cp-support.c: Revert.
12290 * cp-namespace.c: Revert.
12291 * cp-abi.c: Revert.
12292 * corelow.c: Revert.
12293 * corefile.c: Revert.
12294 * continuations.c: Revert.
12295 * completer.h: Revert.
12296 * completer.c: Revert.
12297 * complaints.c: Revert.
12298 * coffread.c: Revert.
12299 * coff-pe-read.c: Revert.
12300 * cli-out.h: Revert.
12301 * cli-out.c: Revert.
12302 * charset.c: Revert.
12303 * c-varobj.c: Revert.
12304 * c-valprint.c: Revert.
12305 * c-typeprint.c: Revert.
12306 * c-lang.c: Revert.
12307 * buildsym.c: Revert.
12308 * buildsym-legacy.c: Revert.
12309 * build-id.h: Revert.
12310 * build-id.c: Revert.
12311 * btrace.c: Revert.
12312 * bsd-uthread.c: Revert.
12313 * breakpoint.h: Revert.
12314 * breakpoint.c: Revert.
12315 * break-catch-throw.c: Revert.
12316 * break-catch-syscall.c: Revert.
12317 * break-catch-sig.c: Revert.
12318 * blockframe.c: Revert.
12319 * block.c: Revert.
12320 * bfin-tdep.c: Revert.
12321 * bfin-linux-tdep.c: Revert.
12322 * bfd-target.c: Revert.
12323 * bcache.c: Revert.
12324 * ax-general.c: Revert.
12325 * ax-gdb.h: Revert.
12326 * ax-gdb.c: Revert.
12327 * avr-tdep.c: Revert.
12328 * auxv.c: Revert.
12329 * auto-load.c: Revert.
12330 * arm-wince-tdep.c: Revert.
12331 * arm-tdep.c: Revert.
12332 * arm-symbian-tdep.c: Revert.
12333 * arm-pikeos-tdep.c: Revert.
12334 * arm-obsd-tdep.c: Revert.
12335 * arm-nbsd-tdep.c: Revert.
12336 * arm-nbsd-nat.c: Revert.
12337 * arm-linux-tdep.c: Revert.
12338 * arm-linux-nat.c: Revert.
12339 * arm-fbsd-tdep.c: Revert.
12340 * arm-fbsd-nat.c: Revert.
12341 * arm-bsd-tdep.c: Revert.
12342 * arch-utils.c: Revert.
12343 * arc-tdep.c: Revert.
12344 * arc-newlib-tdep.c: Revert.
12345 * annotate.h: Revert.
12346 * annotate.c: Revert.
12347 * amd64-windows-tdep.c: Revert.
12348 * amd64-windows-nat.c: Revert.
12349 * amd64-tdep.c: Revert.
12350 * amd64-sol2-tdep.c: Revert.
12351 * amd64-obsd-tdep.c: Revert.
12352 * amd64-obsd-nat.c: Revert.
12353 * amd64-nbsd-tdep.c: Revert.
12354 * amd64-nbsd-nat.c: Revert.
12355 * amd64-nat.c: Revert.
12356 * amd64-linux-tdep.c: Revert.
12357 * amd64-linux-nat.c: Revert.
12358 * amd64-fbsd-tdep.c: Revert.
12359 * amd64-fbsd-nat.c: Revert.
12360 * amd64-dicos-tdep.c: Revert.
12361 * amd64-darwin-tdep.c: Revert.
12362 * amd64-bsd-nat.c: Revert.
12363 * alpha-tdep.c: Revert.
12364 * alpha-obsd-tdep.c: Revert.
12365 * alpha-nbsd-tdep.c: Revert.
12366 * alpha-mdebug-tdep.c: Revert.
12367 * alpha-linux-tdep.c: Revert.
12368 * alpha-linux-nat.c: Revert.
12369 * alpha-bsd-tdep.c: Revert.
12370 * alpha-bsd-nat.c: Revert.
12371 * aix-thread.c: Revert.
12372 * agent.c: Revert.
12373 * addrmap.c: Revert.
12374 * ada-varobj.c: Revert.
12375 * ada-valprint.c: Revert.
12376 * ada-typeprint.c: Revert.
12377 * ada-tasks.c: Revert.
12378 * ada-lang.c: Revert.
12379 * aarch64-tdep.c: Revert.
12380 * aarch64-ravenscar-thread.c: Revert.
12381 * aarch64-newlib-tdep.c: Revert.
12382 * aarch64-linux-tdep.c: Revert.
12383 * aarch64-linux-nat.c: Revert.
12384 * aarch64-fbsd-tdep.c: Revert.
12385 * aarch64-fbsd-nat.c: Revert.
12386 * aarch32-linux-nat.c: Revert.
12387
d55e5aa6
TT
123882019-04-05 Tom Tromey <tom@tromey.com>
12389
12390 * ft32-tdep.c: Sort headers.
12391 * frv-tdep.c: Sort headers.
12392 * frv-linux-tdep.c: Sort headers.
12393 * frame.c: Sort headers.
12394 * frame-unwind.c: Sort headers.
12395 * frame-base.c: Sort headers.
12396 * fork-child.c: Sort headers.
12397 * findvar.c: Sort headers.
12398 * findcmd.c: Sort headers.
12399 * filesystem.c: Sort headers.
12400 * filename-seen-cache.h: Sort headers.
12401 * filename-seen-cache.c: Sort headers.
12402 * fbsd-tdep.c: Sort headers.
12403 * fbsd-nat.h: Sort headers.
12404 * fbsd-nat.c: Sort headers.
12405 * f-valprint.c: Sort headers.
12406 * f-typeprint.c: Sort headers.
12407 * f-lang.c: Sort headers.
12408 * extension.h: Sort headers.
12409 * extension.c: Sort headers.
12410 * extension-priv.h: Sort headers.
12411 * expprint.c: Sort headers.
12412 * exec.h: Sort headers.
12413 * exec.c: Sort headers.
12414 * exceptions.c: Sort headers.
12415 * event-top.c: Sort headers.
12416 * event-loop.c: Sort headers.
12417 * eval.c: Sort headers.
12418 * elfread.c: Sort headers.
12419 * dwarf2read.h: Sort headers.
12420 * dwarf2read.c: Sort headers.
12421 * dwarf2loc.c: Sort headers.
12422 * dwarf2expr.h: Sort headers.
12423 * dwarf2expr.c: Sort headers.
12424 * dwarf2-frame.c: Sort headers.
12425 * dwarf2-frame-tailcall.c: Sort headers.
12426 * dwarf-index-write.h: Sort headers.
12427 * dwarf-index-write.c: Sort headers.
12428 * dwarf-index-common.c: Sort headers.
12429 * dwarf-index-cache.h: Sort headers.
12430 * dwarf-index-cache.c: Sort headers.
12431 * dummy-frame.c: Sort headers.
12432 * dtrace-probe.c: Sort headers.
12433 * disasm.h: Sort headers.
12434 * disasm.c: Sort headers.
12435 * disasm-selftests.c: Sort headers.
12436 * dictionary.c: Sort headers.
12437 * dicos-tdep.c: Sort headers.
12438 * demangle.c: Sort headers.
12439 * dcache.h: Sort headers.
12440 * dcache.c: Sort headers.
12441 * darwin-nat.h: Sort headers.
12442 * darwin-nat.c: Sort headers.
12443 * darwin-nat-info.c: Sort headers.
12444 * d-valprint.c: Sort headers.
12445 * d-namespace.c: Sort headers.
12446 * d-lang.c: Sort headers.
12447 * ctf.c: Sort headers.
12448 * csky-tdep.c: Sort headers.
12449 * csky-linux-tdep.c: Sort headers.
12450 * cris-tdep.c: Sort headers.
12451 * cris-linux-tdep.c: Sort headers.
12452 * cp-valprint.c: Sort headers.
12453 * cp-support.c: Sort headers.
12454 * cp-namespace.c: Sort headers.
12455 * cp-abi.c: Sort headers.
12456 * corelow.c: Sort headers.
12457 * corefile.c: Sort headers.
12458 * continuations.c: Sort headers.
12459 * completer.h: Sort headers.
12460 * completer.c: Sort headers.
12461 * complaints.c: Sort headers.
12462 * coffread.c: Sort headers.
12463 * coff-pe-read.c: Sort headers.
12464 * cli-out.h: Sort headers.
12465 * cli-out.c: Sort headers.
12466 * charset.c: Sort headers.
12467 * c-varobj.c: Sort headers.
12468 * c-valprint.c: Sort headers.
12469 * c-typeprint.c: Sort headers.
12470 * c-lang.c: Sort headers.
12471 * buildsym.c: Sort headers.
12472 * buildsym-legacy.c: Sort headers.
12473 * build-id.h: Sort headers.
12474 * build-id.c: Sort headers.
12475 * btrace.c: Sort headers.
12476 * bsd-uthread.c: Sort headers.
12477 * breakpoint.h: Sort headers.
12478 * breakpoint.c: Sort headers.
12479 * break-catch-throw.c: Sort headers.
12480 * break-catch-syscall.c: Sort headers.
12481 * break-catch-sig.c: Sort headers.
12482 * blockframe.c: Sort headers.
12483 * block.c: Sort headers.
12484 * bfin-tdep.c: Sort headers.
12485 * bfin-linux-tdep.c: Sort headers.
12486 * bfd-target.c: Sort headers.
12487 * bcache.c: Sort headers.
12488 * ax-general.c: Sort headers.
12489 * ax-gdb.h: Sort headers.
12490 * ax-gdb.c: Sort headers.
12491 * avr-tdep.c: Sort headers.
12492 * auxv.c: Sort headers.
12493 * auto-load.c: Sort headers.
12494 * arm-wince-tdep.c: Sort headers.
12495 * arm-tdep.c: Sort headers.
12496 * arm-symbian-tdep.c: Sort headers.
12497 * arm-pikeos-tdep.c: Sort headers.
12498 * arm-obsd-tdep.c: Sort headers.
12499 * arm-nbsd-tdep.c: Sort headers.
12500 * arm-nbsd-nat.c: Sort headers.
12501 * arm-linux-tdep.c: Sort headers.
12502 * arm-linux-nat.c: Sort headers.
12503 * arm-fbsd-tdep.c: Sort headers.
12504 * arm-fbsd-nat.c: Sort headers.
12505 * arm-bsd-tdep.c: Sort headers.
12506 * arch-utils.c: Sort headers.
12507 * arc-tdep.c: Sort headers.
12508 * arc-newlib-tdep.c: Sort headers.
12509 * annotate.h: Sort headers.
12510 * annotate.c: Sort headers.
12511 * amd64-windows-tdep.c: Sort headers.
12512 * amd64-windows-nat.c: Sort headers.
12513 * amd64-tdep.c: Sort headers.
12514 * amd64-sol2-tdep.c: Sort headers.
12515 * amd64-obsd-tdep.c: Sort headers.
12516 * amd64-obsd-nat.c: Sort headers.
12517 * amd64-nbsd-tdep.c: Sort headers.
12518 * amd64-nbsd-nat.c: Sort headers.
12519 * amd64-nat.c: Sort headers.
12520 * amd64-linux-tdep.c: Sort headers.
12521 * amd64-linux-nat.c: Sort headers.
12522 * amd64-fbsd-tdep.c: Sort headers.
12523 * amd64-fbsd-nat.c: Sort headers.
12524 * amd64-dicos-tdep.c: Sort headers.
12525 * amd64-darwin-tdep.c: Sort headers.
12526 * amd64-bsd-nat.c: Sort headers.
12527 * alpha-tdep.c: Sort headers.
12528 * alpha-obsd-tdep.c: Sort headers.
12529 * alpha-nbsd-tdep.c: Sort headers.
12530 * alpha-mdebug-tdep.c: Sort headers.
12531 * alpha-linux-tdep.c: Sort headers.
12532 * alpha-linux-nat.c: Sort headers.
12533 * alpha-bsd-tdep.c: Sort headers.
12534 * alpha-bsd-nat.c: Sort headers.
12535 * aix-thread.c: Sort headers.
12536 * agent.c: Sort headers.
12537 * addrmap.c: Sort headers.
12538 * ada-varobj.c: Sort headers.
12539 * ada-valprint.c: Sort headers.
12540 * ada-typeprint.c: Sort headers.
12541 * ada-tasks.c: Sort headers.
12542 * ada-lang.c: Sort headers.
12543 * aarch64-tdep.c: Sort headers.
12544 * aarch64-ravenscar-thread.c: Sort headers.
12545 * aarch64-newlib-tdep.c: Sort headers.
12546 * aarch64-linux-tdep.c: Sort headers.
12547 * aarch64-linux-nat.c: Sort headers.
12548 * aarch64-fbsd-tdep.c: Sort headers.
12549 * aarch64-fbsd-nat.c: Sort headers.
12550 * aarch32-linux-nat.c: Sort headers.
12551
699bd4cf
TT
125522019-04-04 Tom Tromey <tom@tromey.com>
12553
12554 * varobj.c (varobj_create): Update.
12555 * rust-exp.y (struct rust_parser) <update_innermost_block,
12556 lookup_symbol>: New methods.
12557 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
12558 Rename.
12559 (rust_parser::rust_lookup_type)
12560 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
12561 * printcmd.c (display_command, do_one_display): Update.
12562 * parser-defs.h (struct parser_state) <parser_state>: Add
12563 "tracker" parameter.
12564 (block_tracker): New member.
12565 (class innermost_block_tracker) <innermost_block_tracker>: Add
12566 "types" parameter.
12567 <reset>: Remove method.
12568 (innermost_block): Don't declare.
12569 (null_post_parser): Update.
12570 * parse.c (innermost_block): Remove global.
12571 (write_dollar_variable): Update.
12572 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
12573 Remove "tracker_types" parameter.
12574 (parse_expression): Add "tracker" parameter.
12575 (parse_expression_for_completion): Update.
12576 (null_post_parser): Add "tracker" parameter.
12577 * p-exp.y: Update rules.
12578 * m2-exp.y: Update rules.
12579 * language.h (struct language_defn) <la_post_parser>: Add
12580 "tracker" parameter.
12581 * go-exp.y: Update rules.
12582 * f-exp.y: Update rules.
12583 * expression.h (parse_expression, parse_exp_1): Add "tracker"
12584 parameter.
12585 * d-exp.y: Update rules.
12586 * c-exp.y: Update rules.
12587 * breakpoint.c (set_breakpoint_condition): Create an
12588 innermost_block_tracker.
12589 (watch_command_1): Likewise.
12590 * ada-lang.c (resolve): Add "tracker" parameter.
12591 (resolve_subexp): Likewise.
12592 * ada-exp.y (write_var_from_sym): Update.
12593
dac43e32
TT
125942019-04-04 Tom Tromey <tom@tromey.com>
12595
12596 * type-stack.h: New file.
12597 * type-stack.c: New file.
12598 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
12599 type-stack.h.
12600 (insert_into_type_stack, insert_type, push_type, push_type_int)
12601 (insert_type_address_space, pop_type, pop_type_int)
12602 (pop_typelist, pop_type_stack, append_type_stack)
12603 (push_type_stack, get_type_stack, push_typelist)
12604 (follow_type_instance_flags, follow_types): Don't declare.
12605 * parse.c (type_stack): Remove global.
12606 (parse_exp_in_context): Update.
12607 (insert_into_type_stack, insert_type, push_type, push_type_int)
12608 (insert_type_address_space, pop_type, pop_type_int)
12609 (pop_typelist, pop_type_stack, append_type_stack)
12610 (push_type_stack, get_type_stack, push_typelist)
12611 (follow_type_instance_flags, follow_types): Remove (moved to
12612 type-stack.c).
12613 * f-exp.y (type_stack): New global.
12614 Update rules.
12615 (push_kind_type, f_parse): Update.
12616 * d-exp.y (type_stack): New global.
12617 Update rules.
12618 (d_parse): Update.
12619 * c-exp.y (struct c_parse_state) <type_stack>: New member.
12620 Update rules.
12621 * Makefile.in (COMMON_SFILES): Add type-stack.c.
12622 (HFILES_NO_SRCDIR): Add type-stack.h.
12623
2a612529
TT
126242019-04-04 Tom Tromey <tom@tromey.com>
12625
12626 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
12627 (rust_parser::convert_ast_to_expression, rust_parse)
12628 (rust_lex_test_completion, rust_lex_tests): Update.
12629 * parser-defs.h (struct expr_completion_state): New.
12630 (struct parser_state) <parser_state>: Add completion parameter.
12631 <mark_struct_expression, mark_completion_tag>: New methods.
12632 <parse_completion, m_completion_state>: New members.
12633 (prefixify_expression, null_post_parser): Update.
12634 (mark_struct_expression, mark_completion_tag): Don't declare.
12635 * parse.c (parse_completion, expout_last_struct)
12636 (expout_tag_completion_type, expout_completion_name): Remove
12637 globals.
12638 (parser_state::mark_struct_expression)
12639 (parser_state::mark_completion_tag): Now methods.
12640 (prefixify_expression): Add last_struct parameter.
12641 (prefixify_subexp): Likewise.
12642 (parse_exp_1): Update.
12643 (parse_exp_in_context): Add cstate parameter. Update.
12644 (parse_expression_for_completion): Create an
12645 expr_completion_state.
12646 (null_post_parser): Add "completion" parameter.
12647 * p-exp.y: Update rules.
12648 (yylex): Update.
12649 * language.h (struct language_defn) <la_post_parser>: Add
12650 "completing" parameter.
12651 * go-exp.y: Update rules.
12652 (lex_one_token): Update.
12653 * expression.h (parse_completion): Don't declare.
12654 * d-exp.y: Update rules.
12655 (lex_one_token): Update rules.
12656 * c-exp.y: Update rules.
12657 (lex_one_token): Update.
12658 * ada-lang.c (resolve): Add "parse_completion" parameter.
12659 (resolve_subexp): Likewise.
12660 (ada_resolve_function): Likewise.
12661
43476f0b
TT
126622019-04-04 Tom Tromey <tom@tromey.com>
12663
12664 * parser-defs.h (struct parser_state) <start_arglist,
12665 end_arglist>: New methods.
12666 <arglist_len, m_funcall_chain>: New members.
12667 (arglist_len, start_arglist, end_arglist): Don't declare.
12668 * parse.c (arglist_len, funcall_chain): Remove global.
12669 (start_arglist, end_arglist): Remove functions.
12670 (parse_exp_in_context): Update.
12671 * p-exp.y: Update rules.
12672 * m2-exp.y: Update rules.
12673 * go-exp.y: Update rules.
12674 * f-exp.y: Update rules.
12675 * d-exp.y: Update rules.
12676 * c-exp.y: Update rules.
12677
5776fca3
TT
126782019-04-04 Tom Tromey <tom@tromey.com>
12679
12680 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
12681 lex_operator, push_back>: New methods.
12682 Update all rules.
12683 (rust_parser::lex_hex, lex_escape): Rename and update.
12684 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
12685 (rust_parser::lex_operator): Rename and update.
12686 (rust_parser::lex_number, rustyylex, rustyyerror)
12687 (rust_lex_test_init, rust_lex_test_sequence)
12688 (rust_lex_test_push_back, rust_lex_tests): Update.
12689 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
12690 parameter.
12691 <lexptr, prev_lexptr>: New members.
12692 (lexptr, prev_lexptr): Don't declare.
12693 * parse.c (lexptr, prev_lexptr): Remove globals.
12694 (parse_exp_in_context): Update.
12695 * p-exp.y (yylex, yyerror): Update.
12696 * m2-exp.y (parse_number, yylex, yyerror): Update.
12697 * go-exp.y (lex_one_token, yyerror): Update.
12698 * f-exp.y (match_string_literal, yylex, yyerror): Update.
12699 * d-exp.y (lex_one_token, yyerror): Update.
12700 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
12701 (lex_one_token, yyerror): Update.
12702 * ada-lex.l (YY_INPUT): Update.
12703 (rewind_to_char): Update.
12704 * ada-exp.y (yyerror): Update.
12705
8621b685
TT
127062019-04-04 Tom Tromey <tom@tromey.com>
12707
12708 * rust-exp.y (rustyylex, rust_lex_tests): Update.
12709 * parser-defs.h (struct parser_state) <parser_state>: Add new
12710 parameter.
12711 <comma_terminates>: New member.
12712 (comma_terminates): Don't declare global.
12713 * parse.c (comma_terminates): Remove global.
12714 (parse_exp_in_context): Update.
12715 * p-exp.y (yylex): Update.
12716 * m2-exp.y (yylex): Update.
12717 * go-exp.y (lex_one_token): Update.
12718 * f-exp.y (yylex): Update.
12719 * d-exp.y (lex_one_token): Update.
12720 * c-exp.y (lex_one_token): Update.
12721 * ada-lex.l: Update.
12722
28aaf3fd
TT
127232019-04-04 Tom Tromey <tom@tromey.com>
12724
12725 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
12726 (rustyylex, rust_lex_test_init, rust_lex_test_one)
12727 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
12728 * parser-defs.h (paren_depth): Don't declare.
12729 * parse.c (paren_depth): Remove global.
12730 (parse_exp_in_context): Update.
12731 * p-exp.y (paren_depth): New global.
12732 (pascal_parse): Initialize it.
12733 * m2-exp.y (paren_depth): New global.
12734 (m2_parse): Initialize it.
12735 * go-exp.y (paren_depth): New global.
12736 (go_parse): Initialize it.
12737 * f-exp.y (paren_depth): New global.
12738 (f_parse): Initialize it.
12739 * d-exp.y (paren_depth): New global.
12740 (d_parse): Initialize it.
12741 * c-exp.y (paren_depth): New global.
12742 (c_parse): Initialize it.
12743 * ada-lex.l (paren_depth): New global.
12744 (lexer_init): Initialize it.
12745
1e58a4a4
TT
127462019-04-04 Tom Tromey <tom@tromey.com>
12747
12748 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
12749 (rust_parser::convert_ast_to_type)
12750 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
12751 * parser-defs.h (struct parser_state) <parser_state>: Add
12752 parameters. Initialize new members.
12753 <expression_context_block, expression_context_pc>: New members.
12754 * parse.c (expression_context_block, expression_context_pc):
12755 Remove globals.
12756 (parse_exp_in_context): Update.
12757 * p-exp.y: Update all rules.
12758 (yylex): Update.
12759 * m2-exp.y: Update all rules.
12760 (yylex): Update.
12761 * go-exp.y (yylex): Update.
12762 * f-exp.y (yylex): Update.
12763 * d-exp.y: Update all rules.
12764 (yylex): Update.
12765 * c-exp.y: Update all rules.
12766 (lex_one_token, classify_name, yylex, c_parse): Update.
12767 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
12768
37eedb39
TT
127692019-04-04 Tom Tromey <tom@tromey.com>
12770
12771 * gdbarch.h, gdbarch.c: Rebuild.
12772 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
12773 * stap-probe.h:
12774 (struct stap_parse_info): Replace "parser_state" with
12775 "expr_builder".
12776 * parser-defs.h (struct expr_builder): Rename from "parser_state".
12777 (parser_state): New class.
12778 * parse.c (expr_builder): Rename.
12779 (expr_builder::release): Rename.
12780 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
12781 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
12782 (write_exp_elt_longcst, write_exp_elt_floatcst)
12783 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
12784 (write_exp_string_vector, write_exp_bitstring)
12785 (write_exp_msymbol, mark_struct_expression)
12786 (write_dollar_variable)
12787 (insert_type_address_space, increase_expout_size): Replace
12788 "parser_state" with "expr_builder".
12789 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
12790 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
12791 "parser_state" with "expr_builder".
12792
73923d7e
TT
127932019-04-04 Tom Tromey <tom@tromey.com>
12794
12795 * rust-exp.y: Replace "parse_language" with method call.
12796 * p-exp.y:
12797 (yylex): Replace "parse_language" with method call.
12798 * m2-exp.y:
12799 (yylex): Replace "parse_language" with method call.
12800 * go-exp.y (classify_name): Replace "parse_language" with method
12801 call.
12802 * f-exp.y (yylex): Replace "parse_language" with method call.
12803 * d-exp.y (lex_one_token): Replace "parse_language" with method
12804 call.
12805 * c-exp.y:
12806 (lex_one_token, classify_name, yylex): Replace "parse_language"
12807 with method call.
12808 * ada-exp.y (find_primitive_type, type_char)
12809 (type_system_address): Replace "parse_language" with method call.
12810
fa9f5be6
TT
128112019-04-04 Tom Tromey <tom@tromey.com>
12812
12813 * rust-exp.y: Replace "parse_gdbarch" with method call.
12814 * parse.c (write_dollar_variable, insert_type_address_space):
12815 Replace "parse_gdbarch" with method call.
12816 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
12817 call.
12818 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
12819 call.
12820 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
12821 "parse_gdbarch" with method call.
12822 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
12823 with method call.
12824 * f-exp.y (parse_type, parse_f_type, yylex): Replace
12825 "parse_gdbarch" with method call.
12826 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
12827 "parse_gdbarch" with method call.
12828 * c-exp.y (parse_type, parse_number, classify_name): Replace
12829 "parse_gdbarch" with method call.
12830 * ada-lex.l: Replace "parse_gdbarch" with method call.
12831 * ada-exp.y (parse_type, find_primitive_type, type_char)
12832 (type_system_address): Replace "parse_gdbarch" with method call.
12833
1201a264
TT
128342019-04-04 Tom Tromey <tom@tromey.com>
12835
12836 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
12837 * stap-probe.c (stap_parse_argument): Update.
12838 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
12839 initial_size parameter.
12840 * rust-exp.y (rust_lex_tests): Update.
12841 * parse.c (parser_state): Update.
12842 (parse_exp_in_context): Update.
12843 * parser-defs.h (struct parser_state) <parser_state>: Remove
12844 "initial_size" parameter.
12845
e3980ce2
TT
128462019-04-04 Tom Tromey <tom@tromey.com>
12847
12848 * parser-defs.h (increase_expout_size): Don't declare.
12849 * parse.c (increase_expout_size): Now static.
12850
e9f8e3f1
TS
128512019-04-04 Thomas Schwinge <thomas@codesourcery.com>
12852
12853 * gnu-nat.c (gnu_nat_target::wait): Fix
12854 target_waitstatus_to_string call.
12855
d7df6549
AB
128562019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
12857
12858 * eval.c (evaluate_subexp_standard): Handle internal functions
12859 during Fortran function call handling.
12860
8bdc1658
AB
128612019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
12862
12863 * NEWS: Mention new internal functions.
12864 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
12865 (read_base_type): Use dwarf2_init_complex_target_type.
12866 * value.c (creal_internal_fn): New function.
12867 (cimag_internal_fn): New function.
12868 (_initialize_values): Register new internal functions.
12869
c29705b7
PW
128702019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12871
12872 * infrun.c (stop_all_threads): If debug_infrun, always
12873 trace the wait status after wait_one, using
12874 target_waitstatus_to_string and target_pid_to_str.
12875 (handle_inferior_event): Replace various trace of
12876 wait status kind by a single trace.
12877 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
12878 wait status kind image by target_waitstatus_to_string.
12879 * target/waitstatus.c (target_waitstatus_to_string): Fix
12880 obsolete comment.
12881
05caa1d2
TT
128822019-04-01 Tom Tromey <tromey@adacore.com>
12883
12884 PR symtab/23331:
12885 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
12886
9d1447e0
SDJ
128872019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
12888 Pedro Alves <palves@redhat.com>
12889
12890 * top.c (quit_force): Call 'finalize_values'.
12891 * value.c (finalize_values): New function.
12892 * value.h (finalize_values): Declare.
12893
7734102d
EZ
128942019-03-30 Eli Zaretskii <eliz@gnu.org>
12895
12896 * NEWS: Announce $_gdb_major and $_gdb_minor.
12897
12898 * top.c (init_gdb_version_vars): New function.
12899 (gdb_init): Call init_gdb_version_vars.
12900
188e1fa9
TT
129012019-03-29 Tom Tromey <tromey@adacore.com>
12902
12903 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
12904 help text. Remove dead code.
12905
2880242d
KS
129062019-03-29 Keith Seitz <keiths@redhat.com>
12907
12908 From Siddhesh Poyarekar:
12909 * f-lang.h (f77_get_upperbound): Return LONGEST.
12910 (f77_get_lowerbound): Likewise.
12911 * f-typeprint.c (f_type_print_varspec_suffix): Expand
12912 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
12913 print them.
12914 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
12915 plongest to format print it.
12916 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
12917 (f77_get_upperbound): Likewise.
12918 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
12919 LOWER_BOUND to LONGEST.
12920 (f77_create_arrayprint_offset_tbl): Likewise.
12921
cc1defb1
KS
129222019-03-29 Keith Seitz <keiths@redhat.com>
12923
12924 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
12925 %s/pulongest for TYPE_LENGTH instead of %d in format
12926 strings.
12927 * ada-typerint.c (ada_print_type): Likewise.
12928 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
12929 * compile/compile-c-support.c (generate_register_struct): Likewise.
12930 * gdbtypes.c (recursive_dump_type): Likewise.
12931 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
12932 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
12933 instead of %d in format strings.
12934 * riscv-tdep.c (riscv_type_alignment): Cast second argument
12935 to std::min to ULONGEST.
12936 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
12937 instead of %d in format strings.
12938 * tracepoint.c (info_scope_command): Likewise.
12939 * typeprint.c (print_offset_data::update)
12940 (print_offset_data::finish): Likewise.
12941 * xtensa-tdep.c (xtensa_store_return_value)
12942 (xtensa_push_dummy_call): Likewise.
12943
e432ccf1
JT
129442019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
12945
12946 * windows-nat.c (display_selector): Fixed format specifications
12947 for 64-bit Cygwin.
12948
65d2b333
PW
129492019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12950
12951 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
12952
f489207e
SL
129532019-03-28 Sandra Loosemore <sandra@codesourcery.com>
12954
12955 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
12956 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
12957 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
12958 (nios2_linux_init_abi): Install it.
12959
bffa1015
AH
129602019-03-28 Alan Hayward <alan.hayward@arm.com>
12961
12962 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
12963
fc96163a
AH
129642019-03-28 Alan Hayward <alan.hayward@arm.com>
12965
12966 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
12967
20dc7e9b
PW
129682019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12969 Tom Tromey <tromey@adacore.com>
12970
12971 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
12972
7f5331a8
JB
129732019-03-26 Joel Brobecker <brobecker@adacore.com>
12974
12975 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
12976 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
12977 method to compute the bounds of range types. Also print "[evaluated]"
12978 if the bounds' values come from a dynamic evaluation.
12979
18c77628
AB
129802019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
12981
12982 * cp-valprint.c (cp_print_value_fields): Don't print trailing
12983 whitespace when pretty printing is on.
12984
53c973f2
AH
129852019-03-26 Alan Hayward <alan.hayward@arm.com>
12986
e79be6e5 12987 * ppc-linux-nat.c: Add include.
53c973f2 12988
d851aa71
AH
129892019-03-26 Alan Hayward <alan.hayward@arm.com>
12990
e79be6e5 12991 * NEWS: Mention AArch64 Pointer Authentication.
d851aa71 12992
2fe7bab7
AH
129932019-03-26 Alan Hayward <alan.hayward@arm.com>
12994
e79be6e5 12995 * arm-linux-nat.c: Add include.
2fe7bab7 12996
068ef30e
SM
129972019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
12998
12999 * source-cache.c (source_cache::get_source_lines): Re-read
13000 fullname after calling open_source_file.
13001
81a24d04
JB
130022019-03-25 John Baldwin <jhb@FreeBSD.org>
13003
13004 * NEWS: Mention TLS support for FreeBSD.
13005
79e7ae11
TT
130062019-03-25 Tom Tromey <tromey@adacore.com>
13007
13008 * minsyms.c (BUNCH_SIZE): Update comment.
13009 (~minimal_symbol_reader): Remove old comment.
13010 (compact_minimal_symbols): Update comment.
13011 (minimal_symbol_reader::install): Remove old comment. Update
13012 other comments.
13013
d45963c2
AH
130142019-03-25 Alan Hayward <alan.hayward@arm.com>
13015
13016 * s390-linux-nat.c: Add include.
13017
0f83012e
AH
130182019-03-25 Alan Hayward <alan.hayward@arm.com>
13019
13020 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
13021 Call linux_get_hwcap.
13022 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
13023 Likewise.
13024 (aarch64_linux_get_hwcap): Remove function.
13025 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
13026 declaration.
13027 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
13028 linux_get_hwcap.
13029 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
13030 * linux-tdep.c (linux_get_hwcap): Add function.
13031 (linux_get_hwcap2): Likewise.
13032 * linux-tdep.h (linux_get_hwcap): Add declaration.
13033 (linux_get_hwcap2): Likewise.
13034 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
13035 (ppc_linux_get_hwcap2): Likewise.
13036 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
13037 linux_get_hwcap.
13038 (ppc_linux_nat_target::insert_watchpoint): Likewise.
13039 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
13040 (ppc_linux_nat_target::read_description): Likewise.
13041 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
13042 * s390-linux-nat.c: Likewise.
13043 * s390-linux-tdep.c (s390_core_read_description): Likewise.
13044
6640a367
TT
130452019-03-24 Tom Tromey <tom@tromey.com>
13046
13047 * ada-lang.c (standard_lookup): Simplify initialization.
13048 (ada_lookup_symbol_nonlocal): Simplify return.
13049 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
13050 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
13051 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
13052 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
13053 initialization.
13054 * solib.c (solib_global_lookup): Simplify.
13055 * symtab.c (null_block_symbol): Remove.
13056 (symbol_cache_lookup): Simplify returns.
13057 (lookup_language_this): Simplify returns.
13058 (lookup_symbol_aux): Simplify return.
13059 (lookup_local_symbol): Simplify returns.
13060 (lookup_global_symbol_from_objfile): Simplify return.
13061 (lookup_symbol_in_objfile_symtabs)
13062 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
13063 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
13064 (lookup_static_symbol, lookup_global_symbol): Simplify return.
13065 * cp-namespace.c (cp_lookup_bare_symbol)
13066 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
13067 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
13068 (cp_lookup_nested_symbol): Don't use null_block_symbol.
13069 (cp_lookup_symbol_via_imports): Simplify initialization.
13070 (find_symbol_in_baseclass): Likewise.
13071 * symtab.h (null_block_symbol): Remove.
13072 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
13073 (d_lookup_nested_symbol, d_lookup_symbol_imports)
13074 (d_lookup_symbol_module): Likewise.
13075 (find_symbol_in_baseclass): Simplify initialization.
13076
a930ebcd
TT
130772019-03-24 Tom Tromey <tom@tromey.com>
13078
13079 * expression.h: Don't include symtab.h.
13080 (struct block): Forward declare.
13081
582942f4
TT
130822019-03-24 Tom Tromey <tom@tromey.com>
13083
13084 * c-exp.y (typebase): Remove casts.
13085 * gdbtypes.c (lookup_unsigned_typename, )
13086 (lookup_signed_typename): Remove cast.
13087 * eval.c (parse_to_comma_and_eval): Remove cast.
13088 * parse.c (write_dollar_variable): Remove cast.
13089 * block.h (struct block) <superblock>: Now const.
13090 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
13091 * psymtab.c (psym_map_matching_symbols): Make "block" const.
13092 (map_block): Make "block" const.
13093 * symfile.h (struct quick_symbol_functions)
13094 <map_matching_symbols>: Constify block argument to "callback".
13095 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
13096 const.
13097 (find_pc_sect_compunit_symtab): Make "b" const.
13098 (find_symbol_at_address): Likewise.
13099 (search_symbols): Likewise.
13100 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
13101 (dw2_debug_names_lookup_symbol): Likewise.
13102 (dw2_map_matching_symbols): Update.
13103 * p-valprint.c (pascal_val_print): Remove "block".
13104 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
13105 (aux_add_nonlocal_symbols): Make "block" const.
13106 (resolve_subexp): Remove cast.
13107 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
13108 const.
13109 (iterate_over_file_blocks): Likewise.
13110 * f-exp.y (%union) <bval>: Remove.
13111 * coffread.c (patch_opaque_types): Make "b" const.
13112 * spu-tdep.c (spu_catch_start): Make "block" const.
13113 * c-valprint.c (print_unpacked_pointer): Remove "block".
13114 * symmisc.c (dump_symtab_1): Make "b" const.
13115 (block_depth): Make "block" const.
13116 * d-exp.y (%union) <bval>: Remove.
13117 * cp-support.h (cp_lookup_rtti_type): Update.
13118 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
13119 * psymtab.c (psym_lookup_symbol): Make "block" const.
13120 (maintenance_check_psymtabs): Make "b" const.
13121 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
13122 (enumerate_locals, enumerate_args): Update.
13123 * python/py-symtab.c (stpy_global_block): Make "block" const.
13124 (stpy_static_block): Likewise.
13125 * inline-frame.c (block_starting_point_at): Make "new_block"
13126 const.
13127 * block.c (find_block_in_blockvector): Make return type const.
13128 (blockvector_for_pc_sect): Make "b" const.
13129 (find_block_in_blockvector): Make "b" const.
13130
7ad417dd
TT
131312019-03-23 Tom Tromey <tom@tromey.com>
13132
13133 * varobj.c (varobj_create): Update.
13134 * symfile.c (clear_symtab_users): Don't reset innermost_block.
13135 * printcmd.c (display_command, do_one_display): Don't reset
13136 innermost_block.
13137 * parser-defs.h (enum innermost_block_tracker_type): Move to
13138 expression.h.
13139 (innermost_block): Update comment.
13140 * parse.c (parse_exp_1): Add tracker_types parameter.
13141 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
13142 tracker_types parameter. Reset innermost_block.
13143 (parse_exp_in_context): Remove.
13144 (parse_expression_for_completion): Update.
13145 * objfiles.c (~objfile): Don't reset expression_context_block or
13146 innermost_block.
13147 * expression.h (enum innermost_block_tracker_type): Move from
13148 parser-defs.h.
13149 (parse_exp_1): Add tracker_types parameter.
13150 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
13151 reset innermost_block.
13152
b366c208
TT
131532019-03-23 Tom Tromey <tom@tromey.com>
13154
13155 * objfiles.h: Include bcache.h.
13156
9bb9b2f9
TT
131572019-03-23 Tom Tromey <tom@tromey.com>
13158
13159 * linespec.c (get_current_search_block): Use
13160 scoped_restore_current_language.
13161 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
13162
59c28372
AH
131632019-03-22 Alan Hayward <alan.hayward@arm.com>
13164 Jiong Wang <jiong.wang@arm.com>
13165
13166 * aarch64-linux-tdep.c
13167 (aarch64_linux_iterate_over_regset_sections): Check for pauth
13168 section.
13169 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
13170
17e116a7
AH
131712019-03-22 Alan Hayward <alan.hayward@arm.com>
13172 Jiong Wang <jiong.wang@arm.com>
13173
13174 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
13175 instructions.
13176 (aarch64_analyze_prologue_test): Add PACIASP test.
13177 (aarch64_prologue_prev_register): Unmask PC value.
13178
11e1b75f
AH
131792019-03-22 Alan Hayward <alan.hayward@arm.com>
13180 Jiong Wang <jiong.wang@arm.com>
13181
13182 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
13183 (aarch64_dwarf2_prev_register): Unmask PC value.
13184 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
13185 (aarch64_execute_dwarf_cfa_vendor_op): Check for
13186 DW_CFA_AARCH64_negate_ra_state.
13187 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
13188
34dcc7cf
AH
131892019-03-22 Alan Hayward <alan.hayward@arm.com>
13190 Jiong Wang <jiong.wang@arm.com>
13191
13192 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
13193 registers.
13194 (aarch64_pseudo_register_name): Likewise.
13195 (aarch64_pseudo_register_type): Likewise.
13196 (aarch64_pseudo_register_reggroup_p): Likewise.
13197 (aarch64_gdbarch_init): Add pauth registers.
13198 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
13199 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
13200 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
13201 (struct gdbarch_tdep): Add regnum for ra_state.
13202
1ef53e6b
AH
132032019-03-22 Alan Hayward <alan.hayward@arm.com>
13204 Jiong Wang <jiong.wang@arm.com>
13205
13206 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
13207
76bed0fd
AH
132082019-03-22 Alan Hayward <alan.hayward@arm.com>
13209 Jiong Wang <jiong.wang@arm.com>
13210
13211 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
13212 function.
13213 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
13214 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
13215 (aarch64_gdbarch_init): Add puth registers.
13216 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
13217 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
13218 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
13219
ee4fbcfa
AH
132202019-03-22 Alan Hayward <alan.hayward@arm.com>
13221 Jiong Wang <jiong.wang@arm.com>
13222
13223 * aarch64-linux-nat.c
13224 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
13225 * aarch64-linux-tdep.c
13226 (aarch64_linux_core_read_description): Likewise.
13227 (aarch64_linux_get_hwcap): New function.
13228 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
13229 (aarch64_linux_get_hwcap): New declaration.
13230
6dc0ebde
AH
132312019-03-22 Alan Hayward <alan.hayward@arm.com>
13232 Jiong Wang <jiong.wang@arm.com>
13233
13234 * aarch64-linux-nat.c
13235 (aarch64_linux_nat_target::read_description): Add pauth param.
13236 * aarch64-linux-tdep.c
13237 (aarch64_linux_core_read_description): Likewise.
13238 * aarch64-tdep.c (struct target_desc): Add in pauth.
13239 (aarch64_read_description): Add pauth param.
13240 (aarch64_gdbarch_init): Likewise.
13241 * aarch64-tdep.h (aarch64_read_description): Likewise.
13242 * arch/aarch64.c (aarch64_create_target_description): Likewise.
13243 * arch/aarch64.h (aarch64_create_target_description): Likewise.
13244 * features/Makefile: Add new files.
13245 * features/aarch64-pauth.c: New file.
13246 * features/aarch64-pauth.xml: New file.
13247
595915c1
TT
132482019-03-20 Tom Tromey <tromey@adacore.com>
13249
13250 * infrun.c (handle_inferior_event): Rename from
13251 handle_inferior_event_1. Create a scoped_value_mark.
13252 (handle_inferior_event): Remove.
13253
4c7d57e7
TT
132542019-03-19 Tom Tromey <tromey@adacore.com>
13255
13256 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
13257 * infrun.h (print_stop_event): Add "displays" parameter.
13258 * infrun.c (print_stop_event): Add "displays" parameter.
13259
cb246234
PA
132602019-03-19 Pedro Alves <palves@redhat.com>
13261
13262 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
13263 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
13264 to -1. Fix TABs vs spaces.
13265 (tui_ui_out::tui_ui_out): Don't initialize fields here.
13266 * tui/tui-out.h (tui_ui_out) Add intro comments.
13267 <m_line, m_start_of_line>: In-class initialize, and add describing
13268 comment.
13269
3a0e45b2
AH
132702019-03-18 Alan Hayward <alan.hayward@arm.com>
13271
13272 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
13273 variable names.
13274 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
13275
5371b850
PA
132762019-03-18 Pedro Alves <palves@redhat.com>
13277 Eli Zaretskii <eliz@gnu.org>
13278
13279 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
13280 m_line and m_start_of_line.
13281
b17c4cd0
EZ
132822019-03-18 Eli Zaretskii <eliz@gnu.org>
13283
13284 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
13285 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
13286 it returns a newline. This fixes a regression in TU mode, whereby
13287 the next line is output on the same screen line as the user input.
13288
4bd56d18
TT
132892019-03-18 Tom Tromey <tromey@adacore.com>
13290
13291 * minsyms.c (minimal_symbol_reader::install): Remove call to
13292 obstack_blank.
13293
55c10aca
PA
132942019-03-18 Pedro Alves <palves@redhat.com>
13295
13296 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
13297 New globals.
13298 (apply_style): New, factored out from ...
13299 (apply_ansi_escape): ... this. Handle reverse video mode.
13300 (tui_set_reverse_mode): New function.
13301 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
13302 * tui/tui-winsource.c (tui_show_source_line): Use
13303 tui_set_reverse_mode instead of setting A_STANDOUT.
13304 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
13305 New setter methods.
13306
647bb750
HD
133072019-03-18 Hannes Domani <ssbssa@yahoo.de>
13308
13309 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
13310 Handle tabs.
13311
bff8c71f
TT
133122019-03-18 Tom Tromey <tromey@adacore.com>
13313
13314 * ada-lang.c (empty_array): Add "high" parameter.
13315 (ada_evaluate_subexp): Update.
13316
58785d98
ST
133172019-03-17 Sergei Trofimovich <siarheit@google.com>
13318
13319 * unittests/string_view-selftests.c: Define
13320 _initialize_string_view_selftests unconditionally.
13321
d4cbef22
ВМ
133222019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
13323
13324 PR gdb/24350
13325 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
13326
fce4c071
ВМ
133272019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
13328
13329 PR gdb/24351
13330 * windows-nat.c (display_selector): Fix format specifiers.
13331
f7f0a123
EZ
133322019-03-17 Eli Zaretskii <eliz@gnu.org>
13333
13334 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
13335 tui_refill_source_window instead of tui_refresh_win, to update the
13336 current execution line. This fixes redisplay of the current line
13337 when stepping through the code with "next" or "step".
13338
ab42892f
EZ
133392019-03-16 Eli Zaretskii <eliz@gnu.org>
13340
13341 * source-cache.c (source_cache::get_source_lines): Call
13342 find_source_lines to initialize s->nlines. This fixes vertical
13343 scrolling of TUI source window when the DOWN arrow is pressed.
13344
8d8c087f
PW
133452019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13346
13347 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
13348 linux-thread-db.c (_initialize_thread_db): Likewise.
13349
798e1c30
EZ
133502019-03-16 Eli Zaretskii <eliz@gnu.org>
13351
13352 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
13353 wclrtoeol in tui_show_source_line". This reverts changes made in
13354 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
13355
eefba3da
TT
133562019-03-15 Tom Tromey <tom@tromey.com>
13357
13358 * symtab.h (struct minimal_symbol): Derive from
13359 general_symbol_info.
13360 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
13361 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
13362 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
13363 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
13364 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
13365 (MSYMBOL_SEARCH_NAME): Update.
13366 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
13367 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
13368 * minsyms.c (minimal_symbol_reader::record_full): Update.
13369
0de2420c
TT
133702019-03-15 Tom Tromey <tom@tromey.com>
13371
13372 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
13373
042d75e4
TT
133742019-03-15 Tom Tromey <tom@tromey.com>
13375
13376 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
13377 unique_xmalloc_ptr.
13378 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
13379 Update.
13380 * minsyms.c (lookup_minimal_symbol_by_pc_section)
13381 (build_minimal_symbol_hash_tables)
13382 (minimal_symbol_reader::install): Update.
13383
db92718b
TT
133842019-03-15 Tom Tromey <tom@tromey.com>
13385
13386 * symtab.c (create_demangled_names_hash): Update.
13387 (symbol_set_names): Update.
13388 * objfiles.h (struct objfile_per_bfd_storage)
13389 <demangled_names_hash>: Now an htab_up.
13390 * objfiles.c (objfile_per_bfd_storage): Simplify.
13391
d6797f46
TT
133922019-03-15 Tom Tromey <tom@tromey.com>
13393
13394 * objfiles.h (struct objfile_per_bfd_storage): Declare
13395 destructor.
13396 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
13397 New.
13398 (get_objfile_bfd_data): Use new. Don't initialize
13399 language_of_main.
13400 (free_objfile_per_bfd_storage): Remove.
13401 (objfile_bfd_data_free, objfile::~objfile): Use delete.
13402
741d7538
TT
134032019-03-15 Tom Tromey <tom@tromey.com>
13404
13405 * symfile.c (reread_symbols): Update.
13406 * objfiles.c (objfile::objfile): Update.
13407 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
13408 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
13409 comment.
13410 (minimal_symbol_reader::install): Update.
13411 (terminate_minimal_symbol_table): Remove.
13412 * jit.c (jit_object_close_impl): Update.
13413
788c80d1
TT
134142019-03-15 Tom Tromey <tom@tromey.com>
13415
13416 * minsyms.c (minimal_symbol_reader::record_full): Remove some
13417 initializations.
13418
1b7a07cb
TT
134192019-03-15 Tom Tromey <tom@tromey.com>
13420
13421 * objfiles.h (struct objfile_per_bfd_storage)
13422 <demangled_hash_languages>: Now a bitset.
13423 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
13424 (lookup_minimal_symbol): Update.
13425
3db066bc
TT
134262019-03-15 Tom Tromey <tom@tromey.com>
13427
13428 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
13429 Don't return the symbol.
13430 * coffread.c (record_minimal_symbol): Use record_full.
13431
3fff2c37
EZ
134322019-03-14 Eli Zaretskii <eliz@gnu.org>
13433
13434 The MS-Windows port of ncurses fails to switch to a color pair if
13435 one or both of the colors are the implicit default colors. This
13436 change records the default colors when TUI is initialized, and
13437 then specifies them explicitly when a color pair uses the default
13438 colors. This allows color styling in TUI mode on MS-Windows.
13439
13440 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
13441 ncurses_norm_attr.
13442 (tui_initialize_io) [__MINGW32__]: Record the default terminal
13443 colors in ncurses_norm_attr.
13444 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
13445 "none", replace it with the default color recorded in
13446 ncurses_norm_attr.
13447
3b336828
TT
134482019-03-14 Tom Tromey <tromey@adacore.com>
13449
13450 * source-cache.h (class source_cache) <get_source_lines>: Return
13451 std::string.
13452 * source-cache.c (source_cache::extract_lines): Handle case where
13453 first_pos==npos. Return std::string.
13454 (source_cache::get_source_lines): Update.
13455
d085f989
TT
134562019-03-14 Tom Tromey <tromey@adacore.com>
13457
13458 * NEWS: Add item for "style sources" commands.
13459 * source-cache.c (source_cache::get_source_lines): Check
13460 source_styling.
13461 * cli/cli-style.c (source_styling): New global.
13462 (_initialize_cli_style): Add "style sources" commands.
13463 (show_style_sources): New function.
13464 * cli/cli-style.h (source_styling): Declare.
13465
6f11e682
TT
134662019-03-14 Pedro Alves <palves@redhat.com>
13467 Tom Tromey <tromey@adacore.com>
13468
13469 * tui/tui-winsource.h (tui_refill_source_window): Declare.
13470 * tui/tui-winsource.c (tui_refill_source_window): New function,
13471 from...
13472 (tui_horizontal_source_scroll): ... here. Move some logic.
13473 * cli/cli-style.c (set_style_enabled): Notify new observable.
13474 * tui/tui-hooks.c (tui_redisplay_source): New function.
13475 (tui_attach_detach_observers): Attach or detach
13476 tui_redisplay_source.
13477 * observable.h (source_styling_changed): New observable.
13478 * observable.c: Define source_styling_changed observable.
13479
a068643d
TT
134802019-03-13 Tom Tromey <tromey@adacore.com>
13481
13482 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
13483 (i386_gnu_nat_target::store_registers): Update.
13484 * target-debug.h (target_debug_print_std_string): New macro.
13485 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
13486 * windows-tdep.c (display_one_tib): Update.
13487 * tui/tui-stack.c (tui_make_status_line): Update.
13488 * top.c (print_inferior_quit_action): Update.
13489 * thread.c (thr_try_catch_cmd): Update.
13490 (add_thread_with_info): Update.
13491 (thread_target_id_str): Update.
13492 (thr_try_catch_cmd): Update.
13493 (thread_command): Update.
13494 (thread_find_command): Update.
13495 * record-btrace.c (record_btrace_target::info_record)
13496 (record_btrace_resume_thread, record_btrace_target::resume)
13497 (record_btrace_cancel_resume, record_btrace_step_thread)
13498 (record_btrace_target::wait, record_btrace_target::wait)
13499 (record_btrace_target::wait, record_btrace_target::stop): Update.
13500 * progspace.c (print_program_space): Update.
13501 * process-stratum-target.c
13502 (process_stratum_target::thread_address_space): Update.
13503 * linux-fork.c (linux_fork_mourn_inferior)
13504 (detach_checkpoint_command, info_checkpoints_command)
13505 (linux_fork_context): Update.
13506 (linux_fork_detach): Update.
13507 (class scoped_switch_fork_info): Update.
13508 (delete_checkpoint_command): Update.
13509 * infrun.c (follow_fork_inferior): Update.
13510 (follow_fork_inferior): Update.
13511 (proceed_after_vfork_done): Update.
13512 (handle_vfork_child_exec_or_exit): Update.
13513 (follow_exec): Update.
13514 (displaced_step_prepare_throw): Update.
13515 (displaced_step_restore): Update.
13516 (start_step_over): Update.
13517 (resume_1): Update.
13518 (clear_proceed_status_thread): Update.
13519 (proceed): Update.
13520 (print_target_wait_results): Update.
13521 (do_target_wait): Update.
13522 (context_switch): Update.
13523 (stop_all_threads): Update.
13524 (restart_threads): Update.
13525 (finish_step_over): Update.
13526 (handle_signal_stop): Update.
13527 (switch_back_to_stepped_thread): Update.
13528 (keep_going_pass_signal): Update.
13529 (print_exited_reason): Update.
13530 (normal_stop): Update.
13531 * inferior.c (inferior_pid_to_str): Change return type.
13532 (print_selected_inferior): Update.
13533 (add_inferior): Update.
13534 (detach_inferior): Update.
13535 * dummy-frame.c (fprint_dummy_frames): Update.
13536 * dcache.c (dcache_info_1): Update.
13537 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
13538 (btrace_fetch, btrace_clear): Update.
13539 * linux-tdep.c (linux_core_pid_to_str): Change return type.
13540 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
13541 type.
13542 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
13543 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
13544 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
13545 * gdbarch.c, gdbarch.h: Rebuild.
13546 * gdbarch.sh (core_pid_to_str): Change return type.
13547 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
13548 return type.
13549 (windows_nat_target::pid_to_str): Change return type.
13550 (windows_delete_thread): Update.
13551 (windows_nat_target::attach): Update.
13552 (windows_nat_target::files_info): Update.
13553 * target-delegates.c: Rebuild.
13554 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
13555 return type.
13556 (sol_thread_target::pid_to_str): Change return type.
13557 * remote.c (class remote_target) <pid_to_str>: Change return
13558 type.
13559 (remote_target::pid_to_str): Change return type.
13560 (extended_remote_target::attach, remote_target::remote_stop_ns)
13561 (remote_target::remote_notif_remove_queued_reply)
13562 (remote_target::push_stop_reply, remote_target::disable_btrace):
13563 Update.
13564 (extended_remote_target::attach): Update.
13565 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
13566 type.
13567 (gdbsim_target::pid_to_str): Change return type.
13568 * ravenscar-thread.c (struct ravenscar_thread_target)
13569 <pid_to_str>: Change return type.
13570 (ravenscar_thread_target::pid_to_str): Change return type.
13571 * procfs.c (class procfs_target) <pid_to_str>: Change return
13572 type.
13573 (procfs_target::pid_to_str): Change return type.
13574 (procfs_target::attach): Update.
13575 (procfs_target::detach): Update.
13576 (procfs_target::fetch_registers): Update.
13577 (procfs_target::store_registers): Update.
13578 (procfs_target::wait): Update.
13579 (procfs_target::files_info): Update.
13580 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
13581 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
13582 return type.
13583 (nto_procfs_target::pid_to_str): Change return type.
13584 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
13585 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
13586 return type.
13587 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
13588 (exit_lwp): Update.
13589 (attach_proc_task_lwp_callback, get_detach_signal)
13590 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
13591 (linux_nat_target::resume, wait_lwp, stop_callback)
13592 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
13593 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
13594 (linux_nat_wait_1, resume_stopped_resumed_lwps)
13595 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
13596 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
13597 type.
13598 (inf_ptrace_target::attach): Update.
13599 (inf_ptrace_target::files_info): Update.
13600 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
13601 type.
13602 (go32_nat_target::pid_to_str): Change return type.
13603 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
13604 (gnu_nat_target::wait): Update.
13605 (gnu_nat_target::wait): Update.
13606 (gnu_nat_target::resume): Update.
13607 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
13608 (fbsd_nat_target::wait): Update.
13609 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
13610 type.
13611 (darwin_nat_target::attach): Update.
13612 * corelow.c (class core_target) <pid_to_str>: Change return type.
13613 (core_target::pid_to_str): Change return type.
13614 * target.c (normal_pid_to_str): Change return type.
13615 (default_pid_to_str): Likewise.
13616 (target_pid_to_str): Change return type.
13617 (target_translate_tls_address): Update.
13618 (target_announce_detach): Update.
13619 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
13620 return type.
13621 (bsd_uthread_target::pid_to_str): Change return type.
13622 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
13623 type.
13624 (bsd_kvm_target::pid_to_str): Change return type.
13625 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
13626 return type.
13627 (aix_thread_target::pid_to_str): Change return type.
13628 * target.h (struct target_ops) <pid_to_str>: Change return type.
13629 (target_pid_to_str, normal_pid_to_str): Likewise.
13630 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
13631 type.
13632 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
13633 type.
13634 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
13635 return type.
13636 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
13637 type.
13638 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
13639 type.
13640 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
13641 return type.
13642
b4be1b06
SM
136432019-03-13 Simon Marchi <simon.marchi@ericsson.com>
13644
13645 * NEWS: Mention that the new default MI version is 3. Mention
13646 changes to the output of commands and events that deal with
13647 multi-location breakpoints.
13648 * breakpoint.c: Include "mi/mi-out.h".
13649 (print_one_breakpoint): Change output syntax if using MI version
13650 >= 3.
13651 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
13652 New.
13653 (mi_multi_location_breakpoint_output_fixed): New.
13654 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
13655 (mi_cmd_fix_multi_location_breakpoint_output): New.
13656 (mi_multi_location_breakpoint_output_fixed): New.
13657 * mi/mi-cmds.c (mi_cmds): Register command
13658 -fix-multi-location-breakpoint-output.
13659 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
13660 interpreter "mi".
13661
8e5e5494
SM
136622019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
13663
13664 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
13665 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
13666 instantiate mi_ui_out based on interpreter name.
13667 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
13668 * mi/mi-main.c (mi_load_progress): Likewise.
13669
197df35e
JB
136702019-03-12 John Baldwin <jhb@FreeBSD.org>
13671
13672 * NEWS: Combine separate "New targets" sections for 8.3.
13673
8399425f
JB
136742019-03-12 John Baldwin <jhb@FreeBSD.org>
13675
13676 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
13677 (ppcfbsd_init_abi): Install gdbarch
13678 "fetch_tls_load_module_address" and "get_thread_local_address"
13679 methods.
13680
b0f87ed0
JB
136812019-03-12 John Baldwin <jhb@FreeBSD.org>
13682
13683 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
13684 (riscv_fbsd_init_abi): Install gdbarch
13685 "fetch_tls_load_module_address" and "get_thread_local_address"
13686 methods.
13687
ce25aa57
JB
136882019-03-12 John Baldwin <jhb@FreeBSD.org>
13689
13690 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
13691 (i386fbsd_init_abi): Install gdbarch
13692 "fetch_tls_load_module_address" and "get_thread_local_address"
13693 methods.
13694
f5424cfa
JB
136952019-03-12 John Baldwin <jhb@FreeBSD.org>
13696
13697 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
13698 (amd64fbsd_init_abi): Install gdbarch
13699 "fetch_tls_load_module_address" and "get_thread_local_address"
13700 methods.
13701
945f3901
JB
137022019-03-12 John Baldwin <jhb@FreeBSD.org>
13703
13704 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
13705 (struct fbsd_pspace_data): New type.
13706 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
13707 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
13708 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
13709 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
13710 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
13711
ef0bd204
JB
137122019-03-12 John Baldwin <jhb@FreeBSD.org>
13713
13714 * gdbtypes.c (lookup_struct_elt): New function.
13715 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
13716 * gdbtypes.h (struct struct_elt): New type.
13717 (lookup_struct_elt): New prototype.
13718
36c53a02
JB
137192019-03-12 John Baldwin <jhb@FreeBSD.org>
13720
13721 * gdbtypes.c (lookup_struct_elt_type): Update comment and
13722 remove disabled code block.
13723
6e056c81
JB
137242019-03-12 John Baldwin <jhb@FreeBSD.org>
13725
13726 * gdbarch.sh (get_thread_local_address): New method.
13727 * gdbarch.h, gdbarch.c: Regenerate.
13728 * target.c (target_translate_tls_address): Use
13729 gdbarch_get_thread_local_address if present instead of
13730 target::get_thread_local_address.
13731
cd250a18
JB
137322019-03-12 John Baldwin <jhb@FreeBSD.org>
13733
13734 * target.h (target::get_thread_local_address): Update comment.
13735
df22c1e5
JB
137362019-03-12 John Baldwin <jhb@FreeBSD.org>
13737
13738 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
13739 objfile->separate_debug_objfile_backlink if not NULL.
13740
dd6876c9
JB
137412019-03-12 John Baldwin <jhb@FreeBSD.org>
13742
13743 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
13744 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
13745 (amd64bsd_store_inferior_registers): Likewise.
13746 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
13747 Enable segment base registers.
13748 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
13749 PT_GETFSBASE and PT_GETGSBASE.
13750 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
13751 PT_SETGSBASE.
13752 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
13753 segment base registers.
13754 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
13755
1163a4b7
JB
137562019-03-12 John Baldwin <jhb@FreeBSD.org>
13757
13758 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
13759 Update calls to i386_target_description to add 'segments'
13760 parameter.
13761 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
13762 add segment base registers.
13763 * arch/i386.c (i386_create_target_description): Add 'segments'
13764 parameter to enable segment base registers.
13765 * arch/i386.h (i386_create_target_description): Likewise.
13766 * features/i386/32bit-segments.xml: New file.
13767 * features/i386/32bit-segments.c: Generate.
13768 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
13769 call to i386_target_description to add 'segments' parameter.
13770 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
13771 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
13772 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
13773 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
13774 if feature is present.
13775 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
13776 Add 'segments' parameter to call to i386_target_description.
13777 (i386_target_description): Add 'segments' parameter to enable
13778 segment base registers.
13779 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
13780 to call to i386_target_description.
13781 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
13782 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
13783 Define I386_NUM_REGS.
13784 (i386_target_description): Add 'segments' parameter to enable
13785 segment base registers.
13786
3a350822
EZ
137872019-03-12 Eli Zaretskii <eliz@gnu.org>
13788
13789 PR/24325
13790 * source-cache.c: #undef open and close, to avoid unresolved
13791 externals during linking.
13792
ffdd69cf
TT
137932019-03-12 Tom Tromey <tromey@adacore.com>
13794
13795 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
13796 const. Add initializers.
13797 (_initialize_remote): Don't initialize ptid globals.
13798
ec148c57
PA
137992019-03-12 Pedro Alves <palves@redhat.com>
13800
13801 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
13802
32764270
PA
138032019-03-12 Pedro Alves <palves@redhat.com>
13804
13805 * cp-name-parser.y (main): Remove unused 'len' variable.
13806
17547186
TT
138072019-03-12 Tom Tromey <tromey@adacore.com>
13808
13809 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
13810 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
13811
d3a70e03
TT
138122019-03-12 Tom Tromey <tromey@adacore.com>
13813
13814 * linux-nat.c (iterate_over_lwps): Update.
13815 (stop_callback): Remove parameter.
13816 (stop_wait_callback, detach_callback, resume_set_callback)
13817 (select_singlestep_lwp_callback, set_ignore_sigint)
13818 (status_callback, resumed_callback, resume_clear_callback)
13819 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
13820 data parameter.
13821 (linux_nat_target::detach, linux_nat_target::resume)
13822 (linux_stop_and_wait_all_lwps, select_event_lwp)
13823 (linux_nat_filter_event, linux_nat_wait_1)
13824 (linux_nat_target::kill, linux_nat_target::stop)
13825 (linux_nat_target::stop): Update.
13826 (linux_nat_resume_callback): Change type.
13827 (resume_stopped_resumed_lwps, count_events_callback)
13828 (select_event_lwp_callback): Likewise.
13829 (linux_stop_lwp, linux_nat_stop_lwp): Update.
13830 * arm-linux-nat.c (struct update_registers_data): Remove.
13831 (update_registers_callback): Change type.
13832 (arm_linux_insert_hw_breakpoint1): Update.
13833 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
13834 parameter.
13835 (x86_linux_dr_set_addr): Update.
13836 (x86_linux_dr_set_control): Update.
13837 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
13838 (iterate_over_lwps): Use gdb::function_view.
13839 * nat/aarch64-linux-hw-point.c (struct
13840 aarch64_dr_update_callback_param): Remove.
13841 (debug_reg_change_callback): Change type.
13842 (aarch64_notify_debug_reg_change): Update.
13843 * s390-linux-nat.c (s390_refresh_per_info): Update.
13844
82cb27ff
TT
138452019-03-11 Tom Tromey <tromey@adacore.com>
13846
13847 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
13848 redundant assignment to "this_cu".
13849
568c0683
SM
138502019-03-08 Simon Marchi <simon.marchi@efficios.com>
13851
13852 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
13853
f09ce22d
SM
138542019-03-08 Simon Marchi <simon.marchi@efficios.com>
13855
13856 * gdbtypes.c (rank_one_type_parm_set): New function extracted
13857 from...
13858 (rank_one_type): ... this.
13859
595f96a9
SM
138602019-03-08 Simon Marchi <simon.marchi@efficios.com>
13861
13862 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
13863 from...
13864 (rank_one_type): ... this.
13865
2598a94b
SM
138662019-03-08 Simon Marchi <simon.marchi@efficios.com>
13867
13868 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
13869 from...
13870 (rank_one_type): ... this.
13871
7f17b20d
SM
138722019-03-08 Simon Marchi <simon.marchi@efficios.com>
13873
13874 * gdbtypes.c (rank_one_type_parm_float): New function extracted
13875 from...
13876 (rank_one_type): ... this.
13877
2c509035
SM
138782019-03-08 Simon Marchi <simon.marchi@efficios.com>
13879
13880 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
13881 from...
13882 (rank_one_type): ... this.
13883
0dd322dc
SM
138842019-03-08 Simon Marchi <simon.marchi@efficios.com>
13885
13886 * gdbtypes.c (rank_one_type_parm_range): New function extracted
13887 from...
13888 (rank_one_type): ... this.
13889
41ea4728
SM
138902019-03-08 Simon Marchi <simon.marchi@efficios.com>
13891
13892 * gdbtypes.c (rank_one_type_parm_char): New function extracted
13893 from...
13894 (rank_one_type): ... this.
13895
793cd1d2
SM
138962019-03-08 Simon Marchi <simon.marchi@efficios.com>
13897
13898 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
13899 from...
13900 (rank_one_type): ... this.
13901
34910087
SM
139022019-03-08 Simon Marchi <simon.marchi@efficios.com>
13903
13904 * gdbtypes.c (rank_one_type_parm_int): New function extracted
13905 from...
13906 (rank_one_type): ... this.
13907
f1f832d6
SM
139082019-03-08 Simon Marchi <simon.marchi@efficios.com>
13909
13910 * gdbtypes.c (rank_one_type_parm_func): New function extracted
13911 from...
13912 (rank_one_type): ... this.
13913
b9f4512f
SM
139142019-03-08 Simon Marchi <simon.marchi@efficios.com>
13915
13916 * gdbtypes.c (rank_one_type_parm_array): New function extracted
13917 from...
13918 (rank_one_type): ... this.
13919
9293fc63
SM
139202019-03-08 Simon Marchi <simon.marchi@efficios.com>
13921
13922 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
13923 from...
13924 (rank_one_type): ... this.
13925
e3abbe7e
PW
139262019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13927
13928 * inferior.c (initialize_inferiors): Ensure 'help set/show print
13929 inferior-events' shows the example events.
13930
e4adb939
EZ
139312019-03-08 Eli Zaretskii <eliz@gnu.org>
13932
13933 Support styling on native MS-Windows console
13934
13935 PR/24315
13936 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
13937 on MS-Windows if $TERM is not defined.
13938
13939 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
13940
13941 * posix-hdep.c (gdb_console_fputs):
13942 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
13943 functions.
13944 * ui-file.h (gdb_console_fputs): Add prototype.
13945
13946 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
13947 back to fputs only if the former returns zero.
13948
25629dfd
TT
139492019-03-07 Tom Tromey <tom@tromey.com>
13950
13951 * symmisc.c (print_symbol_bcache_statistics): Update.
13952 (print_objfile_statistics): Update.
13953 * symfile.c (allocate_symtab): Update.
13954 * stabsread.c: Don't include bcache.h.
13955 * psymtab.h (struct psymbol_bcache): Don't declare.
13956 (class psymtab_storage) <psymbol_cache>: Now a bcache.
13957 (psymbol_bcache_init, psymbol_bcache_free)
13958 (psymbol_bcache_get_bcache): Don't declare.
13959 * psymtab.c (struct psymbol_bcache): Remove.
13960 (psymtab_storage::psymtab_storage): Update.
13961 (psymtab_storage::~psymtab_storage): Update.
13962 (psymbol_bcache_init, psymbol_bcache_free)
13963 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
13964 (add_psymbol_to_bcache): Update.
13965 (allocate_psymtab): Update.
13966 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
13967 macro_cache>: No longer pointers.
13968 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
13969 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
13970 * macrotab.c (macro_bcache): Update.
13971 * macroexp.c: Don't include bcache.h.
13972 * gdbtypes.c (check_types_worklist): Update.
13973 (types_deeply_equal): Remove TRY/CATCH. Update.
13974 * elfread.c (elf_symtab_read): Update.
13975 * dwarf2read.c: Don't include bcache.h.
13976 * buildsym.c (buildsym_compunit::get_macro_table): Update.
13977 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
13978 (print_bcache_statistics, bcache_memory_used): Don't declare.
13979 (struct bcache): Move from bcache.c. Add constructor, destructor,
13980 methods. Rename all data members.
13981 * bcache.c (struct bcache): Move to bcache.h.
13982 (bcache::expand_hash_table): Rename from expand_hash_table.
13983 (bcache): Remove.
13984 (bcache::insert): Rename from bcache_full.
13985 (bcache::compare): Rename from bcache_compare.
13986 (bcache_xmalloc): Remove.
13987 (bcache::~bcache): Rename from bcache_xfree.
13988 (bcache::print_statistics): Rename from print_bcache_statistics.
13989 (bcache::memory_used): Rename from bcache_memory_used.
13990
fe726667
PA
139912019-03-07 Pedro Alves <palves@redhat.com>
13992
13993 * infrun.c (normal_stop): Also check for
13994 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
13995
7584bb30
AB
139962019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
13997
13998 * f-lang.c (value_from_host_double): Moved to...
13999 * value.c (value_from_host_double): ...here.
14000 * value.h (value_from_host_double): Declare.
14001 * guile/scm-math.c (vlscm_convert_typed_number): Use
14002 value_from_host_double.
14003 (vlscm_convert_number): Likewise.
14004 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
14005 * python/py-value.c (convert_value_from_python): Likewise.
14006
a7b1986e
TT
140072019-03-06 Tom Tromey <tom@tromey.com>
14008
14009 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
14010
0ccf4211
TT
140112019-03-06 Tom Tromey <tom@tromey.com>
14012
14013 * utils.h (free_current_contents): Don't declare.
14014 * utils.c (free_current_contents): Remove.
14015
fe7b42e5
TT
140162019-03-06 Tom Tromey <tom@tromey.com>
14017
14018 * top.c (quit_force): Update.
14019 * main.c (captured_command_loop): Update.
14020 * common/new-op.c (operator new): Update.
14021 * common/common-exceptions.c (struct catcher)
14022 <save_cleanup_chain>: Remove member.
14023 (exceptions_state_mc_init): Update.
14024 (exception_try_scope_entry): Return nullptr.
14025 (exception_try_scope_exit, exception_rethrow)
14026 (throw_exception_sjlj, throw_exception_cxx): Update.
14027 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
14028 (all_cleanups, do_cleanups, discard_cleanups)
14029 (discard_final_cleanups, save_cleanups, save_final_cleanups)
14030 (restore_cleanups, restore_final_cleanups): Don't declare.
14031 (do_final_cleanups): Remove parameter.
14032 * common/cleanups.c (cleanup_chain, make_cleanup)
14033 (make_cleanup_dtor, all_cleanups, do_cleanups)
14034 (discard_my_cleanups, discard_cleanups)
14035 (discard_final_cleanups, save_my_cleanups, save_cleanups)
14036 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
14037 (null_cleanup): Remove.
14038 (do_final_cleanups): Remove parameter.
14039
c6321f19
TT
140402019-03-06 Tom Tromey <tom@tromey.com>
14041
14042 * remote.c (remote_target::remote_parse_stop_reply): Use
14043 unique_xmalloc_ptr.
14044
61b30099
TT
140452019-03-06 Tom Tromey <tom@tromey.com>
14046
14047 * stabsread.c (struct stabs_field_info): Rename from field_info.
14048 <list, fnlist>: Add initializers.
14049 <obstack>: New member.
14050 (read_member_functions, read_struct_fields, read_baseclasses):
14051 Allocate on obstack. Don't use cleanups.
14052 (read_one_struct_field, read_member_functions, read_struct_fields)
14053 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
14054 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
14055 (read_struct_type): Update.
14056
6cceac94
TT
140572019-03-06 Tom Tromey <tom@tromey.com>
14058
14059 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
14060 * common/filestuff.h (make_cleanup_close): Don't declare.
14061 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
14062 Remove.
14063
72412762
TT
140642019-03-06 Tom Tromey <tom@tromey.com>
14065
14066 * solib-aix.c: Use make_scope_exit.
14067
2b6ff1c0
TT
140682019-03-06 Tom Tromey <tom@tromey.com>
14069
14070 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
14071 Use make_scope_exit.
14072
d01c5877
TT
140732019-03-06 Tom Tromey <tom@tromey.com>
14074
14075 * solib-svr4.c (disable_probes_interface): Remove parameter.
14076 (svr4_handle_solib_event): Use make_scope_exit.
14077
32603266
TT
140782019-03-06 Tom Tromey <tom@tromey.com>
14079
14080 * remote.c (struct stop_reply_deleter): Remove.
14081 (stop_reply_up): Update.
14082 (struct stop_reply): Derive from notif_event. Don't typedef.
14083 <regcache>: Now a std::vector.
14084 (stop_reply_xfree): Remove.
14085 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
14086 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
14087 (remote_target::discard_pending_stop_replies): Use delete.
14088 (remote_target::remote_parse_stop_reply): Update.
14089 (remote_target::process_stop_reply): Update.
14090 * remote-notif.h (struct notif_event): Add virtual destructor.
14091 Remove "dtr" member.
14092 (struct notif_client) <alloc_event>: Return a unique_ptr.
14093 (notif_event_xfree): Don't declare.
14094 (notif_event_up): New typedef.
14095 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
14096 (notif_event_xfree, do_notif_event_xfree): Remove.
14097 (remote_notif_state_xfree): Update.
14098
9799571e
TT
140992019-03-06 Tom Tromey <tom@tromey.com>
14100
14101 * infrun.c (displaced_step_clear_cleanup): Now a
14102 forward_scope_exit type.
14103 (displaced_step_prepare_throw): Update.
14104 (displaced_step_fixup): Update.
14105
09e3c4ca
TT
141062019-03-06 Tom Tromey <tom@tromey.com>
14107
14108 * inferior.h (class inferior): Update comment.
14109 * gdbthread.h (class thread_info): Update comment.
14110
e2a03548
TT
141112019-03-06 Joel Brobecker <brobecker@adacore.com>
14112 Tom Tromey <tom@tromey.com>
14113
14114 * stabsread.h (struct stab_section_list): Remove.
14115 (coffstab_build_psymtabs): Update.
14116 * dbxread.c (symbuf_sections): Now a std::vector.
14117 (sect_idx): New global.
14118 (fill_symbuf): Update.
14119 (coffstab_build_psymtabs): Change type of stabsects parameter.
14120 Update.
14121 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
14122 std::vector.
14123 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
14124 (coff_locate_sections): Update.
14125 (coff_symfile_read): Remove cleanups. Update.
14126 (init_stringtab): Add storage parameter.
14127 (free_stringtab, free_stringtab_cleanup): Remove.
14128 (init_lineno): Add storage parameter.
14129 (free_linetab, free_linetab_cleanup): Remove.
14130
b7e60d85
PA
141312019-03-06 Pedro Alves <palves@redhat.com>
14132
14133 * linux-fork.c (fork_info::clobber_regs): Delete.
14134 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
14135 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
14136 comment. Adjust.
14137 (scoped_switch_fork_info::scoped_switch_fork_info)
14138 (checkpoint_command, linux_fork_context): Adjust
14139 fork_save_infrun_state calls.
14140
e52c971f
PA
141412019-03-06 Pedro Alves <palves@redhat.com>
14142
14143 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
14144 (inf_has_multiple_threads): Return 'bool' and rewrite using
14145 inferior_info::threads().
14146
06974e6c
PA
141472019-03-06 Pedro Alves <palves@redhat.com>
14148
14149 * linux-fork.c: Include <list>.
14150 (fork_list): Now a std::list instance.
14151 (fork_info): Add ctor, dtor, and in-class initialize all fields.
14152 (forks_exist_p, find_last_fork): Adjust.
14153 (new_fork): Delete.
14154 (one_fork_p): New.
14155 (add_fork): Adjust.
14156 (free_fork): Delete, folded into fork_info::~fork_info().
14157 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
14158 Adjust.
14159 (init_fork_list): Delete.
14160 (linux_fork_killall, linux_fork_mourn_inferior)
14161 (linux_fork_detach, info_checkpoints_command): Adjust.
14162 (_initialize_linux_fork): No longer call init_fork_list.
14163
72f31aea
PA
141642019-03-06 Pedro Alves <palves@redhat.com>
14165
14166 * linux-fork.c (new_fork): New, split out of ...
14167 (add_fork): ... this. Return void. Move "first fork" special
14168 case from here, to ...
14169 (checkpoint_command): ... here.
14170 * linux-linux.h (add_fork): Return void.
14171
efbecbc1
AB
141722019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14173
14174 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
14175
0841c79a
AB
141762019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14177 Chris January <chris.january@arm.com>
14178 David Lecomber <david.lecomber@arm.com>
14179
14180 * f-exp.y: New token, UNOP_INTRINSIC.
14181 (exp): New pattern using UNOP_INTRINSIC token.
14182 (f77_keywords): Add 'abs' keyword.
14183 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
14184 (value_from_host_double): New function.
14185 (evaluate_subexp_f): Support UNOP_ABS.
14186
4a270568
AB
141872019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14188
14189 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
14190 types.
14191
067630bd
AB
141922019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14193
14194 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
14195 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
14196 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
14197
3be47f7a
AB
141982019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14199
14200 * f-exp.y (convert_to_kind_type): Handle more type kinds.
14201
4d00f5d8
AB
142022019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14203 Chris January <chris.january@arm.com>
14204
14205 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
14206 * f-exp.y: Define 'KIND' token.
14207 (exp): New pattern for KIND expressions.
14208 (ptype): Handle types with a kind extension.
14209 (direct_abs_decl): Extend to spot kind extensions.
14210 (f77_keywords): Add 'kind' to the list.
14211 (push_kind_type): New function.
14212 (convert_to_kind_type): New function.
14213 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
14214 * parse.c (operator_length_standard): Likewise.
14215 * parser-defs.h (enum type_pieces): Add tp_kind.
14216 * std-operator.def: Add UNOP_KIND.
14217
e454224f
AB
142182019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14219
14220 * f-exp.y (f_parse): Set yydebug.
14221
9dad4a58
AB
142222019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14223
14224 * f-lang.c (evaluate_subexp_f): New function.
14225 (exp_descriptor_f): New global.
14226 (f_language_defn): Use exp_descriptor_f instead of
14227 exp_descriptor_standard.
14228
c8f91604
AB
142292019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14230
14231 * f-exp.y (struct token): Add comments.
14232 (dot_ops): Remove uppercase versions and the end marker.
14233 (f77_keywords): Likewise.
14234 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
14235 entries in the dot_ops array are case insensitive, and use
14236 strncasecmp to compare strings. Also some whitespace cleanup in
14237 this area. Similar for the f77_keywords array, except entries in
14238 this list might be case sensitive.
14239
dd9f2c76
AB
142402019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14241
14242 * f-exp.y (struct f77_boolean_val): Add comments.
14243 (boolean_values): Remove uppercase versions, and end marker.
14244 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
14245 and use strncasecmp to achieve case insensitivity. Additionally,
14246 perform whitespace cleanup around this code.
14247
67a3048c
TT
142482019-03-06 Tom Tromey <tromey@adacore.com>
14249
14250 * remote-sim.c (gdbsim_target_open): Use result of
14251 gdb_argv::release.
14252
aa3cfbda
RB
142532019-03-06 Richard Bunt <richard.bunt@arm.com>
14254 Dirk Schubert <dirk.schubert@arm.com>
14255 Chris January <chris.january@arm.com>
14256
14257 * eval.c (evaluate_subexp_standard): Call Fortran argument
14258 wrapping logic.
14259 * f-lang.c (struct value): A value which can be passed into a
14260 Fortran function call.
14261 (fortran_argument_convert): Wrap Fortran arguments in a pointer
14262 where appropriate.
14263 (struct type): Value ready for a Fortran function call.
14264 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
14265 is needed.
14266 * f-lang.h (fortran_argument_convert): Declaration.
14267 (fortran_preserve_arg_pointer): Declaration.
14268 * infcall.c (value_arg_coerce): Call Fortran argument logic.
14269
ea38e5df
TT
142702019-03-05 Tom Tromey <tromey@adacore.com>
14271
14272 * python/py-prettyprint.c (print_string_repr): Remove #if.
14273 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
14274
06b5b831
TT
142752019-03-05 Tom Tromey <tromey@adacore.com>
14276
14277 * target.c (the_dummy_target): Move later. Change type to
14278 "dummy_target".
14279 (initialize_targets): Don't initialize the_dummy_target.
14280
edbd9e45
TT
142812019-03-05 Tom Tromey <tromey@adacore.com>
14282
14283 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
14284 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
14285
c119e040
TT
142862019-03-05 Tom Tromey <tromey@adacore.com>
14287
14288 * windows-nat.c (windows_nat_target::attach)
14289 (windows_nat_target::detach): Don't call gdb_flush.
14290 * valprint.c (generic_val_print, val_print, val_print_string):
14291 Don't call gdb_flush.
14292 * utils.c (defaulted_query): Don't call gdb_flush.
14293 * typeprint.c (print_type_scalar): Don't call gdb_flush.
14294 * target.c (target_announce_detach): Don't call gdb_flush.
14295 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
14296 * remote.c (extended_remote_target::attach): Don't call
14297 gdb_flush.
14298 * procfs.c (procfs_target::detach): Don't call gdb_flush.
14299 * printcmd.c (do_examine): Don't call gdb_flush.
14300 (info_display_command): Don't call gdb_flush.
14301 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
14302 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
14303 * memattr.c (info_mem_command): Don't call gdb_flush.
14304 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
14305 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
14306 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
14307 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
14308 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
14309 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
14310 (gnu_nat_target::detach): Don't call gdb_flush.
14311 * f-valprint.c (f_val_print): Don't call gdb_flush.
14312 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
14313 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
14314 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
14315 gdb_flush.
14316 * c-valprint.c (c_val_print): Don't call gdb_flush.
14317 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
14318
895dafa6
TT
143192019-03-05 Tom Tromey <tromey@adacore.com>
14320
14321 * varobj.c (update_dynamic_varobj_children): Update.
14322 (install_default_visualizer): Use reset, not release.
14323 * value.c (set_internalvar): Update.
14324 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
14325 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
14326 ATTRIBUTE_UNUSED_RESULT.
14327
88a774b9
TT
143282019-03-05 Tom Tromey <tromey@adacore.com>
14329
14330 * remote.c (class scoped_remote_fd) <release>: Add
14331 ATTRIBUTE_UNUSED_RESULT.
14332
4e4a8b93
TT
143332019-03-05 Tom Tromey <tromey@adacore.com>
14334
14335 * macroexp.c (struct macro_buffer) <release>: Add
14336 ATTRIBUTE_UNUSED_RESULT.
14337
083eef1f
TT
143382019-03-05 Tom Tromey <tromey@adacore.com>
14339
14340 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
14341 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
14342 ATTRIBUTE_UNUSED_RESULT.
14343
3cabd438
TT
143442019-03-05 Tom Tromey <tromey@adacore.com>
14345
14346 * common/scoped_fd.h (class scoped_fd) <release>: Add
14347 ATTRIBUTE_UNUSED_RESULT.
14348
41e3300a
TT
143492019-03-05 Tom Tromey <tromey@adacore.com>
14350
14351 * parser-defs.h (struct parser_state) <release>: Add
14352 ATTRIBUTE_UNUSED_RESULT.
14353
18cb7c9f
TT
143542019-03-05 Tom Tromey <tromey@adacore.com>
14355
14356 * utils.h (class gdb_argv) <release>: Add
14357 ATTRIBUTE_UNUSED_RESULT.
14358 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
14359
41fa577f
EZ
143602019-03-02 Eli Zaretskii <eliz@gnu.org>
14361
a6a4b2c6
EZ
14362 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
14363 for-loop range, to avoid compiler warnings.
14364
14365 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
14366 avoid compiler warnings about unused variables.
14367
742a7df5
EZ
14368 * NEWS: Mention end of support for native debugging on MS-Windows
14369 before XP.
14370
41fa577f
EZ
14371 PR gdb/24292
14372 * common/netstuff.c:
14373 * gdbserver/gdbreplay.c
14374 * gdbserver/remote-utils.c:
14375 * ser-tcp.c:
14376 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
14377 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
14378 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
14379 'getaddrinfo' and 'freeaddrinfo' were not available before
14380 Windows XP, and mingw.org's MinGW headers by default define
14381 _WIN32_WINNT to 0x500.
14382
827f438f
GB
143832019-03-01 Gary Benson <gbenson@redhat.com>
14384
14385 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
14386
92137da0
RO
143872019-02-28 Brian Vandenberg <phantall@gmail.com>
14388 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14389
14390 PR gdb/8527
14391 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
14392 set_sigint_trap, clear_sigint_trap.
14393
799efbe8
PW
143942019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14395
14396 * target.c (target_detach): Clear the regcache and the
14397 frame cache.
14398
8ed25214
PA
143992019-02-27 Pedro Alves <palves@redhat.com>
14400
14401 * utils.c (set_screen_size): When we cap the height/width sizes,
14402 tweak the corresponding command variable to show "unlimited":
14403
23031e31
SJ
144042019-02-27 Saagar Jha <saagar@saagarjha.com>
14405 Pedro Alves <palves@redhat.com>
14406
14407 * utils.c (set_screen_size): Reduce "infinite" rows and columns
14408 before calling rl_set_screen_size.
14409
6c28e44a
TT
144102019-02-27 Tom Tromey <tromey@adacore.com>
14411
14412 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
14413 define.
14414 * python/py-value.c: Remove Python 2.4 workaround.
14415 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
14416 workaround.
14417 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
14418 Python 2.4 workaround.
14419 * python/python-internal.h: Remove Python 2.4 comment.
14420 (Py_ssize_t): Don't define.
14421 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
14422 (gdb_Py_DECREF): Remove Python 2.4 workaround.
14423 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
14424 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
14425 * python/python.c (do_start_initialization): Remove Python 2.4
14426 workaround.
14427 * python/py-prettyprint.c (class dummy_python_frame): Remove.
14428 (print_children): Remove Python 2.4 workaround.
14429 * python/py-inferior.c (buffer_procs): Remove Python 2.4
14430 workaround.
14431 (CHARBUFFERPROC_NAME): Remove.
14432 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
14433 Python 2.4 workaround.
14434
2c3fc25d 144352019-02-27 Kevin Buettner <kevinb@redhat.com>
799efbe8 14436
2c3fc25d
KB
14437 * NEWS: Note minimum Python version.
14438
6ca62222
KB
144392019-02-27 Kevin Buettner <kevinb@redhat.com>
14440
14441 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
14442 code from these functions. Remove corresponding ifdefs. Use
14443 Py_buffer_up instead of explicit calls to PyBuffer_Release.
14444 Remove gotos and target of gotos.
14445 (infpy_search_memory): Likewise.
14446
f4bc7d2c
AB
144472019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14448
14449 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
14450 (hppa_gdbarch_init): Don't register deleted functions with
14451 gdbarch.
14452
9734a586
AB
144532019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14454
14455 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
14456 (h8300_unwind_sp): Delete.
14457 (h8300_dummy_id): Delete.
14458 (h8300_gdbarch_init): Don't register deleted functions with
14459 gdbarch.
14460
68b867f3
AB
144612019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14462
14463 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
14464 (ft32_unwind_pc): Delete.
14465 (ft32_unwind_sp): Delete.
14466 (ft32_gdbarch_init): Don't register deleted functions with
14467 gdbarch.
14468
2fbe7ad0
AB
144692019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14470
14471 * gdb/frv-tdep.c (frv_dummy_id): Delete.
14472 (frv_unwind_pc): Delete.
14473 (frv_unwind_sp): Delete.
14474 (frv_gdbarch_init): Don't register deleted functions with
14475 gdbarch.
14476
76055cbe
AB
144772019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14478
14479 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
14480 (riscv_unwind_pc): Delete.
14481 (riscv_unwind_sp): Delete.
14482 (riscv_gdbarch_init): Don't register deleted functions with
14483 gdbarch.
14484
4133e5a1
AB
144852019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14486
14487 * gdb/csky-tdep.c (csky_dummy_id): Delete.
14488 (csky_unwind_pc): Delete.
14489 (csky_unwind_sp): Delete.
14490 (csky_gdbarch_init): Don't register deleted functions with
14491 gdbarch.
14492
8010f576
AB
144932019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14494
14495 * gdb/cris-tdep.c (cris_dummy_id): Delete.
14496 (cris_unwind_pc): Delete.
14497 (cris_unwind_sp): Delete.
14498 (cris_gdbarch_init): Don't register deleted functions with
14499 gdbarch.
14500
b56bf084
AB
145012019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14502
14503 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
14504 (bfin_unwind_pc): Delete.
14505 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
14506
a19a650f
AB
145072019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14508
14509 * gdb/arm-tdep.c (arm_dummy_id): Delete.
14510 (arm_unwind_pc): Delete.
14511 (arm_unwind_sp): Delete.
14512 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
14513
f8278c3c
AB
145142019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14515
14516 * gdb/arc-tdep.c (arc_dummy_id): Delete.
14517 (arc_unwind_pc): Delete.
14518 (arc_unwind_sp): Delete.
14519 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
14520
480e46cf
AB
145212019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14522
14523 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
14524 (alpha_unwind_pc): Delete.
14525 (alpha_gdbarch_init): Don't register deleted functions with
14526 gdbarch.
14527
7a995095
AB
145282019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14529
14530 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
14531 (aarch64_unwind_pc): Delete.
14532 (aarch64_unwind_sp): Delete.
14533 (aarch64_gdbarch_init): Don't register deleted functions with
14534 gdbarch.
14535
bf9a735e
AB
145362019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14537
14538 * gdbtypes.c (type_align): Don't consider static members when
14539 computing structure alignment.
14540
5561fc30
AB
145412019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14542
14543 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
14544 return 0 for other types.
14545 * arch-utils.c (default_type_align): Always return 0.
14546 * gdbarch.h: Regenerate.
14547 * gdbarch.sh (type_align): Extend comment.
14548 * gdbtypes.c (type_align): Add additional comments, always call
14549 gdbarch_type_align before applying the default rules.
14550 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
14551 generic code will then apply a suitable default.
14552 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
14553 types, return 0 for other types.
14554
9335e75a
JB
145552019-02-27 Joel Brobecker <brobecker@adacore.com>
14556
14557 * NEWS: Create a new section for the next release branch.
14558 Rename the section of the current branch, now that it has
14559 been cut.
14560
3d34d8de
JB
145612019-02-27 Joel Brobecker <brobecker@adacore.com>
14562
14563 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
14564 * version.in: Bump version to 8.3.50.DATE-git.
14565
143420fb
SM
145662019-02-26 Simon Marchi <simon.marchi@efficios.com>
14567
14568 * aix-thread.c (ptid_cmp): Remove unused variable.
14569 (get_signaled_thread): Likewise.
14570 (store_regs_user_thread): Likewise.
14571 (store_regs_kernel_thread): Likewise.
14572 (fetch_regs_kernel_thread): Remove shadowed variable.
14573
172fb711
AB
145742019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
14575
14576 * features/riscv/32bit-cpu.xml: Add register numbers.
14577 * features/riscv/32bit-fpu.c: Regenerate.
14578 * features/riscv/32bit-fpu.xml: Add register numbers.
14579 * features/riscv/64bit-cpu.xml: Add register numbers.
14580 * features/riscv/64bit-fpu.c: Regenerate.
14581 * features/riscv/64bit-fpu.xml: Add register numbers.
14582
26c89782
KB
145832019-02-26 Kevin Buettner <kevinb@redhat.com>
14584
af54ade9 14585 * NEWS: Mention two argument form of gdb.Value constructor.
fe07eca5
KB
14586 * python/py-value.c (convert_buffer_and_type_to_value): New
14587 function.
14588 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
14589 Add support for handling an optional second argument. Call
14590 convert_buffer_and_type_to_value as appropriate.
26c89782
KB
14591 * python/python-internal.h (Py_buffer_deleter): New struct.
14592 (Py_buffer_up): New typedef.
14593
0f58c9e8
JB
145942019-02-25 John Baldwin <jhb@FreeBSD.org>
14595
14596 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
14597 instead of releasing ownership.
14598
0a0f4c01
JR
145992019-02-25 Jordan Rupprecht <rupprecht@google.com>
14600
14601 * dwarf2read.c (open_and_init_dwp_file): Call
14602 elf_numsections instead of bfd_count_sections to initialize
14603 dwp_file->num_sections.
14604
cd5a152c
TT
146052019-02-25 Tom Tromey <tromey@adacore.com>
14606
14607 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
14608
8a6a8513
SDJ
146092019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
14610
14611 * gcore.in: Add '--readnever' option when invoking GDB.
14612
04dcda9c
SM
146132019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
14614
14615 * MAINTAINERS: Update my email address.
14616
07bc701d
SM
146172019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
14618
14619 * build-id.c (build_id_to_debug_bfd_1): New function.
14620 (build_id_to_debug_bfd): Look for separate debug file in
14621 sysroot.
14622
c6f4a5d0
AB
146232019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
14624
14625 * gdbarch.sh: Update the copyright year range that is placed into
14626 generated files.
14627
9600246d
KS
146282019-02-22 Keith Seitz <keiths@redhat.com>
14629
14630 PR symtab/23853
14631 * linespec.c (create_sals_line_offset): Search for the default
14632 symtab's filename instead of its fullname.
14633
7557a514
AH
146342019-02-21 Alan Hayward <alan.hayward@arm.com>
14635
14636 * NEWS: Update style defaults.
14637
ee2bcb0c
AH
146382019-02-21 Alan Hayward <alan.hayward@arm.com>
14639
14640 * main.c (captured_main_1): Disable styling in batch mode.
14641
0c95f9ed
TT
146422019-02-20 Tom Tromey <tom@tromey.com>
14643
14644 * symtab.c (symtab_symbol_info): Fix typos.
14645
c763b894
TT
146462019-02-20 Tom Tromey <tromey@adacore.com>
14647
14648 * findcmd.c (_initialize_mem_search): Use upper case for
14649 metasyntactic variables.
14650
0ef8a082
AH
146512019-02-20 Alan Hayward <alan.hayward@arm.com>
14652
14653 * aarch64-tdep.c (aarch64_add_reggroups): New function.
14654 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
14655
6caa91b6
SM
146562019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
14657
14658 * top.h (source_file_name): Change to std::string.
14659 * top.c (source_file_name): Likewise.
14660 (command_line_input): Adjust.
14661 * cli/cli-script.c (script_from_file): Adjust.
14662
98814c6c
TT
146632019-02-19 Tom Tromey <tromey@adacore.com>
14664
14665 * ravenscar-thread.c
14666 (ravenscar_thread_target::update_thread_list): Don't call
14667 ada_build_task_list.
14668 * ada-lang.h (ada_build_task_list): Don't declare.
14669 * ada-tasks.c (struct ada_tasks_inferior_data)
14670 <task_list_valid_p>: Now bool.
14671 (read_known_tasks, ada_task_list_changed)
14672 (ada_tasks_invalidate_inferior_data): Update.
14673 (read_known_tasks_array): Return bool.
14674 (read_known_tasks_list): Likewise.
14675 (read_known_tasks): Return void.
14676 (ada_build_task_list): Now static.
14677
70cd633e
AB
146782019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
14679
14680 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
14681 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
14682
040b3e95
PW
146832019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14684
14685 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
14686 variant for ada_tasks_pspace_data_handle and
14687 ada_tasks_inferior_data_handle.
14688 (ada_tasks_pspace_data_cleanup): New function.
14689 (ada_tasks_inferior_data_cleanup): New function.
14690
9409233b
TT
146912019-02-17 Tom Tromey <tom@tromey.com>
14692
14693 * macrotab.h (macro_source_fullname): Return a std::string.
14694 * macrotab.c (macro_include, check_for_redefinition)
14695 (macro_undef, macro_lookup_definition, foreach_macro)
14696 (foreach_macro_in_scope): Update.
14697 (macro_source_fullname): Return a std::string.
14698 * macrocmd.c (show_pp_source_pos): Update.
14699
6506371f
TT
147002019-02-17 Tom Tromey <tom@tromey.com>
14701
14702 * macrocmd.c (show_pp_source_pos): Style the file names.
14703
0c820d67
TT
147042019-02-17 Tom Tromey <tom@tromey.com>
14705
14706 PR tui/24197:
14707 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
14708
a0087920
TT
147092019-02-17 Tom Tromey <tom@tromey.com>
14710
14711 * ada-lang.c (user_select_syms): Use filtered printing.
14712 * utils.c (wrap_style): New global.
14713 (desired_style): Remove.
14714 (emit_style_escape): Add stream parameter.
14715 (set_output_style, reset_terminal_style, prompt_for_continue):
14716 Update.
14717 (flush_wrap_buffer): Only flush gdb_stdout.
14718 (wrap_here): Set wrap_style.
14719 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
14720 treat escape sequences as a character. Change when wrap buffer is
14721 flushed.
14722 (fputs_styled): Do not set the output style when the default is
14723 requested.
14724 * ui-style.h (struct ui_file_style) <is_default>: New method.
14725 * source.c (print_source_lines_base): Emit escape sequences in one
14726 piece.
14727
75ba10dc
JB
147282019-02-17 Joel Brobecker <brobecker@adacore.com>
14729
14730 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
14731 integers and enumeration types.
14732
a2cd4f14
JB
147332019-02-17 Joel Brobecker <brobecker@adacore.com>
14734
14735 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
14736 instead of lookup_symbol_in_language
14737 (do_exact_match): New function.
14738 (ada_get_symbol_name_matcher): Return do_exact_match when
14739 doing a verbatim match.
14740
485b851b
TT
147412019-02-15 Tom Tromey <tromey@adacore.com>
14742
14743 * ravenscar-thread.c (ravenscar_thread_target::resume)
14744 (ravenscar_thread_target::wait): Special case wildcard requests.
14745
0b790b1e
TT
147462019-02-15 Tom Tromey <tromey@adacore.com>
14747
14748 * ravenscar-thread.c (base_ptid): Remove.
14749 (struct ravenscar_thread_target) <close>: New method.
14750 <m_base_ptid>: New member.
14751 <update_inferior_ptid, active_task, task_is_currently_active,
14752 runtime_initialized>: Declare methods.
14753 <ravenscar_thread_target>: Add constructor.
14754 (ravenscar_thread_target::task_is_currently_active)
14755 (ravenscar_thread_target::update_inferior_ptid)
14756 (ravenscar_runtime_initialized): Rename. Now methods.
14757 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
14758 (ravenscar_thread_target::update_thread_list): Update.
14759 (ravenscar_thread_target::active_task): Now method.
14760 (ravenscar_thread_target::store_registers)
14761 (ravenscar_thread_target::prepare_to_store)
14762 (ravenscar_thread_target::prepare_to_store)
14763 (ravenscar_thread_target::mourn_inferior): Update.
14764 (ravenscar_inferior_created): Use "new" to create target.
14765 (ravenscar_thread_target::get_ada_task_ptid): Update.
14766 (_initialize_ravenscar): Don't initialize base_ptid.
14767 (ravenscar_ops): Remove global.
14768
dea57a62
TT
147692019-02-15 Tom Tromey <tromey@adacore.com>
14770
14771 * target.h (push_target): Declare new overload.
14772 * target.c (push_target): New overload, taking an rvalue reference.
14773 * remote.c (remote_target::open_1): Use push_target overload.
14774 * corelow.c (core_target_open): Use push_target overload.
14775
989f3c58
TT
147762019-02-15 Tom Tromey <tromey@adacore.com>
14777
14778 * ravenscar-thread.c (is_ravenscar_task)
14779 (ravenscar_task_is_currently_active): Return bool.
14780 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
14781 (_initialize_ravenscar): Remove "(void)".
14782 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
14783 Return bool.
14784
6cbcc006
TT
147852019-02-15 Tom Tromey <tromey@adacore.com>
14786
14787 * ravenscar-thread.c (ravenscar_runtime_initializer)
14788 (has_ravenscar_runtime, get_running_thread_id)
14789 (ravenscar_thread_target::resume): Fix indentation.
14790
7657f14d
TT
147912019-02-15 Tom Tromey <tromey@adacore.com>
14792
14793 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
14794 from ravenscar_arch_ops.
14795 (sparc_ravenscar_ops::fetch_registers)
14796 (sparc_ravenscar_ops::store_registers): Now methods.
14797 (sparc_ravenscar_prepare_to_store): Remove.
14798 (sparc_ravenscar_ops): Redefine.
14799 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
14800 methods and destructor. Remove members.
14801 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
14802 (ravenscar_thread_target::store_registers)
14803 (ravenscar_thread_target::prepare_to_store): Update.
14804 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
14805 Remove.
14806 (struct ppc_ravenscar_powerpc_ops): Derive from
14807 ravenscar_arch_ops.
14808 (ppc_ravenscar_powerpc_ops::fetch_registers)
14809 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
14810 (ppc_ravenscar_powerpc_ops): Redefine.
14811 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
14812 (ppc_ravenscar_e500_ops::fetch_registers)
14813 (ppc_ravenscar_e500_ops::store_registers): Now methods.
14814 (ppc_ravenscar_e500_ops): Redefine.
14815 * aarch64-ravenscar-thread.c
14816 (aarch64_ravenscar_generic_prepare_to_store): Remove.
14817 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
14818 (aarch64_ravenscar_fetch_registers)
14819 (aarch64_ravenscar_store_registers): Now methods.
14820 (aarch64_ravenscar_ops): Redefine.
14821
5b6ea500
TT
148222019-02-15 Tom Tromey <tromey@adacore.com>
14823
14824 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
14825 (ravenscar_thread_target::stopped_by_hw_breakpoint)
14826 (ravenscar_thread_target::stopped_by_watchpoint)
14827 (ravenscar_thread_target::stopped_data_address)
14828 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
14829
e397fd39
TT
148302019-02-15 Tom Tromey <tromey@adacore.com>
14831
14832 * ravenscar-thread.c: Fix some typos.
14833
cc12f4a8
TT
148342019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14835 Tom Tromey <tromey@adacore.com>
14836
14837 * ada-lang.c (ada_exception_sal): Change addr_string to a
14838 std::string.
14839 (create_ada_exception_catchpoint): Update.
14840
5f486660
TT
148412019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14842 Tom Tromey <tromey@adacore.com>
14843
14844 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
14845 (bp_location_ops): Remove.
14846 (base_breakpoint_allocate_location): Update.
14847 (free_bp_location): Update.
14848 * ada-lang.c (class ada_catchpoint_location)
14849 <ada_catchpoint_location>: Remove ops parameter.
14850 (ada_catchpoint_location_dtor): Remove.
14851 (ada_catchpoint_location_ops): Remove.
14852 (allocate_location_exception): Update.
14853 * breakpoint.h (struct bp_location_ops): Remove.
14854 (class bp_location) <bp_location>: Remove bp_location_ops
14855 parameter.
14856 <~bp_location>: Add destructor.
14857 <ops>: Remove.
14858
b671c7fb
TS
148592019-02-14 Thomas Schwinge <thomas@codesourcery.com>
14860 Pedro Alves <palves@redhat.com>
14861
14862 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
14863 'PATH_MAX'.
14864
8071c5ce
DM
148652019-02-14 David Michael <fedora.dm0@gmail.com>
14866 Samuel Thibault <samuel.thibault@gnu.org>
14867 Thomas Schwinge <thomas@codesourcery.com>
14868
14869 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
14870 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
14871
b1041ae0
TS
148722019-02-14 Thomas Schwinge <thomas@codesourcery.com>
14873
924514e1
TS
14874 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
14875 (check_empty): Use "const char *".
14876
c29ee8d4
TS
14877 * gnu-nat.c (gnu_nat_target::detach): Instead of
14878 'detach_inferior (pid)' call
14879 'detach_inferior (find_inferior_pid (pid))'.
14880
6c6ef69f
TS
14881 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
14882 'nat/fork-inferior.o'.
14883 * gnu-nat.c: #include "nat/fork-inferior.h".
14884
2d0a338c
TS
14885 * gnu-nat.c (gnu_nat_target::detach): Instead of
14886 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
14887 * gnu-nat.h: #include "inf-child.h".
14888 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
14889 'i386_gnu_nat_target::fetch_registers'.
14890 (gnu_store_registers): Rename/move to
14891 'i386_gnu_nat_target::store_registers'.
14892
cabb5f06
TS
14893 * config/i386/nm-i386gnu.h: Don't "#include" any files.
14894 * gnu-nat.h (mach_thread_info): New function.
14895 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
14896
b1041ae0
TS
14897 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
14898
2988d01e
KF
148992019-02-14 Frederic Konrad <konrad@adacore.com>
14900
14901 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
14902
c559d709
JB
149032019-02-14 Joel Brobecker <brobecker@adacore.com>
14904
14905 * windows-nat.c (windows_add_thread): Add new parameter
14906 "main_thread_p" with default value set to false. Update
14907 function documentation as well as all callers.
14908 (windows_delete_thread): Likewise.
14909 (fake_create_process): Update call to windows_add_thread.
14910 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
14911 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
14912 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
14913 call to windows_delete_thread.
14914
007024cc
SM
149152019-02-13 Simon Marchi <simon.marchi@ericsson.com>
14916
14917 * MAINTAINERS: Add Andrew Burgess as global maintainer.
14918
f62318e9
JB
149192019-02-12 John Baldwin <jhb@FreeBSD.org>
14920
14921 * symfile.c (find_separate_debug_file): Use canonical path of
14922 sysroot with child_path instead of gdb_sysroot if it is valid.
14923
cd4b7848
JB
149242019-02-12 John Baldwin <jhb@FreeBSD.org>
14925
14926 * symfile.c (find_separate_debug_file): Use child_path to
14927 determine if an object file is under a sysroot.
14928
efac4bfe
JB
149292019-02-12 John Baldwin <jhb@FreeBSD.org>
14930
14931 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
14932 unittests/child-path-selftests.c.
14933 * common/pathstuff.c (child_path): New function.
14934 * common/pathstuff.h (child_path): New prototype.
14935 * unittests/child-path-selftests.c: New file.
14936
402d2bfe
JB
149372019-02-12 John Baldwin <jhb@FreeBSD.org>
14938
14939 * symfile.c (find_separate_debug_file): Look for separate debug
14940 files in debug directories under the sysroot.
14941
1ed9f74e
PW
149422019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14943
14944 * symtab.h (struct minimal_symbol data_p): New const method.
14945 (struct minimal_symbol text_p): Likewise.
14946 * symtab.c (output_source_filename): Use file name style
14947 to print file name.
14948 (print_symbol_info): Likewise.
14949 (print_msymbol_info): Use address style to print addresses.
14950 Use function name style to print executable text symbols.
14951 (expand_symtab_containing_pc): Use data_p.
14952 (find_pc_sect_compunit_symtab): Likewise.
14953
2636d81d
PW
149542019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14955
14956 * breakpoint.c (describe_other_breakpoints): Use address style
14957 to print addresses.
14958 (say_where): Likewise.
14959
ac8c53cc
PW
149602019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14961
14962 * ada-typeprint.c (print_func_type): Print function name
14963 style to print function name.
14964 * c-typeprint.c (c_print_type_1): Likewise.
14965
ea638c43
AH
149662019-02-11 Alan Hayward <alan.hayward@arm.com>
14967
14968 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
14969 for execve.
14970
ab759ca8
PW
149712019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14972
14973 * c-exp.y (direct_abs_decl): Use emplace_back to record the
14974 type_stack.
14975
aff29d1c
JB
149762019-02-10 Joel Brobecker <brobecker@adacore.com>
14977
14978 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
14979 TYPE_CODE_REF types.
14980
617126bc
JW
149812019-02-08 Jim Wilson <jimw@sifive.com>
14982
14983 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
14984 (riscv_linux_fregset): New.
14985 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
14986
46e3ed7f
TT
149872019-02-07 Tom Tromey <tom@tromey.com>
14988
14989 * thread.c (thread_cancel_execution_command): Update.
14990 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
14991 methods.
14992 (struct thread_fsm_ops): Remove.
14993 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
14994 (thread_fsm_should_stop, thread_fsm_return_value)
14995 (thread_fsm_set_finished, thread_fsm_finished_p)
14996 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
14997 Don't declare.
14998 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
14999 * infrun.c (clear_proceed_status_thread)
15000 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
15001 (print_stop_event): Update.
15002 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
15003 Add constructor.
15004 (step_command_fsm_ops): Remove.
15005 (new_step_command_fsm): Remove.
15006 (step_1): Update.
15007 (step_command_fsm::should_stop): Rename from
15008 step_command_fsm_should_stop.
15009 (step_command_fsm::clean_up): Rename from
15010 step_command_fsm_clean_up.
15011 (step_command_fsm::do_async_reply_reason): Rename from
15012 step_command_fsm_async_reply_reason.
15013 (struct until_next_fsm): Inherit from thread_fsm. Add
15014 constructor.
15015 (until_next_fsm_ops): Remove.
15016 (new_until_next_fsm): Remove.
15017 (until_next_fsm::should_stop): Rename from
15018 until_next_fsm_should_stop.
15019 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
15020 (until_next_fsm::do_async_reply_reason): Rename from
15021 until_next_fsm_async_reply_reason.
15022 (struct finish_command_fsm): Inherit from thread_fsm. Add
15023 constructor. Change type of breakpoint.
15024 (finish_command_fsm_ops): Remove.
15025 (new_finish_command_fsm): Remove.
15026 (finish_command_fsm::should_stop): Rename from
15027 finish_command_fsm_should_stop.
15028 (finish_command_fsm::clean_up): Rename from
15029 finish_command_fsm_clean_up.
15030 (finish_command_fsm::return_value): Rename from
15031 finish_command_fsm_return_value.
15032 (finish_command_fsm::do_async_reply_reason): Rename from
15033 finish_command_fsm_async_reply_reason.
15034 (finish_command): Update.
15035 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
15036 Add constructor.
15037 (call_thread_fsm_ops): Remove.
15038 (call_thread_fsm::call_thread_fsm): Rename from
15039 new_call_thread_fsm.
15040 (call_thread_fsm::should_stop): Rename from
15041 call_thread_fsm_should_stop.
15042 (call_thread_fsm::should_notify_stop): Rename from
15043 call_thread_fsm_should_notify_stop.
15044 (run_inferior_call, call_function_by_hand_dummy): Update.
15045 * cli/cli-interp.c (should_print_stop_to_console): Update.
15046 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
15047 Add constructor. Change type of location_breakpoint,
15048 caller_breakpoint.
15049 (until_break_fsm_ops): Remove.
15050 (new_until_break_fsm): Remove.
15051 (until_break_fsm::should_stop): Rename from
15052 until_break_fsm_should_stop.
15053 (until_break_fsm::clean_up): Rename from
15054 until_break_fsm_clean_up.
15055 (until_break_fsm::do_async_reply_reason): Rename from
15056 until_break_fsm_async_reply_reason.
15057 (until_break_command): Update.
15058 * thread-fsm.c: Remove.
15059 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
15060
1a5c2598
TT
150612019-02-07 Tom Tromey <tom@tromey.com>
15062
15063 * yy-remap.h: Add include guard.
15064 * xtensa-tdep.h: Add include guard.
15065 * xcoffread.h: Rename include guard.
15066 * varobj-iter.h: Add include guard.
15067 * tui/tui.h: Rename include guard.
15068 * tui/tui-winsource.h: Rename include guard.
15069 * tui/tui-wingeneral.h: Rename include guard.
15070 * tui/tui-windata.h: Rename include guard.
15071 * tui/tui-win.h: Rename include guard.
15072 * tui/tui-stack.h: Rename include guard.
15073 * tui/tui-source.h: Rename include guard.
15074 * tui/tui-regs.h: Rename include guard.
15075 * tui/tui-out.h: Rename include guard.
15076 * tui/tui-layout.h: Rename include guard.
15077 * tui/tui-io.h: Rename include guard.
15078 * tui/tui-hooks.h: Rename include guard.
15079 * tui/tui-file.h: Rename include guard.
15080 * tui/tui-disasm.h: Rename include guard.
15081 * tui/tui-data.h: Rename include guard.
15082 * tui/tui-command.h: Rename include guard.
15083 * tic6x-tdep.h: Add include guard.
15084 * target/waitstatus.h: Rename include guard.
15085 * target/wait.h: Rename include guard.
15086 * target/target.h: Rename include guard.
15087 * target/resume.h: Rename include guard.
15088 * target-float.h: Rename include guard.
15089 * stabsread.h: Add include guard.
15090 * rs6000-tdep.h: Add include guard.
15091 * riscv-fbsd-tdep.h: Add include guard.
15092 * regformats/regdef.h: Rename include guard.
15093 * record.h: Rename include guard.
15094 * python/python.h: Rename include guard.
15095 * python/python-internal.h: Rename include guard.
15096 * python/py-stopevent.h: Rename include guard.
15097 * python/py-ref.h: Rename include guard.
15098 * python/py-record.h: Rename include guard.
15099 * python/py-record-full.h: Rename include guard.
15100 * python/py-record-btrace.h: Rename include guard.
15101 * python/py-instruction.h: Rename include guard.
15102 * python/py-events.h: Rename include guard.
15103 * python/py-event.h: Rename include guard.
15104 * procfs.h: Add include guard.
15105 * proc-utils.h: Add include guard.
15106 * p-lang.h: Add include guard.
15107 * or1k-tdep.h: Rename include guard.
15108 * observable.h: Rename include guard.
15109 * nto-tdep.h: Rename include guard.
15110 * nat/x86-linux.h: Rename include guard.
15111 * nat/x86-linux-dregs.h: Rename include guard.
15112 * nat/x86-gcc-cpuid.h: Add include guard.
15113 * nat/x86-dregs.h: Rename include guard.
15114 * nat/x86-cpuid.h: Rename include guard.
15115 * nat/ppc-linux.h: Rename include guard.
15116 * nat/mips-linux-watch.h: Rename include guard.
15117 * nat/linux-waitpid.h: Rename include guard.
15118 * nat/linux-ptrace.h: Rename include guard.
15119 * nat/linux-procfs.h: Rename include guard.
15120 * nat/linux-osdata.h: Rename include guard.
15121 * nat/linux-nat.h: Rename include guard.
15122 * nat/linux-namespaces.h: Rename include guard.
15123 * nat/linux-btrace.h: Rename include guard.
15124 * nat/glibc_thread_db.h: Rename include guard.
15125 * nat/gdb_thread_db.h: Rename include guard.
15126 * nat/gdb_ptrace.h: Rename include guard.
15127 * nat/fork-inferior.h: Rename include guard.
15128 * nat/amd64-linux-siginfo.h: Rename include guard.
15129 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
15130 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
15131 * nat/aarch64-linux.h: Rename include guard.
15132 * nat/aarch64-linux-hw-point.h: Rename include guard.
15133 * mn10300-tdep.h: Add include guard.
15134 * mips-linux-tdep.h: Add include guard.
15135 * mi/mi-parse.h: Rename include guard.
15136 * mi/mi-out.h: Rename include guard.
15137 * mi/mi-main.h: Rename include guard.
15138 * mi/mi-interp.h: Rename include guard.
15139 * mi/mi-getopt.h: Rename include guard.
15140 * mi/mi-console.h: Rename include guard.
15141 * mi/mi-common.h: Rename include guard.
15142 * mi/mi-cmds.h: Rename include guard.
15143 * mi/mi-cmd-break.h: Rename include guard.
15144 * m2-lang.h: Add include guard.
15145 * location.h: Rename include guard.
15146 * linux-record.h: Rename include guard.
15147 * linux-nat.h: Add include guard.
15148 * linux-fork.h: Add include guard.
15149 * i386-darwin-tdep.h: Rename include guard.
15150 * hppa-linux-offsets.h: Add include guard.
15151 * guile/guile.h: Rename include guard.
15152 * guile/guile-internal.h: Rename include guard.
15153 * gnu-nat.h: Rename include guard.
15154 * gdb-stabs.h: Rename include guard.
15155 * frv-tdep.h: Add include guard.
15156 * f-lang.h: Add include guard.
15157 * event-loop.h: Add include guard.
15158 * darwin-nat.h: Rename include guard.
15159 * cp-abi.h: Rename include guard.
15160 * config/sparc/nm-sol2.h: Rename include guard.
15161 * config/nm-nto.h: Rename include guard.
15162 * config/nm-linux.h: Add include guard.
15163 * config/i386/nm-i386gnu.h: Rename include guard.
15164 * config/djgpp/nl_types.h: Rename include guard.
15165 * config/djgpp/langinfo.h: Rename include guard.
15166 * compile/gcc-cp-plugin.h: Add include guard.
15167 * compile/gcc-c-plugin.h: Add include guard.
15168 * compile/compile.h: Rename include guard.
15169 * compile/compile-object-run.h: Rename include guard.
15170 * compile/compile-object-load.h: Rename include guard.
15171 * compile/compile-internal.h: Rename include guard.
15172 * compile/compile-cplus.h: Rename include guard.
15173 * compile/compile-c.h: Rename include guard.
15174 * common/xml-utils.h: Rename include guard.
15175 * common/x86-xstate.h: Rename include guard.
15176 * common/version.h: Rename include guard.
15177 * common/vec.h: Rename include guard.
15178 * common/tdesc.h: Rename include guard.
15179 * common/selftest.h: Rename include guard.
15180 * common/scoped_restore.h: Rename include guard.
15181 * common/scoped_mmap.h: Rename include guard.
15182 * common/scoped_fd.h: Rename include guard.
15183 * common/safe-iterator.h: Rename include guard.
15184 * common/run-time-clock.h: Rename include guard.
15185 * common/refcounted-object.h: Rename include guard.
15186 * common/queue.h: Rename include guard.
15187 * common/ptid.h: Rename include guard.
15188 * common/print-utils.h: Rename include guard.
15189 * common/preprocessor.h: Rename include guard.
15190 * common/pathstuff.h: Rename include guard.
15191 * common/observable.h: Rename include guard.
15192 * common/netstuff.h: Rename include guard.
15193 * common/job-control.h: Rename include guard.
15194 * common/host-defs.h: Rename include guard.
15195 * common/gdb_wait.h: Rename include guard.
15196 * common/gdb_vecs.h: Rename include guard.
15197 * common/gdb_unlinker.h: Rename include guard.
15198 * common/gdb_unique_ptr.h: Rename include guard.
15199 * common/gdb_tilde_expand.h: Rename include guard.
15200 * common/gdb_sys_time.h: Rename include guard.
15201 * common/gdb_string_view.h: Rename include guard.
15202 * common/gdb_splay_tree.h: Rename include guard.
15203 * common/gdb_setjmp.h: Rename include guard.
15204 * common/gdb_ref_ptr.h: Rename include guard.
15205 * common/gdb_optional.h: Rename include guard.
15206 * common/gdb_locale.h: Rename include guard.
15207 * common/gdb_assert.h: Rename include guard.
15208 * common/filtered-iterator.h: Rename include guard.
15209 * common/filestuff.h: Rename include guard.
15210 * common/fileio.h: Rename include guard.
15211 * common/environ.h: Rename include guard.
15212 * common/common-utils.h: Rename include guard.
15213 * common/common-types.h: Rename include guard.
15214 * common/common-regcache.h: Rename include guard.
15215 * common/common-inferior.h: Rename include guard.
15216 * common/common-gdbthread.h: Rename include guard.
15217 * common/common-exceptions.h: Rename include guard.
15218 * common/common-defs.h: Rename include guard.
15219 * common/common-debug.h: Rename include guard.
15220 * common/cleanups.h: Rename include guard.
15221 * common/buffer.h: Rename include guard.
15222 * common/btrace-common.h: Rename include guard.
15223 * common/break-common.h: Rename include guard.
15224 * cli/cli-utils.h: Rename include guard.
15225 * cli/cli-style.h: Rename include guard.
15226 * cli/cli-setshow.h: Rename include guard.
15227 * cli/cli-script.h: Rename include guard.
15228 * cli/cli-interp.h: Rename include guard.
15229 * cli/cli-decode.h: Rename include guard.
15230 * cli/cli-cmds.h: Rename include guard.
15231 * charset-list.h: Add include guard.
15232 * buildsym-legacy.h: Rename include guard.
15233 * bfin-tdep.h: Add include guard.
15234 * ax.h: Rename include guard.
15235 * arm-linux-tdep.h: Add include guard.
15236 * arm-fbsd-tdep.h: Add include guard.
15237 * arch/xtensa.h: Rename include guard.
15238 * arch/tic6x.h: Add include guard.
15239 * arch/i386.h: Add include guard.
15240 * arch/arm.h: Rename include guard.
15241 * arch/arm-linux.h: Rename include guard.
15242 * arch/arm-get-next-pcs.h: Rename include guard.
15243 * arch/amd64.h: Add include guard.
15244 * arch/aarch64-insn.h: Rename include guard.
15245 * arch-utils.h: Rename include guard.
15246 * annotate.h: Add include guard.
15247 * amd64-darwin-tdep.h: Rename include guard.
15248 * aarch64-linux-tdep.h: Add include guard.
15249 * aarch64-fbsd-tdep.h: Add include guard.
15250 * aarch32-linux-nat.h: Add include guard.
15251
ab9268d2
PW
152522019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15253
15254 * macrotab.c (macro_define_internal): New function that
15255 factorizes macro_define_object_internal and macro_define_function
15256 code.
15257 (macro_define_object_internal): Use macro_define_internal.
15258 (macro_define_function): Likewise.
15259
bb0da2b4
PW
152602019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15261
15262 * macrocmd.c (extract_identifier): Return
15263 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
15264 callers.
15265
424eb552
JB
152662019-02-06 John Baldwin <jhb@FreeBSD.org>
15267
15268 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
15269
1688cb29
TT
152702019-02-05 Tom Tromey <tom@tromey.com>
15271
15272 * target.c (target_stack::unpush): Move assertion earlier.
15273
b5eba2d8
TT
152742019-01-30 Tom Tromey <tom@tromey.com>
15275
15276 PR python/23615:
15277 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
15278 (gdbpy_parse_and_eval): Likewise.
15279 * python/python-internal.h (gdbpy_allow_threads): New class.
15280
7054e2ff
JB
152812019-01-28 John Baldwin <jhb@FreeBSD.org>
15282
15283 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
15284 (aarch64_fbsd_fpregmap): Move earlier.
15285 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
15286 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
15287 instead of individual calls to trad_frame_set_reg_addr.
15288 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
15289 earlier.
15290 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
15291 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
15292 instead of individual calls to trad_frame_set_reg_addr.
15293
36c25ffa
AH
152942019-01-28 Alan Hayward <alan.hayward@arm.com>
15295
15296 * CONTRIBUTE: Replace contribution list with wiki link.
15297
a0707f3c
TT
152982019-01-25 Tom Tromey <tom@tromey.com>
15299
15300 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
15301
0747795c
TT
153022019-01-25 Tom Tromey <tom@tromey.com>
15303
15304 * xtensa-linux-nat.c: Fix common/ includes.
15305 * xml-support.h: Fix common/ includes.
15306 * xml-support.c: Fix common/ includes.
15307 * x86-linux-nat.c: Fix common/ includes.
15308 * windows-nat.c: Fix common/ includes.
15309 * varobj.h: Fix common/ includes.
15310 * varobj.c: Fix common/ includes.
15311 * value.c: Fix common/ includes.
15312 * valops.c: Fix common/ includes.
15313 * utils.c: Fix common/ includes.
15314 * unittests/xml-utils-selftests.c: Fix common/ includes.
15315 * unittests/utils-selftests.c: Fix common/ includes.
15316 * unittests/unpack-selftests.c: Fix common/ includes.
15317 * unittests/tracepoint-selftests.c: Fix common/ includes.
15318 * unittests/style-selftests.c: Fix common/ includes.
15319 * unittests/string_view-selftests.c: Fix common/ includes.
15320 * unittests/scoped_restore-selftests.c: Fix common/ includes.
15321 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
15322 * unittests/scoped_fd-selftests.c: Fix common/ includes.
15323 * unittests/rsp-low-selftests.c: Fix common/ includes.
15324 * unittests/parse-connection-spec-selftests.c: Fix common/
15325 includes.
15326 * unittests/optional-selftests.c: Fix common/ includes.
15327 * unittests/offset-type-selftests.c: Fix common/ includes.
15328 * unittests/observable-selftests.c: Fix common/ includes.
15329 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
15330 * unittests/memrange-selftests.c: Fix common/ includes.
15331 * unittests/memory-map-selftests.c: Fix common/ includes.
15332 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
15333 * unittests/function-view-selftests.c: Fix common/ includes.
15334 * unittests/environ-selftests.c: Fix common/ includes.
15335 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
15336 * unittests/common-utils-selftests.c: Fix common/ includes.
15337 * unittests/cli-utils-selftests.c: Fix common/ includes.
15338 * unittests/array-view-selftests.c: Fix common/ includes.
15339 * ui-file.c: Fix common/ includes.
15340 * tui/tui-io.c: Fix common/ includes.
15341 * tracepoint.h: Fix common/ includes.
15342 * tracepoint.c: Fix common/ includes.
15343 * tracefile-tfile.c: Fix common/ includes.
15344 * top.h: Fix common/ includes.
15345 * top.c: Fix common/ includes.
15346 * thread.c: Fix common/ includes.
15347 * target/waitstatus.h: Fix common/ includes.
15348 * target/waitstatus.c: Fix common/ includes.
15349 * target.h: Fix common/ includes.
15350 * target.c: Fix common/ includes.
15351 * target-memory.c: Fix common/ includes.
15352 * target-descriptions.c: Fix common/ includes.
15353 * symtab.h: Fix common/ includes.
15354 * symfile.c: Fix common/ includes.
15355 * stap-probe.c: Fix common/ includes.
15356 * spu-linux-nat.c: Fix common/ includes.
15357 * sparc-nat.c: Fix common/ includes.
15358 * source.c: Fix common/ includes.
15359 * solib.c: Fix common/ includes.
15360 * solib-target.c: Fix common/ includes.
15361 * ser-unix.c: Fix common/ includes.
15362 * ser-tcp.c: Fix common/ includes.
15363 * ser-pipe.c: Fix common/ includes.
15364 * ser-base.c: Fix common/ includes.
15365 * selftest-arch.c: Fix common/ includes.
15366 * s12z-tdep.c: Fix common/ includes.
15367 * rust-exp.y: Fix common/ includes.
15368 * rs6000-aix-tdep.c: Fix common/ includes.
15369 * riscv-tdep.c: Fix common/ includes.
15370 * remote.c: Fix common/ includes.
15371 * remote-notif.h: Fix common/ includes.
15372 * remote-fileio.h: Fix common/ includes.
15373 * remote-fileio.c: Fix common/ includes.
15374 * regcache.h: Fix common/ includes.
15375 * regcache.c: Fix common/ includes.
15376 * record-btrace.c: Fix common/ includes.
15377 * python/python.c: Fix common/ includes.
15378 * python/py-type.c: Fix common/ includes.
15379 * python/py-inferior.c: Fix common/ includes.
15380 * progspace.h: Fix common/ includes.
15381 * producer.c: Fix common/ includes.
15382 * procfs.c: Fix common/ includes.
15383 * proc-api.c: Fix common/ includes.
15384 * printcmd.c: Fix common/ includes.
15385 * ppc-linux-nat.c: Fix common/ includes.
15386 * parser-defs.h: Fix common/ includes.
15387 * osdata.c: Fix common/ includes.
15388 * obsd-nat.c: Fix common/ includes.
15389 * nat/x86-linux.c: Fix common/ includes.
15390 * nat/x86-linux-dregs.c: Fix common/ includes.
15391 * nat/x86-dregs.h: Fix common/ includes.
15392 * nat/x86-dregs.c: Fix common/ includes.
15393 * nat/ppc-linux.c: Fix common/ includes.
15394 * nat/mips-linux-watch.h: Fix common/ includes.
15395 * nat/mips-linux-watch.c: Fix common/ includes.
15396 * nat/linux-waitpid.c: Fix common/ includes.
15397 * nat/linux-ptrace.h: Fix common/ includes.
15398 * nat/linux-ptrace.c: Fix common/ includes.
15399 * nat/linux-procfs.c: Fix common/ includes.
15400 * nat/linux-personality.c: Fix common/ includes.
15401 * nat/linux-osdata.c: Fix common/ includes.
15402 * nat/linux-namespaces.c: Fix common/ includes.
15403 * nat/linux-btrace.h: Fix common/ includes.
15404 * nat/linux-btrace.c: Fix common/ includes.
15405 * nat/fork-inferior.c: Fix common/ includes.
15406 * nat/amd64-linux-siginfo.c: Fix common/ includes.
15407 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
15408 * nat/aarch64-linux.c: Fix common/ includes.
15409 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
15410 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
15411 * namespace.h: Fix common/ includes.
15412 * mips-linux-tdep.c: Fix common/ includes.
15413 * minsyms.c: Fix common/ includes.
15414 * mi/mi-parse.h: Fix common/ includes.
15415 * mi/mi-main.c: Fix common/ includes.
15416 * mi/mi-cmd-env.c: Fix common/ includes.
15417 * memrange.h: Fix common/ includes.
15418 * memattr.c: Fix common/ includes.
15419 * maint.h: Fix common/ includes.
15420 * maint.c: Fix common/ includes.
15421 * main.c: Fix common/ includes.
15422 * machoread.c: Fix common/ includes.
15423 * location.c: Fix common/ includes.
15424 * linux-thread-db.c: Fix common/ includes.
15425 * linux-nat.c: Fix common/ includes.
15426 * linux-fork.c: Fix common/ includes.
15427 * inline-frame.c: Fix common/ includes.
15428 * infrun.c: Fix common/ includes.
15429 * inflow.c: Fix common/ includes.
15430 * inferior.h: Fix common/ includes.
15431 * inferior.c: Fix common/ includes.
15432 * infcmd.c: Fix common/ includes.
15433 * inf-ptrace.c: Fix common/ includes.
15434 * inf-child.c: Fix common/ includes.
15435 * ia64-linux-nat.c: Fix common/ includes.
15436 * i387-tdep.c: Fix common/ includes.
15437 * i386-tdep.c: Fix common/ includes.
15438 * i386-linux-tdep.c: Fix common/ includes.
15439 * i386-linux-nat.c: Fix common/ includes.
15440 * i386-go32-tdep.c: Fix common/ includes.
15441 * i386-fbsd-tdep.c: Fix common/ includes.
15442 * i386-fbsd-nat.c: Fix common/ includes.
15443 * guile/scm-type.c: Fix common/ includes.
15444 * guile/guile.c: Fix common/ includes.
15445 * go32-nat.c: Fix common/ includes.
15446 * gnu-nat.c: Fix common/ includes.
15447 * gdbthread.h: Fix common/ includes.
15448 * gdbarch-selftests.c: Fix common/ includes.
15449 * gdb_usleep.c: Fix common/ includes.
15450 * gdb_select.h: Fix common/ includes.
15451 * gdb_bfd.c: Fix common/ includes.
15452 * gcore.c: Fix common/ includes.
15453 * fork-child.c: Fix common/ includes.
15454 * findvar.c: Fix common/ includes.
15455 * fbsd-nat.c: Fix common/ includes.
15456 * event-top.c: Fix common/ includes.
15457 * event-loop.c: Fix common/ includes.
15458 * dwarf2read.c: Fix common/ includes.
15459 * dwarf2loc.c: Fix common/ includes.
15460 * dwarf2-frame.c: Fix common/ includes.
15461 * dwarf-index-cache.c: Fix common/ includes.
15462 * dtrace-probe.c: Fix common/ includes.
15463 * disasm-selftests.c: Fix common/ includes.
15464 * defs.h: Fix common/ includes.
15465 * csky-tdep.c: Fix common/ includes.
15466 * cp-valprint.c: Fix common/ includes.
15467 * cp-support.h: Fix common/ includes.
15468 * cp-support.c: Fix common/ includes.
15469 * corelow.c: Fix common/ includes.
15470 * completer.h: Fix common/ includes.
15471 * completer.c: Fix common/ includes.
15472 * compile/compile.c: Fix common/ includes.
15473 * compile/compile-loc2c.c: Fix common/ includes.
15474 * compile/compile-cplus-types.c: Fix common/ includes.
15475 * compile/compile-cplus-symbols.c: Fix common/ includes.
15476 * command.h: Fix common/ includes.
15477 * cli/cli-dump.c: Fix common/ includes.
15478 * cli/cli-cmds.c: Fix common/ includes.
15479 * charset.c: Fix common/ includes.
15480 * build-id.c: Fix common/ includes.
15481 * btrace.h: Fix common/ includes.
15482 * btrace.c: Fix common/ includes.
15483 * breakpoint.h: Fix common/ includes.
15484 * breakpoint.c: Fix common/ includes.
15485 * ax.h:
15486 (enum agent_op): Fix common/ includes.
15487 * ax-general.c (struct aop_map): Fix common/ includes.
15488 * ax-gdb.c: Fix common/ includes.
15489 * auxv.c: Fix common/ includes.
15490 * auto-load.c: Fix common/ includes.
15491 * arm-tdep.c: Fix common/ includes.
15492 * arch/riscv.c: Fix common/ includes.
15493 * arch/ppc-linux-common.c: Fix common/ includes.
15494 * arch/i386.c: Fix common/ includes.
15495 * arch/arm.c: Fix common/ includes.
15496 * arch/arm-linux.c: Fix common/ includes.
15497 * arch/arm-get-next-pcs.c: Fix common/ includes.
15498 * arch/amd64.c: Fix common/ includes.
15499 * arch/aarch64.c: Fix common/ includes.
15500 * arch/aarch64-insn.c: Fix common/ includes.
15501 * arch-utils.c: Fix common/ includes.
15502 * amd64-windows-tdep.c: Fix common/ includes.
15503 * amd64-tdep.c: Fix common/ includes.
15504 * amd64-sol2-tdep.c: Fix common/ includes.
15505 * amd64-obsd-tdep.c: Fix common/ includes.
15506 * amd64-nbsd-tdep.c: Fix common/ includes.
15507 * amd64-linux-tdep.c: Fix common/ includes.
15508 * amd64-linux-nat.c: Fix common/ includes.
15509 * amd64-fbsd-tdep.c: Fix common/ includes.
15510 * amd64-fbsd-nat.c: Fix common/ includes.
15511 * amd64-dicos-tdep.c: Fix common/ includes.
15512 * amd64-darwin-tdep.c: Fix common/ includes.
15513 * agent.c: Fix common/ includes.
15514 * ada-lang.h: Fix common/ includes.
15515 * ada-lang.c: Fix common/ includes.
15516 * aarch64-tdep.c: Fix common/ includes.
15517
2f5c153e
TT
155182019-01-25 Tom Tromey <tom@tromey.com>
15519
15520 * common/create-version.sh: Use common/version.h.
15521
adc6a863
PA
155222019-01-24 Pedro Alves <palves@redhat.com>
15523
15524 * infrun.c (signal_stop, signal_print, signal_program)
15525 (signal_catch, signal_pass): Now arrays instead of pointers.
15526 (update_signals_program_target, do_target_resume)
15527 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
15528 * linux-nat.c (linux_nat_target::pass_signals)
15529 (linux_nat_target::create_inferior, linux_nat_target::attach):
15530 Adjust.
15531 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
15532 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
15533 * procfs.c (procfs_target::pass_signals): Adjust.
15534 * record-full.c (record_full_target::resume): Adjust.
15535 * remote.c (remote_target::pass_signals)
15536 (remote_target::program_signals): Adjust.
15537 * target-debug.h (target_debug_print_signals): Now takes a
15538 gdb::array_view as parameter. Adjust.
15539 * target.h (target_ops) <pass_signals, program_signals>: Replace
15540 pointer and length parameters with gdb::array_view.
15541 (target_pass_signals, target_program_signals): Likewise.
15542 * target-delegates.c: Regenerate.
15543
3046d67a
PA
155442019-01-24 Pedro Alves <palves@redhat.com>
15545
15546 * common/forward-scope-exit.h
15547 (forward_scope_exit::forward_scope_exit): Pass arguments to
15548 m_bind_function directly, instead of creating a std::bind and
15549 copying that.
15550
353229bf
AH
155512019-01-24 Alan Hayward <alan.hayward@arm.com>
15552
15553 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
15554 for static members.
15555 (pass_in_v_vfp_candidate): Likewise.
15556
311dc83a
TT
155572019-01-23 Tom Tromey <tom@tromey.com>
15558 Pedro Alves <palves@redhat.com>
15559
15560 * regcache.c (class regcache_invalidator): Remove.
15561 (regcache::raw_write): Use make_scope_exit.
15562
296bd123
TT
155632019-01-23 Tom Tromey <tom@tromey.com>
15564
15565 * ui-out.h (class ui_out_emit_type): Update comment.
15566
979a0d13
TT
155672019-01-23 Tom Tromey <tom@tromey.com>
15568
15569 * infrun.c (fetch_inferior_event): Update comment.
15570
d238133d
TT
155712019-01-23 Tom Tromey <tom@tromey.com>
15572 Pedro Alves <palves@redhat.com>
15573
15574 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
15575 parameter.
15576 (fetch_inferior_event): Use SCOPE_EXIT.
15577
15578
9885e6bb
TT
155792019-01-23 Tom Tromey <tom@tromey.com>
15580 Pedro Alves <palves@redhat.com>
15581
15582 * infrun.c (disable_thread_events): Delete.
15583 (stop_all_threads): Use SCOPE_EXIT.
15584
286526c1
TT
155852019-01-23 Tom Tromey <tom@tromey.com>
15586 Pedro Alves <palves@redhat.com>
15587
15588 * symfile.c: Include forward-scope-exit.h.
15589 (clear_symtab_users_cleanup): Replace forward declaration with
15590 a FORWARD_SCOPE_EXIT.
15591 (syms_from_objfile_1): Use the forward_scope_exit and
15592 gdb::optional instead of cleanup_function.
15593 (reread_symbols): Use the forward_scope_exit instead of
15594 cleanup_function.
15595 (clear_symtab_users_cleanup): Remove function.
15596
1db93f14
TT
155972019-01-23 Tom Tromey <tom@tromey.com>
15598 Pedro Alves <palves@redhat.com>
15599
15600 * linux-nat.c: Include scope-exit.h.
15601 (cleanup_target_stop): Remove.
15602 (linux_nat_target::static_tracepoint_markers_by_strid): Use
15603 SCOPE_EXIT.
15604
2cc83d1e
TT
156052019-01-23 Tom Tromey <tom@tromey.com>
15606 Pedro Alves <palves@redhat.com>
15607
15608 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
15609 (call_function_by_hand_dummy): Use SCOPE_EXIT.
15610
694c6bf5
TT
156112019-01-23 Tom Tromey <tom@tromey.com>
15612 Andrew Burgess <andrew.burgess@embecosm.com>
15613 Pedro Alves <palves@redhat.com>
15614
15615 * infrun.c (fetch_inferior_event): Use scope_exit.
15616 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
15617 * top.c (execute_command): Use scope_exit.
15618 * breakpoint.c (bpstat_do_actions): Use scope_exit.
15619 * utils.c (do_bpstat_clear_actions_cleanup)
15620 (make_bpstat_clear_actions_cleanup): Remove.
15621
4c41382a
TT
156222019-01-23 Tom Tromey <tom@tromey.com>
15623 Pedro Alves <palves@redhat.com>
15624
15625 * infrun.c: Include "common/scope-exit.h"
15626 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
15627 (wait_for_inferior): Use SCOPE_EXIT.
15628 (fetch_inferior_event): Use scope_exit.
15629
89f8fb50
TT
156302019-01-23 Tom Tromey <tom@tromey.com>
15631 Pedro Alves <palves@redhat.com>
15632
15633 * breakpoint.c (create_breakpoint): Remove cleanup.
15634
5419bdae
TT
156352019-01-23 Tom Tromey <tom@tromey.com>
15636 Andrew Burgess <andrew.burgess@embecosm.com>
15637 Pedro Alves <palves@redhat.com>
15638
e587ef42
PA
156392019-01-23 Pedro Alves <palves@redhat.com>
15640
15641 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
15642
77f0e74c
PA
156432019-01-23 Pedro Alves <palves@redhat.com>
15644 Andrew Burgess <andrew.burgess@embecosm.com>
15645
15646 * gdbthread.h: Include "common/forward-scope-exit.h".
15647 (scoped_finish_thread_state): Redefine custom class in terms of
15648 forward_scope_exit.
15649
5b9b3e53
PA
156502019-01-23 Pedro Alves <palves@redhat.com>
15651 Andrew Burgess <andrew.burgess@embecosm.com>
15652
15653 * common/forward-scope-exit.h: New file.
15654
54b65c9b
PA
156552019-01-23 Pedro Alves <palves@redhat.com>
15656 Andrew Burgess <andrew.burgess@embecosm.com>
15657 Tom Tromey <tom@tromey.com>
15658
15659 * common/scope-exit.h: New file.
15660
cf08fb29
PA
156612019-01-23 Pedro Alves <palves@redhat.com>
15662
15663 * common/preprocessor.h (ESC): Rename to ...
15664 (ESC_PARENS): ... this.
15665 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
15666 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
15667
ae73e2e2
TT
156682019-01-23 Tom Tromey <tom@tromey.com>
15669
15670 * language.h (class scoped_switch_to_sym_language_if_auto):
15671 Initialize m_lang in both cases.
15672
6594e122
AH
156732019-01-23 Alan Hayward <alan.hayward@arm.com>
15674
15675 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
15676 with XCNEW.
15677
a7c9855d
TT
156782019-01-22 Tom Tromey <tom@tromey.com>
15679
15680 * corelow.c: Do not include sys/file.h.
15681
93cc1d53
TT
156822019-01-22 Tom Tromey <tom@tromey.com>
15683
15684 * tui/tui-wingeneral.h: Include gdb_curses.h.
15685
38561778
TT
156862019-01-22 Tom Tromey <tom@tromey.com>
15687
15688 * source-cache.h (class source_cache) <get_source_lines,
15689 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
15690
37b3ab5b
TT
156912019-01-22 Tom Tromey <tom@tromey.com>
15692
15693 * remote-fileio.h (struct remote_target): Declare.
15694
3fabc016
TT
156952019-01-22 Tom Tromey <tom@tromey.com>
15696
15697 * python/py-arch.c: Do not include py-ref.h.
15698 * python/py-bpevent.c: Do not include py-ref.h.
15699 * python/py-cmd.c: Do not include py-ref.h.
15700 * python/py-continueevent.c: Do not include py-ref.h.
15701 * python/py-event.h: Do not include py-ref.h.
15702 * python/py-evtregistry.c: Do not include py-ref.h.
15703 * python/py-finishbreakpoint.c: Do not include py-ref.h.
15704 * python/py-frame.c: Do not include py-ref.h.
15705 * python/py-framefilter.c: Do not include py-ref.h.
15706 * python/py-function.c: Do not include py-ref.h.
15707 * python/py-infevents.c: Do not include py-ref.h.
15708 * python/py-linetable.c: Do not include py-ref.h.
15709 * python/py-objfile.c: Do not include py-ref.h.
15710 * python/py-param.c: Do not include py-ref.h.
15711 * python/py-prettyprint.c: Do not include py-ref.h.
15712 * python/py-progspace.c: Do not include py-ref.h.
15713 * python/py-symbol.c: Do not include py-ref.h.
15714 * python/py-symtab.c: Do not include py-ref.h.
15715 * python/py-type.c: Do not include py-ref.h.
15716 * python/py-unwind.c: Do not include py-ref.h.
15717 * python/py-utils.c: Do not include py-ref.h.
15718 * python/py-value.c: Do not include py-ref.h.
15719 * python/py-varobj.c: Do not include py-ref.h.
15720 * python/py-xmethods.c: Do not include py-ref.h.
15721 * python/python.c: Do not include py-ref.h.
15722 * varobj.c: Do not include py-ref.h.
15723
6b4d7774
TT
157242019-01-22 Tom Tromey <tom@tromey.com>
15725
15726 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
15727 keyword for bcache.
15728
7af7e9b5
TT
157292019-01-22 Tom Tromey <tom@tromey.com>
15730
15731 * compile/compile-cplus-types.c: Remove a comment by #include.
15732
951d1049
TT
157332019-01-22 Tom Tromey <tom@tromey.com>
15734
15735 * compile/gcc-c-plugin.h: Include compile-internal.h.
15736
d65d5705
TT
157372019-01-22 Tom Tromey <tom@tromey.com>
15738
15739 * stabsread.c (EXTERN): Do not define.
15740 (symnum, next_symbol_text_func, processing_gcc_compilation)
15741 (within_function, global_sym_chain, global_stabs)
15742 (previous_stab_code, this_object_header_files)
15743 (n_this_object_header_files)
15744 (n_allocated_this_object_header_files): Define.
15745 * stabsread.h (EXTERN): Never define. Use "extern".
15746
b6fb1ee5
PW
157472019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15748
15749 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
15750 history_value.
15751
be6d4f74
TT
157522019-01-21 Tom Tromey <tom@tromey.com>
15753
15754 * ui-out.c: Fix includes.
15755 * tui/tui-source.c: Fix includes.
15756 * target.c: Fix includes.
15757 * remote.c: Fix includes.
15758 * regcache.c: Fix includes.
15759 * python/py-block.c: Fix includes.
15760 * printcmd.c: Fix includes.
15761 * or1k-tdep.c: Fix includes.
15762 * mi/mi-main.c: Fix includes.
15763 * m32r-tdep.c: Fix includes.
15764 * csky-tdep.c: Fix includes.
15765 * compile/compile-cplus-types.c: Fix includes.
15766 * cli/cli-interp.c: Fix includes.
15767
73021deb
AH
157682019-01-21 Alan Hayward <alan.hayward@arm.com>
15769
15770 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
15771 for padding.
15772
7932255d
TT
157732019-01-16 Tom Tromey <tom@tromey.com>
15774
15775 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
15776 earlier.
15777 (struct objfile) <msymbols_range>: Move from top level.
15778 <msymbols>: New method.
15779 (class objfile_msymbols): Remove.
15780 * symtab.c (default_collect_symbol_completion_matches_break_on):
15781 Update.
15782 * symmisc.c (dump_msymbols): Update.
15783 * stabsread.c (scan_file_globals): Update.
15784 * objc-lang.c (info_selectors_command, info_classes_command)
15785 (find_methods): Update.
15786 * minsyms.c (find_solib_trampoline_target): Update.
15787 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
15788 * coffread.c (coff_symfile_read): Update.
15789 * ada-lang.c (ada_lookup_simple_minsym)
15790 (ada_collect_symbol_completion_matches): Update.
15791
604b1bfb
TT
157922019-01-16 Tom Tromey <tom@tromey.com>
15793
15794 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
15795 type. Remove no-argument constructor.
15796 <iterator::operator++>: Simplify.
15797 <begin>: Update.
15798 <end>: Use minimal_symbol_count.
15799
f252c6d5
TT
158002019-01-16 Tom Tromey <tom@tromey.com>
15801
15802 * objfiles.h (struct objfile) <psymtabs>: New method.
15803 (class objfile_psymtabs): Remove.
15804 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
15805 typedef.
15806 <range>: New method.
15807 (require_partial_symbols): Change return type.
15808 * psymtab.c (require_partial_symbols)
15809 (psym_expand_symtabs_matching): Update.
15810 * mdebugread.c (parse_partial_symbols): Update.
15811 * dbxread.c (dbx_end_psymtab): Update.
15812
b669c953
TT
158132019-01-15 Tom Tromey <tom@tromey.com>
15814
15815 * symtab.c (lookup_objfile_from_block)
15816 (lookup_symbol_in_objfile_symtabs)
15817 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
15818 (find_line_symtab, info_sources_command)
15819 (default_collect_symbol_completion_matches_break_on)
15820 (make_source_files_completion_list): Update.
15821 * symmisc.c (print_objfile_statistics, dump_objfile)
15822 (maintenance_print_symbols, maintenance_info_symtabs)
15823 (maintenance_check_symtabs, maintenance_info_line_tables):
15824 Update.
15825 * source.c (select_source_symtab)
15826 (forget_cached_source_info_for_objfile): Update.
15827 * objfiles.h (class objfile_compunits): Remove.
15828 (struct objfile) <compunits_range>: New typedef.
15829 (compunits): New method.
15830 * objfiles.c (objfile_relocate1): Update.
15831 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
15832 * maint.c (count_symtabs_and_blocks): Update.
15833 * linespec.c (iterate_over_all_matching_symtabs): Update.
15834 * cp-support.c (add_symbol_overload_list_qualified): Update.
15835 * coffread.c (coff_symtab_read): Update.
15836 * ada-lang.c (add_nonlocal_symbols)
15837 (ada_collect_symbol_completion_matches)
15838 (ada_add_global_exceptions): Update.
15839
7e955d83
TT
158402019-01-15 Tom Tromey <tom@tromey.com>
15841
15842 * progspace.h (program_space) <objfiles_safe_range>: New
15843 typedef.
15844 <objfiles_safe>: New method.
15845 * objfiles.h (class all_objfiles_safe): Remove.
15846 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
15847 * jit.c (jit_inferior_exit_hook): Update.
15848
2030c079
TT
158492019-01-17 Tom Tromey <tom@tromey.com>
15850
15851 * progspace.h (program_space) <objfiles_range>: New typedef.
15852 <objfiles>: New method.
15853 <objfiles_head>: Rename from objfiles.
15854 (object_files): Update.
15855 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
15856 * guile/scm-pretty-print.c
15857 (ppscm_find_pretty_printer_from_objfiles): Update.
15858 * guile/scm-objfile.c (gdbscm_objfiles): Update.
15859 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
15860 Update.
15861 * python/py-progspace.c (pspy_get_objfiles): Update.
15862 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
15863 Update.
15864 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
15865 (objfpy_lookup_objfile_by_build_id): Update.
15866 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
15867 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
15868 Update.
15869 * symtab.c (iterate_over_symtabs, matching_obj_sections)
15870 (expand_symtab_containing_pc, lookup_objfile_from_block)
15871 (lookup_static_symbol, basic_lookup_transparent_type)
15872 (find_pc_sect_compunit_symtab, find_symbol_at_address)
15873 (find_line_symtab, info_sources_command)
15874 (default_collect_symbol_completion_matches_break_on)
15875 (make_source_files_completion_list, find_main_name): Update.
15876 * symmisc.c (print_symbol_bcache_statistics)
15877 (print_objfile_statistics, maintenance_print_symbols)
15878 (maintenance_print_msymbols, maintenance_print_objfiles)
15879 (maintenance_info_symtabs, maintenance_check_symtabs)
15880 (maintenance_expand_symtabs, maintenance_info_line_tables):
15881 Update.
15882 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
15883 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
15884 (map_overlay_command, unmap_overlay_command)
15885 (simple_overlay_update, expand_symtabs_matching)
15886 (map_symbol_filenames): Update.
15887 * symfile-debug.c (set_debug_symfile): Update.
15888 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
15889 Update.
15890 * source.c (select_source_symtab, forget_cached_source_info):
15891 Update.
15892 * solib.c (solib_read_symbols): Update.
15893 * solib-spu.c (append_ocl_sos): Update.
15894 * psymtab.c (maintenance_print_psymbols)
15895 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
15896 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
15897 * printcmd.c (info_symbol_command): Update.
15898 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
15899 Update.
15900 * objfiles.h (class all_objfiles): Remove.
15901 * objfiles.c (have_partial_symbols, have_full_symbols)
15902 (have_minimal_symbols, qsort_cmp, update_section_map)
15903 (shared_objfile_contains_address_p)
15904 (default_iterate_over_objfiles_in_search_order): Update.
15905 * objc-lang.c (info_selectors_command, info_classes_command)
15906 (find_methods): Update.
15907 * minsyms.c (find_solib_trampoline_target): Update.
15908 * maint.c (maintenance_info_sections)
15909 (maintenance_translate_address, count_symtabs_and_blocks):
15910 Update.
15911 * main.c (captured_main_1): Update.
15912 * linux-thread-db.c (try_thread_db_load_from_pdir)
15913 (has_libpthread): Update.
15914 * linespec.c (iterate_over_all_matching_symtabs)
15915 (search_minsyms_for_name): Update.
15916 * jit.c (jit_find_objf_with_entry_addr): Update.
15917 * hppa-tdep.c (find_unwind_entry)
15918 (hppa_lookup_stub_minimal_symbol): Update.
15919 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
15920 Update.
15921 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
15922 (elf_gnu_ifunc_resolve_by_got): Update.
15923 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
15924 * dwarf-index-write.c (save_gdb_index_command): Update.
15925 * cp-support.c (add_symbol_overload_list_qualified): Update.
15926 * breakpoint.c (create_overlay_event_breakpoint)
15927 (create_longjmp_master_breakpoint)
15928 (create_std_terminate_master_breakpoint)
15929 (create_exception_master_breakpoint): Update.
15930 * blockframe.c (find_pc_partial_function): Update.
15931 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
15932 (ada_collect_symbol_completion_matches)
15933 (ada_add_global_exceptions): Update.
15934
776489e0
TT
159352019-01-17 Tom Tromey <tom@tromey.com>
15936
15937 * solib-target.c (lm_info_target_p): Remove typedef. Don't
15938 declare VEC.
15939 (solib_target_parse_libraries): Change return type.
15940 (library_list_start_segment, library_list_start_section)
15941 (library_list_end_library, library_list_start_library); Update.
15942 (solib_target_free_library_list): Remove.
15943 (solib_target_parse_libraries): Remove cleanup. Change return
15944 type.
15945 (solib_target_current_sos): Update.
15946
6471e7d2
TT
159472019-01-17 Tom Tromey <tromey@bapiya>
15948
15949 * valprint.c: Replace "the the" with "the".
15950 * symtab.c: Replace "the the" with "the".
15951 * solib.c: Replace "the the" with "the".
15952 * solib-dsbt.c: Replace "the the" with "the".
15953 * linespec.c: Replace "the the" with "the".
15954 * dwarf2loc.h: Replace "the the" with "the".
15955 * amd64-windows-tdep.c: Replace "the the" with "the".
15956 * aarch64-tdep.c: Replace "the the" with "the".
15957
c24bdb02
KS
159582019-01-16 Keith Seitz <keiths@redhat.com>
15959
15960 PR gdb/23773
15961 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
15962 <builder>: Rename to ..
15963 <m_builder>: ... this and make private.
15964 (dwarf2_cu::get_builder): New method. Change all users of
15965 `builder' to use this method.
15966 (dwarf2_start_symtab): Move to ...
15967 (dwarf2_cu::start_symtab): ... here. Update all callers
15968 (setup_type_unit_groups): Move to ...
15969 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
15970 callers.
15971 (dwarf2_cu::reset_builder): New method.
15972 (process_full_compunit, process_full_type_unit): Use
15973 dwarf2_cu::reset_builder.
15974 (follow_die_offset): Record the ancestor CU if it is different
15975 from the followed DIE's CU.
15976 (follow_die_sig_1): Likewise.
15977
8d64371b
TT
159782019-01-15 Tom Tromey <tom@tromey.com>
15979
15980 * remote.c (class remote_state) <buf>: Now a char_vector.
15981 <buf_size>: Remove.
15982 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
15983 parameter.
15984 (remote_target::getpkt_or_notif_sane_1)
15985 (remote_target::getpkt_sane)
15986 (remote_target::getpkt_or_notif_sane): Likewise.
15987 (class remote_target) <putpkt>: New overload.
15988 (remote_target::read_frame): Change type of "buf_p". Remove
15989 sizeof_p parameter.
15990 (packet_ok): New overload.
15991 (packet_check_result): New overload.
15992 Update all uses.
15993
bb277751
TT
159942019-01-14 Tom Tromey <tom@tromey.com>
15995
15996 * remote-notif.c (handle_notification, remote_notif_ack)
15997 (remote_notif_parse): Make "buf" const.
15998 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
15999 const.
16000 (remote_notif_parse, remote_notif_ack, handle_notification):
16001 Likewise.
16002 * remote.c (remote_notif_stop_parse): Make "buf" const.
16003 (remote_target::remote_parse_stop_reply): Make "buf" const.
16004 (remote_notif_stop_ack): Make "buf" const.
16005
05be00a8
TT
160062019-01-14 Tom Tromey <tom@tromey.com>
16007
16008 * remote.c (remote_console_output): Make parameter const.
16009
491adeca
TT
160102019-01-14 Tom Tromey <tom@tromey.com>
16011
16012 * target-debug.h (target_debug_print_signals): Constify.
16013 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
16014 * procfs.c (procfs_target::pass_signals): Update.
16015 * linux-nat.c (linux_nat_target::pass_signals): Update.
16016 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
16017 * target-delegates.c: Rebuild.
16018 * remote.c (remote_target::program_signals): Update.
16019 (remote_target::pass_signals): Update.
16020 * target.c (target_pass_signals): Constify argument.
16021 (target_program_signals): Likewise.
16022 * target.h (struct target_ops) <pass_signals, program_signals>:
16023 Constify argument.
16024 (target_pass_signals, target_program_signals): Constify argument.
16025
bbd94648
TT
160262019-01-14 Tom Tromey <tom@tromey.com>
16027
16028 PR tui/28819:
16029 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
16030
6f072a10
PFC
160312019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
16032
16033 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
16034 field.
16035 * rs6000-tdep.c: Include reggroups.h.
16036 (IS_V_ALIAS_PSEUDOREG): Define.
16037 (rs6000_register_name): Return names for the "vX" aliases.
16038 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
16039 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
16040 aliases. Call default_register_reggroup_p for all other
16041 pseudo-registers.
16042 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
16043 New functions.
16044 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
16045 Handle "vX" aliases.
16046 (v_alias_pseudo_register_collect): New function.
16047 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
16048 (rs6000_gdbarch_init): Initialize "vX" aliases as
16049 pseudo-registers. Restore registration of
16050 rs6000_pseudo_register_reggroup_p with
16051 set_tdesc_pseudo_register_reggroup_p.
16052
1a782351
MF
160532019-01-13 Max Filippov <jcmvbkbc@gmail.com>
16054
16055 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
16056 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
16057 set_gdbarch_num_pseudo_regs.
16058
d73cff18
PW
160592019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16060
16061 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
16062 Remove arg prefixname, add do_set and do_show.
16063 Add member functions set_list and show_list.
16064 * cli/cli-style.c (class cli_style_option): Update accordingly.
16065 (style_set_list): Move to file scope.
16066 (style_show_list): Likewise.
16067 (set_style): Call help_list.
16068 (show_style): Call cmd_show_list.
16069 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
16070 Update to use the new macro.
16071
60a90376
JB
160722019-10-12 Joel Brobecker <brobecker@adacore.com>
16073
16074 * ada-lang.c (_initialize_ada_language): Expand the help text
16075 for the "catch exception" command.
16076
9d7c67bf
PW
160772019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16078
16079 * symtab.c (matching_obj_sections): Initialize obj,
16080 declare it closer to its usage.
16081
7cf47dc4
TT
160822019-01-10 Tom Tromey <tom@tromey.com>
16083
16084 * thread-iter.h (inf_threads_iterator): Use next_iterator.
16085 (basic_inf_threads_range): Remove.
16086 (inf_threads_range, inf_non_exited_threads_range)
16087 (safe_inf_threads_range): Use next_adapter.
16088
d3cb6808
KS
160892019-01-10 Keith Seitz <keiths@redhat.com>
16090
16091 PR gdb/23712
16092 PR symtab/23010
16093 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
16094 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
16095
63a20375
KS
160962019-01-10 Keith Seitz <keiths@redhat.com>
16097
16098 PR gdb/23712
16099 PR symtab/23010
16100 * dictionary.c (pending_to_vector): Remove.
16101 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
16102 Remove _1 suffix, replacing functions of the same name. Update
16103 all callers.
16104 (dict_create_hashed, dict_create_hashed_expandable)
16105 (dict_create_linear, dict_create_linear_expandable, dict_free)
16106 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
16107 Make functions static.
16108
b026f593
KS
161092019-01-10 Keith Seitz <keiths@redhat.com>
16110
16111 PR gdb/23712
16112 PR symtab/23010
16113 * dictionary.h (struct dictionary): Replace declaration with
16114 multidictionary.
16115 (dict_create_hashed, dict_create_hashed_expandable)
16116 (dict_create_linear, dict_create_linear_expandable)
16117 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
16118 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
16119 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
16120 taking multidictionary argument.
16121 [ALL_DICT_SYMBOLS]: Update for multidictionary.
16122 * block.h (struct block) <dict>: Change to multidictionary
16123 and rename `multidict'.
16124 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
16125 symmisc.c: Update all dictionary references to multidictionary.
16126
c7748ee9
KS
161272019-01-10 Keith Seitz <keiths@redhat.com>
16128
16129 PR gdb/23712
16130 PR symtab/23010
16131 * dictionary.c: Include unordered_map.
16132 (pending_to_vector): New function.
16133 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
16134 Rewrite the non-"_1" functions to take vector instead
16135 of linked list.
16136 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
16137 "new" _1 versions of the same name.
16138 (multidictionary): Define.
16139 (std::hash<enum language): New definition.
16140 (collate_pending_symbols_by_language, mdict_create_hashed)
16141 (mdict_create_hashed_expandable, mdict_create_linear)
16142 (mdict_create_linear_expandable, mdict_free)
16143 (find_language_dictionary, create_new_language_dictionary)
16144 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
16145 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
16146 (mdict_size, mdict_empty): New functions.
16147 * dictionary.h (mdict_iterator): Define.
16148
67aa1f3c
PA
161492019-01-10 Pedro Alves <palves@redhat.com>
16150
16151 * breakpoint.c (read_uploaded_action)
16152 (create_tracepoint_from_upload): Adjust to use
16153 gdb::unique_xmalloc_ptr.
16154 * ctf.c (ctf_write_uploaded_tp):
16155 (SET_ARRAY_FIELD): Use emplace_back.
16156 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
16157 * tracefile-tfile.c (tfile_write_uploaded_tp):
16158 * tracepoint.c (parse_tracepoint_definition): Adjust to use
16159 gdb::unique_xmalloc_ptr.
16160 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
16161 at_string, cond_string, cmd_strings>: Replace char pointers
16162 with gdb::unique_xmalloc_ptr.
16163
2f667667
PA
161642019-01-10 Pedro Alves <palves@redhat.com>
16165
16166 * solib-target.c (library_list_start_library): Don't xstrdup name.
16167
36cb7237
PA
161682019-01-10 Pedro Alves <palves@redhat.com>
16169
16170 * mdebugread.c (parse_partial_symbols): Use
16171 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
16172
da584958
AB
161732019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
16174
16175 * linux-fork.c (scoped_switch_fork_info)
16176 <~scoped_switch_fork_info>: Fix incorrect variable name.
16177
1ef8573c
AB
161782019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
16179
16180 * linux-fork.c (scoped_switch_fork_info)
16181 <scoped_switch_fork_info>: Make explicit.
16182 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
16183
8d7bcccb
TT
161842019-01-10 Tom Tromey <tom@tromey.com>
16185
16186 * objfiles.h (objfile::reset_psymtabs): Update.
16187 * objfiles.c (objfile::objfile): Update.
16188 * psymtab.h (psymtab_storage::obstack): Update.
16189 (psymtab_storage::m_obstack): Use gdb::optional.
16190 (class psymtab_storage): Update comment. Remove objfile
16191 parameter.
16192 * psymtab.c (psymtab_storage::psymtab_storage): Update.
16193
b596a3c7
TT
161942019-01-10 Tom Tromey <tom@tromey.com>
16195
16196 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
16197 <free_psymtabs>: Now private.
16198 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
16199 (allocate_psymtab): Use new method.
16200
a9342b62
TT
162012019-01-10 Tom Tromey <tom@tromey.com>
16202
16203 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
16204 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
16205 * mdebugread.c (parse_partial_symbols): Use
16206 allocate_dependencies.
16207 * dwarf2read.c (dwarf2_create_include_psymtab): Use
16208 allocate_dependencies.
16209 (process_psymtab_comp_unit_reader)
16210 (build_type_psymtab_dependencies): Likewise.
16211 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
16212
5af70966
TT
162132019-01-10 Tom Tromey <tom@tromey.com>
16214
16215 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
16216 PSYMBOL_SET_LANGUAGE.
16217 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
16218
5923a04c
TT
162192019-01-10 Tom Tromey <tom@tromey.com>
16220
16221 * psymtab.h (psymtab_storage::obstack): New method.
16222 <m_obstack>: Rename from obstack; now private.
16223 * psymtab.c (psymtab_storage): Update.
16224 * dwarf2read.c (create_addrmap_from_index)
16225 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
16226 Update.
16227
6d6a12bf
TT
162282019-01-10 Tom Tromey <tom@tromey.com>
16229
16230 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
16231 * objfiles.h (objfile::reset_psymtabs): New method.
16232
d320c2b5
TT
162332019-01-10 Tom Tromey <tom@tromey.com>
16234
16235 * symmisc.c (print_symbol_bcache_statistics): Update.
16236 (print_objfile_statistics): Update.
16237 * symfile.c (reread_symbols): Update.
16238 * psymtab.h (class psymtab_storage): New.
16239 * psymtab.c (psymtab_storage): New constructor.
16240 (~psymtab_storage): New destructor.
16241 (require_partial_symbols): Update.
16242 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
16243 (find_pc_sect_psymtab, find_pc_sect_psymbol)
16244 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
16245 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
16246 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
16247 (start_psymtab_common, end_psymtab_common)
16248 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
16249 (allocate_psymtab): Update.
16250 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
16251 Update.
16252 (dump_psymtab_addrmap, maintenance_print_psymbols)
16253 (maintenance_check_psymtabs): Update.
16254 (class objfile_psymtabs): Move to objfiles.h.
16255 * psympriv.h (discard_psymtab): Now inline.
16256 (psymtab_discarder::psymtab_discarder): Update.
16257 (psymtab_discarder::~psymtab_discarder): Update.
16258 (ALL_OBJFILE_PSYMTABS): Rewrite.
16259 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
16260 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
16261 Remove fields.
16262 <partial_symtabs>: New field.
16263 (class objfile_psymtabs): Move from psymtab.h. Update.
16264 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
16265 psymbol_cache.
16266 (objfile::~objfile): Don't destroy psymbol_cache.
16267 * mdebugread.c (parse_partial_symbols): Update.
16268 * dwarf2read.c (create_addrmap_from_index)
16269 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
16270 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
16271 (add_partial_subprogram, dwarf2_ranges_read): Update.
16272 * dwarf-index-write.c (write_address_map)
16273 (write_one_signatured_type, recursively_write_psymbols)
16274 (class debug_names, class debug_names, write_psymtabs_to_index):
16275 Update.
16276
1d94a5a3
TT
162772019-01-10 Tom Tromey <tom@tromey.com>
16278
16279 * symtab.h (SYMBOL_SET_NAMES): Update.
16280 (symbol_set_names): Update.
16281 (MSYMBOL_SET_NAMES): Update.
16282 * symtab.c (symbol_set_names): Change argument to be an
16283 objfile_per_bfd_storage.
16284 * psymtab.c (add_psymbol_to_bcache): Update.
16285 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
16286
0f14768a
TT
162872019-01-10 Tom Tromey <tom@tromey.com>
16288
16289 * symtab.c (create_demangled_names_hash): Change argument to be an
16290 objfile_per_bfd_storage.
16291 (symbol_set_names): Update.
16292
6eee24ce
TT
162932019-01-10 Tom Tromey <tom@tromey.com>
16294
16295 * xcoffread.c (xcoff_initial_scan): Unconditionally call
16296 init_psymbol_list.
16297 * psymtab.c (init_psymbol_list): Do nothing if already called.
16298 * psympriv.h (init_psymbol_list): Add comment.
16299 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
16300 init_psymbol_list.
16301 * dbxread.c (dbx_symfile_read): Unconditionally call
16302 init_psymbol_list.
16303
75aedd27
TT
163042019-01-10 Tom Tromey <tom@tromey.com>
16305
16306 * xcoffread.c (scan_xcoff_symtab): Update.
16307 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
16308 "where".
16309 * mdebugread.c (parse_partial_symbols)
16310 (handle_psymbol_enumerators): Update.
16311 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
16312 * dbxread.c (read_dbx_symtab): Update.
16313 * psympriv.h (psymbol_placement): New enum.
16314 (add_psymbol_to_list): Update.
16315
939652a5
TT
163162019-01-10 Tom Tromey <tom@tromey.com>
16317
16318 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
16319 static_psymbols parameters.
16320 (scan_xcoff_symtab): Update.
16321 * psymtab.c (start_psymtab_common): Remove global_psymbols and
16322 static_psymbols parameters.
16323 * psympriv.h (start_psymtab_common): Update.
16324 * mdebugread.c (parse_partial_symbols): Update.
16325 * dwarf2read.c (create_partial_symtab): Update.
16326 * dbxread.c (read_dbx_symtab): Update.
16327 (start_psymtab): Remove global_psymbols and static_psymbols
16328 parameters.
16329
baa62830
TT
163302019-01-10 Tom Tromey <tom@tromey.com>
16331
16332 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
16333 * psymtab.c (allocate_psymtab): Add comment.
16334 * psympriv.h (allocate_psymtab): Add comment.
16335 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
16336 initializations.
16337 * dbxread.c (dbx_end_psymtab): Remove some initializations.
16338
0e8f53ba
TT
163392019-01-10 Tom Tromey <tom@tromey.com>
16340
16341 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
16342 Don't declare.
16343 * mipsread.c: Include mdebugread.h.
16344 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
16345 Declare.
16346 * elfread.c: Include mdebugread.h.
16347
b22a7c6a
TT
163482019-01-09 Tom Tromey <tom@tromey.com>
16349
16350 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
16351 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
16352 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
16353 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
16354 (psym_lookup_symbol, psym_find_last_source_symtab)
16355 (psym_forget_cached_source_info, psym_print_stats)
16356 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
16357 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
16358 (psym_map_matching_symbols, psym_expand_symtabs_matching)
16359 (psym_find_compunit_symtab_by_address)
16360 (maintenance_print_psymbols, maintenance_info_psymtabs)
16361 (maintenance_check_psymtabs): Use ranged for.
16362 * psymtab.h (class objfile_psymtabs): New.
16363 (require_partial_symbols): Return objfile_psymtabs.
16364 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
16365
3b9d3ac2
TT
163662019-01-09 Tom Tromey <tom@tromey.com>
16367
16368 * symfile.c (overlay_invalidate_all, find_pc_overlay)
16369 (find_pc_mapped_section, list_overlays_command)
16370 (map_overlay_command, unmap_overlay_command)
16371 (simple_overlay_update): Use all_objfiles.
16372 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
16373 * printcmd.c (info_symbol_command): Use all_objfiles.
16374 * objfiles.h (ALL_OBJSECTIONS): Remove.
16375 * maint.c (maintenance_translate_address): Use all_objfiles.
16376 * gcore.c (gcore_create_callback): Use all_objfiles.
16377 (objfile_find_memory_regions): Likewise.
16378
8b31193a
TT
163792019-01-09 Tom Tromey <tom@tromey.com>
16380
16381 * symtab.c (find_line_symtab, info_sources_command)
16382 (make_source_files_completion_list): Use objfile_compunits.
16383 * source.c (select_source_symtab): Use objfile_compunits.
16384 * objfiles.h (struct objfile): Update comment.
16385 (ALL_OBJFILES): Remove.
16386 (ALL_FILETABS): Remove.
16387 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
16388 objfile_compunits.
16389
d5da8b3c
TT
163902019-01-09 Tom Tromey <tom@tromey.com>
16391
16392 * symmisc.c (print_objfile_statistics, dump_objfile)
16393 (maintenance_print_symbols): Use compunit_filetabs.
16394 * source.c (forget_cached_source_info_for_objfile): Use
16395 compunit_filetabs.
16396 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
16397 (ALL_FILETABS): Use compunit_filetabs.
16398 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
16399 * coffread.c (coff_symtab_read): Use compunit_filetabs.
16400
5accd1a0
TT
164012019-01-09 Tom Tromey <tom@tromey.com>
16402
16403 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
16404 (compunit_filetabs): New.
16405 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
16406 compunit_filetabs.
16407 (info_sources_command, make_source_files_completion_list): Remove
16408 declaration.
16409 * symmisc.c (print_objfile_statistics, dump_objfile)
16410 (maintenance_print_symbols): Remove declaration.
16411 (maintenance_info_symtabs): Use compunit_filetabs.
16412 (maintenance_info_line_tables): Likewise.
16413 * source.c (select_source_symtab): Change local variable name.
16414 (forget_cached_source_info_for_objfile): Remove declaration.
16415 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
16416 * objfiles.c (objfile_relocate1): Remove declaration.
16417 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
16418 declaration.
16419 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
16420 * coffread.c (coff_symtab_read): Remove declaration.
16421 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
16422 compunit_filetabs.
16423
d8aeb77f
TT
164242019-01-09 Tom Tromey <tom@tromey.com>
16425
16426 * symtab.c (lookup_objfile_from_block)
16427 (find_pc_sect_compunit_symtab, search_symbols)
16428 (default_collect_symbol_completion_matches_break_on): Use
16429 objfile_compunits.
16430 * objfiles.h (ALL_COMPUNITS): Remove.
16431 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
16432 * cp-support.c (add_symbol_overload_list_qualified): Use
16433 objfile_compunits.
16434 * ada-lang.c (ada_collect_symbol_completion_matches)
16435 (ada_add_global_exceptions): Use objfile_compunits.
16436
592553c4
TT
164372019-01-09 Tom Tromey <tom@tromey.com>
16438
16439 * source.c (select_source_symtab)
16440 (forget_cached_source_info_for_objfile): Remove declaration.
16441 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
16442 declaration.
16443 * maint.c (count_symtabs_and_blocks): Remove declaration.
16444 * cp-support.c (add_symbol_overload_list_qualified): Remove
16445 declaration.
16446 * coffread.c (coff_symtab_read): Remove declaration.
16447 * symtab.c (lookup_symbol_in_objfile_symtabs)
16448 (basic_lookup_transparent_type_1): Use objfile_compunits.
16449 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
16450 (info_sources_command, search_symbols)
16451 (default_collect_symbol_completion_matches_break_on)
16452 (make_source_files_completion_list): Remove declaration.
16453 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
16454 (ada_collect_symbol_completion_matches)
16455 (ada_add_global_exceptions): Remove declaration.
16456 * linespec.c (iterate_over_all_matching_symtabs): Use
16457 objfile_compunits.
16458 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
16459 (class objfile_compunits): New.
16460 (ALL_COMPUNITS): Use objfile_compunits.
16461 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
16462 (maintenance_check_symtabs, maintenance_info_line_tables): Use
16463 objfile_compunits.
16464 * objfiles.c (objfile_relocate1): Use objfile_compunits.
16465
5325b9bf
TT
164662019-01-09 Tom Tromey <tom@tromey.com>
16467
16468 * symtab.c (search_symbols)
16469 (default_collect_symbol_completion_matches_break_on): Use
16470 objfile_msymbols.
16471 * ada-lang.c (ada_lookup_simple_minsym)
16472 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
16473 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
16474 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
16475 objfile_msymbols.
16476 * coffread.c (coff_symfile_read): Use objfile_msymbols.
16477 * symmisc.c (dump_msymbols): Use objfile_msymbols.
16478 * objc-lang.c (find_methods): Use objfile_msymbols.
16479 (info_selectors_command, info_classes_command): Likewise.
16480 * stabsread.c (scan_file_globals): Use objfile_msymbols.
16481 * objfiles.h (class objfile_msymbols): New.
16482 (ALL_OBJFILE_MSYMBOLS): Remove.
16483 (ALL_MSYMBOLS): Remove.
16484
cac85af2
TT
164852019-01-09 Tom Tromey <tom@tromey.com>
16486
16487 * common/next-iterator.h (next_adapter): Add Iterator template
16488 parameter.
16489 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
16490 (class all_objfiles_safe): New.
16491 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
16492 * objfiles.c (put_objfile_before): Update comment.
16493 (add_separate_debug_objfile): Likewise.
16494 (free_all_objfiles): Use all_objfiles_safe.
16495 (objfile_purge_solibs): Likewise.
16496
aed57c53
TT
164972019-01-09 Tom Tromey <tom@tromey.com>
16498
16499 * symtab.c (iterate_over_symtabs, matching_obj_sections)
16500 (expand_symtab_containing_pc, lookup_static_symbol)
16501 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
16502 (find_symbol_at_address, find_line_symtab, find_main_name): Use
16503 all_objfiles.
16504 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
16505 * breakpoint.c (create_overlay_event_breakpoint)
16506 (create_longjmp_master_breakpoint)
16507 (create_std_terminate_master_breakpoint)
16508 (create_exception_master_breakpoint): Use all_objfiles.
16509 * linux-thread-db.c (try_thread_db_load_from_pdir)
16510 (has_libpthread): Use all_objfiles.
16511 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
16512 * linespec.c (iterate_over_all_matching_symtabs)
16513 (search_minsyms_for_name): Use all_objfiles.
16514 * maint.c (maintenance_info_sections): Use all_objfiles.
16515 * main.c (captured_main_1): Use all_objfiles.
16516 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
16517 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
16518 * guile/scm-pretty-print.c
16519 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
16520 * solib-spu.c (append_ocl_sos): Use all_objfiles.
16521 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
16522 (maintenance_print_msymbols): Use all_objfiles.
16523 * source.c (select_source_symtab): Use all_objfiles.
16524 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
16525 * symfile.c (remove_symbol_file_command)
16526 (expand_symtabs_matching, map_symbol_filenames): Use
16527 all_objfiles.
16528 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
16529 all_objfiles.
16530 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
16531 * objc-lang.c (find_methods): Use all_objfiles.
16532 * objfiles.c (have_partial_symbols, have_full_symbols)
16533 (have_minimal_symbols, qsort_cmp)
16534 (default_iterate_over_objfiles_in_search_order): Use
16535 all_objfiles.
16536 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
16537 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
16538 (maintenance_check_psymtabs): Use all_objfiles.
16539 (ALL_PSYMTABS): Remove.
16540 * compile/compile-object-run.c (do_module_cleanup): Use
16541 all_objfiles.
16542 * blockframe.c (find_pc_partial_function): Use all_objfiles.
16543 * cp-support.c (add_symbol_overload_list_qualified): Use
16544 all_objfiles.
16545 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
16546 Use all_objfiles.
16547 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
16548 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
16549 all_objfiles.
16550 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
16551 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
16552 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
16553 Uses all_objfiles.
16554 * solib.c (solib_read_symbols): Use all_objfiles
16555
99d89cde
TT
165562019-01-09 Tom Tromey <tom@tromey.com>
16557
16558 * probe.c (parse_probes_in_pspace): Use all_objfiles.
16559 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
16560 all_objfiles.
16561 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
16562 * symmisc.c (print_symbol_bcache_statistics)
16563 (print_objfile_statistics, maintenance_print_objfiles)
16564 (maintenance_info_symtabs, maintenance_check_symtabs)
16565 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
16566 all_objfiles.
16567 * source.c (forget_cached_source_info): Use all_objfiles.
16568 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
16569 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
16570 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
16571 * objfiles.c (update_section_map): Use all_objfiles.
16572 (shared_objfile_contains_address_p): Likewise.
16573 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
16574 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
16575
21708325
TT
165762019-01-09 Tom Tromey <tom@tromey.com>
16577
16578 * common/next-iterator.h: New file.
16579 * objfiles.h (class all_objfiles): New.
16580 (struct objfile_iterator): New.
16581
669e09f6
PW
165822019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16583
16584 * NEWS: Move the description of the changed "frame", "select-frame",
16585 and "info frame" commands to the Changed commands section.
16586
041be526
SM
165872019-01-09 Simon Marchi <simon.marchi@ericsson.com>
16588
16589 * gdbtypes.c (check_stub_method_group): Remove handling of old
16590 mangling schemes.
16591 * linespec.c (find_methods): Likewise.
16592 * stabsread.c (read_member_functions): Likewise.
16593 * valops.c (search_struct_method): Likewise.
16594 (value_struct_elt_for_reference): Likewise.
16595 * NEWS: Mention this change.
16596
0e2a2133
AB
165972019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
16598
16599 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
16600 print_source_lines.
16601 * source.c (print_source_lines_base): Update line number check.
16602 (print_source_lines): New function.
16603 (source_lines_range::source_lines_range): New function.
16604 * source.h (class source_lines_range): New class.
16605 (print_source_lines): New declaration.
16606
1055a3b4
PW
166072019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16608
16609 * linespec.c (linespec_state_destructor): Free self->canonical_names.
16610
cfeadda5
TT
166112019-01-08 Tom Tromey <tom@tromey.com>
16612 Simon Marchi <simon.marchi@ericsson.com>
16613
16614 PR gdb/24060
16615 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
16616 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
16617 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
16618 * f-exp.y (DOLLAR_VARIABLE): Likewise.
16619 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
16620 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
16621
583068ca
AB
166222019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
16623
16624 * source.c (select_source_symtab): Move header comment to
16625 declaration in source.h.
16626 (forget_cached_source_info_for_objfile): Likewise.
16627 (forget_cached_source_info): Likewise.
16628 (identify_source_line): Likewise.
16629 * source.h (identify_source_line): Move declaration from symtab.h
16630 and add comment from source.c
16631 (print_source_lines): Likewise.
16632 (forget_cached_source_info_for_objfile): Likewise.
16633 (forget_cached_source_info): Likewise.
16634 (select_source_symtab): Likewise.
16635 (enum print_source_lines_flag): Move definition from symtab.h.
16636 * symtab.h (identify_source_line): Move declaration to source.h.
16637 (print_source_lines): Likewise.
16638 (forget_cached_source_info_for_objfile): Likewise.
16639 (forget_cached_source_info): Likewise.
16640 (select_source_symtab): Likewise.
16641 (enum print_source_lines_flag): Move definition to source.h.
16642 * tui/tui-hooks.c: Add 'source.h' include.
16643
ec98a4ad
AB
166442019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
16645
16646 * source.c (print_source_lines_base): Handle requests to print
16647 reverse line number sequences, and guard against empty lines
16648 string.
16649
62ea19c1
AB
166502019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
16651
16652 * source.c (print_source_lines_base): Fix skip of '\r' if next
16653 character is '\n'.
16654
9d30e1fd
TT
166552019-01-06 Tom Tromey <tom@tromey.com>
16656
16657 * c-exp.y (struct c_parse_state) <macro_original_text,
16658 expansion_obstack>: New member.
16659 (macro_original_text, expansion_obstack): Remove globals.
16660 (scan_macro_expansion, scanning_macro_expansion)
16661 (finished_macro_expansion): Update.
16662 (scan_macro_cleanup): Remove.
16663 (yylex, c_parse): Update.
16664
c65bac38
TT
166652019-01-06 Tom Tromey <tom@tromey.com>
16666
16667 * c-exp.y (struct c_parse_state) <strings>: New member.
16668 (operator_stoken): Update.
16669
02e12e38
TT
166702019-01-06 Tom Tromey <tom@tromey.com>
16671
16672 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
16673 (union type_stack_elt) <typelist_val>: Now a pointer to
16674 std::vector.
16675 (type_stack_cleanup): Don't declare.
16676 (push_typelist): Update.
16677 * parse.c (pop_typelist): Return a std::vector.
16678 (push_typelist): Take a std::vector.
16679 (follow_types): Update. Do not free args.
16680 (type_stack_cleanup): Remove.
16681 * c-exp.y (struct c_parse_state): New.
16682 (cpstate): New global.
16683 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
16684 (nonempty_typelist): Update.
16685 (func_mod): Create a new vector.
16686 (c_parse): Create a c_parse_state.
16687 (check_parameter_typelist): Do not delete params.
16688 (function_method): Update. Do not delete type_list.
16689
f097f5ad
TT
166902019-01-06 Tom Tromey <tom@tromey.com>
16691
16692 PR gdb/28155:
16693 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
16694 check_typedef.
16695 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
16696 (print_return_value): Likewise.
16697
d2adf9f1
TT
166982019-01-05 Tom Tromey <tom@tromey.com>
16699
16700 * contrib/cleanup_check.py: Remove.
16701 * contrib/gcc-with-excheck: Remove.
16702 * contrib/exsummary.py: Remove.
16703 * contrib/excheck.py: Remove.
16704
2eab46b1
JB
167052019-01-05 Joel Brobecker <brobecker@adacore.com>
16706
16707 * thread.c (delete_thread_1): Add gdb_assert that THR is not
16708 NULL. Initialize tpprev to NULL instead of assigning it
16709 to NULL on the next statement.
16710 * windows-nat.c (windows_delete_thread): Remove check for
16711 main_thread_id before printing thread exit notifications.
16712 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
16713 Remove thread ID check against main_thread_id.
16714 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
16715 windows_delete_thread.
16716 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
16717
48c5e7e2
TT
167182019-01-04 Tom Tromey <tom@tromey.com>
16719
16720 * compile/compile.c (_initialize_compile): Use upper case for
16721 metasyntactic variables.
16722 * symmisc.c (_initialize_symmisc): Use upper case for
16723 metasyntactic variables.
16724 * psymtab.c (_initialize_psymtab): Use upper case for
16725 metasyntactic variables.
16726 * demangle.c (demangle_command): Use upper case for metasyntactic
16727 variables.
16728 (_initialize_demangler): Likewise.
16729 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
16730 variables.
16731
986041cd
TT
167322019-01-03 Tom Tromey <tom@tromey.com>
16733
16734 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
16735
7c711119
TT
167362019-01-03 Tom Tromey <tom@tromey.com>
16737
16738 * python/py-symtab.c (salpy_str): Update.
16739 (struct salpy_sal_object) <symtab>: Now a PyObject.
16740 (salpy_dealloc): Update.
16741 (del_objfile_sal): Use gdbpy_ref.
16742
1b20edf0
TT
167432019-01-03 Tom Tromey <tom@tromey.com>
16744
16745 * python/py-type.c (convert_field): Use new_reference. Return
16746 gdbpy_ref.
16747 (make_fielditem): Return gdbpy_ref.
16748 (typy_fields): Update.
16749 (typy_getitem): Update.
16750 (field_name): Return gdbpy_ref. Use new_reference.
16751 (typy_iterator_iternext): Update.
16752
ea41325b
TT
167532019-01-03 Tom Tromey <tom@tromey.com>
16754
16755 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
16756
2a3c71d6
TT
167572019-01-03 Tom Tromey <tom@tromey.com>
16758
16759 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
16760 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
16761 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
16762 (pspy_set_frame_filters, pspy_set_frame_unwinders)
16763 (pspy_set_type_printers): Likewise.
16764 * python/py-function.c (fnpy_init): Use gdbpy_ref.
16765 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
16766 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
16767 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
16768 (objfpy_set_type_printers): Likewise.
16769
5c329e6a
TT
167702019-01-03 Tom Tromey <tom@tromey.com>
16771
16772 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
16773 (gdbpy_print_stack): Use gdbpy_err_fetch.
16774 * python/python-internal.h (class gdbpy_err_fetch): New class.
16775 (class gdbpy_enter) <m_error_type, m_error_value,
16776 m_error_traceback>: Remove.
16777 <m_error>: New member.
16778 (gdbpy_exception_to_string): Don't declare.
16779 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
16780 * python/py-value.c (convert_value_from_python): Use
16781 gdbpy_err_fetch.
16782 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
16783 gdbpy_exception_to_string.
16784 (gdbpy_handle_exception): Use gdbpy_err_fetch.
16785 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
16786 gdbpy_err_fetch.
16787
169bb27b
AB
167882019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16789
16790 * linux-nat.c (delete_lwp_cleanup): Delete.
16791 (struct lwp_deleter): New struct.
16792 (lwp_info_up): New typedef.
16793 (linux_nat_target::follow_fork): Delete cleanup, and make use of
16794 lwp_info_up.
16795
a07c8880
AB
167962019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16797
16798 * linux-fork.c (class scoped_switch_fork_info): New class.
16799 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
16800
26089c49
AB
168012019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16802
16803 * valops.c (find_overload_match): Remove use of null_cleanup, and
16804 calls to do_cleanups.
16805
06d3e5b0
AB
168062019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16807
16808 * compile/compile-cplus-types.c
16809 (compile_cplus_instance::decl_name): Handle changes to
16810 cp_func_name.
16811 * cp-support.c (cp_func_name): Update header comment, update
16812 return type.
16813 * cp-support.h (cp_func_name): Update return type in declaration.
16814 * valops.c (find_overload_match): Move temp_func local to top
16815 level of function and change its type. Use temp_func to hold and
16816 delete temporary string obtained from cp_func_name.
16817
66644cd3
AB
168182019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16819
16820 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
16821 gdb::char_vector, remove cleanup, and update uses of `msg`.
16822
592d8c0a
JW
168232019-01-03 Jim Wilson <jimw@sifive.com>
16824
16825 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
16826
c55d06ec
TT
168272019-01-02 Tom Tromey <tom@tromey.com>
16828
16829 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
16830 (tdesc_parse_xml): Remove cleanups.
16831 * target-descriptions.h (make_cleanup_free_target_description):
16832 Don't declare.
16833 (target_desc_deleter): New struct.
16834 (target_desc_up): New typedef.
16835 * target-descriptions.c (target_desc_deleter::operator()): Rename
16836 from free_target_description.
16837 (make_cleanup_free_target_description): Remove.
16838
3a6ae42d
TT
168392019-01-02 Tom Tromey <tom@tromey.com>
16840
16841 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
16842 constructor, destructor.
16843 (linespec_parser): Remove typedef.
16844 (~linespec_parser): Rename from linespec_parser_delete.
16845 (linespec_lex_to_end, linespec_complete_label)
16846 (linespec_complete): Update.
16847 (decode_line_full): Remove cleanups.
16848 (decode_line_1): Update.
16849
61fd3e73
TT
168502019-01-02 Tom Tromey <tom@tromey.com>
16851
16852 * python/python-internal.h (inferior_to_inferior_object): Change
16853 return type.
16854 * python/py-exitedevent.c (create_exited_event_object): Update.
16855 * python/py-inferior.c (inferior_to_inferior_object): Return
16856 gdbpy_ref.
16857 (python_new_inferior, python_inferior_deleted)
16858 (thread_to_thread_object, delete_thread_object)
16859 (build_inferior_list, gdbpy_selected_inferior): Update.
16860 * python/py-infthread.c (create_thread_object): Update. Also fail
16861 if inferior_to_inferior_object fails.
16862
d20172fc
SM
168632019-01-02 Simon Marchi <simon.marchi@ericsson.com>
16864
16865 * inferior.h (class inferior) <displaced_step_state>: New field.
16866 * infrun.h (struct displaced_step_state): Move here from
16867 infrun.c. Initialize fields, add constructor.
16868 <inf>: Remove field.
16869 <reset>: New method.
16870 * infrun.c (struct displaced_step_inferior_state): Move to
16871 infrun.h.
16872 (displaced_step_inferior_states): Remove.
16873 (get_displaced_stepping_state): Adust.
16874 (displaced_step_in_progress_any_inferior): Adjust.
16875 (displaced_step_in_progress_thread): Adjust.
16876 (displaced_step_in_progress): Adjust.
16877 (add_displaced_stepping_state): Remove.
16878 (get_displaced_step_closure_by_addr): Adjust.
16879 (remove_displaced_stepping_state): Remove.
16880 (infrun_inferior_exit): Call displaced_step_state.reset.
16881 (use_displaced_stepping): Don't check for NULL.
16882 (displaced_step_prepare_throw): Call
16883 get_displaced_stepping_state.
16884 (displaced_step_fixup): Don't check for NULL.
16885 (prepare_for_detach): Don't check for NULL.
16886
e3319240
PW
168872019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16888
16889 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
16890 in case of call that did not complete.
16891
5d36dfb9
AU
168922019-01-02 Andrey Utkin <autkin@undo.io>
16893
16894 * symfile.c (find_separate_debug_file): Fix search of debug files for
16895 remote debuggee.
16896
8833fbf0
TT
168972019-01-02 Tom Tromey <tom@tromey.com>
16898
16899 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
16900 indentation.
16901 * python/py-frame.c (frapy_older): Remove cast.
16902 (frapy_newer): Likewise.
16903 * python/py-breakpoint.c (local_setattro): Remove cast.
16904 * python/py-arch.c (archpy_name): Remove local variable.
16905 * python/py-type.c (gdbpy_lookup_type): Remove cast.
16906
4ada3dfd
JB
169072019-01-02 Joel Brobecker <brobecker@adacore.com>
16908
16909 * unittests/basic_string_view/element_access/char/empty.cc:
16910 Fix year range in copyright header.
16911
113b7b81
AB
169122019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
16913
16914 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
16915 Delete.
16916 <operator==>: Update with for removed field.
16917 <hash>: Likewise.
16918 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
16919 <isa_features>: ...this.
16920 <abi_features>: New field.
16921 (riscv_isa_flen): Update comment.
16922 (riscv_abi_xlen): New declaration.
16923 (riscv_abi_flen): New declaration.
16924 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
16925 isa_features.
16926 (riscv_abi_xlen): New function.
16927 (riscv_isa_flen): Update to get answer from isa_features.
16928 (riscv_abi_flen): New function.
16929 (riscv_has_fp_abi): Update to get answer from abi_features.
16930 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
16931 xlen and flen.
16932 (riscv_call_info) <xlen, flen>: Update comment.
16933 (riscv_call_arg_struct): Remove invalid assertions
16934 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
16935 is removed.
16936 (riscv_gdbarch_init): Gather isa features and abi features
16937 separately, ensure both match on the gdbarch when reusing an old
16938 gdbarch. Relax an error check to allow 32-bit abi float to run on
16939 a target with 64-bit float hardware.
16940
b18ca514
PW
169412019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16942
16943 * source.c (search_command_helper): Stop reverse search
16944 when line 1 has been searched.
16945
ec70d8db
PW
169462019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16947
16948 * record-full.c (record_full_base_target::close): Rewrite
16949 record_full_core_buf_list free logic.
16950
5b38f9c1
PW
169512019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16952
16953 * break-catch-syscall.c (print_one_catch_syscall): xfree
16954 the last text.
16955
66d91b39
JB
169562019-01-01 Joel Brobecker <brobecker@adacore.com>
16957
16958 * top.c (print_gdb_version): Update Copyright year in version
16959 message.
16960
42a4f53d
JB
169612019-01-01 Joel Brobecker <brobecker@adacore.com>
16962
16963 Update copyright year range in all GDB files.
16964
7e955d83 169652019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
2139e8dc 16966
5bbd631d 16967 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
2139e8dc 16968
5bbd631d 16969For older changes see ChangeLog-2018.
c906108c
SS
16970\f
16971Local Variables:
16972mode: change-log
16973left-margin: 8
16974fill-column: 74
16975version-control: never
57da7796 16976coding: utf-8
c906108c 16977End:
5bbd631d 16978
This page took 3.320447 seconds and 4 git commands to generate.