1 2014-07-24 Tom Tromey <tromey@redhat.com>
3 * cli/cli-decode.c (help_cmd): Make parameter "const".
4 * cli/cli-decode.h (help_cmd): Update.
6 2014-07-24 Tom Tromey <tromey@redhat.com>
8 * stack.c (up_silently_base, down_silently_base): Make argument
11 2014-07-24 Tom Tromey <tromey@redhat.com>
13 * solib.c (solib_add): Make "pattern" const.
14 * solib.h (solib_add): Update.
16 2014-07-24 Tom Tromey <tromey@redhat.com>
18 * remote.c (remote_serial_open, print_packet, putpkt)
19 (putpkt_binary): Constify.
20 * remote.h (putpkt): Update.
22 2014-07-24 Tom Tromey <tromey@redhat.com>
24 * monitor.c (monitor_open): Make "args" const.
25 * monitor.h (monitor_open): Update.
27 2014-07-24 Tom Tromey <tromey@redhat.com>
29 * maint.c (match_bfd_flags): Make "string" const.
30 (print_bfd_section_info): Remove casts.
31 (print_objfile_section_info): Make "string" const.
33 2014-07-24 Tom Tromey <tromey@redhat.com>
35 * inf-child.c (inf_child_open_target): Make "arg" const.
36 * inf-child.h (inf_child_open_target): Update.
38 2014-07-24 Tom Tromey <tromey@redhat.com>
40 * environ.c (unset_in_environ): Make "var" const.
41 * environ.h (unset_in_environ): Update.
43 2014-07-24 Tom Tromey <tromey@redhat.com>
45 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
47 (scan_filename_with_cleanup): Likewise.
48 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
50 (restore_command): Update.
52 2014-07-24 Pedro Alves <palves@redhat.com>
54 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
56 2014-07-24 Tom Tromey <tromey@redhat.com>
57 Gary Benson <gbenson@redhat.com>
59 * nat/linux-ptrace.c (additional_flags): New global.
60 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
61 additional_flags; don't check GDBSERVER.
62 (linux_ptrace_set_additional_flags): New function.
63 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
65 * linux-nat.c (_initialize_linux_nat): Call
66 linux_ptrace_set_additional_flags.
68 2014-07-24 Tom Tromey <tromey@redhat.com>
70 * make-target-delegates (munge_type, write_debugmethod): New
72 (debug_names): New global.
73 ($TARGET_DEBUG_PRINTER): New global.
74 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
76 Write debug methods. Generate init_debug_target.
77 * target-debug.h: New file.
78 * target-delegates.c: Rebuild.
79 * target.c: Include target-debug.h.
80 (debug_target): Hoist definition.
81 (target_kill, target_get_section_table, target_memory_map)
82 (target_flash_erase, target_flash_done, target_detach)
83 (target_disconnect, target_wait, target_resume)
84 (target_pass_signals, target_program_signals, target_follow_fork)
85 (target_mourn_inferior, target_search_memory)
86 (target_thread_address_space, target_close)
87 (target_find_new_threads, target_core_of_thread)
88 (target_verify_memory, target_insert_mask_watchpoint)
89 (target_remove_mask_watchpoint): Remove targetdebug code.
90 (debug_to_post_attach, debug_to_prepare_to_store)
91 (debug_to_files_info, debug_to_insert_breakpoint)
92 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
93 (debug_to_region_ok_for_hw_watchpoint)
94 (debug_to_can_accel_watchpoint_condition)
95 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
96 (debug_to_watchpoint_addr_within_range)
97 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
98 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
99 (debug_to_terminal_init, debug_to_terminal_inferior)
100 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
101 (debug_to_terminal_save_ours, debug_to_terminal_info)
102 (debug_to_load, debug_to_post_startup_inferior)
103 (debug_to_insert_fork_catchpoint)
104 (debug_to_remove_fork_catchpoint)
105 (debug_to_insert_vfork_catchpoint)
106 (debug_to_remove_vfork_catchpoint)
107 (debug_to_insert_exec_catchpoint)
108 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
109 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
110 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
111 (setup_target_debug): Call init_debug_target.
112 * target.h (TARGET_DEBUG_PRINTER): New macro.
113 (struct target_ops) <to_resume, to_wait, to_pass_signals,
114 to_program_signals>: Use TARGET_DEBUG_PRINTER.
116 2014-07-24 Gary Benson <gbenson@redhat.com>
118 * exceptions.h (throw_vfatal): Renamed to...
119 (throw_vquit): New declaration.
120 (throw_quit): Likewise.
121 * exceptions.c (throw_vfatal): Renamed to...
122 (throw_vquit): New function.
123 (throw_quit): Likewise.
124 (throw_error): Call throw_verror rather than throw_it.
125 * utils.h (vfatal): Removed.
127 * utils.c (vfatal): Removed.
129 (internal_verror): Replaced call to fatal with call to throw_quit.
130 (quit): Replaced calls to fatal with calls to throw_quit.
132 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
134 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
137 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
139 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
140 less than zero in conditional expression.
142 2014-07-23 Tom Tromey <tromey@redhat.com>
144 * make-target-delegates ($ARGS_PART): Match trailing close paren.
145 ($INTRO_PART): Don't match whitespace.
146 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
148 ($METHOD): Add $METHOD_TRAILER.
150 (scan_target_h): New sub.
151 Change main loop not to collect state.
152 * target-delegates.c: Rebuild.
154 2014-07-23 Gary Benson <gbenson@redhat.com>
156 * cp-support.c (gdb_demangle): Fix build on systems without
159 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
161 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
162 for reference entry value target data value.
164 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
166 * stack.c (read_frame_arg): Verify value_optimized_out before calling
167 value_available_contents_eq.
169 2014-07-22 Pedro Alves <palves@redhat.com>
171 * value.c (allocate_optimized_out_value): Don't mark value as
174 2014-07-22 Jiong Wang <jiong.wang@arm.com>
176 * MAINTAINERS (Write After Approval): Update my email address.
178 2014-07-20 Doug Evans <dje@google.com>
181 * remote.c (putpkt_binary): Add text to error message.
183 2014-07-20 Yao Qi <yao@codesourcery.com>
185 * eval.c: Remove "Chill" from comments.
186 * gdbtypes.h: Likewise.
187 * symtab.h: Likewise.
189 2014-07-20 Yao Qi <yao@codesourcery.com>
191 * std-operator.def: Update comments to TERNOP_SLICE.
193 2014-07-20 Yao Qi <yao@codesourcery.com>
195 * std-operator.def: Remove BINOP_RANGE.
196 * breakpoint.c (watchpoint_exp_is_const): Update.
197 * expprint.c (dump_subexp_body_standard): Likewise.
198 * eval.c (init_array_element): Remove dead code.
199 (evaluate_subexp_standard): Likewise.
201 2014-07-20 Yao Qi <yao@codesourcery.com>
203 * std-operator.def: Remove BINOP_IN.
204 * breakpoint.c (watchpoint_exp_is_const): Update.
205 * eval.c (evaluate_subexp_standard): Likewise.
206 * expprint.c (dump_subexp_body_standard): Likewise.
208 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
210 * microblaze-tdep.c (microblaze_register_names): Add
211 the rshr and rslr register names.
212 (microblaze_gdbarch_init): Use of tdesc_has_registers.
213 Use of tdesc_find_feature. Use of tdesc_data_alloc.
214 Use of tdesc_numbered_register. Use of
215 microblaze_register_g_packet_guesses. Use of
216 tdesc_use_registers. Use of set_gdbarch_register_type.
217 (microblaze_register_g_packet_guesses): New.
218 * microblaze-tdep.h (microblaze_reg_num): Add
219 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
220 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
221 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
222 * features/microblaze-core.xml: New file.
223 * features/microblaze-stack-protect.xml: New file.
224 * features/microblaze-with-stack-protect.c: New file.
225 * features/microblaze-with-stack-protect.xml: New file.
226 * features/microblaze.xml: New file.
227 * features/microblaze.c: New file.
228 * features/Makefile (microblaze-with-stack-protect): Add
229 microblaze-with-stack-protect microblaze and microblaze-expedite.
230 * regformats/microblaze-with-stack-protect.dat: New file.
231 * regformats/microblaze.dat: New file.
232 * doc/gdb.texinfo (MicroBlaze Features): Added.
234 2014-07-18 Tom Tromey <tromey@redhat.com>
236 * exec.c (exec_ops): Now static.
237 * exec.h (exec_ops): Don't declare.
239 2014-07-18 Tom Tromey <tromey@redhat.com>
241 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
242 to find_target_beneath.
243 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
245 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
247 2014-07-18 Tom Tromey <tromey@redhat.com>
250 * utils.c (quit): Use target_supports_terminal_ours.
251 * target.h (target_supports_terminal_ours): Declare.
252 * target.c (target_supports_delete_record): Don't check
253 to_delete_record against NULL.
254 (target_supports_terminal_ours): New function.
256 2014-07-18 Tom Tromey <tromey@redhat.com>
259 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
260 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
261 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
262 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
263 * windows-nat.c (windows_xfer_partial): Always delegate.
264 * record-btrace.c (record_btrace_xfer_partial): Simplify
266 (record_btrace_fetch_registers, record_btrace_store_registers)
267 (record_btrace_prepare_to_store, record_btrace_resume)
268 (record_btrace_wait, record_btrace_find_new_threads)
269 (record_btrace_thread_alive): Likewise.
270 * procfs.c (procfs_xfer_partial): Always delegate.
271 * corelow.c (core_xfer_partial): Always delegate.
272 * sol-thread.c (sol_find_new_threads): Simplify delegation.
274 2014-07-18 Tom Tromey <tromey@redhat.com>
276 * exec.c (exec_make_note_section): Move earlier.
278 2014-07-17 Doug Evans <dje@google.com>
281 * maint.c (count_symtabs_and_blocks): Handle NULL
282 current_program_space.
283 (report_command_stats): Check global enabled flag in addition to
284 recorded enabled flag.
285 (make_command_stats_cleanup): Handle msg_type == 0, startup.
287 2014-07-16 Pedro Alves <palves@redhat.com>
289 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
291 2014-07-16 Tom Tromey <tromey@redhat.com>
293 * target.h (struct target_ops) <to_delete_record>: Reformat
296 2014-07-16 Tom Tromey <tromey@redhat.com>
298 * target-delegates.c: Rebuild.
300 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
302 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
303 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
304 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
305 (avr_pointer_to_address): Likewise.
306 (avr_address_class_type_flags): New function.
307 (avr_address_class_type_flags_to_name): Likewise.
308 (avr_address_class_name_to_type_flags): Likewise.
309 (avr_gdbarch_init): Set address_class_type_flags,
310 address_class_type_flags_to_name and
311 address_class_name_to_type_flags.
313 2014-07-15 Pedro Alves <palves@redhat.com>
315 * linux-nat.c (kill_callback): Save errno and work with saved
318 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
320 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
322 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
324 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
325 breakpoint support correctly.
327 2014-07-14 Pedro Alves <palves@redhat.com>
329 * utils.c (prompt_for_continue): Call target_terminal_ours.
331 2014-07-14 Pedro Alves <palves@redhat.com>
333 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
334 catch_errors. Don't re-enable stdin or notify observers where,
336 (fetch_inferior_event_wrapper): Delete.
338 2014-07-14 Pedro Alves <palves@redhat.com>
341 * top.c: Include "inf-loop.h".
342 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
344 (gdb_readline_wrapper_cleanup): Make the target async again, if it
346 (gdb_readline_wrapper): Store whether the target is async, and
349 2014-07-14 Pedro Alves <palves@redhat.com>
352 * top.c (gdb_readline_wrapper_line): Tweak comment.
353 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
354 the input handler callback.
356 2014-07-14 Pedro Alves <palves@redhat.com>
359 * main.c: Include event-top.h.
360 (handle_command_errors): New function.
361 (catch_command_errors, catch_command_errors_const): Use it.
363 2014-07-14 Pedro Alves <palves@redhat.com>
365 * exceptions.c (catch_command_errors, catch_command_errors_const):
367 * exceptions.h (catch_command_errors_ftype)
368 (catch_command_errors_const_ftype): Moved to main.c.
369 (catch_command_errors, catch_command_errors_const): Delete
371 * main.c (catch_command_errors_ftype)
372 (catch_command_errors_const_ftype): Moved here from exceptions.h.
373 (catch_command_errors, catch_command_errors_const)): Moved here
374 from exceptions.c and make static.
376 2014-07-14 Pedro Alves <palves@redhat.com>
378 * exceptions.c (print_any_exception): Delete.
379 (catch_exceptions_with_msg): Use exception_print instead of
381 (catch_errors): Use exception_fprintf instead of
383 (catch_command_errors, catch_command_errors_const): Use
384 exception_print instead of print_any_exception.
386 2014-07-14 Pedro Alves <palves@redhat.com>
388 * infcall.c (run_inferior_call): Set 'sync_execution' while
389 running the inferior call.
391 2014-07-14 Pedro Alves <palves@redhat.com>
393 * value.c (value_contents_equal): Delete function.
394 * value.h (value_contents_equal): Delete declaration.
396 2014-07-14 Tom Tromey <tromey@redhat.com>
399 * gdbtypes.c (is_dynamic_type_internal): New function, from
401 (is_dynamic_type): Rewrite.
402 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
403 (resolve_dynamic_struct): Likewise.
404 (resolve_dynamic_type_internal): New function, from
405 resolve_dynamic_type.
406 (resolve_dynamic_type): Rewrite.
408 2014-07-14 Tom Tromey <tromey@redhat.com>
410 * target.c (target_require_runnable): Also check record_stratum.
413 2014-07-11 Yao Qi <yao@codesourcery.com>
415 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
416 thumb_instruction_restores_sp return true.
418 2014-07-11 Yao Qi <yao@codesourcery.com>
420 * arm-tdep.c (thumb_instruction_restores_sp): New function.
421 (thumb_in_function_epilogue_p): Call
422 thumb_instruction_restores_sp.
424 2014-07-11 Yao Qi <yao@codesourcery.com>
426 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
428 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
430 2014-07-11 Gary Benson <gbenson@redhat.com>
432 * amd64-linux-nat.c (gdbcore.h): Remove include.
433 (regset.h): Likewise.
434 (nat/linux-btrace.h): Likewise.
435 (btrace.h): Likewise.
436 (gdb_assert.h): Likewise.
437 (string.h): Likewise.
438 (sys/uio.h): Likewise.
439 (sys/debugreg.h): Likewise.
440 (sys/syscall.h): Likewise.
441 (sys/procfs.h): Likewise.
442 (sys/user.h): Likewise.
443 (asm/ptrace.h): Likewise.
444 (i386-nat.h): Likewise.
445 * i386-linux-nat.c (i386-nat.h): Likewise.
446 (regset.h): Likewise.
447 (target.h): Likewise.
448 (linux-nat.h): Likewise.
449 (nat/linux-btrace.h): Likewise.
450 (btrace.h): Likewise.
451 (gdb_assert.h): Likewise.
452 (string.h): Likewise.
453 (sys/uio.h): Likewise.
454 (sys/user.h): Likewise.
455 (sys/procfs.h): Likewise.
456 (sys/reg.h): Likewise.
457 (sys/debugreg.h): Likewise.
458 (ORIG_EAX): Remove definition.
460 2014-07-11 Gary Benson <gbenson@redhat.com>
462 * i386-linux-nat.h: New file.
463 * x86-linux-nat.h: Likewise.
464 * x86-linux-nat.c: Likewise.
465 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
466 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
467 * config/i386/linux64.mh (NATDEPFILES): Likewise.
468 * amd64-linux-nat.c (x86-linux-nat.h): New include.
469 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
470 (PTRACE_SETREGSET): Likewise.
471 (arch_lwp_info): Now in x86-linux-nat.c.
472 (have_ptrace_getregset): Now in x86-linux-nat.h.
473 (x86_linux_dr_get): Now in x86-linux-nat.c.
474 (x86_linux_dr_set): Likewise.
475 (x86_linux_dr_get_addr): Likewise.
476 (x86_linux_dr_get_control): Likewise.
477 (x86_linux_dr_get_status): Likewise.
478 (update_debug_registers_callback): Likewise.
479 (x86_linux_dr_set_control): Likewise.
480 (x86_linux_dr_set_addr): Likewise.
481 (x86_linux_prepare_to_resume): Likewise.
482 (x86_linux_new_thread): Likewise.
483 (x86_linux_new_fork): Likewise.
484 (x86_linux_get_thread_area): Likewise.
485 (super_post_startup_inferior): Likewise.
486 (x86_linux_child_post_startup_inferior): Likewise.
487 (AMD64_LINUX_USER64_CS): Likewise.
488 (AMD64_LINUX_X32_DS): Likewise.
489 (x86_linux_read_description): Likewise.
490 (x86_linux_enable_btrace): Likewise.
491 (x86_linux_disable_btrace): Likewise.
492 (x86_linux_teardown_btrace): Likewise.
493 (x86_linux_read_btrace): Likewise.
494 (x86_linux_create_target): Likewise.
495 (x86_linux_add_target): Likewise.
496 * i386-linux-nat.c (x86-linux-nat.h): New include.
497 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
498 (PTRACE_SETREGSET): Likewise.
499 (arch_lwp_info): Now in x86-linux-nat.c.
500 (have_ptrace_getregset): Now in x86-linux-nat.h.
501 (x86_linux_dr_get): Now in x86-linux-nat.c.
502 (x86_linux_dr_set): Likewise.
503 (x86_linux_dr_get_addr): Likewise.
504 (x86_linux_dr_get_control): Likewise.
505 (x86_linux_dr_get_status): Likewise.
506 (update_debug_registers_callback): Likewise.
507 (x86_linux_dr_set_control): Likewise.
508 (x86_linux_dr_set_addr): Likewise.
509 (x86_linux_prepare_to_resume): Likewise.
510 (x86_linux_new_thread): Likewise.
511 (x86_linux_new_fork): Likewise.
512 (x86_linux_get_thread_area): Likewise.
513 (super_post_startup_inferior): Likewise.
514 (x86_linux_child_post_startup_inferior): Likewise.
515 (AMD64_LINUX_USER64_CS): Likewise.
516 (AMD64_LINUX_X32_DS): Likewise.
517 (x86_linux_read_description): Likewise.
518 (x86_linux_enable_btrace): Likewise.
519 (x86_linux_disable_btrace): Likewise.
520 (x86_linux_teardown_btrace): Likewise.
521 (x86_linux_read_btrace): Likewise.
522 (x86_linux_create_target): Likewise.
523 (x86_linux_add_target): Likewise.
525 2014-07-11 Gary Benson <gbenson@redhat.com>
527 * amd64-linux-nat.c: Comment and whitespace changes.
528 * i386-linux-nat.c: Comment and whitespace changes.
530 2014-07-11 Gary Benson <gbenson@redhat.com>
532 * amd64-linux-nat.c (x86_linux_create_target): New function.
533 (x86_linux_add_target): Likewise.
534 (_initialize_amd64_linux_nat): Delegate to the above new functions.
535 * i386-linux-nat.c (x86_linux_create_target): New function.
536 (x86_linux_add_target): Likewise.
537 (_initialize_i386_linux_nat): Delegate to the above new functions.
539 2014-07-11 Gary Benson <gbenson@redhat.com>
541 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
542 (ps_get_thread_area): Delegate to the above in 32-bit mode.
543 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
544 (ps_get_thread_area): Delegate to the above.
546 2014-07-11 Gary Benson <gbenson@redhat.com>
548 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
549 x86_linux_read_description. All uses updated. amd64-specific
550 code conditionalized. Conditionalized i386-specific code added.
551 Redundant cast removed.
552 * i386-linux-nat.c (i386_linux_read_description): Renamed to
553 x86_linux_read_description. All uses updated. i386-specific
554 code conditionalized. Conditionalized amd64-specific code added.
555 One sizeof replaced with the actual type it is describing.
557 2014-07-11 Gary Benson <gbenson@redhat.com>
559 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
560 x86_linux_dr_get. All uses updated.
561 (amd64_linux_dr_set): Renamed to
562 x86_linux_dr_set. All uses updated.
563 (amd64_linux_dr_get_addr): Renamed to
564 x86_linux_dr_get_addr. All uses updated.
565 (amd64_linux_dr_get_control): Renamed to
566 x86_linux_dr_get_control. All uses updated.
567 (amd64_linux_dr_get_status): Renamed to
568 x86_linux_dr_get_status. All uses updated.
569 (amd64_linux_dr_set_control): Renamed to
570 x86_linux_dr_set_control. All uses updated.
571 (amd64_linux_dr_set_addr): Renamed to
572 x86_linux_dr_set_addr. All uses updated.
573 (amd64_linux_prepare_to_resume): Renamed to
574 x86_linux_prepare_to_resume. All uses updated.
575 (amd64_linux_new_thread): Renamed to
576 x86_linux_new_thread. All uses updated.
577 (amd64_linux_new_fork): Renamed to
578 x86_linux_new_fork. All uses updated.
579 (amd64_linux_child_post_startup_inferior): Renamed to
580 x86_linux_child_post_startup_inferior. All uses updated.
581 (amd64_linux_enable_btrace): Renamed to
582 x86_linux_enable_btrace. All uses updated.
583 (amd64_linux_disable_btrace): Renamed to
584 x86_linux_disable_btrace. All uses updated.
585 (amd64_linux_teardown_btrace): Renamed to
586 x86_linux_teardown_btrace. All uses updated.
587 (amd64_linux_read_btrace): Renamed to
588 x86_linux_read_btrace. All uses updated.
589 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
590 x86_linux_dr_get. All uses updated.
591 (i386_linux_dr_set): Renamed to
592 x86_linux_dr_set. All uses updated.
593 (i386_linux_dr_get_addr): Renamed to
594 x86_linux_dr_get_addr. All uses updated.
595 (i386_linux_dr_get_control): Renamed to
596 x86_linux_dr_get_control. All uses updated.
597 (i386_linux_dr_get_status): Renamed to
598 x86_linux_dr_get_status. All uses updated.
599 (i386_linux_dr_set_control): Renamed to
600 x86_linux_dr_set_control. All uses updated.
601 (i386_linux_dr_set_addr): Renamed to
602 x86_linux_dr_set_addr. All uses updated.
603 (i386_linux_prepare_to_resume): Renamed to
604 x86_linux_prepare_to_resume. All uses updated.
605 (i386_linux_new_thread): Renamed to
606 x86_linux_new_thread. All uses updated.
607 (i386_linux_new_fork): Renamed to
608 x86_linux_new_fork. All uses updated.
609 (i386_linux_child_post_startup_inferior): Renamed to
610 x86_linux_child_post_startup_inferior. All uses updated.
611 (i386_linux_enable_btrace): Renamed to
612 x86_linux_enable_btrace. All uses updated.
613 (i386_linux_disable_btrace): Renamed to
614 x86_linux_disable_btrace. All uses updated.
615 (i386_linux_teardown_btrace): Renamed to
616 x86_linux_teardown_btrace. All uses updated.
617 (i386_linux_read_btrace): Renamed to
618 x86_linux_read_btrace. All uses updated.
620 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
622 * remote.c (extended_remote_post_attach): New function.
623 (init_extended_remote_ops): Install it as to_post_attach method.
625 2014-07-09 Pedro Alves <palves@redhat.com>
627 * infcmd.c (attach_command_post_wait): Don't call
628 target_terminal_inferior here.
629 (attach_command): Call it here instead.
631 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
633 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
635 * c-varobj.c (c_is_path_expr_parent): New function, moved core
636 from varobj.c, with additional checks.
637 (c_varobj_ops): Fill in is_path_expr_parent field.
638 (cplus_varobj_ops): Fill in is_path_expr_parent field.
639 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
641 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
643 (varobj_default_is_path_expr_parent): New function.
644 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
645 (varobj_default_is_path_expr_parent): Declare new function.
647 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
649 * infcmd.c (finish_backward): Turn internal error into normal error.
651 2014-07-07 Pedro Alves <palves@redhat.com>
654 * remote.c (async_handle_remote_sigint)
655 (async_handle_remote_sigint_twice): Call
656 gdb_call_async_signal_handler instead of
657 mark_async_signal_handler.
659 2014-07-07 Tom Tromey <tromey@redhat.com>
661 * target-delegates.c: Rebuild.
662 * target.c (target_info_record): Remove.
663 * record.c (info_record_command): Unconditionally call
665 * target.h (struct target_ops) <to_info_record>: Use
666 TARGET_DEFAULT_IGNORE.
667 (target_info_record): Remove.
669 2014-07-07 Tom Tromey <tromey@redhat.com>
671 * target.h (struct target_ops) <to_get_thread_local_address>: Use
672 TARGET_DEFAULT_NORETURN.
673 * target.c (generic_tls_error): New function.
674 (target_translate_tls_address): Don't search target stack.
675 * target-delegates.c: Rebuild.
676 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
678 * linux-thread-db.c (thread_db_get_thread_local_address):
679 Unconditionally call beneath target.
681 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
683 * cli/cli-logging.c (pop_output_files): Assign targerr to
686 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
688 * MAINTAINERS (Write After Approval): Update my email address.
690 2014-07-02 Gary Benson <gbenson@redhat.com>
692 * proc-service.c (ps_xfer_memory): Update comment.
693 (ps_pstop): Remove unused function.
694 (ps_pcontinue): Likewise.
695 (ps_lstop): Likewise.
696 (ps_lcontinue): Likewise.
697 (ps_lgetxregsize): Likewise.
698 (ps_lgetxregs): Likewise.
699 (ps_lsetxregs): Likewise.
701 (ps_ptread): Likewise.
702 (ps_ptwrite): Likewise.
704 2014-07-01 Mark Wielaard <mjw@redhat.com>
706 * dwarf2read.c (add_array_cv_type): New function.
707 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
708 (read_tag_volatile_type): Likewise.
710 2014-07-01 Tom Tromey <tromey@redhat.com>
712 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
713 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
714 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
715 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
716 * command.h (cmd_cfunc_ftype): Move earlier.
717 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
718 (add_com, add_info): Use cmd_cfunc_ftype.
720 2014-06-30 Tom Tromey <tromey@redhat.com>
722 * symtab.c (operator_chars): Make parameters and return type
724 (file_matches): Make "files" const.
725 (struct search_symbols_data) <files>: Now const.
726 (search_symbols): Make "regexp" and "files" parameters const.
728 (symtab_symbol_info): Remove cast.
729 (rbreak_command): Update.
730 * symtab.h (search_symbols): Update.
732 2014-06-27 Yao Qi <yao@codesourcery.com>
734 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
735 Change parameter type to 'struct thread_info *'. Caller
737 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
739 * dummy-frame.c (struct dummy_frame_id): New.
740 (dummy_frame_id_eq): New function.
741 (struct dummy_frame) <id>: Change its type to 'struct
743 (dummy_frame_push): Add parameter ptid and save it in
745 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
747 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
749 (lookup_dummy_frame): Change parameter type to 'struct
750 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
751 instead of frame_id_eq.
752 (dummy_frame_pop): Add parameter ptid. Callers updated.
753 Update comments. Compose dummy_frame_id and pass it to
755 (dummy_frame_discard): Add parameter ptid.
756 (dummy_frame_sniffer): Compose dummy_frame_id and call
757 dummy_frame_id_eq instead of frame_id_eq.
758 (fprint_dummy_frames): Print ptid.
759 * dummy-frame.h: Remove comments.
760 (dummy_frame_push): Add ptid in declaration.
761 (dummy_frame_pop, dummy_frame_discard): Likewise.
763 2014-06-26 Tom Tromey <tromey@redhat.com>
765 * cli/cli-cmds.c (error_no_arg): Make "why" const.
766 * command.h (error_no_arg): Update.
768 2014-06-26 Tom Tromey <tromey@redhat.com>
770 * cli/cli-setshow.c (do_set_command): Make "arg" const.
771 (do_show_command): Make "arg" const.
772 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
774 2014-06-26 Tom Tromey <tromey@redhat.com>
776 * record-full.c (record_full_get_bookmark): Make "args" const.
777 (record_full_goto_bookmark): Make "raw_bookmark" const.
778 * record.c (record_goto): New function.
779 (cmd_record_goto): Use it. Now static.
780 * record.h (record_goto): Declare.
781 (cmd_record_goto): Remove declaration.
782 * target-delegates.c: Rebuild.
783 * target.h (struct target_ops) <to_get_bookmark,
784 to_goto_bookmark>: Make parameter const.
786 2014-06-26 Tom Tromey <tromey@redhat.com>
788 * defs.h (generic_load): Update.
789 * m32r-rom.c (m32r_load_gen): Make "filename" const.
790 * monitor.c (monitor_load): Make "args" const.
791 * remote-m32r-sdi.c (m32r_load): Make "args" const.
792 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
794 (mips_load): Make "file" const.
795 * remote-sim.c (gdbsim_load): Make "args" const.
796 * remote.c (remote_load): Make "name" const.
797 * symfile.c (generic_load): Make "args" const.
798 * target-delegates.c: Rebuild.
799 * target.c (target_load): Make "arg" const.
800 (debug_to_load): Make "args" const.
801 * target.h (struct target_ops) <to_load>: Make parameter const.
802 (target_load): Update.
804 2014-06-26 Tom Tromey <tromey@redhat.com>
807 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
808 (dwarf2_physname, read_partial_die)
809 (guess_partial_die_structure_name, fixup_partial_die)
810 (guess_full_die_structure_name, anonymous_struct_prefix)
811 (dwarf2_name): Use per-BFD obstack.
813 2014-06-26 Yao Qi <yao@codesourcery.com>
815 * dummy-frame.c (dummy_frame_sniffer): Move local variables
816 dummyframe and this_id into inner block below.
818 2014-06-26 Yao Qi <yao@codesourcery.com>
820 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
821 with "signal_pass[0]" in the initialization of signal_pass.
823 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
825 * record-btrace.c (record_btrace_generating_corefile)
826 (record_btrace_prepare_to_generate_core)
827 (record_btrace_done_generating_core): New.
828 (record_btrace_xfer_partial, record_btrace_fetch_registers)
829 (record_btrace_store_registers, record_btrace_prepare_to_store):
830 Forward request when generating a core file.
831 (record_btrace_open): Set record_btrace_generating_corefile to zero.
832 (init_record_btrace_ops): Set to_prepare_to_generate_core and
833 to_done_generating_core.
835 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
837 * target.h (target_ops) <to_prepare_to_generate_core>
838 <to_done_generating_core>: New.
839 (target_prepare_to_generate_core, target_done_generating_core): New.
840 * target.c (target_prepare_to_generate_core)
841 (target_done_generating_core): New.
842 * target-delegates.c: Regenerate.
843 * gcore.c: (write_gcore_file): Rename to ...
844 (write_gcore_file_1): ...this.
845 (write_gcore_file): Call target_prepare_to_generate_core
846 and target_done_generating_core.
848 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
850 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
851 * gcore.c (write_gcore_file): Free memory returned from
853 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
854 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
856 2014-06-24 Yao Qi <yao@codesourcery.com>
858 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
859 (arm_linux_init_abi): Set skip_trampoline_code with
860 gdbarch_skip_trampoline_code instead of
861 find_solib_trampoline_target.
863 2014-06-24 Yao Qi <yao@codesourcery.com>
865 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
866 arm_skip_bx_reg returns non-zero.
868 2014-06-24 Yao Qi <yao@codesourcery.com>
870 * arm-tdep.c (arm_skip_bx_reg): New function.
871 (arm_skip_stub): Call arm_skip_bx_reg.
873 2014-06-23 Don Breazeal <donb@codesourcery.com>
875 * MAINTAINERS: Add myself as write-after-approval maintainer.
877 2014-06-23 Pedro Alves <palves@redhat.com>
879 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
880 DR_CONTROL before setting DR0..DR3.
881 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
882 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
883 bits of DR_CONTROL related to the debug register slot being
884 disabled. If all slots are vacant, clear local slowdown as well,
885 and assert DR_CONTROL is 0.
887 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
889 * python/lib/gdb/command/xmethods.py
890 (get_method_matchers_in_loci): Lookup xmethod matchers in the
891 current progspace only if the string "progspace" matches LOCUS_RE.
893 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
895 Fix --with-system-readline with readline-6.3 patch 5.
896 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
897 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
900 2014-06-20 Tom Tromey <tromey@redhat.com>
902 * dwarf2read.c (dw2_get_real_path): Use correct type in
904 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
906 2014-06-20 Gary Benson <gbenson@redhat.com>
908 * common/gdb_thread_db.h: Moved to nat. All includes updated.
909 * common/glibc_thread_db.h: Likewise.
910 * common/i386-cpuid.h: Likewise.
911 * common/i386-gcc-cpuid.h: Likewise.
912 * common/linux-btrace.h: Likewise.
913 * common/linux-osdata.h: Likewise.
914 * common/linux-procfs.h: Likewise.
915 * common/linux-ptrace.h: Likewise.
916 * common/mips-linux-watch.h: Likewise.
917 * common/linux-btrace.c: Moved to nat.
918 * common/linux-osdata.c: Likewise.
919 * common/linux-procfs.c: Likewise.
920 * common/linux-ptrace.c: Likewise.
921 * common/mips-linux-watch.c: Likewise.
922 * nat/gdb_thread_db.h: Moved from common.
923 * nat/glibc_thread_db.h: Likewise.
924 * nat/i386-cpuid.h: Likewise.
925 * nat/i386-gcc-cpuid.h: Likewise.
926 * nat/linux-btrace.c: Likewise.
927 * nat/linux-btrace.h: Likewise.
928 * nat/linux-osdata.c: Likewise.
929 * nat/linux-osdata.h: Likewise.
930 * nat/linux-procfs.c: Likewise.
931 * nat/linux-procfs.h: Likewise.
932 * nat/linux-ptrace.c: Likewise.
933 * nat/linux-ptrace.h: Likewise.
934 * nat/mips-linux-watch.c: Likewise.
935 * nat/mips-linux-watch.h: Likewise.
936 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
937 (object file files): Reordered.
938 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
939 of glibc_thread_db.h.
941 2014-06-20 Gary Benson <gbenson@redhat.com>
943 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
944 (i386_dr_low_type): Moved to nat/i386-dregs.h.
945 (i386_dr_low): Likewise.
946 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
947 (i386_dr_low_set_addr): Likewise.
948 (i386_dr_low_get_addr): Likewise.
949 (i386_dr_low_can_set_control): Likewise.
950 (i386_dr_low_set_control): Likewise.
951 (i386_dr_low_get_control): Likewise.
952 (i386_dr_low_get_status): Likewise.
953 (i386_get_debug_register_length): Likewise.
954 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
955 (i386_dr_low): Likewise.
956 * nat/i386-dregs.c (i386-low.h): Remove include.
957 (i386-nat.h): Likewise.
958 (nat/i386-dregs.h): New include.
959 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
960 (i386_dr_low_set_addr): Likewise.
961 (i386_dr_low_get_addr): Likewise.
962 (i386_dr_low_can_set_control): Likewise.
963 (i386_dr_low_set_control): Likewise.
964 (i386_dr_low_get_control): Likewise.
965 (i386_dr_low_get_status): Likewise.
966 (i386_get_debug_register_length): Likewise.
967 (debug_hw_points): Likewise.
969 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
971 * Makefile.in (SFILES): Add d-exp.y.
972 (YYFILES): Add d-exp.c.
973 (YYOBJ): Add d-exp.o.
974 (local-maintainer-clean): Delete d-exp.c.
976 * d-lang.h (d_parse): New declaration.
977 (d_error): New declaration.
978 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
979 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
980 PREC_ORDER operators.
981 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
983 2014-06-19 Yao Qi <yao@codesourcery.com>
985 * gdbthread.h (any_running): Remove the declaration.
986 * thread.c (any_running): Remove.
988 2014-06-19 Yao Qi <yao@codesourcery.com>
990 * gdbthread.h (struct thread_info) <state>: Change its type to
991 'enum thread_state'. Update comments.
993 2014-06-19 Pedro Alves <palves@redhat.com>
995 * gdbthread.h (ALL_THREADS): Delete.
996 (ALL_NON_EXITED_THREADS): New macro.
997 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
998 instead of ALL_THREADS.
999 * infrun.c (find_thread_needs_step_over)
1000 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
1001 instead of ALL_THREADS.
1002 * record-btrace.c (record_btrace_open)
1003 (record_btrace_stop_recording, record_btrace_close)
1004 (record_btrace_is_replaying, record_btrace_resume)
1005 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
1006 * remote.c (append_pending_thread_resumptions): Likewise.
1007 * thread.c (thread_apply_all_command): Likewise.
1009 2014-06-19 Gary Benson <gbenson@redhat.com>
1011 * i386-nat.c (i386_stopped_by_watchpoint):
1012 Use i386_dr_stopped_by_watchpoint.
1013 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
1014 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
1016 2014-06-19 Gary Benson <gbenson@redhat.com>
1018 * nat/i386-dregs.c: New file.
1019 * Makefile.in (i386-dregs.o): New rule.
1020 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
1021 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
1022 * config/i386/darwin.mh (NATDEPFILES): Likewise.
1023 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
1024 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
1025 * config/i386/go32.mh (NATDEPFILES): Likewise.
1026 * config/i386/linux.mh (NATDEPFILES): Likewise.
1027 * config/i386/linux64.mh (NATDEPFILES): Likewise.
1028 * config/i386/mingw.mh (NATDEPFILES): Likewise.
1029 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
1030 * i386-nat.h (debug_hw_points): New declaration.
1031 * i386-nat.c (breakpoint.h): Remove include.
1032 (command.h): Likewise.
1033 (target.h): Likewise.
1034 (gdb_assert.h): Likewise.
1035 (debug_hw_points): Made nonstatic.
1036 (debug_printf): Now in i386-dregs.c.
1037 (TARGET_HAS_DR_LEN_8): Likewise.
1038 (DR_CONTROL_SHIFT): Likewise.
1039 (DR_CONTROL_SIZE): Likewise.
1040 (DR_RW_EXECUTE): Likewise.
1041 (DR_RW_WRITE): Likewise.
1042 (DR_RW_READ): Likewise.
1043 (DR_RW_IORW): Likewise.
1044 (DR_LEN_1): Likewise.
1045 (DR_LEN_2): Likewise.
1046 (DR_LEN_4): Likewise.
1047 (DR_LEN_8): Likewise.
1048 (DR_LOCAL_ENABLE_SHIFT): Likewise.
1049 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
1050 (DR_ENABLE_SIZE): Likewise.
1051 (DR_LOCAL_SLOWDOWN): Likewise.
1052 (DR_GLOBAL_SLOWDOWN): Likewise.
1053 (DR_CONTROL_RESERVED): Likewise.
1054 (I386_DR_CONTROL_MASK): Likewise.
1055 (I386_DR_VACANT): Likewise.
1056 (I386_DR_LOCAL_ENABLE): Likewise.
1057 (I386_DR_GLOBAL_ENABLE): Likewise.
1058 (I386_DR_DISABLE): Likewise.
1059 (I386_DR_SET_RW_LEN): Likewise.
1060 (I386_DR_GET_RW_LEN): Likewise.
1061 (I386_DR_WATCH_HIT): Likewise.
1062 (i386_wp_op_t): Likewise.
1063 (i386_show_dr): Likewise.
1064 (i386_length_and_rw_bits): Likewise.
1065 (i386_insert_aligned_watchpoint): Likewise.
1066 (i386_remove_aligned_watchpoint): Likewise.
1067 (i386_handle_nonaligned_watchpoint): Likewise.
1068 (i386_update_inferior_debug_regs): Likewise.
1069 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
1070 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
1071 (i386_region_ok_for_watchpoint):
1072 Use i386_dr_region_ok_for_watchpoint.
1073 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
1075 2014-06-19 Gary Benson <gbenson@redhat.com>
1077 * i386-nat.c (i386_insert_hw_breakpoint): Use
1078 i386_insert_watchpoint.
1079 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
1081 2014-06-19 Gary Benson <gbenson@redhat.com>
1083 * i386-nat.c (i386_dr_show): Renamed to
1084 i386_show_dr and made static. All uses updated.
1085 (i386_dr_length_and_rw_bits): Renamed to
1086 i386_length_and_rw_bits and made static.
1088 (i386_dr_insert_aligned_watchpoint): Renamed to
1089 i386_insert_aligned_watchpoint and made static.
1091 (i386_dr_remove_aligned_watchpoint): Renamed to
1092 i386_remove_aligned_watchpoint and made static.
1094 (i386_dr_update_inferior_debug_regs): Renamed to
1095 i386_update_inferior_debug_regs and made static.
1097 * nat/i386-dregs.h (i386_dr_show): Removed.
1098 (i386_dr_length_and_rw_bits): Likewise.
1099 (i386_dr_insert_aligned_watchpoint): Likewise.
1100 (i386_dr_remove_aligned_watchpoint): Likewise.
1101 (i386_dr_update_inferior_debug_regs): Likewise.
1103 2014-06-19 Gary Benson <gbenson@redhat.com>
1105 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
1106 * configure: Regenerate.
1107 * config.in: Likewise.
1108 * main.c (signal.h): New include.
1109 (setup_alternate_signal_stack): New function.
1110 (captured_main): Call the above.
1111 * cp-support.c (signal.h): New include.
1112 (catch_demangler_crashes): New flag.
1113 (SIGJMP_BUF): New define.
1114 (SIGSETJMP): Likewise.
1115 (SIGLONGJMP): Likewise.
1116 (gdb_demangle_jmp_buf): New static global.
1117 (gdb_demangle_attempt_core_dump): Likewise.
1118 (gdb_demangle_signal_handler): New function.
1119 (gdb_demangle): If catch_demangler_crashes is set, install the
1120 above signal handler before calling bfd_demangle, and restore
1121 the original signal handler afterwards. Display the offending
1122 symbol and call demangler_warning the first time a segmentation
1124 (_initialize_cp_support): New maint set/show command.
1126 2014-06-19 Gary Benson <gbenson@redhat.com>
1128 * utils.h (resource_limit_kind): New enum.
1129 (can_dump_core): New declaration.
1130 (warn_cant_dump_core): Likewise.
1131 (dump_core): Likewise.
1132 * utils.c (dump_core): Made nonstatic. Added new
1133 parameter "limit_kind".
1134 (can_dump_core): Made nonstatic. Moved printing code to...
1135 (warn_cant_dump_core): New function.
1136 (can_dump_core_warn): Likewise.
1137 (internal_vproblem): Replace calls to can_dump_core with
1138 calls to can_dump_core_warn. Supply new argument to each.
1140 2014-06-19 Gary Benson <gbenson@redhat.com>
1142 * utils.h (demangler_vwarning): New declaration.
1143 (demangler_warning): Likewise.
1144 * utils.c (struct internal_problem)
1145 <user_settable_should_quit>: New field.
1146 <user_settable_should_dump_core>: Likewise
1147 (internal_error_problem): Add values for above new fields.
1148 (internal_warning_problem): Likewise.
1149 (demangler_warning_problem): New static global.
1150 (demangler_vwarning): New function.
1151 (demangler_warning): Likewise.
1152 (add_internal_problem_command): Selectively add commands.
1153 (_initialize_utils): New internal problem command.
1154 * maint.c (maintenance_demangler_warning): New function.
1155 (_initialize_maint_cmds): New command.
1157 2014-06-18 Tom Tromey <tromey@redhat.com>
1159 * f-valprint.c (info_common_command_for_block): Update.
1160 * symtab.h (struct general_symbol_info) <common_block>: Now
1163 2014-06-18 Tom Tromey <tromey@redhat.com>
1165 * symtab.h (struct symtab) <blockvector>: Now const.
1166 * ada-lang.c (ada_add_global_exceptions): Update.
1167 * buildsym.c (augment_type_symtab): Update.
1168 * dwarf2read.c (dw2_lookup_symbol): Update.
1169 * jit.c (finalize_symtab): Update.
1170 * jv-lang.c (add_class_symtab_symbol): Update.
1171 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
1173 * objfiles.c (objfile_relocate1): Update.
1174 * psymtab.c (lookup_symbol_aux_psymtabs)
1175 (maintenance_check_psymtabs): Update.
1176 * python/py-symtab.c (stpy_global_block, stpy_static_block):
1178 * spu-tdep.c (spu_catch_start): Update.
1179 * symmisc.c (dump_symtab_1): Update.
1180 * symtab.c (lookup_global_symbol_from_objfile)
1181 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
1182 (basic_lookup_transparent_type_quick)
1183 (basic_lookup_transparent_type, find_pc_sect_symtab)
1184 (find_pc_sect_line, search_symbols): Update.
1185 * block.c (find_block_in_blockvector): Make "bl" const.
1186 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
1188 (blockvector_contains_pc): Make "bv" const.
1189 (block_for_pc_sect): Update.
1190 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
1191 (blockvector_contains_pc): Update.
1192 * breakpoint.c (resolve_sal_pc): Update.
1193 * inline-frame.c (block_starting_point_at): Update.
1195 2014-06-18 Tom Tromey <tromey@redhat.com>
1197 * completer.c (complete_line): Make "line_buffer" const.
1198 * completer.h (complete_line): Update.
1200 2014-06-18 Tom Tromey <tromey@redhat.com>
1202 * symtab.c (add_macro_name): Remove unneeded cast.
1204 2014-06-18 Tom Tromey <tromey@redhat.com>
1206 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
1207 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
1209 2014-06-18 Tom Tromey <tromey@redhat.com>
1211 * probe.c (info_probes_for_ops): Make "arg" const.
1212 * probe.h (info_probes_for_ops): Update.
1214 2014-06-18 Tom Tromey <tromey@redhat.com>
1216 * varobj.c (varobj_create): Update.
1217 * valops.c (value_of_this): Update.
1218 * tracepoint.c (add_local_symbols, scope_info): Update.
1219 * symtab.h (struct general_symbol_info) <block>: Now const.
1220 * symtab.c (skip_prologue_sal)
1221 (default_make_symbol_completion_list_break_on)
1222 (skip_prologue_using_sal): Update.
1223 * stack.h (iterate_over_block_locals)
1224 (iterate_over_block_local_vars): Update.
1225 * stack.c (print_frame_args): Update.
1226 (iterate_over_block_locals, iterate_over_block_local_vars): Make
1228 (get_selected_block): Make return type const.
1229 * python/py-frame.c (frapy_block): Update.
1230 * python/py-block.c (gdbpy_block_for_pc): Update.
1231 * p-exp.y (%union) <bval>: Now const.
1232 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
1233 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
1234 * m2-exp.y (%union) <bval>: Now const.
1235 * linespec.c (get_current_search_block): Make return type const.
1236 (create_sals_line_offset, find_label_symbols): Update.
1237 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
1239 (block_starting_point_at): Make "block" const.
1240 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
1241 (check_exception_resume): Update.
1242 * guile/scm-frame.c (gdbscm_frame_block): Update.
1243 * guile/scm-block.c (gdbscm_lookup_block): Update.
1244 * frame.h (get_frame_block): Update.
1245 (get_selected_block): Make return type const.
1246 * frame.c (frame_id_inner): Update.
1247 * f-valprint.c (info_common_command_for_block)
1248 (info_common_command): Update.
1249 * dwarf2loc.c (dwarf2_find_location_expression)
1250 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
1251 (locexpr_describe_location_piece): Update.
1252 * c-exp.y (%union) <bval>: Now const.
1253 * breakpoint.c (resolve_sal_pc): Update.
1254 * blockframe.c (get_frame_block):Make return type const.
1255 (get_pc_function_start, get_frame_function, find_pc_sect_function)
1256 (block_innermost_frame): Update.
1257 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
1258 (block_for_pc, block_for_pc_sect): Update.
1259 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
1261 (block_for_pc_sect, block_for_pc): Make return type const.
1262 * ax-gdb.c (gen_expr): Update.
1263 * alpha-mdebug-tdep.c (find_proc_desc): Update.
1264 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
1265 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
1266 (ada_read_var_value): Update.
1267 * ada-exp.y (struct name_info) <block>: Now const.
1269 (block_lookup): Constify.
1271 2014-06-18 Gary Benson <gbenson@redhat.com>
1273 * nat/i386-dregs.h: New file.
1274 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
1275 * i386-nat.h (i386-dregs.h): New include.
1276 (DR_FIRSTADDR): Now in i386-dregs.h.
1277 (DR_LASTADDR): Likewise.
1278 (DR_NADDR): Likewise.
1279 (DR_STATUS): Likewise.
1280 (DR_CONTROL): Likewise.
1281 (i386_debug_reg_state): Likewise.
1282 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
1284 2014-06-18 Don Breazeal <donb@codesourcery.com>
1286 * breakpoint.c (set_longjmp_breakpoint): Call
1287 momentary_breakpoint_from_master with additional argument.
1288 (set_longjmp_breakpoint_for_call_dummy): Call
1289 momentary_breakpoint_from_master with additional argument.
1290 (set_std_terminate_breakpoint): Call
1291 momentary_breakpoint_from_master with additional argument.
1292 (momentary_breakpoint_from_master): Add argument to function
1293 definition and use it to initialize structure member flag.
1294 (clone_momentary_breakpoint): Call
1295 momentary_breakpoint_from_master with additional argument.
1296 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
1297 member flags set in momentary_breakpoint_from_master.
1299 2014-06-18 Gary Benson <gbenson@redhat.com>
1301 * i386-nat.c (i386_show_dr): Renamed to
1302 i386_dr_show and made nonstatic. All uses updated.
1303 (i386_length_and_rw_bits): Renamed to
1304 i386_dr_length_and_rw_bits and made nonstatic.
1306 (i386_insert_aligned_watchpoint): Renamed to
1307 i386_dr_insert_aligned_watchpoint and made nonstatic.
1309 (i386_remove_aligned_watchpoint): Renamed to
1310 i386_dr_remove_aligned_watchpoint and made nonstatic.
1312 (i386_update_inferior_debug_regs): Renamed to
1313 i386_dr_update_inferior_debug_regs and made nonstatic.
1316 2014-06-18 Gary Benson <gbenson@redhat.com>
1318 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
1319 (i386_dr_low_can_set_control): Likewise.
1320 (i386_dr_low_set_addr): Likewise.
1321 (i386_dr_low_set_control): Likewise.
1322 (i386_dr_low_get_addr): Likewise.
1323 (i386_dr_low_get_status): Likewise.
1324 (i386_dr_low_get_control): Likewise.
1325 (i386_insert_aligned_watchpoint): Use new macros.
1326 (i386_update_inferior_debug_regs): Likewise.
1327 (i386_stopped_data_address): Likewise.
1329 2014-06-18 Gary Benson <gbenson@redhat.com>
1331 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
1332 New parameter. All uses updated.
1334 2014-06-18 Gary Benson <gbenson@redhat.com>
1336 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
1339 2014-06-18 Gary Benson <gbenson@redhat.com>
1341 * i386-nat.c (debug_printf): New macro.
1342 (i386_get_debug_register_length): Likewise.
1343 (TARGET_HAS_DR_LEN_8): Use above macro.
1344 (i386_show_dr): Use debug_printf instead of puts_unfiltered
1345 and printf_unfiltered. Use phex to format values.
1347 2014-06-18 Gary Benson <gbenson@redhat.com>
1349 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
1352 2014-06-18 Gary Benson <gbenson@redhat.com>
1354 * i386-nat.c: Comment changes.
1356 2014-06-18 Gary Benson <gbenson@redhat.com>
1358 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
1360 2014-06-18 Gary Benson <gbenson@redhat.com>
1362 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
1363 (i386_insert_aligned_watchpoint): Likewise.
1364 (i386_remove_aligned_watchpoint): Likewise.
1365 (i386_handle_nonaligned_watchpoint): Likewise.
1367 2014-06-18 Gary Benson <gbenson@redhat.com>
1369 * i386-nat.c: Whitespace changes.
1371 2014-06-17 Samuel Bronson <naesten@gmail.com>
1373 * MAINTAINERS: Update Roland McGrath's email address.
1374 Thanks to Sergio Durigan Junior for pointing out that he left
1375 Red Hat a while ago, and giving me a current address.
1377 2014-06-17 Tom Tromey <tromey@redhat.com>
1379 * utils.h (savestring): Remove declaration.
1381 2014-06-17 Tom Tromey <tromey@redhat.com>
1383 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
1385 2014-06-16 Keith Seitz <keiths@redhat.com>
1388 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
1389 to update the varobj if inferior_ptid is null_ptid.
1391 2014-06-16 Tom Tromey <tromey@redhat.com>
1393 * target.h (struct target_ops) <to_info_proc>: Make parameter
1395 (target_info_proc): Update.
1396 * target.c (target_info_proc): Make "args" const.
1397 * procfs.c (procfs_info_proc): Update.
1398 * linux-tdep.c (linux_info_proc): Update.
1399 (linux_core_info_proc_mappings): Make "args" const.
1400 (linux_core_info_proc): Update.
1401 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
1402 * gdbarch.c: Rebuild.
1403 * gdbarch.h: Rebuild.
1404 * corelow.c (core_info_proc): Update.
1406 2014-06-16 Tom Tromey <tromey@redhat.com>
1408 * target.h (struct target_ops) <to_disconnect>: Make parameter
1410 (target_disconnect): Update.
1411 * target.c (target_disconnect): Make "args" const.
1412 * target-delegates.c: Rebuild.
1413 * remote.c (remote_disconnect): Update.
1414 * record.h (record_disconnect): Update.
1415 * record.c (record_disconnect): Update.
1416 * inf-child.c (inf_child_disconnect): Update.
1418 2014-06-16 Tom Tromey <tromey@redhat.com>
1420 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
1421 * target.c (debug_to_rcmd, default_rcmd): Update.
1422 * target-delegates.c: Rebuild.
1423 * remote.c (remote_rcmd): Update.
1424 * monitor.c (monitor_rcmd): Update.
1426 2014-06-16 Pedro Alves <palves@redhat.com>
1428 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
1429 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
1430 have OBJF_SHARED set.
1431 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
1432 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
1433 instead of OBJF_USERLOADED.
1434 * objfiles.h (OBJF_SHARED): Update comment.
1435 (userloaded_objfile_contains_address_p): Rename to ...
1436 (shared_objfile_contains_address_p): ... this, and update
1438 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
1440 (remove_symbol_file_command): Skip objfiles that don't have
1443 2014-06-16 Tom Tromey <tromey@redhat.com>
1445 * minsyms.h (prim_record_minimal_symbol)
1446 (prim_record_minimal_symbol_and_info): Update comments.
1448 2014-06-14 Eli Zaretskii <eliz@gnu.org>
1450 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
1451 or --without-guile, according to how GDB was built.
1453 2014-06-13 Tom Tromey <tromey@redhat.com>
1455 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
1457 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
1459 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
1461 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
1462 help_list.Pass all_commands, not -1, to help_list.
1463 * cli/cli-dump.c (dump_command, append_command)
1464 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
1465 (binary_dump_command, binary_append_command): Pass all_commands,
1466 not -1, to help_list.
1467 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
1469 * valprint.c (set_print, set_print_raw): Pass all_commands, not
1471 * typeprint.c (set_print_type): Pass all_commands, not -1, to
1473 * top.c (set_history): Pass all_commands, not -1, to help_list.
1474 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
1475 all_commands, not -1, to help_list.
1476 * symfile.c (overlay_command): Pass all_commands, not -1, to
1478 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
1480 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
1482 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
1484 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
1485 not -1, to help_list.
1486 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
1487 not -1, to help_list.
1488 * maint.c (maintenance_command, maintenance_info_command)
1489 (maintenance_print_command, maintenance_set_cmd): Pass
1490 all_commands, not -1, to help_list.
1491 * macrocmd.c (macro_command): Pass all_commands, not -1, to
1493 * language.c (set_check): Pass all_commands, not -1, to help_list.
1494 * infcmd.c (unset_command): Pass all_commands, not -1, to
1496 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
1498 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
1500 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
1502 * breakpoint.c (save_command): Pass all_commands, not -1, to
1504 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
1505 all_commands, not -1, to help_list.
1507 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
1509 * regcache.c (struct register_to_invalidate): New structure.
1510 (do_register_invalidate, make_cleanup_regcache_invalidate): New
1512 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
1514 2014-06-12 Yao Qi <yao@codesourcery.com>
1516 * varobj.c (varobj_get_num_children): Call
1517 varobj_is_dynamic_p.
1518 (varobj_list_children): Likewise.
1519 (varobj_update): Likewise. Update comments.
1521 2014-06-12 Yao Qi <yao@codesourcery.com>
1523 * varobj.c (varobj_pretty_printed_p): Rename to ...
1524 (varobj_is_dynamic_p): ... this. New function.
1525 * varobj.h (varobj_pretty_printed_p): Remove declaration.
1526 (varobj_is_dynamic_p): Declare.
1527 * mi/mi-cmd-var.c (print_varobj): All callers updated.
1528 (mi_print_value_p, varobj_update_one): Likewise.
1530 2014-06-12 Pedro Alves <pedro@codesourcery.com>
1531 Yao Qi <yao@codesourcery.com>
1533 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
1534 (varobj_get_iterator): Wrap up code for pretty-printer by
1535 "#if HAVE_PYTHON" and "#endif".
1536 (update_dynamic_varobj_children): Likewise.
1538 2014-06-12 Pedro Alves <pedro@codesourcery.com>
1539 Yao Qi <yao@codesourcery.com>
1541 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
1542 gdb_python_initialized is false. Move some code from varobj.c.
1543 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
1544 * varobj.c: Move "varobj-iter.h" inclusion earlier.
1545 (struct varobj_item): Moved to varobj-iter.h".
1546 (varobj_clear_saved_item): New function.
1547 (update_dynamic_varobj_children): Move python-related code to
1549 (free_variable): Call varobj_clear_saved_item and
1552 2014-06-12 Pedro Alves <pedro@codesourcery.com>
1553 Yao Qi <yao@codesourcery.com>
1555 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
1556 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
1557 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
1558 (py-varobj.o): New rule.
1559 * python/py-varobj.c: New file.
1560 * python/python-internal.h (py_varobj_get_iterator): Declare.
1561 * varobj-iter.h: New file.
1562 * varobj.c: Include "varobj-iter.h"
1563 (struct varobj) <child_iter>: Change its type from "PyObject *"
1564 to "struct varobj_iter *".
1565 <saved_item>: Likewise.
1566 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
1567 [HAVE_PYTHON] (varobj_get_iterator): New function.
1568 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
1569 python-specific code to python/py-varobj.c.
1570 (install_visualizer): Call varobj_iter_delete instead of
1572 * varobj.h (varobj_ensure_python_env): Declare.
1574 2014-06-12 Yao Qi <yao@codesourcery.com>
1576 * varobj.c (struct varobj_item): New structure.
1577 (create_child_with_value): Update declaration.
1578 (varobj_add_child): Replace arguments 'name' and 'value' with
1579 'item'. All callers updated.
1580 (install_dynamic_child): Likewise.
1581 (update_dynamic_varobj_children): Likewise.
1582 (varobj_add_child): Likewise.
1583 (create_child_with_value): Likewise.
1585 2014-06-11 Joel Brobecker <brobecker@adacore.com>
1587 * NEWS: Create a new section for the next release branch.
1588 Rename the section of the current branch, now that it has
1591 2014-06-11 Joel Brobecker <brobecker@adacore.com>
1593 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
1594 * version.in: Bump version to 7.8.50.DATE-cvs.
1596 2014-06-11 Pedro Alves <palves@redhat.com>
1599 * ser-mingw.c (net_windows_socket_check_pending): New function.
1600 (net_windows_select_thread): Ignore spurious wakeups. Use
1601 net_windows_socket_check_pending.
1602 (net_windows_wait_handle): Check for pending events with
1603 ioctlsocket, through net_windows_socket_check_pending, instead of
1604 checking the socket's event.
1606 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
1608 * python/python-internal.h (gdb_PyObject_GetAttrString)
1609 (gdb_PyObject_HasAttrString): New inline function definitions.
1610 * py-value.c (get_field_flag): Remove the now unnecessary cast to
1611 char * of the second argument to PyObject_GetAttrString.
1613 2014-06-10 Joel Brobecker <brobecker@adacore.com>
1615 * serial.c (serial_write): Fix index of character to be printed
1616 in call to serial_logchar when serial debug traces are enabled.
1618 2014-06-10 Joel Brobecker <brobecker@adacore.com>
1620 * gdbtypes (resolve_dynamic_range): Add function description.
1622 2014-06-09 Pedro Alves <palves@redhat.com>
1624 * linux-nat.c (linux_child_follow_fork): Initialize status with
1625 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
1626 inner block. Only pass the signal to PTRACE_DETACH if in pass
1629 2014-06-09 Gary Benson <gbenson@redhat.com>
1631 * common/signals.c (gdb_signal_from_host): Reorder to separate
1632 the always-available ANSI-standard signals from the signals that
1634 (do_gdb_signal_to_host): Likewise.
1635 * proc-events.c (signal_table): Likewise.
1637 2014-06-08 Hui Zhu <hui@codesourcery.com>
1639 * common/linux-ptrace.c (linux_disable_event_reporting): New
1641 * common/linux-ptrace.h (linux_disable_event_reporting): New
1643 * linux-nat.c (linux_child_follow_fork): Do a single step before
1646 2014-06-07 Keith Seitz <keiths@redhat.com>
1650 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
1651 from symbol_matches_domain in symtab.c. All local callers
1652 of symbol_matches_domain updated.
1653 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
1654 search STRUCT_DOMAIN.
1655 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
1656 independently. standard_lookup will do that automatically.
1657 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
1658 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
1659 (cp_lookup_symbol_in_namespace): Likewise.
1660 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
1661 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
1662 may return a STRUCT_DOMAIN match.
1663 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
1664 * cp-support.c: Include language.h.
1665 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
1667 * psymtab.c (match_partial_symbol): Compare the requested
1668 domain with the symbol's domain directly.
1669 (lookup_partial_symbol): Likewise.
1670 * symtab.c (lookup_symbol_in_language): Explain when/why
1671 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
1672 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
1673 appropriate languages.
1674 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
1675 and moved to ada-lang.c
1676 (lookup_block_symbol): Explain that this function only returns
1677 symbol matching the requested DOMAIN.
1678 Compare the requested domain with the symbol's domain directly.
1679 (iterate_over_symbols): Compare the requested domain with the
1680 symbol's domain directly.
1681 * symtab.h (symbol_matches_domain): Remove.
1683 2014-06-06 Doug Evans <xdje42@gmail.com>
1685 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
1686 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
1687 (gdbscm_guile_version_is_at_least): Declare.
1688 (gdbscm_scm_string_to_int): Declare.
1689 * guile/guile.c (gdbscm_guile_major_version): New global.
1690 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
1691 (guile_datadir): New static global.
1692 (gdbscm_guile_data_directory): New function.
1693 (initialize_scheme_side): Update.
1694 (misc_guile_functions): Add guile-data-directory.
1695 (initialize_gdb_module): Fetch guile version number.
1696 * guile/lib/gdb.scm: Remove call to add-to-load-path.
1697 * guile/lib/gdb/init.scm (%initialize!): Ditto.
1698 * guile/lib/gdb/boot.scm: Use guile-data-directory.
1699 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
1701 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
1702 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
1703 * guile/scm-value.c (gdbscm_value_to_string): Only call
1704 scm_port_conversion_strategy if Guile version >= 2.0.6.
1706 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
1708 * main.c (print_gdb_help): Add -q and --silent.
1710 2014-06-06 Gary Benson <gbenson@redhat.com>
1712 * common/signals.c: Remove preprocessor conditionals for
1713 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
1714 SIGSEGV and SIGTERM.
1715 * proc-events.c: Likewise.
1717 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
1719 * symfile.c (symfile_free_objfile): Remove restriction to
1721 * symfile-mem.c (symbol_file_add_from_memory): Call
1722 add_target_sections_of_objfile.
1724 2014-06-05 Ludovic Courtès <ludo@gnu.org>
1726 * guile/scm-value.c (gdbscm_history_append_x): Use
1727 'vlscm_get_value_smob_arg_unsafe' instead of
1728 'vlscm_scm_to_value'.
1730 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
1733 * utils.c (printchar): Don't escape at all if quoter is NUL.
1734 Update function documentation to clarify effect of parameter
1736 * remote.c (escape_buffer): Pass '\\' as the quoter to
1737 fputstrn_unfiltered.
1738 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
1739 generate the output.
1740 (mi_solib_unloaded): Same.
1742 2014-06-05 Joel Brobecker <brobecker@adacore.com>
1744 * development.sh: Delete.
1745 * Makefile.in (config.status): Adjust dependency on development.sh.
1746 * configure.ac: Adjust development.sh source call.
1747 * configure: Regenerate.
1749 2014-06-04 Doug Evans <xdje42@gmail.com>
1751 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
1752 is_scheme_bkpt, spec.
1753 (bpscm_make_breakpoint_smob): Initialize new members.
1754 (gdbscm_create_breakpoint_x): Split into two ...
1755 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
1756 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
1757 (scheme_function breakpoint_functions): Update.
1758 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
1759 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
1760 register-breakpoint!.
1762 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
1765 * mem-break.c (z_type_supported): Return zero if
1766 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
1768 2014-06-04 Tom Tromey <tromey@redhat.com>
1770 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
1771 value_from_contents_and_address_unresolved.
1772 (ada_template_to_fixed_record_type_1): Likewise.
1773 (ada_which_variant_applies): Likewise.
1774 * value.h (value_from_contents_and_address_unresolved): Declare.
1775 * value.c (value_from_contents_and_address_unresolved): New
1777 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
1778 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
1779 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
1781 2014-06-04 Tom Tromey <tromey@redhat.com>
1783 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
1785 2014-06-04 Tom Tromey <tromey@redhat.com>
1787 * procfs.c (procfs_attach): Make "args" const.
1788 * windows-nat.c (windows_attach): Make "args" const.
1789 * nto-procfs.c (procfs_attach): Make "args" const.
1790 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
1791 * go32-nat.c (go32_attach): Make "args" const.
1792 * gnu-nat.c (gnu_attach): Make "args" const.
1793 * darwin-nat.c (darwin_attach): Make "args" const.
1794 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
1795 * linux-nat.c (linux_nat_attach): Make "args" const.
1796 * remote.c (extended_remote_attach_1, extended_remote_attach):
1798 * target.h (struct target_ops) <to_attach>: Make "args" const.
1799 (find_default_attach): Likewise.
1800 * utils.c (parse_pid_to_attach): Make "args" const.
1801 * utils.h (parse_pid_to_attach): Update.
1803 2014-06-04 Tom Tromey <tromey@redhat.com>
1805 * target-delegates.c: Rebuild.
1806 * target.c (default_thread_address_space): New function.
1807 (target_thread_address_space): Simplify.
1808 * target.h (struct target_ops) <to_thread_address_space>: Add
1809 TARGET_DEFAULT_FUNC.
1811 2014-06-04 Doug Evans <xdje42@gmail.com>
1813 * guile/scm-type.c (type_smob): Remove duplicate typedef.
1815 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
1817 * record-btrace.c: Include event-loop.h and inf-loop.h.
1818 (record_btrace_resume_exec_dir)
1819 (record_btrace_async_inferior_event_handler)
1820 (record_btrace_handle_async_inferior_event): New.
1821 (record_btrace_open): Create async event handler.
1822 (record_btrace_close): Delete async event handler.
1823 (record_btrace_resume): Set record_btrace_resume_exec_dir,
1824 Mark async event handler.
1825 (record_btrace_execution_direction): New.
1826 (init_record_btrace_ops): Initialize to_execution_direction.
1828 2014-06-03 Doug Evans <xdje42@gmail.com>
1830 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
1831 (gdbscm_make_parameter): Ditto.
1833 2014-06-03 Doug Evans <dje@google.com>
1835 * exec.c (exec_close_1): Call clear_section_table instead of
1836 resize_section_table.
1837 (clear_section_table): New function.
1838 (resize_section_table): Make static. Rename arg num_added to
1840 * exec.h (clear_section_table): Declare.
1841 (resize_section_table): Delete.
1842 * progspace.c (release_program_space): Call clear_section_table
1843 instead of resize_section_table.
1845 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
1847 * NEWS (Python Scripting): Add entry about the new xmethods
1850 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
1852 * python/py-xmethods.c: New file.
1853 * python/py-objfile.c (objfile_object): New field 'xmethods'.
1854 (objfpy_dealloc): XDECREF on the new xmethods field.
1855 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
1857 (objfpy_get_xmethods): New function.
1858 (objfile_getset): New entry 'xmethods'.
1859 * python/py-progspace.c (pspace_object): New field 'xmethods'.
1860 (pspy_dealloc): XDECREF on the new xmethods field.
1861 (pspy_new, pspace_to_pspace_object): Initialize xmethods
1863 (pspy_get_xmethods): New function.
1864 (pspace_getset): New entry 'xmethods'.
1865 * python/python-internal.h: Add declarations for new functions.
1866 * python/python.c (_initialize_python): Invoke
1867 gdbpy_initialize_xmethods.
1868 * python/lib/gdb/__init__.py (xmethods): New
1870 * python/lib/gdb/xmethod.py: New file.
1871 * python/lib/gdb/command/xmethods.py: New file.
1873 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
1875 * eval.c (evaluate_subexp_standard): Call the xmethod if the
1876 best match method returned by find_overload_match is an xmethod.
1877 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
1878 the best matching operator returned by find_overload_match is an
1880 * valops.c: #include "extension.h".
1881 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
1882 Return void. The list of matching source methods is returned in
1883 "fn_list" and a vector of matching debug method workers is
1884 returned in "xm_worker_vec". Update all callers.
1885 (value_find_oload_method_list): Likewise.
1886 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
1887 non-NULL, then the index of the best matching method in this
1888 vector is returned. Update all callers.
1889 (find_overload_match): Include xmethods while performing overload
1892 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
1894 * defs.h (enum lval_type): New enumerator "lval_xcallable".
1895 * extension-priv.h (struct extension_language_ops): Add the
1897 * extension.c (new_xmethod_worker, clone_xmethod_worker,
1898 get_matching_xmethod_workers, get_xmethod_argtypes,
1899 invoke_xmethod, free_xmethod_worker,
1900 free_xmethod_worker_vec): New functions.
1901 * extension.h: #include "common/vec.h".
1902 New function declarations.
1903 (struct xmethod_worker): New struct.
1904 (VEC (xmethod_worker_ptr)): New vector type.
1905 (xmethod_worker_ptr): New typedef.
1906 (xmethod_worker_vec): Likewise.
1907 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
1909 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
1910 (struct builtin_type): New field "xmethod".
1911 * valarith.c (value_ptradd): Assert that the value argument is not
1913 * valops.c (value_must_coerce_to_target): Return 0 for
1914 lval_xcallable values.
1915 * value.c (struct value): New field XM_WORKER in the field
1917 (value_address, value_raw_address): Return 0 for lval_xcallable
1919 (set_value_address): Assert that the value is not an
1921 (value_free): Free the associated xmethod worker when freeing
1922 lval_xcallable values.
1923 (set_value_component_location): Assert that the WHOLE value is not
1925 (value_of_xmethod, call_xmethod): New functions.
1926 * value.h: Declare "struct xmethod_worker".
1927 Declare new functions value_of_xmethod, call_xmethod.
1929 2014-06-03 Joel Brobecker <brobecker@adacore.com>
1930 Pedro Alves <palves@redhat.com>
1932 PR breakpoints/17000
1933 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
1934 New function, extracted from software_breakpoint_inserted_here_p.
1935 (software_breakpoint_inserted_here_p): Replace factored out code
1936 by call to find_non_raw_software_breakpoint_inserted_here.
1937 (bp_target_info_copy_insertion_state): New function.
1938 (bkpt_insert_location): Handle the case of a single-step
1939 breakpoint already inserted at the same address.
1940 (bkpt_remove_location): Handle the case of a single-step
1941 breakpoint still inserted at the same address.
1942 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
1943 breakpoint already inserted at the same address.
1944 (deprecated_remove_raw_breakpoint): Handle the case of a
1945 non-raw breakpoint still inserted at the same address.
1946 (find_single_step_breakpoint): New function, extracted from
1947 single_step_breakpoint_inserted_here_p.
1948 (find_single_step_breakpoint): New function,
1949 factored out from single_step_breakpoint_inserted_here_p.
1950 (single_step_breakpoint_inserted_here_p): Reimplement.
1952 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
1954 Pushed by Joel Brobecker <brobecker@adacore.com>
1955 * source.c (show_substitute_path_command): Fix display of matching
1958 2014-06-03 Gary Benson <gbenson@redhat.com>
1960 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
1962 2014-06-02 Doug Evans <xdje42@gmail.com>
1964 Add parameter support for Guile.
1965 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
1966 (SUBDIR_GUILE_SRCS): Add scm-param.c.
1967 (scm-param.o): New rule.
1968 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
1969 (gdbscm_misc_error): Declare.
1970 (gdbscm_canonicalize_command_name): Declare.
1971 (gdbscm_scm_to_host_string): Declare.
1972 (gdbscm_scm_from_host_string): Declare.
1973 (gdbscm_initialize_parameters): Declare.
1974 * guile/guile.c (initialize_gdb_module): Call
1975 gdbscm_initialize_parameters.
1976 * guile/lib/gdb.scm: Export parameter symbols.
1977 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
1978 cmdscm_canonicalize_name and made public. All callers updated.
1979 * guile/scm-exception.c (gdbscm_misc_error): New function.
1980 * guile/scm-param.c: New file.
1981 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
1982 (gdbscm_scm_to_host_string): New function.
1983 (gdbscm_scm_from_host_string): New function.
1984 * scm-utils.c (gdbscm_gc_dup_argv): New function.
1986 2014-06-02 Doug Evans <xdje42@gmail.com>
1988 Add command support for Guile.
1989 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
1990 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
1991 (scm-cmd.o): New rule.
1992 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
1993 (gdbscm_user_error_p): Declare.
1994 (gdbscm_parse_command_name): Declare.
1995 (gdbscm_valid_command_class_p): Declare.
1996 (gdbscm_initialize_commands): Declare.
1997 * guile/guile.c (initialize_gdb_module): Call
1998 gdbscm_initialize_commands.
1999 * guile/lib/gdb.scm: Export command symbols.
2000 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
2001 (throw-user-error): New function.
2002 * guile/scm-cmd.c: New file.
2003 * guile/scm-exception.c (user_error_symbol): New static global.
2004 (gdbscm_user_error_p): New function.
2005 (gdbscm_initialize_exceptions): Set user_error_symbol.
2006 * scm-utils.c (gdbscm_gc_xstrdup): New function.
2008 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
2010 * top.c (command_loop): Handle comments here...
2011 (command_line_input): ... not here.
2013 2014-06-02 Doug Evans <xdje42@gmail.com>
2015 Add progspace support for Guile.
2016 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
2017 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
2018 (scm-progspace.o): New rule.
2019 * guile/guile-internal.h (pspace_smob): New typedef.
2020 (psscm_pspace_smob_pretty_printers): Declare.
2021 (psscm_pspace_smob_from_pspace): Declare.
2022 (psscm_scm_from_pspace): Declare.
2023 * guile/guile.c (initialize_gdb_module): Call
2024 gdbscm_initialize_pspaces.
2025 * guile/lib/gdb.scm: Export progspace symbols.
2026 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
2028 (append-pretty-printer!): Ditto.
2029 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
2031 * guile/scm-progspace.c: New file.
2033 2014-06-03 Alan Modra <amodra@gmail.com>
2035 * ppc64-tdep.c (ppc64_standard_linkage8): New.
2036 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
2038 2014-06-02 Doug Evans <dje@google.com>
2040 Add support for skeletonless type units.
2041 * dwarf2read.c (struct dwarf2_per_objfile): New member
2042 n_allocated_type_units.
2043 (struct dwarf2_per_objfile) <tu_stats>: New member
2044 nr_all_type_units_reallocs.
2045 (create_signatured_type_table_from_index): Initialize
2046 n_allocated_type_units
2047 (create_all_type_units): Ditto.
2048 (add_type_unit): Move up in file. New arg slot.
2049 All callers updated. Increase space for all_type_units more
2051 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
2052 (lookup_dwo_signatured_type): Handle skeletonless TUs.
2053 (lookup_dwp_signatured_type): Ditto.
2054 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
2055 All callers updated.
2056 (build_type_psymtabs_1): Leave type_unit_groups as
2057 NULL if no TUs present.
2058 (print_tu_stats): New function.
2059 (process_skeletonless_type_unit): New function.
2060 (process_dwo_file_for_skeletonless_type_units): New
2062 (process_skeletonless_type_units): New function.
2063 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
2064 Call print tu_stats if debugging enabled.
2066 2014-06-02 Pedro Alves <palves@redhat.com>
2068 * breakpoint.c (build_target_command_list): Don't build a command
2069 list if we have any duplicate location that isn't a dprintf.
2071 2014-06-02 Pedro Alves <palves@redhat.com>
2073 * breakpoint.c (dprintf_breakpoint_hit): New function.
2074 (initialize_breakpoint_ops): Install it as dprintf's
2075 breakpoint_hit method.
2077 2014-06-02 Joel Brobecker <brobecker@adacore.com>
2079 * source.c (substitute_path_rule_matches): Simplify using
2080 filename_ncmp instead of FILENAME_CMP.
2082 2014-06-02 Joel Brobecker <brobecker@adacore.com>
2084 * source.c (substitute_path_rule_matches): Remove trailing spaces.
2086 2014-06-01 Ludovic Courtès <ludo@gnu.org>
2088 * configure.ac: When Guile is available, check for the
2089 availability of 'scm_new_smob'.
2090 * configure, config.h.in: Regenerate.
2091 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
2094 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
2096 * frame.c (struct frame_info): Add stop_string field.
2097 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
2098 (get_prev_frame_always): Old content moved into
2099 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
2100 TRY_CATCH, handle MEMORY_ERROR exceptions.
2101 (frame_stop_reason_string): New function definition.
2102 * frame.h (unwind_stop_reason_to_string): Extend comment to
2103 mention frame_stop_reason_string.
2104 (frame_stop_reason_string): New function declaration.
2105 * stack.c (frame_info): Switch to frame_stop_reason_string.
2106 (backtrace_command_1): Switch to frame_stop_reason_string.
2107 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
2108 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
2109 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
2111 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
2113 * frame.c (frame_stop_reason_string): Rename to ...
2114 (unwind_stop_reason_to_string): this.
2115 * frame.h (frame_stop_reason_string): Rename to ...
2116 (unwind_stop_reason_to_string): this.
2117 * stack.c (frame_info): Update call to frame_stop_reason_string.
2118 (backtrace_command_1): Likewise.
2119 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
2120 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
2122 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
2124 * frame.c (remove_prev_frame): New function.
2125 (get_prev_frame_if_no_cycle): Create / discard cleanup using
2128 2014-05-29 Pedro Alves <palves@redhat.com>
2130 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
2131 and make it const. When a single-step decays to a continue,
2132 clear 'step', not 'hw_step'. Pass whether the caller wanted
2133 to step to user_visible_resume_ptid, not what we ask the
2136 2014-05-29 Pedro Alves <palves@redhat.com>
2138 * infrun.c (process_event_stop_test, handle_step_into_function)
2139 (handle_step_into_function_backward): Adjust.
2140 Don't set the even thread's stop_step and call stop_waiting before
2141 calling end_stepping_range. Instead do that ...
2142 (end_stepping_range): ... here. Take an ecs pointer parameter.
2144 2014-05-29 Pedro Alves <palves@redhat.com>
2146 * infrun.c (stop_stepping): Rename to ...
2147 (stop_waiting): ... this.
2148 (proceed): Update comment.
2149 (process_event_stop_test, handle_inferior_event)
2150 (handle_signal_stop, handle_step_into_function)
2151 (handle_step_into_function_backward): Update.
2153 2014-05-29 Pedro Alves <palves@redhat.com>
2155 * infcall.c (run_inferior_call): Don't check whether the current
2156 thread is running after the proceed call.
2158 2014-05-29 Pedro Alves <palves@redhat.com>
2159 Tom Tromey <tromey@redhat.com>
2161 * NEWS: Mention "maint set target-async", "set mi-async", and that
2162 background execution commands are now always available.
2163 * target.h (target_async_permitted): Update comment.
2164 * target.c (target_async_permitted, target_async_permitted_1):
2166 (set_target_async_command): Rename to ...
2167 (maint_set_target_async_command): ... this.
2168 (show_target_async_command): Rename to ...
2169 (maint_show_target_async_command): ... this.
2170 (_initialize_target): Adjust.
2171 * infcmd.c (prepare_execution_command): Make extern.
2172 * inferior.h (prepare_execution_command): Declare.
2173 * infrun.c (set_observer_mode): Leave target async alone.
2174 * mi/mi-interp.c (mi_interpreter_init): Install
2175 mi_on_sync_execution_done as sync_execution_done observer.
2176 (mi_on_sync_execution_done): New function.
2177 (mi_execute_command_input_handler): Don't print the prompt if we
2178 just started a synchronous command with an async target.
2179 (mi_on_resume): Check sync_execution before printing prompt.
2180 * mi/mi-main.h (mi_async_p): Declare.
2181 * mi/mi-main.c: Include gdbcmd.h.
2182 (mi_async_p): New function.
2183 (mi_async, mi_async_1): New globals.
2184 (set_mi_async_command, show_mi_async_command, mi_async): New
2186 (exec_continue): Call prepare_execution_command.
2187 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
2188 (mi_execute_async_cli_command): Use mi_async_p.
2189 (_initialize_mi_main): Install "set mi-async". Make
2190 "target-async" a deprecated alias.
2192 2014-05-29 Pedro Alves <palves@redhat.com>
2194 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
2195 (_initialize_cli_interp): Adjust.
2196 * event-loop.c: Include "observer.h".
2197 (start_event_loop): Notify 'command_error' observers instead of
2198 calling display_gdb_prompt. Remove FIXME comment.
2199 * event-top.c (display_gdb_prompt): Remove call into the
2201 * inf-loop.c: Include "observer.h".
2202 (inferior_event_handler): Notify 'command_error' observers instead
2203 of calling display_gdb_prompt.
2204 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
2205 observers instead of calling display_gdb_prompt.
2206 * interps.c (interp_set): Don't call display_gdb_prompt.
2207 (current_interp_display_prompt_p): Delete.
2208 * interps.h (interp_prompt_p): Delete declaration.
2209 (interp_prompt_p_ftype): Delete.
2210 (struct interp_procs) <prompt_proc_p>: Delete field.
2211 (current_interp_display_prompt_p): Delete declaration.
2212 * mi-interp.c (mi_interpreter_prompt_p): Delete.
2213 (_initialize_mi_interp): Adjust.
2214 * tui-interp.c (tui_init): Install 'sync_execution_done' and
2215 'command_error' observers.
2216 (tui_on_sync_execution_done, tui_on_command_error): New
2218 (tui_display_prompt_p): Delete.
2219 (_initialize_tui_interp): Adjust.
2221 2014-05-29 Pedro Alves <palves@redhat.com>
2224 * cli/cli-interp.c: Include infrun.h and observer.h.
2225 (cli_uiout, cli_interp): New globals.
2226 (cli_on_signal_received, cli_on_end_stepping_range)
2227 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
2229 (cli_interpreter_init): Install them as 'end_stepping_range',
2230 'signal_received' 'signal_exited', 'exited' and 'no_history'
2232 (_initialize_cli_interp): Remove cli_interp local.
2233 * infrun.c (handle_inferior_event): Call the several stop reason
2234 observers instead of printing the stop reason directly.
2235 (end_stepping_range): New function.
2236 (print_end_stepping_range_reason, print_signal_exited_reason)
2237 (print_exited_reason, print_signal_received_reason)
2238 (print_no_history_reason): Make static, and add an uiout
2239 parameter. Print to that instead of to CURRENT_UIOUT.
2240 * infrun.h (print_end_stepping_range_reason)
2241 (print_signal_exited_reason, print_exited_reason)
2242 (print_signal_received_reason print_no_history_reason): New
2244 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
2246 <cli_uiout>: New field.
2247 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
2248 uiout for CLI output. Install 'signal_received',
2249 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
2251 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
2252 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
2253 (mi_on_no_history): New functions.
2254 (ui_out_free_cleanup): Delete function.
2255 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
2256 instead use the one already stored in the MI interpreter data.
2257 (mi_ui_out): Adjust.
2258 * tui/tui-interp.c: Include infrun.h and observer.h.
2259 (tui_interp): New global.
2260 (tui_on_signal_received, tui_on_end_stepping_range)
2261 (tui_on_signal_exited, tui_on_exited)
2262 (tui_on_no_history): New functions.
2263 (tui_init): Install them as 'end_stepping_range',
2264 'signal_received' 'signal_exited', 'exited' and 'no_history'
2266 (_initialize_tui_interp): Delete tui_interp local.
2268 2014-05-29 Pedro Alves <palves@redhat.com>
2271 * linux-nat.c (linux_nat_resume_callback): Rename the second
2272 parameter to 'except'. Skip LP if it points to EXCEPT.
2273 (linux_nat_resume): Don't mark the event lwp as not stopped
2274 before resuming sibling lwps. Instead ask
2275 linux_nat_resume_callback to skip the event lwp. Mark it as not
2276 stopped after actually resuming it.
2277 (linux_handle_syscall_trap): Mark the lwp as not stopped after
2279 (wait_lwp): Mark the lwp as stopped here.
2280 (stop_wait_callback): Mark the lwp as not stopped right after
2281 resuming it. Don't mark lwps as stopped here.
2282 (linux_nat_filter_event): Mark the lwp as stopped earlier.
2283 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
2285 2014-05-29 Pedro Alves <palves@redhat.com>
2288 * infrun.c (resume): Determine how much to resume depending on
2289 whether the caller wanted a step, not whether we can hardware step
2290 the target. Mark all threads that we intend to run as running,
2291 unless we're calling an inferior function.
2292 (normal_stop): If the thread is running an infcall, don't finish
2294 * target.c (target_resume): Don't mark threads as running here.
2296 2014-05-28 Joel Brobecker <brobecker@adacore.com>
2298 * serial.c (_initialize_serial): Remove support for
2299 the "set remotebaud" and "show remotebaud" commands.
2300 * NEWS: Add entry documenting the removal of that command.
2302 2014-05-28 Yao Qi <yao@codesourcery.com>
2304 * charset.c: Fix typo in comments.
2306 2014-05-27 Gary Benson <gbenson@redhat.com>
2308 * utils.c (internal_vproblem): Prompt for a bug report.
2310 2014-05-26 Andy Wingo <wingo@igalia.com>
2312 * guile/scm-arch.c (arscm_mark_arch_smob):
2313 * guile/scm-block.c (bkscm_mark_block_smob)
2314 (bkscm_mark_block_syms_progress_smob):
2315 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
2316 * guile/scm-exception.c (exscm_mark_exception_smob):
2317 * guile/scm-frame.c (frscm_mark_frame_smob):
2318 * guile/scm-iterator.c (itscm_mark_iterator_smob):
2319 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
2320 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
2321 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
2322 (ppscm_mark_pretty_printer_worker_smob):
2323 * guile/scm-symbol.c (syscm_mark_symbol_smob):
2324 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
2325 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
2326 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
2328 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
2331 2014-05-26 Andy Wingo <wingo@igalia.com>
2332 Doug Evans <xdje42@gmail.com>
2334 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
2335 empty_base_class. All uses updated.
2336 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
2337 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
2339 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
2340 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
2341 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
2342 (gdbscm_gsmob_has_property_p, add_property_name)
2343 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
2344 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
2345 (gdb-object-has-property?, gdb-object-properties): Remove.
2346 (gdb-object-kind): Renamed from gsmob-kind.
2348 2014-05-26 Andy Wingo <wingo@igalia.com>
2350 * configure.ac (try_guile_versions): Allow building with guile 2.2.
2351 * configure: Regenerate.
2353 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
2355 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
2357 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
2359 * record-btrace.c (record_btrace_allow_memory_access): Remove.
2360 (replay_memory_access_read_only, replay_memory_access_read_write)
2361 (replay_memory_access_types, replay_memory_access)
2362 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
2363 (cmd_set_record_btrace, cmd_show_record_btrace)
2364 (cmd_show_replay_memory_access): New.
2365 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
2366 (record_btrace_remove_breakpoint): Replace
2367 record_btrace_allow_memory_access with replay_memory_access.
2368 (_initialize_record_btrace): Add commands.
2369 * NEWS: Announce it.
2371 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2373 * aarch64-linux-nat.c (asm/ptrace.h): Include.
2375 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2377 * MAINTAINERS (Write After Approval): Move self back from
2380 2014-05-22 Pedro Alves <palves@redhat.com>
2382 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
2383 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
2384 (disable_randomization, enum exec_direction_kind)
2385 (execution_direction, stop_registers, start_remote)
2386 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
2387 (wait_for_inferior, normal_stop, get_last_target_status)
2388 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
2389 (insert_step_resume_breakpoint_at_sal)
2390 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
2391 (set_step_info, print_stop_event, signal_stop_state)
2392 (signal_print_state, signal_pass_state, signal_stop_update)
2393 (signal_print_update, signal_pass_update)
2394 (update_signals_program_target, clear_exit_convenience_vars)
2395 (displaced_step_dump_bytes, update_observer_mode)
2396 (signal_catch_update, gdb_signal_from_command): Move
2398 * infrun.h: ... to this new file.
2399 * amd64-tdep.c: Include infrun.h.
2400 * annotate.c: Include infrun.h.
2401 * arch-utils.c: Include infrun.h.
2402 * arm-linux-tdep.c: Include infrun.h.
2403 * arm-tdep.c: Include infrun.h.
2404 * break-catch-sig.c: Include infrun.h.
2405 * breakpoint.c: Include infrun.h.
2406 * common/agent.c: Include infrun.h instead of inferior.h.
2407 * corelow.c: Include infrun.h.
2408 * event-top.c: Include infrun.h.
2409 * go32-nat.c: Include infrun.h.
2410 * i386-tdep.c: Include infrun.h.
2411 * inf-loop.c: Include infrun.h.
2412 * infcall.c: Include infrun.h.
2413 * infcmd.c: Include infrun.h.
2414 * infrun.c: Include infrun.h.
2415 * linux-fork.c: Include infrun.h.
2416 * linux-nat.c: Include infrun.h.
2417 * linux-thread-db.c: Include infrun.h.
2418 * monitor.c: Include infrun.h.
2419 * nto-tdep.c: Include infrun.h.
2420 * procfs.c: Include infrun.h.
2421 * record-btrace.c: Include infrun.h.
2422 * record-full.c: Include infrun.h.
2423 * remote-m32r-sdi.c: Include infrun.h.
2424 * remote-mips.c: Include infrun.h.
2425 * remote-notif.c: Include infrun.h.
2426 * remote-sim.c: Include infrun.h.
2427 * remote.c: Include infrun.h.
2428 * reverse.c: Include infrun.h.
2429 * rs6000-tdep.c: Include infrun.h.
2430 * s390-linux-tdep.c: Include infrun.h.
2431 * solib-irix.c: Include infrun.h.
2432 * solib-osf.c: Include infrun.h.
2433 * solib-svr4.c: Include infrun.h.
2434 * target.c: Include infrun.h.
2435 * top.c: Include infrun.h.
2436 * windows-nat.c: Include infrun.h.
2437 * mi/mi-interp.c: Include infrun.h.
2438 * mi/mi-main.c: Include infrun.h.
2439 * python/py-threadevent.c: Include infrun.h.
2441 2014-05-22 Pedro Alves <palves@redhat.com>
2443 * infrun.c (handle_inferior_event): Store the exit code for
2444 --return-child-result here, instead of ...
2445 (print_exited_reason): ... here.
2447 2014-05-21 Pedro Alves <palves@redhat.com>
2450 * gdbthread.h (struct thread_control_state): New field
2452 * infrun.c (follow_fork): Copy the new thread control field to the
2454 (clear_proceed_status_thread): Clear the new thread control field.
2455 (proceed): Set the new thread control field.
2456 * interps.h (command_interp): Declare.
2457 * interps.c (command_interpreter): New global.
2458 (command_interp): New function.
2459 (interp_exec): Set `command_interpreter' while here.
2460 * cli-out.c (cli_uiout_dtor): New function.
2461 (cli_ui_out_impl): Install it.
2462 * mi/mi-interp.c: Include cli-out.h.
2463 (mi_cmd_interpreter_exec): Add comment.
2464 (restore_current_uiout_cleanup): New function.
2465 (ui_out_free_cleanup): New function.
2466 (mi_on_normal_stop): If finishing an execution command started by
2467 a CLI command, or any kind of breakpoint-like event triggered,
2468 print the stop event to the output (CLI) stream.
2469 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
2471 2014-05-21 Pedro Alves <palves@redhat.com>
2473 * cli/cli-cmds.c (list_command): Handle the first "list" after the
2474 current source line having changed.
2475 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
2476 * infrun.c (normal_stop): Adjust call to
2477 set_current_sal_from_frame.
2478 * source.c (clear_lines_listed_range): New function.
2479 (set_current_source_symtab_and_line, identify_source_line): Clear
2480 the lines listed range.
2481 (line_info): Handle the first "info line" after the current source
2482 line having changed.
2483 * stack.c (print_stack_frame): Remove center handling.
2484 (set_current_sal_from_frame): Remove 'center' parameter. Don't
2487 2014-05-21 Pedro Alves <palves@redhat.com>
2489 * inf-child.c (inf_child_mourn_inferior): New function.
2490 * inf-child.h (inf_child_mourn_inferior): New declaration.
2491 * darwin-nat.c (darwin_mourn_inferior): Use
2492 inf_child_mourn_inferior.
2493 * gnu-nat.c (gnu_mourn_inferior): Likewise.
2494 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
2495 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
2496 * nto-procfs.c (procfs_mourn_inferior): Likewise.
2497 * windows-nat.c (windows_mourn_inferior): Likewise.
2499 2014-05-21 Doug Evans <xdje42@gmail.com>
2501 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
2503 2014-05-21 Doug Evans <xdje42@gmail.com>
2505 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
2506 (gdbscm_out_of_range_error): Ditto.
2507 (gdbscm_memory_error): Ditto.
2508 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
2509 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
2510 (gdbscm_out_of_range_error): Update.
2511 (gdbscm_memory_error): Update.
2512 (gdbscm_scm_to_target_string_unsafe): Delete.
2514 2014-05-21 Pedro Alves <palves@redhat.com>
2516 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
2518 (inf_child_open_target): New function.
2519 (inf_child_open): Use inf_child_open_target to push the target
2520 instead of erroring out.
2521 (inf_child_disconnect, inf_child_close)
2522 (inf_child_maybe_unpush_target): New functions.
2523 (inf_child_target): Install inf_child_disconnect and
2524 inf_child_close. Store a pointer to the returned object.
2525 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
2527 * target.c (auto_connect_native_target): New global.
2528 (show_default_run_target): New function.
2529 (find_default_run_target): Return NULL if automatically connecting
2530 to the native target is disabled.
2531 (_initialize_target): Install set/show auto-connect-native-target.
2532 * NEWS: Mention "set auto-connect-native-target", and "target
2534 * linux-nat.c (super_close): New global.
2535 (linux_nat_close): Call super_close.
2536 (linux_nat_add_target): Store a pointer to the base class's
2538 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
2539 inf_child_maybe_unpush.
2540 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
2542 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
2543 the inferior. Use inf_child_maybe_unpush_target.
2544 (inf_ttrace_attach): Don't push the target if it is already
2546 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
2547 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
2548 after mourning the inferior. Use inf_child_maybe_unpush_target.
2549 (darwin_attach_pid): Don't push the target if it is already
2551 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
2552 mourning the inferior. Use inf_child_maybe_unpush_target.
2553 (gnu_detach): Use inf_child_maybe_unpush_target.
2554 * go32-nat.c (go32_create_inferior): Don't push the target if it
2556 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
2557 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
2558 (procfs_open): Rename to ...
2559 (procfs_open_1): ... this. Add target_ops parameter. Adjust
2560 comments. Can target_preopen before changing node. Call
2561 inf_child_open_target to push the target explicitly.
2562 (procfs_attach): Don't push the target if it is already pushed.
2563 (procfs_detach): Use inf_child_maybe_unpush_target.
2564 (procfs_create_inferior): Don't push the target if it is already
2566 (nto_native_ops): New global.
2567 (procfs_open): Reimplement.
2568 (procfs_native_open): New function.
2569 (init_procfs_targets): Install procfs_native_open as to_open of
2570 "target native". Store a pointer to the "native" target in
2572 * procfs.c (procfs_attach): Don't push the target if it is already
2574 (procfs_detach): Use inf_child_maybe_unpush_target.
2575 (procfs_mourn_inferior): Only unpush the target after mourning the
2576 inferior. Use inf_child_maybe_unpush_target.
2577 (procfs_init_inferior): Don't push the target if it is already
2579 * windows-nat.c (do_initial_windows_stuff): Don't push the target
2580 if it is already pushed.
2582 2014-05-21 Pedro Alves <palves@redhat.com>
2584 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
2585 and "procfs" targets are now called "native" instead.
2587 2014-05-21 Pedro Alves <palves@redhat.com>
2589 * go32-nat.c (go32_open): Delete.
2590 (go32_target): Don't override the to_open method.
2592 2014-05-21 Pedro Alves <palves@redhat.com>
2594 * nto-procfs.c (procfs_can_run): New function.
2595 (nto_procfs_ops): New global.
2596 (init_procfs_targets): New, based on procfs_target. Install
2597 "target native" in addition to "target procfs".
2598 (_initialize_procfs): Call init_procfs_targets instead of adding
2601 2014-05-21 Pedro Alves <palves@redhat.com>
2603 * windows-nat.c (windows_target): Don't override to_shortname,
2604 to_longname or to_doc.
2606 2014-05-21 Pedro Alves <palves@redhat.com>
2608 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
2611 2014-05-21 Pedro Alves <palves@redhat.com>
2613 * darwin-nat.c (_initialize_darwin_inferior): Don't override
2614 to_shortname, to_longname or to_doc.
2616 2014-05-21 Pedro Alves <palves@redhat.com>
2618 * go32-nat.c (go32_target): Don't override to_shortname,
2619 to_longname or to_doc.
2621 2014-05-21 Pedro Alves <palves@redhat.com>
2623 * inf-child.c (inf_child_open): Remove mention of "child".
2624 (inf_child_target): Rename target to "native" instead of "child".
2626 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2628 * Makefile.in (SFILES): Delete "regset.c".
2629 (COMMON_OBS): Delete "regset.o".
2631 * regset.h (regset_alloc): Delete prototype.
2633 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2635 * sparc-linux-tdep.c (sparc32_linux_gregset)
2636 (sparc32_linux_fpregset): New static regset structures.
2637 (sparc32_linux_init_abi): Drop dynamic regset allocations.
2638 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
2640 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
2641 (sparc64_linux_fpregset): New static regset structures.
2642 (sparc64_linux_init_abi): Drop dynamic regset allocations.
2643 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
2644 New static regset structures.
2645 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
2646 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
2647 New static regset structures.
2648 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
2649 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
2650 New static regset structures.
2651 (sparc64obsd_init_abi): Drop dynamic regset allocations.
2652 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
2653 New static regset structures.
2654 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
2656 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2658 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
2659 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
2660 register maps ("regmaps") from "*regset" to "*regmap". Do this
2661 for all regmap types and variables.
2662 * sparc-linux-tdep.c (sparc32_linux_step_trap)
2663 (sparc32_linux_supply_core_gregset)
2664 (sparc32_linux_collect_core_gregset)
2665 (sparc32_linux_supply_core_fpregset)
2666 (sparc32_linux_collect_core_fpregset): Likewise.
2667 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
2668 (sparc_gregmap, sparc_fpregmap): ... these.
2669 (sparc_supply_gregset, sparc_collect_gregset)
2670 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
2671 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
2672 (_initialize_sparc_nat): Rename regmaps.
2673 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
2674 (sparc_gregmap, sparc_fpregmap): ... these.
2675 (sparc_supply_gregset, sparc_collect_gregset)
2676 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
2677 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
2679 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
2680 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
2682 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
2684 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
2685 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
2686 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
2688 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
2689 (sparc32_bsd_fpregset): Rename to...
2690 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
2691 (sparc32_bsd_fpregmap): ... these.
2692 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
2693 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
2694 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
2695 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
2696 (struct sparc_gregmap, struct sparc_fpregmap)
2697 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
2698 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
2699 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
2700 (sparc32_supply_regset, sparc32_collect_gregset)
2701 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
2703 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
2704 (sparc64_linux_ptrace_gregmap): ... this.
2705 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
2706 (_initialize_sparc64_linux_nat): Rename regmaps.
2707 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
2708 (sparc64_linux_core_gregmap): ... this.
2709 (sparc64_linux_supply_core_gregset)
2710 (sparc64_linux_collect_core_gregset)
2711 (sparc64_linux_supply_core_fpregset)
2712 (sparc64_linux_collect_core_fpregset): Rename regmaps.
2713 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
2714 (sparc64_sol2_fpregset): Rename to...
2715 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
2716 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
2717 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
2719 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
2720 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
2721 (sparc64_bsd_fpregset): Rename to...
2722 (struct sparc_gregmap, sparc64_sol2_gregmap)
2723 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
2724 (sparc64_bsd_fpregmap): ... these.
2725 (sparc64_supply_gregset, sparc64_collect_gregset)
2726 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
2728 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
2729 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
2730 (sparc64fbsd_gregmap): ... this.
2731 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
2732 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
2734 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
2735 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
2736 (sparc64nbsd_collect_fpregset): Likewise.
2737 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
2738 (sparc64nbsd_gregmap): ... this.
2739 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
2741 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
2742 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
2743 (sparc64obsd_gregmap): ... this.
2744 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
2746 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
2747 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
2748 (sparc32nbsd_gregmap): ... this.
2749 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
2752 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2754 * score-tdep.c (score7_linux_gregset): New static regset
2756 (score7_linux_regset_from_core_section): Remove dynamic regset
2758 (score_gdbarch_init): Drop allocation of tdep structure.
2759 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
2761 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2763 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
2765 (am33_regset_from_core_section): Remove dynamic regset
2768 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2770 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
2771 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
2773 (mips_linux_regset_from_core_section): Remove dynamic regset
2775 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
2776 'gregset64', 'fpregset', and 'fpregset64'.
2777 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
2778 deleted tdep fields.
2780 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2782 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
2784 (amd64_regset_from_core_section): Remove dynamic regset
2786 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
2788 (amd64obsd_regset_from_core_section): Remove dynamic regset
2790 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
2792 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
2793 x86-common regset supply function.
2794 * i386-tdep.c (i386_collect_gregset): Make static.
2795 (i386_gregset): New global regset structure.
2796 (i386_fpregset, i386_xstateregset): New static regset structures.
2797 (i386_regset_from_core_section): Remove dynamic regset
2799 (i386_gdbarch_init): Remove initialization of tdep fields
2800 'gregset', 'fpregset', and 'xstateregset'.
2801 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
2802 'fpregset', and 'xstateregset'.
2803 (i386_collect_gregset): Remove prototype.
2804 (i386_gregset): New declaration.
2805 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
2807 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
2810 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2812 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
2813 (arm_linux_vfpregset): New static regset structures.
2814 (arm_linux_regset_from_core_section): Remove dynamic allocation of
2816 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
2817 and 'vfpregset' fields.
2819 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2821 * aarch64-linux-tdep.c (aarch64_linux_gregset)
2822 (aarch64_linux_fpregset): New static regset structures.
2823 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
2824 of regset structures.
2825 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
2828 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2830 * regset.h (struct regset): Remove gdbarch field.
2831 * regset.c (regset_alloc): Drop initialization of gdbarch field.
2832 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
2833 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
2835 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
2836 (ppc32_linux_fpregset, ppc32_linux_vrregset)
2837 (ppc32_linux_vsxregset): Likewise.
2838 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
2839 via the regcache instead of the regset.
2840 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
2841 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
2842 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
2843 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
2846 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2848 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
2849 Constify structures.
2850 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
2851 (alphanbsd_aout_gregset): Likewise.
2852 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
2853 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
2855 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
2856 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
2858 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
2859 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
2860 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
2861 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
2862 * m88k-tdep.c (m88k_gregset): Likewise.
2863 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
2864 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
2865 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
2866 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
2867 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
2868 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
2869 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
2870 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
2871 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
2873 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
2874 * sh-tdep.h (sh_corefile_gregset): Likewise.
2875 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
2876 * vax-tdep.c (vax_gregset): Likewise.
2878 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2880 Fix TLS access for -static -pthread.
2881 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
2882 (try_thread_db_load_1): Initialize it.
2883 (thread_db_get_thread_local_address): Call it if LM is zero.
2884 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
2885 * target.h (struct target_ops) (to_get_thread_local_address): Add
2886 load_module_addr comment.
2888 2014-05-21 Pedro Alves <palves@redhat.com>
2890 * dcache.c (dcache_read_memory_partial): If reading the cache line
2891 fails, fallback to reading just the memory the caller wanted.
2893 2014-05-20 Doug Evans <dje@google.com>
2895 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
2896 instead of get_current_arch.
2898 2014-05-20 Pedro Alves <palves@redhat.com>
2900 * NEWS: Mention that compare-sections now works with all targets.
2902 * remote.c (PACKET_qCRC): New enum value.
2903 (remote_verify_memory): Don't send qCRC if the target has no
2904 execution. Use packet_support/packet_ok. If the target doesn't
2905 support the qCRC packet, fallback to a deep memory copy.
2906 (compare_sections_command): Say "target image" instead of "remote
2908 (_initialize_remote): Add PACKET_qCRC to the list of config
2909 packets that have no associated command. Extend comment.
2910 * target.c (simple_verify_memory, default_verify_memory): New
2912 * target.h (struct target_ops) <to_verify_memory>: Default to
2913 default_verify_memory.
2914 (simple_verify_memory): New declaration.
2915 * target-delegates.c: Regenerate.
2917 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
2919 * record-btrace.c (record_btrace_step_thread): Check for empty history.
2921 2014-05-20 Hui Zhu <hui@codesourcery.com>
2922 Yao Qi <yao@codesourcery.com>
2925 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
2926 and change address of sp and pc.
2928 2014-05-19 Tom Tromey <tromey@redhat.com>
2930 * gdbtypes.c (rank_function): Use XNEWVEC.
2931 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
2933 2014-05-19 Doug Evans <dje@google.com>
2935 * dwarf2read.c (build_type_psymtabs_1): Renamed from
2936 build_type_unit_groups and moved closer to only caller. Remove
2937 arguments. All references updated. Remove outdated .gdb_index
2939 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
2940 build_type_psymtabs_1.
2942 2014-05-19 Doug Evans <dje@google.com>
2944 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
2945 n_type_unit_groups, all_type_unit_groups. All uses removed.
2946 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
2947 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
2948 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
2949 (add_type_unit_group_to_table): Delete.
2951 2014-05-19 Doug Evans <dje@google.com>
2953 * eval.c (evaluate_subexp_standard): Add some comments.
2955 2014-05-17 Doug Evans <xdje42@gmail.com>
2957 * progspace.c (remove_program_space): Delete, unused.
2958 * progspace.h (remove_program_space): Ditto.
2960 2014-05-17 Doug Evans <xdje42@gmail.com>
2962 * inferior.c (prune_inferiors): Fix comment.
2963 (remove_inferior_command): Call prune_program_spaces.
2965 2014-05-16 Doug Evans <dje@google.com>
2967 New command line option -D.
2969 * main.c (set_gdb_data_directory): New function.
2970 (captured_main): Recognize -D. Flag error for --data-directory "".
2971 Call set_gdb_data_directory.
2972 (print_gdb_help): Print --data-directory, -D.
2973 * main.h (set_gdb_data_directory): Declare.
2974 * top.c (staged_gdb_datadir): New static global.
2975 (set_gdb_datadir): Call set_gdb_data_directory
2976 (show_gdb_datadir): New function.
2977 (init_main): Update init of data-directory parameter.
2979 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
2981 Import the "dirfd" gnulib module.
2982 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
2983 * gnulib/aclocal.m4: Update.
2984 * gnulib/config.in: Update.
2985 * gnulib/configure: Update.
2986 * gnulib/import/Makefile.am: Update.
2987 * gnulib/import/Makefile.in: Update.
2988 * gnulib/import/dirfd.c: New.
2989 * gnulib/import/m4/dirfd.m4: New.
2990 * gnulib/import/m4/gnulib-cache.m4: Update.
2991 * gnulib/import/m4/gnulib-comp.m4: Update.
2993 2014-05-16 Pierre Muller <muller@sourceware.org>
2994 Yao Qi <yao@codesourcery.com>
2996 * valprint.c (print_wchar): Move the code on checking whether
2997 W is a printable wide char to the default branch of switch
2998 statement below. Call wchar_printable instead of gdb_iswprint.
3000 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
3002 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
3003 ldr.w and ldrd instructions.
3005 2014-05-15 Doug Evans <dje@google.com>
3007 * dwarf2read.c (read_structure_type): Delete outdated comments.
3009 2014-05-14 Tom Tromey <tromey@redhat.com>
3011 * macrocmd.c (print_macro_definition): Reindent.
3013 2014-05-13 Doug Evans <xdje42@gmail.com>
3015 * python/py-cmd.c (cmdpy_completer): Add comment.
3016 (completers): Make const.
3018 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
3020 * infrun.c (resume): Remove should_resume (unused). Move up
3021 declaration of resume_ptid.
3023 2014-05-13 Tom Tromey <tromey@redhat.com>
3025 * language.h (unop_type_check): Remove.
3026 (binop_type_check): Don't declare.
3028 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
3030 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
3031 call to regcache_raw_collect.
3033 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
3035 * mi/mi-console.c (mi_console_raw_packet): Use the value from
3036 mi_console->quote as the quoting character.
3038 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
3040 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
3042 2014-04-29 Tom Tromey <tromey@redhat.com>
3044 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
3045 "show debug varobj".
3047 2014-05-07 Kyle McMartin <kyle@redhat.com>
3049 Pushed by Joel Brobecker <brobecker@adacore.com>.
3050 * aarch64-tdep.c (aarch64_software_single_step): New function.
3051 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
3052 with aarch64_software_single_step.
3054 2014-05-05 Joel Brobecker <brobecker@adacore.com>
3058 2014-05-05 Keith Seitz <keiths@redhat.com>
3060 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
3061 variable or history value is successfully parsed.
3063 2014-05-05 Yao Qi <yao@codesourcery.com>
3064 Pedro Alves <palves@redhat.com>
3066 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
3067 address of blocks that intersects the requested range. Trim
3068 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
3070 * ctf.c (ctf_xfer_partial): Likewise.
3072 2014-05-05 Yao Qi <yao@codesourcery.com>
3074 * printcmd.c (display_command): Remove the check to
3075 target_has_execution.
3077 2014-05-03 Mark Kettenis <kettenis@gnu.org>
3079 * ppcobsd-nat.c: Include "obsd-nat.h".
3080 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
3082 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
3084 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
3086 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
3087 and 16-bit signed and unsigned arguments. Update comment.
3088 (stap_parse_probe_arguments): Extend code to handle such
3089 arguments. Use warning instead of complaint to notify about
3090 unrecognized bitness.
3092 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
3094 PR breakpoints/16889
3095 * stap-probe.c (stap_parse_probe_arguments): Simplify
3096 check for non-prefixed probes (i.e., probes whose
3097 arguments do not start with "N@"). Always set the
3098 argument type to a sane value.
3100 2014-05-01 David Taylor <dtaylor@emc.com>
3102 * remote.c (compare_sections_command): Add -r option to compare
3103 all loadable read-only sections.
3105 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
3107 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
3108 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
3110 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
3111 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
3112 Remove unused CORE_ADDR argument. Update all callers.
3114 2014-04-29 Pedro Alves <palves@redhat.com>
3116 * remote.c (struct packet_config) <detect>: Extend comment.
3117 (add_packet_config_cmd): Don't set the config's detect or support
3119 (init_all_packet_configs): Also initialize the config's 'detect'
3121 (reset_all_packet_configs_support): New function.
3122 (remote_open_1): Call reset_all_packet_configs_support instead of
3123 init_all_packet_configs.
3124 (_initialize_remote): Initialize all packet configs. Assert that
3125 all packets have an associated command, except a few known
3128 2014-04-28 Joel Brobecker <brobecker@adacore.com>
3130 * dwarf2read.c (read_subrange_type): Handle dynamic
3131 DW_AT_lower_bound attributes.
3133 2014-04-28 Joel Brobecker <brobecker@adacore.com>
3135 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
3136 dynamic bounds before computing its upper bound.
3137 (ada_discrete_type_low_bound): Same as above with the lower bound.
3139 2014-04-28 Joel Brobecker <brobecker@adacore.com>
3141 * dwarf2read.c (is_dynamic_type): Return true for dynamic
3142 range types. Adjust the array handling implementation to
3143 take advantage of this change.
3144 (resolve_dynamic_range): New function, mostly extracted from
3145 resolve_dynamic_bounds.
3146 (resolve_dynamic_array): New function, mostly extracted from
3147 resolve_dynamic_bounds.
3148 (resolve_dynamic_bounds): Delete.
3149 (resolve_dynamic_type): Reimplement. Add handling of
3150 TYPE_CODE_RANGE types.
3152 2014-04-28 Joel Brobecker <brobecker@adacore.com>
3154 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
3155 handling of parallel ___XA types.
3157 2014-04-28 Joel Brobecker <brobecker@adacore.com>
3159 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
3160 unnecessary second call to static_unwrap_type.
3162 2014-04-27 Hui Zhu <hui@codesourcery.com>
3164 * stack.c (print_frame_info): Call do_gdb_disassembly with
3165 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
3167 2014-04-26 Doug Evans <xdje42@gmail.com>
3169 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
3171 2014-04-25 Pedro Alves <palves@redhat.com>
3174 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
3175 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
3176 and newline from built string.
3177 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
3178 (linux_ptrace_attach_fail_reason): ... this.
3179 * linux-nat.c (linux_nat_attach): Adjust to use
3180 linux_ptrace_attach_fail_reason.
3182 2014-04-25 Pedro Alves <palves@redhat.com>
3184 * remote.c (struct remote_state): Remove multi_process_aware,
3185 non_stop_aware, cond_tracepoints, cond_breakpoints,
3186 breakpoint_commands, fast_tracepoints, static_tracepoints,
3187 install_in_trace, disconnected_tracing,
3188 enable_disable_tracepoints, string_tracing, and
3189 augmented_libraries_svr4_read fields.
3190 (remote_multi_process_p): Move further below in the file.
3191 (struct packet_config): Add comments.
3192 (update_packet_config): Delete function.
3193 (show_packet_config_cmd): Use packet_config_support.
3194 (add_packet_config_cmd): Use NULL as set callback.
3195 (packet_ok): "set remote foo-packet"-style commands no longer
3196 change config->supported -- adjust.
3197 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
3198 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
3199 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
3200 (PACKET_QNonStop, PACKET_multiprocess_feature)
3201 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
3202 (PACKET_DisconnectedTracing_feature)
3203 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
3204 (set_remote_protocol_packet_cmd): Delete function.
3205 (packet_config_support, packet_support): New functions.
3206 (set_remote_protocol_Z_packet_cmd): Don't call
3207 update_packet_config.
3208 (remote_query_attached, remote_pass_signals)
3209 (remote_program_signals, remote_threads_info)
3210 (remote_threads_extra_info, remote_start_remote): Use
3212 (remote_start_remote): Use packet_config_support and
3214 (init_all_packet_configs): Set all packets to unknown support,
3215 instead of calling update_packet_config.
3216 (remote_check_symbols): Use packet_support.
3217 (remote_supported_packet): Unconditionally set the packet config's
3219 (remote_multi_process_feature, remote_non_stop_feature)
3220 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
3221 (remote_breakpoint_commands_feature)
3222 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
3223 (remote_install_in_trace_feature)
3224 (remote_disconnected_tracing_feature)
3225 (remote_enable_disable_tracepoint_feature)
3226 (remote_string_tracing_feature)
3227 (remote_augmented_libraries_svr4_read_feature): Delete functions.
3228 (remote_protocol_features): Adjust to use remote_supported_packet
3229 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
3230 "ConditionalTracepoints", "ConditionalBreakpoints",
3231 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
3232 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
3233 "EnableDisableTracepoints", and "tracenz".
3234 (remote_query_supported): Use packet_support.
3235 (remote_open_1): Adjust.
3236 (extended_remote_attach_1): Use packet_support. Switch on the
3237 result of packet_ok instead of checking whether the packet ended
3239 (remote_vcont_resume): Use packet_support.
3240 (remote_resume, remote_stop_ns, fetch_register_using_p)
3241 (remote_prepare_to_store, store_register_using_P)
3242 (check_binary_download, remote_write_bytes): Use packet_support.
3243 (remote_vkill): Use packet_support. Switch on the result of
3244 packet_ok instead of checking whether the packet ended up
3246 (extended_remote_supports_disable_randomization): Use
3248 (extended_remote_run): Switch on the result of packet_ok instead
3249 of checking whether the packet ended up disabled.
3250 (remote_insert_breakpoint, remote_remove_breakpoint)
3251 (remote_insert_watchpoint, remote_remove_watchpoint)
3252 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
3254 (remote_search_memory): Use packet_config_support.
3255 (remote_get_thread_local_address, remote_get_tib_address)
3256 (remote_hostio_send_command, remote_can_execute_reverse): Use
3258 (remote_supports_cond_tracepoints)
3259 (remote_supports_cond_breakpoints)
3260 (remote_supports_fast_tracepoints)
3261 (remote_supports_static_tracepoints)
3262 (remote_supports_install_in_trace)
3263 (remote_supports_enable_disable_tracepoint)
3264 (remote_supports_string_tracing)
3265 (remote_can_run_breakpoint_commands): Rewrite, checking whether
3266 the packet config says the feature is enabled or disabled.
3267 (remote_download_tracepoint, remote_trace_set_readonly_regions)
3268 (remote_get_trace_status): Use packet_support.
3269 (remote_set_disconnected_tracing): Adjust to check whether the
3270 feature is enabled with packet_support.
3271 (remote_set_trace_buffer_size, remote_use_agent)
3272 (remote_can_use_agent, remote_supports_btrace): Use
3274 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
3275 Use packet_config_support.
3276 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
3277 the packet config says the feature is enabled or disabled.
3278 (set_range_stepping): Use packet_support.
3280 2014-04-25 Tom Tromey <tromey@redhat.com>
3282 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
3285 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
3287 * NEWS: Mention support for C99 variable length arrays.
3289 2014-04-24 Joel Brobecker <brobecker@adacore.com>
3291 * ada-lang.c (standard_exc): Expand introductory comment.
3293 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
3294 Walfred Tedeschi <walfred.tedeschi@intel.com>
3296 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
3298 (amd64_linux_read_description): Add code to handle AVX512 xstate
3299 mask and return respective tdesc.
3300 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
3301 and features/i386/x32-avx512-linux.c.
3302 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
3303 (amd64_linux_core_read_description): Add code to handle AVX512
3304 xstate mask and return respective tdesc.
3305 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
3306 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
3308 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
3309 (tdesc_amd64_avx512_linux): New prototype.
3310 (tdesc_x32_avx512_linux): Likewise.
3311 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
3312 features/i386/x32-avx512.c.
3313 (amd64_ymm_avx512_names): New register names for pseudo
3315 (amd64_ymmh_avx512_names): New register names for raw registers
3317 (amd64_k_names): New register names for K registers.
3318 (amd64_zmmh_names): New register names for ZMM raw registers.
3319 (amd64_zmm_names): New registers names for ZMM pseudo registers.
3320 (amd64_xmm_avx512_names): New register names for XMM16-31
3322 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
3324 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
3325 if feature is present.
3326 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
3327 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
3328 (AMD64_NUM_REGS): Adjust to new number of registers.
3329 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
3330 registers supplied via XSTATE by AVX512 registers.
3331 (i386_linux_read_description): Add case for AVX512.
3332 * i386-linux-tdep.c: Include i386-avx512-linux.c.
3333 (i386_linux_gregset_reg_offset): Add AVX512 registers.
3334 (i386_linux_core_read_description): Add case for AVX512.
3335 (i386_linux_init_abi): Install supported register note section
3337 (_initialize_i386_linux_tdep): Add call to tdesc init function for
3339 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
3340 registers to be number of zmm7h + 1.
3341 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
3342 * i386-tdep.c: Include features/i386/i386-avx512.c.
3343 (i386_zmm_names): Add ZMM pseudo register names array.
3344 (i386_zmmh_names): Add ZMM raw register names array.
3345 (i386_k_names): Add K raw register names array.
3346 (num_lower_zmm_regs): Add constant for the number of lower ZMM
3347 registers. AVX512 has 16 more ZMM registers than there are YMM
3349 (i386_zmmh_regnum_p): Add function to look up register number of
3351 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
3352 (i386_k_regnum_p): Likewise for K raw registers.
3353 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
3354 registers added by AVX512.
3355 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
3356 registers added by AVX512.
3357 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
3359 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
3360 (i386_pseudo_register_name): Add ZMM pseudo registers.
3361 (i386_zmm_type): Construct and return vector registers type for ZMM
3363 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
3364 ZMM0-31 pseudo registers and K registers.
3365 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
3366 and YMM16-31 registers from register cache.
3367 (i386_pseudo_register_write): Add code to write K, ZMM and
3369 (i386_register_reggroup_p): Add code to include/exclude AVX512
3370 registers in/from respective register groups.
3371 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
3372 registers if feature is present in xcr0.
3373 (i386_gdbarch_init): Add code to initialize AVX512 feature
3374 variables in tdep structure, wire in pseudo registers and call
3375 initialize_tdesc_i386_avx512.
3376 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
3378 (i386_regnum): Add AVX512 registers.
3379 (I386_SSE_NUM_REGS): New define for number of SSE registers.
3380 (I386_AVX_NUM_REGS): Likewise for AVX registers.
3381 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
3382 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
3384 (i386_xmm_avx512_regnum_p): New prototype for register look up.
3385 (i386_ymm_avx512_regnum_p): Likewise.
3386 (i386_k_regnum_p): Likewise.
3387 (i386_zmm_regnum_p): Likewise.
3388 (i386_zmmh_regnum_p): Likewise.
3389 * i387-tdep.c : Update year in copyright notice.
3390 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
3392 (XSAVE_YMM_AVX512_ADDR): New macro.
3393 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
3395 (XSAVE_XMM_AVX512_ADDR): New macro.
3396 (xsave_avx512_k_offset): New table for K register offsets in
3398 (XSAVE_AVX512_K_ADDR): New macro.
3399 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
3401 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
3402 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
3404 (i387_collect_xsave): Add code to collect AVX512 registers from
3406 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
3407 of XMM16-31 registers.
3408 (I387_NUM_K_REGS): New define for number of K registers.
3409 (I387_K0_REGNUM): New define for K0 register number.
3410 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
3411 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
3412 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
3414 (I387_YMM16H_REGNUM): New define for YMM16H register number.
3415 (I387_XMM16_REGNUM): New define for XMM16 register number.
3416 (I387_YMM0_REGNUM): New define for YMM0 register number.
3417 (I387_KEND_REGNUM): New define for last K register number.
3418 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
3419 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
3421 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
3423 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
3425 * features/Makefile: Add AVX512 related files.
3426 * features/i386/32bit-avx512.xml: New file.
3427 * features/i386/64bit-avx512.xml: Likewise.
3428 * features/i386/amd64-avx512-linux.c: Likewise.
3429 * features/i386/amd64-avx512-linux.xml: Likewise.
3430 * features/i386/amd64-avx512.c: Likewise.
3431 * features/i386/amd64-avx512.xml: Likewise.
3432 * features/i386/i386-avx512-linux.c: Likewise.
3433 * features/i386/i386-avx512-linux.xml: Likewise.
3434 * features/i386/i386-avx512.c: Likewise.
3435 * features/i386/i386-avx512.xml: Likewise.
3436 * features/i386/x32-avx512-linux.c: Likewise.
3437 * features/i386/x32-avx512-linux.xml: Likewise.
3438 * features/i386/x32-avx512.c: Likewise.
3439 * features/i386/x32-avx512.xml: Likewise.
3440 * regformats/i386/amd64-avx512-linux.dat: New file.
3441 * regformats/i386/amd64-avx512.dat: Likewise.
3442 * regformats/i386/i386-avx512-linux.dat: Likewise.
3443 * regformats/i386/i386-avx512.dat: Likewise.
3444 * regformats/i386/x32-avx512-linux.dat: Likewise.
3445 * regformats/i386/x32-avx512.dat: Likewise.
3446 * NEWS: Add note about new support for AVX512.
3449 2014-04-23 Pedro Alves <palves@redhat.com>
3451 * breakpoint.c (insert_bp_location): Tolerate errors if the
3452 breakpoint is set in a user-loaded objfile.
3453 (remove_breakpoint_1): Likewise. Also tolerate errors if the
3454 location is marked shlib_disabled. If the breakpoint is set in a
3455 user-loaded objfile is a GDB-side memory breakpoint, validate it
3456 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
3457 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
3459 * mem-break.c (memory_validate_breakpoint): New function.
3460 * objfiles.c (userloaded_objfile_contains_address_p): New
3462 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
3463 * target.h (memory_validate_breakpoint): New declaration.
3465 2014-04-23 Pedro Alves <palves@redhat.com>
3467 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
3468 the breakpoint is set in a shared library, only suppress
3469 errors for software breakpoints, not hardware breakpoints.
3471 2014-04-22 Pedro Alves <palves@redhat.com>
3473 * infrun.c (schedlock_applies): New function, factored out from
3474 find_thread_needs_step_over.
3475 (find_thread_needs_step_over): Use it.
3476 (switch_back_to_stepped_thread): Always clear trap_expected if the
3477 step over is finished. Return early if scheduler locking applies.
3478 Look for the stepping thread and a potential step-over thread with
3480 (currently_stepping_or_nexting_callback): Delete.
3482 2014-04-22 Nick Clifton <nickc@redhat.com>
3484 * NEWS: Mention that ARM sim now supports tracing.
3486 2014-04-22 Yao Qi <yao@codesourcery.com>
3488 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
3490 * tracefile.c (tracefile_fetch_registers): ... it. New
3492 * tracefile.h (tracefile_fetch_registers): Declare.
3493 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
3494 tracefile_fetch_registers.
3496 2014-04-19 Eli Zaretskii <eliz@gnu.org>
3499 * windows-nat.c (thread_rec): Don't display a warning when
3500 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
3501 fails for any reason, set th->suspended to -1, so that we don't
3502 try to resume such a thread. Also, don't return NULL in these
3503 cases, to avoid completely ruin the session due to "PC register is
3504 not available" error.
3505 (do_windows_fetch_inferior_registers): Check errors in
3506 GetThreadContext call.
3507 (windows_continue): Accept an additional argument KILLED; if not
3508 zero, ignore errors in the SetThreadContext call, since the
3509 inferior was killed and is shutting down.
3510 (windows_resume, get_windows_debug_event)
3511 (windows_create_inferior, windows_mourn_inferior)
3512 (windows_kill_inferior): All callers of windows_continue changed
3513 to adjust to its new calling sequence.
3515 2014-04-19 Yao Qi <yao@codesourcery.com>
3517 * ctf.c (ctf_open): Call post_create_inferior.
3519 2014-04-19 Yao Qi <yao@codesourcery.com>
3521 * ctf.c (handle_id): New static variable.
3522 (ctf_open_dir): Get handle_id from bt_context_add_trace return
3523 value. Get the declaration of event "register" and get length
3524 of field "contents".
3526 2014-04-19 Yao Qi <yao@codesourcery.com>
3528 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
3530 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
3532 * valops.c (oload_method_static): Remove unnecessary argument
3533 METHOD. Update all callers.
3535 2014-04-18 Pedro alves <palves@redhat.com>
3536 Tom Tromey <tromey@redhat.com>
3539 * frame.c (get_prev_frame_1): Rename to ...
3540 (get_prev_frame_always): ... this, and make extern. Adjust.
3541 (skip_artificial_frames): Use get_prev_frame_always.
3542 (frame_unwind_caller_id, frame_pop, get_prev_frame)
3543 (get_frame_unwind_stop_reason): Adjust to rename.
3544 * frame.h (get_prev_frame_always): Declare.
3545 * inline-frame.c: Include frame.h.
3546 (inline_frame_this_id): Use get_prev_frame_always.
3548 2014-04-18 Tristan Gingold <gingold@adacore.com>
3550 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
3551 code by using bfd_mach_o_get_base_address.
3553 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
3555 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
3556 (spu_ax_pseudo_register_collect): New function.
3557 (spu_ax_pseudo_register_push_stack): Likewise.
3558 (spu_dwarf_reg_to_regnum): Likewise.
3559 (spu_gdbarch_init): Install them. Append DWARF unwinders.
3561 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
3563 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
3564 Replace FRAME argument with FRAME_ID.
3565 * gdbarch.c, gdbarch.h: Regenerate.
3566 * findvar.c (default_value_from_register): Add GDBARCH argument;
3567 replace FRAME by FRAME_ID. No longer call get_frame_id.
3568 (value_from_register): Update call to gdbarch_value_from_register.
3569 * value.h (default_value_from_register): Update prototype.
3570 * s390-linux-tdep.c (s390_value_from_register): Update interface
3571 and call to default_value_from_register.
3572 * spu-tdep.c (spu_value_from_register): Likewise.
3574 * findvar.c (address_from_register): Remove TYPE argument.
3575 Do not call value_from_register; use gdbarch_value_from_register
3576 with null_frame_id instead.
3577 * value.h (address_from_register): Update prototype.
3578 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
3579 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
3580 address_from_register interface change.
3582 2014-04-17 Yao Qi <yao@codesourcery.com>
3584 * gdbtypes.h: Update comments to link to types and macros'
3587 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
3589 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
3591 2014-04-16 Keith Seitz <keiths@redhat.com>
3594 * dwarf2read.c (skip_one_die): Check that all relative-offset
3595 sibling DIEs fall within range of the current reader's buffer.
3596 (read_partial_die): Likewise.
3598 2014-04-16 Keith Seitz <keiths@redhat.com>
3601 * cp-namespace.c (lookup_symbol_file): If the type name of
3602 `this' is NULL, return immediately.
3604 2014-04-14 Keith Seitz <keiths@redhat.com>
3607 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
3608 from symbol_matches_domain in symtab.c. All local callers
3609 of symbol_matches_domain updated.
3610 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
3611 search STRUCT_DOMAIN.
3612 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
3613 independently. standard_lookup will do that automatically.
3614 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
3615 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3616 (cp_lookup_symbol_in_namespace): Likewise.
3617 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
3618 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
3619 may return a STRUCT_DOMAIN match.
3620 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
3621 * cp-support.c: Include language.h.
3622 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
3624 * psymtab.c (match_partial_symbol): Compare the requested
3625 domain with the symbol's domain directly.
3626 (lookup_partial_symbol): Likewise.
3627 * symtab.c (lookup_symbol_in_language): Explain when/why
3628 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3629 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
3630 appropriate languages.
3631 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
3632 and moved to ada-lang.c
3633 (lookup_block_symbol): Explain that this function only returns
3634 symbol matching the requested DOMAIN.
3635 Compare the requested domain with the symbol's domain directly.
3636 (iterate_over_symbols): Compare the requested domain with the
3637 symbol's domain directly.
3638 * symtab.h (symbol_matches_domain): Remove.
3640 2014-04-14 Tom Tromey <tromey@redhat.com>
3643 * c-exp.y (type_aggregate_p): New function.
3644 (qualified_name, classify_inner_name): Use it.
3645 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
3646 and TYPE_TARGET_TYPE of an enum type.
3647 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
3649 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
3650 handle TYPE_DECLARED_CLASS.
3651 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
3653 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
3654 * valops.c (enum_constant_from_type): New function.
3655 (value_aggregate_elt): Use it.
3656 * cp-namespace.c (cp_lookup_nested_symbol): Handle
3659 2014-04-14 Tom Tromey <tromey@redhat.com>
3661 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
3662 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
3664 * value.h (value_aggregate_elt): Update.
3666 2014-04-14 Tom Tromey <tromey@redhat.com>
3668 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
3670 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3672 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
3673 (evaluate_subexp_standard): Pass noside argument.
3674 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
3675 if noside equals EVAL_NORMAL. If the subscript yields a vla type
3676 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
3677 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
3678 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
3680 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3682 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
3683 points to a constant blob.
3685 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3687 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
3688 property and store it as the high bound and flag the range accordingly.
3689 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
3690 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
3691 * gdbtypes.h (enum range_flags): New enum.
3692 (struct range_bounds): Add flags member.
3694 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3696 * c-typeprint.c (c_type_print_varspec_suffix): Added
3697 check for not yet resolved high bound. If unresolved, print
3698 "variable length" string to the console instead of random
3701 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3703 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
3705 (ada_template_to_fixed_record_type_1): Likewise.
3706 (ada_to_fixed_type_1): Likewise.
3707 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
3708 (cp_print_value): Likewise.
3709 * d-valprint.c (dynamic_array_type): Likewise.
3710 * findvar.c (address_of_variable): Likewise.
3711 * jv-valprint.c (java_value_print): Likewise.
3712 * valops.c (value_ind): Likewise.
3713 * value.c (coerce_ref): Likewise.
3715 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3717 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
3718 value and retrieve the dynamic type size.
3720 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3722 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
3723 passed to sizeof is dynamic evaluate the argument to compute the length.
3725 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3726 Joel Brobecker <brobecker@adacore.com>
3728 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
3729 (dwarf2_evaluate_property): New function.
3730 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
3731 * dwarf2read.c (attr_to_dynamic_prop): New function.
3732 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
3734 * gdbtypes.c: Include dwarf2loc.h.
3735 (is_dynamic_type): New function.
3736 (resolve_dynamic_type): New function.
3737 (resolve_dynamic_bounds): New function.
3738 (get_type_length): New function.
3739 (check_typedef): Use get_type_length to compute type length.
3740 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
3741 (TYPE_LOW_BOUND_KIND): New macro.
3742 (is_dynamic_type): New function prototype.
3743 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
3744 to resolve dynamic properties of the type. Update comment.
3745 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
3747 2014-04-14 Richard Henderson <rth@redhat.com>
3749 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
3751 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
3752 Doug Evans <xdje42@gmail.com>
3754 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
3755 dereference TYPE_CODE_REF values.
3757 2014-04-11 Joel Brobecker <brobecker@adacore.com>
3759 Revert the following changes due to regressions:
3761 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
3762 (dwarf2_evaluate_property): New function.
3763 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
3764 * dwarf2read.c (attr_to_dynamic_prop): New function.
3765 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
3767 * gdbtypes.c: Include dwarf2loc.h.
3768 (is_dynamic_type): New function.
3769 (resolve_dynamic_type): New function.
3770 (resolve_dynamic_bounds): New function.
3771 (get_type_length): New function.
3772 (check_typedef): Use get_type_length to compute type length.
3773 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
3774 (TYPE_LOW_BOUND_KIND): New macro.
3775 (is_dynamic_type): New function prototype.
3776 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
3777 to resolve dynamic properties of the type. Update comment.
3778 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
3780 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
3781 passed to sizeof is dynamic evaluate the argument to compute the length.
3783 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
3784 value and retrieve the dynamic type size.
3786 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
3787 (ada_template_to_fixed_record_type_1): Likewise.
3788 (ada_to_fixed_type_1): Likewise.
3789 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
3790 (cp_print_value): Likewise.
3791 * d-valprint.c (dynamic_array_type): Likewise.
3792 * eval.c (evaluate_subexp_with_coercion): Likewise.
3793 * findvar.c (address_of_variable): Likewise.
3794 * jv-valprint.c (java_value_print): Likewise.
3795 * valops.c (value_ind): Likewise.
3796 * value.c (coerce_ref): Likewise.
3798 * c-typeprint.c (c_type_print_varspec_suffix): Added
3799 check for not yet resolved high bound. If unresolved, print
3800 "variable length" string to the console instead of random
3803 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
3804 property and store it as the high bound and flag the range accordingly.
3805 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
3806 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
3807 * gdbtypes.h (enum range_flags): New enum.
3808 (struct range_bounds): Add flags member.
3810 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
3811 points to a constant blob.
3813 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
3814 (evaluate_subexp_standard): Pass noside argument.
3815 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
3816 if noside equals EVAL_NORMAL. If the subscript yields a vla type
3817 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
3818 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
3819 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
3821 2014-04-11 Keith Seitz <keiths@redhat.com>
3824 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
3825 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
3828 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3830 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
3831 (evaluate_subexp_standard): Pass noside argument.
3832 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
3833 if noside equals EVAL_NORMAL. If the subscript yields a vla type
3834 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
3835 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
3836 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
3838 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3840 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
3841 points to a constant blob.
3843 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3845 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
3846 property and store it as the high bound and flag the range accordingly.
3847 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
3848 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
3849 * gdbtypes.h (enum range_flags): New enum.
3850 (struct range_bounds): Add flags member.
3852 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3854 * c-typeprint.c (c_type_print_varspec_suffix): Added
3855 check for not yet resolved high bound. If unresolved, print
3856 "variable length" string to the console instead of random
3859 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3861 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
3862 (ada_template_to_fixed_record_type_1): Likewise.
3863 (ada_to_fixed_type_1): Likewise.
3864 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
3865 (cp_print_value): Likewise.
3866 * d-valprint.c (dynamic_array_type): Likewise.
3867 * eval.c (evaluate_subexp_with_coercion): Likewise.
3868 * findvar.c (address_of_variable): Likewise.
3869 * jv-valprint.c (java_value_print): Likewise.
3870 * valops.c (value_ind): Likewise.
3871 * value.c (coerce_ref): Likewise.
3873 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3875 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
3876 value and retrieve the dynamic type size.
3878 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3880 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
3881 passed to sizeof is dynamic evaluate the argument to compute the length.
3883 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3885 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
3886 (dwarf2_evaluate_property): New function.
3887 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
3888 * dwarf2read.c (attr_to_dynamic_prop): New function.
3889 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
3891 * gdbtypes.c: Include dwarf2loc.h.
3892 (is_dynamic_type): New function.
3893 (resolve_dynamic_type): New function.
3894 (resolve_dynamic_bounds): New function.
3895 (get_type_length): New function.
3896 (check_typedef): Use get_type_length to compute type length.
3897 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
3898 (TYPE_LOW_BOUND_KIND): New macro.
3899 (is_dynamic_type): New function prototype.
3900 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
3901 to resolve dynamic properties of the type. Update comment.
3902 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
3904 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3906 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
3907 declaring high/low bounds and change uses accordingly. Call
3908 create_range_type instead of create_static_range_type.
3909 * gdbtypes.c (create_range_type): New function.
3910 (create_range_type): Convert bounds into struct bound_prop and pass
3911 them to create_range_type.
3912 * gdbtypes.h (struct bound_prop): New struct.
3913 (create_range_type): New function prototype.
3914 (struct range_bounds): Use struct bound_prop instead of LONGEST for
3915 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
3916 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
3918 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
3920 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3922 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
3923 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
3924 * ada-lang.c: All uses of create_range_type updated.
3925 * coffread.c: All uses of create_range_type updated.
3926 * dwarf2read.c: All uses of create_range_type updated.
3927 * f-exp.y: All uses of create_range_type updated.
3928 * m2-valprint.c: All uses of create_range_type updated.
3929 * mdebugread.c: All uses of create_range_type updated.
3930 * stabsread.c: All uses of create_range_type updated.
3931 * valops.c: All uses of create_range_type updated.
3932 * valprint.c: All uses of create_range_type updated.
3934 2014-04-10 Pedro Alves <palves@redhat.com>
3936 * breakpoint.c (single_step_breakpoints)
3937 (single_step_gdbarch): Move up in the file.
3938 (one_breakpoint_xfer_memory): New function, factored out from ...
3939 (breakpoint_xfer_memory): ... here. Also process single-step
3942 2014-04-09 Tristan Gingold <gingold@adacore.com>
3944 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
3946 (darwin_decode_exception_message): Free port only after use.
3948 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
3950 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
3951 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
3952 when setting the size of call_length.
3954 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
3956 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
3957 dereference TYPE_CODE_REF values.
3959 2014-04-07 Joel Brobecker <brobecker@adacore.com>
3961 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
3962 end of warning message.
3964 2014-04-03 Doug Evans <dje@google.com>
3966 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
3967 of stub_comp_unit_die, stub_comp_dir is non-NULL.
3969 2014-04-02 Alan Modra <amodra@gmail.com>
3971 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
3972 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
3973 (struct symbol_file_add_from_memory_args): Add size field.
3974 (find_vdso_size): New function.
3975 (add_vsyscall_page): Attempt to find vdso size.
3977 2014-04-01 Doug Evans <dje@google.com>
3979 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
3981 2014-04-01 Tristan Gingold <gingold@adacore.com>
3983 * darwin-nat.c (darwin_encode_reply): Add prototype.
3984 (darwin_decode_exception_message): Reply to unknown inferiors.
3985 (darwin_decode_message): Handle message by id. Ignore message
3986 to unknown inferior.
3987 (darwin_wait): Discard unknown messages, add debug trace.
3989 2014-03-31 Doug Evans <dje@google.com>
3991 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
3994 2014-03-31 Doug Evans <dje@google.com>
3996 New option "set print symbol-loading".
3998 * solib.c (solib_read_symbols): Only print symbol loading messages
4000 (solib_add): If symbol loading is in "brief" mode, notify user
4001 symbols are being loaded.
4002 (reload_shared_libraries_1): Ditto.
4003 * symfile.c (print_symbol_loading_off): New static global.
4004 (print_symbol_loading_brief): New static global.
4005 (print_symbol_loading_full): New static global.
4006 (print_symbol_loading_enums): New static global.
4007 (print_symbol_loading): New static global.
4008 (print_symbol_loading_p): New function.
4009 (symbol_file_add_with_addrs): Only print symbol loading messages
4011 (_initialize_symfile): Register "print symbol-loading" set/show
4013 * symfile.h (print_symbol_loading_p): Declare.
4015 2014-03-30 Doug Evans <xdje42@gmail.com>
4017 * infrun.c (set_last_target_status): New function.
4018 (handle_inferior_event): Call it.
4020 2014-03-30 Doug Evans <xdje42@gmail.com>
4022 * inferior.h (enum stop_kind): Improve comment.
4024 2014-03-28 Joel Brobecker <brobecker@adacore.com>
4026 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
4027 a reference, strip the reference layer before calling
4028 the lang_ops value_has_mutated callback.
4030 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
4032 Remove some globals from our parser.
4033 * language.c (unk_lang_parser): Add "struct parser_state"
4035 * language.h (struct language_defn) <la_parser>: Likewise.
4036 * parse.c (expout, expout_size, expout_ptr): Remove variables.
4037 (initialize_expout): Add "struct parser_state" argument.
4038 Rewrite function to use the parser state.
4039 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
4040 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
4041 write_exp_elt_longcst, write_exp_elt_dblcst,
4042 write_exp_elt_decfloatcst, write_exp_elt_type,
4043 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
4044 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
4045 write_dollar_variable): Likewise.
4046 (parse_exp_in_context_1): Use parser state.
4047 (insert_type_address_space): Add "struct parser_state" argument.
4049 (increase_expout_size): New function.
4050 * parser-defs.h: Forward declare "struct language_defn" and
4051 "struct parser_state".
4052 (expout, expout_size, expout_ptr): Remove extern declarations.
4053 (parse_gdbarch, parse_language): Rewrite macro declarations to
4054 accept the parser state.
4055 (struct parser_state): New struct.
4056 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
4057 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
4058 write_exp_elt_decfloatcst, write_exp_elt_type,
4059 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
4060 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
4061 write_exp_msymbol, write_dollar_variable,
4062 mark_struct_expression, insert_type_address_space): Add "struct
4063 parser_state" argument.
4064 (increase_expout_size): New function.
4065 * utils.c (do_clear_parser_state): New function.
4066 (make_cleanup_clear_parser_state): Likewise.
4067 * utils.h (make_cleanup_clear_parser_state): New function
4069 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
4070 Update calls to write_exp* in order to pass the parser state.
4071 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
4072 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
4073 (i386_stap_parse_special_token_three_arg_disp): Likewise.
4074 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
4075 * stap-probe.c (stap_parse_register_operand): Likewise.
4076 (stap_parse_single_operand): Likewise.
4077 (stap_parse_argument_1): Likewise.
4078 (stap_parse_argument): Use parser state.
4079 * stap-probe.h: Include "parser-defs.h".
4080 (struct stap_parse_info) <pstate>: New field.
4081 * c-exp.y (parse_type): Rewrite to use parser state.
4082 (yyparse): Redefine to c_parse_internal.
4083 (pstate): New global variable.
4084 (parse_number): Add "struct parser_state" argument.
4085 (write_destructor_name): Likewise.
4086 (type_exp): Update calls to write_exp* and similars in order to
4088 (exp1, exp, variable, qualified_name, space_identifier,
4089 typename, typebase): Likewise.
4090 (write_destructor_name, parse_number, lex_one_token,
4091 classify_name, classify_inner_name, c_parse): Add "struct
4092 parser_state" argument. Update function to use parser state.
4093 * c-lang.h: Forward declare "struct parser_state".
4094 (c_parse): Add "struct parser_state" argument.
4095 * ada-exp.y (parse_type): Rewrite macro to use parser state.
4096 (yyparse): Redefine macro to ada_parse_internal.
4097 (pstate): New variable.
4098 (write_int, write_object_renaming, write_var_or_type,
4099 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
4100 type_int, type_long, type_long_long, type_float, type_double,
4101 type_long_double, type_char, type_boolean, type_system_address):
4102 Add "struct parser_state" argument.
4103 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
4104 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
4105 var_or_type, aggregate, aggregate_component_list,
4106 positional_list, others, component_group,
4107 component_associations): Update calls to write_exp* and similar
4108 functions in order to use parser state.
4109 (ada_parse, write_var_from_sym, write_int,
4110 write_exp_op_with_string, write_object_renaming,
4111 find_primitive_type, write_selectors, write_ambiguous_var,
4112 write_var_or_type, write_name_assoc, type_int, type_long,
4113 type_long_long, type_float, type_double, type_long_double,
4114 type_char, type_boolean, type_system_address): Add "struct
4115 parser_state" argument. Adjust function to use parser state.
4116 * ada-lang.c (parse): Likewise.
4117 * ada-lang.h: Forward declare "struct parser_state".
4118 (ada_parse): Add "struct parser_state" argument.
4119 * ada-lex.l (processInt, processReal): Likewise. Adjust all
4120 calls to both functions.
4121 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
4123 (yyparse): Redefine macro to f_parse_internal.
4124 (pstate): New variable.
4125 (parse_number): Add "struct parser_state" argument.
4126 (type_exp, exp, subrange, typebase): Update calls to write_exp*
4127 and similars in order to use parser state.
4128 (parse_number): Adjust code to use parser state.
4130 (f_parse): New function.
4131 * f-lang.h: Forward declare "struct parser_state".
4132 (f_parse): Add "struct parser_state" argument.
4133 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
4135 (yyparse): Redefine macro for java_parse_internal.
4136 (pstate): New variable.
4137 (push_expression_name, push_expression_name, insert_exp): Add
4138 "struct parser_state" argument.
4139 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
4140 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
4141 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
4142 PostIncrementExpression, PostDecrementExpression,
4143 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
4144 UnaryExpressionNotPlusMinus, CastExpression,
4145 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
4146 RelationalExpression, EqualityExpression, AndExpression,
4147 ExclusiveOrExpression, InclusiveOrExpression,
4148 ConditionalAndExpression, ConditionalOrExpression,
4149 ConditionalExpression, Assignment, LeftHandSide): Update
4150 calls to write_exp* and similars in order to use parser state.
4151 (parse_number): Ajust code to use parser state.
4153 (java_parse): New function.
4154 (push_variable): Add "struct parser_state" argument. Adjust
4155 code to user parser state.
4156 (push_fieldnames, push_qualified_expression_name,
4157 push_expression_name, insert_exp): Likewise.
4158 * jv-lang.h: Forward declare "struct parser_state".
4159 (java_parse): Add "struct parser_state" argument.
4160 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
4162 (yyparse): Redefine macro to m2_parse_internal.
4163 (pstate): New variable.
4164 (type_exp, exp, fblock, variable, type): Update calls to
4165 write_exp* and similars to use parser state.
4167 (m2_parse): New function.
4168 * m2-lang.h: Forward declare "struct parser_state".
4169 (m2_parse): Add "struct parser_state" argument.
4170 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
4171 * objc-lang.h: Forward declare "struct parser_state".
4172 (end_msglist): Add "struct parser_state" argument.
4173 * p-exp.y (parse_type): Rewrite macro to use parser state.
4174 (yyparse): Redefine macro to pascal_parse_internal.
4175 (pstate): New variable.
4176 (parse_number): Add "struct parser_state" argument.
4177 (type_exp, exp1, exp, qualified_name, variable): Update calls to
4178 write_exp* and similars in order to use parser state.
4179 (parse_number, yylex): Adjust code to use parser state.
4180 (pascal_parse): New function.
4181 * p-lang.h: Forward declare "struct parser_state".
4182 (pascal_parse): Add "struct parser_state" argument.
4183 * go-exp.y (parse_type): Rewrite macro to use parser state.
4184 (yyparse): Redefine macro to go_parse_internal.
4185 (pstate): New variable.
4186 (parse_number): Add "struct parser_state" argument.
4187 (type_exp, exp1, exp, variable, type): Update calls to
4188 write_exp* and similars in order to use parser state.
4189 (parse_number, lex_one_token, classify_name, yylex): Adjust code
4190 to use parser state.
4191 (go_parse): Likewise.
4192 * go-lang.h: Forward declare "struct parser_state".
4193 (go_parse): Add "struct parser_state" argument.
4195 2014-03-27 Doug Evans <dje@google.com>
4197 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
4199 2014-03-27 Doug Evans <dje@google.com>
4201 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
4202 Remove argument abbrev_section. All callers updated.
4204 2014-03-27 Doug Evans <dje@google.com>
4206 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
4207 addr_base, ranges_base.
4209 2014-03-26 Keith Seitz <keiths@redhat.com>
4211 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
4212 types, not VAR_DOMAIN.
4214 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
4216 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
4218 * features/nios2-linux.c: Regenerated.
4219 * features/nios2.c: Regenerated.
4221 2014-03-25 Pedro Alves <palves@redhat.com>
4223 * cli/cli-script.c (script_from_file): Force the interpreter to
4226 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
4228 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
4229 small stack allocation.
4231 2014-03-24 Tristan Gingold <gingold@adacore.com>
4233 * darwin-nat.c (exc_server): Remove unused prototype.
4234 (darwin_dump_message): Correctly display data on x86_64.
4235 (darwin_encode_reply): Fix style.
4236 Add comments and fix indentation.
4238 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
4240 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
4242 2014-03-22 Doug Evans <xdje42@gmail.com>
4244 * infcmd.c: Whitespace fixes.
4245 (interrupt_command): Merge two function comments into one.
4247 2014-03-22 Doug Evans <xdje42@gmail.com>
4249 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
4252 2014-03-22 Yao Qi <yao@codesourcery.com>
4254 * remote.c (target_read_live_memory): Remove.
4255 (memory_xfer_live_readonly_partial): Rename it to
4256 remote_xfer_live_readonly_partial. Remove argument 'object'.
4257 All callers updated. Call remote_read_bytes_1
4258 instead of target_read_live_memory.
4259 * tracepoint.c (set_traceframe_number): Remove.
4260 (make_cleanup_restore_traceframe_number): Likewise .
4261 * tracepoint.h (set_traceframe_number): Remove declaration.
4262 (make_cleanup_restore_traceframe_number): Likewise.
4264 2014-03-22 Yao Qi <yao@codesourcery.com>
4266 * remote.c (remote_read_bytes): Move code on reading from the
4268 (remote_read_bytes_1): ... here. New function.
4270 2014-03-22 Yao Qi <yao@codesourcery.com>
4272 * ctf.c (ctf_xfer_partial): Check the return value of
4273 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
4274 return TARGET_XFER_UNAVAILABLE.
4275 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
4276 * target.c (target_read_live_memory): Move it to remote.c.
4277 (memory_xfer_live_readonly_partial): Likewise.
4278 (memory_xfer_partial_1): Move some code to remote_read_bytes.
4279 * remote.c (target_read_live_memory): Moved from target.c.
4280 (memory_xfer_live_readonly_partial): Likewise.
4281 (remote_read_bytes): Factored out from
4282 memory_xfer_partial_1.
4284 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
4286 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
4289 2014-03-21 Pedro Alves <palves@redhat.com>
4291 * infrun.c (normal_stop): Extend comment.
4293 2014-03-21 Hui Zhu <hui@codesourcery.com>
4294 Pedro Alves <palves@redhat.com>
4296 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
4298 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
4299 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
4300 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
4302 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
4304 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
4305 `z' formatted output modifier.
4307 2014-03-20 Tom Tromey <tromey@redhat.com>
4308 Sergio Durigan Junior <sergiodj@redhat.com>
4310 * probe.c (parse_probes): Turn assert into an ordinary error.
4311 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
4312 exceptions when parsing probes. Rearrange the code for clarity.
4314 2014-03-20 Tom Tromey <tromey@redhat.com>
4317 * top.c (execute_command): Only dispatch events if the command
4320 2014-03-20 Tom Tromey <tromey@redhat.com>
4323 * infcall.c: Include event-top.h.
4324 (run_inferior_call): Call async_disable_stdin if needed.
4326 2014-03-20 Pedro Alves <palves@redhat.com>
4328 * infrun.c (prepare_to_proceed): Delete.
4329 (thread_still_needs_step_over): New function.
4330 (find_thread_needs_step_over): New function.
4331 (proceed): If the current thread needs a step-over, set its
4332 steping_over_breakpoint flag. Adjust to use
4333 find_thread_needs_step_over instead of prepare_to_proceed.
4334 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
4335 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
4337 (switch_back_to_stepped_thread): Step over breakpoints of all
4338 threads not the stepping thread, before switching back to the
4341 2014-03-20 Pedro Alves <palves@redhat.com>
4343 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
4345 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
4346 * infrun.c (saved_singlestep_ptid)
4347 (stepping_past_singlestep_breakpoint): Delete.
4348 (resume): Remove stepping_past_singlestep_breakpoint handling.
4349 (proceed): Store the prev_pc of the stepping thread too.
4350 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
4352 (enum infwait_states): Delete infwait_thread_hop_state.
4353 (struct execution_control_state) <hit_singlestep_breakpoint>: New
4355 (handle_inferior_event): Adjust.
4356 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
4357 handling and the thread-hop code. Before removing single-step
4358 breakpoints, check whether the thread hit a single-step breakpoint
4359 of another thread. If it did, the trap is not a random signal.
4360 (switch_back_to_stepped_thread): If the event thread hit a
4361 single-step breakpoint, unblock it before switching to the
4362 stepping thread. Handle the case of the stepped thread having
4364 (keep_going): Handle the case of the current thread moving past a
4365 single-step breakpoint.
4367 2014-03-20 Pedro Alves <palves@redhat.com>
4370 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
4371 are being stepped over.
4372 (breakpoint_address_match): Make extern.
4373 * breakpoint.h (breakpoint_address_match): New declaration.
4374 * inferior.h (stepping_past_instruction_at): New declaration.
4375 * infrun.c (struct step_over_info): New type.
4376 (step_over_info): New global.
4377 (set_step_over_info, clear_step_over_info)
4378 (stepping_past_instruction_at): New functions.
4379 (handle_inferior_event): Clear the step-over info when
4380 trap_expected is cleared.
4381 (resume): Remove now stale comment.
4382 (clear_proceed_status): Clear step-over info.
4383 (proceed): Adjust step-over handling to set or clear the step-over
4384 info instead of removing all breakpoints.
4385 (handle_signal_stop): When setting up a thread-hop, don't remove
4387 (stop_stepping): Clear step-over info.
4388 (keep_going): Adjust step-over handling to set or clear step-over
4389 info and then always inserting breakpoints, instead of removing
4390 all breakpoints when stepping over one.
4392 2014-03-20 Pedro Alves <palves@redhat.com>
4394 * infrun.c (previous_inferior_ptid): Adjust comment.
4395 (deferred_step_ptid): Delete.
4396 (infrun_thread_ptid_changed, prepare_to_proceed)
4397 (init_wait_for_inferior): Adjust.
4398 (handle_signal_stop): Delete deferred_step_ptid handling.
4400 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4403 * defs.h (sync_quit_force_run): New declaration.
4404 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
4405 * event-top.c (async_sigterm_handler): New declaration.
4406 (async_sigterm_token): New variable.
4407 (async_init_signals): Create also async_sigterm_token.
4408 (async_sigterm_handler): New function.
4409 (sync_quit_force_run): New variable.
4410 (handle_sigterm): Replace quit_force call by other calls.
4411 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
4413 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
4415 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
4416 offset into SPE pseudo registers.
4418 2014-03-18 Pedro Alves <palves@redhat.com>
4421 * inferior.h (print_stop_event): Declare.
4422 * infrun.c (print_stop_event): New, factored out from ...
4423 (normal_stop): ... this.
4424 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
4425 of bpstat_print/print_stack_frame.
4427 2014-03-17 Tom Tromey <tromey@redhat.com>
4429 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
4431 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
4433 * ada-lang.c (decode_constrained_packed_array): Perform a
4434 minimal coercion for reference with coerce_ref instead of
4437 2014-03-17 Tristan Gingold <gingold@adacore.com>
4439 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
4440 (darwin_solib_create_inferior_hook): Emit a warning if version
4443 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
4445 * python/py-value.c (get_field_flag): Cast flag_name argument to
4446 PyObject_GetAttrString to support Python 2.4.
4448 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
4450 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
4451 (Global Maintainers): Remove Jan Kratochvil.
4453 2014-03-14 Pedro Alves <palves@redhat.com>
4455 * inferior.h (terminal_ours_for_output): Rename to ...
4456 (child_terminal_ours_for_output): ... this.
4457 (terminal_save_ours): Rename to ...
4458 (child_terminal_save_ours): ... this.
4459 (terminal_ours): Rename to ...
4460 (child_terminal_ours): ... this.
4461 (terminal_inferior): Rename to ...
4462 (child_terminal_inferior): ... this.
4463 (terminal_init_inferior): Rename to ...
4464 (child_terminal_init_inferior): ... this.
4465 (terminal_init_inferior_with_pgrp): Rename to ...
4466 (child_terminal_init_inferior_with_pgrp): ... this.
4467 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
4468 (child_terminal_init_with_pgrp): ... this.
4469 (terminal_save_ours): Rename to ...
4470 (child_terminal_save_ours): ... this.
4471 (terminal_init_inferior): Rename to ...
4472 (child_terminal_init): ... this. Adjust.
4473 (terminal_inferior): Rename to ...
4474 (child_terminal_inferior): ... this.
4475 (terminal_ours_for_output): Rename to ...
4476 (child_terminal_ours_for_output): ... this. Adjust.
4477 (terminal_ours): Rename to ...
4478 (child_terminal_ours): ... this.
4479 (terminal_ours_1): Rename to ...
4480 (child_terminal_ours_1): ... this. Adjust.
4481 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
4482 * windows-nat.c (do_initial_windows_stuff): Adjust.
4483 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
4484 (gnu_terminal_init): ... this. Adjust.
4485 (gnu_target): Adjust.
4486 * inf-child.c (inf_child_target): Adjust.
4488 2014-03-13 Doug Evans <xdje42@gmail.com>
4491 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
4494 2014-03-13 Doug Evans <xdje42@gmail.com>
4496 * value.c (record_latest_value): Call release_value_or_incref
4497 instead of release_value.
4499 2014-03-13 Pedro Alves <palves@redhat.com>
4501 * procfs.c (procfs_target): Don't override to_shortname,
4502 to_longname or to_doc.
4504 2014-03-13 Pedro Alves <palves@redhat.com>
4506 * inf-child.c (inf_child_open, inf_child_target): Don't mention
4507 Unix in user visible strings.
4509 2014-03-12 Stan Shebs <stan@codesourcery.com>
4511 * gdbtypes.h: Annotate comments for Doxygen, add a page
4512 block comment with some general info.
4514 2014-03-12 Pedro Alves <palves@redhat.com>
4516 * infcmd.c (prepare_execution_command): New function, factored out
4517 from several execution commands.
4518 (run_command_1, continue_command, step_1, jump_command)
4519 (signal_command, until_command, advance_command, finish_command)
4520 (attach_command): Use prepare_execution_command.
4522 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
4524 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
4527 (struct arm_linux_thread_points): Removed.
4528 (struct arm_linux_process_info): New.
4529 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
4530 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
4531 (arm_linux_find_breakpoints_by_tid): Removed.
4532 (struct arch_lwp_info): New.
4533 (arm_linux_find_process_pid): New functions.
4534 (arm_linux_add_process): New functions.
4535 (arm_linux_process_info_get): New functions.
4536 (arm_linux_forget_process): New function.
4537 (arm_linux_get_debug_reg_state): New function.
4538 (struct update_registers_data): New.
4539 (update_registers_callback): New function.
4540 (arm_linux_insert_hw_breakpoint1): Updated.
4541 (arm_linux_remove_hw_breakpoint1): Updated.
4542 (arm_linux_insert_hw_breakpoint): Updated.
4543 (arm_linux_remove_hw_breakpoint): Updated.
4544 (arm_linux_insert_watchpoint): Updated.
4545 (arm_linux_remove_watchpoint): Updated.
4546 (arm_linux_new_thread): Updated.
4547 (arm_linux_prepare_to_resume): New function.
4548 (arm_linux_new_fork): New function.
4549 (_initialize_arm_linux_nat): Updated.
4551 2014-03-12 Pedro Alves <palves@redhat.com>
4553 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
4555 2014-03-12 Tom Tromey <tromey@redhat.com>
4557 * inf-child.c (return_zero): New function.
4558 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
4559 * aix-thread.c (aix_thread_inferior_created): New function.
4560 (aix_thread_attach): Remove.
4561 (init_aix_thread_ops): Don't set to_attach.
4562 (_initialize_aix_thread): Register inferior_created observer.
4563 * corelow.c (init_core_ops): Don't set to_attach or
4565 * exec.c (init_exec_ops): Don't set to_attach or
4567 * infcmd.c (run_command_1): Use find_run_target. Make direct
4569 (attach_command): Use find_attach_target. Make direct target
4571 * record-btrace.c (init_record_btrace_ops): Don't set
4573 * record-full.c (record_full_can_async_p, record_full_is_async_p):
4575 (init_record_full_ops, init_record_full_core_ops): Update. Don't
4576 set to_create_inferior.
4577 * target.c (complete_target_initialization): Add assertion.
4578 (target_create_inferior): Remove.
4579 (find_default_attach, find_default_create_inferior): Remove.
4580 (find_attach_target, find_run_target): New functions.
4581 (find_default_is_async_p, find_default_can_async_p)
4582 (target_supports_non_stop, target_attach): Remove.
4583 (init_dummy_target): Don't set to_create_inferior or
4584 to_supports_non_stop.
4585 * target.h (struct target_ops) <to_attach>: Add comment. Remove
4586 TARGET_DEFAULT_FUNC.
4587 <to_create_inferior>: Add comment.
4588 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
4589 TARGET_DEFAULT_RETURN.
4590 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
4591 (find_attach_target, find_run_target): Declare.
4592 (target_create_inferior): Remove.
4593 (target_has_execution_1): Update comment.
4594 (target_supports_non_stop): Remove.
4595 * target-delegates.c: Rebuild.
4597 2014-03-12 Pedro Alves <palves@redhat.com>
4599 * inf-child.h: Update comment to not mention Unix.
4601 2014-03-12 Pedro Alves <palves@redhat.com>
4603 * inf-child.c: Update top comment to not mention Unix. Add
4604 generic comment describing how this target is meant to be used.
4605 (inf_child_post_attach, inf_child_post_startup_inferior)
4606 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
4609 2014-03-12 Pedro Alves <palves@redhat.com>
4611 * nto-procfs.c: Include inf-child.h.
4612 (procfs_ops): Delete global.
4613 (procfs_can_run): Delete method.
4614 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
4615 target pointer instead of referencing procfs_ops.
4616 (procfs_prepare_to_store): Delete.
4617 (init_procfs_ops): Delete function.
4618 (procfs_target): New function, based on init_procfs_ops, but
4619 inherit inf_child_target.
4620 (_initialize_procfs): Use procfs_target.
4622 2014-03-12 Pedro Alves <palves@redhat.com>
4624 * windows-nat.c: Include inf-child.h.
4625 (windows_ops): Delete global.
4626 (windows_open, windows_prepare_to_store, windows_can_run): Delete
4628 (init_windows_ops): Delete function.
4629 (windows_target): New function, based on init_windows_ops, but
4630 inherit inf_child_target.
4631 (_initialize_windows_nat): Use windows_target. Install x86
4632 specific target methods here.
4634 2014-03-10 Doug Evans <xdje42@gmail.com>
4636 * guile/guile.c (call_initialize_gdb_module): New function.
4637 (initialize_guile): Replace call to scm_init_guile with call to
4640 2014-03-10 Joel Brobecker <brobecker@adacore.com>
4642 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
4643 in call to TYPE_CODE macro.
4645 2014-03-10 Jerome Guitton <guitton@adacore.com>
4647 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
4648 Resolve tagged types to full view.
4650 2014-03-10 Hui Zhu <hui@codesourcery.com>
4652 * target.h (target_insert_breakpoint): Remove "hardware" from its
4655 2014-03-07 Doug Evans <dje@google.com>
4657 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
4659 2014-03-07 Doug Evans <dje@google.com>
4661 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
4662 Remove unused local comp_dir_attr. Assert exactly one of
4663 stub_comp_unit_die, stub_comp_dir is non-NULL.
4665 2014-03-07 Joel Brobecker <brobecker@adacore.com>
4667 * target.h (complete_target_initialization, add_target):
4670 2014-03-07 Pedro Alves <palves@redhat.com>
4672 * go32-nat.c: Include inf-child.h.
4673 (go32_ops): Delete global.
4674 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
4676 (go32_create_inferior): Push the passed in target pointer instead
4677 of referencing go32_ops.
4678 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
4679 (go32_target): New function, based on init_go32_ops, but inherit
4681 (_initialize_go32_nat): Use go32_target. Move parts of
4684 2014-03-06 Joel Brobecker <brobecker@adacore.com>
4686 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
4687 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
4688 SYMBOL_VALUE_ADDRESS.
4689 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
4691 2014-03-06 Yao Qi <yao@codesourcery.com>
4693 * breakpoint.c (get_tracepoint_by_number): Remove argument
4694 optional_p. All callers updated. Adjust comments. Update
4696 * breakpoint.h (get_tracepoint_by_number): Update declaration.
4698 2014-03-06 Yao Qi <yao@codesourcery.com>
4700 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
4701 early if get_number returns zero. Use 'p' instead of 'args'.
4703 2014-03-06 Yao Qi <yao@codesourcery.com>
4705 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
4708 2014-03-06 Yao Qi <yao@codesourcery.com>
4710 PR breakpoints/16508
4711 * tracepoint.c (check_trace_running): New function.
4712 (trace_find_command): Move code to check_trace_running and
4713 call check_trace_running.
4714 (trace_find_pc_command): Likewise.
4715 (trace_find_tracepoint_command): Likewise.
4716 (trace_find_line_command): Likewise.
4717 (trace_find_range_command): Likewise.
4718 * tracepoint.h (check_trace_running): Likewise.
4719 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
4721 2014-03-06 Yao Qi <yao@codesourcery.com>
4723 * target.h (struct target_ops) <to_traceframe_info>: Use
4724 TARGET_DEFAULT_NORETURN (tcomplain ()).
4725 * target-delegates.c: Regenerated.
4727 2014-03-05 Pedro Alves <palves@redhat.com>
4730 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
4731 void. Update comment.
4732 (dcache_xfer_memory): Delete.
4733 (dcache_read_memory_partial): New, based on the read bits of
4735 (dcache_update): Add status parameter. Use ULONGEST for len, and
4736 adjust. Discard cache lines if the reason for the update was
4738 * dcache.h (dcache_xfer_memory): Delete declaration.
4739 (dcache_read_memory_partial): New declaration.
4740 (dcache_update): Update prototype.
4741 * target.c (raw_memory_xfer_partial): Update the dcache here.
4742 (memory_xfer_partial_1): Don't handle dcache writes here.
4744 2014-03-05 Mike Frysinger <vapier@gentoo.org>
4746 * remote-sim.c (gdbsim_load): Add const to prog.
4748 2014-03-03 Tom Tromey <tromey@redhat.com>
4750 * elfread.c (probe_key): Change to bfd_data.
4751 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
4752 now per-BFD, not per-objfile.
4753 * stap-probe.c (stap_probe_destroy): Update comment.
4754 (handle_stap_probe): Allocate on the per-BFD obstack.
4756 2014-03-03 Tom Tromey <tromey@redhat.com>
4758 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
4759 * breakpoint.c (create_longjmp_master_breakpoint): Use
4761 (add_location_to_breakpoint, bkpt_probe_insert_location)
4762 (bkpt_probe_remove_location): Update.
4763 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
4764 * elfread.c (elf_symfile_relocate_probe): Remove.
4765 (elf_probe_fns): Update.
4766 (insert_exception_resume_breakpoint): Change type of "probe"
4767 parameter to bound_probe.
4768 (check_exception_resume): Update.
4769 * objfiles.c (objfile_relocate1): Don't relocate probes.
4770 * probe.c (bound_probe_s): New typedef.
4771 (parse_probes): Use get_probe_address. Set sal's objfile.
4772 (find_probe_by_pc): Return a bound_probe.
4773 (collect_probes): Return a VEC(bound_probe_s).
4774 (compare_probes): Update.
4775 (gen_ui_out_table_header_info): Change type of "probes"
4777 (info_probes_for_ops): Update.
4778 (get_probe_address): New function.
4779 (probe_safe_evaluate_at_pc): Update.
4780 * probe.h (struct probe_ops) <get_probe_address>: New field.
4781 <set_semaphore, clear_semaphore>: Add objfile parameter.
4782 (struct probe) <objfile>: Remove field.
4784 <address>: Update comment.
4785 (struct bound_probe): New.
4786 (find_probe_by_pc): Return a bound_probe.
4787 (get_probe_address): Declare.
4788 * solib-svr4.c (struct probe_and_action) <address>: New field.
4789 (hash_probe_and_action, equal_probe_and_action): Update.
4790 (register_solib_event_probe): Add address parameter.
4791 (solib_event_probe_at): Update.
4792 (svr4_create_probe_breakpoints): Add objfile parameter. Use
4794 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
4795 (stap_get_probe_address): New function.
4796 (stap_can_evaluate_probe_arguments, compute_probe_arg)
4797 (compile_probe_arg): Update.
4798 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
4800 (handle_stap_probe): Don't relocate the probe.
4801 (stap_relocate): Remove.
4802 (stap_gen_info_probes_table_values): Update.
4803 (stap_probe_ops): Remove stap_relocate.
4804 * symfile-debug.c (debug_sym_relocate_probe): Remove.
4805 (debug_sym_probe_fns): Update.
4806 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
4807 * symtab.c (init_sal): Use memset.
4808 * symtab.h (struct symtab_and_line) <objfile>: New field.
4809 * tracepoint.c (start_tracing, stop_tracing): Update.
4811 2014-03-03 Tom Tromey <tromey@redhat.com>
4813 * probe.h (parse_probes, find_probe_by_pc)
4814 (find_probes_in_objfile): Fix comments.
4816 2014-03-02 Doug Evans <xdje42@gmail.com>
4818 * infrun.c (handle_signal_stop): Replace test for
4819 TARGET_WAITKIND_STOPPED with an assert.
4821 2014-03-02 Doug Evans <xdje42@gmail.com>
4823 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
4825 2014-03-02 Doug Evans <xdje42@gmail.com>
4827 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
4829 2014-03-01 Mark Kettenis <kettenis@gnu.org>
4831 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
4833 2014-03-01 Mark Kettenis <kettenis@gnu.org>
4835 * i386obsd-nat.c: Include "obsd-nat.h".
4836 (_initialize_i386obsd_nat): Call obsd_add_target instead of
4838 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
4840 2014-03-01 Mark Kettenis <kettenis@gnu.org>
4842 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
4844 2014-03-01 Mark Kettenis <kettenis@gnu.org>
4846 * mips64obsd-nat.c: Include "obsd-nath".
4847 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
4849 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
4851 2014-03-01 Mark Kettenis <kettenis@gnu.org>
4853 * amd64obsd-nat.c: Include "obsd-nat,h.
4854 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
4856 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
4858 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
4860 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
4861 (find_overload_match): Update call to find_oload_champ.
4862 (find_oload_champ_namespace_loop): Likewise
4864 2014-02-28 Mark Kettenis <kettenis@gnu.org>
4866 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
4868 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
4869 * config/sparc/obsd64.mh: New file.
4870 * sparc64obsd-nat.c: New file.
4872 * obsd-nat.h: New file.
4873 * obsd-nat.c: New file.
4874 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
4875 (ALLDEPFILES): Add obsd-nat.c.
4877 2014-02-28 Tom Tromey <tromey@redhat.com>
4879 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
4880 * cli-out.h (cli_ui_out_impl): Now const.
4881 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
4882 * ui-out.c (struct ui_out) <impl>: Now const.
4883 (default_ui_out_impl): Now const.
4884 (ui_out_new): Make 'impl' parameter const.
4885 * ui-out.h (ui_out_new): Update.
4887 2014-02-27 Mark Kettenis <kettenis@gnu.org>
4889 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
4891 2014-02-27 Mark Kettenis <kettenis@gnu.org>
4893 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
4895 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4897 Additional PR 8882 fix.
4898 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
4900 2014-02-27 Pedro Alves <palves@redhat.com>
4902 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
4905 2014-02-27 Pedro Alves <palves@redhat.com>
4908 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
4909 * nat/linux-waitpid.c: Include string.h.
4910 (status_to_str): Moved here and made extern.
4911 * nat/linux-waitpid.h (status_to_str): New declaration.
4913 2014-02-27 Hui Zhu <hui@codesourcery.com>
4916 * infrun.c (ptid_match): Move ...
4917 * common/ptid.c (ptid_match): ... here.
4918 * inferior.h (ptid_match): Move ...
4919 * common/ptid.h (ptid_match): ... here.
4921 2014-02-27 Mark Kettenis <kettenis@gnu.org>
4923 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
4924 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
4927 2014-02-27 Mark Kettenis <kettenis@gnu.org>
4929 * obsd-tdep.c (obsd_auxv_parse): New function.
4930 (obsd_init_abi): Set auxv_parse.
4932 * gdbarch.sh (auxv_parse): New.
4933 * gdbarch.h: Regenerated.
4934 * gdbarch.c: Regenerated.
4935 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
4937 2014-02-26 Ludovic Courtès <ludo@gnu.org>
4939 * guile/scm-value.c (gdbscm_history_append_x): New function.
4940 (value_functions): Add it.
4942 2014-02-27 Joel Brobecker <brobecker@adacore.com>
4944 * dwarf2read.c (attr_value_as_address): New function.
4945 (dwarf2_find_base_address, read_call_site_scope): Use
4946 attr_value_as_address in place of DW_ADDR.
4947 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
4948 the low and high addresses. Slight rework of the handling
4949 of the high pc being a constant form, and limit it to
4950 DWARF verson 4 or higher.
4951 (dwarf2_record_block_ranges): Likewise.
4952 (read_partial_die): Likewise.
4953 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
4955 2014-02-26 Tom Tromey <tromey@redhat.com>
4957 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
4959 2014-02-26 Tom Tromey <tromey@redhat.com>
4961 * elfread.c (elf_read_minimal_symbols): Return early if
4962 minimal symbols have already been read. Add "ei" parameter.
4963 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
4964 * minsyms.c (prim_record_minimal_symbol_full): Update.
4965 * objfiles.h (struct objstats) <n_minsyms>: Move...
4966 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
4967 * symmisc.c (print_objfile_statistics): Update.
4969 2014-02-26 Tom Tromey <tromey@redhat.com>
4971 * elfread.c (elf_read_minimal_symbols): New function, from
4973 (elf_symfile_read): Call it.
4975 2014-02-26 Tom Tromey <tromey@redhat.com>
4977 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
4978 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
4979 (lookup_minimal_symbol_solib_trampoline)
4980 (lookup_minimal_symbol_by_pc_section_1)
4981 (lookup_minimal_symbol_and_objfile): Update.
4982 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
4983 Don't allocate a minimal symbol if minsyms have already been read.
4984 (build_minimal_symbol_hash_tables): Update.
4985 (install_minimal_symbols): Do nothing if minsyms already read.
4986 Use the per-BFD obstack.
4987 (terminate_minimal_symbol_table): Use the per-BFD obstack.
4988 * objfiles.c (allocate_objfile): Call
4989 terminate_minimal_symbol_table later.
4990 (have_minimal_symbols): Update.
4991 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
4992 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
4993 Move from struct objfile.
4994 <minsyms_read>: New field.
4995 (struct objfile) <msymbols, minimal_symbol_count,
4996 msymbol_hash, msymbol_demangled_hash>: Move.
4997 (ALL_OBJFILE_MSYMBOLS): Update.
4998 * symfile.c (read_symbols): Set minsyms_read.
4999 (reread_symbols): Update.
5000 * symmisc.c (dump_objfile, dump_msymbols): Update.
5002 2014-02-26 Tom Tromey <tromey@redhat.com>
5004 * minsyms.c (msymbols_sort): Remove.
5005 * minsyms.h (msymbols_sort): Remove.
5006 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
5007 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
5008 * elfread.c (elf_symtab_read): Don't add section offsets.
5009 * xcoffread.c (record_minimal_symbol): Don't add section offset
5010 to minimal symbol address.
5011 * somread.c (text_offset, data_offset): Remove.
5012 (som_symtab_read): Don't add section offsets to minimal symbol
5014 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
5015 Don't add section offsets to minimal symbols.
5016 * coffread.c (coff_symtab_read): Don't add section offsets
5017 to minimal symbol addresses.
5018 * machoread.c (macho_symtab_add_minsym): Don't add section offset
5019 to minimal symbol addresses.
5020 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
5021 section offset to minimal symbol addresses.
5022 * mdebugread.c (parse_partial_symbols): Don't add section
5023 offset to minimal symbol addresses.
5024 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
5025 offset to minimal symbol addresses.
5027 2014-02-26 Tom Tromey <tromey@redhat.com>
5029 * ada-lang.c (ada_main_name): Update.
5030 (ada_add_standard_exceptions): Update.
5031 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
5032 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
5033 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
5034 * auxv.c (ld_so_xfer_auxv): Update.
5035 * avr-tdep.c (avr_scan_prologue): Update.
5036 * ax-gdb.c (gen_var_ref): Update.
5037 * blockframe.c (get_pc_function_start)
5038 (find_pc_partial_function_gnu_ifunc): Update.
5039 * breakpoint.c (create_overlay_event_breakpoint)
5040 (create_longjmp_master_breakpoint)
5041 (create_std_terminate_master_breakpoint)
5042 (create_exception_master_breakpoint): Update.
5043 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
5044 * c-valprint.c (c_val_print): Update.
5045 * coff-pe-read.c (add_pe_forwarded_sym): Update.
5046 * common/agent.c (agent_look_up_symbols): Update.
5047 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
5048 * dwarf2loc.c (call_site_to_target_addr): Update.
5049 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
5050 * elfread.c (elf_gnu_ifunc_record_cache)
5051 (elf_gnu_ifunc_resolve_by_got): Update.
5052 * findvar.c (default_read_var_value): Update.
5053 * frame.c (inside_main_func): Update.
5054 * frv-tdep.c (frv_frame_this_id): Update.
5055 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
5056 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
5058 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
5059 (hppa_hpux_find_dummy_bpaddr): Update.
5060 * hppa-tdep.c (hppa_symbol_address): Update.
5061 * infcmd.c (until_next_command): Update.
5062 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
5064 * linespec.c (minsym_found, add_minsym): Update.
5065 * linux-nat.c (get_signo): Update.
5066 * linux-thread-db.c (inferior_has_bug): Update.
5067 * m32c-tdep.c (m32c_return_value)
5068 (m32c_m16c_address_to_pointer): Update.
5069 * m32r-tdep.c (m32r_frame_this_id): Update.
5070 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
5071 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
5072 * maint.c (maintenance_translate_address): Update.
5073 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
5074 (frob_address): New function.
5075 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
5076 frob_address. Rename parameter to "pc_in".
5077 (compare_minimal_symbols, compact_minimal_symbols): Use raw
5079 (find_solib_trampoline_target, minimal_symbol_upper_bound):
5081 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
5082 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
5083 * objc-lang.c (find_objc_msgsend): Update.
5084 * objfiles.c (objfile_relocate1): Update.
5085 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
5086 * p-valprint.c (pascal_val_print): Update.
5087 * parse.c (write_exp_msymbol): Update.
5088 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
5089 (ppc_elfv2_skip_entrypoint): Update.
5090 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
5091 * printcmd.c (build_address_symbolic, msym_info)
5092 (address_info): Update.
5093 * proc-service.c (ps_pglobal_lookup): Update.
5094 * psymtab.c (find_pc_sect_psymtab_closer)
5095 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
5096 Change msymbol parameter to bound_minimal_symbol.
5097 * ravenscar-thread.c (get_running_thread_id): Update.
5098 * remote.c (remote_check_symbols): Update.
5099 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
5101 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
5102 * solib-dsbt.c (lm_base): Update.
5103 * solib-frv.c (lm_base, main_got): Update.
5104 * solib-irix.c (locate_base): Update.
5105 * solib-som.c (som_solib_create_inferior_hook)
5106 (link_map_start): Update.
5107 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
5108 * solib-svr4.c (elf_locate_base, enable_break): Update.
5109 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
5110 (flush_ea_cache): Update.
5111 * stabsread.c (define_symbol, scan_file_globals): Update.
5112 * stack.c (find_frame_funname): Update.
5113 * symfile-debug.c (debug_qf_expand_symtabs_matching)
5114 (debug_qf_find_pc_sect_symtab): Update.
5115 * symfile.c (simple_read_overlay_table)
5116 (simple_overlay_update): Update.
5117 * symfile.h (struct quick_symbol_functions)
5118 <find_pc_sect_symtab>: Change type of msymbol to
5119 bound_minimal_symbol.
5120 * symmisc.c (dump_msymbols): Update.
5121 * symtab.c (find_pc_sect_symtab_via_partial)
5122 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
5123 (search_symbols, print_msymbol_info): Update.
5124 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
5125 (MSYMBOL_VALUE_ADDRESS): Redefine.
5126 (BMSYMBOL_VALUE_ADDRESS): New macro.
5127 * tracepoint.c (scope_info): Update.
5128 * tui/tui-disasm.c (tui_find_disassembly_address)
5129 (tui_get_begin_asm_address): Update.
5130 * valops.c (find_function_in_inferior): Update.
5131 * value.c (value_static_field, value_fn_field): Update.
5133 2014-02-26 Tom Tromey <tromey@redhat.com>
5135 * ada-lang.c (ada_update_initial_language): Update.
5136 (ada_main_name, ada_has_this_exception_support): Update.
5137 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
5138 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
5139 * arm-tdep.c (arm_skip_stub): Update.
5140 * auxv.c (ld_so_xfer_auxv): Update.
5141 * avr-tdep.c (avr_scan_prologue): Update.
5142 * ax-gdb.c (gen_var_ref): Update.
5143 * breakpoint.c (struct breakpoint_objfile_data)
5144 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
5145 type to bound_minimal_symbol.
5146 (create_overlay_event_breakpoint)
5147 (create_longjmp_master_breakpoint)
5148 (create_std_terminate_master_breakpoint)
5149 (create_exception_master_breakpoint): Update.
5150 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
5151 * c-exp.y (classify_name): Update.
5152 * coffread.c (coff_symfile_read): Update.
5153 * common/agent.c (agent_look_up_symbols): Update.
5154 * d-lang.c (d_main_name): Update.
5155 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
5156 * dec-thread.c (enable_dec_thread): Update.
5157 * dwarf2loc.c (call_site_to_target_addr): Update.
5158 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
5159 * eval.c (evaluate_subexp_standard): Update.
5160 * findvar.c (struct minsym_lookup_data) <result>: Change type
5161 to bound_minimal_symbol.
5163 (minsym_lookup_iterator_cb, default_read_var_value): Update.
5164 * frame.c (inside_main_func): Update.
5165 * frv-tdep.c (frv_frame_this_id): Update.
5166 * gcore.c (call_target_sbrk): Update.
5167 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
5168 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
5170 * go-lang.c (go_main_name): Update.
5171 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
5172 (hppa_hpux_find_import_stub_for_addr): Update.
5173 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
5174 Update. Change return type.
5175 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
5177 * jit.c (jit_breakpoint_re_set_internal): Update.
5178 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
5180 * linux-nat.c (get_signo): Update.
5181 * linux-thread-db.c (inferior_has_bug): Update
5182 * m32c-tdep.c (m32c_return_value)
5183 (m32c_m16c_address_to_pointer): Update.
5184 * m32r-tdep.c (m32r_frame_this_id): Update.
5185 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
5186 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
5187 * minsyms.c (lookup_minimal_symbol_internal): Rename to
5188 lookup_minimal_symbol. Change return type.
5189 (lookup_minimal_symbol): Remove.
5190 (lookup_bound_minimal_symbol): Update.
5191 (lookup_minimal_symbol_text): Change return type.
5192 (lookup_minimal_symbol_solib_trampoline): Change return type.
5193 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
5194 (lookup_minimal_symbol_solib_trampoline): Change return type.
5195 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
5196 * objc-lang.c (lookup_objc_class, lookup_child_selector)
5197 (value_nsstring, find_imps): Update.
5198 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
5199 * p-lang.c (pascal_main_name): Update.
5200 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
5201 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
5202 * proc-service.c (ps_pglobal_lookup): Update.
5203 * ravenscar-thread.c (get_running_thread_msymbol): Change
5205 (has_ravenscar_runtime, get_running_thread_id): Update.
5206 * remote.c (remote_check_symbols): Update.
5207 * sol-thread.c (ps_pglobal_lookup): Update.
5208 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
5209 * solib-dsbt.c (lm_base): Update.
5210 * solib-frv.c (lm_base, frv_relocate_section_addresses):
5212 * solib-irix.c (locate_base): Update.
5213 * solib-som.c (som_solib_create_inferior_hook)
5214 (som_solib_desire_dynamic_linker_symbols, link_map_start):
5216 * solib-spu.c (spu_enable_break): Update.
5217 * solib-svr4.c (elf_locate_base, enable_break): Update.
5218 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
5219 (flush_ea_cache): Update.
5220 * stabsread.c (define_symbol): Update.
5221 * symfile.c (simple_read_overlay_table): Update.
5222 * symtab.c (find_pc_sect_line): Update.
5223 * tracepoint.c (scope_info): Update.
5224 * tui-disasm.c (tui_get_begin_asm_address): Update.
5225 * value.c (value_static_field): Update.
5227 2014-02-26 Tom Tromey <tromey@redhat.com>
5229 * minsyms.c (prim_record_minimal_symbol_full): Use
5230 SET_MSYMBOL_VALUE_ADDRESS.
5231 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
5232 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
5233 SET_MSYMBOL_VALUE_ADDRESS.
5234 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
5235 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
5237 2014-02-26 Tom Tromey <tromey@redhat.com>
5239 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
5240 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
5241 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
5242 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
5243 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
5244 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
5245 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
5246 * ada-lang.c (ada_main_name): Update.
5247 (ada_lookup_simple_minsym): Update.
5248 (ada_make_symbol_completion_list): Update.
5249 (ada_add_standard_exceptions): Update.
5250 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
5251 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
5252 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
5253 * arm-tdep.c (skip_prologue_function): Update.
5254 (arm_skip_stack_protector, arm_skip_stub): Update.
5255 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
5256 (arm_wince_skip_main_prologue): Update.
5257 * auxv.c (ld_so_xfer_auxv): Update.
5258 * avr-tdep.c (avr_scan_prologue): Update.
5259 * ax-gdb.c (gen_var_ref): Update.
5260 * block.c (call_site_for_pc): Update.
5261 * blockframe.c (get_pc_function_start): Update.
5262 (find_pc_partial_function_gnu_ifunc): Update.
5263 * breakpoint.c (create_overlay_event_breakpoint): Update.
5264 (create_longjmp_master_breakpoint): Update.
5265 (create_std_terminate_master_breakpoint): Update.
5266 (create_exception_master_breakpoint): Update.
5267 (resolve_sal_pc): Update.
5268 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
5269 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
5271 * c-valprint.c (c_val_print): Update.
5272 * coff-pe-read.c (add_pe_forwarded_sym): Update.
5273 * coffread.c (coff_symfile_read): Update.
5274 * common/agent.c (agent_look_up_symbols): Update.
5275 * dbxread.c (find_stab_function_addr): Update.
5276 (end_psymtab): Update.
5277 * dwarf2loc.c (call_site_to_target_addr): Update.
5278 (func_verify_no_selftailcall): Update.
5279 (tailcall_dump): Update.
5280 (call_site_find_chain_1): Update.
5281 (dwarf_expr_reg_to_entry_parameter): Update.
5282 * elfread.c (elf_gnu_ifunc_record_cache): Update.
5283 (elf_gnu_ifunc_resolve_by_got): Update.
5284 * f-valprint.c (info_common_command): Update.
5285 * findvar.c (read_var_value): Update.
5286 * frame.c (get_prev_frame_1): Update.
5287 (inside_main_func): Update.
5288 * frv-tdep.c (frv_skip_main_prologue): Update.
5289 (frv_frame_this_id): Update.
5290 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
5291 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
5292 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
5293 (gnuv3_skip_trampoline): Update.
5294 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
5295 (hppa64_hpux_in_solib_call_trampoline): Update.
5296 (hppa_hpux_skip_trampoline_code): Update.
5297 (hppa64_hpux_search_dummy_call_sequence): Update.
5298 (hppa_hpux_find_import_stub_for_addr): Update.
5299 (hppa_hpux_find_dummy_bpaddr): Update.
5300 * hppa-tdep.c (hppa_symbol_address)
5301 (hppa_lookup_stub_minimal_symbol): Update.
5302 * i386-tdep.c (i386_skip_main_prologue): Update.
5303 (i386_pe_skip_trampoline_code): Update.
5304 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
5305 * infcall.c (get_function_name): Update.
5306 * infcmd.c (until_next_command): Update.
5307 * jit.c (jit_breakpoint_re_set_internal): Update.
5308 (jit_inferior_init): Update.
5309 * linespec.c (minsym_found): Update.
5310 (add_minsym): Update.
5311 * linux-fork.c (info_checkpoints_command): Update.
5312 * linux-nat.c (get_signo): Update.
5313 * linux-thread-db.c (inferior_has_bug): Update.
5314 * m32c-tdep.c (m32c_return_value): Update.
5315 (m32c_m16c_address_to_pointer): Update.
5316 (m32c_m16c_pointer_to_address): Update.
5317 * m32r-tdep.c (m32r_frame_this_id): Update.
5318 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
5319 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
5320 * maint.c (maintenance_translate_address): Update.
5321 * minsyms.c (add_minsym_to_hash_table): Update.
5322 (add_minsym_to_demangled_hash_table): Update.
5323 (msymbol_objfile): Update.
5324 (lookup_minimal_symbol): Update.
5325 (iterate_over_minimal_symbols): Update.
5326 (lookup_minimal_symbol_text): Update.
5327 (lookup_minimal_symbol_by_pc_name): Update.
5328 (lookup_minimal_symbol_solib_trampoline): Update.
5329 (lookup_minimal_symbol_by_pc_section_1): Update.
5330 (lookup_minimal_symbol_and_objfile): Update.
5331 (prim_record_minimal_symbol_full): Update.
5332 (compare_minimal_symbols): Update.
5333 (compact_minimal_symbols): Update.
5334 (build_minimal_symbol_hash_tables): Update.
5335 (install_minimal_symbols): Update.
5336 (terminate_minimal_symbol_table): Update.
5337 (find_solib_trampoline_target): Update.
5338 (minimal_symbol_upper_bound): Update.
5339 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
5340 * mips-tdep.c (mips_stub_frame_sniffer): Update.
5341 (mips_skip_pic_trampoline_code): Update.
5342 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
5343 * objc-lang.c (selectors_info): Update.
5344 (classes_info): Update.
5345 (find_methods): Update.
5346 (find_imps): Update.
5347 (find_objc_msgsend): Update.
5348 * objfiles.c (objfile_relocate1): Update.
5349 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
5350 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
5351 * p-valprint.c (pascal_val_print): Update.
5352 * parse.c (write_exp_msymbol): Update.
5353 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
5354 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
5355 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
5356 * printcmd.c (build_address_symbolic): Update.
5358 (address_info): Update.
5359 * proc-service.c (ps_pglobal_lookup): Update.
5360 * psymtab.c (find_pc_sect_psymtab_closer): Update.
5361 (find_pc_sect_psymtab): Update.
5362 * python/py-framefilter.c (py_print_frame): Update.
5363 * ravenscar-thread.c (get_running_thread_id): Update.
5364 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
5366 * remote.c (remote_check_symbols): Update.
5367 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
5368 (rs6000_skip_trampoline_code): Update.
5369 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
5370 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
5371 * solib-dsbt.c (lm_base): Update.
5372 * solib-frv.c (lm_base): Update.
5374 * solib-irix.c (locate_base): Update.
5375 * solib-som.c (som_solib_create_inferior_hook): Update.
5376 (som_solib_desire_dynamic_linker_symbols): Update.
5377 (link_map_start): Update.
5378 * solib-spu.c (spu_enable_break): Update.
5379 (ocl_enable_break): Update.
5380 * solib-svr4.c (elf_locate_base): Update.
5381 (enable_break): Update.
5382 * spu-tdep.c (spu_get_overlay_table): Update.
5383 (spu_catch_start): Update.
5384 (flush_ea_cache): Update.
5385 * stabsread.c (define_symbol): Update.
5386 (scan_file_globals): Update.
5387 * stack.c (find_frame_funname): Update.
5388 (frame_info): Update.
5389 * symfile.c (simple_read_overlay_table): Update.
5390 (simple_overlay_update): Update.
5391 * symmisc.c (dump_msymbols): Update.
5392 * symtab.c (fixup_section): Update.
5393 (find_pc_sect_line): Update.
5394 (skip_prologue_sal): Update.
5395 (search_symbols): Update.
5396 (print_msymbol_info): Update.
5397 (rbreak_command): Update.
5398 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
5399 (completion_list_objc_symbol): Update.
5400 (default_make_symbol_completion_list_break_on): Update.
5401 * tracepoint.c (scope_info): Update.
5402 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
5403 (tui_get_begin_asm_address): Update.
5404 * valops.c (find_function_in_inferior): Update.
5405 * value.c (value_static_field): Update.
5406 (value_fn_field): Update.
5408 2014-02-26 Tom Tromey <tromey@redhat.com>
5410 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
5411 bound minimal symbols. Move code that knows about minsym
5413 * minsyms.c (minimal_symbol_upper_bound): ... here. New
5415 * minsyms.h (minimal_symbol_upper_bound): Declare.
5416 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
5417 minimal_symbol_upper_bound.
5419 2014-02-27 Joel Brobecker <brobecker@adacore.com>
5421 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
5422 Use the type's name if its basic type does not have a tag.
5424 2014-02-27 Joel Brobecker <brobecker@adacore.com>
5426 * dwarf2read.c (read_subrange_type): Add comment.
5428 2014-02-27 Joel Brobecker <brobecker@adacore.com>
5430 * dwarf2read.c (update_enumeration_type_from_children): New
5431 function, mostly extracted from process_structure_scope.
5432 (read_enumeration_type): Call update_enumeration_type_from_children.
5433 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
5434 and flag_flag_enum fields.
5436 2014-02-26 Pedro Alves <palves@redhat.com>
5438 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
5439 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
5440 to_xfer_partial method.
5442 2014-02-26 Pedro Alves <palves@redhat.com>
5444 * target.c (complete_target_initialization): Don't install
5445 default_xfer_partial as to_xfer_partial hook.
5447 (update_current_target): Don't INHERIT nor de_fault
5448 deprecated_xfer_memory. Delete de_fault macro.
5449 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
5450 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
5451 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
5454 2014-02-26 Pedro Alves <palves@redhat.com>
5456 * go32-nat.c (my_write_child): New function.
5457 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
5458 (go32_xfer_partial): New function.
5459 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
5460 Instead install a to_xfer_partial hook.
5462 2014-02-26 Pedro Alves <palves@redhat.com>
5464 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
5465 to_xfer_partial helper. Rewrite.
5466 (procfs_xfer_partial): New function.
5467 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
5468 Install a to_xfer_partial hook.
5470 2014-02-26 Pedro Alves <palves@redhat.com>
5472 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
5473 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
5474 (m32r_xfer_partial): New function.
5475 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
5476 Install a to_xfer_partial hook.
5478 2014-02-26 Pedro Alves <palves@redhat.com>
5480 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
5482 (mips_xfer_partial): New function.
5483 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
5484 hook. Install a to_xfer_partial hook.
5486 2014-02-26 Joel Brobecker <brobecker@adacore.com>
5488 * gdbtypes.h (create_array_type_with_stride): Add declaration.
5489 * gdbtypes.c (create_array_type_with_stride): New function,
5490 renaming create_array_type, but with an added parameter
5491 called "bit_stride".
5492 (create_array_type): Re-implement using
5493 create_array_type_with_stride.
5494 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
5495 and DW_AT_bit_stride attributes.
5497 2014-02-26 Pedro Alves <palves@redhat.com>
5499 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
5500 task-specific breakpoints.
5502 2014-02-25 Pedro Alves <palves@redhat.com>
5504 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
5505 handling of object == TARGET_OBJECT_UNWIND_TABLE.
5507 2014-02-25 Stan Shebs <stan@codesourcery.com>
5509 * defs.h: Annotate comments for Doxygen.
5511 2014-02-25 Tom Tromey <tromey@redhat.com>
5513 * target.h (target_ignore): Don't declare.
5514 * target.c (target_ignore): Remove.
5516 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
5519 * auto-load.c (auto_load_objfile_script_1): Change filename to
5522 2014-02-25 Joel Brobecker <brobecker@adacore.com>
5524 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
5525 documentation. Adjust prototype to match the target_ops
5526 to_xfer_partial method. Adjust implementation accordingly.
5528 2014-02-25 Hui Zhu <hui@codesourcery.com>
5530 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
5533 2014-02-25 Kevin Buettner <kevinb@redhat.com>
5535 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
5536 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
5537 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
5538 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
5539 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
5540 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
5541 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
5542 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
5544 (rl78_register_type): Use a data pointer type for SP and
5545 new pseudo registers mentioned above. Use a 16 bit integer
5546 type for all other register pairs.
5547 (rl78_register_name, rl78_g10_register_name): Update for
5548 new pseudo registers.
5549 (rl78_pseudo_register_read): Likewise.
5550 (rl78_pseudo_register_write): Likewise.
5551 (rl78_dwarf_reg_to_regnum): Return register numbers representing
5552 to the newly added pseudo registers.
5554 2014-02-24 Doug Evans <dje@google.com>
5556 * value.c (record_latest_value): Fix comment.
5557 * printcmd.c (print_command_1): Remove code to handle -1 return from
5558 record_latest_value.
5560 2014-02-24 Pedro Alves <palves@redhat.com>
5562 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
5563 deprecated_xfer_memory hook.
5564 (procfs_xfer_partial): Call procfs_xfer_memory instead
5565 of the deprecated_xfer_memory target hook.
5566 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
5569 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
5571 * windows-nat.c (windows_xfer_shared_libraries): Return
5572 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
5573 requested object is TARGET_OBJECT_LIBRARIES.
5575 2014-02-24 Yao Qi <yao@codesourcery.com>
5577 * target.h (enum target_xfer_status)
5578 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
5579 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
5581 * corefile.c (memory_error_message): User updated.
5582 * exec.c (section_table_read_available_memory): Likewise.
5583 * record-btrace.c (record_btrace_xfer_partial): Likewise.
5584 * target.c (target_xfer_status_to_string): Likewise.
5585 (raw_memory_xfer_partial): Likewise.
5586 (memory_xfer_partial_1, target_xfer_partial): Likewise.
5587 * valops.c (read_value_memory): Likewise.
5588 * exec.h: Update comments.
5590 2014-02-24 Yao Qi <yao@codesourcery.com>
5592 * target.c (target_xfer_status_to_string): Rename argument err
5594 * target.h (target_xfer_status_to_string): Update declaration.
5595 Replace target_xfer_error_to_string with
5596 target_xfer_status_to_string in comment.
5598 2014-02-24 Yao Qi <yao@codesourcery.com>
5600 * mips-linux-nat.c (super_close): Update its type.
5601 (mips_linux_close): Pass 'self' to super_close.
5603 2014-02-24 Yao Qi <yao@codesourcery.com>
5605 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
5606 * corefile.c (read_memory): Adjusted.
5607 * target.c (target_write_with_progress): Adjusted.
5609 2014-02-23 Yao Qi <yao@codesourcery.com>
5613 2013-10-25 Yao Qi <yao@codesourcery.com>
5615 * remote.c (remote_traceframe_info): Return early if
5616 traceframe is not selected.
5618 2013-07-19 Yao Qi <yao@codesourcery.com>
5620 * target.c (update_current_target): Change the default action
5621 of 'to_traceframe_info' from tcomplain to return_zero.
5622 * target.h (struct target_ops) <to_traceframe_info>: Add more
5625 2014-02-23 Yao Qi <yao@codesourcery.com>
5627 * valops.c (read_value_memory): Rewrite it. Call
5628 target_xfer_partial in a loop.
5629 * exec.h (section_table_available_memory): Remove declaration.
5630 Move comments to ...
5631 * exec.c (section_table_available_memory): ... here. Make it
5634 2014-02-23 Yao Qi <yao@codesourcery.com>
5636 * exec.c (section_table_read_available_memory): New function.
5637 * exec.h (section_table_read_available_memory): Declare.
5638 * ctf.c (ctf_xfer_partial): Call
5639 section_table_read_available_memory.
5640 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
5642 2014-02-23 Yao Qi <yao@codesourcery.com>
5644 * ctf.c (ctf_xfer_partial): Move code to ...
5645 * exec.c (exec_read_partial_read_only): ... it. New function.
5646 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
5647 * tracefile.c: Include "exec.h".
5648 * exec.h (exec_read_partial_read_only): Declare.
5650 2014-02-23 Yao Qi <yao@codesourcery.com>
5652 * tracefile-tfile.c (tfile_has_all_memory): Remove.
5653 (tfile_has_memory): Remove.
5654 (init_tfile_ops): Don't set fields to_has_all_memory and
5655 to_has_memory of tfile_ops.
5656 * tracefile.c (tracefile_has_all_memory): New function.
5657 (tracefile_has_memory): New function.
5658 (init_tracefile_ops): Initialize fields to_has_all_memory and
5659 to_has_memory of 'ops'.
5661 2014-02-23 Yao Qi <yao@codesourcery.com>
5663 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
5664 (ctf_thread_alive, ctf_get_trace_status): Remove.
5665 (init_ctf_ops): Don't set some fields of ctf_ops. Call
5667 * tracefile-tfile.c (tfile_get_trace_status): Remove.
5668 (tfile_has_stack, tfile_has_registers): Remove.
5669 (tfile_thread_alive): Remove.
5670 (init_tfile_ops): Don't set some fields of tfile_ops. Call
5672 * tracefile.c (tracefile_has_stack): New function.
5673 (tracefile_has_registers): New function.
5674 (tracefile_thread_alive): New function.
5675 (tracefile_get_trace_status): New function.
5676 (init_tracefile_ops): New function.
5677 * tracefile.h (init_tracefile_ops): Declare.
5679 2014-02-23 Yao Qi <yao@codesourcery.com>
5681 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
5682 (O_LARGEFILE): Likewise.
5683 (tfile_ops): Likewise.
5684 (TRACE_HEADER_SIZE): Likewise.
5685 (trace_fd, trace_frames_offset, cur_offset): Likewise.
5686 (cur_data_size): Likewise.
5687 (tfile_read, tfile_open, tfile_interp_line): Likewise.
5688 (tfile_close, tfile_files_info): Likewise.
5689 (tfile_get_trace_status): Likewise.
5690 (tfile_get_tracepoint_status): Likewise.
5691 (tfile_get_traceframe_address): Likewise.
5692 (tfile_trace_find, match_blocktype): Likewise.
5693 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
5694 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
5695 (tfile_get_trace_state_variable_value): Likewise.
5696 (tfile_has_all_memory, tfile_has_memory): Likewise.
5697 (tfile_has_stack, tfile_has_registers): Likewise.
5698 (tfile_thread_alive, build_traceframe_info): Likewise.
5699 (tfile_traceframe_info, init_tfile_ops): Likewise.
5700 (_initialize_tracepoint): Don't call init_tfile_ops
5701 and add_target_with_completer.
5702 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
5703 exec.h, completer.h and filenames.h.
5704 (_initialize_tracefile_tfile): New function.
5706 2014-02-23 Yao Qi <yao@codesourcery.com>
5708 * Makefile.in (REMOTE_OBS): Append tracefile.o and
5710 (HFILES_NO_SRCDIR): Add tracefile.h.
5711 * ctf.c: Include "tracefile.h".
5712 * tracefile.h: New file.
5713 * tracefile.c: New file
5714 * tracefile-tfile.c: New file.
5715 * tracepoint.c: Include "tracefile.h".
5716 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
5717 (stop_reason_names): Add const.
5718 (trace_file_writer_xfree): Move it to tracefile.c.
5719 (trace_save, trace_save_command, trace_save_tfile): Likewise.
5720 (trace_save_ctf): Likewise.
5721 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
5722 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
5723 (tfile_write_header, tfile_write_regblock_type): Likewise.
5724 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
5725 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
5726 (tfile_write_raw_data, tfile_end): Likewise.
5727 (tfile_trace_file_writer_new): Likewise.
5728 (free_uploaded_tp): Make it extern.
5729 (free_uploaded_tsv): Make it extern.
5730 (_initialize_tracepoint): Move code to register command 'tsave'
5732 * tracepoint.h (stop_reason_names): Declare.
5733 (struct trace_frame_write_ops): Move it to tracefile.h.
5734 (struct trace_file_write_ops): Likewise.
5735 (struct trace_file_writer): Likewise.
5736 (free_uploaded_tsvs, free_uploaded_tps): Declare.
5738 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5741 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
5743 (get_cores_used_by_process): New parameter num_cores, use it.
5744 (linux_xfer_osdata_processes): Pass num_cores to it.
5745 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
5748 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
5750 * target.c (memory_xfer_partial): Fix length arg in call to
5751 breakpoint_xfer_memory.
5753 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
5756 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
5757 number comes after the + or - signs. Adjust length of register
5758 name to be extracted.
5760 2014-02-20 Tom Tromey <tromey@redhat.com>
5762 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
5763 (ada_varobj_ops): Mark "extern".
5765 2014-02-20 Tom Tromey <tromey@redhat.com>
5767 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
5769 2014-02-20 Doug Evans <xdje42@gmail.com>
5771 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
5772 All callers updated.
5773 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
5774 All callers updated.
5775 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
5776 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
5778 2014-02-20 lin zuojian <manjian2006@gmail.com>
5779 Joel Brobecker <brobecker@adacore.com>
5780 Doug Evans <xdje42@gmail.com>
5783 * dwarf2read.c (struct die_info): New member in_process.
5784 (reset_die_in_process): New function.
5785 (process_die): Set it at the start, reset when returning.
5786 (inherit_abstract_dies): Only call process_die if origin_child_die
5787 not already being processed.
5789 2014-02-20 Joel Brobecker <brobecker@adacore.com>
5791 * windows-nat.c (handle_unload_dll): Add function documentation.
5792 (do_initial_windows_stuff): Add comment explaining why we wait
5793 until after inferior initialization has finished before
5794 processing all DLLs.
5796 2014-02-20 Joel Brobecker <brobecker@adacore.com>
5798 * windows-nat.c (get_module_name): Delete.
5799 (windows_get_exec_module_filename): New function, mostly
5800 inspired from get_module_name.
5801 (windows_pid_to_exec_file): Replace call to get_module_name
5802 by call to windows_get_exec_module_filename.
5804 2014-02-20 Joel Brobecker <brobecker@adacore.com>
5806 * windows-nat.c (handle_load_dll): Rewrite this function's
5807 introductory comment. Remove code using get_module_name
5808 to get the DLL's name.
5810 2014-02-20 Joel Brobecker <brobecker@adacore.com>
5812 * windows-nat.c (get_windows_debug_event): Ignore
5813 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
5814 if windows_initialization_done == 0.
5815 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
5816 Adjust implementation to always load all DLLs.
5817 (do_initial_windows_stuff): Replace call to
5818 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
5820 2014-02-20 Joel Brobecker <brobecker@adacore.com>
5822 * windows-nat.c (_initialize_windows_nat): Deprecate the
5823 "dll-symbols" command. Turn the "add-shared-symbol-files"
5824 and "assf" aliases into commands, and deprecate them as well.
5825 * NEWS: Add entry explaining that "dll-symbols" and its two
5826 aliases are now deprecated.
5828 2014-02-20 Joel Brobecker <brobecker@adacore.com>
5830 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
5831 new-line in debug string. Remove trailing spaces.
5833 2014-02-19 Stan Shebs <stan@codesourcery.com>
5835 * darwin-nat.c (darwin_xfer_partial): Fix return type.
5837 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
5839 * NEWS: Add entry for the new feature
5840 * python/py-value.c (valpy_binop): Call value_x_binop for struct
5843 2014-02-19 Stan Shebs <stan@codesourcery.com>
5845 * MAINTAINERS: List Yao Qi as nios2 maintainer.
5847 2014-02-19 Pedro Alves <palves@redhat.com>
5849 * common/ptid.h (struct ptid): Mention that process_stratum
5850 targets should prefer ptid.lwp.
5852 2014-02-19 Pedro Alves <palves@redhat.com>
5854 * remote.c (remote_thread_alive, write_ptid, read_ptid)
5855 (read_ptid, remote_newthread_step, remote_threads_extra_info)
5856 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
5857 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
5858 store remote thread ids rather than ptid.tid.
5859 (_initialize_remote): Adjust.
5861 2014-02-19 Tom Tromey <tromey@redhat.com>
5863 * target.c (target_get_unwinder): Rewrite.
5864 (target_get_tailcall_unwinder): Rewrite.
5865 * record-btrace.c (record_btrace_to_get_unwinder): New function.
5866 (record_btrace_to_get_tailcall_unwinder): New function.
5867 (init_record_btrace_ops): Update.
5868 * target.h (struct target_ops) <to_get_unwinder,
5869 to_get_tailcall_unwinder>: Now function pointers. Use
5870 TARGET_DEFAULT_RETURN.
5872 2014-02-19 Tom Tromey <tromey@redhat.com>
5874 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
5876 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
5878 2014-02-19 Tom Tromey <tromey@redhat.com>
5880 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
5882 * target-delegates.c: Rebuild.
5883 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
5884 TARGET_DEFAULT_FUNC.
5885 * target.c (default_target_decr_pc_after_break): Rename from
5886 forward_target_decr_pc_after_break. Simplify.
5887 (target_decr_pc_after_break): Rely on delegation.
5889 2014-02-19 Tom Tromey <tromey@redhat.com>
5891 * target.c (update_current_target): Do not INHERIT to_doc or
5892 to_magic. Do not de_fault to_open or to_close.
5894 2014-02-19 Tom Tromey <tromey@redhat.com>
5896 * gcore.h (objfile_find_memory_regions): Declare.
5897 * gcore.c (objfile_find_memory_regions): No longer static. Add
5899 (_initialize_gcore): Don't call exec_set_find_memory_regions.
5900 * exec.c: Include gcore.h.
5901 (exec_set_find_memory_regions): Remove.
5902 (exec_find_memory_regions): Remove.
5903 (exec_do_find_memory_regions): Remove.
5904 (init_exec_ops): Update.
5905 * defs.h (exec_set_find_memory_regions): Remove.
5907 2014-02-19 Tom Tromey <tromey@redhat.com>
5909 * target-delegates.c: Rebuild.
5910 * target.h (struct target_ops) <to_extra_thread_info,
5911 to_thread_name, to_pid_to_exec_file, to_get_section_table,
5912 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
5913 not 0, in TARGET_DEFAULT_RETURN.
5915 2014-02-19 Tom Tromey <tromey@redhat.com>
5917 * target.c (complete_target_initialization): Remove casts. Use
5918 return_zero_has_execution.
5919 (return_zero): Add "ignore" argument.
5920 (return_zero_has_execution): New function.
5921 (init_dummy_target): Remove casts. Use
5922 return_zero_has_execution.
5924 2014-02-19 Tom Tromey <tromey@redhat.com>
5926 * target.c (update_current_target): Update comments. Do not
5929 2014-02-19 Tom Tromey <tromey@redhat.com>
5931 * arm-linux-nat.c (arm_linux_read_description): Delegate when
5933 * corelow.c (core_read_description): Delegate when needed.
5934 * remote.c (remote_read_description): Delegate when needed.
5935 * target-delegates.c: Rebuild.
5936 * target.c (target_read_description): Rewrite.
5937 * target.h (struct target_ops) <to_read_description>: Update
5938 comment. Use TARGET_DEFAULT_RETURN.
5940 2014-02-19 Tom Tromey <tromey@redhat.com>
5942 * target-delegates.c: Rebuild.
5943 * target.c (update_current_target): Don't inherit or default
5945 (find_default_run_target): Check against delegate_can_run.
5946 * target.h (struct target_ops) <to_can_run>: Use
5947 TARGET_DEFAULT_RETURN.
5949 2014-02-19 Tom Tromey <tromey@redhat.com>
5951 * target-delegates.c: Rebuild.
5952 * target.c (target_disconnect): Unconditionally delegate.
5953 * target.h (struct target_ops) <to_disconnect>: Use
5954 TARGET_DEFAULT_NORETURN.
5956 2014-02-19 Tom Tromey <tromey@redhat.com>
5958 * record.c (record_stop): Unconditionally delegate.
5959 * target-delegates.c: Rebuild.
5960 * target.c (target_stop_recording): Unconditionally delegate.
5961 * target.h (struct target_ops) <to_stop_recording>: Use
5962 TARGET_DEFAULT_IGNORE.
5964 2014-02-19 Tom Tromey <tromey@redhat.com>
5966 * target-delegates.c: Rebuild.
5967 * target.c (target_enable_btrace): Unconditionally delegate.
5968 * target.h (struct target_ops) <to_enable_btrace>: Use
5969 TARGET_DEFAULT_NORETURN.
5971 2014-02-19 Tom Tromey <tromey@redhat.com>
5973 * target-delegates.c: Rebuild.
5974 * target.c (target_read_btrace): Unconditionally delegate.
5975 * target.h (struct target_ops) <to_read_btrace>: Use
5976 TARGET_DEFAULT_NORETURN.
5978 2014-02-19 Tom Tromey <tromey@redhat.com>
5980 * target-delegates.c: Rebuild.
5981 * target.c (target_teardown_btrace): Unconditionally delegate.
5982 * target.h (struct target_ops) <to_teardown_btrace>: Use
5983 TARGET_DEFAULT_NORETURN.
5985 2014-02-19 Tom Tromey <tromey@redhat.com>
5987 * target-delegates.c: Rebuild.
5988 * target.c (target_disable_btrace): Unconditionally delegate.
5989 * target.h (struct target_ops) <to_disable_btrace>: Use
5990 TARGET_DEFAULT_NORETURN.
5992 2014-02-19 Tom Tromey <tromey@redhat.com>
5994 * target-delegates.c: Rebuild.
5995 * target.c (default_search_memory): New function.
5996 (simple_search_memory): Update comment.
5997 (target_search_memory): Unconditionally delegate.
5998 * target.h (struct target_ops) <to_search_memory>: Use
5999 TARGET_DEFAULT_FUNC.
6001 2014-02-19 Tom Tromey <tromey@redhat.com>
6003 * auxv.c (default_auxv_parse): No longer static.
6004 (target_auxv_parse): Unconditionally delegate.
6005 * auxv.h (default_auxv_parse): Declare.
6006 * target-delegates.c: Rebuild.
6007 * target.c: Include auxv.h.
6008 * target.h (struct target_ops) <to_auxv_parse>: Use
6009 TARGET_DEFAULT_FUNC.
6011 2014-02-19 Tom Tromey <tromey@redhat.com>
6013 * target-delegates.c: Rebuild.
6014 * target.c (target_memory_map): Unconditionally delegate.
6015 * target.h (struct target_ops) <to_memory_map>: Use
6016 TARGET_DEFAULT_RETURN.
6018 2014-02-19 Tom Tromey <tromey@redhat.com>
6020 * target-delegates.c: Rebuild.
6021 * target.c (target_thread_alive): Unconditionally delegate.
6022 * target.h (struct target_ops) <to_thread_alive>: Use
6023 TARGET_DEFAULT_RETURN.
6025 2014-02-19 Tom Tromey <tromey@redhat.com>
6027 * target-delegates.c: Rebuild.
6028 * target.c (target_save_record): Unconditionally delegate.
6029 * target.h (struct target_ops) <to_save_record>: Use
6030 TARGET_DEFAULT_NORETURN.
6032 2014-02-19 Tom Tromey <tromey@redhat.com>
6034 * target-delegates.c: Rebuild.
6035 * target.c (target_delete_record): Unconditionally delegate.
6036 * target.h (struct target_ops) <to_delete_record>: Use
6037 TARGET_DEFAULT_NORETURN.
6039 2014-02-19 Tom Tromey <tromey@redhat.com>
6041 * target-delegates.c: Rebuild.
6042 * target.c (target_record_is_replaying): Unconditionally
6044 * target.h (struct target_ops) <to_record_is_replaying>: Use
6045 TARGET_DEFAULT_RETURN.
6047 2014-02-19 Tom Tromey <tromey@redhat.com>
6049 * target-delegates.c: Rebuild.
6050 * target.c (target_goto_record_begin): Unconditionally delegate.
6051 * target.h (struct target_ops) <to_goto_record_begin>: Use
6052 TARGET_DEFAULT_NORETURN.
6054 2014-02-19 Tom Tromey <tromey@redhat.com>
6056 * target-delegates.c: Rebuild.
6057 * target.c (target_goto_record_end): Unconditionally delegate.
6058 * target.h (struct target_ops) <to_goto_record_end>: Use
6059 TARGET_DEFAULT_NORETURN.
6061 2014-02-19 Tom Tromey <tromey@redhat.com>
6063 * target-delegates.c: Rebuild.
6064 * target.c (target_goto_record): Unconditionally delegate.
6065 * target.h (struct target_ops) <to_goto_record>: Use
6066 TARGET_DEFAULT_NORETURN.
6068 2014-02-19 Tom Tromey <tromey@redhat.com>
6070 * target-delegates.c: Rebuild.
6071 * target.c (target_insn_history): Unconditionally delegate.
6072 * target.h (struct target_ops) <to_insn_history>: Use
6073 TARGET_DEFAULT_NORETURN.
6075 2014-02-19 Tom Tromey <tromey@redhat.com>
6077 * target-delegates.c: Rebuild.
6078 * target.c (target_insn_history_from): Unconditionally delegate.
6079 * target.h (struct target_ops) <to_insn_history_from>: Use
6080 TARGET_DEFAULT_NORETURN.
6082 2014-02-19 Tom Tromey <tromey@redhat.com>
6084 * target-delegates.c: Rebuild.
6085 * target.c (target_insn_history_range): Unconditionally delegate.
6086 * target.h (struct target_ops) <to_insn_history_range>: Use
6087 TARGET_DEFAULT_NORETURN.
6089 2014-02-19 Tom Tromey <tromey@redhat.com>
6091 * target-delegates.c: Rebuild.
6092 * target.c (target_call_history): Unconditionally delegate.
6093 * target.h (struct target_ops) <to_call_history>: Use
6094 TARGET_DEFAULT_NORETURN.
6096 2014-02-19 Tom Tromey <tromey@redhat.com>
6098 * target-delegates.c: Rebuild.
6099 * target.c (target_call_history_from): Unconditionally delegate.
6100 * target.h (struct target_ops) <to_call_history_from>: Use
6101 TARGET_DEFAULT_NORETURN.
6103 2014-02-19 Tom Tromey <tromey@redhat.com>
6105 * target-delegates.c: Rebuild.
6106 * target.c (target_call_history_range): Unconditionally delegate.
6107 * target.h (struct target_ops) <to_call_history_range>: Use
6108 TARGET_DEFAULT_NORETURN.
6110 2014-02-19 Tom Tromey <tromey@redhat.com>
6112 * target-delegates.c: Rebuild.
6113 * target.c (target_verify_memory): Unconditionally delegate.
6114 * target.h (struct target_ops) <to_verify_memory>: Use
6115 TARGET_DEFAULT_NORETURN.
6117 2014-02-19 Tom Tromey <tromey@redhat.com>
6119 * target-delegates.c: Rebuild.
6120 * target.c (target_core_of_thread): Unconditionally delegate.
6121 * target.h (struct target_ops) <to_core_of_thread>: Use
6122 TARGET_DEFAULT_RETURN.
6124 2014-02-19 Tom Tromey <tromey@redhat.com>
6126 * target-delegates.c: Rebuild.
6127 * target.c (target_flash_done): Unconditionally delegate.
6128 * target.h (struct target_ops) <to_flash_done>: Use
6129 TARGET_DEFAULT_NORETURN.
6131 2014-02-19 Tom Tromey <tromey@redhat.com>
6133 * target-delegates.c: Rebuild.
6134 * target.c (target_flash_erase): Unconditionally delegate.
6135 * target.h (struct target_ops) <to_flash_erase>: Use
6136 TARGET_DEFAULT_NORETURN.
6138 2014-02-19 Tom Tromey <tromey@redhat.com>
6140 * target-delegates.c: Rebuild.
6141 * target.c (target_get_section_table): Unconditionally delegate.
6142 * target.h (struct target_ops) <to_get_section_table>: Use
6143 TARGET_DEFAULT_RETURN.
6145 2014-02-19 Tom Tromey <tromey@redhat.com>
6147 * target-delegates.c: Rebuild.
6148 * target.c (target_pid_to_str): Unconditionally delegate.
6149 (init_dummy_target): Don't initialize to_pid_to_str.
6150 (default_pid_to_str): Rename from dummy_pid_to_str.
6151 * target.h (struct target_ops) <to_pid_to_str>: Use
6152 TARGET_DEFAULT_FUNC.
6154 2014-02-19 Tom Tromey <tromey@redhat.com>
6156 * target-delegates.c: Rebuild.
6157 * target.c (target_find_new_threads): Unconditionally delegate.
6158 * target.h (struct target_ops) <to_find_new_threads>: Use
6159 TARGET_DEFAULT_RETURN.
6161 2014-02-19 Tom Tromey <tromey@redhat.com>
6163 * target-delegates.c: Rebuild.
6164 * target.c (target_program_signals): Unconditionally delegate.
6165 * target.h (struct target_ops) <to_program_signals>: Use
6166 TARGET_DEFAULT_IGNORE.
6168 2014-02-19 Tom Tromey <tromey@redhat.com>
6170 * target-delegates.c: Rebuild.
6171 * target.c (target_pass_signals): Unconditionally delegate.
6172 * target.h (struct target_ops) <to_pass_signals>: Use
6173 TARGET_DEFAULT_IGNORE.
6175 2014-02-19 Tom Tromey <tromey@redhat.com>
6177 * target-delegates.c: Rebuild.
6178 * target.c (default_mourn_inferior): New function.
6179 (target_mourn_inferior): Unconditionally delegate.
6180 * target.h (struct target_ops) <to_mourn_inferior>: Use
6181 TARGET_DEFAULT_FUNC.
6183 2014-02-19 Tom Tromey <tromey@redhat.com>
6185 * target-delegates.c: Rebuild.
6186 * target.c (default_follow_fork): New function.
6187 (target_follow_fork): Unconditionally delegate.
6188 * target.h (struct target_ops) <to_follow_fork>: Use
6189 TARGET_DEFAULT_FUNC.
6191 2014-02-19 Tom Tromey <tromey@redhat.com>
6193 * target-delegates.c: Rebuild.
6194 * target.c (target_kill): Unconditionally delegate.
6195 * target.h (struct target_ops) <to_kill>: Use
6196 TARGET_DEFAULT_NORETURN.
6198 2014-02-19 Tom Tromey <tromey@redhat.com>
6200 * target-delegates.c: Rebuild.
6201 * target.c (target_masked_watch_num_registers): Unconditionally
6203 * target.h (struct target_ops) <to_masked_watch_num_registers>:
6204 Use TARGET_DEFAULT_RETURN.
6206 2014-02-19 Tom Tromey <tromey@redhat.com>
6208 * target-delegates.c: Rebuild.
6209 * target.c (target_remove_mask_watchpoint): Unconditionally
6211 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
6212 TARGET_DEFAULT_RETURN.
6214 2014-02-19 Tom Tromey <tromey@redhat.com>
6216 * target-delegates.c: Rebuild.
6217 * target.c (target_insert_mask_watchpoint): Unconditionally
6219 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
6220 TARGET_DEFAULT_RETURN.
6222 2014-02-19 Tom Tromey <tromey@redhat.com>
6224 * target-delegates.c: Rebuild.
6225 * target.c (target_ranged_break_num_registers): Unconditionally
6227 * target.h (struct target_ops) <to_ranged_break_num_registers>:
6228 Use TARGET_DEFAULT_RETURN.
6230 2014-02-19 Tom Tromey <tromey@redhat.com>
6232 * target-delegates.c: Rebuild.
6233 * target.c (target_fetch_registers): Unconditionally delegate.
6234 * target.h (struct target_ops) <to_fetch_registers>: Use
6235 TARGET_DEFAULT_NORETURN.
6237 2014-02-19 Tom Tromey <tromey@redhat.com>
6239 * target-delegates.c: Rebuild.
6240 * target.c (update_current_target): Don't inherit or default
6242 * target.h (struct target_ops) <to_stop>: Use
6243 TARGET_DEFAULT_IGNORE.
6245 2014-02-19 Tom Tromey <tromey@redhat.com>
6247 * target-delegates.c: Rebuild.
6248 * target.c (update_current_target): Don't inherit or default
6249 to_can_run_breakpoint_commands.
6250 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
6251 Use TARGET_DEFAULT_RETURN.
6253 2014-02-19 Tom Tromey <tromey@redhat.com>
6255 * target-delegates.c: Rebuild.
6256 * target.c (update_current_target): Don't inherit or default
6257 to_supports_evaluation_of_breakpoint_conditions.
6258 * target.h (struct target_ops)
6259 <to_supports_evaluation_of_breakpoint_conditions>: Use
6260 TARGET_DEFAULT_RETURN.
6262 2014-02-19 Tom Tromey <tromey@redhat.com>
6264 * target-delegates.c: Rebuild.
6265 * target.c (update_current_target): Don't inherit or default
6266 to_augmented_libraries_svr4_read.
6267 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
6268 Use TARGET_DEFAULT_RETURN.
6270 2014-02-19 Tom Tromey <tromey@redhat.com>
6272 * target-delegates.c: Rebuild.
6273 * target.c (update_current_target): Don't inherit or default
6275 * target.h (struct target_ops) <to_can_use_agent>: Use
6276 TARGET_DEFAULT_RETURN.
6278 2014-02-19 Tom Tromey <tromey@redhat.com>
6280 * target-delegates.c: Rebuild.
6281 * target.c (update_current_target): Don't inherit or default
6283 * target.h (struct target_ops) <to_use_agent>: Use
6284 TARGET_DEFAULT_NORETURN.
6286 2014-02-19 Tom Tromey <tromey@redhat.com>
6288 * target-delegates.c: Rebuild.
6289 * target.c (update_current_target): Don't inherit or default
6291 (return_null): Remove.
6292 * target.h (struct target_ops) <to_traceframe_info>: Use
6293 TARGET_DEFAULT_RETURN.
6295 2014-02-19 Tom Tromey <tromey@redhat.com>
6297 * target-delegates.c: Rebuild.
6298 * target.c (update_current_target): Don't inherit or default
6299 to_static_tracepoint_markers_by_strid.
6300 * target.h (struct target_ops)
6301 <to_static_tracepoint_markers_by_strid>: Use
6302 TARGET_DEFAULT_NORETURN.
6304 2014-02-19 Tom Tromey <tromey@redhat.com>
6306 * target-delegates.c: Rebuild.
6307 * target.c (update_current_target): Don't inherit or default
6308 to_static_tracepoint_marker_at.
6309 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
6310 Use TARGET_DEFAULT_RETURN.
6312 2014-02-19 Tom Tromey <tromey@redhat.com>
6314 * target-delegates.c: Rebuild.
6315 * target.c (update_current_target): Don't inherit or default
6317 * target.h (struct target_ops) <to_set_permissions>: Use
6318 TARGET_DEFAULT_IGNORE.
6320 2014-02-19 Tom Tromey <tromey@redhat.com>
6322 * target-delegates.c: Rebuild.
6323 * target.c (update_current_target): Don't inherit or default
6325 * target.h (struct target_ops) <to_get_tib_address>: Use
6326 TARGET_DEFAULT_NORETURN.
6328 2014-02-19 Tom Tromey <tromey@redhat.com>
6330 * target-delegates.c: Rebuild.
6331 * target.c (update_current_target): Don't inherit or default
6333 * target.h (struct target_ops) <to_set_trace_notes>: Use
6334 TARGET_DEFAULT_RETURN.
6336 2014-02-19 Tom Tromey <tromey@redhat.com>
6338 * target-delegates.c: Rebuild.
6339 * target.c (update_current_target): Don't initialize
6340 to_set_trace_buffer_size.
6341 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
6342 TARGET_DEFAULT_IGNORE.
6344 2014-02-19 Tom Tromey <tromey@redhat.com>
6346 * target-delegates.c: Rebuild.
6347 * target.c (update_current_target): Don't inherit or default
6348 to_set_circular_trace_buffer.
6349 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
6350 TARGET_DEFAULT_IGNORE.
6352 2014-02-19 Tom Tromey <tromey@redhat.com>
6354 * target-delegates.c: Rebuild.
6355 * target.c (update_current_target): Don't inherit or default
6356 to_set_disconnected_tracing.
6357 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
6358 TARGET_DEFAULT_IGNORE.
6360 2014-02-19 Tom Tromey <tromey@redhat.com>
6362 * target-delegates.c: Rebuild.
6363 * target.c (update_current_target): Don't inherit or default
6364 to_get_min_fast_tracepoint_insn_len.
6365 (return_minus_one): Remove.
6366 * target.h (struct target_ops)
6367 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
6369 2014-02-19 Tom Tromey <tromey@redhat.com>
6371 * target-delegates.c: Rebuild.
6372 * target.c (update_current_target): Don't inherit or default
6373 to_get_raw_trace_data.
6374 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
6375 TARGET_DEFAULT_NORETURN.
6377 2014-02-19 Tom Tromey <tromey@redhat.com>
6379 * target-delegates.c: Rebuild.
6380 * target.c (update_current_target): Don't inherit or default
6381 to_upload_trace_state_variables.
6382 * target.h (struct target_ops) <to_upload_trace_state_variables>:
6383 Use TARGET_DEFAULT_RETURN.
6385 2014-02-19 Tom Tromey <tromey@redhat.com>
6387 * target-delegates.c: Rebuild.
6388 * target.c (update_current_target): Don't inherit or default
6389 to_upload_tracepoints.
6390 * target.h (struct target_ops) <to_upload_tracepoints>: Use
6391 TARGET_DEFAULT_RETURN.
6393 2014-02-19 Tom Tromey <tromey@redhat.com>
6395 * target-delegates.c: Rebuild.
6396 * target.c (update_current_target): Don't inherit or default
6398 * target.h (struct target_ops) <to_save_trace_data>: Use
6399 TARGET_DEFAULT_NORETURN.
6401 2014-02-19 Tom Tromey <tromey@redhat.com>
6403 * target-delegates.c: Rebuild.
6404 * target.c (update_current_target): Don't inherit or default
6405 to_get_trace_state_variable_value.
6406 * target.h (struct target_ops)
6407 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
6409 2014-02-19 Tom Tromey <tromey@redhat.com>
6411 * target-delegates.c: Rebuild.
6412 * target.c (update_current_target): Don't inherit or default
6414 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
6416 2014-02-19 Tom Tromey <tromey@redhat.com>
6418 * target-delegates.c: Rebuild.
6419 * target.c (update_current_target): Don't inherit or default
6421 * target.h (struct target_ops) <to_trace_stop>: Use
6422 TARGET_DEFAULT_NORETURN.
6424 2014-02-19 Tom Tromey <tromey@redhat.com>
6426 * target-delegates.c: Rebuild.
6427 * target.c (update_current_target): Don't inherit or default
6428 to_get_tracepoint_status.
6429 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
6430 TARGET_DEFAULT_NORETURN.
6432 2014-02-19 Tom Tromey <tromey@redhat.com>
6434 * target-delegates.c: Rebuild.
6435 * target.c (update_current_target): Don't inherit or default
6436 to_get_trace_status.
6437 * target.h (struct target_ops) <to_get_trace_status>: Use
6438 TARGET_DEFAULT_RETURN.
6440 2014-02-19 Tom Tromey <tromey@redhat.com>
6442 * target-delegates.c: Rebuild.
6443 * target.c (update_current_target): Don't inherit or default
6445 * target.h (struct target_ops) <to_trace_start>: Use
6446 TARGET_DEFAULT_NORETURN.
6448 2014-02-19 Tom Tromey <tromey@redhat.com>
6450 * target-delegates.c: Rebuild.
6451 * target.c (update_current_target): Don't inherit or default
6452 to_trace_set_readonly_regions.
6453 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
6454 Use TARGET_DEFAULT_NORETURN.
6456 2014-02-19 Tom Tromey <tromey@redhat.com>
6458 * target-delegates.c: Rebuild.
6459 * target.c (update_current_target): Don't inherit or default
6460 to_disable_tracepoint.
6461 * target.h (struct target_ops) <to_disable_tracepoint>: Use
6462 TARGET_DEFAULT_NORETURN.
6464 2014-02-19 Tom Tromey <tromey@redhat.com>
6466 * target-delegates.c: Rebuild.
6467 * target.c (update_current_target): Don't inherit or default
6468 to_enable_tracepoint.
6469 * target.h (struct target_ops) <to_enable_tracepoint>: Use
6470 TARGET_DEFAULT_NORETURN.
6472 2014-02-19 Tom Tromey <tromey@redhat.com>
6474 * target-delegates.c: Rebuild.
6475 * target.c (update_current_target): Don't inherit or default
6476 to_download_trace_state_variable.
6477 * target.h (struct target_ops) <to_download_trace_state_variable>:
6478 Use TARGET_DEFAULT_NORETURN.
6480 2014-02-19 Tom Tromey <tromey@redhat.com>
6482 * target-delegates.c: Rebuild.
6483 * target.c (update_current_target): Don't inherit or default
6484 to_can_download_tracepoint.
6485 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
6486 TARGET_DEFAULT_RETURN.
6488 2014-02-19 Tom Tromey <tromey@redhat.com>
6490 * target-delegates.c: Rebuild.
6491 * target.c (update_current_target): Don't inherit or default
6492 to_download_tracepoint.
6493 * target.h (struct target_ops) <to_download_tracepoint>: Use
6494 TARGET_DEFAULT_NORETURN.
6496 2014-02-19 Tom Tromey <tromey@redhat.com>
6498 * target-delegates.c: Rebuild.
6499 * target.c (update_current_target): Don't inherit or default
6501 * target.h (struct target_ops) <to_trace_init>: Use
6502 TARGET_DEFAULT_RETURN.
6504 2014-02-19 Tom Tromey <tromey@redhat.com>
6506 * target-delegates.c: Rebuild.
6507 * target.c (update_current_target): Don't inherit or default
6508 to_supports_string_tracing.
6509 * target.h (struct target_ops) <to_supports_string_tracing>: Use
6510 TARGET_DEFAULT_RETURN.
6512 2014-02-19 Tom Tromey <tromey@redhat.com>
6514 * target-delegates.c: Rebuild.
6515 * target.c (update_current_target): Don't inherit or default
6516 to_supports_enable_disable_tracepoint.
6517 * target.h (struct target_ops)
6518 <to_supports_enable_disable_tracepoint>: Use
6519 TARGET_DEFAULT_RETURN.
6521 2014-02-19 Tom Tromey <tromey@redhat.com>
6523 * target-delegates.c: Rebuild.
6524 * target.c (update_current_target): Don't inherit or default
6525 to_supports_multi_process.
6526 * target.h (struct target_ops) <to_supports_multi_process>: Use
6527 TARGET_DEFAULT_RETURN.
6529 2014-02-19 Tom Tromey <tromey@redhat.com>
6531 * target-delegates.c: Rebuild.
6532 * target.c (update_current_target): Don't inherit or default
6533 to_get_ada_task_ptid.
6534 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
6535 TARGET_DEFAULT_FUNC.
6537 2014-02-19 Tom Tromey <tromey@redhat.com>
6539 * target-delegates.c: Rebuild.
6540 * target.c (update_current_target): Don't inherit or default
6541 to_thread_architecture.
6542 * target.h (struct target_ops) <to_thread_architecture>: Use
6543 TARGET_DEFAULT_FUNC.
6545 2014-02-19 Tom Tromey <tromey@redhat.com>
6547 * target-delegates.c: Rebuild.
6548 * target.c (update_current_target): Don't inherit or default
6549 to_execution_direction.
6550 * target.h (struct target_ops) <to_execution_direction>: Use
6551 TARGET_DEFAULT_FUNC.
6553 2014-02-19 Tom Tromey <tromey@redhat.com>
6555 * target-delegates.c: Rebuild.
6556 * target.c (update_current_target): Don't inherit or default
6557 to_can_execute_reverse.
6558 * target.h (struct target_ops) <to_can_execute_reverse>: Use
6559 TARGET_DEFAULT_RETURN.
6560 (target_can_execute_reverse): Unconditionally delegate.
6562 2014-02-19 Tom Tromey <tromey@redhat.com>
6564 * target-delegates.c: Rebuild.
6565 * target.c (update_current_target): Don't inherit or default
6567 (dummy_goto_bookmark): Remove.
6568 (init_dummy_target): Don't inherit or default to_goto_bookmark.
6569 * target.h (struct target_ops) <to_goto_bookmark>: Use
6570 TARGET_DEFAULT_NORETURN.
6572 2014-02-19 Tom Tromey <tromey@redhat.com>
6574 * target-delegates.c: Rebuild.
6575 * target.c (update_current_target): Don't inherit or default
6577 (dummy_get_bookmark): Remove.
6578 (init_dummy_target): Don't inherit or default to_get_bookmark.
6579 * target.h (struct target_ops) <to_get_bookmark>: Use
6580 TARGET_DEFAULT_NORETURN
6582 2014-02-19 Tom Tromey <tromey@redhat.com>
6584 * target-delegates.c: Rebuild.
6585 * target.c (update_current_target): Don't inherit or default
6586 to_make_corefile_notes.
6587 (init_dummy_target): Don't initialize to_make_corefile_notes.
6588 * target.h (struct target_ops) <to_make_corefile_notes>: Use
6589 TARGET_DEFAULT_FUNC.
6591 2014-02-19 Tom Tromey <tromey@redhat.com>
6593 * target-delegates.c: Rebuild.
6594 * target.c (update_current_target): Don't inherit or default
6595 to_find_memory_regions.
6596 (init_dummy_target): Don't initialize to_find_memory_regions.
6597 * target.h (struct target_ops) <to_find_memory_regions>: Use
6598 TARGET_DEFAULT_FUNC.
6600 2014-02-19 Tom Tromey <tromey@redhat.com>
6602 * target-delegates.c: Rebuild.
6603 * target.c (update_current_target): Don't inherit or default
6605 * target.h (struct target_ops) <to_log_command>: Use
6606 TARGET_DEFAULT_IGNORE.
6607 (target_log_command): Unconditionally delegate.
6609 2014-02-19 Tom Tromey <tromey@redhat.com>
6611 * target-delegates.c: Rebuild.
6612 * target.c (update_current_target): Don't inherit or default
6613 to_pid_to_exec_file.
6614 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
6615 TARGET_DEFAULT_RETURN.
6617 2014-02-19 Tom Tromey <tromey@redhat.com>
6619 * target-delegates.c: Rebuild.
6620 * target.c (update_current_target): Don't inherit or default
6622 (target_thread_name): Unconditionally delegate.
6623 * target.h (struct target_ops) <to_thread_name>: Use
6624 TARGET_DEFAULT_RETURN.
6626 2014-02-19 Tom Tromey <tromey@redhat.com>
6628 * target-delegates.c: Rebuild.
6629 * target.c (update_current_target): Don't inherit or default
6630 to_extra_thread_info.
6631 * target.h (struct target_ops) <to_extra_thread_info>: Use
6632 TARGET_DEFAULT_RETURN.
6634 2014-02-19 Tom Tromey <tromey@redhat.com>
6636 * target-delegates.c: Rebuild.
6637 * target.c (update_current_target): Don't inherit or default
6639 * target.h (struct target_ops) <to_has_exited>: Use
6640 TARGET_DEFAULT_RETURN..
6642 2014-02-19 Tom Tromey <tromey@redhat.com>
6644 * target-delegates.c: Rebuild.
6645 * target.c (update_current_target): Don't inherit or default
6646 to_set_syscall_catchpoint.
6647 (return_one): Remove.
6648 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
6649 TARGET_DEFAULT_RETURN.
6651 2014-02-19 Tom Tromey <tromey@redhat.com>
6653 * target-delegates.c: Rebuild.
6654 * target.c (update_current_target): Don't inherit or default
6655 to_insert_exec_catchpoint.
6656 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
6657 TARGET_DEFAULT_RETURN.
6659 2014-01-08 Tom Tromey <tromey@redhat.com>
6661 * target-delegates.c: Rebuild.
6662 * target.c (update_current_target): Don't inherit or default
6663 to_insert_exec_catchpoint.
6664 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
6665 TARGET_DEFAULT_RETURN.
6667 2014-02-19 Tom Tromey <tromey@redhat.com>
6669 * target-delegates.c: Rebuild.
6670 * target.c (update_current_target): Don't inherit or default
6671 to_remove_vfork_catchpoint.
6672 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
6673 TARGET_DEFAULT_RETURN.
6675 2014-02-19 Tom Tromey <tromey@redhat.com>
6677 * target-delegates.c: Rebuild.
6678 * target.c (update_current_target): Don't inherit or default
6679 to_insert_vfork_catchpoint.
6680 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
6681 TARGET_DEFAULT_RETURN.
6683 2014-02-19 Tom Tromey <tromey@redhat.com>
6685 * target-delegates.c: Rebuild.
6686 * target.c (update_current_target): Don't inherit or default
6687 to_remove_fork_catchpoint.
6688 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
6689 TARGET_DEFAULT_RETURN.
6691 2014-02-19 Tom Tromey <tromey@redhat.com>
6693 * target-delegates.c: Rebuild.
6694 * target.c (update_current_target): Don't inherit or default
6695 to_insert_fork_catchpoint.
6696 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
6697 TARGET_DEFAULT_RETURN.
6699 2014-02-19 Tom Tromey <tromey@redhat.com>
6701 * target-delegates.c: Rebuild.
6702 * target.c (update_current_target): Don't inherit or default
6703 to_post_startup_inferior.
6704 * target.h (struct target_ops) <to_post_startup_inferior>: Use
6705 TARGET_DEFAULT_IGNORE.
6707 2014-02-19 Tom Tromey <tromey@redhat.com>
6709 * target-delegates.c: Rebuild.
6710 * target.c (update_current_target): Don't inherit or default
6712 * target.h (struct target_ops) <to_load>: Use
6713 TARGET_DEFAULT_NORETURN.
6715 2014-02-19 Tom Tromey <tromey@redhat.com>
6717 * target-delegates.c: Rebuild.
6718 * target.c (update_current_target): Don't inherit or default
6720 * target.h (struct target_ops) <to_terminal_info>: Use
6721 TARGET_DEFAULT_FUNC.
6723 2014-02-19 Tom Tromey <tromey@redhat.com>
6725 * target-delegates.c: Rebuild.
6726 * target.c (update_current_target): Don't inherit or default
6727 to_terminal_save_ours.
6728 * target.h (struct target_ops) <to_terminal_save_ours>: Use
6729 TARGET_DEFAULT_IGNORE.
6731 2014-02-19 Tom Tromey <tromey@redhat.com>
6733 * target-delegates.c: Rebuild.
6734 * target.c (update_current_target): Don't inherit or default
6736 * target.h (struct target_ops) <to_terminal_ours>: Use
6737 TARGET_DEFAULT_IGNORE.
6739 2014-02-19 Tom Tromey <tromey@redhat.com>
6741 * target-delegates.c: Rebuild.
6742 * target.c (update_current_target): Don't inherit or default
6743 to_terminal_ours_for_output.
6744 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
6745 TARGET_DEFAULT_IGNORE.
6747 2014-02-19 Tom Tromey <tromey@redhat.com>
6749 * target-delegates.c: Rebuild.
6750 * target.c (update_current_target): Don't inherit or default
6751 to_terminal_inferior.
6752 * target.h (struct target_ops) <to_terminal_inferior>: Use
6753 TARGET_DEFAULT_IGNORE.
6755 2014-02-19 Tom Tromey <tromey@redhat.com>
6757 * target-delegates.c: Rebuild.
6758 * target.c (update_current_target): Don't inherit or default
6760 * target.h (struct target_ops) <to_terminal_init>: Use
6761 TARGET_DEFAULT_IGNORE.
6763 2014-02-19 Tom Tromey <tromey@redhat.com>
6765 * target-delegates.c: Rebuild.
6766 * target.c (update_current_target): Don't inherit or default
6767 to_can_accel_watchpoint_condition.
6768 * target.h (struct target_ops)
6769 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
6771 2014-02-19 Tom Tromey <tromey@redhat.com>
6773 * target-delegates.c: Rebuild.
6774 * target.c (update_current_target): Don't inherit or default
6775 to_region_ok_for_hw_watchpoint.
6776 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
6777 Use TARGET_DEFAULT_FUNC.
6779 2014-02-19 Tom Tromey <tromey@redhat.com>
6781 * target-delegates.c: Rebuild.
6782 * target.c (update_current_target): Don't inherit or default
6783 to_watchpoint_addr_within_range.
6784 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
6785 Use TARGET_DEFAULT_FUNC.
6787 2014-02-19 Tom Tromey <tromey@redhat.com>
6789 * target-delegates.c: Rebuild.
6790 * target.c (update_current_target): Don't inherit or default
6791 to_remove_watchpoint.
6792 * target.h (struct target_ops) <to_remove_watchpoint>: Use
6793 TARGET_DEFAULT_NORETURN.
6795 2014-02-19 Tom Tromey <tromey@redhat.com>
6797 * target-delegates.c: Rebuild.
6798 * target.c (update_current_target): Don't inherit or default
6799 to_insert_watchpoint.
6800 * target.h (struct target_ops) <to_insert_watchpoint>: Use
6801 TARGET_DEFAULT_RETURN.
6803 2014-02-19 Tom Tromey <tromey@redhat.com>
6805 * target-delegates.c: Rebuild.
6806 * target.c (update_current_target): Don't inherit or default
6807 to_remove_hw_breakpoint.
6808 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
6809 TARGET_DEFAULT_RETURN.
6811 2014-02-19 Tom Tromey <tromey@redhat.com>
6813 * target-delegates.c: Rebuild.
6814 * target.c (update_current_target): Don't inherit or default
6815 to_insert_hw_breakpoint.
6816 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
6817 TARGET_DEFAULT_RETURN.
6819 2014-02-19 Tom Tromey <tromey@redhat.com>
6821 * target-delegates.c: Rebuild.
6822 * target.c (update_current_target): Don't inherit or default
6823 to_can_use_hw_breakpoint.
6824 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
6825 TARGET_DEFAULT_RETURN.
6827 2014-02-19 Tom Tromey <tromey@redhat.com>
6829 * target-delegates.c: Rebuild.
6830 * target.c (update_current_target): Don't inherit or default
6832 * target.h (struct target_ops) <to_files_info>: Use
6833 TARGET_DEFAULT_IGNORE.
6835 2014-02-19 Tom Tromey <tromey@redhat.com>
6837 * target-delegates.c: Rebuild.
6838 * target.c (update_current_target): Don't inherit or default
6840 * target.h (struct target_ops) <to_store>: Use
6841 TARGET_DEFAULT_NORETURN.
6843 2014-02-19 Tom Tromey <tromey@redhat.com>
6845 * target-delegates.c: Rebuild.
6846 * target.c (update_current_target): Don't inherit or default
6848 * target.h (struct target_ops) <to_post_attach>: Use
6849 TARGET_DEFAULT_IGNORE.
6851 2014-02-19 Tom Tromey <tromey@redhat.com>
6853 * target-delegates.c: Rebuild.
6854 * target.c (update_current_target): Don't inherit or default
6856 (default_rcmd): New function.
6857 (do_monitor_command): Unconditionally delegate.
6858 * target.h (struct target_ops) <to_rmcd>: Use
6859 TARGET_DEFAULT_FUNC.
6861 2014-02-19 Tom Tromey <tromey@redhat.com>
6863 * target-delegates.c: Rebuild.
6864 * target.c (init_dummy_target): Don't initialize to_attach.
6865 (target_attach): Unconditionally delegate.
6866 * target.h (struct target_ops) <to_attach>: Use
6867 TARGET_DEFAULT_FUNC.
6869 2014-02-19 Tom Tromey <tromey@redhat.com>
6871 * target-delegates.c: Rebuild.
6872 * target.c (target_detach): Unconditionally delegate.
6873 (init_dummy_target): Don't initialize to_detach.
6874 * target.h (struct target_ops) <to_detach>: Use
6875 TARGET_DEFAULT_IGNORE.
6877 2014-02-19 Tom Tromey <tromey@redhat.com>
6879 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
6881 (target_augmented_libraries_svr4_read): Add argument.
6882 * target.c (update_current_target): Update.
6883 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
6886 2014-02-19 Tom Tromey <tromey@redhat.com>
6888 * target.h (struct target_ops) <to_call_history_range>: Add
6890 * target.c (target_call_history_range): Add argument.
6891 * record-btrace.c (record_btrace_call_history_range): Add 'self'
6893 (record_btrace_call_history_from): Update.
6895 2014-02-19 Tom Tromey <tromey@redhat.com>
6897 * target.h (struct target_ops) <to_call_history_from>: Add
6899 * target.c (target_call_history_from): Add argument.
6900 * record-btrace.c (record_btrace_call_history_from): Add 'self'
6903 2014-02-19 Tom Tromey <tromey@redhat.com>
6905 * target.h (struct target_ops) <to_call_history>: Add argument.
6906 * target.c (target_call_history): Add argument.
6907 * record-btrace.c (record_btrace_call_history): Add 'self'
6910 2014-02-19 Tom Tromey <tromey@redhat.com>
6912 * target.h (struct target_ops) <to_insn_history_range>: Add
6914 * target.c (target_insn_history_range): Add argument.
6915 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
6917 (record_btrace_insn_history_from): Update.
6919 2014-02-19 Tom Tromey <tromey@redhat.com>
6921 * target.h (struct target_ops) <to_insn_history_from>: Add
6923 * target.c (target_insn_history_from): Add argument.
6924 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
6927 2014-02-19 Tom Tromey <tromey@redhat.com>
6929 * target.h (struct target_ops) <to_insn_history>: Add argument.
6930 * target.c (target_insn_history): Add argument.
6931 * record-btrace.c (record_btrace_insn_history): Add 'self'
6934 2014-02-19 Tom Tromey <tromey@redhat.com>
6936 * target.h (struct target_ops) <to_goto_record>: Add argument.
6937 * target.c (target_goto_record): Add argument.
6938 * record-full.c (record_full_goto): Add 'self' argument.
6939 * record-btrace.c (record_btrace_goto): Add 'self' argument.
6941 2014-02-19 Tom Tromey <tromey@redhat.com>
6943 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
6944 * target.c (target_goto_record_end): Add argument.
6945 * record-full.c (record_full_goto_end): Add 'self' argument.
6946 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
6948 2014-02-19 Tom Tromey <tromey@redhat.com>
6950 * target.h (struct target_ops) <to_goto_record_begin>: Add
6952 * target.c (target_goto_record_begin): Add argument.
6953 * record-full.c (record_full_goto_begin): Add 'self' argument.
6954 * record-btrace.c (record_btrace_goto_begin): Add 'self'
6957 2014-02-19 Tom Tromey <tromey@redhat.com>
6959 * target.h (struct target_ops) <to_record_is_replaying>: Add
6961 * target.c (target_record_is_replaying): Add argument.
6962 * record-full.c (record_full_is_replaying): Add 'self' argument.
6963 * record-btrace.c (record_btrace_is_replaying): Add 'self'
6965 (record_btrace_xfer_partial, record_btrace_store_registers)
6966 (record_btrace_prepare_to_store, record_btrace_resume)
6967 (record_btrace_wait, record_btrace_decr_pc_after_break)
6968 (record_btrace_find_new_threads, record_btrace_thread_alive):
6971 2014-02-19 Tom Tromey <tromey@redhat.com>
6973 * target.h (struct target_ops) <to_delete_record>: Add argument.
6974 * target.c (target_delete_record): Add argument.
6975 * record-full.c (record_full_delete): Add 'self' argument.
6977 2014-02-19 Tom Tromey <tromey@redhat.com>
6979 * target.h (struct target_ops) <to_save_record>: Add argument.
6980 * target.c (target_save_record): Add argument.
6981 * record-full.c (record_full_save): Add 'self' argument.
6982 (record_full_save): Add 'self' argument.
6984 2014-02-19 Tom Tromey <tromey@redhat.com>
6986 * target.h (struct target_ops) <to_info_record>: Add argument.
6987 * target.c (target_info_record): Add argument.
6988 * record.c (info_record_command): Add argument.
6989 * record-full.c (record_full_info): Add 'self' argument.
6990 * record-btrace.c (record_btrace_info): Add 'self' argument.
6992 2014-02-19 Tom Tromey <tromey@redhat.com>
6994 * target.h (struct target_ops) <to_stop_recording>: Add argument.
6995 * target.c (target_stop_recording): Add argument.
6996 * record.c (record_stop): Add argument.
6997 * record-btrace.c (record_btrace_stop_recording): Add 'self'
7000 2014-02-19 Tom Tromey <tromey@redhat.com>
7002 * target.h (struct target_ops) <to_read_btrace>: Add argument.
7003 * target.c (struct target_ops) <to_read_btrace>: Add argument.
7004 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
7006 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
7007 (_initialize_amd64_linux_nat): Use it.
7008 * i386-linux-nat.c (i386_linux_read_btrace): New function.
7009 (_initialize_i386_linux_nat): Use it.
7011 2014-02-19 Tom Tromey <tromey@redhat.com>
7013 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
7014 * target.c (target_teardown_btrace): Add argument.
7015 * remote.c (remote_teardown_btrace): Add 'self' argument.
7016 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
7018 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
7021 2014-02-19 Tom Tromey <tromey@redhat.com>
7023 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
7024 * target.c (target_disable_btrace): Add argument.
7025 * remote.c (remote_disable_btrace): Add 'self' argument.
7026 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
7028 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
7031 2014-02-19 Tom Tromey <tromey@redhat.com>
7033 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
7034 * target.c (target_enable_btrace): Add argument.
7035 * remote.c (remote_enable_btrace): Add 'self' argument.
7036 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
7038 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
7041 2014-02-19 Tom Tromey <tromey@redhat.com>
7043 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
7044 (target_can_use_agent): Add argument.
7045 * target.c (update_current_target): Update.
7046 * remote.c (remote_can_use_agent): Add 'self' argument.
7047 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
7049 2014-02-19 Tom Tromey <tromey@redhat.com>
7051 * target.h (struct target_ops) <to_use_agent>: Add argument.
7052 (target_use_agent): Add argument.
7053 * target.c (update_current_target): Update.
7054 * remote.c (remote_use_agent): Add 'self' argument.
7055 * inf-child.c (inf_child_use_agent): Add 'self' argument.
7057 2014-02-19 Tom Tromey <tromey@redhat.com>
7059 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
7060 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
7061 (target_traceframe_info): Add argument.
7062 * target.c (update_current_target): Update.
7063 * remote.c (remote_traceframe_info): Add 'self' argument.
7064 * ctf.c (ctf_traceframe_info): Add 'self' argument.
7066 2014-02-19 Tom Tromey <tromey@redhat.com>
7068 * target.h (target_static_tracepoint_markers_by_strid): Add
7070 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
7072 * target.c (update_current_target): Update.
7073 * remote.c (struct target_ops)
7074 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
7075 * linux-nat.c (struct target_ops)
7076 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
7078 2014-02-19 Tom Tromey <tromey@redhat.com>
7080 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
7082 (target_static_tracepoint_marker_at): Add argument.
7083 * target.c (update_current_target): Update.
7084 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
7087 2014-02-19 Tom Tromey <tromey@redhat.com>
7089 * target.h (struct target_ops) <to_set_permissions>: Add argument.
7090 (target_set_permissions): Add argument.
7091 * target.c (update_current_target): Update.
7092 * remote.c (remote_set_permissions): Add 'self' argument.
7093 (remote_start_remote): Update.
7095 2014-02-19 Tom Tromey <tromey@redhat.com>
7097 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
7098 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
7099 (target_get_tib_address): Add argument.
7100 * target.c (update_current_target): Update.
7101 * remote.c (remote_get_tib_address): Add 'self' argument.
7103 2014-02-19 Tom Tromey <tromey@redhat.com>
7105 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
7106 (target_set_trace_notes): Add argument.
7107 * target.c (update_current_target): Update.
7108 * remote.c (remote_set_trace_notes): Add 'self' argument.
7110 2014-02-19 Tom Tromey <tromey@redhat.com>
7112 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
7114 (target_set_trace_buffer_size): Add argument.
7115 * target.c (update_current_target): Update.
7116 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
7118 2014-02-19 Tom Tromey <tromey@redhat.com>
7120 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
7122 (target_set_circular_trace_buffer): Add argument.
7123 * target.c (update_current_target): Update.
7124 * remote.c (remote_set_circular_trace_buffer): Add 'self'
7127 2014-02-19 Tom Tromey <tromey@redhat.com>
7129 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
7131 (target_set_disconnected_tracing): Add argument.
7132 * target.c (update_current_target): Update.
7133 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
7135 2014-02-19 Tom Tromey <tromey@redhat.com>
7137 * target.h (struct target_ops)
7138 <to_get_min_fast_tracepoint_insn_len>: Add argument.
7139 (target_get_min_fast_tracepoint_insn_len): Add argument.
7140 * target.c (update_current_target): Update.
7141 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
7144 2014-02-19 Tom Tromey <tromey@redhat.com>
7146 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
7148 (target_get_raw_trace_data): Add argument.
7149 * target.c (update_current_target): Update.
7150 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
7152 2014-02-19 Tom Tromey <tromey@redhat.com>
7154 * target.h (struct target_ops) <to_upload_trace_state_variables>:
7156 (target_upload_trace_state_variables): Add argument.
7157 * target.c (update_current_target): Update.
7158 * remote.c (remote_upload_trace_state_variables): Add 'self'
7160 (remote_start_remote): Update.
7162 2014-02-19 Tom Tromey <tromey@redhat.com>
7164 * target.h (struct target_ops) <to_upload_tracepoints>: Add
7166 (target_upload_tracepoints): Add argument.
7167 * target.c (update_current_target): Update.
7168 * remote.c (remote_upload_tracepoints): Add 'self' argument.
7169 (remote_start_remote): Update.
7171 2014-02-19 Tom Tromey <tromey@redhat.com>
7173 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
7174 (target_save_trace_data): Add argument.
7175 * target.c (update_current_target): Update.
7176 * remote.c (remote_save_trace_data): Add 'self' argument.
7178 2014-02-19 Tom Tromey <tromey@redhat.com>
7180 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
7182 * target.h (struct target_ops)
7183 <to_get_trace_state_variable_value>: Add argument.
7184 (target_get_trace_state_variable_value): Add argument.
7185 * target.c (update_current_target): Update.
7186 * remote.c (remote_get_trace_state_variable_value): Add 'self'
7188 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
7190 2014-02-19 Tom Tromey <tromey@redhat.com>
7192 * tracepoint.c (tfile_trace_find): Add 'self' argument.
7193 * target.h (struct target_ops) <to_trace_find>: Add argument.
7194 (target_trace_find): Add argument.
7195 * target.c (update_current_target): Update.
7196 * remote.c (remote_trace_find): Add 'self' argument.
7197 * ctf.c (ctf_trace_find): Add 'self' argument.
7199 2014-02-19 Tom Tromey <tromey@redhat.com>
7201 * target.h (struct target_ops) <to_trace_stop>: Add argument.
7202 (target_trace_stop): Add argument.
7203 * target.c (update_current_target): Update.
7204 * remote.c (remote_trace_stop): Add 'self' argument.
7206 2014-02-19 Tom Tromey <tromey@redhat.com>
7208 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
7209 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
7211 (target_get_tracepoint_status): Add argument.
7212 * target.c (update_current_target): Update.
7213 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
7215 2014-02-19 Tom Tromey <tromey@redhat.com>
7217 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
7218 * target.h (struct target_ops) <to_get_trace_status>: Add
7220 (target_get_trace_status): Add argument.
7221 * target.c (update_current_target): Update.
7222 * remote.c (remote_get_trace_status): Add 'self' argument.
7223 (remote_start_remote, remote_can_download_tracepoint): Update.
7224 * ctf.c (ctf_get_trace_status): Add 'self' argument.
7226 2014-02-19 Tom Tromey <tromey@redhat.com>
7228 * target.h (struct target_ops) <to_trace_start>: Add argument.
7229 (target_trace_start): Add argument.
7230 * target.c (update_current_target): Update.
7231 * remote.c (remote_trace_start): Add 'self' argument.
7233 2014-02-19 Tom Tromey <tromey@redhat.com>
7235 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
7237 (target_trace_set_readonly_regions): Add argument.
7238 * target.c (update_current_target): Update.
7239 * remote.c (remote_trace_set_readonly_regions): Add 'self'
7242 2014-02-19 Tom Tromey <tromey@redhat.com>
7244 * target.h (struct target_ops) <to_disable_tracepoint>: Add
7246 (target_disable_tracepoint): Add argument.
7247 * target.c (update_current_target): Update.
7248 * remote.c (remote_disable_tracepoint): Add 'self' argument.
7250 2014-02-19 Tom Tromey <tromey@redhat.com>
7252 * target.h (struct target_ops) <to_enable_tracepoint>: Add
7254 (target_enable_tracepoint): Add argument.
7255 * target.c (update_current_target): Update.
7256 * remote.c (remote_enable_tracepoint): Add 'self' argument.
7258 2014-02-19 Tom Tromey <tromey@redhat.com>
7260 * target.h (struct target_ops) <to_download_trace_state_variable>:
7262 (target_download_trace_state_variable): Add argument.
7263 * target.c (update_current_target): Update.
7264 * remote.c (remote_download_trace_state_variable): Add 'self'
7267 2014-02-19 Tom Tromey <tromey@redhat.com>
7269 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
7271 (target_can_download_tracepoint): Add argument.
7272 * target.c (update_current_target): Update.
7273 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
7275 2014-02-19 Tom Tromey <tromey@redhat.com>
7277 * target.h (struct target_ops) <to_download_tracepoint>: Add
7279 (target_download_tracepoint): Add argument.
7280 * target.c (update_current_target): Update.
7281 * remote.c (remote_download_tracepoint): Add 'self' argument.
7283 2014-02-19 Tom Tromey <tromey@redhat.com>
7285 * target.h (struct target_ops) <to_trace_init>: Add argument.
7286 (target_trace_init): Add argument.
7287 * target.c (update_current_target): Update.
7288 * remote.c (remote_trace_init): Add 'self' argument.
7290 2014-02-19 Tom Tromey <tromey@redhat.com>
7292 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
7293 * target.c (target_fileio_readlink): Add argument.
7294 * remote.c (remote_hostio_readlink): Add 'self' argument.
7295 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
7297 2014-02-19 Tom Tromey <tromey@redhat.com>
7299 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
7300 * target.c (target_fileio_unlink): Add argument.
7301 * remote.c (remote_hostio_unlink): Add 'self' argument.
7302 (remote_file_delete): Update.
7303 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
7305 2014-02-19 Tom Tromey <tromey@redhat.com>
7307 * target.h (struct target_ops) <to_fileio_close>: Add argument.
7308 * target.c (target_fileio_close): Add argument.
7309 * remote.c (remote_hostio_close): Add 'self' argument.
7310 (remote_hostio_close_cleanup): Update.
7311 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
7313 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
7315 2014-02-19 Tom Tromey <tromey@redhat.com>
7317 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
7318 * target.c (target_fileio_pread): Add argument.
7319 * remote.c (remote_hostio_pread): Add 'self' argument.
7320 (remote_bfd_iovec_pread, remote_file_get): Update.
7321 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
7323 2014-02-19 Tom Tromey <tromey@redhat.com>
7325 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
7326 * target.c (target_fileio_pwrite): Add argument.
7327 * remote.c (remote_hostio_pwrite): Add 'self' argument.
7328 (remote_file_put): Update.
7329 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
7331 2014-02-19 Tom Tromey <tromey@redhat.com>
7333 * target.h (struct target_ops) <to_fileio_open>: Add argument.
7334 * target.c (target_fileio_open): Add argument.
7335 * remote.c (remote_hostio_open): Add 'self' argument.
7336 (remote_bfd_iovec_open): Add 'self' argument.
7337 (remote_file_put): Add 'self' argument.
7338 (remote_file_get): Add 'self' argument.
7339 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
7341 2014-02-19 Tom Tromey <tromey@redhat.com>
7343 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
7345 (target_can_run_breakpoint_commands): Add argument.
7346 * target.c (update_current_target): Update.
7347 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
7349 (remote_insert_breakpoint): Add 'self' argument.
7350 (remote_insert_hw_breakpoint): Add 'self' argument.
7351 (remote_can_run_breakpoint_commands): Add 'self' argument.
7353 2014-02-19 Tom Tromey <tromey@redhat.com>
7355 * target.h (struct target_ops)
7356 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
7357 (target_supports_evaluation_of_breakpoint_conditions): Add
7359 * target.c (update_current_target): Update.
7360 * remote.c (remote_supports_cond_breakpoints): Add 'self'
7362 (remote_insert_breakpoint): Add 'self' argument.
7363 (remote_insert_hw_breakpoint): Add 'self' argument.
7364 (remote_supports_cond_breakpoints): Add 'self' argument.
7366 2014-02-19 Tom Tromey <tromey@redhat.com>
7368 * target.h (struct target_ops) <to_supports_string_tracing>: Add
7370 (target_supports_string_tracing): Add argument.
7371 * target.c (update_current_target): Update.
7372 * remote.c (remote_supports_string_tracing): Add 'self' argument.
7374 2014-02-19 Tom Tromey <tromey@redhat.com>
7376 * target.h (struct target_ops)
7377 <to_supports_disable_randomization>: Add argument.
7378 * target.c (find_default_supports_disable_randomization): Add
7380 (target_supports_disable_randomization): Add argument.
7381 (find_default_supports_disable_randomization): Add 'self'
7383 * remote.c (extended_remote_supports_disable_randomization): Add
7385 (remote_supports_disable_randomization): Add 'self' argument.
7386 (extended_remote_create_inferior): Update.
7387 * linux-nat.c (linux_nat_supports_disable_randomization): Add
7390 2014-02-19 Tom Tromey <tromey@redhat.com>
7392 * target.h (struct target_ops)
7393 <to_supports_enable_disable_tracepoint>: Add argument.
7394 (target_supports_enable_disable_tracepoint): Add argument.
7395 * target.c (update_current_target): Update.
7396 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
7399 2014-02-19 Tom Tromey <tromey@redhat.com>
7401 * target.h (struct target_ops) <to_supports_multi_process>: Add
7403 (target_supports_multi_process): Add argument.
7404 * target.c (update_current_target): Update.
7405 * remote.c (remote_supports_multi_process): Add 'self' argument.
7406 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
7408 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
7411 2014-02-19 Tom Tromey <tromey@redhat.com>
7413 * target.h (struct target_ops) <to_execution_direction>: Add
7415 (target_execution_direction): Add argument.
7416 * target.c (default_execution_direction): Add 'self' argument.
7417 * record-full.c (record_full_execution_direction): Add 'self'
7420 2014-02-19 Tom Tromey <tromey@redhat.com>
7422 * target.h (struct target_ops) <to_can_execute_reverse>: Add
7424 (target_can_execute_reverse): Add argument.
7425 * remote.c (remote_can_execute_reverse): Add 'self' argument.
7426 * record-full.c (record_full_can_execute_reverse): Add 'self'
7428 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
7431 2014-02-19 Tom Tromey <tromey@redhat.com>
7433 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
7434 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
7436 (target_get_ada_task_ptid): Add argument.
7437 * target.c (update_current_target): Update.
7438 (default_get_ada_task_ptid): Add 'self' argument.
7439 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
7440 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
7441 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
7443 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
7445 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
7447 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
7449 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
7450 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
7453 2014-02-19 Tom Tromey <tromey@redhat.com>
7455 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
7456 (target_goto_bookmark): Add argument.
7457 * target.c (dummy_goto_bookmark): Add 'self' argument.
7458 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
7460 2014-02-19 Tom Tromey <tromey@redhat.com>
7462 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
7463 (target_get_bookmark): Add argument.
7464 * target.c (dummy_get_bookmark): Add 'self' argument.
7465 * record-full.c (record_full_get_bookmark): Add 'self' argument.
7467 2014-02-19 Tom Tromey <tromey@redhat.com>
7469 * target.h (struct target_ops) <to_make_corefile_notes>: Add
7471 (target_make_corefile_notes): Add argument.
7472 * target.c (dummy_make_corefile_notes): Add 'self' argument.
7473 * procfs.c (procfs_make_note_section): Add 'self' argument.
7474 (procfs_make_note_section): Add 'self' argument.
7475 (procfs_make_note_section): Add 'self' argument.
7476 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
7478 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
7479 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
7480 * exec.c (exec_make_note_section): Add 'self' argument.
7481 (exec_make_note_section): Add 'self' argument.
7483 2014-02-19 Tom Tromey <tromey@redhat.com>
7485 * target.h (struct target_ops) <to_find_memory_regions>: Add
7487 (target_find_memory_regions): Add argument.
7488 * target.c (dummy_find_memory_regions): Add 'self' argument.
7489 * procfs.c (proc_find_memory_regions): Add 'self' argument.
7490 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
7491 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
7492 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
7493 * exec. (exec_do_find_memory_regions): New global.
7494 (exec_set_find_memory_regions): Rewrite.
7495 (exec_find_memory_regions): New function.
7496 (init_exec_ops): Use exec_find_memory_regions.
7498 2014-02-19 Tom Tromey <tromey@redhat.com>
7500 * target.h (struct target_ops) <to_supports_non_stop>: Add
7502 * target.c (find_default_supports_non_stop): Add argument.
7503 (target_supports_non_stop): Add argument.
7504 (find_default_supports_non_stop): Add 'self' argument.
7505 * remote.c (remote_supports_non_stop): Add 'self' argument.
7506 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
7508 2014-02-19 Tom Tromey <tromey@redhat.com>
7510 * target.h (struct target_ops) <to_log_command>: Add argument.
7511 (target_log_command): Add argument.
7512 * serial.h (serial_log_command): Add 'self' argument.
7513 * serial.c (serial_log_command): Add 'self' argument.
7515 2014-02-19 Tom Tromey <tromey@redhat.com>
7517 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
7518 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
7520 (target_pid_to_exec_file): Add argument.
7521 * target.c (debug_to_pid_to_exec_file): Add argument.
7522 (update_current_target): Update.
7523 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
7524 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
7525 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
7526 (linux_handle_extended_wait): Update.
7527 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
7528 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
7529 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
7530 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
7532 2014-02-19 Tom Tromey <tromey@redhat.com>
7534 * target.h (struct target_ops) <to_rcmd>: Add argument.
7535 (target_rcmd): Add argument.
7536 * target.c (debug_to_rcmd): Add argument.
7537 (update_current_target, do_monitor_command): Update.
7538 * remote.c (remote_rcmd): Add 'self' argument.
7539 * monitor.c (monitor_rcmd): Add 'self' argument.
7541 2014-02-19 Tom Tromey <tromey@redhat.com>
7543 * windows-nat.c (windows_stop): Add 'self' argument.
7544 * target.h (struct target_ops) <to_stop>: Add argument.
7545 * target.c (target_stop): Add argument.
7546 (debug_to_stop): Add argument.
7547 (update_current_target): Update.
7548 * remote.c (remote_stop): Add 'self' argument.
7549 * remote-sim.c (gdbsim_stop): Add 'self' argument.
7550 (gdbsim_cntrl_c): Update.
7551 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
7552 * procfs.c (procfs_stop): Add 'self' argument.
7553 * nto-procfs.c (procfs_stop): Add 'self' argument.
7554 * monitor.c (monitor_stop): Add 'self' argument.
7555 (monitor_open): Update.
7556 * linux-nat.c (linux_nat_stop): Add argument.
7557 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
7558 * gnu-nat.c (gnu_stop): Add 'self' argument.
7559 * darwin-nat.c (darwin_stop): Add 'self' argument.
7561 2014-02-19 Tom Tromey <tromey@redhat.com>
7563 * target.h (struct target_ops) <to_thread_name>: Add argument.
7564 * target.c (target_thread_name): Add argument.
7565 (update_current_target): Update.
7566 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
7568 2014-02-19 Tom Tromey <tromey@redhat.com>
7570 * target.h (struct target_ops) <to_extra_thread_info>: Add
7572 (target_extra_thread_info): Add argument.
7573 * target.c (update_current_target): Update.
7574 * remote.c (remote_threads_extra_info): Add 'self' argument.
7575 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
7577 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
7578 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
7579 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
7581 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
7583 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
7585 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
7588 2014-02-19 Tom Tromey <tromey@redhat.com>
7590 * target.h (struct target_ops) <to_program_signals>: Add argument.
7591 * target.c (target_program_signals): Add argument.
7592 * remote.c (remote_program_signals): Add 'self' argument.
7594 2014-02-19 Tom Tromey <tromey@redhat.com>
7596 * target.h (struct target_ops) <to_pass_signals>: Add argument.
7597 * target.c (target_pass_signals): Add argument.
7598 * remote.c (remote_pass_signals): Add 'self' argument.
7599 (remote_start_remote): Update.
7600 * procfs.c (procfs_pass_signals): Add 'self' argument.
7601 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
7602 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
7603 (linux_nat_create_inferior, linux_nat_attach): Update.
7605 2014-02-19 Tom Tromey <tromey@redhat.com>
7607 * windows-nat.c (windows_can_run): Add 'self' argument.
7608 * target.h (struct target_ops) <to_can_run>: Add argument.
7609 (target_can_run): Add argument.
7610 * target.c (debug_to_can_run): Add argument.
7611 (update_current_target): Update.
7612 * nto-procfs.c (procfs_can_run): Add 'self' argument.
7613 * inf-child.c (inf_child_can_run): Add 'self' argument.
7614 * go32-nat.c (go32_can_run): Add 'self' argument.
7616 2014-02-19 Tom Tromey <tromey@redhat.com>
7618 * target.h (struct target_ops) <to_has_exited>: Add argument.
7619 (target_has_exited): Add argument.
7620 * target.c (debug_to_has_exited): Add argument.
7621 (update_current_target): Update.
7623 2014-02-19 Tom Tromey <tromey@redhat.com>
7625 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
7627 (target_set_syscall_catchpoint): Add argument.
7628 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
7630 * target.c (update_current_target): Update.
7632 2014-02-19 Tom Tromey <tromey@redhat.com>
7634 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
7636 (target_remove_exec_catchpoint): Add argument.
7637 * target.c (debug_to_remove_exec_catchpoint): Add argument.
7638 (update_current_target): Update.
7639 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
7642 2014-02-19 Tom Tromey <tromey@redhat.com>
7644 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
7646 (target_insert_exec_catchpoint): Add argument.
7647 * target.c (debug_to_insert_exec_catchpoint): Add argument.
7648 (update_current_target): Update.
7649 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
7652 2014-02-19 Tom Tromey <tromey@redhat.com>
7654 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
7656 (target_remove_vfork_catchpoint): Add argument.
7657 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
7658 (update_current_target): Update.
7659 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
7662 2014-02-19 Tom Tromey <tromey@redhat.com>
7664 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
7666 (target_insert_vfork_catchpoint): Add argument.
7667 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
7668 (update_current_target): Update.
7669 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
7672 2014-02-19 Tom Tromey <tromey@redhat.com>
7674 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
7676 (target_remove_fork_catchpoint): Add argument.
7677 * target.c (debug_to_remove_fork_catchpoint): Add argument.
7678 (update_current_target): Update.
7679 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
7682 2014-02-19 Tom Tromey <tromey@redhat.com>
7684 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
7686 (target_insert_fork_catchpoint): Add argument.
7687 * target.c (debug_to_insert_fork_catchpoint): Add argument.
7688 (update_current_target): Update.
7689 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
7692 2014-02-19 Tom Tromey <tromey@redhat.com>
7694 * target.h (struct target_ops) <to_post_startup_inferior>: Add
7696 (target_post_startup_inferior): Add argument.
7697 * target.c (debug_to_post_startup_inferior): Add argument.
7698 (update_current_target): Update.
7699 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
7701 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
7703 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
7705 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
7707 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
7709 (super_post_startup_inferior): Likewise.
7710 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
7712 (super_post_startup_inferior): Likewise.
7713 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
7714 Add 'self' argument.
7715 (super_post_startup_inferior): Likewise.
7717 2014-02-19 Tom Tromey <tromey@redhat.com>
7719 * target.h (struct target_ops) <to_load>: Add argument.
7720 * target.c (target_load): Add argument.
7721 (debug_to_load): Add argument.
7722 (update_current_target): Update.
7723 * remote.c (remote_load): Add 'self' argument.
7724 * remote-sim.c (gdbsim_load): Add 'self' argument.
7725 * remote-mips.c (mips_load): Add 'self' argument.
7726 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
7727 * monitor.c (monitor_load): Add 'self' argument.
7728 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
7730 2014-02-19 Tom Tromey <tromey@redhat.com>
7732 * target.h (struct target_ops) <to_terminal_info>: Add argument.
7733 (target_terminal_info): Add argument.
7734 * target.c (debug_to_terminal_info): Add argument.
7735 (default_terminal_info): Likewise.
7736 * inflow.c (child_terminal_info): Add 'self' argument.
7737 * inferior.h (child_terminal_info): Add 'self' argument.
7738 * go32-nat.c (go32_terminal_info): Add 'self' argument.
7740 2014-02-19 Tom Tromey <tromey@redhat.com>
7742 * target.h (struct target_ops) <to_terminal_save_ours>: Add
7744 (target_terminal_save_ours): Add argument.
7745 * target.c (debug_to_terminal_save_ours): Add argument.
7746 (update_current_target): Update.
7747 * inflow.c (terminal_save_ours): Add 'self' argument.
7748 * inferior.h (terminal_save_ours): Add 'self' argument.
7750 2014-02-19 Tom Tromey <tromey@redhat.com>
7752 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
7753 (target_terminal_ours): Add argument.
7754 * target.c (debug_to_terminal_ours): Add argument.
7755 (update_current_target): Update.
7756 * remote.c (remote_terminal_ours): Add 'self' argument.
7757 (remote_close): Update.
7758 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
7759 * inflow.c (terminal_ours): Add 'self' argument.
7760 * inferior.h (terminal_ours): Add 'self' argument.
7761 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
7763 2014-02-19 Pedro Alves <palves@redhat.com>
7764 Tom Tromey <tromey@redhat.com>
7766 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
7768 (target_terminal_ours_for_output): Add argument.
7769 * target.c (debug_to_terminal_ours_for_output): Add argument.
7770 (update_current_target): Update.
7771 * inflow.c (terminal_ours_for_output): Add 'self' argument.
7772 * inferior.h (terminal_ours_for_output): Add 'self' argument.
7773 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
7775 2014-02-19 Tom Tromey <tromey@redhat.com>
7777 * target.h (struct target_ops) <to_terminal_inferior>: Add
7779 * target.c (target_terminal_inferior): Add argument.
7780 (update_current_target): Update.
7781 * remote.c (remote_terminal_inferior): Add 'self' argument.
7782 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
7783 * inflow.c (terminal_inferior): Add 'self' argument.
7784 * inferior.h (terminal_inferior): Add 'self' argument.
7785 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
7786 (go32_terminal_inferior): Add 'self' argument.
7788 2014-02-19 Tom Tromey <tromey@redhat.com>
7790 * target.h (struct target_ops) <to_terminal_init>: Add argument.
7791 (target_terminal_init): Add argument.
7792 * target.c (debug_to_terminal_init): Add argument.
7793 (update_current_target): Update.
7794 * inflow.c (terminal_init_inferior): Add 'self' argument.
7795 * inferior.h (terminal_init_inferior): Add 'self' argument.
7796 * go32-nat.c (go32_terminal_init): Add 'self' argument.
7797 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
7799 2014-02-19 Tom Tromey <tromey@redhat.com>
7801 * target.h (struct target_ops)
7802 <to_can_accel_watchpoint_condition>: Add argument.
7803 (target_can_accel_watchpoint_condition): Add argument.
7804 * target.c (debug_to_can_accel_watchpoint_condition): Add
7806 (update_current_target): Update.
7807 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
7810 2014-02-19 Tom Tromey <tromey@redhat.com>
7812 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
7814 (target_region_ok_for_hw_watchpoint): Add argument.
7815 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
7816 (default_region_ok_for_hw_watchpoint): Add argument.
7817 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
7818 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
7820 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
7822 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
7824 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
7826 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
7828 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
7830 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
7831 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
7833 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
7834 Add 'self' argument.
7836 2014-02-19 Tom Tromey <tromey@redhat.com>
7838 * target.h (struct target_ops) <to_insert_watchpoint>: Add
7840 (target_insert_watchpoint): Add argument.
7841 * target.c (debug_to_insert_watchpoint): Add argument.
7842 (update_current_target): Update.
7843 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
7844 * remote.c (remote_insert_watchpoint): Add 'self' argument.
7845 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
7846 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
7847 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
7848 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
7850 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
7851 (procfs_insert_hw_watchpoint): Add 'self' argument.
7852 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
7854 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
7856 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
7858 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
7859 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
7861 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
7864 2014-02-19 Tom Tromey <tromey@redhat.com>
7866 * target.h (struct target_ops) <to_remove_watchpoint>: Add
7868 (target_remove_watchpoint): Add argument.
7869 * target.c (debug_to_remove_watchpoint): Add argument.
7870 (update_current_target): Update.
7871 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
7872 * remote.c (remote_remove_watchpoint): Add 'self' argument.
7873 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
7874 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
7875 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
7876 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
7878 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
7879 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
7881 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
7883 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
7885 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
7886 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
7888 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
7891 2014-02-19 Tom Tromey <tromey@redhat.com>
7893 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
7895 (target_remove_hw_breakpoint): Add argument.
7896 * target.c (debug_to_remove_hw_breakpoint): Add argument.
7897 (update_current_target): Update.
7898 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
7899 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
7901 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
7902 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
7904 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
7907 2014-02-19 Tom Tromey <tromey@redhat.com>
7909 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
7911 (target_insert_hw_breakpoint): Add argument.
7912 * target.c (debug_to_insert_hw_breakpoint): Add argument.
7913 (update_current_target): Update.
7914 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
7915 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
7917 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
7918 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
7919 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
7921 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
7924 2014-02-19 Tom Tromey <tromey@redhat.com>
7926 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
7928 (target_can_use_hardware_watchpoint): Add argument.
7929 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
7930 (update_current_target): Update.
7931 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
7933 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
7935 * remote.c (remote_check_watch_resources): Add 'self' argument.
7936 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
7937 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
7939 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
7940 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
7942 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
7944 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
7946 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
7948 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
7950 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
7952 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
7953 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
7955 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
7958 2014-02-19 Tom Tromey <tromey@redhat.com>
7960 * target.h (struct target_ops) <to_post_attach>: Add argument.
7961 (target_post_attach): Add argument.
7962 * target.c (debug_to_post_attach): Add argument.
7963 (update_current_target): Update.
7964 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
7965 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
7966 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
7967 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
7968 * inf-child.c (inf_child_post_attach): Add 'self' argument.
7970 2014-02-19 Tom Tromey <tromey@redhat.com>
7972 * windows-nat.c (windows_close): Add 'self' argument.
7973 * tracepoint.c (tfile_close): Add 'self' argument.
7974 * target.h (struct target_ops) <to_close>: Add argument.
7975 * target.c (target_close): Add argument.
7976 (update_current_target): Update.
7977 * remote.c (remote_close): Add 'self' argument.
7978 * remote-sim.c (gdbsim_close): Add 'self' argument.
7979 * remote-mips.c (mips_close): Add 'self' argument.
7980 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
7981 * record-full.c (record_full_close): Add 'self' argument.
7982 * record-btrace.c (record_btrace_close): Add 'self' argument.
7983 * monitor.h (monitor_close): Add 'self' argument.
7984 * monitor.c (monitor_close): Add 'self' argument.
7985 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
7986 * linux-nat.c (linux_nat_close): Add argument.
7987 * go32-nat.c (go32_close): Add 'self' argument.
7988 * exec.c (exec_close_1): Add 'self' argument.
7989 * ctf.c (ctf_close): Add 'self' argument.
7990 * corelow.c (core_close): Add 'self' argument.
7991 (core_close_cleanup): Update.
7992 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
7993 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
7995 2014-02-19 Tom Tromey <tromey@redhat.com>
7997 * remote.c (remote_load): New function.
7998 (init_remote_ops): Use it.
8000 2014-02-19 Tom Tromey <tromey@redhat.com>
8002 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
8004 * common/linux-btrace.h (linux_supports_btrace): Update.
8005 * remote.c (remote_supports_btrace): Add "self" argument.
8006 * target-delegates.c: Rebuild.
8007 * target.c (target_supports_btrace): Remove.
8008 * target.h (struct target_ops) <to_supports_btrace>: Add
8009 target_ops argument.
8010 (target_supports_btrace): New define.
8012 2014-02-19 Tom Tromey <tromey@redhat.com>
8014 * record-full.c (record_full_beneath_to_resume_ops)
8015 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
8016 (record_full_beneath_to_wait)
8017 (record_full_beneath_to_store_registers_ops)
8018 (record_full_beneath_to_store_registers)
8019 (record_full_beneath_to_xfer_partial_ops)
8020 (record_full_beneath_to_xfer_partial)
8021 (record_full_beneath_to_insert_breakpoint_ops)
8022 (record_full_beneath_to_insert_breakpoint)
8023 (record_full_beneath_to_remove_breakpoint_ops)
8024 (record_full_beneath_to_remove_breakpoint)
8025 (record_full_beneath_to_stopped_by_watchpoint)
8026 (record_full_beneath_to_stopped_data_address)
8027 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
8028 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
8029 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
8030 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
8031 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
8032 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
8033 (tmp_to_stopped_data_address, tmp_to_async): Remove.
8034 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
8035 (record_full_resume, record_full_wait_1)
8036 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
8037 (record_full_store_registers, record_full_xfer_partial)
8038 (record_full_insert_breakpoint, record_full_remove_breakpoint)
8039 (record_full_async, record_full_core_xfer_partial): Use target
8041 * target-delegates.c: Rebuild.
8042 * target.c (current_xfer_partial): Remove.
8043 (update_current_target): Do not INHERIT or de_fault
8044 to_insert_breakpoint, to_remove_breakpoint,
8045 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
8046 to_is_async_p, to_async. Do not set to_xfer_partial field.
8047 (default_xfer_partial): Simplify.
8048 (current_xfer_partial): Remove.
8049 (target_wait, target_resume): Simplify.
8050 (find_default_can_async_p, find_default_is_async_p): Update.
8051 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
8052 to_xfer_partial, to_stopped_by_watchpoint,
8053 to_stopped_data_address.
8054 (target_store_registers): Simplify.
8055 (forward_target_remove_breakpoint)
8056 (forward_target_insert_breakpoint): Remove.
8057 (target_remove_breakpoint, target_insert_breakpoint)
8058 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
8059 * target.h (struct target_ops) <to_resume, to_wait,
8060 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
8061 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
8062 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
8064 (forward_target_remove_breakpoint)
8065 (forward_target_insert_breakpoint): Remove.
8066 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
8068 (record_btrace_insert_breakpoint): Delegate directly.
8070 2014-02-19 Tom Tromey <tromey@redhat.com>
8073 * target-delegates.c: New file.
8074 * target.c: Include target-delegates.c.
8075 (init_dummy_target): Call install_dummy_methods.
8076 (complete_target_initialization): Call install_delegators.
8077 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
8078 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
8079 * make-target-delegates: New file.
8081 2014-02-19 Tom Tromey <tromey@redhat.com>
8083 * record.c (find_record_target): Use find_target_at.
8084 * target.c (find_target_at): New function.
8085 * target.h (find_target_at): Declare.
8087 2014-02-19 Tom Tromey <tromey@redhat.com>
8089 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
8091 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
8093 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
8094 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
8096 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
8098 * linux-nat.c (save_sigtrap): Update.
8099 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
8100 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
8101 (linux_nat_close): Update.
8102 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
8104 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
8106 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
8107 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
8108 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
8109 (tmp_to_async): Add 'ops' argument.
8110 (record_full_stopped_by_watchpoint, record_full_async)
8111 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
8113 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
8114 (m32r_stopped_by_watchpoint): Add 'ops' argument.
8115 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
8116 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
8117 (remote_is_async_p, remote_async): Add 'ops' argument.
8118 (remote_stopped_data_address): Update.
8119 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
8120 * target.c (update_current_target)
8121 (find_default_can_async_p, find_default_is_async_p): Update.
8122 (init_dummy_target): Update.
8123 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
8124 * target.h (struct target_ops) <to_stopped_by_watchpoint,
8125 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
8126 (target_can_async_p, target_is_async_p, target_async)
8127 (target_stopped_by_watchpoint): Update.
8129 2014-02-19 Yao Qi <yao@codesourcery.com>
8132 * gdbarch.sh: Remove startup_gdbarch.
8133 * gdbarch.c: Regenerated.
8134 * gdbarch.h: Likewise.
8136 2014-02-17 Kevin Buettner <kevinb@redhat.com>
8138 * rl78-tdep.c (rl78_g10_register_name): New function.
8139 (rl78_return_value): Add g10 support.
8140 (rl78_gdbarch_init): Register rl78_g10_register_name for the
8143 2014-02-17 Doug Evans <xdje42@gmail.com>
8145 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
8146 (SUBDIR_GUILE_SRCS): Ditto.
8147 (scm-gsmob.o): Ditto.
8149 2014-02-17 Yao Qi <yao@codesourcery.com>
8151 * gnu-nat.c (ILL_RPC): Declare defined function.
8153 2014-02-17 Yao Qi <yao@codesourcery.com>
8155 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
8156 mach_msg_type_number_t.
8157 (gnu_write_inferior): Likewise.
8159 2014-02-17 Yao Qi <yao@codesourcery.com>
8161 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
8163 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
8164 (inf_validate_procs, inf_signal): Likewise.
8165 (S_exception_raise_request): Likewise.
8166 (do_mach_notify_dead_name): Likewise.
8167 (steal_exc_port): Likewise.
8168 (gnu_read_inferior): Change 'copy_count''s type to
8169 mach_msg_type_number_t.
8170 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
8173 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
8175 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
8176 flag. Adjust all users; in particular...
8177 (gnu_wait): ..., don't decrement its value in here...
8178 (gnu_create_inferior): ..., and instead set the flag in here,
8179 around the startup_inferior call, and call that one with
8180 START_INFERIOR_TRAPS_EXPECTED.
8182 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
8183 (ILL_RPC): ... new macro.
8184 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
8185 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
8186 (do_mach_notify_send_once, S_proc_setmsgport_reply)
8187 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
8188 functions with ILL_RPC macro.
8189 (S_proc_pid2task_reply, S_proc_task2pid_reply)
8190 (S_proc_task2proc_reply, S_proc_proc2task_reply)
8191 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
8192 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
8193 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
8194 (S_proc_getlogin_reply, S_proc_getsid_reply)
8195 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
8196 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
8197 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
8198 (S_proc_getnports_reply, S_proc_is_important_reply)
8199 (S_proc_get_code_reply): New stub functions, generated with
8202 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
8203 collected the type check structures.
8205 * reply_mig_hack.awk: Don't expect to see the auto keyword.
8207 2014-02-14 Doug Evans <dje@google.com>
8209 * target.c (target_write_partial): Fix result type.
8211 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
8213 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
8214 the proper offsets to access fpregset_t.
8216 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
8218 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
8219 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
8220 * h8300-tdep.c (setmachinelist): Remove global.
8221 * hppa-tdep.c (hppa_sigtramp): Remove global.
8222 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
8223 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
8224 * ravenscar-thread.c (update_target_observer): Remove global.
8225 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
8227 2014-02-12 Tom Tromey <tromey@redhat.com>
8229 * common/rsp-low.c: Update comments.
8230 * common/rsp-low.h: Update comments.
8232 2014-02-12 Tom Tromey <tromey@redhat.com>
8234 * common/rsp-low.c (convert_ascii_to_int): Remove.
8235 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
8237 2014-02-12 Tom Tromey <tromey@redhat.com>
8239 * common/rsp-low.h (unhexify): Don't declare.
8240 * common/rsp-low.c (unhexify): Remove.
8242 2014-02-12 Tom Tromey <tromey@redhat.com>
8244 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
8245 * common/rsp-low.c (convert_int_to_ascii): Remove.
8247 2014-02-12 Tom Tromey <tromey@redhat.com>
8249 * common/rsp-low.h (hexify): Don't declare.
8250 * common/rsp-low.c (hexify): Remove.
8252 2014-02-12 Tom Tromey <tromey@redhat.com>
8254 * common/rsp-low.c (hexify): Never take strlen of argument.
8256 2014-02-12 Tom Tromey <tromey@redhat.com>
8258 * common/rsp-low.c (bin2hex): Never take strlen of argument.
8259 * remote.c (extended_remote_run, remote_rcmd)
8260 (remote_download_trace_state_variable, remote_save_trace_data)
8261 (remote_set_trace_notes): Update.
8262 * tracepoint.c (encode_source_string, tfile_write_status)
8263 (tfile_write_uploaded_tsv): Update.
8265 2014-02-12 Tom Tromey <tromey@redhat.com>
8267 * tracepoint.c: Include rsp-low.h.
8268 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
8269 * remote.c: Include rsp-low.h.
8270 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
8271 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
8272 (remote_unescape_input): Move to common/rsp-low.c.
8273 * common/rsp-low.h: New file.
8274 * common/rsp-low.c: New file.
8275 * Makefile.in (SFILES): Add common/rsp-low.c.
8276 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
8277 (COMMON_OBS): Add rsp-low.o.
8278 (rsp-low.o): New target.
8280 2014-02-12 Tom Tromey <tromey@redhat.com>
8282 * utils.h: Include print-utils.h.
8283 (host_address_to_string, plongest, pulongest, phex, phex_nz)
8284 (int_string, core_addr_to_string, core_addr_to_string_nz)
8285 (hex_string, hex_string_custom): Don't declare.
8286 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
8287 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
8288 (hex_string_custom, int_string, core_addr_to_string)
8289 (core_addr_to_string_nz, host_address_to_string): Move to
8290 common/print-utils.c.
8291 * common/print-utils.h: New file.
8292 * common/print-utils.c: New file
8293 * Makefile.in (SFILES): Add common/print-utils.c.
8294 (HFILES_NO_SRCDIR): Add common/print-utils.h.
8295 (COMMON_OBS): Add print-utils.o.
8296 (print-utils.o): New target.
8298 2014-02-12 Tom Tromey <tromey@redhat.com>
8300 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
8302 2014-02-12 Mark Kettenis <kettenis@gnu.org>
8304 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
8306 2014-02-12 Mark Kettenis <kettenis@gnu.org>
8308 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
8309 if a PT_IO ptrace request returns sucessfully but indicates that 0
8310 bytes were transferred.
8312 2014-02-12 Pedro Alves <palves@redhat.com>
8313 Kevin Buettner <kevinb@redhat.com>
8315 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
8316 TYPE_INSTANCE_FLAG_CODE_SPACE.
8318 2014-02-12 Pedro Alves <palves@redhat.com>
8320 * h8300-tdep.c (pseudo_from_raw_register)
8321 (raw_from_pseudo_register): New functions.
8322 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
8325 2014-02-12 Pedro Alves <palves@redhat.com>
8327 * h8300-tdep.c (h8300_register_sim_regno): New function.
8328 (h8300_gdbarch_init): Install h8300_register_sim_regno as
8329 gdbarch_register_sim_regno hook.
8331 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
8333 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
8335 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
8337 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
8339 2014-02-12 Mark Kettenis <kettenis@gnu.org>
8341 * obsd-tdep.h (obsd_init_abi): New prototype.
8342 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
8343 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
8344 (obsd_init_abi): New functions.
8345 * i386obsd-tdep.c: Include "obsd-tdep.h".
8346 (i386obsd_init_abi): Call obsd_init_abi.
8347 * amd64obsd-tdep.c: Include "obsd-tdep.h".
8348 (amd64obsd_init_abi): Call obsd_init_abi.
8349 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
8350 obsd-tdep.c to gdb_target_obs.
8352 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
8354 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
8355 double float arguments to 16-byte in the argument slots.
8357 2014-02-11 Doug Evans <xdje42@gmail.com>
8359 * configure.ac: Don't crash if pkg-config is not found and guile
8360 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
8362 * configure: Regenerate.
8364 2014-02-11 Yao Qi <yao@codesourcery.com>
8366 * aix-thread.c (aix_thread_xfer_partial): Update comments.
8367 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
8368 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
8369 * gnu-nat.c (gnu_xfer_memory): Likewise.
8370 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
8371 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
8372 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
8373 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
8375 2014-02-11 Yao Qi <yao@codesourcery.com>
8377 * target.h (enum target_xfer_error): Rename to ...
8378 (enum target_xfer_status): ... it. New. All users updated.
8379 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
8381 (TARGET_XFER_STATUS_ERROR_P): New macro.
8382 (target_xfer_error_to_string): Remove declaration.
8383 (target_xfer_status_to_string): Declare.
8384 (target_xfer_partial_ftype): Adjust it.
8385 (struct target_ops) <to_xfer_partial>: Return
8386 target_xfer_status. Add argument xfered_len. Update
8388 * target.c (target_xfer_error_to_string): Rename to ...
8389 (target_xfer_status_to_string): ... it. New. All callers
8391 (target_read_live_memory): Likewise. Call target_xfer_partial
8392 instead of target_read.
8393 (memory_xfer_live_readonly_partial): Return
8394 target_xfer_status. Add argument xfered_len.
8395 (raw_memory_xfer_partial): Likewise.
8396 (memory_xfer_partial_1): Likewise.
8397 (memory_xfer_partial): Likewise.
8398 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
8399 properly. Update debug message.
8400 (default_xfer_partial, current_xfer_partial): Likewise.
8401 (target_write_partial): Likewise.
8402 (target_read_partial): Likewise. All callers updated.
8403 (read_whatever_is_readable): Likewise.
8404 (target_write_with_progress): Likewise.
8405 (target_read_alloc_1): Likewise.
8407 * aix-thread.c (aix_thread_xfer_partial): Likewise.
8408 * auxv.c (procfs_xfer_auxv): Likewise.
8409 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
8410 * bfd-target.c (target_bfd_xfer_partial): Likewise.
8411 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
8412 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
8413 * corefile.c (read_memory): Adjust.
8414 * corelow.c (core_xfer_partial): Likewise.
8415 * ctf.c (ctf_xfer_partial): Likewise.
8416 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
8418 (darwin_xfer_partial): Likewise.
8419 * exec.c (section_table_xfer_memory_partial): Likewise. All
8421 (exec_xfer_partial): Likewise.
8422 * exec.h (section_table_xfer_memory_partial): Update
8424 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
8426 (gnu_xfer_partial): Likewise.
8427 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
8428 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
8429 (ia64_hpux_xfer_solib_got): Likewise.
8430 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
8431 type of 'partial_len' to ULONGEST.
8432 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
8433 * linux-nat.c (linux_xfer_siginfo ): Likewise.
8434 (linux_nat_xfer_partial): Likewise.
8435 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
8436 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
8437 * monitor.c (monitor_xfer_memory): Likewise.
8438 (monitor_xfer_partial): Likewise.
8439 * procfs.c (procfs_xfer_partial): Likewise.
8440 * record-btrace.c (record_btrace_xfer_partial): Likewise.
8441 * record-full.c (record_full_xfer_partial): Likewise.
8442 (record_full_core_xfer_partial): Likewise.
8443 * remote-sim.c (gdbsim_xfer_memory): Likewise.
8444 (gdbsim_xfer_partial): Likewise.
8445 * remote.c (remote_write_bytes_aux): Likewise. All callers
8447 (remote_write_bytes, remote_read_bytes): Likewise. All
8449 (remote_flash_erase): Likewise. All callers updated.
8450 (remote_write_qxfer): Likewise. All callers updated.
8451 (remote_read_qxfer): Likewise. All callers updated.
8452 (remote_xfer_partial): Likewise.
8453 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
8454 (rs6000_xfer_shared_libraries): Likewise.
8455 * sol-thread.c (sol_thread_xfer_partial): Likewise.
8456 (sol_thread_xfer_partial): Likewise.
8457 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
8458 (sparc_xfer_partial): Likewise.
8459 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
8461 (spu_xfer_partial): Likewise.
8462 * spu-multiarch.c (spu_xfer_partial): Likewise.
8463 * tracepoint.c (tfile_xfer_partial): Likewise.
8464 * windows-nat.c (windows_xfer_memory): Likewise.
8465 (windows_xfer_shared_libraries): Likewise.
8466 (windows_xfer_partial): Likewise.
8467 * valprint.c: Replace 'target_xfer_error' with
8468 'target_xfer_status' in comments.
8470 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
8472 Checked in by Joel Brobecker <brobecker@adacore.com>.
8473 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
8475 2014-02-11 Joel Brobecker <brobecker@adacore.com>
8477 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
8478 function parameters.
8480 2014-02-10 Will Newton <will.newton@linaro.org>
8482 * elfread.c (elf_rel_plt_read): Look for a .got section if
8483 looking up .got.plt fails.
8484 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
8485 on address passed to elf_gnu_ifunc_record_cache.
8486 (elf_gnu_ifunc_resolve_addr): Likewise.
8487 (elf_gnu_ifunc_resolver_return_stop): Likewise.
8489 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
8491 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
8492 (X_RETTURN): New macro.
8493 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
8495 * sparc64-tdep.c (sparc64_init_abi): Hook
8496 sparc_in_function_epilogue_p.
8498 2014-02-10 Gary Benson <gbenson@redhat.com>
8500 * symfile-debug.c (debug_qf_expand_symtabs_matching):
8501 Rename name_matcher to symbol_matcher.
8503 2014-02-10 Gary Benson <gbenson@redhat.com>
8505 * symfile-debug.c (debug_qf_expand_symtabs_matching):
8506 Use expand_symtabs_file_matcher_ftype and
8507 expand_symtabs_symbol_matcher_ftype.
8509 2014-02-10 Joel Brobecker <brobecker@adacore.com>
8511 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
8512 (struct ada_symbol_cache): New.
8513 (ada_free_symbol_cache): Forward declare.
8514 (struct ada_pspace_data): New.
8515 (ada_pspace_data_handle): New static global.
8516 (get_ada_pspace_data, ada_pspace_data_cleanup)
8517 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
8518 (cache_space, cache): Delete, now folded inside struct
8520 (ada_get_symbol_cache): New function.
8521 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
8523 (_initialize_ada_language): Remove initialization of cache_space.
8524 Move call to observer_attach_inferior_exit up, grouping it
8525 with the other observer registrations inside this function.
8526 Rename command to be more general. Add call to
8527 register_program_space_data_with_cleanup.
8529 2014-02-10 Joel Brobecker <brobecker@adacore.com>
8531 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
8532 ada_new_objfile_observer.
8533 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
8534 (_initialize_tasks): Update uses of ada_new_objfile_observer
8535 and ada_tasks_normal_stop_observer.
8537 2014-02-10 Joel Brobecker <brobecker@adacore.com>
8539 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
8540 returned by the 'Length attribute to integer.
8542 2014-02-10 Joel Brobecker <brobecker@adacore.com>
8544 * ada-lang.c (_initialize_ada_language): Initialize
8545 cache_space obstack.
8547 2014-02-10 Joel Brobecker <brobecker@adacore.com>
8549 * ada-lang.c (HASH_SIZE): New macro.
8550 (struct cache_entry): New type.
8551 (cache_space, cache): New static globals.
8552 (ada_clear_symbol_cache, find_entry): New functions.
8553 (lookup_cached_symbol, cache_symbol): Implement.
8554 (ada_new_objfile_observer, ada_free_objfile_observer): New.
8555 (_initialize_ada_language): Attach ada_new_objfile_observer
8556 and ada_free_objfile_observer.
8558 2014-02-10 Joel Brobecker <brobecker@adacore.com>
8560 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
8561 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
8562 struct block * parameter.
8563 (ada_lookup_symbol_list_worker): Constify local variable "block".
8564 Remove cast which is no longer necessary.
8566 2014-02-10 Doug Evans <xdje42@gmail.com>
8568 Add Guile as an extension language.
8569 * NEWS: Mention Guile scripting.
8570 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
8571 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
8572 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
8573 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
8574 (CLIBS): Add GUILE_LIBS.
8575 (install-guile): New rule.
8576 (guile.o): New rule.
8577 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
8578 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
8579 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
8580 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
8581 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
8582 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
8583 (scm-type.o, scm-utils.o, scm-value.o): New rules.
8584 * configure.ac: New option --with-guile.
8585 * configure: Regenerate.
8586 * config.in: Regenerate.
8587 * auto-load.c: Remove #include "python/python.h". Add #include
8588 "gdb/section-scripts.h".
8589 (source_section_scripts): Handle Guile scripts.
8590 (_initialize_auto_load): Add name of Guile objfile script to
8591 scripts-directory help text.
8592 * breakpoint.c (condition_command): Tweak comment to include Scheme.
8593 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
8594 (struct breakpoint): New member scm_bp_object.
8595 * defs.h (enum command_control_type): New value guile_control.
8596 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
8598 (show_user): Update comment.
8599 (_initialize_cli_cmds): Update help text for "show user". Update help
8600 text for max-user-call-depth.
8601 * cli/cli-script.c: Remove #include "python/python.h". Add #include
8603 (multi_line_command_p): Add guile_control.
8604 (print_command_lines): Handle guile_control.
8605 (execute_control_command, recurse_read_control_structure): Ditto.
8606 (process_next_line): Recognize "guile" commands.
8607 * disasm.c (gdb_disassemble_info): Make non-static.
8608 * disasm.h: #include "dis-asm.h".
8609 (struct gdbarch): Add forward decl.
8610 (gdb_disassemble_info): Declare.
8611 * extension.c: #include "guile/guile.h".
8612 (extension_languages): Add guile.
8613 (get_ext_lang_defn): Handle EXT_LANG_GDB.
8614 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
8615 * gdbtypes.c (get_unsigned_type_max): New function.
8616 (get_signed_type_minmax): New function.
8617 * gdbtypes.h (get_unsigned_type_max): Declare.
8618 (get_signed_type_minmax): Declare.
8619 * guile/README: New file.
8620 * guile/guile-internal.h: New file.
8621 * guile/guile.c: New file.
8622 * guile/guile.h: New file.
8623 * guile/scm-arch.c: New file.
8624 * guile/scm-auto-load.c: New file.
8625 * guile/scm-block.c: New file.
8626 * guile/scm-breakpoint.c: New file.
8627 * guile/scm-disasm.c: New file.
8628 * guile/scm-exception.c: New file.
8629 * guile/scm-frame.c: New file.
8630 * guile/scm-gsmob.c: New file.
8631 * guile/scm-iterator.c: New file.
8632 * guile/scm-lazy-string.c: New file.
8633 * guile/scm-math.c: New file.
8634 * guile/scm-objfile.c: New file.
8635 * guile/scm-ports.c: New file.
8636 * guile/scm-pretty-print.c: New file.
8637 * guile/scm-safe-call.c: New file.
8638 * guile/scm-string.c: New file.
8639 * guile/scm-symbol.c: New file.
8640 * guile/scm-symtab.c: New file.
8641 * guile/scm-type.c: New file.
8642 * guile/scm-utils.c: New file.
8643 * guile/scm-value.c: New file.
8644 * guile/lib/gdb.scm: New file.
8645 * guile/lib/gdb/boot.scm: New file.
8646 * guile/lib/gdb/experimental.scm: New file.
8647 * guile/lib/gdb/init.scm: New file.
8648 * guile/lib/gdb/iterator.scm: New file.
8649 * guile/lib/gdb/printing.scm: New file.
8650 * guile/lib/gdb/types.scm: New file.
8651 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
8652 (VPATH): Add $(GUILE_SRCDIR).
8653 (GUILE_DIR): New variable.
8654 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
8655 (all): Add stamp-guile dependency.
8656 (stamp-guile): New rule.
8657 (clean-guile, install-guile, uninstall-guile): New rules.
8658 (install-only): Add install-guile dependency.
8659 (uninstall): Add uninstall-guile dependency.
8660 (clean): Add clean-guile dependency.
8662 2014-02-09 Doug Evans <xdje42@gmail.com>
8664 Revert this patch (which I approved, mea culpa).
8666 2014-02-08 Mark Kettenis <kettenis@gnu.org>
8668 * Makefile.in (all-lib): Remove.
8669 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
8671 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
8673 Fix Python stack corruption.
8674 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
8677 2014-02-08 Mark Kettenis <kettenis@gnu.org>
8679 * Makefile.in (all-lib): Remove.
8680 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
8682 2014-02-07 Doug Evans <dje@google.com>
8684 * extension-priv.h (extension_language_script_ops): Add comment.
8685 (extension_language_ops): Add comment.
8686 (active_ext_lang_state): Fix typo in comment.
8688 2014-02-07 Pedro Alves <palves@redhat.com>
8690 PR breakpoints/16292
8691 * infrun.c (handle_signal_stop) <signal arrives while stepping
8692 over a breakpoint>: Switch back to the stepping thread.
8694 2014-02-07 Yao Qi <yao@codesourcery.com>
8696 * target.c (target_xfer_partial): Return zero if LEN is zero.
8698 2014-02-07 Yao Qi <yao@codesourcery.com>
8700 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
8701 (ld_so_xfer_auxv): Likewise.
8702 * bfd-target.c (target_bfd_xfer_partial): Likewise.
8703 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
8704 * corelow.c (core_xfer_partial): Likewise.
8705 * ctf.c (ctf_xfer_partial): Likewise.
8706 * darwin-nat.c (darwin_read_dyld_info): Likewise.
8707 (darwin_xfer_partial): Likewise.
8708 * exec.c (exec_xfer_partial): Likewise.
8709 * gnu-nat.c (gnu_xfer_partial): Likewise.
8710 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
8711 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
8712 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
8713 * linux-nat.c (linux_xfer_siginfo): Likewise.
8714 (linux_proc_xfer_spu): Likewise.
8715 * procfs.c (procfs_xfer_partial): Likewise.
8716 * record-full.c (record_full_xfer_partial): Likewise.
8717 (record_full_core_xfer_partial): Likewise.
8718 * remote-sim.c (gdbsim_xfer_partial): Likewise.
8719 * remote.c (remote_write_qxfer): Likewise.
8720 (remote_write_qxfer, remote_read_qxfer): Likewise.
8721 (remote_xfer_partial): Likewise.
8722 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
8723 (rs6000_xfer_shared_libraries): Likewise.
8724 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
8725 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
8726 (spu_xfer_partial): Likewise.
8727 * target.c (memory_xfer_partial_1): Likewise.
8728 * tracepoint.c (tfile_xfer_partial): Likewise.
8729 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
8730 (windows_xfer_partial): Likewise.
8732 2014-02-07 Yao Qi <yao@codesourcery.com>
8734 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
8736 (core_xfer_shared_libraries_aix): Likewise.
8737 * gdbarch.c, gdbarch.h: Regenerated.
8738 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
8739 ULONGEST. Change 'len_avail' type to ULONGEST.
8740 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
8741 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
8743 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
8745 2014-02-07 Yao Qi <yao@codesourcery.com>
8747 * corefile.c (memory_error): Get 'exception' from ERR and pass
8748 'exception' to throw_error.
8750 2014-02-06 Doug Evans <xdje42@gmail.com>
8752 * configure.ac (libpython checking): Remove all but python.o from
8753 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
8754 * configure: Regenerate.
8756 * Makefile.in (SFILES): Add extension.c.
8757 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
8758 (COMMON_OBS): Add extension.o.
8759 * extension.h: New file.
8760 * extension-priv.h: New file.
8761 * extension.c: New file.
8763 * python/python-internal.h: #include "extension.h".
8764 (gdbpy_auto_load_enabled): Declare.
8765 (gdbpy_apply_val_pretty_printer): Declare.
8766 (gdbpy_apply_frame_filter): Declare.
8767 (gdbpy_preserve_values): Declare.
8768 (gdbpy_breakpoint_cond_says_stop): Declare.
8769 (gdbpy_breakpoint_has_cond): Declare.
8770 (void source_python_script_for_objfile): Delete.
8771 * python/python.c: #include "extension-priv.h".
8772 Delete inclusion of "observer.h".
8773 (extension_language_python): Moved here and renamed from
8774 script_language_python in py-auto-load.c.
8775 Redefined to be of type extension_language_defn.
8776 (python_extension_script_ops): New global.
8777 (python_extension_ops): New global.
8778 (struct python_env): New member previous_active.
8779 (restore_python_env): Call restore_active_ext_lang.
8780 (ensure_python_env): Call set_active_ext_lang.
8781 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
8783 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
8785 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
8787 (gdbpy_eval_from_control_command): Renamed from
8788 eval_python_from_control_command, made static. New arg extlang.
8789 (gdbpy_source_script) Renamed from source_python_script, made static.
8791 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
8792 result to int. New arg extlang.
8793 (gdbpy_source_objfile_script): Renamed from
8794 source_python_script_for_objfile, made static. New arg extlang.
8795 (gdbpy_start_type_printers): Renamed from start_type_printers, made
8796 static. New args extlang, extlang_printers. Change result type to
8798 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
8799 static. New arg extlang. Rename arg printers to extlang_printers
8800 and change type to ext_lang_type_printers *.
8801 (gdbpy_free_type_printers): Renamed from free_type_printers, made
8802 static. Replace argument arg with extlang, extlang_printers.
8803 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
8804 (!HAVE_PYTHON, source_python_script): Delete.
8805 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
8806 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
8807 (!HAVE_PYTHON, start_type_printers): Delete.
8808 (!HAVE_PYTHON, apply_type_printers): Delete.
8809 (!HAVE_PYTHON, free_type_printers): Delete.
8810 (_initialize_python): Delete call to observer_attach_before_prompt.
8811 (finalize_python): Set/restore active extension language.
8812 (gdbpy_finish_initialization) Renamed from
8813 finish_python_initialization, made static. New arg extlang.
8814 (gdbpy_initialized): New function.
8815 * python/python.h: #include "extension.h". Delete #include
8816 "value.h", "mi/mi-cmds.h".
8817 (extension_language_python): Declare.
8818 (GDBPY_AUTO_FILE_NAME): Delete.
8819 (enum py_bt_status): Moved to extension.h and renamed to
8821 (enum frame_filter_flags): Moved to extension.h.
8822 (enum py_frame_args): Moved to extension.h and renamed to
8823 ext_lang_frame_args.
8824 (finish_python_initialization): Delete.
8825 (eval_python_from_control_command): Delete.
8826 (source_python_script): Delete.
8827 (apply_val_pretty_printer): Delete.
8828 (apply_frame_filter): Delete.
8829 (preserve_python_values): Delete.
8830 (gdbpy_script_language_defn): Delete.
8831 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
8832 (start_type_printers, apply_type_printers, free_type_printers): Delete.
8834 * auto-load.c: #include "extension.h".
8835 (GDB_AUTO_FILE_NAME): Delete.
8836 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
8837 (script_language_gdb): Delete, moved to extension.c and renamed to
8838 extension_language_gdb.
8839 (source_gdb_script_for_objfile): Delete.
8840 (auto_load_pspace_info): New member unsupported_script_warning_printed.
8841 (loaded_script): Change type of language member to
8842 struct extension_language_defn *.
8843 (init_loaded_scripts_info): Initialize
8844 unsupported_script_warning_printed.
8845 (maybe_add_script): Make static. Change type of language arg to
8846 struct extension_language_defn *.
8847 (clear_section_scripts): Reset unsupported_script_warning_printed.
8848 (auto_load_objfile_script_1): Rewrite to use extension language API.
8849 (auto_load_objfile_script): Make public. Remove support-compiled-in
8850 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
8851 (source_section_scripts): Rewrite to use extension language API.
8852 (load_auto_scripts_for_objfile): Rewrite to use
8853 auto_load_scripts_for_objfile.
8854 (collect_matching_scripts_data): Change type of language member to
8855 struct extension_language_defn *.
8856 (auto_load_info_scripts): Change type of language arg to
8857 struct extension_language_defn *.
8858 (unsupported_script_warning_print): New function.
8859 (script_not_found_warning_print): Make static.
8860 (_initialize_auto_load): Rewrite construction of scripts-directory
8862 * auto-load.h (struct objfile): Add forward decl.
8863 (struct script_language): Delete.
8864 (struct auto_load_pspace_info): Add forward decl.
8865 (struct extension_language_defn): Add forward decl.
8866 (maybe_add_script): Delete.
8867 (auto_load_objfile_script): Declare.
8868 (script_not_found_warning_print): Delete.
8869 (auto_load_info_scripts): Update prototype.
8870 (auto_load_gdb_scripts_enabled): Declare.
8871 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
8872 auto_load_python_scripts_enabled and made public.
8873 (script_language_python): Delete, moved to python.c.
8874 (gdbpy_script_language_defn): Delete.
8875 (info_auto_load_python_scripts): Update to use
8876 extension_language_python.
8878 * breakpoint.c (condition_command): Replace call to
8879 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
8880 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
8881 with call to breakpoint_ext_lang_cond_says_stop.
8882 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
8883 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
8884 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
8885 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
8887 (local_setattro): Print name of extension language with existing
8890 * valprint.c (val_print, value_print): Update to call
8891 apply_ext_lang_val_pretty_printer.
8892 * cp-valprint.c (cp_print_value): Update call to
8893 apply_ext_lang_val_pretty_printer.
8894 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
8895 (gdbpy_apply_val_pretty_printer): Renamed from
8896 apply_val_pretty_printer. New arg extlang.
8897 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
8899 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
8900 extension language API.
8901 * cli/cli-script.c (execute_control_command): Update to call
8902 eval_ext_lang_from_control_command.
8904 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
8905 enum ext_lang_bt_status values. Update call to
8906 apply_ext_lang_frame_filter.
8907 (mi_cmd_stack_list_locals): Ditto.
8908 (mi_cmd_stack_list_args): Ditto.
8909 (mi_cmd_stack_list_variables): Ditto.
8910 * mi/mi-main.c: Delete #include "python/python-internal.h".
8911 Add #include "extension.h".
8912 (mi_cmd_list_features): Replace reference to python internal variable
8913 gdb_python_initialized with call to ext_lang_initialized_p.
8915 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
8916 Update to use enum ext_lang_frame_args. Update to call
8917 apply_ext_lang_frame_filter.
8918 * python/py-framefilter.c (extract_sym): Update to use enum
8920 (extract_value, py_print_type, py_print_value): Ditto.
8921 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
8922 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
8923 (py_print_frame): Ditto.
8924 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
8925 New arg extlang. Update to use enum ext_lang_bt_status.
8927 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
8928 finish_python_initialization. Replace with call to
8929 finish_ext_lang_initialization.
8931 * typeprint.c (do_free_global_table): Update to call
8932 free_ext_lang_type_printers.
8933 (create_global_typedef_table): Update to call
8934 start_ext_lang_type_printers.
8935 (find_global_typedef): Update to call apply_ext_lang_type_printers.
8936 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
8937 (type_print_options): Change type of global_printers from "void *"
8938 to "struct ext_lang_type_printers *".
8940 * value.c (preserve_values): Update to call preserve_ext_lang_values.
8941 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
8942 (gdbpy_preserve_values): Renamed from preserve_python_values.
8944 (!HAVE_PYTHON, preserve_python_values): Delete.
8946 * utils.c (quit_flag): Delete, moved to extension.c.
8947 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
8950 * eval.c: Delete #include "python/python.h".
8951 * main.c: Delete #include "python/python.h".
8953 * defs.h: Update comment.
8955 2014-02-06 Joel Brobecker <brobecker@adacore.com>
8959 2014-02-05 Mark Kettenis <kettenis@gnu.org>
8961 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
8964 2014-02-05 Yao Qi <yao@codesourcery.com>
8966 * remote.c (remote_pass_signals): Remove local 'buf' and use
8968 (remote_program_signals): Likewise.
8970 2014-02-05 Yao Qi <yao@codesourcery.com>
8972 * ctf.c: Include "inferior.h" and "gdbthread.h".
8973 (CTF_PID): A new macro.
8974 (ctf_open): Call inferior_appeared and add_thread_silent.
8975 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
8976 (ctf_thread_alive): New function.
8977 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
8979 2014-02-05 Yao Qi <yao@codesourcery.com>
8983 2013-05-24 Yao Qi <yao@codesourcery.com>
8985 * tracepoint.c (TFILE_PID): Remove.
8986 (tfile_open): Don't add thread and inferior.
8987 (tfile_close): Don't set 'inferior_ptid'. Don't call
8988 exit_inferior_silent.
8989 (tfile_thread_alive): Remove.
8990 (init_tfile_ops): Don't set field 'to_thread_alive' of
8993 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
8995 * remote.c (remote_start_remote): Call remote_check_symbols even
8996 if only symbol-file (not file) has been given.
8998 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
9000 * gdbarch.sh (skip_entrypoint): New callback.
9001 * gdbarch.c, gdbarch.h: Regenerate.
9002 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
9003 * infrun.c (fill_in_stop_func): Likewise.
9004 * ppc-linux-tdep.c: Include "elf/ppc64.h".
9005 (ppc_elfv2_elf_make_msymbol_special): New function.
9006 (ppc_elfv2_skip_entrypoint): Likewise.
9007 (ppc_linux_init_abi): Install them for ELFv2.
9009 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
9011 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
9012 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
9013 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
9014 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
9015 structures returned in GPRs.
9017 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
9019 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
9020 offset to the stack parameter list for the ELFv2 ABI.
9022 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
9024 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
9025 set_gdbarch_convert_from_func_ptr_addr and
9026 set_gdbarch_elf_make_msymbol_special for ELFv1.
9027 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
9028 function descriptors on ELFv1.
9029 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
9030 set up r12 at function entry.
9032 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
9034 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
9035 (struct gdbarch_tdep): New member elf_abi.
9037 * rs6000-tdep.c: Include "elf/ppc64.h".
9038 (rs6000_gdbarch_init): Detect ELF ABI version.
9040 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
9042 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
9043 within a register pair holding a DFP 128-bit value on little-endian.
9044 (ppc64_sysv_abi_return_value_base): Likewise.
9045 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
9046 (dfp_pseudo_register_write): Likewise.
9048 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
9050 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
9051 offset on little-endian when passing _Decimal32.
9052 (ppc64_sysv_abi_return_value_base): Likewise for return values.
9054 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
9056 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
9057 of the overlapped FP register within the VSX register on little-
9059 (efpr_pseudo_register_write): Likewise.
9061 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
9063 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
9064 offset on little-endian when passing small structures.
9066 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
9068 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
9069 (struct ppc64_sysv_argpos): New data structure.
9070 (ppc64_sysv_abi_push_float): Remove.
9071 (ppc64_sysv_abi_push_val): New function.
9072 (ppc64_sysv_abi_push_integer): Likewise.
9073 (ppc64_sysv_abi_push_freg): Likewise.
9074 (ppc64_sysv_abi_push_vreg): Likewise.
9075 (ppc64_sysv_abi_push_param): Likewise.
9076 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
9077 (ppc64_sysv_abi_return_value_base): New function.
9078 (ppc64_sysv_abi_return_value): Refactor to use it.
9080 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
9082 * NEWS: Document new target powerpc64le-*-linux*.
9084 2014-02-04 Mark Kettenis <kettenis@gnu.org>
9086 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
9087 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
9089 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
9090 register set used in ELF core dumps. Add floating-point register set.
9092 2014-02-03 Kevin Buettner <kevinb@redhat.com>
9094 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
9095 dwarf2_to_gdb[] table using symbolic constants. Adjust
9096 penultimate entry from number representing the PC register
9097 to symbolic constant representing the MDR register. Add
9098 constant for the PC register to the end of the table.
9100 2014-02-03 Mark Kettenis <kettenis@gnu.org>
9102 * bsd-kvm.c: Include <sys/param.h>
9104 2014-02-03 Mark Kettenis <kettenis@gnu.org>
9106 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
9108 2014-01-31 Joel Brobecker <brobecker@adacore.com>
9110 * ada-lang.h (clear_ada_sym_cache): Delete.
9112 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
9114 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
9116 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
9118 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
9119 the sigreturn register save area only if the syscall is
9122 2014-01-29 Joel Brobecker <brobecker@adacore.com>
9124 * valops.c (value_slice): Minor reformatting.
9126 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
9128 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
9130 2014-01-28 Joel Brobecker <brobecker@adacore.com>
9132 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
9134 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
9135 (ada_ignore_descriptive_types_p): New static global.
9136 (find_parallel_type_by_descriptive_type): Return immediately
9137 if ada_ignore_descriptive_types_p is set.
9138 (_initialize_ada_language): Register new commands "maintenance
9139 set ada", "maintenance show ada", "maintenance set ada
9140 ignore-descriptive-types" and "maintenance show ada
9141 ignore-descriptive-types".
9142 * NEWS: Add entry for new "maint ada set/show
9143 ignore-descriptive-types" commands.
9145 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
9147 * record-btrace.c (record_btrace_close): Call btrace_teardown
9150 2014-01-27 Joel Brobecker <brobecker@adacore.com>
9152 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
9155 2014-01-27 Joel Brobecker <brobecker@adacore.com>
9157 * ada-typeprint (type_is_full_subrange_of_target_type):
9159 (print_range): Add parameter bounds_prefered_p. If not set,
9160 try printing range types using the name of their base type.
9161 (print_range_type): Add parameter bounds_prefered_p.
9162 Use it in call to print_range.
9163 (print_array_type, ada_print_type): Update calls to print_range
9164 and print_range_type.
9166 2014-01-27 Joel Brobecker <brobecker@adacore.com>
9168 * ada-typeprint.c (print_array_type, print_choices, print_range)
9169 (print_range_bound, print_dynamic_range_bound, print_range_type):
9172 2014-01-27 Joel Brobecker <brobecker@adacore.com>
9174 * ada-typeprint.c (print_range): Add missing empty line
9175 after local declaration.
9177 2014-01-27 Joel Brobecker <brobecker@adacore.com>
9179 * ada-valprint.c (print_optional_low_bound): Get index_type's
9180 target type for as long as it is a TYPE_CODE_RANGE.
9182 2014-01-27 Joel Brobecker <brobecker@adacore.com>
9184 * procfs.c (procfs_make_note_section): Remove assertion and
9187 2014-01-24 Yao Qi <yao@codesourcery.com>
9189 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
9190 * corelow.c (get_core_siginfo): Likewise.
9192 2014-01-24 Yao Qi <yao@codesourcery.com>
9194 * remote.c (remote_write_bytes_aux): Change type of 'len' to
9195 ULONGEST. Don't check 'len' is negative.
9196 (remote_write_bytes): Change type of 'len' to ULONGEST.
9198 2014-01-23 Tom Tromey <tromey@redhat.com>
9201 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
9202 Handle exception from frame.block.
9203 (FrameVars.fetch_frame_locals): Likewise.
9205 2014-01-23 Tom Tromey <tromey@redhat.com>
9208 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
9209 on a NULL pointer. Move "goto error" to correct place.
9211 2014-01-23 Tom Tromey <tromey@redhat.com>
9214 * python/py-framefilter.c (apply_frame_filter): Call
9215 ensure_python_env after computing gdbarch.
9217 2014-01-23 Yao Qi <yao@codesourcery.com>
9219 * target.c (raw_memory_xfer_partial): Change argument type
9220 from void * to gdb_byte *.
9221 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
9223 2014-01-22 Doug Evans <dje@google.com>
9225 New gdbserver option --debug-format=timestamp.
9228 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
9230 * syscalls/s390x-linux.xml: New file.
9231 * syscalls/s390-linux.xml: New file.
9232 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
9233 (XML_SYSCALL_FILENAME_S390X): Likewise.
9234 (op_svc): New enum value for SVC opcode.
9235 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
9236 (s390_linux_get_syscall_number): New function.
9237 (s390_gdbarch_init): Register '*get_syscall_number' and the
9238 syscall xml file name.
9239 * data-directory/Makefile.in (SYSCALLS_FILES): Add
9240 "s390-linux.xml" and "s390x-linux.xml".
9241 * NEWS: Announce new feature.
9243 2014-01-22 Baruch Siach <baruch@tkos.co.il>
9245 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
9247 2014-01-22 Pedro Alves <palves@redhat.com>
9249 * xtensa-config.c: Include defs.h.
9251 2014-01-22 Joel Brobecker <brobecker@adacore.com>
9253 * common/common-utils.h: Add "ARI:" comment beside __func__
9256 2014-01-22 Joel Brobecker <brobecker@adacore.com>
9258 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
9259 documentation a bit.
9261 2014-01-21 Roland McGrath <mcgrathr@google.com>
9263 * configure.ac: Call AM_PROG_INSTALL_STRIP.
9264 * configure: Regenerate.
9265 * aclocal.m4: Regenerate.
9266 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
9267 New substituted variables.
9268 (install-strip): New target.
9269 (INSTALL_SCRIPT): New substituted variable.
9270 (FLAGS_TO_PASS): Add it.
9271 (install-only): Use $(INSTALL_SCRIPT) rather than
9272 $(INSTALL_PROGRAM) for gcore.
9274 2014-01-20 Tom Tromey <tromey@redhat.com>
9276 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
9279 2014-01-20 Tom Tromey <tromey@redhat.com>
9281 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
9282 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
9283 (deprecated_cmd_warning, complete_on_cmdlist): Update.
9284 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
9285 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
9286 (struct cmd_list_element) <flags>: Remove.
9287 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
9288 doc_allocated>: New fields.
9289 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
9291 * maint.c (maintenance_do_deprecate): Update.
9292 * top.c (execute_command): Update.
9294 2014-01-20 Baruch Siach <baruch@tkos.co.il>
9296 * xtensa-linux-nat.c: Include asm/ptrace.h.
9298 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9300 * Makefile.in (SFILES): Add d-support.c.
9301 (COMMON_OBS): Add d-support.o.
9302 * d-lang.h (d_parse_symbol): Add comment, now defined in
9304 * d-lang.c (parse_call_convention)
9305 (parse_attributes, parse_function_types)
9306 (parse_function_args, parse_type, parse_identifier)
9307 (call_convention_p, d_parse_symbol): Move functions to ...
9308 * d-support.c: ... New file.
9310 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9312 * d-lang.h (d_parse_symbol): Add declaration.
9313 * d-lang.c (extract_identifiers)
9314 (extract_type_info): Remove functions.
9315 (parse_call_convention, parse_attributes)
9316 (parse_function_types, parse_function_args)
9317 (parse_type, parse_identifier, call_convention_p)
9318 (d_parse_symbol): New functions.
9319 (d_demangle): Use d_parse_symbol to demangle D symbols.
9321 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9323 * d-lang.h (struct builtin_d_type): New data type.
9324 (builtin_d_type): Add declaration.
9325 * d-lang.c (d_language_arch_info, build_d_types)
9326 (builtin_d_type): New functions.
9327 (enum d_primitive_types): New data type.
9328 (d_language_defn): Change c_language_arch_info to
9329 d_language_arch_info.
9330 (d_type_data): New static variable.
9331 (_initialize_d_language): Initialize d_type_data.
9333 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9335 * d-lang.h (d_main_name): Add declaration.
9336 * d-lang.c (d_main_name): New function.
9337 * symtab.c (find_main_name): Add call to d_main_name.
9339 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9341 * d-lang.c (d_language_defn): Change macro_expansion_c to
9344 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9346 * MAINTAINERS: Add myself as a write-after-approval maintainer.
9348 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
9350 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
9351 gdb_exception" declaration.
9352 * remote.c (getpkt_or_notif_sane): Likewise.
9354 2014-01-17 Doug Evans <dje@google.com>
9356 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
9357 function, contents of dirnames_to_char_ptr_vec_append moved here.
9358 (delim_string_to_char_ptr_vec): New function.
9359 (dirnames_to_char_ptr_vec_append): Rewrite.
9360 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
9362 2014-01-17 Doug Evans <dje@google.com>
9364 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
9366 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
9367 #include "common-utils.h".
9368 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
9369 * common/vec.h (VEC_ASSERT_PASS): Update.
9370 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
9371 (MACH_CHECK_ERROR): Update.
9373 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
9375 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
9377 * gdbarch.h: Regenerate.
9379 2014-01-16 Tom Tromey <tromey@redhat.com>
9381 * value.c (struct value) <regnum>: Move earlier.
9383 2014-01-16 Tom Tromey <tromey@redhat.com>
9385 * remote.c (extended_remote_create_inferior): Rename from
9386 extended_remote_create_inferior_1. Add "ops" argument. Remove
9389 2014-01-16 Pedro Alves <palves@redhat.com>
9391 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
9392 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
9395 2014-01-16 Doug Evans <dje@google.com>
9397 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
9399 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9401 * btrace.h (btrace_thread_flag): New.
9402 (struct btrace_thread_info) <flags>: New.
9403 * record-btrace.c (record_btrace_resume_thread)
9404 (record_btrace_find_thread_to_move, btrace_step_no_history)
9405 (btrace_step_stopped, record_btrace_start_replaying)
9406 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
9407 (record_btrace_find_resume_thread): New.
9408 (record_btrace_resume, record_btrace_wait): Extend.
9409 (record_btrace_can_execute_reverse): New.
9410 (record_btrace_open): Fail in non-stop mode.
9411 (record_btrace_set_replay): Split into this, ...
9412 (record_btrace_stop_replaying): ... this, ...
9413 (record_btrace_clear_histories): ... and this.
9414 (init_record_btrace_ops): Init to_can_execute_reverse.
9415 * NEWS: Announce it.
9417 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9419 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
9420 (forward_target_decr_pc_after_break)
9421 (target_decr_pc_after_break): New.
9422 * target.c (forward_target_decr_pc_after_break)
9423 (target_decr_pc_after_break): New.
9424 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
9425 instead of gdbarch_decr_pc_after_break.
9426 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
9427 instead of gdbarch_decr_pc_after_break.
9428 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
9429 instead of gdbarch_decr_pc_after_break.
9430 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
9431 instead of gdbarch_decr_pc_after_break.
9432 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
9433 instead of gdbarch_decr_pc_after_break.
9434 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
9435 instead of gdbarch_decr_pc_after_break.
9437 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9439 * btrace.c: Include regcache.h.
9440 (btrace_add_pc): New.
9441 (btrace_enable): Call btrace_add_pc.
9442 (btrace_is_empty): New.
9443 * btrace.h (btrace_is_empty): New.
9444 * record-btrace.c (require_btrace, record_btrace_info): Call
9447 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9449 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
9450 Support delta reads.
9451 (linux_disable_btrace): Change return type.
9452 * common/linux-btrace.h (linux_read_btrace): Change parameters
9453 and return type to allow error reporting. Update users.
9454 (linux_disable_btrace): Change return type. Update users.
9455 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
9457 (btrace_error): New.
9458 (btrace_block) <begin>: Comment on BEGIN == 0.
9459 * btrace.c (btrace_compute_ftrace): Start from the end of
9461 (btrace_stitch_trace, btrace_clear_history): New.
9462 (btrace_fetch): Read delta trace, return if replaying.
9463 (btrace_clear): Move clear history code to btrace_clear_history.
9464 (parse_xml_btrace): Throw an error if parsing failed.
9465 * target.h (struct target_ops) <to_read_btrace>: Change parameters
9466 and return type to allow error reporting.
9467 (target_read_btrace): Change parameters and return type to allow
9469 * target.c (target_read_btrace): Update.
9470 * remote.c (remote_read_btrace): Support delta reads. Pass
9472 * NEWS: Announce it.
9474 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9476 * record.h (record_btrace_frame_unwind)
9477 (record_btrace_tailcall_frame_unwind): New declarations.
9478 * dwarf2-frame: Include record.h
9479 (dwarf2_frame_cfa): Throw an error for btrace frames.
9480 * record-btrace.c: Include hashtab.h.
9481 (btrace_get_bfun_name): New.
9482 (btrace_call_history): Call btrace_get_bfun_name.
9483 (struct btrace_frame_cache): New.
9485 (bfcache_hash, bfcache_eq, bfcache_new): New.
9486 (btrace_get_frame_function): New.
9487 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
9488 (record_btrace_frame_this_id): Compute own id.
9489 (record_btrace_frame_prev_register): Provide PC, throw_error
9490 for all other registers.
9491 (record_btrace_frame_sniffer): Detect btrace frames.
9492 (record_btrace_tailcall_frame_sniffer): New.
9493 (record_btrace_frame_dealloc_cache): New.
9494 (record_btrace_frame_unwind): Add new functions.
9495 (record_btrace_tailcall_frame_unwind): New.
9496 (_initialize_record_btrace): Allocate cache.
9497 * btrace.c (btrace_clear): Call reinit_frame_cache.
9498 * NEWS: Announce it.
9500 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9502 * record-btrace.c (record_btrace_set_replay)
9503 (record_btrace_goto_begin, record_btrace_goto_end)
9504 (record_btrace_goto): New.
9505 (init_record_btrace_ops): Initialize them.
9506 * NEWS: Announce it.
9508 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9510 * record-btrace.c (record_btrace_find_new_threads)
9511 (record_btrace_thread_alive): New.
9512 (init_record_btrace_ops): Initialize to_find_new_threads and
9515 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9517 * record-btrace.c (record_btrace_resume): New.
9518 (record_btrace_wait): New.
9519 (init_record_btrace_ops): Initialize to_wait and to_resume.
9521 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9523 * record-btrace.c (record_btrace_xfer_partial)
9524 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
9525 (record_btrace_allow_memory_access): New.
9526 (init_record_btrace_ops): Initialize new methods.
9527 * target.c (raw_memory_xfer_partial): Bail out if target reports
9528 that this memory is not available.
9530 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9532 * target.h (target_ops) <to_insert_breakpoint>
9533 <to_remove_breakpoint>: Add target_ops parameter.
9534 (forward_target_insert_breakpoint): New.
9535 (forward_target_remove_breakpoint): New.
9536 (memory_remove_breakpoint, memory_insert_breakpoint):
9537 Add target_ops parameter.
9538 * target.c (target_insert_breakpoint): Split into this and ...
9539 (forward_target_insert_breakpoint): ... this.
9540 (target_remove_breakpoint): Split into this and ...
9541 (forward_target_remove_breakpoint): ... this.
9542 (debug_to_insert_breakpoint): Add target_ops parameter.
9543 Call forward_target_insert_breakpoint.
9544 (debug_to_remove_breakpoint): Add target_ops parameter.
9545 Call forward_target_remove_breakpoint.
9546 (update_current_target): Do not inherit or default to_insert_breakpoint
9547 and to_remove_breakpoint.
9548 * corelow.c (ignore): Add target_ops parameter.
9549 * exec.c (ignore): Add target_ops parameter.
9550 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
9551 Add target_ops parameter.
9552 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
9553 Add target_ops parameter.
9554 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
9555 Add target_ops parameter.
9556 * record-full.c (record_full_beneath_to_insert_breakpoint)
9557 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
9558 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
9559 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
9560 (record_full_core_remove_breakpoint): Add target_ops parameter.
9562 (record_full_beneath_to_insert_breakpoint_ops)
9563 (record_full_beneath_to_remove_breakpoint_ops)
9564 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
9565 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
9566 tmp_to_remove_breakpoint_ops,
9567 record_full_beneath_to_insert_breakpoint_ops, and
9568 record_full_beneath_to_remove_breakpoint_ops.
9569 * remote-m32r-sdi.c (m32r_insert_breakpoint)
9570 (m32r_remove_breakpoint): Add target_ops parameter.
9571 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
9572 Add target_ops parameter.
9573 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
9574 Add target_ops parameter.
9576 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
9577 Markus Metzger <markus.t.metzger@intel.com>
9579 * record-btrace.c: Include frame-unwind.h.
9580 (record_btrace_frame_unwind_stop_reason)
9581 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
9582 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
9584 (init_record_btrace_ops): Install it.
9586 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
9588 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
9591 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
9593 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
9596 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
9598 * frame-unwind.c: Include target.h.
9599 (frame_unwind_try_unwinder): New function with code from ...
9600 (frame_unwind_find_by_frame): ... here. New variable
9601 unwinder_from_target, call also target_get_unwinder)
9602 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
9603 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
9604 * target.h (struct target_ops): New fields to_get_unwinder and
9605 to_get_tailcall_unwinder.
9606 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
9608 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9610 * record-btrace.c (record_btrace_fetch_registers)
9611 (record_btrace_store_registers)
9612 (record_btrace_to_prepare_to_store): New.
9613 (init_record_btrace_ops): Add the above.
9615 2014-01-16 Tom Tromey <tromey@redhat.com>
9617 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
9618 * target.h (struct target_ops) <to_prepare_to_store>: Add
9620 (target_prepare_to_store): Add argument.
9621 * target.c (debug_to_prepare_to_store): Add argument.
9622 (update_current_target): Update.
9623 * remote.c (remote_prepare_to_store): Add 'self' argument.
9624 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
9625 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
9626 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
9627 * record-full.c (record_full_core_prepare_to_store): Add 'self'
9629 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
9630 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
9631 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
9632 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
9633 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
9635 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9637 * btrace.h (replay) <replay>: New.
9638 (btrace_is_replaying): New.
9639 * btrace.c (btrace_clear): Free replay iterator.
9640 (btrace_is_replaying): New.
9641 * record-btrace.c (record_btrace_is_replaying): New.
9642 (record_btrace_info): Print insn number if replaying.
9643 (record_btrace_insn_history): Start at replay position.
9644 (record_btrace_call_history): Start at replay position.
9645 (init_record_btrace_ops): Init to_record_is_replaying.
9647 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9649 * record-btrace.c (record_btrace_insn_history_range): Include
9651 (record_btrace_insn_history_from): Adjust range.
9652 (record_btrace_call_history_range): Include
9654 (record_btrace_call_history_from): Adjust range.
9655 * NEWS: Announce changes.
9657 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9659 * record.h (enum record_print_flag)
9660 <record_print_indent_calls>: New.
9661 * record.c (get_call_history_modifiers): Recognize /c modifier.
9662 (_initialize_record): Document /c modifier.
9663 * record-btrace.c (btrace_call_history): Add btinfo parameter.
9664 Reorder fields. Optionally indent the function name. Update
9666 * NEWS: Announce changes.
9668 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9670 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
9672 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9674 * btrace.c (ftrace_new_function): Start counting at one.
9675 * record-btrace.c (record_btrace_info): Adjust number of calls
9677 * NEWS: Announce it.
9679 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9681 * record-btrace.c (btrace_call_history_insn_range): Print
9682 insn range as [begin, end].
9684 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9686 * btrace.h (struct btrace_func_link): New.
9687 (enum btrace_function_flag): New.
9688 (struct btrace_inst): Rename to ...
9689 (struct btrace_insn): ...this. Update all users.
9690 (struct btrace_func) <ibegin, iend>: Remove.
9691 (struct btrace_func_link): New.
9692 (struct btrace_func): Rename to ...
9693 (struct btrace_function): ...this. Update all users.
9694 (struct btrace_function) <segment, flow, up, insn, insn_offset)
9695 (number, level, flags>: New.
9696 (struct btrace_insn_iterator): Rename to ...
9697 (struct btrace_insn_history): ...this.
9699 (struct btrace_insn_iterator, btrace_call_iterator): New.
9700 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
9701 (struct btrace_target_info) <begin, end, level>
9702 <insn_history, call_history>: New.
9703 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
9704 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
9705 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
9706 (btrace_call_number, btrace_call_begin, btrace_call_end)
9707 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
9708 (btrace_find_function_by_number, btrace_set_insn_history)
9709 (btrace_set_call_history): New.
9710 * btrace.c (btrace_init_insn_iterator)
9711 (btrace_init_func_iterator, compute_itrace): Remove.
9712 (ftrace_print_function_name, ftrace_print_filename)
9713 (ftrace_skip_file): Change
9715 (ftrace_init_func): Remove.
9716 (ftrace_debug): Use new btrace_function fields.
9717 (ftrace_function_switched): Also consider gaining and
9718 losing symbol information).
9719 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
9720 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
9721 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
9723 (ftrace_new_function): Move. Remove debug print.
9724 (ftrace_update_lines, ftrace_update_insns): New.
9725 (ftrace_update_function): Check for call, ret, and jump.
9726 (compute_ftrace): Renamed to ...
9727 (btrace_compute_ftrace): ...this. Rewritten to compute call
9729 (btrace_fetch, btrace_clear): Updated.
9730 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
9731 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
9732 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
9733 (btrace_call_number, btrace_call_begin, btrace_call_end)
9734 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
9735 (btrace_find_function_by_number, btrace_set_insn_history)
9736 (btrace_set_call_history): New.
9737 * record-btrace.c (require_btrace): Use new btrace thread
9739 (record_btrace_info, btrace_insn_history)
9740 (record_btrace_insn_history, record_btrace_insn_history_range):
9741 Use new btrace thread info fields and new iterator.
9742 (btrace_func_history_src_line): Rename to ...
9743 (btrace_call_history_src_line): ...this. Use new btrace
9745 (btrace_func_history): Rename to ...
9746 (btrace_call_history): ...this. Use new btrace thread info
9747 fields and new iterator.
9748 (record_btrace_call_history, record_btrace_call_history_range):
9749 Use new btrace thread info fields and new iterator.
9751 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9753 * frame.h (frame_id_build_unavailable_stack_special): New.
9754 * frame.c (frame_id_build_unavailable_stack_special): New.
9756 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9758 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
9759 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
9760 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
9762 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
9763 (i386_insn_is_jump, i386_jmp_p): New.
9764 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
9765 insn_is_jump to gdbarch.
9766 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
9767 * gdbarch.h: Regenerated.
9768 * gdbarch.c: Regenerated.
9769 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
9770 (default_insn_is_jump): New.
9771 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
9772 (default_insn_is_jump): New.
9774 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9776 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
9778 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
9779 (btrace_read_type) <btrace_read_new>: Change to ...
9780 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
9782 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9784 * common/linux-btrace.c (linux_read_btrace): Free trace from
9787 2014-01-15 Doug Evans <dje@google.com>
9789 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
9792 2014-01-15 Tom Tromey <tromey@redhat.com>
9794 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
9795 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
9796 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
9797 (set_objfile_main_name): New function.
9798 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
9799 language_of_main>: New fields.
9800 (set_objfile_main_name): Declare.
9801 * symtab.c (find_main_name): Loop over objfiles to find the main
9803 (set_main_name): Now static.
9804 (get_main_info): Add comment.
9805 * symtab.h (set_main_name): Don't declare.
9807 2014-01-15 Tom Tromey <tromey@redhat.com>
9809 * symtab.c (main_progspace_key): New global.
9810 (struct main_info): New.
9811 (name_of_main, language_of_main): Remove.
9812 (get_main_info, main_info_cleanup): New function.
9813 (set_main_name, main_name, main_language): Use get_main_info.
9814 (_initialize_symtab): Initialize main_progspace_key.
9816 2014-01-15 Tom Tromey <tromey@redhat.com>
9818 * dbxread.c (process_one_symbol): Update.
9819 * dwarf2read.c (read_partial_die): Update.
9820 * symfile.c (set_initial_language): Call main_language.
9821 * symtab.c (language_of_main): Now static.
9822 (set_main_name): Add 'lang' parameter.
9823 (find_main_name): Update.
9824 (main_language): New function.
9825 (symtab_observer_executable_changed): Update.
9826 * symtab.h (set_main_name): Update.
9827 (language_of_main): Remove.
9828 (main_language): Declare.
9830 2014-01-15 Tom Tromey <tromey@redhat.com>
9832 * symfile.c (init_entry_point_info): Use new "initialized" field.
9834 * objfiles.h (struct entry_point) <initialized>: New field.
9835 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
9836 (struct objfile) <ei>: ...here. Remove.
9837 * objfiles.c (entry_point_address_query): Update.
9839 2014-01-15 Tom Tromey <tromey@redhat.com>
9841 * objfiles.c (entry_point_address_query): Relocate entry point
9843 (objfile_relocate1): Do not relocate entry point address.
9844 * objfiles.h (struct entry_info) <entry_point>: Update comment.
9845 <the_bfd_section_index>: New field.
9846 * symfile.c (init_entry_point_info): Find the entry point's
9849 2014-01-15 Tom Tromey <tromey@redhat.com>
9851 * solib-frv.c (enable_break): Use entry_point_address_query.
9853 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
9855 * NEWS: Add note on improved process record-replay on
9856 arm*-linux* targets.
9858 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
9860 * arm-tdep.c (enum arm_record_result): New enum.
9861 (arm_record_unsupported_insn): New function.
9862 (arm_record_coproc_data_proc): Removed.
9863 (thumb2_record_ld_st_multiple): New function.
9864 (thumb2_record_ld_st_dual_ex_tbb): New function.
9865 (thumb2_record_data_proc_sreg_mimm): New function.
9866 (thumb2_record_ps_dest_generic): New function.
9867 (thumb2_record_branch_misc_cntrl): New function.
9868 (thumb2_record_str_single_data): New function.
9869 (thumb2_record_ld_mem_hints): New function.
9870 (thumb2_record_ld_word): New function.
9871 (thumb2_record_lmul_lmla_div): New function.
9872 (thumb2_record_decode_insn_handler): New function.
9873 (decode_insn): Add thumb32 instruction handlers.
9875 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
9877 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
9878 (struct arm_linux_record_tdep): Declare.
9879 (arm_canonicalize_syscall): New function.
9880 (arm_all_but_pc_registers_record): New function.
9881 (arm_linux_syscall_record): New function.
9882 (arm_linux_init_abi): Add syscall recording constructs.
9883 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
9884 decoding. (arm_record_coproc_data_proc): Update arm syscall
9886 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
9887 <arm_syscall_record>: New field.
9888 * configure.tgt (arm*-*-linux*): Add linux-record.o to
9891 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
9893 * arm-tdep.c (thumb_record_misc): Update to use sp as base
9894 register for push instruction recording.
9896 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
9898 * arm-tdep.c (thumb_record_misc): Update to correct logical
9899 error while recording ldm, ldmia and pop instructions.
9901 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
9903 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
9905 2014-01-15 Pedro Alves <palves@redhat.com>
9907 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
9908 (go32_resume, go32_fetch_registers, store_register)
9909 (go32_store_registers, go32_prepare_to_store)
9910 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
9911 (go32_create_inferior, go32_can_run, go32_terminal_init)
9912 (go32_terminal_inferior, go32_terminal_ours): Delete forward
9915 2014-01-15 Tom Tromey <tromey@redhat.com>
9917 * target.h (async_callback_ftype): New typedef.
9918 (struct target_ops) <to_async>: Use it.
9920 2014-01-15 Joel Brobecker <brobecker@adacore.com>
9922 * python/py-value.c (get_field_type): Remove unnecessary curly
9923 braces for single-statement if block.
9925 2014-01-15 Joel Brobecker <brobecker@adacore.com>
9927 * python/py-type.c (convert_field): Add missing empty line
9930 2014-01-14 Doug Evans <dje@google.com>
9932 * symfile.h (expand_symtabs_matching): Renamed from
9933 expand_partial_symbol_names. Update prototype.
9934 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
9935 * symfile.c (expand_symtabs_matching): Renamed from
9936 expand_partial_symbol_names. New args file_matcher, kind.
9937 Rename arg fun to symbol_matcher.
9938 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
9939 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
9940 ada_expand_partial_symbol_name.
9941 (ada_make_symbol_completion_list): Update to call
9942 expand_symtabs_matching.
9943 (ada_add_global_exceptions): Call expand_symtabs_matching.
9944 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
9945 call map_symbol_filenames.
9946 * symtab.c (sources_info): Update to call map_symbol_filenames.
9947 (search_symbols): Call expand_symtabs_matching.
9948 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
9949 (default_make_symbol_completion_list_break_on): Update to call
9950 expand_symtabs_matching.
9951 (make_source_files_completion_list): Update to call
9952 map_symbol_filenames.
9954 2014-01-14 Doug Evans <dje@google.com>
9956 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
9957 (expand_symtabs_symbol_matcher_ftype): New typedef.
9958 (quick_symbol_functions.expand_symtabs_matching): Update to use.
9959 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
9960 * symfile.c (expand_partial_symbol_names): Update to use
9961 expand_symtabs_symbol_matcher_ftype.
9962 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
9963 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
9964 Arg name_matcher renamed to symbol_matcher.
9965 * psymtab.c (recursively_search_psymtabs): Update to use
9966 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
9968 (expand_symtabs_matching_via_partial): Update to use
9969 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
9970 Arg name_matcher renamed to symbol_matcher.
9972 2014-01-14 Doug Evans <dje@google.com>
9974 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
9975 (map_partial_symbol_filenames): Ditto.
9976 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
9977 (map_partial_symbol_filenames): Ditto.
9978 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
9979 (map_partial_symbol_filenames): Ditto.
9980 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
9981 (map_partial_symbol_filenames): Ditto.
9982 * symtab.c: Delete #include "psymtab.h".
9984 2014-01-14 Pedro Alves <palves@redhat.com>
9985 Tom Tromey <tromey@redhat.com>
9987 * infrun.c (use_displaced_stepping): Use find_record_target
9988 instead of RECORD_IS_USED.
9989 (adjust_pc_after_break): Use record_full_is_used instead of
9991 * record-btrace.c (record_btrace_open): Call record_preopen
9992 instead of checking RECORD_IS_USED.
9993 * record-full.c (record_full_shortname)
9994 (record_full_core_shortname): New globals.
9995 (record_full_is_used): New function.
9996 (find_full_open): Call record_preopen instead of checking
9998 (init_record_full_ops): Set the target's shortname to
9999 record_full_shortname.
10000 (init_record_full_core_ops): Set the target's shortname to
10001 record_full_core_shortname.
10002 * record-full.h (record_full_is_used): Declare.
10003 * record.c (find_record_target): Make extern.
10004 (record_preopen): New function.
10005 * record.h (RECORD_IS_USED): Delete macro.
10006 (find_record_target, record_preopen): Declare functions.
10008 2014-01-14 Yao Qi <yao@codesourcery.com>
10010 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
10011 'len''s type to ULONGEST.
10012 (core_xfer_shared_libraries_aix): Likewise.
10013 * gdbarch.c, gdbarch.h: Regenerated.
10014 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
10015 Change type of 'len' to ULONGEST.
10016 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
10017 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
10019 2014-01-14 Yao Qi <yao@codesourcery.com>
10021 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
10022 type of 'len' to ULONGEST.
10023 (linux_xfer_osdata_processgroups): Likewise.
10024 (linux_xfer_osdata_threads): Likewise.
10025 (linux_xfer_osdata_fds): Likewise.
10026 (linux_xfer_osdata_isockets): Likewise.
10027 (linux_xfer_osdata_shm): Likewise.
10028 (linux_xfer_osdata_sem): Likewise.
10029 (linux_xfer_osdata_msg): Likewise.
10030 (linux_common_xfer_osdata): Likewise.
10031 (struct osdata_type) <getter>: Likewise.
10032 * common/linux-osdata.h (linux_common_xfer_osdata): Update
10035 2014-01-14 Yao Qi <yao@codesourcery.com>
10037 * target.h (target_xfer_partial_ftype): Update.
10038 (struct target_ops) <to_xfer_partial>: Change 'len' type to
10040 * aix-thread.c (aix_thread_xfer_partial): Change type of
10041 argument 'len' to ULONGEST.
10042 * auxv.c (procfs_xfer_auxv): Likewise.
10043 (ld_so_xfer_auxv): Likewise.
10044 (memory_xfer_auxv): Likewise.
10045 * bfd-target.c (target_bfd_xfer_partial): Likewise.
10046 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10047 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
10048 * corelow.c (core_xfer_partial): Likewise.
10049 * ctf.c (ctf_xfer_partial): Likewise.
10050 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
10052 (darwin_read_dyld_info): Likewise.
10053 (darwin_xfer_partial): Likewise.
10054 * exec.c (section_table_xfer_memory_partial): Likewise.
10055 (exec_xfer_partial): Likewise.
10056 * exec.h (section_table_xfer_memory_partial): Update
10058 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
10059 instead of plongest.
10060 (gnu_xfer_partial): Likewise.
10061 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
10062 (ia64_hpux_xfer_solib_got): Likewise.
10063 (ia64_hpux_xfer_partial): Likewise.
10064 * ia64-linux-nat.c (ia64_linux_xfer_partial):
10065 * inf-ptrace.c (inf_ptrace_xfer_partial):
10066 * inf-ttrace.c (inf_ttrace_xfer_partial):
10067 * linux-nat.c (linux_xfer_siginfo): Likewise.
10068 (linux_nat_xfer_partial): Likewise.
10069 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
10070 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
10071 * monitor.c (monitor_xfer_memory): Likewise.
10072 (monitor_xfer_partial): Likewise.
10073 * procfs.c (procfs_xfer_partial): Likewise.
10074 * record-full.c (record_full_xfer_partial): Likewise.
10075 (record_full_core_xfer_partial): Likewise.
10076 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
10077 instead of plongest.
10078 (gdbsim_xfer_partial): Likewise.
10079 * remote.c (remote_xfer_partial): Likewise.
10080 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
10081 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
10083 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10084 (rs6000_xfer_shared_libraries): Likewise.
10085 * sol-thread.c (sol_thread_xfer_partial): Likewise.
10086 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10087 (sparc_xfer_partial): Likewise.
10088 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10089 (spu_xfer_partial): Likewise.
10090 * spu-multiarch.c (spu_xfer_partial): Likewise.
10091 * target.c (target_read_live_memory): Likewise.
10092 (memory_xfer_live_readonly_partial): Likewise.
10093 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
10094 (target_xfer_partial, default_xfer_partial): Likewise.
10095 (current_xfer_partial): Likewise.
10096 * tracepoint.c (tfile_xfer_partial): Likewise.
10097 * windows-nat.c (windows_xfer_memory): Likewise. Call
10098 pulongest instead of plongest.
10099 (windows_xfer_partial): Likewise.
10100 (windows_xfer_shared_libraries): Likewise.
10102 2014-01-14 Yao Qi <yao@codesourcery.com>
10104 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
10105 target_xfer_partial_ftype.
10107 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
10111 * valops.c (value_struct_elt_bitpos): New function
10112 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
10113 object to 'None' if the field name is an empty string ("").
10114 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
10115 attribute to look for a field when 'name' is 'None'.
10116 (get_field_type): New function
10118 2014-01-13 Doug Evans <dje@google.com>
10121 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
10122 (try_open_dwop_file): Ditto.
10123 * gdb_bfd.c: #include "vec.h".
10124 (bfdp): New typedef.
10125 (struct gdb_bfd_data): New member included_bfds.
10126 (gdb_bfd_unref): Unref all included bfds.
10127 (gdb_bfd_record_inclusion): New function.
10128 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
10130 2014-01-13 Tom Tromey <tromey@redhat.com>
10132 * gdbcore.h (deprecated_core_resize_section_table): Remove.
10134 2014-01-13 Tom Tromey <tromey@redhat.com>
10136 * defs.h (use_windows): Remove.
10137 * gdb.c (main): Update.
10138 * main.c (captured_main, gdb_main): Update.
10139 * main.h (struct captured_main_args) <use_windows>: Remove.
10140 * top.c (use_windows): Remove.
10142 2014-01-13 Tom Tromey <tromey@redhat.com>
10144 * defs.h (deprecated_flush_hook): Remove.
10146 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10149 * linux-thread-db.c (try_thread_db_load): Add parameter
10150 check_auto_load_safe. Move here the file_is_auto_load_safe call.
10151 (try_thread_db_load_from_pdir_1): Move it there from here.
10152 (try_thread_db_load_from_sdir): Update caller.
10153 (try_thread_db_load_from_dir): Move it there from here.
10155 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
10157 * regformats/regdat.sh: Always rewrite the register file.
10159 2014-01-13 Pedro Alves <palves@redhat.com>
10161 * Makefile.in (CHECK_HEADERS): New variable.
10162 (check-headers:): New rule.
10164 2014-01-13 Tom Tromey <tromey@redhat.com>
10166 * cli/cli-setshow.c (do_set_command): Update.
10167 * defs.h (deprecated_set_hook): Remove.
10168 * top.c (deprecated_set_hook): Remove.
10170 2014-01-13 Pedro Alves <palves@redhat.com>
10172 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
10173 the tracepoint if the PC is a pseudo-register.
10175 2014-01-13 Tom Tromey <tromey@redhat.com>
10177 * defs.h (XCALLOC): Remove.
10178 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
10179 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
10180 * dwarf2loc.c (allocate_piece_closure): Likewise.
10181 * elfread.c (elf_symfile_segments): Likewise.
10182 (elf_symfile_segments): Likewise.
10183 * gdbtypes.c (copy_type_recursive): Likewise.
10184 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
10185 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
10186 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
10188 * mt-tdep.c (mt_gdbarch_init): Likewise.
10189 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
10191 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
10192 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
10193 * registry.c (registry_alloc_data): Likewise.
10194 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
10195 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
10196 * serial.c (serial_fdopen_ops): Likewise.
10197 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
10199 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
10200 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
10203 2014-01-13 Tom Tromey <tromey@redhat.com>
10205 * defs.h (XMALLOC): Remove.
10206 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
10207 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
10208 * cli-out.c (struct ui_out *): Likewise.
10209 * cli/cli-dump.c (add_dump_command): Likewise.
10210 (add_dump_command): Likewise.
10211 * complaints.c (get_complaints): Likewise.
10212 (find_complaint): Likewise.
10213 * dwarf2-frame.c (execute_cfa_program): Likewise.
10214 * dwarf2read.c (abbrev_table_read_table): Likewise.
10215 * gdbarch.sh: Likewise.
10216 * gdbarch.c: Rebuild.
10217 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
10218 * interps.c (interp_new): Likewise.
10219 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
10220 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
10221 * mi/mi-console.c (mi_console_file_new): Likewise.
10222 * mi/mi-interp.c (mi_interpreter_init): Likewise.
10223 * mi/mi-out.c (mi_out_new): Likewise.
10224 * mi/mi-parse.c (mi_parse): Likewise.
10225 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
10226 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
10227 * observer.c (xalloc_observer_list_node): Likewise.
10228 * regcache.c (regcache_xmalloc_1): Likewise.
10229 * reggroups.c (reggroup_new): Likewise.
10230 (_initialize_reggroup): Likewise.
10231 * registry.c (register_data_with_cleanup): Likewise.
10232 * remote.c (remote_notif_stop_alloc_reply): Likewise.
10233 * ser-base.c (serial_ttystate): Likewise.
10234 * ser-mingw.c (make_pipe_state): Likewise.
10235 * ser-pipe.c (pipe_open): Likewise.
10236 * serial.c (serial_open): Likewise.
10237 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
10238 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
10239 (tui_alloc_win_info): Likewise.
10240 (tui_add_content_elements): Likewise.
10241 * tui/tui-file.c (tui_file_new): Likewise.
10242 * tui/tui-out.c (tui_out_new): Likewise.
10243 * ui-file.c (mem_file_new): Likewise.
10244 * ui-out.c (push_level): Likewise.
10245 (make_cleanup_ui_out_end): Likewise.
10246 (append_header_to_list): Likewise.
10247 (ui_out_new): Likewise.
10248 * user-regs.c (user_reg_add_builtin): Likewise.
10250 2014-01-13 Tom Tromey <tromey@redhat.com>
10252 * defs.h (XZALLOC): Remove.
10253 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
10254 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
10255 (get_ada_tasks_inferior_data): Likewise.
10256 * auto-load.c (get_auto_load_pspace_data): Likewise.
10257 * auxv.c (get_auxv_inferior_data): Likewise.
10258 * bfd-target.c (target_bfd_reopen): Likewise.
10259 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
10260 (deprecated_insert_raw_breakpoint): Likewise.
10261 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
10262 * corelow.c (core_open): Likewise.
10263 * darwin-nat.c (darwin_check_new_threads): Likewise.
10264 (darwin_attach_pid): Likewise.
10265 * dummy-frame.c (dummy_frame_push): Likewise.
10266 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
10267 * dwarf2loc.c (allocate_piece_closure): Likewise.
10268 * elfread.c (elf_symfile_segments): Likewise.
10269 * eval.c (ptrmath_type_p): Likewise.
10270 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
10271 * gdbtypes.c (alloc_type_arch): Likewise.
10272 (alloc_type_instance): Likewise.
10273 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
10274 * inf-child.c (inf_child_can_use_agent): Likewise.
10275 * inflow.c (get_inflow_inferior_data): Likewise.
10276 * infrun.c (save_infcall_suspend_state): Likewise.
10277 * jit.c (jit_reader_load): Likewise.
10278 (get_jit_objfile_data): Likewise.
10279 (get_jit_program_space_data): Likewise.
10280 (jit_object_open_impl): Likewise.
10281 (jit_symtab_open_impl): Likewise.
10282 (jit_block_open_impl): Likewise.
10283 (jit_frame_sniffer): Likewise.
10284 * linux-fork.c (add_fork): Likewise.
10285 * maint.c (make_command_stats_cleanup): Likewise.
10286 * objfiles.c (get_objfile_pspace_data): Likewise.
10287 * opencl-lang.c (struct lval_closure): Likewise.
10288 * osdata.c (osdata_start_osdata): Likewise.
10289 * progspace.c (new_address_space): Likewise.
10290 (add_program_space): Likewise.
10291 * remote-sim.c (get_sim_inferior_data): Likewise.
10292 * sh-tdep.c (sh_gdbarch_init): Likewise.
10293 * skip.c (Ignore): Likewise.
10294 (skip_delete_command): Likewise.
10295 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
10296 (library_list_start_library): Likewise.
10297 (solib_aix_current_sos): Likewise.
10298 * solib-darwin.c (get_darwin_info): Likewise.
10299 (darwin_current_sos): Likewise.
10300 * solib-dsbt.c (get_dsbt_info): Likewise.
10301 * solib-ia64-hpux.c (new_so_list): Likewise.
10302 (ia64_hpux_get_solib_linkage_addr): Likewise.
10303 * solib-spu.c (append_ocl_sos): Likewise.
10304 (spu_current_sos): Likewise.
10305 * solib-svr4.c (get_svr4_info): Likewise.
10306 (svr4_keep_data_in_core): Likewise.
10307 (library_list_start_library): Likewise.
10308 (svr4_default_sos): Likewise.
10309 (svr4_read_so_list): Likewise.
10310 * solib-target.c (library_list_start_library): Likewise.
10311 (solib_target_current_sos): Likewise.
10312 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
10313 * symfile-debug.c (install_symfile_debug_logging): Likewise.
10314 * symfile.c (default_symfile_segments): Likewise.
10315 * target-descriptions.c (tdesc_data_init): Likewise.
10316 (tdesc_create_reg): Likewise.
10317 (struct tdesc_type *): Likewise.
10318 (tdesc_create_vector): Likewise.
10319 (tdesc_set_struct_size): Likewise.
10320 (struct tdesc_type *): Likewise.
10321 (tdesc_free_feature): Likewise.
10322 (tdesc_create_feature): Likewise.
10323 * windows-nat.c (windows_add_thread): Likewise.
10324 (windows_make_so): Likewise.
10325 * xml-support.c (gdb_xml_body_text): Likewise.
10326 (gdb_xml_create_parser_and_cleanup): Likewise.
10327 (xml_process_xincludes): Likewise.
10328 * xml-syscall.c (allocate_syscalls_info): Likewise.
10329 (syscall_create_syscall_desc): Likewise.
10331 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
10333 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
10334 function, with code from i386_stap_parse_special_token.
10335 (i386_stap_parse_special_token_three_arg_disp): Likewise.
10336 (i386_stap_parse_special_token): Move code to the two functions
10337 above; simplify it.
10339 2014-01-09 Pedro Alves <palves@redhat.com>
10340 Hui Zhu <hui@codesourcery.com>
10343 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
10344 bp_err_string. Don't mark the location shlib_disabled if the
10345 error thrown wasn't a generic or memory error. Catch errors
10346 thrown while inserting breakpoints in overlayed code. Output
10347 error message of software breakpoints.
10348 * remote.c (remote_insert_breakpoint): If this breakpoint has
10349 target-side commands but this stub doesn't support Z0 packets,
10350 throw NOT_SUPPORTED_ERROR error.
10351 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
10352 * target.h (target_insert_breakpoint): Extend comment.
10353 (target_insert_hw_breakpoint): Add comment.
10355 2014-01-08 Pedro Alves <palves@redhat.com>
10357 * remote.c (remote_add_thread): Add threads silently if starting
10359 (remote_notice_new_inferior): If in all-stop, and starting up,
10360 don't call notice_new_inferior.
10361 (get_current_thread): New function, factored out from ...
10362 (add_current_inferior_and_thread): ... this. Adjust.
10363 (remote_start_remote) <all-stop>: Fetch the thread list. If we
10364 found any thread, then select the remote's current thread as GDB's
10365 current thread too.
10367 2014-01-08 Joel Brobecker <brobecker@adacore.com>
10369 * NEWS: Create a new section for the next release branch.
10370 Rename the section of the current branch, now that it has
10373 2014-01-08 Joel Brobecker <brobecker@adacore.com>
10375 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
10376 * version.in: Bump version to 7.7.50.DATE-cvs.
10378 2014-01-08 Yao Qi <yao@codesourcery.com>
10380 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
10381 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
10382 (spu_xfer_partial): Cast 'buf' to 'const char *'.
10384 2014-01-08 Yao Qi <yao@codesourcery.com>
10386 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
10387 return value of bfd_get_filename to symbol_file_add_from_bfd.
10389 2014-01-08 Pierre Muller <muller@sourceware.org>
10392 * coff-pe-read.c (struct read_pe_section_data): Add index field.
10393 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
10394 to prim_record_mininal_symbol_and_info.
10395 (add_pe_forwarded_sym): Use known section number of forwarded symbol
10396 in call to prim_record_minimal_symbol_and_info.
10397 (read_pe_exported_syms): Set index field of section_data.
10399 2014-01-07 Andrew Pinski <apinski@cavium.com>
10401 * features/aarch64-core.xml (cpsr): Change to be 64bit.
10402 * features/aarch64.c: Regenerate.
10404 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
10406 * target.c (return_null): Define.
10407 (update_current_target): Use it instead of return_zero for
10408 functions that return a pointer.
10410 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
10412 * source.c (add_path): Fix check for duplicated paths in the previously
10415 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
10417 * ada-lang.c: Remove duplicated include statements.
10418 * alphabsd-nat.c: Ditto.
10419 * amd64-darwin-tdep.c: Ditto.
10420 * amd64fbsd-nat.c: Ditto.
10421 * auto-load.c: Ditto.
10423 * breakpoint.c: Ditto.
10424 * dbxread.c: Ditto.
10425 * fork-child.c: Ditto.
10426 * gdb_usleep.c: Ditto.
10427 * i386-darwin-tdep.c: Ditto.
10428 * i386fbsd-nat.c: Ditto.
10430 * inferior.c: Ditto.
10431 * jv-lang.c: Ditto.
10432 * linux-nat.c: Ditto.
10433 * linux-tdep.c: Ditto.
10434 * m68kbsd-nat.c: Ditto.
10435 * m68klinux-nat.c: Ditto.
10436 * microblaze-tdep.c: Ditto.
10437 * mips-linux-tdep.c: Ditto.
10438 * mn10300-tdep.c: Ditto.
10439 * nto-tdep.c: Ditto.
10440 * opencl-lang.c: Ditto.
10442 * printcmd.c: Ditto.
10443 * regcache.c: Ditto.
10444 * remote-m32r-sdi.c: Ditto.
10446 * symfile.c: Ditto.
10448 * tilegx-linux-nat.c: Ditto.
10449 * tilegx-tdep.c: Ditto.
10450 * tracepoint.c: Ditto.
10452 * vaxbsd-nat.c: Ditto.
10453 * windows-nat.c: Ditto.
10454 * xtensa-tdep.c: Ditto.
10456 2014-01-07 Yao Qi <yao@codesourcery.com>
10458 * spu-linux-nat.c (_initialize_spu_nat): Declare.
10460 2014-01-07 Yao Qi <yao@codesourcery.com>
10461 Joel Brobecker <brobecker@adacore.com>
10463 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
10464 (pdc_write_regs): Likewise.
10465 (fetch_regs_kernel_thread): Likewise.
10466 (store_regs_kernel_thread): Likewise.
10468 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10470 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
10471 tagged type objects to their actual type.
10473 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10475 * ada-valprint.c (print_field_values): Add "language" parameter.
10476 Update calls to print_field_values and print_variant_part.
10477 Pass new parameter "language" in call to val_print instead
10478 of "current_language". Replace call to ada_val_print by call
10480 (print_variant_part): Add "language" parameter.
10481 (ada_val_print_struct_union): Update call to print_field_values.
10483 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10485 * ada-valprint.c (ui_memcpy): Delete.
10486 (ada_print_floating): Update documentation. Add empty line
10487 between between function documentation and implementation.
10488 Delete variable "buffer". Use ui_file_xstrdup in place of
10489 ui_file_put. Minor adjustments following this change.
10491 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10493 * ada-valprint.c (ada_val_print_string): New function,
10494 extracted from ada_val_print_array.
10495 (ada_val_print_array): Replace extracted code by call
10496 to ada_val_print_string followed by a return. Move
10497 "else" branch to the function's top block.
10499 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10501 * ada-valprint.c (ada_val_print_array): Move implementation
10502 down. Rename parameter "offset" and "val" into "offset_aligned"
10503 and "original_value" respectively. Add parameter "offset".
10505 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10507 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
10508 re-organizing the code. Change the "???" message printed
10509 when target type is a TYPE_CODE_UNDEF into
10510 "<ref to undefined type>".
10512 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10514 * ada-valprint.c (print_record): Delete, implementation inlined...
10515 (ada_val_print_struct_union): ... here. Remove call to
10516 ada_check_typedef in inlined implementation.
10518 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10520 * ada-valprint.c (ada_val_print_gnat_array): New function,
10521 extracted from ada_val_print_1;
10522 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
10523 (ada_val_print_flt, ada_val_print_struct_union)
10524 (ada_val_print_ref): Likewise.
10525 (ada_val_print_1): Delete variables i and elttype.
10526 Replace extracted-out code by call to corresponding
10529 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10531 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
10533 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10535 * ada-valprint.c (ada_val_print_1): Replace calls to
10536 ada_val_print_1 by calls to val_print.
10538 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10540 * ada-valprint.c (ada_val_print_1): Add parameter "language".
10541 Update calls to self accordingly. Replace calls to c_val_print
10542 by calls to val_print.
10544 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10546 * ada-valprint.c (print_record): Delete declaration.
10547 (adjust_type_signedness, ada_val_print_1): Likewise.
10548 (ada_val_print): Move function implementation down.
10549 (print_variant_part, print_field_values, print_record):
10550 Move function implementation up.
10552 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10554 * python/py-type.c (typy_get_name): New function.
10555 (type_object_getset): Add entry for attribute "name".
10556 * NEWS: Add entry mentioning this new attribute.
10558 2014-01-07 Yao Qi <yao@codesourcery.com>
10560 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
10563 2014-01-07 Yao Qi <yao@codesourcery.com>
10565 * gnu-nat.c (info_port_rights): Add qualifier const to
10568 2014-01-07 Yao Qi <yao@codesourcery.com>
10570 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
10572 2014-01-07 Yao Qi <yao@codesourcery.com>
10574 * gnu-nat.c (make_inf) Update declaration.
10575 (make_inf): Make it static.
10576 (inf_set_traced): Likewise.
10577 (inf_port_to_thread, inf_task_died_status): Likewise.
10579 2014-01-07 Yao Qi <yao@codesourcery.com>
10581 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
10583 2014-01-07 Yao Qi <yao@codesourcery.com>
10585 * gnu-nat.c (_initialize_gnu_nat): Declare.
10587 2014-01-07 Yao Qi <yao@codesourcery.com>
10589 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
10591 (struct gdbarch_info) <byte_order>: Change type to
10593 <byte_order_for_code>: Likewise.
10594 * gdbarch.c, gdbarch.h: Regenerated.
10596 2014-01-06 Sasha Smundak <asmundak@google.com>
10598 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
10600 2014-01-06 Tom Tromey <tromey@redhat.com>
10602 * doublest.c (convert_doublest_to_floatformat): Use const, not
10604 * somread.c (som_symtab_read): Likewise.
10606 2014-01-07 Hui Zhu <hui@codesourcery.com>
10608 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
10609 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
10610 (gdb_bfd_fopen): Ditto.
10611 (gdb_bfd_openr): Ditto.
10612 (gdb_bfd_openw): Ditto.
10613 (gdb_bfd_openr_iovec): Ditto.
10614 (gdb_bfd_fdopenr): Ditto.
10615 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
10616 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
10618 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
10620 * symfile-mem.c (symbol_file_add_from_memory): Removed
10621 gdb_bfd_stash_filename.
10623 2014-01-03 Doug Evans <dje@google.com>
10625 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
10628 2014-01-01 Joel Brobecker <brobecker@adacore.com>
10630 Update year range in copyright notice of all files.
10632 2014-01-01 Joel Brobecker <brobecker@adacore.com>
10634 * top.c (print_gdb_version): Set copyright year to 2014.
10636 2014-01-01 Joel Brobecker <brobecker@adacore.com>
10638 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
10640 For older changes see ChangeLog-2013.
10646 version-control: never