| 1 | 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com> |
| 2 | |
| 3 | * f-typeprint.c (f_type_print_base): Allow for dynamic types not |
| 4 | being resolved. |
| 5 | |
| 6 | 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com> |
| 7 | |
| 8 | * arch-utils.c (show_architecture): Update formatting of messages. |
| 9 | |
| 10 | 2020-07-12 Simon Marchi <simon.marchi@efficios.com> |
| 11 | |
| 12 | * gdbtypes.h (struct type) <bounds>: Handle array and string |
| 13 | types. |
| 14 | * ada-lang.c (assign_aggregate): Use type::bounds on |
| 15 | array/string type. |
| 16 | * c-typeprint.c (c_type_print_varspec_suffix): Likewise. |
| 17 | * c-varobj.c (c_number_of_children): Likewise. |
| 18 | (c_describe_child): Likewise. |
| 19 | * eval.c (evaluate_subexp_for_sizeof): Likewise. |
| 20 | * f-typeprint.c (f_type_print_varspec_suffix): Likewise. |
| 21 | (f_type_print_base): Likewise. |
| 22 | * f-valprint.c (f77_array_offset_tbl): Likewise. |
| 23 | (f77_get_upperbound): Likewise. |
| 24 | (f77_print_array_1): Likewise. |
| 25 | * guile/scm-type.c (gdbscm_type_range): Likewise. |
| 26 | * m2-typeprint.c (m2_array): Likewise. |
| 27 | (m2_is_long_set_of_type): Likewise. |
| 28 | * m2-valprint.c (get_long_set_bounds): Likewise. |
| 29 | * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise. |
| 30 | * python/py-type.c (typy_range): Likewise. |
| 31 | * rust-lang.c (rust_internal_print_type): Likewise. |
| 32 | * type-stack.c (type_stack::follow_types): Likewise. |
| 33 | * valarith.c (value_subscripted_rvalue): Likewise. |
| 34 | * valops.c (value_cast): Likewise. |
| 35 | |
| 36 | 2020-07-12 Simon Marchi <simon.marchi@efficios.com> |
| 37 | |
| 38 | * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all |
| 39 | callers to use the equivalent accessor methods. |
| 40 | |
| 41 | 2020-07-12 Simon Marchi <simon.marchi@efficios.com> |
| 42 | |
| 43 | * gdbtypes.h (struct range_bounds) <bit_stride>: New method. |
| 44 | (struct type) <bit_stride>: New method. |
| 45 | (TYPE_BIT_STRIDE): Remove. |
| 46 | * gdbtypes.c (update_static_array_size): Use type::bit_stride. |
| 47 | |
| 48 | 2020-07-12 Simon Marchi <simon.marchi@efficios.com> |
| 49 | |
| 50 | * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE, |
| 51 | TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all |
| 52 | callers to use the equivalent accessor methods instead. |
| 53 | |
| 54 | 2020-07-12 Simon Marchi <simon.marchi@efficios.com> |
| 55 | |
| 56 | * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED, |
| 57 | TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all |
| 58 | callers to use the equivalent accessor methods instead. |
| 59 | |
| 60 | 2020-07-12 Simon Marchi <simon.marchi@efficios.com> |
| 61 | |
| 62 | * gdbtypes.h (TYPE_LOW_BOUND_KIND, |
| 63 | TYPE_HIGH_BOUND_KIND): Remove. Update all callers |
| 64 | to use dynamic_prop::kind. |
| 65 | |
| 66 | 2020-07-12 Simon Marchi <simon.marchi@efficios.com> |
| 67 | |
| 68 | * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED, |
| 69 | TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers |
| 70 | to get the bound property's kind and check against |
| 71 | PROP_UNDEFINED. |
| 72 | |
| 73 | 2020-07-12 Simon Marchi <simon.marchi@efficios.com> |
| 74 | |
| 75 | * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update |
| 76 | all callers to use type::range_bounds followed by |
| 77 | dynamic_prop::{low,high}. |
| 78 | |
| 79 | 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca> |
| 80 | |
| 81 | * gdbtypes.h (struct dynamic_prop) <kind, set_undefined, |
| 82 | const_val, set_const_val, baton, set_locexpr, set_loclist, |
| 83 | set_addr_offset, variant_parts, set_variant_parts, |
| 84 | original_type, set_original_type>: New methods. |
| 85 | <kind>: Rename to... |
| 86 | <m_kind>: ... this. Update all users to use the new methods |
| 87 | instead. |
| 88 | <data>: Rename to... |
| 89 | <m_data>: ... this. Update all users to use the new methods |
| 90 | instead. |
| 91 | |
| 92 | 2020-07-12 Simon Marchi <simon.marchi@efficios.com> |
| 93 | |
| 94 | * gdbtypes.c (get_discrete_bounds): Return failure if |
| 95 | the range type's bounds are not both defined and constant |
| 96 | values. |
| 97 | (get_array_bounds): Update comment. Remove undefined bound check. |
| 98 | |
| 99 | 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca> |
| 100 | |
| 101 | * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use |
| 102 | the type::bounds method directly. |
| 103 | |
| 104 | 2020-07-12 Simon Marchi <simon.marchi@efficios.com> |
| 105 | |
| 106 | * gdbtypes.h (struct type) <bounds, set_bounds>: New methods. |
| 107 | (TYPE_RANGE_DATA): Use type::bounds. Change all uses that |
| 108 | are used to set the range type's bounds to use set_bounds. |
| 109 | |
| 110 | 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
| 111 | |
| 112 | * exec.c (_initialize_exec): Update exec-file-mismatch help. |
| 113 | |
| 114 | 2020-07-10 Pedro Alves <pedro@palves.net> |
| 115 | |
| 116 | * gdbthread.h (inferior_ref): Define. |
| 117 | (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref. |
| 118 | (scoped_restore_current_thread) <m_inf>: Now an inferior_ref. |
| 119 | * thread.c |
| 120 | (scoped_restore_current_thread::restore): |
| 121 | Adjust to gdb::ref_ptr. |
| 122 | (scoped_restore_current_thread::~scoped_restore_current_thread): |
| 123 | Remove manual decref handling. |
| 124 | (scoped_restore_current_thread::scoped_restore_current_thread): |
| 125 | Adjust to use |
| 126 | inferior_ref::new_reference/thread_info_ref::new_reference. |
| 127 | Incref the thread before calling get_frame_id instead of after. |
| 128 | Let TARGET_CLOSE_ERROR propagate. |
| 129 | |
| 130 | 2020-07-10 Pedro Alves <pedro@palves.net> |
| 131 | |
| 132 | * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow |
| 133 | NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR / |
| 134 | NOT_AVAILABLE_ERROR. |
| 135 | * value.c (value_optimized_out): Only swallow MEMORY_ERROR / |
| 136 | OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR. |
| 137 | |
| 138 | 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca> |
| 139 | Pedro Alves <pedro@palves.net> |
| 140 | |
| 141 | PR gdb/26199 |
| 142 | * infrun.c (threads_are_resumed_pending_p): Delete. |
| 143 | (do_target_wait): Remove threads_are_executing and |
| 144 | threads_are_resumed_pending_p checks from the inferior_matches |
| 145 | lambda. Update comments. |
| 146 | |
| 147 | 2020-07-10 Pedro Alves <pedro@palves.net> |
| 148 | |
| 149 | PR gdb/26199 |
| 150 | * infrun.c (handle_no_resumed): Transfer terminal to inferior with |
| 151 | executing threads. |
| 152 | |
| 153 | 2020-07-10 Pedro Alves <pedro@palves.net> |
| 154 | |
| 155 | PR gdb/26199 |
| 156 | * infrun.c (handle_no_resumed): Handle multiple targets. |
| 157 | |
| 158 | 2020-07-10 Pedro Alves <pedro@palves.net> |
| 159 | |
| 160 | PR gdb/26199 |
| 161 | * infrun.c (prepare_to_wait): Check target_can_async_p instead of |
| 162 | target_is_async_p. |
| 163 | |
| 164 | 2020-07-10 Pedro Alves <pedro@palves.net> |
| 165 | |
| 166 | PR gdb/26199 |
| 167 | * target.c (target_pass_ctrlc): Look at the inferior's non-exited |
| 168 | threads, not all threads. |
| 169 | |
| 170 | 2020-07-10 Pedro Alves <pedro@palves.net> |
| 171 | |
| 172 | PR gdb/26199 |
| 173 | * remote.c (remote_target::open_1): Pass remote target pointer as |
| 174 | data to create_async_event_handler. |
| 175 | (remote_async_inferior_event_handler): Mark async event handler |
| 176 | before returning if the remote target still has either pending |
| 177 | events or unacknowledged notifications. |
| 178 | |
| 179 | 2020-07-10 John Baldwin <jhb@FreeBSD.org> |
| 180 | |
| 181 | * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New |
| 182 | declaration. |
| 183 | * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New |
| 184 | function. |
| 185 | |
| 186 | 2020-07-09 John Baldwin <jhb@FreeBSD.org> |
| 187 | |
| 188 | * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against |
| 189 | inferior_ptid. |
| 190 | |
| 191 | 2020-07-09 John Baldwin <jhb@FreeBSD.org> |
| 192 | |
| 193 | * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC, |
| 194 | AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV, |
| 195 | AT_FREEBSD_PS_STRINGS. |
| 196 | |
| 197 | 2020-07-08 Hannes Domani <ssbssa@yahoo.de> |
| 198 | |
| 199 | * auto-load.c (auto_load_objfile_script_1): Convert drive part |
| 200 | of debugfile path on Windows. |
| 201 | |
| 202 | 2020-07-08 John Baldwin <jhb@FreeBSD.org> |
| 203 | |
| 204 | * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd' |
| 205 | argument to 'data'. |
| 206 | |
| 207 | 2020-07-08 Tom Tromey <tromey@adacore.com> |
| 208 | |
| 209 | * ada-lang.c (ada_exception_message_1): Use read_memory. |
| 210 | |
| 211 | 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com> |
| 212 | |
| 213 | PR python/22748 |
| 214 | * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove |
| 215 | special handling for inline frames. |
| 216 | * findvar.c (value_of_register_lazy): Skip inline frames when |
| 217 | creating lazy register values. |
| 218 | * frame.c (frame_id_computed_p): Delete definition. |
| 219 | * frame.h (frame_id_computed_p): Delete declaration. |
| 220 | |
| 221 | 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com> |
| 222 | |
| 223 | * NEWS: Mention additions to Python API. |
| 224 | * python/py-arch.c (archpy_register_groups): New function. |
| 225 | (arch_object_methods): Add 'register_groups' method. |
| 226 | * python/py-registers.c (reggroup_iterator_object): New struct. |
| 227 | (reggroup_object): New struct. |
| 228 | (gdbpy_new_reggroup): New function. |
| 229 | (gdbpy_reggroup_to_string): New function. |
| 230 | (gdbpy_reggroup_name): New function. |
| 231 | (gdbpy_reggroup_iter): New function. |
| 232 | (gdbpy_reggroup_iter_next): New function. |
| 233 | (gdbpy_new_reggroup_iterator): New function |
| 234 | (gdbpy_initialize_registers): Register new types. |
| 235 | (reggroup_iterator_object_type): Define new Python type. |
| 236 | (gdbpy_reggroup_getset): New static global. |
| 237 | (reggroup_object_type): Define new Python type. |
| 238 | * python/python-internal.h |
| 239 | |
| 240 | 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com> |
| 241 | |
| 242 | * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c |
| 243 | * python/py-arch.c (archpy_registers): New function. |
| 244 | (arch_object_methods): Add 'registers' method. |
| 245 | * python/py-registers.c: New file. |
| 246 | * python/python-internal.h |
| 247 | (gdbpy_new_register_descriptor_iterator): Declare. |
| 248 | (gdbpy_initialize_registers): Declare. |
| 249 | * python/python.c (do_start_initialization): Call |
| 250 | gdbpy_initialize_registers. |
| 251 | * NEWS: Mention additions to the Python API. |
| 252 | |
| 253 | 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com> |
| 254 | |
| 255 | * NEWS: Mention new Python API method. |
| 256 | * python/py-unwind.c (pending_framepy_architecture): New function. |
| 257 | (pending_frame_object_methods): Add architecture method. |
| 258 | |
| 259 | 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com> |
| 260 | |
| 261 | * gdbarch.c: Regenerate. |
| 262 | * gdbarch.h: Regenerate. |
| 263 | * gdbarch.sh (deprecated_set_gdbarch_data): Delete. |
| 264 | (gdbarch_data): Use internal_error for the case where |
| 265 | deprecated_set_gdbarch_data was originally needed. |
| 266 | * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters, |
| 267 | and use passed in obstack. |
| 268 | (libunwind_frame_set_descr): Should no longer get back NULL from |
| 269 | gdbarch_data. |
| 270 | (_initialize_libunwind_frame): Register as a pre-init gdbarch data |
| 271 | type. |
| 272 | * user-regs.c (user_regs_init): Update parameters, and use passed |
| 273 | in obstack. |
| 274 | (user_reg_add): Should no longer get back NULL from gdbarch_data. |
| 275 | (_initialize_user_regs): Register as a pre-init gdbarch data type. |
| 276 | |
| 277 | 2020-07-06 Tom de Vries <tdevries@suse.de> |
| 278 | |
| 279 | * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle |
| 280 | End-Of-Sequence in lte_is_less_than. |
| 281 | * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313 |
| 282 | "gdb: Don't reorder line table entries too much when sorting". |
| 283 | |
| 284 | 2020-07-06 Tom de Vries <tdevries@suse.de> |
| 285 | |
| 286 | PR tui/26205 |
| 287 | * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name. |
| 288 | |
| 289 | 2020-07-05 Tom de Vries <tdevries@suse.de> |
| 290 | |
| 291 | PR build/26187 |
| 292 | * inferior.h (struct infcall_suspend_state_deleter): If available, use |
| 293 | std::uncaught_exceptions instead of deprecated |
| 294 | std::uncaught_exception. |
| 295 | |
| 296 | 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca> |
| 297 | |
| 298 | * macroexp.h (macro_stringify): Return |
| 299 | gdb::unique_xmalloc_ptr<char>. |
| 300 | * macroexp.c (macro_stringify): Likewise. |
| 301 | * macrotab.c (fixup_definition): Update. |
| 302 | |
| 303 | 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca> |
| 304 | |
| 305 | * c-exp.y (scan_macro_expansion): Don't free `expansion`. |
| 306 | (lex_one_token): Update. |
| 307 | * macroexp.c (struct macro_buffer) <release>: Return |
| 308 | gdb::unique_xmalloc_ptr<char>. |
| 309 | (macro_stringify): Update. |
| 310 | (macro_expand): Update. |
| 311 | (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>. |
| 312 | * macroexp.h (macro_expand_next): Likewise. |
| 313 | |
| 314 | 2020-07-02 Simon Marchi <simon.marchi@efficios.com> |
| 315 | |
| 316 | * macroexp.h (macro_lookup_ftype): Remove. |
| 317 | (macro_expand, macro_expand_once, macro_expand_next): Remove |
| 318 | lookup function parameters, add scope parameter. |
| 319 | * macroexp.c (scan, substitute_args, expand, maybe_expand, |
| 320 | macro_expand, macro_expand_once, macro_expand_next): Likewise. |
| 321 | * macroscope.h (standard_macro_lookup): Change parameter type |
| 322 | to macro_scope. |
| 323 | * macroscope.c (standard_macro_lookup): Likewise. |
| 324 | * c-exp.y (lex_one_token): Update. |
| 325 | * macrocmd.c (macro_expand_command): Likewise. |
| 326 | (macro_expand_once_command): Likewise. |
| 327 | |
| 328 | 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca> |
| 329 | |
| 330 | * inf-loop.c (inferior_event_handler): Remove client_data param. |
| 331 | * inf-loop.h (inferior_event_handler): Likewise. |
| 332 | * infcmd.c (step_1): Adjust. |
| 333 | * infrun.c (proceed): Adjust. |
| 334 | (fetch_inferior_event): Remove client_data param. |
| 335 | (infrun_async_inferior_event_handler): Adjust. |
| 336 | * infrun.h (fetch_inferior_event): Remove `void *` param. |
| 337 | * linux-nat.c (handle_target_event): Adjust. |
| 338 | * record-btrace.c (record_btrace_handle_async_inferior_event): |
| 339 | Adjust. |
| 340 | * record-full.c (record_full_async_inferior_event_handler): |
| 341 | Adjust. |
| 342 | * remote.c (remote_async_inferior_event_handler): Adjust. |
| 343 | |
| 344 | 2020-07-01 Tom Tromey <tom@tromey.com> |
| 345 | |
| 346 | * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual. |
| 347 | * tui/tui-stack.h (struct tui_locator_window) <name>: New method. |
| 348 | |
| 349 | 2020-07-01 Tom Tromey <tom@tromey.com> |
| 350 | |
| 351 | * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from |
| 352 | tui_gen_win_info. |
| 353 | (tui_win_info::make_window): Merge with |
| 354 | tui_gen_win_info::make_window. |
| 355 | (tui_win_info::make_visible): Move from tui_gen_win_info. |
| 356 | * tui/tui-win.c (tui_win_info::max_width): Move from |
| 357 | tui_gen_win_info. |
| 358 | * tui/tui-layout.h (class tui_layout_window) <m_window>: Change |
| 359 | type. |
| 360 | <window_factory>: Likewise. |
| 361 | * tui/tui-layout.c (tui_win_info::resize): Move from |
| 362 | tui_gen_win_info. |
| 363 | (make_standard_window): Change return type. |
| 364 | (get_locator_window, tui_get_window_by_name): Likewise. |
| 365 | (tui_layout_window::apply): Remove a cast. |
| 366 | * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier. |
| 367 | (struct tui_win_info): Merge with tui_gen_win_info. |
| 368 | (struct tui_gen_win_info): Remove. |
| 369 | |
| 370 | 2020-07-01 Tom Tromey <tom@tromey.com> |
| 371 | |
| 372 | * tui/tui-stack.h (struct tui_locator_window): Derive from |
| 373 | tui_win_info. |
| 374 | <do_scroll_horizontal, do_scroll_vertical>: New methods. |
| 375 | <can_box>: New method. |
| 376 | |
| 377 | 2020-07-01 Tom Tromey <tom@tromey.com> |
| 378 | |
| 379 | * tui/tui-stack.h (struct tui_locator_window): Remove body. |
| 380 | |
| 381 | 2020-07-01 Tom Tromey <tom@tromey.com> |
| 382 | |
| 383 | * tui/tui-regs.c (tui_data_window::display_registers_from) |
| 384 | (tui_data_window::display_registers_from) |
| 385 | (tui_data_window::first_data_item_displayed) |
| 386 | (tui_data_window::delete_data_content_windows): Update. |
| 387 | (tui_data_window::refresh_window, tui_data_window::no_refresh): |
| 388 | Remove. |
| 389 | (tui_data_window::check_register_values): Update. |
| 390 | (tui_data_item_window::rerender): Add parameters. Update. |
| 391 | (tui_data_item_window::refresh_window): Remove. |
| 392 | * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer |
| 393 | virtual. |
| 394 | * tui/tui-regs.h (struct tui_data_item_window): Don't derive from |
| 395 | tui_gen_win_info. |
| 396 | <refresh_window, max_height, min_height>: Remove. |
| 397 | <rerender>: Add parameters. |
| 398 | <x, y, visible>: New members. |
| 399 | (struct tui_data_window) <refresh_window, no_refresh>: Remove. |
| 400 | <m_item_width>: New member. |
| 401 | |
| 402 | 2020-07-01 Tom Tromey <tom@tromey.com> |
| 403 | |
| 404 | * tui/tui-regs.c (tui_data_window::show_register_group) |
| 405 | (tui_data_window::check_register_values): Update. |
| 406 | * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename |
| 407 | from item_no. |
| 408 | |
| 409 | 2020-07-01 Tom Tromey <tom@tromey.com> |
| 410 | |
| 411 | * tui/tui-regs.c (tui_data_window::show_register_group): Remove |
| 412 | useless "if". |
| 413 | |
| 414 | 2020-07-01 Tom Tromey <tom@tromey.com> |
| 415 | |
| 416 | * tui/tui-regs.c (tui_data_window::show_register_group): Update. |
| 417 | * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove. |
| 418 | |
| 419 | 2020-07-01 Tom Tromey <tom@tromey.com> |
| 420 | |
| 421 | * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h |
| 422 | * tui/tui-winsource.h (enum tui_line_or_address_kind) |
| 423 | (struct tui_line_or_address): Move from tui-data.h. |
| 424 | * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h. |
| 425 | * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c. |
| 426 | (tui_cmd_window, tui_source_window_base, tui_source_window) |
| 427 | (tui_disasm_window): Don't declare. |
| 428 | (enum tui_line_or_address_kind, struct tui_line_or_address): Move |
| 429 | to tui-winsource.h. |
| 430 | (SINGLE_KEY): Move to tui-stack.c. |
| 431 | |
| 432 | 2020-07-01 Tom Tromey <tom@tromey.com> |
| 433 | |
| 434 | * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a |
| 435 | std::string. |
| 436 | * tui/tui-regs.c (class tab_expansion_file): New. |
| 437 | (tab_expansion_file::write): New method. |
| 438 | (tui_register_format): Change return type. Use |
| 439 | tab_expansion_file. |
| 440 | (tui_get_register, tui_data_window::display_registers_from) |
| 441 | (tui_data_item_window::rerender): Update. |
| 442 | * tui/tui-io.h (tui_expand_tabs): Don't declare. |
| 443 | * tui/tui-io.c (tui_expand_tabs): Remove. |
| 444 | |
| 445 | 2020-07-01 Tom Tromey <tom@tromey.com> |
| 446 | |
| 447 | * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum. |
| 448 | |
| 449 | 2020-07-01 Fangrui Song <maskray@google.com> |
| 450 | |
| 451 | * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1. |
| 452 | |
| 453 | 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com> |
| 454 | |
| 455 | * dwarf2/read.c (set_die_type): Removed conditions to restrict |
| 456 | forms for DW_AT_associated and DW_AT_allocated attributes, |
| 457 | which is already checked in function attr_to_dynamic_prop. |
| 458 | |
| 459 | 2020-06-30 Tom Tromey <tromey@adacore.com> |
| 460 | |
| 461 | * dwarf2/read.c (quirk_rust_enum): Correctly call |
| 462 | alloc_rust_variant for default-less enum. |
| 463 | |
| 464 | 2020-06-30 Tom Tromey <tromey@adacore.com> |
| 465 | |
| 466 | PR build/26183: |
| 467 | * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use |
| 468 | gdb::to_string. |
| 469 | |
| 470 | 2020-06-29 Simon Marchi <simon.marchi@efficios.com> |
| 471 | |
| 472 | * gdbarch.sh (displaced_step_copy_insn): Update doc. |
| 473 | * gdbarch.h: Re-generate. |
| 474 | |
| 475 | 2020-06-28 Tom Tromey <tom@tromey.com> |
| 476 | |
| 477 | * command.h (cmd_types): Remove. |
| 478 | (cmd_type): Don't declare. |
| 479 | * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a |
| 480 | typedef. |
| 481 | * cli/cli-cmds.c (setting_cmd): Use cmd->type directly. |
| 482 | * cli/cli-decode.c (cmd_type): Remove. |
| 483 | |
| 484 | 2020-06-27 Pedro Alves <palves@redhat.com> |
| 485 | |
| 486 | * fork-child.c (prefork_hook): Adjust. |
| 487 | * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal): |
| 488 | Delete. |
| 489 | (set_inferior_tty_command, show_inferior_tty_command): Adjust. |
| 490 | * inferior.c (inferior::set_tty, inferior::tty): New methods. |
| 491 | * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal): |
| 492 | Remove declarations. |
| 493 | (struct inferior) <set_tty, tty>: New methods. |
| 494 | (struct inferior) <terminal>: Rename to ... |
| 495 | (struct inferior) <m_terminal>: ... this and make private. |
| 496 | * main.c (captured_main_1): Adjust. |
| 497 | * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust. |
| 498 | (mi_cmd_inferior_tty_show): Adjust. |
| 499 | * nto-procfs.c (nto_procfs_target::create_inferior): Adjust. |
| 500 | * windows-nat.c (windows_nat_target::create_inferior): Adjust. |
| 501 | |
| 502 | 2020-06-26 Nick Alcock <nick.alcock@oracle.com> |
| 503 | |
| 504 | * configure.ac: Add --enable-libctf: handle --disable-static |
| 505 | properly. |
| 506 | * acinclude.m4: sinclude ../config/enable.m4. |
| 507 | * Makefile.in (aclocal_m4_deps): Adjust accordingly. |
| 508 | (LIBCTF): Substitute in. |
| 509 | (CTF_DEPS): New, likewise. |
| 510 | (CLIBS): libctf needs symbols from libbfd: move earlier. |
| 511 | (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath |
| 512 | flags. |
| 513 | * ctfread.c: Surround in ENABLE_LIBCTF. |
| 514 | (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub. |
| 515 | * configure: Regenerate. |
| 516 | * config.in: Likewise. |
| 517 | |
| 518 | 2020-06-25 Simon Marchi <simon.marchi@efficios.com> |
| 519 | |
| 520 | * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup. |
| 521 | |
| 522 | 2020-06-25 Simon Marchi <simon.marchi@efficios.com> |
| 523 | |
| 524 | * inferior.h (struct inferior) <terminal>: Change type to |
| 525 | gdb::unique_xmalloc_ptr<char>. |
| 526 | * inferior.c (inferior::~inferior): Don't free inf->terminal. |
| 527 | * infcmd.c (set_inferior_io_terminal): Don't free terminal |
| 528 | field, adjust to unique pointer. |
| 529 | (get_inferior_io_terminal): Adjust to unique pointer. |
| 530 | |
| 531 | 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com> |
| 532 | |
| 533 | * riscv-tdep.c (riscv_print_registers_info): Loop over all |
| 534 | registers, not just the known core set of registers. |
| 535 | |
| 536 | 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com> |
| 537 | |
| 538 | * riscv-tdep.c (riscv_register_name): Return NULL for duplicate |
| 539 | fflags, frm, and fcsr registers. |
| 540 | (riscv_register_reggroup_p): Remove unknown CSRs from save and |
| 541 | restore groups. |
| 542 | (riscv_tdesc_unknown_reg): New function. |
| 543 | (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to |
| 544 | tdesc_use_registers. |
| 545 | * riscv-tdep.h (struct gdbarch_tdep): Add |
| 546 | unknown_csrs_first_regnum, unknown_csrs_count, |
| 547 | duplicate_fflags_regnum, duplicate_frm_regnum, and |
| 548 | duplicate_fcsr_regnum fields. |
| 549 | |
| 550 | 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com> |
| 551 | |
| 552 | * target-descriptions.c (tdesc_use_registers): Add new parameter a |
| 553 | callback, use the callback (when not null) to help number unknown |
| 554 | registers. |
| 555 | * target-descriptions.h (tdesc_unknown_register_ftype): New typedef. |
| 556 | (tdesc_use_registers): Add extra parameter to declaration. |
| 557 | |
| 558 | 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com> |
| 559 | |
| 560 | * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later |
| 561 | in the file. |
| 562 | (class riscv_pending_register_alias): Likewise. |
| 563 | (riscv_register_feature::register_info): Change 'required_p' field |
| 564 | to 'required', and change its type. Add 'check' member function. |
| 565 | (riscv_register_feature::register_info::check): Define new member |
| 566 | function. |
| 567 | (riscv_xreg_feature): Change initialisation of 'required' field. |
| 568 | (riscv_freg_feature): Likewise. |
| 569 | (riscv_virtual_feature): Likewise. |
| 570 | (riscv_csr_feature): Likewise. |
| 571 | (riscv_check_tdesc_feature): Take extra parameter, the csr |
| 572 | tdesc_feature, rewrite the function to use the new |
| 573 | riscv_register_feature::register_info::check function. |
| 574 | (riscv_gdbarch_init): Pass the csr tdesc_feature where needed. |
| 575 | |
| 576 | 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com> |
| 577 | |
| 578 | * features/Makefile: Remove all references to the deleted files |
| 579 | below. |
| 580 | * features/riscv/32bit-csr.c: Deleted. |
| 581 | * features/riscv/32bit-csr.xml: Deleted. |
| 582 | * features/riscv/64bit-csr.c: Deleted. |
| 583 | * features/riscv/64bit-csr.xml: Deleted. |
| 584 | * features/riscv/rebuild-csr-xml.sh: Deleted. |
| 585 | |
| 586 | 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com> |
| 587 | |
| 588 | * riscv-tdep.c (struct riscv_register_feature::register_info): Fix |
| 589 | whitespace error for declaration of names member variable. |
| 590 | (struct riscv_register_feature): Add new prefer_first_name member |
| 591 | variable, and fix whitespace error in declaration of registers. |
| 592 | (riscv_xreg_feature): Initialize prefer_first_name field. |
| 593 | (riscv_freg_feature): Likewise. |
| 594 | (riscv_virtual_feature): Likewise. |
| 595 | (riscv_csr_feature): Likewise. |
| 596 | (riscv_register_name): Expand on comments. Remove register name |
| 597 | modifications for CSR and virtual registers. |
| 598 | |
| 599 | 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com> |
| 600 | |
| 601 | * riscv-tdep.c (struct riscv_register_feature): Fix whitespace |
| 602 | errors. |
| 603 | |
| 604 | 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com> |
| 605 | |
| 606 | * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from |
| 607 | riscv-opc.h. |
| 608 | (class riscv_pending_register_alias): New class. |
| 609 | (riscv_check_tdesc_feature): Take vector of pending aliases and |
| 610 | populate it as appropriate. |
| 611 | (riscv_setup_register_aliases): Delete. |
| 612 | (riscv_gdbarch_init): Create vector of pending aliases and pass it |
| 613 | to riscv_check_tdesc_feature in all cases. Use the vector to |
| 614 | create the register aliases. |
| 615 | |
| 616 | 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
| 617 | |
| 618 | * sol2-tdep.c (sol2_static_transform_name): Remove. |
| 619 | (sol2_init_abi): Don't register it. |
| 620 | * gdbarch.sh (static_transform_name): Remove. |
| 621 | * gdbarch.c, gdbarch.h: Regenerate. |
| 622 | |
| 623 | * dbxread.c (read_dbx_symtab) <'S'>: Remove call to |
| 624 | gdbarch_static_transform_name. |
| 625 | * mdebugread.c (parse_partial_symbols) <'S'>: Likewise. |
| 626 | * stabsread.c (define_symbol) <'X'>: Remove. |
| 627 | (define_symbol) <'S'>: Remove gdbarch_static_transform_name |
| 628 | handling. |
| 629 | <'V'>: Likewise. |
| 630 | * xcoffread.c (scan_xcoff_symtab): Remove gdbarch. |
| 631 | <'S'>: Remove call to gdbarch_static_transform_name. |
| 632 | |
| 633 | 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
| 634 | |
| 635 | * procfs.c (procfs_pre_trace): New function. |
| 636 | (procfs_target::create_inferior): Pass it to fork_inferior. |
| 637 | |
| 638 | 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
| 639 | |
| 640 | * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove |
| 641 | sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o. |
| 642 | <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o, |
| 643 | sol2-tdep.o, sparc-sol2-tdep.o. |
| 644 | * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static. |
| 645 | * sparc-tdep.h (sparc32_sol2_init_abi): Remove. |
| 646 | * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static. |
| 647 | * sparc64-tdep.h (sparc64_sol2_init_abi): Remove. |
| 648 | |
| 649 | 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
| 650 | |
| 651 | * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove. |
| 652 | (amd64_sol2_init_abi): Use sol2_sigtramp_p. |
| 653 | Call sol2_init_abi. |
| 654 | Remove calls to set_gdbarch_skip_solib_resolver, |
| 655 | set_gdbarch_core_pid_to_str. |
| 656 | * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove. |
| 657 | (i386_sol2_static_transform_name): Remove. |
| 658 | (i386_sol2_init_abi): Call sol2_init_abi. |
| 659 | Remove calls to set_gdbarch_sofun_address_maybe_missing, |
| 660 | set_gdbarch_static_transform_name, |
| 661 | set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str. |
| 662 | Use sol2_sigtramp_p. |
| 663 | * sol2-tdep.c (sol2_pc_in_sigtramp): New function. |
| 664 | (sol2_sigtramp_p): New function. |
| 665 | (sol2_static_transform_name): New function. |
| 666 | (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static. |
| 667 | (sol2_init_abi): New function. |
| 668 | * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare. |
| 669 | (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove. |
| 670 | * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove. |
| 671 | (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p. |
| 672 | (sparc_sol2_static_transform_name): Remove. |
| 673 | (sparc32_sol2_init_abi): Call sol2_init_abi. |
| 674 | Remove calls to set_gdbarch_sofun_address_maybe_missing, |
| 675 | set_gdbarch_static_transform_name, |
| 676 | set_gdbarch_skip_solib_resolver, |
| 677 | set_gdbarch_core_pid_to_str. |
| 678 | * sparc-tdep.h (sparc_sol2_pc_in_sigtramp) |
| 679 | (sparc_sol2_static_transform_name): Remove |
| 680 | * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just |
| 681 | call sol2_sigtramp_p. |
| 682 | (sparc64_sol2_init_abi): Call sol2_init_abi. |
| 683 | Remove calls to set_gdbarch_sofun_address_maybe_missing, |
| 684 | set_gdbarch_static_transform_name, |
| 685 | set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str. |
| 686 | |
| 687 | 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
| 688 | |
| 689 | * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM. |
| 690 | * exec.c (validate_exec_file): If from_tty, set both |
| 691 | SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM. |
| 692 | * symfile.c (symbol_file_add_with_addrs): if always_confirm |
| 693 | and from_tty, unconditionally ask a confirmation. |
| 694 | |
| 695 | 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com> |
| 696 | |
| 697 | * target-descriptions.c (tdesc_architecture_name): Protect against |
| 698 | NULL pointer dereference. |
| 699 | (maint_print_xml_tdesc_cmd): New function. |
| 700 | (_initialize_target_descriptions): Register new 'maint print |
| 701 | xml-tdesc' command and give it the filename completer. |
| 702 | * NEWS: Mention new 'maint print xml-tdesc' command. |
| 703 | |
| 704 | 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com> |
| 705 | |
| 706 | * target-descriptions.c (class tdesc_compatible_info): New class. |
| 707 | (struct target_desc): Change type of compatible vector. |
| 708 | (tdesc_compatible_p): Update for change in type of |
| 709 | target_desc::compatible. |
| 710 | (tdesc_compatible_info_list): New function. |
| 711 | (tdesc_compatible_info_arch_name): New function. |
| 712 | (tdesc_add_compatible): Update for change in type of |
| 713 | target_desc::compatible. |
| 714 | (print_c_tdesc::visit_pre): Likewise. |
| 715 | |
| 716 | 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com> |
| 717 | |
| 718 | * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change |
| 719 | whitespace to underscore. |
| 720 | (maint_print_c_tdesc_cmd): Use fake filename for target |
| 721 | descriptions that came from the target. |
| 722 | (_initialize_target_descriptions): Add filename command completion |
| 723 | for 'maint print c-tdesc'. |
| 724 | |
| 725 | 2020-06-23 Simon Marchi <simon.marchi@efficios.com> |
| 726 | |
| 727 | * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty |
| 728 | lines. |
| 729 | |
| 730 | 2020-06-23 Simon Marchi <simon.marchi@efficios.com> |
| 731 | |
| 732 | * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty |
| 733 | lines. |
| 734 | (dwarf2_find_location_expression): Likewise. |
| 735 | (call_site_parameter_matches): Likewise. |
| 736 | (dwarf2_compile_expr_to_ax): Likewise. |
| 737 | (disassemble_dwarf_expression): Likewise. |
| 738 | (loclist_describe_location): Likewise. |
| 739 | |
| 740 | 2020-06-23 Pedro Alves <palves@redhat.com> |
| 741 | |
| 742 | * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or |
| 743 | progspace-and-thread.h. Include scoped-mock-context.h instead. |
| 744 | (register_to_value_test): Use scoped_mock_context. |
| 745 | * regcache.c: Include "scoped-mock-context.h". |
| 746 | (cooked_read_test): Don't error out if a target is already pushed. |
| 747 | Use scoped_mock_context. Adjust. |
| 748 | * scoped-mock-context.h: New file. |
| 749 | |
| 750 | 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com> |
| 751 | |
| 752 | * ada-lang.c (ada_language_data): Delete la_is_string_type_p |
| 753 | initializer. |
| 754 | (ada_language::is_string_type_p): New member function. |
| 755 | * c-lang.c (c_language_data): Delete la_is_string_type_p |
| 756 | initializer. |
| 757 | (cplus_language_data): Likewise. |
| 758 | (asm_language_data): Likewise. |
| 759 | (minimal_language_data): Likewise. |
| 760 | * d-lang.c (d_language_data): Likewise. |
| 761 | * f-lang.c (f_is_string_type_p): Delete function, implementation |
| 762 | moved to f_language::is_string_type_p. |
| 763 | (f_language_data): Delete la_is_string_type_p initializer. |
| 764 | (f_language::is_string_type_p): New member function, |
| 765 | implementation from f_is_string_type_p. |
| 766 | * go-lang.c (go_is_string_type_p): Delete function, implementation |
| 767 | moved to go_language::is_string_type_p. |
| 768 | (go_language_data): Delete la_is_string_type_p initializer. |
| 769 | (go_language::is_string_type_p): New member function, |
| 770 | implementation from go_is_string_type_p. |
| 771 | * language.c (language_defn::is_string_type_p): Define new member |
| 772 | function. |
| 773 | (default_is_string_type_p): Make static, add comment copied from |
| 774 | header file. |
| 775 | (unknown_language_data): Delete la_is_string_type_p initializer. |
| 776 | (unknown_language::is_string_type_p): New member function. |
| 777 | (auto_language_data): Delete la_is_string_type_p initializer. |
| 778 | (auto_language::is_string_type_p): New member function. |
| 779 | * language.h (language_data): Delete la_is_string_type_p field. |
| 780 | (language_defn::is_string_type_p): Declare new function. |
| 781 | (default_is_string_type_p): Delete desclaration, move comment to |
| 782 | definition. |
| 783 | * m2-lang.c (m2_is_string_type_p): Delete function, implementation |
| 784 | moved to m2_language::is_string_type_p. |
| 785 | (m2_language_data): Delete la_is_string_type_p initializer. |
| 786 | (m2_language::is_string_type_p): New member function, |
| 787 | implementation from m2_is_string_type_p. |
| 788 | * objc-lang.c (objc_language_data): Delete la_is_string_type_p |
| 789 | initializer. |
| 790 | * opencl-lang.c (opencl_language_data): Likewise. |
| 791 | * p-lang.c (pascal_is_string_type_p): Delete function, |
| 792 | implementation moved to pascal_language::is_string_type_p. |
| 793 | (pascal_language_data): Delete la_is_string_type_p initializer. |
| 794 | (pascal_language::is_string_type_p): New member function, |
| 795 | implementation from pascal_is_string_type_p. |
| 796 | * rust-lang.c (rust_is_string_type_p): Delete function, |
| 797 | implementation moved to rust_language::is_string_type_p. |
| 798 | (rust_language_data): Delete la_is_string_type_p initializer. |
| 799 | (rust_language::is_string_type_p): New member function, |
| 800 | implementation from rust_is_string_type_p. |
| 801 | * valprint.c (val_print_scalar_or_string_type_p): Update call to |
| 802 | is_string_type_p. |
| 803 | |
| 804 | 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com> |
| 805 | |
| 806 | * ada-lang.c (ada_language_data): Delete la_print_typedef |
| 807 | initializer. |
| 808 | (ada_language::print_typedef): New member function. |
| 809 | * c-lang.c (c_language_data): Delete la_print_typedef initializer. |
| 810 | (cplus_language_data): Likewise. |
| 811 | (asm_language_data): Likewise. |
| 812 | (minimal_language_data): Likewise. |
| 813 | * d-lang.c (d_language_data): Likewise. |
| 814 | * f-lang.c (f_language_data): Likewise. |
| 815 | (f_language::print_typedef): New member function. |
| 816 | * go-lang.c (go_language_data): Delete la_print_typedef |
| 817 | initializer. |
| 818 | * language.c (language_defn::print_typedef): Define member |
| 819 | function. |
| 820 | (unknown_language_data): Delete la_print_typedef initializer. |
| 821 | (unknown_language::print_typedef): New member function. |
| 822 | (auto_language_data): Delete la_print_typedef initializer. |
| 823 | (auto_language::print_typedef): New member function. |
| 824 | * language.h (language_data): Delete la_print_typedef field. |
| 825 | (language_defn::print_typedef): Declare new member function. |
| 826 | (LA_PRINT_TYPEDEF): Update call to print_typedef. |
| 827 | (default_print_typedef): Delete declaration. |
| 828 | * m2-lang.c (m2_language_data): Delete la_print_typedef |
| 829 | initializer. |
| 830 | (m2_language::print_typedef): New member function. |
| 831 | * objc-lang.c (objc_language_data): Delete la_print_typedef |
| 832 | initializer. |
| 833 | * opencl-lang.c (opencl_language_data): Likewise. |
| 834 | * p-lang.c (pascal_language_data): Likewise. |
| 835 | (pascal_language::print_typedef): New member function. |
| 836 | * rust-lang.c (rust_print_typedef): Delete function, |
| 837 | implementation moved to rust_language::print_typedef. |
| 838 | (rust_language): Delete la_print_typedef initializer. |
| 839 | (rust_language::print_typedef): New member function, |
| 840 | implementation from rust_print_typedef. |
| 841 | * typeprint.c (default_print_typedef): Delete. |
| 842 | |
| 843 | 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com> |
| 844 | |
| 845 | * ada-lang.c (ada_language_data): Delete la_printstr initializer. |
| 846 | (ada_language::printstr): New member function. |
| 847 | * c-lang.c (c_language_data): Delete la_printstr initializer. |
| 848 | (cplus_language_data): Likewise. |
| 849 | (asm_language_data): Likewise. |
| 850 | (minimal_language_data): Likewise. |
| 851 | * d-lang.c (d_language_data): Likewise. |
| 852 | * f-lang.c (f_printstr): Rename to f_language::printstr. |
| 853 | (f_language_data): Delete la_printstr initializer. |
| 854 | (f_language::printstr): New member function, implementation from |
| 855 | f_printstr. |
| 856 | * go-lang.c (go_language_data): Delete la_printstr initializer. |
| 857 | * language.c (language_defn::printstr): Define new member |
| 858 | function. |
| 859 | (unk_lang_printstr): Delete. |
| 860 | (unknown_language_data): Delete la_printstr initializer. |
| 861 | (unknown_language::printstr): New member function. |
| 862 | (auto_language_data): Delete la_printstr initializer. |
| 863 | (auto_language::printstr): New member function. |
| 864 | * language.h (language_data): Delete la_printstr field. |
| 865 | (language_defn::printstr): Declare new member function. |
| 866 | (LA_PRINT_STRING): Update call to printstr. |
| 867 | * m2-lang.c (m2_printstr): Rename to m2_language::printstr. |
| 868 | (m2_language_data): Delete la_printstr initializer. |
| 869 | (m2_language::printstr): New member function, implementation from |
| 870 | m2_printstr. |
| 871 | * objc-lang.c (objc_language_data): Delete la_printstr |
| 872 | initializer. |
| 873 | * opencl-lang.c (opencl_language_data): Likewise. |
| 874 | * p-lang.c (pascal_printstr): Rename to pascal_language::printstr. |
| 875 | (pascal_language_data): Delete la_printstr initializer. |
| 876 | (pascal_language::printstr): New member function, implementation |
| 877 | from pascal_printstr. |
| 878 | * p-lang.h (pascal_printstr): Delete declaration. |
| 879 | * rust-lang.c (rust_printstr): Update header comment. |
| 880 | (rust_language_data): Delete la_printstr initializer. |
| 881 | (rust_language::printstr): New member function. |
| 882 | |
| 883 | 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com> |
| 884 | |
| 885 | * ada-lang.c (ada_language_data): Delete la_printchar initializer. |
| 886 | (ada_language::printchar): New member function. |
| 887 | * c-lang.c (c_language_data): Delete la_printchar initializer. |
| 888 | (cplus_language_data): Likewise. |
| 889 | (asm_language_data): Likewise. |
| 890 | (minimal_language_data): Likewise. |
| 891 | * d-lang.c (d_language_data): Likewise. |
| 892 | * f-lang.c (f_printchar): Rename to f_language::printchar. |
| 893 | (f_language_data): Delete la_printchar initializer. |
| 894 | (f_language::printchar): New member function, implementation from |
| 895 | f_printchar. |
| 896 | * go-lang.c (go_language_data): Delete la_printchar initializer. |
| 897 | * language.c (unk_lang_printchar): Delete. |
| 898 | (language_defn::printchar): Define new member function. |
| 899 | (unknown_language_data): Delete la_printchar initializer. |
| 900 | (unknown_language::printchar): New member function. |
| 901 | (auto_language_data): Delete la_printchar initializer. |
| 902 | (auto_language::printchar): New member function. |
| 903 | * language.h (language_data): Delete la_printchar field. |
| 904 | (language_defn::printchar): Declare new member function. |
| 905 | (LA_PRINT_CHAR): Update call to printchar. |
| 906 | * m2-lang.c (m2_language_data): Delete la_printchar initializer. |
| 907 | (m2_language::printchar): New member function. |
| 908 | * objc-lang.c (objc_language_data): Delete la_printchar |
| 909 | initializer. |
| 910 | * opencl-lang.c (opencl_language_data): Likewise. |
| 911 | * p-lang.c (pascal_language_data): Delete la_printchar |
| 912 | initializer. |
| 913 | (pascal_language::printchar): New member function. |
| 914 | * rust-lang.c (rust_printchar): Rename to |
| 915 | rust_language::printchar. |
| 916 | (rust_language_data): Delete la_printchar initializer. |
| 917 | (rust_language::printchar): New member function, implementation |
| 918 | from rust_printchar. |
| 919 | |
| 920 | 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com> |
| 921 | |
| 922 | * ada-lang.c (emit_char): Renamed to ada_language::emitchar. |
| 923 | (ada_language_data): Delete la_emitchar initializer. |
| 924 | (ada_language::emitchar): New member function, implementation from |
| 925 | emit_char. |
| 926 | * c-lang.c (c_language_data): Delete la_emitchar initializer. |
| 927 | (cplus_language_data): Likewise. |
| 928 | (asm_language_data): Likewise. |
| 929 | (minimal_language_data): Likewise. |
| 930 | * d-lang.c (d_language_data): Likewise. |
| 931 | * f-lang.c (f_emit_char): Rename to f_language::emitchar. |
| 932 | (f_language_data): Delete la_emitchar initializer. |
| 933 | (f_language::emitchar): New member function, implementation from |
| 934 | f_emit_char. |
| 935 | * go-lang.c (go_language_data): Delete la_emitchar initializer. |
| 936 | * language.c (unk_lang_emit_char): Delete. |
| 937 | (language_defn::emitchar): New member function definition. |
| 938 | (unknown_language_data): Delete la_emitchar initializer. |
| 939 | (unknown_language::emitchar): New member function. |
| 940 | (auto_language_data): Delete la_emitchar initializer. |
| 941 | (auto_language::emitchar): New member function. |
| 942 | * language.h (language_data): Delete la_emitchar field. |
| 943 | (language_defn::emitchar): New member field declaration. |
| 944 | (LA_EMIT_CHAR): Update call to emitchar. |
| 945 | * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar. |
| 946 | (m2_language_data): Delete la_emitchar initializer. |
| 947 | (m2_language::emitchar): New member function, implementation from |
| 948 | m2_emit_char. |
| 949 | * objc-lang.c (objc_language_data): Delete la_emitchar |
| 950 | initializer. |
| 951 | * opencl-lang.c (opencl_language_data): Likewise. |
| 952 | * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar. |
| 953 | (pascal_language_data): Delete la_emitchar initializer. |
| 954 | (pascal_language::emitchar): New member function, implementation |
| 955 | from pascal_emit_char. |
| 956 | * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar. |
| 957 | (rust_language_data): Delete la_emitchar initializer. |
| 958 | (rust_language::emitchar): New member function, implementation |
| 959 | from rust_emitchar. |
| 960 | |
| 961 | 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com> |
| 962 | |
| 963 | * ada-lang.c (resolve): Rename to ada_language::post_parser. |
| 964 | (ada_language_data): Delete la_post_parser initializer. |
| 965 | (ada_language::post_parser): New member function. |
| 966 | * c-lang.c (c_language_data): Delete la_post_parser initializer. |
| 967 | (cplus_language_data): Likewise. |
| 968 | (asm_language_data): Likewise. |
| 969 | (minimal_language_data): Likewise. |
| 970 | * d-lang.c (d_language_data): Likewise. |
| 971 | * f-lang.c (f_language_data): Likewise. |
| 972 | * go-lang.c (go_language_data): Likewise. |
| 973 | * language.c (unknown_language_data): Likewise. |
| 974 | (auto_language_data): Likewise. |
| 975 | * language.h (language_data): Delete la_post_parser field. |
| 976 | (language_defn::post_parser): New member function. |
| 977 | * m2-lang.c (m2_language_data): Delete la_post_parser initializer. |
| 978 | * objc-lang.c (objc_language_data): Likewise. |
| 979 | * opencl-lang.c (opencl_language_data): Likewise. |
| 980 | * p-lang.c (pascal_language_data): Likewise. |
| 981 | * parse.c (parse_exp_in_context): Update call to post_parser. |
| 982 | (null_post_parser): Delete definition. |
| 983 | * parser-defs.h (null_post_parser): Delete declaration. |
| 984 | * rust-lang.c (rust_language_data): Delete la_post_parser |
| 985 | initializer. |
| 986 | |
| 987 | 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com> |
| 988 | |
| 989 | * ada-lang.c (parse): Rename to ada_language::parser. |
| 990 | (ada_language_data): Delete la_parser initializer. |
| 991 | (ada_language::parser): New member function, implementation from |
| 992 | parse. |
| 993 | * c-lang.c (c_language_data): Delete la_parser initializer. |
| 994 | (cplus_language_data): Likewise. |
| 995 | (asm_language_data): Likewise. |
| 996 | (minimal_language_data): Likewise. |
| 997 | * d-lang.c (d_language_data): Likewise. |
| 998 | (d_language::parser): New member function. |
| 999 | * f-lang.c (f_language_data): Delete la_parser initializer. |
| 1000 | (f_language::parser): New member function. |
| 1001 | * go-lang.c (go_language_data): Delete la_parser initializer. |
| 1002 | (go_language::parser): New member function. |
| 1003 | * language.c (unk_lang_parser): Delete. |
| 1004 | (language_defn::parser): Define new member function. |
| 1005 | (unknown_language_data): Delete la_parser initializer. |
| 1006 | (unknown_language::parser): New member function. |
| 1007 | (auto_language_data): Delete la_parser initializer. |
| 1008 | (auto_language::parser): New member function. |
| 1009 | * language.h (language_data): Delete la_parser field. |
| 1010 | (language_defn::parser): Declare new member function. |
| 1011 | * m2-lang.c (m2_language_data): Delete la_parser initializer. |
| 1012 | (m2_language::parser): New member function. |
| 1013 | * objc-lang.c (objc_language_data): Delete la_parser initializer. |
| 1014 | * opencl-lang.c (opencl_language_data): Likewise. |
| 1015 | * p-lang.c (pascal_language_data): Likewise. |
| 1016 | (pascal_language::parser): New member function. |
| 1017 | * parse.c (parse_exp_in_context): Update call to parser. |
| 1018 | * rust-lang.c (rust_language_data): Delete la_parser initializer. |
| 1019 | (rust_language::parser): New member function. |
| 1020 | |
| 1021 | 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com> |
| 1022 | |
| 1023 | * top.c (print_gdb_configuration): Print --with-python-libdir |
| 1024 | configuration value. |
| 1025 | |
| 1026 | 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
| 1027 | |
| 1028 | * NEWS: Mention change to the alias command. |
| 1029 | |
| 1030 | 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
| 1031 | |
| 1032 | * cli/cli-cmds.c (lookup_cmd_for_default_args) |
| 1033 | (alias_command_completer) |
| 1034 | (make_alias_options_def_group): New functions. |
| 1035 | (alias_opts, alias_option_defs): New struct and array. |
| 1036 | (alias_usage_error): Update usage. |
| 1037 | (alias_command): Handles optional DEFAULT-ARGS... arguments. |
| 1038 | Use option framework. |
| 1039 | (_initialize_cli_cmds): Update alias command help. |
| 1040 | Update aliases command help. |
| 1041 | (show_user): |
| 1042 | Add NULL for new default_args lookup_cmd argument. |
| 1043 | (valid_command_p): Rename to validate_aliased_command. |
| 1044 | Add NULL for new default_args lookup_cmd argument. Verify that the |
| 1045 | aliased_command has no default args. |
| 1046 | * cli/cli-decode.c (help_cmd): Show aliases definitions. |
| 1047 | (lookup_cmd_1, lookup_cmd): New argument default_args. |
| 1048 | (add_alias_cmd): |
| 1049 | Add NULL for new default_args lookup_cmd argument. |
| 1050 | (print_help_for_command): Show default args under the layout |
| 1051 | alias some_alias = some_aliased_cmd some_alias_default_arg. |
| 1052 | * cli/cli-decode.h (struct cmd_list_element): New member default_args. |
| 1053 | xfree default_args in destructor. |
| 1054 | * cli/cli-script.c (process_next_line, do_define_command): |
| 1055 | Add NULL for new default_args lookup_cmd argument. |
| 1056 | * command.h: Declare new default_args argument in lookup_cmd |
| 1057 | and lookup_cmd_1. |
| 1058 | * completer.c (complete_line_internal_1): |
| 1059 | Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument. |
| 1060 | * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise. |
| 1061 | * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p): |
| 1062 | Likewise. |
| 1063 | * infcmd.c (_initialize_infcmd): Likewise. |
| 1064 | * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise. |
| 1065 | * python/py-cmd.c (gdbpy_parse_command_name): Likewise. |
| 1066 | * python/py-param.c (add_setshow_generic): Likewise. |
| 1067 | * remote.c (_initialize_remote): Likewise. |
| 1068 | * top.c (execute_command): Prepend default_args if command has some. |
| 1069 | (set_verbose): |
| 1070 | Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument. |
| 1071 | * tracepoint.c (validate_actionline, encode_actions_1): |
| 1072 | Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument. |
| 1073 | |
| 1074 | 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
| 1075 | |
| 1076 | * jit.c (jit_read_descriptor): Use bool as the return type. |
| 1077 | (jit_breakpoint_re_set_internal): Use bool as the return type. |
| 1078 | Invert the return value logic; return true if the jit breakpoint |
| 1079 | has been successfully initialized. |
| 1080 | (jit_inferior_init): Update the call to |
| 1081 | jit_breakpoint_re_set_internal. |
| 1082 | |
| 1083 | 2020-06-22 Pedro Alves <palves@redhat.com> |
| 1084 | |
| 1085 | PR gdb/25939 |
| 1086 | * procfs.c (procfs_target::wait): Don't reference inferior_ptid. |
| 1087 | Use the current inferior instead. Don't return |
| 1088 | TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and |
| 1089 | wait again. |
| 1090 | * sol-thread.c (sol_thread_target::wait): Don't reference |
| 1091 | inferior_ptid. |
| 1092 | (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs) |
| 1093 | (sol_update_thread_list_callback): Use the current inferior's pid |
| 1094 | instead of inferior_ptid. |
| 1095 | |
| 1096 | 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
| 1097 | |
| 1098 | * procfs.c: Cleanup many comments. |
| 1099 | |
| 1100 | (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG) |
| 1101 | (AFTER_WATCHFLAG): Replace by value. |
| 1102 | |
| 1103 | (MAIN_PROC_NAME_FORMAT): Inline ... |
| 1104 | (create_procinfo): ... here. |
| 1105 | |
| 1106 | (procfs_debug_inferior): Remove SYS_exec handling. |
| 1107 | (syscall_is_exec): Likewise. |
| 1108 | (procfs_set_exec_trap): Likewise. |
| 1109 | |
| 1110 | (syscall_is_lwp_exit): Inline in callers. |
| 1111 | (syscall_is_exit): Likewise. |
| 1112 | (syscall_is_exec): Likewise. |
| 1113 | (syscall_is_lwp_create): Likewise. |
| 1114 | |
| 1115 | (invalidate_cache): Remove #if 0 code. |
| 1116 | |
| 1117 | (make_signal_thread_runnable): Remove. |
| 1118 | (procfs_target::resume): Remove #if 0 code. |
| 1119 | |
| 1120 | 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
| 1121 | |
| 1122 | PR gdb/25939 |
| 1123 | * procfs.c (procfs_target::procfs_init_inferior): Move push_target |
| 1124 | call ... |
| 1125 | (procfs_target::create_inferior): ... here. |
| 1126 | |
| 1127 | 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
| 1128 | |
| 1129 | * exec.c (validate_exec_file): Ensure the build-id is up to |
| 1130 | date by calling reopen_exec_file (that checks file timestamp |
| 1131 | to decide to re-read the file). |
| 1132 | |
| 1133 | 2020-06-18 Pedro Alves <palves@redhat.com> |
| 1134 | |
| 1135 | PR gdb/25412 |
| 1136 | * gdbthread.h (delete_thread, delete_thread_silent) |
| 1137 | (find_thread_ptid): Update comments. |
| 1138 | * thread.c (current_thread_): New global. |
| 1139 | (is_current_thread): Move higher, and reimplement. |
| 1140 | (inferior_thread): Reimplement. |
| 1141 | (set_thread_exited): Use bool. Add assertions. |
| 1142 | (add_thread_silent): Simplify thread-reuse handling by always |
| 1143 | calling delete_thread. |
| 1144 | (delete_thread): Remove intro comment. |
| 1145 | (find_thread_ptid): Skip exited threads. |
| 1146 | (switch_to_thread_no_regs): Write to current_thread_. |
| 1147 | (switch_to_no_thread): Check CURRENT_THREAD_ instead of |
| 1148 | INFERIOR_PTID. Clear current_thread_. |
| 1149 | |
| 1150 | 2020-06-18 Pedro Alves <palves@redhat.com> |
| 1151 | |
| 1152 | * aix-thread.c (pd_update): Use switch_to_thread. |
| 1153 | |
| 1154 | 2020-06-18 Pedro Alves <palves@redhat.com> |
| 1155 | |
| 1156 | * ravenscar-thread.c (ravenscar_thread_target): Update. |
| 1157 | (ravenscar_thread_target::update_inferior_ptid): Rename to ... |
| 1158 | (ravenscar_thread_target::add_active_thread): ... this. Don't |
| 1159 | set m_base_ptid here. Update to avoid referencing inferior_ptid. |
| 1160 | (ravenscar_thread_target::wait): Don't write to inferior_ptid. |
| 1161 | |
| 1162 | 2020-06-18 Pedro Alves <palves@redhat.com> |
| 1163 | |
| 1164 | * nat/windows-nat.c (current_windows_thread): Remove. |
| 1165 | * nat/windows-nat.h (current_windows_thread): Remove. |
| 1166 | * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint): |
| 1167 | Adjust. |
| 1168 | (display_selectors): Adjust to fetch the current |
| 1169 | windows_thread_info based on inferior_ptid. |
| 1170 | (fake_create_process): No longer write to current_windows_thread. |
| 1171 | (windows_nat_target::get_windows_debug_event): |
| 1172 | Don't set inferior_ptid or current_windows_thread. |
| 1173 | (windows_nat_target::wait): Adjust to not rely on |
| 1174 | current_windows_thread. |
| 1175 | (do_initial_windows_stuff): Now a method of windows_nat_target. |
| 1176 | Switch to the last_ptid thread. |
| 1177 | (windows_nat_target::attach): Adjust. |
| 1178 | (windows_nat_target::detach): Use switch_to_no_thread instead of |
| 1179 | writing to inferior_ptid directly. |
| 1180 | (windows_nat_target::create_inferior): Adjust. |
| 1181 | |
| 1182 | 2020-06-18 Pedro Alves <palves@redhat.com> |
| 1183 | |
| 1184 | * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid. |
| 1185 | |
| 1186 | 2020-06-18 Pedro Alves <palves@redhat.com> |
| 1187 | |
| 1188 | * go32-nat.c (go32_nat_target::create_inferior): Switch to thread |
| 1189 | after creating it, instead of writing to inferior_ptid. Don't |
| 1190 | write to inferior_ptid. |
| 1191 | |
| 1192 | 2020-06-18 Pedro Alves <palves@redhat.com> |
| 1193 | |
| 1194 | * fork-child.c (postfork_hook): Don't write to inferior_ptid. |
| 1195 | |
| 1196 | 2020-06-18 Pedro Alves <palves@redhat.com> |
| 1197 | |
| 1198 | * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding |
| 1199 | it, instead of writing to inferior_ptid. |
| 1200 | |
| 1201 | 2020-06-18 Pedro Alves <palves@redhat.com> |
| 1202 | |
| 1203 | * btrace.c (btrace_fetch): Use switch_to_thread instead of writing |
| 1204 | to inferior_ptid. |
| 1205 | |
| 1206 | 2020-06-18 Pedro Alves <palves@redhat.com> |
| 1207 | |
| 1208 | * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread |
| 1209 | instead of writing to inferior_ptid directly. |
| 1210 | |
| 1211 | 2020-06-18 Pedro Alves <palves@redhat.com> |
| 1212 | |
| 1213 | * corelow.c (core_target::close): Use switch_to_no_thread instead |
| 1214 | of writing to inferior_ptid directly. |
| 1215 | (add_to_thread_list, core_target_open): Use switch_to_thread |
| 1216 | instead of writing to inferior_ptid directly. |
| 1217 | |
| 1218 | 2020-06-18 Pedro Alves <palves@redhat.com> |
| 1219 | |
| 1220 | * darwin-nat.c (darwin_nat_target::decode_message): Don't write to |
| 1221 | inferior_ptid. |
| 1222 | (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid |
| 1223 | inferior_ptid. |
| 1224 | (darwin_attach_pid): Use switch_to_no_thread instead of writing to |
| 1225 | inferior_ptid directly. |
| 1226 | (darwin_nat_target::init_thread_list): Switch to thread, instead |
| 1227 | of writing to inferior_ptid. |
| 1228 | (darwin_nat_target::attach): Don't write to inferior_ptid. |
| 1229 | (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid. |
| 1230 | |
| 1231 | 2020-06-18 Pedro Alves <palves@redhat.com> |
| 1232 | |
| 1233 | * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added |
| 1234 | thread. |
| 1235 | (gnu_nat_target::attach): Don't write to inferior_ptid directly. |
| 1236 | Instead use switch_to_thread. |
| 1237 | (gnu_nat_target::detach): Use switch_to_no_thread |
| 1238 | instead of writing to inferior_ptid directly. Used passed-in |
| 1239 | inferior instead of looking up the inferior by pid. |
| 1240 | |
| 1241 | 2020-06-18 Pedro Alves <palves@redhat.com> |
| 1242 | |
| 1243 | * go32-nat.c (go32_nat_target::create_inferior): Don't write to |
| 1244 | inferior_ptid. |
| 1245 | |
| 1246 | 2020-06-18 Pedro Alves <palves@redhat.com> |
| 1247 | |
| 1248 | * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid |
| 1249 | inferior_ptid. |
| 1250 | (nto_procfs_target::attach): Avoid inferior_ptid. Switch to |
| 1251 | thread. |
| 1252 | (nto_procfs_target::detach): Avoid referencing |
| 1253 | inferior_ptid. Use switch_to_no_thread instead of writing to |
| 1254 | inferior_ptid directly. |
| 1255 | (nto_procfs_target::mourn_inferior): Use switch_to_no_thread |
| 1256 | instead of writing to inferior_ptid directly. |
| 1257 | (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch |
| 1258 | to thread. |
| 1259 | |
| 1260 | 2020-06-18 Pedro Alves <palves@redhat.com> |
| 1261 | |
| 1262 | * remote-sim.c (gdbsim_target::create_inferior): Switch to thread |
| 1263 | after creating it, instead of writing to inferior_ptid. |
| 1264 | (gdbsim_target_open): Use switch_to_no_thread instead of writing |
| 1265 | to inferior_ptid directly. |
| 1266 | (gdbsim_target::wait): Don't write to inferior_ptid. |
| 1267 | |
| 1268 | 2020-06-18 Pedro Alves <palves@redhat.com> |
| 1269 | |
| 1270 | * remote.c (remote_target::remote_notice_new_inferior): Use |
| 1271 | switch_to_thread instead of writing to inferior_ptid directly. |
| 1272 | (remote_target::add_current_inferior_and_thread): Use |
| 1273 | switch_to_no_thread instead of writing to inferior_ptid directly. |
| 1274 | (extended_remote_target::attach): Use switch_to_inferior_no_thread |
| 1275 | and switch_to_thread instead of using set_current_inferior or |
| 1276 | writing to inferior_ptid directly. |
| 1277 | |
| 1278 | 2020-06-18 Pedro Alves <palves@redhat.com> |
| 1279 | |
| 1280 | * tracectf.c (ctf_target_open): Switch to added thread instead of |
| 1281 | writing to inferior_ptid directly. |
| 1282 | (ctf_target::close): Use switch_to_no_thread instead of writing to |
| 1283 | inferior_ptid directly. |
| 1284 | |
| 1285 | 2020-06-18 Pedro Alves <palves@redhat.com> |
| 1286 | |
| 1287 | * tracefile-tfile.c (tfile_target_open): Don't write to |
| 1288 | inferior_ptid directly, instead switch to added thread. |
| 1289 | (tfile_target::close): Use switch_to_no_thread instead of writing |
| 1290 | to inferior_ptid directly. |
| 1291 | |
| 1292 | 2020-06-18 Pedro Alves <palves@redhat.com> |
| 1293 | |
| 1294 | * procfs.c (procfs_target::attach): Don't write to inferior_ptid. |
| 1295 | (procfs_target::detach): Use switch_to_no_thread |
| 1296 | instead of writing to inferior_ptid directly. |
| 1297 | (do_attach): Change return type to void. Switch to the added |
| 1298 | thread. |
| 1299 | (procfs_target::create_inferior): Switch to the added thread. |
| 1300 | (procfs_do_thread_registers): Don't write to inferior_ptid. |
| 1301 | |
| 1302 | 2020-06-18 Pedro Alves <palves@redhat.com> |
| 1303 | |
| 1304 | * infrun.c (generic_mourn_inferior): Use switch_to_thread instead |
| 1305 | of writing to inferior_ptid. |
| 1306 | (scoped_restore_exited_inferior): Delete. |
| 1307 | (handle_vfork_child_exec_or_exit): Simplify using |
| 1308 | scoped_restore_current_pspace_and_thread. Use switch_to_thread |
| 1309 | instead of writing to inferior_ptid. |
| 1310 | (THREAD_STOPPED_BY): Delete. |
| 1311 | (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint) |
| 1312 | (thread_stopped_by_hw_breakpoint): Delete. |
| 1313 | (save_waitstatus): Use |
| 1314 | scoped_restore_current_thread+switch_to_thread, and call |
| 1315 | target_stopped_by_watchpoint instead of |
| 1316 | thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint |
| 1317 | instead of thread_stopped_by_sw_breakpoint, and |
| 1318 | target_stopped_by_hw_breakpoint instead of |
| 1319 | thread_stopped_by_hw_breakpoint. |
| 1320 | (handle_inferior_event) |
| 1321 | <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to |
| 1322 | inferior_ptid directly, nor |
| 1323 | set_current_inferior/set_current_program_space. Use |
| 1324 | switch_to_thread / switch_to_inferior_no_thread instead. |
| 1325 | |
| 1326 | 2020-06-18 Pedro Alves <palves@redhat.com> |
| 1327 | |
| 1328 | * target.c (generic_mourn_inferior): Use switch_to_no_thread |
| 1329 | instead of writing to inferior_ptid. |
| 1330 | |
| 1331 | 2020-06-18 Pedro Alves <palves@redhat.com> |
| 1332 | |
| 1333 | * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the |
| 1334 | added thread. |
| 1335 | (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch |
| 1336 | to the added thread. |
| 1337 | (inf_ptrace_target::detach_success): Use switch_to_no_thread |
| 1338 | instead of writing to inferior_ptid. |
| 1339 | |
| 1340 | 2020-06-18 Pedro Alves <palves@redhat.com> |
| 1341 | |
| 1342 | * gdbarch-selftests.c: Include "progspace-and-thread.h". |
| 1343 | (register_to_value_test): Mock a program_space too. Heap-allocate |
| 1344 | the address space. Don't write to inferior_ptid. Use |
| 1345 | switch_to_thread instead. |
| 1346 | |
| 1347 | 2020-06-18 Pedro Alves <palves@redhat.com> |
| 1348 | |
| 1349 | * linux-tdep.c (find_signalled_thread(thread_info *,void *)): |
| 1350 | Delete. |
| 1351 | (find_signalled_thread()): New, factored out from |
| 1352 | linux_make_corefile_notes and adjusted to handle exited threads. |
| 1353 | (linux_make_corefile_notes): Adjust to use the new |
| 1354 | find_signalled_thread. |
| 1355 | |
| 1356 | 2020-06-18 Pedro Alves <palves@redhat.com> |
| 1357 | |
| 1358 | * linux-tdep.c (btrace_fetch): Save/restore current thread instead |
| 1359 | of saving/restoring inferior_ptid. |
| 1360 | |
| 1361 | 2020-06-17 Tom Tromey <tom@tromey.com> |
| 1362 | |
| 1363 | * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward) |
| 1364 | (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't |
| 1365 | declare. |
| 1366 | * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove. |
| 1367 | |
| 1368 | 2020-06-15 Simon Marchi <simon.marchi@efficios.com> |
| 1369 | |
| 1370 | * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence |
| 1371 | of partial symtabs. |
| 1372 | |
| 1373 | 2020-06-17 Simon Marchi <simon.marchi@efficios.com> |
| 1374 | |
| 1375 | * regformats/reg-arm.dat: Remove. |
| 1376 | * regformats/reg-bfin.dat: Remove. |
| 1377 | * regformats/reg-cris.dat: Remove. |
| 1378 | * regformats/reg-crisv32.dat: Remove. |
| 1379 | * regformats/reg-m32r.dat: Remove. |
| 1380 | * regformats/reg-tilegx.dat: Remove. |
| 1381 | * regformats/reg-tilegx32.dat: Remove. |
| 1382 | |
| 1383 | 2020-06-17 Simon Marchi <simon.marchi@efficios.com> |
| 1384 | |
| 1385 | * features/Makefile (WHICH): Remove arm files. |
| 1386 | * regformats/arm/arm-with-iwmmxt.dat: Remove. |
| 1387 | * regformats/arm/arm-with-neon.dat: Remove. |
| 1388 | * regformats/arm/arm-with-vfpv2.dat: Remove. |
| 1389 | * regformats/arm/arm-with-vfpv3.dat: Remove. |
| 1390 | |
| 1391 | 2020-06-17 Simon Marchi <simon.marchi@efficios.com> |
| 1392 | |
| 1393 | * features/Makefile (XMLTOC): Remove rx.xml. |
| 1394 | |
| 1395 | 2020-06-17 Pedro Alves <palves@redhat.com> |
| 1396 | |
| 1397 | * gdbthread.h (thread_control_state) <trap_expected> Update |
| 1398 | comments. |
| 1399 | |
| 1400 | 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com> |
| 1401 | |
| 1402 | * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to |
| 1403 | ada_language::lookup_symbol_nonlocal. |
| 1404 | (ada_language_data): Delete la_lookup_symbol_nonlocal initializer. |
| 1405 | (ada_language::lookup_symbol_nonlocal): New member function, |
| 1406 | implementation from ada_lookup_symbol_nonlocal. |
| 1407 | * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal |
| 1408 | initializer. |
| 1409 | (cplus_language_data): Delete la_lookup_symbol_nonlocal |
| 1410 | initializer. |
| 1411 | (cplus_language::lookup_symbol_nonlocal): New member function. |
| 1412 | (asm_language_data): Delete la_lookup_symbol_nonlocal initializer. |
| 1413 | (minimal_language_data) Likewise. |
| 1414 | * cp-namespace.c (cp_lookup_nested_symbol): Update comment. |
| 1415 | * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal |
| 1416 | initializer. |
| 1417 | (d_language::lookup_symbol_nonlocal): New member function. |
| 1418 | * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal |
| 1419 | initializer. |
| 1420 | (f_language::lookup_symbol_nonlocal): New member function. |
| 1421 | * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal |
| 1422 | initializer. |
| 1423 | * language.c (unknown_language_data): Likewise. |
| 1424 | (auto_language_data): Likewise. |
| 1425 | * language.h (language_data): Delete la_lookup_symbol_nonlocal |
| 1426 | field. |
| 1427 | (language_defn::lookup_symbol_nonlocal): New member function. |
| 1428 | * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal |
| 1429 | initializer. |
| 1430 | * objc-lang.c (objc_language_data): Likewise. |
| 1431 | * opencl-lang.c (opencl_language_data): Likewise. |
| 1432 | * p-lang.c (pascal_language_data): Likewise. |
| 1433 | * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to |
| 1434 | rust_language::lookup_symbol_nonlocal. |
| 1435 | (rust_language_data): Delete la_lookup_symbol_nonlocal |
| 1436 | initializer. |
| 1437 | (rust_language::lookup_symbol_nonlocal): New member function, |
| 1438 | implementation from rust_lookup_symbol_nonlocal. |
| 1439 | * symtab.c (lookup_symbol_aux): Update call to |
| 1440 | lookup_symbol_nonlocal. |
| 1441 | (basic_lookup_symbol_nonlocal): Rename to... |
| 1442 | (language_defn::lookup_symbol_nonlocal): ...this, and update |
| 1443 | header comment. Remove language_defn parameter, and replace with |
| 1444 | uses of `this'. |
| 1445 | * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration. |
| 1446 | |
| 1447 | 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com> |
| 1448 | |
| 1449 | * ada-lang.c (ada_language_data): Delete la_value_print_inner |
| 1450 | initializer. |
| 1451 | (ada_language::value_print_inner): New member function. |
| 1452 | * c-lang.c (c_language_data): Delete la_value_print_inner |
| 1453 | initializer. |
| 1454 | (cplus_language_data): Likewise. |
| 1455 | (asm_language_data): Likewise. |
| 1456 | (minimal_language_data): Likewise. |
| 1457 | * d-lang.c (d_language_data): Likewise. |
| 1458 | (d_language::value_print_inner): New member function. |
| 1459 | * f-lang.c (f_language_data): Delete la_value_print_inner |
| 1460 | initializer. |
| 1461 | (f_language::value_print_inner): New member function. |
| 1462 | * f-lang.h (f_value_print_innner): Rename to... |
| 1463 | (f_value_print_inner): ...this (note spelling of 'inner'). |
| 1464 | * f-valprint.c (f_value_print_innner): Rename to... |
| 1465 | (f_value_print_inner): ...this (note spelling of 'inner'). |
| 1466 | * go-lang.c (go_language_data): Delete la_value_print_inner |
| 1467 | initializer. |
| 1468 | (go_language::value_print_inner): New member function. |
| 1469 | * language.c (language_defn::value_print_inner): Define new member |
| 1470 | function. |
| 1471 | (unk_lang_value_print_inner): Delete. |
| 1472 | (unknown_language_data): Delete la_value_print_inner initializer. |
| 1473 | (unknown_language::value_print_inner): New member function. |
| 1474 | (auto_language_data): Delete la_value_print_inner initializer. |
| 1475 | (auto_language::value_print_inner): New member function. |
| 1476 | * language.h (language_data): Delete la_value_print_inner field. |
| 1477 | (language_defn::value_print_inner): Delcare new member function. |
| 1478 | * m2-lang.c (m2_language_data): Delete la_value_print_inner |
| 1479 | initializer. |
| 1480 | (m2_language::value_print_inner): New member function. |
| 1481 | * objc-lang.c (objc_language_data): Delete la_value_print_inner |
| 1482 | initializer. |
| 1483 | * opencl-lang.c (opencl_language_data): Likewise. |
| 1484 | * p-lang.c (pascal_language_data): Likewise. |
| 1485 | (pascal_language::value_print_inner): New member function. |
| 1486 | * rust-lang.c (rust_language_data): Delete la_value_print_inner |
| 1487 | initializer. |
| 1488 | (rust_language::value_print_inner): New member function. |
| 1489 | * valprint.c (do_val_print): Update call to value_print_inner. |
| 1490 | |
| 1491 | 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com> |
| 1492 | |
| 1493 | * ada-lang.c (ada_language_data): Delete la_value_print |
| 1494 | initializer. |
| 1495 | (ada_language::value_print): New member function. |
| 1496 | * c-lang.c (c_language_data): Delete la_value_print initializer. |
| 1497 | (cplus_language_data): Likewise. |
| 1498 | (asm_language_data): Likewise. |
| 1499 | (minimal_language_data): Likewise. |
| 1500 | * d-lang.c (d_language_data): Likewise. |
| 1501 | * f-lang.c (f_language_data): Likewise. |
| 1502 | * go-lang.c (go_language_data): Likewise. |
| 1503 | * language.c (unk_lang_value_print): Delete. |
| 1504 | (language_defn::value_print): Define new member function. |
| 1505 | (unknown_language_data): Delete la_value_print initializer. |
| 1506 | (unknown_language::value_print): New member function. |
| 1507 | (auto_language_data): Delete la_value_print initializer. |
| 1508 | (auto_language::value_print): New member function. |
| 1509 | * language.h (language_data): Delete la_value_print field. |
| 1510 | (language_defn::value_print): Declare new member function. |
| 1511 | (LA_VALUE_PRINT): Update call to value_print. |
| 1512 | * m2-lang.c (m2_language_data): Delete la_value_print initializer. |
| 1513 | * objc-lang.c (objc_language_data): Likewise. |
| 1514 | * opencl-lang.c (opencl_language_data): Likewise. |
| 1515 | * p-lang.c (pascal_language_data): Likewise. |
| 1516 | (pascal_language::value_print): New member function. |
| 1517 | * rust-lang.c (rust_language_data): Delete la_value_print |
| 1518 | initializer. |
| 1519 | |
| 1520 | 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com> |
| 1521 | |
| 1522 | * ada-lang.c (ada_watch_location_expression): Rename to |
| 1523 | ada_language::watch_location_expression. |
| 1524 | (ada_language_data): Delete la_watch_location_expression |
| 1525 | initializer. |
| 1526 | (ada_language::watch_location_expression): New member function, |
| 1527 | implementation from ada_watch_location_expression. |
| 1528 | * breakpoint.c (watch_command_1): Update call to |
| 1529 | watch_location_expression. |
| 1530 | * c-lang.c (c_watch_location_expression): Rename to |
| 1531 | language_defn::watch_location_expression. |
| 1532 | (c_language_data): Delete la_watch_location_expression |
| 1533 | initializer. |
| 1534 | (cplus_language_data): Likewise. |
| 1535 | (asm_language_data): Likewise. |
| 1536 | (minimal_language_data): Likewise. |
| 1537 | * c-lang.h (c_watch_location_expression): Delete declaration. |
| 1538 | * d-lang.c (d_language_data): Delete la_watch_location_expression |
| 1539 | initializer. |
| 1540 | * f-lang.c (f_language_data): Likewise. |
| 1541 | * go-lang.c (go_language_data): Likewise. |
| 1542 | * language.c (language_defn::watch_location_expression): Member |
| 1543 | function implementation from c_watch_location_expression. |
| 1544 | (unknown_language_data): Delete la_watch_location_expression |
| 1545 | initializer. |
| 1546 | (auto_language_data): Likewise. |
| 1547 | * language.h (language_data): Delete la_watch_location_expression |
| 1548 | field. |
| 1549 | (language_defn::watch_location_expression): Declare new member |
| 1550 | function. |
| 1551 | * m2-lang.c (m2_language_data): Delete |
| 1552 | la_watch_location_expression initializer. |
| 1553 | * objc-lang.c (objc_language_data): Likewise. |
| 1554 | * opencl-lang.c (opencl_language_data): Likewise. |
| 1555 | * p-lang.c (pascal_language_data): Likewise. |
| 1556 | * rust-lang.c (rust_watch_location_expression): Rename to |
| 1557 | rust_language::watch_location_expression. |
| 1558 | (rust_language_data): Delete la_watch_location_expression |
| 1559 | initializer. |
| 1560 | (rust_language::watch_location_expression): New member function, |
| 1561 | implementation from rust_watch_location_expression. |
| 1562 | |
| 1563 | 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com> |
| 1564 | |
| 1565 | * ada-lang.c (ada_collect_symbol_completion_matches): Rename to |
| 1566 | ada_language::collect_symbol_completion_matches. |
| 1567 | (ada_language_data): Delete la_collect_symbol_completion_matches |
| 1568 | initializer. |
| 1569 | (ada_language::collect_symbol_completion_matches): New member |
| 1570 | function, implementation from |
| 1571 | ada_collect_symbol_completion_matches. |
| 1572 | * c-lang.c (c_language_data): Delete |
| 1573 | la_collect_symbol_completion_matches initializer. |
| 1574 | (cplus_language_data): Likewise. |
| 1575 | (asm_language_data): Likewise. |
| 1576 | (minimal_language_data): Likewise. |
| 1577 | * d-lang.c (d_language_data): Likewise. |
| 1578 | * f-lang.c (f_collect_symbol_completion_matches): Rename to |
| 1579 | f_language::collect_symbol_completion_matches. |
| 1580 | (f_language_data): Delete la_collect_symbol_completion_matches |
| 1581 | initializer. |
| 1582 | (f_language::collect_symbol_completion_matches) New member |
| 1583 | function, implementation from f_collect_symbol_completion_matches. |
| 1584 | * go-lang.c (go_language_data): Delete |
| 1585 | la_collect_symbol_completion_matches initializer. |
| 1586 | * language.c (unknown_language_data): Likewise. |
| 1587 | (auto_language_data): Likewise. |
| 1588 | * language.h (language_data): Delete |
| 1589 | la_collect_symbol_completion_matches field. |
| 1590 | (language_defn::collect_symbol_completion_matches): New member |
| 1591 | function. |
| 1592 | * m2-lang.c (m2_language_data): Delete |
| 1593 | la_collect_symbol_completion_matches initializer. |
| 1594 | * objc-lang.c (objc_language_data): Likewise. |
| 1595 | * opencl-lang.c (opencl_language_data): Likewise. |
| 1596 | * p-lang.c (pascal_language_data): Likewise. |
| 1597 | * rust-lang.c (rust_language_data): Likewise. |
| 1598 | * symtab.c (default_collect_symbol_completion_matches): Delete. |
| 1599 | (collect_symbol_completion_matches): Update call to |
| 1600 | collect_symbol_completion_matches. |
| 1601 | (collect_symbol_completion_matches_type): Likewise. |
| 1602 | * symtab.h (default_collect_symbol_completion_matches): Delete |
| 1603 | declaration. |
| 1604 | |
| 1605 | 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com> |
| 1606 | |
| 1607 | * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete. |
| 1608 | (ada_language_data): Delete la_word_break_characters initializer. |
| 1609 | (ada_language::word_break_characters): New member function. |
| 1610 | * c-lang.c (c_language_data): Delete la_word_break_characters |
| 1611 | initializer. |
| 1612 | (cplus_language_data): Likewise. |
| 1613 | (asm_language_data): Likewise. |
| 1614 | (minimal_language_data): Likewise. |
| 1615 | * completer.c: Update global comment. |
| 1616 | (advance_to_expression_complete_word_point): Update call to |
| 1617 | word_break_characters. |
| 1618 | (complete_files_symbols): Likewise. |
| 1619 | (complete_line_internal_1): Likewise. |
| 1620 | (default_completer_handle_brkchars): Likewise. |
| 1621 | (skip_quoted_chars): Likewise. |
| 1622 | * d-lang.c (d_language_data): Delete la_word_break_characters |
| 1623 | initializer. |
| 1624 | * f-lang.c (f_word_break_characters): Delete. |
| 1625 | (f_language_data): Delete la_word_break_characters initializer. |
| 1626 | (f_language::word_break_characters): New member function. |
| 1627 | * go-lang.c (go_language_data): Delete la_word_break_characters |
| 1628 | initializer. |
| 1629 | * language.c (unknown_language_data): Likewise. |
| 1630 | (auto_language_data): Likewise. |
| 1631 | * language.h (default_word_break_characters): Move declaration to |
| 1632 | earlier in the file. |
| 1633 | (language_data): Delete la_word_break_characters field. |
| 1634 | (language_defn::word_break_characters): New member function. |
| 1635 | * m2-lang.c (m2_language_data): Delete la_word_break_characters |
| 1636 | initializer. |
| 1637 | * objc-lang.c (objc_language_data): Likewise. |
| 1638 | * opencl-lang.c (opencl_language_data): Likewise. |
| 1639 | * p-lang.c (pascal_language_data): Likewise. |
| 1640 | * rust-lang.c (rust_language_data): Likewise. |
| 1641 | |
| 1642 | 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com> |
| 1643 | |
| 1644 | * ada-lang.c (ada_get_symbol_name_matcher): Update header comment. |
| 1645 | (ada_language_data): Delete la_get_symbol_name_matcher |
| 1646 | initializer. |
| 1647 | (language_defn::get_symbol_name_matcher_inner): New member |
| 1648 | function. |
| 1649 | * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher |
| 1650 | initializer. |
| 1651 | (cplus_language_data): Likewise. |
| 1652 | (cplus_language::get_symbol_name_matcher_inner): New member |
| 1653 | function. |
| 1654 | (asm_language_data): Delete la_get_symbol_name_matcher initializer. |
| 1655 | (minimal_language_data): Likewise. |
| 1656 | * cp-support.h (cp_get_symbol_name_matcher): Update header comment. |
| 1657 | * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher |
| 1658 | initializer. |
| 1659 | * dictionary.c (iter_match_first_hashed): Update call to |
| 1660 | get_symbol_name_matcher. |
| 1661 | (iter_match_next_hashed): Likewise. |
| 1662 | (iter_match_next_linear): Likewise. |
| 1663 | * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise. |
| 1664 | * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher |
| 1665 | initializer. |
| 1666 | (f_language::get_symbol_name_matcher_inner): New member function. |
| 1667 | * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher |
| 1668 | initializer. |
| 1669 | * language.c (default_symbol_name_matcher): Update header comment, |
| 1670 | make static. |
| 1671 | (language_defn::get_symbol_name_matcher): New definition. |
| 1672 | (language_defn::get_symbol_name_matcher_inner): Likewise. |
| 1673 | (get_symbol_name_matcher): Delete. |
| 1674 | (unknown_language_data): Delete la_get_symbol_name_matcher |
| 1675 | initializer. |
| 1676 | (auto_language_data): Likewise. |
| 1677 | * language.h (language_data): Delete la_get_symbol_name_matcher |
| 1678 | field. |
| 1679 | (language_defn::get_symbol_name_matcher): New member function. |
| 1680 | (language_defn::get_symbol_name_matcher_inner): Likewise. |
| 1681 | (default_symbol_name_matcher): Delete declaration. |
| 1682 | * linespec.c (find_methods): Update call to |
| 1683 | get_symbol_name_matcher. |
| 1684 | * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher |
| 1685 | initializer. |
| 1686 | * minsyms.c (lookup_minimal_symbol): Update call to |
| 1687 | get_symbol_name_matcher. |
| 1688 | (iterate_over_minimal_symbols): Likewise. |
| 1689 | * objc-lang.c (objc_language_data): Delete |
| 1690 | la_get_symbol_name_matcher initializer. |
| 1691 | * opencl-lang.c (opencl_language_data): Likewise. |
| 1692 | * p-lang.c (pascal_language_data): Likewise. |
| 1693 | * psymtab.c (psymbol_name_matches): Update call to |
| 1694 | get_symbol_name_matcher. |
| 1695 | * rust-lang.c (rust_language_data): Delete |
| 1696 | la_get_symbol_name_matcher initializer. |
| 1697 | * symtab.c (symbol_matches_search_name): Update call to |
| 1698 | get_symbol_name_matcher. |
| 1699 | (compare_symbol_name): Likewise. |
| 1700 | |
| 1701 | 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com> |
| 1702 | |
| 1703 | * ada-lang.c (ada_language_data): Delete la_compute_program |
| 1704 | initializer. |
| 1705 | * c-lang.c (c_language_data): Likewise. |
| 1706 | (c_language::compute_program): New member function. |
| 1707 | (cplus_language_data): Delete la_compute_program initializer. |
| 1708 | (cplus_language::compute_program): New member function. |
| 1709 | (asm_language_data): Delete la_compute_program initializer. |
| 1710 | (minimal_language_data): Likewise. |
| 1711 | * c-lang.h (c_compute_program): Update comment. |
| 1712 | (cplus_compute_program): Likewise. |
| 1713 | * compile/compile-c-support.c (c_compute_program): Likewise. |
| 1714 | (cplus_compute_program): Likewise. |
| 1715 | * compile/compile.c (compile_to_object): Update call to |
| 1716 | la_compute_program. |
| 1717 | * d-lang.c (d_language_data): Delete la_compute_program |
| 1718 | initializer. |
| 1719 | * f-lang.c (f_language_data): Likewise. |
| 1720 | * go-lang.c (go_language_data): Likewise. |
| 1721 | * language.c (unknown_language_data): Likewise. |
| 1722 | (auto_language_data): Likewise. |
| 1723 | * language.h (language_data): Delete la_compute_program field. |
| 1724 | (language_defn::compute_program): New member function. |
| 1725 | * m2-lang.c (m2_language_data): Delete la_compute_program |
| 1726 | initializer. |
| 1727 | * objc-lang.c (objc_language_data): Likewise. |
| 1728 | * opencl-lang.c (opencl_language_data): Likewise. |
| 1729 | * p-lang.c (pascal_language_data): Likewise. |
| 1730 | * rust-lang.c (rust_language_data): Likewise. |
| 1731 | |
| 1732 | 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com> |
| 1733 | |
| 1734 | * ada-lang.c (ada_language_data) Delete |
| 1735 | la_class_name_from_physname initializer. |
| 1736 | * c-lang.c (c_language_data): Likewise. |
| 1737 | (cplus_language_data): Likewise. |
| 1738 | (cplus_language::class_name_from_physname): New member function. |
| 1739 | (asm_language_data): Delete la_class_name_from_physname |
| 1740 | initializer. |
| 1741 | (minimal_language_data): Likewise. |
| 1742 | * d-lang.c (d_language_data): Likewise. |
| 1743 | * dwarf2/read.c (guess_partial_die_structure_name): Update to call |
| 1744 | method on language_defn class. |
| 1745 | (guess_full_die_structure_name): Likewise. |
| 1746 | * f-lang.c (f_language_data): Delete la_class_name_from_physname |
| 1747 | initializer. |
| 1748 | * go-lang.c (go_language_data): Likewise. |
| 1749 | * language.c (language_class_name_from_physname): Delete. |
| 1750 | (unk_lang_class_name): Delete. |
| 1751 | (unknown_language_data): Delete la_class_name_from_physname |
| 1752 | initializer. |
| 1753 | (auto_language_data): Likewise. |
| 1754 | * language.h (language_data): Delete la_class_name_from_physname |
| 1755 | field. |
| 1756 | (language_defn::class_name_from_physname): New function. |
| 1757 | (language_class_name_from_physname): Delete declaration. |
| 1758 | * m2-lang.c (m2_language_data): Delete la_class_name_from_physname |
| 1759 | initializer. |
| 1760 | * objc-lang.c (objc_language_data): Likewise. |
| 1761 | * opencl-lang.c (opencl_language_data): Likewise. |
| 1762 | * p-lang.c (pascal_language_data): Likewise. |
| 1763 | * rust-lang.c (rust_language_data): Likewise. |
| 1764 | |
| 1765 | 2020-06-16 Tom Tromey <tom@tromey.com> |
| 1766 | |
| 1767 | * tui/tui-data.h (STATUS_NAME): New macro. |
| 1768 | * tui/tui-layout.c (tui_remove_some_windows) |
| 1769 | (initialize_known_windows, tui_register_window) |
| 1770 | (tui_layout_split::remove_windows, initialize_layouts) |
| 1771 | (tui_new_layout_command): Don't use hard-coded window names. |
| 1772 | |
| 1773 | 2020-06-16 Tom Tromey <tom@tromey.com> |
| 1774 | |
| 1775 | PR tui/25348: |
| 1776 | * tui/tui.c (tui_ensure_readline_initialized): Rename from |
| 1777 | tui_initialize_readline. Only run once. Call rl_initialize. |
| 1778 | * tui/tui.h (tui_ensure_readline_initialized): Rename from |
| 1779 | tui_initialize_readline. |
| 1780 | * tui/tui-io.c (tui_setup_io): Call |
| 1781 | tui_ensure_readline_initialized. |
| 1782 | * tui/tui-interp.c (tui_interp::init): Update. |
| 1783 | |
| 1784 | 2020-06-16 Tom Tromey <tom@tromey.com> |
| 1785 | |
| 1786 | * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic. |
| 1787 | Also preserve the status window. |
| 1788 | |
| 1789 | 2020-06-16 Tom Tromey <tom@tromey.com> |
| 1790 | |
| 1791 | * python/py-tui.c (tui_py_window::~tui_py_window): Handle case |
| 1792 | where m_window==nullptr. |
| 1793 | |
| 1794 | 2020-06-15 Tom Tromey <tromey@adacore.com> |
| 1795 | |
| 1796 | * windows-nat.c (windows_nat::handle_output_debug_string): |
| 1797 | Update. |
| 1798 | (windows_nat::handle_ms_vc_exception): Update. |
| 1799 | * target.h (target_read_string): Change API. |
| 1800 | * target.c (target_read_string): Change API. |
| 1801 | * solib-svr4.c (open_symbol_file_object, svr4_read_so_list): |
| 1802 | Update. |
| 1803 | * solib-frv.c (frv_current_sos): Update. |
| 1804 | * solib-dsbt.c (dsbt_current_sos): Update. |
| 1805 | * solib-darwin.c (darwin_current_sos): Update. |
| 1806 | * linux-thread-db.c (inferior_has_bug): Update. |
| 1807 | * expprint.c (print_subexp_standard): Update. |
| 1808 | * ada-lang.c (ada_main_name, ada_tag_name_from_tsd) |
| 1809 | (ada_exception_message_1): Update. |
| 1810 | |
| 1811 | 2020-06-15 Tom Tromey <tromey@adacore.com> |
| 1812 | |
| 1813 | * linux-tdep.c (dump_mapping_p): Use target_read_memory. |
| 1814 | |
| 1815 | 2020-06-15 Tom Tromey <tromey@adacore.com> |
| 1816 | |
| 1817 | * valprint.c (read_string): Update comment. |
| 1818 | * target.c (MIN): Remove. |
| 1819 | (target_read_string): Rewrite. |
| 1820 | |
| 1821 | 2020-06-15 Tom Tromey <tromey@adacore.com> |
| 1822 | |
| 1823 | * corefile.c (read_memory_string): Remove. |
| 1824 | * ada-valprint.c (ada_value_print_ptr): Update. |
| 1825 | * ada-lang.h (ada_tag_name): Change return type. |
| 1826 | * ada-lang.c (type_from_tag): Update. |
| 1827 | (ada_tag_name_from_tsd): Change return type. Use |
| 1828 | target_read_string. |
| 1829 | (ada_tag_name): Likewise. |
| 1830 | * gdbcore.h (read_memory_string): Don't declare. |
| 1831 | |
| 1832 | 2020-06-14 Hannes Domani <ssbssa@yahoo.de> |
| 1833 | |
| 1834 | * symtab.c (rbreak_command): Ignore Windows drive colon. |
| 1835 | |
| 1836 | 2020-06-12 Simon Marchi <simon.marchi@efficios.com> |
| 1837 | |
| 1838 | * NEWS: Mention removed GDBserver host support. |
| 1839 | |
| 1840 | 2020-06-12 Nelson Chu <nelson.chu@sifive.com> |
| 1841 | |
| 1842 | * features/riscv/rebuild-csr-xml.sh: Updated. |
| 1843 | |
| 1844 | 2020-06-11 Tom Tromey <tom@tromey.com> |
| 1845 | |
| 1846 | PR gdb/18318: |
| 1847 | * c-exp.y (lex_one_token): Handle 'p' like 'e'. |
| 1848 | |
| 1849 | 2020-06-09 Jonny Grant <jg@jguk.org> |
| 1850 | 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca> |
| 1851 | |
| 1852 | * main.c (captured_main_1): Don't print new line after help. |
| 1853 | (print_gdb_help): add mailing list and IRC channel information |
| 1854 | to --help. Add new lines between items in the footer. Remove |
| 1855 | quotes around bug url. |
| 1856 | |
| 1857 | 2020-06-11 Keith Seitz <keiths@redhat.com> |
| 1858 | |
| 1859 | PR gdb/21356 |
| 1860 | * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct): |
| 1861 | Resolve typedefs for type length calculations. |
| 1862 | |
| 1863 | 2020-06-10 Tom de Vries <tdevries@suse.de> |
| 1864 | |
| 1865 | PR ada/24713 |
| 1866 | * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack. |
| 1867 | (write_psymbols): Enable .gdb_index for ada. |
| 1868 | * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for |
| 1869 | ada. |
| 1870 | |
| 1871 | 2020-06-10 Tom de Vries <tdevries@suse.de> |
| 1872 | |
| 1873 | * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ... |
| 1874 | (dw2_symtab_iter_init): ... here. Add variant with "offset_type |
| 1875 | namei" instead of "const char *name" argument. |
| 1876 | (dw2_map_matching_symbols): Use "offset_type namei" variant of |
| 1877 | dw2_symtab_iter_init. |
| 1878 | |
| 1879 | 2020-06-08 Simon Marchi <simon.marchi@efficios.com> |
| 1880 | |
| 1881 | * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites |
| 1882 | to use type::field and field::type instead. |
| 1883 | |
| 1884 | 2020-06-08 Simon Marchi <simon.marchi@efficios.com> |
| 1885 | |
| 1886 | * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites |
| 1887 | to use field::type instead. |
| 1888 | |
| 1889 | 2020-06-08 Simon Marchi <simon.marchi@efficios.com> |
| 1890 | |
| 1891 | * gdbtypes.h (struct field) <type, set_type>: New methods. |
| 1892 | Rename `type` field to... |
| 1893 | <m_type>: ... this. Change references throughout to use type or |
| 1894 | set_type methods. |
| 1895 | (FIELD_TYPE): Use field::type. Change call sites that modify |
| 1896 | the field's type to use field::set_type instead. |
| 1897 | |
| 1898 | 2020-06-08 Simon Marchi <simon.marchi@efficios.com> |
| 1899 | |
| 1900 | * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites |
| 1901 | to use type::index_type instead. |
| 1902 | |
| 1903 | 2020-06-08 Simon Marchi <simon.marchi@efficios.com> |
| 1904 | |
| 1905 | * gdbtypes.h (struct type) <index_type, set_index_type>: New |
| 1906 | methods. |
| 1907 | (TYPE_INDEX_TYPE): Use type::index_type. |
| 1908 | * gdbtypes.c (create_array_type_with_stride): Likewise. |
| 1909 | |
| 1910 | 2020-06-07 Tom Tromey <tom@tromey.com> |
| 1911 | |
| 1912 | * valprint.c (generic_val_print_float): Remove "embedded_offset" |
| 1913 | parameter. |
| 1914 | (generic_value_print): Update. |
| 1915 | |
| 1916 | 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com> |
| 1917 | |
| 1918 | Revert commit 982a38f60b0. |
| 1919 | * python/py-tui.c (gdbpy_tui_set_title): Restore use of get. |
| 1920 | |
| 1921 | 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com> |
| 1922 | |
| 1923 | * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to |
| 1924 | avoid use after free. |
| 1925 | |
| 1926 | 2020-06-05 Tom de Vries <tdevries@suse.de> |
| 1927 | |
| 1928 | * NEWS: Fix typos. |
| 1929 | |
| 1930 | 2020-06-04 Simon Marchi <simon.marchi@efficios.com> |
| 1931 | |
| 1932 | * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in |
| 1933 | the per_bfd object. |
| 1934 | (dwarf2_read_debug_names): Likewise. |
| 1935 | (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd |
| 1936 | object when re-using a per_bfd object with an index. |
| 1937 | |
| 1938 | 2020-06-03 Tom de Vries <tdevries@suse.de> |
| 1939 | |
| 1940 | PR symtab/26046 |
| 1941 | * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram |
| 1942 | children for C++. |
| 1943 | (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of |
| 1944 | DW_TAG_subprogram. |
| 1945 | |
| 1946 | 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com> |
| 1947 | |
| 1948 | * ada-lang.c (ada_language_data): Delete skip_trampoline |
| 1949 | initializer. |
| 1950 | * c-lang.c (c_language_data): Likewise. |
| 1951 | (cplus_language_data): Likewise. |
| 1952 | (cplus_language::skip_trampoline): New member function. |
| 1953 | (asm_language_data): Delete skip_trampoline initializer. |
| 1954 | (minimal_language_data): Likewise. |
| 1955 | * d-lang.c (d_language_data): Likewise. |
| 1956 | * f-lang.c (f_language_data): Likewise. |
| 1957 | * go-lang.c (go_language_data): Likewise. |
| 1958 | * language.c (unk_lang_trampoline): Delete function. |
| 1959 | (skip_language_trampoline): Update. |
| 1960 | (unknown_language_data): Delete skip_trampoline initializer. |
| 1961 | (auto_language_data): Likewise. |
| 1962 | * language.h (language_data): Delete skip_trampoline field. |
| 1963 | (language_defn::skip_trampoline): New function. |
| 1964 | * m2-lang.c (m2_language_data): Delete skip_trampoline |
| 1965 | initializer. |
| 1966 | * objc-lang.c (objc_skip_trampoline): Delete function, move |
| 1967 | implementation to objc_language::skip_trampoline. |
| 1968 | (objc_language_data): Delete skip_trampoline initializer. |
| 1969 | (objc_language::skip_trampoline): New member function with |
| 1970 | implementation from objc_skip_trampoline. |
| 1971 | * opencl-lang.c (opencl_language_data): Delete skip_trampoline |
| 1972 | initializer. |
| 1973 | * p-lang.c (pascal_language_data): Likewise. |
| 1974 | * rust-lang.c (rust_language_data): Likewise. |
| 1975 | |
| 1976 | 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com> |
| 1977 | |
| 1978 | * ada-lang.c (ada_language_data): Delete la_demangle initializer. |
| 1979 | (ada_language::demangle): New member function. |
| 1980 | * c-lang.c (c_language_data): Delete la_demangle initializer. |
| 1981 | (cplus_language_data): Delete la_demangle initializer. |
| 1982 | (cplus_language::demangle): New member function. |
| 1983 | (asm_language_data): Delete la_demangle initializer. |
| 1984 | (minimal_language_data): Delete la_demangle initializer. |
| 1985 | * d-lang.c (d_language_data): Delete la_demangle initializer. |
| 1986 | (d_language::demangle): New member function. |
| 1987 | * f-lang.c (f_language_data): Delete la_demangle initializer. |
| 1988 | (f_language::demangle): New member function. |
| 1989 | * go-lang.c (go_language_data): Delete la_demangle initializer. |
| 1990 | (go_language::demangle): New member function. |
| 1991 | * language.c (language_demangle): Update. |
| 1992 | (unk_lang_demangle): Delete. |
| 1993 | (unknown_language_data): Delete la_demangle initializer. |
| 1994 | (unknown_language::demangle): New member function. |
| 1995 | (auto_language_data): Delete la_demangle initializer. |
| 1996 | (auto_language::demangle): New member function. |
| 1997 | * language.h (language_data): Delete la_demangle field. |
| 1998 | (language_defn::demangle): New function. |
| 1999 | * m2-lang.c (m2_language_data): Delete la_demangle initializer. |
| 2000 | * objc-lang.c (objc_language_data): Delete la_demangle |
| 2001 | initializer. |
| 2002 | (objc_language::demangle): New member function. |
| 2003 | * opencl-lang.c (opencl_language_data): Delete la_demangle |
| 2004 | initializer. |
| 2005 | * p-lang.c (pascal_language_data): Likewise. |
| 2006 | * rust-lang.c (rust_language_data): Likewise. |
| 2007 | (rust_language::demangle): New member function. |
| 2008 | |
| 2009 | 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com> |
| 2010 | |
| 2011 | * ada-lang.c (ada_language_data): Delete la_print_type |
| 2012 | initializer. |
| 2013 | (ada_language::print_type): New member function. |
| 2014 | * c-lang.c (c_language_data): Delete la_print_type initializer. |
| 2015 | (c_language::print_type): New member function. |
| 2016 | (cplus_language_data): Delete la_print_type initializer. |
| 2017 | (cplus_language::print_type): New member function. |
| 2018 | (asm_language_data): Delete la_print_type initializer. |
| 2019 | (asm_language::print_type): New member function. |
| 2020 | (minimal_language_data): Delete la_print_type initializer. |
| 2021 | (minimal_language::print_type): New member function. |
| 2022 | * d-lang.c (d_language_data): Delete la_print_type initializer. |
| 2023 | (d_language::print_type): New member function. |
| 2024 | * f-lang.c (f_language_data): Delete la_print_type initializer. |
| 2025 | (f_language::print_type): New member function. |
| 2026 | * go-lang.c (go_language_data): Delete la_print_type initializer. |
| 2027 | (go_language::print_type): New member function. |
| 2028 | * language.c (unk_lang_print_type): Delete. |
| 2029 | (unknown_language_data): Delete la_print_type initializer. |
| 2030 | (unknown_language::print_type): New member function. |
| 2031 | (auto_language_data): Delete la_print_type initializer. |
| 2032 | (auto_language::print_type): New member function. |
| 2033 | * language.h (language_data): Delete la_print_type field. |
| 2034 | (language_defn::print_type): New function. |
| 2035 | (LA_PRINT_TYPE): Update. |
| 2036 | * m2-lang.c (m2_language_data): Delete la_print_type initializer. |
| 2037 | (m2_language::print_type): New member function. |
| 2038 | * objc-lang.c (objc_language_data): Delete la_print_type |
| 2039 | initializer. |
| 2040 | (objc_language::print_type): New member function. |
| 2041 | * opencl-lang.c (opencl_print_type): Delete, implementation moved |
| 2042 | to opencl_language::print_type. |
| 2043 | (opencl_language_data): Delete la_print_type initializer. |
| 2044 | (opencl_language::print_type): New member function, implementation |
| 2045 | from opencl_print_type. |
| 2046 | * p-lang.c (pascal_language_data): Delete la_print_type |
| 2047 | initializer. |
| 2048 | (pascal_language::print_type): New member function. |
| 2049 | * rust-lang.c (rust_print_type): Delete, implementation moved to |
| 2050 | rust_language::print_type. |
| 2051 | (rust_language_data): Delete la_print_type initializer. |
| 2052 | (rust_language::print_type): New member function, implementation |
| 2053 | from rust_print_type. |
| 2054 | |
| 2055 | 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com> |
| 2056 | |
| 2057 | * ada-lang.c (ada_sniff_from_mangled_name): Delete function, |
| 2058 | implementation moves to... |
| 2059 | (ada_language::sniff_from_mangled_name): ...here. Update return |
| 2060 | type. |
| 2061 | (ada_language_data): Delete la_sniff_from_mangled_name |
| 2062 | initializer. |
| 2063 | * c-lang.c (c_language_data): Likewise. |
| 2064 | (cplus_language_data): Likewise. |
| 2065 | (cplus_language::sniff_from_mangled_name): New member function, |
| 2066 | implementation taken from gdb_sniff_from_mangled_name. |
| 2067 | (asm_language_data): Delete la_sniff_from_mangled_name |
| 2068 | initializer. |
| 2069 | (minimal_language_data): Likewise. |
| 2070 | * cp-support.c (gdb_sniff_from_mangled_name): Delete, |
| 2071 | implementation moves to cplus_language::sniff_from_mangled_name. |
| 2072 | * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration. |
| 2073 | * d-lang.c (d_sniff_from_mangled_name): Delete, implementation |
| 2074 | moves to... |
| 2075 | (d_language::sniff_from_mangled_name): ...here. |
| 2076 | (d_language_data): Delete la_sniff_from_mangled_name initializer. |
| 2077 | * f-lang.c (f_language_data): Likewise. |
| 2078 | * go-lang.c (go_sniff_from_mangled_name): Delete, implementation |
| 2079 | moves to... |
| 2080 | (go_language::sniff_from_mangled_name): ...here. |
| 2081 | (go_language_data): Delete la_sniff_from_mangled_name initializer. |
| 2082 | * language.c (language_sniff_from_mangled_name): Delete. |
| 2083 | (unknown_language_data): Delete la_sniff_from_mangled_name |
| 2084 | initializer. |
| 2085 | (auto_language_data): Likewise. |
| 2086 | * language.h (language_data): Delete la_sniff_from_mangled_name |
| 2087 | field. |
| 2088 | (language_defn::sniff_from_mangled_name): New function. |
| 2089 | (language_sniff_from_mangled_name): Delete declaration. |
| 2090 | * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name |
| 2091 | field. |
| 2092 | * objc-lang.c (objc_sniff_from_mangled_name): Delete, |
| 2093 | implementation moves to... |
| 2094 | (objc_language::sniff_from_mangled_name): ...here. |
| 2095 | (objc_language_data): Delete la_sniff_from_mangled_name initializer. |
| 2096 | * opencl-lang.c (opencl_language_data): Likewise. |
| 2097 | * p-lang.c (pascal_language_data): Likewise. |
| 2098 | * rust-lang.c (rust_sniff_from_mangled_name): Delete, |
| 2099 | implementation moves to... |
| 2100 | (rust_language::sniff_from_mangled_name): ...here. |
| 2101 | (rust_language_data): Delete la_sniff_from_mangled_name |
| 2102 | initializer. |
| 2103 | * symtab.c (symbol_find_demangled_name): Call |
| 2104 | sniff_from_mangled_name member function. |
| 2105 | |
| 2106 | 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com> |
| 2107 | |
| 2108 | * ada-lang.c (ada_language_data): Delete la_search_name_hash |
| 2109 | initializer. |
| 2110 | * c-lang.c (c_language_data): Likewise. |
| 2111 | (cplus_language_data): Likewise. |
| 2112 | (cplus_language::search_name_hash): New member function. |
| 2113 | (asm_language_data): Delete la_search_name_hash initializer. |
| 2114 | (minimal_language_data): Likewise. |
| 2115 | * d-lang.c (d_language_data): Likewise. |
| 2116 | * dictionary.c (default_search_name_hash): Rename to... |
| 2117 | (language_defn::search_name_hash): ...this. |
| 2118 | * f-lang.c (f_language_data): Likewise. |
| 2119 | (f_language::search_name_hash): New member function. |
| 2120 | * go-lang.c (go_language_data): Delete la_search_name_hash |
| 2121 | initializer. |
| 2122 | * language.c (unknown_language_data): Likewise. |
| 2123 | (auto_language_data): Likewise. |
| 2124 | * language.h (struct language_data): Delete la_search_name_hash |
| 2125 | field. |
| 2126 | (language_defn::search_name_hash): Declare new member function. |
| 2127 | (default_search_name_hash): Delete declaration. |
| 2128 | * m2-lang.c (m2_language_data): Delete la_search_name_hash |
| 2129 | initializer. |
| 2130 | * objc-lang.c (objc_language_data): Likewise. |
| 2131 | * opencl-lang.c (opencl_language_data): Likewise. |
| 2132 | * p-lang.c (pascal_language_data): Likewise. |
| 2133 | * rust-lang.c (rust_language_data): Likewise. |
| 2134 | * symtab.c (search_name_hash): Update call. |
| 2135 | |
| 2136 | 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com> |
| 2137 | |
| 2138 | * ada-lang.c (ada_language_data): Delete la_get_compile_instance |
| 2139 | initializer. |
| 2140 | * c-lang.c (class compile_instance): Declare. |
| 2141 | (c_language_data): Delete la_get_compile_instance initializer. |
| 2142 | (c_language::get_compile_instance): New member function. |
| 2143 | (cplus_language_data): Delete la_get_compile_instance initializer. |
| 2144 | (cplus_language::get_compile_instance): New member function. |
| 2145 | (asm_language_data): Delete la_get_compile_instance initializer. |
| 2146 | (minimal_language_data): Likewise. |
| 2147 | * c-lang.h (c_get_compile_context): Update comment. |
| 2148 | (cplus_get_compile_context): Update comment. |
| 2149 | * compile/compile.c (compile_to_object): Update calls, don't rely |
| 2150 | on function pointer being NULL. |
| 2151 | * d-lang.c (d_language_data): Delete la_get_compile_instance |
| 2152 | initializer. |
| 2153 | * f-lang.c (f_language_data): Likewise. |
| 2154 | * go-lang.c (go_language_data): Likewise. |
| 2155 | * language.c (unknown_language_data): Likewise. |
| 2156 | (auto_language_data): Likewise. |
| 2157 | * language.h (language_data): Delete la_get_compile_instance field. |
| 2158 | (language_defn::get_compile_instance): New member function. |
| 2159 | * m2-lang.c (m2_language_data): Delete la_get_compile_instance |
| 2160 | initializer. |
| 2161 | * objc-lang.c (objc_language_data): Likewise. |
| 2162 | * opencl-lang.c (opencl_language_data): Likewise. |
| 2163 | * p-lang.c (pascal_language_data): Likewise. |
| 2164 | * rust-lang.c (rust_language_data): Likewise. |
| 2165 | |
| 2166 | 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com> |
| 2167 | |
| 2168 | * ada-lang.c (ada_add_all_symbols): Update comment. |
| 2169 | (ada_iterate_over_symbols): Delete, move implementation to... |
| 2170 | (ada_language::iterate_over_symbols): ...here, a new member |
| 2171 | function, rewrite to use range based for loop. |
| 2172 | (ada_language_data): Delete la_iterate_over_symbols initializer. |
| 2173 | * c-lang.c (c_language_data): Likewise. |
| 2174 | (cplus_language_data): Likewise. |
| 2175 | (asm_language_data): Likewise. |
| 2176 | (minimal_language_data): Likewise. |
| 2177 | * d-lang.c (d_language_data): Likewise. |
| 2178 | * f-lang.c (f_language_data): Likewise. |
| 2179 | * go-lang.c (go_language_data): Likewise. |
| 2180 | * language.c (unknown_language_data): Likewise. |
| 2181 | (auto_language_data): Likewise. |
| 2182 | * language.h (language_data): Delete la_iterate_over_symbols field. |
| 2183 | (language_defn::iterate_over_symbols): New member function. |
| 2184 | (LA_ITERATE_OVER_SYMBOLS): Update. |
| 2185 | * linespec.c (iterate_over_all_matching_symtabs): Update. |
| 2186 | * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols |
| 2187 | initializer. |
| 2188 | * objc-lang.c (objc_language_data): Likewise. |
| 2189 | * opencl-lang.c (opencl_language_data): Likewise. |
| 2190 | * p-lang.c (pascal_language_data): Likewise. |
| 2191 | * rust-lang.c (rust_language_data): Likewise. |
| 2192 | |
| 2193 | 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com> |
| 2194 | |
| 2195 | * ada-lang.c (ada_language_data): Delete |
| 2196 | la_lookup_transparent_type initializer. |
| 2197 | * c-lang.c (c_language_data): Likewise. |
| 2198 | (cplus_language_data): Likewise. |
| 2199 | (cplus_language::lookup_transparent_type): New member function. |
| 2200 | (asm_language_data): Delete la_lookup_transparent_type |
| 2201 | initializer. |
| 2202 | (minimal_language_data): Likewise. |
| 2203 | * d-lang.c (d_language_data): Likewise. |
| 2204 | * f-lang.c (f_language_data): Likewise. |
| 2205 | * go-lang.c (go_language_data): Likewise. |
| 2206 | * language.c (unknown_language_data): Likewise. |
| 2207 | (auto_language_data): Likewise. |
| 2208 | * language.h (struct language_data): Delete |
| 2209 | la_lookup_transparent_type field. |
| 2210 | (language_defn::lookup_transparent_type): New member function. |
| 2211 | * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type |
| 2212 | initializer. |
| 2213 | * objc-lang.c (objc_language_data): Likewise. |
| 2214 | * opencl-lang.c (opencl_language_data): Likewise. |
| 2215 | * p-lang.c (pascal_language_data): Likewise. |
| 2216 | * rust-lang.c (rust_language_data): Likewise. |
| 2217 | * symtab.c (symbol_matches_domain): Update call. |
| 2218 | |
| 2219 | 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com> |
| 2220 | |
| 2221 | * ada-lang.c (ada_language_arch_info): Delete function, move |
| 2222 | implementation to... |
| 2223 | (ada_language::language_arch_info): ...here, a new member |
| 2224 | function. |
| 2225 | (ada_language_data): Delete la_language_arch_info. |
| 2226 | * c-lang.c (c_language_data): Likewise. |
| 2227 | (c_language::language_arch_info): New member function. |
| 2228 | (cplus_language_arch_info): Delete function, move |
| 2229 | implementation to... |
| 2230 | (cplus_language::language_arch_info): ...here, a new member |
| 2231 | function. |
| 2232 | (cplus_language_data): Delete la_language_arch_info. |
| 2233 | (asm_language_data): Likewise. |
| 2234 | (asm_language::language_arch_info): New member function. |
| 2235 | (minimal_language_data): Delete la_language_arch_info. |
| 2236 | (minimal_language::language_arch_info): New member function. |
| 2237 | * d-lang.c (d_language_arch_info): Delete function, move |
| 2238 | implementation to... |
| 2239 | (d_language::language_arch_info): ...here, a new member |
| 2240 | function. |
| 2241 | (d_language_data): Delete la_language_arch_info. |
| 2242 | * f-lang.c (f_language_arch_info): Delete function, move |
| 2243 | implementation to... |
| 2244 | (f_language::language_arch_info): ...here, a new member |
| 2245 | function. |
| 2246 | (f_language_data): Delete la_language_arch_info. |
| 2247 | * go-lang.c (go_language_arch_info): Delete function, move |
| 2248 | implementation to... |
| 2249 | (go_language::language_arch_info): ...here, a new member |
| 2250 | function. |
| 2251 | (go_language_data): Delete la_language_arch_info. |
| 2252 | * language.c (unknown_language_data): Likewise. |
| 2253 | (unknown_language::language_arch_info): New member function. |
| 2254 | (auto_language_data): Delete la_language_arch_info. |
| 2255 | (auto_language::language_arch_info): New member function. |
| 2256 | (language_gdbarch_post_init): Update call to |
| 2257 | la_language_arch_info. |
| 2258 | * language.h (language_data): Delete la_language_arch_info |
| 2259 | function pointer. |
| 2260 | (language_defn::language_arch_info): New function. |
| 2261 | * m2-lang.c (m2_language_arch_info): Delete function, move |
| 2262 | implementation to... |
| 2263 | (m2_language::language_arch_info): ...here, a new member |
| 2264 | function. |
| 2265 | (m2_language_data): Delete la_language_arch_info. |
| 2266 | * objc-lang.c (objc_language_arch_info): Delete function, move |
| 2267 | implementation to... |
| 2268 | (objc_language::language_arch_info): ...here, a new member |
| 2269 | function. |
| 2270 | (objc_language_data): Delete la_language_arch_info. |
| 2271 | * opencl-lang.c (opencl_language_arch_info): Delete function, move |
| 2272 | implementation to... |
| 2273 | (opencl_language::language_arch_info): ...here, a new member |
| 2274 | function. |
| 2275 | (opencl_language_data): Delete la_language_arch_info. |
| 2276 | * p-lang.c (pascal_language_arch_info): Delete function, move |
| 2277 | implementation to... |
| 2278 | (pascal_language::language_arch_info): ...here, a new member |
| 2279 | function. |
| 2280 | (pascal_language_data): Delete la_language_arch_info. |
| 2281 | * rust-lang.c (rust_language_arch_info): Delete function, move |
| 2282 | implementation to... |
| 2283 | (rust_language::language_arch_info): ...here, a new member |
| 2284 | function. |
| 2285 | (rust_language_data): Delete la_language_arch_info. |
| 2286 | |
| 2287 | 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com> |
| 2288 | |
| 2289 | * ada-lang.c (ada_language_data): Delete la_pass_by_reference |
| 2290 | initializer. |
| 2291 | * c-lang.c (c_language_data): Likewise. |
| 2292 | (cplus_language_data): Likewise. |
| 2293 | (cplus_language::pass_by_reference_info): New method. |
| 2294 | (asm_language_data): Delete la_pass_by_reference initializer. |
| 2295 | (minimal_language_data): Likewise. |
| 2296 | * cp-abi.c (cp_pass_by_reference): Remove use of |
| 2297 | default_pass_by_reference. |
| 2298 | * d-lang.c (d_language_data): Likewise. |
| 2299 | * f-lang.c (f_language_data): Likewise. |
| 2300 | * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of |
| 2301 | default_pass_by_reference. |
| 2302 | * go-lang.c (go_language_data): Likewise. |
| 2303 | * language.c (language_pass_by_reference): Update. |
| 2304 | (default_pass_by_reference): Delete. |
| 2305 | (unknown_language_data): Delete la_pass_by_reference |
| 2306 | initializer. |
| 2307 | (auto_language_data): Likewise. |
| 2308 | * language.h (struct language_data): Delete la_pass_by_reference |
| 2309 | field. |
| 2310 | (language_defn::pass_by_reference_info): New member function. |
| 2311 | (default_pass_by_reference): Delete declaration. |
| 2312 | * m2-lang.c (m2_language_data): Delete la_pass_by_reference |
| 2313 | initializer. |
| 2314 | * objc-lang.c (objc_language_data): Likewise. |
| 2315 | * opencl-lang.c (opencl_language_data): Likewise. |
| 2316 | * p-lang.c (pascal_language_data): Likewise. |
| 2317 | * rust-lang.c (rust_language_data): Likewise. |
| 2318 | |
| 2319 | 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com> |
| 2320 | |
| 2321 | * ada-lang.c (ada_read_var_value): Delete function, move |
| 2322 | implementation to... |
| 2323 | (ada_language::read_var_value): ...here. |
| 2324 | (ada_language_data): Delete la_read_var_value initializer. |
| 2325 | * c-lang.c (c_language_data): Likewise. |
| 2326 | (cplus_language_data): Likewise. |
| 2327 | (minimal_language_data): Likewise. |
| 2328 | * d-lang.c (d_language_data): Likewise. |
| 2329 | * f-lang.c (f_language_data): Likewise. |
| 2330 | * findvar.c (default_read_var_value): Rename to... |
| 2331 | (language_defn::read_var_value): ...this. |
| 2332 | * findvar.c (read_var_value): Update header comment, and change to |
| 2333 | call member function instead of function pointer. |
| 2334 | * go-lang.c (go_language_data): Likewise. |
| 2335 | * language.c (unknown_language_data): Delete la_read_var_value |
| 2336 | initializer. |
| 2337 | (auto_language_data): Likewise. |
| 2338 | * language.h (struct language_data): Delete la_read_var_value |
| 2339 | field. |
| 2340 | (language_defn::read_var_value): New member function. |
| 2341 | (default_read_var_value): Delete declaration. |
| 2342 | * m2-lang.c (m2_language_data): Delete la_read_var_value |
| 2343 | initializer. |
| 2344 | * objc-lang.c (objc_language_data): Likewise. |
| 2345 | * opencl-lang.c (opencl_language_data): Likewise. |
| 2346 | * p-lang.c (pascal_language_data): Likewise. |
| 2347 | * rust-lang.c (rust_language_data): Likewise. |
| 2348 | * value.h (default_read_var_value): Delete declaration. |
| 2349 | |
| 2350 | 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com> |
| 2351 | |
| 2352 | * ada-lang.c (ada_print_array_index): Delete function, move |
| 2353 | implementation to... |
| 2354 | (ada_language::print_array_index): ...here. |
| 2355 | (ada_language_data): Delete la_print_array_index initializer. |
| 2356 | * c-lang.c (c_language_data): Likewise. |
| 2357 | (cplus_language_data): Likewise. |
| 2358 | (minimal_language_data): Likewise. |
| 2359 | * d-lang.c (d_language_data): Likewise. |
| 2360 | * f-lang.c (f_language_data): Likewise. |
| 2361 | * go-lang.c (go_language_data): Likewise. |
| 2362 | * language.c (default_print_array_index): Delete function, move |
| 2363 | implementation to... |
| 2364 | (language_defn::print_array_index): ...here. |
| 2365 | (unknown_language_data): Delete la_print_array_index initializer. |
| 2366 | (auto_language_data): Likewise. |
| 2367 | * language.h (struct language_data): Delete la_print_array_index |
| 2368 | field. |
| 2369 | (language_defn::print_array_index): New member function. |
| 2370 | (LA_PRINT_ARRAY_INDEX): Update. |
| 2371 | (default_print_array_index): Delete declaration. |
| 2372 | * m2-lang.c (m2_language_data): Delete la_print_array_index |
| 2373 | initializer. |
| 2374 | * objc-lang.c (objc_language_data): Likewise. |
| 2375 | * opencl-lang.c (opencl_language_data): Likewise. |
| 2376 | * p-lang.c (pascal_language_data): Likewise. |
| 2377 | * rust-lang.c (rust_language_data): Likewise. |
| 2378 | |
| 2379 | 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com> |
| 2380 | |
| 2381 | * gdb/ada-lang.c (ada_language_defn): Convert to... |
| 2382 | (ada_language_data): ...this. |
| 2383 | (class ada_language): New class. |
| 2384 | (ada_language_defn): New static global. |
| 2385 | * gdb/c-lang.c (c_language_defn): Convert to... |
| 2386 | (c_language_data): ...this. |
| 2387 | (class c_language): New class. |
| 2388 | (c_language_defn): New static global. |
| 2389 | (cplus_language_defn): Convert to... |
| 2390 | (cplus_language_data): ...this. |
| 2391 | (class cplus_language): New class. |
| 2392 | (cplus_language_defn): New static global. |
| 2393 | (asm_language_defn): Convert to... |
| 2394 | (asm_language_data): ...this. |
| 2395 | (class asm_language): New class. |
| 2396 | (asm_language_defn): New static global. |
| 2397 | (minimal_language_defn): Convert to... |
| 2398 | (minimal_language_data): ...this. |
| 2399 | (class minimal_language): New class. |
| 2400 | (minimal_language_defn): New static global. |
| 2401 | * gdb/d-lang.c (d_language_defn): Convert to... |
| 2402 | (d_language_data): ...this. |
| 2403 | (class d_language): New class. |
| 2404 | (d_language_defn): New static global. |
| 2405 | * gdb/f-lang.c (f_language_defn): Convert to... |
| 2406 | (f_language_data): ...this. |
| 2407 | (class f_language): New class. |
| 2408 | (f_language_defn): New static global. |
| 2409 | * gdb/go-lang.c (go_language_defn): Convert to... |
| 2410 | (go_language_data): ...this. |
| 2411 | (class go_language): New class. |
| 2412 | (go_language_defn): New static global. |
| 2413 | * gdb/language.c (unknown_language_defn): Remove declaration. |
| 2414 | (current_language): Initialize to nullptr, real initialization is |
| 2415 | moved to _initialize_language. |
| 2416 | (languages): Delete global. |
| 2417 | (language_defn::languages): Define. |
| 2418 | (set_language_command): Use language_defn::languages. |
| 2419 | (set_language): Likewise. |
| 2420 | (range_error): Likewise. |
| 2421 | (language_enum): Likewise. |
| 2422 | (language_def): Likewise. |
| 2423 | (add_set_language_command): Use language_def::languages for the |
| 2424 | language list, and language_def to lookup language pointers. |
| 2425 | (skip_language_trampoline): Use language_defn::languages. |
| 2426 | (unknown_language_defn): Convert to... |
| 2427 | (unknown_language_data): ...this. |
| 2428 | (class unknown_language): New class. |
| 2429 | (unknown_language_defn): New static global. |
| 2430 | (auto_language_defn): Convert to... |
| 2431 | (auto_language_data): ...this. |
| 2432 | (class auto_language): New class. |
| 2433 | (auto_language_defn): New static global. |
| 2434 | (language_gdbarch_post_init): Use language_defn::languages. |
| 2435 | (_initialize_language): Initialize current_language. |
| 2436 | * gdb/language.h (struct language_defn): Rename to... |
| 2437 | (struct language_data): ...this. |
| 2438 | (struct language_defn): New. |
| 2439 | (auto_language_defn): Delete. |
| 2440 | (unknown_language_defn): Delete. |
| 2441 | (minimal_language_defn): Delete. |
| 2442 | (ada_language_defn): Delete. |
| 2443 | (asm_language_defn): Delete. |
| 2444 | (c_language_defn): Delete. |
| 2445 | (cplus_language_defn): Delete. |
| 2446 | (d_language_defn): Delete. |
| 2447 | (f_language_defn): Delete. |
| 2448 | (go_language_defn): Delete. |
| 2449 | (m2_language_defn): Delete. |
| 2450 | (objc_language_defn): Delete. |
| 2451 | (opencl_language_defn): Delete. |
| 2452 | (pascal_language_defn): Delete. |
| 2453 | (rust_language_defn): Delete. |
| 2454 | * gdb/m2-lang.c (m2_language_defn): Convert to... |
| 2455 | (m2_language_data): ...this. |
| 2456 | (class m2_language): New class. |
| 2457 | (m2_language_defn): New static global. |
| 2458 | * gdb/objc-lang.c (objc_language_defn): Convert to... |
| 2459 | (objc_language_data): ...this. |
| 2460 | (class objc_language): New class. |
| 2461 | (objc_language_defn): New static global. |
| 2462 | * gdb/opencl-lang.c (opencl_language_defn): Convert to... |
| 2463 | (opencl_language_data): ...this. |
| 2464 | (class opencl_language): New class. |
| 2465 | (opencl_language_defn): New static global. |
| 2466 | * gdb/p-lang.c (pascal_language_defn): Convert to... |
| 2467 | (pascal_language_data): ...this. |
| 2468 | (class pascal_language): New class. |
| 2469 | (pascal_language_defn): New static global. |
| 2470 | * gdb/rust-exp.y (rust_lex_tests): Use language_def to find |
| 2471 | language pointer, update comment format. |
| 2472 | * gdb/rust-lang.c (rust_language_defn): Convert to... |
| 2473 | (rust_language_data): ...this. |
| 2474 | (class rust_language): New class. |
| 2475 | (rust_language_defn): New static global. |
| 2476 | |
| 2477 | 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com> |
| 2478 | |
| 2479 | * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New |
| 2480 | member variable. |
| 2481 | <m_stmt_at_address>: New member variable. |
| 2482 | (lnp_state_machine::record_line): Don't record some lines, update |
| 2483 | tracking of is_stmt at the same address. |
| 2484 | (lnp_state_machine::lnp_state_machine): Initialise new member |
| 2485 | variables. |
| 2486 | |
| 2487 | 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org> |
| 2488 | |
| 2489 | * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add |
| 2490 | "-include gnu-nat-mig.h". |
| 2491 | * gnu-nat-mig.h: New file. |
| 2492 | * gnu-nat.c: Include "gnu-nat-mig.h". |
| 2493 | (exc_server, msg_reply_server, notify_server, |
| 2494 | process_reply_server): Remove declarations. |
| 2495 | |
| 2496 | 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org> |
| 2497 | |
| 2498 | * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced, |
| 2499 | steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup, |
| 2500 | inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports, |
| 2501 | inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports, |
| 2502 | inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread, |
| 2503 | inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal, |
| 2504 | inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc, |
| 2505 | proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port, |
| 2506 | proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions |
| 2507 | to gnu_nat_target class. |
| 2508 | * gnu-nat.c: Likewise. |
| 2509 | (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd, |
| 2510 | set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd, |
| 2511 | set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target |
| 2512 | object. |
| 2513 | (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this' |
| 2514 | instead of `gnu_target'. |
| 2515 | |
| 2516 | 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org> |
| 2517 | |
| 2518 | * i386-gnu-tdep.c: Include "gdbcore.h" |
| 2519 | (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays. |
| 2520 | (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL, |
| 2521 | I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros |
| 2522 | (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p, |
| 2523 | i386_gnu_sigcontext_addr): New functions |
| 2524 | (i386gnu_init_abi): Register i386_gnu_sigtramp_p, |
| 2525 | i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch |
| 2526 | tdep. |
| 2527 | |
| 2528 | 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org> |
| 2529 | |
| 2530 | * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call |
| 2531 | before fork_inferior call. Avoid calling it if target_is_pushed returns |
| 2532 | true. |
| 2533 | |
| 2534 | 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org> |
| 2535 | |
| 2536 | * gnu-nat.h (gnu_target): New variable declaration. |
| 2537 | * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize |
| 2538 | gnu_target. |
| 2539 | * gnu-nat.c (gnu_target): New variable. |
| 2540 | (inf_validate_procs): Pass gnu_target to thread_change_ptid, |
| 2541 | add_thread_silent, and add_thread calls. |
| 2542 | (gnu_nat_target::create_inferior): Pass gnu_target to |
| 2543 | add_thread_silent, thread_change_ptid call. |
| 2544 | (gnu_nat_target::detach): Pass gnu_target to detach_inferior |
| 2545 | call. |
| 2546 | |
| 2547 | 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org> |
| 2548 | |
| 2549 | * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable. |
| 2550 | (gnu_nat_target::find_memory_regions): Remove unused |
| 2551 | `old_address' variable. |
| 2552 | |
| 2553 | 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org> |
| 2554 | |
| 2555 | * gnu-nat.c: Include "gdbarch.h". |
| 2556 | |
| 2557 | 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org> |
| 2558 | |
| 2559 | * reply_mig_hack.awk (Error return): Cast function through |
| 2560 | void *, to bypass compiler function call check. |
| 2561 | |
| 2562 | 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org> |
| 2563 | |
| 2564 | * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on |
| 2565 | $(srcdir)/reply_mig_hack.awk. |
| 2566 | |
| 2567 | 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org> |
| 2568 | |
| 2569 | * gnu-nat.h (gnu_debug_flag): Set type to bool. |
| 2570 | |
| 2571 | 2020-05-30 Jonny Grant <jg@jguk.org> |
| 2572 | |
| 2573 | * configure.ac (ACX_BUGURL): change bug URL to https. |
| 2574 | |
| 2575 | 2020-05-30 Pedro Alves <palves@redhat.com> |
| 2576 | |
| 2577 | * cp-support.c (replace_typedefs_template): New. |
| 2578 | (replace_typedefs_qualified_name): Handle |
| 2579 | DEMANGLE_COMPONENT_TEMPLATE. |
| 2580 | |
| 2581 | 2020-05-29 Simon Marchi <simon.marchi@efficios.com> |
| 2582 | |
| 2583 | * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c, |
| 2584 | dwarf2/index-cache.h, dwarf2/index-write.c, |
| 2585 | dwarf2/index-write.h, dwarf2/line-header.c, |
| 2586 | dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h, |
| 2587 | dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile |
| 2588 | variables and fields from `dwarf2_per_objfile` to just |
| 2589 | `per_objfile` throughout. |
| 2590 | |
| 2591 | 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca> |
| 2592 | |
| 2593 | * dwarf2/loc.c (class dwarf_evaluate_loc_desc) |
| 2594 | <push_dwarf_reg_entry_value>: Add comment. |
| 2595 | |
| 2596 | 2020-05-28 Kevin Buettner <kevinb@redhat.com> |
| 2597 | Keith Seitz <keiths@redhat.com> |
| 2598 | |
| 2599 | * python/python.c (do_start_initialization): Call PyEval_SaveThread |
| 2600 | instead of PyEval_ReleaseLock. |
| 2601 | (class gdbpy_gil): Move to earlier in file. |
| 2602 | (finalize_python): Set gdb_python_initialized. |
| 2603 | (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early |
| 2604 | when not initialized. |
| 2605 | |
| 2606 | 2020-05-28 Simon Marchi <simon.marchi@efficios.com> |
| 2607 | |
| 2608 | * dwarf2/loc.c (class dwarf_evaluate_loc_desc) |
| 2609 | <push_dwarf_reg_entry_value>: Remove assert. Override |
| 2610 | per_objfile with caller_per_objfile. |
| 2611 | |
| 2612 | 2020-05-28 Tom de Vries <tdevries@suse.de> |
| 2613 | |
| 2614 | * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit |
| 2615 | PR gold/15646 workaround to symbol kind "type". |
| 2616 | |
| 2617 | 2020-05-27 Tom Tromey <tromey@adacore.com> |
| 2618 | |
| 2619 | * dwarf2/read.c (load_partial_dies): Use add_partial_symbol. |
| 2620 | |
| 2621 | 2020-05-27 Tom Tromey <tromey@adacore.com> |
| 2622 | |
| 2623 | * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline. |
| 2624 | Use htab_find_with_hash. |
| 2625 | <add_abbrev>: Remove "abbrev_number" parameter. |
| 2626 | * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove |
| 2627 | "abbrev_number" parameter. Use htab_find_slot_with_hash. |
| 2628 | (hash_abbrev): Add comment. |
| 2629 | (abbrev_table::lookup_abbrev): Move to header file. |
| 2630 | (abbrev_table::read): Update. |
| 2631 | |
| 2632 | 2020-05-27 Tom Tromey <tromey@adacore.com> |
| 2633 | |
| 2634 | * dwarf2/read.c (struct partial_die_info) <name>: Declare new |
| 2635 | method. |
| 2636 | <canonical_name>: New member. |
| 2637 | <raw_name>: Rename from "name". |
| 2638 | (partial_die_info): Initialize canonical_name. |
| 2639 | (scan_partial_symbols): Check raw_name. |
| 2640 | (partial_die_parent_scope, partial_die_full_name) |
| 2641 | (add_partial_symbol, add_partial_subprogram) |
| 2642 | (add_partial_enumeration, load_partial_dies): Use "name" method. |
| 2643 | (partial_die_info::name): New method. |
| 2644 | (partial_die_info::read, guess_partial_die_structure_name) |
| 2645 | (partial_die_info::fixup): Update. |
| 2646 | |
| 2647 | 2020-05-27 Tom Tromey <tromey@adacore.com> |
| 2648 | |
| 2649 | * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline. |
| 2650 | <get_ref_die_offset>: Inline. |
| 2651 | <get_ref_die_offset_complaint>: New method. |
| 2652 | * dwarf2/attribute.c (attribute::form_is_ref): Move to header. |
| 2653 | (attribute::get_ref_die_offset_complaint): Rename from |
| 2654 | get_ref_die_offset. Just issue complaint. |
| 2655 | |
| 2656 | 2020-05-27 Hannes Domani <ssbssa@yahoo.de> |
| 2657 | |
| 2658 | * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars. |
| 2659 | |
| 2660 | 2020-05-27 Hannes Domani <ssbssa@yahoo.de> |
| 2661 | |
| 2662 | * exec.c (exec_file_attach): Use errno value of first openp failure. |
| 2663 | |
| 2664 | 2020-05-27 Hannes Domani <ssbssa@yahoo.de> |
| 2665 | |
| 2666 | * nat/windows-nat.c (windows_thread_info::~windows_thread_info): |
| 2667 | Don't close thread handle. |
| 2668 | |
| 2669 | 2020-05-27 Tom Tromey <tom@tromey.com> |
| 2670 | Simon Marchi <simon.marchi@efficios.com> |
| 2671 | |
| 2672 | * objfiles.h (struct objfile) <partial_symtabs>: Now a |
| 2673 | shared_ptr. |
| 2674 | * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New |
| 2675 | member. |
| 2676 | * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key, |
| 2677 | dwarf2_per_bfd_objfile_data_key>: New globals. |
| 2678 | (dwarf2_has_info): Use shared dwarf2_per_bfd if possible. |
| 2679 | (dwarf2_get_section_info): Use get_dwarf2_per_objfile. |
| 2680 | (dwarf2_initialize_objfile): Consider cases where per_bfd can be |
| 2681 | shared. |
| 2682 | (dwarf2_build_psymtabs): Set objfile::partial_symtabs and |
| 2683 | short-circuit when sharing. |
| 2684 | (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs. |
| 2685 | (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units. |
| 2686 | |
| 2687 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> |
| 2688 | |
| 2689 | * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move |
| 2690 | to... |
| 2691 | (struct dwarf2_per_objfile) <line_header_hash>: ... here. |
| 2692 | * dwarf2/read.c (handle_DW_AT_stmt_list): Update. |
| 2693 | |
| 2694 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> |
| 2695 | |
| 2696 | * dwarf2/read.c (struct mapped_index_base) <symbol_name_at, |
| 2697 | build_name_components, find_name_components_bounds>: |
| 2698 | Add per_objfile parameter. |
| 2699 | (struct mapped_index) <symbol_name_at>: Likewise. |
| 2700 | (struct mapped_debug_names): Remove constructor. |
| 2701 | <dwarf2_per_objfile>: Remove field. |
| 2702 | <namei_to_name, symbol_name_at>: Add per_objfile parameter. |
| 2703 | (mapped_index_base::find_name_components_bounds, |
| 2704 | mapped_index_base::build_name_components, |
| 2705 | dw2_expand_symtabs_matching_symbol): Likewise. |
| 2706 | (class mock_mapped_index) <symbol_name_at>: Likewise. |
| 2707 | (check_match): Likewise. |
| 2708 | (check_find_bounds_finds): Likewise. |
| 2709 | (test_mapped_index_find_name_component_bounds): Update. |
| 2710 | (CHECK_MATCH): Update. |
| 2711 | (dw2_expand_symtabs_matching): Update. |
| 2712 | (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add |
| 2713 | per_objfile parameter. |
| 2714 | <find_vec_in_debug_names>: Likewise. |
| 2715 | <m_per_objfile>: New field. |
| 2716 | (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile |
| 2717 | parameter. |
| 2718 | (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise. |
| 2719 | (dw2_debug_names_iterator::next): Update. |
| 2720 | (dw2_debug_names_lookup_symbol): Update. |
| 2721 | (dw2_debug_names_expand_symtabs_for_function): Update. |
| 2722 | (dw2_debug_names_map_matching_symbols): Update. |
| 2723 | (dw2_debug_names_expand_symtabs_matching): Update. |
| 2724 | (dwarf2_read_debug_names): Update. |
| 2725 | |
| 2726 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> |
| 2727 | |
| 2728 | * dwarf2/read.h (struct dwarf2_cu): Forward-declare. |
| 2729 | (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove, |
| 2730 | move to dwarf2_per_objfile. |
| 2731 | <read_in_chain>: Remove. |
| 2732 | (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu, |
| 2733 | remove_all_cus, age_comp_units>: New methods. |
| 2734 | <m_dwarf2_cus>: New member. |
| 2735 | (struct dwarf2_per_cu_data) <cu>: Remove. |
| 2736 | * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove. |
| 2737 | (age_cached_comp_units, free_one_cached_comp_unit): Remove, |
| 2738 | moved to methods of dwarf2_per_objfile. |
| 2739 | (dwarf2_clear_marks): Remove. |
| 2740 | (dwarf2_queue_item::~dwarf2_queue_item): Update. |
| 2741 | (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus. |
| 2742 | (dwarf2_per_bfd::free_cached_comp_units): Remove. |
| 2743 | (dwarf2_per_objfile::remove_all_cus): New. |
| 2744 | (class free_cached_comp_units) <~free_cached_comp_units>: |
| 2745 | Update. |
| 2746 | (load_cu): Update. |
| 2747 | (dw2_do_instantiate_symtab): Adjust. |
| 2748 | (fill_in_sig_entry_from_dwo_entry): Adjust. |
| 2749 | (cutu_reader::init_tu_and_read_dwo_dies): Update. |
| 2750 | (cutu_reader::cutu_reader): Likewise. |
| 2751 | (cutu_reader::keep): Use dwarf2_per_objfile::set_cu. |
| 2752 | (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu. |
| 2753 | (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu |
| 2754 | and dwarf2_per_objfile::age_comp_units. |
| 2755 | (load_partial_comp_unit): Update. |
| 2756 | (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu. |
| 2757 | (process_queue): Likewise. |
| 2758 | (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu |
| 2759 | backlink. |
| 2760 | (dwarf2_read_addr_index): Likewise. |
| 2761 | (follow_die_offset): Likewise. |
| 2762 | (dwarf2_fetch_die_loc_sect_off): Likewise. |
| 2763 | (dwarf2_fetch_constant_bytes): Likewise. |
| 2764 | (dwarf2_fetch_die_type_sect_off): Likewise. |
| 2765 | (follow_die_sig_1): Likewise. |
| 2766 | (load_full_type_unit): Likewise. |
| 2767 | (read_signatured_type): Likewise. |
| 2768 | (dwarf2_cu::dwarf2_cu): Don't set cu field. |
| 2769 | (dwarf2_cu::~dwarf2_cu): Remove. |
| 2770 | (dwarf2_per_objfile::get_cu): New. |
| 2771 | (dwarf2_per_objfile::set_cu): New. |
| 2772 | (age_cached_comp_units): Rename to... |
| 2773 | (dwarf2_per_objfile::age_comp_units): ... this. Adjust |
| 2774 | to std::unordered_map. |
| 2775 | (free_one_cached_comp_unit): Rename to... |
| 2776 | (dwarf2_per_objfile::remove_cu): ... this. Adjust |
| 2777 | to std::unordered_map. |
| 2778 | (dwarf2_per_objfile::~dwarf2_per_objfile): New. |
| 2779 | (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect |
| 2780 | a dwarf2_per_objfile in data. |
| 2781 | (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse. |
| 2782 | (dwarf2_clear_marks): Remove. |
| 2783 | |
| 2784 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> |
| 2785 | |
| 2786 | * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace |
| 2787 | `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`. |
| 2788 | (init_tu_and_read_dwo_dies): Likewise. |
| 2789 | (cutu_reader::init_tu_and_read_dwo_dies): Likewise. |
| 2790 | (cutu_reader::cutu_reader): Likewise. |
| 2791 | (load_partial_comp_unit): Likewise. |
| 2792 | (process_psymtab_comp_unit): Update. |
| 2793 | (build_type_psymtabs_1): Update. |
| 2794 | (process_skeletonless_type_unit): Update. |
| 2795 | (load_full_comp_unit): Update. |
| 2796 | (find_partial_die): Update. |
| 2797 | (dwarf2_read_addr_index): Update. |
| 2798 | (read_signatured_type): Update. |
| 2799 | |
| 2800 | 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca> |
| 2801 | |
| 2802 | * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header, |
| 2803 | m_header_read_in>: New fields. |
| 2804 | <get_header>: New method. |
| 2805 | * dwarf2/read.c (per_cu_header_read_in): Remove. |
| 2806 | (dwarf2_per_cu_data::get_header): New. |
| 2807 | (dwarf2_per_cu_data::addr_size): Update. |
| 2808 | (dwarf2_per_cu_data::offset_size): Update. |
| 2809 | (dwarf2_per_cu_data::ref_addr_size): Update. |
| 2810 | |
| 2811 | 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca> |
| 2812 | |
| 2813 | * dwarf2/read.c (load_cu): Return dwarf2_cu. |
| 2814 | (dw2_do_instantiate_symtab): Update. |
| 2815 | (queue_and_load_all_dwo_tus): Change parameter from |
| 2816 | dwarf2_per_cu_data to dwarf2_cu. |
| 2817 | (dwarf2_fetch_die_loc_sect_off): Update. |
| 2818 | (dwarf2_fetch_constant_bytes): Update. |
| 2819 | (dwarf2_fetch_die_type_sect_off): Update. |
| 2820 | |
| 2821 | 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca> |
| 2822 | |
| 2823 | * dwarf2/read.c (process_full_comp_unit, |
| 2824 | process_full_type_unit): Remove per_cu, per_objfile paramters. |
| 2825 | Add dwarf2_cu parameter. |
| 2826 | (process_queue): Update. |
| 2827 | |
| 2828 | 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca> |
| 2829 | |
| 2830 | * dwarf2/read.c (create_cu_from_index_list): Replace |
| 2831 | dwarf2_per_objfile parameter with dwarf2_per_bfd. |
| 2832 | (create_cus_from_index_list): Likewise. |
| 2833 | (create_cus_from_index): Likewise. |
| 2834 | (create_signatured_type_table_from_index): Likewise. |
| 2835 | (create_cus_from_debug_names_list): Likewise. |
| 2836 | (create_cus_from_debug_names): Likewise. |
| 2837 | (dwarf2_read_gdb_index): Update. |
| 2838 | (dwarf2_read_debug_names): Update. |
| 2839 | |
| 2840 | 2020-05-27 Tom Tromey <tom@tromey.com> |
| 2841 | Simon Marchi <simon.marchi@efficios.com> |
| 2842 | |
| 2843 | * dwarf2/read.h (struct dwarf2_per_objfile) |
| 2844 | <get_type_for_signatured_type, set_type_for_signatured_type>: |
| 2845 | New methods. |
| 2846 | <m_type_map>: New member. |
| 2847 | (struct signatured_type) <type>: Remove. |
| 2848 | * dwarf2/read.c |
| 2849 | (dwarf2_per_objfile::get_type_for_signatured_type, |
| 2850 | dwarf2_per_objfile::set_type_for_signatured_type): New. |
| 2851 | (get_signatured_type): Use new methods. |
| 2852 | |
| 2853 | 2020-05-27 Tom Tromey <tom@tromey.com> |
| 2854 | Simon Marchi <simon.marchi@efficios.com> |
| 2855 | |
| 2856 | * dwarf2/read.h (struct type_unit_group_unshareable): New. |
| 2857 | (struct dwarf2_per_objfile) <type_units>: New member. |
| 2858 | <get_type_unit_group_unshareable>: New method. |
| 2859 | * dwarf2/read.c (struct type_unit_group) <compunit_symtab, |
| 2860 | num_symtabs, symtabs>: Remove; move to |
| 2861 | type_unit_group_unshareable. |
| 2862 | (dwarf2_per_objfile::get_type_unit_group_unshareable): New. |
| 2863 | (process_full_type_unit, dwarf2_cu::setup_type_unit_groups) |
| 2864 | (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable. |
| 2865 | |
| 2866 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> |
| 2867 | |
| 2868 | * dwarf2/read.h (struct dwarf2_per_cu_data): |
| 2869 | <dwarf2_per_objfile>: Remove. |
| 2870 | * dwarf2/read.c (create_cu_from_index_list): Don't assign |
| 2871 | dwarf2_per_objfile. |
| 2872 | (create_signatured_type_table_from_index): Likewise. |
| 2873 | (create_signatured_type_table_from_debug_names): Likewise. |
| 2874 | (create_debug_type_hash_table): Likewise. |
| 2875 | (fill_in_sig_entry_from_dwo_entry): Likewise. |
| 2876 | (create_type_unit_group): Likewise. |
| 2877 | (read_comp_units_from_section): Likewise. |
| 2878 | (create_cus_hash_table): Likewise. |
| 2879 | |
| 2880 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> |
| 2881 | |
| 2882 | * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to |
| 2883 | dwarf2_per_cu_data::dwarf2_per_objfile. |
| 2884 | (compute_compunit_symtab_includes): Likewise. |
| 2885 | (dwarf2_cu::start_symtab): Likewise. |
| 2886 | |
| 2887 | 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca> |
| 2888 | |
| 2889 | * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile |
| 2890 | parameter. |
| 2891 | * dwarf2/read.c (get_die_type_at_offset): Likewise. |
| 2892 | (read_namespace_alias): Update. |
| 2893 | (lookup_die_type): Update. |
| 2894 | (dwarf2_get_die_type): Add dwarf2_per_objfile parameter. |
| 2895 | * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>: |
| 2896 | Update. |
| 2897 | (disassemble_dwarf_expression): Update. |
| 2898 | |
| 2899 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> |
| 2900 | |
| 2901 | * dwarf2/read.h (struct dwarf2_queue_item): Add |
| 2902 | dwarf2_per_objfile parameter, assign new parameter. |
| 2903 | <per_objfile>: New field. |
| 2904 | * dwarf2/read.c (free_one_cached_comp_unit): Add |
| 2905 | dwarf2_per_objfile parameter. |
| 2906 | (queue_comp_unit): Likewise. |
| 2907 | (dw2_do_instantiate_symtab): Update. |
| 2908 | (process_psymtab_comp_unit): Update. |
| 2909 | (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter. |
| 2910 | (process_imported_unit_die): Update. |
| 2911 | (queue_and_load_dwo_tu): Update. |
| 2912 | (follow_die_offset): Update. |
| 2913 | (follow_die_sig_1): Update. |
| 2914 | |
| 2915 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> |
| 2916 | |
| 2917 | * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove. |
| 2918 | * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down. |
| 2919 | (read_call_site_scope): Assign per_objfile. |
| 2920 | (dwarf2_per_cu_data::objfile): Remove. |
| 2921 | * gdbtypes.h (struct call_site) <per_objfile>: New member. |
| 2922 | * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add |
| 2923 | dwarf2_per_objfile parameter. |
| 2924 | * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add |
| 2925 | dwarf2_per_objfile parameter. |
| 2926 | (dwarf_expr_reg_to_entry_parameter): Add output |
| 2927 | dwarf2_per_objfile parameter. |
| 2928 | (locexpr_get_frame_base): Update. |
| 2929 | (class dwarf_evaluate_loc_desc) <get_tls_address>: Update. |
| 2930 | <push_dwarf_reg_entry_value>: Update. |
| 2931 | <call_site_to_target_addr>: Update. |
| 2932 | (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile |
| 2933 | parameter. |
| 2934 | (value_of_dwarf_reg_entry): Update. |
| 2935 | (rw_pieced_value): Update. |
| 2936 | (indirect_synthetic_pointer): Update. |
| 2937 | (dwarf2_evaluate_property): Update. |
| 2938 | (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile |
| 2939 | parameter. |
| 2940 | (locexpr_read_variable): Update. |
| 2941 | (locexpr_get_symbol_read_needs): Update. |
| 2942 | (loclist_read_variable): Update. |
| 2943 | |
| 2944 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> |
| 2945 | |
| 2946 | * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off, |
| 2947 | dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes, |
| 2948 | dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile |
| 2949 | parameter. |
| 2950 | * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off, |
| 2951 | dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes, |
| 2952 | dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile |
| 2953 | parameter. |
| 2954 | * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call, |
| 2955 | sect_variable_value): Add dwarf2_per_objfile parameter. |
| 2956 | (class dwarf_evaluate_loc_desc) <dwarf_call, |
| 2957 | dwarf_variable_value>: Update. |
| 2958 | (fetch_const_value_from_synthetic_pointer): Add |
| 2959 | dwarf2_per_objfile parameter. |
| 2960 | (fetch_const_value_from_synthetic_pointer): Update. |
| 2961 | (coerced_pieced_ref): Update. |
| 2962 | (class symbol_needs_eval_context) <dwarf_call, |
| 2963 | dwarf_variable_value>: Update. |
| 2964 | (dwarf2_compile_expr_to_ax): Update. |
| 2965 | |
| 2966 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> |
| 2967 | |
| 2968 | * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile |
| 2969 | parameter. |
| 2970 | (dwarf2_evaluate_loc_desc_full): Update. |
| 2971 | |
| 2972 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> |
| 2973 | |
| 2974 | * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile |
| 2975 | parameter. |
| 2976 | * dwarf2/read.c (dwarf2_read_addr_index): Likewise. |
| 2977 | * dwarf2/loc.c (decode_debug_loclists_addresses): Add |
| 2978 | dwarf2_per_objfile parameter. |
| 2979 | (decode_debug_loc_dwo_addresses): Likewise. |
| 2980 | (dwarf2_find_location_expression): Update. |
| 2981 | (class dwarf_evaluate_loc_desc) <get_addr_index>: Update. |
| 2982 | (locexpr_describe_location_piece): Add dwarf2_per_objfile |
| 2983 | parameter. |
| 2984 | (disassemble_dwarf_expression): Add dwarf2_per_objfile |
| 2985 | parameter. |
| 2986 | (locexpr_describe_location_1): Likewise. |
| 2987 | (locexpr_describe_location): Update. |
| 2988 | |
| 2989 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> |
| 2990 | |
| 2991 | * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>: |
| 2992 | Remove. |
| 2993 | * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove. |
| 2994 | * dwarf2/loc.c (dwarf2_find_location_expression): Update. |
| 2995 | (dwarf2_compile_property_to_c): Update. |
| 2996 | (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter, |
| 2997 | use text offset from objfile. |
| 2998 | (locexpr_tracepoint_var_ref): Update. |
| 2999 | (locexpr_generate_c_location): Update. |
| 3000 | (loclist_describe_location): Update. |
| 3001 | (loclist_tracepoint_var_ref): Update. |
| 3002 | * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add |
| 3003 | dwarf2_per_objfile parameter. |
| 3004 | * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise, |
| 3005 | use text offset from objfile. |
| 3006 | (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter. |
| 3007 | |
| 3008 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> |
| 3009 | |
| 3010 | * dwarf2/expr.h (struct dwarf_expr_context) |
| 3011 | <dwarf_expr_context>: Add dwarf2_per_objfile parameter. |
| 3012 | <offset>: Remove. |
| 3013 | <per_objfile>: New member. |
| 3014 | * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add |
| 3015 | dwarf2_per_objfile parameter. Don't set offset, set |
| 3016 | per_objfile. |
| 3017 | (dwarf_expr_context::execute_stack_op): Use offset from objfile. |
| 3018 | * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter) |
| 3019 | a dwarf2_per_objfile object instead of an offset. |
| 3020 | (class dwarf_expr_executor) <dwarf_expr_executor>: Add |
| 3021 | constructor. |
| 3022 | (execute_stack_op): Add dwarf2_per_objfile parameter, pass it |
| 3023 | to dwarf2_expr_executor constructor. Don't set offset. |
| 3024 | (dwarf2_fetch_cfa_info): Update. |
| 3025 | (struct dwarf2_frame_cache) <text_offset>: Remove. |
| 3026 | <per_objfile>: New field. |
| 3027 | (dwarf2_frame_cache): Update. |
| 3028 | (dwarf2_frame_prev_register): Update. |
| 3029 | * dwarf2/loc.c (class dwarf_evaluate_loc_desc) |
| 3030 | <dwarf_evaluate_loc_desc>: Add constructor. |
| 3031 | (dwarf2_evaluate_loc_desc_full): Update. |
| 3032 | (dwarf2_locexpr_baton_eval): Update. |
| 3033 | (class symbol_needs_eval_context) <symbol_needs_eval_context>: |
| 3034 | Add constructor. |
| 3035 | (dwarf2_loc_desc_get_symbol_read_needs): Update. |
| 3036 | |
| 3037 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> |
| 3038 | |
| 3039 | * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type, |
| 3040 | addr_sized_int_type>: Move to dwarf2_cu. |
| 3041 | <int_type>: Move to dwarf2_per_objfile. |
| 3042 | (struct dwarf2_per_objfile) <int_type>: Move here. |
| 3043 | * dwarf2/read.c (struct dwarf2_cu) <addr_type, |
| 3044 | addr_sized_int_type>: Move here. |
| 3045 | (read_func_scope): Update. |
| 3046 | (read_array_type): Update. |
| 3047 | (read_tag_string_type): Update. |
| 3048 | (attr_to_dynamic_prop): Update. |
| 3049 | (dwarf2_per_cu_data::int_type): Rename to... |
| 3050 | (dwarf2_per_objfile::int_type): ... this. |
| 3051 | (dwarf2_per_cu_data::addr_sized_int_type): Rename to... |
| 3052 | (dwarf2_cu::addr_sized_int_type): ... this. |
| 3053 | (read_subrange_type): Update. |
| 3054 | (dwarf2_per_cu_data::addr_type): Rename to... |
| 3055 | (dwarf2_cu::addr_type): ... this. |
| 3056 | (set_die_type): Update. |
| 3057 | |
| 3058 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> |
| 3059 | |
| 3060 | * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile |
| 3061 | data through per_cu->cu. |
| 3062 | |
| 3063 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> |
| 3064 | |
| 3065 | * dwarf2/read.c (lookup_dwo_comp_unit): Change |
| 3066 | dwarf2_per_cu_data parameter fo dwarf2_cu. |
| 3067 | (lookup_dwo_type_unit): Likewise. |
| 3068 | (read_cutu_die_from_dwo): Likewise. |
| 3069 | (lookup_dwo_unit): Likewise. |
| 3070 | (open_and_init_dwo_file): Likewise. |
| 3071 | (lookup_dwo_cutu): Likewise. |
| 3072 | (lookup_dwo_comp_unit): Likewise. |
| 3073 | (lookup_dwo_type_unit): Likewise. |
| 3074 | (cutu_reader::init_tu_and_read_dwo_dies): Update. |
| 3075 | (cutu_reader::cutu_reader): Update. |
| 3076 | |
| 3077 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> |
| 3078 | |
| 3079 | * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile |
| 3080 | parameter. |
| 3081 | (process_full_type_unit): Likewise. |
| 3082 | (process_queue): Update. |
| 3083 | |
| 3084 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> |
| 3085 | |
| 3086 | * dwarf2/read.c (recursively_compute_inclusions): Add |
| 3087 | dwarf2_per_objfile parameter. |
| 3088 | (compute_compunit_symtab_includes): Likewise. |
| 3089 | (process_cu_includes): Update. |
| 3090 | |
| 3091 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> |
| 3092 | |
| 3093 | * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile |
| 3094 | parameter. |
| 3095 | (create_type_unit_group): Update. |
| 3096 | (process_psymtab_comp_unit_reader): Update. |
| 3097 | (build_type_psymtabs_reader): Update. |
| 3098 | |
| 3099 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> |
| 3100 | |
| 3101 | * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile |
| 3102 | object through m_this_cu->cu. |
| 3103 | |
| 3104 | 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca> |
| 3105 | |
| 3106 | * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as |
| 3107 | the info parameter. |
| 3108 | (queue_and_load_all_dwo_tus): Pass per_cu->cu. |
| 3109 | |
| 3110 | 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca> |
| 3111 | |
| 3112 | * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add |
| 3113 | per_objfile parameter. |
| 3114 | (load_full_type_unit): Add per_objfile parameter. |
| 3115 | (read_signatured_type): Likewise. |
| 3116 | (load_full_comp_unit): Likewise. |
| 3117 | (load_cu): Likewise. |
| 3118 | (dw2_do_instantiate_symtab): Likewise. |
| 3119 | (dw2_get_file_names): Likewise. |
| 3120 | (dw2_map_symtabs_matching_filename): Update. |
| 3121 | (dw_expand_symtabs_matching_file_matcher): Update. |
| 3122 | (dw2_map_symbol_filenames): Update. |
| 3123 | (process_psymtab_comp_unit): Add per_objfile parameter. |
| 3124 | (build_type_psymtabs_1): Update. |
| 3125 | (process_skeletonless_type_unit): Update. |
| 3126 | (dwarf2_build_psymtabs_hard): Update. |
| 3127 | (load_partial_comp_unit): Add per_objfile parameter. |
| 3128 | (scan_partial_symbols): Update. |
| 3129 | (load_full_comp_unit): Add per_objfile parameter. |
| 3130 | (process_imported_unit_die): Update. |
| 3131 | (create_cus_hash_table): Update. |
| 3132 | (find_partial_die): Update. |
| 3133 | (dwarf2_read_addr_index): Update. |
| 3134 | (follow_die_offset): Update. |
| 3135 | (dwarf2_fetch_die_loc_sect_off): Update. |
| 3136 | (dwarf2_fetch_constant_bytes): Update. |
| 3137 | (dwarf2_fetch_die_type_sect_off): Update. |
| 3138 | (follow_die_sig_1): Update. |
| 3139 | (load_full_type_unit): Add per_objfile parameter. |
| 3140 | (read_signatured_type): Likewise. |
| 3141 | |
| 3142 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> |
| 3143 | |
| 3144 | * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead |
| 3145 | of objfile_name. |
| 3146 | |
| 3147 | 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca> |
| 3148 | |
| 3149 | * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member. |
| 3150 | (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd. |
| 3151 | * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd |
| 3152 | field. |
| 3153 | (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd. |
| 3154 | (create_cus_from_index): Update. |
| 3155 | (dwarf2_read_gdb_index): Update. |
| 3156 | (create_cus_from_debug_names): Update. |
| 3157 | (dwarf2_read_debug_names): Update. |
| 3158 | (get_abbrev_section_for_cu): Update. |
| 3159 | (create_all_comp_units): Update. |
| 3160 | (read_attribute_value): Update. |
| 3161 | (get_debug_line_section): Update. |
| 3162 | * dwarf2/index-cache.c (index_cache::store): Update. |
| 3163 | * dwarf2/index-write.c (save_gdb_index_command): Update. |
| 3164 | * dwarf2/macro.c (dwarf_decode_macro_bytes): Update. |
| 3165 | |
| 3166 | 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca> |
| 3167 | |
| 3168 | * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New |
| 3169 | member. |
| 3170 | * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize |
| 3171 | dwarf2_per_cu_data::per_bfd. |
| 3172 | (dwarf2_per_bfd::allocate_signatured_type): Likewise. |
| 3173 | (create_type_unit_group): Likewise. |
| 3174 | (queue_comp_unit): Remove reference to |
| 3175 | per_cu->dwarf2_per_objfile. |
| 3176 | (maybe_queue_comp_unit): Likewise. |
| 3177 | (fill_in_sig_entry_from_dwo_entry): Assign new field. |
| 3178 | (create_cus_hash_table): Assign new field. |
| 3179 | |
| 3180 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> |
| 3181 | |
| 3182 | * dwarf2/read.c: Replace |
| 3183 | dwarf2_cu->per_cu->dwarf2_per_objfile references with |
| 3184 | dwarf2_cu->per_objfile throughout. |
| 3185 | |
| 3186 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> |
| 3187 | |
| 3188 | * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile |
| 3189 | parameter, don't use per_cu->dwarf2_per_objfile. |
| 3190 | (dw2_instantiate_symtab): Likewise. |
| 3191 | (dw2_find_last_source_symtab): Update. |
| 3192 | (dw2_map_expand_apply): Update. |
| 3193 | (dw2_lookup_symbol): Update. |
| 3194 | (dw2_expand_symtabs_for_function): Update. |
| 3195 | (dw2_expand_all_symtabs): Update. |
| 3196 | (dw2_expand_symtabs_with_fullname): Update. |
| 3197 | (dw2_expand_symtabs_matching_one): Add per_objfile parameter, |
| 3198 | don't use per_cu->dwarf2_per_objfile. |
| 3199 | (dw2_expand_marked_cus): Update. |
| 3200 | (dw2_find_pc_sect_compunit_symtab): Update. |
| 3201 | (dw2_debug_names_lookup_symbol): Update. |
| 3202 | (dw2_debug_names_expand_symtabs_for_function): Update. |
| 3203 | (dw2_debug_names_map_matching_symbols): Update. |
| 3204 | (dwarf2_psymtab::expand_psymtab): Update. |
| 3205 | |
| 3206 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> |
| 3207 | |
| 3208 | * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter. |
| 3209 | <per_objfile>: New member. |
| 3210 | (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter. |
| 3211 | (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update |
| 3212 | call to dwarf2_cu. |
| 3213 | (cutu_reader::cutu_reader): Update. |
| 3214 | (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile. |
| 3215 | |
| 3216 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> |
| 3217 | |
| 3218 | * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to |
| 3219 | struct dwarf2_per_objfile. |
| 3220 | (struct dwarf2_per_objfile) <die_type_hash>: Move from struct |
| 3221 | dwarf2_per_bfd. |
| 3222 | * dwarf2/read.c (set_die_type): Update. |
| 3223 | (get_die_type_at_offset): Update. |
| 3224 | |
| 3225 | 2020-05-27 Tom Tromey <tom@tromey.com> |
| 3226 | Simon Marchi <simon.marchi@efficios.com> |
| 3227 | |
| 3228 | * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New |
| 3229 | method. |
| 3230 | (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p, |
| 3231 | get_symtab, set_symtab>: New methods. |
| 3232 | <m_symtabs>: New field. |
| 3233 | (struct dwarf2_psymtab): Derive from partial_symtab. |
| 3234 | <readin_p, get_compunit_symtab>: Declare methods. |
| 3235 | * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p, |
| 3236 | dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab): |
| 3237 | New methods. |
| 3238 | (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove. |
| 3239 | (dw2_do_instantiate_symtab, dw2_instantiate_symtab) |
| 3240 | (dw2_map_expand_apply, dw2_map_symtabs_matching_filename) |
| 3241 | (dw2_symtab_iter_next, dw2_print_stats) |
| 3242 | (dw2_expand_symtabs_with_fullname) |
| 3243 | (dw2_expand_symtabs_matching_one) |
| 3244 | (dw_expand_symtabs_matching_file_matcher) |
| 3245 | (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames) |
| 3246 | (dw2_debug_names_iterator::next) |
| 3247 | (dw2_debug_names_map_matching_symbols) |
| 3248 | (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab) |
| 3249 | (process_queue, dwarf2_psymtab::expand_psymtab): Update. |
| 3250 | (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab): |
| 3251 | New methods. |
| 3252 | (get_compunit_symtab, process_full_comp_unit) |
| 3253 | (process_full_type_unit): Update. |
| 3254 | (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call |
| 3255 | |
| 3256 | 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca> |
| 3257 | |
| 3258 | * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd, |
| 3259 | then introduce a new dwarf2_per_objfile type. |
| 3260 | <read_line_string>: Move to the new dwarf2_per_objfile type. |
| 3261 | <objfile>: Likewise. |
| 3262 | (dwarf2_per_bfd): Rename dwarf2_per_objfile to this. |
| 3263 | * dwarf2/read.c: Replace references to dwarf2_per_objfile with |
| 3264 | dwarf2_per_objfile->per_bfd. |
| 3265 | (dwarf2_per_objfile::dwarf2_per_objfile): Rename to... |
| 3266 | (dwarf2_per_bfd::dwarf2_per_bfd): ... this. |
| 3267 | (dwarf2_per_objfile::free_cached_comp_units): Rename to... |
| 3268 | (dwarf2_per_bfd::free_cached_comp_units): ... this. |
| 3269 | (dwarf2_has_info): Allocate dwarf2_per_bfd. |
| 3270 | (dwarf2_per_objfile::locate_sections): Rename to... |
| 3271 | (dwarf2_per_bfd::locate_sections): ... this. |
| 3272 | (dwarf2_per_objfile::get_cutu): Rename to... |
| 3273 | (dwarf2_per_bfd::get_cutu): ... this. |
| 3274 | (dwarf2_per_objfile::get_cu): Rename to... |
| 3275 | (dwarf2_per_bfd::get_cu): ... this. |
| 3276 | (dwarf2_per_objfile::get_tu): Rename to... |
| 3277 | (dwarf2_per_bfd::get_tu): ... this. |
| 3278 | (dwarf2_per_objfile::allocate_per_cu): Rename to... |
| 3279 | (dwarf2_per_bfd::allocate_per_cu): ... this. |
| 3280 | (dwarf2_per_objfile::allocate_signatured_type): Rename to... |
| 3281 | (dwarf2_per_bfd::allocate_signatured_type): ... this. |
| 3282 | (get_gdb_index_contents_ftype): Change parameter from |
| 3283 | dwarf2_per_objfile to dwarf2_per_bfd. |
| 3284 | * dwarf2/macro.c, dwarf2/index-write.c: Replace references to |
| 3285 | dwarf2_per_objfile with dwarf2_per_objfile->per_bfd. |
| 3286 | |
| 3287 | 2020-05-27 Tom Tromey <tom@tromey.com> |
| 3288 | Simon Marchi <simon.marchi@efficios.com> |
| 3289 | |
| 3290 | * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member. |
| 3291 | (allocate_piece_closure): Set "per_objfile" member. |
| 3292 | (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval) |
| 3293 | (locexpr_describe_location, loclist_describe_location): Use new |
| 3294 | member. |
| 3295 | * dwarf2/read.c (read_call_site_scope) |
| 3296 | (mark_common_block_symbol_computed, attr_to_dynamic_prop) |
| 3297 | (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off) |
| 3298 | (fill_in_loclist_baton, dwarf2_symbol_mark_computed, |
| 3299 | handle_data_member_location): Set per_objfile member. |
| 3300 | * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New |
| 3301 | member. |
| 3302 | (struct dwarf2_loclist_baton) <per_objfile>: New member. |
| 3303 | |
| 3304 | 2020-05-27 Tom Tromey <tom@tromey.com> |
| 3305 | |
| 3306 | * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu, |
| 3307 | allocate_signatured_type>: Declare new methods. |
| 3308 | <m_num_psymtabs>: New member. |
| 3309 | (struct dwarf2_per_cu_data) <index>: New member. |
| 3310 | * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu) |
| 3311 | (dwarf2_per_objfile::allocate_signatured_type): New methods. |
| 3312 | (create_cu_from_index_list): Use allocate_per_cu. |
| 3313 | (create_signatured_type_table_from_index) |
| 3314 | (create_signatured_type_table_from_debug_names) |
| 3315 | (create_debug_type_hash_table, add_type_unit) |
| 3316 | (read_comp_units_from_section): Use allocate_signatured_type. |
| 3317 | |
| 3318 | 2020-05-27 Tom Tromey <tom@tromey.com> |
| 3319 | |
| 3320 | * psymtab.c (partial_map_expand_apply) |
| 3321 | (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol) |
| 3322 | (psym_lookup_global_symbol_language) |
| 3323 | (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab) |
| 3324 | (psym_print_stats, psym_expand_symtabs_for_function) |
| 3325 | (psym_map_symbol_filenames, psym_map_matching_symbols) |
| 3326 | (psym_expand_symtabs_matching) |
| 3327 | (partial_symtab::read_dependencies, maintenance_info_psymtabs) |
| 3328 | (maintenance_check_psymtabs): Update. |
| 3329 | * psympriv.h (struct partial_symtab) <readin_p, |
| 3330 | get_compunit_symtab>: Add objfile parameter. |
| 3331 | (struct standard_psymtab) <readin_p, get_compunit_symtab>: |
| 3332 | Likewise. |
| 3333 | * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p, |
| 3334 | get_compunit_symtab>: Likewise. |
| 3335 | (dwarf2_psymtab::expand_psymtab): Pass objfile argument. |
| 3336 | |
| 3337 | 2020-05-27 Tom Tromey <tom@tromey.com> |
| 3338 | |
| 3339 | * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New |
| 3340 | member. |
| 3341 | * dwarf2/read.c (delete_file_name_entry): Fix comment. |
| 3342 | (create_cu_from_index_list) |
| 3343 | (create_signatured_type_table_from_index) |
| 3344 | (create_signatured_type_table_from_debug_names) |
| 3345 | (dw2_get_file_names_reader, dwarf2_initialize_objfile) |
| 3346 | (dwarf2_create_include_psymtab) |
| 3347 | (create_debug_type_hash_table, add_type_unit) |
| 3348 | (create_type_unit_group, read_comp_units_from_section) |
| 3349 | (dwarf2_compute_name, create_cus_hash_table) |
| 3350 | (create_dwp_hash_table, create_dwo_unit_in_dwp_v1) |
| 3351 | (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new |
| 3352 | obstack. |
| 3353 | (dw2_get_real_path): Likewise. Change argument to |
| 3354 | dwarf2_per_objfile. |
| 3355 | |
| 3356 | 2020-05-27 Luis Machado <luis.machado@linaro.org> |
| 3357 | |
| 3358 | PR tdep/26000 |
| 3359 | * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching |
| 3360 | for ldrd (immediate). |
| 3361 | |
| 3362 | 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
| 3363 | |
| 3364 | * command.h: Add comment giving the name of class_tui. |
| 3365 | * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined, |
| 3366 | create the fake command for the help for class_tui. |
| 3367 | |
| 3368 | 2020-05-26 Tom Tromey <tromey@adacore.com> |
| 3369 | |
| 3370 | * ada-lang.c (ada_print_array_index): Change type. Call val_atr. |
| 3371 | (ada_value_ptr_subscript): Don't call pos_atr on the lower bound. |
| 3372 | (val_atr): New function. |
| 3373 | (value_val_atr): Use it. |
| 3374 | * ada-valprint.c (print_optional_low_bound): Change low bound |
| 3375 | handling for enums. |
| 3376 | (val_print_packed_array_elements): Don't call discrete_position. |
| 3377 | * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call |
| 3378 | discrete_position for enum types. |
| 3379 | * language.c (default_print_array_index): Change type. |
| 3380 | * language.h (struct language_defn) <la_print_array_index>: Add |
| 3381 | index_type parameter, change type of index_value. |
| 3382 | (LA_PRINT_ARRAY_INDEX): Add index_type parameter. |
| 3383 | (default_print_array_index): Update. |
| 3384 | * valprint.c (maybe_print_array_index): Don't call |
| 3385 | value_from_longest. Update. |
| 3386 | (value_print_array_elements): Don't call discrete_position. |
| 3387 | |
| 3388 | 2020-05-26 Tom Tromey <tromey@adacore.com> |
| 3389 | |
| 3390 | * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE. |
| 3391 | * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE. |
| 3392 | |
| 3393 | 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com> |
| 3394 | |
| 3395 | PR gdb/13519 |
| 3396 | * avr-tdep.c (avr_integer_to_address): Return data or code |
| 3397 | address accordingly to the second 'type' argument of the |
| 3398 | function. |
| 3399 | |
| 3400 | 2020-05-25 Michael Weghorn <m.weghorn@posteo.de> |
| 3401 | |
| 3402 | * infcmd.c, inferior.h: (construct_inferior_arguments): |
| 3403 | Moved function from here to gdbsupport/common-inferior.{h,cc} |
| 3404 | |
| 3405 | 2020-05-23 Tom Tromey <tom@tromey.com> |
| 3406 | |
| 3407 | Revert commit eca1f90c: |
| 3408 | * NEWS: Remove entry for completion styling. |
| 3409 | * completer.c (_rl_completion_prefix_display_length): Move |
| 3410 | declaration later. |
| 3411 | (gdb_fnprint): Revert. |
| 3412 | (gdb_display_match_list_1): Likewise. |
| 3413 | * cli/cli-style.c (completion_prefix_style) |
| 3414 | (completion_difference_style, completion_suffix_style): Remove. |
| 3415 | (_initialize_cli_style): Revert. |
| 3416 | * cli/cli-style.h (completion_prefix_style) |
| 3417 | (completion_difference_style, completion_suffix_style): Don't |
| 3418 | declare. |
| 3419 | |
| 3420 | 2020-05-24 Pedro Alves <palves@redhat.com> |
| 3421 | |
| 3422 | * symtab.c (completion_list_add_name): Return boolean indication |
| 3423 | of whether the symbol matched. |
| 3424 | (completion_list_add_symbol): Don't try to remove C++ aliases if |
| 3425 | the symbol didn't match in the first place. |
| 3426 | * symtab.h (completion_list_add_name): Return bool. |
| 3427 | |
| 3428 | 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca> |
| 3429 | |
| 3430 | * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with |
| 3431 | type::field. |
| 3432 | |
| 3433 | 2020-05-23 Joel Brobecker <brobecker@adacore.com> |
| 3434 | |
| 3435 | GDB 9.2 released. |
| 3436 | |
| 3437 | 2020-05-23 Tom Tromey <tom@tromey.com> |
| 3438 | |
| 3439 | * NEWS: Add entry for completion styling. |
| 3440 | * completer.c (_rl_completion_prefix_display_length): Move |
| 3441 | declaration earlier. |
| 3442 | (gdb_fnprint): Use completion_style. |
| 3443 | (gdb_display_match_list_1): Likewise. |
| 3444 | * cli/cli-style.c (completion_prefix_style) |
| 3445 | (completion_difference_style, completion_suffix_style): New |
| 3446 | globals. |
| 3447 | (_initialize_cli_style): Register new globals. |
| 3448 | * cli/cli-style.h (completion_prefix_style) |
| 3449 | (completion_difference_style, completion_suffix_style): Declare. |
| 3450 | |
| 3451 | 2020-05-23 Pedro Alves <palves@redhat.com> |
| 3452 | |
| 3453 | * utils.c: Include "gdbsupport/gdb-safe-ctype.h". |
| 3454 | (parse_escape): Use ISDIGIT instead of isdigit. |
| 3455 | (puts_debug): Use gdb_isprint instead of isprint. |
| 3456 | (fprintf_symbol_filtered): Use ISALNUM instead of isalnum. |
| 3457 | (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use |
| 3458 | ISSPACE instead of isspace. |
| 3459 | (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE |
| 3460 | instead of isspace. |
| 3461 | (strcmp_iw_ordered): Use ISSPACE instead of isspace. |
| 3462 | (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT |
| 3463 | instead of isxdigit and ISDIGIT instead of isdigit. |
| 3464 | |
| 3465 | 2020-05-22 Simon Marchi <simon.marchi@efficios.com> |
| 3466 | |
| 3467 | * gdbtypes.h (struct type) <field>: New method. |
| 3468 | (TYPE_FIELDS): Remove, replace all uses with either type::fields |
| 3469 | or type::field. |
| 3470 | |
| 3471 | 2020-05-22 Simon Marchi <simon.marchi@efficios.com> |
| 3472 | |
| 3473 | * gdbtypes.h (struct type) <fields, set_fields>: New methods. |
| 3474 | (TYPE_FIELDS): Use type::fields. Change all call sites that |
| 3475 | modify the propery to use type::set_fields instead. |
| 3476 | |
| 3477 | 2020-05-22 Simon Marchi <simon.marchi@efficios.com> |
| 3478 | |
| 3479 | * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use |
| 3480 | type::num_fields instead. |
| 3481 | |
| 3482 | 2020-05-22 Simon Marchi <simon.marchi@efficios.com> |
| 3483 | |
| 3484 | * gdbtypes.h (struct type) <num_fields, set_num_fields>: New |
| 3485 | methods. |
| 3486 | (TYPE_NFIELDS): Use type::num_fields. Change all call sites |
| 3487 | that modify the number of fields to use type::set_num_fields |
| 3488 | instead. |
| 3489 | |
| 3490 | 2020-05-22 Tom Tromey <tromey@adacore.com> |
| 3491 | |
| 3492 | * compile/compile-object-load.h (munmap_list_free): Don't |
| 3493 | declare. |
| 3494 | |
| 3495 | 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com> |
| 3496 | |
| 3497 | * annotate.c (annotate_source_line): Update return type, add call |
| 3498 | to update current symtab and line. |
| 3499 | * annotate.h (annotate_source_line): Update return type, and |
| 3500 | extend header comment. |
| 3501 | * source.c (info_line_command): Check annotation_level before |
| 3502 | calling annotate_source_line. |
| 3503 | * stack.c (print_frame_info): If calling annotate_source_line |
| 3504 | returns true, then don't print any other source line information. |
| 3505 | |
| 3506 | 2020-05-21 Simon Marchi <simon.marchi@efficios.com> |
| 3507 | |
| 3508 | * lm32-tdep.c (lm32_register_reggroup_p): Fix condition. |
| 3509 | |
| 3510 | 2020-05-21 Simon Marchi <simon.marchi@efficios.com> |
| 3511 | |
| 3512 | * coffread.c (patch_type): Remove NULL check before xfree. |
| 3513 | * corefile.c (set_gnutarget): Likewise. |
| 3514 | * cp-abi.c (set_cp_abi_as_auto_default): Likewise. |
| 3515 | * exec.c (build_section_table): Likewise. |
| 3516 | * remote.c (remote_target::pass_signals): Likewise. |
| 3517 | * utils.c (n_spaces): Likewise. |
| 3518 | * cli/cli-script.c (document_command): Likewise. |
| 3519 | * i386-windows-tdep.c (core_process_module_section): Likewise. |
| 3520 | * linux-fork.c (struct fork_info) <~fork_info>: Likewise. |
| 3521 | |
| 3522 | 2020-05-20 Simon Marchi <simon.marchi@efficios.com> |
| 3523 | |
| 3524 | * symfile.c (reread_symbols): Clear objfile's section_offsets |
| 3525 | vector and section indices, re-compute them by calling |
| 3526 | sym_offsets. |
| 3527 | |
| 3528 | 2020-05-20 Tom Tromey <tromey@adacore.com> |
| 3529 | |
| 3530 | * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove. |
| 3531 | (desc_one_bound, desc_index_type): Compute field name. |
| 3532 | |
| 3533 | 2020-05-20 Tom de Vries <tdevries@suse.de> |
| 3534 | |
| 3535 | PR symtab/25833 |
| 3536 | * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index. |
| 3537 | |
| 3538 | 2020-05-20 Alan Modra <amodra@gmail.com> |
| 3539 | |
| 3540 | PR 25993 |
| 3541 | * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for |
| 3542 | bfd_set_filename. |
| 3543 | * solib-aix.c (solib_aix_bfd_open): Use std::string for name |
| 3544 | passed to bfd_set_filename. |
| 3545 | * symfile-mem.c (add_vsyscall_page): Likewise for string |
| 3546 | passed to symbol_file_add_from_memory. |
| 3547 | (symbol_file_add_from_memory): Make name param a const char* and |
| 3548 | don't strdup. |
| 3549 | |
| 3550 | 2020-05-20 Alan Modra <amodra@gmail.com> |
| 3551 | |
| 3552 | * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename |
| 3553 | rather than accessing bfd->filename directly. |
| 3554 | * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise, |
| 3555 | and use bfd_section_name. |
| 3556 | * dwarf2/frame.c (decode_frame_entry): Likewise. |
| 3557 | * exec.c (exec_set_section_address): Likewise. |
| 3558 | * solib-aix.c (solib_aix_bfd_open): Likewise. |
| 3559 | * stap-probe.c (get_stap_base_address): Likewise. |
| 3560 | * symfile.c (reread_symbols): Likewise. |
| 3561 | |
| 3562 | 2020-05-19 Tom Tromey <tromey@adacore.com> |
| 3563 | |
| 3564 | * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open. |
| 3565 | |
| 3566 | 2020-05-19 Simon Marchi <simon.marchi@efficios.com> |
| 3567 | |
| 3568 | * dwarf2/read.c (quirk_rust_enum): Allocate enough fields. |
| 3569 | |
| 3570 | 2020-05-19 Pedro Alves <palves@redhat.com> |
| 3571 | |
| 3572 | * NEWS (set exec-file-mismatch): Adjust entry. |
| 3573 | * exec.c: Include "build-id.h". |
| 3574 | (validate_exec_file): Try to match build IDs instead of filenames. |
| 3575 | * gdb_bfd.c (struct gdb_bfd_open_closure): New. |
| 3576 | (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure |
| 3577 | and pass down 'warn_if_slow'. |
| 3578 | (gdb_bfd_open): Add 'warn_if_slow' parameter. Use |
| 3579 | gdb_bfd_open_closure to pass it down. |
| 3580 | * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter. |
| 3581 | |
| 3582 | 2020-05-19 Pedro Alves <palves@redhat.com> |
| 3583 | |
| 3584 | * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust. |
| 3585 | * target.c (target_fileio_open_1): Rename to target_fileio_open |
| 3586 | and make extern. Use bool. |
| 3587 | (target_fileio_open, target_fileio_open_warn_if_slow): Delete. |
| 3588 | (target_fileio_read_alloc_1): Adjust. |
| 3589 | * target.h (target_fileio_open): Add 'warn_if_slow' parameter. |
| 3590 | (target_fileio_open_warn_if_slow): Delete declaration. |
| 3591 | |
| 3592 | 2020-05-19 Pedro Alves <palves@redhat.com> |
| 3593 | |
| 3594 | * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1. |
| 3595 | Adjust all callers. |
| 3596 | |
| 3597 | 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp> |
| 3598 | |
| 3599 | * h8300-tdep.c (h8300_is_argument_spill): Change how we check |
| 3600 | whether disp is negative. |
| 3601 | |
| 3602 | 2020-05-19 Simon Marchi <simon.marchi@efficios.com> |
| 3603 | |
| 3604 | * symfile.h (struct symfile_segment_data) |
| 3605 | <~symfile_segment_data>: Remove. |
| 3606 | <segment_info>: Change to std::vector. |
| 3607 | * symfile.c (default_symfile_segments): Update. |
| 3608 | * elfread.c (elf_symfile_segments): Update. |
| 3609 | |
| 3610 | 2020-05-19 Simon Marchi <simon.marchi@efficios.com> |
| 3611 | |
| 3612 | * symfile.h (struct symfile_segment_data) <struct segment>: New. |
| 3613 | <segments>: New. |
| 3614 | <segment_bases, segment_sizes>: Remove. |
| 3615 | * symfile.c (default_symfile_segments): Update. |
| 3616 | * elfread.c (elf_symfile_segments): Update. |
| 3617 | * remote.c (remote_target::get_offsets): Update. |
| 3618 | * solib-target.c (solib_target_relocate_section_addresses): |
| 3619 | Update. |
| 3620 | |
| 3621 | 2020-05-19 Simon Marchi <simon.marchi@efficios.com> |
| 3622 | |
| 3623 | * symfile.h (struct symfile_segment_data): Initialize fields. |
| 3624 | <~symfile_segment_data>: Add. |
| 3625 | (symfile_segment_data_up): New. |
| 3626 | (struct sym_fns) <sym_segments>: Return a |
| 3627 | symfile_segment_data_up. |
| 3628 | (default_symfile_segments): Return a symfile_segment_data_up. |
| 3629 | (free_symfile_segment_data): Remove. |
| 3630 | (get_symfile_segment_data): Return a symfile_segment_data_up. |
| 3631 | * symfile.c (default_symfile_segments): Likewise. |
| 3632 | (get_symfile_segment_data): Likewise. |
| 3633 | (free_symfile_segment_data): Remove. |
| 3634 | (symfile_find_segment_sections): Update. |
| 3635 | * elfread.c (elf_symfile_segments): Return a |
| 3636 | symfile_segment_data_up. |
| 3637 | * remote.c (remote_target::get_offsets): Update. |
| 3638 | * solib-target.c (solib_target_relocate_section_addresses): |
| 3639 | Update. |
| 3640 | * symfile-debug.c (debug_sym_segments): Return a |
| 3641 | symfile_segment_data_up. |
| 3642 | |
| 3643 | 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
| 3644 | |
| 3645 | PR build/25981 |
| 3646 | * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap): |
| 3647 | Hardcode register numbers. |
| 3648 | |
| 3649 | PR build/25981 |
| 3650 | * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry, |
| 3651 | procfs_find_LDT_entry): Remove. |
| 3652 | * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd, |
| 3653 | procfs_find_LDT_entry): Remove. |
| 3654 | * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT): |
| 3655 | Remove. |
| 3656 | |
| 3657 | 2020-05-17 Pedro Alves <palves@redhat.com> |
| 3658 | Andrew Burgess <andrew.burgess@embecosm.com> |
| 3659 | Keno Fischer <keno@juliacomputing.com> |
| 3660 | |
| 3661 | PR gdb/25741 |
| 3662 | * breakpoint.c (build_target_condition_list): Update comments. |
| 3663 | (build_target_command_list): Update comments and skip matching |
| 3664 | locations. |
| 3665 | (insert_bp_location): Move "set breakpoint auto-hw on" handling to |
| 3666 | a separate function. Simplify "set breakpoint auto-hw off" |
| 3667 | handling. |
| 3668 | (insert_breakpoints): Update comment. |
| 3669 | (tracepoint_locations_match): New parameter. For breakpoints, |
| 3670 | compare location types too, if the caller wants to. |
| 3671 | (handle_automatic_hardware_breakpoints): New functions. |
| 3672 | (bp_location_is_less_than): Also sort by location type and |
| 3673 | hardware breakpoint length. |
| 3674 | (update_global_location_list): Handle "set breakpoint auto-hw on" |
| 3675 | here. |
| 3676 | (update_breakpoint_locations): Ask breakpoint_locations_match to |
| 3677 | ignore location types. |
| 3678 | |
| 3679 | 2020-05-16 Simon Marchi <simon.marchi@efficios.com> |
| 3680 | |
| 3681 | * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use |
| 3682 | type::name instead. |
| 3683 | |
| 3684 | 2020-05-16 Simon Marchi <simon.marchi@efficios.com> |
| 3685 | |
| 3686 | * gdbtypes.h (struct type) <name, set_name>: New methods. |
| 3687 | (TYPE_CODE): Use type::name. Change all call sites used to set |
| 3688 | the name to use type::set_name instead. |
| 3689 | |
| 3690 | 2020-05-16 Tom Tromey <tom@tromey.com> |
| 3691 | |
| 3692 | * top.c (quit_force): Update. |
| 3693 | * infrun.c (handle_no_resumed): Update. |
| 3694 | * top.h (all_uis): New function. |
| 3695 | (ALL_UIS): Remove. |
| 3696 | |
| 3697 | 2020-05-16 Simon Marchi <simon.marchi@efficios.com> |
| 3698 | |
| 3699 | * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition. |
| 3700 | |
| 3701 | 2020-05-16 Pedro Alves <palves@redhat.com> |
| 3702 | |
| 3703 | * ia64-linux-nat.c |
| 3704 | (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>: |
| 3705 | Declare method. |
| 3706 | (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target. |
| 3707 | |
| 3708 | 2020-05-15 Simon Marchi <simon.marchi@efficios.com> |
| 3709 | |
| 3710 | * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct). |
| 3711 | (sparc64_adi_info): Likewise. |
| 3712 | |
| 3713 | 2020-05-15 Tom Tromey <tom@tromey.com> |
| 3714 | |
| 3715 | * symtab.c (lookup_language_this, lookup_symbol_aux): Use |
| 3716 | block_objfile. |
| 3717 | (lookup_objfile_from_block): Remove. |
| 3718 | (lookup_symbol_in_block, lookup_symbol_in_static_block) |
| 3719 | (lookup_global_symbol): Use block_objfile. |
| 3720 | * symtab.h (lookup_objfile_from_block): Don't declare. |
| 3721 | * printcmd.c (clear_dangling_display_expressions): Use |
| 3722 | block_objfile. |
| 3723 | * parse.c (operator_check_standard): Use block_objfile. |
| 3724 | |
| 3725 | 2020-05-15 Tom Tromey <tom@tromey.com> |
| 3726 | |
| 3727 | * language.c (language_alloc_type_symbol): Set |
| 3728 | SYMBOL_SECTION. |
| 3729 | * symtab.c (initialize_objfile_symbol): Remove. |
| 3730 | (allocate_symbol): Remove. |
| 3731 | (allocate_template_symbol): Remove. |
| 3732 | * dwarf2/read.c (fixup_go_packaging): Use "new". |
| 3733 | (new_symbol): Use "new". |
| 3734 | (read_variable): Don't call initialize_objfile_symbol. Use |
| 3735 | "new". |
| 3736 | (read_func_scope): Use "new". |
| 3737 | * xcoffread.c (process_xcoff_symbol): Don't call |
| 3738 | initialize_objfile_symbol. |
| 3739 | (SYMBOL_DUP): Remove. |
| 3740 | * coffread.c (process_coff_symbol, coff_read_enum_type): Use |
| 3741 | "new". |
| 3742 | * symtab.h (allocate_symbol, initialize_objfile_symbol) |
| 3743 | (allocate_template_symbol): Don't declare. |
| 3744 | (struct symbol): Add copy constructor. Change defaults. |
| 3745 | * jit.c (finalize_symtab): Use "new". |
| 3746 | * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb): |
| 3747 | Use "new". |
| 3748 | * stabsread.c (patch_block_stabs, define_symbol, read_enum_type) |
| 3749 | (common_block_end): Use "new". |
| 3750 | * mdebugread.c (parse_symbol): Use "new". |
| 3751 | (new_symbol): Likewise. |
| 3752 | |
| 3753 | 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
| 3754 | |
| 3755 | * NEWS: Mention changes to help and apropos. |
| 3756 | |
| 3757 | 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
| 3758 | |
| 3759 | * command.h (enum command_class): Improve comments, document |
| 3760 | that class_alias is for user-defined aliases, give the class |
| 3761 | name for each class, remove unused class_xdb. |
| 3762 | * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage. |
| 3763 | * breakpoint.c (_initialize_breakpoint): Replace class_alias |
| 3764 | by a precise class. |
| 3765 | * infcmd.c (_initialize_infcmd): Likewise. |
| 3766 | * reverse.c (_initialize_reverse): Likewise. |
| 3767 | * stack.c (_initialize_stack): Likewise. |
| 3768 | * symfile.c (_initialize_symfile): Likewise. |
| 3769 | * tracepoint.c (_initialize_tracepoint): Likewise. |
| 3770 | |
| 3771 | 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
| 3772 | |
| 3773 | * cli/cli-decode.c (apropos_cmd): Produce output for aliases |
| 3774 | when their aliased command is traversed. |
| 3775 | (help_cmd): Add fput_command_names_styled call to |
| 3776 | output command name and aliases when command has an alias. |
| 3777 | |
| 3778 | 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
| 3779 | |
| 3780 | * cli/cli-decode.h (help_cmd_list): Remove declaration. |
| 3781 | * cli/cli-decode.c (help_cmd_list): Declare as static, |
| 3782 | remove prefix argument, use bool for recurse arg, rework to show the aliases of |
| 3783 | a command together with the command. |
| 3784 | (fput_command_name_styled, fput_command_names_styled): New functions. |
| 3785 | (print_help_for_command): Remove prefix arg, use bool for recurse arg, use |
| 3786 | fput_command_name_styled. |
| 3787 | (help_list, help_all): Update callers to remove prefix arg and use bool recurse. |
| 3788 | * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc. |
| 3789 | |
| 3790 | 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
| 3791 | |
| 3792 | * cli/cli-setshow.h (cmd_show_list): Remove prefix argument. |
| 3793 | * cli/cli-decode.c (do_show_prefix_cmd): Likewise. |
| 3794 | * command.h (cmd_show_list): Likewise. |
| 3795 | * dwarf2/index-cache.c (show_index_cache_command): Likewise. |
| 3796 | * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases. |
| 3797 | |
| 3798 | 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
| 3799 | |
| 3800 | * unittests/command-def-selftests.c (traverse_command_structure): |
| 3801 | Verify all commands of a list have the same prefix command and |
| 3802 | that only the top cmdlist commands have a null prefix. |
| 3803 | |
| 3804 | 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
| 3805 | |
| 3806 | * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command |
| 3807 | as prefix, not one of its aliases. |
| 3808 | (set_cmd_prefix): Remove. |
| 3809 | (do_add_cmd): Centralize the setting of the prefix of a command, when |
| 3810 | command is defined after its full chain of prefix commands. |
| 3811 | (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it. |
| 3812 | (add_setshow_cmd_full): Likewise. |
| 3813 | (update_prefix_field_of_prefixed_commands): New function. |
| 3814 | (add_prefix_cmd): Replace non working call to set_cmd_prefix by |
| 3815 | update_prefix_field_of_prefixed_commands. |
| 3816 | * gdb/remote-fileio.c (initialize_remote_fileio): Use the real |
| 3817 | addresses of remote_set_cmdlist and remote_show_cmdlist given |
| 3818 | as argument, not the address of an argument. |
| 3819 | * gdb/remote-fileio.h (initialize_remote_fileio): Likewise. |
| 3820 | * gdb/remote.c (_initialize_remote): Likewise. |
| 3821 | |
| 3822 | 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
| 3823 | |
| 3824 | * cli/cli-cmds.c (alias_command): Check for an existing alias |
| 3825 | using lookup_cmd_composition, as valid_command_p is too strict |
| 3826 | and forbids aliases that are the prefix of an existing alias |
| 3827 | or command. |
| 3828 | * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix |
| 3829 | command is properly recognised as a valid command. |
| 3830 | |
| 3831 | 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
| 3832 | |
| 3833 | * unittests/help-doc-selftests.c: Rename to |
| 3834 | unittests/command-def-selftests.c |
| 3835 | * unittests/command-def-selftests.c (help_doc_tests): Update some |
| 3836 | comments. |
| 3837 | (command_structure_tests, traverse_command_structure): New namespace |
| 3838 | and function. |
| 3839 | (command_structure_invariants_tests): New function. |
| 3840 | (_initialize_command_def_selftests) Renamed from |
| 3841 | _initialize_help_doc_selftests, register command_structure_invariants |
| 3842 | selftest. |
| 3843 | |
| 3844 | 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
| 3845 | |
| 3846 | * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as |
| 3847 | an alias of 'show'. |
| 3848 | |
| 3849 | 2020-05-15 Joel Brobecker <brobecker@adacore.com> |
| 3850 | |
| 3851 | * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames |
| 3852 | ada_is_fixed_point_type. Update all callers. |
| 3853 | (gnat_encoded_fixed_point_delta): Renames ada_delta. Update |
| 3854 | all callers. |
| 3855 | * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info. |
| 3856 | Update all callers. |
| 3857 | * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames |
| 3858 | print_fixed_point_type. Update all callers. |
| 3859 | * ada-valprint.c (ada_value_print_num): Replace call to |
| 3860 | ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type. |
| 3861 | |
| 3862 | 2020-05-14 Kevin Buettner <kevinb@redhat.com> |
| 3863 | |
| 3864 | * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD |
| 3865 | processors. |
| 3866 | (cpu_supports_bts): Add CV_AMD case. |
| 3867 | |
| 3868 | 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com> |
| 3869 | Simon Marchi <simon.marchi@efficios.com> |
| 3870 | |
| 3871 | * infrun.c (stop_all_threads): Collect multiple wait events at |
| 3872 | each pass. |
| 3873 | |
| 3874 | 2020-05-14 Simon Marchi <simon.marchi@efficios.com> |
| 3875 | |
| 3876 | * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use |
| 3877 | type::code instead. |
| 3878 | |
| 3879 | 2020-05-14 Simon Marchi <simon.marchi@efficios.com> |
| 3880 | |
| 3881 | * gdbtypes.h (struct type) <code, set_code>: New methods. |
| 3882 | (TYPE_CODE): Use type::code. Change all call sites used to set |
| 3883 | the code to use type::set_code instead. |
| 3884 | |
| 3885 | 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
| 3886 | Tom de Vries <tdevries@suse.de> |
| 3887 | Pedro Alves <palves@redhat.com> |
| 3888 | |
| 3889 | PR threads/25478 |
| 3890 | * infrun.c (stop_all_threads): Do NOT ignore |
| 3891 | TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED, |
| 3892 | TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses |
| 3893 | received. |
| 3894 | (handle_no_resumed): Remove code handling a live inferior with no |
| 3895 | threads. |
| 3896 | * remote.c (has_single_non_exited_thread): New. |
| 3897 | (remote_target::update_thread_list): Do not delete a thread if is |
| 3898 | the last thread of the process. |
| 3899 | * thread.c (thread_select): Call delete_exited_threads instead of |
| 3900 | prune_threads. |
| 3901 | |
| 3902 | 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
| 3903 | |
| 3904 | * infrun.c (stop_all_threads): Enable/disable thread events of all |
| 3905 | targets. Move a debug message denoting the end of the function |
| 3906 | into the SCOPED_EXIT block. |
| 3907 | |
| 3908 | 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
| 3909 | |
| 3910 | * process-stratum-target.h: Include <set>. |
| 3911 | (all_non_exited_process_targets, switch_to_target_no_thread): New |
| 3912 | function declarations. |
| 3913 | * process-stratum-target.c (all_non_exited_process_targets) |
| 3914 | (switch_to_target_no_thread): New function implementations. |
| 3915 | |
| 3916 | 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
| 3917 | |
| 3918 | * infrun.c (handle_inferior_event): Extract out a piece of code |
| 3919 | into... |
| 3920 | (mark_non_executing_threads): ...this new function. |
| 3921 | |
| 3922 | 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
| 3923 | |
| 3924 | * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first |
| 3925 | use. |
| 3926 | |
| 3927 | 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
| 3928 | |
| 3929 | * regcache.c (regcache_read_pc_protected): New function |
| 3930 | implementation that returns 0 if the PC cannot read via |
| 3931 | 'regcache_read_pc'. |
| 3932 | * infrun.c (proceed): Call 'regcache_read_pc_protected' |
| 3933 | instead of 'regcache_read_pc'. |
| 3934 | (keep_going_pass_signal): Ditto. |
| 3935 | |
| 3936 | 2020-05-13 Tom Tromey <tromey@adacore.com> |
| 3937 | |
| 3938 | * ada-lang.c (align_value): Remove. |
| 3939 | (ada_template_to_fixed_record_type_1): Use align_up. |
| 3940 | |
| 3941 | 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
| 3942 | |
| 3943 | * async-event.c: Update the copyright year. |
| 3944 | * async-event.h: Update the copyright year. |
| 3945 | |
| 3946 | 2020-05-12 Simon Marchi <simon.marchi@efficios.com> |
| 3947 | |
| 3948 | * objfiles.h (is_addr_in_objfile, |
| 3949 | shared_objfile_contains_address_p): Return bool. |
| 3950 | * objfile.c (is_addr_in_objfile, |
| 3951 | shared_objfile_contains_address_p): Return bool. |
| 3952 | |
| 3953 | 2020-05-11 Tom Tromey <tromey@adacore.com> |
| 3954 | |
| 3955 | * cli/cli-cmds.c (info_command): Restore. |
| 3956 | (_initialize_cli_cmds): Use add_prefix_command for "info". |
| 3957 | * gdb-gdb.gdb.in: Restore breakpoint on info_command. |
| 3958 | |
| 3959 | 2020-05-11 Tom Tromey <tromey@adacore.com> |
| 3960 | |
| 3961 | * ada-lang.c (ada_value_primitive_field): Now public. |
| 3962 | * ada-lang.h (ada_value_primitive_field): Declare. |
| 3963 | * ada-valprint.c (print_field_values): Use |
| 3964 | ada_value_primitive_field for wrapper fields. |
| 3965 | |
| 3966 | 2020-05-11 Tom de Vries <tdevries@suse.de> |
| 3967 | |
| 3968 | * dwarf2/index-write.c (debug_names::psymbol_tag): Handle |
| 3969 | MODULE_DOMAIN. |
| 3970 | |
| 3971 | 2020-05-11 Tom de Vries <tdevries@suse.de> |
| 3972 | |
| 3973 | PR symtab/25941 |
| 3974 | * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs |
| 3975 | with length 0, if not gdb-produced. |
| 3976 | (cutu_reader::cutu_reader): Set CU length to actual length if 0. |
| 3977 | |
| 3978 | 2020-05-09 Tom de Vries <tdevries@suse.de> |
| 3979 | |
| 3980 | PR gdb/25955 |
| 3981 | * break-catch-throw.c (check_status_exception_catchpoint): Fix name |
| 3982 | calculation. |
| 3983 | |
| 3984 | 2020-05-09 Tom Tromey <tom@tromey.com> |
| 3985 | |
| 3986 | * top.c (server_command): Now bool. |
| 3987 | * top.h (server_command): Now bool. |
| 3988 | |
| 3989 | 2020-05-08 Tom Tromey <tromey@adacore.com> |
| 3990 | |
| 3991 | * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE |
| 3992 | already being processed. |
| 3993 | |
| 3994 | 2020-05-08 Tom Tromey <tom@tromey.com> |
| 3995 | |
| 3996 | * printcmd.c (struct display) <next>: Remove. |
| 3997 | <display>: New constructor. |
| 3998 | <exp_string>: Now a std::string. |
| 3999 | <enabled_p>: Now a bool. |
| 4000 | (display_number): Move definition earlier. |
| 4001 | (displays): Rename from display_chain. Now a std::vector. |
| 4002 | (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove. |
| 4003 | (display_command): Update. |
| 4004 | (do_one_display, disable_display) |
| 4005 | (enable_disable_display_command, do_enable_disable_display): |
| 4006 | Update. |
| 4007 | (free_display): Remove. |
| 4008 | (clear_displays): Rewrite. |
| 4009 | (delete_display): Update. |
| 4010 | (map_display_numbers): Use function_view. Remove "data" |
| 4011 | parameter. Update. |
| 4012 | (do_delete_display): Remove. |
| 4013 | (undisplay_command): Update. |
| 4014 | (do_one_display, do_displays, disable_display) |
| 4015 | (info_display_command): Update. |
| 4016 | (do_enable_disable_display): Remove. |
| 4017 | (enable_disable_display_command) |
| 4018 | (clear_dangling_display_expressions): Update. |
| 4019 | |
| 4020 | 2020-05-08 Tom Tromey <tom@tromey.com> |
| 4021 | |
| 4022 | * symtab.c (set_symbol_cache_size) |
| 4023 | (maintenance_print_symbol_cache, maintenance_flush_symbol_cache) |
| 4024 | (maintenance_print_symbol_cache_statistics): Update. |
| 4025 | * symmisc.c (print_symbol_bcache_statistics) |
| 4026 | (print_objfile_statistics, maintenance_print_objfiles) |
| 4027 | (maintenance_info_symtabs, maintenance_check_symtabs) |
| 4028 | (maintenance_expand_symtabs, maintenance_info_line_tables): |
| 4029 | Update. |
| 4030 | * symfile-debug.c (set_debug_symfile): Update. |
| 4031 | * source.c (forget_cached_source_info): Update. |
| 4032 | * python/python.c (gdbpy_progspaces): Update. |
| 4033 | * psymtab.c (maintenance_info_psymtabs): Update. |
| 4034 | * probe.c (parse_probes): Update. |
| 4035 | * linespec.c (iterate_over_all_matching_symtabs) |
| 4036 | (collect_symtabs_from_filename, search_minsyms_for_name): Update. |
| 4037 | * guile/scm-progspace.c (gdbscm_progspaces): Update. |
| 4038 | * exec.c (exec_target::close): Update. |
| 4039 | * ada-tasks.c (ada_tasks_new_objfile_observer): Update. |
| 4040 | * breakpoint.c (print_one_breakpoint_location) |
| 4041 | (create_longjmp_master_breakpoint) |
| 4042 | (create_std_terminate_master_breakpoint): Update. |
| 4043 | * progspace.c (program_spaces): Now a std::vector. |
| 4044 | (maybe_new_address_space): Update. |
| 4045 | (add_program_space): Remove. |
| 4046 | (program_space::program_space): Update. |
| 4047 | (remove_program_space): Update. |
| 4048 | (number_of_program_spaces): Remove. |
| 4049 | (print_program_space, update_address_spaces): Update. |
| 4050 | * progspace.h (program_spaces): Change type. |
| 4051 | (ALL_PSPACES): Remove. |
| 4052 | (number_of_program_spaces): Don't declare. |
| 4053 | (struct program_space) <next>: Remove. |
| 4054 | |
| 4055 | 2020-05-08 Tom Tromey <tom@tromey.com> |
| 4056 | |
| 4057 | * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update. |
| 4058 | * solib-svr4.c (svr4_fetch_objfile_link_map): Update. |
| 4059 | (enable_break): Update. |
| 4060 | * solib-frv.c (frv_fdpic_find_global_pointer): Update. |
| 4061 | (frv_fdpic_find_canonical_descriptor): Update. |
| 4062 | (frv_fetch_objfile_link_map): Update. |
| 4063 | * progspace.c (program_space::free_all_objfiles): Update. |
| 4064 | (program_space::solibs): New method. |
| 4065 | * progspace.h (struct program_space) <solibs>: New method. |
| 4066 | * solist.h (master_so_list): Don't declare. |
| 4067 | (ALL_SO_LIBS): Remove. |
| 4068 | * solib.h (so_list_head): Remove. |
| 4069 | (update_solib_list): Update comment. |
| 4070 | * solib.c (master_so_list): Remove. |
| 4071 | (solib_used, update_solib_list, solib_add) |
| 4072 | (info_sharedlibrary_command, clear_solib) |
| 4073 | (reload_shared_libraries_1, remove_user_added_objfile): Update. |
| 4074 | |
| 4075 | 2020-05-08 Tom Tromey <tom@tromey.com> |
| 4076 | |
| 4077 | * extension.c (extension_languages): Now a std::array. |
| 4078 | (ALL_EXTENSION_LANGUAGES): Remove. |
| 4079 | (get_ext_lang_defn, get_ext_lang_of_file) |
| 4080 | (eval_ext_lang_from_control_command): Update. |
| 4081 | (finish_ext_lang_initialization) |
| 4082 | (auto_load_ext_lang_scripts_for_objfile) |
| 4083 | (ext_lang_type_printers::ext_lang_type_printers) |
| 4084 | (apply_ext_lang_type_printers) |
| 4085 | (ext_lang_type_printers::~ext_lang_type_printers) |
| 4086 | (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter) |
| 4087 | (preserve_ext_lang_values, get_breakpoint_cond_ext_lang) |
| 4088 | (breakpoint_ext_lang_cond_says_stop, check_quit_flag) |
| 4089 | (get_matching_xmethod_workers, ext_lang_colorize) |
| 4090 | (ext_lang_before_prompt): Update. |
| 4091 | (ALL_ENABLED_EXTENSION_LANGUAGES): Remove. |
| 4092 | |
| 4093 | 2020-05-08 Tom Tromey <tom@tromey.com> |
| 4094 | |
| 4095 | * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New |
| 4096 | overload. |
| 4097 | <swap_string, m_string>: Remove. |
| 4098 | * symtab.c (demangle_for_lookup, completion_list_add_symbol): |
| 4099 | Update. |
| 4100 | * stabsread.c (define_symbol, read_type): Update. |
| 4101 | * linespec.c (find_linespec_symbols): Update. |
| 4102 | * gnu-v3-abi.c (gnuv3_get_typeid): Update. |
| 4103 | * dwarf2/read.c (dwarf2_canonicalize_name): Update. |
| 4104 | * dbxread.c (read_dbx_symtab): Update. |
| 4105 | * cp-support.h (cp_canonicalize_string_full) |
| 4106 | (cp_canonicalize_string, cp_canonicalize_string_no_typedefs): |
| 4107 | Return unique_xmalloc_ptr. |
| 4108 | * cp-support.c (inspect_type): Update. |
| 4109 | (cp_canonicalize_string_full): Return unique_xmalloc_ptr. |
| 4110 | (cp_canonicalize_string_no_typedefs, cp_canonicalize_string): |
| 4111 | Likewise. |
| 4112 | * c-typeprint.c (print_name_maybe_canonical): Update. |
| 4113 | * break-catch-throw.c (check_status_exception_catchpoint): |
| 4114 | Update. |
| 4115 | |
| 4116 | 2020-05-08 Tom de Vries <tdevries@suse.de> |
| 4117 | |
| 4118 | * infrun.c (follow_fork): Copy current_line and current_symtab to |
| 4119 | child thread. |
| 4120 | |
| 4121 | 2020-05-07 Simon Marchi <simon.marchi@efficios.com> |
| 4122 | |
| 4123 | * async-event.c (struct async_signal_handler, struct |
| 4124 | async_event_handler): Reformat, remove typedef. |
| 4125 | |
| 4126 | 2020-05-07 Simon Marchi <simon.marchi@efficios.com> |
| 4127 | |
| 4128 | * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users |
| 4129 | access thistype->main_type->dyn_prop_list directly. |
| 4130 | |
| 4131 | 2020-05-07 Simon Marchi <simon.marchi@efficios.com> |
| 4132 | |
| 4133 | * gdbtypes.h (struct type) <remove_dyn_prop>: New method. |
| 4134 | (remove_dyn_prop): Remove. Update all users to use |
| 4135 | type::remove_dyn_prop. |
| 4136 | * gdbtypes.c (remove_dyn_prop): Rename to... |
| 4137 | (type::remove_dyn_prop): ... this. |
| 4138 | |
| 4139 | 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org> |
| 4140 | |
| 4141 | * gdbtypes.h (struct type) <add_dyn_prop>: New method. |
| 4142 | (add_dyn_prop): Remove. Update all users to use |
| 4143 | type::add_dyn_prop. |
| 4144 | * gdbtypes.c (add_dyn_prop): Rename to... |
| 4145 | (type::add_dyn_prop): ... this. |
| 4146 | |
| 4147 | 2020-05-07 Simon Marchi <simon.marchi@efficios.com> |
| 4148 | |
| 4149 | * gdbtypes.h (struct type) <get_dyn_prop>: New method. |
| 4150 | (get_dyn_prop): Remove. Update all users to use |
| 4151 | type::dyn_prop. |
| 4152 | * gdbtypes.c (get_dyn_prop): Rename to... |
| 4153 | (type::dyn_prop): ... this. |
| 4154 | |
| 4155 | 2020-05-06 Simon Marchi <simon.marchi@efficios.com> |
| 4156 | |
| 4157 | * gdbtypes.h (struct main_type) <flag_static>: Remove. |
| 4158 | |
| 4159 | 2020-05-06 Simon Marchi <simon.marchi@efficios.com> |
| 4160 | |
| 4161 | * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64` |
| 4162 | instruction, skip it if it's there. |
| 4163 | |
| 4164 | 2020-05-05 Simon Marchi <simon.marchi@efficios.com> |
| 4165 | |
| 4166 | * gdbtypes.h (struct main_type) <flag_incomplete>: Remove. |
| 4167 | |
| 4168 | 2020-05-04 Simon Marchi <simon.marchi@efficios.com> |
| 4169 | |
| 4170 | * gdbtypes.h (TYPE_INCOMPLETE): Remove. |
| 4171 | * gdbtypes.c (recursive_dump_type): Remove use of |
| 4172 | TYPE_INCOMPLETE. |
| 4173 | |
| 4174 | 2020-05-03 Tom Tromey <tom@tromey.com> |
| 4175 | |
| 4176 | * breakpoint.c (catch_command, tcatch_command): Remove. |
| 4177 | (_initialize_breakpoint): Use add_basic_prefix_cmd, |
| 4178 | add_show_prefix_cmd. |
| 4179 | (set_breakpoint_cmd, show_breakpoint_cmd): Remove |
| 4180 | * utils.c (set_internal_problem_cmd, show_internal_problem_cmd): |
| 4181 | Remove. |
| 4182 | (add_internal_problem_command): Use add_basic_prefix_cmd, |
| 4183 | add_show_prefix_cmd. |
| 4184 | * mips-tdep.c (set_mipsfpu_command): Remove. |
| 4185 | (_initialize_mips_tdep): Use add_basic_prefix_cmd. |
| 4186 | * dwarf2/index-cache.c (set_index_cache_command): Remove. |
| 4187 | (_initialize_index_cache): Use add_basic_prefix_cmd. |
| 4188 | * memattr.c (dummy_cmd): Remove. |
| 4189 | (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd. |
| 4190 | * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove. |
| 4191 | (_initialize_tui_win): Use add_basic_prefix_cmd, |
| 4192 | add_show_prefix_cmd. |
| 4193 | * cli/cli-logging.c (set_logging_command): Remove. |
| 4194 | (_initialize_cli_logging): Use add_basic_prefix_cmd, |
| 4195 | add_show_prefix_cmd. |
| 4196 | (show_logging_command): Remove. |
| 4197 | * target.c (target_command): Remove. |
| 4198 | (add_target): Use add_basic_prefix_cmd. |
| 4199 | |
| 4200 | 2020-05-02 Hannes Domani <ssbssa@yahoo.de> |
| 4201 | |
| 4202 | * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo. |
| 4203 | |
| 4204 | 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
| 4205 | |
| 4206 | * gdb-gdb.gdb-in: Remove breakpoint on disappeared function |
| 4207 | info_command. |
| 4208 | |
| 4209 | 2020-04-30 Kamil Rytarowski <n54@gmx.com> |
| 4210 | |
| 4211 | * nbsd-nat.c (nbsd_enable_proc_events) |
| 4212 | (nbsd_nat_target::post_startup_inferior): Add. |
| 4213 | (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'. |
| 4214 | (nbsd_nat_target::update_thread_list): Rewrite. |
| 4215 | (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and |
| 4216 | "PTRACE_LWP_CREATE". |
| 4217 | * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add. |
| 4218 | |
| 4219 | 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
| 4220 | |
| 4221 | * stack.c (_initialize_stack): Remove duplicated creation |
| 4222 | of "frame" command and "f" alias. |
| 4223 | |
| 4224 | 2020-04-30 Hannes Domani <ssbssa@yahoo.de> |
| 4225 | |
| 4226 | PR gdb/18706 |
| 4227 | * gdbtypes.c (check_typedef): Calculate size of array of |
| 4228 | stubbed type. |
| 4229 | |
| 4230 | 2020-04-30 Hannes Domani <ssbssa@yahoo.de> |
| 4231 | |
| 4232 | PR gdb/15559 |
| 4233 | * i386-tdep.c (i386_push_dummy_call): Call |
| 4234 | i386_thiscall_push_dummy_call. |
| 4235 | (i386_thiscall_push_dummy_call): New function. |
| 4236 | * i386-tdep.h (i386_thiscall_push_dummy_call): Declare. |
| 4237 | * i386-windows-tdep.c (i386_windows_push_dummy_call): New function. |
| 4238 | (i386_windows_init_abi): Call set_gdbarch_push_dummy_call. |
| 4239 | |
| 4240 | 2020-04-29 Simon Marchi <simon.marchi@efficios.com> |
| 4241 | |
| 4242 | * gdbarch.sh (do_read): Add shellcheck disable directive for |
| 4243 | warning SC2162. |
| 4244 | |
| 4245 | 2020-04-29 Simon Marchi <simon.marchi@efficios.com> |
| 4246 | |
| 4247 | * gdbarch.sh: Use ${foo:-} where shellcheck would report a |
| 4248 | "referenced but not assigned" warning. |
| 4249 | |
| 4250 | 2020-04-29 Simon Marchi <simon.marchi@efficios.com> |
| 4251 | |
| 4252 | * gdbarch.sh: Remove code that sets fallbackdefault. |
| 4253 | |
| 4254 | 2020-04-29 Simon Marchi <simon.marchi@efficios.com> |
| 4255 | |
| 4256 | * gdbarch.sh: Use shell operators && and || instead of |
| 4257 | -a and -o. |
| 4258 | |
| 4259 | 2020-04-29 Simon Marchi <simon.marchi@efficios.com> |
| 4260 | |
| 4261 | * gdbarch.sh: Use $(...) instead of `...`. |
| 4262 | |
| 4263 | 2020-04-29 Simon Marchi <simon.marchi@efficios.com> |
| 4264 | |
| 4265 | * gdbarch.sh: Use double quotes around variables. |
| 4266 | |
| 4267 | 2020-04-29 Simon Marchi <simon.marchi@efficios.com> |
| 4268 | |
| 4269 | * gdbarch.sh: Use %s with printf, instead of variables in the |
| 4270 | format string. |
| 4271 | |
| 4272 | 2020-04-29 Tom Tromey <tromey@adacore.com> |
| 4273 | |
| 4274 | PR ada/25875: |
| 4275 | * dwarf2/read.c (update_enumeration_type_from_children): Compute |
| 4276 | type fields here. |
| 4277 | (read_enumeration_type): Call |
| 4278 | update_enumeration_type_from_children later. Update comments. |
| 4279 | (process_enumeration_scope): Don't create type fields. |
| 4280 | |
| 4281 | 2020-04-29 Kamil Rytarowski <n54@gmx.com> |
| 4282 | |
| 4283 | * nbsd-tdep.c: Include "xml-syscall.h". |
| 4284 | (nbsd_init_abi): Call `set_xml_syscall_file_name'. |
| 4285 | |
| 4286 | 2020-04-29 Kamil Rytarowski <n54@gmx.com> |
| 4287 | |
| 4288 | * nbsd-nat.c: Include "sys/wait.h". |
| 4289 | (nbsd_resume, nbsd_nat_target::resume, nbsd_wait) |
| 4290 | (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint) |
| 4291 | (nbsd_nat_target::remove_exec_catchpoint) |
| 4292 | (nbsd_nat_target::set_syscall_catchpoint): Add. |
| 4293 | * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait) |
| 4294 | (nbsd_nat_target::insert_exec_catchpoint) |
| 4295 | (nbsd_nat_target::remove_exec_catchpoint) |
| 4296 | (nbsd_nat_target::set_syscall_catchpoint): Add. |
| 4297 | * nbsd-tdep.c (nbsd_get_syscall_number): Add. |
| 4298 | (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass |
| 4299 | `nbsd_get_syscall_number'. |
| 4300 | |
| 4301 | 2020-04-29 Tom Tromey <tom@tromey.com> |
| 4302 | |
| 4303 | * stack.c (print_block_frame_labels): Remove. |
| 4304 | |
| 4305 | 2020-04-29 Hannes Domani <ssbssa@yahoo.de> |
| 4306 | |
| 4307 | PR gdb/17320 |
| 4308 | * ada-valprint.c (val_print_packed_array_elements): Move array |
| 4309 | end bracket to new line. |
| 4310 | (ada_val_print_string): Remove extra spaces before first array |
| 4311 | element. |
| 4312 | * c-valprint.c (c_value_print_array): Likewise. |
| 4313 | * m2-valprint.c (m2_print_array_contents): Likewise. |
| 4314 | (m2_value_print_inner): Likewise. |
| 4315 | * p-valprint.c (pascal_value_print_inner): Likewise. |
| 4316 | * valprint.c (generic_val_print_array): Likewise. |
| 4317 | (value_print_array_elements): Move first array element and array |
| 4318 | end bracket to new line. |
| 4319 | |
| 4320 | 2020-04-29 Tom de Vries <tdevries@suse.de> |
| 4321 | |
| 4322 | PR symtab/25889 |
| 4323 | * linespec.c (find_method): Fix ix calculation. |
| 4324 | |
| 4325 | 2020-04-28 Kamil Rytarowski <n54@gmx.com> |
| 4326 | |
| 4327 | * syscalls/update-netbsd.sh: New file. |
| 4328 | * syscalls/netbsd.xml: Regenerate. |
| 4329 | * data-directory/Makefile.in: Register `netbsd.xml' in |
| 4330 | `SYSCALLS_FILES'. |
| 4331 | |
| 4332 | 2020-04-28 Simon Marchi <simon.marchi@efficios.com> |
| 4333 | |
| 4334 | * syscalls/update-freebsd.sh: Add double quotes. |
| 4335 | |
| 4336 | 2020-04-28 Tom Tromey <tom@tromey.com> |
| 4337 | |
| 4338 | * NEWS: Update. |
| 4339 | * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI. |
| 4340 | (cmdpy_init): Allow class_tui. |
| 4341 | |
| 4342 | 2020-04-28 Mark Williams <mark@myosotissp.com> |
| 4343 | |
| 4344 | PR gdb/24480 |
| 4345 | * dwarf2read.c: Add missing assingments to list_in_scope when |
| 4346 | start_symtab was already called. |
| 4347 | |
| 4348 | 2020-04-28 Simon Marchi <simon.marchi@efficios.com> |
| 4349 | |
| 4350 | PR gdb/25881 |
| 4351 | * dwarf2/read.c (offset_map_type): Use |
| 4352 | gdb:hash_enum<sect_offset> as hash function. |
| 4353 | |
| 4354 | 2020-04-28 Tom de Vries <tdevries@suse.de> |
| 4355 | |
| 4356 | * dwarf2/read.c (process_structure_scope): Add symbol for struct decl |
| 4357 | with DW_AT_signature. |
| 4358 | |
| 4359 | 2020-04-27 Simon Marchi <simon.marchi@efficios.com> |
| 4360 | |
| 4361 | * configure.ac: Remove check for fs_base/gs_base in |
| 4362 | user_regs_struct. |
| 4363 | * configure: Re-generate. |
| 4364 | * config.in: Re-generate. |
| 4365 | * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust. |
| 4366 | * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers, |
| 4367 | amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust. |
| 4368 | |
| 4369 | 2020-04-27 Luis Machado <luis.machado@linaro.org> |
| 4370 | |
| 4371 | * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle |
| 4372 | problematic inline frame unwinding situation. |
| 4373 | * frame.c (frame_id_computed_p): New function. |
| 4374 | * frame.h (frame_id_computed_p): New prototype. |
| 4375 | |
| 4376 | 2020-04-26 Tom Tromey <tom@tromey.com> |
| 4377 | |
| 4378 | * command.h (enum command_class) <class_pseudo>: Remove. |
| 4379 | |
| 4380 | 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
| 4381 | |
| 4382 | * cli/cli-decode.c (lookup_cmd_composition): Fix comments |
| 4383 | and whitespace. |
| 4384 | |
| 4385 | 2020-04-25 Kamil Rytarowski <n54@gmx.com> |
| 4386 | |
| 4387 | * inf-ptrace.c (inf_ptrace_target::wait): Remove |
| 4388 | `PT_GET_PROCESS_STATE' block. |
| 4389 | |
| 4390 | 2020-04-24 Tom Tromey <tom@tromey.com> |
| 4391 | |
| 4392 | * symtab.h (symbol_get_demangled_name): Don't declare. |
| 4393 | * symtab.c (symbol_get_demangled_name): Remove. |
| 4394 | (general_symbol_info::natural_name) |
| 4395 | (general_symbol_info::demangled_name): Update. |
| 4396 | |
| 4397 | 2020-04-24 Tom Tromey <tom@tromey.com> |
| 4398 | |
| 4399 | PR rust/25025: |
| 4400 | * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust. |
| 4401 | |
| 4402 | 2020-04-24 Tom Tromey <tom@tromey.com> |
| 4403 | |
| 4404 | PR symtab/12707: |
| 4405 | * dwarf2/read.c (add_partial_symbol): Use the linkage name if it |
| 4406 | exists. |
| 4407 | (new_symbol): Likewise. |
| 4408 | * compile/compile-object-load.c (get_out_value_type): Use |
| 4409 | symbol_matches_search_name. |
| 4410 | |
| 4411 | 2020-04-24 Tom Tromey <tom@tromey.com> |
| 4412 | |
| 4413 | * dwarf2/read.c (add_partial_symbol): Do not call |
| 4414 | compute_and_set_names. |
| 4415 | |
| 4416 | 2020-04-24 Tom Tromey <tom@tromey.com> |
| 4417 | |
| 4418 | * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list |
| 4419 | overload. |
| 4420 | |
| 4421 | 2020-04-24 Tom Tromey <tom@tromey.com> |
| 4422 | |
| 4423 | * psymtab.c (add_psymbol_to_bcache): Simplify calling convention. |
| 4424 | (add_psymbol_to_list): New overload. Make old overload call new |
| 4425 | one. |
| 4426 | * psympriv.h (add_psymbol_to_list): New overload. |
| 4427 | |
| 4428 | 2020-04-24 Tom Tromey <tom@tromey.com> |
| 4429 | |
| 4430 | * dwarf2/read.c (partial_die_info::read) <case |
| 4431 | DW_AT_linkage_name>: Use value_as_string. |
| 4432 | (dwarf2_string_attr): Use value_as_string. |
| 4433 | * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare |
| 4434 | method. |
| 4435 | * dwarf2/attribute.c (attribute::value_as_string): New method. |
| 4436 | |
| 4437 | 2020-04-24 Tom Tromey <tom@tromey.com> |
| 4438 | |
| 4439 | * symtab.c (general_symbol_info::natural_name) |
| 4440 | (general_symbol_info::demangled_name): Check for language_rust. |
| 4441 | |
| 4442 | 2020-04-24 Tom Tromey <tom@tromey.com> |
| 4443 | |
| 4444 | * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here... |
| 4445 | (dwarf2_physname): ... from here. |
| 4446 | (partial_die_info::read): Add Rust "{" hack. |
| 4447 | |
| 4448 | 2020-04-24 Tom Tromey <tom@tromey.com> |
| 4449 | |
| 4450 | * symtab.h (struct general_symbol_info) <set_demangled_name>: New |
| 4451 | method. |
| 4452 | (symbol_set_demangled_name): Don't declare. |
| 4453 | * symtab.c (general_symbol_info::set_demangled_name): Rename from |
| 4454 | symbol_set_demangled_name. |
| 4455 | (general_symbol_info::set_language) |
| 4456 | (general_symbol_info::compute_and_set_names): Update. |
| 4457 | * minsyms.c (minimal_symbol_reader::install): Update. |
| 4458 | * dwarf2/read.c (new_symbol): Update. |
| 4459 | |
| 4460 | 2020-04-24 Tom Tromey <tromey@adacore.com> |
| 4461 | |
| 4462 | PR python/23662: |
| 4463 | * python/py-type.c (convert_field): Handle |
| 4464 | FIELD_LOC_KIND_DWARF_BLOCK. |
| 4465 | (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH. |
| 4466 | (typy_get_dynamic): Nw function. |
| 4467 | (type_object_getset): Add "dynamic". |
| 4468 | * NEWS: Add entry. |
| 4469 | |
| 4470 | 2020-04-24 Tom Tromey <tromey@adacore.com> |
| 4471 | |
| 4472 | * ada-typeprint.c (print_choices, print_variant_part) |
| 4473 | (print_record_field_types_dynamic): New functions. |
| 4474 | (print_record_field_types): Use print_record_field_types_dynamic. |
| 4475 | |
| 4476 | 2020-04-24 Tom Tromey <tromey@adacore.com> |
| 4477 | |
| 4478 | * dwarf2/read.c (handle_data_member_location): New overload. |
| 4479 | (dwarf2_add_field): Use it. |
| 4480 | (decode_locdesc): Add "computed" parameter. Update comment. |
| 4481 | * gdbtypes.c (is_dynamic_type_internal): Also look for |
| 4482 | FIELD_LOC_KIND_DWARF_BLOCK. |
| 4483 | (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK. |
| 4484 | * gdbtypes.c (is_dynamic_type_internal): Add special case for C++ |
| 4485 | virtual base classes. |
| 4486 | * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle |
| 4487 | FIELD_LOC_KIND_DWARF_BLOCK. |
| 4488 | |
| 4489 | 2020-04-24 Tom Tromey <tromey@adacore.com> |
| 4490 | |
| 4491 | * dwarf2/read.c (read_structure_type): Handle dynamic length. |
| 4492 | * gdbtypes.c (is_dynamic_type_internal): Check |
| 4493 | TYPE_HAS_DYNAMIC_LENGTH. |
| 4494 | (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH. |
| 4495 | * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH): |
| 4496 | New macros. |
| 4497 | (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New |
| 4498 | constant. |
| 4499 | |
| 4500 | 2020-04-24 Tom Tromey <tromey@adacore.com> |
| 4501 | |
| 4502 | * dwarf2/read.c (struct variant_field): Rewrite. |
| 4503 | (struct variant_part_builder): New. |
| 4504 | (struct nextfield): Remove "variant" field. Add "offset". |
| 4505 | (struct field_info): Add "current_variant_part" and |
| 4506 | "variant_parts". |
| 4507 | (alloc_discriminant_info): Remove. |
| 4508 | (alloc_rust_variant): New function. |
| 4509 | (quirk_rust_enum): Update. |
| 4510 | (dwarf2_add_field): Set "offset" member. Don't handle |
| 4511 | DW_TAG_variant_part. |
| 4512 | (offset_map_type): New typedef. |
| 4513 | (convert_variant_range, create_one_variant) |
| 4514 | (create_one_variant_part, create_variant_parts) |
| 4515 | (add_variant_property): New functions. |
| 4516 | (dwarf2_attach_fields_to_type): Call add_variant_property. |
| 4517 | (read_structure_type): Don't handle DW_TAG_variant_part. |
| 4518 | (handle_variant_part, handle_variant): New functions. |
| 4519 | (handle_struct_member_die): Use them. |
| 4520 | (process_structure_scope): Don't handle variant parts. |
| 4521 | * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove. |
| 4522 | (struct discriminant_info): Remove. |
| 4523 | (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove. |
| 4524 | (struct main_type) <flag_discriminated_union>: Remove. |
| 4525 | * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite. |
| 4526 | (rust_enum_variant): Return int. Remove "contents". Rewrite. |
| 4527 | (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp): |
| 4528 | Update. |
| 4529 | * valops.c (value_union_variant): Remove. |
| 4530 | * value.h (value_union_variant): Don't declare. |
| 4531 | |
| 4532 | 2020-04-24 Tom Tromey <tromey@adacore.com> |
| 4533 | |
| 4534 | * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low) |
| 4535 | (ada_value_primitive_packed_val): Update. |
| 4536 | * ada-valprint.c (ada_value_print_1): Update. |
| 4537 | * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct. |
| 4538 | (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than |
| 4539 | just an address. Use evaluate_for_locexpr_baton. |
| 4540 | (dwarf2_evaluate_property): Update. |
| 4541 | * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an |
| 4542 | array_view. |
| 4543 | * findvar.c (default_read_var_value): Update. |
| 4544 | * gdbtypes.c (compute_variant_fields_inner) |
| 4545 | (resolve_dynamic_type_internal): Update. |
| 4546 | (resolve_dynamic_type): Change type of valaddr parameter. |
| 4547 | * gdbtypes.h (resolve_dynamic_type): Update. |
| 4548 | * valarith.c (value_subscripted_rvalue): Update. |
| 4549 | * value.c (value_from_contents_and_address): Update. |
| 4550 | |
| 4551 | 2020-04-24 Tom Tromey <tromey@adacore.com> |
| 4552 | |
| 4553 | * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add |
| 4554 | "push_initial_value" parameter. |
| 4555 | (dwarf2_evaluate_property): Likewise. |
| 4556 | * dwarf2/loc.h (dwarf2_evaluate_property): Update. |
| 4557 | |
| 4558 | 2020-04-24 Tom Tromey <tromey@adacore.com> |
| 4559 | |
| 4560 | * gdbtypes.c (is_dynamic_type_internal): Check for variant parts. |
| 4561 | (variant::matches, compute_variant_fields_recurse) |
| 4562 | (compute_variant_fields_inner, compute_variant_fields): New |
| 4563 | functions. |
| 4564 | (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS. |
| 4565 | Use resolved_type after type is made. |
| 4566 | (operator==): Add new cases. |
| 4567 | * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro. |
| 4568 | (struct discriminant_range, struct variant, struct variant_part): |
| 4569 | New. |
| 4570 | (union dynamic_prop_data) <variant_parts, original_type>: New |
| 4571 | members. |
| 4572 | (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant. |
| 4573 | (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New |
| 4574 | constants. |
| 4575 | * value.c (unpack_bits_as_long): Now public. |
| 4576 | * value.h (unpack_bits_as_long): Declare. |
| 4577 | |
| 4578 | 2020-04-24 Tom Tromey <tromey@adacore.com> |
| 4579 | |
| 4580 | * rs6000-tdep.c (struct ppc_variant): Rename from "variant". |
| 4581 | (variants, find_variant_by_arch, rs6000_gdbarch_init): Update. |
| 4582 | |
| 4583 | 2020-04-24 Hannes Domani <ssbssa@yahoo.de> |
| 4584 | |
| 4585 | * windows-tdep.c (exception_values): Add WOW64 exception numbers. |
| 4586 | |
| 4587 | 2020-04-24 Kamil Rytarowski <n54@gmx.com> |
| 4588 | |
| 4589 | * inf-ptrace.h (follow_fork, insert_fork_catchpoint) |
| 4590 | (remove_fork_catchpoint, post_startup_inferior) |
| 4591 | (post_attach): Move... |
| 4592 | * obsd-nat.h (follow_fork, insert_fork_catchpoint) |
| 4593 | (remove_fork_catchpoint, post_startup_inferior) |
| 4594 | (post_attach): ...here. |
| 4595 | * inf-ptrace.c (follow_fork, insert_fork_catchpoint) |
| 4596 | (remove_fork_catchpoint, post_startup_inferior) |
| 4597 | (post_attach): Move... |
| 4598 | * obsd-nat.c (follow_fork, insert_fork_catchpoint) |
| 4599 | (remove_fork_catchpoint, post_startup_inferior) |
| 4600 | (post_attach): ...here. |
| 4601 | |
| 4602 | 2020-04-24 Tom Tromey <tromey@adacore.com> |
| 4603 | |
| 4604 | * nat/windows-nat.h (struct windows_thread_info) |
| 4605 | <pc_adjusted>: New member. |
| 4606 | * windows-nat.c (windows_fetch_one_register): Check |
| 4607 | pc_adjusted. |
| 4608 | (windows_nat_target::get_windows_debug_event) |
| 4609 | (windows_nat_target::wait): Set pc_adjusted. |
| 4610 | |
| 4611 | 2020-04-24 Tom de Vries <tdevries@suse.de> |
| 4612 | |
| 4613 | * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling. |
| 4614 | Run gdb-add-index inside temp dir. |
| 4615 | |
| 4616 | 2020-04-23 Tom Tromey <tromey@adacore.com> |
| 4617 | |
| 4618 | * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter" |
| 4619 | in loop. |
| 4620 | |
| 4621 | 2020-04-23 Luis Machado <luis.machado@linaro.org> |
| 4622 | |
| 4623 | * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use |
| 4624 | get_frame_register instead of gdbarch_unwind_pc. |
| 4625 | |
| 4626 | 2020-04-23 Tom de Vries <tdevries@suse.de> |
| 4627 | |
| 4628 | * symtab.c (lookup_global_symbol): Prefer def over decl. |
| 4629 | |
| 4630 | 2020-04-23 Tom de Vries <tdevries@suse.de> |
| 4631 | |
| 4632 | PR symtab/25807 |
| 4633 | * block.c (best_symbol, better_symbol): Promote to external. |
| 4634 | * block.h (best_symbol, better_symbol): Declare. |
| 4635 | * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over |
| 4636 | decl. |
| 4637 | |
| 4638 | 2020-04-23 Tom Tromey <tromey@adacore.com> |
| 4639 | |
| 4640 | PR ada/25837: |
| 4641 | * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a |
| 4642 | "const char *", not a "const std::string &". |
| 4643 | <name_and_matcher::operator==>: Update. |
| 4644 | * unittests/lookup_name_info-selftests.c: Change type of |
| 4645 | "result". |
| 4646 | |
| 4647 | 2020-04-23 Tom Tromey <tom@tromey.com> |
| 4648 | |
| 4649 | * inferior.h (iterate_over_inferiors): Don't declare. |
| 4650 | * inferior.c (iterate_over_inferiors): Remove. |
| 4651 | * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it): |
| 4652 | Remove. |
| 4653 | (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't |
| 4654 | use iterate_over_inferiors. |
| 4655 | (darwin_resume_inferior_it) |
| 4656 | (struct resume_inferior_threads_param) |
| 4657 | (darwin_resume_inferior_threads_it): Remove. |
| 4658 | (darwin_nat_target::resume): Don't use iterate_over_inferiors. |
| 4659 | |
| 4660 | 2020-04-23 Tom de Vries <tdevries@suse.de> |
| 4661 | |
| 4662 | * blockframe.c (find_pc_partial_function): Use |
| 4663 | find_pc_sect_compunit_symtab rather than |
| 4664 | objfile->sf->qf->find_pc_sect_compunit_symtab. |
| 4665 | |
| 4666 | 2020-04-22 Tom de Vries <tdevries@suse.de> |
| 4667 | |
| 4668 | PR symtab/25764 |
| 4669 | * dwarf2/read.c (scan_partial_symbols): Allow external variable decls |
| 4670 | in psymtabs. |
| 4671 | |
| 4672 | 2020-04-22 Tom de Vries <tdevries@suse.de> |
| 4673 | |
| 4674 | PR symtab/25801 |
| 4675 | * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared |
| 4676 | symtabs. |
| 4677 | |
| 4678 | 2020-04-22 Tom de Vries <tdevries@suse.de> |
| 4679 | |
| 4680 | PR symtab/25700 |
| 4681 | * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for |
| 4682 | CU if already created. |
| 4683 | |
| 4684 | 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
| 4685 | |
| 4686 | * infrun.c (displaced_step_fixup): Switch to the event_thread |
| 4687 | before calling displaced_step_restore, not after. |
| 4688 | |
| 4689 | 2020-04-21 Markus Metzger <markus.t.metzger@intel.com> |
| 4690 | |
| 4691 | * record-btrace.c (record_btrace_enable_warn): Ignore thread if |
| 4692 | its inferior is not recorded by us. |
| 4693 | (record_btrace_target_open): Replace call to |
| 4694 | all_non_exited_threads () with call to current_inferior |
| 4695 | ()->non_exited_threads (). |
| 4696 | (record_btrace_target::stop_recording): Likewise. |
| 4697 | (record_btrace_target::close): Likewise. |
| 4698 | (record_btrace_target::wait): Likewise. |
| 4699 | (record_btrace_target::record_stop_replaying): Likewise. |
| 4700 | |
| 4701 | 2020-04-21 Markus Metzger <markus.t.metzger@intel.com> |
| 4702 | |
| 4703 | * btrace.c (btrace_enable): Throw an error on double enables and |
| 4704 | when enabling recording fails. |
| 4705 | (btrace_disable): Throw an error if the thread is not recorded. |
| 4706 | |
| 4707 | 2020-04-21 Markus Metzger <markus.t.metzger@intel.com> |
| 4708 | |
| 4709 | * record-btrace.c (record_btrace_target::fetch_registers): Forward |
| 4710 | request if we do not have a thread_info. |
| 4711 | |
| 4712 | 2020-04-21 Tom de Vries <tdevries@suse.de> |
| 4713 | |
| 4714 | PR gdb/25471 |
| 4715 | * thread.c |
| 4716 | (scoped_restore_current_thread::scoped_restore_current_thread): Catch |
| 4717 | exception in get_frame_id. |
| 4718 | |
| 4719 | 2020-04-20 Tom Tromey <tromey@adacore.com> |
| 4720 | |
| 4721 | * python/python.c (struct gdbpy_event): Mark move constructor as |
| 4722 | noexcept. |
| 4723 | * python/py-tui.c (class gdbpy_tui_window_maker): Mark move |
| 4724 | constructor as noexcept. |
| 4725 | * completer.h (struct completion_result): Mark move constructor as |
| 4726 | noexcept. |
| 4727 | * completer.c (completion_result::completion_result): Use |
| 4728 | initialization style. Don't call reset_match_list. |
| 4729 | |
| 4730 | 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com> |
| 4731 | |
| 4732 | * MAINTAINERS (Write After Approval): Add myself. |
| 4733 | |
| 4734 | 2020-04-18 Tom Tromey <tom@tromey.com> |
| 4735 | |
| 4736 | * windows-tdep.c (init_w32_command_list) |
| 4737 | (w32_prefix_command_valid): Restore. |
| 4738 | (_initialize_windows_tdep): Call init_w32_command_list. |
| 4739 | |
| 4740 | 2020-04-18 Tom Tromey <tom@tromey.com> |
| 4741 | |
| 4742 | * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update. |
| 4743 | * value.c (value_fn_field): Update. |
| 4744 | * valops.c (find_function_in_inferior) |
| 4745 | (value_allocate_space_in_inferior): Update. |
| 4746 | * tui/tui-winsource.c (tui_update_source_windows_with_line): |
| 4747 | Update. |
| 4748 | * tui/tui-source.c (tui_source_window::set_contents): Update. |
| 4749 | * symtab.c (lookup_global_or_static_symbol) |
| 4750 | (find_function_start_sal_1, skip_prologue_sal) |
| 4751 | (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update. |
| 4752 | * symmisc.c (dump_msymbols, dump_symtab_1) |
| 4753 | (maintenance_print_one_line_table): Update. |
| 4754 | * symfile.c (init_entry_point_info, section_is_mapped) |
| 4755 | (list_overlays_command, simple_read_overlay_table) |
| 4756 | (simple_overlay_update_1): Update. |
| 4757 | * stap-probe.c (handle_stap_probe): Update. |
| 4758 | * stabsread.c (dbx_init_float_type, define_symbol) |
| 4759 | (read_one_struct_field, read_enum_type, read_range_type): Update. |
| 4760 | * source.c (info_line_command): Update. |
| 4761 | * python/python.c (gdbpy_source_objfile_script) |
| 4762 | (gdbpy_execute_objfile_script): Update. |
| 4763 | * python/py-type.c (save_objfile_types): Update. |
| 4764 | * python/py-objfile.c (py_free_objfile): Update. |
| 4765 | * python/py-inferior.c (python_new_objfile): Update. |
| 4766 | * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab) |
| 4767 | (dump_psymtab_addrmap_1, maintenance_info_psymtabs) |
| 4768 | (maintenance_check_psymtabs): Update. |
| 4769 | * printcmd.c (info_address_command): Update. |
| 4770 | * objfiles.h (struct objfile) <arch>: New method, from |
| 4771 | get_objfile_arch. |
| 4772 | (get_objfile_arch): Don't declare. |
| 4773 | * objfiles.c (get_objfile_arch): Remove. |
| 4774 | (filter_overlapping_sections): Update. |
| 4775 | * minsyms.c (msymbol_is_function): Update. |
| 4776 | * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines) |
| 4777 | (output_nondebug_symbol): Update. |
| 4778 | * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols) |
| 4779 | (mdebug_expand_psymtab): Update. |
| 4780 | * machoread.c (macho_add_oso_symfile): Update. |
| 4781 | * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap): |
| 4782 | Update. |
| 4783 | * linux-fork.c (checkpoint_command): Update. |
| 4784 | * linespec.c (convert_linespec_to_sals): Update. |
| 4785 | * jit.c (finalize_symtab): Update. |
| 4786 | * infrun.c (insert_exception_resume_from_probe): Update. |
| 4787 | * ia64-tdep.c (ia64_find_unwind_table): Update. |
| 4788 | * hppa-tdep.c (internalize_unwinds): Update. |
| 4789 | * gdbtypes.c (get_type_arch, init_float_type, objfile_type): |
| 4790 | Update. |
| 4791 | * gcore.c (call_target_sbrk): Update. |
| 4792 | * elfread.c (record_minimal_symbol, elf_symtab_read) |
| 4793 | (elf_rel_plt_read, elf_gnu_ifunc_record_cache) |
| 4794 | (elf_gnu_ifunc_resolve_by_got): Update. |
| 4795 | * dwarf2/read.c (create_addrmap_from_index) |
| 4796 | (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab) |
| 4797 | (read_debug_names_from_section) |
| 4798 | (process_psymtab_comp_unit_reader, add_partial_symbol) |
| 4799 | (add_partial_subprogram, process_full_comp_unit) |
| 4800 | (read_file_scope, read_func_scope, read_lexical_block_scope) |
| 4801 | (read_call_site_scope, dwarf2_ranges_read) |
| 4802 | (dwarf2_record_block_ranges, dwarf2_add_field) |
| 4803 | (mark_common_block_symbol_computed, read_tag_pointer_type) |
| 4804 | (read_tag_string_type, dwarf2_init_float_type) |
| 4805 | (dwarf2_init_complex_target_type, read_base_type) |
| 4806 | (partial_die_info::read, partial_die_info::read) |
| 4807 | (read_attribute_value, dwarf_decode_lines_1, new_symbol) |
| 4808 | (dwarf2_fetch_die_loc_sect_off): Update. |
| 4809 | * dwarf2/loc.c (dwarf2_find_location_expression) |
| 4810 | (class dwarf_evaluate_loc_desc, rw_pieced_value) |
| 4811 | (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval) |
| 4812 | (dwarf2_loc_desc_get_symbol_read_needs) |
| 4813 | (locexpr_describe_location_piece, locexpr_describe_location_1) |
| 4814 | (loclist_describe_location): Update. |
| 4815 | * dwarf2/index-write.c (write_debug_names): Update. |
| 4816 | * dwarf2/frame.c (dwarf2_build_frame_info): Update. |
| 4817 | * dtrace-probe.c (dtrace_process_dof): Update. |
| 4818 | * dbxread.c (read_dbx_symtab, dbx_end_psymtab) |
| 4819 | (process_one_symbol): Update. |
| 4820 | * ctfread.c (ctf_init_float_type, read_base_type): Update. |
| 4821 | * coffread.c (coff_symtab_read, enter_linenos, decode_base_type) |
| 4822 | (coff_read_enum_type): Update. |
| 4823 | * cli/cli-cmds.c (edit_command, list_command): Update. |
| 4824 | * buildsym.c (buildsym_compunit::finish_block_internal): Update. |
| 4825 | * breakpoint.c (create_overlay_event_breakpoint) |
| 4826 | (create_longjmp_master_breakpoint) |
| 4827 | (create_std_terminate_master_breakpoint) |
| 4828 | (create_exception_master_breakpoint, get_sal_arch): Update. |
| 4829 | * block.c (block_gdbarch): Update. |
| 4830 | * annotate.c (annotate_source_line): Update. |
| 4831 | |
| 4832 | 2020-04-17 Tom Tromey <tromey@adacore.com> |
| 4833 | |
| 4834 | * auto-load.c (show_auto_load_cmd): Remove. |
| 4835 | (auto_load_show_cmdlist_get): Use add_show_prefix_cmd. |
| 4836 | * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd. |
| 4837 | (maintenance_print_arc_command): Remove. |
| 4838 | * tui/tui-win.c (tui_command): Remove. |
| 4839 | (tui_get_cmd_list): Use add_basic_prefix_cmd. |
| 4840 | * tui/tui-layout.c (tui_layout_command): Remove. |
| 4841 | (_initialize_tui_layout): Use add_basic_prefix_cmd. |
| 4842 | * python/python.c (user_set_python, user_show_python): Remove. |
| 4843 | (_initialize_python): Use add_basic_prefix_cmd, |
| 4844 | add_show_prefix_cmd. |
| 4845 | * guile/guile.c (set_guile_command, show_guile_command): Remove. |
| 4846 | (install_gdb_commands): Use add_basic_prefix_cmd, |
| 4847 | add_show_prefix_cmd. |
| 4848 | (info_guile_command): Remove. |
| 4849 | * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove. |
| 4850 | (_initialize_dwarf2_read): Use add_basic_prefix_cmd, |
| 4851 | add_show_prefix_cmd. |
| 4852 | * cli/cli-style.h (class cli_style_option) <add_setshow_commands>: |
| 4853 | Remove do_set and do_show parameters. |
| 4854 | * cli/cli-style.c (set_style, show_style): Remove. |
| 4855 | (_initialize_cli_style): Use add_basic_prefix_cmd, |
| 4856 | add_show_prefix_cmd. |
| 4857 | (cli_style_option::add_setshow_commands): Remove do_set and |
| 4858 | do_show parameters. |
| 4859 | (cli_style_option::add_setshow_commands): Use |
| 4860 | add_basic_prefix_cmd, add_show_prefix_cmd. |
| 4861 | (STYLE_ADD_SETSHOW_COMMANDS): Remove macro. |
| 4862 | (set_style_name): Remove. |
| 4863 | * cli/cli-dump.c (dump_command, append_command): Remove. |
| 4864 | (srec_dump_command, ihex_dump_command, verilog_dump_command) |
| 4865 | (tekhex_dump_command, binary_dump_command) |
| 4866 | (binary_append_command): Remove. |
| 4867 | (_initialize_cli_dump): Use add_basic_prefix_cmd. |
| 4868 | * windows-tdep.c (w32_prefix_command_valid): Remove global. |
| 4869 | (init_w32_command_list): Remove; move into ... |
| 4870 | (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd. |
| 4871 | * valprint.c (set_print, show_print, set_print_raw) |
| 4872 | (show_print_raw): Remove. |
| 4873 | (_initialize_valprint): Use add_basic_prefix_cmd, |
| 4874 | add_show_prefix_cmd. |
| 4875 | * typeprint.c (set_print_type, show_print_type): Remove. |
| 4876 | (_initialize_typeprint): Use add_basic_prefix_cmd, |
| 4877 | add_show_prefix_cmd. |
| 4878 | * record.c (set_record_command, show_record_command): Remove. |
| 4879 | (_initialize_record): Use add_basic_prefix_cmd, |
| 4880 | add_show_prefix_cmd. |
| 4881 | * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd, |
| 4882 | add_show_prefix_cmd. |
| 4883 | (info_command, show_command, set_debug, show_debug): Remove. |
| 4884 | * top.h (set_history, show_history): Don't declare. |
| 4885 | * top.c (set_history, show_history): Remove. |
| 4886 | * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd) |
| 4887 | (unset_tdesc_cmd): Remove. |
| 4888 | (_initialize_target_descriptions): Use add_basic_prefix_cmd, |
| 4889 | add_show_prefix_cmd. |
| 4890 | * symtab.c (info_module_command): Remove. |
| 4891 | (_initialize_symtab): Use add_basic_prefix_cmd. |
| 4892 | * symfile.c (overlay_command): Remove. |
| 4893 | (_initialize_symfile): Use add_basic_prefix_cmd. |
| 4894 | * sparc64-tdep.c (info_adi_command): Remove. |
| 4895 | (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd. |
| 4896 | * sh-tdep.c (show_sh_command, set_sh_command): Remove. |
| 4897 | (_initialize_sh_tdep): Use add_basic_prefix_cmd, |
| 4898 | add_show_prefix_cmd. |
| 4899 | * serial.c (serial_set_cmd, serial_show_cmd): Remove. |
| 4900 | (_initialize_serial): Use add_basic_prefix_cmd, |
| 4901 | add_show_prefix_cmd. |
| 4902 | * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove. |
| 4903 | (_initialize_ser_tcp): Use add_basic_prefix_cmd, |
| 4904 | add_show_prefix_cmd. |
| 4905 | * rs6000-tdep.c (set_powerpc_command, show_powerpc_command) |
| 4906 | (_initialize_rs6000_tdep): Use add_basic_prefix_cmd, |
| 4907 | add_show_prefix_cmd. |
| 4908 | * riscv-tdep.c (show_riscv_command, set_riscv_command) |
| 4909 | (show_debug_riscv_command, set_debug_riscv_command): Remove. |
| 4910 | (_initialize_riscv_tdep): Use add_basic_prefix_cmd, |
| 4911 | add_show_prefix_cmd. |
| 4912 | * remote.c (remote_command, set_remote_cmd): Remove. |
| 4913 | (_initialize_remote): Use add_basic_prefix_cmd. |
| 4914 | * record-full.c (set_record_full_command) |
| 4915 | (show_record_full_command): Remove. |
| 4916 | (_initialize_record_full): Use add_basic_prefix_cmd, |
| 4917 | add_show_prefix_cmd. |
| 4918 | * record-btrace.c (cmd_set_record_btrace) |
| 4919 | (cmd_show_record_btrace, cmd_set_record_btrace_bts) |
| 4920 | (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt) |
| 4921 | (cmd_show_record_btrace_pt): Remove. |
| 4922 | (_initialize_record_btrace): Use add_basic_prefix_cmd, |
| 4923 | add_show_prefix_cmd. |
| 4924 | * ravenscar-thread.c (set_ravenscar_command) |
| 4925 | (show_ravenscar_command): Remove. |
| 4926 | (_initialize_ravenscar): Use add_basic_prefix_cmd, |
| 4927 | add_show_prefix_cmd. |
| 4928 | * mips-tdep.c (show_mips_command, set_mips_command) |
| 4929 | (_initialize_mips_tdep): Use add_basic_prefix_cmd, |
| 4930 | add_show_prefix_cmd. |
| 4931 | * maint.c (maintenance_command, maintenance_info_command) |
| 4932 | (maintenance_check_command, maintenance_print_command) |
| 4933 | (maintenance_set_cmd, maintenance_show_cmd): Remove. |
| 4934 | (_initialize_maint_cmds): Use add_basic_prefix_cmd, |
| 4935 | add_show_prefix_cmd. |
| 4936 | (show_per_command_cmd): Remove. |
| 4937 | * maint-test-settings.c (maintenance_set_test_settings_cmd): |
| 4938 | Remove. |
| 4939 | (maintenance_show_test_settings_cmd): Remove. |
| 4940 | (_initialize_maint_test_settings): Use add_basic_prefix_cmd, |
| 4941 | add_show_prefix_cmd. |
| 4942 | * maint-test-options.c (maintenance_test_options_command): |
| 4943 | Remove. |
| 4944 | (_initialize_maint_test_options): Use add_basic_prefix_cmd. |
| 4945 | * macrocmd.c (macro_command): Remove |
| 4946 | (_initialize_macrocmd): Use add_basic_prefix_cmd. |
| 4947 | * language.c (set_check, show_check): Remove. |
| 4948 | (_initialize_language): Use add_basic_prefix_cmd, |
| 4949 | add_show_prefix_cmd. |
| 4950 | * infcmd.c (unset_command): Remove. |
| 4951 | (_initialize_infcmd): Use add_basic_prefix_cmd. |
| 4952 | * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove. |
| 4953 | (_initialize_i386_tdep): Use add_basic_prefix_cmd, |
| 4954 | add_show_prefix_cmd. |
| 4955 | * go32-nat.c (go32_info_dos_command): Remove. |
| 4956 | (_initialize_go32_nat): Use add_basic_prefix_cmd. |
| 4957 | * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd) |
| 4958 | (do_show_prefix_cmd, add_show_prefix_cmd): New functions. |
| 4959 | * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove. |
| 4960 | (_initialize_frame): Use add_basic_prefix_cmd, |
| 4961 | add_show_prefix_cmd. |
| 4962 | * dcache.c (set_dcache_command, show_dcache_command): Remove. |
| 4963 | (_initialize_dcache): Use add_basic_prefix_cmd, |
| 4964 | add_show_prefix_cmd. |
| 4965 | * cp-support.c (maint_cplus_command): Remove. |
| 4966 | (_initialize_cp_support): Use add_basic_prefix_cmd. |
| 4967 | * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd) |
| 4968 | (maint_btrace_show_cmd, maint_btrace_pt_set_cmd) |
| 4969 | (maint_btrace_pt_show_cmd, _initialize_btrace): Use |
| 4970 | add_basic_prefix_cmd, add_show_prefix_cmd. |
| 4971 | * breakpoint.c (save_command): Remove. |
| 4972 | (_initialize_breakpoint): Use add_basic_prefix_cmd. |
| 4973 | * arm-tdep.c (set_arm_command, show_arm_command): Remove. |
| 4974 | (_initialize_arm_tdep): Use add_basic_prefix_cmd, |
| 4975 | add_show_prefix_cmd. |
| 4976 | * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd) |
| 4977 | (set_ada_command, show_ada_command): Remove. |
| 4978 | (_initialize_ada_language): Use add_basic_prefix_cmd, |
| 4979 | add_show_prefix_cmd. |
| 4980 | * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare. |
| 4981 | |
| 4982 | 2020-04-16 Kamil Rytarowski <n54@gmx.com> |
| 4983 | |
| 4984 | * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove. |
| 4985 | * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise. |
| 4986 | |
| 4987 | 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca> |
| 4988 | |
| 4989 | * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to |
| 4990 | warning messages. |
| 4991 | |
| 4992 | 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca> |
| 4993 | |
| 4994 | * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where |
| 4995 | import table is not at beginning of .idata section. |
| 4996 | |
| 4997 | 2020-04-16 Pedro Alves <palves@redhat.com> |
| 4998 | |
| 4999 | * inferior.c (delete_inferior): Use delete operator directly |
| 5000 | instead of delete_program_space. |
| 5001 | * progspace.c (add_program_space): New, factored out from |
| 5002 | program_space::program_space. |
| 5003 | (remove_program_space): New, factored out from |
| 5004 | delete_program_space. |
| 5005 | (program_space::program_space): Remove intro comment. Rewrite. |
| 5006 | (program_space::~program_space): Remove intro comment. Call |
| 5007 | remove_program_space. |
| 5008 | (delete_program_space): Delete. |
| 5009 | * progspace.h (program_space::program_space): Make explicit. Move |
| 5010 | intro comment here, adjusted. |
| 5011 | (program_space::~program_space): Move intro comment here, |
| 5012 | adjusted. |
| 5013 | (delete_program_space): Remove. |
| 5014 | |
| 5015 | 2020-04-16 Tom Tromey <tromey@adacore.com> |
| 5016 | |
| 5017 | * windows-nat.c (windows_nat::handle_access_violation): New |
| 5018 | function. |
| 5019 | * nat/windows-nat.h (handle_access_violation): Declare. |
| 5020 | * nat/windows-nat.c (handle_exception): Move Cygwin code to |
| 5021 | windows-nat.c. Call handle_access_violation. |
| 5022 | |
| 5023 | 2020-04-16 Tom de Vries <tdevries@suse.de> |
| 5024 | |
| 5025 | PR symtab/25791 |
| 5026 | * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for |
| 5027 | CUs without psymtab. |
| 5028 | |
| 5029 | 2020-04-16 Kevin Buettner <kevinb@redhat.com> |
| 5030 | |
| 5031 | * python/python.c (do_start_initialization): Don't call |
| 5032 | PyEval_InitThreads for Python 3.9 and beyond. |
| 5033 | |
| 5034 | 2020-04-15 Kamil Rytarowski <n54@gmx.com> |
| 5035 | |
| 5036 | * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to |
| 5037 | thread functions. |
| 5038 | (obsd_nat_target::wait): Likewise. |
| 5039 | |
| 5040 | 2020-04-15 Tom Tromey <tromey@adacore.com> |
| 5041 | |
| 5042 | * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM) |
| 5043 | (DEBUG_EXCEPT): Use debug_printf. |
| 5044 | |
| 5045 | 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com> |
| 5046 | |
| 5047 | * completer.c (class completion_tracker::completion_hash_entry) |
| 5048 | <hash_name>: New member function. |
| 5049 | (completion_tracker::discard_completions): New callback to hash a |
| 5050 | completion_hash_entry, pass this to htab_create_alloc. |
| 5051 | |
| 5052 | 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk> |
| 5053 | |
| 5054 | * windows-nat.c (windows_make_so): Warn rather than stopping with |
| 5055 | an error if realpath() fails. |
| 5056 | |
| 5057 | 2020-04-14 Kamil Rytarowski <n54@gmx.com> |
| 5058 | |
| 5059 | * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New. |
| 5060 | (nbsd_nat_target::info_proc): Add do_status. |
| 5061 | |
| 5062 | 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca> |
| 5063 | Tom de Vries <tdevries@suse.de> |
| 5064 | |
| 5065 | PR symtab/25718 |
| 5066 | * psympriv.h (struct partial_symtab::read_symtab) |
| 5067 | (struct partial_symtab::expand_psymtab) |
| 5068 | (struct partial_symtab::read_dependencies): Update comments. |
| 5069 | * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call |
| 5070 | read_symtab for includer. |
| 5071 | (struct dwarf2_include_psymtab::expand_psymtab): Assert false. |
| 5072 | (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer. |
| 5073 | (struct dwarf2_include_psymtab::m_readin): Remove. |
| 5074 | (struct dwarf2_include_psymtab::includer): New member function. |
| 5075 | (dwarf2_psymtab::expand_psymtab): Assert !readin. |
| 5076 | |
| 5077 | 2020-04-14 Tom de Vries <tdevries@suse.de> |
| 5078 | |
| 5079 | PR symtab/25720 |
| 5080 | * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching |
| 5081 | with NULL symbol_matcher and lookup_name. |
| 5082 | * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher |
| 5083 | and lookup_name. |
| 5084 | * dwarf2/read.c (dw2_expand_symtabs_matching) |
| 5085 | (dw2_debug_names_expand_symtabs_matching): Same. |
| 5086 | * symfile.h (struct quick_symbol_functions::expand_symtabs_matching): |
| 5087 | Make lookup_name a pointer. Update comment. |
| 5088 | * symtab.c (global_symbol_searcher::expand_symtabs): Handle |
| 5089 | lookup_name being a pointer. |
| 5090 | * symfile.c (expand_symtabs_matching): Same. |
| 5091 | * symfile-debug.c (debug_qf_expand_symtabs_matching): Same. |
| 5092 | * linespec.c (iterate_over_all_matching_symtabs): Same. |
| 5093 | |
| 5094 | 2020-04-13 Tom Tromey <tom@tromey.com> |
| 5095 | |
| 5096 | * run-on-main-thread.c: Update include. |
| 5097 | * unittests/main-thread-selftests.c: Update include. |
| 5098 | * tui/tui-win.c: Update include. |
| 5099 | * tui/tui-io.c: Update include. |
| 5100 | * tui/tui-interp.c: Update include. |
| 5101 | * tui/tui-hooks.c: Update include. |
| 5102 | * top.h: Update include. |
| 5103 | * top.c: Update include. |
| 5104 | * ser-base.c: Update include. |
| 5105 | * remote.c: Update include. |
| 5106 | * remote-notif.c: Update include. |
| 5107 | * remote-fileio.c: Update include. |
| 5108 | * record-full.c: Update include. |
| 5109 | * record-btrace.c: Update include. |
| 5110 | * python/python.c: Update include. |
| 5111 | * posix-hdep.c: Update include. |
| 5112 | * mingw-hdep.c: Update include. |
| 5113 | * mi/mi-main.c: Update include. |
| 5114 | * mi/mi-interp.c: Update include. |
| 5115 | * main.c: Update include. |
| 5116 | * linux-nat.c: Update include. |
| 5117 | * interps.c: Update include. |
| 5118 | * infrun.c: Update include. |
| 5119 | * inf-loop.c: Update include. |
| 5120 | * event-top.c: Update include. |
| 5121 | * event-loop.c: Move to ../gdbsupport/. |
| 5122 | * event-loop.h: Move to ../gdbsupport/. |
| 5123 | * async-event.h: Update include. |
| 5124 | * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update. |
| 5125 | |
| 5126 | 2020-04-13 Tom Tromey <tom@tromey.com> |
| 5127 | |
| 5128 | * tui/tui-win.c: Include async-event.h. |
| 5129 | * remote.c: Include async-event.h. |
| 5130 | * remote-notif.c: Include async-event.h. |
| 5131 | * record-full.c: Include async-event.h. |
| 5132 | * record-btrace.c: Include async-event.h. |
| 5133 | * infrun.c: Include async-event.h. |
| 5134 | * event-top.c: Include async-event.h. |
| 5135 | * event-loop.h: Move some declarations to async-event.h. |
| 5136 | * event-loop.c: Don't include ser-event.h or top.h. Move some |
| 5137 | code to async-event.c. |
| 5138 | * async-event.h: New file. |
| 5139 | * async-event.c: New file. |
| 5140 | * Makefile.in (COMMON_SFILES): Add async-event.c. |
| 5141 | (HFILES_NO_SRCDIR): Add async-event.h. |
| 5142 | |
| 5143 | 2020-04-13 Tom Tromey <tom@tromey.com> |
| 5144 | |
| 5145 | * utils.c (flush_streams): New function. |
| 5146 | * event-loop.c (gdb_wait_for_event): Call flush_streams. |
| 5147 | |
| 5148 | 2020-04-13 Tom Tromey <tom@tromey.com> |
| 5149 | |
| 5150 | * event-loop.c (handle_file_event): Use warning, not |
| 5151 | printf_unfiltered. |
| 5152 | |
| 5153 | 2020-04-13 Tom Tromey <tom@tromey.com> |
| 5154 | |
| 5155 | * event-loop.c: Include <chrono>. |
| 5156 | |
| 5157 | 2020-04-13 Tom Tromey <tom@tromey.com> |
| 5158 | |
| 5159 | * gdb_select.h: Move to ../gdbsupport/. |
| 5160 | * event-loop.c: Update include path. |
| 5161 | * top.c: Update include path. |
| 5162 | * ser-base.c: Update include path. |
| 5163 | * ui-file.c: Update include path. |
| 5164 | * ser-tcp.c: Update include path. |
| 5165 | * guile/scm-ports.c: Update include path. |
| 5166 | * posix-hdep.c: Update include path. |
| 5167 | * ser-unix.c: Update include path. |
| 5168 | * gdb_usleep.c: Update include path. |
| 5169 | * mingw-hdep.c: Update include path. |
| 5170 | * inflow.c: Update include path. |
| 5171 | * infrun.c: Update include path. |
| 5172 | * event-top.c: Update include path. |
| 5173 | |
| 5174 | 2020-04-13 Tom Tromey <tom@tromey.com> |
| 5175 | |
| 5176 | * configure: Rebuild. |
| 5177 | * configure.ac: Remove checks that are now in GDB_AC_COMMON. |
| 5178 | |
| 5179 | 2020-04-13 Tom Tromey <tom@tromey.com> |
| 5180 | |
| 5181 | * event-loop.h (start_event_loop): Don't declare. |
| 5182 | * event-loop.c (start_event_loop): Move... |
| 5183 | * main.c (start_event_loop): ...here. Now static. |
| 5184 | |
| 5185 | 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net> |
| 5186 | |
| 5187 | * MAINTAINERS: Update my email address. |
| 5188 | |
| 5189 | 2020-04-12 Kamil Rytarowski <n54@gmx.com> |
| 5190 | |
| 5191 | * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and |
| 5192 | IP_ALL. |
| 5193 | |
| 5194 | 2020-04-12 Kamil Rytarowski <n54@gmx.com> |
| 5195 | |
| 5196 | * nbsd-nat.c (nbsd_pid_to_cmdline): Add. |
| 5197 | (nbsd_nat_target::info_proc): Add do_cmdline. |
| 5198 | |
| 5199 | 2020-04-12 Kamil Rytarowski <n54@gmx.com> |
| 5200 | |
| 5201 | * nbsd-nat.c (nbsd_pid_to_cwd): Add. |
| 5202 | (nbsd_nat_target::info_proc): Add do_cwd. |
| 5203 | |
| 5204 | 2020-04-12 Kamil Rytarowski <n54@gmx.com> |
| 5205 | |
| 5206 | * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe. |
| 5207 | |
| 5208 | 2020-04-11 Kamil Rytarowski <n54@gmx.com> |
| 5209 | |
| 5210 | * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h". |
| 5211 | * nbsd-nat.c (nbsd_nat_target::find_memory_regions) |
| 5212 | (nbsd_nat_target::info_proc): New functions. |
| 5213 | * nbsd-nat.c (kinfo_get_vmmap): New function. |
| 5214 | * nbsd-nat.c (nbsd_nat_target::info_proc) Use |
| 5215 | nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry. |
| 5216 | * nbsd-tdep.c (nbsd_info_proc_mappings_header) |
| 5217 | (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New |
| 5218 | functions. |
| 5219 | * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE) |
| 5220 | (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW) |
| 5221 | (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP) |
| 5222 | (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP) |
| 5223 | (KINFO_VME_FLAG_GROWS_DOWN): New. |
| 5224 | |
| 5225 | 2020-04-10 Artur Shepilko <nomadbyte@gmail.com> |
| 5226 | |
| 5227 | * utils.c (copy_bitwise): Use unsigned 0 constant as operand of |
| 5228 | bit shift. |
| 5229 | |
| 5230 | 2020-04-10 Tom Tromey <tromey@adacore.com> |
| 5231 | |
| 5232 | * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE. |
| 5233 | |
| 5234 | 2020-04-10 Tom Tromey <tromey@adacore.com> |
| 5235 | |
| 5236 | * symtab.c (get_symbol_address, get_msymbol_address): Skip |
| 5237 | separate debug files. |
| 5238 | |
| 5239 | 2020-04-10 Hannes Domani <ssbssa@yahoo.de> |
| 5240 | |
| 5241 | * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): |
| 5242 | Move to... |
| 5243 | * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): |
| 5244 | ... here. |
| 5245 | * windows-nat.c (windows_nat_target::get_windows_debug_event): |
| 5246 | Check for STATUS_WX86_BREAKPOINT. |
| 5247 | (windows_nat_target::wait): Same. |
| 5248 | |
| 5249 | 2020-04-10 Tom de Vries <tdevries@suse.de> |
| 5250 | |
| 5251 | PR cli/25808 |
| 5252 | * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False. |
| 5253 | |
| 5254 | 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca> |
| 5255 | |
| 5256 | * MAINTAINERS (Global Maintainers): Add Tom de Vries. |
| 5257 | (Write After Approval): Remove Tom de Vries. |
| 5258 | |
| 5259 | 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de> |
| 5260 | |
| 5261 | revert partially: |
| 5262 | 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de> |
| 5263 | |
| 5264 | * buildsym.c (record_line): Fix undefined behavior and preserve |
| 5265 | lines at eof. |
| 5266 | |
| 5267 | 2020-04-09 Kamil Rytarowski <n54@gmx.com> |
| 5268 | |
| 5269 | * auxv.h (svr4_auxv_parse): New. |
| 5270 | * auxv.c (default_auxv_parse): Split into default_auxv_parse |
| 5271 | and generic_auxv_parse. |
| 5272 | (svr4_auxv_parse): Add. |
| 5273 | * obsd-tdep.c: Include "auxv.h". |
| 5274 | (obsd_auxv_parse): Remove. |
| 5275 | (obsd_init_abi): Remove comment. |
| 5276 | (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument |
| 5277 | from `obsd_auxv_parse' to `svr4_auxv_parse'. |
| 5278 | * nbsd-tdep.c: Include "auxv.h". |
| 5279 | (nbsd_init_abi): Call set_gdbarch_auxv_parse. |
| 5280 | |
| 5281 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
| 5282 | |
| 5283 | * nat/windows-nat.h (last_wait_event): Don't declare. |
| 5284 | (wait_for_debug_event): Update comment. |
| 5285 | * nat/windows-nat.c (last_wait_event): Now static. |
| 5286 | |
| 5287 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
| 5288 | |
| 5289 | * windows-nat.c (wait_for_debug_event): Move to |
| 5290 | nat/windows-nat.c. |
| 5291 | * nat/windows-nat.h (wait_for_debug_event): Declare. |
| 5292 | * nat/windows-nat.c (wait_for_debug_event): Move from |
| 5293 | windows-nat.c. No longer static. |
| 5294 | |
| 5295 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
| 5296 | |
| 5297 | * windows-nat.c (get_windows_debug_event): Use |
| 5298 | fetch_pending_stop. |
| 5299 | * nat/windows-nat.h (fetch_pending_stop): Declare. |
| 5300 | * nat/windows-nat.c (fetch_pending_stop): New function. |
| 5301 | |
| 5302 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
| 5303 | |
| 5304 | * windows-nat.c (windows_continue): Use matching_pending_stop and |
| 5305 | continue_last_debug_event. |
| 5306 | * nat/windows-nat.h (matching_pending_stop) |
| 5307 | (continue_last_debug_event): Declare. |
| 5308 | * nat/windows-nat.c (DEBUG_EVENTS): New define. |
| 5309 | (matching_pending_stop, continue_last_debug_event): New |
| 5310 | functions. |
| 5311 | |
| 5312 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
| 5313 | |
| 5314 | * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c. |
| 5315 | (handle_exception_result): Move to nat/windows-nat.h. |
| 5316 | (DEBUG_EXCEPTION_SIMPLE): Remove. |
| 5317 | (windows_nat::handle_ms_vc_exception): New function. |
| 5318 | (handle_exception): Move to nat/windows-nat.c. |
| 5319 | (get_windows_debug_event): Update. |
| 5320 | (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to |
| 5321 | nat/windows-nat.c. |
| 5322 | * nat/windows-nat.h (handle_ms_vc_exception): Declare. |
| 5323 | (handle_exception_result): Move from windows-nat.c. |
| 5324 | (handle_exception): Declare. |
| 5325 | * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception) |
| 5326 | (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from |
| 5327 | windows-nat.c. |
| 5328 | |
| 5329 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
| 5330 | |
| 5331 | * windows-nat.c (exception_count, event_count): Remove. |
| 5332 | (handle_exception, get_windows_debug_event) |
| 5333 | (do_initial_windows_stuff): Update. |
| 5334 | |
| 5335 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
| 5336 | |
| 5337 | * windows-nat.c (windows_nat::handle_load_dll) |
| 5338 | (windows_nat::handle_unload_dll): Rename. No longer static. |
| 5339 | * nat/windows-nat.h (handle_load_dll, handle_unload_dll): |
| 5340 | Declare. |
| 5341 | |
| 5342 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
| 5343 | |
| 5344 | * complaints.h (stop_whining): Declare at top-level. |
| 5345 | (complaint): Don't declare stop_whining. |
| 5346 | |
| 5347 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
| 5348 | |
| 5349 | * windows-nat.c (windows_nat::handle_output_debug_string): |
| 5350 | Rename. No longer static. |
| 5351 | * nat/windows-nat.h (handle_output_debug_string): Declare. |
| 5352 | |
| 5353 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
| 5354 | |
| 5355 | * windows-nat.c (current_process_handle, current_process_id) |
| 5356 | (main_thread_id, last_sig, current_event, last_wait_event) |
| 5357 | (current_windows_thread, desired_stop_thread_id, pending_stops) |
| 5358 | (struct pending_stop, siginfo_er): Move to nat/windows-nat.c. |
| 5359 | (display_selectors, fake_create_process) |
| 5360 | (get_windows_debug_event): Update. |
| 5361 | * nat/windows-nat.h (current_process_handle, current_process_id) |
| 5362 | (main_thread_id, last_sig, current_event, last_wait_event) |
| 5363 | (current_windows_thread, desired_stop_thread_id, pending_stops) |
| 5364 | (struct pending_stop, siginfo_er): Move from windows-nat.c. |
| 5365 | * nat/windows-nat.c (current_process_handle, current_process_id) |
| 5366 | (main_thread_id, last_sig, current_event, last_wait_event) |
| 5367 | (current_windows_thread, desired_stop_thread_id, pending_stops) |
| 5368 | (siginfo_er): New globals. Move from windows-nat.c. |
| 5369 | |
| 5370 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
| 5371 | |
| 5372 | * windows-nat.c (get_image_name): Move to nat/windows-nat.c. |
| 5373 | (handle_load_dll): Update. |
| 5374 | * nat/windows-nat.c (get_image_name): Move from windows-nat.c. |
| 5375 | |
| 5376 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
| 5377 | |
| 5378 | * windows-nat.c (enum thread_disposition_type): Move to |
| 5379 | nat/windows-nat.h. |
| 5380 | (windows_nat::thread_rec): Rename from thread_rec. No longer |
| 5381 | static. |
| 5382 | (windows_add_thread, windows_nat_target::fetch_registers) |
| 5383 | (windows_nat_target::store_registers, handle_exception) |
| 5384 | (windows_nat_target::resume, get_windows_debug_event) |
| 5385 | (windows_nat_target::get_tib_address) |
| 5386 | (windows_nat_target::thread_name) |
| 5387 | (windows_nat_target::thread_alive): Update. |
| 5388 | * nat/windows-nat.h (enum thread_disposition_type): Move from |
| 5389 | windows-nat.c. |
| 5390 | (thread_rec): Declare. |
| 5391 | |
| 5392 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
| 5393 | |
| 5394 | * windows-nat.c: Add "using namespace". |
| 5395 | * nat/windows-nat.h: Wrap contents in windows_nat namespace. |
| 5396 | * nat/windows-nat.c: Wrap contents in windows_nat namespace. |
| 5397 | |
| 5398 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
| 5399 | |
| 5400 | * nat/windows-nat.h (struct windows_thread_info): Declare |
| 5401 | destructor. |
| 5402 | * nat/windows-nat.c (~windows_thread_info): New. |
| 5403 | |
| 5404 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
| 5405 | |
| 5406 | PR gdb/22992 |
| 5407 | * windows-nat.c (current_event): Update comment. |
| 5408 | (last_wait_event, desired_stop_thread_id): New globals. |
| 5409 | (struct pending_stop): New. |
| 5410 | (pending_stops): New global. |
| 5411 | (windows_nat_target) <stopped_by_sw_breakpoint> |
| 5412 | <supports_stopped_by_sw_breakpoint>: New methods. |
| 5413 | (windows_fetch_one_register): Add assertions. Adjust PC. |
| 5414 | (windows_continue): Handle pending stops. Suspend other threads |
| 5415 | when stepping. Use last_wait_event |
| 5416 | (wait_for_debug_event): New function. |
| 5417 | (get_windows_debug_event): Use wait_for_debug_event. Handle |
| 5418 | pending stops. Queue spurious stops. |
| 5419 | (windows_nat_target::wait): Set stopped_at_software_breakpoint. |
| 5420 | (windows_nat_target::kill): Use wait_for_debug_event. |
| 5421 | * nat/windows-nat.h (struct windows_thread_info) |
| 5422 | <stopped_at_software_breakpoint>: New field. |
| 5423 | * nat/windows-nat.c (windows_thread_info::resume): Clear |
| 5424 | stopped_at_software_breakpoint. |
| 5425 | |
| 5426 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
| 5427 | |
| 5428 | * windows-nat.c (enum thread_disposition_type): New. |
| 5429 | (thread_rec): Replace "get_context" parameter with "disposition"; |
| 5430 | change type. |
| 5431 | (windows_add_thread, windows_nat_target::fetch_registers) |
| 5432 | (windows_nat_target::store_registers, handle_exception) |
| 5433 | (windows_nat_target::resume, get_windows_debug_event) |
| 5434 | (windows_nat_target::get_tib_address) |
| 5435 | (windows_nat_target::thread_name) |
| 5436 | (windows_nat_target::thread_alive): Update. |
| 5437 | |
| 5438 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
| 5439 | |
| 5440 | * windows-nat.c (thread_rec): Use windows_thread_info::suspend. |
| 5441 | (windows_continue): Use windows_continue::resume. |
| 5442 | * nat/windows-nat.h (struct windows_thread_info) <suspend, |
| 5443 | resume>: Declare new methods. |
| 5444 | * nat/windows-nat.c: New file. |
| 5445 | * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed. |
| 5446 | |
| 5447 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
| 5448 | |
| 5449 | * windows-nat.c (windows_add_thread, windows_delete_thread) |
| 5450 | (windows_nat_target::fetch_registers) |
| 5451 | (windows_nat_target::store_registers, fake_create_process) |
| 5452 | (windows_nat_target::resume, windows_nat_target::resume) |
| 5453 | (get_windows_debug_event, windows_nat_target::wait) |
| 5454 | (windows_nat_target::pid_to_str) |
| 5455 | (windows_nat_target::get_tib_address) |
| 5456 | (windows_nat_target::get_ada_task_ptid) |
| 5457 | (windows_nat_target::thread_name) |
| 5458 | (windows_nat_target::thread_alive): Use lwp, not tid. |
| 5459 | |
| 5460 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
| 5461 | |
| 5462 | * windows-nat.c (handle_exception) |
| 5463 | (windows_nat_target::thread_name): Update. |
| 5464 | * nat/windows-nat.h (windows_thread_info): Remove destructor. |
| 5465 | <name>: Now unique_xmalloc_ptr. |
| 5466 | |
| 5467 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
| 5468 | |
| 5469 | * windows-nat.c (thread_rec) |
| 5470 | (windows_nat_target::fetch_registers): Update. |
| 5471 | * nat/windows-nat.h (struct windows_thread_info) <suspended>: |
| 5472 | Update comment. |
| 5473 | <debug_registers_changed, reload_context>: Now bool. |
| 5474 | |
| 5475 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
| 5476 | |
| 5477 | * windows-nat.c (windows_add_thread): Use new. |
| 5478 | (windows_init_thread_list, windows_delete_thread): Use delete. |
| 5479 | (get_windows_debug_event): Update. |
| 5480 | * nat/windows-nat.h (struct windows_thread_info): Add constructor, |
| 5481 | destructor, and initializers. |
| 5482 | |
| 5483 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
| 5484 | |
| 5485 | * windows-nat.c (struct windows_thread_info): Remove. |
| 5486 | * nat/windows-nat.h: New file. |
| 5487 | |
| 5488 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
| 5489 | |
| 5490 | * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id". |
| 5491 | (thread_rec, windows_add_thread, windows_delete_thread) |
| 5492 | (windows_continue): Update. |
| 5493 | |
| 5494 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
| 5495 | |
| 5496 | * windows-nat.c (struct windows_thread_info): Remove typedef. |
| 5497 | (thread_head): Remove. |
| 5498 | (thread_list): New global. |
| 5499 | (thread_rec, windows_add_thread, windows_init_thread_list) |
| 5500 | (windows_delete_thread, windows_continue): Update. |
| 5501 | |
| 5502 | 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca> |
| 5503 | |
| 5504 | * windows-tdep.h (windows_init_abi): Add comment. |
| 5505 | (cygwin_init_abi): New declaration. |
| 5506 | * windows-tdep.c: Split signal enumeration in two, one for |
| 5507 | Windows and one for Cygwin. |
| 5508 | (windows_gdb_signal_to_target): Only deal with signal of the |
| 5509 | Windows OS ABI. |
| 5510 | (cygwin_gdb_signal_to_target): New function. |
| 5511 | (windows_init_abi): Rename to windows_init_abi_common, don't set |
| 5512 | gdb_signal_to_target gdbarch method. Add new new function with |
| 5513 | this name. |
| 5514 | (cygwin_init_abi): New function. |
| 5515 | * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add |
| 5516 | comment. Don't call windows_init_abi. |
| 5517 | (amd64_windows_init_abi): Add comment, call windows_init_abi. |
| 5518 | (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi. |
| 5519 | * i386-windows-tdep.c (i386_windows_init_abi): Rename to |
| 5520 | i386_windows_init_abi_common, don't call windows_init_abi. Add |
| 5521 | a new function of this name. |
| 5522 | (i386_cygwin_init_abi): New function. |
| 5523 | (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to |
| 5524 | OS ABI Cygwin. |
| 5525 | |
| 5526 | 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca> |
| 5527 | |
| 5528 | * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile |
| 5529 | parameter.c. |
| 5530 | (dwarf2_read_gdb_index): Update. |
| 5531 | |
| 5532 | 2020-04-07 Kamil Rytarowski <n54@gmx.com> |
| 5533 | |
| 5534 | * nbsd-tdep.c: Include "objfiles.h". |
| 5535 | (nbsd_skip_solib_resolver): New. |
| 5536 | (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver(). |
| 5537 | |
| 5538 | 2020-04-07 Nitika Achra <Nitika.Achra@amd.com> |
| 5539 | |
| 5540 | * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_ |
| 5541 | addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair |
| 5542 | with DW_LLE_base_addressx are being emitted in DWARFv5. |
| 5543 | Add the newly added kind DW_LOC_OFFSET_PAIR also. |
| 5544 | The length of location description is an unsigned ULEB integer in DWARFv5 instead of |
| 5545 | unsigned integer. |
| 5546 | |
| 5547 | 2020-04-07 Nitika Achra <Nitika.Achra@amd.com> |
| 5548 | |
| 5549 | * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR. |
| 5550 | (dwarf2_find_location_expression): Call the function decode_debug_loclists_ |
| 5551 | addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair |
| 5552 | with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*. |
| 5553 | Add applicable base address if the entry is DW_LLE_offset_pair from DWO. |
| 5554 | (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of |
| 5555 | DEBUG_LOC_START_END in case of DW_LLE_offset_pair. |
| 5556 | |
| 5557 | |
| 5558 | 2020-04-07 Nitika Achra <Nitika.Achra@amd.com> |
| 5559 | |
| 5560 | * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function. |
| 5561 | (read_loclist_index): New function definition. |
| 5562 | (lookup_loclist_base): New function definition. |
| 5563 | (read_loclist_header): New function definition. |
| 5564 | (dwarf2_cu): Add loclist_base and loclist_header field. |
| 5565 | (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section. |
| 5566 | (read_full_die_1): Read the value of DW_AT_loclists_base. |
| 5567 | (read_attribute_reprocess): Handle DW_FORM_loclistx. |
| 5568 | (read_attribute_value): Handle DW_FORM_loclistx. |
| 5569 | (skip_one_die): Handle DW_FORM_loclistx. |
| 5570 | (loclist_header): New structure declaration. |
| 5571 | * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx. |
| 5572 | |
| 5573 | 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca> |
| 5574 | |
| 5575 | * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters |
| 5576 | constructor. Remove `addr` parameter from other constructor and |
| 5577 | add `per_cu` parameter. |
| 5578 | * dwarf2/read.c (create_partial_symtab): Update. |
| 5579 | |
| 5580 | 2020-04-07 Tom de Vries <tdevries@suse.de> |
| 5581 | |
| 5582 | PR symtab/25796 |
| 5583 | * dwarf2/read.c (can_have_DW_AT_const_value_p): New function. |
| 5584 | (partial_die_info::fixup): Inherit has_const_value. |
| 5585 | |
| 5586 | 2020-04-07 Tom de Vries <tdevries@suse.de> |
| 5587 | |
| 5588 | * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK |
| 5589 | symbols without address. |
| 5590 | |
| 5591 | 2020-04-06 Kamil Rytarowski <n54@gmx.com> |
| 5592 | |
| 5593 | * nbsd-nat.h (struct thread_info): Add forward declaration. |
| 5594 | (nbsd_nat_target::thread_alive): Add. |
| 5595 | (nbsd_nat_target::thread_name): Likewise. |
| 5596 | (nbsd_nat_target::update_thread_list): Likewise. |
| 5597 | (update_thread_list::post_attach): Likewise. |
| 5598 | (post_attach::pid_to_str): Likewise. |
| 5599 | * nbsd-nat.c: Include "gdbthread.h" and "inferior.h". |
| 5600 | (nbsd_thread_lister): Add. |
| 5601 | (nbsd_nat_target::thread_alive): Likewise. |
| 5602 | (nbsd_nat_target::thread_name): Likewise. |
| 5603 | (nbsd_add_threads): Likewise. |
| 5604 | (update_thread_list::post_attach): Likewise. |
| 5605 | (nbsd_nat_target::update_thread_list): Likewise. |
| 5606 | (post_attach::pid_to_str): Likewise. |
| 5607 | |
| 5608 | 2020-04-06 Tom Tromey <tromey@adacore.com> |
| 5609 | |
| 5610 | * ada-valprint.c (print_variant_part): Extract the variant field. |
| 5611 | (print_field_values): Use the field as the outer value when |
| 5612 | recursing. |
| 5613 | |
| 5614 | 2020-04-06 Tom Tromey <tromey@adacore.com> |
| 5615 | |
| 5616 | * sh-nbsd-tdep.c: Include nbsd-tdep.h. |
| 5617 | * ppc-nbsd-tdep.c: Include nbsd-tdep.h. |
| 5618 | * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";". |
| 5619 | * arm-nbsd-tdep.c: Include nbsd-tdep.h. |
| 5620 | * hppa-nbsd-tdep.c: Include nbsd-tdep.h. |
| 5621 | |
| 5622 | 2020-04-06 Tom Tromey <tromey@adacore.com> |
| 5623 | |
| 5624 | * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle |
| 5625 | TYPE_CODE_ERROR. |
| 5626 | |
| 5627 | 2020-04-06 Kamil Rytarowski <n54@gmx.com> |
| 5628 | |
| 5629 | * nbsd-tdep.c: Include "gdbarch.h". |
| 5630 | Define enum with NetBSD signal numbers. |
| 5631 | (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New. |
| 5632 | * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi(). |
| 5633 | * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise. |
| 5634 | * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise. |
| 5635 | * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise. |
| 5636 | * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise. |
| 5637 | * mips-nbsd-tdep.c (nbsd_init_abi): Likewise. |
| 5638 | * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise. |
| 5639 | * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise. |
| 5640 | * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise. |
| 5641 | * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise. |
| 5642 | * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise. |
| 5643 | |
| 5644 | 2020-04-03 Hannes Domani <ssbssa@yahoo.de> |
| 5645 | |
| 5646 | PR gdb/25325 |
| 5647 | * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes. |
| 5648 | |
| 5649 | 2020-04-03 Tom Tromey <tromey@adacore.com> |
| 5650 | |
| 5651 | * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>: |
| 5652 | Read constant block. |
| 5653 | |
| 5654 | 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca> |
| 5655 | |
| 5656 | * gdb_bfd.h: Include gdbsupport/byte-vector.h. |
| 5657 | (gdb_bfd_get_full_section_contents): New declaration. |
| 5658 | * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function. |
| 5659 | * windows-tdep.c (is_linked_with_cygwin_dll): Use |
| 5660 | gdb_bfd_get_full_section_contents. |
| 5661 | |
| 5662 | 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca> |
| 5663 | |
| 5664 | * exec.c (build_section_table): Replace internal_error with |
| 5665 | gdb_assert. |
| 5666 | (section_table_xfer_memory_partial): Likewise. |
| 5667 | * mdebugread.c (parse_partial_symbols): Likewise. |
| 5668 | * psymtab.c (lookup_partial_symbol): Likewise. |
| 5669 | * utils.c (wrap_here): Likewise. |
| 5670 | |
| 5671 | 2020-04-02 Tom Tromey <tromey@adacore.com> |
| 5672 | |
| 5673 | * f-lang.c (build_fortran_types): Use arch_type to initialize |
| 5674 | builtin_complex_s32 in the TYPE_CODE_ERROR case. |
| 5675 | |
| 5676 | 2020-04-02 Tom Tromey <tromey@adacore.com> |
| 5677 | |
| 5678 | * dwarf2/read.c (partial_die_info::read): Do not create a vector |
| 5679 | of attributes. |
| 5680 | |
| 5681 | 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com> |
| 5682 | Bernd Edlinger <bernd.edlinger@hotmail.de> |
| 5683 | Tom Tromey <tromey@adacore.com> |
| 5684 | |
| 5685 | * buildsym.c (buildsym_compunit::record_line): Remove |
| 5686 | deduplication code. |
| 5687 | |
| 5688 | 2020-04-02 Tom de Vries <tdevries@suse.de> |
| 5689 | |
| 5690 | PR ada/24671 |
| 5691 | * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow. |
| 5692 | |
| 5693 | 2020-04-02 Tom de Vries <tdevries@suse.de> |
| 5694 | |
| 5695 | * dwarf2/read.c (dwarf2_gdb_index_functions, |
| 5696 | dwarf2_debug_names_functions): Init lookup_global_symbol_language with |
| 5697 | NULL. |
| 5698 | * psymtab.c (psym_lookup_global_symbol_language): New function. |
| 5699 | (psym_functions): Init psym_lookup_global_symbol_language with |
| 5700 | psym_lookup_global_symbol_language. |
| 5701 | * symfile-debug.c (debug_sym_quick_functions): Init |
| 5702 | lookup_global_symbol_language with NULL. |
| 5703 | * symfile.c (set_initial_language): Remove fixme comment. |
| 5704 | * symfile.h (struct quick_symbol_functions): Add |
| 5705 | lookup_global_symbol_language. |
| 5706 | * symtab.c (find_quick_global_symbol_language): New function. |
| 5707 | (find_main_name): Use find_quick_global_symbol_language. |
| 5708 | |
| 5709 | 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca> |
| 5710 | |
| 5711 | * windows-tdep.c (is_linked_with_cygwin_dll): Fix style. |
| 5712 | |
| 5713 | 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de> |
| 5714 | |
| 5715 | * buildsym.c (record_line): Fix undefined behavior and preserve |
| 5716 | lines at eof. |
| 5717 | |
| 5718 | 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de> |
| 5719 | |
| 5720 | * buildsym.c (record_line): Fix the resizing condition. |
| 5721 | |
| 5722 | 2020-04-01 Tom Tromey <tom@tromey.com> |
| 5723 | |
| 5724 | * value.h (value_literal_complex): Add comment. |
| 5725 | * valops.c (value_literal_complex): Refer to value.h. |
| 5726 | |
| 5727 | 2020-04-01 Tom Tromey <tom@tromey.com> |
| 5728 | |
| 5729 | * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens. |
| 5730 | (scalar_type): New rule, from typebase. |
| 5731 | (typebase): Use scalar_type. Recognize complex types. |
| 5732 | (field_name): Handle FLOAT_KEYWORD. |
| 5733 | (ident_tokens): Add _Complex and __complex__. |
| 5734 | |
| 5735 | 2020-04-01 Tom Tromey <tom@tromey.com> |
| 5736 | |
| 5737 | PR exp/25299: |
| 5738 | * valarith.c (promotion_type, complex_binop): New functions. |
| 5739 | (scalar_binop): Handle complex numbers. Use promotion_type. |
| 5740 | (value_pos, value_neg, value_complement): Handle complex numbers. |
| 5741 | |
| 5742 | 2020-04-01 Tom Tromey <tom@tromey.com> |
| 5743 | |
| 5744 | * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens. |
| 5745 | (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules. |
| 5746 | (parse_number): Handle complex numbers. |
| 5747 | |
| 5748 | 2020-04-01 Tom Tromey <tom@tromey.com> |
| 5749 | |
| 5750 | * c-valprint.c (c_decorations): Change complex suffix to "i". |
| 5751 | |
| 5752 | 2020-04-01 Tom Tromey <tom@tromey.com> |
| 5753 | |
| 5754 | * valprint.c (generic_value_print_complex): Use accessors. |
| 5755 | * value.h (value_real_part, value_imaginary_part): Declare. |
| 5756 | * valops.c (value_real_part, value_imaginary_part): New |
| 5757 | functions. |
| 5758 | * value.c (creal_internal_fn, cimag_internal_fn): Use accessors. |
| 5759 | |
| 5760 | 2020-04-01 Tom Tromey <tom@tromey.com> |
| 5761 | |
| 5762 | * stabsread.c (rs6000_builtin_type, read_sun_floating_type) |
| 5763 | (read_range_type): Update. |
| 5764 | * mdebugread.c (basic_type): Update. |
| 5765 | * go-lang.c (build_go_types): Use init_complex_type. |
| 5766 | * gdbtypes.h (struct main_type) <complex_type>: New member. |
| 5767 | (init_complex_type): Update. |
| 5768 | (arch_complex_type): Don't declare. |
| 5769 | * gdbtypes.c (init_complex_type): Remove "objfile" parameter. |
| 5770 | Make name if none given. Use alloc_type_copy. Look for cached |
| 5771 | complex type. |
| 5772 | (arch_complex_type): Remove. |
| 5773 | (gdbtypes_post_init): Use init_complex_type. |
| 5774 | * f-lang.c (build_fortran_types): Use init_complex_type. |
| 5775 | * dwarf2/read.c (read_base_type): Update. |
| 5776 | * d-lang.c (build_d_types): Use init_complex_type. |
| 5777 | * ctfread.c (read_base_type): Update. |
| 5778 | |
| 5779 | 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
| 5780 | |
| 5781 | * infrun.c (stop_all_threads): Update assertion, plus when |
| 5782 | stopping threads, take into account that we might be trying |
| 5783 | to stop an all-stop target. |
| 5784 | (stop_waiting): Call 'stop_all_threads' if there exists a |
| 5785 | non-stop target. |
| 5786 | |
| 5787 | 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
| 5788 | |
| 5789 | * target.h (exists_non_stop_target): New function declaration. |
| 5790 | * target.c (exists_non_stop_target): New function. |
| 5791 | |
| 5792 | 2020-04-01 Hannes Domani <ssbssa@yahoo.de> |
| 5793 | |
| 5794 | PR gdb/24789 |
| 5795 | * eval.c (is_integral_or_integral_reference): New function. |
| 5796 | (evaluate_subexp_standard): Allow integer references in |
| 5797 | pointer arithmetic. |
| 5798 | |
| 5799 | 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
| 5800 | |
| 5801 | * remote.c (remote_target::remote_parse_stop_reply): Remove the |
| 5802 | check for no ptid in the stop reply when the target is non-stop. |
| 5803 | |
| 5804 | 2020-04-01 Tom Tromey <tromey@adacore.com> |
| 5805 | |
| 5806 | * symtab.h (class lookup_name_info) <lookup_name_info>: Change |
| 5807 | "name" parameter to rvalue reference. Initialize m_name_holder. |
| 5808 | <lookup_name_info>: New overloads. |
| 5809 | <name>: Return gdb::string_view. |
| 5810 | <c_str>: New method. |
| 5811 | <make_ignore_params>: Update. |
| 5812 | <search_name_hash>: Update. |
| 5813 | <language_lookup_name>: Return const char *. |
| 5814 | <m_name>: Change type. |
| 5815 | * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info) |
| 5816 | (demangle_for_lookup_info::demangle_for_lookup_info): Update. |
| 5817 | (lookup_name_info::match_any): Update. |
| 5818 | * psymtab.c (match_partial_symbol, lookup_partial_symbol): |
| 5819 | Update. |
| 5820 | * minsyms.c (linkage_name_str): Update. |
| 5821 | * language.c (default_symbol_name_matcher): Update. |
| 5822 | * dwarf2/read.c (mapped_index_base::find_name_components_bounds): |
| 5823 | Update. |
| 5824 | * ada-lang.c (ada_fold_name): Change parameter to string_view. |
| 5825 | (ada_lookup_name_info::ada_lookup_name_info): Update. |
| 5826 | (literal_symbol_name_matcher): Update. |
| 5827 | |
| 5828 | 2020-04-01 Tom Tromey <tromey@adacore.com> |
| 5829 | |
| 5830 | * psymtab.c (psymtab_search_name): Remove function. |
| 5831 | (psym_lookup_symbol): Create search name and lookup name here. |
| 5832 | (lookup_partial_symbol): Remove "name" parameter; add |
| 5833 | lookup_name. |
| 5834 | (psym_expand_symtabs_for_function): Update. |
| 5835 | |
| 5836 | 2020-03-31 Joel Jones <joelkevinjones@gmail.com> |
| 5837 | |
| 5838 | PR tui/25597: |
| 5839 | * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI. |
| 5840 | |
| 5841 | 2020-03-31 Tom Tromey <tromey@adacore.com> |
| 5842 | |
| 5843 | * dwarf2/abbrev.c (abbrev_table::read): Conditionally call |
| 5844 | memcpy. |
| 5845 | |
| 5846 | 2020-03-30 Nelson Chu <nelson.chu@sifive.com> |
| 5847 | |
| 5848 | * features/riscv/32bit-csr.xml: Regenerated. |
| 5849 | * features/riscv/64bit-csr.xml: Regenerated. |
| 5850 | |
| 5851 | 2020-03-30 Tom Tromey <tromey@adacore.com> |
| 5852 | |
| 5853 | * ada-valprint.c (print_variant_part): Update. |
| 5854 | * ada-lang.h (ada_which_variant_applies): Update. |
| 5855 | * ada-lang.c (ada_which_variant_applies): Remove outer_type and |
| 5856 | outer_valaddr parameters; replace with "outer" value parameter. |
| 5857 | (to_fixed_variant_branch_type): Update. |
| 5858 | |
| 5859 | 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com> |
| 5860 | |
| 5861 | * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and |
| 5862 | <list>. Remove inclusion of observable.h. |
| 5863 | (PPC_DEBUG_CURRENT_VERSION): Move up define. |
| 5864 | (struct arch_lwp_info): New struct. |
| 5865 | (class ppc_linux_dreg_interface): New class. |
| 5866 | (struct ppc_linux_process_info): New struct. |
| 5867 | (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork> |
| 5868 | <low_new_clone, low_forget_process, low_prepare_to_resume> |
| 5869 | <copy_thread_dreg_state, mark_thread_stale> |
| 5870 | <mark_debug_registers_changed, register_hw_breakpoint> |
| 5871 | <clear_hw_breakpoint, register_wp, clear_wp> |
| 5872 | <can_use_watchpoint_cond_accel, calculate_dvc, check_condition> |
| 5873 | <num_memory_accesses, get_trigger_type> |
| 5874 | <create_watchpoint_request, hwdebug_point_cmp> |
| 5875 | <init_arch_lwp_info, get_arch_lwp_info> |
| 5876 | <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as |
| 5877 | methods. |
| 5878 | <struct ptid_hash>: New inner struct. |
| 5879 | <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare |
| 5880 | members. |
| 5881 | (saved_dabr_value, hwdebug_info, max_slots_number) |
| 5882 | (struct hw_break_tuple, struct thread_points, ppc_threads) |
| 5883 | (have_ptrace_hwdebug_interface) |
| 5884 | (hwdebug_find_thread_points_by_tid) |
| 5885 | (hwdebug_insert_point, hwdebug_remove_point): Remove. |
| 5886 | (ppc_linux_nat_target::can_use_hw_breakpoint): Use |
| 5887 | m_dreg_interface, remove call to PTRACE_SET_DEBUGREG. |
| 5888 | (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment, |
| 5889 | use m_dreg_interface. |
| 5890 | (hwdebug_point_cmp): Change to... |
| 5891 | (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use |
| 5892 | reference arguments instead of pointers. |
| 5893 | (ppc_linux_nat_target::ranged_break_num_registers): Use |
| 5894 | m_dreg_interface. |
| 5895 | (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use |
| 5896 | m_dreg_interface. Call register_hw_breakpoint. |
| 5897 | (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use |
| 5898 | m_dreg_interface. Call clear_hw_breakpoint. |
| 5899 | (get_trigger_type): Change to... |
| 5900 | (ppc_linux_nat_target::get_trigger_type): ...this method. Add |
| 5901 | comment. |
| 5902 | (ppc_linux_nat_target::insert_mask_watchpoint): Update comment, |
| 5903 | use m_dreg_interface. Call register_hw_breakpoint. |
| 5904 | (ppc_linux_nat_target::remove_mask_watchpoint): Update comment, |
| 5905 | use m_dreg_interface. Call clear_hw_breakpoint. |
| 5906 | (can_use_watchpoint_cond_accel): Change to... |
| 5907 | (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this |
| 5908 | method. Update comment, use m_dreg_interface and |
| 5909 | m_process_info. |
| 5910 | (calculate_dvc): Change to... |
| 5911 | (ppc_linux_nat_target::calculate_dvc): ...this method. Use |
| 5912 | m_dreg_interface. |
| 5913 | (num_memory_accesses): Change to... |
| 5914 | (ppc_linux_nat_target::num_memory_accesses): ...this method. |
| 5915 | (check_condition): Change to... |
| 5916 | (ppc_linux_nat_target::check_condition): ...this method. |
| 5917 | (ppc_linux_nat_target::can_accel_watchpoint_condition): Update |
| 5918 | comment, use m_dreg_interface. |
| 5919 | (create_watchpoint_request): Change to... |
| 5920 | (ppc_linux_nat_target::create_watchpoint_request): ...this |
| 5921 | method. Use m_dreg_interface. |
| 5922 | (ppc_linux_nat_target::insert_watchpoint): Add comment, use |
| 5923 | m_dreg_interface. Call register_hw_breakpoint or register_wp. |
| 5924 | (ppc_linux_nat_target::remove_watchpoint): Add comment, use |
| 5925 | m_dreg_interface. Call clear_hw_breakpoint or clear_wp. |
| 5926 | (ppc_linux_nat_target::low_forget_process) |
| 5927 | (ppc_linux_nat_target::low_new_fork) |
| 5928 | (ppc_linux_nat_target::low_new_clone) |
| 5929 | (ppc_linux_nat_target::low_delete_thread) |
| 5930 | (ppc_linux_nat_target::low_prepare_to_resume): New methods. |
| 5931 | (ppc_linux_nat_target::low_new_thread): Remove previous logic, |
| 5932 | only call mark_thread_stale. |
| 5933 | (ppc_linux_thread_exit): Remove. |
| 5934 | (ppc_linux_nat_target::stopped_data_address): Change to... |
| 5935 | (ppc_linux_nat_target::low_stopped_data_address): This. Add |
| 5936 | comment, use m_dreg_interface and m_thread_hw_breakpoints. |
| 5937 | (ppc_linux_nat_target::stopped_by_watchpoint): Change to... |
| 5938 | (ppc_linux_nat_target::stopped_by_watchpoint): This. Add |
| 5939 | comment. Call low_stopped_data_address. |
| 5940 | (ppc_linux_nat_target::watchpoint_addr_within_range): Use |
| 5941 | m_dreg_interface. |
| 5942 | (ppc_linux_nat_target::masked_watch_num_registers): Use |
| 5943 | m_dreg_interface. |
| 5944 | (ppc_linux_nat_target::copy_thread_dreg_state) |
| 5945 | (ppc_linux_nat_target::mark_thread_stale) |
| 5946 | (ppc_linux_nat_target::mark_debug_registers_changed) |
| 5947 | (ppc_linux_nat_target::register_hw_breakpoint) |
| 5948 | (ppc_linux_nat_target::clear_hw_breakpoint) |
| 5949 | (ppc_linux_nat_target::register_wp) |
| 5950 | (ppc_linux_nat_target::clear_wp) |
| 5951 | (ppc_linux_nat_target::init_arch_lwp_info) |
| 5952 | (ppc_linux_nat_target::get_arch_lwp_info): New methods. |
| 5953 | (_initialize_ppc_linux_nat): Remove observer callback. |
| 5954 | |
| 5955 | 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com> |
| 5956 | |
| 5957 | * ppc-linux-nat.c (ppc_linux_nat_target::store_registers) |
| 5958 | (ppc_linux_nat_target::auxv_parse) |
| 5959 | (ppc_linux_nat_target::read_description) |
| 5960 | (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): |
| 5961 | Move up. |
| 5962 | |
| 5963 | 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com> |
| 5964 | |
| 5965 | * linux-nat.h (low_new_clone): New method. |
| 5966 | * linux-nat.c (linux_handle_extended_wait): Call low_new_clone. |
| 5967 | |
| 5968 | 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca> |
| 5969 | |
| 5970 | * dbxread.c (dbx_psymtab_to_symtab_1): Rename to... |
| 5971 | (dbx_expand_psymtab): ... this. |
| 5972 | (start_psymtab): Update. |
| 5973 | * mdebugread.c (psymtab_to_symtab_1): Rename to... |
| 5974 | (mdebug_expand_psymtab): ... this. |
| 5975 | (parse_partial_symbols): Update. |
| 5976 | (new_psymtab): Update. |
| 5977 | * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to... |
| 5978 | (xcoff_expand_psymtab): ... this. |
| 5979 | (xcoff_start_psymtab): Update. |
| 5980 | |
| 5981 | 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca> |
| 5982 | |
| 5983 | * psympriv.h (partial_symtab) <read_dependencies>: Rename to... |
| 5984 | <expand_dependencies>: ... this. |
| 5985 | * psymtab.c (partial_symtab::read_dependencies): Rename to... |
| 5986 | (partial_symtab::expand_dependencies): ... this. |
| 5987 | * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>: |
| 5988 | Update. |
| 5989 | (dwarf2_psymtab::expand_psymtab): Update. |
| 5990 | * dbxread.c (dbx_psymtab_to_symtab_1): Update. |
| 5991 | * mdebugread.c (psymtab_to_symtab_1): Update. |
| 5992 | * xcoffread.c (xcoff_psymtab_to_symtab_1): Update. |
| 5993 | |
| 5994 | 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca> |
| 5995 | |
| 5996 | * psympriv.h (discard_psymtab): Remove. |
| 5997 | * dbxread.c (dbx_end_psymtab): Update. |
| 5998 | * xcoffread.c (xcoff_end_psymtab): Update. |
| 5999 | |
| 6000 | 2020-03-28 Tom Tromey <tom@tromey.com> |
| 6001 | |
| 6002 | * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update |
| 6003 | comment. |
| 6004 | |
| 6005 | 2020-03-28 Tom Tromey <tom@tromey.com> |
| 6006 | |
| 6007 | * dwarf2/read.c (read_attribute_reprocess): Fix formatting. |
| 6008 | |
| 6009 | 2020-03-27 Hannes Domani <ssbssa@yahoo.de> |
| 6010 | |
| 6011 | * windows-nat.c (windows_add_all_dlls): Fix system dll paths. |
| 6012 | |
| 6013 | 2020-03-26 John Baldwin <jhb@FreeBSD.org> |
| 6014 | |
| 6015 | * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS. |
| 6016 | |
| 6017 | 2020-03-26 Tom Tromey <tom@tromey.com> |
| 6018 | |
| 6019 | * dwarf2/read.c (handle_data_member_location, dwarf2_add_field) |
| 6020 | (mark_common_block_symbol_computed, read_tag_string_type) |
| 6021 | (attr_to_dynamic_prop, read_subrange_type): Update. |
| 6022 | (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move |
| 6023 | to be methods on struct attribute. |
| 6024 | (skip_one_die, process_imported_unit_die, read_namespace_alias) |
| 6025 | (read_call_site_scope, partial_die_info::read) |
| 6026 | (partial_die_info::read, lookup_die_type, follow_die_ref): |
| 6027 | Update. |
| 6028 | * dwarf2/attribute.c (attribute::get_ref_die_offset): New method, |
| 6029 | from dwarf2_get_ref_die_offset. |
| 6030 | (attribute::constant_value): New method, from |
| 6031 | dwarf2_get_attr_constant_value. |
| 6032 | * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>: |
| 6033 | Declare method. |
| 6034 | <constant_value>: New method. |
| 6035 | |
| 6036 | 2020-03-26 Tom Tromey <tom@tromey.com> |
| 6037 | |
| 6038 | * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name) |
| 6039 | (dwarf_attr_name, dwarf_form_name, dwarf_bool_name) |
| 6040 | (dwarf_type_encoding_name): Move to stringify.c. |
| 6041 | * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c. |
| 6042 | * dwarf2/stringify.c: New file. |
| 6043 | * dwarf2/stringify.h: New file. |
| 6044 | |
| 6045 | 2020-03-26 Tom Tromey <tom@tromey.com> |
| 6046 | |
| 6047 | * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: |
| 6048 | Rewrite. |
| 6049 | |
| 6050 | 2020-03-26 Tom Tromey <tom@tromey.com> |
| 6051 | |
| 6052 | * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New |
| 6053 | methods. |
| 6054 | * dwarf2/read.c (lookup_addr_base): Move to die.h. |
| 6055 | (lookup_ranges_base): Likewise. |
| 6056 | (read_cutu_die_from_dwo, read_full_die_1): Update. |
| 6057 | |
| 6058 | 2020-03-26 Tom Tromey <tom@tromey.com> |
| 6059 | |
| 6060 | * dwarf2/read.c (read_import_statement, read_file_scope) |
| 6061 | (read_type_unit_scope, inherit_abstract_dies, read_func_scope) |
| 6062 | (read_lexical_block_scope, read_call_site_scope) |
| 6063 | (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds) |
| 6064 | (handle_struct_member_die, process_structure_scope) |
| 6065 | (update_enumeration_type_from_children) |
| 6066 | (process_enumeration_scope, read_array_type, read_common_block) |
| 6067 | (read_namespace, read_module, read_subroutine_type): Update. |
| 6068 | (sibling_die): Remove. |
| 6069 | |
| 6070 | 2020-03-26 Tom Tromey <tom@tromey.com> |
| 6071 | |
| 6072 | * dwarf2/read.c (lookup_addr_base, lookup_ranges_base) |
| 6073 | (build_type_psymtabs_reader, read_structure_type) |
| 6074 | (read_enumeration_type, read_full_die_1): Update. |
| 6075 | (dwarf2_attr_no_follow): Move to die.h. |
| 6076 | * dwarf2/die.h (struct die_info) <attr>: New method. |
| 6077 | |
| 6078 | 2020-03-26 Tom Tromey <tom@tromey.com> |
| 6079 | |
| 6080 | * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove. |
| 6081 | <base_address>: Now an optional. |
| 6082 | (dwarf2_find_base_address, dwarf2_rnglists_process) |
| 6083 | (dwarf2_ranges_process, fill_in_loclist_baton) |
| 6084 | (dwarf2_symbol_mark_computed): Update. |
| 6085 | |
| 6086 | 2020-03-26 Tom Tromey <tom@tromey.com> |
| 6087 | |
| 6088 | * dwarf2/read.c (struct die_info): Move to die.h. |
| 6089 | * dwarf2/die.h: New file. |
| 6090 | |
| 6091 | 2020-03-26 Tom Tromey <tom@tromey.com> |
| 6092 | |
| 6093 | * dwarf2/line-header.h (dwarf_decode_line_header): Declare. |
| 6094 | * dwarf2/read.c |
| 6095 | (dwarf2_statement_list_fits_in_line_number_section_complaint): |
| 6096 | Move to line-header.c. |
| 6097 | (read_checked_initial_length_and_offset, read_formatted_entries): |
| 6098 | Likewise. |
| 6099 | (dwarf_decode_line_header): Split into two. |
| 6100 | * dwarf2/line-header.c |
| 6101 | (dwarf2_statement_list_fits_in_line_number_section_complaint): |
| 6102 | Move from read.c. |
| 6103 | (read_checked_initial_length_and_offset, read_formatted_entries): |
| 6104 | Likewise. |
| 6105 | (dwarf_decode_line_header): New function, split from read.c. |
| 6106 | |
| 6107 | 2020-03-26 Tom Tromey <tom@tromey.com> |
| 6108 | |
| 6109 | * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>: |
| 6110 | Declare method. |
| 6111 | * dwarf2/read.c (read_attribute_value): Update. |
| 6112 | (dwarf2_per_objfile::read_line_string): Rename from |
| 6113 | read_indirect_line_string. |
| 6114 | (read_formatted_entries): Update. |
| 6115 | |
| 6116 | 2020-03-26 Tom Tromey <tom@tromey.com> |
| 6117 | |
| 6118 | * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local |
| 6119 | variable. |
| 6120 | |
| 6121 | 2020-03-26 Tom Tromey <tom@tromey.com> |
| 6122 | |
| 6123 | * dwarf2/macro.h (dwarf_decode_macros): Make section parameter |
| 6124 | const. |
| 6125 | * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode) |
| 6126 | (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section |
| 6127 | parameter const. |
| 6128 | |
| 6129 | 2020-03-26 Tom Tromey <tom@tromey.com> |
| 6130 | |
| 6131 | * dwarf2/read.c (dwarf_decode_macros): Make "lh" const. |
| 6132 | * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter. |
| 6133 | * dwarf2/macro.c (macro_start_file): Constify "lh" parameter. |
| 6134 | (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise. |
| 6135 | |
| 6136 | 2020-03-26 Tom Tromey <tom@tromey.com> |
| 6137 | |
| 6138 | * dwarf2/line-header.h (struct line_header) <is_valid_file_index, |
| 6139 | file_names_size, file_full_name, file_file_name>: Use const. |
| 6140 | <file_name_at, file_names>: Add const overload. |
| 6141 | * dwarf2/line-header.c (line_header::file_file_name) |
| 6142 | (line_header::file_full_name): Update. |
| 6143 | |
| 6144 | 2020-03-26 Tom Tromey <tom@tromey.com> |
| 6145 | |
| 6146 | * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint) |
| 6147 | (macro_start_file, consume_improper_spaces) |
| 6148 | (parse_macro_definition, skip_form_bytes, skip_unknown_opcode) |
| 6149 | (dwarf_parse_macro_header, dwarf_decode_macro_bytes) |
| 6150 | (dwarf_decode_macros): Move to macro.c. |
| 6151 | * dwarf2/macro.c: New file. |
| 6152 | * dwarf2/macro.h: New file. |
| 6153 | * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c. |
| 6154 | |
| 6155 | 2020-03-26 Tom Tromey <tom@tromey.com> |
| 6156 | |
| 6157 | * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New |
| 6158 | method. |
| 6159 | * dwarf2/section.c: New method. From |
| 6160 | read_indirect_string_at_offset_from. |
| 6161 | * dwarf2/read.c (mapped_debug_names::namei_to_name): Update. |
| 6162 | (read_indirect_string_at_offset_from): Move to section.c. |
| 6163 | (read_indirect_string_at_offset): Rewrite. |
| 6164 | (read_indirect_line_string_at_offset): Remove. |
| 6165 | (read_indirect_string, read_indirect_line_string) |
| 6166 | (dwarf_decode_macro_bytes): Update. |
| 6167 | |
| 6168 | 2020-03-26 Tom Tromey <tom@tromey.com> |
| 6169 | |
| 6170 | * dwarf2/section.h (struct dwarf2_section_info) |
| 6171 | <overload_complaint>: Declare. |
| 6172 | (dwarf2_section_buffer_overflow_complaint): Don't declare. |
| 6173 | * dwarf2/section.c (dwarf2_section_info::overflow_complaint): |
| 6174 | Rename from dwarf2_section_buffer_overflow_complaint. |
| 6175 | * dwarf2/read.c (skip_one_die, partial_die_info::read) |
| 6176 | (skip_form_bytes, dwarf_decode_macro_bytes): Update. |
| 6177 | |
| 6178 | 2020-03-26 Tom Tromey <tom@tromey.com> |
| 6179 | |
| 6180 | * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint): |
| 6181 | Declare. |
| 6182 | * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint): |
| 6183 | Move from read.c. |
| 6184 | * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move |
| 6185 | to section.c. |
| 6186 | |
| 6187 | 2020-03-26 Tom Tromey <tom@tromey.com> |
| 6188 | |
| 6189 | * dwarf2/read.c (dwarf_decode_macros): Split into two overloads. |
| 6190 | |
| 6191 | 2020-03-26 Tom Tromey <tom@tromey.com> |
| 6192 | |
| 6193 | * dwarf2/read.c (macro_start_file): Change "cu" parameter to |
| 6194 | "builder". |
| 6195 | (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile |
| 6196 | parameter. |
| 6197 | (dwarf_decode_macros): Update. |
| 6198 | |
| 6199 | 2020-03-26 Tom Tromey <tom@tromey.com> |
| 6200 | |
| 6201 | * dwarf2/read.c (read_attribute_value): Update. |
| 6202 | (read_indirect_string_from_dwz): Move to dwz.c; change into |
| 6203 | method. |
| 6204 | (dwarf_decode_macro_bytes): Update. |
| 6205 | * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method. |
| 6206 | * dwarf2/dwz.c: New file. |
| 6207 | * Makefile.in (COMMON_SFILES): Add dwz.c. |
| 6208 | |
| 6209 | 2020-03-26 Tom Tromey <tom@tromey.com> |
| 6210 | |
| 6211 | * dwarf2/read.h (struct dwz_file): Move to dwz.h. |
| 6212 | * dwarf2/read.c: Add include. |
| 6213 | * dwarf2/index-write.c: Add include. |
| 6214 | * dwarf2/index-cache.c: Add include. |
| 6215 | * dwarf2/dwz.h: New file. |
| 6216 | |
| 6217 | 2020-03-25 Tom Tromey <tom@tromey.com> |
| 6218 | |
| 6219 | * compile/compile-object-load.c (get_out_value_type): Mention |
| 6220 | correct symbol name in error message. |
| 6221 | |
| 6222 | 2020-03-25 Hannes Domani <ssbssa@yahoo.de> |
| 6223 | |
| 6224 | * windows-nat.c (windows_add_all_dlls): Fix system dll paths. |
| 6225 | |
| 6226 | 2020-03-25 Tom de Vries <tdevries@suse.de> |
| 6227 | |
| 6228 | * symtab.h (is_main_symtab_of_compunit_symtab): New function. |
| 6229 | * symmisc.c (dump_symtab_1): Print user and includes fields. |
| 6230 | (maintenance_info_symtabs): Same. |
| 6231 | |
| 6232 | 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com> |
| 6233 | |
| 6234 | PR gdb/25534 |
| 6235 | * riscv-tdep.c (riscv_arg_info::c_offset): Update comment. |
| 6236 | (riscv_regcache_cooked_write): New function. |
| 6237 | (riscv_push_dummy_call): Use new function. |
| 6238 | (riscv_return_value): Likewise. |
| 6239 | |
| 6240 | 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca> |
| 6241 | |
| 6242 | * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int. |
| 6243 | * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise. |
| 6244 | * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise. |
| 6245 | * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise. |
| 6246 | * infrun.c (follow_fork): Likewise. |
| 6247 | (follow_fork_inferior): Likewise. |
| 6248 | * linux-nat.c (linux_nat_target::follow_fork): Likewise. |
| 6249 | * linux-nat.h (class linux_nat_target): Likewise. |
| 6250 | * remote.c (class remote_target) <follow_fork>: Likewise. |
| 6251 | (remote_target::follow_fork): Likewise. |
| 6252 | * target-delegates.c: Re-generate. |
| 6253 | * target.c (default_follow_fork): Likewise. |
| 6254 | (target_follow_fork): Likewise. |
| 6255 | * target.h (struct target_ops) <follow_fork>: Likewise. |
| 6256 | (target_follow_fork): Likewise. |
| 6257 | |
| 6258 | 2020-03-24 Tom de Vries <tdevries@suse.de> |
| 6259 | |
| 6260 | * psymtab.c (maintenance_info_psymtabs): Print user field. |
| 6261 | |
| 6262 | 2020-03-20 Tom Tromey <tromey@adacore.com> |
| 6263 | |
| 6264 | * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack" |
| 6265 | const. |
| 6266 | * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack" |
| 6267 | const. |
| 6268 | |
| 6269 | 2020-03-20 Simon Marchi <simon.marchi@efficios.com> |
| 6270 | |
| 6271 | * ptrace.m4: Don't check for ptrace declaration. |
| 6272 | * config.in: Re-generate. |
| 6273 | * configure: Re-generate. |
| 6274 | * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is |
| 6275 | not defined. |
| 6276 | |
| 6277 | 2020-03-20 Kamil Rytarowski <n54@gmx.com> |
| 6278 | |
| 6279 | * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to |
| 6280 | `PTRACE_TYPE_RET'. |
| 6281 | * i386-bsd-nat.c (gdb_ptrace): Likewise. |
| 6282 | * sparc-nat.c (gdb_ptrace): Likewise. |
| 6283 | * x86-bsd-nat.c (gdb_ptrace): Likewise. |
| 6284 | |
| 6285 | 2020-03-20 Tom Tromey <tromey@adacore.com> |
| 6286 | |
| 6287 | * c-exp.y (lex_one_token): Fix assert. |
| 6288 | |
| 6289 | 2020-03-20 Tom Tromey <tromey@adacore.com> |
| 6290 | |
| 6291 | * ada-tasks.c (read_atcb): Use smaller length in strncpy call. |
| 6292 | * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in |
| 6293 | strncpy call. |
| 6294 | |
| 6295 | 2020-03-20 Tom Tromey <tromey@adacore.com> |
| 6296 | |
| 6297 | * symmisc.c (maintenance_print_one_line_table): Use ui_out. |
| 6298 | |
| 6299 | 2020-03-20 Tom Tromey <tromey@adacore.com> |
| 6300 | |
| 6301 | * ada-valprint.c (print_variant_part): Remove parameters; switch |
| 6302 | to value-based API. |
| 6303 | (print_field_values): Likewise. |
| 6304 | (ada_val_print_struct_union): Likewise. |
| 6305 | (ada_value_print_1): Update. |
| 6306 | |
| 6307 | 2020-03-20 Kamil Rytarowski <n54@gmx.com> |
| 6308 | |
| 6309 | * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from |
| 6310 | nbsd_nat_target instead of inf_ptrace_target. |
| 6311 | * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using |
| 6312 | nbsd_nat_target. |
| 6313 | |
| 6314 | 2020-03-20 Kamil Rytarowski <n54@gmx.com> |
| 6315 | |
| 6316 | * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass |
| 6317 | it to the ptrace call. |
| 6318 | * (store_registers): Likewise. |
| 6319 | |
| 6320 | 2020-03-20 Kamil Rytarowski <n54@gmx.com> |
| 6321 | |
| 6322 | * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass |
| 6323 | it to the ptrace call. |
| 6324 | * (store_registers): Likewise. |
| 6325 | |
| 6326 | 2020-03-19 Luis Machado <luis.machado@linaro.org> |
| 6327 | |
| 6328 | * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not |
| 6329 | valid, fetch vg value from ptrace. |
| 6330 | |
| 6331 | 2020-03-19 Kamil Rytarowski <n54@gmx.com> |
| 6332 | * inf-ptrace.h: Disable get_ptrace_pid on NetBSD. |
| 6333 | * inf-ptrace.c: Likewise. |
| 6334 | * (gdb_ptrace): Add. |
| 6335 | * (inf_ptrace_target::resume): Update. |
| 6336 | * (inf_ptrace_target::xfer_partial): Likewise. |
| 6337 | * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'. |
| 6338 | * (inf_ptrace_peek_poke): Update. |
| 6339 | |
| 6340 | 2020-03-19 Kamil Rytarowski <n54@gmx.com> |
| 6341 | |
| 6342 | * x86-bsd-nat.c (gdb_ptrace): New. |
| 6343 | * (x86bsd_dr_set): Add new argument `ptid'. |
| 6344 | * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control, |
| 6345 | x86bsd_dr_set_addr): Update. |
| 6346 | |
| 6347 | 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com> |
| 6348 | |
| 6349 | * remote.c (remote_target::process_stop_reply): Handle events for |
| 6350 | all threads differently. |
| 6351 | |
| 6352 | 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com> |
| 6353 | |
| 6354 | * completer.c (completion_tracker::remove_completion): Define new |
| 6355 | function. |
| 6356 | * completer.h (completion_tracker::remove_completion): Declare new |
| 6357 | function. |
| 6358 | * symtab.c (completion_list_add_symbol): Remove aliasing msymbols |
| 6359 | when adding a C++ function symbol. |
| 6360 | |
| 6361 | 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com> |
| 6362 | |
| 6363 | * completer.c (completion_tracker::completion_hash_entry): Define |
| 6364 | new class. |
| 6365 | (advance_to_filename_complete_word_point): Call |
| 6366 | recompute_lowest_common_denominator. |
| 6367 | (completion_tracker::completion_tracker): Call discard_completions |
| 6368 | to setup the hash table. |
| 6369 | (completion_tracker::discard_completions): Allow for being called |
| 6370 | from the constructor, pass new equal function, and element deleter |
| 6371 | when constructing the hash table. Initialise new class member |
| 6372 | variables. |
| 6373 | (completion_tracker::maybe_add_completion): Remove use of |
| 6374 | m_entries_vec, and store more information into m_entries_hash. |
| 6375 | (completion_tracker::recompute_lcd_visitor): New function, most |
| 6376 | content taken from... |
| 6377 | (completion_tracker::recompute_lowest_common_denominator): |
| 6378 | ...here, this now just visits each item in the hash calling the |
| 6379 | above visitor. |
| 6380 | (completion_tracker::build_completion_result): Remove use of |
| 6381 | m_entries_vec, call recompute_lowest_common_denominator. |
| 6382 | * completer.h (completion_tracker::have_completions): Remove use |
| 6383 | of m_entries_vec. |
| 6384 | (completion_tracker::completion_hash_entry): Declare new class. |
| 6385 | (completion_tracker::recompute_lowest_common_denominator): Change |
| 6386 | function signature. |
| 6387 | (completion_tracker::recompute_lcd_visitor): Declare new function. |
| 6388 | (completion_tracker::m_entries_vec): Delete. |
| 6389 | (completion_tracker::m_entries_hash): Initialize to NULL. |
| 6390 | (completion_tracker::m_lowest_common_denominator_valid): New |
| 6391 | member variable. |
| 6392 | (completion_tracker::m_lowest_common_denominator_max_length): New |
| 6393 | member variable. |
| 6394 | |
| 6395 | 2020-03-17 Kamil Rytarowski <n54@gmx.com> |
| 6396 | |
| 6397 | * regformats/regdef.h: Put reg in gdb namespace. |
| 6398 | |
| 6399 | 2020-03-17 Kamil Rytarowski <n54@gmx.com> |
| 6400 | |
| 6401 | * i386-bsd-nat.c (gdb_ptrace): New. |
| 6402 | * (i386bsd_fetch_inferior_registers, |
| 6403 | i386bsd_store_inferior_registers) Switch from pid_t to ptid_t. |
| 6404 | * (i386bsd_fetch_inferior_registers, |
| 6405 | i386bsd_store_inferior_registers) Use gdb_ptrace. |
| 6406 | |
| 6407 | 2020-03-17 Kamil Rytarowski <n54@gmx.com> |
| 6408 | |
| 6409 | * amd64-bsd-nat.c (gdb_ptrace): New. |
| 6410 | * (amd64bsd_fetch_inferior_registers, |
| 6411 | amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t. |
| 6412 | * (amd64bsd_fetch_inferior_registers, |
| 6413 | amd64bsd_store_inferior_registers) Use gdb_ptrace. |
| 6414 | |
| 6415 | 2020-03-17 Kamil Rytarowski <n54@gmx.com> |
| 6416 | |
| 6417 | * user-regs.c (user_reg::read): Rename to... |
| 6418 | (user_reg::xread): ...this. |
| 6419 | * (append_user_reg): Rename argument `read' to `xread'. |
| 6420 | * (user_reg_add_builtin): Likewise. |
| 6421 | * (user_reg_add): Likewise. |
| 6422 | * (value_of_user_reg): Likewise. |
| 6423 | |
| 6424 | 2020-03-17 Kamil Rytarowski <n54@gmx.com> |
| 6425 | |
| 6426 | * sparc-nat.c (gdb_ptrace): New. |
| 6427 | * sparc-nat.c (sparc_fetch_inferior_registers) |
| 6428 | (sparc_store_inferior_registers) Remove obsolete comment. |
| 6429 | * sparc-nat.c (sparc_fetch_inferior_registers) |
| 6430 | (sparc_store_inferior_registers) Switch from pid_t to ptid_t. |
| 6431 | * sparc-nat.c (sparc_fetch_inferior_registers) |
| 6432 | (sparc_store_inferior_registers) Use gdb_ptrace. |
| 6433 | |
| 6434 | 2020-03-17 Kamil Rytarowski <n54@gmx.com> |
| 6435 | |
| 6436 | * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass |
| 6437 | it to the ptrace call. |
| 6438 | * sh-nbsd-nat.c (store_registers): Likewise. |
| 6439 | |
| 6440 | 2020-03-17 Kamil Rytarowski <n54@gmx.com> |
| 6441 | |
| 6442 | * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from |
| 6443 | nbsd_nat_target instead of inf_ptrace_target. |
| 6444 | * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using |
| 6445 | nbsd_nat_target. |
| 6446 | |
| 6447 | 2020-03-17 Kamil Rytarowski <n54@gmx.com> |
| 6448 | |
| 6449 | * amd64-bsd-nat.c: Include amd64-bsd-nat.h". |
| 6450 | |
| 6451 | 2020-03-17 Kamil Rytarowski <n54@gmx.com> |
| 6452 | |
| 6453 | * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and |
| 6454 | <sys/sysctl.h>. |
| 6455 | * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite. |
| 6456 | |
| 6457 | 2020-03-17 Tom de Vries <tdevries@suse.de> |
| 6458 | |
| 6459 | PR gdb/23710 |
| 6460 | * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang |
| 6461 | fields. |
| 6462 | * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang |
| 6463 | fields. |
| 6464 | (process_imported_unit_die): Skip import of c++ CUs. |
| 6465 | |
| 6466 | 2020-03-16 Tom Tromey <tom@tromey.com> |
| 6467 | |
| 6468 | * p-valprint.c (pascal_object_print_value): Initialize |
| 6469 | base_value. |
| 6470 | |
| 6471 | 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com> |
| 6472 | Shahab Vahedi <shahab@synopsys.com> |
| 6473 | |
| 6474 | * Makefile.in: Add arch/arc.o |
| 6475 | * configure.tgt: Likewise. |
| 6476 | * arc-tdep.c (arc_tdesc_init): Use arc_read_description. |
| 6477 | (_initialize_arc_tdep): Don't initialize old target descriptions. |
| 6478 | (arc_read_description): New function to cache target descriptions. |
| 6479 | * arc-tdep.h (arc_read_description): Add proto type. |
| 6480 | * arch/arc.c: New file. |
| 6481 | * arch/arc.h: Likewise. |
| 6482 | * features/Makefile: Replace old target descriptions with new. |
| 6483 | * features/arc-arcompact.c: Remove. |
| 6484 | * features/arc-arcompact.xml: Likewise. |
| 6485 | * features/arc-v2.c: Likewise |
| 6486 | * features/arc-v2.xml: Likewise |
| 6487 | * features/arc/aux-arcompact.xml: New file. |
| 6488 | * features/arc/aux-v2.xml: Likewise. |
| 6489 | * features/arc/core-arcompact.xml: Likewise. |
| 6490 | * features/arc/core-v2.xml: Likewise. |
| 6491 | * features/arc/aux-arcompact.c: Generate. |
| 6492 | * features/arc/aux-v2.c: Likewise. |
| 6493 | * features/arc/core-arcompact.c: Likewise. |
| 6494 | * features/arc/core-v2.c: Likewise. |
| 6495 | * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features. |
| 6496 | |
| 6497 | 2020-03-16 Tom Tromey <tromey@adacore.com> |
| 6498 | |
| 6499 | PR gdb/25663: |
| 6500 | * dwarf2/read.c (dwarf2_name): Strip leading namespaces after |
| 6501 | putting value into bcache. |
| 6502 | |
| 6503 | 2020-03-16 Simon Marchi <simon.marchi@efficios.com> |
| 6504 | |
| 6505 | PR gdb/21500 |
| 6506 | * amd64-windows-tdep.c (amd64_windows_init_abi): Rename |
| 6507 | to... |
| 6508 | (amd64_windows_init_abi_common): ... this. Don't set size of |
| 6509 | long type. |
| 6510 | (amd64_windows_init_abi): New function. |
| 6511 | (amd64_cygwin_init_abi): New function. |
| 6512 | (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for |
| 6513 | the Cygwin OS ABI. |
| 6514 | * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify |
| 6515 | comment. |
| 6516 | |
| 6517 | 2020-03-16 Simon Marchi <simon.marchi@efficios.com> |
| 6518 | |
| 6519 | * windows-tdep.h (is_linked_with_cygwin_dll): New declaration. |
| 6520 | * windows-tdep.c (CYGWIN_DLL_NAME): New. |
| 6521 | (pe_import_directory_entry): New struct type. |
| 6522 | (is_linked_with_cygwin_dll): New function. |
| 6523 | * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select |
| 6524 | GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL. |
| 6525 | * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise. |
| 6526 | |
| 6527 | 2020-03-16 Simon Marchi <simon.marchi@efficios.com> |
| 6528 | |
| 6529 | * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except |
| 6530 | i386_cygwin_core_osabi_sniffer. |
| 6531 | |
| 6532 | 2020-03-16 Simon Marchi <simon.marchi@efficios.com> |
| 6533 | |
| 6534 | * i386-cygwin-tdep.c: Rename to... |
| 6535 | * i386-windows-tdep.c: ... this. |
| 6536 | * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to |
| 6537 | i386-windows-tdep.c. |
| 6538 | * configure.tgt: Likewise. |
| 6539 | |
| 6540 | 2020-03-16 Simon Marchi <simon.marchi@efficios.com> |
| 6541 | |
| 6542 | * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS. |
| 6543 | * osabi.c (gdb_osabi_names): Add "Windows". |
| 6544 | * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return |
| 6545 | GDB_OSABI_WINDOWS when the binary's target is "pei-i386". |
| 6546 | (i386_cygwin_core_osabi_sniffer): New function, extracted from |
| 6547 | i386_cygwin_osabi_sniffer. |
| 6548 | (_initialize_i386_cygwin_tdep): Register OS ABI |
| 6549 | GDB_OSABI_WINDOWS for i386. |
| 6550 | * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return |
| 6551 | GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64". |
| 6552 | (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS |
| 6553 | for x86-64. |
| 6554 | * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI |
| 6555 | when the target matches '*-*-mingw*'. |
| 6556 | |
| 6557 | 2020-03-16 Simon Marchi <simon.marchi@efficios.com> |
| 6558 | |
| 6559 | * defs.h (enum gdb_osabi): Move to... |
| 6560 | * osabi.h (enum gdb_osabi): ... here. |
| 6561 | * gdbarch.sh: Include osabi.h in gdbarch.h. |
| 6562 | * gdbarch.h: Re-generate. |
| 6563 | |
| 6564 | 2020-03-16 Simon Marchi <simon.marchi@efficios.com> |
| 6565 | |
| 6566 | * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New |
| 6567 | function. |
| 6568 | (_initialize_amd64_windows_tdep): Register osabi sniffer. |
| 6569 | |
| 6570 | 2020-03-14 Tom Tromey <tom@tromey.com> |
| 6571 | |
| 6572 | * c-typeprint.c (cp_type_print_method_args): Print "__restrict__" |
| 6573 | for C++. |
| 6574 | (c_type_print_modifier): Likewise. Add "language" parameter. |
| 6575 | (c_type_print_varspec_prefix, c_type_print_base_struct_union) |
| 6576 | (c_type_print_base_1): Update. |
| 6577 | * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New |
| 6578 | constants. |
| 6579 | * type-stack.c (type_stack::insert): Handle tp_atomic and |
| 6580 | tp_restrict. |
| 6581 | (type_stack::follow_type_instance_flags): Likewise. |
| 6582 | (type_stack::follow_types): Likewise. Merge type-following code. |
| 6583 | * c-exp.y (RESTRICT, ATOMIC): New tokens. |
| 6584 | (space_identifier, cv_with_space_id) |
| 6585 | (const_or_volatile_or_space_identifier_noopt) |
| 6586 | (const_or_volatile_or_space_identifier): Remove. |
| 6587 | (single_qualifier, qualifier_seq_noopt, qualifier_seq): New |
| 6588 | rules. |
| 6589 | (ptr_operator, typebase): Update. |
| 6590 | (enum token_flag) <FLAG_C>: New constant. |
| 6591 | (ident_tokens): Add "restrict", "__restrict__", "__restrict", and |
| 6592 | "_Atomic". |
| 6593 | (lex_one_token): Handle FLAG_C. |
| 6594 | |
| 6595 | 2020-03-14 Kamil Rytarowski <n54@gmx.com> |
| 6596 | |
| 6597 | * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass |
| 6598 | it to the ptrace call. |
| 6599 | * m68k-bsd-nat.c (store_registers): Likewise. |
| 6600 | |
| 6601 | 2020-03-14 Kamil Rytarowski <n54@gmx.com> |
| 6602 | |
| 6603 | * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to |
| 6604 | gdb_byte *. |
| 6605 | * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise. |
| 6606 | * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise. |
| 6607 | * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *. |
| 6608 | |
| 6609 | 2020-03-14 Kamil Rytarowski <n54@gmx.com> |
| 6610 | |
| 6611 | * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from |
| 6612 | nbsd_nat_target instead of inf_ptrace_target. |
| 6613 | * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using |
| 6614 | nbsd_nat_target. |
| 6615 | |
| 6616 | 2020-03-14 Kamil Rytarowski <n54@gmx.com> |
| 6617 | |
| 6618 | * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of |
| 6619 | register_t. |
| 6620 | |
| 6621 | 2020-03-14 Kamil Rytarowski <n54@gmx.com> |
| 6622 | |
| 6623 | * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass |
| 6624 | it to the ptrace call. |
| 6625 | * alpha-bsd-nat.c (store_registers): Likewise. |
| 6626 | |
| 6627 | 2020-03-14 Kamil Rytarowski <n54@gmx.com> |
| 6628 | |
| 6629 | * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from |
| 6630 | includes. |
| 6631 | * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove. |
| 6632 | * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset, |
| 6633 | fill_fpregset): Likewise. |
| 6634 | |
| 6635 | 2020-03-14 Kamil Rytarowski <n54@gmx.com> |
| 6636 | |
| 6637 | * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from |
| 6638 | nbsd_nat_target instead of inf_ptrace_target. |
| 6639 | * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using |
| 6640 | nbsd_nat_target. |
| 6641 | |
| 6642 | 2020-03-14 Kamil Rytarowski <n54@gmx.com> |
| 6643 | |
| 6644 | * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of |
| 6645 | register_t. |
| 6646 | |
| 6647 | 2020-03-14 Kamil Rytarowski <n54@gmx.com> |
| 6648 | |
| 6649 | * arm-nbsd-nat.c (fetch_register): New variable lwp and pass |
| 6650 | it to the ptrace call. |
| 6651 | * arm-nbsd-nat.c (fetch_fp_register): Likewise. |
| 6652 | * arm-nbsd-nat.c (fetch_fp_regs): Likewise. |
| 6653 | * arm-nbsd-nat.c (store_register): Likewise. |
| 6654 | * arm-nbsd-nat.c (store_regs): Likewise. |
| 6655 | * arm-nbsd-nat.c (store_fp_register): Likewise. |
| 6656 | * arm-nbsd-nat.c (store_fp_regs): Likewise. |
| 6657 | |
| 6658 | 2020-03-14 Kamil Rytarowski <n54@gmx.com> |
| 6659 | |
| 6660 | * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from |
| 6661 | nbsd_nat_target instead of inf_ptrace_target. |
| 6662 | * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using |
| 6663 | nbsd_nat_target. |
| 6664 | |
| 6665 | 2020-03-14 Kamil Rytarowski <n54@gmx.com> |
| 6666 | |
| 6667 | * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass |
| 6668 | it to the ptrace call. |
| 6669 | * x86-bsd-nat.c (x86bsd_dr_set): Likewise. |
| 6670 | |
| 6671 | 2020-03-14 Kamil Rytarowski <n54@gmx.com> |
| 6672 | |
| 6673 | * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass |
| 6674 | it to the ptrace call. |
| 6675 | * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise. |
| 6676 | |
| 6677 | 2020-03-14 Kamil Rytarowski <n54@gmx.com> |
| 6678 | |
| 6679 | * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const |
| 6680 | gdb_byte *. |
| 6681 | * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *. |
| 6682 | |
| 6683 | 2020-03-14 Kamil Rytarowski <n54@gmx.com> |
| 6684 | |
| 6685 | * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target |
| 6686 | instead of inf_ptrace_target. |
| 6687 | * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using |
| 6688 | nbsd_nat_target. |
| 6689 | |
| 6690 | 2020-03-14 Kamil Rytarowski <n54@gmx.com> |
| 6691 | |
| 6692 | * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of |
| 6693 | register_t. |
| 6694 | |
| 6695 | 2020-03-14 Kamil Rytarowski <n54@gmx.com> |
| 6696 | |
| 6697 | * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of |
| 6698 | register_t. |
| 6699 | |
| 6700 | 2020-03-14 Kamil Rytarowski <n54@gmx.com> |
| 6701 | |
| 6702 | * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of |
| 6703 | register_t. |
| 6704 | |
| 6705 | 2020-03-13 Tom Tromey <tom@tromey.com> |
| 6706 | |
| 6707 | * value.h (val_print): Don't declare. |
| 6708 | * valprint.h (val_print_array_elements) |
| 6709 | (val_print_scalar_formatted, generic_val_print): Don't declare. |
| 6710 | * valprint.c (generic_val_print_array): Take a struct value. |
| 6711 | (generic_val_print_ptr, generic_val_print_memberptr) |
| 6712 | (generic_val_print_bool, generic_val_print_int) |
| 6713 | (generic_val_print_char, generic_val_print_complex) |
| 6714 | (generic_val_print): Remove. |
| 6715 | (generic_value_print): Update. |
| 6716 | (do_val_print): Remove unused parameters. Don't call |
| 6717 | la_val_print. |
| 6718 | (val_print): Remove. |
| 6719 | (common_val_print): Update. Don't call value_check_printable. |
| 6720 | (val_print_scalar_formatted, val_print_array_elements): Remove. |
| 6721 | * rust-lang.c (rust_val_print): Remove. |
| 6722 | (rust_language_defn): Update. |
| 6723 | * p-valprint.c (pascal_val_print): Remove. |
| 6724 | (pascal_value_print_inner): Update. |
| 6725 | (pascal_object_print_val_fields, pascal_object_print_val): |
| 6726 | Remove. |
| 6727 | (pascal_object_print_static_field): Update. |
| 6728 | * p-lang.h (pascal_val_print): Don't declare. |
| 6729 | * p-lang.c (pascal_language_defn): Update. |
| 6730 | * opencl-lang.c (opencl_language_defn): Update. |
| 6731 | * objc-lang.c (objc_language_defn): Update. |
| 6732 | * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove. |
| 6733 | * m2-lang.h (m2_val_print): Don't declare. |
| 6734 | * m2-lang.c (m2_language_defn): Update. |
| 6735 | * language.h (struct language_defn) <la_val_print>: Remove. |
| 6736 | * language.c (unk_lang_value_print_inner): Rename. Change |
| 6737 | argument types. |
| 6738 | (unknown_language_defn, auto_language_defn): Update. |
| 6739 | * go-valprint.c (go_val_print): Remove. |
| 6740 | * go-lang.h (go_val_print): Don't declare. |
| 6741 | * go-lang.c (go_language_defn): Update. |
| 6742 | * f-valprint.c (f_val_print): Remove. |
| 6743 | * f-lang.h (f_value_print): Don't declare. |
| 6744 | * f-lang.c (f_language_defn): Update. |
| 6745 | * d-valprint.c (d_val_print): Remove. |
| 6746 | * d-lang.h (d_value_print): Don't declare. |
| 6747 | * d-lang.c (d_language_defn): Update. |
| 6748 | * cp-valprint.c (cp_print_value_fields) |
| 6749 | (cp_print_value_fields_rtti, cp_print_value): Remove. |
| 6750 | (cp_print_static_field): Update. |
| 6751 | * c-valprint.c (c_val_print_array, c_val_print_ptr) |
| 6752 | (c_val_print_struct, c_val_print_union, c_val_print_int) |
| 6753 | (c_val_print_memberptr, c_val_print): Remove. |
| 6754 | * c-lang.h (c_val_print_array, cp_print_value_fields) |
| 6755 | (cp_print_value_fields_rtti): Don't declare. |
| 6756 | * c-lang.c (c_language_defn, cplus_language_defn) |
| 6757 | (asm_language_defn, minimal_language_defn): Update. |
| 6758 | * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove. |
| 6759 | (ada_val_print_enum): Take a struct value. |
| 6760 | (ada_val_print_flt, ada_val_print_array, ada_val_print_1) |
| 6761 | (ada_val_print): Remove. |
| 6762 | (ada_value_print_1): Update. |
| 6763 | (printable_val_type): Remove. |
| 6764 | * ada-lang.h (ada_val_print): Don't declare. |
| 6765 | * ada-lang.c (ada_language_defn): Update. |
| 6766 | |
| 6767 | 2020-03-13 Tom Tromey <tom@tromey.com> |
| 6768 | |
| 6769 | * valprint.c (do_val_print): Update. |
| 6770 | * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take |
| 6771 | a struct value. |
| 6772 | (value_to_value_object_no_release): Declare. |
| 6773 | * python/py-value.c (value_to_value_object_no_release): New |
| 6774 | function. |
| 6775 | * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a |
| 6776 | struct value. |
| 6777 | * guile/scm-value.c (vlscm_scm_from_value_no_release): New |
| 6778 | function. |
| 6779 | * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take |
| 6780 | a struct value. |
| 6781 | * guile/guile-internal.h (vlscm_scm_from_value_no_release): |
| 6782 | Declare. |
| 6783 | (gdbscm_apply_val_pretty_printer): Take a struct value. |
| 6784 | * extension.h (apply_ext_lang_val_pretty_printer): Take a struct |
| 6785 | value. |
| 6786 | * extension.c (apply_ext_lang_val_pretty_printer): Take a struct |
| 6787 | value. |
| 6788 | * extension-priv.h (struct extension_language_ops) |
| 6789 | <apply_val_pretty_printer>: Take a struct value. |
| 6790 | * cp-valprint.c (cp_print_value): Create a struct value. |
| 6791 | (cp_print_value): Update. |
| 6792 | |
| 6793 | 2020-03-13 Tom Tromey <tom@tromey.com> |
| 6794 | |
| 6795 | * ada-valprint.c (print_field_values): Call common_val_print. |
| 6796 | |
| 6797 | 2020-03-13 Tom Tromey <tom@tromey.com> |
| 6798 | |
| 6799 | * ada-valprint.c (val_print_packed_array_elements): Remove |
| 6800 | bitoffset and val parameters. Call common_val_print. |
| 6801 | (ada_val_print_string): Remove offset, address, and original_value |
| 6802 | parameters. |
| 6803 | (ada_val_print_array): Update. |
| 6804 | (ada_value_print_array): New function. |
| 6805 | (ada_value_print_1): Call it. |
| 6806 | |
| 6807 | 2020-03-13 Tom Tromey <tom@tromey.com> |
| 6808 | |
| 6809 | * ada-valprint.c (ada_value_print): Use common_val_print. |
| 6810 | |
| 6811 | 2020-03-13 Tom Tromey <tom@tromey.com> |
| 6812 | |
| 6813 | * ada-valprint.c (ada_val_print_ref): Use common_val_print. |
| 6814 | |
| 6815 | 2020-03-13 Tom Tromey <tom@tromey.com> |
| 6816 | |
| 6817 | * ada-valprint.c (ada_value_print_num): New function. |
| 6818 | (ada_value_print_1): Use it. |
| 6819 | |
| 6820 | 2020-03-13 Tom Tromey <tom@tromey.com> |
| 6821 | |
| 6822 | * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite. |
| 6823 | |
| 6824 | 2020-03-13 Tom Tromey <tom@tromey.com> |
| 6825 | |
| 6826 | * ada-valprint.c (ada_value_print_ptr): New function. |
| 6827 | (ada_value_print_1): Use it. |
| 6828 | |
| 6829 | 2020-03-13 Tom Tromey <tom@tromey.com> |
| 6830 | |
| 6831 | * ada-valprint.c (ada_val_print_gnat_array): Take a struct value; |
| 6832 | call common_val_print. |
| 6833 | (ada_val_print_1): Update. |
| 6834 | (ada_value_print_1): New function. |
| 6835 | (ada_value_print_inner): Rewrite. |
| 6836 | |
| 6837 | 2020-03-13 Tom Tromey <tom@tromey.com> |
| 6838 | |
| 6839 | * cp-valprint.c (cp_print_value_fields): Update. |
| 6840 | (cp_print_value): New function. |
| 6841 | |
| 6842 | 2020-03-13 Tom Tromey <tom@tromey.com> |
| 6843 | |
| 6844 | * m2-valprint.c (m2_value_print_inner): Use |
| 6845 | cp_print_value_fields. |
| 6846 | * cp-valprint.c (cp_print_value_fields): New function. |
| 6847 | * c-valprint.c (c_value_print_struct): New function. |
| 6848 | (c_value_print_inner): Use c_value_print_struct. |
| 6849 | * c-lang.h (cp_print_value_fields): Declare. |
| 6850 | |
| 6851 | 2020-03-13 Tom Tromey <tom@tromey.com> |
| 6852 | |
| 6853 | * c-valprint.c (c_value_print_array): New function. |
| 6854 | (c_value_print_inner): Use it. |
| 6855 | |
| 6856 | 2020-03-13 Tom Tromey <tom@tromey.com> |
| 6857 | |
| 6858 | * c-valprint.c (c_value_print_memberptr): New function. |
| 6859 | (c_value_print_inner): Use it. |
| 6860 | |
| 6861 | 2020-03-13 Tom Tromey <tom@tromey.com> |
| 6862 | |
| 6863 | * c-valprint.c (c_value_print_int): New function. |
| 6864 | (c_value_print_inner): Use it. |
| 6865 | |
| 6866 | 2020-03-13 Tom Tromey <tom@tromey.com> |
| 6867 | |
| 6868 | * c-valprint.c (c_value_print_ptr): New function. |
| 6869 | (c_value_print_inner): Use it. |
| 6870 | |
| 6871 | 2020-03-13 Tom Tromey <tom@tromey.com> |
| 6872 | |
| 6873 | * c-valprint.c (c_value_print_inner): Rewrite. |
| 6874 | |
| 6875 | 2020-03-13 Tom Tromey <tom@tromey.com> |
| 6876 | |
| 6877 | * valprint.c (generic_value_print_complex): New function. |
| 6878 | (generic_value_print): Use it. |
| 6879 | |
| 6880 | 2020-03-13 Tom Tromey <tom@tromey.com> |
| 6881 | |
| 6882 | * valprint.c (generic_val_print_float): Don't call |
| 6883 | val_print_scalar_formatted. |
| 6884 | (generic_val_print, generic_value_print): Update. |
| 6885 | |
| 6886 | 2020-03-13 Tom Tromey <tom@tromey.com> |
| 6887 | |
| 6888 | * valprint.c (generic_value_print_char): New function |
| 6889 | (generic_value_print): Use it. |
| 6890 | |
| 6891 | 2020-03-13 Tom Tromey <tom@tromey.com> |
| 6892 | |
| 6893 | * valprint.c (generic_value_print_int): New function. |
| 6894 | (generic_value_print): Use it. |
| 6895 | |
| 6896 | 2020-03-13 Tom Tromey <tom@tromey.com> |
| 6897 | |
| 6898 | * valprint.c (generic_value_print_bool): New function. |
| 6899 | (generic_value_print): Use it. |
| 6900 | |
| 6901 | 2020-03-13 Tom Tromey <tom@tromey.com> |
| 6902 | |
| 6903 | * valprint.c (generic_val_print_func): Simplify. |
| 6904 | (generic_val_print, generic_value_print): Update. |
| 6905 | |
| 6906 | 2020-03-13 Tom Tromey <tom@tromey.com> |
| 6907 | |
| 6908 | * valprint.c (generic_val_print_flags): Remove. |
| 6909 | (generic_val_print, generic_value_print): Update. |
| 6910 | (val_print_type_code_flags): Add original_value parameter. |
| 6911 | |
| 6912 | 2020-03-13 Tom Tromey <tom@tromey.com> |
| 6913 | |
| 6914 | * valprint.c (generic_val_print): Update. |
| 6915 | (generic_value_print): Update. |
| 6916 | * valprint.c (generic_val_print_enum): Don't call |
| 6917 | val_print_scalar_formatted. |
| 6918 | |
| 6919 | 2020-03-13 Tom Tromey <tom@tromey.com> |
| 6920 | |
| 6921 | * valprint.c (generic_value_print): Call generic_value_print_ptr. |
| 6922 | * valprint.c (generic_value_print_ptr): New function. |
| 6923 | |
| 6924 | 2020-03-13 Tom Tromey <tom@tromey.com> |
| 6925 | |
| 6926 | * valprint.c (generic_value_print): Rewrite. |
| 6927 | |
| 6928 | 2020-03-13 Tom Tromey <tom@tromey.com> |
| 6929 | |
| 6930 | * p-valprint.c (pascal_object_print_value_fields) |
| 6931 | (pascal_object_print_value): New functions. |
| 6932 | |
| 6933 | 2020-03-13 Tom Tromey <tom@tromey.com> |
| 6934 | |
| 6935 | * p-valprint.c (pascal_value_print_inner): Rewrite. |
| 6936 | |
| 6937 | 2020-03-13 Tom Tromey <tom@tromey.com> |
| 6938 | |
| 6939 | * f-valprint.c (f_value_print_innner): Rewrite. |
| 6940 | |
| 6941 | 2020-03-13 Tom Tromey <tom@tromey.com> |
| 6942 | |
| 6943 | * m2-valprint.c (m2_print_unbounded_array): New overload. |
| 6944 | (m2_print_unbounded_array): Update. |
| 6945 | (m2_print_array_contents): Take a struct value. |
| 6946 | (m2_value_print_inner): Rewrite. |
| 6947 | |
| 6948 | 2020-03-13 Tom Tromey <tom@tromey.com> |
| 6949 | |
| 6950 | * d-valprint.c (dynamic_array_type): Call d_value_print_inner. |
| 6951 | (d_value_print_inner): New function. |
| 6952 | * d-lang.h (d_value_print_inner): Declare. |
| 6953 | * d-lang.c (d_language_defn): Use d_value_print_inner. |
| 6954 | |
| 6955 | 2020-03-13 Tom Tromey <tom@tromey.com> |
| 6956 | |
| 6957 | * go-valprint.c (go_value_print_inner): New function. |
| 6958 | * go-lang.h (go_value_print_inner): Declare. |
| 6959 | * go-lang.c (go_language_defn): Use go_value_print_inner. |
| 6960 | |
| 6961 | 2020-03-13 Tom Tromey <tom@tromey.com> |
| 6962 | |
| 6963 | * rust-lang.c (val_print_struct, rust_print_enum): Use the value |
| 6964 | API. |
| 6965 | (rust_val_print): Rewrite. |
| 6966 | (rust_value_print_inner): New function, from rust_val_print. |
| 6967 | (rust_language_defn): Use rust_value_print_inner. |
| 6968 | |
| 6969 | 2020-03-13 Tom Tromey <tom@tromey.com> |
| 6970 | |
| 6971 | * ada-valprint.c (ada_value_print_inner): New function. |
| 6972 | * ada-lang.h (ada_value_print_inner): Declare. |
| 6973 | * ada-lang.c (ada_language_defn): Use ada_value_print_inner. |
| 6974 | |
| 6975 | 2020-03-13 Tom Tromey <tom@tromey.com> |
| 6976 | |
| 6977 | * f-valprint.c (f_value_print_innner): New function. |
| 6978 | * f-lang.h (f_value_print_innner): Declare. |
| 6979 | * f-lang.c (f_language_defn): Use f_value_print_innner. |
| 6980 | |
| 6981 | 2020-03-13 Tom Tromey <tom@tromey.com> |
| 6982 | |
| 6983 | * p-valprint.c (pascal_value_print_inner): New function. |
| 6984 | * p-lang.h (pascal_value_print_inner): Declare. |
| 6985 | * p-lang.c (pascal_language_defn): Use pascal_value_print_inner. |
| 6986 | |
| 6987 | 2020-03-13 Tom Tromey <tom@tromey.com> |
| 6988 | |
| 6989 | * m2-valprint.c (m2_value_print_inner): New function. |
| 6990 | * m2-lang.h (m2_value_print_inner): Declare. |
| 6991 | * m2-lang.c (m2_language_defn): Use m2_value_print_inner. |
| 6992 | |
| 6993 | 2020-03-13 Tom Tromey <tom@tromey.com> |
| 6994 | |
| 6995 | * opencl-lang.c (opencl_language_defn): Use c_value_print_inner. |
| 6996 | * objc-lang.c (objc_language_defn): Use c_value_print_inner. |
| 6997 | * c-valprint.c (c_value_print_inner): New function. |
| 6998 | * c-lang.h (c_value_print_inner): Declare. |
| 6999 | * c-lang.c (c_language_defn, cplus_language_defn) |
| 7000 | (asm_language_defn, minimal_language_defn): Use |
| 7001 | c_value_print_inner. |
| 7002 | |
| 7003 | 2020-03-13 Tom Tromey <tom@tromey.com> |
| 7004 | |
| 7005 | * p-valprint.c (pascal_object_print_value_fields): Now static. |
| 7006 | * p-lang.h (pascal_object_print_value_fields): Don't declare. |
| 7007 | |
| 7008 | 2020-03-13 Tom Tromey <tom@tromey.com> |
| 7009 | |
| 7010 | * c-valprint.c (c_val_print_array): Simplify. |
| 7011 | |
| 7012 | 2020-03-13 Tom Tromey <tom@tromey.com> |
| 7013 | |
| 7014 | * valprint.c (value_print_array_elements): New function. |
| 7015 | * valprint.h (value_print_array_elements): Declare. |
| 7016 | |
| 7017 | 2020-03-13 Tom Tromey <tom@tromey.com> |
| 7018 | |
| 7019 | * printcmd.c (print_formatted): Use value_print_scalar_formatted. |
| 7020 | * mips-tdep.c (mips_print_register): Use |
| 7021 | value_print_scalar_formatted. |
| 7022 | |
| 7023 | 2020-03-13 Tom Tromey <tom@tromey.com> |
| 7024 | |
| 7025 | * valprint.h (value_print_scalar_formatted): Declare. |
| 7026 | * valprint.c (value_print_scalar_formatted): New function. |
| 7027 | |
| 7028 | 2020-03-13 Tom Tromey <tom@tromey.com> |
| 7029 | |
| 7030 | * valprint.h (generic_value_print): Declare. |
| 7031 | * valprint.c (generic_value_print): New function. |
| 7032 | |
| 7033 | 2020-03-13 Tom Tromey <tom@tromey.com> |
| 7034 | |
| 7035 | * valprint.c (do_val_print): Call la_value_print_inner, if |
| 7036 | available. |
| 7037 | * rust-lang.c (rust_language_defn): Update. |
| 7038 | * p-lang.c (pascal_language_defn): Update. |
| 7039 | * opencl-lang.c (opencl_language_defn): Update. |
| 7040 | * objc-lang.c (objc_language_defn): Update. |
| 7041 | * m2-lang.c (m2_language_defn): Update. |
| 7042 | * language.h (struct language_defn) <la_value_print_inner>: New |
| 7043 | member. |
| 7044 | * language.c (unknown_language_defn, auto_language_defn): Update. |
| 7045 | * go-lang.c (go_language_defn): Update. |
| 7046 | * f-lang.c (f_language_defn): Update. |
| 7047 | * d-lang.c (d_language_defn): Update. |
| 7048 | * c-lang.c (c_language_defn, cplus_language_defn) |
| 7049 | (asm_language_defn, minimal_language_defn): Update. |
| 7050 | * ada-lang.c (ada_language_defn): Update. |
| 7051 | |
| 7052 | 2020-03-13 Tom Tromey <tom@tromey.com> |
| 7053 | |
| 7054 | * c-valprint.c (c_value_print): Use common_val_print. |
| 7055 | |
| 7056 | 2020-03-13 Tom Tromey <tom@tromey.com> |
| 7057 | |
| 7058 | * cp-valprint.c (cp_print_static_field): Use common_val_print. |
| 7059 | |
| 7060 | 2020-03-13 Tom Tromey <tom@tromey.com> |
| 7061 | |
| 7062 | * f-valprint.c (f77_print_array_1, f_val_print): Use |
| 7063 | common_val_print. |
| 7064 | |
| 7065 | 2020-03-13 Tom Tromey <tom@tromey.com> |
| 7066 | |
| 7067 | * riscv-tdep.c (riscv_print_one_register_info): Use |
| 7068 | common_val_print. |
| 7069 | |
| 7070 | 2020-03-13 Tom Tromey <tom@tromey.com> |
| 7071 | |
| 7072 | * mi/mi-main.c (output_register): Use common_val_print. |
| 7073 | |
| 7074 | 2020-03-13 Tom Tromey <tom@tromey.com> |
| 7075 | |
| 7076 | * infcmd.c (default_print_one_register_info): Use |
| 7077 | common_val_print. |
| 7078 | |
| 7079 | 2020-03-13 Tom Tromey <tom@tromey.com> |
| 7080 | |
| 7081 | * valprint.h (common_val_print_checked): Declare. |
| 7082 | * valprint.c (common_val_print_checked): New function. |
| 7083 | * stack.c (print_frame_arg): Use common_val_print_checked. |
| 7084 | |
| 7085 | 2020-03-13 Tom Tromey <tom@tromey.com> |
| 7086 | |
| 7087 | * valprint.c (do_val_print): New function, from val_print. |
| 7088 | (val_print): Use do_val_print. |
| 7089 | (common_val_print): Use do_val_print. |
| 7090 | |
| 7091 | 2020-03-13 Tom Tromey <tom@tromey.com> |
| 7092 | |
| 7093 | * valprint.c (value_print): Use scoped_value_mark. |
| 7094 | |
| 7095 | 2020-03-13 Tom de Vries <tdevries@suse.de> |
| 7096 | |
| 7097 | PR symtab/25646 |
| 7098 | * psymtab.c (partial_symtab::partial_symtab): Don't set |
| 7099 | globals_offset and statics_offset. Push element onto |
| 7100 | current_global_psymbols and current_static_psymbols stacks. |
| 7101 | (concat): New function. |
| 7102 | (end_psymtab_common): Set globals_offset and statics_offset. Pop |
| 7103 | element from current_global_psymbols and current_static_psymbols |
| 7104 | stacks. Concat popped elements to global_psymbols and |
| 7105 | static_symbols. |
| 7106 | (add_psymbol_to_list): Use current_global_psymbols and |
| 7107 | current_static_psymbols stacks. |
| 7108 | * psymtab.h (class psymtab_storage): Add current_global_psymbols and |
| 7109 | current_static_psymbols fields. |
| 7110 | |
| 7111 | 2020-03-12 Christian Biesinger <cbiesinger@google.com> |
| 7112 | |
| 7113 | * corelow.c (sniff_core_bfd): Remove. |
| 7114 | (class core_target) <m_core_vec>: Remove. |
| 7115 | (core_target::core_target): Update. |
| 7116 | (core_file_fns): Remove. |
| 7117 | (deprecated_add_core_fns): Remove. |
| 7118 | (default_core_sniffer): Remove. |
| 7119 | (sniff_core_bfd): Remove. |
| 7120 | (default_check_format): Remove. |
| 7121 | (gdb_check_format): Remove. |
| 7122 | (core_target_open): Update. |
| 7123 | (core_target::get_core_register_section): Update. |
| 7124 | (get_core_registers_cb): Update. |
| 7125 | (core_target::fetch_registers): Update. |
| 7126 | * gdbcore.h (struct core_fns): Remove. |
| 7127 | (deprecated_add_core_fns): Remove. |
| 7128 | (default_core_sniffer): Remove. |
| 7129 | (default_check_format): Remove. |
| 7130 | |
| 7131 | 2020-03-12 Tom Tromey <tom@tromey.com> |
| 7132 | |
| 7133 | * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a |
| 7134 | CORE_ADDR. |
| 7135 | (struct arm_exidx_entry) <addr>: Now a CORE_ADDR. |
| 7136 | |
| 7137 | 2020-03-12 Tom Tromey <tom@tromey.com> |
| 7138 | |
| 7139 | * remote.c (remote_target::download_tracepoint) |
| 7140 | (remote_target::enable_tracepoint) |
| 7141 | (remote_target::disable_tracepoint): Use phex, not sprintf_vma. |
| 7142 | * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not |
| 7143 | sprintf_vma. |
| 7144 | |
| 7145 | 2020-03-12 Tom Tromey <tom@tromey.com> |
| 7146 | |
| 7147 | * symfile-mem.c: Update CORE_ADDR size assert. |
| 7148 | |
| 7149 | 2020-03-12 Simon Marchi <simon.marchi@efficios.com> |
| 7150 | |
| 7151 | * selftest.m4: Move to gdbsupport/. |
| 7152 | * acinclude.m4: Update path to selftest.m4. |
| 7153 | |
| 7154 | 2020-03-12 Simon Marchi <simon.marchi@efficios.com> |
| 7155 | |
| 7156 | * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to... |
| 7157 | (SELFTESTS_SRCS): ... this. Add disasm-selftests.c, |
| 7158 | gdbarch-selfselftests.c and selftest-arch.c. |
| 7159 | (SUBDIR_UNITTESTS_OBS): Rename to... |
| 7160 | (SELFTESTS_OBS): ... this. |
| 7161 | (COMMON_SFILES): Remove disasm-selftests.c and |
| 7162 | gdbarch-selftests.c. |
| 7163 | * configure.ac: Don't add selftest-arch.{c,o} to |
| 7164 | CONFIG_{SRCS,OBS}. |
| 7165 | * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST |
| 7166 | preprocessor conditions. |
| 7167 | |
| 7168 | 2020-03-12 Simon Marchi <simon.marchi@efficios.com> |
| 7169 | |
| 7170 | * configure.ac: Don't source bfd/development.sh. |
| 7171 | * selftest.m4: Modify comment. |
| 7172 | * configure: Re-generate. |
| 7173 | |
| 7174 | 2020-03-12 Simon Marchi <simon.marchi@efficios.com> |
| 7175 | |
| 7176 | * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is |
| 7177 | not "true" or "false". |
| 7178 | * configure: Re-generate. |
| 7179 | |
| 7180 | 2020-03-12 Christian Biesinger <cbiesinger@google.com> |
| 7181 | |
| 7182 | * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file. |
| 7183 | * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and |
| 7184 | renamed to arm_nbsd_supply_gregset. |
| 7185 | (fetch_register): Update to call arm_nbsd_supply_gregset. |
| 7186 | (fetch_regs): Remove in favor of fetch_register with a -1 regno. |
| 7187 | (arm_netbsd_nat_target::fetch_registers): Update. |
| 7188 | (fetch_elfcore_registers): Removed. |
| 7189 | (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns. |
| 7190 | * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct. |
| 7191 | (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to |
| 7192 | not require NetBSD system headers. |
| 7193 | (arm_nbsd_regset): New struct. |
| 7194 | (arm_nbsd_iterate_over_regset_sections): New function. |
| 7195 | (arm_netbsd_init_abi_common): Updated to call |
| 7196 | set_gdbarch_iterate_over_regset_sections. |
| 7197 | * arm-nbsd-tdep.h: New file. |
| 7198 | |
| 7199 | 2020-03-11 Kevin Buettner <kevinb@redhat.com> |
| 7200 | |
| 7201 | * symtab.c (find_pc_sect_line): Add check which prevents infinite |
| 7202 | recursion. |
| 7203 | |
| 7204 | 2020-03-11 Simon Marchi <simon.marchi@efficios.com> |
| 7205 | |
| 7206 | * configure: Re-generate. |
| 7207 | |
| 7208 | 2020-03-11 Tom Tromey <tromey@adacore.com> |
| 7209 | |
| 7210 | * ada-typeprint.c (print_choices): Fix comment. |
| 7211 | |
| 7212 | 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com> |
| 7213 | |
| 7214 | * buildsyms.c (buildsym_compunit::record_line): Avoid accessing |
| 7215 | previous item in the list, when the list has no items. |
| 7216 | |
| 7217 | 2020-03-11 Tom de Vries <tdevries@suse.de> |
| 7218 | |
| 7219 | * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in |
| 7220 | PROP_LOCLIST handling code. |
| 7221 | |
| 7222 | 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com> |
| 7223 | |
| 7224 | * buildsym-legacy.c (record_line): Pass extra parameter to |
| 7225 | record_line. |
| 7226 | * buildsym.c (buildsym_compunit::record_line): Take an extra |
| 7227 | parameter, reduce duplication in the line table, and record the |
| 7228 | is_stmt flag in the line table. |
| 7229 | * buildsym.h (buildsym_compunit::record_line): Add extra |
| 7230 | parameter. |
| 7231 | * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore |
| 7232 | non-statement lines. |
| 7233 | * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass |
| 7234 | this to the symtab builder. |
| 7235 | (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1. |
| 7236 | (lnp_state_machine::record_line): Pass a suitable is_stmt flag |
| 7237 | through to dwarf_record_line_1. |
| 7238 | * infrun.c (process_event_stop_test): When stepping, don't stop at |
| 7239 | a non-statement instruction, and only refresh the step info when |
| 7240 | we land in the middle of a line's range. Also add an extra |
| 7241 | comment. |
| 7242 | * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt |
| 7243 | field. |
| 7244 | * record-btrace.c (btrace_find_line_range): Only record lines |
| 7245 | marked as is-statement. |
| 7246 | * stack.c (frame_show_address): Show the frame address if we are |
| 7247 | in a non-statement sal. |
| 7248 | * symmisc.c (dump_symtab_1): Print the is_stmt flag. |
| 7249 | (maintenance_print_one_line_table): Print a header for the is_stmt |
| 7250 | column, and include is_stmt information in the output. |
| 7251 | * symtab.c (find_pc_sect_line): Find lines marked as statements in |
| 7252 | preference to non-statements. |
| 7253 | (find_pcs_for_symtab_line): Prefer is-statement entries. |
| 7254 | (find_line_common): Likewise. |
| 7255 | * symtab.h (struct linetable_entry): Add is_stmt field. |
| 7256 | (struct symtab_and_line): Likewise. |
| 7257 | * xcoffread.c (arrange_linetable): Initialise is_stmt field when |
| 7258 | arranging the line table. |
| 7259 | |
| 7260 | 2020-03-07 Tom de Vries <tdevries@suse.de> |
| 7261 | |
| 7262 | * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder |
| 7263 | DIE. |
| 7264 | |
| 7265 | 2020-03-07 Tom Tromey <tom@tromey.com> |
| 7266 | |
| 7267 | * valops.c (value_literal_complex): Remove obsolete comment. |
| 7268 | * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete |
| 7269 | comment. |
| 7270 | |
| 7271 | 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca> |
| 7272 | |
| 7273 | * infrun.h: Forward-declare thread_info. |
| 7274 | (set_step_info): Add thread_info parameter, add doc. |
| 7275 | * infrun.c (set_step_info): Add thread_info parameter, move doc |
| 7276 | to header. |
| 7277 | * infrun.c (process_event_stop_test): Pass thread to |
| 7278 | set_step_info call. |
| 7279 | * infcmd.c (set_step_frame): Add thread_info pointer, pass it to |
| 7280 | set_step_info. |
| 7281 | (prepare_one_step): Add thread_info parameter, pass it to |
| 7282 | set_step_frame and prepare_one_step (recursive) call. |
| 7283 | (step_1): Pass thread to prepare_one_step call. |
| 7284 | (step_command_fsm::should_stop): Pass thread to |
| 7285 | prepare_one_step. |
| 7286 | (until_next_fsm): Pass thread to set_step_frame call. |
| 7287 | (finish_command): Pass thread to set_step_info call. |
| 7288 | |
| 7289 | 2020-03-06 Hannes Domani <ssbssa@yahoo.de> |
| 7290 | |
| 7291 | * windows-tdep.c (windows_solib_create_inferior_hook): |
| 7292 | Check if inferior is running. |
| 7293 | |
| 7294 | 2020-03-06 Tom de Vries <tdevries@suse.de> |
| 7295 | |
| 7296 | * NEWS: Fix "the the". |
| 7297 | * ctfread.c: Same. |
| 7298 | |
| 7299 | 2020-03-06 Tom de Vries <tdevries@suse.de> |
| 7300 | |
| 7301 | * psymtab.c (psymtab_to_symtab): Don't print "done.". |
| 7302 | |
| 7303 | 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com> |
| 7304 | |
| 7305 | * .dir-locals.el: Add a comment referencing the other copies of |
| 7306 | this file. |
| 7307 | |
| 7308 | 2020-03-05 John Baldwin <jhb@FreeBSD.org> |
| 7309 | |
| 7310 | * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for |
| 7311 | psargs. |
| 7312 | |
| 7313 | 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
| 7314 | |
| 7315 | * .gitattributes: New file. |
| 7316 | |
| 7317 | 2020-03-04 Tom Tromey <tom@tromey.com> |
| 7318 | |
| 7319 | * symmisc.c (print_symbol_bcache_statistics) |
| 7320 | (print_objfile_statistics): Update. |
| 7321 | * symfile.c (allocate_symtab): Use intern. |
| 7322 | * psymtab.c (partial_symtab::partial_symtab): Use intern. |
| 7323 | * objfiles.h (struct objfile_per_bfd_storage) <filename_cache, |
| 7324 | macro_cache>: Remove. |
| 7325 | <string_cache>: New member. |
| 7326 | (struct objfile) <intern>: New methods. |
| 7327 | * elfread.c (elf_symtab_read): Use intern. |
| 7328 | * dwarf2/read.c (fixup_go_packaging): Intern package name. |
| 7329 | (dwarf2_compute_name, dwarf2_physname) |
| 7330 | (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern |
| 7331 | names. |
| 7332 | (guess_partial_die_structure_name): Update. |
| 7333 | (partial_die_info::fixup): Intern name. |
| 7334 | (dwarf2_canonicalize_name): Change parameter to objfile. Intern |
| 7335 | name. |
| 7336 | (dwarf2_name): Intern name. Update. |
| 7337 | * buildsym.c (buildsym_compunit::get_macro_table): Use |
| 7338 | string_cache. |
| 7339 | |
| 7340 | 2020-03-04 Tom Tromey <tom@tromey.com> |
| 7341 | |
| 7342 | * jit.c (bfd_open_from_target_memory): Make "target" const. |
| 7343 | * corefile.c (gnutarget): Now const. |
| 7344 | * gdbcore.h (gnutarget): Now const. |
| 7345 | |
| 7346 | 2020-03-04 Hannes Domani <ssbssa@yahoo.de> |
| 7347 | |
| 7348 | * NEWS: Mention support for WOW64 processes. |
| 7349 | * amd64-windows-nat.c (amd64_mappings): Rename and remove static. |
| 7350 | (amd64_windows_segment_register_p): Remove static. |
| 7351 | (_initialize_amd64_windows_nat): Update. |
| 7352 | * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o. |
| 7353 | * i386-windows-nat.c (context_offset): Update. |
| 7354 | (i386_mappings): Rename and remove static. |
| 7355 | (i386_windows_segment_register_p): Remove static. |
| 7356 | (_initialize_i386_windows_nat): Update. |
| 7357 | * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro. |
| 7358 | (STATUS_WX86_SINGLE_STEP): New macro. |
| 7359 | (EnumProcessModulesEx): New macro. |
| 7360 | (Wow64SuspendThread): New macro. |
| 7361 | (Wow64GetThreadContext): New macro. |
| 7362 | (Wow64SetThreadContext): New macro. |
| 7363 | (Wow64GetThreadSelectorEntry): New macro. |
| 7364 | (windows_set_context_register_offsets): Add static. |
| 7365 | (windows_set_segment_register_p): Likewise. |
| 7366 | (windows_add_thread): Adapt for WOW64 processes. |
| 7367 | (windows_fetch_one_register): Likewise. |
| 7368 | (windows_nat_target::fetch_registers): Likewise. |
| 7369 | (windows_store_one_register): Likewise. |
| 7370 | (display_selector): Likewise. |
| 7371 | (display_selectors): Likewise. |
| 7372 | (handle_exception): Likewise. |
| 7373 | (windows_continue): Likewise. |
| 7374 | (windows_nat_target::resume): Likewise. |
| 7375 | (windows_add_all_dlls): Likewise. |
| 7376 | (do_initial_windows_stuff): Likewise. |
| 7377 | (windows_nat_target::attach): Likewise. |
| 7378 | (windows_get_exec_module_filename): Likewise. |
| 7379 | (windows_nat_target::create_inferior): Likewise. |
| 7380 | (windows_xfer_siginfo): Likewise. |
| 7381 | (_initialize_loadable): Initialize Wow64SuspendThread, |
| 7382 | Wow64GetThreadContext, Wow64SetThreadContext, |
| 7383 | Wow64GetThreadSelectorEntry and EnumProcessModulesEx. |
| 7384 | * windows-nat.h (windows_set_context_register_offsets): |
| 7385 | Remove declaration. |
| 7386 | (windows_set_segment_register_p): Likewise. |
| 7387 | (i386_windows_segment_register_p): Add declaration. |
| 7388 | (amd64_windows_segment_register_p): Likewise. |
| 7389 | |
| 7390 | 2020-03-04 Luis Machado <luis.machado@linaro.org> |
| 7391 | |
| 7392 | Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions |
| 7393 | in "info registers" for AArch64/ARM. |
| 7394 | |
| 7395 | The change caused "info registers" to not print GPR's. |
| 7396 | |
| 7397 | gdb/ChangeLog: |
| 7398 | |
| 7399 | 2020-02-01 Shahab Vahedi <shahab@synopsys.com> |
| 7400 | |
| 7401 | * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0 |
| 7402 | when reg->group is empty and reggroup is not. |
| 7403 | |
| 7404 | 2020-03-03 Tom Tromey <tromey@adacore.com> |
| 7405 | |
| 7406 | * dwarf2/frame.c (struct dwarf2_frame_cache) |
| 7407 | <checked_tailcall_bottom, entry_cfa_sp_offset, |
| 7408 | entry_cfa_sp_offset_p>: Remove members. |
| 7409 | (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first. |
| 7410 | (dwarf2_frame_prev_register): Don't call |
| 7411 | dwarf2_tailcall_sniffer_first. |
| 7412 | (dwarf2_append_unwinders): Don't append tailcall unwinder. |
| 7413 | * frame-unwind.c (add_unwinder): New fuction. |
| 7414 | (frame_unwind_init): Use it. Add tailcall unwinder. |
| 7415 | |
| 7416 | 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com> |
| 7417 | Alok Kumar Sharma <AlokKumar.Sharma@amd.com> |
| 7418 | |
| 7419 | * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero |
| 7420 | value should be printed as true. |
| 7421 | |
| 7422 | 2020-03-03 Hannes Domani <ssbssa@yahoo.de> |
| 7423 | |
| 7424 | * windows-tdep.c (windows_solib_create_inferior_hook): New function. |
| 7425 | (windows_init_abi): Set and use windows_so_ops. |
| 7426 | |
| 7427 | 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com> |
| 7428 | |
| 7429 | * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR |
| 7430 | when verifying if dealing with a convenience variable. |
| 7431 | |
| 7432 | 2020-03-03 Luis Machado <luis.machado@linaro.org> |
| 7433 | |
| 7434 | * auxv.c (default_print_auxv_entry): Add new AUXV entries. |
| 7435 | |
| 7436 | 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca> |
| 7437 | |
| 7438 | * infrun.c (gdbarch_supports_displaced_stepping): New. |
| 7439 | (use_displaced_stepping): Break up conditions in smaller pieces. |
| 7440 | Use gdbarch_supports_displaced_stepping. |
| 7441 | (displaced_step_prepare_throw): Use |
| 7442 | gdbarch_supports_displaced_stepping. |
| 7443 | |
| 7444 | 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com> |
| 7445 | |
| 7446 | * NEWS: Mention new behaviour of the history filename. |
| 7447 | * top.c (write_history_p): Add comment. |
| 7448 | (show_write_history_p): Add header comment, give a different |
| 7449 | message when history writing is on, but the history filename is |
| 7450 | empty. |
| 7451 | (history_filename): Add comment. |
| 7452 | (history_filename_empty): New function. |
| 7453 | (show_history_filename): Add header comment, give a different |
| 7454 | message when the filename is empty. |
| 7455 | (init_history): Compare history_filename against nullptr, and only |
| 7456 | read history if the filename is not empty. |
| 7457 | (set_history_filename): Add header comment, and only make |
| 7458 | non-empty filenames absolute. |
| 7459 | (init_main): Make the filename argument to 'set history filename' |
| 7460 | optional. |
| 7461 | |
| 7462 | 2020-03-02 Christian Biesinger <cbiesinger@google.com> |
| 7463 | |
| 7464 | * arm-nbsd-nat.c (arm_supply_fparegset): Rename to... |
| 7465 | (arm_supply_vfpregset): ...this, and update to use VFP registers. |
| 7466 | (fetch_fp_register): Update. |
| 7467 | (fetch_fp_regs): Update. |
| 7468 | (store_fp_register): Update. |
| 7469 | (store_fp_regs): Update. |
| 7470 | (arm_netbsd_nat_target::read_description): New function. |
| 7471 | (fetch_elfcore_registers): Update. |
| 7472 | |
| 7473 | 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com> |
| 7474 | |
| 7475 | * remote.c (remote_target::remote_parse_stop_reply): Don't use the |
| 7476 | general_thread if the stop reply is missing a thread-id. |
| 7477 | (remote_target::process_stop_reply): Use the first non-exited |
| 7478 | thread if the target didn't pass a thread-id. |
| 7479 | * infrun.c (do_target_wait): Move call to |
| 7480 | switch_to_inferior_no_thread to .... |
| 7481 | (do_target_wait_1): ... here. |
| 7482 | |
| 7483 | 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk> |
| 7484 | |
| 7485 | * debuginfod-support.c: Include defs.h first. |
| 7486 | |
| 7487 | 2020-02-28 Tom de Vries <tdevries@suse.de> |
| 7488 | |
| 7489 | * symfile.c (set_initial_language): Use default language for lookup. |
| 7490 | |
| 7491 | 2020-02-28 Simon Marchi <simon.marchi@efficios.com> |
| 7492 | |
| 7493 | * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove |
| 7494 | reader variable, pass `this` to read_cutu_die_from_dwo. |
| 7495 | |
| 7496 | 2020-02-27 Aaron Merey <amerey@redhat.com> |
| 7497 | |
| 7498 | * source.c (open_source_file): Check for nullptr when computing |
| 7499 | srcpath. |
| 7500 | |
| 7501 | 2020-02-27 Tom Tromey <tromey@adacore.com> |
| 7502 | |
| 7503 | * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a |
| 7504 | member. |
| 7505 | (dwarf2_add_field): Don't update nfields. |
| 7506 | (dwarf2_attach_fields_to_type, process_structure_scope): Update. |
| 7507 | |
| 7508 | 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com> |
| 7509 | |
| 7510 | * gdbtypes.c (create_array_type_with_stride): Use std::abs not |
| 7511 | abs. |
| 7512 | |
| 7513 | 2020-02-26 Tom Tromey <tom@tromey.com> |
| 7514 | |
| 7515 | * dwarf2/read.c (struct dwarf2_include_psymtab): New. |
| 7516 | (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab. |
| 7517 | (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p) |
| 7518 | (dwarf2_psymtab::get_compunit_symtab): Remove null checks for |
| 7519 | per_cu_data. |
| 7520 | |
| 7521 | 2020-02-26 Tom Tromey <tom@tromey.com> |
| 7522 | |
| 7523 | * dwarf2/index-write.c (psym_index_map): Change type. |
| 7524 | (add_address_entry_worker, write_one_signatured_type) |
| 7525 | (recursively_count_psymbols, recursively_write_psymbols) |
| 7526 | (class debug_names, psyms_seen_size, write_gdbindex) |
| 7527 | (write_debug_names): Use partial_symtab, not dwarf2_psymtab. |
| 7528 | |
| 7529 | 2020-02-26 Aaron Merey <amerey@redhat.com> |
| 7530 | |
| 7531 | * Makefile.in: Handle optional debuginfod support. |
| 7532 | * NEWS: Update. |
| 7533 | * README: Add --with-debuginfod summary. |
| 7534 | * config.in: Regenerate. |
| 7535 | * configure: Regenerate. |
| 7536 | * configure.ac: Handle optional debuginfod support. |
| 7537 | * debuginfod-support.c: debuginfod helper functions. |
| 7538 | * debuginfod-support.h: Ditto. |
| 7539 | * doc/gdb.texinfo: Add --with-debuginfod to configure options |
| 7540 | summary. |
| 7541 | * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers |
| 7542 | when a dwz file cannot be found. |
| 7543 | * elfread.c (elf_symfile_read): Query debuginfod servers when a |
| 7544 | debuginfo file cannot be found. |
| 7545 | * source.c (open_source_file): Query debuginfod servers when a |
| 7546 | source file cannot be found. |
| 7547 | * top.c (print_gdb_configuration): Include |
| 7548 | --{with,without}-debuginfod in the output. |
| 7549 | |
| 7550 | 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com> |
| 7551 | |
| 7552 | * thread.c (thr_try_catch_cmd): Print thread name. |
| 7553 | |
| 7554 | 2020-02-26 Simon Marchi <simon.marchi@efficios.com> |
| 7555 | |
| 7556 | * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off, |
| 7557 | dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes, |
| 7558 | dwarf2_fetch_die_type_sect_off): Move to... |
| 7559 | * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off, |
| 7560 | dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes, |
| 7561 | dwarf2_fetch_die_type_sect_off): ... here. |
| 7562 | * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off, |
| 7563 | dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes, |
| 7564 | dwarf2_fetch_die_type_sect_off): Move doc to header file. |
| 7565 | |
| 7566 | 2020-02-26 Tom de Vries <tdevries@suse.de> |
| 7567 | |
| 7568 | PR gdb/25603 |
| 7569 | * symfile.c (set_initial_language): Exit-early if |
| 7570 | language_mode == language_mode_manual. |
| 7571 | |
| 7572 | 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca> |
| 7573 | |
| 7574 | * dwarf2/loc.h (dwarf2_read_addr_index): Move... |
| 7575 | * dwarf2/read.h (dwarf2_read_addr_index): ... here. |
| 7576 | * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header. |
| 7577 | |
| 7578 | 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com> |
| 7579 | |
| 7580 | * gdbtypes.c (create_array_type_with_stride): Handle negative |
| 7581 | array strides. |
| 7582 | * valarith.c (value_subscripted_rvalue): Likewise. |
| 7583 | |
| 7584 | 2020-02-25 Luis Machado <luis.machado@linaro.org> |
| 7585 | |
| 7586 | * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo. |
| 7587 | |
| 7588 | 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca> |
| 7589 | |
| 7590 | * loc.h (dwarf2_get_die_type): Move to... |
| 7591 | * read.h (dwarf2_get_die_type): ... here. |
| 7592 | * read.c (dwarf2_get_die_type): Move doc to header. |
| 7593 | |
| 7594 | 2020-02-25 Joel Brobecker <brobecker@adacore.com> |
| 7595 | |
| 7596 | * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and |
| 7597 | 'gnulib/Makefile.in' to the list. |
| 7598 | |
| 7599 | 2020-02-24 Tom Tromey <tom@tromey.com> |
| 7600 | |
| 7601 | * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>: |
| 7602 | Remove. |
| 7603 | * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use |
| 7604 | XOBNEWVEC. |
| 7605 | |
| 7606 | 2020-02-24 Tom Tromey <tom@tromey.com> |
| 7607 | |
| 7608 | * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>: |
| 7609 | New method. |
| 7610 | * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove. |
| 7611 | (dw2_do_instantiate_symtab, dw2_get_file_names) |
| 7612 | (build_type_psymtab_dependencies, load_full_type_unit): Update. |
| 7613 | |
| 7614 | 2020-02-24 Tom Tromey <tom@tromey.com> |
| 7615 | |
| 7616 | * dwarf2read.c (dwarf2_build_psymtabs_hard): Use |
| 7617 | make_scoped_restore. |
| 7618 | (dwarf2_psymtab::read_symtab): Don't clear |
| 7619 | reading_partial_symbols. |
| 7620 | |
| 7621 | 2020-02-24 Tom de Vries <tdevries@suse.de> |
| 7622 | |
| 7623 | PR gdb/25592 |
| 7624 | * stack.c (iterate_over_block_locals): Handle LOC_CONST. |
| 7625 | |
| 7626 | 2020-02-24 Tom de Vries <tdevries@suse.de> |
| 7627 | |
| 7628 | * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for |
| 7629 | commands layout next/prev/regs. |
| 7630 | |
| 7631 | 2020-02-22 Tom Tromey <tom@tromey.com> |
| 7632 | |
| 7633 | * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare. |
| 7634 | * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static. |
| 7635 | |
| 7636 | 2020-02-22 Tom Tromey <tom@tromey.com> |
| 7637 | |
| 7638 | * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window. |
| 7639 | |
| 7640 | 2020-02-22 Tom Tromey <tom@tromey.com> |
| 7641 | |
| 7642 | * tui/tui-win.c (_initialize_tui_win): Add usage text. |
| 7643 | * tui/tui-stack.c (_initialize_tui_stack): Add usage text. |
| 7644 | * tui/tui-regs.c (_initialize_tui_regs): Add usage text. |
| 7645 | * tui/tui.c (_initialize_tui): Add usage text. |
| 7646 | |
| 7647 | 2020-02-22 Tom Tromey <tom@tromey.com> |
| 7648 | |
| 7649 | * tui/tui-win.c (tui_set_focus_command) |
| 7650 | (tui_set_win_height_command): Use error_no_arg. |
| 7651 | (_initialize_tui_win): Update help text. |
| 7652 | (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define. |
| 7653 | |
| 7654 | 2020-02-22 Tom Tromey <tom@tromey.com> |
| 7655 | |
| 7656 | * tui/tui-layout.c (extract_display_start_addr): Rewrite. |
| 7657 | * tui/tui-disasm.h (struct tui_disasm_window) |
| 7658 | <display_start_addr>: Declare. |
| 7659 | * tui/tui-source.h (struct tui_source_window) |
| 7660 | <display_start_addr>: Declare. |
| 7661 | * tui/tui-winsource.h (struct tui_source_window_base) |
| 7662 | <show_source_line, display_start_addr>: New methods. |
| 7663 | <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>: |
| 7664 | Rename and move to protected section. |
| 7665 | * tui/tui-winsource.c (tui_source_window_base::update_source_window) |
| 7666 | (tui_source_window_base::do_erase_source_content): Update. |
| 7667 | (tui_source_window_base::show_source_line): Now a method. |
| 7668 | (tui_source_window_base::show_source_content) |
| 7669 | (tui_source_window_base::tui_source_window_base) |
| 7670 | (tui_source_window_base::rerender) |
| 7671 | (tui_source_window_base::refill) |
| 7672 | (tui_source_window_base::do_scroll_horizontal) |
| 7673 | (tui_source_window_base::set_is_exec_point_at) |
| 7674 | (tui_source_window_base::update_breakpoint_info) |
| 7675 | (tui_source_window_base::update_exec_info): Update. |
| 7676 | * tui/tui-source.c (tui_source_window::set_contents) |
| 7677 | (tui_source_window::showing_source_p) |
| 7678 | (tui_source_window::do_scroll_vertical) |
| 7679 | (tui_source_window::location_matches_p) |
| 7680 | (tui_source_window::line_is_displayed): Update. |
| 7681 | (tui_source_window::display_start_addr): New method. |
| 7682 | * tui/tui-disasm.c (tui_disasm_window::set_contents) |
| 7683 | (tui_disasm_window::do_scroll_vertical) |
| 7684 | (tui_disasm_window::location_matches_p): Update. |
| 7685 | (tui_disasm_window::display_start_addr): New method. |
| 7686 | |
| 7687 | 2020-02-22 Tom Tromey <tom@tromey.com> |
| 7688 | |
| 7689 | * NEWS: Add entry for gdb.register_window_type. |
| 7690 | * tui/tui-layout.h (window_factory): New typedef. |
| 7691 | (tui_register_window): Declare. |
| 7692 | * tui/tui-layout.c (saved_tui_windows): New global. |
| 7693 | (tui_apply_current_layout): Use it. |
| 7694 | (tui_register_window): New function. |
| 7695 | * python/python.c (do_start_initialization): Call |
| 7696 | gdbpy_initialize_tui. |
| 7697 | (python_GdbMethods): Add "register_window_type" function. |
| 7698 | * python/python-internal.h (gdbpy_register_tui_window) |
| 7699 | (gdbpy_initialize_tui): Declare. |
| 7700 | * python/py-tui.c: New file. |
| 7701 | * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c. |
| 7702 | |
| 7703 | 2020-02-22 Tom Tromey <tom@tromey.com> |
| 7704 | |
| 7705 | * tui/tui-io.c (do_tui_putc): Don't omit annotations. |
| 7706 | |
| 7707 | 2020-02-22 Tom Tromey <tom@tromey.com> |
| 7708 | |
| 7709 | * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c. |
| 7710 | * tui/tui-data.h (tui_set_win_with_focus): Don't declare. |
| 7711 | * tui/tui-data.c (tui_set_win_with_focus): Remove. |
| 7712 | (tui_set_win_focus_to): Move from tui-win.c. |
| 7713 | |
| 7714 | 2020-02-22 Tom Tromey <tom@tromey.com> |
| 7715 | |
| 7716 | * tui/tui-layout.c (make_standard_window, get_locator_window): New |
| 7717 | functions. |
| 7718 | (known_window_types): New global. |
| 7719 | (tui_get_window_by_name): Reimplement. |
| 7720 | (initialize_known_windows): New function. |
| 7721 | (validate_window_name): Rewrite. |
| 7722 | (_initialize_tui_layout): Call initialize_known_windows. |
| 7723 | |
| 7724 | 2020-02-22 Tom Tromey <tom@tromey.com> |
| 7725 | |
| 7726 | * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>: |
| 7727 | Remove constants. |
| 7728 | * tui/tui-winsource.h (struct tui_source_window_base) |
| 7729 | <tui_source_window_base>: Remove parameter. |
| 7730 | * tui/tui-winsource.c |
| 7731 | (tui_source_window_base::tui_source_window_base): Remove |
| 7732 | parameter. |
| 7733 | (tui_source_window_base::refill): Update. |
| 7734 | * tui/tui-stack.h (struct tui_locator_window) |
| 7735 | <tui_locator_window>: Update. |
| 7736 | * tui/tui-source.h (struct tui_source_window) <tui_source_window>: |
| 7737 | Default the constructor. |
| 7738 | * tui/tui-regs.h (struct tui_data_item_window) |
| 7739 | <tui_data_item_window>: Default the constructor. |
| 7740 | (struct tui_data_window) <tui_data_window>: Likewise. |
| 7741 | * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>: |
| 7742 | Default the constructor. |
| 7743 | * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>: |
| 7744 | Default the constructor. |
| 7745 | <type>: Remove. |
| 7746 | (struct tui_win_info) <tui_win_info>: Default the constructor. |
| 7747 | * tui/tui-data.c (tui_win_info::tui_win_info): Remove. |
| 7748 | * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>: |
| 7749 | Default the constructor. |
| 7750 | |
| 7751 | 2020-02-22 Tom Tromey <tom@tromey.com> |
| 7752 | |
| 7753 | * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare. |
| 7754 | * tui/tui-wingeneral.c (tui_make_all_invisible): Remove. |
| 7755 | * tui/tui-win.c (tui_resize_all): Don't call |
| 7756 | tui_delete_invisible_windows. |
| 7757 | * tui/tui-layout.c (tui_apply_current_layout): Delete windows when |
| 7758 | done. |
| 7759 | (tui_set_layout): Update. |
| 7760 | (tui_add_win_to_layout): Don't call tui_delete_invisible_windows. |
| 7761 | * tui/tui-data.h (tui_delete_invisible_windows): Don't declare. |
| 7762 | * tui/tui-data.c (tui_delete_invisible_windows): Remove. |
| 7763 | |
| 7764 | 2020-02-22 Tom Tromey <tom@tromey.com> |
| 7765 | |
| 7766 | * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity |
| 7767 | correctly. |
| 7768 | |
| 7769 | 2020-02-22 Tom Tromey <tom@tromey.com> |
| 7770 | |
| 7771 | * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement. |
| 7772 | |
| 7773 | 2020-02-22 Tom Tromey <tom@tromey.com> |
| 7774 | |
| 7775 | * tui/tui-winsource.h (struct tui_source_window_iterator) |
| 7776 | <inner_iterator>: New etytypedef. |
| 7777 | <tui_source_window_iterator>: Take "end" parameter. |
| 7778 | <tui_source_window_iterator>: Take iterator. |
| 7779 | <operator*, advance>: Update. |
| 7780 | <m_iter>: Change type. |
| 7781 | <m_end>: New field. |
| 7782 | (struct tui_source_windows) <begin, end>: Update. |
| 7783 | * tui/tui-layout.c (tui_windows): New global. |
| 7784 | (tui_apply_current_layout): Clear tui_windows. |
| 7785 | (tui_layout_window::apply): Update tui_windows. |
| 7786 | * tui/tui-data.h (tui_windows): Declare. |
| 7787 | (all_tui_windows): Now inline function. |
| 7788 | (class tui_window_iterator, struct all_tui_windows): Remove. |
| 7789 | |
| 7790 | 2020-02-22 Tom Tromey <tom@tromey.com> |
| 7791 | |
| 7792 | PR tui/17850: |
| 7793 | * tui/tui-win.c (tui_gen_win_info::max_width): New method. |
| 7794 | * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add |
| 7795 | "height" argument. |
| 7796 | (class tui_layout_window) <get_sizes>: Likewise. |
| 7797 | (class tui_layout_split) <tui_layout_split>: Add "vertical" |
| 7798 | argument. |
| 7799 | <get_sizes>: Add "height" argument. |
| 7800 | <m_vertical>: New field. |
| 7801 | * tui/tui-layout.c (tui_layout_split::clone): Update. |
| 7802 | (tui_layout_split::get_sizes): Add "height" argument. |
| 7803 | (tui_layout_split::adjust_size, tui_layout_split::apply): Update. |
| 7804 | (tui_new_layout_command): Parse "-horizontal". |
| 7805 | (_initialize_tui_layout): Update help string. |
| 7806 | (tui_layout_split::specification): Add "-horizontal" when needed. |
| 7807 | * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height" |
| 7808 | argument. |
| 7809 | * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>: |
| 7810 | New methods. |
| 7811 | |
| 7812 | 2020-02-22 Tom Tromey <tom@tromey.com> |
| 7813 | |
| 7814 | * tui/tui-layout.h (enum tui_adjust_result): New. |
| 7815 | (class tui_layout_base) <adjust_size>: Return tui_adjust_result. |
| 7816 | (class tui_layout_window) <adjust_size>: Return |
| 7817 | tui_adjust_result. Rewrite. |
| 7818 | (class tui_layout_split) <adjust_size>: Return tui_adjust_result. |
| 7819 | * tui/tui-layout.c (tui_layout_split::adjust_size): Update. |
| 7820 | |
| 7821 | 2020-02-22 Tom Tromey <tom@tromey.com> |
| 7822 | |
| 7823 | * tui/tui-layout.h (class tui_layout_split) <add_split>: Change |
| 7824 | parameter and return types. |
| 7825 | (class tui_layout_base) <specification>: Add "depth". |
| 7826 | (class tui_layout_window) <specification>: Add "depth". |
| 7827 | (class tui_layout_split) <specification>: Add "depth". |
| 7828 | * tui/tui-layout.c (tui_layout_split::add_split): Change parameter |
| 7829 | and return types. |
| 7830 | (tui_new_layout_command): Parse sub-layouts. |
| 7831 | (_initialize_tui_layout): Update help string. |
| 7832 | (tui_layout_window::specification): Add "depth". |
| 7833 | (add_layout_command): Update. |
| 7834 | |
| 7835 | 2020-02-22 Tom Tromey <tom@tromey.com> |
| 7836 | |
| 7837 | * NEWS: Add "tui new-layout" item. |
| 7838 | * tui/tui-layout.c (add_layout_command): Return cmd_list_element. |
| 7839 | Add new-layout command to help text. |
| 7840 | (validate_window_name): New function. |
| 7841 | (tui_new_layout_command): New function. |
| 7842 | (_initialize_tui_layout): Register "new-layout". |
| 7843 | (tui_layout_window::specification): New method. |
| 7844 | (tui_layout_window::specification): New method. |
| 7845 | * tui/tui-layout.h (class tui_layout_base) <specification>: New |
| 7846 | method. |
| 7847 | (class tui_layout_window) <specification>: New method. |
| 7848 | (class tui_layout_split) <specification>: New method. |
| 7849 | |
| 7850 | 2020-02-22 Tom Tromey <tom@tromey.com> |
| 7851 | |
| 7852 | * tui/tui.c (tui_enable): Call tui_set_initial_layout. |
| 7853 | * tui/tui-win.c (window_name_completer): Update comment. |
| 7854 | * tui/tui-layout.h (class tui_layout_base) <replace_window>: |
| 7855 | Declare method. |
| 7856 | (class tui_layout_window) <replace_window>: Likewise. |
| 7857 | (class tui_layout_split) <replace_window>: Likewise. |
| 7858 | (tui_set_layout): Don't declare. |
| 7859 | (tui_set_initial_layout): Declare function. |
| 7860 | * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout) |
| 7861 | (asm_regs_layout): New globals. |
| 7862 | (tui_current_layout, show_layout): Remove. |
| 7863 | (tui_set_layout, tui_add_win_to_layout): Rewrite. |
| 7864 | (find_layout, tui_apply_layout): New function. |
| 7865 | (layout_completer): Remove. |
| 7866 | (tui_next_layout): Reimplement. |
| 7867 | (tui_next_layout_command): New function. |
| 7868 | (tui_set_initial_layout, tui_prev_layout_command): New functions. |
| 7869 | (tui_regs_layout): Reimplement. |
| 7870 | (tui_regs_layout_command): New function. |
| 7871 | (extract_display_start_addr): Rewrite. |
| 7872 | (next_layout, prev_layout): Remove. |
| 7873 | (tui_layout_window::replace_window): New method. |
| 7874 | (tui_layout_split::replace_window): New method. |
| 7875 | (destroy_layout): New function. |
| 7876 | (layout_list): New global. |
| 7877 | (add_layout_command): New function. |
| 7878 | (initialize_layouts): Update. |
| 7879 | (tui_layout_command): New function. |
| 7880 | (_initialize_tui_layout): Install "layout" commands. |
| 7881 | * tui/tui-data.h (enum tui_layout_type): Remove. |
| 7882 | (tui_current_layout): Don't declare. |
| 7883 | |
| 7884 | 2020-02-22 Tom Tromey <tom@tromey.com> |
| 7885 | |
| 7886 | * tui/tui-regs.c (tui_reg_layout): Remove. |
| 7887 | (tui_reg_command): Use tui_regs_layout. |
| 7888 | * tui/tui-layout.h (tui_reg_command): Declare. |
| 7889 | * tui/tui-layout.c (tui_reg_command): New function. |
| 7890 | |
| 7891 | 2020-02-22 Tom Tromey <tom@tromey.com> |
| 7892 | |
| 7893 | * tui/tui.c (tui_rl_delete_other_windows): Call |
| 7894 | tui_remove_some_windows. |
| 7895 | * tui/tui-layout.h (class tui_layout_base) <remove_windows>: |
| 7896 | Declare method. |
| 7897 | (class tui_layout_window) <remove_windows>: New method. |
| 7898 | (class tui_layout_split) <remove_windows>: Declare. |
| 7899 | (tui_remove_some_windows): Declare. |
| 7900 | * tui/tui-layout.c (tui_remove_some_windows): New function. |
| 7901 | (tui_layout_split::remove_windows): New method. |
| 7902 | |
| 7903 | 2020-02-22 Tom Tromey <tom@tromey.com> |
| 7904 | |
| 7905 | * tui/tui.c (tui_rl_change_windows): Call tui_next_layout. |
| 7906 | * tui/tui-layout.h (tui_next_layout): Declare. |
| 7907 | * tui/tui-layout.c (tui_next_layout): New function. |
| 7908 | |
| 7909 | 2020-02-22 Tom Tromey <tom@tromey.com> |
| 7910 | |
| 7911 | * tui/tui-regs.c (tui_data_window::display_registers_from): Use |
| 7912 | correct coordinates. |
| 7913 | |
| 7914 | 2020-02-22 Tom Tromey <tom@tromey.com> |
| 7915 | |
| 7916 | * tui/tui-layout.h (tui_add_win_to_layout): Add comment. |
| 7917 | * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove |
| 7918 | DATA_WIN case. |
| 7919 | |
| 7920 | 2020-02-22 Tom Tromey <tom@tromey.com> |
| 7921 | |
| 7922 | * tui/tui-disasm.c (tui_get_low_disassembly_address): Use |
| 7923 | TUI_DISASM_WIN, not tui_win_list. |
| 7924 | |
| 7925 | 2020-02-22 Tom Tromey <tom@tromey.com> |
| 7926 | |
| 7927 | * valprint.c (generic_val_print_enum_1) |
| 7928 | (val_print_type_code_flags): Style member names. |
| 7929 | * rust-lang.c (val_print_struct, rust_print_enum) |
| 7930 | (rust_print_struct_def, rust_internal_print_type): Style member |
| 7931 | names. |
| 7932 | * p-valprint.c (pascal_object_print_value_fields): Style member |
| 7933 | names. Only call fprintf_symbol_filtered for static members. |
| 7934 | * m2-typeprint.c (m2_record_fields, m2_enum): Style member names. |
| 7935 | * f-valprint.c (f_val_print): Style member names. |
| 7936 | * f-typeprint.c (f_type_print_base): Style member names. |
| 7937 | * cp-valprint.c (cp_print_value_fields): Style member names. Only |
| 7938 | call fprintf_symbol_filtered for static members. |
| 7939 | (cp_print_class_member): Style member names. |
| 7940 | * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style |
| 7941 | member names. |
| 7942 | * ada-valprint.c (ada_print_scalar): Style enum names. |
| 7943 | (ada_val_print_enum): Likewise. |
| 7944 | * ada-typeprint.c (print_enum_type): Style enum names. |
| 7945 | |
| 7946 | 2020-02-21 Tom Tromey <tom@tromey.com> |
| 7947 | |
| 7948 | * psympriv.h (struct partial_symtab): Update comment. |
| 7949 | |
| 7950 | 2020-02-21 Tom Tromey <tromey@adacore.com> |
| 7951 | |
| 7952 | * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter |
| 7953 | type is CORE_ADDR. |
| 7954 | |
| 7955 | 2020-02-21 Tom de Vries <tdevries@suse.de> |
| 7956 | |
| 7957 | PR gdb/25534 |
| 7958 | * psymtab.c (partial_symtab::read_dependencies): Don't read dependency |
| 7959 | if dependencies[i]->user != NULL. |
| 7960 | |
| 7961 | 2020-02-21 Ali Tamur <tamur@google.com> |
| 7962 | |
| 7963 | * dwarf2/read.c (dwarf2_name): Add null check. |
| 7964 | |
| 7965 | 2020-02-20 Tom Tromey <tom@tromey.com> |
| 7966 | |
| 7967 | * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not |
| 7968 | ">=", in binary search. |
| 7969 | (dwarf2_find_containing_comp_unit): New overload. |
| 7970 | (run_test): New self-test. |
| 7971 | (_initialize_dwarf2_read): Register new test. |
| 7972 | |
| 7973 | 2020-02-20 Nelson Chu <nelson.chu@sifive.com> |
| 7974 | |
| 7975 | * riscv-tdep.c: Updated since the DECLARE_CSR is changed. |
| 7976 | * riscv-tdep.h: Likewise. |
| 7977 | * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without |
| 7978 | rv32-only CSR. |
| 7979 | * features/riscv/64bit-csr.xml: Regenerated. |
| 7980 | |
| 7981 | 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com> |
| 7982 | Tom Tromey <tom@tromey.com> |
| 7983 | |
| 7984 | * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead |
| 7985 | of 'fputc_unfiltered'. |
| 7986 | (putchar_unfiltered): Call 'fputc_unfiltered'. |
| 7987 | (fputc_unfiltered): Call 'fputs_unfiltered'. |
| 7988 | |
| 7989 | 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com> |
| 7990 | |
| 7991 | * config.in: Regenerate. |
| 7992 | * configure: Regenerate. |
| 7993 | * configure.ac: Add --with-python-libdir option. |
| 7994 | * main.c: Use WITH_PYTHON_LIBDIR. |
| 7995 | |
| 7996 | 2020-02-19 Tom Tromey <tom@tromey.com> |
| 7997 | |
| 7998 | * symtab.c (general_symbol_info::compute_and_set_names): Use |
| 7999 | obstack_strndup. Simplify call to symbol_set_demangled_name. |
| 8000 | |
| 8001 | 2020-02-19 Simon Marchi <simon.marchi@efficios.com> |
| 8002 | |
| 8003 | * dwarf2/read.c (allocate_signatured_type_table, |
| 8004 | allocate_dwo_unit_table, allocate_type_unit_groups_table, |
| 8005 | allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table): |
| 8006 | Remove objfile parameter, update all callers. |
| 8007 | |
| 8008 | 2020-02-19 Doug Evans <dje@google.com> |
| 8009 | |
| 8010 | PR rust/25535 |
| 8011 | * rust-lang.c (rust_print_enum): Apply embedded_offset to |
| 8012 | rust_enum_variant calculation. |
| 8013 | |
| 8014 | 2020-02-19 Tom Tromey <tromey@adacore.com> |
| 8015 | |
| 8016 | * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR. |
| 8017 | |
| 8018 | 2020-02-19 Tom Tromey <tromey@adacore.com> |
| 8019 | |
| 8020 | * ada-lang.c (cache_symbol): Use obstack_strdup. |
| 8021 | |
| 8022 | 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com> |
| 8023 | |
| 8024 | * configure: Regenerate. |
| 8025 | |
| 8026 | 2020-02-19 Tom Tromey <tromey@adacore.com> |
| 8027 | |
| 8028 | * python/python.c (do_start_initialization): Use XNEWVEC. Remove |
| 8029 | NULL check. |
| 8030 | |
| 8031 | 2020-02-19 Maciej W. Rozycki <macro@wdc.com> |
| 8032 | |
| 8033 | * NEWS: Mention RISC-V GNU/Linux GDBserver support. |
| 8034 | |
| 8035 | 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com> |
| 8036 | |
| 8037 | * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define |
| 8038 | if GDBSERVER is not defined. |
| 8039 | (riscv_tdesc_cache): Likewise, also store const target_desc. |
| 8040 | (STATIC_IN_GDB): Define. |
| 8041 | (riscv_create_target_description): Update declaration with |
| 8042 | STATIC_IN_GDB. |
| 8043 | (riscv_lookup_target_description): New function, only define if |
| 8044 | GDBSERVER is not defined. |
| 8045 | * arch/riscv.h (riscv_create_target_description): Declare only |
| 8046 | when GDBSERVER is defined. |
| 8047 | (riscv_lookup_target_description): New declaration when GDBSERVER |
| 8048 | is not defined. |
| 8049 | * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to... |
| 8050 | (riscv_linux_read_features): ...this, and return |
| 8051 | riscv_gdbarch_features instead of target_desc. |
| 8052 | * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'. |
| 8053 | (riscv_linux_read_description): Rename to... |
| 8054 | (riscv_linux_read_features): ...this. |
| 8055 | * riscv-linux-nat.c (riscv_linux_nat_target::read_description): |
| 8056 | Update to use riscv_gdbarch_features and |
| 8057 | riscv_lookup_target_description. |
| 8058 | * riscv-tdep.c (riscv_find_default_target_description): Use |
| 8059 | riscv_lookup_target_description instead of |
| 8060 | riscv_create_target_description. |
| 8061 | |
| 8062 | 2020-02-18 Simon Marchi <simon.marchi@efficios.com> |
| 8063 | |
| 8064 | * valprint.c (generic_val_print_enum_1): When printing a flag |
| 8065 | enum with value 0 and there is no enumerator with value 0, print |
| 8066 | just "0" instead of "(unknown: 0x0)". |
| 8067 | |
| 8068 | 2020-02-18 Simon Marchi <simon.marchi@efficios.com> |
| 8069 | |
| 8070 | * valprint.c (generic_val_print_enum_1): Print unknown part of |
| 8071 | flag enum in hex. |
| 8072 | |
| 8073 | 2020-02-18 Simon Marchi <simon.marchi@efficios.com> |
| 8074 | |
| 8075 | * dwarf2/read.c (update_enumeration_type_from_children): Allow |
| 8076 | flag enums to contain duplicate enumerators. |
| 8077 | * valprint.c (generic_val_print_enum_1): Update comment. |
| 8078 | |
| 8079 | 2020-02-18 Simon Marchi <simon.marchi@efficios.com> |
| 8080 | |
| 8081 | * dwarf2/read.c: Include "count-one-bits.h". |
| 8082 | (update_enumeration_type_from_children): If an enumerator has |
| 8083 | multiple bits set, don't treat the enumeration as a "flag enum". |
| 8084 | * valprint.c (generic_val_print_enum_1): Assert that enumerators |
| 8085 | of flag enums have 0 or 1 bit set. |
| 8086 | |
| 8087 | 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de> |
| 8088 | |
| 8089 | * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit |
| 8090 | conversion. |
| 8091 | * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise. |
| 8092 | * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise. |
| 8093 | * i386-tdep.c (i386_displaced_step_copy_insn): Likewise. |
| 8094 | * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise. |
| 8095 | * s390-tdep.c (s390_displaced_step_copy_insn): Likewise. |
| 8096 | |
| 8097 | 2020-02-18 Simon Marchi <simon.marchi@efficios.com> |
| 8098 | |
| 8099 | * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com. |
| 8100 | |
| 8101 | 2020-02-14 Simon Marchi <simon.marchi@efficios.com> |
| 8102 | |
| 8103 | * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use |
| 8104 | displaced_step_closure_up. |
| 8105 | * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise. |
| 8106 | (struct displaced_step_closure_up): |
| 8107 | * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise. |
| 8108 | * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise. |
| 8109 | * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): |
| 8110 | Likewise. |
| 8111 | * gdbarch.sh (displaced_step_copy_insn): Likewise. |
| 8112 | * gdbarch.c, gdbarch.h: Re-generate. |
| 8113 | * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use |
| 8114 | displaced_step_closure_up. |
| 8115 | * i386-tdep.c (i386_displaced_step_copy_insn): Likewise. |
| 8116 | * i386-tdep.h (i386_displaced_step_copy_insn): Likewise. |
| 8117 | * infrun.h (displaced_step_closure_up): New type alias. |
| 8118 | (struct displaced_step_inferior_state) <step_closure>: Change |
| 8119 | type to displaced_step_closure_up. |
| 8120 | * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use |
| 8121 | displaced_step_closure_up. |
| 8122 | * s390-tdep.c (s390_displaced_step_copy_insn): Likewise. |
| 8123 | |
| 8124 | 2020-02-14 Tom Tromey <tom@tromey.com> |
| 8125 | |
| 8126 | * minidebug.c (gnu_debug_key): New global. |
| 8127 | (find_separate_debug_file_in_section): Use it. |
| 8128 | |
| 8129 | 2020-02-14 Simon Marchi <simon.marchi@efficios.com> |
| 8130 | |
| 8131 | * gdbarch.sh (displaced_step_copy_insn): Change return type to an |
| 8132 | std::unique_ptr. |
| 8133 | * gdbarch.c: Re-generate. |
| 8134 | * gdbarch.h: Re-generate. |
| 8135 | * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr |
| 8136 | change. |
| 8137 | * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return |
| 8138 | type to std::unique_ptr. |
| 8139 | * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise. |
| 8140 | * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise. |
| 8141 | * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise. |
| 8142 | * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise. |
| 8143 | * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise. |
| 8144 | * i386-tdep.c (i386_displaced_step_copy_insn): Likewise. |
| 8145 | * i386-tdep.h (i386_displaced_step_copy_insn): Likewise. |
| 8146 | * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise. |
| 8147 | * s390-tdep.c (s390_displaced_step_copy_insn): Likewise. |
| 8148 | |
| 8149 | 2020-02-14 Simon Marchi <simon.marchi@efficios.com> |
| 8150 | |
| 8151 | * infrun.c (get_displaced_step_closure_by_addr): Adjust to |
| 8152 | std::unique_ptr. |
| 8153 | (displaced_step_clear): Rename to... |
| 8154 | (displaced_step_reset): ... this. Just call displaced->reset (). |
| 8155 | (displaced_step_clear_cleanup): Rename to... |
| 8156 | (displaced_step_reset_cleanup): ... this. |
| 8157 | (displaced_step_prepare_throw): Adjust to std::unique_ptr. |
| 8158 | (displaced_step_fixup): Likewise. |
| 8159 | (resume_1): Likewise. |
| 8160 | (handle_inferior_event): Restore child's memory before calling |
| 8161 | displaced_step_fixup on the parent. |
| 8162 | * infrun.h (displaced_step_inferior_state) <reset>: Adjust |
| 8163 | to std::unique_ptr. |
| 8164 | <step_closure>: Change type to std::unique_ptr. |
| 8165 | |
| 8166 | 2020-02-14 Simon Marchi <simon.marchi@efficios.com> |
| 8167 | |
| 8168 | * arm-tdep.c: Include count-one-bits.h. |
| 8169 | (cleanup_block_store_pc): Use count_one_bits. |
| 8170 | (cleanup_block_load_pc): Use count_one_bits. |
| 8171 | (arm_copy_block_xfer): Use count_one_bits. |
| 8172 | (thumb2_copy_block_xfer): Use count_one_bits. |
| 8173 | (thumb_copy_pop_pc_16bit): Use count_one_bits. |
| 8174 | * arch/arm-get-next-pcs.c: Include count-one-bits.h. |
| 8175 | (thumb_get_next_pcs_raw): Use count_one_bits. |
| 8176 | (arm_get_next_pcs_raw): Use count_one_bits_l. |
| 8177 | * arch/arm.c (bitcount): Remove. |
| 8178 | * arch/arm.h (bitcount): Remove. |
| 8179 | |
| 8180 | 2020-02-14 Tom Tromey <tromey@adacore.com> |
| 8181 | |
| 8182 | * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): |
| 8183 | Update. |
| 8184 | * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr. |
| 8185 | * dwarf2/loc.c (call_site_find_chain_1): Return |
| 8186 | unique_xmalloc_ptr. |
| 8187 | (call_site_find_chain): Likewise. |
| 8188 | |
| 8189 | 2020-02-14 Richard Biener <rguenther@suse.de> |
| 8190 | |
| 8191 | * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE |
| 8192 | on expression with division operators. |
| 8193 | |
| 8194 | 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com> |
| 8195 | |
| 8196 | * MAINTAINERS (Write After Approval): Adding myself. |
| 8197 | |
| 8198 | 2020-02-12 Tom Tromey <tom@tromey.com> |
| 8199 | |
| 8200 | * event-loop.c (event_data, gdb_event, event_handler_func): |
| 8201 | Remove. |
| 8202 | |
| 8203 | 2020-02-12 Tom Tromey <tom@tromey.com> |
| 8204 | |
| 8205 | * dwarf2/frame.c (dwarf2_frame_bfd_data): New global. |
| 8206 | (dwarf2_frame_objfile_data): Add comment. |
| 8207 | (find_comp_unit, set_comp_unit): New functions. |
| 8208 | (dwarf2_frame_find_fde): Use find_comp_unit. |
| 8209 | (dwarf2_build_frame_info): Use set_comp_unit. |
| 8210 | |
| 8211 | 2020-02-12 Tom Tromey <tom@tromey.com> |
| 8212 | |
| 8213 | * dwarf2/frame.c (struct comp_unit) <objfile>: Remove. |
| 8214 | (comp_unit): Don't initialize objfile. |
| 8215 | (execute_cfa_program): Add text_offset parameter. |
| 8216 | (execute_cfa_program_test, dwarf2_fetch_cfa_info) |
| 8217 | (dwarf2_frame_cache): Update. |
| 8218 | (dwarf2_build_frame_info): Don't set "objfile" member. |
| 8219 | |
| 8220 | 2020-02-12 Tom Tromey <tom@tromey.com> |
| 8221 | |
| 8222 | * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter. |
| 8223 | (decode_frame_entry): Likewise. |
| 8224 | (dwarf2_build_frame_info): Update. |
| 8225 | |
| 8226 | 2020-02-12 Tom Tromey <tom@tromey.com> |
| 8227 | |
| 8228 | * dwarf2/frame.c (struct comp_unit) <obstack>: New member. |
| 8229 | (decode_frame_entry_1): Use the comp_unit obstack. |
| 8230 | |
| 8231 | 2020-02-12 Tom Tromey <tom@tromey.com> |
| 8232 | |
| 8233 | * dwarf2/frame.c (struct comp_unit): Add initializers and |
| 8234 | constructor. |
| 8235 | (dwarf2_frame_objfile_data): Store a comp_unit. |
| 8236 | (dwarf2_frame_find_fde): Update. |
| 8237 | (dwarf2_build_frame_info): Use "new". |
| 8238 | |
| 8239 | 2020-02-12 Tom Tromey <tom@tromey.com> |
| 8240 | |
| 8241 | * dwarf2/frame.c (struct dwarf2_fde_table): Remove. |
| 8242 | (dwarf2_fde_table): Typedef for std::vector. |
| 8243 | (dwarf2_frame_objfile_data): Remove the deleter. Now static. |
| 8244 | (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1) |
| 8245 | (decode_frame_entry): Update. |
| 8246 | (dwarf2_build_frame_info): Use "new". |
| 8247 | |
| 8248 | 2020-02-12 Christian Biesinger <cbiesinger@google.com> |
| 8249 | |
| 8250 | * arm-tdep.c (arm_gdbarch_init): Update. |
| 8251 | * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers, |
| 8252 | have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos, |
| 8253 | have_neon, is_m>: Change to bool. |
| 8254 | |
| 8255 | 2020-02-12 Christian Biesinger <cbiesinger@google.com> |
| 8256 | |
| 8257 | * arm-tdep.c (arm_dump_tdep): Print more fields of tdep. |
| 8258 | |
| 8259 | 2020-02-12 Tom Tromey <tom@tromey.com> |
| 8260 | |
| 8261 | * dwarf2/loc.c (struct dwarf_expr_baton): Remove. |
| 8262 | |
| 8263 | 2020-02-12 Hannes Domani <ssbssa@yahoo.de> |
| 8264 | |
| 8265 | * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type. |
| 8266 | (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type. |
| 8267 | |
| 8268 | 2020-02-11 Tom Tromey <tom@tromey.com> |
| 8269 | |
| 8270 | * psymtab.h: Update comment. |
| 8271 | |
| 8272 | 2020-02-11 Tom Tromey <tom@tromey.com> |
| 8273 | |
| 8274 | * gdb_obstack.h (struct auto_obstack): Use |
| 8275 | DISABLE_COPY_AND_ASSIGN. |
| 8276 | |
| 8277 | 2020-02-11 Tom Tromey <tom@tromey.com> |
| 8278 | |
| 8279 | * dwarf2/frame.h (struct objfile): Don't forward declare. |
| 8280 | |
| 8281 | 2020-02-11 Christian Biesinger <cbiesinger@google.com> |
| 8282 | |
| 8283 | * cris-tdep.c (cris_supply_gregset): Change signature to match |
| 8284 | what struct regset expects. |
| 8285 | (cris_regset): New struct. |
| 8286 | (fetch_core_registers): Remove. |
| 8287 | (cris_iterate_over_regset_sections): New function. |
| 8288 | (_initialize_cris_tdep): Don't call deprecated_add_core_fns. |
| 8289 | (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections. |
| 8290 | |
| 8291 | 2020-02-11 Christian Biesinger <cbiesinger@google.com> |
| 8292 | |
| 8293 | * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7 |
| 8294 | registers. |
| 8295 | |
| 8296 | 2020-02-11 Christian Biesinger <cbiesinger@google.com> |
| 8297 | |
| 8298 | * arm-tdep.c (arm_dump_tdep): Add \n in fprintf. |
| 8299 | |
| 8300 | 2020-02-11 Simon Marchi <simon.marchi@efficios.com> |
| 8301 | |
| 8302 | * configure: Re-generate. |
| 8303 | |
| 8304 | 2020-02-11 Simon Marchi <simon.marchi@efficios.com> |
| 8305 | |
| 8306 | * configure: Re-generate. |
| 8307 | |
| 8308 | 2020-02-11 Simon Marchi <simon.marchi@efficios.com> |
| 8309 | |
| 8310 | * acinclude: Update warning.m4 path. |
| 8311 | * warning.m4: Move to gdbsupport. |
| 8312 | |
| 8313 | 2020-02-11 Tom Tromey <tromey@adacore.com> |
| 8314 | |
| 8315 | * remote.c (remote_console_output): Update. |
| 8316 | * printcmd.c (printf_command): Update. |
| 8317 | * event-loop.c (gdb_wait_for_event): Update. |
| 8318 | * linux-nat.c (sigchld_handler): Update. |
| 8319 | * remote-sim.c (gdb_os_write_stdout): Update. |
| 8320 | (gdb_os_flush_stdout): Update. |
| 8321 | (gdb_os_flush_stderr): Update. |
| 8322 | (gdb_os_write_stderr): Update. |
| 8323 | * exceptions.c (print_exception): Update. |
| 8324 | * remote-fileio.c (remote_fileio_func_read): Update. |
| 8325 | (remote_fileio_func_write): Update. |
| 8326 | * tui/tui.c (tui_enable): Update. |
| 8327 | * tui/tui-interp.c (tui_interp::init): Update. |
| 8328 | * utils.c (init_page_info): Update. |
| 8329 | (putchar_unfiltered, fputc_unfiltered): Update. |
| 8330 | (gdb_flush): Update. |
| 8331 | (emit_style_escape): Update. |
| 8332 | (flush_wrap_buffer, fputs_maybe_filtered): Update. |
| 8333 | * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write) |
| 8334 | (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove. |
| 8335 | (stderr_file::write): Update. |
| 8336 | (stderr_file::puts): Update. |
| 8337 | * ui-file.h (ui_file_isatty, ui_file_write) |
| 8338 | (ui_file_write_async_safe, ui_file_read, ui_file_flush) |
| 8339 | (ui_file_puts): Don't declare. |
| 8340 | |
| 8341 | 2020-02-10 Tom de Vries <tdevries@suse.de> |
| 8342 | |
| 8343 | * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL |
| 8344 | sentinel to char *. |
| 8345 | |
| 8346 | 2020-02-09 Tom de Vries <tdevries@suse.de> |
| 8347 | |
| 8348 | * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to |
| 8349 | filename if it matches "<artificial>". |
| 8350 | |
| 8351 | 2020-02-09 Hannes Domani <ssbssa@yahoo.de> |
| 8352 | |
| 8353 | * windows-tdep.c (struct enum_value_name): New struct. |
| 8354 | (create_enum): New function. |
| 8355 | (windows_get_siginfo_type): Create and use enum types. |
| 8356 | |
| 8357 | 2020-02-09 Hannes Domani <ssbssa@yahoo.de> |
| 8358 | |
| 8359 | * NEWS: Mention $_siginfo support for Windows. |
| 8360 | * windows-nat.c (handle_exception): Set siginfo_er. |
| 8361 | (windows_nat_target::mourn_inferior): Reset siginfo_er. |
| 8362 | (windows_xfer_siginfo): New function. |
| 8363 | (windows_nat_target::xfer_partial): Call windows_xfer_siginfo. |
| 8364 | * windows-tdep.c (struct windows_gdbarch_data): New struct. |
| 8365 | (init_windows_gdbarch_data): New function. |
| 8366 | (get_windows_gdbarch_data): New function. |
| 8367 | (windows_get_siginfo_type): New function. |
| 8368 | (windows_init_abi): Register windows_get_siginfo_type. |
| 8369 | (_initialize_windows_tdep): Register init_windows_gdbarch_data. |
| 8370 | |
| 8371 | 2020-02-08 Tom Tromey <tom@tromey.com> |
| 8372 | |
| 8373 | * dwarf2/read.c (class cutu_reader) <cutu_reader, |
| 8374 | init_tu_and_read_dwo_dies>: Remove "keep" parameter. |
| 8375 | <keep>: Declare method. |
| 8376 | <m_keep>: Remove member. |
| 8377 | <~cutu_reader>: Remove. |
| 8378 | (cutu_reader::init_tu_and_read_dwo_dies): Update. |
| 8379 | (cutu_reader::cutu_reader): Update. |
| 8380 | (cutu_reader::keep): Rename from ~cutu_reader. |
| 8381 | (process_psymtab_comp_unit, build_type_psymtabs_1) |
| 8382 | (process_skeletonless_type_unit, load_partial_comp_unit) |
| 8383 | (load_full_comp_unit, dwarf2_read_addr_index) |
| 8384 | (read_signatured_type): Update. |
| 8385 | |
| 8386 | 2020-02-08 Tom Tromey <tom@tromey.com> |
| 8387 | |
| 8388 | * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove |
| 8389 | "want_partial_unit" parameter. |
| 8390 | (process_psymtab_comp_unit): Change want_partial_unit to bool. |
| 8391 | Inline check for DW_TAG_partial_unit. |
| 8392 | (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update. |
| 8393 | |
| 8394 | 2020-02-08 Tom Tromey <tom@tromey.com> |
| 8395 | |
| 8396 | * dwarf2/read.c (read_n_bytes, read_direct_string): Move to |
| 8397 | read.c. |
| 8398 | * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from |
| 8399 | read.c. |
| 8400 | |
| 8401 | 2020-02-08 Tom Tromey <tom@tromey.com> |
| 8402 | |
| 8403 | * dwarf2/read.c (read_address): Move to comp-unit.c. |
| 8404 | (dwarf2_rnglists_process, dwarf2_ranges_process) |
| 8405 | (read_attribute_value, dwarf_decode_lines_1) |
| 8406 | (var_decode_location, decode_locdesc): Update. |
| 8407 | * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from |
| 8408 | read.c. Remove "cu" parameter. |
| 8409 | * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New |
| 8410 | method. |
| 8411 | |
| 8412 | 2020-02-08 Tom Tromey <tom@tromey.com> |
| 8413 | |
| 8414 | * dwarf2/read.c (read_attribute_value, read_indirect_string) |
| 8415 | (read_indirect_line_string): Update. |
| 8416 | * dwarf2/comp-unit.c (read_offset): Remove. |
| 8417 | (read_comp_unit_head): Update. |
| 8418 | * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New |
| 8419 | method. |
| 8420 | (read_offset): Don't declare. |
| 8421 | |
| 8422 | 2020-02-08 Tom Tromey <tom@tromey.com> |
| 8423 | |
| 8424 | * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c. |
| 8425 | * dwarf2/read.c (struct comp_unit_head): Move to |
| 8426 | dwarf2/comp-unit.h. |
| 8427 | (enum class rcuh_kind): Move to comp-unit.h. |
| 8428 | (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head. |
| 8429 | (read_comp_unit_head, error_check_comp_unit_head) |
| 8430 | (read_and_check_comp_unit_head): Move to comp-unit.c. |
| 8431 | (read_offset, dwarf_unit_type_name): Likewise. |
| 8432 | (create_debug_type_hash_table, read_cutu_die_from_dwo) |
| 8433 | (cutu_reader::cutu_reader, read_call_site_scope) |
| 8434 | (find_partial_die, follow_die_offset): Update. |
| 8435 | * dwarf2/comp-unit.h: New file, from dwarf2read.c. |
| 8436 | |
| 8437 | 2020-02-08 Tom Tromey <tom@tromey.com> |
| 8438 | |
| 8439 | * dwarf2/read.c (read_offset_1): Move to leb.c. |
| 8440 | (read_abbrev_offset, read_offset, dwarf_decode_line_header) |
| 8441 | (dwarf_decode_macro_bytes): Update. |
| 8442 | * dwarf2/leb.c (read_offset): Rename; move from read.c. |
| 8443 | * dwarf2/leb.h (read_offset): Declare. |
| 8444 | |
| 8445 | 2020-02-08 Tom Tromey <tom@tromey.com> |
| 8446 | |
| 8447 | * dwarf2/read.c (dwarf2_section_size): Remove. |
| 8448 | (error_check_comp_unit_head, dwarf2_symbol_mark_computed): |
| 8449 | Update. |
| 8450 | * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method. |
| 8451 | |
| 8452 | 2020-02-08 Tom Tromey <tom@tromey.com> |
| 8453 | |
| 8454 | * dwarf2/read.c (read_initial_length): Move to leb.c. |
| 8455 | * dwarf2/leb.h (read_initial_length): Declare. |
| 8456 | * dwarf2/leb.c (read_initial_length): Move from read.c. Add |
| 8457 | handle_nonstd parameter. |
| 8458 | * dwarf2/frame.c (read_initial_length): Remove. |
| 8459 | (decode_frame_entry_1): Update. |
| 8460 | |
| 8461 | 2020-02-08 Tom Tromey <tom@tromey.com> |
| 8462 | |
| 8463 | * dwarf2/loc.c (dwarf2_find_location_expression) |
| 8464 | (dwarf_evaluate_loc_desc::get_tls_address) |
| 8465 | (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value) |
| 8466 | (rw_pieced_value, dwarf2_evaluate_loc_desc_full) |
| 8467 | (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property) |
| 8468 | (dwarf2_compile_property_to_c) |
| 8469 | (dwarf2_loc_desc_get_symbol_read_needs) |
| 8470 | (dwarf2_compile_expr_to_ax, locexpr_describe_location) |
| 8471 | (locexpr_tracepoint_var_ref, locexpr_generate_c_location) |
| 8472 | (loclist_describe_location, loclist_tracepoint_var_ref) |
| 8473 | (loclist_generate_c_location): Update. |
| 8474 | * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update. |
| 8475 | * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size) |
| 8476 | (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size) |
| 8477 | (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare. |
| 8478 | * dwarf2/read.c (dwarf2_per_cu_data::objfile) |
| 8479 | (dwarf2_per_cu_data::addr_size) |
| 8480 | (dwarf2_per_cu_data::ref_addr_size) |
| 8481 | (dwarf2_per_cu_data::text_offset) |
| 8482 | (dwarf2_per_cu_data::addr_type): Now methods. |
| 8483 | (per_cu_header_read_in): Make per_cu "const". |
| 8484 | (dwarf2_version): Remove. |
| 8485 | (dwarf2_per_cu_data::int_type): Now a method. |
| 8486 | (dwarf2_per_cu_data::_addr_sized_int_type): Likewise. |
| 8487 | (set_die_type, read_array_type, read_subrange_index_type) |
| 8488 | (read_tag_string_type, read_subrange_type): Update. |
| 8489 | * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size, |
| 8490 | offset_size, ref_addr_size, text_offset, addr_type, version, |
| 8491 | objfile, int_type, addr_sized_int_type>: Declare methods. |
| 8492 | |
| 8493 | 2020-02-08 Tom Tromey <tom@tromey.com> |
| 8494 | |
| 8495 | * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>: |
| 8496 | Move earlier. |
| 8497 | |
| 8498 | 2020-02-08 Tom Tromey <tom@tromey.com> |
| 8499 | |
| 8500 | * dwarf2/read.h (dwarf_line_debug): Declare. |
| 8501 | * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c. |
| 8502 | * dwarf2/read.c: Move line_header code to new files. |
| 8503 | (dwarf_line_debug): No longer static. |
| 8504 | * dwarf2/line-header.c: New file. |
| 8505 | * dwarf2/line-header.h: New file. |
| 8506 | |
| 8507 | 2020-02-08 Tom Tromey <tom@tromey.com> |
| 8508 | |
| 8509 | * dwarf2/read.c (struct line_header) <file_full_name, |
| 8510 | file_file_name>: Return unique_xmalloc_ptr. |
| 8511 | (line_header::file_file_name): Update. |
| 8512 | (line_header::file_full_name): Update. |
| 8513 | (dw2_get_file_names_reader): Update. |
| 8514 | (macro_start_file): Update. |
| 8515 | |
| 8516 | 2020-02-08 Tom Tromey <tom@tromey.com> |
| 8517 | |
| 8518 | * dwarf2/read.c (struct line_header) <file_full_name, |
| 8519 | file_file_name>: Declare methods. |
| 8520 | (dw2_get_file_names_reader): Update. |
| 8521 | (file_file_name): Now a method. |
| 8522 | (file_full_name): Likewise. |
| 8523 | (macro_start_file): Update. |
| 8524 | |
| 8525 | 2020-02-08 Tom Tromey <tom@tromey.com> |
| 8526 | |
| 8527 | * dwarf2/read.c (dwarf_always_disassemble) |
| 8528 | (show_dwarf_always_disassemble): Move to loc.c. |
| 8529 | (_initialize_dwarf2_read): Move "always-disassemble" registration |
| 8530 | to loc.c. |
| 8531 | * dwarf2/read.h (dwarf_always_disassemble): Don't declare. |
| 8532 | * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now |
| 8533 | static. |
| 8534 | (show_dwarf_always_disassemble): Move from read.c. |
| 8535 | (_initialize_dwarf2loc): Move always-disassemble from read.c. |
| 8536 | |
| 8537 | 2020-02-08 Tom Tromey <tom@tromey.com> |
| 8538 | |
| 8539 | * dwarf2/read.c (~dwarf2_per_objfile): Update. |
| 8540 | (create_quick_file_names_table): Return htab_up. |
| 8541 | (dw2_get_file_names_reader, dw2_forget_cached_source_info): |
| 8542 | Update. |
| 8543 | * dwarf2/read.h (struct dwarf2_per_objfile) |
| 8544 | <quick_file_names_table>: Now htab_up. |
| 8545 | |
| 8546 | 2020-02-08 Tom Tromey <tom@tromey.com> |
| 8547 | |
| 8548 | * dwarf2/abbrev.c (abbrev_table::read): Simplify. |
| 8549 | |
| 8550 | 2020-02-08 Tom Tromey <tom@tromey.com> |
| 8551 | |
| 8552 | * dwarf2/abbrev.c (abbrev_table): Move constructor from header. |
| 8553 | Rewrite. |
| 8554 | (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite. |
| 8555 | * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove. |
| 8556 | (abbrev_table::abbrev_table): No longer inline. |
| 8557 | (ABBREV_HASH_SIZE): Remove. |
| 8558 | (abbrev_table::m_abbrevs): Now an htab_up. |
| 8559 | |
| 8560 | 2020-02-08 Tom Tromey <tom@tromey.com> |
| 8561 | |
| 8562 | * dwarf2/read.c (read_cutu_die_from_dwo): Update. |
| 8563 | (cutu_reader): Update. |
| 8564 | (build_type_psymtabs_1): Update. |
| 8565 | * dwarf2/abbrev.c (abbrev_table::read): Rename. |
| 8566 | (abbrev_table::alloc_abbrev): Update. |
| 8567 | * dwarf2/abbrev.h (abbrev_table_up): Move earlier. |
| 8568 | (abbrev_table::read): New static method, renamed from |
| 8569 | abbrev_table_read_table. |
| 8570 | (abbrev_table::alloc_abbrev) |
| 8571 | (abbrev_table::add_abbrev): Now private. |
| 8572 | (abbrev_table::abbrev_table): Now private. |
| 8573 | (abbrev_table::m_abbrev_obstack): Now private. Rename. |
| 8574 | |
| 8575 | 2020-02-08 Tom Tromey <tom@tromey.com> |
| 8576 | |
| 8577 | * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update. |
| 8578 | * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now |
| 8579 | htab_up. |
| 8580 | |
| 8581 | 2020-02-08 Tom Tromey <tom@tromey.com> |
| 8582 | |
| 8583 | * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now |
| 8584 | htab_up. |
| 8585 | (lookup_dwo_unit_in_dwp): Update. |
| 8586 | (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate |
| 8587 | on obstack. |
| 8588 | |
| 8589 | 2020-02-08 Tom Tromey <tom@tromey.com> |
| 8590 | |
| 8591 | * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on |
| 8592 | obstack. |
| 8593 | |
| 8594 | 2020-02-08 Tom Tromey <tom@tromey.com> |
| 8595 | |
| 8596 | * dwarf2/read.c (~dwarf2_per_objfile): Don't delete |
| 8597 | line_header_hash. |
| 8598 | (handle_DW_AT_stmt_list): Update. Don't allocate on obstack. |
| 8599 | * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>: |
| 8600 | Change type to htab_up. |
| 8601 | |
| 8602 | 2020-02-08 Tom Tromey <tom@tromey.com> |
| 8603 | |
| 8604 | * dwarf2/read.c (allocate_type_unit_groups_table): Return |
| 8605 | htab_up. Don't allocate on obstack. |
| 8606 | (get_type_unit_group, dwarf2_build_psymtabs_hard): Update. |
| 8607 | * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>: |
| 8608 | Change type to htab_up. |
| 8609 | |
| 8610 | 2020-02-08 Tom Tromey <tom@tromey.com> |
| 8611 | |
| 8612 | * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>: |
| 8613 | Change type to htab_up. |
| 8614 | * dwarf2/read.c (create_signatured_type_table_from_index) |
| 8615 | (create_signatured_type_table_from_debug_names) |
| 8616 | (create_all_type_units, add_type_unit) |
| 8617 | (lookup_dwo_signatured_type, lookup_signatured_type) |
| 8618 | (process_skeletonless_type_unit): Update. |
| 8619 | (create_debug_type_hash_table, create_debug_types_hash_table): |
| 8620 | Change type of types_htab. |
| 8621 | (allocate_signatured_type_table, allocate_dwo_unit_table): Return |
| 8622 | htab_up. Don't allocate on obstack. |
| 8623 | (create_cus_hash_table): Change type of cus_htab parameter. |
| 8624 | (struct dwo_file) <cus, tus>: Now htab_up. |
| 8625 | (lookup_dwo_signatured_type, lookup_dwo_cutu) |
| 8626 | (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu) |
| 8627 | (queue_and_load_all_dwo_tus): Update. |
| 8628 | * dwarf2/index-write.c (write_gdbindex): Update. |
| 8629 | (write_debug_names): Update. |
| 8630 | |
| 8631 | 2020-02-08 Tom Tromey <tom@tromey.com> |
| 8632 | |
| 8633 | * dwarf2/read.h (struct dwarf2_queue_item): Move from |
| 8634 | dwarf2/read.c. Remove "next" member. Add constructor ntad |
| 8635 | destructor. |
| 8636 | (struct dwarf2_per_objfile) <queue>: New member. |
| 8637 | * dwarf2/read.c (struct dwarf2_queue_item): Move to |
| 8638 | dwarf2/read.h. |
| 8639 | (dwarf2_queue, dwarf2_queue_tail): Remove. |
| 8640 | (class dwarf2_queue_guard): Add parameter to constructor. Use |
| 8641 | DISABLE_COPY_AND_ASSIGN. |
| 8642 | <m_per_objfile>: New member. |
| 8643 | <~dwarf2_queue_guard>: Rewrite. |
| 8644 | (dw2_do_instantiate_symtab, queue_comp_unit, process_queue): |
| 8645 | Update. |
| 8646 | (~dwarf2_queue_item): New. |
| 8647 | |
| 8648 | 2020-02-08 Tom Tromey <tom@tromey.com> |
| 8649 | |
| 8650 | * dwarf2/read.c (struct die_info) <has_children>: New member. |
| 8651 | (dw2_get_file_names_reader): Remove has_children. |
| 8652 | (dw2_get_file_names): Update. |
| 8653 | (read_cutu_die_from_dwo): Remove has_children. |
| 8654 | (cutu_reader::init_tu_and_read_dwo_dies) |
| 8655 | (cutu_reader::cutu_reader): Update. |
| 8656 | (process_psymtab_comp_unit_reader, build_type_psymtabs_reader): |
| 8657 | Remove has_children. |
| 8658 | (build_type_psymtabs_1, process_skeletonless_type_unit) |
| 8659 | (load_partial_comp_unit, load_full_comp_unit): Update. |
| 8660 | (create_dwo_cu_reader): Remove has_children. |
| 8661 | (create_cus_hash_table, read_die_and_children): Update. |
| 8662 | (read_full_die_1,read_full_die): Remove has_children. |
| 8663 | (read_signatured_type): Update. |
| 8664 | (class cutu_reader) <has_children>: Remove. |
| 8665 | |
| 8666 | 2020-02-08 Tom Tromey <tom@tromey.com> |
| 8667 | |
| 8668 | * dwarf2/expr.c: Rename from dwarf2expr.c. |
| 8669 | * dwarf2/expr.h: Rename from dwarf2expr.h. |
| 8670 | * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c. |
| 8671 | * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h. |
| 8672 | * dwarf2/frame.c: Rename from dwarf2-frame.c. |
| 8673 | * dwarf2/frame.h: Rename from dwarf2-frame.h. |
| 8674 | * dwarf2/index-cache.c: Rename from dwarf-index-cache.c. |
| 8675 | * dwarf2/index-cache.h: Rename from dwarf-index-cache.h. |
| 8676 | * dwarf2/index-common.c: Rename from dwarf-index-common.c. |
| 8677 | * dwarf2/index-common.h: Rename from dwarf-index-common.h. |
| 8678 | * dwarf2/index-write.c: Rename from dwarf-index-write.c. |
| 8679 | * dwarf2/index-write.h: Rename from dwarf-index-write.h. |
| 8680 | * dwarf2/loc.c: Rename from dwarf2loc.c. |
| 8681 | * dwarf2/loc.h: Rename from dwarf2loc.h. |
| 8682 | * dwarf2/read.c: Rename from dwarf2read.c. |
| 8683 | * dwarf2/read.h: Rename from dwarf2read.h. |
| 8684 | * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c, |
| 8685 | amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c, |
| 8686 | compile/compile-c-symbols.c, compile/compile-cplus-symbols.c, |
| 8687 | compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c, |
| 8688 | gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c, |
| 8689 | hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c, |
| 8690 | i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c, |
| 8691 | m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c, |
| 8692 | msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c, |
| 8693 | riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c, |
| 8694 | s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c, |
| 8695 | sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c, |
| 8696 | tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c: |
| 8697 | Update. |
| 8698 | * Makefile.in (COMMON_SFILES): Update. |
| 8699 | (HFILES_NO_SRCDIR): Update. |
| 8700 | |
| 8701 | 2020-02-08 Tom Tromey <tom@tromey.com> |
| 8702 | |
| 8703 | * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove. |
| 8704 | (init_cu_die_reader, read_cutu_die_from_dwo): Update. |
| 8705 | |
| 8706 | 2020-02-08 Tom Tromey <tom@tromey.com> |
| 8707 | |
| 8708 | * dwarf2read.h (struct die_info): Don't declare. |
| 8709 | |
| 8710 | 2020-02-08 Tom Tromey <tom@tromey.com> |
| 8711 | |
| 8712 | * dwarf2read.h (die_info_ptr): Remove typedef. |
| 8713 | |
| 8714 | 2020-02-08 Tom Tromey <tom@tromey.com> |
| 8715 | |
| 8716 | * dwarf2read.c (read_call_site_scope) |
| 8717 | (handle_data_member_location, dwarf2_add_member_fn) |
| 8718 | (mark_common_block_symbol_computed, read_common_block) |
| 8719 | (attr_to_dynamic_prop, partial_die_info::read) |
| 8720 | (var_decode_location, dwarf2_fetch_die_loc_sect_off) |
| 8721 | (dwarf2_symbol_mark_computed, set_die_type): Update. |
| 8722 | * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare |
| 8723 | method. |
| 8724 | (attr_form_is_block): Don't declare. |
| 8725 | * dwarf2/attribute.c (attribute::form_is_block): Now a method. |
| 8726 | |
| 8727 | 2020-02-08 Tom Tromey <tom@tromey.com> |
| 8728 | |
| 8729 | * dwarf2read.c (dwarf2_find_base_address, ) |
| 8730 | (read_call_site_scope, rust_containing_type) |
| 8731 | (dwarf2_get_pc_bounds, dwarf2_record_block_ranges) |
| 8732 | (handle_data_member_location, dwarf2_add_member_fn) |
| 8733 | (get_alignment, read_structure_type, process_structure_scope) |
| 8734 | (mark_common_block_symbol_computed, read_common_block) |
| 8735 | (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type) |
| 8736 | (partial_die_info::read, read_attribute_value, new_symbol) |
| 8737 | (lookup_die_type, dwarf2_get_ref_die_offset) |
| 8738 | (dwarf2_get_attr_constant_value, follow_die_ref_or_sig) |
| 8739 | (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type) |
| 8740 | (dwarf2_symbol_mark_computed): Update. |
| 8741 | * dwarf2/attribute.h (struct attribute) <value_as_address, |
| 8742 | form_is_section_offset, form_is_constant, form_is_ref>: Declare |
| 8743 | methods. |
| 8744 | (value_as_address, attr_form_is_section_offset) |
| 8745 | (attr_form_is_constant, attr_form_is_ref): Don't declare. |
| 8746 | * dwarf2/attribute.c (attribute::value_as_address) |
| 8747 | (attribute::form_is_section_offset, attribute::form_is_constant) |
| 8748 | (attribute::form_is_ref): Now methods. |
| 8749 | |
| 8750 | 2020-02-08 Tom Tromey <tom@tromey.com> |
| 8751 | |
| 8752 | * dwarf2read.c (struct attribute, DW_STRING) |
| 8753 | (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR) |
| 8754 | (DW_SIGNATURE, struct dwarf_block, attr_value_as_address) |
| 8755 | (attr_form_is_block, attr_form_is_section_offset) |
| 8756 | (attr_form_is_constant, attr_form_is_ref): Move. |
| 8757 | * dwarf2/attribute.h: New file. |
| 8758 | * dwarf2/attribute.c: New file, from dwarf2read.c. |
| 8759 | * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c. |
| 8760 | |
| 8761 | 2020-02-08 Tom Tromey <tom@tromey.com> |
| 8762 | |
| 8763 | * dwarf2read.c (abbrev_table_up, struct abbrev_info) |
| 8764 | (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table): |
| 8765 | Move. |
| 8766 | (read_cutu_die_from_dwo, build_type_psymtabs_1): Update. |
| 8767 | (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev) |
| 8768 | (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to |
| 8769 | abbrev.c. |
| 8770 | * dwarf2/abbrev.h: New file. |
| 8771 | * dwarf2/abbrev.c: New file, from dwarf2read.c. |
| 8772 | * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c. |
| 8773 | |
| 8774 | 2020-02-08 Tom Tromey <tom@tromey.com> |
| 8775 | |
| 8776 | * dwarf2read.c (dwarf2_section_buffer_overflow_complaint) |
| 8777 | (dwarf2_section_size, dwarf2_get_section_info) |
| 8778 | (create_signatured_type_table_from_debug_names) |
| 8779 | (create_addrmap_from_aranges, read_debug_names_from_section) |
| 8780 | (get_gdb_index_contents_from_section, read_comp_unit_head) |
| 8781 | (error_check_comp_unit_head, read_abbrev_offset) |
| 8782 | (create_debug_type_hash_table, init_cu_die_reader) |
| 8783 | (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard) |
| 8784 | (read_comp_units_from_section, create_cus_hash_table) |
| 8785 | (create_dwp_hash_table, create_dwo_unit_in_dwp_v1) |
| 8786 | (create_dwp_v2_section, dwarf2_rnglists_process) |
| 8787 | (dwarf2_ranges_process, read_die_and_siblings, read_full_die) |
| 8788 | (abbrev_table_read_table, read_indirect_string_at_offset_from) |
| 8789 | (read_indirect_string_from_dwz, read_addr_index_1) |
| 8790 | (read_str_index, dwarf_decode_line_header, skip_form_bytes) |
| 8791 | (dwarf_decode_macro_bytes, dwarf_decode_macros) |
| 8792 | (fill_in_loclist_baton): Update. |
| 8793 | * dwarf2/section.h (struct dwarf2_section_info) <get_name, |
| 8794 | get_containing_section, get_bfd_owner, get_bfd_section, |
| 8795 | get_file_name, get_id, get_flags, empty, read>: Declare methods. |
| 8796 | (dwarf2_read_section, get_section_name, get_section_file_name) |
| 8797 | (get_containing_section, get_section_bfd_owner) |
| 8798 | (get_section_bfd_section, get_section_name, get_section_file_name) |
| 8799 | (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't |
| 8800 | declare. |
| 8801 | * dwarf2/section.c (dwarf2_section_info::get_containing_section) |
| 8802 | (dwarf2_section_info::get_bfd_owner) |
| 8803 | (dwarf2_section_info::get_bfd_section) |
| 8804 | (dwarf2_section_info::get_name) |
| 8805 | (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id) |
| 8806 | (dwarf2_section_info::get_flags, dwarf2_section_info::empty) |
| 8807 | (dwarf2_section_info::read): Now methods. |
| 8808 | * dwarf-index-write.c (class debug_names): Update. |
| 8809 | |
| 8810 | 2020-02-08 Tom Tromey <tom@tromey.com> |
| 8811 | |
| 8812 | * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section): |
| 8813 | Move to dwarf2/section.h. |
| 8814 | * dwarf2read.c (get_containing_section, get_section_bfd_owner) |
| 8815 | (get_section_bfd_section, get_section_name) |
| 8816 | (get_section_file_name, get_section_id, get_section_flags) |
| 8817 | (dwarf2_section_empty_p, dwarf2_read_section): Moe to |
| 8818 | dwarf2/section.c. |
| 8819 | * dwarf2/section.h: New file. |
| 8820 | * dwarf2/section.c: New file, from dwarf2read.c. |
| 8821 | * Makefile.in (COMMON_SFILES): Add dwarf2/section.c. |
| 8822 | |
| 8823 | 2020-02-08 Tom Tromey <tom@tromey.com> |
| 8824 | |
| 8825 | * dwarf2read.h (read_unsigned_leb128): Don't declare. |
| 8826 | * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes) |
| 8827 | (read_2_signed_bytes, read_3_bytes, read_4_bytes) |
| 8828 | (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h. |
| 8829 | (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c. |
| 8830 | * dwarf2/leb.h: New file, from dwarf2read.c. |
| 8831 | * dwarf2/leb.c: New file, from dwarf2read.c. |
| 8832 | * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes): |
| 8833 | Remove. |
| 8834 | * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2. |
| 8835 | (COMMON_SFILES): Add dwarf2/leb.c. |
| 8836 | |
| 8837 | 2020-02-08 Joel Brobecker <brobecker@adacore.com> |
| 8838 | |
| 8839 | GDB 9.1 released. |
| 8840 | |
| 8841 | 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org> |
| 8842 | |
| 8843 | PR gdb/25190: |
| 8844 | * gdb/remote-sim.c (gdb_os_write_stderr): Update. |
| 8845 | * gdb/remote.c (remote_console_output): Update. |
| 8846 | * gdb/ui-file.c (fputs_unfiltered): Rename to... |
| 8847 | (ui_file_puts): ...this. |
| 8848 | * gdb/ui-file.h (ui_file_puts): Add declaration. |
| 8849 | * gdb/utils.c (emit_style_escape): Update. |
| 8850 | (flush_wrap_buffer): Update. |
| 8851 | (fputs_maybe_filtered): Update. |
| 8852 | (fputs_unfiltered): Add function. |
| 8853 | |
| 8854 | 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org> |
| 8855 | |
| 8856 | * gdb/event-loop.c (gdb_wait_for_event): Update. |
| 8857 | * gdb/printcmd.c (printf_command): Update. |
| 8858 | * gdb/remote-fileio.c (remote_fileio_func_write): Update. |
| 8859 | * gdb/remote-sim.c (gdb_os_flush_stdout): Update. |
| 8860 | (gdb_os_flush_stderr): Update. |
| 8861 | * gdb/remote.c (remote_console_output): Update. |
| 8862 | * gdb/ui-file.c (gdb_flush): Rename to... |
| 8863 | (ui_file_flush): ...this. |
| 8864 | (stderr_file::write): Update. |
| 8865 | (stderr_file::puts): Update. |
| 8866 | * gdb/ui-file.h (gdb_flush): Rename to... |
| 8867 | (ui_file_flush): ...this. |
| 8868 | * gdb/utils.c (gdb_flush): Add function. |
| 8869 | * gdb/utils.h (gdb_flush): Add declaration. |
| 8870 | |
| 8871 | 2020-02-07 Tom Tromey <tromey@adacore.com> |
| 8872 | |
| 8873 | PR breakpoints/24915: |
| 8874 | * source.c (find_and_open_source): Do not check basenames_may_differ. |
| 8875 | |
| 8876 | 2020-02-07 Tom Tromey <tom@tromey.com> |
| 8877 | |
| 8878 | * README: Update gdbserver documentation. |
| 8879 | * gdbserver: Move to top level. |
| 8880 | * configure.tgt (build_gdbserver): Remove. |
| 8881 | * configure.ac: Remove --enable-gdbserver. |
| 8882 | * configure: Rebuild. |
| 8883 | * Makefile.in (distclean): Don't mention gdbserver. |
| 8884 | |
| 8885 | 2020-02-06 Shahab Vahedi <shahab@synopsys.com> |
| 8886 | |
| 8887 | * source-cache.c (source_cache::ensure): Surround |
| 8888 | get_plain_source_lines with a try/catch. |
| 8889 | (source_cache::get_line_charpos): Get rid of try/catch |
| 8890 | and only check for the return value of "ensure". |
| 8891 | * tui/tui-source.c (tui_source_window::set_contents): |
| 8892 | Simplify "nlines" calculation. |
| 8893 | |
| 8894 | 2020-02-06 Shahab Vahedi <shahab@synopsys.com> |
| 8895 | |
| 8896 | * MAINTAINERS (Write After Approval): Add myself. |
| 8897 | |
| 8898 | 2020-02-05 Christian Biesinger <cbiesinger@google.com> |
| 8899 | |
| 8900 | * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class |
| 8901 | function call. |
| 8902 | |
| 8903 | 2020-02-05 Christian Biesinger <cbiesinger@google.com> |
| 8904 | |
| 8905 | * ppc-nbsd-tdep.h: Fix macro name in #endif comment. |
| 8906 | |
| 8907 | 2020-02-05 Maciej W. Rozycki <macro@wdc.com> |
| 8908 | |
| 8909 | * nat/riscv-linux-tdesc.h: New file. |
| 8910 | * nat/riscv-linux-tdesc.c: New file, taking code from... |
| 8911 | * riscv-linux-nat.c (riscv_linux_nat_target::read_description): |
| 8912 | ... here. |
| 8913 | * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to |
| 8914 | NATDEPFILES. |
| 8915 | |
| 8916 | 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com> |
| 8917 | |
| 8918 | * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that |
| 8919 | we don't set the fake simulator ptid to the null_ptid. |
| 8920 | |
| 8921 | 2020-02-03 Simon Marchi <simon.marchi@efficios.com> |
| 8922 | |
| 8923 | * fork-child.c (gdb_startup_inferior): Use bool instead of int. |
| 8924 | * gdbthread.h (class thread_info) <resumed>: Likewise. |
| 8925 | * infrun.c (resume_1): Likewise. |
| 8926 | (proceed): Likewise. |
| 8927 | (infrun_thread_stop_requested): Likewise. |
| 8928 | (stop_all_threads): Likewise. |
| 8929 | (handle_inferior_event): Likewise. |
| 8930 | (restart_threads): Likewise. |
| 8931 | (finish_step_over): Likewise. |
| 8932 | (keep_going_stepped_thread): Likewise. |
| 8933 | * linux-nat.c (attach_proc_task_lwp_callback): Likewise. |
| 8934 | (linux_handle_extended_wait): Likewise. |
| 8935 | * record-btrace.c (get_thread_current_frame_id): Likewise. |
| 8936 | * record-full.c (record_full_wait_1): Likewise. |
| 8937 | * remote.c (remote_target::process_initial_stop_replies): Likewise. |
| 8938 | * target.c (target_resume): Likewise. |
| 8939 | * thread.c (set_running_thread): Likewise. |
| 8940 | |
| 8941 | 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com> |
| 8942 | |
| 8943 | * f-valprint.c (f77_print_array_1): Changed datatype of index |
| 8944 | variable to LONGEST from int to enable it to contain bound |
| 8945 | values correctly. |
| 8946 | |
| 8947 | 2020-02-03 Maciej W. Rozycki <macro@wdc.com> |
| 8948 | |
| 8949 | * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro. |
| 8950 | (supply_fpregset_regnum, fill_fpregset): Handle regset buffer |
| 8951 | offsets according to FLEN determined. |
| 8952 | (riscv_linux_nat_target::read_description): Determine FLEN |
| 8953 | dynamically. |
| 8954 | (riscv_linux_nat_target::fetch_registers): Size regset buffer |
| 8955 | according to FLEN determined. |
| 8956 | (riscv_linux_nat_target::store_registers): Likewise. |
| 8957 | |
| 8958 | 2020-02-01 Shahab Vahedi <shahab@synopsys.com> |
| 8959 | |
| 8960 | * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0 |
| 8961 | when reg->group is empty and reggroup is not. |
| 8962 | |
| 8963 | 2020-01-31 Tom Tromey <tromey@adacore.com> |
| 8964 | |
| 8965 | * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior): |
| 8966 | Call beneath target's mourn_inferior after unpushing. |
| 8967 | |
| 8968 | 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com> |
| 8969 | |
| 8970 | PR tui/9765 |
| 8971 | * tui/tui-disasm.c (tui_find_disassembly_address): If we don't |
| 8972 | have enough lines to fill the screen, still return the lowest |
| 8973 | address we found. |
| 8974 | |
| 8975 | 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com> |
| 8976 | |
| 8977 | * tui/tui-win.c (_initialize_tui_win): Update help text for '+', |
| 8978 | '-', '<', and '>' commands. |
| 8979 | |
| 8980 | 2020-01-29 Pedro Alves <palves@redhat.com> |
| 8981 | Sergio Durigan Junior <sergiodj@redhat.com> |
| 8982 | |
| 8983 | * infcmd.c (construct_inferior_arguments): Assert that |
| 8984 | 'argc' is greater than 0. |
| 8985 | |
| 8986 | 2020-01-29 Luis Machado <luis.machado@linaro.org> |
| 8987 | |
| 8988 | * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f. |
| 8989 | (BRK_INSN_MASK): Define to 0xd4200000. |
| 8990 | (aarch64_program_breakpoint_here_p): New function. |
| 8991 | (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook. |
| 8992 | * arch-utils.c (default_program_breakpoint_here_p): Moved from |
| 8993 | breakpoint.c. |
| 8994 | * arch-utils.h (default_program_breakpoint_here_p): Moved from |
| 8995 | breakpoint.h |
| 8996 | * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and |
| 8997 | call gdbarch_program_breakpoint_here_p. |
| 8998 | (program_breakpoint_here): Moved to arch-utils.c, renamed to |
| 8999 | default_program_breakpoint_here_p, changed return type to bool and |
| 9000 | simplified. |
| 9001 | * breakpoint.h (program_breakpoint_here): Moved prototype to |
| 9002 | arch-utils.h, renamed to default_program_breakpoint_here_p and changed |
| 9003 | return type to bool. |
| 9004 | * gdbarch.c: Regenerate. |
| 9005 | * gdbarch.h: Regenerate. |
| 9006 | * gdbarch.sh (program_breakpoint_here_p): New method. |
| 9007 | * infrun.c (handle_signal_stop): Call |
| 9008 | gdbarch_program_breakpoint_here_p. |
| 9009 | |
| 9010 | 2020-01-26 Tom Tromey <tom@tromey.com> |
| 9011 | |
| 9012 | * ctfread.c (struct ctf_fp_info): Reindent. |
| 9013 | (_initialize_ctfread): Remove. |
| 9014 | |
| 9015 | 2020-01-26 Tom Tromey <tom@tromey.com> |
| 9016 | |
| 9017 | * psymtab.c (partial_map_expand_apply) |
| 9018 | (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol) |
| 9019 | (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab) |
| 9020 | (psym_print_stats, psym_expand_symtabs_for_function) |
| 9021 | (psym_map_symbol_filenames, psym_map_matching_symbols) |
| 9022 | (psym_expand_symtabs_matching) |
| 9023 | (partial_symtab::read_dependencies, maintenance_info_psymtabs) |
| 9024 | (maintenance_check_psymtabs): Use new methods. |
| 9025 | * psympriv.h (struct partial_symtab) <readin_p, |
| 9026 | get_compunit_symtab>: New methods. |
| 9027 | <readin, compunit_symtab>: Remove members. |
| 9028 | (struct standard_psymtab): New. |
| 9029 | (struct legacy_psymtab): Derive from standard_psymtab. |
| 9030 | * dwarf2read.h (struct dwarf2_psymtab): Derive from |
| 9031 | standard_psymtab. |
| 9032 | * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab. |
| 9033 | |
| 9034 | 2020-01-26 Tom Tromey <tom@tromey.com> |
| 9035 | |
| 9036 | * xcoffread.c (xcoff_psymtab_to_symtab_1): Call |
| 9037 | read_dependencies. Add assert. |
| 9038 | * psymtab.c (partial_symtab::read_dependencies): New method. |
| 9039 | * psympriv.h (struct partial_symtab) <read_dependencies>: New |
| 9040 | method. |
| 9041 | * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies. |
| 9042 | * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call |
| 9043 | read_dependencies. |
| 9044 | * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies. |
| 9045 | Add assert. |
| 9046 | |
| 9047 | 2020-01-26 Tom Tromey <tom@tromey.com> |
| 9048 | |
| 9049 | * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order. |
| 9050 | Call expand_psymtab. |
| 9051 | (xcoff_read_symtab): Call expand_psymtab. |
| 9052 | (xcoff_start_psymtab, xcoff_end_psymtab): Set |
| 9053 | legacy_expand_psymtab. |
| 9054 | * psympriv.h (struct partial_symtab) <expand_psymtab>: New |
| 9055 | method. |
| 9056 | (struct legacy_psymtab) <expand_psymtab>: Implement. |
| 9057 | <legacy_expand_psymtab>: New member. |
| 9058 | * mdebugread.c (mdebug_read_symtab): Call expand_psymtab. |
| 9059 | (parse_partial_symbols): Set legacy_expand_psymtab. |
| 9060 | (psymtab_to_symtab_1): Change argument order. Call |
| 9061 | expand_psymtab. |
| 9062 | (new_psymtab): Set legacy_expand_psymtab. |
| 9063 | * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare. |
| 9064 | * dwarf2read.c (dwarf2_psymtab::read_symtab): Call |
| 9065 | expand_psymtab. |
| 9066 | (dwarf2_psymtab::expand_psymtab): Rename from |
| 9067 | psymtab_to_symtab_1. Call expand_psymtab. |
| 9068 | * dbxread.c (start_psymtab): Set legacy_expand_psymtab. |
| 9069 | (dbx_end_psymtab): Likewise. |
| 9070 | (dbx_psymtab_to_symtab_1): Change argument order. Call |
| 9071 | expand_psymtab. |
| 9072 | (dbx_read_symtab): Call expand_psymtab. |
| 9073 | * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare. |
| 9074 | (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab. |
| 9075 | (ctf_psymtab::read_symtab): Call expand_psymtab. |
| 9076 | |
| 9077 | 2020-01-26 Tom Tromey <tom@tromey.com> |
| 9078 | |
| 9079 | * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert. |
| 9080 | * psymtab.c (psymtab_to_symtab): Print verbose "Reading" |
| 9081 | messages. |
| 9082 | * mdebugread.c (mdebug_read_symtab): Remove prints. |
| 9083 | * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add |
| 9084 | assert. |
| 9085 | * dbxread.c (dbx_read_symtab): Remove prints. Add assert. |
| 9086 | |
| 9087 | 2020-01-26 Tom Tromey <tom@tromey.com> |
| 9088 | |
| 9089 | * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab) |
| 9090 | (xcoff_psymtab_to_symtab_1, xcoff_read_symtab) |
| 9091 | (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use |
| 9092 | legacy_symtab. |
| 9093 | * stabsread.h (dbx_end_psymtab): Use legacy_symtab. |
| 9094 | * psymtab.c (psymtab_to_symtab): Call method. |
| 9095 | (dump_psymtab): Update. |
| 9096 | * psympriv.h (struct partial_symtab): Add virtual destructor. |
| 9097 | <read_symtab>: New method. |
| 9098 | (struct legacy_symtab): New. |
| 9099 | * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab. |
| 9100 | (struct pst_map) <pst>: Now a legacy_psymtab. |
| 9101 | (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1) |
| 9102 | (new_psymtab): Use legacy_psymtab. |
| 9103 | * dwarf2read.h (struct dwarf2_psymtab): New. |
| 9104 | (struct dwarf2_per_cu_data) <psymtab>: Use it. |
| 9105 | * dwarf2read.c (dwarf2_create_include_psymtab) |
| 9106 | (dwarf2_build_include_psymtabs, create_type_unit_group) |
| 9107 | (create_partial_symtab, process_psymtab_comp_unit_reader) |
| 9108 | (build_type_psymtabs_reader, build_type_psymtab_dependencies) |
| 9109 | (set_partial_user): Use dwarf2_psymtab. |
| 9110 | (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab. |
| 9111 | (psymtab_to_symtab_1, process_full_comp_unit) |
| 9112 | (process_full_type_unit, dwarf2_ranges_read) |
| 9113 | (dwarf2_get_pc_bounds, psymtab_include_file_name) |
| 9114 | (dwarf_decode_lines): Use dwarf2_psymtab. |
| 9115 | * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab. |
| 9116 | (add_address_entry_worker, write_one_signatured_type) |
| 9117 | (recursively_count_psymbols, recursively_write_psymbols) |
| 9118 | (write_one_signatured_type, psyms_seen_size, write_gdbindex) |
| 9119 | (write_debug_names): Likewise. |
| 9120 | * dbxread.c (struct header_file_location): Take a legacy_psymtab. |
| 9121 | <pst>: Now a legacy_psymtab. |
| 9122 | (find_corresponding_bincl_psymtab): Return a legacy_psymtab. |
| 9123 | (read_dbx_symtab, start_psymtab, dbx_end_psymtab) |
| 9124 | (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab. |
| 9125 | * ctfread.c (struct ctf_psymtab): New. |
| 9126 | (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a |
| 9127 | ctf_psymtab. |
| 9128 | (ctf_psymtab::read_symtab): Rename from ctf_read_symtab. |
| 9129 | (create_partial_symtab): Return a ctf_psymtab. |
| 9130 | (scan_partial_symbols): Update. |
| 9131 | |
| 9132 | 2020-01-26 Tom Tromey <tom@tromey.com> |
| 9133 | |
| 9134 | * xcoffread.c (xcoff_start_psymtab): Use new. |
| 9135 | * psymtab.c (partial_symtab::partial_symtab): New constructor, |
| 9136 | renamed from start_psymtab_common. |
| 9137 | * psympriv.h (struct partial_symtab): Add new constructor. |
| 9138 | (start_psymtab_common): Don't declare. |
| 9139 | * mdebugread.c (parse_partial_symbols): Use new. |
| 9140 | * dwarf2read.c (create_partial_symtab): Use new. |
| 9141 | * dbxread.c (start_psymtab): Use new. |
| 9142 | * ctfread.c (create_partial_symtab): Use new. |
| 9143 | |
| 9144 | 2020-01-26 Tom Tromey <tom@tromey.com> |
| 9145 | |
| 9146 | * xcoffread.c (xcoff_end_psymtab): Use new. |
| 9147 | * psymtab.c (start_psymtab_common): Use new. |
| 9148 | (partial_symtab::partial_symtab): Rename from allocate_psymtab. |
| 9149 | Update. |
| 9150 | * psympriv.h (struct partial_symtab): Add parameters to |
| 9151 | constructor. Don't inline. |
| 9152 | (allocate_psymtab): Don't declare. |
| 9153 | * mdebugread.c (new_psymtab): Use new. |
| 9154 | * dwarf2read.c (dwarf2_create_include_psymtab): Use new. |
| 9155 | * dbxread.c (dbx_end_psymtab): Use new. |
| 9156 | |
| 9157 | 2020-01-26 Tom Tromey <tom@tromey.com> |
| 9158 | |
| 9159 | * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from |
| 9160 | allocate_psymtab. Update documentation. |
| 9161 | * psymtab.c (psymtab_storage::install_psymtab): Rename from |
| 9162 | allocate_psymtab. Do not use new. |
| 9163 | (allocate_psymtab): Use new. Update. |
| 9164 | |
| 9165 | 2020-01-26 Tom Tromey <tom@tromey.com> |
| 9166 | |
| 9167 | * xcoffread.c (xcoff_psymtab_to_symtab_1): Update. |
| 9168 | * psymtab.c (psym_print_stats): Update. |
| 9169 | * psympriv.h (struct partial_symtab) <readin, |
| 9170 | psymtabs_addrmap_supported, anonymous>: Now bool. |
| 9171 | * mdebugread.c (psymtab_to_symtab_1): Update. |
| 9172 | * dwarf2read.c (create_type_unit_group, create_partial_symtab) |
| 9173 | (build_type_psymtabs_reader, psymtab_to_symtab_1) |
| 9174 | (process_full_comp_unit, process_full_type_unit): Update. |
| 9175 | * dbxread.c (dbx_psymtab_to_symtab_1): Update. |
| 9176 | * ctfread.c (psymtab_to_symtab): Update. |
| 9177 | |
| 9178 | 2020-01-26 Tom Tromey <tom@tromey.com> |
| 9179 | |
| 9180 | * mdebugread.c (parse_partial_symbols): Use discard_psymtab. |
| 9181 | * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove. |
| 9182 | * psymtab.c (psymtab_storage): Delete psymtabs. |
| 9183 | (psymtab_storage::allocate_psymtab): Use new. |
| 9184 | (psymtab_storage::discard_psymtab): Use delete. |
| 9185 | * psympriv.h (struct partial_symtab): Add constructor and |
| 9186 | initializers. |
| 9187 | |
| 9188 | 2020-01-26 Tom Tromey <tom@tromey.com> |
| 9189 | |
| 9190 | * machoread.c: Do not include psympriv.h. |
| 9191 | |
| 9192 | 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
| 9193 | |
| 9194 | * NEWS: Mention the new option and the set/show commands. |
| 9195 | |
| 9196 | 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
| 9197 | |
| 9198 | * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode) |
| 9199 | (show_exec_file_mismatch_command, set_exec_file_mismatch_command) |
| 9200 | (validate_exec_file): New variables, enums, functions. |
| 9201 | (exec_file_locate_attach, print_section_info): Style the filenames. |
| 9202 | (_initialize_exec): Install show_exec_file_mismatch_command and |
| 9203 | set_exec_file_mismatch_command. |
| 9204 | * gdbcore.h (validate_exec_file): Declare. |
| 9205 | * infcmd.c (attach_command): Call validate_exec_file. |
| 9206 | * remote.c ( remote_target::remote_add_inferior): Likewise. |
| 9207 | |
| 9208 | 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com> |
| 9209 | |
| 9210 | * frame.c (find_frame_sal): Move call to get_next_frame into more |
| 9211 | inner scope. |
| 9212 | * inline-frame.c (inilne_state) <inline_state>: Update argument |
| 9213 | types. |
| 9214 | (inilne_state) <skipped_symbol>: Rename to... |
| 9215 | (inilne_state) <skipped_symbols>: ...this, and change to a vector. |
| 9216 | (skip_inline_frames): Build vector of skipped symbols and use this |
| 9217 | to reate the inline_state. |
| 9218 | (inline_skipped_symbol): Add a comment and some assertions, fetch |
| 9219 | skipped symbol from the list. |
| 9220 | |
| 9221 | 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com> |
| 9222 | |
| 9223 | * buildsym.c (lte_is_less_than): Delete. |
| 9224 | (buildsym_compunit::end_symtab_with_blockvector): Create local |
| 9225 | lambda function to sort line table entries, and use |
| 9226 | std::stable_sort instead of std::sort. |
| 9227 | * symtab.c (find_pc_sect_line): Skip backward over end of sequence |
| 9228 | markers when looking for a previous line. |
| 9229 | |
| 9230 | 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com> |
| 9231 | |
| 9232 | * dwarf2read.c (lnp_state_machine::record_line): Include |
| 9233 | end_sequence parameter in debug print out. Record the line if we |
| 9234 | are at an end_sequence marker even if it's not the start of a |
| 9235 | statement. |
| 9236 | * symmisc.c (maintenance_print_one_line_table): Print end of |
| 9237 | sequence markers with 'END' not '0'. |
| 9238 | |
| 9239 | 2020-01-24 Pedro Alves <palves@redhat.com> |
| 9240 | |
| 9241 | PR gdb/25410 |
| 9242 | * thread.c (scoped_restore_current_thread::restore): Use |
| 9243 | switch_to_inferior_no_thread. |
| 9244 | * exec.c: Include "progspace-and-thread.h". |
| 9245 | (add_target_sections, remove_target_sections): |
| 9246 | scoped_restore_current_pspace_and_thread instead of |
| 9247 | scoped_restore_current_thread. |
| 9248 | * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace |
| 9249 | and aspace to the inferior before calling clone_program_space. |
| 9250 | Remove stale comment. |
| 9251 | |
| 9252 | 2020-01-24 Christian Biesinger <cbiesinger@google.com> |
| 9253 | |
| 9254 | * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to... |
| 9255 | (arm_netbsd_nat_target::fetch_registers): ...this. |
| 9256 | (arm_nbsd_nat_target::store_registers): Rename to... |
| 9257 | (arm_netbsd_nat_target::store_registers): ...this. |
| 9258 | |
| 9259 | 2020-01-24 Christian Biesinger <cbiesinger@google.com> |
| 9260 | |
| 9261 | * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of |
| 9262 | register_t. |
| 9263 | |
| 9264 | 2020-01-24 Christian Biesinger <cbiesinger@google.com> |
| 9265 | |
| 9266 | * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections): |
| 9267 | Update comment. |
| 9268 | * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections): |
| 9269 | Likewise. |
| 9270 | * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise. |
| 9271 | * gdbcore.h (deprecated_add_core_fns): Update comment to point to |
| 9272 | the correct replacement (iterate_over_regset_sections). |
| 9273 | * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections): |
| 9274 | Update comment. |
| 9275 | |
| 9276 | 2020-01-24 Graham Markall <graham.markall@embecosm.com> |
| 9277 | |
| 9278 | PR gdb/23718 |
| 9279 | * gdb/python/python.c (execute_gdb_command): Call |
| 9280 | async_enable_stdin in catch block. |
| 9281 | |
| 9282 | 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com> |
| 9283 | |
| 9284 | * event-loop.c (start_event_loop): Wrap async_enable_stdin with |
| 9285 | SWITCH_THRU_ALL_UIS. |
| 9286 | |
| 9287 | 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com> |
| 9288 | |
| 9289 | PR tui/9765 |
| 9290 | * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header |
| 9291 | comment, add extra parameter, and update to store previous symbol |
| 9292 | when appropriate. |
| 9293 | * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment, |
| 9294 | add extra parameter. |
| 9295 | * tui/tui-disasm.c (tui_disassemble): Update header comment, |
| 9296 | remove unneeded parameter, add try/catch around gdb_print_insn, |
| 9297 | rewrite to add items to asm_lines vector. |
| 9298 | (tui_find_backward_disassembly_start_address): New function. |
| 9299 | (tui_find_disassembly_address): Updated throughout. |
| 9300 | (tui_disasm_window::set_contents): Update for changes to |
| 9301 | tui_disassemble. |
| 9302 | (tui_disasm_window::do_scroll_vertical): No need to adjust the |
| 9303 | number of lines to scroll. |
| 9304 | |
| 9305 | 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca> |
| 9306 | |
| 9307 | * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up. |
| 9308 | (SECT_OFF_DATA): Likewise. |
| 9309 | (SECT_OFF_RODATA): Likewise. |
| 9310 | (SECT_OFF_TEXT): Likewise. |
| 9311 | (SECT_OFF_BSS): Likewise. |
| 9312 | (struct objfile) <text_section_offset, data_section_offset>: New |
| 9313 | methods. |
| 9314 | * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use |
| 9315 | objfile::text_section_offset. |
| 9316 | * coff-pe-read.c (add_pe_forwarded_sym): Likewise. |
| 9317 | * coffread.c (coff_symtab_read): Likewise. |
| 9318 | (enter_linenos): Likewise. |
| 9319 | (process_coff_symbol): Likewise. |
| 9320 | * ctfread.c (get_objfile_text_range): Likewise. |
| 9321 | * dtrace-probe.c (dtrace_probe::get_relocated_address): |
| 9322 | Use objfile::data_section_offset. |
| 9323 | * dwarf2-frame.c (execute_cfa_program): Use |
| 9324 | objfile::text_section_offset. |
| 9325 | (dwarf2_frame_find_fde): Likewise. |
| 9326 | * dwarf2read.c (create_addrmap_from_index): Likewise. |
| 9327 | (create_addrmap_from_aranges): Likewise. |
| 9328 | (dw2_find_pc_sect_compunit_symtab): Likewise. |
| 9329 | (process_psymtab_comp_unit_reader): Likewise. |
| 9330 | (add_partial_symbol): Likewise. |
| 9331 | (add_partial_subprogram): Likewise. |
| 9332 | (process_full_comp_unit): Likewise. |
| 9333 | (read_file_scope): Likewise. |
| 9334 | (read_func_scope): Likewise. |
| 9335 | (read_lexical_block_scope): Likewise. |
| 9336 | (read_call_site_scope): Likewise. |
| 9337 | (dwarf2_rnglists_process): Likewise. |
| 9338 | (dwarf2_ranges_process): Likewise. |
| 9339 | (dwarf2_ranges_read): Likewise. |
| 9340 | (dwarf_decode_lines_1): Likewise. |
| 9341 | (new_symbol): Likewise. |
| 9342 | (dwarf2_fetch_die_loc_sect_off): Likewise. |
| 9343 | (dwarf2_per_cu_text_offset): Likewise. |
| 9344 | * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise. |
| 9345 | * hppa-tdep.c (read_unwind_info): Likewise. |
| 9346 | * ia64-tdep.c (ia64_find_unwind_table): Likewise. |
| 9347 | * psympriv.h (struct partial_symtab): Likewise. |
| 9348 | * psymtab.c (find_pc_sect_psymtab): Likewise. |
| 9349 | * solib-svr4.c (enable_break): Likewise. |
| 9350 | * stap-probe.c (relocate_address): Use |
| 9351 | objfile::data_section_offset. |
| 9352 | * xcoffread.c (enter_line_range): Use |
| 9353 | objfile::text_section_offset. |
| 9354 | (read_xcoff_symtab): Likewise. |
| 9355 | |
| 9356 | 2020-01-23 Simon Marchi <simon.marchi@efficios.com> |
| 9357 | |
| 9358 | * darwin-nat.c (darwin_nat_target::wait_1): Move `inf` |
| 9359 | declaration to narrower scopes. |
| 9360 | |
| 9361 | 2020-01-23 Simon Marchi <simon.marchi@efficios.com> |
| 9362 | |
| 9363 | * darwin-nat.h (struct darwin_exception_msg, enum |
| 9364 | darwin_msg_state, struct darwin_thread_info, darwin_thread_t): |
| 9365 | Move up. |
| 9366 | (class darwin_nat_target) <wait_1, check_new_threads, |
| 9367 | decode_exception_message, decode_message, stop_inferior, |
| 9368 | init_thread_list, ptrace_him, cancel_breakpoint>: Declare. |
| 9369 | * darwin-nat.c (darwin_check_new_threads): Rename to... |
| 9370 | (darwin_nat_target::check_new_threads): ... this. |
| 9371 | (darwin_suspend_inferior_it): Remove. |
| 9372 | (darwin_decode_exception_message): Rename to... |
| 9373 | (darwin_nat_target::decode_exception_message): ... this. |
| 9374 | (darwin_nat_target::resume): Pass target to find_inferior_ptid. |
| 9375 | (darwin_decode_message): Rename to... |
| 9376 | (darwin_nat_target::decode_message): ... this. |
| 9377 | (cancel_breakpoint): Rename to... |
| 9378 | (darwin_nat_target::cancel_breakpoint): ... this. |
| 9379 | (darwin_wait): Rename to... |
| 9380 | (darwin_nat_target::wait_1): ... this. Use range-based for loop |
| 9381 | instead of iterate_over_inferiors. |
| 9382 | (darwin_nat_target::wait): Call wait_1 instead of darwin_wait. |
| 9383 | (darwin_stop_inferior): Rename to... |
| 9384 | (darwin_nat_target::stop_inferior): ... this. |
| 9385 | (darwin_nat_target::kill): Call wait_1 instead of darwin_wait. |
| 9386 | (darwin_init_thread_list): Rename to... |
| 9387 | (darwin_nat_target::init_thread_list): ... this. |
| 9388 | (darwin_ptrace_him): Rename to... |
| 9389 | (darwin_nat_target::ptrace_him): ... this. |
| 9390 | (darwin_nat_target::create_inferior): Pass lambda function to |
| 9391 | fork_inferior. |
| 9392 | (darwin_nat_target::detach): Call stop_inferior instead of |
| 9393 | darwin_stop_inferior. |
| 9394 | * fork-inferior.h (fork_inferior): Change init_trace_fun |
| 9395 | parameter to gdb::function_view. |
| 9396 | * fork-inferior.c (fork_inferior): Likewise. |
| 9397 | |
| 9398 | 2020-01-23 Hannes Domani <ssbssa@yahoo.de> |
| 9399 | |
| 9400 | * i386-cygwin-tdep.c (core_process_module_section): Update. |
| 9401 | * windows-nat.c (struct lm_info_windows): Add text_offset. |
| 9402 | (windows_xfer_shared_libraries): Update. |
| 9403 | * windows-tdep.c (windows_xfer_shared_library): |
| 9404 | Add text_offset_cached argument. |
| 9405 | * windows-tdep.h (windows_xfer_shared_library): Update. |
| 9406 | |
| 9407 | 2020-01-21 Simon Marchi <simon.marchi@efficios.com> |
| 9408 | |
| 9409 | * gdbarch.sh: Add declaration for _initialize_gdbarch. |
| 9410 | |
| 9411 | 2020-01-21 Simon Marchi <simon.marchi@efficios.com> |
| 9412 | |
| 9413 | * remote-sim.c (check_for_duplicate_sim_descriptor): Remove. |
| 9414 | (get_sim_inferior_data): Remove use of iterate_over_inferiors, |
| 9415 | replace with range-based for. |
| 9416 | (gdbsim_interrupt_inferior): Remove. |
| 9417 | (gdbsim_target::interrupt): Replace iterate_over_inferiors use |
| 9418 | with a range-based for. Inline code from |
| 9419 | gdbsim_interrupt_inferior. |
| 9420 | |
| 9421 | 2020-01-21 Simon Marchi <simon.marchi@efficios.com> |
| 9422 | |
| 9423 | * infrun.c (proceed): Fix indentation. |
| 9424 | |
| 9425 | 2020-01-21 Tom Tromey <tromey@adacore.com> |
| 9426 | |
| 9427 | * source-cache.c (source_cache::ensure): Call ext_lang_colorize. |
| 9428 | * python/python.c (python_extension_ops): Update. |
| 9429 | (gdbpy_colorize): New function. |
| 9430 | * python/lib/gdb/__init__.py (colorize): New function. |
| 9431 | * extension.h (ext_lang_colorize): Declare. |
| 9432 | * extension.c (ext_lang_colorize): New function. |
| 9433 | * extension-priv.h (struct extension_language_ops) <colorize>: New |
| 9434 | member. |
| 9435 | * cli/cli-style.c (_initialize_cli_style): Update help text. |
| 9436 | |
| 9437 | 2020-01-21 Luis Machado <luis.machado@linaro.org> |
| 9438 | |
| 9439 | * aarch64-tdep.c (struct aarch64_displaced_step_closure) |
| 9440 | <cond>: Change type to bool. |
| 9441 | (aarch64_displaced_step_b_cond): Update cond to use bool type. |
| 9442 | (aarch64_displaced_step_cb): Likewise. |
| 9443 | (aarch64_displaced_step_tb): Likewise. |
| 9444 | |
| 9445 | 2020-01-21 Luis Machado <luis.machado@linaro.org> |
| 9446 | |
| 9447 | * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging |
| 9448 | output. |
| 9449 | |
| 9450 | 2020-01-21 Luis Machado <luis.machado@linaro.org> |
| 9451 | |
| 9452 | * aarch64-tdep.c (struct aarch64_displaced_step_closure ) |
| 9453 | <pc_adjust>: Adjust the documentation. |
| 9454 | (aarch64_displaced_step_fixup): Check if PC really moved before |
| 9455 | adjusting it. |
| 9456 | |
| 9457 | 2020-01-19 Tom Tromey <tom@tromey.com> |
| 9458 | |
| 9459 | * disasm.c (~gdb_disassembler): New destructor. |
| 9460 | (gdb_buffered_insn_length): Call disassemble_free_target. |
| 9461 | * disasm.h (class gdb_disassembler): Declare destructor. Use |
| 9462 | DISABLE_COPY_AND_ASSIGN. |
| 9463 | |
| 9464 | 2020-01-19 Tom Tromey <tom@tromey.com> |
| 9465 | |
| 9466 | * dwarf2read.c (abbrev_table_up): Move typedef earlier. |
| 9467 | (die_reader_func_ftype): Remove. |
| 9468 | (cutu_reader): New class. |
| 9469 | (dw2_get_file_names_reader): Remove "data" parameter. |
| 9470 | (dw2_get_file_names): Use cutu_reader. |
| 9471 | (create_debug_type_hash_table): Update. |
| 9472 | (read_cutu_die_from_dwo): Update comment. |
| 9473 | (lookup_dwo_unit): Add dwo_name parameter. |
| 9474 | (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove |
| 9475 | die_reader_func_ftype and data parameters. |
| 9476 | (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies. |
| 9477 | Remove die_reader_func_ftype and data parameters. |
| 9478 | (~cutu_reader): New; from init_cutu_and_read_dies. |
| 9479 | (cutu_reader::cutu_reader): Rename from |
| 9480 | init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype |
| 9481 | and data parameters. |
| 9482 | (init_cutu_and_read_dies_simple): Remove. |
| 9483 | (struct process_psymtab_comp_unit_data): Remove. |
| 9484 | (process_psymtab_comp_unit_reader): Remove data parameter; add |
| 9485 | want_partial_unit and pretend_language parameters. |
| 9486 | (process_psymtab_comp_unit): Use cutu_reader. |
| 9487 | (build_type_psymtabs_reader): Remove data parameter. |
| 9488 | (build_type_psymtabs_1): Use cutu_reader. |
| 9489 | (process_skeletonless_type_unit): Likewise. |
| 9490 | (load_partial_comp_unit_reader): Remove. |
| 9491 | (load_partial_comp_unit): Use cutu_reader. |
| 9492 | (load_full_comp_unit_reader): Remove. |
| 9493 | (load_full_comp_unit): Use cutu_reader. |
| 9494 | (struct create_dwo_cu_data): Remove. |
| 9495 | (create_dwo_cu_reader): Remove datap parameter; add dwo_file and |
| 9496 | dwo_unit parameters. |
| 9497 | (create_cus_hash_table): Use cutu_reader. |
| 9498 | (struct dwarf2_read_addr_index_data): Remove. |
| 9499 | (dwarf2_read_addr_index_reader): Remove. |
| 9500 | (dwarf2_read_addr_index): Use cutu_reader. |
| 9501 | (read_signatured_type_reader): Remove. |
| 9502 | (read_signatured_type): Use cutu_reader. |
| 9503 | |
| 9504 | 2020-01-19 Tom Tromey <tom@tromey.com> |
| 9505 | |
| 9506 | * tui/tui.c (tui_show_assembly): Use tui_suppress_output. |
| 9507 | * tui/tui-wingeneral.h (class tui_suppress_output): New. |
| 9508 | (tui_wrefresh): Declare. |
| 9509 | * tui/tui-wingeneral.c (suppress_output): New global. |
| 9510 | (tui_suppress_output, ~tui_suppress_output): New constructor and |
| 9511 | destructor. |
| 9512 | (tui_wrefresh): New function. |
| 9513 | (tui_gen_win_info::refresh_window): Use tui_wrefresh. |
| 9514 | (tui_gen_win_info::make_window): Call wnoutrefresh when needed. |
| 9515 | * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare |
| 9516 | method. |
| 9517 | * tui/tui-regs.c (tui_data_window::erase_data_content): Call |
| 9518 | tui_wrefresh. |
| 9519 | (tui_data_window::no_refresh): New method. |
| 9520 | (tui_data_item_window::refresh_window): Call tui_wrefresh. |
| 9521 | (tui_reg_command): Use tui_suppress_output |
| 9522 | * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output. |
| 9523 | * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New |
| 9524 | method. |
| 9525 | * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh. |
| 9526 | |
| 9527 | 2020-01-19 Tom Tromey <tom@tromey.com> |
| 9528 | |
| 9529 | * tui/tui-winsource.c (tui_update_source_windows_with_line): |
| 9530 | Handle case where symtab is null. |
| 9531 | |
| 9532 | 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca> |
| 9533 | |
| 9534 | * linux-fork.c (one_fork_p): Simplify. |
| 9535 | |
| 9536 | 2020-01-17 Simon Marchi <simon.marchi@efficios.com> |
| 9537 | |
| 9538 | * top.c (struct qt_args): Remove. |
| 9539 | (kill_or_detach): Change return type to void, replace `void *` |
| 9540 | parameter with a proper one. |
| 9541 | (print_inferior_quit_action): Likewise. |
| 9542 | (quit_confirm): Use range-based for loop to iterate over inferiors. |
| 9543 | (quit_force): Likewise. |
| 9544 | |
| 9545 | 2020-01-17 Simon Marchi <simon.marchi@efficios.com> |
| 9546 | |
| 9547 | * mi/mi-main.c (run_one_inferior): Change return type to void, replace |
| 9548 | `void *` parameter with proper parameters. |
| 9549 | (mi_cmd_exec_run): Use range-based loop to iterate over inferiors. |
| 9550 | (print_one_inferior): Change return type to void, replace `void *` |
| 9551 | parameter with proper parameters. |
| 9552 | (mi_cmd_list_thread_groups): Use range-based loop to iterate over |
| 9553 | inferiors. |
| 9554 | (get_other_inferior): Remove. |
| 9555 | (mi_cmd_remove_inferior): Use range-based loop to iterate over |
| 9556 | inferiors. |
| 9557 | |
| 9558 | 2020-01-17 Simon Marchi <simon.marchi@efficios.com> |
| 9559 | |
| 9560 | * mi/mi-interp.c (report_initial_inferior): Remove. |
| 9561 | (mi_interp::init): Use range-based for to iterate over inferiors. |
| 9562 | |
| 9563 | 2020-01-17 Simon Marchi <simon.marchi@efficios.com> |
| 9564 | |
| 9565 | * python/py-inferior.c (build_inferior_list): Remove. |
| 9566 | (gdbpy_ref): Use range-based for loop to iterate over inferiors. |
| 9567 | |
| 9568 | 2020-01-16 Christian Biesinger <cbiesinger@google.com> |
| 9569 | |
| 9570 | * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown). |
| 9571 | (btrace_stitch_trace): Likewise. |
| 9572 | * charset.c (intermediate_encoding): Likewise (vaild). |
| 9573 | * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown). |
| 9574 | * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences). |
| 9575 | * record-btrace.c (record_btrace_print_conf): Likewise (unkown). |
| 9576 | |
| 9577 | 2020-01-16 Hannes Domani <ssbssa@yahoo.de> |
| 9578 | |
| 9579 | * windows-tdep.c (windows_get_tlb_type): |
| 9580 | Add rtl_user_process_parameters type. |
| 9581 | |
| 9582 | 2020-01-16 Pedro Alves <palves@redhat.com> |
| 9583 | Norbert Lange <nolange79@gmail.com> |
| 9584 | |
| 9585 | PR build/24805 |
| 9586 | * gdbsupport/gdb_proc_service.h (PS_EXPORT): New. |
| 9587 | (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs) |
| 9588 | (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue) |
| 9589 | (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread) |
| 9590 | (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs) |
| 9591 | (ps_plog): Redeclare exported functions with default visibility. |
| 9592 | |
| 9593 | 2020-01-16 Nitika Achra <Nitika.Achra@amd.com> |
| 9594 | |
| 9595 | * dwarf2loc.c (decode_debug_loclists_addresses): Handle |
| 9596 | DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length. |
| 9597 | |
| 9598 | 2020-01-15 Simon Marchi <simon.marchi@efficios.com> |
| 9599 | |
| 9600 | * infcmd.c (post_create_inferior): Use get_thread_regcache |
| 9601 | instead of get_current_regcache. |
| 9602 | |
| 9603 | 2020-01-14 Tom Tromey <tom@tromey.com> |
| 9604 | |
| 9605 | PR symtab/12535: |
| 9606 | * python/python.c (gdbpy_decode_line): Treat empty string the same |
| 9607 | as no argument. |
| 9608 | |
| 9609 | 2020-01-14 Tom Tromey <tom@tromey.com> |
| 9610 | |
| 9611 | * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY). |
| 9612 | |
| 9613 | 2020-01-14 Tom Tromey <tom@tromey.com> |
| 9614 | |
| 9615 | * nat/linux-btrace.c: Don't include <config.h>. |
| 9616 | * nat/linux-ptrace.c: Don't include <config.h>. |
| 9617 | * nat/x86-linux-dregs.c: Don't include <config.h>. |
| 9618 | |
| 9619 | 2020-01-14 Tom Tromey <tom@tromey.com> |
| 9620 | |
| 9621 | * configure: Rebuild. |
| 9622 | * configure.ac: Move many checks to ../gdbsupport/common.m4. |
| 9623 | |
| 9624 | 2020-01-14 Tom Tromey <tom@tromey.com> |
| 9625 | |
| 9626 | * nat/x86-linux-dregs.c: Include configh.h. |
| 9627 | * nat/linux-ptrace.c: Include configh.h. |
| 9628 | * nat/linux-btrace.c: Include configh.h. |
| 9629 | * defs.h: Include config.h, bfd.h. |
| 9630 | * configure.ac: Don't source common.host. |
| 9631 | (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files. |
| 9632 | * configure: Rebuild. |
| 9633 | * acinclude.m4: Update path. |
| 9634 | * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables. |
| 9635 | (CONFIG_SRC_SUBDIR): Remove gdbsupport. |
| 9636 | (INTERNAL_CFLAGS_BASE): Add INCSUPPORT. |
| 9637 | (CLIBS): Add LIBSUPPORT. |
| 9638 | (CDEPS): Likewise. |
| 9639 | (COMMON_SFILES): Remove gdbsupport files. |
| 9640 | (HFILES_NO_SRCDIR): Likewise. |
| 9641 | (stamp-version): Update path to create-version.sh. |
| 9642 | (ALLDEPFILES): Remove gdbsupport files. |
| 9643 | |
| 9644 | 2020-01-14 Tom Tromey <tom@tromey.com> |
| 9645 | |
| 9646 | * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and |
| 9647 | USE_WIN32API when needed. |
| 9648 | * configure.ac (USE_WIN32API): Don't define. |
| 9649 | (WIN32LIBS): Use WIN32APILIBS. |
| 9650 | * configure: Rebuild. |
| 9651 | |
| 9652 | 2020-01-14 Tom Tromey <tom@tromey.com> |
| 9653 | |
| 9654 | * configure: Rebuild. |
| 9655 | * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation. |
| 9656 | |
| 9657 | 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de> |
| 9658 | |
| 9659 | * skip.c (skip_function_command): Make skip w/o arguments use the |
| 9660 | name of the inlined function if pc is inside any inlined function. |
| 9661 | |
| 9662 | 2020-01-14 Luis Machado <luis.machado@linaro.org> |
| 9663 | |
| 9664 | * inf-ptrace.c (inf_ptrace_target::resume): Update comments. |
| 9665 | * infrun.c (resume_1): Likewise. |
| 9666 | (handle_inferior_event): Remove stale comment. |
| 9667 | * linux-nat.c (linux_nat_target::resume): Update comments. |
| 9668 | (save_stop_reason): Likewise. |
| 9669 | (linux_nat_filter_event): Likewise. |
| 9670 | * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise. |
| 9671 | |
| 9672 | 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com> |
| 9673 | |
| 9674 | * elfread.c (record_minimal_symbol): Set section index to 0 for |
| 9675 | non-allocatable sections. |
| 9676 | |
| 9677 | |
| 9678 | 2020-01-13 Ali Tamur <tamur@google.com> |
| 9679 | |
| 9680 | * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections. |
| 9681 | (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base |
| 9682 | to gdb::optional. Update comments. |
| 9683 | (dwo_file): Update comments. |
| 9684 | (read_attribute): Update API to take an additional out parameter, |
| 9685 | need_reprocess. This is used to mark attributes that need other |
| 9686 | attributes (e.g. str_offsets_base) for correct computation which may not |
| 9687 | have been read yet. |
| 9688 | (read_attribute_reprocess): New function declaration. |
| 9689 | (read_addr_index): Likewise. |
| 9690 | (read_dwo_str_index): Likewise. |
| 9691 | (read_stub_str_index): Likewise. |
| 9692 | (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section. |
| 9693 | (lookup_addr_base): New function definition. |
| 9694 | (lookup_ranges_base): Likewise. |
| 9695 | (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base, |
| 9696 | lookup_ranges_base. |
| 9697 | (init_cutu_and_read_dies): Update comments. |
| 9698 | (init_cutu_and_read_dies_no_follow): Change API to take parent compile |
| 9699 | unit. This is used to inherit parent's str_offsets_base and addr_base. |
| 9700 | Update comments. |
| 9701 | (init_cutu_and_read_dies_simple): Reflect API changes. |
| 9702 | (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx. |
| 9703 | (create_cus_hash_table): Change API to take parent compile unit. |
| 9704 | Reflect API changes. |
| 9705 | (open_and_init_dwo_file): Reflect API changes. |
| 9706 | (dwarf2_get_pc_bounds): Update comments. |
| 9707 | (dwarf2_record_block_ranges): Likewise. |
| 9708 | (read_full_die_1): Change implementation to reprocess attributes that |
| 9709 | need str_offsets_base and addr_base. |
| 9710 | (partial_die_info::read): Likewise. |
| 9711 | (read_attribute_reprocess): New function definition. |
| 9712 | (read_attribute_value): Change API to take an additional out parameter, |
| 9713 | need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error |
| 9714 | when a non-dwo compile unit has index based attributes. |
| 9715 | (read_attribute): Reflect API changes. |
| 9716 | (read_addr_index_1): Reflect API changes. Update comments. |
| 9717 | (dwarf2_read_addr_index_data): Reflect API changes. |
| 9718 | (dwarf2_read_addr_index): Likewise. |
| 9719 | (read_str_index): Change API and implementation. This becomes a helper |
| 9720 | to be used by the new string index related methods. Update error |
| 9721 | message and comments. |
| 9722 | (read_dwo_str_index): New function definition. |
| 9723 | (read_stub_str_index): Likewise. |
| 9724 | * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field. |
| 9725 | * symfile.h (dwarf2_debug_sections): Likewise. |
| 9726 | * xcoffread.c (dwarf2_debug_sections): Likewise. |
| 9727 | |
| 9728 | 2020-01-13 Simon Marchi <simon.marchi@efficios.com> |
| 9729 | |
| 9730 | * gdbcore.h (struct core_fns) <core_read_registers>: Change |
| 9731 | core_reg_sect type to gdb_byte *. |
| 9732 | * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise. |
| 9733 | * cris-tdep.c (fetch_core_registers): Likewise. |
| 9734 | * corelow.c (core_target::get_core_register_section): Change |
| 9735 | type of `contents` to gdb::byte_vector. |
| 9736 | |
| 9737 | 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com> |
| 9738 | |
| 9739 | * tui/tui-wingeneral.c (box_win): Position the title in the center |
| 9740 | of the border. |
| 9741 | |
| 9742 | 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca> |
| 9743 | |
| 9744 | * corelow.c (core_target::get_core_register_section): Use |
| 9745 | std::vector instead of alloca. |
| 9746 | |
| 9747 | 2020-01-13 Simon Marchi <simon.marchi@efficios.com> |
| 9748 | |
| 9749 | * warning.m4: Add -Wmissing-declarations to build_warnings. |
| 9750 | * configure: Re-generate. |
| 9751 | |
| 9752 | 2020-01-13 Simon Marchi <simon.marchi@efficios.com> |
| 9753 | |
| 9754 | * python/python.c (init__gdb_module): Add declaration. |
| 9755 | |
| 9756 | 2020-01-13 Simon Marchi <simon.marchi@efficios.com> |
| 9757 | |
| 9758 | * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration. |
| 9759 | * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration. |
| 9760 | * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration. |
| 9761 | * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration. |
| 9762 | * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration. |
| 9763 | * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration. |
| 9764 | * ada-exp.y (_initialize_ada_exp): Add declaration. |
| 9765 | * ada-lang.c (_initialize_ada_language): Add declaration. |
| 9766 | * ada-tasks.c (_initialize_tasks): Add declaration. |
| 9767 | * agent.c (_initialize_agent): Add declaration. |
| 9768 | * aix-thread.c (_initialize_aix_thread): Add declaration. |
| 9769 | * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration. |
| 9770 | * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration. |
| 9771 | * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration. |
| 9772 | * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration. |
| 9773 | * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration. |
| 9774 | * alpha-tdep.c (_initialize_alpha_tdep): Add declaration. |
| 9775 | * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration. |
| 9776 | * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration. |
| 9777 | * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration. |
| 9778 | * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration. |
| 9779 | * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration. |
| 9780 | * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration. |
| 9781 | * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration. |
| 9782 | * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration. |
| 9783 | * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration. |
| 9784 | * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration. |
| 9785 | * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration. |
| 9786 | * amd64-tdep.c (_initialize_amd64_tdep): Add declaration. |
| 9787 | * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration. |
| 9788 | * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration. |
| 9789 | * annotate.c (_initialize_annotate): Add declaration. |
| 9790 | * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration. |
| 9791 | * arc-tdep.c (_initialize_arc_tdep): Add declaration. |
| 9792 | * arch-utils.c (_initialize_gdbarch_utils): Add declaration. |
| 9793 | * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration. |
| 9794 | * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration. |
| 9795 | * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration. |
| 9796 | * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration. |
| 9797 | * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration. |
| 9798 | * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration. |
| 9799 | * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration. |
| 9800 | * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration. |
| 9801 | * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration. |
| 9802 | * arm-tdep.c (_initialize_arm_tdep): Add declaration. |
| 9803 | * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration. |
| 9804 | * auto-load.c (_initialize_auto_load): Add declaration. |
| 9805 | * auxv.c (_initialize_auxv): Add declaration. |
| 9806 | * avr-tdep.c (_initialize_avr_tdep): Add declaration. |
| 9807 | * ax-gdb.c (_initialize_ax_gdb): Add declaration. |
| 9808 | * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration. |
| 9809 | * bfin-tdep.c (_initialize_bfin_tdep): Add declaration. |
| 9810 | * break-catch-sig.c (_initialize_break_catch_sig): Add declaration. |
| 9811 | * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration. |
| 9812 | * break-catch-throw.c (_initialize_break_catch_throw): Add declaration. |
| 9813 | * breakpoint.c (_initialize_breakpoint): Add declaration. |
| 9814 | * bsd-uthread.c (_initialize_bsd_uthread): Add declaration. |
| 9815 | * btrace.c (_initialize_btrace): Add declaration. |
| 9816 | * charset.c (_initialize_charset): Add declaration. |
| 9817 | * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration. |
| 9818 | * cli/cli-dump.c (_initialize_cli_dump): Add declaration. |
| 9819 | * cli/cli-interp.c (_initialize_cli_interp): Add declaration. |
| 9820 | * cli/cli-logging.c (_initialize_cli_logging): Add declaration. |
| 9821 | * cli/cli-script.c (_initialize_cli_script): Add declaration. |
| 9822 | * cli/cli-style.c (_initialize_cli_style): Add declaration. |
| 9823 | * coff-pe-read.c (_initialize_coff_pe_read): Add declaration. |
| 9824 | * coffread.c (_initialize_coffread): Add declaration. |
| 9825 | * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration. |
| 9826 | * compile/compile.c (_initialize_compile): Add declaration. |
| 9827 | * complaints.c (_initialize_complaints): Add declaration. |
| 9828 | * completer.c (_initialize_completer): Add declaration. |
| 9829 | * copying.c (_initialize_copying): Add declaration. |
| 9830 | * corefile.c (_initialize_core): Add declaration. |
| 9831 | * corelow.c (_initialize_corelow): Add declaration. |
| 9832 | * cp-abi.c (_initialize_cp_abi): Add declaration. |
| 9833 | * cp-namespace.c (_initialize_cp_namespace): Add declaration. |
| 9834 | * cp-support.c (_initialize_cp_support): Add declaration. |
| 9835 | * cp-valprint.c (_initialize_cp_valprint): Add declaration. |
| 9836 | * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration. |
| 9837 | * cris-tdep.c (_initialize_cris_tdep): Add declaration. |
| 9838 | * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration. |
| 9839 | * csky-tdep.c (_initialize_csky_tdep): Add declaration. |
| 9840 | * ctfread.c (_initialize_ctfread): Add declaration. |
| 9841 | * d-lang.c (_initialize_d_language): Add declaration. |
| 9842 | * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration. |
| 9843 | * darwin-nat.c (_initialize_darwin_nat): Add declaration. |
| 9844 | * dbxread.c (_initialize_dbxread): Add declaration. |
| 9845 | * dcache.c (_initialize_dcache): Add declaration. |
| 9846 | * disasm-selftests.c (_initialize_disasm_selftests): Add declaration. |
| 9847 | * disasm.c (_initialize_disasm): Add declaration. |
| 9848 | * dtrace-probe.c (_initialize_dtrace_probe): Add declaration. |
| 9849 | * dummy-frame.c (_initialize_dummy_frame): Add declaration. |
| 9850 | * dwarf-index-cache.c (_initialize_index_cache): Add declaration. |
| 9851 | * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration. |
| 9852 | * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration. |
| 9853 | * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration. |
| 9854 | * dwarf2expr.c (_initialize_dwarf2expr): Add declaration. |
| 9855 | * dwarf2loc.c (_initialize_dwarf2loc): Add declaration. |
| 9856 | * dwarf2read.c (_initialize_dwarf2_read): Add declaration. |
| 9857 | * elfread.c (_initialize_elfread): Add declaration. |
| 9858 | * exec.c (_initialize_exec): Add declaration. |
| 9859 | * extension.c (_initialize_extension): Add declaration. |
| 9860 | * f-lang.c (_initialize_f_language): Add declaration. |
| 9861 | * f-valprint.c (_initialize_f_valprint): Add declaration. |
| 9862 | * fbsd-nat.c (_initialize_fbsd_nat): Add declaration. |
| 9863 | * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration. |
| 9864 | * filesystem.c (_initialize_filesystem): Add declaration. |
| 9865 | * findcmd.c (_initialize_mem_search): Add declaration. |
| 9866 | * findvar.c (_initialize_findvar): Add declaration. |
| 9867 | * fork-child.c (_initialize_fork_child): Add declaration. |
| 9868 | * frame-base.c (_initialize_frame_base): Add declaration. |
| 9869 | * frame-unwind.c (_initialize_frame_unwind): Add declaration. |
| 9870 | * frame.c (_initialize_frame): Add declaration. |
| 9871 | * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration. |
| 9872 | * frv-tdep.c (_initialize_frv_tdep): Add declaration. |
| 9873 | * ft32-tdep.c (_initialize_ft32_tdep): Add declaration. |
| 9874 | * gcore.c (_initialize_gcore): Add declaration. |
| 9875 | * gdb-demangle.c (_initialize_gdb_demangle): Add declaration. |
| 9876 | * gdb_bfd.c (_initialize_gdb_bfd): Add declaration. |
| 9877 | * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration. |
| 9878 | * gdbarch.c (_initialize_gdbarch): Add declaration. |
| 9879 | * gdbtypes.c (_initialize_gdbtypes): Add declaration. |
| 9880 | * gnu-nat.c (_initialize_gnu_nat): Add declaration. |
| 9881 | * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration. |
| 9882 | * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration. |
| 9883 | * go-lang.c (_initialize_go_language): Add declaration. |
| 9884 | * go32-nat.c (_initialize_go32_nat): Add declaration. |
| 9885 | * guile/guile.c (_initialize_guile): Add declaration. |
| 9886 | * h8300-tdep.c (_initialize_h8300_tdep): Add declaration. |
| 9887 | * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration. |
| 9888 | * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration. |
| 9889 | * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration. |
| 9890 | * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration. |
| 9891 | * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration. |
| 9892 | * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration. |
| 9893 | * hppa-tdep.c (_initialize_hppa_tdep): Add declaration. |
| 9894 | * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration. |
| 9895 | * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration. |
| 9896 | * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration. |
| 9897 | * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration. |
| 9898 | * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration. |
| 9899 | * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration. |
| 9900 | * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration. |
| 9901 | * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration. |
| 9902 | * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration. |
| 9903 | * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration. |
| 9904 | * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration. |
| 9905 | * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration. |
| 9906 | * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration. |
| 9907 | * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration. |
| 9908 | * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration. |
| 9909 | * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration. |
| 9910 | * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration. |
| 9911 | * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration. |
| 9912 | * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration. |
| 9913 | * i386-tdep.c (_initialize_i386_tdep): Add declaration. |
| 9914 | * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration. |
| 9915 | * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration. |
| 9916 | * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration. |
| 9917 | * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration. |
| 9918 | * ia64-tdep.c (_initialize_ia64_tdep): Add declaration. |
| 9919 | * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration. |
| 9920 | * infcall.c (_initialize_infcall): Add declaration. |
| 9921 | * infcmd.c (_initialize_infcmd): Add declaration. |
| 9922 | * inflow.c (_initialize_inflow): Add declaration. |
| 9923 | * infrun.c (_initialize_infrun): Add declaration. |
| 9924 | * interps.c (_initialize_interpreter): Add declaration. |
| 9925 | * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration. |
| 9926 | * jit.c (_initialize_jit): Add declaration. |
| 9927 | * language.c (_initialize_language): Add declaration. |
| 9928 | * linux-fork.c (_initialize_linux_fork): Add declaration. |
| 9929 | * linux-nat.c (_initialize_linux_nat): Add declaration. |
| 9930 | * linux-tdep.c (_initialize_linux_tdep): Add declaration. |
| 9931 | * linux-thread-db.c (_initialize_thread_db): Add declaration. |
| 9932 | * lm32-tdep.c (_initialize_lm32_tdep): Add declaration. |
| 9933 | * m2-lang.c (_initialize_m2_language): Add declaration. |
| 9934 | * m32c-tdep.c (_initialize_m32c_tdep): Add declaration. |
| 9935 | * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration. |
| 9936 | * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration. |
| 9937 | * m32r-tdep.c (_initialize_m32r_tdep): Add declaration. |
| 9938 | * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration. |
| 9939 | * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration. |
| 9940 | * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration. |
| 9941 | * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration. |
| 9942 | * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration. |
| 9943 | * m68k-tdep.c (_initialize_m68k_tdep): Add declaration. |
| 9944 | * machoread.c (_initialize_machoread): Add declaration. |
| 9945 | * macrocmd.c (_initialize_macrocmd): Add declaration. |
| 9946 | * macroscope.c (_initialize_macroscope): Add declaration. |
| 9947 | * maint-test-options.c (_initialize_maint_test_options): Add declaration. |
| 9948 | * maint-test-settings.c (_initialize_maint_test_settings): Add declaration. |
| 9949 | * maint.c (_initialize_maint_cmds): Add declaration. |
| 9950 | * mdebugread.c (_initialize_mdebugread): Add declaration. |
| 9951 | * memattr.c (_initialize_mem): Add declaration. |
| 9952 | * mep-tdep.c (_initialize_mep_tdep): Add declaration. |
| 9953 | * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration. |
| 9954 | * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration. |
| 9955 | * mi/mi-interp.c (_initialize_mi_interp): Add declaration. |
| 9956 | * mi/mi-main.c (_initialize_mi_main): Add declaration. |
| 9957 | * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration. |
| 9958 | * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration. |
| 9959 | * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration. |
| 9960 | * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration. |
| 9961 | * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration. |
| 9962 | * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration. |
| 9963 | * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration. |
| 9964 | * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration. |
| 9965 | * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration. |
| 9966 | * mips-tdep.c (_initialize_mips_tdep): Add declaration. |
| 9967 | * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration. |
| 9968 | * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration. |
| 9969 | * mipsread.c (_initialize_mipsread): Add declaration. |
| 9970 | * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration. |
| 9971 | * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration. |
| 9972 | * moxie-tdep.c (_initialize_moxie_tdep): Add declaration. |
| 9973 | * msp430-tdep.c (_initialize_msp430_tdep): Add declaration. |
| 9974 | * nds32-tdep.c (_initialize_nds32_tdep): Add declaration. |
| 9975 | * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration. |
| 9976 | * nios2-tdep.c (_initialize_nios2_tdep): Add declaration. |
| 9977 | * nto-procfs.c (_initialize_procfs): Add declaration. |
| 9978 | * objc-lang.c (_initialize_objc_language): Add declaration. |
| 9979 | * observable.c (_initialize_observer): Add declaration. |
| 9980 | * opencl-lang.c (_initialize_opencl_language): Add declaration. |
| 9981 | * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration. |
| 9982 | * or1k-tdep.c (_initialize_or1k_tdep): Add declaration. |
| 9983 | * osabi.c (_initialize_gdb_osabi): Add declaration. |
| 9984 | * osdata.c (_initialize_osdata): Add declaration. |
| 9985 | * p-valprint.c (_initialize_pascal_valprint): Add declaration. |
| 9986 | * parse.c (_initialize_parse): Add declaration. |
| 9987 | * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration. |
| 9988 | * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration. |
| 9989 | * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration. |
| 9990 | * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration. |
| 9991 | * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration. |
| 9992 | * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration. |
| 9993 | * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration. |
| 9994 | * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration. |
| 9995 | * printcmd.c (_initialize_printcmd): Add declaration. |
| 9996 | * probe.c (_initialize_probe): Add declaration. |
| 9997 | * proc-api.c (_initialize_proc_api): Add declaration. |
| 9998 | * proc-events.c (_initialize_proc_events): Add declaration. |
| 9999 | * proc-service.c (_initialize_proc_service): Add declaration. |
| 10000 | * procfs.c (_initialize_procfs): Add declaration. |
| 10001 | * producer.c (_initialize_producer): Add declaration. |
| 10002 | * psymtab.c (_initialize_psymtab): Add declaration. |
| 10003 | * python/python.c (_initialize_python): Add declaration. |
| 10004 | * ravenscar-thread.c (_initialize_ravenscar): Add declaration. |
| 10005 | * record-btrace.c (_initialize_record_btrace): Add declaration. |
| 10006 | * record-full.c (_initialize_record_full): Add declaration. |
| 10007 | * record.c (_initialize_record): Add declaration. |
| 10008 | * regcache-dump.c (_initialize_regcache_dump): Add declaration. |
| 10009 | * regcache.c (_initialize_regcache): Add declaration. |
| 10010 | * reggroups.c (_initialize_reggroup): Add declaration. |
| 10011 | * remote-notif.c (_initialize_notif): Add declaration. |
| 10012 | * remote-sim.c (_initialize_remote_sim): Add declaration. |
| 10013 | * remote.c (_initialize_remote): Add declaration. |
| 10014 | * reverse.c (_initialize_reverse): Add declaration. |
| 10015 | * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration. |
| 10016 | * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration. |
| 10017 | * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration. |
| 10018 | * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration. |
| 10019 | * riscv-tdep.c (_initialize_riscv_tdep): Add declaration. |
| 10020 | * rl78-tdep.c (_initialize_rl78_tdep): Add declaration. |
| 10021 | * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration. |
| 10022 | * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep): |
| 10023 | Add declaration. |
| 10024 | * rs6000-nat.c (_initialize_rs6000_nat): Add declaration. |
| 10025 | * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration. |
| 10026 | * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration. |
| 10027 | * rust-exp.y (_initialize_rust_exp): Add declaration. |
| 10028 | * rx-tdep.c (_initialize_rx_tdep): Add declaration. |
| 10029 | * s12z-tdep.c (_initialize_s12z_tdep): Add declaration. |
| 10030 | * s390-linux-nat.c (_initialize_s390_nat): Add declaration. |
| 10031 | * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration. |
| 10032 | * s390-tdep.c (_initialize_s390_tdep): Add declaration. |
| 10033 | * score-tdep.c (_initialize_score_tdep): Add declaration. |
| 10034 | * ser-go32.c (_initialize_ser_dos): Add declaration. |
| 10035 | * ser-mingw.c (_initialize_ser_windows): Add declaration. |
| 10036 | * ser-pipe.c (_initialize_ser_pipe): Add declaration. |
| 10037 | * ser-tcp.c (_initialize_ser_tcp): Add declaration. |
| 10038 | * ser-uds.c (_initialize_ser_socket): Add declaration. |
| 10039 | * ser-unix.c (_initialize_ser_hardwire): Add declaration. |
| 10040 | * serial.c (_initialize_serial): Add declaration. |
| 10041 | * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration. |
| 10042 | * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration. |
| 10043 | * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration. |
| 10044 | * sh-tdep.c (_initialize_sh_tdep): Add declaration. |
| 10045 | * skip.c (_initialize_step_skip): Add declaration. |
| 10046 | * sol-thread.c (_initialize_sol_thread): Add declaration. |
| 10047 | * solib-aix.c (_initialize_solib_aix): Add declaration. |
| 10048 | * solib-darwin.c (_initialize_darwin_solib): Add declaration. |
| 10049 | * solib-dsbt.c (_initialize_dsbt_solib): Add declaration. |
| 10050 | * solib-frv.c (_initialize_frv_solib): Add declaration. |
| 10051 | * solib-svr4.c (_initialize_svr4_solib): Add declaration. |
| 10052 | * solib-target.c (_initialize_solib_target): Add declaration. |
| 10053 | * solib.c (_initialize_solib): Add declaration. |
| 10054 | * source-cache.c (_initialize_source_cache): Add declaration. |
| 10055 | * source.c (_initialize_source): Add declaration. |
| 10056 | * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration. |
| 10057 | * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration. |
| 10058 | * sparc-nat.c (_initialize_sparc_nat): Add declaration. |
| 10059 | * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration. |
| 10060 | * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration. |
| 10061 | * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration. |
| 10062 | * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration. |
| 10063 | * sparc-tdep.c (_initialize_sparc_tdep): Add declaration. |
| 10064 | * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration. |
| 10065 | * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration. |
| 10066 | * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration. |
| 10067 | * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration. |
| 10068 | * sparc64-nat.c (_initialize_sparc64_nat): Add declaration. |
| 10069 | * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration. |
| 10070 | * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration. |
| 10071 | * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration. |
| 10072 | * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration. |
| 10073 | * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration. |
| 10074 | * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration. |
| 10075 | * stabsread.c (_initialize_stabsread): Add declaration. |
| 10076 | * stack.c (_initialize_stack): Add declaration. |
| 10077 | * stap-probe.c (_initialize_stap_probe): Add declaration. |
| 10078 | * std-regs.c (_initialize_frame_reg): Add declaration. |
| 10079 | * symfile-debug.c (_initialize_symfile_debug): Add declaration. |
| 10080 | * symfile-mem.c (_initialize_symfile_mem): Add declaration. |
| 10081 | * symfile.c (_initialize_symfile): Add declaration. |
| 10082 | * symmisc.c (_initialize_symmisc): Add declaration. |
| 10083 | * symtab.c (_initialize_symtab): Add declaration. |
| 10084 | * target.c (_initialize_target): Add declaration. |
| 10085 | * target-connection.c (_initialize_target_connection): Add |
| 10086 | declaration. |
| 10087 | * target-dcache.c (_initialize_target_dcache): Add declaration. |
| 10088 | * target-descriptions.c (_initialize_target_descriptions): Add declaration. |
| 10089 | * thread.c (_initialize_thread): Add declaration. |
| 10090 | * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration. |
| 10091 | * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration. |
| 10092 | * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration. |
| 10093 | * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration. |
| 10094 | * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration. |
| 10095 | * tracectf.c (_initialize_ctf): Add declaration. |
| 10096 | * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration. |
| 10097 | * tracefile.c (_initialize_tracefile): Add declaration. |
| 10098 | * tracepoint.c (_initialize_tracepoint): Add declaration. |
| 10099 | * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration. |
| 10100 | * tui/tui-interp.c (_initialize_tui_interp): Add declaration. |
| 10101 | * tui/tui-layout.c (_initialize_tui_layout): Add declaration. |
| 10102 | * tui/tui-regs.c (_initialize_tui_regs): Add declaration. |
| 10103 | * tui/tui-stack.c (_initialize_tui_stack): Add declaration. |
| 10104 | * tui/tui-win.c (_initialize_tui_win): Add declaration. |
| 10105 | * tui/tui.c (_initialize_tui): Add declaration. |
| 10106 | * typeprint.c (_initialize_typeprint): Add declaration. |
| 10107 | * ui-style.c (_initialize_ui_style): Add declaration. |
| 10108 | * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration. |
| 10109 | * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration. |
| 10110 | * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration. |
| 10111 | * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration. |
| 10112 | * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration. |
| 10113 | * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration. |
| 10114 | * unittests/filtered_iterator-selftests.c |
| 10115 | (_initialize_filtered_iterator_selftests): Add declaration. |
| 10116 | * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration. |
| 10117 | * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration. |
| 10118 | * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration. |
| 10119 | * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration. |
| 10120 | * unittests/main-thread-selftests.c |
| 10121 | (_initialize_main_thread_selftests): Add declaration. |
| 10122 | * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration. |
| 10123 | * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration. |
| 10124 | * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration. |
| 10125 | * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration. |
| 10126 | * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration. |
| 10127 | * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration. |
| 10128 | * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration. |
| 10129 | * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration. |
| 10130 | * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration. |
| 10131 | * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration. |
| 10132 | * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration. |
| 10133 | * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration. |
| 10134 | * unittests/style-selftests.c (_initialize_style_selftest): Add declaration. |
| 10135 | * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration. |
| 10136 | * unittests/tui-selftests.c (_initialize_tui_selftest): Add |
| 10137 | declaration. |
| 10138 | * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration. |
| 10139 | * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration. |
| 10140 | * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration. |
| 10141 | * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration. |
| 10142 | * user-regs.c (_initialize_user_regs): Add declaration. |
| 10143 | * utils.c (_initialize_utils): Add declaration. |
| 10144 | * v850-tdep.c (_initialize_v850_tdep): Add declaration. |
| 10145 | * valops.c (_initialize_valops): Add declaration. |
| 10146 | * valprint.c (_initialize_valprint): Add declaration. |
| 10147 | * value.c (_initialize_values): Add declaration. |
| 10148 | * varobj.c (_initialize_varobj): Add declaration. |
| 10149 | * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration. |
| 10150 | * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration. |
| 10151 | * vax-tdep.c (_initialize_vax_tdep): Add declaration. |
| 10152 | * windows-nat.c (_initialize_windows_nat): Add declaration. |
| 10153 | (_initialize_check_for_gdb_ini): Add declaration. |
| 10154 | (_initialize_loadable): Add declaration. |
| 10155 | * windows-tdep.c (_initialize_windows_tdep): Add declaration. |
| 10156 | * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration. |
| 10157 | * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration. |
| 10158 | * xcoffread.c (_initialize_xcoffread): Add declaration. |
| 10159 | * xml-support.c (_initialize_xml_support): Add declaration. |
| 10160 | * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration. |
| 10161 | * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration. |
| 10162 | * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration. |
| 10163 | * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration. |
| 10164 | |
| 10165 | 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca> |
| 10166 | |
| 10167 | * regformats/regdat.sh: Generate declaration for init function. |
| 10168 | |
| 10169 | 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca> |
| 10170 | |
| 10171 | * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move |
| 10172 | up. |
| 10173 | (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior, |
| 10174 | close_one_inferior>: New methods. |
| 10175 | (get_sim_inferior_data_by_ptid): Move to gdbsim_target, |
| 10176 | pass down target to find_inferior_pid. |
| 10177 | (gdbsim_target::fetch_registers, gdbsim_target::store_registers): |
| 10178 | Pass down target to find_inferior_ptid. |
| 10179 | (gdbsim_target::create_inferior): Pass down target to |
| 10180 | add_thread_silent. |
| 10181 | (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass |
| 10182 | target down to find_inferior_ptid and switch_to_thread. |
| 10183 | (gdbsim_target::close): Update to call close_one_inferior. |
| 10184 | (struct resume_data): Remove. |
| 10185 | (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments |
| 10186 | directly, rather than through a void pointer. |
| 10187 | (gdbsim_target::resume): Update to call resume_one_inferior. |
| 10188 | |
| 10189 | 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca> |
| 10190 | |
| 10191 | * gdbsupport/gdb_wait.c: Include gdb_wait.h. |
| 10192 | |
| 10193 | 2020-01-12 Pedro Alves <palves@redhat.com> |
| 10194 | |
| 10195 | * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent |
| 10196 | directly for the current inferior instead of |
| 10197 | discard_all_inferiors. |
| 10198 | (discard_all_inferiors): Delete. |
| 10199 | |
| 10200 | 2020-01-11 Tom Tromey <tom@tromey.com> |
| 10201 | |
| 10202 | * tui/tui-wingeneral.c (box_win): Check cli_styling. |
| 10203 | * tui/tui-winsource.c (tui_source_window_base::refill): Use |
| 10204 | deprecated_safe_get_selected_frame. |
| 10205 | |
| 10206 | 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
| 10207 | |
| 10208 | * inferior.c (print_inferior): Switch inferior before printing it. |
| 10209 | |
| 10210 | 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com> |
| 10211 | Pedro Alves <palves@redhat.com> |
| 10212 | |
| 10213 | * progspace-and-thread.c (switch_to_program_space_and_thread): |
| 10214 | Assert there's an inferior for PSPACE. Use |
| 10215 | switch_to_inferior_no_thread to switch the inferior too. |
| 10216 | * progspace.c (program_space::~program_space): Call |
| 10217 | clear_symtab_users here, with SYMFILE_DEFER_BP_RESET. |
| 10218 | (program_space::free_all_objfiles): Don't call clear_symtab_users |
| 10219 | here. |
| 10220 | * symfile.c (symbol_file_clear): Call clear_symtab_users here. |
| 10221 | |
| 10222 | 2020-01-10 Pedro Alves <palves@redhat.com> |
| 10223 | |
| 10224 | * NEWS: Mention multi-target debugging, "info connections", and |
| 10225 | "add-inferior -no-connection". |
| 10226 | |
| 10227 | 2020-01-10 Pedro Alves <palves@redhat.com> |
| 10228 | |
| 10229 | * infrun.c: Include "target-connection.h". |
| 10230 | (check_multi_target_resumption): New. |
| 10231 | (proceed): Call it. |
| 10232 | * target-connection.c (make_target_connection_string): Make |
| 10233 | extern. |
| 10234 | * target-connection.h (make_target_connection_string): Declare. |
| 10235 | |
| 10236 | 2020-01-10 Pedro Alves <palves@redhat.com> |
| 10237 | |
| 10238 | * Makefile.in (COMMON_SFILES): Add target-connection.c. |
| 10239 | * inferior.c (uiout_field_connection): New function. |
| 10240 | (print_inferior): Add new "connection-id" column. |
| 10241 | (add_inferior_command): Show connection number/string of added |
| 10242 | inferior. |
| 10243 | * process-stratum-target.h |
| 10244 | (process_stratum_target::connection_string): New virtual method. |
| 10245 | (process_stratum_target::connection_number): New field. |
| 10246 | * remote.c (remote_target::connection_string): New override. |
| 10247 | * target-connection.c: New file. |
| 10248 | * target-connection.h: New file. |
| 10249 | * target.c (decref_target): Remove process_stratum targets from |
| 10250 | the connection list. |
| 10251 | (target_stack::push): Add process_stratum targets to the |
| 10252 | connection list. |
| 10253 | |
| 10254 | 2020-01-10 Pedro Alves <palves@redhat.com> |
| 10255 | |
| 10256 | Revert: |
| 10257 | 2016-04-12 Pedro Alves <palves@redhat.com> |
| 10258 | * serial.c (serial_open, serial_fdopen_ops, do_serial_close): |
| 10259 | Remove references to name. |
| 10260 | * serial.h (struct serial) <name>: Delete. |
| 10261 | |
| 10262 | 2020-01-10 Pedro Alves <palves@redhat.com> |
| 10263 | |
| 10264 | * gdbarch-selftests.c (register_to_value_test): Remove "target |
| 10265 | already pushed" check. |
| 10266 | |
| 10267 | 2020-01-10 Pedro Alves <palves@redhat.com> |
| 10268 | John Baldwin <jhb@FreeBSD.org> |
| 10269 | |
| 10270 | * aarch64-linux-nat.c |
| 10271 | (aarch64_linux_nat_target::thread_architecture): Adjust. |
| 10272 | * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call. |
| 10273 | (task_command_1): Likewise. |
| 10274 | * aix-thread.c (sync_threadlists, aix_thread_target::resume) |
| 10275 | (aix_thread_target::wait, aix_thread_target::fetch_registers) |
| 10276 | (aix_thread_target::store_registers) |
| 10277 | (aix_thread_target::thread_alive): Adjust. |
| 10278 | * amd64-fbsd-tdep.c: Include "inferior.h". |
| 10279 | (amd64fbsd_get_thread_local_address): Pass down target. |
| 10280 | * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle |
| 10281 | thread's gdbarch instead of target_gdbarch. |
| 10282 | * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to |
| 10283 | get_last_target_status. |
| 10284 | * break-catch-syscall.c (print_it_catch_syscall): Likewise. |
| 10285 | * breakpoint.c (breakpoints_should_be_inserted_now): Consider all |
| 10286 | inferiors. |
| 10287 | (update_inserted_breakpoint_locations): Skip if inferiors with no |
| 10288 | execution. |
| 10289 | (update_global_location_list): When handling moribund locations, |
| 10290 | find representative inferior for location's pspace, and use thread |
| 10291 | count of its process_stratum target. |
| 10292 | * bsd-kvm.c (bsd_kvm_target_open): Pass target down. |
| 10293 | * bsd-uthread.c (bsd_uthread_target::wait): Use |
| 10294 | as_process_stratum_target and adjust thread_change_ptid and |
| 10295 | add_thread calls. |
| 10296 | (bsd_uthread_target::update_thread_list): Use |
| 10297 | as_process_stratum_target and adjust find_thread_ptid, |
| 10298 | thread_change_ptid and add_thread calls. |
| 10299 | * btrace.c (maint_btrace_packet_history_cmd): Adjust |
| 10300 | find_thread_ptid call. |
| 10301 | * corelow.c (add_to_thread_list): Adjust add_thread call. |
| 10302 | (core_target_open): Adjust add_thread_silent and thread_count |
| 10303 | calls. |
| 10304 | (core_target::pid_to_str): Adjust find_inferior_ptid call. |
| 10305 | * ctf.c (ctf_target_open): Adjust add_thread_silent call. |
| 10306 | * event-top.c (async_disconnect): Pop targets from all inferiors. |
| 10307 | * exec.c (add_target_sections): Push exec target on all inferiors |
| 10308 | sharing the program space. |
| 10309 | (remove_target_sections): Remove the exec target from all |
| 10310 | inferiors sharing the program space. |
| 10311 | (exec_on_vfork): New. |
| 10312 | * exec.h (exec_on_vfork): Declare. |
| 10313 | * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter. |
| 10314 | Pass it down. |
| 10315 | (fbsd_nat_target::update_thread_list): Adjust. |
| 10316 | (fbsd_nat_target::resume): Adjust. |
| 10317 | (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it |
| 10318 | down. |
| 10319 | (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust. |
| 10320 | * fbsd-tdep.c (fbsd_corefile_thread): Adjust |
| 10321 | get_thread_arch_regcache call. |
| 10322 | * fork-child.c (gdb_startup_inferior): Pass target down to |
| 10323 | startup_inferior and set_executing. |
| 10324 | * gdbthread.h (struct process_stratum_target): Forward declare. |
| 10325 | (add_thread, add_thread_silent, add_thread_with_info) |
| 10326 | (in_thread_list): Add process_stratum_target parameter. |
| 10327 | (find_thread_ptid(inferior*, ptid_t)): New overload. |
| 10328 | (find_thread_ptid, thread_change_ptid): Add process_stratum_target |
| 10329 | parameter. |
| 10330 | (all_threads()): Delete overload. |
| 10331 | (all_threads, all_non_exited_threads): Add process_stratum_target |
| 10332 | parameter. |
| 10333 | (all_threads_safe): Use brace initialization. |
| 10334 | (thread_count): Add process_stratum_target parameter. |
| 10335 | (set_resumed, set_running, set_stop_requested, set_executing) |
| 10336 | (threads_are_executing, finish_thread_state): Add |
| 10337 | process_stratum_target parameter. |
| 10338 | (switch_to_thread): Use is_current_thread. |
| 10339 | * i386-fbsd-tdep.c: Include "inferior.h". |
| 10340 | (i386fbsd_get_thread_local_address): Pass down target. |
| 10341 | * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust. |
| 10342 | * inf-child.c (inf_child_target::maybe_unpush_target): Remove |
| 10343 | have_inferiors check. |
| 10344 | * inf-ptrace.c (inf_ptrace_target::create_inferior) |
| 10345 | (inf_ptrace_target::attach): Adjust. |
| 10346 | * infcall.c (run_inferior_call): Adjust. |
| 10347 | * infcmd.c (run_command_1): Pass target to |
| 10348 | scoped_finish_thread_state. |
| 10349 | (proceed_thread_callback): Skip inferiors with no execution. |
| 10350 | (continue_command): Rename 'all_threads' local to avoid hiding |
| 10351 | 'all_threads' function. Adjust get_last_target_status call. |
| 10352 | (prepare_one_step): Adjust set_running call. |
| 10353 | (signal_command): Use user_visible_resume_target. Compare thread |
| 10354 | pointers instead of inferior_ptid. |
| 10355 | (info_program_command): Adjust to pass down target. |
| 10356 | (attach_command): Mark target's 'thread_executing' flag. |
| 10357 | (stop_current_target_threads_ns): New, factored out from ... |
| 10358 | (interrupt_target_1): ... this. Switch inferior before making |
| 10359 | target calls. |
| 10360 | * inferior-iter.h |
| 10361 | (struct all_inferiors_iterator, struct all_inferiors_range) |
| 10362 | (struct all_inferiors_safe_range) |
| 10363 | (struct all_non_exited_inferiors_range): Filter on |
| 10364 | process_stratum_target too. Remove explicit. |
| 10365 | * inferior.c (inferior::inferior): Push dummy target on target |
| 10366 | stack. |
| 10367 | (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors): |
| 10368 | Add process_stratum_target parameter, and pass it down. |
| 10369 | (have_live_inferiors): Adjust. |
| 10370 | (switch_to_inferior_and_push_target): New. |
| 10371 | (add_inferior_command, clone_inferior_command): Handle |
| 10372 | "-no-connection" parameter. Use |
| 10373 | switch_to_inferior_and_push_target. |
| 10374 | (_initialize_inferior): Mention "-no-connection" option in |
| 10375 | the help of "add-inferior" and "clone-inferior" commands. |
| 10376 | * inferior.h: Include "process-stratum-target.h". |
| 10377 | (interrupt_target_1): Use bool. |
| 10378 | (struct inferior) <push_target, unpush_target, target_is_pushed, |
| 10379 | find_target_beneath, top_target, process_target, target_at, |
| 10380 | m_stack>: New. |
| 10381 | (discard_all_inferiors): Delete. |
| 10382 | (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors) |
| 10383 | (all_inferiors, all_non_exited_inferiors): Add |
| 10384 | process_stratum_target parameter. |
| 10385 | * infrun.c: Include "gdb_select.h" and <unordered_map>. |
| 10386 | (target_last_proc_target): New global. |
| 10387 | (follow_fork_inferior): Push target on new inferior. Pass target |
| 10388 | to add_thread_silent. Call exec_on_vfork. Handle target's |
| 10389 | reference count. |
| 10390 | (follow_fork): Adjust get_last_target_status call. Also consider |
| 10391 | target. |
| 10392 | (follow_exec): Push target on new inferior. |
| 10393 | (struct execution_control_state) <target>: New field. |
| 10394 | (user_visible_resume_target): New. |
| 10395 | (do_target_resume): Call target_async. |
| 10396 | (resume_1): Set target's threads_executing flag. Consider resume |
| 10397 | target. |
| 10398 | (commit_resume_all_targets): New. |
| 10399 | (proceed): Also consider resume target. Skip threads of inferiors |
| 10400 | with no execution. Commit resumtion in all targets. |
| 10401 | (start_remote): Pass current inferior to wait_for_inferior. |
| 10402 | (infrun_thread_stop_requested): Consider target as well. Pass |
| 10403 | thread_info pointer to clear_inline_frame_state instead of ptid. |
| 10404 | (infrun_thread_thread_exit): Consider target as well. |
| 10405 | (random_pending_event_thread): New inferior parameter. Use it. |
| 10406 | (do_target_wait): Rename to ... |
| 10407 | (do_target_wait_1): ... this. Add inferior parameter, and pass it |
| 10408 | down. |
| 10409 | (threads_are_resumed_pending_p, do_target_wait): New. |
| 10410 | (prepare_for_detach): Adjust calls. |
| 10411 | (wait_for_inferior): New inferior parameter. Handle it. Use |
| 10412 | do_target_wait_1 instead of do_target_wait. |
| 10413 | (fetch_inferior_event): Adjust. Switch to representative |
| 10414 | inferior. Pass target down. |
| 10415 | (set_last_target_status): Add process_stratum_target parameter. |
| 10416 | Save target in global. |
| 10417 | (get_last_target_status): Add process_stratum_target parameter and |
| 10418 | handle it. |
| 10419 | (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'. |
| 10420 | (context_switch): Check inferior_ptid == null_ptid before calling |
| 10421 | inferior_thread(). |
| 10422 | (get_inferior_stop_soon): Pass down target. |
| 10423 | (wait_one): Rename to ... |
| 10424 | (poll_one_curr_target): ... this. |
| 10425 | (struct wait_one_event): New. |
| 10426 | (wait_one): New. |
| 10427 | (stop_all_threads): Adjust. |
| 10428 | (handle_no_resumed, handle_inferior_event): Adjust to consider the |
| 10429 | event's target. |
| 10430 | (switch_back_to_stepped_thread): Also consider target. |
| 10431 | (print_stop_event): Update. |
| 10432 | (normal_stop): Update. Also consider the resume target. |
| 10433 | * infrun.h (wait_for_inferior): Remove declaration. |
| 10434 | (user_visible_resume_target): New declaration. |
| 10435 | (get_last_target_status, set_last_target_status): New |
| 10436 | process_stratum_target parameter. |
| 10437 | * inline-frame.c (clear_inline_frame_state(ptid_t)): Add |
| 10438 | process_stratum_target parameter, and use it. |
| 10439 | (clear_inline_frame_state (thread_info*)): New. |
| 10440 | * inline-frame.c (clear_inline_frame_state(ptid_t)): Add |
| 10441 | process_stratum_target parameter. |
| 10442 | (clear_inline_frame_state (thread_info*)): Declare. |
| 10443 | * linux-fork.c (delete_checkpoint_command): Pass target down to |
| 10444 | find_thread_ptid. |
| 10445 | (checkpoint_command): Adjust. |
| 10446 | * linux-nat.c (linux_nat_target::follow_fork): Switch to thread |
| 10447 | instead of just tweaking inferior_ptid. |
| 10448 | (linux_nat_switch_fork): Pass target down to thread_change_ptid. |
| 10449 | (exit_lwp): Pass target down to find_thread_ptid. |
| 10450 | (attach_proc_task_lwp_callback): Pass target down to |
| 10451 | add_thread/set_running/set_executing. |
| 10452 | (linux_nat_target::attach): Pass target down to |
| 10453 | thread_change_ptid. |
| 10454 | (get_detach_signal): Pass target down to find_thread_ptid. |
| 10455 | Consider last target status's target. |
| 10456 | (linux_resume_one_lwp_throw, resume_lwp) |
| 10457 | (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp) |
| 10458 | (stop_wait_callback, save_stop_reason, linux_nat_filter_event) |
| 10459 | (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down. |
| 10460 | (linux_nat_target::async_wait_fd): New. |
| 10461 | (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass |
| 10462 | target down. |
| 10463 | * linux-nat.h (linux_nat_target::async_wait_fd): Declare. |
| 10464 | * linux-tdep.c (get_thread_arch_regcache): Pass target down. |
| 10465 | * linux-thread-db.c (struct thread_db_info::process_target): New |
| 10466 | field. |
| 10467 | (add_thread_db_info): Save target. |
| 10468 | (get_thread_db_info): New process_stratum_target parameter. Also |
| 10469 | match target. |
| 10470 | (delete_thread_db_info): New process_stratum_target parameter. |
| 10471 | Also match target. |
| 10472 | (thread_from_lwp): Adjust to pass down target. |
| 10473 | (thread_db_notice_clone): Pass down target. |
| 10474 | (check_thread_db_callback): Pass down target. |
| 10475 | (try_thread_db_load_1): Always push the thread_db target. |
| 10476 | (try_thread_db_load, record_thread): Pass target down. |
| 10477 | (thread_db_target::detach): Pass target down. Always unpush the |
| 10478 | thread_db target. |
| 10479 | (thread_db_target::wait, thread_db_target::mourn_inferior): Pass |
| 10480 | target down. Always unpush the thread_db target. |
| 10481 | (find_new_threads_callback, thread_db_find_new_threads_2) |
| 10482 | (thread_db_target::update_thread_list): Pass target down. |
| 10483 | (thread_db_target::pid_to_str): Pass current inferior down. |
| 10484 | (thread_db_target::get_thread_local_address): Pass target down. |
| 10485 | (thread_db_target::resume, maintenance_check_libthread_db): Pass |
| 10486 | target down. |
| 10487 | * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust. |
| 10488 | * procfs.c (procfs_target::procfs_init_inferior): Declare. |
| 10489 | (proc_set_current_signal, do_attach, procfs_target::wait): Adjust. |
| 10490 | (procfs_init_inferior): Rename to ... |
| 10491 | (procfs_target::procfs_init_inferior): ... this and adjust. |
| 10492 | (procfs_target::create_inferior, procfs_notice_thread) |
| 10493 | (procfs_do_thread_registers): Adjust. |
| 10494 | * ppc-fbsd-tdep.c: Include "inferior.h". |
| 10495 | (ppcfbsd_get_thread_local_address): Pass down target. |
| 10496 | * proc-service.c (ps_xfer_memory): Switch current inferior and |
| 10497 | program space as well. |
| 10498 | (get_ps_regcache): Pass target down. |
| 10499 | * process-stratum-target.c |
| 10500 | (process_stratum_target::thread_address_space) |
| 10501 | (process_stratum_target::thread_architecture): Pass target down. |
| 10502 | * process-stratum-target.h |
| 10503 | (process_stratum_target::threads_executing): New field. |
| 10504 | (as_process_stratum_target): New. |
| 10505 | * ravenscar-thread.c |
| 10506 | (ravenscar_thread_target::update_inferior_ptid): Pass target down. |
| 10507 | (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target |
| 10508 | down. |
| 10509 | * record-btrace.c (record_btrace_target::info_record): Adjust. |
| 10510 | (record_btrace_target::record_method) |
| 10511 | (record_btrace_target::record_is_replaying) |
| 10512 | (record_btrace_target::fetch_registers) |
| 10513 | (get_thread_current_frame_id, record_btrace_target::resume) |
| 10514 | (record_btrace_target::wait, record_btrace_target::stop): Pass |
| 10515 | target down. |
| 10516 | * record-full.c (record_full_wait_1): Switch to event thread. |
| 10517 | Pass target down. |
| 10518 | * regcache.c (regcache::regcache) |
| 10519 | (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add |
| 10520 | process_stratum_target parameter and handle it. |
| 10521 | (current_thread_target): New global. |
| 10522 | (get_thread_regcache): Add process_stratum_target parameter and |
| 10523 | handle it. Switch inferior before calling target method. |
| 10524 | (get_thread_regcache): Pass target down. |
| 10525 | (get_thread_regcache_for_ptid): Pass target down. |
| 10526 | (registers_changed_ptid): Add process_stratum_target parameter and |
| 10527 | handle it. |
| 10528 | (registers_changed_thread, registers_changed): Pass target down. |
| 10529 | (test_get_thread_arch_aspace_regcache): New. |
| 10530 | (current_regcache_test): Define a couple local test_target_ops |
| 10531 | instances and use them for testing. |
| 10532 | (readwrite_regcache): Pass process_stratum_target parameter. |
| 10533 | (cooked_read_test, cooked_write_test): Pass mock_target down. |
| 10534 | * regcache.h (get_thread_regcache, get_thread_arch_regcache) |
| 10535 | (get_thread_arch_aspace_regcache): Add process_stratum_target |
| 10536 | parameter. |
| 10537 | (regcache::target): New method. |
| 10538 | (regcache::regcache, regcache::get_thread_arch_aspace_regcache) |
| 10539 | (regcache::registers_changed_ptid): Add process_stratum_target |
| 10540 | parameter. |
| 10541 | (regcache::m_target): New field. |
| 10542 | (registers_changed_ptid): Add process_stratum_target parameter. |
| 10543 | * remote.c (remote_state::supports_vCont_probed): New field. |
| 10544 | (remote_target::async_wait_fd): New method. |
| 10545 | (remote_unpush_and_throw): Add remote_target parameter. |
| 10546 | (get_current_remote_target): Adjust. |
| 10547 | (remote_target::remote_add_inferior): Push target. |
| 10548 | (remote_target::remote_add_thread) |
| 10549 | (remote_target::remote_notice_new_inferior) |
| 10550 | (get_remote_thread_info): Pass target down. |
| 10551 | (remote_target::update_thread_list): Skip threads of inferiors |
| 10552 | bound to other targets. (remote_target::close): Don't discard |
| 10553 | inferiors. (remote_target::add_current_inferior_and_thread) |
| 10554 | (remote_target::process_initial_stop_replies) |
| 10555 | (remote_target::start_remote) |
| 10556 | (remote_target::remote_serial_quit_handler): Pass down target. |
| 10557 | (remote_target::remote_unpush_target): New remote_target |
| 10558 | parameter. Unpush the target from all inferiors. |
| 10559 | (remote_target::remote_unpush_and_throw): New remote_target |
| 10560 | parameter. Pass it down. |
| 10561 | (remote_target::open_1): Check whether the current inferior has |
| 10562 | execution instead of checking whether any inferior is live. Pass |
| 10563 | target down. |
| 10564 | (remote_target::remote_detach_1): Pass down target. Use |
| 10565 | remote_unpush_target. |
| 10566 | (extended_remote_target::attach): Pass down target. |
| 10567 | (remote_target::remote_vcont_probe): Set supports_vCont_probed. |
| 10568 | (remote_target::append_resumption): Pass down target. |
| 10569 | (remote_target::append_pending_thread_resumptions) |
| 10570 | (remote_target::remote_resume_with_hc, remote_target::resume) |
| 10571 | (remote_target::commit_resume): Pass down target. |
| 10572 | (remote_target::remote_stop_ns): Check supports_vCont_probed. |
| 10573 | (remote_target::interrupt_query) |
| 10574 | (remote_target::remove_new_fork_children) |
| 10575 | (remote_target::check_pending_events_prevent_wildcard_vcont) |
| 10576 | (remote_target::remote_parse_stop_reply) |
| 10577 | (remote_target::process_stop_reply): Pass down target. |
| 10578 | (first_remote_resumed_thread): New remote_target parameter. Pass |
| 10579 | it down. |
| 10580 | (remote_target::wait_as): Pass down target. |
| 10581 | (unpush_and_perror): New remote_target parameter. Pass it down. |
| 10582 | (remote_target::readchar, remote_target::remote_serial_write) |
| 10583 | (remote_target::getpkt_or_notif_sane_1) |
| 10584 | (remote_target::kill_new_fork_children, remote_target::kill): Pass |
| 10585 | down target. |
| 10586 | (remote_target::mourn_inferior): Pass down target. Use |
| 10587 | remote_unpush_target. |
| 10588 | (remote_target::core_of_thread) |
| 10589 | (remote_target::remote_btrace_maybe_reopen): Pass down target. |
| 10590 | (remote_target::pid_to_exec_file) |
| 10591 | (remote_target::thread_handle_to_thread_info): Pass down target. |
| 10592 | (remote_target::async_wait_fd): New. |
| 10593 | * riscv-fbsd-tdep.c: Include "inferior.h". |
| 10594 | (riscv_fbsd_get_thread_local_address): Pass down target. |
| 10595 | * sol2-tdep.c (sol2_core_pid_to_str): Pass down target. |
| 10596 | * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs) |
| 10597 | (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback): |
| 10598 | Adjust. |
| 10599 | * solib-spu.c (spu_skip_standalone_loader): Pass down target. |
| 10600 | * solib-svr4.c (enable_break): Pass down target. |
| 10601 | * spu-multiarch.c (parse_spufs_run): Pass down target. |
| 10602 | * spu-tdep.c (spu2ppu_sniffer): Pass down target. |
| 10603 | * target-delegates.c: Regenerate. |
| 10604 | * target.c (g_target_stack): Delete. |
| 10605 | (current_top_target): Return the current inferior's top target. |
| 10606 | (target_has_execution_1): Refer to the passed-in inferior's top |
| 10607 | target. |
| 10608 | (target_supports_terminal_ours): Check whether the initial |
| 10609 | inferior was already created. |
| 10610 | (decref_target): New. |
| 10611 | (target_stack::push): Incref/decref the target. |
| 10612 | (push_target, push_target, unpush_target): Adjust. |
| 10613 | (target_stack::unpush): Defref target. |
| 10614 | (target_is_pushed): Return bool. Adjust to refer to the current |
| 10615 | inferior's target stack. |
| 10616 | (dispose_inferior): Delete, and inline parts ... |
| 10617 | (target_preopen): ... here. Only dispose of the current inferior. |
| 10618 | (target_detach): Hold strong target reference while detaching. |
| 10619 | Pass target down. |
| 10620 | (target_thread_name): Add assertion. |
| 10621 | (target_resume): Pass down target. |
| 10622 | (target_ops::beneath, find_target_at): Adjust to refer to the |
| 10623 | current inferior's target stack. |
| 10624 | (get_dummy_target): New. |
| 10625 | (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that |
| 10626 | has a thread running. |
| 10627 | (initialize_targets): Rename to ... |
| 10628 | (_initialize_target): ... this. |
| 10629 | * target.h: Include "gdbsupport/refcounted-object.h". |
| 10630 | (struct target_ops): Inherit refcounted_object. |
| 10631 | (target_ops::shortname, target_ops::longname): Make const. |
| 10632 | (target_ops::async_wait_fd): New method. |
| 10633 | (decref_target): Declare. |
| 10634 | (struct target_ops_ref_policy): New. |
| 10635 | (target_ops_ref): New typedef. |
| 10636 | (get_dummy_target): Declare function. |
| 10637 | (target_is_pushed): Return bool. |
| 10638 | * thread-iter.c (all_matching_threads_iterator::m_inf_matches) |
| 10639 | (all_matching_threads_iterator::all_matching_threads_iterator): |
| 10640 | Handle filter target. |
| 10641 | * thread-iter.h (struct all_matching_threads_iterator, struct |
| 10642 | all_matching_threads_range, class all_non_exited_threads_range): |
| 10643 | Filter by target too. Remove explicit. |
| 10644 | * thread.c (threads_executing): Delete. |
| 10645 | (inferior_thread): Pass down current inferior. |
| 10646 | (clear_thread_inferior_resources): Pass down thread pointer |
| 10647 | instead of ptid_t. |
| 10648 | (add_thread_silent, add_thread_with_info, add_thread): Add |
| 10649 | process_stratum_target parameter. Use it for thread and inferior |
| 10650 | searches. |
| 10651 | (is_current_thread): New. |
| 10652 | (thread_info::deletable): Use it. |
| 10653 | (find_thread_ptid, thread_count, in_thread_list) |
| 10654 | (thread_change_ptid, set_resumed, set_running): New |
| 10655 | process_stratum_target parameter. Pass it down. |
| 10656 | (set_executing): New process_stratum_target parameter. Pass it |
| 10657 | down. Adjust reference to 'threads_executing'. |
| 10658 | (threads_are_executing): New process_stratum_target parameter. |
| 10659 | Adjust reference to 'threads_executing'. |
| 10660 | (set_stop_requested, finish_thread_state): New |
| 10661 | process_stratum_target parameter. Pass it down. |
| 10662 | (switch_to_thread): Also match inferior. |
| 10663 | (switch_to_thread): New process_stratum_target parameter. Pass it |
| 10664 | down. |
| 10665 | (update_threads_executing): Reimplement. |
| 10666 | * top.c (quit_force): Pop targets from all inferior. |
| 10667 | (gdb_init): Don't call initialize_targets. |
| 10668 | * windows-nat.c (windows_nat_target) <get_windows_debug_event>: |
| 10669 | Declare. |
| 10670 | (windows_add_thread, windows_delete_thread): Adjust. |
| 10671 | (get_windows_debug_event): Rename to ... |
| 10672 | (windows_nat_target::get_windows_debug_event): ... this. Adjust. |
| 10673 | * tracefile-tfile.c (tfile_target_open): Pass down target. |
| 10674 | * gdbsupport/common-gdbthread.h (struct process_stratum_target): |
| 10675 | Forward declare. |
| 10676 | (switch_to_thread): Add process_stratum_target parameter. |
| 10677 | * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target |
| 10678 | parameter. Use it. |
| 10679 | (mi_on_resume): Pass target down. |
| 10680 | * nat/fork-inferior.c (startup_inferior): Add |
| 10681 | process_stratum_target parameter. Pass it down. |
| 10682 | * nat/fork-inferior.h (startup_inferior): Add |
| 10683 | process_stratum_target parameter. |
| 10684 | * python/py-threadevent.c (py_get_event_thread): Pass target down. |
| 10685 | |
| 10686 | 2020-01-10 Pedro Alves <palves@redhat.com> |
| 10687 | |
| 10688 | * remote.c (remote_target::start_remote): Don't set inferior_ptid |
| 10689 | directly. Instead find the first thread in the thread list and |
| 10690 | use switch_to_thread. |
| 10691 | |
| 10692 | 2020-01-10 Pedro Alves <palves@redhat.com> |
| 10693 | |
| 10694 | * remote.c (remote_target::remote_add_inferior): Don't bind a |
| 10695 | process to the current inferior if the current inferior is already |
| 10696 | bound to a process. |
| 10697 | |
| 10698 | 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
| 10699 | Pedro Alves <palves@redhat.com> |
| 10700 | |
| 10701 | * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>: |
| 10702 | If no process is specified, return null_ptid instead of |
| 10703 | inferior_ptid. |
| 10704 | (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED / |
| 10705 | TARGET_WAITKIND_SIGNALLED with no pid. |
| 10706 | |
| 10707 | 2020-01-10 Pedro Alves <palves@redhat.com> |
| 10708 | |
| 10709 | * remote.c (first_remote_resumed_thread): New. |
| 10710 | (remote_target::wait_as): Use it as default event_ptid instead of |
| 10711 | inferior_ptid. |
| 10712 | |
| 10713 | 2020-01-10 Pedro Alves <palves@redhat.com> |
| 10714 | |
| 10715 | * infrun.c (handle_no_resumed): Use all_non_exited_inferiors. |
| 10716 | |
| 10717 | 2020-01-10 Pedro Alves <palves@redhat.com> |
| 10718 | |
| 10719 | * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is |
| 10720 | not -1. |
| 10721 | |
| 10722 | 2020-01-10 Pedro Alves <palves@redhat.com> |
| 10723 | |
| 10724 | * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a |
| 10725 | ptid to get_last_target_status. |
| 10726 | * break-catch-syscall.c (print_it_catch_syscall): Don't pass a |
| 10727 | ptid to get_last_target_status. |
| 10728 | * infcmd.c (continue_command): Don't pass a target_waitstatus to |
| 10729 | get_last_target_status. |
| 10730 | (info_program_command): Don't pass a target_waitstatus to |
| 10731 | get_last_target_status. |
| 10732 | * infrun.c (init_wait_for_inferior): Use |
| 10733 | nullify_last_target_wait_ptid. |
| 10734 | (get_last_target_status): Handle nullptr arguments. |
| 10735 | (nullify_last_target_wait_ptid): Clear target_last_waitstatus. |
| 10736 | (print_stop_event): Don't pass a ptid to get_last_target_status. |
| 10737 | (normal_stop): Don't pass a ptid to get_last_target_status. |
| 10738 | * infrun.h (get_last_target_status, set_last_target_status): Move |
| 10739 | comments here and update. |
| 10740 | (nullify_last_target_wait_ptid): Declare. |
| 10741 | * linux-fork.c (fork_load_infrun_state): Remove local extern |
| 10742 | declaration of nullify_last_target_wait_ptid. |
| 10743 | * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus |
| 10744 | to get_last_target_status. |
| 10745 | |
| 10746 | 2020-01-10 Pedro Alves <palves@redhat.com> |
| 10747 | |
| 10748 | * gdbthread.h (scoped_restore_current_thread) |
| 10749 | <dont_restore, restore, m_dont_restore>: Declare. |
| 10750 | * thread.c (thread_alive): Add assertion. Return bool. |
| 10751 | (switch_to_thread_if_alive): New. |
| 10752 | (prune_threads): Switch inferior/thread. |
| 10753 | (print_thread_info_1): Switch thread before calling target methods. |
| 10754 | (scoped_restore_current_thread::restore): New, factored out from |
| 10755 | ... |
| 10756 | (scoped_restore_current_thread::~scoped_restore_current_thread): |
| 10757 | ... this. |
| 10758 | (scoped_restore_current_thread::scoped_restore_current_thread): |
| 10759 | Add assertion. |
| 10760 | (thread_apply_all_command, thread_select): Use |
| 10761 | switch_to_thread_if_alive. |
| 10762 | * infrun.c (proceed, restart_threads, handle_signal_stop) |
| 10763 | (switch_back_to_stepped_thread): Switch current thread before |
| 10764 | calling target methods. |
| 10765 | |
| 10766 | 2020-01-10 Pedro Alves <palves@redhat.com> |
| 10767 | |
| 10768 | * inferior.c (switch_to_inferior_no_thread): New function, |
| 10769 | factored out from ... |
| 10770 | (inferior_command): ... here. |
| 10771 | * inferior.h (switch_to_inferior_no_thread): Declare. |
| 10772 | * mi/mi-main.c (run_one_inferior): Use |
| 10773 | switch_to_inferior_no_thread. |
| 10774 | |
| 10775 | 2020-01-10 Pedro Alves <palves@redhat.com> |
| 10776 | |
| 10777 | * infcmd.c (kill_command): Remove dead code. |
| 10778 | |
| 10779 | 2020-01-10 Pedro Alves <palves@redhat.com> |
| 10780 | |
| 10781 | * remote.c (remote_target::mourn_inferior): No longer check |
| 10782 | whether the target is running. |
| 10783 | |
| 10784 | 2020-01-10 Pedro Alves <palves@redhat.com> |
| 10785 | |
| 10786 | * corelow.c (core_target::has_execution): Change parameter type to |
| 10787 | inferior pointer. |
| 10788 | * inferior.c (number_of_live_inferiors): Use |
| 10789 | inferior::has_execution instead of target_has_execution_1. |
| 10790 | * inferior.h (inferior::has_execution): New. |
| 10791 | * linux-thread-db.c (thread_db_target::update_thread_list): Use |
| 10792 | inferior::has_execution instead of target_has_execution_1. |
| 10793 | * process-stratum-target.c |
| 10794 | (process_stratum_target::has_execution): Change parameter type to |
| 10795 | inferior pointer. Check the inferior's PID instead of |
| 10796 | inferior_ptid. |
| 10797 | * process-stratum-target.h |
| 10798 | (process_stratum_target::has_execution): Change parameter type to |
| 10799 | inferior pointer. |
| 10800 | * record-full.c (record_full_core_target::has_execution): Change |
| 10801 | parameter type to inferior pointer. |
| 10802 | * target.c (target_has_execution_1): Change parameter type to |
| 10803 | inferior pointer. |
| 10804 | (target_has_execution_current): Adjust. |
| 10805 | * target.h (target_ops::has_execution): Change parameter type to |
| 10806 | inferior pointer. |
| 10807 | (target_has_execution_1): Change parameter type to inferior |
| 10808 | pointer. Change return type to bool. |
| 10809 | * tracefile.h (tracefile_target::has_execution): Change parameter |
| 10810 | type to inferior pointer. |
| 10811 | |
| 10812 | 2020-01-10 Pedro Alves <palves@redhat.com> |
| 10813 | |
| 10814 | * exceptions.c (print_flush): Remove current_top_target() check. |
| 10815 | |
| 10816 | 2020-01-10 Pedro Alves <palves@redhat.com> |
| 10817 | |
| 10818 | * remote.c (show_remote_exec_file): Show the current inferior's |
| 10819 | exec-file instead of the command variable's value. |
| 10820 | |
| 10821 | 2020-01-10 Pedro Alves <palves@redhat.com> |
| 10822 | |
| 10823 | * record-full.c (record_full_resume_ptid): New global. |
| 10824 | (record_full_target::resume): Set it. |
| 10825 | (record_full_wait_1): Use record_full_resume_ptid instead of |
| 10826 | inferior_ptid. |
| 10827 | |
| 10828 | 2020-01-10 Pedro Alves <palves@redhat.com> |
| 10829 | |
| 10830 | * gdbthread.h (scoped_restore_current_thread) |
| 10831 | <dont_restore, restore, m_dont_restore>: Declare. |
| 10832 | * thread.c (thread_alive): Add assertion. Return bool. |
| 10833 | (switch_to_thread_if_alive): New. |
| 10834 | (prune_threads): Switch inferior/thread. |
| 10835 | (print_thread_info_1): Switch thread before calling target methods. |
| 10836 | (scoped_restore_current_thread::restore): New, factored out from |
| 10837 | ... |
| 10838 | (scoped_restore_current_thread::~scoped_restore_current_thread): |
| 10839 | ... this. |
| 10840 | (scoped_restore_current_thread::scoped_restore_current_thread): |
| 10841 | Add assertion. |
| 10842 | (thread_apply_all_command, thread_select): Use |
| 10843 | switch_to_thread_if_alive. |
| 10844 | |
| 10845 | 2020-01-10 George Barrett <bob@bob131.so> |
| 10846 | |
| 10847 | * stap-probe.c (stap_modify_semaphore): Don't check for null |
| 10848 | semaphores. |
| 10849 | (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check |
| 10850 | for null semaphores. |
| 10851 | |
| 10852 | 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com> |
| 10853 | |
| 10854 | * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update |
| 10855 | all source windows, and maintain horizontal scroll status while |
| 10856 | doing so. |
| 10857 | |
| 10858 | 2020-01-09 Tom Tromey <tom@tromey.com> |
| 10859 | |
| 10860 | PR tui/18932: |
| 10861 | * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call |
| 10862 | update_source_window, not print_source_lines. |
| 10863 | |
| 10864 | 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com> |
| 10865 | |
| 10866 | * tui/tui.c (tui_enable): Register tui hooks after calling |
| 10867 | tui_display_main. |
| 10868 | |
| 10869 | 2020-01-09 Christian Biesinger <cbiesinger@google.com> |
| 10870 | |
| 10871 | * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW. |
| 10872 | |
| 10873 | 2020-01-08 Simon Marchi <simon.marchi@efficios.com> |
| 10874 | |
| 10875 | * thread.c (print_thread_info_1): Fix indentation. |
| 10876 | |
| 10877 | 2020-01-09 Christian Biesinger <cbiesinger@google.com> |
| 10878 | |
| 10879 | * symtab.c (general_symbol_info::compute_and_set_names): Move the |
| 10880 | unique_xmalloc_ptr outside the if to always free the demangled name. |
| 10881 | |
| 10882 | 2020-01-08 Tom Tromey <tromey@adacore.com> |
| 10883 | |
| 10884 | * xcoffread.c (enter_line_range, read_xcoff_symtab) |
| 10885 | (process_xcoff_symbol, xcoff_symfile_offsets): Update. |
| 10886 | * symtab.h (MSYMBOL_VALUE_ADDRESS): Update. |
| 10887 | (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS): |
| 10888 | Remove. |
| 10889 | (section_offsets): New typedef. |
| 10890 | * symtab.c (fixup_section, get_msymbol_address): Update. |
| 10891 | * symmisc.c (dump_msymbols): Update. |
| 10892 | * symfile.h (relative_addr_info_to_section_offsets) |
| 10893 | (symfile_map_offsets_to_segments): Update. |
| 10894 | * symfile.c (build_section_addr_info_from_objfile) |
| 10895 | (init_objfile_sect_indices): Update. |
| 10896 | (struct place_section_arg): Change type of "offsets". |
| 10897 | (place_section): Update. |
| 10898 | (relative_addr_info_to_section_offsets): Change type of |
| 10899 | "section_offsets". Remove "num_sections" parameter. |
| 10900 | (default_symfile_offsets, syms_from_objfile_1) |
| 10901 | (set_objfile_default_section_offset): Update. |
| 10902 | (reread_symbols): No need to preserve section offsets by hand. |
| 10903 | (symfile_map_offsets_to_segments): Change type of "offsets". |
| 10904 | * stap-probe.c (relocate_address): Update. |
| 10905 | * stabsread.h (process_one_symbol): Update. |
| 10906 | * solib-target.c (struct lm_info_target) <offsets>: Change type. |
| 10907 | (solib_target_relocate_section_addresses): Update. |
| 10908 | * solib-svr4.c (enable_break, svr4_relocate_main_executable): |
| 10909 | Update. |
| 10910 | * solib-frv.c (frv_relocate_main_executable): Update. |
| 10911 | * solib-dsbt.c (dsbt_relocate_main_executable): Update. |
| 10912 | * solib-aix.c (solib_aix_get_section_offsets): Change return |
| 10913 | type. |
| 10914 | (solib_aix_solib_create_inferior_hook): Update. |
| 10915 | * remote.c (remote_target::get_offsets): Update. |
| 10916 | * psymtab.c (find_pc_sect_psymtab): Update. |
| 10917 | * psympriv.h (struct partial_symbol) <address, text_low, |
| 10918 | text_high>: Update. |
| 10919 | * objfiles.h (obj_section_offset): Update. |
| 10920 | (struct objfile) <section_offsets>: Change type. |
| 10921 | <num_sections>: Remove. |
| 10922 | (objfile_relocate): Update. |
| 10923 | * objfiles.c (entry_point_address_query): Update |
| 10924 | (relocate_one_symbol): Change type of "section_offsets". |
| 10925 | (objfile_relocate1, objfile_relocate1): Change type of |
| 10926 | "new_offsets". |
| 10927 | (objfile_rebase1): Update. |
| 10928 | * mipsread.c (mipscoff_symfile_read): Update. |
| 10929 | (read_alphacoff_dynamic_symtab): Remove "section_offsets" |
| 10930 | parameter. |
| 10931 | * mdebugread.c (parse_symbol): Change type of "section_offsets". |
| 10932 | (parse_external, psymtab_to_symtab_1): Update. |
| 10933 | * machoread.c (macho_symfile_offsets): Update. |
| 10934 | * ia64-tdep.c (ia64_find_unwind_table): Update. |
| 10935 | * hppa-tdep.c (read_unwind_info): Update. |
| 10936 | * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update. |
| 10937 | * dwarf2read.c (create_addrmap_from_index) |
| 10938 | (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab) |
| 10939 | (process_psymtab_comp_unit_reader, add_partial_symbol) |
| 10940 | (add_partial_subprogram, process_full_comp_unit) |
| 10941 | (read_file_scope, read_func_scope, read_lexical_block_scope) |
| 10942 | (read_call_site_scope, dwarf2_rnglists_process) |
| 10943 | (dwarf2_ranges_process, dwarf2_ranges_read) |
| 10944 | (dwarf_decode_lines_1, var_decode_location, new_symbol) |
| 10945 | (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset): |
| 10946 | Update. |
| 10947 | * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde): |
| 10948 | Update. |
| 10949 | * dtrace-probe.c (dtrace_probe::get_relocated_address): Update. |
| 10950 | * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update. |
| 10951 | (process_one_symbol): Change type of "section_offsets". |
| 10952 | * ctfread.c (get_objfile_text_range): Update. |
| 10953 | * coffread.c (coff_symtab_read, enter_linenos) |
| 10954 | (process_coff_symbol): Update. |
| 10955 | * coff-pe-read.c (add_pe_forwarded_sym): Update. |
| 10956 | * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update. |
| 10957 | |
| 10958 | 2020-01-08 Tom Tromey <tromey@adacore.com> |
| 10959 | |
| 10960 | * dwarf2read.c (parse_macro_definition): Use std::string. |
| 10961 | (parse_macro_definition): Likewise. |
| 10962 | |
| 10963 | 2020-01-08 Tom Tromey <tromey@adacore.com> |
| 10964 | |
| 10965 | * dwarf2read.c (abbrev_table_read_table): Use std::vector. |
| 10966 | (ATTR_ALLOC_CHUNK): Remove. |
| 10967 | |
| 10968 | 2020-01-08 Tom Tromey <tromey@adacore.com> |
| 10969 | |
| 10970 | * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr. |
| 10971 | |
| 10972 | 2020-01-08 Tom Tromey <tromey@adacore.com> |
| 10973 | |
| 10974 | * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr. |
| 10975 | (dwarf2_compute_name, open_dwo_file): Likewise. |
| 10976 | (process_enumeration_scope): Use std::vector. |
| 10977 | (guess_partial_die_structure_name): Use unique_xmalloc_ptr. |
| 10978 | (partial_die_info::fixup, dwarf2_start_subfile) |
| 10979 | (guess_full_die_structure_name, dwarf2_name): Likewise. |
| 10980 | (determine_prefix): Update. |
| 10981 | (guess_full_die_structure_name): Make return type const. |
| 10982 | (partial_die_full_name): Return unique_xmalloc_ptr. |
| 10983 | (DW_FIELD_ALLOC_CHUNK): Remove. |
| 10984 | |
| 10985 | 2020-01-07 Tom Tromey <tromey@adacore.com> |
| 10986 | |
| 10987 | PR build/24937: |
| 10988 | * stap-probe.c (class stap_static_probe_ops): Add constructor. |
| 10989 | |
| 10990 | 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk> |
| 10991 | |
| 10992 | * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build. |
| 10993 | |
| 10994 | 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com> |
| 10995 | |
| 10996 | * stack.c (print_frame_info): Move disassemble_next_line code |
| 10997 | inside source_print block. |
| 10998 | |
| 10999 | 2020-01-06 Eli Zaretskii <eliz@gnu.org> |
| 11000 | |
| 11001 | * gdbsupport/gdb_wait.c: Include <signal.h> instead of |
| 11002 | gdb/signals.h, as we are now using native signal symbols. |
| 11003 | |
| 11004 | 2020-01-06 Shahab Vahedi <shahab@synopsys.com> |
| 11005 | |
| 11006 | * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid |
| 11007 | overflow by an early check of content vs threshold. |
| 11008 | * tui/tui-source.c (tui_source_window::line_is_displayed): |
| 11009 | Likewise. |
| 11010 | |
| 11011 | 2020-01-06 Eli Zaretskii <eliz@gnu.org> |
| 11012 | |
| 11013 | * NEWS: Mention the recent fix of $_exitsignal on MS-Windows. |
| 11014 | |
| 11015 | 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk> |
| 11016 | |
| 11017 | * coff-pe-read.c (read_pe_exported_syms): Don't try to read the |
| 11018 | export table if no section contains it's RVA. |
| 11019 | |
| 11020 | 2020-01-06 Eli Zaretskii <eliz@gnu.org> |
| 11021 | |
| 11022 | * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT. |
| 11023 | |
| 11024 | 2020-01-06 Hannes Domani <ssbssa@yahoo.de> |
| 11025 | |
| 11026 | * source.c (print_source_lines_base): Set last_line_listed. |
| 11027 | |
| 11028 | 2020-01-06 Shahab Vahedi <shahab@synopsys.com> |
| 11029 | |
| 11030 | * tui/tui-disasm.c: Remove trailing spaces. |
| 11031 | |
| 11032 | 2020-01-06 Eli Zaretskii <eliz@gnu.org> |
| 11033 | Pedro Alves <palves@redhat.com> |
| 11034 | |
| 11035 | * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c. |
| 11036 | * windows-tdep.c: New enumeration of WINDOWS_SIG* signals. |
| 11037 | (windows_gdb_signal_to_target): New function, uses the above |
| 11038 | enumeration to convert GDB internal signal codes to equivalent |
| 11039 | Windows codes. |
| 11040 | (windows_init_abi): Call set_gdbarch_gdb_signal_to_target. |
| 11041 | * windows-nat.c: Include "gdb_wait.h". |
| 11042 | (get_windows_debug_event): Extract the fatal exception from the |
| 11043 | exit status and convert to the equivalent Posix signal number. |
| 11044 | * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the |
| 11045 | possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN. |
| 11046 | * gdbsupport/gdb_wait.c: New file, implements |
| 11047 | windows_status_to_termsig. |
| 11048 | * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS) |
| 11049 | (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW. |
| 11050 | |
| 11051 | 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com> |
| 11052 | |
| 11053 | * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not |
| 11054 | show_layout. |
| 11055 | |
| 11056 | 2020-01-05 Luis Machado <luis.machado@linaro.org> |
| 11057 | |
| 11058 | * aarch64-linux-nat.c |
| 11059 | (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64 |
| 11060 | and bfd_mach_aarch64. |
| 11061 | |
| 11062 | 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
| 11063 | |
| 11064 | * ui-file.c (stdio_file::can_emit_style_escape) |
| 11065 | (tee_file::can_emit_style_escape): Ensure style is used also on |
| 11066 | gdb_stderr when gdb_stderr is a tty supporting styling, similarly |
| 11067 | to gdb_stdout. |
| 11068 | * main.c (set_gdb_data_directory): Use file style to output the |
| 11069 | warning that the given pathname is not a directory. |
| 11070 | * top.c (show_history_filename, gdb_safe_append_history) |
| 11071 | (show_gdb_datadir): Use file style. |
| 11072 | |
| 11073 | 2020-01-03 Hannes Domani <ssbssa@yahoo.de> |
| 11074 | |
| 11075 | * solib-target.c (struct lm_info_target): |
| 11076 | Change offsets to be a unique_xmalloc_ptr. |
| 11077 | (solib_target_relocate_section_addresses): Update. |
| 11078 | |
| 11079 | 2020-01-03 Hannes Domani <ssbssa@yahoo.de> |
| 11080 | |
| 11081 | * windows-nat.c (windows_clear_solib): Free so_list linked list. |
| 11082 | |
| 11083 | 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de> |
| 11084 | |
| 11085 | * MAINTAINERS (Write After Approval): Add myself. |
| 11086 | |
| 11087 | 2020-01-02 Luis Machado <luis.machado@linaro.org> |
| 11088 | |
| 11089 | * proc-service.c (get_ps_regcache): Remove reference to obsolete |
| 11090 | Cell BE architecture. |
| 11091 | * target.h (struct target_ops) <thread_architecture>: Likewise. |
| 11092 | |
| 11093 | 2020-01-01 Hannes Domani <ssbssa@yahoo.de> |
| 11094 | |
| 11095 | * Makefile.in: Use INSTALL_PROGRAM_ENV. |
| 11096 | |
| 11097 | 2020-01-01 Hannes Domani <ssbssa@yahoo.de> |
| 11098 | |
| 11099 | * MAINTAINERS (Write After Approval): Add myself. |
| 11100 | |
| 11101 | 2020-01-01 Joel Brobecker <brobecker@adacore.com> |
| 11102 | |
| 11103 | * gdbarch.sh: Update copyright year range of generated files. |
| 11104 | |
| 11105 | 2020-01-01 Joel Brobecker <brobecker@adacore.com> |
| 11106 | |
| 11107 | Update copyright year range in all GDB files. |
| 11108 | |
| 11109 | 2020-01-01 Joel Brobecker <brobecker@adacore.com> |
| 11110 | |
| 11111 | * copyright.py: Convert to Python 3. |
| 11112 | |
| 11113 | 2020-01-01 Joel Brobecker <brobecker@adacore.com> |
| 11114 | |
| 11115 | * copyright.py: Adapt after move of gnulib directory from gdb |
| 11116 | directory to toplevel directory. |
| 11117 | |
| 11118 | 2020-01-01 Joel Brobecker <brobecker@adacore.com> |
| 11119 | |
| 11120 | * copyright.py (main): Exit if run from the wrong directory. |
| 11121 | |
| 11122 | 2020-01-01 Joel Brobecker <brobecker@adacore.com> |
| 11123 | |
| 11124 | * top.c (print_gdb_version): Change copyright year to 2020. |
| 11125 | |
| 11126 | 2020-01-01 Joel Brobecker <brobecker@adacore.com> |
| 11127 | |
| 11128 | * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019. |
| 11129 | |
| 11130 | For older changes see ChangeLog-2019. |
| 11131 | \f |
| 11132 | Local Variables: |
| 11133 | mode: change-log |
| 11134 | left-margin: 8 |
| 11135 | fill-column: 74 |
| 11136 | version-control: never |
| 11137 | coding: utf-8 |
| 11138 | End: |