| 1 | 2017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com> |
| 2 | |
| 3 | * linux-nat.c (linux_proc_xfer_partial): Handle write operations |
| 4 | as well. |
| 5 | |
| 6 | 2017-03-14 Pedro Alves <palves@redhat.com> |
| 7 | |
| 8 | * cp-name-parser.y (cp_demangled_name_to_comp): Update comment. |
| 9 | (main): Use std::unique_ptr. Remove calls to |
| 10 | cp_demangled_name_parse_free. |
| 11 | |
| 12 | 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca> |
| 13 | |
| 14 | * alpha-bsd-nat.c (alphabsd_fetch_inferior_registers, |
| 15 | alphabsd_store_inferior_registers): Use regcache->ptid instead |
| 16 | of inferior_ptid. |
| 17 | |
| 18 | 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca> |
| 19 | |
| 20 | * aix-thread.c (aix_thread_fetch_registers, |
| 21 | aix_thread_store_registers): Use regcache->ptid instead of |
| 22 | inferior_ptid. |
| 23 | |
| 24 | 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca> |
| 25 | |
| 26 | * aarch64-linux-nat.c (fetch_gregs_from_thread, |
| 27 | store_gregs_to_thread, fetch_fpregs_from_thread, |
| 28 | store_fpregs_to_thread): Use regcache->ptid instead of |
| 29 | inferior_ptid. |
| 30 | |
| 31 | 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca> |
| 32 | |
| 33 | * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers, |
| 34 | amd64_linux_fetch_inferior_registers): Use regcache->ptid |
| 35 | instead of inferior_ptid. |
| 36 | |
| 37 | 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca> |
| 38 | |
| 39 | * target.c (target_fetch_registers, target_store_registers): Add |
| 40 | assert. |
| 41 | |
| 42 | 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca> |
| 43 | |
| 44 | * regcache.h (regcache_get_ptid): New function. |
| 45 | * regcache.c (regcache_get_ptid): New function. |
| 46 | |
| 47 | 2017-03-13 Mark Wielaard <mark@klomp.org> |
| 48 | |
| 49 | * cp-name-parser.y (make_empty): Initialize d_printing to zero. |
| 50 | |
| 51 | 2017-03-10 Keith Seitz <keiths@redhat.com> |
| 52 | |
| 53 | PR c++/8218 |
| 54 | * c-typeprint.c (cp_type_print_method_args): Skip artificial arguments. |
| 55 | |
| 56 | 2017-03-08 Pedro Alves <palves@redhat.com> |
| 57 | |
| 58 | PR gdb/18360 |
| 59 | * infrun.c (start_step_over, do_target_resume, resume) |
| 60 | (restart_threads): Assert we're not resuming a thread that is |
| 61 | meant to be stopped. |
| 62 | (infrun_thread_stop_requested_callback): Delete. |
| 63 | (infrun_thread_stop_requested): If the thread is internally |
| 64 | stopped, queue a pending stop event and clear the thread's |
| 65 | inline-frame state. |
| 66 | (handle_stop_requested): New function. |
| 67 | (handle_syscall_event, handle_inferior_event_1): Use |
| 68 | handle_stop_requested. |
| 69 | (handle_stop_requested): New function. |
| 70 | (handle_signal_stop): Set the thread's stop_signal here instead of |
| 71 | at caller. |
| 72 | (finish_step_over): Clear step over info unconditionally. |
| 73 | (handle_signal_stop): If the user had interrupted the event |
| 74 | thread, consider the stop a random signal. |
| 75 | (handle_signal_stop) <signal arrived while stepping over |
| 76 | breakpoint>: Don't restart threads here. |
| 77 | (stop_waiting): Don't clear step-over info here. |
| 78 | |
| 79 | 2017-03-08 Pedro Alves <palves@redhat.com> |
| 80 | |
| 81 | PR 21206 |
| 82 | * common/gdb_unlinker.h (unlinker::unlinker): Attribute nonnull |
| 83 | goes to argument 2, not 1. |
| 84 | |
| 85 | 2017-03-08 Pedro Alves <palves@redhat.com> |
| 86 | |
| 87 | PR cli/21218 |
| 88 | * top.c (gdb_readline_wrapper): Avoid passing NULL to |
| 89 | display_gdb_prompt. |
| 90 | (command_line_input): Add comment. |
| 91 | |
| 92 | 2017-03-08 Pedro Alves <palves@redhat.com> |
| 93 | |
| 94 | PR tui/21216 |
| 95 | * tui/tui-file.c (tui_file::write): New. |
| 96 | * tui/tui-file.h (tui_file): Override "write". |
| 97 | * tui/tui-io.c (do_tui_putc, update_start_line): New functions, |
| 98 | factored out from ... |
| 99 | (tui_puts): ... here. |
| 100 | (tui_putc): Use them. |
| 101 | (tui_write): New function. |
| 102 | * tui/tui-io.h (tui_write): Declare. |
| 103 | |
| 104 | 2017-03-07 Sergio Durigan Junior <sergiodj@redhat.com> |
| 105 | |
| 106 | * Makefile.in (SFILES): Replace "environ.c" with |
| 107 | "common/environ.c". |
| 108 | (HFILES_NO_SRCDIR): Likewise, for "environ.h". |
| 109 | * environ.c: Include "common-defs.h" instead of "defs.h. Moved |
| 110 | to... |
| 111 | * common/environ.c: ... here. |
| 112 | * environ.h: Moved to... |
| 113 | * common/environ.h: ... here. |
| 114 | |
| 115 | 2017-03-07 Peter Bergner <bergner@vnet.ibm.com> |
| 116 | |
| 117 | * gdbarch.sh (pstring_ptr): New static function. |
| 118 | (gdbarch_disassembler_options): Use it. |
| 119 | (gdbarch_verify_disassembler_options): Print valid_disassembler_options, |
| 120 | not valid_disassembler_option->name. |
| 121 | * gdbarch.c: Regenerate. |
| 122 | |
| 123 | 2017-03-07 Peter Bergner <bergner@vnet.ibm.com> |
| 124 | |
| 125 | * config/powerpc/ppc64-linux.mh (MH_CFLAGS): Delete. |
| 126 | |
| 127 | 2017-03-07 Pedro Alves <palves@redhat.com> |
| 128 | |
| 129 | * tui/tui-regs.c (tui_restore_gdbout): Don't delete gdb_stdout. |
| 130 | |
| 131 | 2017-03-07 Walfred Tedeschi <walfred.tedeschi@intel.com> |
| 132 | |
| 133 | * i387-tdep.h (i387_reset_bnd_regs): Add function definition. |
| 134 | * i387-tdep.c (i387_reset_bnd_regs): Add function implementation. |
| 135 | * i386-tdep.c (i386_push_dummy_call): Call i387_reset_bnd_regs. |
| 136 | * amd64-tdep.c (amd64_push_dummy_call): Call i387_reset_bnd_regs. |
| 137 | |
| 138 | 2017-03-06 Simon Marchi <simon.marchi@ericsson.com> |
| 139 | |
| 140 | * xtensa-linux-nat.c (fetch_gregs): Remove const. |
| 141 | |
| 142 | 2017-03-03 Simon Marchi <simon.marchi@ericsson.com> |
| 143 | |
| 144 | * remote.c (remote_add_target_side_commands): Use range-based |
| 145 | for loop. |
| 146 | |
| 147 | 2017-03-03 Yao Qi <yao.qi@linaro.org> |
| 148 | |
| 149 | PR gdb/21165 |
| 150 | * ada-valprint.c (ada_val_print_ref): Call value_fetch_lazy if |
| 151 | value is lazy. |
| 152 | * valprint.c (common_val_print): Likewise. |
| 153 | |
| 154 | 2017-02-28 Peter Bergner <bergner@vnet.ibm.com> |
| 155 | |
| 156 | * NEWS: Mention new set/show disassembler-options commands. |
| 157 | * doc/gdb.texinfo: Document new set/show disassembler-options commands. |
| 158 | * disasm.c: Include "arch-utils.h", "gdbcmd.h" and "safe-ctype.h". |
| 159 | (prospective_options): New static variable. |
| 160 | (gdb_disassembler::gdb_disassembler): Initialize |
| 161 | m_di.disassembler_options. |
| 162 | (gdb_buffered_insn_length_init_dis): Initilize di->disassembler_options. |
| 163 | (get_disassembler_options): New function. |
| 164 | (set_disassembler_options): Likewise. |
| 165 | (set_disassembler_options_sfunc): Likewise. |
| 166 | (show_disassembler_options_sfunc): Likewise. |
| 167 | (disassembler_options_completer): Likewise. |
| 168 | (_initialize_disasm): Likewise. |
| 169 | * disasm.h (get_disassembler_options): New prototype. |
| 170 | (set_disassembler_options): Likewise. |
| 171 | * gdbarch.sh (gdbarch_disassembler_options): New variable. |
| 172 | (gdbarch_verify_disassembler_options): Likewise. |
| 173 | * gdbarch.c: Regenerate. |
| 174 | * gdbarch.h: Likewise. |
| 175 | * arm-tdep.c (num_disassembly_options): Delete. |
| 176 | (set_disassembly_style): Likewise. |
| 177 | (arm_disassembler_options): New static variable. |
| 178 | (set_disassembly_style_sfunc): Convert short style name into long |
| 179 | option name. Call set_disassembler_options. |
| 180 | (show_disassembly_style_sfunc): New function. |
| 181 | (arm_gdbarch_init): Call set_gdbarch_disassembler_options and |
| 182 | set_gdbarch_verify_disassembler_options. |
| 183 | (_initialize_arm_tdep): Delete regnames variable and update callers. |
| 184 | (arm_disassembler_options): Initialize. |
| 185 | (disasm_options): New variable. |
| 186 | (num_disassembly_options): Rename from this... |
| 187 | (num_disassembly_styles): ...to this. Compute by scanning through |
| 188 | disasm_options. |
| 189 | (valid_disassembly_styles): Initialize using disasm_options. |
| 190 | Remove calls to parse_arm_disassembler_option, get_arm_regnames and |
| 191 | set_arm_regname_option. |
| 192 | Pass show_disassembly_style_sfunc to the "disassembler" setshow command. |
| 193 | * rs6000-tdep.c (powerpc_disassembler_options): New static variable. |
| 194 | (rs6000_gdbarch_init): Call set_gdbarch_disassembler_options and |
| 195 | set_gdbarch_verify_disassembler_options. |
| 196 | * s390-tdep.c (s390_disassembler_options): New static variable. |
| 197 | (s390_gdbarch_init):all set_gdbarch_disassembler_options and |
| 198 | set_gdbarch_verify_disassembler_options. |
| 199 | |
| 200 | 2017-02-27 Simon Marchi <simon.marchi@ericsson.com> |
| 201 | |
| 202 | * remote.c (remote_add_target_side_condition): Remove "struct" |
| 203 | keyword from range-based for loop. |
| 204 | |
| 205 | 2017-02-27 Simon Marchi <simon.marchi@ericsson.com> |
| 206 | |
| 207 | * remote.c (remote_add_target_side_condition): Use range-based |
| 208 | for loop. Update comment. |
| 209 | |
| 210 | 2017-02-27 Yao Qi <yao.qi@linaro.org> |
| 211 | |
| 212 | * f-typeprint.c (f_print_type): Check "varstring" is empty first. |
| 213 | |
| 214 | 2017-02-26 Alan Hayward <alan.hayward@arm.com> |
| 215 | |
| 216 | * regcache.c (regcache_raw_update): New function. |
| 217 | (regcache_raw_read): Move code to regcache_raw_update. |
| 218 | * regcache.h (regcache_raw_update): New declaration. |
| 219 | * remote.c (remote_prepare_to_store): Call regcache_raw_update. |
| 220 | |
| 221 | 2017-02-26 Jan Kratochvil <jan.kratochvil@redhat.com> |
| 222 | |
| 223 | * dwarf2read.c (create_debug_type_hash_table): Initialize |
| 224 | header.signature and header.type_offset_in_tu. |
| 225 | |
| 226 | 2017-02-24 Pedro Alves <palves@redhat.com> |
| 227 | |
| 228 | * symtab.c (make_file_symbol_completion_list_1): Use |
| 229 | add_symtab_completions. |
| 230 | |
| 231 | 2017-02-24 Alan Hayward <alan.hayward@arm.com> |
| 232 | |
| 233 | * stack.c (frame_info): Use frame_unwind_register_value to avoid buf. |
| 234 | |
| 235 | 2017-02-24 Alan Hayward <alan.hayward@arm.com> |
| 236 | |
| 237 | * i386-tdep.c (i386_pseudo_register_read_into_value): Use |
| 238 | I386_MAX_REGISTER_SIZE. |
| 239 | (i386_pseudo_register_write): Likewise. |
| 240 | (i386_process_record): Likewise. |
| 241 | * i387-tdep.c (i387_supply_xsave): Likewise. |
| 242 | * m68k-linux-nat.c (fetch_register): Use M68K_MAX_REGISTER_SIZE. |
| 243 | (store_register): Likewise. |
| 244 | |
| 245 | 2017-02-23 Pedro Alves <palves@redhat.com> |
| 246 | |
| 247 | * ada-lang.c: Include "common/function-view.h". |
| 248 | (ada_iterate_over_symbols): Adjust to use function_view as |
| 249 | callback type. |
| 250 | (struct add_partial_datum, ada_complete_symbol_matcher): Delete. |
| 251 | (ada_make_symbol_completion_list): Use a lambda. |
| 252 | (ada_exc_search_name_matches): Delete. |
| 253 | (name_matches_regex): New. |
| 254 | (ada_add_global_exceptions): Use a lambda and name_matches_regex. |
| 255 | * compile/compile-c-support.c: Include "common/function-view.h". |
| 256 | (print_one_macro): Change prototype to accept a ui_file pointer. |
| 257 | (write_macro_definitions): Use a lambda. |
| 258 | * dwarf2read.c: Include "common/function-view.h". |
| 259 | (dw2_map_expand_apply, dw2_map_symtabs_matching_filename) |
| 260 | (dw2_expand_symtabs_matching): Adjust to use function_view as |
| 261 | callback type. |
| 262 | * language.h: Include "common/function-view.h". |
| 263 | (struct language_defn) <la_iterate_over_symbols>: Adjust to use |
| 264 | function_view as callback type. |
| 265 | (LA_ITERATE_OVER_SYMBOLS): Remove DATA parameter. |
| 266 | * linespec.c: Include "common/function-view.h". |
| 267 | (collect_info::add_symbol): New method. |
| 268 | (struct symbol_and_data_callback, iterate_inline_only, struct |
| 269 | symbol_matcher_data, iterate_name_matcher): Delete. |
| 270 | (iterate_over_all_matching_symtabs): Adjust to use function_view |
| 271 | as callback type and lambdas. |
| 272 | (iterate_over_file_blocks): Adjust to use function_view as |
| 273 | callback type. |
| 274 | (decode_compound_collector): Now a class with private fields. |
| 275 | (decode_compound_collector::release_symbols): New method. |
| 276 | (collect_one_symbol): Rename to... |
| 277 | (decode_compound_collector::operator()): ... this and adjust. |
| 278 | (lookup_prefix_sym): decode_compound_collector construction bits |
| 279 | move to decode_compound_collector ctor. Pass the |
| 280 | decode_compound_collector object directly as callback. Remove |
| 281 | cleanups and use decode_compound_collector::release_symbols |
| 282 | instead. |
| 283 | (symtab_collector): Now a class with private fields. |
| 284 | (symtab_collector::release_symtabs): New method. |
| 285 | (add_symtabs_to_list): Rename to... |
| 286 | (symtab_collector::operator()): ... this and adjust. |
| 287 | (collect_symtabs_from_filename): symtab_collector construction |
| 288 | bits move to symtab_collector ctor. Pass the symtab_collector |
| 289 | object directly as callback. Remove cleanups and use |
| 290 | symtab_collector::release_symtabs instead. |
| 291 | (collect_symbols): Delete. |
| 292 | (add_matching_symbols_to_info): Use lambdas. |
| 293 | * macrocmd.c (print_macro_callback): Delete. |
| 294 | (info_macro_command): Use a lambda. |
| 295 | (info_macros_command): Pass print_macro_definition as callable |
| 296 | directly. |
| 297 | (print_one_macro): Remove 'ignore' parameter. |
| 298 | (macro_list_command): Adjust. |
| 299 | * macrotab.c (macro_for_each_data::fn): Now a function_view. |
| 300 | (macro_for_each_data::user_data): Delete field. |
| 301 | (foreach_macro): Adjust to call the function_view. |
| 302 | (macro_for_each): Adjust to use function_view as callback type. |
| 303 | (foreach_macro_in_scope): Adjust to call the function_view. |
| 304 | (macro_for_each_in_scope): Adjust to use function_view as callback |
| 305 | type. |
| 306 | * macrotab.h: Include "common/function-view.h". |
| 307 | (macro_callback_fn): Declare a prototype instead of a pointer. |
| 308 | Remove "user_data" parameter. |
| 309 | (macro_for_each, macro_for_each_in_scope): Adjust to use |
| 310 | function_view as callback type. |
| 311 | * psymtab.c (partial_map_expand_apply) |
| 312 | (psym_map_symtabs_matching_filename, recursively_search_psymtabs): |
| 313 | Adjust to use function_view as callback type and to return bool. |
| 314 | (psym_expand_symtabs_matching): Adjust to use function_view as |
| 315 | callback types. |
| 316 | * symfile-debug.c (debug_qf_map_symtabs_matching_filename): Adjust |
| 317 | to use function_view as callback type and to return bool. |
| 318 | (debug_qf_expand_symtabs_matching): Adjust to use function_view as |
| 319 | callback types. |
| 320 | * symfile.c (expand_symtabs_matching): Adjust to use function_view |
| 321 | as callback types. |
| 322 | * symfile.h: Include "common/function-view.h". |
| 323 | (expand_symtabs_file_matcher_ftype) |
| 324 | (expand_symtabs_symbol_matcher_ftype) |
| 325 | (expand_symtabs_exp_notify_ftype): Remove "data" parameter and |
| 326 | return bool. |
| 327 | (quick_symbol_functions::map_symtabs_matching_filename) |
| 328 | (quick_symbol_functions::expand_symtabs_matching): Adjust to use |
| 329 | function_view as callback type and return bool. |
| 330 | (expand_symtabs_matching): Adjust to use function_view as callback |
| 331 | type. |
| 332 | (maintenance_expand_name_matcher) |
| 333 | (maintenance_expand_file_matcher): Delete. |
| 334 | (maintenance_expand_symtabs): Use lambdas. |
| 335 | * symtab.c (iterate_over_some_symtabs): Adjust to use |
| 336 | function_view as callback types and return bool. |
| 337 | (iterate_over_symtabs): Likewise. Use unique_xmalloc_ptr instead |
| 338 | of a cleanup. |
| 339 | (lookup_symtab_callback): Delete. |
| 340 | (lookup_symtab): Use a lambda. |
| 341 | (iterate_over_symbols): Adjust to use function_view as callback |
| 342 | type. |
| 343 | (struct search_symbols_data, search_symbols_file_matches) |
| 344 | (search_symbols_name_matches): Delete. |
| 345 | (search_symbols): Use a pair of lambdas. |
| 346 | (struct add_name_data, add_macro_name, symbol_completion_matcher) |
| 347 | (symtab_expansion_callback): Delete. |
| 348 | (default_make_symbol_completion_list_break_on_1): Use lambdas. |
| 349 | * symtab.h: Include "common/function-view.h". |
| 350 | (iterate_over_some_symtabs): Adjust to use function_view as |
| 351 | callback type and return bool. |
| 352 | (iterate_over_symtabs): Adjust to use function_view as callback |
| 353 | type. |
| 354 | (symbol_found_callback_ftype): Remove 'data' parameter and return |
| 355 | bool. |
| 356 | (iterate_over_symbols): Adjust to use function_view as callback |
| 357 | type. |
| 358 | |
| 359 | 2017-02-23 Pedro Alves <palves@redhat.com> |
| 360 | |
| 361 | * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS): New. |
| 362 | (%.o) <unittests/%.c>: New pattern. |
| 363 | * configure.ac ($development): Add $(SUBDIR_UNITTESTS_OBS) to |
| 364 | CONFIG_OBS, and $(SUBDIR_UNITTESTS_SRCS) to CONFIG_SRCS. |
| 365 | * common/function-view.h: New file. |
| 366 | * unittests/function-view-selftests.c: New file. |
| 367 | * configure: Regenerate. |
| 368 | |
| 369 | 2017-02-23 Simon Marchi <simon.marchi@ericsson.com> |
| 370 | |
| 371 | * bsd-uthread.c (bsd_uthread_thread_alive): Use ptid instead of |
| 372 | inferior_ptid. |
| 373 | * go32-nat.c (go32_thread_alive): Likewise. |
| 374 | |
| 375 | 2017-02-23 Yao Qi <yao.qi@linaro.org> |
| 376 | |
| 377 | * varobj-iter.h (varobj_iter_delete): Call xfree instead of |
| 378 | delete. |
| 379 | |
| 380 | 2017-02-23 Yao Qi <yao.qi@linaro.org> |
| 381 | |
| 382 | * varobj.c (varobj_clear_saved_item): Use delete instead of |
| 383 | xfree. |
| 384 | (update_dynamic_varobj_children): Likewise. |
| 385 | |
| 386 | 2017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com> |
| 387 | |
| 388 | * dwarf2read.c (dwarf2_record_block_ranges): Add forgotten BASEADDR. |
| 389 | |
| 390 | 2017-02-21 Simon Marchi <simon.marchi@ericsson.com> |
| 391 | |
| 392 | * common/enum-flags.h (enum_flags::enum_flags): Initialize |
| 393 | m_enum_value to 0 in default constructor. |
| 394 | |
| 395 | 2017-02-21 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com> |
| 396 | |
| 397 | * rs6000-tdep.c (LOAD_AND_RESERVE_MASK): Rename from LWARX_MASK. |
| 398 | (STORE_CONDITIONAL_MASK): Rename from STWCX_MASK. |
| 399 | (LBARX_INSTRUCTION, LHARX_INSTRUCTION, LQARX_INSTRUCTION, |
| 400 | STBCX_INSTRUCTION, STHCX_INSTRUCTION, STQCX_INSTRUCTION): New defines. |
| 401 | (IS_LOAD_AND_RESERVE_INSN, IS_STORE_CONDITIONAL_INSN): New macros. |
| 402 | (ppc_displaced_step_copy_insn): Use IS_LOAD_AND_RESERVE_INSN. |
| 403 | (ppc_deal_with_atomic_sequence): Use IS_LOAD_AND_RESERVE_INSN and |
| 404 | IS_STORE_CONDITIONAL_INSN. |
| 405 | |
| 406 | 2017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com> |
| 407 | |
| 408 | * dwarf2_rnglists_process: Initialize range_beginning and range_end. |
| 409 | |
| 410 | 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com> |
| 411 | |
| 412 | * NEWS (Changes since GDB 7.12): Add DWARF-5. |
| 413 | |
| 414 | 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com> |
| 415 | |
| 416 | * dwarf2read.c (skip_one_die, read_attribute_value) |
| 417 | (dwarf2_const_value_attr, dump_die_shallow) |
| 418 | (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes) |
| 419 | (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_data16. |
| 420 | |
| 421 | 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com> |
| 422 | |
| 423 | * dwarf2read.c (read_file_scope): Rename DW_MACRO_GNU_*. |
| 424 | (dwarf_parse_macro_header): Accept DWARF version 5. |
| 425 | (dwarf_decode_macro_bytes, dwarf_decode_macros): Rename DW_MACRO_GNU_*. |
| 426 | |
| 427 | 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com> |
| 428 | |
| 429 | * block.c (call_site_for_pc): Rename DW_OP_GNU_*, DW_TAG_GNU_* and |
| 430 | DW_AT_GNU_*. |
| 431 | * common/common-exceptions.h (enum errors): Likewise. |
| 432 | * dwarf2-frame.c (class dwarf_expr_executor): Likewise. |
| 433 | * dwarf2expr.c (dwarf_block_to_dwarf_reg) |
| 434 | (dwarf_expr_context::execute_stack_op): Likewise. |
| 435 | * dwarf2expr.h (struct dwarf_expr_context, struct dwarf_expr_piece): |
| 436 | Likewise. |
| 437 | * dwarf2loc.c (dwarf_evaluate_loc_desc::get_base_type) |
| 438 | (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value) |
| 439 | (show_entry_values_debug, call_site_to_target_addr) |
| 440 | (func_addr_to_tail_call_list, func_verify_no_selftailcall) |
| 441 | (dwarf_expr_reg_to_entry_parameter, dwarf_entry_parameter_to_value) |
| 442 | (entry_data_value_free_closure, value_of_dwarf_reg_entry) |
| 443 | (value_of_dwarf_block_entry, indirect_pieced_value) |
| 444 | (symbol_needs_eval_context::push_dwarf_reg_entry_value): |
| 445 | (disassemble_dwarf_expression): Likewise. |
| 446 | * dwarf2read.c (process_die, inherit_abstract_dies) |
| 447 | (read_call_site_scope): Likewise. |
| 448 | * gdbtypes.h (struct func_type, struct call_site_parameter) |
| 449 | (struct call_site): Likewise. |
| 450 | * stack.c (read_frame_arg): Likewise. |
| 451 | * std-operator.def (OP_VAR_ENTRY_VALUE): Likewise. |
| 452 | |
| 453 | 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com> |
| 454 | |
| 455 | * defs.h (read_unsigned_leb128): New declaration. |
| 456 | * dwarf2loc.c (decode_debug_loclists_addresses): New function. |
| 457 | (decode_debug_loc_dwo_addresses): Update DEBUG_LOC_* to DW_LLE_*. |
| 458 | (dwarf2_find_location_expression): Call also |
| 459 | decode_debug_loclists_addresses. Handle DWARF-5 ULEB128 length. |
| 460 | * dwarf2loc.h (dwarf2_version): New declaration. |
| 461 | * dwarf2read.c (struct dwarf2_per_objfile): Add loclists, line_str, |
| 462 | rnglists. |
| 463 | (dwarf2_elf_names): Add .debug_loclists, .debug_line_str, |
| 464 | .debug_rnglists. |
| 465 | (struct dwop_section_names): Add loclists_dwo. |
| 466 | (dwop_section_names): Add .debug_loclists.dwo. |
| 467 | (struct comp_unit_head): Add unit_type, signature, type_offset_in_tu. |
| 468 | (struct dwarf2_per_cu_data): Add dwarf_version. |
| 469 | (struct dwo_sections): Add loclists. |
| 470 | (struct attr_abbrev): Add implicit_const. |
| 471 | (read_indirect_line_string): New declaration. |
| 472 | (read_unsigned_leb128): Delete declaration. |
| 473 | (rcuh_kind): New definition. |
| 474 | (read_and_check_comp_unit_head): Change parameter |
| 475 | is_debug_types_section to section_kind. |
| 476 | (dwarf2_locate_sections): Handle loclists, line_str and rnglists. |
| 477 | (read_comp_unit_head): Change parameter abfd to section, add parameter |
| 478 | section_kind. Handle DWARF-5. |
| 479 | (error_check_comp_unit_head): Accept also DWARF version 5. |
| 480 | (read_and_check_comp_unit_head): Change parameter |
| 481 | is_debug_types_section to section_kind. |
| 482 | (read_and_check_type_unit_head): Delete function. |
| 483 | (read_abbrev_offset): Handle DWARF-5. |
| 484 | (create_debug_type_hash_table): Add parameter section_kind. Process |
| 485 | only DW_UT_type. Use signature and type_offset_in_tu from struct |
| 486 | comp_unit_head. |
| 487 | (create_debug_types_hash_table): Update create_debug_type_hash_table |
| 488 | caller. |
| 489 | (create_all_type_units): Call create_debug_type_hash_table. |
| 490 | (read_cutu_die_from_dwo, init_cutu_and_read_dies): Change |
| 491 | read_and_check_type_unit_head caller to read_and_check_comp_unit_head |
| 492 | caller. |
| 493 | (skip_one_die): Handle DW_FORM_implicit_const. |
| 494 | (dwarf2_rnglists_process): New function. |
| 495 | (dwarf2_ranges_process): Call dwarf2_rnglists_process for DWARF-5. |
| 496 | (abbrev_table_read_table): Handle DW_FORM_implicit_const. |
| 497 | (read_attribute_value): Handle DW_FORM_implicit_const, |
| 498 | DW_FORM_line_strp. |
| 499 | (read_attribute): Handle DW_FORM_implicit_const. |
| 500 | (read_indirect_string_at_offset_from): New function from |
| 501 | read_indirect_string_at_offset. |
| 502 | (read_indirect_string_at_offset): Call |
| 503 | read_indirect_string_at_offset_from. |
| 504 | (read_indirect_line_string_at_offset): New function. |
| 505 | (read_indirect_string): New function comment. |
| 506 | (read_indirect_line_string): New function. |
| 507 | (read_unsigned_leb128): Make it global. |
| 508 | (dwarf2_string_attr): Handle DWARF-5. |
| 509 | (add_include_dir_stub, read_formatted_entries): New functions. |
| 510 | (dwarf_decode_line_header, dump_die_shallow, cu_debug_loc_section): |
| 511 | Handle DWARF-5. |
| 512 | (per_cu_header_read_in): Update read_comp_unit_head caller. |
| 513 | (dwarf2_version): New function. |
| 514 | * symfile.h (struct dwarf2_debug_sections): Add loclists, line_str and |
| 515 | rnglists. |
| 516 | * xcoffread.c (dwarf2_xcoff_names): Update struct dwarf2_debug_sections |
| 517 | fields. |
| 518 | |
| 519 | 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com> |
| 520 | |
| 521 | * dwarf2read.c (abbrev_table_read_table): Read the data only once. |
| 522 | |
| 523 | 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com> |
| 524 | |
| 525 | * dwarf2read.c (dwarf2_ranges_process): New function from |
| 526 | dwarf2_ranges_read. |
| 527 | (dwarf2_ranges_read, dwarf2_record_block_ranges): Use |
| 528 | dwarf2_ranges_process. |
| 529 | |
| 530 | 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com> |
| 531 | |
| 532 | * dwarf2read.c (create_debug_type_hash_table): New function from |
| 533 | create_debug_types_hash_table. |
| 534 | (create_debug_types_hash_table): Call create_debug_type_hash_table. |
| 535 | (create_all_type_units, open_and_init_dwo_file): Update |
| 536 | create_debug_types_hash_table callers. |
| 537 | |
| 538 | 2017-02-20 Sergio Durigan Junior <sergiodj@redhat.com> |
| 539 | |
| 540 | PR gdb/16188 |
| 541 | * fork-child.c (trace_start_error): Fix thinko. va_end should |
| 542 | refer to 'ap', not 'args'. |
| 543 | |
| 544 | 2017-02-20 Sergio Durigan Junior <sergiodj@redhat.com> |
| 545 | Pedro Alves <palves@redhat.com> |
| 546 | |
| 547 | PR gdb/16188 |
| 548 | * darwin-nat.c (darwin_ptrace_me): Check if calls to system |
| 549 | calls succeeded. |
| 550 | * fork-child.c (trace_start_error): New function. |
| 551 | (trace_start_error_with_name): Likewise. |
| 552 | * gnu-nat.c (gnu_ptrace_me): Check if call to PTRACE succeeded. |
| 553 | * inf-ptrace.c (inf_ptrace_me): Likewise. |
| 554 | * inferior.h (trace_start_error): New prototype. |
| 555 | (trace_start_error_with_name): Likewise. |
| 556 | |
| 557 | 2017-02-15 Sergio Durigan Junior <sergiodj@redhat.com> |
| 558 | |
| 559 | PR gdb/21164 |
| 560 | * psymtab.c (maintenance_print_psymbols): Verify if 'argv' is not |
| 561 | NULL before using it. |
| 562 | * symmisc.c (maintenance_print_symbols): Likewise. |
| 563 | (maintenance_print_msymbols): Likewise. |
| 564 | |
| 565 | 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com> |
| 566 | |
| 567 | * NEWS: Add record Python bindings entry. |
| 568 | |
| 569 | 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com> |
| 570 | |
| 571 | * Makefile.in (SUBDIR_PYTHON_OBS): Add py-record-btrace.o, |
| 572 | py-record-full.o. |
| 573 | (SUBDIR_PYTHON_SRCS): Add py-record-btrace.c, py-record-full.c. |
| 574 | * python/py-record-btrace.c, python/py-record-btrace.h, |
| 575 | python/py-record-full.c, python/py-record-full.h: New file. |
| 576 | * python/py-record.c: Add include for py-record-btrace.h and |
| 577 | py-record-full.h. |
| 578 | (recpy_method, recpy_format, recpy_goto, recpy_replay_position, |
| 579 | recpy_instruction_history, recpy_function_call_history, recpy_begin, |
| 580 | recpy_end): Use functions from py-record-btrace.c and py-record-full.c. |
| 581 | * python/python-internal.h (PyInt_FromSsize_t, PyInt_AsSsize_t): |
| 582 | New definition. |
| 583 | (gdbpy_initialize_btrace): New export. |
| 584 | * python/python.c (_initialize_python): Add gdbpy_initialize_btrace. |
| 585 | |
| 586 | 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com> |
| 587 | |
| 588 | * Makefile.in (SUBDIR_PYTHON_OBS): Add python/py-record.o. |
| 589 | (SUBDIR_PYTHON_SRCS): Add python/py-record.c. |
| 590 | * python/py-record.c: New file. |
| 591 | * python/python-internal.h (gdbpy_start_recording, |
| 592 | gdbpy_current_recording, gdpy_stop_recording, |
| 593 | gdbpy_initialize_record): New export. |
| 594 | * python/python.c (_initialize_python): Add gdbpy_initialize_record. |
| 595 | (python_GdbMethods): Add gdbpy_start_recording, |
| 596 | gdbpy_current_recording and gdbpy_stop_recording. |
| 597 | |
| 598 | 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com> |
| 599 | |
| 600 | * record-btrace.c (record_btrace_record_method): New function. |
| 601 | (init_record_btrace_ops): Initialize to_record_method. |
| 602 | * record-full.c (record_full_record_method): New function. |
| 603 | (init_record_full_ops, init_record_full_core_ops): Add |
| 604 | record_full_record_method. |
| 605 | * record.h (enum record_method): New enum. |
| 606 | * target-debug.h (target_debug_print_enum_record_method: New define. |
| 607 | * target-delegates.c: Regenerate. |
| 608 | * target.c (target_record_method): New function. |
| 609 | * target.h: Include record.h. |
| 610 | (struct target_ops) <to_record_method>: New field. |
| 611 | (target_record_method): New export. |
| 612 | |
| 613 | 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com> |
| 614 | |
| 615 | * record.h (record_start, record_stop): New export. |
| 616 | * record.c (record_start, record_stop): New function. |
| 617 | |
| 618 | 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com> |
| 619 | |
| 620 | * btrace.c (btrace_fetch): Copy function call segments pointer |
| 621 | into a vector. |
| 622 | (btrace_clear): Clear the vector. |
| 623 | (btrace_find_insn_by_number): Use binary search to find the correct |
| 624 | function call segment. |
| 625 | * btrace.h (brace_fun_p): New typedef. |
| 626 | (struct btrace_thread_info) <functions>: New field. |
| 627 | |
| 628 | 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com> |
| 629 | |
| 630 | * record-btrace.c (btrace_ui_out_decode_error): Move most of it ... |
| 631 | * btrace.c (btrace_decode_error): ... here. New function. |
| 632 | * btrace.h (btrace_decode_error): New export. |
| 633 | |
| 634 | 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com> |
| 635 | |
| 636 | * btrace.c (ftrace_call_num_insn, btrace_insn_get_error): New function. |
| 637 | (ftrace_new_function, btrace_insn_number, btrace_insn_cmp, |
| 638 | btrace_find_insn_by_number): Remove special case for gaps. |
| 639 | * btrace.h (btrace_insn_get_error): New export. |
| 640 | (btrace_insn_number, btrace_find_insn_by_number): Adjust comment. |
| 641 | * record-btrace.c (btrace_insn_history): Print number for gaps. |
| 642 | (record_btrace_info, record_btrace_goto): Handle gaps. |
| 643 | |
| 644 | 2017-02-14 Tom Tromey <tom@tromey.com> |
| 645 | |
| 646 | PR python/13598: |
| 647 | * python/python.c (gdbpy_before_prompt_hook): Emit before_prompt |
| 648 | event. |
| 649 | * python/py-evts.c (gdbpy_initialize_py_events): Add |
| 650 | before_prompt registry. |
| 651 | * python/py-events.h (events_object) <before_prompt>: New field. |
| 652 | |
| 653 | 2017-02-14 Markus Metzger <markus.t.metzger@intel.com> |
| 654 | |
| 655 | * btrace.c (ftrace_new_switch): Preserve up link and flags. |
| 656 | |
| 657 | 2017-02-13 Luis Machado <lgustavo@codesourcery.com> |
| 658 | |
| 659 | * symfile (_initialize_symfile): Add usage text to the load command's |
| 660 | help text. |
| 661 | |
| 662 | 2017-02-10 Simon Marchi <simon.marchi@ericsson.com> |
| 663 | |
| 664 | * utils.c (defaulted_query): Don't query on secondary UIs. |
| 665 | |
| 666 | 2017-02-10 Tom Tromey <tom@tromey.com> |
| 667 | |
| 668 | * rust-lang.c (rust_get_disr_info): Remove unused variable. |
| 669 | |
| 670 | 2017-02-10 Tom Tromey <tom@tromey.com> |
| 671 | |
| 672 | * python/py-value.c (valpy_richcompare_throw): Remove unnecessary |
| 673 | "cleanup" local. |
| 674 | * python/py-type.c (typy_legacy_template_argument): Remove |
| 675 | unnecessary "cleanup" local. |
| 676 | |
| 677 | 2017-02-10 Tom Tromey <tom@tromey.com> |
| 678 | |
| 679 | * python/python.c (do_start_initialization): New function, from |
| 680 | _initialize_python. |
| 681 | (_initialize_python): Call do_start_initialization. |
| 682 | * python/py-linetable.c (ltpy_iternext): Use explicit returns, not |
| 683 | goto. |
| 684 | |
| 685 | 2017-02-10 Tom Tromey <tom@tromey.com> |
| 686 | |
| 687 | * python/py-prettyprint.c (pretty_print_one_value): Use |
| 688 | gdbpy_ref. |
| 689 | |
| 690 | 2017-02-10 Tom Tromey <tom@tromey.com> |
| 691 | |
| 692 | * python/py-cmd.c (cmdpy_destroyer): Use gdbpy_ref. |
| 693 | * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Use |
| 694 | gdbpy_ref. |
| 695 | * python/py-type.c (field_new): Use gdbpy_ref. |
| 696 | * python/py-symtab.c (symtab_and_line_to_sal_object): Use |
| 697 | gdbpy_ref. |
| 698 | * python/py-progspace.c (pspy_new): Use gdbpy_ref. |
| 699 | (py_free_pspace): Likewise. |
| 700 | (pspace_to_pspace_object): Likewise. |
| 701 | * python/py-objfile.c (objfpy_new): Use gdbpy_ref. |
| 702 | (py_free_objfile): Likewise. |
| 703 | (objfile_to_objfile_object): Likewise. |
| 704 | * python/py-inferior.c (delete_thread_object): Use |
| 705 | gdbpy_ref. |
| 706 | (infpy_read_memory): Likewise. |
| 707 | (py_free_inferior): Likewise. |
| 708 | * python/py-evtregistry.c (create_eventregistry_object): Use |
| 709 | gdbpy_ref. |
| 710 | * python/py-event.c (create_event_object): Use gdbpy_ref. |
| 711 | |
| 712 | 2017-02-10 Tom Tromey <tom@tromey.com> |
| 713 | |
| 714 | * python/py-ref.h (gdbpy_ref_policy): Now a template. |
| 715 | (gdbpy_ref): Now a template; allow subclasses of PyObject to be |
| 716 | used. |
| 717 | * python/py-arch.c, python/py-bpevent.c, python/py-breakpoint.c, |
| 718 | python/py-cmd.c, python/py-continueevent.c, python/py-event.c, |
| 719 | python/py-exitedevent.c, python/py-finishbreakpoint.c, |
| 720 | python/py-framefilter.c, python/py-function.c, |
| 721 | python/py-inferior.c, python/py-infevents.c, |
| 722 | python/py-linetable.c, python/py-newobjfileevent.c, |
| 723 | python/py-param.c, python/py-prettyprint.c, python/py-ref.h, |
| 724 | python/py-signalevent.c, python/py-stopevent.c, |
| 725 | python/py-symbol.c, python/py-threadevent.c, python/py-type.c, |
| 726 | python/py-unwind.c, python/py-utils.c, python/py-value.c, |
| 727 | python/py-varobj.c, python/py-xmethods.c, python/python.c, |
| 728 | varobj.c: Change gdbpy_ref to gdbpy_ref<>. |
| 729 | |
| 730 | 2017-02-10 Tom Tromey <tom@tromey.com> |
| 731 | |
| 732 | * ui-out.h (ui_out_emit_type): New class. |
| 733 | (ui_out_emit_tuple, ui_out_emit_list): New typedefs. |
| 734 | * python/py-framefilter.c (py_print_single_arg): Use gdb::optional |
| 735 | and ui_out_emit_tuple. |
| 736 | (enumerate_locals): Likewise. |
| 737 | (py_mi_print_variables, py_print_locals, py_print_args): Use |
| 738 | ui_out_emit_list. |
| 739 | (py_print_frame): Use gdb::optional, ui_out_emit_tuple, |
| 740 | ui_out_emit_list. |
| 741 | * common/gdb_optional.h: New file. |
| 742 | |
| 743 | 2017-02-10 Martin Galvan <martingalvan@sourceware.org> |
| 744 | |
| 745 | * MAINTAINERS (Write After Approval): Update my e-mail address. |
| 746 | |
| 747 | 2017-02-10 Martin Galvan <martingalvan@sourceware.org> |
| 748 | |
| 749 | PR gdb/21122 |
| 750 | * breakpoint.c (_initialize_breakpoint): Update the help description |
| 751 | of the 'commands' command to indicate that it takes a list argument. |
| 752 | |
| 753 | 2017-02-09 Simon Marchi <simon.marchi@ericsson.com> |
| 754 | |
| 755 | * interps.c (current_interp_set_logging): Remove "return". |
| 756 | |
| 757 | 2017-02-09 Gary Benson <gbenson@redhat.com> |
| 758 | |
| 759 | * symtab.c (add_symtab_completions): Prevent NULL pointer |
| 760 | dereference. |
| 761 | |
| 762 | 2017-02-08 Pedro Alves <palves@redhat.com> |
| 763 | |
| 764 | * interps.c (interp::interp): Remove reference to quiet_p. |
| 765 | (interp_set): Make static. Remove dead "Switching to" output |
| 766 | code. |
| 767 | (interp_quiet_p, interp_set_quiet): Delete. |
| 768 | (interpreter_exec_cmd): Don't set the interpreter quiet. |
| 769 | * interps.h (interp_quiet_p): Make static. |
| 770 | (class interp) <quiet_p>: Remove field |
| 771 | |
| 772 | 2017-02-08 Jerome Guitton <guitton@adacore.com> |
| 773 | |
| 774 | * cli/cli-decode.c (find_command_name_length): Make it extern. |
| 775 | * cli/cli-decode.h (find_command_name_length): Declare. |
| 776 | * cli/cli-script.c (command_name_equals, line_first_arg): |
| 777 | New functions. |
| 778 | (process_next_line): Use cli-decode to parse command names. |
| 779 | (build_command_line): Make args a constant pointer. |
| 780 | |
| 781 | 2017-02-08 Jerome Guitton <guitton@adacore.com> |
| 782 | |
| 783 | * cli-decode.c (lookup_cmd_1, lookup_cmd_composition): |
| 784 | Remove case-insensitive search. |
| 785 | |
| 786 | 2017-02-07 Jose E. Marchesi <jose.marchesi@oracle.com> |
| 787 | |
| 788 | * sparc-tdep.c (sparc32_gdbarch_init): Do not place a + operator |
| 789 | at the end of the line. Avoids an ARI warning. |
| 790 | |
| 791 | 2017-02-06 Luis Machado <lgustavo@codesourcery.com> |
| 792 | |
| 793 | * NEWS: Mention support for record/replay of Intel 64 rdrand and |
| 794 | rdseed instructions. |
| 795 | i386-tdep.c (i386_process_record): Handle Intel 64 rdrand and rseed. |
| 796 | |
| 797 | 2017-02-06 Ivo Raisr <ivo.raisr@oracle.com> |
| 798 | |
| 799 | PR tdep/20936 |
| 800 | Provide and use sparc32 and sparc64 target description XML files. |
| 801 | * features/sparc/sparc32-cp0.xml, features/sparc/sparc32-cpu.xml, |
| 802 | features/sparc/sparc32-fpu.xml: New files for sparc 32-bit. |
| 803 | * features/sparc/sparc64-cp0.xml, features/sparc/sparc64-cpu.xml, |
| 804 | features/sparc/sparc64-fpu.xml: New files for sparc 64-bit. |
| 805 | * features/sparc/sparc32-solaris.xml: New file. |
| 806 | * features/sparc/sparc64-solaris.xml: New file. |
| 807 | * features/sparc/sparc32-solaris.c: Generated. |
| 808 | * features/sparc/sparc64-solaris.c: Generated. |
| 809 | * sparc-tdep.h: Account for differences in target descriptions. |
| 810 | * sparc-tdep.c (sparc32_register_name): Use target provided registers. |
| 811 | (sparc32_register_type): Use target provided registers. |
| 812 | (validate_tdesc_registers): New function. |
| 813 | (sparc32_gdbarch_init): Use tdesc_has_registers. |
| 814 | Set pseudoregister functions. |
| 815 | * sparc64-tdep.c (sparc64_register_name): Use target provided registers. |
| 816 | (sparc64_register_type): Use target provided registers. |
| 817 | (sparc64_init_abi): Set pseudoregister functions. |
| 818 | |
| 819 | 2017-02-03 Tom Tromey <tom@tromey.com> |
| 820 | |
| 821 | PR rust/21097: |
| 822 | * rust-lang.c (rust_print_type) <TYPE_CODE_UNION>: Handle enums |
| 823 | with a single member. |
| 824 | |
| 825 | 2017-02-03 Pedro Alves <palves@redhat.com> |
| 826 | |
| 827 | * cli/cli-interp.c (cli_interp_base::cli_interp_base) |
| 828 | (cli_interp_base::~cli_interp_base): New. |
| 829 | (cli_interp): New struct. |
| 830 | (as_cli_interp): Cast the interp itself to cli_interp. |
| 831 | (cli_interpreter_pre_command_loop): Rename to ... |
| 832 | (cli_interp_base::pre_command_loop): ... this. Remove 'self' |
| 833 | parameter. |
| 834 | (cli_interpreter_init): Rename to ... |
| 835 | (cli_interp::init): ... this. Remove 'self' parameter. Use |
| 836 | boolean. Make extern. |
| 837 | (cli_interpreter_resume): Rename to ... |
| 838 | (cli_interp::resume): ... this. Remove 'data' parameter. Make |
| 839 | extern. |
| 840 | (cli_interpreter_suspend): Rename to ... |
| 841 | (cli_interp::suspend): ... this. Remove 'data' parameter. Make |
| 842 | extern. |
| 843 | (cli_interpreter_exec): Rename to ... |
| 844 | (cli_interp::exec): ... this. Remove 'data' parameter. Make |
| 845 | extern. |
| 846 | (cli_interpreter_supports_command_editing): Rename to ... |
| 847 | (cli_interp_base::supports_command_editing): ... this. Remove |
| 848 | 'interp' parameter. Make extern. |
| 849 | (cli_ui_out): Rename to ... |
| 850 | (cli_interp::interp_ui_out): ... this. Remove 'interp' parameter. |
| 851 | Make extern. |
| 852 | (cli_set_logging): Rename to ... |
| 853 | (cli_interp_base::set_logging): ... this. Remove 'interp' |
| 854 | parameter. Make extern. |
| 855 | (cli_interp_procs): Delete. |
| 856 | (cli_interp_factory): Adjust to use "new". |
| 857 | * cli/cli-interp.h: Include "interps.h". |
| 858 | (struct cli_interp_base): New struct. |
| 859 | * interps.c (struct interp): Delete. Fields moved to interps.h. |
| 860 | (interp_new): Delete. |
| 861 | (interp::interp, interp::~interp): New. |
| 862 | (interp_set): Use bool, and return void. Assume the interpreter |
| 863 | has suspend, init and resume methods, and that the all return |
| 864 | void. |
| 865 | (set_top_level_interpreter): interp_set returns void. |
| 866 | (interp_ui_out): Adapt. |
| 867 | (current_interp_set_logging): Adapt. |
| 868 | (interp_data): Delete. |
| 869 | (interp_pre_command_loop, interp_supports_command_editing): Adapt. |
| 870 | (interp_exec): Adapt. |
| 871 | (top_level_interpreter_data): Delete. |
| 872 | * interps.h (interp_init_ftype, interp_resume_ftype) |
| 873 | (interp_suspend_ftype, interp_exec_ftype) |
| 874 | (interp_pre_command_loop_ftype, interp_ui_out_ftype): Delete. |
| 875 | (class interp): New. |
| 876 | (interp_new): Delete. |
| 877 | (interp_set): Now returns void. Use bool. |
| 878 | (interp_data, top_level_interpreter_data): Delete. |
| 879 | * mi/mi-common.h: Include interps.h. |
| 880 | (class mi_interp): Inherit from interp. Define a ctor. Declare |
| 881 | init, resume, suspect, exec, interp_ui_out, set_logging and |
| 882 | pre_command_loop methods. |
| 883 | * mi/mi-interp.c (as_mi_interp): Cast the interp itself. |
| 884 | (mi_interpreter_init): Rename to ... |
| 885 | (mi_interp::init): ... this. Remove the 'interp' parameter, use |
| 886 | bool, return void and make extern. Adjust. |
| 887 | (mi_interpreter_resume): ... Rename to ... |
| 888 | (mi_interp::resume): ... this. Remove the 'data' parameter, |
| 889 | return void and make extern. Adjust. |
| 890 | (mi_interpreter_suspend): ... Rename to ... |
| 891 | (mi_interp::suspend): ... this. Remove the 'data' parameter, |
| 892 | return void and make extern. Adjust. |
| 893 | (mi_interpreter_exec): ... Rename to ... |
| 894 | (mi_interp::exec): ... this. Remove the 'data' parameter and make |
| 895 | extern. Adjust. |
| 896 | (mi_interpreter_pre_command_loop): ... Rename to ... |
| 897 | (mi_interp::pre_command_loop): ... this. Remove the 'self' |
| 898 | parameter and make extern. |
| 899 | (mi_on_normal_stop_1): Adjust. |
| 900 | (mi_ui_out): Rename to ... |
| 901 | (mi_interp::interp_ui_out): ... this. Remove the 'interp' |
| 902 | parameter and make extern. Adjust. |
| 903 | (mi_set_logging): Rename to ... |
| 904 | (mi_interp::set_logging): ... this. Remove the 'interp' |
| 905 | parameter and make extern. Adjust. |
| 906 | (mi_interp_procs): Delete. |
| 907 | (mi_interp_factory): Adjust to use 'new'. |
| 908 | * mi/mi-main.c (mi_cmd_gdb_exit, captured_mi_execute_command) |
| 909 | (mi_print_exception, mi_execute_command, mi_load_progress): |
| 910 | Adjust. |
| 911 | * tui/tui-interp.c (tui_interp): New class. |
| 912 | (as_tui_interp): Return a tui_interp pointer. |
| 913 | (tui_on_normal_stop, tui_on_signal_received) |
| 914 | (tui_on_end_stepping_range, tui_on_signal_exited, tui_on_exited) |
| 915 | (tui_on_no_history, tui_on_user_selected_context_changed): Adjust |
| 916 | to use interp::interp_ui_out. |
| 917 | (tui_init): Rename to ... |
| 918 | (tui_interp::init): ... this. Remove the 'self' parameter, use |
| 919 | bool, return void and make extern. Adjust. |
| 920 | (tui_resume): Rename to ... |
| 921 | (tui_interp::resume): ... this. Remove the 'data' parameter, |
| 922 | return void and make extern. Adjust. |
| 923 | (tui_suspend): Rename to ... |
| 924 | (tui_interp::suspend): ... this. Remove the 'data' parameter, |
| 925 | return void and make extern. Adjust. |
| 926 | (tui_ui_out): Rename to ... |
| 927 | (tui_interp::interp_ui_out): ... this. Remove the 'self' |
| 928 | parameter, and make extern. Adjust. |
| 929 | (tui_exec): Rename to ... |
| 930 | (tui_interp::exec): ... this. Remove the 'data' parameter and |
| 931 | make extern. |
| 932 | (tui_interp_procs): Delete. |
| 933 | (tui_interp_factory): Use "new". |
| 934 | |
| 935 | 2017-02-02 Tom Tromey <tom@tromey.com> |
| 936 | |
| 937 | * rust-exp.y (ends_raw_string, space_then_number) |
| 938 | (rust_identifier_start_p): Return bool. |
| 939 | * rust-lang.c (rust_tuple_type_p, rust_underscore_fields) |
| 940 | (rust_tuple_struct_type_p, rust_tuple_variant_type_p) |
| 941 | (rust_slice_type_p, rust_range_type_p, rust_u8_type_p) |
| 942 | (rust_chartype_p): Return bool. |
| 943 | (val_print_struct, rust_print_struct_def, rust_print_type): |
| 944 | Update. |
| 945 | * rust-lang.h (rust_tuple_type_p, rust_tuple_struct_type_p): |
| 946 | Return bool. |
| 947 | |
| 948 | 2017-02-02 Tom Tromey <tom@tromey.com> |
| 949 | |
| 950 | * rust-lang.c: Reindent. |
| 951 | |
| 952 | 2017-02-02 Tom Tromey <tom@tromey.com> |
| 953 | |
| 954 | * rust-lang.h (rust_crate_for_block): Update. |
| 955 | * rust-lang.c (rust_crate_for_block): Return std::string. |
| 956 | (rust_get_disr_info): Use std:;string, not |
| 957 | gdb::unique_xmalloc_ptr. |
| 958 | * rust-exp.y (crate_name): Update. |
| 959 | |
| 960 | 2017-02-02 Pedro Alves <palves@redhat.com> |
| 961 | |
| 962 | * disasm-selftests.c (print_one_insn_test): Move the "verbose" |
| 963 | field out of gdb_disassembler_test and make it static. |
| 964 | |
| 965 | 2017-02-02 Pedro Alves <palves@redhat.com> |
| 966 | |
| 967 | * mi/mi-common.h (struct mi_interp): Delete the mi2_interp, |
| 968 | mi1_interp and mi_interp fields. |
| 969 | |
| 970 | 2017-02-02 Pedro Alves <palves@redhat.com> |
| 971 | |
| 972 | * cli/cli-interp.c (struct saved_output_files, saved_output): |
| 973 | Moved from cli/cli-logging.c. |
| 974 | (cli_set_logging): New function. |
| 975 | (cli_interp_procs): Install cli_set_logging. |
| 976 | * cli/cli-interp.h (make_logging_output, cli_set_logging): |
| 977 | Declare. |
| 978 | * cli/cli-logging.c (struct saved_output_files, saved_output): |
| 979 | Moved to cli/cli-interp.c. |
| 980 | (pop_output_files): Don't save outputs here. |
| 981 | (make_logging_output): New function. |
| 982 | (handle_redirections): Don't build tee nor save previous outputs |
| 983 | here. |
| 984 | * interps.c (current_interp_set_logging): Change prototype. |
| 985 | Assume there's always a set_logging_proc method installed. |
| 986 | * interps.h (interp_set_logging_ftype): Change prototype. |
| 987 | (current_interp_set_logging): Change prototype and adjust comment. |
| 988 | * mi/mi-interp.c (mi_set_logging): Change protototype. Adjust to |
| 989 | use make_logging_output. |
| 990 | * tui/tui-interp.c (tui_interp_procs): Install cli_set_logging. |
| 991 | 2017-02-02 Pedro Alves <palves@redhat.com> |
| 992 | |
| 993 | * cli/cli-logging.c (maybe_warn_already_logging): New factored out |
| 994 | from ... |
| 995 | (set_logging_overwrite): ... here. |
| 996 | (logging_no_redirect_file): Delete. |
| 997 | (set_logging_redirect): Don't handle redirection on the fly. |
| 998 | Instead warn that "logging off" / "logging on" is necessary. |
| 999 | (pop_output_files): Delete references to logging_no_redirect_file. |
| 1000 | (show_logging_command): Always speak in terms of what will happen |
| 1001 | once logging is reenabled. |
| 1002 | |
| 1003 | 2017-02-02 Pedro Alves <palves@redhat.com> |
| 1004 | |
| 1005 | * disasm.h (gdb_pretty_print_disassembler): Tweak intro comment. |
| 1006 | |
| 1007 | 2017-02-02 Pedro Alves <palves@redhat.com> |
| 1008 | |
| 1009 | * disasm.c (gdb_pretty_print_insn): Rename to ... |
| 1010 | (gdb_pretty_print_disassembler::pretty_print_insn): ... this. |
| 1011 | Remove gdbarch parameter. Adapt to clear the object's buffers |
| 1012 | instead of allocating new buffers, and to print using the object's |
| 1013 | gdb_disassembler instead of calling gdb_print_insn. |
| 1014 | (dump_insns): Use gdb_pretty_print_disassembler. |
| 1015 | * disasm.h (gdb_pretty_print_insn): Delete declaration. |
| 1016 | (gdb_pretty_print_disassembler): New class. |
| 1017 | * record-btrace.c (btrace_insn_history): Use |
| 1018 | gdb_pretty_print_disassembler. |
| 1019 | |
| 1020 | 2017-02-02 Pedro Alves <palves@redhat.com> |
| 1021 | |
| 1022 | * ada-lang.c (type_as_string): Use string_file. |
| 1023 | * ada-valprint.c (ada_print_floating): Use string_file. |
| 1024 | * ada-varobj.c (ada_varobj_scalar_image) |
| 1025 | (ada_varobj_get_value_image): Use string_file. |
| 1026 | * aix-thread.c (aix_thread_extra_thread_info): Use string_file. |
| 1027 | * arm-tdep.c (_initialize_arm_tdep): Use string_printf. |
| 1028 | * breakpoint.c (update_inserted_breakpoint_locations) |
| 1029 | (insert_breakpoint_locations, reattach_breakpoints) |
| 1030 | (print_breakpoint_location, print_one_detail_ranged_breakpoint) |
| 1031 | (print_it_watchpoint): Use string_file. |
| 1032 | (save_breakpoints): Use stdio_file. |
| 1033 | * c-exp.y (oper): Use string_file. |
| 1034 | * cli/cli-logging.c (set_logging_redirect): Use ui_file_up and |
| 1035 | tee_file. |
| 1036 | (pop_output_files): Use delete. |
| 1037 | (handle_redirections): Use stdio_file and tee_file. |
| 1038 | * cli/cli-setshow.c (do_show_command): Use string_file. |
| 1039 | * compile/compile-c-support.c (c_compute_program): Use |
| 1040 | string_file. |
| 1041 | * compile/compile-c-symbols.c (generate_vla_size): Take a |
| 1042 | 'string_file &' instead of a 'ui_file *'. |
| 1043 | (generate_c_for_for_one_variable): Take a 'string_file &' instead |
| 1044 | of a 'ui_file *'. Use string_file. |
| 1045 | (generate_c_for_variable_locations): Take a 'string_file &' |
| 1046 | instead of a 'ui_file *'. |
| 1047 | * compile/compile-internal.h (generate_c_for_for_one_variable): |
| 1048 | Take a 'string_file &' instead of a 'ui_file *'. |
| 1049 | * compile/compile-loc2c.c (push, pushf, unary, binary) |
| 1050 | (print_label, pushf_register_address, pushf_register) |
| 1051 | (do_compile_dwarf_expr_to_c): Take a 'string_file &' instead of a |
| 1052 | 'ui_file *'. Adjust. |
| 1053 | * compile/compile.c (compile_to_object): Use string_file. |
| 1054 | * compile/compile.h (compile_dwarf_expr_to_c) |
| 1055 | (compile_dwarf_bounds_to_c): Take a 'string_file &' instead of a |
| 1056 | 'ui_file *'. |
| 1057 | * cp-support.c (inspect_type): Use string_file and obstack_copy0. |
| 1058 | (replace_typedefs_qualified_name): Use string_file and |
| 1059 | obstack_copy0. |
| 1060 | * disasm.c (gdb_pretty_print_insn): Use string_file. |
| 1061 | (gdb_disassembly): Adjust reference the null_stream global. |
| 1062 | (do_ui_file_delete): Delete. |
| 1063 | (gdb_insn_length): Use null_stream. |
| 1064 | * dummy-frame.c (maintenance_print_dummy_frames): Use stdio_file. |
| 1065 | * dwarf2loc.c (dwarf2_compile_property_to_c) |
| 1066 | (locexpr_generate_c_location, loclist_generate_c_location): Take a |
| 1067 | 'string_file &' instead of a 'ui_file *'. |
| 1068 | * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise. |
| 1069 | * dwarf2read.c (do_ui_file_peek_last): Delete. |
| 1070 | (dwarf2_compute_name): Use string_file. |
| 1071 | * event-top.c (gdb_setup_readline): Use stdio_file. |
| 1072 | * gdbarch.sh (verify_gdbarch): Use string_file. |
| 1073 | * gdbtypes.c (safe_parse_type): Use null_stream. |
| 1074 | * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Use |
| 1075 | string_file. |
| 1076 | * guile/scm-disasm.c (gdbscm_print_insn_from_port): Take a |
| 1077 | 'string_file *' instead of a 'ui_file *'. |
| 1078 | (gdbscm_arch_disassemble): Use string_file. |
| 1079 | * guile/scm-frame.c (frscm_print_frame_smob): Use string_file. |
| 1080 | * guile/scm-ports.c (class ioscm_file_port): Now a class that |
| 1081 | inherits from ui_file. |
| 1082 | (ioscm_file_port_delete, ioscm_file_port_rewind) |
| 1083 | (ioscm_file_port_put): Delete. |
| 1084 | (ioscm_file_port_write): Rename to ... |
| 1085 | (ioscm_file_port::write): ... this. Remove file_port_magic |
| 1086 | checks. |
| 1087 | (ioscm_file_port_new): Delete. |
| 1088 | (ioscm_with_output_to_port_worker): Use ioscm_file_port and |
| 1089 | ui_file_up. |
| 1090 | * guile/scm-type.c (tyscm_type_name): Use string_file. |
| 1091 | * guile/scm-value.c (vlscm_print_value_smob, gdbscm_value_print): |
| 1092 | Use string_file. |
| 1093 | * infcmd.c (print_return_value_1): Use string_file. |
| 1094 | * infrun.c (print_target_wait_results): Use string_file. |
| 1095 | * language.c (add_language): Use string_file. |
| 1096 | * location.c (explicit_to_string_internal): Use string_file. |
| 1097 | * main.c (captured_main_1): Use null_file. |
| 1098 | * maint.c (maintenance_print_architecture): Use stdio_file. |
| 1099 | * mi/mi-cmd-stack.c (list_arg_or_local): Use string_file. |
| 1100 | * mi/mi-common.h (struct mi_interp) <out, err, log, targ, |
| 1101 | event_channel>: Change type to mi_console_file pointer. |
| 1102 | * mi/mi-console.c (mi_console_file_fputs, mi_console_file_flush) |
| 1103 | (mi_console_file_delete): Delete. |
| 1104 | (struct mi_console_file): Delete. |
| 1105 | (mi_console_file_magic): Delete. |
| 1106 | (mi_console_file_new): Delete. |
| 1107 | (mi_console_file::mi_console_file): New. |
| 1108 | (mi_console_file_delete): Delete. |
| 1109 | (mi_console_file_fputs): Delete. |
| 1110 | (mi_console_file::write): New. |
| 1111 | (mi_console_raw_packet): Delete. |
| 1112 | (mi_console_file::flush): New. |
| 1113 | (mi_console_file_flush): Delete. |
| 1114 | (mi_console_set_raw): Rename to ... |
| 1115 | (mi_console_file::set_raw): ... this. |
| 1116 | * mi/mi-console.h (class mi_console_file): New class. |
| 1117 | (mi_console_file_new, mi_console_set_raw): Delete. |
| 1118 | * mi/mi-interp.c (mi_interpreter_init): Use mi_console_file. |
| 1119 | (mi_set_logging): Use delete and tee_file. Adjust. |
| 1120 | * mi/mi-main.c (output_register): Use string_file. |
| 1121 | (mi_cmd_data_evaluate_expression): Use string_file. |
| 1122 | (mi_cmd_data_read_memory): Use string_file. |
| 1123 | (mi_cmd_execute, print_variable_or_computed): Use string_file. |
| 1124 | * mi/mi-out.c (mi_ui_out::main_stream): New. |
| 1125 | (mi_ui_out::rewind): Use main_stream and |
| 1126 | string_file. |
| 1127 | (mi_ui_out::put): Use main_stream and string_file. |
| 1128 | (mi_ui_out::mi_ui_out): Remove 'stream' parameter. |
| 1129 | Allocate a 'string_file' instead. |
| 1130 | (mi_out_new): Don't allocate a mem_fileopen stream here. |
| 1131 | * mi/mi-out.h (mi_ui_out::mi_ui_out): Remove 'stream' parameter. |
| 1132 | (mi_ui_out::main_stream): Declare method. |
| 1133 | * printcmd.c (eval_command): Use string_file. |
| 1134 | * psymtab.c (maintenance_print_psymbols): Use stdio_file. |
| 1135 | * python/py-arch.c (archpy_disassemble): Use string_file. |
| 1136 | * python/py-breakpoint.c (bppy_get_commands): Use string_file. |
| 1137 | * python/py-frame.c (frapy_str): Use string_file. |
| 1138 | * python/py-framefilter.c (py_print_type, py_print_single_arg): |
| 1139 | Use string_file. |
| 1140 | * python/py-type.c (typy_str): Use string_file. |
| 1141 | * python/py-unwind.c (unwind_infopy_str): Use string_file. |
| 1142 | * python/py-value.c (valpy_str): Use string_file. |
| 1143 | * record-btrace.c (btrace_insn_history): Use string_file. |
| 1144 | * regcache.c (regcache_print): Use stdio_file. |
| 1145 | * reggroups.c (maintenance_print_reggroups): Use stdio_file. |
| 1146 | * remote.c (escape_buffer): Use string_file. |
| 1147 | * rust-lang.c (rust_get_disr_info): Use string_file. |
| 1148 | * serial.c (serial_open_ops_1): Use stdio_file. |
| 1149 | (do_serial_close): Use delete. |
| 1150 | * stack.c (print_frame_arg): Use string_file. |
| 1151 | (print_frame_args): Remove local mem_fileopen stream, not used. |
| 1152 | (print_frame): Use string_file. |
| 1153 | * symmisc.c (maintenance_print_symbols): Use stdio_file. |
| 1154 | * symtab.h (struct symbol_computed_ops) <generate_c_location>: |
| 1155 | Take a 'string_file *' instead of a 'ui_file *'. |
| 1156 | * top.c (new_ui): Use stdio_file and stderr_file. |
| 1157 | (free_ui): Use delete. |
| 1158 | (execute_command_to_string): Use string_file. |
| 1159 | (quit_confirm): Use string_file. |
| 1160 | * tracepoint.c (collection_list::append_exp): Use string_file. |
| 1161 | * tui/tui-disasm.c (tui_disassemble): Use string_file. |
| 1162 | * tui/tui-file.c: Don't include "ui-file.h". |
| 1163 | (enum streamtype, struct tui_stream): Delete. |
| 1164 | (tui_file_new, tui_file_delete, tui_fileopen, tui_sfileopen) |
| 1165 | (tui_file_isatty, tui_file_rewind, tui_file_put): Delete. |
| 1166 | (tui_file::tui_file): New method. |
| 1167 | (tui_file_fputs): Delete. |
| 1168 | (tui_file_get_strbuf): Delete. |
| 1169 | (tui_file::puts): New method. |
| 1170 | (tui_file_adjust_strbuf): Delete. |
| 1171 | (tui_file_flush): Delete. |
| 1172 | (tui_file::flush): New method. |
| 1173 | * tui/tui-file.h: Tweak intro comment. |
| 1174 | Include ui-file.h. |
| 1175 | (tui_fileopen, tui_sfileopen, tui_file_get_strbuf) |
| 1176 | (tui_file_adjust_strbuf): Delete declarations. |
| 1177 | (class tui_file): New class. |
| 1178 | * tui/tui-io.c (tui_initialize_io): Use tui_file. |
| 1179 | * tui/tui-regs.c (tui_restore_gdbout): Use delete. |
| 1180 | (tui_register_format): Use string_stream. |
| 1181 | * tui/tui-stack.c (tui_make_status_line): Use string_file. |
| 1182 | (tui_get_function_from_frame): Use string_file. |
| 1183 | * typeprint.c (type_to_string): Use string_file. |
| 1184 | * ui-file.c (struct ui_file, ui_file_magic, ui_file_new): Delete. |
| 1185 | (null_stream): New global. |
| 1186 | (ui_file_delete): Delete. |
| 1187 | (ui_file::ui_file): New. |
| 1188 | (null_file_isatty): Delete. |
| 1189 | (ui_file::~ui_file): New. |
| 1190 | (null_file_rewind): Delete. |
| 1191 | (ui_file::printf): New. |
| 1192 | (null_file_put): Delete. |
| 1193 | (null_file_flush): Delete. |
| 1194 | (ui_file::putstr): New. |
| 1195 | (null_file_write): Delete. |
| 1196 | (ui_file::putstrn): New. |
| 1197 | (null_file_read): Delete. |
| 1198 | (ui_file::putc): New. |
| 1199 | (null_file_fputs): Delete. |
| 1200 | (null_file_write_async_safe): Delete. |
| 1201 | (ui_file::vprintf): New. |
| 1202 | (null_file_delete): Delete. |
| 1203 | (null_file::write): New. |
| 1204 | (null_file_fseek): Delete. |
| 1205 | (null_file::puts): New. |
| 1206 | (ui_file_data): Delete. |
| 1207 | (null_file::write_async_safe): New. |
| 1208 | (gdb_flush, ui_file_isatty): Adjust. |
| 1209 | (ui_file_put, ui_file_rewind): Delete. |
| 1210 | (ui_file_write): Adjust. |
| 1211 | (ui_file_write_for_put): Delete. |
| 1212 | (ui_file_write_async_safe, ui_file_read): Adjust. |
| 1213 | (ui_file_fseek): Delete. |
| 1214 | (fputs_unfiltered): Adjust. |
| 1215 | (set_ui_file_flush, set_ui_file_isatty, set_ui_file_rewind) |
| 1216 | (set_ui_file_put, set_ui_file_write, set_ui_file_write_async_safe) |
| 1217 | (set_ui_file_read, set_ui_file_fputs, set_ui_file_fseek) |
| 1218 | (set_ui_file_data): Delete. |
| 1219 | (string_file::~string_file, string_file::write) |
| 1220 | (struct accumulated_ui_file, do_ui_file_xstrdup, ui_file_xstrdup) |
| 1221 | (do_ui_file_as_string, ui_file_as_string): Delete. |
| 1222 | (do_ui_file_obsavestring, ui_file_obsavestring): Delete. |
| 1223 | (struct mem_file): Delete. |
| 1224 | (mem_file_new): Delete. |
| 1225 | (stdio_file::stdio_file): New. |
| 1226 | (mem_file_delete): Delete. |
| 1227 | (stdio_file::stdio_file): New. |
| 1228 | (mem_fileopen): Delete. |
| 1229 | (stdio_file::~stdio_file): New. |
| 1230 | (mem_file_rewind): Delete. |
| 1231 | (stdio_file::set_stream): New. |
| 1232 | (mem_file_put): Delete. |
| 1233 | (stdio_file::open): New. |
| 1234 | (mem_file_write): Delete. |
| 1235 | (stdio_file_magic, struct stdio_file): Delete. |
| 1236 | (stdio_file_new, stdio_file_delete, stdio_file_flush): Delete. |
| 1237 | (stdio_file::flush): New. |
| 1238 | (stdio_file_read): Rename to ... |
| 1239 | (stdio_file::read): ... this. Adjust. |
| 1240 | (stdio_file_write): Rename to ... |
| 1241 | (stdio_file::write): ... this. Adjust. |
| 1242 | (stdio_file_write_async_safe): Rename to ... |
| 1243 | (stdio_file::write_async_safe) ... this. Adjust. |
| 1244 | (stdio_file_fputs): Rename to ... |
| 1245 | (stdio_file::puts) ... this. Adjust. |
| 1246 | (stdio_file_isatty): Delete. |
| 1247 | (stdio_file_fseek): Delete. |
| 1248 | (stdio_file::isatty): New. |
| 1249 | (stderr_file_write): Rename to ... |
| 1250 | (stderr_file::write) ... this. Adjust. |
| 1251 | (stderr_file_fputs): Rename to ... |
| 1252 | (stderr_file::puts) ... this. Adjust. |
| 1253 | (stderr_fileopen, stdio_fileopen, gdb_fopen): Delete. |
| 1254 | (stderr_file::stderr_file): New. |
| 1255 | (tee_file_magic): Delete. |
| 1256 | (struct tee_file): Delete. |
| 1257 | (tee_file::tee_file): New. |
| 1258 | (tee_file_new): Delete. |
| 1259 | (tee_file::~tee_file): New. |
| 1260 | (tee_file_delete): Delete. |
| 1261 | (tee_file_flush): Rename to ... |
| 1262 | (tee_file::flush): ... this. Adjust. |
| 1263 | (tee_file_write): Rename to ... |
| 1264 | (tee_file::write): ... this. Adjust. |
| 1265 | (tee_file::write_async_safe): New. |
| 1266 | (tee_file_fputs): Rename to ... |
| 1267 | (tee_file::puts): ... this. Adjust. |
| 1268 | (tee_file_isatty): Rename to ... |
| 1269 | (tee_file::isatty): ... this. Adjust. |
| 1270 | * ui-file.h (struct obstack, struct ui_file): Don't |
| 1271 | forward-declare. |
| 1272 | (ui_file_new, ui_file_flush_ftype, set_ui_file_flush) |
| 1273 | (ui_file_write_ftype) |
| 1274 | (set_ui_file_write, ui_file_fputs_ftype, set_ui_file_fputs) |
| 1275 | (ui_file_write_async_safe_ftype, set_ui_file_write_async_safe) |
| 1276 | (ui_file_read_ftype, set_ui_file_read, ui_file_isatty_ftype) |
| 1277 | (set_ui_file_isatty, ui_file_rewind_ftype, set_ui_file_rewind) |
| 1278 | (ui_file_put_method_ftype, ui_file_put_ftype, set_ui_file_put) |
| 1279 | (ui_file_delete_ftype, set_ui_file_data, ui_file_fseek_ftype) |
| 1280 | (set_ui_file_fseek): Delete. |
| 1281 | (ui_file_data, ui_file_delete, ui_file_rewind) |
| 1282 | (struct ui_file): New. |
| 1283 | (ui_file_up): New. |
| 1284 | (class null_file): New. |
| 1285 | (null_stream): Declare. |
| 1286 | (ui_file_write_for_put, ui_file_put): Delete. |
| 1287 | (ui_file_xstrdup, ui_file_as_string, ui_file_obsavestring): |
| 1288 | Delete. |
| 1289 | (ui_file_fseek, mem_fileopen, stdio_fileopen, stderr_fileopen) |
| 1290 | (gdb_fopen, tee_file_new): Delete. |
| 1291 | (struct string_file): New. |
| 1292 | (struct stdio_file): New. |
| 1293 | (stdio_file_up): New. |
| 1294 | (struct stderr_file): New. |
| 1295 | (class tee_file): New. |
| 1296 | * ui-out.c (ui_out::field_stream): Take a 'string_file &' instead |
| 1297 | of a 'ui_file *'. Adjust. |
| 1298 | * ui-out.h (class ui_out) <field_stream>: Likewise. |
| 1299 | * utils.c (do_ui_file_delete, make_cleanup_ui_file_delete) |
| 1300 | (null_stream): Delete. |
| 1301 | (error_stream): Take a 'string_file &' instead of a 'ui_file *'. |
| 1302 | Adjust. |
| 1303 | * utils.h (struct ui_file): Delete forward declaration.. |
| 1304 | (make_cleanup_ui_file_delete, null_stream): Delete declarations. |
| 1305 | (error_stream): Take a 'string_file &' instead of a |
| 1306 | 'ui_file *'. |
| 1307 | * varobj.c (varobj_value_get_print_value): Use string_file. |
| 1308 | * xtensa-tdep.c (xtensa_verify_config): Use string_file. |
| 1309 | * gdbarch.c: Regenerate. |
| 1310 | |
| 1311 | 2017-02-02 Pedro Alves <palves@redhat.com> |
| 1312 | |
| 1313 | * disasm.c (gdb_disassembler::pretty_print_insn): Rename to... |
| 1314 | (gdb_pretty_print_insn): ... this. Now a free function. Add back |
| 1315 | a 'gdbarch' parameter. Allocate a mem_fileopen stream here. |
| 1316 | Adjust to call gdb_print_insn instead of |
| 1317 | gdb_disassembler::print_insn. |
| 1318 | (dump_insns, do_mixed_source_and_assembly_deprecated) |
| 1319 | (do_mixed_source_and_assembly, do_assembly_only): Add back a |
| 1320 | 'gdbarch' parameter. Remove gdb_disassembler parameter. |
| 1321 | (gdb_disassembly): Don't allocate a gdb_disassembler here. |
| 1322 | * disasm.h (gdb_disassembler::pretty_print_insn): Delete |
| 1323 | declaration. |
| 1324 | (gdb_pretty_print_insn): Re-add declaration. |
| 1325 | * record-btrace.c (btrace_insn_history): Don't allocate a |
| 1326 | gdb_disassembler here. Adjust to call gdb_pretty_print_insn. |
| 1327 | |
| 1328 | 2017-02-01 Simon Marchi <simon.marchi@polymtl.ca> |
| 1329 | |
| 1330 | * disasm.h (gdb_disassembly): Remove file_string parameter. |
| 1331 | * disasm.c (gdb_disassembly): Likewise. |
| 1332 | * cli/cli-cmds.c (print_disassembly): Adapt. |
| 1333 | * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise. |
| 1334 | * stack.c (do_gdb_disassembly): Likewise. |
| 1335 | |
| 1336 | 2017-02-01 Andreas Arnez <arnez@linux.vnet.ibm.com> |
| 1337 | |
| 1338 | * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): For |
| 1339 | DWARF_VALUE_LITERAL, no longer ignore the offset on big-endian |
| 1340 | targets. And if the implicit value is longer than needed, extract |
| 1341 | the first bytes instead of the "least significant" ones. |
| 1342 | |
| 1343 | 2017-02-01 Markus Metzger <markus.t.metzger@intel.com> |
| 1344 | |
| 1345 | * btrace.c (btrace_enable): Do not call btrace_add_pc for |
| 1346 | BTRACE_FORMAT_PT or if can_access_registers_ptid returns false. |
| 1347 | (btrace_fetch): Assert can_access_registers_ptid. |
| 1348 | * record-btrace.c (require_btrace_thread, record_btrace_info): Call |
| 1349 | validate_registers_access. |
| 1350 | |
| 1351 | 2017-02-01 Markus Metzger <markus.t.metzger@intel.com> |
| 1352 | |
| 1353 | * gdbthread.h (can_access_registers_ptid): New. |
| 1354 | * thread.c (can_access_registers_ptid): New. |
| 1355 | |
| 1356 | 2017-02-01 Pedro Alves <palves@redhat.com> |
| 1357 | |
| 1358 | * i386-tdep.c (i386_fast_tracepoint_valid_at): Use gdb_insn_length. |
| 1359 | |
| 1360 | 2017-01-31 Pedro Alves <palves@redhat.com> |
| 1361 | |
| 1362 | * mi/mi-interp.c (mi_breakpoint_created, mi_breakpoint_modified): |
| 1363 | Fix typos. |
| 1364 | |
| 1365 | 2017-01-31 Pedro Alves <palves@redhat.com> |
| 1366 | |
| 1367 | * stack.c (print_frame_args): Remove local mem_fileopen stream, |
| 1368 | not used. |
| 1369 | |
| 1370 | 2017-01-31 Pedro Alves <palves@redhat.com> |
| 1371 | |
| 1372 | * varobj.c (varobj_value_get_print_value): Remove xstrdup call. |
| 1373 | |
| 1374 | 2017-01-31 Pedro Alves <palves@redhat.com> |
| 1375 | |
| 1376 | * common/scoped_restore.h |
| 1377 | (scoped_restore_tmpl::scoped_restore_tmpl): Template on T2, and |
| 1378 | change the value's parameter type to T2. |
| 1379 | (make_scoped_restore): Likewise. |
| 1380 | |
| 1381 | 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com> |
| 1382 | Richard Henderson <rth@redhat.com> |
| 1383 | |
| 1384 | * amd64-linux-nat.c (PTRACE_ARCH_PRCTL): New define. |
| 1385 | (amd64_linux_fetch_inferior_registers): Add case to fetch FS_BASE |
| 1386 | GS_BASE for older kernels. |
| 1387 | (amd64_linux_store_inferior_registers): Add case to store FS_BASE |
| 1388 | GS_BASE for older kernels. |
| 1389 | * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Add FS_BASE |
| 1390 | and GS_BASE to the offset table. |
| 1391 | (amd64_linux_register_reggroup_p): Add FS_BASE and GS_BASE to the |
| 1392 | system register group. |
| 1393 | * amd64-nat.c (amd64_native_gregset_reg_offset): Implements case |
| 1394 | for older kernels. |
| 1395 | * amd64-tdep.c (amd64_init_abi): Add segment registers for the |
| 1396 | amd64 ABI. |
| 1397 | * amd64-tdep.h (amd64_regnum): Add AMD64_FSBASE_REGNUM and |
| 1398 | AMD64_GSBASE_REGNUM. |
| 1399 | (AMD64_NUM_REGS): Set to AMD64_GSBASE_REGNUM + 1. |
| 1400 | * features/Makefile (amd64-linux.dat, amd64-avx-linux.dat) |
| 1401 | (amd64-mpx-linux.dat, amd64-avx512-linux.dat, x32-linux.dat) |
| 1402 | (x32-avx-linux.dat, x32-avx512-linux.dat): Add |
| 1403 | i386/64bit-segments.xml in those rules. |
| 1404 | * features/i386/64bit-segments.xml: New file. |
| 1405 | * features/i386/amd64-avx-mpx-linux.xml: Add 64bit-segments.xml. |
| 1406 | * features/i386/amd64-avx-linux.xml: Add 64bit-segments.xml. |
| 1407 | * features/i386/amd64-avx512-linux.xml: Add 64bit-segments.xml. |
| 1408 | * features/i386/amd64-mpx-linux.xml: Add 64bit-segments.xml. |
| 1409 | * features/i386/x32-avx512-linux.xml: Add 64bit-segments.xml. |
| 1410 | * features/i386/x32-avx-linux.xml: Add 64bit-segments.xml. |
| 1411 | * features/i386/amd64-linux.xml: Add 64bit-segments.xml. |
| 1412 | * features/i386/amd64-avx-linux.c: Regenerated. |
| 1413 | * features/i386/amd64-avx-mpx-linux.c: Regenerated. |
| 1414 | * features/i386/amd64-avx-mpx.c: Regenerated. |
| 1415 | * features/i386/amd64-avx512-linux.c: Regenerated. |
| 1416 | * features/i386/amd64-linux.c: Regenerated. |
| 1417 | * features/i386/amd64-mpx-linux.c: Regenerated. |
| 1418 | * features/i386/i386-avx-mpx-linux.c: Regenerated. |
| 1419 | * features/i386/i386-avx-mpx.c: Regenerated. |
| 1420 | * features/i386/x32-avx-linux.c: Regenerated. |
| 1421 | * features/i386/x32-avx512-linux.c: Regenerated. |
| 1422 | * regformats/i386/amd64-avx-linux.dat: Regenerated. |
| 1423 | * regformats/i386/amd64-avx-mpx-linux.dat: Regenerated. |
| 1424 | * regformats/i386/amd64-avx512-linux.dat: Regenerated. |
| 1425 | * regformats/i386/amd64-linux.dat: Regenerated. |
| 1426 | * regformats/i386/amd64-mpx-linux.dat: Regenerated. |
| 1427 | * regformats/i386/x32-avx-linux.dat: Regenerated. |
| 1428 | * regformats/i386/x32-avx512-linux.dat: Regenerated. |
| 1429 | * regformats/i386/x32-linux.dat: Regenerated. |
| 1430 | |
| 1431 | 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com> |
| 1432 | |
| 1433 | * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): |
| 1434 | Set to AMD64_NUM_REGS. |
| 1435 | |
| 1436 | 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com> |
| 1437 | |
| 1438 | * amd64-nat.c (amd64_native_gregset_reg_offset): Simplify logic |
| 1439 | that checks validity of a register number. |
| 1440 | |
| 1441 | 2017-01-27 Kees Cook <keescook@google.com> |
| 1442 | |
| 1443 | * gdb/arm-linux-nat.c (arm_linux_fetch_inferior_registers): Call |
| 1444 | fetch_fpregs if target has fpa registers. |
| 1445 | (arm_linux_store_inferior_registers): Call store_fpregs if target |
| 1446 | has fpa registers. |
| 1447 | |
| 1448 | 2017-01-26 Andreas Arnez <arnez@linux.vnet.ibm.com> |
| 1449 | |
| 1450 | * cris-tdep.c (cris_gdbarch_init): Remove check for |
| 1451 | info.byte_order and force it to BFD_ENDIAN_LITTLE. |
| 1452 | |
| 1453 | 2017-01-26 Antoine Tremblay <antoine.tremblay@ericsson.com> |
| 1454 | |
| 1455 | * corelow.c (get_core_register_section): Check for regset |
| 1456 | existence before checking for REGSET_VARIABLE_SIZE. |
| 1457 | |
| 1458 | 2017-01-26 Yao Qi <yao.qi@linaro.org> |
| 1459 | Pedro Alves <palves@redhat.com> |
| 1460 | |
| 1461 | PR gdb/20939 |
| 1462 | * disasm.c (gdb_disassembler::dis_asm_memory_error): Don't |
| 1463 | call memory_error, save memaddr instead. |
| 1464 | (gdb_disassembler::print_insn): If gdbarch_print_insn returns |
| 1465 | negative, cal memory_error. |
| 1466 | * disasm.h (gdb_disassembler) <m_err_memaddr>: New field. |
| 1467 | |
| 1468 | 2017-01-26 Yao Qi <yao.qi@linaro.org> |
| 1469 | |
| 1470 | * disasm-selftests.c (memory_error_test): New function. |
| 1471 | (_initialize_disasm_selftests): Register memory_error_test. |
| 1472 | |
| 1473 | 2017-01-26 Yao Qi <yao.qi@linaro.org> |
| 1474 | |
| 1475 | * Makefile.in (SFILES): Add disasm-selftests.c and |
| 1476 | selftest-arch.c. |
| 1477 | (COMMON_OBS): Add disasm-selftests.o and selftest-arch.o. |
| 1478 | * disasm-selftests.c: New file. |
| 1479 | * selftest-arch.c: New file. |
| 1480 | * selftest-arch.h: New file. |
| 1481 | |
| 1482 | 2017-01-26 Yao Qi <yao.qi@linaro.org> |
| 1483 | |
| 1484 | * mep-tdep.c (mep_gdb_print_insn): Set info->arch |
| 1485 | to bfd_arch_mep. Don't return 0 if section is not |
| 1486 | found. Call print_insn_mep. |
| 1487 | |
| 1488 | 2017-01-26 Pedro Alves <palves@redhat.com> |
| 1489 | Yao Qi <yao.qi@linaro.org> |
| 1490 | |
| 1491 | * arm-tdep.c: Include "disasm.h". |
| 1492 | (gdb_print_insn_arm): Update code to get gdbarch. |
| 1493 | * disasm.c (dis_asm_read_memory): Change it to |
| 1494 | gdb_disassembler::dis_asm_read_memory. |
| 1495 | (dis_asm_memory_error): Likewise. |
| 1496 | (dis_asm_print_address): Likewise. |
| 1497 | (gdb_pretty_print_insn): Change it to |
| 1498 | gdb_disassembler::pretty_print_insn. |
| 1499 | (dump_insns): Add one argument gdb_disassemlber. All |
| 1500 | callers updated. |
| 1501 | (do_mixed_source_and_assembly_deprecated): Likewise. |
| 1502 | (do_mixed_source_and_assembly): Likewise. |
| 1503 | (do_assembly_only): Likewise. |
| 1504 | (gdb_disassembler::gdb_disassembler): New. |
| 1505 | (gdb_disassembler::print_insn): New. |
| 1506 | * disasm.h (class gdb_disassembler): New. |
| 1507 | (gdb_pretty_print_insn): Remove declaration. |
| 1508 | (gdb_disassemble_info): Likewise. |
| 1509 | * guile/scm-disasm.c (class gdbscm_disassembler): New. |
| 1510 | (gdbscm_disasm_read_memory_worker): Update. |
| 1511 | (gdbscm_disasm_read_memory): Update. |
| 1512 | (gdbscm_disasm_memory_error): Remove. |
| 1513 | (gdbscm_disasm_print_address): Remove. |
| 1514 | (gdbscm_disassembler::gdbscm_disassembler): New. |
| 1515 | (gdbscm_print_insn_from_port): Update. |
| 1516 | * mips-tdep.c: Include disasm.h. |
| 1517 | (gdb_print_insn_mips): Update code to get gdbarch. |
| 1518 | * record-btrace.c (btrace_insn_history): Update. |
| 1519 | * spu-tdep.c: Include disasm.h. |
| 1520 | (struct spu_dis_asm_data): Remove. |
| 1521 | (struct spu_dis_asm_info): New. |
| 1522 | (spu_dis_asm_print_address): Use spu_dis_asm_info to get |
| 1523 | SPU id. |
| 1524 | (gdb_print_insn_spu): Cast disassemble_info to |
| 1525 | spu_dis_asm_info. |
| 1526 | |
| 1527 | 2017-01-26 Yao Qi <yao.qi@linaro.org> |
| 1528 | |
| 1529 | * disasm.c (do_ui_file_delete): Delete. |
| 1530 | (gdb_insn_length): Move code creating stream to ... |
| 1531 | * utils.c (null_stream): ... here. New function. |
| 1532 | * utils.h (null_stream): Declare. |
| 1533 | |
| 1534 | 2017-01-23 Simon Marchi <simon.marchi@polymtl.ca> |
| 1535 | |
| 1536 | * python/py-inferior.c (find_thread_object): Return directly |
| 1537 | from the loop. Remove "found" variable. |
| 1538 | |
| 1539 | 2017-01-21 Joel Brobecker <brobecker@adacore.com> |
| 1540 | |
| 1541 | GDB 7.12.1 released. |
| 1542 | |
| 1543 | 2017-01-20 Simon Marchi <simon.marchi@ericsson.com> |
| 1544 | |
| 1545 | * python/py-function.c (fnpy_call): Reorder declarations to have |
| 1546 | the gdbpy_enter object declared first. |
| 1547 | * python/py-xmethods.c (gdbpy_get_xmethod_arg_types): Likewise. |
| 1548 | |
| 1549 | 2017-01-20 Simon Marchi <simon.marchi@ericsson.com> |
| 1550 | |
| 1551 | PR python/21068 |
| 1552 | * python/python-internal.h (PyMem_RawMalloc): Define for |
| 1553 | Python < 3.4. |
| 1554 | * python/py-gdb-readline.c (gdbpy_readline_wrapper): Use |
| 1555 | PyMem_RawMalloc instead of PyMem_Malloc. |
| 1556 | |
| 1557 | 2017-01-20 Mike Wrighton <mike_wrighton@codesourcery.com> |
| 1558 | Luis Machado <lgustavo@codesourcery.com> |
| 1559 | |
| 1560 | * NEWS (New commands): Mention flash-erase. |
| 1561 | (New MI commands): Mention target-flash-erase. |
| 1562 | * mi/mi-cmds.c (mi_cmd_target_flash_erase): Add target-flash-erase MI |
| 1563 | command. |
| 1564 | * mi/mi-cmds.h (mi_cmd_target_flash_erase): New declaration. |
| 1565 | * mi/mi-main.c (mi_cmd_target_flash_erase): New function. |
| 1566 | * target.c (flash_erase_command): New function. |
| 1567 | (initialize_targets): Add new flash-erase command. |
| 1568 | * target.h (flash_erase_command): New declaration. |
| 1569 | |
| 1570 | 2017-01-20 Joel Brobecker <brobecker@adacore.com> |
| 1571 | |
| 1572 | * nat/linux-ptrace.c: Only include <sys/procfs.h> if |
| 1573 | HAVE_SYS_PROCFS_H is defined. |
| 1574 | |
| 1575 | 2017-01-18 Alan Hayward <alan.hayward@arm.com> |
| 1576 | |
| 1577 | * remote.c (struct cached_reg): Change data into a pointer. |
| 1578 | * (stop_reply_dtr): Free data pointers before deleting vector. |
| 1579 | (process_stop_reply): Likewise. |
| 1580 | (remote_parse_stop_reply): Allocate space for data |
| 1581 | |
| 1582 | 2017-01-18 Alan Hayward <alan.hayward@arm.com> |
| 1583 | |
| 1584 | * amd64-tdep.c (amd64_pseudo_register_read_value): remove |
| 1585 | MAX_REGISTER_SIZE. |
| 1586 | (amd64_pseudo_register_read_value): Likewise. |
| 1587 | * remote.c (fetch_register_using_p): Remove MAX_REGISTER_SIZE. |
| 1588 | (store_register_using_P): Likewise. |
| 1589 | * regcache.c (regcache_xfer_part): Likewise. |
| 1590 | |
| 1591 | 2017-01-16 Ivo Raisr <ivo.raisr@oracle.com> |
| 1592 | |
| 1593 | Split real and pseudo registers. |
| 1594 | * sparc-tdep.h (SPARC_CORE_REGISTERS): New macro. |
| 1595 | (sparc32_pseudo_regnum): New enum. |
| 1596 | * sparc64-tdep.h (sparc64_pseudo_regnum): New enum. |
| 1597 | * sparc-tdep.c (SPARC32_FPU_REGISTERS): New macro. |
| 1598 | (SPARC32_CP0_REGISTERS): New macro. |
| 1599 | (sparc32_pseudo_register_name): New function. |
| 1600 | (sparc32_register_name): Use sparc32_pseudo_register_name. |
| 1601 | (sparc32_pseudo_register_type): New function. |
| 1602 | (sparc32_register_type): Use sparc32_pseudo_register_type. |
| 1603 | (sparc32_pseudo_register_read, sparc32_pseudo_register_write): Handle |
| 1604 | pseudo register numbers. |
| 1605 | * sparc64-tdep.c SPARC64_FPU_REGISTERS): New macro. |
| 1606 | (SPARC64_CP0_REGISTERS): New macro. |
| 1607 | (sparc64_pseudo_register_name): New function. |
| 1608 | (sparc64_register_name): Use sparc64_pseudo_register_name. |
| 1609 | (sparc64_pseudo_register_type): New function. |
| 1610 | (sparc64_register_type): Use sparc64_pseudo_register_type. |
| 1611 | (sparc64_pseudo_register_read, sparc64_pseudo_register_write): Handle |
| 1612 | pseudo register numbers. |
| 1613 | (sparc64_store_floating_fields, sparc64_extract_floating_fields, |
| 1614 | sparc64_store_arguments): Handle pseudo register numbers. |
| 1615 | |
| 1616 | 2017-01-13 Yao Qi <yao.qi@linaro.org> |
| 1617 | |
| 1618 | * remote.c (REMOTE_DEBUG_MAX_CHAR): New macro. |
| 1619 | (putpkt_binary): Print only REMOTE_DEBUG_MAX_CHAR chars in debug |
| 1620 | output. |
| 1621 | (getpkt_or_notif_sane_1): Likewise. |
| 1622 | |
| 1623 | 2017-01-13 Yao Qi <yao.qi@linaro.org> |
| 1624 | |
| 1625 | * Makefile.in (checker-headers): Use CXX and CXX_DIALET instead |
| 1626 | of CC. Pass "-x c++-header" instead of "-x c". |
| 1627 | |
| 1628 | 2017-01-12 Simon Marchi <simon.marchi@ericsson.com> |
| 1629 | |
| 1630 | * remote.c (remote_can_async_p): Update comment. |
| 1631 | |
| 1632 | 2017-01-12 Simon Marchi <simon.marchi@ericsson.com> |
| 1633 | |
| 1634 | * linux-nat.c (linux_nat_can_async_p): Update comment. |
| 1635 | |
| 1636 | 2017-01-12 Simon Marchi <simon.marchi@ericsson.com> |
| 1637 | |
| 1638 | * serial.c (serial_open): Forget about "pc" and "lpt" serial interface. |
| 1639 | |
| 1640 | 2017-01-11 Simon Marchi <simon.marchi@ericsson.com> |
| 1641 | |
| 1642 | * cli/cli-decode.c (lookup_cmd_1): Fix typo in comment. |
| 1643 | |
| 1644 | 2017-01-10 Tom Tromey <tom@tromey.com> |
| 1645 | |
| 1646 | * python/py-type.c (typy_legacy_template_argument): Update. |
| 1647 | * cp-support.h (struct demangle_parse_info) (demangle_parse_info, |
| 1648 | ~demangle_parse_info): Declare new members. |
| 1649 | (cp_demangled_name_to_comp): Return unique_ptr. |
| 1650 | (cp_demangled_name_parse_free) |
| 1651 | (make_cleanup_cp_demangled_name_parse_free) |
| 1652 | (cp_new_demangle_parse_info): Remove. |
| 1653 | * cp-support.c (do_demangled_name_parse_free_cleanup) |
| 1654 | (make_cleanup_cp_demangled_name_parse_free): Remove. |
| 1655 | (inspect_type, cp_canonicalize_string_full) |
| 1656 | (cp_canonicalize_string): Update. |
| 1657 | (mangled_name_to_comp): Change return type. |
| 1658 | (cp_class_name_from_physname, method_name_from_physname) |
| 1659 | (cp_func_name, cp_remove_params): Update. |
| 1660 | * cp-name-parser.y (demangle_parse_info): New constructor, from |
| 1661 | cp_new_demangle_parse_info. |
| 1662 | (~demangle_parse_info): New destructor, from |
| 1663 | cp_demangled_name_parse_free. |
| 1664 | (cp_merge_demangle_parse_infos): Update. |
| 1665 | (cp_demangled_name_to_comp): Change return type. |
| 1666 | |
| 1667 | 2017-01-10 Tom Tromey <tom@tromey.com> |
| 1668 | |
| 1669 | * top.c (prevent_dont_repeat): Change return type. |
| 1670 | * python/python.c (execute_gdb_command): Use std::string. |
| 1671 | Update. |
| 1672 | * guile/guile.c (gdbscm_execute_gdb_command): Update. |
| 1673 | * command.h (prevent_dont_repeat): Change return type. |
| 1674 | * breakpoint.c (bpstat_do_actions_1): Update. |
| 1675 | |
| 1676 | 2017-01-10 Tom Tromey <tom@tromey.com> |
| 1677 | |
| 1678 | * value.h (scoped_value_mark::~scoped_value_mark): Call |
| 1679 | free_to_mark. |
| 1680 | (scoped_value_mark::free_to_mark): New method. |
| 1681 | * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use |
| 1682 | scoped_value_mark. |
| 1683 | |
| 1684 | 2017-01-10 Tom Tromey <tom@tromey.com> |
| 1685 | |
| 1686 | * python/py-value.c (valpy_dereference, valpy_referenced_value) |
| 1687 | (valpy_reference_value, valpy_const_value, valpy_get_address) |
| 1688 | (valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast) |
| 1689 | (valpy_getitem, valpy_call, valpy_binop_throw, valpy_negative) |
| 1690 | (valpy_absolute, valpy_richcompare_throw): Use scoped_value_mark. |
| 1691 | * dwarf2loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use |
| 1692 | scoped_value_mark. |
| 1693 | * dwarf2-frame.c (execute_stack_op): Use scoped_value_mark. |
| 1694 | * value.h (scoped_value_mark): New class. |
| 1695 | |
| 1696 | 2017-01-10 Tom Tromey <tom@tromey.com> |
| 1697 | |
| 1698 | * dwarf2read.c (dwarf2_build_psymtabs): Use psymtab_discarder. |
| 1699 | * psympriv.h (make_cleanup_discard_psymtabs): Don't declare. |
| 1700 | * psymtab.c (discard_psymtabs_upto): Remove. |
| 1701 | (make_cleanup_discard_psymtabs): Remove. |
| 1702 | (struct psymtab_state): Remove. |
| 1703 | |
| 1704 | 2017-01-10 Tom Tromey <tom@tromey.com> |
| 1705 | |
| 1706 | * record-full.c (record_full_save_cleanups): Remove. |
| 1707 | (record_full_save): Use gdb::unlinker. |
| 1708 | * gcore.c (do_bfd_delete_cleanup): Remove. |
| 1709 | (gcore_command): Use gdb::unlinker, unique_xmalloc_ptr. Remove |
| 1710 | cleanups. |
| 1711 | * dwarf2read.c (unlink_if_set): Remove. |
| 1712 | (write_psymtabs_to_index): Use gdb::unlinker. |
| 1713 | * common/gdb_unlinker.h: New file. |
| 1714 | |
| 1715 | 2017-01-10 Tom Tromey <tom@tromey.com> |
| 1716 | |
| 1717 | * windows-tdep.c (windows_xfer_shared_library): Update. |
| 1718 | * windows-nat.c (windows_make_so): Update. |
| 1719 | * utils.h (make_cleanup_bfd_unref): Remove. |
| 1720 | * utils.c (do_bfd_close_cleanup, make_cleanup_bfd_unref): Remove. |
| 1721 | * symfile.h (symfile_bfd_open) |
| 1722 | (find_separate_debug_file_in_section): Return gdb_bfd_ref_ptr. |
| 1723 | * symfile.c (read_symbols, symbol_file_add) |
| 1724 | (separate_debug_file_exists): Update. |
| 1725 | (symfile_bfd_open): Return gdb_bfd_ref_ptr. |
| 1726 | (generic_load, reread_symbols): Update. |
| 1727 | * symfile-mem.c (symbol_file_add_from_memory): Update. |
| 1728 | * spu-linux-nat.c (spu_bfd_open): Return gdb_bfd_ref_ptr. |
| 1729 | (spu_symbol_file_add_from_memory): Update. |
| 1730 | * solist.h (struct target_so_ops) <bfd_open>: Return |
| 1731 | gdb_bfd_ref_ptr. |
| 1732 | (solib_bfd_fopen, solib_bfd_open): Return gdb_bfd_ref_ptr. |
| 1733 | * solib.c (solib_bfd_fopen, solib_bfd_open): Return |
| 1734 | gdb_bfd_ref_ptr. |
| 1735 | (solib_map_sections, reload_shared_libraries_1): Update. |
| 1736 | * solib-svr4.c (enable_break): Update. |
| 1737 | * solib-spu.c (spu_bfd_fopen): Return gdb_bfd_ref_ptr. |
| 1738 | * solib-frv.c (enable_break2): Update. |
| 1739 | * solib-dsbt.c (enable_break): Update. |
| 1740 | * solib-darwin.c (gdb_bfd_mach_o_fat_extract): Return |
| 1741 | gdb_bfd_ref_ptr. |
| 1742 | (darwin_solib_get_all_image_info_addr_at_init): Update. |
| 1743 | (darwin_bfd_open): Return gdb_bfd_ref_ptr. |
| 1744 | * solib-aix.c (solib_aix_bfd_open): Return gdb_bfd_ref_ptr. |
| 1745 | * record-full.c (record_full_save): Update. |
| 1746 | * python/py-objfile.c (objfpy_add_separate_debug_file): Update. |
| 1747 | * procfs.c (insert_dbx_link_bpt_in_file): Update. |
| 1748 | * minidebug.c (find_separate_debug_file_in_section): Return |
| 1749 | gdb_bfd_ref_ptr. |
| 1750 | * machoread.c (macho_add_oso_symfile): Change abfd to |
| 1751 | gdb_bfd_ref_ptr. |
| 1752 | (macho_symfile_read_all_oso): Update. |
| 1753 | (macho_check_dsym): Return gdb_bfd_ref_ptr. |
| 1754 | (macho_symfile_read): Update. |
| 1755 | * jit.c (bfd_open_from_target_memory): Return gdb_bfd_ref_ptr. |
| 1756 | (jit_bfd_try_read_symtab): Update. |
| 1757 | * gdb_bfd.h (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr) |
| 1758 | (gdb_bfd_openw, gdb_bfd_openr_iovec) |
| 1759 | (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return |
| 1760 | gdb_bfd_ref_ptr. |
| 1761 | (gdb_bfd_ref_policy): New struct. |
| 1762 | (gdb_bfd_ref_ptr): New typedef. |
| 1763 | * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr) |
| 1764 | (gdb_bfd_openw, gdb_bfd_openr_iovec) |
| 1765 | (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return |
| 1766 | gdb_bfd_ref_ptr. |
| 1767 | * gcore.h (create_gcore_bfd): Return gdb_bfd_ref_ptr. |
| 1768 | * gcore.c (create_gcore_bfd): Return gdb_bfd_ref_ptr. |
| 1769 | (gcore_command): Update. |
| 1770 | * exec.c (exec_file_attach): Update. |
| 1771 | * elfread.c (elf_symfile_read): Update. |
| 1772 | * dwarf2read.c (dwarf2_get_dwz_file): Update. |
| 1773 | (try_open_dwop_file, open_dwo_file): Return gdb_bfd_ref_ptr. |
| 1774 | (open_and_init_dwo_file): Update. |
| 1775 | (open_dwp_file): Return gdb_bfd_ref_ptr. |
| 1776 | (open_and_init_dwp_file): Update. |
| 1777 | * corelow.c (core_open): Update. |
| 1778 | * compile/compile-object-load.c (compile_object_load): Update. |
| 1779 | * common/gdb_ref_ptr.h (ref_ptr::operator->): New operator. |
| 1780 | * coffread.c (coff_symfile_read): Update. |
| 1781 | * cli/cli-dump.c (bfd_openr_or_error, bfd_openw_or_error): Return |
| 1782 | gdb_bfd_ref_ptr. Rename. |
| 1783 | (dump_bfd_file, restore_command): Update. |
| 1784 | * build-id.h (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr. |
| 1785 | * build-id.c (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr. |
| 1786 | (find_separate_debug_file_by_buildid): Update. |
| 1787 | |
| 1788 | 2017-01-10 Tom Tromey <tom@tromey.com> |
| 1789 | |
| 1790 | * common/gdb_ref_ptr.h: New file. |
| 1791 | * python/py-ref.h (struct gdbpy_ref_policy): New. |
| 1792 | (gdbpy_ref): Now a typedef. |
| 1793 | |
| 1794 | 2017-01-10 Tom Tromey <tom@tromey.com> |
| 1795 | |
| 1796 | * utils.h (make_cleanup_htab_delete): Don't declare. |
| 1797 | * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete): |
| 1798 | Remove. |
| 1799 | * linespec.c (decode_compound_collector): Add constructor, |
| 1800 | destructor. |
| 1801 | (lookup_prefix_sym): Remove cleanup. |
| 1802 | (symtab_collector): Add constructor, destructor. |
| 1803 | (collect_symtabs_from_filename): Remove cleanup. |
| 1804 | * disasm.c (do_mixed_source_and_assembly): Use htab_up. |
| 1805 | * compile/compile-c-symbols.c (generate_c_for_variable_locations): |
| 1806 | Use htab_up. |
| 1807 | * gnu-v3-abi.c (gnuv3_print_vtable): Use htab_up. |
| 1808 | * dwarf2read.c (dw2_expand_symtabs_matching) |
| 1809 | (dw2_map_symbol_filenames, dwarf_decode_macros) |
| 1810 | (write_psymtabs_to_index): Use htab_up. |
| 1811 | * dwarf2loc.c (func_verify_no_selftailcall) |
| 1812 | (call_site_find_chain_1, func_verify_no_selftailcall) |
| 1813 | (chain_candidate, call_site_find_chain_1): Use std::unordered_set, |
| 1814 | std::vector, gdb::unique_xmalloc_ptr. |
| 1815 | (call_sitep): Remove typedef. |
| 1816 | (dwarf2_locexpr_baton_eval): Remove unused variable. |
| 1817 | |
| 1818 | 2017-01-10 Tom Tromey <tom@tromey.com> |
| 1819 | |
| 1820 | * python/python-internal.h (make_cleanup_py_decref) |
| 1821 | (make_cleanup_py_xdecref): Don't declare. |
| 1822 | * python/py-utils.c (py_decref, make_cleanup_py_decref) |
| 1823 | (py_xdecref, make_cleanup_py_xdecref): Remove. |
| 1824 | |
| 1825 | 2017-01-10 Tom Tromey <tom@tromey.com> |
| 1826 | |
| 1827 | * python/py-framefilter.c (py_mi_print_variables): Use gdbpy_ref. |
| 1828 | (py_print_locals, enumerate_locals, py_print_args): Use gdbpy_ref. |
| 1829 | |
| 1830 | 2017-01-10 Tom Tromey <tom@tromey.com> |
| 1831 | |
| 1832 | * python/py-framefilter.c (enumerate_args): Use gdbpy_ref. |
| 1833 | |
| 1834 | 2017-01-10 Tom Tromey <tom@tromey.com> |
| 1835 | |
| 1836 | * python/py-utils.c (unicode_to_encoded_string) |
| 1837 | (python_string_to_target_string) |
| 1838 | (python_string_to_target_python_string) |
| 1839 | (python_string_to_host_string, gdbpy_obj_to_string) |
| 1840 | (get_addr_from_python): Use gdbpy_ref. |
| 1841 | |
| 1842 | 2017-01-10 Tom Tromey <tom@tromey.com> |
| 1843 | |
| 1844 | * python/py-unwind.c (pyuw_object_attribute_to_pointer): Use |
| 1845 | gdbpy_ref. |
| 1846 | |
| 1847 | 2017-01-10 Tom Tromey <tom@tromey.com> |
| 1848 | |
| 1849 | * python/python.c (eval_python_command, gdbpy_decode_line) |
| 1850 | (gdbpy_run_events, gdbpy_start_type_printers) |
| 1851 | (gdbpy_apply_type_printers): Use gdbpy_ref. |
| 1852 | |
| 1853 | 2017-01-10 Tom Tromey <tom@tromey.com> |
| 1854 | |
| 1855 | * python/py-param.c (get_doc_string, compute_enum_values): Use |
| 1856 | gdbpy_ref. |
| 1857 | |
| 1858 | 2017-01-10 Tom Tromey <tom@tromey.com> |
| 1859 | |
| 1860 | * python/py-inferior.c (find_thread_object, build_inferior_list): |
| 1861 | Use gdbpy_ref. |
| 1862 | |
| 1863 | 2017-01-10 Tom Tromey <tom@tromey.com> |
| 1864 | |
| 1865 | * python/py-framefilter.c (py_print_frame): Use gdbpy_ref. |
| 1866 | |
| 1867 | 2017-01-10 Tom Tromey <tom@tromey.com> |
| 1868 | |
| 1869 | * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope): Use |
| 1870 | gdbpy_ref. |
| 1871 | |
| 1872 | 2017-01-10 Tom Tromey <tom@tromey.com> |
| 1873 | |
| 1874 | * python/py-cmd.c (cmdpy_completer_helper): Use gdbpy_ref. Remove |
| 1875 | extra incref. |
| 1876 | (cmdpy_completer_handle_brkchars, cmdpy_completer, cmdpy_init): |
| 1877 | Use gdbpy_ref. |
| 1878 | |
| 1879 | 2017-01-10 Tom Tromey <tom@tromey.com> |
| 1880 | |
| 1881 | * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use |
| 1882 | gdbpy_ref. |
| 1883 | |
| 1884 | 2017-01-10 Tom Tromey <tom@tromey.com> |
| 1885 | |
| 1886 | * python/py-arch.c (archpy_disassemble): Use gdbpy_ref. Don't |
| 1887 | decref results of PyArg_ParseTupleAndKeywords. |
| 1888 | |
| 1889 | 2017-01-10 Tom Tromey <tom@tromey.com> |
| 1890 | |
| 1891 | * python/python.c (python_run_simple_file): Use |
| 1892 | unique_xmalloc_ptr, gdbpy_ref. |
| 1893 | |
| 1894 | 2017-01-10 Tom Tromey <tom@tromey.com> |
| 1895 | |
| 1896 | * python/py-prettyprint.c (print_stack_unless_memory_error) |
| 1897 | (print_string_repr, print_children): Use gdbpy_ref. |
| 1898 | (dummy_python_frame): New class. |
| 1899 | (dummy_python_frame::dummy_python_frame): Rename from |
| 1900 | push_dummy_python_frame. |
| 1901 | (py_restore_tstate): Remove. |
| 1902 | |
| 1903 | 2017-01-10 Tom Tromey <tom@tromey.com> |
| 1904 | |
| 1905 | * python/py-framefilter.c (py_print_frame): Use gdbpy_ref. |
| 1906 | |
| 1907 | 2017-01-10 Tom Tromey <tom@tromey.com> |
| 1908 | |
| 1909 | * python/python.c (ensure_python_env, restore_python_env): |
| 1910 | Remove. |
| 1911 | * python/python-internal.h (ensure_python_env): Don't declare. |
| 1912 | * varobj.h (varobj_ensure_python_env): Don't declare. |
| 1913 | * varobj.c (varobj_ensure_python_env): Remove. |
| 1914 | |
| 1915 | 2017-01-10 Tom Tromey <tom@tromey.com> |
| 1916 | |
| 1917 | * varobj.c (varobj_value_get_print_value): Use |
| 1918 | gdbpy_enter_varobj. |
| 1919 | |
| 1920 | 2017-01-10 Tom Tromey <tom@tromey.com> |
| 1921 | |
| 1922 | * python/py-prettyprint.c (print_string_repr, print_children): |
| 1923 | Update. |
| 1924 | * python/py-lazy-string.c (gdbpy_extract_lazy_string): Change type |
| 1925 | of "encoding". |
| 1926 | * varobj.c (varobj_value_get_print_value): Update. |
| 1927 | * python/python-internal.h (gdbpy_extract_lazy_string): Update. |
| 1928 | |
| 1929 | 2017-01-10 Tom Tromey <tom@tromey.com> |
| 1930 | |
| 1931 | * varobj.c (varobj_get_display_hint) |
| 1932 | (dynamic_varobj_has_child_method, install_new_value_visualizer) |
| 1933 | (varobj_set_visualizer, free_variable): Use |
| 1934 | gdbpy_enter_varobj. |
| 1935 | |
| 1936 | 2017-01-10 Tom Tromey <tom@tromey.com> |
| 1937 | |
| 1938 | * python/python.c (python_command): Use gdbpy_enter, gdbpy_ref. |
| 1939 | (do_finish_initialization): New function. Use gdbpy_ref. |
| 1940 | (gdbpy_finish_initialization): Use gdbpy_enter. Call |
| 1941 | do_finish_initialization. |
| 1942 | |
| 1943 | 2017-01-10 Tom Tromey <tom@tromey.com> |
| 1944 | |
| 1945 | * python/py-param.c (get_set_value, get_show_value): Use |
| 1946 | gdbpy_enter, gdbpy_ref. |
| 1947 | |
| 1948 | 2017-01-10 Tom Tromey <tom@tromey.com> |
| 1949 | |
| 1950 | * python/py-function.c (fnpy_call): Use gdbpy_enter, gdbpy_ref. |
| 1951 | |
| 1952 | 2017-01-10 Tom Tromey <tom@tromey.com> |
| 1953 | |
| 1954 | * python/py-cmd.c (cmdpy_function): Use gdbpy_enter, gdbpy_ref. |
| 1955 | |
| 1956 | 2017-01-10 Tom Tromey <tom@tromey.com> |
| 1957 | |
| 1958 | * python/py-varobj.c (py_varobj_iter_dtor, py_varobj_iter_next): |
| 1959 | Use gdbpy_enter_varobj. |
| 1960 | |
| 1961 | 2017-01-10 Tom Tromey <tom@tromey.com> |
| 1962 | |
| 1963 | * varobj.c (gdbpy_enter_varobj): New constructor. |
| 1964 | * python/python-internal.h (gdbpy_enter_varobj): New class. |
| 1965 | * python/py-varobj.c (py_varobj_get_iterator): Use |
| 1966 | gdbpy_enter_varobj. |
| 1967 | |
| 1968 | 2017-01-10 Tom Tromey <tom@tromey.com> |
| 1969 | |
| 1970 | * python/py-xmethods.c (gdbpy_get_xmethod_result_type): Use |
| 1971 | gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr. |
| 1972 | (gdbpy_invoke_xmethod): Use gdbpy_ref, gdbpy_enter. |
| 1973 | (gdbpy_get_xmethod_arg_types): Use gdbpy_ref, |
| 1974 | unique_xmalloc_ptr. |
| 1975 | (gdbpy_get_xmethod_arg_types): Use gdbpy_ref, gdbpy_enter. |
| 1976 | |
| 1977 | 2017-01-10 Tom Tromey <tom@tromey.com> |
| 1978 | |
| 1979 | * python/py-xmethods.c (invoke_match_method): Use |
| 1980 | gdbpy_ref. |
| 1981 | |
| 1982 | 2017-01-10 Tom Tromey <tom@tromey.com> |
| 1983 | |
| 1984 | * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): use |
| 1985 | gdbpy_enter, gdbpy_ref. |
| 1986 | |
| 1987 | 2017-01-10 Tom Tromey <tom@tromey.com> |
| 1988 | |
| 1989 | * python/python.c (python_interactive_command): Use gdbpy_enter. |
| 1990 | |
| 1991 | 2017-01-10 Tom Tromey <tom@tromey.com> |
| 1992 | |
| 1993 | * python/python.c (gdbpy_before_prompt_hook): Use gdbpy_enter, |
| 1994 | gdbpy_ref. |
| 1995 | |
| 1996 | 2017-01-10 Tom Tromey <tom@tromey.com> |
| 1997 | |
| 1998 | * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Use |
| 1999 | gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr. |
| 2000 | |
| 2001 | 2017-01-10 Tom Tromey <tom@tromey.com> |
| 2002 | |
| 2003 | * utils.h (htab_deleter): New struct. |
| 2004 | (htab_up): New typedef. |
| 2005 | * python/py-framefilter.c (gdbpy_apply_frame_filter): Use |
| 2006 | gdbpy_enter, gdbpy_ref, htab_up. |
| 2007 | |
| 2008 | 2017-01-10 Tom Tromey <tom@tromey.com> |
| 2009 | |
| 2010 | * python/py-unwind.c (pending_frame_invalidate): Remove. |
| 2011 | (pyuw_sniffer): Use gdbpy_enter and gdbpy_ref. |
| 2012 | |
| 2013 | 2017-01-10 Tom Tromey <tom@tromey.com> |
| 2014 | |
| 2015 | * python/py-xmethods.c (gdbpy_free_xmethod_worker_data) |
| 2016 | (gdbpy_clone_xmethod_worker_data): Use gdbpy_enter. |
| 2017 | |
| 2018 | 2017-01-10 Tom Tromey <tom@tromey.com> |
| 2019 | |
| 2020 | * python/py-type.c (save_objfile_types): Use gdbpy_enter. |
| 2021 | |
| 2022 | 2017-01-10 Tom Tromey <tom@tromey.com> |
| 2023 | |
| 2024 | * python/python.c (gdbpy_eval_from_control_command) |
| 2025 | (gdbpy_source_script, gdbpy_run_events) |
| 2026 | (gdbpy_source_objfile_script, gdbpy_execute_objfile_script) |
| 2027 | (gdbpy_free_type_printers, gdbpy_finish_initialization): Use |
| 2028 | gdbpy_enter. |
| 2029 | |
| 2030 | 2017-01-10 Tom Tromey <tom@tromey.com> |
| 2031 | |
| 2032 | * python/py-progspace.c (py_free_pspace): Use gdbpy_enter. |
| 2033 | |
| 2034 | 2017-01-10 Tom Tromey <tom@tromey.com> |
| 2035 | |
| 2036 | * python/py-objfile.c (py_free_objfile): Use gdbpy_enter. |
| 2037 | |
| 2038 | 2017-01-10 Tom Tromey <tom@tromey.com> |
| 2039 | |
| 2040 | * python/py-inferior.c (python_on_normal_stop, python_on_resume) |
| 2041 | (python_on_inferior_call_pre, python_on_inferior_call_post) |
| 2042 | (python_on_memory_change, python_on_register_change) |
| 2043 | (python_inferior_exit, python_new_objfile, add_thread_object) |
| 2044 | (delete_thread_object, py_free_inferior): Use gdbpy_enter. |
| 2045 | |
| 2046 | 2017-01-10 Tom Tromey <tom@tromey.com> |
| 2047 | |
| 2048 | * python/py-finishbreakpoint.c (bpfinishpy_handle_stop) |
| 2049 | (bpfinishpy_handle_exit): Use gdbpy_enter. |
| 2050 | |
| 2051 | 2017-01-10 Tom Tromey <tom@tromey.com> |
| 2052 | |
| 2053 | * python/py-cmd.c (cmdpy_destroyer) |
| 2054 | (cmdpy_completer_handle_brkchars, cmdpy_completer): Use |
| 2055 | gdbpy_enter. |
| 2056 | |
| 2057 | 2017-01-10 Tom Tromey <tom@tromey.com> |
| 2058 | |
| 2059 | * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use |
| 2060 | gdbpy_enter. |
| 2061 | (gdbpy_breakpoint_has_cond): Likewise. |
| 2062 | |
| 2063 | 2017-01-10 Tom Tromey <tom@tromey.com> |
| 2064 | |
| 2065 | * python/python.c (gdbpy_enter): New constructor. |
| 2066 | (~gdbpy_enter): New destructor. |
| 2067 | (restore_python_env, ensure_python_env): Rewrite. |
| 2068 | * python/python-internal.h (gdbpy_enter): New class. |
| 2069 | |
| 2070 | 2017-01-10 Tom Tromey <tom@tromey.com> |
| 2071 | |
| 2072 | * python/py-symbol.c (gdbpy_lookup_symbol): Use gdbpy_ref. |
| 2073 | |
| 2074 | 2017-01-10 Tom Tromey <tom@tromey.com> |
| 2075 | |
| 2076 | * python/py-value.c (value_has_field, get_field_flag) |
| 2077 | (get_field_type, valpy_getitem, convert_value_from_python): Use |
| 2078 | gdbpy_ref. |
| 2079 | |
| 2080 | 2017-01-10 Tom Tromey <tom@tromey.com> |
| 2081 | |
| 2082 | * python/python.c (gdbpy_progspaces, gdbpy_objfiles): Use |
| 2083 | gdbpy_ref. |
| 2084 | |
| 2085 | 2017-01-10 Tom Tromey <tom@tromey.com> |
| 2086 | |
| 2087 | * python/py-prettyprint.c (search_pp_list) |
| 2088 | (find_pretty_printer_from_objfiles) |
| 2089 | (find_pretty_printer_from_progspace) |
| 2090 | (find_pretty_printer_from_gdb, find_pretty_printer) |
| 2091 | (gdbpy_get_display_hint, gdbpy_get_varobj_pretty_printer): Use |
| 2092 | gdbpy_ref. |
| 2093 | |
| 2094 | 2017-01-10 Tom Tromey <tom@tromey.com> |
| 2095 | |
| 2096 | * python/py-param.c (call_doc_function): Use gdbpy_ref. |
| 2097 | |
| 2098 | 2017-01-10 Tom Tromey <tom@tromey.com> |
| 2099 | |
| 2100 | * python/py-linetable.c (build_line_table_tuple_from_pcs) |
| 2101 | (ltpy_get_all_source_lines): Use gdbpy_ref. |
| 2102 | |
| 2103 | 2017-01-10 Tom Tromey <tom@tromey.com> |
| 2104 | |
| 2105 | * python/py-framefilter.c (extract_sym, extract_value) |
| 2106 | (get_py_iter_from_func, bootstrap_python_frame_filters): Use |
| 2107 | gdbpy_ref. |
| 2108 | |
| 2109 | 2017-01-10 Tom Tromey <tom@tromey.com> |
| 2110 | |
| 2111 | * python/py-breakpoint.c (gdbpy_breakpoints): Use gdbpy_ref. |
| 2112 | |
| 2113 | 2017-01-10 Tom Tromey <tom@tromey.com> |
| 2114 | |
| 2115 | * python/py-inferior.c (gdbpy_inferiors): Use gdbpy_ref. |
| 2116 | |
| 2117 | 2017-01-10 Tom Tromey <tom@tromey.com> |
| 2118 | |
| 2119 | * python/py-function.c (convert_values_to_python, fnpy_init): Use |
| 2120 | gdbpy_ref. |
| 2121 | |
| 2122 | 2017-01-10 Tom Tromey <tom@tromey.com> |
| 2123 | |
| 2124 | * python/py-cmd.c (gdbpy_string_to_argv): Use gdbpy_ref. |
| 2125 | |
| 2126 | 2017-01-10 Tom Tromey <tom@tromey.com> |
| 2127 | |
| 2128 | * python/py-type.c (convert_field, make_fielditem, typy_fields) |
| 2129 | (typy_range): Use gdbpy_ref. |
| 2130 | |
| 2131 | 2017-01-10 Tom Tromey <tom@tromey.com> |
| 2132 | |
| 2133 | * python/py-threadevent.c (create_thread_event_object): Use |
| 2134 | gdbpy_ref. |
| 2135 | * python/py-stopevent.c (create_stop_event_object): Simplify. |
| 2136 | (emit_stop_event): Use gdbpy_ref. |
| 2137 | * python/py-signalevent.c (create_signal_event_object): Use |
| 2138 | gdbpy_ref. |
| 2139 | * python/py-newobjfileevent.c (create_new_objfile_event_object) |
| 2140 | (emit_new_objfile_event, create_clear_objfiles_event_object) |
| 2141 | (emit_clear_objfiles_event): Use gdbpy_ref. |
| 2142 | * python/py-infevents.c (create_inferior_call_event_object) |
| 2143 | (create_register_changed_event_object) |
| 2144 | (create_memory_changed_event_object, emit_inferior_call_event) |
| 2145 | (emit_memory_changed_event, emit_register_changed_event): Use |
| 2146 | gdbpy_ref. |
| 2147 | * python/py-exitedevent.c (create_exited_event_object) |
| 2148 | (emit_exited_event): Use gdbpy_ref. |
| 2149 | * python/py-event.h (evpy_emit_event): Remove |
| 2150 | CPYCHECKER_STEALS_REFERENCE_TO_ARG annotation. |
| 2151 | * python/py-event.c (evpy_emit_event): Use gdbpy_ref. |
| 2152 | * python/py-continueevent.c (emit_continue_event): Use |
| 2153 | gdbpy_ref. |
| 2154 | * python/py-breakpoint.c (gdbpy_breakpoint_created) |
| 2155 | (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use |
| 2156 | gdbpy_ref. |
| 2157 | * python/py-bpevent.c (create_breakpoint_event_object): Use |
| 2158 | gdbpy_ref. |
| 2159 | |
| 2160 | 2017-01-10 Tom Tromey <tom@tromey.com> |
| 2161 | |
| 2162 | * python/py-ref.h: New file. |
| 2163 | |
| 2164 | 2017-01-10 Simon Marchi <simon.marchi@ericsson.com> |
| 2165 | |
| 2166 | * cli-out.c (cli_ui_out::do_redirect): Change return type to |
| 2167 | void. |
| 2168 | * cli-out.h (cli_ui_out::do_redirect): Likewise. |
| 2169 | * mi/mi-out.c (mi_ui_out::do_redirect): Likewise. |
| 2170 | * mi/mi-out.h (mi_ui_out::do_redirect): Likewise. |
| 2171 | * ui-out.c (ui_out::redirect): Likewise. |
| 2172 | * ui-out.h (ui_out::redirect, ui_out::do_redirect): Likewise. |
| 2173 | * cli/cli-logging.c (set_logging_redirect): Update call site of |
| 2174 | ui_out::redirect. |
| 2175 | (handle_redirections): Likewise. |
| 2176 | * scm-ports.c (ioscm_with_output_to_port_worker): Likewise. |
| 2177 | * top.c (execute_command_to_string): Likewise. |
| 2178 | * utils.c (do_ui_out_redirect_pop): Likewise. |
| 2179 | |
| 2180 | 2017-01-10 Simon Marchi <simon.marchi@ericsson.com> |
| 2181 | |
| 2182 | * stack.c (_initialize_stack): Update "frame" command help message. |
| 2183 | |
| 2184 | 2017-01-08 Iain Buclaw <ibuclaw@gdcproject.org> |
| 2185 | |
| 2186 | * d-exp.y (CastExpression): Emit UNOP_CAST_TYPE. |
| 2187 | |
| 2188 | 2017-01-06 Yao Qi <yao.qi@linaro.org> |
| 2189 | |
| 2190 | * x86-linux-nat.h: Include gdb_proc_service.h. |
| 2191 | |
| 2192 | 2017-01-06 Yao Qi <yao.qi@linaro.org> |
| 2193 | |
| 2194 | * ser-base.h: Include serial.h. |
| 2195 | |
| 2196 | 2017-01-06 Yao Qi <yao.qi@linaro.org> |
| 2197 | |
| 2198 | * ppc-linux-tdep.h: Include ppc-tdep.h. |
| 2199 | |
| 2200 | 2017-01-06 Yao Qi <yao.qi@linaro.org> |
| 2201 | |
| 2202 | * nat/amd64-linux-siginfo.h: Include signal.h. |
| 2203 | |
| 2204 | 2017-01-06 Yao Qi <yao.qi@linaro.org> |
| 2205 | |
| 2206 | * nat/aarch64-linux-hw-point.h: Include break-common.h. |
| 2207 | |
| 2208 | 2017-01-06 Yao Qi <yao.qi@linaro.org> |
| 2209 | |
| 2210 | * mi/mi-parse.h: Include mi-cmds.h. |
| 2211 | |
| 2212 | 2017-01-06 Yao Qi <yao.qi@linaro.org> |
| 2213 | |
| 2214 | * inf-loop.c: Don't include "target.h". |
| 2215 | * inf-loop.h: Include it here. |
| 2216 | |
| 2217 | 2017-01-06 Yao Qi <yao.qi@linaro.org> |
| 2218 | |
| 2219 | * dfp.h: Include "dboulest.h" and "expression.h". |
| 2220 | |
| 2221 | 2017-01-06 Yao Qi <yao.qi@linaro.org> |
| 2222 | |
| 2223 | * ax-gdb.h: Include "ax.h". |
| 2224 | |
| 2225 | 2017-01-06 Yao Qi <yao.qi@linaro.org> |
| 2226 | |
| 2227 | * Makefile.in (HFILES_NO_SRCDIR): Replace gdb_ptrace.h |
| 2228 | with nat/gdb_ptrace.h. |
| 2229 | |
| 2230 | 2017-01-05 Yao Qi <yao.qi@linaro.org> |
| 2231 | |
| 2232 | * mips-fbsd-tdep.c (mips_fbsd_sigframe_init): Move && to |
| 2233 | new line. |
| 2234 | (mips64_fbsd_sigframe_init): Likewise. |
| 2235 | |
| 2236 | 2017-01-04 John Baldwin <jhb@FreeBSD.org> |
| 2237 | |
| 2238 | * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Use |
| 2239 | GDB_OSABI_FREEBSD instead of GDB_OSABI_FREEBSD_ELF. |
| 2240 | |
| 2241 | 2017-01-04 John Baldwin <jhb@FreeBSD.org> |
| 2242 | |
| 2243 | * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c. |
| 2244 | * NEWS: Mention new FreeBSD/mips native configuration. |
| 2245 | * config/mips/fbsd.mh: New file. |
| 2246 | * configure.host: Add mips*-*-freebsd*. |
| 2247 | * mips-fbsd-nat.c: New file. |
| 2248 | |
| 2249 | 2017-01-04 John Baldwin <jhb@FreeBSD.org> |
| 2250 | |
| 2251 | * Makefile.in (ALL_TARGET_OBS): Add mips-fbsd-tdep.o. |
| 2252 | (ALLDEPFILES): Add mips-fbsd-tdep.c. |
| 2253 | * NEWS: Mention new FreeBSD/mips target. |
| 2254 | * configure.tgt: Add mips*-*-freebsd*. |
| 2255 | * mips-fbsd-tdep.c: New file. |
| 2256 | * mips-fbsd-tdep.h: New file. |
| 2257 | |
| 2258 | 2017-01-04 Yao Qi <yao.qi@linaro.org> |
| 2259 | |
| 2260 | * dwarf2loc.c (write_pieced_value): Don't use VALUE_FRAME_ID (to), |
| 2261 | use c->frame_id when the piece location is DWARF_VALUE_REGISTER. |
| 2262 | |
| 2263 | 2017-01-01 Joel Brobecker <brobecker@adacore.com> |
| 2264 | |
| 2265 | Update copyright year range in all GDB files. |
| 2266 | |
| 2267 | 2017-01-01 Joel Brobecker <brobecker@adacore.com> |
| 2268 | |
| 2269 | * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2016. |
| 2270 | |
| 2271 | For older changes see ChangeLog-2016. |
| 2272 | \f |
| 2273 | Local Variables: |
| 2274 | mode: change-log |
| 2275 | left-margin: 8 |
| 2276 | fill-column: 74 |
| 2277 | version-control: never |
| 2278 | coding: utf-8 |
| 2279 | End: |