1 2014-07-24 Tom Tromey <tromey@redhat.com>
3 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
4 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
5 (add_info_alias, add_com): Make "doc" const.
6 (print_doc_line): Make "str" const.
8 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
9 (print_doc_line): Update.
10 * cli/cli-script.c (document_command): Update.
11 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
12 (add_com, add_info, add_info_alias): Update.
13 * guile/scm-cmd.c (cmdscm_destroyer): Update.
14 * python/py-cmd.c (cmdpy_destroyer): Update.
16 2014-07-24 Tom Tromey <tromey@redhat.com>
18 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
19 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
20 (help_cmd_list): Constify.
22 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
24 (help_cmd_list, apropos_cmd): Update.
25 * cli/cli-script.c (show_user): Update.
26 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
27 * cli/cli-setshow.h (cmd_show_list): Update.
28 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
29 (cmd_show_list): Update.
30 * guile/scm-cmd.c (cmdscm_destroyer): Update.
31 * python/py-cmd.c (cmdpy_destroyer): Update.
33 2014-07-24 Tom Tromey <tromey@redhat.com>
35 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
36 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
38 * command.h (deprecate_cmd): Update.
39 * maint.c (maintenance_do_deprecate): Add casts.
41 2014-07-24 Tom Tromey <tromey@redhat.com>
43 * cli/cli-decode.c (help_cmd): Make parameter "const".
44 * cli/cli-decode.h (help_cmd): Update.
46 2014-07-24 Tom Tromey <tromey@redhat.com>
48 * stack.c (up_silently_base, down_silently_base): Make argument
51 2014-07-24 Tom Tromey <tromey@redhat.com>
53 * solib.c (solib_add): Make "pattern" const.
54 * solib.h (solib_add): Update.
56 2014-07-24 Tom Tromey <tromey@redhat.com>
58 * remote.c (remote_serial_open, print_packet, putpkt)
59 (putpkt_binary): Constify.
60 * remote.h (putpkt): Update.
62 2014-07-24 Tom Tromey <tromey@redhat.com>
64 * monitor.c (monitor_open): Make "args" const.
65 * monitor.h (monitor_open): Update.
67 2014-07-24 Tom Tromey <tromey@redhat.com>
69 * maint.c (match_bfd_flags): Make "string" const.
70 (print_bfd_section_info): Remove casts.
71 (print_objfile_section_info): Make "string" const.
73 2014-07-24 Tom Tromey <tromey@redhat.com>
75 * inf-child.c (inf_child_open_target): Make "arg" const.
76 * inf-child.h (inf_child_open_target): Update.
78 2014-07-24 Tom Tromey <tromey@redhat.com>
80 * environ.c (unset_in_environ): Make "var" const.
81 * environ.h (unset_in_environ): Update.
83 2014-07-24 Tom Tromey <tromey@redhat.com>
85 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
87 (scan_filename_with_cleanup): Likewise.
88 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
90 (restore_command): Update.
92 2014-07-24 Pedro Alves <palves@redhat.com>
94 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
96 2014-07-24 Tom Tromey <tromey@redhat.com>
97 Gary Benson <gbenson@redhat.com>
99 * nat/linux-ptrace.c (additional_flags): New global.
100 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
101 additional_flags; don't check GDBSERVER.
102 (linux_ptrace_set_additional_flags): New function.
103 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
105 * linux-nat.c (_initialize_linux_nat): Call
106 linux_ptrace_set_additional_flags.
108 2014-07-24 Tom Tromey <tromey@redhat.com>
110 * make-target-delegates (munge_type, write_debugmethod): New
112 (debug_names): New global.
113 ($TARGET_DEBUG_PRINTER): New global.
114 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
116 Write debug methods. Generate init_debug_target.
117 * target-debug.h: New file.
118 * target-delegates.c: Rebuild.
119 * target.c: Include target-debug.h.
120 (debug_target): Hoist definition.
121 (target_kill, target_get_section_table, target_memory_map)
122 (target_flash_erase, target_flash_done, target_detach)
123 (target_disconnect, target_wait, target_resume)
124 (target_pass_signals, target_program_signals, target_follow_fork)
125 (target_mourn_inferior, target_search_memory)
126 (target_thread_address_space, target_close)
127 (target_find_new_threads, target_core_of_thread)
128 (target_verify_memory, target_insert_mask_watchpoint)
129 (target_remove_mask_watchpoint): Remove targetdebug code.
130 (debug_to_post_attach, debug_to_prepare_to_store)
131 (debug_to_files_info, debug_to_insert_breakpoint)
132 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
133 (debug_to_region_ok_for_hw_watchpoint)
134 (debug_to_can_accel_watchpoint_condition)
135 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
136 (debug_to_watchpoint_addr_within_range)
137 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
138 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
139 (debug_to_terminal_init, debug_to_terminal_inferior)
140 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
141 (debug_to_terminal_save_ours, debug_to_terminal_info)
142 (debug_to_load, debug_to_post_startup_inferior)
143 (debug_to_insert_fork_catchpoint)
144 (debug_to_remove_fork_catchpoint)
145 (debug_to_insert_vfork_catchpoint)
146 (debug_to_remove_vfork_catchpoint)
147 (debug_to_insert_exec_catchpoint)
148 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
149 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
150 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
151 (setup_target_debug): Call init_debug_target.
152 * target.h (TARGET_DEBUG_PRINTER): New macro.
153 (struct target_ops) <to_resume, to_wait, to_pass_signals,
154 to_program_signals>: Use TARGET_DEBUG_PRINTER.
156 2014-07-24 Gary Benson <gbenson@redhat.com>
158 * exceptions.h (throw_vfatal): Renamed to...
159 (throw_vquit): New declaration.
160 (throw_quit): Likewise.
161 * exceptions.c (throw_vfatal): Renamed to...
162 (throw_vquit): New function.
163 (throw_quit): Likewise.
164 (throw_error): Call throw_verror rather than throw_it.
165 * utils.h (vfatal): Removed.
167 * utils.c (vfatal): Removed.
169 (internal_verror): Replaced call to fatal with call to throw_quit.
170 (quit): Replaced calls to fatal with calls to throw_quit.
172 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
174 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
177 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
179 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
180 less than zero in conditional expression.
182 2014-07-23 Tom Tromey <tromey@redhat.com>
184 * make-target-delegates ($ARGS_PART): Match trailing close paren.
185 ($INTRO_PART): Don't match whitespace.
186 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
188 ($METHOD): Add $METHOD_TRAILER.
190 (scan_target_h): New sub.
191 Change main loop not to collect state.
192 * target-delegates.c: Rebuild.
194 2014-07-23 Gary Benson <gbenson@redhat.com>
196 * cp-support.c (gdb_demangle): Fix build on systems without
199 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
201 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
202 for reference entry value target data value.
204 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
206 * stack.c (read_frame_arg): Verify value_optimized_out before calling
207 value_available_contents_eq.
209 2014-07-22 Pedro Alves <palves@redhat.com>
211 * value.c (allocate_optimized_out_value): Don't mark value as
214 2014-07-22 Jiong Wang <jiong.wang@arm.com>
216 * MAINTAINERS (Write After Approval): Update my email address.
218 2014-07-20 Doug Evans <dje@google.com>
221 * remote.c (putpkt_binary): Add text to error message.
223 2014-07-20 Yao Qi <yao@codesourcery.com>
225 * eval.c: Remove "Chill" from comments.
226 * gdbtypes.h: Likewise.
227 * symtab.h: Likewise.
229 2014-07-20 Yao Qi <yao@codesourcery.com>
231 * std-operator.def: Update comments to TERNOP_SLICE.
233 2014-07-20 Yao Qi <yao@codesourcery.com>
235 * std-operator.def: Remove BINOP_RANGE.
236 * breakpoint.c (watchpoint_exp_is_const): Update.
237 * expprint.c (dump_subexp_body_standard): Likewise.
238 * eval.c (init_array_element): Remove dead code.
239 (evaluate_subexp_standard): Likewise.
241 2014-07-20 Yao Qi <yao@codesourcery.com>
243 * std-operator.def: Remove BINOP_IN.
244 * breakpoint.c (watchpoint_exp_is_const): Update.
245 * eval.c (evaluate_subexp_standard): Likewise.
246 * expprint.c (dump_subexp_body_standard): Likewise.
248 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
250 * microblaze-tdep.c (microblaze_register_names): Add
251 the rshr and rslr register names.
252 (microblaze_gdbarch_init): Use of tdesc_has_registers.
253 Use of tdesc_find_feature. Use of tdesc_data_alloc.
254 Use of tdesc_numbered_register. Use of
255 microblaze_register_g_packet_guesses. Use of
256 tdesc_use_registers. Use of set_gdbarch_register_type.
257 (microblaze_register_g_packet_guesses): New.
258 * microblaze-tdep.h (microblaze_reg_num): Add
259 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
260 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
261 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
262 * features/microblaze-core.xml: New file.
263 * features/microblaze-stack-protect.xml: New file.
264 * features/microblaze-with-stack-protect.c: New file.
265 * features/microblaze-with-stack-protect.xml: New file.
266 * features/microblaze.xml: New file.
267 * features/microblaze.c: New file.
268 * features/Makefile (microblaze-with-stack-protect): Add
269 microblaze-with-stack-protect microblaze and microblaze-expedite.
270 * regformats/microblaze-with-stack-protect.dat: New file.
271 * regformats/microblaze.dat: New file.
272 * doc/gdb.texinfo (MicroBlaze Features): Added.
274 2014-07-18 Tom Tromey <tromey@redhat.com>
276 * exec.c (exec_ops): Now static.
277 * exec.h (exec_ops): Don't declare.
279 2014-07-18 Tom Tromey <tromey@redhat.com>
281 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
282 to find_target_beneath.
283 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
285 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
287 2014-07-18 Tom Tromey <tromey@redhat.com>
290 * utils.c (quit): Use target_supports_terminal_ours.
291 * target.h (target_supports_terminal_ours): Declare.
292 * target.c (target_supports_delete_record): Don't check
293 to_delete_record against NULL.
294 (target_supports_terminal_ours): New function.
296 2014-07-18 Tom Tromey <tromey@redhat.com>
299 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
300 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
301 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
302 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
303 * windows-nat.c (windows_xfer_partial): Always delegate.
304 * record-btrace.c (record_btrace_xfer_partial): Simplify
306 (record_btrace_fetch_registers, record_btrace_store_registers)
307 (record_btrace_prepare_to_store, record_btrace_resume)
308 (record_btrace_wait, record_btrace_find_new_threads)
309 (record_btrace_thread_alive): Likewise.
310 * procfs.c (procfs_xfer_partial): Always delegate.
311 * corelow.c (core_xfer_partial): Always delegate.
312 * sol-thread.c (sol_find_new_threads): Simplify delegation.
314 2014-07-18 Tom Tromey <tromey@redhat.com>
316 * exec.c (exec_make_note_section): Move earlier.
318 2014-07-17 Doug Evans <dje@google.com>
321 * maint.c (count_symtabs_and_blocks): Handle NULL
322 current_program_space.
323 (report_command_stats): Check global enabled flag in addition to
324 recorded enabled flag.
325 (make_command_stats_cleanup): Handle msg_type == 0, startup.
327 2014-07-16 Pedro Alves <palves@redhat.com>
329 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
331 2014-07-16 Tom Tromey <tromey@redhat.com>
333 * target.h (struct target_ops) <to_delete_record>: Reformat
336 2014-07-16 Tom Tromey <tromey@redhat.com>
338 * target-delegates.c: Rebuild.
340 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
342 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
343 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
344 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
345 (avr_pointer_to_address): Likewise.
346 (avr_address_class_type_flags): New function.
347 (avr_address_class_type_flags_to_name): Likewise.
348 (avr_address_class_name_to_type_flags): Likewise.
349 (avr_gdbarch_init): Set address_class_type_flags,
350 address_class_type_flags_to_name and
351 address_class_name_to_type_flags.
353 2014-07-15 Pedro Alves <palves@redhat.com>
355 * linux-nat.c (kill_callback): Save errno and work with saved
358 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
360 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
362 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
364 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
365 breakpoint support correctly.
367 2014-07-14 Pedro Alves <palves@redhat.com>
369 * utils.c (prompt_for_continue): Call target_terminal_ours.
371 2014-07-14 Pedro Alves <palves@redhat.com>
373 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
374 catch_errors. Don't re-enable stdin or notify observers where,
376 (fetch_inferior_event_wrapper): Delete.
378 2014-07-14 Pedro Alves <palves@redhat.com>
381 * top.c: Include "inf-loop.h".
382 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
384 (gdb_readline_wrapper_cleanup): Make the target async again, if it
386 (gdb_readline_wrapper): Store whether the target is async, and
389 2014-07-14 Pedro Alves <palves@redhat.com>
392 * top.c (gdb_readline_wrapper_line): Tweak comment.
393 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
394 the input handler callback.
396 2014-07-14 Pedro Alves <palves@redhat.com>
399 * main.c: Include event-top.h.
400 (handle_command_errors): New function.
401 (catch_command_errors, catch_command_errors_const): Use it.
403 2014-07-14 Pedro Alves <palves@redhat.com>
405 * exceptions.c (catch_command_errors, catch_command_errors_const):
407 * exceptions.h (catch_command_errors_ftype)
408 (catch_command_errors_const_ftype): Moved to main.c.
409 (catch_command_errors, catch_command_errors_const): Delete
411 * main.c (catch_command_errors_ftype)
412 (catch_command_errors_const_ftype): Moved here from exceptions.h.
413 (catch_command_errors, catch_command_errors_const)): Moved here
414 from exceptions.c and make static.
416 2014-07-14 Pedro Alves <palves@redhat.com>
418 * exceptions.c (print_any_exception): Delete.
419 (catch_exceptions_with_msg): Use exception_print instead of
421 (catch_errors): Use exception_fprintf instead of
423 (catch_command_errors, catch_command_errors_const): Use
424 exception_print instead of print_any_exception.
426 2014-07-14 Pedro Alves <palves@redhat.com>
428 * infcall.c (run_inferior_call): Set 'sync_execution' while
429 running the inferior call.
431 2014-07-14 Pedro Alves <palves@redhat.com>
433 * value.c (value_contents_equal): Delete function.
434 * value.h (value_contents_equal): Delete declaration.
436 2014-07-14 Tom Tromey <tromey@redhat.com>
439 * gdbtypes.c (is_dynamic_type_internal): New function, from
441 (is_dynamic_type): Rewrite.
442 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
443 (resolve_dynamic_struct): Likewise.
444 (resolve_dynamic_type_internal): New function, from
445 resolve_dynamic_type.
446 (resolve_dynamic_type): Rewrite.
448 2014-07-14 Tom Tromey <tromey@redhat.com>
450 * target.c (target_require_runnable): Also check record_stratum.
453 2014-07-11 Yao Qi <yao@codesourcery.com>
455 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
456 thumb_instruction_restores_sp return true.
458 2014-07-11 Yao Qi <yao@codesourcery.com>
460 * arm-tdep.c (thumb_instruction_restores_sp): New function.
461 (thumb_in_function_epilogue_p): Call
462 thumb_instruction_restores_sp.
464 2014-07-11 Yao Qi <yao@codesourcery.com>
466 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
468 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
470 2014-07-11 Gary Benson <gbenson@redhat.com>
472 * amd64-linux-nat.c (gdbcore.h): Remove include.
473 (regset.h): Likewise.
474 (nat/linux-btrace.h): Likewise.
475 (btrace.h): Likewise.
476 (gdb_assert.h): Likewise.
477 (string.h): Likewise.
478 (sys/uio.h): Likewise.
479 (sys/debugreg.h): Likewise.
480 (sys/syscall.h): Likewise.
481 (sys/procfs.h): Likewise.
482 (sys/user.h): Likewise.
483 (asm/ptrace.h): Likewise.
484 (i386-nat.h): Likewise.
485 * i386-linux-nat.c (i386-nat.h): Likewise.
486 (regset.h): Likewise.
487 (target.h): Likewise.
488 (linux-nat.h): Likewise.
489 (nat/linux-btrace.h): Likewise.
490 (btrace.h): Likewise.
491 (gdb_assert.h): Likewise.
492 (string.h): Likewise.
493 (sys/uio.h): Likewise.
494 (sys/user.h): Likewise.
495 (sys/procfs.h): Likewise.
496 (sys/reg.h): Likewise.
497 (sys/debugreg.h): Likewise.
498 (ORIG_EAX): Remove definition.
500 2014-07-11 Gary Benson <gbenson@redhat.com>
502 * i386-linux-nat.h: New file.
503 * x86-linux-nat.h: Likewise.
504 * x86-linux-nat.c: Likewise.
505 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
506 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
507 * config/i386/linux64.mh (NATDEPFILES): Likewise.
508 * amd64-linux-nat.c (x86-linux-nat.h): New include.
509 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
510 (PTRACE_SETREGSET): Likewise.
511 (arch_lwp_info): Now in x86-linux-nat.c.
512 (have_ptrace_getregset): Now in x86-linux-nat.h.
513 (x86_linux_dr_get): Now in x86-linux-nat.c.
514 (x86_linux_dr_set): Likewise.
515 (x86_linux_dr_get_addr): Likewise.
516 (x86_linux_dr_get_control): Likewise.
517 (x86_linux_dr_get_status): Likewise.
518 (update_debug_registers_callback): Likewise.
519 (x86_linux_dr_set_control): Likewise.
520 (x86_linux_dr_set_addr): Likewise.
521 (x86_linux_prepare_to_resume): Likewise.
522 (x86_linux_new_thread): Likewise.
523 (x86_linux_new_fork): Likewise.
524 (x86_linux_get_thread_area): Likewise.
525 (super_post_startup_inferior): Likewise.
526 (x86_linux_child_post_startup_inferior): Likewise.
527 (AMD64_LINUX_USER64_CS): Likewise.
528 (AMD64_LINUX_X32_DS): Likewise.
529 (x86_linux_read_description): Likewise.
530 (x86_linux_enable_btrace): Likewise.
531 (x86_linux_disable_btrace): Likewise.
532 (x86_linux_teardown_btrace): Likewise.
533 (x86_linux_read_btrace): Likewise.
534 (x86_linux_create_target): Likewise.
535 (x86_linux_add_target): Likewise.
536 * i386-linux-nat.c (x86-linux-nat.h): New include.
537 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
538 (PTRACE_SETREGSET): Likewise.
539 (arch_lwp_info): Now in x86-linux-nat.c.
540 (have_ptrace_getregset): Now in x86-linux-nat.h.
541 (x86_linux_dr_get): Now in x86-linux-nat.c.
542 (x86_linux_dr_set): Likewise.
543 (x86_linux_dr_get_addr): Likewise.
544 (x86_linux_dr_get_control): Likewise.
545 (x86_linux_dr_get_status): Likewise.
546 (update_debug_registers_callback): Likewise.
547 (x86_linux_dr_set_control): Likewise.
548 (x86_linux_dr_set_addr): Likewise.
549 (x86_linux_prepare_to_resume): Likewise.
550 (x86_linux_new_thread): Likewise.
551 (x86_linux_new_fork): Likewise.
552 (x86_linux_get_thread_area): Likewise.
553 (super_post_startup_inferior): Likewise.
554 (x86_linux_child_post_startup_inferior): Likewise.
555 (AMD64_LINUX_USER64_CS): Likewise.
556 (AMD64_LINUX_X32_DS): Likewise.
557 (x86_linux_read_description): Likewise.
558 (x86_linux_enable_btrace): Likewise.
559 (x86_linux_disable_btrace): Likewise.
560 (x86_linux_teardown_btrace): Likewise.
561 (x86_linux_read_btrace): Likewise.
562 (x86_linux_create_target): Likewise.
563 (x86_linux_add_target): Likewise.
565 2014-07-11 Gary Benson <gbenson@redhat.com>
567 * amd64-linux-nat.c: Comment and whitespace changes.
568 * i386-linux-nat.c: Comment and whitespace changes.
570 2014-07-11 Gary Benson <gbenson@redhat.com>
572 * amd64-linux-nat.c (x86_linux_create_target): New function.
573 (x86_linux_add_target): Likewise.
574 (_initialize_amd64_linux_nat): Delegate to the above new functions.
575 * i386-linux-nat.c (x86_linux_create_target): New function.
576 (x86_linux_add_target): Likewise.
577 (_initialize_i386_linux_nat): Delegate to the above new functions.
579 2014-07-11 Gary Benson <gbenson@redhat.com>
581 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
582 (ps_get_thread_area): Delegate to the above in 32-bit mode.
583 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
584 (ps_get_thread_area): Delegate to the above.
586 2014-07-11 Gary Benson <gbenson@redhat.com>
588 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
589 x86_linux_read_description. All uses updated. amd64-specific
590 code conditionalized. Conditionalized i386-specific code added.
591 Redundant cast removed.
592 * i386-linux-nat.c (i386_linux_read_description): Renamed to
593 x86_linux_read_description. All uses updated. i386-specific
594 code conditionalized. Conditionalized amd64-specific code added.
595 One sizeof replaced with the actual type it is describing.
597 2014-07-11 Gary Benson <gbenson@redhat.com>
599 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
600 x86_linux_dr_get. All uses updated.
601 (amd64_linux_dr_set): Renamed to
602 x86_linux_dr_set. All uses updated.
603 (amd64_linux_dr_get_addr): Renamed to
604 x86_linux_dr_get_addr. All uses updated.
605 (amd64_linux_dr_get_control): Renamed to
606 x86_linux_dr_get_control. All uses updated.
607 (amd64_linux_dr_get_status): Renamed to
608 x86_linux_dr_get_status. All uses updated.
609 (amd64_linux_dr_set_control): Renamed to
610 x86_linux_dr_set_control. All uses updated.
611 (amd64_linux_dr_set_addr): Renamed to
612 x86_linux_dr_set_addr. All uses updated.
613 (amd64_linux_prepare_to_resume): Renamed to
614 x86_linux_prepare_to_resume. All uses updated.
615 (amd64_linux_new_thread): Renamed to
616 x86_linux_new_thread. All uses updated.
617 (amd64_linux_new_fork): Renamed to
618 x86_linux_new_fork. All uses updated.
619 (amd64_linux_child_post_startup_inferior): Renamed to
620 x86_linux_child_post_startup_inferior. All uses updated.
621 (amd64_linux_enable_btrace): Renamed to
622 x86_linux_enable_btrace. All uses updated.
623 (amd64_linux_disable_btrace): Renamed to
624 x86_linux_disable_btrace. All uses updated.
625 (amd64_linux_teardown_btrace): Renamed to
626 x86_linux_teardown_btrace. All uses updated.
627 (amd64_linux_read_btrace): Renamed to
628 x86_linux_read_btrace. All uses updated.
629 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
630 x86_linux_dr_get. All uses updated.
631 (i386_linux_dr_set): Renamed to
632 x86_linux_dr_set. All uses updated.
633 (i386_linux_dr_get_addr): Renamed to
634 x86_linux_dr_get_addr. All uses updated.
635 (i386_linux_dr_get_control): Renamed to
636 x86_linux_dr_get_control. All uses updated.
637 (i386_linux_dr_get_status): Renamed to
638 x86_linux_dr_get_status. All uses updated.
639 (i386_linux_dr_set_control): Renamed to
640 x86_linux_dr_set_control. All uses updated.
641 (i386_linux_dr_set_addr): Renamed to
642 x86_linux_dr_set_addr. All uses updated.
643 (i386_linux_prepare_to_resume): Renamed to
644 x86_linux_prepare_to_resume. All uses updated.
645 (i386_linux_new_thread): Renamed to
646 x86_linux_new_thread. All uses updated.
647 (i386_linux_new_fork): Renamed to
648 x86_linux_new_fork. All uses updated.
649 (i386_linux_child_post_startup_inferior): Renamed to
650 x86_linux_child_post_startup_inferior. All uses updated.
651 (i386_linux_enable_btrace): Renamed to
652 x86_linux_enable_btrace. All uses updated.
653 (i386_linux_disable_btrace): Renamed to
654 x86_linux_disable_btrace. All uses updated.
655 (i386_linux_teardown_btrace): Renamed to
656 x86_linux_teardown_btrace. All uses updated.
657 (i386_linux_read_btrace): Renamed to
658 x86_linux_read_btrace. All uses updated.
660 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
662 * remote.c (extended_remote_post_attach): New function.
663 (init_extended_remote_ops): Install it as to_post_attach method.
665 2014-07-09 Pedro Alves <palves@redhat.com>
667 * infcmd.c (attach_command_post_wait): Don't call
668 target_terminal_inferior here.
669 (attach_command): Call it here instead.
671 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
673 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
675 * c-varobj.c (c_is_path_expr_parent): New function, moved core
676 from varobj.c, with additional checks.
677 (c_varobj_ops): Fill in is_path_expr_parent field.
678 (cplus_varobj_ops): Fill in is_path_expr_parent field.
679 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
681 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
683 (varobj_default_is_path_expr_parent): New function.
684 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
685 (varobj_default_is_path_expr_parent): Declare new function.
687 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
689 * infcmd.c (finish_backward): Turn internal error into normal error.
691 2014-07-07 Pedro Alves <palves@redhat.com>
694 * remote.c (async_handle_remote_sigint)
695 (async_handle_remote_sigint_twice): Call
696 gdb_call_async_signal_handler instead of
697 mark_async_signal_handler.
699 2014-07-07 Tom Tromey <tromey@redhat.com>
701 * target-delegates.c: Rebuild.
702 * target.c (target_info_record): Remove.
703 * record.c (info_record_command): Unconditionally call
705 * target.h (struct target_ops) <to_info_record>: Use
706 TARGET_DEFAULT_IGNORE.
707 (target_info_record): Remove.
709 2014-07-07 Tom Tromey <tromey@redhat.com>
711 * target.h (struct target_ops) <to_get_thread_local_address>: Use
712 TARGET_DEFAULT_NORETURN.
713 * target.c (generic_tls_error): New function.
714 (target_translate_tls_address): Don't search target stack.
715 * target-delegates.c: Rebuild.
716 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
718 * linux-thread-db.c (thread_db_get_thread_local_address):
719 Unconditionally call beneath target.
721 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
723 * cli/cli-logging.c (pop_output_files): Assign targerr to
726 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
728 * MAINTAINERS (Write After Approval): Update my email address.
730 2014-07-02 Gary Benson <gbenson@redhat.com>
732 * proc-service.c (ps_xfer_memory): Update comment.
733 (ps_pstop): Remove unused function.
734 (ps_pcontinue): Likewise.
735 (ps_lstop): Likewise.
736 (ps_lcontinue): Likewise.
737 (ps_lgetxregsize): Likewise.
738 (ps_lgetxregs): Likewise.
739 (ps_lsetxregs): Likewise.
741 (ps_ptread): Likewise.
742 (ps_ptwrite): Likewise.
744 2014-07-01 Mark Wielaard <mjw@redhat.com>
746 * dwarf2read.c (add_array_cv_type): New function.
747 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
748 (read_tag_volatile_type): Likewise.
750 2014-07-01 Tom Tromey <tromey@redhat.com>
752 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
753 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
754 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
755 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
756 * command.h (cmd_cfunc_ftype): Move earlier.
757 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
758 (add_com, add_info): Use cmd_cfunc_ftype.
760 2014-06-30 Tom Tromey <tromey@redhat.com>
762 * symtab.c (operator_chars): Make parameters and return type
764 (file_matches): Make "files" const.
765 (struct search_symbols_data) <files>: Now const.
766 (search_symbols): Make "regexp" and "files" parameters const.
768 (symtab_symbol_info): Remove cast.
769 (rbreak_command): Update.
770 * symtab.h (search_symbols): Update.
772 2014-06-27 Yao Qi <yao@codesourcery.com>
774 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
775 Change parameter type to 'struct thread_info *'. Caller
777 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
779 * dummy-frame.c (struct dummy_frame_id): New.
780 (dummy_frame_id_eq): New function.
781 (struct dummy_frame) <id>: Change its type to 'struct
783 (dummy_frame_push): Add parameter ptid and save it in
785 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
787 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
789 (lookup_dummy_frame): Change parameter type to 'struct
790 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
791 instead of frame_id_eq.
792 (dummy_frame_pop): Add parameter ptid. Callers updated.
793 Update comments. Compose dummy_frame_id and pass it to
795 (dummy_frame_discard): Add parameter ptid.
796 (dummy_frame_sniffer): Compose dummy_frame_id and call
797 dummy_frame_id_eq instead of frame_id_eq.
798 (fprint_dummy_frames): Print ptid.
799 * dummy-frame.h: Remove comments.
800 (dummy_frame_push): Add ptid in declaration.
801 (dummy_frame_pop, dummy_frame_discard): Likewise.
803 2014-06-26 Tom Tromey <tromey@redhat.com>
805 * cli/cli-cmds.c (error_no_arg): Make "why" const.
806 * command.h (error_no_arg): Update.
808 2014-06-26 Tom Tromey <tromey@redhat.com>
810 * cli/cli-setshow.c (do_set_command): Make "arg" const.
811 (do_show_command): Make "arg" const.
812 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
814 2014-06-26 Tom Tromey <tromey@redhat.com>
816 * record-full.c (record_full_get_bookmark): Make "args" const.
817 (record_full_goto_bookmark): Make "raw_bookmark" const.
818 * record.c (record_goto): New function.
819 (cmd_record_goto): Use it. Now static.
820 * record.h (record_goto): Declare.
821 (cmd_record_goto): Remove declaration.
822 * target-delegates.c: Rebuild.
823 * target.h (struct target_ops) <to_get_bookmark,
824 to_goto_bookmark>: Make parameter const.
826 2014-06-26 Tom Tromey <tromey@redhat.com>
828 * defs.h (generic_load): Update.
829 * m32r-rom.c (m32r_load_gen): Make "filename" const.
830 * monitor.c (monitor_load): Make "args" const.
831 * remote-m32r-sdi.c (m32r_load): Make "args" const.
832 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
834 (mips_load): Make "file" const.
835 * remote-sim.c (gdbsim_load): Make "args" const.
836 * remote.c (remote_load): Make "name" const.
837 * symfile.c (generic_load): Make "args" const.
838 * target-delegates.c: Rebuild.
839 * target.c (target_load): Make "arg" const.
840 (debug_to_load): Make "args" const.
841 * target.h (struct target_ops) <to_load>: Make parameter const.
842 (target_load): Update.
844 2014-06-26 Tom Tromey <tromey@redhat.com>
847 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
848 (dwarf2_physname, read_partial_die)
849 (guess_partial_die_structure_name, fixup_partial_die)
850 (guess_full_die_structure_name, anonymous_struct_prefix)
851 (dwarf2_name): Use per-BFD obstack.
853 2014-06-26 Yao Qi <yao@codesourcery.com>
855 * dummy-frame.c (dummy_frame_sniffer): Move local variables
856 dummyframe and this_id into inner block below.
858 2014-06-26 Yao Qi <yao@codesourcery.com>
860 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
861 with "signal_pass[0]" in the initialization of signal_pass.
863 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
865 * record-btrace.c (record_btrace_generating_corefile)
866 (record_btrace_prepare_to_generate_core)
867 (record_btrace_done_generating_core): New.
868 (record_btrace_xfer_partial, record_btrace_fetch_registers)
869 (record_btrace_store_registers, record_btrace_prepare_to_store):
870 Forward request when generating a core file.
871 (record_btrace_open): Set record_btrace_generating_corefile to zero.
872 (init_record_btrace_ops): Set to_prepare_to_generate_core and
873 to_done_generating_core.
875 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
877 * target.h (target_ops) <to_prepare_to_generate_core>
878 <to_done_generating_core>: New.
879 (target_prepare_to_generate_core, target_done_generating_core): New.
880 * target.c (target_prepare_to_generate_core)
881 (target_done_generating_core): New.
882 * target-delegates.c: Regenerate.
883 * gcore.c: (write_gcore_file): Rename to ...
884 (write_gcore_file_1): ...this.
885 (write_gcore_file): Call target_prepare_to_generate_core
886 and target_done_generating_core.
888 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
890 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
891 * gcore.c (write_gcore_file): Free memory returned from
893 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
894 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
896 2014-06-24 Yao Qi <yao@codesourcery.com>
898 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
899 (arm_linux_init_abi): Set skip_trampoline_code with
900 gdbarch_skip_trampoline_code instead of
901 find_solib_trampoline_target.
903 2014-06-24 Yao Qi <yao@codesourcery.com>
905 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
906 arm_skip_bx_reg returns non-zero.
908 2014-06-24 Yao Qi <yao@codesourcery.com>
910 * arm-tdep.c (arm_skip_bx_reg): New function.
911 (arm_skip_stub): Call arm_skip_bx_reg.
913 2014-06-23 Don Breazeal <donb@codesourcery.com>
915 * MAINTAINERS: Add myself as write-after-approval maintainer.
917 2014-06-23 Pedro Alves <palves@redhat.com>
919 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
920 DR_CONTROL before setting DR0..DR3.
921 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
922 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
923 bits of DR_CONTROL related to the debug register slot being
924 disabled. If all slots are vacant, clear local slowdown as well,
925 and assert DR_CONTROL is 0.
927 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
929 * python/lib/gdb/command/xmethods.py
930 (get_method_matchers_in_loci): Lookup xmethod matchers in the
931 current progspace only if the string "progspace" matches LOCUS_RE.
933 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
935 Fix --with-system-readline with readline-6.3 patch 5.
936 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
937 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
940 2014-06-20 Tom Tromey <tromey@redhat.com>
942 * dwarf2read.c (dw2_get_real_path): Use correct type in
944 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
946 2014-06-20 Gary Benson <gbenson@redhat.com>
948 * common/gdb_thread_db.h: Moved to nat. All includes updated.
949 * common/glibc_thread_db.h: Likewise.
950 * common/i386-cpuid.h: Likewise.
951 * common/i386-gcc-cpuid.h: Likewise.
952 * common/linux-btrace.h: Likewise.
953 * common/linux-osdata.h: Likewise.
954 * common/linux-procfs.h: Likewise.
955 * common/linux-ptrace.h: Likewise.
956 * common/mips-linux-watch.h: Likewise.
957 * common/linux-btrace.c: Moved to nat.
958 * common/linux-osdata.c: Likewise.
959 * common/linux-procfs.c: Likewise.
960 * common/linux-ptrace.c: Likewise.
961 * common/mips-linux-watch.c: Likewise.
962 * nat/gdb_thread_db.h: Moved from common.
963 * nat/glibc_thread_db.h: Likewise.
964 * nat/i386-cpuid.h: Likewise.
965 * nat/i386-gcc-cpuid.h: Likewise.
966 * nat/linux-btrace.c: Likewise.
967 * nat/linux-btrace.h: Likewise.
968 * nat/linux-osdata.c: Likewise.
969 * nat/linux-osdata.h: Likewise.
970 * nat/linux-procfs.c: Likewise.
971 * nat/linux-procfs.h: Likewise.
972 * nat/linux-ptrace.c: Likewise.
973 * nat/linux-ptrace.h: Likewise.
974 * nat/mips-linux-watch.c: Likewise.
975 * nat/mips-linux-watch.h: Likewise.
976 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
977 (object file files): Reordered.
978 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
979 of glibc_thread_db.h.
981 2014-06-20 Gary Benson <gbenson@redhat.com>
983 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
984 (i386_dr_low_type): Moved to nat/i386-dregs.h.
985 (i386_dr_low): Likewise.
986 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
987 (i386_dr_low_set_addr): Likewise.
988 (i386_dr_low_get_addr): Likewise.
989 (i386_dr_low_can_set_control): Likewise.
990 (i386_dr_low_set_control): Likewise.
991 (i386_dr_low_get_control): Likewise.
992 (i386_dr_low_get_status): Likewise.
993 (i386_get_debug_register_length): Likewise.
994 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
995 (i386_dr_low): Likewise.
996 * nat/i386-dregs.c (i386-low.h): Remove include.
997 (i386-nat.h): Likewise.
998 (nat/i386-dregs.h): New include.
999 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
1000 (i386_dr_low_set_addr): Likewise.
1001 (i386_dr_low_get_addr): Likewise.
1002 (i386_dr_low_can_set_control): Likewise.
1003 (i386_dr_low_set_control): Likewise.
1004 (i386_dr_low_get_control): Likewise.
1005 (i386_dr_low_get_status): Likewise.
1006 (i386_get_debug_register_length): Likewise.
1007 (debug_hw_points): Likewise.
1009 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
1011 * Makefile.in (SFILES): Add d-exp.y.
1012 (YYFILES): Add d-exp.c.
1013 (YYOBJ): Add d-exp.o.
1014 (local-maintainer-clean): Delete d-exp.c.
1015 * d-exp.y: New file.
1016 * d-lang.h (d_parse): New declaration.
1017 (d_error): New declaration.
1018 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
1019 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
1020 PREC_ORDER operators.
1021 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
1023 2014-06-19 Yao Qi <yao@codesourcery.com>
1025 * gdbthread.h (any_running): Remove the declaration.
1026 * thread.c (any_running): Remove.
1028 2014-06-19 Yao Qi <yao@codesourcery.com>
1030 * gdbthread.h (struct thread_info) <state>: Change its type to
1031 'enum thread_state'. Update comments.
1033 2014-06-19 Pedro Alves <palves@redhat.com>
1035 * gdbthread.h (ALL_THREADS): Delete.
1036 (ALL_NON_EXITED_THREADS): New macro.
1037 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
1038 instead of ALL_THREADS.
1039 * infrun.c (find_thread_needs_step_over)
1040 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
1041 instead of ALL_THREADS.
1042 * record-btrace.c (record_btrace_open)
1043 (record_btrace_stop_recording, record_btrace_close)
1044 (record_btrace_is_replaying, record_btrace_resume)
1045 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
1046 * remote.c (append_pending_thread_resumptions): Likewise.
1047 * thread.c (thread_apply_all_command): Likewise.
1049 2014-06-19 Gary Benson <gbenson@redhat.com>
1051 * i386-nat.c (i386_stopped_by_watchpoint):
1052 Use i386_dr_stopped_by_watchpoint.
1053 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
1054 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
1056 2014-06-19 Gary Benson <gbenson@redhat.com>
1058 * nat/i386-dregs.c: New file.
1059 * Makefile.in (i386-dregs.o): New rule.
1060 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
1061 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
1062 * config/i386/darwin.mh (NATDEPFILES): Likewise.
1063 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
1064 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
1065 * config/i386/go32.mh (NATDEPFILES): Likewise.
1066 * config/i386/linux.mh (NATDEPFILES): Likewise.
1067 * config/i386/linux64.mh (NATDEPFILES): Likewise.
1068 * config/i386/mingw.mh (NATDEPFILES): Likewise.
1069 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
1070 * i386-nat.h (debug_hw_points): New declaration.
1071 * i386-nat.c (breakpoint.h): Remove include.
1072 (command.h): Likewise.
1073 (target.h): Likewise.
1074 (gdb_assert.h): Likewise.
1075 (debug_hw_points): Made nonstatic.
1076 (debug_printf): Now in i386-dregs.c.
1077 (TARGET_HAS_DR_LEN_8): Likewise.
1078 (DR_CONTROL_SHIFT): Likewise.
1079 (DR_CONTROL_SIZE): Likewise.
1080 (DR_RW_EXECUTE): Likewise.
1081 (DR_RW_WRITE): Likewise.
1082 (DR_RW_READ): Likewise.
1083 (DR_RW_IORW): Likewise.
1084 (DR_LEN_1): Likewise.
1085 (DR_LEN_2): Likewise.
1086 (DR_LEN_4): Likewise.
1087 (DR_LEN_8): Likewise.
1088 (DR_LOCAL_ENABLE_SHIFT): Likewise.
1089 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
1090 (DR_ENABLE_SIZE): Likewise.
1091 (DR_LOCAL_SLOWDOWN): Likewise.
1092 (DR_GLOBAL_SLOWDOWN): Likewise.
1093 (DR_CONTROL_RESERVED): Likewise.
1094 (I386_DR_CONTROL_MASK): Likewise.
1095 (I386_DR_VACANT): Likewise.
1096 (I386_DR_LOCAL_ENABLE): Likewise.
1097 (I386_DR_GLOBAL_ENABLE): Likewise.
1098 (I386_DR_DISABLE): Likewise.
1099 (I386_DR_SET_RW_LEN): Likewise.
1100 (I386_DR_GET_RW_LEN): Likewise.
1101 (I386_DR_WATCH_HIT): Likewise.
1102 (i386_wp_op_t): Likewise.
1103 (i386_show_dr): Likewise.
1104 (i386_length_and_rw_bits): Likewise.
1105 (i386_insert_aligned_watchpoint): Likewise.
1106 (i386_remove_aligned_watchpoint): Likewise.
1107 (i386_handle_nonaligned_watchpoint): Likewise.
1108 (i386_update_inferior_debug_regs): Likewise.
1109 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
1110 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
1111 (i386_region_ok_for_watchpoint):
1112 Use i386_dr_region_ok_for_watchpoint.
1113 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
1115 2014-06-19 Gary Benson <gbenson@redhat.com>
1117 * i386-nat.c (i386_insert_hw_breakpoint): Use
1118 i386_insert_watchpoint.
1119 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
1121 2014-06-19 Gary Benson <gbenson@redhat.com>
1123 * i386-nat.c (i386_dr_show): Renamed to
1124 i386_show_dr and made static. All uses updated.
1125 (i386_dr_length_and_rw_bits): Renamed to
1126 i386_length_and_rw_bits and made static.
1128 (i386_dr_insert_aligned_watchpoint): Renamed to
1129 i386_insert_aligned_watchpoint and made static.
1131 (i386_dr_remove_aligned_watchpoint): Renamed to
1132 i386_remove_aligned_watchpoint and made static.
1134 (i386_dr_update_inferior_debug_regs): Renamed to
1135 i386_update_inferior_debug_regs and made static.
1137 * nat/i386-dregs.h (i386_dr_show): Removed.
1138 (i386_dr_length_and_rw_bits): Likewise.
1139 (i386_dr_insert_aligned_watchpoint): Likewise.
1140 (i386_dr_remove_aligned_watchpoint): Likewise.
1141 (i386_dr_update_inferior_debug_regs): Likewise.
1143 2014-06-19 Gary Benson <gbenson@redhat.com>
1145 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
1146 * configure: Regenerate.
1147 * config.in: Likewise.
1148 * main.c (signal.h): New include.
1149 (setup_alternate_signal_stack): New function.
1150 (captured_main): Call the above.
1151 * cp-support.c (signal.h): New include.
1152 (catch_demangler_crashes): New flag.
1153 (SIGJMP_BUF): New define.
1154 (SIGSETJMP): Likewise.
1155 (SIGLONGJMP): Likewise.
1156 (gdb_demangle_jmp_buf): New static global.
1157 (gdb_demangle_attempt_core_dump): Likewise.
1158 (gdb_demangle_signal_handler): New function.
1159 (gdb_demangle): If catch_demangler_crashes is set, install the
1160 above signal handler before calling bfd_demangle, and restore
1161 the original signal handler afterwards. Display the offending
1162 symbol and call demangler_warning the first time a segmentation
1164 (_initialize_cp_support): New maint set/show command.
1166 2014-06-19 Gary Benson <gbenson@redhat.com>
1168 * utils.h (resource_limit_kind): New enum.
1169 (can_dump_core): New declaration.
1170 (warn_cant_dump_core): Likewise.
1171 (dump_core): Likewise.
1172 * utils.c (dump_core): Made nonstatic. Added new
1173 parameter "limit_kind".
1174 (can_dump_core): Made nonstatic. Moved printing code to...
1175 (warn_cant_dump_core): New function.
1176 (can_dump_core_warn): Likewise.
1177 (internal_vproblem): Replace calls to can_dump_core with
1178 calls to can_dump_core_warn. Supply new argument to each.
1180 2014-06-19 Gary Benson <gbenson@redhat.com>
1182 * utils.h (demangler_vwarning): New declaration.
1183 (demangler_warning): Likewise.
1184 * utils.c (struct internal_problem)
1185 <user_settable_should_quit>: New field.
1186 <user_settable_should_dump_core>: Likewise
1187 (internal_error_problem): Add values for above new fields.
1188 (internal_warning_problem): Likewise.
1189 (demangler_warning_problem): New static global.
1190 (demangler_vwarning): New function.
1191 (demangler_warning): Likewise.
1192 (add_internal_problem_command): Selectively add commands.
1193 (_initialize_utils): New internal problem command.
1194 * maint.c (maintenance_demangler_warning): New function.
1195 (_initialize_maint_cmds): New command.
1197 2014-06-18 Tom Tromey <tromey@redhat.com>
1199 * f-valprint.c (info_common_command_for_block): Update.
1200 * symtab.h (struct general_symbol_info) <common_block>: Now
1203 2014-06-18 Tom Tromey <tromey@redhat.com>
1205 * symtab.h (struct symtab) <blockvector>: Now const.
1206 * ada-lang.c (ada_add_global_exceptions): Update.
1207 * buildsym.c (augment_type_symtab): Update.
1208 * dwarf2read.c (dw2_lookup_symbol): Update.
1209 * jit.c (finalize_symtab): Update.
1210 * jv-lang.c (add_class_symtab_symbol): Update.
1211 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
1213 * objfiles.c (objfile_relocate1): Update.
1214 * psymtab.c (lookup_symbol_aux_psymtabs)
1215 (maintenance_check_psymtabs): Update.
1216 * python/py-symtab.c (stpy_global_block, stpy_static_block):
1218 * spu-tdep.c (spu_catch_start): Update.
1219 * symmisc.c (dump_symtab_1): Update.
1220 * symtab.c (lookup_global_symbol_from_objfile)
1221 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
1222 (basic_lookup_transparent_type_quick)
1223 (basic_lookup_transparent_type, find_pc_sect_symtab)
1224 (find_pc_sect_line, search_symbols): Update.
1225 * block.c (find_block_in_blockvector): Make "bl" const.
1226 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
1228 (blockvector_contains_pc): Make "bv" const.
1229 (block_for_pc_sect): Update.
1230 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
1231 (blockvector_contains_pc): Update.
1232 * breakpoint.c (resolve_sal_pc): Update.
1233 * inline-frame.c (block_starting_point_at): Update.
1235 2014-06-18 Tom Tromey <tromey@redhat.com>
1237 * completer.c (complete_line): Make "line_buffer" const.
1238 * completer.h (complete_line): Update.
1240 2014-06-18 Tom Tromey <tromey@redhat.com>
1242 * symtab.c (add_macro_name): Remove unneeded cast.
1244 2014-06-18 Tom Tromey <tromey@redhat.com>
1246 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
1247 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
1249 2014-06-18 Tom Tromey <tromey@redhat.com>
1251 * probe.c (info_probes_for_ops): Make "arg" const.
1252 * probe.h (info_probes_for_ops): Update.
1254 2014-06-18 Tom Tromey <tromey@redhat.com>
1256 * varobj.c (varobj_create): Update.
1257 * valops.c (value_of_this): Update.
1258 * tracepoint.c (add_local_symbols, scope_info): Update.
1259 * symtab.h (struct general_symbol_info) <block>: Now const.
1260 * symtab.c (skip_prologue_sal)
1261 (default_make_symbol_completion_list_break_on)
1262 (skip_prologue_using_sal): Update.
1263 * stack.h (iterate_over_block_locals)
1264 (iterate_over_block_local_vars): Update.
1265 * stack.c (print_frame_args): Update.
1266 (iterate_over_block_locals, iterate_over_block_local_vars): Make
1268 (get_selected_block): Make return type const.
1269 * python/py-frame.c (frapy_block): Update.
1270 * python/py-block.c (gdbpy_block_for_pc): Update.
1271 * p-exp.y (%union) <bval>: Now const.
1272 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
1273 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
1274 * m2-exp.y (%union) <bval>: Now const.
1275 * linespec.c (get_current_search_block): Make return type const.
1276 (create_sals_line_offset, find_label_symbols): Update.
1277 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
1279 (block_starting_point_at): Make "block" const.
1280 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
1281 (check_exception_resume): Update.
1282 * guile/scm-frame.c (gdbscm_frame_block): Update.
1283 * guile/scm-block.c (gdbscm_lookup_block): Update.
1284 * frame.h (get_frame_block): Update.
1285 (get_selected_block): Make return type const.
1286 * frame.c (frame_id_inner): Update.
1287 * f-valprint.c (info_common_command_for_block)
1288 (info_common_command): Update.
1289 * dwarf2loc.c (dwarf2_find_location_expression)
1290 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
1291 (locexpr_describe_location_piece): Update.
1292 * c-exp.y (%union) <bval>: Now const.
1293 * breakpoint.c (resolve_sal_pc): Update.
1294 * blockframe.c (get_frame_block):Make return type const.
1295 (get_pc_function_start, get_frame_function, find_pc_sect_function)
1296 (block_innermost_frame): Update.
1297 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
1298 (block_for_pc, block_for_pc_sect): Update.
1299 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
1301 (block_for_pc_sect, block_for_pc): Make return type const.
1302 * ax-gdb.c (gen_expr): Update.
1303 * alpha-mdebug-tdep.c (find_proc_desc): Update.
1304 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
1305 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
1306 (ada_read_var_value): Update.
1307 * ada-exp.y (struct name_info) <block>: Now const.
1309 (block_lookup): Constify.
1311 2014-06-18 Gary Benson <gbenson@redhat.com>
1313 * nat/i386-dregs.h: New file.
1314 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
1315 * i386-nat.h (i386-dregs.h): New include.
1316 (DR_FIRSTADDR): Now in i386-dregs.h.
1317 (DR_LASTADDR): Likewise.
1318 (DR_NADDR): Likewise.
1319 (DR_STATUS): Likewise.
1320 (DR_CONTROL): Likewise.
1321 (i386_debug_reg_state): Likewise.
1322 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
1324 2014-06-18 Don Breazeal <donb@codesourcery.com>
1326 * breakpoint.c (set_longjmp_breakpoint): Call
1327 momentary_breakpoint_from_master with additional argument.
1328 (set_longjmp_breakpoint_for_call_dummy): Call
1329 momentary_breakpoint_from_master with additional argument.
1330 (set_std_terminate_breakpoint): Call
1331 momentary_breakpoint_from_master with additional argument.
1332 (momentary_breakpoint_from_master): Add argument to function
1333 definition and use it to initialize structure member flag.
1334 (clone_momentary_breakpoint): Call
1335 momentary_breakpoint_from_master with additional argument.
1336 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
1337 member flags set in momentary_breakpoint_from_master.
1339 2014-06-18 Gary Benson <gbenson@redhat.com>
1341 * i386-nat.c (i386_show_dr): Renamed to
1342 i386_dr_show and made nonstatic. All uses updated.
1343 (i386_length_and_rw_bits): Renamed to
1344 i386_dr_length_and_rw_bits and made nonstatic.
1346 (i386_insert_aligned_watchpoint): Renamed to
1347 i386_dr_insert_aligned_watchpoint and made nonstatic.
1349 (i386_remove_aligned_watchpoint): Renamed to
1350 i386_dr_remove_aligned_watchpoint and made nonstatic.
1352 (i386_update_inferior_debug_regs): Renamed to
1353 i386_dr_update_inferior_debug_regs and made nonstatic.
1356 2014-06-18 Gary Benson <gbenson@redhat.com>
1358 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
1359 (i386_dr_low_can_set_control): Likewise.
1360 (i386_dr_low_set_addr): Likewise.
1361 (i386_dr_low_set_control): Likewise.
1362 (i386_dr_low_get_addr): Likewise.
1363 (i386_dr_low_get_status): Likewise.
1364 (i386_dr_low_get_control): Likewise.
1365 (i386_insert_aligned_watchpoint): Use new macros.
1366 (i386_update_inferior_debug_regs): Likewise.
1367 (i386_stopped_data_address): Likewise.
1369 2014-06-18 Gary Benson <gbenson@redhat.com>
1371 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
1372 New parameter. All uses updated.
1374 2014-06-18 Gary Benson <gbenson@redhat.com>
1376 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
1379 2014-06-18 Gary Benson <gbenson@redhat.com>
1381 * i386-nat.c (debug_printf): New macro.
1382 (i386_get_debug_register_length): Likewise.
1383 (TARGET_HAS_DR_LEN_8): Use above macro.
1384 (i386_show_dr): Use debug_printf instead of puts_unfiltered
1385 and printf_unfiltered. Use phex to format values.
1387 2014-06-18 Gary Benson <gbenson@redhat.com>
1389 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
1392 2014-06-18 Gary Benson <gbenson@redhat.com>
1394 * i386-nat.c: Comment changes.
1396 2014-06-18 Gary Benson <gbenson@redhat.com>
1398 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
1400 2014-06-18 Gary Benson <gbenson@redhat.com>
1402 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
1403 (i386_insert_aligned_watchpoint): Likewise.
1404 (i386_remove_aligned_watchpoint): Likewise.
1405 (i386_handle_nonaligned_watchpoint): Likewise.
1407 2014-06-18 Gary Benson <gbenson@redhat.com>
1409 * i386-nat.c: Whitespace changes.
1411 2014-06-17 Samuel Bronson <naesten@gmail.com>
1413 * MAINTAINERS: Update Roland McGrath's email address.
1414 Thanks to Sergio Durigan Junior for pointing out that he left
1415 Red Hat a while ago, and giving me a current address.
1417 2014-06-17 Tom Tromey <tromey@redhat.com>
1419 * utils.h (savestring): Remove declaration.
1421 2014-06-17 Tom Tromey <tromey@redhat.com>
1423 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
1425 2014-06-16 Keith Seitz <keiths@redhat.com>
1428 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
1429 to update the varobj if inferior_ptid is null_ptid.
1431 2014-06-16 Tom Tromey <tromey@redhat.com>
1433 * target.h (struct target_ops) <to_info_proc>: Make parameter
1435 (target_info_proc): Update.
1436 * target.c (target_info_proc): Make "args" const.
1437 * procfs.c (procfs_info_proc): Update.
1438 * linux-tdep.c (linux_info_proc): Update.
1439 (linux_core_info_proc_mappings): Make "args" const.
1440 (linux_core_info_proc): Update.
1441 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
1442 * gdbarch.c: Rebuild.
1443 * gdbarch.h: Rebuild.
1444 * corelow.c (core_info_proc): Update.
1446 2014-06-16 Tom Tromey <tromey@redhat.com>
1448 * target.h (struct target_ops) <to_disconnect>: Make parameter
1450 (target_disconnect): Update.
1451 * target.c (target_disconnect): Make "args" const.
1452 * target-delegates.c: Rebuild.
1453 * remote.c (remote_disconnect): Update.
1454 * record.h (record_disconnect): Update.
1455 * record.c (record_disconnect): Update.
1456 * inf-child.c (inf_child_disconnect): Update.
1458 2014-06-16 Tom Tromey <tromey@redhat.com>
1460 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
1461 * target.c (debug_to_rcmd, default_rcmd): Update.
1462 * target-delegates.c: Rebuild.
1463 * remote.c (remote_rcmd): Update.
1464 * monitor.c (monitor_rcmd): Update.
1466 2014-06-16 Pedro Alves <palves@redhat.com>
1468 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
1469 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
1470 have OBJF_SHARED set.
1471 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
1472 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
1473 instead of OBJF_USERLOADED.
1474 * objfiles.h (OBJF_SHARED): Update comment.
1475 (userloaded_objfile_contains_address_p): Rename to ...
1476 (shared_objfile_contains_address_p): ... this, and update
1478 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
1480 (remove_symbol_file_command): Skip objfiles that don't have
1483 2014-06-16 Tom Tromey <tromey@redhat.com>
1485 * minsyms.h (prim_record_minimal_symbol)
1486 (prim_record_minimal_symbol_and_info): Update comments.
1488 2014-06-14 Eli Zaretskii <eliz@gnu.org>
1490 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
1491 or --without-guile, according to how GDB was built.
1493 2014-06-13 Tom Tromey <tromey@redhat.com>
1495 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
1497 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
1499 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
1501 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
1502 help_list.Pass all_commands, not -1, to help_list.
1503 * cli/cli-dump.c (dump_command, append_command)
1504 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
1505 (binary_dump_command, binary_append_command): Pass all_commands,
1506 not -1, to help_list.
1507 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
1509 * valprint.c (set_print, set_print_raw): Pass all_commands, not
1511 * typeprint.c (set_print_type): Pass all_commands, not -1, to
1513 * top.c (set_history): Pass all_commands, not -1, to help_list.
1514 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
1515 all_commands, not -1, to help_list.
1516 * symfile.c (overlay_command): Pass all_commands, not -1, to
1518 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
1520 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
1522 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
1524 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
1525 not -1, to help_list.
1526 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
1527 not -1, to help_list.
1528 * maint.c (maintenance_command, maintenance_info_command)
1529 (maintenance_print_command, maintenance_set_cmd): Pass
1530 all_commands, not -1, to help_list.
1531 * macrocmd.c (macro_command): Pass all_commands, not -1, to
1533 * language.c (set_check): Pass all_commands, not -1, to help_list.
1534 * infcmd.c (unset_command): Pass all_commands, not -1, to
1536 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
1538 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
1540 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
1542 * breakpoint.c (save_command): Pass all_commands, not -1, to
1544 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
1545 all_commands, not -1, to help_list.
1547 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
1549 * regcache.c (struct register_to_invalidate): New structure.
1550 (do_register_invalidate, make_cleanup_regcache_invalidate): New
1552 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
1554 2014-06-12 Yao Qi <yao@codesourcery.com>
1556 * varobj.c (varobj_get_num_children): Call
1557 varobj_is_dynamic_p.
1558 (varobj_list_children): Likewise.
1559 (varobj_update): Likewise. Update comments.
1561 2014-06-12 Yao Qi <yao@codesourcery.com>
1563 * varobj.c (varobj_pretty_printed_p): Rename to ...
1564 (varobj_is_dynamic_p): ... this. New function.
1565 * varobj.h (varobj_pretty_printed_p): Remove declaration.
1566 (varobj_is_dynamic_p): Declare.
1567 * mi/mi-cmd-var.c (print_varobj): All callers updated.
1568 (mi_print_value_p, varobj_update_one): Likewise.
1570 2014-06-12 Pedro Alves <pedro@codesourcery.com>
1571 Yao Qi <yao@codesourcery.com>
1573 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
1574 (varobj_get_iterator): Wrap up code for pretty-printer by
1575 "#if HAVE_PYTHON" and "#endif".
1576 (update_dynamic_varobj_children): Likewise.
1578 2014-06-12 Pedro Alves <pedro@codesourcery.com>
1579 Yao Qi <yao@codesourcery.com>
1581 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
1582 gdb_python_initialized is false. Move some code from varobj.c.
1583 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
1584 * varobj.c: Move "varobj-iter.h" inclusion earlier.
1585 (struct varobj_item): Moved to varobj-iter.h".
1586 (varobj_clear_saved_item): New function.
1587 (update_dynamic_varobj_children): Move python-related code to
1589 (free_variable): Call varobj_clear_saved_item and
1592 2014-06-12 Pedro Alves <pedro@codesourcery.com>
1593 Yao Qi <yao@codesourcery.com>
1595 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
1596 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
1597 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
1598 (py-varobj.o): New rule.
1599 * python/py-varobj.c: New file.
1600 * python/python-internal.h (py_varobj_get_iterator): Declare.
1601 * varobj-iter.h: New file.
1602 * varobj.c: Include "varobj-iter.h"
1603 (struct varobj) <child_iter>: Change its type from "PyObject *"
1604 to "struct varobj_iter *".
1605 <saved_item>: Likewise.
1606 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
1607 [HAVE_PYTHON] (varobj_get_iterator): New function.
1608 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
1609 python-specific code to python/py-varobj.c.
1610 (install_visualizer): Call varobj_iter_delete instead of
1612 * varobj.h (varobj_ensure_python_env): Declare.
1614 2014-06-12 Yao Qi <yao@codesourcery.com>
1616 * varobj.c (struct varobj_item): New structure.
1617 (create_child_with_value): Update declaration.
1618 (varobj_add_child): Replace arguments 'name' and 'value' with
1619 'item'. All callers updated.
1620 (install_dynamic_child): Likewise.
1621 (update_dynamic_varobj_children): Likewise.
1622 (varobj_add_child): Likewise.
1623 (create_child_with_value): Likewise.
1625 2014-06-11 Joel Brobecker <brobecker@adacore.com>
1627 * NEWS: Create a new section for the next release branch.
1628 Rename the section of the current branch, now that it has
1631 2014-06-11 Joel Brobecker <brobecker@adacore.com>
1633 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
1634 * version.in: Bump version to 7.8.50.DATE-cvs.
1636 2014-06-11 Pedro Alves <palves@redhat.com>
1639 * ser-mingw.c (net_windows_socket_check_pending): New function.
1640 (net_windows_select_thread): Ignore spurious wakeups. Use
1641 net_windows_socket_check_pending.
1642 (net_windows_wait_handle): Check for pending events with
1643 ioctlsocket, through net_windows_socket_check_pending, instead of
1644 checking the socket's event.
1646 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
1648 * python/python-internal.h (gdb_PyObject_GetAttrString)
1649 (gdb_PyObject_HasAttrString): New inline function definitions.
1650 * py-value.c (get_field_flag): Remove the now unnecessary cast to
1651 char * of the second argument to PyObject_GetAttrString.
1653 2014-06-10 Joel Brobecker <brobecker@adacore.com>
1655 * serial.c (serial_write): Fix index of character to be printed
1656 in call to serial_logchar when serial debug traces are enabled.
1658 2014-06-10 Joel Brobecker <brobecker@adacore.com>
1660 * gdbtypes (resolve_dynamic_range): Add function description.
1662 2014-06-09 Pedro Alves <palves@redhat.com>
1664 * linux-nat.c (linux_child_follow_fork): Initialize status with
1665 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
1666 inner block. Only pass the signal to PTRACE_DETACH if in pass
1669 2014-06-09 Gary Benson <gbenson@redhat.com>
1671 * common/signals.c (gdb_signal_from_host): Reorder to separate
1672 the always-available ANSI-standard signals from the signals that
1674 (do_gdb_signal_to_host): Likewise.
1675 * proc-events.c (signal_table): Likewise.
1677 2014-06-08 Hui Zhu <hui@codesourcery.com>
1679 * common/linux-ptrace.c (linux_disable_event_reporting): New
1681 * common/linux-ptrace.h (linux_disable_event_reporting): New
1683 * linux-nat.c (linux_child_follow_fork): Do a single step before
1686 2014-06-07 Keith Seitz <keiths@redhat.com>
1690 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
1691 from symbol_matches_domain in symtab.c. All local callers
1692 of symbol_matches_domain updated.
1693 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
1694 search STRUCT_DOMAIN.
1695 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
1696 independently. standard_lookup will do that automatically.
1697 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
1698 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
1699 (cp_lookup_symbol_in_namespace): Likewise.
1700 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
1701 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
1702 may return a STRUCT_DOMAIN match.
1703 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
1704 * cp-support.c: Include language.h.
1705 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
1707 * psymtab.c (match_partial_symbol): Compare the requested
1708 domain with the symbol's domain directly.
1709 (lookup_partial_symbol): Likewise.
1710 * symtab.c (lookup_symbol_in_language): Explain when/why
1711 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
1712 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
1713 appropriate languages.
1714 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
1715 and moved to ada-lang.c
1716 (lookup_block_symbol): Explain that this function only returns
1717 symbol matching the requested DOMAIN.
1718 Compare the requested domain with the symbol's domain directly.
1719 (iterate_over_symbols): Compare the requested domain with the
1720 symbol's domain directly.
1721 * symtab.h (symbol_matches_domain): Remove.
1723 2014-06-06 Doug Evans <xdje42@gmail.com>
1725 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
1726 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
1727 (gdbscm_guile_version_is_at_least): Declare.
1728 (gdbscm_scm_string_to_int): Declare.
1729 * guile/guile.c (gdbscm_guile_major_version): New global.
1730 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
1731 (guile_datadir): New static global.
1732 (gdbscm_guile_data_directory): New function.
1733 (initialize_scheme_side): Update.
1734 (misc_guile_functions): Add guile-data-directory.
1735 (initialize_gdb_module): Fetch guile version number.
1736 * guile/lib/gdb.scm: Remove call to add-to-load-path.
1737 * guile/lib/gdb/init.scm (%initialize!): Ditto.
1738 * guile/lib/gdb/boot.scm: Use guile-data-directory.
1739 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
1741 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
1742 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
1743 * guile/scm-value.c (gdbscm_value_to_string): Only call
1744 scm_port_conversion_strategy if Guile version >= 2.0.6.
1746 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
1748 * main.c (print_gdb_help): Add -q and --silent.
1750 2014-06-06 Gary Benson <gbenson@redhat.com>
1752 * common/signals.c: Remove preprocessor conditionals for
1753 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
1754 SIGSEGV and SIGTERM.
1755 * proc-events.c: Likewise.
1757 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
1759 * symfile.c (symfile_free_objfile): Remove restriction to
1761 * symfile-mem.c (symbol_file_add_from_memory): Call
1762 add_target_sections_of_objfile.
1764 2014-06-05 Ludovic Courtès <ludo@gnu.org>
1766 * guile/scm-value.c (gdbscm_history_append_x): Use
1767 'vlscm_get_value_smob_arg_unsafe' instead of
1768 'vlscm_scm_to_value'.
1770 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
1773 * utils.c (printchar): Don't escape at all if quoter is NUL.
1774 Update function documentation to clarify effect of parameter
1776 * remote.c (escape_buffer): Pass '\\' as the quoter to
1777 fputstrn_unfiltered.
1778 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
1779 generate the output.
1780 (mi_solib_unloaded): Same.
1782 2014-06-05 Joel Brobecker <brobecker@adacore.com>
1784 * development.sh: Delete.
1785 * Makefile.in (config.status): Adjust dependency on development.sh.
1786 * configure.ac: Adjust development.sh source call.
1787 * configure: Regenerate.
1789 2014-06-04 Doug Evans <xdje42@gmail.com>
1791 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
1792 is_scheme_bkpt, spec.
1793 (bpscm_make_breakpoint_smob): Initialize new members.
1794 (gdbscm_create_breakpoint_x): Split into two ...
1795 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
1796 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
1797 (scheme_function breakpoint_functions): Update.
1798 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
1799 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
1800 register-breakpoint!.
1802 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
1805 * mem-break.c (z_type_supported): Return zero if
1806 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
1808 2014-06-04 Tom Tromey <tromey@redhat.com>
1810 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
1811 value_from_contents_and_address_unresolved.
1812 (ada_template_to_fixed_record_type_1): Likewise.
1813 (ada_which_variant_applies): Likewise.
1814 * value.h (value_from_contents_and_address_unresolved): Declare.
1815 * value.c (value_from_contents_and_address_unresolved): New
1817 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
1818 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
1819 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
1821 2014-06-04 Tom Tromey <tromey@redhat.com>
1823 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
1825 2014-06-04 Tom Tromey <tromey@redhat.com>
1827 * procfs.c (procfs_attach): Make "args" const.
1828 * windows-nat.c (windows_attach): Make "args" const.
1829 * nto-procfs.c (procfs_attach): Make "args" const.
1830 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
1831 * go32-nat.c (go32_attach): Make "args" const.
1832 * gnu-nat.c (gnu_attach): Make "args" const.
1833 * darwin-nat.c (darwin_attach): Make "args" const.
1834 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
1835 * linux-nat.c (linux_nat_attach): Make "args" const.
1836 * remote.c (extended_remote_attach_1, extended_remote_attach):
1838 * target.h (struct target_ops) <to_attach>: Make "args" const.
1839 (find_default_attach): Likewise.
1840 * utils.c (parse_pid_to_attach): Make "args" const.
1841 * utils.h (parse_pid_to_attach): Update.
1843 2014-06-04 Tom Tromey <tromey@redhat.com>
1845 * target-delegates.c: Rebuild.
1846 * target.c (default_thread_address_space): New function.
1847 (target_thread_address_space): Simplify.
1848 * target.h (struct target_ops) <to_thread_address_space>: Add
1849 TARGET_DEFAULT_FUNC.
1851 2014-06-04 Doug Evans <xdje42@gmail.com>
1853 * guile/scm-type.c (type_smob): Remove duplicate typedef.
1855 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
1857 * record-btrace.c: Include event-loop.h and inf-loop.h.
1858 (record_btrace_resume_exec_dir)
1859 (record_btrace_async_inferior_event_handler)
1860 (record_btrace_handle_async_inferior_event): New.
1861 (record_btrace_open): Create async event handler.
1862 (record_btrace_close): Delete async event handler.
1863 (record_btrace_resume): Set record_btrace_resume_exec_dir,
1864 Mark async event handler.
1865 (record_btrace_execution_direction): New.
1866 (init_record_btrace_ops): Initialize to_execution_direction.
1868 2014-06-03 Doug Evans <xdje42@gmail.com>
1870 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
1871 (gdbscm_make_parameter): Ditto.
1873 2014-06-03 Doug Evans <dje@google.com>
1875 * exec.c (exec_close_1): Call clear_section_table instead of
1876 resize_section_table.
1877 (clear_section_table): New function.
1878 (resize_section_table): Make static. Rename arg num_added to
1880 * exec.h (clear_section_table): Declare.
1881 (resize_section_table): Delete.
1882 * progspace.c (release_program_space): Call clear_section_table
1883 instead of resize_section_table.
1885 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
1887 * NEWS (Python Scripting): Add entry about the new xmethods
1890 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
1892 * python/py-xmethods.c: New file.
1893 * python/py-objfile.c (objfile_object): New field 'xmethods'.
1894 (objfpy_dealloc): XDECREF on the new xmethods field.
1895 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
1897 (objfpy_get_xmethods): New function.
1898 (objfile_getset): New entry 'xmethods'.
1899 * python/py-progspace.c (pspace_object): New field 'xmethods'.
1900 (pspy_dealloc): XDECREF on the new xmethods field.
1901 (pspy_new, pspace_to_pspace_object): Initialize xmethods
1903 (pspy_get_xmethods): New function.
1904 (pspace_getset): New entry 'xmethods'.
1905 * python/python-internal.h: Add declarations for new functions.
1906 * python/python.c (_initialize_python): Invoke
1907 gdbpy_initialize_xmethods.
1908 * python/lib/gdb/__init__.py (xmethods): New
1910 * python/lib/gdb/xmethod.py: New file.
1911 * python/lib/gdb/command/xmethods.py: New file.
1913 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
1915 * eval.c (evaluate_subexp_standard): Call the xmethod if the
1916 best match method returned by find_overload_match is an xmethod.
1917 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
1918 the best matching operator returned by find_overload_match is an
1920 * valops.c: #include "extension.h".
1921 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
1922 Return void. The list of matching source methods is returned in
1923 "fn_list" and a vector of matching debug method workers is
1924 returned in "xm_worker_vec". Update all callers.
1925 (value_find_oload_method_list): Likewise.
1926 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
1927 non-NULL, then the index of the best matching method in this
1928 vector is returned. Update all callers.
1929 (find_overload_match): Include xmethods while performing overload
1932 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
1934 * defs.h (enum lval_type): New enumerator "lval_xcallable".
1935 * extension-priv.h (struct extension_language_ops): Add the
1937 * extension.c (new_xmethod_worker, clone_xmethod_worker,
1938 get_matching_xmethod_workers, get_xmethod_argtypes,
1939 invoke_xmethod, free_xmethod_worker,
1940 free_xmethod_worker_vec): New functions.
1941 * extension.h: #include "common/vec.h".
1942 New function declarations.
1943 (struct xmethod_worker): New struct.
1944 (VEC (xmethod_worker_ptr)): New vector type.
1945 (xmethod_worker_ptr): New typedef.
1946 (xmethod_worker_vec): Likewise.
1947 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
1949 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
1950 (struct builtin_type): New field "xmethod".
1951 * valarith.c (value_ptradd): Assert that the value argument is not
1953 * valops.c (value_must_coerce_to_target): Return 0 for
1954 lval_xcallable values.
1955 * value.c (struct value): New field XM_WORKER in the field
1957 (value_address, value_raw_address): Return 0 for lval_xcallable
1959 (set_value_address): Assert that the value is not an
1961 (value_free): Free the associated xmethod worker when freeing
1962 lval_xcallable values.
1963 (set_value_component_location): Assert that the WHOLE value is not
1965 (value_of_xmethod, call_xmethod): New functions.
1966 * value.h: Declare "struct xmethod_worker".
1967 Declare new functions value_of_xmethod, call_xmethod.
1969 2014-06-03 Joel Brobecker <brobecker@adacore.com>
1970 Pedro Alves <palves@redhat.com>
1972 PR breakpoints/17000
1973 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
1974 New function, extracted from software_breakpoint_inserted_here_p.
1975 (software_breakpoint_inserted_here_p): Replace factored out code
1976 by call to find_non_raw_software_breakpoint_inserted_here.
1977 (bp_target_info_copy_insertion_state): New function.
1978 (bkpt_insert_location): Handle the case of a single-step
1979 breakpoint already inserted at the same address.
1980 (bkpt_remove_location): Handle the case of a single-step
1981 breakpoint still inserted at the same address.
1982 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
1983 breakpoint already inserted at the same address.
1984 (deprecated_remove_raw_breakpoint): Handle the case of a
1985 non-raw breakpoint still inserted at the same address.
1986 (find_single_step_breakpoint): New function, extracted from
1987 single_step_breakpoint_inserted_here_p.
1988 (find_single_step_breakpoint): New function,
1989 factored out from single_step_breakpoint_inserted_here_p.
1990 (single_step_breakpoint_inserted_here_p): Reimplement.
1992 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
1994 Pushed by Joel Brobecker <brobecker@adacore.com>
1995 * source.c (show_substitute_path_command): Fix display of matching
1998 2014-06-03 Gary Benson <gbenson@redhat.com>
2000 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
2002 2014-06-02 Doug Evans <xdje42@gmail.com>
2004 Add parameter support for Guile.
2005 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
2006 (SUBDIR_GUILE_SRCS): Add scm-param.c.
2007 (scm-param.o): New rule.
2008 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
2009 (gdbscm_misc_error): Declare.
2010 (gdbscm_canonicalize_command_name): Declare.
2011 (gdbscm_scm_to_host_string): Declare.
2012 (gdbscm_scm_from_host_string): Declare.
2013 (gdbscm_initialize_parameters): Declare.
2014 * guile/guile.c (initialize_gdb_module): Call
2015 gdbscm_initialize_parameters.
2016 * guile/lib/gdb.scm: Export parameter symbols.
2017 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
2018 cmdscm_canonicalize_name and made public. All callers updated.
2019 * guile/scm-exception.c (gdbscm_misc_error): New function.
2020 * guile/scm-param.c: New file.
2021 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
2022 (gdbscm_scm_to_host_string): New function.
2023 (gdbscm_scm_from_host_string): New function.
2024 * scm-utils.c (gdbscm_gc_dup_argv): New function.
2026 2014-06-02 Doug Evans <xdje42@gmail.com>
2028 Add command support for Guile.
2029 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
2030 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
2031 (scm-cmd.o): New rule.
2032 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
2033 (gdbscm_user_error_p): Declare.
2034 (gdbscm_parse_command_name): Declare.
2035 (gdbscm_valid_command_class_p): Declare.
2036 (gdbscm_initialize_commands): Declare.
2037 * guile/guile.c (initialize_gdb_module): Call
2038 gdbscm_initialize_commands.
2039 * guile/lib/gdb.scm: Export command symbols.
2040 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
2041 (throw-user-error): New function.
2042 * guile/scm-cmd.c: New file.
2043 * guile/scm-exception.c (user_error_symbol): New static global.
2044 (gdbscm_user_error_p): New function.
2045 (gdbscm_initialize_exceptions): Set user_error_symbol.
2046 * scm-utils.c (gdbscm_gc_xstrdup): New function.
2048 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
2050 * top.c (command_loop): Handle comments here...
2051 (command_line_input): ... not here.
2053 2014-06-02 Doug Evans <xdje42@gmail.com>
2055 Add progspace support for Guile.
2056 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
2057 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
2058 (scm-progspace.o): New rule.
2059 * guile/guile-internal.h (pspace_smob): New typedef.
2060 (psscm_pspace_smob_pretty_printers): Declare.
2061 (psscm_pspace_smob_from_pspace): Declare.
2062 (psscm_scm_from_pspace): Declare.
2063 * guile/guile.c (initialize_gdb_module): Call
2064 gdbscm_initialize_pspaces.
2065 * guile/lib/gdb.scm: Export progspace symbols.
2066 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
2068 (append-pretty-printer!): Ditto.
2069 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
2071 * guile/scm-progspace.c: New file.
2073 2014-06-03 Alan Modra <amodra@gmail.com>
2075 * ppc64-tdep.c (ppc64_standard_linkage8): New.
2076 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
2078 2014-06-02 Doug Evans <dje@google.com>
2080 Add support for skeletonless type units.
2081 * dwarf2read.c (struct dwarf2_per_objfile): New member
2082 n_allocated_type_units.
2083 (struct dwarf2_per_objfile) <tu_stats>: New member
2084 nr_all_type_units_reallocs.
2085 (create_signatured_type_table_from_index): Initialize
2086 n_allocated_type_units
2087 (create_all_type_units): Ditto.
2088 (add_type_unit): Move up in file. New arg slot.
2089 All callers updated. Increase space for all_type_units more
2091 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
2092 (lookup_dwo_signatured_type): Handle skeletonless TUs.
2093 (lookup_dwp_signatured_type): Ditto.
2094 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
2095 All callers updated.
2096 (build_type_psymtabs_1): Leave type_unit_groups as
2097 NULL if no TUs present.
2098 (print_tu_stats): New function.
2099 (process_skeletonless_type_unit): New function.
2100 (process_dwo_file_for_skeletonless_type_units): New
2102 (process_skeletonless_type_units): New function.
2103 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
2104 Call print tu_stats if debugging enabled.
2106 2014-06-02 Pedro Alves <palves@redhat.com>
2108 * breakpoint.c (build_target_command_list): Don't build a command
2109 list if we have any duplicate location that isn't a dprintf.
2111 2014-06-02 Pedro Alves <palves@redhat.com>
2113 * breakpoint.c (dprintf_breakpoint_hit): New function.
2114 (initialize_breakpoint_ops): Install it as dprintf's
2115 breakpoint_hit method.
2117 2014-06-02 Joel Brobecker <brobecker@adacore.com>
2119 * source.c (substitute_path_rule_matches): Simplify using
2120 filename_ncmp instead of FILENAME_CMP.
2122 2014-06-02 Joel Brobecker <brobecker@adacore.com>
2124 * source.c (substitute_path_rule_matches): Remove trailing spaces.
2126 2014-06-01 Ludovic Courtès <ludo@gnu.org>
2128 * configure.ac: When Guile is available, check for the
2129 availability of 'scm_new_smob'.
2130 * configure, config.h.in: Regenerate.
2131 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
2134 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
2136 * frame.c (struct frame_info): Add stop_string field.
2137 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
2138 (get_prev_frame_always): Old content moved into
2139 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
2140 TRY_CATCH, handle MEMORY_ERROR exceptions.
2141 (frame_stop_reason_string): New function definition.
2142 * frame.h (unwind_stop_reason_to_string): Extend comment to
2143 mention frame_stop_reason_string.
2144 (frame_stop_reason_string): New function declaration.
2145 * stack.c (frame_info): Switch to frame_stop_reason_string.
2146 (backtrace_command_1): Switch to frame_stop_reason_string.
2147 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
2148 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
2149 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
2151 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
2153 * frame.c (frame_stop_reason_string): Rename to ...
2154 (unwind_stop_reason_to_string): this.
2155 * frame.h (frame_stop_reason_string): Rename to ...
2156 (unwind_stop_reason_to_string): this.
2157 * stack.c (frame_info): Update call to frame_stop_reason_string.
2158 (backtrace_command_1): Likewise.
2159 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
2160 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
2162 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
2164 * frame.c (remove_prev_frame): New function.
2165 (get_prev_frame_if_no_cycle): Create / discard cleanup using
2168 2014-05-29 Pedro Alves <palves@redhat.com>
2170 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
2171 and make it const. When a single-step decays to a continue,
2172 clear 'step', not 'hw_step'. Pass whether the caller wanted
2173 to step to user_visible_resume_ptid, not what we ask the
2176 2014-05-29 Pedro Alves <palves@redhat.com>
2178 * infrun.c (process_event_stop_test, handle_step_into_function)
2179 (handle_step_into_function_backward): Adjust.
2180 Don't set the even thread's stop_step and call stop_waiting before
2181 calling end_stepping_range. Instead do that ...
2182 (end_stepping_range): ... here. Take an ecs pointer parameter.
2184 2014-05-29 Pedro Alves <palves@redhat.com>
2186 * infrun.c (stop_stepping): Rename to ...
2187 (stop_waiting): ... this.
2188 (proceed): Update comment.
2189 (process_event_stop_test, handle_inferior_event)
2190 (handle_signal_stop, handle_step_into_function)
2191 (handle_step_into_function_backward): Update.
2193 2014-05-29 Pedro Alves <palves@redhat.com>
2195 * infcall.c (run_inferior_call): Don't check whether the current
2196 thread is running after the proceed call.
2198 2014-05-29 Pedro Alves <palves@redhat.com>
2199 Tom Tromey <tromey@redhat.com>
2201 * NEWS: Mention "maint set target-async", "set mi-async", and that
2202 background execution commands are now always available.
2203 * target.h (target_async_permitted): Update comment.
2204 * target.c (target_async_permitted, target_async_permitted_1):
2206 (set_target_async_command): Rename to ...
2207 (maint_set_target_async_command): ... this.
2208 (show_target_async_command): Rename to ...
2209 (maint_show_target_async_command): ... this.
2210 (_initialize_target): Adjust.
2211 * infcmd.c (prepare_execution_command): Make extern.
2212 * inferior.h (prepare_execution_command): Declare.
2213 * infrun.c (set_observer_mode): Leave target async alone.
2214 * mi/mi-interp.c (mi_interpreter_init): Install
2215 mi_on_sync_execution_done as sync_execution_done observer.
2216 (mi_on_sync_execution_done): New function.
2217 (mi_execute_command_input_handler): Don't print the prompt if we
2218 just started a synchronous command with an async target.
2219 (mi_on_resume): Check sync_execution before printing prompt.
2220 * mi/mi-main.h (mi_async_p): Declare.
2221 * mi/mi-main.c: Include gdbcmd.h.
2222 (mi_async_p): New function.
2223 (mi_async, mi_async_1): New globals.
2224 (set_mi_async_command, show_mi_async_command, mi_async): New
2226 (exec_continue): Call prepare_execution_command.
2227 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
2228 (mi_execute_async_cli_command): Use mi_async_p.
2229 (_initialize_mi_main): Install "set mi-async". Make
2230 "target-async" a deprecated alias.
2232 2014-05-29 Pedro Alves <palves@redhat.com>
2234 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
2235 (_initialize_cli_interp): Adjust.
2236 * event-loop.c: Include "observer.h".
2237 (start_event_loop): Notify 'command_error' observers instead of
2238 calling display_gdb_prompt. Remove FIXME comment.
2239 * event-top.c (display_gdb_prompt): Remove call into the
2241 * inf-loop.c: Include "observer.h".
2242 (inferior_event_handler): Notify 'command_error' observers instead
2243 of calling display_gdb_prompt.
2244 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
2245 observers instead of calling display_gdb_prompt.
2246 * interps.c (interp_set): Don't call display_gdb_prompt.
2247 (current_interp_display_prompt_p): Delete.
2248 * interps.h (interp_prompt_p): Delete declaration.
2249 (interp_prompt_p_ftype): Delete.
2250 (struct interp_procs) <prompt_proc_p>: Delete field.
2251 (current_interp_display_prompt_p): Delete declaration.
2252 * mi-interp.c (mi_interpreter_prompt_p): Delete.
2253 (_initialize_mi_interp): Adjust.
2254 * tui-interp.c (tui_init): Install 'sync_execution_done' and
2255 'command_error' observers.
2256 (tui_on_sync_execution_done, tui_on_command_error): New
2258 (tui_display_prompt_p): Delete.
2259 (_initialize_tui_interp): Adjust.
2261 2014-05-29 Pedro Alves <palves@redhat.com>
2264 * cli/cli-interp.c: Include infrun.h and observer.h.
2265 (cli_uiout, cli_interp): New globals.
2266 (cli_on_signal_received, cli_on_end_stepping_range)
2267 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
2269 (cli_interpreter_init): Install them as 'end_stepping_range',
2270 'signal_received' 'signal_exited', 'exited' and 'no_history'
2272 (_initialize_cli_interp): Remove cli_interp local.
2273 * infrun.c (handle_inferior_event): Call the several stop reason
2274 observers instead of printing the stop reason directly.
2275 (end_stepping_range): New function.
2276 (print_end_stepping_range_reason, print_signal_exited_reason)
2277 (print_exited_reason, print_signal_received_reason)
2278 (print_no_history_reason): Make static, and add an uiout
2279 parameter. Print to that instead of to CURRENT_UIOUT.
2280 * infrun.h (print_end_stepping_range_reason)
2281 (print_signal_exited_reason, print_exited_reason)
2282 (print_signal_received_reason print_no_history_reason): New
2284 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
2286 <cli_uiout>: New field.
2287 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
2288 uiout for CLI output. Install 'signal_received',
2289 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
2291 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
2292 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
2293 (mi_on_no_history): New functions.
2294 (ui_out_free_cleanup): Delete function.
2295 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
2296 instead use the one already stored in the MI interpreter data.
2297 (mi_ui_out): Adjust.
2298 * tui/tui-interp.c: Include infrun.h and observer.h.
2299 (tui_interp): New global.
2300 (tui_on_signal_received, tui_on_end_stepping_range)
2301 (tui_on_signal_exited, tui_on_exited)
2302 (tui_on_no_history): New functions.
2303 (tui_init): Install them as 'end_stepping_range',
2304 'signal_received' 'signal_exited', 'exited' and 'no_history'
2306 (_initialize_tui_interp): Delete tui_interp local.
2308 2014-05-29 Pedro Alves <palves@redhat.com>
2311 * linux-nat.c (linux_nat_resume_callback): Rename the second
2312 parameter to 'except'. Skip LP if it points to EXCEPT.
2313 (linux_nat_resume): Don't mark the event lwp as not stopped
2314 before resuming sibling lwps. Instead ask
2315 linux_nat_resume_callback to skip the event lwp. Mark it as not
2316 stopped after actually resuming it.
2317 (linux_handle_syscall_trap): Mark the lwp as not stopped after
2319 (wait_lwp): Mark the lwp as stopped here.
2320 (stop_wait_callback): Mark the lwp as not stopped right after
2321 resuming it. Don't mark lwps as stopped here.
2322 (linux_nat_filter_event): Mark the lwp as stopped earlier.
2323 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
2325 2014-05-29 Pedro Alves <palves@redhat.com>
2328 * infrun.c (resume): Determine how much to resume depending on
2329 whether the caller wanted a step, not whether we can hardware step
2330 the target. Mark all threads that we intend to run as running,
2331 unless we're calling an inferior function.
2332 (normal_stop): If the thread is running an infcall, don't finish
2334 * target.c (target_resume): Don't mark threads as running here.
2336 2014-05-28 Joel Brobecker <brobecker@adacore.com>
2338 * serial.c (_initialize_serial): Remove support for
2339 the "set remotebaud" and "show remotebaud" commands.
2340 * NEWS: Add entry documenting the removal of that command.
2342 2014-05-28 Yao Qi <yao@codesourcery.com>
2344 * charset.c: Fix typo in comments.
2346 2014-05-27 Gary Benson <gbenson@redhat.com>
2348 * utils.c (internal_vproblem): Prompt for a bug report.
2350 2014-05-26 Andy Wingo <wingo@igalia.com>
2352 * guile/scm-arch.c (arscm_mark_arch_smob):
2353 * guile/scm-block.c (bkscm_mark_block_smob)
2354 (bkscm_mark_block_syms_progress_smob):
2355 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
2356 * guile/scm-exception.c (exscm_mark_exception_smob):
2357 * guile/scm-frame.c (frscm_mark_frame_smob):
2358 * guile/scm-iterator.c (itscm_mark_iterator_smob):
2359 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
2360 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
2361 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
2362 (ppscm_mark_pretty_printer_worker_smob):
2363 * guile/scm-symbol.c (syscm_mark_symbol_smob):
2364 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
2365 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
2366 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
2368 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
2371 2014-05-26 Andy Wingo <wingo@igalia.com>
2372 Doug Evans <xdje42@gmail.com>
2374 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
2375 empty_base_class. All uses updated.
2376 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
2377 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
2379 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
2380 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
2381 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
2382 (gdbscm_gsmob_has_property_p, add_property_name)
2383 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
2384 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
2385 (gdb-object-has-property?, gdb-object-properties): Remove.
2386 (gdb-object-kind): Renamed from gsmob-kind.
2388 2014-05-26 Andy Wingo <wingo@igalia.com>
2390 * configure.ac (try_guile_versions): Allow building with guile 2.2.
2391 * configure: Regenerate.
2393 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
2395 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
2397 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
2399 * record-btrace.c (record_btrace_allow_memory_access): Remove.
2400 (replay_memory_access_read_only, replay_memory_access_read_write)
2401 (replay_memory_access_types, replay_memory_access)
2402 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
2403 (cmd_set_record_btrace, cmd_show_record_btrace)
2404 (cmd_show_replay_memory_access): New.
2405 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
2406 (record_btrace_remove_breakpoint): Replace
2407 record_btrace_allow_memory_access with replay_memory_access.
2408 (_initialize_record_btrace): Add commands.
2409 * NEWS: Announce it.
2411 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2413 * aarch64-linux-nat.c (asm/ptrace.h): Include.
2415 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2417 * MAINTAINERS (Write After Approval): Move self back from
2420 2014-05-22 Pedro Alves <palves@redhat.com>
2422 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
2423 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
2424 (disable_randomization, enum exec_direction_kind)
2425 (execution_direction, stop_registers, start_remote)
2426 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
2427 (wait_for_inferior, normal_stop, get_last_target_status)
2428 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
2429 (insert_step_resume_breakpoint_at_sal)
2430 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
2431 (set_step_info, print_stop_event, signal_stop_state)
2432 (signal_print_state, signal_pass_state, signal_stop_update)
2433 (signal_print_update, signal_pass_update)
2434 (update_signals_program_target, clear_exit_convenience_vars)
2435 (displaced_step_dump_bytes, update_observer_mode)
2436 (signal_catch_update, gdb_signal_from_command): Move
2438 * infrun.h: ... to this new file.
2439 * amd64-tdep.c: Include infrun.h.
2440 * annotate.c: Include infrun.h.
2441 * arch-utils.c: Include infrun.h.
2442 * arm-linux-tdep.c: Include infrun.h.
2443 * arm-tdep.c: Include infrun.h.
2444 * break-catch-sig.c: Include infrun.h.
2445 * breakpoint.c: Include infrun.h.
2446 * common/agent.c: Include infrun.h instead of inferior.h.
2447 * corelow.c: Include infrun.h.
2448 * event-top.c: Include infrun.h.
2449 * go32-nat.c: Include infrun.h.
2450 * i386-tdep.c: Include infrun.h.
2451 * inf-loop.c: Include infrun.h.
2452 * infcall.c: Include infrun.h.
2453 * infcmd.c: Include infrun.h.
2454 * infrun.c: Include infrun.h.
2455 * linux-fork.c: Include infrun.h.
2456 * linux-nat.c: Include infrun.h.
2457 * linux-thread-db.c: Include infrun.h.
2458 * monitor.c: Include infrun.h.
2459 * nto-tdep.c: Include infrun.h.
2460 * procfs.c: Include infrun.h.
2461 * record-btrace.c: Include infrun.h.
2462 * record-full.c: Include infrun.h.
2463 * remote-m32r-sdi.c: Include infrun.h.
2464 * remote-mips.c: Include infrun.h.
2465 * remote-notif.c: Include infrun.h.
2466 * remote-sim.c: Include infrun.h.
2467 * remote.c: Include infrun.h.
2468 * reverse.c: Include infrun.h.
2469 * rs6000-tdep.c: Include infrun.h.
2470 * s390-linux-tdep.c: Include infrun.h.
2471 * solib-irix.c: Include infrun.h.
2472 * solib-osf.c: Include infrun.h.
2473 * solib-svr4.c: Include infrun.h.
2474 * target.c: Include infrun.h.
2475 * top.c: Include infrun.h.
2476 * windows-nat.c: Include infrun.h.
2477 * mi/mi-interp.c: Include infrun.h.
2478 * mi/mi-main.c: Include infrun.h.
2479 * python/py-threadevent.c: Include infrun.h.
2481 2014-05-22 Pedro Alves <palves@redhat.com>
2483 * infrun.c (handle_inferior_event): Store the exit code for
2484 --return-child-result here, instead of ...
2485 (print_exited_reason): ... here.
2487 2014-05-21 Pedro Alves <palves@redhat.com>
2490 * gdbthread.h (struct thread_control_state): New field
2492 * infrun.c (follow_fork): Copy the new thread control field to the
2494 (clear_proceed_status_thread): Clear the new thread control field.
2495 (proceed): Set the new thread control field.
2496 * interps.h (command_interp): Declare.
2497 * interps.c (command_interpreter): New global.
2498 (command_interp): New function.
2499 (interp_exec): Set `command_interpreter' while here.
2500 * cli-out.c (cli_uiout_dtor): New function.
2501 (cli_ui_out_impl): Install it.
2502 * mi/mi-interp.c: Include cli-out.h.
2503 (mi_cmd_interpreter_exec): Add comment.
2504 (restore_current_uiout_cleanup): New function.
2505 (ui_out_free_cleanup): New function.
2506 (mi_on_normal_stop): If finishing an execution command started by
2507 a CLI command, or any kind of breakpoint-like event triggered,
2508 print the stop event to the output (CLI) stream.
2509 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
2511 2014-05-21 Pedro Alves <palves@redhat.com>
2513 * cli/cli-cmds.c (list_command): Handle the first "list" after the
2514 current source line having changed.
2515 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
2516 * infrun.c (normal_stop): Adjust call to
2517 set_current_sal_from_frame.
2518 * source.c (clear_lines_listed_range): New function.
2519 (set_current_source_symtab_and_line, identify_source_line): Clear
2520 the lines listed range.
2521 (line_info): Handle the first "info line" after the current source
2522 line having changed.
2523 * stack.c (print_stack_frame): Remove center handling.
2524 (set_current_sal_from_frame): Remove 'center' parameter. Don't
2527 2014-05-21 Pedro Alves <palves@redhat.com>
2529 * inf-child.c (inf_child_mourn_inferior): New function.
2530 * inf-child.h (inf_child_mourn_inferior): New declaration.
2531 * darwin-nat.c (darwin_mourn_inferior): Use
2532 inf_child_mourn_inferior.
2533 * gnu-nat.c (gnu_mourn_inferior): Likewise.
2534 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
2535 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
2536 * nto-procfs.c (procfs_mourn_inferior): Likewise.
2537 * windows-nat.c (windows_mourn_inferior): Likewise.
2539 2014-05-21 Doug Evans <xdje42@gmail.com>
2541 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
2543 2014-05-21 Doug Evans <xdje42@gmail.com>
2545 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
2546 (gdbscm_out_of_range_error): Ditto.
2547 (gdbscm_memory_error): Ditto.
2548 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
2549 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
2550 (gdbscm_out_of_range_error): Update.
2551 (gdbscm_memory_error): Update.
2552 (gdbscm_scm_to_target_string_unsafe): Delete.
2554 2014-05-21 Pedro Alves <palves@redhat.com>
2556 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
2558 (inf_child_open_target): New function.
2559 (inf_child_open): Use inf_child_open_target to push the target
2560 instead of erroring out.
2561 (inf_child_disconnect, inf_child_close)
2562 (inf_child_maybe_unpush_target): New functions.
2563 (inf_child_target): Install inf_child_disconnect and
2564 inf_child_close. Store a pointer to the returned object.
2565 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
2567 * target.c (auto_connect_native_target): New global.
2568 (show_default_run_target): New function.
2569 (find_default_run_target): Return NULL if automatically connecting
2570 to the native target is disabled.
2571 (_initialize_target): Install set/show auto-connect-native-target.
2572 * NEWS: Mention "set auto-connect-native-target", and "target
2574 * linux-nat.c (super_close): New global.
2575 (linux_nat_close): Call super_close.
2576 (linux_nat_add_target): Store a pointer to the base class's
2578 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
2579 inf_child_maybe_unpush.
2580 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
2582 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
2583 the inferior. Use inf_child_maybe_unpush_target.
2584 (inf_ttrace_attach): Don't push the target if it is already
2586 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
2587 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
2588 after mourning the inferior. Use inf_child_maybe_unpush_target.
2589 (darwin_attach_pid): Don't push the target if it is already
2591 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
2592 mourning the inferior. Use inf_child_maybe_unpush_target.
2593 (gnu_detach): Use inf_child_maybe_unpush_target.
2594 * go32-nat.c (go32_create_inferior): Don't push the target if it
2596 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
2597 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
2598 (procfs_open): Rename to ...
2599 (procfs_open_1): ... this. Add target_ops parameter. Adjust
2600 comments. Can target_preopen before changing node. Call
2601 inf_child_open_target to push the target explicitly.
2602 (procfs_attach): Don't push the target if it is already pushed.
2603 (procfs_detach): Use inf_child_maybe_unpush_target.
2604 (procfs_create_inferior): Don't push the target if it is already
2606 (nto_native_ops): New global.
2607 (procfs_open): Reimplement.
2608 (procfs_native_open): New function.
2609 (init_procfs_targets): Install procfs_native_open as to_open of
2610 "target native". Store a pointer to the "native" target in
2612 * procfs.c (procfs_attach): Don't push the target if it is already
2614 (procfs_detach): Use inf_child_maybe_unpush_target.
2615 (procfs_mourn_inferior): Only unpush the target after mourning the
2616 inferior. Use inf_child_maybe_unpush_target.
2617 (procfs_init_inferior): Don't push the target if it is already
2619 * windows-nat.c (do_initial_windows_stuff): Don't push the target
2620 if it is already pushed.
2622 2014-05-21 Pedro Alves <palves@redhat.com>
2624 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
2625 and "procfs" targets are now called "native" instead.
2627 2014-05-21 Pedro Alves <palves@redhat.com>
2629 * go32-nat.c (go32_open): Delete.
2630 (go32_target): Don't override the to_open method.
2632 2014-05-21 Pedro Alves <palves@redhat.com>
2634 * nto-procfs.c (procfs_can_run): New function.
2635 (nto_procfs_ops): New global.
2636 (init_procfs_targets): New, based on procfs_target. Install
2637 "target native" in addition to "target procfs".
2638 (_initialize_procfs): Call init_procfs_targets instead of adding
2641 2014-05-21 Pedro Alves <palves@redhat.com>
2643 * windows-nat.c (windows_target): Don't override to_shortname,
2644 to_longname or to_doc.
2646 2014-05-21 Pedro Alves <palves@redhat.com>
2648 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
2651 2014-05-21 Pedro Alves <palves@redhat.com>
2653 * darwin-nat.c (_initialize_darwin_inferior): Don't override
2654 to_shortname, to_longname or to_doc.
2656 2014-05-21 Pedro Alves <palves@redhat.com>
2658 * go32-nat.c (go32_target): Don't override to_shortname,
2659 to_longname or to_doc.
2661 2014-05-21 Pedro Alves <palves@redhat.com>
2663 * inf-child.c (inf_child_open): Remove mention of "child".
2664 (inf_child_target): Rename target to "native" instead of "child".
2666 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2668 * Makefile.in (SFILES): Delete "regset.c".
2669 (COMMON_OBS): Delete "regset.o".
2671 * regset.h (regset_alloc): Delete prototype.
2673 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2675 * sparc-linux-tdep.c (sparc32_linux_gregset)
2676 (sparc32_linux_fpregset): New static regset structures.
2677 (sparc32_linux_init_abi): Drop dynamic regset allocations.
2678 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
2680 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
2681 (sparc64_linux_fpregset): New static regset structures.
2682 (sparc64_linux_init_abi): Drop dynamic regset allocations.
2683 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
2684 New static regset structures.
2685 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
2686 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
2687 New static regset structures.
2688 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
2689 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
2690 New static regset structures.
2691 (sparc64obsd_init_abi): Drop dynamic regset allocations.
2692 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
2693 New static regset structures.
2694 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
2696 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2698 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
2699 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
2700 register maps ("regmaps") from "*regset" to "*regmap". Do this
2701 for all regmap types and variables.
2702 * sparc-linux-tdep.c (sparc32_linux_step_trap)
2703 (sparc32_linux_supply_core_gregset)
2704 (sparc32_linux_collect_core_gregset)
2705 (sparc32_linux_supply_core_fpregset)
2706 (sparc32_linux_collect_core_fpregset): Likewise.
2707 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
2708 (sparc_gregmap, sparc_fpregmap): ... these.
2709 (sparc_supply_gregset, sparc_collect_gregset)
2710 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
2711 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
2712 (_initialize_sparc_nat): Rename regmaps.
2713 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
2714 (sparc_gregmap, sparc_fpregmap): ... these.
2715 (sparc_supply_gregset, sparc_collect_gregset)
2716 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
2717 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
2719 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
2720 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
2722 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
2724 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
2725 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
2726 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
2728 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
2729 (sparc32_bsd_fpregset): Rename to...
2730 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
2731 (sparc32_bsd_fpregmap): ... these.
2732 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
2733 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
2734 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
2735 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
2736 (struct sparc_gregmap, struct sparc_fpregmap)
2737 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
2738 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
2739 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
2740 (sparc32_supply_regset, sparc32_collect_gregset)
2741 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
2743 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
2744 (sparc64_linux_ptrace_gregmap): ... this.
2745 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
2746 (_initialize_sparc64_linux_nat): Rename regmaps.
2747 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
2748 (sparc64_linux_core_gregmap): ... this.
2749 (sparc64_linux_supply_core_gregset)
2750 (sparc64_linux_collect_core_gregset)
2751 (sparc64_linux_supply_core_fpregset)
2752 (sparc64_linux_collect_core_fpregset): Rename regmaps.
2753 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
2754 (sparc64_sol2_fpregset): Rename to...
2755 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
2756 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
2757 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
2759 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
2760 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
2761 (sparc64_bsd_fpregset): Rename to...
2762 (struct sparc_gregmap, sparc64_sol2_gregmap)
2763 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
2764 (sparc64_bsd_fpregmap): ... these.
2765 (sparc64_supply_gregset, sparc64_collect_gregset)
2766 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
2768 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
2769 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
2770 (sparc64fbsd_gregmap): ... this.
2771 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
2772 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
2774 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
2775 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
2776 (sparc64nbsd_collect_fpregset): Likewise.
2777 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
2778 (sparc64nbsd_gregmap): ... this.
2779 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
2781 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
2782 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
2783 (sparc64obsd_gregmap): ... this.
2784 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
2786 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
2787 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
2788 (sparc32nbsd_gregmap): ... this.
2789 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
2792 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2794 * score-tdep.c (score7_linux_gregset): New static regset
2796 (score7_linux_regset_from_core_section): Remove dynamic regset
2798 (score_gdbarch_init): Drop allocation of tdep structure.
2799 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
2801 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2803 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
2805 (am33_regset_from_core_section): Remove dynamic regset
2808 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2810 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
2811 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
2813 (mips_linux_regset_from_core_section): Remove dynamic regset
2815 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
2816 'gregset64', 'fpregset', and 'fpregset64'.
2817 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
2818 deleted tdep fields.
2820 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2822 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
2824 (amd64_regset_from_core_section): Remove dynamic regset
2826 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
2828 (amd64obsd_regset_from_core_section): Remove dynamic regset
2830 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
2832 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
2833 x86-common regset supply function.
2834 * i386-tdep.c (i386_collect_gregset): Make static.
2835 (i386_gregset): New global regset structure.
2836 (i386_fpregset, i386_xstateregset): New static regset structures.
2837 (i386_regset_from_core_section): Remove dynamic regset
2839 (i386_gdbarch_init): Remove initialization of tdep fields
2840 'gregset', 'fpregset', and 'xstateregset'.
2841 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
2842 'fpregset', and 'xstateregset'.
2843 (i386_collect_gregset): Remove prototype.
2844 (i386_gregset): New declaration.
2845 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
2847 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
2850 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2852 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
2853 (arm_linux_vfpregset): New static regset structures.
2854 (arm_linux_regset_from_core_section): Remove dynamic allocation of
2856 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
2857 and 'vfpregset' fields.
2859 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2861 * aarch64-linux-tdep.c (aarch64_linux_gregset)
2862 (aarch64_linux_fpregset): New static regset structures.
2863 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
2864 of regset structures.
2865 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
2868 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2870 * regset.h (struct regset): Remove gdbarch field.
2871 * regset.c (regset_alloc): Drop initialization of gdbarch field.
2872 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
2873 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
2875 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
2876 (ppc32_linux_fpregset, ppc32_linux_vrregset)
2877 (ppc32_linux_vsxregset): Likewise.
2878 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
2879 via the regcache instead of the regset.
2880 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
2881 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
2882 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
2883 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
2886 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2888 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
2889 Constify structures.
2890 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
2891 (alphanbsd_aout_gregset): Likewise.
2892 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
2893 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
2895 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
2896 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
2898 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
2899 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
2900 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
2901 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
2902 * m88k-tdep.c (m88k_gregset): Likewise.
2903 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
2904 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
2905 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
2906 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
2907 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
2908 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
2909 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
2910 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
2911 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
2913 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
2914 * sh-tdep.h (sh_corefile_gregset): Likewise.
2915 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
2916 * vax-tdep.c (vax_gregset): Likewise.
2918 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2920 Fix TLS access for -static -pthread.
2921 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
2922 (try_thread_db_load_1): Initialize it.
2923 (thread_db_get_thread_local_address): Call it if LM is zero.
2924 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
2925 * target.h (struct target_ops) (to_get_thread_local_address): Add
2926 load_module_addr comment.
2928 2014-05-21 Pedro Alves <palves@redhat.com>
2930 * dcache.c (dcache_read_memory_partial): If reading the cache line
2931 fails, fallback to reading just the memory the caller wanted.
2933 2014-05-20 Doug Evans <dje@google.com>
2935 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
2936 instead of get_current_arch.
2938 2014-05-20 Pedro Alves <palves@redhat.com>
2940 * NEWS: Mention that compare-sections now works with all targets.
2942 * remote.c (PACKET_qCRC): New enum value.
2943 (remote_verify_memory): Don't send qCRC if the target has no
2944 execution. Use packet_support/packet_ok. If the target doesn't
2945 support the qCRC packet, fallback to a deep memory copy.
2946 (compare_sections_command): Say "target image" instead of "remote
2948 (_initialize_remote): Add PACKET_qCRC to the list of config
2949 packets that have no associated command. Extend comment.
2950 * target.c (simple_verify_memory, default_verify_memory): New
2952 * target.h (struct target_ops) <to_verify_memory>: Default to
2953 default_verify_memory.
2954 (simple_verify_memory): New declaration.
2955 * target-delegates.c: Regenerate.
2957 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
2959 * record-btrace.c (record_btrace_step_thread): Check for empty history.
2961 2014-05-20 Hui Zhu <hui@codesourcery.com>
2962 Yao Qi <yao@codesourcery.com>
2965 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
2966 and change address of sp and pc.
2968 2014-05-19 Tom Tromey <tromey@redhat.com>
2970 * gdbtypes.c (rank_function): Use XNEWVEC.
2971 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
2973 2014-05-19 Doug Evans <dje@google.com>
2975 * dwarf2read.c (build_type_psymtabs_1): Renamed from
2976 build_type_unit_groups and moved closer to only caller. Remove
2977 arguments. All references updated. Remove outdated .gdb_index
2979 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
2980 build_type_psymtabs_1.
2982 2014-05-19 Doug Evans <dje@google.com>
2984 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
2985 n_type_unit_groups, all_type_unit_groups. All uses removed.
2986 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
2987 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
2988 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
2989 (add_type_unit_group_to_table): Delete.
2991 2014-05-19 Doug Evans <dje@google.com>
2993 * eval.c (evaluate_subexp_standard): Add some comments.
2995 2014-05-17 Doug Evans <xdje42@gmail.com>
2997 * progspace.c (remove_program_space): Delete, unused.
2998 * progspace.h (remove_program_space): Ditto.
3000 2014-05-17 Doug Evans <xdje42@gmail.com>
3002 * inferior.c (prune_inferiors): Fix comment.
3003 (remove_inferior_command): Call prune_program_spaces.
3005 2014-05-16 Doug Evans <dje@google.com>
3007 New command line option -D.
3009 * main.c (set_gdb_data_directory): New function.
3010 (captured_main): Recognize -D. Flag error for --data-directory "".
3011 Call set_gdb_data_directory.
3012 (print_gdb_help): Print --data-directory, -D.
3013 * main.h (set_gdb_data_directory): Declare.
3014 * top.c (staged_gdb_datadir): New static global.
3015 (set_gdb_datadir): Call set_gdb_data_directory
3016 (show_gdb_datadir): New function.
3017 (init_main): Update init of data-directory parameter.
3019 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
3021 Import the "dirfd" gnulib module.
3022 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
3023 * gnulib/aclocal.m4: Update.
3024 * gnulib/config.in: Update.
3025 * gnulib/configure: Update.
3026 * gnulib/import/Makefile.am: Update.
3027 * gnulib/import/Makefile.in: Update.
3028 * gnulib/import/dirfd.c: New.
3029 * gnulib/import/m4/dirfd.m4: New.
3030 * gnulib/import/m4/gnulib-cache.m4: Update.
3031 * gnulib/import/m4/gnulib-comp.m4: Update.
3033 2014-05-16 Pierre Muller <muller@sourceware.org>
3034 Yao Qi <yao@codesourcery.com>
3036 * valprint.c (print_wchar): Move the code on checking whether
3037 W is a printable wide char to the default branch of switch
3038 statement below. Call wchar_printable instead of gdb_iswprint.
3040 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
3042 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
3043 ldr.w and ldrd instructions.
3045 2014-05-15 Doug Evans <dje@google.com>
3047 * dwarf2read.c (read_structure_type): Delete outdated comments.
3049 2014-05-14 Tom Tromey <tromey@redhat.com>
3051 * macrocmd.c (print_macro_definition): Reindent.
3053 2014-05-13 Doug Evans <xdje42@gmail.com>
3055 * python/py-cmd.c (cmdpy_completer): Add comment.
3056 (completers): Make const.
3058 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
3060 * infrun.c (resume): Remove should_resume (unused). Move up
3061 declaration of resume_ptid.
3063 2014-05-13 Tom Tromey <tromey@redhat.com>
3065 * language.h (unop_type_check): Remove.
3066 (binop_type_check): Don't declare.
3068 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
3070 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
3071 call to regcache_raw_collect.
3073 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
3075 * mi/mi-console.c (mi_console_raw_packet): Use the value from
3076 mi_console->quote as the quoting character.
3078 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
3080 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
3082 2014-04-29 Tom Tromey <tromey@redhat.com>
3084 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
3085 "show debug varobj".
3087 2014-05-07 Kyle McMartin <kyle@redhat.com>
3089 Pushed by Joel Brobecker <brobecker@adacore.com>.
3090 * aarch64-tdep.c (aarch64_software_single_step): New function.
3091 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
3092 with aarch64_software_single_step.
3094 2014-05-05 Joel Brobecker <brobecker@adacore.com>
3098 2014-05-05 Keith Seitz <keiths@redhat.com>
3100 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
3101 variable or history value is successfully parsed.
3103 2014-05-05 Yao Qi <yao@codesourcery.com>
3104 Pedro Alves <palves@redhat.com>
3106 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
3107 address of blocks that intersects the requested range. Trim
3108 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
3110 * ctf.c (ctf_xfer_partial): Likewise.
3112 2014-05-05 Yao Qi <yao@codesourcery.com>
3114 * printcmd.c (display_command): Remove the check to
3115 target_has_execution.
3117 2014-05-03 Mark Kettenis <kettenis@gnu.org>
3119 * ppcobsd-nat.c: Include "obsd-nat.h".
3120 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
3122 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
3124 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
3126 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
3127 and 16-bit signed and unsigned arguments. Update comment.
3128 (stap_parse_probe_arguments): Extend code to handle such
3129 arguments. Use warning instead of complaint to notify about
3130 unrecognized bitness.
3132 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
3134 PR breakpoints/16889
3135 * stap-probe.c (stap_parse_probe_arguments): Simplify
3136 check for non-prefixed probes (i.e., probes whose
3137 arguments do not start with "N@"). Always set the
3138 argument type to a sane value.
3140 2014-05-01 David Taylor <dtaylor@emc.com>
3142 * remote.c (compare_sections_command): Add -r option to compare
3143 all loadable read-only sections.
3145 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
3147 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
3148 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
3150 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
3151 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
3152 Remove unused CORE_ADDR argument. Update all callers.
3154 2014-04-29 Pedro Alves <palves@redhat.com>
3156 * remote.c (struct packet_config) <detect>: Extend comment.
3157 (add_packet_config_cmd): Don't set the config's detect or support
3159 (init_all_packet_configs): Also initialize the config's 'detect'
3161 (reset_all_packet_configs_support): New function.
3162 (remote_open_1): Call reset_all_packet_configs_support instead of
3163 init_all_packet_configs.
3164 (_initialize_remote): Initialize all packet configs. Assert that
3165 all packets have an associated command, except a few known
3168 2014-04-28 Joel Brobecker <brobecker@adacore.com>
3170 * dwarf2read.c (read_subrange_type): Handle dynamic
3171 DW_AT_lower_bound attributes.
3173 2014-04-28 Joel Brobecker <brobecker@adacore.com>
3175 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
3176 dynamic bounds before computing its upper bound.
3177 (ada_discrete_type_low_bound): Same as above with the lower bound.
3179 2014-04-28 Joel Brobecker <brobecker@adacore.com>
3181 * dwarf2read.c (is_dynamic_type): Return true for dynamic
3182 range types. Adjust the array handling implementation to
3183 take advantage of this change.
3184 (resolve_dynamic_range): New function, mostly extracted from
3185 resolve_dynamic_bounds.
3186 (resolve_dynamic_array): New function, mostly extracted from
3187 resolve_dynamic_bounds.
3188 (resolve_dynamic_bounds): Delete.
3189 (resolve_dynamic_type): Reimplement. Add handling of
3190 TYPE_CODE_RANGE types.
3192 2014-04-28 Joel Brobecker <brobecker@adacore.com>
3194 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
3195 handling of parallel ___XA types.
3197 2014-04-28 Joel Brobecker <brobecker@adacore.com>
3199 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
3200 unnecessary second call to static_unwrap_type.
3202 2014-04-27 Hui Zhu <hui@codesourcery.com>
3204 * stack.c (print_frame_info): Call do_gdb_disassembly with
3205 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
3207 2014-04-26 Doug Evans <xdje42@gmail.com>
3209 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
3211 2014-04-25 Pedro Alves <palves@redhat.com>
3214 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
3215 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
3216 and newline from built string.
3217 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
3218 (linux_ptrace_attach_fail_reason): ... this.
3219 * linux-nat.c (linux_nat_attach): Adjust to use
3220 linux_ptrace_attach_fail_reason.
3222 2014-04-25 Pedro Alves <palves@redhat.com>
3224 * remote.c (struct remote_state): Remove multi_process_aware,
3225 non_stop_aware, cond_tracepoints, cond_breakpoints,
3226 breakpoint_commands, fast_tracepoints, static_tracepoints,
3227 install_in_trace, disconnected_tracing,
3228 enable_disable_tracepoints, string_tracing, and
3229 augmented_libraries_svr4_read fields.
3230 (remote_multi_process_p): Move further below in the file.
3231 (struct packet_config): Add comments.
3232 (update_packet_config): Delete function.
3233 (show_packet_config_cmd): Use packet_config_support.
3234 (add_packet_config_cmd): Use NULL as set callback.
3235 (packet_ok): "set remote foo-packet"-style commands no longer
3236 change config->supported -- adjust.
3237 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
3238 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
3239 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
3240 (PACKET_QNonStop, PACKET_multiprocess_feature)
3241 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
3242 (PACKET_DisconnectedTracing_feature)
3243 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
3244 (set_remote_protocol_packet_cmd): Delete function.
3245 (packet_config_support, packet_support): New functions.
3246 (set_remote_protocol_Z_packet_cmd): Don't call
3247 update_packet_config.
3248 (remote_query_attached, remote_pass_signals)
3249 (remote_program_signals, remote_threads_info)
3250 (remote_threads_extra_info, remote_start_remote): Use
3252 (remote_start_remote): Use packet_config_support and
3254 (init_all_packet_configs): Set all packets to unknown support,
3255 instead of calling update_packet_config.
3256 (remote_check_symbols): Use packet_support.
3257 (remote_supported_packet): Unconditionally set the packet config's
3259 (remote_multi_process_feature, remote_non_stop_feature)
3260 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
3261 (remote_breakpoint_commands_feature)
3262 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
3263 (remote_install_in_trace_feature)
3264 (remote_disconnected_tracing_feature)
3265 (remote_enable_disable_tracepoint_feature)
3266 (remote_string_tracing_feature)
3267 (remote_augmented_libraries_svr4_read_feature): Delete functions.
3268 (remote_protocol_features): Adjust to use remote_supported_packet
3269 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
3270 "ConditionalTracepoints", "ConditionalBreakpoints",
3271 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
3272 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
3273 "EnableDisableTracepoints", and "tracenz".
3274 (remote_query_supported): Use packet_support.
3275 (remote_open_1): Adjust.
3276 (extended_remote_attach_1): Use packet_support. Switch on the
3277 result of packet_ok instead of checking whether the packet ended
3279 (remote_vcont_resume): Use packet_support.
3280 (remote_resume, remote_stop_ns, fetch_register_using_p)
3281 (remote_prepare_to_store, store_register_using_P)
3282 (check_binary_download, remote_write_bytes): Use packet_support.
3283 (remote_vkill): Use packet_support. Switch on the result of
3284 packet_ok instead of checking whether the packet ended up
3286 (extended_remote_supports_disable_randomization): Use
3288 (extended_remote_run): Switch on the result of packet_ok instead
3289 of checking whether the packet ended up disabled.
3290 (remote_insert_breakpoint, remote_remove_breakpoint)
3291 (remote_insert_watchpoint, remote_remove_watchpoint)
3292 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
3294 (remote_search_memory): Use packet_config_support.
3295 (remote_get_thread_local_address, remote_get_tib_address)
3296 (remote_hostio_send_command, remote_can_execute_reverse): Use
3298 (remote_supports_cond_tracepoints)
3299 (remote_supports_cond_breakpoints)
3300 (remote_supports_fast_tracepoints)
3301 (remote_supports_static_tracepoints)
3302 (remote_supports_install_in_trace)
3303 (remote_supports_enable_disable_tracepoint)
3304 (remote_supports_string_tracing)
3305 (remote_can_run_breakpoint_commands): Rewrite, checking whether
3306 the packet config says the feature is enabled or disabled.
3307 (remote_download_tracepoint, remote_trace_set_readonly_regions)
3308 (remote_get_trace_status): Use packet_support.
3309 (remote_set_disconnected_tracing): Adjust to check whether the
3310 feature is enabled with packet_support.
3311 (remote_set_trace_buffer_size, remote_use_agent)
3312 (remote_can_use_agent, remote_supports_btrace): Use
3314 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
3315 Use packet_config_support.
3316 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
3317 the packet config says the feature is enabled or disabled.
3318 (set_range_stepping): Use packet_support.
3320 2014-04-25 Tom Tromey <tromey@redhat.com>
3322 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
3325 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
3327 * NEWS: Mention support for C99 variable length arrays.
3329 2014-04-24 Joel Brobecker <brobecker@adacore.com>
3331 * ada-lang.c (standard_exc): Expand introductory comment.
3333 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
3334 Walfred Tedeschi <walfred.tedeschi@intel.com>
3336 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
3338 (amd64_linux_read_description): Add code to handle AVX512 xstate
3339 mask and return respective tdesc.
3340 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
3341 and features/i386/x32-avx512-linux.c.
3342 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
3343 (amd64_linux_core_read_description): Add code to handle AVX512
3344 xstate mask and return respective tdesc.
3345 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
3346 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
3348 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
3349 (tdesc_amd64_avx512_linux): New prototype.
3350 (tdesc_x32_avx512_linux): Likewise.
3351 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
3352 features/i386/x32-avx512.c.
3353 (amd64_ymm_avx512_names): New register names for pseudo
3355 (amd64_ymmh_avx512_names): New register names for raw registers
3357 (amd64_k_names): New register names for K registers.
3358 (amd64_zmmh_names): New register names for ZMM raw registers.
3359 (amd64_zmm_names): New registers names for ZMM pseudo registers.
3360 (amd64_xmm_avx512_names): New register names for XMM16-31
3362 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
3364 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
3365 if feature is present.
3366 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
3367 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
3368 (AMD64_NUM_REGS): Adjust to new number of registers.
3369 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
3370 registers supplied via XSTATE by AVX512 registers.
3371 (i386_linux_read_description): Add case for AVX512.
3372 * i386-linux-tdep.c: Include i386-avx512-linux.c.
3373 (i386_linux_gregset_reg_offset): Add AVX512 registers.
3374 (i386_linux_core_read_description): Add case for AVX512.
3375 (i386_linux_init_abi): Install supported register note section
3377 (_initialize_i386_linux_tdep): Add call to tdesc init function for
3379 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
3380 registers to be number of zmm7h + 1.
3381 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
3382 * i386-tdep.c: Include features/i386/i386-avx512.c.
3383 (i386_zmm_names): Add ZMM pseudo register names array.
3384 (i386_zmmh_names): Add ZMM raw register names array.
3385 (i386_k_names): Add K raw register names array.
3386 (num_lower_zmm_regs): Add constant for the number of lower ZMM
3387 registers. AVX512 has 16 more ZMM registers than there are YMM
3389 (i386_zmmh_regnum_p): Add function to look up register number of
3391 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
3392 (i386_k_regnum_p): Likewise for K raw registers.
3393 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
3394 registers added by AVX512.
3395 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
3396 registers added by AVX512.
3397 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
3399 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
3400 (i386_pseudo_register_name): Add ZMM pseudo registers.
3401 (i386_zmm_type): Construct and return vector registers type for ZMM
3403 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
3404 ZMM0-31 pseudo registers and K registers.
3405 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
3406 and YMM16-31 registers from register cache.
3407 (i386_pseudo_register_write): Add code to write K, ZMM and
3409 (i386_register_reggroup_p): Add code to include/exclude AVX512
3410 registers in/from respective register groups.
3411 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
3412 registers if feature is present in xcr0.
3413 (i386_gdbarch_init): Add code to initialize AVX512 feature
3414 variables in tdep structure, wire in pseudo registers and call
3415 initialize_tdesc_i386_avx512.
3416 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
3418 (i386_regnum): Add AVX512 registers.
3419 (I386_SSE_NUM_REGS): New define for number of SSE registers.
3420 (I386_AVX_NUM_REGS): Likewise for AVX registers.
3421 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
3422 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
3424 (i386_xmm_avx512_regnum_p): New prototype for register look up.
3425 (i386_ymm_avx512_regnum_p): Likewise.
3426 (i386_k_regnum_p): Likewise.
3427 (i386_zmm_regnum_p): Likewise.
3428 (i386_zmmh_regnum_p): Likewise.
3429 * i387-tdep.c : Update year in copyright notice.
3430 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
3432 (XSAVE_YMM_AVX512_ADDR): New macro.
3433 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
3435 (XSAVE_XMM_AVX512_ADDR): New macro.
3436 (xsave_avx512_k_offset): New table for K register offsets in
3438 (XSAVE_AVX512_K_ADDR): New macro.
3439 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
3441 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
3442 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
3444 (i387_collect_xsave): Add code to collect AVX512 registers from
3446 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
3447 of XMM16-31 registers.
3448 (I387_NUM_K_REGS): New define for number of K registers.
3449 (I387_K0_REGNUM): New define for K0 register number.
3450 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
3451 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
3452 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
3454 (I387_YMM16H_REGNUM): New define for YMM16H register number.
3455 (I387_XMM16_REGNUM): New define for XMM16 register number.
3456 (I387_YMM0_REGNUM): New define for YMM0 register number.
3457 (I387_KEND_REGNUM): New define for last K register number.
3458 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
3459 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
3461 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
3463 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
3465 * features/Makefile: Add AVX512 related files.
3466 * features/i386/32bit-avx512.xml: New file.
3467 * features/i386/64bit-avx512.xml: Likewise.
3468 * features/i386/amd64-avx512-linux.c: Likewise.
3469 * features/i386/amd64-avx512-linux.xml: Likewise.
3470 * features/i386/amd64-avx512.c: Likewise.
3471 * features/i386/amd64-avx512.xml: Likewise.
3472 * features/i386/i386-avx512-linux.c: Likewise.
3473 * features/i386/i386-avx512-linux.xml: Likewise.
3474 * features/i386/i386-avx512.c: Likewise.
3475 * features/i386/i386-avx512.xml: Likewise.
3476 * features/i386/x32-avx512-linux.c: Likewise.
3477 * features/i386/x32-avx512-linux.xml: Likewise.
3478 * features/i386/x32-avx512.c: Likewise.
3479 * features/i386/x32-avx512.xml: Likewise.
3480 * regformats/i386/amd64-avx512-linux.dat: New file.
3481 * regformats/i386/amd64-avx512.dat: Likewise.
3482 * regformats/i386/i386-avx512-linux.dat: Likewise.
3483 * regformats/i386/i386-avx512.dat: Likewise.
3484 * regformats/i386/x32-avx512-linux.dat: Likewise.
3485 * regformats/i386/x32-avx512.dat: Likewise.
3486 * NEWS: Add note about new support for AVX512.
3489 2014-04-23 Pedro Alves <palves@redhat.com>
3491 * breakpoint.c (insert_bp_location): Tolerate errors if the
3492 breakpoint is set in a user-loaded objfile.
3493 (remove_breakpoint_1): Likewise. Also tolerate errors if the
3494 location is marked shlib_disabled. If the breakpoint is set in a
3495 user-loaded objfile is a GDB-side memory breakpoint, validate it
3496 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
3497 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
3499 * mem-break.c (memory_validate_breakpoint): New function.
3500 * objfiles.c (userloaded_objfile_contains_address_p): New
3502 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
3503 * target.h (memory_validate_breakpoint): New declaration.
3505 2014-04-23 Pedro Alves <palves@redhat.com>
3507 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
3508 the breakpoint is set in a shared library, only suppress
3509 errors for software breakpoints, not hardware breakpoints.
3511 2014-04-22 Pedro Alves <palves@redhat.com>
3513 * infrun.c (schedlock_applies): New function, factored out from
3514 find_thread_needs_step_over.
3515 (find_thread_needs_step_over): Use it.
3516 (switch_back_to_stepped_thread): Always clear trap_expected if the
3517 step over is finished. Return early if scheduler locking applies.
3518 Look for the stepping thread and a potential step-over thread with
3520 (currently_stepping_or_nexting_callback): Delete.
3522 2014-04-22 Nick Clifton <nickc@redhat.com>
3524 * NEWS: Mention that ARM sim now supports tracing.
3526 2014-04-22 Yao Qi <yao@codesourcery.com>
3528 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
3530 * tracefile.c (tracefile_fetch_registers): ... it. New
3532 * tracefile.h (tracefile_fetch_registers): Declare.
3533 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
3534 tracefile_fetch_registers.
3536 2014-04-19 Eli Zaretskii <eliz@gnu.org>
3539 * windows-nat.c (thread_rec): Don't display a warning when
3540 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
3541 fails for any reason, set th->suspended to -1, so that we don't
3542 try to resume such a thread. Also, don't return NULL in these
3543 cases, to avoid completely ruin the session due to "PC register is
3544 not available" error.
3545 (do_windows_fetch_inferior_registers): Check errors in
3546 GetThreadContext call.
3547 (windows_continue): Accept an additional argument KILLED; if not
3548 zero, ignore errors in the SetThreadContext call, since the
3549 inferior was killed and is shutting down.
3550 (windows_resume, get_windows_debug_event)
3551 (windows_create_inferior, windows_mourn_inferior)
3552 (windows_kill_inferior): All callers of windows_continue changed
3553 to adjust to its new calling sequence.
3555 2014-04-19 Yao Qi <yao@codesourcery.com>
3557 * ctf.c (ctf_open): Call post_create_inferior.
3559 2014-04-19 Yao Qi <yao@codesourcery.com>
3561 * ctf.c (handle_id): New static variable.
3562 (ctf_open_dir): Get handle_id from bt_context_add_trace return
3563 value. Get the declaration of event "register" and get length
3564 of field "contents".
3566 2014-04-19 Yao Qi <yao@codesourcery.com>
3568 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
3570 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
3572 * valops.c (oload_method_static): Remove unnecessary argument
3573 METHOD. Update all callers.
3575 2014-04-18 Pedro alves <palves@redhat.com>
3576 Tom Tromey <tromey@redhat.com>
3579 * frame.c (get_prev_frame_1): Rename to ...
3580 (get_prev_frame_always): ... this, and make extern. Adjust.
3581 (skip_artificial_frames): Use get_prev_frame_always.
3582 (frame_unwind_caller_id, frame_pop, get_prev_frame)
3583 (get_frame_unwind_stop_reason): Adjust to rename.
3584 * frame.h (get_prev_frame_always): Declare.
3585 * inline-frame.c: Include frame.h.
3586 (inline_frame_this_id): Use get_prev_frame_always.
3588 2014-04-18 Tristan Gingold <gingold@adacore.com>
3590 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
3591 code by using bfd_mach_o_get_base_address.
3593 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
3595 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
3596 (spu_ax_pseudo_register_collect): New function.
3597 (spu_ax_pseudo_register_push_stack): Likewise.
3598 (spu_dwarf_reg_to_regnum): Likewise.
3599 (spu_gdbarch_init): Install them. Append DWARF unwinders.
3601 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
3603 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
3604 Replace FRAME argument with FRAME_ID.
3605 * gdbarch.c, gdbarch.h: Regenerate.
3606 * findvar.c (default_value_from_register): Add GDBARCH argument;
3607 replace FRAME by FRAME_ID. No longer call get_frame_id.
3608 (value_from_register): Update call to gdbarch_value_from_register.
3609 * value.h (default_value_from_register): Update prototype.
3610 * s390-linux-tdep.c (s390_value_from_register): Update interface
3611 and call to default_value_from_register.
3612 * spu-tdep.c (spu_value_from_register): Likewise.
3614 * findvar.c (address_from_register): Remove TYPE argument.
3615 Do not call value_from_register; use gdbarch_value_from_register
3616 with null_frame_id instead.
3617 * value.h (address_from_register): Update prototype.
3618 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
3619 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
3620 address_from_register interface change.
3622 2014-04-17 Yao Qi <yao@codesourcery.com>
3624 * gdbtypes.h: Update comments to link to types and macros'
3627 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
3629 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
3631 2014-04-16 Keith Seitz <keiths@redhat.com>
3634 * dwarf2read.c (skip_one_die): Check that all relative-offset
3635 sibling DIEs fall within range of the current reader's buffer.
3636 (read_partial_die): Likewise.
3638 2014-04-16 Keith Seitz <keiths@redhat.com>
3641 * cp-namespace.c (lookup_symbol_file): If the type name of
3642 `this' is NULL, return immediately.
3644 2014-04-14 Keith Seitz <keiths@redhat.com>
3647 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
3648 from symbol_matches_domain in symtab.c. All local callers
3649 of symbol_matches_domain updated.
3650 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
3651 search STRUCT_DOMAIN.
3652 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
3653 independently. standard_lookup will do that automatically.
3654 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
3655 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3656 (cp_lookup_symbol_in_namespace): Likewise.
3657 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
3658 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
3659 may return a STRUCT_DOMAIN match.
3660 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
3661 * cp-support.c: Include language.h.
3662 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
3664 * psymtab.c (match_partial_symbol): Compare the requested
3665 domain with the symbol's domain directly.
3666 (lookup_partial_symbol): Likewise.
3667 * symtab.c (lookup_symbol_in_language): Explain when/why
3668 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3669 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
3670 appropriate languages.
3671 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
3672 and moved to ada-lang.c
3673 (lookup_block_symbol): Explain that this function only returns
3674 symbol matching the requested DOMAIN.
3675 Compare the requested domain with the symbol's domain directly.
3676 (iterate_over_symbols): Compare the requested domain with the
3677 symbol's domain directly.
3678 * symtab.h (symbol_matches_domain): Remove.
3680 2014-04-14 Tom Tromey <tromey@redhat.com>
3683 * c-exp.y (type_aggregate_p): New function.
3684 (qualified_name, classify_inner_name): Use it.
3685 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
3686 and TYPE_TARGET_TYPE of an enum type.
3687 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
3689 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
3690 handle TYPE_DECLARED_CLASS.
3691 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
3693 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
3694 * valops.c (enum_constant_from_type): New function.
3695 (value_aggregate_elt): Use it.
3696 * cp-namespace.c (cp_lookup_nested_symbol): Handle
3699 2014-04-14 Tom Tromey <tromey@redhat.com>
3701 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
3702 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
3704 * value.h (value_aggregate_elt): Update.
3706 2014-04-14 Tom Tromey <tromey@redhat.com>
3708 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
3710 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3712 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
3713 (evaluate_subexp_standard): Pass noside argument.
3714 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
3715 if noside equals EVAL_NORMAL. If the subscript yields a vla type
3716 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
3717 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
3718 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
3720 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3722 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
3723 points to a constant blob.
3725 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3727 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
3728 property and store it as the high bound and flag the range accordingly.
3729 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
3730 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
3731 * gdbtypes.h (enum range_flags): New enum.
3732 (struct range_bounds): Add flags member.
3734 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3736 * c-typeprint.c (c_type_print_varspec_suffix): Added
3737 check for not yet resolved high bound. If unresolved, print
3738 "variable length" string to the console instead of random
3741 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3743 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
3745 (ada_template_to_fixed_record_type_1): Likewise.
3746 (ada_to_fixed_type_1): Likewise.
3747 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
3748 (cp_print_value): Likewise.
3749 * d-valprint.c (dynamic_array_type): Likewise.
3750 * findvar.c (address_of_variable): Likewise.
3751 * jv-valprint.c (java_value_print): Likewise.
3752 * valops.c (value_ind): Likewise.
3753 * value.c (coerce_ref): Likewise.
3755 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3757 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
3758 value and retrieve the dynamic type size.
3760 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3762 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
3763 passed to sizeof is dynamic evaluate the argument to compute the length.
3765 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3766 Joel Brobecker <brobecker@adacore.com>
3768 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
3769 (dwarf2_evaluate_property): New function.
3770 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
3771 * dwarf2read.c (attr_to_dynamic_prop): New function.
3772 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
3774 * gdbtypes.c: Include dwarf2loc.h.
3775 (is_dynamic_type): New function.
3776 (resolve_dynamic_type): New function.
3777 (resolve_dynamic_bounds): New function.
3778 (get_type_length): New function.
3779 (check_typedef): Use get_type_length to compute type length.
3780 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
3781 (TYPE_LOW_BOUND_KIND): New macro.
3782 (is_dynamic_type): New function prototype.
3783 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
3784 to resolve dynamic properties of the type. Update comment.
3785 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
3787 2014-04-14 Richard Henderson <rth@redhat.com>
3789 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
3791 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
3792 Doug Evans <xdje42@gmail.com>
3794 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
3795 dereference TYPE_CODE_REF values.
3797 2014-04-11 Joel Brobecker <brobecker@adacore.com>
3799 Revert the following changes due to regressions:
3801 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
3802 (dwarf2_evaluate_property): New function.
3803 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
3804 * dwarf2read.c (attr_to_dynamic_prop): New function.
3805 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
3807 * gdbtypes.c: Include dwarf2loc.h.
3808 (is_dynamic_type): New function.
3809 (resolve_dynamic_type): New function.
3810 (resolve_dynamic_bounds): New function.
3811 (get_type_length): New function.
3812 (check_typedef): Use get_type_length to compute type length.
3813 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
3814 (TYPE_LOW_BOUND_KIND): New macro.
3815 (is_dynamic_type): New function prototype.
3816 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
3817 to resolve dynamic properties of the type. Update comment.
3818 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
3820 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
3821 passed to sizeof is dynamic evaluate the argument to compute the length.
3823 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
3824 value and retrieve the dynamic type size.
3826 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
3827 (ada_template_to_fixed_record_type_1): Likewise.
3828 (ada_to_fixed_type_1): Likewise.
3829 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
3830 (cp_print_value): Likewise.
3831 * d-valprint.c (dynamic_array_type): Likewise.
3832 * eval.c (evaluate_subexp_with_coercion): Likewise.
3833 * findvar.c (address_of_variable): Likewise.
3834 * jv-valprint.c (java_value_print): Likewise.
3835 * valops.c (value_ind): Likewise.
3836 * value.c (coerce_ref): Likewise.
3838 * c-typeprint.c (c_type_print_varspec_suffix): Added
3839 check for not yet resolved high bound. If unresolved, print
3840 "variable length" string to the console instead of random
3843 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
3844 property and store it as the high bound and flag the range accordingly.
3845 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
3846 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
3847 * gdbtypes.h (enum range_flags): New enum.
3848 (struct range_bounds): Add flags member.
3850 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
3851 points to a constant blob.
3853 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
3854 (evaluate_subexp_standard): Pass noside argument.
3855 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
3856 if noside equals EVAL_NORMAL. If the subscript yields a vla type
3857 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
3858 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
3859 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
3861 2014-04-11 Keith Seitz <keiths@redhat.com>
3864 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
3865 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
3868 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3870 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
3871 (evaluate_subexp_standard): Pass noside argument.
3872 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
3873 if noside equals EVAL_NORMAL. If the subscript yields a vla type
3874 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
3875 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
3876 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
3878 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3880 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
3881 points to a constant blob.
3883 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3885 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
3886 property and store it as the high bound and flag the range accordingly.
3887 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
3888 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
3889 * gdbtypes.h (enum range_flags): New enum.
3890 (struct range_bounds): Add flags member.
3892 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3894 * c-typeprint.c (c_type_print_varspec_suffix): Added
3895 check for not yet resolved high bound. If unresolved, print
3896 "variable length" string to the console instead of random
3899 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3901 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
3902 (ada_template_to_fixed_record_type_1): Likewise.
3903 (ada_to_fixed_type_1): Likewise.
3904 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
3905 (cp_print_value): Likewise.
3906 * d-valprint.c (dynamic_array_type): Likewise.
3907 * eval.c (evaluate_subexp_with_coercion): Likewise.
3908 * findvar.c (address_of_variable): Likewise.
3909 * jv-valprint.c (java_value_print): Likewise.
3910 * valops.c (value_ind): Likewise.
3911 * value.c (coerce_ref): Likewise.
3913 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3915 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
3916 value and retrieve the dynamic type size.
3918 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3920 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
3921 passed to sizeof is dynamic evaluate the argument to compute the length.
3923 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3925 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
3926 (dwarf2_evaluate_property): New function.
3927 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
3928 * dwarf2read.c (attr_to_dynamic_prop): New function.
3929 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
3931 * gdbtypes.c: Include dwarf2loc.h.
3932 (is_dynamic_type): New function.
3933 (resolve_dynamic_type): New function.
3934 (resolve_dynamic_bounds): New function.
3935 (get_type_length): New function.
3936 (check_typedef): Use get_type_length to compute type length.
3937 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
3938 (TYPE_LOW_BOUND_KIND): New macro.
3939 (is_dynamic_type): New function prototype.
3940 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
3941 to resolve dynamic properties of the type. Update comment.
3942 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
3944 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3946 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
3947 declaring high/low bounds and change uses accordingly. Call
3948 create_range_type instead of create_static_range_type.
3949 * gdbtypes.c (create_range_type): New function.
3950 (create_range_type): Convert bounds into struct bound_prop and pass
3951 them to create_range_type.
3952 * gdbtypes.h (struct bound_prop): New struct.
3953 (create_range_type): New function prototype.
3954 (struct range_bounds): Use struct bound_prop instead of LONGEST for
3955 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
3956 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
3958 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
3960 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3962 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
3963 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
3964 * ada-lang.c: All uses of create_range_type updated.
3965 * coffread.c: All uses of create_range_type updated.
3966 * dwarf2read.c: All uses of create_range_type updated.
3967 * f-exp.y: All uses of create_range_type updated.
3968 * m2-valprint.c: All uses of create_range_type updated.
3969 * mdebugread.c: All uses of create_range_type updated.
3970 * stabsread.c: All uses of create_range_type updated.
3971 * valops.c: All uses of create_range_type updated.
3972 * valprint.c: All uses of create_range_type updated.
3974 2014-04-10 Pedro Alves <palves@redhat.com>
3976 * breakpoint.c (single_step_breakpoints)
3977 (single_step_gdbarch): Move up in the file.
3978 (one_breakpoint_xfer_memory): New function, factored out from ...
3979 (breakpoint_xfer_memory): ... here. Also process single-step
3982 2014-04-09 Tristan Gingold <gingold@adacore.com>
3984 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
3986 (darwin_decode_exception_message): Free port only after use.
3988 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
3990 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
3991 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
3992 when setting the size of call_length.
3994 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
3996 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
3997 dereference TYPE_CODE_REF values.
3999 2014-04-07 Joel Brobecker <brobecker@adacore.com>
4001 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
4002 end of warning message.
4004 2014-04-03 Doug Evans <dje@google.com>
4006 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
4007 of stub_comp_unit_die, stub_comp_dir is non-NULL.
4009 2014-04-02 Alan Modra <amodra@gmail.com>
4011 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
4012 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
4013 (struct symbol_file_add_from_memory_args): Add size field.
4014 (find_vdso_size): New function.
4015 (add_vsyscall_page): Attempt to find vdso size.
4017 2014-04-01 Doug Evans <dje@google.com>
4019 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
4021 2014-04-01 Tristan Gingold <gingold@adacore.com>
4023 * darwin-nat.c (darwin_encode_reply): Add prototype.
4024 (darwin_decode_exception_message): Reply to unknown inferiors.
4025 (darwin_decode_message): Handle message by id. Ignore message
4026 to unknown inferior.
4027 (darwin_wait): Discard unknown messages, add debug trace.
4029 2014-03-31 Doug Evans <dje@google.com>
4031 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
4034 2014-03-31 Doug Evans <dje@google.com>
4036 New option "set print symbol-loading".
4038 * solib.c (solib_read_symbols): Only print symbol loading messages
4040 (solib_add): If symbol loading is in "brief" mode, notify user
4041 symbols are being loaded.
4042 (reload_shared_libraries_1): Ditto.
4043 * symfile.c (print_symbol_loading_off): New static global.
4044 (print_symbol_loading_brief): New static global.
4045 (print_symbol_loading_full): New static global.
4046 (print_symbol_loading_enums): New static global.
4047 (print_symbol_loading): New static global.
4048 (print_symbol_loading_p): New function.
4049 (symbol_file_add_with_addrs): Only print symbol loading messages
4051 (_initialize_symfile): Register "print symbol-loading" set/show
4053 * symfile.h (print_symbol_loading_p): Declare.
4055 2014-03-30 Doug Evans <xdje42@gmail.com>
4057 * infrun.c (set_last_target_status): New function.
4058 (handle_inferior_event): Call it.
4060 2014-03-30 Doug Evans <xdje42@gmail.com>
4062 * inferior.h (enum stop_kind): Improve comment.
4064 2014-03-28 Joel Brobecker <brobecker@adacore.com>
4066 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
4067 a reference, strip the reference layer before calling
4068 the lang_ops value_has_mutated callback.
4070 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
4072 Remove some globals from our parser.
4073 * language.c (unk_lang_parser): Add "struct parser_state"
4075 * language.h (struct language_defn) <la_parser>: Likewise.
4076 * parse.c (expout, expout_size, expout_ptr): Remove variables.
4077 (initialize_expout): Add "struct parser_state" argument.
4078 Rewrite function to use the parser state.
4079 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
4080 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
4081 write_exp_elt_longcst, write_exp_elt_dblcst,
4082 write_exp_elt_decfloatcst, write_exp_elt_type,
4083 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
4084 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
4085 write_dollar_variable): Likewise.
4086 (parse_exp_in_context_1): Use parser state.
4087 (insert_type_address_space): Add "struct parser_state" argument.
4089 (increase_expout_size): New function.
4090 * parser-defs.h: Forward declare "struct language_defn" and
4091 "struct parser_state".
4092 (expout, expout_size, expout_ptr): Remove extern declarations.
4093 (parse_gdbarch, parse_language): Rewrite macro declarations to
4094 accept the parser state.
4095 (struct parser_state): New struct.
4096 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
4097 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
4098 write_exp_elt_decfloatcst, write_exp_elt_type,
4099 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
4100 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
4101 write_exp_msymbol, write_dollar_variable,
4102 mark_struct_expression, insert_type_address_space): Add "struct
4103 parser_state" argument.
4104 (increase_expout_size): New function.
4105 * utils.c (do_clear_parser_state): New function.
4106 (make_cleanup_clear_parser_state): Likewise.
4107 * utils.h (make_cleanup_clear_parser_state): New function
4109 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
4110 Update calls to write_exp* in order to pass the parser state.
4111 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
4112 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
4113 (i386_stap_parse_special_token_three_arg_disp): Likewise.
4114 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
4115 * stap-probe.c (stap_parse_register_operand): Likewise.
4116 (stap_parse_single_operand): Likewise.
4117 (stap_parse_argument_1): Likewise.
4118 (stap_parse_argument): Use parser state.
4119 * stap-probe.h: Include "parser-defs.h".
4120 (struct stap_parse_info) <pstate>: New field.
4121 * c-exp.y (parse_type): Rewrite to use parser state.
4122 (yyparse): Redefine to c_parse_internal.
4123 (pstate): New global variable.
4124 (parse_number): Add "struct parser_state" argument.
4125 (write_destructor_name): Likewise.
4126 (type_exp): Update calls to write_exp* and similars in order to
4128 (exp1, exp, variable, qualified_name, space_identifier,
4129 typename, typebase): Likewise.
4130 (write_destructor_name, parse_number, lex_one_token,
4131 classify_name, classify_inner_name, c_parse): Add "struct
4132 parser_state" argument. Update function to use parser state.
4133 * c-lang.h: Forward declare "struct parser_state".
4134 (c_parse): Add "struct parser_state" argument.
4135 * ada-exp.y (parse_type): Rewrite macro to use parser state.
4136 (yyparse): Redefine macro to ada_parse_internal.
4137 (pstate): New variable.
4138 (write_int, write_object_renaming, write_var_or_type,
4139 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
4140 type_int, type_long, type_long_long, type_float, type_double,
4141 type_long_double, type_char, type_boolean, type_system_address):
4142 Add "struct parser_state" argument.
4143 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
4144 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
4145 var_or_type, aggregate, aggregate_component_list,
4146 positional_list, others, component_group,
4147 component_associations): Update calls to write_exp* and similar
4148 functions in order to use parser state.
4149 (ada_parse, write_var_from_sym, write_int,
4150 write_exp_op_with_string, write_object_renaming,
4151 find_primitive_type, write_selectors, write_ambiguous_var,
4152 write_var_or_type, write_name_assoc, type_int, type_long,
4153 type_long_long, type_float, type_double, type_long_double,
4154 type_char, type_boolean, type_system_address): Add "struct
4155 parser_state" argument. Adjust function to use parser state.
4156 * ada-lang.c (parse): Likewise.
4157 * ada-lang.h: Forward declare "struct parser_state".
4158 (ada_parse): Add "struct parser_state" argument.
4159 * ada-lex.l (processInt, processReal): Likewise. Adjust all
4160 calls to both functions.
4161 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
4163 (yyparse): Redefine macro to f_parse_internal.
4164 (pstate): New variable.
4165 (parse_number): Add "struct parser_state" argument.
4166 (type_exp, exp, subrange, typebase): Update calls to write_exp*
4167 and similars in order to use parser state.
4168 (parse_number): Adjust code to use parser state.
4170 (f_parse): New function.
4171 * f-lang.h: Forward declare "struct parser_state".
4172 (f_parse): Add "struct parser_state" argument.
4173 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
4175 (yyparse): Redefine macro for java_parse_internal.
4176 (pstate): New variable.
4177 (push_expression_name, push_expression_name, insert_exp): Add
4178 "struct parser_state" argument.
4179 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
4180 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
4181 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
4182 PostIncrementExpression, PostDecrementExpression,
4183 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
4184 UnaryExpressionNotPlusMinus, CastExpression,
4185 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
4186 RelationalExpression, EqualityExpression, AndExpression,
4187 ExclusiveOrExpression, InclusiveOrExpression,
4188 ConditionalAndExpression, ConditionalOrExpression,
4189 ConditionalExpression, Assignment, LeftHandSide): Update
4190 calls to write_exp* and similars in order to use parser state.
4191 (parse_number): Ajust code to use parser state.
4193 (java_parse): New function.
4194 (push_variable): Add "struct parser_state" argument. Adjust
4195 code to user parser state.
4196 (push_fieldnames, push_qualified_expression_name,
4197 push_expression_name, insert_exp): Likewise.
4198 * jv-lang.h: Forward declare "struct parser_state".
4199 (java_parse): Add "struct parser_state" argument.
4200 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
4202 (yyparse): Redefine macro to m2_parse_internal.
4203 (pstate): New variable.
4204 (type_exp, exp, fblock, variable, type): Update calls to
4205 write_exp* and similars to use parser state.
4207 (m2_parse): New function.
4208 * m2-lang.h: Forward declare "struct parser_state".
4209 (m2_parse): Add "struct parser_state" argument.
4210 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
4211 * objc-lang.h: Forward declare "struct parser_state".
4212 (end_msglist): Add "struct parser_state" argument.
4213 * p-exp.y (parse_type): Rewrite macro to use parser state.
4214 (yyparse): Redefine macro to pascal_parse_internal.
4215 (pstate): New variable.
4216 (parse_number): Add "struct parser_state" argument.
4217 (type_exp, exp1, exp, qualified_name, variable): Update calls to
4218 write_exp* and similars in order to use parser state.
4219 (parse_number, yylex): Adjust code to use parser state.
4220 (pascal_parse): New function.
4221 * p-lang.h: Forward declare "struct parser_state".
4222 (pascal_parse): Add "struct parser_state" argument.
4223 * go-exp.y (parse_type): Rewrite macro to use parser state.
4224 (yyparse): Redefine macro to go_parse_internal.
4225 (pstate): New variable.
4226 (parse_number): Add "struct parser_state" argument.
4227 (type_exp, exp1, exp, variable, type): Update calls to
4228 write_exp* and similars in order to use parser state.
4229 (parse_number, lex_one_token, classify_name, yylex): Adjust code
4230 to use parser state.
4231 (go_parse): Likewise.
4232 * go-lang.h: Forward declare "struct parser_state".
4233 (go_parse): Add "struct parser_state" argument.
4235 2014-03-27 Doug Evans <dje@google.com>
4237 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
4239 2014-03-27 Doug Evans <dje@google.com>
4241 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
4242 Remove argument abbrev_section. All callers updated.
4244 2014-03-27 Doug Evans <dje@google.com>
4246 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
4247 addr_base, ranges_base.
4249 2014-03-26 Keith Seitz <keiths@redhat.com>
4251 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
4252 types, not VAR_DOMAIN.
4254 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
4256 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
4258 * features/nios2-linux.c: Regenerated.
4259 * features/nios2.c: Regenerated.
4261 2014-03-25 Pedro Alves <palves@redhat.com>
4263 * cli/cli-script.c (script_from_file): Force the interpreter to
4266 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
4268 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
4269 small stack allocation.
4271 2014-03-24 Tristan Gingold <gingold@adacore.com>
4273 * darwin-nat.c (exc_server): Remove unused prototype.
4274 (darwin_dump_message): Correctly display data on x86_64.
4275 (darwin_encode_reply): Fix style.
4276 Add comments and fix indentation.
4278 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
4280 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
4282 2014-03-22 Doug Evans <xdje42@gmail.com>
4284 * infcmd.c: Whitespace fixes.
4285 (interrupt_command): Merge two function comments into one.
4287 2014-03-22 Doug Evans <xdje42@gmail.com>
4289 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
4292 2014-03-22 Yao Qi <yao@codesourcery.com>
4294 * remote.c (target_read_live_memory): Remove.
4295 (memory_xfer_live_readonly_partial): Rename it to
4296 remote_xfer_live_readonly_partial. Remove argument 'object'.
4297 All callers updated. Call remote_read_bytes_1
4298 instead of target_read_live_memory.
4299 * tracepoint.c (set_traceframe_number): Remove.
4300 (make_cleanup_restore_traceframe_number): Likewise .
4301 * tracepoint.h (set_traceframe_number): Remove declaration.
4302 (make_cleanup_restore_traceframe_number): Likewise.
4304 2014-03-22 Yao Qi <yao@codesourcery.com>
4306 * remote.c (remote_read_bytes): Move code on reading from the
4308 (remote_read_bytes_1): ... here. New function.
4310 2014-03-22 Yao Qi <yao@codesourcery.com>
4312 * ctf.c (ctf_xfer_partial): Check the return value of
4313 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
4314 return TARGET_XFER_UNAVAILABLE.
4315 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
4316 * target.c (target_read_live_memory): Move it to remote.c.
4317 (memory_xfer_live_readonly_partial): Likewise.
4318 (memory_xfer_partial_1): Move some code to remote_read_bytes.
4319 * remote.c (target_read_live_memory): Moved from target.c.
4320 (memory_xfer_live_readonly_partial): Likewise.
4321 (remote_read_bytes): Factored out from
4322 memory_xfer_partial_1.
4324 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
4326 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
4329 2014-03-21 Pedro Alves <palves@redhat.com>
4331 * infrun.c (normal_stop): Extend comment.
4333 2014-03-21 Hui Zhu <hui@codesourcery.com>
4334 Pedro Alves <palves@redhat.com>
4336 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
4338 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
4339 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
4340 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
4342 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
4344 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
4345 `z' formatted output modifier.
4347 2014-03-20 Tom Tromey <tromey@redhat.com>
4348 Sergio Durigan Junior <sergiodj@redhat.com>
4350 * probe.c (parse_probes): Turn assert into an ordinary error.
4351 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
4352 exceptions when parsing probes. Rearrange the code for clarity.
4354 2014-03-20 Tom Tromey <tromey@redhat.com>
4357 * top.c (execute_command): Only dispatch events if the command
4360 2014-03-20 Tom Tromey <tromey@redhat.com>
4363 * infcall.c: Include event-top.h.
4364 (run_inferior_call): Call async_disable_stdin if needed.
4366 2014-03-20 Pedro Alves <palves@redhat.com>
4368 * infrun.c (prepare_to_proceed): Delete.
4369 (thread_still_needs_step_over): New function.
4370 (find_thread_needs_step_over): New function.
4371 (proceed): If the current thread needs a step-over, set its
4372 steping_over_breakpoint flag. Adjust to use
4373 find_thread_needs_step_over instead of prepare_to_proceed.
4374 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
4375 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
4377 (switch_back_to_stepped_thread): Step over breakpoints of all
4378 threads not the stepping thread, before switching back to the
4381 2014-03-20 Pedro Alves <palves@redhat.com>
4383 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
4385 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
4386 * infrun.c (saved_singlestep_ptid)
4387 (stepping_past_singlestep_breakpoint): Delete.
4388 (resume): Remove stepping_past_singlestep_breakpoint handling.
4389 (proceed): Store the prev_pc of the stepping thread too.
4390 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
4392 (enum infwait_states): Delete infwait_thread_hop_state.
4393 (struct execution_control_state) <hit_singlestep_breakpoint>: New
4395 (handle_inferior_event): Adjust.
4396 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
4397 handling and the thread-hop code. Before removing single-step
4398 breakpoints, check whether the thread hit a single-step breakpoint
4399 of another thread. If it did, the trap is not a random signal.
4400 (switch_back_to_stepped_thread): If the event thread hit a
4401 single-step breakpoint, unblock it before switching to the
4402 stepping thread. Handle the case of the stepped thread having
4404 (keep_going): Handle the case of the current thread moving past a
4405 single-step breakpoint.
4407 2014-03-20 Pedro Alves <palves@redhat.com>
4410 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
4411 are being stepped over.
4412 (breakpoint_address_match): Make extern.
4413 * breakpoint.h (breakpoint_address_match): New declaration.
4414 * inferior.h (stepping_past_instruction_at): New declaration.
4415 * infrun.c (struct step_over_info): New type.
4416 (step_over_info): New global.
4417 (set_step_over_info, clear_step_over_info)
4418 (stepping_past_instruction_at): New functions.
4419 (handle_inferior_event): Clear the step-over info when
4420 trap_expected is cleared.
4421 (resume): Remove now stale comment.
4422 (clear_proceed_status): Clear step-over info.
4423 (proceed): Adjust step-over handling to set or clear the step-over
4424 info instead of removing all breakpoints.
4425 (handle_signal_stop): When setting up a thread-hop, don't remove
4427 (stop_stepping): Clear step-over info.
4428 (keep_going): Adjust step-over handling to set or clear step-over
4429 info and then always inserting breakpoints, instead of removing
4430 all breakpoints when stepping over one.
4432 2014-03-20 Pedro Alves <palves@redhat.com>
4434 * infrun.c (previous_inferior_ptid): Adjust comment.
4435 (deferred_step_ptid): Delete.
4436 (infrun_thread_ptid_changed, prepare_to_proceed)
4437 (init_wait_for_inferior): Adjust.
4438 (handle_signal_stop): Delete deferred_step_ptid handling.
4440 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4443 * defs.h (sync_quit_force_run): New declaration.
4444 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
4445 * event-top.c (async_sigterm_handler): New declaration.
4446 (async_sigterm_token): New variable.
4447 (async_init_signals): Create also async_sigterm_token.
4448 (async_sigterm_handler): New function.
4449 (sync_quit_force_run): New variable.
4450 (handle_sigterm): Replace quit_force call by other calls.
4451 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
4453 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
4455 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
4456 offset into SPE pseudo registers.
4458 2014-03-18 Pedro Alves <palves@redhat.com>
4461 * inferior.h (print_stop_event): Declare.
4462 * infrun.c (print_stop_event): New, factored out from ...
4463 (normal_stop): ... this.
4464 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
4465 of bpstat_print/print_stack_frame.
4467 2014-03-17 Tom Tromey <tromey@redhat.com>
4469 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
4471 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
4473 * ada-lang.c (decode_constrained_packed_array): Perform a
4474 minimal coercion for reference with coerce_ref instead of
4477 2014-03-17 Tristan Gingold <gingold@adacore.com>
4479 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
4480 (darwin_solib_create_inferior_hook): Emit a warning if version
4483 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
4485 * python/py-value.c (get_field_flag): Cast flag_name argument to
4486 PyObject_GetAttrString to support Python 2.4.
4488 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
4490 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
4491 (Global Maintainers): Remove Jan Kratochvil.
4493 2014-03-14 Pedro Alves <palves@redhat.com>
4495 * inferior.h (terminal_ours_for_output): Rename to ...
4496 (child_terminal_ours_for_output): ... this.
4497 (terminal_save_ours): Rename to ...
4498 (child_terminal_save_ours): ... this.
4499 (terminal_ours): Rename to ...
4500 (child_terminal_ours): ... this.
4501 (terminal_inferior): Rename to ...
4502 (child_terminal_inferior): ... this.
4503 (terminal_init_inferior): Rename to ...
4504 (child_terminal_init_inferior): ... this.
4505 (terminal_init_inferior_with_pgrp): Rename to ...
4506 (child_terminal_init_inferior_with_pgrp): ... this.
4507 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
4508 (child_terminal_init_with_pgrp): ... this.
4509 (terminal_save_ours): Rename to ...
4510 (child_terminal_save_ours): ... this.
4511 (terminal_init_inferior): Rename to ...
4512 (child_terminal_init): ... this. Adjust.
4513 (terminal_inferior): Rename to ...
4514 (child_terminal_inferior): ... this.
4515 (terminal_ours_for_output): Rename to ...
4516 (child_terminal_ours_for_output): ... this. Adjust.
4517 (terminal_ours): Rename to ...
4518 (child_terminal_ours): ... this.
4519 (terminal_ours_1): Rename to ...
4520 (child_terminal_ours_1): ... this. Adjust.
4521 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
4522 * windows-nat.c (do_initial_windows_stuff): Adjust.
4523 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
4524 (gnu_terminal_init): ... this. Adjust.
4525 (gnu_target): Adjust.
4526 * inf-child.c (inf_child_target): Adjust.
4528 2014-03-13 Doug Evans <xdje42@gmail.com>
4531 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
4534 2014-03-13 Doug Evans <xdje42@gmail.com>
4536 * value.c (record_latest_value): Call release_value_or_incref
4537 instead of release_value.
4539 2014-03-13 Pedro Alves <palves@redhat.com>
4541 * procfs.c (procfs_target): Don't override to_shortname,
4542 to_longname or to_doc.
4544 2014-03-13 Pedro Alves <palves@redhat.com>
4546 * inf-child.c (inf_child_open, inf_child_target): Don't mention
4547 Unix in user visible strings.
4549 2014-03-12 Stan Shebs <stan@codesourcery.com>
4551 * gdbtypes.h: Annotate comments for Doxygen, add a page
4552 block comment with some general info.
4554 2014-03-12 Pedro Alves <palves@redhat.com>
4556 * infcmd.c (prepare_execution_command): New function, factored out
4557 from several execution commands.
4558 (run_command_1, continue_command, step_1, jump_command)
4559 (signal_command, until_command, advance_command, finish_command)
4560 (attach_command): Use prepare_execution_command.
4562 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
4564 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
4567 (struct arm_linux_thread_points): Removed.
4568 (struct arm_linux_process_info): New.
4569 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
4570 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
4571 (arm_linux_find_breakpoints_by_tid): Removed.
4572 (struct arch_lwp_info): New.
4573 (arm_linux_find_process_pid): New functions.
4574 (arm_linux_add_process): New functions.
4575 (arm_linux_process_info_get): New functions.
4576 (arm_linux_forget_process): New function.
4577 (arm_linux_get_debug_reg_state): New function.
4578 (struct update_registers_data): New.
4579 (update_registers_callback): New function.
4580 (arm_linux_insert_hw_breakpoint1): Updated.
4581 (arm_linux_remove_hw_breakpoint1): Updated.
4582 (arm_linux_insert_hw_breakpoint): Updated.
4583 (arm_linux_remove_hw_breakpoint): Updated.
4584 (arm_linux_insert_watchpoint): Updated.
4585 (arm_linux_remove_watchpoint): Updated.
4586 (arm_linux_new_thread): Updated.
4587 (arm_linux_prepare_to_resume): New function.
4588 (arm_linux_new_fork): New function.
4589 (_initialize_arm_linux_nat): Updated.
4591 2014-03-12 Pedro Alves <palves@redhat.com>
4593 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
4595 2014-03-12 Tom Tromey <tromey@redhat.com>
4597 * inf-child.c (return_zero): New function.
4598 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
4599 * aix-thread.c (aix_thread_inferior_created): New function.
4600 (aix_thread_attach): Remove.
4601 (init_aix_thread_ops): Don't set to_attach.
4602 (_initialize_aix_thread): Register inferior_created observer.
4603 * corelow.c (init_core_ops): Don't set to_attach or
4605 * exec.c (init_exec_ops): Don't set to_attach or
4607 * infcmd.c (run_command_1): Use find_run_target. Make direct
4609 (attach_command): Use find_attach_target. Make direct target
4611 * record-btrace.c (init_record_btrace_ops): Don't set
4613 * record-full.c (record_full_can_async_p, record_full_is_async_p):
4615 (init_record_full_ops, init_record_full_core_ops): Update. Don't
4616 set to_create_inferior.
4617 * target.c (complete_target_initialization): Add assertion.
4618 (target_create_inferior): Remove.
4619 (find_default_attach, find_default_create_inferior): Remove.
4620 (find_attach_target, find_run_target): New functions.
4621 (find_default_is_async_p, find_default_can_async_p)
4622 (target_supports_non_stop, target_attach): Remove.
4623 (init_dummy_target): Don't set to_create_inferior or
4624 to_supports_non_stop.
4625 * target.h (struct target_ops) <to_attach>: Add comment. Remove
4626 TARGET_DEFAULT_FUNC.
4627 <to_create_inferior>: Add comment.
4628 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
4629 TARGET_DEFAULT_RETURN.
4630 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
4631 (find_attach_target, find_run_target): Declare.
4632 (target_create_inferior): Remove.
4633 (target_has_execution_1): Update comment.
4634 (target_supports_non_stop): Remove.
4635 * target-delegates.c: Rebuild.
4637 2014-03-12 Pedro Alves <palves@redhat.com>
4639 * inf-child.h: Update comment to not mention Unix.
4641 2014-03-12 Pedro Alves <palves@redhat.com>
4643 * inf-child.c: Update top comment to not mention Unix. Add
4644 generic comment describing how this target is meant to be used.
4645 (inf_child_post_attach, inf_child_post_startup_inferior)
4646 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
4649 2014-03-12 Pedro Alves <palves@redhat.com>
4651 * nto-procfs.c: Include inf-child.h.
4652 (procfs_ops): Delete global.
4653 (procfs_can_run): Delete method.
4654 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
4655 target pointer instead of referencing procfs_ops.
4656 (procfs_prepare_to_store): Delete.
4657 (init_procfs_ops): Delete function.
4658 (procfs_target): New function, based on init_procfs_ops, but
4659 inherit inf_child_target.
4660 (_initialize_procfs): Use procfs_target.
4662 2014-03-12 Pedro Alves <palves@redhat.com>
4664 * windows-nat.c: Include inf-child.h.
4665 (windows_ops): Delete global.
4666 (windows_open, windows_prepare_to_store, windows_can_run): Delete
4668 (init_windows_ops): Delete function.
4669 (windows_target): New function, based on init_windows_ops, but
4670 inherit inf_child_target.
4671 (_initialize_windows_nat): Use windows_target. Install x86
4672 specific target methods here.
4674 2014-03-10 Doug Evans <xdje42@gmail.com>
4676 * guile/guile.c (call_initialize_gdb_module): New function.
4677 (initialize_guile): Replace call to scm_init_guile with call to
4680 2014-03-10 Joel Brobecker <brobecker@adacore.com>
4682 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
4683 in call to TYPE_CODE macro.
4685 2014-03-10 Jerome Guitton <guitton@adacore.com>
4687 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
4688 Resolve tagged types to full view.
4690 2014-03-10 Hui Zhu <hui@codesourcery.com>
4692 * target.h (target_insert_breakpoint): Remove "hardware" from its
4695 2014-03-07 Doug Evans <dje@google.com>
4697 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
4699 2014-03-07 Doug Evans <dje@google.com>
4701 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
4702 Remove unused local comp_dir_attr. Assert exactly one of
4703 stub_comp_unit_die, stub_comp_dir is non-NULL.
4705 2014-03-07 Joel Brobecker <brobecker@adacore.com>
4707 * target.h (complete_target_initialization, add_target):
4710 2014-03-07 Pedro Alves <palves@redhat.com>
4712 * go32-nat.c: Include inf-child.h.
4713 (go32_ops): Delete global.
4714 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
4716 (go32_create_inferior): Push the passed in target pointer instead
4717 of referencing go32_ops.
4718 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
4719 (go32_target): New function, based on init_go32_ops, but inherit
4721 (_initialize_go32_nat): Use go32_target. Move parts of
4724 2014-03-06 Joel Brobecker <brobecker@adacore.com>
4726 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
4727 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
4728 SYMBOL_VALUE_ADDRESS.
4729 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
4731 2014-03-06 Yao Qi <yao@codesourcery.com>
4733 * breakpoint.c (get_tracepoint_by_number): Remove argument
4734 optional_p. All callers updated. Adjust comments. Update
4736 * breakpoint.h (get_tracepoint_by_number): Update declaration.
4738 2014-03-06 Yao Qi <yao@codesourcery.com>
4740 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
4741 early if get_number returns zero. Use 'p' instead of 'args'.
4743 2014-03-06 Yao Qi <yao@codesourcery.com>
4745 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
4748 2014-03-06 Yao Qi <yao@codesourcery.com>
4750 PR breakpoints/16508
4751 * tracepoint.c (check_trace_running): New function.
4752 (trace_find_command): Move code to check_trace_running and
4753 call check_trace_running.
4754 (trace_find_pc_command): Likewise.
4755 (trace_find_tracepoint_command): Likewise.
4756 (trace_find_line_command): Likewise.
4757 (trace_find_range_command): Likewise.
4758 * tracepoint.h (check_trace_running): Likewise.
4759 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
4761 2014-03-06 Yao Qi <yao@codesourcery.com>
4763 * target.h (struct target_ops) <to_traceframe_info>: Use
4764 TARGET_DEFAULT_NORETURN (tcomplain ()).
4765 * target-delegates.c: Regenerated.
4767 2014-03-05 Pedro Alves <palves@redhat.com>
4770 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
4771 void. Update comment.
4772 (dcache_xfer_memory): Delete.
4773 (dcache_read_memory_partial): New, based on the read bits of
4775 (dcache_update): Add status parameter. Use ULONGEST for len, and
4776 adjust. Discard cache lines if the reason for the update was
4778 * dcache.h (dcache_xfer_memory): Delete declaration.
4779 (dcache_read_memory_partial): New declaration.
4780 (dcache_update): Update prototype.
4781 * target.c (raw_memory_xfer_partial): Update the dcache here.
4782 (memory_xfer_partial_1): Don't handle dcache writes here.
4784 2014-03-05 Mike Frysinger <vapier@gentoo.org>
4786 * remote-sim.c (gdbsim_load): Add const to prog.
4788 2014-03-03 Tom Tromey <tromey@redhat.com>
4790 * elfread.c (probe_key): Change to bfd_data.
4791 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
4792 now per-BFD, not per-objfile.
4793 * stap-probe.c (stap_probe_destroy): Update comment.
4794 (handle_stap_probe): Allocate on the per-BFD obstack.
4796 2014-03-03 Tom Tromey <tromey@redhat.com>
4798 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
4799 * breakpoint.c (create_longjmp_master_breakpoint): Use
4801 (add_location_to_breakpoint, bkpt_probe_insert_location)
4802 (bkpt_probe_remove_location): Update.
4803 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
4804 * elfread.c (elf_symfile_relocate_probe): Remove.
4805 (elf_probe_fns): Update.
4806 (insert_exception_resume_breakpoint): Change type of "probe"
4807 parameter to bound_probe.
4808 (check_exception_resume): Update.
4809 * objfiles.c (objfile_relocate1): Don't relocate probes.
4810 * probe.c (bound_probe_s): New typedef.
4811 (parse_probes): Use get_probe_address. Set sal's objfile.
4812 (find_probe_by_pc): Return a bound_probe.
4813 (collect_probes): Return a VEC(bound_probe_s).
4814 (compare_probes): Update.
4815 (gen_ui_out_table_header_info): Change type of "probes"
4817 (info_probes_for_ops): Update.
4818 (get_probe_address): New function.
4819 (probe_safe_evaluate_at_pc): Update.
4820 * probe.h (struct probe_ops) <get_probe_address>: New field.
4821 <set_semaphore, clear_semaphore>: Add objfile parameter.
4822 (struct probe) <objfile>: Remove field.
4824 <address>: Update comment.
4825 (struct bound_probe): New.
4826 (find_probe_by_pc): Return a bound_probe.
4827 (get_probe_address): Declare.
4828 * solib-svr4.c (struct probe_and_action) <address>: New field.
4829 (hash_probe_and_action, equal_probe_and_action): Update.
4830 (register_solib_event_probe): Add address parameter.
4831 (solib_event_probe_at): Update.
4832 (svr4_create_probe_breakpoints): Add objfile parameter. Use
4834 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
4835 (stap_get_probe_address): New function.
4836 (stap_can_evaluate_probe_arguments, compute_probe_arg)
4837 (compile_probe_arg): Update.
4838 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
4840 (handle_stap_probe): Don't relocate the probe.
4841 (stap_relocate): Remove.
4842 (stap_gen_info_probes_table_values): Update.
4843 (stap_probe_ops): Remove stap_relocate.
4844 * symfile-debug.c (debug_sym_relocate_probe): Remove.
4845 (debug_sym_probe_fns): Update.
4846 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
4847 * symtab.c (init_sal): Use memset.
4848 * symtab.h (struct symtab_and_line) <objfile>: New field.
4849 * tracepoint.c (start_tracing, stop_tracing): Update.
4851 2014-03-03 Tom Tromey <tromey@redhat.com>
4853 * probe.h (parse_probes, find_probe_by_pc)
4854 (find_probes_in_objfile): Fix comments.
4856 2014-03-02 Doug Evans <xdje42@gmail.com>
4858 * infrun.c (handle_signal_stop): Replace test for
4859 TARGET_WAITKIND_STOPPED with an assert.
4861 2014-03-02 Doug Evans <xdje42@gmail.com>
4863 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
4865 2014-03-02 Doug Evans <xdje42@gmail.com>
4867 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
4869 2014-03-01 Mark Kettenis <kettenis@gnu.org>
4871 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
4873 2014-03-01 Mark Kettenis <kettenis@gnu.org>
4875 * i386obsd-nat.c: Include "obsd-nat.h".
4876 (_initialize_i386obsd_nat): Call obsd_add_target instead of
4878 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
4880 2014-03-01 Mark Kettenis <kettenis@gnu.org>
4882 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
4884 2014-03-01 Mark Kettenis <kettenis@gnu.org>
4886 * mips64obsd-nat.c: Include "obsd-nath".
4887 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
4889 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
4891 2014-03-01 Mark Kettenis <kettenis@gnu.org>
4893 * amd64obsd-nat.c: Include "obsd-nat,h.
4894 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
4896 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
4898 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
4900 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
4901 (find_overload_match): Update call to find_oload_champ.
4902 (find_oload_champ_namespace_loop): Likewise
4904 2014-02-28 Mark Kettenis <kettenis@gnu.org>
4906 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
4908 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
4909 * config/sparc/obsd64.mh: New file.
4910 * sparc64obsd-nat.c: New file.
4912 * obsd-nat.h: New file.
4913 * obsd-nat.c: New file.
4914 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
4915 (ALLDEPFILES): Add obsd-nat.c.
4917 2014-02-28 Tom Tromey <tromey@redhat.com>
4919 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
4920 * cli-out.h (cli_ui_out_impl): Now const.
4921 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
4922 * ui-out.c (struct ui_out) <impl>: Now const.
4923 (default_ui_out_impl): Now const.
4924 (ui_out_new): Make 'impl' parameter const.
4925 * ui-out.h (ui_out_new): Update.
4927 2014-02-27 Mark Kettenis <kettenis@gnu.org>
4929 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
4931 2014-02-27 Mark Kettenis <kettenis@gnu.org>
4933 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
4935 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4937 Additional PR 8882 fix.
4938 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
4940 2014-02-27 Pedro Alves <palves@redhat.com>
4942 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
4945 2014-02-27 Pedro Alves <palves@redhat.com>
4948 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
4949 * nat/linux-waitpid.c: Include string.h.
4950 (status_to_str): Moved here and made extern.
4951 * nat/linux-waitpid.h (status_to_str): New declaration.
4953 2014-02-27 Hui Zhu <hui@codesourcery.com>
4956 * infrun.c (ptid_match): Move ...
4957 * common/ptid.c (ptid_match): ... here.
4958 * inferior.h (ptid_match): Move ...
4959 * common/ptid.h (ptid_match): ... here.
4961 2014-02-27 Mark Kettenis <kettenis@gnu.org>
4963 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
4964 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
4967 2014-02-27 Mark Kettenis <kettenis@gnu.org>
4969 * obsd-tdep.c (obsd_auxv_parse): New function.
4970 (obsd_init_abi): Set auxv_parse.
4972 * gdbarch.sh (auxv_parse): New.
4973 * gdbarch.h: Regenerated.
4974 * gdbarch.c: Regenerated.
4975 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
4977 2014-02-26 Ludovic Courtès <ludo@gnu.org>
4979 * guile/scm-value.c (gdbscm_history_append_x): New function.
4980 (value_functions): Add it.
4982 2014-02-27 Joel Brobecker <brobecker@adacore.com>
4984 * dwarf2read.c (attr_value_as_address): New function.
4985 (dwarf2_find_base_address, read_call_site_scope): Use
4986 attr_value_as_address in place of DW_ADDR.
4987 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
4988 the low and high addresses. Slight rework of the handling
4989 of the high pc being a constant form, and limit it to
4990 DWARF verson 4 or higher.
4991 (dwarf2_record_block_ranges): Likewise.
4992 (read_partial_die): Likewise.
4993 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
4995 2014-02-26 Tom Tromey <tromey@redhat.com>
4997 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
4999 2014-02-26 Tom Tromey <tromey@redhat.com>
5001 * elfread.c (elf_read_minimal_symbols): Return early if
5002 minimal symbols have already been read. Add "ei" parameter.
5003 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
5004 * minsyms.c (prim_record_minimal_symbol_full): Update.
5005 * objfiles.h (struct objstats) <n_minsyms>: Move...
5006 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
5007 * symmisc.c (print_objfile_statistics): Update.
5009 2014-02-26 Tom Tromey <tromey@redhat.com>
5011 * elfread.c (elf_read_minimal_symbols): New function, from
5013 (elf_symfile_read): Call it.
5015 2014-02-26 Tom Tromey <tromey@redhat.com>
5017 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
5018 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
5019 (lookup_minimal_symbol_solib_trampoline)
5020 (lookup_minimal_symbol_by_pc_section_1)
5021 (lookup_minimal_symbol_and_objfile): Update.
5022 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
5023 Don't allocate a minimal symbol if minsyms have already been read.
5024 (build_minimal_symbol_hash_tables): Update.
5025 (install_minimal_symbols): Do nothing if minsyms already read.
5026 Use the per-BFD obstack.
5027 (terminate_minimal_symbol_table): Use the per-BFD obstack.
5028 * objfiles.c (allocate_objfile): Call
5029 terminate_minimal_symbol_table later.
5030 (have_minimal_symbols): Update.
5031 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
5032 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
5033 Move from struct objfile.
5034 <minsyms_read>: New field.
5035 (struct objfile) <msymbols, minimal_symbol_count,
5036 msymbol_hash, msymbol_demangled_hash>: Move.
5037 (ALL_OBJFILE_MSYMBOLS): Update.
5038 * symfile.c (read_symbols): Set minsyms_read.
5039 (reread_symbols): Update.
5040 * symmisc.c (dump_objfile, dump_msymbols): Update.
5042 2014-02-26 Tom Tromey <tromey@redhat.com>
5044 * minsyms.c (msymbols_sort): Remove.
5045 * minsyms.h (msymbols_sort): Remove.
5046 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
5047 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
5048 * elfread.c (elf_symtab_read): Don't add section offsets.
5049 * xcoffread.c (record_minimal_symbol): Don't add section offset
5050 to minimal symbol address.
5051 * somread.c (text_offset, data_offset): Remove.
5052 (som_symtab_read): Don't add section offsets to minimal symbol
5054 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
5055 Don't add section offsets to minimal symbols.
5056 * coffread.c (coff_symtab_read): Don't add section offsets
5057 to minimal symbol addresses.
5058 * machoread.c (macho_symtab_add_minsym): Don't add section offset
5059 to minimal symbol addresses.
5060 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
5061 section offset to minimal symbol addresses.
5062 * mdebugread.c (parse_partial_symbols): Don't add section
5063 offset to minimal symbol addresses.
5064 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
5065 offset to minimal symbol addresses.
5067 2014-02-26 Tom Tromey <tromey@redhat.com>
5069 * ada-lang.c (ada_main_name): Update.
5070 (ada_add_standard_exceptions): Update.
5071 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
5072 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
5073 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
5074 * auxv.c (ld_so_xfer_auxv): Update.
5075 * avr-tdep.c (avr_scan_prologue): Update.
5076 * ax-gdb.c (gen_var_ref): Update.
5077 * blockframe.c (get_pc_function_start)
5078 (find_pc_partial_function_gnu_ifunc): Update.
5079 * breakpoint.c (create_overlay_event_breakpoint)
5080 (create_longjmp_master_breakpoint)
5081 (create_std_terminate_master_breakpoint)
5082 (create_exception_master_breakpoint): Update.
5083 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
5084 * c-valprint.c (c_val_print): Update.
5085 * coff-pe-read.c (add_pe_forwarded_sym): Update.
5086 * common/agent.c (agent_look_up_symbols): Update.
5087 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
5088 * dwarf2loc.c (call_site_to_target_addr): Update.
5089 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
5090 * elfread.c (elf_gnu_ifunc_record_cache)
5091 (elf_gnu_ifunc_resolve_by_got): Update.
5092 * findvar.c (default_read_var_value): Update.
5093 * frame.c (inside_main_func): Update.
5094 * frv-tdep.c (frv_frame_this_id): Update.
5095 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
5096 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
5098 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
5099 (hppa_hpux_find_dummy_bpaddr): Update.
5100 * hppa-tdep.c (hppa_symbol_address): Update.
5101 * infcmd.c (until_next_command): Update.
5102 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
5104 * linespec.c (minsym_found, add_minsym): Update.
5105 * linux-nat.c (get_signo): Update.
5106 * linux-thread-db.c (inferior_has_bug): Update.
5107 * m32c-tdep.c (m32c_return_value)
5108 (m32c_m16c_address_to_pointer): Update.
5109 * m32r-tdep.c (m32r_frame_this_id): Update.
5110 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
5111 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
5112 * maint.c (maintenance_translate_address): Update.
5113 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
5114 (frob_address): New function.
5115 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
5116 frob_address. Rename parameter to "pc_in".
5117 (compare_minimal_symbols, compact_minimal_symbols): Use raw
5119 (find_solib_trampoline_target, minimal_symbol_upper_bound):
5121 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
5122 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
5123 * objc-lang.c (find_objc_msgsend): Update.
5124 * objfiles.c (objfile_relocate1): Update.
5125 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
5126 * p-valprint.c (pascal_val_print): Update.
5127 * parse.c (write_exp_msymbol): Update.
5128 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
5129 (ppc_elfv2_skip_entrypoint): Update.
5130 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
5131 * printcmd.c (build_address_symbolic, msym_info)
5132 (address_info): Update.
5133 * proc-service.c (ps_pglobal_lookup): Update.
5134 * psymtab.c (find_pc_sect_psymtab_closer)
5135 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
5136 Change msymbol parameter to bound_minimal_symbol.
5137 * ravenscar-thread.c (get_running_thread_id): Update.
5138 * remote.c (remote_check_symbols): Update.
5139 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
5141 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
5142 * solib-dsbt.c (lm_base): Update.
5143 * solib-frv.c (lm_base, main_got): Update.
5144 * solib-irix.c (locate_base): Update.
5145 * solib-som.c (som_solib_create_inferior_hook)
5146 (link_map_start): Update.
5147 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
5148 * solib-svr4.c (elf_locate_base, enable_break): Update.
5149 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
5150 (flush_ea_cache): Update.
5151 * stabsread.c (define_symbol, scan_file_globals): Update.
5152 * stack.c (find_frame_funname): Update.
5153 * symfile-debug.c (debug_qf_expand_symtabs_matching)
5154 (debug_qf_find_pc_sect_symtab): Update.
5155 * symfile.c (simple_read_overlay_table)
5156 (simple_overlay_update): Update.
5157 * symfile.h (struct quick_symbol_functions)
5158 <find_pc_sect_symtab>: Change type of msymbol to
5159 bound_minimal_symbol.
5160 * symmisc.c (dump_msymbols): Update.
5161 * symtab.c (find_pc_sect_symtab_via_partial)
5162 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
5163 (search_symbols, print_msymbol_info): Update.
5164 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
5165 (MSYMBOL_VALUE_ADDRESS): Redefine.
5166 (BMSYMBOL_VALUE_ADDRESS): New macro.
5167 * tracepoint.c (scope_info): Update.
5168 * tui/tui-disasm.c (tui_find_disassembly_address)
5169 (tui_get_begin_asm_address): Update.
5170 * valops.c (find_function_in_inferior): Update.
5171 * value.c (value_static_field, value_fn_field): Update.
5173 2014-02-26 Tom Tromey <tromey@redhat.com>
5175 * ada-lang.c (ada_update_initial_language): Update.
5176 (ada_main_name, ada_has_this_exception_support): Update.
5177 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
5178 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
5179 * arm-tdep.c (arm_skip_stub): Update.
5180 * auxv.c (ld_so_xfer_auxv): Update.
5181 * avr-tdep.c (avr_scan_prologue): Update.
5182 * ax-gdb.c (gen_var_ref): Update.
5183 * breakpoint.c (struct breakpoint_objfile_data)
5184 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
5185 type to bound_minimal_symbol.
5186 (create_overlay_event_breakpoint)
5187 (create_longjmp_master_breakpoint)
5188 (create_std_terminate_master_breakpoint)
5189 (create_exception_master_breakpoint): Update.
5190 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
5191 * c-exp.y (classify_name): Update.
5192 * coffread.c (coff_symfile_read): Update.
5193 * common/agent.c (agent_look_up_symbols): Update.
5194 * d-lang.c (d_main_name): Update.
5195 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
5196 * dec-thread.c (enable_dec_thread): Update.
5197 * dwarf2loc.c (call_site_to_target_addr): Update.
5198 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
5199 * eval.c (evaluate_subexp_standard): Update.
5200 * findvar.c (struct minsym_lookup_data) <result>: Change type
5201 to bound_minimal_symbol.
5203 (minsym_lookup_iterator_cb, default_read_var_value): Update.
5204 * frame.c (inside_main_func): Update.
5205 * frv-tdep.c (frv_frame_this_id): Update.
5206 * gcore.c (call_target_sbrk): Update.
5207 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
5208 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
5210 * go-lang.c (go_main_name): Update.
5211 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
5212 (hppa_hpux_find_import_stub_for_addr): Update.
5213 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
5214 Update. Change return type.
5215 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
5217 * jit.c (jit_breakpoint_re_set_internal): Update.
5218 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
5220 * linux-nat.c (get_signo): Update.
5221 * linux-thread-db.c (inferior_has_bug): Update
5222 * m32c-tdep.c (m32c_return_value)
5223 (m32c_m16c_address_to_pointer): Update.
5224 * m32r-tdep.c (m32r_frame_this_id): Update.
5225 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
5226 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
5227 * minsyms.c (lookup_minimal_symbol_internal): Rename to
5228 lookup_minimal_symbol. Change return type.
5229 (lookup_minimal_symbol): Remove.
5230 (lookup_bound_minimal_symbol): Update.
5231 (lookup_minimal_symbol_text): Change return type.
5232 (lookup_minimal_symbol_solib_trampoline): Change return type.
5233 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
5234 (lookup_minimal_symbol_solib_trampoline): Change return type.
5235 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
5236 * objc-lang.c (lookup_objc_class, lookup_child_selector)
5237 (value_nsstring, find_imps): Update.
5238 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
5239 * p-lang.c (pascal_main_name): Update.
5240 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
5241 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
5242 * proc-service.c (ps_pglobal_lookup): Update.
5243 * ravenscar-thread.c (get_running_thread_msymbol): Change
5245 (has_ravenscar_runtime, get_running_thread_id): Update.
5246 * remote.c (remote_check_symbols): Update.
5247 * sol-thread.c (ps_pglobal_lookup): Update.
5248 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
5249 * solib-dsbt.c (lm_base): Update.
5250 * solib-frv.c (lm_base, frv_relocate_section_addresses):
5252 * solib-irix.c (locate_base): Update.
5253 * solib-som.c (som_solib_create_inferior_hook)
5254 (som_solib_desire_dynamic_linker_symbols, link_map_start):
5256 * solib-spu.c (spu_enable_break): Update.
5257 * solib-svr4.c (elf_locate_base, enable_break): Update.
5258 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
5259 (flush_ea_cache): Update.
5260 * stabsread.c (define_symbol): Update.
5261 * symfile.c (simple_read_overlay_table): Update.
5262 * symtab.c (find_pc_sect_line): Update.
5263 * tracepoint.c (scope_info): Update.
5264 * tui-disasm.c (tui_get_begin_asm_address): Update.
5265 * value.c (value_static_field): Update.
5267 2014-02-26 Tom Tromey <tromey@redhat.com>
5269 * minsyms.c (prim_record_minimal_symbol_full): Use
5270 SET_MSYMBOL_VALUE_ADDRESS.
5271 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
5272 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
5273 SET_MSYMBOL_VALUE_ADDRESS.
5274 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
5275 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
5277 2014-02-26 Tom Tromey <tromey@redhat.com>
5279 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
5280 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
5281 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
5282 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
5283 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
5284 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
5285 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
5286 * ada-lang.c (ada_main_name): Update.
5287 (ada_lookup_simple_minsym): Update.
5288 (ada_make_symbol_completion_list): Update.
5289 (ada_add_standard_exceptions): Update.
5290 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
5291 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
5292 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
5293 * arm-tdep.c (skip_prologue_function): Update.
5294 (arm_skip_stack_protector, arm_skip_stub): Update.
5295 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
5296 (arm_wince_skip_main_prologue): Update.
5297 * auxv.c (ld_so_xfer_auxv): Update.
5298 * avr-tdep.c (avr_scan_prologue): Update.
5299 * ax-gdb.c (gen_var_ref): Update.
5300 * block.c (call_site_for_pc): Update.
5301 * blockframe.c (get_pc_function_start): Update.
5302 (find_pc_partial_function_gnu_ifunc): Update.
5303 * breakpoint.c (create_overlay_event_breakpoint): Update.
5304 (create_longjmp_master_breakpoint): Update.
5305 (create_std_terminate_master_breakpoint): Update.
5306 (create_exception_master_breakpoint): Update.
5307 (resolve_sal_pc): Update.
5308 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
5309 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
5311 * c-valprint.c (c_val_print): Update.
5312 * coff-pe-read.c (add_pe_forwarded_sym): Update.
5313 * coffread.c (coff_symfile_read): Update.
5314 * common/agent.c (agent_look_up_symbols): Update.
5315 * dbxread.c (find_stab_function_addr): Update.
5316 (end_psymtab): Update.
5317 * dwarf2loc.c (call_site_to_target_addr): Update.
5318 (func_verify_no_selftailcall): Update.
5319 (tailcall_dump): Update.
5320 (call_site_find_chain_1): Update.
5321 (dwarf_expr_reg_to_entry_parameter): Update.
5322 * elfread.c (elf_gnu_ifunc_record_cache): Update.
5323 (elf_gnu_ifunc_resolve_by_got): Update.
5324 * f-valprint.c (info_common_command): Update.
5325 * findvar.c (read_var_value): Update.
5326 * frame.c (get_prev_frame_1): Update.
5327 (inside_main_func): Update.
5328 * frv-tdep.c (frv_skip_main_prologue): Update.
5329 (frv_frame_this_id): Update.
5330 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
5331 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
5332 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
5333 (gnuv3_skip_trampoline): Update.
5334 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
5335 (hppa64_hpux_in_solib_call_trampoline): Update.
5336 (hppa_hpux_skip_trampoline_code): Update.
5337 (hppa64_hpux_search_dummy_call_sequence): Update.
5338 (hppa_hpux_find_import_stub_for_addr): Update.
5339 (hppa_hpux_find_dummy_bpaddr): Update.
5340 * hppa-tdep.c (hppa_symbol_address)
5341 (hppa_lookup_stub_minimal_symbol): Update.
5342 * i386-tdep.c (i386_skip_main_prologue): Update.
5343 (i386_pe_skip_trampoline_code): Update.
5344 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
5345 * infcall.c (get_function_name): Update.
5346 * infcmd.c (until_next_command): Update.
5347 * jit.c (jit_breakpoint_re_set_internal): Update.
5348 (jit_inferior_init): Update.
5349 * linespec.c (minsym_found): Update.
5350 (add_minsym): Update.
5351 * linux-fork.c (info_checkpoints_command): Update.
5352 * linux-nat.c (get_signo): Update.
5353 * linux-thread-db.c (inferior_has_bug): Update.
5354 * m32c-tdep.c (m32c_return_value): Update.
5355 (m32c_m16c_address_to_pointer): Update.
5356 (m32c_m16c_pointer_to_address): Update.
5357 * m32r-tdep.c (m32r_frame_this_id): Update.
5358 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
5359 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
5360 * maint.c (maintenance_translate_address): Update.
5361 * minsyms.c (add_minsym_to_hash_table): Update.
5362 (add_minsym_to_demangled_hash_table): Update.
5363 (msymbol_objfile): Update.
5364 (lookup_minimal_symbol): Update.
5365 (iterate_over_minimal_symbols): Update.
5366 (lookup_minimal_symbol_text): Update.
5367 (lookup_minimal_symbol_by_pc_name): Update.
5368 (lookup_minimal_symbol_solib_trampoline): Update.
5369 (lookup_minimal_symbol_by_pc_section_1): Update.
5370 (lookup_minimal_symbol_and_objfile): Update.
5371 (prim_record_minimal_symbol_full): Update.
5372 (compare_minimal_symbols): Update.
5373 (compact_minimal_symbols): Update.
5374 (build_minimal_symbol_hash_tables): Update.
5375 (install_minimal_symbols): Update.
5376 (terminate_minimal_symbol_table): Update.
5377 (find_solib_trampoline_target): Update.
5378 (minimal_symbol_upper_bound): Update.
5379 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
5380 * mips-tdep.c (mips_stub_frame_sniffer): Update.
5381 (mips_skip_pic_trampoline_code): Update.
5382 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
5383 * objc-lang.c (selectors_info): Update.
5384 (classes_info): Update.
5385 (find_methods): Update.
5386 (find_imps): Update.
5387 (find_objc_msgsend): Update.
5388 * objfiles.c (objfile_relocate1): Update.
5389 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
5390 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
5391 * p-valprint.c (pascal_val_print): Update.
5392 * parse.c (write_exp_msymbol): Update.
5393 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
5394 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
5395 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
5396 * printcmd.c (build_address_symbolic): Update.
5398 (address_info): Update.
5399 * proc-service.c (ps_pglobal_lookup): Update.
5400 * psymtab.c (find_pc_sect_psymtab_closer): Update.
5401 (find_pc_sect_psymtab): Update.
5402 * python/py-framefilter.c (py_print_frame): Update.
5403 * ravenscar-thread.c (get_running_thread_id): Update.
5404 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
5406 * remote.c (remote_check_symbols): Update.
5407 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
5408 (rs6000_skip_trampoline_code): Update.
5409 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
5410 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
5411 * solib-dsbt.c (lm_base): Update.
5412 * solib-frv.c (lm_base): Update.
5414 * solib-irix.c (locate_base): Update.
5415 * solib-som.c (som_solib_create_inferior_hook): Update.
5416 (som_solib_desire_dynamic_linker_symbols): Update.
5417 (link_map_start): Update.
5418 * solib-spu.c (spu_enable_break): Update.
5419 (ocl_enable_break): Update.
5420 * solib-svr4.c (elf_locate_base): Update.
5421 (enable_break): Update.
5422 * spu-tdep.c (spu_get_overlay_table): Update.
5423 (spu_catch_start): Update.
5424 (flush_ea_cache): Update.
5425 * stabsread.c (define_symbol): Update.
5426 (scan_file_globals): Update.
5427 * stack.c (find_frame_funname): Update.
5428 (frame_info): Update.
5429 * symfile.c (simple_read_overlay_table): Update.
5430 (simple_overlay_update): Update.
5431 * symmisc.c (dump_msymbols): Update.
5432 * symtab.c (fixup_section): Update.
5433 (find_pc_sect_line): Update.
5434 (skip_prologue_sal): Update.
5435 (search_symbols): Update.
5436 (print_msymbol_info): Update.
5437 (rbreak_command): Update.
5438 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
5439 (completion_list_objc_symbol): Update.
5440 (default_make_symbol_completion_list_break_on): Update.
5441 * tracepoint.c (scope_info): Update.
5442 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
5443 (tui_get_begin_asm_address): Update.
5444 * valops.c (find_function_in_inferior): Update.
5445 * value.c (value_static_field): Update.
5446 (value_fn_field): Update.
5448 2014-02-26 Tom Tromey <tromey@redhat.com>
5450 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
5451 bound minimal symbols. Move code that knows about minsym
5453 * minsyms.c (minimal_symbol_upper_bound): ... here. New
5455 * minsyms.h (minimal_symbol_upper_bound): Declare.
5456 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
5457 minimal_symbol_upper_bound.
5459 2014-02-27 Joel Brobecker <brobecker@adacore.com>
5461 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
5462 Use the type's name if its basic type does not have a tag.
5464 2014-02-27 Joel Brobecker <brobecker@adacore.com>
5466 * dwarf2read.c (read_subrange_type): Add comment.
5468 2014-02-27 Joel Brobecker <brobecker@adacore.com>
5470 * dwarf2read.c (update_enumeration_type_from_children): New
5471 function, mostly extracted from process_structure_scope.
5472 (read_enumeration_type): Call update_enumeration_type_from_children.
5473 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
5474 and flag_flag_enum fields.
5476 2014-02-26 Pedro Alves <palves@redhat.com>
5478 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
5479 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
5480 to_xfer_partial method.
5482 2014-02-26 Pedro Alves <palves@redhat.com>
5484 * target.c (complete_target_initialization): Don't install
5485 default_xfer_partial as to_xfer_partial hook.
5487 (update_current_target): Don't INHERIT nor de_fault
5488 deprecated_xfer_memory. Delete de_fault macro.
5489 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
5490 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
5491 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
5494 2014-02-26 Pedro Alves <palves@redhat.com>
5496 * go32-nat.c (my_write_child): New function.
5497 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
5498 (go32_xfer_partial): New function.
5499 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
5500 Instead install a to_xfer_partial hook.
5502 2014-02-26 Pedro Alves <palves@redhat.com>
5504 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
5505 to_xfer_partial helper. Rewrite.
5506 (procfs_xfer_partial): New function.
5507 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
5508 Install a to_xfer_partial hook.
5510 2014-02-26 Pedro Alves <palves@redhat.com>
5512 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
5513 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
5514 (m32r_xfer_partial): New function.
5515 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
5516 Install a to_xfer_partial hook.
5518 2014-02-26 Pedro Alves <palves@redhat.com>
5520 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
5522 (mips_xfer_partial): New function.
5523 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
5524 hook. Install a to_xfer_partial hook.
5526 2014-02-26 Joel Brobecker <brobecker@adacore.com>
5528 * gdbtypes.h (create_array_type_with_stride): Add declaration.
5529 * gdbtypes.c (create_array_type_with_stride): New function,
5530 renaming create_array_type, but with an added parameter
5531 called "bit_stride".
5532 (create_array_type): Re-implement using
5533 create_array_type_with_stride.
5534 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
5535 and DW_AT_bit_stride attributes.
5537 2014-02-26 Pedro Alves <palves@redhat.com>
5539 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
5540 task-specific breakpoints.
5542 2014-02-25 Pedro Alves <palves@redhat.com>
5544 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
5545 handling of object == TARGET_OBJECT_UNWIND_TABLE.
5547 2014-02-25 Stan Shebs <stan@codesourcery.com>
5549 * defs.h: Annotate comments for Doxygen.
5551 2014-02-25 Tom Tromey <tromey@redhat.com>
5553 * target.h (target_ignore): Don't declare.
5554 * target.c (target_ignore): Remove.
5556 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
5559 * auto-load.c (auto_load_objfile_script_1): Change filename to
5562 2014-02-25 Joel Brobecker <brobecker@adacore.com>
5564 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
5565 documentation. Adjust prototype to match the target_ops
5566 to_xfer_partial method. Adjust implementation accordingly.
5568 2014-02-25 Hui Zhu <hui@codesourcery.com>
5570 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
5573 2014-02-25 Kevin Buettner <kevinb@redhat.com>
5575 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
5576 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
5577 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
5578 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
5579 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
5580 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
5581 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
5582 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
5584 (rl78_register_type): Use a data pointer type for SP and
5585 new pseudo registers mentioned above. Use a 16 bit integer
5586 type for all other register pairs.
5587 (rl78_register_name, rl78_g10_register_name): Update for
5588 new pseudo registers.
5589 (rl78_pseudo_register_read): Likewise.
5590 (rl78_pseudo_register_write): Likewise.
5591 (rl78_dwarf_reg_to_regnum): Return register numbers representing
5592 to the newly added pseudo registers.
5594 2014-02-24 Doug Evans <dje@google.com>
5596 * value.c (record_latest_value): Fix comment.
5597 * printcmd.c (print_command_1): Remove code to handle -1 return from
5598 record_latest_value.
5600 2014-02-24 Pedro Alves <palves@redhat.com>
5602 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
5603 deprecated_xfer_memory hook.
5604 (procfs_xfer_partial): Call procfs_xfer_memory instead
5605 of the deprecated_xfer_memory target hook.
5606 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
5609 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
5611 * windows-nat.c (windows_xfer_shared_libraries): Return
5612 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
5613 requested object is TARGET_OBJECT_LIBRARIES.
5615 2014-02-24 Yao Qi <yao@codesourcery.com>
5617 * target.h (enum target_xfer_status)
5618 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
5619 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
5621 * corefile.c (memory_error_message): User updated.
5622 * exec.c (section_table_read_available_memory): Likewise.
5623 * record-btrace.c (record_btrace_xfer_partial): Likewise.
5624 * target.c (target_xfer_status_to_string): Likewise.
5625 (raw_memory_xfer_partial): Likewise.
5626 (memory_xfer_partial_1, target_xfer_partial): Likewise.
5627 * valops.c (read_value_memory): Likewise.
5628 * exec.h: Update comments.
5630 2014-02-24 Yao Qi <yao@codesourcery.com>
5632 * target.c (target_xfer_status_to_string): Rename argument err
5634 * target.h (target_xfer_status_to_string): Update declaration.
5635 Replace target_xfer_error_to_string with
5636 target_xfer_status_to_string in comment.
5638 2014-02-24 Yao Qi <yao@codesourcery.com>
5640 * mips-linux-nat.c (super_close): Update its type.
5641 (mips_linux_close): Pass 'self' to super_close.
5643 2014-02-24 Yao Qi <yao@codesourcery.com>
5645 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
5646 * corefile.c (read_memory): Adjusted.
5647 * target.c (target_write_with_progress): Adjusted.
5649 2014-02-23 Yao Qi <yao@codesourcery.com>
5653 2013-10-25 Yao Qi <yao@codesourcery.com>
5655 * remote.c (remote_traceframe_info): Return early if
5656 traceframe is not selected.
5658 2013-07-19 Yao Qi <yao@codesourcery.com>
5660 * target.c (update_current_target): Change the default action
5661 of 'to_traceframe_info' from tcomplain to return_zero.
5662 * target.h (struct target_ops) <to_traceframe_info>: Add more
5665 2014-02-23 Yao Qi <yao@codesourcery.com>
5667 * valops.c (read_value_memory): Rewrite it. Call
5668 target_xfer_partial in a loop.
5669 * exec.h (section_table_available_memory): Remove declaration.
5670 Move comments to ...
5671 * exec.c (section_table_available_memory): ... here. Make it
5674 2014-02-23 Yao Qi <yao@codesourcery.com>
5676 * exec.c (section_table_read_available_memory): New function.
5677 * exec.h (section_table_read_available_memory): Declare.
5678 * ctf.c (ctf_xfer_partial): Call
5679 section_table_read_available_memory.
5680 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
5682 2014-02-23 Yao Qi <yao@codesourcery.com>
5684 * ctf.c (ctf_xfer_partial): Move code to ...
5685 * exec.c (exec_read_partial_read_only): ... it. New function.
5686 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
5687 * tracefile.c: Include "exec.h".
5688 * exec.h (exec_read_partial_read_only): Declare.
5690 2014-02-23 Yao Qi <yao@codesourcery.com>
5692 * tracefile-tfile.c (tfile_has_all_memory): Remove.
5693 (tfile_has_memory): Remove.
5694 (init_tfile_ops): Don't set fields to_has_all_memory and
5695 to_has_memory of tfile_ops.
5696 * tracefile.c (tracefile_has_all_memory): New function.
5697 (tracefile_has_memory): New function.
5698 (init_tracefile_ops): Initialize fields to_has_all_memory and
5699 to_has_memory of 'ops'.
5701 2014-02-23 Yao Qi <yao@codesourcery.com>
5703 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
5704 (ctf_thread_alive, ctf_get_trace_status): Remove.
5705 (init_ctf_ops): Don't set some fields of ctf_ops. Call
5707 * tracefile-tfile.c (tfile_get_trace_status): Remove.
5708 (tfile_has_stack, tfile_has_registers): Remove.
5709 (tfile_thread_alive): Remove.
5710 (init_tfile_ops): Don't set some fields of tfile_ops. Call
5712 * tracefile.c (tracefile_has_stack): New function.
5713 (tracefile_has_registers): New function.
5714 (tracefile_thread_alive): New function.
5715 (tracefile_get_trace_status): New function.
5716 (init_tracefile_ops): New function.
5717 * tracefile.h (init_tracefile_ops): Declare.
5719 2014-02-23 Yao Qi <yao@codesourcery.com>
5721 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
5722 (O_LARGEFILE): Likewise.
5723 (tfile_ops): Likewise.
5724 (TRACE_HEADER_SIZE): Likewise.
5725 (trace_fd, trace_frames_offset, cur_offset): Likewise.
5726 (cur_data_size): Likewise.
5727 (tfile_read, tfile_open, tfile_interp_line): Likewise.
5728 (tfile_close, tfile_files_info): Likewise.
5729 (tfile_get_trace_status): Likewise.
5730 (tfile_get_tracepoint_status): Likewise.
5731 (tfile_get_traceframe_address): Likewise.
5732 (tfile_trace_find, match_blocktype): Likewise.
5733 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
5734 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
5735 (tfile_get_trace_state_variable_value): Likewise.
5736 (tfile_has_all_memory, tfile_has_memory): Likewise.
5737 (tfile_has_stack, tfile_has_registers): Likewise.
5738 (tfile_thread_alive, build_traceframe_info): Likewise.
5739 (tfile_traceframe_info, init_tfile_ops): Likewise.
5740 (_initialize_tracepoint): Don't call init_tfile_ops
5741 and add_target_with_completer.
5742 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
5743 exec.h, completer.h and filenames.h.
5744 (_initialize_tracefile_tfile): New function.
5746 2014-02-23 Yao Qi <yao@codesourcery.com>
5748 * Makefile.in (REMOTE_OBS): Append tracefile.o and
5750 (HFILES_NO_SRCDIR): Add tracefile.h.
5751 * ctf.c: Include "tracefile.h".
5752 * tracefile.h: New file.
5753 * tracefile.c: New file
5754 * tracefile-tfile.c: New file.
5755 * tracepoint.c: Include "tracefile.h".
5756 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
5757 (stop_reason_names): Add const.
5758 (trace_file_writer_xfree): Move it to tracefile.c.
5759 (trace_save, trace_save_command, trace_save_tfile): Likewise.
5760 (trace_save_ctf): Likewise.
5761 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
5762 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
5763 (tfile_write_header, tfile_write_regblock_type): Likewise.
5764 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
5765 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
5766 (tfile_write_raw_data, tfile_end): Likewise.
5767 (tfile_trace_file_writer_new): Likewise.
5768 (free_uploaded_tp): Make it extern.
5769 (free_uploaded_tsv): Make it extern.
5770 (_initialize_tracepoint): Move code to register command 'tsave'
5772 * tracepoint.h (stop_reason_names): Declare.
5773 (struct trace_frame_write_ops): Move it to tracefile.h.
5774 (struct trace_file_write_ops): Likewise.
5775 (struct trace_file_writer): Likewise.
5776 (free_uploaded_tsvs, free_uploaded_tps): Declare.
5778 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5781 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
5783 (get_cores_used_by_process): New parameter num_cores, use it.
5784 (linux_xfer_osdata_processes): Pass num_cores to it.
5785 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
5788 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
5790 * target.c (memory_xfer_partial): Fix length arg in call to
5791 breakpoint_xfer_memory.
5793 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
5796 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
5797 number comes after the + or - signs. Adjust length of register
5798 name to be extracted.
5800 2014-02-20 Tom Tromey <tromey@redhat.com>
5802 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
5803 (ada_varobj_ops): Mark "extern".
5805 2014-02-20 Tom Tromey <tromey@redhat.com>
5807 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
5809 2014-02-20 Doug Evans <xdje42@gmail.com>
5811 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
5812 All callers updated.
5813 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
5814 All callers updated.
5815 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
5816 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
5818 2014-02-20 lin zuojian <manjian2006@gmail.com>
5819 Joel Brobecker <brobecker@adacore.com>
5820 Doug Evans <xdje42@gmail.com>
5823 * dwarf2read.c (struct die_info): New member in_process.
5824 (reset_die_in_process): New function.
5825 (process_die): Set it at the start, reset when returning.
5826 (inherit_abstract_dies): Only call process_die if origin_child_die
5827 not already being processed.
5829 2014-02-20 Joel Brobecker <brobecker@adacore.com>
5831 * windows-nat.c (handle_unload_dll): Add function documentation.
5832 (do_initial_windows_stuff): Add comment explaining why we wait
5833 until after inferior initialization has finished before
5834 processing all DLLs.
5836 2014-02-20 Joel Brobecker <brobecker@adacore.com>
5838 * windows-nat.c (get_module_name): Delete.
5839 (windows_get_exec_module_filename): New function, mostly
5840 inspired from get_module_name.
5841 (windows_pid_to_exec_file): Replace call to get_module_name
5842 by call to windows_get_exec_module_filename.
5844 2014-02-20 Joel Brobecker <brobecker@adacore.com>
5846 * windows-nat.c (handle_load_dll): Rewrite this function's
5847 introductory comment. Remove code using get_module_name
5848 to get the DLL's name.
5850 2014-02-20 Joel Brobecker <brobecker@adacore.com>
5852 * windows-nat.c (get_windows_debug_event): Ignore
5853 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
5854 if windows_initialization_done == 0.
5855 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
5856 Adjust implementation to always load all DLLs.
5857 (do_initial_windows_stuff): Replace call to
5858 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
5860 2014-02-20 Joel Brobecker <brobecker@adacore.com>
5862 * windows-nat.c (_initialize_windows_nat): Deprecate the
5863 "dll-symbols" command. Turn the "add-shared-symbol-files"
5864 and "assf" aliases into commands, and deprecate them as well.
5865 * NEWS: Add entry explaining that "dll-symbols" and its two
5866 aliases are now deprecated.
5868 2014-02-20 Joel Brobecker <brobecker@adacore.com>
5870 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
5871 new-line in debug string. Remove trailing spaces.
5873 2014-02-19 Stan Shebs <stan@codesourcery.com>
5875 * darwin-nat.c (darwin_xfer_partial): Fix return type.
5877 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
5879 * NEWS: Add entry for the new feature
5880 * python/py-value.c (valpy_binop): Call value_x_binop for struct
5883 2014-02-19 Stan Shebs <stan@codesourcery.com>
5885 * MAINTAINERS: List Yao Qi as nios2 maintainer.
5887 2014-02-19 Pedro Alves <palves@redhat.com>
5889 * common/ptid.h (struct ptid): Mention that process_stratum
5890 targets should prefer ptid.lwp.
5892 2014-02-19 Pedro Alves <palves@redhat.com>
5894 * remote.c (remote_thread_alive, write_ptid, read_ptid)
5895 (read_ptid, remote_newthread_step, remote_threads_extra_info)
5896 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
5897 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
5898 store remote thread ids rather than ptid.tid.
5899 (_initialize_remote): Adjust.
5901 2014-02-19 Tom Tromey <tromey@redhat.com>
5903 * target.c (target_get_unwinder): Rewrite.
5904 (target_get_tailcall_unwinder): Rewrite.
5905 * record-btrace.c (record_btrace_to_get_unwinder): New function.
5906 (record_btrace_to_get_tailcall_unwinder): New function.
5907 (init_record_btrace_ops): Update.
5908 * target.h (struct target_ops) <to_get_unwinder,
5909 to_get_tailcall_unwinder>: Now function pointers. Use
5910 TARGET_DEFAULT_RETURN.
5912 2014-02-19 Tom Tromey <tromey@redhat.com>
5914 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
5916 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
5918 2014-02-19 Tom Tromey <tromey@redhat.com>
5920 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
5922 * target-delegates.c: Rebuild.
5923 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
5924 TARGET_DEFAULT_FUNC.
5925 * target.c (default_target_decr_pc_after_break): Rename from
5926 forward_target_decr_pc_after_break. Simplify.
5927 (target_decr_pc_after_break): Rely on delegation.
5929 2014-02-19 Tom Tromey <tromey@redhat.com>
5931 * target.c (update_current_target): Do not INHERIT to_doc or
5932 to_magic. Do not de_fault to_open or to_close.
5934 2014-02-19 Tom Tromey <tromey@redhat.com>
5936 * gcore.h (objfile_find_memory_regions): Declare.
5937 * gcore.c (objfile_find_memory_regions): No longer static. Add
5939 (_initialize_gcore): Don't call exec_set_find_memory_regions.
5940 * exec.c: Include gcore.h.
5941 (exec_set_find_memory_regions): Remove.
5942 (exec_find_memory_regions): Remove.
5943 (exec_do_find_memory_regions): Remove.
5944 (init_exec_ops): Update.
5945 * defs.h (exec_set_find_memory_regions): Remove.
5947 2014-02-19 Tom Tromey <tromey@redhat.com>
5949 * target-delegates.c: Rebuild.
5950 * target.h (struct target_ops) <to_extra_thread_info,
5951 to_thread_name, to_pid_to_exec_file, to_get_section_table,
5952 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
5953 not 0, in TARGET_DEFAULT_RETURN.
5955 2014-02-19 Tom Tromey <tromey@redhat.com>
5957 * target.c (complete_target_initialization): Remove casts. Use
5958 return_zero_has_execution.
5959 (return_zero): Add "ignore" argument.
5960 (return_zero_has_execution): New function.
5961 (init_dummy_target): Remove casts. Use
5962 return_zero_has_execution.
5964 2014-02-19 Tom Tromey <tromey@redhat.com>
5966 * target.c (update_current_target): Update comments. Do not
5969 2014-02-19 Tom Tromey <tromey@redhat.com>
5971 * arm-linux-nat.c (arm_linux_read_description): Delegate when
5973 * corelow.c (core_read_description): Delegate when needed.
5974 * remote.c (remote_read_description): Delegate when needed.
5975 * target-delegates.c: Rebuild.
5976 * target.c (target_read_description): Rewrite.
5977 * target.h (struct target_ops) <to_read_description>: Update
5978 comment. Use TARGET_DEFAULT_RETURN.
5980 2014-02-19 Tom Tromey <tromey@redhat.com>
5982 * target-delegates.c: Rebuild.
5983 * target.c (update_current_target): Don't inherit or default
5985 (find_default_run_target): Check against delegate_can_run.
5986 * target.h (struct target_ops) <to_can_run>: Use
5987 TARGET_DEFAULT_RETURN.
5989 2014-02-19 Tom Tromey <tromey@redhat.com>
5991 * target-delegates.c: Rebuild.
5992 * target.c (target_disconnect): Unconditionally delegate.
5993 * target.h (struct target_ops) <to_disconnect>: Use
5994 TARGET_DEFAULT_NORETURN.
5996 2014-02-19 Tom Tromey <tromey@redhat.com>
5998 * record.c (record_stop): Unconditionally delegate.
5999 * target-delegates.c: Rebuild.
6000 * target.c (target_stop_recording): Unconditionally delegate.
6001 * target.h (struct target_ops) <to_stop_recording>: Use
6002 TARGET_DEFAULT_IGNORE.
6004 2014-02-19 Tom Tromey <tromey@redhat.com>
6006 * target-delegates.c: Rebuild.
6007 * target.c (target_enable_btrace): Unconditionally delegate.
6008 * target.h (struct target_ops) <to_enable_btrace>: Use
6009 TARGET_DEFAULT_NORETURN.
6011 2014-02-19 Tom Tromey <tromey@redhat.com>
6013 * target-delegates.c: Rebuild.
6014 * target.c (target_read_btrace): Unconditionally delegate.
6015 * target.h (struct target_ops) <to_read_btrace>: Use
6016 TARGET_DEFAULT_NORETURN.
6018 2014-02-19 Tom Tromey <tromey@redhat.com>
6020 * target-delegates.c: Rebuild.
6021 * target.c (target_teardown_btrace): Unconditionally delegate.
6022 * target.h (struct target_ops) <to_teardown_btrace>: Use
6023 TARGET_DEFAULT_NORETURN.
6025 2014-02-19 Tom Tromey <tromey@redhat.com>
6027 * target-delegates.c: Rebuild.
6028 * target.c (target_disable_btrace): Unconditionally delegate.
6029 * target.h (struct target_ops) <to_disable_btrace>: Use
6030 TARGET_DEFAULT_NORETURN.
6032 2014-02-19 Tom Tromey <tromey@redhat.com>
6034 * target-delegates.c: Rebuild.
6035 * target.c (default_search_memory): New function.
6036 (simple_search_memory): Update comment.
6037 (target_search_memory): Unconditionally delegate.
6038 * target.h (struct target_ops) <to_search_memory>: Use
6039 TARGET_DEFAULT_FUNC.
6041 2014-02-19 Tom Tromey <tromey@redhat.com>
6043 * auxv.c (default_auxv_parse): No longer static.
6044 (target_auxv_parse): Unconditionally delegate.
6045 * auxv.h (default_auxv_parse): Declare.
6046 * target-delegates.c: Rebuild.
6047 * target.c: Include auxv.h.
6048 * target.h (struct target_ops) <to_auxv_parse>: Use
6049 TARGET_DEFAULT_FUNC.
6051 2014-02-19 Tom Tromey <tromey@redhat.com>
6053 * target-delegates.c: Rebuild.
6054 * target.c (target_memory_map): Unconditionally delegate.
6055 * target.h (struct target_ops) <to_memory_map>: Use
6056 TARGET_DEFAULT_RETURN.
6058 2014-02-19 Tom Tromey <tromey@redhat.com>
6060 * target-delegates.c: Rebuild.
6061 * target.c (target_thread_alive): Unconditionally delegate.
6062 * target.h (struct target_ops) <to_thread_alive>: Use
6063 TARGET_DEFAULT_RETURN.
6065 2014-02-19 Tom Tromey <tromey@redhat.com>
6067 * target-delegates.c: Rebuild.
6068 * target.c (target_save_record): Unconditionally delegate.
6069 * target.h (struct target_ops) <to_save_record>: Use
6070 TARGET_DEFAULT_NORETURN.
6072 2014-02-19 Tom Tromey <tromey@redhat.com>
6074 * target-delegates.c: Rebuild.
6075 * target.c (target_delete_record): Unconditionally delegate.
6076 * target.h (struct target_ops) <to_delete_record>: Use
6077 TARGET_DEFAULT_NORETURN.
6079 2014-02-19 Tom Tromey <tromey@redhat.com>
6081 * target-delegates.c: Rebuild.
6082 * target.c (target_record_is_replaying): Unconditionally
6084 * target.h (struct target_ops) <to_record_is_replaying>: Use
6085 TARGET_DEFAULT_RETURN.
6087 2014-02-19 Tom Tromey <tromey@redhat.com>
6089 * target-delegates.c: Rebuild.
6090 * target.c (target_goto_record_begin): Unconditionally delegate.
6091 * target.h (struct target_ops) <to_goto_record_begin>: Use
6092 TARGET_DEFAULT_NORETURN.
6094 2014-02-19 Tom Tromey <tromey@redhat.com>
6096 * target-delegates.c: Rebuild.
6097 * target.c (target_goto_record_end): Unconditionally delegate.
6098 * target.h (struct target_ops) <to_goto_record_end>: Use
6099 TARGET_DEFAULT_NORETURN.
6101 2014-02-19 Tom Tromey <tromey@redhat.com>
6103 * target-delegates.c: Rebuild.
6104 * target.c (target_goto_record): Unconditionally delegate.
6105 * target.h (struct target_ops) <to_goto_record>: Use
6106 TARGET_DEFAULT_NORETURN.
6108 2014-02-19 Tom Tromey <tromey@redhat.com>
6110 * target-delegates.c: Rebuild.
6111 * target.c (target_insn_history): Unconditionally delegate.
6112 * target.h (struct target_ops) <to_insn_history>: Use
6113 TARGET_DEFAULT_NORETURN.
6115 2014-02-19 Tom Tromey <tromey@redhat.com>
6117 * target-delegates.c: Rebuild.
6118 * target.c (target_insn_history_from): Unconditionally delegate.
6119 * target.h (struct target_ops) <to_insn_history_from>: Use
6120 TARGET_DEFAULT_NORETURN.
6122 2014-02-19 Tom Tromey <tromey@redhat.com>
6124 * target-delegates.c: Rebuild.
6125 * target.c (target_insn_history_range): Unconditionally delegate.
6126 * target.h (struct target_ops) <to_insn_history_range>: Use
6127 TARGET_DEFAULT_NORETURN.
6129 2014-02-19 Tom Tromey <tromey@redhat.com>
6131 * target-delegates.c: Rebuild.
6132 * target.c (target_call_history): Unconditionally delegate.
6133 * target.h (struct target_ops) <to_call_history>: Use
6134 TARGET_DEFAULT_NORETURN.
6136 2014-02-19 Tom Tromey <tromey@redhat.com>
6138 * target-delegates.c: Rebuild.
6139 * target.c (target_call_history_from): Unconditionally delegate.
6140 * target.h (struct target_ops) <to_call_history_from>: Use
6141 TARGET_DEFAULT_NORETURN.
6143 2014-02-19 Tom Tromey <tromey@redhat.com>
6145 * target-delegates.c: Rebuild.
6146 * target.c (target_call_history_range): Unconditionally delegate.
6147 * target.h (struct target_ops) <to_call_history_range>: Use
6148 TARGET_DEFAULT_NORETURN.
6150 2014-02-19 Tom Tromey <tromey@redhat.com>
6152 * target-delegates.c: Rebuild.
6153 * target.c (target_verify_memory): Unconditionally delegate.
6154 * target.h (struct target_ops) <to_verify_memory>: Use
6155 TARGET_DEFAULT_NORETURN.
6157 2014-02-19 Tom Tromey <tromey@redhat.com>
6159 * target-delegates.c: Rebuild.
6160 * target.c (target_core_of_thread): Unconditionally delegate.
6161 * target.h (struct target_ops) <to_core_of_thread>: Use
6162 TARGET_DEFAULT_RETURN.
6164 2014-02-19 Tom Tromey <tromey@redhat.com>
6166 * target-delegates.c: Rebuild.
6167 * target.c (target_flash_done): Unconditionally delegate.
6168 * target.h (struct target_ops) <to_flash_done>: Use
6169 TARGET_DEFAULT_NORETURN.
6171 2014-02-19 Tom Tromey <tromey@redhat.com>
6173 * target-delegates.c: Rebuild.
6174 * target.c (target_flash_erase): Unconditionally delegate.
6175 * target.h (struct target_ops) <to_flash_erase>: Use
6176 TARGET_DEFAULT_NORETURN.
6178 2014-02-19 Tom Tromey <tromey@redhat.com>
6180 * target-delegates.c: Rebuild.
6181 * target.c (target_get_section_table): Unconditionally delegate.
6182 * target.h (struct target_ops) <to_get_section_table>: Use
6183 TARGET_DEFAULT_RETURN.
6185 2014-02-19 Tom Tromey <tromey@redhat.com>
6187 * target-delegates.c: Rebuild.
6188 * target.c (target_pid_to_str): Unconditionally delegate.
6189 (init_dummy_target): Don't initialize to_pid_to_str.
6190 (default_pid_to_str): Rename from dummy_pid_to_str.
6191 * target.h (struct target_ops) <to_pid_to_str>: Use
6192 TARGET_DEFAULT_FUNC.
6194 2014-02-19 Tom Tromey <tromey@redhat.com>
6196 * target-delegates.c: Rebuild.
6197 * target.c (target_find_new_threads): Unconditionally delegate.
6198 * target.h (struct target_ops) <to_find_new_threads>: Use
6199 TARGET_DEFAULT_RETURN.
6201 2014-02-19 Tom Tromey <tromey@redhat.com>
6203 * target-delegates.c: Rebuild.
6204 * target.c (target_program_signals): Unconditionally delegate.
6205 * target.h (struct target_ops) <to_program_signals>: Use
6206 TARGET_DEFAULT_IGNORE.
6208 2014-02-19 Tom Tromey <tromey@redhat.com>
6210 * target-delegates.c: Rebuild.
6211 * target.c (target_pass_signals): Unconditionally delegate.
6212 * target.h (struct target_ops) <to_pass_signals>: Use
6213 TARGET_DEFAULT_IGNORE.
6215 2014-02-19 Tom Tromey <tromey@redhat.com>
6217 * target-delegates.c: Rebuild.
6218 * target.c (default_mourn_inferior): New function.
6219 (target_mourn_inferior): Unconditionally delegate.
6220 * target.h (struct target_ops) <to_mourn_inferior>: Use
6221 TARGET_DEFAULT_FUNC.
6223 2014-02-19 Tom Tromey <tromey@redhat.com>
6225 * target-delegates.c: Rebuild.
6226 * target.c (default_follow_fork): New function.
6227 (target_follow_fork): Unconditionally delegate.
6228 * target.h (struct target_ops) <to_follow_fork>: Use
6229 TARGET_DEFAULT_FUNC.
6231 2014-02-19 Tom Tromey <tromey@redhat.com>
6233 * target-delegates.c: Rebuild.
6234 * target.c (target_kill): Unconditionally delegate.
6235 * target.h (struct target_ops) <to_kill>: Use
6236 TARGET_DEFAULT_NORETURN.
6238 2014-02-19 Tom Tromey <tromey@redhat.com>
6240 * target-delegates.c: Rebuild.
6241 * target.c (target_masked_watch_num_registers): Unconditionally
6243 * target.h (struct target_ops) <to_masked_watch_num_registers>:
6244 Use TARGET_DEFAULT_RETURN.
6246 2014-02-19 Tom Tromey <tromey@redhat.com>
6248 * target-delegates.c: Rebuild.
6249 * target.c (target_remove_mask_watchpoint): Unconditionally
6251 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
6252 TARGET_DEFAULT_RETURN.
6254 2014-02-19 Tom Tromey <tromey@redhat.com>
6256 * target-delegates.c: Rebuild.
6257 * target.c (target_insert_mask_watchpoint): Unconditionally
6259 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
6260 TARGET_DEFAULT_RETURN.
6262 2014-02-19 Tom Tromey <tromey@redhat.com>
6264 * target-delegates.c: Rebuild.
6265 * target.c (target_ranged_break_num_registers): Unconditionally
6267 * target.h (struct target_ops) <to_ranged_break_num_registers>:
6268 Use TARGET_DEFAULT_RETURN.
6270 2014-02-19 Tom Tromey <tromey@redhat.com>
6272 * target-delegates.c: Rebuild.
6273 * target.c (target_fetch_registers): Unconditionally delegate.
6274 * target.h (struct target_ops) <to_fetch_registers>: Use
6275 TARGET_DEFAULT_NORETURN.
6277 2014-02-19 Tom Tromey <tromey@redhat.com>
6279 * target-delegates.c: Rebuild.
6280 * target.c (update_current_target): Don't inherit or default
6282 * target.h (struct target_ops) <to_stop>: Use
6283 TARGET_DEFAULT_IGNORE.
6285 2014-02-19 Tom Tromey <tromey@redhat.com>
6287 * target-delegates.c: Rebuild.
6288 * target.c (update_current_target): Don't inherit or default
6289 to_can_run_breakpoint_commands.
6290 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
6291 Use TARGET_DEFAULT_RETURN.
6293 2014-02-19 Tom Tromey <tromey@redhat.com>
6295 * target-delegates.c: Rebuild.
6296 * target.c (update_current_target): Don't inherit or default
6297 to_supports_evaluation_of_breakpoint_conditions.
6298 * target.h (struct target_ops)
6299 <to_supports_evaluation_of_breakpoint_conditions>: Use
6300 TARGET_DEFAULT_RETURN.
6302 2014-02-19 Tom Tromey <tromey@redhat.com>
6304 * target-delegates.c: Rebuild.
6305 * target.c (update_current_target): Don't inherit or default
6306 to_augmented_libraries_svr4_read.
6307 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
6308 Use TARGET_DEFAULT_RETURN.
6310 2014-02-19 Tom Tromey <tromey@redhat.com>
6312 * target-delegates.c: Rebuild.
6313 * target.c (update_current_target): Don't inherit or default
6315 * target.h (struct target_ops) <to_can_use_agent>: Use
6316 TARGET_DEFAULT_RETURN.
6318 2014-02-19 Tom Tromey <tromey@redhat.com>
6320 * target-delegates.c: Rebuild.
6321 * target.c (update_current_target): Don't inherit or default
6323 * target.h (struct target_ops) <to_use_agent>: Use
6324 TARGET_DEFAULT_NORETURN.
6326 2014-02-19 Tom Tromey <tromey@redhat.com>
6328 * target-delegates.c: Rebuild.
6329 * target.c (update_current_target): Don't inherit or default
6331 (return_null): Remove.
6332 * target.h (struct target_ops) <to_traceframe_info>: Use
6333 TARGET_DEFAULT_RETURN.
6335 2014-02-19 Tom Tromey <tromey@redhat.com>
6337 * target-delegates.c: Rebuild.
6338 * target.c (update_current_target): Don't inherit or default
6339 to_static_tracepoint_markers_by_strid.
6340 * target.h (struct target_ops)
6341 <to_static_tracepoint_markers_by_strid>: Use
6342 TARGET_DEFAULT_NORETURN.
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_static_tracepoint_marker_at.
6349 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
6350 Use TARGET_DEFAULT_RETURN.
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
6357 * target.h (struct target_ops) <to_set_permissions>: 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
6365 * target.h (struct target_ops) <to_get_tib_address>: Use
6366 TARGET_DEFAULT_NORETURN.
6368 2014-02-19 Tom Tromey <tromey@redhat.com>
6370 * target-delegates.c: Rebuild.
6371 * target.c (update_current_target): Don't inherit or default
6373 * target.h (struct target_ops) <to_set_trace_notes>: Use
6374 TARGET_DEFAULT_RETURN.
6376 2014-02-19 Tom Tromey <tromey@redhat.com>
6378 * target-delegates.c: Rebuild.
6379 * target.c (update_current_target): Don't initialize
6380 to_set_trace_buffer_size.
6381 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
6382 TARGET_DEFAULT_IGNORE.
6384 2014-02-19 Tom Tromey <tromey@redhat.com>
6386 * target-delegates.c: Rebuild.
6387 * target.c (update_current_target): Don't inherit or default
6388 to_set_circular_trace_buffer.
6389 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
6390 TARGET_DEFAULT_IGNORE.
6392 2014-02-19 Tom Tromey <tromey@redhat.com>
6394 * target-delegates.c: Rebuild.
6395 * target.c (update_current_target): Don't inherit or default
6396 to_set_disconnected_tracing.
6397 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
6398 TARGET_DEFAULT_IGNORE.
6400 2014-02-19 Tom Tromey <tromey@redhat.com>
6402 * target-delegates.c: Rebuild.
6403 * target.c (update_current_target): Don't inherit or default
6404 to_get_min_fast_tracepoint_insn_len.
6405 (return_minus_one): Remove.
6406 * target.h (struct target_ops)
6407 <to_get_min_fast_tracepoint_insn_len>: 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
6413 to_get_raw_trace_data.
6414 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
6415 TARGET_DEFAULT_NORETURN.
6417 2014-02-19 Tom Tromey <tromey@redhat.com>
6419 * target-delegates.c: Rebuild.
6420 * target.c (update_current_target): Don't inherit or default
6421 to_upload_trace_state_variables.
6422 * target.h (struct target_ops) <to_upload_trace_state_variables>:
6423 Use TARGET_DEFAULT_RETURN.
6425 2014-02-19 Tom Tromey <tromey@redhat.com>
6427 * target-delegates.c: Rebuild.
6428 * target.c (update_current_target): Don't inherit or default
6429 to_upload_tracepoints.
6430 * target.h (struct target_ops) <to_upload_tracepoints>: Use
6431 TARGET_DEFAULT_RETURN.
6433 2014-02-19 Tom Tromey <tromey@redhat.com>
6435 * target-delegates.c: Rebuild.
6436 * target.c (update_current_target): Don't inherit or default
6438 * target.h (struct target_ops) <to_save_trace_data>: Use
6439 TARGET_DEFAULT_NORETURN.
6441 2014-02-19 Tom Tromey <tromey@redhat.com>
6443 * target-delegates.c: Rebuild.
6444 * target.c (update_current_target): Don't inherit or default
6445 to_get_trace_state_variable_value.
6446 * target.h (struct target_ops)
6447 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
6449 2014-02-19 Tom Tromey <tromey@redhat.com>
6451 * target-delegates.c: Rebuild.
6452 * target.c (update_current_target): Don't inherit or default
6454 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
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
6461 * target.h (struct target_ops) <to_trace_stop>: 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_get_tracepoint_status.
6469 * target.h (struct target_ops) <to_get_tracepoint_status>: 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_get_trace_status.
6477 * target.h (struct target_ops) <to_get_trace_status>: Use
6478 TARGET_DEFAULT_RETURN.
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
6485 * target.h (struct target_ops) <to_trace_start>: Use
6486 TARGET_DEFAULT_NORETURN.
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_trace_set_readonly_regions.
6493 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
6494 Use 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
6500 to_disable_tracepoint.
6501 * target.h (struct target_ops) <to_disable_tracepoint>: Use
6502 TARGET_DEFAULT_NORETURN.
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_enable_tracepoint.
6509 * target.h (struct target_ops) <to_enable_tracepoint>: Use
6510 TARGET_DEFAULT_NORETURN.
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_download_trace_state_variable.
6517 * target.h (struct target_ops) <to_download_trace_state_variable>:
6518 Use TARGET_DEFAULT_NORETURN.
6520 2014-02-19 Tom Tromey <tromey@redhat.com>
6522 * target-delegates.c: Rebuild.
6523 * target.c (update_current_target): Don't inherit or default
6524 to_can_download_tracepoint.
6525 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
6526 TARGET_DEFAULT_RETURN.
6528 2014-02-19 Tom Tromey <tromey@redhat.com>
6530 * target-delegates.c: Rebuild.
6531 * target.c (update_current_target): Don't inherit or default
6532 to_download_tracepoint.
6533 * target.h (struct target_ops) <to_download_tracepoint>: Use
6534 TARGET_DEFAULT_NORETURN.
6536 2014-02-19 Tom Tromey <tromey@redhat.com>
6538 * target-delegates.c: Rebuild.
6539 * target.c (update_current_target): Don't inherit or default
6541 * target.h (struct target_ops) <to_trace_init>: Use
6542 TARGET_DEFAULT_RETURN.
6544 2014-02-19 Tom Tromey <tromey@redhat.com>
6546 * target-delegates.c: Rebuild.
6547 * target.c (update_current_target): Don't inherit or default
6548 to_supports_string_tracing.
6549 * target.h (struct target_ops) <to_supports_string_tracing>: Use
6550 TARGET_DEFAULT_RETURN.
6552 2014-02-19 Tom Tromey <tromey@redhat.com>
6554 * target-delegates.c: Rebuild.
6555 * target.c (update_current_target): Don't inherit or default
6556 to_supports_enable_disable_tracepoint.
6557 * target.h (struct target_ops)
6558 <to_supports_enable_disable_tracepoint>: Use
6559 TARGET_DEFAULT_RETURN.
6561 2014-02-19 Tom Tromey <tromey@redhat.com>
6563 * target-delegates.c: Rebuild.
6564 * target.c (update_current_target): Don't inherit or default
6565 to_supports_multi_process.
6566 * target.h (struct target_ops) <to_supports_multi_process>: Use
6567 TARGET_DEFAULT_RETURN.
6569 2014-02-19 Tom Tromey <tromey@redhat.com>
6571 * target-delegates.c: Rebuild.
6572 * target.c (update_current_target): Don't inherit or default
6573 to_get_ada_task_ptid.
6574 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
6575 TARGET_DEFAULT_FUNC.
6577 2014-02-19 Tom Tromey <tromey@redhat.com>
6579 * target-delegates.c: Rebuild.
6580 * target.c (update_current_target): Don't inherit or default
6581 to_thread_architecture.
6582 * target.h (struct target_ops) <to_thread_architecture>: Use
6583 TARGET_DEFAULT_FUNC.
6585 2014-02-19 Tom Tromey <tromey@redhat.com>
6587 * target-delegates.c: Rebuild.
6588 * target.c (update_current_target): Don't inherit or default
6589 to_execution_direction.
6590 * target.h (struct target_ops) <to_execution_direction>: Use
6591 TARGET_DEFAULT_FUNC.
6593 2014-02-19 Tom Tromey <tromey@redhat.com>
6595 * target-delegates.c: Rebuild.
6596 * target.c (update_current_target): Don't inherit or default
6597 to_can_execute_reverse.
6598 * target.h (struct target_ops) <to_can_execute_reverse>: Use
6599 TARGET_DEFAULT_RETURN.
6600 (target_can_execute_reverse): Unconditionally delegate.
6602 2014-02-19 Tom Tromey <tromey@redhat.com>
6604 * target-delegates.c: Rebuild.
6605 * target.c (update_current_target): Don't inherit or default
6607 (dummy_goto_bookmark): Remove.
6608 (init_dummy_target): Don't inherit or default to_goto_bookmark.
6609 * target.h (struct target_ops) <to_goto_bookmark>: Use
6610 TARGET_DEFAULT_NORETURN.
6612 2014-02-19 Tom Tromey <tromey@redhat.com>
6614 * target-delegates.c: Rebuild.
6615 * target.c (update_current_target): Don't inherit or default
6617 (dummy_get_bookmark): Remove.
6618 (init_dummy_target): Don't inherit or default to_get_bookmark.
6619 * target.h (struct target_ops) <to_get_bookmark>: Use
6620 TARGET_DEFAULT_NORETURN
6622 2014-02-19 Tom Tromey <tromey@redhat.com>
6624 * target-delegates.c: Rebuild.
6625 * target.c (update_current_target): Don't inherit or default
6626 to_make_corefile_notes.
6627 (init_dummy_target): Don't initialize to_make_corefile_notes.
6628 * target.h (struct target_ops) <to_make_corefile_notes>: Use
6629 TARGET_DEFAULT_FUNC.
6631 2014-02-19 Tom Tromey <tromey@redhat.com>
6633 * target-delegates.c: Rebuild.
6634 * target.c (update_current_target): Don't inherit or default
6635 to_find_memory_regions.
6636 (init_dummy_target): Don't initialize to_find_memory_regions.
6637 * target.h (struct target_ops) <to_find_memory_regions>: Use
6638 TARGET_DEFAULT_FUNC.
6640 2014-02-19 Tom Tromey <tromey@redhat.com>
6642 * target-delegates.c: Rebuild.
6643 * target.c (update_current_target): Don't inherit or default
6645 * target.h (struct target_ops) <to_log_command>: Use
6646 TARGET_DEFAULT_IGNORE.
6647 (target_log_command): Unconditionally delegate.
6649 2014-02-19 Tom Tromey <tromey@redhat.com>
6651 * target-delegates.c: Rebuild.
6652 * target.c (update_current_target): Don't inherit or default
6653 to_pid_to_exec_file.
6654 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
6655 TARGET_DEFAULT_RETURN.
6657 2014-02-19 Tom Tromey <tromey@redhat.com>
6659 * target-delegates.c: Rebuild.
6660 * target.c (update_current_target): Don't inherit or default
6662 (target_thread_name): Unconditionally delegate.
6663 * target.h (struct target_ops) <to_thread_name>: Use
6664 TARGET_DEFAULT_RETURN.
6666 2014-02-19 Tom Tromey <tromey@redhat.com>
6668 * target-delegates.c: Rebuild.
6669 * target.c (update_current_target): Don't inherit or default
6670 to_extra_thread_info.
6671 * target.h (struct target_ops) <to_extra_thread_info>: Use
6672 TARGET_DEFAULT_RETURN.
6674 2014-02-19 Tom Tromey <tromey@redhat.com>
6676 * target-delegates.c: Rebuild.
6677 * target.c (update_current_target): Don't inherit or default
6679 * target.h (struct target_ops) <to_has_exited>: Use
6680 TARGET_DEFAULT_RETURN..
6682 2014-02-19 Tom Tromey <tromey@redhat.com>
6684 * target-delegates.c: Rebuild.
6685 * target.c (update_current_target): Don't inherit or default
6686 to_set_syscall_catchpoint.
6687 (return_one): Remove.
6688 * target.h (struct target_ops) <to_set_syscall_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_exec_catchpoint.
6696 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
6697 TARGET_DEFAULT_RETURN.
6699 2014-01-08 Tom Tromey <tromey@redhat.com>
6701 * target-delegates.c: Rebuild.
6702 * target.c (update_current_target): Don't inherit or default
6703 to_insert_exec_catchpoint.
6704 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
6705 TARGET_DEFAULT_RETURN.
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
6711 to_remove_vfork_catchpoint.
6712 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
6713 TARGET_DEFAULT_RETURN.
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
6719 to_insert_vfork_catchpoint.
6720 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
6721 TARGET_DEFAULT_RETURN.
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_remove_fork_catchpoint.
6728 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
6729 TARGET_DEFAULT_RETURN.
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
6735 to_insert_fork_catchpoint.
6736 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
6737 TARGET_DEFAULT_RETURN.
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_post_startup_inferior.
6744 * target.h (struct target_ops) <to_post_startup_inferior>: 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
6752 * target.h (struct target_ops) <to_load>: Use
6753 TARGET_DEFAULT_NORETURN.
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_info>: Use
6761 TARGET_DEFAULT_FUNC.
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_terminal_save_ours.
6768 * target.h (struct target_ops) <to_terminal_save_ours>: Use
6769 TARGET_DEFAULT_IGNORE.
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
6776 * target.h (struct target_ops) <to_terminal_ours>: Use
6777 TARGET_DEFAULT_IGNORE.
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_terminal_ours_for_output.
6784 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
6785 TARGET_DEFAULT_IGNORE.
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_terminal_inferior.
6792 * target.h (struct target_ops) <to_terminal_inferior>: Use
6793 TARGET_DEFAULT_IGNORE.
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
6800 * target.h (struct target_ops) <to_terminal_init>: Use
6801 TARGET_DEFAULT_IGNORE.
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_can_accel_watchpoint_condition.
6808 * target.h (struct target_ops)
6809 <to_can_accel_watchpoint_condition>: Use 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_region_ok_for_hw_watchpoint.
6816 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
6817 Use TARGET_DEFAULT_FUNC.
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_watchpoint_addr_within_range.
6824 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
6825 Use TARGET_DEFAULT_FUNC.
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
6831 to_remove_watchpoint.
6832 * target.h (struct target_ops) <to_remove_watchpoint>: Use
6833 TARGET_DEFAULT_NORETURN.
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
6839 to_insert_watchpoint.
6840 * target.h (struct target_ops) <to_insert_watchpoint>: Use
6841 TARGET_DEFAULT_RETURN.
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
6847 to_remove_hw_breakpoint.
6848 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
6849 TARGET_DEFAULT_RETURN.
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
6855 to_insert_hw_breakpoint.
6856 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
6857 TARGET_DEFAULT_RETURN.
6859 2014-02-19 Tom Tromey <tromey@redhat.com>
6861 * target-delegates.c: Rebuild.
6862 * target.c (update_current_target): Don't inherit or default
6863 to_can_use_hw_breakpoint.
6864 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
6865 TARGET_DEFAULT_RETURN.
6867 2014-02-19 Tom Tromey <tromey@redhat.com>
6869 * target-delegates.c: Rebuild.
6870 * target.c (update_current_target): Don't inherit or default
6872 * target.h (struct target_ops) <to_files_info>: Use
6873 TARGET_DEFAULT_IGNORE.
6875 2014-02-19 Tom Tromey <tromey@redhat.com>
6877 * target-delegates.c: Rebuild.
6878 * target.c (update_current_target): Don't inherit or default
6880 * target.h (struct target_ops) <to_store>: Use
6881 TARGET_DEFAULT_NORETURN.
6883 2014-02-19 Tom Tromey <tromey@redhat.com>
6885 * target-delegates.c: Rebuild.
6886 * target.c (update_current_target): Don't inherit or default
6888 * target.h (struct target_ops) <to_post_attach>: Use
6889 TARGET_DEFAULT_IGNORE.
6891 2014-02-19 Tom Tromey <tromey@redhat.com>
6893 * target-delegates.c: Rebuild.
6894 * target.c (update_current_target): Don't inherit or default
6896 (default_rcmd): New function.
6897 (do_monitor_command): Unconditionally delegate.
6898 * target.h (struct target_ops) <to_rmcd>: Use
6899 TARGET_DEFAULT_FUNC.
6901 2014-02-19 Tom Tromey <tromey@redhat.com>
6903 * target-delegates.c: Rebuild.
6904 * target.c (init_dummy_target): Don't initialize to_attach.
6905 (target_attach): Unconditionally delegate.
6906 * target.h (struct target_ops) <to_attach>: Use
6907 TARGET_DEFAULT_FUNC.
6909 2014-02-19 Tom Tromey <tromey@redhat.com>
6911 * target-delegates.c: Rebuild.
6912 * target.c (target_detach): Unconditionally delegate.
6913 (init_dummy_target): Don't initialize to_detach.
6914 * target.h (struct target_ops) <to_detach>: Use
6915 TARGET_DEFAULT_IGNORE.
6917 2014-02-19 Tom Tromey <tromey@redhat.com>
6919 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
6921 (target_augmented_libraries_svr4_read): Add argument.
6922 * target.c (update_current_target): Update.
6923 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
6926 2014-02-19 Tom Tromey <tromey@redhat.com>
6928 * target.h (struct target_ops) <to_call_history_range>: Add
6930 * target.c (target_call_history_range): Add argument.
6931 * record-btrace.c (record_btrace_call_history_range): Add 'self'
6933 (record_btrace_call_history_from): Update.
6935 2014-02-19 Tom Tromey <tromey@redhat.com>
6937 * target.h (struct target_ops) <to_call_history_from>: Add
6939 * target.c (target_call_history_from): Add argument.
6940 * record-btrace.c (record_btrace_call_history_from): Add 'self'
6943 2014-02-19 Tom Tromey <tromey@redhat.com>
6945 * target.h (struct target_ops) <to_call_history>: Add argument.
6946 * target.c (target_call_history): Add argument.
6947 * record-btrace.c (record_btrace_call_history): Add 'self'
6950 2014-02-19 Tom Tromey <tromey@redhat.com>
6952 * target.h (struct target_ops) <to_insn_history_range>: Add
6954 * target.c (target_insn_history_range): Add argument.
6955 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
6957 (record_btrace_insn_history_from): Update.
6959 2014-02-19 Tom Tromey <tromey@redhat.com>
6961 * target.h (struct target_ops) <to_insn_history_from>: Add
6963 * target.c (target_insn_history_from): Add argument.
6964 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
6967 2014-02-19 Tom Tromey <tromey@redhat.com>
6969 * target.h (struct target_ops) <to_insn_history>: Add argument.
6970 * target.c (target_insn_history): Add argument.
6971 * record-btrace.c (record_btrace_insn_history): Add 'self'
6974 2014-02-19 Tom Tromey <tromey@redhat.com>
6976 * target.h (struct target_ops) <to_goto_record>: Add argument.
6977 * target.c (target_goto_record): Add argument.
6978 * record-full.c (record_full_goto): Add 'self' argument.
6979 * record-btrace.c (record_btrace_goto): Add 'self' argument.
6981 2014-02-19 Tom Tromey <tromey@redhat.com>
6983 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
6984 * target.c (target_goto_record_end): Add argument.
6985 * record-full.c (record_full_goto_end): Add 'self' argument.
6986 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
6988 2014-02-19 Tom Tromey <tromey@redhat.com>
6990 * target.h (struct target_ops) <to_goto_record_begin>: Add
6992 * target.c (target_goto_record_begin): Add argument.
6993 * record-full.c (record_full_goto_begin): Add 'self' argument.
6994 * record-btrace.c (record_btrace_goto_begin): Add 'self'
6997 2014-02-19 Tom Tromey <tromey@redhat.com>
6999 * target.h (struct target_ops) <to_record_is_replaying>: Add
7001 * target.c (target_record_is_replaying): Add argument.
7002 * record-full.c (record_full_is_replaying): Add 'self' argument.
7003 * record-btrace.c (record_btrace_is_replaying): Add 'self'
7005 (record_btrace_xfer_partial, record_btrace_store_registers)
7006 (record_btrace_prepare_to_store, record_btrace_resume)
7007 (record_btrace_wait, record_btrace_decr_pc_after_break)
7008 (record_btrace_find_new_threads, record_btrace_thread_alive):
7011 2014-02-19 Tom Tromey <tromey@redhat.com>
7013 * target.h (struct target_ops) <to_delete_record>: Add argument.
7014 * target.c (target_delete_record): Add argument.
7015 * record-full.c (record_full_delete): Add 'self' argument.
7017 2014-02-19 Tom Tromey <tromey@redhat.com>
7019 * target.h (struct target_ops) <to_save_record>: Add argument.
7020 * target.c (target_save_record): Add argument.
7021 * record-full.c (record_full_save): Add 'self' argument.
7022 (record_full_save): Add 'self' argument.
7024 2014-02-19 Tom Tromey <tromey@redhat.com>
7026 * target.h (struct target_ops) <to_info_record>: Add argument.
7027 * target.c (target_info_record): Add argument.
7028 * record.c (info_record_command): Add argument.
7029 * record-full.c (record_full_info): Add 'self' argument.
7030 * record-btrace.c (record_btrace_info): Add 'self' argument.
7032 2014-02-19 Tom Tromey <tromey@redhat.com>
7034 * target.h (struct target_ops) <to_stop_recording>: Add argument.
7035 * target.c (target_stop_recording): Add argument.
7036 * record.c (record_stop): Add argument.
7037 * record-btrace.c (record_btrace_stop_recording): Add 'self'
7040 2014-02-19 Tom Tromey <tromey@redhat.com>
7042 * target.h (struct target_ops) <to_read_btrace>: Add argument.
7043 * target.c (struct target_ops) <to_read_btrace>: Add argument.
7044 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
7046 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
7047 (_initialize_amd64_linux_nat): Use it.
7048 * i386-linux-nat.c (i386_linux_read_btrace): New function.
7049 (_initialize_i386_linux_nat): Use it.
7051 2014-02-19 Tom Tromey <tromey@redhat.com>
7053 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
7054 * target.c (target_teardown_btrace): Add argument.
7055 * remote.c (remote_teardown_btrace): Add 'self' argument.
7056 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
7058 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
7061 2014-02-19 Tom Tromey <tromey@redhat.com>
7063 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
7064 * target.c (target_disable_btrace): Add argument.
7065 * remote.c (remote_disable_btrace): Add 'self' argument.
7066 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
7068 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
7071 2014-02-19 Tom Tromey <tromey@redhat.com>
7073 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
7074 * target.c (target_enable_btrace): Add argument.
7075 * remote.c (remote_enable_btrace): Add 'self' argument.
7076 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
7078 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
7081 2014-02-19 Tom Tromey <tromey@redhat.com>
7083 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
7084 (target_can_use_agent): Add argument.
7085 * target.c (update_current_target): Update.
7086 * remote.c (remote_can_use_agent): Add 'self' argument.
7087 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
7089 2014-02-19 Tom Tromey <tromey@redhat.com>
7091 * target.h (struct target_ops) <to_use_agent>: Add argument.
7092 (target_use_agent): Add argument.
7093 * target.c (update_current_target): Update.
7094 * remote.c (remote_use_agent): Add 'self' argument.
7095 * inf-child.c (inf_child_use_agent): Add 'self' argument.
7097 2014-02-19 Tom Tromey <tromey@redhat.com>
7099 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
7100 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
7101 (target_traceframe_info): Add argument.
7102 * target.c (update_current_target): Update.
7103 * remote.c (remote_traceframe_info): Add 'self' argument.
7104 * ctf.c (ctf_traceframe_info): Add 'self' argument.
7106 2014-02-19 Tom Tromey <tromey@redhat.com>
7108 * target.h (target_static_tracepoint_markers_by_strid): Add
7110 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
7112 * target.c (update_current_target): Update.
7113 * remote.c (struct target_ops)
7114 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
7115 * linux-nat.c (struct target_ops)
7116 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
7118 2014-02-19 Tom Tromey <tromey@redhat.com>
7120 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
7122 (target_static_tracepoint_marker_at): Add argument.
7123 * target.c (update_current_target): Update.
7124 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
7127 2014-02-19 Tom Tromey <tromey@redhat.com>
7129 * target.h (struct target_ops) <to_set_permissions>: Add argument.
7130 (target_set_permissions): Add argument.
7131 * target.c (update_current_target): Update.
7132 * remote.c (remote_set_permissions): Add 'self' argument.
7133 (remote_start_remote): Update.
7135 2014-02-19 Tom Tromey <tromey@redhat.com>
7137 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
7138 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
7139 (target_get_tib_address): Add argument.
7140 * target.c (update_current_target): Update.
7141 * remote.c (remote_get_tib_address): Add 'self' argument.
7143 2014-02-19 Tom Tromey <tromey@redhat.com>
7145 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
7146 (target_set_trace_notes): Add argument.
7147 * target.c (update_current_target): Update.
7148 * remote.c (remote_set_trace_notes): Add 'self' argument.
7150 2014-02-19 Tom Tromey <tromey@redhat.com>
7152 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
7154 (target_set_trace_buffer_size): Add argument.
7155 * target.c (update_current_target): Update.
7156 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
7158 2014-02-19 Tom Tromey <tromey@redhat.com>
7160 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
7162 (target_set_circular_trace_buffer): Add argument.
7163 * target.c (update_current_target): Update.
7164 * remote.c (remote_set_circular_trace_buffer): Add 'self'
7167 2014-02-19 Tom Tromey <tromey@redhat.com>
7169 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
7171 (target_set_disconnected_tracing): Add argument.
7172 * target.c (update_current_target): Update.
7173 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
7175 2014-02-19 Tom Tromey <tromey@redhat.com>
7177 * target.h (struct target_ops)
7178 <to_get_min_fast_tracepoint_insn_len>: Add argument.
7179 (target_get_min_fast_tracepoint_insn_len): Add argument.
7180 * target.c (update_current_target): Update.
7181 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
7184 2014-02-19 Tom Tromey <tromey@redhat.com>
7186 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
7188 (target_get_raw_trace_data): Add argument.
7189 * target.c (update_current_target): Update.
7190 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
7192 2014-02-19 Tom Tromey <tromey@redhat.com>
7194 * target.h (struct target_ops) <to_upload_trace_state_variables>:
7196 (target_upload_trace_state_variables): Add argument.
7197 * target.c (update_current_target): Update.
7198 * remote.c (remote_upload_trace_state_variables): Add 'self'
7200 (remote_start_remote): Update.
7202 2014-02-19 Tom Tromey <tromey@redhat.com>
7204 * target.h (struct target_ops) <to_upload_tracepoints>: Add
7206 (target_upload_tracepoints): Add argument.
7207 * target.c (update_current_target): Update.
7208 * remote.c (remote_upload_tracepoints): Add 'self' argument.
7209 (remote_start_remote): Update.
7211 2014-02-19 Tom Tromey <tromey@redhat.com>
7213 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
7214 (target_save_trace_data): Add argument.
7215 * target.c (update_current_target): Update.
7216 * remote.c (remote_save_trace_data): Add 'self' argument.
7218 2014-02-19 Tom Tromey <tromey@redhat.com>
7220 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
7222 * target.h (struct target_ops)
7223 <to_get_trace_state_variable_value>: Add argument.
7224 (target_get_trace_state_variable_value): Add argument.
7225 * target.c (update_current_target): Update.
7226 * remote.c (remote_get_trace_state_variable_value): Add 'self'
7228 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
7230 2014-02-19 Tom Tromey <tromey@redhat.com>
7232 * tracepoint.c (tfile_trace_find): Add 'self' argument.
7233 * target.h (struct target_ops) <to_trace_find>: Add argument.
7234 (target_trace_find): Add argument.
7235 * target.c (update_current_target): Update.
7236 * remote.c (remote_trace_find): Add 'self' argument.
7237 * ctf.c (ctf_trace_find): Add 'self' argument.
7239 2014-02-19 Tom Tromey <tromey@redhat.com>
7241 * target.h (struct target_ops) <to_trace_stop>: Add argument.
7242 (target_trace_stop): Add argument.
7243 * target.c (update_current_target): Update.
7244 * remote.c (remote_trace_stop): Add 'self' argument.
7246 2014-02-19 Tom Tromey <tromey@redhat.com>
7248 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
7249 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
7251 (target_get_tracepoint_status): Add argument.
7252 * target.c (update_current_target): Update.
7253 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
7255 2014-02-19 Tom Tromey <tromey@redhat.com>
7257 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
7258 * target.h (struct target_ops) <to_get_trace_status>: Add
7260 (target_get_trace_status): Add argument.
7261 * target.c (update_current_target): Update.
7262 * remote.c (remote_get_trace_status): Add 'self' argument.
7263 (remote_start_remote, remote_can_download_tracepoint): Update.
7264 * ctf.c (ctf_get_trace_status): Add 'self' argument.
7266 2014-02-19 Tom Tromey <tromey@redhat.com>
7268 * target.h (struct target_ops) <to_trace_start>: Add argument.
7269 (target_trace_start): Add argument.
7270 * target.c (update_current_target): Update.
7271 * remote.c (remote_trace_start): Add 'self' argument.
7273 2014-02-19 Tom Tromey <tromey@redhat.com>
7275 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
7277 (target_trace_set_readonly_regions): Add argument.
7278 * target.c (update_current_target): Update.
7279 * remote.c (remote_trace_set_readonly_regions): Add 'self'
7282 2014-02-19 Tom Tromey <tromey@redhat.com>
7284 * target.h (struct target_ops) <to_disable_tracepoint>: Add
7286 (target_disable_tracepoint): Add argument.
7287 * target.c (update_current_target): Update.
7288 * remote.c (remote_disable_tracepoint): Add 'self' argument.
7290 2014-02-19 Tom Tromey <tromey@redhat.com>
7292 * target.h (struct target_ops) <to_enable_tracepoint>: Add
7294 (target_enable_tracepoint): Add argument.
7295 * target.c (update_current_target): Update.
7296 * remote.c (remote_enable_tracepoint): Add 'self' argument.
7298 2014-02-19 Tom Tromey <tromey@redhat.com>
7300 * target.h (struct target_ops) <to_download_trace_state_variable>:
7302 (target_download_trace_state_variable): Add argument.
7303 * target.c (update_current_target): Update.
7304 * remote.c (remote_download_trace_state_variable): Add 'self'
7307 2014-02-19 Tom Tromey <tromey@redhat.com>
7309 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
7311 (target_can_download_tracepoint): Add argument.
7312 * target.c (update_current_target): Update.
7313 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
7315 2014-02-19 Tom Tromey <tromey@redhat.com>
7317 * target.h (struct target_ops) <to_download_tracepoint>: Add
7319 (target_download_tracepoint): Add argument.
7320 * target.c (update_current_target): Update.
7321 * remote.c (remote_download_tracepoint): Add 'self' argument.
7323 2014-02-19 Tom Tromey <tromey@redhat.com>
7325 * target.h (struct target_ops) <to_trace_init>: Add argument.
7326 (target_trace_init): Add argument.
7327 * target.c (update_current_target): Update.
7328 * remote.c (remote_trace_init): Add 'self' argument.
7330 2014-02-19 Tom Tromey <tromey@redhat.com>
7332 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
7333 * target.c (target_fileio_readlink): Add argument.
7334 * remote.c (remote_hostio_readlink): Add 'self' argument.
7335 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
7337 2014-02-19 Tom Tromey <tromey@redhat.com>
7339 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
7340 * target.c (target_fileio_unlink): Add argument.
7341 * remote.c (remote_hostio_unlink): Add 'self' argument.
7342 (remote_file_delete): Update.
7343 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
7345 2014-02-19 Tom Tromey <tromey@redhat.com>
7347 * target.h (struct target_ops) <to_fileio_close>: Add argument.
7348 * target.c (target_fileio_close): Add argument.
7349 * remote.c (remote_hostio_close): Add 'self' argument.
7350 (remote_hostio_close_cleanup): Update.
7351 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
7353 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
7355 2014-02-19 Tom Tromey <tromey@redhat.com>
7357 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
7358 * target.c (target_fileio_pread): Add argument.
7359 * remote.c (remote_hostio_pread): Add 'self' argument.
7360 (remote_bfd_iovec_pread, remote_file_get): Update.
7361 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
7363 2014-02-19 Tom Tromey <tromey@redhat.com>
7365 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
7366 * target.c (target_fileio_pwrite): Add argument.
7367 * remote.c (remote_hostio_pwrite): Add 'self' argument.
7368 (remote_file_put): Update.
7369 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
7371 2014-02-19 Tom Tromey <tromey@redhat.com>
7373 * target.h (struct target_ops) <to_fileio_open>: Add argument.
7374 * target.c (target_fileio_open): Add argument.
7375 * remote.c (remote_hostio_open): Add 'self' argument.
7376 (remote_bfd_iovec_open): Add 'self' argument.
7377 (remote_file_put): Add 'self' argument.
7378 (remote_file_get): Add 'self' argument.
7379 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
7381 2014-02-19 Tom Tromey <tromey@redhat.com>
7383 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
7385 (target_can_run_breakpoint_commands): Add argument.
7386 * target.c (update_current_target): Update.
7387 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
7389 (remote_insert_breakpoint): Add 'self' argument.
7390 (remote_insert_hw_breakpoint): Add 'self' argument.
7391 (remote_can_run_breakpoint_commands): Add 'self' argument.
7393 2014-02-19 Tom Tromey <tromey@redhat.com>
7395 * target.h (struct target_ops)
7396 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
7397 (target_supports_evaluation_of_breakpoint_conditions): Add
7399 * target.c (update_current_target): Update.
7400 * remote.c (remote_supports_cond_breakpoints): Add 'self'
7402 (remote_insert_breakpoint): Add 'self' argument.
7403 (remote_insert_hw_breakpoint): Add 'self' argument.
7404 (remote_supports_cond_breakpoints): Add 'self' argument.
7406 2014-02-19 Tom Tromey <tromey@redhat.com>
7408 * target.h (struct target_ops) <to_supports_string_tracing>: Add
7410 (target_supports_string_tracing): Add argument.
7411 * target.c (update_current_target): Update.
7412 * remote.c (remote_supports_string_tracing): Add 'self' argument.
7414 2014-02-19 Tom Tromey <tromey@redhat.com>
7416 * target.h (struct target_ops)
7417 <to_supports_disable_randomization>: Add argument.
7418 * target.c (find_default_supports_disable_randomization): Add
7420 (target_supports_disable_randomization): Add argument.
7421 (find_default_supports_disable_randomization): Add 'self'
7423 * remote.c (extended_remote_supports_disable_randomization): Add
7425 (remote_supports_disable_randomization): Add 'self' argument.
7426 (extended_remote_create_inferior): Update.
7427 * linux-nat.c (linux_nat_supports_disable_randomization): Add
7430 2014-02-19 Tom Tromey <tromey@redhat.com>
7432 * target.h (struct target_ops)
7433 <to_supports_enable_disable_tracepoint>: Add argument.
7434 (target_supports_enable_disable_tracepoint): Add argument.
7435 * target.c (update_current_target): Update.
7436 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
7439 2014-02-19 Tom Tromey <tromey@redhat.com>
7441 * target.h (struct target_ops) <to_supports_multi_process>: Add
7443 (target_supports_multi_process): Add argument.
7444 * target.c (update_current_target): Update.
7445 * remote.c (remote_supports_multi_process): Add 'self' argument.
7446 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
7448 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
7451 2014-02-19 Tom Tromey <tromey@redhat.com>
7453 * target.h (struct target_ops) <to_execution_direction>: Add
7455 (target_execution_direction): Add argument.
7456 * target.c (default_execution_direction): Add 'self' argument.
7457 * record-full.c (record_full_execution_direction): Add 'self'
7460 2014-02-19 Tom Tromey <tromey@redhat.com>
7462 * target.h (struct target_ops) <to_can_execute_reverse>: Add
7464 (target_can_execute_reverse): Add argument.
7465 * remote.c (remote_can_execute_reverse): Add 'self' argument.
7466 * record-full.c (record_full_can_execute_reverse): Add 'self'
7468 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
7471 2014-02-19 Tom Tromey <tromey@redhat.com>
7473 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
7474 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
7476 (target_get_ada_task_ptid): Add argument.
7477 * target.c (update_current_target): Update.
7478 (default_get_ada_task_ptid): Add 'self' argument.
7479 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
7480 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
7481 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
7483 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
7485 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
7487 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
7489 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
7490 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
7493 2014-02-19 Tom Tromey <tromey@redhat.com>
7495 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
7496 (target_goto_bookmark): Add argument.
7497 * target.c (dummy_goto_bookmark): Add 'self' argument.
7498 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
7500 2014-02-19 Tom Tromey <tromey@redhat.com>
7502 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
7503 (target_get_bookmark): Add argument.
7504 * target.c (dummy_get_bookmark): Add 'self' argument.
7505 * record-full.c (record_full_get_bookmark): Add 'self' argument.
7507 2014-02-19 Tom Tromey <tromey@redhat.com>
7509 * target.h (struct target_ops) <to_make_corefile_notes>: Add
7511 (target_make_corefile_notes): Add argument.
7512 * target.c (dummy_make_corefile_notes): Add 'self' argument.
7513 * procfs.c (procfs_make_note_section): Add 'self' argument.
7514 (procfs_make_note_section): Add 'self' argument.
7515 (procfs_make_note_section): Add 'self' argument.
7516 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
7518 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
7519 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
7520 * exec.c (exec_make_note_section): Add 'self' argument.
7521 (exec_make_note_section): Add 'self' argument.
7523 2014-02-19 Tom Tromey <tromey@redhat.com>
7525 * target.h (struct target_ops) <to_find_memory_regions>: Add
7527 (target_find_memory_regions): Add argument.
7528 * target.c (dummy_find_memory_regions): Add 'self' argument.
7529 * procfs.c (proc_find_memory_regions): Add 'self' argument.
7530 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
7531 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
7532 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
7533 * exec. (exec_do_find_memory_regions): New global.
7534 (exec_set_find_memory_regions): Rewrite.
7535 (exec_find_memory_regions): New function.
7536 (init_exec_ops): Use exec_find_memory_regions.
7538 2014-02-19 Tom Tromey <tromey@redhat.com>
7540 * target.h (struct target_ops) <to_supports_non_stop>: Add
7542 * target.c (find_default_supports_non_stop): Add argument.
7543 (target_supports_non_stop): Add argument.
7544 (find_default_supports_non_stop): Add 'self' argument.
7545 * remote.c (remote_supports_non_stop): Add 'self' argument.
7546 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
7548 2014-02-19 Tom Tromey <tromey@redhat.com>
7550 * target.h (struct target_ops) <to_log_command>: Add argument.
7551 (target_log_command): Add argument.
7552 * serial.h (serial_log_command): Add 'self' argument.
7553 * serial.c (serial_log_command): Add 'self' argument.
7555 2014-02-19 Tom Tromey <tromey@redhat.com>
7557 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
7558 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
7560 (target_pid_to_exec_file): Add argument.
7561 * target.c (debug_to_pid_to_exec_file): Add argument.
7562 (update_current_target): Update.
7563 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
7564 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
7565 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
7566 (linux_handle_extended_wait): Update.
7567 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
7568 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
7569 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
7570 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
7572 2014-02-19 Tom Tromey <tromey@redhat.com>
7574 * target.h (struct target_ops) <to_rcmd>: Add argument.
7575 (target_rcmd): Add argument.
7576 * target.c (debug_to_rcmd): Add argument.
7577 (update_current_target, do_monitor_command): Update.
7578 * remote.c (remote_rcmd): Add 'self' argument.
7579 * monitor.c (monitor_rcmd): Add 'self' argument.
7581 2014-02-19 Tom Tromey <tromey@redhat.com>
7583 * windows-nat.c (windows_stop): Add 'self' argument.
7584 * target.h (struct target_ops) <to_stop>: Add argument.
7585 * target.c (target_stop): Add argument.
7586 (debug_to_stop): Add argument.
7587 (update_current_target): Update.
7588 * remote.c (remote_stop): Add 'self' argument.
7589 * remote-sim.c (gdbsim_stop): Add 'self' argument.
7590 (gdbsim_cntrl_c): Update.
7591 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
7592 * procfs.c (procfs_stop): Add 'self' argument.
7593 * nto-procfs.c (procfs_stop): Add 'self' argument.
7594 * monitor.c (monitor_stop): Add 'self' argument.
7595 (monitor_open): Update.
7596 * linux-nat.c (linux_nat_stop): Add argument.
7597 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
7598 * gnu-nat.c (gnu_stop): Add 'self' argument.
7599 * darwin-nat.c (darwin_stop): Add 'self' argument.
7601 2014-02-19 Tom Tromey <tromey@redhat.com>
7603 * target.h (struct target_ops) <to_thread_name>: Add argument.
7604 * target.c (target_thread_name): Add argument.
7605 (update_current_target): Update.
7606 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
7608 2014-02-19 Tom Tromey <tromey@redhat.com>
7610 * target.h (struct target_ops) <to_extra_thread_info>: Add
7612 (target_extra_thread_info): Add argument.
7613 * target.c (update_current_target): Update.
7614 * remote.c (remote_threads_extra_info): Add 'self' argument.
7615 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
7617 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
7618 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
7619 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
7621 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
7623 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
7625 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
7628 2014-02-19 Tom Tromey <tromey@redhat.com>
7630 * target.h (struct target_ops) <to_program_signals>: Add argument.
7631 * target.c (target_program_signals): Add argument.
7632 * remote.c (remote_program_signals): Add 'self' argument.
7634 2014-02-19 Tom Tromey <tromey@redhat.com>
7636 * target.h (struct target_ops) <to_pass_signals>: Add argument.
7637 * target.c (target_pass_signals): Add argument.
7638 * remote.c (remote_pass_signals): Add 'self' argument.
7639 (remote_start_remote): Update.
7640 * procfs.c (procfs_pass_signals): Add 'self' argument.
7641 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
7642 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
7643 (linux_nat_create_inferior, linux_nat_attach): Update.
7645 2014-02-19 Tom Tromey <tromey@redhat.com>
7647 * windows-nat.c (windows_can_run): Add 'self' argument.
7648 * target.h (struct target_ops) <to_can_run>: Add argument.
7649 (target_can_run): Add argument.
7650 * target.c (debug_to_can_run): Add argument.
7651 (update_current_target): Update.
7652 * nto-procfs.c (procfs_can_run): Add 'self' argument.
7653 * inf-child.c (inf_child_can_run): Add 'self' argument.
7654 * go32-nat.c (go32_can_run): Add 'self' argument.
7656 2014-02-19 Tom Tromey <tromey@redhat.com>
7658 * target.h (struct target_ops) <to_has_exited>: Add argument.
7659 (target_has_exited): Add argument.
7660 * target.c (debug_to_has_exited): Add argument.
7661 (update_current_target): Update.
7663 2014-02-19 Tom Tromey <tromey@redhat.com>
7665 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
7667 (target_set_syscall_catchpoint): Add argument.
7668 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
7670 * target.c (update_current_target): Update.
7672 2014-02-19 Tom Tromey <tromey@redhat.com>
7674 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
7676 (target_remove_exec_catchpoint): Add argument.
7677 * target.c (debug_to_remove_exec_catchpoint): Add argument.
7678 (update_current_target): Update.
7679 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
7682 2014-02-19 Tom Tromey <tromey@redhat.com>
7684 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
7686 (target_insert_exec_catchpoint): Add argument.
7687 * target.c (debug_to_insert_exec_catchpoint): Add argument.
7688 (update_current_target): Update.
7689 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
7692 2014-02-19 Tom Tromey <tromey@redhat.com>
7694 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
7696 (target_remove_vfork_catchpoint): Add argument.
7697 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
7698 (update_current_target): Update.
7699 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
7702 2014-02-19 Tom Tromey <tromey@redhat.com>
7704 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
7706 (target_insert_vfork_catchpoint): Add argument.
7707 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
7708 (update_current_target): Update.
7709 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
7712 2014-02-19 Tom Tromey <tromey@redhat.com>
7714 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
7716 (target_remove_fork_catchpoint): Add argument.
7717 * target.c (debug_to_remove_fork_catchpoint): Add argument.
7718 (update_current_target): Update.
7719 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
7722 2014-02-19 Tom Tromey <tromey@redhat.com>
7724 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
7726 (target_insert_fork_catchpoint): Add argument.
7727 * target.c (debug_to_insert_fork_catchpoint): Add argument.
7728 (update_current_target): Update.
7729 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
7732 2014-02-19 Tom Tromey <tromey@redhat.com>
7734 * target.h (struct target_ops) <to_post_startup_inferior>: Add
7736 (target_post_startup_inferior): Add argument.
7737 * target.c (debug_to_post_startup_inferior): Add argument.
7738 (update_current_target): Update.
7739 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
7741 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
7743 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
7745 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
7747 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
7749 (super_post_startup_inferior): Likewise.
7750 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
7752 (super_post_startup_inferior): Likewise.
7753 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
7754 Add 'self' argument.
7755 (super_post_startup_inferior): Likewise.
7757 2014-02-19 Tom Tromey <tromey@redhat.com>
7759 * target.h (struct target_ops) <to_load>: Add argument.
7760 * target.c (target_load): Add argument.
7761 (debug_to_load): Add argument.
7762 (update_current_target): Update.
7763 * remote.c (remote_load): Add 'self' argument.
7764 * remote-sim.c (gdbsim_load): Add 'self' argument.
7765 * remote-mips.c (mips_load): Add 'self' argument.
7766 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
7767 * monitor.c (monitor_load): Add 'self' argument.
7768 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
7770 2014-02-19 Tom Tromey <tromey@redhat.com>
7772 * target.h (struct target_ops) <to_terminal_info>: Add argument.
7773 (target_terminal_info): Add argument.
7774 * target.c (debug_to_terminal_info): Add argument.
7775 (default_terminal_info): Likewise.
7776 * inflow.c (child_terminal_info): Add 'self' argument.
7777 * inferior.h (child_terminal_info): Add 'self' argument.
7778 * go32-nat.c (go32_terminal_info): Add 'self' argument.
7780 2014-02-19 Tom Tromey <tromey@redhat.com>
7782 * target.h (struct target_ops) <to_terminal_save_ours>: Add
7784 (target_terminal_save_ours): Add argument.
7785 * target.c (debug_to_terminal_save_ours): Add argument.
7786 (update_current_target): Update.
7787 * inflow.c (terminal_save_ours): Add 'self' argument.
7788 * inferior.h (terminal_save_ours): Add 'self' argument.
7790 2014-02-19 Tom Tromey <tromey@redhat.com>
7792 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
7793 (target_terminal_ours): Add argument.
7794 * target.c (debug_to_terminal_ours): Add argument.
7795 (update_current_target): Update.
7796 * remote.c (remote_terminal_ours): Add 'self' argument.
7797 (remote_close): Update.
7798 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
7799 * inflow.c (terminal_ours): Add 'self' argument.
7800 * inferior.h (terminal_ours): Add 'self' argument.
7801 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
7803 2014-02-19 Pedro Alves <palves@redhat.com>
7804 Tom Tromey <tromey@redhat.com>
7806 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
7808 (target_terminal_ours_for_output): Add argument.
7809 * target.c (debug_to_terminal_ours_for_output): Add argument.
7810 (update_current_target): Update.
7811 * inflow.c (terminal_ours_for_output): Add 'self' argument.
7812 * inferior.h (terminal_ours_for_output): Add 'self' argument.
7813 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
7815 2014-02-19 Tom Tromey <tromey@redhat.com>
7817 * target.h (struct target_ops) <to_terminal_inferior>: Add
7819 * target.c (target_terminal_inferior): Add argument.
7820 (update_current_target): Update.
7821 * remote.c (remote_terminal_inferior): Add 'self' argument.
7822 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
7823 * inflow.c (terminal_inferior): Add 'self' argument.
7824 * inferior.h (terminal_inferior): Add 'self' argument.
7825 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
7826 (go32_terminal_inferior): Add 'self' argument.
7828 2014-02-19 Tom Tromey <tromey@redhat.com>
7830 * target.h (struct target_ops) <to_terminal_init>: Add argument.
7831 (target_terminal_init): Add argument.
7832 * target.c (debug_to_terminal_init): Add argument.
7833 (update_current_target): Update.
7834 * inflow.c (terminal_init_inferior): Add 'self' argument.
7835 * inferior.h (terminal_init_inferior): Add 'self' argument.
7836 * go32-nat.c (go32_terminal_init): Add 'self' argument.
7837 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
7839 2014-02-19 Tom Tromey <tromey@redhat.com>
7841 * target.h (struct target_ops)
7842 <to_can_accel_watchpoint_condition>: Add argument.
7843 (target_can_accel_watchpoint_condition): Add argument.
7844 * target.c (debug_to_can_accel_watchpoint_condition): Add
7846 (update_current_target): Update.
7847 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
7850 2014-02-19 Tom Tromey <tromey@redhat.com>
7852 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
7854 (target_region_ok_for_hw_watchpoint): Add argument.
7855 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
7856 (default_region_ok_for_hw_watchpoint): Add argument.
7857 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
7858 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
7860 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
7862 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
7864 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
7866 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
7868 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
7870 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
7871 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
7873 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
7874 Add 'self' argument.
7876 2014-02-19 Tom Tromey <tromey@redhat.com>
7878 * target.h (struct target_ops) <to_insert_watchpoint>: Add
7880 (target_insert_watchpoint): Add argument.
7881 * target.c (debug_to_insert_watchpoint): Add argument.
7882 (update_current_target): Update.
7883 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
7884 * remote.c (remote_insert_watchpoint): Add 'self' argument.
7885 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
7886 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
7887 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
7888 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
7890 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
7891 (procfs_insert_hw_watchpoint): Add 'self' argument.
7892 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
7894 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
7896 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
7898 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
7899 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
7901 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
7904 2014-02-19 Tom Tromey <tromey@redhat.com>
7906 * target.h (struct target_ops) <to_remove_watchpoint>: Add
7908 (target_remove_watchpoint): Add argument.
7909 * target.c (debug_to_remove_watchpoint): Add argument.
7910 (update_current_target): Update.
7911 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
7912 * remote.c (remote_remove_watchpoint): Add 'self' argument.
7913 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
7914 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
7915 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
7916 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
7918 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
7919 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
7921 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
7923 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
7925 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
7926 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
7928 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
7931 2014-02-19 Tom Tromey <tromey@redhat.com>
7933 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
7935 (target_remove_hw_breakpoint): Add argument.
7936 * target.c (debug_to_remove_hw_breakpoint): Add argument.
7937 (update_current_target): Update.
7938 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
7939 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
7941 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
7942 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
7944 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
7947 2014-02-19 Tom Tromey <tromey@redhat.com>
7949 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
7951 (target_insert_hw_breakpoint): Add argument.
7952 * target.c (debug_to_insert_hw_breakpoint): Add argument.
7953 (update_current_target): Update.
7954 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
7955 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
7957 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
7958 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
7959 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
7961 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
7964 2014-02-19 Tom Tromey <tromey@redhat.com>
7966 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
7968 (target_can_use_hardware_watchpoint): Add argument.
7969 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
7970 (update_current_target): Update.
7971 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
7973 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
7975 * remote.c (remote_check_watch_resources): Add 'self' argument.
7976 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
7977 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
7979 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
7980 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
7982 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
7984 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
7986 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
7988 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
7990 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
7992 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
7993 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
7995 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
7998 2014-02-19 Tom Tromey <tromey@redhat.com>
8000 * target.h (struct target_ops) <to_post_attach>: Add argument.
8001 (target_post_attach): Add argument.
8002 * target.c (debug_to_post_attach): Add argument.
8003 (update_current_target): Update.
8004 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
8005 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
8006 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
8007 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
8008 * inf-child.c (inf_child_post_attach): Add 'self' argument.
8010 2014-02-19 Tom Tromey <tromey@redhat.com>
8012 * windows-nat.c (windows_close): Add 'self' argument.
8013 * tracepoint.c (tfile_close): Add 'self' argument.
8014 * target.h (struct target_ops) <to_close>: Add argument.
8015 * target.c (target_close): Add argument.
8016 (update_current_target): Update.
8017 * remote.c (remote_close): Add 'self' argument.
8018 * remote-sim.c (gdbsim_close): Add 'self' argument.
8019 * remote-mips.c (mips_close): Add 'self' argument.
8020 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
8021 * record-full.c (record_full_close): Add 'self' argument.
8022 * record-btrace.c (record_btrace_close): Add 'self' argument.
8023 * monitor.h (monitor_close): Add 'self' argument.
8024 * monitor.c (monitor_close): Add 'self' argument.
8025 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
8026 * linux-nat.c (linux_nat_close): Add argument.
8027 * go32-nat.c (go32_close): Add 'self' argument.
8028 * exec.c (exec_close_1): Add 'self' argument.
8029 * ctf.c (ctf_close): Add 'self' argument.
8030 * corelow.c (core_close): Add 'self' argument.
8031 (core_close_cleanup): Update.
8032 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
8033 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
8035 2014-02-19 Tom Tromey <tromey@redhat.com>
8037 * remote.c (remote_load): New function.
8038 (init_remote_ops): Use it.
8040 2014-02-19 Tom Tromey <tromey@redhat.com>
8042 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
8044 * common/linux-btrace.h (linux_supports_btrace): Update.
8045 * remote.c (remote_supports_btrace): Add "self" argument.
8046 * target-delegates.c: Rebuild.
8047 * target.c (target_supports_btrace): Remove.
8048 * target.h (struct target_ops) <to_supports_btrace>: Add
8049 target_ops argument.
8050 (target_supports_btrace): New define.
8052 2014-02-19 Tom Tromey <tromey@redhat.com>
8054 * record-full.c (record_full_beneath_to_resume_ops)
8055 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
8056 (record_full_beneath_to_wait)
8057 (record_full_beneath_to_store_registers_ops)
8058 (record_full_beneath_to_store_registers)
8059 (record_full_beneath_to_xfer_partial_ops)
8060 (record_full_beneath_to_xfer_partial)
8061 (record_full_beneath_to_insert_breakpoint_ops)
8062 (record_full_beneath_to_insert_breakpoint)
8063 (record_full_beneath_to_remove_breakpoint_ops)
8064 (record_full_beneath_to_remove_breakpoint)
8065 (record_full_beneath_to_stopped_by_watchpoint)
8066 (record_full_beneath_to_stopped_data_address)
8067 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
8068 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
8069 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
8070 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
8071 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
8072 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
8073 (tmp_to_stopped_data_address, tmp_to_async): Remove.
8074 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
8075 (record_full_resume, record_full_wait_1)
8076 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
8077 (record_full_store_registers, record_full_xfer_partial)
8078 (record_full_insert_breakpoint, record_full_remove_breakpoint)
8079 (record_full_async, record_full_core_xfer_partial): Use target
8081 * target-delegates.c: Rebuild.
8082 * target.c (current_xfer_partial): Remove.
8083 (update_current_target): Do not INHERIT or de_fault
8084 to_insert_breakpoint, to_remove_breakpoint,
8085 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
8086 to_is_async_p, to_async. Do not set to_xfer_partial field.
8087 (default_xfer_partial): Simplify.
8088 (current_xfer_partial): Remove.
8089 (target_wait, target_resume): Simplify.
8090 (find_default_can_async_p, find_default_is_async_p): Update.
8091 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
8092 to_xfer_partial, to_stopped_by_watchpoint,
8093 to_stopped_data_address.
8094 (target_store_registers): Simplify.
8095 (forward_target_remove_breakpoint)
8096 (forward_target_insert_breakpoint): Remove.
8097 (target_remove_breakpoint, target_insert_breakpoint)
8098 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
8099 * target.h (struct target_ops) <to_resume, to_wait,
8100 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
8101 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
8102 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
8104 (forward_target_remove_breakpoint)
8105 (forward_target_insert_breakpoint): Remove.
8106 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
8108 (record_btrace_insert_breakpoint): Delegate directly.
8110 2014-02-19 Tom Tromey <tromey@redhat.com>
8113 * target-delegates.c: New file.
8114 * target.c: Include target-delegates.c.
8115 (init_dummy_target): Call install_dummy_methods.
8116 (complete_target_initialization): Call install_delegators.
8117 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
8118 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
8119 * make-target-delegates: New file.
8121 2014-02-19 Tom Tromey <tromey@redhat.com>
8123 * record.c (find_record_target): Use find_target_at.
8124 * target.c (find_target_at): New function.
8125 * target.h (find_target_at): Declare.
8127 2014-02-19 Tom Tromey <tromey@redhat.com>
8129 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
8131 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
8133 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
8134 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
8136 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
8138 * linux-nat.c (save_sigtrap): Update.
8139 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
8140 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
8141 (linux_nat_close): Update.
8142 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
8144 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
8146 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
8147 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
8148 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
8149 (tmp_to_async): Add 'ops' argument.
8150 (record_full_stopped_by_watchpoint, record_full_async)
8151 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
8153 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
8154 (m32r_stopped_by_watchpoint): Add 'ops' argument.
8155 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
8156 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
8157 (remote_is_async_p, remote_async): Add 'ops' argument.
8158 (remote_stopped_data_address): Update.
8159 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
8160 * target.c (update_current_target)
8161 (find_default_can_async_p, find_default_is_async_p): Update.
8162 (init_dummy_target): Update.
8163 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
8164 * target.h (struct target_ops) <to_stopped_by_watchpoint,
8165 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
8166 (target_can_async_p, target_is_async_p, target_async)
8167 (target_stopped_by_watchpoint): Update.
8169 2014-02-19 Yao Qi <yao@codesourcery.com>
8172 * gdbarch.sh: Remove startup_gdbarch.
8173 * gdbarch.c: Regenerated.
8174 * gdbarch.h: Likewise.
8176 2014-02-17 Kevin Buettner <kevinb@redhat.com>
8178 * rl78-tdep.c (rl78_g10_register_name): New function.
8179 (rl78_return_value): Add g10 support.
8180 (rl78_gdbarch_init): Register rl78_g10_register_name for the
8183 2014-02-17 Doug Evans <xdje42@gmail.com>
8185 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
8186 (SUBDIR_GUILE_SRCS): Ditto.
8187 (scm-gsmob.o): Ditto.
8189 2014-02-17 Yao Qi <yao@codesourcery.com>
8191 * gnu-nat.c (ILL_RPC): Declare defined function.
8193 2014-02-17 Yao Qi <yao@codesourcery.com>
8195 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
8196 mach_msg_type_number_t.
8197 (gnu_write_inferior): Likewise.
8199 2014-02-17 Yao Qi <yao@codesourcery.com>
8201 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
8203 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
8204 (inf_validate_procs, inf_signal): Likewise.
8205 (S_exception_raise_request): Likewise.
8206 (do_mach_notify_dead_name): Likewise.
8207 (steal_exc_port): Likewise.
8208 (gnu_read_inferior): Change 'copy_count''s type to
8209 mach_msg_type_number_t.
8210 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
8213 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
8215 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
8216 flag. Adjust all users; in particular...
8217 (gnu_wait): ..., don't decrement its value in here...
8218 (gnu_create_inferior): ..., and instead set the flag in here,
8219 around the startup_inferior call, and call that one with
8220 START_INFERIOR_TRAPS_EXPECTED.
8222 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
8223 (ILL_RPC): ... new macro.
8224 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
8225 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
8226 (do_mach_notify_send_once, S_proc_setmsgport_reply)
8227 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
8228 functions with ILL_RPC macro.
8229 (S_proc_pid2task_reply, S_proc_task2pid_reply)
8230 (S_proc_task2proc_reply, S_proc_proc2task_reply)
8231 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
8232 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
8233 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
8234 (S_proc_getlogin_reply, S_proc_getsid_reply)
8235 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
8236 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
8237 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
8238 (S_proc_getnports_reply, S_proc_is_important_reply)
8239 (S_proc_get_code_reply): New stub functions, generated with
8242 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
8243 collected the type check structures.
8245 * reply_mig_hack.awk: Don't expect to see the auto keyword.
8247 2014-02-14 Doug Evans <dje@google.com>
8249 * target.c (target_write_partial): Fix result type.
8251 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
8253 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
8254 the proper offsets to access fpregset_t.
8256 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
8258 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
8259 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
8260 * h8300-tdep.c (setmachinelist): Remove global.
8261 * hppa-tdep.c (hppa_sigtramp): Remove global.
8262 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
8263 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
8264 * ravenscar-thread.c (update_target_observer): Remove global.
8265 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
8267 2014-02-12 Tom Tromey <tromey@redhat.com>
8269 * common/rsp-low.c: Update comments.
8270 * common/rsp-low.h: Update comments.
8272 2014-02-12 Tom Tromey <tromey@redhat.com>
8274 * common/rsp-low.c (convert_ascii_to_int): Remove.
8275 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
8277 2014-02-12 Tom Tromey <tromey@redhat.com>
8279 * common/rsp-low.h (unhexify): Don't declare.
8280 * common/rsp-low.c (unhexify): Remove.
8282 2014-02-12 Tom Tromey <tromey@redhat.com>
8284 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
8285 * common/rsp-low.c (convert_int_to_ascii): Remove.
8287 2014-02-12 Tom Tromey <tromey@redhat.com>
8289 * common/rsp-low.h (hexify): Don't declare.
8290 * common/rsp-low.c (hexify): Remove.
8292 2014-02-12 Tom Tromey <tromey@redhat.com>
8294 * common/rsp-low.c (hexify): Never take strlen of argument.
8296 2014-02-12 Tom Tromey <tromey@redhat.com>
8298 * common/rsp-low.c (bin2hex): Never take strlen of argument.
8299 * remote.c (extended_remote_run, remote_rcmd)
8300 (remote_download_trace_state_variable, remote_save_trace_data)
8301 (remote_set_trace_notes): Update.
8302 * tracepoint.c (encode_source_string, tfile_write_status)
8303 (tfile_write_uploaded_tsv): Update.
8305 2014-02-12 Tom Tromey <tromey@redhat.com>
8307 * tracepoint.c: Include rsp-low.h.
8308 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
8309 * remote.c: Include rsp-low.h.
8310 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
8311 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
8312 (remote_unescape_input): Move to common/rsp-low.c.
8313 * common/rsp-low.h: New file.
8314 * common/rsp-low.c: New file.
8315 * Makefile.in (SFILES): Add common/rsp-low.c.
8316 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
8317 (COMMON_OBS): Add rsp-low.o.
8318 (rsp-low.o): New target.
8320 2014-02-12 Tom Tromey <tromey@redhat.com>
8322 * utils.h: Include print-utils.h.
8323 (host_address_to_string, plongest, pulongest, phex, phex_nz)
8324 (int_string, core_addr_to_string, core_addr_to_string_nz)
8325 (hex_string, hex_string_custom): Don't declare.
8326 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
8327 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
8328 (hex_string_custom, int_string, core_addr_to_string)
8329 (core_addr_to_string_nz, host_address_to_string): Move to
8330 common/print-utils.c.
8331 * common/print-utils.h: New file.
8332 * common/print-utils.c: New file
8333 * Makefile.in (SFILES): Add common/print-utils.c.
8334 (HFILES_NO_SRCDIR): Add common/print-utils.h.
8335 (COMMON_OBS): Add print-utils.o.
8336 (print-utils.o): New target.
8338 2014-02-12 Tom Tromey <tromey@redhat.com>
8340 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
8342 2014-02-12 Mark Kettenis <kettenis@gnu.org>
8344 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
8346 2014-02-12 Mark Kettenis <kettenis@gnu.org>
8348 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
8349 if a PT_IO ptrace request returns sucessfully but indicates that 0
8350 bytes were transferred.
8352 2014-02-12 Pedro Alves <palves@redhat.com>
8353 Kevin Buettner <kevinb@redhat.com>
8355 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
8356 TYPE_INSTANCE_FLAG_CODE_SPACE.
8358 2014-02-12 Pedro Alves <palves@redhat.com>
8360 * h8300-tdep.c (pseudo_from_raw_register)
8361 (raw_from_pseudo_register): New functions.
8362 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
8365 2014-02-12 Pedro Alves <palves@redhat.com>
8367 * h8300-tdep.c (h8300_register_sim_regno): New function.
8368 (h8300_gdbarch_init): Install h8300_register_sim_regno as
8369 gdbarch_register_sim_regno hook.
8371 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
8373 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
8375 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
8377 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
8379 2014-02-12 Mark Kettenis <kettenis@gnu.org>
8381 * obsd-tdep.h (obsd_init_abi): New prototype.
8382 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
8383 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
8384 (obsd_init_abi): New functions.
8385 * i386obsd-tdep.c: Include "obsd-tdep.h".
8386 (i386obsd_init_abi): Call obsd_init_abi.
8387 * amd64obsd-tdep.c: Include "obsd-tdep.h".
8388 (amd64obsd_init_abi): Call obsd_init_abi.
8389 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
8390 obsd-tdep.c to gdb_target_obs.
8392 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
8394 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
8395 double float arguments to 16-byte in the argument slots.
8397 2014-02-11 Doug Evans <xdje42@gmail.com>
8399 * configure.ac: Don't crash if pkg-config is not found and guile
8400 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
8402 * configure: Regenerate.
8404 2014-02-11 Yao Qi <yao@codesourcery.com>
8406 * aix-thread.c (aix_thread_xfer_partial): Update comments.
8407 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
8408 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
8409 * gnu-nat.c (gnu_xfer_memory): Likewise.
8410 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
8411 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
8412 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
8413 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
8415 2014-02-11 Yao Qi <yao@codesourcery.com>
8417 * target.h (enum target_xfer_error): Rename to ...
8418 (enum target_xfer_status): ... it. New. All users updated.
8419 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
8421 (TARGET_XFER_STATUS_ERROR_P): New macro.
8422 (target_xfer_error_to_string): Remove declaration.
8423 (target_xfer_status_to_string): Declare.
8424 (target_xfer_partial_ftype): Adjust it.
8425 (struct target_ops) <to_xfer_partial>: Return
8426 target_xfer_status. Add argument xfered_len. Update
8428 * target.c (target_xfer_error_to_string): Rename to ...
8429 (target_xfer_status_to_string): ... it. New. All callers
8431 (target_read_live_memory): Likewise. Call target_xfer_partial
8432 instead of target_read.
8433 (memory_xfer_live_readonly_partial): Return
8434 target_xfer_status. Add argument xfered_len.
8435 (raw_memory_xfer_partial): Likewise.
8436 (memory_xfer_partial_1): Likewise.
8437 (memory_xfer_partial): Likewise.
8438 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
8439 properly. Update debug message.
8440 (default_xfer_partial, current_xfer_partial): Likewise.
8441 (target_write_partial): Likewise.
8442 (target_read_partial): Likewise. All callers updated.
8443 (read_whatever_is_readable): Likewise.
8444 (target_write_with_progress): Likewise.
8445 (target_read_alloc_1): Likewise.
8447 * aix-thread.c (aix_thread_xfer_partial): Likewise.
8448 * auxv.c (procfs_xfer_auxv): Likewise.
8449 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
8450 * bfd-target.c (target_bfd_xfer_partial): Likewise.
8451 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
8452 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
8453 * corefile.c (read_memory): Adjust.
8454 * corelow.c (core_xfer_partial): Likewise.
8455 * ctf.c (ctf_xfer_partial): Likewise.
8456 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
8458 (darwin_xfer_partial): Likewise.
8459 * exec.c (section_table_xfer_memory_partial): Likewise. All
8461 (exec_xfer_partial): Likewise.
8462 * exec.h (section_table_xfer_memory_partial): Update
8464 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
8466 (gnu_xfer_partial): Likewise.
8467 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
8468 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
8469 (ia64_hpux_xfer_solib_got): Likewise.
8470 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
8471 type of 'partial_len' to ULONGEST.
8472 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
8473 * linux-nat.c (linux_xfer_siginfo ): Likewise.
8474 (linux_nat_xfer_partial): Likewise.
8475 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
8476 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
8477 * monitor.c (monitor_xfer_memory): Likewise.
8478 (monitor_xfer_partial): Likewise.
8479 * procfs.c (procfs_xfer_partial): Likewise.
8480 * record-btrace.c (record_btrace_xfer_partial): Likewise.
8481 * record-full.c (record_full_xfer_partial): Likewise.
8482 (record_full_core_xfer_partial): Likewise.
8483 * remote-sim.c (gdbsim_xfer_memory): Likewise.
8484 (gdbsim_xfer_partial): Likewise.
8485 * remote.c (remote_write_bytes_aux): Likewise. All callers
8487 (remote_write_bytes, remote_read_bytes): Likewise. All
8489 (remote_flash_erase): Likewise. All callers updated.
8490 (remote_write_qxfer): Likewise. All callers updated.
8491 (remote_read_qxfer): Likewise. All callers updated.
8492 (remote_xfer_partial): Likewise.
8493 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
8494 (rs6000_xfer_shared_libraries): Likewise.
8495 * sol-thread.c (sol_thread_xfer_partial): Likewise.
8496 (sol_thread_xfer_partial): Likewise.
8497 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
8498 (sparc_xfer_partial): Likewise.
8499 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
8501 (spu_xfer_partial): Likewise.
8502 * spu-multiarch.c (spu_xfer_partial): Likewise.
8503 * tracepoint.c (tfile_xfer_partial): Likewise.
8504 * windows-nat.c (windows_xfer_memory): Likewise.
8505 (windows_xfer_shared_libraries): Likewise.
8506 (windows_xfer_partial): Likewise.
8507 * valprint.c: Replace 'target_xfer_error' with
8508 'target_xfer_status' in comments.
8510 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
8512 Checked in by Joel Brobecker <brobecker@adacore.com>.
8513 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
8515 2014-02-11 Joel Brobecker <brobecker@adacore.com>
8517 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
8518 function parameters.
8520 2014-02-10 Will Newton <will.newton@linaro.org>
8522 * elfread.c (elf_rel_plt_read): Look for a .got section if
8523 looking up .got.plt fails.
8524 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
8525 on address passed to elf_gnu_ifunc_record_cache.
8526 (elf_gnu_ifunc_resolve_addr): Likewise.
8527 (elf_gnu_ifunc_resolver_return_stop): Likewise.
8529 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
8531 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
8532 (X_RETTURN): New macro.
8533 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
8535 * sparc64-tdep.c (sparc64_init_abi): Hook
8536 sparc_in_function_epilogue_p.
8538 2014-02-10 Gary Benson <gbenson@redhat.com>
8540 * symfile-debug.c (debug_qf_expand_symtabs_matching):
8541 Rename name_matcher to symbol_matcher.
8543 2014-02-10 Gary Benson <gbenson@redhat.com>
8545 * symfile-debug.c (debug_qf_expand_symtabs_matching):
8546 Use expand_symtabs_file_matcher_ftype and
8547 expand_symtabs_symbol_matcher_ftype.
8549 2014-02-10 Joel Brobecker <brobecker@adacore.com>
8551 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
8552 (struct ada_symbol_cache): New.
8553 (ada_free_symbol_cache): Forward declare.
8554 (struct ada_pspace_data): New.
8555 (ada_pspace_data_handle): New static global.
8556 (get_ada_pspace_data, ada_pspace_data_cleanup)
8557 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
8558 (cache_space, cache): Delete, now folded inside struct
8560 (ada_get_symbol_cache): New function.
8561 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
8563 (_initialize_ada_language): Remove initialization of cache_space.
8564 Move call to observer_attach_inferior_exit up, grouping it
8565 with the other observer registrations inside this function.
8566 Rename command to be more general. Add call to
8567 register_program_space_data_with_cleanup.
8569 2014-02-10 Joel Brobecker <brobecker@adacore.com>
8571 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
8572 ada_new_objfile_observer.
8573 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
8574 (_initialize_tasks): Update uses of ada_new_objfile_observer
8575 and ada_tasks_normal_stop_observer.
8577 2014-02-10 Joel Brobecker <brobecker@adacore.com>
8579 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
8580 returned by the 'Length attribute to integer.
8582 2014-02-10 Joel Brobecker <brobecker@adacore.com>
8584 * ada-lang.c (_initialize_ada_language): Initialize
8585 cache_space obstack.
8587 2014-02-10 Joel Brobecker <brobecker@adacore.com>
8589 * ada-lang.c (HASH_SIZE): New macro.
8590 (struct cache_entry): New type.
8591 (cache_space, cache): New static globals.
8592 (ada_clear_symbol_cache, find_entry): New functions.
8593 (lookup_cached_symbol, cache_symbol): Implement.
8594 (ada_new_objfile_observer, ada_free_objfile_observer): New.
8595 (_initialize_ada_language): Attach ada_new_objfile_observer
8596 and ada_free_objfile_observer.
8598 2014-02-10 Joel Brobecker <brobecker@adacore.com>
8600 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
8601 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
8602 struct block * parameter.
8603 (ada_lookup_symbol_list_worker): Constify local variable "block".
8604 Remove cast which is no longer necessary.
8606 2014-02-10 Doug Evans <xdje42@gmail.com>
8608 Add Guile as an extension language.
8609 * NEWS: Mention Guile scripting.
8610 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
8611 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
8612 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
8613 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
8614 (CLIBS): Add GUILE_LIBS.
8615 (install-guile): New rule.
8616 (guile.o): New rule.
8617 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
8618 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
8619 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
8620 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
8621 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
8622 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
8623 (scm-type.o, scm-utils.o, scm-value.o): New rules.
8624 * configure.ac: New option --with-guile.
8625 * configure: Regenerate.
8626 * config.in: Regenerate.
8627 * auto-load.c: Remove #include "python/python.h". Add #include
8628 "gdb/section-scripts.h".
8629 (source_section_scripts): Handle Guile scripts.
8630 (_initialize_auto_load): Add name of Guile objfile script to
8631 scripts-directory help text.
8632 * breakpoint.c (condition_command): Tweak comment to include Scheme.
8633 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
8634 (struct breakpoint): New member scm_bp_object.
8635 * defs.h (enum command_control_type): New value guile_control.
8636 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
8638 (show_user): Update comment.
8639 (_initialize_cli_cmds): Update help text for "show user". Update help
8640 text for max-user-call-depth.
8641 * cli/cli-script.c: Remove #include "python/python.h". Add #include
8643 (multi_line_command_p): Add guile_control.
8644 (print_command_lines): Handle guile_control.
8645 (execute_control_command, recurse_read_control_structure): Ditto.
8646 (process_next_line): Recognize "guile" commands.
8647 * disasm.c (gdb_disassemble_info): Make non-static.
8648 * disasm.h: #include "dis-asm.h".
8649 (struct gdbarch): Add forward decl.
8650 (gdb_disassemble_info): Declare.
8651 * extension.c: #include "guile/guile.h".
8652 (extension_languages): Add guile.
8653 (get_ext_lang_defn): Handle EXT_LANG_GDB.
8654 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
8655 * gdbtypes.c (get_unsigned_type_max): New function.
8656 (get_signed_type_minmax): New function.
8657 * gdbtypes.h (get_unsigned_type_max): Declare.
8658 (get_signed_type_minmax): Declare.
8659 * guile/README: New file.
8660 * guile/guile-internal.h: New file.
8661 * guile/guile.c: New file.
8662 * guile/guile.h: New file.
8663 * guile/scm-arch.c: New file.
8664 * guile/scm-auto-load.c: New file.
8665 * guile/scm-block.c: New file.
8666 * guile/scm-breakpoint.c: New file.
8667 * guile/scm-disasm.c: New file.
8668 * guile/scm-exception.c: New file.
8669 * guile/scm-frame.c: New file.
8670 * guile/scm-gsmob.c: New file.
8671 * guile/scm-iterator.c: New file.
8672 * guile/scm-lazy-string.c: New file.
8673 * guile/scm-math.c: New file.
8674 * guile/scm-objfile.c: New file.
8675 * guile/scm-ports.c: New file.
8676 * guile/scm-pretty-print.c: New file.
8677 * guile/scm-safe-call.c: New file.
8678 * guile/scm-string.c: New file.
8679 * guile/scm-symbol.c: New file.
8680 * guile/scm-symtab.c: New file.
8681 * guile/scm-type.c: New file.
8682 * guile/scm-utils.c: New file.
8683 * guile/scm-value.c: New file.
8684 * guile/lib/gdb.scm: New file.
8685 * guile/lib/gdb/boot.scm: New file.
8686 * guile/lib/gdb/experimental.scm: New file.
8687 * guile/lib/gdb/init.scm: New file.
8688 * guile/lib/gdb/iterator.scm: New file.
8689 * guile/lib/gdb/printing.scm: New file.
8690 * guile/lib/gdb/types.scm: New file.
8691 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
8692 (VPATH): Add $(GUILE_SRCDIR).
8693 (GUILE_DIR): New variable.
8694 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
8695 (all): Add stamp-guile dependency.
8696 (stamp-guile): New rule.
8697 (clean-guile, install-guile, uninstall-guile): New rules.
8698 (install-only): Add install-guile dependency.
8699 (uninstall): Add uninstall-guile dependency.
8700 (clean): Add clean-guile dependency.
8702 2014-02-09 Doug Evans <xdje42@gmail.com>
8704 Revert this patch (which I approved, mea culpa).
8706 2014-02-08 Mark Kettenis <kettenis@gnu.org>
8708 * Makefile.in (all-lib): Remove.
8709 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
8711 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
8713 Fix Python stack corruption.
8714 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
8717 2014-02-08 Mark Kettenis <kettenis@gnu.org>
8719 * Makefile.in (all-lib): Remove.
8720 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
8722 2014-02-07 Doug Evans <dje@google.com>
8724 * extension-priv.h (extension_language_script_ops): Add comment.
8725 (extension_language_ops): Add comment.
8726 (active_ext_lang_state): Fix typo in comment.
8728 2014-02-07 Pedro Alves <palves@redhat.com>
8730 PR breakpoints/16292
8731 * infrun.c (handle_signal_stop) <signal arrives while stepping
8732 over a breakpoint>: Switch back to the stepping thread.
8734 2014-02-07 Yao Qi <yao@codesourcery.com>
8736 * target.c (target_xfer_partial): Return zero if LEN is zero.
8738 2014-02-07 Yao Qi <yao@codesourcery.com>
8740 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
8741 (ld_so_xfer_auxv): Likewise.
8742 * bfd-target.c (target_bfd_xfer_partial): Likewise.
8743 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
8744 * corelow.c (core_xfer_partial): Likewise.
8745 * ctf.c (ctf_xfer_partial): Likewise.
8746 * darwin-nat.c (darwin_read_dyld_info): Likewise.
8747 (darwin_xfer_partial): Likewise.
8748 * exec.c (exec_xfer_partial): Likewise.
8749 * gnu-nat.c (gnu_xfer_partial): Likewise.
8750 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
8751 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
8752 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
8753 * linux-nat.c (linux_xfer_siginfo): Likewise.
8754 (linux_proc_xfer_spu): Likewise.
8755 * procfs.c (procfs_xfer_partial): Likewise.
8756 * record-full.c (record_full_xfer_partial): Likewise.
8757 (record_full_core_xfer_partial): Likewise.
8758 * remote-sim.c (gdbsim_xfer_partial): Likewise.
8759 * remote.c (remote_write_qxfer): Likewise.
8760 (remote_write_qxfer, remote_read_qxfer): Likewise.
8761 (remote_xfer_partial): Likewise.
8762 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
8763 (rs6000_xfer_shared_libraries): Likewise.
8764 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
8765 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
8766 (spu_xfer_partial): Likewise.
8767 * target.c (memory_xfer_partial_1): Likewise.
8768 * tracepoint.c (tfile_xfer_partial): Likewise.
8769 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
8770 (windows_xfer_partial): Likewise.
8772 2014-02-07 Yao Qi <yao@codesourcery.com>
8774 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
8776 (core_xfer_shared_libraries_aix): Likewise.
8777 * gdbarch.c, gdbarch.h: Regenerated.
8778 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
8779 ULONGEST. Change 'len_avail' type to ULONGEST.
8780 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
8781 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
8783 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
8785 2014-02-07 Yao Qi <yao@codesourcery.com>
8787 * corefile.c (memory_error): Get 'exception' from ERR and pass
8788 'exception' to throw_error.
8790 2014-02-06 Doug Evans <xdje42@gmail.com>
8792 * configure.ac (libpython checking): Remove all but python.o from
8793 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
8794 * configure: Regenerate.
8796 * Makefile.in (SFILES): Add extension.c.
8797 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
8798 (COMMON_OBS): Add extension.o.
8799 * extension.h: New file.
8800 * extension-priv.h: New file.
8801 * extension.c: New file.
8803 * python/python-internal.h: #include "extension.h".
8804 (gdbpy_auto_load_enabled): Declare.
8805 (gdbpy_apply_val_pretty_printer): Declare.
8806 (gdbpy_apply_frame_filter): Declare.
8807 (gdbpy_preserve_values): Declare.
8808 (gdbpy_breakpoint_cond_says_stop): Declare.
8809 (gdbpy_breakpoint_has_cond): Declare.
8810 (void source_python_script_for_objfile): Delete.
8811 * python/python.c: #include "extension-priv.h".
8812 Delete inclusion of "observer.h".
8813 (extension_language_python): Moved here and renamed from
8814 script_language_python in py-auto-load.c.
8815 Redefined to be of type extension_language_defn.
8816 (python_extension_script_ops): New global.
8817 (python_extension_ops): New global.
8818 (struct python_env): New member previous_active.
8819 (restore_python_env): Call restore_active_ext_lang.
8820 (ensure_python_env): Call set_active_ext_lang.
8821 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
8823 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
8825 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
8827 (gdbpy_eval_from_control_command): Renamed from
8828 eval_python_from_control_command, made static. New arg extlang.
8829 (gdbpy_source_script) Renamed from source_python_script, made static.
8831 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
8832 result to int. New arg extlang.
8833 (gdbpy_source_objfile_script): Renamed from
8834 source_python_script_for_objfile, made static. New arg extlang.
8835 (gdbpy_start_type_printers): Renamed from start_type_printers, made
8836 static. New args extlang, extlang_printers. Change result type to
8838 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
8839 static. New arg extlang. Rename arg printers to extlang_printers
8840 and change type to ext_lang_type_printers *.
8841 (gdbpy_free_type_printers): Renamed from free_type_printers, made
8842 static. Replace argument arg with extlang, extlang_printers.
8843 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
8844 (!HAVE_PYTHON, source_python_script): Delete.
8845 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
8846 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
8847 (!HAVE_PYTHON, start_type_printers): Delete.
8848 (!HAVE_PYTHON, apply_type_printers): Delete.
8849 (!HAVE_PYTHON, free_type_printers): Delete.
8850 (_initialize_python): Delete call to observer_attach_before_prompt.
8851 (finalize_python): Set/restore active extension language.
8852 (gdbpy_finish_initialization) Renamed from
8853 finish_python_initialization, made static. New arg extlang.
8854 (gdbpy_initialized): New function.
8855 * python/python.h: #include "extension.h". Delete #include
8856 "value.h", "mi/mi-cmds.h".
8857 (extension_language_python): Declare.
8858 (GDBPY_AUTO_FILE_NAME): Delete.
8859 (enum py_bt_status): Moved to extension.h and renamed to
8861 (enum frame_filter_flags): Moved to extension.h.
8862 (enum py_frame_args): Moved to extension.h and renamed to
8863 ext_lang_frame_args.
8864 (finish_python_initialization): Delete.
8865 (eval_python_from_control_command): Delete.
8866 (source_python_script): Delete.
8867 (apply_val_pretty_printer): Delete.
8868 (apply_frame_filter): Delete.
8869 (preserve_python_values): Delete.
8870 (gdbpy_script_language_defn): Delete.
8871 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
8872 (start_type_printers, apply_type_printers, free_type_printers): Delete.
8874 * auto-load.c: #include "extension.h".
8875 (GDB_AUTO_FILE_NAME): Delete.
8876 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
8877 (script_language_gdb): Delete, moved to extension.c and renamed to
8878 extension_language_gdb.
8879 (source_gdb_script_for_objfile): Delete.
8880 (auto_load_pspace_info): New member unsupported_script_warning_printed.
8881 (loaded_script): Change type of language member to
8882 struct extension_language_defn *.
8883 (init_loaded_scripts_info): Initialize
8884 unsupported_script_warning_printed.
8885 (maybe_add_script): Make static. Change type of language arg to
8886 struct extension_language_defn *.
8887 (clear_section_scripts): Reset unsupported_script_warning_printed.
8888 (auto_load_objfile_script_1): Rewrite to use extension language API.
8889 (auto_load_objfile_script): Make public. Remove support-compiled-in
8890 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
8891 (source_section_scripts): Rewrite to use extension language API.
8892 (load_auto_scripts_for_objfile): Rewrite to use
8893 auto_load_scripts_for_objfile.
8894 (collect_matching_scripts_data): Change type of language member to
8895 struct extension_language_defn *.
8896 (auto_load_info_scripts): Change type of language arg to
8897 struct extension_language_defn *.
8898 (unsupported_script_warning_print): New function.
8899 (script_not_found_warning_print): Make static.
8900 (_initialize_auto_load): Rewrite construction of scripts-directory
8902 * auto-load.h (struct objfile): Add forward decl.
8903 (struct script_language): Delete.
8904 (struct auto_load_pspace_info): Add forward decl.
8905 (struct extension_language_defn): Add forward decl.
8906 (maybe_add_script): Delete.
8907 (auto_load_objfile_script): Declare.
8908 (script_not_found_warning_print): Delete.
8909 (auto_load_info_scripts): Update prototype.
8910 (auto_load_gdb_scripts_enabled): Declare.
8911 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
8912 auto_load_python_scripts_enabled and made public.
8913 (script_language_python): Delete, moved to python.c.
8914 (gdbpy_script_language_defn): Delete.
8915 (info_auto_load_python_scripts): Update to use
8916 extension_language_python.
8918 * breakpoint.c (condition_command): Replace call to
8919 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
8920 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
8921 with call to breakpoint_ext_lang_cond_says_stop.
8922 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
8923 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
8924 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
8925 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
8927 (local_setattro): Print name of extension language with existing
8930 * valprint.c (val_print, value_print): Update to call
8931 apply_ext_lang_val_pretty_printer.
8932 * cp-valprint.c (cp_print_value): Update call to
8933 apply_ext_lang_val_pretty_printer.
8934 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
8935 (gdbpy_apply_val_pretty_printer): Renamed from
8936 apply_val_pretty_printer. New arg extlang.
8937 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
8939 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
8940 extension language API.
8941 * cli/cli-script.c (execute_control_command): Update to call
8942 eval_ext_lang_from_control_command.
8944 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
8945 enum ext_lang_bt_status values. Update call to
8946 apply_ext_lang_frame_filter.
8947 (mi_cmd_stack_list_locals): Ditto.
8948 (mi_cmd_stack_list_args): Ditto.
8949 (mi_cmd_stack_list_variables): Ditto.
8950 * mi/mi-main.c: Delete #include "python/python-internal.h".
8951 Add #include "extension.h".
8952 (mi_cmd_list_features): Replace reference to python internal variable
8953 gdb_python_initialized with call to ext_lang_initialized_p.
8955 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
8956 Update to use enum ext_lang_frame_args. Update to call
8957 apply_ext_lang_frame_filter.
8958 * python/py-framefilter.c (extract_sym): Update to use enum
8960 (extract_value, py_print_type, py_print_value): Ditto.
8961 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
8962 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
8963 (py_print_frame): Ditto.
8964 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
8965 New arg extlang. Update to use enum ext_lang_bt_status.
8967 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
8968 finish_python_initialization. Replace with call to
8969 finish_ext_lang_initialization.
8971 * typeprint.c (do_free_global_table): Update to call
8972 free_ext_lang_type_printers.
8973 (create_global_typedef_table): Update to call
8974 start_ext_lang_type_printers.
8975 (find_global_typedef): Update to call apply_ext_lang_type_printers.
8976 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
8977 (type_print_options): Change type of global_printers from "void *"
8978 to "struct ext_lang_type_printers *".
8980 * value.c (preserve_values): Update to call preserve_ext_lang_values.
8981 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
8982 (gdbpy_preserve_values): Renamed from preserve_python_values.
8984 (!HAVE_PYTHON, preserve_python_values): Delete.
8986 * utils.c (quit_flag): Delete, moved to extension.c.
8987 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
8990 * eval.c: Delete #include "python/python.h".
8991 * main.c: Delete #include "python/python.h".
8993 * defs.h: Update comment.
8995 2014-02-06 Joel Brobecker <brobecker@adacore.com>
8999 2014-02-05 Mark Kettenis <kettenis@gnu.org>
9001 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
9004 2014-02-05 Yao Qi <yao@codesourcery.com>
9006 * remote.c (remote_pass_signals): Remove local 'buf' and use
9008 (remote_program_signals): Likewise.
9010 2014-02-05 Yao Qi <yao@codesourcery.com>
9012 * ctf.c: Include "inferior.h" and "gdbthread.h".
9013 (CTF_PID): A new macro.
9014 (ctf_open): Call inferior_appeared and add_thread_silent.
9015 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
9016 (ctf_thread_alive): New function.
9017 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
9019 2014-02-05 Yao Qi <yao@codesourcery.com>
9023 2013-05-24 Yao Qi <yao@codesourcery.com>
9025 * tracepoint.c (TFILE_PID): Remove.
9026 (tfile_open): Don't add thread and inferior.
9027 (tfile_close): Don't set 'inferior_ptid'. Don't call
9028 exit_inferior_silent.
9029 (tfile_thread_alive): Remove.
9030 (init_tfile_ops): Don't set field 'to_thread_alive' of
9033 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
9035 * remote.c (remote_start_remote): Call remote_check_symbols even
9036 if only symbol-file (not file) has been given.
9038 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
9040 * gdbarch.sh (skip_entrypoint): New callback.
9041 * gdbarch.c, gdbarch.h: Regenerate.
9042 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
9043 * infrun.c (fill_in_stop_func): Likewise.
9044 * ppc-linux-tdep.c: Include "elf/ppc64.h".
9045 (ppc_elfv2_elf_make_msymbol_special): New function.
9046 (ppc_elfv2_skip_entrypoint): Likewise.
9047 (ppc_linux_init_abi): Install them for ELFv2.
9049 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
9051 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
9052 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
9053 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
9054 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
9055 structures returned in GPRs.
9057 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
9059 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
9060 offset to the stack parameter list for the ELFv2 ABI.
9062 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
9064 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
9065 set_gdbarch_convert_from_func_ptr_addr and
9066 set_gdbarch_elf_make_msymbol_special for ELFv1.
9067 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
9068 function descriptors on ELFv1.
9069 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
9070 set up r12 at function entry.
9072 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
9074 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
9075 (struct gdbarch_tdep): New member elf_abi.
9077 * rs6000-tdep.c: Include "elf/ppc64.h".
9078 (rs6000_gdbarch_init): Detect ELF ABI version.
9080 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
9082 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
9083 within a register pair holding a DFP 128-bit value on little-endian.
9084 (ppc64_sysv_abi_return_value_base): Likewise.
9085 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
9086 (dfp_pseudo_register_write): Likewise.
9088 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
9090 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
9091 offset on little-endian when passing _Decimal32.
9092 (ppc64_sysv_abi_return_value_base): Likewise for return values.
9094 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
9096 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
9097 of the overlapped FP register within the VSX register on little-
9099 (efpr_pseudo_register_write): Likewise.
9101 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
9103 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
9104 offset on little-endian when passing small structures.
9106 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
9108 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
9109 (struct ppc64_sysv_argpos): New data structure.
9110 (ppc64_sysv_abi_push_float): Remove.
9111 (ppc64_sysv_abi_push_val): New function.
9112 (ppc64_sysv_abi_push_integer): Likewise.
9113 (ppc64_sysv_abi_push_freg): Likewise.
9114 (ppc64_sysv_abi_push_vreg): Likewise.
9115 (ppc64_sysv_abi_push_param): Likewise.
9116 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
9117 (ppc64_sysv_abi_return_value_base): New function.
9118 (ppc64_sysv_abi_return_value): Refactor to use it.
9120 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
9122 * NEWS: Document new target powerpc64le-*-linux*.
9124 2014-02-04 Mark Kettenis <kettenis@gnu.org>
9126 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
9127 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
9129 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
9130 register set used in ELF core dumps. Add floating-point register set.
9132 2014-02-03 Kevin Buettner <kevinb@redhat.com>
9134 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
9135 dwarf2_to_gdb[] table using symbolic constants. Adjust
9136 penultimate entry from number representing the PC register
9137 to symbolic constant representing the MDR register. Add
9138 constant for the PC register to the end of the table.
9140 2014-02-03 Mark Kettenis <kettenis@gnu.org>
9142 * bsd-kvm.c: Include <sys/param.h>
9144 2014-02-03 Mark Kettenis <kettenis@gnu.org>
9146 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
9148 2014-01-31 Joel Brobecker <brobecker@adacore.com>
9150 * ada-lang.h (clear_ada_sym_cache): Delete.
9152 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
9154 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
9156 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
9158 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
9159 the sigreturn register save area only if the syscall is
9162 2014-01-29 Joel Brobecker <brobecker@adacore.com>
9164 * valops.c (value_slice): Minor reformatting.
9166 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
9168 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
9170 2014-01-28 Joel Brobecker <brobecker@adacore.com>
9172 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
9174 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
9175 (ada_ignore_descriptive_types_p): New static global.
9176 (find_parallel_type_by_descriptive_type): Return immediately
9177 if ada_ignore_descriptive_types_p is set.
9178 (_initialize_ada_language): Register new commands "maintenance
9179 set ada", "maintenance show ada", "maintenance set ada
9180 ignore-descriptive-types" and "maintenance show ada
9181 ignore-descriptive-types".
9182 * NEWS: Add entry for new "maint ada set/show
9183 ignore-descriptive-types" commands.
9185 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
9187 * record-btrace.c (record_btrace_close): Call btrace_teardown
9190 2014-01-27 Joel Brobecker <brobecker@adacore.com>
9192 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
9195 2014-01-27 Joel Brobecker <brobecker@adacore.com>
9197 * ada-typeprint (type_is_full_subrange_of_target_type):
9199 (print_range): Add parameter bounds_prefered_p. If not set,
9200 try printing range types using the name of their base type.
9201 (print_range_type): Add parameter bounds_prefered_p.
9202 Use it in call to print_range.
9203 (print_array_type, ada_print_type): Update calls to print_range
9204 and print_range_type.
9206 2014-01-27 Joel Brobecker <brobecker@adacore.com>
9208 * ada-typeprint.c (print_array_type, print_choices, print_range)
9209 (print_range_bound, print_dynamic_range_bound, print_range_type):
9212 2014-01-27 Joel Brobecker <brobecker@adacore.com>
9214 * ada-typeprint.c (print_range): Add missing empty line
9215 after local declaration.
9217 2014-01-27 Joel Brobecker <brobecker@adacore.com>
9219 * ada-valprint.c (print_optional_low_bound): Get index_type's
9220 target type for as long as it is a TYPE_CODE_RANGE.
9222 2014-01-27 Joel Brobecker <brobecker@adacore.com>
9224 * procfs.c (procfs_make_note_section): Remove assertion and
9227 2014-01-24 Yao Qi <yao@codesourcery.com>
9229 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
9230 * corelow.c (get_core_siginfo): Likewise.
9232 2014-01-24 Yao Qi <yao@codesourcery.com>
9234 * remote.c (remote_write_bytes_aux): Change type of 'len' to
9235 ULONGEST. Don't check 'len' is negative.
9236 (remote_write_bytes): Change type of 'len' to ULONGEST.
9238 2014-01-23 Tom Tromey <tromey@redhat.com>
9241 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
9242 Handle exception from frame.block.
9243 (FrameVars.fetch_frame_locals): Likewise.
9245 2014-01-23 Tom Tromey <tromey@redhat.com>
9248 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
9249 on a NULL pointer. Move "goto error" to correct place.
9251 2014-01-23 Tom Tromey <tromey@redhat.com>
9254 * python/py-framefilter.c (apply_frame_filter): Call
9255 ensure_python_env after computing gdbarch.
9257 2014-01-23 Yao Qi <yao@codesourcery.com>
9259 * target.c (raw_memory_xfer_partial): Change argument type
9260 from void * to gdb_byte *.
9261 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
9263 2014-01-22 Doug Evans <dje@google.com>
9265 New gdbserver option --debug-format=timestamp.
9268 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
9270 * syscalls/s390x-linux.xml: New file.
9271 * syscalls/s390-linux.xml: New file.
9272 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
9273 (XML_SYSCALL_FILENAME_S390X): Likewise.
9274 (op_svc): New enum value for SVC opcode.
9275 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
9276 (s390_linux_get_syscall_number): New function.
9277 (s390_gdbarch_init): Register '*get_syscall_number' and the
9278 syscall xml file name.
9279 * data-directory/Makefile.in (SYSCALLS_FILES): Add
9280 "s390-linux.xml" and "s390x-linux.xml".
9281 * NEWS: Announce new feature.
9283 2014-01-22 Baruch Siach <baruch@tkos.co.il>
9285 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
9287 2014-01-22 Pedro Alves <palves@redhat.com>
9289 * xtensa-config.c: Include defs.h.
9291 2014-01-22 Joel Brobecker <brobecker@adacore.com>
9293 * common/common-utils.h: Add "ARI:" comment beside __func__
9296 2014-01-22 Joel Brobecker <brobecker@adacore.com>
9298 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
9299 documentation a bit.
9301 2014-01-21 Roland McGrath <mcgrathr@google.com>
9303 * configure.ac: Call AM_PROG_INSTALL_STRIP.
9304 * configure: Regenerate.
9305 * aclocal.m4: Regenerate.
9306 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
9307 New substituted variables.
9308 (install-strip): New target.
9309 (INSTALL_SCRIPT): New substituted variable.
9310 (FLAGS_TO_PASS): Add it.
9311 (install-only): Use $(INSTALL_SCRIPT) rather than
9312 $(INSTALL_PROGRAM) for gcore.
9314 2014-01-20 Tom Tromey <tromey@redhat.com>
9316 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
9319 2014-01-20 Tom Tromey <tromey@redhat.com>
9321 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
9322 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
9323 (deprecated_cmd_warning, complete_on_cmdlist): Update.
9324 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
9325 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
9326 (struct cmd_list_element) <flags>: Remove.
9327 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
9328 doc_allocated>: New fields.
9329 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
9331 * maint.c (maintenance_do_deprecate): Update.
9332 * top.c (execute_command): Update.
9334 2014-01-20 Baruch Siach <baruch@tkos.co.il>
9336 * xtensa-linux-nat.c: Include asm/ptrace.h.
9338 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9340 * Makefile.in (SFILES): Add d-support.c.
9341 (COMMON_OBS): Add d-support.o.
9342 * d-lang.h (d_parse_symbol): Add comment, now defined in
9344 * d-lang.c (parse_call_convention)
9345 (parse_attributes, parse_function_types)
9346 (parse_function_args, parse_type, parse_identifier)
9347 (call_convention_p, d_parse_symbol): Move functions to ...
9348 * d-support.c: ... New file.
9350 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9352 * d-lang.h (d_parse_symbol): Add declaration.
9353 * d-lang.c (extract_identifiers)
9354 (extract_type_info): Remove functions.
9355 (parse_call_convention, parse_attributes)
9356 (parse_function_types, parse_function_args)
9357 (parse_type, parse_identifier, call_convention_p)
9358 (d_parse_symbol): New functions.
9359 (d_demangle): Use d_parse_symbol to demangle D symbols.
9361 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9363 * d-lang.h (struct builtin_d_type): New data type.
9364 (builtin_d_type): Add declaration.
9365 * d-lang.c (d_language_arch_info, build_d_types)
9366 (builtin_d_type): New functions.
9367 (enum d_primitive_types): New data type.
9368 (d_language_defn): Change c_language_arch_info to
9369 d_language_arch_info.
9370 (d_type_data): New static variable.
9371 (_initialize_d_language): Initialize d_type_data.
9373 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9375 * d-lang.h (d_main_name): Add declaration.
9376 * d-lang.c (d_main_name): New function.
9377 * symtab.c (find_main_name): Add call to d_main_name.
9379 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9381 * d-lang.c (d_language_defn): Change macro_expansion_c to
9384 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9386 * MAINTAINERS: Add myself as a write-after-approval maintainer.
9388 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
9390 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
9391 gdb_exception" declaration.
9392 * remote.c (getpkt_or_notif_sane): Likewise.
9394 2014-01-17 Doug Evans <dje@google.com>
9396 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
9397 function, contents of dirnames_to_char_ptr_vec_append moved here.
9398 (delim_string_to_char_ptr_vec): New function.
9399 (dirnames_to_char_ptr_vec_append): Rewrite.
9400 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
9402 2014-01-17 Doug Evans <dje@google.com>
9404 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
9406 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
9407 #include "common-utils.h".
9408 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
9409 * common/vec.h (VEC_ASSERT_PASS): Update.
9410 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
9411 (MACH_CHECK_ERROR): Update.
9413 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
9415 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
9417 * gdbarch.h: Regenerate.
9419 2014-01-16 Tom Tromey <tromey@redhat.com>
9421 * value.c (struct value) <regnum>: Move earlier.
9423 2014-01-16 Tom Tromey <tromey@redhat.com>
9425 * remote.c (extended_remote_create_inferior): Rename from
9426 extended_remote_create_inferior_1. Add "ops" argument. Remove
9429 2014-01-16 Pedro Alves <palves@redhat.com>
9431 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
9432 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
9435 2014-01-16 Doug Evans <dje@google.com>
9437 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
9439 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9441 * btrace.h (btrace_thread_flag): New.
9442 (struct btrace_thread_info) <flags>: New.
9443 * record-btrace.c (record_btrace_resume_thread)
9444 (record_btrace_find_thread_to_move, btrace_step_no_history)
9445 (btrace_step_stopped, record_btrace_start_replaying)
9446 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
9447 (record_btrace_find_resume_thread): New.
9448 (record_btrace_resume, record_btrace_wait): Extend.
9449 (record_btrace_can_execute_reverse): New.
9450 (record_btrace_open): Fail in non-stop mode.
9451 (record_btrace_set_replay): Split into this, ...
9452 (record_btrace_stop_replaying): ... this, ...
9453 (record_btrace_clear_histories): ... and this.
9454 (init_record_btrace_ops): Init to_can_execute_reverse.
9455 * NEWS: Announce it.
9457 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9459 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
9460 (forward_target_decr_pc_after_break)
9461 (target_decr_pc_after_break): New.
9462 * target.c (forward_target_decr_pc_after_break)
9463 (target_decr_pc_after_break): New.
9464 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
9465 instead of gdbarch_decr_pc_after_break.
9466 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
9467 instead of gdbarch_decr_pc_after_break.
9468 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
9469 instead of gdbarch_decr_pc_after_break.
9470 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
9471 instead of gdbarch_decr_pc_after_break.
9472 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
9473 instead of gdbarch_decr_pc_after_break.
9474 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
9475 instead of gdbarch_decr_pc_after_break.
9477 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9479 * btrace.c: Include regcache.h.
9480 (btrace_add_pc): New.
9481 (btrace_enable): Call btrace_add_pc.
9482 (btrace_is_empty): New.
9483 * btrace.h (btrace_is_empty): New.
9484 * record-btrace.c (require_btrace, record_btrace_info): Call
9487 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9489 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
9490 Support delta reads.
9491 (linux_disable_btrace): Change return type.
9492 * common/linux-btrace.h (linux_read_btrace): Change parameters
9493 and return type to allow error reporting. Update users.
9494 (linux_disable_btrace): Change return type. Update users.
9495 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
9497 (btrace_error): New.
9498 (btrace_block) <begin>: Comment on BEGIN == 0.
9499 * btrace.c (btrace_compute_ftrace): Start from the end of
9501 (btrace_stitch_trace, btrace_clear_history): New.
9502 (btrace_fetch): Read delta trace, return if replaying.
9503 (btrace_clear): Move clear history code to btrace_clear_history.
9504 (parse_xml_btrace): Throw an error if parsing failed.
9505 * target.h (struct target_ops) <to_read_btrace>: Change parameters
9506 and return type to allow error reporting.
9507 (target_read_btrace): Change parameters and return type to allow
9509 * target.c (target_read_btrace): Update.
9510 * remote.c (remote_read_btrace): Support delta reads. Pass
9512 * NEWS: Announce it.
9514 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9516 * record.h (record_btrace_frame_unwind)
9517 (record_btrace_tailcall_frame_unwind): New declarations.
9518 * dwarf2-frame: Include record.h
9519 (dwarf2_frame_cfa): Throw an error for btrace frames.
9520 * record-btrace.c: Include hashtab.h.
9521 (btrace_get_bfun_name): New.
9522 (btrace_call_history): Call btrace_get_bfun_name.
9523 (struct btrace_frame_cache): New.
9525 (bfcache_hash, bfcache_eq, bfcache_new): New.
9526 (btrace_get_frame_function): New.
9527 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
9528 (record_btrace_frame_this_id): Compute own id.
9529 (record_btrace_frame_prev_register): Provide PC, throw_error
9530 for all other registers.
9531 (record_btrace_frame_sniffer): Detect btrace frames.
9532 (record_btrace_tailcall_frame_sniffer): New.
9533 (record_btrace_frame_dealloc_cache): New.
9534 (record_btrace_frame_unwind): Add new functions.
9535 (record_btrace_tailcall_frame_unwind): New.
9536 (_initialize_record_btrace): Allocate cache.
9537 * btrace.c (btrace_clear): Call reinit_frame_cache.
9538 * NEWS: Announce it.
9540 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9542 * record-btrace.c (record_btrace_set_replay)
9543 (record_btrace_goto_begin, record_btrace_goto_end)
9544 (record_btrace_goto): New.
9545 (init_record_btrace_ops): Initialize them.
9546 * NEWS: Announce it.
9548 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9550 * record-btrace.c (record_btrace_find_new_threads)
9551 (record_btrace_thread_alive): New.
9552 (init_record_btrace_ops): Initialize to_find_new_threads and
9555 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9557 * record-btrace.c (record_btrace_resume): New.
9558 (record_btrace_wait): New.
9559 (init_record_btrace_ops): Initialize to_wait and to_resume.
9561 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9563 * record-btrace.c (record_btrace_xfer_partial)
9564 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
9565 (record_btrace_allow_memory_access): New.
9566 (init_record_btrace_ops): Initialize new methods.
9567 * target.c (raw_memory_xfer_partial): Bail out if target reports
9568 that this memory is not available.
9570 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9572 * target.h (target_ops) <to_insert_breakpoint>
9573 <to_remove_breakpoint>: Add target_ops parameter.
9574 (forward_target_insert_breakpoint): New.
9575 (forward_target_remove_breakpoint): New.
9576 (memory_remove_breakpoint, memory_insert_breakpoint):
9577 Add target_ops parameter.
9578 * target.c (target_insert_breakpoint): Split into this and ...
9579 (forward_target_insert_breakpoint): ... this.
9580 (target_remove_breakpoint): Split into this and ...
9581 (forward_target_remove_breakpoint): ... this.
9582 (debug_to_insert_breakpoint): Add target_ops parameter.
9583 Call forward_target_insert_breakpoint.
9584 (debug_to_remove_breakpoint): Add target_ops parameter.
9585 Call forward_target_remove_breakpoint.
9586 (update_current_target): Do not inherit or default to_insert_breakpoint
9587 and to_remove_breakpoint.
9588 * corelow.c (ignore): Add target_ops parameter.
9589 * exec.c (ignore): Add target_ops parameter.
9590 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
9591 Add target_ops parameter.
9592 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
9593 Add target_ops parameter.
9594 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
9595 Add target_ops parameter.
9596 * record-full.c (record_full_beneath_to_insert_breakpoint)
9597 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
9598 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
9599 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
9600 (record_full_core_remove_breakpoint): Add target_ops parameter.
9602 (record_full_beneath_to_insert_breakpoint_ops)
9603 (record_full_beneath_to_remove_breakpoint_ops)
9604 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
9605 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
9606 tmp_to_remove_breakpoint_ops,
9607 record_full_beneath_to_insert_breakpoint_ops, and
9608 record_full_beneath_to_remove_breakpoint_ops.
9609 * remote-m32r-sdi.c (m32r_insert_breakpoint)
9610 (m32r_remove_breakpoint): Add target_ops parameter.
9611 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
9612 Add target_ops parameter.
9613 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
9614 Add target_ops parameter.
9616 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
9617 Markus Metzger <markus.t.metzger@intel.com>
9619 * record-btrace.c: Include frame-unwind.h.
9620 (record_btrace_frame_unwind_stop_reason)
9621 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
9622 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
9624 (init_record_btrace_ops): Install it.
9626 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
9628 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
9631 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
9633 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
9636 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
9638 * frame-unwind.c: Include target.h.
9639 (frame_unwind_try_unwinder): New function with code from ...
9640 (frame_unwind_find_by_frame): ... here. New variable
9641 unwinder_from_target, call also target_get_unwinder)
9642 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
9643 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
9644 * target.h (struct target_ops): New fields to_get_unwinder and
9645 to_get_tailcall_unwinder.
9646 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
9648 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9650 * record-btrace.c (record_btrace_fetch_registers)
9651 (record_btrace_store_registers)
9652 (record_btrace_to_prepare_to_store): New.
9653 (init_record_btrace_ops): Add the above.
9655 2014-01-16 Tom Tromey <tromey@redhat.com>
9657 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
9658 * target.h (struct target_ops) <to_prepare_to_store>: Add
9660 (target_prepare_to_store): Add argument.
9661 * target.c (debug_to_prepare_to_store): Add argument.
9662 (update_current_target): Update.
9663 * remote.c (remote_prepare_to_store): Add 'self' argument.
9664 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
9665 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
9666 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
9667 * record-full.c (record_full_core_prepare_to_store): Add 'self'
9669 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
9670 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
9671 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
9672 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
9673 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
9675 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9677 * btrace.h (replay) <replay>: New.
9678 (btrace_is_replaying): New.
9679 * btrace.c (btrace_clear): Free replay iterator.
9680 (btrace_is_replaying): New.
9681 * record-btrace.c (record_btrace_is_replaying): New.
9682 (record_btrace_info): Print insn number if replaying.
9683 (record_btrace_insn_history): Start at replay position.
9684 (record_btrace_call_history): Start at replay position.
9685 (init_record_btrace_ops): Init to_record_is_replaying.
9687 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9689 * record-btrace.c (record_btrace_insn_history_range): Include
9691 (record_btrace_insn_history_from): Adjust range.
9692 (record_btrace_call_history_range): Include
9694 (record_btrace_call_history_from): Adjust range.
9695 * NEWS: Announce changes.
9697 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9699 * record.h (enum record_print_flag)
9700 <record_print_indent_calls>: New.
9701 * record.c (get_call_history_modifiers): Recognize /c modifier.
9702 (_initialize_record): Document /c modifier.
9703 * record-btrace.c (btrace_call_history): Add btinfo parameter.
9704 Reorder fields. Optionally indent the function name. Update
9706 * NEWS: Announce changes.
9708 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9710 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
9712 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9714 * btrace.c (ftrace_new_function): Start counting at one.
9715 * record-btrace.c (record_btrace_info): Adjust number of calls
9717 * NEWS: Announce it.
9719 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9721 * record-btrace.c (btrace_call_history_insn_range): Print
9722 insn range as [begin, end].
9724 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9726 * btrace.h (struct btrace_func_link): New.
9727 (enum btrace_function_flag): New.
9728 (struct btrace_inst): Rename to ...
9729 (struct btrace_insn): ...this. Update all users.
9730 (struct btrace_func) <ibegin, iend>: Remove.
9731 (struct btrace_func_link): New.
9732 (struct btrace_func): Rename to ...
9733 (struct btrace_function): ...this. Update all users.
9734 (struct btrace_function) <segment, flow, up, insn, insn_offset)
9735 (number, level, flags>: New.
9736 (struct btrace_insn_iterator): Rename to ...
9737 (struct btrace_insn_history): ...this.
9739 (struct btrace_insn_iterator, btrace_call_iterator): New.
9740 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
9741 (struct btrace_target_info) <begin, end, level>
9742 <insn_history, call_history>: New.
9743 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
9744 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
9745 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
9746 (btrace_call_number, btrace_call_begin, btrace_call_end)
9747 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
9748 (btrace_find_function_by_number, btrace_set_insn_history)
9749 (btrace_set_call_history): New.
9750 * btrace.c (btrace_init_insn_iterator)
9751 (btrace_init_func_iterator, compute_itrace): Remove.
9752 (ftrace_print_function_name, ftrace_print_filename)
9753 (ftrace_skip_file): Change
9755 (ftrace_init_func): Remove.
9756 (ftrace_debug): Use new btrace_function fields.
9757 (ftrace_function_switched): Also consider gaining and
9758 losing symbol information).
9759 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
9760 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
9761 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
9763 (ftrace_new_function): Move. Remove debug print.
9764 (ftrace_update_lines, ftrace_update_insns): New.
9765 (ftrace_update_function): Check for call, ret, and jump.
9766 (compute_ftrace): Renamed to ...
9767 (btrace_compute_ftrace): ...this. Rewritten to compute call
9769 (btrace_fetch, btrace_clear): Updated.
9770 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
9771 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
9772 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
9773 (btrace_call_number, btrace_call_begin, btrace_call_end)
9774 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
9775 (btrace_find_function_by_number, btrace_set_insn_history)
9776 (btrace_set_call_history): New.
9777 * record-btrace.c (require_btrace): Use new btrace thread
9779 (record_btrace_info, btrace_insn_history)
9780 (record_btrace_insn_history, record_btrace_insn_history_range):
9781 Use new btrace thread info fields and new iterator.
9782 (btrace_func_history_src_line): Rename to ...
9783 (btrace_call_history_src_line): ...this. Use new btrace
9785 (btrace_func_history): Rename to ...
9786 (btrace_call_history): ...this. Use new btrace thread info
9787 fields and new iterator.
9788 (record_btrace_call_history, record_btrace_call_history_range):
9789 Use new btrace thread info fields and new iterator.
9791 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9793 * frame.h (frame_id_build_unavailable_stack_special): New.
9794 * frame.c (frame_id_build_unavailable_stack_special): New.
9796 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9798 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
9799 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
9800 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
9802 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
9803 (i386_insn_is_jump, i386_jmp_p): New.
9804 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
9805 insn_is_jump to gdbarch.
9806 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
9807 * gdbarch.h: Regenerated.
9808 * gdbarch.c: Regenerated.
9809 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
9810 (default_insn_is_jump): New.
9811 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
9812 (default_insn_is_jump): New.
9814 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9816 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
9818 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
9819 (btrace_read_type) <btrace_read_new>: Change to ...
9820 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
9822 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9824 * common/linux-btrace.c (linux_read_btrace): Free trace from
9827 2014-01-15 Doug Evans <dje@google.com>
9829 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
9832 2014-01-15 Tom Tromey <tromey@redhat.com>
9834 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
9835 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
9836 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
9837 (set_objfile_main_name): New function.
9838 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
9839 language_of_main>: New fields.
9840 (set_objfile_main_name): Declare.
9841 * symtab.c (find_main_name): Loop over objfiles to find the main
9843 (set_main_name): Now static.
9844 (get_main_info): Add comment.
9845 * symtab.h (set_main_name): Don't declare.
9847 2014-01-15 Tom Tromey <tromey@redhat.com>
9849 * symtab.c (main_progspace_key): New global.
9850 (struct main_info): New.
9851 (name_of_main, language_of_main): Remove.
9852 (get_main_info, main_info_cleanup): New function.
9853 (set_main_name, main_name, main_language): Use get_main_info.
9854 (_initialize_symtab): Initialize main_progspace_key.
9856 2014-01-15 Tom Tromey <tromey@redhat.com>
9858 * dbxread.c (process_one_symbol): Update.
9859 * dwarf2read.c (read_partial_die): Update.
9860 * symfile.c (set_initial_language): Call main_language.
9861 * symtab.c (language_of_main): Now static.
9862 (set_main_name): Add 'lang' parameter.
9863 (find_main_name): Update.
9864 (main_language): New function.
9865 (symtab_observer_executable_changed): Update.
9866 * symtab.h (set_main_name): Update.
9867 (language_of_main): Remove.
9868 (main_language): Declare.
9870 2014-01-15 Tom Tromey <tromey@redhat.com>
9872 * symfile.c (init_entry_point_info): Use new "initialized" field.
9874 * objfiles.h (struct entry_point) <initialized>: New field.
9875 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
9876 (struct objfile) <ei>: ...here. Remove.
9877 * objfiles.c (entry_point_address_query): Update.
9879 2014-01-15 Tom Tromey <tromey@redhat.com>
9881 * objfiles.c (entry_point_address_query): Relocate entry point
9883 (objfile_relocate1): Do not relocate entry point address.
9884 * objfiles.h (struct entry_info) <entry_point>: Update comment.
9885 <the_bfd_section_index>: New field.
9886 * symfile.c (init_entry_point_info): Find the entry point's
9889 2014-01-15 Tom Tromey <tromey@redhat.com>
9891 * solib-frv.c (enable_break): Use entry_point_address_query.
9893 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
9895 * NEWS: Add note on improved process record-replay on
9896 arm*-linux* targets.
9898 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
9900 * arm-tdep.c (enum arm_record_result): New enum.
9901 (arm_record_unsupported_insn): New function.
9902 (arm_record_coproc_data_proc): Removed.
9903 (thumb2_record_ld_st_multiple): New function.
9904 (thumb2_record_ld_st_dual_ex_tbb): New function.
9905 (thumb2_record_data_proc_sreg_mimm): New function.
9906 (thumb2_record_ps_dest_generic): New function.
9907 (thumb2_record_branch_misc_cntrl): New function.
9908 (thumb2_record_str_single_data): New function.
9909 (thumb2_record_ld_mem_hints): New function.
9910 (thumb2_record_ld_word): New function.
9911 (thumb2_record_lmul_lmla_div): New function.
9912 (thumb2_record_decode_insn_handler): New function.
9913 (decode_insn): Add thumb32 instruction handlers.
9915 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
9917 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
9918 (struct arm_linux_record_tdep): Declare.
9919 (arm_canonicalize_syscall): New function.
9920 (arm_all_but_pc_registers_record): New function.
9921 (arm_linux_syscall_record): New function.
9922 (arm_linux_init_abi): Add syscall recording constructs.
9923 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
9924 decoding. (arm_record_coproc_data_proc): Update arm syscall
9926 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
9927 <arm_syscall_record>: New field.
9928 * configure.tgt (arm*-*-linux*): Add linux-record.o to
9931 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
9933 * arm-tdep.c (thumb_record_misc): Update to use sp as base
9934 register for push instruction recording.
9936 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
9938 * arm-tdep.c (thumb_record_misc): Update to correct logical
9939 error while recording ldm, ldmia and pop instructions.
9941 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
9943 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
9945 2014-01-15 Pedro Alves <palves@redhat.com>
9947 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
9948 (go32_resume, go32_fetch_registers, store_register)
9949 (go32_store_registers, go32_prepare_to_store)
9950 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
9951 (go32_create_inferior, go32_can_run, go32_terminal_init)
9952 (go32_terminal_inferior, go32_terminal_ours): Delete forward
9955 2014-01-15 Tom Tromey <tromey@redhat.com>
9957 * target.h (async_callback_ftype): New typedef.
9958 (struct target_ops) <to_async>: Use it.
9960 2014-01-15 Joel Brobecker <brobecker@adacore.com>
9962 * python/py-value.c (get_field_type): Remove unnecessary curly
9963 braces for single-statement if block.
9965 2014-01-15 Joel Brobecker <brobecker@adacore.com>
9967 * python/py-type.c (convert_field): Add missing empty line
9970 2014-01-14 Doug Evans <dje@google.com>
9972 * symfile.h (expand_symtabs_matching): Renamed from
9973 expand_partial_symbol_names. Update prototype.
9974 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
9975 * symfile.c (expand_symtabs_matching): Renamed from
9976 expand_partial_symbol_names. New args file_matcher, kind.
9977 Rename arg fun to symbol_matcher.
9978 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
9979 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
9980 ada_expand_partial_symbol_name.
9981 (ada_make_symbol_completion_list): Update to call
9982 expand_symtabs_matching.
9983 (ada_add_global_exceptions): Call expand_symtabs_matching.
9984 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
9985 call map_symbol_filenames.
9986 * symtab.c (sources_info): Update to call map_symbol_filenames.
9987 (search_symbols): Call expand_symtabs_matching.
9988 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
9989 (default_make_symbol_completion_list_break_on): Update to call
9990 expand_symtabs_matching.
9991 (make_source_files_completion_list): Update to call
9992 map_symbol_filenames.
9994 2014-01-14 Doug Evans <dje@google.com>
9996 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
9997 (expand_symtabs_symbol_matcher_ftype): New typedef.
9998 (quick_symbol_functions.expand_symtabs_matching): Update to use.
9999 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
10000 * symfile.c (expand_partial_symbol_names): Update to use
10001 expand_symtabs_symbol_matcher_ftype.
10002 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
10003 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
10004 Arg name_matcher renamed to symbol_matcher.
10005 * psymtab.c (recursively_search_psymtabs): Update to use
10006 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
10008 (expand_symtabs_matching_via_partial): Update to use
10009 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
10010 Arg name_matcher renamed to symbol_matcher.
10012 2014-01-14 Doug Evans <dje@google.com>
10014 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
10015 (map_partial_symbol_filenames): Ditto.
10016 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
10017 (map_partial_symbol_filenames): Ditto.
10018 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
10019 (map_partial_symbol_filenames): Ditto.
10020 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
10021 (map_partial_symbol_filenames): Ditto.
10022 * symtab.c: Delete #include "psymtab.h".
10024 2014-01-14 Pedro Alves <palves@redhat.com>
10025 Tom Tromey <tromey@redhat.com>
10027 * infrun.c (use_displaced_stepping): Use find_record_target
10028 instead of RECORD_IS_USED.
10029 (adjust_pc_after_break): Use record_full_is_used instead of
10031 * record-btrace.c (record_btrace_open): Call record_preopen
10032 instead of checking RECORD_IS_USED.
10033 * record-full.c (record_full_shortname)
10034 (record_full_core_shortname): New globals.
10035 (record_full_is_used): New function.
10036 (find_full_open): Call record_preopen instead of checking
10038 (init_record_full_ops): Set the target's shortname to
10039 record_full_shortname.
10040 (init_record_full_core_ops): Set the target's shortname to
10041 record_full_core_shortname.
10042 * record-full.h (record_full_is_used): Declare.
10043 * record.c (find_record_target): Make extern.
10044 (record_preopen): New function.
10045 * record.h (RECORD_IS_USED): Delete macro.
10046 (find_record_target, record_preopen): Declare functions.
10048 2014-01-14 Yao Qi <yao@codesourcery.com>
10050 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
10051 'len''s type to ULONGEST.
10052 (core_xfer_shared_libraries_aix): Likewise.
10053 * gdbarch.c, gdbarch.h: Regenerated.
10054 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
10055 Change type of 'len' to ULONGEST.
10056 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
10057 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
10059 2014-01-14 Yao Qi <yao@codesourcery.com>
10061 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
10062 type of 'len' to ULONGEST.
10063 (linux_xfer_osdata_processgroups): Likewise.
10064 (linux_xfer_osdata_threads): Likewise.
10065 (linux_xfer_osdata_fds): Likewise.
10066 (linux_xfer_osdata_isockets): Likewise.
10067 (linux_xfer_osdata_shm): Likewise.
10068 (linux_xfer_osdata_sem): Likewise.
10069 (linux_xfer_osdata_msg): Likewise.
10070 (linux_common_xfer_osdata): Likewise.
10071 (struct osdata_type) <getter>: Likewise.
10072 * common/linux-osdata.h (linux_common_xfer_osdata): Update
10075 2014-01-14 Yao Qi <yao@codesourcery.com>
10077 * target.h (target_xfer_partial_ftype): Update.
10078 (struct target_ops) <to_xfer_partial>: Change 'len' type to
10080 * aix-thread.c (aix_thread_xfer_partial): Change type of
10081 argument 'len' to ULONGEST.
10082 * auxv.c (procfs_xfer_auxv): Likewise.
10083 (ld_so_xfer_auxv): Likewise.
10084 (memory_xfer_auxv): Likewise.
10085 * bfd-target.c (target_bfd_xfer_partial): Likewise.
10086 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10087 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
10088 * corelow.c (core_xfer_partial): Likewise.
10089 * ctf.c (ctf_xfer_partial): Likewise.
10090 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
10092 (darwin_read_dyld_info): Likewise.
10093 (darwin_xfer_partial): Likewise.
10094 * exec.c (section_table_xfer_memory_partial): Likewise.
10095 (exec_xfer_partial): Likewise.
10096 * exec.h (section_table_xfer_memory_partial): Update
10098 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
10099 instead of plongest.
10100 (gnu_xfer_partial): Likewise.
10101 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
10102 (ia64_hpux_xfer_solib_got): Likewise.
10103 (ia64_hpux_xfer_partial): Likewise.
10104 * ia64-linux-nat.c (ia64_linux_xfer_partial):
10105 * inf-ptrace.c (inf_ptrace_xfer_partial):
10106 * inf-ttrace.c (inf_ttrace_xfer_partial):
10107 * linux-nat.c (linux_xfer_siginfo): Likewise.
10108 (linux_nat_xfer_partial): Likewise.
10109 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
10110 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
10111 * monitor.c (monitor_xfer_memory): Likewise.
10112 (monitor_xfer_partial): Likewise.
10113 * procfs.c (procfs_xfer_partial): Likewise.
10114 * record-full.c (record_full_xfer_partial): Likewise.
10115 (record_full_core_xfer_partial): Likewise.
10116 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
10117 instead of plongest.
10118 (gdbsim_xfer_partial): Likewise.
10119 * remote.c (remote_xfer_partial): Likewise.
10120 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
10121 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
10123 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10124 (rs6000_xfer_shared_libraries): Likewise.
10125 * sol-thread.c (sol_thread_xfer_partial): Likewise.
10126 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10127 (sparc_xfer_partial): Likewise.
10128 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10129 (spu_xfer_partial): Likewise.
10130 * spu-multiarch.c (spu_xfer_partial): Likewise.
10131 * target.c (target_read_live_memory): Likewise.
10132 (memory_xfer_live_readonly_partial): Likewise.
10133 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
10134 (target_xfer_partial, default_xfer_partial): Likewise.
10135 (current_xfer_partial): Likewise.
10136 * tracepoint.c (tfile_xfer_partial): Likewise.
10137 * windows-nat.c (windows_xfer_memory): Likewise. Call
10138 pulongest instead of plongest.
10139 (windows_xfer_partial): Likewise.
10140 (windows_xfer_shared_libraries): Likewise.
10142 2014-01-14 Yao Qi <yao@codesourcery.com>
10144 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
10145 target_xfer_partial_ftype.
10147 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
10151 * valops.c (value_struct_elt_bitpos): New function
10152 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
10153 object to 'None' if the field name is an empty string ("").
10154 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
10155 attribute to look for a field when 'name' is 'None'.
10156 (get_field_type): New function
10158 2014-01-13 Doug Evans <dje@google.com>
10161 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
10162 (try_open_dwop_file): Ditto.
10163 * gdb_bfd.c: #include "vec.h".
10164 (bfdp): New typedef.
10165 (struct gdb_bfd_data): New member included_bfds.
10166 (gdb_bfd_unref): Unref all included bfds.
10167 (gdb_bfd_record_inclusion): New function.
10168 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
10170 2014-01-13 Tom Tromey <tromey@redhat.com>
10172 * gdbcore.h (deprecated_core_resize_section_table): Remove.
10174 2014-01-13 Tom Tromey <tromey@redhat.com>
10176 * defs.h (use_windows): Remove.
10177 * gdb.c (main): Update.
10178 * main.c (captured_main, gdb_main): Update.
10179 * main.h (struct captured_main_args) <use_windows>: Remove.
10180 * top.c (use_windows): Remove.
10182 2014-01-13 Tom Tromey <tromey@redhat.com>
10184 * defs.h (deprecated_flush_hook): Remove.
10186 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10189 * linux-thread-db.c (try_thread_db_load): Add parameter
10190 check_auto_load_safe. Move here the file_is_auto_load_safe call.
10191 (try_thread_db_load_from_pdir_1): Move it there from here.
10192 (try_thread_db_load_from_sdir): Update caller.
10193 (try_thread_db_load_from_dir): Move it there from here.
10195 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
10197 * regformats/regdat.sh: Always rewrite the register file.
10199 2014-01-13 Pedro Alves <palves@redhat.com>
10201 * Makefile.in (CHECK_HEADERS): New variable.
10202 (check-headers:): New rule.
10204 2014-01-13 Tom Tromey <tromey@redhat.com>
10206 * cli/cli-setshow.c (do_set_command): Update.
10207 * defs.h (deprecated_set_hook): Remove.
10208 * top.c (deprecated_set_hook): Remove.
10210 2014-01-13 Pedro Alves <palves@redhat.com>
10212 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
10213 the tracepoint if the PC is a pseudo-register.
10215 2014-01-13 Tom Tromey <tromey@redhat.com>
10217 * defs.h (XCALLOC): Remove.
10218 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
10219 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
10220 * dwarf2loc.c (allocate_piece_closure): Likewise.
10221 * elfread.c (elf_symfile_segments): Likewise.
10222 (elf_symfile_segments): Likewise.
10223 * gdbtypes.c (copy_type_recursive): Likewise.
10224 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
10225 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
10226 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
10228 * mt-tdep.c (mt_gdbarch_init): Likewise.
10229 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
10231 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
10232 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
10233 * registry.c (registry_alloc_data): Likewise.
10234 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
10235 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
10236 * serial.c (serial_fdopen_ops): Likewise.
10237 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
10239 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
10240 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
10243 2014-01-13 Tom Tromey <tromey@redhat.com>
10245 * defs.h (XMALLOC): Remove.
10246 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
10247 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
10248 * cli-out.c (struct ui_out *): Likewise.
10249 * cli/cli-dump.c (add_dump_command): Likewise.
10250 (add_dump_command): Likewise.
10251 * complaints.c (get_complaints): Likewise.
10252 (find_complaint): Likewise.
10253 * dwarf2-frame.c (execute_cfa_program): Likewise.
10254 * dwarf2read.c (abbrev_table_read_table): Likewise.
10255 * gdbarch.sh: Likewise.
10256 * gdbarch.c: Rebuild.
10257 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
10258 * interps.c (interp_new): Likewise.
10259 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
10260 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
10261 * mi/mi-console.c (mi_console_file_new): Likewise.
10262 * mi/mi-interp.c (mi_interpreter_init): Likewise.
10263 * mi/mi-out.c (mi_out_new): Likewise.
10264 * mi/mi-parse.c (mi_parse): Likewise.
10265 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
10266 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
10267 * observer.c (xalloc_observer_list_node): Likewise.
10268 * regcache.c (regcache_xmalloc_1): Likewise.
10269 * reggroups.c (reggroup_new): Likewise.
10270 (_initialize_reggroup): Likewise.
10271 * registry.c (register_data_with_cleanup): Likewise.
10272 * remote.c (remote_notif_stop_alloc_reply): Likewise.
10273 * ser-base.c (serial_ttystate): Likewise.
10274 * ser-mingw.c (make_pipe_state): Likewise.
10275 * ser-pipe.c (pipe_open): Likewise.
10276 * serial.c (serial_open): Likewise.
10277 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
10278 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
10279 (tui_alloc_win_info): Likewise.
10280 (tui_add_content_elements): Likewise.
10281 * tui/tui-file.c (tui_file_new): Likewise.
10282 * tui/tui-out.c (tui_out_new): Likewise.
10283 * ui-file.c (mem_file_new): Likewise.
10284 * ui-out.c (push_level): Likewise.
10285 (make_cleanup_ui_out_end): Likewise.
10286 (append_header_to_list): Likewise.
10287 (ui_out_new): Likewise.
10288 * user-regs.c (user_reg_add_builtin): Likewise.
10290 2014-01-13 Tom Tromey <tromey@redhat.com>
10292 * defs.h (XZALLOC): Remove.
10293 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
10294 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
10295 (get_ada_tasks_inferior_data): Likewise.
10296 * auto-load.c (get_auto_load_pspace_data): Likewise.
10297 * auxv.c (get_auxv_inferior_data): Likewise.
10298 * bfd-target.c (target_bfd_reopen): Likewise.
10299 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
10300 (deprecated_insert_raw_breakpoint): Likewise.
10301 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
10302 * corelow.c (core_open): Likewise.
10303 * darwin-nat.c (darwin_check_new_threads): Likewise.
10304 (darwin_attach_pid): Likewise.
10305 * dummy-frame.c (dummy_frame_push): Likewise.
10306 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
10307 * dwarf2loc.c (allocate_piece_closure): Likewise.
10308 * elfread.c (elf_symfile_segments): Likewise.
10309 * eval.c (ptrmath_type_p): Likewise.
10310 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
10311 * gdbtypes.c (alloc_type_arch): Likewise.
10312 (alloc_type_instance): Likewise.
10313 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
10314 * inf-child.c (inf_child_can_use_agent): Likewise.
10315 * inflow.c (get_inflow_inferior_data): Likewise.
10316 * infrun.c (save_infcall_suspend_state): Likewise.
10317 * jit.c (jit_reader_load): Likewise.
10318 (get_jit_objfile_data): Likewise.
10319 (get_jit_program_space_data): Likewise.
10320 (jit_object_open_impl): Likewise.
10321 (jit_symtab_open_impl): Likewise.
10322 (jit_block_open_impl): Likewise.
10323 (jit_frame_sniffer): Likewise.
10324 * linux-fork.c (add_fork): Likewise.
10325 * maint.c (make_command_stats_cleanup): Likewise.
10326 * objfiles.c (get_objfile_pspace_data): Likewise.
10327 * opencl-lang.c (struct lval_closure): Likewise.
10328 * osdata.c (osdata_start_osdata): Likewise.
10329 * progspace.c (new_address_space): Likewise.
10330 (add_program_space): Likewise.
10331 * remote-sim.c (get_sim_inferior_data): Likewise.
10332 * sh-tdep.c (sh_gdbarch_init): Likewise.
10333 * skip.c (Ignore): Likewise.
10334 (skip_delete_command): Likewise.
10335 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
10336 (library_list_start_library): Likewise.
10337 (solib_aix_current_sos): Likewise.
10338 * solib-darwin.c (get_darwin_info): Likewise.
10339 (darwin_current_sos): Likewise.
10340 * solib-dsbt.c (get_dsbt_info): Likewise.
10341 * solib-ia64-hpux.c (new_so_list): Likewise.
10342 (ia64_hpux_get_solib_linkage_addr): Likewise.
10343 * solib-spu.c (append_ocl_sos): Likewise.
10344 (spu_current_sos): Likewise.
10345 * solib-svr4.c (get_svr4_info): Likewise.
10346 (svr4_keep_data_in_core): Likewise.
10347 (library_list_start_library): Likewise.
10348 (svr4_default_sos): Likewise.
10349 (svr4_read_so_list): Likewise.
10350 * solib-target.c (library_list_start_library): Likewise.
10351 (solib_target_current_sos): Likewise.
10352 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
10353 * symfile-debug.c (install_symfile_debug_logging): Likewise.
10354 * symfile.c (default_symfile_segments): Likewise.
10355 * target-descriptions.c (tdesc_data_init): Likewise.
10356 (tdesc_create_reg): Likewise.
10357 (struct tdesc_type *): Likewise.
10358 (tdesc_create_vector): Likewise.
10359 (tdesc_set_struct_size): Likewise.
10360 (struct tdesc_type *): Likewise.
10361 (tdesc_free_feature): Likewise.
10362 (tdesc_create_feature): Likewise.
10363 * windows-nat.c (windows_add_thread): Likewise.
10364 (windows_make_so): Likewise.
10365 * xml-support.c (gdb_xml_body_text): Likewise.
10366 (gdb_xml_create_parser_and_cleanup): Likewise.
10367 (xml_process_xincludes): Likewise.
10368 * xml-syscall.c (allocate_syscalls_info): Likewise.
10369 (syscall_create_syscall_desc): Likewise.
10371 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
10373 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
10374 function, with code from i386_stap_parse_special_token.
10375 (i386_stap_parse_special_token_three_arg_disp): Likewise.
10376 (i386_stap_parse_special_token): Move code to the two functions
10377 above; simplify it.
10379 2014-01-09 Pedro Alves <palves@redhat.com>
10380 Hui Zhu <hui@codesourcery.com>
10383 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
10384 bp_err_string. Don't mark the location shlib_disabled if the
10385 error thrown wasn't a generic or memory error. Catch errors
10386 thrown while inserting breakpoints in overlayed code. Output
10387 error message of software breakpoints.
10388 * remote.c (remote_insert_breakpoint): If this breakpoint has
10389 target-side commands but this stub doesn't support Z0 packets,
10390 throw NOT_SUPPORTED_ERROR error.
10391 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
10392 * target.h (target_insert_breakpoint): Extend comment.
10393 (target_insert_hw_breakpoint): Add comment.
10395 2014-01-08 Pedro Alves <palves@redhat.com>
10397 * remote.c (remote_add_thread): Add threads silently if starting
10399 (remote_notice_new_inferior): If in all-stop, and starting up,
10400 don't call notice_new_inferior.
10401 (get_current_thread): New function, factored out from ...
10402 (add_current_inferior_and_thread): ... this. Adjust.
10403 (remote_start_remote) <all-stop>: Fetch the thread list. If we
10404 found any thread, then select the remote's current thread as GDB's
10405 current thread too.
10407 2014-01-08 Joel Brobecker <brobecker@adacore.com>
10409 * NEWS: Create a new section for the next release branch.
10410 Rename the section of the current branch, now that it has
10413 2014-01-08 Joel Brobecker <brobecker@adacore.com>
10415 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
10416 * version.in: Bump version to 7.7.50.DATE-cvs.
10418 2014-01-08 Yao Qi <yao@codesourcery.com>
10420 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
10421 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
10422 (spu_xfer_partial): Cast 'buf' to 'const char *'.
10424 2014-01-08 Yao Qi <yao@codesourcery.com>
10426 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
10427 return value of bfd_get_filename to symbol_file_add_from_bfd.
10429 2014-01-08 Pierre Muller <muller@sourceware.org>
10432 * coff-pe-read.c (struct read_pe_section_data): Add index field.
10433 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
10434 to prim_record_mininal_symbol_and_info.
10435 (add_pe_forwarded_sym): Use known section number of forwarded symbol
10436 in call to prim_record_minimal_symbol_and_info.
10437 (read_pe_exported_syms): Set index field of section_data.
10439 2014-01-07 Andrew Pinski <apinski@cavium.com>
10441 * features/aarch64-core.xml (cpsr): Change to be 64bit.
10442 * features/aarch64.c: Regenerate.
10444 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
10446 * target.c (return_null): Define.
10447 (update_current_target): Use it instead of return_zero for
10448 functions that return a pointer.
10450 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
10452 * source.c (add_path): Fix check for duplicated paths in the previously
10455 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
10457 * ada-lang.c: Remove duplicated include statements.
10458 * alphabsd-nat.c: Ditto.
10459 * amd64-darwin-tdep.c: Ditto.
10460 * amd64fbsd-nat.c: Ditto.
10461 * auto-load.c: Ditto.
10463 * breakpoint.c: Ditto.
10464 * dbxread.c: Ditto.
10465 * fork-child.c: Ditto.
10466 * gdb_usleep.c: Ditto.
10467 * i386-darwin-tdep.c: Ditto.
10468 * i386fbsd-nat.c: Ditto.
10470 * inferior.c: Ditto.
10471 * jv-lang.c: Ditto.
10472 * linux-nat.c: Ditto.
10473 * linux-tdep.c: Ditto.
10474 * m68kbsd-nat.c: Ditto.
10475 * m68klinux-nat.c: Ditto.
10476 * microblaze-tdep.c: Ditto.
10477 * mips-linux-tdep.c: Ditto.
10478 * mn10300-tdep.c: Ditto.
10479 * nto-tdep.c: Ditto.
10480 * opencl-lang.c: Ditto.
10482 * printcmd.c: Ditto.
10483 * regcache.c: Ditto.
10484 * remote-m32r-sdi.c: Ditto.
10486 * symfile.c: Ditto.
10488 * tilegx-linux-nat.c: Ditto.
10489 * tilegx-tdep.c: Ditto.
10490 * tracepoint.c: Ditto.
10492 * vaxbsd-nat.c: Ditto.
10493 * windows-nat.c: Ditto.
10494 * xtensa-tdep.c: Ditto.
10496 2014-01-07 Yao Qi <yao@codesourcery.com>
10498 * spu-linux-nat.c (_initialize_spu_nat): Declare.
10500 2014-01-07 Yao Qi <yao@codesourcery.com>
10501 Joel Brobecker <brobecker@adacore.com>
10503 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
10504 (pdc_write_regs): Likewise.
10505 (fetch_regs_kernel_thread): Likewise.
10506 (store_regs_kernel_thread): Likewise.
10508 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10510 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
10511 tagged type objects to their actual type.
10513 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10515 * ada-valprint.c (print_field_values): Add "language" parameter.
10516 Update calls to print_field_values and print_variant_part.
10517 Pass new parameter "language" in call to val_print instead
10518 of "current_language". Replace call to ada_val_print by call
10520 (print_variant_part): Add "language" parameter.
10521 (ada_val_print_struct_union): Update call to print_field_values.
10523 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10525 * ada-valprint.c (ui_memcpy): Delete.
10526 (ada_print_floating): Update documentation. Add empty line
10527 between between function documentation and implementation.
10528 Delete variable "buffer". Use ui_file_xstrdup in place of
10529 ui_file_put. Minor adjustments following this change.
10531 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10533 * ada-valprint.c (ada_val_print_string): New function,
10534 extracted from ada_val_print_array.
10535 (ada_val_print_array): Replace extracted code by call
10536 to ada_val_print_string followed by a return. Move
10537 "else" branch to the function's top block.
10539 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10541 * ada-valprint.c (ada_val_print_array): Move implementation
10542 down. Rename parameter "offset" and "val" into "offset_aligned"
10543 and "original_value" respectively. Add parameter "offset".
10545 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10547 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
10548 re-organizing the code. Change the "???" message printed
10549 when target type is a TYPE_CODE_UNDEF into
10550 "<ref to undefined type>".
10552 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10554 * ada-valprint.c (print_record): Delete, implementation inlined...
10555 (ada_val_print_struct_union): ... here. Remove call to
10556 ada_check_typedef in inlined implementation.
10558 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10560 * ada-valprint.c (ada_val_print_gnat_array): New function,
10561 extracted from ada_val_print_1;
10562 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
10563 (ada_val_print_flt, ada_val_print_struct_union)
10564 (ada_val_print_ref): Likewise.
10565 (ada_val_print_1): Delete variables i and elttype.
10566 Replace extracted-out code by call to corresponding
10569 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10571 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
10573 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10575 * ada-valprint.c (ada_val_print_1): Replace calls to
10576 ada_val_print_1 by calls to val_print.
10578 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10580 * ada-valprint.c (ada_val_print_1): Add parameter "language".
10581 Update calls to self accordingly. Replace calls to c_val_print
10582 by calls to val_print.
10584 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10586 * ada-valprint.c (print_record): Delete declaration.
10587 (adjust_type_signedness, ada_val_print_1): Likewise.
10588 (ada_val_print): Move function implementation down.
10589 (print_variant_part, print_field_values, print_record):
10590 Move function implementation up.
10592 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10594 * python/py-type.c (typy_get_name): New function.
10595 (type_object_getset): Add entry for attribute "name".
10596 * NEWS: Add entry mentioning this new attribute.
10598 2014-01-07 Yao Qi <yao@codesourcery.com>
10600 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
10603 2014-01-07 Yao Qi <yao@codesourcery.com>
10605 * gnu-nat.c (info_port_rights): Add qualifier const to
10608 2014-01-07 Yao Qi <yao@codesourcery.com>
10610 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
10612 2014-01-07 Yao Qi <yao@codesourcery.com>
10614 * gnu-nat.c (make_inf) Update declaration.
10615 (make_inf): Make it static.
10616 (inf_set_traced): Likewise.
10617 (inf_port_to_thread, inf_task_died_status): Likewise.
10619 2014-01-07 Yao Qi <yao@codesourcery.com>
10621 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
10623 2014-01-07 Yao Qi <yao@codesourcery.com>
10625 * gnu-nat.c (_initialize_gnu_nat): Declare.
10627 2014-01-07 Yao Qi <yao@codesourcery.com>
10629 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
10631 (struct gdbarch_info) <byte_order>: Change type to
10633 <byte_order_for_code>: Likewise.
10634 * gdbarch.c, gdbarch.h: Regenerated.
10636 2014-01-06 Sasha Smundak <asmundak@google.com>
10638 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
10640 2014-01-06 Tom Tromey <tromey@redhat.com>
10642 * doublest.c (convert_doublest_to_floatformat): Use const, not
10644 * somread.c (som_symtab_read): Likewise.
10646 2014-01-07 Hui Zhu <hui@codesourcery.com>
10648 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
10649 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
10650 (gdb_bfd_fopen): Ditto.
10651 (gdb_bfd_openr): Ditto.
10652 (gdb_bfd_openw): Ditto.
10653 (gdb_bfd_openr_iovec): Ditto.
10654 (gdb_bfd_fdopenr): Ditto.
10655 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
10656 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
10658 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
10660 * symfile-mem.c (symbol_file_add_from_memory): Removed
10661 gdb_bfd_stash_filename.
10663 2014-01-03 Doug Evans <dje@google.com>
10665 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
10668 2014-01-01 Joel Brobecker <brobecker@adacore.com>
10670 Update year range in copyright notice of all files.
10672 2014-01-01 Joel Brobecker <brobecker@adacore.com>
10674 * top.c (print_gdb_version): Set copyright year to 2014.
10676 2014-01-01 Joel Brobecker <brobecker@adacore.com>
10678 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
10680 For older changes see ChangeLog-2013.
10686 version-control: never