1 2019-12-20 Tom Tromey <tom@tromey.com>
3 * tui/tui-winsource.h (struct tui_source_window_base)
4 <set_contents, update_source_window_as_is, update_source_window>:
5 Take a sal, not a separate symtab and tui_line_or_address.
6 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
7 (tui_source_window_base::update_source_window_as_is): Take a sal,
8 not a separate symtab and tui_line_or_address.
9 (tui_update_source_windows_with_addr)
10 (tui_update_source_windows_with_line)
11 (tui_source_window_base::rerender)
12 (tui_source_window_base::refill): Update.
13 * tui/tui-source.h (struct tui_source_window) <set_contents>: Take
14 a sal, not a separate symtab and tui_line_or_address.
15 * tui/tui-source.c (tui_source_window::set_contents): Take a sal,
16 not a separate symtab and tui_line_or_address.
17 (tui_source_window::maybe_update): Update.
18 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>: Take
19 a sal, not a separate symtab and tui_line_or_address.
20 * tui/tui-disasm.c (tui_disasm_window::set_contents): Take a sal,
21 not a separate symtab and tui_line_or_address.
22 (tui_disasm_window::do_scroll_vertical)
23 (tui_disasm_window::maybe_update): Update.
25 2019-12-20 Tom Tromey <tom@tromey.com>
27 * tui/tui-winsource.c (tui_source_window_base::refill): Use
29 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Use
31 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
34 2019-12-20 Tom Tromey <tom@tromey.com>
36 * tui/tui-winsource.h (struct tui_source_window_base)
37 <set_contents>: Return bool.
39 (tui_source_window_base::update_source_window_as_is): Update.
40 * tui/tui-source.h (struct tui_source_window) <set_contents>:
42 * tui/tui-source.c (tui_source_window::set_contents): Return
44 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
46 * tui/tui-disasm.c (tui_disasm_window::set_contents): Return
49 2019-12-20 Tom Tromey <tom@tromey.com>
51 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
52 (tui_update_source_windows_with_line): Call update_source_window.
53 * tui/tui-source.h (struct tui_source_window)
54 <show_symtab_source>: Don't declare.
55 * tui/tui-source.c (tui_source_window::show_symtab_source):
58 2019-12-20 Tom Tromey <tom@tromey.com>
60 * tui/tui-winsource.c (tui_update_source_windows_with_addr): Call
61 update_source_window directly.
62 * tui/tui-disasm.h (tui_show_disassem): Don't declare.
63 * tui/tui-disasm.c (tui_show_disassem): Remove.
65 2019-12-20 Tom Tromey <tom@tromey.com>
68 (tui_source_window_base::update_source_window_as_is): Don't switch focus.
69 * tui/tui-disasm.c (tui_show_disassem): Don't switch focus.
71 2019-12-20 Tom Tromey <tom@tromey.com>
73 * tui/tui-winsource.h (struct tui_source_window_base)
74 <maybe_update>: Remove line_no and addr parameters.
75 * tui/tui-stack.c (tui_show_frame_info): Set PC on sal. Update.
76 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
78 * tui/tui-source.c (tui_source_window::maybe_update): Remove
79 line_no and addr parameters.
80 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
82 * tui/tui-disasm.c (tui_disasm_window::maybe_update): Remove
83 line_no and addr parameters.
85 2019-12-20 Tom Tromey <tom@tromey.com>
87 * tui/tui-winsource.c (tui_source_window_base::set_is_exec_point_at)
88 (tui_source_window_base::update_breakpoint_info): Remove asserts.
90 2019-12-20 Tom Tromey <tom@tromey.com>
92 * tui/tui-winsource.c (tui_update_source_windows_with_addr): Call
94 * tui/tui-disasm.h (tui_show_disassem_and_update_source): Don't
96 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Remove.
98 2019-12-20 Tom Tromey <tom@tromey.com>
100 * tui/tui.h (tui_show_source): Remove parameters.
101 * tui/tui.c (tui_show_source): Remove parameters.
102 * tui/tui-out.c (tui_ui_out::do_field_string): Update.
104 2019-12-20 Tom Tromey <tom@tromey.com>
106 * tui/tui.c (tui_show_source): Update.
107 * tui/tui-winsource.c (tui_display_main): Update.
108 * tui/tui-stack.h (tui_update_locator_fullname): Change parameter
110 * tui/tui-stack.c (tui_update_locator_fullname): Change parameter
112 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Update.
114 2019-12-20 Tom Tromey <tom@tromey.com>
117 * tui/tui-io.c (tui_rl_saved_prompt): Remove.
118 (tui_redisplay_readline): Use rl_display_prompt.
119 (tui_prep_terminal): Update.
121 2019-12-19 Christian Biesinger <cbiesinger@google.com>
123 * configure: Regenerate.
124 * configure.ac: Quote variable arguments of test.
125 * gdbsupport/common.m4: Likewise.
127 2019-12-19 Christian Biesinger <cbiesinger@google.com>
129 * score-tdep.c (score7_analyze_prologue): Pass 2.0 instead of
132 2019-12-19 Christian Biesinger <cbiesinger@google.com>
134 * tui/tui-source.c (tui_source_window::set_contents): Cast argument of
135 log10 to double to fix Solaris 11 with gcc 5.5.
137 2019-12-19 Christian Biesinger <cbiesinger@google.com>
139 * fbsd-tdep.c (fbsd_info_proc_files_entry): Rename local var
142 2019-12-19 Tom Tromey <tromey@adacore.com>
144 * ui-out.h (enum class field_kind): Fix comment.
146 2019-12-11 Tom Tromey <tromey@adacore.com>
148 * xml-support.c (xml_fetch_content_from_file): Use FOPEN_RB.
150 2019-12-18 Tom Tromey <tromey@adacore.com>
153 * gdbsupport/thread-pool.c (set_thread_name): Expect "int" return
154 type on macOS. Add comment.
156 2019-12-18 Simon Marchi <simon.marchi@efficios.com>
158 * c-lang.c (c_get_string, asm_language_defn): Remove space
161 2019-12-18 Tom Tromey <tromey@adacore.com>
164 * ui-out.c (ui_out::vmessage): Update.
165 * ui-out.h (enum class field_kind) <FIELD_STRING, FIELD_SIGNED>:
167 (string_field): Update.
168 (signed_field): Update.
170 2019-12-18 Simon Marchi <simon.marchi@efficios.com>
172 * top.c (print_gdb_configuration): Adjust indentation.
174 2019-12-17 Christian Biesinger <cbiesinger@google.com>
176 * bsd-kvm.c: Include gdbsupport/pathstuff.h.
178 2019-12-17 Simon Marchi <simon.marchi@polymtl.ca>
180 * tui/tui-layout.h (class tui_layout_base): Add virtual
183 2019-12-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
185 * infcmd.c (prepare_one_step): Step over skipped inline functions.
186 * infrun.c (inline_frame_is_marked_for_skip): New helper function.
187 (process_event_stop_test): Keep stepping over skipped inline functions.
189 2019-12-16 Simon Marchi <simon.marchi@polymtl.ca>
191 * jit.c (struct gdb_block) <next>: Remove field.
192 (struct gdb_symtab) <~gdb_symtab>: Remove.
193 <blocks>: Change type to std::forward_list<gdb_block>.
194 (compare_block): Remove.
195 (jit_block_open_impl): Adjust to std::forward_list. Place the new
196 block at the beginning, don't mind about sorting.
197 (finalize_symtab): Adjust to std::forward_list, sort the blocks list
200 2019-12-16 Simon Marchi <simon.marchi@polymtl.ca>
202 * jit.c (struct gdb_block): Add constructor, initialize
203 real_block and next fields.
204 <name>: Change type to gdb::unique_xmalloc_ptr.
205 (struct gdb_symtab) <~gdb_symtab>: Free blocks with delete.
206 (jit_block_open_impl): Allocate gdb_block with new.
207 (finalize_symtab): Adjust to gdb::unique_xmalloc_ptr.
209 2019-12-16 Simon Marchi <simon.marchi@polymtl.ca>
211 * jit.c: Include forward_list.
212 (struct gdb_symtab) <next>: Remove field.
213 (struct gdb_object) <symtabs>: Change type to
214 std::forward_list<gdb_symtab>.
215 (jit_object_open_impl): Allocate gdb_object with new.
216 (jit_symtab_open_impl): Adjust to std::forward_list.
217 (finalize_symtab): Don't delete symtab.
218 (jit_object_close_impl): Adjust to std::forward_list. Free
219 gdb_object with delete.
221 2019-12-16 Simon Marchi <simon.marchi@polymtl.ca>
223 * jit.c (struct gdb_symtab): Add constructor, destructor,
225 <linetable>: Change type to unique_xmalloc_ptr.
226 <file_name>: Change type to std::string.
227 (jit_symtab_open_impl): Allocate gdb_symtab with new.
228 (jit_symtab_line_mapping_add_impl): Adjust.
229 (finalize_symtab): Adjust, call delete on stab.
231 2019-12-16 Simon Marchi <simon.marchi@polymtl.ca>
233 * jit.c (finalize_symtab): Set gdb_block_iter_tmp in loop.
235 2019-12-16 Tom Tromey <tromey@adacore.com>
237 * windows-nat.c (windows_nat_target::attach): Update.
238 * remote.c (extended_remote_target::attach): Update.
239 * procfs.c (procfs_target::attach): Update.
240 * nto-procfs.c (nto_procfs_target::attach): Update.
241 (nto_procfs_target::create_inferior): Update.
242 * inf-ptrace.c (inf_ptrace_target::attach): Update.
243 * gnu-nat.c (gnu_nat_target::attach): Update.
244 (gnu_nat_target::detach): Update.
245 * darwin-nat.c (darwin_nat_target::attach): Update.
246 * corefile.c (get_exec_file): Constify result. Remove extraneous
248 * bsd-kvm.c (bsd_kvm_target_open): Update.
249 * gdbsupport/common-inferior.h (get_exec_file): Constify result.
251 2019-12-16 Christian Biesinger <cbiesinger@google.com>
253 * gdbsupport/common-defs.h: Remove workaround for a gnulib bug
254 (we no longer need to include time.h before pathmax.h)
256 2019-12-15 Christian Biesinger <cbiesinger@google.com>
258 * ada-exp.y (write_ambiguous_var): Update.
259 * coffread.c (process_coff_symbol): Update.
260 * ctfread.c (ctf_add_enum_member_cb): Update.
261 (new_symbol): Update.
262 * dwarf2read.c (fixup_go_packaging): Update.
263 (new_symbol): Update.
264 * language.c (language_alloc_type_symbol): Update.
265 * mdebugread.c (new_symbol): Update.
266 * minsyms.c (minimal_symbol_reader::record_full): Update.
267 * psymtab.c (add_psymbol_to_bcache): Update.
268 * stabsread.c (define_symbol): Update.
269 (read_enum_type): Update.
270 * symtab.c (symbol_set_language): Make this a member function...
271 (general_symbol_info::set_language): ... here.
272 * symtab.h (struct general_symbol_info) <set_language>: New function.
273 (SYMBOL_SET_LANGUAGE): Remove.
274 (symbol_set_language): Remove.
276 2019-12-15 Christian Biesinger <cbiesinger@google.com>
278 * ada-lang.c (ada_add_block_symbols): Update.
279 (ada_collect_symbol_completion_matches): Update.
280 * ax-gdb.c (gen_expr): Update.
281 * block.c (block_lookup_symbol): Update.
282 (block_lookup_symbol_primary): Update.
283 (block_find_symbol): Update.
284 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Update.
285 * dbxread.c (process_one_symbol): Update.
286 * dictionary.c (insert_symbol_hashed): Update.
287 (collate_pending_symbols_by_language): Update.
288 (mdict_add_symbol): Update.
289 * dwarf-index-write.c (write_psymbols): Update.
290 * dwarf2read.c (fixup_go_packaging): Update.
291 * findvar.c (read_var_value): Update.
292 * ft32-tdep.c (ft32_skip_prologue): Update.
293 * go-lang.c (go_symbol_package_name): Update.
294 * language.h (scoped_switch_to_sym_language_if_auto::
295 scoped_switch_to_sym_language_if_auto): Update.
296 * linespec.c (find_method): Update.
297 (find_label_symbols_in_block): Update.
298 * mdebugread.c (parse_symbol): Update.
299 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
300 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
301 (minimal_symbol_reader::install): Update.
302 * moxie-tdep.c (moxie_skip_prologue): Update.
303 * parse.c (parse_exp_in_context): Update.
304 * psymtab.c (psymbol_name_matches): Update.
305 (match_partial_symbol): Update.
306 (lookup_partial_symbol): Update.
307 (psymbol_hash): Update.
308 (psymbol_compare): Update.
309 * python/py-framefilter.c (extract_sym): Update.
310 (py_print_single_arg): Update.
311 * stabsread.c (define_symbol): Update.
312 * stack.c (print_frame_arg): Update.
313 (find_frame_funname): Update.
314 (info_frame_command_core): Update.
315 * symfile.c (set_initial_language): Update.
316 * symtab.c (symbol_set_demangled_name): Update.
317 (symbol_get_demangled_name): Update.
318 (symbol_set_language): Update.
319 (symbol_find_demangled_name): Update.
320 (symbol_set_names): Update.
321 (general_symbol_info::natural_name): Update.
322 (general_symbol_info::demangled_name): Update.
323 (general_symbol_info::search_name): Update.
324 (symbol_matches_search_name): Update.
325 (eq_symbol_entry): Update.
326 (iterate_over_symbols): Update.
327 (completion_list_add_symbol): Update.
328 (completion_list_add_msymbol): Update.
329 (completion_list_add_fields): Update.
330 * symtab.h (struct general_symbol_info) <language>: New function.
331 <language>: Rename to...
332 <m_language>: ...this.
333 (SYMBOL_LANGUAGE): Remove.
334 (MSYMBOL_LANGUAGE): Remove.
335 (struct symbol) <ctor>: Update.
336 * xstormy16-tdep.c (xstormy16_skip_prologue): Update.
338 2019-12-15 Christian Biesinger <cbiesinger@google.com>
340 * ada-exp.y (write_ambiguous_var): Call symbol_set_language to
341 set the language of sym.
342 * language.c (language_alloc_type_symbol): Likewise.
344 2019-12-14 Sergio Durigan Junior <sergiodj@redhat.com>
346 https://bugzilla.redhat.com/show_bug.cgi?id=1728147
348 * bsd-kvm.c (bsd_kvm_target_open): Use 'gdb_abspath'.
349 * corelow.c: Include 'gdbsupport/pathstuff.h'.
350 (core_target_open): Use 'gdb_abspath'.
351 * gdbsupport/pathstuff.c (gdb_abspath): Guard against
352 'current_directory == NULL' case.
353 * gdbsupport/pathstuff.h (gdb_abspath): Expand comment and
354 explain what happens when 'current_directory' is NULL.
355 * go32-nat.c (go32_nat_target::wait): Check if
356 'current_directory' is NULL before call to 'chdir'.
357 * source.c (add_path): Use 'gdb_abspath'.
358 * top.c: Include 'gdbsupport/pathstuff.h'.
359 (init_history): Use 'gdb_abspath'.
360 (set_history_filename): Likewise.
361 * tracefile-tfile.c: Include 'gdbsupport/pathstuff.h'.
362 (tfile_target_open): Use 'gdb_abspath'.
364 2019-12-13 Tom Tromey <tromey@adacore.com>
366 * contrib/ari/gdb_ari.sh: Remove check for multiple calls to
369 2019-12-13 Tom Tromey <tromey@adacore.com>
371 * contrib/ari/gdb_ari.sh: Remove call to "fix" for "long long".
373 2019-12-13 Tom Tromey <tromey@adacore.com>
375 * contrib/ari/gdb_ari.sh: Handle -Wno- prefix.
377 2019-12-13 Tom Tromey <tromey@adacore.com>
379 * contrib/ari/gdb_ari.sh (usage): Use GNU style.
381 2019-12-13 Tom Tromey <tromey@adacore.com>
383 * gdbsupport/common-utils.c (string_printf, string_vprintf)
384 (string_vappendf): Add ARI comment.
386 2019-12-13 Tom Tromey <tromey@adacore.com>
388 * contrib/ari/gdb_ari.sh: Remove "fix" call for
389 floatformat_to_double.
390 * target-float.c (host_float_ops<T>::from_target): Add ARI
393 2019-12-13 Tom Tromey <tromey@adacore.com>
395 * contrib/ari/gdb_ari.sh: Remove "fix" call for abort.
396 * utils.c (abort_with_message, dump_core, internal_vproblem): Add
398 * event-top.c (handle_sigsegv): Add ARI marker to abort.
400 2019-12-13 Tom Tromey <tromey@adacore.com>
402 * contrib/ari/gdb_ari.sh: Fix floatformat_from_double text.
404 2019-12-13 Tom Tromey <tromey@adacore.com>
406 * contrib/ari/gdb_ari.sh: Remove ATTRIBUTE_UNUSED check.
408 2019-12-13 Tom Tromey <tromey@adacore.com>
410 * contrib/ari/gdb_ari.sh: Remove "boolean" and "var_boolean"
413 2019-12-13 Tom Tromey <tromey@adacore.com>
415 * gdbsupport/safe-iterator.h (class basic_safe_range) <begin,
416 end>: No longer "const".
418 2019-12-13 Simon Marchi <simon.marchi@polymtl.ca>
420 * jit.c: Fix indentation, replace spaces with tabs where
423 2019-12-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
425 * configure.tgt: Match msp430-*-elf* targets when configuring GDB.
427 2019-12-12 Tom Tromey <tom@tromey.com>
429 * objfiles.h (struct objfile) <partial_symtabs>: Now a
432 2019-12-12 Tom Tromey <tom@tromey.com>
434 * progspace.h (objfile_list): New typedef.
435 (class unwrapping_objfile_iterator)
436 (struct unwrapping_objfile_range): Newl
437 (struct program_space) <objfiles_range>: Change type.
438 <objfiles>: Change return type.
439 <add_objfile>: Change type of "objfile" parameter.
440 <objfiles_list>: Now a list of shared_ptr.
441 * progspace.c (program_space::add_objfile): Change type of
443 (program_space::remove_objfile): Update.
444 * objfiles.h (struct objfile) <~objfile>: Make public.
445 * objfiles.c (objfile::make): Update.
446 (objfile::unlink): Don't call delete.
448 2019-12-12 Tom Tromey <tom@tromey.com>
450 * symfile.c (symbol_file_clear): Update.
451 * progspace.h (struct program_space) <free_all_objfiles>: Declare
453 * progspace.c (program_space::free_all_objfiles): New method.
454 * objfiles.h (free_all_objfiles): Don't declare.
455 * objfiles.c (free_all_objfiles): Move to program_space.
457 2019-12-12 Tom Tromey <tom@tromey.com>
459 * progspace.c (program_space::add_objfile)
460 (program_space::remove_objfile): Update.
461 (program_space::multi_objfile_p): Remove.
462 * objfiles.h (struct objfile) <next>: Remove.
463 * objfiles.c (objfile::objfile): Update.
464 (put_objfile_before): Update.
465 (unlink_objfile): Update.
466 * progspace.h (object_files): Remove.
467 (struct program_space) <objfiles_head>: Remove.
468 <objfiles_list>: New member.
469 <objfiles_range, objfiles_safe_range>: Change type.
470 (objfiles): Change return type.
471 (objfiles_safe): Update.
472 (multi_objfile_p): Rewrite and inline.
473 (object_files): Remove macro.
475 2019-12-12 Tom Tromey <tom@tromey.com>
477 * gdbsupport/safe-iterator.h (basic_safe_iterator): Simplify. Add
479 (basic_safe_range): New class.
481 2019-12-12 Tom Tromey <tom@tromey.com>
483 * progspace.c (program_space::multi_objfile_p): New method.
484 * printcmd.c (info_symbol_command): Update.
485 * maint.c (maintenance_translate_address): Update.
486 * objfiles.h (MULTI_OBJFILE_P): Remove.
487 * progspace.h (struct program_space) <multi_objfile_p>: New
490 2019-12-12 Tom Tromey <tom@tromey.com>
492 * progspace.h (struct program_space) <remove_objfile>: Declare.
493 * progspace.c (program_space::remove_objfile): New method.
494 * objfiles.c (unlink_objfile): Remove.
495 (objfile::unlink): Call remove_objfile.
496 (objfile): Don't call unlink_objfile.
498 2019-12-12 Tom Tromey <tom@tromey.com>
500 * progspace.h (struct program_space) <add_objfile>: Declare
502 * progspace.c (program_space::add_objfile): New method.
503 * objfiles.c (~objfile): Don't unlink objfile.
504 (put_objfile_before): Remove.
505 (add_separate_debug_objfile): Don't call put_objfile_before.
506 (objfile::make): Call add_objfile. Set new_objfiles_available on
507 the per-program-space data.
509 2019-12-12 Tom Tromey <tom@tromey.com>
511 * symfile.c (syms_from_objfile_1): Use objfile_up.
512 (syms_from_objfile_1, remove_symbol_file_command): Call unlink
514 (reread_symbols): Use objfile_up.
515 * solib.c (update_solib_list, reload_shared_libraries_1): Call
517 * objfiles.h (struct objfile) <~objfile>: Now private.
518 <unlink>: New method.
519 (struct objfile_deleter): New.
520 (objfile_up): New typedef.
521 * objfiles.c (objfile::unlink): New method.
522 (free_objfile_separate_debug, free_all_objfiles)
523 (objfile_purge_solibs): Use it.
524 * jit.c (jit_unregister_code): Remove.
525 (jit_inferior_exit_hook, jit_event_handler): Call unlink on
527 * compile/compile-object-run.c (do_module_cleanup): Call unlink on
529 * compile/compile-object-load.c (compile_object_load): Use
532 2019-12-12 Tom Tromey <tom@tromey.com>
534 * symfile.c (symbol_file_add_with_addrs): Pass "parent" to
536 * objfiles.h (struct objjfile) <make>: No longer inline.
537 (add_separate_debug_objfile): Don't declare.
538 * objfiles.c (add_separate_debug_objfile): Now static.
539 (objfile::make): Move from objfiles.h. Call
540 add_separate_debug_objfile. Add "parent" parameter.
542 2019-12-12 Tom Tromey <tom@tromey.com>
544 * symfile.c (symbol_file_add_with_addrs): Use objfile::make.
545 * objfiles.h (struct objfile): Make constructor private.
546 <make>: New static method.
547 * jit.c (jit_object_close_impl): Update.
549 2019-12-12 Simon Marchi <simon.marchi@polymtl.ca>
551 * jit.c (jit_reader_try_read_symtab): Replace xmalloc/xfree with
554 2019-12-12 Tom Tromey <tromey@adacore.com>
556 * xml-support.c (xml_fetch_content_from_file): Don't call
558 * utils.h (class gdb_argv): Remove malloc_failure comment.
559 * utils.c (gdb_argv::reset): Don't call malloc_failure.
561 2019-12-12 Tom Tromey <tromey@adacore.com>
563 * Makefile.in (ALL_TARGET_OBS): Add riscv-ravenscar-thread.o.
564 (HFILES_NO_SRCDIR): Add riscv-ravenscar-thread.h.
565 (ALLDEPFILES): Add riscv-ravenscar-thread.c.
566 * configure.tgt (riscv-*-*): Add riscv-ravenscar-thread.o.
567 * riscv-ravenscar-thread.c: New file.
568 * riscv-ravenscar-thread.h: New file.
569 * riscv-tdep.c (riscv_gdbarch_init): Call
570 register_riscv_ravenscar_ops.
572 2019-12-12 Tom Tromey <tromey@adacore.com>
574 * gdbsupport/thread-pool.c (set_thread_name): Use
577 2019-12-12 Luis Machado <luis.machado@linaro.org>
579 * gdbsupport/safe-strerror.c: Don't include diagnostics.h.
580 (select_strerror_r): Use ATTRIBUTE_UNUSED instead of the diagnostics
583 2019-12-11 Tom Tromey <tom@tromey.com>
585 * tui/tui-win.c (tui_set_win_height_command): Call
586 tui_adjust_window_height.
587 (tui_adjust_win_heights, new_height_ok): Remove.
588 * tui/tui-layout.h (tui_adjust_window_height): Declare.
589 * tui/tui-layout.c (tui_adjust_window_height): New function.
591 2019-12-11 Tom Tromey <tom@tromey.com>
593 * tui/tui-win.c (tui_resize_all): Remove code, call
594 tui_apply_current_layout.
596 2019-12-11 Tom Tromey <tom@tromey.com>
598 * tui/tui-layout.h (tui_apply_current_layout): Declare.
599 * tui/tui-layout.c (standard_layouts, applied_layout): New
601 (tui_apply_current_layout): New function.
602 (show_layout): Set applied_layout. Call
603 tui_apply_current_layout.
604 (show_source_command, show_disasm_command)
605 (show_source_disasm_command, show_data)
606 (show_source_or_disasm_and_command): Remove.
607 (initialize_layouts): New function.
608 (_initialize_tui_layout): Call initialize_layouts.
610 2019-12-11 Tom Tromey <tom@tromey.com>
612 * tui/tui-layout.h (class tui_layout_base)
613 (class tui_layout_window, class tui_layout_split): New.
614 * tui/tui-layout.c (tui_get_window_by_name)
615 (tui_layout_window::clone, tui_layout_window::apply)
616 (tui_layout_window::get_sizes, tui_layout_window::add_split)
617 (tui_layout_split::add_window, tui_layout_split::clone)
618 (tui_layout_split::get_sizes)
619 (tui_layout_split::set_weights_from_heights)
620 (tui_layout_split::adjust_size, tui_layout_split::apply): New
622 (tui_layout_split::add_split, tui_layout_split::add_split)
623 (tui_layout_split::set_weights_from_heights)
624 (tui_layout_split::set_weights_from_heights): New functions.
626 2019-12-11 Tom Tromey <tom@tromey.com>
628 * tui/tui-wingeneral.c (tui_gen_win_info::make_window): Update.
629 * tui/tui-win.c (tui_adjust_win_heights, tui_resize_all): Update.
630 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
631 * tui/tui-data.h (struct tui_point): Remove.
632 (struct tui_gen_win_info) <origin>: Remove.
634 * tui/tui-command.c (tui_cmd_window::resize): Update.
636 2019-12-11 Tom Tromey <tom@tromey.com>
638 * tui/tui-stack.h (struct tui_locator_window) <min_height>:
640 * tui/tui-regs.h (struct tui_data_item_window) <min_height>:
642 * tui/tui-data.h (struct tui_gen_win_info) <min_height>: New
644 (struct tui_win_info) <min_height>: Implement.
646 2019-12-11 Tom Tromey <tom@tromey.com>
648 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
649 (struct tui_win_info) <can_box>: Update.
651 2019-12-11 Tom Tromey <tom@tromey.com>
653 * tui/tui-stack.h (struct tui_locator_window) <max_height>: New
655 * tui/tui-regs.h (struct tui_data_item_window) <max_height>: New
657 * tui/tui-data.h (struct tui_gen_win_info) <max_height>: New
659 (struct tui_win_info) <max_height>: Now override.
661 2019-12-11 Joel Brobecker <brobecker@adacore.com>
663 * NEWS: Create a new section for the next release branch.
664 Rename the section of the current branch, now that it has
667 2019-12-11 Joel Brobecker <brobecker@adacore.com>
669 GDB 9 branch created (27f7b2f64062ac9e52afc60509263c2702a9ebd0):
670 * version.in: Bump version to 10.0.50.DATE-git.
672 2019-12-11 Tom Tromey <tromey@adacore.com>
675 * gdbsupport/thread-pool.c (set_thread_name): New function.
676 (thread_pool::set_thread_count): Don't call pthread_setname_np.
677 (thread_pool::thread_function): Call set_thread_name.
679 2019-12-11 Tom Tromey <tromey@adacore.com>
681 * fbsd-tdep.c (fbsd_core_info_proc_status): Cast result of
684 2019-12-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
686 * NEWS: Document -raw-values option and the related setting commands.
687 * printcmd.c (print_command_parse_format): Do not set opts->raw off,
688 only set it on when /r is given.
689 * valprint.c (value_print_option_defs): New element raw-values.
690 * Makefile.in: Add the new file.
692 2019-12-10 Christian Biesinger <cbiesinger@google.com>
694 * gdbsupport/safe-strerror.c: Supress the unused function warning
695 for select_strerror_r.
697 2019-12-10 Christian Biesinger <cbiesinger@google.com>
699 * config.in: Regenerate.
700 * configure: Regenerate.
701 * gdbsupport/agent.c (gdb_connect_sync_socket): Call
702 safe_strerror instead of strerror.
703 * gdbsupport/common.m4: Don't check for strerror.
704 * gdbsupport/safe-strerror.c: Support both the glibc version
705 of strerror_r and the XSI version.
707 2019-12-10 Tom Tromey <tromey@adacore.com>
709 * ada-typeprint.c (print_choices): Use a single "?".
710 (print_variant_part): Print "?" if the discriminant name
713 2019-12-10 George Barrett <bob@bob131.so>
715 Fix scripted probe breakpoints.
716 * breakpoint.c (tracepoint_probe_breakpoint_ops): Move
718 (breakpoint_ops_for_event_location_type)
719 (breakpoint_ops_for_event_location): Add function definitions.
720 (break_command_1, trace_command): Use
721 breakpoint_ops_for_event_location.
722 * breakpoint.h (breakpoint_ops_for_event_location): Add function
724 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Use
725 breakpoint_ops_for_event_location.
726 * python/py-breakpoint.c (bppy_init): Use
727 breakpoint_ops_for_event_location.
729 2019-12-09 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
731 * gdbtypes.c (rank_one_type): Return INCOMPATIBLE_TYPE_BADNESS
732 when ranking an lvalue argument for an rvalue parameter.
734 2019-12-08 Wataru Ashihara <wataash@wataash.com>
736 * darwin-nat.c (darwin_nat_target::create_inferior): Fix
737 template argument for scoped_restore_tmpl from bool to int.
739 2019-12-07 Keith Seitz <keiths@redhat.com>
741 * build-id.c (build_id_bfd_get): Permit bfd_core, too.
742 (build_id_to_debug_bfd): Make static, rewriting to use
743 build_id_to_bfd_suffix.
744 (build_id_to_bfd_suffix): Copy of build_id_to_debug_bfd,
745 adding `suffix' parameter. Append SUFFIX to file names
746 when searching for matching files.
747 (build_id_to_debug_bfd): Use build_id_to_bfd_suffix.
748 (build_id_to_exec_bfd): Likewise.
749 * build-id.h (build_id_to_debug_bfd): Clarify that function
750 searches for BFD of debug info file.
751 (build_id_to_exec_bfd): Declare.
752 * corelow.c: Include build-id.h.
753 (locate_exec_from_corefile_build_id): New function.
754 (core_target_open): If no executable BFD is found,
755 search for a core file BFD using build-id.
757 2019-12-06 Christian Biesinger <cbiesinger@google.com>
759 * bcache.c: Put in namespace gdb.
760 * bcache.h: Likewise.
761 * gdbtypes.c (check_types_worklist): Update.
762 (types_deeply_equal): Update.
763 * macrotab.c (struct macro_table) <bcache>: Update.
764 (new_macro_table): Update.
765 * macrotab.h (struct bcache): Put this forward declaration
766 inside namespace gdb.
767 (new_macro_table): Update.
768 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache>:
770 <macro_cache>: Update.
771 * psymtab.h: (psymtab_storage) <psymbol_cache>: Update.
773 2019-12-06 Tom de Vries <tdevries@suse.de>
776 * block.c (best_symbol, better_symbol): New function.
777 (block_lookup_symbol_primary, block_lookup_symbol): Prefer def over
780 2019-12-06 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
782 * gdbtypes.h: Define the REFERENCE_SEE_THROUGH_BADNESS value.
783 * gdbtypes.c (rank_one_type): Use REFERENCE_SEE_THROUGH_BADNESS
784 for ranking see-through reference cases.
786 2019-12-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
787 * stack.c (faas_command): Check a command is provided.
788 * thread.c (taas_command, tfaas_command): Likewise.
790 2019-12-05 Philippe Waroquiers <philippe.waroquiers@skynet.be>
791 * inferior.c (prune_inferiors): Only call delete_inferior,
792 Do not modify the inferior list.
794 2019-12-05 Simon Marchi <simon.marchi@polymtl.ca>
796 * c-exp.y: Update calls to lookup_typename,
797 lookup_signed_typename and lookup_unsigned_typename.
798 * c-lang.c (evaluate_subexp_c): Likewise.
799 * cp-namespace.c (cp_lookup_symbol_imports_or_template):
801 * eval.c (binop_promote): Likewise.
802 * gdbtypes.c (lookup_typename): Remove gdbarch parameter.
803 (lookup_unsigned_typename): Likewise.
804 (lookup_signed_typename): Likewise.
805 * gdbtypes.h (lookup_unsigned_typename): Likewise.
806 (lookup_signed_typename): Likewise.
807 (lookup_typename): Likewise.
808 * guile/scm-type.c (tyscm_lookup_typename): Update calls to
809 lookup_typename, lookup_signed_typename,
810 lookup_unsigned_typename.
811 * m2-exp.y: Likewise.
812 * printcmd.c (printf_wide_c_string): Likewise.
813 (ui_printf): Likewise.
814 * python/py-type.c (typy_lookup_typename): Likewise.
815 * python/py-xmethods.c (python_xmethod_worker::invoke):
817 * rust-exp.y: Likewise.
819 2019-12-04 Christian Biesinger <cbiesinger@google.com>
821 * configure.nat (obsd64): Add missing files x86-nat.o and
824 2019-12-04 Tom Tromey <tom@tromey.com>
826 * valprint.c (val_print_string): Use metadata_style.
827 * go-valprint.c (print_go_string): Use metadata style.
828 * p-valprint.c (pascal_object_print_static_field): Use metadata
830 * cp-valprint.c (cp_print_static_field): Use metadata style.
832 2019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
833 Chris January <chris.january@arm.com>
835 * f-exp.y (COMPLEX_KEYWORD, SINGLE, DOUBLE, PRECISION): New
837 (typebase): New patterns for complex, single/double precision, and
838 single/double complex.
839 (f77_keywords): Change token for complex keyword, and add single,
840 double, and precision keywords.
842 2019-12-04 Simon Marchi <simon.marchi@polymtl.ca>
844 * avr-tdep.c (_initialize_avr_tdep): Improve help of command
847 2019-12-04 Simon Marchi <simon.marchi@polymtl.ca>
849 * regcache.c (cooked_read_test): Initialize thread list of
852 2019-12-04 Simon Marchi <simon.marchi@polymtl.ca>
854 * aarch64-linux-tdep.c: Remove includes.
856 2019-12-04 Simon Marchi <simon.marchi@polymtl.ca>
858 * aarch64-tdep.c: Remove includes.
860 2019-12-04 Simon Marchi <simon.marchi@efficios.com>
862 * filtered-iterator.h (filtered_iterator) <operator==,
863 operator!=>: Compare wrapped iterators, not wrapped pointers.
864 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
865 unittests/filtered_iterator-selftests.c.
866 * unittests/filtered_iterator-selftests.c: New file.
868 2019-12-04 Tom Tromey <tromey@adacore.com>
870 * gdbtypes.c (create_range_type): Inherit endianity
873 2019-12-04 Tom Tromey <tromey@adacore.com>
875 * ada-lang.c (decode_constrained_packed_array)
876 (ada_value_assign, value_assign_to_component): Update.
877 * dwarf2loc.c (rw_pieced_value, access_memory)
878 (dwarf2_compile_expr_to_ax): Update.
879 * dwarf2read.c (dwarf2_add_field): Update.
880 * eval.c (evaluate_subexp_standard): Update.
881 * gdbarch.c, gdbarch.h: Rebuild.
882 * gdbarch.sh (bits_big_endian): Remove.
883 * gdbtypes.h (union field_location): Update comment.
884 * target-descriptions.c (make_gdb_type): Update.
885 * valarith.c (value_bit_index): Update.
886 * value.c (struct value) <bitpos>: Update comment.
887 (unpack_bits_as_long, modify_field): Update.
888 * value.h (value_bitpos): Update comment.
890 2019-12-04 Tom Tromey <tromey@adacore.com>
892 * gdbtypes.c (type_byte_order): Move earlier. Assert for unknown
895 2019-12-04 Tom Tromey <tromey@adacore.com>
897 * dwarf2read.c (dwarf2_init_float_type)
898 (dwarf2_init_complex_target_type): Add byte_order parameter.
899 (read_base_type): Compute byte order earlier.
900 * gdbtypes.c (init_float_type): Add byte_order parameter.
901 * gdbtypes.h (init_float_type): Add byte_order parameter.
903 2019-12-04 Tom Tromey <tromey@adacore.com>
905 * unittests/tui-selftests.c: Conditionally include tui-winsource.h.
907 2019-12-04 Tom Tromey <tromey@adacore.com>
909 * dwarf2read.c (process_structure_scope): Initialize
912 2019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
914 * mi/mi-symbol-cmds.c (mi_symbol_info): Take extra parameter, and
915 add it into the search spec.
916 (parse_max_results_option): New function.
917 (mi_info_functions_or_variables): Parse -max-results flag and pass
918 it to mi_symbol_info.
919 (mi_cmd_symbol_info_modules): Likewise.
920 (mi_cmd_symbol_info_types): Likewise.
921 * symtab.c (global_symbol_searcher::add_matching_symbols): Change
922 return type to bool, change result container into a set, and don't
923 add new results if we have enough already.
924 (global_symbol_searcher::add_matching_msymbols): Change return
925 type to bool, and don't add new results if we have enough already.
926 (sort_search_symbols_remove_dups): Delete.
927 (global_symbol_searcher::search): Early exit from search loop when
928 we have enough results. Use a std::set to collect the results
929 from calling add_matching_symbols.
930 * symtab.h (global_symbol_searcher) <set_max_seach_results>: New
932 (global_symbol_searcher) <m_max_search_results>: New member
934 (global_symbol_searcher) <add_matching_symbols>: Update header
935 comment and change return type to bool.
936 (global_symbol_searcher) <add_matching_msymbols>: Update header
937 comment and change return type to bool.
939 2019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
941 * symtab.c (symbol_search::compare_search_syms): Update header
943 (global_symbol_searcher::is_suitable_msymbol): New function.
944 (global_symbol_searcher::expand_symtabs): New function.
945 (global_symbol_searcher::add_matching_symbols): New function.
946 (global_symbol_searcher::add_matching_msymbols): New function.
947 (global_symbol_searcher::search): Move most of the content
948 into the new functions above, and call them as needed.
949 * symtab.h (global_symbol_searcher) <expand_symtabs>: New member
951 (global_symbol_searcher) <add_matching_symbols>: New member
953 (global_symbol_searcher) <add_matching_msymbols>: New member
955 (global_symbol_searcher) <is_suitable_msymbol>: New member
958 2019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
960 * mi/mi-cmds.c (mi_cmds): Add -symbol-info-module-functions and
961 -symbol-info-module-variables entries.
962 * mi/mi-cmds.h (mi_cmd_symbol_info_module_functions): Declare.
963 (mi_cmd_symbol_info_module_variables): Declare.
964 * mi/mi-symbol-cmds.c
965 (module_symbol_search_iterator): New typedef.
966 (output_module_symbols_in_single_module_and_file): New function.
967 (output_module_symbols_in_single_module): New function.
968 (mi_info_module_functions_or_variables): New function.
969 (mi_cmd_symbol_info_module_functions): New function.
970 (mi_cmd_symbol_info_module_variables): New function.
971 * NEWS: Mention new MI command.
973 2019-12-03 Christian Biesinger <cbiesinger@google.com>
975 * bcache.c (hash): Remove.
976 (hash_continue): Remove.
977 * bcache.h (hash): Remove.
978 (hash_continue): Remove.
979 (struct bcache) <ctor>: Update.
980 * psymtab.c (psymbol_hash): Update.
981 * stabsread.c (hashname): Update.
982 * utils.h (fast_hash): Add an argument for a start value,
985 2019-12-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
986 * symtab.c (symbol_cache_clear_slot): Move close to cleared type.
987 (destroy_block_symbol_cache): New function.
988 (symbol_cache:~symbol_cache) Call destroy_block_symbol_cache.
989 (resize_symbol_cache): Likewise.
991 2019-12-02 Tom Tromey <tom@tromey.com>
993 * unittests/tui-selftests.c (run_tests): Make conditional.
994 (_initialize_tui_selftest): Make conditional.
996 2019-12-02 Christian Biesinger <cbiesinger@google.com>
998 * aix-thread.c (debug_aix_thread): Change type to bool.
1000 2019-12-02 Luis Machado <luis.machado@linaro.org>
1002 * infrun.c (follow_fork_inferior): Remove outdated FIXME comment.
1004 2019-12-01 Andrew Burgess <andrew.burgess@embecosm.com>
1006 * dwarf2read.c (read_tag_string_type): Read the fields required to
1007 make a dynamic string, and possibly create a dynamic range for the
1009 (attr_to_dynamic_prop): Setup is_reference based on the type of
1010 attribute being processed.
1011 * gdbtypes.c (is_dynamic_type_internal): Handle TYPE_CODE_STRING.
1012 (resolve_dynamic_array): Rename to...
1013 (resolve_dynamic_array_or_string): ...this, update header comment,
1014 and accept TYPE_CODE_STRING.
1015 (resolve_dynamic_type_internal): Handle TYPE_CODE_STRING.
1017 2019-12-01 Andrew Burgess <andrew.burgess@embecosm.com>
1019 * dwarf2read.c (dwarf2_per_cu_int_type): New function, takes most
1020 of its implementation from...
1021 (dwarf2_per_cu_addr_sized_int_type): ...here, which now just calls
1024 2019-12-01 Andrew Burgess <andrew.burgess@embecosm.com>
1026 * dwarf2read.c (read_subrange_type): Read bit and byte stride and
1027 create a range with stride where appropriate.
1028 * f-valprint.c: Include 'gdbarch.h'.
1029 (f77_print_array_1): Take the stride into account when walking the
1030 array. Also convert the stride into addressable units.
1031 * gdbtypes.c (create_range_type): Initialise the stride to
1033 (create_range_type_with_stride): New function, initialise the
1034 range as normal, and then setup the stride.
1035 (has_static_range): Include the stride here. Also change the
1036 return type to bool.
1037 (create_array_type_with_stride): Consider the range stride if the
1038 array isn't given its own stride.
1039 (resolve_dynamic_range): Resolve the stride if needed.
1040 * gdbtypes.h (struct range_bounds) <stride>: New member variable.
1041 (struct range_bounds) <flag_is_byte_stride>: New member variable.
1042 (TYPE_BIT_STRIDE): Define.
1043 (TYPE_ARRAY_BIT_STRIDE): Define.
1044 (create_range_type_with_stride): Declare.
1045 * valarith.c (value_subscripted_rvalue): Take range stride into
1046 account when walking the array.
1048 2019-12-01 Tom Tromey <tom@tromey.com>
1050 * tui/tui-win.c (tui_all_windows_info): Treat inactive TUI
1053 2019-12-01 Tom Tromey <tom@tromey.com>
1055 * tui/tui-winsource.c (tui_copy_source_line): Don't advance past
1057 * unittests/tui-selftests.c: New file.
1058 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add tui-selftests.c.
1060 2019-12-01 Tom Tromey <tom@tromey.com>
1062 * tui/tui.c (tui_enable): Call tui_update_variables earlier.
1064 2019-12-01 Tom Tromey <tom@tromey.com>
1066 * NEWS: Document new settings.
1067 * tui/tui-wingeneral.c (box_win): Apply appropriate border style.
1068 * tui/tui-win.c (_initialize_tui_win): Add border style
1070 * tui/tui-io.h (tui_apply_style): Declare.
1071 * tui/tui-io.c (tui_apply_style): Rename from apply_style. No
1073 (apply_ansi_escape, tui_set_reverse_mode): Update.
1074 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
1075 Add "skip_intensity" parameter.
1076 <changed>: New member.
1077 <do_set_value>: Declare.
1078 (tui_border_style, tui_active_border_style): Declare.
1079 * cli/cli-style.c (tui_border_style, tui_active_border_style): New
1081 (cli_style_option): Initialize "changed".
1082 (cli_style_option::do_set_value): New function.
1083 (cli_style_option::add_setshow_commands): Add "skip_intensity"
1085 (STYLE_ADD_SETSHOW_COMMANDS): Add "SKIP" parameter.
1086 (_initialize_cli_style): Update. Create TUI border style
1089 2019-12-01 Tom Tromey <tom@tromey.com>
1091 * tui/tui-winsource.h (tui_copy_source_line): Add "ndigits"
1093 * tui/tui-winsource.c (tui_copy_source_line): Add "ndigits"
1095 * tui/tui-win.h (compact_source): Declare.
1096 * tui/tui-win.c (compact_source): New global.
1097 (tui_set_compact_source, tui_show_compact_source): New functions.
1098 (_initialize_tui_win): Add "compact-source" setting.
1099 * tui/tui-source.c (tui_source_window::set_contents): Handle
1100 compact_source setting.
1101 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
1102 * NEWS: Document new setting.
1104 2019-11-30 Tom Tromey <tom@tromey.com>
1106 * dwarf2read.c (dwarf2_add_field): Include field offset when
1107 computing variant part length.
1109 2019-11-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1110 * NEWS: Mention define-prefix. Tell that command names can now
1111 contain a . character.
1113 2019-11-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1115 * command.h (valid_cmd_char_p): Declare.
1116 * cli/cli-decode.c (valid_cmd_char_p): New function factorizing
1117 the check of valid command char.
1118 (find_command_name_length, valid_user_defined_cmd_name_p): Use
1120 * cli/cli-script.c (validate_comname): Likewise.
1121 * completer.c (gdb_completer_command_word_break_characters):
1122 Do not remove . from the word break char, update comments.
1123 (complete_line_internal_1): Use valid_cmd_char_p.
1124 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
1125 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
1127 2019-11-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1129 * cli/cli-script.c (do_define_command): Ensure a redefined
1130 prefix command is kept as a prefix command.
1131 (define_prefix_command): New function.
1132 (show_user_1): Report user defined prefixes.
1133 (_initialize_cli_script): Create the new 'define-prefix' command.
1134 Add completers for 'define' and 'document'.
1135 * top.c (execute_command): If command is a user-defined prefix only
1136 command, report the list of commands for this prefix command.
1138 2019-11-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1140 * valops.c (find_oload_champ): Improve debug output.
1142 2019-11-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1144 * valops.c (find_oload_champ): Print part of debug messages
1145 before the badness vector is std::move'd.
1147 2019-11-28 Tom Tromey <tom@tromey.com>
1149 * value.c (creal_internal_fn): Fix comment.
1151 2019-11-28 Tom Tromey <tom@tromey.com>
1153 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count,
1154 flag_bound_evaluated>: Now unsigned.
1156 2019-11-28 Tom Tromey <tom@tromey.com>
1158 * guile/guile-internal.h (vlscm_scm_from_value_unsafe): Don't
1161 2019-11-28 Mihails Strasuns <mihails.strasuns@intel.com>
1163 * jit.c (jit_bfd_try_read_symtab): Fix printed function name in the
1165 * jit.c (jit_unregister_code): Add debug print to match
1166 `jit_register_code`.
1168 2019-11-27 Christian Biesinger <cbiesinger@google.com>
1170 * NEWS: Mention the new multithreaded symbol loading.
1172 2019-11-27 Christian Biesinger <cbiesinger@google.com>
1174 * maint.c (n_worker_threads): Default to 0.
1175 (worker_threads_disabled): New function.
1176 * maint.h (worker_threads_disabled): New function.
1177 * minsyms.c (minimal_symbol_reader::record_full): Call symbol_set_names
1178 here if worker_threads_disabled () is true.
1179 (minimal_symbol_reader::install): Skip all threading if
1180 worker_threads_disabled () is true.
1182 2019-11-27 Christian Biesinger <cbiesinger@google.com>
1184 * minsyms.c (add_minsym_to_hash_table): Use a previously computed
1185 hash code if possible.
1186 (add_minsym_to_demangled_hash_table): Likewise.
1187 (minimal_symbol_reader::install): Compute the hash codes for msymbol
1188 on the background thread.
1189 * symtab.h (struct minimal_symbol) <hash_value, demangled_hash_value>:
1192 2019-11-27 Christian Biesinger <cbiesinger@google.com>
1194 * minsyms.c (minimal_symbol_reader::install): Also compute the hash
1195 of the mangled name on the background thread.
1196 * symtab.c (symbol_set_names): Allow passing in the hash of the
1198 * symtab.h (symbol_set_names): Likewise.
1200 2019-11-27 Kevin Buettner <kevinb@redhat.com>
1202 * dwarf2read.c (inherit_abstract_dies): Ensure that delayed
1203 physnames are computed for inherited DIEs.
1205 2019-11-27 Tom Tromey <tromey@adacore.com>
1207 * dwarf2read.h (struct dwarf2_per_objfile): Remove unnecessary
1209 * cp-support.c: Remove unnecessary backslashes.
1211 2019-11-27 Christian Biesinger <cbiesinger@google.com>
1213 * ada-exp.y (write_ambiguous_var): Replace SYMBOL_SET_LINKAGE_NAME
1214 with sym->set_linkage_name.
1215 * coffread.c (coff_read_enum_type): Likewise.
1216 * mdebugread.c (parse_symbol): Likewise.
1217 * stabsread.c (patch_block_stabs): Likewise.
1218 (define_symbol): Likewise.
1219 (read_enum_type): Likewise.
1220 (common_block_end): Likewise.
1221 * symtab.h (struct general_symbol_info) <set_linkage_name>: New
1223 (SYMBOL_SET_LINKAGE_NAME): Remove.
1224 * xcoffread.c (process_xcoff_symbol): Replace SYMBOL_SET_LINKAGE_NAME
1225 with sym->set_linkage_name.
1227 2019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
1229 * mi/mi-cmds.c (mi_cmds): Add 'symbol-info-modules' entry.
1230 * mi/mi-cmds.h (mi_cmd_symbol_info_modules): Declare.
1231 * mi/mi-symbol-cmds.c (mi_cmd_symbol_info_modules): New function.
1232 * NEWS: Mention new MI command.
1234 2019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
1236 * mi/mi-cmds.c (mi_cmds): Add '-symbol-info-functions',
1237 '-symbol-info-types', and '-symbol-info-variables'.
1238 * mi/mi-cmds.h (mi_cmd_symbol_info_functions): Declare.
1239 (mi_cmd_symbol_info_types): Declare.
1240 (mi_cmd_symbol_info_variables): Declare.
1241 * mi/mi-symbol-cmds.c: Add 'source.h' and 'mi-getopt.h' includes.
1242 (output_debug_symbol): New function.
1243 (output_nondebug_symbol): New function.
1244 (mi_symbol_info): New function.
1245 (mi_info_functions_or_variables): New function.
1246 (mi_cmd_symbol_info_functions): New function.
1247 (mi_cmd_symbol_info_types): New function.
1248 (mi_cmd_symbol_info_variables): New function.
1249 * NEWS: Mention new commands.
1251 2019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
1253 * symtab.c (symbol_to_info_string): New function, most content
1254 moved from print_symbol_info, but updated to return a std::string.
1255 (print_symbol_info): Update to use symbol_to_info_string and print
1257 * symtab.h (symbol_to_info_string): Declare new function.
1259 2019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
1261 * python/python.c (gdbpy_rbreak): Convert to using
1262 global_symbol_searcher.
1263 * symtab.c (file_matches): Convert return type to bool, change
1264 file list to std::vector, update header comment.
1265 (search_symbols): Rename to...
1266 (global_symbol_searcher::search): ...this and update now its
1267 a member function of global_symbol_searcher. Take account of the
1268 changes to file_matches.
1269 (symtab_symbol_info): Convert to using global_symbol_searcher.
1270 (rbreak_command): Likewise.
1271 (search_module_symbols): Likewise.
1272 * symtab.h (enum symbol_search): Update comment.
1273 (search_symbols): Remove declaration.
1274 (class global_symbol_searcher): New class.
1276 2019-11-26 Tom Tromey <tromey@adacore.com>
1278 * cp-support.c (_initialize_cp_support): Conditionally initialize
1279 gdb_demangle_attempt_core_dump.
1281 2019-11-26 Tom Tromey <tom@tromey.com>
1283 * python/py-function.c (fnpy_init): Update.
1284 * value.h (add_internal_function): Adjust declaration.
1285 * value.c (function_destroyer): Remove.
1286 (do_add_internal_function): Don't set destroyer or copy name.
1287 (add_internal_function): Take unique_xmalloc_ptr<char> for name.
1289 * python/py-cmd.c (cmdpy_destroyer): Don't free "name".
1290 (cmdpy_init): Set name_allocated.
1291 * cli/cli-decode.h (struct cmd_list_element) <name_allocated>: New
1293 (~cmd_list_element): Free "name" if needed.
1295 2019-11-26 Tom Tromey <tom@tromey.com>
1297 * value.h (add_internal_function): Add new overload. Move
1298 documentation from value.h.
1299 * value.c (do_add_internal_function): New function.
1300 (add_internal_function): Use it. Add new overload.
1301 (function_destroyer): Don't free doc.
1302 * python/py-function.c (fnpy_init): Update.
1304 2019-11-26 Tom Tromey <tom@tromey.com>
1306 * python/py-cmd.c (cmdpy_destroyer): Don't free "doc".
1307 (cmdpy_init): Set "doc_allocated".
1309 2019-11-26 Tom Tromey <tom@tromey.com>
1311 * gdbsupport/thread-pool.c (thread_pool::set_thread_count): Set
1312 name of worker thread.
1313 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for
1315 * configure, config.in: Rebuild.
1317 2019-11-26 Tom Tromey <tom@tromey.com>
1319 * python/python.c (class gdbpy_gil): New.
1320 (struct gdbpy_event): Add constructor, destructor, operator().
1321 (gdbpy_post_event): Use run_on_main_thread.
1322 (gdbpy_initialize_events): Remove.
1323 (do_start_initialization): Update.
1325 2019-11-26 Tom Tromey <tom@tromey.com>
1328 * maint.c (_initialize_maint_cmds): Add "worker-threads" maint
1329 commands. Call update_thread_pool_size.
1330 (update_thread_pool_size, maintenance_set_worker_threads): New
1332 (n_worker_threads): New global.
1334 2019-11-26 Christian Biesinger <cbiesinger@google.com>
1335 Tom Tromey <tom@tromey.com>
1337 * minsyms.c (minimal_symbol_reader::install): Use
1339 * gdbsupport/parallel-for.h: New file.
1340 * Makefile.in (HFILES_NO_SRCDIR): Add gdbsupport/parallel-for.h.
1342 2019-11-26 Christian Biesinger <cbiesinger@google.com>
1343 Tom Tromey <tom@tromey.com>
1345 * gdbsupport/thread-pool.h: New file.
1346 * gdbsupport/thread-pool.c: New file.
1347 * Makefile.in (COMMON_SFILES): Add thread-pool.c.
1348 (HFILES_NO_SRCDIR): Add thread-pool.h.
1350 2019-11-26 Tom Tromey <tom@tromey.com>
1352 * event-top.h (thread_local_segv_handler): Declare.
1353 * event-top.c (thread_local_segv_handler): New global.
1354 (install_handle_sigsegv, handle_sigsegv): New functions.
1355 (async_init_signals): Install SIGSEGV handler.
1356 * cp-support.c (gdb_demangle_jmp_buf): Change type. Now
1358 (report_failed_demangle): New function.
1359 (gdb_demangle): Make core_dump_allowed atomic. Remove signal
1360 handler-setting code, instead use segv_handler. Run warning code
1363 2019-11-26 Tom Tromey <tom@tromey.com>
1365 * run-on-main-thread.c: New file.
1366 * run-on-main-thread.h: New file.
1367 * unittests/main-thread-selftests.c: New file.
1368 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1369 main-thread-selftests.c.
1370 (HFILES_NO_SRCDIR): Add run-on-main-thread.h.
1371 (COMMON_SFILES): Add run-on-main-thread.c.
1373 2019-11-26 Tom Tromey <tom@tromey.com>
1375 * main.c (setup_alternate_signal_stack): Remove.
1376 (captured_main_1): Use gdb::alternate_signal_stack.
1377 * gdbsupport/alt-stack.h: New file.
1379 2019-11-26 Tom Tromey <tom@tromey.com>
1381 * gdbsupport/signals-state-save-restore.c (original_signal_mask):
1383 (save_original_signals_state, restore_original_signals_state): Use
1385 * linux-nat.c (block_child_signals, restore_child_signals_mask)
1386 (_initialize_linux_nat): Use gdb_sigmask.
1387 * guile/guile.c (_initialize_guile): Use block_signals.
1388 * Makefile.in (HFILES_NO_SRCDIR): Add gdb-sigmask.h.
1389 * gdbsupport/gdb-sigmask.h: New file.
1390 * event-top.c (async_sigtstp_handler): Use gdb_sigmask.
1391 * cp-support.c (gdb_demangle): Use gdb_sigmask.
1392 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for
1394 * configure, config.in: Rebuild.
1395 * gdbsupport/block-signals.h: New file.
1397 2019-11-26 Tom Tromey <tom@tromey.com>
1399 * acinclude.m4: Include ax_pthread.m4.
1400 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
1401 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
1402 (CLIBS): Use PTHREAD_LIBS.
1403 (aclocal_m4_deps): Add ax_pthread.m4.
1404 * config.in, configure: Rebuild.
1405 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for std::thread.
1407 2019-11-26 Tom Tromey <tom@tromey.com>
1409 * symtab.h (struct minimal_symbol) <name_set>: New member.
1410 * minsyms.c (minimal_symbol_reader::record_full): Copy name.
1411 Don't call symbol_set_names.
1412 (minimal_symbol_reader::install): Call symbol_set_names.
1414 2019-11-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1416 * python/python.c (gdbpy_enter::~gdbpy_enter): Release GIL after
1417 restore_active_ext_lang, as GIL is needed for (indirectly)
1418 called PyOS_InterruptOccurred.
1420 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
1422 * sparc-nat.c (sparc_xfer_wcookie): Sync declaration with
1425 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
1427 * remote-sim.c (simulator_command): Make static, remove
1430 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
1432 * unittests/array-view-selftests.c (check_ptr_size_ctor2): Make
1434 * unittests/basic_string_view/capacity/1.cc (test01): Likewise.
1435 * unittests/basic_string_view/cons/char/1.cc (test01): Likewise.
1437 * unittests/basic_string_view/cons/char/2.cc (test03): Likewise.
1439 * unittests/basic_string_view/cons/char/3.cc (test05): Likewise.
1441 * unittests/basic_string_view/element_access/char/1.cc (test01):
1444 * unittests/basic_string_view/element_access/char/empty.cc (main):
1446 * unittests/basic_string_view/element_access/char/front_back.cc
1449 * unittests/basic_string_view/inserters/char/2.cc (test05):
1452 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc
1455 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc
1458 * unittests/basic_string_view/modifiers/swap/char/1.cc (test01):
1460 * unittests/basic_string_view/operations/compare/char/1.cc
1463 * unittests/basic_string_view/operations/compare/char/13650.cc
1465 * unittests/basic_string_view/operations/copy/char/1.cc (test01):
1468 * unittests/basic_string_view/operations/data/char/1.cc (test01):
1471 * unittests/basic_string_view/operations/find/char/1.cc (test01):
1474 * unittests/basic_string_view/operations/find/char/2.cc (test02):
1477 * unittests/basic_string_view/operations/find/char/3.cc (test03):
1480 * unittests/basic_string_view/operations/find/char/4.cc (main):
1482 * unittests/basic_string_view/operations/rfind/char/1.cc (test01):
1485 * unittests/basic_string_view/operations/rfind/char/2.cc (test02):
1488 * unittests/basic_string_view/operations/rfind/char/3.cc (test03):
1491 * unittests/basic_string_view/operations/substr/char/1.cc
1494 * unittests/basic_string_view/operators/char/2.cc (main):
1496 * unittests/optional/assignment/1.cc (test): Likewise.
1497 * unittests/optional/assignment/2.cc (test): Likewise.
1498 * unittests/optional/assignment/3.cc (test): Likewise.
1499 * unittests/optional/assignment/4.cc (test): Likewise.
1500 * unittests/optional/assignment/5.cc (test): Likewise.
1501 * unittests/optional/assignment/6.cc (test): Likewise.
1502 * unittests/optional/assignment/7.cc (test): Likewise.
1503 * unittests/optional/cons/copy.cc (test): Likewise.
1504 * unittests/optional/cons/default.cc (test): Likewise.
1505 * unittests/optional/cons/move.cc (test): Likewise.
1506 * unittests/optional/cons/value.cc (test): Likewise.
1507 * unittests/optional/in_place.cc (test): Likewise.
1508 * unittests/optional/observers/1.cc (test): Likewise.
1509 * unittests/optional/observers/2.cc (test): Likewise.
1511 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
1513 * tui-win.h (tui_set_var_cmd): Remove.
1514 * tui-win.c (tui_set_var_cmd): Make static.
1516 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
1518 * breakpoint.h (hbreak_command_wrapper, thbreak_command_wrapper,
1519 rbreak_command_wrapper): Remove.
1520 * symtab.c (rbreak_command_wrapper): Remove.
1522 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
1524 * inferior.h (info_terminal_command): Remove declaration.
1525 * inflow.c (info_terminal_command): Make static.
1527 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
1529 * inferior.c (exit_inferior_silent): Remove.
1531 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
1533 * dictionary.c (dict_empty, mdict_empty): Remove.
1534 * dictionary.c (mdict_empty): Remove.
1536 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
1538 * arc-tdep.c (arc_insn_get_memory_base_reg): Make static.
1539 (arc_insn_get_memory_offset): Likewise.
1540 (arc_insn_dump): Likewise.
1541 * cp-support.c (test_cp_symbol_name_matches): Likewise.
1542 * csky-linux-tdep.c (csky_supply_fregset): Likewise.
1543 * dictionary.c (dict_iterator_next): Likewise.
1544 (dict_iter_match_first): Likewise.
1545 (dict_iter_match_next): Likewise.
1546 * f-lang.c (evaluate_subexp_f): Likewise.
1547 * hppa-tdep.c (hppa_read_pc): Likewise.
1548 * i386-tdep.c (i386_floatformat_for_type): Likewise.
1549 * parse.c (write_exp_elt_msym): Likewise.
1550 * ppc-linux-tdep.c (ppc_floatformat_for_type): Likewise.
1551 * remote.c (remote_packet_size): Likewise.
1552 (remote_notif_stop_parse): Likewise.
1553 * rs6000-aix-tdep.c (aix_sighandle_frame_sniffer): Likewise.
1554 * s12z-tdep.c (s12z_disassemble_info): Likewise.
1555 * source.c (prepare_path_for_appending): Likewise.
1556 * sparc64-linux-tdep.c
1557 (sparc64_linux_handle_segmentation_fault); Likewise.
1558 * stack.c (frame_selection_by_function_completer): Likewise.
1560 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
1562 * completer.c (set_gdb_completion_word_break_characters):
1565 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
1567 * dwarf-index-write.c: Include dwarf-index-write.h.
1568 * mi/mi-interp.c: Include mi/mi-interp.h.
1570 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
1572 * aarch32-tdep.c: Include aarch32-tdep.h.
1573 * aarch32-tdep.h: Forward-declare struct target_desc.
1575 2019-11-26 Christian Biesinger <cbiesinger@google.com>
1577 * linux-nat.c (detach_one_lwp): Call safe_strerror instead of
1579 * nto-procfs.c (nto_procfs_target::create_inferior): Likewise.
1580 * windows-nat.c (windows_nat_target::create_inferior): Likewise.
1582 2019-11-25 Tom de Vries <tdevries@suse.de>
1584 * contrib/words.sh: Add -c option.
1586 2019-11-25 Christian Biesinger <cbiesinger@google.com>
1588 * solib.c (solib_find_1): Change int to bool.
1589 (exec_file_find): Change int to bool.
1590 (solib_find): Change int to bool.
1591 (solib_read_symbols): Change int to bool.
1592 (solib_used): Change int to bool.
1593 (solib_add): Change int to bool.
1594 (info_sharedlibrary_command): Change int to bool.
1595 (solib_contains_address_p): Change int to bool.
1596 (solib_keep_data_in_core): Change int to bool.
1597 (in_solib_dynsym_resolve_code): Change int to bool.
1598 (reload_shared_libraries_1): Change int to bool.
1599 (gdb_sysroot_changed): Change int to bool.
1600 * solib.h (solib_read_symbols): Change int to bool.
1601 (solib_contains_address_p): Change int to bool.
1602 (solib_keep_data_in_core): Change int to bool.
1603 (in_solib_dynsym_resolve_code): Change int to bool.
1604 (libpthread_name_p): Change int to bool.
1606 2019-11-25 Luis Machado <luis.machado@linaro.org>
1608 * NEWS (New Commands): Mention "set debug remote-packet-max-chars".
1609 * remote.c (REMOTE_DEBUG_MAX_CHAR): Remove.
1610 (remote_packet_max_chars): New static global.
1611 (show_remote_packet_max_chars): New function.
1612 (remote_target::putpkt_binary): Adjust to use new
1613 remote_packet_max_chars option.
1614 (remote_target::getpkt_or_notif_sane_1): Likewise.
1615 (_initialize_remote): Register new remote-packet-max-chars option.
1617 2019-11-24 Simon Marchi <simon.marchi@efficios.com>
1619 * m68k-linux-nat.c: Include gdbarch.h.
1621 2019-11-24 Tom Tromey <tom@tromey.com>
1623 * symfile.c (read_symbols): Update.
1624 * psymtab.c (require_partial_symbols): Change type of "verbose" to
1626 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
1627 (psym_lookup_symbol, psym_find_last_source_symtab)
1628 (psym_forget_cached_source_info, psym_print_stats)
1629 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
1630 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
1631 (psym_map_matching_symbols, psym_expand_symtabs_matching)
1632 (psym_find_compunit_symtab_by_address)
1633 (maintenance_print_psymbols, maintenance_info_psymtabs)
1634 (maintenance_check_psymtabs): Update.
1635 * psymtab.h (require_partial_symbols): Change type of "verbose" to
1638 2019-11-22 Tom Tromey <tom@tromey.com>
1640 * observable.h: Update comments.
1642 2019-11-22 Tom Tromey <tromey@adacore.com>
1644 * ada-tasks.c (ada_task_is_alive): Make parameter const.
1645 (print_ada_task_info): Don't try to fetch thread id if task is not
1648 2019-11-22 Christian Biesinger <cbiesinger@google.com>
1650 * ada-exp.y: Update.
1651 * ada-lang.c (sort_choices): Update.
1652 (ada_print_symbol_signature): Update.
1653 (resolve_subexp): Update.
1654 (ada_parse_renaming): Update.
1655 (ada_read_renaming_var_value): Update.
1656 (lesseq_defined_than): Update.
1657 (remove_extra_symbols): Update.
1658 (remove_irrelevant_renamings): Update.
1659 (ada_add_block_symbols): Update.
1660 (ada_collect_symbol_completion_matches): Update.
1661 (ada_is_renaming_symbol): Update.
1662 (aggregate_assign_from_choices): Update.
1663 (ada_evaluate_subexp): Update.
1664 (ada_has_this_exception_support): Update.
1665 (ada_is_non_standard_exception_sym): Update.
1666 (ada_add_exceptions_from_frame): Update.
1667 (ada_add_global_exceptions): Update.
1668 (ada_print_subexp): Update.
1669 * ax-gdb.c (gen_var_ref): Update.
1670 (gen_maybe_namespace_elt): Update.
1671 (gen_expr_for_cast): Update.
1674 * blockframe.c (find_pc_partial_function): Update.
1675 * breakpoint.c (print_breakpoint_location): Update.
1676 (update_static_tracepoint): Update.
1677 * btrace.c (ftrace_print_function_name): Update.
1678 (ftrace_function_switched): Update.
1679 * buildsym.c (find_symbol_in_list): Update.
1681 * c-typeprint.c (c_print_typedef): Update.
1682 (c_type_print_template_args): Update.
1683 * cli/cli-cmds.c (edit_command): Update.
1684 (list_command): Update.
1685 (print_sal_location): Update.
1686 * coffread.c (patch_opaque_types): Update.
1687 (process_coff_symbol): Update.
1688 (coff_read_enum_type): Update.
1689 * compile/compile-c-symbols.c (c_symbol_substitution_name): Update.
1690 (convert_one_symbol): Update.
1691 (hash_symname): Update.
1692 (eq_symname): Update.
1693 * compile/compile-cplus-symbols.c (convert_one_symbol): Update.
1694 * compile/compile-cplus-types.c (debug_print_scope): Update.
1695 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
1696 * compile/compile-object-load.c (get_out_value_type): Update.
1697 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
1698 (search_symbol_list): Update.
1699 (cp_lookup_symbol_imports_or_template): Update.
1700 * cp-support.c (overload_list_add_symbol): Update.
1701 * ctfread.c (psymtab_to_symtab): Update.
1702 * dbxread.c (cp_set_block_scope): Update.
1703 * dictionary.c (iter_match_first_hashed): Update.
1704 (iter_match_next_hashed): Update.
1705 (insert_symbol_hashed): Update.
1706 (iter_match_next_linear): Update.
1707 * dictionary.h: Update.
1708 * dwarf2loc.c (func_get_frame_base_dwarf_block): Update.
1709 (locexpr_describe_location_piece): Update.
1710 (locexpr_describe_location_1): Update.
1711 (locexpr_generate_c_location): Update.
1712 (loclist_describe_location): Update.
1713 (loclist_generate_c_location): Update.
1714 * dwarf2read.c (dw2_debug_names_lookup_symbol): Update.
1715 (read_func_scope): Update.
1716 (process_enumeration_scope): Update.
1717 (new_symbol): Update.
1718 (dwarf2_const_value): Update.
1719 (dwarf2_symbol_mark_computed): Update.
1720 * eval.c (evaluate_funcall): Update.
1721 (evaluate_subexp_standard): Update.
1722 * expprint.c (print_subexp_standard): Update.
1723 (dump_subexp_body_standard): Update.
1724 * f-valprint.c (info_common_command_for_block): Update.
1725 * findvar.c (get_hosting_frame): Update.
1726 (default_read_var_value): Update.
1727 * go-lang.c (go_symbol_package_name): Update.
1728 * guile/scm-block.c (bkscm_print_block_smob): Update.
1729 * guile/scm-symbol.c (syscm_print_symbol_smob): Update.
1730 (gdbscm_symbol_name): Update.
1731 (gdbscm_symbol_linkage_name): Update.
1732 (gdbscm_symbol_print_name): Update.
1733 * infcall.c (get_function_name): Update.
1734 * infcmd.c (jump_command): Update.
1735 (finish_command): Update.
1736 * infrun.c (insert_exception_resume_breakpoint): Update.
1737 * linespec.c (canonicalize_linespec): Update.
1738 (create_sals_line_offset): Update.
1739 (convert_linespec_to_sals): Update.
1740 (complete_label): Update.
1741 (find_label_symbols_in_block): Update.
1742 * m2-typeprint.c (m2_print_typedef): Update.
1743 * mdebugread.c (mdebug_reg_to_regnum): Update.
1744 (parse_symbol): Update.
1745 (mylookup_symbol): Update.
1746 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
1747 (list_args_or_locals): Update.
1748 * objc-lang.c (compare_selectors): Update.
1749 (info_selectors_command): Update.
1750 (compare_classes): Update.
1751 (info_classes_command): Update.
1752 (find_imps): Update.
1753 * p-typeprint.c (pascal_print_typedef): Update.
1754 * printcmd.c (build_address_symbolic): Update.
1755 (info_address_command): Update.
1756 (print_variable_and_value): Update.
1757 * python/py-framefilter.c (extract_sym): Update.
1758 (py_print_single_arg): Update.
1759 * python/py-symbol.c (sympy_str): Update.
1760 (sympy_get_name): Update.
1761 (sympy_get_linkage_name): Update.
1762 * python/python.c (gdbpy_rbreak): Update.
1763 * record-btrace.c (btrace_get_bfun_name): Update.
1764 (btrace_call_history): Update.
1765 * rust-lang.c (rust_print_typedef): Update.
1766 * solib-frv.c (frv_fdpic_find_canonical_descriptor): Update.
1767 * stabsread.c (stab_reg_to_regnum): Update.
1768 (define_symbol): Update.
1769 (read_enum_type): Update.
1770 (common_block_end): Update.
1771 (cleanup_undefined_types_1): Update.
1772 (scan_file_globals): Update.
1773 * stack.c (print_frame_arg): Update.
1774 (print_frame_args): Update.
1775 (find_frame_funname): Update.
1776 (info_frame_command_core): Update.
1777 (iterate_over_block_locals): Update.
1778 (print_block_frame_labels): Update.
1779 (do_print_variable_and_value): Update.
1780 (iterate_over_block_arg_vars): Update.
1781 (return_command): Update.
1782 * symmisc.c (dump_symtab_1): Update.
1783 (print_symbol): Update.
1784 * symtab.c (eq_symbol_entry): Update.
1785 (symbol_cache_dump): Update.
1786 (lookup_language_this): Update.
1787 (find_pc_sect_line): Update.
1788 (skip_prologue_sal): Update.
1789 (symbol_search::compare_search_syms): Update.
1790 (treg_matches_sym_type_name): Update.
1791 (search_symbols): Update.
1792 (print_symbol_info): Update.
1793 (rbreak_command): Update.
1794 (completion_list_add_symbol): Update.
1795 (find_gnu_ifunc): Update.
1796 (get_symbol_address): Update.
1797 (search_module_symbols): Update.
1798 (info_module_subcommand): Update.
1799 * symtab.h (SYMBOL_NATURAL_NAME): Remove.
1800 (SYMBOL_LINKAGE_NAME): Remove.
1801 (SYMBOL_DEMANGLED_NAME): Remove.
1802 (SYMBOL_PRINT_NAME): Remove.
1803 (SYMBOL_SEARCH_NAME): Remove.
1804 * tracepoint.c (set_traceframe_context): Update.
1805 (validate_actionline): Update.
1806 (collection_list::collect_symbol): Update.
1807 (encode_actions_1): Update.
1808 (info_scope_command): Update.
1809 (print_one_static_tracepoint_marker): Update.
1810 * typeprint.c (typedef_hash_table::add_template_parameters): Update.
1811 * valops.c (address_of_variable): Update.
1812 (find_overload_match): Update.
1813 (find_oload_champ): Update.
1815 2019-11-22 Christian Biesinger <cbiesinger@google.com>
1817 * ada-lang.c (ada_lookup_simple_minsym): Update.
1818 (ada_collect_symbol_completion_matches): Update.
1819 * ada-tasks.c (read_atcb): Update.
1820 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
1821 (amd64_windows_skip_trampoline_code): Update.
1822 * arm-tdep.c (skip_prologue_function): Update.
1823 (arm_skip_stack_protector): Update.
1824 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
1825 (arm_wince_skip_main_prologue): Update.
1826 * ax-gdb.c (gen_expr): Update.
1827 * block.c (call_site_for_pc): Update.
1828 * blockframe.c (find_pc_partial_function): Update.
1829 * breakpoint.c (set_breakpoint_location_function): Update.
1830 * btrace.c (ftrace_print_function_name): Update.
1831 (ftrace_function_switched): Update.
1832 * c-valprint.c (print_unpacked_pointer): Update.
1833 * coffread.c (coff_symfile_read): Update.
1834 * compile/compile-c-symbols.c (convert_symbol_bmsym): Update.
1835 * compile/compile-cplus-symbols.c (convert_symbol_bmsym): Update.
1836 * dwarf-index-write.c (write_psymbols): Update.
1837 * dwarf2loc.c (call_site_to_target_addr): Update.
1838 (func_verify_no_selftailcall): Update.
1839 (tailcall_dump): Update.
1840 (call_site_find_chain_1): Update.
1841 (dwarf_expr_reg_to_entry_parameter): Update.
1842 * elfread.c (elf_gnu_ifunc_record_cache): Update.
1843 * eval.c (evaluate_funcall): Update.
1844 (evaluate_subexp_standard): Update.
1845 (evaluate_subexp_for_sizeof): Update.
1846 * expprint.c (print_subexp_standard): Update.
1847 (dump_subexp_body_standard): Update.
1848 * frame.c (get_prev_frame_always_1): Update.
1849 * frv-tdep.c (frv_skip_main_prologue): Update.
1850 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
1851 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
1852 (gnuv3_get_typename_from_type_info): Update.
1853 (gnuv3_skip_trampoline): Update.
1854 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
1855 * i386-tdep.c (i386_skip_main_prologue): Update.
1856 (i386_pe_skip_trampoline_code): Update.
1857 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
1858 * infcall.c (get_function_name): Update.
1859 * linespec.c (minsym_found): Update.
1860 * linux-fork.c (info_checkpoints_command): Update.
1861 * m32c-tdep.c (m32c_m16c_address_to_pointer): Update.
1862 (m32c_m16c_pointer_to_address): Update.
1863 * maint.c (maintenance_translate_address): Update.
1864 * minsyms.c (add_minsym_to_hash_table): Update.
1865 (add_minsym_to_demangled_hash_table): Update.
1866 (lookup_minimal_symbol_mangled): Update.
1867 (lookup_minimal_symbol_demangled): Update.
1868 (lookup_minimal_symbol_linkage): Update.
1869 (lookup_minimal_symbol_text): Update.
1870 (lookup_minimal_symbol_by_pc_name): Update.
1871 (minimal_symbol_is_less_than): Update.
1872 (compact_minimal_symbols): Update.
1873 (build_minimal_symbol_hash_tables): Update.
1874 (find_solib_trampoline_target): Update.
1875 * mips-tdep.c (mips_stub_frame_sniffer): Update.
1876 (mips_skip_pic_trampoline_code): Update.
1877 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
1878 * objc-lang.c (info_selectors_command): Update.
1879 (info_classes_command): Update.
1880 (find_methods): Update.
1881 (find_imps): Update.
1882 * p-valprint.c (pascal_val_print): Update.
1883 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Update.
1884 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
1885 * printcmd.c (build_address_symbolic): Update.
1886 (info_symbol_command): Update.
1887 * psymtab.c (psymbol_name_matches): Update.
1888 (match_partial_symbol): Update.
1889 (lookup_partial_symbol): Update.
1890 (print_partial_symbols): Update.
1891 (sort_pst_symbols): Update.
1892 (maintenance_check_psymtabs): Update.
1893 * python/py-framefilter.c (py_print_frame): Update.
1894 * python/python.c (gdbpy_rbreak): Update.
1895 * record-btrace.c (btrace_get_bfun_name): Update.
1896 (btrace_call_history): Update.
1897 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
1898 (rs6000_skip_trampoline_code): Update.
1899 * sol-thread.c (info_cb): Update.
1900 * stabsread.c (scan_file_globals): Update.
1901 * stack.c (find_frame_funname): Update.
1902 (info_frame_command_core): Update.
1903 * symmisc.c (dump_msymbols): Update.
1904 * symtab.c (symbol_natural_name): Rename to..,
1905 (general_symbol_info::natural_name): ...this.
1906 (symbol_demangled_name): Rename to...
1907 (general_symbol_info::demangled_name): ...this.
1908 (symbol_search_name): Rename to...
1909 (general_symbol_info::search_name): ...this.
1910 (symbol_matches_search_name): Update.
1911 (find_pc_sect_line): Update.
1912 (skip_prologue_sal): Update.
1913 (search_symbols): Update.
1914 (print_msymbol_info): Update.
1915 (rbreak_command): Update.
1916 (completion_list_add_msymbol): Update.
1917 (completion_list_objc_symbol): Update.
1918 (get_msymbol_address): Update.
1919 * symtab.h (struct general_symbol_info): Add member functions
1920 natural_name (), linkage_name (), print_name (), demangled_name (),
1922 (SYMBOL_NATURAL_NAME): Update.
1923 (symbol_natural_name): Move to a member function on general_symbol_info.
1924 (SYMBOL_DEMANGLED_NAME): Update.
1925 (symbol_demangled_name): Move to a member function on
1926 general_symbol_info.
1927 (SYMBOL_SEARCH_NAME): Update.
1928 (symbol_search_name): Move to a member function on general_symbol_info.
1929 (MSYMBOL_NATURAL_NAME): Remove.
1930 (MSYMBOL_LINKAGE_NAME): Remove.
1931 (MSYMBOL_PRINT_NAME): Remove.
1932 (MSYMBOL_DEMANGLED_NAME): Remove.
1933 (MSYMBOL_SEARCH_NAME): Remove.
1934 * x86-tdep.c (x86_in_indirect_branch_thunk): Update.
1936 2019-11-22 Christian Biesinger <cbiesinger@google.com>
1938 * symtab.c (create_demangled_names_hash): Use per_bfd->
1939 minimal_symbol_count for computing the initial size, if greater
1940 than our default size.
1942 2019-11-22 Tom de Vries <tdevries@suse.de>
1944 * contrib/words.sh: Improve words extraction.
1946 2019-11-22 Tom de Vries <tdevries@suse.de>
1948 * contrib/words.sh: Combine sed invocations.
1950 2019-11-21 Christian Biesinger <cbiesinger@google.com>
1952 * Makefile.in: Update.
1953 * demangle.c: Rename to...
1954 * gdb-demangle.c: ..this.
1955 (is_cplus_marker): Change return type to bool.
1956 (_initialize_demangler): Rename to...
1957 (_initialize_gdb_demangle): ...this.
1958 * gdb-demangle.h (is_cplus_marker): Change return type to bool.
1959 * symtab.h (demangle): Remove declaration; instead include
1962 2019-11-21 Tom Tromey <tromey@adacore.com>
1964 * gdbsupport/format.c (format_pieces): Parse %I64d.
1965 * unittests/format_pieces-selftests.c (test_windows_formats): New
1967 (run_tests): Call it.
1969 2019-11-21 Peeter Joot <peeter.joot@lzlabs.com>
1971 Byte reverse display of variables with DW_END_big, DW_END_little
1972 (DW_AT_endianity) dwarf attributes if different than the native
1974 * ada-lang.c (ada_value_binop):
1975 Use type_byte_order instead of gdbarch_byte_order.
1976 * ada-valprint.c (printstr):
1977 (ada_val_print_string):
1978 * ada-lang.c (value_pointer):
1980 Use type_byte_order instead of gdbarch_byte_order.
1981 * c-lang.c (c_get_string):
1982 Use type_byte_order instead of gdbarch_byte_order.
1983 * c-valprint.c (c_val_print_array):
1984 Use type_byte_order instead of gdbarch_byte_order.
1985 * cp-valprint.c (cp_print_class_member):
1986 Use type_byte_order instead of gdbarch_byte_order.
1987 * dwarf2loc.c (rw_pieced_value):
1988 Use type_byte_order instead of gdbarch_byte_order.
1989 * dwarf2read.c (read_base_type): Handle DW_END_big,
1991 * f-lang.c (f_get_encoding):
1992 Use type_byte_order instead of gdbarch_byte_order.
1993 * findvar.c (default_read_var_value):
1994 Use type_byte_order instead of gdbarch_byte_order.
1995 * gdbtypes.c (check_types_equal):
1996 Require matching TYPE_ENDIANITY_NOT_DEFAULT if set.
1997 (recursive_dump_type): Print TYPE_ENDIANITY_BIG,
1998 and TYPE_ENDIANITY_LITTLE if set.
1999 (type_byte_order): new function.
2000 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): New macro.
2001 (struct main_type) <flag_endianity_not_default>:
2003 (type_byte_order): New function.
2004 * infcmd.c (default_print_one_register_info):
2005 Use type_byte_order instead of gdbarch_byte_order.
2006 * p-lang.c (pascal_printstr):
2007 Use type_byte_order instead of gdbarch_byte_order.
2008 * p-valprint.c (pascal_val_print):
2009 Use type_byte_order instead of gdbarch_byte_order.
2010 * printcmd.c (print_scalar_formatted):
2011 Use type_byte_order instead of gdbarch_byte_order.
2012 * solib-darwin.c (darwin_current_sos):
2013 Use type_byte_order instead of gdbarch_byte_order.
2014 * solib-svr4.c (solib_svr4_r_ldsomap):
2015 Use type_byte_order instead of gdbarch_byte_order.
2016 * stap-probe.c (stap_modify_semaphore):
2017 Use type_byte_order instead of gdbarch_byte_order.
2018 * target-float.c (target_float_same_format_p):
2019 Use type_byte_order instead of gdbarch_byte_order.
2020 * valarith.c (scalar_binop):
2022 Use type_byte_order instead of gdbarch_byte_order.
2023 * valops.c (value_cast):
2024 Use type_byte_order instead of gdbarch_byte_order.
2025 * valprint.c (generic_emit_char):
2028 Use type_byte_order instead of gdbarch_byte_order.
2029 * value.c (unpack_long):
2030 (unpack_bits_as_long):
2031 (unpack_value_bitfield):
2034 (pack_unsigned_long):
2035 Use type_byte_order instead of gdbarch_byte_order.
2036 * findvar.c (unsigned_pointer_to_address):
2037 (signed_pointer_to_address):
2038 (unsigned_address_to_pointer):
2039 (address_to_signed_pointer):
2040 (default_read_var_value):
2041 (default_value_from_register):
2042 Use type_byte_order instead of gdbarch_byte_order.
2043 * gnu-v3-abi.c (gnuv3_make_method_ptr):
2044 Use type_byte_order instead of gdbarch_byte_order.
2045 * riscv-tdep.c (riscv_print_one_register_info):
2046 Use type_byte_order instead of gdbarch_byte_order.
2048 2019-11-21 Simon Marchi <simon.marchi@polymtl.ca>
2050 * top.c (current_ui_gdb_stdout_ptr): Spell out by hand.
2051 (current_ui_gdb_stdin_ptr): Likewise.
2052 (current_ui_gdb_stderr_ptr): Likewise.
2053 (current_ui_gdb_stdlog_ptr): Likewise.
2054 (current_ui_current_uiout_ptr): Likewise.
2055 (gen_ret_current_ui_field_ptr): Remove.
2057 2019-11-21 Tom de Vries <tdevries@suse.de>
2060 * cli/cli-script.c (execute_control_command): Only switch to
2061 INTERP_CONSOLE's ui_out when INTERP_MI is active.
2063 2019-11-19 Tom Tromey <tom@tromey.com>
2065 * tui/tui-win.c (tui_partial_win_by_name): Move from tui-data.c.
2066 Now static. Change type of "name".
2067 (tui_set_win_height_command): Don't copy "arg".
2068 * tui/tui-data.h (tui_partial_win_by_name): Don't declare.
2069 * tui/tui-data.c (tui_partial_win_by_name): Move to tui-win.c.
2071 2019-11-19 Ali Tamur <tamur@google.com>
2073 * dwarf2read.c (dw2_get_file_names_reader): Replace "if (attr)" with
2074 "if (attr != nullptr)".
2075 (dwarf2_find_base_address): Likewise.
2076 (dwarf2_build_include_psymtabs): Likewise.
2077 (read_cutu_die_from_dwo): Likewise.
2078 (read_func_scope): Likewise.
2079 (read_call_site_scope): Likewise.
2080 (dwarf2_get_pc_bounds): Likewise.
2081 (dwarf2_record_block_ranges): Likewise.
2082 (dwarf2_add_field): Likewise.
2083 (dwarf2_add_member_fn): Likewise.
2084 (read_structure_type): Likewise.
2085 (read_enumeration_type): Likewise.
2086 (read_array_type): Likewise.
2087 (read_array_order): Likewise.
2088 (read_set_type): Likewise.
2089 (read_common_block): Likewise.
2090 (read_tag_reference_type): Likewise.
2091 (read_tag_string_type): Likewise.
2092 (read_subroutine_type): Likewise.
2093 (read_base_type): Likewise.
2094 (read_subrange_type): Likewise.
2095 (new_symbol): Likewise.
2096 (prepare_one_comp_unit): Likewise.
2098 2019-11-19 Tom Tromey <tromey@adacore.com>
2100 * windows-nat.c (windows_nat_target::attach): Include GetLastError
2101 result in error when DebugActiveProcess fails.
2103 2019-11-18 Sergio Durigan Junior <sergiodj@redhat.com>
2104 Pedro Alves <palves@redhat.com>
2106 https://bugzilla.redhat.com/show_bug.cgi?id=1765117
2107 * target.c (target_stack::push): Call 'unpush' if there's a
2108 target on top of the stack.
2110 2019-11-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2112 * python/py-block.c (blpy_dealloc): Call tp_free.
2113 (blpy_block_syms_dealloc): Likewise.
2114 * python/py-finishbreakpoint.c (bpfinishpy_dealloc): Likewise.
2115 * python/py-inferior.c (infpy_dealloc): Likewise.
2116 * python/py-lazy-string.c (stpy_dealloc): Likewise.
2117 * python/py-linetable.c (ltpy_iterator_dealloc): Likewise.
2118 * python/py-symbol.c (sympy_dealloc): Likewise.
2119 * python/py-symtab.c (stpy_dealloc): Likewise.
2120 * python/py-type.c (typy_iterator_dealloc): Likewise.
2122 2019-11-18 Christian Biesinger <cbiesinger@google.com>
2124 * symtab.h (struct symbol) <owner>: Initialize explicitly in the
2125 constructor instead of using a class initializer.
2127 2019-11-15 Christian Biesinger <cbiesinger@google.com>
2129 * Makefile.in: Replace {posix,mingw}-strerror.c with safe-strerror.c.
2130 * configure: Regenerate.
2131 * configure.ac: Don't source common.host.
2132 * gdbsupport/common.host: Remove.
2133 * gdbsupport/mingw-strerror.c: Remove.
2134 * gdbsupport/posix-strerror.c: Rename to...
2135 * gdbsupport/safe-strerror.c: ...this.
2137 2019-11-15 Christian Biesinger <cbiesinger@google.com>
2139 * maint.c (scoped_command_stats::print_time): Use localtime_r
2140 instead of localtime (provided through gnulib if necessary).
2141 * nat/linux-osdata.c (time_from_time_t): Use ctime_r instead
2144 2019-11-15 Christian Biesinger <cbiesinger@google.com>
2146 * gdbsupport/common-defs.h: Include time.h before pathmax.h to
2147 avoid compile errors.
2149 2019-11-15 Christian Biesinger <cbiesinger@google.com>
2151 * config.in: Regenerate.
2152 * configure: Regenerate.
2153 * gdbsupport/common.m4: No longer check for strerror_r.
2154 * gdbsupport/posix-strerror.c (safe_strerror): Always call the
2155 POSIX version of strerror_r, now that gnulib provides it if
2158 2019-11-14 Christian Biesinger <cbiesinger@google.com>
2160 * README (`configure' options): Update.
2162 2019-11-14 Tom Tromey <tromey@adacore.com>
2164 * eval.c (evaluate_subexp_standard) <BINOP_ASSIGN>: Do not pass an
2165 expected type for the RHS if the LHS is a convenience variable.
2167 2019-11-14 Simon Marchi <simon.marchi@polymtl.ca>
2169 * unittests/vec-utils-selftests.c (unordered_remove_tests::obj):
2170 Provide explicit default and copy constructor.
2172 2019-11-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2174 * python/py-finishbreakpoint.c (gdbpy_breakpoint_created):
2175 only call Py_INCREF (newbp) in the bppy_pending_object case.
2177 2019-11-13 Tom Tromey <tromey@adacore.com>
2180 * psympriv.h (partial_symbol): Remove static assert.
2181 * symtab.h (general_symbol_info, symbol): Remove static assert.
2183 2019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
2185 * gdbsupport/format.c (format_pieces::format_pieces): Support
2186 printf 'z' size modifier.
2187 * gdbsupport/format.h (enum argclass): Add size_t_arg.
2188 * printcmd.c (ui_printf): Handle size_t_arg.
2189 * ui-out.c (ui_out::vmessage): Likewise.
2190 * unittests/format_pieces-selftests.c (test_format_int_sizes): New
2192 (run_tests): Call test_format_int_sizes.
2194 2019-11-12 Christian Biesinger <cbiesinger@google.com>
2196 * ada-exp.y (write_ambiguous_var): Update.
2197 * buildsym.c (add_symbol_to_list): Update.
2198 * dwarf2read.c (read_variable): Update.
2199 (new_symbol): Update.
2200 * jit.c (finalize_symtab): Update.
2201 * language.c (language_alloc_type_symbol): Update.
2202 * symtab.c (fixup_symbol_section): Update.
2203 (initialize_objfile_symbol_1): Move code to...
2204 (initialize_objfile_symbol): ...here. Remove now-unnecessary memset.
2205 (allocate_symbol): Update.
2206 (allocate_template_symbol): Update.
2207 (get_symbol_address): Update.
2208 * symtab.h (struct symbol): Inherit from general_symbol_info instead
2209 of having as a field, and add a constructor.
2210 (SYMBOL_VALUE): Update.
2211 (SYMBOL_VALUE_ADDRESS): Update.
2212 (SET_SYMBOL_VALUE_ADDRESS): Update.
2213 (SYMBOL_VALUE_BYTES): Update.
2214 (SYMBOL_VALUE_COMMON_BLOCK): Update.
2215 (SYMBOL_BLOCK_VALUE): Update.
2216 (SYMBOL_VALUE_CHAIN): Update.
2217 (SYMBOL_LANGUAGE): Update.
2218 (SYMBOL_SECTION): Update.
2219 (SYMBOL_OBJ_SECTION): Update.
2220 (SYMBOL_SET_LANGUAGE): Update.
2221 (SYMBOL_SET_LINKAGE_NAME): Update.
2222 (SYMBOL_SET_NAMES): Update.
2223 (SYMBOL_NATURAL_NAME): Update.
2224 (SYMBOL_LINKAGE_NAME): Update.
2225 (SYMBOL_DEMANGLED_NAME): Update.
2226 (SYMBOL_SEARCH_NAME): Update.
2227 (SYMBOL_MATCHES_SEARCH_NAME): Update.
2228 (struct symbol): Update.
2229 (struct template_symbol): Update.
2230 (struct rust_vtable_symbol): Update.
2231 * xcoffread.c (SYMBOL_DUP): Update.
2233 2019-11-12 Tom Tromey <tom@tromey.com>
2235 * tui/tui-layout.c (show_layout): Set current_layout.
2236 (show_source_disasm_command, show_data)
2237 (show_source_or_disasm_and_command): Don't set current_layout.
2239 2019-11-12 Tom Tromey <tom@tromey.com>
2241 * tui/tui-layout.c (_initialize_tui_layout): Move to end.
2243 2019-11-12 Tom Tromey <tom@tromey.com>
2245 * tui/tui-win.c (resize_message): New global.
2246 (show_tui_resize_message): New function.
2247 (tui_async_resize_screen): Print message if requested.
2248 (_initialize_tui_win): Add tui-resize-message setting.
2249 * NEWS: Add entry for new commands.
2251 2019-11-11 Tom Tromey <tom@tromey.com>
2253 * tui/tui.c (tui_initialize_readline): Add new bindable readline
2256 2019-11-11 Christian Biesinger <cbiesinger@google.com>
2258 * nat/linux-osdata.c (user_from_uid): Use getpwuid_r.
2260 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
2262 * python/py-symbol.c (gdbpy_lookup_static_symbols): New
2264 * python/python-internal.h (gdbpy_lookup_static_symbols):
2265 Declare new function.
2266 * python/python.c (python_GdbMethods): Add
2267 gdb.lookup_static_symbols method.
2268 * NEWS: Mention gdb.lookup_static_symbols.
2270 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
2272 * python/py-symbol.c (gdbpy_lookup_static_symbol): Lookup in
2273 static block of current object file first. Also fix typo in
2276 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
2278 * stack.c (set_last_displayed_sal): Delete.
2279 (last_displayed_sal_valid): Delete.
2280 (last_displayed_pspace): Delete.
2281 (last_displayed_addr): Delete.
2282 (last_displayed_symtab): Delete.
2283 (last_displayed_line): Delete.
2284 (class last_displayed_symtab_info_type): New.
2285 (last_displayed_symtab_info): New static global variable.
2286 (print_frame_info): Call methods on last_displayed_symtab_info.
2287 (clear_last_displayed_sal): Update header comment, and make use of
2288 last_displayed_symtab_info.
2289 (last_displayed_sal_is_valid): Likewise.
2290 (get_last_displayed_pspace): Likewise.
2291 (get_last_displayed_addr): Likewise.
2292 (get_last_displayed_symtab): Likewise.
2293 (get_last_displayed_line): Likewise.
2294 (get_last_displayed_sal): Likewise.
2295 * stack.h (clear_last_displayed_sal): Update header comment.
2296 (last_displayed_sal_is_valid): Likewise.
2297 (get_last_displayed_pspace): Likewise.
2298 (get_last_displayed_addr): Likewise.
2299 (get_last_displayed_symtab): Likewise.
2300 (get_last_displayed_line): Likewise.
2301 (get_last_displayed_sal): Likewise.
2303 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
2305 * stack.c (frame_show_address): Convert return type to bool.
2306 * stack.h (frame_show_address): Likewise, and update header
2309 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
2311 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new file to the list.
2312 * unittests/vec-utils-selftests.c: New file.
2313 * gdbsupport/gdb_vecs.h (unordered_remove): Avoid self move assign.
2315 2019-11-10 Tom Tromey <tom@tromey.com>
2317 * tui/tui-wingeneral.c (tui_unhighlight_win): Use can_box.
2318 (tui_highlight_win): Likewise.
2319 (tui_win_info::check_and_display_highlight_if_needed): Likewise.
2320 * tui/tui-data.h (struct tui_win_info) <can_highlight>: Remove.
2321 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
2322 Don't set can_highlight.
2324 2019-11-10 Tom Tromey <tom@tromey.com>
2326 * cli/cli-style.h (class cli_style_option) <cli_style_option>:
2327 Remove unused declaration.
2329 2019-11-08 Tom Tromey <tromey@adacore.com>
2331 * top.c (read_command_file): Update.
2332 (command_line_input): Make return type const.
2333 * python/py-gdb-readline.c: Update.
2334 * linespec.c (decode_line_2): Update.
2335 * defs.h (command_line_input): Make return type const.
2336 * cli/cli-script.c (read_next_line): Make return type const.
2337 * ada-lang.c (get_selections): Update.
2339 2019-11-06 Christian Biesinger <cbiesinger@google.com>
2341 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
2342 * mi/mi-main.c (output_cores): Likewise.
2343 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
2344 (linux_xfer_osdata_modules): Likewise.
2345 * remote.c (register_remote_support_xml): Likewise.
2346 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
2347 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
2349 2019-11-06 Tom Tromey <tom@tromey.com>
2351 * tui/tui-interp.c: Don't include readline.h.
2352 * tui/tui-hooks.c: Don't include readline.h.
2353 * symmisc.c: Include tilde.h, not readline.h.
2354 * symfile.c: Include tilde.h, not readline.h.
2355 * source.c: Include tilde.h, not readline.h.
2356 * solib.c: Include tilde.h, not readline.h.
2357 * psymtab.c: Include tilde.h, not readline.h.
2358 * exec.c: Include tilde.h, not readline.h.
2359 * corelow.c: Include tilde.h, not readline.h.
2360 * cli/cli-dump.c: Include tilde.h, not readline.h.
2361 * cli/cli-cmds.c: Don't include readline.h.
2363 2019-11-05 Tom Tromey <tom@tromey.com>
2365 * tui/tui-disasm.c (struct tui_asm_line) <addr_size>: New member.
2366 (tui_disassemble): Set addr_size.
2367 (tui_disasm_window::set_contents): Use addr_size.
2369 2019-11-05 Tom Tromey <tom@tromey.com>
2371 * rust-lang.c (rust_language_defn): Update.
2372 * python/py-value.c (valpy_string): Call c_get_string.
2373 * p-lang.c (pascal_language_defn): Update.
2374 * opencl-lang.c (opencl_language_defn): Update.
2375 * objc-lang.c (objc_language_defn): Update.
2376 * m2-lang.c (m2_language_defn): Update.
2377 * language.c (unknown_language_defn, auto_language_defn): Update.
2378 (default_get_string): Remove.
2379 * guile/scm-value.c (gdbscm_value_to_string): Use c_get_string.
2380 * go-lang.c (go_language_defn): Update.
2381 * f-lang.c (f_language_defn): Update.
2382 * d-lang.c (d_language_defn): Update.
2383 * c-lang.c (c_language_defn, cplus_language_defn)
2384 (asm_language_defn, minimal_language_defn): Update.
2385 * ada-lang.c (ada_language_defn): Update.
2386 * language.h (struct language_defn) <la_get_string>: Remove.
2387 (LA_GET_STRING): Remove.
2388 (default_get_string): Don't declare.
2390 2019-11-05 Tom Tromey <tom@tromey.com>
2392 * tui/tui-source.h (struct tui_source_window): Inline
2393 constructor. Remove destructor.
2394 <style_changed, m_observable>: Move to superclass.
2395 * tui/tui-winsource.h (tui_copy_source_line): Declare.
2396 (struct tui_source_window_base): Move private members to end.
2397 <style_changed, m_observable>: Move from tui_source_window.
2398 * tui/tui-winsource.c (tui_copy_source_line): Move from
2399 tui-source.c. Rename from copy_source_line. Add special handling
2400 for negative line number.
2401 (tui_source_window_base::style_changed): Move from
2403 (tui_source_window_base): Register observer.
2404 (~tui_source_window_base): New.
2405 * tui/tui-source.c (copy_source_line): Move to tui-winsource.c;
2407 (tui_source_window::set_contents): Use tui_copy_source_line.
2408 (tui_source_window::tui_source_window): Move to tui-source.h.
2409 (tui_source_window::~tui_source_window): Remove.
2410 (tui_source_window::style_changed): Move to superclass.
2411 * tui/tui-disasm.c (tui_disassemble): Create string file with
2412 styling, when possible. Add "addr_size" parameter.
2413 (tui_disasm_window::set_contents): Use tui_copy_source_line.
2414 Don't compute maximum size.
2415 (len_without_escapes): New function
2417 2019-11-05 Tom Tromey <tom@tromey.com>
2419 * tui/tui-winsource.h (struct tui_source_element) <line>: Now a
2421 * tui/tui-winsource.c (tui_show_source_line): Update.
2422 * tui/tui-source.c (tui_source_window::set_contents): Update.
2423 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
2425 2019-11-05 Christian Biesinger <cbiesinger@google.com>
2427 * symtab.h (gdb_static_assert): Put && operator at the beginning
2428 of the line instead of the end.
2430 2019-11-04 Christian Biesinger <cbiesinger@google.com>
2432 * psympriv.h: Add static_asserts for sizeof (general_symbol_info)
2433 and sizeof (symbol).
2434 * symtab.h: Add a static_assert for sizeof (partial_symbol).
2436 2019-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2438 * NEWS (Changes since GDB 8.3): Document Solaris 10 removal.
2439 * configure.host: Mark *-*-solaris2.10* obsolete.
2440 * configure.tgt: Mark Solaris < 11 obsolete.
2441 * MAINTAINERS (Target Instruction Set Architectures) <sparc>:
2442 Update target triplet.
2444 2019-11-01 Tom Tromey <tromey@adacore.com>
2446 * utils.c (print_sys_errmsg): Simplify.
2448 2019-11-01 Tom Tromey <tromey@adacore.com>
2450 * gdbsupport/mingw-strerror.c (safe_strerror): Constify result.
2452 2019-11-01 Christian Biesinger <cbiesinger@google.com>
2454 * configure: Regenerate.
2455 * configure.ac: Remove check for strerror_r.
2456 * gdbsupport/common.m4: Check for strerror_r.
2458 2019-11-01 Luis Machado <luis.machado@linaro.org>
2462 * arm-tdep.c (arm_per_objfile): Rename to ...
2463 (arm_per_bfd): ... this.
2464 (arm_objfile_data_key): Rename to ...
2465 (arm_bfd_data_key): ... this.
2466 (arm_find_mapping_symbol): Adjust access to new bfd_key-based
2468 (arm_record_special_symbol): Likewise.
2470 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
2472 * ada-typeprint.c (ada_print_typedef): Don't print newline at the
2474 * c-typeprint.c (c_print_typedef): Likewise.
2475 * f-typeprint.c (f_print_typedef): Likewise.
2476 * m2-typeprint.c (m2_print_typedef): Likewise.
2477 * p-typeprint.c (pascal_print_typedef): Likewise.
2478 * rust-lang.c (rust_print_typedef): Likewise.
2479 * symtab.c (print_symbol_info): Print a newline after calling
2482 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
2484 * symtab.c (info_module_cmdlist): New variable.
2485 (info_module_command): New function.
2486 (search_module_symbols): New function.
2487 (info_module_subcommand): New function.
2488 (struct info_modules_var_func_options): New struct.
2489 (info_modules_var_func_options_defs): New variable.
2490 (make_info_modules_var_func_options_def_group): New function.
2491 (info_module_functions_command): New function.
2492 (info_module_variables_command): New function.
2493 (info_module_var_func_command_completer): New function.
2494 (_initialize_symtab): Register new 'info module functions' and
2495 'info module variables' commands.
2496 * symtab.h (typedef symbol_search_in_module): New typedef.
2497 (search_module_symbols): Declare new function.
2498 * NEWS: Mention new commands.
2500 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
2502 * dwarf2read.c (dw2_symtab_iter_next): Handle MODULE_DOMAIN.
2503 (dw2_expand_marked_cus): Handle MODULES_DOMAIN.
2504 (dw2_debug_names_iterator::next): Handle MODULE_DOMAIN and
2506 (scan_partial_symbols): Only create partial module symbols for non
2508 * psymtab.c (recursively_search_psymtabs): Handle MODULE_DOMAIN
2510 * symtab.c (search_domain_name): Likewise.
2511 (search_symbols): Likewise.
2512 (print_symbol_info): Likewise.
2513 (symtab_symbol_info): Likewise.
2514 (info_modules_command): New function.
2515 (_initialize_symtab): Register 'info modules' command.
2516 * symtab.h (enum search_domain): Add MODULES_DOMAIN.
2517 * NEWS: Mention new 'info modules' command.
2519 2019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2521 * NEWS: Mention $_gdb_setting, $_gdb_setting_str, $_gdb_maint_setting
2522 and $_gdb_maint_setting_str.
2524 2019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2526 * cli/cli-cmds.c (setting_cmd, value_from_setting)
2527 (gdb_setting_internal_fn, gdb_maint_setting_internal_fn)
2528 (str_value_from_setting, gdb_setting_str_internal_fn)
2529 (gdb_maint_setting_str_internal_fn): New functions.
2530 (_initialize_cli_cmds): Define the new convenience functions.
2531 * gdb/cli/cli-setshow.h (get_setshow_command_value_string): Constify.
2532 * gdb/cli/cli-setshow.c (get_setshow_command_value_string): Constify.
2534 2019-10-31 Christian Biesinger <cbiesinger@google.com>
2536 * agent.c (set_can_use_agent): When the setting is turned on,
2537 look up agent symbols if we don't have them yet.
2538 (agent_new_objfile): Don't look up agent symbols when the agent
2541 2019-10-31 Christian Biesinger <cbiesinger@google.com>
2543 * config.in: Regenerate.
2545 2019-10-31 Christian Biesinger <cbiesinger@google.com>
2547 * configure: Regenerate.
2548 * configure.ac: Check for strerror_r.
2549 * gdbsupport/common-utils.h (safe_strerror): Change return value
2550 to const char * and document that this function is now threadsafe.
2551 * gdbsupport/posix-strerror.c (safe_strerror): Make buf
2552 thread_local and call strerror_r, if available.
2553 * utils.c (perror_string): Update.
2554 (print_sys_errmsg): Update.
2556 2019-10-31 Luis Machado <luis.machado@linaro.org>
2558 * arm-tdep.c (arm_exidx_data_key): Use bfd_key instead of
2560 (arm_exidx_new_objfile): Adjust to use objfile->obfd instead of
2561 objfile to fetch per-bfd data.
2562 (arm_find_exidx_entry): Likewise.
2564 2019-10-31 Christian Biesinger <cbiesinger@google.com>
2566 * gdbsupport/agent.c (debug_agent): Change type to bool.
2567 (use_agent): Likewise.
2568 (all_agent_symbols_look_up): Likewise.
2569 (agent_loaded_p): Change return value to bool.
2570 (agent_look_up_symbols): Update.
2571 (agent_capability_check): Change return value to bool.
2572 * gdbsupport/agent.h (agent_loaded_p): Likewise.
2573 (debug_agent): Change type to bool.
2574 (use_agent): Likewise.
2575 (agent_capability_check): Change return value to bool.
2577 2019-10-30 Christian Biesinger <cbiesinger@google.com>
2579 * minsyms.c (clear_minimal_symbol_hash_tables): New function.
2580 (build_minimal_symbol_hash_tables): Code to clear the table moved
2581 to clear_minimal_symbol_hash_tables.
2582 (minimal_symbol_reader::install): Call clear_minimal_symbol_hash_tables
2585 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2587 * infcmd.c: Remove includes.
2588 * infrun.c: Remove includes.
2590 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2592 * ada-lang.h (GROW_VECT): Move to ada-lang.c.
2593 (grow_vect): Remove declaration.
2594 (ada_type_of_array): Remove declaration.
2595 (ada_update_initial_language): Remove declaration.
2596 (ada_fold_name): Remove declaration.
2597 (ada_fill_in_ada_prototype): Remove declaration.
2598 (user_select_syms): Remove declaration.
2599 (get_selections): Remove declaration.
2600 (ada_tag_type): Remove declaration.
2601 (ada_value_tag): Remove declaration.
2602 (ada_is_others_clause): Remove declaration.
2603 (ada_in_variant): Remove declaration.
2604 (ada_value_struct_elt): Remove declaration.
2605 (ada_attribute_name): Remove declaration.
2606 (ada_system_address_type): Remove declaration.
2607 * ada-lang.c (ada_watch_location_expression): Make static.
2608 (GROW_VECT): Move here from ada-lang.h.
2609 (grow_vect): Make static.
2610 (ada_update_initial_language): Make static.
2611 (ada_fold_name): Make static.
2612 (ada_type_of_array): Make static.
2613 (encoded_ordered_before): Move up.
2614 (sort_choices): Move up.
2615 (print_signatures): Move up.
2616 (ada_print_symbol_signature): Move up.
2617 (get_selections): Move up and make static.
2618 (user_select_syms): Move up and make static.
2619 (ada_value_struct_elt): Move up and make static.
2620 (ada_tag_type): Make static.
2621 (ada_value_tag): Make static.
2622 (ada_is_others_clause): Make static.
2623 (ada_in_variant): Make static.
2624 (ada_attribute_name): Make static.
2626 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2628 * ada-lang.c: Remove includes.
2629 * ada-typeprint.c: Remove includes.
2630 * ada-valprint.c: Remove includes.
2632 2019-10-29 Simon Marchi <simon.marchi@efficios.com>
2634 * addrmap.c: Add static assertions of type size, moved from
2635 _initialize_addrmap.
2636 (_initialize_addrmap): Remove.
2638 2019-10-29 Christian Biesinger <cbiesinger@google.com>
2640 * coffread.c (record_minimal_symbol): Update.
2641 (process_coff_symbol): Update.
2642 * dbxread.c (read_dbx_symtab): Update.
2643 * dwarf2read.c (add_partial_symbol): Update.
2644 (fixup_go_packaging): Update.
2645 (load_partial_dies): Update.
2646 (new_symbol): Update.
2647 * elfread.c (record_minimal_symbol): Change signature to use
2648 gdb::string_view instead of name+len.
2649 (elf_symtab_read): Update.
2650 (elf_rel_plt_read): Update.
2651 * mdebugread.c (parse_partial_symbols): Update.
2652 (handle_psymbol_enumerators): Update.
2653 (new_symbol): Update.
2654 * minsyms.c (minimal_symbol_reader::record_full): Change signature
2655 to use gdb::string_view instead of name+len.
2656 * minsyms.h (class minimal_symbol_reader) <record_full>: Likewise.
2657 * psympriv.h (add_psymbol_to_list): Likewise.
2658 * psymtab.c (add_psymbol_to_bcache): Likewise.
2659 (add_psymbol_to_list): Likewise.
2660 * stabsread.c (define_symbol): Update.
2661 * symtab.c (symbol_set_names): Change signature to use gdb::string_view.
2662 * symtab.h (SYMBOL_SET_NAMES): Likewise.
2663 (symbol_set_names): Likewise.
2664 * xcoffread.c (scan_xcoff_symtab): Update.
2666 2019-10-29 Christian Biesinger <cbiesinger@google.com>
2668 * symtab.h (symbol_set_names): Document that copy_name must be
2669 set to true for non-nullterminated strings.
2670 * symtab.c (symbol_set_names): Only make a nullterminated copy of
2671 linkage_name if the entry was not found and we need to demangle.
2673 2019-10-29 Christian Biesinger <cbiesinger@google.com>
2675 * Makefile.in (HFILES_NO_SRCDIR): Add gdb_binary_search.h.
2676 * dwarf2-frame.c (bsearch_fde_cmp): Update.
2677 (dwarf2_frame_find_fde): Replace bsearch with gdb::binary_search.
2678 * gdbsupport/gdb_binary_search.h: New file.
2680 2019-10-29 Christian Biesinger <cbiesinger@google.com>
2682 * NEWS: Mention new --with-system-gdbinit-dir option.
2683 * config.in: Regenerate.
2684 * configure: Regenerate.
2685 * configure.ac: Add new option --with-system-gdbinit-dir.
2686 * extension.c (get_ext_lang_of_file): Return extension_language_gdb
2687 for a ".gdb" suffix.
2688 * main.c (get_init_files): Change system_gdbinit argument to
2689 a vector and return the files in SYSTEM_GDBINIT_DIR in
2690 addition to SYSTEM_GDBINIT.
2691 (captured_main_1): Update.
2692 (print_gdb_help): Update.
2693 * top.c (print_gdb_configuration): Also print the value of
2696 2019-10-28 Christian Biesinger <cbiesinger@google.com>
2698 * gdbsupport/common-utils.h (startswith): Add an overloaded version
2699 that takes gdb::string_view arguments.
2701 2019-10-26 Tom de Vries <tdevries@suse.de>
2703 * aarch64-linux-tdep.c: Fix typos in comments.
2704 * aarch64-tdep.c: Same.
2706 * amd64-nat.c: Same.
2708 * arch/aarch64-insn.c: Same.
2710 * breakpoint.h: Same.
2713 * cli/cli-decode.c: Same.
2714 * cli/cli-script.c: Same.
2715 * cli/cli-utils.h: Same.
2716 * coff-pe-read.c: Same.
2718 * compile/compile-cplus-symbols.c: Same.
2719 * compile/compile-object-run.c: Same.
2720 * completer.c: Same.
2722 * cp-support.c: Same.
2724 * dwarf-index-write.c: Same.
2725 * dwarf2-frame.c: Same.
2726 * dwarf2-frame.h: Same.
2728 * frame-base.h: Same.
2733 * guile/scm-objfile.c: Same.
2734 * i386-tdep.c: Same.
2735 * i386-tdep.h: Same.
2738 * linux-nat.c: Same.
2739 * m68k-tdep.c: Same.
2742 * mi/mi-cmd-disas.c: Same.
2743 * mi/mi-getopt.h: Same.
2744 * mi/mi-main.c: Same.
2746 * nat/aarch64-sve-linux-sigcontext.h: Same.
2748 * ppc-linux-nat.c: Same.
2749 * ppc-linux-tdep.c: Same.
2751 * progspace.h: Same.
2752 * prologue-value.h: Same.
2753 * python/py-evtregistry.c: Same.
2754 * python/py-instruction.h: Same.
2755 * record-btrace.c: Same.
2756 * record-full.c: Same.
2758 * rs6000-tdep.c: Same.
2760 * sol-thread.c: Same.
2761 * sparc-sol2-tdep.c: Same.
2762 * sparc64-tdep.c: Same.
2763 * stabsread.c: Same.
2767 * tracepoint.c: Same.
2768 * tui/tui-data.h: Same.
2769 * tui/tui-io.c: Same.
2770 * tui/tui-win.c: Same.
2772 * unittests/rsp-low-selftests.c: Same.
2773 * user-regs.h: Same.
2784 * xtensa-tdep.c: Same.
2786 2019-10-25 Ali Tamur <tamur@google.com>
2788 * charset.c (find_charset_names): Reflect API change.
2790 2019-10-25 Christian Biesinger <cbiesinger@google.com>
2792 * symtab.c (struct demangled_name_entry): Change demangled name
2793 to a unique_xmalloc_ptr<char>, now that we don't allocate it as
2794 part of the struct anymore.
2795 (symbol_set_names): No longer obstack allocate + copy the demangled
2796 name, just store the allocated name from bfd.
2798 2019-10-25 Tom Tromey <tromey@adacore.com>
2800 * dwarf2-frame.c (dwarf2_cie_table): Now a typedef.
2801 (bsearch_cie_cmp, add_cie): Remove.
2802 (find_cie): Reimplement.
2803 (decode_frame_entry_1, decode_frame_entry): Change type. Update.
2804 (dwarf2_build_frame_info): Update.
2806 2019-10-24 H.J. Lu <hongjiu.lu@intel.com>
2809 * symfile.c (reread_symbols): Call forget_cached_source_info to
2810 clear the stale source cache.
2812 2019-10-24 Christian Biesinger <cbiesinger@google.com>
2814 * configure: Regenerate.
2815 * configure.ac: Remove code that sets python_has_threads.
2817 2019-10-24 Christian Biesinger <cbiesinger@google.com>
2819 * config.in: Regenerate.
2820 * configure: Regenerate.
2821 * configure.ac: Remove the code that uses sed to get the python
2822 version and defines HAVE_LIBPYTHON2_6 / HAVE_LIBPYTHON2_7.
2824 2019-10-24 Andrew Burgess <andrew.burgess@embecosm.com>
2826 * python/py-progspace.c (pspy_block_for_pc): Return None for all
2829 2019-10-23 Tom Tromey <tom@tromey.com>
2831 * arc-tdep.c: Remove ".." from include.
2832 * frv-tdep.c: Remove ".." from include.
2833 * lm32-tdep.c: Remove ".." from include.
2834 * microblaze-tdep.c: Remove ".." from include.
2835 * or1k-tdep.h: Remove ".." from include.
2836 * s12z-tdep.c: Remove ".." from include.
2837 * Makefile.in (OPCODES_CFLAGS): Add comment.
2838 (TOP_CFLAGS): New variable.
2839 (INTERNAL_CFLAGS_BASE): Add TOP_CFLAGS.
2841 2019-10-23 Tom Tromey <tom@tromey.com>
2843 * Makefile.in (READLINE_DIR): Update.
2845 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2847 * infcall.c (call_function_by_hand_dummy): Fix the function
2848 comment. And extract out a code section into...
2849 (reserve_stack_space): ...this new function.
2851 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2853 * infcall.c (value_arg_coerce): Remove an unused parameter.
2854 (call_function_by_hand_dummy): Update the call to
2857 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2859 * infcall.c (call_function_by_hand_dummy): Refactor.
2861 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2863 * MAINTAINERS (Write After Approval): Add Tankut Baris Aktemur.
2865 2019-10-23 Tom Tromey <tom@tromey.com>
2867 * configure: Rebuild.
2868 * configure.ac: Don't check for sigprocmask.
2869 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for sigprocmask.
2871 2019-10-23 Tom Tromey <tom@tromey.com>
2873 * configure: Rebuild.
2874 * acinclude.m4: Use m4_include, not sinclude.
2876 2019-10-23 Tom de Vries <tdevries@suse.de>
2878 PR breakpoints/24687
2879 * symtab.c (iterate_over_some_symtabs): Apply gdb_realpath on fullname.
2881 2019-10-22 Christian Biesinger <cbiesinger@google.com>
2883 * symtab.c (struct demangled_name_entry) <language>: Change from
2884 bitfield to regular variable.
2886 2019-10-22 Christian Biesinger <cbiesinger@google.com>
2888 * symtab.c (struct demangled_name_entry): Add a constructor.
2889 (free_demangled_name_entry): New function to call the destructor
2890 for demangled_name_entry.
2891 (create_demangled_names_hash): Pass free_demangled_name_entry to
2893 (symbol_set_names): Call placement new for demangled_name_entry.
2894 * utils.c: No longer include xxhash.h here, now that fast_hash
2895 is inlined in the header.
2896 * utils.h: Instead, include it here.
2898 2019-10-22 Christian Biesinger <cbiesinger@google.com>
2900 * Makefile.in: Link with libxxhash.
2901 * config.in: Regenerate.
2902 * configure: Regenerate.
2903 * configure.ac: Search for libxxhash.
2904 * utils.c (fast_hash): Use xxhash if present.
2906 2019-10-22 Christian Biesinger <cbiesinger@google.com>
2908 * utils.h (fast_hash): New function.
2909 * symtab.c (hash_demangled_name_entry): Call new function
2912 2019-10-22 Christian Biesinger <cbiesinger@google.com>
2914 * symtab.c (struct demangled_name_entry): Change type of mangled
2915 to gdb::string_view. Also adds a constructor that takes the
2917 (hash_demangled_name_entry): Update.
2918 (eq_demangled_name_entry): Update.
2919 (free_demangled_name_entry): New function to call the destructor
2920 now that this is not a POD anymore.
2921 (create_demangled_names_hash): Pass free_demangled_name_entry to
2923 (symbol_set_names): Update.
2925 2019-10-21 Ali Tamur <tamu@google.com>
2927 * dwarf2read.c (dir_index): Change type.
2928 (file_name_index): Likewise.
2929 (line_header::include_dir_at): Change comment and implementation on
2930 whether it is DWARF 5.
2931 (line_header::is_valid_file_index): New function.
2932 (line_header::file_name_at): Change comment and implementation on
2933 whether it is DWARF 5.
2934 (line_header::file_names): Change to private field renamed as
2935 m_file_names and introduce a new accessor method.
2936 (line_header::file_names_size): New method.
2937 (line_header::include_dirs): Change to private field and rename as
2939 (dw2_get_file_names_reader): Define local var at a smaller scope and
2941 (dwarf2_cu::setup_type_unit_groups): Reflect API change.
2942 (process_structure_scope): Likewise.
2943 (line_header::add_include_dir): Change message and reflect renaming.
2944 (line_header::add_file_name): Likewise.
2945 (read_formatted_entries): Handle DW_FORM_data16.
2946 (dwarf_decode_line_header): Fix line header length calculation.
2947 (psymtab_include_file_name): Change comment and API.
2948 (lnp_state_machine::m_file): Update comment and reflect type change.
2949 (lnp_state_machine::record_line): Reflect type change.
2950 (dwarf_decode_lines): Reflect API change.
2951 (file_file_name): Likewise.
2952 (file_full_name): Likewise.
2954 2019-10-21 Andrew Burgess <andrew.burgess@embecosm.com>
2956 * objfiles.c (sort_cmp): Ensure that !(a < a) holds true.
2958 2019-10-21 Tom Tromey <tom@tromey.com>
2960 * tui/tui-winsource.h (tui_exec_info_content): Remove typedef.
2962 2019-10-21 Tom Tromey <tom@tromey.com>
2964 * configure.ac (nm.h): Conditionally create nm.h link. Subst
2965 NM_H. Use AC_CONFIG_LINKS.
2966 * configure: Rebuild.
2967 * Makefile.in (NM_H): New variable.
2968 (generated_files): Add NM_H. Remove gcore.
2969 (nm.h, stamp-nmh): New targets.
2971 2019-10-20 Tom Tromey <tom@tromey.com>
2973 * objfiles.h (unlink_objfile, put_objfile_before): Don't declare.
2974 * objfiles.c (unlink_objfile): Move earlier. Now static. Remove
2976 (put_objfile_before): Now static.
2978 2019-10-19 Simon Marchi <simon.marchi@polymtl.ca>
2980 * gdbsupport/common-utils.h (startswith): Change return type to
2983 2019-10-19 Christian Biesinger <cbiesinger@google.com>
2985 * bcache.c (bcache::print_statistics): Use std::sort instead of qsort.
2986 * breakpoint.c (bp_locations_compare): Rename to...
2987 (bp_location_is_less_than): ...this, and change to std::sort semantics.
2988 (update_global_location_list): Use std::sort instead of qsort.
2989 * buildsym.c (compare_line_numbers): Rename to...
2990 (lte_is_less_than): ...this, and change to std::sort semantics.
2991 (buildsym_compunit::end_symtab_with_blockvector): Use std::sort
2993 * disasm.c (compare_lines): Rename to...
2994 (line_is_less_than): ...this, and change to std::sort semantics.
2995 (do_mixed_source_and_assembly_deprecated): Call std::sort instead
2997 * dwarf2-frame.c (qsort_fde_cmp): Rename to...
2998 (fde_is_less_than): ...this, and change to std::sort semantics.
2999 (dwarf2_build_frame_info): Call std::sort instead of qsort.
3000 * mdebugread.c (compare_blocks):
3001 (block_is_less_than): ...this, and change to std::sort semantics.
3002 (sort_blocks): Call std::sort instead of qsort.
3003 * objfiles.c (qsort_cmp): Rename to...
3004 (sort_cmp): ...this, and change to std::sort semantics.
3005 (update_section_map): Call std::sort instead of qsort.
3006 * remote.c (compare_pnums): Remove.
3007 (map_regcache_remote_table): Call std::sort instead of qsort.
3008 * utils.c (compare_positive_ints): Remove.
3009 * utils.h (compare_positive_ints): Remove.
3010 * xcoffread.c (compare_lte): Remove.
3011 (arrange_linetable): Call std::sort instead of qsort.
3013 2019-10-19 Sergio Durigan Junior <sergiodj@redhat.com>
3015 * symfile.c (init_entry_point_info): Fix typo.
3016 * i386-darwin-tdep.c (darwin_dwarf_signal_frame_p): Fix typo.
3018 2019-10-18 Tom de Vries <tdevries@suse.de>
3020 * aarch64-tdep.c: Fix typos in comments.
3022 * ada-tasks.c: Same.
3023 * alpha-tdep.c: Same.
3024 * alpha-tdep.h: Same.
3025 * amd64-nat.c: Same.
3026 * amd64-windows-tdep.c: Same.
3029 * arch-utils.c: Same.
3030 * arm-nbsd-tdep.c: Same.
3033 * blockframe.c: Same.
3036 * coff-pe-read.c: Same.
3038 * cris-tdep.c: Same.
3039 * darwin-nat.c: Same.
3043 * dtrace-probe.c: Same.
3044 * dwarf-index-write.c: Same.
3045 * dwarf2-frame-tailcall.c: Same.
3046 * dwarf2-frame.c: Same.
3047 * dwarf2read.c: Same.
3049 * exceptions.c: Same.
3050 * fbsd-tdep.c: Same.
3054 * gnu-v3-abi.c: Same.
3056 * h8300-tdep.c: Same.
3057 * hppa-tdep.c: Same.
3058 * i386-linux-tdep.c: Same.
3059 * i386-tdep.c: Same.
3060 * ia64-libunwind-tdep.c: Same.
3061 * ia64-tdep.c: Same.
3065 * linux-nat.c: Same.
3066 * linux-thread-db.c: Same.
3067 * machoread.c: Same.
3068 * mdebugread.c: Same.
3070 * mn10300-tdep.c: Same.
3071 * namespace.c: Same.
3073 * opencl-lang.c: Same.
3074 * or1k-tdep.c: Same.
3076 * ppc-linux-nat.c: Same.
3077 * ppc-linux-tdep.c: Same.
3078 * ppc-sysv-tdep.c: Same.
3081 * record-btrace.c: Same.
3082 * record-full.c: Same.
3083 * remote-fileio.c: Same.
3085 * rs6000-tdep.c: Same.
3086 * s12z-tdep.c: Same.
3087 * score-tdep.c: Same.
3091 * sol-thread.c: Same.
3092 * solib-svr4.c: Same.
3095 * sparc-nat.c: Same.
3096 * sparc-sol2-tdep.c: Same.
3097 * sparc-tdep.c: Same.
3098 * sparc64-tdep.c: Same.
3099 * stabsread.c: Same.
3103 * target-descriptions.c: Same.
3104 * target-float.c: Same.
3111 * windows-nat.c: Same.
3112 * xcoffread.c: Same.
3113 * xstormy16-tdep.c: Same.
3114 * xtensa-tdep.c: Same.
3116 2019-10-17 Tom Tromey <tromey@adacore.com>
3118 * configure: Rebuild.
3119 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
3120 in AC_CONFIG_FILES invocation.
3121 * Makefile.in (Makefile, data-directory/Makefile, stamp-h): Use
3122 new-style config.status invocation.
3124 2019-10-17 Tom de Vries <tdevries@suse.de>
3126 * arm-nbsd-nat.c: Fix typos in comments.
3128 * darwin-nat-info.c: Same.
3129 * dwarf2read.c: Same.
3131 * event-top.c: Same.
3134 * hppa-tdep.c: Same.
3135 * i386-tdep.c: Same.
3138 * mdebugread.c: Same.
3139 * moxie-tdep.c: Same.
3140 * nto-procfs.c: Same.
3142 * ppc-linux-tdep.c: Same.
3144 * riscv-tdep.c: Same.
3145 * s390-tdep.c: Same.
3147 * sparc-linux-tdep.c: Same.
3148 * sparc-nat.c: Same.
3150 * target-descriptions.c: Same.
3154 2019-10-16 Tom Tromey <tom@tromey.com>
3156 * objfiles.h (struct objfile) <original_name>: Now const.
3158 2019-10-16 Christian Biesinger <cbiesinger@google.com>
3160 * gdbsupport/gdb_setjmp.h (SIGSETJMP): Allow passing in the value to
3161 pass on to sigsetjmp's second argument.
3162 * cp-support.c (gdb_demangle): Unblock SIGSEGV if we caught a crash.
3164 2019-10-16 Keith Seitz <keiths@redhat.com>
3167 * dwarf2read.c (dwarf2_per_objfile::locate_sections): Discard
3168 sections whose size is greater than the file size.
3170 2019-10-16 Jim Wilson <jimw@sifive.com>
3172 * riscv-tdep.c (riscv_gcc_target_options): New.
3173 (riscv_gnu_triplet_regexp): New.
3174 (riscv_gdbarch_init): Call set_gdbarch_gcc_triplet_options and
3175 set_gdbarch_gnu_triplet_regexp.
3177 2019-10-16 Christian Biesinger <cbiesinger@google.com>
3179 * Makefile.in: Add xml-builtin.h.
3180 * features/feature_to_c.sh: Add an include for xml-builtin.h
3181 to ensure that the compiler checks that the types match.
3182 * xml-builtin.h: New file.
3183 * xml-support.c (fetch_xml_builtin): Add missing const.
3184 * xml-support.h: Remove declaration of xml_builtins.
3186 2019-10-16 Tom de Vries <tdevries@suse.de>
3189 * amd64-tdep.c (amd64_classify_aggregate_field): Factor out of ...
3190 (amd64_classify_aggregate): ... here.
3191 (amd64_classify_aggregate_field): Handled fiels of nested structs
3194 2019-10-16 Tom de Vries <tdevries@suse.de>
3197 * amd64-tdep.c (amd64_push_arguments): Handle AMD64_NO_CLASS in loop
3198 that handles 'theclass'.
3200 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
3202 * linespec.c (decode_digits_ordinary): Update comment.
3203 * make-target-delegates: No longer need to handle VEC case.
3204 * memrange.c (normalize_mem_ranges): Update comment.
3205 * namespace.c (add_using_directive): Update comment.
3206 * objc-lang.c (uniquify_strings): Update comment.
3207 * ppc-linux-nat.c (struct thread_points): Update comment.
3208 * probe.h (find_probes_in_objfile): Update comment.
3209 * target.h (enum flash_preserve_mode): Update comment.
3210 * varobj.c (varobj_restrict_range): Update comment.
3211 * varobj.h (varobj_list_children): Update comment.
3213 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
3215 * Makefile.in: Remove references to vec.h and vec.c.
3216 * aarch64-tdep.c: No longer include vec.h.
3217 * ada-lang.c: Likewise.
3218 * ada-lang.h: Likewise.
3219 * arm-tdep.c: Likewise.
3221 * breakpoint.h: Likewise.
3222 * charset.c: Likewise.
3223 * cp-support.h: Likewise.
3224 * dtrace-probe.c: Likewise.
3225 * dwarf2read.c: Likewise.
3226 * extension.h: Likewise.
3227 * gdb_bfd.c: Likewise.
3228 * gdbsupport/gdb_vecs.h: Likewise.
3229 * gdbsupport/vec.c: Remove.
3230 * gdbsupport/vec.h: Remove.
3231 * gdbthread.h: Likewise.
3232 * guile/scm-type.c: Likewise.
3233 * inline-frame.c: Likewise.
3234 * machoread.c: Likewise.
3235 * memattr.c: Likewise.
3236 * memrange.h: Likewise.
3237 * namespace.h: Likewise.
3238 * nat/linux-btrace.h: Likewise.
3239 * osdata.c: Likewise.
3240 * parser-defs.h: Likewise.
3241 * progspace.h: Likewise.
3242 * python/py-type.c: Likewise.
3243 * record-btrace.c: Likewise.
3244 * rust-exp.y: Likewise.
3245 * solib-target.c: Likewise.
3246 * stap-probe.c: Likewise.
3247 * target-descriptions.c: Likewise.
3248 * target-memory.c: Likewise.
3249 * target.h: Likewise.
3250 * varobj.c: Likewise.
3251 * varobj.h: Likewise.
3252 * xml-support.h: Likewise.
3254 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
3256 * gdb/dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile):
3257 Update for new std::vector based implementation.
3258 (process_psymtab_comp_unit_reader): Likewise.
3259 (scan_partial_symbols): Likewise.
3260 (recursively_compute_inclusions): Likewise.
3261 (compute_compunit_symtab_includes): Likewise.
3262 (process_imported_unit_die): Likewise.
3263 (queue_and_load_dwo_tu): Likewise.
3264 (follow_die_sig_1): Likewise.
3265 * gdb/dwarf2read.h: Remove DEF_VEC_P.
3266 (typedef dwarf2_per_cu_ptr): Remove.
3267 (struct dwarf2_per_cu_data) <imported_symtabs_empty>: New
3269 (struct dwarf2_per_cu_data) <imported_symtabs_push>: New function.
3270 (struct dwarf2_per_cu_data) <imported_symtabs_size>: New function.
3271 (struct dwarf2_per_cu_data) <imported_symtabs_free>: New function.
3272 (struct dwarf2_per_cu_data) <imported_symtabs>: Change to
3275 2019-10-15 Tom Tromey <tromey@adacore.com>
3277 * windows-nat.c (windows_nat_target::resume): Use %x when logging
3280 2019-10-15 Tom Tromey <tromey@adacore.com>
3282 * windows-nat.c (windows_nat_target::fetch_registers)
3283 (windows_nat_target::store_registers): Rename "pid" to "tid".
3285 2019-10-15 Tom Tromey <tromey@adacore.com>
3287 * gdbarch.h, gdbarch.c: Rebuild.
3288 * gdbarch.sh (gcc_target_options): Change return type to
3290 * compile/compile.c (get_args): Update.
3291 * nios2-tdep.c (nios2_gcc_target_options): Return std::string.
3292 * arm-linux-tdep.c (arm_linux_gcc_target_options): Return
3294 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): Return
3296 * arch-utils.c (default_gcc_target_options): Return std::string.
3297 * arch-utils.h (default_gcc_target_options): Return std::string.
3298 * s390-tdep.c (s390_gcc_target_options): Return std::string.
3300 2019-10-15 Christian Biesinger <cbiesinger@google.com>
3302 * breakpoint.c (breakpoint_chain): Make static.
3303 * tui/tui-winsource.c: Call iterate_over_breakpoints instead
3304 of accessing breakpoint_chain.
3306 2019-10-15 Christian Biesinger <cbiesinger@google.com>
3308 * breakpoint.c (iterate_over_breakpoints): Change function pointer
3309 to a gdb::function_view and return value to bool.
3310 * breakpoint.h (iterate_over_breakpoints): Likewise.
3311 * dummy-frame.c (pop_dummy_frame_bpt): Update.
3312 (pop_dummy_frame): Update.
3313 * guile/scm-breakpoint.c (bpscm_build_bp_list): Update.
3314 (gdbscm_breakpoints): Update.
3315 * python/py-breakpoint.c (build_bp_list): Update.
3316 (gdbpy_breakpoints): Update.
3317 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
3319 (bpfinishpy_handle_stop): Update.
3320 (bpfinishpy_handle_exit): Update.
3321 * solib-svr4.c (svr4_update_solib_event_breakpoint): Update.
3322 (svr4_update_solib_event_breakpoints): Update.
3324 2019-10-15 Andreas Arnez <arnez@linux.ibm.com>
3326 * s390-tdep.c (s390_effective_inner_type): Ignore static fields
3327 when unwrapping single-field structs.
3329 2019-10-14 Simon Marchi <simon.marchi@polymtl.ca>
3331 * dwarf2read.c: Remove includes.
3333 2019-10-13 Simon Marchi <simon.marchi@polymtl.ca>
3335 * ui-out.c (ui_out::call_do_message): Silence
3336 -Wformat-nonliteral warning.
3338 2019-10-12 Simon Marchi <simon.marchi@polymtl.ca>
3340 * breakpoint.c: Remove some includes: continuations.h, skip.h,
3341 mi/mi-main.h, readline/readline.h, readline/history.h. Add
3342 include: readline/tilde.h.
3344 2019-10-12 Christian Biesinger <cbiesinger@google.com>
3346 * remote.c (remote_target::get_trace_status): Remove declaration of
3347 trace_regblock_size.
3349 2019-10-12 Christian Biesinger <cbiesinger@google.com>
3351 * cli/cli-cmds.c (max_user_call_depth): Move comment to header.
3352 (show_user): Remove declaration of cmdlist.
3353 * cli/cli-cmds.h (max_user_call_depth): Declare.
3354 * cli/cli-script.c (execute_user_command): Remove declaration
3355 of max_user_call_depth.
3357 2019-10-11 Jim Wilson <jimw@sifive.com>
3359 * gdbsupport/print-utils.h (pulongest): Fix comment.
3360 (plongest): Likewise.
3361 (phex): Add missing comment, mention leading zeros.
3362 (phex_nz): Add mention of no leading zeros to comment.
3364 * riscv-tdep.c (riscv_push_dummy_code): Change %lld to %s and use
3365 plongest instead of unsigned long long cast.
3367 2019-10-10 Christian Biesinger <cbiesinger@google.com>
3369 * main.c (captured_main_1): Include gdbtk.h and remove declarations
3370 for external_editor_command and gdbtk_test.
3372 2019-10-10 Christian Biesinger <cbiesinger@google.com>
3374 * mi/mi-cmd-var.c (varobjdebug): Remove declaration.
3375 * varobj.c (varobjdebug): Move comment to...
3376 * varobj.h (varobjdebug): ...here, and declare.
3378 2019-10-09 Tom Tromey <tom@tromey.com>
3380 * tui/tui-regs.c (tui_data_window::show_registers): Don't call
3383 2019-10-09 Tom Tromey <tom@tromey.com>
3385 * tui/tui-wingeneral.h (tui_delete_win): Don't declare.
3386 * tui/tui-stack.c (tui_locator_window::rerender): Update.
3387 * tui/tui-command.c (tui_cmd_window::resize)
3388 (tui_refresh_cmd_win): Update.
3389 * tui/tui-win.c (tui_resize_all, tui_set_focus_command): Update.
3390 * tui/tui.c (tui_rl_other_window, tui_enable): Update.
3391 * tui/tui-data.c (~tui_gen_win_info): Remove.
3392 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
3393 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
3394 (tui_redisplay_readline, tui_mld_flush)
3395 (tui_mld_erase_entire_line, tui_mld_getc, tui_getc): Update.
3396 * tui/tui-regs.c (tui_data_window::delete_data_content_windows)
3397 (tui_data_window::erase_data_content)
3398 (tui_data_item_window::rerender)
3399 (tui_data_item_window::refresh_window): Update.
3400 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window)
3401 (box_win, tui_gen_win_info::make_window)
3402 (tui_gen_win_info::make_visible): Update.
3403 (tui_delete_win): Remove.
3404 * tui/tui-winsource.c
3405 (tui_source_window_base::do_erase_source_content): Update.
3406 (tui_show_source_line, tui_source_window_base::update_tab_width)
3407 (tui_source_window_base::update_exec_info): Update.
3408 * tui/tui-data.h (struct curses_deleter): New.
3409 (struct tui_gen_win_info) <handle>: Now a unique_ptr.
3410 (struct tui_gen_win_info) <~tui_gen_win_info>: Define.
3412 2019-10-09 Tom Tromey <tom@tromey.com>
3414 * tui/tui-wingeneral.h (struct tui_gen_win_info): Don't declare.
3416 2019-10-09 Tom Tromey <tom@tromey.com>
3418 * tui/tui-data.c (tui_win_is_auxiliary): Remove.
3419 * tui/tui-data.h (tui_win_is_auxiliary): Don't declare.
3421 2019-10-09 Tom Tromey <tom@tromey.com>
3423 * tui/tui-disasm.c (tui_get_low_disassembly_address): Compute
3424 window height directly.
3425 * tui/tui-layout.h (tui_default_win_viewport_height): Don't
3427 * tui/tui-layout.c (tui_default_win_height): Remove.
3428 (tui_default_win_viewport_height): Remove.
3430 2019-10-09 Tom Tromey <tom@tromey.com>
3432 * tui/tui.h: Remove comments.
3434 2019-10-09 Tom de Vries <tdevries@suse.de>
3436 * python/lib/gdb/printer/bound_registers.py: Use
3437 '^builtin_type_bound128' as regexp argument for
3438 add_builtin_pretty_printer.
3440 2019-10-09 Christian Biesinger <cbiesinger@google.com>
3442 * guile/guile.c (guile_extension_script_ops): Remove forward
3443 declaration and mark as static.
3444 (guile_script_ops): Likewise.
3445 (extension_language_guile): Move further down in the file so
3446 it can reference the definitions for guile_{extension_,}script_ops.
3448 2019-10-09 Andreas Arnez <arnez@linux.ibm.com>
3450 * s390-tdep.c (390_process_record): Handle new arch13 instructions
3451 except SORTL, DFLTCC, and KDSA.
3453 2019-10-08 Tom Tromey <tromey@adacore.com>
3455 * windows-nat.c (struct windows_thread_info_struct) <sf>: Remove.
3456 (struct safe_symbol_file_add_args): Remove.
3458 2019-10-08 Tom Tromey <tromey@adacore.com>
3460 * windows-nat.c: Don't include buildsym-legacy.h.
3462 2019-10-08 Tom Tromey <tromey@adacore.com>
3464 * contrib/ari/gdb_ari.sh (%p): Allow gdb-specific %p extensions.
3466 2019-10-08 Christian Biesinger <cbiesinger@google.com>
3468 * gdbtypes.c (overload_debug): Move comment to header.
3469 * gdbtypes.h (overload_debug): Declare.
3470 * valops.c: Remove declaration of overload_debug, instead
3473 2019-10-08 Christian Biesinger <cbiesinger@google.com>
3475 * language.c (show_language_command): Pass lang_frame_mismatch_warn
3477 (lang_frame_mismatch_warn): Make const, mark with N_(), and
3479 * language.h (lang_frame_mismatch_warn): ... here. Also add
3481 * top.c (lang_frame_mismatch_warn): Remove declaration.
3482 (check_frame_language_change): Pass lang_frame_mismatch_warn
3485 2019-10-07 Christian Biesinger <cbiesinger@google.com>
3487 * c-lang.h (vtbl_ptr_name): Declare.
3488 * cp-valprint.c (vtbl_ptr_name): Remove "extern" now that we get
3490 * stabsread.c (define_symbol): Remove declaration of vtbl_ptr_name.
3492 2019-10-07 Christian Biesinger <cbiesinger@google.com>
3494 * charset.c (your_gdb_wchar_t_is_bogus): Replace with a
3497 2019-10-07 Weimin Pan <weimin.pan@oracle.com>
3499 * ../Makefile.def (dependencies): Add all-libctf to all-gdb
3500 * ../Makefile.in: Add "all-gdb: maybe-all-libctf"
3501 * ctfread.c: New file.
3502 * ctfread.h: New file.
3503 * elfread.c: Include ctfread.h.
3504 (struct elfinfo text_p): New member ctfsect.
3505 (elf_locate_sections): Mark CTF section.
3506 (elf_symfile_read): Call elfctf_build_psymtabs.
3507 * Makefile.in (LIBCTF): Add.
3510 (DIST): Add ctfread.c.
3512 2019-10-07 Andrew Burgess <andrew.burgess@embecosm.com>
3514 * ctfread.c (struct nextfield): Renamed to ...
3515 (struct ctf_nextfield): ... this.
3516 (struct field_info): Renamed to ...
3517 (strut ctf_field_info): ... this.
3518 (attach_fields_to_type): Update for renamed structures.
3519 (ctf_add_member_cb): Likewise.
3520 (ctf_add_enum_member_cb): Likewise.
3521 (process_struct_members): Likewise.
3522 (process_enum_type): Likewise.
3524 2019-10-07 Weimin Pan <weimin.pan@oracle.com>
3526 * tracectf.h: Rename, was ctf.h.
3527 * tracectf.c: Rename, was ctf.c, replace ctf.h with tracectf.h.
3528 * tracefile.c: Likewise.
3529 * tracepoint.c: Remove unused include ctf.h.
3530 * mi/mi-main.c: Likewise.
3531 * Makefile.in Replace ctf.c with tracectf.c.
3533 2019-10-06 Joel Brobecker <brobecker@adacore.com>
3535 * version.in: Change version number to "9.0.50.DATE-git".
3537 2019-10-03 Tom Tromey <tom@tromey.com>
3540 * dwarf2read.c (quirk_rust_enum): Handle single-element unions.
3542 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
3544 * f-lang.c (f_language_defn): Use cp_get_symbol_name_matcher and
3545 cp_search_name_hash.
3546 * NEWS: Add entry about nested function support.
3548 2019-10-03 Bernhard Heckel <bernhard.heckel@intel.com>
3549 Andrew Burgess <andrew.burgess@embecosm.com>
3551 * cp-namespace.c (cp_search_static_and_baseclasses): Only search
3552 for nested static variables when searchin VAR_DOMAIN.
3553 * dwarf2read.c (add_partial_symbol): Add nested subroutines to the
3554 global scope, update comment.
3555 (add_partial_subprogram): Call add_partial_subprogram recursively
3556 for nested subroutines when processinng Fortran.
3557 (load_partial_dies): Process the child entities of a subprogram
3558 when processing Fortran.
3559 (partial_die_parent_scope): Handle building scope
3560 for Fortran nested functions.
3561 (process_die): Record that nested functions have a scope.
3562 (new_symbol): Always record Fortran subprograms on the global
3564 (determine_prefix): How to build the prefix for Fortran
3567 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
3569 * linux-nat.c (linux_nat_filter_event): Don't ignore SIGSTOP if we
3570 have just sent the thread a SIGSTOP and are waiting for it to
3573 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
3575 * btrace.c (btrace_add_pc): Remove whitespace before the template
3576 parameter in 'std::vector <...>'.
3577 (parse_xml_btrace_block): Likewise.
3578 (btrace_maint_decode_pt): Likewise.
3579 (btrace_maint_update_packets): Likewise.
3580 (btrace_maint_print_packets): Likewise.
3581 * btrace.h (struct btrace_maint_info): Likewise.
3582 * dwarf2read.c (struct type_unit_group): Likewise.
3583 (build_type_psymtabs_reader): Likewise.
3584 * gdbsupport/btrace-common.c (btrace_data_append): Likewise.
3585 * gdbsupport/btrace-common.h (struct btrace_data_bts): Likewise.
3586 * nat/linux-btrace.c (perf_event_read_bts): Likewise.
3588 2019-10-03 Tom de Vries <tdevries@suse.de>
3590 * cli/cli-style.c (_initialize_cli_style): Adding a '.' at the end of
3591 the first line of the help text for set/show style metadata.
3593 2019-10-02 Tom Tromey <tromey@adacore.com>
3595 * Makefile.in (COMMON_SFILES): Add common-inferior.c.
3596 * gdbsupport/common-inferior.c: New file.
3597 * infcmd.c (startup_with_shell): Don't define.
3598 * nat/fork-inferior.h (startup_with_shell): Don't declare.
3599 * gdbsupport/common-inferior.h (startup_with_shell): Declare.
3600 * inferior.h (startup_with_shell): Don't declare.
3602 2019-10-02 Christian Biesinger <cbiesinger@google.com>
3604 * gdbsupport/gdb_assert.h: Include errors.h.
3605 * gdbsupport/gdb_string_view.h: Include gdb_assert.h.
3607 2019-10-02 Tom Tromey <tromey@adacore.com>
3609 * NEWS: Add $_ada_exception entry.
3610 * ada-lang.c (struct ada_catchpoint): Add constructor.
3611 <m_kind>: New member.
3612 (allocate_location_exception, re_set_exception): Remove
3614 (should_stop_exception): Compute $_ada_exception.
3615 (check_status_exception, print_it_exception)
3616 (print_one_exception, print_mention_exception): Remove
3618 (allocate_location_catch_exception, re_set_catch_exception)
3619 (check_status_exception, print_it_catch_exception)
3620 (print_one_catch_exception, print_mention_catch_exception)
3621 (print_recreate_catch_exception)
3622 (allocate_location_catch_exception_unhandled)
3623 (re_set_catch_exception_unhandled)
3624 (check_status_exception, print_it_catch_exception_unhandled)
3625 (print_one_catch_exception_unhandled)
3626 (print_mention_catch_exception_unhandled)
3627 (print_recreate_catch_exception_unhandled)
3628 (allocate_location_catch_assert, re_set_catch_assert)
3629 (check_status_assert, print_it_catch_assert)
3630 (print_one_catch_assert, print_mention_catch_assert)
3631 (print_recreate_catch_assert)
3632 (allocate_location_catch_handlers, re_set_catch_handlers)
3633 (check_status_handlers, print_it_catch_handlers)
3634 (print_one_catch_handlers, print_mention_catch_handlers)
3635 (print_recreate_catch_handlers): Remove.
3636 (create_ada_exception_catchpoint): Update.
3637 (initialize_ada_catchpoint_ops): Update.
3639 2019-10-02 Tom Tromey <tromey@adacore.com>
3641 * ada-lang.c (ada_lookup_simple_minsyms): Remove.
3642 (create_excep_cond_exprs): Simplify exception string computation.
3643 (ada_exception_catchpoint_cond_string): Likewise.
3645 2019-10-02 Tom Tromey <tromey@adacore.com>
3647 * symmisc.c (dump_msymbols): Don't use MSYMBOL_VALUE_ADDRESS.
3648 * ada-lang.c (lesseq_defined_than): Handle
3650 * dwarf2read.c (dwarf2_per_objfile): Add can_copy
3652 (dwarf2_has_info): Likewise.
3653 (new_symbol): Set maybe_copied on symbol when
3655 * dwarf2read.h (dwarf2_per_objfile): Add can_copy
3657 <can_copy>: New member.
3658 * elfread.c (record_minimal_symbol): Set maybe_copied
3659 on symbol when appropriate.
3660 (elf_symfile_read): Update call to dwarf2_has_info.
3661 * minsyms.c (lookup_minimal_symbol_linkage): New
3663 * minsyms.h (lookup_minimal_symbol_linkage): Declare.
3664 * symtab.c (get_symbol_address, get_msymbol_address):
3666 * symtab.h (get_symbol_address, get_msymbol_address):
3668 (SYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_ADDRESS): Handle
3670 (struct symbol, struct minimal_symbol) <maybe_copied>:
3673 2019-10-02 Tom Tromey <tromey@adacore.com>
3675 * source.c (struct current_source_location): New.
3676 (current_source_key): New global.
3677 (current_source_symtab, current_source_line)
3678 (current_source_pspace): Remove.
3679 (get_source_location): New function.
3680 (get_current_source_symtab_and_line)
3681 (set_default_source_symtab_and_line)
3682 (set_current_source_symtab_and_line)
3683 (clear_current_source_symtab_and_line, select_source_symtab)
3684 (info_source_command, print_source_lines_base)
3685 (info_line_command, search_command_helper, _initialize_source):
3688 2019-10-02 Tom Tromey <tromey@adacore.com>
3690 * source.c (select_source_symtab): Don't call
3691 decode_line_with_current_source.
3693 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
3695 * symtab.c (lookup_global_symbol): Search global block.
3697 2019-10-02 Tom Tromey <tromey@adacore.com>
3699 * coffread.c (process_coff_symbol): Update.
3700 * dwarf2read.c (var_decode_location, new_symbol): Update.
3701 * mdebugread.c (parse_symbol): Update.
3702 * objfiles.c (relocate_one_symbol): Update.
3703 * stabsread.c (define_symbol, fix_common_block)
3704 (scan_file_globals): Update.
3705 * symtab.h (SYMBOL_VALUE_ADDRESS): Expand to an rvalue.
3706 (SET_SYMBOL_VALUE_ADDRESS): New macro.
3707 * xcoffread.c (process_xcoff_symbol): Update.
3709 2019-10-02 Andreas Arnez <arnez@linux.ibm.com>
3711 * MAINTAINERS: Update my email address.
3713 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
3715 * dwarf2read.c (struct type_unit_group) <tus>: Convert to
3717 (build_type_psymtabs_reader): Update for std::vector.
3718 (build_type_psymtab_dependencies): Likewise.
3719 * dwarf2read.h: Remove use of DEF_VEC_P.
3720 (typedef sig_type_ptr): Delete.
3722 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
3724 * btrace.c (btrace_maint_clear): Update to handle change from VEC
3726 (btrace_maint_decode_pt): Likewise, and move allocation of the
3727 vector outside of the loop.
3728 (btrace_maint_update_packets): Update to handle change from VEC to
3730 (btrace_maint_print_packets): Likewise.
3731 (maint_info_btrace_cmd): Likewise.
3732 * btrace.h: Remove use of DEF_VEC_O.
3733 (typedef btrace_pt_packet_s): Delete.
3734 (struct btrace_maint_info) <packets>: Change fromm VEC to
3736 * gdbsupport/btrace-common.h: Remove 'vec.h' include.
3738 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
3740 * btrace.c (btrace_compute_ftrace_bts): Update for std::vector,
3741 make accesses into the vector constant references.
3742 (btrace_add_pc): Update for std::vector.
3743 (btrace_stitch_bts): Likewise.
3744 (parse_xml_btrace_block): Likewise.
3745 (btrace_maint_update_packets): Likewise.
3746 (btrace_maint_print_packets): Likewise.
3747 (maint_info_btrace_cmd): Likewise.
3748 * gdbsupport/btrace-common.c (btrace_data::fini): Update for
3750 (btrace_data::empty): Likewise.
3751 (btrace_data_append): Likewise.
3752 * gdbsupport/btrace-common.h: Remove use of DEF_VEC_O.
3753 (typedef btrace_block_s): Delete.
3754 (struct btrace_block): Add constructor.
3755 (struct btrace_data_bts) <blocks>: Change to std::vector.
3756 * nat/linux-btrace.c (perf_event_read_bts): Update for
3758 (linux_read_bts): Likewise.
3760 2019-10-01 Tom Tromey <tom@tromey.com>
3762 * cli/cli-logging.c (show_logging_filename): Use styled_string.
3764 2019-10-01 Tom Tromey <tom@tromey.com>
3766 * stack.c (print_frame, info_frame_command_core): Use
3768 * linux-thread-db.c (try_thread_db_load_1)
3769 (try_thread_db_load_from_pdir_1): Use styled_string.
3770 * auto-load.c (file_is_auto_load_safe, execute_script_contents)
3771 (auto_load_section_scripts, info_auto_load_local_gdbinit)
3772 (maybe_print_unsupported_script_warning)
3773 (maybe_print_script_not_found_warning): Use styled_string.
3774 * ada-lang.c (user_select_syms): Use styled_string.
3776 2019-10-01 Tom Tromey <tom@tromey.com>
3778 * p-lang.c (pascal_printstr): Use metadata style.
3779 * value.c (show_convenience): Use metadata style.
3780 * valprint.c (valprint_check_validity, val_print_optimized_out)
3781 (val_print_not_saved, val_print_unavailable)
3782 (val_print_invalid_address, generic_val_print, val_print)
3783 (value_check_printable, val_print_array_elements): Use metadata
3785 * ui-out.h (class ui_out) <field_fmt>: New overload.
3786 <do_field_fmt>: Add style parameter.
3787 * ui-out.c (ui_out::field_fmt): New overload.
3788 * typeprint.c (type_print_unknown_return_type)
3789 (val_print_not_allocated, val_print_not_associated): Use metadata
3791 * tui/tui-out.h (class tui_ui_out) <do_field_fmt>: Add style
3793 * tui/tui-out.c (tui_ui_out::do_field_fmt): Update.
3794 * tracepoint.c (tvariables_info_1): Use metadata style.
3795 * stack.c (print_frame_arg, print_frame_info, print_frame)
3796 (info_frame_command_core): Use metadata style.
3797 * skip.c (info_skip_command): Use metadata style.
3798 * rust-lang.c (rust_print_enum): Use metadata style.
3799 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
3801 * python/py-framefilter.c (py_print_single_arg): Use metadata
3803 * printcmd.c (do_one_display, print_variable_and_value): Use
3805 * p-valprint.c (pascal_val_print)
3806 (pascal_object_print_value_fields): Use metadata style.
3807 * p-typeprint.c (pascal_type_print_base): Use metadata style.
3808 * mi/mi-out.h (class mi_ui_out) <do_field_fmt>: Add style
3810 * mi/mi-out.c (mi_ui_out::do_field_fmt): Update.
3811 * m2-valprint.c (m2_print_long_set): Use metadata style.
3812 * m2-typeprint.c (m2_print_type): Use metadata style.
3813 * infcmd.c (print_return_value_1): Use metadata style.
3814 * gnu-v3-abi.c (print_one_vtable): Use metadata style.
3815 * f-valprint.c (info_common_command_for_block): Use metadata
3817 * f-typeprint.c (f_type_print_base): Use metadata style.
3818 * expprint.c (print_subexp_standard): Use metadata style.
3819 * cp-valprint.c (cp_print_value_fields): Use metadata style.
3820 * cli/cli-style.h (class cli_style_option): Add constructor.
3821 (metadata_style): Declare.
3822 * cli/cli-style.c (metadata_style): New global.
3823 (_initialize_cli_style): Register metadata style.
3824 * cli-out.h (class cli_ui_out) <do_field_fmt>: Add style
3826 * cli-out.c (cli_ui_out::do_field_fmt): Update.
3827 * c-typeprint.c (c_type_print_base_struct_union)
3828 (c_type_print_base_1): Use metadata style.
3829 * breakpoint.c (watchpoint_value_print)
3830 (print_one_breakpoint_location): Use metadata style.
3831 * break-catch-syscall.c (print_one_catch_syscall): Use metadata
3833 * break-catch-sig.c (signal_catchpoint_print_one): Use metadata
3835 * ada-valprint.c (val_print_packed_array_elements, printstr)
3836 (print_field_values, ada_val_print_ref, ada_val_print): Use
3838 * ada-typeprint.c (print_array_type, ada_print_type): Use metadata
3840 * ada-tasks.c (print_ada_task_info, info_task): Use metadata
3842 * ada-lang.c (user_select_syms): Use metadata style.
3844 2019-10-01 Tom Tromey <tom@tromey.com>
3846 * cli/cli-cmds.c (pwd_command): Style output.
3848 2019-10-01 Pedro Alves <palves@redhat.com>
3849 Tom Tromey <tom@tromey.com>
3851 * symtab.c (print_symbol_info): Use %ps.
3852 (print_msymbol_info): Use %ps.
3853 * symfile.c (symbol_file_add_with_addrs): Use %ps.
3854 * printcmd.c (print_variable_and_value): Use %ps.
3855 * macrocmd.c (show_pp_source_pos): Use %ps.
3856 * infrun.c (print_exited_reason): Use ui_out::message.
3857 * breakpoint.c (watchpoint_check, print_one_breakpoint_location)
3858 (describe_other_breakpoints): Use ui_out::message and new
3860 (say_where): Use new formats.
3861 (bkpt_print_it, tracepoint_print_one_detail): Use ui_out::message
3864 2019-10-01 Pedro Alves <palves@redhat.com>
3865 Tom Tromey <tom@tromey.com>
3867 * unittests/format_pieces-selftests.c: Add gdb_format parameter.
3868 (test_gdb_formats): New function.
3869 (run_tests): Call it.
3870 (test_format_specifier): Update.
3871 * utils.h (fputs_filtered): Update comment.
3872 (vfprintf_styled, vfprintf_styled_no_gdbfmt)
3873 (fputs_styled_unfiltered): Declare.
3874 * utils.c (fputs_styled_unfiltered): New function.
3875 (vfprintf_maybe_filtered): Add gdbfmt parameter.
3876 (vfprintf_filtered): Update.
3877 (vfprintf_unfiltered, vprintf_filtered): Update.
3878 (vfprintf_styled, vfprintf_styled_no_gdbfmt): New functions.
3879 * ui-out.h (enum ui_out_flag) <unfiltered_output,
3880 disallow_ui_out_field>: New constants.
3881 (enum class field_kind): New.
3882 (struct base_field_s, struct signed_field_s): New.
3883 (signed_field): New function.
3884 (struct string_field_s): New.
3885 (string_field): New function.
3886 (struct styled_string_s): New.
3887 (styled_string): New function.
3888 (class ui_out) <message>: Add comment.
3889 <vmessage, call_do_message>: New methods.
3890 <do_message>: Add style parameter.
3891 * ui-out.c (ui_out::call_do_message, ui_out::vmessage): New
3893 (ui_out::message): Rewrite.
3894 * mi/mi-out.h (class mi_ui_out) <do_message>: Add style
3896 * mi/mi-out.c (mi_ui_out::do_message): Add style parameter.
3897 * gdbsupport/format.h (class format_pieces) <format_pieces>: Add
3898 gdb_extensions parameter.
3899 (class format_piece): Add parameter to constructor.
3900 (n_int_args): New field.
3901 * gdbsupport/format.c (format_pieces::format_pieces): Add
3902 gdb_extensions parameter. Handle '*'.
3903 * cli-out.h (class cli_ui_out) <do_message>: Add style parameter.
3904 * cli-out.c (cli_ui_out::do_message): Add style parameter. Call
3905 vfprintf_styled_no_gdbfmt.
3906 (cli_ui_out::do_field_string, cli_ui_out::do_spaces)
3907 (cli_ui_out::do_text, cli_ui_out::field_separator): Allow
3909 * ui-style.h (struct ui_file_style) <ptr>: New method.
3911 2019-10-01 Tom Tromey <tom@tromey.com>
3913 * unittests/format_pieces-selftests.c: Update. Add final format.
3914 * gdbsupport/format.c (format_pieces::format_pieces): Don't add
3915 empty literal pieces.
3917 2019-10-01 Tom Tromey <tom@tromey.com>
3919 * ui-out.h (enum class ui_out_style_kind): Remove.
3920 (class ui_out) <field_string, field_stsream, do_field_string>:
3921 Change type of "style".
3922 * ui-out.c (ui_out::field_core_addr, ui_out::field_stream)
3923 (ui_out::field_string): Update.
3924 * tui/tui-out.h (class tui_ui_out) <do_field_string>: Change type
3926 * tui/tui-out.c (tui_ui_out::do_field_string): Update.
3927 * tracepoint.c (print_one_static_tracepoint_marker): Update.
3928 * stack.c (print_frame_arg, print_frame_info, print_frame):
3930 * source.c (print_source_lines_base): Update.
3931 * solib.c (info_sharedlibrary_command): Update.
3932 * skip.c (info_skip_command): Update.
3933 * record-btrace.c (btrace_call_history_src_line)
3934 (btrace_call_history): Update.
3935 * python/py-framefilter.c (py_print_frame): Update.
3936 * mi/mi-out.h (class mi_ui_out) <do_field_string>: Change type of
3938 * mi/mi-out.c (mi_ui_out::do_table_header)
3939 (mi_ui_out::do_field_signed, mi_ui_out::do_field_unsigned)
3940 (mi_ui_out::do_field_string): Update.
3941 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
3943 * cli-out.h (class cli_ui_out) <do_field_string>: Change type of
3945 * cli-out.c (cli_ui_out::do_table_header)
3946 (cli_ui_out::do_field_signed, cli_ui_out::do_field_unsigned)
3947 (cli_ui_out::do_field_skip, cli_ui_out::do_field_string)
3948 (cli_ui_out::do_field_fmt): Update.
3949 * breakpoint.c (print_breakpoint_location): Update.
3950 (update_static_tracepoint): Update.
3952 2019-10-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3954 * main.c (relocate_gdbinit_path_maybe_in_datadir): Remove std::string
3955 conversion of gdb_datadir.
3956 (captured_main_1): Remove xstrdup when assigning to gdb_datadir,
3957 remove not needed c_str ().
3959 2019-09-30 Ali Tamur <tamur@google.com>
3961 * dwarf2read.c (skip_one_die): Handle DW_FORM_strx forms.
3962 (dwarf2_string_attr): Likewise.
3964 2019-09-30 Ali Tamur <tamur@google.com>
3966 * dwarf2read.c (process_full_comp_unit): Remove whitespace at the EOL.
3967 (process_full_type_unit): Likewise.
3968 (dump_die_shallow): Likewise.
3969 (cu_debug_loc_section): Likewise.
3971 2019-09-28 Christian Biesinger <cbiesinger@google.com>
3973 * minsyms.c (compare_minimal_symbols): Rename to...
3974 (minimal_symbol_is_less_than): ...this, and adjust to STL
3975 conventions (return bool, take arguments as references)
3976 (minimal_symbol_reader::install): Call std::sort instead
3979 2019-09-29 Christian Biesinger <cbiesinger@google.com>
3981 * minsyms.h (msymbol_hash): Document that this is a case-insensitive
3983 * objfiles.h (struct objfile_per_bfd_storage) <demangled_names_hash,
3984 msymbol_hash, msymbol_demangled_hash>: Improve comments.
3986 2019-09-30 Simon Marchi <simon.marchi@polymtl.ca>
3988 * psymtab.c (add_psymbol_to_list): Move comment to psympriv.h.
3989 * psympriv.h (add_psymbol_to_list): Move comment here and update
3992 2019-09-29 Tom de Vries <tdevries@suse.de>
3994 * contrib/cc-with-tweaks.sh (get_tmpdir): New function.
3995 Use $tmpdir/$(basename "$output_file").dwz instead of
3996 "${output_file}.dwz".
3998 2019-09-28 Simon Marchi <simon.marchi@polymtl.ca>
4001 * hppa-linux-nat.c: Include gdbarch.h.
4003 2019-09-26 Christian Biesinger <cbiesinger@google.com>
4005 * blockframe.c (find_pc_partial_function): Change return type to bool.
4006 * elfread.c (elf_gnu_ifunc_resolve_name): Likewise.
4007 * minsyms.c (in_gnu_ifunc_stub): Likewise.
4008 (stub_gnu_ifunc_resolve_name): Likewise.
4009 * symtab.c (compare_filenames_for_search): Likewise.
4010 (compare_glob_filenames_for_search): Likewise.
4011 (matching_obj_sections): Likewise.
4012 (symbol_matches_domain): Likewise.
4013 (find_line_symtab): Change out param EXACT_MATCH to bool *.
4014 (find_line_pc): Change return type to bool.
4015 (find_line_pc_range): Likewise.
4016 (producer_is_realview): Likewise.
4017 * symtab.h (symbol_matches_domain): Likewise.
4018 (find_pc_partial_function): Likewise.
4019 (find_pc_line_pc_range): Likewise.
4020 (in_gnu_ifunc_stub): Likewise.
4021 (struct gnu_ifunc_fns) <gnu_ifunc_resolve_name>: Likewise.
4022 (find_line_pc): Likewise.
4023 (find_line_pc_range): Likewise.
4024 (matching_obj_sections): Likewise.
4025 (find_line_symtab): Change out parameter to bool.
4026 (producer_is_realview): Change return type to bool.
4027 (compare_filenames_for_search): Likewise.
4028 (compare_glob_filenames_for_search): Likewise.
4030 2019-09-26 Tom Tromey <tom@tromey.com>
4032 * Makefile.in (COMMON_SFILES): Remove gdb_usleep.c.
4033 (HFILES_NO_SRCDIR): Remove gdb_usleep.h.
4034 * gdb_usleep.h: Remove.
4035 * gdb_usleep.c: Remove.
4036 * utils.c: Don't include gdb_usleep.h.
4038 2019-09-26 Tom Tromey <tromey@adacore.com>
4040 * python/py-type.c (type_to_type_object): Call check_typedef
4043 2019-09-26 Tom Tromey <tom@tromey.com>
4045 * utils.h (initialize_utils): Don't declare.
4046 * top.c (gdb_init): Don't call initialize_utils.
4047 * utils.c (initialize_utils): Remove. Move contents...
4048 (_initialize_utils): ... here.
4050 2019-09-25 Tom Tromey <tom@tromey.com>
4052 * python/py-objfile.c (objfpy_get_build_id): Use bin2hex.
4053 * utils.h (make_hex_string): Don't declare.
4054 * utils.c (make_hex_string): Remove.
4056 2019-09-24 Tom de Vries <tdevries@suse.de>
4059 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers):
4060 Initialize xstateregs before ptrace PTRACE_GETREGSET call.
4062 2019-09-23 Dimitar Dimitrov <dimitar@dinux.eu>
4064 * NEWS: Mention new simulator port for PRU.
4066 2019-09-23 Christian Biesinger <cbiesinger@google.com>
4068 * ada-exp.y (write_object_remaining): Update.
4069 * ada-lang.c (ada_decode): Return a std::string instead of a char*
4070 and eliminate the static buffer.
4071 (ada_decode_symbol): Update.
4072 (ada_la_decode): Update.
4073 (ada_sniff_from_mangled_name): Update.
4074 (is_valid_name_for_wild_match): Update.
4075 (ada_lookup_name_info::matches): Update and simplify.
4076 (name_matches_regex): Update.
4077 (ada_add_global_exceptions): Update.
4078 * ada-lang.h (ada_decode): Update signature.
4079 * ada-varobj.c (ada_varobj_describe_simple_array_child): Update.
4080 * dwarf-index-write.c (debug_names::insert): Update.
4082 2019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
4084 * solib-svr4.c (svr4_iterate_over_objfiles_in_search_order): Fix
4087 2019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
4089 * breakpoint.h (bp_location) <inserted, permanent, duplicate>:
4090 Change "nonzero" to "true" in documentation.
4092 2019-09-20 Christian Biesinger <cbiesinger@google.com>
4094 * solib-darwin.c (darwin_lookup_lib_symbol): Remove.
4095 (_initialize_darwin_solib): Don't set
4096 darwin_so_ops.lookup_lib_global_symbol.
4097 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets): Call
4098 set_gdbarch_iterate_over_objfiles_in_search_order.
4099 (elf_lookup_lib_symbol): Rename to...
4100 (svr4_iterate_over_objfiles_in_search_order): this, and update
4101 to iterate semantics.
4102 (_initialize_svr4_solib): Don't set lookup_lib_global_symbol.
4103 * solib.c (solib_global_lookup): Remove.
4104 * solist.h (struct target_so_ops): Remove lookup_lib_global_symbol.
4105 (solib_global_lookup): Remove.
4106 * symtab.c (lookup_global_or_static_symbol): Remove call to
4107 solib_global_lookup.
4109 2019-09-20 Joel Brobecker <brobecker@adacore.com>
4111 * NEWS: Move entries about default MI version now being
4112 version 3, and about the GDB/MI fix for multi-location
4113 breakpoints to the "since GDB 8.3" section.
4115 2019-09-20 Joel Brobecker <brobecker@adacore.com>
4119 2019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
4121 * NEWS: Mention that Cell/B.E. debugging support was removed.
4122 * MAINTAINERS: Remove spu target.
4124 * config/djgpp/fnchange.lst: Remove entries for removed files.
4126 * Makefile.in (ALL_TARGET_OBS): Remove solib-spu.o,
4127 spu-multiarch.o, and spu-tdep.o.
4128 (HFILES_NO_SRCDIR): Remove solib-spu.h and spu-tdep.h.
4129 (ALLDEPFILES): Remove solib-spu.c, spu-linux-nat.c,
4130 spu-multiarch.c, and spu-tdep.c.
4131 * spu-linux-nat.c: Remove file.
4132 * spu-multiarch.c: Remove file.
4133 * spu-tdep.c: Remove file.
4134 * spu-tdep.h: Remove file.
4135 * solib-spu.c: Remove file.
4136 * solib-spu.h: Remove file.
4138 * configure.host (powerpc64*-*-linux*): Remove Cell/B.E. support.
4139 * configure.nat (spu-linux): Remove.
4140 * configure.tgt (powerpc*-*-linux*): Remove solib-spu.o and
4141 solib-multiarch.o from gdb_target_obs.
4144 * arch/ppc-linux-common.h (struct ppc_linux_features): Remove "cell"
4146 (ppc_linux_no_features): Update.
4147 * arch/ppc-linux-common.c (ppc_linux_match_description): Remove
4149 * arch/ppc-linux-tdesc.h (tdesc_powerpc_cell32l): Remove declaration.
4150 (tdesc_powerpc_cell64l): Likewise.
4151 * nat/ppc-linux.h (PPC_FEATURE_CELL): Remove.
4152 * ppc-linux-nat.c (ppc_linux_nat_target::read_description): Remove
4154 * ppc-linux-tdep.h: Do not include "solib-spu.h" or "spu-tdep.h".
4155 Do not include "features/rs6000/powerpc-cell32l.c" or
4156 "features/rs6000/powerpc-cell64l.c".
4157 (ppc_linux_spu_section): Remove.
4158 (ppc_linux_core_read_description): Remove Cell/B.E. support.
4159 (spe_context_objfile, spe_context_lm_addr, spe_context_offset,
4160 spe_context_cache_ptid, spe_context_cache_ptid): Remove.
4161 (ppc_linux_spe_context_lookup): Remove.
4162 (ppc_linux_spe_context_inferior_created): Remove.
4163 (ppc_linux_spe_context_solib_loaded): Remove.
4164 (ppc_linux_spe_context_solib_unloaded): Remove.
4165 (ppc_linux_spe_context): Remove.
4166 (struct ppu2spu_cache): Remove.
4167 (ppu2spu_prev_arch, ppu2spu_this_id, ppu2spu_prev_register): Remove.
4168 (struct ppu2spu_data): Remove.
4169 (ppu2spu_unwind_register, ppu2spu_sniffer, ppu2spu_dealloc_cache,
4170 ppu2spu_unwind): Remove.
4171 (ppc_linux_init_abi): Remove Cell/B.E. support.
4172 * rs6000-tdep.h (rs6000_gdbarch_init): Remove Cell/B.E. support.
4174 * features/Makefile (rs6000/powerpc-cell32l-expedite): Remove.
4175 (rs6000/powerpc-cell64l-expedite): Likewise
4176 (WHICH): Remove rs6000/powerpc-cell32l and rs6000/powerpc-cell64l.
4177 (XMLTOC): Remove rs6000/powerpc-cell32l.xml and
4178 rs6000/powerpc-cell64l.xml.
4179 * features/rs6000/powerpc-cell32l.xml: Remove.
4180 * features/rs6000/powerpc-cell64l.xml: Likewise.
4181 * features/rs6000/powerpc-cell32l.c: Remove generated file.
4182 * features/rs6000/powerpc-cell64l.c: Likewise.
4183 * regformats/rs6000/powerpc-cell32l.dat: Remove generated file.
4184 * regformats/rs6000/powerpc-cell64l.dat: Likewise.
4185 * regformats/reg-spu.dat: Remove.
4187 * target.h (enum target_object): Remove TARGET_OBJECT_SPU.
4188 * corelow.c (struct spuid_list): Remove.
4189 (add_to_spuid_list): Remove.
4190 (core_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
4191 * remote.c (PACKET_qXfer_spu_read, PACKET_qXfer_spu_write): Remove.
4192 (remote_protocol_features): Remove associated entries.
4193 (_initialize_remote): No longer initialize them.
4194 (remote_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
4195 * linux-nat.c (SPUFS_MAGIC): Remove.
4196 (linux_proc_xfer_spu): Remove.
4197 (spu_enumerate_spu_ids): Remove.
4198 (linux_nat_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
4199 * linux-tdep.c (-linux_spu_make_corefile_notes): Remove.
4200 (linux_make_corefile_notes): No longer call it.
4202 * regcache.c (cooked_read_test): Remove bfd_arch_spu special case.
4203 (cooked_write_test): Likewise.
4205 2019-09-20 Tom Tromey <tom@tromey.com>
4207 * NEWS: Mention case-sensitivity of TUI commands.
4208 * tui/tui-win.c (tui_set_focus_command): Now case-sensitive.
4209 (tui_set_win_height_command, parse_scrolling_args): Likewise.
4210 * tui/tui-layout.c (tui_layout_command): Now case-sensitive.
4212 2019-09-20 Tom Tromey <tom@tromey.com>
4214 * tui/tui-source.c (tui_source_window::set_contents): Use
4215 make_unique_xstrdup.
4216 * tui/tui-disasm.c (tui_disasm_window::set_contents): Use
4217 make_unique_xstrdup.
4219 2019-09-20 Tom Tromey <tom@tromey.com>
4221 * tui/tui-data.c: Remove separator comments.
4222 * tui/tui-layout.c: Remove separator comments.
4223 * tui/tui-win.c: Remove separator comments.
4224 * tui/tui-wingeneral.c: Remove separator comments.
4226 2019-09-20 Tom Tromey <tom@tromey.com>
4228 * tui/tui.h (strcat_to_buf): Don't declare.
4229 * tui/tui.c (strcat_to_buf): Remove.
4231 2019-09-20 Tom Tromey <tom@tromey.com>
4233 * tui/tui-source.h (struct tui_source_window) <m_fullname>: Rename
4235 * tui/tui-source.c (tui_source_window::set_contents)
4236 (tui_source_window::location_matches_p)
4237 (tui_source_window::maybe_update): Update.
4239 2019-09-20 Tom Tromey <tom@tromey.com>
4241 * tui/tui-regs.h (struct tui_data_window) <get_current_group>:
4243 <m_regs_content, m_regs_column_count, m_current_group>: Add "m_"
4245 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
4246 (tui_data_window::line_from_reg_element_no)
4247 (tui_data_window::first_reg_element_no_inline)
4248 (tui_data_window::show_registers)
4249 (tui_data_window::show_register_group)
4250 (tui_data_window::display_registers_from)
4251 (tui_data_window::display_registers_from_line)
4252 (tui_data_window::first_data_item_displayed)
4253 (tui_data_window::delete_data_content_windows)
4254 (tui_data_window::erase_data_content)
4255 (tui_data_window::do_scroll_vertical)
4256 (tui_data_window::refresh_window)
4257 (tui_data_window::check_register_values): Update.
4259 2019-09-20 Tom Tromey <tom@tromey.com>
4261 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN): Remove define.
4262 (struct tui_locator_window) <full_name, proc_name>: Now
4264 * tui/tui-stack.c (tui_locator_window::make_status_line)
4265 (tui_locator_window::set_locator_fullname)
4266 (tui_locator_window::set_locator_info): Update.
4267 * tui/tui-source.c (tui_source_window::set_contents)
4268 (tui_source_window::showing_source_p): Update.
4270 2019-09-20 Tom Tromey <tom@tromey.com>
4272 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
4273 Don't call tui_locator_win_info_ptr.
4275 2019-09-20 Tom Tromey <tom@tromey.com>
4277 * tui/tui-win.c (tui_resize_all): Don't call refresh.
4279 2019-09-20 Tom Tromey <tom@tromey.com>
4281 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use 1 as
4283 * tui/tui-stack.c (tui_locator_window::rerender): Call scrollok.
4284 * tui/tui-layout.c (show_source_disasm_command, show_data)
4285 (show_source_or_disasm_and_command): Use 1 as height for locator.
4287 2019-09-20 Tom Tromey <tom@tromey.com>
4289 * tui/tui.c (tui_enable): Update.
4290 * tui/tui-win.c (tui_sigwinch_handler, tui_async_resize_screen):
4292 * tui/tui-data.h (tui_win_resized, tui_set_win_resized_to):
4294 * tui/tui-data.c (win_resized): Now bool.
4295 (tui_win_resized): Return bool.
4296 (tui_set_win_resized_to): Accept a bool.
4298 2019-09-20 Tom Tromey <tom@tromey.com>
4300 * tui/tui-regs.h (struct tui_data_window) <show_register_group>:
4301 Change type of "refresh_values_only".
4302 * tui/tui-regs.c (tui_data_window::show_register_group): Change
4303 type of "refresh_values_only".
4305 2019-09-20 Tom Tromey <tom@tromey.com>
4307 * tui/tui-disasm.c (struct tui_asm_line) <addr_string, insn>: Now
4309 (tui_disassemble): Add "pos" parameter.
4310 (tui_disasm_window::set_contents): Simplify.
4312 2019-09-20 Tom Tromey <tom@tromey.com>
4314 * tui/tui-winsource.h (struct tui_source_window_base)
4315 <show_source_content>: Now private.
4316 * tui/tui-winsource.c
4317 (tui_source_window_base::show_source_content): Don't handle empty
4320 2019-09-20 Tom Tromey <tom@tromey.com>
4322 * tui/tui-layout.c (show_source_disasm_command)
4323 (show_source_or_disasm_and_command): Don't call
4324 show_source_content.
4326 2019-09-20 Tom Tromey <tom@tromey.com>
4328 * tui/tui-stack.h (struct tui_locator_window) <make_status_line>:
4330 * tui/tui-stack.c (tui_locator_window::make_status_line): Rename
4331 from tui_make_status_line.
4332 (tui_locator_window::rerender): Update.
4334 2019-09-20 Tom Tromey <tom@tromey.com>
4336 * tui/tui-stack.c (tui_make_status_line): Return std::string.
4337 (tui_locator_window::rerender): Update.
4339 2019-09-20 Tom Tromey <tom@tromey.com>
4341 * tui/tui-winsource.h (struct tui_source_window_base)
4342 <~tui_source_window_base>: Don't declare.
4344 * tui/tui-winsource.c (~tui_source_window_base): Remove.
4345 * tui/tui-source.h (struct tui_source_window) <fullname>: New
4347 * tui/tui-source.c (tui_source_window::set_contents): Update.
4348 (tui_source_window::location_matches_p)
4349 (tui_source_window::maybe_update): Update.
4351 2019-09-20 Tom Tromey <tom@tromey.com>
4353 * tui/tui-winsource.h (~tui_source_element): Remove.
4354 (tui_source_element): Update.
4355 (struct tui_source_element) <line>: Now a unique_xmalloc_ptr.
4356 * tui/tui-winsource.c (tui_show_source_line): Update.
4357 * tui/tui-source.c (tui_source_window::set_contents): Update.
4358 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
4360 2019-09-20 Tom Tromey <tom@tromey.com>
4362 * tui/tui-data.h (tui_clear_source_windows_detail): Don't
4364 * tui/tui-layout.c (tui_add_win_to_layout): Don't call
4365 tui_clear_source_windows_detail.
4366 * tui/tui-winsource.h (struct tui_source_window_base)
4367 <clear_detail>: Don't declare.
4368 * tui/tui-winsource.c (tui_source_window_base::clear_detail):
4370 * tui/tui-data.c (tui_clear_source_windows_detail): Remove.
4372 2019-09-20 Tom Tromey <tromey@adacore.com>
4375 * block.c (contained_in): Fix final return value.
4377 2019-09-20 Alan Modra <amodra@gmail.com>
4379 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Use bfd_set_usrdata.
4380 * dwarf2read.c (dwarf2_read_gdb_index, dwarf2_read_debug_names),
4381 (read_indirect_string_from_dwz): Use bfd accessor.
4382 * dwarf2read.h (struct dwz_file <filename>): Likewise.
4383 * machoread.c (macho_symfile_read_all_oso): Likewise.
4384 * solib.c (solib_bfd_open): Likewise.
4386 2019-09-19 Christian Biesinger <cbiesinger@google.com>
4388 * eval.c: Move declaration of overload_resolution to...
4391 2019-09-19 Christian Biesinger <cbiesinger@google.com>
4393 * arm-linux-nat.c: Remove extern declaration for arm_apcs_32.
4394 * arm-linux-tdep.c: Likewise.
4395 * arm-nbsd-nat.c: Likewise.
4396 * arm-tdep.h: Declare arm_apcs_32.
4397 * arm-tdep.c: Move documentation for arm_apcs_32 to arm-tdep.h.
4399 2019-09-19 Christian Biesinger <cbiesinger@google.com>
4401 * dwarf2loc.c: Remove extern declaration of dwarf_always_disassemble.
4402 * dwarf2read.h: Declare dwarf_always_disassemble.
4404 2019-09-19 Tom de Vries <tdevries@suse.de>
4407 * source-cache.c (source_cache::ensure): Catch exception thrown during
4408 construction of the highlighter.
4410 2019-09-18 Alan Modra <amodra@gmail.com>
4412 * aarch64-linux-tdep.c, * arm-tdep.c, * auto-load.c,
4413 * coff-pe-read.c, * coffread.c, * corelow.c, * dbxread.c,
4414 * dicos-tdep.c, * dwarf2-frame.c, * dwarf2read.c, * elfread.c,
4415 * exec.c, * fbsd-tdep.c, * gcore.c, * gdb_bfd.c, * gdb_bfd.h,
4416 * hppa-tdep.c, * i386-cygwin-tdep.c, * i386-fbsd-tdep.c,
4417 * i386-linux-tdep.c, * jit.c, * linux-tdep.c, * machoread.c,
4418 * maint.c, * mdebugread.c, * minidebug.c, * mips-linux-tdep.c,
4419 * mips-sde-tdep.c, * mips-tdep.c, * mipsread.c, * nto-tdep.c,
4420 * objfiles.c, * objfiles.h, * osabi.c, * ppc-linux-tdep.c,
4421 * ppc64-tdep.c, * record-btrace.c, * record-full.c, * remote.c,
4422 * rs6000-aix-tdep.c, * rs6000-tdep.c, * s390-linux-tdep.c,
4423 * s390-tdep.c, * solib-aix.c, * solib-dsbt.c, * solib-frv.c,
4424 * solib-spu.c, * solib-svr4.c, * solib-target.c,
4425 * spu-linux-nat.c, * spu-tdep.c, * symfile-mem.c, * symfile.c,
4426 * symmisc.c, * symtab.c, * target.c, * windows-nat.c,
4427 * xcoffread.c, * cli/cli-dump.c, * compile/compile-object-load.c,
4428 * mi/mi-interp.c: Update throughout for bfd section macro and
4430 * gcore (gcore_create_callback): Use bfd_set_section_lma.
4431 * spu-tdep.c (spu_overlay_new_objfile): Likewise.
4433 2019-09-18 Tom Tromey <tom@tromey.com>
4436 * tui/tui.c (tui_initialize_readline): Set name of keymap. Do not
4438 (tui_enable): Do not call rl_initialize.
4440 2019-09-18 Christian Groessler <chris@groessler.org>
4442 * alpha-linux-nat.c: Include gdbarch.h.
4444 2019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
4446 * ui-file.c: Include cli/cli-style.h.
4447 (term_cli_styling): Remove cli_styling declaration.
4449 2019-09-18 Alan Modra <amodra@gmail.com>
4451 * arm-tdep.c (arm_record_special_symbol): Update bfd_get_section
4452 to bfd_asymbol_section.
4454 2019-09-18 Alan Modra <amodra@gmail.com>
4456 * amd64-dicos-tdep.c (amd64_dicos_osabi_sniffer): Constify target.
4457 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
4458 * i386-dicos-tdep.c (i386_dicos_osabi_sniffer): Likewise.
4460 2019-09-18 Alan Modra <amodra@gmail.com>
4462 * solib-spu.c (spu_bfd_open): Use bfd_set_filename.
4463 * spu-linux-nat.c (spu_bfd_open): Likewise.
4465 2019-09-18 Christian Biesinger <cbiesinger@google.com>
4467 * dwarf2loc.c: Change extern declaration of dwarf_always_disassemble
4468 to bool to match definition in dwarf2read.c.
4470 2019-09-17 Christian Biesinger <cbiesinger@google.com>
4472 * ada-lang.c (ada_ignore_descriptive_types_p): Change to bool.
4473 (print_signatures): Likewise.
4474 (trust_pad_over_xvs): Likewise.
4475 * arch/aarch64-insn.c (aarch64_debug): Likewise.
4476 * arch/aarch64-insn.h (aarch64_debug): Likewise.
4477 * arm-linux-nat.c (arm_apcs_32): Likewise.
4478 * arm-linux-tdep.c (arm_apcs_32): Likewise.
4479 * arm-nbsd-nat.c (arm_apcs_32): Likewise.
4480 * arm-tdep.c (arm_debug): Likewise.
4481 (arm_apcs_32): Likewise.
4482 * auto-load.c (debug_auto_load): Likewise.
4483 (auto_load_gdb_scripts): Likewise.
4484 (global_auto_load): Likewise.
4485 (auto_load_local_gdbinit): Likewise.
4486 (auto_load_local_gdbinit_loaded): Likewise.
4487 * auto-load.h (global_auto_load): Likewise.
4488 (auto_load_local_gdbinit): Likewise.
4489 (auto_load_local_gdbinit_loaded): Likewise.
4490 * breakpoint.c (disconnected_dprintf): Likewise.
4491 (breakpoint_proceeded): Likewise.
4492 (automatic_hardware_breakpoints): Likewise.
4493 (always_inserted_mode): Likewise.
4494 (target_exact_watchpoints): Likewise.
4495 (_initialize_breakpoint): Update.
4496 * breakpoint.h (target_exact_watchpoints): Change to bool.
4497 * btrace.c (maint_btrace_pt_skip_pad): Likewise.
4498 * cli/cli-cmds.c (trace_commands): Likewise.
4499 * cli/cli-cmds.h (trace_commands): Likewise.
4500 * cli/cli-decode.c (add_setshow_boolean_cmd): Change int* argument
4502 * cli/cli-logging.c (logging_overwrite): Change to bool.
4503 (logging_redirect): Likewise.
4504 (debug_redirect): Likewise.
4505 * cli/cli-option.h (option_def) <boolean>: Change return type to bool*.
4506 (struct boolean_option_def) <get_var_address_cb_>: Change return type
4508 <boolean_option_def>: Update.
4509 (struct flag_option_def): Change default type of Context to bool
4511 <flag_option_def>: Change return type of var_address_cb_ to bool*.
4512 * cli/cli-setshow.c (do_set_command): Cast to bool* instead of int*.
4513 (get_setshow_command_value_string): Likewise.
4514 * cli/cli-style.c (cli_styling): Change to bool.
4515 (source_styling): Likewise.
4516 * cli/cli-style.h (source_styling): Likewise.
4517 (cli_styling): Likewise.
4518 * cli/cli-utils.h (struct qcs_flags) <quiet, cont, silent>: Change
4520 * command.h (var_types): Update comment.
4521 (add_setshow_boolean_cmd): Change int* var argument to bool*.
4522 * compile/compile-cplus-types.c (debug_compile_cplus_types): Change to
4524 (debug_compile_cplus_scopes): Likewise.
4525 * compile/compile-internal.h (compile_debug): Likewise.
4526 * compile/compile.c (compile_debug): Likewise.
4527 (struct compile_options) <raw>: Likewise.
4528 * cp-support.c (catch_demangler_crashes): Likewise.
4529 * cris-tdep.c (usr_cmd_cris_version_valid): Likewise.
4530 (usr_cmd_cris_dwarf2_cfi): Likewise.
4531 * csky-tdep.c (csky_debug): Likewise.
4532 * darwin-nat.c (enable_mach_exceptions): Likewise.
4533 * dcache.c (dcache_enabled_p): Likewise.
4534 * defs.h (info_verbose): Likewise.
4535 * demangle.c (demangle): Likewise.
4536 (asm_demangle): Likewise.
4537 * dwarf-index-cache.c (debug_index_cache): Likewise.
4538 * dwarf2-frame.c (dwarf2_frame_unwinders_enabled_p): Likewise.
4539 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Likewise.
4540 * dwarf2read.c (check_physname): Likewise.
4541 (use_deprecated_index_sections): Likewise.
4542 (dwarf_always_disassemble): Likewise.
4543 * eval.c (overload_resolution): Likewise.
4544 * event-top.c (set_editing_cmd_var): Likewise.
4545 (exec_done_display_p): Likewise.
4546 * event-top.h (set_editing_cmd_var): Likewise.
4547 (exec_done_display_p): Likewise.
4548 * exec.c (write_files): Likewise.
4549 * fbsd-nat.c (debug_fbsd_lwp): Likewise
4550 (debug_fbsd_nat): Likewise.
4551 * frame.h (struct frame_print_options) <print_raw_frame_arguments>:
4553 (struct set_backtrace_options) <backtrace_past_main>: Likewise.
4554 <backtrace_past_entry> Likewise.
4555 * gdb-demangle.h (demangle): Likewise.
4556 (asm_demangle): Likewise.
4557 * gdb_bfd.c (bfd_sharing): Likewise.
4558 * gdbcore.h (write_files): Likewise.
4559 * gdbsupport/common-debug.c (show_debug_regs): Likewise.
4560 * gdbsupport/common-debug.h (show_debug_regs): Likewise.
4561 * gdbthread.h (print_thread_events): Likewise.
4562 * gdbtypes.c (opaque_type_resolution): Likewise.
4563 (strict_type_checking): Likewise.
4564 * gnu-nat.c (gnu_debug_flag): Likewise.
4565 * guile/scm-auto-load.c (auto_load_guile_scripts): Likewise.
4566 * guile/scm-param.c (pascm_variable): Add boolval.
4567 (add_setshow_generic): Update.
4568 (pascm_param_value): Update.
4569 (pascm_set_param_value_x): Update.
4570 * hppa-tdep.c (hppa_debug): Change to bool..
4571 * infcall.c (may_call_functions_p): Likewise.
4572 (coerce_float_to_double_p): Likewise.
4573 (unwind_on_signal_p): Likewise.
4574 (unwind_on_terminating_exception_p): Likewise.
4575 * infcmd.c (startup_with_shell): Likewise.
4576 * inferior.c (print_inferior_events): Likewise.
4577 * inferior.h (startup_with_shell): Likewise.
4578 (print_inferior_events): Likewise.
4579 * infrun.c (step_stop_if_no_debug): Likewise.
4580 (detach_fork): Likewise.
4581 (debug_displaced): Likewise.
4582 (disable_randomization): Likewise.
4583 (non_stop): Likewise.
4584 (non_stop_1): Likewise.
4585 (observer_mode): Likewise.
4586 (observer_mode_1): Likewise.
4587 (set_observer_mode): Update.
4588 (sched_multi): Change to bool.
4589 * infrun.h (debug_displaced): Likewise.
4590 (sched_multi): Likewise.
4591 (step_stop_if_no_debug): Likewise.
4592 (non_stop): Likewise.
4593 (disable_randomization): Likewise.
4594 * linux-tdep.c (use_coredump_filter): Likewise.
4595 (dump_excluded_mappings): Likewise.
4596 * linux-thread-db.c (auto_load_thread_db): Likewise.
4597 (check_thread_db_on_load): Likewise.
4598 * main.c (captured_main_1): Update.
4599 * maint-test-options.c (struct test_options_opts) <flag_opt, xx1_opt,
4600 xx2_opt, boolean_opt>: Change to bool.
4601 * maint-test-settings.c (maintenance_test_settings_boolean): Likewise.
4602 * maint.c (maintenance_profile_p): Likewise.
4603 (per_command_time): Likewise.
4604 (per_command_space): Likewise.
4605 (per_command_symtab): Likewise.
4606 * memattr.c (inaccessible_by_default): Likewise.
4607 * mi/mi-main.c (mi_async): Likewise.
4608 (mi_async_1): Likewise.
4609 * mips-tdep.c (mips64_transfers_32bit_regs_p): Likewise.
4610 * nat/fork-inferior.h (startup_with_shell): Likewise.
4611 * nat/linux-namespaces.c (debug_linux_namespaces): Likewise.
4612 * nat/linux-namespaces.h (debug_linux_namespaces): Likewise.
4613 * nios2-tdep.c (nios2_debug): Likewise.
4614 * or1k-tdep.c (or1k_debug): Likewise.
4615 * parse.c (parser_debug): Likewise.
4616 * parser-defs.h (parser_debug): Likewise.
4617 * printcmd.c (print_symbol_filename): Likewise.
4618 * proc-api.c (procfs_trace): Likewise.
4619 * python/py-auto-load.c (auto_load_python_scripts): Likewise.
4620 * python/py-param.c (union parmpy_variable): Add "bool boolval" field.
4621 (set_parameter_value): Update.
4622 (add_setshow_generic): Update.
4623 * python/py-value.c (copy_py_bool_obj): Change argument from int*
4625 * python/python.c (gdbpy_parameter_value): Cast to bool* instead of
4627 * ravenscar-thread.c (ravenscar_task_support): Change to bool.
4628 * record-btrace.c (record_btrace_target::store_registers): Update.
4629 * record-full.c (record_full_memory_query): Change to bool.
4630 (record_full_stop_at_limit): Likewise.
4631 * record-full.h (record_full_memory_query): Likewise.
4632 * remote-notif.c (notif_debug): Likewise.
4633 * remote-notif.h (notif_debug): Likewise.
4634 * remote.c (use_range_stepping): Likewise.
4635 (interrupt_on_connect): Likewise.
4636 (remote_break): Likewise.
4637 * ser-tcp.c (tcp_auto_retry): Likewise.
4638 * ser-unix.c (serial_hwflow): Likewise.
4639 * skip.c (debug_skip): Likewise.
4640 * solib-aix.c (solib_aix_debug): Likewise.
4641 * spu-tdep.c (spu_stop_on_load_p): Likewise.
4642 (spu_auto_flush_cache_p): Likewise.
4643 * stack.c (struct backtrace_cmd_options) <full, no_filters, hide>:
4645 (struct info_print_options) <quiet>: Likewise.
4646 * symfile-debug.c (debug_symfile): Likewise.
4647 * symfile.c (auto_solib_add): Likewise.
4648 (separate_debug_file_debug): Likewise.
4649 * symfile.h (auto_solib_add): Likewise.
4650 (separate_debug_file_debug): Likewise.
4651 * symtab.c (basenames_may_differ): Likewise.
4652 (struct filename_partial_match_opts) <dirname, basename>: Likewise.
4653 (struct info_print_options) <quiet, exclude_minsyms>: Likewise.
4654 (struct info_types_options) <quiet>: Likewise.
4655 * symtab.h (demangle): Likewise.
4656 (basenames_may_differ): Likewise.
4657 * target-dcache.c (stack_cache_enabled_1): Likewise.
4658 (code_cache_enabled_1): Likewise.
4659 * target.c (trust_readonly): Likewise.
4660 (may_write_registers): Likewise.
4661 (may_write_memory): Likewise.
4662 (may_insert_breakpoints): Likewise.
4663 (may_insert_tracepoints): Likewise.
4664 (may_insert_fast_tracepoints): Likewise.
4665 (may_stop): Likewise.
4666 (auto_connect_native_target): Likewise.
4667 (target_stop_and_wait): Update.
4668 (target_async_permitted): Change to bool.
4669 (target_async_permitted_1): Likewise.
4670 (may_write_registers_1): Likewise.
4671 (may_write_memory_1): Likewise.
4672 (may_insert_breakpoints_1): Likewise.
4673 (may_insert_tracepoints_1): Likewise.
4674 (may_insert_fast_tracepoints_1): Likewise.
4675 (may_stop_1): Likewise.
4676 * target.h (target_async_permitted): Likewise.
4677 (may_write_registers): Likewise.
4678 (may_write_memory): Likewise.
4679 (may_insert_breakpoints): Likewise.
4680 (may_insert_tracepoints): Likewise.
4681 (may_insert_fast_tracepoints): Likewise.
4682 (may_stop): Likewise.
4683 * thread.c (struct info_threads_opts) <show_global_ids>: Likewise.
4684 (make_thread_apply_all_options_def_group): Change argument from int*
4686 (thread_apply_all_command): Update.
4687 (print_thread_events): Change to bool.
4688 * top.c (confirm): Likewise.
4689 (command_editing_p): Likewise.
4690 (history_expansion_p): Likewise.
4691 (write_history_p): Likewise.
4692 (info_verbose): Likewise.
4693 * top.h (confirm): Likewise.
4694 (history_expansion_p): Likewise.
4695 * tracepoint.c (disconnected_tracing): Likewise.
4696 (circular_trace_buffer): Likewise.
4697 * typeprint.c (print_methods): Likewise.
4698 (print_typedefs): Likewise.
4699 * utils.c (debug_timestamp): Likewise.
4700 (sevenbit_strings): Likewise.
4701 (pagination_enabled): Likewise.
4702 * utils.h (sevenbit_strings): Likewise.
4703 (pagination_enabled): Likewise.
4704 * valops.c (overload_resolution): Likewise.
4705 * valprint.h (struct value_print_options) <prettyformat_arrays,
4706 prettyformat_structs, vtblprint, unionprint, addressprint, objectprint,
4707 stop_print_at_null, print_array_indexes, deref_ref, static_field_print,
4708 pascal_static_field_print, raw, summary, symbol_print, finish_print>:
4710 * windows-nat.c (new_console): Likewise.
4711 (cygwin_exceptions): Likewise.
4712 (new_group): Likewise.
4713 (debug_exec): Likewise.
4714 (debug_events): Likewise.
4715 (debug_memory): Likewise.
4716 (debug_exceptions): Likewise.
4717 (useshell): Likewise.
4718 * windows-tdep.c (maint_display_all_tib): Likewise.
4719 * xml-support.c (debug_xml): Likewise.
4721 2019-09-17 Mike Gulick <mgulick@mathworks.com>
4723 * source.c (prepare_path_for_appending): New function.
4724 (openp): Make use of new function.
4725 (find_and_open_source): Search for the compilation directory and
4726 source file as a relative path beneath the directory search path.
4728 2019-09-17 Andrew Burgess <andrew.burgess@embecosm.com>
4730 * source-cache.c (source_cache::get_line_charpos): Catch
4731 exceptions and return false, this matches the behaviour documented
4734 2019-09-17 Joel Brobecker <brobecker@adacore.com>
4736 * ada-tasks.c (info_task): Remove quoting of the task's name.
4738 2019-09-16 Christian Biesinger <cbiesinger@google.com>
4740 * symfile.c (auto_solib_add): Replace comment with a reference
4743 2019-09-14 Christian Biesinger <cbiesinger@google.com>
4745 * NEWS: Mention that gdb can now be compiled with Python 3
4748 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
4750 * maint.c (maint_print_section_data::maint_print_section_data):
4751 Force use of 'float log10 (float)' by casting the argument to
4754 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
4756 * maint.c: Add 'cmath' include.
4757 (struct maint_print_section_data): New structure.
4758 (print_section_index): New function.
4759 (print_bfd_section_info): Add header comment, small whitespace
4760 cleanup, and update to call new print_section_index function.
4761 (print_objfile_section_info): Likewise.
4762 (maint_obj_section_from_bfd_section): New function.
4763 (print_bfd_section_info_maybe_relocated): New function.
4764 (maintenance_info_sections): Add header comment, always use
4765 bfd_map_over_sections instead of ALL_OBJFILE_OSECTIONS.
4767 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
4769 * psymtab.c (find_pc_sect_psymtab): Move baseaddr local into more
4770 inner scope, add check that the objfile has psymtabs before
4771 checking psymtabs_addrmap.
4772 * psymtab.h (psymtab_storage) <psymtabs_addrmap>: Extend comment.
4774 2019-09-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4776 * NEWS: Announce that Ada task names are now shown at more places,
4777 and between quotes (except in info task output).
4778 * gdb/ada-tasks.c (task_to_str): New function.
4779 (display_current_task_id): Call task_to_str.
4780 (task_command_1): Likewise.
4781 (print_ada_task_info): In non-mi mode, Properly align headers and data
4782 when task-id length is > 9 (9 is the default for a 32 bits CORE_ADDR).
4784 2019-09-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4786 * procfs.c (procfs_target::wait) <PR_FAULTED>: Get signal from
4787 prstatus.pr_lwp.pr_info instead of making it up.
4789 2019-09-11 Christian Biesinger <cbiesinger@google.com>
4791 * auto-load.c (auto_load_expand_dir_vars): Update.
4792 * defs.h (gdb_datadir): Change to std::string.
4793 (python_libdir): Likewise.
4794 (relocate_gdb_directory): Change return type to std::string.
4795 * guile/guile.c (gdbscm_data_directory): Update.
4796 (initialize_scheme_side): Update.
4797 * jit.c (jit_reader_dir): Change to std::string.
4798 (jit_reader_load_command): Update.
4799 * main.c (gdb_datadir): Change to std::string.
4800 (python_libdir): Likewise.
4801 (set_gdb_data_directory): Update.
4802 (relocate_path): Change to return std::string.
4803 (relocate_gdb_directory): Change to return std::string.
4804 (relocate_gdbinit_path_maybe_in_datadir): Update.
4805 (captured_main_1): Update.
4806 * python/python.c (do_start_initialization): Update.
4807 * top.c (show_gdb_datadir): Update.
4808 * xml-syscall.c (xml_init_syscalls_info): Update.
4809 (init_syscalls_info): Update.
4811 2019-09-11 Christian Biesinger <cbiesinger@google.com>
4813 * main.c (relocate_gdbinit_path_maybe_in_datadir): Factor this code
4814 out of get_init_files.
4815 (get_init_files): Update.
4817 2019-09-11 Christian Biesinger <cbiesinger@google.com>
4819 * main.c (get_init_files): Change to use std::string.
4820 (captured_main_1): Update.
4821 (print_gdb_help): Update.
4823 2019-09-11 Ali Tamur <tamur@google.com>
4825 *gdb/target-float.c (host_float_ops<T>::to_longest): Update
4828 2019-09-11 Christian Biesinger <cbiesinger@google.com>
4830 * dbxread.c (read_dbx_symtab): Update.
4831 * dwarf2read.c (load_partial_dies): Update.
4832 * mdebugread.c (parse_partial_symbols): Update.
4833 (handle_psymbol_enumerators): Update.
4834 * psympriv.h (add_psymbol_to_list): Change type of copy_names to bool.
4835 * psymtab.c (add_psymbol_to_bcache): Likewise.
4836 (add_psymbol_to_list): Likewise.
4837 * symtab.c (symbol_set_names): Likewise.
4838 * symtab.h (symbol_set_names): Likewise.
4839 * xcoffread.c (scan_xcoff_symtab): Update.
4841 2019-09-11 Tom Tromey <tom@tromey.com>
4843 * symfile-mem.c (symbol_file_add_from_memory): Use
4845 * solib-darwin.c (darwin_bfd_open): Use bfd_set_filename.
4846 * solib-aix.c (solib_aix_bfd_open): Use bfd_set_filename.
4848 2019-09-10 Tom Tromey <tromey@adacore.com>
4850 * dwarf-index-write.c (write_psymbols): Extend error message.
4851 (debug_names::insert): Add Ada code.
4852 (debug_names::write_psymbols): Remove Ada check.
4853 (debug_names) <m_string_obstack>: New member.
4854 * dwarf2read.c (gdb_index_symbol_name_matcher): Remove.
4855 (gdb_index_symbol_name_matcher::matches): Remove.
4856 (mapped_index_base::find_name_components_bounds): Add "lang"
4858 (mapped_index_base::build_name_components): Also split names
4859 according to Ada syntax.
4860 (dw2_expand_symtabs_matching_symbol): Loop over languages. Change
4861 type of "match_callback".
4862 (check_match, check_find_bounds_finds)
4863 (dw2_expand_symtabs_matching): Update.
4864 (dw2_debug_names_iterator): Add new constructor.
4865 (dw2_debug_names_map_matching_symbols): New function.
4866 (dw2_debug_names_expand_symtabs_matching): Update.
4867 (dwarf2_debug_names_functions): Use
4868 dw2_debug_names_map_matching_symbols.
4870 2019-09-10 Tom Tromey <tromey@adacore.com>
4872 * dwarf2read.c (dw2_get_file_names_reader): Add the
4873 CU's file name to the results.
4875 2019-09-10 Tom Tromey <tromey@adacore.com>
4877 * ada-lang.c (add_nonlocal_symbols): Combine calls to
4878 map_matching_symbols. Update.
4879 * dwarf2read.c (dw2_map_matching_symbols): Update.
4880 * psymtab.c (match_partial_symbol): Change type; update.
4881 (psym_map_matching_symbols): Likewise.
4882 * symfile-debug.c (debug_qf_map_matching_symbols): Change
4884 * symfile.h (struct quick_symbol_functions)
4885 <map_matching_symbols>: Change "name" to be a lookup_name_info.
4888 2019-09-10 Tom Tromey <tromey@adacore.com>
4890 * psymtab.c (map_block): Remove.
4891 (psym_map_matching_symbols): Use iterate_over_symbols_terminated.
4892 * symtab.c (iterate_over_symbols_terminated): New function.
4893 * symtab.c (iterate_over_symbols_terminated): Declare.
4895 2019-09-10 Tom Tromey <tromey@adacore.com>
4897 * ada-lang.c (ada_iterate_over_symbols): Return bool.
4898 * language.h (struct language_defn) <la_iterate_over_symbols>:
4900 * symtab.c (iterate_over_symbols): Return bool.
4901 * symtab.h (iterate_over_symbols): Return bool.
4903 2019-09-10 Tom Tromey <tromey@adacore.com>
4905 * ada-lang.c (aux_add_nonlocal_symbols): Change type.
4906 (add_nonlocal_symbols): Update.
4907 * dwarf2read.c (dw2_map_matching_symbols): Change type.
4908 * psymtab.c (map_block, psym_map_matching_symbols): Change type.
4909 * symfile-debug.c (debug_qf_map_matching_symbols): Change type.
4910 * symfile.h (struct quick_symbol_functions) <map_matching_symbols>:
4911 Change type of "callback". Remove "data".
4914 2019-09-09 Ali Tamur <tamur@google.com>
4916 * dwarf2read.c (comp_unit_head): Update comment.
4917 (dwarf2_dwo_name): New function declaration.
4918 (dwarf_unit_type_name): New function declaration.
4919 (read_comp_unit_head): Add support for new compilation units,
4920 DW_UT_partial, DW_UT_skeleton, DW_UT_split_compile, DW_UT_split_type.
4921 Particularly, DW_UT_skeleton and DW_UT_split_compile have dwo_id
4922 (currently named as "signature") in their header. Also clarify error
4924 (lookup_dwo_id): New function. Returns the dwo id of the given
4926 (lookup_dwo_unit): Use the new lookup_dwo_id function.
4927 (init_cutu_and_read_dies): Use the new dwarf2_dwo_name and lookup_dwo_id
4929 (create_dwo_cu_reader): Use the added lookup_dwo_id function.
4930 (dwarf2_dwo_name): Get the dwo name if present.
4931 (dwarf_unit_type_name): Convert DW_UT_* types to string for diagnostic
4934 2019-09-09 Tom Tromey <tom@tromey.com>
4936 * tui/tui-win.c (tui_all_windows_info): Use ui_out.
4938 2019-09-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4940 * python/python.c (do_start_initialization): Make progname_copy static,
4941 to avoid a leak report.
4943 2019-09-08 Tom Tromey <tom@tromey.com>
4945 * tui/tui-wingeneral.c (box_win): Truncate long window titles.
4947 2019-09-07 Simon Marchi <simon.marchi@efficios.com>
4949 * dwarf2read.c (struct dw2_symtab_iterator) <block_index>:
4950 Change type to gdb::optional<block_enum>.
4951 (dw2_symtab_iter_init): Change block_index parameter type
4952 to gdb::optional<block_enum>.
4953 (dw2_lookup_symbol): Change block_index parameter
4954 type to block_enum.c
4955 (dw2_debug_names_lookup_symbol): Likewise.
4956 * psymtab.c (psym_lookup_symbol): Likewise.
4957 * symfile-debug.c (debug_qf_lookup_symbol): Likewise.
4958 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
4961 2019-09-06 Christian Biesinger <cbiesinger@google.com>
4963 * defs.h (relocate_gdb_directory): Change int to bool in
4964 signature and rename flag to relocatable.
4965 * main.c (relocate_path): Likewise.
4966 (relocate_gdb_directory): Likewise.
4968 2019-09-06 Alan Modra <amodra@gmail.com>
4970 * coffread.c (coff_symfile_read): Constify filename variable.
4971 * dbxread.c (dbx_symfile_init, coffstab_build_psymtabs),
4972 (elfstab_build_psymtabs, stabsect_build_psymtabs): Likewise.
4973 * gdb_bfd.c (gdb_bfd_close_or_warn): Likewise.
4974 * solib.c (reload_shared_libraries_1): Likewise.
4975 * symfile.c (reread_symbols): Likewise.
4976 * solib-aix.c (solib_aix_bfd_open): Add cast for xfree of filename.
4977 * solib-darwin.c (darwin_bfd_open): Likewise.
4978 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
4980 2019-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
4982 * psymtab.c (print_partial_symbols): Handle missing domain_enum
4983 values MODULE_DOMAIN and COMMON_BLOCK_DOMAIN.
4985 2019-09-03 Tom Tromey <tromey@adacore.com>
4987 * ada-valprint.c (ada_val_print_num): Don't recurse for range
4989 (has_negatives): Unbias a range type bound.
4990 * dwarf2read.c (read_subrange_type): Handle DW_AT_GNU_bias.
4991 * gdbtypes.c (operator==): Handle new field.
4992 (create_range_type): Add "bias" parameter.
4993 (create_static_range_type, resolve_dynamic_range): Update.
4994 * gdbtypes.h (struct range_bounds) <bias>: New member.
4995 (create_range_type): Add bias parameter.
4996 * printcmd.c (print_scalar_formatted): Unbias range types.
4997 * value.c (unpack_long): Unbias range types.
4998 (pack_long): Bias range types.
5000 2019-09-02 Alan Hayward <alan.hayward@arm.com>
5002 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Check all
5005 2019-09-02 Alan Hayward <alan.hayward@arm.com>
5007 * break-catch-throw.c (fetch_probe_arguments): Use gdbarch.
5008 * dtrace-probe.c (dtrace_probe::get_argument_count): Likewise.
5009 * probe.c (probe_safe_evaluate_at_pc) (compute_probe_arg)
5010 (compile_probe_arg): Likewise.
5011 * probe.h (get_argument_count): Likewise.
5012 * solib-svr4.c (solib_event_probe_action): Likewise.
5013 * stap-probe.c (stap_probe::get_argument_count): Likewise.
5015 2019-09-02 Alan Hayward <alan.hayward@arm.com>
5017 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Move
5019 (svr4_create_solib_event_breakpoints): ...from here.
5021 2019-08-30 Sergio Durigan Junior <sergiodj@redhat.com>
5023 * nat/fork-inferior.c (trace_start_error): Remove "\nError: "
5024 suffix from warning message.
5026 2019-08-30 Tom Tromey <tom@tromey.com>
5028 * tui/tui-winsource.h (struct tui_source_window_base)
5029 <refresh_all>: Don't declare.
5030 * tui/tui-winsource.c (tui_source_window_base::refresh_all):
5032 * tui/tui-win.c (tui_refresh_all_win): Don't call refresh_all or
5033 tui_show_locator_content.
5034 * tui/tui-regs.h (struct tui_data_window) <refresh_all>: Don't
5036 * tui/tui-regs.c (tui_data_window::refresh_all): Remove.
5037 * tui/tui-data.h (struct tui_win_info) <refresh_all>: Don't
5040 2019-08-30 Tom Tromey <tom@tromey.com>
5042 * tui/tui-io.c (tui_cont_sig): Don't call wrefresh.
5044 2019-08-30 Tom Tromey <tom@tromey.com>
5046 * tui/tui-stack.c (_initialize_tui_stack): Move later.
5047 Remove unnecessary forward declarations.
5049 2019-08-30 Tom Tromey <tom@tromey.com>
5051 * tui/tui-stack.c (tui_locator_window::set_locator_fullname): Call
5053 (tui_update_locator_fullname, tui_show_frame_info): Don't call
5054 tui_show_locator_content.
5056 2019-08-30 Tom Tromey <tom@tromey.com>
5058 * tui/tui-stack.c (tui_show_locator_content): Move lower. Rewrite.
5059 (tui_locator_window::rerender): Rewrite using body of previous
5060 tui_show_locator_content.
5062 2019-08-30 Tom Tromey <tom@tromey.com>
5064 * tui/tui-stack.h (struct tui_locator_window) <set_locator_info,
5065 set_locator_fullname>: New methods.
5066 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
5067 Rename from tui_set_locator_fullname.
5068 (tui_locator_window::set_locator_info): Rename from
5069 tui_set_locator_info. Return bool.
5070 (tui_update_locator_fullname, tui_show_frame_info): Update.
5072 2019-08-30 Tom Tromey <tom@tromey.com>
5074 * tui/tui-layout.c (show_layout): Don't call tui_refresh_all.
5076 2019-08-30 Tom Tromey <tom@tromey.com>
5078 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Don't
5081 2019-08-30 Tom Tromey <tom@tromey.com>
5083 * tui/tui-wingeneral.c (box_win): Assume win_info and
5084 win_info->handle cannot be NULL.
5086 2019-08-30 Tom Tromey <tom@tromey.com>
5088 * tui/tui-regs.h (struct tui_data_item_window) <rerender,
5089 refresh_window>: Declare.
5090 * tui/tui-regs.c (tui_data_window::display_registers_from): Call
5092 (tui_data_item_window::rerender): Rename from
5093 tui_display_register.
5094 (tui_data_item_window::refresh_window): New method.
5095 * tui/tui-layout.c (tui_gen_win_info::resize): Do nothing on
5098 2019-08-30 Tom Tromey <tom@tromey.com>
5100 * tui/tui-regs.h (struct tui_data_window) <regs_content,
5101 regs_column_count, current_group>: Move later. Now private.
5102 <get_current_group>: New method.
5103 * tui/tui-regs.c (tui_reg_command): Update.
5104 * tui/tui-layout.c (tui_set_layout): Update.
5106 2019-08-30 Tom Tromey <tom@tromey.com>
5108 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
5109 (tui_data_window::rerender): Don't call
5110 check_and_display_highlight_if_needed.
5111 (tui_data_window::refresh_all): Remove call to
5114 2019-08-30 Tom Tromey <tom@tromey.com>
5116 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
5117 (tui_data_window::display_registers_from)
5118 (tui_data_window::display_reg_element_at_line)
5119 (tui_data_window::display_registers_from_line): Remove checks of
5122 2019-08-30 Tom Tromey <tom@tromey.com>
5124 * tui/tui-regs.h (struct tui_data_window) <display_all_data>:
5126 * tui/tui-regs.c (tui_data_window::show_registers): Call
5128 (tui_data_window::rerender): Rename from display_all_data.
5129 (tui_data_window::rerender): Remove old implementation.
5131 2019-08-30 Tom Tromey <tom@tromey.com>
5133 * tui/tui-regs.c (tui_data_window::display_all_data): Change
5135 * tui/tui-data.h (NO_DATA_STRING): Remove define.
5137 2019-08-29 Bernhard Wodok <barto@gmx.net>
5138 Sergio Durigan Junior <sergiodj@redhat.com>
5141 * mingw-hdep.c (gdb_select): Handle case when 'n' is zero.
5143 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
5145 * symtab.c (search_symbols): Don't include MODULE_DOMAIN symbols
5146 when searching for types.
5148 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
5150 * f-lang.c (f_language_defn): Use f_print_typedef.
5151 * f-lang.h (f_print_typedef): Declare.
5152 * f-typeprint.c (f_print_typedef): Define.
5154 2019-08-27 Christian Biesinger <cbiesinger@google.com>
5156 * nat/linux-namespaces.c (mnsh_main): Initialize fd (to -1).
5158 2019-08-27 Andrew Burgess <andrew.burgess@embecosm.com>
5160 * cli/cli-utils.c (info_print_options_defs): Delete.
5161 (make_info_print_options_def_group): Delete.
5162 (extract_info_print_options): Delete.
5163 (info_print_command_completer): Delete.
5164 (info_print_args_help): Add extra parameter, and optionally
5165 include text about -n flag.
5166 * cli/cli-utils.h (struct info_print_options): Delete.
5167 (extract_info_print_options): Delete declaration.
5168 (info_print_command_completer): Delete declaration.
5169 (info_print_args_help): Add extra parameter, extend header
5171 * python/python.c (gdbpy_rbreak): Pass additional parameter to
5173 * stack.c (struct info_print_options): New type.
5174 (info_print_options_defs): New file scoped variable.
5175 (make_info_print_options_def_group): New static function.
5176 (info_print_command_completer): New static function.
5177 (info_locals_command): Update to use new local functions.
5178 (info_args_command): Likewise.
5179 (_initialize_stack): Add extra parameter to calls to
5180 info_print_args_help.
5181 * symtab.c (search_symbols): Add extra parameter, use this to
5182 possibly excluse non-debug symbols.
5183 (symtab_symbol_info): Add extra parameter, which is passed on to
5185 (struct info_print_options): New type.
5186 (info_print_options_defs): New file scoped variable.
5187 (make_info_print_options_def_group): New static function.
5188 (info_print_command_completer): New static function.
5189 (info_variables_command): Update to use local functions, and pass
5190 extra parameter through to symtab_symbol_info.
5191 (info_functions_command): Likewise.
5192 (info_types_command): Pass additional argument through to
5194 (rbreak_command): Pass extra argument to search_symbols.
5195 (_initialize_symtab): Add extra arguments for calls to
5196 info_print_args_help, and update help text for 'info variables',
5197 'whereis', and 'info functions' commands.
5198 * symtab.h (search_symbols): Add extra argument to declaration.
5199 * NEWS: Mention new flags.
5201 2019-08-26 Christian Biesinger <cbiesinger@google.com>
5203 * symtab.c (lookup_static_symbol): Call the new function (and move
5204 it down to be next to lookup_global_symbol).
5205 (struct global_sym_lookup_data): Add block_enum member and rename to...
5206 (struct global_or_static_sym_lookup_data): ...this.
5207 (lookup_symbol_global_iterator_cb): Pass block_index instead of
5208 GLOBAL_BLOCK to lookup_symbol_in_objfile and rename to...
5209 (lookup_symbol_global_or_static_iterator_cb): ...this.
5210 (lookup_global_or_static_symbol): New function.
5211 (lookup_global_symbol): Call new function.
5213 2019-08-26 Tom de Vries <tdevries@suse.de>
5216 * break-catch-throw.c (fetch_probe_arguments): Improve error mesage
5217 when pc_probe.prob == NULL.
5219 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
5221 * dwarf2read.c (dw2_debug_names_iterator::next): Rename local
5222 variable symbol_linkage to symbol_linkage_.
5224 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
5226 * dwarf2read.c (dw2_debug_names_iterator::next): Use enum to
5227 represent whether the symbol is static, dynamic, or we don't
5230 2019-08-25 Yoshinori Sato <ysato@users.sourceforge.jp>
5232 * gdb/rx-tdep.c (rx_register_names): New.
5233 (rx_register_name): Delete.
5234 (rx_psw_type): Delete.
5235 (rx_fpsw_type): Delete.
5236 (rx_register_type): Delete.
5237 (rx_gdbarch_init): Convert target-descriptions.
5238 (_initialize_rx_tdep): Add initialize_tdesc_rx.
5239 * gdb/features/Makefile: Add rx.xml.
5240 * gdb/features/rx.xml: New.
5241 * gdb/features/rx.c: Generated.
5242 * gdb/NEWS: Mention target description support.
5244 2019-08-22 Christian Biesinger <cbiesinger@google.com>
5246 * symtab.c (symbol_cache_lookup): Always initialize *bsc_ptr and
5249 2019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
5251 * configure.ac: Don't check for 'dlfcn.h' (moved to
5252 gdbsupport/common.m4).
5253 * Makefile.in (COMMON_SFILES): Move 'gdb-dlfcn.c' to
5255 (HFILES_NO_SRCDIR): Likewise, for 'gdb-dlfcn.h'.
5256 * compile/compile-c-support.c: Include
5257 'gdbsupport/gdb-dlfcn.h'.
5258 * gdbsupport/common.m4: Check for 'dlfcn.h'.
5259 * gdb-dlfcn.c: Move to...
5260 * gdbsupport/gdb-dlfcn.c: ... here.
5261 * gdb-dlfcn.h: Move to...
5262 * gdbsupport/gdb-dlfcn.h: ... here.
5264 2019-08-23 Sandra Loosemore <sandra@codesourcery.com>
5266 * nios2-tdep.c (struct reg_value): Improve comments. Make
5267 the offset field signed.
5269 2019-08-22 Christian Biesinger <cbiesinger@google.com>
5271 * python/lib/gdb/__init__.py (_execute_file): New function.
5272 * python/python.c (python_run_simple_file): Call gdb._execute_file
5275 2019-08-22 Andrew Burgess <andrew.burgess@embecosm.com>
5277 * f-exp.y (yylex): Remove is_a_field_of_this local variable, and
5278 all uses as this was never set to anything but a zero value.
5280 2019-08-21 Bogdan Harjoc <harjoc@gmail.com>
5282 * cli/cli-cmds.c (with_command_1): Error out if no arguments.
5284 2019-08-21 Christian Biesinger <cbiesinger@google.com>
5286 * tui/tui-data.h (tui_gen_win_info): Add an =default
5287 move constructor, required by some GCC versions.
5289 2019-08-21 Jinke Fan <fanjinke51@yeah.net>
5291 * go32-nat.c (go32_sysinfo): Add hygon_p.
5293 2019-08-20 Tom Tromey <tom@tromey.com>
5295 * tui/tui-regs.h (struct tui_data_window) <last_regs_line_no,
5296 line_from_reg_element_no, first_reg_element_no_inline,
5297 display_all_data, delete_data_content_windows,
5298 erase_data_content>: Now private.
5300 2019-08-20 Tom Tromey <tom@tromey.com>
5302 * tui/tui-wingeneral.c (box_win): Change type of highlight_flag.
5303 (tui_unhighlight_win, tui_highlight_win)
5304 (tui_win_info::make_window): Update.
5305 * tui/tui-data.h (HILITE, NO_HILITE): Remove.
5307 2019-08-20 Tom Tromey <tom@tromey.com>
5309 * tui/tui-data.h (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
5310 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
5311 (MAX_PID_WIDTH): Move to tui-stack.c.
5312 * tui/tui-stack.c (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
5313 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
5314 (MAX_PID_WIDTH): Move from tui-data.h.
5316 2019-08-20 Tom Tromey <tom@tromey.com>
5318 * tui/tui-wingeneral.h (tui_make_window): Don't declare.
5319 * tui/tui-wingeneral.c (box_win): Change type of win_info.
5321 (tui_gen_win_info::make_window): Rename from tui_make_window.
5322 (tui_win_info::make_window): New method.
5323 (tui_gen_win_info::make_visible): Update.
5324 * tui/tui-source.c (tui_source_window::set_contents): Update.
5325 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
5326 (tui_data_window::display_registers_from): Update.
5327 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
5328 * tui/tui-data.h (struct tui_gen_win_info) <make_window>:
5332 (struct tui_win_info) <make_window>: Declare.
5333 <can_box>: Now virtual.
5334 <title>: New member.
5335 * tui/tui-data.c (~tui_gen_win_info): Don't free title.
5336 * tui/tui-command.c (tui_cmd_window::resize): Update.
5338 2019-08-20 Tom Tromey <tom@tromey.com>
5340 * tui/tui-regs.h (struct tui_data_window) <display_regs>: Remove.
5341 * tui/tui-regs.c (tui_data_window::show_registers): Update.
5342 (tui_data_window::check_register_values): Update.
5344 2019-08-20 Tom Tromey <tom@tromey.com>
5346 * tui/tui-regs.h (struct tui_data_window): Use
5347 DISABLE_COPY_AND_ASSIGN.
5348 <regs_content>: Change type, removing unique_ptr.
5349 <tui_data_window>: Add move constructor.
5350 * tui/tui-regs.c (tui_data_window::show_registers)
5351 (tui_data_window::show_register_group)
5352 (tui_data_window::display_registers_from)
5353 (tui_data_window::display_registers_from)
5354 (tui_data_window::first_data_item_displayed)
5355 (tui_data_window::delete_data_content_windows)
5356 (tui_data_window::rerender, tui_data_window::refresh_window)
5357 (tui_data_window::check_register_values): Update.
5359 2019-08-20 Tom Tromey <tom@tromey.com>
5361 * tui/tui-regs.h (struct tui_data_window) <show_registers,
5362 show_register_group>: Declare.
5363 (tui_show_register_group): Don't declare.
5364 * tui/tui-regs.c (tui_data_window::show_registers): Rename from
5366 (tui_data_window::show_register_group): Rename from
5367 tui_show_register_group.
5368 (tui_data_window::check_register_values, tui_reg_command):
5370 * tui/tui-layout.c (tui_set_layout): Update.
5372 2019-08-20 Tom Tromey <tom@tromey.com>
5374 * tui/tui-regs.h (struct tui_data_window) <check_register_values>:
5376 (tui_check_register_values): Don't declare.
5377 * tui/tui-regs.c (tui_data_window::check_register_values): Rename
5378 from tui_check_register_values.
5379 * tui/tui-hooks.c (tui_register_changed): Update.
5381 2019-08-20 Tom Tromey <tom@tromey.com>
5383 * tui/tui-regs.c (tui_reg_layout): Move later.
5384 (tui_show_registers): Don't enable TUI mode or change layout.
5386 2019-08-20 Tom Tromey <tom@tromey.com>
5388 * tui/tui-regs.h (struct tui_data_item_window)
5389 <~tui_data_item_window>: Remove.
5390 <content>: Now a unique_xmalloc_ptr.
5391 * tui/tui-regs.c (tui_register_format): Return a
5393 (tui_get_register): Update.
5394 (~tui_data_item_window): Remove.
5395 (tui_data_window::display_registers_from, tui_display_register):
5397 * tui/tui-io.h (tui_expand_tabs): Update.
5398 * tui/tui-io.c (tui_expand_tabs): Return a unique_xmalloc_ptr.
5399 Remove "col" parameter.
5401 2019-08-20 Tom Tromey <tom@tromey.com>
5403 * tui/tui-regs.h (struct tui_data_item_window) <value>: Remove
5405 * tui/tui-regs.c (~tui_data_item_window): Update.
5407 2019-08-20 Tom Tromey <tom@tromey.com>
5409 * tui/tui-regs.c (tui_register_format, tui_get_register): Move
5412 2019-08-20 Tom Tromey <tom@tromey.com>
5414 * tui/tui-regs.c (tui_reg_command): Remove NULL check.
5416 2019-08-20 Tom Tromey <tom@tromey.com>
5418 * tui/tui-source.h (struct tui_source_window): Update.
5419 * tui/tui-regs.c (tui_show_registers): Update.
5420 * tui/tui-disasm.h (struct tui_disasm_window): Update.
5421 * tui/tui-data.h (NO_SRC_STRING, NO_DISASSEM_STRING)
5422 (NO_REGS_STRING): Remove defines.
5424 2019-08-20 Conrad Meyer <cem@FreeBSD.org>
5426 * remote.c (remote_target::remote_btrace_maybe_reopen): Avoid
5427 unnecessary thread walk if remote doesn't support the packet.
5429 2019-08-19 Tom Tromey <tromey@adacore.com>
5431 * python/py-value.c (value_has_field): Fix indentation.
5433 2019-08-19 Tom Tromey <tromey@adacore.com>
5435 * printcmd.c (do_one_display, info_display_command): Update.
5436 * block.h (contained_in): Return bool. Add allow_nested
5438 * block.c (contained_in): Return bool. Add allow_nested
5441 2019-08-19 Tom Tromey <tom@tromey.com>
5443 * configure: Rebuild.
5444 * configure.ac: Disallow the combination of -static-libstdc++ and
5446 * source-cache.c (get_language_name): Handle rust.
5447 (source_cache::get_source_lines): Ignore highlighting exceptions.
5449 2019-08-16 Tom Tromey <tom@tromey.com>
5451 * tui/tui.h (enum tui_win_type) <EXEC_INFO_WIN>: Remove.
5452 * tui/tui-winsource.h (struct tui_exec_info_window): Remove.
5453 (struct tui_source_window_base) <make_visible, refresh_window,
5454 resize>: Remove methods.
5455 <execution_info>: Remove field.
5456 * tui/tui-winsource.c (tui_source_window_base::do_erase_source_content)
5457 (tui_show_source_line, tui_source_window_base)
5458 (~tui_source_window_base): Update.
5459 (tui_source_window_base::resize)
5460 (tui_source_window_base::make_visible)
5461 (tui_source_window_base::refresh_window): Remove.
5462 (tui_source_window_base::update_exec_info): Update.
5463 * tui/tui-source.c (tui_source_window::set_contents): Update.
5464 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
5466 2019-08-16 Tom Tromey <tom@tromey.com>
5468 * tui/tui-hooks.c (tui_remove_hooks): Don't set
5469 deprecated_query_hook.
5471 2019-08-16 Tom Tromey <tom@tromey.com>
5473 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
5474 (tui_update_source_windows_with_line): Update.
5475 * tui/tui-source.h (struct tui_source_window)
5476 <show_symtab_source>: Declare.
5477 (tui_show_symtab_source): Don't declare.
5478 * tui/tui-source.c (tui_show_symtab_source): Rename from
5479 tui_show_symtab_source.
5481 2019-08-16 Tom Tromey <tom@tromey.com>
5483 * tui/tui-winsource.h (struct tui_source_window_base)
5484 <set_contents>: Declare.
5485 * tui/tui-winsource.c
5486 (tui_source_window_base::update_source_window_as_is): Update.
5487 * tui/tui-source.h (struct tui_source_window) <set_contents>:
5489 (tui_set_source_content): Don't declare.
5490 * tui/tui-source.c (tui_source_window::set_contents): Rename from
5491 tui_set_source_content.
5492 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
5494 (tui_set_disassem_content): Don't declare.
5495 * tui/tui-disasm.c (tui_disasm_window::set_contents): Rename from
5496 tui_set_disassem_content.
5498 2019-08-16 Tom Tromey <tom@tromey.com>
5500 * tui/tui-winsource.h (struct tui_source_window_base)
5501 <update_breakpoint_info>: Declare.
5502 (tui_update_breakpoint_info): Don't declare.
5503 * tui/tui-winsource.c (tui_source_window_base::update_source_window_as_is)
5504 (tui_update_all_breakpoint_info): Update.
5505 (tui_source_window_base::update_breakpoint_info): Rename from
5506 tui_update_breakpoint_info.
5507 (tui_source_window_base::update_exec_info): Update.
5509 2019-08-16 Tom Tromey <tom@tromey.com>
5511 * tui/tui-winsource.h (struct tui_source_window_base)
5512 <update_source_window>: Declare.
5513 (tui_update_source_window): Don't declare.
5514 * tui/tui-winsource.c
5515 (tui_source_window_base::update_source_window): Rename from
5516 tui_update_source_window.
5517 (tui_source_window_base::rerender): Update.
5518 * tui/tui-source.c (tui_source_window::maybe_update): Update.
5519 * tui/tui-disasm.c (tui_show_disassem)
5520 (tui_show_disassem_and_update_source)
5521 (tui_disasm_window::maybe_update): Update.
5523 2019-08-16 Tom Tromey <tom@tromey.com>
5525 * tui/tui-winsource.h (struct tui_source_window_base)
5526 <update_source_window_as_is>: Declare.
5527 (tui_update_source_window_as_is): Don't declare.
5528 * tui/tui-winsource.c (tui_update_source_window): Update
5529 (tui_source_window_base::update_source_window_as_is): Rename from
5530 tui_update_source_window_as_is.
5531 (tui_source_window_base::refill): Update.
5532 * tui/tui-source.c (tui_show_symtab_source): Update.
5533 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical):
5536 2019-08-16 Tom Tromey <tom@tromey.com>
5538 * tui/tui-winsource.h (tui_update_source_window)
5539 (tui_update_source_window_as_is): Remove "noerror" parameter.
5540 * tui/tui-winsource.c (tui_update_source_window)
5541 (tui_update_source_window_as_is): Remove "noerror" parameter.
5542 (tui_update_source_windows_with_addr)
5543 (tui_update_source_windows_with_line)
5544 (tui_source_window_base::rerender)
5545 (tui_source_window_base::refill): Update.
5546 * tui/tui-source.h (tui_set_source_content)
5547 (tui_show_symtab_source): Remove "noerror" parameter.
5548 * tui/tui-source.c (tui_set_source_content): Remove "noerror"
5550 (tui_show_symtab_source): Likewise.
5551 (tui_source_window::maybe_update): Update.
5552 * tui/tui-disasm.c (tui_show_disassem)
5553 (tui_show_disassem_and_update_source)
5554 (tui_disasm_window::do_scroll_vertical)
5555 (tui_disasm_window::maybe_update): Update.
5557 2019-08-16 Tom Tromey <tom@tromey.com>
5559 * tui/tui.c (tui_is_window_visible): Update.
5560 * tui/tui-wingeneral.c (tui_make_window)
5561 (tui_gen_win_info::make_visible, tui_refresh_all): Update.
5562 * tui/tui-win.c (window_name_completer, tui_refresh_all_win)
5563 (tui_set_focus_command, tui_all_windows_info, update_tab_width)
5564 (tui_set_win_height_command, parse_scrolling_args): Update.
5565 * tui/tui-source.c (tui_source_window::style_changed): Update.
5566 * tui/tui-regs.c (tui_show_registers)
5567 (tui_data_window::first_data_item_displayed)
5568 (tui_data_window::delete_data_content_windows)
5569 (tui_check_register_values, tui_reg_command): Update.
5570 * tui/tui-disasm.c (tui_show_disassem): Update.
5571 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: New
5573 <is_visible>: Remove field.
5574 * tui/tui-data.c (tui_next_win, tui_prev_win)
5575 (tui_delete_invisible_windows): Update.
5577 2019-08-16 Tom Tromey <tom@tromey.com>
5579 * tui/tui-winsource.h (struct tui_source_window_base)
5580 <m_has_locator>: Remove.
5581 * tui/tui-layout.c (show_source_disasm_command, show_data)
5582 (show_source_or_disasm_and_command): Update.
5584 2019-08-16 Alan Hayward <alan.hayward@arm.com>
5586 * NEWS (Other MI changes): New subsection.
5587 * aarch64-tdep.c (aarch64_get_pc_address_flags): New function.
5588 (aarch64_gdbarch_init): Add aarch64_get_pc_address_flags.
5589 * arch-utils.c (default_get_pc_address_flags): New function.
5590 * arch-utils.h (default_get_pc_address_flags): New declaration.
5591 * gdbarch.sh: Add get_pc_address_flags.
5592 * gdbarch.c: Regenerate.
5593 * gdbarch.h: Likewise.
5594 * stack.c (print_pc): New function.
5595 (print_frame_info) (print_frame): Call print_pc.
5597 2019-08-16 Tom de Vries <tdevries@suse.de>
5599 * maint.c (maintenance_info_sections): Also handle !ALLOBJ case using
5600 print_objfile_section_info.
5602 2019-08-15 Tom Tromey <tom@tromey.com>
5604 * tui/tui-io.c (tui_puts_internal): Check TUI_CMD_WIN before
5605 calling update_cmdwin_start_line.
5606 * tui/tui-winsource.h (struct tui_source_window_base)
5607 <do_make_visible_with_new_height, set_new_height>: Don't declare.
5608 <rerender>: Declare.
5609 * tui/tui-winsource.c (tui_source_window_base::update_tab_width):
5611 (tui_source_window_base::set_new_height): Remove.
5612 (tui_source_window_base::rerender): Rename from
5613 do_make_visible_with_new_height.
5614 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use
5616 (tui_win_info::make_invisible_and_set_new_height)
5617 (tui_win_info::make_visible_with_new_height): Remove.
5618 * tui/tui-stack.h (struct tui_locator_window) <rerender>:
5620 * tui/tui-stack.c (tui_locator_window::rerender): New method.
5621 * tui/tui-regs.h (struct tui_data_window) <set_new_height,
5622 do_make_visible_with_new_height>: Don't declare.
5623 <rerender>: Declare.
5624 * tui/tui-regs.c (tui_data_window::rerender): Rename from
5626 (tui_data_window::do_make_visible_with_new_height): Remove.
5627 * tui/tui-layout.c (show_source_disasm_command, show_data): Don't
5628 call tui_show_locator_content.
5629 (tui_gen_win_info::resize): Call rerender.
5630 (show_source_or_disasm_and_command): Don't call
5631 tui_show_locator_content.
5632 * tui/tui-data.h (struct tui_gen_win_info) <rerender>: New
5634 (struct tui_win_info) <rerender>: Declare.
5635 <set_new_height, make_invisible_and_set_new_height,
5636 make_visible_with_new_height>: Don't declare.
5637 * tui/tui-data.c (tui_win_list::rerender): New method.
5638 * tui/tui-command.h (struct tui_cmd_window)
5639 <do_make_visible_with_new_height>: Don't declare.
5641 (tui_cmd_window::do_make_visible_with_new_height): Remove.
5643 2019-08-15 Tom Tromey <tromey@adacore.com>
5645 * ada-exp.y (convert_char_literal): Handle "Q%c" encoding.
5646 * ada-lang.c (ada_enum_name): Likewise.
5648 2019-08-15 Christian Biesinger <cbiesinger@google.com>
5650 * python/lib/gdb/__init__.py (GdbOutputFile): Rename to have a
5652 (GdbOutputErrorFile): Likewise.
5653 (global scope): Adjust constructor calls to GdbOutput{,Error}File
5655 (execute_unwinders): Rename to have a leading underscore.
5656 (auto_load_packages): Likewise.
5657 (global scope): Adjust call to auto_load_packages accordingly.
5658 (GdbSetPythonDirectory): Likewise.
5659 * python/py-unwind.c (pyuw_sniffer): Call _execute_unwinders
5660 instead of execute_unwinders.
5662 2019-08-15 Tom Tromey <tom@tromey.com>
5664 * tui/tui-layout.c (show_layout, show_source_disasm_command)
5665 (show_data): Don't change window visibility.
5666 (tui_gen_win_info::resize): Remove special case for command
5667 window. Use wresize, when available.
5668 (show_source_or_disasm_and_command): Don't change window
5670 * tui/tui-command.h (struct tui_cmd_window) <resize>: Declare.
5671 <make_visible>: New method.
5672 * tui/tui-command.c (tui_cmd_window::resize): New method.
5674 2019-08-15 Tom Tromey <tom@tromey.com>
5676 * tui/tui-winsource.h (struct tui_source_window_iterator): New.
5677 (struct tui_source_windows): New.
5678 * tui/tui-winsource.c (tui_display_main): Update.
5679 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
5680 (new_height_ok, parse_scrolling_args): Update.
5681 * tui/tui-layout.c (show_layout, show_data): Update.
5682 * tui/tui-data.h (tui_source_windows, tui_clear_source_windows)
5683 (tui_add_to_source_windows): Don't declare.
5684 * tui/tui-data.c (source_windows, tui_source_windows)
5685 (tui_clear_source_windows, tui_add_to_source_windows): Remove.
5687 2019-08-15 Tom Tromey <tom@tromey.com>
5689 * tui/tui-winsource.h (struct tui_source_window_base) <resize>:
5691 * tui/tui-winsource.c (tui_source_window_base::resize): Rename.
5692 * tui/tui-layout.c (show_source_disasm_command, show_data):
5694 (tui_gen_win_info::resize): Rename.
5695 (show_source_or_disasm_and_command): Update.
5696 * tui/tui-data.h (struct tui_gen_win_info) <resize>: Rename from
5699 2019-08-15 Tom Tromey <tom@tromey.com>
5701 * tui/tui-stack.c (tui_initialize_static_data): Remove.
5702 * tui/tui-interp.c (tui_interp::init): Don't call
5703 tui_initialize_static_data.
5704 * tui/tui-data.h (tui_initialize_static_data): Don't declare.
5706 2019-08-15 Tom Tromey <tom@tromey.com>
5708 * tui/tui-layout.c (tui_default_win_viewport_height): Don't
5709 examine tui_win_list.
5711 2019-08-15 Tom Tromey <tom@tromey.com>
5713 * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
5714 * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
5715 tui_clear_source_content.
5716 (tui_clear_source_content): Remove.
5717 (tui_source_window_base::do_erase_source_content): Hoist call to
5719 * tui/tui-stack.c (tui_show_frame_info): Don't call
5720 tui_clear_source_content.
5722 2019-08-15 Tom Tromey <tom@tromey.com>
5724 * tui/tui-winsource.h (struct tui_source_window_base)
5725 <do_erase_source_content>: New method.
5726 <erase_source_content>: New method.
5727 (tui_erase_source_content): Don't declare.
5728 * tui/tui-winsource.c (tui_clear_source_content): Update.
5729 (tui_source_window_base::do_erase_source_content): Rename from
5730 tui_erase_source_content.
5731 (tui_source_window_base::show_source_content): Update.
5732 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
5733 * tui/tui-source.h (struct tui_source_window)
5734 <erase_source_content>: New method.
5735 * tui/tui-disasm.h (struct tui_disasm_window)
5736 <erase_source_content>: New method.
5738 2019-08-15 Tom Tromey <tom@tromey.com>
5740 * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
5741 (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
5743 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
5744 * tui/tui-source.c (tui_set_source_content): Update.
5745 * tui/tui-disasm.c (tui_set_disassem_content): Update.
5747 2019-08-15 Tom Tromey <tom@tromey.com>
5749 * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
5750 * tui/tui-winsource.c (tui_line_is_displayed): Move to
5752 * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
5754 * tui/tui-source.c (tui_source_window::line_is_displayed): New
5756 (tui_source_window::maybe_update): Update.
5758 2019-08-15 Tom Tromey <tom@tromey.com>
5760 * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
5761 * tui/tui-winsource.c (tui_addr_is_displayed): Move to
5763 * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
5765 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
5767 (tui_disasm_window::maybe_update): Update.
5769 2019-08-15 Tom Tromey <tom@tromey.com>
5771 * tui/tui-winsource.h (struct tui_source_window_base)
5772 <maybe_update>: Declare.
5773 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
5775 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
5777 * tui/tui-source.c (tui_source_window::maybe_update): New method.
5778 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
5780 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
5782 2019-08-15 Tom Tromey <tom@tromey.com>
5784 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
5786 2019-08-15 Tom Tromey <tom@tromey.com>
5788 * tui/tui-wingeneral.c: Include tui-stack.h.
5789 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
5790 (struct tui_locator_window): Move from tui-data.h.
5791 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
5792 (tui_initialize_static_data): Move from tui-data.c.
5793 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
5794 (struct tui_locator_window): Move to tui-stack.c.
5795 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
5796 (tui_initialize_static_data): Move to tui-stack.c.
5798 2019-08-15 Tom Tromey <tom@tromey.com>
5800 * tui/tui-layout.c (show_source_disasm_command)
5801 (show_source_or_disasm_and_command): Use make_visible method, not
5803 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
5806 2019-08-15 Tom Tromey <tom@tromey.com>
5808 * tui/tui-wingeneral.h (tui_make_window): Update.
5809 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
5811 (tui_gen_win_info::make_visible): Update.
5812 * tui/tui-regs.c (tui_data_window::display_registers_from):
5814 * tui/tui-layout.c (show_source_disasm_command)
5815 (show_source_or_disasm_and_command): Update.
5816 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
5817 (enum tui_box): Remove.
5818 (struct tui_win_info) <can_box>: New method.
5819 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
5822 2019-08-15 Tom de Vries <tdevries@suse.de>
5824 * linux-nat-trad.c: Include gdbarch.h.
5826 2019-08-14 Alan Hayward <alan.hayward@arm.com>
5828 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
5831 2019-08-14 Tom Tromey <tromey@adacore.com>
5833 * darwin-nat.c: Include gdbarch.h.
5834 * darwin-nat-info.c: Include gdbarch.h.
5836 2019-08-13 Tom Tromey <tom@tromey.com>
5838 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
5840 * tui/tui-data.c (tui_initialize_static_data): Update.
5842 2019-08-13 Tom Tromey <tom@tromey.com>
5844 * tui/tui-winsource.h (struct tui_exec_info_window)
5845 <~tui_exec_info_window, maybe_allocate_content, get_content,
5847 (struct tui_source_window_base) <set_exec_info_content,
5848 show_exec_info_content>: Don't declare.
5849 * tui/tui-winsource.c
5850 (tui_exec_info_window::maybe_allocate_content): Remove.
5851 (tui_source_window_base::update_exec_info): Rename from
5852 set_exec_info_content.
5853 (tui_source_window_base::show_exec_info_content)
5854 (tui_source_window_base::update_exec_info): Remove.
5856 2019-08-13 Tom Tromey <tom@tromey.com>
5858 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
5860 * tui/tui-winsource.c (tui_update_source_window_as_is)
5861 (tui_update_source_windows_with_addr, tui_erase_source_content):
5863 (tui_clear_exec_info_content): Remove.
5865 2019-08-13 Tom Tromey <tom@tromey.com>
5867 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
5869 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
5870 call tui_erase_exec_info_content.
5871 (tui_clear_exec_info_content): Rename from
5872 tui_erase_exec_info_content.
5873 (tui_clear_exec_info_content): Delete.
5875 2019-08-13 Tom Tromey <tom@tromey.com>
5877 * tui/tui-winsource.h (struct tui_source_window_base)
5878 <show_exec_info_content>: Declare.
5879 (tui_show_exec_info_content): Don't declare.
5880 * tui/tui-winsource.c
5881 (tui_source_window_base::show_exec_info_content): Rename from
5882 tui_show_exec_info_content.
5883 (tui_source_window_base::update_exec_info): Update.
5885 2019-08-13 Tom Tromey <tom@tromey.com>
5887 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
5888 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
5889 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
5890 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
5891 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
5892 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
5895 2019-08-13 Tom Tromey <tom@tromey.com>
5897 * tui/tui-winsource.h (struct tui_source_window_base)
5898 <update_exec_info>: Declare.
5899 (tui_update_exec_info): Don't declare.
5900 * tui/tui-winsource.c (tui_update_source_window_as_is)
5901 (tui_source_window_base::refresh_all)
5902 (tui_update_all_breakpoint_info): Update.
5903 (tui_source_window_base::update_exec_info): Rename from
5904 tui_update_exec_info.
5905 * tui/tui-stack.c (tui_show_frame_info): Update.
5907 2019-08-13 Tom Tromey <tom@tromey.com>
5909 * tui/tui-winsource.h (struct tui_source_window_base)
5910 <set_exec_info_content>: Declare.
5911 (tui_set_exec_info_content): Don't declare.
5912 * tui/tui-winsource.c
5913 (tui_source_window_base::set_exec_info_content): Rename from
5914 tui_set_exec_info_content.
5915 (tui_update_exec_info): Update.
5917 2019-08-13 Tom Tromey <tom@tromey.com>
5919 * tui/tui-winsource.h (struct tui_source_window_base)
5920 <show_source_content>: Declare.
5921 (tui_show_source_content): Don't declare.
5922 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
5923 (tui_source_window_base::show_source_content): Rename from
5924 tui_show_source_content.
5925 (tui_source_window_base::refresh_all): Update.
5926 * tui/tui-layout.c (show_source_disasm_command)
5927 (show_source_or_disasm_and_command): Update.
5929 2019-08-13 Tom Tromey <tom@tromey.com>
5931 * tui/tui-winsource.c (tui_erase_source_content)
5932 (tui_show_source_content, tui_source_window_base::refresh_all):
5934 * tui/tui-wingeneral.h
5935 (tui_check_and_display_highlight_if_needed): Don't declare.
5936 * tui/tui-wingeneral.c
5937 (tui_win_info::check_and_display_highlight_if_needed): Rename from
5938 check_and_display_highlight_if_needed.
5939 * tui/tui-win.c (tui_rehighlight_all)
5940 (tui_win_info::make_visible_with_new_height): Update.
5941 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
5942 (tui_data_window::erase_data_content)
5943 (tui_data_window::display_all_data): Update.
5944 * tui/tui-data.h (struct tui_win_info)
5945 <check_and_display_highlight_if_needed>: Declare.
5947 2019-08-13 Tom Tromey <tom@tromey.com>
5949 * tui/tui-win.c (tui_resize_all): Call
5950 tui_delete_invisible_windows.
5951 * tui/tui-layout.c (show_layout): Call
5952 tui_delete_invisible_windows.
5953 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
5954 * tui/tui-data.c (tui_delete_invisible_windows): New function.
5956 2019-08-13 Tom Tromey <tom@tromey.com>
5958 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
5959 tui_add_win_to_layout.
5961 2019-08-13 Tom Tromey <tom@tromey.com>
5963 * tui/tui-layout.h (tui_default_win_height): Don't declare.
5964 * tui/tui-layout.c (tui_default_win_height): Now static.
5966 2019-08-13 Tom Tromey <tom@tromey.com>
5968 * tui/tui-layout.c (show_layout): Unify all layout cases into a
5970 (show_source_disasm_command, show_source_or_disasm_and_command):
5971 Don't check current layout.
5973 2019-08-13 Tom Tromey <tom@tromey.com>
5975 * tui/tui-wingeneral.c (make_all_visible): Remove.
5976 (tui_make_all_invisible): Simplify.
5977 * tui/tui-layout.c (tui_make_all_invisible): Move from
5978 tui-wingeneral.c; simplify.
5979 (show_layout): Hoist call to tui_make_all_invisible.
5980 (show_data): Don't call tui_make_all_invisible.
5982 2019-08-13 Tom Tromey <tom@tromey.com>
5984 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
5985 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
5987 2019-08-13 Tom Tromey <tom@tromey.com>
5989 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
5991 (show_source_disasm_command, show_data)
5992 (show_source_or_disasm_and_command): Don't use
5993 tui_set_current_layout_to.
5994 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
5995 * tui/tui-data.c (current_layout, tui_current_layout): Move to
5997 (tui_set_current_layout_to): Remove.
5999 2019-08-13 Tom Tromey <tom@tromey.com>
6001 * tui/tui-layout.c (tui_set_layout): Update.
6002 * tui/tui-data.h (struct tui_layout_def): Remove.
6003 (tui_layout_def): Don't declare.
6004 * tui/tui-data.c (layout_def): Remove.
6005 (tui_layout_def): Remove.
6007 2019-08-13 Tom Tromey <tom@tromey.com>
6009 * tui/tui-winsource.h (struct tui_source_window_base)
6010 <clear_detail>: No longer "override".
6011 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
6012 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
6013 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
6014 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
6016 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
6018 2019-08-13 Tom Tromey <tromey@adacore.com>
6020 * tracepoint.c: Don't include readline.h or history.h.
6022 2019-08-12 Tom Tromey <tom@tromey.com>
6024 * configure: Rebuild.
6025 * configure.ac: Check for readline 7.
6026 * NEWS: Mention readline 7 requirement.
6029 2019-08-12 Tom Tromey <tom@tromey.com>
6031 * mingw-hdep.c (gdb_select): Remove readline hack.
6033 2019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6035 * blockframe.c (find_pc_partial_function): Set *block to nullptr
6036 when the function fails.
6038 2019-08-09 Andreas Arnez <arnez@linux.ibm.com>
6040 * s390-tdep.c (s390_type_align): New function.
6041 (s390_gdbarch_init): Set it as type_align gdbarch method.
6043 2019-08-09 Tom de Vries <tdevries@suse.de>
6046 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
6047 pc_low with relocation offset.
6049 2019-08-07 Tom Tromey <tromey@adacore.com>
6051 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
6052 (print_frame_args): Update.
6053 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
6055 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
6056 * frame.h (struct frame_arg): Add initializers.
6057 <error>: Now a unique_xmalloc_ptr.
6059 2019-08-07 Alan Hayward <alan.hayward@arm.com>
6061 * NEWS: Expand the Pointer Authentication entry.
6062 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
6063 (aarch64_frame_unmask_lr): ... to this.
6064 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
6065 Call aarch64_frame_unmask_lr.
6066 * frame.c (struct frame_info): Add "masked" variable.
6067 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
6068 (fprint_frame): Check for masked pc.
6069 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
6071 * python/py-framefilter.c (py_print_frame): Check for masked pc.
6072 * stack.c (print_frame): Check for masked pc.
6074 2019-08-06 Tom Tromey <tom@tromey.com>
6076 * stabsread.c (patch_block_stabs, read_one_struct_field)
6077 (read_enum_type): Use obstack_strndup.
6078 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
6079 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
6080 * dwarf2read.c (guess_full_die_structure_name)
6081 (anonymous_struct_prefix): Use obstack_strndup.
6082 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
6083 * c-exp.y (yylex): Use obstack_strndup.
6084 * ada-exp.y (write_object_renaming, write_ambiguous_var)
6085 (write_var_or_type): Use obstack_strndup.
6087 2019-08-06 Tom Tromey <tom@tromey.com>
6089 * symfile.c (reread_symbols): Use obstack_strdup.
6090 * stabsread.c (read_type): Use obstack_strdup.
6091 * gdb_obstack.h (obstack_strdup): New overload.
6092 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
6093 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
6094 (dwarf2_canonicalize_name): Use obstack_strdup.
6095 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
6096 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
6099 2019-08-06 Tom Tromey <tom@tromey.com>
6101 * gdb_obstack.h (obstack_strdup): Define.
6102 * gdb_obstack.c (obstack_strdup): Don't define.
6104 2019-08-06 Tom Tromey <tom@tromey.com>
6106 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
6108 * typeprint.c (typedef_hash_table::find_global_typedef): Use
6110 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
6111 * stabsread.c (common_block_start): Use obstack_strdup.
6112 * objfiles.c (set_objfile_main_name, objfile): Use
6114 * namespace.c (add_using_directive): Use obstack_strdup.
6115 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
6116 * jit.c (finalize_symtab): Use obstack_strdup.
6117 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
6118 (guess_partial_die_structure_name, partial_die_info::fixup)
6119 (dwarf2_name): Use obstack_strdup.
6120 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
6122 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
6123 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
6125 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
6127 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6129 * unittests/help-doc-selftests.c: New file.
6130 * Makefile.in: Add the new file.
6132 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6134 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
6135 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
6136 the full first line, except when FOR_VALUE_PREFIX. In this case,
6137 the trailing '.' is not output, and the first character is uppercased.
6138 (print_help_for_command): Update call to print_doc_line.
6139 (print_doc_of_command): Likewise.
6140 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
6141 * cli/cli-option.c (append_indented_doc): Do not append newline.
6142 (build_help_option): Append newline after first appended_indented_doc
6143 only if a second call is done.
6144 (build_help): Append 2 new lines before each option, except the first
6146 * compile/compile.c (_initialize_compile): Add new lines after
6147 %OPTIONS%, when not at the end of the help.
6148 Change help doc or code
6149 producing the help doc to respect the invariants.
6150 * maint-test-options.c (_initialize_maint_test_options): Likewise.
6151 Also removed the new line after 'Options:', as all other commands
6152 do not put an empty line between 'Options:' and the first option.
6153 * printcmd.c (_initialize_printcmd): Likewise.
6154 * stack.c (_initialize_stack): Likewise.
6155 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
6156 incorrectly telling COMMAND is optional.
6157 * ada-lang.c (_initialize_ada_language): Change help doc or code
6158 producing the help doc to respect the invariants.
6159 * ada-tasks.c (_initialize_ada_tasks): Likewise.
6160 * breakpoint.c (_initialize_breakpoint): Likewise.
6161 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
6162 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
6163 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
6164 * cli/cli-style.c (cli_style_option::add_setshow_commands,
6165 _initialize_cli_style): Likewise.
6166 * corelow.c (core_target_info): Likewise.
6167 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
6168 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
6169 * filesystem.c (_initialize_filesystem): Likewise.
6170 * frame.c (_initialize_frame): Likewise.
6171 * gnu-nat.c (add_task_commands): Likewise.
6172 * infcall.c (_initialize_infcall): Likewise.
6173 * infcmd.c (_initialize_infcmd): Likewise.
6174 * interps.c (_initialize_interpreter): Likewise.
6175 * language.c (_initialize_language): Likewise.
6176 * linux-fork.c (_initialize_linux_fork): Likewise.
6177 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
6178 * maint.c (_initialize_maint_cmds): Likewise.
6179 * memattr.c (_initialize_mem): Likewise.
6180 * printcmd.c (_initialize_printcmd): Likewise.
6181 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
6183 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
6184 * record-btrace.c (_initialize_record_btrace): Likewise.
6185 * record-full.c (_initialize_record_full): Likewise.
6186 * record.c (_initialize_record): Likewise.
6187 * regcache-dump.c (_initialize_regcache_dump): Likewise.
6188 * regcache.c (_initialize_regcache): Likewise.
6189 * remote.c (add_packet_config_cmd, init_remote_threadtests,
6190 _initialize_remote): Likewise.
6191 * ser-tcp.c (_initialize_ser_tcp): Likewise.
6192 * serial.c (_initialize_serial): Likewise.
6193 * skip.c (_initialize_step_skip): Likewise.
6194 * source.c (_initialize_source): Likewise.
6195 * stack.c (_initialize_stack): Likewise.
6196 * symfile.c (_initialize_symfile): Likewise.
6197 * symtab.c (_initialize_symtab): Likewise.
6198 * target-descriptions.c (_initialize_target_descriptions): Likewise.
6199 * top.c (init_main): Likewise.
6200 * tracefile-tfile.c (tfile_target_info): Likewise.
6201 * tracepoint.c (_initialize_tracepoint): Likewise.
6202 * tui/tui-win.c (_initialize_tui_win): Likewise.
6203 * utils.c (add_internal_problem_command): Likewise.
6204 * valprint.c (value_print_option_defs): Likewise.
6206 2019-08-06 Frank Ch. Eigler <fche@redhat.com>
6209 * configure.ac: Drop enable-libmcheck support.
6210 * configure, config.in: Rebuild.
6211 * libmcheck.m4: Remove.
6212 * acinclude.m4: Don't include it.
6213 * Makefile.in: Don't distribute it.
6214 * top.c (print_gdb_configuration): Don't mention it.
6216 2019-08-06 Tom Tromey <tom@tromey.com>
6218 * utils.c (set_output_style): Sometimes pass stream to
6220 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
6221 * record-btrace.c (btrace_insn_history): Update.
6222 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
6224 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
6225 Update initializers.
6226 <m_uiout>: New field.
6228 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
6229 Remove "uiout" parameter.
6230 (dump_insns): Update.
6231 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
6232 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
6234 2019-08-06 Christian Biesinger <cbiesinger@google.com>
6236 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
6237 (error_in_psymtab_expansion): Likewise.
6238 (lookup_symbol_via_quick_fns): Likewise.
6239 (basic_lookup_transparent_type_quick): Likewise.
6240 (basic_lookup_transparent_type_1): Likewise.
6242 2019-08-06 Tom Tromey <tromey@adacore.com>
6244 * source.c (last_source_error): Now bool.
6245 (print_source_lines_base): Make "noprint" bool. Only open
6246 source file when last_source_visited changes.
6248 2019-08-06 Tom Tromey <tromey@adacore.com>
6250 * annotate.c (annotate_source_line): Use g_source_cache.
6251 * source-cache.c (source_cache::get_plain_source_lines): Change
6252 parameters. Populate m_offset_cache.
6253 (source_cache::ensure): New method.
6254 (source_cache::get_line_charpos): New method.
6255 (extract_lines): Move lower. Change parameters.
6256 (source_cache::get_source_lines): Move lower.
6257 * source-cache.h (class source_cache): Update comment.
6258 <get_line_charpos>: New method.
6259 <get_source_lines>: Update comment.
6260 <clear>: Clear m_offset_cache.
6261 <get_plain_source_lines>: Change parameters.
6262 <ensure>: New method
6263 <m_offset_cache>: New member.
6264 * source.c (forget_cached_source_info_for_objfile): Update.
6265 (info_source_command): Use g_source_cache.
6266 (find_source_lines, open_source_file_with_line_charpos): Remove.
6267 (print_source_lines_base, search_command_helper): Use g_source_cache.
6268 * source.h (open_source_file_with_line_charpos): Don't declare.
6269 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
6270 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
6273 2019-08-06 Tom Tromey <tromey@adacore.com>
6275 * source-cache.c (source_cache::get_plain_source_lines):
6276 Remove "first_line" and "last_line" parameters.
6277 (source_cache::get_source_lines): Cache plain text.
6278 * source-cache.h (class source_cache)
6279 <get_plain_source_lines>: Update.
6281 2019-08-06 Tom Tromey <tromey@adacore.com>
6283 * source-cache.c (extract_lines): No longer a method.
6284 Changed type of parameter. Include final newline.
6285 (selftests::extract_lines_test): New function.
6286 (_initialize_source_cache): Likewise.
6287 * source-cache.h (class source_cache)
6288 <extract_lines>: Don't declare.
6290 2019-08-06 Tom Tromey <tromey@adacore.com>
6292 * breakpoint.c (init_breakpoint_sal): Update.
6293 (breakpoint): Update.
6294 * breakpoint.h (struct breakpoint) <filter>: Now a
6297 2019-08-05 Christian Biesinger <cbiesinger@google.com>
6299 * NEWS: Mention dictionary access on blocks.
6300 * python/py-block.c (blpy_getitem): New function.
6301 (block_object_as_mapping): New struct.
6302 (block_object_type): Use new struct for tp_as_mapping field.
6304 2019-08-05 Christian Biesinger <cbiesinger@google.com>
6306 * objfiles.h (objfile): Add a comment describing partial symbols.
6308 2019-08-05 Tom Tromey <tromey@adacore.com>
6310 * compile/compile.c (_initialize_compile): Use _(), not N_().
6311 * thread.c (_initialize_thread): Use _(), not N_().
6312 * stack.c (_initialize_stack): Use _(), not N_().
6313 * printcmd.c (_initialize_printcmd): Use _(), not N_().
6315 2019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6317 * dwarf2read.c (struct dw2_symtab_iterator):
6318 <want_specific_block>: Remove.
6319 <block_index>: Change type to gdb::optional.
6320 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
6321 change type of BLOCK_INDEX parameter to gdb::optional.
6322 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
6323 (dw2_lookup_symbol): Don't pass argument for
6324 WANT_SPECIFIC_BLOCK.
6325 (dw2_expand_symtabs_for_function): Don't pass argument for
6326 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
6327 (class dw2_debug_names_iterator)
6328 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
6329 parameter, change BLOCK_INDEX type to gdb::optional.
6330 <m_want_specific_block>: Remove.
6331 <m_block_index>: Change type to gdb::optional.
6332 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
6333 gdb::optional. Re-write in function of gdb::optional.
6334 (dw2_debug_names_lookup_symbol): Don't pass argument for
6335 WANT_SPECIFIC_BLOCK.
6336 (dw2_debug_names_expand_symtabs_for_function): Don't pass
6337 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
6340 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6342 * NEWS: Mention changes to "info sources" command.
6344 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6346 * symtab.c (filename_partial_match_opts): New struct type.
6347 (struct output_source_filename_data): New members
6348 regexp, c_regexp, partial_match.
6349 (output_source_filename): Use new members to decide to print file.
6350 (info_sources_option_defs): New variable.
6351 (make_info_sources_options_def_group, print_info_sources_header,
6352 info_sources_command_completer):
6354 (info_sources_command): Read new optional arguments.
6355 (_initialize_symtab): Update info sources help.
6357 2019-08-02 Alexandre Oliva <oliva@adacore.com>
6359 * ada-lang.c (exception_support_info_v0): Renamed from...
6360 (default_exception_support_info): ... this. Create new
6362 (ada_has_this_exception_support): Look up catch_handlers_sym.
6363 (ada_exception_support_info_sniffer): Try v0 after default.
6365 2019-08-01 Tom Tromey <tromey@adacore.com>
6367 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
6370 2019-08-01 Christian Biesinger <cbiesinger@google.com>
6372 * s12z-tdep.c: Fix include path for s12z-opc.h.
6374 2019-08-01 Alan Hayward <alan.hayward@arm.com>
6376 * NEWS: Require GNU make 3.82.
6378 2019-07-16 Tom Tromey <tom@tromey.com>
6380 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
6383 2019-07-30 Tom Tromey <tromey@adacore.com>
6385 * block.c (contained_in): Remove BLOCK_FUNCTION check.
6387 2019-07-30 Kevin Buettner <kevinb@redhat.com>
6389 * printcmd.c (print_address_symbolic): Print negative offsets.
6390 (build_address_symbolic): Force signed arithmetic when computing
6393 2019-07-30 Christian Biesinger <cbiesinger@google.com>
6395 PR/24474: Add a function to lookup static variables.
6396 * NEWS: Mention this new function.
6397 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
6398 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
6399 * python/python.c (python_GdbMethods): Add new function.
6401 2019-07-29 Christian Biesinger <cbiesinger@google.com>
6403 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
6404 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
6405 (objfpy_lookup_static_symbol): New function.
6406 (objfile_object_methods): Add new functions.
6408 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6410 * NEWS: Mention 'set|show print frame-info'. Mention new
6411 'presence' value for 'frame-arguments'. Mention new '-frame-info'
6412 backtrace argument. Mention that python frame filtering code
6413 is now consistent with what 'backtrace' command prints.
6415 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6417 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
6419 (print_frame_info_auto, print_frame_info_source_line,
6420 print_frame_info_location, print_frame_info_source_and_location,
6421 print_frame_info_location_and_address, print_frame_info_short_location):
6423 (struct frame_print_options): New member print_frame_info.
6424 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
6425 * stack.h (get_user_print_what_frame_info): New declaration.
6426 (frame_show_address): New declaration.
6427 * stack.c (print_frame_arguments_choices): New value 'presence'.
6428 (print_frame_info_auto, print_frame_info_source_line,
6429 print_frame_info_location, print_frame_info_source_and_location,
6430 print_frame_info_location_and_address, print_frame_info_short_location,
6431 print_frame_info_choices, print_frame_info_print_what): New definitions.
6432 (print_frame_args): Only print dots for args if print frame-arguments
6434 (frame_print_option_defs): New element for "frame-info".
6435 (get_user_print_what_frame_info): New function.
6436 (frame_show_address): Make non static. Move comment to stack.h.
6437 (print_frame_info_to_print_what): New function.
6438 (print_frame_info): Update comment. Use fp_opts.print_frame_info
6439 to decide what to print.
6440 (backtrace_command_1): Handle the new print_frame_arguments_presence
6442 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
6443 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
6444 (py_print_frame): In non-mi mode, use LOCATION as default for
6445 print_what, similarly to frame information printed directly by
6446 backtrace command. Handle frame-info user option in non MI mode.
6448 2019-07-27 Kevin Buettner <kevinb@redhat.com>
6450 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
6451 Add case for debugging 32-bit target on 64-bit host. Revise
6454 2019-07-27 Kevin Buettner <kevinb@redhat.com>
6456 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
6457 instead of find_function_entry_range_from_pc.
6459 2019-07-27 Kevin Buettner <kevinb@redhat.com>
6461 * stack.c (find_frame_funname): Remove code which preferred
6462 minsym over symtab sym in "certain pathological cases".
6464 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
6465 parameter. Change type of "do_demangle" to bool.
6466 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
6467 Pass suitable "prefer_sym_over_minsym" flag to
6468 build_address_symbolic(). Don't output "+" for negative offsets.
6469 * printcmd.c (print_address_symbolic): Update invocation of
6470 build_address_symbolic to include a "prefer_sym_over_minsym"
6472 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
6473 Restrict cases in which use of minimal symbol is preferred to that
6474 of a found symbol. Update comments.
6476 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
6477 for entry pc when entry pc is out of range for that FDE.
6479 2019-07-26 Brian Callahan <bcallah@openbsd.org>
6482 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
6485 2019-07-25 Christian Biesinger <cbiesinger@google.com>
6487 * python/py-objfile.c (add_separate_debug_file): Fix comment about
6488 this function's Python signature.
6491 2019-07-24 Christian Biesinger <cbiesinger@google.com>
6493 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
6494 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
6495 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
6496 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
6497 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
6500 2019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
6502 * h8300-tdep.c (h8300_register_name_common): New.
6503 h8300_register_name): Use h8300_register_name_common.
6504 (h8300s_register_name): Likewise.
6505 (h8300sx_register_name): Likewise.
6506 (h8300h_register_nam): New.
6507 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
6510 2019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
6512 * arm-tdep.c (arm_skip_cmse_entry): New function.
6513 (arm_is_sgstubs_section): New function.
6514 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
6516 2019-07-22 Tom Tromey <tom@tromey.com>
6518 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
6521 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
6523 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
6526 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
6528 * symtab.c (search_symbols): Adjust msymbol matching type arrays
6529 so that GDB doesn't match any msymbols when searching in the
6531 (print_symbol_info): Print using typedef_print or type_print based
6532 on the type of the symbol. Add updated FIXME comment moved from...
6533 (_initialize_symtab): ... move and update FIXME comment to above.
6535 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
6537 * NEWS: Mention adding -q option to "info types".
6538 * symtab.c (struct info_types_options): New struct.
6539 (info_types_options_defs): New variable.
6540 (make_info_types_options_def_group): New function.
6541 (info_types_command): Use gdb::option framework to parse options.
6542 (info_types_command_completer): New function.
6543 (_initialize_symtab): Extend the help text on "info types" and
6544 register command completer.
6546 2019-07-21 Christian Biesinger <cbiesinger@google.com>
6548 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
6549 (lookup_symbol_in_objfile): Change int to block_enum and add a
6550 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
6552 2019-07-20 Christian Biesinger <cbiesinger@google.com>
6554 * MAINTAINERS (Write After Approval): Add self.
6556 2019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
6558 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
6559 instruction to the dummy code region.
6561 2019-07-19 Tom Tromey <tromey@adacore.com>
6563 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
6564 (ARGSUSED, PARAMS, __func__): Remove rules.
6566 2019-07-19 Alan Hayward <alan.hayward@arm.com>
6568 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
6569 * features/arm/arm-with-iwmmxt.c: Remove.
6570 * features/arm/arm-with-iwmmxt.xml: Remove.
6571 * features/arm/arm-with-m-fpa-layout.c: Remove.
6572 * features/arm/arm-with-m-fpa-layout.xml: Remove.
6573 * features/arm/arm-with-m-vfp-d16.c: Remove.
6574 * features/arm/arm-with-m-vfp-d16.xml: Remove.
6575 * features/arm/arm-with-m.c: Remove.
6576 * features/arm/arm-with-m.xml: Remove.
6577 * features/arm/arm-with-neon.c: Remove.
6578 * features/arm/arm-with-neon.xml: Remove.
6579 * features/arm/arm-with-vfpv2.c: Remove.
6580 * features/arm/arm-with-vfpv2.xml: Remove.
6581 * features/arm/arm-with-vfpv3.c: Remove.
6582 * features/arm/arm-with-vfpv3.xml: Remove.
6584 2019-07-19 Alan Hayward <alan.hayward@arm.com>
6586 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
6588 2019-07-19 Alan Hayward <alan.hayward@arm.com>
6590 * arch/aarch32.c (aarch32_create_target_description): Create
6591 target descriptions using features.
6592 * arch/arm.c (arm_create_target_description)
6593 (arm_create_mprofile_target_description): Likewise.
6594 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
6596 2019-07-19 Alan Hayward <alan.hayward@arm.com>
6598 * Makefile.in: Add new files.
6599 * aarch32-tdep.c: New file.
6600 * aarch32-tdep.h: New file.
6601 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
6602 Call aarch32_read_description.
6603 * arch/aarch32.c: New file.
6604 * arch/aarch32.h: New file.
6605 * arch/arm.c (arm_create_target_description)
6606 (arm_create_mprofile_target_description): New function.
6607 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
6608 (arm_create_target_description)
6609 (arm_create_mprofile_target_description): New declaration.
6610 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
6611 read_description functions.
6612 * arm-linux-nat.c (arm_linux_nat_target::read_description):
6614 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
6615 * arm-tdep.c (tdesc_arm_list): New variable.
6616 (arm_register_g_packet_guesses): Call create description functions.
6617 (arm_read_description) (arm_read_mprofile_description): New
6619 * arm-tdep.h (arm_read_description)
6620 (arm_read_mprofile_description): Add declaration.
6621 * configure.tgt: Add new files.
6623 2019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
6625 * top.c (new_ui_command): Open specified terminal just once.
6627 2019-07-18 Tom Tromey <tromey@adacore.com>
6629 * symtab.c (main_name): Constify return type.
6630 * symfile.c (set_initial_language): Update.
6631 * symtab.h (main_name): Constify return type.
6633 2019-07-17 Tom Tromey <tom@tromey.com>
6635 * tui/tui-winsource.c (tui_update_source_window)
6636 (tui_update_source_window_as_is)
6637 (tui_update_source_windows_with_line): Remove return.
6638 * tui/tui-disasm.c (tui_show_disassem)
6639 (tui_show_disassem_and_update_source): Remove return.
6640 * tui/tui.c (tui_reset): Remove return.
6641 * tui/tui-wingeneral.c
6642 (tui_check_and_display_highlight_if_needed): Remove return.
6644 2019-07-17 Tom Tromey <tom@tromey.com>
6646 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
6648 2019-07-17 Tom Tromey <tom@tromey.com>
6650 * tui/tui-winsource.h (struct tui_exec_info_window)
6651 (struct tui_source_window_base): Move from tui-data.h.
6652 * tui/tui-winsource.c: Move many method definitions from
6653 elsewhere. Remove "structuring" comments.
6654 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
6655 (tui_source_window_base::refresh_window): Move to
6657 * tui/tui-win.c (tui_source_window_base::refresh_all)
6658 (tui_source_window_base::update_tab_width)
6659 (tui_source_window_base::set_new_height)
6660 (tui_source_window_base::do_make_visible_with_new_height): Move to
6662 * tui/tui-source.h: Update.
6663 * tui/tui-source.c (tui_source_window_base::reset): Move to
6665 * tui/tui-disasm.h: Update.
6666 * tui/tui-data.h (struct tui_exec_info_window): Move to
6668 (struct tui_source_window_base): Likewise.
6669 * tui/tui-data.c (tui_source_window_base::clear_detail)
6670 (tui_source_window_base, ~tui_source_window_base): Move to
6673 2019-07-17 Tom Tromey <tom@tromey.com>
6675 * tui/tui-win.c (tui_resize_all)
6676 (tui_source_window_base::update_tab_width)
6677 (tui_adjust_win_heights): Update.
6678 (tui_win_info::make_invisible_and_set_new_height): Rename from
6679 make_invisible_and_set_new_height.
6680 * tui/tui-data.h (struct tui_win_info)
6681 <make_invisible_and_set_new_height>: New method.
6683 2019-07-17 Tom Tromey <tom@tromey.com>
6685 * tui/tui.c: Update.
6686 * tui/tui-source.h (struct tui_source_window): Move from
6688 * tui/tui-layout.c: Update.
6689 * tui/tui-disasm.c: Update.
6690 * tui/tui-data.h (struct tui_source_window): Move to
6693 2019-07-17 Tom Tromey <tom@tromey.com>
6695 * tui/tui-disasm.h (struct tui_disasm_window): Move from
6697 * tui/tui-data.h (struct tui_disasm_window): Move to
6700 2019-07-17 Tom Tromey <tom@tromey.com>
6702 * tui/tui-regs.h (struct tui_data_item_window): Move from
6704 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
6705 * tui/tui-data.h (struct tui_data_item_window): Move to
6707 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
6709 2019-07-17 Tom Tromey <tom@tromey.com>
6711 * tui/tui.c: Update.
6712 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
6713 (tui_cmd_window::max_height): Move to tui-command.c.
6714 * tui/tui-layout.c: Update.
6715 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
6716 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
6718 * tui/tui-command.h (struct tui_cmd_window): Move from
6720 * tui/tui-command.c: Remove "structuring" comments.
6721 (tui_cmd_window::clear_detail)
6722 (tui_cmd_window::do_make_visible_with_new_height)
6723 (tui_cmd_window::max_height): Move from elsewhere.
6725 2019-07-17 Tom Tromey <tom@tromey.com>
6727 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
6729 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
6730 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
6732 2019-07-17 Tom Tromey <tom@tromey.com>
6734 * tui/tui.c: Update.
6735 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
6737 * tui/tui-windata.h: Remove file.
6738 * tui/tui-windata.c: Remove file.
6739 * tui/tui-win.c (tui_data_window::set_new_height)
6740 (tui_data_window::do_make_visible_with_new_height): Move to
6742 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
6743 * tui/tui-regs.c: Remove "structuring" comments.
6744 (tui_data_window::first_data_item_displayed)
6745 (tui_data_window::delete_data_content_windows)
6746 (tui_data_window::erase_data_content)
6747 (tui_data_window::display_all_data)
6748 (tui_data_window::refresh_all)
6749 (tui_data_window::do_scroll_vertical)
6750 (tui_data_window::clear_detail, tui_data_window::set_new_height)
6751 (tui_data_window::do_make_visible_with_new_height)
6752 (tui_data_window::refresh_window): Move from elsewhere.
6753 (_initialize_tui_regs): Move to end of file.
6754 * tui/tui-layout.c: Update.
6755 * tui/tui-hooks.c: Update.
6756 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
6757 * tui/tui-data.c (tui_data_window::clear_detail): Move to
6759 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
6761 2019-07-17 Tom Tromey <tom@tromey.com>
6763 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
6766 2019-07-17 Tom Tromey <tom@tromey.com>
6768 * tui/tui-win.c (tui_source_window_base::set_new_height)
6769 (tui_source_window_base::do_make_visible_with_new_height): Use
6770 m_has_locator field directly.
6771 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
6773 (struct tui_source_window_base) <has_locator>: Likewise.
6775 2019-07-17 Tom Tromey <tom@tromey.com>
6777 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
6779 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
6781 * tui/tui-win.c (tui_source_window_base::set_new_height)
6782 (tui_source_window_base::set_new_height)
6783 (make_invisible_and_set_new_height)
6784 (tui_source_window_base::do_make_visible_with_new_height)
6785 (tui_source_window_base::do_make_visible_with_new_height):
6787 * tui/tui-layout.c (show_source_disasm_command, show_data)
6788 (show_source_or_disasm_and_command): Update.
6789 * tui/tui-layout.c (show_layout): Update.
6791 2019-07-17 Tom Tromey <tom@tromey.com>
6793 * tui/tui-layout.c (make_data_window): Remove.
6794 (show_data): Unify creation and re-initialization cases.
6796 2019-07-17 Tom Tromey <tom@tromey.com>
6798 * tui/tui-layout.c (make_source_window, make_disasm_window):
6800 (show_data): Unify creation and re-initialization cases.
6802 2019-07-17 Tom Tromey <tom@tromey.com>
6804 * tui/tui-layout.c (make_command_window): Remove.
6805 (show_source_disasm_command, show_source_or_disasm_and_command):
6806 Unify creation and re-initialization cases.
6808 2019-07-17 Tom Tromey <tom@tromey.com>
6810 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
6811 creation and re-initialization cases.
6813 2019-07-17 Tom Tromey <tom@tromey.com>
6815 * tui/tui-regs.c (tui_get_register): Return void.
6817 2019-07-17 Tom Tromey <tom@tromey.com>
6819 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
6822 2019-07-17 Tom Tromey <tom@tromey.com>
6824 * tui/tui-layout.c (show_source_disasm_command): Simplify window
6827 2019-07-17 Tom Tromey <tom@tromey.com>
6829 * tui/tui.h (tui_set_layout_by_name): Don't declare.
6830 * tui/tui-regs.c (tui_reg_layout): New function.
6831 (tui_show_registers, tui_reg_command): Use it.
6832 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
6833 (tui_layout_command): Rename from tui_set_layout_by_name. Change
6835 (tui_layout_command): Remove.
6837 2019-07-17 Tom Tromey <tom@tromey.com>
6839 * tui/tui-layout.h (tui/tui-layout): Return void.
6840 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
6842 2019-07-17 Tom Tromey <tom@tromey.com>
6844 * tui/tui-layout.c (show_source_disasm_command, show_data):
6846 (reset_locator): Remove.
6847 (show_source_or_disasm_and_command): Update.
6849 2019-07-17 Tom Tromey <tom@tromey.com>
6851 * tui/tui-source.c (tui_source_window_base::reset): Remove
6853 * tui/tui-layout.c (make_command_window, make_source_window)
6854 (make_disasm_window, make_data_window)
6855 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
6856 (reset_locator, show_source_or_disasm_and_command): Update.
6857 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
6859 (struct tui_source_window_base) <reset>: Likewise.
6861 2019-07-17 Tom Tromey <tom@tromey.com>
6863 * tui/tui-layout.c (show_source_disasm_command): Use
6865 (reset_locator): New function.
6866 (init_and_make_win): Remove.
6867 (show_source_or_disasm_and_command): Use reset_locator.
6869 2019-07-17 Tom Tromey <tom@tromey.com>
6871 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
6873 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
6875 * tui/tui-source.c (tui_source_window_base::reset): New method.
6876 * tui/tui-layout.c (make_command_window): Don't call
6878 (make_source_window, make_disasm_window): Don't call
6879 make_source_or_disasm_window.
6880 (make_data_window): Don't call init_and_make_win. Change calling
6882 (show_source_disasm_command, show_data): Simplify.
6883 (make_source_or_disasm_window): Remove.
6884 (show_source_or_disasm_and_command): Simplify.
6885 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
6886 (struct tui_source_window_base) <reset>: Likewise.
6887 <execution_info>: Remove initializer.
6888 * tui/tui-data.c (tui_source_window_base): Initialize
6891 2019-07-17 Tom Tromey <tom@tromey.com>
6893 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
6896 2019-07-17 Tom Tromey <tom@tromey.com>
6898 * tui/tui.c (tui_rl_other_window): Update.
6899 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
6900 superclass method first. Always iterate over regs_content.
6901 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
6903 * tui/tui-win.c (tui_set_focus_command): Update.
6905 2019-07-17 Tom Tromey <tom@tromey.com>
6907 * tui/tui-win.c (tui_set_focus_command): Rename from
6908 tui_set_focus. Call tui_enable.
6909 (tui_set_focus_command): Remove.
6911 2019-07-17 Tom Tromey <tom@tromey.com>
6913 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
6915 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
6917 (tui_data_window::refresh_window): Call refresh_window on data
6918 items. Always call superclass refresh_window.
6919 (tui_win_info::refresh): Remove.
6920 (tui_source_window_base::refresh_window): Update.
6921 (tui_refresh_all): Update.
6922 * tui/tui-layout.c (show_source_disasm_command): Remove call to
6924 (show_source_or_disasm_and_command): Likewise.
6925 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
6926 (struct tui_source_window_base) <refresh>: Likewise.
6928 2019-07-17 Tom Tromey <tom@tromey.com>
6930 * tui/tui-winsource.c (tui_clear_source_content)
6931 (tui_show_source_content): Update.
6932 * tui/tui-source.c (tui_source_window::showing_source_p): Check
6933 whether content is empty.
6934 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
6937 2019-07-17 Tom Tromey <tom@tromey.com>
6939 * tui/tui-winsource.c (tui_erase_source_content): Clear the
6941 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
6942 * tui/tui-source.c (tui_set_source_content_nil): Remove.
6944 2019-07-17 Tom Tromey <tom@tromey.com>
6946 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
6947 (struct tui_data_item_window): Update.
6949 2019-07-17 Tom Tromey <tom@tromey.com>
6951 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
6952 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
6955 2019-07-17 Tom Tromey <tom@tromey.com>
6957 * tui/tui-winsource.h (tui_erase_source_content)
6958 (tui_clear_source_content): Remove "display_prompt" parameter.
6959 * tui/tui-winsource.c (tui_update_source_window_as_is)
6960 (tui_update_source_windows_with_addr): Update.
6961 (tui_clear_source_content): Remove "display_prompt" parameter.
6962 (tui_erase_source_content): Likewise. Simplify.
6963 (tui_show_source_content): Update.
6964 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
6965 * tui/tui-stack.c (tui_show_frame_info): Update.
6966 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
6969 2019-07-17 Tom Tromey <tom@tromey.com>
6971 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
6972 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
6974 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
6977 2019-07-17 Tom Tromey <tom@tromey.com>
6979 * tui/tui-winsource.c (tui_clear_source_content)
6980 (tui_show_source_content, tui_show_exec_info_content)
6981 (tui_clear_exec_info_content): Update.
6982 * tui/tui-stack.c (tui_show_locator_content): Update.
6983 (tui_show_frame_info): Update.
6984 * tui/tui-source.h (tui_source_window): Don't declare.
6985 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
6986 from tui_source_is_displayed.
6987 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
6989 (struct tui_source_window_base) <content_in_use>: New field. Now
6991 (struct tui_source_window) <showing_source_p>: New method.
6992 (TUI_SRC_WIN): Change cast.
6993 * tui/tui-data.c (tui_initialize_static_data): Update.
6995 2019-07-17 Tom Tromey <tom@tromey.com>
6997 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
6999 * tui/tui-source.c (tui_source_window::location_matches_p): New
7001 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
7003 * tui/tui-data.h (struct tui_source_window_base)
7004 <location_matches_p>: New method.
7005 (struct tui_source_window, struct tui_disasm_window)
7006 <location_matches_p>: Likewise.
7008 2019-07-17 Tom Tromey <tom@tromey.com>
7010 * tui/tui-win.c (tui_set_win_height_command): Rename from
7012 (tui_set_win_height_command): Remove.
7014 2019-07-17 Tom Tromey <tom@tromey.com>
7016 * tui/tui-source.c (tui_source_window): New constructor. Add
7018 (~tui_source_window): New destructor.
7019 (tui_source_window::style_changed): New method.
7020 * tui/tui-hooks.c (tui_redisplay_source): Remove.
7021 (tui_attach_detach_observers): Update.
7022 * tui/tui-data.h (struct tui_source_window): Make constructor not
7023 inline. Add destructor.
7024 (struct tui_source_window) <style_changed>: New method.
7025 <m_observable>: New member.
7027 2019-07-17 Tom Tromey <tom@tromey.com>
7029 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
7030 * tui/tui-win.c (tui_resize_all): Fix typo.
7032 2019-07-17 Tom Tromey <tom@tromey.com>
7034 * tui/tui-wingeneral.h (tui_refresh_all): Update.
7035 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
7036 (tui_refresh_all): Remove "list" parameter. Use foreach.
7037 * tui/tui-win.c (window_name_completer): Use foreach.
7038 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
7039 (update_tab_width): Likewise.
7040 * tui/tui-layout.c (show_layout): Update.
7041 * tui/tui-data.h (class tui_window_iterator): New.
7042 (struct all_tui_windows): New.
7043 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
7045 2019-07-17 Tom Tromey <tom@tromey.com>
7047 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
7048 parameter. Don't reference globals.
7049 (tui_reg_command): Update.
7051 2019-07-17 Tom Tromey <tom@tromey.com>
7053 * tui/tui-regs.c (tui_show_registers): Simplify.
7055 2019-07-17 Tom Tromey <tom@tromey.com>
7057 * tui/tui-regs.c (tui_show_registers): Update.
7058 (tui_show_register_group): Add win_info parameter.
7060 2019-07-17 Tom Tromey <tom@tromey.com>
7062 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
7063 Rename from tui_display_reg_element_at_line.
7064 (tui_data_window::display_registers_from_line): Update.
7065 * tui/tui-data.h (struct tui_data_window)
7066 <display_reg_element_at_line>: New method.
7068 2019-07-17 Tom Tromey <tom@tromey.com>
7070 * tui/tui-regs.h (tui_display_registers_from)
7071 (tui_display_registers_from_line): Don't declare.
7072 * tui/tui-windata.c (tui_data_window::display_all_data)
7073 (tui_data_window::refresh_all)
7074 (tui_data_window::do_scroll_vertical): Update.
7075 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
7076 from tui_display_registers_from.
7077 (tui_display_reg_element_at_line): Update.
7078 (tui_data_window::display_registers_from_line): Rename from
7079 tui_display_registers_from_line.
7080 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
7081 display_registers_from_line>: New methods.
7083 2019-07-17 Tom Tromey <tom@tromey.com>
7085 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
7086 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
7087 from tui_erase_data_content.
7088 (tui_data_window::display_all_data)
7089 (tui_data_window::refresh_all)
7090 (tui_data_window::do_scroll_vertical): Update.
7091 * tui/tui-regs.c (tui_show_registers): Update.
7092 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
7095 2019-07-17 Tom Tromey <tom@tromey.com>
7097 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
7100 (tui_data_window::delete_data_content_windows): Rename from
7101 tui_delete_data_content_windows.
7102 (tui_data_window::display_all_data)
7103 (tui_data_window::do_scroll_vertical): Update.
7104 * tui/tui-data.h (struct tui_data_window)
7105 <delete_data_content_windows>: New method.
7107 2019-07-17 Tom Tromey <tom@tromey.com>
7109 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
7110 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
7112 2019-07-17 Tom Tromey <tom@tromey.com>
7114 * tui/tui-windata.h (tui_display_all_data): Don't declare.
7115 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
7116 from tui_display_all_data.
7118 (tui_data_window::do_make_visible_with_new_height): Update.
7119 * tui/tui-regs.c (tui_show_registers): Update.
7120 * tui/tui-layout.c (tui_set_layout): Update.
7121 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
7124 2019-07-17 Tom Tromey <tom@tromey.com>
7126 * tui/tui-windata.h (tui_display_data_from): Don't declare.
7127 * tui/tui-windata.c (tui_display_data_from): Remove.
7128 (tui_data_window::refresh_all): Update.
7130 2019-07-17 Tom Tromey <tom@tromey.com>
7132 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
7133 * tui/tui-windata.c (tui_display_data_from_line): Remove.
7134 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
7135 tui_display_registers_from_line.
7136 * tui/tui-regs.h (tui_display_registers_from_line): Update.
7137 * tui/tui-regs.c (tui_display_registers_from_line): Remove
7138 "force_display" parameter.
7140 2019-07-17 Tom Tromey <tom@tromey.com>
7142 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
7144 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
7145 Rename from tui_first_reg_element_no_inline.
7146 (tui_display_reg_element_at_line)
7147 (tui_display_registers_from_line): Update.
7148 * tui/tui-data.h (struct tui_data_window)
7149 <first_reg_element_no_inline>: New method.
7151 2019-07-17 Tom Tromey <tom@tromey.com>
7153 * tui/tui-windata.c (tui_display_data_from)
7154 (tui_data_window::do_scroll_vertical): Update.
7155 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
7156 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
7157 Rename from tui_line_from_reg_element_no.
7158 (tui_display_registers_from_line): Update.
7159 * tui/tui-data.h (struct tui_data_window)
7160 <line_from_reg_element_no>: New method.
7162 2019-07-17 Tom Tromey <tom@tromey.com>
7164 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
7165 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
7166 tui_last_regs_line_no.
7167 (tui_display_reg_element_at_line)
7168 (tui_display_registers_from_line): Update.
7169 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
7172 2019-07-17 Tom Tromey <tom@tromey.com>
7175 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
7176 (tui_update_breakpoint_info): Add "being_deleted" parameter.
7177 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
7178 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
7179 (tui_update_breakpoint_info): Likewise.
7180 * tui/tui-hooks.c (tui_event_create_breakpoint)
7181 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
7184 2019-07-17 Tom Tromey <tom@tromey.com>
7186 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
7188 2019-07-17 Tom Tromey <tom@tromey.com>
7190 * tui/tui-winsource.c (tui_update_source_window_as_is)
7191 (tui_update_source_windows_with_addr): Update.
7192 * tui/tui-source.h (tui_set_source_content)
7193 (tui_show_symtab_source): Add "win_info" parameter.
7194 * tui/tui-source.c (tui_set_source_content): Add "win_info"
7196 (tui_show_symtab_source): Likewise.
7198 2019-07-17 Tom Tromey <tom@tromey.com>
7200 * tui/tui-wingeneral.c
7201 (tui_check_and_display_highlight_if_needed): Check can_highlight.
7203 2019-07-17 Tom Tromey <tom@tromey.com>
7205 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
7206 (struct tui_cmd_window) <can_scroll>: New method.
7207 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
7210 2019-07-17 Tom Tromey <tromey@adacore.com>
7212 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
7213 do_field_signed>: Rename. Change type of "value".
7214 * ui-out.c (ui_out::field_signed): Rename from field_int.
7215 Change type of "value".
7216 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
7218 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
7219 do_field_int. Change type of "value".
7220 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
7221 do_field_int. Change type of "value".
7222 * tracepoint.c (trace_status_mi, tfind_1)
7223 (print_one_static_tracepoint_marker): Update.
7224 * thread.c (print_thread_info_1, print_selected_thread_frame):
7226 * stack.c (print_frame, print_frame_info): Update.
7227 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
7229 * source.c (print_source_lines_base): Update.
7230 * skip.c (info_skip_command): Update.
7231 * record-btrace.c (btrace_ui_out_decode_error)
7232 (btrace_call_history_src_line): Update.
7233 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
7235 * progspace.c (print_program_space): Update.
7236 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
7237 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
7238 do_field_int. Change type of "value".
7239 * mi/mi-out.c (mi_ui_out::do_table_begin)
7240 (mi_ui_out::do_table_header): Update.
7241 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
7243 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
7244 (mi_cmd_data_list_changed_registers, output_register)
7245 (mi_cmd_data_read_memory, mi_load_progress)
7246 (mi_cmd_trace_frame_collected): Update.
7247 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
7249 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
7250 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
7251 (mi_cmd_var_list_children, varobj_update_one): Update.
7252 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
7253 (mi_cmd_stack_list_args, list_arg_or_local): Update.
7254 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
7255 * inferior.c (print_inferior): Update.
7256 * gdb_bfd.c (print_one_bfd): Update.
7257 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
7259 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
7260 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
7261 do_field_int. Change type of "value".
7262 * cli-out.c (cli_ui_out::do_field_signed): Rename from
7263 do_field_int. Change type of "value".
7264 * breakpoint.c (watchpoint_check, print_breakpoint_location)
7265 (print_one_breakpoint_location, print_it_catch_fork)
7266 (print_one_catch_fork, print_it_catch_vfork)
7267 (print_one_catch_vfork, print_it_catch_solib)
7268 (print_it_catch_exec, print_it_ranged_breakpoint)
7269 (print_mention_watchpoint, print_mention_masked_watchpoint)
7270 (bkpt_print_it, update_static_tracepoint): Update.
7271 * break-catch-throw.c (print_it_exception_catchpoint): Update.
7272 * break-catch-syscall.c (print_it_catch_syscall): Update.
7273 * ada-tasks.c (print_ada_task_info): Update.
7274 * ada-lang.c (print_it_exception, print_mention_exception):
7277 2019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
7279 PR breakpoints/24541
7280 * gdbarch.c: Regenerate.
7281 * gdbarch.h: Regenerate.
7282 * gdbarch.sh: Adjust return type and parameter types for
7283 'stap_adjust_register'.
7284 (i386_stap_adjust_register): Adjust signature and return new
7286 * stap-probe.c (stap_parse_register_operand): Adjust use of
7287 'gdbarch_stap_adjust_register'.
7289 2019-07-17 Tom Tromey <tromey@adacore.com>
7291 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
7293 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
7295 (struct s390_process_info): Add initializers.
7296 (s390_add_process): Use new.
7297 (s390_linux_nat_target::low_forget_process): Use delete.
7298 (s390_linux_nat_target::low_new_fork)
7299 (s390_linux_nat_target::stopped_by_watchpoint)
7300 (s390_linux_nat_target::low_prepare_to_resume)
7301 (s390_linux_nat_target::insert_watchpoint)
7302 (s390_linux_nat_target::insert_hw_breakpoint)
7303 (s390_linux_nat_target::remove_watchpoint)
7304 (s390_linux_nat_target::remove_hw_breakpoint): Update.
7306 2019-07-16 John Baldwin <jhb@FreeBSD.org>
7308 * aarch64-fbsd-nat.c: Include regcache.h.
7309 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
7311 (aarch64_fbsd_nat_target::fetch_registers)
7312 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
7314 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
7316 2019-07-16 John Baldwin <jhb@FreeBSD.org>
7318 * fbsd-nat.c: Include gdbarch.h.
7320 2019-07-15 Tom Tromey <tromey@adacore.com>
7322 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
7324 2019-07-15 Tom Tromey <tromey@adacore.com>
7326 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
7327 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
7328 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
7329 * cli-out.c (cli_ui_out::do_field_int): New method.
7330 * ui-out.c (ui_out::field_unsigned): New method.
7331 * symfile.c (generic_load): Use field_unsigned.
7332 (print_transfer_performance): Likewise.
7333 * record-btrace.c (ui_out_field_uint): Remove.
7334 (btrace_call_history_insn_range, btrace_call_history): Use
7336 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
7338 * ui-out.h (class ui_out) <field_unsigned>: New method.
7339 <do_field_unsigned>: Likewise.
7341 2019-07-15 Tom Tromey <tromey@adacore.com>
7343 * mi/mi-main.c (list_available_thread_groups): Use field_string.
7344 * mi/mi-interp.c (mi_memory_changed): Use field_string.
7345 * target.c (flash_erase_command): Use field_string.
7346 * infrun.c (print_signal_received_reason): Use field_string.
7347 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
7348 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
7350 * ada-tasks.c (print_ada_task_info): Use field_string.
7352 2019-07-15 Tom Tromey <tromey@adacore.com>
7354 * target.c (flash_erase_command): Use field_core_addr.
7355 * symfile.c (generic_load): Use field_core_addr.
7356 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
7357 Use field_core_addr.
7358 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
7361 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
7363 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
7364 value if its desired type is smaller than a CORE_ADDR and signed.
7366 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
7368 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
7369 of changes to field names, and use new is_reference field to
7370 decide if a property is a reference or not.
7371 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
7373 (struct dwarf2_property_baton): Update header comment, rename
7374 'referenced_type' to 'property_type' and update comments.
7375 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
7376 default property type, store in property baton, update to take
7377 accound of renamed field.
7378 (read_func_scope): Update call to attr_to_dynamic_prop.
7379 (read_array_type): Likewise.
7380 (dwarf2_per_cu_addr_sized_int_type): New function.
7381 (read_subrange_index_type): Move type finding code to
7382 dwarf2_per_cu_addr_sized_int_type.
7383 (read_subrange_type): Update calls to attr_to_dynamic_prop.
7384 (dwarf2_per_cu_addr_type): New function.
7385 (set_die_type): Update calls to attr_to_dynamic_prop.
7387 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
7389 * dwarf2read.c (read_subrange_index_type): New function.
7390 (read_subrange_type): Move code into new function and call it.
7391 * gdbtypes.c (create_range_type): Add some asserts.
7393 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
7395 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
7396 update return statements.
7397 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
7398 declaration, and update comment to match.
7399 * gdbtypes.c (resolve_dynamic_array): Update call to
7400 dwarf2_evaluate_property to match new return type.
7402 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
7404 * valarith.c (value_subscripted_rvalue): Change lowerbound
7405 parameter type from int to LONGEST.
7406 * value.h (value_subscripted_rvalue): Likewise in declaration.
7408 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
7410 * cli/cli-utils.c (info_print_command_completer): New function.
7411 * cli/cli-utils.h: Add 'completer.h' include, and forward
7412 declaration for 'struct cmd_list_element'.
7413 (info_print_command_completer): Declare.
7414 * stack.c (_initialize_stack): Add completer for 'info locals' and
7416 * symtab.c (_initialize_symtab): Add completer for 'info
7417 variables' and 'info functions'.
7418 * NEWS: Mention completion for additional info commands.
7420 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
7422 * cli/cli-utils.c (extract_info_print_args): Delete.
7423 (extract_arg_maybe_quoted): Delete.
7424 (info_print_options_defs): New variable.
7425 (make_info_print_options_def_group): New function.
7426 (extract_info_print_options): Define new function.
7427 * cli/cli-utils.h (extract_info_print_args): Delete.
7428 (struct info_print_options): New structure.
7429 (extract_info_print_options): Declare new function.
7430 * stack.c (info_locals_command): Update to use new
7431 extract_info_print_options, also add a header comment.
7432 (info_args_command): Likewise.
7433 * symtab.c (info_variables_command): Likewise.
7434 (info_functions_command): Likewise.
7436 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
7438 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
7439 to extract string arguments.
7440 * common/common-utils.c (extract_string_maybe_quoted): New function.
7441 * common/common-utils.h (extract_string_maybe_quoted): Declare.
7443 2019-07-11 Tom Tromey <tromey@adacore.com>
7445 * main.c (get_init_files): Use GDBINIT, not gdbinit.
7446 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
7447 * top.h (gdbinit): Don't declare.
7448 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
7450 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
7451 * top.c (gdb_init): Don't call init_cli_cmds.
7453 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
7455 2019-07-11 Tom Tromey <tromey@adacore.com>
7457 * python/py-inferior.c (add_thread_object): Don't use thread_obj
7458 after it has been moved.
7460 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
7462 * valops.c (value_must_coerce_to_target): Change return type to
7464 * value.h (value_must_coerce_to_target): Likewise.
7466 2019-07-10 Simon Marchi <simon.marchi@efficios.com>
7468 * breakpoint.c (is_hardware_watchpoint): Remove
7469 forward-declaration.
7470 (is_masked_watchpoint): Change return type to bool.
7471 (is_tracepoint): Likewise.
7472 (is_breakpoint): Likewise.
7473 (is_hardware_watchpoint): Likewise.
7474 (is_watchpoint): Likewise.
7475 (is_no_memory_software_watchpoint): Likewise.
7476 (is_catchpoint): Likewise.
7477 (breakpoint_1): Make FILTER parameter's return type bool.
7478 is_masked_watchpoint): Change return type to bool.
7479 (save_breakpoints): Make FILTER parameter's return type bool.
7480 * breakpoint.h (is_breakpoint): Change return type to bool.
7481 (is_watchpoint): Likewise.
7482 (is_catchpoint): Likewise.
7483 (is_tracepoint): Likewise.
7485 2019-07-10 Tom Tromey <tom@tromey.com>
7487 * defs.h: Don't include gdbarch.h.
7488 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
7489 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
7490 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
7491 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
7492 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
7493 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
7494 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
7495 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
7496 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
7497 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
7498 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
7499 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
7500 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
7501 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
7502 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
7503 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
7504 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
7505 record-btrace.c, record.h, regcache-dump.c, regcache.h,
7506 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
7507 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
7508 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
7509 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
7510 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
7511 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
7512 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
7513 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
7514 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
7516 2019-07-10 Tom Tromey <tromey@adacore.com>
7518 * ada-lang.h (is_ada_exception_catchpoint): Declare.
7519 * breakpoint.c (init_ada_exception_breakpoint): Register as
7521 (print_one_breakpoint_location, print_one_breakpoint): Use
7522 is_ada_exception_catchpoint.
7523 * ada-lang.c (class ada_catchpoint_location): Pass
7524 bp_loc_software_breakpoint to bp_location constructor.
7525 (is_ada_exception_catchpoint): New function.
7527 2019-07-10 Tom Tromey <tromey@adacore.com>
7529 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
7531 (struct arm_exidx_entry): New method operator<.
7532 (struct arm_exidx_data) <section_maps>: Change type.
7533 (arm_exidx_data_free): Remove.
7534 (arm_exidx_data_key): Change type. Move lower.
7535 (arm_exidx_new_objfile): Update.
7536 (arm_compare_exidx_entries): Remove.
7537 (arm_find_exidx_entry, _initialize_arm_tdep)
7539 2019-07-10 Tom Tromey <tromey@adacore.com>
7541 * solib-spu.c (ocl_program_data_key): Change type.
7542 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
7545 2019-07-10 Tom Tromey <tromey@adacore.com>
7547 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
7548 (struct solib_aix_inferior_data) <library_list>: Change type.
7549 (solib_aix_inferior_data_handle): Change type.
7550 (get_solib_aix_inferior_data): Update.
7551 (solib_aix_free_library_list): Remove.
7552 (library_list_start_library): Update.
7553 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
7555 (solib_aix_get_library_list)
7556 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
7557 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
7559 2019-07-10 Tom Tromey <tromey@adacore.com>
7561 * solib-dsbt.c (struct dsbt_info): Add initializers.
7562 (solib_dsbt_pspace_data): Change type.
7563 (dsbt_pspace_data_cleanup): Remove.
7564 (get_dsbt_info, _initialize_dsbt_solib): Update.
7566 2019-07-10 Tom Tromey <tromey@adacore.com>
7568 * spu-tdep.c (spu_overlay_data): Change type.
7569 (spu_get_overlay_table, spu_overlay_new_objfile)
7570 (_initialize_spu_tdep): Update.
7572 2019-07-10 Tom Tromey <tromey@adacore.com>
7574 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
7576 (dbx_objfile_data_key): Change type and declare later.
7577 (DBX_SYMFILE_INFO): Rewrite.
7578 * dbxread.c (dbx_objfile_data_key): Change type.
7579 (dbx_symfile_init): Update.
7580 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
7581 (coffstab_build_psymtabs, elfstab_build_psymtabs)
7582 (stabsect_build_psymtabs, _initialize_dbxread): Update.
7584 2019-07-10 Tom Tromey <tromey@adacore.com>
7586 * jit.c (jit_program_space_key): Change type. Move lower.
7587 (get_jit_program_space_data): Update.
7588 (jit_program_space_data_cleanup): Remove.
7589 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
7591 (struct jit_program_space_data): Add initializers.
7593 2019-07-10 Tom Tromey <tromey@adacore.com>
7595 * solib-darwin.c (struct darwin_info): Add initializers.
7596 (solib_darwin_pspace_data): Change type.
7597 (darwin_pspace_data_cleanup): Remove.
7598 (get_darwin_info, _initialize_darwin_solib): Update.
7600 2019-07-10 Tom Tromey <tromey@adacore.com>
7602 * remote-sim.c (struct sim_inferior_data): Add initializers,
7603 constructor, and destructor.
7604 (sim_inferior_data_key): Change type. Move lower.
7605 (check_for_duplicate_sim_descriptor): Update.
7606 (get_sim_inferior_data): Use new. Update.
7607 (~sim_inferior_data_cleanup): Rename from
7608 sim_inferior_data_cleanup. Simplify.
7609 (gdbsim_close_inferior, simulator_command)
7610 (sim_command_completer, _initialize_remote_sim): Update.
7611 (next_pid, INITIAL_PID): Move earlier.
7613 2019-07-10 Tom Tromey <tromey@adacore.com>
7615 * python/python-internal.h (create_thread_object): Return
7617 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
7618 * python/py-inferior.c (struct threadlist_entry): Add
7620 <thread_obj>: Now a gdbpy_ref.
7621 (thread_to_thread_object): Update.
7622 (add_thread_object): Use new.
7623 (delete_thread_object): Use delete.
7624 (infpy_threads): Update.
7625 (py_free_inferior): Update. Construct "inf_obj" after acquiring
7628 2019-07-10 Tom Tromey <tromey@adacore.com>
7630 * valops.c (value_cast): Specialize error message for Ada.
7632 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
7634 * breakpoint.c (breakpoint_1): Update doc and parameter names.
7636 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
7638 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
7639 bpstat_should_step): Return bool, adjust comments.
7640 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
7641 bpstat_should_step): Likewise.
7643 2019-07-10 Alan Hayward <alan.hayward@arm.com>
7645 * features/Makefile: Use feature target descriptions for Arm.
7646 * features/arm/arm-core.c: Generate new file.
7647 * features/arm/arm-fpa.c: Likewise.
7648 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
7649 * features/arm/arm-m-profile.c: Likewise.
7650 * features/arm/arm-vfpv2.c: Likewise.
7651 * features/arm/arm-vfpv3.c: Likewise.
7652 * features/arm/xscale-iwmmxt.c: Likewise.
7653 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
7655 2019-07-10 Alan Hayward <alan.hayward@arm.com>
7657 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
7660 2019-07-10 Alan Hayward <alan.hayward@arm.com>
7662 * features/aarch64-pauth.c: Regenerate.
7664 2019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
7666 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
7668 (bpstat_what): Use false instead of 0.
7670 2019-07-09 Pedro Alves <palves@redhat.com>
7672 * break-catch-throw.c (is_exception_catchpoint): New.
7673 * breakpoint.c (print_one_breakpoint_location): New parameter
7674 'raw_loc'. Handle it. Use
7675 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
7676 looking at the breakpoint's type.
7677 (print_one_breakpoint): If handling "maint info breakpoints", also
7678 print locations of exception catchpoints.
7679 * breakpoint.h (is_exception_catchpoint): Declare.
7681 2019-07-09 Pedro Alves <palves@redhat.com>
7683 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
7685 (allocate_location_exception_catchpoint): New.
7686 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
7687 (initialize_throw_catchpoint_ops): Install
7688 allocate_location_exception_catchpoint as allocate_location
7690 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
7691 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
7693 (breakpoint_address_is_meaningful): Delete.
7694 (bl_address_is_meaningful): New.
7695 (breakpoint_locations_match): Adjust comment.
7696 (bp_location_from_bp_type): New, factored out of...
7697 (bp_location::bp_location(breakpoint *)): ... this.
7698 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
7700 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
7701 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
7702 breakpoint_address_is_meaningful.
7703 (bp_locations_compare): Adjust comment.
7704 (update_global_location_list): Use bl_address_is_meaningful
7705 instead of breakpoint_address_is_meaningful.
7706 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
7708 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
7709 * python/py-breakpoint.c (bppy_get_location): No longer check
7710 whether location is null.
7712 2019-07-09 Pedro Alves <palves@redhat.com>
7715 * breakpoint.c (print_one_breakpoint_location): Remove
7716 single-location assert.
7718 2019-07-09 Tom Tromey <tom@tromey.com>
7720 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
7721 * configure: Rebuild.
7722 * configure.ac: Change common to gdbsupport.
7723 * gdbsupport: Rename from common.
7724 * acinclude.m4: Change common to gdbsupport.
7725 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
7726 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
7728 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
7729 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
7730 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
7731 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
7732 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
7733 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
7734 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
7735 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
7736 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
7737 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
7738 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
7739 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
7740 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
7741 coff-pe-read.c, command.h, compile/compile-c-support.c,
7742 compile/compile-c.h, compile/compile-cplus-symbols.c,
7743 compile/compile-cplus-types.c, compile/compile-cplus.h,
7744 compile/compile-loc2c.c, compile/compile.c, completer.c,
7745 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
7746 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
7747 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
7748 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
7749 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
7750 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
7751 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
7752 features/aarch64-core.c, features/aarch64-fpu.c,
7753 features/aarch64-pauth.c, features/aarch64-sve.c,
7754 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
7755 features/i386/32bit-core.c, features/i386/32bit-linux.c,
7756 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
7757 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
7758 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
7759 features/i386/64bit-core.c, features/i386/64bit-linux.c,
7760 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
7761 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
7762 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
7763 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
7764 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
7765 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
7766 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
7767 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
7768 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
7769 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
7770 go32-nat.c, guile/guile.c, guile/scm-ports.c,
7771 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
7772 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
7773 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
7774 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
7775 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
7776 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
7777 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
7778 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
7779 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
7780 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
7781 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
7782 minsyms.c, mips-linux-tdep.c, namespace.h,
7783 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
7784 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
7785 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
7786 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
7787 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
7788 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
7789 nat/linux-waitpid.c, nat/mips-linux-watch.c,
7790 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
7791 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
7792 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
7793 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
7794 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
7795 procfs.c, producer.c, progspace.h, psymtab.h,
7796 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
7797 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
7798 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
7799 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
7800 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
7801 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
7802 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
7803 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
7804 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
7805 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
7806 target-memory.c, target.c, target.h, target/waitstatus.c,
7807 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
7808 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
7809 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
7810 unittests/array-view-selftests.c,
7811 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
7812 unittests/common-utils-selftests.c,
7813 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
7814 unittests/format_pieces-selftests.c,
7815 unittests/function-view-selftests.c,
7816 unittests/lookup_name_info-selftests.c,
7817 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
7818 unittests/mkdir-recursive-selftests.c,
7819 unittests/observable-selftests.c,
7820 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
7821 unittests/parse-connection-spec-selftests.c,
7822 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
7823 unittests/scoped_fd-selftests.c,
7824 unittests/scoped_mmap-selftests.c,
7825 unittests/scoped_restore-selftests.c,
7826 unittests/string_view-selftests.c, unittests/style-selftests.c,
7827 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
7828 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
7829 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
7830 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
7831 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
7832 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
7834 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
7836 * linespec.c (decode_digits_list_mode): Set explicit_line to a
7838 (decode_digits_ordinary): Set explicit_line field in sal.
7839 * symtab.c (skip_prologue_sal): Don't skip prologue for a
7840 symtab_and_line that was set on an explicit line number in
7841 assembler code. Do always update the recorded symtab and line if
7842 we do skip the prologue.
7844 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
7846 * breakpoint.c (set_breakpoint_location_function): Remove
7847 explicit_loc parameter.
7848 (momentary_breakpoint_from_master): Update call to
7849 set_breakpoint_location_function.
7850 (add_location_to_breakpoint): Likewise.
7852 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
7854 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
7855 required features based on default bfd type when no specific bfd
7858 2019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7860 * NEWS: Mention that GDB printf and eval commands can now print
7861 C-style and Ada-style convenience var strings without
7862 calling the inferior.
7863 * printcmd.c (printf_c_string): Locally print GDB internal var
7864 instead of transiting via the inferior.
7865 (printf_wide_c_string): Likewise.
7867 2019-07-04 Alan Hayward <alan.hayward@arm.com>
7869 PR breakpoints/25011
7870 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
7872 2019-07-04 Tom Tromey <tom@tromey.com>
7875 * tui/tui-winsource.c (tui_clear_source_content): Update.
7876 (tui_source_window_base::set_is_exec_point_at): Fix comment.
7877 (tui_update_breakpoint_info): Update.
7878 (tui_set_exec_info_content): Update.
7879 * tui/tui-source.c (tui_set_source_content_nil): Update.
7880 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
7882 * tui/tui-data.h (enum tui_bp_flag): New.
7883 (tui_bp_flags): New enum flags type.
7884 (struct tui_source_element) <break_mode>: Change type. Rename
7886 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
7887 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
7889 * tui/tui-winsource.h: Fix comment.
7891 2019-07-04 Alan Hayward <alan.hayward@arm.com>
7893 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
7894 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
7895 (store_fpregs_to_thread)
7896 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
7897 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
7898 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
7899 (IWMMXT_REGS_SIZE): Add define.
7900 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
7901 (fetch_vfp_regs, store_vfp_regs)
7902 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
7903 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
7905 2019-07-04 Alan Hayward <alan.hayward@arm.com>
7907 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
7909 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
7910 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
7911 (ARM_INT_REGISTER_SIZE): ...to this.
7912 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
7913 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
7914 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
7915 (arm_linux_collect_gregset, supply_nwfpe_register)
7916 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
7918 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
7919 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
7920 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
7921 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
7922 (arm_return_in_memory, arm_store_return_value)
7923 (arm_get_longjmp_target, arm_register_g_packet_guesses)
7924 (arm_record_ld_st_multiple): Likewise.
7925 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
7926 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
7928 2019-07-04 Alan Hayward <alan.hayward@arm.com>
7930 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
7931 AARCH64_DISPLACED_MODIFIED_INSNS.
7932 * aarch64-tdep.c (struct aarch64_displaced_step_data)
7933 (aarch64_displaced_step_copy_insn): Likewise.
7934 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
7935 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
7936 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
7937 ARM_DISPLACED_MODIFIED_INSNS.
7938 * arm-tdep.c (arm_gdbarch_init): Likewise.
7939 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
7940 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
7941 (struct arm_displaced_step_closure): Use
7942 ARM_DISPLACED_MODIFIED_INSNS.
7944 2019-07-04 Alan Hayward <alan.hayward@arm.com>
7946 * features/Makefile: Remove unused xml files.
7947 * features/aarch64.xml: Remove.
7948 * features/i386/amd64-avx-avx512-linux.xml: Remove.
7949 * features/i386/amd64-avx-avx512.xml: Remove.
7950 * features/i386/amd64-avx-linux.xml: Remove.
7951 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
7952 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
7953 * features/i386/amd64-avx-mpx-linux.xml: Remove.
7954 * features/i386/amd64-avx-mpx.xml: Remove.
7955 * features/i386/amd64-avx.xml: Remove.
7956 * features/i386/amd64-linux.xml: Remove.
7957 * features/i386/amd64-mpx-linux.xml: Remove.
7958 * features/i386/amd64-mpx.xml: Remove.
7959 * features/i386/amd64.xml: Remove.
7960 * features/i386/i386-avx-avx512-linux.xml: Remove.
7961 * features/i386/i386-avx-avx512.xml: Remove.
7962 * features/i386/i386-avx-linux.xml: Remove.
7963 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
7964 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
7965 * features/i386/i386-avx-mpx-linux.xml: Remove.
7966 * features/i386/i386-avx-mpx.xml: Remove.
7967 * features/i386/i386-avx.xml: Remove.
7968 * features/i386/i386-linux.xml: Remove.
7969 * features/i386/i386-mmx-linux.xml: Remove.
7970 * features/i386/i386-mmx.xml: Remove.
7971 * features/i386/i386-mpx-linux.xml: Remove.
7972 * features/i386/i386-mpx.xml: Remove.
7973 * features/i386/i386.xml: Remove.
7974 * features/i386/x32-avx-avx512-linux.xml: Remove.
7975 * features/i386/x32-avx-linux.xml: Remove.
7976 * features/i386/x32-linux.xml: Remove.
7978 2019-07-04 Alan Hayward <alan.hayward@arm.com>
7980 * regformats/aarch64.dat: Remove.
7981 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
7982 * regformats/i386/amd64-avx-linux.dat: Remove.
7983 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
7984 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
7985 * regformats/i386/amd64-linux.dat: Remove.
7986 * regformats/i386/amd64-mpx-linux.dat: Remove.
7987 * regformats/i386/amd64.dat: Remove.
7988 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
7989 * regformats/i386/i386-avx-linux.dat: Remove.
7990 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
7991 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
7992 * regformats/i386/i386-linux.dat: Remove.
7993 * regformats/i386/i386-mmx-linux.dat: Remove.
7994 * regformats/i386/i386-mpx-linux.dat: Remove.
7995 * regformats/i386/i386.dat: Remove.
7996 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
7997 * regformats/i386/x32-avx-linux.dat: Remove.
7998 * regformats/i386/x32-linux.dat: Remove.
8000 2019-07-04 Alan Hayward <alan.hayward@arm.com>
8002 * aarch64-tdep.c: Remove xml self tests.
8003 * amd64-linux-tdep.c: Likewise.
8004 * amd64-tdep.c: Likewise.
8005 * i386-linux-tdep.c: Likewise.
8006 * i386-tdep.c: Likewise.
8008 2019-07-03 Pedro Alves <palves@redhat.com>
8011 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
8012 (pipe_cmd_option_defs): New.
8013 (make_pipe_cmd_options_def_group): New.
8014 (pipe_command): Use gdb::option::process_options.
8015 (pipe_command_completer): New function.
8016 (_initialize_cli_cmds): Install completer for "pipe" command.
8018 2019-07-03 Pedro Alves <palves@redhat.com>
8020 * cli/cli-option.c (union option_value) <string>: New field.
8021 (struct option_def_and_value): Add ctor, move ctor, dtor and
8022 use DISABLE_COPY_AND_ASSIGN.
8023 (option_def_and_value::clear_value): New.
8024 (parse_option, save_option_value_in_ctx, get_val_type_str)
8025 (add_setshow_cmds_for_options): Handle var_string.
8026 * cli-option.h (union option_def::var_address) <string>: New
8028 (struct string_option_def): New.
8029 * maint-test-options.c (struct test_options_opts): Add default
8030 ctor and use DISABLE_COPY_AND_ASSIGN.
8031 <string_opt>: New field.
8032 (test_options_opts::~test_options_opts): New.
8033 (test_options_opts::dump): Also dump "-string".
8034 (test_options_option_defs): Install "string.
8036 2019-07-03 Pedro Alves <palves@redhat.com>
8038 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
8039 option_value with a null enumeration.
8040 (complete_options): Save the option values in the context.
8041 (save_option_value_in_ctx): New, factored out from ...
8042 (process_options): ... here.
8043 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
8045 * maint-test-options.c (test_options_opts::dump): New, factored
8047 (maintenance_test_options_command_mode): ... here.
8048 (maintenance_test_options_command_completion_result): Delete.
8049 (maintenance_test_options_command_completion_text): Update
8051 (maintenance_show_test_options_completion_result): Change
8052 prototype. Just print
8053 maintenance_test_options_command_completion_text.
8054 (save_completion_result): New.
8055 (maintenance_test_options_completer_mode): Pass options context to
8056 complete_options, and then save a dump.
8057 (_initialize_maint_test_options): Use add_cmd to install "maint
8058 show test-options-completion-result".
8060 2019-07-03 Pedro Alves <palves@redhat.com>
8062 * NEWS (New commands): Mention "with" and "maint with".
8063 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
8064 (with_command, with_command_completer): New.
8065 (pipe_command): Adjust to new repeat_previous
8067 (_initialize_cli_cmds): Install the "with" command and its "w"
8069 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
8071 * cli/cli-setshow.c (parse_cli_var_uinteger)
8072 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
8073 argument strings for all var_types.
8074 (get_setshow_command_value_string): New, factored out from ...
8075 (do_show_command): ... this.
8076 * cli/cli-setshow.h: Include <string>.
8077 (get_setshow_command_value_string): Declare.
8078 * command.h (repeat_previous): Now returns const char *. Adjust
8080 * maint.c: Include "cli/cli-cmds.h".
8081 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
8082 (_initialize_maint_cmds): Register the "maintenance with" command.
8083 * top.c (repeat_previous): Move bits from pipe_command here:
8084 Return the saved command line, if any; error out if there's no
8085 command to relaunch.
8087 2019-07-03 Pedro Alves <palves@redhat.com>
8089 * NEWS (New commands): Mention "maint set/show test-settings"
8090 instead of "maint test-settings".
8091 * maint-test-settings.c (maintenance_test_settings_list): Delete.
8092 (maintenance_test_settings_set_list): Rename to ...
8093 (maintenance_set_test_settings_list): ... this.
8094 (maintenance_test_settings_show_list): Rename to ...
8095 (maintenance_show_test_settings_list): ... this.
8096 (maintenance_test_settings_cmd): Delete.
8097 (maintenance_test_settings_set_cmd): ...
8098 (maintenance_set_test_settings_cmd): ... this.
8099 (maintenance_test_settings_show_cmd): ...
8100 (maintenance_show_test_settings_cmd): ... this.
8101 (maintenance_test_settings_show_value_cmd):
8102 (maintenance_show_test_settings_value_cmd): ... this.
8103 (_initialize_maint_test_settings): No longer install the "maint
8104 test-settings" prefix command. Rename "maint test-settings set"
8105 to "maint set test-settings", and "maint test-settings show" to
8106 "maint show test-settings". Adjust all subcommands.
8108 2019-07-03 Pedro Alves <palves@redhat.com>
8110 * maint-test-settings.c: Fix file's intro comment. Replace all
8111 references to "test-options" with references to "test-settings",
8114 2019-07-03 Pedro Alves <palves@redhat.com>
8116 * maint-test-settings.c (maintenance_test_settings_xxx)
8117 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
8119 (maintenance_test_settings_enums): Use them.
8120 (maintenance_test_settings_enum): Default to
8121 maintenance_test_settings_xxx.
8122 (_initialize_maint_test_settings): Initialize
8123 MAINTENANCE_TEST_SETTINGS_FILENAME.
8125 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
8127 * breakpoint.h (remove_breakpoints_inf): Change return type to
8128 void, move function documentation here.
8129 * breakpoint.c (remove_breakpoints_inf): Change return type to
8130 void, move function documentation to header.
8132 2019-07-02 Pedro Alves <palves@redhat.com>
8134 * NEWS (Completion improvements): Mention "info threads".
8135 * thread.c (struct info_threads_opts, info_threads_option_defs)
8136 (make_info_threads_options_def_group): New.
8137 (info_threads_command): Use gdb::option::process_options.
8138 (info_threads_command_completer): New.
8139 (_initialize_thread): Use gdb::option::build_help to build the
8140 help text for "info threads".
8142 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
8144 * defs.h (generic_load): Move from here...
8145 * symfile.h (generic_load): ... to here. Rename name parameter
8147 * symfile.c (generic_load): Add comment.
8149 2019-07-01 Tom Tromey <tromey@adacore.com>
8152 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
8153 declaration of without_params. Fix formatting.
8155 2019-07-01 Tom Tromey <tromey@adacore.com>
8157 * ada-exp.y (find_primitive_type): Update.
8158 * ada-lang.h (ada_lookup_symbol): Update.
8159 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
8161 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
8163 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
8165 PR breakpoints/24541
8166 * gdbarch.c: Regenerate.
8167 * gdbarch.h: Regenerate.
8168 * gdbarch.sh: Add 'stap_adjust_register'.
8169 * i386-tdep.c: Include '<unordered_set>'.
8170 (i386_stap_adjust_register): New function.
8171 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
8172 * stap-probe.c (stap_parse_register_operand): Call
8173 'gdbarch_stap_adjust_register'.
8175 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
8178 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
8179 * python/python.c (do_start_initialization): Use 'xmalloc'
8180 instead of 'PyMem_Malloc'.
8182 2019-06-28 Tom Tromey <tromey@adacore.com>
8184 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
8187 2019-06-27 Tom Tromey <tromey@adacore.com>
8189 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
8191 (arm_find_mapping_symbol, arm_record_special_symbol)
8192 (_initialize_arm_tdep): Update.
8193 (arm_objfile_data_free): Remove.
8195 2019-06-27 Tom Tromey <tromey@adacore.com>
8197 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
8198 to cp_print_static_field.
8200 2019-06-26 Tom Tromey <tromey@adacore.com>
8202 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
8203 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
8206 2019-06-26 Alan Hayward <alan.hayward@arm.com>
8208 * features/aarch64-core.c (create_feature_aarch64_core):
8210 * features/aarch64-core.xml: Add cpsr flags.
8212 2019-06-26 Alan Hayward <alan.hayward@arm.com>
8214 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
8215 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
8217 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
8219 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
8221 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
8223 (arm_record_special_symbol): Don't insert new symbol in sorted
8224 position, push it at the end.
8226 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
8228 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
8229 (arm_mapping_symbol_s): Remove.
8230 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
8231 (arm_mapping_symbol_vec): New typedef.
8232 (struct arm_per_objfile): Add constructor.
8233 <section_maps>: Change type to
8234 std::unique_ptr<arm_mapping_symbol_vec[]>.
8235 (arm_compare_mapping_symbols): Remove.
8236 (arm_find_mapping_symbol): Adjust to section_maps type change.
8237 (arm_objfile_data_free): Call delete on arm_per_objfile.
8238 (arm_record_special_symbol): Adjust to section_maps type change.
8239 Allocate arm_per_objfile with new.
8241 2019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8243 * cli/cli-cmds.c (alias_command): Compare the alias prefix
8244 with the command prefix.
8246 2019-06-25 Tom Tromey <tom@tromey.com>
8248 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
8249 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
8251 2019-06-25 Tom Tromey <tom@tromey.com>
8253 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
8255 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
8258 2019-06-25 Tom Tromey <tom@tromey.com>
8260 * tui/tui-winsource.c
8261 (tui_source_window_base::set_is_exec_point_at): Add check against
8264 2019-06-25 Tom Tromey <tom@tromey.com>
8266 * tui/tui-source.c (tui_set_source_content): Don't check before
8268 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
8270 2019-06-25 Tom Tromey <tom@tromey.com>
8272 * tui/tui-winsource.h (tui_update_source_window_as_is)
8273 (tui_alloc_source_buffer, tui_line_is_displayed)
8274 (tui_addr_is_displayed): Change type of win_info.
8275 * tui/tui-winsource.c (tui_update_source_window_as_is)
8276 (tui_clear_source_content, tui_show_source_line)
8277 (tui_show_source_content, tui_source_window_base::refill)
8278 (tui_source_window_base::set_is_exec_point_at)
8279 (tui_source_window_base::set_is_exec_point_at)
8280 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
8281 (tui_alloc_source_buffer, tui_line_is_displayed)
8282 (tui_addr_is_displayed): Change type of win_info. Update.
8283 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
8284 (tui_source_window_base::do_make_visible_with_new_height):
8286 * tui/tui-source.c (tui_set_source_content)
8287 (tui_set_source_content_nil)
8288 (tui_source_window::do_scroll_vertical): Update.
8289 * tui/tui-layout.c (show_layout): Update.
8290 * tui/tui-disasm.c (tui_set_disassem_content)
8291 (tui_disasm_window::do_scroll_vertical): Update.
8292 * tui/tui-data.h (tui_win_content): Remove.
8293 (struct tui_gen_win_info) <content, content_size>: Remove.
8294 (struct tui_source_element): Add initializers and destructor.
8295 (union tui_which_element, struct tui_win_element): Remove.
8296 (struct tui_source_window_base) <content>: New field.
8297 (struct tui_data_window): Remove destructor.
8298 (tui_alloc_content, tui_free_win_content)
8299 (tui_free_all_source_wins_content): Don't declare.
8300 * tui/tui-data.c (tui_initialize_static_data): Update.
8301 (init_content_element, tui_alloc_content): Remove.
8302 (~tui_gen_win_info): Update.
8303 (~tui_data_window, tui_free_all_source_wins_content)
8304 (tui_free_win_content, free_content, free_content_elements):
8307 2019-06-25 Tom Tromey <tom@tromey.com>
8309 * tui/tui-winsource.h (tui_clear_source_content)
8310 (tui_erase_source_content, tui_show_source_content): Change type
8312 * tui/tui-winsource.c (tui_clear_source_content)
8313 (tui_erase_source_content, tui_show_source_content): Change type
8315 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
8316 * tui/tui-source.h (tui_set_source_content_nil): Change type of
8318 * tui/tui-source.c (tui_set_source_content_nil): Change type of
8320 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
8322 2019-06-25 Tom Tromey <tom@tromey.com>
8324 * tui/tui-winsource.c (tui_clear_source_content)
8325 (tui_source_window_base::set_is_exec_point_at): Update.
8326 * tui/tui-source.c (tui_set_source_content_nil): Update.
8327 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
8329 * tui/tui-data.c (init_content_element): Update.
8331 2019-06-25 Tom Tromey <tom@tromey.com>
8333 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
8334 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
8335 * tui/tui-layout.c (init_and_make_win): Update.
8336 * tui/tui.h (enum tui_win_type): Update.
8337 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
8338 tui_win_is_auxillary.
8339 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
8340 tui_win_is_auxillary.
8342 2019-06-25 Tom Tromey <tom@tromey.com>
8344 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
8345 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
8346 (tui_delete_data_content_windows, tui_display_all_data)
8347 (tui_data_window::do_scroll_vertical, tui_display_data_from):
8349 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
8350 * tui/tui-regs.c (tui_last_regs_line_no)
8351 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
8352 (tui_show_registers): Update.
8353 (tui_show_register_group): Return void. Update.
8354 (tui_display_registers_from, tui_display_reg_element_at_line)
8355 (tui_display_registers_from_line, tui_check_register_values):
8357 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
8359 (struct tui_data_window) <regs_content>: Now a std::vector.
8360 <regs_content_count>: Remove.
8361 (tui_add_content_elements, tui_free_data_content): Don't declare.
8362 * tui/tui-data.c (tui_data_window::clear_detail): Update.
8363 (init_content_element): Remove DATA_WIN case. Add assert.
8364 (tui_add_content_elements): Remove.
8365 (tui_data_window): Update.
8366 (tui_free_data_content): Remove.
8367 (free_content_elements): Remove DATA_WIN case.
8369 2019-06-25 Tom Tromey <tom@tromey.com>
8371 * tui/tui-data.c (tui_data_item_window): Update.
8372 * tui/tui-windata.h (tui_check_data_values): Don't declare.
8373 * tui/tui-windata.c (tui_display_all_data)
8374 (tui_display_data_from_line): Update.
8375 (tui_check_data_values): Remove.
8376 * tui/tui-regs.c (tui_show_register_group)
8377 (tui_display_reg_element_at_line): Update.
8378 * tui/tui-hooks.c (tui_register_changed)
8379 (tui_refresh_frame_and_register_information): Call
8380 tui_check_register_values.
8381 * tui/tui-data.h (struct tui_data_window) <data_content,
8382 data_content_count, data_type>: Remove.
8383 (enum tui_data_type): Remove.
8385 * tui/tui-data.c (tui_data_window::clear_detail)
8386 (~tui_data_window): Update.
8388 2019-06-25 Tom Tromey <tom@tromey.com>
8390 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
8392 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
8393 Rename from tui_first_data_item_displayed. Update.
8394 (tui_data_window::refresh_all)
8395 (tui_data_window::do_scroll_vertical): Update.
8396 * tui/tui-data.h (struct tui_data_window)
8397 <first_data_item_displayed>: Declare new method.
8399 2019-06-25 Tom Tromey <tom@tromey.com>
8401 * tui/tui-data.h (tui_init_generic_part): Don't declare.
8402 * tui/tui-data.c (tui_init_generic_part): Remove, moving
8404 (tui_initialize_static_data): ...here.
8406 2019-06-25 Tom Tromey <tom@tromey.com>
8408 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
8409 (tui_display_registers_from, tui_check_register_values): Update.
8410 (tui_display_register): Remove win_info parameter; update.
8411 (tui_get_register): Change type of parameters.
8412 * tui/tui-data.h (struct tui_data_element): Remove.
8413 (union tui_which_element) <data>: Remove.
8414 <data_window>: Change type.
8415 (struct tui_data_item_window): New.
8416 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
8418 (~tui_data_item_window): New destructor.
8419 (free_content_elements): Remove DATA_ITEM_WIN case.
8421 2019-06-25 Tom Tromey <tom@tromey.com>
8423 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
8426 2019-06-25 Tom Tromey <tom@tromey.com>
8428 * tui/tui-data.h (struct tui_command_element): Remove.
8429 (union tui_which_element) <command>: Remove.
8430 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
8432 (free_content_elements): Remove CMD_WIN case.
8434 2019-06-25 Tom Tromey <tom@tromey.com>
8436 * tui/tui-layout.c (tui_set_layout): Update.
8437 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
8438 * tui/tui-data.c (layout_def): Update.
8440 2019-06-25 Tom Tromey <tom@tromey.com>
8442 * tui/tui-wingeneral.c (tui_refresh_all): Update.
8443 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
8444 (tui_source_window_base::set_new_height): Update.
8445 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
8447 (tui_set_locator_fullname, tui_set_locator_info)
8448 (tui_show_frame_info): Update.
8449 * tui/tui-source.c (tui_set_source_content)
8450 (tui_source_is_displayed): Update.
8451 * tui/tui-layout.c (show_source_disasm_command, show_data)
8452 (show_source_or_disasm_and_command): Update.
8453 * tui/tui-disasm.c (tui_set_disassem_content)
8454 (tui_get_begin_asm_address): Update.
8455 * tui/tui-data.h (struct tui_locator_element): Remove.
8456 (union tui_which_element) <locator>: Remove.
8457 (struct tui_locator_window): New.
8458 (tui_locator_win_info_ptr): Change return type.
8459 * tui/tui-data.c (_locator): Change type.
8460 (tui_locator_win_info_ptr): Change return type.
8461 (init_content_element): Remove LOCATOR_WIN case. Add assert.
8462 (tui_alloc_content): Add assert.
8464 2019-06-25 Tom Tromey <tom@tromey.com>
8466 * tui/tui-winsource.c
8467 (tui_exec_info_window::maybe_allocate_content): New method.
8468 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
8469 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
8470 (make_source_or_disasm_window): Add cast.
8471 * tui/tui-data.h (union tui_which_element) <simple_string>:
8473 (struct tui_source_info): New.
8474 (struct tui_source_window_base) <execution_info>: Change type.
8475 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
8476 case, and add assert.
8477 (tui_alloc_content): Add assert.
8479 2019-06-25 Tom Tromey <tom@tromey.com>
8481 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
8482 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
8483 * tui/tui-data.c (tui_alloc_win_info): Remove.
8485 2019-06-25 Tom Tromey <tom@tromey.com>
8487 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
8488 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
8491 2019-06-25 Tom Tromey <tom@tromey.com>
8493 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
8494 make_visible_with_new_height method.
8495 (tui_win_info::make_visible_with_new_height): New method.
8496 (tui_source_window_base::do_make_visible_with_new_height)
8497 (tui_data_window::do_make_visible_with_new_height)
8498 (tui_cmd_window::do_make_visible_with_new_height): New methods.
8499 (make_visible_with_new_height): Remove.
8500 (tui_resize_all, tui_adjust_win_heights): Use
8501 make_visible_with_new_height method.
8502 * tui/tui-data.h (struct tui_win_info)
8503 <do_make_visible_with_new_height, make_visible_with_new_height>:
8505 (struct tui_source_window_base, struct tui_data_window)
8506 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
8509 2019-06-25 Tom Tromey <tom@tromey.com>
8511 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
8513 (update_tab_width): Call update_tab_width method.
8514 * tui/tui-data.h (struct tui_win_info)
8515 (struct tui_source_window_base) <update_tab_width>: New methods.
8517 2019-06-25 Tom Tromey <tom@tromey.com>
8519 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
8521 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
8523 (tui_gen_win_info::make_visible): Update.
8524 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
8526 * tui/tui-data.h (enum tui_box): New enum.
8527 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
8529 2019-06-25 Tom Tromey <tom@tromey.com>
8531 * tui/tui-layout.c (make_source_or_disasm_window): Always use
8532 init_and_make_win for EXEC_INFO_WIN.
8533 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
8535 (struct tui_win_info) <~tui_win_info>: Inline.
8536 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
8538 * tui/tui-data.c (source_win, disasm_win): Remove globals.
8539 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
8541 (tui_initialize_static_data): Update.
8542 (~tui_gen_win_info): Handle more cleanup here.
8543 (~tui_source_window_base): Delete "execution_info".
8544 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
8546 2019-06-25 Tom Tromey <tom@tromey.com>
8548 * tui/tui-layout.c (make_command_window): Don't set
8550 (show_source_disasm_command): Call the reset method.
8551 (show_data): Don't set can_highlight. Call the reset method.
8552 (tui_gen_win_info::reset): Rename from init_gen_win_info
8553 (init_and_make_win): Simplify. Return tui_gen_win_info.
8554 (show_source_or_disasm_and_command): Call the reset method.
8555 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
8556 (struct tui_cmd_window): Set can_highlight.
8558 2019-06-25 Tom Tromey <tom@tromey.com>
8560 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
8562 (tui_make_visible, tui_make_invisible): Rewrite.
8563 (tui_win_info::make_visible): Remove.
8564 (tui_source_window_base::make_visible): Update.
8565 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
8566 method. Moved from...
8567 (struct tui_win_info) <make_visible>: ...here.
8569 2019-06-25 Tom Tromey <tom@tromey.com>
8571 * tui/tui-winsource.c
8572 (tui_source_window_base::do_scroll_horizontal): Remove direction
8574 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
8575 direction parameter.
8576 * tui/tui-win.c (tui_win_info::forward_scroll)
8577 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
8578 (tui_win_info::right_scroll): Update.
8579 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
8580 direction parameter.
8581 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
8582 direction parameter.
8583 * tui/tui-data.h (enum tui_scroll_direction): Remove.
8584 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
8585 Remove direction parameter.
8586 (struct tui_source_window_base, struct tui_source_window)
8587 (struct tui_disasm_window, struct tui_data_window)
8588 (struct tui_cmd_window): Update.
8590 2019-06-25 Tom Tromey <tom@tromey.com>
8592 * tui/tui-winsource.h (tui_set_exec_info_content)
8593 (tui_show_exec_info_content, tui_erase_exec_info_content)
8594 (tui_clear_exec_info_content, tui_update_exec_info): Change
8595 argument to tui_source_window_base.
8596 * tui/tui-winsource.c (tui_set_exec_info_content)
8597 (tui_show_exec_info_content, tui_erase_exec_info_content)
8598 (tui_clear_exec_info_content, tui_update_exec_info): Change
8599 argument to tui_source_window_base.
8601 2019-06-25 Tom Tromey <tom@tromey.com>
8603 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
8604 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
8606 2019-06-25 Tom Tromey <tom@tromey.com>
8608 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
8611 2019-06-25 Tom Tromey <tom@tromey.com>
8613 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
8615 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
8617 * tui/tui-source.c (tui_set_source_content): Update.
8618 * tui/tui-disasm.c (tui_set_disassem_content): Update.
8620 2019-06-25 Tom Tromey <tom@tromey.com>
8622 * tui/tui-win.c (window_name_completer, tui_set_focus)
8623 (tui_all_windows_info): Use name method.
8624 * tui/tui-data.h (struct tui_gen_win_info)
8625 (struct tui_source_window, struct tui_disasm_window)
8626 (struct tui_data_window, struct tui_cmd_window) <name>: New
8628 (tui_win_name): Don't declare.
8629 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
8630 (tui_win_name): Remove.
8632 2019-06-25 Tom Tromey <tom@tromey.com>
8634 * tui/tui-winsource.h (tui_update_source_window)
8635 (tui_update_source_window_as_is): Change parameter type.
8636 * tui/tui-winsource.c (tui_update_source_window): Change win_info
8637 to be a tui_source_window_base.
8638 (tui_update_source_window_as_is): Likewise.
8639 * tui/tui-win.c (make_visible_with_new_height): Update.
8641 2019-06-25 Tom Tromey <tom@tromey.com>
8643 * tui/tui-winsource.c (tui_erase_source_content)
8644 (tui_show_source_content, tui_show_exec_info_content)
8645 (tui_erase_exec_info_content): Use refresh_window method.
8646 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
8647 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
8648 from tui_refresh_win.
8649 (tui_data_window::refresh_window): New method.
8650 (tui_win_info::refresh, tui_source_window_base::refresh)
8651 (tui_refresh_all): Use refresh_window method.
8652 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
8654 * tui/tui-regs.c (tui_display_register): Call refresh_window
8656 * tui/tui-layout.c (show_source_disasm_command)
8657 (show_source_or_disasm_and_command): Call refresh_window method.
8658 * tui/tui-data.h (struct tui_gen_win_info)
8659 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
8662 2019-06-25 Tom Tromey <tom@tromey.com>
8664 * tui/tui.c (tui_rl_other_window, tui_enable)
8665 (tui_is_window_visible, tui_get_command_dimension): Update.
8666 * tui/tui-winsource.c (tui_update_source_window_as_is)
8667 (tui_clear_source_content, tui_erase_source_content)
8668 (tui_show_source_line, tui_source_window_base::refill)
8669 (tui_source_window_base::do_scroll_horizontal)
8670 (tui_source_window_base::set_is_exec_point_at)
8671 (tui_update_breakpoint_info, tui_set_exec_info_content)
8672 (tui_alloc_source_buffer, tui_line_is_displayed)
8673 (tui_addr_is_displayed): Update.
8674 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
8675 (tui_check_and_display_highlight_if_needed)
8676 (tui_win_info::make_visible, tui_win_info::refresh)
8677 (tui_refresh_all): Update.
8678 * tui/tui-windata.c (tui_first_data_item_displayed)
8679 (tui_delete_data_content_windows, tui_erase_data_content)
8680 (tui_display_all_data, tui_data_window::refresh_all)
8681 (tui_check_data_values): Update.
8682 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
8683 (tui_set_win_focus_to, tui_win_info::forward_scroll)
8684 (tui_win_info::backward_scroll, tui_refresh_all_win)
8685 (tui_resize_all, tui_set_focus, tui_all_windows_info)
8686 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
8687 (tui_source_window_base::set_new_height)
8688 (tui_data_window::set_new_height)
8689 (make_invisible_and_set_new_height)
8690 (make_visible_with_new_height, new_height_ok)
8691 (parse_scrolling_args): Update.
8692 * tui/tui-stack.c (tui_show_frame_info): Update.
8693 * tui/tui-source.c (tui_set_source_content)
8694 (tui_set_source_content_nil, tui_source_is_displayed)
8695 (tui_source_window::do_scroll_vertical): Update.
8696 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
8697 (tui_display_registers_from, tui_display_reg_element_at_line)
8698 (tui_check_register_values, tui_reg_command): Update.
8699 * tui/tui-layout.c (tui_default_win_height)
8700 (show_source_disasm_command, show_data, init_and_make_win)
8701 (show_source_or_disasm_and_command): Update.
8702 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
8703 (tui_redisplay_readline, tui_mld_flush)
8704 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
8706 * tui/tui-disasm.c (tui_set_disassem_content)
8707 (tui_disasm_window::do_scroll_vertical): Update.
8708 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
8710 (struct tui_win_info): Derive from tui_gen_win_info.
8711 <~tui_win_info>: Mark as override.
8712 <generic>: Remove member.
8713 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
8714 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
8715 (~tui_data_window, ~tui_win_info)
8716 (tui_free_all_source_wins_content): Update.
8717 * tui/tui-command.c (tui_refresh_cmd_win): Update.
8719 2019-06-25 Tom Tromey <tom@tromey.com>
8721 * tui/tui-layout.c (init_and_make_win): Use new.
8722 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
8723 destructor, initializers.
8724 (tui_alloc_generic_win_info): Don't declare.
8725 * tui/tui-data.c (_locator): Add argument to constructor.
8726 (source_win, disasm_win): New globals.
8727 (exec_info): Remove.
8728 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
8730 (tui_alloc_generic_win_info): Remove.
8731 (init_content_element): Use new.
8732 (tui_win_info::tui_win_info): Update.
8733 (free_content_elements) <case DATA_WIN>: Use delete.
8735 2019-06-25 Tom Tromey <tom@tromey.com>
8737 * tui/tui-wingeneral.c (tui_refresh_win): Update.
8738 * tui/tui-windata.c (tui_first_data_item_displayed)
8739 (tui_delete_data_content_windows): Update.
8740 * tui/tui-win.c (tui_data_window::set_new_height): Update.
8741 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
8742 (tui_display_registers_from, tui_check_register_values): Update.
8743 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
8745 * tui/tui-data.c (init_content_element): Update. Allocate the new
8747 (tui_free_data_content): Update.
8748 (free_content_elements) <case DATA_WIN>: Free the window.
8750 2019-06-25 Tom Tromey <tom@tromey.com>
8752 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
8754 * tui/tui-layout.c (make_command_window)
8755 (show_source_disasm_command, show_data, init_and_make_win)
8756 (show_source_or_disasm_and_command): Update.
8757 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
8759 <can_highight, is_highlighted>: Now bool.
8760 (tui_set_win_highlight): Don't declare.
8761 * tui/tui-data.c (tui_set_win_highlight): Remove.
8763 2019-06-25 Tom Tromey <tom@tromey.com>
8765 * tui/tui-wingeneral.c (make_visible): Remove check of window
8768 2019-06-25 Tom Tromey <tom@tromey.com>
8770 * tui/tui-win.c (tui_win_info::max_height)
8771 (tui_cmd_window::max_height): New methods.
8772 (new_height_ok): Call max_height.
8773 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
8774 <max_height>: New method.
8776 2019-06-25 Tom Tromey <tom@tromey.com>
8778 * tui/tui-win.c (tui_source_window_base::set_new_height)
8779 (tui_data_window::set_new_height): New methods.
8780 (make_invisible_and_set_new_height): Call set_new_height method.
8781 * tui/tui-data.h (struct tui_win_info)
8782 (struct tui_source_window_base, struct tui_data_window)
8783 <set_new_height>: New method.
8785 2019-06-25 Tom Tromey <tom@tromey.com>
8787 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
8788 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
8789 tui_refresh_data_win.
8790 * tui/tui-win.c (tui_source_window_base::refresh_all): New
8792 (tui_refresh_all_win): Call the refresh_all method.
8793 (tui_set_focus): Likewise.
8794 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
8795 (struct tui_source_window_base, struct tui_data_window) <refresh>:
8798 2019-06-25 Tom Tromey <tom@tromey.com>
8800 * tui/tui-winsource.h (tui_refill_source_window)
8801 (tui_set_is_exec_point_at): Don't declare.
8802 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
8803 (tui_source_window_base::refill): Rename from
8804 tui_refill_source_window.
8805 (tui_source_window_base::do_scroll_horizontal): Update.
8806 (tui_source_window_base::set_is_exec_point_at): Rename from
8807 tui_set_is_exec_point_at.
8808 (tui_update_all_breakpoint_info): Update.
8809 * tui/tui-stack.c (tui_show_frame_info): Update.
8810 * tui/tui-layout.c (show_data): Add cast.
8811 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
8812 * tui/tui-data.h (struct tui_source_window_base) <refill,
8813 set_is_exec_point_at>: New methods.
8814 (tui_source_windows, tui_add_to_source_windows): Update types.
8815 (tui_add_to_source_windows): Remove redundant declaration.
8816 * tui/tui-data.c (source_windows): Store tui_source_window_base.
8817 (tui_source_windows): Change return type.
8818 (tui_clear_source_windows_detail): Update.
8819 (tui_add_to_source_windows): Change type of parameter.
8820 (tui_free_all_source_wins_content): Update.
8822 2019-06-25 Tom Tromey <tom@tromey.com>
8824 * tui/tui-wingeneral.c (tui_win_info::refresh)
8825 (tui_source_window_base::refresh): New methods.
8826 (tui_refresh_all): Call the refresh method.
8827 * tui/tui-data.h (struct tui_win_info)
8828 (struct tui_source_window_base) <refresh>: New method.
8830 2019-06-25 Tom Tromey <tom@tromey.com>
8832 * tui/tui.h (tui_is_window_visible): Return bool.
8833 * tui/tui.c (tui_is_window_visible): Return bool.
8834 * tui/tui-wingeneral.c (tui_make_window, make_visible)
8835 (tui_make_visible, tui_make_invisible)
8836 (tui_win_info::make_visible)
8837 (tui_source_window_base::make_visible, make_all_visible)
8838 (tui_make_all_visible, tui_make_all_invisible): Update.
8839 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
8840 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
8842 (struct tui_win_info, struct tui_source_window_base)
8843 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
8844 * tui/tui-data.c (tui_init_generic_part): Update.
8846 2019-06-25 Tom Tromey <tom@tromey.com>
8848 * tui/tui-wingeneral.c (tui_win_info::make_visible)
8849 (tui_source_window_base::make_visible): New methods.
8850 (make_all_visible): Make method call.
8851 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
8852 (struct tui_source_window_base, struct tui_cmd_window): Override
8854 (tui_win_is_source_type): Don't declare.
8855 * tui/tui-data.c (tui_win_is_source_type): Remove.
8857 2019-06-25 Tom Tromey <tom@tromey.com>
8859 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
8862 2019-06-25 Tom Tromey <tom@tromey.com>
8864 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
8865 Inline constructor. Add initializers for members.
8866 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
8867 constructors; now inline in class.
8869 2019-06-25 Tom Tromey <tom@tromey.com>
8871 * tui/tui-regs.c (tui_show_registers): Update.
8872 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
8874 * tui/tui-data.c (tui_data_window::clear_detail)
8875 (tui_data_window): Update.
8877 2019-06-25 Tom Tromey <tom@tromey.com>
8879 * tui/tui-windata.c (tui_display_all_data)
8880 (tui_display_data_from_line, tui_display_data_from)
8881 (tui_check_data_values, tui_data_window::do_scroll_vertical):
8883 * tui/tui-regs.c (tui_last_regs_line_no)
8884 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
8885 (tui_show_registers, tui_show_register_group)
8886 (tui_display_registers_from, tui_display_reg_element_at_line)
8887 (tui_display_registers_from_line, tui_check_register_values)
8888 (tui_reg_next, tui_reg_prev): Update.
8889 * tui/tui-layout.c (tui_set_layout, show_data): Update.
8890 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
8892 (struct tui_win_info) <detail>: Remove. Add new fields from
8894 (TUI_DATA_WIN): Add cast.
8895 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
8896 (~tui_data_window): Simplify.
8898 2019-06-25 Tom Tromey <tom@tromey.com>
8900 * tui/tui-layout.c (show_source_disasm_command)
8901 (show_source_or_disasm_and_command): Update.
8902 * tui/tui-io.c (update_cmdwin_start_line)
8903 (tui_redisplay_readline): Update.
8904 * tui/tui-data.h (struct tui_command_info): Remove.
8905 (struct tui_win_info) <detail>: Remove command_info member.
8906 (struct tui_data_window) <start_line>: New member, from
8908 (TUI_CMD_WIN): Add casts.
8910 2019-06-25 Tom Tromey <tom@tromey.com>
8912 * tui/tui-winsource.c (tui_update_source_window)
8913 (tui_refill_source_window)
8914 (tui_source_window_base::do_scroll_horizontal)
8915 (tui_update_breakpoint_info, tui_set_exec_info_content)
8916 (tui_show_exec_info_content, tui_erase_exec_info_content)
8917 (tui_clear_exec_info_content): Update.
8918 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
8920 * tui/tui-win.c (make_invisible_and_set_new_height)
8921 (make_visible_with_new_height): Update.
8922 * tui/tui-source.c (tui_set_source_content)
8923 (tui_show_symtab_source): Update.
8924 * tui/tui-layout.c (extract_display_start_addr)
8925 (show_source_disasm_command, show_data)
8926 (make_source_or_disasm_window)
8927 (show_source_or_disasm_and_command): Update.
8928 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
8929 (tui_disasm_window::do_scroll_vertical): Remove shadowing
8931 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
8932 to tui_source_window_base.
8933 (struct tui_win_info) <detail>: Remove source_info member.
8934 (struct tui_source_window_base) <has_locator>: Inline.
8935 Move contents from tui_source_info; rename has_locator member to
8937 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
8938 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
8940 (tui_source_window_base::clear_detail, ~tui_source_window_base):
8942 (tui_free_all_source_wins_content): Cast to
8943 tui_source_window_base.
8945 2019-06-25 Tom Tromey <tom@tromey.com>
8947 * tui/tui-win.c (make_invisible_and_set_new_height)
8948 (make_visible_with_new_height): Call has_locator method.
8949 * tui/tui-layout.c (show_source_disasm_command, show_data)
8950 (show_source_or_disasm_and_command): Update for bool change.
8951 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
8952 (tui_win_info) <has_locator>: New method.
8953 (struct tui_source_window_base) <has_locator>: New method.
8954 (tui_win_has_locator): Don't declare.
8955 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
8956 from tui_win_has_locator.
8957 (tui_source_window_base): Use false, not FALSE.
8959 2019-06-25 Tom Tromey <tom@tromey.com>
8961 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
8962 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
8963 clear_detail method directly.
8964 (tui_clear_win_detail): Remove.
8966 2019-06-25 Tom Tromey <tom@tromey.com>
8968 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
8969 "this", not TUI_DISASM_WIN.
8971 2019-06-25 Tom Tromey <tom@tromey.com>
8973 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
8975 * tui/tui-winsource.c
8976 (tui_source_window_base::do_scroll_horizontal): Rename from
8977 tui_horizontal_source_scroll.
8978 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
8979 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
8980 from tui_vertical_data_scroll.
8981 * tui/tui-win.h (tui_scroll): Don't declare.
8982 * tui/tui-win.c (tui_win_info::forward_scroll)
8983 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
8984 (tui_win_info::right_scroll): Rename and update.
8985 (tui_scroll_forward_command, tui_scroll_backward_command)
8986 (tui_scroll_left_command, tui_scroll_right_command): Update.
8987 (tui_scroll): Remove.
8988 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
8989 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
8990 from tui_vertical_source_scroll.
8991 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
8992 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
8993 from tui_vertical_disassem_scroll.
8994 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
8995 do_scroll_horizontal>: New methods.
8996 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
8998 (struct tui_source_window_base): Add do_scroll_horizontal.
8999 (struct tui_source_window, struct tui_disasm_window): Add
9001 (struct tui_data_window, struct tui_cmd_window): Add
9002 do_scroll_horizontal and do_scroll_vertical.
9003 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
9005 2019-06-25 Tom Tromey <tom@tromey.com>
9007 * tui/tui-data.h (struct tui_source_window_base): New struct.
9008 (struct tui_source_window): Derive from tui_source_window_base.
9009 (struct tui_disasm_window): New struct.
9010 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
9011 from tui_source_window::clear_detail.
9012 (tui_source_window_base): Rename from tui_source_window.
9013 (~tui_source_window_base): Rename from ~tui_source_window.
9014 (tui_alloc_win_info): Create a tui_disasm_window.
9016 2019-06-25 Tom Tromey <tom@tromey.com>
9018 * tui/tui-data.h (struct tui_source_window)
9019 (struct tui_data_window): Declare destructors.
9020 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
9022 (tui_win_info): Simplify.
9024 2019-06-25 Tom Tromey <tom@tromey.com>
9026 * tui/tui-winsource.c (tui_display_main)
9027 (tui_update_source_windows_with_addr)
9028 (tui_update_all_breakpoint_info): Update.
9029 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
9030 (new_height_ok, parse_scrolling_args): Update.
9031 * tui/tui-stack.c (tui_show_frame_info): Update.
9032 * tui/tui-data.h (struct tui_list): Remove.
9033 (tui_source_windows): Return a reference to a std::vector.
9034 * tui/tui-data.c (source_windows): Now a std::vector.
9035 (tui_source_windows): Change return type.
9036 (tui_clear_source_windows): Rewrite.
9037 (tui_clear_source_windows_detail, tui_add_to_source_windows)
9038 (tui_free_all_source_wins_content): Rewrite.
9040 2019-06-25 Tom Tromey <tom@tromey.com>
9042 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
9043 (struct tui_data_window, struct tui_cmd_window): Declare
9044 clear_detail method.
9045 * tui/tui-data.c (tui_source_window::clear_detail)
9046 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
9048 (tui_clear_win_detail): Simplify.
9050 2019-06-25 Tom Tromey <tom@tromey.com>
9052 * tui/tui-layout.c (make_source_window, make_disasm_window)
9053 (make_source_or_disasm_window): Remove win_info_ptr parameter.
9054 Return the new window.
9055 (show_source_disasm_command, show_data)
9056 (show_source_or_disasm_and_command): Update.
9058 2019-06-25 Tom Tromey <tom@tromey.com>
9060 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
9061 parameter. Return the new window.
9062 (show_source_disasm_command): Update and remove NULL check.
9063 (show_source_or_disasm_and_command): Update.
9065 2019-06-25 Tom Tromey <tom@tromey.com>
9067 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
9069 2019-06-25 Tom Tromey <tom@tromey.com>
9071 * tui/tui-data.h (struct tui_win_info): Make constructor
9072 protected. Make destructor virtual. Add initializers.
9073 (tui_source_window, tui_data_window, tui_cmd_window): New
9075 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
9076 constructor. Add "type" parameter.
9077 (tui_source_window, tui_data_window, tui_cmd_window): New
9079 (tui_alloc_win_info): Instantiate the appropriate subclass.
9081 2019-06-25 Tom Tromey <tom@tromey.com>
9083 * tui/tui-win.c (tui_resize_all): Use delete.
9084 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
9086 (tui_free_window): Don't declare.
9087 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
9090 2019-06-25 Tom Tromey <tom@tromey.com>
9092 * tui/tui-data.h (struct tui_win_info): Add constructor.
9093 * tui/tui-data.c (tui_alloc_win_info): Use new.
9094 (tui_free_window): Use delete.
9096 2019-06-22 Tom Tromey <tom@tromey.com>
9098 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
9100 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
9102 2019-06-22 Tom Tromey <tom@tromey.com>
9104 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
9106 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
9108 2019-06-22 Tom de Vries <tdevries@suse.de>
9110 * dwarf2read.c (create_addrmap_from_aranges)
9111 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
9114 2019-06-21 Simon Marchi <simon.marchi@efficios.com>
9116 * dwarf2read.h (dwarf2_section_info_def): Remove.
9117 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
9118 * dwarf2read.c (struct dwo_sections) <types>: Change type to
9119 std::vector<dwarf2_section_info>.
9120 (struct dwo_file) <~dwo_file>: Remove.
9121 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
9123 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
9124 (dwarf2_read_debug_names): Likewise.
9125 (create_debug_types_hash_table): Change parameter type to
9126 array_view, adjust code accordingly.
9127 (dwarf2_locate_dwo_sections): Adjust to std::vector.
9128 (partial_die_info::fixup): Likewise.
9129 (determine_prefix): Likewise.
9130 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
9132 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
9134 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
9136 <~dwo_file>: Remove call to gdb_bfd_unref.
9137 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
9138 gdb_bfd_ref_ptr::get.
9140 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
9142 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
9144 * dwarf2read.c (struct dwo_file): Initialize fields.
9146 (free_dwo_file): Remove, move content to ~dwo_file.
9147 (struct dwo_file_deleter): Remove.
9148 (dwo_file_up>: Remove custom deleter.
9149 (free_dwo_files): Remove.
9150 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
9152 (process_skeletonless_type_units): Call unique_ptr::get.
9153 (allocate_dwo_file_hash_table): Add deleter to created hash
9154 table. Change return type to htab_up.
9155 (lookup_dwo_file_slot): Don't memset dwo_file, call
9157 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
9158 (create_dwo_unit_in_dwp_v2): Likewise.
9159 (open_and_init_dwo_file): Likewise.
9160 (free_dwo_file_from_slot): Remove.
9162 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
9164 * dwarf2read.h (struct dwarf2_section_info) <readin,
9165 is_virtual>: Change type to bool.
9166 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
9169 2019-06-19 Tom Tromey <tom@tromey.com>
9171 * tui/tui-data.h (tui_init_content_element): Don't declare.
9173 2019-06-19 Tom Tromey <tom@tromey.com>
9175 * tui/tui-data.h (tui_init_win_info): Don't declare.
9177 2019-06-19 Tom de Vries <tdevries@suse.de>
9179 * dwarf2read.h (abstract_to_concrete): Change type to
9180 std::unordered_map<sect_offset, std::vector<sect_offset>,
9181 gdb::hash_enum<sect_offset>>.
9183 2019-06-19 Tom Tromey <tromey@adacore.com>
9185 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
9186 EVAL_AVOID_SIDE_EFFECTS specially.
9188 2019-06-19 Tom Tromey <tromey@adacore.com>
9190 * source-cache.c (highlighter): New global.
9191 (source_cache::get_source_lines): Create a highlighter on demand.
9193 2019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
9195 * defs.h (deprecated_interactive_hook): Delete declaration.
9196 * interps.c (clear_interpreter_hooks): Remove use of
9197 deprecated_interactive_hook.
9198 * top.c (deprecated_interactive_hook): Delete definition.
9199 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
9201 2019-06-18 Tom de Vries <tdevries@suse.de>
9204 * dwarf2read.h (abstract_to_concrete): Change type from
9205 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
9206 std::unordered_map<sect_offset, std::vector<sect_offset>>.
9207 * dwarf2read.c (read_variable): Update.
9208 (dwarf2_fetch_die_loc_sect_off): Update.
9210 2019-06-17 Tom de Vries <tdevries@suse.de>
9213 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
9214 accessing parent[parent_len - 1].
9216 2019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
9219 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
9220 call dtrace_process_dof with NULL dof.
9222 2019-06-16 Tom de Vries <tdevries@suse.de>
9225 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
9227 2019-06-16 Tom Tromey <tom@tromey.com>
9229 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
9230 (make_all_visible): Use address of member.
9232 2019-06-16 Tom Tromey <tom@tromey.com>
9234 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
9235 (tui_free_window, free_content, free_content_elements): Remove
9237 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
9239 * tui/tui-regs.c (tui_show_register_group)
9240 (tui_display_registers_from, tui_display_reg_element_at_line):
9241 Remove unnecessary cast.
9243 2019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
9245 * linux-nat.c (normal_mask): Delete.
9246 (_initialize_linux_nat): Don't initialise normal_mask.
9248 2019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
9251 * dwarf-index-write.h (write_psymtabs_to_index): Add
9252 dwz_basename parameter.
9253 * dwarf-index-write.c (write_gdbindex): Move file writing to
9254 write_gdbindex_1. Change return type void.
9255 (assert_file_size): Move up, remove filename parameter.
9256 (write_gdbindex_1): New function.
9257 (write_debug_names): Change return type to void, call
9259 (struct index_wip_file): New struct.
9260 (write_psymtabs_to_index): Add dwz_basename parameter. Move
9261 file logic to index_wip_file. Write index for dwz file if
9263 (save_gdb_index_command): Pass basename of dwz file, if present.
9264 * dwarf-index-cache.c (index_cache::store): Obtain and pass
9265 build-id of dwz file, if present.
9266 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
9267 (dwarf2_get_dwz_file): Likewise.
9268 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
9269 (dwarf2_get_dwz_file): Likewise.
9271 2019-06-16 Tom Tromey <tom@tromey.com>
9273 * coffread.c (process_coff_symbol): Use xstrdup.
9274 * value.c (create_internalvar): Use xstrdup.
9276 2019-06-16 Tom Tromey <tom@tromey.com>
9278 * valops.c (value_cast, value_slice): Remove unnecessary cast.
9279 * breakpoint.c (stopin_command, stopat_command)
9280 (until_break_command, decode_location_default): Remove unnecessary
9282 * utils.c (subset_compare): Remove unnecessary cast.
9283 * ada-lang.c (ada_update_initial_language): Remove unnecessary
9285 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
9287 * infcmd.c (path_command): Remove unnecessary cast.
9288 * coffread.c (decode_type): Remove unnecessary cast.
9289 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
9290 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
9291 * tui/tui-stack.c (tui_show_locator_content)
9292 (tui_show_frame_info): Remove unnecessary cast.
9293 * tui/tui-win.c (tui_scroll_forward_command)
9294 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
9295 (parse_scrolling_args): Remove unnecessary cast.
9296 * tui/tui-data.c (init_win_info, tui_del_window)
9297 (tui_free_window, tui_del_data_windows, tui_free_data_content)
9298 (free_content_elements): Remove unnecessary cast.
9299 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
9301 * tui/tui-source.c (tui_set_source_content)
9302 (tui_vertical_source_scroll): Remove unnecessary cast.
9303 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
9305 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
9306 * tui/tui-regs.c (tui_display_registers_from)
9307 (tui_display_register): Remove unnecessary cast.
9308 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
9309 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
9310 (make_visible): Remove unnecessary cast.
9311 * tui/tui-winsource.c (tui_erase_source_content)
9312 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
9314 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
9315 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
9316 * stabsread.c (read_type, read_array_type, read_range_type):
9317 Remove unnecessary cast.
9318 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
9319 (parse_symbol, parse_type, upgrade_type, parse_external)
9320 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
9322 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
9324 2019-06-16 Tom Tromey <tom@tromey.com>
9326 * tui/tui-data.c (tui_alloc_generic_win_info)
9327 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
9330 2019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
9331 Andrew Burgess <andrew.burgess@embecosm.com>
9333 * f-typeprint.c (f_print_type): Don't return early for not
9334 associated or not allocated types.
9335 (f_type_print_varspec_suffix): Add print_rank parameter and print
9336 ranks of array types in case they dangling.
9337 (f_type_print_base): Add print_rank parameter.
9339 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
9341 * NEWS: Mention new MI commands.
9342 * break-catch-throw.c (enum exception_event_kind): Move to
9344 (print_mention_exception_catchpoint): Output text as a single
9346 (catch_exception_command_1): Rename to...
9347 (catch_exception_event): ...this, make non-static, update header
9348 command, and change some parameter types.
9349 (catch_catch_command): Update for changes to
9350 catch_exception_command_1.
9351 (catch_throw_command): Likewise.
9352 (catch_rethrow_command): Likewise.
9353 * breakpoint.c (enum exception_event_kind): Delete.
9354 * breakpoint.h (enum exception_event_kind): Moved here from
9355 break-catch-throw.c.
9356 (catch_exception_event): Declare.
9357 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
9358 (mi_cmd_catch_throw): New function.
9359 (mi_cmd_catch_rethrow): New function.
9360 (mi_cmd_catch_catch): New function.
9361 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
9362 'catch-catch' entries.
9363 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
9364 (mi_cmd_catch_rethrow): Declare.
9365 (mi_cmd_catch_catch): Declare.
9367 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
9369 * annotate.c (annotate_source_line): Change return type to void,
9370 update implementation to match.
9371 * annotate.h (annotate_source_line): Change return type to void,
9372 update header comment.
9373 * stack.c (print_frame_info): Don't change what frame information
9374 is printed based on whether annotations are on or not.
9376 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
9378 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
9379 (annotate_source): Make static.
9380 (annotate_source_line): Moved from source.c and renamed from
9381 identify_source_line. Update the return type.
9382 * annotate.h (annotate_source): Delete declaration.
9383 (annotate_source_line): Declaration moved from source.h, and
9384 renamed from identify_source_line. Return type updated.
9385 * source.c (identify_source_line): Moved to annotate.c and renamed
9386 to annotate_source_line.
9387 (info_line_command): Remove check of annotation_level.
9388 * source.h (identify_source_line): Move declaration to annotate.h
9389 and rename to annotate_source_line.
9390 * stack.c: Add 'annotate.h' include.
9391 (print_frame_info): Remove check of annotation_level before
9392 calling annotate_source_line.
9394 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
9396 * source-cache.c (source_cache::get_plain_source_lines): Use
9397 open_source_file_with_line_charpos instead of just
9398 open_source_file, remove call to find_source_lines.
9399 (source_cache::get_source_lines): Likewise.
9400 * source.c (find_source_lines): Make static.
9401 (get_filename_and_charpos): Renamed into...
9402 (open_source_file_with_line_charpos): ..this along with changes to
9403 return a scoped_fd, and some other minor clean ups.
9404 (identify_source_line): Use open_source_file_with_line_charpos.
9405 (search_command_helper): Use open_source_file_with_line_charpos
9406 instead of just open_source_file, remove call to
9408 * source.h (open_source_file_with_line_charpos): Declare new
9410 (find_source_lines): Delete declaration.
9412 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
9414 * source.c (get_filename_and_charpos): Remove fullname
9416 (identify_source_line): Update call to get_filename_and_charpos.
9418 2019-06-14 Tom Tromey <tromey@adacore.com>
9421 * ui-style.h (skip_ansi_escape): Update comment.
9422 * ui-file.h (class no_terminal_escape_file): New class.
9423 * ui-file.c (no_terminal_escape_file::write)
9424 (no_terminal_escape_file::puts): New methods.
9425 * cli/cli-logging.c (handle_redirections): Use
9426 no_terminal_escape_file.
9428 2019-06-14 Tom Tromey <tromey@adacore.com>
9430 * NEWS: Move convenience variable news above Python news.
9432 2019-06-14 Tom Tromey <tom@tromey.com>
9434 * gnulib: Move directory to top-level.
9435 * configure.ac: Don't configure gnulib.
9436 * configure: Rebuild.
9437 * common/common-defs.h: Use new path to gnulib.
9438 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
9440 (INCGNU): Look in new gnulib location.
9441 (HFILES_NO_SRCDIR): Remove gnulib files.
9442 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
9443 (generated_files): Remove GNULIB_H.
9444 ($(LIBGNU), all-lib): Remove targets.
9445 (distclean): Don't mention GNULIB_BUILDDIR.
9446 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
9448 2019-06-14 Tom Tromey <tromey@adacore.com>
9450 * symfile.c (add_symbol_file_command): Remove obsolete comment.
9451 Warn if symbol file does not provide any symbols.
9453 2019-06-14 Tom Tromey <tromey@adacore.com>
9455 * source.c (find_and_open_source): Respect basenames_may_differ.
9457 2019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
9459 * annotate.c (annotate_breakpoints_invalid): Make use of
9460 scoped_restore_terminal_state.
9461 (annotate_frames_invalid): Likewise.
9463 2019-06-14 Tom Tromey <tromey@adacore.com>
9465 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
9466 allow assignment to an internalvar.
9468 2019-06-14 Tom Tromey <tromey@adacore.com>
9470 * ada-lex.l: Allow "_" in attribute names.
9472 2019-06-14 Tom Tromey <tromey@adacore.com>
9475 * regcache.c (registers_changed): Don't call alloca.
9476 * top.c (execute_command): Don't call alloca.
9478 2019-06-13 Pedro Alves <palves@redhat.com>
9480 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
9481 'expression'. When parsing an expression, error out if there's
9482 junk after "unlimited".
9483 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
9484 (do_set_command): Adjust calls to is_unlimited_literal.
9486 2019-06-13 Pedro Alves <palves@redhat.com>
9488 * compile/compile.c (make_compile_options_def_group): Add braces
9489 around array_view initializer.
9490 * thread.c (make_thread_apply_all_options_def_group)
9491 (make_thread_apply_all_options_def_group): Likewise.
9493 2019-06-13 Pedro Alves <palves@redhat.com>
9495 * NEWS (New commands): Mention "maint test-options
9496 require-delimiter", "maint test-options unknown-is-error", "maint
9497 test-options unknown-is-operand" and "maint show
9498 test-options-completion-result".
9499 (New command options, command completion): New section.
9500 (Completion improvements): New section.
9501 Mention that you can abbreviate "unlimited".
9503 2019-06-13 Pedro Alves <palves@redhat.com>
9505 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
9506 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
9507 * unittests/cli-utils-selftests.c (test_parse_flags)
9508 (test_parse_flags_qcs): Delete.
9509 (test_cli_utils): Don't call deleted functions.
9511 2019-06-13 Pedro Alves <palves@redhat.com>
9513 * thread.c: Include "cli/cli-option.h".
9514 (tp_array_compar_ascending): Global.
9515 (tp_array_compar): Delete function.
9516 (tp_array_compar_ascending, tp_array_compar_descending): New
9518 (ascending_option_def, qcs_flag_option_def)
9519 (thr_qcs_flags_option_defs)
9520 (make_thread_apply_all_options_def_group)
9521 (make_thread_apply_options_def_group): New.
9522 (thread_apply_all_command): Use gdb::option::process_options.
9523 (thread_apply_command_completer)
9524 (thread_apply_all_command_completer): New.
9525 (thread_apply_command): Use gdb::option::process_options.
9526 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
9527 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
9528 to generate help text of "thread apply". Adjust "taas"'s help.
9529 * tid-parse.c (tid_range_parser::in_thread_range): New method.
9530 * tid-parse.h (tid_range_parser::in_thread_range): New method.
9532 2019-06-13 Pedro Alves <palves@redhat.com>
9534 * thread.c (thread_apply_command): Check for invalid TID with
9535 isdigit instead of !isalpha.
9537 2019-06-13 Pedro Alves <palves@redhat.com>
9539 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
9540 (validate_flags_qcs): New.
9541 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
9542 (validate_flags_qcs): Declare.
9543 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
9544 (make_frame_apply_options_def_group): New.
9545 (frame_apply_command_count): Process options with
9546 gdb::option::process_options.
9547 (frame_apply_completer): New.
9548 (frame_apply_level_completer, frame_apply_all_completer)
9549 (frame_apply_completer): New.
9550 (_initialize_stack): Update help of "frame apply", "frame apply
9551 level", "frame apply all" and "faas" to mention supported options
9552 and install command completers.
9553 * stack.h (frame_apply_all_completer): Declare.
9554 * thread.c: Include "stack.h".
9555 (tfaas_command): Add "--".
9556 (_initialize_thread): Update help "tfaas" to mention supported
9557 options and install command completer.
9559 2019-06-13 Pedro Alves <palves@redhat.com>
9561 * completer.c (complete_nested_command_line): New.
9562 (gdb_completion_word_break_characters_throw): Add assertion.
9563 * completer.h (complete_nested_command_line): Declare.
9565 2019-06-13 Pedro Alves <palves@redhat.com>
9567 * stack.c (parse_backtrace_qualifiers): New.
9568 (backtrace_command): Use it.
9569 (backtrace_command_completer): Complete on qualifiers.
9571 2019-06-13 Pedro Alves <palves@redhat.com>
9573 * frame.c: Include "cli/cli-option.h.
9574 (user_set_backtrace_options): New.
9575 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
9577 (get_prev_frame): Adjust.
9578 (boolean_option_def, uinteger_option_def)
9579 (set_backtrace_option_defs): New.
9580 (_initialize_frame): Adjust and use
9581 gdb::option::add_setshow_cmds_for_options to install "set
9582 backtrace past-main" and "set backtrace past-entry".
9583 * frame.h: Include "cli/cli-option.h".
9584 (struct frame_print_options): Forward declare.
9585 (print_frame_arguments_all, print_frame_arguments_scalars)
9586 (print_frame_arguments_none): Declare.
9587 (print_entry_values): Delete declaration.
9588 (struct frame_print_options, user_frame_print_options): New.
9589 (struct set_backtrace_options): New.
9590 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
9591 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
9592 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
9593 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
9594 (list_args_or_locals): Add frame_print_options parameter.
9595 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
9596 * python/py-framefilter.c (enumerate_args): Pass down
9597 USER_FRAME_PRINT_OPTIONS.
9598 * stack.c: Include "cli/cli-option.h".
9599 (print_frame_arguments_all, print_frame_arguments_scalars)
9600 (print_frame_arguments_none): Declare.
9601 (print_raw_frame_arguments, print_entry_values): Delete.
9602 (user_frame_print_options): New.
9603 (boolean_option_def, enum_option_def, frame_print_option_defs):
9605 (struct backtrace_cmd_options): New.
9606 (bt_flag_option_def): New.
9607 (backtrace_command_option_defs): New.
9608 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
9609 (print_frame_arg, read_frame_arg, print_frame_args)
9610 (print_frame_info, print_frame): Add frame_print_options parameter
9612 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
9613 (backtrace_command_1): Add frame_print_options and
9614 backtrace_cmd_options parameters and use them.
9615 (make_backtrace_options_def_group): New.
9616 (backtrace_command): Process command options with
9617 gdb::option::process_options.
9618 (backtrace_command_completer): New.
9619 (_initialize_stack): Extend "backtrace"'s help to mention
9620 supported options. Install completer for "backtrace".
9621 Install some settings commands with add_setshow_cmds_for_options.
9623 2019-06-13 Pedro Alves <palves@redhat.com>
9625 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
9626 and that "set/show print raw frame-arguments" are now deprecated.
9628 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
9630 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
9631 * stack.c (_initialize_stack): Install "set/show print
9632 raw-frame-arguments", and deprecate "set/show print raw
9634 * valprint.c (_initialize_valprint): Deprecate "set/show print
9637 2019-06-13 Pedro Alves <palves@redhat.com>
9639 * compile/compile.c (struct compile_options): New.
9640 (compile_flag_option_def, compile_command_option_defs)
9641 (make_compile_options_def_group): New.
9642 (compile_file_command): Handle options with
9643 gdb::option::process_options.
9644 (compile_file_command_completer): New function.
9645 (compile_code_command): Handle options with
9646 gdb::option::process_options.
9647 (compile_code_command_completer): New function.
9648 (_initialize_compiler): Install completers for "compile code" and
9649 "compile file". Mention available options in "compile code" and
9650 "compile code"'s help.
9651 * completer.c (advance_to_completion_word): New, factored out from
9653 (advance_to_expression_complete_word_point): ... this.
9654 (advance_to_filename_complete_word_point): New.
9655 * completer.h (advance_to_filename_complete_word_point): New
9658 2019-06-13 Pedro Alves <palves@redhat.com>
9660 * compile/compile.c: Include "cli/cli-option.h".
9661 (compile_print_value): Scope data pointer is now a
9662 value_print_options pointer; adjust.
9663 (compile_print_command): Process options. Scope data pointer is
9664 now a value_print_options pointer; adjust.
9665 (_initialize_compile): Update "compile print"'s help to include
9666 supported options. Install a completer for "compile print".
9667 * cp-valprint.c (show_vtblprint, show_objectprint)
9668 (show_static_field_print): Delete.
9669 (_initialize_cp_valprint): Don't install "set print
9670 static-members", "set print vtbl", "set print object" here.
9671 * printcmd.c: Include "cli/cli-option.h" and
9672 "common/gdb_optional.h".
9673 (print_command_parse_format): Rework to fill in a
9674 value_print_options instead of a format_data.
9675 (print_value): Change parameter type from format_data pointer to
9676 value_print_options reference. Adjust.
9677 (print_command_1): Process options. Adjust to pass down a
9678 value_print_options.
9679 (print_command_completer): New.
9680 (_initialize_printcmd): Install print_command_completer as
9681 handle_brkchars completer for the "print" command. Update
9682 "print"'s help to include supported options.
9683 * valprint.c: Include "cli/cli-option.h".
9684 (show_vtblprint, show_objectprint, show_static_field_print): Moved
9685 here from cp-valprint.c.
9686 (boolean_option_def, uinteger_option_def)
9687 (value_print_option_defs, make_value_print_options_def_group):
9688 New. Use gdb::option::add_setshow_cmds_for_options to install
9689 "set print elements", "set print null-stop", "set print repeats",
9690 "set print pretty", "set print union", "set print array", "set
9691 print address", "set print symbol", "set print array-indexes".
9692 * valprint.h: Include <string> and "cli/cli-option.h".
9693 (make_value_print_options_def_group): Declare.
9694 (print_value): Change parameter type from format_data pointer to
9695 value_print_options reference.
9696 (print_command_completer): Declare.
9698 2019-06-13 Pedro Alves <palves@redhat.com>
9700 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
9701 (COMMON_SFILES): Add maint-test-settings.c.
9702 * cli/cli-decode.c (boolean_enums): New global, factored out from
9704 (add_setshow_boolean_cmd): ... here.
9705 * cli/cli-decode.h (boolean_enums): Declare.
9706 * cli/cli-option.c: New file.
9707 * cli/cli-option.h: New file.
9708 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
9709 factored out from ...
9710 (parse_cli_boolean_value(const char *)): ... this.
9711 (is_unlimited_literal): Change parameter type to pointer to
9712 pointer. Adjust and advance ARG pointer.
9713 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
9714 (parse_cli_var_enum): New, factored out from ...
9715 (do_set_command): ... this. Adjust.
9716 * cli/cli-setshow.h (parse_cli_boolean_value)
9717 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
9718 (parse_cli_var_enum): Declare.
9719 * cli/cli-utils.c: Include "cli/cli-option.h".
9720 (get_ulongest): New.
9721 * cli/cli-utils.h (get_ulongest): Declare.
9722 (check_for_argument): New overloads.
9723 * maint-test-options.c: New file.
9725 2019-06-13 Pedro Alves <palves@redhat.com>
9727 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
9728 parse a range if "-" is at the end of the string.
9730 2019-06-13 Pedro Alves <palves@redhat.com>
9732 * cli/cli-setshow.c (parse_auto_binary_operation)
9733 (parse_cli_boolean_value): Don't allow "o".
9735 2019-06-13 Pedro Alves <palves@redhat.com>
9737 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
9738 * NEWS: Mention maint test-settings KIND.
9739 * maint-test-settings.c: New file.
9741 2019-06-13 Pedro Alves <palves@redhat.com>
9743 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
9745 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
9748 2019-06-13 Pedro Alves <palves@redhat.com>
9750 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
9753 2019-06-13 Pedro Alves <palves@redhat.com>
9755 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
9757 2019-06-13 Pedro Alves <palves@redhat.com>
9759 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
9760 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
9762 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
9763 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
9765 (check_for_argument): Skip spaces after argument.
9767 2019-06-13 Pedro Alves <palves@redhat.com>
9769 * thread.c (thread_apply_command): Adjust TID parsing.
9770 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
9771 detected before end of string.
9772 (tid_is_in_list): Error out if LIST is invalid.
9774 2019-06-13 Pedro Alves <palves@redhat.com>
9776 * completer.c (complete_line_internal_1): Rewind completion word
9778 (completion_tracker::advance_custom_word_point_by): Change
9779 parameter type to int.
9780 * completer.h (completion_tracker::advance_custom_word_point_by):
9783 2019-06-13 Pedro Alves <palves@redhat.com>
9785 * completer.c (advance_to_completion_word): Handle delimiters.
9787 2019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
9789 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
9791 2019-06-11 Tom Tromey <tom@tromey.com>
9793 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
9794 (xmalloc_failed): Move to alloc.c.
9795 * alloc.c: New file.
9796 * Makefile.in (COMMON_SFILES): Add alloc.c.
9798 2019-06-11 Tom Tromey <tom@tromey.com>
9800 * nat/linux-waitpid.c: Don't include server.h.
9801 (linux_debug): Remove.
9802 (my_waitpid): Update.
9804 2019-06-11 Tom Tromey <tromey@adacore.com>
9806 * infcall.c (_initialize_infcall): Remove trailing newline from
9808 * user-regs.c (_initialize_user_regs): Remove trailing newline
9810 * typeprint.c (_initialize_typeprint): Remove trailing newline
9812 * reverse.c (_initialize_reverse): Remove trailing newlines from
9814 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
9816 * language.c (add_set_language_command): Remove trailing newline
9818 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
9820 * disasm.c (_initialize_disasm): Remove trailing newline from
9822 * top.c (init_main): Remove trailing newline from help.
9823 * interps.c (_initialize_interpreter): Remove trailing newline
9825 * btrace.c (_initialize_btrace): Remove trailing newlines from
9827 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
9829 * python/python.c (_initialize_python): Remove trailing newline
9831 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
9833 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
9834 from help. Reformat some text.
9835 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
9837 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
9840 2019-06-11 Tom Tromey <tromey@adacore.com>
9842 * darwin-nat.c (darwin_decode_exception_message)
9843 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
9845 2019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
9847 * valops.c (value_slice): Check for not allocated or not
9850 2019-06-10 Tom de Vries <tdevries@suse.de>
9853 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
9854 sure an empty slot (defined by a 32-bit zero pair) is recognized as
9857 2019-06-10 Tom de Vries <tdevries@suse.de>
9860 * linespec.c (linespec_lexer_lex_string): Remove incorrect
9861 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
9863 2019-06-10 Tom de Vries <tdevries@suse.de>
9866 * symtab.c (struct demangled_name_entry): Add language field.
9867 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
9868 static minimal symbol". Set and use language field.
9870 2019-06-10 Tom Tromey <tromey@adacore.com>
9872 * ada-lang.c (_initialize_ada_language): Update help text.
9874 2019-06-10 Tom Tromey <tromey@adacore.com>
9876 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
9878 * guile/guile.c (handle_boot_error): Don't end warning with a
9880 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
9881 warning with a newline.
9882 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
9884 (s12z_frame_cache): Likewise.
9885 * dwarf-index-cache.c (index_cache::store): Don't end warning with
9887 * solib-svr4.c (disable_probes_interface): Don't end warning with
9889 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
9891 * python/python.c (do_finish_initialization): Don't end warning
9894 2019-06-10 Tom Tromey <tom@tromey.com>
9896 * python/py-breakpoint.c (gdbpy_breakpoint_created)
9897 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
9900 2019-06-10 Tom Tromey <tromey@adacore.com>
9902 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
9904 (elf_new_init): Don't call stabsread_new_init.
9905 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
9906 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
9907 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
9909 2019-06-10 Tom de Vries <tdevries@suse.de>
9913 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
9915 2019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
9917 * source.c (find_and_open_source): Also rewrite relative file
9920 2019-04-26 Amos Bird <amosbird@gmail.com>
9922 * annotate.c (annotate_thread_exited): Add "thread-exited"
9925 2019-06-06 Tom Tromey <tromey@adacore.com>
9927 * maint.h (class scoped_command_stats): Use
9928 DISABLE_COPY_AND_ASSIGN.
9929 <print_time>: New method.
9930 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
9932 (scoped_command_stats::print_time): New method.
9934 2019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
9936 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
9937 instructions of lengths 6 or 8 bytes.
9939 2019-06-04 Pedro Alves <palves@redhat.com>
9941 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
9943 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
9944 * breakpoint.c (condition_completer): Likewise.
9945 * cli/cli-dump.c (scan_expression): Likewise.
9946 * common/filestuff.c (mkdir_recursive): Likewise.
9947 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
9948 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
9949 (gdb_abspath): Likewise.
9950 * compile/compile-cplus-types.c
9951 (compile_cplus_instance::decl_name): Likewise.
9952 * completer.c (complete_explicit_location):
9953 (signal_completer, reg_or_group_completer_1): Likewise.
9954 * cp-support.c (cp_remove_params_if_any): Likewise.
9955 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
9956 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
9957 * infcmd.c (strip_bg_char): Likewise.
9958 * linespec.c (copy_token_string): Likewise.
9959 * mi/mi-main.c (output_cores): Likewise.
9960 * psymtab.c (psymtab_search_name):
9961 * symfile.c (test_set_ext_lang_command): Likewise.
9962 * target.c (target_fileio_read_stralloc): Likewise.
9963 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
9964 * value.c (complete_internalvar): Likewise.
9966 2019-06-04 Christian Biesinger <cbiesinger@google.com>
9968 Add objfile property to gdb.Type.
9969 * NEWS: Mention Python API addition.
9970 * python/py-type.c (typy_get_objfile): New method.
9972 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9974 * NEWS: Mention the new set|show style [title|highlight].
9975 Mention changes to "show style", "help" and "apropos".
9977 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9979 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
9980 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
9981 instead of print_help_for_command.
9982 (print_doc_of_command): New function.
9983 (help_list): Add 'apropos -v word' suggestion.
9984 (print_help_for_command): Style the command name using title style.
9985 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
9986 (_initialize_cli_cmds): Describe -v in apropos_command help.
9988 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9990 * cli/cli-style.h (cli_style_option): Add name in constructor,
9991 add m_name class member, add constructor with intensity,
9992 add name class function.
9993 (cli_style_option::add_setshow_commands): Remove name argument.
9994 (highlight_style, title_style): New styles.
9995 * cli/cli-style.c (do_show): New function that shows a style
9996 characteristic styling the style name with itself.
9997 (set_style_name): New function.
9998 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
9999 Update all callers according to the changes in cli/cli-style.h.
10000 * utils.h (fputs_highlighted): New function.
10001 * utils.c (fputs_highlighted): Likewise.
10003 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10005 * NEWS: Mention new pipe command and new convenience variables.
10007 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10009 * cli/cli-cmds.c (pipe_command): New function.
10010 (_initialize_cli_cmds): Call add_com for pipe_command.
10011 Define | as an alias for pipe.
10012 (exit_status_set_internal_vars): New function.
10013 (shell_escape): Call exit_status_set_internal_vars.
10014 cli/cli-decode.c (find_command_name_length): Recognize | as
10015 a single character command.
10017 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10019 * gdbcmd.h (execute_command_to_ui_file): New declaration.
10020 top.c (execute_command_to_ui_file): New function, mostly a copy
10021 of execute_command_to_string.
10022 (execute_command_to_string): Implement by calling
10023 execute_command_to_ui_file.
10025 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10027 * top.h (saved_command_line): Remove declaration.
10028 * top.c (previous_saved_command_line, previous_repeat_arguments):
10030 (saved_command_line): Make static, define together with other
10031 'repeat variables'.
10032 (dont_repeat): Clear repeat_arguments.
10033 (repeat_previous, get_saved_command_line, save_command_line):
10035 (gdb_init): Initialize saved_command_line
10036 and previous_saved_command_line.
10037 * main.c (captured_main_1): Remove saved_command_line initialization.
10038 * event-top.c (handle_line_of_input): Update to use
10039 the new 'repeat' related functions instead of direct access to
10040 saved_command_line.
10041 * command.h (repeat_previous, get_saved_command_line,
10042 save_command_line): New declarations.
10043 (dont_repeat): Add comment.
10045 2019-05-30 Tom Tromey <tromey@adacore.com>
10047 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
10049 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
10051 2019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
10054 * completer.c (complete): Initialize variable word.
10056 2019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
10058 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
10059 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
10060 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
10061 'body' is NULL to the outter 'if', protecting the '!is_define'
10064 2019-05-29 Tom Tromey <tromey@adacore.com>
10066 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
10067 (dwarf_unknown): New function.
10068 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
10069 (dwarf_type_encoding_name): Use dwarf_unknown.
10071 2019-05-29 Tom Tromey <tromey@adacore.com>
10074 * cp-valprint.c (cp_print_value_fields): Call
10075 cp_print_static_field inside "try".
10077 2019-05-29 Tom Tromey <tromey@adacore.com>
10079 * inflow.c (struct terminal_info): Add default operator=.
10080 * configure: Rebuild.
10081 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
10082 -Wdeprecated-copy-dtor, -Wredundant-move.
10084 2019-05-29 Tom Tromey <tromey@adacore.com>
10087 * infcmd.c (print_return_value_1): Handle finish_print
10089 (show_print_finish): New function.
10090 (_initialize_infcmd): Add "set/show print finish" commands.
10091 * valprint.c (user_print_options): Initialize new member.
10092 * valprint.h (struct value_print_options) <finish_print>: New
10095 2019-05-28 Tom Tromey <tromey@adacore.com>
10097 * ada-lang.c (ada_remove_Xbn_suffix)
10098 (find_old_style_renaming_symbol)
10099 (parse_old_style_renaming): Remove.
10100 (ada_find_renaming_symbol): Don't call
10101 find_old_style_renaming_symbol.
10102 (ada_is_renaming_symbol): Rename from
10103 ada_find_renaming_symbol. Remove "block" parameter. Return
10105 (ada_read_var_value): Update and simplify.
10106 * ada-exp.y (write_var_or_type): Remove old code.
10108 2019-05-28 Alan Hayward <alan.hayward@arm.com>
10111 * event-top.c: Remove include comment.
10112 * inflow.c (class scoped_ignore_sigttou): Move from here...
10113 * inflow.h (class scoped_ignore_sigttou): ...to here.
10114 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
10115 * top.c: Remove include comment.
10117 2019-05-27 Tom Tromey <tom@tromey.com>
10121 2019-05-22 Tom Tromey <tromey@adacore.com>
10123 * target.c (target_follow_exec): Constify parameter.
10124 * target-delegates.c: Rebuild.
10125 * remote.c (remote_target::follow_exec): Constify parameter.
10126 * infrun.c (follow_exec): Constify parameter.
10127 * target.h (struct target_ops) <follow_exec>: Constify parameter.
10128 (target_follow_exec): Likewise.
10130 2019-05-22 Alan Hayward <alan.hayward@arm.com>
10132 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
10133 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
10135 2019-05-22 Alan Hayward <alan.hayward@arm.com>
10137 * NEWS: Add debugredirect and testsuite sections.
10139 2019-05-22 Simon Cook <simon.cook@embecosm.com>
10141 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
10142 target descriptions using exclusively floating point register name
10145 2019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
10148 * f-lang.c (build_fortran_types): Handle the case where
10149 gdbarch_floatformat_for_type returns a nullptr.
10151 2019-05-21 Tom de Vries <tdevries@suse.de>
10154 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
10156 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
10159 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
10161 * i386-tdep.c (i386_floatformat_for_type): Use
10162 floatformats_ia64_quad for the 16-byte floating point component
10163 within a fortran 32-byte complex number.
10165 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
10167 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
10168 delete default constructor.
10169 (find_partial_die): Update to return const struct.
10170 (partial_die_parent_scope): Move variable declaration into scope
10171 of its use and change its type to auto.
10172 (guess_partial_die_structure_name): Likewise.
10173 (partial_die_info::fixup): Likewise.
10175 2019-05-17 Tom Tromey <tromey@adacore.com>
10177 * source.c (find_and_open_source): Remove cast.
10179 2019-05-17 Tom Tromey <tromey@adacore.com>
10181 * annotate.c (annotate_source): Make "filename" const.
10182 * annotate.h (annotate_source): Use const.
10184 2019-05-17 Alan Hayward <alan.hayward@arm.com>
10186 * disasm.c (set_disassembler_options): Send errors to stderr.
10188 2019-05-17 Alan Hayward <alan.hayward@arm.com>
10190 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
10191 (cli_interp_base::set_logging): Check debug_redirect.
10192 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
10193 * cli/cli-logging.c (debug_redirect): Add static variable.
10194 (pop_output_files): Add default param.
10195 (handle_redirections): Print debug setting.
10196 (show_logging_command): Likewise.
10197 (_initialize_cli_logging): Add debugredirect command.
10198 * interps.c (current_interp_set_logging): Add debug_redirect
10200 * interps.h (set_logging): Add debug_redirect parameter.
10201 (current_interp_set_logging): Likewise.
10202 * mi/mi-common.h: Likewise.
10203 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
10205 2019-05-17 Alan Hayward <alan.hayward@arm.com>
10206 Tom Tromey <tromey@adacore.com>
10208 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
10210 * cli/cli-interp.h (make_logging_output): Remove declaration.
10211 * cli/cli-logging.c (make_logging_output): Remove function.
10212 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
10214 * ui-file.c (tee_file::tee_file): Remove bools.
10215 (tee_file::~tee_file): Remove deletes.
10216 * ui-file.h (tee_file): Remove bools.
10218 2019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
10220 * mi/mi-cmds.h (mi_cmd_complete): New function.
10221 * mi/mi-main.c (mi_cmd_complete): Likewise.
10222 * mi/mi-cmds.c: Define new MI command -complete.
10223 * NEWS: Mention new -complete command.
10225 2019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
10227 * completer.h (complete): New function.
10228 * completer.c (complete): Likewise.
10229 * cli/cli-cmds.c: (complete_command): Update to use new complete()
10230 function defined in completer.h.
10232 2019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
10234 * MAINTAINERS (Write After Approval): Add myself.
10236 2019-05-17 Tom de Vries <tdevries@suse.de>
10239 * dwarf2read.c (struct cu_partial_die_info): New struct.
10240 (find_partial_die): Return cu_partial_die_info.
10241 (partial_die_parent_scope, guess_partial_die_structure_name)
10242 (partial_die_info::fixup): Handle new return type of find_partial_die.
10244 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
10246 PR breakpoints/24541
10247 * stap-probe.c (stap_parse_register_operand): Make "regname" an
10248 "std::string", simplifying the algorithm.
10250 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
10252 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
10253 (stap_static_probe_ops::get_probes): Likewise.
10255 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
10257 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
10258 '-')" and "else if".
10259 (stap_parse_single_operand): Join checks for
10260 "gdbarch_stap_parse_special_token_p" and
10261 "gdbarch_stap_parse_special_token" in the same "if" statement.
10262 Invert check when verifying for operation on register
10265 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
10267 * stap-probe.c (stap_get_opcode): Update comment.
10268 (stap_get_expected_argument_type): Likewise.
10269 (handle_stap_probe): Likewise.
10271 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
10273 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
10274 return type to 'bool'. Adjust comment. Use 'bool' when
10276 (i386_stap_parse_special_token_three_arg_disp): Likewise.
10277 * stap-probe.c (stap_parse_argument_1): Likewise.
10278 (stap_is_operator): Likewise.
10279 (stap_is_generic_prefix): Likewise.
10280 (stap_is_register_prefix): Likewise.
10281 (stap_is_register_indirection_prefix): Likewise.
10282 (stap_is_integer_prefix): Likewise.
10283 (stap_generic_check_suffix): Likewise.
10284 (stap_check_integer_suffix): Likewise.
10285 (stap_check_register_suffix): Likewise.
10286 (stap_check_register_indirection_suffix): Likewise.
10287 (stap_parse_register_operand): Likewise.
10288 (stap_parse_single_operand): Likewise.
10289 (stap_parse_argument_1): Likewise.
10290 (stap_probe::get_argument_count): Likewise.
10291 (stap_is_operator): Likewise.
10293 2019-05-16 Tom Tromey <tromey@adacore.com>
10295 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
10296 keyword to foreach.
10298 2019-05-15 Simon Marchi <simon.marchi@efficios.com>
10300 * linux-thread-db.c (try_thread_db_load_1): Change return type
10302 (try_thread_db_load): Likewise.
10303 (try_thread_db_load_from_pdir_1): Likewise.
10304 (try_thread_db_load_from_pdir): Likewise.
10305 (try_thread_db_load_from_sdir): Likewise.
10306 (try_thread_db_load_from_dir): Likewise.
10307 (thread_db_load_search): Likewise.
10308 (has_libpthread): Likewise.
10309 (thread_db_load): Likewise.
10311 2019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
10313 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
10314 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
10315 NULL, and complain/return if that's the case.
10317 2019-05-15 John Darrington <john@darrington.wattle.id.au>
10319 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
10320 (advance, posn, abstract_read_memory): New functions.
10321 [struct mem_read_abstraction]: New struct.
10322 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
10324 2019-05-14 Tom Tromey <tromey@adacore.com>
10326 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
10327 value is not lval_memory.
10329 2019-05-14 Tom Tromey <tromey@adacore.com>
10331 * solib.c (info_sharedlibrary_command): Style the file name.
10333 2019-05-14 Alan Hayward <alan.hayward@arm.com>
10335 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
10336 (aarch64_vnv_type): Likewise.
10337 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
10338 * common/tdesc.c: Likewise.
10339 * common/tdesc.h (enum tdesc_type_kind): Likewise.
10340 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
10341 * features/aarch64-fpu.xml: Add ieee half view.
10342 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
10343 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
10344 * gdbtypes.h (struct builtin_type): Likewise.
10345 (struct objfile_type): Likewise.
10347 2019-05-12 Paul Naert <paul.naert@polymtl.ca>
10349 * language.c (language_sniff_from_mangled_name): Fix "langauge"
10351 * location.h (string_to_event_location): Likewise.
10353 2019-05-11 Joel Brobecker <brobecker@adacore.com>
10357 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
10359 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
10360 New variable declaration.
10361 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
10363 (print_one_breakpoint): Use ui_out::test_flags and new global
10364 variable to compute use_fixed_output.
10365 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
10367 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
10368 (mi_multi_location_breakpoint_output_fixed): Remove.
10369 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
10371 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
10372 fix_multi_location_breakpoint_output flag if version >= 3.
10373 * ui-out.h (enum ui_out_flag)
10374 <fix_multi_location_breakpoint_output>: New enumerator.
10376 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
10378 * contrib/cc-with-tweaks.sh: Validate dwz's work.
10380 2019-05-10 Tom Tromey <tromey@adacore.com>
10382 * ada-lang.c (catch_ada_completer): New function.
10383 (_initialize_ada_language): Use it.
10385 2019-05-10 Tom Tromey <tromey@adacore.com>
10387 * thread.c (print_thread_info): Make "requested_threads" const.
10388 * gdbthread.h (print_thread_info): Make "requested_threads"
10390 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
10391 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
10393 2019-05-08 Tom Tromey <tom@tromey.com>
10395 * gdbtypes.c (objfile_type_data): Change type.
10396 (objfile_type, _initialize_gdbtypes): Update.
10398 2019-05-08 Tom Tromey <tom@tromey.com>
10400 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
10401 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
10402 (_initialize_dwarf2_frame): Update.
10404 2019-05-08 Tom Tromey <tom@tromey.com>
10406 * objc-lang.c (objc_objfile_data): Change type.
10407 (find_methods): Update.
10408 (_initialize_objc_lang): Remove.
10410 2019-05-08 Tom Tromey <tom@tromey.com>
10412 * stabsread.c (rs6000_builtin_type_data): Change type.
10413 (rs6000_builtin_type, _initialize_stabsread): Update.
10415 2019-05-08 Tom Tromey <tom@tromey.com>
10417 * mips-tdep.c (mips_pdr_data): Remove.
10418 (_initialize_mips_tdep): Update.
10420 2019-05-08 Tom Tromey <tom@tromey.com>
10422 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
10423 (hppa_init_objfile_priv_data, read_unwind_info)
10424 (find_unwind_entry, _initialize_hppa_tdep): Update.
10426 2019-05-08 Tom Tromey <tom@tromey.com>
10428 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
10429 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
10431 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
10433 2019-05-08 Tom Tromey <tom@tromey.com>
10435 * mdebugread.c (basic_type_data): Change type.
10436 (basic_type, _initialize_mdebugread): Update.
10438 2019-05-08 Tom Tromey <tom@tromey.com>
10440 * common/gdb_unique_ptr.h (struct noop_deleter): New.
10442 2019-05-08 Tom Tromey <tom@tromey.com>
10444 * nto-tdep.c (nto_inferior_data_reg): Change type.
10445 (nto_inferior_data): Update.
10446 (nto_inferior_data_cleanup, nto_new_inferior_data)
10447 (_initialize_nto_tdep): Remove.
10448 * nto-tdep.h (struct nto_inferior_data): Add initializers.
10450 2019-05-08 Tom Tromey <tom@tromey.com>
10452 * ada-lang.c (struct ada_inferior_data): Add initializers.
10453 (ada_inferior_data): Change type.
10454 (ada_inferior_data_cleanup): Remove.
10455 (get_ada_inferior_data, ada_inferior_exit)
10456 (struct ada_pspace_data): Add initializers, destructor.
10457 (ada_pspace_data_handle): Change type.
10458 (get_ada_pspace_data): Update.
10459 (ada_pspace_data_cleanup): Remove.
10461 2019-05-08 Tom Tromey <tom@tromey.com>
10463 * coffread.c (struct coff_symfile_info): Add initializers.
10464 (coff_objfile_data_key): Move lower. Change type.
10465 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
10467 (coff_free_info): Remove.
10469 2019-05-08 Tom Tromey <tom@tromey.com>
10471 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
10472 (fbsd_pspace_data_handle): Move lower. Change type.
10473 (get_fbsd_pspace_data): Update.
10474 (fbsd_pspace_data_cleanup): Remove.
10475 (_initialize_fbsd_tdep): Update.
10477 2019-05-08 Tom Tromey <tom@tromey.com>
10479 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
10480 (get_ada_tasks_pspace_data): Update.
10481 (ada_tasks_pspace_data_cleanup): Remove.
10482 (_initialize_tasks): Update.
10483 (ada_tasks_inferior_data_handle): Change type.
10484 (get_ada_tasks_inferior_data): Update.
10485 (ada_tasks_inferior_data_cleanup): Remove.
10486 (struct ada_tasks_pspace_data): Add initializers.
10488 2019-05-08 Tom Tromey <tom@tromey.com>
10490 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
10491 * symfile-debug.c (debug_sym_get_probes): Change type.
10492 * stap-probe.c (handle_stap_probe):
10493 (stap_static_probe_ops::get_probes): Change type.
10494 * probe.h (class static_probe_ops) <get_probes>: Change type.
10495 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
10496 (parse_probes_in_pspace): Update.
10497 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
10499 (any_static_probe_ops::get_probes): Change type.
10500 * elfread.c (elfread_data): New typedef.
10501 (probe_key): Change type.
10502 (elf_get_probes): Likewise. Update.
10503 (probe_key_free): Remove.
10504 (_initialize_elfread): Update.
10505 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
10507 (dtrace_process_dof_probe, dtrace_process_dof)
10508 (dtrace_static_probe_ops::get_probe): Change type.
10510 2019-05-08 Tom Tromey <tom@tromey.com>
10512 * xcoffread.c (struct xcoff_symfile_info): Rename from
10513 coff_symfile_info. Add initializers.
10514 (xcoff_objfile_data_key): Move lower. Change type.
10515 (XCOFF_DATA): Rewrite.
10516 (xcoff_free_info): Remove.
10517 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
10518 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
10519 (xcoff_initial_scan): Update.
10521 2019-05-08 Tom Tromey <tom@tromey.com>
10523 * solib-svr4.c (struct svr4_info): Add initializers and
10525 <probes_table>: Now an htab_up.
10526 (solib_svr4_pspace_data): Change type.
10527 (free_probes_table): Simplify.
10528 (~svr4_info): Rename from svr4_pspace_data_cleanup.
10529 (get_svr4_info, probes_table_htab_remove_objfile_probes)
10530 (probes_table_remove_objfile_probes, register_solib_event_probe)
10531 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
10532 (_initialize_svr4_solib): Update.
10534 2019-05-08 Tom Tromey <tom@tromey.com>
10536 * remote.c (remote_pspace_data): Change type.
10537 (remote_pspace_data_cleanup): Remove.
10538 (get_remote_exec_file, set_pspace_remote_exec_file)
10539 (_initialize_remote): Update.
10541 2019-05-08 Tom Tromey <tom@tromey.com>
10543 * breakpoint.c (breakpoint_objfile_key): Change type.
10544 (get_breakpoint_objfile_data): Update.
10545 (free_breakpoint_objfile_data): Remove.
10546 (_initialize_breakpoint): Update.
10548 2019-05-08 Tom Tromey <tom@tromey.com>
10550 * linux-tdep.c (struct linux_info): Add initializers.
10551 (linux_inferior_data): Move. Change type.
10552 (invalidate_linux_cache_inf): Update.
10553 (linux_inferior_data_cleanup): Remove.
10554 (get_linux_inferior_data, _initialize_linux_tdep): Update.
10556 2019-05-08 Tom Tromey <tom@tromey.com>
10558 * auxv.c (auxv_inferior_data): Move. Change type.
10559 (auxv_inferior_data_cleanup): Remove.
10560 (invalidate_auxv_cache_inf): Rewrite.
10561 (get_auxv_inferior_data, _initialize_auxv): Update.
10563 2019-05-08 Tom Tromey <tom@tromey.com>
10565 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
10566 (symfile_debug_objfile_data_key): Change type.
10567 (symfile_debug_installed, debug_qf_has_symbols)
10568 (debug_qf_find_last_source_symtab)
10569 (debug_qf_forget_cached_source_info)
10570 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
10571 (debug_qf_print_stats, debug_qf_dump)
10572 (debug_qf_expand_symtabs_for_function)
10573 (debug_qf_expand_all_symtabs)
10574 (debug_qf_expand_symtabs_with_fullname)
10575 (debug_qf_map_matching_symbols)
10576 (debug_qf_expand_symtabs_matching)
10577 (debug_qf_find_pc_sect_compunit_symtab)
10578 (debug_qf_map_symbol_filenames)
10579 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
10580 (debug_sym_new_init, debug_sym_init, debug_sym_read)
10581 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
10582 (debug_sym_read_linetable, debug_sym_relocate): Update.
10583 (symfile_debug_free_objfile): Remove.
10584 (install_symfile_debug_logging, _initialize_symfile_debug):
10587 2019-05-08 Tom Tromey <tom@tromey.com>
10589 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
10590 allocate_on_obstack.
10591 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
10592 (get_dwarf2_per_objfile): Update.
10593 (set_dwarf2_per_objfile): Remove.
10594 (dwarf2_has_info, dwarf2_get_section_info): Update.
10595 (dwarf2_free_objfile): Remove.
10596 (_initialize_dwarf2_read): Update.
10598 2019-05-08 Tom Tromey <tom@tromey.com>
10600 * auto-load.c (struct auto_load_pspace_info): Add destructor and
10602 <unsupported_script_warning_printed,
10603 script_not_found_warning_printed>: Now bool.
10604 (auto_load_pspace_data): Change type.
10605 (~auto_load_pspace_info): Rename from
10606 auto_load_pspace_data_cleanup.
10607 (get_auto_load_pspace_data, init_loaded_scripts_info)
10608 (clear_section_scripts, maybe_print_unsupported_script_warning)
10609 (maybe_print_script_not_found_warning, _initialize_auto_load):
10612 2019-05-08 Tom Tromey <tom@tromey.com>
10614 * objfiles.c (objfile_pspace_info): Add destructor and
10616 (objfiles_pspace_data): Change type.
10617 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
10618 (get_objfile_pspace_data): Update.
10619 (objfiles_bfd_data): Change type.
10620 (get_objfile_bfd_data): Update.
10621 (objfile_bfd_data_free, _initialize_objfiles): Remove.
10623 2019-05-08 Tom Tromey <tom@tromey.com>
10625 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
10627 (get_catch_syscall_inferior_data): Update.
10628 (catch_syscall_inferior_data_cleanup): Remove.
10629 (_initialize_break_catch_syscall): Update.
10631 2019-05-08 Tom Tromey <tom@tromey.com>
10633 * inflow.c (struct terminal_info): Add destructor and
10635 (inflow_inferior_data): Change type.
10636 (~terminal_info): Rename from inflow_inferior_data_cleanup.
10637 (get_inflow_inferior_data, inflow_inferior_exit)
10638 (swap_terminal_info, _initialize_inflow): Update.
10640 2019-05-08 Tom Tromey <tom@tromey.com>
10642 * target-dcache.c (target_dcache_cleanup): Remove.
10643 (target_dcache_aspace_key): Change type.
10644 (target_dcache_init_p, target_dcache_invalidate)
10645 (target_dcache_get, target_dcache_get_or_init)
10646 (_initialize_target_dcache): Update.
10647 * dcache.h (struct dcache_deleter): New.
10649 2019-05-08 Tom Tromey <tom@tromey.com>
10651 * symtab.c (struct symbol_cache): Add destructor and
10653 (symbol_cache_key): Move. Change type.
10654 (make_symbol_cache, free_symbol_cache): Remove.
10655 (get_symbol_cache): Update.
10656 (symbol_cache_cleanup): Remove.
10657 (ALL_PSPACES, symbol_cache_flush)
10658 (maintenance_print_symbol_cache)
10659 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
10662 2019-05-08 Tom Tromey <tom@tromey.com>
10664 * symtab.c (struct main_info): Add destructor and initializers.
10665 (main_progspace_key): Move. Change type.
10666 (get_main_info): Update.
10667 (main_info_cleanup): Remove.
10668 (_initialize_symtab): Update.
10670 2019-05-08 Tom Tromey <tom@tromey.com>
10672 * registry.h (DECLARE_REGISTRY): Define the _key class.
10674 2019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
10676 * NEWS: Merge two 'New commands' sections.
10678 2019-05-08 Joel Brobecker <brobecker@adacore.com>
10680 * ada-valprint.c (ada_val_print_gnat_array): Remove language
10681 parameter and use Ada language definition instead.
10682 (ada_val_print_ptr): Remove unused language parameter.
10683 (ada_val_print_num): Remove language parameter and use Ada language
10684 definition instead.
10685 (ada_val_print_enum, ada_val_print_flt): Remove unused language
10687 (ada_val_print_struct_union, ada_val_print_ref): Remove language
10688 parameter and use Ada language definition instead.
10689 (ada_val_print_1): Update all ada_val_print_xxx calls.
10690 Remove language parameter.
10691 (ada_val_print): Update ada_val_print_1 call.
10693 2019-05-08 Tom Tromey <tromey@adacore.com>
10695 * remote.c (remote_hw_watchpoint_limit)
10696 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
10699 2019-05-08 Tom Tromey <tromey@adacore.com>
10701 * maint.c (_initialize_maint_cmds): Move initialization code to
10703 (watchdog, show_watchdog): Move to remote.c.
10704 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
10706 (_initialize_remote): Move initialization code from maint.c.
10707 * defs.h (watchdog): Don't declare.
10709 2019-05-08 Tom Tromey <tromey@adacore.com>
10711 * tui/tui-interp.c: Include main.h.
10712 * interps.c: Include main.h.
10713 * main.h (interpreter_p): Declare.
10714 * defs.h (interpreter_p): Don't declare.
10716 2019-05-08 Tom Tromey <tromey@adacore.com>
10718 * dwarf2loc.c: Include dwarf2read.h.
10719 * defs.h (read_unsigned_leb128): Don't declare.
10720 * dwarf2read.h (read_unsigned_leb128): Declare.
10722 2019-05-08 Tom Tromey <tromey@adacore.com>
10724 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
10727 2019-05-08 Tom Tromey <tromey@adacore.com>
10729 * utils.c (fputs_maybe_filtered): Reset style after paging, even
10730 when no wrap column is set.
10732 2019-05-08 Tom Tromey <tromey@adacore.com>
10734 * c-lang.c (c_get_string): Handle non-C-style arrays.
10736 2019-05-08 Tom Tromey <tromey@adacore.com>
10738 * typeprint.c (print_offset_data::update): Print the bit offset,
10739 not the number of bits remaining.
10741 2019-05-08 Tom Tromey <tromey@adacore.com>
10743 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
10744 padding at end of comment.
10746 2019-05-08 Tom Tromey <tromey@adacore.com>
10748 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
10749 Compare main types.
10751 2019-05-06 Tom Tromey <tom@tromey.com>
10753 * common/scoped_mmap.c: Include common-defs.h.
10754 * common/scoped_mmap.h: Don't include config.h.
10756 2019-05-04 Tom Tromey <tom@tromey.com>
10758 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
10759 (struct aarch64_call_info): Add initializers.
10760 <si>: Now a std::vector.
10761 (pass_on_stack, aarch64_push_dummy_call): Update.
10763 2019-05-04 Simon Marchi <simon.marchi@efficios.com>
10764 Tom Tromey <tom@tromey.com>
10766 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
10767 (ppc_threads): Now a std::vector. Now static.
10768 (hwdebug_find_thread_points_by_tid)
10769 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
10772 2019-05-04 Tom Tromey <tom@tromey.com>
10774 * arc-tdep.c (arc_tdesc_init): Return bool.
10776 2019-05-04 Tom Tromey <tom@tromey.com>
10778 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
10779 Use gdb_assert_not_reached.
10781 2019-05-04 Tom Tromey <tom@tromey.com>
10783 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
10786 2019-05-04 Tom Tromey <tom@tromey.com>
10788 * arc-tdep.c (arc_tdesc_init): Use bool.
10790 2019-05-04 Tom Tromey <tom@tromey.com>
10792 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
10794 2019-05-04 Tom Tromey <tom@tromey.com>
10796 * cli/cli-cmds.c (valid_command_p): Return bool.
10798 2019-05-04 Tom Tromey <tom@tromey.com>
10800 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
10801 * command.h (valid_user_defined_cmd_name_p): Channge return type.
10803 2019-05-04 Raul Tambre <raul@tambre.ee>
10805 * python/lib/gdb/prompt.py (_ExtendedPrompt)
10806 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
10807 operator for comparison.
10809 2019-05-04 Tom Tromey <tom@tromey.com>
10811 * psymtab.c (psymbol_name_matches, match_partial_symbol)
10812 (lookup_partial_symbol, print_partial_symbols)
10813 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
10814 (psymbol_compare): Update.
10815 (add_psymbol_to_bcache): Clear the entire psymbol.
10816 (maintenance_check_psymtabs): Update.
10817 * psympriv.h (struct partial_symbol): Don't derive from
10818 general_symbol_info.
10819 <obj_section, unrelocated_address, address,
10820 set_unrelocated_address>: Update.
10821 <ginfo>: New member.
10822 * dwarf-index-write.c (write_psymbols, debug_names::insert)
10823 (debug_names::write_psymbols): Update.
10825 2019-05-04 Tom de Vries <tdevries@suse.de>
10827 * contrib/cc-with-tweaks.sh: Support -n arg.
10829 2019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10831 * corelow.c (core_target::detach): Ensure frame cache and
10832 register caches are cleared.
10833 inferior.c (exit_inferior_1): Likewise.
10835 2019-05-03 Sandra Loosemore <sandra@codesourcery.com>
10836 Tom Tromey <tom@tromey.com>
10838 * dictionary.c (collate_pending_symbols_by_language): Remove
10839 "struct" from foreach.
10840 * symtab.c (lookup_global_symbol_from_objfile)
10841 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
10843 * ser-tcp.c (net_open): Remove "struct" from foreach.
10844 * objfiles.c (objfile_relocate, objfile_rebase)
10845 (objfile_has_symbols): Remove "struct" from foreach.
10846 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
10848 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
10850 * darwin-nat.c (thread_info_from_private_thread_info): Remove
10851 "struct" from foreach.
10852 * ada-lang.c (create_excep_cond_exprs)
10853 (ada_exception_catchpoint_cond_string): Remove "struct" from
10856 2019-05-03 Tom Tromey <tromey@adacore.com>
10858 * ada-exp.y (convert_char_literal): Check suffix of each
10861 2019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
10864 * ada-exp.y (yywrap): Don't define.
10865 * ada-lex.l (%option): Add noyywrap
10868 2019-05-03 Eli Zaretskii <eliz@gnu.org>
10870 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
10871 _WIN32_WINNT to the XP level, unless already defined to a higher
10874 * unittests/parse-connection-spec-selftests.c:
10876 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
10879 * symfile.c (find_separate_debug_file): Remove colon from the
10880 drive spec of DOS/Windows file names of the target, so that the
10881 file name produced from DEBUGDIR and the target's directory will
10882 be valid on DOS/Windows systems.
10884 2019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
10886 * rust-lang.c (val_print_struct): Handle printing structures
10887 containing strings.
10889 2019-05-02 Tom Tromey <tromey@adacore.com>
10891 * valarith.c (_initialize_valarith): Remove.
10893 2019-05-01 Tom Tromey <tromey@adacore.com>
10895 * ada-lang.c (ada_value_primitive_field): Treat more fields as
10898 2019-05-01 Tom Tromey <tromey@adacore.com>
10900 * ada-lang.c (ada_value_assign): Correctly compute starting offset
10901 for big-endian copies.
10903 2019-04-30 Ali Tamur <tamur@google.com>
10904 * gdb/dwarf2read.c (read_3_bytes): New declaration.
10905 (read_attribute_value): Added DW_FORM_strx1-4 cases.
10906 (read_3_bytes): New function.
10908 2019-04-30 Joel Brobecker <brobecker@adacore.com>
10910 * windows-nat.c (main_thread_id): Delete.
10911 (handle_output_debug_string): Replace main_thread_id by
10912 current_event.dwThreadId.
10913 (fake_create_process): Likewise.
10914 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
10915 Do not set main_thread_id.
10916 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
10917 current_event.dwThreadId.
10918 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
10920 2019-04-30 Joel Brobecker <brobecker@adacore.com>
10922 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
10923 Use current_event.dwThreadId instead of main_thread_id.
10925 2019-04-30 Tom Tromey <tromey@adacore.com>
10927 * ada-lang.c (ada_lookup_simple_minsyms): New function.
10928 (create_excep_cond_exprs): Iterate over program spaces.
10929 (ada_exception_catchpoint_cond_string): Examine all minimal
10930 symbols for exception types.
10932 2019-04-30 Tom Tromey <tromey@adacore.com>
10935 * dwarf2read.c (process_structure_scope): Handle case where type
10936 has template parameters but no symbol was created.
10938 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10939 Chris January <chris.january@arm.com>
10941 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
10943 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
10945 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10947 * f-typeprint.c (f_print_type): Update rules for printing
10949 (f_type_print_varspec_suffix): Likewise.
10951 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10952 Chris January <chris.january@arm.com>
10954 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
10955 function arguments.
10957 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10959 * f-lang.c (build_fortran_types): Change name of void type to
10961 * f-typeprint.c (f_type_print_base): Print the name of the void
10962 type, rather than a fixed string.
10963 * f-valprint.c (f_decorations): Use lower case void string.
10965 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10966 Chris January <chris.january@arm.com>
10968 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
10971 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10972 Chris January <chris.january@arm.com>
10973 David Lecomber <david.lecomber@arm.com>
10975 * f-exp.y (BINOP_INTRINSIC): New token.
10976 (exp): New parser rule handling BINOP_INTRINSIC.
10977 (f77_keywords): Add new builtin procedures.
10978 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
10979 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
10980 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
10981 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
10982 (print_unop_subexp_f): New function.
10983 (print_binop_subexp_f): New function.
10984 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
10985 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
10986 (dump_subexp_body_f): Likewise.
10987 (operator_check_f): Likewise.
10988 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
10989 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
10991 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10993 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
10995 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
10996 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
10997 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
10998 (operator_length_f): New fuction.
10999 (print_subexp_f): New function.
11000 (op_name_f): New function.
11001 (dump_subexp_body_f): New function.
11002 (operator_check_f): New function.
11003 (exp_descriptor_f): Replace standard expression handling functions
11004 with new functions.
11005 * gdb/fortran-operator.def: New file.
11006 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
11007 * gdb/std-operator.def: Remove UNOP_KIND.
11009 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
11011 * std-operator.def: Remove unbalanced, stray double quote
11014 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
11015 Chris January <chris.january@arm.com>
11016 Daniel Everett <daniel.everett@arm.com>
11017 Nick Forrington <nick.forrington@arm.com>
11018 Richard Bunt <richard.bunt@arm.com>
11020 * cp-valprint.c (cp_print_value_fields): Allow an additional level
11021 of depth when printing anonymous structs or unions.
11022 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
11023 Don't print either the top-level value, or the children if the
11024 max-depth is exceeded.
11025 (ppscm_print_children): When printing the key of a map, allow one
11026 extra level of depth.
11027 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
11028 print either the top-level value, or the children if the max-depth
11030 (print_children): When printing the key of a map, allow one extra
11032 * python/py-value.c (valpy_format_string): Add max_depth keyword.
11033 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
11034 (user_print_options): Initialise max_depth field.
11035 (val_print_scalar_or_string_type_p): New function.
11036 (val_print): Check to see if the max depth has been reached.
11037 (val_print_check_max_depth): Define new function.
11038 (show_print_max_depth): New function.
11039 (_initialize_valprint): Add 'print max-depth' option.
11040 * valprint.h (struct value_print_options) <max_depth>: New field.
11041 (val_print_check_max_depth): Declare new function.
11042 * NEWS: Document new feature.
11044 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
11046 * ada-lang.c (ada_language_defn): Initialise new field.
11047 * c-lang.c (c_is_string_type_p): New function.
11048 (c_language_defn): Initialise new field.
11049 (cplus_language_defn): Initialise new field.
11050 (asm_language_defn): Initialise new field.
11051 (minimal_language_defn): Initialise new field.
11052 * c-lang.h (c_is_string_type_p): Declare new function.
11053 * d-lang.c (d_language_defn): Initialise new field.
11054 * f-lang.c (f_is_string_type_p): New function.
11055 (f_language_defn): Initialise new field.
11056 * go-lang.c (go_is_string_type_p): New function.
11057 (go_language_defn): Initialise new field.
11058 * language.c (default_is_string_type_p): New function.
11059 (unknown_language_defn): Initialise new field.
11060 (auto_language_defn): Initialise new field.
11061 * language.h (struct language_defn) <la_is_string_type_p>: New
11063 (default_is_string_type_p): Declare new function.
11064 * m2-lang.c (m2_language_defn): Initialise new field.
11065 * objc-lang.c (objc_language_defn): Initialise new field.
11066 * opencl-lang.c (opencl_language_defn): Initialise new field.
11067 * p-lang.c (pascal_is_string_type_p): New function.
11068 (pascal_language_defn): Initialise new field.
11069 * rust-lang.c (rust_is_string_type_p): New function.
11070 (rust_language_defn): Initialise new field.
11072 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
11074 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
11076 * ada-lang.c (ada_language_defn): Initialise new field.
11077 * c-lang.c (c_language_defn): Likewise.
11078 (cplus_language_defn): Likewise.
11079 (asm_language_defn): Likewise.
11080 (minimal_language_defn): Likewise.
11081 * d-lang.c (d_language_defn): Likewise.
11082 * f-lang.c (f_language_defn): Likewise.
11083 * go-lang.c (go_language_defn): Likewise.
11084 * language.c (unknown_language_defn): Likewise.
11085 (auto_language_defn): Likewise.
11086 * m2-lang.c (m2_language_defn): Likewise.
11087 * objc-lang.c (objc_language_defn): Likewise.
11088 * opencl-lang.c (opencl_language_defn): Likewise.
11089 * p-lang.c (pascal_language_defn): Likewise.
11090 * rust-lang.c (rust_language_defn): Likewise.
11092 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
11094 * ada-lang.c (ada_is_character_type): Change return type to bool.
11095 (ada_is_string_type): Likewise.
11096 * ada-lang.h (ada_is_character_type): Update declaration
11097 (ada_is_string_type): Likewise.
11099 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11101 Support style in 'frame|thread apply'
11103 * gdbcmd.h (execute_command_to_string): New term_out parameter.
11104 * record.c (record_start, record_stop): Update callers of
11105 execute_command_to_string with false.
11106 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
11107 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
11109 (class string_file): New constructor with term_out parameter.
11110 Override methods term_out and can_emit_style_escape. New member
11112 (class stdio_file): Override can_emit_style_escape.
11113 (class tee_file): Override term_out and can_emit_style_escape.
11114 * utils.h (can_emit_style_escape): Remove.
11115 * utils.c (can_emit_style_escape): Likewise.
11116 Update all callers of can_emit_style_escape (SOMESTREAM) to
11117 SOMESTREAM->can_emit_style_escape.
11118 * source-cache.c (source_cache::get_source_lines): Likewise.
11119 * stack.c (frame_apply_command_count): Call execute_command_to_string
11120 passing the term_out characteristic of the current gdb_stdout.
11121 * thread.c (thr_try_catch_cmd): Likewise.
11122 * top.c (execute_command_to_string): pass term_out parameter
11123 to construct the string_file for the command output.
11124 * ui-file.c (term_cli_styling): New function (most code moved
11125 from utils.c can_emit_style_escape).
11126 (string_file::string_file, string_file::can_emit_style_escape,
11127 stdio_file::can_emit_style_escape, tee_file::term_out,
11128 tee_file::can_emit_style_escape): New functions.
11130 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11132 * NEWS: Mention the new set|show may-call-functions.
11133 * infcall.c (may_call_functions_p): New variable.
11134 (show_may_call_functions_p): New function.
11135 (call_function_by_hand_dummy): Throws an error if not
11136 may-call-functions.
11137 (_initialize_infcall): Call add_setshow_boolean_cmd for
11138 may-call-functions.
11140 2019-04-25 Keith Seitz <keiths@redhat.com>
11143 * cp-support.c (inspect_type): Don't attempt substitutions
11144 of symbol with the same name.
11146 2019-04-25 Tom Tromey <tromey@adacore.com>
11149 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
11152 2019-04-25 Tom Tromey <tromey@adacore.com>
11154 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
11156 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
11157 (gdb_xml_parser::parse): Use std::move.
11158 * python/python-internal.h (gdbpy_convert_exception): Take a const
11160 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
11162 * python/py-utils.c (gdbpy_convert_exception): Take a const
11164 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
11166 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
11168 * mi/mi-main.c (mi_print_exception): Take a const reference.
11169 * main.c (handle_command_errors): Take a const reference.
11170 * linespec.c (parse_linespec): Use std::move.
11171 * infcall.c (run_inferior_call): Use std::move.
11172 (call_function_by_hand_dummy): Use std::move.
11173 * exec.c (try_open_exec_file): Use std::move.
11174 * exceptions.h (exception_print, exception_fprintf)
11175 (exception_print_same): Update.
11176 * exceptions.c (print_exception, exception_print)
11177 (exception_fprintf, exception_print_same): Change parameters to
11179 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
11180 * common/new-op.c: Use std::move.
11181 * common/common-exceptions.h (struct gdb_exception): Add move
11183 (struct gdb_exception_error, struct gdb_exception_quit, struct
11184 gdb_quit_bad_alloc): Change constructor to move constructor.
11185 (throw_exception): Change parameter to rvalue reference.
11186 * common/common-exceptions.c (throw_exception): Take rvalue
11188 * cli/cli-interp.c (safe_execute_command): Use std::move.
11189 * breakpoint.c (insert_bp_location, location_to_sals): Use
11192 2019-04-25 Tom Tromey <tromey@adacore.com>
11194 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
11195 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
11196 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
11197 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
11198 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
11199 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
11200 guile/scm-value.c: Use unpack.
11201 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
11202 gdbscm_gdb_exception.
11203 (gdbscm_throw_gdb_exception): Likewise.
11204 (struct gdbscm_gdb_exception): New.
11205 (unpack): New function.
11206 (gdbscm_wrap): Use unpack.
11208 2019-04-25 Tom Tromey <tromey@adacore.com>
11210 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
11211 (gdb_rl_callback_handler): Use std::move.
11212 * common/common-exceptions.h (struct gdb_exception): Add move
11213 assignment operator.
11214 (throw_exception_sjlj): Change "exception" to const reference.
11215 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
11216 (throw_exception_sjlj): Change "exception" to const reference.
11218 2019-04-25 Tom Tromey <tromey@adacore.com>
11220 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
11221 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
11222 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
11224 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
11226 * mi/mi-interp.c (mi_interp::exec): Update.
11227 * linespec.c (parse_linespec): Update.
11228 * infcall.c (run_inferior_call): Update.
11229 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
11230 * guile/scm-symbol.c (gdbscm_lookup_symbol)
11231 (gdbscm_lookup_global_symbol): Update.
11232 * guile/scm-param.c (gdbscm_parameter_value): Update.
11233 * guile/scm-frame.c (gdbscm_frame_read_register)
11234 (gdbscm_frame_read_var): Update.
11235 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
11236 * exec.c (try_open_exec_file): Update.
11237 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
11238 (gdb_rl_callback_handler): Update.
11239 * common/common-exceptions.h (exception_none): Don't declare.
11240 * common/common-exceptions.c (exception_none): Don't define.
11241 (struct catcher) <exception>: Update.
11242 * cli/cli-interp.c (safe_execute_command): Update.
11243 * breakpoint.c (insert_bp_location, location_to_sals): Update.
11245 2019-04-25 Ali Tamur <tamur@google.com>
11247 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
11248 (read_attribute_value): Likewise.
11249 (dwarf2_read_addr_index): Update comment.
11250 (read_str_index): Add DW_FORM_strx.
11251 (dwarf2_string_attr): Likewise.
11252 (dwarf2_const_value_attr): Likewise.
11253 (dump_die_shallow): Likewise.
11254 (dwarf2_fetch_constant_bytes): Likewise.
11255 (skip_form_bytes): Likewise.
11256 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
11258 2019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
11262 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
11263 OFFSET. Verify if current mapping contains an ELF header.
11264 (linux_find_memory_regions_full): Adjust call to
11267 2019-04-25 Sandra Loosemore <sandra@codesourcery.com>
11268 Kang Li <kanglictf@gmail.com>
11272 * dwarf2-frame.c (read_initial_length): Be consistent about using
11273 unsigned representation of length.
11274 (decode_frame_entry_1): Likewise. Check for wraparound of
11275 end pointer as well as buffer overflow.
11277 2019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
11279 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
11282 2019-04-24 Tom Tromey <tromey@adacore.com>
11284 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
11286 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11288 * s12z-tdep.c (s12z_unwind_pc): Delete.
11289 (s12z_unwind_sp): Delete.
11290 (s12z_gdbarch_init): Don't register deleted functions with
11293 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11295 * rl78-tdep.c (rl78_unwind_sp): Delete.
11296 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
11298 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11300 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
11301 (xstormy16_unwind_pc): Delete.
11302 (xstormy16_dummy_id): Delete.
11303 (xstormy16_gdbarch_init): Don't register deleted functions with
11306 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11308 * vax-tdep.c (vax_unwind_pc): Delete.
11309 (vax_gdbarch_init): Don't register deleted function with gdbarch.
11311 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11313 * v850-tdep.c (v850_unwind_sp): Delete.
11314 (v850_unwind_pc): Delete.
11315 (v850_dummy_id): Delete.
11316 (v850_gdbarch_init): Don't register deleted functions with
11319 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11321 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
11322 (tilegx_unwind_pc): Delete.
11323 (tilegx_unwind_dummy_id): Delete.
11324 (tilegx_gdbarch_init): Don't register deleted functions with
11327 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11329 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
11330 (tic6x_dummy_id): Delete.
11331 (tic6x_gdbarch_init): Don't register deleted functions with
11334 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11336 * sparc-tdep.c (sparc_unwind_pc): Delete.
11337 (sparc32_gdbarch_init): Don't register deleted function with
11340 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11342 * sh-tdep.c (sh_unwind_sp): Delete.
11343 (sh_unwind_pc): Delete.
11344 (sh_dummy_id): Delete.
11345 (sh_gdbarch_init): Don't register deleted functions with
11348 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11350 * score-tdep.c (score_unwind_sp): Delete.
11351 (score_unwind_pc): Delete.
11352 (score_dummy_id): Delete.
11353 (score_gdbarch_init): Don't register deleted functions with
11356 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11358 * rx-tdep.c (rx_unwind_pc): Delete.
11359 (rx_unwind_sp): Delete.
11360 (rx_dummy_id): Delete.
11361 (rx_gdbarch_init): Don't register deleted functions with
11362 gdbarch. Update comment.
11364 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11366 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
11367 (rs6000_dummy_id): Delete.
11368 (rs6000_gdbarch_init): Don't register deleted functions with
11371 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11373 * or1k-tdep.c (or1k_dummy_id): Delete.
11374 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
11376 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11378 * nios2-tdep.c (nios2_dummy_id): Delete.
11379 (nios2_unwind_sp): Delete.
11380 (nios2_gdbarch_init): Don't register deleted functions with
11383 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11385 * nds32-tdep.c (nds32_dummy_id): Delete.
11386 (nds32_unwind_pc): Delete.
11387 (nds32_unwind_sp): Delete.
11388 (nds32_gdbarch_init): Don't register deleted functions with
11391 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11393 * msp430-tdep.c (msp430_unwind_pc): Delete.
11394 (msp430_unwind_sp): Delete.
11395 (msp430_dummy_id): Delete.
11396 (msp430_gdbarch_init): Don't register deleted functions with
11399 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11401 * moxie-tdep.c (moxie_unwind_sp): Delete.
11402 (moxie_unwind_pc): Delete.
11403 (moxie_dummy_id): Delete.
11404 (moxie_gdbarch_init): Don't register deleted functions with
11407 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11409 * mn10300-tdep.c (mn10300_dummy_id): Delete.
11410 (mn10300_unwind_pc): Delete.
11411 (mn10300_unwind_sp): Delete.
11412 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
11414 (mn10300_frame_unwind_init): Don't register deleted functions with
11417 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11419 * mep-tdep.c (mep_unwind_pc): Delete.
11420 (mep_unwind_sp): Delete.
11421 (mep_dummy_id): Delete.
11422 (mep_gdbarch_init): Don't register deleted functions with
11425 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11427 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
11428 (m68hc11_unwind_sp): Delete.
11429 (m68hc11_gdbarch_init): Don't register deleted functions with
11432 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11434 * m32r-tdep.c (m32r_unwind_sp): Delete.
11435 (m32r_unwind_pc): Delete.
11436 (m32r_dummy_id): Delete.
11437 (m32r_gdbarch_init): Don't register deleted functions with
11440 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11442 * m32c-tdep.c (m32c_unwind_pc): Delete.
11443 (m32c_unwind_sp): Delete.
11444 (m32c_dummy_id): Delete.
11445 (m32c_gdbarch_init): Don't register deleted functions with
11448 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11450 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
11451 (lm32_unwind_pc): Delete.
11452 (lm32_dummy_id): Delete.
11453 (lm32_gdbarch_init): Don't register deleted functions with
11456 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11458 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
11459 (iq2000_unwind_pc): Delete.
11460 (iq2000_dummy_id): Delete.
11461 (iq2000_gdbarch_init): Don't register deleted functions with
11464 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11466 * nds32-tdep.c (nds32_type_align): Delete.
11467 (nds32_push_dummy_call): Use type_align instead.
11469 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11471 * arm-tdep.c (arm_type_align): Only handle vector override case.
11472 (arm_push_dummy_call): Use type_align.
11473 (arm_gdbarch_init): Register arm_type_align gdbarch function.
11475 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11477 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
11479 (pass_on_stack): Use type_align.
11480 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
11483 2019-04-23 Tom Tromey <tromey@adacore.com>
11485 * dwarf2read.c (line_header::file_name_at): Remove unused
11488 2019-04-23 Tom de Vries <tdevries@suse.de>
11491 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
11495 2019-03-27 Ali Tamur <tamur@google.com>
11497 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
11498 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
11499 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
11500 (dwarf_expr_context::get_addr_index): Likewise
11501 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
11502 (symbol_needs_eval_context::get_addr_index): Likewise
11503 (disassemble_dwarf_expression): Add DW_OP_addrx
11504 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
11505 (read_cutu_die_from_dwo): Update comment
11506 (skip_one_die): Add DW_FORM_addrx
11507 (read_attribute_value): Likewise
11508 (var_decode_location): Add DW_OP_addrx
11509 (dwarf2_const_value_attr): Add DW_FORM_addrx
11510 (dump_die_shallow): Likewise
11511 (dwarf2_fetch_constant_bytes): Likewise
11512 (decode_locdesc): Add DW_OP_addrx
11513 (skip_form_bytes): Add DW_FORM_addrx
11515 2019-04-22 Ali Tamur <tamur@google.com>
11517 * MAINTAINERS (Write After Approval): Add self.
11519 2019-04-22 Simon Marchi <simon.marchi@efficios.com>
11521 * solib-svr4.c (get_svr4_info): Add pspace parameter.
11522 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
11523 (open_symbol_file_object): Likewise.
11524 (svr4_default_sos): Add info parameter.
11525 (svr4_read_so_list): Likewise.
11526 (svr4_current_sos_direct): Adjust functions calls to pass down
11528 (svr4_current_sos_1): Add info parameter.
11529 (svr4_current_sos): Call get_svr4_info, pass info down to
11530 svr4_current_sos_1.
11531 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
11533 (svr4_in_dynsym_resolve_code): Pass current_program_space to
11535 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
11537 (probes_table_remove_objfile_probes): Likewise.
11538 (register_solib_event_probe): Add info parameter.
11539 (solist_update_incremental): Pass info parameter down to
11541 (disable_probes_interface): Add info parameter.
11542 (svr4_handle_solib_event): Pass current_program_space to
11543 get_svr4_info. Adjust disable_probes_interface cleanup.
11544 (svr4_create_probe_breakpoints): Add info parameter, pass it
11545 down to register_solib_event_probe.
11546 (svr4_create_solib_event_breakpoints): Add info parameter,
11547 pass it down to svr4_create_probe_breakpoints.
11548 (enable_break): Pass info down to
11549 svr4_create_solib_event_breakpoints.
11550 (svr4_solib_create_inferior_hook): Pass current_program_space to
11552 (svr4_clear_solib): Likewise.
11554 2019-04-22 Pedro Alves <palves@redhat.com>
11556 * solib-svr4.c (svr4_free_objfile_observer): New.
11557 (probe_and_action::objfile): New field.
11558 (probes_table_htab_remove_objfile_probes)
11559 (probes_table_remove_objfile_probes): New functions.
11560 (register_solib_event_probe): Add 'objfile' parameter. Store it
11561 in the new probe_and_action. Don't store the probe in 'lookup'.
11562 (svr4_create_probe_breakpoints): Pass objfile to
11563 register_solib_event_probe.
11564 (_initialize_svr4_solib): Register a free_objfile observer.
11566 2019-04-19 Tom Tromey <tom@tromey.com>
11568 * common/queue.h: Remove.
11570 2019-04-19 Tom Tromey <tom@tromey.com>
11572 * event-loop.c: Don't include "common/queue.h".
11574 2019-04-19 Tom Tromey <tom@tromey.com>
11576 * remote.c (remote_target): Use delete.
11577 * remote-notif.h: Include <list>, not "common/queue.h".
11578 (notif_client_p): Remove typedef.
11579 (remote_notif_state): Add constructor, destructor, initializer.
11580 <notif_queue>: Now a std::list.
11581 (remote_notif_state_xfree): Don't declare.
11582 * remote-notif.c (remote_notif_process, handle_notification)
11583 (remote_notif_state_allocate): Update.
11584 (~remote_notif_state): Rename from remote_notif_state_xfree.
11586 2019-04-19 Tom Tromey <tom@tromey.com>
11588 * symfile.c (reread_symbols): Update.
11589 * objfiles.c (objfile_register_static_link)
11590 (objfile_lookup_static_link): Update
11591 (~objfile) Don't delete static_links.
11592 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
11594 2019-04-19 Tom Tromey <tom@tromey.com>
11596 * type-stack.h (struct type_stack) <insert>: Constify string.
11597 * type-stack.c (type_stack::insert): Constify string.
11598 * gdbtypes.h (lookup_template_type): Update.
11599 (address_space_name_to_int): Update.
11600 * gdbtypes.c (address_space_name_to_int): Make space_identifier
11602 (lookup_template_type): Make name const.
11603 * c-exp.y: Update rules.
11604 (lex_one_token, classify_name, classify_inner_name)
11605 (c_print_token): Update.
11606 * p-exp.y: Update rules.
11608 * f-exp.y: Update rules.
11610 * d-exp.y: Update rules.
11611 (lex_one_token, classify_name, classify_inner_name): Update.
11612 * parse.c (write_dollar_variable, copy_name): Return std::string.
11613 * parser-defs.h (copy_name): Change return type.
11614 * m2-exp.y: Update rules.
11616 * go-exp.y (lex_one_token): Update.
11618 (classify_unsafe_function, classify_packaged_name)
11619 (classify_name, yylex): Update.
11621 2019-04-19 Sergei Trofimovich <siarheit@google.com>
11623 * configure.ac: add --enable-source-highlight switch.
11624 * configure: Regenerate.
11625 * top.c (print_gdb_version): plumb --enable-source-highlight
11626 status to "show configuration".
11628 2019-04-19 Tom Tromey <tromey@adacore.com>
11630 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
11632 (empty_record, ada_template_to_fixed_record_type_1)
11633 (template_to_static_fixed_type)
11634 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
11635 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
11636 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
11639 2019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
11642 * source.c (print_source_lines_base): Advance "iter" when a
11643 control character is seen.
11645 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11647 * inferior.h (struct infcall_suspend_state_deleter):
11648 Catch exception in destructor to avoid crash.
11650 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11652 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
11653 close to the add_com "shell".
11655 2019-04-18 Tom Tromey <tromey@adacore.com>
11657 * process-stratum-target.h (class process_stratum_target)
11658 <stratum>: Add "final".
11660 2019-04-17 Tom Tromey <tromey@adacore.com>
11662 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
11663 against nullptr before use.
11665 2019-04-17 Alan Hayward <alan.hayward@arm.com>
11667 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
11669 2019-04-17 Jim Wilson <jimw@sifive.com>
11670 Andrew Burgess <andrew.burgess@embecosm.com>
11672 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
11673 code read might fail, assume 4-byte breakpoint in that case.
11675 2019-04-15 Leszek Swirski <leszeks@google.com>
11677 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
11678 rather than a hand-rolled POD check when checking for forced MEMORY
11681 2019-04-15 Alan Hayward <alan.hayward@arm.com>
11683 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
11684 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
11686 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
11687 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
11688 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
11691 2019-04-15 Alan Hayward <alan.hayward@arm.com>
11693 * aarch64-linux-nat.c
11694 (aarch64_linux_nat_target::thread_architecture): Add override.
11695 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
11698 2019-04-15 Alan Hayward <alan.hayward@arm.com>
11700 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
11702 2019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
11704 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
11705 target types of size 96-bits, add some additional comments, and
11706 check that the builtin type we found was the correct size.
11708 2019-04-12 Eli Zaretskii <eliz@gnu.org>
11710 * utils.c (prompt_for_continue): Don't restore the styling at the
11711 end, as applied_style has the wrong value. This fixes styling in
11712 long lists of file names that are interrupted by the "Continue?"
11715 2019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
11717 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
11718 * c-lang.c (c_language_defn): Likewise.
11719 (cplus_language_defn): Likewise.
11720 (asm_language_defn): Likewise.
11721 (minimal_language_defn): Likewise.
11722 * d-lang.c (d_language_defn): Likewise.
11723 * f-lang.c (f_language_defn): Likewise.
11724 * go-lang.c (go_language_defn): Likewise.
11725 * language.c (unknown_language_defn): Likewise.
11726 (auto_language_defn): Likewise.
11727 * language.h (struct language_defn): Remove la_magic field.
11728 (LANG_MAGIC): Delete.
11729 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
11730 * objc-lang.c (objc_language_defn): Likewise.
11731 * opencl-lang.c (opencl_language_defn): Likewise.
11732 * p-lang.c (pascal_language_defn): Likewise.
11733 * rust-lang.c (rust_language_defn): Likewise.
11735 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
11737 * riscv-tdep.c (riscv_type_align): New function.
11738 (riscv_type_alignment): Delete.
11739 (riscv_arg_location): Use 'type_align'.
11740 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
11742 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
11744 * gdbtypes.c (type_align): A struct with no non-static fields also
11745 has alignment of 1.
11747 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
11749 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
11751 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
11753 (riscv_struct_info::analyse): New implementation using new
11754 analyse_inner member function.
11755 (riscv_struct_info::field_offset): New member function.
11756 (riscv_struct_info::m_offsets): New member variable.
11757 (riscv_struct_info::analyse_inner): New private member function,
11758 takes the old implementation of riscv_struct_info::analyse but
11759 extended to track field offsets.
11760 (riscv_call_arg_struct): Update the struct folding special cases
11761 to handle cases where empty C++ structs, which are non-zero
11763 (riscv_arg_location): Initialise the length of each location, a
11764 non-zero length now indicates the location is in use.
11765 (riscv_push_dummy_call): Allow for the first location having a
11766 non-zero offset when setting up arguments.
11767 (riscv_return_value): Likewise, but for return values.
11769 2019-04-11 Tom Tromey <tromey@adacore.com>
11771 * utils.c (internal_vproblem): Make "msg" const.
11773 2019-04-11 Alan Hayward <alan.hayward@arm.com>
11775 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
11776 * trad-frame.c (trad_frame_reset_saved_regs): New function.
11777 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
11778 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
11780 2019-04-10 Kevin Buettner <kevinb@redhat.com>
11782 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
11784 (fill_gregset): Call amd64_linux_collect_native_gregset instead
11785 of amd64_collect_native_gregset.
11786 (amd64_linux_nat_target::store_registers): Likewise.
11788 2019-04-10 Tom Tromey <tom@tromey.com>
11790 * symtab.c (lookup_global_symbol_from_objfile)
11791 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
11792 * objfiles.h (class separate_debug_iterator): New.
11793 (class separate_debug_range): New.
11794 (struct objfile) <separate_debug_objfiles>: New method.
11795 (objfile_separate_debug_iterate): Don't declare.
11796 * objfiles.c (separate_debug_iterator::operator++): Rename from
11797 objfile_separate_debug_iterate.
11798 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
11800 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
11803 2019-04-10 Tom Tromey <tom@tromey.com>
11805 * symfile.c (reread_symbols): Remove old comment.
11806 * objfiles.c (free_all_objfiles): Fix a typo.
11808 2019-04-10 Tom Tromey <tom@tromey.com>
11810 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
11811 * minsyms.c (lookup_minimal_symbol): Use foreach.
11812 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
11813 (lookup_minimal_symbol_solib_trampoline): Likewise.
11814 * symfile.c (reread_symbols): Use foreach.
11816 2019-04-09 Ivan Begert <ivanbegert@gmail.com>
11817 Tom Tromey <tromey@adacore.com>
11820 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
11821 (rust_lex_int_test): Change "value" to be LONGEST.
11822 (rust_lex_tests): Add test for long integer literal.
11824 2019-04-09 Tom Tromey <tromey@adacore.com>
11826 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
11828 (extended_remote_target::attach): Update.
11829 (remote_target::remote_notice_new_inferior): Update.
11830 (remote_target::add_current_inferior_and_thread): Update.
11831 * inferior.c (exit_inferior_1): Use "false".
11832 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
11834 2019-04-09 Simon Marchi <simon.marchi@efficios.com>
11836 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
11837 the "start" command.
11839 2019-04-08 Kevin Buettner <kevinb@redhat.com>
11841 * python/py-inferior.c (infpy_thread_from_thread_handle):
11842 Adjust comments to reflect renaming of thread_from_thread_handle
11843 to thread_from_handle. Adjust keywords. Fix type error message.
11844 (inferior_object_methods): Add thread_from_handle. Retain
11845 thread_from_thread_handle, but mark it as deprecated.
11847 2019-04-08 Kevin Buettner <kevinb@redhat.com>
11849 * gdbthread.h (find_thread_by_handle): Revise declaration.
11850 * thread.c (find_thread_by_handle): Likewise. Adjust
11851 implementation too.
11852 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
11853 support for buffer objects as handles.
11855 2019-04-08 Kevin Buettner <kevinb@redhat.com>
11857 * python/py-infthread.c (thpy_thread_handle): New function.
11858 (thread_object_methods): Register thpy_thread_handle.
11860 2019-04-08 Kevin Buettner <kevinb@redhat.com>
11862 * gdbthread.h (thread_to_thread_handle): Declare.
11863 * thread.c (gdbtypes.h): Include.
11864 (thread_to_thread_handle): New function.
11866 * target.h (struct target_ops): Add thread_info_to_thread_handle.
11867 (target_thread_info_to_thread_handle): Declare.
11868 * target.c (target_thread_info_to_thread_handle): New function.
11869 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
11870 * target-delegates.c: Regenerate.
11872 * linux-thread-db.c (class thread_db_target): Add method
11873 thread_info_to_thread_handle.
11874 (thread_db_target::thread_info_to_thread_handle): Define.
11875 * remote.c (class remote_target): Add new method
11876 thread_info_to_thread_handle.
11877 (remote_target::thread_info_to_thread_handle): Define.
11879 2019-04-08 Pedro Alves <palves@redhat.com>
11881 * common/common-exceptions.c (throw_exception): Don't create
11882 named object to throw; throw directly.
11883 (throw_it): Likewise. Don't initialize gdb_exception::message
11884 here, with new; pass FMT and AP to the ctor instead.
11885 * common/common-exceptions.h: Include <string>.
11886 (gdb_exception::gdb_exception(enum return_reason, enum errors,
11887 const char *, va_list)): New ctor. Use std::make_shared.
11888 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
11890 (gdb_exception_error::gdb_exception_error(enum errors, const char
11892 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
11894 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
11896 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
11897 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
11900 2019-04-08 Tom Tromey <tom@tromey.com>
11902 * valops.c (value_rtti_indirect_type): Replace throw_exception
11904 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
11906 * thread.c (thr_try_catch_cmd): Replace throw_exception with
11908 * target.c (target_translate_tls_address): Replace throw_exception
11910 * stack.c (frame_apply_command_count): Replace throw_exception
11912 * solib-spu.c (append_ocl_sos): Replace throw_exception with
11914 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
11916 * rs6000-tdep.c (rs6000_frame_cache)
11917 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
11918 * remote.c: Replace throw_exception with throw.
11919 * record-full.c (record_full_message, record_full_wait_1)
11920 (record_full_restore): Replace throw_exception with throw.
11922 (get_thread_current_frame_id, record_btrace_start_replaying)
11923 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
11924 (cmd_record_btrace_start): Replace throw_exception with throw.
11925 * parse.c (parse_exp_in_context_1): Replace throw_exception with
11927 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
11928 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
11930 (find_linespec_symbols): Replace throw_exception with throw.
11931 * infrun.c (displaced_step_prepare, resume): Replace
11932 throw_exception with throw.
11933 * infcmd.c (post_create_inferior): Replace throw_exception with
11935 * inf-loop.c (inferior_event_handler): Replace throw_exception
11937 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
11938 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
11939 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
11940 (get_prev_frame_always, get_frame_pc_if_available)
11941 (get_frame_address_in_block_if_available, get_frame_language):
11942 Replace throw_exception with throw.
11943 * frame-unwind.c (frame_unwind_try_unwinder): Replace
11944 throw_exception with throw.
11945 * eval.c (fetch_subexp_value, evaluate_var_value)
11946 (evaluate_funcall, evaluate_subexp_standard): Replace
11947 throw_exception with throw.
11948 * dwarf2loc.c (call_site_find_chain)
11949 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
11950 Replace throw_exception with throw.
11951 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
11953 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
11955 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
11956 * completer.c (complete_line_internal): Replace throw_exception
11958 * compile/compile-object-run.c (compile_object_run): Replace
11959 throw_exception with throw.
11960 * cli/cli-script.c (process_next_line): Replace throw_exception
11962 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
11963 (btrace_enable, btrace_maint_update_pt_packets): Replace
11964 throw_exception with throw.
11965 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
11966 throw_exception with throw.
11967 * break-catch-throw.c (re_set_exception_catchpoint): Replace
11968 throw_exception with throw.
11969 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
11970 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
11971 * aarch64-tdep.c (aarch64_make_prologue_cache)
11972 (aarch64_make_stub_cache): Replace throw_exception with throw.
11974 2019-04-08 Tom Tromey <tom@tromey.com>
11976 * common/common-exceptions.c (throw_exception): Rename from
11977 throw_exception_cxx. Remove old copy. Make argument const.
11978 (throw_it): Create and throw exception objects directly.
11979 * common/common-exceptions.h (throw_exception): Make argument
11981 (struct gdb_exception_error): Add constructor.
11982 (struct gdb_exception_quit): Add constructor.
11984 2019-04-08 Tom Tromey <tom@tromey.com>
11986 * common/common-exceptions.h (exception_rethrow): Don't declare.
11987 (TRY_SJLJ): Update comment.
11988 (TRY, CATCH, END_CATCH): Remove.
11989 * common/common-exceptions.c (exception_rethrow): Remove.
11991 2019-04-08 Tom Tromey <tom@tromey.com>
11993 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
11995 (gdb_exception_error): Rename from
11996 gdb_exception_RETURN_MASK_ERROR.
11997 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
11998 (gdb_quit_bad_alloc): Update.
11999 * aarch64-tdep.c: Update.
12000 * ada-lang.c: Update.
12001 * ada-typeprint.c: Update.
12002 * ada-valprint.c: Update.
12003 * amd64-tdep.c: Update.
12004 * arch-utils.c: Update.
12005 * break-catch-throw.c: Update.
12006 * breakpoint.c: Update.
12007 * btrace.c: Update.
12008 * c-varobj.c: Update.
12009 * cli/cli-cmds.c: Update.
12010 * cli/cli-interp.c: Update.
12011 * cli/cli-script.c: Update.
12012 * common/common-exceptions.c: Update.
12013 * common/new-op.c: Update.
12014 * common/selftest.c: Update.
12015 * compile/compile-c-symbols.c: Update.
12016 * compile/compile-cplus-symbols.c: Update.
12017 * compile/compile-object-load.c: Update.
12018 * compile/compile-object-run.c: Update.
12019 * completer.c: Update.
12020 * corelow.c: Update.
12021 * cp-abi.c: Update.
12022 * cp-support.c: Update.
12023 * cp-valprint.c: Update.
12024 * darwin-nat.c: Update.
12025 * disasm-selftests.c: Update.
12026 * dtrace-probe.c: Update.
12027 * dwarf-index-cache.c: Update.
12028 * dwarf-index-write.c: Update.
12029 * dwarf2-frame-tailcall.c: Update.
12030 * dwarf2-frame.c: Update.
12031 * dwarf2loc.c: Update.
12032 * dwarf2read.c: Update.
12034 * event-loop.c: Update.
12035 * event-top.c: Update.
12037 * f-valprint.c: Update.
12038 * fbsd-tdep.c: Update.
12039 * frame-unwind.c: Update.
12041 * gdbtypes.c: Update.
12042 * gnu-v3-abi.c: Update.
12043 * guile/guile-internal.h: Update.
12044 * guile/scm-block.c: Update.
12045 * guile/scm-breakpoint.c: Update.
12046 * guile/scm-cmd.c: Update.
12047 * guile/scm-disasm.c: Update.
12048 * guile/scm-frame.c: Update.
12049 * guile/scm-lazy-string.c: Update.
12050 * guile/scm-math.c: Update.
12051 * guile/scm-param.c: Update.
12052 * guile/scm-ports.c: Update.
12053 * guile/scm-pretty-print.c: Update.
12054 * guile/scm-symbol.c: Update.
12055 * guile/scm-symtab.c: Update.
12056 * guile/scm-type.c: Update.
12057 * guile/scm-value.c: Update.
12058 * i386-linux-tdep.c: Update.
12059 * i386-tdep.c: Update.
12060 * inf-loop.c: Update.
12061 * infcall.c: Update.
12062 * infcmd.c: Update.
12063 * infrun.c: Update.
12065 * language.c: Update.
12066 * linespec.c: Update.
12067 * linux-fork.c: Update.
12068 * linux-nat.c: Update.
12069 * linux-tdep.c: Update.
12070 * linux-thread-db.c: Update.
12072 * mi/mi-cmd-break.c: Update.
12073 * mi/mi-cmd-stack.c: Update.
12074 * mi/mi-interp.c: Update.
12075 * mi/mi-main.c: Update.
12076 * objc-lang.c: Update.
12077 * p-valprint.c: Update.
12079 * ppc-linux-tdep.c: Update.
12080 * printcmd.c: Update.
12081 * python/py-arch.c: Update.
12082 * python/py-breakpoint.c: Update.
12083 * python/py-cmd.c: Update.
12084 * python/py-finishbreakpoint.c: Update.
12085 * python/py-frame.c: Update.
12086 * python/py-framefilter.c: Update.
12087 * python/py-gdb-readline.c: Update.
12088 * python/py-inferior.c: Update.
12089 * python/py-infthread.c: Update.
12090 * python/py-lazy-string.c: Update.
12091 * python/py-linetable.c: Update.
12092 * python/py-objfile.c: Update.
12093 * python/py-param.c: Update.
12094 * python/py-prettyprint.c: Update.
12095 * python/py-progspace.c: Update.
12096 * python/py-record-btrace.c: Update.
12097 * python/py-record.c: Update.
12098 * python/py-symbol.c: Update.
12099 * python/py-type.c: Update.
12100 * python/py-unwind.c: Update.
12101 * python/py-utils.c: Update.
12102 * python/py-value.c: Update.
12103 * python/python.c: Update.
12104 * record-btrace.c: Update.
12105 * record-full.c: Update.
12106 * remote-fileio.c: Update.
12107 * remote.c: Update.
12108 * riscv-tdep.c: Update.
12109 * rs6000-aix-tdep.c: Update.
12110 * rs6000-tdep.c: Update.
12111 * rust-exp.y: Update.
12112 * rust-lang.c: Update.
12113 * s390-tdep.c: Update.
12114 * selftest-arch.c: Update.
12115 * solib-dsbt.c: Update.
12116 * solib-frv.c: Update.
12117 * solib-spu.c: Update.
12118 * solib-svr4.c: Update.
12120 * sparc64-linux-tdep.c: Update.
12122 * symfile-mem.c: Update.
12123 * symmisc.c: Update.
12124 * target.c: Update.
12125 * thread.c: Update.
12127 * tracefile-tfile.c: Update.
12128 * tui/tui.c: Update.
12129 * typeprint.c: Update.
12130 * unittests/cli-utils-selftests.c: Update.
12131 * unittests/parse-connection-spec-selftests.c: Update.
12132 * valops.c: Update.
12133 * valprint.c: Update.
12135 * varobj.c: Update.
12136 * windows-nat.c: Update.
12137 * x86-linux-nat.c: Update.
12138 * xml-support.c: Update.
12140 2019-04-08 Tom Tromey <tom@tromey.com>
12142 * xml-support.c: Use C++ exception handling.
12143 * x86-linux-nat.c: Use C++ exception handling.
12144 * windows-nat.c: Use C++ exception handling.
12145 * varobj.c: Use C++ exception handling.
12146 * value.c: Use C++ exception handling.
12147 * valprint.c: Use C++ exception handling.
12148 * valops.c: Use C++ exception handling.
12149 * unittests/parse-connection-spec-selftests.c: Use C++ exception
12151 * unittests/cli-utils-selftests.c: Use C++ exception handling.
12152 * typeprint.c: Use C++ exception handling.
12153 * tui/tui.c: Use C++ exception handling.
12154 * tracefile-tfile.c: Use C++ exception handling.
12155 * top.c: Use C++ exception handling.
12156 * thread.c: Use C++ exception handling.
12157 * target.c: Use C++ exception handling.
12158 * symmisc.c: Use C++ exception handling.
12159 * symfile-mem.c: Use C++ exception handling.
12160 * stack.c: Use C++ exception handling.
12161 * sparc64-linux-tdep.c: Use C++ exception handling.
12162 * solib.c: Use C++ exception handling.
12163 * solib-svr4.c: Use C++ exception handling.
12164 * solib-spu.c: Use C++ exception handling.
12165 * solib-frv.c: Use C++ exception handling.
12166 * solib-dsbt.c: Use C++ exception handling.
12167 * selftest-arch.c: Use C++ exception handling.
12168 * s390-tdep.c: Use C++ exception handling.
12169 * rust-lang.c: Use C++ exception handling.
12170 * rust-exp.y: Use C++ exception handling.
12171 * rs6000-tdep.c: Use C++ exception handling.
12172 * rs6000-aix-tdep.c: Use C++ exception handling.
12173 * riscv-tdep.c: Use C++ exception handling.
12174 * remote.c: Use C++ exception handling.
12175 * remote-fileio.c: Use C++ exception handling.
12176 * record-full.c: Use C++ exception handling.
12177 * record-btrace.c: Use C++ exception handling.
12178 * python/python.c: Use C++ exception handling.
12179 * python/py-value.c: Use C++ exception handling.
12180 * python/py-utils.c: Use C++ exception handling.
12181 * python/py-unwind.c: Use C++ exception handling.
12182 * python/py-type.c: Use C++ exception handling.
12183 * python/py-symbol.c: Use C++ exception handling.
12184 * python/py-record.c: Use C++ exception handling.
12185 * python/py-record-btrace.c: Use C++ exception handling.
12186 * python/py-progspace.c: Use C++ exception handling.
12187 * python/py-prettyprint.c: Use C++ exception handling.
12188 * python/py-param.c: Use C++ exception handling.
12189 * python/py-objfile.c: Use C++ exception handling.
12190 * python/py-linetable.c: Use C++ exception handling.
12191 * python/py-lazy-string.c: Use C++ exception handling.
12192 * python/py-infthread.c: Use C++ exception handling.
12193 * python/py-inferior.c: Use C++ exception handling.
12194 * python/py-gdb-readline.c: Use C++ exception handling.
12195 * python/py-framefilter.c: Use C++ exception handling.
12196 * python/py-frame.c: Use C++ exception handling.
12197 * python/py-finishbreakpoint.c: Use C++ exception handling.
12198 * python/py-cmd.c: Use C++ exception handling.
12199 * python/py-breakpoint.c: Use C++ exception handling.
12200 * python/py-arch.c: Use C++ exception handling.
12201 * printcmd.c: Use C++ exception handling.
12202 * ppc-linux-tdep.c: Use C++ exception handling.
12203 * parse.c: Use C++ exception handling.
12204 * p-valprint.c: Use C++ exception handling.
12205 * objc-lang.c: Use C++ exception handling.
12206 * mi/mi-main.c: Use C++ exception handling.
12207 * mi/mi-interp.c: Use C++ exception handling.
12208 * mi/mi-cmd-stack.c: Use C++ exception handling.
12209 * mi/mi-cmd-break.c: Use C++ exception handling.
12210 * main.c: Use C++ exception handling.
12211 * linux-thread-db.c: Use C++ exception handling.
12212 * linux-tdep.c: Use C++ exception handling.
12213 * linux-nat.c: Use C++ exception handling.
12214 * linux-fork.c: Use C++ exception handling.
12215 * linespec.c: Use C++ exception handling.
12216 * language.c: Use C++ exception handling.
12217 * jit.c: Use C++ exception handling.
12218 * infrun.c: Use C++ exception handling.
12219 * infcmd.c: Use C++ exception handling.
12220 * infcall.c: Use C++ exception handling.
12221 * inf-loop.c: Use C++ exception handling.
12222 * i386-tdep.c: Use C++ exception handling.
12223 * i386-linux-tdep.c: Use C++ exception handling.
12224 * guile/scm-value.c: Use C++ exception handling.
12225 * guile/scm-type.c: Use C++ exception handling.
12226 * guile/scm-symtab.c: Use C++ exception handling.
12227 * guile/scm-symbol.c: Use C++ exception handling.
12228 * guile/scm-pretty-print.c: Use C++ exception handling.
12229 * guile/scm-ports.c: Use C++ exception handling.
12230 * guile/scm-param.c: Use C++ exception handling.
12231 * guile/scm-math.c: Use C++ exception handling.
12232 * guile/scm-lazy-string.c: Use C++ exception handling.
12233 * guile/scm-frame.c: Use C++ exception handling.
12234 * guile/scm-disasm.c: Use C++ exception handling.
12235 * guile/scm-cmd.c: Use C++ exception handling.
12236 * guile/scm-breakpoint.c: Use C++ exception handling.
12237 * guile/scm-block.c: Use C++ exception handling.
12238 * guile/guile-internal.h: Use C++ exception handling.
12239 * gnu-v3-abi.c: Use C++ exception handling.
12240 * gdbtypes.c: Use C++ exception handling.
12241 * frame.c: Use C++ exception handling.
12242 * frame-unwind.c: Use C++ exception handling.
12243 * fbsd-tdep.c: Use C++ exception handling.
12244 * f-valprint.c: Use C++ exception handling.
12245 * exec.c: Use C++ exception handling.
12246 * event-top.c: Use C++ exception handling.
12247 * event-loop.c: Use C++ exception handling.
12248 * eval.c: Use C++ exception handling.
12249 * dwarf2read.c: Use C++ exception handling.
12250 * dwarf2loc.c: Use C++ exception handling.
12251 * dwarf2-frame.c: Use C++ exception handling.
12252 * dwarf2-frame-tailcall.c: Use C++ exception handling.
12253 * dwarf-index-write.c: Use C++ exception handling.
12254 * dwarf-index-cache.c: Use C++ exception handling.
12255 * dtrace-probe.c: Use C++ exception handling.
12256 * disasm-selftests.c: Use C++ exception handling.
12257 * darwin-nat.c: Use C++ exception handling.
12258 * cp-valprint.c: Use C++ exception handling.
12259 * cp-support.c: Use C++ exception handling.
12260 * cp-abi.c: Use C++ exception handling.
12261 * corelow.c: Use C++ exception handling.
12262 * completer.c: Use C++ exception handling.
12263 * compile/compile-object-run.c: Use C++ exception handling.
12264 * compile/compile-object-load.c: Use C++ exception handling.
12265 * compile/compile-cplus-symbols.c: Use C++ exception handling.
12266 * compile/compile-c-symbols.c: Use C++ exception handling.
12267 * common/selftest.c: Use C++ exception handling.
12268 * common/new-op.c: Use C++ exception handling.
12269 * cli/cli-script.c: Use C++ exception handling.
12270 * cli/cli-interp.c: Use C++ exception handling.
12271 * cli/cli-cmds.c: Use C++ exception handling.
12272 * c-varobj.c: Use C++ exception handling.
12273 * btrace.c: Use C++ exception handling.
12274 * breakpoint.c: Use C++ exception handling.
12275 * break-catch-throw.c: Use C++ exception handling.
12276 * arch-utils.c: Use C++ exception handling.
12277 * amd64-tdep.c: Use C++ exception handling.
12278 * ada-valprint.c: Use C++ exception handling.
12279 * ada-typeprint.c: Use C++ exception handling.
12280 * ada-lang.c: Use C++ exception handling.
12281 * aarch64-tdep.c: Use C++ exception handling.
12283 2019-04-08 Tom Tromey <tom@tromey.com>
12285 * xml-support.c (gdb_xml_parser::parse): Update.
12286 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
12287 * value.c (show_convenience): Update.
12288 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
12289 (test_parse_flags_qcs): Update.
12290 * thread.c (thr_try_catch_cmd): Update.
12291 * target.c (target_translate_tls_address): Update.
12292 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
12293 (info_frame_command_core, frame_apply_command_count): Update.
12294 * rust-exp.y (rust_lex_exception_test): Update.
12295 * riscv-tdep.c (riscv_print_one_register_info): Update.
12296 * remote.c (remote_target::enable_btrace): Update.
12297 * record-btrace.c (record_btrace_enable_warn): Update.
12298 * python/py-utils.c (gdbpy_convert_exception): Update.
12299 * printcmd.c (do_one_display, print_variable_and_value): Update.
12300 * mi/mi-main.c (mi_print_exception): Update.
12301 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
12302 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
12303 * linux-nat.c (linux_nat_target::attach): Update.
12304 * linux-fork.c (class scoped_switch_fork_info): Update.
12305 * infrun.c (displaced_step_prepare): Update.
12306 * infcall.c (call_function_by_hand_dummy): Update.
12307 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
12308 * gnu-v3-abi.c (print_one_vtable): Update.
12309 * frame.c (get_prev_frame_always): Update.
12310 * f-valprint.c (info_common_command_for_block): Update.
12311 * exec.c (try_open_exec_file): Update.
12312 * exceptions.c (print_exception, exception_print)
12313 (exception_fprintf, exception_print_same): Update.
12314 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
12315 * dwarf-index-cache.c (index_cache::store)
12316 (index_cache::lookup_gdb_index): Update.
12317 * darwin-nat.c (maybe_cache_shell): Update.
12318 * cp-valprint.c (cp_print_value_fields): Update.
12319 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
12320 (gcc_cplus_symbol_address): Update.
12321 * compile/compile-c-symbols.c (gcc_convert_symbol)
12322 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
12323 * common/selftest.c: Update.
12324 * common/common-exceptions.h (struct gdb_exception) <message>: Now
12326 (exception_try_scope_entry, exception_try_scope_exit): Don't
12328 (struct exception_try_scope): Remove.
12329 (TRY): Don't use exception_try_scope.
12330 (struct gdb_exception): Add constructor, operator=.
12331 <what>: New method.
12332 (struct gdb_exception_RETURN_MASK_ALL)
12333 (struct gdb_exception_RETURN_MASK_ERROR)
12334 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
12335 (struct gdb_quit_bad_alloc): Update.
12336 * common/common-exceptions.c (exception_none): Change
12338 (struct catcher) <state, exception>: Initialize inline.
12339 <prev>: Remove member.
12340 (current_catcher): Remove.
12341 (catchers): New global.
12342 (exceptions_state_mc_init): Simplify.
12343 (catcher_pop): Remove.
12344 (exceptions_state_mc, exceptions_state_mc_catch): Update.
12345 (try_scope_depth, exception_try_scope_entry)
12346 (exception_try_scope_exit): Remove.
12347 (throw_exception_sjlj): Update.
12348 (exception_messages, exception_messages_size): Remove.
12349 (throw_it): Simplify.
12350 (gdb_exception_sliced_copy): Remove.
12351 (throw_exception_cxx): Update.
12352 * cli/cli-script.c (script_from_file): Update.
12353 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
12355 * ada-valprint.c (ada_val_print): Update.
12356 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
12357 (create_excep_cond_exprs): Update.
12359 2019-04-08 Tom Tromey <tom@tromey.com>
12361 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
12362 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
12363 (TRY, CATCH, END_CATCH): Remove some definitions.
12364 * common/common-exceptions.c: Don't use GDB_XCPT.
12365 (catcher_list_size): Remove.
12366 (throw_exception, throw_it): Simplify.
12368 2019-04-05 Tom Tromey <tom@tromey.com>
12370 Revert the header-sorting patch.
12371 * ft32-tdep.c: Revert.
12372 * frv-tdep.c: Revert.
12373 * frv-linux-tdep.c: Revert.
12375 * frame-unwind.c: Revert.
12376 * frame-base.c: Revert.
12377 * fork-child.c: Revert.
12378 * findvar.c: Revert.
12379 * findcmd.c: Revert.
12380 * filesystem.c: Revert.
12381 * filename-seen-cache.h: Revert.
12382 * filename-seen-cache.c: Revert.
12383 * fbsd-tdep.c: Revert.
12384 * fbsd-nat.h: Revert.
12385 * fbsd-nat.c: Revert.
12386 * f-valprint.c: Revert.
12387 * f-typeprint.c: Revert.
12388 * f-lang.c: Revert.
12389 * extension.h: Revert.
12390 * extension.c: Revert.
12391 * extension-priv.h: Revert.
12392 * expprint.c: Revert.
12395 * exceptions.c: Revert.
12396 * event-top.c: Revert.
12397 * event-loop.c: Revert.
12399 * elfread.c: Revert.
12400 * dwarf2read.h: Revert.
12401 * dwarf2read.c: Revert.
12402 * dwarf2loc.c: Revert.
12403 * dwarf2expr.h: Revert.
12404 * dwarf2expr.c: Revert.
12405 * dwarf2-frame.c: Revert.
12406 * dwarf2-frame-tailcall.c: Revert.
12407 * dwarf-index-write.h: Revert.
12408 * dwarf-index-write.c: Revert.
12409 * dwarf-index-common.c: Revert.
12410 * dwarf-index-cache.h: Revert.
12411 * dwarf-index-cache.c: Revert.
12412 * dummy-frame.c: Revert.
12413 * dtrace-probe.c: Revert.
12414 * disasm.h: Revert.
12415 * disasm.c: Revert.
12416 * disasm-selftests.c: Revert.
12417 * dictionary.c: Revert.
12418 * dicos-tdep.c: Revert.
12419 * demangle.c: Revert.
12420 * dcache.h: Revert.
12421 * dcache.c: Revert.
12422 * darwin-nat.h: Revert.
12423 * darwin-nat.c: Revert.
12424 * darwin-nat-info.c: Revert.
12425 * d-valprint.c: Revert.
12426 * d-namespace.c: Revert.
12427 * d-lang.c: Revert.
12429 * csky-tdep.c: Revert.
12430 * csky-linux-tdep.c: Revert.
12431 * cris-tdep.c: Revert.
12432 * cris-linux-tdep.c: Revert.
12433 * cp-valprint.c: Revert.
12434 * cp-support.c: Revert.
12435 * cp-namespace.c: Revert.
12436 * cp-abi.c: Revert.
12437 * corelow.c: Revert.
12438 * corefile.c: Revert.
12439 * continuations.c: Revert.
12440 * completer.h: Revert.
12441 * completer.c: Revert.
12442 * complaints.c: Revert.
12443 * coffread.c: Revert.
12444 * coff-pe-read.c: Revert.
12445 * cli-out.h: Revert.
12446 * cli-out.c: Revert.
12447 * charset.c: Revert.
12448 * c-varobj.c: Revert.
12449 * c-valprint.c: Revert.
12450 * c-typeprint.c: Revert.
12451 * c-lang.c: Revert.
12452 * buildsym.c: Revert.
12453 * buildsym-legacy.c: Revert.
12454 * build-id.h: Revert.
12455 * build-id.c: Revert.
12456 * btrace.c: Revert.
12457 * bsd-uthread.c: Revert.
12458 * breakpoint.h: Revert.
12459 * breakpoint.c: Revert.
12460 * break-catch-throw.c: Revert.
12461 * break-catch-syscall.c: Revert.
12462 * break-catch-sig.c: Revert.
12463 * blockframe.c: Revert.
12465 * bfin-tdep.c: Revert.
12466 * bfin-linux-tdep.c: Revert.
12467 * bfd-target.c: Revert.
12468 * bcache.c: Revert.
12469 * ax-general.c: Revert.
12470 * ax-gdb.h: Revert.
12471 * ax-gdb.c: Revert.
12472 * avr-tdep.c: Revert.
12474 * auto-load.c: Revert.
12475 * arm-wince-tdep.c: Revert.
12476 * arm-tdep.c: Revert.
12477 * arm-symbian-tdep.c: Revert.
12478 * arm-pikeos-tdep.c: Revert.
12479 * arm-obsd-tdep.c: Revert.
12480 * arm-nbsd-tdep.c: Revert.
12481 * arm-nbsd-nat.c: Revert.
12482 * arm-linux-tdep.c: Revert.
12483 * arm-linux-nat.c: Revert.
12484 * arm-fbsd-tdep.c: Revert.
12485 * arm-fbsd-nat.c: Revert.
12486 * arm-bsd-tdep.c: Revert.
12487 * arch-utils.c: Revert.
12488 * arc-tdep.c: Revert.
12489 * arc-newlib-tdep.c: Revert.
12490 * annotate.h: Revert.
12491 * annotate.c: Revert.
12492 * amd64-windows-tdep.c: Revert.
12493 * amd64-windows-nat.c: Revert.
12494 * amd64-tdep.c: Revert.
12495 * amd64-sol2-tdep.c: Revert.
12496 * amd64-obsd-tdep.c: Revert.
12497 * amd64-obsd-nat.c: Revert.
12498 * amd64-nbsd-tdep.c: Revert.
12499 * amd64-nbsd-nat.c: Revert.
12500 * amd64-nat.c: Revert.
12501 * amd64-linux-tdep.c: Revert.
12502 * amd64-linux-nat.c: Revert.
12503 * amd64-fbsd-tdep.c: Revert.
12504 * amd64-fbsd-nat.c: Revert.
12505 * amd64-dicos-tdep.c: Revert.
12506 * amd64-darwin-tdep.c: Revert.
12507 * amd64-bsd-nat.c: Revert.
12508 * alpha-tdep.c: Revert.
12509 * alpha-obsd-tdep.c: Revert.
12510 * alpha-nbsd-tdep.c: Revert.
12511 * alpha-mdebug-tdep.c: Revert.
12512 * alpha-linux-tdep.c: Revert.
12513 * alpha-linux-nat.c: Revert.
12514 * alpha-bsd-tdep.c: Revert.
12515 * alpha-bsd-nat.c: Revert.
12516 * aix-thread.c: Revert.
12518 * addrmap.c: Revert.
12519 * ada-varobj.c: Revert.
12520 * ada-valprint.c: Revert.
12521 * ada-typeprint.c: Revert.
12522 * ada-tasks.c: Revert.
12523 * ada-lang.c: Revert.
12524 * aarch64-tdep.c: Revert.
12525 * aarch64-ravenscar-thread.c: Revert.
12526 * aarch64-newlib-tdep.c: Revert.
12527 * aarch64-linux-tdep.c: Revert.
12528 * aarch64-linux-nat.c: Revert.
12529 * aarch64-fbsd-tdep.c: Revert.
12530 * aarch64-fbsd-nat.c: Revert.
12531 * aarch32-linux-nat.c: Revert.
12533 2019-04-05 Tom Tromey <tom@tromey.com>
12535 * ft32-tdep.c: Sort headers.
12536 * frv-tdep.c: Sort headers.
12537 * frv-linux-tdep.c: Sort headers.
12538 * frame.c: Sort headers.
12539 * frame-unwind.c: Sort headers.
12540 * frame-base.c: Sort headers.
12541 * fork-child.c: Sort headers.
12542 * findvar.c: Sort headers.
12543 * findcmd.c: Sort headers.
12544 * filesystem.c: Sort headers.
12545 * filename-seen-cache.h: Sort headers.
12546 * filename-seen-cache.c: Sort headers.
12547 * fbsd-tdep.c: Sort headers.
12548 * fbsd-nat.h: Sort headers.
12549 * fbsd-nat.c: Sort headers.
12550 * f-valprint.c: Sort headers.
12551 * f-typeprint.c: Sort headers.
12552 * f-lang.c: Sort headers.
12553 * extension.h: Sort headers.
12554 * extension.c: Sort headers.
12555 * extension-priv.h: Sort headers.
12556 * expprint.c: Sort headers.
12557 * exec.h: Sort headers.
12558 * exec.c: Sort headers.
12559 * exceptions.c: Sort headers.
12560 * event-top.c: Sort headers.
12561 * event-loop.c: Sort headers.
12562 * eval.c: Sort headers.
12563 * elfread.c: Sort headers.
12564 * dwarf2read.h: Sort headers.
12565 * dwarf2read.c: Sort headers.
12566 * dwarf2loc.c: Sort headers.
12567 * dwarf2expr.h: Sort headers.
12568 * dwarf2expr.c: Sort headers.
12569 * dwarf2-frame.c: Sort headers.
12570 * dwarf2-frame-tailcall.c: Sort headers.
12571 * dwarf-index-write.h: Sort headers.
12572 * dwarf-index-write.c: Sort headers.
12573 * dwarf-index-common.c: Sort headers.
12574 * dwarf-index-cache.h: Sort headers.
12575 * dwarf-index-cache.c: Sort headers.
12576 * dummy-frame.c: Sort headers.
12577 * dtrace-probe.c: Sort headers.
12578 * disasm.h: Sort headers.
12579 * disasm.c: Sort headers.
12580 * disasm-selftests.c: Sort headers.
12581 * dictionary.c: Sort headers.
12582 * dicos-tdep.c: Sort headers.
12583 * demangle.c: Sort headers.
12584 * dcache.h: Sort headers.
12585 * dcache.c: Sort headers.
12586 * darwin-nat.h: Sort headers.
12587 * darwin-nat.c: Sort headers.
12588 * darwin-nat-info.c: Sort headers.
12589 * d-valprint.c: Sort headers.
12590 * d-namespace.c: Sort headers.
12591 * d-lang.c: Sort headers.
12592 * ctf.c: Sort headers.
12593 * csky-tdep.c: Sort headers.
12594 * csky-linux-tdep.c: Sort headers.
12595 * cris-tdep.c: Sort headers.
12596 * cris-linux-tdep.c: Sort headers.
12597 * cp-valprint.c: Sort headers.
12598 * cp-support.c: Sort headers.
12599 * cp-namespace.c: Sort headers.
12600 * cp-abi.c: Sort headers.
12601 * corelow.c: Sort headers.
12602 * corefile.c: Sort headers.
12603 * continuations.c: Sort headers.
12604 * completer.h: Sort headers.
12605 * completer.c: Sort headers.
12606 * complaints.c: Sort headers.
12607 * coffread.c: Sort headers.
12608 * coff-pe-read.c: Sort headers.
12609 * cli-out.h: Sort headers.
12610 * cli-out.c: Sort headers.
12611 * charset.c: Sort headers.
12612 * c-varobj.c: Sort headers.
12613 * c-valprint.c: Sort headers.
12614 * c-typeprint.c: Sort headers.
12615 * c-lang.c: Sort headers.
12616 * buildsym.c: Sort headers.
12617 * buildsym-legacy.c: Sort headers.
12618 * build-id.h: Sort headers.
12619 * build-id.c: Sort headers.
12620 * btrace.c: Sort headers.
12621 * bsd-uthread.c: Sort headers.
12622 * breakpoint.h: Sort headers.
12623 * breakpoint.c: Sort headers.
12624 * break-catch-throw.c: Sort headers.
12625 * break-catch-syscall.c: Sort headers.
12626 * break-catch-sig.c: Sort headers.
12627 * blockframe.c: Sort headers.
12628 * block.c: Sort headers.
12629 * bfin-tdep.c: Sort headers.
12630 * bfin-linux-tdep.c: Sort headers.
12631 * bfd-target.c: Sort headers.
12632 * bcache.c: Sort headers.
12633 * ax-general.c: Sort headers.
12634 * ax-gdb.h: Sort headers.
12635 * ax-gdb.c: Sort headers.
12636 * avr-tdep.c: Sort headers.
12637 * auxv.c: Sort headers.
12638 * auto-load.c: Sort headers.
12639 * arm-wince-tdep.c: Sort headers.
12640 * arm-tdep.c: Sort headers.
12641 * arm-symbian-tdep.c: Sort headers.
12642 * arm-pikeos-tdep.c: Sort headers.
12643 * arm-obsd-tdep.c: Sort headers.
12644 * arm-nbsd-tdep.c: Sort headers.
12645 * arm-nbsd-nat.c: Sort headers.
12646 * arm-linux-tdep.c: Sort headers.
12647 * arm-linux-nat.c: Sort headers.
12648 * arm-fbsd-tdep.c: Sort headers.
12649 * arm-fbsd-nat.c: Sort headers.
12650 * arm-bsd-tdep.c: Sort headers.
12651 * arch-utils.c: Sort headers.
12652 * arc-tdep.c: Sort headers.
12653 * arc-newlib-tdep.c: Sort headers.
12654 * annotate.h: Sort headers.
12655 * annotate.c: Sort headers.
12656 * amd64-windows-tdep.c: Sort headers.
12657 * amd64-windows-nat.c: Sort headers.
12658 * amd64-tdep.c: Sort headers.
12659 * amd64-sol2-tdep.c: Sort headers.
12660 * amd64-obsd-tdep.c: Sort headers.
12661 * amd64-obsd-nat.c: Sort headers.
12662 * amd64-nbsd-tdep.c: Sort headers.
12663 * amd64-nbsd-nat.c: Sort headers.
12664 * amd64-nat.c: Sort headers.
12665 * amd64-linux-tdep.c: Sort headers.
12666 * amd64-linux-nat.c: Sort headers.
12667 * amd64-fbsd-tdep.c: Sort headers.
12668 * amd64-fbsd-nat.c: Sort headers.
12669 * amd64-dicos-tdep.c: Sort headers.
12670 * amd64-darwin-tdep.c: Sort headers.
12671 * amd64-bsd-nat.c: Sort headers.
12672 * alpha-tdep.c: Sort headers.
12673 * alpha-obsd-tdep.c: Sort headers.
12674 * alpha-nbsd-tdep.c: Sort headers.
12675 * alpha-mdebug-tdep.c: Sort headers.
12676 * alpha-linux-tdep.c: Sort headers.
12677 * alpha-linux-nat.c: Sort headers.
12678 * alpha-bsd-tdep.c: Sort headers.
12679 * alpha-bsd-nat.c: Sort headers.
12680 * aix-thread.c: Sort headers.
12681 * agent.c: Sort headers.
12682 * addrmap.c: Sort headers.
12683 * ada-varobj.c: Sort headers.
12684 * ada-valprint.c: Sort headers.
12685 * ada-typeprint.c: Sort headers.
12686 * ada-tasks.c: Sort headers.
12687 * ada-lang.c: Sort headers.
12688 * aarch64-tdep.c: Sort headers.
12689 * aarch64-ravenscar-thread.c: Sort headers.
12690 * aarch64-newlib-tdep.c: Sort headers.
12691 * aarch64-linux-tdep.c: Sort headers.
12692 * aarch64-linux-nat.c: Sort headers.
12693 * aarch64-fbsd-tdep.c: Sort headers.
12694 * aarch64-fbsd-nat.c: Sort headers.
12695 * aarch32-linux-nat.c: Sort headers.
12697 2019-04-04 Tom Tromey <tom@tromey.com>
12699 * varobj.c (varobj_create): Update.
12700 * rust-exp.y (struct rust_parser) <update_innermost_block,
12701 lookup_symbol>: New methods.
12702 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
12704 (rust_parser::rust_lookup_type)
12705 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
12706 * printcmd.c (display_command, do_one_display): Update.
12707 * parser-defs.h (struct parser_state) <parser_state>: Add
12708 "tracker" parameter.
12709 (block_tracker): New member.
12710 (class innermost_block_tracker) <innermost_block_tracker>: Add
12712 <reset>: Remove method.
12713 (innermost_block): Don't declare.
12714 (null_post_parser): Update.
12715 * parse.c (innermost_block): Remove global.
12716 (write_dollar_variable): Update.
12717 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
12718 Remove "tracker_types" parameter.
12719 (parse_expression): Add "tracker" parameter.
12720 (parse_expression_for_completion): Update.
12721 (null_post_parser): Add "tracker" parameter.
12722 * p-exp.y: Update rules.
12723 * m2-exp.y: Update rules.
12724 * language.h (struct language_defn) <la_post_parser>: Add
12725 "tracker" parameter.
12726 * go-exp.y: Update rules.
12727 * f-exp.y: Update rules.
12728 * expression.h (parse_expression, parse_exp_1): Add "tracker"
12730 * d-exp.y: Update rules.
12731 * c-exp.y: Update rules.
12732 * breakpoint.c (set_breakpoint_condition): Create an
12733 innermost_block_tracker.
12734 (watch_command_1): Likewise.
12735 * ada-lang.c (resolve): Add "tracker" parameter.
12736 (resolve_subexp): Likewise.
12737 * ada-exp.y (write_var_from_sym): Update.
12739 2019-04-04 Tom Tromey <tom@tromey.com>
12741 * type-stack.h: New file.
12742 * type-stack.c: New file.
12743 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
12745 (insert_into_type_stack, insert_type, push_type, push_type_int)
12746 (insert_type_address_space, pop_type, pop_type_int)
12747 (pop_typelist, pop_type_stack, append_type_stack)
12748 (push_type_stack, get_type_stack, push_typelist)
12749 (follow_type_instance_flags, follow_types): Don't declare.
12750 * parse.c (type_stack): Remove global.
12751 (parse_exp_in_context): Update.
12752 (insert_into_type_stack, insert_type, push_type, push_type_int)
12753 (insert_type_address_space, pop_type, pop_type_int)
12754 (pop_typelist, pop_type_stack, append_type_stack)
12755 (push_type_stack, get_type_stack, push_typelist)
12756 (follow_type_instance_flags, follow_types): Remove (moved to
12758 * f-exp.y (type_stack): New global.
12760 (push_kind_type, f_parse): Update.
12761 * d-exp.y (type_stack): New global.
12764 * c-exp.y (struct c_parse_state) <type_stack>: New member.
12766 * Makefile.in (COMMON_SFILES): Add type-stack.c.
12767 (HFILES_NO_SRCDIR): Add type-stack.h.
12769 2019-04-04 Tom Tromey <tom@tromey.com>
12771 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
12772 (rust_parser::convert_ast_to_expression, rust_parse)
12773 (rust_lex_test_completion, rust_lex_tests): Update.
12774 * parser-defs.h (struct expr_completion_state): New.
12775 (struct parser_state) <parser_state>: Add completion parameter.
12776 <mark_struct_expression, mark_completion_tag>: New methods.
12777 <parse_completion, m_completion_state>: New members.
12778 (prefixify_expression, null_post_parser): Update.
12779 (mark_struct_expression, mark_completion_tag): Don't declare.
12780 * parse.c (parse_completion, expout_last_struct)
12781 (expout_tag_completion_type, expout_completion_name): Remove
12783 (parser_state::mark_struct_expression)
12784 (parser_state::mark_completion_tag): Now methods.
12785 (prefixify_expression): Add last_struct parameter.
12786 (prefixify_subexp): Likewise.
12787 (parse_exp_1): Update.
12788 (parse_exp_in_context): Add cstate parameter. Update.
12789 (parse_expression_for_completion): Create an
12790 expr_completion_state.
12791 (null_post_parser): Add "completion" parameter.
12792 * p-exp.y: Update rules.
12794 * language.h (struct language_defn) <la_post_parser>: Add
12795 "completing" parameter.
12796 * go-exp.y: Update rules.
12797 (lex_one_token): Update.
12798 * expression.h (parse_completion): Don't declare.
12799 * d-exp.y: Update rules.
12800 (lex_one_token): Update rules.
12801 * c-exp.y: Update rules.
12802 (lex_one_token): Update.
12803 * ada-lang.c (resolve): Add "parse_completion" parameter.
12804 (resolve_subexp): Likewise.
12805 (ada_resolve_function): Likewise.
12807 2019-04-04 Tom Tromey <tom@tromey.com>
12809 * parser-defs.h (struct parser_state) <start_arglist,
12810 end_arglist>: New methods.
12811 <arglist_len, m_funcall_chain>: New members.
12812 (arglist_len, start_arglist, end_arglist): Don't declare.
12813 * parse.c (arglist_len, funcall_chain): Remove global.
12814 (start_arglist, end_arglist): Remove functions.
12815 (parse_exp_in_context): Update.
12816 * p-exp.y: Update rules.
12817 * m2-exp.y: Update rules.
12818 * go-exp.y: Update rules.
12819 * f-exp.y: Update rules.
12820 * d-exp.y: Update rules.
12821 * c-exp.y: Update rules.
12823 2019-04-04 Tom Tromey <tom@tromey.com>
12825 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
12826 lex_operator, push_back>: New methods.
12828 (rust_parser::lex_hex, lex_escape): Rename and update.
12829 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
12830 (rust_parser::lex_operator): Rename and update.
12831 (rust_parser::lex_number, rustyylex, rustyyerror)
12832 (rust_lex_test_init, rust_lex_test_sequence)
12833 (rust_lex_test_push_back, rust_lex_tests): Update.
12834 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
12836 <lexptr, prev_lexptr>: New members.
12837 (lexptr, prev_lexptr): Don't declare.
12838 * parse.c (lexptr, prev_lexptr): Remove globals.
12839 (parse_exp_in_context): Update.
12840 * p-exp.y (yylex, yyerror): Update.
12841 * m2-exp.y (parse_number, yylex, yyerror): Update.
12842 * go-exp.y (lex_one_token, yyerror): Update.
12843 * f-exp.y (match_string_literal, yylex, yyerror): Update.
12844 * d-exp.y (lex_one_token, yyerror): Update.
12845 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
12846 (lex_one_token, yyerror): Update.
12847 * ada-lex.l (YY_INPUT): Update.
12848 (rewind_to_char): Update.
12849 * ada-exp.y (yyerror): Update.
12851 2019-04-04 Tom Tromey <tom@tromey.com>
12853 * rust-exp.y (rustyylex, rust_lex_tests): Update.
12854 * parser-defs.h (struct parser_state) <parser_state>: Add new
12856 <comma_terminates>: New member.
12857 (comma_terminates): Don't declare global.
12858 * parse.c (comma_terminates): Remove global.
12859 (parse_exp_in_context): Update.
12860 * p-exp.y (yylex): Update.
12861 * m2-exp.y (yylex): Update.
12862 * go-exp.y (lex_one_token): Update.
12863 * f-exp.y (yylex): Update.
12864 * d-exp.y (lex_one_token): Update.
12865 * c-exp.y (lex_one_token): Update.
12866 * ada-lex.l: Update.
12868 2019-04-04 Tom Tromey <tom@tromey.com>
12870 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
12871 (rustyylex, rust_lex_test_init, rust_lex_test_one)
12872 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
12873 * parser-defs.h (paren_depth): Don't declare.
12874 * parse.c (paren_depth): Remove global.
12875 (parse_exp_in_context): Update.
12876 * p-exp.y (paren_depth): New global.
12877 (pascal_parse): Initialize it.
12878 * m2-exp.y (paren_depth): New global.
12879 (m2_parse): Initialize it.
12880 * go-exp.y (paren_depth): New global.
12881 (go_parse): Initialize it.
12882 * f-exp.y (paren_depth): New global.
12883 (f_parse): Initialize it.
12884 * d-exp.y (paren_depth): New global.
12885 (d_parse): Initialize it.
12886 * c-exp.y (paren_depth): New global.
12887 (c_parse): Initialize it.
12888 * ada-lex.l (paren_depth): New global.
12889 (lexer_init): Initialize it.
12891 2019-04-04 Tom Tromey <tom@tromey.com>
12893 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
12894 (rust_parser::convert_ast_to_type)
12895 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
12896 * parser-defs.h (struct parser_state) <parser_state>: Add
12897 parameters. Initialize new members.
12898 <expression_context_block, expression_context_pc>: New members.
12899 * parse.c (expression_context_block, expression_context_pc):
12901 (parse_exp_in_context): Update.
12902 * p-exp.y: Update all rules.
12904 * m2-exp.y: Update all rules.
12906 * go-exp.y (yylex): Update.
12907 * f-exp.y (yylex): Update.
12908 * d-exp.y: Update all rules.
12910 * c-exp.y: Update all rules.
12911 (lex_one_token, classify_name, yylex, c_parse): Update.
12912 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
12914 2019-04-04 Tom Tromey <tom@tromey.com>
12916 * gdbarch.h, gdbarch.c: Rebuild.
12917 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
12919 (struct stap_parse_info): Replace "parser_state" with
12921 * parser-defs.h (struct expr_builder): Rename from "parser_state".
12922 (parser_state): New class.
12923 * parse.c (expr_builder): Rename.
12924 (expr_builder::release): Rename.
12925 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
12926 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
12927 (write_exp_elt_longcst, write_exp_elt_floatcst)
12928 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
12929 (write_exp_string_vector, write_exp_bitstring)
12930 (write_exp_msymbol, mark_struct_expression)
12931 (write_dollar_variable)
12932 (insert_type_address_space, increase_expout_size): Replace
12933 "parser_state" with "expr_builder".
12934 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
12935 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
12936 "parser_state" with "expr_builder".
12938 2019-04-04 Tom Tromey <tom@tromey.com>
12940 * rust-exp.y: Replace "parse_language" with method call.
12942 (yylex): Replace "parse_language" with method call.
12944 (yylex): Replace "parse_language" with method call.
12945 * go-exp.y (classify_name): Replace "parse_language" with method
12947 * f-exp.y (yylex): Replace "parse_language" with method call.
12948 * d-exp.y (lex_one_token): Replace "parse_language" with method
12951 (lex_one_token, classify_name, yylex): Replace "parse_language"
12953 * ada-exp.y (find_primitive_type, type_char)
12954 (type_system_address): Replace "parse_language" with method call.
12956 2019-04-04 Tom Tromey <tom@tromey.com>
12958 * rust-exp.y: Replace "parse_gdbarch" with method call.
12959 * parse.c (write_dollar_variable, insert_type_address_space):
12960 Replace "parse_gdbarch" with method call.
12961 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
12963 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
12965 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
12966 "parse_gdbarch" with method call.
12967 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
12969 * f-exp.y (parse_type, parse_f_type, yylex): Replace
12970 "parse_gdbarch" with method call.
12971 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
12972 "parse_gdbarch" with method call.
12973 * c-exp.y (parse_type, parse_number, classify_name): Replace
12974 "parse_gdbarch" with method call.
12975 * ada-lex.l: Replace "parse_gdbarch" with method call.
12976 * ada-exp.y (parse_type, find_primitive_type, type_char)
12977 (type_system_address): Replace "parse_gdbarch" with method call.
12979 2019-04-04 Tom Tromey <tom@tromey.com>
12981 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
12982 * stap-probe.c (stap_parse_argument): Update.
12983 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
12984 initial_size parameter.
12985 * rust-exp.y (rust_lex_tests): Update.
12986 * parse.c (parser_state): Update.
12987 (parse_exp_in_context): Update.
12988 * parser-defs.h (struct parser_state) <parser_state>: Remove
12989 "initial_size" parameter.
12991 2019-04-04 Tom Tromey <tom@tromey.com>
12993 * parser-defs.h (increase_expout_size): Don't declare.
12994 * parse.c (increase_expout_size): Now static.
12996 2019-04-04 Thomas Schwinge <thomas@codesourcery.com>
12998 * gnu-nat.c (gnu_nat_target::wait): Fix
12999 target_waitstatus_to_string call.
13001 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
13003 * eval.c (evaluate_subexp_standard): Handle internal functions
13004 during Fortran function call handling.
13006 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
13008 * NEWS: Mention new internal functions.
13009 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
13010 (read_base_type): Use dwarf2_init_complex_target_type.
13011 * value.c (creal_internal_fn): New function.
13012 (cimag_internal_fn): New function.
13013 (_initialize_values): Register new internal functions.
13015 2019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13017 * infrun.c (stop_all_threads): If debug_infrun, always
13018 trace the wait status after wait_one, using
13019 target_waitstatus_to_string and target_pid_to_str.
13020 (handle_inferior_event): Replace various trace of
13021 wait status kind by a single trace.
13022 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
13023 wait status kind image by target_waitstatus_to_string.
13024 * target/waitstatus.c (target_waitstatus_to_string): Fix
13027 2019-04-01 Tom Tromey <tromey@adacore.com>
13030 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
13032 2019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
13033 Pedro Alves <palves@redhat.com>
13035 * top.c (quit_force): Call 'finalize_values'.
13036 * value.c (finalize_values): New function.
13037 * value.h (finalize_values): Declare.
13039 2019-03-30 Eli Zaretskii <eliz@gnu.org>
13041 * NEWS: Announce $_gdb_major and $_gdb_minor.
13043 * top.c (init_gdb_version_vars): New function.
13044 (gdb_init): Call init_gdb_version_vars.
13046 2019-03-29 Tom Tromey <tromey@adacore.com>
13048 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
13049 help text. Remove dead code.
13051 2019-03-29 Keith Seitz <keiths@redhat.com>
13053 From Siddhesh Poyarekar:
13054 * f-lang.h (f77_get_upperbound): Return LONGEST.
13055 (f77_get_lowerbound): Likewise.
13056 * f-typeprint.c (f_type_print_varspec_suffix): Expand
13057 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
13059 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
13060 plongest to format print it.
13061 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
13062 (f77_get_upperbound): Likewise.
13063 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
13064 LOWER_BOUND to LONGEST.
13065 (f77_create_arrayprint_offset_tbl): Likewise.
13067 2019-03-29 Keith Seitz <keiths@redhat.com>
13069 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
13070 %s/pulongest for TYPE_LENGTH instead of %d in format
13072 * ada-typerint.c (ada_print_type): Likewise.
13073 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
13074 * compile/compile-c-support.c (generate_register_struct): Likewise.
13075 * gdbtypes.c (recursive_dump_type): Likewise.
13076 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
13077 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
13078 instead of %d in format strings.
13079 * riscv-tdep.c (riscv_type_alignment): Cast second argument
13080 to std::min to ULONGEST.
13081 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
13082 instead of %d in format strings.
13083 * tracepoint.c (info_scope_command): Likewise.
13084 * typeprint.c (print_offset_data::update)
13085 (print_offset_data::finish): Likewise.
13086 * xtensa-tdep.c (xtensa_store_return_value)
13087 (xtensa_push_dummy_call): Likewise.
13089 2019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
13091 * windows-nat.c (display_selector): Fixed format specifications
13094 2019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13096 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
13098 2019-03-28 Sandra Loosemore <sandra@codesourcery.com>
13100 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
13101 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
13102 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
13103 (nios2_linux_init_abi): Install it.
13105 2019-03-28 Alan Hayward <alan.hayward@arm.com>
13107 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
13109 2019-03-28 Alan Hayward <alan.hayward@arm.com>
13111 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
13113 2019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13114 Tom Tromey <tromey@adacore.com>
13116 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
13118 2019-03-26 Joel Brobecker <brobecker@adacore.com>
13120 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
13121 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
13122 method to compute the bounds of range types. Also print "[evaluated]"
13123 if the bounds' values come from a dynamic evaluation.
13125 2019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
13127 * cp-valprint.c (cp_print_value_fields): Don't print trailing
13128 whitespace when pretty printing is on.
13130 2019-03-26 Alan Hayward <alan.hayward@arm.com>
13132 * ppc-linux-nat.c: Add include.
13134 2019-03-26 Alan Hayward <alan.hayward@arm.com>
13136 * NEWS: Mention AArch64 Pointer Authentication.
13138 2019-03-26 Alan Hayward <alan.hayward@arm.com>
13140 * arm-linux-nat.c: Add include.
13142 2019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
13144 * source-cache.c (source_cache::get_source_lines): Re-read
13145 fullname after calling open_source_file.
13147 2019-03-25 John Baldwin <jhb@FreeBSD.org>
13149 * NEWS: Mention TLS support for FreeBSD.
13151 2019-03-25 Tom Tromey <tromey@adacore.com>
13153 * minsyms.c (BUNCH_SIZE): Update comment.
13154 (~minimal_symbol_reader): Remove old comment.
13155 (compact_minimal_symbols): Update comment.
13156 (minimal_symbol_reader::install): Remove old comment. Update
13159 2019-03-25 Alan Hayward <alan.hayward@arm.com>
13161 * s390-linux-nat.c: Add include.
13163 2019-03-25 Alan Hayward <alan.hayward@arm.com>
13165 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
13166 Call linux_get_hwcap.
13167 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
13169 (aarch64_linux_get_hwcap): Remove function.
13170 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
13172 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
13174 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
13175 * linux-tdep.c (linux_get_hwcap): Add function.
13176 (linux_get_hwcap2): Likewise.
13177 * linux-tdep.h (linux_get_hwcap): Add declaration.
13178 (linux_get_hwcap2): Likewise.
13179 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
13180 (ppc_linux_get_hwcap2): Likewise.
13181 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
13183 (ppc_linux_nat_target::insert_watchpoint): Likewise.
13184 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
13185 (ppc_linux_nat_target::read_description): Likewise.
13186 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
13187 * s390-linux-nat.c: Likewise.
13188 * s390-linux-tdep.c (s390_core_read_description): Likewise.
13190 2019-03-24 Tom Tromey <tom@tromey.com>
13192 * ada-lang.c (standard_lookup): Simplify initialization.
13193 (ada_lookup_symbol_nonlocal): Simplify return.
13194 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
13195 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
13196 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
13197 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
13199 * solib.c (solib_global_lookup): Simplify.
13200 * symtab.c (null_block_symbol): Remove.
13201 (symbol_cache_lookup): Simplify returns.
13202 (lookup_language_this): Simplify returns.
13203 (lookup_symbol_aux): Simplify return.
13204 (lookup_local_symbol): Simplify returns.
13205 (lookup_global_symbol_from_objfile): Simplify return.
13206 (lookup_symbol_in_objfile_symtabs)
13207 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
13208 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
13209 (lookup_static_symbol, lookup_global_symbol): Simplify return.
13210 * cp-namespace.c (cp_lookup_bare_symbol)
13211 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
13212 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
13213 (cp_lookup_nested_symbol): Don't use null_block_symbol.
13214 (cp_lookup_symbol_via_imports): Simplify initialization.
13215 (find_symbol_in_baseclass): Likewise.
13216 * symtab.h (null_block_symbol): Remove.
13217 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
13218 (d_lookup_nested_symbol, d_lookup_symbol_imports)
13219 (d_lookup_symbol_module): Likewise.
13220 (find_symbol_in_baseclass): Simplify initialization.
13222 2019-03-24 Tom Tromey <tom@tromey.com>
13224 * expression.h: Don't include symtab.h.
13225 (struct block): Forward declare.
13227 2019-03-24 Tom Tromey <tom@tromey.com>
13229 * c-exp.y (typebase): Remove casts.
13230 * gdbtypes.c (lookup_unsigned_typename, )
13231 (lookup_signed_typename): Remove cast.
13232 * eval.c (parse_to_comma_and_eval): Remove cast.
13233 * parse.c (write_dollar_variable): Remove cast.
13234 * block.h (struct block) <superblock>: Now const.
13235 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
13236 * psymtab.c (psym_map_matching_symbols): Make "block" const.
13237 (map_block): Make "block" const.
13238 * symfile.h (struct quick_symbol_functions)
13239 <map_matching_symbols>: Constify block argument to "callback".
13240 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
13242 (find_pc_sect_compunit_symtab): Make "b" const.
13243 (find_symbol_at_address): Likewise.
13244 (search_symbols): Likewise.
13245 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
13246 (dw2_debug_names_lookup_symbol): Likewise.
13247 (dw2_map_matching_symbols): Update.
13248 * p-valprint.c (pascal_val_print): Remove "block".
13249 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
13250 (aux_add_nonlocal_symbols): Make "block" const.
13251 (resolve_subexp): Remove cast.
13252 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
13254 (iterate_over_file_blocks): Likewise.
13255 * f-exp.y (%union) <bval>: Remove.
13256 * coffread.c (patch_opaque_types): Make "b" const.
13257 * spu-tdep.c (spu_catch_start): Make "block" const.
13258 * c-valprint.c (print_unpacked_pointer): Remove "block".
13259 * symmisc.c (dump_symtab_1): Make "b" const.
13260 (block_depth): Make "block" const.
13261 * d-exp.y (%union) <bval>: Remove.
13262 * cp-support.h (cp_lookup_rtti_type): Update.
13263 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
13264 * psymtab.c (psym_lookup_symbol): Make "block" const.
13265 (maintenance_check_psymtabs): Make "b" const.
13266 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
13267 (enumerate_locals, enumerate_args): Update.
13268 * python/py-symtab.c (stpy_global_block): Make "block" const.
13269 (stpy_static_block): Likewise.
13270 * inline-frame.c (block_starting_point_at): Make "new_block"
13272 * block.c (find_block_in_blockvector): Make return type const.
13273 (blockvector_for_pc_sect): Make "b" const.
13274 (find_block_in_blockvector): Make "b" const.
13276 2019-03-23 Tom Tromey <tom@tromey.com>
13278 * varobj.c (varobj_create): Update.
13279 * symfile.c (clear_symtab_users): Don't reset innermost_block.
13280 * printcmd.c (display_command, do_one_display): Don't reset
13282 * parser-defs.h (enum innermost_block_tracker_type): Move to
13284 (innermost_block): Update comment.
13285 * parse.c (parse_exp_1): Add tracker_types parameter.
13286 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
13287 tracker_types parameter. Reset innermost_block.
13288 (parse_exp_in_context): Remove.
13289 (parse_expression_for_completion): Update.
13290 * objfiles.c (~objfile): Don't reset expression_context_block or
13292 * expression.h (enum innermost_block_tracker_type): Move from
13294 (parse_exp_1): Add tracker_types parameter.
13295 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
13296 reset innermost_block.
13298 2019-03-23 Tom Tromey <tom@tromey.com>
13300 * objfiles.h: Include bcache.h.
13302 2019-03-23 Tom Tromey <tom@tromey.com>
13304 * linespec.c (get_current_search_block): Use
13305 scoped_restore_current_language.
13306 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
13308 2019-03-22 Alan Hayward <alan.hayward@arm.com>
13309 Jiong Wang <jiong.wang@arm.com>
13311 * aarch64-linux-tdep.c
13312 (aarch64_linux_iterate_over_regset_sections): Check for pauth
13314 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
13316 2019-03-22 Alan Hayward <alan.hayward@arm.com>
13317 Jiong Wang <jiong.wang@arm.com>
13319 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
13321 (aarch64_analyze_prologue_test): Add PACIASP test.
13322 (aarch64_prologue_prev_register): Unmask PC value.
13324 2019-03-22 Alan Hayward <alan.hayward@arm.com>
13325 Jiong Wang <jiong.wang@arm.com>
13327 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
13328 (aarch64_dwarf2_prev_register): Unmask PC value.
13329 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
13330 (aarch64_execute_dwarf_cfa_vendor_op): Check for
13331 DW_CFA_AARCH64_negate_ra_state.
13332 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
13334 2019-03-22 Alan Hayward <alan.hayward@arm.com>
13335 Jiong Wang <jiong.wang@arm.com>
13337 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
13339 (aarch64_pseudo_register_name): Likewise.
13340 (aarch64_pseudo_register_type): Likewise.
13341 (aarch64_pseudo_register_reggroup_p): Likewise.
13342 (aarch64_gdbarch_init): Add pauth registers.
13343 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
13344 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
13345 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
13346 (struct gdbarch_tdep): Add regnum for ra_state.
13348 2019-03-22 Alan Hayward <alan.hayward@arm.com>
13349 Jiong Wang <jiong.wang@arm.com>
13351 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
13353 2019-03-22 Alan Hayward <alan.hayward@arm.com>
13354 Jiong Wang <jiong.wang@arm.com>
13356 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
13358 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
13359 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
13360 (aarch64_gdbarch_init): Add puth registers.
13361 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
13362 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
13363 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
13365 2019-03-22 Alan Hayward <alan.hayward@arm.com>
13366 Jiong Wang <jiong.wang@arm.com>
13368 * aarch64-linux-nat.c
13369 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
13370 * aarch64-linux-tdep.c
13371 (aarch64_linux_core_read_description): Likewise.
13372 (aarch64_linux_get_hwcap): New function.
13373 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
13374 (aarch64_linux_get_hwcap): New declaration.
13376 2019-03-22 Alan Hayward <alan.hayward@arm.com>
13377 Jiong Wang <jiong.wang@arm.com>
13379 * aarch64-linux-nat.c
13380 (aarch64_linux_nat_target::read_description): Add pauth param.
13381 * aarch64-linux-tdep.c
13382 (aarch64_linux_core_read_description): Likewise.
13383 * aarch64-tdep.c (struct target_desc): Add in pauth.
13384 (aarch64_read_description): Add pauth param.
13385 (aarch64_gdbarch_init): Likewise.
13386 * aarch64-tdep.h (aarch64_read_description): Likewise.
13387 * arch/aarch64.c (aarch64_create_target_description): Likewise.
13388 * arch/aarch64.h (aarch64_create_target_description): Likewise.
13389 * features/Makefile: Add new files.
13390 * features/aarch64-pauth.c: New file.
13391 * features/aarch64-pauth.xml: New file.
13393 2019-03-20 Tom Tromey <tromey@adacore.com>
13395 * infrun.c (handle_inferior_event): Rename from
13396 handle_inferior_event_1. Create a scoped_value_mark.
13397 (handle_inferior_event): Remove.
13399 2019-03-19 Tom Tromey <tromey@adacore.com>
13401 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
13402 * infrun.h (print_stop_event): Add "displays" parameter.
13403 * infrun.c (print_stop_event): Add "displays" parameter.
13405 2019-03-19 Pedro Alves <palves@redhat.com>
13407 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
13408 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
13409 to -1. Fix TABs vs spaces.
13410 (tui_ui_out::tui_ui_out): Don't initialize fields here.
13411 * tui/tui-out.h (tui_ui_out) Add intro comments.
13412 <m_line, m_start_of_line>: In-class initialize, and add describing
13415 2019-03-18 Alan Hayward <alan.hayward@arm.com>
13417 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
13419 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
13421 2019-03-18 Pedro Alves <palves@redhat.com>
13422 Eli Zaretskii <eliz@gnu.org>
13424 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
13425 m_line and m_start_of_line.
13427 2019-03-18 Eli Zaretskii <eliz@gnu.org>
13429 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
13430 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
13431 it returns a newline. This fixes a regression in TU mode, whereby
13432 the next line is output on the same screen line as the user input.
13434 2019-03-18 Tom Tromey <tromey@adacore.com>
13436 * minsyms.c (minimal_symbol_reader::install): Remove call to
13439 2019-03-18 Pedro Alves <palves@redhat.com>
13441 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
13443 (apply_style): New, factored out from ...
13444 (apply_ansi_escape): ... this. Handle reverse video mode.
13445 (tui_set_reverse_mode): New function.
13446 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
13447 * tui/tui-winsource.c (tui_show_source_line): Use
13448 tui_set_reverse_mode instead of setting A_STANDOUT.
13449 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
13450 New setter methods.
13452 2019-03-18 Hannes Domani <ssbssa@yahoo.de>
13454 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
13457 2019-03-18 Tom Tromey <tromey@adacore.com>
13459 * ada-lang.c (empty_array): Add "high" parameter.
13460 (ada_evaluate_subexp): Update.
13462 2019-03-17 Sergei Trofimovich <siarheit@google.com>
13464 * unittests/string_view-selftests.c: Define
13465 _initialize_string_view_selftests unconditionally.
13467 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
13470 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
13472 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
13475 * windows-nat.c (display_selector): Fix format specifiers.
13477 2019-03-17 Eli Zaretskii <eliz@gnu.org>
13479 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
13480 tui_refill_source_window instead of tui_refresh_win, to update the
13481 current execution line. This fixes redisplay of the current line
13482 when stepping through the code with "next" or "step".
13484 2019-03-16 Eli Zaretskii <eliz@gnu.org>
13486 * source-cache.c (source_cache::get_source_lines): Call
13487 find_source_lines to initialize s->nlines. This fixes vertical
13488 scrolling of TUI source window when the DOWN arrow is pressed.
13490 2019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13492 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
13493 linux-thread-db.c (_initialize_thread_db): Likewise.
13495 2019-03-16 Eli Zaretskii <eliz@gnu.org>
13497 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
13498 wclrtoeol in tui_show_source_line". This reverts changes made in
13499 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
13501 2019-03-15 Tom Tromey <tom@tromey.com>
13503 * symtab.h (struct minimal_symbol): Derive from
13504 general_symbol_info.
13505 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
13506 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
13507 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
13508 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
13509 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
13510 (MSYMBOL_SEARCH_NAME): Update.
13511 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
13512 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
13513 * minsyms.c (minimal_symbol_reader::record_full): Update.
13515 2019-03-15 Tom Tromey <tom@tromey.com>
13517 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
13519 2019-03-15 Tom Tromey <tom@tromey.com>
13521 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
13522 unique_xmalloc_ptr.
13523 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
13525 * minsyms.c (lookup_minimal_symbol_by_pc_section)
13526 (build_minimal_symbol_hash_tables)
13527 (minimal_symbol_reader::install): Update.
13529 2019-03-15 Tom Tromey <tom@tromey.com>
13531 * symtab.c (create_demangled_names_hash): Update.
13532 (symbol_set_names): Update.
13533 * objfiles.h (struct objfile_per_bfd_storage)
13534 <demangled_names_hash>: Now an htab_up.
13535 * objfiles.c (objfile_per_bfd_storage): Simplify.
13537 2019-03-15 Tom Tromey <tom@tromey.com>
13539 * objfiles.h (struct objfile_per_bfd_storage): Declare
13541 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
13543 (get_objfile_bfd_data): Use new. Don't initialize
13545 (free_objfile_per_bfd_storage): Remove.
13546 (objfile_bfd_data_free, objfile::~objfile): Use delete.
13548 2019-03-15 Tom Tromey <tom@tromey.com>
13550 * symfile.c (reread_symbols): Update.
13551 * objfiles.c (objfile::objfile): Update.
13552 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
13553 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
13555 (minimal_symbol_reader::install): Update.
13556 (terminate_minimal_symbol_table): Remove.
13557 * jit.c (jit_object_close_impl): Update.
13559 2019-03-15 Tom Tromey <tom@tromey.com>
13561 * minsyms.c (minimal_symbol_reader::record_full): Remove some
13564 2019-03-15 Tom Tromey <tom@tromey.com>
13566 * objfiles.h (struct objfile_per_bfd_storage)
13567 <demangled_hash_languages>: Now a bitset.
13568 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
13569 (lookup_minimal_symbol): Update.
13571 2019-03-15 Tom Tromey <tom@tromey.com>
13573 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
13574 Don't return the symbol.
13575 * coffread.c (record_minimal_symbol): Use record_full.
13577 2019-03-14 Eli Zaretskii <eliz@gnu.org>
13579 The MS-Windows port of ncurses fails to switch to a color pair if
13580 one or both of the colors are the implicit default colors. This
13581 change records the default colors when TUI is initialized, and
13582 then specifies them explicitly when a color pair uses the default
13583 colors. This allows color styling in TUI mode on MS-Windows.
13585 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
13587 (tui_initialize_io) [__MINGW32__]: Record the default terminal
13588 colors in ncurses_norm_attr.
13589 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
13590 "none", replace it with the default color recorded in
13593 2019-03-14 Tom Tromey <tromey@adacore.com>
13595 * source-cache.h (class source_cache) <get_source_lines>: Return
13597 * source-cache.c (source_cache::extract_lines): Handle case where
13598 first_pos==npos. Return std::string.
13599 (source_cache::get_source_lines): Update.
13601 2019-03-14 Tom Tromey <tromey@adacore.com>
13603 * NEWS: Add item for "style sources" commands.
13604 * source-cache.c (source_cache::get_source_lines): Check
13606 * cli/cli-style.c (source_styling): New global.
13607 (_initialize_cli_style): Add "style sources" commands.
13608 (show_style_sources): New function.
13609 * cli/cli-style.h (source_styling): Declare.
13611 2019-03-14 Pedro Alves <palves@redhat.com>
13612 Tom Tromey <tromey@adacore.com>
13614 * tui/tui-winsource.h (tui_refill_source_window): Declare.
13615 * tui/tui-winsource.c (tui_refill_source_window): New function,
13617 (tui_horizontal_source_scroll): ... here. Move some logic.
13618 * cli/cli-style.c (set_style_enabled): Notify new observable.
13619 * tui/tui-hooks.c (tui_redisplay_source): New function.
13620 (tui_attach_detach_observers): Attach or detach
13621 tui_redisplay_source.
13622 * observable.h (source_styling_changed): New observable.
13623 * observable.c: Define source_styling_changed observable.
13625 2019-03-13 Tom Tromey <tromey@adacore.com>
13627 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
13628 (i386_gnu_nat_target::store_registers): Update.
13629 * target-debug.h (target_debug_print_std_string): New macro.
13630 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
13631 * windows-tdep.c (display_one_tib): Update.
13632 * tui/tui-stack.c (tui_make_status_line): Update.
13633 * top.c (print_inferior_quit_action): Update.
13634 * thread.c (thr_try_catch_cmd): Update.
13635 (add_thread_with_info): Update.
13636 (thread_target_id_str): Update.
13637 (thr_try_catch_cmd): Update.
13638 (thread_command): Update.
13639 (thread_find_command): Update.
13640 * record-btrace.c (record_btrace_target::info_record)
13641 (record_btrace_resume_thread, record_btrace_target::resume)
13642 (record_btrace_cancel_resume, record_btrace_step_thread)
13643 (record_btrace_target::wait, record_btrace_target::wait)
13644 (record_btrace_target::wait, record_btrace_target::stop): Update.
13645 * progspace.c (print_program_space): Update.
13646 * process-stratum-target.c
13647 (process_stratum_target::thread_address_space): Update.
13648 * linux-fork.c (linux_fork_mourn_inferior)
13649 (detach_checkpoint_command, info_checkpoints_command)
13650 (linux_fork_context): Update.
13651 (linux_fork_detach): Update.
13652 (class scoped_switch_fork_info): Update.
13653 (delete_checkpoint_command): Update.
13654 * infrun.c (follow_fork_inferior): Update.
13655 (follow_fork_inferior): Update.
13656 (proceed_after_vfork_done): Update.
13657 (handle_vfork_child_exec_or_exit): Update.
13658 (follow_exec): Update.
13659 (displaced_step_prepare_throw): Update.
13660 (displaced_step_restore): Update.
13661 (start_step_over): Update.
13662 (resume_1): Update.
13663 (clear_proceed_status_thread): Update.
13665 (print_target_wait_results): Update.
13666 (do_target_wait): Update.
13667 (context_switch): Update.
13668 (stop_all_threads): Update.
13669 (restart_threads): Update.
13670 (finish_step_over): Update.
13671 (handle_signal_stop): Update.
13672 (switch_back_to_stepped_thread): Update.
13673 (keep_going_pass_signal): Update.
13674 (print_exited_reason): Update.
13675 (normal_stop): Update.
13676 * inferior.c (inferior_pid_to_str): Change return type.
13677 (print_selected_inferior): Update.
13678 (add_inferior): Update.
13679 (detach_inferior): Update.
13680 * dummy-frame.c (fprint_dummy_frames): Update.
13681 * dcache.c (dcache_info_1): Update.
13682 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
13683 (btrace_fetch, btrace_clear): Update.
13684 * linux-tdep.c (linux_core_pid_to_str): Change return type.
13685 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
13687 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
13688 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
13689 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
13690 * gdbarch.c, gdbarch.h: Rebuild.
13691 * gdbarch.sh (core_pid_to_str): Change return type.
13692 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
13694 (windows_nat_target::pid_to_str): Change return type.
13695 (windows_delete_thread): Update.
13696 (windows_nat_target::attach): Update.
13697 (windows_nat_target::files_info): Update.
13698 * target-delegates.c: Rebuild.
13699 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
13701 (sol_thread_target::pid_to_str): Change return type.
13702 * remote.c (class remote_target) <pid_to_str>: Change return
13704 (remote_target::pid_to_str): Change return type.
13705 (extended_remote_target::attach, remote_target::remote_stop_ns)
13706 (remote_target::remote_notif_remove_queued_reply)
13707 (remote_target::push_stop_reply, remote_target::disable_btrace):
13709 (extended_remote_target::attach): Update.
13710 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
13712 (gdbsim_target::pid_to_str): Change return type.
13713 * ravenscar-thread.c (struct ravenscar_thread_target)
13714 <pid_to_str>: Change return type.
13715 (ravenscar_thread_target::pid_to_str): Change return type.
13716 * procfs.c (class procfs_target) <pid_to_str>: Change return
13718 (procfs_target::pid_to_str): Change return type.
13719 (procfs_target::attach): Update.
13720 (procfs_target::detach): Update.
13721 (procfs_target::fetch_registers): Update.
13722 (procfs_target::store_registers): Update.
13723 (procfs_target::wait): Update.
13724 (procfs_target::files_info): Update.
13725 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
13726 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
13728 (nto_procfs_target::pid_to_str): Change return type.
13729 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
13730 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
13732 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
13733 (exit_lwp): Update.
13734 (attach_proc_task_lwp_callback, get_detach_signal)
13735 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
13736 (linux_nat_target::resume, wait_lwp, stop_callback)
13737 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
13738 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
13739 (linux_nat_wait_1, resume_stopped_resumed_lwps)
13740 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
13741 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
13743 (inf_ptrace_target::attach): Update.
13744 (inf_ptrace_target::files_info): Update.
13745 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
13747 (go32_nat_target::pid_to_str): Change return type.
13748 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
13749 (gnu_nat_target::wait): Update.
13750 (gnu_nat_target::wait): Update.
13751 (gnu_nat_target::resume): Update.
13752 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
13753 (fbsd_nat_target::wait): Update.
13754 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
13756 (darwin_nat_target::attach): Update.
13757 * corelow.c (class core_target) <pid_to_str>: Change return type.
13758 (core_target::pid_to_str): Change return type.
13759 * target.c (normal_pid_to_str): Change return type.
13760 (default_pid_to_str): Likewise.
13761 (target_pid_to_str): Change return type.
13762 (target_translate_tls_address): Update.
13763 (target_announce_detach): Update.
13764 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
13766 (bsd_uthread_target::pid_to_str): Change return type.
13767 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
13769 (bsd_kvm_target::pid_to_str): Change return type.
13770 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
13772 (aix_thread_target::pid_to_str): Change return type.
13773 * target.h (struct target_ops) <pid_to_str>: Change return type.
13774 (target_pid_to_str, normal_pid_to_str): Likewise.
13775 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
13777 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
13779 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
13781 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
13783 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
13785 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
13788 2019-03-13 Simon Marchi <simon.marchi@ericsson.com>
13790 * NEWS: Mention that the new default MI version is 3. Mention
13791 changes to the output of commands and events that deal with
13792 multi-location breakpoints.
13793 * breakpoint.c: Include "mi/mi-out.h".
13794 (print_one_breakpoint): Change output syntax if using MI version
13796 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
13798 (mi_multi_location_breakpoint_output_fixed): New.
13799 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
13800 (mi_cmd_fix_multi_location_breakpoint_output): New.
13801 (mi_multi_location_breakpoint_output_fixed): New.
13802 * mi/mi-cmds.c (mi_cmds): Register command
13803 -fix-multi-location-breakpoint-output.
13804 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
13807 2019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
13809 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
13810 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
13811 instantiate mi_ui_out based on interpreter name.
13812 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
13813 * mi/mi-main.c (mi_load_progress): Likewise.
13815 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13817 * NEWS: Combine separate "New targets" sections for 8.3.
13819 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13821 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
13822 (ppcfbsd_init_abi): Install gdbarch
13823 "fetch_tls_load_module_address" and "get_thread_local_address"
13826 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13828 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
13829 (riscv_fbsd_init_abi): Install gdbarch
13830 "fetch_tls_load_module_address" and "get_thread_local_address"
13833 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13835 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
13836 (i386fbsd_init_abi): Install gdbarch
13837 "fetch_tls_load_module_address" and "get_thread_local_address"
13840 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13842 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
13843 (amd64fbsd_init_abi): Install gdbarch
13844 "fetch_tls_load_module_address" and "get_thread_local_address"
13847 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13849 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
13850 (struct fbsd_pspace_data): New type.
13851 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
13852 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
13853 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
13854 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
13855 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
13857 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13859 * gdbtypes.c (lookup_struct_elt): New function.
13860 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
13861 * gdbtypes.h (struct struct_elt): New type.
13862 (lookup_struct_elt): New prototype.
13864 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13866 * gdbtypes.c (lookup_struct_elt_type): Update comment and
13867 remove disabled code block.
13869 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13871 * gdbarch.sh (get_thread_local_address): New method.
13872 * gdbarch.h, gdbarch.c: Regenerate.
13873 * target.c (target_translate_tls_address): Use
13874 gdbarch_get_thread_local_address if present instead of
13875 target::get_thread_local_address.
13877 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13879 * target.h (target::get_thread_local_address): Update comment.
13881 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13883 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
13884 objfile->separate_debug_objfile_backlink if not NULL.
13886 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13888 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
13889 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
13890 (amd64bsd_store_inferior_registers): Likewise.
13891 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
13892 Enable segment base registers.
13893 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
13894 PT_GETFSBASE and PT_GETGSBASE.
13895 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
13897 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
13898 segment base registers.
13899 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
13901 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13903 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
13904 Update calls to i386_target_description to add 'segments'
13906 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
13907 add segment base registers.
13908 * arch/i386.c (i386_create_target_description): Add 'segments'
13909 parameter to enable segment base registers.
13910 * arch/i386.h (i386_create_target_description): Likewise.
13911 * features/i386/32bit-segments.xml: New file.
13912 * features/i386/32bit-segments.c: Generate.
13913 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
13914 call to i386_target_description to add 'segments' parameter.
13915 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
13916 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
13917 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
13918 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
13919 if feature is present.
13920 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
13921 Add 'segments' parameter to call to i386_target_description.
13922 (i386_target_description): Add 'segments' parameter to enable
13923 segment base registers.
13924 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
13925 to call to i386_target_description.
13926 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
13927 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
13928 Define I386_NUM_REGS.
13929 (i386_target_description): Add 'segments' parameter to enable
13930 segment base registers.
13932 2019-03-12 Eli Zaretskii <eliz@gnu.org>
13935 * source-cache.c: #undef open and close, to avoid unresolved
13936 externals during linking.
13938 2019-03-12 Tom Tromey <tromey@adacore.com>
13940 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
13941 const. Add initializers.
13942 (_initialize_remote): Don't initialize ptid globals.
13944 2019-03-12 Pedro Alves <palves@redhat.com>
13946 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
13948 2019-03-12 Pedro Alves <palves@redhat.com>
13950 * cp-name-parser.y (main): Remove unused 'len' variable.
13952 2019-03-12 Tom Tromey <tromey@adacore.com>
13954 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
13955 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
13957 2019-03-12 Tom Tromey <tromey@adacore.com>
13959 * linux-nat.c (iterate_over_lwps): Update.
13960 (stop_callback): Remove parameter.
13961 (stop_wait_callback, detach_callback, resume_set_callback)
13962 (select_singlestep_lwp_callback, set_ignore_sigint)
13963 (status_callback, resumed_callback, resume_clear_callback)
13964 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
13966 (linux_nat_target::detach, linux_nat_target::resume)
13967 (linux_stop_and_wait_all_lwps, select_event_lwp)
13968 (linux_nat_filter_event, linux_nat_wait_1)
13969 (linux_nat_target::kill, linux_nat_target::stop)
13970 (linux_nat_target::stop): Update.
13971 (linux_nat_resume_callback): Change type.
13972 (resume_stopped_resumed_lwps, count_events_callback)
13973 (select_event_lwp_callback): Likewise.
13974 (linux_stop_lwp, linux_nat_stop_lwp): Update.
13975 * arm-linux-nat.c (struct update_registers_data): Remove.
13976 (update_registers_callback): Change type.
13977 (arm_linux_insert_hw_breakpoint1): Update.
13978 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
13980 (x86_linux_dr_set_addr): Update.
13981 (x86_linux_dr_set_control): Update.
13982 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
13983 (iterate_over_lwps): Use gdb::function_view.
13984 * nat/aarch64-linux-hw-point.c (struct
13985 aarch64_dr_update_callback_param): Remove.
13986 (debug_reg_change_callback): Change type.
13987 (aarch64_notify_debug_reg_change): Update.
13988 * s390-linux-nat.c (s390_refresh_per_info): Update.
13990 2019-03-11 Tom Tromey <tromey@adacore.com>
13992 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
13993 redundant assignment to "this_cu".
13995 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13997 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
13999 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
14001 * gdbtypes.c (rank_one_type_parm_set): New function extracted
14003 (rank_one_type): ... this.
14005 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
14007 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
14009 (rank_one_type): ... this.
14011 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
14013 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
14015 (rank_one_type): ... this.
14017 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
14019 * gdbtypes.c (rank_one_type_parm_float): New function extracted
14021 (rank_one_type): ... this.
14023 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
14025 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
14027 (rank_one_type): ... this.
14029 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
14031 * gdbtypes.c (rank_one_type_parm_range): New function extracted
14033 (rank_one_type): ... this.
14035 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
14037 * gdbtypes.c (rank_one_type_parm_char): New function extracted
14039 (rank_one_type): ... this.
14041 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
14043 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
14045 (rank_one_type): ... this.
14047 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
14049 * gdbtypes.c (rank_one_type_parm_int): New function extracted
14051 (rank_one_type): ... this.
14053 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
14055 * gdbtypes.c (rank_one_type_parm_func): New function extracted
14057 (rank_one_type): ... this.
14059 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
14061 * gdbtypes.c (rank_one_type_parm_array): New function extracted
14063 (rank_one_type): ... this.
14065 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
14067 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
14069 (rank_one_type): ... this.
14071 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14073 * inferior.c (initialize_inferiors): Ensure 'help set/show print
14074 inferior-events' shows the example events.
14076 2019-03-08 Eli Zaretskii <eliz@gnu.org>
14078 Support styling on native MS-Windows console
14081 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
14082 on MS-Windows if $TERM is not defined.
14084 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
14086 * posix-hdep.c (gdb_console_fputs):
14087 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
14089 * ui-file.h (gdb_console_fputs): Add prototype.
14091 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
14092 back to fputs only if the former returns zero.
14094 2019-03-07 Tom Tromey <tom@tromey.com>
14096 * symmisc.c (print_symbol_bcache_statistics): Update.
14097 (print_objfile_statistics): Update.
14098 * symfile.c (allocate_symtab): Update.
14099 * stabsread.c: Don't include bcache.h.
14100 * psymtab.h (struct psymbol_bcache): Don't declare.
14101 (class psymtab_storage) <psymbol_cache>: Now a bcache.
14102 (psymbol_bcache_init, psymbol_bcache_free)
14103 (psymbol_bcache_get_bcache): Don't declare.
14104 * psymtab.c (struct psymbol_bcache): Remove.
14105 (psymtab_storage::psymtab_storage): Update.
14106 (psymtab_storage::~psymtab_storage): Update.
14107 (psymbol_bcache_init, psymbol_bcache_free)
14108 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
14109 (add_psymbol_to_bcache): Update.
14110 (allocate_psymtab): Update.
14111 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
14112 macro_cache>: No longer pointers.
14113 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
14114 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
14115 * macrotab.c (macro_bcache): Update.
14116 * macroexp.c: Don't include bcache.h.
14117 * gdbtypes.c (check_types_worklist): Update.
14118 (types_deeply_equal): Remove TRY/CATCH. Update.
14119 * elfread.c (elf_symtab_read): Update.
14120 * dwarf2read.c: Don't include bcache.h.
14121 * buildsym.c (buildsym_compunit::get_macro_table): Update.
14122 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
14123 (print_bcache_statistics, bcache_memory_used): Don't declare.
14124 (struct bcache): Move from bcache.c. Add constructor, destructor,
14125 methods. Rename all data members.
14126 * bcache.c (struct bcache): Move to bcache.h.
14127 (bcache::expand_hash_table): Rename from expand_hash_table.
14129 (bcache::insert): Rename from bcache_full.
14130 (bcache::compare): Rename from bcache_compare.
14131 (bcache_xmalloc): Remove.
14132 (bcache::~bcache): Rename from bcache_xfree.
14133 (bcache::print_statistics): Rename from print_bcache_statistics.
14134 (bcache::memory_used): Rename from bcache_memory_used.
14136 2019-03-07 Pedro Alves <palves@redhat.com>
14138 * infrun.c (normal_stop): Also check for
14139 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
14141 2019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
14143 * f-lang.c (value_from_host_double): Moved to...
14144 * value.c (value_from_host_double): ...here.
14145 * value.h (value_from_host_double): Declare.
14146 * guile/scm-math.c (vlscm_convert_typed_number): Use
14147 value_from_host_double.
14148 (vlscm_convert_number): Likewise.
14149 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
14150 * python/py-value.c (convert_value_from_python): Likewise.
14152 2019-03-06 Tom Tromey <tom@tromey.com>
14154 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
14156 2019-03-06 Tom Tromey <tom@tromey.com>
14158 * utils.h (free_current_contents): Don't declare.
14159 * utils.c (free_current_contents): Remove.
14161 2019-03-06 Tom Tromey <tom@tromey.com>
14163 * top.c (quit_force): Update.
14164 * main.c (captured_command_loop): Update.
14165 * common/new-op.c (operator new): Update.
14166 * common/common-exceptions.c (struct catcher)
14167 <save_cleanup_chain>: Remove member.
14168 (exceptions_state_mc_init): Update.
14169 (exception_try_scope_entry): Return nullptr.
14170 (exception_try_scope_exit, exception_rethrow)
14171 (throw_exception_sjlj, throw_exception_cxx): Update.
14172 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
14173 (all_cleanups, do_cleanups, discard_cleanups)
14174 (discard_final_cleanups, save_cleanups, save_final_cleanups)
14175 (restore_cleanups, restore_final_cleanups): Don't declare.
14176 (do_final_cleanups): Remove parameter.
14177 * common/cleanups.c (cleanup_chain, make_cleanup)
14178 (make_cleanup_dtor, all_cleanups, do_cleanups)
14179 (discard_my_cleanups, discard_cleanups)
14180 (discard_final_cleanups, save_my_cleanups, save_cleanups)
14181 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
14182 (null_cleanup): Remove.
14183 (do_final_cleanups): Remove parameter.
14185 2019-03-06 Tom Tromey <tom@tromey.com>
14187 * remote.c (remote_target::remote_parse_stop_reply): Use
14188 unique_xmalloc_ptr.
14190 2019-03-06 Tom Tromey <tom@tromey.com>
14192 * stabsread.c (struct stabs_field_info): Rename from field_info.
14193 <list, fnlist>: Add initializers.
14194 <obstack>: New member.
14195 (read_member_functions, read_struct_fields, read_baseclasses):
14196 Allocate on obstack. Don't use cleanups.
14197 (read_one_struct_field, read_member_functions, read_struct_fields)
14198 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
14199 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
14200 (read_struct_type): Update.
14202 2019-03-06 Tom Tromey <tom@tromey.com>
14204 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
14205 * common/filestuff.h (make_cleanup_close): Don't declare.
14206 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
14209 2019-03-06 Tom Tromey <tom@tromey.com>
14211 * solib-aix.c: Use make_scope_exit.
14213 2019-03-06 Tom Tromey <tom@tromey.com>
14215 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
14216 Use make_scope_exit.
14218 2019-03-06 Tom Tromey <tom@tromey.com>
14220 * solib-svr4.c (disable_probes_interface): Remove parameter.
14221 (svr4_handle_solib_event): Use make_scope_exit.
14223 2019-03-06 Tom Tromey <tom@tromey.com>
14225 * remote.c (struct stop_reply_deleter): Remove.
14226 (stop_reply_up): Update.
14227 (struct stop_reply): Derive from notif_event. Don't typedef.
14228 <regcache>: Now a std::vector.
14229 (stop_reply_xfree): Remove.
14230 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
14231 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
14232 (remote_target::discard_pending_stop_replies): Use delete.
14233 (remote_target::remote_parse_stop_reply): Update.
14234 (remote_target::process_stop_reply): Update.
14235 * remote-notif.h (struct notif_event): Add virtual destructor.
14236 Remove "dtr" member.
14237 (struct notif_client) <alloc_event>: Return a unique_ptr.
14238 (notif_event_xfree): Don't declare.
14239 (notif_event_up): New typedef.
14240 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
14241 (notif_event_xfree, do_notif_event_xfree): Remove.
14242 (remote_notif_state_xfree): Update.
14244 2019-03-06 Tom Tromey <tom@tromey.com>
14246 * infrun.c (displaced_step_clear_cleanup): Now a
14247 forward_scope_exit type.
14248 (displaced_step_prepare_throw): Update.
14249 (displaced_step_fixup): Update.
14251 2019-03-06 Tom Tromey <tom@tromey.com>
14253 * inferior.h (class inferior): Update comment.
14254 * gdbthread.h (class thread_info): Update comment.
14256 2019-03-06 Joel Brobecker <brobecker@adacore.com>
14257 Tom Tromey <tom@tromey.com>
14259 * stabsread.h (struct stab_section_list): Remove.
14260 (coffstab_build_psymtabs): Update.
14261 * dbxread.c (symbuf_sections): Now a std::vector.
14262 (sect_idx): New global.
14263 (fill_symbuf): Update.
14264 (coffstab_build_psymtabs): Change type of stabsects parameter.
14266 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
14268 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
14269 (coff_locate_sections): Update.
14270 (coff_symfile_read): Remove cleanups. Update.
14271 (init_stringtab): Add storage parameter.
14272 (free_stringtab, free_stringtab_cleanup): Remove.
14273 (init_lineno): Add storage parameter.
14274 (free_linetab, free_linetab_cleanup): Remove.
14276 2019-03-06 Pedro Alves <palves@redhat.com>
14278 * linux-fork.c (fork_info::clobber_regs): Delete.
14279 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
14280 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
14282 (scoped_switch_fork_info::scoped_switch_fork_info)
14283 (checkpoint_command, linux_fork_context): Adjust
14284 fork_save_infrun_state calls.
14286 2019-03-06 Pedro Alves <palves@redhat.com>
14288 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
14289 (inf_has_multiple_threads): Return 'bool' and rewrite using
14290 inferior_info::threads().
14292 2019-03-06 Pedro Alves <palves@redhat.com>
14294 * linux-fork.c: Include <list>.
14295 (fork_list): Now a std::list instance.
14296 (fork_info): Add ctor, dtor, and in-class initialize all fields.
14297 (forks_exist_p, find_last_fork): Adjust.
14298 (new_fork): Delete.
14300 (add_fork): Adjust.
14301 (free_fork): Delete, folded into fork_info::~fork_info().
14302 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
14304 (init_fork_list): Delete.
14305 (linux_fork_killall, linux_fork_mourn_inferior)
14306 (linux_fork_detach, info_checkpoints_command): Adjust.
14307 (_initialize_linux_fork): No longer call init_fork_list.
14309 2019-03-06 Pedro Alves <palves@redhat.com>
14311 * linux-fork.c (new_fork): New, split out of ...
14312 (add_fork): ... this. Return void. Move "first fork" special
14313 case from here, to ...
14314 (checkpoint_command): ... here.
14315 * linux-linux.h (add_fork): Return void.
14317 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14319 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
14321 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14322 Chris January <chris.january@arm.com>
14323 David Lecomber <david.lecomber@arm.com>
14325 * f-exp.y: New token, UNOP_INTRINSIC.
14326 (exp): New pattern using UNOP_INTRINSIC token.
14327 (f77_keywords): Add 'abs' keyword.
14328 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
14329 (value_from_host_double): New function.
14330 (evaluate_subexp_f): Support UNOP_ABS.
14332 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14334 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
14337 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14339 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
14340 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
14341 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
14343 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14345 * f-exp.y (convert_to_kind_type): Handle more type kinds.
14347 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14348 Chris January <chris.january@arm.com>
14350 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
14351 * f-exp.y: Define 'KIND' token.
14352 (exp): New pattern for KIND expressions.
14353 (ptype): Handle types with a kind extension.
14354 (direct_abs_decl): Extend to spot kind extensions.
14355 (f77_keywords): Add 'kind' to the list.
14356 (push_kind_type): New function.
14357 (convert_to_kind_type): New function.
14358 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
14359 * parse.c (operator_length_standard): Likewise.
14360 * parser-defs.h (enum type_pieces): Add tp_kind.
14361 * std-operator.def: Add UNOP_KIND.
14363 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14365 * f-exp.y (f_parse): Set yydebug.
14367 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14369 * f-lang.c (evaluate_subexp_f): New function.
14370 (exp_descriptor_f): New global.
14371 (f_language_defn): Use exp_descriptor_f instead of
14372 exp_descriptor_standard.
14374 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14376 * f-exp.y (struct token): Add comments.
14377 (dot_ops): Remove uppercase versions and the end marker.
14378 (f77_keywords): Likewise.
14379 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
14380 entries in the dot_ops array are case insensitive, and use
14381 strncasecmp to compare strings. Also some whitespace cleanup in
14382 this area. Similar for the f77_keywords array, except entries in
14383 this list might be case sensitive.
14385 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14387 * f-exp.y (struct f77_boolean_val): Add comments.
14388 (boolean_values): Remove uppercase versions, and end marker.
14389 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
14390 and use strncasecmp to achieve case insensitivity. Additionally,
14391 perform whitespace cleanup around this code.
14393 2019-03-06 Tom Tromey <tromey@adacore.com>
14395 * remote-sim.c (gdbsim_target_open): Use result of
14398 2019-03-06 Richard Bunt <richard.bunt@arm.com>
14399 Dirk Schubert <dirk.schubert@arm.com>
14400 Chris January <chris.january@arm.com>
14402 * eval.c (evaluate_subexp_standard): Call Fortran argument
14404 * f-lang.c (struct value): A value which can be passed into a
14405 Fortran function call.
14406 (fortran_argument_convert): Wrap Fortran arguments in a pointer
14408 (struct type): Value ready for a Fortran function call.
14409 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
14411 * f-lang.h (fortran_argument_convert): Declaration.
14412 (fortran_preserve_arg_pointer): Declaration.
14413 * infcall.c (value_arg_coerce): Call Fortran argument logic.
14415 2019-03-05 Tom Tromey <tromey@adacore.com>
14417 * python/py-prettyprint.c (print_string_repr): Remove #if.
14418 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
14420 2019-03-05 Tom Tromey <tromey@adacore.com>
14422 * target.c (the_dummy_target): Move later. Change type to
14424 (initialize_targets): Don't initialize the_dummy_target.
14426 2019-03-05 Tom Tromey <tromey@adacore.com>
14428 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
14429 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
14431 2019-03-05 Tom Tromey <tromey@adacore.com>
14433 * windows-nat.c (windows_nat_target::attach)
14434 (windows_nat_target::detach): Don't call gdb_flush.
14435 * valprint.c (generic_val_print, val_print, val_print_string):
14436 Don't call gdb_flush.
14437 * utils.c (defaulted_query): Don't call gdb_flush.
14438 * typeprint.c (print_type_scalar): Don't call gdb_flush.
14439 * target.c (target_announce_detach): Don't call gdb_flush.
14440 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
14441 * remote.c (extended_remote_target::attach): Don't call
14443 * procfs.c (procfs_target::detach): Don't call gdb_flush.
14444 * printcmd.c (do_examine): Don't call gdb_flush.
14445 (info_display_command): Don't call gdb_flush.
14446 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
14447 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
14448 * memattr.c (info_mem_command): Don't call gdb_flush.
14449 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
14450 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
14451 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
14452 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
14453 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
14454 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
14455 (gnu_nat_target::detach): Don't call gdb_flush.
14456 * f-valprint.c (f_val_print): Don't call gdb_flush.
14457 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
14458 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
14459 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
14461 * c-valprint.c (c_val_print): Don't call gdb_flush.
14462 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
14464 2019-03-05 Tom Tromey <tromey@adacore.com>
14466 * varobj.c (update_dynamic_varobj_children): Update.
14467 (install_default_visualizer): Use reset, not release.
14468 * value.c (set_internalvar): Update.
14469 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
14470 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
14471 ATTRIBUTE_UNUSED_RESULT.
14473 2019-03-05 Tom Tromey <tromey@adacore.com>
14475 * remote.c (class scoped_remote_fd) <release>: Add
14476 ATTRIBUTE_UNUSED_RESULT.
14478 2019-03-05 Tom Tromey <tromey@adacore.com>
14480 * macroexp.c (struct macro_buffer) <release>: Add
14481 ATTRIBUTE_UNUSED_RESULT.
14483 2019-03-05 Tom Tromey <tromey@adacore.com>
14485 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
14486 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
14487 ATTRIBUTE_UNUSED_RESULT.
14489 2019-03-05 Tom Tromey <tromey@adacore.com>
14491 * common/scoped_fd.h (class scoped_fd) <release>: Add
14492 ATTRIBUTE_UNUSED_RESULT.
14494 2019-03-05 Tom Tromey <tromey@adacore.com>
14496 * parser-defs.h (struct parser_state) <release>: Add
14497 ATTRIBUTE_UNUSED_RESULT.
14499 2019-03-05 Tom Tromey <tromey@adacore.com>
14501 * utils.h (class gdb_argv) <release>: Add
14502 ATTRIBUTE_UNUSED_RESULT.
14503 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
14505 2019-03-02 Eli Zaretskii <eliz@gnu.org>
14507 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
14508 for-loop range, to avoid compiler warnings.
14510 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
14511 avoid compiler warnings about unused variables.
14513 * NEWS: Mention end of support for native debugging on MS-Windows
14517 * common/netstuff.c:
14518 * gdbserver/gdbreplay.c
14519 * gdbserver/remote-utils.c:
14521 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
14522 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
14523 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
14524 'getaddrinfo' and 'freeaddrinfo' were not available before
14525 Windows XP, and mingw.org's MinGW headers by default define
14526 _WIN32_WINNT to 0x500.
14528 2019-03-01 Gary Benson <gbenson@redhat.com>
14530 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
14532 2019-02-28 Brian Vandenberg <phantall@gmail.com>
14533 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14536 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
14537 set_sigint_trap, clear_sigint_trap.
14539 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14541 * target.c (target_detach): Clear the regcache and the
14544 2019-02-27 Pedro Alves <palves@redhat.com>
14546 * utils.c (set_screen_size): When we cap the height/width sizes,
14547 tweak the corresponding command variable to show "unlimited":
14549 2019-02-27 Saagar Jha <saagar@saagarjha.com>
14550 Pedro Alves <palves@redhat.com>
14552 * utils.c (set_screen_size): Reduce "infinite" rows and columns
14553 before calling rl_set_screen_size.
14555 2019-02-27 Tom Tromey <tromey@adacore.com>
14557 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
14559 * python/py-value.c: Remove Python 2.4 workaround.
14560 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
14562 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
14563 Python 2.4 workaround.
14564 * python/python-internal.h: Remove Python 2.4 comment.
14565 (Py_ssize_t): Don't define.
14566 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
14567 (gdb_Py_DECREF): Remove Python 2.4 workaround.
14568 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
14569 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
14570 * python/python.c (do_start_initialization): Remove Python 2.4
14572 * python/py-prettyprint.c (class dummy_python_frame): Remove.
14573 (print_children): Remove Python 2.4 workaround.
14574 * python/py-inferior.c (buffer_procs): Remove Python 2.4
14576 (CHARBUFFERPROC_NAME): Remove.
14577 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
14578 Python 2.4 workaround.
14580 2019-02-27 Kevin Buettner <kevinb@redhat.com>
14582 * NEWS: Note minimum Python version.
14584 2019-02-27 Kevin Buettner <kevinb@redhat.com>
14586 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
14587 code from these functions. Remove corresponding ifdefs. Use
14588 Py_buffer_up instead of explicit calls to PyBuffer_Release.
14589 Remove gotos and target of gotos.
14590 (infpy_search_memory): Likewise.
14592 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14594 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
14595 (hppa_gdbarch_init): Don't register deleted functions with
14598 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14600 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
14601 (h8300_unwind_sp): Delete.
14602 (h8300_dummy_id): Delete.
14603 (h8300_gdbarch_init): Don't register deleted functions with
14606 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14608 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
14609 (ft32_unwind_pc): Delete.
14610 (ft32_unwind_sp): Delete.
14611 (ft32_gdbarch_init): Don't register deleted functions with
14614 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14616 * gdb/frv-tdep.c (frv_dummy_id): Delete.
14617 (frv_unwind_pc): Delete.
14618 (frv_unwind_sp): Delete.
14619 (frv_gdbarch_init): Don't register deleted functions with
14622 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14624 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
14625 (riscv_unwind_pc): Delete.
14626 (riscv_unwind_sp): Delete.
14627 (riscv_gdbarch_init): Don't register deleted functions with
14630 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14632 * gdb/csky-tdep.c (csky_dummy_id): Delete.
14633 (csky_unwind_pc): Delete.
14634 (csky_unwind_sp): Delete.
14635 (csky_gdbarch_init): Don't register deleted functions with
14638 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14640 * gdb/cris-tdep.c (cris_dummy_id): Delete.
14641 (cris_unwind_pc): Delete.
14642 (cris_unwind_sp): Delete.
14643 (cris_gdbarch_init): Don't register deleted functions with
14646 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14648 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
14649 (bfin_unwind_pc): Delete.
14650 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
14652 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14654 * gdb/arm-tdep.c (arm_dummy_id): Delete.
14655 (arm_unwind_pc): Delete.
14656 (arm_unwind_sp): Delete.
14657 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
14659 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14661 * gdb/arc-tdep.c (arc_dummy_id): Delete.
14662 (arc_unwind_pc): Delete.
14663 (arc_unwind_sp): Delete.
14664 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
14666 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14668 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
14669 (alpha_unwind_pc): Delete.
14670 (alpha_gdbarch_init): Don't register deleted functions with
14673 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14675 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
14676 (aarch64_unwind_pc): Delete.
14677 (aarch64_unwind_sp): Delete.
14678 (aarch64_gdbarch_init): Don't register deleted functions with
14681 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14683 * gdbtypes.c (type_align): Don't consider static members when
14684 computing structure alignment.
14686 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14688 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
14689 return 0 for other types.
14690 * arch-utils.c (default_type_align): Always return 0.
14691 * gdbarch.h: Regenerate.
14692 * gdbarch.sh (type_align): Extend comment.
14693 * gdbtypes.c (type_align): Add additional comments, always call
14694 gdbarch_type_align before applying the default rules.
14695 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
14696 generic code will then apply a suitable default.
14697 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
14698 types, return 0 for other types.
14700 2019-02-27 Joel Brobecker <brobecker@adacore.com>
14702 * NEWS: Create a new section for the next release branch.
14703 Rename the section of the current branch, now that it has
14706 2019-02-27 Joel Brobecker <brobecker@adacore.com>
14708 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
14709 * version.in: Bump version to 8.3.50.DATE-git.
14711 2019-02-26 Simon Marchi <simon.marchi@efficios.com>
14713 * aix-thread.c (ptid_cmp): Remove unused variable.
14714 (get_signaled_thread): Likewise.
14715 (store_regs_user_thread): Likewise.
14716 (store_regs_kernel_thread): Likewise.
14717 (fetch_regs_kernel_thread): Remove shadowed variable.
14719 2019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
14721 * features/riscv/32bit-cpu.xml: Add register numbers.
14722 * features/riscv/32bit-fpu.c: Regenerate.
14723 * features/riscv/32bit-fpu.xml: Add register numbers.
14724 * features/riscv/64bit-cpu.xml: Add register numbers.
14725 * features/riscv/64bit-fpu.c: Regenerate.
14726 * features/riscv/64bit-fpu.xml: Add register numbers.
14728 2019-02-26 Kevin Buettner <kevinb@redhat.com>
14730 * NEWS: Mention two argument form of gdb.Value constructor.
14731 * python/py-value.c (convert_buffer_and_type_to_value): New
14733 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
14734 Add support for handling an optional second argument. Call
14735 convert_buffer_and_type_to_value as appropriate.
14736 * python/python-internal.h (Py_buffer_deleter): New struct.
14737 (Py_buffer_up): New typedef.
14739 2019-02-25 John Baldwin <jhb@FreeBSD.org>
14741 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
14742 instead of releasing ownership.
14744 2019-02-25 Jordan Rupprecht <rupprecht@google.com>
14746 * dwarf2read.c (open_and_init_dwp_file): Call
14747 elf_numsections instead of bfd_count_sections to initialize
14748 dwp_file->num_sections.
14750 2019-02-25 Tom Tromey <tromey@adacore.com>
14752 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
14754 2019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
14756 * gcore.in: Add '--readnever' option when invoking GDB.
14758 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
14760 * MAINTAINERS: Update my email address.
14762 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
14764 * build-id.c (build_id_to_debug_bfd_1): New function.
14765 (build_id_to_debug_bfd): Look for separate debug file in
14768 2019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
14770 * gdbarch.sh: Update the copyright year range that is placed into
14773 2019-02-22 Keith Seitz <keiths@redhat.com>
14776 * linespec.c (create_sals_line_offset): Search for the default
14777 symtab's filename instead of its fullname.
14779 2019-02-21 Alan Hayward <alan.hayward@arm.com>
14781 * NEWS: Update style defaults.
14783 2019-02-21 Alan Hayward <alan.hayward@arm.com>
14785 * main.c (captured_main_1): Disable styling in batch mode.
14787 2019-02-20 Tom Tromey <tom@tromey.com>
14789 * symtab.c (symtab_symbol_info): Fix typos.
14791 2019-02-20 Tom Tromey <tromey@adacore.com>
14793 * findcmd.c (_initialize_mem_search): Use upper case for
14794 metasyntactic variables.
14796 2019-02-20 Alan Hayward <alan.hayward@arm.com>
14798 * aarch64-tdep.c (aarch64_add_reggroups): New function.
14799 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
14801 2019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
14803 * top.h (source_file_name): Change to std::string.
14804 * top.c (source_file_name): Likewise.
14805 (command_line_input): Adjust.
14806 * cli/cli-script.c (script_from_file): Adjust.
14808 2019-02-19 Tom Tromey <tromey@adacore.com>
14810 * ravenscar-thread.c
14811 (ravenscar_thread_target::update_thread_list): Don't call
14812 ada_build_task_list.
14813 * ada-lang.h (ada_build_task_list): Don't declare.
14814 * ada-tasks.c (struct ada_tasks_inferior_data)
14815 <task_list_valid_p>: Now bool.
14816 (read_known_tasks, ada_task_list_changed)
14817 (ada_tasks_invalidate_inferior_data): Update.
14818 (read_known_tasks_array): Return bool.
14819 (read_known_tasks_list): Likewise.
14820 (read_known_tasks): Return void.
14821 (ada_build_task_list): Now static.
14823 2019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
14825 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
14826 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
14828 2019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14830 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
14831 variant for ada_tasks_pspace_data_handle and
14832 ada_tasks_inferior_data_handle.
14833 (ada_tasks_pspace_data_cleanup): New function.
14834 (ada_tasks_inferior_data_cleanup): New function.
14836 2019-02-17 Tom Tromey <tom@tromey.com>
14838 * macrotab.h (macro_source_fullname): Return a std::string.
14839 * macrotab.c (macro_include, check_for_redefinition)
14840 (macro_undef, macro_lookup_definition, foreach_macro)
14841 (foreach_macro_in_scope): Update.
14842 (macro_source_fullname): Return a std::string.
14843 * macrocmd.c (show_pp_source_pos): Update.
14845 2019-02-17 Tom Tromey <tom@tromey.com>
14847 * macrocmd.c (show_pp_source_pos): Style the file names.
14849 2019-02-17 Tom Tromey <tom@tromey.com>
14852 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
14854 2019-02-17 Tom Tromey <tom@tromey.com>
14856 * ada-lang.c (user_select_syms): Use filtered printing.
14857 * utils.c (wrap_style): New global.
14858 (desired_style): Remove.
14859 (emit_style_escape): Add stream parameter.
14860 (set_output_style, reset_terminal_style, prompt_for_continue):
14862 (flush_wrap_buffer): Only flush gdb_stdout.
14863 (wrap_here): Set wrap_style.
14864 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
14865 treat escape sequences as a character. Change when wrap buffer is
14867 (fputs_styled): Do not set the output style when the default is
14869 * ui-style.h (struct ui_file_style) <is_default>: New method.
14870 * source.c (print_source_lines_base): Emit escape sequences in one
14873 2019-02-17 Joel Brobecker <brobecker@adacore.com>
14875 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
14876 integers and enumeration types.
14878 2019-02-17 Joel Brobecker <brobecker@adacore.com>
14880 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
14881 instead of lookup_symbol_in_language
14882 (do_exact_match): New function.
14883 (ada_get_symbol_name_matcher): Return do_exact_match when
14884 doing a verbatim match.
14886 2019-02-15 Tom Tromey <tromey@adacore.com>
14888 * ravenscar-thread.c (ravenscar_thread_target::resume)
14889 (ravenscar_thread_target::wait): Special case wildcard requests.
14891 2019-02-15 Tom Tromey <tromey@adacore.com>
14893 * ravenscar-thread.c (base_ptid): Remove.
14894 (struct ravenscar_thread_target) <close>: New method.
14895 <m_base_ptid>: New member.
14896 <update_inferior_ptid, active_task, task_is_currently_active,
14897 runtime_initialized>: Declare methods.
14898 <ravenscar_thread_target>: Add constructor.
14899 (ravenscar_thread_target::task_is_currently_active)
14900 (ravenscar_thread_target::update_inferior_ptid)
14901 (ravenscar_runtime_initialized): Rename. Now methods.
14902 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
14903 (ravenscar_thread_target::update_thread_list): Update.
14904 (ravenscar_thread_target::active_task): Now method.
14905 (ravenscar_thread_target::store_registers)
14906 (ravenscar_thread_target::prepare_to_store)
14907 (ravenscar_thread_target::prepare_to_store)
14908 (ravenscar_thread_target::mourn_inferior): Update.
14909 (ravenscar_inferior_created): Use "new" to create target.
14910 (ravenscar_thread_target::get_ada_task_ptid): Update.
14911 (_initialize_ravenscar): Don't initialize base_ptid.
14912 (ravenscar_ops): Remove global.
14914 2019-02-15 Tom Tromey <tromey@adacore.com>
14916 * target.h (push_target): Declare new overload.
14917 * target.c (push_target): New overload, taking an rvalue reference.
14918 * remote.c (remote_target::open_1): Use push_target overload.
14919 * corelow.c (core_target_open): Use push_target overload.
14921 2019-02-15 Tom Tromey <tromey@adacore.com>
14923 * ravenscar-thread.c (is_ravenscar_task)
14924 (ravenscar_task_is_currently_active): Return bool.
14925 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
14926 (_initialize_ravenscar): Remove "(void)".
14927 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
14930 2019-02-15 Tom Tromey <tromey@adacore.com>
14932 * ravenscar-thread.c (ravenscar_runtime_initializer)
14933 (has_ravenscar_runtime, get_running_thread_id)
14934 (ravenscar_thread_target::resume): Fix indentation.
14936 2019-02-15 Tom Tromey <tromey@adacore.com>
14938 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
14939 from ravenscar_arch_ops.
14940 (sparc_ravenscar_ops::fetch_registers)
14941 (sparc_ravenscar_ops::store_registers): Now methods.
14942 (sparc_ravenscar_prepare_to_store): Remove.
14943 (sparc_ravenscar_ops): Redefine.
14944 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
14945 methods and destructor. Remove members.
14946 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
14947 (ravenscar_thread_target::store_registers)
14948 (ravenscar_thread_target::prepare_to_store): Update.
14949 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
14951 (struct ppc_ravenscar_powerpc_ops): Derive from
14952 ravenscar_arch_ops.
14953 (ppc_ravenscar_powerpc_ops::fetch_registers)
14954 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
14955 (ppc_ravenscar_powerpc_ops): Redefine.
14956 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
14957 (ppc_ravenscar_e500_ops::fetch_registers)
14958 (ppc_ravenscar_e500_ops::store_registers): Now methods.
14959 (ppc_ravenscar_e500_ops): Redefine.
14960 * aarch64-ravenscar-thread.c
14961 (aarch64_ravenscar_generic_prepare_to_store): Remove.
14962 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
14963 (aarch64_ravenscar_fetch_registers)
14964 (aarch64_ravenscar_store_registers): Now methods.
14965 (aarch64_ravenscar_ops): Redefine.
14967 2019-02-15 Tom Tromey <tromey@adacore.com>
14969 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
14970 (ravenscar_thread_target::stopped_by_hw_breakpoint)
14971 (ravenscar_thread_target::stopped_by_watchpoint)
14972 (ravenscar_thread_target::stopped_data_address)
14973 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
14975 2019-02-15 Tom Tromey <tromey@adacore.com>
14977 * ravenscar-thread.c: Fix some typos.
14979 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14980 Tom Tromey <tromey@adacore.com>
14982 * ada-lang.c (ada_exception_sal): Change addr_string to a
14984 (create_ada_exception_catchpoint): Update.
14986 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14987 Tom Tromey <tromey@adacore.com>
14989 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
14990 (bp_location_ops): Remove.
14991 (base_breakpoint_allocate_location): Update.
14992 (free_bp_location): Update.
14993 * ada-lang.c (class ada_catchpoint_location)
14994 <ada_catchpoint_location>: Remove ops parameter.
14995 (ada_catchpoint_location_dtor): Remove.
14996 (ada_catchpoint_location_ops): Remove.
14997 (allocate_location_exception): Update.
14998 * breakpoint.h (struct bp_location_ops): Remove.
14999 (class bp_location) <bp_location>: Remove bp_location_ops
15001 <~bp_location>: Add destructor.
15004 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
15005 Pedro Alves <palves@redhat.com>
15007 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
15010 2019-02-14 David Michael <fedora.dm0@gmail.com>
15011 Samuel Thibault <samuel.thibault@gnu.org>
15012 Thomas Schwinge <thomas@codesourcery.com>
15014 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
15015 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
15017 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
15019 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
15020 (check_empty): Use "const char *".
15022 * gnu-nat.c (gnu_nat_target::detach): Instead of
15023 'detach_inferior (pid)' call
15024 'detach_inferior (find_inferior_pid (pid))'.
15026 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
15027 'nat/fork-inferior.o'.
15028 * gnu-nat.c: #include "nat/fork-inferior.h".
15030 * gnu-nat.c (gnu_nat_target::detach): Instead of
15031 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
15032 * gnu-nat.h: #include "inf-child.h".
15033 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
15034 'i386_gnu_nat_target::fetch_registers'.
15035 (gnu_store_registers): Rename/move to
15036 'i386_gnu_nat_target::store_registers'.
15038 * config/i386/nm-i386gnu.h: Don't "#include" any files.
15039 * gnu-nat.h (mach_thread_info): New function.
15040 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
15042 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
15044 2019-02-14 Frederic Konrad <konrad@adacore.com>
15046 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
15048 2019-02-14 Joel Brobecker <brobecker@adacore.com>
15050 * windows-nat.c (windows_add_thread): Add new parameter
15051 "main_thread_p" with default value set to false. Update
15052 function documentation as well as all callers.
15053 (windows_delete_thread): Likewise.
15054 (fake_create_process): Update call to windows_add_thread.
15055 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
15056 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
15057 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
15058 call to windows_delete_thread.
15060 2019-02-13 Simon Marchi <simon.marchi@ericsson.com>
15062 * MAINTAINERS: Add Andrew Burgess as global maintainer.
15064 2019-02-12 John Baldwin <jhb@FreeBSD.org>
15066 * symfile.c (find_separate_debug_file): Use canonical path of
15067 sysroot with child_path instead of gdb_sysroot if it is valid.
15069 2019-02-12 John Baldwin <jhb@FreeBSD.org>
15071 * symfile.c (find_separate_debug_file): Use child_path to
15072 determine if an object file is under a sysroot.
15074 2019-02-12 John Baldwin <jhb@FreeBSD.org>
15076 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
15077 unittests/child-path-selftests.c.
15078 * common/pathstuff.c (child_path): New function.
15079 * common/pathstuff.h (child_path): New prototype.
15080 * unittests/child-path-selftests.c: New file.
15082 2019-02-12 John Baldwin <jhb@FreeBSD.org>
15084 * symfile.c (find_separate_debug_file): Look for separate debug
15085 files in debug directories under the sysroot.
15087 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15089 * symtab.h (struct minimal_symbol data_p): New const method.
15090 (struct minimal_symbol text_p): Likewise.
15091 * symtab.c (output_source_filename): Use file name style
15092 to print file name.
15093 (print_symbol_info): Likewise.
15094 (print_msymbol_info): Use address style to print addresses.
15095 Use function name style to print executable text symbols.
15096 (expand_symtab_containing_pc): Use data_p.
15097 (find_pc_sect_compunit_symtab): Likewise.
15099 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15101 * breakpoint.c (describe_other_breakpoints): Use address style
15102 to print addresses.
15103 (say_where): Likewise.
15105 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15107 * ada-typeprint.c (print_func_type): Print function name
15108 style to print function name.
15109 * c-typeprint.c (c_print_type_1): Likewise.
15111 2019-02-11 Alan Hayward <alan.hayward@arm.com>
15113 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
15116 2019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15118 * c-exp.y (direct_abs_decl): Use emplace_back to record the
15121 2019-02-10 Joel Brobecker <brobecker@adacore.com>
15123 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
15124 TYPE_CODE_REF types.
15126 2019-02-08 Jim Wilson <jimw@sifive.com>
15128 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
15129 (riscv_linux_fregset): New.
15130 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
15132 2019-02-07 Tom Tromey <tom@tromey.com>
15134 * thread.c (thread_cancel_execution_command): Update.
15135 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
15137 (struct thread_fsm_ops): Remove.
15138 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
15139 (thread_fsm_should_stop, thread_fsm_return_value)
15140 (thread_fsm_set_finished, thread_fsm_finished_p)
15141 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
15143 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
15144 * infrun.c (clear_proceed_status_thread)
15145 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
15146 (print_stop_event): Update.
15147 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
15149 (step_command_fsm_ops): Remove.
15150 (new_step_command_fsm): Remove.
15152 (step_command_fsm::should_stop): Rename from
15153 step_command_fsm_should_stop.
15154 (step_command_fsm::clean_up): Rename from
15155 step_command_fsm_clean_up.
15156 (step_command_fsm::do_async_reply_reason): Rename from
15157 step_command_fsm_async_reply_reason.
15158 (struct until_next_fsm): Inherit from thread_fsm. Add
15160 (until_next_fsm_ops): Remove.
15161 (new_until_next_fsm): Remove.
15162 (until_next_fsm::should_stop): Rename from
15163 until_next_fsm_should_stop.
15164 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
15165 (until_next_fsm::do_async_reply_reason): Rename from
15166 until_next_fsm_async_reply_reason.
15167 (struct finish_command_fsm): Inherit from thread_fsm. Add
15168 constructor. Change type of breakpoint.
15169 (finish_command_fsm_ops): Remove.
15170 (new_finish_command_fsm): Remove.
15171 (finish_command_fsm::should_stop): Rename from
15172 finish_command_fsm_should_stop.
15173 (finish_command_fsm::clean_up): Rename from
15174 finish_command_fsm_clean_up.
15175 (finish_command_fsm::return_value): Rename from
15176 finish_command_fsm_return_value.
15177 (finish_command_fsm::do_async_reply_reason): Rename from
15178 finish_command_fsm_async_reply_reason.
15179 (finish_command): Update.
15180 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
15182 (call_thread_fsm_ops): Remove.
15183 (call_thread_fsm::call_thread_fsm): Rename from
15184 new_call_thread_fsm.
15185 (call_thread_fsm::should_stop): Rename from
15186 call_thread_fsm_should_stop.
15187 (call_thread_fsm::should_notify_stop): Rename from
15188 call_thread_fsm_should_notify_stop.
15189 (run_inferior_call, call_function_by_hand_dummy): Update.
15190 * cli/cli-interp.c (should_print_stop_to_console): Update.
15191 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
15192 Add constructor. Change type of location_breakpoint,
15194 (until_break_fsm_ops): Remove.
15195 (new_until_break_fsm): Remove.
15196 (until_break_fsm::should_stop): Rename from
15197 until_break_fsm_should_stop.
15198 (until_break_fsm::clean_up): Rename from
15199 until_break_fsm_clean_up.
15200 (until_break_fsm::do_async_reply_reason): Rename from
15201 until_break_fsm_async_reply_reason.
15202 (until_break_command): Update.
15203 * thread-fsm.c: Remove.
15204 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
15206 2019-02-07 Tom Tromey <tom@tromey.com>
15208 * yy-remap.h: Add include guard.
15209 * xtensa-tdep.h: Add include guard.
15210 * xcoffread.h: Rename include guard.
15211 * varobj-iter.h: Add include guard.
15212 * tui/tui.h: Rename include guard.
15213 * tui/tui-winsource.h: Rename include guard.
15214 * tui/tui-wingeneral.h: Rename include guard.
15215 * tui/tui-windata.h: Rename include guard.
15216 * tui/tui-win.h: Rename include guard.
15217 * tui/tui-stack.h: Rename include guard.
15218 * tui/tui-source.h: Rename include guard.
15219 * tui/tui-regs.h: Rename include guard.
15220 * tui/tui-out.h: Rename include guard.
15221 * tui/tui-layout.h: Rename include guard.
15222 * tui/tui-io.h: Rename include guard.
15223 * tui/tui-hooks.h: Rename include guard.
15224 * tui/tui-file.h: Rename include guard.
15225 * tui/tui-disasm.h: Rename include guard.
15226 * tui/tui-data.h: Rename include guard.
15227 * tui/tui-command.h: Rename include guard.
15228 * tic6x-tdep.h: Add include guard.
15229 * target/waitstatus.h: Rename include guard.
15230 * target/wait.h: Rename include guard.
15231 * target/target.h: Rename include guard.
15232 * target/resume.h: Rename include guard.
15233 * target-float.h: Rename include guard.
15234 * stabsread.h: Add include guard.
15235 * rs6000-tdep.h: Add include guard.
15236 * riscv-fbsd-tdep.h: Add include guard.
15237 * regformats/regdef.h: Rename include guard.
15238 * record.h: Rename include guard.
15239 * python/python.h: Rename include guard.
15240 * python/python-internal.h: Rename include guard.
15241 * python/py-stopevent.h: Rename include guard.
15242 * python/py-ref.h: Rename include guard.
15243 * python/py-record.h: Rename include guard.
15244 * python/py-record-full.h: Rename include guard.
15245 * python/py-record-btrace.h: Rename include guard.
15246 * python/py-instruction.h: Rename include guard.
15247 * python/py-events.h: Rename include guard.
15248 * python/py-event.h: Rename include guard.
15249 * procfs.h: Add include guard.
15250 * proc-utils.h: Add include guard.
15251 * p-lang.h: Add include guard.
15252 * or1k-tdep.h: Rename include guard.
15253 * observable.h: Rename include guard.
15254 * nto-tdep.h: Rename include guard.
15255 * nat/x86-linux.h: Rename include guard.
15256 * nat/x86-linux-dregs.h: Rename include guard.
15257 * nat/x86-gcc-cpuid.h: Add include guard.
15258 * nat/x86-dregs.h: Rename include guard.
15259 * nat/x86-cpuid.h: Rename include guard.
15260 * nat/ppc-linux.h: Rename include guard.
15261 * nat/mips-linux-watch.h: Rename include guard.
15262 * nat/linux-waitpid.h: Rename include guard.
15263 * nat/linux-ptrace.h: Rename include guard.
15264 * nat/linux-procfs.h: Rename include guard.
15265 * nat/linux-osdata.h: Rename include guard.
15266 * nat/linux-nat.h: Rename include guard.
15267 * nat/linux-namespaces.h: Rename include guard.
15268 * nat/linux-btrace.h: Rename include guard.
15269 * nat/glibc_thread_db.h: Rename include guard.
15270 * nat/gdb_thread_db.h: Rename include guard.
15271 * nat/gdb_ptrace.h: Rename include guard.
15272 * nat/fork-inferior.h: Rename include guard.
15273 * nat/amd64-linux-siginfo.h: Rename include guard.
15274 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
15275 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
15276 * nat/aarch64-linux.h: Rename include guard.
15277 * nat/aarch64-linux-hw-point.h: Rename include guard.
15278 * mn10300-tdep.h: Add include guard.
15279 * mips-linux-tdep.h: Add include guard.
15280 * mi/mi-parse.h: Rename include guard.
15281 * mi/mi-out.h: Rename include guard.
15282 * mi/mi-main.h: Rename include guard.
15283 * mi/mi-interp.h: Rename include guard.
15284 * mi/mi-getopt.h: Rename include guard.
15285 * mi/mi-console.h: Rename include guard.
15286 * mi/mi-common.h: Rename include guard.
15287 * mi/mi-cmds.h: Rename include guard.
15288 * mi/mi-cmd-break.h: Rename include guard.
15289 * m2-lang.h: Add include guard.
15290 * location.h: Rename include guard.
15291 * linux-record.h: Rename include guard.
15292 * linux-nat.h: Add include guard.
15293 * linux-fork.h: Add include guard.
15294 * i386-darwin-tdep.h: Rename include guard.
15295 * hppa-linux-offsets.h: Add include guard.
15296 * guile/guile.h: Rename include guard.
15297 * guile/guile-internal.h: Rename include guard.
15298 * gnu-nat.h: Rename include guard.
15299 * gdb-stabs.h: Rename include guard.
15300 * frv-tdep.h: Add include guard.
15301 * f-lang.h: Add include guard.
15302 * event-loop.h: Add include guard.
15303 * darwin-nat.h: Rename include guard.
15304 * cp-abi.h: Rename include guard.
15305 * config/sparc/nm-sol2.h: Rename include guard.
15306 * config/nm-nto.h: Rename include guard.
15307 * config/nm-linux.h: Add include guard.
15308 * config/i386/nm-i386gnu.h: Rename include guard.
15309 * config/djgpp/nl_types.h: Rename include guard.
15310 * config/djgpp/langinfo.h: Rename include guard.
15311 * compile/gcc-cp-plugin.h: Add include guard.
15312 * compile/gcc-c-plugin.h: Add include guard.
15313 * compile/compile.h: Rename include guard.
15314 * compile/compile-object-run.h: Rename include guard.
15315 * compile/compile-object-load.h: Rename include guard.
15316 * compile/compile-internal.h: Rename include guard.
15317 * compile/compile-cplus.h: Rename include guard.
15318 * compile/compile-c.h: Rename include guard.
15319 * common/xml-utils.h: Rename include guard.
15320 * common/x86-xstate.h: Rename include guard.
15321 * common/version.h: Rename include guard.
15322 * common/vec.h: Rename include guard.
15323 * common/tdesc.h: Rename include guard.
15324 * common/selftest.h: Rename include guard.
15325 * common/scoped_restore.h: Rename include guard.
15326 * common/scoped_mmap.h: Rename include guard.
15327 * common/scoped_fd.h: Rename include guard.
15328 * common/safe-iterator.h: Rename include guard.
15329 * common/run-time-clock.h: Rename include guard.
15330 * common/refcounted-object.h: Rename include guard.
15331 * common/queue.h: Rename include guard.
15332 * common/ptid.h: Rename include guard.
15333 * common/print-utils.h: Rename include guard.
15334 * common/preprocessor.h: Rename include guard.
15335 * common/pathstuff.h: Rename include guard.
15336 * common/observable.h: Rename include guard.
15337 * common/netstuff.h: Rename include guard.
15338 * common/job-control.h: Rename include guard.
15339 * common/host-defs.h: Rename include guard.
15340 * common/gdb_wait.h: Rename include guard.
15341 * common/gdb_vecs.h: Rename include guard.
15342 * common/gdb_unlinker.h: Rename include guard.
15343 * common/gdb_unique_ptr.h: Rename include guard.
15344 * common/gdb_tilde_expand.h: Rename include guard.
15345 * common/gdb_sys_time.h: Rename include guard.
15346 * common/gdb_string_view.h: Rename include guard.
15347 * common/gdb_splay_tree.h: Rename include guard.
15348 * common/gdb_setjmp.h: Rename include guard.
15349 * common/gdb_ref_ptr.h: Rename include guard.
15350 * common/gdb_optional.h: Rename include guard.
15351 * common/gdb_locale.h: Rename include guard.
15352 * common/gdb_assert.h: Rename include guard.
15353 * common/filtered-iterator.h: Rename include guard.
15354 * common/filestuff.h: Rename include guard.
15355 * common/fileio.h: Rename include guard.
15356 * common/environ.h: Rename include guard.
15357 * common/common-utils.h: Rename include guard.
15358 * common/common-types.h: Rename include guard.
15359 * common/common-regcache.h: Rename include guard.
15360 * common/common-inferior.h: Rename include guard.
15361 * common/common-gdbthread.h: Rename include guard.
15362 * common/common-exceptions.h: Rename include guard.
15363 * common/common-defs.h: Rename include guard.
15364 * common/common-debug.h: Rename include guard.
15365 * common/cleanups.h: Rename include guard.
15366 * common/buffer.h: Rename include guard.
15367 * common/btrace-common.h: Rename include guard.
15368 * common/break-common.h: Rename include guard.
15369 * cli/cli-utils.h: Rename include guard.
15370 * cli/cli-style.h: Rename include guard.
15371 * cli/cli-setshow.h: Rename include guard.
15372 * cli/cli-script.h: Rename include guard.
15373 * cli/cli-interp.h: Rename include guard.
15374 * cli/cli-decode.h: Rename include guard.
15375 * cli/cli-cmds.h: Rename include guard.
15376 * charset-list.h: Add include guard.
15377 * buildsym-legacy.h: Rename include guard.
15378 * bfin-tdep.h: Add include guard.
15379 * ax.h: Rename include guard.
15380 * arm-linux-tdep.h: Add include guard.
15381 * arm-fbsd-tdep.h: Add include guard.
15382 * arch/xtensa.h: Rename include guard.
15383 * arch/tic6x.h: Add include guard.
15384 * arch/i386.h: Add include guard.
15385 * arch/arm.h: Rename include guard.
15386 * arch/arm-linux.h: Rename include guard.
15387 * arch/arm-get-next-pcs.h: Rename include guard.
15388 * arch/amd64.h: Add include guard.
15389 * arch/aarch64-insn.h: Rename include guard.
15390 * arch-utils.h: Rename include guard.
15391 * annotate.h: Add include guard.
15392 * amd64-darwin-tdep.h: Rename include guard.
15393 * aarch64-linux-tdep.h: Add include guard.
15394 * aarch64-fbsd-tdep.h: Add include guard.
15395 * aarch32-linux-nat.h: Add include guard.
15397 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15399 * macrotab.c (macro_define_internal): New function that
15400 factorizes macro_define_object_internal and macro_define_function
15402 (macro_define_object_internal): Use macro_define_internal.
15403 (macro_define_function): Likewise.
15405 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15407 * macrocmd.c (extract_identifier): Return
15408 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
15411 2019-02-06 John Baldwin <jhb@FreeBSD.org>
15413 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
15415 2019-02-05 Tom Tromey <tom@tromey.com>
15417 * target.c (target_stack::unpush): Move assertion earlier.
15419 2019-01-30 Tom Tromey <tom@tromey.com>
15422 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
15423 (gdbpy_parse_and_eval): Likewise.
15424 * python/python-internal.h (gdbpy_allow_threads): New class.
15426 2019-01-28 John Baldwin <jhb@FreeBSD.org>
15428 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
15429 (aarch64_fbsd_fpregmap): Move earlier.
15430 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
15431 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
15432 instead of individual calls to trad_frame_set_reg_addr.
15433 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
15435 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
15436 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
15437 instead of individual calls to trad_frame_set_reg_addr.
15439 2019-01-28 Alan Hayward <alan.hayward@arm.com>
15441 * CONTRIBUTE: Replace contribution list with wiki link.
15443 2019-01-25 Tom Tromey <tom@tromey.com>
15445 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
15447 2019-01-25 Tom Tromey <tom@tromey.com>
15449 * xtensa-linux-nat.c: Fix common/ includes.
15450 * xml-support.h: Fix common/ includes.
15451 * xml-support.c: Fix common/ includes.
15452 * x86-linux-nat.c: Fix common/ includes.
15453 * windows-nat.c: Fix common/ includes.
15454 * varobj.h: Fix common/ includes.
15455 * varobj.c: Fix common/ includes.
15456 * value.c: Fix common/ includes.
15457 * valops.c: Fix common/ includes.
15458 * utils.c: Fix common/ includes.
15459 * unittests/xml-utils-selftests.c: Fix common/ includes.
15460 * unittests/utils-selftests.c: Fix common/ includes.
15461 * unittests/unpack-selftests.c: Fix common/ includes.
15462 * unittests/tracepoint-selftests.c: Fix common/ includes.
15463 * unittests/style-selftests.c: Fix common/ includes.
15464 * unittests/string_view-selftests.c: Fix common/ includes.
15465 * unittests/scoped_restore-selftests.c: Fix common/ includes.
15466 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
15467 * unittests/scoped_fd-selftests.c: Fix common/ includes.
15468 * unittests/rsp-low-selftests.c: Fix common/ includes.
15469 * unittests/parse-connection-spec-selftests.c: Fix common/
15471 * unittests/optional-selftests.c: Fix common/ includes.
15472 * unittests/offset-type-selftests.c: Fix common/ includes.
15473 * unittests/observable-selftests.c: Fix common/ includes.
15474 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
15475 * unittests/memrange-selftests.c: Fix common/ includes.
15476 * unittests/memory-map-selftests.c: Fix common/ includes.
15477 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
15478 * unittests/function-view-selftests.c: Fix common/ includes.
15479 * unittests/environ-selftests.c: Fix common/ includes.
15480 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
15481 * unittests/common-utils-selftests.c: Fix common/ includes.
15482 * unittests/cli-utils-selftests.c: Fix common/ includes.
15483 * unittests/array-view-selftests.c: Fix common/ includes.
15484 * ui-file.c: Fix common/ includes.
15485 * tui/tui-io.c: Fix common/ includes.
15486 * tracepoint.h: Fix common/ includes.
15487 * tracepoint.c: Fix common/ includes.
15488 * tracefile-tfile.c: Fix common/ includes.
15489 * top.h: Fix common/ includes.
15490 * top.c: Fix common/ includes.
15491 * thread.c: Fix common/ includes.
15492 * target/waitstatus.h: Fix common/ includes.
15493 * target/waitstatus.c: Fix common/ includes.
15494 * target.h: Fix common/ includes.
15495 * target.c: Fix common/ includes.
15496 * target-memory.c: Fix common/ includes.
15497 * target-descriptions.c: Fix common/ includes.
15498 * symtab.h: Fix common/ includes.
15499 * symfile.c: Fix common/ includes.
15500 * stap-probe.c: Fix common/ includes.
15501 * spu-linux-nat.c: Fix common/ includes.
15502 * sparc-nat.c: Fix common/ includes.
15503 * source.c: Fix common/ includes.
15504 * solib.c: Fix common/ includes.
15505 * solib-target.c: Fix common/ includes.
15506 * ser-unix.c: Fix common/ includes.
15507 * ser-tcp.c: Fix common/ includes.
15508 * ser-pipe.c: Fix common/ includes.
15509 * ser-base.c: Fix common/ includes.
15510 * selftest-arch.c: Fix common/ includes.
15511 * s12z-tdep.c: Fix common/ includes.
15512 * rust-exp.y: Fix common/ includes.
15513 * rs6000-aix-tdep.c: Fix common/ includes.
15514 * riscv-tdep.c: Fix common/ includes.
15515 * remote.c: Fix common/ includes.
15516 * remote-notif.h: Fix common/ includes.
15517 * remote-fileio.h: Fix common/ includes.
15518 * remote-fileio.c: Fix common/ includes.
15519 * regcache.h: Fix common/ includes.
15520 * regcache.c: Fix common/ includes.
15521 * record-btrace.c: Fix common/ includes.
15522 * python/python.c: Fix common/ includes.
15523 * python/py-type.c: Fix common/ includes.
15524 * python/py-inferior.c: Fix common/ includes.
15525 * progspace.h: Fix common/ includes.
15526 * producer.c: Fix common/ includes.
15527 * procfs.c: Fix common/ includes.
15528 * proc-api.c: Fix common/ includes.
15529 * printcmd.c: Fix common/ includes.
15530 * ppc-linux-nat.c: Fix common/ includes.
15531 * parser-defs.h: Fix common/ includes.
15532 * osdata.c: Fix common/ includes.
15533 * obsd-nat.c: Fix common/ includes.
15534 * nat/x86-linux.c: Fix common/ includes.
15535 * nat/x86-linux-dregs.c: Fix common/ includes.
15536 * nat/x86-dregs.h: Fix common/ includes.
15537 * nat/x86-dregs.c: Fix common/ includes.
15538 * nat/ppc-linux.c: Fix common/ includes.
15539 * nat/mips-linux-watch.h: Fix common/ includes.
15540 * nat/mips-linux-watch.c: Fix common/ includes.
15541 * nat/linux-waitpid.c: Fix common/ includes.
15542 * nat/linux-ptrace.h: Fix common/ includes.
15543 * nat/linux-ptrace.c: Fix common/ includes.
15544 * nat/linux-procfs.c: Fix common/ includes.
15545 * nat/linux-personality.c: Fix common/ includes.
15546 * nat/linux-osdata.c: Fix common/ includes.
15547 * nat/linux-namespaces.c: Fix common/ includes.
15548 * nat/linux-btrace.h: Fix common/ includes.
15549 * nat/linux-btrace.c: Fix common/ includes.
15550 * nat/fork-inferior.c: Fix common/ includes.
15551 * nat/amd64-linux-siginfo.c: Fix common/ includes.
15552 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
15553 * nat/aarch64-linux.c: Fix common/ includes.
15554 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
15555 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
15556 * namespace.h: Fix common/ includes.
15557 * mips-linux-tdep.c: Fix common/ includes.
15558 * minsyms.c: Fix common/ includes.
15559 * mi/mi-parse.h: Fix common/ includes.
15560 * mi/mi-main.c: Fix common/ includes.
15561 * mi/mi-cmd-env.c: Fix common/ includes.
15562 * memrange.h: Fix common/ includes.
15563 * memattr.c: Fix common/ includes.
15564 * maint.h: Fix common/ includes.
15565 * maint.c: Fix common/ includes.
15566 * main.c: Fix common/ includes.
15567 * machoread.c: Fix common/ includes.
15568 * location.c: Fix common/ includes.
15569 * linux-thread-db.c: Fix common/ includes.
15570 * linux-nat.c: Fix common/ includes.
15571 * linux-fork.c: Fix common/ includes.
15572 * inline-frame.c: Fix common/ includes.
15573 * infrun.c: Fix common/ includes.
15574 * inflow.c: Fix common/ includes.
15575 * inferior.h: Fix common/ includes.
15576 * inferior.c: Fix common/ includes.
15577 * infcmd.c: Fix common/ includes.
15578 * inf-ptrace.c: Fix common/ includes.
15579 * inf-child.c: Fix common/ includes.
15580 * ia64-linux-nat.c: Fix common/ includes.
15581 * i387-tdep.c: Fix common/ includes.
15582 * i386-tdep.c: Fix common/ includes.
15583 * i386-linux-tdep.c: Fix common/ includes.
15584 * i386-linux-nat.c: Fix common/ includes.
15585 * i386-go32-tdep.c: Fix common/ includes.
15586 * i386-fbsd-tdep.c: Fix common/ includes.
15587 * i386-fbsd-nat.c: Fix common/ includes.
15588 * guile/scm-type.c: Fix common/ includes.
15589 * guile/guile.c: Fix common/ includes.
15590 * go32-nat.c: Fix common/ includes.
15591 * gnu-nat.c: Fix common/ includes.
15592 * gdbthread.h: Fix common/ includes.
15593 * gdbarch-selftests.c: Fix common/ includes.
15594 * gdb_usleep.c: Fix common/ includes.
15595 * gdb_select.h: Fix common/ includes.
15596 * gdb_bfd.c: Fix common/ includes.
15597 * gcore.c: Fix common/ includes.
15598 * fork-child.c: Fix common/ includes.
15599 * findvar.c: Fix common/ includes.
15600 * fbsd-nat.c: Fix common/ includes.
15601 * event-top.c: Fix common/ includes.
15602 * event-loop.c: Fix common/ includes.
15603 * dwarf2read.c: Fix common/ includes.
15604 * dwarf2loc.c: Fix common/ includes.
15605 * dwarf2-frame.c: Fix common/ includes.
15606 * dwarf-index-cache.c: Fix common/ includes.
15607 * dtrace-probe.c: Fix common/ includes.
15608 * disasm-selftests.c: Fix common/ includes.
15609 * defs.h: Fix common/ includes.
15610 * csky-tdep.c: Fix common/ includes.
15611 * cp-valprint.c: Fix common/ includes.
15612 * cp-support.h: Fix common/ includes.
15613 * cp-support.c: Fix common/ includes.
15614 * corelow.c: Fix common/ includes.
15615 * completer.h: Fix common/ includes.
15616 * completer.c: Fix common/ includes.
15617 * compile/compile.c: Fix common/ includes.
15618 * compile/compile-loc2c.c: Fix common/ includes.
15619 * compile/compile-cplus-types.c: Fix common/ includes.
15620 * compile/compile-cplus-symbols.c: Fix common/ includes.
15621 * command.h: Fix common/ includes.
15622 * cli/cli-dump.c: Fix common/ includes.
15623 * cli/cli-cmds.c: Fix common/ includes.
15624 * charset.c: Fix common/ includes.
15625 * build-id.c: Fix common/ includes.
15626 * btrace.h: Fix common/ includes.
15627 * btrace.c: Fix common/ includes.
15628 * breakpoint.h: Fix common/ includes.
15629 * breakpoint.c: Fix common/ includes.
15631 (enum agent_op): Fix common/ includes.
15632 * ax-general.c (struct aop_map): Fix common/ includes.
15633 * ax-gdb.c: Fix common/ includes.
15634 * auxv.c: Fix common/ includes.
15635 * auto-load.c: Fix common/ includes.
15636 * arm-tdep.c: Fix common/ includes.
15637 * arch/riscv.c: Fix common/ includes.
15638 * arch/ppc-linux-common.c: Fix common/ includes.
15639 * arch/i386.c: Fix common/ includes.
15640 * arch/arm.c: Fix common/ includes.
15641 * arch/arm-linux.c: Fix common/ includes.
15642 * arch/arm-get-next-pcs.c: Fix common/ includes.
15643 * arch/amd64.c: Fix common/ includes.
15644 * arch/aarch64.c: Fix common/ includes.
15645 * arch/aarch64-insn.c: Fix common/ includes.
15646 * arch-utils.c: Fix common/ includes.
15647 * amd64-windows-tdep.c: Fix common/ includes.
15648 * amd64-tdep.c: Fix common/ includes.
15649 * amd64-sol2-tdep.c: Fix common/ includes.
15650 * amd64-obsd-tdep.c: Fix common/ includes.
15651 * amd64-nbsd-tdep.c: Fix common/ includes.
15652 * amd64-linux-tdep.c: Fix common/ includes.
15653 * amd64-linux-nat.c: Fix common/ includes.
15654 * amd64-fbsd-tdep.c: Fix common/ includes.
15655 * amd64-fbsd-nat.c: Fix common/ includes.
15656 * amd64-dicos-tdep.c: Fix common/ includes.
15657 * amd64-darwin-tdep.c: Fix common/ includes.
15658 * agent.c: Fix common/ includes.
15659 * ada-lang.h: Fix common/ includes.
15660 * ada-lang.c: Fix common/ includes.
15661 * aarch64-tdep.c: Fix common/ includes.
15663 2019-01-25 Tom Tromey <tom@tromey.com>
15665 * common/create-version.sh: Use common/version.h.
15667 2019-01-24 Pedro Alves <palves@redhat.com>
15669 * infrun.c (signal_stop, signal_print, signal_program)
15670 (signal_catch, signal_pass): Now arrays instead of pointers.
15671 (update_signals_program_target, do_target_resume)
15672 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
15673 * linux-nat.c (linux_nat_target::pass_signals)
15674 (linux_nat_target::create_inferior, linux_nat_target::attach):
15676 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
15677 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
15678 * procfs.c (procfs_target::pass_signals): Adjust.
15679 * record-full.c (record_full_target::resume): Adjust.
15680 * remote.c (remote_target::pass_signals)
15681 (remote_target::program_signals): Adjust.
15682 * target-debug.h (target_debug_print_signals): Now takes a
15683 gdb::array_view as parameter. Adjust.
15684 * target.h (target_ops) <pass_signals, program_signals>: Replace
15685 pointer and length parameters with gdb::array_view.
15686 (target_pass_signals, target_program_signals): Likewise.
15687 * target-delegates.c: Regenerate.
15689 2019-01-24 Pedro Alves <palves@redhat.com>
15691 * common/forward-scope-exit.h
15692 (forward_scope_exit::forward_scope_exit): Pass arguments to
15693 m_bind_function directly, instead of creating a std::bind and
15696 2019-01-24 Alan Hayward <alan.hayward@arm.com>
15698 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
15699 for static members.
15700 (pass_in_v_vfp_candidate): Likewise.
15702 2019-01-23 Tom Tromey <tom@tromey.com>
15703 Pedro Alves <palves@redhat.com>
15705 * regcache.c (class regcache_invalidator): Remove.
15706 (regcache::raw_write): Use make_scope_exit.
15708 2019-01-23 Tom Tromey <tom@tromey.com>
15710 * ui-out.h (class ui_out_emit_type): Update comment.
15712 2019-01-23 Tom Tromey <tom@tromey.com>
15714 * infrun.c (fetch_inferior_event): Update comment.
15716 2019-01-23 Tom Tromey <tom@tromey.com>
15717 Pedro Alves <palves@redhat.com>
15719 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
15721 (fetch_inferior_event): Use SCOPE_EXIT.
15724 2019-01-23 Tom Tromey <tom@tromey.com>
15725 Pedro Alves <palves@redhat.com>
15727 * infrun.c (disable_thread_events): Delete.
15728 (stop_all_threads): Use SCOPE_EXIT.
15730 2019-01-23 Tom Tromey <tom@tromey.com>
15731 Pedro Alves <palves@redhat.com>
15733 * symfile.c: Include forward-scope-exit.h.
15734 (clear_symtab_users_cleanup): Replace forward declaration with
15735 a FORWARD_SCOPE_EXIT.
15736 (syms_from_objfile_1): Use the forward_scope_exit and
15737 gdb::optional instead of cleanup_function.
15738 (reread_symbols): Use the forward_scope_exit instead of
15740 (clear_symtab_users_cleanup): Remove function.
15742 2019-01-23 Tom Tromey <tom@tromey.com>
15743 Pedro Alves <palves@redhat.com>
15745 * linux-nat.c: Include scope-exit.h.
15746 (cleanup_target_stop): Remove.
15747 (linux_nat_target::static_tracepoint_markers_by_strid): Use
15750 2019-01-23 Tom Tromey <tom@tromey.com>
15751 Pedro Alves <palves@redhat.com>
15753 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
15754 (call_function_by_hand_dummy): Use SCOPE_EXIT.
15756 2019-01-23 Tom Tromey <tom@tromey.com>
15757 Andrew Burgess <andrew.burgess@embecosm.com>
15758 Pedro Alves <palves@redhat.com>
15760 * infrun.c (fetch_inferior_event): Use scope_exit.
15761 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
15762 * top.c (execute_command): Use scope_exit.
15763 * breakpoint.c (bpstat_do_actions): Use scope_exit.
15764 * utils.c (do_bpstat_clear_actions_cleanup)
15765 (make_bpstat_clear_actions_cleanup): Remove.
15767 2019-01-23 Tom Tromey <tom@tromey.com>
15768 Pedro Alves <palves@redhat.com>
15770 * infrun.c: Include "common/scope-exit.h"
15771 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
15772 (wait_for_inferior): Use SCOPE_EXIT.
15773 (fetch_inferior_event): Use scope_exit.
15775 2019-01-23 Tom Tromey <tom@tromey.com>
15776 Pedro Alves <palves@redhat.com>
15778 * breakpoint.c (create_breakpoint): Remove cleanup.
15780 2019-01-23 Tom Tromey <tom@tromey.com>
15781 Andrew Burgess <andrew.burgess@embecosm.com>
15782 Pedro Alves <palves@redhat.com>
15784 2019-01-23 Pedro Alves <palves@redhat.com>
15786 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
15788 2019-01-23 Pedro Alves <palves@redhat.com>
15789 Andrew Burgess <andrew.burgess@embecosm.com>
15791 * gdbthread.h: Include "common/forward-scope-exit.h".
15792 (scoped_finish_thread_state): Redefine custom class in terms of
15793 forward_scope_exit.
15795 2019-01-23 Pedro Alves <palves@redhat.com>
15796 Andrew Burgess <andrew.burgess@embecosm.com>
15798 * common/forward-scope-exit.h: New file.
15800 2019-01-23 Pedro Alves <palves@redhat.com>
15801 Andrew Burgess <andrew.burgess@embecosm.com>
15802 Tom Tromey <tom@tromey.com>
15804 * common/scope-exit.h: New file.
15806 2019-01-23 Pedro Alves <palves@redhat.com>
15808 * common/preprocessor.h (ESC): Rename to ...
15809 (ESC_PARENS): ... this.
15810 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
15811 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
15813 2019-01-23 Tom Tromey <tom@tromey.com>
15815 * language.h (class scoped_switch_to_sym_language_if_auto):
15816 Initialize m_lang in both cases.
15818 2019-01-23 Alan Hayward <alan.hayward@arm.com>
15820 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
15823 2019-01-22 Tom Tromey <tom@tromey.com>
15825 * corelow.c: Do not include sys/file.h.
15827 2019-01-22 Tom Tromey <tom@tromey.com>
15829 * tui/tui-wingeneral.h: Include gdb_curses.h.
15831 2019-01-22 Tom Tromey <tom@tromey.com>
15833 * source-cache.h (class source_cache) <get_source_lines,
15834 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
15836 2019-01-22 Tom Tromey <tom@tromey.com>
15838 * remote-fileio.h (struct remote_target): Declare.
15840 2019-01-22 Tom Tromey <tom@tromey.com>
15842 * python/py-arch.c: Do not include py-ref.h.
15843 * python/py-bpevent.c: Do not include py-ref.h.
15844 * python/py-cmd.c: Do not include py-ref.h.
15845 * python/py-continueevent.c: Do not include py-ref.h.
15846 * python/py-event.h: Do not include py-ref.h.
15847 * python/py-evtregistry.c: Do not include py-ref.h.
15848 * python/py-finishbreakpoint.c: Do not include py-ref.h.
15849 * python/py-frame.c: Do not include py-ref.h.
15850 * python/py-framefilter.c: Do not include py-ref.h.
15851 * python/py-function.c: Do not include py-ref.h.
15852 * python/py-infevents.c: Do not include py-ref.h.
15853 * python/py-linetable.c: Do not include py-ref.h.
15854 * python/py-objfile.c: Do not include py-ref.h.
15855 * python/py-param.c: Do not include py-ref.h.
15856 * python/py-prettyprint.c: Do not include py-ref.h.
15857 * python/py-progspace.c: Do not include py-ref.h.
15858 * python/py-symbol.c: Do not include py-ref.h.
15859 * python/py-symtab.c: Do not include py-ref.h.
15860 * python/py-type.c: Do not include py-ref.h.
15861 * python/py-unwind.c: Do not include py-ref.h.
15862 * python/py-utils.c: Do not include py-ref.h.
15863 * python/py-value.c: Do not include py-ref.h.
15864 * python/py-varobj.c: Do not include py-ref.h.
15865 * python/py-xmethods.c: Do not include py-ref.h.
15866 * python/python.c: Do not include py-ref.h.
15867 * varobj.c: Do not include py-ref.h.
15869 2019-01-22 Tom Tromey <tom@tromey.com>
15871 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
15872 keyword for bcache.
15874 2019-01-22 Tom Tromey <tom@tromey.com>
15876 * compile/compile-cplus-types.c: Remove a comment by #include.
15878 2019-01-22 Tom Tromey <tom@tromey.com>
15880 * compile/gcc-c-plugin.h: Include compile-internal.h.
15882 2019-01-22 Tom Tromey <tom@tromey.com>
15884 * stabsread.c (EXTERN): Do not define.
15885 (symnum, next_symbol_text_func, processing_gcc_compilation)
15886 (within_function, global_sym_chain, global_stabs)
15887 (previous_stab_code, this_object_header_files)
15888 (n_this_object_header_files)
15889 (n_allocated_this_object_header_files): Define.
15890 * stabsread.h (EXTERN): Never define. Use "extern".
15892 2019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15894 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
15897 2019-01-21 Tom Tromey <tom@tromey.com>
15899 * ui-out.c: Fix includes.
15900 * tui/tui-source.c: Fix includes.
15901 * target.c: Fix includes.
15902 * remote.c: Fix includes.
15903 * regcache.c: Fix includes.
15904 * python/py-block.c: Fix includes.
15905 * printcmd.c: Fix includes.
15906 * or1k-tdep.c: Fix includes.
15907 * mi/mi-main.c: Fix includes.
15908 * m32r-tdep.c: Fix includes.
15909 * csky-tdep.c: Fix includes.
15910 * compile/compile-cplus-types.c: Fix includes.
15911 * cli/cli-interp.c: Fix includes.
15913 2019-01-21 Alan Hayward <alan.hayward@arm.com>
15915 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
15918 2019-01-16 Tom Tromey <tom@tromey.com>
15920 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
15922 (struct objfile) <msymbols_range>: Move from top level.
15923 <msymbols>: New method.
15924 (class objfile_msymbols): Remove.
15925 * symtab.c (default_collect_symbol_completion_matches_break_on):
15927 * symmisc.c (dump_msymbols): Update.
15928 * stabsread.c (scan_file_globals): Update.
15929 * objc-lang.c (info_selectors_command, info_classes_command)
15930 (find_methods): Update.
15931 * minsyms.c (find_solib_trampoline_target): Update.
15932 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
15933 * coffread.c (coff_symfile_read): Update.
15934 * ada-lang.c (ada_lookup_simple_minsym)
15935 (ada_collect_symbol_completion_matches): Update.
15937 2019-01-16 Tom Tromey <tom@tromey.com>
15939 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
15940 type. Remove no-argument constructor.
15941 <iterator::operator++>: Simplify.
15943 <end>: Use minimal_symbol_count.
15945 2019-01-16 Tom Tromey <tom@tromey.com>
15947 * objfiles.h (struct objfile) <psymtabs>: New method.
15948 (class objfile_psymtabs): Remove.
15949 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
15951 <range>: New method.
15952 (require_partial_symbols): Change return type.
15953 * psymtab.c (require_partial_symbols)
15954 (psym_expand_symtabs_matching): Update.
15955 * mdebugread.c (parse_partial_symbols): Update.
15956 * dbxread.c (dbx_end_psymtab): Update.
15958 2019-01-15 Tom Tromey <tom@tromey.com>
15960 * symtab.c (lookup_objfile_from_block)
15961 (lookup_symbol_in_objfile_symtabs)
15962 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
15963 (find_line_symtab, info_sources_command)
15964 (default_collect_symbol_completion_matches_break_on)
15965 (make_source_files_completion_list): Update.
15966 * symmisc.c (print_objfile_statistics, dump_objfile)
15967 (maintenance_print_symbols, maintenance_info_symtabs)
15968 (maintenance_check_symtabs, maintenance_info_line_tables):
15970 * source.c (select_source_symtab)
15971 (forget_cached_source_info_for_objfile): Update.
15972 * objfiles.h (class objfile_compunits): Remove.
15973 (struct objfile) <compunits_range>: New typedef.
15974 (compunits): New method.
15975 * objfiles.c (objfile_relocate1): Update.
15976 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
15977 * maint.c (count_symtabs_and_blocks): Update.
15978 * linespec.c (iterate_over_all_matching_symtabs): Update.
15979 * cp-support.c (add_symbol_overload_list_qualified): Update.
15980 * coffread.c (coff_symtab_read): Update.
15981 * ada-lang.c (add_nonlocal_symbols)
15982 (ada_collect_symbol_completion_matches)
15983 (ada_add_global_exceptions): Update.
15985 2019-01-15 Tom Tromey <tom@tromey.com>
15987 * progspace.h (program_space) <objfiles_safe_range>: New
15989 <objfiles_safe>: New method.
15990 * objfiles.h (class all_objfiles_safe): Remove.
15991 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
15992 * jit.c (jit_inferior_exit_hook): Update.
15994 2019-01-17 Tom Tromey <tom@tromey.com>
15996 * progspace.h (program_space) <objfiles_range>: New typedef.
15997 <objfiles>: New method.
15998 <objfiles_head>: Rename from objfiles.
15999 (object_files): Update.
16000 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
16001 * guile/scm-pretty-print.c
16002 (ppscm_find_pretty_printer_from_objfiles): Update.
16003 * guile/scm-objfile.c (gdbscm_objfiles): Update.
16004 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
16006 * python/py-progspace.c (pspy_get_objfiles): Update.
16007 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
16009 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
16010 (objfpy_lookup_objfile_by_build_id): Update.
16011 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
16012 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
16014 * symtab.c (iterate_over_symtabs, matching_obj_sections)
16015 (expand_symtab_containing_pc, lookup_objfile_from_block)
16016 (lookup_static_symbol, basic_lookup_transparent_type)
16017 (find_pc_sect_compunit_symtab, find_symbol_at_address)
16018 (find_line_symtab, info_sources_command)
16019 (default_collect_symbol_completion_matches_break_on)
16020 (make_source_files_completion_list, find_main_name): Update.
16021 * symmisc.c (print_symbol_bcache_statistics)
16022 (print_objfile_statistics, maintenance_print_symbols)
16023 (maintenance_print_msymbols, maintenance_print_objfiles)
16024 (maintenance_info_symtabs, maintenance_check_symtabs)
16025 (maintenance_expand_symtabs, maintenance_info_line_tables):
16027 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
16028 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
16029 (map_overlay_command, unmap_overlay_command)
16030 (simple_overlay_update, expand_symtabs_matching)
16031 (map_symbol_filenames): Update.
16032 * symfile-debug.c (set_debug_symfile): Update.
16033 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
16035 * source.c (select_source_symtab, forget_cached_source_info):
16037 * solib.c (solib_read_symbols): Update.
16038 * solib-spu.c (append_ocl_sos): Update.
16039 * psymtab.c (maintenance_print_psymbols)
16040 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
16041 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
16042 * printcmd.c (info_symbol_command): Update.
16043 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
16045 * objfiles.h (class all_objfiles): Remove.
16046 * objfiles.c (have_partial_symbols, have_full_symbols)
16047 (have_minimal_symbols, qsort_cmp, update_section_map)
16048 (shared_objfile_contains_address_p)
16049 (default_iterate_over_objfiles_in_search_order): Update.
16050 * objc-lang.c (info_selectors_command, info_classes_command)
16051 (find_methods): Update.
16052 * minsyms.c (find_solib_trampoline_target): Update.
16053 * maint.c (maintenance_info_sections)
16054 (maintenance_translate_address, count_symtabs_and_blocks):
16056 * main.c (captured_main_1): Update.
16057 * linux-thread-db.c (try_thread_db_load_from_pdir)
16058 (has_libpthread): Update.
16059 * linespec.c (iterate_over_all_matching_symtabs)
16060 (search_minsyms_for_name): Update.
16061 * jit.c (jit_find_objf_with_entry_addr): Update.
16062 * hppa-tdep.c (find_unwind_entry)
16063 (hppa_lookup_stub_minimal_symbol): Update.
16064 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
16066 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
16067 (elf_gnu_ifunc_resolve_by_got): Update.
16068 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
16069 * dwarf-index-write.c (save_gdb_index_command): Update.
16070 * cp-support.c (add_symbol_overload_list_qualified): Update.
16071 * breakpoint.c (create_overlay_event_breakpoint)
16072 (create_longjmp_master_breakpoint)
16073 (create_std_terminate_master_breakpoint)
16074 (create_exception_master_breakpoint): Update.
16075 * blockframe.c (find_pc_partial_function): Update.
16076 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
16077 (ada_collect_symbol_completion_matches)
16078 (ada_add_global_exceptions): Update.
16080 2019-01-17 Tom Tromey <tom@tromey.com>
16082 * solib-target.c (lm_info_target_p): Remove typedef. Don't
16084 (solib_target_parse_libraries): Change return type.
16085 (library_list_start_segment, library_list_start_section)
16086 (library_list_end_library, library_list_start_library); Update.
16087 (solib_target_free_library_list): Remove.
16088 (solib_target_parse_libraries): Remove cleanup. Change return
16090 (solib_target_current_sos): Update.
16092 2019-01-17 Tom Tromey <tromey@bapiya>
16094 * valprint.c: Replace "the the" with "the".
16095 * symtab.c: Replace "the the" with "the".
16096 * solib.c: Replace "the the" with "the".
16097 * solib-dsbt.c: Replace "the the" with "the".
16098 * linespec.c: Replace "the the" with "the".
16099 * dwarf2loc.h: Replace "the the" with "the".
16100 * amd64-windows-tdep.c: Replace "the the" with "the".
16101 * aarch64-tdep.c: Replace "the the" with "the".
16103 2019-01-16 Keith Seitz <keiths@redhat.com>
16106 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
16107 <builder>: Rename to ..
16108 <m_builder>: ... this and make private.
16109 (dwarf2_cu::get_builder): New method. Change all users of
16110 `builder' to use this method.
16111 (dwarf2_start_symtab): Move to ...
16112 (dwarf2_cu::start_symtab): ... here. Update all callers
16113 (setup_type_unit_groups): Move to ...
16114 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
16116 (dwarf2_cu::reset_builder): New method.
16117 (process_full_compunit, process_full_type_unit): Use
16118 dwarf2_cu::reset_builder.
16119 (follow_die_offset): Record the ancestor CU if it is different
16120 from the followed DIE's CU.
16121 (follow_die_sig_1): Likewise.
16123 2019-01-15 Tom Tromey <tom@tromey.com>
16125 * remote.c (class remote_state) <buf>: Now a char_vector.
16126 <buf_size>: Remove.
16127 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
16129 (remote_target::getpkt_or_notif_sane_1)
16130 (remote_target::getpkt_sane)
16131 (remote_target::getpkt_or_notif_sane): Likewise.
16132 (class remote_target) <putpkt>: New overload.
16133 (remote_target::read_frame): Change type of "buf_p". Remove
16134 sizeof_p parameter.
16135 (packet_ok): New overload.
16136 (packet_check_result): New overload.
16139 2019-01-14 Tom Tromey <tom@tromey.com>
16141 * remote-notif.c (handle_notification, remote_notif_ack)
16142 (remote_notif_parse): Make "buf" const.
16143 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
16145 (remote_notif_parse, remote_notif_ack, handle_notification):
16147 * remote.c (remote_notif_stop_parse): Make "buf" const.
16148 (remote_target::remote_parse_stop_reply): Make "buf" const.
16149 (remote_notif_stop_ack): Make "buf" const.
16151 2019-01-14 Tom Tromey <tom@tromey.com>
16153 * remote.c (remote_console_output): Make parameter const.
16155 2019-01-14 Tom Tromey <tom@tromey.com>
16157 * target-debug.h (target_debug_print_signals): Constify.
16158 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
16159 * procfs.c (procfs_target::pass_signals): Update.
16160 * linux-nat.c (linux_nat_target::pass_signals): Update.
16161 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
16162 * target-delegates.c: Rebuild.
16163 * remote.c (remote_target::program_signals): Update.
16164 (remote_target::pass_signals): Update.
16165 * target.c (target_pass_signals): Constify argument.
16166 (target_program_signals): Likewise.
16167 * target.h (struct target_ops) <pass_signals, program_signals>:
16169 (target_pass_signals, target_program_signals): Constify argument.
16171 2019-01-14 Tom Tromey <tom@tromey.com>
16174 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
16176 2019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
16178 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
16180 * rs6000-tdep.c: Include reggroups.h.
16181 (IS_V_ALIAS_PSEUDOREG): Define.
16182 (rs6000_register_name): Return names for the "vX" aliases.
16183 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
16184 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
16185 aliases. Call default_register_reggroup_p for all other
16187 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
16189 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
16190 Handle "vX" aliases.
16191 (v_alias_pseudo_register_collect): New function.
16192 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
16193 (rs6000_gdbarch_init): Initialize "vX" aliases as
16194 pseudo-registers. Restore registration of
16195 rs6000_pseudo_register_reggroup_p with
16196 set_tdesc_pseudo_register_reggroup_p.
16198 2019-01-13 Max Filippov <jcmvbkbc@gmail.com>
16200 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
16201 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
16202 set_gdbarch_num_pseudo_regs.
16204 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16206 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
16207 Remove arg prefixname, add do_set and do_show.
16208 Add member functions set_list and show_list.
16209 * cli/cli-style.c (class cli_style_option): Update accordingly.
16210 (style_set_list): Move to file scope.
16211 (style_show_list): Likewise.
16212 (set_style): Call help_list.
16213 (show_style): Call cmd_show_list.
16214 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
16215 Update to use the new macro.
16217 2019-10-12 Joel Brobecker <brobecker@adacore.com>
16219 * ada-lang.c (_initialize_ada_language): Expand the help text
16220 for the "catch exception" command.
16222 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16224 * symtab.c (matching_obj_sections): Initialize obj,
16225 declare it closer to its usage.
16227 2019-01-10 Tom Tromey <tom@tromey.com>
16229 * thread-iter.h (inf_threads_iterator): Use next_iterator.
16230 (basic_inf_threads_range): Remove.
16231 (inf_threads_range, inf_non_exited_threads_range)
16232 (safe_inf_threads_range): Use next_adapter.
16234 2019-01-10 Keith Seitz <keiths@redhat.com>
16238 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
16239 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
16241 2019-01-10 Keith Seitz <keiths@redhat.com>
16245 * dictionary.c (pending_to_vector): Remove.
16246 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
16247 Remove _1 suffix, replacing functions of the same name. Update
16249 (dict_create_hashed, dict_create_hashed_expandable)
16250 (dict_create_linear, dict_create_linear_expandable, dict_free)
16251 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
16252 Make functions static.
16254 2019-01-10 Keith Seitz <keiths@redhat.com>
16258 * dictionary.h (struct dictionary): Replace declaration with
16260 (dict_create_hashed, dict_create_hashed_expandable)
16261 (dict_create_linear, dict_create_linear_expandable)
16262 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
16263 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
16264 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
16265 taking multidictionary argument.
16266 [ALL_DICT_SYMBOLS]: Update for multidictionary.
16267 * block.h (struct block) <dict>: Change to multidictionary
16268 and rename `multidict'.
16269 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
16270 symmisc.c: Update all dictionary references to multidictionary.
16272 2019-01-10 Keith Seitz <keiths@redhat.com>
16276 * dictionary.c: Include unordered_map.
16277 (pending_to_vector): New function.
16278 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
16279 Rewrite the non-"_1" functions to take vector instead
16281 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
16282 "new" _1 versions of the same name.
16283 (multidictionary): Define.
16284 (std::hash<enum language): New definition.
16285 (collate_pending_symbols_by_language, mdict_create_hashed)
16286 (mdict_create_hashed_expandable, mdict_create_linear)
16287 (mdict_create_linear_expandable, mdict_free)
16288 (find_language_dictionary, create_new_language_dictionary)
16289 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
16290 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
16291 (mdict_size, mdict_empty): New functions.
16292 * dictionary.h (mdict_iterator): Define.
16294 2019-01-10 Pedro Alves <palves@redhat.com>
16296 * breakpoint.c (read_uploaded_action)
16297 (create_tracepoint_from_upload): Adjust to use
16298 gdb::unique_xmalloc_ptr.
16299 * ctf.c (ctf_write_uploaded_tp):
16300 (SET_ARRAY_FIELD): Use emplace_back.
16301 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
16302 * tracefile-tfile.c (tfile_write_uploaded_tp):
16303 * tracepoint.c (parse_tracepoint_definition): Adjust to use
16304 gdb::unique_xmalloc_ptr.
16305 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
16306 at_string, cond_string, cmd_strings>: Replace char pointers
16307 with gdb::unique_xmalloc_ptr.
16309 2019-01-10 Pedro Alves <palves@redhat.com>
16311 * solib-target.c (library_list_start_library): Don't xstrdup name.
16313 2019-01-10 Pedro Alves <palves@redhat.com>
16315 * mdebugread.c (parse_partial_symbols): Use
16316 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
16318 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
16320 * linux-fork.c (scoped_switch_fork_info)
16321 <~scoped_switch_fork_info>: Fix incorrect variable name.
16323 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
16325 * linux-fork.c (scoped_switch_fork_info)
16326 <scoped_switch_fork_info>: Make explicit.
16327 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
16329 2019-01-10 Tom Tromey <tom@tromey.com>
16331 * objfiles.h (objfile::reset_psymtabs): Update.
16332 * objfiles.c (objfile::objfile): Update.
16333 * psymtab.h (psymtab_storage::obstack): Update.
16334 (psymtab_storage::m_obstack): Use gdb::optional.
16335 (class psymtab_storage): Update comment. Remove objfile
16337 * psymtab.c (psymtab_storage::psymtab_storage): Update.
16339 2019-01-10 Tom Tromey <tom@tromey.com>
16341 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
16342 <free_psymtabs>: Now private.
16343 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
16344 (allocate_psymtab): Use new method.
16346 2019-01-10 Tom Tromey <tom@tromey.com>
16348 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
16349 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
16350 * mdebugread.c (parse_partial_symbols): Use
16351 allocate_dependencies.
16352 * dwarf2read.c (dwarf2_create_include_psymtab): Use
16353 allocate_dependencies.
16354 (process_psymtab_comp_unit_reader)
16355 (build_type_psymtab_dependencies): Likewise.
16356 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
16358 2019-01-10 Tom Tromey <tom@tromey.com>
16360 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
16361 PSYMBOL_SET_LANGUAGE.
16362 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
16364 2019-01-10 Tom Tromey <tom@tromey.com>
16366 * psymtab.h (psymtab_storage::obstack): New method.
16367 <m_obstack>: Rename from obstack; now private.
16368 * psymtab.c (psymtab_storage): Update.
16369 * dwarf2read.c (create_addrmap_from_index)
16370 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
16373 2019-01-10 Tom Tromey <tom@tromey.com>
16375 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
16376 * objfiles.h (objfile::reset_psymtabs): New method.
16378 2019-01-10 Tom Tromey <tom@tromey.com>
16380 * symmisc.c (print_symbol_bcache_statistics): Update.
16381 (print_objfile_statistics): Update.
16382 * symfile.c (reread_symbols): Update.
16383 * psymtab.h (class psymtab_storage): New.
16384 * psymtab.c (psymtab_storage): New constructor.
16385 (~psymtab_storage): New destructor.
16386 (require_partial_symbols): Update.
16387 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
16388 (find_pc_sect_psymtab, find_pc_sect_psymbol)
16389 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
16390 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
16391 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
16392 (start_psymtab_common, end_psymtab_common)
16393 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
16394 (allocate_psymtab): Update.
16395 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
16397 (dump_psymtab_addrmap, maintenance_print_psymbols)
16398 (maintenance_check_psymtabs): Update.
16399 (class objfile_psymtabs): Move to objfiles.h.
16400 * psympriv.h (discard_psymtab): Now inline.
16401 (psymtab_discarder::psymtab_discarder): Update.
16402 (psymtab_discarder::~psymtab_discarder): Update.
16403 (ALL_OBJFILE_PSYMTABS): Rewrite.
16404 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
16405 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
16407 <partial_symtabs>: New field.
16408 (class objfile_psymtabs): Move from psymtab.h. Update.
16409 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
16411 (objfile::~objfile): Don't destroy psymbol_cache.
16412 * mdebugread.c (parse_partial_symbols): Update.
16413 * dwarf2read.c (create_addrmap_from_index)
16414 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
16415 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
16416 (add_partial_subprogram, dwarf2_ranges_read): Update.
16417 * dwarf-index-write.c (write_address_map)
16418 (write_one_signatured_type, recursively_write_psymbols)
16419 (class debug_names, class debug_names, write_psymtabs_to_index):
16422 2019-01-10 Tom Tromey <tom@tromey.com>
16424 * symtab.h (SYMBOL_SET_NAMES): Update.
16425 (symbol_set_names): Update.
16426 (MSYMBOL_SET_NAMES): Update.
16427 * symtab.c (symbol_set_names): Change argument to be an
16428 objfile_per_bfd_storage.
16429 * psymtab.c (add_psymbol_to_bcache): Update.
16430 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
16432 2019-01-10 Tom Tromey <tom@tromey.com>
16434 * symtab.c (create_demangled_names_hash): Change argument to be an
16435 objfile_per_bfd_storage.
16436 (symbol_set_names): Update.
16438 2019-01-10 Tom Tromey <tom@tromey.com>
16440 * xcoffread.c (xcoff_initial_scan): Unconditionally call
16442 * psymtab.c (init_psymbol_list): Do nothing if already called.
16443 * psympriv.h (init_psymbol_list): Add comment.
16444 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
16446 * dbxread.c (dbx_symfile_read): Unconditionally call
16449 2019-01-10 Tom Tromey <tom@tromey.com>
16451 * xcoffread.c (scan_xcoff_symtab): Update.
16452 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
16454 * mdebugread.c (parse_partial_symbols)
16455 (handle_psymbol_enumerators): Update.
16456 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
16457 * dbxread.c (read_dbx_symtab): Update.
16458 * psympriv.h (psymbol_placement): New enum.
16459 (add_psymbol_to_list): Update.
16461 2019-01-10 Tom Tromey <tom@tromey.com>
16463 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
16464 static_psymbols parameters.
16465 (scan_xcoff_symtab): Update.
16466 * psymtab.c (start_psymtab_common): Remove global_psymbols and
16467 static_psymbols parameters.
16468 * psympriv.h (start_psymtab_common): Update.
16469 * mdebugread.c (parse_partial_symbols): Update.
16470 * dwarf2read.c (create_partial_symtab): Update.
16471 * dbxread.c (read_dbx_symtab): Update.
16472 (start_psymtab): Remove global_psymbols and static_psymbols
16475 2019-01-10 Tom Tromey <tom@tromey.com>
16477 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
16478 * psymtab.c (allocate_psymtab): Add comment.
16479 * psympriv.h (allocate_psymtab): Add comment.
16480 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
16482 * dbxread.c (dbx_end_psymtab): Remove some initializations.
16484 2019-01-10 Tom Tromey <tom@tromey.com>
16486 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
16488 * mipsread.c: Include mdebugread.h.
16489 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
16491 * elfread.c: Include mdebugread.h.
16493 2019-01-09 Tom Tromey <tom@tromey.com>
16495 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
16496 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
16497 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
16498 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
16499 (psym_lookup_symbol, psym_find_last_source_symtab)
16500 (psym_forget_cached_source_info, psym_print_stats)
16501 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
16502 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
16503 (psym_map_matching_symbols, psym_expand_symtabs_matching)
16504 (psym_find_compunit_symtab_by_address)
16505 (maintenance_print_psymbols, maintenance_info_psymtabs)
16506 (maintenance_check_psymtabs): Use ranged for.
16507 * psymtab.h (class objfile_psymtabs): New.
16508 (require_partial_symbols): Return objfile_psymtabs.
16509 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
16511 2019-01-09 Tom Tromey <tom@tromey.com>
16513 * symfile.c (overlay_invalidate_all, find_pc_overlay)
16514 (find_pc_mapped_section, list_overlays_command)
16515 (map_overlay_command, unmap_overlay_command)
16516 (simple_overlay_update): Use all_objfiles.
16517 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
16518 * printcmd.c (info_symbol_command): Use all_objfiles.
16519 * objfiles.h (ALL_OBJSECTIONS): Remove.
16520 * maint.c (maintenance_translate_address): Use all_objfiles.
16521 * gcore.c (gcore_create_callback): Use all_objfiles.
16522 (objfile_find_memory_regions): Likewise.
16524 2019-01-09 Tom Tromey <tom@tromey.com>
16526 * symtab.c (find_line_symtab, info_sources_command)
16527 (make_source_files_completion_list): Use objfile_compunits.
16528 * source.c (select_source_symtab): Use objfile_compunits.
16529 * objfiles.h (struct objfile): Update comment.
16530 (ALL_OBJFILES): Remove.
16531 (ALL_FILETABS): Remove.
16532 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
16535 2019-01-09 Tom Tromey <tom@tromey.com>
16537 * symmisc.c (print_objfile_statistics, dump_objfile)
16538 (maintenance_print_symbols): Use compunit_filetabs.
16539 * source.c (forget_cached_source_info_for_objfile): Use
16541 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
16542 (ALL_FILETABS): Use compunit_filetabs.
16543 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
16544 * coffread.c (coff_symtab_read): Use compunit_filetabs.
16546 2019-01-09 Tom Tromey <tom@tromey.com>
16548 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
16549 (compunit_filetabs): New.
16550 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
16552 (info_sources_command, make_source_files_completion_list): Remove
16554 * symmisc.c (print_objfile_statistics, dump_objfile)
16555 (maintenance_print_symbols): Remove declaration.
16556 (maintenance_info_symtabs): Use compunit_filetabs.
16557 (maintenance_info_line_tables): Likewise.
16558 * source.c (select_source_symtab): Change local variable name.
16559 (forget_cached_source_info_for_objfile): Remove declaration.
16560 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
16561 * objfiles.c (objfile_relocate1): Remove declaration.
16562 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
16564 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
16565 * coffread.c (coff_symtab_read): Remove declaration.
16566 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
16569 2019-01-09 Tom Tromey <tom@tromey.com>
16571 * symtab.c (lookup_objfile_from_block)
16572 (find_pc_sect_compunit_symtab, search_symbols)
16573 (default_collect_symbol_completion_matches_break_on): Use
16575 * objfiles.h (ALL_COMPUNITS): Remove.
16576 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
16577 * cp-support.c (add_symbol_overload_list_qualified): Use
16579 * ada-lang.c (ada_collect_symbol_completion_matches)
16580 (ada_add_global_exceptions): Use objfile_compunits.
16582 2019-01-09 Tom Tromey <tom@tromey.com>
16584 * source.c (select_source_symtab)
16585 (forget_cached_source_info_for_objfile): Remove declaration.
16586 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
16588 * maint.c (count_symtabs_and_blocks): Remove declaration.
16589 * cp-support.c (add_symbol_overload_list_qualified): Remove
16591 * coffread.c (coff_symtab_read): Remove declaration.
16592 * symtab.c (lookup_symbol_in_objfile_symtabs)
16593 (basic_lookup_transparent_type_1): Use objfile_compunits.
16594 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
16595 (info_sources_command, search_symbols)
16596 (default_collect_symbol_completion_matches_break_on)
16597 (make_source_files_completion_list): Remove declaration.
16598 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
16599 (ada_collect_symbol_completion_matches)
16600 (ada_add_global_exceptions): Remove declaration.
16601 * linespec.c (iterate_over_all_matching_symtabs): Use
16603 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
16604 (class objfile_compunits): New.
16605 (ALL_COMPUNITS): Use objfile_compunits.
16606 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
16607 (maintenance_check_symtabs, maintenance_info_line_tables): Use
16609 * objfiles.c (objfile_relocate1): Use objfile_compunits.
16611 2019-01-09 Tom Tromey <tom@tromey.com>
16613 * symtab.c (search_symbols)
16614 (default_collect_symbol_completion_matches_break_on): Use
16616 * ada-lang.c (ada_lookup_simple_minsym)
16617 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
16618 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
16619 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
16621 * coffread.c (coff_symfile_read): Use objfile_msymbols.
16622 * symmisc.c (dump_msymbols): Use objfile_msymbols.
16623 * objc-lang.c (find_methods): Use objfile_msymbols.
16624 (info_selectors_command, info_classes_command): Likewise.
16625 * stabsread.c (scan_file_globals): Use objfile_msymbols.
16626 * objfiles.h (class objfile_msymbols): New.
16627 (ALL_OBJFILE_MSYMBOLS): Remove.
16628 (ALL_MSYMBOLS): Remove.
16630 2019-01-09 Tom Tromey <tom@tromey.com>
16632 * common/next-iterator.h (next_adapter): Add Iterator template
16634 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
16635 (class all_objfiles_safe): New.
16636 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
16637 * objfiles.c (put_objfile_before): Update comment.
16638 (add_separate_debug_objfile): Likewise.
16639 (free_all_objfiles): Use all_objfiles_safe.
16640 (objfile_purge_solibs): Likewise.
16642 2019-01-09 Tom Tromey <tom@tromey.com>
16644 * symtab.c (iterate_over_symtabs, matching_obj_sections)
16645 (expand_symtab_containing_pc, lookup_static_symbol)
16646 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
16647 (find_symbol_at_address, find_line_symtab, find_main_name): Use
16649 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
16650 * breakpoint.c (create_overlay_event_breakpoint)
16651 (create_longjmp_master_breakpoint)
16652 (create_std_terminate_master_breakpoint)
16653 (create_exception_master_breakpoint): Use all_objfiles.
16654 * linux-thread-db.c (try_thread_db_load_from_pdir)
16655 (has_libpthread): Use all_objfiles.
16656 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
16657 * linespec.c (iterate_over_all_matching_symtabs)
16658 (search_minsyms_for_name): Use all_objfiles.
16659 * maint.c (maintenance_info_sections): Use all_objfiles.
16660 * main.c (captured_main_1): Use all_objfiles.
16661 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
16662 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
16663 * guile/scm-pretty-print.c
16664 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
16665 * solib-spu.c (append_ocl_sos): Use all_objfiles.
16666 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
16667 (maintenance_print_msymbols): Use all_objfiles.
16668 * source.c (select_source_symtab): Use all_objfiles.
16669 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
16670 * symfile.c (remove_symbol_file_command)
16671 (expand_symtabs_matching, map_symbol_filenames): Use
16673 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
16675 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
16676 * objc-lang.c (find_methods): Use all_objfiles.
16677 * objfiles.c (have_partial_symbols, have_full_symbols)
16678 (have_minimal_symbols, qsort_cmp)
16679 (default_iterate_over_objfiles_in_search_order): Use
16681 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
16682 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
16683 (maintenance_check_psymtabs): Use all_objfiles.
16684 (ALL_PSYMTABS): Remove.
16685 * compile/compile-object-run.c (do_module_cleanup): Use
16687 * blockframe.c (find_pc_partial_function): Use all_objfiles.
16688 * cp-support.c (add_symbol_overload_list_qualified): Use
16690 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
16692 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
16693 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
16695 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
16696 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
16697 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
16699 * solib.c (solib_read_symbols): Use all_objfiles
16701 2019-01-09 Tom Tromey <tom@tromey.com>
16703 * probe.c (parse_probes_in_pspace): Use all_objfiles.
16704 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
16706 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
16707 * symmisc.c (print_symbol_bcache_statistics)
16708 (print_objfile_statistics, maintenance_print_objfiles)
16709 (maintenance_info_symtabs, maintenance_check_symtabs)
16710 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
16712 * source.c (forget_cached_source_info): Use all_objfiles.
16713 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
16714 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
16715 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
16716 * objfiles.c (update_section_map): Use all_objfiles.
16717 (shared_objfile_contains_address_p): Likewise.
16718 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
16719 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
16721 2019-01-09 Tom Tromey <tom@tromey.com>
16723 * common/next-iterator.h: New file.
16724 * objfiles.h (class all_objfiles): New.
16725 (struct objfile_iterator): New.
16727 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16729 * NEWS: Move the description of the changed "frame", "select-frame",
16730 and "info frame" commands to the Changed commands section.
16732 2019-01-09 Simon Marchi <simon.marchi@ericsson.com>
16734 * gdbtypes.c (check_stub_method_group): Remove handling of old
16736 * linespec.c (find_methods): Likewise.
16737 * stabsread.c (read_member_functions): Likewise.
16738 * valops.c (search_struct_method): Likewise.
16739 (value_struct_elt_for_reference): Likewise.
16740 * NEWS: Mention this change.
16742 2019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
16744 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
16745 print_source_lines.
16746 * source.c (print_source_lines_base): Update line number check.
16747 (print_source_lines): New function.
16748 (source_lines_range::source_lines_range): New function.
16749 * source.h (class source_lines_range): New class.
16750 (print_source_lines): New declaration.
16752 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16754 * linespec.c (linespec_state_destructor): Free self->canonical_names.
16756 2019-01-08 Tom Tromey <tom@tromey.com>
16757 Simon Marchi <simon.marchi@ericsson.com>
16760 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
16761 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
16762 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
16763 * f-exp.y (DOLLAR_VARIABLE): Likewise.
16764 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
16765 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
16767 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
16769 * source.c (select_source_symtab): Move header comment to
16770 declaration in source.h.
16771 (forget_cached_source_info_for_objfile): Likewise.
16772 (forget_cached_source_info): Likewise.
16773 (identify_source_line): Likewise.
16774 * source.h (identify_source_line): Move declaration from symtab.h
16775 and add comment from source.c
16776 (print_source_lines): Likewise.
16777 (forget_cached_source_info_for_objfile): Likewise.
16778 (forget_cached_source_info): Likewise.
16779 (select_source_symtab): Likewise.
16780 (enum print_source_lines_flag): Move definition from symtab.h.
16781 * symtab.h (identify_source_line): Move declaration to source.h.
16782 (print_source_lines): Likewise.
16783 (forget_cached_source_info_for_objfile): Likewise.
16784 (forget_cached_source_info): Likewise.
16785 (select_source_symtab): Likewise.
16786 (enum print_source_lines_flag): Move definition to source.h.
16787 * tui/tui-hooks.c: Add 'source.h' include.
16789 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
16791 * source.c (print_source_lines_base): Handle requests to print
16792 reverse line number sequences, and guard against empty lines
16795 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
16797 * source.c (print_source_lines_base): Fix skip of '\r' if next
16800 2019-01-06 Tom Tromey <tom@tromey.com>
16802 * c-exp.y (struct c_parse_state) <macro_original_text,
16803 expansion_obstack>: New member.
16804 (macro_original_text, expansion_obstack): Remove globals.
16805 (scan_macro_expansion, scanning_macro_expansion)
16806 (finished_macro_expansion): Update.
16807 (scan_macro_cleanup): Remove.
16808 (yylex, c_parse): Update.
16810 2019-01-06 Tom Tromey <tom@tromey.com>
16812 * c-exp.y (struct c_parse_state) <strings>: New member.
16813 (operator_stoken): Update.
16815 2019-01-06 Tom Tromey <tom@tromey.com>
16817 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
16818 (union type_stack_elt) <typelist_val>: Now a pointer to
16820 (type_stack_cleanup): Don't declare.
16821 (push_typelist): Update.
16822 * parse.c (pop_typelist): Return a std::vector.
16823 (push_typelist): Take a std::vector.
16824 (follow_types): Update. Do not free args.
16825 (type_stack_cleanup): Remove.
16826 * c-exp.y (struct c_parse_state): New.
16827 (cpstate): New global.
16828 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
16829 (nonempty_typelist): Update.
16830 (func_mod): Create a new vector.
16831 (c_parse): Create a c_parse_state.
16832 (check_parameter_typelist): Do not delete params.
16833 (function_method): Update. Do not delete type_list.
16835 2019-01-06 Tom Tromey <tom@tromey.com>
16838 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
16840 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
16841 (print_return_value): Likewise.
16843 2019-01-05 Tom Tromey <tom@tromey.com>
16845 * contrib/cleanup_check.py: Remove.
16846 * contrib/gcc-with-excheck: Remove.
16847 * contrib/exsummary.py: Remove.
16848 * contrib/excheck.py: Remove.
16850 2019-01-05 Joel Brobecker <brobecker@adacore.com>
16852 * thread.c (delete_thread_1): Add gdb_assert that THR is not
16853 NULL. Initialize tpprev to NULL instead of assigning it
16854 to NULL on the next statement.
16855 * windows-nat.c (windows_delete_thread): Remove check for
16856 main_thread_id before printing thread exit notifications.
16857 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
16858 Remove thread ID check against main_thread_id.
16859 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
16860 windows_delete_thread.
16861 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
16863 2019-01-04 Tom Tromey <tom@tromey.com>
16865 * compile/compile.c (_initialize_compile): Use upper case for
16866 metasyntactic variables.
16867 * symmisc.c (_initialize_symmisc): Use upper case for
16868 metasyntactic variables.
16869 * psymtab.c (_initialize_psymtab): Use upper case for
16870 metasyntactic variables.
16871 * demangle.c (demangle_command): Use upper case for metasyntactic
16873 (_initialize_demangler): Likewise.
16874 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
16877 2019-01-03 Tom Tromey <tom@tromey.com>
16879 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
16881 2019-01-03 Tom Tromey <tom@tromey.com>
16883 * python/py-symtab.c (salpy_str): Update.
16884 (struct salpy_sal_object) <symtab>: Now a PyObject.
16885 (salpy_dealloc): Update.
16886 (del_objfile_sal): Use gdbpy_ref.
16888 2019-01-03 Tom Tromey <tom@tromey.com>
16890 * python/py-type.c (convert_field): Use new_reference. Return
16892 (make_fielditem): Return gdbpy_ref.
16893 (typy_fields): Update.
16894 (typy_getitem): Update.
16895 (field_name): Return gdbpy_ref. Use new_reference.
16896 (typy_iterator_iternext): Update.
16898 2019-01-03 Tom Tromey <tom@tromey.com>
16900 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
16902 2019-01-03 Tom Tromey <tom@tromey.com>
16904 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
16905 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
16906 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
16907 (pspy_set_frame_filters, pspy_set_frame_unwinders)
16908 (pspy_set_type_printers): Likewise.
16909 * python/py-function.c (fnpy_init): Use gdbpy_ref.
16910 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
16911 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
16912 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
16913 (objfpy_set_type_printers): Likewise.
16915 2019-01-03 Tom Tromey <tom@tromey.com>
16917 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
16918 (gdbpy_print_stack): Use gdbpy_err_fetch.
16919 * python/python-internal.h (class gdbpy_err_fetch): New class.
16920 (class gdbpy_enter) <m_error_type, m_error_value,
16921 m_error_traceback>: Remove.
16922 <m_error>: New member.
16923 (gdbpy_exception_to_string): Don't declare.
16924 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
16925 * python/py-value.c (convert_value_from_python): Use
16927 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
16928 gdbpy_exception_to_string.
16929 (gdbpy_handle_exception): Use gdbpy_err_fetch.
16930 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
16933 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16935 * linux-nat.c (delete_lwp_cleanup): Delete.
16936 (struct lwp_deleter): New struct.
16937 (lwp_info_up): New typedef.
16938 (linux_nat_target::follow_fork): Delete cleanup, and make use of
16941 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16943 * linux-fork.c (class scoped_switch_fork_info): New class.
16944 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
16946 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16948 * valops.c (find_overload_match): Remove use of null_cleanup, and
16949 calls to do_cleanups.
16951 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16953 * compile/compile-cplus-types.c
16954 (compile_cplus_instance::decl_name): Handle changes to
16956 * cp-support.c (cp_func_name): Update header comment, update
16958 * cp-support.h (cp_func_name): Update return type in declaration.
16959 * valops.c (find_overload_match): Move temp_func local to top
16960 level of function and change its type. Use temp_func to hold and
16961 delete temporary string obtained from cp_func_name.
16963 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16965 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
16966 gdb::char_vector, remove cleanup, and update uses of `msg`.
16968 2019-01-03 Jim Wilson <jimw@sifive.com>
16970 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
16972 2019-01-02 Tom Tromey <tom@tromey.com>
16974 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
16975 (tdesc_parse_xml): Remove cleanups.
16976 * target-descriptions.h (make_cleanup_free_target_description):
16978 (target_desc_deleter): New struct.
16979 (target_desc_up): New typedef.
16980 * target-descriptions.c (target_desc_deleter::operator()): Rename
16981 from free_target_description.
16982 (make_cleanup_free_target_description): Remove.
16984 2019-01-02 Tom Tromey <tom@tromey.com>
16986 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
16987 constructor, destructor.
16988 (linespec_parser): Remove typedef.
16989 (~linespec_parser): Rename from linespec_parser_delete.
16990 (linespec_lex_to_end, linespec_complete_label)
16991 (linespec_complete): Update.
16992 (decode_line_full): Remove cleanups.
16993 (decode_line_1): Update.
16995 2019-01-02 Tom Tromey <tom@tromey.com>
16997 * python/python-internal.h (inferior_to_inferior_object): Change
16999 * python/py-exitedevent.c (create_exited_event_object): Update.
17000 * python/py-inferior.c (inferior_to_inferior_object): Return
17002 (python_new_inferior, python_inferior_deleted)
17003 (thread_to_thread_object, delete_thread_object)
17004 (build_inferior_list, gdbpy_selected_inferior): Update.
17005 * python/py-infthread.c (create_thread_object): Update. Also fail
17006 if inferior_to_inferior_object fails.
17008 2019-01-02 Simon Marchi <simon.marchi@ericsson.com>
17010 * inferior.h (class inferior) <displaced_step_state>: New field.
17011 * infrun.h (struct displaced_step_state): Move here from
17012 infrun.c. Initialize fields, add constructor.
17013 <inf>: Remove field.
17014 <reset>: New method.
17015 * infrun.c (struct displaced_step_inferior_state): Move to
17017 (displaced_step_inferior_states): Remove.
17018 (get_displaced_stepping_state): Adust.
17019 (displaced_step_in_progress_any_inferior): Adjust.
17020 (displaced_step_in_progress_thread): Adjust.
17021 (displaced_step_in_progress): Adjust.
17022 (add_displaced_stepping_state): Remove.
17023 (get_displaced_step_closure_by_addr): Adjust.
17024 (remove_displaced_stepping_state): Remove.
17025 (infrun_inferior_exit): Call displaced_step_state.reset.
17026 (use_displaced_stepping): Don't check for NULL.
17027 (displaced_step_prepare_throw): Call
17028 get_displaced_stepping_state.
17029 (displaced_step_fixup): Don't check for NULL.
17030 (prepare_for_detach): Don't check for NULL.
17032 2019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
17034 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
17035 in case of call that did not complete.
17037 2019-01-02 Andrey Utkin <autkin@undo.io>
17039 * symfile.c (find_separate_debug_file): Fix search of debug files for
17042 2019-01-02 Tom Tromey <tom@tromey.com>
17044 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
17046 * python/py-frame.c (frapy_older): Remove cast.
17047 (frapy_newer): Likewise.
17048 * python/py-breakpoint.c (local_setattro): Remove cast.
17049 * python/py-arch.c (archpy_name): Remove local variable.
17050 * python/py-type.c (gdbpy_lookup_type): Remove cast.
17052 2019-01-02 Joel Brobecker <brobecker@adacore.com>
17054 * unittests/basic_string_view/element_access/char/empty.cc:
17055 Fix year range in copyright header.
17057 2019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
17059 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
17061 <operator==>: Update with for removed field.
17063 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
17064 <isa_features>: ...this.
17065 <abi_features>: New field.
17066 (riscv_isa_flen): Update comment.
17067 (riscv_abi_xlen): New declaration.
17068 (riscv_abi_flen): New declaration.
17069 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
17071 (riscv_abi_xlen): New function.
17072 (riscv_isa_flen): Update to get answer from isa_features.
17073 (riscv_abi_flen): New function.
17074 (riscv_has_fp_abi): Update to get answer from abi_features.
17075 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
17077 (riscv_call_info) <xlen, flen>: Update comment.
17078 (riscv_call_arg_struct): Remove invalid assertions
17079 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
17081 (riscv_gdbarch_init): Gather isa features and abi features
17082 separately, ensure both match on the gdbarch when reusing an old
17083 gdbarch. Relax an error check to allow 32-bit abi float to run on
17084 a target with 64-bit float hardware.
17086 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
17088 * source.c (search_command_helper): Stop reverse search
17089 when line 1 has been searched.
17091 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
17093 * record-full.c (record_full_base_target::close): Rewrite
17094 record_full_core_buf_list free logic.
17096 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
17098 * break-catch-syscall.c (print_one_catch_syscall): xfree
17101 2019-01-01 Joel Brobecker <brobecker@adacore.com>
17103 * top.c (print_gdb_version): Update Copyright year in version
17106 2019-01-01 Joel Brobecker <brobecker@adacore.com>
17108 Update copyright year range in all GDB files.
17110 2019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
17112 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
17114 For older changes see ChangeLog-2018.
17120 version-control: never