| 1 | 2017-08-22 Tom Tromey <tom@tromey.com> |
| 2 | |
| 3 | * utils.c (gdb_realpath_keepfile): Return a |
| 4 | gdb::unique_xmalloc_ptr. |
| 5 | * exec.c (exec_file_attach): Update. |
| 6 | * utils.h (gdb_realpath_keepfile): Return a |
| 7 | gdb::unique_xmalloc_ptr. |
| 8 | |
| 9 | 2017-08-22 Tom Tromey <tom@tromey.com> |
| 10 | |
| 11 | * compile/compile.c (compile_file_command): Use |
| 12 | gdb::unique_xmalloc_ptr, std::string. |
| 13 | * utils.c (gdb_abspath): Change return type. |
| 14 | * source.c (openp): Update. |
| 15 | * objfiles.c (allocate_objfile): Update. |
| 16 | * main.c (set_gdb_data_directory): Update. |
| 17 | * utils.h (gdb_abspath): Return a gdb::unique_xmalloc_ptr. |
| 18 | |
| 19 | 2017-08-22 Zhouyi Zhou <zhouzhouyi@gmail.com> |
| 20 | |
| 21 | * cli-cmds.c (list_commands): List actual code around more than |
| 22 | one location. |
| 23 | |
| 24 | 2017-08-21 John Baldwin <jhb@FreeBSD.org> |
| 25 | |
| 26 | * fbsd-nat.c (fbsd_add_threads): Use array type for `lwps'. |
| 27 | |
| 28 | 2017-08-21 Pedro Alves <palves@redhat.com> |
| 29 | |
| 30 | PR gdb/19487 |
| 31 | * c-exp.y (variable production): Handle function aliases. |
| 32 | * minsyms.c (msymbol_is_text): New function. |
| 33 | * minsyms.h (msymbol_is_text): Declare. |
| 34 | * symtab.c (find_function_alias_target): New function. |
| 35 | * symtab.h (find_function_alias_target): Declare. |
| 36 | |
| 37 | 2017-08-21 Pedro Alves <palves@redhat.com> |
| 38 | |
| 39 | * eval.c (evaluate_subexp_standard) <OP_TYPE>: Don't dig past |
| 40 | typedefs. |
| 41 | * typeprint.c (whatis_exp): If handling "whatis", and expression |
| 42 | is OP_TYPE, strip one typedef level. Otherwise don't strip |
| 43 | typedefs here. |
| 44 | * valops.c (value_cast): Save "to" type before resolving |
| 45 | stubs/typedefs. Use that type as resulting value's type. |
| 46 | |
| 47 | 2017-08-18 Tom Tromey <tom@tromey.com> |
| 48 | Pedro Alves <palves@redhat.com> |
| 49 | |
| 50 | * spu-multiarch.c (parse_spufs_run): Use scoped_restore. |
| 51 | * sol-thread.c (sol_thread_resume, sol_thread_wait) |
| 52 | (sol_thread_xfer_partial, rw_common): Use scoped_restore. |
| 53 | * procfs.c (procfs_do_thread_registers): Use scoped_restore. |
| 54 | * proc-service.c (ps_xfer_memory): Use scoped_restore. |
| 55 | * linux-tdep.c (linux_corefile_thread): Remove a cleanup. |
| 56 | (linux_get_siginfo_data): Add "thread" argument. Use |
| 57 | scoped_restore. |
| 58 | * linux-nat.c (linux_child_follow_fork) |
| 59 | (check_stopped_by_watchpoint): Use scoped_restore. |
| 60 | * infrun.c (displaced_step_prepare_throw, write_memory_ptid) |
| 61 | (THREAD_STOPPED_BY, handle_signal_stop): Use scoped_restore. |
| 62 | (restore_inferior_ptid, save_inferior_ptid): Remove. |
| 63 | * btrace.c (btrace_fetch): Use scoped_restore. |
| 64 | * bsd-uthread.c (bsd_uthread_fetch_registers) |
| 65 | (bsd_uthread_store_registers): Use scoped_restore. |
| 66 | * breakpoint.c (reattach_breakpoints, detach_breakpoints): Use |
| 67 | scoped_restore. |
| 68 | * aix-thread.c (aix_thread_resume, aix_thread_wait) |
| 69 | (aix_thread_xfer_partial): Use scoped_restore. |
| 70 | * inferior.h (save_inferior_ptid): Remove. |
| 71 | |
| 72 | 2017-08-18 Yao Qi <yao.qi@linaro.org> |
| 73 | |
| 74 | PR tdep/21818 |
| 75 | * arm-tdep.c (gdb_print_insn_arm): Mark |
| 76 | USER_SPECIFIED_MACHINE_TYPE if exec_bfd isn't NULL. |
| 77 | |
| 78 | 2017-08-18 Yao Qi <yao.qi@linaro.org> |
| 79 | |
| 80 | * NEWS: Mention GDBserver's new option "--selftest". |
| 81 | * Makefile.in (SFILES): Remove selftest.c, add common/selftest.c. |
| 82 | * selftest.c: Move it to common/selftest.c. |
| 83 | * selftest.h: Move it to common/selftest.h. |
| 84 | * selftest-arch.c (reset): New function. |
| 85 | (tests_with_arch): Call reset. |
| 86 | |
| 87 | 2017-08-18 Yao Qi <yao.qi@linaro.org> |
| 88 | |
| 89 | * selftest.c (run_tests): Don't call QUIT. Call debug_printf |
| 90 | instead of exception_fprintf and printf_filtered. |
| 91 | |
| 92 | 2017-08-18 Yao Qi <yao.qi@linaro.org> |
| 93 | |
| 94 | * selftest.c (register_self_test): Rename it to |
| 95 | selftests::register_test. |
| 96 | (run_self_tests): selftest::run_tests. |
| 97 | * selftest.h: Update declarations. |
| 98 | * selftest-arch.c (register_self_test_foreach_arch): Rename it to |
| 99 | selftests::register_test_foreach_arch. |
| 100 | * selftest-arch.h: Update declaration. |
| 101 | * aarch64-tdep.c: Update. |
| 102 | * arm-tdep.c: Likewise. |
| 103 | * disasm-selftests.c: Likewise. |
| 104 | * dwarf2loc.c: Likewise. |
| 105 | * dwarf2-frame.c: Likewise. |
| 106 | * findvar.c: Likewise. |
| 107 | * gdbarch-selftests.c: Likewise. |
| 108 | * maint.c (maintenance_selftest): Likewise. |
| 109 | * regcache.c: Likewise. |
| 110 | * rust-exp.y: Likewise. |
| 111 | * selftest-arch.c: Likewise. |
| 112 | * unittests/environ-selftests.c: Likewise. |
| 113 | * unittests/function-view-selftests.c: Likewise. |
| 114 | * unittests/offset-type-selftests.c: Likewise. |
| 115 | * unittests/optional-selftests.c: Likewise. |
| 116 | * unittests/scoped_restore-selftests.c: Likewise. |
| 117 | * utils-selftests.c: Likewise. |
| 118 | |
| 119 | 2017-08-17 Pedro Alves <palves@redhat.com> |
| 120 | |
| 121 | * cli/cli-cmds.c (source_command): Delete 'old_source_verbose' |
| 122 | local. |
| 123 | |
| 124 | 2017-08-17 Pedro Alves <palves@redhat.com> |
| 125 | |
| 126 | * dwarf2read.c (struct dwarf2_cu) <line_header_die_owner>: New |
| 127 | field. |
| 128 | (reset_die_in_process): Delete, replaced by ... |
| 129 | (process_die_scope): ... this new class. Make it responsible for |
| 130 | freeing cu->line_header too. |
| 131 | (process_die): Use process_die_scope. |
| 132 | (handle_DW_AT_stmt_list): Record the line header's owner CU/DIE in |
| 133 | cu->line_header_die_owner. Don't release the line header if it's |
| 134 | owned by the CU. |
| 135 | (setup_type_unit_groups): Make the CU/DIE own the line header. |
| 136 | Don't release the line header here. |
| 137 | |
| 138 | 2017-08-17 Alex Lindsay <alexlindsay239@gmail.com> (tiny change) |
| 139 | |
| 140 | * elfread.c (elf_read_minimal_symbols): xfree synthsyms. |
| 141 | |
| 142 | 2017-08-17 Ruslan Kabatsayev <b7.10110111@gmail.com> |
| 143 | |
| 144 | * NEWS: Mention new shortcuts for nexti and stepi in TUI |
| 145 | Single-Key mode |
| 146 | |
| 147 | 2017-08-16 Ruslan Kabatsayev <b7.10110111@gmail.com> |
| 148 | |
| 149 | * tui/tui.c (tui_commands): Add "nexti" and "stepi" to the Single-Key |
| 150 | mode command list. |
| 151 | |
| 152 | 2017-08-15 Stafford Horne <shorne@gmail.com> |
| 153 | |
| 154 | * MAINTAINERS (Write After Approval): Add Stafford Horne. |
| 155 | |
| 156 | 2017-08-15 Stafford Horne <shorne@gmail.com> |
| 157 | |
| 158 | * xtensa-tdep.c (xtensa_init_reggroups): Use xstrdup for cpname. |
| 159 | |
| 160 | 2017-08-15 Sergio Durigan Junior <sergiodj@redhat.com> |
| 161 | |
| 162 | PR gdb/21954 |
| 163 | * infcmd.c (unset_environment_command): Use the 'clear' method on |
| 164 | the environment instead of resetting it. |
| 165 | |
| 166 | 2017-08-15 John Baldwin <jhb@FreeBSD.org> |
| 167 | |
| 168 | * fbsd-nat.c (fbsd_convert_siginfo): Fix compile on big-endian |
| 169 | platforms. |
| 170 | |
| 171 | 2017-08-14 Tom Tromey <tom@tromey.com> |
| 172 | |
| 173 | * valprint.c (print_octal_chars): Use HOST_CHAR_BIT. |
| 174 | (print_binary_chars): Likewise. |
| 175 | (BITS_IN_BYTES): Remove. |
| 176 | |
| 177 | 2017-08-14 Tom Tromey <tom@tromey.com> |
| 178 | |
| 179 | PR gdb/21675 |
| 180 | * valprint.c (LOW_ZERO): Change value to 034. |
| 181 | (print_octal_chars): Add static_asserts for octal constants. |
| 182 | * printcmd.c (print_scalar_formatted): Add 'd' case. |
| 183 | |
| 184 | 2017-08-11 Tom Tromey <tom@tromey.com> |
| 185 | |
| 186 | * symfile.c (add_symbol_file_command): Use std::vector. |
| 187 | |
| 188 | 2017-08-14 Tom Tromey <tom@tromey.com> |
| 189 | |
| 190 | * break-catch-throw.c (handle_gnu_v3_exceptions): Use std::move. |
| 191 | * break-catch-syscall.c (create_syscall_event_catchpoint): Use |
| 192 | std::move. |
| 193 | * break-catch-sig.c (create_signal_catchpoint): Use std::move. |
| 194 | |
| 195 | 2017-08-11 Pedro Alves <palves@redhat.com> |
| 196 | |
| 197 | * infrun.c (process_event_stop_test): Adjust |
| 198 | function_name_is_marked_for_skip call. |
| 199 | * skip.c: Include <list>. |
| 200 | (skiplist_entry): Make it a class with private fields, and |
| 201 | getters/setters. |
| 202 | (skiplist_entry_chain): Delete. |
| 203 | (skiplist_entries): New. |
| 204 | (skiplist_entry_count): Delete. |
| 205 | (highest_skiplist_entry_num): New. |
| 206 | (ALL_SKIPLIST_ENTRIES, ALL_SKIPLIST_ENTRIES_SAFE): Delete. |
| 207 | (add_skiplist_entry): Delete. |
| 208 | (skiplist_entry::skiplist_entry): New. |
| 209 | (skiplist_entry::add_entry): New. |
| 210 | (skip_file_command, skip_function): Adjust. |
| 211 | (compile_skip_regexp): Delete. |
| 212 | (skip_command): Don't compile regexp here. Adjust to use |
| 213 | skiplist_entry::add_entry. |
| 214 | (skip_info): Adjust to use range-for and getters. |
| 215 | (skip_enable_command, skip_disable_command): Adjust to use |
| 216 | range-for and setters. |
| 217 | (skip_delete_command): Adjust to use std::list. |
| 218 | (add_skiplist_entry): Delete. |
| 219 | (skip_file_p): Delete, refactored as ... |
| 220 | (skiplist_entry::do_skip_file_p): ... this new method. |
| 221 | (skip_gfile_p): Delete, refactored as ... |
| 222 | (skiplist_entry::do_gskip_file_p): ... this new method. |
| 223 | (skip_function_p, skip_rfunction_p): Delete, refactored as ... |
| 224 | (skiplist_entry::skip_function_p): ... this new method. |
| 225 | (function_name_is_marked_for_skip): Now returns bool, and takes |
| 226 | the function sal by const reference. Adjust to use range-for and |
| 227 | skiplist_entry methods. |
| 228 | (_initialize_step_skip): Remove references to |
| 229 | skiplist_entry_chain, skiplist_entry_count. |
| 230 | * skip.h (function_name_is_marked_for_skip): Now returns bool, and |
| 231 | takes the function sal by const reference. |
| 232 | |
| 233 | 2017-08-11 Yao Qi <yao.qi@linaro.org> |
| 234 | |
| 235 | * dwarf2-frame.c (clear_pointer_cleanup): Remove. |
| 236 | (dwarf2_frame_cache): Remove reset_cache_cleanup. |
| 237 | (dwarf2_frame_cache): |
| 238 | * frame-unwind.c (frame_unwind_try_unwinder): Catch |
| 239 | RETURN_MASK_ALL and set *this_case to NULL. |
| 240 | * frame-unwind.h: Update comments. |
| 241 | |
| 242 | 2017-08-11 Yao Qi <yao.qi@linaro.org> |
| 243 | |
| 244 | * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Remove. |
| 245 | (dwarf2_frame_state_copy_regs): Remove. |
| 246 | (dwarf2_frame_state_free_regs): Remove. |
| 247 | (dwarf2_frame_state::~dwarf2_frame_state): Remove. |
| 248 | (dwarf2_restore_rule): Call method .alloc_regs instead of |
| 249 | dwarf2_frame_state_alloc_regs. |
| 250 | (execute_cfa_program): Likewise. Call dwarf2_frame_state_reg_info |
| 251 | constructor. Call std::move. |
| 252 | (dwarf2_fetch_cfa_info): Don't call dwarf2_frame_state_copy_regs. |
| 253 | (dwarf2_frame_cache): Likewise. |
| 254 | |
| 255 | [GDB_SELF_TEST]: Include selftest.h and |
| 256 | selftest-arch.h. |
| 257 | [GDB_SELF_TEST] (execute_cfa_program_test): New function. |
| 258 | (_initialize_dwarf2_frame) [GDB_SELF_TEST]: Register |
| 259 | execute_cfa_program_test. |
| 260 | |
| 261 | * dwarf2-frame.h (dwarf2_frame_state_reg_info): Add ctor, dtor, |
| 262 | copy ctor, assignment operator, move assignment. |
| 263 | <alloc_regs>: New method. |
| 264 | <swap>: New method. |
| 265 | (struct dwarf2_frame_state): Delete dtor. |
| 266 | (dwarf2_frame_state_alloc_regs): Remove declaration. |
| 267 | * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): Don't call |
| 268 | dwarf2_frame_state_alloc_regs, use .alloc_regs instead. |
| 269 | |
| 270 | 2017-08-11 Yao Qi <yao.qi@linaro.org> |
| 271 | |
| 272 | * dwarf2-frame.c (dwarf2_frame_state_free): Remove. |
| 273 | (dwarf2_frame_state::dwarf2_frame_state): New. |
| 274 | (dwarf2_frame_state::~dwarf2_frame_state): New. |
| 275 | (dwarf2_fetch_cfa_info): Update. |
| 276 | (dwarf2_frame_cache): Remove old_chain. Change 'fs' to an object |
| 277 | rather than a pointer. Update code. |
| 278 | * dwarf2-frame.h (struct dwarf2_frame_state): Declare ctor and |
| 279 | dtor. |
| 280 | <data_align, code_align, retaddr_column>: Change them to const. |
| 281 | <armcc_cfa_offsets_sf, armcc_cfa_offsets_reversed>: Change them |
| 282 | to bool. |
| 283 | |
| 284 | 2017-08-11 Yao Qi <yao.qi@linaro.org> |
| 285 | |
| 286 | * dwarf2-frame.h (struct dwarf2_frame_state_reg) <exp_len>: Remove. |
| 287 | <loc.exp>: New field. |
| 288 | * dwarf2-frame.c (execute_cfa_program): Update. |
| 289 | (dwarf2_frame_prev_register): Update. |
| 290 | |
| 291 | 2017-08-10 Pedro Alves <palves@redhat.com> |
| 292 | |
| 293 | * common/gdb_unique_ptr.h (xfree_deleter<T[]>): Define. |
| 294 | |
| 295 | 2017-08-09 John Baldwin <jhb@FreeBSD.org> |
| 296 | |
| 297 | * fbsd-nat.c (struct fbsd_fork_info): Remove. |
| 298 | (fbsd_pending_children): Use std::list. |
| 299 | (fbsd_remember_child): Likewise. |
| 300 | (fbsd_is_child_pending): Likewise. |
| 301 | (fbsd_pending_vfork_done): Use std::forward_list. |
| 302 | (fbsd_add_vfork_done): Likewise. |
| 303 | (fbsd_is_vfork_done_pending): Likewise. |
| 304 | (fbsd_next_vfork_done): Likewise. |
| 305 | |
| 306 | 2017-08-09 John Baldwin <jhb@FreeBSD.org> |
| 307 | |
| 308 | * fbsd-nat.c [HAVE_KINFO_GETVMMAP] (struct free_deleter): New. |
| 309 | (fbsd_find_memory_regions): Use free_deleter with std::unique_ptr. |
| 310 | [!HAVE_KINFO_GETVMMAP] (fbsd_find_memory_regions): Use std::string |
| 311 | for `mapfilename'. |
| 312 | (fbsd_xfer_partial): Use gdb::byte_vector. |
| 313 | (fbsd_add_threads): Use gdb::unique_xmalloc_ptr. |
| 314 | |
| 315 | 2017-08-09 John Baldwin <jhb@FreeBSD.org> |
| 316 | |
| 317 | * fbsd-nat.c: [!HAVE_KINFO_GETVMMAP]: Include <sys/user.h> and |
| 318 | "filestuff.h". |
| 319 | (fbsd_find_memory_regions): Fix `mapfile' initialization. |
| 320 | |
| 321 | 2017-08-09 Tom Tromey <tom@tromey.com> |
| 322 | |
| 323 | * skip.c (skiplist_entry): New constructor. |
| 324 | (skiplist_entry::enabled, skiplist_entry::function_is_regexp) |
| 325 | (skiplist_entry::file_is_glob): Now bool. |
| 326 | (skiplist_entry::file, skiplist_entry::function): Now |
| 327 | std::string. |
| 328 | (make_skip_entry): Return a unique_ptr. Use new. |
| 329 | (free_skiplist_entry, free_skiplist_entry_cleanup) |
| 330 | (make_free_skiplist_entry_cleanup): Remove. |
| 331 | (skip_command, skip_disable_command, add_skiplist_entry) |
| 332 | (skip_form_bytes, compile_skip_regexp, skip_command, skip_info) |
| 333 | (skip_file_p, skip_gfile_p, skip_function_p, skip_rfunction_p) |
| 334 | (function_name_is_marked_for_skip): Update. |
| 335 | (skip_delete_command): Update. Use delete. |
| 336 | |
| 337 | 2017-08-09 Jiong Wang <jiong.wang@arm.com> |
| 338 | |
| 339 | * aarch64-linux-tdep.c: Include "auxv.h" and "elf/common.h". |
| 340 | (aarch64_linux_core_read_description): New function. |
| 341 | (aarch64_linux_init_abi): Register gdbarch_core_read_description. |
| 342 | |
| 343 | 2017-08-09 Pedro Alves <palves@redhat.com> |
| 344 | |
| 345 | * cp-name-parser.y (cp_comp_to_string): Return a |
| 346 | gdb::unique_xmalloc_ptr<char>. |
| 347 | * cp-support.c (replace_typedefs_qualified_name) |
| 348 | (replace_typedefs): Adjust to use gdb::unique_xmalloc_ptr<char>. |
| 349 | (cp_canonicalize_string_full): Use op= instead of explicit |
| 350 | convertion. |
| 351 | (cp_class_name_from_physname, method_name_from_physname) |
| 352 | (cp_func_name, cp_remove_params): Adjust to use |
| 353 | gdb::unique_xmalloc_ptr<char>. |
| 354 | * cp-support.h (cp_comp_to_string): Return a |
| 355 | gdb::unique_xmalloc_ptr<char>. |
| 356 | * python/py-type.c (typy_lookup_type): Adjust to use |
| 357 | gdb::unique_xmalloc_ptr<char>. |
| 358 | |
| 359 | 2017-08-09 H.J. Lu <hongjiu.lu@intel.com> |
| 360 | |
| 361 | * dwarf2read.c (dwarf2_string_attr): Fix a typo. |
| 362 | |
| 363 | 2017-08-09 Alex Lindsay <alexlindsay239@gmail.com> |
| 364 | Yao Qi <yao.qi@linaro.org> |
| 365 | |
| 366 | * cp-support.c (cp_canonicalize_string_full): Use |
| 367 | gdb::unique_xmalloc_ptr<char>. |
| 368 | (cp_canonicalize_string): Likewise. |
| 369 | |
| 370 | 2017-08-09 Yao Qi <yao.qi@linaro.org> |
| 371 | |
| 372 | * features/Makefile (WHICH): Remove i386/ non-linux stuff. |
| 373 | * regformats/i386/amd64-avx-avx512.dat: Remove. |
| 374 | * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Remove. |
| 375 | * regformats/i386/amd64-avx-mpx.dat:Remove. |
| 376 | * regformats/i386/amd64-avx.dat: Remove. |
| 377 | * regformats/i386/amd64-mpx.dat: Remove. |
| 378 | * regformats/i386/i386-avx-avx512.dat: Remove. |
| 379 | * regformats/i386/i386-avx-mpx-avx512-pku.dat: Remove. |
| 380 | * regformats/i386/i386-avx-mpx.dat: Remove. |
| 381 | * regformats/i386/i386-mmx.dat: Remove. |
| 382 | * regformats/i386/i386-mpx.dat: Remove. |
| 383 | |
| 384 | 2017-08-09 Yao Qi <yao.qi@linaro.org> |
| 385 | |
| 386 | * amd64-tdep.h (tdesc_x32): Remove the declaration. |
| 387 | * amd64-tdep.c: Don't include features/i386/x32*.c. |
| 388 | (_initialize_amd64_tdep): Don't call initialize_tdesc_x32* |
| 389 | functions. |
| 390 | * features/Makefile (WHICH): Remove i386/x32, i386/x32-avx, |
| 391 | and i386/x32-avx-avx512. |
| 392 | (XMLTOC): Remove i386/x32-avx.xml, i386/x32-avx-avx512.xml, |
| 393 | and i386/x32.xml. |
| 394 | * features/i386/x32-avx-avx512.c: Removed. |
| 395 | * features/i386/x32-avx-avx512.xml: Removed. |
| 396 | * features/i386/x32-avx.c: Removed. |
| 397 | * features/i386/x32-avx.xml: Removed. |
| 398 | * features/i386/x32.c: Removed. |
| 399 | * features/i386/x32.xml: Removed. |
| 400 | * regformats/i386/x32-avx-avx512.dat: Removed. |
| 401 | * regformats/i386/x32-avx.dat: Removed. |
| 402 | * regformats/i386/x32.dat: Removed. |
| 403 | |
| 404 | 2017-08-07 Maciej W. Rozycki <macro@imgtec.com> |
| 405 | |
| 406 | PR breakpoints/21886 |
| 407 | * mem-break.c (default_memory_insert_breakpoint): Use |
| 408 | `->placed_address' rather than `->reqstd_address' for the |
| 409 | breakpoint location. |
| 410 | |
| 411 | 2017-08-07 Maciej W. Rozycki <macro@imgtec.com> |
| 412 | |
| 413 | * arch-utils.c (default_print_insn): Remove arch/mach/endian |
| 414 | assertions. |
| 415 | |
| 416 | 2017-08-07 Maciej W. Rozycki <macro@imgtec.com> |
| 417 | |
| 418 | * gdbarch.sh (gdbarch_info): Replace the `tdep_info' member with |
| 419 | a union of `tdep_info', `tdesc_data' and `id'. |
| 420 | * aarch64-tdep.c (aarch64_gdbarch_init): Use `info.tdesc_data' |
| 421 | rather than `info.tdep_info'. |
| 422 | * amd64-linux-tdep.c (amd64_linux_init_abi): Likewise. |
| 423 | * i386-linux-tdep.c (i386_linux_init_abi): Likewise. |
| 424 | * i386-tdep.c (i386_gdbarch_init): Likewise. |
| 425 | * mips-linux-tdep.c (mips_linux_init_abi): Likewise. |
| 426 | * mips-tdep.c (mips_gdbarch_init): Likewise. |
| 427 | * nds32-tdep.c (nds32_gdbarch_init): Likewise. |
| 428 | * rs6000-tdep.c (rs6000_gdbarch_init): Likewise. |
| 429 | * ppc-linux-tdep.c (ppu2spu_sniffer): Use `info.id' rather than |
| 430 | `info.tdep_info'. |
| 431 | (ppc_linux_init_abi): Use `info.tdesc_data' rather than |
| 432 | `info.tdep_info'. |
| 433 | * sparc-tdep.c (sparc32_gdbarch_init): Likewise. |
| 434 | * spu-multiarch.c (spu_gdbarch): Use `info.id' rather than |
| 435 | `info.tdep_info'. |
| 436 | * spu-tdep.c (spu_gdbarch_init): Likewise. |
| 437 | * gdbarch.h: Regenerate. |
| 438 | |
| 439 | 2017-08-07 Leszek Swirski <leszeks@google.com> |
| 440 | |
| 441 | PR symtab/20899 |
| 442 | * dwarf2read.c (dwarf2_string_attr): Allow DW_FORM_GNU_strp_alt. |
| 443 | |
| 444 | 2017-08-07 Simon Marchi <simon.marchi@ericsson.com> |
| 445 | |
| 446 | * remote-sim.c (gdbsim_load): Remove char **argv local variable. |
| 447 | (gdbsim_open): Rename gdb_argv args object to argv. |
| 448 | |
| 449 | 2017-08-05 Tom Tromey <tom@tromey.com> |
| 450 | |
| 451 | * compile/compile-object-load.c (compile_object_load): Use |
| 452 | gdb::unique_xmalloc_ptr. |
| 453 | * cli/cli-dump.c (scan_filename): Rename from |
| 454 | scan_filename_with_cleanup. Change return type. |
| 455 | (scan_expression): Rename from scan_expression_with_cleanup. |
| 456 | Change return type. |
| 457 | (dump_memory_to_file, dump_value_to_file, restore_command): |
| 458 | Use gdb::unique_xmalloc_ptr. Update. |
| 459 | * cli/cli-cmds.c (find_and_open_script): Use |
| 460 | gdb::unique_xmalloc_ptr. |
| 461 | * tracefile-tfile.c (tfile_open): Use gdb::unique_xmalloc_ptr. |
| 462 | * symmisc.c (maintenance_print_symbols) |
| 463 | (maintenance_print_msymbols): Use gdb::unique_xmalloc_ptr. |
| 464 | * symfile.c (symfile_bfd_open, generic_load) |
| 465 | (add_symbol_file_command, remove_symbol_file_command): Use |
| 466 | gdb::unique_xmalloc_ptr. |
| 467 | * source.c (openp): Use gdb::unique_xmalloc_ptr. |
| 468 | * psymtab.c (maintenance_print_psymbols): Use |
| 469 | gdb::unique_xmalloc_ptr. |
| 470 | * corelow.c (core_open): Use gdb::unique_xmalloc_ptr. |
| 471 | * breakpoint.c (save_breakpoints): Use gdb::unique_xmalloc_ptr. |
| 472 | * solib.c (solib_map_sections): Use gdb::unique_xmalloc_ptr. |
| 473 | (reload_shared_libraries_1): Likewise. |
| 474 | |
| 475 | 2017-08-05 Tom Tromey <tom@tromey.com> |
| 476 | |
| 477 | * rust-exp.y (rust_op_ptr, set_field): Remove typedefs. |
| 478 | (rust_op_vector, rust_set_vector): New typedefs. |
| 479 | (current_parser): New global. |
| 480 | (work_obstack): Change to pointer type. Update all users. |
| 481 | (rust_ast, pstate): Remove globals. |
| 482 | (struct rust_parser): New. |
| 483 | (%union) <params, field_inits>: Change type. |
| 484 | (start, tuple_expr, unit_expr, struct_expr_list, literal) |
| 485 | (field_expr, expr_list, maybe_expr_list, type_list): Update. |
| 486 | (ast_call_ish, ast_path, ast_function_type, ast_tuple_type) |
| 487 | (convert_params_to_types, convert_params_to_expression): Change |
| 488 | type of "params". |
| 489 | (ast_string): Change type of "fields". |
| 490 | (rust_parse): Make a rust_parser. Remove cleanups. |
| 491 | (rust_lex_tests): Make and install an auto_obstack. |
| 492 | |
| 493 | 2017-08-04 Yao Qi <yao.qi@linaro.org> |
| 494 | |
| 495 | * configure.srv (ipa_x32_linux_regobj): New. |
| 496 | * linux-amd64-ipa.c (get_ipa_tdesc): Use X86_TDESC_AVX_AVX512 |
| 497 | instead of X86_TDESC_AVX512. |
| 498 | (initialize_low_tracepoint): Call |
| 499 | init_registers_x32_avx_avx512_linux. |
| 500 | |
| 501 | 2017-08-04 Yao Qi <yao.qi@linaro.org> |
| 502 | |
| 503 | * utils.h (gdb_argv): Add namespace std for nullptr_t. |
| 504 | |
| 505 | 2017-08-03 Ruslan Kabatsayev <b7.10110111@gmail.com> |
| 506 | |
| 507 | * MAINTAINERS (Write After Approval): Add Ruslan Kabatsayev. |
| 508 | |
| 509 | 2017-08-03 Tom Tromey <tom@tromey.com> |
| 510 | |
| 511 | * utils.c (make_cleanup_freeargv, do_freeargv, gdb_buildargv): |
| 512 | Remove. |
| 513 | * utils.h (make_cleanup_freeargv, gdb_buildargv): Remove. |
| 514 | |
| 515 | 2017-08-03 Tom Tromey <tom@tromey.com> |
| 516 | |
| 517 | * python/py-param.c (compute_enum_values): Use gdb_argv. |
| 518 | |
| 519 | 2017-08-03 Tom Tromey <tom@tromey.com> |
| 520 | |
| 521 | * utils.h (struct gdb_argv_deleter): New. |
| 522 | (gdb_argv): New class. |
| 523 | * utils.c (gdb_argv::reset): New method. |
| 524 | * tracepoint.c (delete_trace_variable_command): Use gdb_argv. |
| 525 | * tracefile.c (tsave_command): Use gdb_argv. |
| 526 | * top.c (new_ui_command): Use gdb_argv. |
| 527 | * symmisc.c (maintenance_print_symbols) |
| 528 | (maintenance_print_msymbols, maintenance_expand_symtabs): Use gdb_argv. |
| 529 | * symfile.c (symbol_file_command, generic_load) |
| 530 | (remove_symbol_file_command): Use gdb_argv. |
| 531 | * stack.c (backtrace_command): Use gdb_argv. |
| 532 | * source.c (add_path, show_substitute_path_command) |
| 533 | (unset_substitute_path_command, set_substitute_path_command): |
| 534 | Use gdb_argv. |
| 535 | * skip.c (skip_command): Use gdb_argv. Use gdb_buildargv. |
| 536 | * ser-mingw.c (pipe_windows_open): Use gdb_argv. |
| 537 | * remote.c (extended_remote_run, remote_put_command) |
| 538 | (remote_get_command, remote_delete_command): Use gdb_argv. |
| 539 | * remote-sim.c (gdbsim_load, gdbsim_create_inferior) |
| 540 | (gdbsim_open): Use gdb_argv. |
| 541 | * python/py-cmd.c (gdbpy_string_to_argv): Use gdb_argv. |
| 542 | * psymtab.c (maintenance_print_psymbols): Use gdb_argv. |
| 543 | * procfs.c (procfs_info_proc): Use gdb_argv. |
| 544 | * interps.c (interpreter_exec_cmd): Use gdb_argv. |
| 545 | * infrun.c (handle_command): Use gdb_argv. |
| 546 | * inferior.c (add_inferior_command, clone_inferior_command): |
| 547 | Use gdb_argv. |
| 548 | * guile/scm-string.c (gdbscm_string_to_argv): Use gdb_argv. |
| 549 | * exec.c (exec_file_command): Use gdb_argv. |
| 550 | * cli/cli-cmds.c (alias_command): Use gdb_argv. |
| 551 | * compile/compile.c (build_argc_argv): Use gdb_argv. |
| 552 | |
| 553 | 2017-08-03 Tom Tromey <tom@tromey.com> |
| 554 | |
| 555 | * python/python.c (gdbpy_decode_line): Use unique_xmalloc_ptr. |
| 556 | |
| 557 | 2017-08-03 Tom Tromey <tom@tromey.com> |
| 558 | |
| 559 | * python/python.c (compute_python_string): Return std::string. |
| 560 | (gdbpy_eval_from_control_command): Update. |
| 561 | (do_start_initialization): Use std::string. |
| 562 | * python/py-varobj.c (py_varobj_iter_next): Use string_printf, not |
| 563 | xstrprintf. |
| 564 | * python/py-breakpoint.c (local_setattro): Use string_printf, not |
| 565 | xstrprintf. |
| 566 | |
| 567 | 2017-08-03 Tom Tromey <tom@tromey.com> |
| 568 | |
| 569 | * top.h (do_restore_instream_cleanup): Remove. |
| 570 | * top.c (do_restore_instream_cleanup): Remove. |
| 571 | (read_command_file): Use scoped_restore. |
| 572 | * cli/cli-script.c (execute_user_command): Use scoped_restore. |
| 573 | |
| 574 | 2017-08-03 Tom Tromey <tom@tromey.com> |
| 575 | |
| 576 | * cli/cli-script.c (execute_user_command) |
| 577 | (execute_control_command): Use scoped_restore. |
| 578 | |
| 579 | 2017-08-03 Tom Tromey <tom@tromey.com> |
| 580 | |
| 581 | * cli/cli-script.c (do_restore_user_call_depth): Remove. |
| 582 | (execute_user_command): Remove user_call_depth; use |
| 583 | user_args_stack's size instead. |
| 584 | |
| 585 | 2017-08-03 Tom Tromey <tom@tromey.com> |
| 586 | |
| 587 | * top.h (in_user_command): Remove. |
| 588 | * top.c (in_user_command): Remove. |
| 589 | * cli/cli-script.c (do_restore_user_call_depth) |
| 590 | (execute_user_command): Update. |
| 591 | |
| 592 | 2017-08-03 Tom Tromey <tom@tromey.com> |
| 593 | |
| 594 | * valops.c (search_struct_method): Use gdb::byte_vector. |
| 595 | * valarith.c (value_concat): Use std::vector. |
| 596 | * target.c (memory_xfer_partial): Use gdb::byte_vector. |
| 597 | (simple_search_memory): Likewise. |
| 598 | * printcmd.c (find_string_backward): Use gdb::byte_vector. |
| 599 | * mi/mi-main.c (mi_cmd_data_write_memory): Use gdb::byte_vector. |
| 600 | * gcore.c (gcore_copy_callback): Use gdb::byte_vector. |
| 601 | * elfread.c (elf_rel_plt_read): Use std::string. |
| 602 | * cp-valprint.c (cp_print_value): Use gdb::byte_vector. |
| 603 | * cli/cli-dump.c (restore_section_callback): Use |
| 604 | gdb::byte_vector. |
| 605 | |
| 606 | 2017-08-03 Tom Tromey <tom@tromey.com> |
| 607 | |
| 608 | * jit.c (jit_reader_load_command): Use unique_xmalloc_ptr. |
| 609 | |
| 610 | 2017-08-03 Tom Tromey <tom@tromey.com> |
| 611 | |
| 612 | * tui/tui-regs.c (tui_restore_gdbout): Remove. |
| 613 | (tui_register_format): Use scoped_restore. |
| 614 | |
| 615 | 2017-08-03 Tom Tromey <tom@tromey.com> |
| 616 | |
| 617 | * reverse.c (exec_direction_default): Remove. |
| 618 | (exec_reverse_once): Use scoped_restore. |
| 619 | * remote.c (restore_remote_timeout): Remove. |
| 620 | (remote_flash_erase, remote_flash_write, remote_flash_done) |
| 621 | (readchar, remote_serial_write): Use scoped_restore. |
| 622 | * cli/cli-script.c (struct source_cleanup_lines_args) |
| 623 | (source_cleanup_lines): Remove. |
| 624 | (script_from_file): Use scoped_restore. |
| 625 | * cli/cli-cmds.c (source_verbose_cleanup): Remove. |
| 626 | (source_command): Use scoped_restore. |
| 627 | |
| 628 | 2017-08-03 Tom Tromey <tom@tromey.com> |
| 629 | |
| 630 | * utils.h (make_cleanup_free_so): Remove. |
| 631 | * utils.c (do_free_so, make_cleanup_free_so): Remove. |
| 632 | * solist.h (struct so_deleter): New. |
| 633 | (so_list_up): New typedef. |
| 634 | * solib-svr4.c (svr4_read_so_list): Use so_list_up. |
| 635 | |
| 636 | 2017-08-03 Tom Tromey <tom@tromey.com> |
| 637 | |
| 638 | * utils.h (make_cleanup_restore_current_language): Remove. |
| 639 | * utils.c (do_restore_current_language) |
| 640 | (make_cleanup_restore_current_language): Remove. |
| 641 | * parse.c (parse_exp_in_context_1) |
| 642 | (parse_expression_with_language): Use |
| 643 | scoped_restore_current_language. |
| 644 | * mi/mi-main.c (mi_cmd_execute): Use |
| 645 | scoped_restore_current_language. |
| 646 | * language.h (scoped_restore_current_language): New class. |
| 647 | |
| 648 | 2017-08-03 Tom Tromey <tom@tromey.com> |
| 649 | |
| 650 | * compile/compile.c (cleanup_unlink_file): Remove. |
| 651 | (compile_to_object): Use gdb::unlinker. |
| 652 | (eval_compile_command): Likewise. |
| 653 | |
| 654 | 2017-08-03 Tom Tromey <tom@tromey.com> |
| 655 | |
| 656 | * utils.h (make_cleanup_fclose): Remove. |
| 657 | * utils.c (do_fclose_cleanup, make_cleanup_fclose): Remove. |
| 658 | |
| 659 | 2017-08-03 Tom Tromey <tom@tromey.com> |
| 660 | |
| 661 | * top.c (open_terminal_stream): Return gdb_file_up. |
| 662 | (new_ui_command): Update. |
| 663 | |
| 664 | 2017-08-03 Tom Tromey <tom@tromey.com> |
| 665 | |
| 666 | * source.c (print_source_lines_base, forward_search_command) |
| 667 | (reverse_search_command): Use gdb_file_up. |
| 668 | |
| 669 | 2017-08-03 Tom Tromey <tom@tromey.com> |
| 670 | |
| 671 | * fbsd-nat.c (fbsd_find_memory_regions): Update. |
| 672 | |
| 673 | 2017-08-03 Tom Tromey <tom@tromey.com> |
| 674 | |
| 675 | * cli/cli-cmds.c (find_and_open_script): Change return type. |
| 676 | Remove "streamp" and "full_path" parameters. |
| 677 | (source_script_with_search): Update. |
| 678 | * auto-load.c (source_script_file): Update. |
| 679 | * cli/cli-cmds.h (find_and_open_script): Change type. |
| 680 | (open_script): New struct. |
| 681 | |
| 682 | 2017-08-03 Tom Tromey <tom@tromey.com> |
| 683 | |
| 684 | * xml-support.c (xml_fetch_content_from_file): Update. |
| 685 | * ui-file.c (stdio_file::open): Update. |
| 686 | * tracefile-tfile.c (tfile_start): Update. |
| 687 | * remote.c (remote_file_put, remote_file_get): Update. |
| 688 | * nat/linux-procfs.c (linux_proc_get_int) |
| 689 | (linux_proc_pid_get_state, linux_proc_tid_get_name): Update. |
| 690 | * nat/linux-osdata.c (linux_common_core_of_thread): Update. |
| 691 | (command_from_pid, commandline_from_pid, linux_xfer_osdata_cpus) |
| 692 | (print_sockets, linux_xfer_osdata_shm, linux_xfer_osdata_sem) |
| 693 | (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Update. |
| 694 | * nat/linux-btrace.c (linux_determine_kernel_start): Update. |
| 695 | * linux-nat.c (linux_proc_pending_signals): Update. |
| 696 | * dwarf2read.c (write_psymtabs_to_index): Use gdb_file_up. |
| 697 | (file_closer): Remove. |
| 698 | * compile/compile.c (compile_to_object): Update. |
| 699 | * common/filestuff.h (struct gdb_file_deleter): New. |
| 700 | (gdb_file_up): New typedef. |
| 701 | (gdb_fopen_cloexec): Change return type. |
| 702 | * common/filestuff.c (gdb_fopen_cloexec): Return gdb_file_up. |
| 703 | * cli/cli-dump.c (fopen_with_cleanup): Remove. |
| 704 | (dump_binary_file, restore_binary_file): Update. |
| 705 | * auto-load.c (auto_load_objfile_script_1): Update. |
| 706 | |
| 707 | 2017-08-03 Tom Tromey <tom@tromey.com> |
| 708 | |
| 709 | * tracepoint.c (tvariables_info_1): Use ui_out_emit_table. |
| 710 | (info_static_tracepoint_markers_command): Likewise. |
| 711 | * solib.c (info_sharedlibrary_command): Use ui_out_emit_table. |
| 712 | * skip.c (skip_info): Use ui_out_emit_table. |
| 713 | * progspace.c (print_program_space): Use ui_out_emit_table. |
| 714 | * osdata.c (info_osdata): Use ui_out_emit_table. |
| 715 | * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions): Use |
| 716 | ui_out_emit_table. |
| 717 | * linux-thread-db.c (info_auto_load_libthread_db): Use |
| 718 | ui_out_emit_table. |
| 719 | * inferior.c (print_inferior): Use ui_out_emit_table. |
| 720 | * gdb_bfd.c (maintenance_info_bfds): Use ui_out_emit_table. |
| 721 | * breakpoint.c (breakpoint_1): Use ui_out_emit_table. |
| 722 | * auto-load.c (auto_load_info_scripts): Use ui_out_emit_table. |
| 723 | * ada-tasks.c (print_ada_task_info): Use ui_out_emit_table. |
| 724 | * ui-out.h (class ui_out_emit_table): New. |
| 725 | |
| 726 | 2017-08-02 Maciej W. Rozycki <macro@imgtec.com> |
| 727 | |
| 728 | * mips-tdep.c (mips_fpu_type_str): New function. |
| 729 | (mips_dump_tdep): Call it. |
| 730 | |
| 731 | 2017-08-01 Maciej W. Rozycki <macro@imgtec.com> |
| 732 | |
| 733 | * mips-tdep.c (mips_gdbarch_init): Use MIPS_FPU_TYPE to access |
| 734 | `->mips_fpu_type'. |
| 735 | |
| 736 | 2017-07-31 Xavier Roirand <roirand@adacore.com> |
| 737 | |
| 738 | * solib-darwin.c (DYLD_VERSION_MAX): Increase value. |
| 739 | |
| 740 | 2017-07-27 Xavier Roirand <roirand@adacore.com> |
| 741 | |
| 742 | * MAINTAINERS (Write After Approval): Add Xavier Roirand. |
| 743 | |
| 744 | 2017-07-26 Yao Qi <yao.qi@linaro.org> |
| 745 | |
| 746 | * cli/cli-cmds.c (maintenancechecklist): New variable. |
| 747 | * gdbcmd.h (maintenancechecklist): Declare it. |
| 748 | * i386-linux-tdep.c (_initialize_i386_linux_tdep) [GDB_SELF_TEST]: |
| 749 | Call i386_linux_read_description with different masks. |
| 750 | * maint.c (maintenance_check_command): New function. |
| 751 | (_initialize_maint_cmds): Call add_prefix_cmd. |
| 752 | * target-descriptions.c (tdesc_reg): override operator != and ==. |
| 753 | (tdesc_type): Likewise. |
| 754 | (tdesc_feature): Likewise. |
| 755 | (target_desc): Likewise. |
| 756 | [GDB_SELF_TEST] (selftests::record_xml_tdesc): New function. |
| 757 | (maintenance_check_xml_descriptions): New function. |
| 758 | (_initialize_target_descriptions) Add command "xml-descriptions". |
| 759 | * target-descriptions.h (selftests::record_xml_tdesc): Declare. |
| 760 | |
| 761 | 2017-07-26 Yao Qi <yao.qi@linaro.org> |
| 762 | |
| 763 | * i386-linux-tdep.c: Don't include features/i386/i386-*linux.c. |
| 764 | Include features/i386/32bit-*.c. |
| 765 | (i386_linux_read_description): Generate target description if it |
| 766 | doesn't exist. |
| 767 | (_initialize_i386_linux_tdep): Don't call _initialize_tdesc_i386 |
| 768 | functions. |
| 769 | * features/i386/32bit-linux.c: Re-generated. |
| 770 | * features/i386/32bit-sse.c: Likewise. |
| 771 | * target-descriptions.c (print_c_feature::visit): Print code to |
| 772 | set register number if needed. |
| 773 | (print_c_feature) <m_next_regnum>: New field. |
| 774 | |
| 775 | 2017-07-26 Yao Qi <yao.qi@linaro.org> |
| 776 | |
| 777 | * features/Makefile (CFILES): Rename with TDESC_CFILES. |
| 778 | (FEATURE_XMLFILES): New. |
| 779 | (FEATURE_CFILES): New. |
| 780 | New rules. |
| 781 | (clean-cfiles): Remove generated c files. |
| 782 | * features/i386/32bit-avx.c: Generated. |
| 783 | * features/i386/32bit-avx512.c: Generated. |
| 784 | * features/i386/32bit-core.c: Generated. |
| 785 | * features/i386/32bit-linux.c: Generated. |
| 786 | * features/i386/32bit-mpx.c: Generated. |
| 787 | * features/i386/32bit-pkeys.c: Generated. |
| 788 | * features/i386/32bit-sse.c: Generated. |
| 789 | * target-descriptions.c: Include algorithm. |
| 790 | (tdesc_element_visitor): Add method visit_end. |
| 791 | (print_c_tdesc): Implement visit_end. |
| 792 | (print_c_tdesc:: m_filename_after_features): Move it to |
| 793 | protected. |
| 794 | (print_c_feature): New class. |
| 795 | (maint_print_c_tdesc_cmd): Use print_c_feature if XML file |
| 796 | name starts with "i386/32bit-". |
| 797 | |
| 798 | 2017-07-26 Yao Qi <yao.qi@linaro.org> |
| 799 | |
| 800 | * target-descriptions.c (tdesc_element_visitor): New class. |
| 801 | (tdesc_element): New class. |
| 802 | (tdesc_reg): Inherit from tdesc_element. |
| 803 | (tdesc_reg::accept): New function. |
| 804 | (tdesc_type): Inherit from tdesc_element. |
| 805 | (tdesc_type::accept): New function. |
| 806 | (tdesc_feature): Inherit from tdesc_element. |
| 807 | (tdesc_feature::accept): New function. |
| 808 | (target_desc): Inherit from tdesc_element. |
| 809 | (target_desc::target_desc): New. |
| 810 | (target_desc::~target_desc): New. |
| 811 | (target_desc::accept): New. |
| 812 | (allocate_target_description): Use new. |
| 813 | (free_target_description): Use delete. |
| 814 | (print_c_tdesc): New class. |
| 815 | (maint_print_c_tdesc_cmd): Adjust. |
| 816 | |
| 817 | * features/aarch64.c: Re-generated. |
| 818 | * features/arc-arcompact.c: Re-generated. |
| 819 | * features/arc-v2.c: Re-generated. |
| 820 | * features/arm/arm-with-iwmmxt.c: Re-generated. |
| 821 | * features/arm/arm-with-m.c: Re-generated. |
| 822 | * features/arm/arm-with-m-fpa-layout.c: Re-generated. |
| 823 | * features/arm/arm-with-m-vfp-d16.c: Re-generated. |
| 824 | * features/arm/arm-with-neon.c: Re-generated. |
| 825 | * features/arm/arm-with-vfpv2.c: Re-generated. |
| 826 | * features/arm/arm-with-vfpv3.c: Re-generated. |
| 827 | * features/i386/amd64-avx-avx512.c: Re-generated. |
| 828 | * features/i386/amd64-avx-avx512-linux.c: Re-generated. |
| 829 | * features/i386/amd64-avx.c: Re-generated. |
| 830 | * features/i386/amd64-avx-linux.c: Re-generated. |
| 831 | * features/i386/amd64-avx-mpx-avx512-pku.c: Re-generated. |
| 832 | * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated. |
| 833 | * features/i386/amd64-avx-mpx.c: Re-generated. |
| 834 | * features/i386/amd64-avx-mpx-linux.c: Re-generated. |
| 835 | * features/i386/amd64.c: Re-generated. |
| 836 | * features/i386/amd64-linux.c: Re-generated. |
| 837 | * features/i386/amd64-mpx.c: Re-generated. |
| 838 | * features/i386/amd64-mpx-linux.c: Re-generated. |
| 839 | * features/i386/i386-avx-avx512.c: Re-generated. |
| 840 | * features/i386/i386-avx-avx512-linux.c: Re-generated. |
| 841 | * features/i386/i386-avx.c: Re-generated. |
| 842 | * features/i386/i386-avx-linux.c: Re-generated. |
| 843 | * features/i386/i386-avx-mpx-avx512-pku.c: Re-generated. |
| 844 | * features/i386/i386-avx-mpx-avx512-pku-linux.c: Re-generated. |
| 845 | * features/i386/i386-avx-mpx.c: Re-generated. |
| 846 | * features/i386/i386-avx-mpx-linux.c: Re-generated. |
| 847 | * features/i386/i386.c: Re-generated. |
| 848 | * features/i386/i386-linux.c: Re-generated. |
| 849 | * features/i386/i386-mmx.c: Re-generated. |
| 850 | * features/i386/i386-mmx-linux.c: Re-generated. |
| 851 | * features/i386/i386-mpx.c: Re-generated. |
| 852 | * features/i386/i386-mpx-linux.c: Re-generated. |
| 853 | * features/i386/x32-avx-avx512.c: Re-generated. |
| 854 | * features/i386/x32-avx-avx512-linux.c: Re-generated. |
| 855 | * features/i386/x32-avx.c: Re-generated. |
| 856 | * features/i386/x32-avx-linux.c: Re-generated. |
| 857 | * features/i386/x32.c: Re-generated. |
| 858 | * features/i386/x32-linux.c: Re-generated. |
| 859 | * features/microblaze.c: Re-generated. |
| 860 | * features/microblaze-with-stack-protect.c: Re-generated. |
| 861 | * features/mips64-dsp-linux.c: Re-generated. |
| 862 | * features/mips64-linux.c: Re-generated. |
| 863 | * features/mips-dsp-linux.c: Re-generated. |
| 864 | * features/mips-linux.c: Re-generated. |
| 865 | * features/nds32.c: Re-generated. |
| 866 | * features/nios2.c: Re-generated. |
| 867 | * features/nios2-linux.c: Re-generated. |
| 868 | * features/rs6000/powerpc-32.c: Re-generated. |
| 869 | * features/rs6000/powerpc-32l.c: Re-generated. |
| 870 | * features/rs6000/powerpc-403.c: Re-generated. |
| 871 | * features/rs6000/powerpc-403gc.c : Re-generated. |
| 872 | * features/rs6000/powerpc-405.c: Re-generated. |
| 873 | * features/rs6000/powerpc-505.c: Re-generated. |
| 874 | * features/rs6000/powerpc-601.c: Re-generated. |
| 875 | * features/rs6000/powerpc-602.c: Re-generated. |
| 876 | * features/rs6000/powerpc-603.c: Re-generated. |
| 877 | * features/rs6000/powerpc-604.c: Re-generated. |
| 878 | * features/rs6000/powerpc-64.c: Re-generated. |
| 879 | * features/rs6000/powerpc-64l.c: Re-generated. |
| 880 | * features/rs6000/powerpc-7400.c: Re-generated. |
| 881 | * features/rs6000/powerpc-750.c: Re-generated. |
| 882 | * features/rs6000/powerpc-860.c: Re-generated. |
| 883 | * features/rs6000/powerpc-altivec32.c: Re-generated. |
| 884 | * features/rs6000/powerpc-altivec32l.c: Re-generated. |
| 885 | * features/rs6000/powerpc-altivec64.c: Re-generated. |
| 886 | * features/rs6000/powerpc-altivec64l.c: Re-generated. |
| 887 | * features/rs6000/powerpc-cell32l.c: Re-generated. |
| 888 | * features/rs6000/powerpc-cell64l.c: Re-generated. |
| 889 | * features/rs6000/powerpc-e500.c: Re-generated. |
| 890 | * features/rs6000/powerpc-e500l.c: Re-generated. |
| 891 | * features/rs6000/powerpc-isa205-32l.c: Re-generated. |
| 892 | * features/rs6000/powerpc-isa205-64l.c: Re-generated. |
| 893 | * features/rs6000/powerpc-isa205-altivec32l.c: Re-generated. |
| 894 | * features/rs6000/powerpc-isa205-altivec64l.c: Re-generated. |
| 895 | * features/rs6000/powerpc-isa205-vsx32l.c: Re-generated. |
| 896 | * features/rs6000/powerpc-isa205-vsx64l.c: Re-generated. |
| 897 | * features/rs6000/powerpc-vsx32.c: Re-generated. |
| 898 | * features/rs6000/powerpc-vsx32l.c: Re-generated. |
| 899 | * features/rs6000/powerpc-vsx64.c: Re-generated. |
| 900 | * features/rs6000/powerpc-vsx64l.c: Re-generated. |
| 901 | * features/rs6000/rs6000.c: Re-generated. |
| 902 | * features/s390-linux32.c: Re-generated. |
| 903 | * features/s390-linux32v1.c: Re-generated. |
| 904 | * features/s390-linux32v2.c: Re-generated. |
| 905 | * features/s390-linux64.c: Re-generated. |
| 906 | * features/s390-linux64v1.c: Re-generated. |
| 907 | * features/s390-linux64v2.c: Re-generated. |
| 908 | * features/s390-te-linux64.c: Re-generated. |
| 909 | * features/s390-tevx-linux64.c: Re-generated. |
| 910 | * features/s390-vx-linux64.c: Re-generated. |
| 911 | * features/s390x-linux64.c: Re-generated. |
| 912 | * features/s390x-linux64v1.c: Re-generated. |
| 913 | * features/s390x-linux64v2.c: Re-generated. |
| 914 | * features/s390x-te-linux64.c: Re-generated. |
| 915 | * features/s390x-tevx-linux64.c: Re-generated. |
| 916 | * features/s390x-vx-linux64.c: Re-generated. |
| 917 | * features/sparc/sparc32-solaris.c: Re-generated. |
| 918 | * features/sparc/sparc64-solaris.c: Re-generated. |
| 919 | * features/tic6x-c62x.c: Re-generated. |
| 920 | * features/tic6x-c62x-linux.c: Re-generated. |
| 921 | * features/tic6x-c64x.c: Re-generated. |
| 922 | * features/tic6x-c64x-linux.c: Re-generated. |
| 923 | * features/tic6x-c64xp.c: Re-generated. |
| 924 | * features/tic6x-c64xp-linux.c: Re-generated. |
| 925 | |
| 926 | 2017-07-26 Yao Qi <yao.qi@linaro.org> |
| 927 | |
| 928 | * i386-linux-tdep.c (i386_linux_read_description): New function. |
| 929 | (i386_linux_core_read_description): Call |
| 930 | i386_linux_read_description. |
| 931 | * i386-linux-tdep.h (i386_linux_read_description): Declare. |
| 932 | (tdesc_i386_linux, tdesc_i386_mmx_linux): Remove declarations. |
| 933 | (tdesc_i386_avx_linux, tdesc_i386_mpx_linux): Likewise |
| 934 | (tdesc_i386_avx_mpx_linux, tdesc_i386_avx_avx512_linux): Likewise. |
| 935 | (tdesc_i386_avx_mpx_avx512_pku_linux): Likewise. |
| 936 | * x86-linux-nat.c (x86_linux_read_description): Call |
| 937 | i386_linux_read_description. |
| 938 | |
| 939 | 2017-07-26 Yao Qi <yao.qi@linaro.org> |
| 940 | |
| 941 | * NEWS: Mention it. |
| 942 | * features/Makefile (%.c: %.xml): Pass the xml file name to |
| 943 | command "maint print c-tdesc". |
| 944 | * target-descriptions.c (maint_print_c_tdesc_cmd): Get file |
| 945 | name from 'arg'. |
| 946 | |
| 947 | 2017-07-26 Yao Qi <yao.qi@linaro.org> |
| 948 | |
| 949 | * target-descriptions.c (target_desc): Add ctor and dtor. Do |
| 950 | in-class initialization. |
| 951 | (tdesc_create_feature): Call new instead of XCNEW. |
| 952 | (free_target_description): Ue delete. |
| 953 | |
| 954 | 2017-07-25 John Baldwin <jhb@FreeBSD.org> |
| 955 | |
| 956 | * configure.nat: Add "-lkvm" for NetBSD/sparc64 and fix typo. |
| 957 | |
| 958 | 2017-07-25 Yao Qi <yao.qi@linaro.org> |
| 959 | |
| 960 | * amd64-tdep.c (amd64_init_abi): Make argument default_tdesc |
| 961 | constant. |
| 962 | (amd64_x32_init_abi): Likewise. |
| 963 | * amd64-tdep.h (amd64_init_abi): Update declaration. |
| 964 | (amd64_x32_init_abi): Likewise. |
| 965 | |
| 966 | 2017-07-25 Yao Qi <yao.qi@linaro.org> |
| 967 | |
| 968 | PR tdep/21717 |
| 969 | * arm-linux-nat.c (arm_linux_fetch_inferior_registers): Update |
| 970 | condition for FPSCR. |
| 971 | (arm_linux_store_inferior_registers): Likewise. |
| 972 | |
| 973 | 2017-07-22 Tom Tromey <tom@tromey.com> |
| 974 | |
| 975 | * break-catch-syscall.c (struct catch_syscall_inferior_data) |
| 976 | <syscalls_counts>: Now a std::vector. |
| 977 | (get_catch_syscall_inferior_data): Use "new". |
| 978 | (catch_syscall_inferior_data_cleanup): Use "delete". |
| 979 | (insert_catch_syscall, remove_catch_syscall) |
| 980 | (clear_syscall_counts): Update. |
| 981 | |
| 982 | 2017-07-22 Tom Tromey <tom@tromey.com> |
| 983 | |
| 984 | * break-catch-syscall.c (syscall_catchpoint) |
| 985 | <syscalls_to_be_caught>: Now a std::vector<int> |
| 986 | (~syscall_catchpoint): Remove. |
| 987 | (insert_catch_syscall, remove_catch_syscall) |
| 988 | (breakpoint_hit_catch_syscall, print_one_catch_syscall) |
| 989 | (print_mention_catch_syscall, print_recreate_catch_syscall): |
| 990 | Update. |
| 991 | (create_syscall_event_catchpoint): Change type of "filter" |
| 992 | parameter. |
| 993 | (catch_syscall_split_args): Return a std::vector. |
| 994 | (catch_syscall_command_1, catching_syscall_number_1): Update. |
| 995 | |
| 996 | 2017-07-22 Tom Tromey <tom@tromey.com> |
| 997 | |
| 998 | * break-catch-throw.c (struct exception_catchpoint) |
| 999 | <exception_rx>: Now a std::string. |
| 1000 | (~exception_catchpoint): Remove. |
| 1001 | (print_one_detail_exception_catchpoint): Update. |
| 1002 | (handle_gnu_v3_exceptions): Change type of except_rx. |
| 1003 | (extract_exception_regexp): Return a std::string. |
| 1004 | (catch_exception_command_1): Update. |
| 1005 | |
| 1006 | 2017-07-22 Tom Tromey <tom@tromey.com> |
| 1007 | |
| 1008 | * break-catch-sig.c (gdb_signal_type): Remove typedef. |
| 1009 | (struct signal_catchpoint) <signals_to_be_caught>: Now a |
| 1010 | std::vector. |
| 1011 | <catch_all>: Now a bool. |
| 1012 | (~signal_catchpoint): Remove. |
| 1013 | (signal_catchpoint_insert_location) |
| 1014 | (signal_catchpoint_remove_location) |
| 1015 | (signal_catchpoint_breakpoint_hit, signal_catchpoint_print_one) |
| 1016 | (signal_catchpoint_print_mention) |
| 1017 | (signal_catchpoint_print_recreate) |
| 1018 | (signal_catchpoint_explains_signal): Update. |
| 1019 | (create_signal_catchpoint): Change type of "filter" and |
| 1020 | "catch_all". |
| 1021 | (catch_signal_split_args): Return a std::vector. Change type of |
| 1022 | "catch_all". |
| 1023 | (catch_signal_command): Update. |
| 1024 | |
| 1025 | 2017-07-20 Pedro Alves <palves@redhat.com> |
| 1026 | |
| 1027 | * ada-lang.c (ada_language_defn): Make extern. |
| 1028 | (_initialize_ada_language): Remove add_language call. |
| 1029 | * c-lang.c (c_language_defn, cplus_language_defn) |
| 1030 | (asm_language_defn, minimal_language_defn): Make extern. |
| 1031 | (_initialize_c_language): Delete. |
| 1032 | * completer.c (compare_cstrings): Delete, moved to utils.h. |
| 1033 | * d-lang.c (d_language_defn): Make extern. |
| 1034 | (_initialize_d_language): Remove add_language calls. |
| 1035 | * defs.h (enum language): Add comment. |
| 1036 | * f-lang.c (f_language_defn): Make extern. |
| 1037 | (_initialize_f_language): Remove add_language call. |
| 1038 | * go-lang.c (go_language_defn): Make extern. |
| 1039 | (_initialize_go_language): Remove add_language call. |
| 1040 | * language.c: Include <algorithm>. |
| 1041 | (languages): Redefine as const array. |
| 1042 | (languages_size, languages_allocsize, DEFAULT_ALLOCSIZE): Delete. |
| 1043 | (set_language_command): Handle "local". Use for-range loop. |
| 1044 | (set_language): Remove loop. |
| 1045 | (language_enum): Rewrite. |
| 1046 | (language_def, language_str): Remove loops. |
| 1047 | (add_language): Delete. |
| 1048 | (add_set_language_command): New, based on add_languages. |
| 1049 | (skip_language_trampoline): Adjust. |
| 1050 | (local_language_defn): Delete. |
| 1051 | (language_gdbarch_post_init): Adjust. |
| 1052 | (_initialize_language): Remove add_language calls. Call |
| 1053 | add_set_language_command. |
| 1054 | * language.h (add_language): Delete. |
| 1055 | (auto_language_defn) |
| 1056 | (unknown_language_defn, minimal_language_defn, ada_language_defn) |
| 1057 | (asm_language_defn, c_language_defn, cplus_language_defn) |
| 1058 | (d_language_defn, f_language_defn, go_language_defn) |
| 1059 | (m2_language_defn, objc_language_defn, opencl_language_defn) |
| 1060 | (pascal_language_defn, rust_language_defn): Declare. |
| 1061 | * m2-lang.c (m2_language_defn): Make extern. |
| 1062 | (_initialize_m2_language): Remove add_language call. |
| 1063 | * objc-lang.c (objc_language_defn): Make extern. |
| 1064 | (_initialize_objc_language): Remove add_language call. |
| 1065 | * opencl-lang.c (opencl_language_defn): Make extern. |
| 1066 | (_initialize_opencl_language): Remove add_language call. |
| 1067 | * p-lang.c (pascal_language_defn): Make extern. |
| 1068 | (_initialize_pascal_language): Delete. |
| 1069 | * rust-lang.c (rust_language_defn): Make extern. |
| 1070 | (_initialize_rust_language): Delete. |
| 1071 | * utils.h (compare_cstrings): New static inline function. |
| 1072 | |
| 1073 | 2017-07-20 Pedro Alves <palves@redhat.com> |
| 1074 | |
| 1075 | * ada-lang.c (ada_to_fixed_type_1): Adjust. |
| 1076 | (get_var_value): Constify parameters. |
| 1077 | (get_int_var_value): Change prototype. |
| 1078 | (to_fixed_range_type): Adjust. |
| 1079 | * ada-lang.h (get_int_var_value): Change prototype. |
| 1080 | |
| 1081 | 2017-07-20 Pedro Alves <palves@redhat.com> |
| 1082 | |
| 1083 | * dwarf2read.c (dw2_lookup_symbol): Use |
| 1084 | SYMBOL_MATCHES_SEARCH_NAME. |
| 1085 | * psymtab.c (psym_lookup_symbol): Use SYMBOL_MATCHES_SEARCH_NAME. |
| 1086 | |
| 1087 | 2017-07-20 Pedro Alves <palves@redhat.com> |
| 1088 | |
| 1089 | * block.c (block_iter_name_step, block_iter_name_first) |
| 1090 | (block_iter_name_next): Delete. |
| 1091 | (block_lookup_symbol_primary): Adjust to use |
| 1092 | dict_iter_match_first/dict_iter_match_next. |
| 1093 | * block.h (block_iter_name_first, block_iter_name_next): Delete |
| 1094 | declarations. |
| 1095 | (ALL_BLOCK_SYMBOLS_WITH_NAME): Adjust to use |
| 1096 | dict_iter_match_first/dict_iter_match_next. |
| 1097 | |
| 1098 | 2017-07-20 Pedro Alves <palves@redhat.com> |
| 1099 | |
| 1100 | * cp-support.c (cp_find_first_component_aux): Add missing case for |
| 1101 | end of string. |
| 1102 | |
| 1103 | 2017-07-18 David Blaikie <dblaikie@gmail.com> |
| 1104 | |
| 1105 | * dwarf2read.c (create_cus_hash_table): Re-add lost initialization |
| 1106 | of dwo_cu's dwo_file. |
| 1107 | |
| 1108 | 2017-07-18 Yao Qi <yao.qi@linaro.org> |
| 1109 | |
| 1110 | * remote.c (store_registers_using_G): Remove one line comment. |
| 1111 | |
| 1112 | 2017-07-18 Yao Qi <yao.qi@linaro.org> |
| 1113 | |
| 1114 | * regcache.c (regcache_cpy): Simplify it. |
| 1115 | (regcache::cpy_no_passthrough): Remove it. |
| 1116 | * regcache.h (cpy_no_passthrough): Remove it. |
| 1117 | (regcache_dup, regcache_cpy): Update comments. |
| 1118 | |
| 1119 | 2017-07-18 Pedro Alves <palves@redhat.com> |
| 1120 | |
| 1121 | * remote-sim.c (sim_command_completer): Adjust to work with a |
| 1122 | completion_tracker instead of a VEC. |
| 1123 | |
| 1124 | 2017-07-17 Pedro Alves <palves@redhat.com> |
| 1125 | |
| 1126 | * completer.c (complete_source_filenames): New function. |
| 1127 | (complete_address_and_linespec_locations): New function. |
| 1128 | (location_completer): Use complete_address_and_linespec_locations. |
| 1129 | (completion_tracker::build_completion_result): Honor the tracker's |
| 1130 | request to suppress append. |
| 1131 | * completer.h (completion_tracker::suppress_append_ws) |
| 1132 | (completion_tracker::set_suppress_append_ws): New methods. |
| 1133 | (completion_tracker::m_suppress_append_ws): New field. |
| 1134 | (complete_source_filenames): New declaration. |
| 1135 | * linespec.c (linespec_complete_what): New. |
| 1136 | (struct ls_parser) <complete_what, completion_word, |
| 1137 | completion_quote_char, completion_quote_end, completion_tracker>: |
| 1138 | New fields. |
| 1139 | (string_find_incomplete_keyword_at_end): New. |
| 1140 | (linespec_lexer_lex_string): Record quote char. If in completion |
| 1141 | mode, don't throw. |
| 1142 | (linespec_lexer_consume_token): Advance the completion word point. |
| 1143 | (linespec_lexer_peek_token): Save/restore completion info. |
| 1144 | (save_stream_and_consume_token): New. |
| 1145 | (set_completion_after_number): New. |
| 1146 | (linespec_parse_basic): Set what to complete next depending on |
| 1147 | token. Handle function and label completions specially. |
| 1148 | (parse_linespec): Disable objc shortcut in completion mode. Set |
| 1149 | what to complete next depending on token type. Skip keyword if in |
| 1150 | completion mode. |
| 1151 | (complete_linespec_component, linespec_complete): New. |
| 1152 | * linespec.h (linespec_complete): Declare. |
| 1153 | |
| 1154 | 2017-07-17 Pedro Alves <palves@redhat.com> |
| 1155 | |
| 1156 | * linespec.c (linespec_lexer_lex_string, find_toplevel_char): |
| 1157 | Handle 'operator<' / 'operator<<'. |
| 1158 | |
| 1159 | 2017-07-17 Pedro Alves <palves@redhat.com> |
| 1160 | |
| 1161 | * completer.c (collect_explicit_location_matches): Handle |
| 1162 | MATCH_LABEL. |
| 1163 | (convert_explicit_location_to_linespec): New, factored out from |
| 1164 | ... |
| 1165 | (convert_explicit_location_to_sals): ... this. |
| 1166 | (complete_label): New. |
| 1167 | (linespec_complete_label, find_label_symbols_in_block): New. |
| 1168 | (find_label_symbols): Add completion_mode parameter and adjust to |
| 1169 | call find_label_symbols_in_block. |
| 1170 | * linespec.h (linespec_complete_label): Declare. |
| 1171 | |
| 1172 | 2017-07-17 Pedro Alves <palves@redhat.com> |
| 1173 | |
| 1174 | * ada-lang.c (ada_collect_symbol_completion_matches): Add |
| 1175 | complete_symbol_mode parameter. |
| 1176 | * cli/cli-cmds.c (complete_command): Get the completion result out |
| 1177 | of the handle_brkchars tracker if used a custom word point. |
| 1178 | * completer.c: Include "linespec.h". |
| 1179 | (enum explicit_location_match_type) <MATCH_LINE>: New enumerator. |
| 1180 | (advance_to_expression_complete_word_point): New. |
| 1181 | (completion_tracker::completes_to_completion_word): New. |
| 1182 | (complete_files_symbols): Pass down |
| 1183 | complete_symbol_mode::EXPRESSION. |
| 1184 | (explicit_options, probe_options): New. |
| 1185 | (collect_explicit_location_matches): Complete on the |
| 1186 | explictit_loc->foo instead of word. Use |
| 1187 | linespec_complete_function. Handle MATCH_LINE. Handle offering |
| 1188 | keyword and options completions. |
| 1189 | (backup_text_ptr): Delete. |
| 1190 | (skip_keyword): New. |
| 1191 | (complete_explicit_location): Remove 'word' parameter. Add |
| 1192 | language, quoted_arg_start and quoted_arg_end parameters. |
| 1193 | Rewrite, parsing left to right. |
| 1194 | (location_completer): Rewrite. |
| 1195 | (location_completer_handle_brkchars): New function. |
| 1196 | (symbol_completer): Pass down complete_symbol_mode::EXPRESSION. |
| 1197 | (enum complete_line_internal_reason): Adjust comments. |
| 1198 | (completion_tracker::discard_completions): New. |
| 1199 | (completer_handle_brkchars_func_for_completer): Handle |
| 1200 | location_completer. |
| 1201 | (gdb_custom_word_point_brkchars) |
| 1202 | (gdb_org_rl_basic_quote_characters): New. |
| 1203 | (gdb_completion_word_break_characters_throw) |
| 1204 | (completion_find_completion_word): Handle trackers that use a |
| 1205 | custom word point. |
| 1206 | (completion_tracker::advance_custom_word_point_by): New. |
| 1207 | (completion_tracker::build_completion_result): Don't rely on |
| 1208 | readline appending the quote char. |
| 1209 | (gdb_rl_attempted_completion_function_throw): Handle trackers that |
| 1210 | use a custom word point. |
| 1211 | (gdb_rl_attempted_completion_function): Restore |
| 1212 | rl_basic_quote_characters. |
| 1213 | * completer.h (class completion_tracker): Extend intro comment. |
| 1214 | (completion_tracker::set_quote_char) |
| 1215 | (completion_tracker::quote_char) |
| 1216 | (completion_tracker::set_use_custom_word_point) |
| 1217 | (completion_tracker::use_custom_word_point) |
| 1218 | (completion_tracker::custom_word_point) |
| 1219 | (completion_tracker::set_custom_word_point) |
| 1220 | (completion_tracker::advance_custom_word_point_by) |
| 1221 | (completion_tracker::completes_to_completion_word) |
| 1222 | (completion_tracker::discard_completions): New methods. |
| 1223 | (completion_tracker::m_quote_char) |
| 1224 | (completion_tracker::m_use_custom_word_point) |
| 1225 | (completion_tracker::m_custom_word_point): New fields. |
| 1226 | (advance_to_expression_complete_word_point): Declare. |
| 1227 | * f-lang.c (f_collect_symbol_completion_matches): Add |
| 1228 | complete_symbol_mode parameter. |
| 1229 | * language.h (struct language_defn) |
| 1230 | <la_collect_symbol_completion_matches>: Add complete_symbol_mode |
| 1231 | parameter. |
| 1232 | * linespec.c (linespec_keywords): Add NULL terminator. Make extern. |
| 1233 | (linespec_complete_function): New function. |
| 1234 | (linespec_lexer_lex_keyword): Adjust. |
| 1235 | * linespec.h (linespec_keywords, linespec_complete_function): New |
| 1236 | declarations. |
| 1237 | * location.c (find_end_quote): New function. |
| 1238 | (explicit_location_lex_one): Add explicit_completion_info |
| 1239 | parameter. Save quoting info. Don't throw if being called for |
| 1240 | completion. Don't handle Ada operators here. |
| 1241 | (is_cp_operator, skip_op_false_positives, first_of) |
| 1242 | (explicit_location_lex_one_function): New function. |
| 1243 | (string_to_explicit_location): Replace 'dont_throw' parameter with |
| 1244 | an explicit_completion_info pointer parameter. Handle it. Don't |
| 1245 | use explicit_location_lex_one to lex function names. Use |
| 1246 | explicit_location_lex_one_function instead. |
| 1247 | * location.h (struct explicit_completion_info): New. |
| 1248 | (string_to_explicit_location): Replace 'dont_throw' parameter with |
| 1249 | an explicit_completion_info pointer parameter. |
| 1250 | * symtab.c (default_collect_symbol_completion_matches_break_on): |
| 1251 | Add complete_symbol_mode parameter. Handle LINESPEC mode. |
| 1252 | (default_collect_symbol_completion_matches) |
| 1253 | (collect_symbol_completion_matches): Add complete_symbol_mode |
| 1254 | parameter. |
| 1255 | (collect_symbol_completion_matches_type): Pass down |
| 1256 | complete_symbol_mode::EXPRESSION. |
| 1257 | (collect_file_symbol_completion_matches): Add complete_symbol_mode |
| 1258 | parameter. Handle LINESPEC mode. |
| 1259 | * symtab.h (complete_symbol_mode): New. |
| 1260 | (default_collect_symbol_completion_matches_break_on) |
| 1261 | (default_collect_symbol_completion_matches) |
| 1262 | (collect_symbol_completion_matches) |
| 1263 | (collect_file_symbol_completion_matches): Add complete_symbol_mode |
| 1264 | parameter. |
| 1265 | |
| 1266 | 2017-07-17 Pedro Alves <palves@redhat.com> |
| 1267 | |
| 1268 | * utils.c (enum class strncmp_iw_mode): New. |
| 1269 | (strcmp_iw): Rename to ... |
| 1270 | (strncmp_iw_with_mode): ... this. Add string2_len and mode |
| 1271 | parameters. Handle them. |
| 1272 | (strncmp_iw): New. |
| 1273 | (strcmp_iw): Reimplement as wrapper around strncmp_iw_with_mode. |
| 1274 | * utils.h (strncmp_iw): Declare. |
| 1275 | (strcmp_iw): Move describing comments here. |
| 1276 | |
| 1277 | 2017-07-17 Pedro Alves <palves@redhat.com> |
| 1278 | |
| 1279 | * c-exp.y (operator_stoken): Use CP_OPERATOR_LEN and |
| 1280 | CP_OPERATOR_STR. |
| 1281 | * c-typeprint.c (is_type_conversion_operator): Use |
| 1282 | CP_OPERATOR_STR. |
| 1283 | * cp-support.c (LENGTH_OF_OPERATOR): Delete. |
| 1284 | (cp_find_first_component_aux): Use CP_OPERATOR_STR and |
| 1285 | CP_OPERATOR_LEN. |
| 1286 | * cp-support.h (CP_OPERATOR_STR, CP_OPERATOR_LEN): New. |
| 1287 | * gnu-v2-abi.c (gnuv2_is_operator_name): Use CP_OPERATOR_STR. |
| 1288 | * gnu-v3-abi.c (gnuv3_is_operator_name): Use CP_OPERATOR_STR. |
| 1289 | * linespec.c (linespec_lexer_lex_string): Use CP_OPERATOR_LEN and |
| 1290 | CP_OPERATOR_STR. |
| 1291 | * location.c: Include "cp-support.h". |
| 1292 | (explicit_location_lex_one): Use CP_OPERATOR_LEN and |
| 1293 | CP_OPERATOR_STR. |
| 1294 | * symtab.c (operator_chars): Use CP_OPERATOR_STR and |
| 1295 | CP_OPERATOR_LEN. |
| 1296 | |
| 1297 | 2017-07-17 Pedro Alves <palves@redhat.com> |
| 1298 | |
| 1299 | * cli/cli-cmds.c (complete_command): Use a completion tracker |
| 1300 | along with completion_find_completion_word for handle_brkchars |
| 1301 | phase. |
| 1302 | * completer.c (RL_QF_SINGLE_QUOTE, RL_QF_DOUBLE_QUOTE) |
| 1303 | (RL_QF_BACKSLASH, RL_QF_OTHER_QUOTE): New. |
| 1304 | (struct gdb_rl_completion_word_info): New. |
| 1305 | (gdb_rl_find_completion_word): New. |
| 1306 | (completion_find_completion_word): New. |
| 1307 | * completer.h (completion_find_completion_word): Declare. |
| 1308 | |
| 1309 | 2017-07-17 Pedro Alves <palves@redhat.com> |
| 1310 | |
| 1311 | * ada-lang.c (symbol_completion_match): Adjust comments. |
| 1312 | (symbol_completion_add): Replace vector parameter with |
| 1313 | completion_tracker parameter. Use it. |
| 1314 | (ada_make_symbol_completion_list): Rename to... |
| 1315 | (ada_collect_symbol_completion_matches): ... this. Add |
| 1316 | completion_tracker parameter and use it. |
| 1317 | (ada_language_defn): Adjust. |
| 1318 | * break-catch-syscall.c (catch_syscall_completer): Adjust |
| 1319 | prototype and work with completion_tracker instead of VEC. |
| 1320 | * breakpoint.c (condition_completer): Adjust prototype and work |
| 1321 | with completion_tracker instead of VEC. |
| 1322 | * c-lang.c (c_language_defn, cplus_language_defn) |
| 1323 | (asm_language_defn, minimal_language_defn): Adjust to renames. |
| 1324 | * cli/cli-cmds.c (complete_command): Rework using |
| 1325 | completion_tracker. Catch exceptions when completing. |
| 1326 | * cli/cli-decode.c (integer_unlimited_completer) |
| 1327 | (complete_on_cmdlist, complete_on_enum): Adjust prototype and work |
| 1328 | with completion_tracker instead of VEC. |
| 1329 | * command.h (struct completion_tracker): Forward declare. |
| 1330 | (completer_ftype, completer_handle_brkchars_ftype): Change |
| 1331 | types. |
| 1332 | (complete_on_cmdlist, complete_on_enum): Adjust. |
| 1333 | * completer.c: Include <algorithm>. |
| 1334 | (struct gdb_completer_state): New. |
| 1335 | (current_completion): New global. |
| 1336 | (readline_line_completion_function): Delete. |
| 1337 | (noop_completer, filename_completer) |
| 1338 | (filename_completer_handle_brkchars, complete_files_symbols) |
| 1339 | (linespec_location_completer): Adjust to work with a |
| 1340 | completion_tracker instead of a VEC. |
| 1341 | (string_or_empty): New. |
| 1342 | (collect_explicit_location_matches): Adjust to work with a |
| 1343 | completion_tracker instead of a VEC. |
| 1344 | (explicit_location_completer): Rename to ... |
| 1345 | (complete_explicit_location): ... this and adjust to work with a |
| 1346 | completion_tracker instead of a VEC. |
| 1347 | (location_completer): Adjust to work with a completion_tracker |
| 1348 | instead of a VEC. |
| 1349 | (add_struct_fields): Adjust to work with a completion_list instead |
| 1350 | of VEC. |
| 1351 | (expression_completer): Rename to ... |
| 1352 | (complete_expression): ... this and adjust to work with a |
| 1353 | completion_tracker instead of a VEC. Use complete_files_symbols. |
| 1354 | (expression_completer): Reimplement on top of complete_expression. |
| 1355 | (symbol_completer): Adjust to work with a completion_tracker |
| 1356 | instead of a VEC. |
| 1357 | (enum complete_line_internal_reason): Add describing comments. |
| 1358 | (complete_line_internal_normal_command): Adjust to work with a |
| 1359 | completion_tracker instead of a VEC. |
| 1360 | (complete_line_internal): Rename to ... |
| 1361 | (complete_line_internal_1): ... this and adjust to work with a |
| 1362 | completion_tracker instead of a VEC. Assert TEXT is NULL in the |
| 1363 | handle_brkchars phase. |
| 1364 | (new_completion_tracker): Delete. |
| 1365 | (complete_line_internal): Reimplement as TRY/CATCH wrapper around |
| 1366 | complete_line_internal_1. |
| 1367 | (free_completion_tracker): Delete. |
| 1368 | (INITIAL_COMPLETION_HTAB_SIZE): New. |
| 1369 | (completion_tracker::completion_tracker) |
| 1370 | (completion_tracker::~completion_tracker): New. |
| 1371 | (maybe_add_completion): Delete. |
| 1372 | (completion_tracker::maybe_add_completion) |
| 1373 | (completion_tracker::add_completion) |
| 1374 | (completion_tracker::add_completions): New. |
| 1375 | (throw_max_completions_reached_error): Delete. |
| 1376 | (complete_line): Adjust to work with a completion_tracker instead |
| 1377 | of a VEC. Don't create a completion_tracker_t or check for max |
| 1378 | completions here. |
| 1379 | (command_completer, command_completer_handle_brkchars) |
| 1380 | (signal_completer, reg_or_group_completer_1) |
| 1381 | (reg_or_group_completer, default_completer_handle_brkchars): |
| 1382 | Adjust to work with a completion_tracker. |
| 1383 | (gdb_completion_word_break_characters_throw): New. |
| 1384 | (gdb_completion_word_break_characters): Reimplement. |
| 1385 | (line_completion_function): Delete. |
| 1386 | (completion_tracker::recompute_lowest_common_denominator) |
| 1387 | (expand_preserving_ws) |
| 1388 | (completion_tracker::build_completion_result) |
| 1389 | (completion_result::completion_result) |
| 1390 | (completion_result::completion_result) |
| 1391 | (completion_result::~completion_result) |
| 1392 | (completion_result::completion_result) |
| 1393 | (completion_result::release_match_list, compare_cstrings) |
| 1394 | (completion_result::sort_match_list) |
| 1395 | (completion_result::reset_match_list) |
| 1396 | (gdb_rl_attempted_completion_function_throw) |
| 1397 | (gdb_rl_attempted_completion_function): New. |
| 1398 | * completer.h (completion_list, struct completion_result) |
| 1399 | (class completion_tracker): New. |
| 1400 | (complete_line): Add completion_tracker parameter. |
| 1401 | (readline_line_completion_function): Delete. |
| 1402 | (gdb_rl_attempted_completion_function): New. |
| 1403 | (noop_completer, filename_completer, expression_completer) |
| 1404 | (location_completer, symbol_completer, command_completer) |
| 1405 | (signal_completer, reg_or_group_completer): Update prototypes. |
| 1406 | (completion_tracker_t, new_completion_tracker) |
| 1407 | (make_cleanup_free_completion_tracker): Delete. |
| 1408 | (enum maybe_add_completion_enum): Delete. |
| 1409 | (maybe_add_completion): Delete. |
| 1410 | (throw_max_completions_reached_error): Delete. |
| 1411 | * corefile.c (complete_set_gnutarget): Adjust to work with a |
| 1412 | completion_tracker instead of a VEC. |
| 1413 | * cp-abi.c (cp_abi_completer): Adjust to work with a |
| 1414 | completion_tracker instead of a VEC. |
| 1415 | * d-lang.c (d_language_defn): Adjust. |
| 1416 | * disasm.c (disassembler_options_completer): Adjust to work with a |
| 1417 | completion_tracker instead of a VEC. |
| 1418 | * f-lang.c (f_make_symbol_completion_list): Rename to ... |
| 1419 | (f_collect_symbol_completion_matches): ... this. Adjust to work |
| 1420 | with a completion_tracker instead of a VEC. |
| 1421 | (f_language_defn): Adjust. |
| 1422 | * go-lang.c (go_language_defn): Adjust. |
| 1423 | * guile/scm-cmd.c (cmdscm_add_completion, cmdscm_completer): |
| 1424 | Adjust to work with a completion_tracker instead of a VEC. |
| 1425 | * infrun.c (handle_completer): Likewise. |
| 1426 | * interps.c (interpreter_completer): Likewise. |
| 1427 | * interps.h (interpreter_completer): Likewise. |
| 1428 | * language.c (unknown_language_defn, auto_language_defn) |
| 1429 | (local_language_defn): Adjust. |
| 1430 | * language.h (language_defn::la_make_symbol_completion_list): |
| 1431 | Rename to ... |
| 1432 | (language_defn::la_collect_symbol_completion_matches): ... this |
| 1433 | and adjust to work with a completion_tracker instead of a VEC. |
| 1434 | * m2-lang.c (m2_language_defn): Adjust. |
| 1435 | * objc-lang.c (objc_language_defn): Adjust. |
| 1436 | * opencl-lang.c (opencl_language_defn): Adjust. |
| 1437 | * p-lang.c (pascal_language_defn): Adjust. |
| 1438 | * python/py-cmd.c (cmdpy_completer_helper): Handle NULL word. |
| 1439 | (cmdpy_completer_handle_brkchars, cmdpy_completer): Adjust to work |
| 1440 | with a completion_tracker. |
| 1441 | * rust-lang.c (rust_language_defn): Adjust. |
| 1442 | * symtab.c (free_completion_list, do_free_completion_list) |
| 1443 | (return_val, completion_tracker): Delete. |
| 1444 | (completion_list_add_name, completion_list_add_symbol) |
| 1445 | (completion_list_add_msymbol, completion_list_objc_symbol) |
| 1446 | (completion_list_add_fields, add_symtab_completions): Add |
| 1447 | completion_tracker parameter and use it. |
| 1448 | (default_make_symbol_completion_list_break_on_1): Rename to... |
| 1449 | (default_collect_symbol_completion_matches_break_on): ... this. |
| 1450 | Add completion_tracker parameter and use it instead of allocating |
| 1451 | a completion tracker here. |
| 1452 | (default_make_symbol_completion_list_break_on): Delete old |
| 1453 | implementation. |
| 1454 | (default_make_symbol_completion_list): Delete. |
| 1455 | (default_collect_symbol_completion_matches): New. |
| 1456 | (make_symbol_completion_list): Delete. |
| 1457 | (collect_symbol_completion_matches): New. |
| 1458 | (make_symbol_completion_type): Rename to ... |
| 1459 | (collect_symbol_completion_matches_type): ... this. Add |
| 1460 | completion_tracker parameter and use it instead of VEC. |
| 1461 | (make_file_symbol_completion_list_1): Rename to... |
| 1462 | (collect_file_symbol_completion_matches): ... this. Add |
| 1463 | completion_tracker parameter and use it instead of VEC. |
| 1464 | (make_file_symbol_completion_list): Delete. |
| 1465 | (add_filename_to_list): Use completion_list instead of a VEC. |
| 1466 | (add_partial_filename_data::list): Now a completion_list. |
| 1467 | (make_source_files_completion_list): Work with a completion_list |
| 1468 | instead of a VEC. |
| 1469 | * symtab.h: Include "completer.h". |
| 1470 | (default_make_symbol_completion_list_break_on) |
| 1471 | (default_make_symbol_completion_list, make_symbol_completion_list) |
| 1472 | (make_symbol_completion_type, make_file_symbol_completion_list) |
| 1473 | (make_source_files_completion_list): Delete. |
| 1474 | (default_collect_symbol_completion_matches_break_on) |
| 1475 | (default_collect_symbol_completion_matches) |
| 1476 | (collect_symbol_completion_matches) |
| 1477 | (collect_symbol_completion_matches_type) |
| 1478 | (collect_file_symbol_completion_matches) |
| 1479 | (make_source_files_completion_list): New. |
| 1480 | * top.c (init_main): Don't install a rl_completion_entry_function |
| 1481 | hook. Install a rl_attempted_completion_function hook instead. |
| 1482 | * tui/tui-layout.c (layout_completer): Adjust to work with a |
| 1483 | completion_tracker. |
| 1484 | * tui/tui-regs.c (tui_reggroup_completer): |
| 1485 | * tui/tui-win.c (window_name_completer, focus_completer) |
| 1486 | (winheight_completer): Adjust to work with a completion_tracker. |
| 1487 | * value.c: Include "completer.h". |
| 1488 | (complete_internalvar): Adjust to work with a completion_tracker. |
| 1489 | * value.h (complete_internalvar): Likewise. |
| 1490 | |
| 1491 | 2017-07-17 Pedro Alves <palves@redhat.com> |
| 1492 | |
| 1493 | * cli/cli-decode.c (set_cmd_completer_handle_brkchars): Adjust to |
| 1494 | renames. |
| 1495 | * cli/cli-decode.h (struct cmd_list_element) <completer>: Move |
| 1496 | comments to completer_ftype's declaration. |
| 1497 | <completer_handle_brkchars>: Change type to |
| 1498 | completer_handle_brkchars_ftype. |
| 1499 | * command.h (completer_ftype): Add describing comment and give |
| 1500 | names to parameters. |
| 1501 | (completer_ftype_void): Rename to ... |
| 1502 | (completer_handle_brkchars_ftype) ... this. Add describing comment. |
| 1503 | (set_cmd_completer_handle_brkchars): Adjust. |
| 1504 | * completer.c (filename_completer_handle_brkchars): New function. |
| 1505 | (complete_line_internal_normal_command): New function, factored |
| 1506 | out from ... |
| 1507 | (complete_line_internal): ... here. |
| 1508 | (command_completer_handle_brkchars) |
| 1509 | (default_completer_handle_brkchars) |
| 1510 | (completer_handle_brkchars_func_for_completer): New functions. |
| 1511 | * completer.h (set_gdb_completion_word_break_characters): Delete |
| 1512 | declaration. |
| 1513 | (completer_handle_brkchars_func_for_completer): New declaration. |
| 1514 | * python/py-cmd.c (cmdpy_completer_handle_brkchars): Adjust to use |
| 1515 | completer_handle_brkchars_func_for_completer. |
| 1516 | |
| 1517 | 2017-07-17 Pedro Alves <palves@redhat.com> |
| 1518 | |
| 1519 | * completer.c (symbol_completer): New function, based on |
| 1520 | make_symbol_completion_list_fn. |
| 1521 | * completer.h (symbol_completer): New declaration. |
| 1522 | * guile/scm-cmd.c (cmdscm_completers): Adjust. |
| 1523 | * python/py-cmd.c (completers): Adjust. |
| 1524 | * symtab.c (make_symbol_completion_list_fn): Delete. |
| 1525 | * symtab.h (make_symbol_completion_list_fn): Delete. |
| 1526 | * cli/cli-decode.c (add_cmd): Adjust. |
| 1527 | |
| 1528 | 2017-07-17 Pedro Alves <palves@redhat.com> |
| 1529 | |
| 1530 | * Makefile.in (COMMON_OBS): Add filename-seen-cache.o. |
| 1531 | * dwarf2read.c: Include "filename-seen-cache.h". |
| 1532 | * dwarf2read.c (dwarf2_per_objfile) <filenames_cache>: New field. |
| 1533 | (dw2_map_symbol_filenames): Build and use a filenames_seen_cache. |
| 1534 | * filename-seen-cache.c: New file. |
| 1535 | * filename-seen-cache.h: New file. |
| 1536 | * symtab.c: Include "filename-seen-cache.h". |
| 1537 | (struct filename_seen_cache, INITIAL_FILENAME_SEEN_CACHE_SIZE) |
| 1538 | (create_filename_seen_cache, clear_filename_seen_cache) |
| 1539 | (delete_filename_seen_cache, filename_seen): Delete, parts moved |
| 1540 | to filename-seen-cache.h/filename-seen-cache.c. |
| 1541 | (output_source_filename, sources_info) |
| 1542 | (maybe_add_partial_symtab_filename) |
| 1543 | (make_source_files_completion_list): Adjust to use |
| 1544 | filename_seen_cache. |
| 1545 | |
| 1546 | 2017-07-17 Pedro Alves <palves@redhat.com> |
| 1547 | |
| 1548 | * dwarf2read.c (dwarf2_per_objfile): In-class initialize all |
| 1549 | fields. |
| 1550 | (dwarf2_per_objfile::dwarf2_per_objfile(objfile*, const |
| 1551 | dwarf2_debug_sections*)): New. |
| 1552 | (dwarf2_per_objfile::dwarf2_per_objfile(const |
| 1553 | dwarf2_per_objfile&)): Declare as deleted. |
| 1554 | (dwarf2_per_objfile::operator=): Declare as deleted. |
| 1555 | (dwarf2_per_objfile::dwarf2_per_objfile) |
| 1556 | (dwarf2_per_objfile::~dwarf2_per_objfile) |
| 1557 | (dwarf2_per_objfile::free_cached_comp_units): New. |
| 1558 | (dwarf2_has_info): dwarf2_per_objfile initialization code moved to |
| 1559 | ctor. Call dwarf2_per_objfile's ctor manually. |
| 1560 | (dwarf2_locate_sections): Deleted/refactored as ... |
| 1561 | (dwarf2_per_objfile::locate_sections): ... this new method. |
| 1562 | (free_cached_comp_units): Defer to |
| 1563 | dwarf2_per_objfile::free_cached_comp_units. |
| 1564 | (dwarf2_free_objfile): Call dwarf2_per_objfile's dtor manually. |
| 1565 | |
| 1566 | 2017-07-14 Tom Tromey <tom@tromey.com> |
| 1567 | |
| 1568 | PR rust/21764: |
| 1569 | * rust-exp.y (convert_ast_to_expression): Add "want_type" |
| 1570 | parameter. |
| 1571 | <UNOP_SIZEOF>: Split into separate case. |
| 1572 | <UNOP_VAR_VALUE>: Handle want_type. Add error case. |
| 1573 | |
| 1574 | 2017-07-14 Tom Tromey <tom@tromey.com> |
| 1575 | |
| 1576 | PR rust/21763: |
| 1577 | * symtab.c (symbol_matches_domain): Add language_rust to special |
| 1578 | case. |
| 1579 | * rust-exp.y (convert_ast_to_expression) <OP_VAR_VALUE>: Don't |
| 1580 | treat LOC_TYPEDEF symbols as variables. |
| 1581 | |
| 1582 | 2017-07-14 Pedro Alves <palves@redhat.com> |
| 1583 | |
| 1584 | * symtab.c (make_file_symbol_completion_list_1): Iterate over |
| 1585 | symtabs matching all symtabs with SRCFILE as file name instead of |
| 1586 | only considering the first hit, with lookup_symtab. |
| 1587 | |
| 1588 | 2017-07-14 Simon Marchi <simon.marchi@ericsson.com> |
| 1589 | |
| 1590 | * ax-gdb.c (gen_aggregate_elt_ref): Remove operand_name and |
| 1591 | operator_name parameters. |
| 1592 | (gen_expr): Update function call. |
| 1593 | |
| 1594 | 2017-07-14 Simon Marchi <simon.marchi@ericsson.com> |
| 1595 | |
| 1596 | * dwarf2loc.h (dwarf2_compile_expr_to_ax): Remove gdbarch |
| 1597 | parameter. |
| 1598 | * symtab.h (struct symbol_computed_ops::tracepoint_var_ref): |
| 1599 | Likewise. |
| 1600 | * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove gdbarch |
| 1601 | parameter, use agent_expr::gdbarch instead, update function |
| 1602 | calls. |
| 1603 | (locexpr_tracepoint_var_ref): Likewise. |
| 1604 | (loclist_tracepoint_var_ref): Likewise. |
| 1605 | * ax-gdb.c (gen_trace_static_fields): Likewise. |
| 1606 | (gen_traced_pop): Likewise. |
| 1607 | (gen_frame_args_address): Likewise. |
| 1608 | (gen_frame_locals_address): Likewise. |
| 1609 | (gen_var_ref): Likewise. |
| 1610 | (gen_struct_ref_recursive): Likewise. |
| 1611 | (gen_static_field): Likewise. |
| 1612 | (gen_maybe_namespace_elt): Likewise. |
| 1613 | (gen_expr): Likewise. |
| 1614 | (gen_trace_for_var): Likewise. |
| 1615 | (gen_trace_for_expr): Likewise. |
| 1616 | (gen_trace_for_return_address): Likewise. |
| 1617 | |
| 1618 | 2017-07-14 Simon Marchi <simon.marchi@ericsson.com> |
| 1619 | |
| 1620 | * ax-gdb.c (gen_deref, gen_address_of): Remove unused ax |
| 1621 | parameter. |
| 1622 | (gen_struct_ref, gen_expr, gen_expr_binop_rest): Update call. |
| 1623 | |
| 1624 | 2017-07-14 Simon Marchi <simon.marchi@ericsson.com> |
| 1625 | |
| 1626 | * ax-gdb.c (gen_usual_unary): Remove exp parameter, get gdbarch |
| 1627 | from ax, update calls. |
| 1628 | (gen_usual_arithmetic): Likewise. |
| 1629 | (gen_integral_promotions): Likewise. |
| 1630 | (gen_bitfield_ref): Likewise. |
| 1631 | (gen_primitive_field): Likewise. |
| 1632 | (gen_struct_ref_recursive): Likewise. |
| 1633 | (gen_struct_ref): Likewise. |
| 1634 | (gen_maybe_namespace_elt): Likewise. |
| 1635 | (gen_struct_elt_for_reference): Likewise. |
| 1636 | (gen_namespace_elt): Likewise. |
| 1637 | (gen_aggregate_elt_ref): Likewise. |
| 1638 | (gen_expr): Get gdbarch from ax, update calls. |
| 1639 | (gen_expr_binop_rest): Likewise. |
| 1640 | |
| 1641 | 2017-07-13 Pedro Alves <palves@redhat.com> |
| 1642 | |
| 1643 | * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Pass tdesc_amd64 |
| 1644 | as default tdesc. |
| 1645 | * amd64-dicos-tdep.c (amd64_dicos_init_abi): |
| 1646 | * amd64-fbsd-tdep.c (amd64fbsd_init_abi): |
| 1647 | * amd64-linux-tdep.c (amd64_linux_init_abi): Pass |
| 1648 | tdesc_amd64_linux as default tdesc. Get final tdesc from the |
| 1649 | tdep. |
| 1650 | (amd64_x32_linux_init_abi): Pass tdesc_x32_linux as default tdesc. |
| 1651 | Get final tdesc from the tdep. |
| 1652 | * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Pass tdesc_amd64 as |
| 1653 | default tdesc. |
| 1654 | * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise. |
| 1655 | * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise. |
| 1656 | * amd64-tdep.c (amd64_init_abi): Add 'default_tdesc' parameter. |
| 1657 | Use it as default tdesc. |
| 1658 | (amd64_x32_init_abi): Add 'default_tdesc' parameter, and pass it |
| 1659 | down to amd_init_abi. No longer handle fallback tdesc here. |
| 1660 | * amd64-tdep.h (tdesc_x32): Declare. |
| 1661 | (amd64_init_abi, amd64_x32_init_abi): Add 'default_tdesc' |
| 1662 | parameter. |
| 1663 | * amd64-windows-tdep.c (amd64_windows_init_abi): Pass tdesc_amd64 |
| 1664 | as default tdesc. |
| 1665 | |
| 1666 | 2017-07-13 Andreas Arnez <arnez@linux.vnet.ibm.com> |
| 1667 | |
| 1668 | * s390-linux-tdep.c (s390_process_record): Add support for |
| 1669 | instructions new in arch12. |
| 1670 | |
| 1671 | 2017-07-11 John Baldwin <jhb@FreeBSD.org> |
| 1672 | |
| 1673 | * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use |
| 1674 | PT_GETFSBASE and PT_GETGSBASE. |
| 1675 | (amd64bsd_store_inferior_registers): Use PT_SETFSBASE and |
| 1676 | PT_SETGSBASE. |
| 1677 | |
| 1678 | 2017-07-11 John Baldwin <jhb@FreeBSD.org> |
| 1679 | |
| 1680 | * features/Makefile (amd64.dat, amd64-avx.dat, amd64-mpx.dat) |
| 1681 | (amd64-avx-mpx.dat, amd64-avx-avx512.dat) |
| 1682 | (amd64-avx-mpx-avx512-pku.dat): Add i386/64bit-segments.xml in |
| 1683 | those rules. |
| 1684 | * features/i386/amd64-avx-avx512.xml: Add 64bit-segments.xml. |
| 1685 | * features/i386/amd64-avx-mpx-avx512-pku.xml: Add 64bit-segments.xml. |
| 1686 | * features/i386/amd64-avx-mpx.xml: Add 64bit-segments.xml. |
| 1687 | * features/i386/amd64-avx.xml: Add 64bit-segments.xml. |
| 1688 | * features/i386/amd64-mpx.xml: Add 64bit-segments.xml. |
| 1689 | * features/i386/amd64.xml: Add 64bit-segments.xml. |
| 1690 | * features/i386/amd64-avx-avx512.c: Regenerated. |
| 1691 | * features/i386/amd64-avx-mpx-avx512-pku.c: Regenerated. |
| 1692 | * features/i386/amd64-avx-mpx.c: Regenerated. |
| 1693 | * features/i386/amd64-avx.c: Regenerated. |
| 1694 | * features/i386/amd64-mpx.c: Regenerated. |
| 1695 | * features/i386/amd64.c: Regenerated. |
| 1696 | * regformats/i386/amd64-avx-avx512.dat: Regenerated. |
| 1697 | * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated. |
| 1698 | * regformats/i386/amd64-avx-mpx.dat: Regenerated. |
| 1699 | * regformats/i386/amd64-avx.dat: Regenerated. |
| 1700 | * regformats/i386/amd64-mpx.dat: Regenerated. |
| 1701 | * regformats/i386/amd64.dat: Regenerated. |
| 1702 | |
| 1703 | 2017-07-10 Yao Qi <yao.qi@linaro.org> |
| 1704 | |
| 1705 | * features/i386/amd64-avx-avx512-linux.c: Re-generated. |
| 1706 | * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated. |
| 1707 | |
| 1708 | 2017-07-10 Anton Kolesov <Anton.Kolesov@synopsys.com> |
| 1709 | |
| 1710 | * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add setenv and |
| 1711 | unsetenv. |
| 1712 | * gnulib/aclocal.m4: Regenerate. |
| 1713 | * gnulib/config.in: Regenerate. |
| 1714 | * gnulib/configure: Regenerate. |
| 1715 | * gnulib/import/Makefile.am: Regenerate. |
| 1716 | * gnulib/import/Makefile.in: Regenerate. |
| 1717 | * gnulib/import/m4/gnulib-cache.m4: Regenerate. |
| 1718 | * gnulib/import/m4/gnulib-comp.m4: Regenerate. |
| 1719 | * gnulib/import/m4/environ.m4: New file. |
| 1720 | * gnulib/import/m4/setenv.m4: New file. |
| 1721 | * gnulib/import/setenv.c: New file. |
| 1722 | * gnulib/import/unsetenv.c: New file. |
| 1723 | |
| 1724 | 2017-07-09 Simon Marchi <simon.marchi@ericsson.com> |
| 1725 | |
| 1726 | * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Read |
| 1727 | address when op is DW_OP_addr. |
| 1728 | |
| 1729 | 2017-07-09 Tom Tromey <tom@tromey.com> |
| 1730 | |
| 1731 | * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Reverse size |
| 1732 | check and apply to outer type. |
| 1733 | |
| 1734 | 2017-07-07 John Baldwin <jhb@FreeBSD.org> |
| 1735 | |
| 1736 | * fbsd-tdep.c (LWPINFO_OFFSET, LWPINFO_PL_FLAGS) |
| 1737 | (LWPINFO64_PL_SIGINFO, LWPINFO32_PL_SIGINFO, PL_FLAG_SI) |
| 1738 | (SIZE64_SIGINFO_T, SIZE32_SIGINFO_T, fbsd_core_xfer_siginfo): New. |
| 1739 | (fbsd_init_abi): Install gdbarch "core_xfer_siginfo" method. |
| 1740 | |
| 1741 | 2017-07-07 John Baldwin <jhb@FreeBSD.org> |
| 1742 | |
| 1743 | * fbsd-tdep.c (fbsd_core_thread_name): Use thread_section_name. |
| 1744 | |
| 1745 | 2017-07-07 John Baldwin <jhb@FreeBSD.org> |
| 1746 | |
| 1747 | * corelow.c (get_core_siginfo): Remove. |
| 1748 | (core_xfer_partial): Use the gdbarch "core_xfer_siginfo" method |
| 1749 | instead of get_core_siginfo. |
| 1750 | * gdbarch.sh (core_xfer_siginfo): New gdbarch callback. |
| 1751 | * gdbarch.h: Re-generate. |
| 1752 | * gdbarch.c: Re-generate. |
| 1753 | * linux-tdep.c (linux_core_xfer_siginfo): New. |
| 1754 | (linux_init_abi): Install gdbarch "core_xfer_siginfo" method. |
| 1755 | |
| 1756 | 2017-07-07 John Baldwin <jhb@FreeBSD.org> |
| 1757 | |
| 1758 | * corelow.c (thread_section_name): Move to ... |
| 1759 | * gdbcore.h (thread_section_name): ... here. |
| 1760 | |
| 1761 | 2017-07-07 John Baldwin <jhb@FreeBSD.org> |
| 1762 | |
| 1763 | * fbsd-nat.c [PT_LWPINFO && __LP64__] (union sigval32) |
| 1764 | (struct siginfo32): New. |
| 1765 | [PT_LWPINFO] (fbsd_siginfo_size, fbsd_convert_siginfo): New. |
| 1766 | (fbsd_xfer_partial) [PT_LWPINFO]: Handle TARGET_OBJECT_SIGNAL_INFO |
| 1767 | via ptrace(PT_LWPINFO). |
| 1768 | |
| 1769 | 2017-07-07 John Baldwin <jhb@FreeBSD.org> |
| 1770 | |
| 1771 | * fbsd-tdep.c (fbsd_gdbarch_data_handle, struct fbsd_gdbarch_data) |
| 1772 | (init_fbsd_gdbarch_data, get_fbsd_gdbarch_data) |
| 1773 | (fbsd_get_siginfo_type): New. |
| 1774 | (fbsd_init_abi): Install gdbarch "get_siginfo_type" method. |
| 1775 | (_initialize_fbsd_tdep): New. |
| 1776 | |
| 1777 | 2017-07-06 David Blaikie <dblaikie@gmail.com> |
| 1778 | |
| 1779 | * dwarf2read.c (struct dwo_file): Use a htab of dwo_unit* (rather than |
| 1780 | a singular dwo_unit*) to support multiple CUs in the same way that |
| 1781 | multiple TUs are supported. |
| 1782 | (create_cus_hash_table): Replace create_dwo_cu with a function for |
| 1783 | parsing multiple CUs from a DWO file. |
| 1784 | (open_and_init_dwo_file): Use create_cus_hash_table rather than |
| 1785 | create_dwo_cu. |
| 1786 | (lookup_dwo_cutu): Lookup CU in the hash table in the dwo_file with |
| 1787 | htab_find, rather than comparing the signature to a singleton CU in |
| 1788 | the dwo_file. |
| 1789 | |
| 1790 | 2017-07-06 Pedro Alves <palves@redhat.com> |
| 1791 | |
| 1792 | * python/py-unwind.c (pyuw_dealloc_cache): Fix for loop condition. |
| 1793 | |
| 1794 | 2017-07-04 Pedro Alves <palves@redhat.com> |
| 1795 | |
| 1796 | * gdbtypes.c (recursive_dump_type): Don't reference TYPE_STATIC. |
| 1797 | * gdbtypes.h (TYPE_STATIC): Delete. |
| 1798 | (struct fn_field) <is_public, is_abstract, is_static, is_final, |
| 1799 | is_synchronized, is_native>: Delete. |
| 1800 | <dummy>: Bump. |
| 1801 | (TYPE_FN_FIELD_PUBLIC, TYPE_FN_FIELD_STATIC, TYPE_FN_FIELD_FINAL) |
| 1802 | (TYPE_FN_FIELD_SYNCHRONIZED, TYPE_FN_FIELD_NATIVE) |
| 1803 | (TYPE_FN_FIELD_ABSTRACT): Delete. |
| 1804 | |
| 1805 | 2017-07-03 Simon Marchi <simon.marchi@ericsson.com> |
| 1806 | |
| 1807 | * buffer.h (buffer_finish): Fix spelling mistakes. |
| 1808 | |
| 1809 | 2017-07-01 Eli Zaretskii <eliz@gnu.org> |
| 1810 | |
| 1811 | * .dir-locals.el: Automatically switch to C-style comments in |
| 1812 | versions of Emacs that support the feature. |
| 1813 | |
| 1814 | 2017-06-30 Sergio Durigan Junior <sergiodj@redhat.com> |
| 1815 | Pedro Alves <palves@redhat.com> |
| 1816 | |
| 1817 | PR cli/21688 |
| 1818 | * cli/cli-script.c (command_name_equals_not_inline): Remove function. |
| 1819 | (process_next_line): New variable 'inline_cmd'. |
| 1820 | Adjust 'if' clauses for "python", "compile" and "guile" to use |
| 1821 | 'command_name_equals' and check for '!inline_cmd'. |
| 1822 | |
| 1823 | 2017-06-30 Sergio Durigan Junior <sergiodj@redhat.com> |
| 1824 | |
| 1825 | PR cli/21688 |
| 1826 | * cli/cli-script.c (command_name_equals_not_inline): New function. |
| 1827 | (process_next_line): Adjust 'if' clauses for "python", "compile" |
| 1828 | and "guile" to use command_name_equals_not_inline. |
| 1829 | |
| 1830 | 2017-06-29 Pedro Alves <palves@redhat.com> |
| 1831 | |
| 1832 | * completer.c (expression_completer): Call |
| 1833 | linespec_location_completer instead of location_completer. |
| 1834 | |
| 1835 | 2017-06-29 Pedro Alves <palves@redhat.com> |
| 1836 | |
| 1837 | * completer.c (expression_completer): Remove code that recomputes |
| 1838 | 'text' from 'word'. |
| 1839 | |
| 1840 | 2017-06-29 Yao Qi <yao.qi@linaro.org> |
| 1841 | |
| 1842 | * regformats/regdat.sh: Generate code with |
| 1843 | "ifndef IN_PROCESS_AGENT". |
| 1844 | |
| 1845 | 2017-06-28 Pedro Alves <palves@redhat.com> |
| 1846 | |
| 1847 | * command.h: Include "common/scoped_restore.h". |
| 1848 | |
| 1849 | 2017-06-28 Yao Qi <yao.qi@linaro.org> |
| 1850 | |
| 1851 | * mi/mi-cmd-break.c (mi_argv_to_format): Use obstack_grow_str |
| 1852 | instead of obstack_grow. |
| 1853 | |
| 1854 | 2017-06-28 Doug Gilmore <Doug.Gilmore@imgtec.com> |
| 1855 | |
| 1856 | PR gdb/21337 |
| 1857 | * symfile.c (reread_symbols): Call objfiles_changed just before |
| 1858 | read_symbols. |
| 1859 | |
| 1860 | 2017-06-27 Pedro Alves <palves@redhat.com> |
| 1861 | |
| 1862 | * symtab.c (COMPLETION_LIST_ADD_SYMBOL) |
| 1863 | (MCOMPLETION_LIST_ADD_SYMBOL): Delete macros, replace with ... |
| 1864 | (completion_list_add_symbol, completion_list_add_msymbol): |
| 1865 | ... these new functions. |
| 1866 | (add_symtab_completions) |
| 1867 | (default_make_symbol_completion_list_break_on_1): Adjust. |
| 1868 | |
| 1869 | 2017-06-27 Pedro Alves <palves@redhat.com> |
| 1870 | |
| 1871 | * objfiles.c (get_objfile_bfd_data): Call bfd_alloc instead of |
| 1872 | bfd_zalloc. Call objfile_per_bfd_storage's ctor. |
| 1873 | (free_objfile_per_bfd_storage): Call objfile_per_bfd_storage's |
| 1874 | dtor. |
| 1875 | * objfiles.h (objfile_per_bfd_storage): Add ctor. Make |
| 1876 | 'storage_obstack' field an auto_obstack. In-class initialize all |
| 1877 | non-bitfield fields. Make minsyms_read bool. |
| 1878 | * symfile.c (read_symbols): Adjust. |
| 1879 | |
| 1880 | 2017-06-27 Alan Hayward <alan.hayward@arm.com> |
| 1881 | |
| 1882 | * remote-sim.c (gdbsim_fetch_register): Use byte_vector. |
| 1883 | (gdbsim_store_register): Likewise. |
| 1884 | |
| 1885 | 2017-06-27 Pedro Alves <palves@redhat.com> |
| 1886 | |
| 1887 | * c-exp.y (name_obstack): Now an auto_obstack. |
| 1888 | (yylex): Use auto_obstack::clear. |
| 1889 | (c_parse): Use auto_obstack::clear instead of reinitializing and |
| 1890 | freeing the obstack. |
| 1891 | * c-lang.c (evaluate_subexp_c): Use auto_obstack. |
| 1892 | * d-exp.y (name_obstack): Now an auto_obstack. |
| 1893 | (yylex): Use auto_obstack::clear. |
| 1894 | (d_parse): Use auto_obstack::clear instead of reinitializing and |
| 1895 | freeing the obstack. |
| 1896 | * dwarf2loc.c (fetch_const_value_from_synthetic_pointer): Use |
| 1897 | auto_obstack. |
| 1898 | * dwarf2read.c (create_addrmap_from_index) |
| 1899 | (dwarf2_build_psymtabs_hard) |
| 1900 | (update_enumeration_type_from_children): Likewise. |
| 1901 | * gdb_obstack.h (auto_obstack): New type. |
| 1902 | * go-exp.y (name_obstack): Now an auto_obstack. |
| 1903 | (build_packaged_name): Use auto_obstack::clear. |
| 1904 | (go_parse): Use auto_obstack::clear instead of reinitializing and |
| 1905 | freeing the obstack. |
| 1906 | * linux-tdep.c (linux_make_mappings_corefile_notes): Use |
| 1907 | auto_obstack. |
| 1908 | * printcmd.c (printf_wide_c_string, ui_printf): Use auto_obstack. |
| 1909 | * rust-exp.y (work_obstack): Now an auto_obstack. |
| 1910 | (rust_parse, rust_lex_tests): Use auto_obstack::clear instead of |
| 1911 | reinitializing and freeing the obstack. |
| 1912 | * utils.c (do_obstack_free, make_cleanup_obstack_free): Delete. |
| 1913 | (host_char_to_target): Use auto_obstack. |
| 1914 | * utils.h (make_cleanup_obstack_free): Delete declaration. |
| 1915 | * valprint.c (generic_emit_char, generic_printstr): Use |
| 1916 | auto_obstack. |
| 1917 | |
| 1918 | 2017-06-27 Simon Marchi <simon.marchi@ericsson.com> |
| 1919 | |
| 1920 | * darwin-nat.c (darwin_check_new_threads): Don't handle dummy |
| 1921 | thread. |
| 1922 | (darwin_init_thread_list): Don't update dummy thread. |
| 1923 | (darwin_create_inferior, darwin_attach): Don't add a dummy thread. |
| 1924 | |
| 1925 | 2017-06-26 Simon Marchi <simon.marchi@ericsson.com> |
| 1926 | |
| 1927 | * record-full.c (netorder16): Remove. |
| 1928 | |
| 1929 | 2017-06-26 Simon Marchi <simon.marchi@ericsson.com> |
| 1930 | |
| 1931 | * common/diagnostics.h: Define macros for GCC. |
| 1932 | (DIAGNOSTIC_IGNORE_UNUSED_FUNCTION): New macro. |
| 1933 | * common/vec.h: Include diagnostics.h. |
| 1934 | (DIAGNOSTIC_IGNORE_UNUSED_VEC_FUNCTION): New macro. |
| 1935 | (DEF_VEC_I, DEF_VEC_P, DEF_VEC_O): Ignore -Wunused-function |
| 1936 | warning. |
| 1937 | |
| 1938 | 2017-06-26 Simon Marchi <simon.marchi@ericsson.com> |
| 1939 | |
| 1940 | * common/diagnostics.h (DIAGNOSTIC_IGNORE_DEPRECATED_REGISTER): |
| 1941 | New macro. |
| 1942 | * ada-lex.l: Ignore deprecated register warnings. |
| 1943 | |
| 1944 | 2017-06-25 Simon Marchi <simon.marchi@ericsson.com> |
| 1945 | |
| 1946 | * main.c (get_init_files): Replace "SYSTEM_GDBINIT + |
| 1947 | datadir_len" with "&SYSTEM_GDBINIT[datadir_len]". |
| 1948 | |
| 1949 | 2017-06-25 Simon Marchi <simon.marchi@ericsson.com> |
| 1950 | |
| 1951 | * dtrace-probe.c (dtrace_process_dof_probe): Put semi-colon on |
| 1952 | its own line. |
| 1953 | |
| 1954 | 2017-06-25 Simon Marchi <simon.marchi@ericsson.com> |
| 1955 | |
| 1956 | * nat/x86-dregs.c (x86_show_dr): Print registers one per line. |
| 1957 | |
| 1958 | 2017-06-23 Alan Hayward <alan.hayward@arm.com> |
| 1959 | |
| 1960 | * xtensa-tdep.c (XTENSA_MAX_REGISTER_SIZE): Add. |
| 1961 | (xtensa_register_write_masked): Use XTENSA_MAX_REGISTER_SIZE. |
| 1962 | (xtensa_register_read_masked): Likewise. |
| 1963 | |
| 1964 | 2017-06-22 Sergio Durigan Junior <sergiodj@redhat.com> |
| 1965 | |
| 1966 | * common/environ.c (gdb_environ::unset): Update comment. |
| 1967 | |
| 1968 | 2017-06-22 Alan Hayward <alan.hayward@arm.com> |
| 1969 | |
| 1970 | * python/py-unwind.c (pyuw_sniffer): Allocate space for |
| 1971 | registers. |
| 1972 | |
| 1973 | 2017-06-22 Alan Hayward <alan.hayward@arm.com> |
| 1974 | |
| 1975 | * record-full.c (record_full_exec_insn): Use byte_vector. |
| 1976 | |
| 1977 | 2017-06-22 Yao Qi <yao.qi@linaro.org> |
| 1978 | |
| 1979 | * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Regenerated. |
| 1980 | * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated. |
| 1981 | |
| 1982 | 2017-06-22 Alan Hayward <alan.hayward@arm.com> |
| 1983 | |
| 1984 | * remote.c (cached_reg): Move from here... |
| 1985 | * regcache.h (cached_reg): ...to here. |
| 1986 | * python/py-unwind.c (struct reg_info): Remove. |
| 1987 | (cached_frame_info): Use cached_reg_t. |
| 1988 | (pyuw_prev_register): Likewise. |
| 1989 | (pyuw_sniffer): Use cached_reg_t and allocate registers. |
| 1990 | (pyuw_dealloc_cache): Free all registers. |
| 1991 | |
| 1992 | 2017-06-22 Pedro Alves <palves@redhat.com> |
| 1993 | Simon Marchi <simon.marchi@ericsson.com> |
| 1994 | |
| 1995 | * unittests/environ-selftests.c (run_tests): Ignore -Wself-move |
| 1996 | warning. |
| 1997 | * common/diagnostics.h: New file. |
| 1998 | |
| 1999 | 2017-06-22 Pedro Alves <palves@redhat.com> |
| 2000 | |
| 2001 | * common/agent.h: Add include guards. |
| 2002 | |
| 2003 | 2017-06-21 Simon Marchi <simon.marchi@ericsson.com> |
| 2004 | |
| 2005 | * target.h (struct target_ops) <to_xfer_partial>: Update doc to |
| 2006 | talk about addressable units instead of bytes. |
| 2007 | |
| 2008 | 2017-06-20 Sergio Durigan Junior <sergiodj@redhat.com> |
| 2009 | |
| 2010 | * common/environ.c (gdb_environ::unset): Use '::iterator' instead |
| 2011 | of '::const_iterator'. |
| 2012 | |
| 2013 | 2017-06-20 Sergio Durigan Junior <sergiodj@redhat.com> |
| 2014 | |
| 2015 | * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add |
| 2016 | 'unittests/environ-selftests.c'. |
| 2017 | (SUBDIR_UNITTESTS_OBS): Add 'environ-selftests.o'. |
| 2018 | * charset.c (find_charset_names): Declare object 'iconv_env'. |
| 2019 | Update code to use 'iconv_env' object. Remove call to |
| 2020 | 'free_environ'. |
| 2021 | * common/environ.c: Include <utility>. |
| 2022 | (make_environ): Delete function. |
| 2023 | (free_environ): Delete function. |
| 2024 | (gdb_environ::clear): New function. |
| 2025 | (gdb_environ::operator=): New function. |
| 2026 | (gdb_environ::get): Likewise. |
| 2027 | (environ_vector): Delete function. |
| 2028 | (set_in_environ): Delete function. |
| 2029 | (gdb_environ::set): New function. |
| 2030 | (unset_in_environ): Delete function. |
| 2031 | (gdb_environ::unset): New function. |
| 2032 | (gdb_environ::envp): Likewise. |
| 2033 | * common/environ.h: Include <vector>. |
| 2034 | (struct gdb_environ): Delete; transform into... |
| 2035 | (class gdb_environ): ... this class. |
| 2036 | (free_environ): Delete prototype. |
| 2037 | (init_environ, get_in_environ, set_in_environ, unset_in_environ, |
| 2038 | environ_vector): Likewise. |
| 2039 | * infcmd.c (run_command_1): Update code to call |
| 2040 | 'envp' from 'gdb_environ' class. |
| 2041 | (environment_info): Update code to call methods from 'gdb_environ' |
| 2042 | class. |
| 2043 | (unset_environment_command): Likewise. |
| 2044 | (path_info): Likewise. |
| 2045 | (path_command): Likewise. |
| 2046 | * inferior.c (inferior::~inferior): Delete call to 'free_environ'. |
| 2047 | (inferior::inferior): Initialize 'environment' using the host's |
| 2048 | information. |
| 2049 | * inferior.h: Remove forward declaration of 'struct gdb_environ'. |
| 2050 | Include "environ.h". |
| 2051 | (class inferior) <environment>: Change type from 'struct |
| 2052 | gdb_environ' to 'gdb_environ'. |
| 2053 | * mi/mi-cmd-env.c (mi_cmd_env_path): Update code to call |
| 2054 | methods from 'gdb_environ' class. |
| 2055 | * solib.c (solib_find_1): Likewise |
| 2056 | * unittests/environ-selftests.c: New file. |
| 2057 | |
| 2058 | 2017-06-20 Yao Qi <yao.qi@linaro.org> |
| 2059 | |
| 2060 | * features/i386/i386-linux.xml: Exchange the order of including |
| 2061 | 32bit-linux.xml and 32bit-sse.xml. |
| 2062 | * features/i386/i386-linux.c: Regenerated. |
| 2063 | |
| 2064 | 2017-06-20 Yao Qi <yao.qi@linaro.org> |
| 2065 | |
| 2066 | * target-descriptions.c (tdesc_reg): Add ctor, dtor. |
| 2067 | Delete copy ctor and assignment operator. |
| 2068 | (tdesc_type): Likewise. |
| 2069 | (tdesc_feature): Likewise. |
| 2070 | (tdesc_free_reg): Remove. |
| 2071 | (tdesc_create_reg): Use new. |
| 2072 | (tdesc_free_type): Remove. |
| 2073 | (tdesc_create_vector): Use new. |
| 2074 | (tdesc_create_union): Likewise. |
| 2075 | (tdesc_create_flags): Likewise. |
| 2076 | (tdesc_create_enum): Likewise. |
| 2077 | (tdesc_free_feature): Delete. |
| 2078 | (free_target_description): Use delete. |
| 2079 | |
| 2080 | 2017-06-19 John Baldwin <jhb@FreeBSD.org> |
| 2081 | |
| 2082 | * mips-tdep.c (print_gp_register_row): Don't error for unavailable |
| 2083 | registers. |
| 2084 | |
| 2085 | 2017-06-19 Pedro Alves <palves@redhat.com> |
| 2086 | |
| 2087 | * dwarf2read.c (write_psymtabs_to_index): Construct file_closer |
| 2088 | after gdb::unlinker. |
| 2089 | |
| 2090 | 2017-06-19 Sergio Durigan Junior <sergiodj@redhat.com> |
| 2091 | |
| 2092 | * mi/mi-cm-env.c (_initialize_mi_cmd_env): Use getenv instead of |
| 2093 | gdb_environ to access an environment variable. |
| 2094 | |
| 2095 | 2017-06-18 Thomas Petazzoni <thomas.petazzoni@free-electrons.com> |
| 2096 | |
| 2097 | * nat/linux-ptrace.c (linux_fork_to_function): Add cast to |
| 2098 | gdb_byte*. |
| 2099 | |
| 2100 | 2017-06-17 Simon Marchi <simon.marchi@ericsson.com> |
| 2101 | |
| 2102 | * nat/fork-inferior.h (trace_start_error): Add ATTRIBUTE_PRINTF. |
| 2103 | |
| 2104 | 2017-06-17 Simon Marchi <simon.marchi@ericsson.com> |
| 2105 | |
| 2106 | * configure: Re-generate. |
| 2107 | * warning.m4 (build_warnings): Add -Wno-mismatched-tags. |
| 2108 | |
| 2109 | 2017-06-17 Simon Marchi <simon.marchi@ericsson.com> |
| 2110 | |
| 2111 | * configure: Re-generate. |
| 2112 | * warning.m4: Pass -Werror to compiler when checking for |
| 2113 | supported warning flags. |
| 2114 | |
| 2115 | 2017-06-17 Simon Marchi <simon.marchi@ericsson.com> |
| 2116 | |
| 2117 | * Makefile.in (COMPILE.pre): Add "-x c++". |
| 2118 | |
| 2119 | 2017-06-16 Alan Hayward <alan.hayward@arm.com> |
| 2120 | Pedro Alves <palves@redhat.com> |
| 2121 | Yao Qi <yao.qi@linaro.org> |
| 2122 | |
| 2123 | * defs.h (RequireLongest): New. |
| 2124 | (extract_integer): Declare function template. |
| 2125 | (extract_signed_integer): Remove the declaration, but define it |
| 2126 | static inline. |
| 2127 | (extract_unsigned_integer): Likewise. |
| 2128 | (store_integer): Declare function template. |
| 2129 | (store_signed_integer): Remove the declaration, but define it |
| 2130 | static inline. |
| 2131 | (store_unsigned_integer): Likewise. |
| 2132 | * findvar.c (extract_integer): New function template. |
| 2133 | (extract_signed_integer): Remove. |
| 2134 | (extract_unsigned_integer): Remove. |
| 2135 | (extract_integer<LONGEST>, extract_integer<ULONGEST>): Explicit |
| 2136 | instantiations. |
| 2137 | (store_integer): New function template. |
| 2138 | (store_signed_integer): Remove. |
| 2139 | (store_unsigned_integer): Remove. |
| 2140 | (store_integer): Explicit instantiations. |
| 2141 | * regcache.c (regcache_raw_read_signed): Update. |
| 2142 | (regcache::raw_read): New function. |
| 2143 | (regcache::raw_read_signed): Remove. |
| 2144 | (regcache::raw_read_unsigned): Remove. |
| 2145 | (regcache_raw_read_unsigned): Update. |
| 2146 | (regcache_raw_write_unsigned): Update. |
| 2147 | (regcache::raw_write_signed): Remove. |
| 2148 | (regcache::raw_write): New function. |
| 2149 | (regcache_cooked_read_signed): Update. |
| 2150 | (regcache::raw_write_unsigned): Remove. |
| 2151 | (regcache::cooked_read_signed): Remove. |
| 2152 | (regcache_cooked_read_unsigned): Update. |
| 2153 | (regcache::cooked_read_unsigned): Remove. |
| 2154 | (regcache_cooked_write_signed): Update. |
| 2155 | (regcache_cooked_write_unsigned): Update. |
| 2156 | * regcache.h (regcache) <raw_read_signed>: Remove. |
| 2157 | <raw_write_signed, raw_read_unsigned, raw_write_unsigned>: Remove. |
| 2158 | <raw_read, raw_write>: New. |
| 2159 | <cooked_read_signed, cooked_write_signed>: Remove. |
| 2160 | <cooked_write_unsigned, cooked_read_unsigned>: Remove. |
| 2161 | <cooked_read, cooked_write>: New. |
| 2162 | * sh64-tdep.c (sh64_pseudo_register_read): Update. |
| 2163 | (sh64_pseudo_register_write): Update. |
| 2164 | |
| 2165 | 2017-06-16 Anton Kolesov <anton.kolesov@synopsys.com> |
| 2166 | |
| 2167 | * arc-tdep.c (arc_disassembler_options): New variable. |
| 2168 | (arc_gdbarch_init): Set and use it. Use arc_delayed_print_insn instead |
| 2169 | of default_print_insn. |
| 2170 | (arc_delayed_print_insn): Set info->section when needed, |
| 2171 | use default_print_insn to retrieve a disassembler. |
| 2172 | |
| 2173 | 2017-06-14 Sergio Durigan Junior <sergiodj@redhat.com> |
| 2174 | |
| 2175 | PR gdb/21574 |
| 2176 | * infcmd.c (_initialize_infcmd): Expand "help run" documentation |
| 2177 | to mention $SHELL and startup-with-shell. |
| 2178 | |
| 2179 | 2017-06-14 Max Filippov <jcmvbkbc@gmail.com> |
| 2180 | |
| 2181 | * MAINTAINERS: Move Maxim Grigoriev to the Past Maintainers. |
| 2182 | |
| 2183 | 2017-06-14 Yao Qi <yao.qi@linaro.org> |
| 2184 | |
| 2185 | * aarch64-tdep.c (aarch64_gdb_print_insn): Call |
| 2186 | default_print_insn instead of print_insn_aarch64. |
| 2187 | * arm-tdep.c (gdb_print_insn_arm): Call |
| 2188 | default_print_insn instead of print_insn_big_arm |
| 2189 | and print_insn_little_arm. |
| 2190 | * i386-tdep.c (i386_print_insn): Call default_print_insn |
| 2191 | instead of print_insn_i386. |
| 2192 | * ia64-tdep.c (ia64_print_insn): Call |
| 2193 | default_print_insn instead of print_insn_ia64. |
| 2194 | * mips-tdep.c (gdb_print_insn_mips): Call |
| 2195 | default_print_insn instead of print_insn_big_mips |
| 2196 | and print_insn_little_mips. |
| 2197 | * spu-tdep.c (gdb_print_insn_spu): Call default_print_insn |
| 2198 | instead of print_insn_spu. |
| 2199 | |
| 2200 | 2017-06-14 Pedro Alves <palves@redhat.com> |
| 2201 | |
| 2202 | * ada-lang.c: Include "common/byte-vector.h". |
| 2203 | (ada_value_primitive_packed_val): Use gdb::byte_vector. |
| 2204 | * charset.c (wchar_iterator::iterate): Resize the vector instead |
| 2205 | of reserving it. |
| 2206 | * common/byte-vector.h: Include "common/def-vector.h". |
| 2207 | (wchar_iterator::m_out): Now a gdb::def_vector<gdb_wchar_t>. |
| 2208 | * cli/cli-dump.c: Include "common/byte-vector.h". |
| 2209 | (dump_memory_to_file, restore_binary_file): Use gdb::byte_vector. |
| 2210 | * common/byte-vector.h: New file. |
| 2211 | * common/def-vector.h: New file. |
| 2212 | * common/default-init-alloc.h: New file. |
| 2213 | * dwarf2loc.c: Include "common/byte-vector.h". |
| 2214 | (rw_pieced_value): Use gdb::byte_vector, and resize the vector |
| 2215 | instead of reserving it. |
| 2216 | * dwarf2read.c: Include "common/byte-vector.h". |
| 2217 | (data_buf::m_vec): Now a gdb::byte_vector. |
| 2218 | * gdb_regex.c: Include "common/def-vector.h". |
| 2219 | (compiled_regex::compiled_regex): Use gdb::def_vector<char>. |
| 2220 | * mi/mi-main.c: Include "common/byte-vector.h". |
| 2221 | (mi_cmd_data_read_memory): Use gdb::byte_vector. |
| 2222 | * printcmd.c: Include "common/byte-vector.h". |
| 2223 | (print_scalar_formatted): Use gdb::byte_vector. |
| 2224 | * valprint.c: Include "common/byte-vector.h". |
| 2225 | (maybe_negate_by_bytes, print_decimal_chars): Use |
| 2226 | gdb::byte_vector. |
| 2227 | |
| 2228 | 2017-06-13 Simon Marchi <simon.marchi@ericsson.com> |
| 2229 | |
| 2230 | * darwin-nat.c: Include "nat/fork-inferior.h". |
| 2231 | |
| 2232 | 2017-06-13 Simon Marchi <simon.marchi@ericsson.com> |
| 2233 | |
| 2234 | * configure.nat: Factor out Darwin bits that are not |
| 2235 | architecture-specific. Add fork-inferior.o. |
| 2236 | |
| 2237 | 2017-06-13 Simon Marchi <simon.marchi@ericsson.com> |
| 2238 | |
| 2239 | * configure.nat: Factor out AIX bits that are not |
| 2240 | architecture-specific. Add fork-inferior.o. |
| 2241 | |
| 2242 | 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com> |
| 2243 | |
| 2244 | * dwarf2loc.c (rw_pieced_value): New. Merge logic from... |
| 2245 | (read_pieced_value, write_pieced_value): ...here. Reduce to |
| 2246 | wrappers that just call rw_pieced_value. |
| 2247 | |
| 2248 | 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com> |
| 2249 | |
| 2250 | * dwarf2loc.c (write_pieced_value): When writing the data for a |
| 2251 | memory piece, use write_memory_with_notification instead of |
| 2252 | write_memory. |
| 2253 | |
| 2254 | 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com> |
| 2255 | |
| 2256 | * valops.c (read_value_memory): Change embedded_offset to |
| 2257 | represent a bit offset instead of a byte offset. |
| 2258 | * value.h (read_value_memory): Adjust comment. |
| 2259 | |
| 2260 | 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com> |
| 2261 | |
| 2262 | * dwarf2loc.c (read_pieced_value): Remove unnecessary variables |
| 2263 | dest_offset_bits and source_offset_bits. |
| 2264 | (write_pieced_value): Likewise. |
| 2265 | |
| 2266 | 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com> |
| 2267 | |
| 2268 | * dwarf2loc.c (read_pieced_value): Respect the piece offset, as |
| 2269 | given by DW_OP_bit_piece. |
| 2270 | (write_pieced_value): Likewise. |
| 2271 | |
| 2272 | 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com> |
| 2273 | |
| 2274 | * dwarf2loc.c (read_pieced_value): Move the buffer allocation and |
| 2275 | some other preparations to the places where sufficient information |
| 2276 | is available. |
| 2277 | (write_pieced_value): Likewise. |
| 2278 | |
| 2279 | 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com> |
| 2280 | |
| 2281 | * dwarf2loc.c (bits_to_bytes): New function. |
| 2282 | (read_pieced_value): Fix offset calculations for register pieces |
| 2283 | on big-endian targets. |
| 2284 | (write_pieced_value): Likewise. |
| 2285 | |
| 2286 | 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com> |
| 2287 | |
| 2288 | * dwarf2loc.c (read_pieced_value): Remove buffer_size variable. |
| 2289 | (write_pieced_value): Likewise. |
| 2290 | |
| 2291 | 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com> |
| 2292 | |
| 2293 | * dwarf2loc.c (write_pieced_value): When writing to a bit-field, |
| 2294 | transfer the source value's least significant bits, instead of its |
| 2295 | lowest-addressed ones. Rename type_len to max_offset. |
| 2296 | (read_pieced_value): Mirror above changes to write_pieced_value as |
| 2297 | applicable. |
| 2298 | |
| 2299 | 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com> |
| 2300 | |
| 2301 | * dwarf2loc.c (write_pieced_value): In DWARF_VALUE_MEMORY, |
| 2302 | truncate full bytes from dest_offset_bits before using it as an |
| 2303 | offset into the buffer. |
| 2304 | |
| 2305 | 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com> |
| 2306 | |
| 2307 | * dwarf2loc.c (write_pieced_value): Include transfer size in |
| 2308 | byte-wise check. |
| 2309 | |
| 2310 | 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com> |
| 2311 | |
| 2312 | * dwarf2loc.c (write_pieced_value): Fix copy/paste error in the |
| 2313 | calculation of this_size. |
| 2314 | |
| 2315 | 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com> |
| 2316 | |
| 2317 | * dwarf2loc.c (read_pieced_value): Respect parent value's offset |
| 2318 | when targeting a bit-field. |
| 2319 | (write_pieced_value): Likewise. |
| 2320 | |
| 2321 | 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com> |
| 2322 | |
| 2323 | * dwarf2loc.c (struct piece_closure) <addr_size>: Remove field. |
| 2324 | (allocate_piece_closure): Drop addr_size parameter. |
| 2325 | (dwarf2_evaluate_loc_desc_full): Adjust call to |
| 2326 | allocate_piece_closure. |
| 2327 | |
| 2328 | 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com> |
| 2329 | |
| 2330 | PR gdb/21226 |
| 2331 | * dwarf2loc.c (read_pieced_value): Anchor stack value pieces at |
| 2332 | the LSB end, independent of endianness. |
| 2333 | |
| 2334 | 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com> |
| 2335 | |
| 2336 | * dwarf2loc.c (write_pieced_value): Fix order of calculations for |
| 2337 | size capping. |
| 2338 | |
| 2339 | 2017-06-13 Yao Qi <yao.qi@linaro.org> |
| 2340 | |
| 2341 | * mips-linux-nat.c: Move include features/mips*-linux.c to |
| 2342 | mips-linux-tdep.c. |
| 2343 | (_initialize_mips_linux_nat): Move initialize_tdesc_mips* calls |
| 2344 | to mips-linux-tdep.c. |
| 2345 | * mips-linux-tdep.c: Include features/mips*-linux.c |
| 2346 | (_initialize_mips_linux_tdep): Call initialize_tdesc_mips* |
| 2347 | functions. |
| 2348 | * mips-linux-tdep.h (tdesc_mips_linux): Declare. |
| 2349 | (tdesc_mips_dsp_linux, tdesc_mips64_linux): Declare. |
| 2350 | (tdesc_mips64_dsp_linux): Declare. |
| 2351 | |
| 2352 | 2017-06-12 Tom Tromey <tom@tromey.com> |
| 2353 | |
| 2354 | * valprint.h (val_print_type_code_int): Remove. |
| 2355 | * valprint.c (generic_val_print_int): Always call |
| 2356 | val_print_scalar_formatted. |
| 2357 | (val_print_type_code_int): Remove. |
| 2358 | * printcmd.c (print_scalar_formatted): Handle options->format==0. |
| 2359 | * f-valprint.c (f_val_print): Use val_print_scalar_formatted. |
| 2360 | * c-valprint.c (c_val_print_int): Use val_print_scalar_formatted. |
| 2361 | * ada-valprint.c (ada_val_print_num): Use |
| 2362 | val_print_scalar_formatted. |
| 2363 | |
| 2364 | 2017-06-12 Tom Tromey <tom@tromey.com> |
| 2365 | |
| 2366 | * printcmd.c (print_scalar_formatted): Unify the two switches. |
| 2367 | Don't convert scalars to LONGEST. |
| 2368 | |
| 2369 | 2017-06-12 Tom Tromey <tom@tromey.com> |
| 2370 | |
| 2371 | PR exp/16225: |
| 2372 | * valprint.h (print_decimal_chars): Update. |
| 2373 | * valprint.c (maybe_negate_by_bytes): New function. |
| 2374 | (print_decimal_chars): Add "is_signed" argument. |
| 2375 | * printcmd.c (print_scalar_formatted): Update. |
| 2376 | |
| 2377 | 2017-06-12 Tom Tromey <tom@tromey.com> |
| 2378 | |
| 2379 | PR exp/16225: |
| 2380 | * valprint.h (print_binary_chars, print_hex_chars): Update. |
| 2381 | * valprint.c (val_print_type_code_int): Update. |
| 2382 | (print_binary_chars): Add "zero_pad" argument. |
| 2383 | (emit_octal_digit): New function. |
| 2384 | (print_octal_chars): Don't zero-pad. |
| 2385 | (print_decimal_chars): Likewise. |
| 2386 | (print_hex_chars): Add "zero_pad" argument. |
| 2387 | * sh64-tdep.c (sh64_do_fp_register): Update. |
| 2388 | * regcache.c (regcache::dump): Update. |
| 2389 | * printcmd.c (print_scalar_formatted): Update. |
| 2390 | * infcmd.c (default_print_one_register_info): Update. |
| 2391 | |
| 2392 | 2017-06-12 Pedro Alves <palves@redhat.com> |
| 2393 | Alan Hayward <alan.hayward@arm.com> |
| 2394 | |
| 2395 | * mips-tdep.c (MAX_MIPS_ABI_REGSIZE): New. |
| 2396 | (mips_eabi_push_dummy_call): Rename local 'regsize' to |
| 2397 | 'abi_regsize'. Rename local array 'valbuf' to 'ref_valbuf', and |
| 2398 | use MAX_MIPS_ABI_REGSIZE instead of MAX_REGISTER_SIZE to size it. |
| 2399 | Assert that abi_regsize bytes fit in 'ref_valbuf'. |
| 2400 | |
| 2401 | 2017-06-12 Pedro Alves <palves@redhat.com> |
| 2402 | |
| 2403 | * dwarf2read.c (mapped_symtab::data): Now a vector of |
| 2404 | symtab_index_entry instead of vector of |
| 2405 | std::unique_ptr<symtab_index_entry>. All users adjusted to check |
| 2406 | whether an element's name is NULL instead of checking whether the |
| 2407 | element itself is NULL. |
| 2408 | (find_slot): Change return type. Adjust. |
| 2409 | (hash_expand, , add_index_entry, uniquify_cu_indices) |
| 2410 | (write_hash_table): Adjust. |
| 2411 | |
| 2412 | 2017-06-12 Pedro Alves <palves@redhat.com> |
| 2413 | |
| 2414 | * dwarf2read.c (recursively_count_psymbols): New function. |
| 2415 | (write_psymtabs_to_index): Call it to compute number of psyms and |
| 2416 | pass estimate size of psyms_seen to unordered_set's ctor. |
| 2417 | |
| 2418 | 2017-06-12 Pedro Alves <palves@redhat.com> |
| 2419 | |
| 2420 | * dwarf2read.c (write_hash_table): Check if key already exists |
| 2421 | before emplacing. |
| 2422 | |
| 2423 | 2017-06-12 Pedro Alves <palves@redhat.com> |
| 2424 | |
| 2425 | * dwarf2read.c (data_buf::append_space): Rename to... |
| 2426 | (data_buf::grow): ... this, and make private. Adjust all callers. |
| 2427 | (data_buf::append_uint): New method. |
| 2428 | (add_address_entry, write_one_signatured_type) |
| 2429 | (write_psymtabs_to_index): Use it. |
| 2430 | |
| 2431 | 2017-06-12 Pedro Alves <palves@redhat.com> |
| 2432 | |
| 2433 | * dwarf2read.c (file_write(FILE *, const void *, size_t)): Delete. |
| 2434 | (file_write (FILE *, const std::vector<Elem>&)): Delete. |
| 2435 | (data_buf::file_write): Call ::fwrite directly. |
| 2436 | |
| 2437 | 2017-06-12 Pedro Alves <palves@redhat.com> |
| 2438 | |
| 2439 | * dwarf2read.c (uniquify_cu_indices): Use std::unique and |
| 2440 | std::vector::erase. |
| 2441 | |
| 2442 | 2017-06-12 Jan Kratochvil <jan.kratochvil@redhat.com> |
| 2443 | |
| 2444 | Code cleanup: C++ify .gdb_index producer. |
| 2445 | * dwarf2read.c: Include <unordered_set> and <unordered_map>. |
| 2446 | (MAYBE_SWAP) [WORDS_BIGENDIAN]: Cast to offset_type. |
| 2447 | (struct strtab_entry, hash_strtab_entry, eq_strtab_entry) |
| 2448 | (create_strtab, add_string): Remove. |
| 2449 | (file_write, data_buf): New. |
| 2450 | (struct symtab_index_entry): Use std::vector for cu_indices. |
| 2451 | (struct mapped_symtab): Use std::vector for data. |
| 2452 | (hash_symtab_entry, eq_symtab_entry, delete_symtab_entry) |
| 2453 | (create_symbol_hash_table, create_mapped_symtab, cleanup_mapped_symtab): |
| 2454 | Remove. |
| 2455 | (find_slot): Change return type. Update it to the new data structures. |
| 2456 | (hash_expand, add_index_entry): Update it to the new data structures. |
| 2457 | (offset_type_compare): Remove. |
| 2458 | (uniquify_cu_indices): Update it to the new data structures. |
| 2459 | (c_str_view, c_str_view_hasher, vector_hasher): New. |
| 2460 | (add_indices_to_cpool): Remove. |
| 2461 | (write_hash_table): Update it to the new data structures. |
| 2462 | (struct psymtab_cu_index_map, hash_psymtab_cu_index) |
| 2463 | (eq_psymtab_cu_index): Remove. |
| 2464 | (psym_index_map): New typedef. |
| 2465 | (struct addrmap_index_data): Change addr_obstack pointer to data_buf |
| 2466 | reference and std::unordered_map for cu_index_htab. |
| 2467 | (add_address_entry, add_address_entry_worker, write_address_map) |
| 2468 | (write_psymbols): Update it to the new data structures. |
| 2469 | (write_obstack): Remove. |
| 2470 | (struct signatured_type_index_data): Change types_list to a data_buf |
| 2471 | reference and psyms_seen to a std::unordered_set reference. |
| 2472 | (write_one_signatured_type, recursively_write_psymbols) |
| 2473 | (write_psymtabs_to_index): Update it to the new data structures. |
| 2474 | |
| 2475 | 2017-06-11 Simon Marchi <simon.marchi@ericsson.com> |
| 2476 | |
| 2477 | * NEWS (Changes since GDB 8.0): Announce {set,show} debug |
| 2478 | separate-debug-file commands. |
| 2479 | * symfile.h (separate_debug_file_debug): New global. |
| 2480 | * symfile.c (separate_debug_file_debug): New global. |
| 2481 | (separate_debug_file_exists, find_separate_debug_file): Add |
| 2482 | debug output. |
| 2483 | (_initialize_symfile): Add "set debug separate-debug-file" |
| 2484 | command. |
| 2485 | * build-id.c (build_id_to_debug_bfd, |
| 2486 | find_separate_debug_file_by_buildid): Add debug output. |
| 2487 | |
| 2488 | 2017-06-10 Simon Marchi <simon.marchi@polymtl.ca> |
| 2489 | |
| 2490 | * gdbarch.sh (displaced_step_free_closure): Remove. |
| 2491 | * gdbarch.h, gdbarch.c: Re-generate. |
| 2492 | * aarch64-linux-tdep.c (aarch64_linux_init_abi): Don't set |
| 2493 | displaced_step_free_closure. |
| 2494 | * amd64-linux-tdep.c (amd64_linux_init_abi_common): Likewise. |
| 2495 | * arm-linux-tdep.c (arm_linux_init_abi): Likewise. |
| 2496 | * i386-linux-tdep.c (i386_linux_init_abi): Likewise. |
| 2497 | * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise. |
| 2498 | * rs6000-tdep.c (rs6000_gdbarch_init): Likewise. |
| 2499 | * s390-linux-tdep.c (s390_gdbarch_init): Likewise. |
| 2500 | * arch-utils.h (simple_displaced_step_free_closure): Remove. |
| 2501 | * arch-utils.c (simple_displaced_step_free_closure): Remove. |
| 2502 | * infrun.c (displaced_step_clear): Call xfree instead of |
| 2503 | gdbarch_displaced_step_free_closure. |
| 2504 | |
| 2505 | 2017-06-08 Sergio Durigan Junior <sergiodj@redhat.com> |
| 2506 | |
| 2507 | * common/common-utils.c (stringify_argv): Check for "arg[0] != |
| 2508 | NULL". |
| 2509 | |
| 2510 | 2017-06-08 Alan Hayward <alan.hayward@arm.com> |
| 2511 | |
| 2512 | * mn10300-tdep.c (MN10300_MAX_REGISTER_SIZE): Add. |
| 2513 | (mn10300_extract_return_value): Use MN10300_MAX_REGISTER_SIZE. |
| 2514 | (mn10300_push_dummy_call): Likewise. |
| 2515 | |
| 2516 | 2017-06-08 Alan Hayward <alan.hayward@arm.com> |
| 2517 | |
| 2518 | * mi/mi-main.c (register_changed_p): Use value_contents_eq. |
| 2519 | |
| 2520 | 2017-06-08 Alan Hayward <alan.hayward@arm.com> |
| 2521 | |
| 2522 | * mi/mi-main.c (register_changed_p): Use cooked_read_value. |
| 2523 | |
| 2524 | 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com> |
| 2525 | |
| 2526 | * NEWS (Changes since GDB 8.0): Announce that GDBserver is now |
| 2527 | able to start inferiors using a shell. |
| 2528 | (New remote packets): Announce new packet "QStartupWithShell". |
| 2529 | * remote.c: Add PACKET_QStartupWithShell. |
| 2530 | (extended_remote_create_inferior): Handle new |
| 2531 | PACKET_QStartupWithShell. |
| 2532 | (remote_protocol_features) <QStartupWithShell>: New entry for |
| 2533 | PACKET_QStartupWithShell. |
| 2534 | (_initialize_remote): Call "add_packet_config_cmd" for |
| 2535 | QStartupShell. |
| 2536 | |
| 2537 | 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com> |
| 2538 | Pedro Alves <palves@redhat.com> |
| 2539 | |
| 2540 | * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-inferior.h" |
| 2541 | and "nat/fork-inferior.h". |
| 2542 | * common/common-inferior.h: New file, with contents from |
| 2543 | "gdb/inferior.h". |
| 2544 | * commom/common-utils.c: Include "common-utils.h". |
| 2545 | (stringify_argv): New function. |
| 2546 | * common/common-utils.h (stringify_argv): New prototype. |
| 2547 | * configure.nat: Add "fork-inferior.o" as a dependency for |
| 2548 | "*linux*", "fbsd*" and "nbsd*" hosts. |
| 2549 | * corefile.c (get_exec_file): Update comment. |
| 2550 | * darwin-nat.c (darwin_ptrace_him): Call "gdb_startup_inferior" |
| 2551 | instead of "startup_inferior". |
| 2552 | (darwin_create_inferior): Call "add_thread_silent" after |
| 2553 | "fork_inferior". |
| 2554 | * fork-child.c: Cleanup unnecessary includes. |
| 2555 | (SHELL_FILE): Move to "common/common-fork-child.c". |
| 2556 | (environ): Likewise. |
| 2557 | (exec_wrapper): Initialize. |
| 2558 | (get_exec_wrapper): New function. |
| 2559 | (breakup_args): Move to "common/common-fork-child.c"; rename to |
| 2560 | "breakup_args_for_exec". |
| 2561 | (escape_bang_in_quoted_argument): Move to |
| 2562 | "common/common-fork-child.c". |
| 2563 | (saved_ui): New variable. |
| 2564 | (prefork_hook): New function. |
| 2565 | (postfork_hook): Likewise. |
| 2566 | (postfork_child_hook): Likewise. |
| 2567 | (gdb_startup_inferior): Likewise. |
| 2568 | (fork_inferior): Move to "common/common-fork-child.c". Update |
| 2569 | function to support gdbserver. |
| 2570 | (startup_inferior): Likewise. |
| 2571 | * gdbcore.h (get_exec_file): Remove declaration. |
| 2572 | * gnu-nat.c (gnu_create_inferior): Call "gdb_startup_inferior" |
| 2573 | instead of "startup_inferior". Call "add_thread_silent" after |
| 2574 | "fork_inferior". |
| 2575 | * inf-ptrace.c: Include "nat/fork-inferior.h" and "utils.h". |
| 2576 | (inf_ptrace_create_inferior): Call "gdb_startup_inferior" |
| 2577 | instead of "startup_inferior". Call "add_thread_silent" after |
| 2578 | "fork_inferior". |
| 2579 | * inferior.h: Include "common-inferior.h". |
| 2580 | (trace_start_error): Move to "common/common-utils.h". |
| 2581 | (trace_start_error_with_name): Likewise. |
| 2582 | (fork_inferior): Move prototype to "nat/fork-inferior.h". |
| 2583 | (startup_inferior): Likewise. |
| 2584 | (gdb_startup_inferior): New prototype. |
| 2585 | * nat/fork-inferior.c: New file, with contents from "fork-child.c". |
| 2586 | * nat/fork-inferior.h: New file. |
| 2587 | * procfs.c (procfs_init_inferior): Call "gdb_startup_inferior" |
| 2588 | instead of "startup_inferior". Call "add_thread_silent" after |
| 2589 | "fork_inferior". |
| 2590 | * target.h (target_terminal_init): Move prototype to |
| 2591 | "target/target.h". |
| 2592 | (target_terminal_inferior): Likewise. |
| 2593 | (target_terminal_ours): Likewise. |
| 2594 | * target/target.h (target_terminal_init): New prototype, moved |
| 2595 | from "target.h". |
| 2596 | (target_terminal_inferior): Likewise. |
| 2597 | (target_terminal_ours): Likewise. |
| 2598 | * utils.c (gdb_flush_out_err): New function. |
| 2599 | |
| 2600 | 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com> |
| 2601 | |
| 2602 | * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-gdbthread.h". |
| 2603 | * common/common-gdbthread.h: New file, with parts from |
| 2604 | "gdb/gdbthread.h". |
| 2605 | * gdbthread.h: Include "common-gdbthread.h". |
| 2606 | (switch_to_thread): Moved to "common/common-gdbthread.h". |
| 2607 | |
| 2608 | 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com> |
| 2609 | |
| 2610 | * Makefile.in (SFILES): Add "common/job-control.c". |
| 2611 | (HFILES_NO_SRCDIR): Add "common/job-control.h". |
| 2612 | (COMMON_OBS): Add "job-control.o". |
| 2613 | * common/job-control.c: New file, with contents from |
| 2614 | "gdb/inflow.c". |
| 2615 | * common/job-control.h: New file, with contents from "terminal.h". |
| 2616 | * fork-child.c: Include "job-control.h". |
| 2617 | * inflow.c: Include "job-control.h". |
| 2618 | (gdb_setpgid): Move to "common/common-inflow.c". |
| 2619 | (_initialize_inflow): Move setting of "job_control" to |
| 2620 | "handle_job_control". |
| 2621 | * terminal.h (job_control): Moved to "common/common-terminal.h". |
| 2622 | (gdb_setpgid): Likewise. |
| 2623 | * top.c: Include "job_control.h". |
| 2624 | * utils.c: Likewise. |
| 2625 | (job_control): Moved to "job-control.c". |
| 2626 | |
| 2627 | 2017-06-07 Pedro Alves <palves@redhat.com> |
| 2628 | |
| 2629 | * Makefile.in (SFILES): Add gdb_regex.c. |
| 2630 | (COMMON_OBS): Add gdb_regex.o. |
| 2631 | * ada-lang.c (ada_add_standard_exceptions) |
| 2632 | (ada_add_exceptions_from_frame, name_matches_regex) |
| 2633 | (ada_add_global_exceptions, ada_exceptions_list_1): Change regex |
| 2634 | parameter type to compiled_regex. Adjust. |
| 2635 | (ada_exceptions_list): Use compiled_regex. |
| 2636 | * break-catch-throw.c (exception_catchpoint::pattern): Now a |
| 2637 | std::unique_ptr<compiled_regex>. |
| 2638 | (exception_catchpoint::~exception_catchpoint): Remove regfree |
| 2639 | call. |
| 2640 | (check_status_exception_catchpoint): Adjust to use compiled_regex. |
| 2641 | (handle_gnu_v3_exceptions): Adjust to use compiled_regex. |
| 2642 | * breakpoint.c (solib_catchpoint::compiled): Now a |
| 2643 | std::unique_ptr<compiled_regex>. |
| 2644 | (solib_catchpoint::~solib_catchpoint): Remove regfree call. |
| 2645 | (check_status_catch_solib): Adjust to use compiled_regex. |
| 2646 | (add_solib_catchpoint): Adjust to use compiled_regex. |
| 2647 | * cli/cli-cmds.c (apropos_command): Use compiled_regex. |
| 2648 | * cli/cli-decode.c (apropos_cmd): Change regex parameter to |
| 2649 | compiled_regex reference. Adjust to use it. |
| 2650 | * cli/cli-decode.h: Remove struct re_pattern_buffer forward |
| 2651 | declaration. Include "gdb_regex.h". |
| 2652 | (apropos_cmd): Change regex parameter to compiled_regex reference. |
| 2653 | * gdb_regex.c: New file. |
| 2654 | * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Delete |
| 2655 | declarations. |
| 2656 | (class compiled_regex): New. |
| 2657 | * linux-tdep.c: Include "common/gdb_optional.h". |
| 2658 | (struct mapping_regexes): New, factored out from |
| 2659 | mapping_is_anonymous_p, and adjusted to use compiled_regex. |
| 2660 | (mapping_is_anonymous_p): Use mapping_regexes wrapped in a |
| 2661 | gdb::optional and remove cleanups. Adjust to compiled_regex. |
| 2662 | * probe.c: Include "common/gdb_optional.h". |
| 2663 | (collect_probes): Use compiled_regex and gdb::optional and remove |
| 2664 | cleanups. |
| 2665 | * skip.c: Include "common/gdb_optional.h". |
| 2666 | (skiplist_entry::compiled_function_regexp): Now a |
| 2667 | gdb::optional<compiled_regex>. |
| 2668 | (skiplist_entry::compiled_function_regexp_is_valid): Delete field. |
| 2669 | (free_skiplist_entry): Remove regfree call. |
| 2670 | (compile_skip_regexp, skip_rfunction_p): Adjust to use |
| 2671 | compiled_regex and gdb::optional. |
| 2672 | * symtab.c: Include "common/gdb_optional.h". |
| 2673 | (search_symbols): Use compiled_regex and gdb::optional. |
| 2674 | * utils.c (do_regfree_cleanup, make_regfree_cleanup) |
| 2675 | (get_regcomp_error, compile_rx_or_error): Delete. Some bits moved |
| 2676 | to gdb_regex.c. |
| 2677 | |
| 2678 | 2017-06-07 Alan Hayward <alan.hayward@arm.com> |
| 2679 | |
| 2680 | * regcache.c (regcache::save): Avoid buffer use. |
| 2681 | (regcache::dump): Likewise. |
| 2682 | |
| 2683 | 2017-06-07 Alan Hayward <alan.hayward@arm.com> |
| 2684 | |
| 2685 | * sh-tdep.c (sh_pseudo_register_read): Remove |
| 2686 | MAX_REGISTER_SIZE. |
| 2687 | (sh_pseudo_register_write): Likewise. |
| 2688 | * sh64-tdep.c (sh64_pseudo_register_read): Likewise. |
| 2689 | (sh64_pseudo_register_write): Likewise |
| 2690 | |
| 2691 | 2017-06-07 Alan Hayward <alan.hayward@arm.com> |
| 2692 | |
| 2693 | * aarch64-tdep.c (aarch64_store_return_value): Use |
| 2694 | V_REGISTER_SIZE. |
| 2695 | (aarch64_pseudo_read_value): Likewise. |
| 2696 | (aarch64_pseudo_write): Likewise. |
| 2697 | |
| 2698 | 2017-06-06 Yao Qi <yao.qi@linaro.org> |
| 2699 | |
| 2700 | * regformats/regdef.h (set_register_cache): Remove the |
| 2701 | declaration. |
| 2702 | |
| 2703 | 2017-06-06 Alan Hayward <alan.hayward@arm.com> |
| 2704 | |
| 2705 | * frame.c (frame_unwind_register_signed): Use |
| 2706 | frame_unwind_register_value. |
| 2707 | |
| 2708 | 2017-06-06 Pedro Alves <palves@redhat.com> |
| 2709 | |
| 2710 | PR breakpoints/21553 |
| 2711 | * breakpoint.c (create_breakpoints_sal_default) |
| 2712 | (init_breakpoint_sal, create_breakpoint_sal): Use |
| 2713 | gdb::unique_xmalloc_ptr for string parameters. |
| 2714 | (create_breakpoint): Constify 'extra_string' and 'cond_string' |
| 2715 | parameters. Replace cleanups with gdb::unique_xmalloc_ptr. |
| 2716 | (base_breakpoint_create_breakpoints_sal) |
| 2717 | (bkpt_create_breakpoints_sal, tracepoint_create_breakpoints_sal) |
| 2718 | (strace_marker_create_breakpoints_sal) |
| 2719 | (create_breakpoints_sal_default): Use gdb::unique_xmalloc_ptr for |
| 2720 | string parameters. |
| 2721 | * breakpoint.h (breakpoint_ops::create_breakpoints_sal): Use |
| 2722 | gdb::unique_xmalloc_ptr for string parameters. |
| 2723 | (create_breakpoint): Constify 'extra_string' and 'cond_string' |
| 2724 | parameters. |
| 2725 | |
| 2726 | 2017-06-06 Alan Hayward <alan.hayward@arm.com> |
| 2727 | |
| 2728 | * alpha-tdep.c (alpha_register_to_value): Use |
| 2729 | get_frame_register_value. |
| 2730 | (alpha_value_to_register): Use ALPHA_REGISTER_SIZE. |
| 2731 | |
| 2732 | 2017-06-06 Alan Hayward <alan.hayward@arm.com> |
| 2733 | |
| 2734 | * ia64-tdep.c (IA64_MAX_FP_REGISTER_SIZE) Add. |
| 2735 | (ia64_register_to_value): Use IA64_MAX_FP_REGISTER_SIZE. |
| 2736 | (ia64_value_to_register): Likewise. |
| 2737 | (ia64_extract_return_value): Likewise. |
| 2738 | (ia64_store_return_value): Likewise. |
| 2739 | (ia64_push_dummy_call): Likewise. |
| 2740 | |
| 2741 | 2017-06-04 Joel Brobecker <brobecker@adacore.com> |
| 2742 | |
| 2743 | GDB 8.0 released. |
| 2744 | |
| 2745 | 2017-06-03 Simon Marchi <simon.marchi@ericsson.com> |
| 2746 | |
| 2747 | * x86-linux-nat.c (struct arch_lwp_info): Remove. |
| 2748 | |
| 2749 | 2017-06-03 Simon Marchi <simon.marchi@polymtl.ca> |
| 2750 | |
| 2751 | * linux-nat.c (linux_nat_post_attach_wait): Remove FIRST |
| 2752 | parameter. |
| 2753 | (linux_nat_attach): Adjust call to linux_nat_post_attach_wait. |
| 2754 | |
| 2755 | 2017-06-02 Simon Marchi <simon.marchi@ericsson.com> |
| 2756 | |
| 2757 | * event-loop.c (poll_timers): Unallocate timer using delete |
| 2758 | instead of xfree. |
| 2759 | |
| 2760 | 2017-06-02 Simon Marchi <simon.marchi@polymtl.ca> |
| 2761 | |
| 2762 | * breakpoint.h (struct breakpoint_ops) <dtor>: Remove. |
| 2763 | (struct breakpoint) <~breakpoint>: New. |
| 2764 | (struct watchpoint): Inherit from breakpoint. |
| 2765 | <~watchpoint>: New. |
| 2766 | <base>: Remove. |
| 2767 | (struct tracepoint): Inherit from breakpoint. |
| 2768 | <base>: Remove. |
| 2769 | * breakpoint.c (longjmp_breakpoint_ops): Remove. |
| 2770 | (struct longjmp_breakpoint): Inherit from breakpoint. |
| 2771 | <~longjmp_breakpoint>: New. |
| 2772 | <base>: Remove. |
| 2773 | (new_breakpoint_from_type): Remove casts. |
| 2774 | (watchpoint_in_thread_scope): Remove reference to base field. |
| 2775 | (watchpoint_del_at_next_stop): Likewise. |
| 2776 | (update_watchpoint): Likewise. |
| 2777 | (watchpoint_check): Likewise. |
| 2778 | (bpstat_check_watchpoint): Likewise. |
| 2779 | (set_longjmp_breakpoint): Likewise. |
| 2780 | (struct fork_catchpoint): Inherit from breakpoint. |
| 2781 | <base>: Remove. |
| 2782 | (struct solib_catchpoint): Inherit from breakpoint. |
| 2783 | <~solib_catchpoint>: New. |
| 2784 | <base>: Remove. |
| 2785 | (dtor_catch_solib): Change to ... |
| 2786 | (solib_catchpoint::~solib_catchpoint): ... this. |
| 2787 | (breakpoint_hit_catch_solib): Remove reference to base field. |
| 2788 | (add_solib_catchpoint): Likewise. |
| 2789 | (create_fork_vfork_event_catchpoint): Likewise. |
| 2790 | (struct exec_catchpoint): Inherit from breakpoint. |
| 2791 | <~exec_catchpoint>: New. |
| 2792 | <base>: Remove. |
| 2793 | (dtor_catch_exec): Change to ... |
| 2794 | (exec_catchpoint::~exec_catchpoint): ... this. |
| 2795 | (dtor_watchpoint): Change to ... |
| 2796 | (watchpoint::~watchpoint): ... this. |
| 2797 | (watch_command_1): Remove reference to base field. |
| 2798 | (catch_exec_command_1): Likewise. |
| 2799 | (base_breakpoint_dtor): Change to ... |
| 2800 | (breakpoint::~breakpoint): ... this. |
| 2801 | (base_breakpoint_ops): Remove dtor field value. |
| 2802 | (longjmp_bkpt_dtor): Change to ... |
| 2803 | (longjmp_breakpoint::~longjmp_breakpoint): ... this. |
| 2804 | (strace_marker_create_breakpoints_sal): Remove reference to base |
| 2805 | field. |
| 2806 | (delete_breakpoint): Don't manually call breakpoint destructor. |
| 2807 | (create_tracepoint_from_upload): Remove reference to base field. |
| 2808 | (trace_pass_set_count): Likewise. |
| 2809 | (initialize_breakpoint_ops): Don't initialize |
| 2810 | momentary_breakpoint_ops, don't set dtors. |
| 2811 | * ada-lang.c (struct ada_catchpoint): Inherit from breakpoint. |
| 2812 | <~ada_catchpoint>: New. |
| 2813 | <base>: Remove. |
| 2814 | (create_excep_cond_exprs): Remove reference to base field. |
| 2815 | (dtor_exception): Change to ... |
| 2816 | (ada_catchpoint::~ada_catchpoint): ... this. |
| 2817 | (dtor_catch_exception): Remove. |
| 2818 | (dtor_catch_exception_unhandled): Remove. |
| 2819 | (dtor_catch_assert): Remove. |
| 2820 | (create_ada_exception_catchpoint): Remove reference to base |
| 2821 | field. |
| 2822 | (initialize_ada_catchpoint_ops): Don't set dtors. |
| 2823 | * break-catch-sig.c (struct signal_catchpoint): Inherit from |
| 2824 | breakpoint. |
| 2825 | <~signal_catchpoint>: New. |
| 2826 | <base>: Remove. |
| 2827 | (signal_catchpoint_dtor): Change to ... |
| 2828 | (signal_catchpoint::~signal_catchpoint): ... this. |
| 2829 | (create_signal_catchpoint): Remove reference to base field. |
| 2830 | (initialize_signal_catchpoint_ops): Don't set dtor. |
| 2831 | * break-catch-syscall.c (struct syscall_catchpoint): Inherit |
| 2832 | from breakpoint. |
| 2833 | <~syscall_catchpoint>: New. |
| 2834 | <base>: Remove. |
| 2835 | (dtor_catch_syscall): Change to ... |
| 2836 | (syscall_catchpoint::~syscall_catchpoint): ... this. |
| 2837 | (create_syscall_event_catchpoint): Remove reference to base |
| 2838 | field. |
| 2839 | (initialize_syscall_catchpoint_ops): Don't set dtor. |
| 2840 | * break-catch-throw.c (struct exception_catchpoint): Inherit |
| 2841 | from breakpoint. |
| 2842 | <~exception_catchpoint>: New. |
| 2843 | <base>: Remove. |
| 2844 | (dtor_exception_catchpoint): Change to ... |
| 2845 | (exception_catchpoint::~exception_catchpoint): ... this. |
| 2846 | (handle_gnu_v3_exceptions): Remove reference to base field. |
| 2847 | (initialize_throw_catchpoint_ops): Don't set dtor. |
| 2848 | * ctf.c (ctf_get_traceframe_address): Remove reference to base |
| 2849 | field. |
| 2850 | * remote.c (remote_get_tracepoint_status): Likewise. |
| 2851 | * tracefile-tfile.c (tfile_get_traceframe_address): Likewise. |
| 2852 | * tracefile.c (tracefile_fetch_registers): Likewise. |
| 2853 | * tracepoint.c (actions_command): Likewise. |
| 2854 | (validate_actionline): Likewise. |
| 2855 | (tfind_1): Likewise. |
| 2856 | (get_traceframe_location): Likewise. |
| 2857 | (find_matching_tracepoint_location): Likewise. |
| 2858 | (parse_tracepoint_status): Likewise. |
| 2859 | * mi/mi-cmd-break.c (mi_cmd_break_passcount): Likewise. |
| 2860 | |
| 2861 | 2017-06-02 Simon Marchi <simon.marchi@polymtl.ca> |
| 2862 | |
| 2863 | * breakpoint.c (struct longjmp_breakpoint): New struct. |
| 2864 | (is_tracepoint_type): Change return type to bool. |
| 2865 | (is_longjmp_type): New function. |
| 2866 | (new_breakpoint_from_type): Handle longjmp kinds of breakpoints. |
| 2867 | (set_raw_breakpoint_without_location): Use |
| 2868 | new_breakpoint_from_type. |
| 2869 | (set_raw_breakpoint): Likewise. |
| 2870 | |
| 2871 | 2017-06-02 Simon Marchi <simon.marchi@polymtl.ca> |
| 2872 | |
| 2873 | * breakpoint.c (new_breakpoint_from_type): New function. |
| 2874 | (create_breakpoint_sal): Use new_breakpoint_from_type and |
| 2875 | unique_ptr. |
| 2876 | (create_breakpoint): Likewise. |
| 2877 | |
| 2878 | 2017-05-31 Simon Marchi <simon.marchi@ericsson.com> |
| 2879 | |
| 2880 | * memattr.c (mem_info_command): Rename to ... |
| 2881 | (info_mem_command): ... this. |
| 2882 | (mem_enable_command): Rename to ... |
| 2883 | (enable_mem_command): ... this. |
| 2884 | (mem_disable_command): Rename to ... |
| 2885 | (disable_mem_command): ... this. |
| 2886 | (mem_delete_command): Rename to ... |
| 2887 | (delete_mem_command): ... this. |
| 2888 | (_initialize_mem): Adjust function names. |
| 2889 | |
| 2890 | 2017-05-31 Markus Metzger <markus.t.metzger@intel.com> |
| 2891 | |
| 2892 | * btrace.c (handle_pt_insn_events): New. |
| 2893 | (ftrace_add_pt): Call handle_pt_insn_events. Rename ERRCODE into |
| 2894 | STATUS. Split into this and ... |
| 2895 | (handle_pt_insn_event_flags): ... this. |
| 2896 | |
| 2897 | 2017-05-31 Markus Metzger <markus.t.metzger@intel.com> |
| 2898 | |
| 2899 | * configure.ac: Check for pt_insn_event, struct pt_insn.enabled, |
| 2900 | and struct pt_insn.resynced. |
| 2901 | * configure: Regenerated. |
| 2902 | * config.in: Regenerated. |
| 2903 | |
| 2904 | 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com> |
| 2905 | |
| 2906 | * btrace.c (ftrace_find_call_by_number): New function. |
| 2907 | (ftrace_new_function): Store objects, not pointers. |
| 2908 | (ftrace_find_call_by_number, ftrace_new_return, ftrace_new_switch, |
| 2909 | ftrace_new_gap, ftrace_update_function, |
| 2910 | ftrace_compute_global_level_offset, btrace_stich_bts, btrace_clear, |
| 2911 | btrace_insn_get, btrace_insn_get_error, btrace_insn_end, |
| 2912 | btrace_insn_next, btrace_insn_prev, ptrace_find_insn_by_number, |
| 2913 | btrace_ends_with_single_insn, btrace_call_get): Account for |
| 2914 | btrace_thread_info::functions now storing objects. |
| 2915 | * btrace.h (struct btrace_thread_info): Add constructor. |
| 2916 | (struct btrace_thread_info) <functions>: Make std::vector. |
| 2917 | (struct btrace_thread_info) <prev, next, up, insn, errcode, flags): |
| 2918 | Initialize with default values. |
| 2919 | * record-btrace.c (record_btrace_frame_sniffer): Account for |
| 2920 | btrace_thread_info::functions now storing objects. |
| 2921 | |
| 2922 | 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com> |
| 2923 | |
| 2924 | * btrace.c: Remove typedef bfun_s. |
| 2925 | (ftrace_new_gap): Directly add gaps to the list of gaps. |
| 2926 | (btrace_bridge_gaps, btrace_compute_ftrace_bts, pt_btrace_insn_flags, |
| 2927 | ftrace_add_pt, btrace_compute_ftrace_pt, btrace_compute_ftrace_1, |
| 2928 | btrace_finalize_ftrace, btrace_compute_ftrace): Use std::vector |
| 2929 | instead of gdb VEC. |
| 2930 | |
| 2931 | 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com> |
| 2932 | |
| 2933 | * btrace.c (ftrace_fixup_caller, ftrace_new_return, ftrace_connect_bfun, |
| 2934 | ftrace_bridge_gap): Replace references to btrace_thread_info::segment |
| 2935 | with btrace_thread_info::next_segment and |
| 2936 | btrace_thread_info::prev_segment. |
| 2937 | * btrace.h: Remove struct btrace_func_link. |
| 2938 | (struct btrace_function): Replace pair of function segment pointers |
| 2939 | with pair of indices. |
| 2940 | * python/py-record-btrace.c (btpy_call_prev_sibling, |
| 2941 | btpy_call_next_sibling): Replace references to |
| 2942 | btrace_thread_info::segment with btrace_thread_info::next_segment and |
| 2943 | btrace_thread_info::prev_segment. |
| 2944 | * record-btrace.c (record_btrace_frame_this_id): Use |
| 2945 | btrace_find_call_by_number. |
| 2946 | |
| 2947 | 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com> |
| 2948 | |
| 2949 | * btrace.c (ftrace_new_function, ftrace_fixup_level, |
| 2950 | ftrace_connect_bfun, ftrace_bridge_gap, btrace_bridge_gaps, |
| 2951 | btrace_insn_next, btrace_insn_prev): Remove references to |
| 2952 | btrace_thread_info::flow. |
| 2953 | * btrace.h (struct btrace_function): Remove FLOW. |
| 2954 | |
| 2955 | 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com> |
| 2956 | |
| 2957 | * btrace.c (ftrace_find_call_by_number): New function. |
| 2958 | (ftrace_update_caller, ftrace_new_call, ftrace_new_tailcall, |
| 2959 | ftrace_get_caller, ftrace_find_call, ftrace_new_return, |
| 2960 | ftrace_match_backtrace, ftrace_connect_bfun, ftrace_connect_backtrace, |
| 2961 | ftrace_bridge_gap, btrace_bridge_gaps): Use btrace_function::up as an |
| 2962 | index. |
| 2963 | * btrace.h (struct btrace_function): Turn UP into an index. |
| 2964 | * python/py-record-btrace.c (btpy_call_up): Use btrace_function::up |
| 2965 | as an index. |
| 2966 | * record-btrace.c (record_btrace_frame_unwind_stop_reason, |
| 2967 | record_btrace_frame_prev_register, record_btrace_frame_sniffer, |
| 2968 | record_btrace_tailcall_frame_sniffe): Use btrace_find_call_by_number. |
| 2969 | |
| 2970 | 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com> |
| 2971 | |
| 2972 | * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall, |
| 2973 | ftrace_new_return, ftrace_new_switch, ftrace_new_gap, |
| 2974 | ftrace_update_function, ftrace_compute_global_level_offset, |
| 2975 | btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt, |
| 2976 | btrace_stitch_bts, btrace_fetch, btrace_clear, btrace_insn_number, |
| 2977 | btrace_insn_end, btrace_is_empty): Remove references to |
| 2978 | btrace_thread_info::begin and btrace_thread_info::end. |
| 2979 | * btrace.h (struct btrace_thread_info): Remove BEGIN and END. |
| 2980 | (struct btrace_thread_info) <functions>: Adjust comment. |
| 2981 | * record-btrace.c (record_btrace_start_replaying): Remove reference to |
| 2982 | btrace_thread_info::begin. |
| 2983 | |
| 2984 | 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com> |
| 2985 | |
| 2986 | * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall, |
| 2987 | ftrace_new_return, ftrace_new_switch, ftrace_new_gap, |
| 2988 | ftrace_update_function): Remove arguments that implicitly were always |
| 2989 | BTINFO->END. |
| 2990 | (btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt): |
| 2991 | Don't pass BTINFO->END. |
| 2992 | |
| 2993 | 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com> |
| 2994 | |
| 2995 | * btrace.c: (btrace_insn_get, btrace_insn_get_error, btrace_insn_number, |
| 2996 | btrace_insn_begin, btrace_insn_end, btrace_insn_next, btrace_insn_prev, |
| 2997 | btrace_find_insn_by_number): Replace function segment pointer with |
| 2998 | index. |
| 2999 | (btrace_insn_cmp): Simplify. |
| 3000 | * btrace.h: (struct btrace_insn_iterator) Rename index to |
| 3001 | insn_index. Replace function segment pointer with index into function |
| 3002 | segment vector. |
| 3003 | * record-btrace.c (record_btrace_call_history): Replace function |
| 3004 | segment pointer use with index. |
| 3005 | (record_btrace_frame_sniffer): Retrieve function call segment through |
| 3006 | vector. |
| 3007 | (record_btrace_set_replay): Remove defunc't safety check. |
| 3008 | |
| 3009 | 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com> |
| 3010 | |
| 3011 | * btrace.c (btrace_ends_with_single_insn): New function. |
| 3012 | (btrace_call_get, btrace_call_number, btrace_call_begin, |
| 3013 | btrace_call_end, btrace_call_next, btrace_call_prev, |
| 3014 | btrace_find_call_by_number): Use index into call segment vector |
| 3015 | instead of pointer. |
| 3016 | (btrace_call_cmp): Simplify. |
| 3017 | * btrace.h (struct btrace_call_iterator): Replace function call segment |
| 3018 | pointer with index into vector. |
| 3019 | * record-btrace.c (record_btrace_call_history): Use index instead of |
| 3020 | pointer. |
| 3021 | |
| 3022 | 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com> |
| 3023 | |
| 3024 | * btrace.c (btrace_insn_begin, btrace_insn_end, |
| 3025 | btrace_find_insn_by_number): Add btinfo to iterator. |
| 3026 | * btrace.h (struct btrace_insn_iterator): Add btinfo. |
| 3027 | |
| 3028 | 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com> |
| 3029 | |
| 3030 | * btrace.c (ftrace_new_function): Add btrace_thread_info to arguments |
| 3031 | and save pointers directly. |
| 3032 | (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return, |
| 3033 | ftrace_new_switch, ftrace_new_gap, ftrace_update_function, |
| 3034 | ftrace_add_pt): Add btrace_thread_info to arguments. Adjust for |
| 3035 | changed signature of functions. |
| 3036 | (btrace_compute_ftrace_pt): Adjust for changed signature of functions. |
| 3037 | (btrace_fetch): Remove code that adds btrace_function pointers to |
| 3038 | vector of btrace_functions. |
| 3039 | (btrace_clear): Simplify freeing vector of btrace_functions. |
| 3040 | |
| 3041 | 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com> |
| 3042 | |
| 3043 | * btrace.c (btrace_fetch, btrace_clear, btrace_find_insn_by_number): |
| 3044 | Replace VEC_* with std::vector functions. |
| 3045 | * btrace.h: Add include: vector. Remove typedef for DEF_VEC_P. |
| 3046 | (struct btrace_thread_info)<functions>: Change type to std::vector. |
| 3047 | |
| 3048 | 2017-05-30 Simon Marchi <simon.marchi@ericsson.com> |
| 3049 | |
| 3050 | * NEWS (Changes in GDB 8.0): Remove extra empty line. Move |
| 3051 | "Removed targets and native configurations" up. Merge duplicate |
| 3052 | "New commands" sub-sections. Add "New options" sub-sections. |
| 3053 | |
| 3054 | 2017-05-26 Alan Hayward <alan.hayward@arm.com> |
| 3055 | |
| 3056 | * defs.h (copy_integer_to_size): New declaration. |
| 3057 | * findvar.c (copy_integer_to_size): New function. |
| 3058 | (do_cint_test): New selftest function. |
| 3059 | (copy_integer_to_size_test): Likewise. |
| 3060 | (_initialize_findvar): Likewise. |
| 3061 | * mips-fbsd-tdep.c (mips_fbsd_supply_reg): Use raw_supply_integer. |
| 3062 | (mips_fbsd_collect_reg): Use raw_collect_integer. |
| 3063 | * mips-linux-tdep.c (supply_32bit_reg): Use raw_supply_integer. |
| 3064 | (mips64_fill_gregset): Use raw_collect_integer |
| 3065 | (mips64_fill_fpregset): Use raw_supply_integer. |
| 3066 | * regcache.c (regcache::raw_supply_integer): New function. |
| 3067 | (regcache::raw_collect_integer): Likewise. |
| 3068 | * regcache.h: (regcache::raw_supply_integer): New declaration. |
| 3069 | (regcache::raw_collect_integer): Likewise. |
| 3070 | |
| 3071 | 2017-05-24 Yao Qi <yao.qi@linaro.org> |
| 3072 | |
| 3073 | * Makefile.in (SFILES): Add gdbarch-selftests.c. |
| 3074 | (COMMON_OBS): Add gdbarch-selftests.o. |
| 3075 | * frame.c [GDB_SELF_TESTS] (create_new_frame): New function. |
| 3076 | * frame.h [GDB_SELF_TESTS] (create_new_frame): Declare. |
| 3077 | * gdbarch-selftests.c: New file. |
| 3078 | * regcache.h (regcache) <~regcache>: Mark it virtual if |
| 3079 | GDB_SELF_TEST. |
| 3080 | <raw_write>: Likewise. |
| 3081 | |
| 3082 | 2017-05-24 Yao Qi <yao.qi@linaro.org> |
| 3083 | |
| 3084 | * regcache.c (current_regcache): Change it to |
| 3085 | regcache::current_regcache. |
| 3086 | (regcache_observer_target_changed): Update. |
| 3087 | (regcache_thread_ptid_changed): Make it a regcache static |
| 3088 | method. |
| 3089 | (regcache_thread_ptid_changed): Update. |
| 3090 | (class regcache_access): New. |
| 3091 | (current_regcache_test): Update. |
| 3092 | (_initialize_regcache): Update. |
| 3093 | * regcache.h: Include forward_list. |
| 3094 | (regcache): Declare regcache_thread_ptid_changed and declare |
| 3095 | registers_changed_ptid as friend. |
| 3096 | |
| 3097 | 2017-05-24 Yao Qi <yao.qi@linaro.org> |
| 3098 | |
| 3099 | * i387-tdep.c (i387_register_to_value): Use register_size |
| 3100 | instead of TYPE_LENGTH. |
| 3101 | * m68k-tdep.c (m68k_register_to_value): Likewise. |
| 3102 | |
| 3103 | 2017-05-24 Yao Qi <yao.qi@linaro.org> |
| 3104 | |
| 3105 | * i387-tdep.c (i387_convert_register_p): Return false if type |
| 3106 | code isn't TYPE_CODE_FLT. |
| 3107 | |
| 3108 | 2017-05-24 Yao Qi <yao.qi@linaro.org> |
| 3109 | |
| 3110 | * alpha-tdep.c (alpha_convert_register_p): Return true if type |
| 3111 | length is 4. |
| 3112 | (alpha_register_to_value): Remove type length check. |
| 3113 | (alpha_value_to_register): Likewise. |
| 3114 | |
| 3115 | 2017-05-24 Yao Qi <yao.qi@linaro.org> |
| 3116 | |
| 3117 | * ia64-tdep.c (ia64_convert_register_p): Check type's code is |
| 3118 | TYPE_CODE_FLT. |
| 3119 | |
| 3120 | 2017-05-24 Yao Qi <yao.qi@linaro.org> |
| 3121 | |
| 3122 | * m68k-tdep.c (m68k_convert_register_p): Check type's code is |
| 3123 | TYPE_CODE_FLT or not. |
| 3124 | |
| 3125 | 2017-05-24 Yao Qi <yao.qi@linaro.org> |
| 3126 | |
| 3127 | * alpha-tdep.c (alpha_gdbarch_init): Use XCNEW instead of XNEW. |
| 3128 | * avr-tdep.c (avr_gdbarch_init): Likewise. |
| 3129 | * bfin-tdep.c (bfin_gdbarch_init): Likewise. |
| 3130 | * cris-tdep.c (cris_gdbarch_init): Likewise. |
| 3131 | * ft32-tdep.c (ft32_gdbarch_init): Likewise. |
| 3132 | * lm32-tdep.c (lm32_gdbarch_init): Likewise. |
| 3133 | * m32r-tdep.c (m32r_gdbarch_init): Likewise. |
| 3134 | * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise. |
| 3135 | * mep-tdep.c (mep_gdbarch_init): Likewise. |
| 3136 | * microblaze-tdep.c (microblaze_gdbarch_init): Likewise. |
| 3137 | * mips-tdep.c (mips_gdbarch_init): Likewise. |
| 3138 | * mn10300-tdep.c (mn10300_gdbarch_init): Likewise. |
| 3139 | * moxie-tdep.c (moxie_gdbarch_init): Likewise. |
| 3140 | * msp430-tdep.c (msp430_gdbarch_init): Likewise. |
| 3141 | * sh64-tdep.c (sh64_gdbarch_init): Likewise. |
| 3142 | * v850-tdep.c (v850_gdbarch_init): Likewise. |
| 3143 | |
| 3144 | 2017-05-24 Yao Qi <yao.qi@linaro.org> |
| 3145 | |
| 3146 | * selftest-arch.c (tests_with_arch): Call registers_changed |
| 3147 | and reinit_frame_cache. |
| 3148 | * selftest.c (run_self_tests): Likewise. |
| 3149 | |
| 3150 | 2017-05-24 Yao Qi <yao.qi@linaro.org> |
| 3151 | |
| 3152 | * rs6000-tdep.c (gdb_print_insn_powerpc): Remove. |
| 3153 | (rs6000_gdbarch_init): Don't call set_gdbarch_print_insn. |
| 3154 | |
| 3155 | 2017-05-24 Yao Qi <yao.qi@linaro.org> |
| 3156 | |
| 3157 | * rl78-tdep.c (rl78_gdbarch_init): Don't call |
| 3158 | set_gdbarch_print_insn. |
| 3159 | |
| 3160 | 2017-05-24 Yao Qi <yao.qi@linaro.org> |
| 3161 | |
| 3162 | * h8300-tdep.c (h8300_gdbarch_init): Don't call |
| 3163 | set_gdbarch_print_insn. |
| 3164 | |
| 3165 | 2017-05-24 Yao Qi <yao.qi@linaro.org> |
| 3166 | |
| 3167 | * alpha-tdep.c (alpha_gdbarch_init): Don't call |
| 3168 | set_gdbarch_print_insn. |
| 3169 | * arc-tdep.c (arc_gdbarch_init): Likewise. |
| 3170 | * arch-utils.c: include dis-asm.h. |
| 3171 | (default_print_insn): New function. |
| 3172 | * arch-utils.h (default_print_insn): Declare. |
| 3173 | * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_print_insn. |
| 3174 | * bfin-tdep.c (bfin_gdbarch_init): Likewise. |
| 3175 | * cris-tdep.c (cris_delayed_get_disassembler): Remove. |
| 3176 | (cris_gdbarch_init): Don't call set_gdbarch_print_insn. |
| 3177 | * frv-tdep.c (frv_gdbarch_init): Likewise. |
| 3178 | * ft32-tdep.c (ft32_gdbarch_init): Likewise. |
| 3179 | * gdbarch.sh (print_insn): Use default_print_insn. |
| 3180 | * gdbarch.c: Regenerated. |
| 3181 | * hppa-tdep.c (hppa_gdbarch_init): Likewise. |
| 3182 | * iq2000-tdep.c (iq2000_gdbarch_init): Likewise. |
| 3183 | * lm32-tdep.c (lm32_gdbarch_init): Likewise. |
| 3184 | * m32c-tdep.c (m32c_gdbarch_init): Likewise. |
| 3185 | * m32r-tdep.c (m32r_gdbarch_init): Likewise. |
| 3186 | * m68hc11-tdep.c (gdb_print_insn_m68hc11): Remove. |
| 3187 | (m68hc11_gdbarch_init): Don't call set_gdbarch_print_insn. |
| 3188 | * m68k-tdep.c (m68k_gdbarch_init): Likewise. |
| 3189 | * m88k-tdep.c (m88k_gdbarch_init): Likewise. |
| 3190 | * microblaze-tdep.c (microblaze_gdbarch_init): Likewise. |
| 3191 | * mn10300-tdep.c (mn10300_gdbarch_init): Likewise. |
| 3192 | * moxie-tdep.c (moxie_gdbarch_init): Likewise. |
| 3193 | * msp430-tdep.c (msp430_gdbarch_init): Likewise. |
| 3194 | * mt-tdep.c (mt_gdbarch_init): Likewise. |
| 3195 | * nds32-tdep.c (nds32_gdbarch_init): Likewise. |
| 3196 | * nios2-tdep.c (nios2_print_insn): Remove. |
| 3197 | (nios2_gdbarch_init): Don't call set_gdbarch_print_insn. |
| 3198 | * rx-tdep.c (rx_gdbarch_init): Likewise. |
| 3199 | * s390-linux-tdep.c (s390_gdbarch_init): Likewise. |
| 3200 | * score-tdep.c (score_print_insn): Remove. |
| 3201 | (score_gdbarch_init): Don't call set_gdbarch_print_insn. |
| 3202 | * sh-tdep.c (sh_gdbarch_init): Likewise. |
| 3203 | * sh64-tdep.c (sh64_gdbarch_init): Likewise. |
| 3204 | * sparc-tdep.c (sparc32_gdbarch_init): Likewise. |
| 3205 | * tic6x-tdep.c (tic6x_print_insn): Remove. |
| 3206 | (tic6x_gdbarch_init): Don't call set_gdbarch_print_insn. |
| 3207 | * tilegx-tdep.c (tilegx_gdbarch_init): Likewise. |
| 3208 | * v850-tdep.c (v850_gdbarch_init): Likewise. |
| 3209 | * vax-tdep.c (vax_gdbarch_init): Likewise. |
| 3210 | * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise. |
| 3211 | * xtensa-tdep.c (xtensa_gdbarch_init): Likewise. |
| 3212 | |
| 3213 | 2017-05-23 John Baldwin <jhb@FreeBSD.org> |
| 3214 | |
| 3215 | * mips-fbsd-tdep.c (MIPS_PC_REGNUM): Remove. |
| 3216 | (MIPS_FP0_REGNUM): Remove. |
| 3217 | (MIPS_FSR_REGNUM): Remove. |
| 3218 | (mips_fbsd_supply_fpregs): Use mips_regnum. |
| 3219 | (mips_fbsd_supply_gregs): Likewise. |
| 3220 | (mips_fbsd_collect_fpregs): Likewise. |
| 3221 | (mips_fbsd_collect_gregs): Likewise. |
| 3222 | |
| 3223 | 2017-05-23 John Baldwin <jhb@FreeBSD.org> |
| 3224 | |
| 3225 | * mips-fbsd-nat.c (getregs_supplies): Fix upper bound comparison. |
| 3226 | (getpfpregs_supplies): New function. |
| 3227 | (mips_fbsd_fetch_inferior_registers): Remove early exit and use |
| 3228 | getfpregs_supplies. |
| 3229 | (mips_fbsd_store_inferior_registers): Likewise. |
| 3230 | |
| 3231 | 2017-05-22 Pedro Alves <palves@redhat.com> |
| 3232 | |
| 3233 | * MAINTAINERS (Host/Native): Add John Baldwin as FreeBSD |
| 3234 | maintainer. |
| 3235 | |
| 3236 | 2017-05-22 Alan Hayward <alan.hayward@arm.com> |
| 3237 | |
| 3238 | * ppc-linux-nat.c (fetch_register): Use PPC_MAX_REGISTER_SIZE. |
| 3239 | (store_register): Likewise. |
| 3240 | * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Likewise. |
| 3241 | (get_decimal_float_return_value): Likewise. |
| 3242 | (do_ppc_sysv_return_value): Likewise. |
| 3243 | (ppc64_sysv_abi_push_integer): Likewise. |
| 3244 | (ppc64_sysv_abi_push_freg): Likewise. |
| 3245 | (ppc64_sysv_abi_return_value_base): Likewise. |
| 3246 | (ppc64_sysv_abi_return_value): Likewise. |
| 3247 | * rs6000-aix-tdep.c (rs6000_push_dummy_call): Likewise. |
| 3248 | * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Likewise. |
| 3249 | * rs6000-nat.c: Likewise. |
| 3250 | * rs6000-tdep.c (rs6000_register_to_value): Likewise. |
| 3251 | (rs6000_value_to_register): Likewise. |
| 3252 | * ppc-tdep.h (PPC_MAX_REGISTER_SIZE): Add. |
| 3253 | |
| 3254 | 2017-05-21 Tom Tromey <tom@tromey.com> |
| 3255 | |
| 3256 | PR rust/21466: |
| 3257 | * rust-lang.c (rust_print_type) <TYPE_CODE_ARRAY>: Print unsized |
| 3258 | arrays as "[T]", not "[T; ]". |
| 3259 | |
| 3260 | 2017-05-19 Tom Tromey <tom@tromey.com> |
| 3261 | |
| 3262 | PR rust/21484: |
| 3263 | * rust-lang.c (exp_descriptor_rust): New function. |
| 3264 | (rust_language_defn): Use it. |
| 3265 | * p-lang.c (pascal_language_defn): Update. |
| 3266 | * opencl-lang.c (opencl_language_defn): Update. |
| 3267 | * objc-lang.c (objc_language_defn): Update. |
| 3268 | * m2-lang.c (m2_language_defn): Update. |
| 3269 | * language.h (struct language_defn) |
| 3270 | <la_watch_location_expression>: New member. |
| 3271 | * language.c (unknown_language_defn, auto_language_defn) |
| 3272 | (local_language_defn): Update. |
| 3273 | * go-lang.c (go_language_defn): Update. |
| 3274 | * f-lang.c (f_language_defn): Update. |
| 3275 | * d-lang.c (d_language_defn): Update. |
| 3276 | * c-lang.h (c_watch_location_expression): Declare. |
| 3277 | * c-lang.c (c_watch_location_expression): New function. |
| 3278 | (c_language_defn, cplus_language_defn, asm_language_defn) |
| 3279 | (minimal_language_defn): Use it. |
| 3280 | * breakpoint.c (watch_command_1): Call |
| 3281 | la_watch_location_expression. |
| 3282 | * ada-lang.c (ada_language_defn): Update. |
| 3283 | |
| 3284 | 2017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
| 3285 | |
| 3286 | PR tui/21482 |
| 3287 | * gdb_curses.h (NOMACROS): Define. |
| 3288 | (NCURSES_NOMACROS): Define. |
| 3289 | |
| 3290 | 2017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
| 3291 | |
| 3292 | PR tui/21482 |
| 3293 | * tui/tui-windata.c (tui_erase_data_content): Cast last mvwaddstr |
| 3294 | arg to char *. |
| 3295 | * tui/tui-wingeneral.c (box_win): Likewise. |
| 3296 | * tui/tui-winsource.c (tui_erase_source_content): Likewise. |
| 3297 | (tui_show_source_line): Likewise. |
| 3298 | (tui_show_exec_info_content): Likewise. |
| 3299 | |
| 3300 | 2017-05-19 Vladimir Mezentsev <vladimir.mezentsev@oracle.com> |
| 3301 | |
| 3302 | * sparc-tdep.c (sparc_structure_return_p) |
| 3303 | (sparc_arg_on_registers_p): New functions. |
| 3304 | (sparc32_store_arguments): Use them. |
| 3305 | * sparc64-tdep.c (sparc64_16_byte_align_p) |
| 3306 | (sparc64_store_floating_fields, sparc64_extract_floating_fields): |
| 3307 | Handle TYPE_CODE_ARRAY. |
| 3308 | |
| 3309 | 2017-05-17 Yao Qi <yao.qi@linaro.org> |
| 3310 | |
| 3311 | * cli/cli-decode.c (add_alias_cmd): New function. |
| 3312 | * command.h (add_alias_cmd): Declare. |
| 3313 | * infcmd.c (_initialize_infcmd): Don't call add_com_alias, |
| 3314 | instead call add_alias_cmd. |
| 3315 | |
| 3316 | 2017-05-17 Pedro Alves <palves@redhat.com> |
| 3317 | |
| 3318 | * Makefile.in (nat_extra_makefile_frag): Rename to ... |
| 3319 | (nat_makefile_frag): ... this. All references updated. |
| 3320 | * configure.ac: Likewise. |
| 3321 | * configure.nat: Likewise. Enhance comments. |
| 3322 | * configure: Regenerate. |
| 3323 | |
| 3324 | 2017-05-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
| 3325 | |
| 3326 | * procfs.c (procfs_create_inferior): Change prototype to match |
| 3327 | definition. |
| 3328 | |
| 3329 | 2017-05-13 Eli Zaretskii <eliz@gnu.org> |
| 3330 | |
| 3331 | * tui/tui.c (tui_enable): Cast "unknown" to 'char *' to avoid a |
| 3332 | C++ compiler warning. |
| 3333 | |
| 3334 | 2017-05-12 Tom Tromey <tom@tromey.com> |
| 3335 | |
| 3336 | PR rust/21483: |
| 3337 | * rust-lang.c (rust_evaluate_subexp) <STRUCTOP_STRUCT>: Don't |
| 3338 | recurse, just call value_struct_elt directly. |
| 3339 | |
| 3340 | 2017-05-12 Tom Tromey <tom@tromey.com> |
| 3341 | |
| 3342 | * rust-lang.c (rust_dump_subexp_body) <STRUCTOP_ANONYMOUS, |
| 3343 | OP_RUST_ARRAY>: Fix. |
| 3344 | |
| 3345 | 2017-05-12 Tom Tromey <tom@tromey.com> |
| 3346 | |
| 3347 | * rust-lang.c (rust_print_subexp): Replace "return" with "break". |
| 3348 | |
| 3349 | 2017-05-09 Yao Qi <yao.qi@linaro.org> |
| 3350 | |
| 3351 | * regcache.c: Include <forward_list>. |
| 3352 | (struct regcache_list): Remove. |
| 3353 | (current_regcache): Update. |
| 3354 | (get_thread_arch_aspace_regcache): Update for std::forward_list. |
| 3355 | (regcache_thread_ptid_changed): Likewise. |
| 3356 | (registers_changed_ptid): Likewise. |
| 3357 | (current_regcache_size): Likewise. |
| 3358 | |
| 3359 | 2017-05-09 Yao Qi <yao.qi@linaro.org> |
| 3360 | |
| 3361 | * regcache.c [GDB_SELF_TEST]: Include selftest.h. |
| 3362 | (current_regcache_size): New function. |
| 3363 | (current_regcache_test): New function. |
| 3364 | (_initialize_regcache) [GDB_SELF_TEST]: Register the unit test. |
| 3365 | |
| 3366 | 2017-05-08 Alan Hayward <alan.hayward@arm.com> |
| 3367 | |
| 3368 | * mips-tdep.c (mips_o32_return_value): Remove unused buffer. |
| 3369 | (print_gp_register_row): Use get_frame_register_value. |
| 3370 | |
| 3371 | 2017-05-08 Alan Hayward <alan.hayward@arm.com> |
| 3372 | |
| 3373 | * mips-linux-tdep.c (mips_supply_gregset): Use raw_supply_zeroed. |
| 3374 | (mips_supply_fpregset): Likewise. |
| 3375 | (mips64_supply_gregset): Likewise. |
| 3376 | |
| 3377 | 2017-05-08 Alan Hayward <alan.hayward@arm.com> |
| 3378 | |
| 3379 | * mn10300-linux-tdep.c (am33_supply_gregset_method): Use |
| 3380 | regcache->raw_supply_zeroed. |
| 3381 | |
| 3382 | 2017-05-06 Sergio Durigan Junior <sergiodj@redhat.com> |
| 3383 | |
| 3384 | * configure.nat: Rearrange 'case' statements to match |
| 3385 | host before cpu. |
| 3386 | |
| 3387 | 2017-05-06 Sergio Durigan Junior <sergiodj@redhat.com> |
| 3388 | |
| 3389 | * Makefile.in: Remove "@host_makefile_frag@". Add variables |
| 3390 | NAT_FILE, NATDEPFILES, NAT_CDEPS, LOADLIBES, MH_CFLAGS, XM_CLIBS, |
| 3391 | NAT_GENERATED_FILES, HAVE_NATIVE_GCORE_HOST. Add |
| 3392 | "@nat_extra_makefile_frag@". |
| 3393 | (Makefile): Remove dependency on "@frags@". |
| 3394 | ($(GNULIB_BUILDDIR)/Makefile): Likewise. |
| 3395 | (data-directory/Makefile): Likewise. |
| 3396 | * config/aarch64/linux.mh: Deleted; moved contents to |
| 3397 | "gdb/configure.nat". |
| 3398 | * config/alpha/alpha-linux.mh: Likewise. |
| 3399 | * config/alpha/nbsd.mh: Likewise. |
| 3400 | * config/arm/linux.mh: Likewise. |
| 3401 | * config/arm/nbsdelf.mh: Likewise. |
| 3402 | * config/i386/cygwin.mh: Likewise. |
| 3403 | * config/i386/cygwin64.mh: Likewise. |
| 3404 | * config/i386/darwin.mh: Likewise. |
| 3405 | * config/i386/fbsd.mh: Likewise. |
| 3406 | * config/i386/fbsd64.mh: Likewise. |
| 3407 | * config/i386/go32.mh: Likewise. |
| 3408 | * config/i386/i386gnu.mh: Likewise. |
| 3409 | * config/i386/i386sol2.mh: Likewise. |
| 3410 | * config/i386/linux.mh: Likewise. |
| 3411 | * config/i386/linux64.mh: Likewise. |
| 3412 | * config/i386/mingw.mh: Likewise. |
| 3413 | * config/i386/mingw64.mh: Likewise. |
| 3414 | * config/i386/nbsd64.mh: Likewise. |
| 3415 | * config/i386/nbsdelf.mh: Likewise. |
| 3416 | * config/i386/nto.mh: Likewise. |
| 3417 | * config/i386/obsd.mh: Likewise. |
| 3418 | * config/i386/obsd64.mh: Likewise. |
| 3419 | * config/i386/sol2-64.mh: Likewise. |
| 3420 | * config/ia64/linux.mh: Likewise. |
| 3421 | * config/m32r/linux.mh: Likewise. |
| 3422 | * config/m68k/linux.mh: Likewise. |
| 3423 | * config/m68k/nbsdelf.mh: Likewise. |
| 3424 | * config/m68k/obsd.mh: Likewise. |
| 3425 | * config/m88k/obsd.mh: Likewise. |
| 3426 | * config/mips/fbsd.mh: Likewise. |
| 3427 | * config/mips/linux.mh: Likewise. |
| 3428 | * config/mips/nbsd.mh: Likewise. |
| 3429 | * config/mips/obsd64.mh: Likewise. |
| 3430 | * config/pa/linux.mh: Likewise. |
| 3431 | * config/pa/nbsd.mh: Likewise. |
| 3432 | * config/pa/obsd.mh: Likewise. |
| 3433 | * config/powerpc/aix.mh: Likewise. |
| 3434 | * config/powerpc/fbsd.mh: Likewise. |
| 3435 | * config/powerpc/linux.mh: Likewise. |
| 3436 | * config/powerpc/nbsd.mh: Likewise. |
| 3437 | * config/powerpc/obsd.mh: Likewise. |
| 3438 | * config/powerpc/ppc64-linux.mh: Likewise. |
| 3439 | * config/powerpc/spu-linux.mh: Likewise. |
| 3440 | * config/s390/linux.mh: Likewise. |
| 3441 | * config/sh/nbsd.mh: Likewise. |
| 3442 | * config/sparc/fbsd.mh: Likewise. |
| 3443 | * config/sparc/linux.mh: Likewise. |
| 3444 | * config/sparc/linux64.mh: Likewise. |
| 3445 | * config/sparc/nbsd64.mh: Likewise. |
| 3446 | * config/sparc/nbsdelf.mh: Likewise. |
| 3447 | * config/sparc/obsd64.mh: Likewise. |
| 3448 | * config/sparc/sol2.mh: Likewise. |
| 3449 | * config/tilegx/linux.mh: Likewise. |
| 3450 | * config/vax/nbsdelf.mh: Likewise. |
| 3451 | * config/vax/obsd.mh: Likewise. |
| 3452 | * config/xtensa/linux.mh: Likewise. |
| 3453 | * config/i386/i386gnu.mn: New file, with excerpts from |
| 3454 | "config/i386/i386gnu.mh". |
| 3455 | * configure: Regenerate. |
| 3456 | * configure.ac: Rewrite code to use "gdb/configure.nat" instead of |
| 3457 | *.mh files under "gdb/config". |
| 3458 | * configure.nat: New file, with contents from the |
| 3459 | "gdb/config/*/*.mh" files. |
| 3460 | |
| 3461 | 2017-05-05 Tim Wiederhake <tim.wiederhake@intel.com> |
| 3462 | |
| 3463 | * btrace.c (btrace_clear): Free insn vector. |
| 3464 | |
| 3465 | 2017-05-05 Pedro Alves <palves@redhat.com> |
| 3466 | |
| 3467 | * warning.m4 (build_warnings): Add -Wno-error=maybe-uninitialized. |
| 3468 | * configure: Regenerate. |
| 3469 | |
| 3470 | 2017-05-04 Pedro Alves <palves@redhat.com> |
| 3471 | |
| 3472 | * Makefile.in (SFILES): Add progspace-and-thread.c. |
| 3473 | (HFILES_NO_SRCDIR): Add progspace-and-thread.h. |
| 3474 | (COMMON_OBS): Add progspace-and-thread.o. |
| 3475 | * breakpoint.c: Include "progspace-and-thread.h". |
| 3476 | (update_inserted_breakpoint_locations) |
| 3477 | (insert_breakpoint_locations, create_longjmp_master_breakpoint): |
| 3478 | Use scoped_restore_current_pspace_and_thread. |
| 3479 | (create_std_terminate_master_breakpoint): Use |
| 3480 | scoped_restore_current_program_space. |
| 3481 | (remove_breakpoint): Use scoped_restore_current_pspace_and_thread. |
| 3482 | (print_breakpoint_location): Use |
| 3483 | scoped_restore_current_program_space. |
| 3484 | (bp_loc_is_permanent): Use |
| 3485 | scoped_restore_current_pspace_and_thread. |
| 3486 | (resolve_sal_pc): Use scoped_restore_current_pspace_and_thread. |
| 3487 | (download_tracepoint_locations): Use |
| 3488 | scoped_restore_current_pspace_and_thread. |
| 3489 | (breakpoint_re_set): Use scoped_restore_current_pspace_and_thread. |
| 3490 | * exec.c (exec_close_1): Use scoped_restore_current_program_space. |
| 3491 | (enum step_over_calls_kind): Moved from inferior.h. |
| 3492 | (class scoped_restore_current_thread): New class. |
| 3493 | * gdbthread.h (make_cleanup_restore_current_thread): Delete |
| 3494 | declaration. |
| 3495 | (scoped_restore_current_thread): New class. |
| 3496 | * infcmd.c: Include "common/gdb_optional.h". |
| 3497 | (continue_1, proceed_after_attach): Use |
| 3498 | scoped_restore_current_thread. |
| 3499 | (notice_new_inferior): Use scoped_restore_current_thread. |
| 3500 | * inferior.c: Include "progspace-and-thread.h". |
| 3501 | (restore_inferior, save_current_inferior): Delete. |
| 3502 | (add_inferior_command, clone_inferior_command): Use |
| 3503 | scoped_restore_current_pspace_and_thread. |
| 3504 | * inferior.h (scoped_restore_current_inferior): New class. |
| 3505 | * infrun.c: Include "progspace-and-thread.h" and |
| 3506 | "common/gdb_optional.h". |
| 3507 | (follow_fork_inferior): Use |
| 3508 | scoped_restore_current_pspace_and_thread. |
| 3509 | (scoped_restore_exited_inferior): New class. |
| 3510 | (handle_vfork_child_exec_or_exit): Use |
| 3511 | scoped_restore_exited_inferior, |
| 3512 | scoped_restore_current_pspace_and_thread, |
| 3513 | scoped_restore_current_thread and scoped_restore. |
| 3514 | (fetch_inferior_event): Use scoped_restore_current_thread. |
| 3515 | * linespec.c (decode_line_full, decode_line_1): Use |
| 3516 | scoped_restore_current_program_space. |
| 3517 | * mi/mi-main.c: Include "progspace-and-thread.h". |
| 3518 | (exec_continue): Use scoped_restore_current_thread. |
| 3519 | (mi_cmd_exec_run): Use scoped_restore_current_pspace_and_thread. |
| 3520 | (mi_cmd_trace_frame_collected): Use scoped_restore_current_thread. |
| 3521 | * proc-service.c (ps_pglobal_lookup): Use |
| 3522 | scoped_restore_current_program_space. |
| 3523 | * progspace-and-thread.c: New file. |
| 3524 | * progspace-and-thread.h: New file. |
| 3525 | * progspace.c (release_program_space, clone_program_space): Use |
| 3526 | scoped_restore_current_program_space. |
| 3527 | (restore_program_space, save_current_program_space) |
| 3528 | (save_current_space_and_thread): Delete. |
| 3529 | (switch_to_program_space_and_thread): Moved to |
| 3530 | progspace-and-thread.c. |
| 3531 | * progspace.h (save_current_program_space) |
| 3532 | (save_current_space_and_thread): Delete declarations. |
| 3533 | (scoped_restore_current_program_space): New class. |
| 3534 | * remote.c (remote_btrace_maybe_reopen): Use |
| 3535 | scoped_restore_current_thread. |
| 3536 | * symtab.c: Include "progspace-and-thread.h". |
| 3537 | (skip_prologue_sal): Use scoped_restore_current_pspace_and_thread. |
| 3538 | * thread.c (print_thread_info_1): Use |
| 3539 | scoped_restore_current_thread. |
| 3540 | (struct current_thread_cleanup): Delete. |
| 3541 | (do_restore_current_thread_cleanup) |
| 3542 | (restore_current_thread_cleanup_dtor): Rename/convert both to ... |
| 3543 | (scoped_restore_current_thread::~scoped_restore_current_thread): |
| 3544 | ... this new dtor. |
| 3545 | (make_cleanup_restore_current_thread): Rename/convert to ... |
| 3546 | (scoped_restore_current_thread::scoped_restore_current_thread): |
| 3547 | ... this new ctor. |
| 3548 | (thread_apply_all_command): Use scoped_restore_current_thread. |
| 3549 | (thread_apply_command): Use scoped_restore_current_thread. |
| 3550 | * tracepoint.c (tdump_command): Use scoped_restore_current_thread. |
| 3551 | * varobj.c (value_of_root_1): Use scoped_restore_current_thread. |
| 3552 | |
| 3553 | 2017-05-04 Pedro Alves <palves@redhat.com> |
| 3554 | |
| 3555 | * thread.c (make_cleanup_restore_current_thread): Move |
| 3556 | find_thread_ptid call before the is_stopped call. Assert that the |
| 3557 | thread is found. Replace is_stopped call by checking the thread's |
| 3558 | state directly. Remove unnecessary NULL-thread check. |
| 3559 | |
| 3560 | 2017-05-04 Pedro Alves <palves@redhat.com> |
| 3561 | |
| 3562 | * corelow.c (thread_section_name): New class. |
| 3563 | (get_core_register_section, get_core_siginfo): Use it. |
| 3564 | |
| 3565 | 2017-05-04 Andreas Arnez <arnez@linux.vnet.ibm.com> |
| 3566 | |
| 3567 | * corelow.c (sniff_core_bfd): Remove extra semicolon. |
| 3568 | (get_core_register_section): Remove xfree of NULL pointer. |
| 3569 | |
| 3570 | 2017-05-03 Alan Hayward <alan.hayward@arm.com> |
| 3571 | |
| 3572 | * frv-linux-tdep.c (frv_linux_supply_gregset): Use raw_supply_zeroed. |
| 3573 | * regcache.c (regcache::raw_supply_zeroed): New function. |
| 3574 | * regcache.h (regcache::raw_supply_zeroed): New declaration. |
| 3575 | |
| 3576 | 2017-05-03 Simon Marchi <simon.marchi@ericsson.com> |
| 3577 | |
| 3578 | * gdbarch.sh: Remove commented out definition of |
| 3579 | TARGET_CHAR_BIT. |
| 3580 | * gdbarch.h: Re-generate. |
| 3581 | |
| 3582 | 2017-05-03 Sergio Durigan Junior <sergiodj@redhat.com> |
| 3583 | |
| 3584 | * configure: Regenerate. |
| 3585 | |
| 3586 | 2017-05-02 Simon Marchi <simon.marchi@ericsson.com> |
| 3587 | |
| 3588 | * solib-target.c (solib_target_relocate_section_addresses): |
| 3589 | Remove num_section_bases, num_bases, segment_bases variables. |
| 3590 | |
| 3591 | 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca> |
| 3592 | |
| 3593 | * common/gdb_vecs.h (DEF_VEC_I (CORE_ADDR)): Remove. |
| 3594 | |
| 3595 | 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca> |
| 3596 | |
| 3597 | * solib-target.c: Include <vector> |
| 3598 | (struct lm_info_target) <~lm_info_target>: Remove. |
| 3599 | <segment_bases, section_bases>: Change type to |
| 3600 | std::vector<CORE_ADDR>. |
| 3601 | (library_list_start_segment, library_list_start_section, |
| 3602 | library_list_end_library, |
| 3603 | solib_target_relocate_section_addresses): Adjust. |
| 3604 | |
| 3605 | 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca> |
| 3606 | |
| 3607 | * gdbarch.sh (software_single_step): Change return type to |
| 3608 | std::vector<CORE_ADDR>. |
| 3609 | * gdbarch.c, gdbarch.h: Re-generate. |
| 3610 | * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw): |
| 3611 | Adjust. |
| 3612 | (arm_deal_with_atomic_sequence_raw): Adjust. |
| 3613 | (thumb_get_next_pcs_raw): Adjust. |
| 3614 | (arm_get_next_pcs_raw): Adjust. |
| 3615 | (arm_get_next_pcs): Adjust. |
| 3616 | * arch/arm-get-next-pcs.h (arm_get_next_pcs): Adjust. |
| 3617 | * aarch64-tdep.c (aarch64_software_single_step): Adjust. |
| 3618 | * alpha-tdep.c (alpha_deal_with_atomic_sequence): Adjust. |
| 3619 | (alpha_software_single_step): Adjust. |
| 3620 | * alpha-tdep.h (alpha_software_single_step): Adjust. |
| 3621 | * arm-linux-tdep.c (arm_linux_software_single_step): Adjust. |
| 3622 | * arm-tdep.c (arm_software_single_step): Adjust. |
| 3623 | (arm_breakpoint_kind_from_current_state): Adjust. |
| 3624 | * arm-tdep.h (arm_software_single_step): Adjust. |
| 3625 | * breakpoint.c (insert_single_step_breakpoint): Adjust. |
| 3626 | * cris-tdep.c (cris_software_single_step): Adjust. |
| 3627 | * mips-tdep.c (mips_deal_with_atomic_sequence): Adjust. |
| 3628 | (micromips_deal_with_atomic_sequence): Adjust. |
| 3629 | (deal_with_atomic_sequence): Adjust. |
| 3630 | (mips_software_single_step): Adjust. |
| 3631 | * mips-tdep.h (mips_software_single_step): Adjust. |
| 3632 | * moxie-tdep.c (moxie_software_single_step): Adjust. |
| 3633 | * nios2-tdep.c (nios2_software_single_step): Adjust. |
| 3634 | * ppc-tdep.h (ppc_deal_with_atomic_sequence): Adjust. |
| 3635 | * rs6000-aix-tdep.c (rs6000_software_single_step): Adjust. |
| 3636 | * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Adjust. |
| 3637 | * s390-linux-tdep.c (s390_software_single_step): Adjust. |
| 3638 | * sparc-tdep.c (sparc_software_single_step): Adjust. |
| 3639 | * spu-tdep.c (spu_software_single_step): Adjust. |
| 3640 | * tic6x-tdep.c (tic6x_software_single_step): Adjust. |
| 3641 | |
| 3642 | 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca> |
| 3643 | |
| 3644 | * gdbarch.sh: Use semi-colon as field separator instead of colon. |
| 3645 | * gdbarch.h: Re-generate. |
| 3646 | |
| 3647 | 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com> |
| 3648 | |
| 3649 | * Makefile.in (SUBDIR_PYTHON_OBS): Add py-instruction.o. |
| 3650 | (SUBDIR_PYTHON_SRCS): Add py-instruction.c. |
| 3651 | * python/py-instruction.c, python/py-instruction.h: New file. |
| 3652 | * python/py-record.c: Add py-instruction.h include. |
| 3653 | (gdbpy_initialize_record): Make gdb.Instruction a super class of |
| 3654 | gdb.RecordInstruction. |
| 3655 | * python/python-internal.h: Add gdbpy_initialize_instruction |
| 3656 | declaration. |
| 3657 | * python/python.c (do_start_initialization): Add |
| 3658 | gdbpy_initialize_instruction. |
| 3659 | |
| 3660 | 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com> |
| 3661 | |
| 3662 | * python/py-record-btrace.c (BTPY_REQUIRE_VALID_CALL, btpy_call_type): |
| 3663 | Remove. |
| 3664 | (btrace_func_from_recpy_func): New function. |
| 3665 | (btpy_call_new, btpy_number, btpy_hash, btpy_richcompare): Remove. |
| 3666 | (btpy_call_level, btpy_call_symbol, btpy_call_instructions, |
| 3667 | btpy_call_up, btpy_call_prev_sibling, btpy_call_next_sibling): Rename to ... |
| 3668 | (recpy_bt_func_level, recpy_bt_func_symbol, recpy_bt_func_instructions, |
| 3669 | recpy_bt_func_up, recpy_bt_func_prev, recpy_bt_func_next): This. |
| 3670 | Also, use new helper functions. |
| 3671 | (btpy_list_item): Use new helper functions. |
| 3672 | (recpy_bt_function_call_history): Use new type name. |
| 3673 | (btpy_call_getset): Remove. |
| 3674 | (gdbpy_initialize_btrace): Remove code to initialize |
| 3675 | gdb.BtraceFunctionCall. |
| 3676 | * python/py-record-btrace.h (recpy_bt_func_number, recpy_btb_func_level, |
| 3677 | recpy_btb_func_symbol, recpy_bt_func_instructions, recpy_bt_func_up, |
| 3678 | recpy_bt_func_prev, recpy_bt_func_next): New export. |
| 3679 | * python/py-record.c (recpy_func_type): New static object. |
| 3680 | (recpy_func_new, recpy_func_level, recpy_func_symbol, |
| 3681 | recpy_func_instructions, recpy_func_up, recpy_func_prev, |
| 3682 | recpy_func_next): New function. |
| 3683 | (recpy_element_hash, recpy_element_richcompare): Updated comment. |
| 3684 | (recpy_func_getset): New static object. |
| 3685 | (gdbpy_initialize_record): Add code to initialize gdb.RecordInstruction. |
| 3686 | * python/py-record.h (recpy_func_type, recpy_func_new): New export. |
| 3687 | |
| 3688 | 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com> |
| 3689 | |
| 3690 | * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN): Remove. |
| 3691 | (btpy_object, btpy_insn_type, btpy_new): Remove. |
| 3692 | (btpy_list_object): Use gdb.RecordInstruction type instead of |
| 3693 | gdb.BtraceInstruction type. |
| 3694 | (btrace_insn_from_recpy_insn): New function. |
| 3695 | (btpy_insn_or_gap_new): Adjust comment. Use recpy_insn_new instead of |
| 3696 | btpy_new. |
| 3697 | (btpy_call_new, btpy_list_item): Do not use btpy_new anymore. |
| 3698 | (btpy_number, btpy_hash, btpy_call_level, btpy_call_symbol, |
| 3699 | btpy_call_instructions, btpy_call_up, btpy_call_prev_sibling, |
| 3700 | btpy_call_next_sibling, btpy_richcompare): Use recpy_element_object |
| 3701 | instead of btpy_object. |
| 3702 | (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative, |
| 3703 | btpy_insn_data, btpy_insn_decode): Rename to ... |
| 3704 | (recpy_bt_insn_sal, recpy_bt_insn_pc, recpy_bt_insn_size, |
| 3705 | recpy_bt_insn_is_speculative, recpy_bt_insn_data, |
| 3706 | recpy_bt_insn_decode): This. Also, use new helper functions. |
| 3707 | (btpy_list_position, recpy_bt_goto): Use recpy_element_object and |
| 3708 | recpy_insn_type. |
| 3709 | (btpy_insn_getset): Remove. |
| 3710 | (gdbpy_initialize_btrace): Remove code to initialize |
| 3711 | gdb.BtraceInstruction. Use recpy_element_object. |
| 3712 | * python/py-record-btrace.h (recpy_bt_insn_number, recpy_bt_insn_sal, |
| 3713 | recpy_bt_insn_pc, recpy_bt_insn_data, recpy_bt_insn_decoded, |
| 3714 | recpy_bt_insn_size, recpy_bt_insn_is_speculative): New export. |
| 3715 | * python/py-record.c (recpy_insn_type): New static object. |
| 3716 | (recpy_insn_new, recpy_insn_sal, recpy_insn_pc, recpy_insn_data, |
| 3717 | recpy_insn_decoded, recpy_insn_size, recpy_insn_is_speculative, |
| 3718 | recpy_element_number, recpy_element_hash, recpy_element_richcompare): |
| 3719 | New function. |
| 3720 | (recpy_insn_getset): New static object. |
| 3721 | (gdbpy_initialize_record): Initialize gdb.RecordInstruction. |
| 3722 | * python/py-record.h (recpy_element_object): New typedef. |
| 3723 | (recpy_insn_type, recpy_insn_new): New export. |
| 3724 | |
| 3725 | 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com> |
| 3726 | |
| 3727 | * py-record-btrace.c (btpy_insn_new): Removed. |
| 3728 | (btpy_insn_or_gap_new): New function. |
| 3729 | (btpy_insn_error): Removed. |
| 3730 | (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative, |
| 3731 | btpy_insn_data, btpy_insn_decode): Remove code path for gaps. |
| 3732 | (recpy_bt_replay_position, recpy_bt_begin, recpy_bt_end): Call |
| 3733 | btpy_insn_or_gap_new instead of btpy_insn_new. |
| 3734 | (btpy_insn_getset): Remove btpy_insn_error. |
| 3735 | * py-record.c (recpy_gap_type): New static object. |
| 3736 | (recpy_gap_object): New typedef. |
| 3737 | (recpy_gap_new, recpy_gap_number, recpy_gap_reason_code, |
| 3738 | recpy_gap_reason_string): New function. |
| 3739 | (recpy_gap_getset): New static object. |
| 3740 | (gdbpy_initialize_record): Initialize gdb.RecordGap type. |
| 3741 | * py-record.h (recpy_gap_new): New export. |
| 3742 | |
| 3743 | 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com> |
| 3744 | |
| 3745 | * python/py-record.c (recpy_ptid): Remove. |
| 3746 | (recpy_record_getset): Remove recpy_ptid. |
| 3747 | |
| 3748 | 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com> |
| 3749 | |
| 3750 | * btrace.c (btrace_fetch): Set inferior_ptid. |
| 3751 | * python/py-record-btrace.c: Add "py-record.h" include. |
| 3752 | (recpy_bt_format, recpy_bt_replay_position, recpy_bt_begin, |
| 3753 | recpy_bt_end, recpy_bt_instruction_history, |
| 3754 | recpy_bt_function_call_history, recpy_bt_goto): Use ptid stored |
| 3755 | in gdb.Record object instead of current ptid. |
| 3756 | * python/py-record.c: Include new "py-record.h" file. |
| 3757 | (recpy_record_object): Moved to py-record.h. |
| 3758 | * python/py-record.h: New file. |
| 3759 | |
| 3760 | 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com> |
| 3761 | |
| 3762 | * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN, |
| 3763 | BTPY_REQUIRE_VALID_CALL, recpy_bt_function_call_history): Fix |
| 3764 | indentation. |
| 3765 | |
| 3766 | 2017-05-01 Joel Brobecker <brobecker@adacore.com> |
| 3767 | |
| 3768 | * MAINTAINERS: Move Daniel Jacobowitz and Mark Kettenis to |
| 3769 | the past maintainers section. |
| 3770 | |
| 3771 | 2017-04-28 Yao Qi <yao.qi@linaro.org> |
| 3772 | |
| 3773 | * infcmd.c (get_return_value): Use regcache ctor, and remove |
| 3774 | cleanup. |
| 3775 | |
| 3776 | 2017-04-28 Yao Qi <yao.qi@linaro.org> |
| 3777 | Pedro Alves <palves@redhat.com> |
| 3778 | |
| 3779 | * regcache.c (regcache::regcache): New tag dispatch ctor. |
| 3780 | (do_cooked_read): Moved above. |
| 3781 | (regcache_dup): Use the tag dispatch ctor.. |
| 3782 | * regcache.h (regcache): Declare ctor, delete copy ctor and |
| 3783 | assignment operator, remove friend regcache_dup. |
| 3784 | |
| 3785 | 2017-04-28 Yao Qi <yao.qi@linaro.org> |
| 3786 | |
| 3787 | * regcache.c (regcache_dup): Assert !src->m_readonly_p and |
| 3788 | call method save instead of regcache_cpy. |
| 3789 | * regcache.h (struct regcache): Make regcache_dup a friend. |
| 3790 | |
| 3791 | 2017-04-28 Yao Qi <yao.qi@linaro.org> |
| 3792 | |
| 3793 | * regcache.c (struct regcache): Move to regcache.h |
| 3794 | (regcache::arch): New method. |
| 3795 | (regcache_get_ptid): Update. |
| 3796 | (get_regcache_arch): Call arch method. |
| 3797 | (get_regcache_aspace): Call method aspace. |
| 3798 | (register_buffer): Change it to method. |
| 3799 | (regcache_save): Change it to regcache::save. |
| 3800 | (regcache_restore): Likewise. |
| 3801 | (regcache_cpy_no_passthrough): Remove the declaration. |
| 3802 | (regcache_cpy): Call methods restore and cpy_no_passthrough. |
| 3803 | (regcache_cpy_no_passthrough): Change it to method |
| 3804 | cpy_no_passthrough. |
| 3805 | (regcache_register_status): Change it to method |
| 3806 | get_register_status. |
| 3807 | (regcache_invalidate): Change it to method invalidate. |
| 3808 | (regcache_thread_ptid_changed): Use methods ptid and set_ptid. |
| 3809 | (regcache_raw_update): Change it to method raw_update. |
| 3810 | (regcache_raw_read): Likewise. |
| 3811 | (regcache_raw_read_signed): Likewise. |
| 3812 | (regcache_raw_read_unsigned): Likewise. |
| 3813 | (regcache_raw_write_signed): Likewise. |
| 3814 | (regcache_raw_write_unsigned): Likewise. |
| 3815 | (regcache_cooked_read): Likewise. |
| 3816 | (regcache_cooked_read_value): Likewise. |
| 3817 | (regcache_cooked_read_signed): Likewise. |
| 3818 | (regcache_cooked_read_unsigned): Likewise. |
| 3819 | (regcache_cooked_write_signed): Likewise. |
| 3820 | (regcache_cooked_write_unsigned): Likewise. |
| 3821 | (regcache_raw_set_cached_value): Likewise. |
| 3822 | (regcache_raw_write): Likewise. |
| 3823 | (regcache_cooked_write): Likewise. |
| 3824 | (regcache_xfer_part): Likewise. |
| 3825 | (regcache_raw_read_part): Likewise. |
| 3826 | (regcache_raw_write_part): Likewise. |
| 3827 | (regcache_cooked_read_part): Likewise. |
| 3828 | (regcache_cooked_write_part): Likewise. |
| 3829 | (regcache_raw_supply): Likewise. |
| 3830 | (regcache_raw_collect): Likewise. |
| 3831 | (regcache_transfer_regset): Likewise. |
| 3832 | (regcache_supply_regset): Likewise. |
| 3833 | (regcache_collect_regset): Likewise. |
| 3834 | (regcache_debug_print_register): Likewise. |
| 3835 | (enum regcache_dump_what): Move it to regcache.h. |
| 3836 | (regcache_dump): Change it to method dump. |
| 3837 | * regcache.h (enum regcache_dump_what): New. |
| 3838 | (class regcache): New. |
| 3839 | * target.c (target_fetch_registers): Call method |
| 3840 | debug_print_register. |
| 3841 | (target_store_registers): Likewise. |
| 3842 | |
| 3843 | 2017-04-28 Simon Marchi <simon.marchi@ericsson.com> |
| 3844 | |
| 3845 | * windows-nat.c (struct lm_info_windows): Initialize field. |
| 3846 | (windows_make_so): Allocate lm_info_windows with new. |
| 3847 | (windows_free_so): Free lm_info_windows with delete. |
| 3848 | |
| 3849 | 2017-04-28 Simon Marchi <simon.marchi@ericsson.com> |
| 3850 | |
| 3851 | * solib-darwin.c (struct lm_info_darwin): Initialize field. |
| 3852 | (darwin_current_sos): Allocate lm_info_darwin with new, remove |
| 3853 | cleanup. |
| 3854 | (darwin_free_so): Free lm_info_darwin with delete. |
| 3855 | |
| 3856 | 2017-04-28 Simon Marchi <simon.marchi@ericsson.com> |
| 3857 | |
| 3858 | * solib-svr4.h (struct lm_info_svr4): Initialize fields. |
| 3859 | <l_addr_p>: Change type to bool. |
| 3860 | * solib-svr4.c (lm_info_read): Allocate lm_info_svr4 with new. |
| 3861 | (svr4_free_so): Free lm_info_svr4 with delete. |
| 3862 | (svr4_copy_library_list): Replace memcpy with call to copy |
| 3863 | constructor. |
| 3864 | (library_list_start_library, svr4_default_sos): Allocate |
| 3865 | lm_info_svr4 with new. |
| 3866 | |
| 3867 | 2017-04-28 Simon Marchi <simon.marchi@ericsson.com> |
| 3868 | |
| 3869 | * solib-target.c (struct lm_info_target): Add destructor, |
| 3870 | initialize fields. |
| 3871 | <name>: Change type to std::string. |
| 3872 | (library_list_start_library): Allocate lm_info_target with new. |
| 3873 | (solib_target_free_library_list): Free lm_info_target with |
| 3874 | delete. |
| 3875 | (solib_target_current_sos): Adapt to std::string. |
| 3876 | (solib_target_free_so): Free lm_info_target with delete. |
| 3877 | |
| 3878 | 2017-04-28 Simon Marchi <simon.marchi@ericsson.com> |
| 3879 | |
| 3880 | * solib-frv.c (struct lm_info_frv): Add destructor, initialize |
| 3881 | fields. |
| 3882 | (frv_current_sos): Allocate lm_info_frv with new. |
| 3883 | (frv_relocate_main_executable): Free lm_info_frv with delete, |
| 3884 | allocate with new. |
| 3885 | (frv_clear_solib, frv_free_so): Free lm_info_frv with delete. |
| 3886 | |
| 3887 | 2017-04-28 Simon Marchi <simon.marchi@ericsson.com> |
| 3888 | |
| 3889 | * solib-frv.c (struct lm_info_frv): Fix indentation. |
| 3890 | |
| 3891 | 2017-04-28 Simon Marchi <simon.marchi@ericsson.com> |
| 3892 | |
| 3893 | * solib-dsbt.c (struct lm_info_dsbt): Add destructor, initialize |
| 3894 | map field. |
| 3895 | (dsbt_current_sos): Allocate lm_info_dsbt with new. |
| 3896 | (dsbt_relocate_main_executable): Free lm_info_dsbt with delete |
| 3897 | and allocate with new. |
| 3898 | (dsbt_clear_solib, dsbt_free_so): Free lm_info_dsbt with delete. |
| 3899 | |
| 3900 | 2017-04-28 Simon Marchi <simon.marchi@ericsson.com> |
| 3901 | |
| 3902 | * solib-aix.c (struct lm_info_aix): Initialize fields in-class. |
| 3903 | <filename, member_name>: Change type to std::string. |
| 3904 | (solib_aix_new_lm_info, solib_aix_xfree_lm_info): Remove. |
| 3905 | (library_list_start_library): Allocate lm_info_aix with new. |
| 3906 | (solib_aix_free_library_list, solib_aix_free_so): Free with delete. |
| 3907 | (solib_aix_current_sos): Adapt to std::string, copy lm_info_aix |
| 3908 | with copy constructor. |
| 3909 | |
| 3910 | 2017-04-28 Simon Marchi <simon.marchi@ericsson.com> |
| 3911 | |
| 3912 | * solist.h (struct lm_info): Remove. |
| 3913 | (struct lm_info_base): New class. |
| 3914 | (struct so_list) <lm_info>: Change type to lm_info_base *. |
| 3915 | * nto-tdep.c (struct lm_info): Remove. |
| 3916 | (lm_addr): Adjust. |
| 3917 | * solib-aix.c (struct lm_info): Rename to ... |
| 3918 | (struct lm_info_aix): ... this. Extend lm_info_base. |
| 3919 | (lm_info_p): Rename to ... |
| 3920 | (lm_info_aix_p): ... this, and adjust. |
| 3921 | (solib_aix_new_lm_info, solib_aix_xfree_lm_info, |
| 3922 | solib_aix_parse_libraries, library_list_start_library, |
| 3923 | solib_aix_free_library_list, solib_aix_parse_libraries, |
| 3924 | solib_aix_get_library_list, |
| 3925 | solib_aix_relocate_section_addresses, solib_aix_free_so, |
| 3926 | solib_aix_get_section_offsets, |
| 3927 | solib_aix_solib_create_inferior_hook, solib_aix_current_sos): |
| 3928 | Adjust. |
| 3929 | (struct solib_aix_inferior_data) <library_list>: Adjust. |
| 3930 | * solib-darwin.c (struct lm_info): Rename to ... |
| 3931 | (struct lm_info_darwin): ... this. Extend lm_info_base. |
| 3932 | (darwin_current_sos, darwin_relocate_section_addresses): Adjust. |
| 3933 | * solib-dsbt.c (struct lm_info): Rename to ... |
| 3934 | (struct lm_info_dsbt): ... this. Extend lm_info_base. |
| 3935 | (struct dsbt_info) <main_executable_lm_info): Adjust. |
| 3936 | (dsbt_current_sos, dsbt_relocate_main_executable, dsbt_free_so, |
| 3937 | dsbt_relocate_section_addresses): Adjust. |
| 3938 | * solib-frv.c (struct lm_info): Rename to ... |
| 3939 | (struct lm_info_frv): ... this. Extend lm_info_base. |
| 3940 | (main_executable_lm_info): Adjust. |
| 3941 | (frv_current_sos, frv_relocate_main_executable, frv_free_so, |
| 3942 | frv_relocate_section_addresses, frv_fdpic_find_global_pointer, |
| 3943 | find_canonical_descriptor_in_load_object, |
| 3944 | frv_fdpic_find_canonical_descriptor): Adjust. |
| 3945 | * solib-svr4.c (struct lm_info): Move to solib-svr4.h, renamed |
| 3946 | to lm_info_svr4. |
| 3947 | (lm_info_read, lm_addr_check, svr4_keep_data_in_core, |
| 3948 | svr4_clear_so, svr4_copy_library_list, |
| 3949 | library_list_start_library, svr4_default_sos, svr4_read_so_list, |
| 3950 | svr4_current_sos, svr4_fetch_objfile_link_map, |
| 3951 | solist_update_incremental): Adjust. |
| 3952 | * solib-svr4.h (struct lm_info_svr4): Move here from |
| 3953 | solib-svr4.c. |
| 3954 | * solib-target.c (struct lm_info): Rename to ... |
| 3955 | (struct lm_info_target): ... this. Extend lm_info_base. |
| 3956 | (lm_info_p): Rename to ... |
| 3957 | (lm_info_target_p): ... this. |
| 3958 | (solib_target_parse_libraries, library_list_start_segment, |
| 3959 | library_list_start_section, library_list_start_library, |
| 3960 | library_list_end_library, solib_target_free_library_list, |
| 3961 | solib_target_current_sos, solib_target_free_so, |
| 3962 | solib_target_relocate_section_addresses): Adjust. |
| 3963 | * windows-nat.c (struct lm_info): Rename to ... |
| 3964 | (struct lm_info_windows): ... this. Extend lm_info_base. |
| 3965 | (windows_make_so, handle_load_dll, handle_unload_dll, |
| 3966 | windows_xfer_shared_libraries): Adjust. |
| 3967 | |
| 3968 | 2017-04-28 Simon Marchi <simon.marchi@ericsson.com> |
| 3969 | |
| 3970 | * solib-darwin.c (struct darwin_so_list): Remove. |
| 3971 | (darwin_current_sos): Allocate an so_list object instead of a |
| 3972 | darwin_so_list, separately allocate an lm_info object. |
| 3973 | (darwin_free_so): Free lm_info. |
| 3974 | |
| 3975 | 2017-04-28 John Baldwin <jhb@FreeBSD.org> |
| 3976 | |
| 3977 | * mips-tdep.c (print_gp_register_row): Replace printf_filtered |
| 3978 | with fprintf_filtered. |
| 3979 | |
| 3980 | 2017-04-28 Yao Qi <yao.qi@linaro.org> |
| 3981 | |
| 3982 | * regcache.c (regcache::regcache): New function. |
| 3983 | (regcache::~regcache): New function. |
| 3984 | (regcache_xmalloc_1): Remove. |
| 3985 | (regcache_xmalloc): Call new regcache. |
| 3986 | (regcache_xfree): Call delete regcache. |
| 3987 | (get_thread_arch_aspace_regcache): Call new regcache. |
| 3988 | |
| 3989 | 2017-04-28 Yao Qi <yao.qi@linaro.org> |
| 3990 | |
| 3991 | * mips-linux-nat.c (mips_linux_new_thread): Use ptid method |
| 3992 | lwp instead of ptid_get_lwp. |
| 3993 | |
| 3994 | 2017-04-28 Yao Qi <yao.qi@linaro.org> |
| 3995 | |
| 3996 | * mips-linux-nat.c (mips_linux_new_thread): Get lwpid from |
| 3997 | lwp_info instead of getting from inferior_ptid. |
| 3998 | |
| 3999 | 2017-04-27 Keith Seitz <keiths@redhat.com> |
| 4000 | |
| 4001 | * gdbtypes.c (LVALUE_REFERENCE_TO_RVALUE_BINDING_BADNESS) |
| 4002 | DIFFERENT_REFERENCE_TYPE_BADNESS): Remove. |
| 4003 | (CV_CONVERSION_BADNESS): Define. |
| 4004 | (rank_one_type): Remove overly restrictive rvalue reference |
| 4005 | rank checks. |
| 4006 | Add cv-qualifier checks and subranks for type equality. |
| 4007 | * gdbtypes.h (REFERENCE_CONVERSION_RVALUE, |
| 4008 | REFERENCE_CONVERSION_CONST_LVALUE, CV_CONVERSION_BADNESS, |
| 4009 | CV_CONVERSION_CONST, CV_CONVERSION_VOLATILE): Declare. |
| 4010 | |
| 4011 | 2017-04-27 Simon Marchi <simon.marchi@ericsson.com> |
| 4012 | |
| 4013 | * python/py-inferior.c (inferior_to_inferior_object): Increment reference |
| 4014 | count when creating the object. |
| 4015 | |
| 4016 | 2017-04-27 Sangamesh Mallayya <sangamesh.swamy@in.ibm.com> |
| 4017 | Ulrich Weigand <uweigand@de.ibm.com> |
| 4018 | |
| 4019 | * xcoffread.c (read_xcoff_symtab): Read correct function auxiliary |
| 4020 | entry if xlc -qfuncsect or gcc -ffunction-sections compiler option |
| 4021 | is used in AIX. |
| 4022 | (read_xcoff_symtab): Handle C_WEAKEXT storage class. |
| 4023 | (process_xcoff_symbol): Likewise. |
| 4024 | (scan_xcoff_symtab): Likewise. |
| 4025 | |
| 4026 | 2017-04-26 Alan Hayward <alan.hayward@arm.com> |
| 4027 | |
| 4028 | * ia64-tdep.c (examine_prologue): Use get_frame_register_unsigned. |
| 4029 | (ia64_sigtramp_frame_prev_register): Use read_memory_unsigned_integer. |
| 4030 | (ia64_access_reg): Use get_frame_register_unsigned. |
| 4031 | (ia64_access_rse_reg): Likewise. |
| 4032 | (ia64_libunwind_frame_prev_register): Likewise. |
| 4033 | |
| 4034 | 2017-04-26 Jiong Wang <jiong.wang@arm.com> |
| 4035 | |
| 4036 | * gdbarch.sh: New gdbarch method execute_dwarf_cfa_vendor_op. |
| 4037 | * gdbarch.c: Regenerated. |
| 4038 | * gdbarch.h: Regenerated. |
| 4039 | * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Made the |
| 4040 | visibility external. |
| 4041 | (execute_cfa_program): Call execute_dwarf_cfa_vendor_op for CFI |
| 4042 | between DW_CFA_lo_user and DW_CFA_high_user inclusive. |
| 4043 | (enum cfa_how_kind): Move to ... |
| 4044 | (struct dwarf2_frame_state_reg_info): Likewise. |
| 4045 | (struct dwarf2_frame_state): Likewise. |
| 4046 | * dwarf2-frame.h: ... here. |
| 4047 | (dwarf2_frame_state_alloc_regs): New declaration. |
| 4048 | * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): New function. |
| 4049 | (sparc32_gdbarch_init): Register execute_dwarf_cfa_vendor_op hook. |
| 4050 | |
| 4051 | 2017-04-26 Alan Hayward <alan.hayward@arm.com> |
| 4052 | |
| 4053 | * xtensa-tdep.c (xtensa_pseudo_register_read): Use |
| 4054 | regcache_raw_read_unsigned. |
| 4055 | (xtensa_pseudo_register_write): Likewise. |
| 4056 | |
| 4057 | 2017-04-26 Alan Hayward <alan.hayward@arm.com> |
| 4058 | |
| 4059 | * nds32-tdep.c (nds32_pseudo_register_read): Abort on errors. |
| 4060 | (nds32_pseudo_register_write): Likewise. |
| 4061 | |
| 4062 | 2017-04-25 Yao Qi <yao.qi@linaro.org> |
| 4063 | |
| 4064 | * regcache.c (struct regcache) <readonly_p>: Change its type |
| 4065 | to bool. |
| 4066 | (regcache_xmalloc_1): Update parameter type and callers update. |
| 4067 | |
| 4068 | 2017-04-25 Yao Qi <yao.qi@linaro.org> |
| 4069 | |
| 4070 | * aarch64-tdep.c (aarch64_gdbarch_init): Don't call |
| 4071 | set_gdbarch_wchar_bit. |
| 4072 | * arm-tdep.c (arm_gdbarch_init): Likewise. |
| 4073 | |
| 4074 | 2017-04-25 Pedro Alves <palves@redhat.com> |
| 4075 | |
| 4076 | * common/poison.h [!HAVE_IS_TRIVIALLY_COPYABLE] (IsRelocatable) |
| 4077 | (BothAreRelocatable, memcopy, memmove): Don't define. |
| 4078 | * common/traits.h (__has_feature, HAVE_IS_TRIVIALLY_COPYABLE): New |
| 4079 | macros. |
| 4080 | |
| 4081 | 2017-04-25 Pedro Alves <palves@redhat.com> |
| 4082 | |
| 4083 | * common/common-defs.h: Include "common/poison.h". |
| 4084 | * common/function-view.h: (Not, Or, Requires): Move to traits.h |
| 4085 | and adjust. |
| 4086 | * common/poison.h: New file. |
| 4087 | * common/traits.h: Include <type_traits>. |
| 4088 | (Not, Or, Requires): New, moved from common/function-view.h. |
| 4089 | |
| 4090 | 2017-04-25 Pedro Alves <palves@redhat.com> |
| 4091 | |
| 4092 | * breakpoint.h (struct breakpoint): In-class initialize all |
| 4093 | fields. Make boolean fields "bool". |
| 4094 | * breakpoint.c (init_raw_breakpoint_without_location): Remove |
| 4095 | memset call and initializations no longer necessary. |
| 4096 | |
| 4097 | 2017-04-25 Pedro Alves <palves@redhat.com> |
| 4098 | |
| 4099 | * btrace.c (pt_btrace_insn_flags): Change parameter type to |
| 4100 | reference. |
| 4101 | (pt_btrace_insn): New function. |
| 4102 | (ftrace_add_pt): Remove memset call and use pt_btrace_insn. |
| 4103 | |
| 4104 | 2017-04-25 Pedro Alves <palves@redhat.com> |
| 4105 | |
| 4106 | * ada-lang.c (ada_catchpoint_location): Now a "class". Remove |
| 4107 | "base" field and inherit from "bp_location" instead. Add |
| 4108 | non-default ctor. |
| 4109 | (allocate_location_exception): Use new non-default ctor. |
| 4110 | * breakpoint.c (get_first_locp_gte_addr): Remove memset call. |
| 4111 | (init_bp_location): Convert to ... |
| 4112 | (bp_location::bp_location): ... this new ctor, and remove memset |
| 4113 | call. |
| 4114 | (base_breakpoint_allocate_location): Use the new non-default ctor. |
| 4115 | * breakpoint.h (bp_location): Now a class. Declare default and |
| 4116 | non-default ctors. In-class initialize all members. |
| 4117 | (init_bp_location): Remove declaration. |
| 4118 | |
| 4119 | 2017-04-25 Pedro Alves <palves@redhat.com> |
| 4120 | |
| 4121 | * common/enum-flags.h (enum_flags): Don't implement copy ctor and |
| 4122 | assignment operator. |
| 4123 | |
| 4124 | 2017-04-24 Yao Qi <yao.qi@linaro.org> |
| 4125 | |
| 4126 | * doublest.c (convert_doublest_to_floatformat): Call |
| 4127 | floatformat_totalsize_bytes. |
| 4128 | |
| 4129 | 2017-04-22 Tom Tromey <tom@tromey.com> |
| 4130 | |
| 4131 | * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use |
| 4132 | ui_out_emit_list. |
| 4133 | * stack.c (print_frame): Use ui_out_emit_list. |
| 4134 | * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use |
| 4135 | ui_out_emit_list. |
| 4136 | * mi/mi-main.c (print_one_inferior) |
| 4137 | (mi_cmd_data_list_register_names) |
| 4138 | (mi_cmd_data_list_register_values, mi_cmd_list_features) |
| 4139 | (mi_cmd_list_target_features, mi_cmd_trace_frame_collected): Use |
| 4140 | ui_out_emit_list. |
| 4141 | * mi/mi-interp.c (mi_on_normal_stop_1): Use ui_out_emit_list. |
| 4142 | (mi_output_solib_attribs): Use ui_out_emit_list, |
| 4143 | ui_out_emit_tuple. |
| 4144 | * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_list. |
| 4145 | * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames) |
| 4146 | (mi_cmd_stack_list_args, list_args_or_locals): Use |
| 4147 | ui_out_emit_list. |
| 4148 | * disasm.c (do_assembly_only): Use ui_out_emit_list. |
| 4149 | * breakpoint.c (print_solib_event, output_thread_groups): Use |
| 4150 | ui_out_emit_list. |
| 4151 | |
| 4152 | 2017-04-22 Tom Tromey <tom@tromey.com> |
| 4153 | |
| 4154 | * mi/mi-main.c (print_variable_or_computed): Use ui_out_emit_tuple. |
| 4155 | * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_tuple. |
| 4156 | * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_out_emit_tuple. |
| 4157 | |
| 4158 | 2017-04-22 Tom Tromey <tom@tromey.com> |
| 4159 | |
| 4160 | * tracepoint.c (tvariables_info_1) |
| 4161 | (print_one_static_tracepoint_marker): Use ui_out_emit_tuple. |
| 4162 | |
| 4163 | 2017-04-22 Tom Tromey <tom@tromey.com> |
| 4164 | |
| 4165 | * stack.c (print_frame_arg): Use ui_out_emit_tuple, |
| 4166 | annotate_arg_emitter. |
| 4167 | * breakpoint.c (print_mention_watchpoint) |
| 4168 | (print_mention_masked_watchpoint): Use ui_out_emit_tuple. |
| 4169 | * annotate.h (struct annotate_arg_emitter): New. |
| 4170 | |
| 4171 | 2017-04-22 Tom Tromey <tom@tromey.com> |
| 4172 | |
| 4173 | * record-btrace.c (record_btrace_insn_history) |
| 4174 | (record_btrace_insn_history_range, record_btrace_call_history) |
| 4175 | (record_btrace_call_history_range): Use ui_out_emit_tuple. |
| 4176 | * thread.c (do_captured_list_thread_ids, print_thread_info_1): Use |
| 4177 | ui_out_emit_tuple. |
| 4178 | * stack.c (print_frame_info): Use ui_out_emit_tuple. |
| 4179 | * solib.c (info_sharedlibrary_command): Use ui_out_emit_tuple. |
| 4180 | * skip.c (skip_info): Use ui_out_emit_tuple. |
| 4181 | * remote.c (show_remote_cmd): Use ui_out_emit_tuple. |
| 4182 | * progspace.c (print_program_space): Use ui_out_emit_tuple. |
| 4183 | * probe.c (info_probes_for_ops): Use ui_out_emit_tuple. |
| 4184 | * osdata.c (info_osdata): Use ui_out_emit_tuple. |
| 4185 | * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use |
| 4186 | ui_out_emit_tuple. |
| 4187 | * mi/mi-main.c (print_one_inferior, list_available_thread_groups) |
| 4188 | (output_register, mi_cmd_data_read_memory) |
| 4189 | (mi_cmd_data_read_memory_bytes, mi_load_progress) |
| 4190 | (mi_cmd_trace_frame_collected): Use ui_out_emit_tuple. |
| 4191 | * mi/mi-cmd-var.c (mi_cmd_var_list_children, varobj_update_one): |
| 4192 | Use ui_out_emit_tuple. |
| 4193 | * mi/mi-cmd-stack.c (mi_cmd_stack_list_args): Use |
| 4194 | ui_out_emit_tuple. |
| 4195 | * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions) |
| 4196 | (mi_cmd_info_gdb_mi_command): Use ui_out_emit_tuple. |
| 4197 | * linux-thread-db.c (info_auto_load_libthread_db): Use |
| 4198 | ui_out_emit_tuple. |
| 4199 | * inferior.c (print_inferior): Use ui_out_emit_tuple. |
| 4200 | * gdb_bfd.c (print_one_bfd): Use ui_out_emit_tuple. |
| 4201 | * disasm.c (do_mixed_source_and_assembly_deprecated) |
| 4202 | (do_mixed_source_and_assembly): Use ui_out_emit_tuple. |
| 4203 | * cp-abi.c (list_cp_abis): Use ui_out_emit_tuple. |
| 4204 | * cli/cli-setshow.c (cmd_show_list): Use ui_out_emit_tuple. |
| 4205 | * breakpoint.c (print_one_breakpoint_location) |
| 4206 | (print_one_breakpoint): Use ui_out_emit_tuple. |
| 4207 | * auto-load.c (print_script, info_auto_load_cmd): Use |
| 4208 | ui_out_emit_tuple. |
| 4209 | * ada-tasks.c (print_ada_task_info): Use ui_out_emit_tuple. |
| 4210 | |
| 4211 | 2017-04-21 Simon Marchi <simon.marchi@ericsson.com> |
| 4212 | |
| 4213 | * thread.c (print_thread_info_1): Remove dead code. |
| 4214 | |
| 4215 | 2017-04-21 Jan Kratochvil <jan.kratochvil@redhat.com> |
| 4216 | |
| 4217 | * aarch64-tdep.c (selftests::aarch64_process_record_test): Make it #if |
| 4218 | GDB_SELF_TEST. |
| 4219 | * arm-tdep.c (selftests::arm_record_test): Likewise. |
| 4220 | |
| 4221 | 2017-04-21 Yao Qi <yao.qi@linaro.org> |
| 4222 | |
| 4223 | * regcache.c (regcache_restore): Remove argument 2. Replace |
| 4224 | argument 3 with regcache. Get register status from |
| 4225 | src->register_status and get register contents from |
| 4226 | register_buffer (src, regnum). |
| 4227 | (regcache_cpy): Update. |
| 4228 | |
| 4229 | 2017-04-19 Pedro Alves <palves@redhat.com> |
| 4230 | |
| 4231 | * gdbthread.h (thread): Add missing closing parenthesis in |
| 4232 | comment. |
| 4233 | |
| 4234 | 2017-04-19 Pedro Alves <palves@redhat.com> |
| 4235 | |
| 4236 | * common/refcounted-object.h: New file. |
| 4237 | * gdbthread.h: Include "common/refcounted-object.h". |
| 4238 | (thread_info): Inherit from refcounted_object and add comments. |
| 4239 | (thread_info::incref, thread_info::decref) |
| 4240 | (thread_info::m_refcount): Delete. |
| 4241 | (thread_info::deletable): Use the refcounted_object::refcount() |
| 4242 | method. |
| 4243 | * inferior.c (current_inferior_): Add comment. |
| 4244 | (set_current_inferior): Increment/decrement refcounts. |
| 4245 | (prune_inferiors, remove_inferior_command): Skip inferiors marked |
| 4246 | not-deletable instead of comparing with the current inferior. |
| 4247 | (initialize_inferiors): Increment the initial inferior's refcount. |
| 4248 | * inferior.h (struct inferior): Forward declare. |
| 4249 | Include "common/refcounted-object.h". |
| 4250 | (current_inferior, set_current_inferior): Move declaration to |
| 4251 | before struct inferior's definition, and fix comment. |
| 4252 | (inferior): Inherit from refcounted_object. Add comments. |
| 4253 | * thread.c (switch_to_thread_no_regs): Reference the thread's |
| 4254 | inferior pointer directly instead of doing a ptid lookup. |
| 4255 | (switch_to_no_thread): New function. |
| 4256 | (switch_to_thread(thread_info *)): New function, factored out |
| 4257 | from ... |
| 4258 | (switch_to_thread(ptid_t)): ... this. |
| 4259 | (restore_current_thread): Delete. |
| 4260 | (current_thread_cleanup): Remove 'inf_id' and 'was_removable' |
| 4261 | fields, and add 'inf' field. |
| 4262 | (do_restore_current_thread_cleanup): Check whether old->inf is |
| 4263 | alive instead of looking up an inferior by ptid. Use |
| 4264 | switch_to_thread and switch_to_no_thread. |
| 4265 | (restore_current_thread_cleanup_dtor): Use old->inf directly |
| 4266 | instead of lookup up an inferior by id. Decref the inferior. |
| 4267 | Don't restore 'removable'. |
| 4268 | (make_cleanup_restore_current_thread): Same the inferior pointer |
| 4269 | in old, instead of the inferior number. Incref the inferior. |
| 4270 | Don't save/clear 'removable'. |
| 4271 | |
| 4272 | 2017-04-19 Pedro Alves <palves@redhat.com> |
| 4273 | |
| 4274 | * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add |
| 4275 | unittests/scoped_restore-selftests.c. |
| 4276 | (SUBDIR_UNITTESTS_OBS): Add scoped_restore-selftests.o. |
| 4277 | * common/scoped_restore.h (scoped_restore_base): Make "class". |
| 4278 | (scoped_restore_base::release): New public method. |
| 4279 | (scoped_restore_base::scoped_restore_base): New protected ctor. |
| 4280 | (scoped_restore_base::m_saved_var): New protected field. |
| 4281 | (scoped_restore_tmpl::scoped_restore_tmpl(T*)): Initialize the |
| 4282 | scoped_restore_base base class instead of m_saved_var directly. |
| 4283 | (scoped_restore_tmpl::scoped_restore_tmpl(T*, T2)): Likewise. |
| 4284 | (scoped_restore_tmpl::scoped_restore_tmpl(const |
| 4285 | scoped_restore_tmpl<T>&)): Likewise. |
| 4286 | (scoped_restore_tmpl::~scoped_restore_tmpl): Use the saved_var |
| 4287 | method. |
| 4288 | (scoped_restore_tmpl::saved_var): New method. |
| 4289 | (scoped_restore_tmpl::m_saved_var): Delete. |
| 4290 | * inferior.h (inferior::detaching): Now a bool. |
| 4291 | * infrun.c (prepare_for_detach): Use a scoped_restore instead of a |
| 4292 | cleanup. |
| 4293 | * unittests/scoped_restore-selftests.c: New file. |
| 4294 | |
| 4295 | 2017-04-19 Pedro Alves <palves@redhat.com> |
| 4296 | |
| 4297 | * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS): |
| 4298 | Re-sort in alphabetic order. |
| 4299 | |
| 4300 | 2017-04-18 Pedro Alves <palves@redhat.com> |
| 4301 | |
| 4302 | * xml-support.c (obstack_xml_printf): Delete. |
| 4303 | * xml-support.h (obstack_xml_printf): Delete. |
| 4304 | |
| 4305 | 2017-04-18 Pedro Alves <palves@redhat.com> |
| 4306 | |
| 4307 | * xml-support.c (gdb_xml_parser) <use_dtd, dtd_name, parse, |
| 4308 | vdebug, verror, body_text, start_element, end_element, name, |
| 4309 | user_data, set_is_xinclude, set_error, expat_parser>: New methods. |
| 4310 | <name, user_data, expat_parser, scopes, error, last_line, dtd_name, |
| 4311 | is_xinclude>: Make private and add m_ prefix. |
| 4312 | (gdb_xml_parser::body_text): New method, based on ... |
| 4313 | (gdb_xml_body_text): ... this. Adjust. |
| 4314 | (gdb_xml_parser::vdebug): New method, based on ... |
| 4315 | (gdb_xml_debug): ... this. Adjust. |
| 4316 | (gdb_xml_parser::verror): New method, based on ... |
| 4317 | (gdb_xml_error): ... this. Adjust. |
| 4318 | (gdb_xml_parser::start_element): New method, based on ... |
| 4319 | (gdb_xml_start_element): ... this. Adjust. |
| 4320 | (gdb_xml_start_element_wrapper): Defer to |
| 4321 | gdb_xml_parser::start_element and gdb_xml_parser::set_error. |
| 4322 | (gdb_xml_parser::end_element): New method, based on ... |
| 4323 | (gdb_xml_end_element_wrapper): ... this. Adjust. |
| 4324 | (gdb_xml_parser::~gdb_xml_parser): Adjust. |
| 4325 | (gdb_xml_parser::gdb_xml_parser): Adjust to field renames. |
| 4326 | (gdb_xml_parser::use_dtd): New method, based on ... |
| 4327 | (gdb_xml_use_dtd): ... this. Adjust. |
| 4328 | (gdb_xml_parser::parse): New method, based on ... |
| 4329 | (gdb_xml_parse): ... this. Adjust. |
| 4330 | (gdb_xml_parse_quick): Adjust to call the parser's parse method. |
| 4331 | (xinclude_start_include): Adjust to call the parser's name method. |
| 4332 | (xml_xinclude_default, xml_xinclude_start_doctype) |
| 4333 | (xml_xinclude_end_doctype): Adjust to call the parser's user_data |
| 4334 | method. |
| 4335 | (xml_process_xincludes): Adjust to call parser methods. |
| 4336 | * xml-support.h (gdb_xml_use_dtd, gdb_xml_parse): Delete |
| 4337 | declarations. |
| 4338 | |
| 4339 | 2017-04-18 Pedro Alves <palves@redhat.com> |
| 4340 | |
| 4341 | * tracefile-tfile.c (tfile_write_tdesc): Adjust to use |
| 4342 | gdb::optional<std::string>. |
| 4343 | * xml-support.c: Include <string>. |
| 4344 | (scope_level::scope_level(scope_level &&)) |
| 4345 | (scope_level::~scope_level): Delete. |
| 4346 | (scope_level::body): Now a std::string. |
| 4347 | (gdb_xml_body_text, gdb_xml_end_element): Adjust. |
| 4348 | (xinclude_parsing_data::xinclude_parsing_data): Add 'output' |
| 4349 | parameter. |
| 4350 | (xinclude_parsing_data::~xinclude_parsing_data): Delete. |
| 4351 | (xinclude_parsing_data::output): Now a std::string reference. |
| 4352 | (xinclude_start_include): Adjust. |
| 4353 | (xml_xinclude_default): Adjust. |
| 4354 | (xml_process_xincludes): Add 'output' parameter, and return bool. |
| 4355 | * xml-support.h (xml_process_xincludes): Add 'output' parameter, |
| 4356 | and return bool. |
| 4357 | * xml-tdesc.c: Include <unordered_map> and <string>. |
| 4358 | (tdesc_xml_cache): Delete. |
| 4359 | (tdesc_xml_cache_s): Delete. |
| 4360 | (xml_cache): Now an std::unordered_map. |
| 4361 | (tdesc_parse_xml): Adjust to use std::string and unordered_map. |
| 4362 | (target_fetch_description_xml): Change return type to |
| 4363 | gdb::optional<std::string>, and adjust. |
| 4364 | * xml-tdesc.h: Include "common/gdb_optional.h" and <string>. |
| 4365 | (target_fetch_description_xml): Change return type to |
| 4366 | gdb::optional<std::string>. |
| 4367 | |
| 4368 | 2017-04-18 Pedro Alves <palves@redhat.com> |
| 4369 | |
| 4370 | * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add |
| 4371 | unittests/optional-selftests.c. |
| 4372 | (SUBDIR_UNITTESTS_OBS): Add optional-selftests.o. |
| 4373 | * unittests/optional-selftests.c: New file. |
| 4374 | * unittests/optional/assignment/1.cc: New file. |
| 4375 | * unittests/optional/assignment/2.cc: New file. |
| 4376 | * unittests/optional/assignment/3.cc: New file. |
| 4377 | * unittests/optional/assignment/4.cc: New file. |
| 4378 | * unittests/optional/assignment/5.cc: New file. |
| 4379 | * unittests/optional/assignment/6.cc: New file. |
| 4380 | * unittests/optional/assignment/7.cc: New file. |
| 4381 | * unittests/optional/cons/copy.cc: New file. |
| 4382 | * unittests/optional/cons/default.cc: New file. |
| 4383 | * unittests/optional/cons/move.cc: New file. |
| 4384 | * unittests/optional/cons/value.cc: New file. |
| 4385 | * unittests/optional/in_place.cc: New file. |
| 4386 | * unittests/optional/observers/1.cc: New file. |
| 4387 | * unittests/optional/observers/2.cc: New file. |
| 4388 | |
| 4389 | 2017-04-18 Pedro Alves <palves@redhat.com> |
| 4390 | |
| 4391 | * common/gdb_optional.h: Include common/traits.h. |
| 4392 | (in_place_t): New type. |
| 4393 | (in_place): New constexpr variable. |
| 4394 | (optional::optional): Remove member initialization of |
| 4395 | m_instantiated. |
| 4396 | (optional::optional(in_place_t...)): New constructor. |
| 4397 | (optional::~optional): Use reset. |
| 4398 | (optional::optional(const optional&)): New. |
| 4399 | (optional::optional(const optional&&)): New. |
| 4400 | (optional::optional(T &)): New. |
| 4401 | (optional::optional(T &&)): New. |
| 4402 | (operator::operator=(const optional &)): New. |
| 4403 | (operator::operator=(optional &&)): New. |
| 4404 | (operator::operator= (const T &)) |
| 4405 | (operator::operator= (T &&)) |
| 4406 | (operator::emplace (Args &&... args)): Return a T&. Use reset. |
| 4407 | (operator::reset): New. |
| 4408 | (operator::m_instantiated):: Add in-class initializer. |
| 4409 | * common/traits.h: Include <type_traits>. |
| 4410 | (struct And): New types. |
| 4411 | |
| 4412 | 2017-04-18 Pedro Alves <palves@redhat.com> |
| 4413 | |
| 4414 | * xml-support.c: Include <vector>. |
| 4415 | (scope_level::scope_level(const gdb_xml_element *)) |
| 4416 | (scope_level::scope_level(scope_level&&)): New. |
| 4417 | (scope_level::~scope_level): New. |
| 4418 | (scope_level_s): Delete. |
| 4419 | (gdb_xml_parser::scopes): Now a std::vector. |
| 4420 | (gdb_xml_body_text, gdb_xml_start_element, gdb_xml_end_element): |
| 4421 | Use std::vector. |
| 4422 | (gdb_xml_parser::~gdb_xml_parser): Remove now unnecessary |
| 4423 | scope cleanup code. |
| 4424 | (gdb_xml_parser::gdb_xml_parser): Remove explicit initialization |
| 4425 | of the scopes member. Use std::vector::emplace_back. |
| 4426 | |
| 4427 | 2017-04-18 Pedro Alves <palves@redhat.com> |
| 4428 | |
| 4429 | * xml-support.c (gdb_xml_parser): Add ctor/dtor. Make is_xinclude |
| 4430 | a bool. |
| 4431 | (gdb_xml_end_element): Change type of first parameter. |
| 4432 | (gdb_xml_cleanup): Rename to ... |
| 4433 | (gdb_xml_parser::~gdb_xml_parser): ... this. |
| 4434 | (gdb_xml_create_parser_and_cleanup): Delete with ... |
| 4435 | (gdb_xml_parser::gdb_xml_parser): ... creation parts factored out |
| 4436 | to this new ctor. |
| 4437 | (gdb_xml_parse_quick): Create a local gdb_xml_parser instead of |
| 4438 | using gdb_xml_create_parser_and_cleanup. |
| 4439 | (xinclude_parsing_data): Add ctor/dtor. |
| 4440 | (xml_xinclude_cleanup): Delete. |
| 4441 | (xml_process_xincludes): Create a local xinclude_parsing_data |
| 4442 | instead of heap-allocating one. Create a local gdb_xml_parser |
| 4443 | instead of heap-allocating one with |
| 4444 | gdb_xml_create_parser_and_cleanup. |
| 4445 | |
| 4446 | 2017-04-18 John Baldwin <jhb@FreeBSD.org> |
| 4447 | |
| 4448 | PR threads/20743 |
| 4449 | * fbsd-nat.c (resume_one_thread_cb): Remove. |
| 4450 | (resume_all_threads_cb): Remove. |
| 4451 | (fbsd_resume): Use ALL_NON_EXITED_THREADS instead of |
| 4452 | iterate_over_threads. |
| 4453 | |
| 4454 | 2017-04-17 Joel Brobecker <brobecker@adacore.com> |
| 4455 | |
| 4456 | * NEWS: Create a new section for the next release branch. |
| 4457 | Rename the section of the current branch, now that it has |
| 4458 | been cut. |
| 4459 | |
| 4460 | 2017-04-17 Joel Brobecker <brobecker@adacore.com> |
| 4461 | |
| 4462 | GDB 8.0 branch created (725bf5cf125783c2a7ca4ab63d3768e220bab2db): |
| 4463 | * version.in: Bump version to 8.0.50.DATE-git. |
| 4464 | |
| 4465 | 2017-04-13 Sergio Durigan Junior <sergiodj@redhat.com> |
| 4466 | |
| 4467 | PR gdb/21385 |
| 4468 | * windows-nat.c (windows_create_inferior): Declare 'allargs' |
| 4469 | independently of the host, and fix build breakage on Cygwin. |
| 4470 | |
| 4471 | 2017-04-13 Pedro Alves <palves@redhat.com> |
| 4472 | |
| 4473 | * inferior.c (free_inferior): Convert to ... |
| 4474 | (inferior::~inferior): ... this dtor. |
| 4475 | (inferior::inferior): New ctor, factored out from ... |
| 4476 | (add_inferior_silent): ... here. Allocate the inferior with a new |
| 4477 | expression. |
| 4478 | (delete_inferior): Call delete instead of free_inferior. |
| 4479 | * inferior.h (gdb_environ, continuation): Forward declare. |
| 4480 | (inferior): Now a class. Add in-class initialization to all |
| 4481 | members. Make boolean fields bool, except 'detaching'. |
| 4482 | (inferior::inferior): New explicit ctor. |
| 4483 | (inferior::~inferior): New. |
| 4484 | |
| 4485 | 2017-04-13 Pedro Alves <palves@redhat.com> |
| 4486 | |
| 4487 | * inferior.c (init_inferior_list): Delete. |
| 4488 | * inferior.h (init_inferior_list): Delete. |
| 4489 | |
| 4490 | 2017-04-13 Pedro Alves <palves@redhat.com> |
| 4491 | |
| 4492 | PR threads/13217 |
| 4493 | * gdb.threads/threadapply.exp (thr_apply_detach): New procedure. |
| 4494 | (top level): Call it twice, with different thread sets. |
| 4495 | |
| 4496 | 2017-04-13 Pedro Alves <palves@redhat.com> |
| 4497 | |
| 4498 | * thread.c: Include <algorithm>. |
| 4499 | (thread_array_cleanup): Delete. |
| 4500 | (scoped_inc_dec_ref): New class. |
| 4501 | (live_threads_count): New function. |
| 4502 | (set_thread_refcount): Delete. |
| 4503 | (tp_array_compar_ascending): Now a bool. |
| 4504 | (tp_array_compar): Convert to a std::sort comparison function. |
| 4505 | (thread_apply_all_command): Use std::vector and scoped_inc_dec_ref |
| 4506 | and live_threads_count. |
| 4507 | |
| 4508 | 2017-04-13 Pedro Alves <palves@redhat.com> |
| 4509 | |
| 4510 | * infrun.c (follow_fork_inferior): Also switch the current |
| 4511 | inferior. |
| 4512 | |
| 4513 | 2017-04-13 Pedro Alves <palves@redhat.com> |
| 4514 | |
| 4515 | * breakpoint.c (watch_command_1): Save watchpoint-frame info |
| 4516 | before calling create_internal_breakpoint. |
| 4517 | |
| 4518 | 2017-04-13 Pedro Alves <palves@redhat.com> |
| 4519 | |
| 4520 | * fork-child.c (execv_argv): New class. |
| 4521 | (breakup_args): Refactored as ... |
| 4522 | (execv_argv::init_for_no_shell): .. this method of execv_argv. |
| 4523 | Copy arguments to storage and replace separators with NULL |
| 4524 | terminators in place. |
| 4525 | (escape_bang_in_quoted_argument): Adjust to return bool. |
| 4526 | (execv_argv::execv_argv): New ctor. |
| 4527 | (execv_argv::init_for_shell): New method, factored out from |
| 4528 | fork_inferior. Don't strdup strings into the vector. |
| 4529 | (fork_inferior): Eliminate "shell" local and use execv_argv. Use |
| 4530 | Remove free_vector_argv call. |
| 4531 | |
| 4532 | 2017-04-13 Yao Qi <yao.qi@linaro.org> |
| 4533 | |
| 4534 | * rx-tdep.c (rx_fpsw_type): Check tdep->rx_fpsw_type instead of |
| 4535 | tdep->rx_psw_type. |
| 4536 | |
| 4537 | 2017-04-13 Yao Qi <yao.qi@linaro.org> |
| 4538 | |
| 4539 | * rl78-tdep.c (rl78_gdbarch_init): Use XCNEW instead of XNEW. |
| 4540 | * rx-tdep.c (rx_gdbarch_init): Likewise. |
| 4541 | |
| 4542 | 2017-04-13 Pedro Alves <palves@redhat.com> |
| 4543 | |
| 4544 | * breakpoint.h (struct breakpoint): Reindent. |
| 4545 | |
| 4546 | 2017-04-13 Pedro Alves <palves@redhat.com> |
| 4547 | |
| 4548 | * breakpoint.c (bp_location): Rename to ... |
| 4549 | (bp_locations): ... this. All references updated. |
| 4550 | (bp_location_count): Rename to ... |
| 4551 | (bp_locations_count): ... this. All references updated. |
| 4552 | (bp_location_placed_address_before_address_max): Rename to ... |
| 4553 | (bp_locations_placed_address_before_address_max): ... this. All |
| 4554 | references updated. |
| 4555 | (bp_location_shadow_len_after_address_max): Rename to ... |
| 4556 | (bp_locations_shadow_len_after_address_max): ... this. All |
| 4557 | references updated. |
| 4558 | (bp_location_compare_addrs): Rename to ... |
| 4559 | (bp_locations_compare_addrs): ... this. All references updated. |
| 4560 | (bp_location_compare):Rename to ... |
| 4561 | (bp_locations_compare): ... this. All references updated. |
| 4562 | (bp_location_target_extensions_update): Rename to ... |
| 4563 | (bp_locations_target_extensions_update): ... this. All references |
| 4564 | updated. |
| 4565 | |
| 4566 | 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com> |
| 4567 | |
| 4568 | * Makefile.in (HFILES_NO_SRCDIR): Add "common/gdb_termios.h". |
| 4569 | * common/common.m4: Check headers 'termios.h', 'termio.h' and |
| 4570 | 'sgtty.h'. |
| 4571 | * common/gdb_termios.h: New file, with parts of "terminal.h". |
| 4572 | * inflow.c: Include "gdb_termios.h". |
| 4573 | * ser-unix.c: Include "gdb_termios.h". |
| 4574 | * terminal.h: Move terminal-related defines to |
| 4575 | "common/gdb_termios.h". |
| 4576 | |
| 4577 | 2017-04-12 Tom Tromey <tom@tromey.com> |
| 4578 | |
| 4579 | * probe.c (parse_probes): Update. |
| 4580 | * location.h (delete_event_location): Don't declare. |
| 4581 | (event_location_deleter::operator()): Update. |
| 4582 | * location.c (event_location_deleter::operator()): Rename from |
| 4583 | delete_event_location. |
| 4584 | * linespec.h (linespec_result) <location>: Change type to |
| 4585 | event_location_up. |
| 4586 | * linespec.c (canonicalize_linespec, event_location_to_sals) |
| 4587 | (decode_objc): Update. |
| 4588 | (linespec_result): Don't call delete_event_location. |
| 4589 | * breakpoint.c (create_breakpoints_sal) |
| 4590 | (bkpt_probe_create_sals_from_location) |
| 4591 | (strace_marker_create_sals_from_location): Update. |
| 4592 | |
| 4593 | 2017-04-12 Tom Tromey <tom@tromey.com> |
| 4594 | |
| 4595 | * linespec.h (struct linespec_result): Add constructor and |
| 4596 | destructor. |
| 4597 | (init_linespec_result, destroy_linespec_result) |
| 4598 | (make_cleanup_destroy_linespec_result): Don't declare. |
| 4599 | * linespec.c (init_linespec_result): Remove. |
| 4600 | (linespec_result::~linespec_result): Rename from |
| 4601 | destroy_linespec_result. Update. |
| 4602 | (cleanup_linespec_result, make_cleanup_destroy_linespec_result): |
| 4603 | Remove. |
| 4604 | * breakpoint.c (create_breakpoint, break_range_command) |
| 4605 | (decode_location_default): Update. |
| 4606 | * ax-gdb.c (agent_command_1): Update. |
| 4607 | |
| 4608 | 2017-04-12 Tom Tromey <tom@tromey.com> |
| 4609 | |
| 4610 | * remote.c (remote_download_tracepoint): Update. |
| 4611 | * python/py-breakpoint.c (bppy_get_location): Update. |
| 4612 | * guile/scm-breakpoint.c (bpscm_print_breakpoint_smob) |
| 4613 | (gdbscm_breakpoint_location): Update. |
| 4614 | * elfread.c (elf_gnu_ifunc_resolver_return_stop): Update. |
| 4615 | * breakpoint.h (struct breakpoint) <location, location_range_end>: |
| 4616 | Change type to event_location_up. |
| 4617 | * breakpoint.c (create_overlay_event_breakpoint) |
| 4618 | (create_longjmp_master_breakpoint) |
| 4619 | (create_std_terminate_master_breakpoint) |
| 4620 | (create_exception_master_breakpoint) |
| 4621 | (breakpoint_event_location_empty_p, print_breakpoint_location) |
| 4622 | (print_one_breakpoint_location, create_thread_event_breakpoint) |
| 4623 | (init_breakpoint_sal, create_breakpoint) |
| 4624 | (print_recreate_ranged_breakpoint, break_range_command) |
| 4625 | (init_ada_exception_breakpoint, say_where): Update. |
| 4626 | (base_breakpoint_dtor): Don't call delete_event_location. |
| 4627 | (bkpt_print_recreate, tracepoint_print_recreate) |
| 4628 | (dprintf_print_recreate, update_static_tracepoint) |
| 4629 | (breakpoint_re_set_default): Update. |
| 4630 | |
| 4631 | 2017-04-12 Tom Tromey <tom@tromey.com> |
| 4632 | |
| 4633 | * compile/compile-loc2c.c (compute_stack_depth_worker): Change |
| 4634 | type of "to_do". Update. |
| 4635 | (compute_stack_depth): Use std::vector. |
| 4636 | |
| 4637 | 2017-04-12 Tom Tromey <tom@tromey.com> |
| 4638 | |
| 4639 | * printcmd.c (find_instruction_backward): Use std::vector. |
| 4640 | |
| 4641 | 2017-04-12 Tom Tromey <tom@tromey.com> |
| 4642 | |
| 4643 | * symfile.c (objfilep): Remove typedef. |
| 4644 | (reread_symbols): Use a std::vector. |
| 4645 | |
| 4646 | 2017-04-12 Tom Tromey <tom@tromey.com> |
| 4647 | |
| 4648 | * mi/mi-main.c (exec_direction_forward): Remove. |
| 4649 | (exec_reverse_continue, mi_execute_command): Use scoped_restore. |
| 4650 | * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use |
| 4651 | scoped_restore. |
| 4652 | * guile/guile.c (guile_repl_command, guile_command) |
| 4653 | (gdbscm_execute_gdb_command): Use scoped_restore. |
| 4654 | * go-exp.y (go_parse): Use scoped_restore. |
| 4655 | * d-exp.y (d_parse): Use scoped_restore. |
| 4656 | * cli/cli-decode.c (cmd_func): Use scoped_restore. |
| 4657 | * c-exp.y (c_parse): Use scoped_restore. |
| 4658 | |
| 4659 | 2017-04-12 Tom Tromey <tom@tromey.com> |
| 4660 | |
| 4661 | * mi/mi-parse.h (struct mi_parse): Add constructor, destructor. |
| 4662 | (mi_parse): Update return type. |
| 4663 | (mi_parse_free): Remove. |
| 4664 | * mi/mi-parse.c (mi_parse::mi_parse): New constructor. |
| 4665 | (mi_parse::~mi_parse): Rename from mi_parse_free. |
| 4666 | (mi_parse_cleanup): Remove. |
| 4667 | (mi_parse): Return a unique_ptr. Use new. |
| 4668 | * mi/mi-main.c (mi_execute_command): Update. |
| 4669 | |
| 4670 | 2017-04-12 Tom Tromey <tom@tromey.com> |
| 4671 | |
| 4672 | * location.c (explicit_location_lex_one): Return a |
| 4673 | unique_xmalloc_ptr. |
| 4674 | (string_to_explicit_location): Update. Remove cleanups. |
| 4675 | |
| 4676 | 2017-04-12 Tom Tromey <tom@tromey.com> |
| 4677 | |
| 4678 | * gnu-v3-abi.c (value_and_voffset_p): Remove typedef. |
| 4679 | (compare_value_and_voffset): Change type. Update. |
| 4680 | (compute_vtable_size): Change type of "offset_vec". |
| 4681 | (gnuv3_print_vtable): Use std::vector. Remove cleanups. |
| 4682 | (gnuv3_get_typeid): Remove extraneous declaration. |
| 4683 | |
| 4684 | 2017-04-12 Tom Tromey <tom@tromey.com> |
| 4685 | |
| 4686 | * charset.h (wchar_iterator): Fix comment. |
| 4687 | |
| 4688 | 2017-04-12 Tom Tromey <tom@tromey.com> |
| 4689 | |
| 4690 | * charset.c (iconv_wrapper): New class. |
| 4691 | (cleanup_iconv): Remove. |
| 4692 | (convert_between_encodings): Use it. |
| 4693 | |
| 4694 | 2017-04-12 Tom Tromey <tom@tromey.com> |
| 4695 | |
| 4696 | * symfile.h (increment_reading_symtab): Update type. |
| 4697 | * symfile.c (decrement_reading_symtab): Remove. |
| 4698 | (increment_reading_symtab): Return a scoped_restore_tmpl<int>. |
| 4699 | * psymtab.c (psymtab_to_symtab): Update. |
| 4700 | * dwarf2read.c (dw2_instantiate_symtab): Update. |
| 4701 | |
| 4702 | 2017-04-12 Tom Tromey <tom@tromey.com> |
| 4703 | |
| 4704 | * jit.c (struct jit_reader): Declare separately. Add constructor |
| 4705 | and destructor. Change type of "handle". |
| 4706 | (loaded_jit_reader): Define separately. |
| 4707 | (jit_reader_load): Update. New "new". |
| 4708 | (jit_reader_unload_command): Use "delete". |
| 4709 | * gdb-dlfcn.h (struct dlclose_deleter): New. |
| 4710 | (gdb_dlhandle_up): New typedef. |
| 4711 | (gdb_dlopen, gdb_dlsym): Update types. |
| 4712 | (gdb_dlclose): Remove. |
| 4713 | * gdb-dlfcn.c (gdb_dlopen): Return a gdb_dlhandle_up. |
| 4714 | (gdb_dlsym): Change type of "handle". |
| 4715 | (make_cleanup_dlclose): Remove. |
| 4716 | (dlclose_deleter::operator()): Rename from gdb_dlclose. |
| 4717 | * compile/compile-c-support.c (load_libcc): Update. |
| 4718 | |
| 4719 | 2017-04-12 Tom Tromey <tom@tromey.com> |
| 4720 | |
| 4721 | * symtab.h (find_pcs_for_symtab_line): Change return type. |
| 4722 | * symtab.c (find_pcs_for_symtab_line): Change return type. |
| 4723 | * python/py-linetable.c (build_line_table_tuple_from_pcs): Change |
| 4724 | type of "vec". Update. |
| 4725 | (ltpy_get_pcs_for_line): Update. |
| 4726 | * linespec.c (decode_digits_ordinary): Update. |
| 4727 | |
| 4728 | 2017-04-12 Tom Tromey <tom@tromey.com> |
| 4729 | |
| 4730 | * tracepoint.c (actions_command): Update. |
| 4731 | * python/python.c (python_command, python_interactive_command): |
| 4732 | Update. |
| 4733 | * mi/mi-cmd-break.c (mi_cmd_break_commands): Update. |
| 4734 | * guile/guile.c (guile_command): Update. |
| 4735 | * defs.h (read_command_lines, read_command_lines_1): Return |
| 4736 | command_line_up. |
| 4737 | (command_lines_deleter): New struct. |
| 4738 | (command_line_up): New typedef. |
| 4739 | * compile/compile.c (compile_code_command) |
| 4740 | (compile_print_command): Update. |
| 4741 | * cli/cli-script.h (get_command_line, copy_command_lines): Return |
| 4742 | command_line_up. |
| 4743 | (make_cleanup_free_command_lines): Remove. |
| 4744 | * cli/cli-script.c (get_command_line, read_command_lines_1) |
| 4745 | (copy_command_lines): Return command_line_up. |
| 4746 | (while_command, if_command, read_command_lines, define_command) |
| 4747 | (document_command): Update. |
| 4748 | (do_free_command_lines_cleanup, make_cleanup_free_command_lines): |
| 4749 | Remove. |
| 4750 | * breakpoint.h (breakpoint_set_commands): Change type of |
| 4751 | "commands". |
| 4752 | * breakpoint.c (breakpoint_set_commands): Change type of |
| 4753 | "commands". Update. |
| 4754 | (do_map_commands_command, update_dprintf_command_list) |
| 4755 | (create_tracepoint_from_upload): Update. |
| 4756 | |
| 4757 | 2017-04-12 Tom Tromey <tom@tromey.com> |
| 4758 | |
| 4759 | * tracepoint.c (scope_info): Update. |
| 4760 | * spu-tdep.c (spu_catch_start): Update. |
| 4761 | * python/python.c (gdbpy_decode_line): Update. |
| 4762 | * python/py-finishbreakpoint.c (bpfinishpy_init): Update. |
| 4763 | * python/py-breakpoint.c (bppy_init): Update. |
| 4764 | * probe.c (parse_probes): Update. |
| 4765 | * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Update. |
| 4766 | * location.h (event_location_deleter): New struct. |
| 4767 | (event_location_up): New typedef. |
| 4768 | (new_linespec_location, new_address_location, new_probe_location) |
| 4769 | (new_explicit_location, copy_event_location) |
| 4770 | (string_to_event_location, string_to_event_location_basic) |
| 4771 | (string_to_explicit_location): Update return type. |
| 4772 | (make_cleanup_delete_event_location): Remove. |
| 4773 | * location.c (new_linespec_location, new_address_location) |
| 4774 | (new_probe_location, new_explicit_location, copy_event_location): |
| 4775 | Return event_location_up. |
| 4776 | (delete_event_location_cleanup) |
| 4777 | (make_cleanup_delete_event_location): Remove. |
| 4778 | (string_to_explicit_location, string_to_event_location_basic) |
| 4779 | (string_to_event_location): Return event_location_up. |
| 4780 | * linespec.c (canonicalize_linespec, event_location_to_sals) |
| 4781 | (decode_line_with_current_source) |
| 4782 | (decode_line_with_last_displayed, decode_objc): Update. |
| 4783 | * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update. |
| 4784 | * completer.c (location_completer): Update. |
| 4785 | * cli/cli-cmds.c (edit_command, list_command): Update. |
| 4786 | * breakpoint.c (create_overlay_event_breakpoint) |
| 4787 | (create_longjmp_master_breakpoint) |
| 4788 | (create_std_terminate_master_breakpoint) |
| 4789 | (create_exception_master_breakpoint) |
| 4790 | (create_thread_event_breakpoint): Update. |
| 4791 | (init_breakpoint_sal): Update. Remove some dead code. |
| 4792 | (create_breakpoint_sal): Change type of "location". Update. |
| 4793 | (create_breakpoints_sal, create_breakpoint, break_command_1) |
| 4794 | (dprintf_command, break_range_command, until_break_command) |
| 4795 | (init_ada_exception_breakpoint) |
| 4796 | (strace_marker_create_sals_from_location) |
| 4797 | (update_static_tracepoint, trace_command, ftrace_command) |
| 4798 | (strace_command, create_tracepoint_from_upload): Update. |
| 4799 | * break-catch-throw.c (re_set_exception_catchpoint): Update. |
| 4800 | * ax-gdb.c (agent_command_1): Update. |
| 4801 | |
| 4802 | 2017-04-12 Pedro Alves <palves@redhat.com> |
| 4803 | |
| 4804 | * Makefile.in (ALL_TARGET_OBS): Add i386-go32-tdep.o. |
| 4805 | * configure.tgt: Handle i[34567]86-*-go32* and |
| 4806 | i[34567]86-*-msdosdjgpp*. |
| 4807 | * i386-tdep.c (i386_svr4_reg_to_regnum): |
| 4808 | Make extern. |
| 4809 | (i386_go32_init_abi, i386_coff_osabi_sniffer): Moved to |
| 4810 | i386-go32-tdep.c. |
| 4811 | (_initialize_i386_tdep): DJGPP bits moved to i386-go32-tdep.c. |
| 4812 | * i386-go32-tdep.c: New file. |
| 4813 | * i386-tdep.h (tdesc_i386_mmx, i386_svr4_reg_to_regnum): New |
| 4814 | declarations. |
| 4815 | |
| 4816 | 2017-04-12 Simon Marchi <simon.marchi@ericsson.com> |
| 4817 | |
| 4818 | * aix-thread.c (pd_status2str): Change return type to const char *. |
| 4819 | |
| 4820 | 2017-04-12 Pedro Alves <palves@redhat.com> |
| 4821 | |
| 4822 | * i386-tdep.c (i386_elf_init_abi, i386_go32_init_abi): Remove |
| 4823 | calls to set_gdbarch_gnu_triplet_regexp. |
| 4824 | |
| 4825 | 2017-04-12 Pedro Alves <palves@redhat.com> |
| 4826 | |
| 4827 | PR gdb/21323 |
| 4828 | * c-lang.c (cplus_primitive_types) <cplus_primitive_type_wchar_t>: |
| 4829 | New enum value. |
| 4830 | (cplus_language_arch_info): Register cplus_primitive_type_wchar_t. |
| 4831 | * gdbtypes.h (struct builtin_type) <builtin_wchar>: New field. |
| 4832 | * gdbtypes.c (gdbtypes_post_init): Create the "wchar_t" type. |
| 4833 | * gdbarch.sh (wchar_bit, wchar_signed): New per-arch values. |
| 4834 | * gdbarch.h, gdbarch.c: Regenerate. |
| 4835 | * aarch64-tdep.c (aarch64_gdbarch_init): Override |
| 4836 | gdbarch_wchar_bit and gdbarch_wchar_signed. |
| 4837 | * alpha-tdep.c (alpha_gdbarch_init): Likewise. |
| 4838 | * arm-tdep.c (arm_gdbarch_init): Likewise. |
| 4839 | * avr-tdep.c (avr_gdbarch_init): Likewise. |
| 4840 | * h8300-tdep.c (h8300_gdbarch_init): Likewise. |
| 4841 | * i386-nto-tdep.c (i386nto_init_abi): Likewise. |
| 4842 | * i386-tdep.c (i386_go32_init_abi): Likewise. |
| 4843 | * m32r-tdep.c (m32r_gdbarch_init): Likewise. |
| 4844 | * moxie-tdep.c (moxie_gdbarch_init): Likewise. |
| 4845 | * nds32-tdep.c (nds32_gdbarch_init): Likewise. |
| 4846 | * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise. |
| 4847 | * sh-tdep.c (sh_gdbarch_init): Likewise. |
| 4848 | * sparc-tdep.c (sparc32_gdbarch_init): Likewise. |
| 4849 | * sparc64-tdep.c (sparc64_init_abi): Likewise. |
| 4850 | * windows-tdep.c (windows_init_abi): Likewise. |
| 4851 | * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise. |
| 4852 | |
| 4853 | 2017-04-12 Pedro Alves <palves@redhat.com> |
| 4854 | |
| 4855 | PR c++/21323 |
| 4856 | * c-lang.c (cplus_primitive_types) <cplus_primitive_type_char16_t, |
| 4857 | cplus_primitive_type_char32_t>: New enum values. |
| 4858 | (cplus_language_arch_info): Register cplus_primitive_type_char16_t |
| 4859 | and cplus_primitive_type_char32_t. |
| 4860 | * dwarf2read.c (read_base_type) <DW_ATE_UTF>: If bit size is 16 or |
| 4861 | 32, use the archtecture's built-in type for char16_t and char32_t, |
| 4862 | respectively. Otherwise, fallback to init_integer_type as before, |
| 4863 | but make the type unsigned, and issue a complaint. |
| 4864 | * gdbtypes.c (gdbtypes_post_init): Make char16_t and char32_t unsigned. |
| 4865 | |
| 4866 | 2017-04-12 Alan Hayward <alan.hayward@arm.com> |
| 4867 | |
| 4868 | * m32r-tdep.c (M32R_ARG_REGISTER_SIZE): Added. |
| 4869 | (m32r_push_dummy_call): Use M32R_ARG_REGISTER_SIZE. |
| 4870 | |
| 4871 | 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com> |
| 4872 | |
| 4873 | * windows-nat.c (windows_create_inferior): Declare 'toexec' as |
| 4874 | 'const char *'. |
| 4875 | |
| 4876 | 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com> |
| 4877 | |
| 4878 | * common/common-utils.c (free_vector_argv): New function. |
| 4879 | * common/common-utils.h: Include <vector>. |
| 4880 | (free_vector_argv): New prototype. |
| 4881 | * darwin-nat.c (darwin_create_inferior): Rewrite function |
| 4882 | prototype in order to constify "exec_file" and accept a |
| 4883 | "std::string" for "allargs". |
| 4884 | * fork-child.c: Include <vector>. |
| 4885 | (breakup_args): Rewrite function, using C++. |
| 4886 | (fork_inferior): Rewrite function header, constify "exec_file_arg" |
| 4887 | and accept "std::string" for "allargs". Update the code to |
| 4888 | calculate "argv" based on "allargs". Update calls to "exec_fun" |
| 4889 | and "execvp". |
| 4890 | * gnu-nat.c (gnu_create_inferior): Rewrite function prototype in |
| 4891 | order to constify "exec_file" and accept a "std::string" for |
| 4892 | "allargs". |
| 4893 | * go32-nat.c (go32_create_inferior): Likewise. |
| 4894 | * inf-ptrace.c (inf_ptrace_create_inferior): Likewise. |
| 4895 | * infcmd.c (run_command_1): Constify "exec_file". Use |
| 4896 | "std::string" for inferior arguments. |
| 4897 | * inferior.h (fork_inferior): Update prototype. |
| 4898 | * linux-nat.c (linux_nat_create_inferior): Rewrite function |
| 4899 | prototype in order to constify "exec_file" and accept a |
| 4900 | "std::string" for "allargs". |
| 4901 | * nto-procfs.c (procfs_create_inferior): Likewise. |
| 4902 | * procfs.c (procfs_create_inferior): Likewise. |
| 4903 | * remote-sim.c (gdbsim_create_inferior): Likewise. |
| 4904 | * remote.c (extended_remote_run): Update code to accept |
| 4905 | "std::string" as argument. |
| 4906 | (extended_remote_create_inferior): Rewrite function prototype in |
| 4907 | order to constify "exec_file" and accept a "std::string" for |
| 4908 | "allargs". |
| 4909 | * rs6000-nat.c (super_create_inferior): Likewise. |
| 4910 | (rs6000_create_inferior): Likewise. |
| 4911 | * target.h (struct target_ops) <to_create_inferior>: Likewise. |
| 4912 | * windows-nat.c (windows_create_inferior): Likewise. |
| 4913 | |
| 4914 | 2017-04-11 Pedro Alves <palves@redhat.com> |
| 4915 | |
| 4916 | * thread.c: Fix whitespace throughout. |
| 4917 | |
| 4918 | 2017-04-11 Philipp Rudo <prudo@linux.vnet.ibm.com> |
| 4919 | |
| 4920 | * linux-nat.c (linux_nat_detach): Remove delete_lwp call. |
| 4921 | |
| 4922 | 2017-04-11 Alan Hayward <alan.hayward@arm.com> |
| 4923 | |
| 4924 | * arm-tdep.c (arm_store_return_value): Use FP_REGISTER_SIZE |
| 4925 | |
| 4926 | 2017-04-10 Sergio Durigan Junior <sergiodj@redhat.com> |
| 4927 | |
| 4928 | PR gdb/21364 |
| 4929 | * osdata.c (info_osdata): Check if 'type' is an empty string |
| 4930 | instead of NULL. |
| 4931 | |
| 4932 | 2017-04-10 Pedro Alves <palves@redhat.com> |
| 4933 | |
| 4934 | * thread.c (add_thread_silent, delete_thread_1, find_thread_ptid) |
| 4935 | (ptid_to_global_thread_id, in_thread_list) |
| 4936 | (do_captured_list_thread_ids, set_resumed, set_running) |
| 4937 | (set_executing, set_stop_requested, finish_thread_state) |
| 4938 | (validate_registers_access, can_access_registers_ptid) |
| 4939 | (print_thread_info_1, switch_to_thread) |
| 4940 | (do_restore_current_thread_cleanup) |
| 4941 | (make_cleanup_restore_current_thread, thread_command) |
| 4942 | (thread_name_command): Use operator== instead of ptid_equal. |
| 4943 | |
| 4944 | 2017-04-10 Pedro Alves <palves@redhat.com> |
| 4945 | |
| 4946 | * thread.c (struct current_thread_cleanup) <next>: Delete field. |
| 4947 | (current_thread_cleanup_chain): Delete. |
| 4948 | (restore_current_thread_cleanup_dtor) |
| 4949 | (make_cleanup_restore_current_thread): Remove references to |
| 4950 | current_thread_cleanup_chain. |
| 4951 | |
| 4952 | 2017-04-10 Alan Hayward <alan.hayward@arm.com> |
| 4953 | |
| 4954 | * msp430-tdep.c (msp430_pseudo_register_read): Never return |
| 4955 | REG_UNKNOWN. |
| 4956 | |
| 4957 | 2017-04-10 Yao Qi <yao.qi@linaro.org> |
| 4958 | |
| 4959 | PR gdb/19942 |
| 4960 | * gdbthread.h (thread_info::deletable): New method. |
| 4961 | (thread_info::incref): New method. |
| 4962 | (thread_info::decref): New method. |
| 4963 | (thread_info::refcount): Move it to private. |
| 4964 | * infrun.c (save_stop_context): Call inc_refcount. |
| 4965 | (release_stop_context_cleanup): Likewise. |
| 4966 | * thread.c (set_thread_exited): New function. |
| 4967 | (init_thread_list): Delete "tp" only it is deletable, otherwise |
| 4968 | call set_thread_exited. |
| 4969 | (delete_thread_1): Call set_thread_exited. |
| 4970 | (current_thread_cleanup) <inferior_pid>: Remove. |
| 4971 | <thread>: New field. |
| 4972 | (restore_current_thread_ptid_changed): Removed. |
| 4973 | (do_restore_current_thread_cleanup): Adjust. |
| 4974 | (restore_current_thread_cleanup_dtor): Don't call |
| 4975 | find_thread_ptid. |
| 4976 | (set_thread_refcount): Use dec_refcount. |
| 4977 | (make_cleanup_restore_current_thread): Adjust. |
| 4978 | (thread_apply_all_command): Call inc_refcount. |
| 4979 | (_initialize_thread): Don't call |
| 4980 | observer_attach_thread_ptid_changed. |
| 4981 | |
| 4982 | 2017-04-10 Yao Qi <yao.qi@linaro.org> |
| 4983 | |
| 4984 | * thread.c (delete_thread_1): Hoist code on marking thread as |
| 4985 | exited. |
| 4986 | |
| 4987 | 2017-04-09 Simon Marchi <simon.marchi@polymtl.ca> |
| 4988 | |
| 4989 | * windows-nat.c (windows_detach): Initialize ptid with |
| 4990 | minus_one_ptid. |
| 4991 | |
| 4992 | 2017-04-07 Simon Marchi <simon.marchi@ericsson.com> |
| 4993 | |
| 4994 | * unittests/ptid-selftests.c: Fix erroneous assert messages. |
| 4995 | |
| 4996 | 2017-04-07 Alan Hayward <alan.hayward@arm.com> |
| 4997 | |
| 4998 | * bfin-tdep.c (BFIN_MAX_REGISTER_SIZE): Add. |
| 4999 | (bfin_pseudo_register_read): Use BFIN_MAX_REGISTER_SIZE. |
| 5000 | (bfin_pseudo_register_write): Likewise |
| 5001 | |
| 5002 | 2017-04-06 Simon Marchi <simon.marchi@ericsson.com> |
| 5003 | |
| 5004 | * common/ptid.h (struct ptid): Change to... |
| 5005 | (class ptid_t): ... this. |
| 5006 | <ptid_t>: New constructors. |
| 5007 | <pid, lwp_p, lwp, tid_p, tid, is_pid, operator==, operator!=, |
| 5008 | matches>: New methods. |
| 5009 | <make_null, make_minus_one>: New static methods. |
| 5010 | <pid>: Rename to... |
| 5011 | <m_pid>: ...this. |
| 5012 | <lwp>: Rename to... |
| 5013 | <m_lwp>: ...this. |
| 5014 | <tid>: Rename to... |
| 5015 | <m_tid>: ...this. |
| 5016 | (ptid_build, ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, |
| 5017 | ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match): Take ptid arguments |
| 5018 | as references, move comment to class ptid_t. |
| 5019 | * common/ptid.c (null_ptid, minus_one_ptid): Initialize with |
| 5020 | ptid_t static methods. |
| 5021 | (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_tid, |
| 5022 | ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match): |
| 5023 | Take ptid arguments as references, implement using ptid_t methods. |
| 5024 | * unittests/ptid-selftests.c: New file. |
| 5025 | * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add |
| 5026 | unittests/ptid-selftests.c. |
| 5027 | (SUBDIR_UNITTESTS_OBS): Add unittests/ptid-selftests.o. |
| 5028 | |
| 5029 | 2017-04-06 Thomas Preud'homme <thomas.preudhomme@arm.com> |
| 5030 | |
| 5031 | * python/python.c (python_run_simple_file): Cast mode literal to |
| 5032 | non-const char pointer as expected by PyFile_FromString. |
| 5033 | |
| 5034 | 2017-04-05 Simon Marchi <simon.marchi@ericsson.com> |
| 5035 | |
| 5036 | * common/ptid.c (ptid_lwp_p, ptid_tid_p): Remove comparison with |
| 5037 | minus_one_ptid and null_ptid. |
| 5038 | |
| 5039 | 2017-04-05 Pedro Alves <palves@redhat.com> |
| 5040 | |
| 5041 | * warning.m4 (build_warnings): Remove -Wno-write-strings. |
| 5042 | * configure: Regenerate. |
| 5043 | |
| 5044 | 2017-04-05 Pedro Alves <palves@redhat.com> |
| 5045 | |
| 5046 | * ada-exp.y (yyerror): Constify. |
| 5047 | * ada-lang.c (bound_name, get_selections) |
| 5048 | (ada_variant_discrim_type) |
| 5049 | (ada_variant_discrim_name, ada_value_struct_elt) |
| 5050 | (ada_lookup_struct_elt_type, is_unchecked_variant) |
| 5051 | (ada_which_variant_applies, standard_exc, ada_get_next_arg) |
| 5052 | (catch_ada_exception_command_split) |
| 5053 | (catch_ada_assert_command_split, catch_assert_command) |
| 5054 | (ada_op_name): Constify. |
| 5055 | * ada-lang.h (ada_yyerror, get_selections) |
| 5056 | (ada_variant_discrim_name, ada_value_struct_elt): Constify. |
| 5057 | * arc-tdep.c (arc_print_frame_cache): Constify. |
| 5058 | * arm-tdep.c (arm_skip_stub): Constify. |
| 5059 | * ax-gdb.c (gen_binop, gen_struct_ref_recursive, gen_struct_ref) |
| 5060 | (gen_aggregate_elt_ref): Constify. |
| 5061 | * bcache.c (print_bcache_statistics): Constify. |
| 5062 | * bcache.h (print_bcache_statistics): Constify. |
| 5063 | * break-catch-throw.c (catch_exception_command_1): |
| 5064 | * breakpoint.c (struct ep_type_description::description): |
| 5065 | Constify. |
| 5066 | (add_solib_catchpoint): Constify. |
| 5067 | (catch_fork_command_1): Add cast. |
| 5068 | (add_catch_command): Constify. |
| 5069 | * breakpoint.h (add_catch_command, add_solib_catchpoint): |
| 5070 | Constify. |
| 5071 | * bsd-uthread.c (bsd_uthread_state): Constify. |
| 5072 | * buildsym.c (patch_subfile_names): Constify. |
| 5073 | * buildsym.h (next_symbol_text_func, patch_subfile_names): |
| 5074 | Constify. |
| 5075 | * c-exp.y (yyerror): Constify. |
| 5076 | (token::oper): Constify. |
| 5077 | * c-lang.h (c_yyerror, cp_print_class_member): Constify. |
| 5078 | * c-varobj.c (cplus_describe_child): Constify. |
| 5079 | * charset.c (find_charset_names): Add cast. |
| 5080 | (find_charset_names): Constify array and add const_cast. |
| 5081 | * cli/cli-cmds.c (complete_command, cd_command): Constify. |
| 5082 | (edit_command): Constify. |
| 5083 | * cli/cli-decode.c (lookup_cmd): Constify. |
| 5084 | * cli/cli-dump.c (dump_memory_command, dump_value_command): |
| 5085 | Constify. |
| 5086 | (struct dump_context): Constify. |
| 5087 | (add_dump_command, restore_command): Constify. |
| 5088 | * cli/cli-script.c (get_command_line): Constify. |
| 5089 | * cli/cli-script.h (get_command_line): Constify. |
| 5090 | * cli/cli-utils.c (check_for_argument): Constify. |
| 5091 | * cli/cli-utils.h (check_for_argument): Constify. |
| 5092 | * coff-pe-read.c (struct read_pe_section_data): Constify. |
| 5093 | * command.h (lookup_cmd): Constify. |
| 5094 | * common/print-utils.c (decimal2str): Constify. |
| 5095 | * completer.c (gdb_print_filename): Constify. |
| 5096 | * corefile.c (set_gnutarget): Constify. |
| 5097 | * cp-name-parser.y (yyerror): Constify. |
| 5098 | * cp-valprint.c (cp_print_class_member): Constify. |
| 5099 | * cris-tdep.c (cris_register_name, crisv32_register_name): |
| 5100 | Constify. |
| 5101 | * d-exp.y (yyerror): Constify. |
| 5102 | (struct token::oper): Constify. |
| 5103 | * d-lang.h (d_yyerror): Constify. |
| 5104 | * dbxread.c (struct header_file_location::name): Constify. |
| 5105 | (add_old_header_file, add_new_header_file, last_function_name) |
| 5106 | (dbx_next_symbol_text, add_bincl_to_list) |
| 5107 | (find_corresponding_bincl_psymtab, set_namestring) |
| 5108 | (find_stab_function_addr, read_dbx_symtab, start_psymtab) |
| 5109 | (dbx_end_psymtab, read_ofile_symtab, process_one_symbol): |
| 5110 | * defs.h (command_line_input, print_address_symbolic) |
| 5111 | (deprecated_readline_begin_hook): Constify. |
| 5112 | * dwarf2read.c (anonymous_struct_prefix, dwarf_bool_name): |
| 5113 | Constify. |
| 5114 | * event-top.c (handle_line_of_input): Constify and add cast. |
| 5115 | * exceptions.c (catch_errors): Constify. |
| 5116 | * exceptions.h (catch_errors): Constify. |
| 5117 | * expprint.c (print_subexp_standard, op_string, op_name) |
| 5118 | (op_name_standard, dump_raw_expression, dump_raw_expression): |
| 5119 | * expression.h (op_name, op_string, dump_raw_expression): |
| 5120 | Constify. |
| 5121 | * f-exp.y (yyerror): Constify. |
| 5122 | (struct token::oper): Constify. |
| 5123 | (struct f77_boolean_val::name): Constify. |
| 5124 | * f-lang.c (f_word_break_characters): Constify. |
| 5125 | * f-lang.h (f_yyerror): Constify. |
| 5126 | * fork-child.c (fork_inferior): Add cast. |
| 5127 | * frv-tdep.c (struct gdbarch_tdep::register_names): Constify. |
| 5128 | (new_variant): Constify. |
| 5129 | * gdbarch.sh (pstring_ptr, pstring_list): Constify. |
| 5130 | * gdbarch.c: Regenerate. |
| 5131 | * gdbcore.h (set_gnutarget): Constify. |
| 5132 | * go-exp.y (yyerror): Constify. |
| 5133 | (token::oper): Constify. |
| 5134 | * go-lang.h (go_yyerror): Constify. |
| 5135 | * go32-nat.c (go32_sysinfo): Constify. |
| 5136 | * guile/scm-breakpoint.c (gdbscm_breakpoint_expression): Constify. |
| 5137 | * guile/scm-cmd.c (cmdscm_function): Constify. |
| 5138 | * guile/scm-param.c (pascm_param_value): Constify. |
| 5139 | * h8300-tdep.c (h8300_register_name, h8300s_register_name) |
| 5140 | (h8300sx_register_name): Constify. |
| 5141 | * hppa-tdep.c (hppa32_register_name, hppa64_register_name): |
| 5142 | Constify. |
| 5143 | * ia64-tdep.c (ia64_register_names): Constify. |
| 5144 | * infcmd.c (construct_inferior_arguments): Constify. |
| 5145 | (path_command, attach_post_wait): Constify. |
| 5146 | * language.c (show_range_command, show_case_command) |
| 5147 | (unk_lang_error): Constify. |
| 5148 | * language.h (language_defn::la_error) |
| 5149 | (language_defn::la_name_of_this): Constify. |
| 5150 | * linespec.c (decode_line_2): Constify. |
| 5151 | * linux-thread-db.c (thread_db_err_str): Constify. |
| 5152 | * lm32-tdep.c (lm32_register_name): Constify. |
| 5153 | * m2-exp.y (yyerror): Constify. |
| 5154 | * m2-lang.h (m2_yyerror): Constify. |
| 5155 | * m32r-tdep.c (m32r_register_names): Constify and make static. |
| 5156 | * m68hc11-tdep.c (m68hc11_register_names): Constify. |
| 5157 | * m88k-tdep.c (m88k_register_name): Constify. |
| 5158 | * macroexp.c (appendmem): Constify. |
| 5159 | * mdebugread.c (fdr_name, add_data_symbol, parse_type) |
| 5160 | (upgrade_type, parse_external, parse_partial_symbols) |
| 5161 | (mdebug_next_symbol_text, cross_ref, mylookup_symbol, new_psymtab) |
| 5162 | (new_symbol): Constify. |
| 5163 | * memattr.c (mem_info_command): Constify. |
| 5164 | * mep-tdep.c (register_name_from_keyword): Constify. |
| 5165 | * mi/mi-cmd-env.c (mi_cmd_env_path, _initialize_mi_cmd_env): |
| 5166 | Constify. |
| 5167 | * mi/mi-cmd-stack.c (list_args_or_locals): Constify. |
| 5168 | * mi/mi-cmd-var.c (mi_cmd_var_show_attributes): Constify. |
| 5169 | * mi/mi-main.c (captured_mi_execute_command): Constify and add |
| 5170 | cast. |
| 5171 | (mi_execute_async_cli_command): Constify. |
| 5172 | * mips-tdep.c (mips_register_name): Constify. |
| 5173 | * mn10300-tdep.c (register_name, mn10300_generic_register_name) |
| 5174 | (am33_register_name, am33_2_register_name) |
| 5175 | * moxie-tdep.c (moxie_register_names): Constify. |
| 5176 | * nat/linux-osdata.c (osdata_type): Constify fields. |
| 5177 | * nto-tdep.c (nto_parse_redirection): Constify. |
| 5178 | * objc-lang.c (lookup_struct_typedef, lookup_objc_class) |
| 5179 | (lookup_child_selector): Constify. |
| 5180 | (objc_methcall::name): Constify. |
| 5181 | * objc-lang.h (lookup_objc_class, lookup_child_selector) |
| 5182 | (lookup_struct_typedef): Constify. |
| 5183 | * objfiles.c (pc_in_section): Constify. |
| 5184 | * objfiles.h (pc_in_section): Constify. |
| 5185 | * p-exp.y (struct token::oper): Constify. |
| 5186 | (yyerror): Constify. |
| 5187 | * p-lang.h (pascal_yyerror): Constify. |
| 5188 | * parser-defs.h (op_name_standard): Constify. |
| 5189 | (op_print::string): Constify. |
| 5190 | (exp_descriptor::op_name): Constify. |
| 5191 | * printcmd.c (print_address_symbolic): Constify. |
| 5192 | * psymtab.c (print_partial_symbols): Constify. |
| 5193 | * python/py-breakpoint.c (stop_func): Constify. |
| 5194 | (bppy_get_expression): Constify. |
| 5195 | * python/py-cmd.c (cmdpy_completer::name): Constify. |
| 5196 | (cmdpy_function): Constify. |
| 5197 | * python/py-event.c (evpy_add_attribute) |
| 5198 | (gdbpy_initialize_event_generic): Constify. |
| 5199 | * python/py-event.h (evpy_add_attribute) |
| 5200 | (gdbpy_initialize_event_generic): Constify. |
| 5201 | * python/py-evts.c (add_new_registry): Constify. |
| 5202 | * python/py-finishbreakpoint.c (outofscope_func): Constify. |
| 5203 | * python/py-framefilter.c (get_py_iter_from_func): Constify. |
| 5204 | * python/py-inferior.c (get_buffer): Add cast. |
| 5205 | * python/py-param.c (parm_constant::name): Constify. |
| 5206 | * python/py-unwind.c (fprint_frame_id): Constify. |
| 5207 | * python/python.c (gdbpy_parameter_value): Constify. |
| 5208 | * remote-fileio.c (remote_fio_func_map): Make 'name' const. |
| 5209 | * remote.c (memory_packet_config::name): Constify. |
| 5210 | (show_packet_config_cmd, remote_write_bytes) |
| 5211 | (remote_buffer_add_string): |
| 5212 | * reverse.c (exec_reverse_once): Constify. |
| 5213 | * rs6000-tdep.c (variant::name, variant::description): Constify. |
| 5214 | * rust-exp.y (rustyyerror): Constify. |
| 5215 | * rust-lang.c (rust_op_name): Constify. |
| 5216 | * rust-lang.h (rustyyerror): Constify. |
| 5217 | * serial.h (serial_ops::name): Constify. |
| 5218 | * sh-tdep.c (sh_sh_register_name, sh_sh3_register_name) |
| 5219 | (sh_sh3e_register_name, sh_sh2e_register_name) |
| 5220 | (sh_sh2a_register_name, sh_sh2a_nofpu_register_name) |
| 5221 | (sh_sh_dsp_register_name, sh_sh3_dsp_register_name) |
| 5222 | (sh_sh4_register_name, sh_sh4_nofpu_register_name) |
| 5223 | (sh_sh4al_dsp_register_name): Constify. |
| 5224 | * sh64-tdep.c (sh64_register_name): Constify. |
| 5225 | * solib-darwin.c (lookup_symbol_from_bfd): Constify. |
| 5226 | * spu-tdep.c (spu_register_name, info_spu_dma_cmdlist): Constify. |
| 5227 | * stabsread.c (patch_block_stabs, read_type_number) |
| 5228 | (ref_map::stabs, ref_add, process_reference) |
| 5229 | (symbol_reference_defined, define_symbol, define_symbol) |
| 5230 | (error_type, read_type, read_member_functions, read_cpp_abbrev) |
| 5231 | (read_one_struct_field, read_struct_fields, read_baseclasses) |
| 5232 | (read_tilde_fields, read_struct_type, read_array_type) |
| 5233 | (read_enum_type, read_sun_builtin_type, read_sun_floating_type) |
| 5234 | (read_huge_number, read_range_type, read_args, common_block_start) |
| 5235 | (find_name_end): Constify. |
| 5236 | * stabsread.h (common_block_start, define_symbol) |
| 5237 | (process_one_symbol, symbol_reference_defined, ref_add): |
| 5238 | * symfile.c (get_section_index, add_symbol_file_command): |
| 5239 | * symfile.h (get_section_index): Constify. |
| 5240 | * target-descriptions.c (tdesc_type::name): Constify. |
| 5241 | (tdesc_free_type): Add cast. |
| 5242 | * target.c (find_default_run_target): |
| 5243 | (add_deprecated_target_alias, find_default_run_target) |
| 5244 | (target_announce_detach): Constify. |
| 5245 | (do_option): Constify. |
| 5246 | * target.h (add_deprecated_target_alias): Constify. |
| 5247 | * thread.c (print_thread_info_1): Constify. |
| 5248 | * top.c (deprecated_readline_begin_hook, command_line_input): |
| 5249 | Constify. |
| 5250 | (init_main): Add casts. |
| 5251 | * top.h (handle_line_of_input): Constify. |
| 5252 | * tracefile-tfile.c (tfile_write_uploaded_tsv): Constify. |
| 5253 | * tracepoint.c (tvariables_info_1, trace_status_mi): Constify. |
| 5254 | (tfind_command): Rename to ... |
| 5255 | (tfind_command_1): ... this and constify. |
| 5256 | (tfind_command): New function. |
| 5257 | (tfind_end_command, tfind_start_command): Adjust. |
| 5258 | (encode_source_string): Constify. |
| 5259 | * tracepoint.h (encode_source_string): Constify. |
| 5260 | * tui/tui-data.c (tui_partial_win_by_name): Constify. |
| 5261 | * tui/tui-data.h (tui_partial_win_by_name): Constify. |
| 5262 | * tui/tui-source.c (tui_set_source_content_nil): Constify. |
| 5263 | * tui/tui-source.h (tui_set_source_content_nil): Constify. |
| 5264 | * tui/tui-win.c (parse_scrolling_args): Constify. |
| 5265 | * tui/tui-windata.c (tui_erase_data_content): Constify. |
| 5266 | * tui/tui-windata.h (tui_erase_data_content): Constify. |
| 5267 | * tui/tui-winsource.c (tui_erase_source_content): Constify. |
| 5268 | * tui/tui.c (tui_enable): Add cast. |
| 5269 | * utils.c (defaulted_query): Constify. |
| 5270 | (init_page_info): Add cast. |
| 5271 | (puts_debug, subset_compare): Constify. |
| 5272 | * utils.h (subset_compare): Constify. |
| 5273 | * varobj.c (varobj_format_string): Constify. |
| 5274 | * varobj.h (varobj_format_string): Constify. |
| 5275 | * vax-tdep.c (vax_register_name): Constify. |
| 5276 | * windows-nat.c (windows_detach): Constify. |
| 5277 | * xcoffread.c (process_linenos, xcoff_next_symbol_text): Constify. |
| 5278 | * xml-support.c (gdb_xml_end_element): Constify. |
| 5279 | * xml-tdesc.c (tdesc_start_reg): Constify. |
| 5280 | * xstormy16-tdep.c (xstormy16_register_name): Constify. |
| 5281 | * xtensa-tdep.c (xtensa_find_register_by_name): Constify. |
| 5282 | * xtensa-tdep.h (xtensa_register_t::name): Constify. |
| 5283 | |
| 5284 | 2017-04-05 Pedro Alves <palves@redhat.com> |
| 5285 | |
| 5286 | * proc-api.c (struct trans): Constify. |
| 5287 | (procfs_note): Constify. |
| 5288 | * proc-events.c (struct trans, syscall_table): |
| 5289 | * proc-flags.c (struct trans): Constify. |
| 5290 | * proc-utils.h (procfs_note): Constify. |
| 5291 | * proc-why.c (struct trans): Constify. |
| 5292 | * procfs.c (dead_procinfo, find_syscall, proc_warn, proc_error) |
| 5293 | (procfs_detach): Constify. |
| 5294 | * sol-thread.c (struct string_map): Constify. |
| 5295 | (td_err_string, td_state_string): Constify. |
| 5296 | |
| 5297 | 2017-04-05 Pedro Alves <palves@redhat.com> |
| 5298 | |
| 5299 | * proc-api.c (procfs_filename): Don't initialize |
| 5300 | procfs_filename. |
| 5301 | (prepare_to_trace): Assume procfs_filename is non-NULL. |
| 5302 | (_initialize_proc_api): Give procfs_filename a default value here. |
| 5303 | |
| 5304 | 2017-04-05 Pedro Alves <palves@redhat.com> |
| 5305 | |
| 5306 | * break-catch-throw.c (handle_gnu_v3_exceptions): Constify |
| 5307 | 'cond_string' parameter. |
| 5308 | (extract_exception_regexp): Constify 'string' parameter. |
| 5309 | (catch_exception_command_1): Constify. |
| 5310 | * breakpoint.c (init_catchpoint) |
| 5311 | (create_fork_vfork_event_catchpoint): Constify 'cond_string' |
| 5312 | parameter. |
| 5313 | (ep_parse_optional_if_clause, catch_fork_command_1) |
| 5314 | (catch_exec_command_1): Constify. |
| 5315 | * breakpoint.h (init_catchpoint): Constify 'cond_string' |
| 5316 | parameter. |
| 5317 | (ep_parse_optional_if_clause): Constify. |
| 5318 | * cli/cli-utils.c (remove_trailing_whitespace) |
| 5319 | (check_for_argument): Constify. |
| 5320 | * cli/cli-utils.h (remove_trailing_whitespace): Constify and add |
| 5321 | non-const overload. |
| 5322 | (check_for_argument): Likewise. |
| 5323 | |
| 5324 | 2017-04-05 Pedro Alves <palves@redhat.com> |
| 5325 | |
| 5326 | * event-top.c (command_line_handler): Add cast to execute_command |
| 5327 | call. |
| 5328 | * record-btrace.c (cmd_record_btrace_bts_start) |
| 5329 | (cmd_record_btrace_pt_start, cmd_record_btrace_start) |
| 5330 | (cmd_record_btrace_start): Add cast to execute_command call. |
| 5331 | * record-full.c (record_full_goto_insn): |
| 5332 | * record.c (record_start, record_stop): Add cast to |
| 5333 | execute_command_to_string calls. |
| 5334 | (cmd_record_start): Add cast to execute_command calls. |
| 5335 | |
| 5336 | 2017-04-05 Pedro Alves <palves@redhat.com> |
| 5337 | |
| 5338 | * python/python-internal.h (gdb_PyArg_ParseTupleAndKeywords): New |
| 5339 | static inline function. |
| 5340 | * python/py-arch.c (archpy_disassemble): Constify 'keywords' |
| 5341 | array and use gdb_PyArg_ParseTupleAndKeywords. |
| 5342 | * python/py-cmd.c (cmdpy_init): Likewise. |
| 5343 | * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise. |
| 5344 | * python/py-inferior.c (infpy_read_memory, infpy_write_memory) |
| 5345 | (infpy_search_memory): Likewise. |
| 5346 | * python/py-objfile.c (objfpy_add_separate_debug_file) |
| 5347 | (gdbpy_lookup_objfile): Likewise. |
| 5348 | * python/py-symbol.c (gdbpy_lookup_symbol) |
| 5349 | (gdbpy_lookup_global_symbol): Likewise. |
| 5350 | * python/py-type.c (gdbpy_lookup_type): Likewise. |
| 5351 | * python/py-value.c (valpy_lazy_string, valpy_string): Likewise. |
| 5352 | * python/python.c (execute_gdb_command, gdbpy_write, gdbpy_flush): |
| 5353 | Likewise. |
| 5354 | |
| 5355 | 2017-04-05 Pedro Alves <palves@redhat.com> |
| 5356 | |
| 5357 | * python/python-internal.h (gdb_PyGetSetDef): New type. |
| 5358 | * python/py-block.c (block_object_getset) |
| 5359 | (breakpoint_object_getset): Now a gdb_PyGetSetDef array. |
| 5360 | * python/py-event.c (event_object_getset) |
| 5361 | (finish_breakpoint_object_getset): Likewise. |
| 5362 | * python/py-inferior.c (inferior_object_getset): Likewise. |
| 5363 | * python/py-infthread.c (thread_object_getset): Likewise. |
| 5364 | * python/py-lazy-string.c (lazy_string_object_getset): Likewise. |
| 5365 | * python/py-linetable.c (linetable_entry_object_getset): Likewise. |
| 5366 | * python/py-objfile.c (objfile_getset): Likewise. |
| 5367 | * python/py-progspace.c (pspace_getset): Likewise. |
| 5368 | * python/py-record-btrace.c (btpy_insn_getset, btpy_call_getset): |
| 5369 | Likewise. |
| 5370 | * python/py-record.c (recpy_record_getset): Likewise. |
| 5371 | * python/py-symbol.c (symbol_object_getset): Likewise. |
| 5372 | * python/py-symtab.c (symtab_object_getset, sal_object_getset): |
| 5373 | Likewise. |
| 5374 | * python/py-type.c (type_object_getset, field_object_getset): |
| 5375 | Likewise. |
| 5376 | * python/py-value.c (value_object_getset): Likewise. |
| 5377 | |
| 5378 | 2017-04-05 Pedro Alves <palves@redhat.com> |
| 5379 | |
| 5380 | * python/python-internal.h (gdb_PyObject_CallMethod) |
| 5381 | (gdb_PyErr_NewException, gdb_PySys_GetObject, gdb_PySys_SetPath): |
| 5382 | New functions. |
| 5383 | (GDB_PYSYS_SETPATH_CHAR, PyObject_CallMethod, PyErr_NewException) |
| 5384 | (PySys_GetObject, PySys_SetPath): New macros. |
| 5385 | |
| 5386 | 2017-04-05 Pedro Alves <palves@redhat.com> |
| 5387 | |
| 5388 | * mi/mi-cmd-info.c (mi_cmd_info_os): Call info_osdata instead of |
| 5389 | info_osdata_command. |
| 5390 | * osdata.c (info_osdata_command): Rename to ... |
| 5391 | (info_osdata): ... this. Constify 'type' parameter, and remove |
| 5392 | the 'from_tty' parameter. Accept NULL TYPE. |
| 5393 | (info_osdata_command): New function. |
| 5394 | * osdata.h (info_osdata_command): Remove declaration. |
| 5395 | (info_osdata): New declaration. |
| 5396 | |
| 5397 | 2017-04-05 Pedro Alves <palves@redhat.com> |
| 5398 | |
| 5399 | * mi/mi-cmd-break.c (mi_cmd_break_insert_1, mi_cmd_break_insert) |
| 5400 | (mi_cmd_dprintf_insert, mi_cmd_break_passcount) |
| 5401 | (mi_cmd_break_watch, mi_cmd_break_commands): Constify 'command' |
| 5402 | parameter. |
| 5403 | * mi/mi-cmd-catch.c (mi_cmd_catch_assert, mi_cmd_catch_exception) |
| 5404 | (mi_cmd_catch_load, mi_cmd_catch_unload): Constify cmd' parameter. |
| 5405 | * mi/mi-cmd-disas.c (mi_cmd_disassemble): Constify 'command' |
| 5406 | parameter. |
| 5407 | * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_cd, mi_cmd_env_path) |
| 5408 | (mi_cmd_env_dir, mi_cmd_inferior_tty_set, _cmd_inferior_tty_show) |
| 5409 | * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file) |
| 5410 | (mi_cmd_file_list_exec_source_files) |
| 5411 | (mi_cmd_file_list_shared_libraries): Constify 'command' parameter. |
| 5412 | * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions) |
| 5413 | (mi_cmd_info_gdb_mi_command, mi_cmd_info_os): Constify 'command' |
| 5414 | parameter. |
| 5415 | * mi/mi-cmd-stack.c (mi_cmd_enable_frame_filters) |
| 5416 | (mi_cmd_stack_list_frames, mi_cmd_stack_info_depth) |
| 5417 | (mi_cmd_stack_list_locals, mi_cmd_stack_list_args) |
| 5418 | (mi_cmd_stack_list_variables, mi_cmd_stack_select_frame) |
| 5419 | (mi_cmd_stack_info_frame): Constify 'command' parameter. |
| 5420 | * mi/mi-cmd-target.c (mi_cmd_target_file_get) |
| 5421 | (mi_cmd_target_file_put, mi_cmd_target_file_delete): Constify |
| 5422 | 'command' parameter. |
| 5423 | * mi/mi-cmd-var.c (mi_cmd_var_create, mi_cmd_var_delete) |
| 5424 | (mi_cmd_var_set_format, mi_cmd_var_set_visualizer) |
| 5425 | (mi_cmd_var_set_frozen, mi_cmd_var_show_format) |
| 5426 | (mi_cmd_var_info_num_children, mi_cmd_var_list_children) |
| 5427 | (mi_cmd_var_info_type, mi_cmd_var_info_path_expression) |
| 5428 | (mi_cmd_var_info_expression, mi_cmd_var_show_attributes) |
| 5429 | (mi_cmd_var_evaluate_expression, mi_cmd_var_assign) |
| 5430 | (mi_cmd_var_update, mi_cmd_enable_pretty_printing) |
| 5431 | (mi_cmd_var_set_update_range): Constify 'command' parameter. |
| 5432 | * mi/mi-cmds.h (mi_cmd_argv_ftype): Constify 'command' parameter. |
| 5433 | * mi/mi-interp.c (mi_cmd_interpreter_exec): Constify 'command' |
| 5434 | parameter. |
| 5435 | * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_exec_next) |
| 5436 | (mi_cmd_exec_next_instruction, mi_cmd_exec_step) |
| 5437 | (mi_cmd_exec_step_instruction, mi_cmd_exec_finish) |
| 5438 | (mi_cmd_exec_return ,mi_cmd_exec_jump, mi_cmd_exec_continue) |
| 5439 | (mi_cmd_exec_interrupt, mi_cmd_exec_run, mi_cmd_target_detach) |
| 5440 | (mi_cmd_target_flash_erase, mi_cmd_thread_select) |
| 5441 | (mi_cmd_thread_list_ids, mi_cmd_thread_info) |
| 5442 | (mi_cmd_list_thread_groups, mi_cmd_data_list_register_names) |
| 5443 | (mi_cmd_data_list_changed_registers) |
| 5444 | (mi_cmd_data_write_register_values) |
| 5445 | (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory) |
| 5446 | (mi_cmd_data_read_memory_bytes, mi_cmd_data_write_memory) |
| 5447 | (mi_cmd_data_write_memory_bytes, mi_cmd_enable_timings) |
| 5448 | (mi_cmd_list_features, mi_cmd_list_target_features) |
| 5449 | (mi_cmd_add_inferior, mi_cmd_remove_inferior) |
| 5450 | (mi_cmd_trace_define_variable, mi_cmd_trace_list_variables) |
| 5451 | (mi_cmd_trace_find, mi_cmd_trace_save, mi_cmd_trace_start) |
| 5452 | (mi_cmd_trace_status, mi_cmd_trace_stop, mi_cmd_ada_task_info) |
| 5453 | (mi_cmd_trace_frame_collected): Constify 'command' |
| 5454 | parameter. |
| 5455 | * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Constify |
| 5456 | 'command' parameter. |
| 5457 | |
| 5458 | 2017-04-05 Pedro Alves <palves@redhat.com> |
| 5459 | |
| 5460 | * ada-lang.c (ada_completer_word_break_characters): Now a const |
| 5461 | array. |
| 5462 | (ada_get_gdb_completer_word_break_characters): Constify. |
| 5463 | * completer.c (gdb_completer_command_word_break_characters) |
| 5464 | (gdb_completer_file_name_break_characters) |
| 5465 | (gdb_completer_quote_characters): Now const arrays. |
| 5466 | (get_gdb_completer_quote_characters): Constify. |
| 5467 | (set_rl_completer_word_break_characters): New function. |
| 5468 | (set_gdb_completion_word_break_characters) |
| 5469 | (complete_line_internal): Use it. |
| 5470 | * completer.h (get_gdb_completer_quote_characters): Constify. |
| 5471 | (set_rl_completer_word_break_characters): Declare. |
| 5472 | * f-lang.c (f_word_break_characters): Constify. |
| 5473 | * language.c (default_word_break_characters): Constify. |
| 5474 | * language.h (language_defn::la_word_break_characters): Constify. |
| 5475 | (default_word_break_characters): Constify. |
| 5476 | * top.c (init_main): Use set_rl_completer_word_break_characters. |
| 5477 | |
| 5478 | 2017-04-05 Pedro Alves <palves@redhat.com> |
| 5479 | |
| 5480 | * aix-thread.c (aix_thread_pid_to_str) |
| 5481 | (aix_thread_extra_thread_info): Constify. |
| 5482 | * bsd-kvm.c (bsd_kvm_pid_to_str): Constify. |
| 5483 | * bsd-uthread.c (bsd_uthread_extra_thread_info) |
| 5484 | (bsd_uthread_pid_to_str): Constify. |
| 5485 | * corelow.c (core_pid_to_str): Constify. |
| 5486 | * darwin-nat.c (darwin_pid_to_str): Constify. |
| 5487 | * fbsd-nat.c (fbsd_pid_to_str): Constify. |
| 5488 | * fbsd-tdep.c (fbsd_core_pid_to_str, gdbarch_core_pid_to_str): |
| 5489 | Constify. |
| 5490 | * gnu-nat.c (gnu_pid_to_str): Constify. |
| 5491 | * go32-nat.c (go32_pid_to_str): Constify. |
| 5492 | * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Constify. |
| 5493 | * inf-ptrace.c (inf_ptrace_pid_to_str): Constify. |
| 5494 | * inferior.c (inferior_pid_to_str): Constify. |
| 5495 | * linux-nat.c (linux_nat_pid_to_str): Constify. |
| 5496 | * linux-tdep.c (linux_core_pid_to_str): Constify. |
| 5497 | * linux-thread-db.c (thread_db_pid_to_str) |
| 5498 | (thread_db_extra_thread_info): Constify. |
| 5499 | * nto-tdep.c (nto_extra_thread_info): Constify. |
| 5500 | * nto-tdep.h (nto_extra_thread_info): Constify. |
| 5501 | * obsd-nat.c (obsd_pid_to_str): Constify. |
| 5502 | * procfs.c (procfs_pid_to_str): Constify. |
| 5503 | * ravenscar-thread.c (ravenscar_extra_thread_info) |
| 5504 | (ravenscar_pid_to_str): Constify. |
| 5505 | * remote-sim.c (gdbsim_pid_to_str): Constify. |
| 5506 | * remote.c (remote_threads_extra_info, remote_pid_to_str): |
| 5507 | Constify. |
| 5508 | * sol-thread.c (solaris_pid_to_str): Constify. |
| 5509 | * sol2-tdep.c (sol2_core_pid_to_str): Constify. |
| 5510 | * sol2-tdep.h (sol2_core_pid_to_str): Constify. |
| 5511 | * target.c (default_pid_to_str, target_pid_to_str) |
| 5512 | (normal_pid_to_str, default_pid_to_str): Constify. |
| 5513 | * target.h (target_ops::to_pid_to_str) |
| 5514 | (target_ops::to_extra_thread_info): Constify. |
| 5515 | (target_pid_to_str, normal_pid_to_str): Constify. |
| 5516 | * windows-nat.c (windows_pid_to_str): Constify. |
| 5517 | * gdbarch.sh (core_pid_to_str): Constify. |
| 5518 | * target-delegates.c: Regenerate. |
| 5519 | * gdbarch.h, gdbarch.c: Regenerate. |
| 5520 | |
| 5521 | 2017-04-05 Pedro Alves <palves@redhat.com> |
| 5522 | |
| 5523 | * main.c (captured_main_1): Use gdb::unique_xmalloc_ptr to manage |
| 5524 | the memory of the temporary warning_pre_print override. |
| 5525 | * utils.c (warning_pre_print): Constify. |
| 5526 | * utils.h (warning_pre_print): Constify. |
| 5527 | |
| 5528 | 2017-04-05 Pedro Alves <palves@redhat.com> |
| 5529 | |
| 5530 | * cli/cli-cmds.c (shell_escape): Constify 'arg' parameter. |
| 5531 | (shell_command): New function. |
| 5532 | (make_command): Use std::string. |
| 5533 | (init_cli_cmds): Register shell_command instead of shell_escape. |
| 5534 | |
| 5535 | 2017-04-05 Pedro Alves <palves@redhat.com> |
| 5536 | |
| 5537 | * breakpoint.c (dprintf_function, dprintf_channel): Don't initialize. |
| 5538 | * tracepoint.c (default_collect): Don't initialize. |
| 5539 | |
| 5540 | 2017-04-05 Pedro Alves <palves@redhat.com> |
| 5541 | |
| 5542 | * macroexp.c (macro_buffer::shared): Now a bool. |
| 5543 | (init_buffer): Update. |
| 5544 | (init_shared_buffer): Constify 'addr' parameter. |
| 5545 | (substitute_args, expand, macro_expand, macro_expand_next): Remove |
| 5546 | casts. |
| 5547 | |
| 5548 | 2017-04-05 Pedro Alves <palves@redhat.com> |
| 5549 | |
| 5550 | * arm-tdep.c (show_disassembly_style_sfunc): Constify local. |
| 5551 | * disasm.c (set_disassembler_options): Constify local. |
| 5552 | * i386-tdep.c (i386_print_insn): Remove cast and FIXME comment. |
| 5553 | |
| 5554 | 2017-04-05 Sergio Durigan Junior <sergiodj@redhat.com> |
| 5555 | |
| 5556 | PR gdb/21352 |
| 5557 | * tracefile.c (tsave_command): Fix argument parsing for '-r' |
| 5558 | option. |
| 5559 | |
| 5560 | 2017-04-05 Yao Qi <yao.qi@linaro.org> |
| 5561 | |
| 5562 | * frame.c (frame_unwind_register_unsigned): Call |
| 5563 | frame_unwind_register_value. |
| 5564 | |
| 5565 | 2017-04-05 Yao Qi <yao.qi@linaro.org> |
| 5566 | |
| 5567 | * gdb.threads/thread-specific-bp.exp (check_thread_specific_breakpoint): |
| 5568 | Use gdb_test_multiple, and don't match anchor. |
| 5569 | |
| 5570 | 2017-04-05 Pedro Alves <palves@redhat.com> |
| 5571 | |
| 5572 | * MAINTAINERS (Global Maintainers): Add Simon Marchi. |
| 5573 | (Write After Approval): Remove Simon Marchi. |
| 5574 | |
| 5575 | 2017-04-05 Pedro Alves <palves@redhat.com> |
| 5576 | |
| 5577 | * common/gdb_optional.h (optional::optional): Make constexpr and |
| 5578 | initialize m_dummy. |
| 5579 | |
| 5580 | 2017-04-04 John Baldwin <jhb@FreeBSD.org> |
| 5581 | |
| 5582 | * amd64-fbsd-tdep.c: Remove "bsd-uthread.h" include. |
| 5583 | (amd64fbsd_jmp_buf_reg_offset): Remove. |
| 5584 | (amd64fbsd_supply_uthread): Remove function. |
| 5585 | (amd64fbsd_collect_uthread): Remove function. |
| 5586 | (amd64fbsd_init_abi): Don't set bsd-uthread callbacks. |
| 5587 | * configure.tgt (i[34567]86-*-freebsd*): Remove bsd-uthread.o. |
| 5588 | (x86_64-*-freebsd*): Remove bsd-uthread.o. |
| 5589 | (fbsd-nat.c): Update comment. |
| 5590 | * i386-fbsd-tdep.c: Remove "bsd-uthread.h" include. |
| 5591 | (i386fbsd_jmp_buf_reg_offset): Remove. |
| 5592 | (i386fbsd_supply_uthread): Remove function. |
| 5593 | (i386fbsd_collect_uthread): Remove function. |
| 5594 | (i386fbsd_init_abi): Don't set bsd-uthread callbacks. |
| 5595 | |
| 5596 | 2017-04-04 John Baldwin <jhb@FreeBSD.org> |
| 5597 | |
| 5598 | * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-fbsd-tdep.o. |
| 5599 | (ALLDEPFILES): Remove alpha-fbsd-tdep.c |
| 5600 | * NEWS: Mention that support for FreeBSD/alpha was removed. |
| 5601 | * alpha-fbsd-tdep.c: Delete file. |
| 5602 | * config/alpha/fbsd.mh: Delete file. |
| 5603 | * configure.host: Delete alpha*-*-freebsd* and |
| 5604 | alpha*-*-kfreebsd*-gnu. |
| 5605 | * configure.tgt: Delete alpha*-*-freebsd* and |
| 5606 | alpha*-*-kfreebsd*-gnu. |
| 5607 | |
| 5608 | 2017-04-04 John Baldwin <jhb@FreeBSD.org> |
| 5609 | |
| 5610 | * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers, |
| 5611 | amd64bsd_store_inferior_registers): Use ptid from regcache. |
| 5612 | |
| 5613 | 2017-04-04 Pedro Alves <palves@redhat.com> |
| 5614 | |
| 5615 | * dwarf2read.c (lnp_state_machine): Now a class. Initialize all |
| 5616 | data fields, make them private and add "m_" prefixes. |
| 5617 | (lnp_state_machine::lnp_state_machine): New ctor. |
| 5618 | (record_line, check_line_address, handle_set_discriminator) |
| 5619 | (handle_set_address, handle_advance_pc, handle_special_opcode) |
| 5620 | (handle_advance_line, handle_set_file, handle_negate_stmt) |
| 5621 | (handle_const_add_pc, handle_fixed_advance_pc, handle_copy) |
| 5622 | (end_sequence, advance_line): New methods. |
| 5623 | (m_gdbarch, m_record_lines_p): New fields. |
| 5624 | (lnp_reader_state): Delete. |
| 5625 | (dwarf_record_line): Rename to ... |
| 5626 | (lnp_state_machine::record_line): ... adjust. |
| 5627 | (init_lnp_state_machine): Delete. |
| 5628 | (lnp_state_machine::lnp_state_machine): New. |
| 5629 | (check_line_address): Rename to ... |
| 5630 | (lnp_state_machine::check_line_address): This. |
| 5631 | (dwarf_decode_lines_1): Remove reference to "reader_state". |
| 5632 | Adjust lnp_state_machine having a non-default ctor. Use bool. |
| 5633 | State machine internal state manipulation moved to |
| 5634 | lnp_state_machine methods. |
| 5635 | |
| 5636 | 2017-04-04 Pedro Alves <palves@redhat.com> |
| 5637 | |
| 5638 | * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add |
| 5639 | unittests/offset-type-selftests.c. |
| 5640 | (SUBDIR_UNITTESTS_OBS): Add offset-type-selftests.o. |
| 5641 | * common/offset-type.h: New file. |
| 5642 | * common/preprocessor.h: New file. |
| 5643 | * common/traits.h: New file. |
| 5644 | * common/valid-expr.h: New file. |
| 5645 | * dwarf2expr.c: Include "common/underlying.h". Adjust to use |
| 5646 | sect_offset and cu_offset strong typedefs throughout. |
| 5647 | * dwarf2expr.h: Adjust to use sect_offset and cu_offset strong |
| 5648 | typedefs throughout. |
| 5649 | * dwarf2loc.c: Include "common/underlying.h". Adjust to use |
| 5650 | sect_offset and cu_offset strong typedefs throughout. |
| 5651 | * dwarf2read.c: Adjust to use sect_offset and cu_offset strong |
| 5652 | typedefs throughout. |
| 5653 | * gdbtypes.h: Include "common/offset-type.h". |
| 5654 | (cu_offset): Now an offset type (strong typedef) instead of a |
| 5655 | struct. |
| 5656 | (sect_offset): Likewise. |
| 5657 | (union call_site_parameter_u): Rename "param_offset" field to |
| 5658 | "param_cu_off". |
| 5659 | * unittests/offset-type-selftests.c: New file. |
| 5660 | |
| 5661 | 2017-04-04 Pedro Alves <palves@redhat.com> |
| 5662 | |
| 5663 | * common/underlying.h: New file. |
| 5664 | * dwarf2read.c: Include "common/gdb_optional.h" and |
| 5665 | "common/underlying.h". |
| 5666 | (dir_index, file_name_index): New types. |
| 5667 | (file_entry): Use them. |
| 5668 | (file_entry::include): Use to_underlying. |
| 5669 | (line_header::add_file_name): Use dir_index. |
| 5670 | (read_formatted_entries): Use gdb::optional. Read form before |
| 5671 | writting to file_entry. |
| 5672 | (dwarf_decode_line_header): Use dir_index. |
| 5673 | (lnp_state_machine::current_file): Use to_underlying. |
| 5674 | (lnp_state_machine::file): Change type to file_name_index. |
| 5675 | (dwarf_record_line): Use to_underlying. |
| 5676 | (init_lnp_state_machine): Use file_name_index. |
| 5677 | (dwarf_decode_lines_1): Use dir_index and file_name_index. |
| 5678 | |
| 5679 | 2017-04-04 Pedro Alves <palves@redhat.com> |
| 5680 | |
| 5681 | * common/gdb_optional.h (gdb::optiona): Add operator->, operator*, |
| 5682 | operator bool, has_value and get methods. |
| 5683 | |
| 5684 | 2017-04-04 Pedro Alves <palves@redhat.com> |
| 5685 | |
| 5686 | * dwarf2read.c (struct file_entry): Add ctors, and initialize all |
| 5687 | fields. |
| 5688 | (line_header): Initialize all data fields. Change type of |
| 5689 | standard_opcode_lengths to std::unique_ptr<unsigned char[]>. |
| 5690 | Change type of include_dirs to std::vector<const char *>. Remove |
| 5691 | num_include_dirs, include_dirs_size. Change type of file_names to |
| 5692 | std::vector<file_entry>. Remove num_file_names, file_names_size. |
| 5693 | (line_header::line_header): New. |
| 5694 | (line_header::add_include_dir, line_header::add_file_name): New |
| 5695 | methods. |
| 5696 | (line_header::include_dir_at): Remove NULL check. |
| 5697 | (line_header::file_name_at): Add const overload. |
| 5698 | (line_header_up): New unique_ptr typedef. |
| 5699 | (dw2_get_file_names_reader): Use line_header_up. Adjust to use |
| 5700 | std::vector. Remove free_line_header call. |
| 5701 | (dwarf2_build_include_psymtabs): Use line_header_up. Remove |
| 5702 | free_line_header call. |
| 5703 | (free_cu_line_header): Delete. |
| 5704 | (handle_DW_AT_stmt_list, handle_DW_AT_stmt_list) |
| 5705 | (setup_type_unit_groups): Use line_header_up instead of cleanups. |
| 5706 | Adjust to use std::vector. |
| 5707 | (free_line_header): Delete. |
| 5708 | (free_line_header_voidp): Use delete. |
| 5709 | (add_include_dir): Replace with ... |
| 5710 | (line_header::add_include_dir): ... this method. Use std::vector. |
| 5711 | (add_file_name): Replace with ... |
| 5712 | (line_header::add_file_name): ... this method. Use std::vector. |
| 5713 | (add_include_dir_stub): Delete. |
| 5714 | (read_formatted_entries): Remove memset. |
| 5715 | (dwarf_decode_line_header): Return a line_header_up instead of a |
| 5716 | raw pointer. Remove cleanup handling. Pass lambdas to |
| 5717 | read_formatted_entries. Adjust to use line_header methods. |
| 5718 | (dwarf_decode_lines_1): Adjust to use line_header methods. |
| 5719 | (dwarf_decode_lines, file_file_name, file_full_name): Adjust to |
| 5720 | use std::vector. |
| 5721 | |
| 5722 | 2017-04-04 Simon Marchi <simon.marchi@polymtl.ca> |
| 5723 | |
| 5724 | * remote.c (set_general_thread, set_continue_thread): Use ptid_t |
| 5725 | instead of struct ptid. |
| 5726 | |
| 5727 | 2017-05-04 Alan Hayward <alan.hayward@arm.com> |
| 5728 | |
| 5729 | * frame.c (get_frame_register_bytes): Unwind using value. |
| 5730 | (put_frame_register_bytes): Likewise. |
| 5731 | |
| 5732 | 2017-03-30 Iain Buclaw <ibuclaw@gdcproject.org> |
| 5733 | |
| 5734 | * d-exp.y (type_aggregate_p): Treat TYPE_CODE_MODULE as being |
| 5735 | aggregate-like. |
| 5736 | |
| 5737 | 2017-03-29 Jan Kratochvil <jan.kratochvil@redhat.com> |
| 5738 | |
| 5739 | * auto-load.c (auto_load_section_scripts): Check SEC_HAS_CONTENTS. |
| 5740 | |
| 5741 | 2017-03-29 Yao Qi <yao.qi@linaro.org> |
| 5742 | |
| 5743 | * gdbthread.h (struct thread_info): Declare constructor and |
| 5744 | destructor. Add some in-class member initializers. |
| 5745 | * thread.c (free_thread): Remove. |
| 5746 | (init_thread_list): Call delete instead of free_thread. |
| 5747 | (new_thread): Call thread_info constructor. |
| 5748 | (thread_info::thread_info): New function. |
| 5749 | (thread_info::~thread_info): New function. |
| 5750 | (delete_thread_1): Call delete instead of free_thread. |
| 5751 | (make_cleanup_restore_current_thread): Move tp and frame to |
| 5752 | inner block. |
| 5753 | |
| 5754 | 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com> |
| 5755 | |
| 5756 | * arc-tdep.c (arc_frame_cache): Add support for prologue analysis. |
| 5757 | (arc_skip_prologue): Likewise. |
| 5758 | (arc_make_frame_cache): Likewise. |
| 5759 | (arc_pv_get_operand): New function. |
| 5760 | (arc_is_in_prologue): Likewise. |
| 5761 | (arc_analyze_prologue): Likewise. |
| 5762 | (arc_print_frame_cache): Likewise. |
| 5763 | (MAX_PROLOGUE_LENGTH): New constant. |
| 5764 | |
| 5765 | 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com> |
| 5766 | |
| 5767 | * configure.tgt: Add arc-insn.o. |
| 5768 | * arc-tdep.c (arc_delayed_print_insn): Make non-static. |
| 5769 | (dump_arc_instruction_command): New function. |
| 5770 | (arc_fprintf_disasm): Likewise. |
| 5771 | (arc_disassemble_info): Likewise. |
| 5772 | (arc_insn_get_operand_value): Likewise. |
| 5773 | (arc_insn_get_operand_value_signed): Likewise. |
| 5774 | (arc_insn_get_memory_base_reg): Likewise. |
| 5775 | (arc_insn_get_memory_offset): Likewise. |
| 5776 | (arc_insn_get_branch_target): Likewise. |
| 5777 | (arc_insn_dump): Likewise. |
| 5778 | (arc_insn_get_linear_next_pc): Likewise. |
| 5779 | * arc-tdep.h (arc_delayed_print_insn): Add function declaration. |
| 5780 | (arc_disassemble_info): Likewise. |
| 5781 | (arc_insn_get_branch_target): Likewise. |
| 5782 | (arc_insn_get_linear_next_pc): Likewise. |
| 5783 | * NEWS: Mention new "maint print arc arc-instruction". |
| 5784 | |
| 5785 | 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com> |
| 5786 | |
| 5787 | * arc-tdep (maintenance_print_arc_list): New variable. |
| 5788 | (maintenance_print_arc_command): New function. |
| 5789 | |
| 5790 | 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com> |
| 5791 | |
| 5792 | * arc-tdep.c (core_v2_register_names, core_arcompact_register_names) |
| 5793 | Add "limm" and "reserved". |
| 5794 | (arc_cannot_fetch_register, arc_cannot_store_register): Add |
| 5795 | ARC_RESERVED_REGNUM and ARC_LIMM_REGNUM. |
| 5796 | * arc-tdep.h (arc_regnum): Likewise. |
| 5797 | |
| 5798 | 2017-03-27 Max Filippov <jcmvbkbc@gmail.com> |
| 5799 | |
| 5800 | * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect |
| 5801 | for THREADPTR register. |
| 5802 | (supply_gregset_reg): Call regcache_raw_supply for THREADPTR |
| 5803 | register. |
| 5804 | * xtensa-tdep.c (XTENSA_DBREGN_UREG): New definition. |
| 5805 | (xtensa_derive_tdep): Initialize tdep->threadptr_regnum. |
| 5806 | * xtensa-tdep.h (gdbarch_tdep::threadptr_regnum): New field. |
| 5807 | |
| 5808 | 2017-03-27 Max Filippov <jcmvbkbc@gmail.com> |
| 5809 | |
| 5810 | * xtensa-tdep.c (xtensa_pseudo_register_read): Treat all |
| 5811 | registers above gdbarch_num_regs (gdbarch) as privileged in |
| 5812 | call0 ABI. |
| 5813 | |
| 5814 | 2017-03-27 Max Filippov <jcmvbkbc@gmail.com> |
| 5815 | |
| 5816 | * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect |
| 5817 | for a single specified register or for all registers in |
| 5818 | a0_base..a0_base + C0_NREGS range. |
| 5819 | (supply_gregset_reg): Call regcache_raw_supply for a single |
| 5820 | specified register or for all registers in a0_base..a0_base + |
| 5821 | C0_NREGS range. |
| 5822 | |
| 5823 | 2017-03-27 Max Filippov <jcmvbkbc@gmail.com> |
| 5824 | |
| 5825 | * arch/xtensa.h (C0_NREGS): Add definition. |
| 5826 | * xtensa-tdep.c (C0_NREGS): Remove definition. |
| 5827 | |
| 5828 | 2017-03-27 Max Filippov <jcmvbkbc@gmail.com> |
| 5829 | |
| 5830 | * xtensa-tdep.c (xtensa_scan_prologue, call0_analyze_prologue): |
| 5831 | Drop xtensa_default_isa initialization. |
| 5832 | (xtensa_gdbarch_init): Initialize xtensa_default_isa. |
| 5833 | |
| 5834 | 2017-03-27 Pedro Alves <palves@redhat.com> |
| 5835 | |
| 5836 | * dwarf2read.c (file_entry) <dir_index>: Add comment. |
| 5837 | (file_entry::include_dir): New method. |
| 5838 | (line_header::include_dir_at, line_header::file_name_at): New |
| 5839 | methods. |
| 5840 | (setup_type_unit_groups, setup_type_unit_groups) |
| 5841 | (psymtab_include_file_name): Simplify using the new methods. |
| 5842 | (lnp_state_machine) <the_line_header>: New field. |
| 5843 | <file>: Add comment. |
| 5844 | (lnp_state_machine::current_file): New method. |
| 5845 | (dwarf_record_line): Simplify using the new methods. |
| 5846 | (init_lnp_state_machine): Initialize the "the_line_header" field. |
| 5847 | (dwarf_decode_lines_1, dwarf_decode_lines, file_file_name): |
| 5848 | Simplify using the new methods. |
| 5849 | |
| 5850 | 2017-03-27 Pedro Alves <palves@redhat.com> |
| 5851 | |
| 5852 | * cp-name-parser.y (make_empty): Delete. |
| 5853 | (demangler_special, nested_name, ptr_operator, array_indicator) |
| 5854 | (direct_declarator, declarator_1): Use fill_comp instead of |
| 5855 | make_empty. |
| 5856 | |
| 5857 | 2017-03-27 Pedro Alves <palves@redhat.com> |
| 5858 | |
| 5859 | * xml-support.h (gdb_xml_debug): Pass a "first-to-check" argument |
| 5860 | to ATTRIBUTE_PRINTF. |
| 5861 | * solib-target.c (library_list_start_list): Print "string" not |
| 5862 | "version". |
| 5863 | * xml-tdesc.c (tdesc_start_field): Pass "field_name" to |
| 5864 | gdb_xml_error call. |
| 5865 | |
| 5866 | 2017-03-27 Pedro Alves <palves@redhat.com> |
| 5867 | |
| 5868 | * dwarf2read.c (struct file_and_directory): New. |
| 5869 | (dwarf2_get_dwz_file): Adjust to use std::string. |
| 5870 | (dw2_get_file_names_reader): Adjust to use file_and_directory. |
| 5871 | (find_file_and_directory): Adjust to return a file_and_directory |
| 5872 | object. |
| 5873 | (read_file_scope): Adjust to use file_and_directory. Remove |
| 5874 | make_cleanup/do_cleanups calls. |
| 5875 | (open_and_init_dwp_file): Adjust to use std::string. Remove |
| 5876 | make_cleanup/do_cleanups calls. |
| 5877 | * python/python.c (do_start_initialization): Adjust to ldirname |
| 5878 | returning a std::string. |
| 5879 | * utils.c (ldirname): Now returns a std::string. |
| 5880 | * utils.h (ldirname): Change return type to std::string. |
| 5881 | * xml-syscall.c (xml_init_syscalls_info): Adjust to ldirname |
| 5882 | returning a std::string. |
| 5883 | * xml-tdesc.c (file_read_description_xml): Likewise. |
| 5884 | |
| 5885 | 2017-03-24 Alan Hayward <alan.hayward@arm.com> |
| 5886 | |
| 5887 | * regcache.c (regcache_debug_print_register): New function. |
| 5888 | * regcache.h (regcache_debug_print_register): New declaration. |
| 5889 | * target.c (debug_print_register): Remove. |
| 5890 | (target_fetch_registers): Call regcache_debug_print_register. |
| 5891 | (target_store_registers): Likewise. |
| 5892 | |
| 5893 | 2017-03-24 Pádraig Brady <pbrady@fb.com> |
| 5894 | |
| 5895 | * dwarf2read.c (setup_type_unit_groups): Ensure dir_index doesn't |
| 5896 | reference beyond the 'lh->include_dirs' array before accessing to |
| 5897 | it. |
| 5898 | (psymtab_include_file_name): Likewise. |
| 5899 | (dwarf_decode_lines_1): Likewise. |
| 5900 | (dwarf_decode_lines): Likewise. |
| 5901 | (file_file_name): Likewise. |
| 5902 | |
| 5903 | 2017-03-23 Simon Marchi <simon.marchi@ericsson.com> |
| 5904 | |
| 5905 | * fbsd-tdep.c (fbsd_corefile_thread): Don't set/restore |
| 5906 | inferior_ptid. |
| 5907 | * proc-service.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, |
| 5908 | ps_lsetfpregs): Likewise. |
| 5909 | * regcache.c (regcache_raw_update, regcache_raw_write): Likewise. |
| 5910 | * sol-thread.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, |
| 5911 | ps_lsetfpregs): Likewise. |
| 5912 | * target.c (target_fetch_registers, target_store_registers): |
| 5913 | Remove asserts. |
| 5914 | |
| 5915 | 2017-03-23 Alan Hayward <alan.hayward@arm.com> |
| 5916 | |
| 5917 | * sol-thread.c (sol_thread_store_registers): Remove regcache calls. |
| 5918 | |
| 5919 | 2017-03-23 Yao Qi <yao.qi@linaro.org> |
| 5920 | |
| 5921 | * aarch64-tdep.c (aarch64_process_record_test): Declare. |
| 5922 | (_initialize_aarch64_tdep): Register it. |
| 5923 | (aarch64_record_load_store): Handle PRFM instruction. |
| 5924 | (aarch64_process_record_test): New function. |
| 5925 | |
| 5926 | 2017-03-23 Yao Qi <yao.qi@linaro.org> |
| 5927 | |
| 5928 | * aarch64-tdep.c (aarch64_record_load_store): Fix code |
| 5929 | indentation. |
| 5930 | |
| 5931 | 2017-03-23 Yao Qi <yao.qi@linaro.org> |
| 5932 | |
| 5933 | * aarch64-tdep.c: Remove AARCH64_RECORD_FAILURE. |
| 5934 | |
| 5935 | 2017-03-23 Philipp Rudo <prudo@linux.vnet.ibm.com> |
| 5936 | |
| 5937 | python/python.c (do_start_initialization): Fix memory leak. |
| 5938 | |
| 5939 | 2017-03-22 Simon Marchi <simon.marchi@polymtl.ca> |
| 5940 | |
| 5941 | * inf-ptrace.c (inf_ptrace_xfer_partial): Get pid from ptid |
| 5942 | using get_ptrace_pid. |
| 5943 | * linux-nat.c (linux_nat_xfer_partial): Don't set/restore |
| 5944 | inferior_ptid. |
| 5945 | (linux_proc_xfer_partial, linux_proc_xfer_spu): Use lwp of |
| 5946 | inferior_ptid instead of pid. |
| 5947 | |
| 5948 | 2017-03-22 Yao Qi <yao.qi@linaro.org> |
| 5949 | |
| 5950 | * aarch64-tdep.c: Wrap locally used classes in anonymous |
| 5951 | namespace. |
| 5952 | * arm-tdep.c: Likewise. |
| 5953 | * linespec.c: Likewise. |
| 5954 | * ui-out.c: Likewise. |
| 5955 | |
| 5956 | 2017-03-22 Jonah Graham <jonah@kichwacoders.com> |
| 5957 | |
| 5958 | PR gdb/19637 |
| 5959 | * python/lib/gdb/printer/bound_registers.py: Import sys. |
| 5960 | |
| 5961 | 2017-03-21 Simon Marchi <simon.marchi@ericsson.com> |
| 5962 | |
| 5963 | * windows-nat.c (do_windows_fetch_inferior_registers): Add |
| 5964 | windows_thread_info parameter and use it instead of |
| 5965 | current_thread. |
| 5966 | (windows_fetch_inferior_registers): Don't set current_thread, |
| 5967 | pass the thread to do_windows_fetch_inferior_registers. Use |
| 5968 | ptid from regcache instead of inferior_ptid. |
| 5969 | (do_windows_store_inferior_registers): Add windows_thread_info |
| 5970 | parameter and use it instead of current_thread. |
| 5971 | (windows_store_inferior_registers): Don't set current_thread, |
| 5972 | pass the thread to do_windows_store_inferior_registers. Use |
| 5973 | ptid from regcache instead of inferior_ptid. |
| 5974 | |
| 5975 | 2017-03-21 Simon Marchi <simon.marchi@ericsson.com> |
| 5976 | |
| 5977 | * ser-mingw.c (ser_windows_raw): Remove reference to |
| 5978 | struct serial::current_timeout. |
| 5979 | |
| 5980 | 2017-03-21 Ivo Raisr <ivo.raisr@oracle.com> |
| 5981 | |
| 5982 | PR tdep/20928 |
| 5983 | * gdb/sparc-tdep.h (gdbarch_tdep) <sparc64_ccr_type>: New field. |
| 5984 | * gdb/sparc64-tdep.c (sparc64_ccr_type): New function. |
| 5985 | (sparc64_fsr_type): Fix %fsr decoding. |
| 5986 | |
| 5987 | 2017-03-21 Tim Wiederhake <tim.wiederhake@intel.com> |
| 5988 | |
| 5989 | * python/py-record-btrace.c (btpy_insn_data): Change return type |
| 5990 | for Python 2. |
| 5991 | |
| 5992 | 2017-03-20 Simon Marchi <simon.marchi@polymtl.ca> |
| 5993 | |
| 5994 | * spu-linux-nat.c (spu_fetch_inferior_registers, |
| 5995 | spu_store_inferior_registers): Use ptid from regcache, set and |
| 5996 | restore inferior_ptid. |
| 5997 | * spu-multiarch.c (spu_fetch_registers, spu_store_registers): |
| 5998 | Likewise. |
| 5999 | |
| 6000 | 2017-03-20 Simon Marchi <simon.marchi@polymtl.ca> |
| 6001 | |
| 6002 | * i386-linux-nat.c (fetch_register, store_register, |
| 6003 | i386_linux_fetch_inferior_registers, |
| 6004 | i386_linux_store_inferior_registers): Use ptid from regcache. |
| 6005 | * ia64-linux-nat.c (ia64_linux_fetch_register, |
| 6006 | ia64_linux_store_register): Likewise. |
| 6007 | * inf-ptrace.c (inf_ptrace_fetch_register, |
| 6008 | inf_ptrace_store_register): Likewise. |
| 6009 | * m32r-linux-nat.c (m32r_linux_fetch_inferior_registers, |
| 6010 | m32r_linux_store_inferior_registers): Likewise. |
| 6011 | * m68k-bsd-nat.c (m68kbsd_fetch_inferior_registers, |
| 6012 | m68kbsd_store_inferior_registers): Likewise. |
| 6013 | * m68k-linux-nat.c (fetch_register, store_register, |
| 6014 | m68k_linux_fetch_inferior_registers, |
| 6015 | m68k_linux_store_inferior_registers): Likewise. |
| 6016 | * m88k-bsd-nat.c (m88kbsd_fetch_inferior_registers, |
| 6017 | m88kbsd_store_inferior_registers): Likewise. |
| 6018 | * mips-fbsd-nat.c (mips_fbsd_fetch_inferior_registers, |
| 6019 | mips_fbsd_store_inferior_registers): Likewise. |
| 6020 | * mips-linux-nat.c (mips64_linux_regsets_fetch_registers, |
| 6021 | mips64_linux_regsets_store_registers): Likewise. |
| 6022 | * mips-nbsd-nat.c (mipsnbsd_fetch_inferior_registers, |
| 6023 | mipsnbsd_store_inferior_registers): Likewise. |
| 6024 | * mips-obsd-nat.c (mips64obsd_fetch_inferior_registers, |
| 6025 | mips64obsd_store_inferior_registers): Likewise. |
| 6026 | * nto-procfs.c (procfs_fetch_registers, procfs_store_registers): |
| 6027 | Likewise. |
| 6028 | * ppc-fbsd-nat.c (ppcfbsd_fetch_inferior_registers, |
| 6029 | ppcfbsd_store_inferior_registers): Likewise. |
| 6030 | * ppc-linux-nat.c (ppc_linux_fetch_inferior_registers, |
| 6031 | ppc_linux_store_inferior_registers): Likewise. |
| 6032 | * ppc-nbsd-nat.c (ppcnbsd_fetch_inferior_registers, |
| 6033 | ppcnbsd_store_inferior_registers): Likewise. |
| 6034 | * ppc-obsd-nat.c (ppcobsd_fetch_registers, |
| 6035 | ppcobsd_store_registers): Likewise. |
| 6036 | * procfs.c (procfs_fetch_registers, procfs_store_registers): |
| 6037 | Likewise. |
| 6038 | * ravenscar-thread.c (ravenscar_fetch_registers, |
| 6039 | ravenscar_store_registers, ravenscar_prepare_to_store): |
| 6040 | Likewise. |
| 6041 | * record-btrace.c (record_btrace_fetch_registers, |
| 6042 | record_btrace_store_registers, record_btrace_prepare_to_store): |
| 6043 | Likewise. |
| 6044 | * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): |
| 6045 | Lookup inferior using ptid from regcache, instead of |
| 6046 | current_inferior. |
| 6047 | * remote.c (remote_fetch_registers, remote_store_registers): Use |
| 6048 | ptid from regcache. |
| 6049 | * rs6000-nat.c (fetch_register, store_register): Likewise. |
| 6050 | * s390-linux-nat.c (s390_linux_fetch_inferior_registers, |
| 6051 | s390_linux_store_inferior_registers): Likewise. |
| 6052 | * sh-nbsd-nat.c (shnbsd_fetch_inferior_registers, |
| 6053 | shnbsd_store_inferior_registers): Likewise. |
| 6054 | * sol-thread.c (sol_thread_fetch_registers, |
| 6055 | sol_thread_store_registers): Likewise. |
| 6056 | * sparc-nat.c (sparc_fetch_inferior_registers, |
| 6057 | sparc_store_inferior_registers): Likewise. |
| 6058 | * tilegx-linux-nat.c (fetch_inferior_registers, |
| 6059 | store_inferior_registers): Likewise. |
| 6060 | * vax-bsd-nat.c (vaxbsd_fetch_inferior_registers, |
| 6061 | vaxbsd_store_inferior_registers): Likewise. |
| 6062 | * xtensa-linux-nat.c (fetch_gregs, store_gregs, fetch_xtregs, |
| 6063 | store_xtregs): Likewise. |
| 6064 | |
| 6065 | 2017-03-20 Artemiy Volkov <artemiyv@acm.org> |
| 6066 | |
| 6067 | PR gdb/14441 |
| 6068 | * NEWS: Mention support for rvalue references in GDB and python. |
| 6069 | * doc/gdb.texinfo (C Plus Plus Expressions): Mention that GDB |
| 6070 | supports both lvalue and rvalue references. |
| 6071 | |
| 6072 | 2017-03-20 Artemiy Volkov <artemiyv@acm.org> |
| 6073 | |
| 6074 | PR gdb/14441 |
| 6075 | * gdbtypes.c (rank_one_type): Implement overloading |
| 6076 | resolution rules regarding rvalue references. |
| 6077 | |
| 6078 | 2017-03-20 Artemiy Volkov <artemiyv@acm.org> |
| 6079 | |
| 6080 | PR gdb/14441 |
| 6081 | * aarch64-tdep.c (aarch64_type_align) |
| 6082 | (aarch64_extract_return_value, aarch64_store_return_value): Change |
| 6083 | lvalue reference type checks to general reference type checks. |
| 6084 | * amd64-tdep.c (amd64_classify): Likewise. |
| 6085 | * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register): |
| 6086 | Likewise. |
| 6087 | * arm-tdep.c (arm_type_align, arm_extract_return_value) |
| 6088 | (arm_store_return_value): Likewise. |
| 6089 | * ax-gdb.c (gen_fetch, gen_cast): Likewise. |
| 6090 | * c-typeprint.c (c_print_type): Likewise. |
| 6091 | * c-varobj.c (adjust_value_for_child_access, c_value_of_variable) |
| 6092 | (cplus_number_of_children, cplus_describe_child): Likewise. |
| 6093 | * compile/compile-c-symbols.c (generate_vla_size): Likewise. |
| 6094 | * completer.c (expression_completer): Likewise. |
| 6095 | * cp-support.c (make_symbol_overload_list_adl_namespace): |
| 6096 | Likewise. |
| 6097 | * darwin-nat-info.c (info_mach_region_command): Likewise. |
| 6098 | * dwarf2loc.c (entry_data_value_coerce_ref) |
| 6099 | (value_of_dwarf_reg_entry): Likewise. |
| 6100 | * eval.c (ptrmath_type_p, evaluate_subexp_standard) |
| 6101 | (evaluate_subexp_for_address, evaluate_subexp_for_sizeof): |
| 6102 | Likewise. |
| 6103 | * findvar.c (extract_typed_address, store_typed_address): |
| 6104 | Likewise. |
| 6105 | * gdbtypes.c (rank_one_type): Likewise. |
| 6106 | * hppa-tdep.c (hppa64_integral_or_pointer_p): Likewise. |
| 6107 | * infcall.c (value_arg_coerce): Likewise. |
| 6108 | * language.c (pointer_type): Likewise. |
| 6109 | * m32c-tdep.c (m32c_reg_arg_type, m32c_m16c_address_to_pointer): |
| 6110 | Likewise. |
| 6111 | * m88k-tdep.c (m88k_integral_or_pointer_p): Likewise. |
| 6112 | * mn10300-tdep.c (mn10300_type_align): Likewise. |
| 6113 | * msp430-tdep.c (msp430_push_dummy_call): Likewise. |
| 6114 | * ppc-sysv-tdep.c (do_ppc_sysv_return_value) |
| 6115 | (ppc64_sysv_abi_push_param, ppc64_sysv_abi_return_value): |
| 6116 | Likewise. |
| 6117 | * printcmd.c (print_formatted, x_command): Likewise. |
| 6118 | * python/py-type.c (typy_get_composite, typy_template_argument): |
| 6119 | Likewise. |
| 6120 | * python/py-value.c (valpy_referenced_value) |
| 6121 | (valpy_get_dynamic_type, value_has_field): Likewise. |
| 6122 | * s390-linux-tdep.c (s390_function_arg_integer): Likewise. |
| 6123 | * sparc-tdep.c (sparc_integral_or_pointer_p): Likewise. |
| 6124 | * sparc64-tdep.c (sparc64_integral_or_pointer_p): Likewise. |
| 6125 | * spu-tdep.c (spu_scalar_value_p): Likewise. |
| 6126 | * symtab.c (lookup_symbol_aux): Likewise. |
| 6127 | * typeprint.c (whatis_exp, print_type_scalar): Likewise. |
| 6128 | * valarith.c (binop_types_user_defined_p, unop_user_defined_p): |
| 6129 | Likewise. |
| 6130 | * valops.c (value_cast_pointers, value_cast) |
| 6131 | (value_reinterpret_cast, value_dynamic_cast, value_addr, typecmp) |
| 6132 | (value_struct_elt, value_struct_elt_bitpos) |
| 6133 | (value_find_oload_method_list, find_overload_match) |
| 6134 | (value_rtti_indirect_type): Likewise. |
| 6135 | * valprint.c (val_print_scalar_type_p, generic_val_print): |
| 6136 | Likewise. |
| 6137 | * value.c (value_actual_type, value_as_address, unpack_long) |
| 6138 | (pack_long, pack_unsigned_long, coerce_ref_if_computed) |
| 6139 | (coerce_ref): Likewise. |
| 6140 | * varobj.c (varobj_get_value_type): Likewise. |
| 6141 | |
| 6142 | 2017-03-20 Artemiy Volkov <artemiyv@acm.org> |
| 6143 | |
| 6144 | PR gdb/14441 |
| 6145 | * doc/python.texi (Types in Python): Add TYPE_CODE_RVALUE_REF to |
| 6146 | table of constants. |
| 6147 | * python/lib/gdb/command/explore.py: Support exploring values |
| 6148 | of rvalue reference types. |
| 6149 | * python/lib/gdb/types.py: Implement get_basic_type() for |
| 6150 | rvalue reference types. |
| 6151 | * python/py-type.c (pyty_codes) <TYPE_CODE_RVALUE_REF>: New |
| 6152 | constant. |
| 6153 | * python/py-value.c (valpy_getitem): Add an rvalue reference |
| 6154 | check. |
| 6155 | (valpy_reference_value): Add new parameter "refcode". |
| 6156 | (valpy_lvalue_reference_value, valpy_rvalue_reference_value): |
| 6157 | New wrappers for valpy_reference_value(). |
| 6158 | * python/py-xmethods.c (gdbpy_get_xmethod_result_type) |
| 6159 | (gdbpy_invoke_xmethod): Likewise. |
| 6160 | |
| 6161 | 2017-03-20 Artemiy Volkov <artemiyv@acm.org> |
| 6162 | |
| 6163 | PR gdb/14441 |
| 6164 | * dwarf2read.c (process_die, read_type_die_1): Handle the |
| 6165 | DW_TAG_rvalue_reference_type DIE. |
| 6166 | (read_tag_reference_type): Add new parameter "refcode". |
| 6167 | |
| 6168 | 2017-03-20 Artemiy Volkov <artemiyv@acm.org> |
| 6169 | |
| 6170 | PR gdb/14441 |
| 6171 | * c-typeprint.c (c_print_type, c_type_print_varspec_prefix) |
| 6172 | (c_type_print_modifier, c_type_print_varspec_suffix) |
| 6173 | (c_type_print_base): Support printing rvalue reference types. |
| 6174 | * c-valprint.c (c_val_print, c_value_print): Support printing |
| 6175 | rvalue reference values. |
| 6176 | |
| 6177 | 2017-03-20 Artemiy Volkov <artemiyv@acm.org> |
| 6178 | |
| 6179 | PR gdb/14441 |
| 6180 | * cp-name-parser.y (ptr_operator): Handle the '&&' token in |
| 6181 | typename. |
| 6182 | * cp-support.c (replace_typedefs): Handle |
| 6183 | DEMANGLE_COMPONENT_RVALUE_REFERENCE. |
| 6184 | * python/py-type.c (typy_lookup_type): Likewise. |
| 6185 | |
| 6186 | 2017-03-20 Artemiy Volkov <artemiyv@acm.org> |
| 6187 | |
| 6188 | PR gdb/14441 |
| 6189 | * c-exp.y (ptr_operator): Handle the '&&' token in the typename. |
| 6190 | * parse.c (insert_type): Change assert statement. |
| 6191 | (follow_types): Handle rvalue reference types. |
| 6192 | * parser-defs.h (enum type_pieces) <tp_rvalue_reference>: New |
| 6193 | constant. |
| 6194 | |
| 6195 | 2017-03-20 Artemiy Volkov <artemiyv@acm.org> |
| 6196 | |
| 6197 | PR gdb/14441 |
| 6198 | * ada-lang.c (ada_evaluate_subexp): Adhere to the new |
| 6199 | value_ref() interface. |
| 6200 | * c-valprint.c (c_value_print): Likewise. |
| 6201 | * infcall.c (value_arg_coerce): Likewise. |
| 6202 | * python/py-value.c (valpy_reference_value): Likewise. |
| 6203 | * valops.c (value_cast, value_reinterpret_cast) |
| 6204 | (value_dynamic_cast, typecmp): Likewise. |
| 6205 | (value_ref): Parameterize by kind of return value reference type. |
| 6206 | * value.h (value_ref): Add new parameter "refcode". |
| 6207 | |
| 6208 | 2017-03-20 Artemiy Volkov <artemiyv@acm.org> |
| 6209 | |
| 6210 | PR gdb/14441 |
| 6211 | * dwarf2read.c (read_tag_reference_type): Use |
| 6212 | lookup_lvalue_reference_type() instead of lookup_reference_type(). |
| 6213 | * eval.c (evaluate_subexp_standard): Likewise. |
| 6214 | * f-exp.y: Likewise. |
| 6215 | * gdbtypes.c (make_reference_type, lookup_reference_type): |
| 6216 | Generalize with rvalue reference types. |
| 6217 | (lookup_lvalue_reference_type, lookup_rvalue_reference_type): New |
| 6218 | convenience wrappers for lookup_reference_type(). |
| 6219 | * gdbtypes.h (make_reference_type, lookup_reference_type): Add a |
| 6220 | reference kind parameter. |
| 6221 | (lookup_lvalue_reference_type, lookup_rvalue_reference_type): Add |
| 6222 | wrappers for lookup_reference_type(). |
| 6223 | * guile/scm-type.c (gdbscm_type_reference): Use |
| 6224 | lookup_lvalue_reference_type() instead of lookup_reference_type(). |
| 6225 | * guile/scm-value.c (gdbscm_value_dynamic_type): Likewise. |
| 6226 | * parse.c (follow_types): Likewise. |
| 6227 | * python/py-type.c (typy_reference, typy_lookup_type): Likewise. |
| 6228 | * python/py-value.c (valpy_get_dynamic_type, valpy_getitem): |
| 6229 | Likewise. |
| 6230 | * python/py-xmethods.c (gdbpy_get_xmethod_result_type) |
| 6231 | (gdbpy_invoke_xmethod): Likewise. |
| 6232 | * stabsread.c: Provide extra argument to make_reference_type() |
| 6233 | call. |
| 6234 | * valops.c (value_ref, value_rtti_indirect_type): Use |
| 6235 | lookup_lvalue_reference_type() instead of lookup_reference_type(). |
| 6236 | |
| 6237 | 2017-03-20 Artemiy Volkov <artemiyv@acm.org> |
| 6238 | |
| 6239 | PR gdb/14441 |
| 6240 | * gdbtypes.h (enum type_code) <TYPE_CODE_RVALUE_REF>: New constant. |
| 6241 | (TYPE_IS_REFERENCE): New macro. |
| 6242 | (struct type): Add rvalue_reference_type field. |
| 6243 | (TYPE_RVALUE_REFERENCE_TYPE): New macro. |
| 6244 | |
| 6245 | 2017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com> |
| 6246 | |
| 6247 | * NEWS: Add an entry about new '-file-list-shared-libraries' command. |
| 6248 | * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): |
| 6249 | New function definition. |
| 6250 | * mi/mi-cmds.c (mi_cmds): Add -file-list-shared-libraries command. |
| 6251 | * mi/mi-cmds.h (mi_cmd_file_list_shared_libraries): |
| 6252 | New function declaration. |
| 6253 | * mi/mi-interp.c (mi_output_solib_attribs): New Function. |
| 6254 | * mi/mi-interp.h: New file. |
| 6255 | * solib.c (info_sharedlibrary_command): Replace for loop with |
| 6256 | ALL_SO_LIBS macro |
| 6257 | * solib.h (update_solib_list): New function declaration. |
| 6258 | (so_list_head): Move macro. |
| 6259 | * solist.h (ALL_SO_LIBS): New macro. |
| 6260 | |
| 6261 | 2017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com> |
| 6262 | |
| 6263 | * infcmd.c (post_create_inferior): Remove unused argument in |
| 6264 | call to solib_add. |
| 6265 | * remote.c (remote_start_remote): Likewise. |
| 6266 | * solib-frv.c (frv_fetch_objfile_link_map): Likewise. |
| 6267 | * solib-svr4.c: (svr4_fetch_objfile_link_map): Likewise. |
| 6268 | (enable_break): Likewise. |
| 6269 | * solib.c (update_solib_list): Remove unused target argument |
| 6270 | and its documentation. |
| 6271 | (solib_add): Remove unused target argument. Remove unused |
| 6272 | argument in call to update_solib_list. |
| 6273 | (info_sharedlibrary_command): Remove unused argument in call |
| 6274 | to update_solib_list. |
| 6275 | (sharedlibrary_command): Remove unused argument in call to |
| 6276 | solib_add. |
| 6277 | (handle_solib_event): Likewise. |
| 6278 | (reload_shared_libraries): Likewise. |
| 6279 | * solib.h (solib_add): Remove unused target argument. |
| 6280 | |
| 6281 | 2017-03-20 Andreas Arnez <arnez@linux.vnet.ibm.com> |
| 6282 | |
| 6283 | * s390-linux-tdep.c (is_rsi, is_rie): Remove functions. |
| 6284 | (s390_displaced_step_fixup): Cover relative branches with the |
| 6285 | default fixup handling. This fixes lack of support for some |
| 6286 | relative branch instructions. |
| 6287 | |
| 6288 | 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca> |
| 6289 | |
| 6290 | * i386-gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Use |
| 6291 | ptid from regcache. |
| 6292 | |
| 6293 | 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca> |
| 6294 | |
| 6295 | * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers, |
| 6296 | i386_darwin_store_inferior_registers): Use ptid from regcache. |
| 6297 | |
| 6298 | 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca> |
| 6299 | |
| 6300 | * i386-bsd-nat.c (i386bsd_fetch_inferior_registers, |
| 6301 | i386bsd_store_inferior_registers): Use ptid from regcache. |
| 6302 | |
| 6303 | 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca> |
| 6304 | |
| 6305 | * hppa-obsd-nat.c (hppaobsd_fetch_registers, |
| 6306 | hppaobsd_store_registers): Use ptid from regcache. |
| 6307 | |
| 6308 | 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca> |
| 6309 | |
| 6310 | * hppa-nbsd-nat.c (hppanbsd_fetch_registers, |
| 6311 | hppanbsd_store_registers): Use ptid from regcache. |
| 6312 | |
| 6313 | 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca> |
| 6314 | |
| 6315 | * hppa-linux-nat.c (fetch_register, store_register): Use ptid |
| 6316 | from regcache. Use get_ptrace_pid. |
| 6317 | |
| 6318 | 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca> |
| 6319 | |
| 6320 | * corelow.c (get_core_register_section): Use ptid from regcache, |
| 6321 | update doc. |
| 6322 | |
| 6323 | 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca> |
| 6324 | |
| 6325 | * bsd-uthread.c (bsd_uthread_fetch_registers, |
| 6326 | bsd_uthread_store_registers): Use ptid from regcache, set and |
| 6327 | restore inferior_ptid. |
| 6328 | |
| 6329 | 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca> |
| 6330 | |
| 6331 | * arm-nbsd-nat.c (fetch_register, fetch_regs, fetch_fp_register, |
| 6332 | fetch_fp_regs, store_register, store_regs, store_fp_register, |
| 6333 | store_fp_regs): Use ptid from regcache. |
| 6334 | |
| 6335 | 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca> |
| 6336 | |
| 6337 | * arm-linux-nat.c (fetch_fpregs, store_fpregs, fetch_regs, |
| 6338 | store_regs, fetch_wmmx_regs, store_wmmx_regs, fetch_vfp_regs, |
| 6339 | store_vfp_regs): Use ptid from regcache. |
| 6340 | |
| 6341 | 2017-03-17 Pedro Alves <palves@redhat.com> |
| 6342 | |
| 6343 | PR remote/21188 |
| 6344 | * ser-base.c (ser_base_wait_for): Add comment. |
| 6345 | (do_ser_base_readchar): Improve comment based on the ser-unix.c's |
| 6346 | version. |
| 6347 | * ser-unix.c (hardwire_raw): Remove reference to |
| 6348 | scb->current_timeout. |
| 6349 | (wait_for, do_hardwire_readchar, hardwire_readchar): Delete. |
| 6350 | (hardwire_ops): Install ser_base_readchar instead of |
| 6351 | hardwire_readchar. |
| 6352 | * serial.h (struct serial) <current_timeout, timeout_remaining>: |
| 6353 | Remove fields. |
| 6354 | |
| 6355 | 2017-03-17 Jonah Graham <jonah@kichwacoders.com> |
| 6356 | |
| 6357 | PR gdb/19637 |
| 6358 | * python/lib/gdb/printer/bound_registers.py: Add support for |
| 6359 | Python 3. |
| 6360 | |
| 6361 | 2017-03-16 Andreas Arnez <arnez@linux.vnet.ibm.com> |
| 6362 | |
| 6363 | * dwarf2loc.c (indirect_synthetic_pointer): Get data type of |
| 6364 | pointed-to DIE and pass it to dwarf2_evaluate_loc_desc_full. |
| 6365 | (dwarf2_evaluate_loc_desc_full): New parameter subobj_type; rename |
| 6366 | byte_offset to subobj_byte_offset. Fix the handling of |
| 6367 | DWARF_VALUE_STACK on big-endian targets when coming via an |
| 6368 | implicit pointer. |
| 6369 | (dwarf2_evaluate_loc_desc): Adjust call to |
| 6370 | dwarf2_evaluate_loc_desc_full. |
| 6371 | * dwarf2loc.h (dwarf2_fetch_die_type_sect_off): New declaration. |
| 6372 | * dwarf2read.c (dwarf2_fetch_die_type_sect_off): New function. |
| 6373 | |
| 6374 | 2017-03-16 Yao Qi <yao.qi@linaro.org> |
| 6375 | |
| 6376 | * arm-tdep.c (thumb_record_misc): Decode CBNZ, CBZ, REV16, |
| 6377 | and REVSH instructions. |
| 6378 | |
| 6379 | 2017-03-16 Yao Qi <yao.qi@linaro.org> |
| 6380 | |
| 6381 | * arm-tdep.c [GDB_SELF_TEST]: include "selftests.h". |
| 6382 | (arm_record_test): Declare. |
| 6383 | (_initialize_arm_tdep) [GDB_SELF_TEST]: call register_self_test. |
| 6384 | (thumb_record_ld_st_reg_offset): Rewrite the opcode matching to |
| 6385 | align with the manual. |
| 6386 | (thumb_record_misc): Adjust the code order to align with the |
| 6387 | manual. |
| 6388 | (thumb2_record_decode_insn_handler): Fix instruction matching. |
| 6389 | (instruction_reader_thumb): New class. |
| 6390 | (arm_record_test): New function. |
| 6391 | |
| 6392 | 2017-03-16 Yao Qi <yao.qi@linaro.org> |
| 6393 | |
| 6394 | * arm-tdep.c (abstract_memory_reader): New class. |
| 6395 | (instruction_reader): New class. |
| 6396 | (extract_arm_insn): Add argument 'reader'. Callers updated. |
| 6397 | (decode_insn): Likewise. |
| 6398 | |
| 6399 | 2017-03-16 Doug Evans <dje@google.com> |
| 6400 | |
| 6401 | * guile/scm-lazy-string.c (lazy_string_smob): Clarify use of LENGTH |
| 6402 | member. Change type of TYPE member to SCM. All uses updated. |
| 6403 | (lsscm_make_lazy_string_smob): Add assert. |
| 6404 | (lsscm_make_lazy_string): Flag bad length values. |
| 6405 | (lsscm_elt_type): New function. |
| 6406 | (gdbscm_lazy_string_to_value): Rewrite to use |
| 6407 | lsscm_safe_lazy_string_to_value. |
| 6408 | (lsscm_safe_lazy_string_to_value): Fix handling of TYPE_CODE_PTR. |
| 6409 | * guile/scm-value.c (gdbscm_value_to_lazy_string): Flag bad length |
| 6410 | values. Fix TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle typedefs |
| 6411 | in incoming type. |
| 6412 | * guile/guile-internal.h (tyscm_scm_to_type): Declare. |
| 6413 | * guile/scm-type.c (tyscm_scm_to_type): New function. |
| 6414 | |
| 6415 | 2017-03-15 Doug Evans <dje@google.com> |
| 6416 | |
| 6417 | PR python/17728, python/18439, python/18779 |
| 6418 | * python/py-lazy-string.c (lazy_string_object): Clarify use of LENGTH |
| 6419 | member. Change type of TYPE member to PyObject *. All uses updated. |
| 6420 | (stpy_convert_to_value): Fix handling of TYPE_CODE_PTR. |
| 6421 | (gdbpy_create_lazy_string_object): Flag bad length values. |
| 6422 | Handle TYPE_CODE_ARRAY with possibly different user-provided length. |
| 6423 | Handle typedefs in incoming type. |
| 6424 | (stpy_lazy_string_elt_type): New function. |
| 6425 | (gdbpy_extract_lazy_string): Call it. |
| 6426 | * python/py-value.c (valpy_lazy_string): Flag bad length values. |
| 6427 | Fix handling of TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle |
| 6428 | typedefs in incoming type. |
| 6429 | |
| 6430 | 2017-03-16 Doug Evans <dje@google.com> |
| 6431 | |
| 6432 | * guile/guile-internal.h (tyscm_scm_to_type): Declare. |
| 6433 | * guile/scm-type.c (tyscm_scm_to_type): New function. |
| 6434 | |
| 6435 | 2017-03-16 Jiong Wang <jiong.wang@arm.com> |
| 6436 | |
| 6437 | * inf-ptrace.c (inf_ptrace_peek_poke): Change the type to |
| 6438 | "ULONGEST" for "skip". |
| 6439 | |
| 6440 | 2017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com> |
| 6441 | |
| 6442 | PR gdb/21220 |
| 6443 | * inf-ptrace.c (inf_ptrace_xfer_partial): In "case |
| 6444 | TARGET_OBJECT_MEMORY", extract the logic for ptrace peek/poke... |
| 6445 | (inf_ptrace_peek_poke): ...here. New function. Now also loop |
| 6446 | over ptrace peek/poke until end of buffer or error. |
| 6447 | |
| 6448 | 2017-03-14 Simon Marchi <simon.marchi@ericsson.com> |
| 6449 | |
| 6450 | * parse.c (length_of_subexp): Make static. |
| 6451 | * parser-defs.h (length_of_subexp): Remove. |
| 6452 | |
| 6453 | 2017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com> |
| 6454 | |
| 6455 | * linux-nat.c (linux_proc_xfer_partial): Handle write operations |
| 6456 | as well. |
| 6457 | |
| 6458 | 2017-03-14 Pedro Alves <palves@redhat.com> |
| 6459 | |
| 6460 | * cp-name-parser.y (cp_demangled_name_to_comp): Update comment. |
| 6461 | (main): Use std::unique_ptr. Remove calls to |
| 6462 | cp_demangled_name_parse_free. |
| 6463 | |
| 6464 | 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca> |
| 6465 | |
| 6466 | * alpha-bsd-nat.c (alphabsd_fetch_inferior_registers, |
| 6467 | alphabsd_store_inferior_registers): Use regcache->ptid instead |
| 6468 | of inferior_ptid. |
| 6469 | |
| 6470 | 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca> |
| 6471 | |
| 6472 | * aix-thread.c (aix_thread_fetch_registers, |
| 6473 | aix_thread_store_registers): Use regcache->ptid instead of |
| 6474 | inferior_ptid. |
| 6475 | |
| 6476 | 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca> |
| 6477 | |
| 6478 | * aarch64-linux-nat.c (fetch_gregs_from_thread, |
| 6479 | store_gregs_to_thread, fetch_fpregs_from_thread, |
| 6480 | store_fpregs_to_thread): Use regcache->ptid instead of |
| 6481 | inferior_ptid. |
| 6482 | |
| 6483 | 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca> |
| 6484 | |
| 6485 | * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers, |
| 6486 | amd64_linux_fetch_inferior_registers): Use regcache->ptid |
| 6487 | instead of inferior_ptid. |
| 6488 | |
| 6489 | 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca> |
| 6490 | |
| 6491 | * target.c (target_fetch_registers, target_store_registers): Add |
| 6492 | assert. |
| 6493 | |
| 6494 | 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca> |
| 6495 | |
| 6496 | * regcache.h (regcache_get_ptid): New function. |
| 6497 | * regcache.c (regcache_get_ptid): New function. |
| 6498 | |
| 6499 | 2017-03-13 Mark Wielaard <mark@klomp.org> |
| 6500 | |
| 6501 | * cp-name-parser.y (make_empty): Initialize d_printing to zero. |
| 6502 | |
| 6503 | 2017-03-10 Keith Seitz <keiths@redhat.com> |
| 6504 | |
| 6505 | PR c++/8218 |
| 6506 | * c-typeprint.c (cp_type_print_method_args): Skip artificial arguments. |
| 6507 | |
| 6508 | 2017-03-08 Pedro Alves <palves@redhat.com> |
| 6509 | |
| 6510 | PR gdb/18360 |
| 6511 | * infrun.c (start_step_over, do_target_resume, resume) |
| 6512 | (restart_threads): Assert we're not resuming a thread that is |
| 6513 | meant to be stopped. |
| 6514 | (infrun_thread_stop_requested_callback): Delete. |
| 6515 | (infrun_thread_stop_requested): If the thread is internally |
| 6516 | stopped, queue a pending stop event and clear the thread's |
| 6517 | inline-frame state. |
| 6518 | (handle_stop_requested): New function. |
| 6519 | (handle_syscall_event, handle_inferior_event_1): Use |
| 6520 | handle_stop_requested. |
| 6521 | (handle_stop_requested): New function. |
| 6522 | (handle_signal_stop): Set the thread's stop_signal here instead of |
| 6523 | at caller. |
| 6524 | (finish_step_over): Clear step over info unconditionally. |
| 6525 | (handle_signal_stop): If the user had interrupted the event |
| 6526 | thread, consider the stop a random signal. |
| 6527 | (handle_signal_stop) <signal arrived while stepping over |
| 6528 | breakpoint>: Don't restart threads here. |
| 6529 | (stop_waiting): Don't clear step-over info here. |
| 6530 | |
| 6531 | 2017-03-08 Pedro Alves <palves@redhat.com> |
| 6532 | |
| 6533 | PR 21206 |
| 6534 | * common/gdb_unlinker.h (unlinker::unlinker): Attribute nonnull |
| 6535 | goes to argument 2, not 1. |
| 6536 | |
| 6537 | 2017-03-08 Pedro Alves <palves@redhat.com> |
| 6538 | |
| 6539 | PR cli/21218 |
| 6540 | * top.c (gdb_readline_wrapper): Avoid passing NULL to |
| 6541 | display_gdb_prompt. |
| 6542 | (command_line_input): Add comment. |
| 6543 | |
| 6544 | 2017-03-08 Pedro Alves <palves@redhat.com> |
| 6545 | |
| 6546 | PR tui/21216 |
| 6547 | * tui/tui-file.c (tui_file::write): New. |
| 6548 | * tui/tui-file.h (tui_file): Override "write". |
| 6549 | * tui/tui-io.c (do_tui_putc, update_start_line): New functions, |
| 6550 | factored out from ... |
| 6551 | (tui_puts): ... here. |
| 6552 | (tui_putc): Use them. |
| 6553 | (tui_write): New function. |
| 6554 | * tui/tui-io.h (tui_write): Declare. |
| 6555 | |
| 6556 | 2017-03-07 Sergio Durigan Junior <sergiodj@redhat.com> |
| 6557 | |
| 6558 | * Makefile.in (SFILES): Replace "environ.c" with |
| 6559 | "common/environ.c". |
| 6560 | (HFILES_NO_SRCDIR): Likewise, for "environ.h". |
| 6561 | * environ.c: Include "common-defs.h" instead of "defs.h. Moved |
| 6562 | to... |
| 6563 | * common/environ.c: ... here. |
| 6564 | * environ.h: Moved to... |
| 6565 | * common/environ.h: ... here. |
| 6566 | |
| 6567 | 2017-03-07 Peter Bergner <bergner@vnet.ibm.com> |
| 6568 | |
| 6569 | * gdbarch.sh (pstring_ptr): New static function. |
| 6570 | (gdbarch_disassembler_options): Use it. |
| 6571 | (gdbarch_verify_disassembler_options): Print valid_disassembler_options, |
| 6572 | not valid_disassembler_option->name. |
| 6573 | * gdbarch.c: Regenerate. |
| 6574 | |
| 6575 | 2017-03-07 Peter Bergner <bergner@vnet.ibm.com> |
| 6576 | |
| 6577 | * config/powerpc/ppc64-linux.mh (MH_CFLAGS): Delete. |
| 6578 | |
| 6579 | 2017-03-07 Pedro Alves <palves@redhat.com> |
| 6580 | |
| 6581 | * tui/tui-regs.c (tui_restore_gdbout): Don't delete gdb_stdout. |
| 6582 | |
| 6583 | 2017-03-07 Walfred Tedeschi <walfred.tedeschi@intel.com> |
| 6584 | |
| 6585 | * i387-tdep.h (i387_reset_bnd_regs): Add function definition. |
| 6586 | * i387-tdep.c (i387_reset_bnd_regs): Add function implementation. |
| 6587 | * i386-tdep.c (i386_push_dummy_call): Call i387_reset_bnd_regs. |
| 6588 | * amd64-tdep.c (amd64_push_dummy_call): Call i387_reset_bnd_regs. |
| 6589 | |
| 6590 | 2017-03-06 Simon Marchi <simon.marchi@ericsson.com> |
| 6591 | |
| 6592 | * xtensa-linux-nat.c (fetch_gregs): Remove const. |
| 6593 | |
| 6594 | 2017-03-03 Simon Marchi <simon.marchi@ericsson.com> |
| 6595 | |
| 6596 | * remote.c (remote_add_target_side_commands): Use range-based |
| 6597 | for loop. |
| 6598 | |
| 6599 | 2017-03-03 Yao Qi <yao.qi@linaro.org> |
| 6600 | |
| 6601 | PR gdb/21165 |
| 6602 | * ada-valprint.c (ada_val_print_ref): Call value_fetch_lazy if |
| 6603 | value is lazy. |
| 6604 | * valprint.c (common_val_print): Likewise. |
| 6605 | |
| 6606 | 2017-02-28 Peter Bergner <bergner@vnet.ibm.com> |
| 6607 | |
| 6608 | * NEWS: Mention new set/show disassembler-options commands. |
| 6609 | * doc/gdb.texinfo: Document new set/show disassembler-options commands. |
| 6610 | * disasm.c: Include "arch-utils.h", "gdbcmd.h" and "safe-ctype.h". |
| 6611 | (prospective_options): New static variable. |
| 6612 | (gdb_disassembler::gdb_disassembler): Initialize |
| 6613 | m_di.disassembler_options. |
| 6614 | (gdb_buffered_insn_length_init_dis): Initilize di->disassembler_options. |
| 6615 | (get_disassembler_options): New function. |
| 6616 | (set_disassembler_options): Likewise. |
| 6617 | (set_disassembler_options_sfunc): Likewise. |
| 6618 | (show_disassembler_options_sfunc): Likewise. |
| 6619 | (disassembler_options_completer): Likewise. |
| 6620 | (_initialize_disasm): Likewise. |
| 6621 | * disasm.h (get_disassembler_options): New prototype. |
| 6622 | (set_disassembler_options): Likewise. |
| 6623 | * gdbarch.sh (gdbarch_disassembler_options): New variable. |
| 6624 | (gdbarch_verify_disassembler_options): Likewise. |
| 6625 | * gdbarch.c: Regenerate. |
| 6626 | * gdbarch.h: Likewise. |
| 6627 | * arm-tdep.c (num_disassembly_options): Delete. |
| 6628 | (set_disassembly_style): Likewise. |
| 6629 | (arm_disassembler_options): New static variable. |
| 6630 | (set_disassembly_style_sfunc): Convert short style name into long |
| 6631 | option name. Call set_disassembler_options. |
| 6632 | (show_disassembly_style_sfunc): New function. |
| 6633 | (arm_gdbarch_init): Call set_gdbarch_disassembler_options and |
| 6634 | set_gdbarch_verify_disassembler_options. |
| 6635 | (_initialize_arm_tdep): Delete regnames variable and update callers. |
| 6636 | (arm_disassembler_options): Initialize. |
| 6637 | (disasm_options): New variable. |
| 6638 | (num_disassembly_options): Rename from this... |
| 6639 | (num_disassembly_styles): ...to this. Compute by scanning through |
| 6640 | disasm_options. |
| 6641 | (valid_disassembly_styles): Initialize using disasm_options. |
| 6642 | Remove calls to parse_arm_disassembler_option, get_arm_regnames and |
| 6643 | set_arm_regname_option. |
| 6644 | Pass show_disassembly_style_sfunc to the "disassembler" setshow command. |
| 6645 | * rs6000-tdep.c (powerpc_disassembler_options): New static variable. |
| 6646 | (rs6000_gdbarch_init): Call set_gdbarch_disassembler_options and |
| 6647 | set_gdbarch_verify_disassembler_options. |
| 6648 | * s390-tdep.c (s390_disassembler_options): New static variable. |
| 6649 | (s390_gdbarch_init):all set_gdbarch_disassembler_options and |
| 6650 | set_gdbarch_verify_disassembler_options. |
| 6651 | |
| 6652 | 2017-02-27 Simon Marchi <simon.marchi@ericsson.com> |
| 6653 | |
| 6654 | * remote.c (remote_add_target_side_condition): Remove "struct" |
| 6655 | keyword from range-based for loop. |
| 6656 | |
| 6657 | 2017-02-27 Simon Marchi <simon.marchi@ericsson.com> |
| 6658 | |
| 6659 | * remote.c (remote_add_target_side_condition): Use range-based |
| 6660 | for loop. Update comment. |
| 6661 | |
| 6662 | 2017-02-27 Yao Qi <yao.qi@linaro.org> |
| 6663 | |
| 6664 | * f-typeprint.c (f_print_type): Check "varstring" is empty first. |
| 6665 | |
| 6666 | 2017-02-26 Alan Hayward <alan.hayward@arm.com> |
| 6667 | |
| 6668 | * regcache.c (regcache_raw_update): New function. |
| 6669 | (regcache_raw_read): Move code to regcache_raw_update. |
| 6670 | * regcache.h (regcache_raw_update): New declaration. |
| 6671 | * remote.c (remote_prepare_to_store): Call regcache_raw_update. |
| 6672 | |
| 6673 | 2017-02-26 Jan Kratochvil <jan.kratochvil@redhat.com> |
| 6674 | |
| 6675 | * dwarf2read.c (create_debug_type_hash_table): Initialize |
| 6676 | header.signature and header.type_offset_in_tu. |
| 6677 | |
| 6678 | 2017-02-24 Pedro Alves <palves@redhat.com> |
| 6679 | |
| 6680 | * symtab.c (make_file_symbol_completion_list_1): Use |
| 6681 | add_symtab_completions. |
| 6682 | |
| 6683 | 2017-02-24 Alan Hayward <alan.hayward@arm.com> |
| 6684 | |
| 6685 | * stack.c (frame_info): Use frame_unwind_register_value to avoid buf. |
| 6686 | |
| 6687 | 2017-02-24 Alan Hayward <alan.hayward@arm.com> |
| 6688 | |
| 6689 | * i386-tdep.c (i386_pseudo_register_read_into_value): Use |
| 6690 | I386_MAX_REGISTER_SIZE. |
| 6691 | (i386_pseudo_register_write): Likewise. |
| 6692 | (i386_process_record): Likewise. |
| 6693 | * i387-tdep.c (i387_supply_xsave): Likewise. |
| 6694 | * m68k-linux-nat.c (fetch_register): Use M68K_MAX_REGISTER_SIZE. |
| 6695 | (store_register): Likewise. |
| 6696 | |
| 6697 | 2017-02-23 Pedro Alves <palves@redhat.com> |
| 6698 | |
| 6699 | * ada-lang.c: Include "common/function-view.h". |
| 6700 | (ada_iterate_over_symbols): Adjust to use function_view as |
| 6701 | callback type. |
| 6702 | (struct add_partial_datum, ada_complete_symbol_matcher): Delete. |
| 6703 | (ada_make_symbol_completion_list): Use a lambda. |
| 6704 | (ada_exc_search_name_matches): Delete. |
| 6705 | (name_matches_regex): New. |
| 6706 | (ada_add_global_exceptions): Use a lambda and name_matches_regex. |
| 6707 | * compile/compile-c-support.c: Include "common/function-view.h". |
| 6708 | (print_one_macro): Change prototype to accept a ui_file pointer. |
| 6709 | (write_macro_definitions): Use a lambda. |
| 6710 | * dwarf2read.c: Include "common/function-view.h". |
| 6711 | (dw2_map_expand_apply, dw2_map_symtabs_matching_filename) |
| 6712 | (dw2_expand_symtabs_matching): Adjust to use function_view as |
| 6713 | callback type. |
| 6714 | * language.h: Include "common/function-view.h". |
| 6715 | (struct language_defn) <la_iterate_over_symbols>: Adjust to use |
| 6716 | function_view as callback type. |
| 6717 | (LA_ITERATE_OVER_SYMBOLS): Remove DATA parameter. |
| 6718 | * linespec.c: Include "common/function-view.h". |
| 6719 | (collect_info::add_symbol): New method. |
| 6720 | (struct symbol_and_data_callback, iterate_inline_only, struct |
| 6721 | symbol_matcher_data, iterate_name_matcher): Delete. |
| 6722 | (iterate_over_all_matching_symtabs): Adjust to use function_view |
| 6723 | as callback type and lambdas. |
| 6724 | (iterate_over_file_blocks): Adjust to use function_view as |
| 6725 | callback type. |
| 6726 | (decode_compound_collector): Now a class with private fields. |
| 6727 | (decode_compound_collector::release_symbols): New method. |
| 6728 | (collect_one_symbol): Rename to... |
| 6729 | (decode_compound_collector::operator()): ... this and adjust. |
| 6730 | (lookup_prefix_sym): decode_compound_collector construction bits |
| 6731 | move to decode_compound_collector ctor. Pass the |
| 6732 | decode_compound_collector object directly as callback. Remove |
| 6733 | cleanups and use decode_compound_collector::release_symbols |
| 6734 | instead. |
| 6735 | (symtab_collector): Now a class with private fields. |
| 6736 | (symtab_collector::release_symtabs): New method. |
| 6737 | (add_symtabs_to_list): Rename to... |
| 6738 | (symtab_collector::operator()): ... this and adjust. |
| 6739 | (collect_symtabs_from_filename): symtab_collector construction |
| 6740 | bits move to symtab_collector ctor. Pass the symtab_collector |
| 6741 | object directly as callback. Remove cleanups and use |
| 6742 | symtab_collector::release_symtabs instead. |
| 6743 | (collect_symbols): Delete. |
| 6744 | (add_matching_symbols_to_info): Use lambdas. |
| 6745 | * macrocmd.c (print_macro_callback): Delete. |
| 6746 | (info_macro_command): Use a lambda. |
| 6747 | (info_macros_command): Pass print_macro_definition as callable |
| 6748 | directly. |
| 6749 | (print_one_macro): Remove 'ignore' parameter. |
| 6750 | (macro_list_command): Adjust. |
| 6751 | * macrotab.c (macro_for_each_data::fn): Now a function_view. |
| 6752 | (macro_for_each_data::user_data): Delete field. |
| 6753 | (foreach_macro): Adjust to call the function_view. |
| 6754 | (macro_for_each): Adjust to use function_view as callback type. |
| 6755 | (foreach_macro_in_scope): Adjust to call the function_view. |
| 6756 | (macro_for_each_in_scope): Adjust to use function_view as callback |
| 6757 | type. |
| 6758 | * macrotab.h: Include "common/function-view.h". |
| 6759 | (macro_callback_fn): Declare a prototype instead of a pointer. |
| 6760 | Remove "user_data" parameter. |
| 6761 | (macro_for_each, macro_for_each_in_scope): Adjust to use |
| 6762 | function_view as callback type. |
| 6763 | * psymtab.c (partial_map_expand_apply) |
| 6764 | (psym_map_symtabs_matching_filename, recursively_search_psymtabs): |
| 6765 | Adjust to use function_view as callback type and to return bool. |
| 6766 | (psym_expand_symtabs_matching): Adjust to use function_view as |
| 6767 | callback types. |
| 6768 | * symfile-debug.c (debug_qf_map_symtabs_matching_filename): Adjust |
| 6769 | to use function_view as callback type and to return bool. |
| 6770 | (debug_qf_expand_symtabs_matching): Adjust to use function_view as |
| 6771 | callback types. |
| 6772 | * symfile.c (expand_symtabs_matching): Adjust to use function_view |
| 6773 | as callback types. |
| 6774 | * symfile.h: Include "common/function-view.h". |
| 6775 | (expand_symtabs_file_matcher_ftype) |
| 6776 | (expand_symtabs_symbol_matcher_ftype) |
| 6777 | (expand_symtabs_exp_notify_ftype): Remove "data" parameter and |
| 6778 | return bool. |
| 6779 | (quick_symbol_functions::map_symtabs_matching_filename) |
| 6780 | (quick_symbol_functions::expand_symtabs_matching): Adjust to use |
| 6781 | function_view as callback type and return bool. |
| 6782 | (expand_symtabs_matching): Adjust to use function_view as callback |
| 6783 | type. |
| 6784 | (maintenance_expand_name_matcher) |
| 6785 | (maintenance_expand_file_matcher): Delete. |
| 6786 | (maintenance_expand_symtabs): Use lambdas. |
| 6787 | * symtab.c (iterate_over_some_symtabs): Adjust to use |
| 6788 | function_view as callback types and return bool. |
| 6789 | (iterate_over_symtabs): Likewise. Use unique_xmalloc_ptr instead |
| 6790 | of a cleanup. |
| 6791 | (lookup_symtab_callback): Delete. |
| 6792 | (lookup_symtab): Use a lambda. |
| 6793 | (iterate_over_symbols): Adjust to use function_view as callback |
| 6794 | type. |
| 6795 | (struct search_symbols_data, search_symbols_file_matches) |
| 6796 | (search_symbols_name_matches): Delete. |
| 6797 | (search_symbols): Use a pair of lambdas. |
| 6798 | (struct add_name_data, add_macro_name, symbol_completion_matcher) |
| 6799 | (symtab_expansion_callback): Delete. |
| 6800 | (default_make_symbol_completion_list_break_on_1): Use lambdas. |
| 6801 | * symtab.h: Include "common/function-view.h". |
| 6802 | (iterate_over_some_symtabs): Adjust to use function_view as |
| 6803 | callback type and return bool. |
| 6804 | (iterate_over_symtabs): Adjust to use function_view as callback |
| 6805 | type. |
| 6806 | (symbol_found_callback_ftype): Remove 'data' parameter and return |
| 6807 | bool. |
| 6808 | (iterate_over_symbols): Adjust to use function_view as callback |
| 6809 | type. |
| 6810 | |
| 6811 | 2017-02-23 Pedro Alves <palves@redhat.com> |
| 6812 | |
| 6813 | * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS): New. |
| 6814 | (%.o) <unittests/%.c>: New pattern. |
| 6815 | * configure.ac ($development): Add $(SUBDIR_UNITTESTS_OBS) to |
| 6816 | CONFIG_OBS, and $(SUBDIR_UNITTESTS_SRCS) to CONFIG_SRCS. |
| 6817 | * common/function-view.h: New file. |
| 6818 | * unittests/function-view-selftests.c: New file. |
| 6819 | * configure: Regenerate. |
| 6820 | |
| 6821 | 2017-02-23 Simon Marchi <simon.marchi@ericsson.com> |
| 6822 | |
| 6823 | * bsd-uthread.c (bsd_uthread_thread_alive): Use ptid instead of |
| 6824 | inferior_ptid. |
| 6825 | * go32-nat.c (go32_thread_alive): Likewise. |
| 6826 | |
| 6827 | 2017-02-23 Yao Qi <yao.qi@linaro.org> |
| 6828 | |
| 6829 | * varobj-iter.h (varobj_iter_delete): Call xfree instead of |
| 6830 | delete. |
| 6831 | |
| 6832 | 2017-02-23 Yao Qi <yao.qi@linaro.org> |
| 6833 | |
| 6834 | * varobj.c (varobj_clear_saved_item): Use delete instead of |
| 6835 | xfree. |
| 6836 | (update_dynamic_varobj_children): Likewise. |
| 6837 | |
| 6838 | 2017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com> |
| 6839 | |
| 6840 | * dwarf2read.c (dwarf2_record_block_ranges): Add forgotten BASEADDR. |
| 6841 | |
| 6842 | 2017-02-21 Simon Marchi <simon.marchi@ericsson.com> |
| 6843 | |
| 6844 | * common/enum-flags.h (enum_flags::enum_flags): Initialize |
| 6845 | m_enum_value to 0 in default constructor. |
| 6846 | |
| 6847 | 2017-02-21 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com> |
| 6848 | |
| 6849 | * rs6000-tdep.c (LOAD_AND_RESERVE_MASK): Rename from LWARX_MASK. |
| 6850 | (STORE_CONDITIONAL_MASK): Rename from STWCX_MASK. |
| 6851 | (LBARX_INSTRUCTION, LHARX_INSTRUCTION, LQARX_INSTRUCTION, |
| 6852 | STBCX_INSTRUCTION, STHCX_INSTRUCTION, STQCX_INSTRUCTION): New defines. |
| 6853 | (IS_LOAD_AND_RESERVE_INSN, IS_STORE_CONDITIONAL_INSN): New macros. |
| 6854 | (ppc_displaced_step_copy_insn): Use IS_LOAD_AND_RESERVE_INSN. |
| 6855 | (ppc_deal_with_atomic_sequence): Use IS_LOAD_AND_RESERVE_INSN and |
| 6856 | IS_STORE_CONDITIONAL_INSN. |
| 6857 | |
| 6858 | 2017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com> |
| 6859 | |
| 6860 | * dwarf2_rnglists_process: Initialize range_beginning and range_end. |
| 6861 | |
| 6862 | 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com> |
| 6863 | |
| 6864 | * NEWS (Changes since GDB 7.12): Add DWARF-5. |
| 6865 | |
| 6866 | 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com> |
| 6867 | |
| 6868 | * dwarf2read.c (skip_one_die, read_attribute_value) |
| 6869 | (dwarf2_const_value_attr, dump_die_shallow) |
| 6870 | (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes) |
| 6871 | (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_data16. |
| 6872 | |
| 6873 | 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com> |
| 6874 | |
| 6875 | * dwarf2read.c (read_file_scope): Rename DW_MACRO_GNU_*. |
| 6876 | (dwarf_parse_macro_header): Accept DWARF version 5. |
| 6877 | (dwarf_decode_macro_bytes, dwarf_decode_macros): Rename DW_MACRO_GNU_*. |
| 6878 | |
| 6879 | 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com> |
| 6880 | |
| 6881 | * block.c (call_site_for_pc): Rename DW_OP_GNU_*, DW_TAG_GNU_* and |
| 6882 | DW_AT_GNU_*. |
| 6883 | * common/common-exceptions.h (enum errors): Likewise. |
| 6884 | * dwarf2-frame.c (class dwarf_expr_executor): Likewise. |
| 6885 | * dwarf2expr.c (dwarf_block_to_dwarf_reg) |
| 6886 | (dwarf_expr_context::execute_stack_op): Likewise. |
| 6887 | * dwarf2expr.h (struct dwarf_expr_context, struct dwarf_expr_piece): |
| 6888 | Likewise. |
| 6889 | * dwarf2loc.c (dwarf_evaluate_loc_desc::get_base_type) |
| 6890 | (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value) |
| 6891 | (show_entry_values_debug, call_site_to_target_addr) |
| 6892 | (func_addr_to_tail_call_list, func_verify_no_selftailcall) |
| 6893 | (dwarf_expr_reg_to_entry_parameter, dwarf_entry_parameter_to_value) |
| 6894 | (entry_data_value_free_closure, value_of_dwarf_reg_entry) |
| 6895 | (value_of_dwarf_block_entry, indirect_pieced_value) |
| 6896 | (symbol_needs_eval_context::push_dwarf_reg_entry_value): |
| 6897 | (disassemble_dwarf_expression): Likewise. |
| 6898 | * dwarf2read.c (process_die, inherit_abstract_dies) |
| 6899 | (read_call_site_scope): Likewise. |
| 6900 | * gdbtypes.h (struct func_type, struct call_site_parameter) |
| 6901 | (struct call_site): Likewise. |
| 6902 | * stack.c (read_frame_arg): Likewise. |
| 6903 | * std-operator.def (OP_VAR_ENTRY_VALUE): Likewise. |
| 6904 | |
| 6905 | 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com> |
| 6906 | |
| 6907 | * defs.h (read_unsigned_leb128): New declaration. |
| 6908 | * dwarf2loc.c (decode_debug_loclists_addresses): New function. |
| 6909 | (decode_debug_loc_dwo_addresses): Update DEBUG_LOC_* to DW_LLE_*. |
| 6910 | (dwarf2_find_location_expression): Call also |
| 6911 | decode_debug_loclists_addresses. Handle DWARF-5 ULEB128 length. |
| 6912 | * dwarf2loc.h (dwarf2_version): New declaration. |
| 6913 | * dwarf2read.c (struct dwarf2_per_objfile): Add loclists, line_str, |
| 6914 | rnglists. |
| 6915 | (dwarf2_elf_names): Add .debug_loclists, .debug_line_str, |
| 6916 | .debug_rnglists. |
| 6917 | (struct dwop_section_names): Add loclists_dwo. |
| 6918 | (dwop_section_names): Add .debug_loclists.dwo. |
| 6919 | (struct comp_unit_head): Add unit_type, signature, type_offset_in_tu. |
| 6920 | (struct dwarf2_per_cu_data): Add dwarf_version. |
| 6921 | (struct dwo_sections): Add loclists. |
| 6922 | (struct attr_abbrev): Add implicit_const. |
| 6923 | (read_indirect_line_string): New declaration. |
| 6924 | (read_unsigned_leb128): Delete declaration. |
| 6925 | (rcuh_kind): New definition. |
| 6926 | (read_and_check_comp_unit_head): Change parameter |
| 6927 | is_debug_types_section to section_kind. |
| 6928 | (dwarf2_locate_sections): Handle loclists, line_str and rnglists. |
| 6929 | (read_comp_unit_head): Change parameter abfd to section, add parameter |
| 6930 | section_kind. Handle DWARF-5. |
| 6931 | (error_check_comp_unit_head): Accept also DWARF version 5. |
| 6932 | (read_and_check_comp_unit_head): Change parameter |
| 6933 | is_debug_types_section to section_kind. |
| 6934 | (read_and_check_type_unit_head): Delete function. |
| 6935 | (read_abbrev_offset): Handle DWARF-5. |
| 6936 | (create_debug_type_hash_table): Add parameter section_kind. Process |
| 6937 | only DW_UT_type. Use signature and type_offset_in_tu from struct |
| 6938 | comp_unit_head. |
| 6939 | (create_debug_types_hash_table): Update create_debug_type_hash_table |
| 6940 | caller. |
| 6941 | (create_all_type_units): Call create_debug_type_hash_table. |
| 6942 | (read_cutu_die_from_dwo, init_cutu_and_read_dies): Change |
| 6943 | read_and_check_type_unit_head caller to read_and_check_comp_unit_head |
| 6944 | caller. |
| 6945 | (skip_one_die): Handle DW_FORM_implicit_const. |
| 6946 | (dwarf2_rnglists_process): New function. |
| 6947 | (dwarf2_ranges_process): Call dwarf2_rnglists_process for DWARF-5. |
| 6948 | (abbrev_table_read_table): Handle DW_FORM_implicit_const. |
| 6949 | (read_attribute_value): Handle DW_FORM_implicit_const, |
| 6950 | DW_FORM_line_strp. |
| 6951 | (read_attribute): Handle DW_FORM_implicit_const. |
| 6952 | (read_indirect_string_at_offset_from): New function from |
| 6953 | read_indirect_string_at_offset. |
| 6954 | (read_indirect_string_at_offset): Call |
| 6955 | read_indirect_string_at_offset_from. |
| 6956 | (read_indirect_line_string_at_offset): New function. |
| 6957 | (read_indirect_string): New function comment. |
| 6958 | (read_indirect_line_string): New function. |
| 6959 | (read_unsigned_leb128): Make it global. |
| 6960 | (dwarf2_string_attr): Handle DWARF-5. |
| 6961 | (add_include_dir_stub, read_formatted_entries): New functions. |
| 6962 | (dwarf_decode_line_header, dump_die_shallow, cu_debug_loc_section): |
| 6963 | Handle DWARF-5. |
| 6964 | (per_cu_header_read_in): Update read_comp_unit_head caller. |
| 6965 | (dwarf2_version): New function. |
| 6966 | * symfile.h (struct dwarf2_debug_sections): Add loclists, line_str and |
| 6967 | rnglists. |
| 6968 | * xcoffread.c (dwarf2_xcoff_names): Update struct dwarf2_debug_sections |
| 6969 | fields. |
| 6970 | |
| 6971 | 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com> |
| 6972 | |
| 6973 | * dwarf2read.c (abbrev_table_read_table): Read the data only once. |
| 6974 | |
| 6975 | 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com> |
| 6976 | |
| 6977 | * dwarf2read.c (dwarf2_ranges_process): New function from |
| 6978 | dwarf2_ranges_read. |
| 6979 | (dwarf2_ranges_read, dwarf2_record_block_ranges): Use |
| 6980 | dwarf2_ranges_process. |
| 6981 | |
| 6982 | 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com> |
| 6983 | |
| 6984 | * dwarf2read.c (create_debug_type_hash_table): New function from |
| 6985 | create_debug_types_hash_table. |
| 6986 | (create_debug_types_hash_table): Call create_debug_type_hash_table. |
| 6987 | (create_all_type_units, open_and_init_dwo_file): Update |
| 6988 | create_debug_types_hash_table callers. |
| 6989 | |
| 6990 | 2017-02-20 Sergio Durigan Junior <sergiodj@redhat.com> |
| 6991 | |
| 6992 | PR gdb/16188 |
| 6993 | * fork-child.c (trace_start_error): Fix thinko. va_end should |
| 6994 | refer to 'ap', not 'args'. |
| 6995 | |
| 6996 | 2017-02-20 Sergio Durigan Junior <sergiodj@redhat.com> |
| 6997 | Pedro Alves <palves@redhat.com> |
| 6998 | |
| 6999 | PR gdb/16188 |
| 7000 | * darwin-nat.c (darwin_ptrace_me): Check if calls to system |
| 7001 | calls succeeded. |
| 7002 | * fork-child.c (trace_start_error): New function. |
| 7003 | (trace_start_error_with_name): Likewise. |
| 7004 | * gnu-nat.c (gnu_ptrace_me): Check if call to PTRACE succeeded. |
| 7005 | * inf-ptrace.c (inf_ptrace_me): Likewise. |
| 7006 | * inferior.h (trace_start_error): New prototype. |
| 7007 | (trace_start_error_with_name): Likewise. |
| 7008 | |
| 7009 | 2017-02-15 Sergio Durigan Junior <sergiodj@redhat.com> |
| 7010 | |
| 7011 | PR gdb/21164 |
| 7012 | * psymtab.c (maintenance_print_psymbols): Verify if 'argv' is not |
| 7013 | NULL before using it. |
| 7014 | * symmisc.c (maintenance_print_symbols): Likewise. |
| 7015 | (maintenance_print_msymbols): Likewise. |
| 7016 | |
| 7017 | 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com> |
| 7018 | |
| 7019 | * NEWS: Add record Python bindings entry. |
| 7020 | |
| 7021 | 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com> |
| 7022 | |
| 7023 | * Makefile.in (SUBDIR_PYTHON_OBS): Add py-record-btrace.o, |
| 7024 | py-record-full.o. |
| 7025 | (SUBDIR_PYTHON_SRCS): Add py-record-btrace.c, py-record-full.c. |
| 7026 | * python/py-record-btrace.c, python/py-record-btrace.h, |
| 7027 | python/py-record-full.c, python/py-record-full.h: New file. |
| 7028 | * python/py-record.c: Add include for py-record-btrace.h and |
| 7029 | py-record-full.h. |
| 7030 | (recpy_method, recpy_format, recpy_goto, recpy_replay_position, |
| 7031 | recpy_instruction_history, recpy_function_call_history, recpy_begin, |
| 7032 | recpy_end): Use functions from py-record-btrace.c and py-record-full.c. |
| 7033 | * python/python-internal.h (PyInt_FromSsize_t, PyInt_AsSsize_t): |
| 7034 | New definition. |
| 7035 | (gdbpy_initialize_btrace): New export. |
| 7036 | * python/python.c (_initialize_python): Add gdbpy_initialize_btrace. |
| 7037 | |
| 7038 | 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com> |
| 7039 | |
| 7040 | * Makefile.in (SUBDIR_PYTHON_OBS): Add python/py-record.o. |
| 7041 | (SUBDIR_PYTHON_SRCS): Add python/py-record.c. |
| 7042 | * python/py-record.c: New file. |
| 7043 | * python/python-internal.h (gdbpy_start_recording, |
| 7044 | gdbpy_current_recording, gdpy_stop_recording, |
| 7045 | gdbpy_initialize_record): New export. |
| 7046 | * python/python.c (_initialize_python): Add gdbpy_initialize_record. |
| 7047 | (python_GdbMethods): Add gdbpy_start_recording, |
| 7048 | gdbpy_current_recording and gdbpy_stop_recording. |
| 7049 | |
| 7050 | 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com> |
| 7051 | |
| 7052 | * record-btrace.c (record_btrace_record_method): New function. |
| 7053 | (init_record_btrace_ops): Initialize to_record_method. |
| 7054 | * record-full.c (record_full_record_method): New function. |
| 7055 | (init_record_full_ops, init_record_full_core_ops): Add |
| 7056 | record_full_record_method. |
| 7057 | * record.h (enum record_method): New enum. |
| 7058 | * target-debug.h (target_debug_print_enum_record_method: New define. |
| 7059 | * target-delegates.c: Regenerate. |
| 7060 | * target.c (target_record_method): New function. |
| 7061 | * target.h: Include record.h. |
| 7062 | (struct target_ops) <to_record_method>: New field. |
| 7063 | (target_record_method): New export. |
| 7064 | |
| 7065 | 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com> |
| 7066 | |
| 7067 | * record.h (record_start, record_stop): New export. |
| 7068 | * record.c (record_start, record_stop): New function. |
| 7069 | |
| 7070 | 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com> |
| 7071 | |
| 7072 | * btrace.c (btrace_fetch): Copy function call segments pointer |
| 7073 | into a vector. |
| 7074 | (btrace_clear): Clear the vector. |
| 7075 | (btrace_find_insn_by_number): Use binary search to find the correct |
| 7076 | function call segment. |
| 7077 | * btrace.h (brace_fun_p): New typedef. |
| 7078 | (struct btrace_thread_info) <functions>: New field. |
| 7079 | |
| 7080 | 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com> |
| 7081 | |
| 7082 | * record-btrace.c (btrace_ui_out_decode_error): Move most of it ... |
| 7083 | * btrace.c (btrace_decode_error): ... here. New function. |
| 7084 | * btrace.h (btrace_decode_error): New export. |
| 7085 | |
| 7086 | 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com> |
| 7087 | |
| 7088 | * btrace.c (ftrace_call_num_insn, btrace_insn_get_error): New function. |
| 7089 | (ftrace_new_function, btrace_insn_number, btrace_insn_cmp, |
| 7090 | btrace_find_insn_by_number): Remove special case for gaps. |
| 7091 | * btrace.h (btrace_insn_get_error): New export. |
| 7092 | (btrace_insn_number, btrace_find_insn_by_number): Adjust comment. |
| 7093 | * record-btrace.c (btrace_insn_history): Print number for gaps. |
| 7094 | (record_btrace_info, record_btrace_goto): Handle gaps. |
| 7095 | |
| 7096 | 2017-02-14 Tom Tromey <tom@tromey.com> |
| 7097 | |
| 7098 | PR python/13598: |
| 7099 | * python/python.c (gdbpy_before_prompt_hook): Emit before_prompt |
| 7100 | event. |
| 7101 | * python/py-evts.c (gdbpy_initialize_py_events): Add |
| 7102 | before_prompt registry. |
| 7103 | * python/py-events.h (events_object) <before_prompt>: New field. |
| 7104 | |
| 7105 | 2017-02-14 Markus Metzger <markus.t.metzger@intel.com> |
| 7106 | |
| 7107 | * btrace.c (ftrace_new_switch): Preserve up link and flags. |
| 7108 | |
| 7109 | 2017-02-13 Luis Machado <lgustavo@codesourcery.com> |
| 7110 | |
| 7111 | * symfile (_initialize_symfile): Add usage text to the load command's |
| 7112 | help text. |
| 7113 | |
| 7114 | 2017-02-10 Simon Marchi <simon.marchi@ericsson.com> |
| 7115 | |
| 7116 | * utils.c (defaulted_query): Don't query on secondary UIs. |
| 7117 | |
| 7118 | 2017-02-10 Tom Tromey <tom@tromey.com> |
| 7119 | |
| 7120 | * rust-lang.c (rust_get_disr_info): Remove unused variable. |
| 7121 | |
| 7122 | 2017-02-10 Tom Tromey <tom@tromey.com> |
| 7123 | |
| 7124 | * python/py-value.c (valpy_richcompare_throw): Remove unnecessary |
| 7125 | "cleanup" local. |
| 7126 | * python/py-type.c (typy_legacy_template_argument): Remove |
| 7127 | unnecessary "cleanup" local. |
| 7128 | |
| 7129 | 2017-02-10 Tom Tromey <tom@tromey.com> |
| 7130 | |
| 7131 | * python/python.c (do_start_initialization): New function, from |
| 7132 | _initialize_python. |
| 7133 | (_initialize_python): Call do_start_initialization. |
| 7134 | * python/py-linetable.c (ltpy_iternext): Use explicit returns, not |
| 7135 | goto. |
| 7136 | |
| 7137 | 2017-02-10 Tom Tromey <tom@tromey.com> |
| 7138 | |
| 7139 | * python/py-prettyprint.c (pretty_print_one_value): Use |
| 7140 | gdbpy_ref. |
| 7141 | |
| 7142 | 2017-02-10 Tom Tromey <tom@tromey.com> |
| 7143 | |
| 7144 | * python/py-cmd.c (cmdpy_destroyer): Use gdbpy_ref. |
| 7145 | * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Use |
| 7146 | gdbpy_ref. |
| 7147 | * python/py-type.c (field_new): Use gdbpy_ref. |
| 7148 | * python/py-symtab.c (symtab_and_line_to_sal_object): Use |
| 7149 | gdbpy_ref. |
| 7150 | * python/py-progspace.c (pspy_new): Use gdbpy_ref. |
| 7151 | (py_free_pspace): Likewise. |
| 7152 | (pspace_to_pspace_object): Likewise. |
| 7153 | * python/py-objfile.c (objfpy_new): Use gdbpy_ref. |
| 7154 | (py_free_objfile): Likewise. |
| 7155 | (objfile_to_objfile_object): Likewise. |
| 7156 | * python/py-inferior.c (delete_thread_object): Use |
| 7157 | gdbpy_ref. |
| 7158 | (infpy_read_memory): Likewise. |
| 7159 | (py_free_inferior): Likewise. |
| 7160 | * python/py-evtregistry.c (create_eventregistry_object): Use |
| 7161 | gdbpy_ref. |
| 7162 | * python/py-event.c (create_event_object): Use gdbpy_ref. |
| 7163 | |
| 7164 | 2017-02-10 Tom Tromey <tom@tromey.com> |
| 7165 | |
| 7166 | * python/py-ref.h (gdbpy_ref_policy): Now a template. |
| 7167 | (gdbpy_ref): Now a template; allow subclasses of PyObject to be |
| 7168 | used. |
| 7169 | * python/py-arch.c, python/py-bpevent.c, python/py-breakpoint.c, |
| 7170 | python/py-cmd.c, python/py-continueevent.c, python/py-event.c, |
| 7171 | python/py-exitedevent.c, python/py-finishbreakpoint.c, |
| 7172 | python/py-framefilter.c, python/py-function.c, |
| 7173 | python/py-inferior.c, python/py-infevents.c, |
| 7174 | python/py-linetable.c, python/py-newobjfileevent.c, |
| 7175 | python/py-param.c, python/py-prettyprint.c, python/py-ref.h, |
| 7176 | python/py-signalevent.c, python/py-stopevent.c, |
| 7177 | python/py-symbol.c, python/py-threadevent.c, python/py-type.c, |
| 7178 | python/py-unwind.c, python/py-utils.c, python/py-value.c, |
| 7179 | python/py-varobj.c, python/py-xmethods.c, python/python.c, |
| 7180 | varobj.c: Change gdbpy_ref to gdbpy_ref<>. |
| 7181 | |
| 7182 | 2017-02-10 Tom Tromey <tom@tromey.com> |
| 7183 | |
| 7184 | * ui-out.h (ui_out_emit_type): New class. |
| 7185 | (ui_out_emit_tuple, ui_out_emit_list): New typedefs. |
| 7186 | * python/py-framefilter.c (py_print_single_arg): Use gdb::optional |
| 7187 | and ui_out_emit_tuple. |
| 7188 | (enumerate_locals): Likewise. |
| 7189 | (py_mi_print_variables, py_print_locals, py_print_args): Use |
| 7190 | ui_out_emit_list. |
| 7191 | (py_print_frame): Use gdb::optional, ui_out_emit_tuple, |
| 7192 | ui_out_emit_list. |
| 7193 | * common/gdb_optional.h: New file. |
| 7194 | |
| 7195 | 2017-02-10 Martin Galvan <martingalvan@sourceware.org> |
| 7196 | |
| 7197 | * MAINTAINERS (Write After Approval): Update my e-mail address. |
| 7198 | |
| 7199 | 2017-02-10 Martin Galvan <martingalvan@sourceware.org> |
| 7200 | |
| 7201 | PR gdb/21122 |
| 7202 | * breakpoint.c (_initialize_breakpoint): Update the help description |
| 7203 | of the 'commands' command to indicate that it takes a list argument. |
| 7204 | |
| 7205 | 2017-02-09 Simon Marchi <simon.marchi@ericsson.com> |
| 7206 | |
| 7207 | * interps.c (current_interp_set_logging): Remove "return". |
| 7208 | |
| 7209 | 2017-02-09 Gary Benson <gbenson@redhat.com> |
| 7210 | |
| 7211 | * symtab.c (add_symtab_completions): Prevent NULL pointer |
| 7212 | dereference. |
| 7213 | |
| 7214 | 2017-02-08 Pedro Alves <palves@redhat.com> |
| 7215 | |
| 7216 | * interps.c (interp::interp): Remove reference to quiet_p. |
| 7217 | (interp_set): Make static. Remove dead "Switching to" output |
| 7218 | code. |
| 7219 | (interp_quiet_p, interp_set_quiet): Delete. |
| 7220 | (interpreter_exec_cmd): Don't set the interpreter quiet. |
| 7221 | * interps.h (interp_quiet_p): Make static. |
| 7222 | (class interp) <quiet_p>: Remove field |
| 7223 | |
| 7224 | 2017-02-08 Jerome Guitton <guitton@adacore.com> |
| 7225 | |
| 7226 | * cli/cli-decode.c (find_command_name_length): Make it extern. |
| 7227 | * cli/cli-decode.h (find_command_name_length): Declare. |
| 7228 | * cli/cli-script.c (command_name_equals, line_first_arg): |
| 7229 | New functions. |
| 7230 | (process_next_line): Use cli-decode to parse command names. |
| 7231 | (build_command_line): Make args a constant pointer. |
| 7232 | |
| 7233 | 2017-02-08 Jerome Guitton <guitton@adacore.com> |
| 7234 | |
| 7235 | * cli-decode.c (lookup_cmd_1, lookup_cmd_composition): |
| 7236 | Remove case-insensitive search. |
| 7237 | |
| 7238 | 2017-02-07 Jose E. Marchesi <jose.marchesi@oracle.com> |
| 7239 | |
| 7240 | * sparc-tdep.c (sparc32_gdbarch_init): Do not place a + operator |
| 7241 | at the end of the line. Avoids an ARI warning. |
| 7242 | |
| 7243 | 2017-02-06 Luis Machado <lgustavo@codesourcery.com> |
| 7244 | |
| 7245 | * NEWS: Mention support for record/replay of Intel 64 rdrand and |
| 7246 | rdseed instructions. |
| 7247 | i386-tdep.c (i386_process_record): Handle Intel 64 rdrand and rseed. |
| 7248 | |
| 7249 | 2017-02-06 Ivo Raisr <ivo.raisr@oracle.com> |
| 7250 | |
| 7251 | PR tdep/20936 |
| 7252 | Provide and use sparc32 and sparc64 target description XML files. |
| 7253 | * features/sparc/sparc32-cp0.xml, features/sparc/sparc32-cpu.xml, |
| 7254 | features/sparc/sparc32-fpu.xml: New files for sparc 32-bit. |
| 7255 | * features/sparc/sparc64-cp0.xml, features/sparc/sparc64-cpu.xml, |
| 7256 | features/sparc/sparc64-fpu.xml: New files for sparc 64-bit. |
| 7257 | * features/sparc/sparc32-solaris.xml: New file. |
| 7258 | * features/sparc/sparc64-solaris.xml: New file. |
| 7259 | * features/sparc/sparc32-solaris.c: Generated. |
| 7260 | * features/sparc/sparc64-solaris.c: Generated. |
| 7261 | * sparc-tdep.h: Account for differences in target descriptions. |
| 7262 | * sparc-tdep.c (sparc32_register_name): Use target provided registers. |
| 7263 | (sparc32_register_type): Use target provided registers. |
| 7264 | (validate_tdesc_registers): New function. |
| 7265 | (sparc32_gdbarch_init): Use tdesc_has_registers. |
| 7266 | Set pseudoregister functions. |
| 7267 | * sparc64-tdep.c (sparc64_register_name): Use target provided registers. |
| 7268 | (sparc64_register_type): Use target provided registers. |
| 7269 | (sparc64_init_abi): Set pseudoregister functions. |
| 7270 | |
| 7271 | 2017-02-03 Tom Tromey <tom@tromey.com> |
| 7272 | |
| 7273 | PR rust/21097: |
| 7274 | * rust-lang.c (rust_print_type) <TYPE_CODE_UNION>: Handle enums |
| 7275 | with a single member. |
| 7276 | |
| 7277 | 2017-02-03 Pedro Alves <palves@redhat.com> |
| 7278 | |
| 7279 | * cli/cli-interp.c (cli_interp_base::cli_interp_base) |
| 7280 | (cli_interp_base::~cli_interp_base): New. |
| 7281 | (cli_interp): New struct. |
| 7282 | (as_cli_interp): Cast the interp itself to cli_interp. |
| 7283 | (cli_interpreter_pre_command_loop): Rename to ... |
| 7284 | (cli_interp_base::pre_command_loop): ... this. Remove 'self' |
| 7285 | parameter. |
| 7286 | (cli_interpreter_init): Rename to ... |
| 7287 | (cli_interp::init): ... this. Remove 'self' parameter. Use |
| 7288 | boolean. Make extern. |
| 7289 | (cli_interpreter_resume): Rename to ... |
| 7290 | (cli_interp::resume): ... this. Remove 'data' parameter. Make |
| 7291 | extern. |
| 7292 | (cli_interpreter_suspend): Rename to ... |
| 7293 | (cli_interp::suspend): ... this. Remove 'data' parameter. Make |
| 7294 | extern. |
| 7295 | (cli_interpreter_exec): Rename to ... |
| 7296 | (cli_interp::exec): ... this. Remove 'data' parameter. Make |
| 7297 | extern. |
| 7298 | (cli_interpreter_supports_command_editing): Rename to ... |
| 7299 | (cli_interp_base::supports_command_editing): ... this. Remove |
| 7300 | 'interp' parameter. Make extern. |
| 7301 | (cli_ui_out): Rename to ... |
| 7302 | (cli_interp::interp_ui_out): ... this. Remove 'interp' parameter. |
| 7303 | Make extern. |
| 7304 | (cli_set_logging): Rename to ... |
| 7305 | (cli_interp_base::set_logging): ... this. Remove 'interp' |
| 7306 | parameter. Make extern. |
| 7307 | (cli_interp_procs): Delete. |
| 7308 | (cli_interp_factory): Adjust to use "new". |
| 7309 | * cli/cli-interp.h: Include "interps.h". |
| 7310 | (struct cli_interp_base): New struct. |
| 7311 | * interps.c (struct interp): Delete. Fields moved to interps.h. |
| 7312 | (interp_new): Delete. |
| 7313 | (interp::interp, interp::~interp): New. |
| 7314 | (interp_set): Use bool, and return void. Assume the interpreter |
| 7315 | has suspend, init and resume methods, and that the all return |
| 7316 | void. |
| 7317 | (set_top_level_interpreter): interp_set returns void. |
| 7318 | (interp_ui_out): Adapt. |
| 7319 | (current_interp_set_logging): Adapt. |
| 7320 | (interp_data): Delete. |
| 7321 | (interp_pre_command_loop, interp_supports_command_editing): Adapt. |
| 7322 | (interp_exec): Adapt. |
| 7323 | (top_level_interpreter_data): Delete. |
| 7324 | * interps.h (interp_init_ftype, interp_resume_ftype) |
| 7325 | (interp_suspend_ftype, interp_exec_ftype) |
| 7326 | (interp_pre_command_loop_ftype, interp_ui_out_ftype): Delete. |
| 7327 | (class interp): New. |
| 7328 | (interp_new): Delete. |
| 7329 | (interp_set): Now returns void. Use bool. |
| 7330 | (interp_data, top_level_interpreter_data): Delete. |
| 7331 | * mi/mi-common.h: Include interps.h. |
| 7332 | (class mi_interp): Inherit from interp. Define a ctor. Declare |
| 7333 | init, resume, suspect, exec, interp_ui_out, set_logging and |
| 7334 | pre_command_loop methods. |
| 7335 | * mi/mi-interp.c (as_mi_interp): Cast the interp itself. |
| 7336 | (mi_interpreter_init): Rename to ... |
| 7337 | (mi_interp::init): ... this. Remove the 'interp' parameter, use |
| 7338 | bool, return void and make extern. Adjust. |
| 7339 | (mi_interpreter_resume): ... Rename to ... |
| 7340 | (mi_interp::resume): ... this. Remove the 'data' parameter, |
| 7341 | return void and make extern. Adjust. |
| 7342 | (mi_interpreter_suspend): ... Rename to ... |
| 7343 | (mi_interp::suspend): ... this. Remove the 'data' parameter, |
| 7344 | return void and make extern. Adjust. |
| 7345 | (mi_interpreter_exec): ... Rename to ... |
| 7346 | (mi_interp::exec): ... this. Remove the 'data' parameter and make |
| 7347 | extern. Adjust. |
| 7348 | (mi_interpreter_pre_command_loop): ... Rename to ... |
| 7349 | (mi_interp::pre_command_loop): ... this. Remove the 'self' |
| 7350 | parameter and make extern. |
| 7351 | (mi_on_normal_stop_1): Adjust. |
| 7352 | (mi_ui_out): Rename to ... |
| 7353 | (mi_interp::interp_ui_out): ... this. Remove the 'interp' |
| 7354 | parameter and make extern. Adjust. |
| 7355 | (mi_set_logging): Rename to ... |
| 7356 | (mi_interp::set_logging): ... this. Remove the 'interp' |
| 7357 | parameter and make extern. Adjust. |
| 7358 | (mi_interp_procs): Delete. |
| 7359 | (mi_interp_factory): Adjust to use 'new'. |
| 7360 | * mi/mi-main.c (mi_cmd_gdb_exit, captured_mi_execute_command) |
| 7361 | (mi_print_exception, mi_execute_command, mi_load_progress): |
| 7362 | Adjust. |
| 7363 | * tui/tui-interp.c (tui_interp): New class. |
| 7364 | (as_tui_interp): Return a tui_interp pointer. |
| 7365 | (tui_on_normal_stop, tui_on_signal_received) |
| 7366 | (tui_on_end_stepping_range, tui_on_signal_exited, tui_on_exited) |
| 7367 | (tui_on_no_history, tui_on_user_selected_context_changed): Adjust |
| 7368 | to use interp::interp_ui_out. |
| 7369 | (tui_init): Rename to ... |
| 7370 | (tui_interp::init): ... this. Remove the 'self' parameter, use |
| 7371 | bool, return void and make extern. Adjust. |
| 7372 | (tui_resume): Rename to ... |
| 7373 | (tui_interp::resume): ... this. Remove the 'data' parameter, |
| 7374 | return void and make extern. Adjust. |
| 7375 | (tui_suspend): Rename to ... |
| 7376 | (tui_interp::suspend): ... this. Remove the 'data' parameter, |
| 7377 | return void and make extern. Adjust. |
| 7378 | (tui_ui_out): Rename to ... |
| 7379 | (tui_interp::interp_ui_out): ... this. Remove the 'self' |
| 7380 | parameter, and make extern. Adjust. |
| 7381 | (tui_exec): Rename to ... |
| 7382 | (tui_interp::exec): ... this. Remove the 'data' parameter and |
| 7383 | make extern. |
| 7384 | (tui_interp_procs): Delete. |
| 7385 | (tui_interp_factory): Use "new". |
| 7386 | |
| 7387 | 2017-02-02 Tom Tromey <tom@tromey.com> |
| 7388 | |
| 7389 | * rust-exp.y (ends_raw_string, space_then_number) |
| 7390 | (rust_identifier_start_p): Return bool. |
| 7391 | * rust-lang.c (rust_tuple_type_p, rust_underscore_fields) |
| 7392 | (rust_tuple_struct_type_p, rust_tuple_variant_type_p) |
| 7393 | (rust_slice_type_p, rust_range_type_p, rust_u8_type_p) |
| 7394 | (rust_chartype_p): Return bool. |
| 7395 | (val_print_struct, rust_print_struct_def, rust_print_type): |
| 7396 | Update. |
| 7397 | * rust-lang.h (rust_tuple_type_p, rust_tuple_struct_type_p): |
| 7398 | Return bool. |
| 7399 | |
| 7400 | 2017-02-02 Tom Tromey <tom@tromey.com> |
| 7401 | |
| 7402 | * rust-lang.c: Reindent. |
| 7403 | |
| 7404 | 2017-02-02 Tom Tromey <tom@tromey.com> |
| 7405 | |
| 7406 | * rust-lang.h (rust_crate_for_block): Update. |
| 7407 | * rust-lang.c (rust_crate_for_block): Return std::string. |
| 7408 | (rust_get_disr_info): Use std:;string, not |
| 7409 | gdb::unique_xmalloc_ptr. |
| 7410 | * rust-exp.y (crate_name): Update. |
| 7411 | |
| 7412 | 2017-02-02 Pedro Alves <palves@redhat.com> |
| 7413 | |
| 7414 | * disasm-selftests.c (print_one_insn_test): Move the "verbose" |
| 7415 | field out of gdb_disassembler_test and make it static. |
| 7416 | |
| 7417 | 2017-02-02 Pedro Alves <palves@redhat.com> |
| 7418 | |
| 7419 | * mi/mi-common.h (struct mi_interp): Delete the mi2_interp, |
| 7420 | mi1_interp and mi_interp fields. |
| 7421 | |
| 7422 | 2017-02-02 Pedro Alves <palves@redhat.com> |
| 7423 | |
| 7424 | * cli/cli-interp.c (struct saved_output_files, saved_output): |
| 7425 | Moved from cli/cli-logging.c. |
| 7426 | (cli_set_logging): New function. |
| 7427 | (cli_interp_procs): Install cli_set_logging. |
| 7428 | * cli/cli-interp.h (make_logging_output, cli_set_logging): |
| 7429 | Declare. |
| 7430 | * cli/cli-logging.c (struct saved_output_files, saved_output): |
| 7431 | Moved to cli/cli-interp.c. |
| 7432 | (pop_output_files): Don't save outputs here. |
| 7433 | (make_logging_output): New function. |
| 7434 | (handle_redirections): Don't build tee nor save previous outputs |
| 7435 | here. |
| 7436 | * interps.c (current_interp_set_logging): Change prototype. |
| 7437 | Assume there's always a set_logging_proc method installed. |
| 7438 | * interps.h (interp_set_logging_ftype): Change prototype. |
| 7439 | (current_interp_set_logging): Change prototype and adjust comment. |
| 7440 | * mi/mi-interp.c (mi_set_logging): Change protototype. Adjust to |
| 7441 | use make_logging_output. |
| 7442 | * tui/tui-interp.c (tui_interp_procs): Install cli_set_logging. |
| 7443 | 2017-02-02 Pedro Alves <palves@redhat.com> |
| 7444 | |
| 7445 | * cli/cli-logging.c (maybe_warn_already_logging): New factored out |
| 7446 | from ... |
| 7447 | (set_logging_overwrite): ... here. |
| 7448 | (logging_no_redirect_file): Delete. |
| 7449 | (set_logging_redirect): Don't handle redirection on the fly. |
| 7450 | Instead warn that "logging off" / "logging on" is necessary. |
| 7451 | (pop_output_files): Delete references to logging_no_redirect_file. |
| 7452 | (show_logging_command): Always speak in terms of what will happen |
| 7453 | once logging is reenabled. |
| 7454 | |
| 7455 | 2017-02-02 Pedro Alves <palves@redhat.com> |
| 7456 | |
| 7457 | * disasm.h (gdb_pretty_print_disassembler): Tweak intro comment. |
| 7458 | |
| 7459 | 2017-02-02 Pedro Alves <palves@redhat.com> |
| 7460 | |
| 7461 | * disasm.c (gdb_pretty_print_insn): Rename to ... |
| 7462 | (gdb_pretty_print_disassembler::pretty_print_insn): ... this. |
| 7463 | Remove gdbarch parameter. Adapt to clear the object's buffers |
| 7464 | instead of allocating new buffers, and to print using the object's |
| 7465 | gdb_disassembler instead of calling gdb_print_insn. |
| 7466 | (dump_insns): Use gdb_pretty_print_disassembler. |
| 7467 | * disasm.h (gdb_pretty_print_insn): Delete declaration. |
| 7468 | (gdb_pretty_print_disassembler): New class. |
| 7469 | * record-btrace.c (btrace_insn_history): Use |
| 7470 | gdb_pretty_print_disassembler. |
| 7471 | |
| 7472 | 2017-02-02 Pedro Alves <palves@redhat.com> |
| 7473 | |
| 7474 | * ada-lang.c (type_as_string): Use string_file. |
| 7475 | * ada-valprint.c (ada_print_floating): Use string_file. |
| 7476 | * ada-varobj.c (ada_varobj_scalar_image) |
| 7477 | (ada_varobj_get_value_image): Use string_file. |
| 7478 | * aix-thread.c (aix_thread_extra_thread_info): Use string_file. |
| 7479 | * arm-tdep.c (_initialize_arm_tdep): Use string_printf. |
| 7480 | * breakpoint.c (update_inserted_breakpoint_locations) |
| 7481 | (insert_breakpoint_locations, reattach_breakpoints) |
| 7482 | (print_breakpoint_location, print_one_detail_ranged_breakpoint) |
| 7483 | (print_it_watchpoint): Use string_file. |
| 7484 | (save_breakpoints): Use stdio_file. |
| 7485 | * c-exp.y (oper): Use string_file. |
| 7486 | * cli/cli-logging.c (set_logging_redirect): Use ui_file_up and |
| 7487 | tee_file. |
| 7488 | (pop_output_files): Use delete. |
| 7489 | (handle_redirections): Use stdio_file and tee_file. |
| 7490 | * cli/cli-setshow.c (do_show_command): Use string_file. |
| 7491 | * compile/compile-c-support.c (c_compute_program): Use |
| 7492 | string_file. |
| 7493 | * compile/compile-c-symbols.c (generate_vla_size): Take a |
| 7494 | 'string_file &' instead of a 'ui_file *'. |
| 7495 | (generate_c_for_for_one_variable): Take a 'string_file &' instead |
| 7496 | of a 'ui_file *'. Use string_file. |
| 7497 | (generate_c_for_variable_locations): Take a 'string_file &' |
| 7498 | instead of a 'ui_file *'. |
| 7499 | * compile/compile-internal.h (generate_c_for_for_one_variable): |
| 7500 | Take a 'string_file &' instead of a 'ui_file *'. |
| 7501 | * compile/compile-loc2c.c (push, pushf, unary, binary) |
| 7502 | (print_label, pushf_register_address, pushf_register) |
| 7503 | (do_compile_dwarf_expr_to_c): Take a 'string_file &' instead of a |
| 7504 | 'ui_file *'. Adjust. |
| 7505 | * compile/compile.c (compile_to_object): Use string_file. |
| 7506 | * compile/compile.h (compile_dwarf_expr_to_c) |
| 7507 | (compile_dwarf_bounds_to_c): Take a 'string_file &' instead of a |
| 7508 | 'ui_file *'. |
| 7509 | * cp-support.c (inspect_type): Use string_file and obstack_copy0. |
| 7510 | (replace_typedefs_qualified_name): Use string_file and |
| 7511 | obstack_copy0. |
| 7512 | * disasm.c (gdb_pretty_print_insn): Use string_file. |
| 7513 | (gdb_disassembly): Adjust reference the null_stream global. |
| 7514 | (do_ui_file_delete): Delete. |
| 7515 | (gdb_insn_length): Use null_stream. |
| 7516 | * dummy-frame.c (maintenance_print_dummy_frames): Use stdio_file. |
| 7517 | * dwarf2loc.c (dwarf2_compile_property_to_c) |
| 7518 | (locexpr_generate_c_location, loclist_generate_c_location): Take a |
| 7519 | 'string_file &' instead of a 'ui_file *'. |
| 7520 | * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise. |
| 7521 | * dwarf2read.c (do_ui_file_peek_last): Delete. |
| 7522 | (dwarf2_compute_name): Use string_file. |
| 7523 | * event-top.c (gdb_setup_readline): Use stdio_file. |
| 7524 | * gdbarch.sh (verify_gdbarch): Use string_file. |
| 7525 | * gdbtypes.c (safe_parse_type): Use null_stream. |
| 7526 | * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Use |
| 7527 | string_file. |
| 7528 | * guile/scm-disasm.c (gdbscm_print_insn_from_port): Take a |
| 7529 | 'string_file *' instead of a 'ui_file *'. |
| 7530 | (gdbscm_arch_disassemble): Use string_file. |
| 7531 | * guile/scm-frame.c (frscm_print_frame_smob): Use string_file. |
| 7532 | * guile/scm-ports.c (class ioscm_file_port): Now a class that |
| 7533 | inherits from ui_file. |
| 7534 | (ioscm_file_port_delete, ioscm_file_port_rewind) |
| 7535 | (ioscm_file_port_put): Delete. |
| 7536 | (ioscm_file_port_write): Rename to ... |
| 7537 | (ioscm_file_port::write): ... this. Remove file_port_magic |
| 7538 | checks. |
| 7539 | (ioscm_file_port_new): Delete. |
| 7540 | (ioscm_with_output_to_port_worker): Use ioscm_file_port and |
| 7541 | ui_file_up. |
| 7542 | * guile/scm-type.c (tyscm_type_name): Use string_file. |
| 7543 | * guile/scm-value.c (vlscm_print_value_smob, gdbscm_value_print): |
| 7544 | Use string_file. |
| 7545 | * infcmd.c (print_return_value_1): Use string_file. |
| 7546 | * infrun.c (print_target_wait_results): Use string_file. |
| 7547 | * language.c (add_language): Use string_file. |
| 7548 | * location.c (explicit_to_string_internal): Use string_file. |
| 7549 | * main.c (captured_main_1): Use null_file. |
| 7550 | * maint.c (maintenance_print_architecture): Use stdio_file. |
| 7551 | * mi/mi-cmd-stack.c (list_arg_or_local): Use string_file. |
| 7552 | * mi/mi-common.h (struct mi_interp) <out, err, log, targ, |
| 7553 | event_channel>: Change type to mi_console_file pointer. |
| 7554 | * mi/mi-console.c (mi_console_file_fputs, mi_console_file_flush) |
| 7555 | (mi_console_file_delete): Delete. |
| 7556 | (struct mi_console_file): Delete. |
| 7557 | (mi_console_file_magic): Delete. |
| 7558 | (mi_console_file_new): Delete. |
| 7559 | (mi_console_file::mi_console_file): New. |
| 7560 | (mi_console_file_delete): Delete. |
| 7561 | (mi_console_file_fputs): Delete. |
| 7562 | (mi_console_file::write): New. |
| 7563 | (mi_console_raw_packet): Delete. |
| 7564 | (mi_console_file::flush): New. |
| 7565 | (mi_console_file_flush): Delete. |
| 7566 | (mi_console_set_raw): Rename to ... |
| 7567 | (mi_console_file::set_raw): ... this. |
| 7568 | * mi/mi-console.h (class mi_console_file): New class. |
| 7569 | (mi_console_file_new, mi_console_set_raw): Delete. |
| 7570 | * mi/mi-interp.c (mi_interpreter_init): Use mi_console_file. |
| 7571 | (mi_set_logging): Use delete and tee_file. Adjust. |
| 7572 | * mi/mi-main.c (output_register): Use string_file. |
| 7573 | (mi_cmd_data_evaluate_expression): Use string_file. |
| 7574 | (mi_cmd_data_read_memory): Use string_file. |
| 7575 | (mi_cmd_execute, print_variable_or_computed): Use string_file. |
| 7576 | * mi/mi-out.c (mi_ui_out::main_stream): New. |
| 7577 | (mi_ui_out::rewind): Use main_stream and |
| 7578 | string_file. |
| 7579 | (mi_ui_out::put): Use main_stream and string_file. |
| 7580 | (mi_ui_out::mi_ui_out): Remove 'stream' parameter. |
| 7581 | Allocate a 'string_file' instead. |
| 7582 | (mi_out_new): Don't allocate a mem_fileopen stream here. |
| 7583 | * mi/mi-out.h (mi_ui_out::mi_ui_out): Remove 'stream' parameter. |
| 7584 | (mi_ui_out::main_stream): Declare method. |
| 7585 | * printcmd.c (eval_command): Use string_file. |
| 7586 | * psymtab.c (maintenance_print_psymbols): Use stdio_file. |
| 7587 | * python/py-arch.c (archpy_disassemble): Use string_file. |
| 7588 | * python/py-breakpoint.c (bppy_get_commands): Use string_file. |
| 7589 | * python/py-frame.c (frapy_str): Use string_file. |
| 7590 | * python/py-framefilter.c (py_print_type, py_print_single_arg): |
| 7591 | Use string_file. |
| 7592 | * python/py-type.c (typy_str): Use string_file. |
| 7593 | * python/py-unwind.c (unwind_infopy_str): Use string_file. |
| 7594 | * python/py-value.c (valpy_str): Use string_file. |
| 7595 | * record-btrace.c (btrace_insn_history): Use string_file. |
| 7596 | * regcache.c (regcache_print): Use stdio_file. |
| 7597 | * reggroups.c (maintenance_print_reggroups): Use stdio_file. |
| 7598 | * remote.c (escape_buffer): Use string_file. |
| 7599 | * rust-lang.c (rust_get_disr_info): Use string_file. |
| 7600 | * serial.c (serial_open_ops_1): Use stdio_file. |
| 7601 | (do_serial_close): Use delete. |
| 7602 | * stack.c (print_frame_arg): Use string_file. |
| 7603 | (print_frame_args): Remove local mem_fileopen stream, not used. |
| 7604 | (print_frame): Use string_file. |
| 7605 | * symmisc.c (maintenance_print_symbols): Use stdio_file. |
| 7606 | * symtab.h (struct symbol_computed_ops) <generate_c_location>: |
| 7607 | Take a 'string_file *' instead of a 'ui_file *'. |
| 7608 | * top.c (new_ui): Use stdio_file and stderr_file. |
| 7609 | (free_ui): Use delete. |
| 7610 | (execute_command_to_string): Use string_file. |
| 7611 | (quit_confirm): Use string_file. |
| 7612 | * tracepoint.c (collection_list::append_exp): Use string_file. |
| 7613 | * tui/tui-disasm.c (tui_disassemble): Use string_file. |
| 7614 | * tui/tui-file.c: Don't include "ui-file.h". |
| 7615 | (enum streamtype, struct tui_stream): Delete. |
| 7616 | (tui_file_new, tui_file_delete, tui_fileopen, tui_sfileopen) |
| 7617 | (tui_file_isatty, tui_file_rewind, tui_file_put): Delete. |
| 7618 | (tui_file::tui_file): New method. |
| 7619 | (tui_file_fputs): Delete. |
| 7620 | (tui_file_get_strbuf): Delete. |
| 7621 | (tui_file::puts): New method. |
| 7622 | (tui_file_adjust_strbuf): Delete. |
| 7623 | (tui_file_flush): Delete. |
| 7624 | (tui_file::flush): New method. |
| 7625 | * tui/tui-file.h: Tweak intro comment. |
| 7626 | Include ui-file.h. |
| 7627 | (tui_fileopen, tui_sfileopen, tui_file_get_strbuf) |
| 7628 | (tui_file_adjust_strbuf): Delete declarations. |
| 7629 | (class tui_file): New class. |
| 7630 | * tui/tui-io.c (tui_initialize_io): Use tui_file. |
| 7631 | * tui/tui-regs.c (tui_restore_gdbout): Use delete. |
| 7632 | (tui_register_format): Use string_stream. |
| 7633 | * tui/tui-stack.c (tui_make_status_line): Use string_file. |
| 7634 | (tui_get_function_from_frame): Use string_file. |
| 7635 | * typeprint.c (type_to_string): Use string_file. |
| 7636 | * ui-file.c (struct ui_file, ui_file_magic, ui_file_new): Delete. |
| 7637 | (null_stream): New global. |
| 7638 | (ui_file_delete): Delete. |
| 7639 | (ui_file::ui_file): New. |
| 7640 | (null_file_isatty): Delete. |
| 7641 | (ui_file::~ui_file): New. |
| 7642 | (null_file_rewind): Delete. |
| 7643 | (ui_file::printf): New. |
| 7644 | (null_file_put): Delete. |
| 7645 | (null_file_flush): Delete. |
| 7646 | (ui_file::putstr): New. |
| 7647 | (null_file_write): Delete. |
| 7648 | (ui_file::putstrn): New. |
| 7649 | (null_file_read): Delete. |
| 7650 | (ui_file::putc): New. |
| 7651 | (null_file_fputs): Delete. |
| 7652 | (null_file_write_async_safe): Delete. |
| 7653 | (ui_file::vprintf): New. |
| 7654 | (null_file_delete): Delete. |
| 7655 | (null_file::write): New. |
| 7656 | (null_file_fseek): Delete. |
| 7657 | (null_file::puts): New. |
| 7658 | (ui_file_data): Delete. |
| 7659 | (null_file::write_async_safe): New. |
| 7660 | (gdb_flush, ui_file_isatty): Adjust. |
| 7661 | (ui_file_put, ui_file_rewind): Delete. |
| 7662 | (ui_file_write): Adjust. |
| 7663 | (ui_file_write_for_put): Delete. |
| 7664 | (ui_file_write_async_safe, ui_file_read): Adjust. |
| 7665 | (ui_file_fseek): Delete. |
| 7666 | (fputs_unfiltered): Adjust. |
| 7667 | (set_ui_file_flush, set_ui_file_isatty, set_ui_file_rewind) |
| 7668 | (set_ui_file_put, set_ui_file_write, set_ui_file_write_async_safe) |
| 7669 | (set_ui_file_read, set_ui_file_fputs, set_ui_file_fseek) |
| 7670 | (set_ui_file_data): Delete. |
| 7671 | (string_file::~string_file, string_file::write) |
| 7672 | (struct accumulated_ui_file, do_ui_file_xstrdup, ui_file_xstrdup) |
| 7673 | (do_ui_file_as_string, ui_file_as_string): Delete. |
| 7674 | (do_ui_file_obsavestring, ui_file_obsavestring): Delete. |
| 7675 | (struct mem_file): Delete. |
| 7676 | (mem_file_new): Delete. |
| 7677 | (stdio_file::stdio_file): New. |
| 7678 | (mem_file_delete): Delete. |
| 7679 | (stdio_file::stdio_file): New. |
| 7680 | (mem_fileopen): Delete. |
| 7681 | (stdio_file::~stdio_file): New. |
| 7682 | (mem_file_rewind): Delete. |
| 7683 | (stdio_file::set_stream): New. |
| 7684 | (mem_file_put): Delete. |
| 7685 | (stdio_file::open): New. |
| 7686 | (mem_file_write): Delete. |
| 7687 | (stdio_file_magic, struct stdio_file): Delete. |
| 7688 | (stdio_file_new, stdio_file_delete, stdio_file_flush): Delete. |
| 7689 | (stdio_file::flush): New. |
| 7690 | (stdio_file_read): Rename to ... |
| 7691 | (stdio_file::read): ... this. Adjust. |
| 7692 | (stdio_file_write): Rename to ... |
| 7693 | (stdio_file::write): ... this. Adjust. |
| 7694 | (stdio_file_write_async_safe): Rename to ... |
| 7695 | (stdio_file::write_async_safe) ... this. Adjust. |
| 7696 | (stdio_file_fputs): Rename to ... |
| 7697 | (stdio_file::puts) ... this. Adjust. |
| 7698 | (stdio_file_isatty): Delete. |
| 7699 | (stdio_file_fseek): Delete. |
| 7700 | (stdio_file::isatty): New. |
| 7701 | (stderr_file_write): Rename to ... |
| 7702 | (stderr_file::write) ... this. Adjust. |
| 7703 | (stderr_file_fputs): Rename to ... |
| 7704 | (stderr_file::puts) ... this. Adjust. |
| 7705 | (stderr_fileopen, stdio_fileopen, gdb_fopen): Delete. |
| 7706 | (stderr_file::stderr_file): New. |
| 7707 | (tee_file_magic): Delete. |
| 7708 | (struct tee_file): Delete. |
| 7709 | (tee_file::tee_file): New. |
| 7710 | (tee_file_new): Delete. |
| 7711 | (tee_file::~tee_file): New. |
| 7712 | (tee_file_delete): Delete. |
| 7713 | (tee_file_flush): Rename to ... |
| 7714 | (tee_file::flush): ... this. Adjust. |
| 7715 | (tee_file_write): Rename to ... |
| 7716 | (tee_file::write): ... this. Adjust. |
| 7717 | (tee_file::write_async_safe): New. |
| 7718 | (tee_file_fputs): Rename to ... |
| 7719 | (tee_file::puts): ... this. Adjust. |
| 7720 | (tee_file_isatty): Rename to ... |
| 7721 | (tee_file::isatty): ... this. Adjust. |
| 7722 | * ui-file.h (struct obstack, struct ui_file): Don't |
| 7723 | forward-declare. |
| 7724 | (ui_file_new, ui_file_flush_ftype, set_ui_file_flush) |
| 7725 | (ui_file_write_ftype) |
| 7726 | (set_ui_file_write, ui_file_fputs_ftype, set_ui_file_fputs) |
| 7727 | (ui_file_write_async_safe_ftype, set_ui_file_write_async_safe) |
| 7728 | (ui_file_read_ftype, set_ui_file_read, ui_file_isatty_ftype) |
| 7729 | (set_ui_file_isatty, ui_file_rewind_ftype, set_ui_file_rewind) |
| 7730 | (ui_file_put_method_ftype, ui_file_put_ftype, set_ui_file_put) |
| 7731 | (ui_file_delete_ftype, set_ui_file_data, ui_file_fseek_ftype) |
| 7732 | (set_ui_file_fseek): Delete. |
| 7733 | (ui_file_data, ui_file_delete, ui_file_rewind) |
| 7734 | (struct ui_file): New. |
| 7735 | (ui_file_up): New. |
| 7736 | (class null_file): New. |
| 7737 | (null_stream): Declare. |
| 7738 | (ui_file_write_for_put, ui_file_put): Delete. |
| 7739 | (ui_file_xstrdup, ui_file_as_string, ui_file_obsavestring): |
| 7740 | Delete. |
| 7741 | (ui_file_fseek, mem_fileopen, stdio_fileopen, stderr_fileopen) |
| 7742 | (gdb_fopen, tee_file_new): Delete. |
| 7743 | (struct string_file): New. |
| 7744 | (struct stdio_file): New. |
| 7745 | (stdio_file_up): New. |
| 7746 | (struct stderr_file): New. |
| 7747 | (class tee_file): New. |
| 7748 | * ui-out.c (ui_out::field_stream): Take a 'string_file &' instead |
| 7749 | of a 'ui_file *'. Adjust. |
| 7750 | * ui-out.h (class ui_out) <field_stream>: Likewise. |
| 7751 | * utils.c (do_ui_file_delete, make_cleanup_ui_file_delete) |
| 7752 | (null_stream): Delete. |
| 7753 | (error_stream): Take a 'string_file &' instead of a 'ui_file *'. |
| 7754 | Adjust. |
| 7755 | * utils.h (struct ui_file): Delete forward declaration.. |
| 7756 | (make_cleanup_ui_file_delete, null_stream): Delete declarations. |
| 7757 | (error_stream): Take a 'string_file &' instead of a |
| 7758 | 'ui_file *'. |
| 7759 | * varobj.c (varobj_value_get_print_value): Use string_file. |
| 7760 | * xtensa-tdep.c (xtensa_verify_config): Use string_file. |
| 7761 | * gdbarch.c: Regenerate. |
| 7762 | |
| 7763 | 2017-02-02 Pedro Alves <palves@redhat.com> |
| 7764 | |
| 7765 | * disasm.c (gdb_disassembler::pretty_print_insn): Rename to... |
| 7766 | (gdb_pretty_print_insn): ... this. Now a free function. Add back |
| 7767 | a 'gdbarch' parameter. Allocate a mem_fileopen stream here. |
| 7768 | Adjust to call gdb_print_insn instead of |
| 7769 | gdb_disassembler::print_insn. |
| 7770 | (dump_insns, do_mixed_source_and_assembly_deprecated) |
| 7771 | (do_mixed_source_and_assembly, do_assembly_only): Add back a |
| 7772 | 'gdbarch' parameter. Remove gdb_disassembler parameter. |
| 7773 | (gdb_disassembly): Don't allocate a gdb_disassembler here. |
| 7774 | * disasm.h (gdb_disassembler::pretty_print_insn): Delete |
| 7775 | declaration. |
| 7776 | (gdb_pretty_print_insn): Re-add declaration. |
| 7777 | * record-btrace.c (btrace_insn_history): Don't allocate a |
| 7778 | gdb_disassembler here. Adjust to call gdb_pretty_print_insn. |
| 7779 | |
| 7780 | 2017-02-01 Simon Marchi <simon.marchi@polymtl.ca> |
| 7781 | |
| 7782 | * disasm.h (gdb_disassembly): Remove file_string parameter. |
| 7783 | * disasm.c (gdb_disassembly): Likewise. |
| 7784 | * cli/cli-cmds.c (print_disassembly): Adapt. |
| 7785 | * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise. |
| 7786 | * stack.c (do_gdb_disassembly): Likewise. |
| 7787 | |
| 7788 | 2017-02-01 Andreas Arnez <arnez@linux.vnet.ibm.com> |
| 7789 | |
| 7790 | * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): For |
| 7791 | DWARF_VALUE_LITERAL, no longer ignore the offset on big-endian |
| 7792 | targets. And if the implicit value is longer than needed, extract |
| 7793 | the first bytes instead of the "least significant" ones. |
| 7794 | |
| 7795 | 2017-02-01 Markus Metzger <markus.t.metzger@intel.com> |
| 7796 | |
| 7797 | * btrace.c (btrace_enable): Do not call btrace_add_pc for |
| 7798 | BTRACE_FORMAT_PT or if can_access_registers_ptid returns false. |
| 7799 | (btrace_fetch): Assert can_access_registers_ptid. |
| 7800 | * record-btrace.c (require_btrace_thread, record_btrace_info): Call |
| 7801 | validate_registers_access. |
| 7802 | |
| 7803 | 2017-02-01 Markus Metzger <markus.t.metzger@intel.com> |
| 7804 | |
| 7805 | * gdbthread.h (can_access_registers_ptid): New. |
| 7806 | * thread.c (can_access_registers_ptid): New. |
| 7807 | |
| 7808 | 2017-02-01 Pedro Alves <palves@redhat.com> |
| 7809 | |
| 7810 | * i386-tdep.c (i386_fast_tracepoint_valid_at): Use gdb_insn_length. |
| 7811 | |
| 7812 | 2017-01-31 Pedro Alves <palves@redhat.com> |
| 7813 | |
| 7814 | * mi/mi-interp.c (mi_breakpoint_created, mi_breakpoint_modified): |
| 7815 | Fix typos. |
| 7816 | |
| 7817 | 2017-01-31 Pedro Alves <palves@redhat.com> |
| 7818 | |
| 7819 | * stack.c (print_frame_args): Remove local mem_fileopen stream, |
| 7820 | not used. |
| 7821 | |
| 7822 | 2017-01-31 Pedro Alves <palves@redhat.com> |
| 7823 | |
| 7824 | * varobj.c (varobj_value_get_print_value): Remove xstrdup call. |
| 7825 | |
| 7826 | 2017-01-31 Pedro Alves <palves@redhat.com> |
| 7827 | |
| 7828 | * common/scoped_restore.h |
| 7829 | (scoped_restore_tmpl::scoped_restore_tmpl): Template on T2, and |
| 7830 | change the value's parameter type to T2. |
| 7831 | (make_scoped_restore): Likewise. |
| 7832 | |
| 7833 | 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com> |
| 7834 | Richard Henderson <rth@redhat.com> |
| 7835 | |
| 7836 | * amd64-linux-nat.c (PTRACE_ARCH_PRCTL): New define. |
| 7837 | (amd64_linux_fetch_inferior_registers): Add case to fetch FS_BASE |
| 7838 | GS_BASE for older kernels. |
| 7839 | (amd64_linux_store_inferior_registers): Add case to store FS_BASE |
| 7840 | GS_BASE for older kernels. |
| 7841 | * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Add FS_BASE |
| 7842 | and GS_BASE to the offset table. |
| 7843 | (amd64_linux_register_reggroup_p): Add FS_BASE and GS_BASE to the |
| 7844 | system register group. |
| 7845 | * amd64-nat.c (amd64_native_gregset_reg_offset): Implements case |
| 7846 | for older kernels. |
| 7847 | * amd64-tdep.c (amd64_init_abi): Add segment registers for the |
| 7848 | amd64 ABI. |
| 7849 | * amd64-tdep.h (amd64_regnum): Add AMD64_FSBASE_REGNUM and |
| 7850 | AMD64_GSBASE_REGNUM. |
| 7851 | (AMD64_NUM_REGS): Set to AMD64_GSBASE_REGNUM + 1. |
| 7852 | * features/Makefile (amd64-linux.dat, amd64-avx-linux.dat) |
| 7853 | (amd64-mpx-linux.dat, amd64-avx512-linux.dat, x32-linux.dat) |
| 7854 | (x32-avx-linux.dat, x32-avx512-linux.dat): Add |
| 7855 | i386/64bit-segments.xml in those rules. |
| 7856 | * features/i386/64bit-segments.xml: New file. |
| 7857 | * features/i386/amd64-avx-mpx-linux.xml: Add 64bit-segments.xml. |
| 7858 | * features/i386/amd64-avx-linux.xml: Add 64bit-segments.xml. |
| 7859 | * features/i386/amd64-avx512-linux.xml: Add 64bit-segments.xml. |
| 7860 | * features/i386/amd64-mpx-linux.xml: Add 64bit-segments.xml. |
| 7861 | * features/i386/x32-avx512-linux.xml: Add 64bit-segments.xml. |
| 7862 | * features/i386/x32-avx-linux.xml: Add 64bit-segments.xml. |
| 7863 | * features/i386/amd64-linux.xml: Add 64bit-segments.xml. |
| 7864 | * features/i386/amd64-avx-linux.c: Regenerated. |
| 7865 | * features/i386/amd64-avx-mpx-linux.c: Regenerated. |
| 7866 | * features/i386/amd64-avx-mpx.c: Regenerated. |
| 7867 | * features/i386/amd64-avx512-linux.c: Regenerated. |
| 7868 | * features/i386/amd64-linux.c: Regenerated. |
| 7869 | * features/i386/amd64-mpx-linux.c: Regenerated. |
| 7870 | * features/i386/i386-avx-mpx-linux.c: Regenerated. |
| 7871 | * features/i386/i386-avx-mpx.c: Regenerated. |
| 7872 | * features/i386/x32-avx-linux.c: Regenerated. |
| 7873 | * features/i386/x32-avx512-linux.c: Regenerated. |
| 7874 | * regformats/i386/amd64-avx-linux.dat: Regenerated. |
| 7875 | * regformats/i386/amd64-avx-mpx-linux.dat: Regenerated. |
| 7876 | * regformats/i386/amd64-avx512-linux.dat: Regenerated. |
| 7877 | * regformats/i386/amd64-linux.dat: Regenerated. |
| 7878 | * regformats/i386/amd64-mpx-linux.dat: Regenerated. |
| 7879 | * regformats/i386/x32-avx-linux.dat: Regenerated. |
| 7880 | * regformats/i386/x32-avx512-linux.dat: Regenerated. |
| 7881 | * regformats/i386/x32-linux.dat: Regenerated. |
| 7882 | |
| 7883 | 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com> |
| 7884 | |
| 7885 | * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): |
| 7886 | Set to AMD64_NUM_REGS. |
| 7887 | |
| 7888 | 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com> |
| 7889 | |
| 7890 | * amd64-nat.c (amd64_native_gregset_reg_offset): Simplify logic |
| 7891 | that checks validity of a register number. |
| 7892 | |
| 7893 | 2017-01-27 Kees Cook <keescook@google.com> |
| 7894 | |
| 7895 | * gdb/arm-linux-nat.c (arm_linux_fetch_inferior_registers): Call |
| 7896 | fetch_fpregs if target has fpa registers. |
| 7897 | (arm_linux_store_inferior_registers): Call store_fpregs if target |
| 7898 | has fpa registers. |
| 7899 | |
| 7900 | 2017-01-26 Andreas Arnez <arnez@linux.vnet.ibm.com> |
| 7901 | |
| 7902 | * cris-tdep.c (cris_gdbarch_init): Remove check for |
| 7903 | info.byte_order and force it to BFD_ENDIAN_LITTLE. |
| 7904 | |
| 7905 | 2017-01-26 Antoine Tremblay <antoine.tremblay@ericsson.com> |
| 7906 | |
| 7907 | * corelow.c (get_core_register_section): Check for regset |
| 7908 | existence before checking for REGSET_VARIABLE_SIZE. |
| 7909 | |
| 7910 | 2017-01-26 Yao Qi <yao.qi@linaro.org> |
| 7911 | Pedro Alves <palves@redhat.com> |
| 7912 | |
| 7913 | PR gdb/20939 |
| 7914 | * disasm.c (gdb_disassembler::dis_asm_memory_error): Don't |
| 7915 | call memory_error, save memaddr instead. |
| 7916 | (gdb_disassembler::print_insn): If gdbarch_print_insn returns |
| 7917 | negative, cal memory_error. |
| 7918 | * disasm.h (gdb_disassembler) <m_err_memaddr>: New field. |
| 7919 | |
| 7920 | 2017-01-26 Yao Qi <yao.qi@linaro.org> |
| 7921 | |
| 7922 | * disasm-selftests.c (memory_error_test): New function. |
| 7923 | (_initialize_disasm_selftests): Register memory_error_test. |
| 7924 | |
| 7925 | 2017-01-26 Yao Qi <yao.qi@linaro.org> |
| 7926 | |
| 7927 | * Makefile.in (SFILES): Add disasm-selftests.c and |
| 7928 | selftest-arch.c. |
| 7929 | (COMMON_OBS): Add disasm-selftests.o and selftest-arch.o. |
| 7930 | * disasm-selftests.c: New file. |
| 7931 | * selftest-arch.c: New file. |
| 7932 | * selftest-arch.h: New file. |
| 7933 | |
| 7934 | 2017-01-26 Yao Qi <yao.qi@linaro.org> |
| 7935 | |
| 7936 | * mep-tdep.c (mep_gdb_print_insn): Set info->arch |
| 7937 | to bfd_arch_mep. Don't return 0 if section is not |
| 7938 | found. Call print_insn_mep. |
| 7939 | |
| 7940 | 2017-01-26 Pedro Alves <palves@redhat.com> |
| 7941 | Yao Qi <yao.qi@linaro.org> |
| 7942 | |
| 7943 | * arm-tdep.c: Include "disasm.h". |
| 7944 | (gdb_print_insn_arm): Update code to get gdbarch. |
| 7945 | * disasm.c (dis_asm_read_memory): Change it to |
| 7946 | gdb_disassembler::dis_asm_read_memory. |
| 7947 | (dis_asm_memory_error): Likewise. |
| 7948 | (dis_asm_print_address): Likewise. |
| 7949 | (gdb_pretty_print_insn): Change it to |
| 7950 | gdb_disassembler::pretty_print_insn. |
| 7951 | (dump_insns): Add one argument gdb_disassemlber. All |
| 7952 | callers updated. |
| 7953 | (do_mixed_source_and_assembly_deprecated): Likewise. |
| 7954 | (do_mixed_source_and_assembly): Likewise. |
| 7955 | (do_assembly_only): Likewise. |
| 7956 | (gdb_disassembler::gdb_disassembler): New. |
| 7957 | (gdb_disassembler::print_insn): New. |
| 7958 | * disasm.h (class gdb_disassembler): New. |
| 7959 | (gdb_pretty_print_insn): Remove declaration. |
| 7960 | (gdb_disassemble_info): Likewise. |
| 7961 | * guile/scm-disasm.c (class gdbscm_disassembler): New. |
| 7962 | (gdbscm_disasm_read_memory_worker): Update. |
| 7963 | (gdbscm_disasm_read_memory): Update. |
| 7964 | (gdbscm_disasm_memory_error): Remove. |
| 7965 | (gdbscm_disasm_print_address): Remove. |
| 7966 | (gdbscm_disassembler::gdbscm_disassembler): New. |
| 7967 | (gdbscm_print_insn_from_port): Update. |
| 7968 | * mips-tdep.c: Include disasm.h. |
| 7969 | (gdb_print_insn_mips): Update code to get gdbarch. |
| 7970 | * record-btrace.c (btrace_insn_history): Update. |
| 7971 | * spu-tdep.c: Include disasm.h. |
| 7972 | (struct spu_dis_asm_data): Remove. |
| 7973 | (struct spu_dis_asm_info): New. |
| 7974 | (spu_dis_asm_print_address): Use spu_dis_asm_info to get |
| 7975 | SPU id. |
| 7976 | (gdb_print_insn_spu): Cast disassemble_info to |
| 7977 | spu_dis_asm_info. |
| 7978 | |
| 7979 | 2017-01-26 Yao Qi <yao.qi@linaro.org> |
| 7980 | |
| 7981 | * disasm.c (do_ui_file_delete): Delete. |
| 7982 | (gdb_insn_length): Move code creating stream to ... |
| 7983 | * utils.c (null_stream): ... here. New function. |
| 7984 | * utils.h (null_stream): Declare. |
| 7985 | |
| 7986 | 2017-01-23 Simon Marchi <simon.marchi@polymtl.ca> |
| 7987 | |
| 7988 | * python/py-inferior.c (find_thread_object): Return directly |
| 7989 | from the loop. Remove "found" variable. |
| 7990 | |
| 7991 | 2017-01-21 Joel Brobecker <brobecker@adacore.com> |
| 7992 | |
| 7993 | GDB 7.12.1 released. |
| 7994 | |
| 7995 | 2017-01-20 Simon Marchi <simon.marchi@ericsson.com> |
| 7996 | |
| 7997 | * python/py-function.c (fnpy_call): Reorder declarations to have |
| 7998 | the gdbpy_enter object declared first. |
| 7999 | * python/py-xmethods.c (gdbpy_get_xmethod_arg_types): Likewise. |
| 8000 | |
| 8001 | 2017-01-20 Simon Marchi <simon.marchi@ericsson.com> |
| 8002 | |
| 8003 | PR python/21068 |
| 8004 | * python/python-internal.h (PyMem_RawMalloc): Define for |
| 8005 | Python < 3.4. |
| 8006 | * python/py-gdb-readline.c (gdbpy_readline_wrapper): Use |
| 8007 | PyMem_RawMalloc instead of PyMem_Malloc. |
| 8008 | |
| 8009 | 2017-01-20 Mike Wrighton <mike_wrighton@codesourcery.com> |
| 8010 | Luis Machado <lgustavo@codesourcery.com> |
| 8011 | |
| 8012 | * NEWS (New commands): Mention flash-erase. |
| 8013 | (New MI commands): Mention target-flash-erase. |
| 8014 | * mi/mi-cmds.c (mi_cmd_target_flash_erase): Add target-flash-erase MI |
| 8015 | command. |
| 8016 | * mi/mi-cmds.h (mi_cmd_target_flash_erase): New declaration. |
| 8017 | * mi/mi-main.c (mi_cmd_target_flash_erase): New function. |
| 8018 | * target.c (flash_erase_command): New function. |
| 8019 | (initialize_targets): Add new flash-erase command. |
| 8020 | * target.h (flash_erase_command): New declaration. |
| 8021 | |
| 8022 | 2017-01-20 Joel Brobecker <brobecker@adacore.com> |
| 8023 | |
| 8024 | * nat/linux-ptrace.c: Only include <sys/procfs.h> if |
| 8025 | HAVE_SYS_PROCFS_H is defined. |
| 8026 | |
| 8027 | 2017-01-18 Alan Hayward <alan.hayward@arm.com> |
| 8028 | |
| 8029 | * remote.c (struct cached_reg): Change data into a pointer. |
| 8030 | * (stop_reply_dtr): Free data pointers before deleting vector. |
| 8031 | (process_stop_reply): Likewise. |
| 8032 | (remote_parse_stop_reply): Allocate space for data |
| 8033 | |
| 8034 | 2017-01-18 Alan Hayward <alan.hayward@arm.com> |
| 8035 | |
| 8036 | * amd64-tdep.c (amd64_pseudo_register_read_value): remove |
| 8037 | MAX_REGISTER_SIZE. |
| 8038 | (amd64_pseudo_register_read_value): Likewise. |
| 8039 | * remote.c (fetch_register_using_p): Remove MAX_REGISTER_SIZE. |
| 8040 | (store_register_using_P): Likewise. |
| 8041 | * regcache.c (regcache_xfer_part): Likewise. |
| 8042 | |
| 8043 | 2017-01-16 Ivo Raisr <ivo.raisr@oracle.com> |
| 8044 | |
| 8045 | Split real and pseudo registers. |
| 8046 | * sparc-tdep.h (SPARC_CORE_REGISTERS): New macro. |
| 8047 | (sparc32_pseudo_regnum): New enum. |
| 8048 | * sparc64-tdep.h (sparc64_pseudo_regnum): New enum. |
| 8049 | * sparc-tdep.c (SPARC32_FPU_REGISTERS): New macro. |
| 8050 | (SPARC32_CP0_REGISTERS): New macro. |
| 8051 | (sparc32_pseudo_register_name): New function. |
| 8052 | (sparc32_register_name): Use sparc32_pseudo_register_name. |
| 8053 | (sparc32_pseudo_register_type): New function. |
| 8054 | (sparc32_register_type): Use sparc32_pseudo_register_type. |
| 8055 | (sparc32_pseudo_register_read, sparc32_pseudo_register_write): Handle |
| 8056 | pseudo register numbers. |
| 8057 | * sparc64-tdep.c SPARC64_FPU_REGISTERS): New macro. |
| 8058 | (SPARC64_CP0_REGISTERS): New macro. |
| 8059 | (sparc64_pseudo_register_name): New function. |
| 8060 | (sparc64_register_name): Use sparc64_pseudo_register_name. |
| 8061 | (sparc64_pseudo_register_type): New function. |
| 8062 | (sparc64_register_type): Use sparc64_pseudo_register_type. |
| 8063 | (sparc64_pseudo_register_read, sparc64_pseudo_register_write): Handle |
| 8064 | pseudo register numbers. |
| 8065 | (sparc64_store_floating_fields, sparc64_extract_floating_fields, |
| 8066 | sparc64_store_arguments): Handle pseudo register numbers. |
| 8067 | |
| 8068 | 2017-01-13 Yao Qi <yao.qi@linaro.org> |
| 8069 | |
| 8070 | * remote.c (REMOTE_DEBUG_MAX_CHAR): New macro. |
| 8071 | (putpkt_binary): Print only REMOTE_DEBUG_MAX_CHAR chars in debug |
| 8072 | output. |
| 8073 | (getpkt_or_notif_sane_1): Likewise. |
| 8074 | |
| 8075 | 2017-01-13 Yao Qi <yao.qi@linaro.org> |
| 8076 | |
| 8077 | * Makefile.in (checker-headers): Use CXX and CXX_DIALET instead |
| 8078 | of CC. Pass "-x c++-header" instead of "-x c". |
| 8079 | |
| 8080 | 2017-01-12 Simon Marchi <simon.marchi@ericsson.com> |
| 8081 | |
| 8082 | * remote.c (remote_can_async_p): Update comment. |
| 8083 | |
| 8084 | 2017-01-12 Simon Marchi <simon.marchi@ericsson.com> |
| 8085 | |
| 8086 | * linux-nat.c (linux_nat_can_async_p): Update comment. |
| 8087 | |
| 8088 | 2017-01-12 Simon Marchi <simon.marchi@ericsson.com> |
| 8089 | |
| 8090 | * serial.c (serial_open): Forget about "pc" and "lpt" serial interface. |
| 8091 | |
| 8092 | 2017-01-11 Simon Marchi <simon.marchi@ericsson.com> |
| 8093 | |
| 8094 | * cli/cli-decode.c (lookup_cmd_1): Fix typo in comment. |
| 8095 | |
| 8096 | 2017-01-10 Tom Tromey <tom@tromey.com> |
| 8097 | |
| 8098 | * python/py-type.c (typy_legacy_template_argument): Update. |
| 8099 | * cp-support.h (struct demangle_parse_info) (demangle_parse_info, |
| 8100 | ~demangle_parse_info): Declare new members. |
| 8101 | (cp_demangled_name_to_comp): Return unique_ptr. |
| 8102 | (cp_demangled_name_parse_free) |
| 8103 | (make_cleanup_cp_demangled_name_parse_free) |
| 8104 | (cp_new_demangle_parse_info): Remove. |
| 8105 | * cp-support.c (do_demangled_name_parse_free_cleanup) |
| 8106 | (make_cleanup_cp_demangled_name_parse_free): Remove. |
| 8107 | (inspect_type, cp_canonicalize_string_full) |
| 8108 | (cp_canonicalize_string): Update. |
| 8109 | (mangled_name_to_comp): Change return type. |
| 8110 | (cp_class_name_from_physname, method_name_from_physname) |
| 8111 | (cp_func_name, cp_remove_params): Update. |
| 8112 | * cp-name-parser.y (demangle_parse_info): New constructor, from |
| 8113 | cp_new_demangle_parse_info. |
| 8114 | (~demangle_parse_info): New destructor, from |
| 8115 | cp_demangled_name_parse_free. |
| 8116 | (cp_merge_demangle_parse_infos): Update. |
| 8117 | (cp_demangled_name_to_comp): Change return type. |
| 8118 | |
| 8119 | 2017-01-10 Tom Tromey <tom@tromey.com> |
| 8120 | |
| 8121 | * top.c (prevent_dont_repeat): Change return type. |
| 8122 | * python/python.c (execute_gdb_command): Use std::string. |
| 8123 | Update. |
| 8124 | * guile/guile.c (gdbscm_execute_gdb_command): Update. |
| 8125 | * command.h (prevent_dont_repeat): Change return type. |
| 8126 | * breakpoint.c (bpstat_do_actions_1): Update. |
| 8127 | |
| 8128 | 2017-01-10 Tom Tromey <tom@tromey.com> |
| 8129 | |
| 8130 | * value.h (scoped_value_mark::~scoped_value_mark): Call |
| 8131 | free_to_mark. |
| 8132 | (scoped_value_mark::free_to_mark): New method. |
| 8133 | * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use |
| 8134 | scoped_value_mark. |
| 8135 | |
| 8136 | 2017-01-10 Tom Tromey <tom@tromey.com> |
| 8137 | |
| 8138 | * python/py-value.c (valpy_dereference, valpy_referenced_value) |
| 8139 | (valpy_reference_value, valpy_const_value, valpy_get_address) |
| 8140 | (valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast) |
| 8141 | (valpy_getitem, valpy_call, valpy_binop_throw, valpy_negative) |
| 8142 | (valpy_absolute, valpy_richcompare_throw): Use scoped_value_mark. |
| 8143 | * dwarf2loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use |
| 8144 | scoped_value_mark. |
| 8145 | * dwarf2-frame.c (execute_stack_op): Use scoped_value_mark. |
| 8146 | * value.h (scoped_value_mark): New class. |
| 8147 | |
| 8148 | 2017-01-10 Tom Tromey <tom@tromey.com> |
| 8149 | |
| 8150 | * dwarf2read.c (dwarf2_build_psymtabs): Use psymtab_discarder. |
| 8151 | * psympriv.h (make_cleanup_discard_psymtabs): Don't declare. |
| 8152 | * psymtab.c (discard_psymtabs_upto): Remove. |
| 8153 | (make_cleanup_discard_psymtabs): Remove. |
| 8154 | (struct psymtab_state): Remove. |
| 8155 | |
| 8156 | 2017-01-10 Tom Tromey <tom@tromey.com> |
| 8157 | |
| 8158 | * record-full.c (record_full_save_cleanups): Remove. |
| 8159 | (record_full_save): Use gdb::unlinker. |
| 8160 | * gcore.c (do_bfd_delete_cleanup): Remove. |
| 8161 | (gcore_command): Use gdb::unlinker, unique_xmalloc_ptr. Remove |
| 8162 | cleanups. |
| 8163 | * dwarf2read.c (unlink_if_set): Remove. |
| 8164 | (write_psymtabs_to_index): Use gdb::unlinker. |
| 8165 | * common/gdb_unlinker.h: New file. |
| 8166 | |
| 8167 | 2017-01-10 Tom Tromey <tom@tromey.com> |
| 8168 | |
| 8169 | * windows-tdep.c (windows_xfer_shared_library): Update. |
| 8170 | * windows-nat.c (windows_make_so): Update. |
| 8171 | * utils.h (make_cleanup_bfd_unref): Remove. |
| 8172 | * utils.c (do_bfd_close_cleanup, make_cleanup_bfd_unref): Remove. |
| 8173 | * symfile.h (symfile_bfd_open) |
| 8174 | (find_separate_debug_file_in_section): Return gdb_bfd_ref_ptr. |
| 8175 | * symfile.c (read_symbols, symbol_file_add) |
| 8176 | (separate_debug_file_exists): Update. |
| 8177 | (symfile_bfd_open): Return gdb_bfd_ref_ptr. |
| 8178 | (generic_load, reread_symbols): Update. |
| 8179 | * symfile-mem.c (symbol_file_add_from_memory): Update. |
| 8180 | * spu-linux-nat.c (spu_bfd_open): Return gdb_bfd_ref_ptr. |
| 8181 | (spu_symbol_file_add_from_memory): Update. |
| 8182 | * solist.h (struct target_so_ops) <bfd_open>: Return |
| 8183 | gdb_bfd_ref_ptr. |
| 8184 | (solib_bfd_fopen, solib_bfd_open): Return gdb_bfd_ref_ptr. |
| 8185 | * solib.c (solib_bfd_fopen, solib_bfd_open): Return |
| 8186 | gdb_bfd_ref_ptr. |
| 8187 | (solib_map_sections, reload_shared_libraries_1): Update. |
| 8188 | * solib-svr4.c (enable_break): Update. |
| 8189 | * solib-spu.c (spu_bfd_fopen): Return gdb_bfd_ref_ptr. |
| 8190 | * solib-frv.c (enable_break2): Update. |
| 8191 | * solib-dsbt.c (enable_break): Update. |
| 8192 | * solib-darwin.c (gdb_bfd_mach_o_fat_extract): Return |
| 8193 | gdb_bfd_ref_ptr. |
| 8194 | (darwin_solib_get_all_image_info_addr_at_init): Update. |
| 8195 | (darwin_bfd_open): Return gdb_bfd_ref_ptr. |
| 8196 | * solib-aix.c (solib_aix_bfd_open): Return gdb_bfd_ref_ptr. |
| 8197 | * record-full.c (record_full_save): Update. |
| 8198 | * python/py-objfile.c (objfpy_add_separate_debug_file): Update. |
| 8199 | * procfs.c (insert_dbx_link_bpt_in_file): Update. |
| 8200 | * minidebug.c (find_separate_debug_file_in_section): Return |
| 8201 | gdb_bfd_ref_ptr. |
| 8202 | * machoread.c (macho_add_oso_symfile): Change abfd to |
| 8203 | gdb_bfd_ref_ptr. |
| 8204 | (macho_symfile_read_all_oso): Update. |
| 8205 | (macho_check_dsym): Return gdb_bfd_ref_ptr. |
| 8206 | (macho_symfile_read): Update. |
| 8207 | * jit.c (bfd_open_from_target_memory): Return gdb_bfd_ref_ptr. |
| 8208 | (jit_bfd_try_read_symtab): Update. |
| 8209 | * gdb_bfd.h (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr) |
| 8210 | (gdb_bfd_openw, gdb_bfd_openr_iovec) |
| 8211 | (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return |
| 8212 | gdb_bfd_ref_ptr. |
| 8213 | (gdb_bfd_ref_policy): New struct. |
| 8214 | (gdb_bfd_ref_ptr): New typedef. |
| 8215 | * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr) |
| 8216 | (gdb_bfd_openw, gdb_bfd_openr_iovec) |
| 8217 | (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return |
| 8218 | gdb_bfd_ref_ptr. |
| 8219 | * gcore.h (create_gcore_bfd): Return gdb_bfd_ref_ptr. |
| 8220 | * gcore.c (create_gcore_bfd): Return gdb_bfd_ref_ptr. |
| 8221 | (gcore_command): Update. |
| 8222 | * exec.c (exec_file_attach): Update. |
| 8223 | * elfread.c (elf_symfile_read): Update. |
| 8224 | * dwarf2read.c (dwarf2_get_dwz_file): Update. |
| 8225 | (try_open_dwop_file, open_dwo_file): Return gdb_bfd_ref_ptr. |
| 8226 | (open_and_init_dwo_file): Update. |
| 8227 | (open_dwp_file): Return gdb_bfd_ref_ptr. |
| 8228 | (open_and_init_dwp_file): Update. |
| 8229 | * corelow.c (core_open): Update. |
| 8230 | * compile/compile-object-load.c (compile_object_load): Update. |
| 8231 | * common/gdb_ref_ptr.h (ref_ptr::operator->): New operator. |
| 8232 | * coffread.c (coff_symfile_read): Update. |
| 8233 | * cli/cli-dump.c (bfd_openr_or_error, bfd_openw_or_error): Return |
| 8234 | gdb_bfd_ref_ptr. Rename. |
| 8235 | (dump_bfd_file, restore_command): Update. |
| 8236 | * build-id.h (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr. |
| 8237 | * build-id.c (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr. |
| 8238 | (find_separate_debug_file_by_buildid): Update. |
| 8239 | |
| 8240 | 2017-01-10 Tom Tromey <tom@tromey.com> |
| 8241 | |
| 8242 | * common/gdb_ref_ptr.h: New file. |
| 8243 | * python/py-ref.h (struct gdbpy_ref_policy): New. |
| 8244 | (gdbpy_ref): Now a typedef. |
| 8245 | |
| 8246 | 2017-01-10 Tom Tromey <tom@tromey.com> |
| 8247 | |
| 8248 | * utils.h (make_cleanup_htab_delete): Don't declare. |
| 8249 | * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete): |
| 8250 | Remove. |
| 8251 | * linespec.c (decode_compound_collector): Add constructor, |
| 8252 | destructor. |
| 8253 | (lookup_prefix_sym): Remove cleanup. |
| 8254 | (symtab_collector): Add constructor, destructor. |
| 8255 | (collect_symtabs_from_filename): Remove cleanup. |
| 8256 | * disasm.c (do_mixed_source_and_assembly): Use htab_up. |
| 8257 | * compile/compile-c-symbols.c (generate_c_for_variable_locations): |
| 8258 | Use htab_up. |
| 8259 | * gnu-v3-abi.c (gnuv3_print_vtable): Use htab_up. |
| 8260 | * dwarf2read.c (dw2_expand_symtabs_matching) |
| 8261 | (dw2_map_symbol_filenames, dwarf_decode_macros) |
| 8262 | (write_psymtabs_to_index): Use htab_up. |
| 8263 | * dwarf2loc.c (func_verify_no_selftailcall) |
| 8264 | (call_site_find_chain_1, func_verify_no_selftailcall) |
| 8265 | (chain_candidate, call_site_find_chain_1): Use std::unordered_set, |
| 8266 | std::vector, gdb::unique_xmalloc_ptr. |
| 8267 | (call_sitep): Remove typedef. |
| 8268 | (dwarf2_locexpr_baton_eval): Remove unused variable. |
| 8269 | |
| 8270 | 2017-01-10 Tom Tromey <tom@tromey.com> |
| 8271 | |
| 8272 | * python/python-internal.h (make_cleanup_py_decref) |
| 8273 | (make_cleanup_py_xdecref): Don't declare. |
| 8274 | * python/py-utils.c (py_decref, make_cleanup_py_decref) |
| 8275 | (py_xdecref, make_cleanup_py_xdecref): Remove. |
| 8276 | |
| 8277 | 2017-01-10 Tom Tromey <tom@tromey.com> |
| 8278 | |
| 8279 | * python/py-framefilter.c (py_mi_print_variables): Use gdbpy_ref. |
| 8280 | (py_print_locals, enumerate_locals, py_print_args): Use gdbpy_ref. |
| 8281 | |
| 8282 | 2017-01-10 Tom Tromey <tom@tromey.com> |
| 8283 | |
| 8284 | * python/py-framefilter.c (enumerate_args): Use gdbpy_ref. |
| 8285 | |
| 8286 | 2017-01-10 Tom Tromey <tom@tromey.com> |
| 8287 | |
| 8288 | * python/py-utils.c (unicode_to_encoded_string) |
| 8289 | (python_string_to_target_string) |
| 8290 | (python_string_to_target_python_string) |
| 8291 | (python_string_to_host_string, gdbpy_obj_to_string) |
| 8292 | (get_addr_from_python): Use gdbpy_ref. |
| 8293 | |
| 8294 | 2017-01-10 Tom Tromey <tom@tromey.com> |
| 8295 | |
| 8296 | * python/py-unwind.c (pyuw_object_attribute_to_pointer): Use |
| 8297 | gdbpy_ref. |
| 8298 | |
| 8299 | 2017-01-10 Tom Tromey <tom@tromey.com> |
| 8300 | |
| 8301 | * python/python.c (eval_python_command, gdbpy_decode_line) |
| 8302 | (gdbpy_run_events, gdbpy_start_type_printers) |
| 8303 | (gdbpy_apply_type_printers): Use gdbpy_ref. |
| 8304 | |
| 8305 | 2017-01-10 Tom Tromey <tom@tromey.com> |
| 8306 | |
| 8307 | * python/py-param.c (get_doc_string, compute_enum_values): Use |
| 8308 | gdbpy_ref. |
| 8309 | |
| 8310 | 2017-01-10 Tom Tromey <tom@tromey.com> |
| 8311 | |
| 8312 | * python/py-inferior.c (find_thread_object, build_inferior_list): |
| 8313 | Use gdbpy_ref. |
| 8314 | |
| 8315 | 2017-01-10 Tom Tromey <tom@tromey.com> |
| 8316 | |
| 8317 | * python/py-framefilter.c (py_print_frame): Use gdbpy_ref. |
| 8318 | |
| 8319 | 2017-01-10 Tom Tromey <tom@tromey.com> |
| 8320 | |
| 8321 | * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope): Use |
| 8322 | gdbpy_ref. |
| 8323 | |
| 8324 | 2017-01-10 Tom Tromey <tom@tromey.com> |
| 8325 | |
| 8326 | * python/py-cmd.c (cmdpy_completer_helper): Use gdbpy_ref. Remove |
| 8327 | extra incref. |
| 8328 | (cmdpy_completer_handle_brkchars, cmdpy_completer, cmdpy_init): |
| 8329 | Use gdbpy_ref. |
| 8330 | |
| 8331 | 2017-01-10 Tom Tromey <tom@tromey.com> |
| 8332 | |
| 8333 | * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use |
| 8334 | gdbpy_ref. |
| 8335 | |
| 8336 | 2017-01-10 Tom Tromey <tom@tromey.com> |
| 8337 | |
| 8338 | * python/py-arch.c (archpy_disassemble): Use gdbpy_ref. Don't |
| 8339 | decref results of PyArg_ParseTupleAndKeywords. |
| 8340 | |
| 8341 | 2017-01-10 Tom Tromey <tom@tromey.com> |
| 8342 | |
| 8343 | * python/python.c (python_run_simple_file): Use |
| 8344 | unique_xmalloc_ptr, gdbpy_ref. |
| 8345 | |
| 8346 | 2017-01-10 Tom Tromey <tom@tromey.com> |
| 8347 | |
| 8348 | * python/py-prettyprint.c (print_stack_unless_memory_error) |
| 8349 | (print_string_repr, print_children): Use gdbpy_ref. |
| 8350 | (dummy_python_frame): New class. |
| 8351 | (dummy_python_frame::dummy_python_frame): Rename from |
| 8352 | push_dummy_python_frame. |
| 8353 | (py_restore_tstate): Remove. |
| 8354 | |
| 8355 | 2017-01-10 Tom Tromey <tom@tromey.com> |
| 8356 | |
| 8357 | * python/py-framefilter.c (py_print_frame): Use gdbpy_ref. |
| 8358 | |
| 8359 | 2017-01-10 Tom Tromey <tom@tromey.com> |
| 8360 | |
| 8361 | * python/python.c (ensure_python_env, restore_python_env): |
| 8362 | Remove. |
| 8363 | * python/python-internal.h (ensure_python_env): Don't declare. |
| 8364 | * varobj.h (varobj_ensure_python_env): Don't declare. |
| 8365 | * varobj.c (varobj_ensure_python_env): Remove. |
| 8366 | |
| 8367 | 2017-01-10 Tom Tromey <tom@tromey.com> |
| 8368 | |
| 8369 | * varobj.c (varobj_value_get_print_value): Use |
| 8370 | gdbpy_enter_varobj. |
| 8371 | |
| 8372 | 2017-01-10 Tom Tromey <tom@tromey.com> |
| 8373 | |
| 8374 | * python/py-prettyprint.c (print_string_repr, print_children): |
| 8375 | Update. |
| 8376 | * python/py-lazy-string.c (gdbpy_extract_lazy_string): Change type |
| 8377 | of "encoding". |
| 8378 | * varobj.c (varobj_value_get_print_value): Update. |
| 8379 | * python/python-internal.h (gdbpy_extract_lazy_string): Update. |
| 8380 | |
| 8381 | 2017-01-10 Tom Tromey <tom@tromey.com> |
| 8382 | |
| 8383 | * varobj.c (varobj_get_display_hint) |
| 8384 | (dynamic_varobj_has_child_method, install_new_value_visualizer) |
| 8385 | (varobj_set_visualizer, free_variable): Use |
| 8386 | gdbpy_enter_varobj. |
| 8387 | |
| 8388 | 2017-01-10 Tom Tromey <tom@tromey.com> |
| 8389 | |
| 8390 | * python/python.c (python_command): Use gdbpy_enter, gdbpy_ref. |
| 8391 | (do_finish_initialization): New function. Use gdbpy_ref. |
| 8392 | (gdbpy_finish_initialization): Use gdbpy_enter. Call |
| 8393 | do_finish_initialization. |
| 8394 | |
| 8395 | 2017-01-10 Tom Tromey <tom@tromey.com> |
| 8396 | |
| 8397 | * python/py-param.c (get_set_value, get_show_value): Use |
| 8398 | gdbpy_enter, gdbpy_ref. |
| 8399 | |
| 8400 | 2017-01-10 Tom Tromey <tom@tromey.com> |
| 8401 | |
| 8402 | * python/py-function.c (fnpy_call): Use gdbpy_enter, gdbpy_ref. |
| 8403 | |
| 8404 | 2017-01-10 Tom Tromey <tom@tromey.com> |
| 8405 | |
| 8406 | * python/py-cmd.c (cmdpy_function): Use gdbpy_enter, gdbpy_ref. |
| 8407 | |
| 8408 | 2017-01-10 Tom Tromey <tom@tromey.com> |
| 8409 | |
| 8410 | * python/py-varobj.c (py_varobj_iter_dtor, py_varobj_iter_next): |
| 8411 | Use gdbpy_enter_varobj. |
| 8412 | |
| 8413 | 2017-01-10 Tom Tromey <tom@tromey.com> |
| 8414 | |
| 8415 | * varobj.c (gdbpy_enter_varobj): New constructor. |
| 8416 | * python/python-internal.h (gdbpy_enter_varobj): New class. |
| 8417 | * python/py-varobj.c (py_varobj_get_iterator): Use |
| 8418 | gdbpy_enter_varobj. |
| 8419 | |
| 8420 | 2017-01-10 Tom Tromey <tom@tromey.com> |
| 8421 | |
| 8422 | * python/py-xmethods.c (gdbpy_get_xmethod_result_type): Use |
| 8423 | gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr. |
| 8424 | (gdbpy_invoke_xmethod): Use gdbpy_ref, gdbpy_enter. |
| 8425 | (gdbpy_get_xmethod_arg_types): Use gdbpy_ref, |
| 8426 | unique_xmalloc_ptr. |
| 8427 | (gdbpy_get_xmethod_arg_types): Use gdbpy_ref, gdbpy_enter. |
| 8428 | |
| 8429 | 2017-01-10 Tom Tromey <tom@tromey.com> |
| 8430 | |
| 8431 | * python/py-xmethods.c (invoke_match_method): Use |
| 8432 | gdbpy_ref. |
| 8433 | |
| 8434 | 2017-01-10 Tom Tromey <tom@tromey.com> |
| 8435 | |
| 8436 | * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): use |
| 8437 | gdbpy_enter, gdbpy_ref. |
| 8438 | |
| 8439 | 2017-01-10 Tom Tromey <tom@tromey.com> |
| 8440 | |
| 8441 | * python/python.c (python_interactive_command): Use gdbpy_enter. |
| 8442 | |
| 8443 | 2017-01-10 Tom Tromey <tom@tromey.com> |
| 8444 | |
| 8445 | * python/python.c (gdbpy_before_prompt_hook): Use gdbpy_enter, |
| 8446 | gdbpy_ref. |
| 8447 | |
| 8448 | 2017-01-10 Tom Tromey <tom@tromey.com> |
| 8449 | |
| 8450 | * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Use |
| 8451 | gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr. |
| 8452 | |
| 8453 | 2017-01-10 Tom Tromey <tom@tromey.com> |
| 8454 | |
| 8455 | * utils.h (htab_deleter): New struct. |
| 8456 | (htab_up): New typedef. |
| 8457 | * python/py-framefilter.c (gdbpy_apply_frame_filter): Use |
| 8458 | gdbpy_enter, gdbpy_ref, htab_up. |
| 8459 | |
| 8460 | 2017-01-10 Tom Tromey <tom@tromey.com> |
| 8461 | |
| 8462 | * python/py-unwind.c (pending_frame_invalidate): Remove. |
| 8463 | (pyuw_sniffer): Use gdbpy_enter and gdbpy_ref. |
| 8464 | |
| 8465 | 2017-01-10 Tom Tromey <tom@tromey.com> |
| 8466 | |
| 8467 | * python/py-xmethods.c (gdbpy_free_xmethod_worker_data) |
| 8468 | (gdbpy_clone_xmethod_worker_data): Use gdbpy_enter. |
| 8469 | |
| 8470 | 2017-01-10 Tom Tromey <tom@tromey.com> |
| 8471 | |
| 8472 | * python/py-type.c (save_objfile_types): Use gdbpy_enter. |
| 8473 | |
| 8474 | 2017-01-10 Tom Tromey <tom@tromey.com> |
| 8475 | |
| 8476 | * python/python.c (gdbpy_eval_from_control_command) |
| 8477 | (gdbpy_source_script, gdbpy_run_events) |
| 8478 | (gdbpy_source_objfile_script, gdbpy_execute_objfile_script) |
| 8479 | (gdbpy_free_type_printers, gdbpy_finish_initialization): Use |
| 8480 | gdbpy_enter. |
| 8481 | |
| 8482 | 2017-01-10 Tom Tromey <tom@tromey.com> |
| 8483 | |
| 8484 | * python/py-progspace.c (py_free_pspace): Use gdbpy_enter. |
| 8485 | |
| 8486 | 2017-01-10 Tom Tromey <tom@tromey.com> |
| 8487 | |
| 8488 | * python/py-objfile.c (py_free_objfile): Use gdbpy_enter. |
| 8489 | |
| 8490 | 2017-01-10 Tom Tromey <tom@tromey.com> |
| 8491 | |
| 8492 | * python/py-inferior.c (python_on_normal_stop, python_on_resume) |
| 8493 | (python_on_inferior_call_pre, python_on_inferior_call_post) |
| 8494 | (python_on_memory_change, python_on_register_change) |
| 8495 | (python_inferior_exit, python_new_objfile, add_thread_object) |
| 8496 | (delete_thread_object, py_free_inferior): Use gdbpy_enter. |
| 8497 | |
| 8498 | 2017-01-10 Tom Tromey <tom@tromey.com> |
| 8499 | |
| 8500 | * python/py-finishbreakpoint.c (bpfinishpy_handle_stop) |
| 8501 | (bpfinishpy_handle_exit): Use gdbpy_enter. |
| 8502 | |
| 8503 | 2017-01-10 Tom Tromey <tom@tromey.com> |
| 8504 | |
| 8505 | * python/py-cmd.c (cmdpy_destroyer) |
| 8506 | (cmdpy_completer_handle_brkchars, cmdpy_completer): Use |
| 8507 | gdbpy_enter. |
| 8508 | |
| 8509 | 2017-01-10 Tom Tromey <tom@tromey.com> |
| 8510 | |
| 8511 | * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use |
| 8512 | gdbpy_enter. |
| 8513 | (gdbpy_breakpoint_has_cond): Likewise. |
| 8514 | |
| 8515 | 2017-01-10 Tom Tromey <tom@tromey.com> |
| 8516 | |
| 8517 | * python/python.c (gdbpy_enter): New constructor. |
| 8518 | (~gdbpy_enter): New destructor. |
| 8519 | (restore_python_env, ensure_python_env): Rewrite. |
| 8520 | * python/python-internal.h (gdbpy_enter): New class. |
| 8521 | |
| 8522 | 2017-01-10 Tom Tromey <tom@tromey.com> |
| 8523 | |
| 8524 | * python/py-symbol.c (gdbpy_lookup_symbol): Use gdbpy_ref. |
| 8525 | |
| 8526 | 2017-01-10 Tom Tromey <tom@tromey.com> |
| 8527 | |
| 8528 | * python/py-value.c (value_has_field, get_field_flag) |
| 8529 | (get_field_type, valpy_getitem, convert_value_from_python): Use |
| 8530 | gdbpy_ref. |
| 8531 | |
| 8532 | 2017-01-10 Tom Tromey <tom@tromey.com> |
| 8533 | |
| 8534 | * python/python.c (gdbpy_progspaces, gdbpy_objfiles): Use |
| 8535 | gdbpy_ref. |
| 8536 | |
| 8537 | 2017-01-10 Tom Tromey <tom@tromey.com> |
| 8538 | |
| 8539 | * python/py-prettyprint.c (search_pp_list) |
| 8540 | (find_pretty_printer_from_objfiles) |
| 8541 | (find_pretty_printer_from_progspace) |
| 8542 | (find_pretty_printer_from_gdb, find_pretty_printer) |
| 8543 | (gdbpy_get_display_hint, gdbpy_get_varobj_pretty_printer): Use |
| 8544 | gdbpy_ref. |
| 8545 | |
| 8546 | 2017-01-10 Tom Tromey <tom@tromey.com> |
| 8547 | |
| 8548 | * python/py-param.c (call_doc_function): Use gdbpy_ref. |
| 8549 | |
| 8550 | 2017-01-10 Tom Tromey <tom@tromey.com> |
| 8551 | |
| 8552 | * python/py-linetable.c (build_line_table_tuple_from_pcs) |
| 8553 | (ltpy_get_all_source_lines): Use gdbpy_ref. |
| 8554 | |
| 8555 | 2017-01-10 Tom Tromey <tom@tromey.com> |
| 8556 | |
| 8557 | * python/py-framefilter.c (extract_sym, extract_value) |
| 8558 | (get_py_iter_from_func, bootstrap_python_frame_filters): Use |
| 8559 | gdbpy_ref. |
| 8560 | |
| 8561 | 2017-01-10 Tom Tromey <tom@tromey.com> |
| 8562 | |
| 8563 | * python/py-breakpoint.c (gdbpy_breakpoints): Use gdbpy_ref. |
| 8564 | |
| 8565 | 2017-01-10 Tom Tromey <tom@tromey.com> |
| 8566 | |
| 8567 | * python/py-inferior.c (gdbpy_inferiors): Use gdbpy_ref. |
| 8568 | |
| 8569 | 2017-01-10 Tom Tromey <tom@tromey.com> |
| 8570 | |
| 8571 | * python/py-function.c (convert_values_to_python, fnpy_init): Use |
| 8572 | gdbpy_ref. |
| 8573 | |
| 8574 | 2017-01-10 Tom Tromey <tom@tromey.com> |
| 8575 | |
| 8576 | * python/py-cmd.c (gdbpy_string_to_argv): Use gdbpy_ref. |
| 8577 | |
| 8578 | 2017-01-10 Tom Tromey <tom@tromey.com> |
| 8579 | |
| 8580 | * python/py-type.c (convert_field, make_fielditem, typy_fields) |
| 8581 | (typy_range): Use gdbpy_ref. |
| 8582 | |
| 8583 | 2017-01-10 Tom Tromey <tom@tromey.com> |
| 8584 | |
| 8585 | * python/py-threadevent.c (create_thread_event_object): Use |
| 8586 | gdbpy_ref. |
| 8587 | * python/py-stopevent.c (create_stop_event_object): Simplify. |
| 8588 | (emit_stop_event): Use gdbpy_ref. |
| 8589 | * python/py-signalevent.c (create_signal_event_object): Use |
| 8590 | gdbpy_ref. |
| 8591 | * python/py-newobjfileevent.c (create_new_objfile_event_object) |
| 8592 | (emit_new_objfile_event, create_clear_objfiles_event_object) |
| 8593 | (emit_clear_objfiles_event): Use gdbpy_ref. |
| 8594 | * python/py-infevents.c (create_inferior_call_event_object) |
| 8595 | (create_register_changed_event_object) |
| 8596 | (create_memory_changed_event_object, emit_inferior_call_event) |
| 8597 | (emit_memory_changed_event, emit_register_changed_event): Use |
| 8598 | gdbpy_ref. |
| 8599 | * python/py-exitedevent.c (create_exited_event_object) |
| 8600 | (emit_exited_event): Use gdbpy_ref. |
| 8601 | * python/py-event.h (evpy_emit_event): Remove |
| 8602 | CPYCHECKER_STEALS_REFERENCE_TO_ARG annotation. |
| 8603 | * python/py-event.c (evpy_emit_event): Use gdbpy_ref. |
| 8604 | * python/py-continueevent.c (emit_continue_event): Use |
| 8605 | gdbpy_ref. |
| 8606 | * python/py-breakpoint.c (gdbpy_breakpoint_created) |
| 8607 | (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use |
| 8608 | gdbpy_ref. |
| 8609 | * python/py-bpevent.c (create_breakpoint_event_object): Use |
| 8610 | gdbpy_ref. |
| 8611 | |
| 8612 | 2017-01-10 Tom Tromey <tom@tromey.com> |
| 8613 | |
| 8614 | * python/py-ref.h: New file. |
| 8615 | |
| 8616 | 2017-01-10 Simon Marchi <simon.marchi@ericsson.com> |
| 8617 | |
| 8618 | * cli-out.c (cli_ui_out::do_redirect): Change return type to |
| 8619 | void. |
| 8620 | * cli-out.h (cli_ui_out::do_redirect): Likewise. |
| 8621 | * mi/mi-out.c (mi_ui_out::do_redirect): Likewise. |
| 8622 | * mi/mi-out.h (mi_ui_out::do_redirect): Likewise. |
| 8623 | * ui-out.c (ui_out::redirect): Likewise. |
| 8624 | * ui-out.h (ui_out::redirect, ui_out::do_redirect): Likewise. |
| 8625 | * cli/cli-logging.c (set_logging_redirect): Update call site of |
| 8626 | ui_out::redirect. |
| 8627 | (handle_redirections): Likewise. |
| 8628 | * scm-ports.c (ioscm_with_output_to_port_worker): Likewise. |
| 8629 | * top.c (execute_command_to_string): Likewise. |
| 8630 | * utils.c (do_ui_out_redirect_pop): Likewise. |
| 8631 | |
| 8632 | 2017-01-10 Simon Marchi <simon.marchi@ericsson.com> |
| 8633 | |
| 8634 | * stack.c (_initialize_stack): Update "frame" command help message. |
| 8635 | |
| 8636 | 2017-01-08 Iain Buclaw <ibuclaw@gdcproject.org> |
| 8637 | |
| 8638 | * d-exp.y (CastExpression): Emit UNOP_CAST_TYPE. |
| 8639 | |
| 8640 | 2017-01-06 Yao Qi <yao.qi@linaro.org> |
| 8641 | |
| 8642 | * x86-linux-nat.h: Include gdb_proc_service.h. |
| 8643 | |
| 8644 | 2017-01-06 Yao Qi <yao.qi@linaro.org> |
| 8645 | |
| 8646 | * ser-base.h: Include serial.h. |
| 8647 | |
| 8648 | 2017-01-06 Yao Qi <yao.qi@linaro.org> |
| 8649 | |
| 8650 | * ppc-linux-tdep.h: Include ppc-tdep.h. |
| 8651 | |
| 8652 | 2017-01-06 Yao Qi <yao.qi@linaro.org> |
| 8653 | |
| 8654 | * nat/amd64-linux-siginfo.h: Include signal.h. |
| 8655 | |
| 8656 | 2017-01-06 Yao Qi <yao.qi@linaro.org> |
| 8657 | |
| 8658 | * nat/aarch64-linux-hw-point.h: Include break-common.h. |
| 8659 | |
| 8660 | 2017-01-06 Yao Qi <yao.qi@linaro.org> |
| 8661 | |
| 8662 | * mi/mi-parse.h: Include mi-cmds.h. |
| 8663 | |
| 8664 | 2017-01-06 Yao Qi <yao.qi@linaro.org> |
| 8665 | |
| 8666 | * inf-loop.c: Don't include "target.h". |
| 8667 | * inf-loop.h: Include it here. |
| 8668 | |
| 8669 | 2017-01-06 Yao Qi <yao.qi@linaro.org> |
| 8670 | |
| 8671 | * dfp.h: Include "dboulest.h" and "expression.h". |
| 8672 | |
| 8673 | 2017-01-06 Yao Qi <yao.qi@linaro.org> |
| 8674 | |
| 8675 | * ax-gdb.h: Include "ax.h". |
| 8676 | |
| 8677 | 2017-01-06 Yao Qi <yao.qi@linaro.org> |
| 8678 | |
| 8679 | * Makefile.in (HFILES_NO_SRCDIR): Replace gdb_ptrace.h |
| 8680 | with nat/gdb_ptrace.h. |
| 8681 | |
| 8682 | 2017-01-05 Yao Qi <yao.qi@linaro.org> |
| 8683 | |
| 8684 | * mips-fbsd-tdep.c (mips_fbsd_sigframe_init): Move && to |
| 8685 | new line. |
| 8686 | (mips64_fbsd_sigframe_init): Likewise. |
| 8687 | |
| 8688 | 2017-01-04 John Baldwin <jhb@FreeBSD.org> |
| 8689 | |
| 8690 | * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Use |
| 8691 | GDB_OSABI_FREEBSD instead of GDB_OSABI_FREEBSD_ELF. |
| 8692 | |
| 8693 | 2017-01-04 John Baldwin <jhb@FreeBSD.org> |
| 8694 | |
| 8695 | * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c. |
| 8696 | * NEWS: Mention new FreeBSD/mips native configuration. |
| 8697 | * config/mips/fbsd.mh: New file. |
| 8698 | * configure.host: Add mips*-*-freebsd*. |
| 8699 | * mips-fbsd-nat.c: New file. |
| 8700 | |
| 8701 | 2017-01-04 John Baldwin <jhb@FreeBSD.org> |
| 8702 | |
| 8703 | * Makefile.in (ALL_TARGET_OBS): Add mips-fbsd-tdep.o. |
| 8704 | (ALLDEPFILES): Add mips-fbsd-tdep.c. |
| 8705 | * NEWS: Mention new FreeBSD/mips target. |
| 8706 | * configure.tgt: Add mips*-*-freebsd*. |
| 8707 | * mips-fbsd-tdep.c: New file. |
| 8708 | * mips-fbsd-tdep.h: New file. |
| 8709 | |
| 8710 | 2017-01-04 Yao Qi <yao.qi@linaro.org> |
| 8711 | |
| 8712 | * dwarf2loc.c (write_pieced_value): Don't use VALUE_FRAME_ID (to), |
| 8713 | use c->frame_id when the piece location is DWARF_VALUE_REGISTER. |
| 8714 | |
| 8715 | 2017-01-01 Joel Brobecker <brobecker@adacore.com> |
| 8716 | |
| 8717 | Update copyright year range in all GDB files. |
| 8718 | |
| 8719 | 2017-01-01 Joel Brobecker <brobecker@adacore.com> |
| 8720 | |
| 8721 | * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2016. |
| 8722 | |
| 8723 | For older changes see ChangeLog-2016. |
| 8724 | \f |
| 8725 | Local Variables: |
| 8726 | mode: change-log |
| 8727 | left-margin: 8 |
| 8728 | fill-column: 74 |
| 8729 | version-control: never |
| 8730 | coding: utf-8 |
| 8731 | End: |