1 2014-07-24 Tom Tromey <tromey@redhat.com>
3 * remote.c (remote_serial_open, print_packet, putpkt)
4 (putpkt_binary): Constify.
5 * remote.h (putpkt): Update.
7 2014-07-24 Tom Tromey <tromey@redhat.com>
9 * monitor.c (monitor_open): Make "args" const.
10 * monitor.h (monitor_open): Update.
12 2014-07-24 Tom Tromey <tromey@redhat.com>
14 * maint.c (match_bfd_flags): Make "string" const.
15 (print_bfd_section_info): Remove casts.
16 (print_objfile_section_info): Make "string" const.
18 2014-07-24 Tom Tromey <tromey@redhat.com>
20 * inf-child.c (inf_child_open_target): Make "arg" const.
21 * inf-child.h (inf_child_open_target): Update.
23 2014-07-24 Tom Tromey <tromey@redhat.com>
25 * environ.c (unset_in_environ): Make "var" const.
26 * environ.h (unset_in_environ): Update.
28 2014-07-24 Tom Tromey <tromey@redhat.com>
30 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
32 (scan_filename_with_cleanup): Likewise.
33 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
35 (restore_command): Update.
37 2014-07-24 Pedro Alves <palves@redhat.com>
39 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
41 2014-07-24 Tom Tromey <tromey@redhat.com>
42 Gary Benson <gbenson@redhat.com>
44 * nat/linux-ptrace.c (additional_flags): New global.
45 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
46 additional_flags; don't check GDBSERVER.
47 (linux_ptrace_set_additional_flags): New function.
48 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
50 * linux-nat.c (_initialize_linux_nat): Call
51 linux_ptrace_set_additional_flags.
53 2014-07-24 Tom Tromey <tromey@redhat.com>
55 * make-target-delegates (munge_type, write_debugmethod): New
57 (debug_names): New global.
58 ($TARGET_DEBUG_PRINTER): New global.
59 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
61 Write debug methods. Generate init_debug_target.
62 * target-debug.h: New file.
63 * target-delegates.c: Rebuild.
64 * target.c: Include target-debug.h.
65 (debug_target): Hoist definition.
66 (target_kill, target_get_section_table, target_memory_map)
67 (target_flash_erase, target_flash_done, target_detach)
68 (target_disconnect, target_wait, target_resume)
69 (target_pass_signals, target_program_signals, target_follow_fork)
70 (target_mourn_inferior, target_search_memory)
71 (target_thread_address_space, target_close)
72 (target_find_new_threads, target_core_of_thread)
73 (target_verify_memory, target_insert_mask_watchpoint)
74 (target_remove_mask_watchpoint): Remove targetdebug code.
75 (debug_to_post_attach, debug_to_prepare_to_store)
76 (debug_to_files_info, debug_to_insert_breakpoint)
77 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
78 (debug_to_region_ok_for_hw_watchpoint)
79 (debug_to_can_accel_watchpoint_condition)
80 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
81 (debug_to_watchpoint_addr_within_range)
82 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
83 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
84 (debug_to_terminal_init, debug_to_terminal_inferior)
85 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
86 (debug_to_terminal_save_ours, debug_to_terminal_info)
87 (debug_to_load, debug_to_post_startup_inferior)
88 (debug_to_insert_fork_catchpoint)
89 (debug_to_remove_fork_catchpoint)
90 (debug_to_insert_vfork_catchpoint)
91 (debug_to_remove_vfork_catchpoint)
92 (debug_to_insert_exec_catchpoint)
93 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
94 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
95 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
96 (setup_target_debug): Call init_debug_target.
97 * target.h (TARGET_DEBUG_PRINTER): New macro.
98 (struct target_ops) <to_resume, to_wait, to_pass_signals,
99 to_program_signals>: Use TARGET_DEBUG_PRINTER.
101 2014-07-24 Gary Benson <gbenson@redhat.com>
103 * exceptions.h (throw_vfatal): Renamed to...
104 (throw_vquit): New declaration.
105 (throw_quit): Likewise.
106 * exceptions.c (throw_vfatal): Renamed to...
107 (throw_vquit): New function.
108 (throw_quit): Likewise.
109 (throw_error): Call throw_verror rather than throw_it.
110 * utils.h (vfatal): Removed.
112 * utils.c (vfatal): Removed.
114 (internal_verror): Replaced call to fatal with call to throw_quit.
115 (quit): Replaced calls to fatal with calls to throw_quit.
117 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
119 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
122 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
124 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
125 less than zero in conditional expression.
127 2014-07-23 Tom Tromey <tromey@redhat.com>
129 * make-target-delegates ($ARGS_PART): Match trailing close paren.
130 ($INTRO_PART): Don't match whitespace.
131 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
133 ($METHOD): Add $METHOD_TRAILER.
135 (scan_target_h): New sub.
136 Change main loop not to collect state.
137 * target-delegates.c: Rebuild.
139 2014-07-23 Gary Benson <gbenson@redhat.com>
141 * cp-support.c (gdb_demangle): Fix build on systems without
144 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
146 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
147 for reference entry value target data value.
149 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
151 * stack.c (read_frame_arg): Verify value_optimized_out before calling
152 value_available_contents_eq.
154 2014-07-22 Pedro Alves <palves@redhat.com>
156 * value.c (allocate_optimized_out_value): Don't mark value as
159 2014-07-22 Jiong Wang <jiong.wang@arm.com>
161 * MAINTAINERS (Write After Approval): Update my email address.
163 2014-07-20 Doug Evans <dje@google.com>
166 * remote.c (putpkt_binary): Add text to error message.
168 2014-07-20 Yao Qi <yao@codesourcery.com>
170 * eval.c: Remove "Chill" from comments.
171 * gdbtypes.h: Likewise.
172 * symtab.h: Likewise.
174 2014-07-20 Yao Qi <yao@codesourcery.com>
176 * std-operator.def: Update comments to TERNOP_SLICE.
178 2014-07-20 Yao Qi <yao@codesourcery.com>
180 * std-operator.def: Remove BINOP_RANGE.
181 * breakpoint.c (watchpoint_exp_is_const): Update.
182 * expprint.c (dump_subexp_body_standard): Likewise.
183 * eval.c (init_array_element): Remove dead code.
184 (evaluate_subexp_standard): Likewise.
186 2014-07-20 Yao Qi <yao@codesourcery.com>
188 * std-operator.def: Remove BINOP_IN.
189 * breakpoint.c (watchpoint_exp_is_const): Update.
190 * eval.c (evaluate_subexp_standard): Likewise.
191 * expprint.c (dump_subexp_body_standard): Likewise.
193 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
195 * microblaze-tdep.c (microblaze_register_names): Add
196 the rshr and rslr register names.
197 (microblaze_gdbarch_init): Use of tdesc_has_registers.
198 Use of tdesc_find_feature. Use of tdesc_data_alloc.
199 Use of tdesc_numbered_register. Use of
200 microblaze_register_g_packet_guesses. Use of
201 tdesc_use_registers. Use of set_gdbarch_register_type.
202 (microblaze_register_g_packet_guesses): New.
203 * microblaze-tdep.h (microblaze_reg_num): Add
204 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
205 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
206 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
207 * features/microblaze-core.xml: New file.
208 * features/microblaze-stack-protect.xml: New file.
209 * features/microblaze-with-stack-protect.c: New file.
210 * features/microblaze-with-stack-protect.xml: New file.
211 * features/microblaze.xml: New file.
212 * features/microblaze.c: New file.
213 * features/Makefile (microblaze-with-stack-protect): Add
214 microblaze-with-stack-protect microblaze and microblaze-expedite.
215 * regformats/microblaze-with-stack-protect.dat: New file.
216 * regformats/microblaze.dat: New file.
217 * doc/gdb.texinfo (MicroBlaze Features): Added.
219 2014-07-18 Tom Tromey <tromey@redhat.com>
221 * exec.c (exec_ops): Now static.
222 * exec.h (exec_ops): Don't declare.
224 2014-07-18 Tom Tromey <tromey@redhat.com>
226 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
227 to find_target_beneath.
228 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
230 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
232 2014-07-18 Tom Tromey <tromey@redhat.com>
235 * utils.c (quit): Use target_supports_terminal_ours.
236 * target.h (target_supports_terminal_ours): Declare.
237 * target.c (target_supports_delete_record): Don't check
238 to_delete_record against NULL.
239 (target_supports_terminal_ours): New function.
241 2014-07-18 Tom Tromey <tromey@redhat.com>
244 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
245 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
246 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
247 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
248 * windows-nat.c (windows_xfer_partial): Always delegate.
249 * record-btrace.c (record_btrace_xfer_partial): Simplify
251 (record_btrace_fetch_registers, record_btrace_store_registers)
252 (record_btrace_prepare_to_store, record_btrace_resume)
253 (record_btrace_wait, record_btrace_find_new_threads)
254 (record_btrace_thread_alive): Likewise.
255 * procfs.c (procfs_xfer_partial): Always delegate.
256 * corelow.c (core_xfer_partial): Always delegate.
257 * sol-thread.c (sol_find_new_threads): Simplify delegation.
259 2014-07-18 Tom Tromey <tromey@redhat.com>
261 * exec.c (exec_make_note_section): Move earlier.
263 2014-07-17 Doug Evans <dje@google.com>
266 * maint.c (count_symtabs_and_blocks): Handle NULL
267 current_program_space.
268 (report_command_stats): Check global enabled flag in addition to
269 recorded enabled flag.
270 (make_command_stats_cleanup): Handle msg_type == 0, startup.
272 2014-07-16 Pedro Alves <palves@redhat.com>
274 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
276 2014-07-16 Tom Tromey <tromey@redhat.com>
278 * target.h (struct target_ops) <to_delete_record>: Reformat
281 2014-07-16 Tom Tromey <tromey@redhat.com>
283 * target-delegates.c: Rebuild.
285 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
287 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
288 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
289 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
290 (avr_pointer_to_address): Likewise.
291 (avr_address_class_type_flags): New function.
292 (avr_address_class_type_flags_to_name): Likewise.
293 (avr_address_class_name_to_type_flags): Likewise.
294 (avr_gdbarch_init): Set address_class_type_flags,
295 address_class_type_flags_to_name and
296 address_class_name_to_type_flags.
298 2014-07-15 Pedro Alves <palves@redhat.com>
300 * linux-nat.c (kill_callback): Save errno and work with saved
303 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
305 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
307 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
309 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
310 breakpoint support correctly.
312 2014-07-14 Pedro Alves <palves@redhat.com>
314 * utils.c (prompt_for_continue): Call target_terminal_ours.
316 2014-07-14 Pedro Alves <palves@redhat.com>
318 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
319 catch_errors. Don't re-enable stdin or notify observers where,
321 (fetch_inferior_event_wrapper): Delete.
323 2014-07-14 Pedro Alves <palves@redhat.com>
326 * top.c: Include "inf-loop.h".
327 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
329 (gdb_readline_wrapper_cleanup): Make the target async again, if it
331 (gdb_readline_wrapper): Store whether the target is async, and
334 2014-07-14 Pedro Alves <palves@redhat.com>
337 * top.c (gdb_readline_wrapper_line): Tweak comment.
338 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
339 the input handler callback.
341 2014-07-14 Pedro Alves <palves@redhat.com>
344 * main.c: Include event-top.h.
345 (handle_command_errors): New function.
346 (catch_command_errors, catch_command_errors_const): Use it.
348 2014-07-14 Pedro Alves <palves@redhat.com>
350 * exceptions.c (catch_command_errors, catch_command_errors_const):
352 * exceptions.h (catch_command_errors_ftype)
353 (catch_command_errors_const_ftype): Moved to main.c.
354 (catch_command_errors, catch_command_errors_const): Delete
356 * main.c (catch_command_errors_ftype)
357 (catch_command_errors_const_ftype): Moved here from exceptions.h.
358 (catch_command_errors, catch_command_errors_const)): Moved here
359 from exceptions.c and make static.
361 2014-07-14 Pedro Alves <palves@redhat.com>
363 * exceptions.c (print_any_exception): Delete.
364 (catch_exceptions_with_msg): Use exception_print instead of
366 (catch_errors): Use exception_fprintf instead of
368 (catch_command_errors, catch_command_errors_const): Use
369 exception_print instead of print_any_exception.
371 2014-07-14 Pedro Alves <palves@redhat.com>
373 * infcall.c (run_inferior_call): Set 'sync_execution' while
374 running the inferior call.
376 2014-07-14 Pedro Alves <palves@redhat.com>
378 * value.c (value_contents_equal): Delete function.
379 * value.h (value_contents_equal): Delete declaration.
381 2014-07-14 Tom Tromey <tromey@redhat.com>
384 * gdbtypes.c (is_dynamic_type_internal): New function, from
386 (is_dynamic_type): Rewrite.
387 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
388 (resolve_dynamic_struct): Likewise.
389 (resolve_dynamic_type_internal): New function, from
390 resolve_dynamic_type.
391 (resolve_dynamic_type): Rewrite.
393 2014-07-14 Tom Tromey <tromey@redhat.com>
395 * target.c (target_require_runnable): Also check record_stratum.
398 2014-07-11 Yao Qi <yao@codesourcery.com>
400 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
401 thumb_instruction_restores_sp return true.
403 2014-07-11 Yao Qi <yao@codesourcery.com>
405 * arm-tdep.c (thumb_instruction_restores_sp): New function.
406 (thumb_in_function_epilogue_p): Call
407 thumb_instruction_restores_sp.
409 2014-07-11 Yao Qi <yao@codesourcery.com>
411 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
413 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
415 2014-07-11 Gary Benson <gbenson@redhat.com>
417 * amd64-linux-nat.c (gdbcore.h): Remove include.
418 (regset.h): Likewise.
419 (nat/linux-btrace.h): Likewise.
420 (btrace.h): Likewise.
421 (gdb_assert.h): Likewise.
422 (string.h): Likewise.
423 (sys/uio.h): Likewise.
424 (sys/debugreg.h): Likewise.
425 (sys/syscall.h): Likewise.
426 (sys/procfs.h): Likewise.
427 (sys/user.h): Likewise.
428 (asm/ptrace.h): Likewise.
429 (i386-nat.h): Likewise.
430 * i386-linux-nat.c (i386-nat.h): Likewise.
431 (regset.h): Likewise.
432 (target.h): Likewise.
433 (linux-nat.h): Likewise.
434 (nat/linux-btrace.h): Likewise.
435 (btrace.h): Likewise.
436 (gdb_assert.h): Likewise.
437 (string.h): Likewise.
438 (sys/uio.h): Likewise.
439 (sys/user.h): Likewise.
440 (sys/procfs.h): Likewise.
441 (sys/reg.h): Likewise.
442 (sys/debugreg.h): Likewise.
443 (ORIG_EAX): Remove definition.
445 2014-07-11 Gary Benson <gbenson@redhat.com>
447 * i386-linux-nat.h: New file.
448 * x86-linux-nat.h: Likewise.
449 * x86-linux-nat.c: Likewise.
450 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
451 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
452 * config/i386/linux64.mh (NATDEPFILES): Likewise.
453 * amd64-linux-nat.c (x86-linux-nat.h): New include.
454 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
455 (PTRACE_SETREGSET): Likewise.
456 (arch_lwp_info): Now in x86-linux-nat.c.
457 (have_ptrace_getregset): Now in x86-linux-nat.h.
458 (x86_linux_dr_get): Now in x86-linux-nat.c.
459 (x86_linux_dr_set): Likewise.
460 (x86_linux_dr_get_addr): Likewise.
461 (x86_linux_dr_get_control): Likewise.
462 (x86_linux_dr_get_status): Likewise.
463 (update_debug_registers_callback): Likewise.
464 (x86_linux_dr_set_control): Likewise.
465 (x86_linux_dr_set_addr): Likewise.
466 (x86_linux_prepare_to_resume): Likewise.
467 (x86_linux_new_thread): Likewise.
468 (x86_linux_new_fork): Likewise.
469 (x86_linux_get_thread_area): Likewise.
470 (super_post_startup_inferior): Likewise.
471 (x86_linux_child_post_startup_inferior): Likewise.
472 (AMD64_LINUX_USER64_CS): Likewise.
473 (AMD64_LINUX_X32_DS): Likewise.
474 (x86_linux_read_description): Likewise.
475 (x86_linux_enable_btrace): Likewise.
476 (x86_linux_disable_btrace): Likewise.
477 (x86_linux_teardown_btrace): Likewise.
478 (x86_linux_read_btrace): Likewise.
479 (x86_linux_create_target): Likewise.
480 (x86_linux_add_target): Likewise.
481 * i386-linux-nat.c (x86-linux-nat.h): New include.
482 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
483 (PTRACE_SETREGSET): Likewise.
484 (arch_lwp_info): Now in x86-linux-nat.c.
485 (have_ptrace_getregset): Now in x86-linux-nat.h.
486 (x86_linux_dr_get): Now in x86-linux-nat.c.
487 (x86_linux_dr_set): Likewise.
488 (x86_linux_dr_get_addr): Likewise.
489 (x86_linux_dr_get_control): Likewise.
490 (x86_linux_dr_get_status): Likewise.
491 (update_debug_registers_callback): Likewise.
492 (x86_linux_dr_set_control): Likewise.
493 (x86_linux_dr_set_addr): Likewise.
494 (x86_linux_prepare_to_resume): Likewise.
495 (x86_linux_new_thread): Likewise.
496 (x86_linux_new_fork): Likewise.
497 (x86_linux_get_thread_area): Likewise.
498 (super_post_startup_inferior): Likewise.
499 (x86_linux_child_post_startup_inferior): Likewise.
500 (AMD64_LINUX_USER64_CS): Likewise.
501 (AMD64_LINUX_X32_DS): Likewise.
502 (x86_linux_read_description): Likewise.
503 (x86_linux_enable_btrace): Likewise.
504 (x86_linux_disable_btrace): Likewise.
505 (x86_linux_teardown_btrace): Likewise.
506 (x86_linux_read_btrace): Likewise.
507 (x86_linux_create_target): Likewise.
508 (x86_linux_add_target): Likewise.
510 2014-07-11 Gary Benson <gbenson@redhat.com>
512 * amd64-linux-nat.c: Comment and whitespace changes.
513 * i386-linux-nat.c: Comment and whitespace changes.
515 2014-07-11 Gary Benson <gbenson@redhat.com>
517 * amd64-linux-nat.c (x86_linux_create_target): New function.
518 (x86_linux_add_target): Likewise.
519 (_initialize_amd64_linux_nat): Delegate to the above new functions.
520 * i386-linux-nat.c (x86_linux_create_target): New function.
521 (x86_linux_add_target): Likewise.
522 (_initialize_i386_linux_nat): Delegate to the above new functions.
524 2014-07-11 Gary Benson <gbenson@redhat.com>
526 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
527 (ps_get_thread_area): Delegate to the above in 32-bit mode.
528 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
529 (ps_get_thread_area): Delegate to the above.
531 2014-07-11 Gary Benson <gbenson@redhat.com>
533 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
534 x86_linux_read_description. All uses updated. amd64-specific
535 code conditionalized. Conditionalized i386-specific code added.
536 Redundant cast removed.
537 * i386-linux-nat.c (i386_linux_read_description): Renamed to
538 x86_linux_read_description. All uses updated. i386-specific
539 code conditionalized. Conditionalized amd64-specific code added.
540 One sizeof replaced with the actual type it is describing.
542 2014-07-11 Gary Benson <gbenson@redhat.com>
544 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
545 x86_linux_dr_get. All uses updated.
546 (amd64_linux_dr_set): Renamed to
547 x86_linux_dr_set. All uses updated.
548 (amd64_linux_dr_get_addr): Renamed to
549 x86_linux_dr_get_addr. All uses updated.
550 (amd64_linux_dr_get_control): Renamed to
551 x86_linux_dr_get_control. All uses updated.
552 (amd64_linux_dr_get_status): Renamed to
553 x86_linux_dr_get_status. All uses updated.
554 (amd64_linux_dr_set_control): Renamed to
555 x86_linux_dr_set_control. All uses updated.
556 (amd64_linux_dr_set_addr): Renamed to
557 x86_linux_dr_set_addr. All uses updated.
558 (amd64_linux_prepare_to_resume): Renamed to
559 x86_linux_prepare_to_resume. All uses updated.
560 (amd64_linux_new_thread): Renamed to
561 x86_linux_new_thread. All uses updated.
562 (amd64_linux_new_fork): Renamed to
563 x86_linux_new_fork. All uses updated.
564 (amd64_linux_child_post_startup_inferior): Renamed to
565 x86_linux_child_post_startup_inferior. All uses updated.
566 (amd64_linux_enable_btrace): Renamed to
567 x86_linux_enable_btrace. All uses updated.
568 (amd64_linux_disable_btrace): Renamed to
569 x86_linux_disable_btrace. All uses updated.
570 (amd64_linux_teardown_btrace): Renamed to
571 x86_linux_teardown_btrace. All uses updated.
572 (amd64_linux_read_btrace): Renamed to
573 x86_linux_read_btrace. All uses updated.
574 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
575 x86_linux_dr_get. All uses updated.
576 (i386_linux_dr_set): Renamed to
577 x86_linux_dr_set. All uses updated.
578 (i386_linux_dr_get_addr): Renamed to
579 x86_linux_dr_get_addr. All uses updated.
580 (i386_linux_dr_get_control): Renamed to
581 x86_linux_dr_get_control. All uses updated.
582 (i386_linux_dr_get_status): Renamed to
583 x86_linux_dr_get_status. All uses updated.
584 (i386_linux_dr_set_control): Renamed to
585 x86_linux_dr_set_control. All uses updated.
586 (i386_linux_dr_set_addr): Renamed to
587 x86_linux_dr_set_addr. All uses updated.
588 (i386_linux_prepare_to_resume): Renamed to
589 x86_linux_prepare_to_resume. All uses updated.
590 (i386_linux_new_thread): Renamed to
591 x86_linux_new_thread. All uses updated.
592 (i386_linux_new_fork): Renamed to
593 x86_linux_new_fork. All uses updated.
594 (i386_linux_child_post_startup_inferior): Renamed to
595 x86_linux_child_post_startup_inferior. All uses updated.
596 (i386_linux_enable_btrace): Renamed to
597 x86_linux_enable_btrace. All uses updated.
598 (i386_linux_disable_btrace): Renamed to
599 x86_linux_disable_btrace. All uses updated.
600 (i386_linux_teardown_btrace): Renamed to
601 x86_linux_teardown_btrace. All uses updated.
602 (i386_linux_read_btrace): Renamed to
603 x86_linux_read_btrace. All uses updated.
605 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
607 * remote.c (extended_remote_post_attach): New function.
608 (init_extended_remote_ops): Install it as to_post_attach method.
610 2014-07-09 Pedro Alves <palves@redhat.com>
612 * infcmd.c (attach_command_post_wait): Don't call
613 target_terminal_inferior here.
614 (attach_command): Call it here instead.
616 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
618 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
620 * c-varobj.c (c_is_path_expr_parent): New function, moved core
621 from varobj.c, with additional checks.
622 (c_varobj_ops): Fill in is_path_expr_parent field.
623 (cplus_varobj_ops): Fill in is_path_expr_parent field.
624 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
626 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
628 (varobj_default_is_path_expr_parent): New function.
629 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
630 (varobj_default_is_path_expr_parent): Declare new function.
632 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
634 * infcmd.c (finish_backward): Turn internal error into normal error.
636 2014-07-07 Pedro Alves <palves@redhat.com>
639 * remote.c (async_handle_remote_sigint)
640 (async_handle_remote_sigint_twice): Call
641 gdb_call_async_signal_handler instead of
642 mark_async_signal_handler.
644 2014-07-07 Tom Tromey <tromey@redhat.com>
646 * target-delegates.c: Rebuild.
647 * target.c (target_info_record): Remove.
648 * record.c (info_record_command): Unconditionally call
650 * target.h (struct target_ops) <to_info_record>: Use
651 TARGET_DEFAULT_IGNORE.
652 (target_info_record): Remove.
654 2014-07-07 Tom Tromey <tromey@redhat.com>
656 * target.h (struct target_ops) <to_get_thread_local_address>: Use
657 TARGET_DEFAULT_NORETURN.
658 * target.c (generic_tls_error): New function.
659 (target_translate_tls_address): Don't search target stack.
660 * target-delegates.c: Rebuild.
661 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
663 * linux-thread-db.c (thread_db_get_thread_local_address):
664 Unconditionally call beneath target.
666 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
668 * cli/cli-logging.c (pop_output_files): Assign targerr to
671 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
673 * MAINTAINERS (Write After Approval): Update my email address.
675 2014-07-02 Gary Benson <gbenson@redhat.com>
677 * proc-service.c (ps_xfer_memory): Update comment.
678 (ps_pstop): Remove unused function.
679 (ps_pcontinue): Likewise.
680 (ps_lstop): Likewise.
681 (ps_lcontinue): Likewise.
682 (ps_lgetxregsize): Likewise.
683 (ps_lgetxregs): Likewise.
684 (ps_lsetxregs): Likewise.
686 (ps_ptread): Likewise.
687 (ps_ptwrite): Likewise.
689 2014-07-01 Mark Wielaard <mjw@redhat.com>
691 * dwarf2read.c (add_array_cv_type): New function.
692 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
693 (read_tag_volatile_type): Likewise.
695 2014-07-01 Tom Tromey <tromey@redhat.com>
697 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
698 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
699 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
700 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
701 * command.h (cmd_cfunc_ftype): Move earlier.
702 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
703 (add_com, add_info): Use cmd_cfunc_ftype.
705 2014-06-30 Tom Tromey <tromey@redhat.com>
707 * symtab.c (operator_chars): Make parameters and return type
709 (file_matches): Make "files" const.
710 (struct search_symbols_data) <files>: Now const.
711 (search_symbols): Make "regexp" and "files" parameters const.
713 (symtab_symbol_info): Remove cast.
714 (rbreak_command): Update.
715 * symtab.h (search_symbols): Update.
717 2014-06-27 Yao Qi <yao@codesourcery.com>
719 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
720 Change parameter type to 'struct thread_info *'. Caller
722 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
724 * dummy-frame.c (struct dummy_frame_id): New.
725 (dummy_frame_id_eq): New function.
726 (struct dummy_frame) <id>: Change its type to 'struct
728 (dummy_frame_push): Add parameter ptid and save it in
730 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
732 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
734 (lookup_dummy_frame): Change parameter type to 'struct
735 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
736 instead of frame_id_eq.
737 (dummy_frame_pop): Add parameter ptid. Callers updated.
738 Update comments. Compose dummy_frame_id and pass it to
740 (dummy_frame_discard): Add parameter ptid.
741 (dummy_frame_sniffer): Compose dummy_frame_id and call
742 dummy_frame_id_eq instead of frame_id_eq.
743 (fprint_dummy_frames): Print ptid.
744 * dummy-frame.h: Remove comments.
745 (dummy_frame_push): Add ptid in declaration.
746 (dummy_frame_pop, dummy_frame_discard): Likewise.
748 2014-06-26 Tom Tromey <tromey@redhat.com>
750 * cli/cli-cmds.c (error_no_arg): Make "why" const.
751 * command.h (error_no_arg): Update.
753 2014-06-26 Tom Tromey <tromey@redhat.com>
755 * cli/cli-setshow.c (do_set_command): Make "arg" const.
756 (do_show_command): Make "arg" const.
757 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
759 2014-06-26 Tom Tromey <tromey@redhat.com>
761 * record-full.c (record_full_get_bookmark): Make "args" const.
762 (record_full_goto_bookmark): Make "raw_bookmark" const.
763 * record.c (record_goto): New function.
764 (cmd_record_goto): Use it. Now static.
765 * record.h (record_goto): Declare.
766 (cmd_record_goto): Remove declaration.
767 * target-delegates.c: Rebuild.
768 * target.h (struct target_ops) <to_get_bookmark,
769 to_goto_bookmark>: Make parameter const.
771 2014-06-26 Tom Tromey <tromey@redhat.com>
773 * defs.h (generic_load): Update.
774 * m32r-rom.c (m32r_load_gen): Make "filename" const.
775 * monitor.c (monitor_load): Make "args" const.
776 * remote-m32r-sdi.c (m32r_load): Make "args" const.
777 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
779 (mips_load): Make "file" const.
780 * remote-sim.c (gdbsim_load): Make "args" const.
781 * remote.c (remote_load): Make "name" const.
782 * symfile.c (generic_load): Make "args" const.
783 * target-delegates.c: Rebuild.
784 * target.c (target_load): Make "arg" const.
785 (debug_to_load): Make "args" const.
786 * target.h (struct target_ops) <to_load>: Make parameter const.
787 (target_load): Update.
789 2014-06-26 Tom Tromey <tromey@redhat.com>
792 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
793 (dwarf2_physname, read_partial_die)
794 (guess_partial_die_structure_name, fixup_partial_die)
795 (guess_full_die_structure_name, anonymous_struct_prefix)
796 (dwarf2_name): Use per-BFD obstack.
798 2014-06-26 Yao Qi <yao@codesourcery.com>
800 * dummy-frame.c (dummy_frame_sniffer): Move local variables
801 dummyframe and this_id into inner block below.
803 2014-06-26 Yao Qi <yao@codesourcery.com>
805 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
806 with "signal_pass[0]" in the initialization of signal_pass.
808 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
810 * record-btrace.c (record_btrace_generating_corefile)
811 (record_btrace_prepare_to_generate_core)
812 (record_btrace_done_generating_core): New.
813 (record_btrace_xfer_partial, record_btrace_fetch_registers)
814 (record_btrace_store_registers, record_btrace_prepare_to_store):
815 Forward request when generating a core file.
816 (record_btrace_open): Set record_btrace_generating_corefile to zero.
817 (init_record_btrace_ops): Set to_prepare_to_generate_core and
818 to_done_generating_core.
820 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
822 * target.h (target_ops) <to_prepare_to_generate_core>
823 <to_done_generating_core>: New.
824 (target_prepare_to_generate_core, target_done_generating_core): New.
825 * target.c (target_prepare_to_generate_core)
826 (target_done_generating_core): New.
827 * target-delegates.c: Regenerate.
828 * gcore.c: (write_gcore_file): Rename to ...
829 (write_gcore_file_1): ...this.
830 (write_gcore_file): Call target_prepare_to_generate_core
831 and target_done_generating_core.
833 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
835 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
836 * gcore.c (write_gcore_file): Free memory returned from
838 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
839 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
841 2014-06-24 Yao Qi <yao@codesourcery.com>
843 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
844 (arm_linux_init_abi): Set skip_trampoline_code with
845 gdbarch_skip_trampoline_code instead of
846 find_solib_trampoline_target.
848 2014-06-24 Yao Qi <yao@codesourcery.com>
850 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
851 arm_skip_bx_reg returns non-zero.
853 2014-06-24 Yao Qi <yao@codesourcery.com>
855 * arm-tdep.c (arm_skip_bx_reg): New function.
856 (arm_skip_stub): Call arm_skip_bx_reg.
858 2014-06-23 Don Breazeal <donb@codesourcery.com>
860 * MAINTAINERS: Add myself as write-after-approval maintainer.
862 2014-06-23 Pedro Alves <palves@redhat.com>
864 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
865 DR_CONTROL before setting DR0..DR3.
866 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
867 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
868 bits of DR_CONTROL related to the debug register slot being
869 disabled. If all slots are vacant, clear local slowdown as well,
870 and assert DR_CONTROL is 0.
872 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
874 * python/lib/gdb/command/xmethods.py
875 (get_method_matchers_in_loci): Lookup xmethod matchers in the
876 current progspace only if the string "progspace" matches LOCUS_RE.
878 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
880 Fix --with-system-readline with readline-6.3 patch 5.
881 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
882 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
885 2014-06-20 Tom Tromey <tromey@redhat.com>
887 * dwarf2read.c (dw2_get_real_path): Use correct type in
889 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
891 2014-06-20 Gary Benson <gbenson@redhat.com>
893 * common/gdb_thread_db.h: Moved to nat. All includes updated.
894 * common/glibc_thread_db.h: Likewise.
895 * common/i386-cpuid.h: Likewise.
896 * common/i386-gcc-cpuid.h: Likewise.
897 * common/linux-btrace.h: Likewise.
898 * common/linux-osdata.h: Likewise.
899 * common/linux-procfs.h: Likewise.
900 * common/linux-ptrace.h: Likewise.
901 * common/mips-linux-watch.h: Likewise.
902 * common/linux-btrace.c: Moved to nat.
903 * common/linux-osdata.c: Likewise.
904 * common/linux-procfs.c: Likewise.
905 * common/linux-ptrace.c: Likewise.
906 * common/mips-linux-watch.c: Likewise.
907 * nat/gdb_thread_db.h: Moved from common.
908 * nat/glibc_thread_db.h: Likewise.
909 * nat/i386-cpuid.h: Likewise.
910 * nat/i386-gcc-cpuid.h: Likewise.
911 * nat/linux-btrace.c: Likewise.
912 * nat/linux-btrace.h: Likewise.
913 * nat/linux-osdata.c: Likewise.
914 * nat/linux-osdata.h: Likewise.
915 * nat/linux-procfs.c: Likewise.
916 * nat/linux-procfs.h: Likewise.
917 * nat/linux-ptrace.c: Likewise.
918 * nat/linux-ptrace.h: Likewise.
919 * nat/mips-linux-watch.c: Likewise.
920 * nat/mips-linux-watch.h: Likewise.
921 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
922 (object file files): Reordered.
923 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
924 of glibc_thread_db.h.
926 2014-06-20 Gary Benson <gbenson@redhat.com>
928 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
929 (i386_dr_low_type): Moved to nat/i386-dregs.h.
930 (i386_dr_low): Likewise.
931 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
932 (i386_dr_low_set_addr): Likewise.
933 (i386_dr_low_get_addr): Likewise.
934 (i386_dr_low_can_set_control): Likewise.
935 (i386_dr_low_set_control): Likewise.
936 (i386_dr_low_get_control): Likewise.
937 (i386_dr_low_get_status): Likewise.
938 (i386_get_debug_register_length): Likewise.
939 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
940 (i386_dr_low): Likewise.
941 * nat/i386-dregs.c (i386-low.h): Remove include.
942 (i386-nat.h): Likewise.
943 (nat/i386-dregs.h): New include.
944 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
945 (i386_dr_low_set_addr): Likewise.
946 (i386_dr_low_get_addr): Likewise.
947 (i386_dr_low_can_set_control): Likewise.
948 (i386_dr_low_set_control): Likewise.
949 (i386_dr_low_get_control): Likewise.
950 (i386_dr_low_get_status): Likewise.
951 (i386_get_debug_register_length): Likewise.
952 (debug_hw_points): Likewise.
954 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
956 * Makefile.in (SFILES): Add d-exp.y.
957 (YYFILES): Add d-exp.c.
958 (YYOBJ): Add d-exp.o.
959 (local-maintainer-clean): Delete d-exp.c.
961 * d-lang.h (d_parse): New declaration.
962 (d_error): New declaration.
963 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
964 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
965 PREC_ORDER operators.
966 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
968 2014-06-19 Yao Qi <yao@codesourcery.com>
970 * gdbthread.h (any_running): Remove the declaration.
971 * thread.c (any_running): Remove.
973 2014-06-19 Yao Qi <yao@codesourcery.com>
975 * gdbthread.h (struct thread_info) <state>: Change its type to
976 'enum thread_state'. Update comments.
978 2014-06-19 Pedro Alves <palves@redhat.com>
980 * gdbthread.h (ALL_THREADS): Delete.
981 (ALL_NON_EXITED_THREADS): New macro.
982 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
983 instead of ALL_THREADS.
984 * infrun.c (find_thread_needs_step_over)
985 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
986 instead of ALL_THREADS.
987 * record-btrace.c (record_btrace_open)
988 (record_btrace_stop_recording, record_btrace_close)
989 (record_btrace_is_replaying, record_btrace_resume)
990 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
991 * remote.c (append_pending_thread_resumptions): Likewise.
992 * thread.c (thread_apply_all_command): Likewise.
994 2014-06-19 Gary Benson <gbenson@redhat.com>
996 * i386-nat.c (i386_stopped_by_watchpoint):
997 Use i386_dr_stopped_by_watchpoint.
998 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
999 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
1001 2014-06-19 Gary Benson <gbenson@redhat.com>
1003 * nat/i386-dregs.c: New file.
1004 * Makefile.in (i386-dregs.o): New rule.
1005 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
1006 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
1007 * config/i386/darwin.mh (NATDEPFILES): Likewise.
1008 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
1009 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
1010 * config/i386/go32.mh (NATDEPFILES): Likewise.
1011 * config/i386/linux.mh (NATDEPFILES): Likewise.
1012 * config/i386/linux64.mh (NATDEPFILES): Likewise.
1013 * config/i386/mingw.mh (NATDEPFILES): Likewise.
1014 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
1015 * i386-nat.h (debug_hw_points): New declaration.
1016 * i386-nat.c (breakpoint.h): Remove include.
1017 (command.h): Likewise.
1018 (target.h): Likewise.
1019 (gdb_assert.h): Likewise.
1020 (debug_hw_points): Made nonstatic.
1021 (debug_printf): Now in i386-dregs.c.
1022 (TARGET_HAS_DR_LEN_8): Likewise.
1023 (DR_CONTROL_SHIFT): Likewise.
1024 (DR_CONTROL_SIZE): Likewise.
1025 (DR_RW_EXECUTE): Likewise.
1026 (DR_RW_WRITE): Likewise.
1027 (DR_RW_READ): Likewise.
1028 (DR_RW_IORW): Likewise.
1029 (DR_LEN_1): Likewise.
1030 (DR_LEN_2): Likewise.
1031 (DR_LEN_4): Likewise.
1032 (DR_LEN_8): Likewise.
1033 (DR_LOCAL_ENABLE_SHIFT): Likewise.
1034 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
1035 (DR_ENABLE_SIZE): Likewise.
1036 (DR_LOCAL_SLOWDOWN): Likewise.
1037 (DR_GLOBAL_SLOWDOWN): Likewise.
1038 (DR_CONTROL_RESERVED): Likewise.
1039 (I386_DR_CONTROL_MASK): Likewise.
1040 (I386_DR_VACANT): Likewise.
1041 (I386_DR_LOCAL_ENABLE): Likewise.
1042 (I386_DR_GLOBAL_ENABLE): Likewise.
1043 (I386_DR_DISABLE): Likewise.
1044 (I386_DR_SET_RW_LEN): Likewise.
1045 (I386_DR_GET_RW_LEN): Likewise.
1046 (I386_DR_WATCH_HIT): Likewise.
1047 (i386_wp_op_t): Likewise.
1048 (i386_show_dr): Likewise.
1049 (i386_length_and_rw_bits): Likewise.
1050 (i386_insert_aligned_watchpoint): Likewise.
1051 (i386_remove_aligned_watchpoint): Likewise.
1052 (i386_handle_nonaligned_watchpoint): Likewise.
1053 (i386_update_inferior_debug_regs): Likewise.
1054 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
1055 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
1056 (i386_region_ok_for_watchpoint):
1057 Use i386_dr_region_ok_for_watchpoint.
1058 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
1060 2014-06-19 Gary Benson <gbenson@redhat.com>
1062 * i386-nat.c (i386_insert_hw_breakpoint): Use
1063 i386_insert_watchpoint.
1064 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
1066 2014-06-19 Gary Benson <gbenson@redhat.com>
1068 * i386-nat.c (i386_dr_show): Renamed to
1069 i386_show_dr and made static. All uses updated.
1070 (i386_dr_length_and_rw_bits): Renamed to
1071 i386_length_and_rw_bits and made static.
1073 (i386_dr_insert_aligned_watchpoint): Renamed to
1074 i386_insert_aligned_watchpoint and made static.
1076 (i386_dr_remove_aligned_watchpoint): Renamed to
1077 i386_remove_aligned_watchpoint and made static.
1079 (i386_dr_update_inferior_debug_regs): Renamed to
1080 i386_update_inferior_debug_regs and made static.
1082 * nat/i386-dregs.h (i386_dr_show): Removed.
1083 (i386_dr_length_and_rw_bits): Likewise.
1084 (i386_dr_insert_aligned_watchpoint): Likewise.
1085 (i386_dr_remove_aligned_watchpoint): Likewise.
1086 (i386_dr_update_inferior_debug_regs): Likewise.
1088 2014-06-19 Gary Benson <gbenson@redhat.com>
1090 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
1091 * configure: Regenerate.
1092 * config.in: Likewise.
1093 * main.c (signal.h): New include.
1094 (setup_alternate_signal_stack): New function.
1095 (captured_main): Call the above.
1096 * cp-support.c (signal.h): New include.
1097 (catch_demangler_crashes): New flag.
1098 (SIGJMP_BUF): New define.
1099 (SIGSETJMP): Likewise.
1100 (SIGLONGJMP): Likewise.
1101 (gdb_demangle_jmp_buf): New static global.
1102 (gdb_demangle_attempt_core_dump): Likewise.
1103 (gdb_demangle_signal_handler): New function.
1104 (gdb_demangle): If catch_demangler_crashes is set, install the
1105 above signal handler before calling bfd_demangle, and restore
1106 the original signal handler afterwards. Display the offending
1107 symbol and call demangler_warning the first time a segmentation
1109 (_initialize_cp_support): New maint set/show command.
1111 2014-06-19 Gary Benson <gbenson@redhat.com>
1113 * utils.h (resource_limit_kind): New enum.
1114 (can_dump_core): New declaration.
1115 (warn_cant_dump_core): Likewise.
1116 (dump_core): Likewise.
1117 * utils.c (dump_core): Made nonstatic. Added new
1118 parameter "limit_kind".
1119 (can_dump_core): Made nonstatic. Moved printing code to...
1120 (warn_cant_dump_core): New function.
1121 (can_dump_core_warn): Likewise.
1122 (internal_vproblem): Replace calls to can_dump_core with
1123 calls to can_dump_core_warn. Supply new argument to each.
1125 2014-06-19 Gary Benson <gbenson@redhat.com>
1127 * utils.h (demangler_vwarning): New declaration.
1128 (demangler_warning): Likewise.
1129 * utils.c (struct internal_problem)
1130 <user_settable_should_quit>: New field.
1131 <user_settable_should_dump_core>: Likewise
1132 (internal_error_problem): Add values for above new fields.
1133 (internal_warning_problem): Likewise.
1134 (demangler_warning_problem): New static global.
1135 (demangler_vwarning): New function.
1136 (demangler_warning): Likewise.
1137 (add_internal_problem_command): Selectively add commands.
1138 (_initialize_utils): New internal problem command.
1139 * maint.c (maintenance_demangler_warning): New function.
1140 (_initialize_maint_cmds): New command.
1142 2014-06-18 Tom Tromey <tromey@redhat.com>
1144 * f-valprint.c (info_common_command_for_block): Update.
1145 * symtab.h (struct general_symbol_info) <common_block>: Now
1148 2014-06-18 Tom Tromey <tromey@redhat.com>
1150 * symtab.h (struct symtab) <blockvector>: Now const.
1151 * ada-lang.c (ada_add_global_exceptions): Update.
1152 * buildsym.c (augment_type_symtab): Update.
1153 * dwarf2read.c (dw2_lookup_symbol): Update.
1154 * jit.c (finalize_symtab): Update.
1155 * jv-lang.c (add_class_symtab_symbol): Update.
1156 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
1158 * objfiles.c (objfile_relocate1): Update.
1159 * psymtab.c (lookup_symbol_aux_psymtabs)
1160 (maintenance_check_psymtabs): Update.
1161 * python/py-symtab.c (stpy_global_block, stpy_static_block):
1163 * spu-tdep.c (spu_catch_start): Update.
1164 * symmisc.c (dump_symtab_1): Update.
1165 * symtab.c (lookup_global_symbol_from_objfile)
1166 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
1167 (basic_lookup_transparent_type_quick)
1168 (basic_lookup_transparent_type, find_pc_sect_symtab)
1169 (find_pc_sect_line, search_symbols): Update.
1170 * block.c (find_block_in_blockvector): Make "bl" const.
1171 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
1173 (blockvector_contains_pc): Make "bv" const.
1174 (block_for_pc_sect): Update.
1175 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
1176 (blockvector_contains_pc): Update.
1177 * breakpoint.c (resolve_sal_pc): Update.
1178 * inline-frame.c (block_starting_point_at): Update.
1180 2014-06-18 Tom Tromey <tromey@redhat.com>
1182 * completer.c (complete_line): Make "line_buffer" const.
1183 * completer.h (complete_line): Update.
1185 2014-06-18 Tom Tromey <tromey@redhat.com>
1187 * symtab.c (add_macro_name): Remove unneeded cast.
1189 2014-06-18 Tom Tromey <tromey@redhat.com>
1191 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
1192 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
1194 2014-06-18 Tom Tromey <tromey@redhat.com>
1196 * probe.c (info_probes_for_ops): Make "arg" const.
1197 * probe.h (info_probes_for_ops): Update.
1199 2014-06-18 Tom Tromey <tromey@redhat.com>
1201 * varobj.c (varobj_create): Update.
1202 * valops.c (value_of_this): Update.
1203 * tracepoint.c (add_local_symbols, scope_info): Update.
1204 * symtab.h (struct general_symbol_info) <block>: Now const.
1205 * symtab.c (skip_prologue_sal)
1206 (default_make_symbol_completion_list_break_on)
1207 (skip_prologue_using_sal): Update.
1208 * stack.h (iterate_over_block_locals)
1209 (iterate_over_block_local_vars): Update.
1210 * stack.c (print_frame_args): Update.
1211 (iterate_over_block_locals, iterate_over_block_local_vars): Make
1213 (get_selected_block): Make return type const.
1214 * python/py-frame.c (frapy_block): Update.
1215 * python/py-block.c (gdbpy_block_for_pc): Update.
1216 * p-exp.y (%union) <bval>: Now const.
1217 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
1218 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
1219 * m2-exp.y (%union) <bval>: Now const.
1220 * linespec.c (get_current_search_block): Make return type const.
1221 (create_sals_line_offset, find_label_symbols): Update.
1222 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
1224 (block_starting_point_at): Make "block" const.
1225 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
1226 (check_exception_resume): Update.
1227 * guile/scm-frame.c (gdbscm_frame_block): Update.
1228 * guile/scm-block.c (gdbscm_lookup_block): Update.
1229 * frame.h (get_frame_block): Update.
1230 (get_selected_block): Make return type const.
1231 * frame.c (frame_id_inner): Update.
1232 * f-valprint.c (info_common_command_for_block)
1233 (info_common_command): Update.
1234 * dwarf2loc.c (dwarf2_find_location_expression)
1235 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
1236 (locexpr_describe_location_piece): Update.
1237 * c-exp.y (%union) <bval>: Now const.
1238 * breakpoint.c (resolve_sal_pc): Update.
1239 * blockframe.c (get_frame_block):Make return type const.
1240 (get_pc_function_start, get_frame_function, find_pc_sect_function)
1241 (block_innermost_frame): Update.
1242 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
1243 (block_for_pc, block_for_pc_sect): Update.
1244 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
1246 (block_for_pc_sect, block_for_pc): Make return type const.
1247 * ax-gdb.c (gen_expr): Update.
1248 * alpha-mdebug-tdep.c (find_proc_desc): Update.
1249 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
1250 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
1251 (ada_read_var_value): Update.
1252 * ada-exp.y (struct name_info) <block>: Now const.
1254 (block_lookup): Constify.
1256 2014-06-18 Gary Benson <gbenson@redhat.com>
1258 * nat/i386-dregs.h: New file.
1259 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
1260 * i386-nat.h (i386-dregs.h): New include.
1261 (DR_FIRSTADDR): Now in i386-dregs.h.
1262 (DR_LASTADDR): Likewise.
1263 (DR_NADDR): Likewise.
1264 (DR_STATUS): Likewise.
1265 (DR_CONTROL): Likewise.
1266 (i386_debug_reg_state): Likewise.
1267 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
1269 2014-06-18 Don Breazeal <donb@codesourcery.com>
1271 * breakpoint.c (set_longjmp_breakpoint): Call
1272 momentary_breakpoint_from_master with additional argument.
1273 (set_longjmp_breakpoint_for_call_dummy): Call
1274 momentary_breakpoint_from_master with additional argument.
1275 (set_std_terminate_breakpoint): Call
1276 momentary_breakpoint_from_master with additional argument.
1277 (momentary_breakpoint_from_master): Add argument to function
1278 definition and use it to initialize structure member flag.
1279 (clone_momentary_breakpoint): Call
1280 momentary_breakpoint_from_master with additional argument.
1281 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
1282 member flags set in momentary_breakpoint_from_master.
1284 2014-06-18 Gary Benson <gbenson@redhat.com>
1286 * i386-nat.c (i386_show_dr): Renamed to
1287 i386_dr_show and made nonstatic. All uses updated.
1288 (i386_length_and_rw_bits): Renamed to
1289 i386_dr_length_and_rw_bits and made nonstatic.
1291 (i386_insert_aligned_watchpoint): Renamed to
1292 i386_dr_insert_aligned_watchpoint and made nonstatic.
1294 (i386_remove_aligned_watchpoint): Renamed to
1295 i386_dr_remove_aligned_watchpoint and made nonstatic.
1297 (i386_update_inferior_debug_regs): Renamed to
1298 i386_dr_update_inferior_debug_regs and made nonstatic.
1301 2014-06-18 Gary Benson <gbenson@redhat.com>
1303 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
1304 (i386_dr_low_can_set_control): Likewise.
1305 (i386_dr_low_set_addr): Likewise.
1306 (i386_dr_low_set_control): Likewise.
1307 (i386_dr_low_get_addr): Likewise.
1308 (i386_dr_low_get_status): Likewise.
1309 (i386_dr_low_get_control): Likewise.
1310 (i386_insert_aligned_watchpoint): Use new macros.
1311 (i386_update_inferior_debug_regs): Likewise.
1312 (i386_stopped_data_address): Likewise.
1314 2014-06-18 Gary Benson <gbenson@redhat.com>
1316 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
1317 New parameter. All uses updated.
1319 2014-06-18 Gary Benson <gbenson@redhat.com>
1321 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
1324 2014-06-18 Gary Benson <gbenson@redhat.com>
1326 * i386-nat.c (debug_printf): New macro.
1327 (i386_get_debug_register_length): Likewise.
1328 (TARGET_HAS_DR_LEN_8): Use above macro.
1329 (i386_show_dr): Use debug_printf instead of puts_unfiltered
1330 and printf_unfiltered. Use phex to format values.
1332 2014-06-18 Gary Benson <gbenson@redhat.com>
1334 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
1337 2014-06-18 Gary Benson <gbenson@redhat.com>
1339 * i386-nat.c: Comment changes.
1341 2014-06-18 Gary Benson <gbenson@redhat.com>
1343 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
1345 2014-06-18 Gary Benson <gbenson@redhat.com>
1347 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
1348 (i386_insert_aligned_watchpoint): Likewise.
1349 (i386_remove_aligned_watchpoint): Likewise.
1350 (i386_handle_nonaligned_watchpoint): Likewise.
1352 2014-06-18 Gary Benson <gbenson@redhat.com>
1354 * i386-nat.c: Whitespace changes.
1356 2014-06-17 Samuel Bronson <naesten@gmail.com>
1358 * MAINTAINERS: Update Roland McGrath's email address.
1359 Thanks to Sergio Durigan Junior for pointing out that he left
1360 Red Hat a while ago, and giving me a current address.
1362 2014-06-17 Tom Tromey <tromey@redhat.com>
1364 * utils.h (savestring): Remove declaration.
1366 2014-06-17 Tom Tromey <tromey@redhat.com>
1368 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
1370 2014-06-16 Keith Seitz <keiths@redhat.com>
1373 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
1374 to update the varobj if inferior_ptid is null_ptid.
1376 2014-06-16 Tom Tromey <tromey@redhat.com>
1378 * target.h (struct target_ops) <to_info_proc>: Make parameter
1380 (target_info_proc): Update.
1381 * target.c (target_info_proc): Make "args" const.
1382 * procfs.c (procfs_info_proc): Update.
1383 * linux-tdep.c (linux_info_proc): Update.
1384 (linux_core_info_proc_mappings): Make "args" const.
1385 (linux_core_info_proc): Update.
1386 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
1387 * gdbarch.c: Rebuild.
1388 * gdbarch.h: Rebuild.
1389 * corelow.c (core_info_proc): Update.
1391 2014-06-16 Tom Tromey <tromey@redhat.com>
1393 * target.h (struct target_ops) <to_disconnect>: Make parameter
1395 (target_disconnect): Update.
1396 * target.c (target_disconnect): Make "args" const.
1397 * target-delegates.c: Rebuild.
1398 * remote.c (remote_disconnect): Update.
1399 * record.h (record_disconnect): Update.
1400 * record.c (record_disconnect): Update.
1401 * inf-child.c (inf_child_disconnect): Update.
1403 2014-06-16 Tom Tromey <tromey@redhat.com>
1405 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
1406 * target.c (debug_to_rcmd, default_rcmd): Update.
1407 * target-delegates.c: Rebuild.
1408 * remote.c (remote_rcmd): Update.
1409 * monitor.c (monitor_rcmd): Update.
1411 2014-06-16 Pedro Alves <palves@redhat.com>
1413 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
1414 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
1415 have OBJF_SHARED set.
1416 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
1417 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
1418 instead of OBJF_USERLOADED.
1419 * objfiles.h (OBJF_SHARED): Update comment.
1420 (userloaded_objfile_contains_address_p): Rename to ...
1421 (shared_objfile_contains_address_p): ... this, and update
1423 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
1425 (remove_symbol_file_command): Skip objfiles that don't have
1428 2014-06-16 Tom Tromey <tromey@redhat.com>
1430 * minsyms.h (prim_record_minimal_symbol)
1431 (prim_record_minimal_symbol_and_info): Update comments.
1433 2014-06-14 Eli Zaretskii <eliz@gnu.org>
1435 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
1436 or --without-guile, according to how GDB was built.
1438 2014-06-13 Tom Tromey <tromey@redhat.com>
1440 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
1442 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
1444 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
1446 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
1447 help_list.Pass all_commands, not -1, to help_list.
1448 * cli/cli-dump.c (dump_command, append_command)
1449 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
1450 (binary_dump_command, binary_append_command): Pass all_commands,
1451 not -1, to help_list.
1452 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
1454 * valprint.c (set_print, set_print_raw): Pass all_commands, not
1456 * typeprint.c (set_print_type): Pass all_commands, not -1, to
1458 * top.c (set_history): Pass all_commands, not -1, to help_list.
1459 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
1460 all_commands, not -1, to help_list.
1461 * symfile.c (overlay_command): Pass all_commands, not -1, to
1463 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
1465 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
1467 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
1469 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
1470 not -1, to help_list.
1471 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
1472 not -1, to help_list.
1473 * maint.c (maintenance_command, maintenance_info_command)
1474 (maintenance_print_command, maintenance_set_cmd): Pass
1475 all_commands, not -1, to help_list.
1476 * macrocmd.c (macro_command): Pass all_commands, not -1, to
1478 * language.c (set_check): Pass all_commands, not -1, to help_list.
1479 * infcmd.c (unset_command): Pass all_commands, not -1, to
1481 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
1483 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
1485 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
1487 * breakpoint.c (save_command): Pass all_commands, not -1, to
1489 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
1490 all_commands, not -1, to help_list.
1492 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
1494 * regcache.c (struct register_to_invalidate): New structure.
1495 (do_register_invalidate, make_cleanup_regcache_invalidate): New
1497 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
1499 2014-06-12 Yao Qi <yao@codesourcery.com>
1501 * varobj.c (varobj_get_num_children): Call
1502 varobj_is_dynamic_p.
1503 (varobj_list_children): Likewise.
1504 (varobj_update): Likewise. Update comments.
1506 2014-06-12 Yao Qi <yao@codesourcery.com>
1508 * varobj.c (varobj_pretty_printed_p): Rename to ...
1509 (varobj_is_dynamic_p): ... this. New function.
1510 * varobj.h (varobj_pretty_printed_p): Remove declaration.
1511 (varobj_is_dynamic_p): Declare.
1512 * mi/mi-cmd-var.c (print_varobj): All callers updated.
1513 (mi_print_value_p, varobj_update_one): Likewise.
1515 2014-06-12 Pedro Alves <pedro@codesourcery.com>
1516 Yao Qi <yao@codesourcery.com>
1518 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
1519 (varobj_get_iterator): Wrap up code for pretty-printer by
1520 "#if HAVE_PYTHON" and "#endif".
1521 (update_dynamic_varobj_children): Likewise.
1523 2014-06-12 Pedro Alves <pedro@codesourcery.com>
1524 Yao Qi <yao@codesourcery.com>
1526 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
1527 gdb_python_initialized is false. Move some code from varobj.c.
1528 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
1529 * varobj.c: Move "varobj-iter.h" inclusion earlier.
1530 (struct varobj_item): Moved to varobj-iter.h".
1531 (varobj_clear_saved_item): New function.
1532 (update_dynamic_varobj_children): Move python-related code to
1534 (free_variable): Call varobj_clear_saved_item and
1537 2014-06-12 Pedro Alves <pedro@codesourcery.com>
1538 Yao Qi <yao@codesourcery.com>
1540 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
1541 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
1542 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
1543 (py-varobj.o): New rule.
1544 * python/py-varobj.c: New file.
1545 * python/python-internal.h (py_varobj_get_iterator): Declare.
1546 * varobj-iter.h: New file.
1547 * varobj.c: Include "varobj-iter.h"
1548 (struct varobj) <child_iter>: Change its type from "PyObject *"
1549 to "struct varobj_iter *".
1550 <saved_item>: Likewise.
1551 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
1552 [HAVE_PYTHON] (varobj_get_iterator): New function.
1553 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
1554 python-specific code to python/py-varobj.c.
1555 (install_visualizer): Call varobj_iter_delete instead of
1557 * varobj.h (varobj_ensure_python_env): Declare.
1559 2014-06-12 Yao Qi <yao@codesourcery.com>
1561 * varobj.c (struct varobj_item): New structure.
1562 (create_child_with_value): Update declaration.
1563 (varobj_add_child): Replace arguments 'name' and 'value' with
1564 'item'. All callers updated.
1565 (install_dynamic_child): Likewise.
1566 (update_dynamic_varobj_children): Likewise.
1567 (varobj_add_child): Likewise.
1568 (create_child_with_value): Likewise.
1570 2014-06-11 Joel Brobecker <brobecker@adacore.com>
1572 * NEWS: Create a new section for the next release branch.
1573 Rename the section of the current branch, now that it has
1576 2014-06-11 Joel Brobecker <brobecker@adacore.com>
1578 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
1579 * version.in: Bump version to 7.8.50.DATE-cvs.
1581 2014-06-11 Pedro Alves <palves@redhat.com>
1584 * ser-mingw.c (net_windows_socket_check_pending): New function.
1585 (net_windows_select_thread): Ignore spurious wakeups. Use
1586 net_windows_socket_check_pending.
1587 (net_windows_wait_handle): Check for pending events with
1588 ioctlsocket, through net_windows_socket_check_pending, instead of
1589 checking the socket's event.
1591 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
1593 * python/python-internal.h (gdb_PyObject_GetAttrString)
1594 (gdb_PyObject_HasAttrString): New inline function definitions.
1595 * py-value.c (get_field_flag): Remove the now unnecessary cast to
1596 char * of the second argument to PyObject_GetAttrString.
1598 2014-06-10 Joel Brobecker <brobecker@adacore.com>
1600 * serial.c (serial_write): Fix index of character to be printed
1601 in call to serial_logchar when serial debug traces are enabled.
1603 2014-06-10 Joel Brobecker <brobecker@adacore.com>
1605 * gdbtypes (resolve_dynamic_range): Add function description.
1607 2014-06-09 Pedro Alves <palves@redhat.com>
1609 * linux-nat.c (linux_child_follow_fork): Initialize status with
1610 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
1611 inner block. Only pass the signal to PTRACE_DETACH if in pass
1614 2014-06-09 Gary Benson <gbenson@redhat.com>
1616 * common/signals.c (gdb_signal_from_host): Reorder to separate
1617 the always-available ANSI-standard signals from the signals that
1619 (do_gdb_signal_to_host): Likewise.
1620 * proc-events.c (signal_table): Likewise.
1622 2014-06-08 Hui Zhu <hui@codesourcery.com>
1624 * common/linux-ptrace.c (linux_disable_event_reporting): New
1626 * common/linux-ptrace.h (linux_disable_event_reporting): New
1628 * linux-nat.c (linux_child_follow_fork): Do a single step before
1631 2014-06-07 Keith Seitz <keiths@redhat.com>
1635 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
1636 from symbol_matches_domain in symtab.c. All local callers
1637 of symbol_matches_domain updated.
1638 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
1639 search STRUCT_DOMAIN.
1640 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
1641 independently. standard_lookup will do that automatically.
1642 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
1643 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
1644 (cp_lookup_symbol_in_namespace): Likewise.
1645 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
1646 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
1647 may return a STRUCT_DOMAIN match.
1648 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
1649 * cp-support.c: Include language.h.
1650 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
1652 * psymtab.c (match_partial_symbol): Compare the requested
1653 domain with the symbol's domain directly.
1654 (lookup_partial_symbol): Likewise.
1655 * symtab.c (lookup_symbol_in_language): Explain when/why
1656 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
1657 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
1658 appropriate languages.
1659 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
1660 and moved to ada-lang.c
1661 (lookup_block_symbol): Explain that this function only returns
1662 symbol matching the requested DOMAIN.
1663 Compare the requested domain with the symbol's domain directly.
1664 (iterate_over_symbols): Compare the requested domain with the
1665 symbol's domain directly.
1666 * symtab.h (symbol_matches_domain): Remove.
1668 2014-06-06 Doug Evans <xdje42@gmail.com>
1670 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
1671 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
1672 (gdbscm_guile_version_is_at_least): Declare.
1673 (gdbscm_scm_string_to_int): Declare.
1674 * guile/guile.c (gdbscm_guile_major_version): New global.
1675 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
1676 (guile_datadir): New static global.
1677 (gdbscm_guile_data_directory): New function.
1678 (initialize_scheme_side): Update.
1679 (misc_guile_functions): Add guile-data-directory.
1680 (initialize_gdb_module): Fetch guile version number.
1681 * guile/lib/gdb.scm: Remove call to add-to-load-path.
1682 * guile/lib/gdb/init.scm (%initialize!): Ditto.
1683 * guile/lib/gdb/boot.scm: Use guile-data-directory.
1684 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
1686 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
1687 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
1688 * guile/scm-value.c (gdbscm_value_to_string): Only call
1689 scm_port_conversion_strategy if Guile version >= 2.0.6.
1691 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
1693 * main.c (print_gdb_help): Add -q and --silent.
1695 2014-06-06 Gary Benson <gbenson@redhat.com>
1697 * common/signals.c: Remove preprocessor conditionals for
1698 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
1699 SIGSEGV and SIGTERM.
1700 * proc-events.c: Likewise.
1702 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
1704 * symfile.c (symfile_free_objfile): Remove restriction to
1706 * symfile-mem.c (symbol_file_add_from_memory): Call
1707 add_target_sections_of_objfile.
1709 2014-06-05 Ludovic Courtès <ludo@gnu.org>
1711 * guile/scm-value.c (gdbscm_history_append_x): Use
1712 'vlscm_get_value_smob_arg_unsafe' instead of
1713 'vlscm_scm_to_value'.
1715 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
1718 * utils.c (printchar): Don't escape at all if quoter is NUL.
1719 Update function documentation to clarify effect of parameter
1721 * remote.c (escape_buffer): Pass '\\' as the quoter to
1722 fputstrn_unfiltered.
1723 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
1724 generate the output.
1725 (mi_solib_unloaded): Same.
1727 2014-06-05 Joel Brobecker <brobecker@adacore.com>
1729 * development.sh: Delete.
1730 * Makefile.in (config.status): Adjust dependency on development.sh.
1731 * configure.ac: Adjust development.sh source call.
1732 * configure: Regenerate.
1734 2014-06-04 Doug Evans <xdje42@gmail.com>
1736 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
1737 is_scheme_bkpt, spec.
1738 (bpscm_make_breakpoint_smob): Initialize new members.
1739 (gdbscm_create_breakpoint_x): Split into two ...
1740 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
1741 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
1742 (scheme_function breakpoint_functions): Update.
1743 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
1744 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
1745 register-breakpoint!.
1747 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
1750 * mem-break.c (z_type_supported): Return zero if
1751 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
1753 2014-06-04 Tom Tromey <tromey@redhat.com>
1755 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
1756 value_from_contents_and_address_unresolved.
1757 (ada_template_to_fixed_record_type_1): Likewise.
1758 (ada_which_variant_applies): Likewise.
1759 * value.h (value_from_contents_and_address_unresolved): Declare.
1760 * value.c (value_from_contents_and_address_unresolved): New
1762 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
1763 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
1764 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
1766 2014-06-04 Tom Tromey <tromey@redhat.com>
1768 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
1770 2014-06-04 Tom Tromey <tromey@redhat.com>
1772 * procfs.c (procfs_attach): Make "args" const.
1773 * windows-nat.c (windows_attach): Make "args" const.
1774 * nto-procfs.c (procfs_attach): Make "args" const.
1775 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
1776 * go32-nat.c (go32_attach): Make "args" const.
1777 * gnu-nat.c (gnu_attach): Make "args" const.
1778 * darwin-nat.c (darwin_attach): Make "args" const.
1779 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
1780 * linux-nat.c (linux_nat_attach): Make "args" const.
1781 * remote.c (extended_remote_attach_1, extended_remote_attach):
1783 * target.h (struct target_ops) <to_attach>: Make "args" const.
1784 (find_default_attach): Likewise.
1785 * utils.c (parse_pid_to_attach): Make "args" const.
1786 * utils.h (parse_pid_to_attach): Update.
1788 2014-06-04 Tom Tromey <tromey@redhat.com>
1790 * target-delegates.c: Rebuild.
1791 * target.c (default_thread_address_space): New function.
1792 (target_thread_address_space): Simplify.
1793 * target.h (struct target_ops) <to_thread_address_space>: Add
1794 TARGET_DEFAULT_FUNC.
1796 2014-06-04 Doug Evans <xdje42@gmail.com>
1798 * guile/scm-type.c (type_smob): Remove duplicate typedef.
1800 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
1802 * record-btrace.c: Include event-loop.h and inf-loop.h.
1803 (record_btrace_resume_exec_dir)
1804 (record_btrace_async_inferior_event_handler)
1805 (record_btrace_handle_async_inferior_event): New.
1806 (record_btrace_open): Create async event handler.
1807 (record_btrace_close): Delete async event handler.
1808 (record_btrace_resume): Set record_btrace_resume_exec_dir,
1809 Mark async event handler.
1810 (record_btrace_execution_direction): New.
1811 (init_record_btrace_ops): Initialize to_execution_direction.
1813 2014-06-03 Doug Evans <xdje42@gmail.com>
1815 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
1816 (gdbscm_make_parameter): Ditto.
1818 2014-06-03 Doug Evans <dje@google.com>
1820 * exec.c (exec_close_1): Call clear_section_table instead of
1821 resize_section_table.
1822 (clear_section_table): New function.
1823 (resize_section_table): Make static. Rename arg num_added to
1825 * exec.h (clear_section_table): Declare.
1826 (resize_section_table): Delete.
1827 * progspace.c (release_program_space): Call clear_section_table
1828 instead of resize_section_table.
1830 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
1832 * NEWS (Python Scripting): Add entry about the new xmethods
1835 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
1837 * python/py-xmethods.c: New file.
1838 * python/py-objfile.c (objfile_object): New field 'xmethods'.
1839 (objfpy_dealloc): XDECREF on the new xmethods field.
1840 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
1842 (objfpy_get_xmethods): New function.
1843 (objfile_getset): New entry 'xmethods'.
1844 * python/py-progspace.c (pspace_object): New field 'xmethods'.
1845 (pspy_dealloc): XDECREF on the new xmethods field.
1846 (pspy_new, pspace_to_pspace_object): Initialize xmethods
1848 (pspy_get_xmethods): New function.
1849 (pspace_getset): New entry 'xmethods'.
1850 * python/python-internal.h: Add declarations for new functions.
1851 * python/python.c (_initialize_python): Invoke
1852 gdbpy_initialize_xmethods.
1853 * python/lib/gdb/__init__.py (xmethods): New
1855 * python/lib/gdb/xmethod.py: New file.
1856 * python/lib/gdb/command/xmethods.py: New file.
1858 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
1860 * eval.c (evaluate_subexp_standard): Call the xmethod if the
1861 best match method returned by find_overload_match is an xmethod.
1862 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
1863 the best matching operator returned by find_overload_match is an
1865 * valops.c: #include "extension.h".
1866 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
1867 Return void. The list of matching source methods is returned in
1868 "fn_list" and a vector of matching debug method workers is
1869 returned in "xm_worker_vec". Update all callers.
1870 (value_find_oload_method_list): Likewise.
1871 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
1872 non-NULL, then the index of the best matching method in this
1873 vector is returned. Update all callers.
1874 (find_overload_match): Include xmethods while performing overload
1877 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
1879 * defs.h (enum lval_type): New enumerator "lval_xcallable".
1880 * extension-priv.h (struct extension_language_ops): Add the
1882 * extension.c (new_xmethod_worker, clone_xmethod_worker,
1883 get_matching_xmethod_workers, get_xmethod_argtypes,
1884 invoke_xmethod, free_xmethod_worker,
1885 free_xmethod_worker_vec): New functions.
1886 * extension.h: #include "common/vec.h".
1887 New function declarations.
1888 (struct xmethod_worker): New struct.
1889 (VEC (xmethod_worker_ptr)): New vector type.
1890 (xmethod_worker_ptr): New typedef.
1891 (xmethod_worker_vec): Likewise.
1892 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
1894 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
1895 (struct builtin_type): New field "xmethod".
1896 * valarith.c (value_ptradd): Assert that the value argument is not
1898 * valops.c (value_must_coerce_to_target): Return 0 for
1899 lval_xcallable values.
1900 * value.c (struct value): New field XM_WORKER in the field
1902 (value_address, value_raw_address): Return 0 for lval_xcallable
1904 (set_value_address): Assert that the value is not an
1906 (value_free): Free the associated xmethod worker when freeing
1907 lval_xcallable values.
1908 (set_value_component_location): Assert that the WHOLE value is not
1910 (value_of_xmethod, call_xmethod): New functions.
1911 * value.h: Declare "struct xmethod_worker".
1912 Declare new functions value_of_xmethod, call_xmethod.
1914 2014-06-03 Joel Brobecker <brobecker@adacore.com>
1915 Pedro Alves <palves@redhat.com>
1917 PR breakpoints/17000
1918 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
1919 New function, extracted from software_breakpoint_inserted_here_p.
1920 (software_breakpoint_inserted_here_p): Replace factored out code
1921 by call to find_non_raw_software_breakpoint_inserted_here.
1922 (bp_target_info_copy_insertion_state): New function.
1923 (bkpt_insert_location): Handle the case of a single-step
1924 breakpoint already inserted at the same address.
1925 (bkpt_remove_location): Handle the case of a single-step
1926 breakpoint still inserted at the same address.
1927 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
1928 breakpoint already inserted at the same address.
1929 (deprecated_remove_raw_breakpoint): Handle the case of a
1930 non-raw breakpoint still inserted at the same address.
1931 (find_single_step_breakpoint): New function, extracted from
1932 single_step_breakpoint_inserted_here_p.
1933 (find_single_step_breakpoint): New function,
1934 factored out from single_step_breakpoint_inserted_here_p.
1935 (single_step_breakpoint_inserted_here_p): Reimplement.
1937 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
1939 Pushed by Joel Brobecker <brobecker@adacore.com>
1940 * source.c (show_substitute_path_command): Fix display of matching
1943 2014-06-03 Gary Benson <gbenson@redhat.com>
1945 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
1947 2014-06-02 Doug Evans <xdje42@gmail.com>
1949 Add parameter support for Guile.
1950 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
1951 (SUBDIR_GUILE_SRCS): Add scm-param.c.
1952 (scm-param.o): New rule.
1953 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
1954 (gdbscm_misc_error): Declare.
1955 (gdbscm_canonicalize_command_name): Declare.
1956 (gdbscm_scm_to_host_string): Declare.
1957 (gdbscm_scm_from_host_string): Declare.
1958 (gdbscm_initialize_parameters): Declare.
1959 * guile/guile.c (initialize_gdb_module): Call
1960 gdbscm_initialize_parameters.
1961 * guile/lib/gdb.scm: Export parameter symbols.
1962 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
1963 cmdscm_canonicalize_name and made public. All callers updated.
1964 * guile/scm-exception.c (gdbscm_misc_error): New function.
1965 * guile/scm-param.c: New file.
1966 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
1967 (gdbscm_scm_to_host_string): New function.
1968 (gdbscm_scm_from_host_string): New function.
1969 * scm-utils.c (gdbscm_gc_dup_argv): New function.
1971 2014-06-02 Doug Evans <xdje42@gmail.com>
1973 Add command support for Guile.
1974 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
1975 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
1976 (scm-cmd.o): New rule.
1977 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
1978 (gdbscm_user_error_p): Declare.
1979 (gdbscm_parse_command_name): Declare.
1980 (gdbscm_valid_command_class_p): Declare.
1981 (gdbscm_initialize_commands): Declare.
1982 * guile/guile.c (initialize_gdb_module): Call
1983 gdbscm_initialize_commands.
1984 * guile/lib/gdb.scm: Export command symbols.
1985 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
1986 (throw-user-error): New function.
1987 * guile/scm-cmd.c: New file.
1988 * guile/scm-exception.c (user_error_symbol): New static global.
1989 (gdbscm_user_error_p): New function.
1990 (gdbscm_initialize_exceptions): Set user_error_symbol.
1991 * scm-utils.c (gdbscm_gc_xstrdup): New function.
1993 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
1995 * top.c (command_loop): Handle comments here...
1996 (command_line_input): ... not here.
1998 2014-06-02 Doug Evans <xdje42@gmail.com>
2000 Add progspace support for Guile.
2001 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
2002 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
2003 (scm-progspace.o): New rule.
2004 * guile/guile-internal.h (pspace_smob): New typedef.
2005 (psscm_pspace_smob_pretty_printers): Declare.
2006 (psscm_pspace_smob_from_pspace): Declare.
2007 (psscm_scm_from_pspace): Declare.
2008 * guile/guile.c (initialize_gdb_module): Call
2009 gdbscm_initialize_pspaces.
2010 * guile/lib/gdb.scm: Export progspace symbols.
2011 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
2013 (append-pretty-printer!): Ditto.
2014 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
2016 * guile/scm-progspace.c: New file.
2018 2014-06-03 Alan Modra <amodra@gmail.com>
2020 * ppc64-tdep.c (ppc64_standard_linkage8): New.
2021 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
2023 2014-06-02 Doug Evans <dje@google.com>
2025 Add support for skeletonless type units.
2026 * dwarf2read.c (struct dwarf2_per_objfile): New member
2027 n_allocated_type_units.
2028 (struct dwarf2_per_objfile) <tu_stats>: New member
2029 nr_all_type_units_reallocs.
2030 (create_signatured_type_table_from_index): Initialize
2031 n_allocated_type_units
2032 (create_all_type_units): Ditto.
2033 (add_type_unit): Move up in file. New arg slot.
2034 All callers updated. Increase space for all_type_units more
2036 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
2037 (lookup_dwo_signatured_type): Handle skeletonless TUs.
2038 (lookup_dwp_signatured_type): Ditto.
2039 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
2040 All callers updated.
2041 (build_type_psymtabs_1): Leave type_unit_groups as
2042 NULL if no TUs present.
2043 (print_tu_stats): New function.
2044 (process_skeletonless_type_unit): New function.
2045 (process_dwo_file_for_skeletonless_type_units): New
2047 (process_skeletonless_type_units): New function.
2048 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
2049 Call print tu_stats if debugging enabled.
2051 2014-06-02 Pedro Alves <palves@redhat.com>
2053 * breakpoint.c (build_target_command_list): Don't build a command
2054 list if we have any duplicate location that isn't a dprintf.
2056 2014-06-02 Pedro Alves <palves@redhat.com>
2058 * breakpoint.c (dprintf_breakpoint_hit): New function.
2059 (initialize_breakpoint_ops): Install it as dprintf's
2060 breakpoint_hit method.
2062 2014-06-02 Joel Brobecker <brobecker@adacore.com>
2064 * source.c (substitute_path_rule_matches): Simplify using
2065 filename_ncmp instead of FILENAME_CMP.
2067 2014-06-02 Joel Brobecker <brobecker@adacore.com>
2069 * source.c (substitute_path_rule_matches): Remove trailing spaces.
2071 2014-06-01 Ludovic Courtès <ludo@gnu.org>
2073 * configure.ac: When Guile is available, check for the
2074 availability of 'scm_new_smob'.
2075 * configure, config.h.in: Regenerate.
2076 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
2079 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
2081 * frame.c (struct frame_info): Add stop_string field.
2082 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
2083 (get_prev_frame_always): Old content moved into
2084 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
2085 TRY_CATCH, handle MEMORY_ERROR exceptions.
2086 (frame_stop_reason_string): New function definition.
2087 * frame.h (unwind_stop_reason_to_string): Extend comment to
2088 mention frame_stop_reason_string.
2089 (frame_stop_reason_string): New function declaration.
2090 * stack.c (frame_info): Switch to frame_stop_reason_string.
2091 (backtrace_command_1): Switch to frame_stop_reason_string.
2092 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
2093 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
2094 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
2096 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
2098 * frame.c (frame_stop_reason_string): Rename to ...
2099 (unwind_stop_reason_to_string): this.
2100 * frame.h (frame_stop_reason_string): Rename to ...
2101 (unwind_stop_reason_to_string): this.
2102 * stack.c (frame_info): Update call to frame_stop_reason_string.
2103 (backtrace_command_1): Likewise.
2104 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
2105 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
2107 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
2109 * frame.c (remove_prev_frame): New function.
2110 (get_prev_frame_if_no_cycle): Create / discard cleanup using
2113 2014-05-29 Pedro Alves <palves@redhat.com>
2115 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
2116 and make it const. When a single-step decays to a continue,
2117 clear 'step', not 'hw_step'. Pass whether the caller wanted
2118 to step to user_visible_resume_ptid, not what we ask the
2121 2014-05-29 Pedro Alves <palves@redhat.com>
2123 * infrun.c (process_event_stop_test, handle_step_into_function)
2124 (handle_step_into_function_backward): Adjust.
2125 Don't set the even thread's stop_step and call stop_waiting before
2126 calling end_stepping_range. Instead do that ...
2127 (end_stepping_range): ... here. Take an ecs pointer parameter.
2129 2014-05-29 Pedro Alves <palves@redhat.com>
2131 * infrun.c (stop_stepping): Rename to ...
2132 (stop_waiting): ... this.
2133 (proceed): Update comment.
2134 (process_event_stop_test, handle_inferior_event)
2135 (handle_signal_stop, handle_step_into_function)
2136 (handle_step_into_function_backward): Update.
2138 2014-05-29 Pedro Alves <palves@redhat.com>
2140 * infcall.c (run_inferior_call): Don't check whether the current
2141 thread is running after the proceed call.
2143 2014-05-29 Pedro Alves <palves@redhat.com>
2144 Tom Tromey <tromey@redhat.com>
2146 * NEWS: Mention "maint set target-async", "set mi-async", and that
2147 background execution commands are now always available.
2148 * target.h (target_async_permitted): Update comment.
2149 * target.c (target_async_permitted, target_async_permitted_1):
2151 (set_target_async_command): Rename to ...
2152 (maint_set_target_async_command): ... this.
2153 (show_target_async_command): Rename to ...
2154 (maint_show_target_async_command): ... this.
2155 (_initialize_target): Adjust.
2156 * infcmd.c (prepare_execution_command): Make extern.
2157 * inferior.h (prepare_execution_command): Declare.
2158 * infrun.c (set_observer_mode): Leave target async alone.
2159 * mi/mi-interp.c (mi_interpreter_init): Install
2160 mi_on_sync_execution_done as sync_execution_done observer.
2161 (mi_on_sync_execution_done): New function.
2162 (mi_execute_command_input_handler): Don't print the prompt if we
2163 just started a synchronous command with an async target.
2164 (mi_on_resume): Check sync_execution before printing prompt.
2165 * mi/mi-main.h (mi_async_p): Declare.
2166 * mi/mi-main.c: Include gdbcmd.h.
2167 (mi_async_p): New function.
2168 (mi_async, mi_async_1): New globals.
2169 (set_mi_async_command, show_mi_async_command, mi_async): New
2171 (exec_continue): Call prepare_execution_command.
2172 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
2173 (mi_execute_async_cli_command): Use mi_async_p.
2174 (_initialize_mi_main): Install "set mi-async". Make
2175 "target-async" a deprecated alias.
2177 2014-05-29 Pedro Alves <palves@redhat.com>
2179 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
2180 (_initialize_cli_interp): Adjust.
2181 * event-loop.c: Include "observer.h".
2182 (start_event_loop): Notify 'command_error' observers instead of
2183 calling display_gdb_prompt. Remove FIXME comment.
2184 * event-top.c (display_gdb_prompt): Remove call into the
2186 * inf-loop.c: Include "observer.h".
2187 (inferior_event_handler): Notify 'command_error' observers instead
2188 of calling display_gdb_prompt.
2189 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
2190 observers instead of calling display_gdb_prompt.
2191 * interps.c (interp_set): Don't call display_gdb_prompt.
2192 (current_interp_display_prompt_p): Delete.
2193 * interps.h (interp_prompt_p): Delete declaration.
2194 (interp_prompt_p_ftype): Delete.
2195 (struct interp_procs) <prompt_proc_p>: Delete field.
2196 (current_interp_display_prompt_p): Delete declaration.
2197 * mi-interp.c (mi_interpreter_prompt_p): Delete.
2198 (_initialize_mi_interp): Adjust.
2199 * tui-interp.c (tui_init): Install 'sync_execution_done' and
2200 'command_error' observers.
2201 (tui_on_sync_execution_done, tui_on_command_error): New
2203 (tui_display_prompt_p): Delete.
2204 (_initialize_tui_interp): Adjust.
2206 2014-05-29 Pedro Alves <palves@redhat.com>
2209 * cli/cli-interp.c: Include infrun.h and observer.h.
2210 (cli_uiout, cli_interp): New globals.
2211 (cli_on_signal_received, cli_on_end_stepping_range)
2212 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
2214 (cli_interpreter_init): Install them as 'end_stepping_range',
2215 'signal_received' 'signal_exited', 'exited' and 'no_history'
2217 (_initialize_cli_interp): Remove cli_interp local.
2218 * infrun.c (handle_inferior_event): Call the several stop reason
2219 observers instead of printing the stop reason directly.
2220 (end_stepping_range): New function.
2221 (print_end_stepping_range_reason, print_signal_exited_reason)
2222 (print_exited_reason, print_signal_received_reason)
2223 (print_no_history_reason): Make static, and add an uiout
2224 parameter. Print to that instead of to CURRENT_UIOUT.
2225 * infrun.h (print_end_stepping_range_reason)
2226 (print_signal_exited_reason, print_exited_reason)
2227 (print_signal_received_reason print_no_history_reason): New
2229 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
2231 <cli_uiout>: New field.
2232 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
2233 uiout for CLI output. Install 'signal_received',
2234 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
2236 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
2237 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
2238 (mi_on_no_history): New functions.
2239 (ui_out_free_cleanup): Delete function.
2240 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
2241 instead use the one already stored in the MI interpreter data.
2242 (mi_ui_out): Adjust.
2243 * tui/tui-interp.c: Include infrun.h and observer.h.
2244 (tui_interp): New global.
2245 (tui_on_signal_received, tui_on_end_stepping_range)
2246 (tui_on_signal_exited, tui_on_exited)
2247 (tui_on_no_history): New functions.
2248 (tui_init): Install them as 'end_stepping_range',
2249 'signal_received' 'signal_exited', 'exited' and 'no_history'
2251 (_initialize_tui_interp): Delete tui_interp local.
2253 2014-05-29 Pedro Alves <palves@redhat.com>
2256 * linux-nat.c (linux_nat_resume_callback): Rename the second
2257 parameter to 'except'. Skip LP if it points to EXCEPT.
2258 (linux_nat_resume): Don't mark the event lwp as not stopped
2259 before resuming sibling lwps. Instead ask
2260 linux_nat_resume_callback to skip the event lwp. Mark it as not
2261 stopped after actually resuming it.
2262 (linux_handle_syscall_trap): Mark the lwp as not stopped after
2264 (wait_lwp): Mark the lwp as stopped here.
2265 (stop_wait_callback): Mark the lwp as not stopped right after
2266 resuming it. Don't mark lwps as stopped here.
2267 (linux_nat_filter_event): Mark the lwp as stopped earlier.
2268 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
2270 2014-05-29 Pedro Alves <palves@redhat.com>
2273 * infrun.c (resume): Determine how much to resume depending on
2274 whether the caller wanted a step, not whether we can hardware step
2275 the target. Mark all threads that we intend to run as running,
2276 unless we're calling an inferior function.
2277 (normal_stop): If the thread is running an infcall, don't finish
2279 * target.c (target_resume): Don't mark threads as running here.
2281 2014-05-28 Joel Brobecker <brobecker@adacore.com>
2283 * serial.c (_initialize_serial): Remove support for
2284 the "set remotebaud" and "show remotebaud" commands.
2285 * NEWS: Add entry documenting the removal of that command.
2287 2014-05-28 Yao Qi <yao@codesourcery.com>
2289 * charset.c: Fix typo in comments.
2291 2014-05-27 Gary Benson <gbenson@redhat.com>
2293 * utils.c (internal_vproblem): Prompt for a bug report.
2295 2014-05-26 Andy Wingo <wingo@igalia.com>
2297 * guile/scm-arch.c (arscm_mark_arch_smob):
2298 * guile/scm-block.c (bkscm_mark_block_smob)
2299 (bkscm_mark_block_syms_progress_smob):
2300 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
2301 * guile/scm-exception.c (exscm_mark_exception_smob):
2302 * guile/scm-frame.c (frscm_mark_frame_smob):
2303 * guile/scm-iterator.c (itscm_mark_iterator_smob):
2304 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
2305 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
2306 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
2307 (ppscm_mark_pretty_printer_worker_smob):
2308 * guile/scm-symbol.c (syscm_mark_symbol_smob):
2309 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
2310 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
2311 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
2313 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
2316 2014-05-26 Andy Wingo <wingo@igalia.com>
2317 Doug Evans <xdje42@gmail.com>
2319 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
2320 empty_base_class. All uses updated.
2321 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
2322 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
2324 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
2325 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
2326 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
2327 (gdbscm_gsmob_has_property_p, add_property_name)
2328 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
2329 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
2330 (gdb-object-has-property?, gdb-object-properties): Remove.
2331 (gdb-object-kind): Renamed from gsmob-kind.
2333 2014-05-26 Andy Wingo <wingo@igalia.com>
2335 * configure.ac (try_guile_versions): Allow building with guile 2.2.
2336 * configure: Regenerate.
2338 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
2340 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
2342 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
2344 * record-btrace.c (record_btrace_allow_memory_access): Remove.
2345 (replay_memory_access_read_only, replay_memory_access_read_write)
2346 (replay_memory_access_types, replay_memory_access)
2347 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
2348 (cmd_set_record_btrace, cmd_show_record_btrace)
2349 (cmd_show_replay_memory_access): New.
2350 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
2351 (record_btrace_remove_breakpoint): Replace
2352 record_btrace_allow_memory_access with replay_memory_access.
2353 (_initialize_record_btrace): Add commands.
2354 * NEWS: Announce it.
2356 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2358 * aarch64-linux-nat.c (asm/ptrace.h): Include.
2360 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2362 * MAINTAINERS (Write After Approval): Move self back from
2365 2014-05-22 Pedro Alves <palves@redhat.com>
2367 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
2368 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
2369 (disable_randomization, enum exec_direction_kind)
2370 (execution_direction, stop_registers, start_remote)
2371 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
2372 (wait_for_inferior, normal_stop, get_last_target_status)
2373 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
2374 (insert_step_resume_breakpoint_at_sal)
2375 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
2376 (set_step_info, print_stop_event, signal_stop_state)
2377 (signal_print_state, signal_pass_state, signal_stop_update)
2378 (signal_print_update, signal_pass_update)
2379 (update_signals_program_target, clear_exit_convenience_vars)
2380 (displaced_step_dump_bytes, update_observer_mode)
2381 (signal_catch_update, gdb_signal_from_command): Move
2383 * infrun.h: ... to this new file.
2384 * amd64-tdep.c: Include infrun.h.
2385 * annotate.c: Include infrun.h.
2386 * arch-utils.c: Include infrun.h.
2387 * arm-linux-tdep.c: Include infrun.h.
2388 * arm-tdep.c: Include infrun.h.
2389 * break-catch-sig.c: Include infrun.h.
2390 * breakpoint.c: Include infrun.h.
2391 * common/agent.c: Include infrun.h instead of inferior.h.
2392 * corelow.c: Include infrun.h.
2393 * event-top.c: Include infrun.h.
2394 * go32-nat.c: Include infrun.h.
2395 * i386-tdep.c: Include infrun.h.
2396 * inf-loop.c: Include infrun.h.
2397 * infcall.c: Include infrun.h.
2398 * infcmd.c: Include infrun.h.
2399 * infrun.c: Include infrun.h.
2400 * linux-fork.c: Include infrun.h.
2401 * linux-nat.c: Include infrun.h.
2402 * linux-thread-db.c: Include infrun.h.
2403 * monitor.c: Include infrun.h.
2404 * nto-tdep.c: Include infrun.h.
2405 * procfs.c: Include infrun.h.
2406 * record-btrace.c: Include infrun.h.
2407 * record-full.c: Include infrun.h.
2408 * remote-m32r-sdi.c: Include infrun.h.
2409 * remote-mips.c: Include infrun.h.
2410 * remote-notif.c: Include infrun.h.
2411 * remote-sim.c: Include infrun.h.
2412 * remote.c: Include infrun.h.
2413 * reverse.c: Include infrun.h.
2414 * rs6000-tdep.c: Include infrun.h.
2415 * s390-linux-tdep.c: Include infrun.h.
2416 * solib-irix.c: Include infrun.h.
2417 * solib-osf.c: Include infrun.h.
2418 * solib-svr4.c: Include infrun.h.
2419 * target.c: Include infrun.h.
2420 * top.c: Include infrun.h.
2421 * windows-nat.c: Include infrun.h.
2422 * mi/mi-interp.c: Include infrun.h.
2423 * mi/mi-main.c: Include infrun.h.
2424 * python/py-threadevent.c: Include infrun.h.
2426 2014-05-22 Pedro Alves <palves@redhat.com>
2428 * infrun.c (handle_inferior_event): Store the exit code for
2429 --return-child-result here, instead of ...
2430 (print_exited_reason): ... here.
2432 2014-05-21 Pedro Alves <palves@redhat.com>
2435 * gdbthread.h (struct thread_control_state): New field
2437 * infrun.c (follow_fork): Copy the new thread control field to the
2439 (clear_proceed_status_thread): Clear the new thread control field.
2440 (proceed): Set the new thread control field.
2441 * interps.h (command_interp): Declare.
2442 * interps.c (command_interpreter): New global.
2443 (command_interp): New function.
2444 (interp_exec): Set `command_interpreter' while here.
2445 * cli-out.c (cli_uiout_dtor): New function.
2446 (cli_ui_out_impl): Install it.
2447 * mi/mi-interp.c: Include cli-out.h.
2448 (mi_cmd_interpreter_exec): Add comment.
2449 (restore_current_uiout_cleanup): New function.
2450 (ui_out_free_cleanup): New function.
2451 (mi_on_normal_stop): If finishing an execution command started by
2452 a CLI command, or any kind of breakpoint-like event triggered,
2453 print the stop event to the output (CLI) stream.
2454 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
2456 2014-05-21 Pedro Alves <palves@redhat.com>
2458 * cli/cli-cmds.c (list_command): Handle the first "list" after the
2459 current source line having changed.
2460 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
2461 * infrun.c (normal_stop): Adjust call to
2462 set_current_sal_from_frame.
2463 * source.c (clear_lines_listed_range): New function.
2464 (set_current_source_symtab_and_line, identify_source_line): Clear
2465 the lines listed range.
2466 (line_info): Handle the first "info line" after the current source
2467 line having changed.
2468 * stack.c (print_stack_frame): Remove center handling.
2469 (set_current_sal_from_frame): Remove 'center' parameter. Don't
2472 2014-05-21 Pedro Alves <palves@redhat.com>
2474 * inf-child.c (inf_child_mourn_inferior): New function.
2475 * inf-child.h (inf_child_mourn_inferior): New declaration.
2476 * darwin-nat.c (darwin_mourn_inferior): Use
2477 inf_child_mourn_inferior.
2478 * gnu-nat.c (gnu_mourn_inferior): Likewise.
2479 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
2480 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
2481 * nto-procfs.c (procfs_mourn_inferior): Likewise.
2482 * windows-nat.c (windows_mourn_inferior): Likewise.
2484 2014-05-21 Doug Evans <xdje42@gmail.com>
2486 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
2488 2014-05-21 Doug Evans <xdje42@gmail.com>
2490 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
2491 (gdbscm_out_of_range_error): Ditto.
2492 (gdbscm_memory_error): Ditto.
2493 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
2494 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
2495 (gdbscm_out_of_range_error): Update.
2496 (gdbscm_memory_error): Update.
2497 (gdbscm_scm_to_target_string_unsafe): Delete.
2499 2014-05-21 Pedro Alves <palves@redhat.com>
2501 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
2503 (inf_child_open_target): New function.
2504 (inf_child_open): Use inf_child_open_target to push the target
2505 instead of erroring out.
2506 (inf_child_disconnect, inf_child_close)
2507 (inf_child_maybe_unpush_target): New functions.
2508 (inf_child_target): Install inf_child_disconnect and
2509 inf_child_close. Store a pointer to the returned object.
2510 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
2512 * target.c (auto_connect_native_target): New global.
2513 (show_default_run_target): New function.
2514 (find_default_run_target): Return NULL if automatically connecting
2515 to the native target is disabled.
2516 (_initialize_target): Install set/show auto-connect-native-target.
2517 * NEWS: Mention "set auto-connect-native-target", and "target
2519 * linux-nat.c (super_close): New global.
2520 (linux_nat_close): Call super_close.
2521 (linux_nat_add_target): Store a pointer to the base class's
2523 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
2524 inf_child_maybe_unpush.
2525 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
2527 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
2528 the inferior. Use inf_child_maybe_unpush_target.
2529 (inf_ttrace_attach): Don't push the target if it is already
2531 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
2532 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
2533 after mourning the inferior. Use inf_child_maybe_unpush_target.
2534 (darwin_attach_pid): Don't push the target if it is already
2536 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
2537 mourning the inferior. Use inf_child_maybe_unpush_target.
2538 (gnu_detach): Use inf_child_maybe_unpush_target.
2539 * go32-nat.c (go32_create_inferior): Don't push the target if it
2541 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
2542 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
2543 (procfs_open): Rename to ...
2544 (procfs_open_1): ... this. Add target_ops parameter. Adjust
2545 comments. Can target_preopen before changing node. Call
2546 inf_child_open_target to push the target explicitly.
2547 (procfs_attach): Don't push the target if it is already pushed.
2548 (procfs_detach): Use inf_child_maybe_unpush_target.
2549 (procfs_create_inferior): Don't push the target if it is already
2551 (nto_native_ops): New global.
2552 (procfs_open): Reimplement.
2553 (procfs_native_open): New function.
2554 (init_procfs_targets): Install procfs_native_open as to_open of
2555 "target native". Store a pointer to the "native" target in
2557 * procfs.c (procfs_attach): Don't push the target if it is already
2559 (procfs_detach): Use inf_child_maybe_unpush_target.
2560 (procfs_mourn_inferior): Only unpush the target after mourning the
2561 inferior. Use inf_child_maybe_unpush_target.
2562 (procfs_init_inferior): Don't push the target if it is already
2564 * windows-nat.c (do_initial_windows_stuff): Don't push the target
2565 if it is already pushed.
2567 2014-05-21 Pedro Alves <palves@redhat.com>
2569 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
2570 and "procfs" targets are now called "native" instead.
2572 2014-05-21 Pedro Alves <palves@redhat.com>
2574 * go32-nat.c (go32_open): Delete.
2575 (go32_target): Don't override the to_open method.
2577 2014-05-21 Pedro Alves <palves@redhat.com>
2579 * nto-procfs.c (procfs_can_run): New function.
2580 (nto_procfs_ops): New global.
2581 (init_procfs_targets): New, based on procfs_target. Install
2582 "target native" in addition to "target procfs".
2583 (_initialize_procfs): Call init_procfs_targets instead of adding
2586 2014-05-21 Pedro Alves <palves@redhat.com>
2588 * windows-nat.c (windows_target): Don't override to_shortname,
2589 to_longname or to_doc.
2591 2014-05-21 Pedro Alves <palves@redhat.com>
2593 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
2596 2014-05-21 Pedro Alves <palves@redhat.com>
2598 * darwin-nat.c (_initialize_darwin_inferior): Don't override
2599 to_shortname, to_longname or to_doc.
2601 2014-05-21 Pedro Alves <palves@redhat.com>
2603 * go32-nat.c (go32_target): Don't override to_shortname,
2604 to_longname or to_doc.
2606 2014-05-21 Pedro Alves <palves@redhat.com>
2608 * inf-child.c (inf_child_open): Remove mention of "child".
2609 (inf_child_target): Rename target to "native" instead of "child".
2611 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2613 * Makefile.in (SFILES): Delete "regset.c".
2614 (COMMON_OBS): Delete "regset.o".
2616 * regset.h (regset_alloc): Delete prototype.
2618 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2620 * sparc-linux-tdep.c (sparc32_linux_gregset)
2621 (sparc32_linux_fpregset): New static regset structures.
2622 (sparc32_linux_init_abi): Drop dynamic regset allocations.
2623 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
2625 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
2626 (sparc64_linux_fpregset): New static regset structures.
2627 (sparc64_linux_init_abi): Drop dynamic regset allocations.
2628 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
2629 New static regset structures.
2630 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
2631 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
2632 New static regset structures.
2633 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
2634 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
2635 New static regset structures.
2636 (sparc64obsd_init_abi): Drop dynamic regset allocations.
2637 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
2638 New static regset structures.
2639 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
2641 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2643 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
2644 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
2645 register maps ("regmaps") from "*regset" to "*regmap". Do this
2646 for all regmap types and variables.
2647 * sparc-linux-tdep.c (sparc32_linux_step_trap)
2648 (sparc32_linux_supply_core_gregset)
2649 (sparc32_linux_collect_core_gregset)
2650 (sparc32_linux_supply_core_fpregset)
2651 (sparc32_linux_collect_core_fpregset): Likewise.
2652 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
2653 (sparc_gregmap, sparc_fpregmap): ... these.
2654 (sparc_supply_gregset, sparc_collect_gregset)
2655 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
2656 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
2657 (_initialize_sparc_nat): Rename regmaps.
2658 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
2659 (sparc_gregmap, sparc_fpregmap): ... these.
2660 (sparc_supply_gregset, sparc_collect_gregset)
2661 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
2662 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
2664 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
2665 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
2667 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
2669 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
2670 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
2671 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
2673 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
2674 (sparc32_bsd_fpregset): Rename to...
2675 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
2676 (sparc32_bsd_fpregmap): ... these.
2677 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
2678 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
2679 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
2680 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
2681 (struct sparc_gregmap, struct sparc_fpregmap)
2682 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
2683 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
2684 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
2685 (sparc32_supply_regset, sparc32_collect_gregset)
2686 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
2688 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
2689 (sparc64_linux_ptrace_gregmap): ... this.
2690 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
2691 (_initialize_sparc64_linux_nat): Rename regmaps.
2692 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
2693 (sparc64_linux_core_gregmap): ... this.
2694 (sparc64_linux_supply_core_gregset)
2695 (sparc64_linux_collect_core_gregset)
2696 (sparc64_linux_supply_core_fpregset)
2697 (sparc64_linux_collect_core_fpregset): Rename regmaps.
2698 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
2699 (sparc64_sol2_fpregset): Rename to...
2700 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
2701 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
2702 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
2704 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
2705 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
2706 (sparc64_bsd_fpregset): Rename to...
2707 (struct sparc_gregmap, sparc64_sol2_gregmap)
2708 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
2709 (sparc64_bsd_fpregmap): ... these.
2710 (sparc64_supply_gregset, sparc64_collect_gregset)
2711 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
2713 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
2714 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
2715 (sparc64fbsd_gregmap): ... this.
2716 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
2717 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
2719 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
2720 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
2721 (sparc64nbsd_collect_fpregset): Likewise.
2722 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
2723 (sparc64nbsd_gregmap): ... this.
2724 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
2726 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
2727 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
2728 (sparc64obsd_gregmap): ... this.
2729 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
2731 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
2732 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
2733 (sparc32nbsd_gregmap): ... this.
2734 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
2737 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2739 * score-tdep.c (score7_linux_gregset): New static regset
2741 (score7_linux_regset_from_core_section): Remove dynamic regset
2743 (score_gdbarch_init): Drop allocation of tdep structure.
2744 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
2746 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2748 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
2750 (am33_regset_from_core_section): Remove dynamic regset
2753 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2755 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
2756 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
2758 (mips_linux_regset_from_core_section): Remove dynamic regset
2760 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
2761 'gregset64', 'fpregset', and 'fpregset64'.
2762 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
2763 deleted tdep fields.
2765 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2767 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
2769 (amd64_regset_from_core_section): Remove dynamic regset
2771 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
2773 (amd64obsd_regset_from_core_section): Remove dynamic regset
2775 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
2777 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
2778 x86-common regset supply function.
2779 * i386-tdep.c (i386_collect_gregset): Make static.
2780 (i386_gregset): New global regset structure.
2781 (i386_fpregset, i386_xstateregset): New static regset structures.
2782 (i386_regset_from_core_section): Remove dynamic regset
2784 (i386_gdbarch_init): Remove initialization of tdep fields
2785 'gregset', 'fpregset', and 'xstateregset'.
2786 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
2787 'fpregset', and 'xstateregset'.
2788 (i386_collect_gregset): Remove prototype.
2789 (i386_gregset): New declaration.
2790 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
2792 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
2795 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2797 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
2798 (arm_linux_vfpregset): New static regset structures.
2799 (arm_linux_regset_from_core_section): Remove dynamic allocation of
2801 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
2802 and 'vfpregset' fields.
2804 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2806 * aarch64-linux-tdep.c (aarch64_linux_gregset)
2807 (aarch64_linux_fpregset): New static regset structures.
2808 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
2809 of regset structures.
2810 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
2813 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2815 * regset.h (struct regset): Remove gdbarch field.
2816 * regset.c (regset_alloc): Drop initialization of gdbarch field.
2817 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
2818 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
2820 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
2821 (ppc32_linux_fpregset, ppc32_linux_vrregset)
2822 (ppc32_linux_vsxregset): Likewise.
2823 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
2824 via the regcache instead of the regset.
2825 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
2826 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
2827 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
2828 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
2831 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2833 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
2834 Constify structures.
2835 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
2836 (alphanbsd_aout_gregset): Likewise.
2837 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
2838 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
2840 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
2841 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
2843 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
2844 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
2845 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
2846 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
2847 * m88k-tdep.c (m88k_gregset): Likewise.
2848 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
2849 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
2850 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
2851 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
2852 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
2853 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
2854 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
2855 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
2856 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
2858 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
2859 * sh-tdep.h (sh_corefile_gregset): Likewise.
2860 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
2861 * vax-tdep.c (vax_gregset): Likewise.
2863 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2865 Fix TLS access for -static -pthread.
2866 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
2867 (try_thread_db_load_1): Initialize it.
2868 (thread_db_get_thread_local_address): Call it if LM is zero.
2869 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
2870 * target.h (struct target_ops) (to_get_thread_local_address): Add
2871 load_module_addr comment.
2873 2014-05-21 Pedro Alves <palves@redhat.com>
2875 * dcache.c (dcache_read_memory_partial): If reading the cache line
2876 fails, fallback to reading just the memory the caller wanted.
2878 2014-05-20 Doug Evans <dje@google.com>
2880 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
2881 instead of get_current_arch.
2883 2014-05-20 Pedro Alves <palves@redhat.com>
2885 * NEWS: Mention that compare-sections now works with all targets.
2887 * remote.c (PACKET_qCRC): New enum value.
2888 (remote_verify_memory): Don't send qCRC if the target has no
2889 execution. Use packet_support/packet_ok. If the target doesn't
2890 support the qCRC packet, fallback to a deep memory copy.
2891 (compare_sections_command): Say "target image" instead of "remote
2893 (_initialize_remote): Add PACKET_qCRC to the list of config
2894 packets that have no associated command. Extend comment.
2895 * target.c (simple_verify_memory, default_verify_memory): New
2897 * target.h (struct target_ops) <to_verify_memory>: Default to
2898 default_verify_memory.
2899 (simple_verify_memory): New declaration.
2900 * target-delegates.c: Regenerate.
2902 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
2904 * record-btrace.c (record_btrace_step_thread): Check for empty history.
2906 2014-05-20 Hui Zhu <hui@codesourcery.com>
2907 Yao Qi <yao@codesourcery.com>
2910 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
2911 and change address of sp and pc.
2913 2014-05-19 Tom Tromey <tromey@redhat.com>
2915 * gdbtypes.c (rank_function): Use XNEWVEC.
2916 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
2918 2014-05-19 Doug Evans <dje@google.com>
2920 * dwarf2read.c (build_type_psymtabs_1): Renamed from
2921 build_type_unit_groups and moved closer to only caller. Remove
2922 arguments. All references updated. Remove outdated .gdb_index
2924 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
2925 build_type_psymtabs_1.
2927 2014-05-19 Doug Evans <dje@google.com>
2929 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
2930 n_type_unit_groups, all_type_unit_groups. All uses removed.
2931 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
2932 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
2933 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
2934 (add_type_unit_group_to_table): Delete.
2936 2014-05-19 Doug Evans <dje@google.com>
2938 * eval.c (evaluate_subexp_standard): Add some comments.
2940 2014-05-17 Doug Evans <xdje42@gmail.com>
2942 * progspace.c (remove_program_space): Delete, unused.
2943 * progspace.h (remove_program_space): Ditto.
2945 2014-05-17 Doug Evans <xdje42@gmail.com>
2947 * inferior.c (prune_inferiors): Fix comment.
2948 (remove_inferior_command): Call prune_program_spaces.
2950 2014-05-16 Doug Evans <dje@google.com>
2952 New command line option -D.
2954 * main.c (set_gdb_data_directory): New function.
2955 (captured_main): Recognize -D. Flag error for --data-directory "".
2956 Call set_gdb_data_directory.
2957 (print_gdb_help): Print --data-directory, -D.
2958 * main.h (set_gdb_data_directory): Declare.
2959 * top.c (staged_gdb_datadir): New static global.
2960 (set_gdb_datadir): Call set_gdb_data_directory
2961 (show_gdb_datadir): New function.
2962 (init_main): Update init of data-directory parameter.
2964 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
2966 Import the "dirfd" gnulib module.
2967 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
2968 * gnulib/aclocal.m4: Update.
2969 * gnulib/config.in: Update.
2970 * gnulib/configure: Update.
2971 * gnulib/import/Makefile.am: Update.
2972 * gnulib/import/Makefile.in: Update.
2973 * gnulib/import/dirfd.c: New.
2974 * gnulib/import/m4/dirfd.m4: New.
2975 * gnulib/import/m4/gnulib-cache.m4: Update.
2976 * gnulib/import/m4/gnulib-comp.m4: Update.
2978 2014-05-16 Pierre Muller <muller@sourceware.org>
2979 Yao Qi <yao@codesourcery.com>
2981 * valprint.c (print_wchar): Move the code on checking whether
2982 W is a printable wide char to the default branch of switch
2983 statement below. Call wchar_printable instead of gdb_iswprint.
2985 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
2987 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
2988 ldr.w and ldrd instructions.
2990 2014-05-15 Doug Evans <dje@google.com>
2992 * dwarf2read.c (read_structure_type): Delete outdated comments.
2994 2014-05-14 Tom Tromey <tromey@redhat.com>
2996 * macrocmd.c (print_macro_definition): Reindent.
2998 2014-05-13 Doug Evans <xdje42@gmail.com>
3000 * python/py-cmd.c (cmdpy_completer): Add comment.
3001 (completers): Make const.
3003 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
3005 * infrun.c (resume): Remove should_resume (unused). Move up
3006 declaration of resume_ptid.
3008 2014-05-13 Tom Tromey <tromey@redhat.com>
3010 * language.h (unop_type_check): Remove.
3011 (binop_type_check): Don't declare.
3013 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
3015 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
3016 call to regcache_raw_collect.
3018 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
3020 * mi/mi-console.c (mi_console_raw_packet): Use the value from
3021 mi_console->quote as the quoting character.
3023 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
3025 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
3027 2014-04-29 Tom Tromey <tromey@redhat.com>
3029 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
3030 "show debug varobj".
3032 2014-05-07 Kyle McMartin <kyle@redhat.com>
3034 Pushed by Joel Brobecker <brobecker@adacore.com>.
3035 * aarch64-tdep.c (aarch64_software_single_step): New function.
3036 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
3037 with aarch64_software_single_step.
3039 2014-05-05 Joel Brobecker <brobecker@adacore.com>
3043 2014-05-05 Keith Seitz <keiths@redhat.com>
3045 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
3046 variable or history value is successfully parsed.
3048 2014-05-05 Yao Qi <yao@codesourcery.com>
3049 Pedro Alves <palves@redhat.com>
3051 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
3052 address of blocks that intersects the requested range. Trim
3053 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
3055 * ctf.c (ctf_xfer_partial): Likewise.
3057 2014-05-05 Yao Qi <yao@codesourcery.com>
3059 * printcmd.c (display_command): Remove the check to
3060 target_has_execution.
3062 2014-05-03 Mark Kettenis <kettenis@gnu.org>
3064 * ppcobsd-nat.c: Include "obsd-nat.h".
3065 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
3067 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
3069 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
3071 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
3072 and 16-bit signed and unsigned arguments. Update comment.
3073 (stap_parse_probe_arguments): Extend code to handle such
3074 arguments. Use warning instead of complaint to notify about
3075 unrecognized bitness.
3077 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
3079 PR breakpoints/16889
3080 * stap-probe.c (stap_parse_probe_arguments): Simplify
3081 check for non-prefixed probes (i.e., probes whose
3082 arguments do not start with "N@"). Always set the
3083 argument type to a sane value.
3085 2014-05-01 David Taylor <dtaylor@emc.com>
3087 * remote.c (compare_sections_command): Add -r option to compare
3088 all loadable read-only sections.
3090 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
3092 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
3093 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
3095 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
3096 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
3097 Remove unused CORE_ADDR argument. Update all callers.
3099 2014-04-29 Pedro Alves <palves@redhat.com>
3101 * remote.c (struct packet_config) <detect>: Extend comment.
3102 (add_packet_config_cmd): Don't set the config's detect or support
3104 (init_all_packet_configs): Also initialize the config's 'detect'
3106 (reset_all_packet_configs_support): New function.
3107 (remote_open_1): Call reset_all_packet_configs_support instead of
3108 init_all_packet_configs.
3109 (_initialize_remote): Initialize all packet configs. Assert that
3110 all packets have an associated command, except a few known
3113 2014-04-28 Joel Brobecker <brobecker@adacore.com>
3115 * dwarf2read.c (read_subrange_type): Handle dynamic
3116 DW_AT_lower_bound attributes.
3118 2014-04-28 Joel Brobecker <brobecker@adacore.com>
3120 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
3121 dynamic bounds before computing its upper bound.
3122 (ada_discrete_type_low_bound): Same as above with the lower bound.
3124 2014-04-28 Joel Brobecker <brobecker@adacore.com>
3126 * dwarf2read.c (is_dynamic_type): Return true for dynamic
3127 range types. Adjust the array handling implementation to
3128 take advantage of this change.
3129 (resolve_dynamic_range): New function, mostly extracted from
3130 resolve_dynamic_bounds.
3131 (resolve_dynamic_array): New function, mostly extracted from
3132 resolve_dynamic_bounds.
3133 (resolve_dynamic_bounds): Delete.
3134 (resolve_dynamic_type): Reimplement. Add handling of
3135 TYPE_CODE_RANGE types.
3137 2014-04-28 Joel Brobecker <brobecker@adacore.com>
3139 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
3140 handling of parallel ___XA types.
3142 2014-04-28 Joel Brobecker <brobecker@adacore.com>
3144 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
3145 unnecessary second call to static_unwrap_type.
3147 2014-04-27 Hui Zhu <hui@codesourcery.com>
3149 * stack.c (print_frame_info): Call do_gdb_disassembly with
3150 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
3152 2014-04-26 Doug Evans <xdje42@gmail.com>
3154 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
3156 2014-04-25 Pedro Alves <palves@redhat.com>
3159 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
3160 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
3161 and newline from built string.
3162 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
3163 (linux_ptrace_attach_fail_reason): ... this.
3164 * linux-nat.c (linux_nat_attach): Adjust to use
3165 linux_ptrace_attach_fail_reason.
3167 2014-04-25 Pedro Alves <palves@redhat.com>
3169 * remote.c (struct remote_state): Remove multi_process_aware,
3170 non_stop_aware, cond_tracepoints, cond_breakpoints,
3171 breakpoint_commands, fast_tracepoints, static_tracepoints,
3172 install_in_trace, disconnected_tracing,
3173 enable_disable_tracepoints, string_tracing, and
3174 augmented_libraries_svr4_read fields.
3175 (remote_multi_process_p): Move further below in the file.
3176 (struct packet_config): Add comments.
3177 (update_packet_config): Delete function.
3178 (show_packet_config_cmd): Use packet_config_support.
3179 (add_packet_config_cmd): Use NULL as set callback.
3180 (packet_ok): "set remote foo-packet"-style commands no longer
3181 change config->supported -- adjust.
3182 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
3183 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
3184 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
3185 (PACKET_QNonStop, PACKET_multiprocess_feature)
3186 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
3187 (PACKET_DisconnectedTracing_feature)
3188 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
3189 (set_remote_protocol_packet_cmd): Delete function.
3190 (packet_config_support, packet_support): New functions.
3191 (set_remote_protocol_Z_packet_cmd): Don't call
3192 update_packet_config.
3193 (remote_query_attached, remote_pass_signals)
3194 (remote_program_signals, remote_threads_info)
3195 (remote_threads_extra_info, remote_start_remote): Use
3197 (remote_start_remote): Use packet_config_support and
3199 (init_all_packet_configs): Set all packets to unknown support,
3200 instead of calling update_packet_config.
3201 (remote_check_symbols): Use packet_support.
3202 (remote_supported_packet): Unconditionally set the packet config's
3204 (remote_multi_process_feature, remote_non_stop_feature)
3205 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
3206 (remote_breakpoint_commands_feature)
3207 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
3208 (remote_install_in_trace_feature)
3209 (remote_disconnected_tracing_feature)
3210 (remote_enable_disable_tracepoint_feature)
3211 (remote_string_tracing_feature)
3212 (remote_augmented_libraries_svr4_read_feature): Delete functions.
3213 (remote_protocol_features): Adjust to use remote_supported_packet
3214 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
3215 "ConditionalTracepoints", "ConditionalBreakpoints",
3216 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
3217 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
3218 "EnableDisableTracepoints", and "tracenz".
3219 (remote_query_supported): Use packet_support.
3220 (remote_open_1): Adjust.
3221 (extended_remote_attach_1): Use packet_support. Switch on the
3222 result of packet_ok instead of checking whether the packet ended
3224 (remote_vcont_resume): Use packet_support.
3225 (remote_resume, remote_stop_ns, fetch_register_using_p)
3226 (remote_prepare_to_store, store_register_using_P)
3227 (check_binary_download, remote_write_bytes): Use packet_support.
3228 (remote_vkill): Use packet_support. Switch on the result of
3229 packet_ok instead of checking whether the packet ended up
3231 (extended_remote_supports_disable_randomization): Use
3233 (extended_remote_run): Switch on the result of packet_ok instead
3234 of checking whether the packet ended up disabled.
3235 (remote_insert_breakpoint, remote_remove_breakpoint)
3236 (remote_insert_watchpoint, remote_remove_watchpoint)
3237 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
3239 (remote_search_memory): Use packet_config_support.
3240 (remote_get_thread_local_address, remote_get_tib_address)
3241 (remote_hostio_send_command, remote_can_execute_reverse): Use
3243 (remote_supports_cond_tracepoints)
3244 (remote_supports_cond_breakpoints)
3245 (remote_supports_fast_tracepoints)
3246 (remote_supports_static_tracepoints)
3247 (remote_supports_install_in_trace)
3248 (remote_supports_enable_disable_tracepoint)
3249 (remote_supports_string_tracing)
3250 (remote_can_run_breakpoint_commands): Rewrite, checking whether
3251 the packet config says the feature is enabled or disabled.
3252 (remote_download_tracepoint, remote_trace_set_readonly_regions)
3253 (remote_get_trace_status): Use packet_support.
3254 (remote_set_disconnected_tracing): Adjust to check whether the
3255 feature is enabled with packet_support.
3256 (remote_set_trace_buffer_size, remote_use_agent)
3257 (remote_can_use_agent, remote_supports_btrace): Use
3259 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
3260 Use packet_config_support.
3261 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
3262 the packet config says the feature is enabled or disabled.
3263 (set_range_stepping): Use packet_support.
3265 2014-04-25 Tom Tromey <tromey@redhat.com>
3267 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
3270 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
3272 * NEWS: Mention support for C99 variable length arrays.
3274 2014-04-24 Joel Brobecker <brobecker@adacore.com>
3276 * ada-lang.c (standard_exc): Expand introductory comment.
3278 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
3279 Walfred Tedeschi <walfred.tedeschi@intel.com>
3281 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
3283 (amd64_linux_read_description): Add code to handle AVX512 xstate
3284 mask and return respective tdesc.
3285 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
3286 and features/i386/x32-avx512-linux.c.
3287 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
3288 (amd64_linux_core_read_description): Add code to handle AVX512
3289 xstate mask and return respective tdesc.
3290 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
3291 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
3293 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
3294 (tdesc_amd64_avx512_linux): New prototype.
3295 (tdesc_x32_avx512_linux): Likewise.
3296 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
3297 features/i386/x32-avx512.c.
3298 (amd64_ymm_avx512_names): New register names for pseudo
3300 (amd64_ymmh_avx512_names): New register names for raw registers
3302 (amd64_k_names): New register names for K registers.
3303 (amd64_zmmh_names): New register names for ZMM raw registers.
3304 (amd64_zmm_names): New registers names for ZMM pseudo registers.
3305 (amd64_xmm_avx512_names): New register names for XMM16-31
3307 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
3309 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
3310 if feature is present.
3311 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
3312 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
3313 (AMD64_NUM_REGS): Adjust to new number of registers.
3314 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
3315 registers supplied via XSTATE by AVX512 registers.
3316 (i386_linux_read_description): Add case for AVX512.
3317 * i386-linux-tdep.c: Include i386-avx512-linux.c.
3318 (i386_linux_gregset_reg_offset): Add AVX512 registers.
3319 (i386_linux_core_read_description): Add case for AVX512.
3320 (i386_linux_init_abi): Install supported register note section
3322 (_initialize_i386_linux_tdep): Add call to tdesc init function for
3324 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
3325 registers to be number of zmm7h + 1.
3326 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
3327 * i386-tdep.c: Include features/i386/i386-avx512.c.
3328 (i386_zmm_names): Add ZMM pseudo register names array.
3329 (i386_zmmh_names): Add ZMM raw register names array.
3330 (i386_k_names): Add K raw register names array.
3331 (num_lower_zmm_regs): Add constant for the number of lower ZMM
3332 registers. AVX512 has 16 more ZMM registers than there are YMM
3334 (i386_zmmh_regnum_p): Add function to look up register number of
3336 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
3337 (i386_k_regnum_p): Likewise for K raw registers.
3338 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
3339 registers added by AVX512.
3340 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
3341 registers added by AVX512.
3342 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
3344 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
3345 (i386_pseudo_register_name): Add ZMM pseudo registers.
3346 (i386_zmm_type): Construct and return vector registers type for ZMM
3348 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
3349 ZMM0-31 pseudo registers and K registers.
3350 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
3351 and YMM16-31 registers from register cache.
3352 (i386_pseudo_register_write): Add code to write K, ZMM and
3354 (i386_register_reggroup_p): Add code to include/exclude AVX512
3355 registers in/from respective register groups.
3356 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
3357 registers if feature is present in xcr0.
3358 (i386_gdbarch_init): Add code to initialize AVX512 feature
3359 variables in tdep structure, wire in pseudo registers and call
3360 initialize_tdesc_i386_avx512.
3361 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
3363 (i386_regnum): Add AVX512 registers.
3364 (I386_SSE_NUM_REGS): New define for number of SSE registers.
3365 (I386_AVX_NUM_REGS): Likewise for AVX registers.
3366 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
3367 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
3369 (i386_xmm_avx512_regnum_p): New prototype for register look up.
3370 (i386_ymm_avx512_regnum_p): Likewise.
3371 (i386_k_regnum_p): Likewise.
3372 (i386_zmm_regnum_p): Likewise.
3373 (i386_zmmh_regnum_p): Likewise.
3374 * i387-tdep.c : Update year in copyright notice.
3375 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
3377 (XSAVE_YMM_AVX512_ADDR): New macro.
3378 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
3380 (XSAVE_XMM_AVX512_ADDR): New macro.
3381 (xsave_avx512_k_offset): New table for K register offsets in
3383 (XSAVE_AVX512_K_ADDR): New macro.
3384 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
3386 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
3387 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
3389 (i387_collect_xsave): Add code to collect AVX512 registers from
3391 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
3392 of XMM16-31 registers.
3393 (I387_NUM_K_REGS): New define for number of K registers.
3394 (I387_K0_REGNUM): New define for K0 register number.
3395 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
3396 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
3397 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
3399 (I387_YMM16H_REGNUM): New define for YMM16H register number.
3400 (I387_XMM16_REGNUM): New define for XMM16 register number.
3401 (I387_YMM0_REGNUM): New define for YMM0 register number.
3402 (I387_KEND_REGNUM): New define for last K register number.
3403 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
3404 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
3406 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
3408 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
3410 * features/Makefile: Add AVX512 related files.
3411 * features/i386/32bit-avx512.xml: New file.
3412 * features/i386/64bit-avx512.xml: Likewise.
3413 * features/i386/amd64-avx512-linux.c: Likewise.
3414 * features/i386/amd64-avx512-linux.xml: Likewise.
3415 * features/i386/amd64-avx512.c: Likewise.
3416 * features/i386/amd64-avx512.xml: Likewise.
3417 * features/i386/i386-avx512-linux.c: Likewise.
3418 * features/i386/i386-avx512-linux.xml: Likewise.
3419 * features/i386/i386-avx512.c: Likewise.
3420 * features/i386/i386-avx512.xml: Likewise.
3421 * features/i386/x32-avx512-linux.c: Likewise.
3422 * features/i386/x32-avx512-linux.xml: Likewise.
3423 * features/i386/x32-avx512.c: Likewise.
3424 * features/i386/x32-avx512.xml: Likewise.
3425 * regformats/i386/amd64-avx512-linux.dat: New file.
3426 * regformats/i386/amd64-avx512.dat: Likewise.
3427 * regformats/i386/i386-avx512-linux.dat: Likewise.
3428 * regformats/i386/i386-avx512.dat: Likewise.
3429 * regformats/i386/x32-avx512-linux.dat: Likewise.
3430 * regformats/i386/x32-avx512.dat: Likewise.
3431 * NEWS: Add note about new support for AVX512.
3434 2014-04-23 Pedro Alves <palves@redhat.com>
3436 * breakpoint.c (insert_bp_location): Tolerate errors if the
3437 breakpoint is set in a user-loaded objfile.
3438 (remove_breakpoint_1): Likewise. Also tolerate errors if the
3439 location is marked shlib_disabled. If the breakpoint is set in a
3440 user-loaded objfile is a GDB-side memory breakpoint, validate it
3441 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
3442 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
3444 * mem-break.c (memory_validate_breakpoint): New function.
3445 * objfiles.c (userloaded_objfile_contains_address_p): New
3447 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
3448 * target.h (memory_validate_breakpoint): New declaration.
3450 2014-04-23 Pedro Alves <palves@redhat.com>
3452 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
3453 the breakpoint is set in a shared library, only suppress
3454 errors for software breakpoints, not hardware breakpoints.
3456 2014-04-22 Pedro Alves <palves@redhat.com>
3458 * infrun.c (schedlock_applies): New function, factored out from
3459 find_thread_needs_step_over.
3460 (find_thread_needs_step_over): Use it.
3461 (switch_back_to_stepped_thread): Always clear trap_expected if the
3462 step over is finished. Return early if scheduler locking applies.
3463 Look for the stepping thread and a potential step-over thread with
3465 (currently_stepping_or_nexting_callback): Delete.
3467 2014-04-22 Nick Clifton <nickc@redhat.com>
3469 * NEWS: Mention that ARM sim now supports tracing.
3471 2014-04-22 Yao Qi <yao@codesourcery.com>
3473 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
3475 * tracefile.c (tracefile_fetch_registers): ... it. New
3477 * tracefile.h (tracefile_fetch_registers): Declare.
3478 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
3479 tracefile_fetch_registers.
3481 2014-04-19 Eli Zaretskii <eliz@gnu.org>
3484 * windows-nat.c (thread_rec): Don't display a warning when
3485 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
3486 fails for any reason, set th->suspended to -1, so that we don't
3487 try to resume such a thread. Also, don't return NULL in these
3488 cases, to avoid completely ruin the session due to "PC register is
3489 not available" error.
3490 (do_windows_fetch_inferior_registers): Check errors in
3491 GetThreadContext call.
3492 (windows_continue): Accept an additional argument KILLED; if not
3493 zero, ignore errors in the SetThreadContext call, since the
3494 inferior was killed and is shutting down.
3495 (windows_resume, get_windows_debug_event)
3496 (windows_create_inferior, windows_mourn_inferior)
3497 (windows_kill_inferior): All callers of windows_continue changed
3498 to adjust to its new calling sequence.
3500 2014-04-19 Yao Qi <yao@codesourcery.com>
3502 * ctf.c (ctf_open): Call post_create_inferior.
3504 2014-04-19 Yao Qi <yao@codesourcery.com>
3506 * ctf.c (handle_id): New static variable.
3507 (ctf_open_dir): Get handle_id from bt_context_add_trace return
3508 value. Get the declaration of event "register" and get length
3509 of field "contents".
3511 2014-04-19 Yao Qi <yao@codesourcery.com>
3513 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
3515 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
3517 * valops.c (oload_method_static): Remove unnecessary argument
3518 METHOD. Update all callers.
3520 2014-04-18 Pedro alves <palves@redhat.com>
3521 Tom Tromey <tromey@redhat.com>
3524 * frame.c (get_prev_frame_1): Rename to ...
3525 (get_prev_frame_always): ... this, and make extern. Adjust.
3526 (skip_artificial_frames): Use get_prev_frame_always.
3527 (frame_unwind_caller_id, frame_pop, get_prev_frame)
3528 (get_frame_unwind_stop_reason): Adjust to rename.
3529 * frame.h (get_prev_frame_always): Declare.
3530 * inline-frame.c: Include frame.h.
3531 (inline_frame_this_id): Use get_prev_frame_always.
3533 2014-04-18 Tristan Gingold <gingold@adacore.com>
3535 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
3536 code by using bfd_mach_o_get_base_address.
3538 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
3540 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
3541 (spu_ax_pseudo_register_collect): New function.
3542 (spu_ax_pseudo_register_push_stack): Likewise.
3543 (spu_dwarf_reg_to_regnum): Likewise.
3544 (spu_gdbarch_init): Install them. Append DWARF unwinders.
3546 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
3548 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
3549 Replace FRAME argument with FRAME_ID.
3550 * gdbarch.c, gdbarch.h: Regenerate.
3551 * findvar.c (default_value_from_register): Add GDBARCH argument;
3552 replace FRAME by FRAME_ID. No longer call get_frame_id.
3553 (value_from_register): Update call to gdbarch_value_from_register.
3554 * value.h (default_value_from_register): Update prototype.
3555 * s390-linux-tdep.c (s390_value_from_register): Update interface
3556 and call to default_value_from_register.
3557 * spu-tdep.c (spu_value_from_register): Likewise.
3559 * findvar.c (address_from_register): Remove TYPE argument.
3560 Do not call value_from_register; use gdbarch_value_from_register
3561 with null_frame_id instead.
3562 * value.h (address_from_register): Update prototype.
3563 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
3564 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
3565 address_from_register interface change.
3567 2014-04-17 Yao Qi <yao@codesourcery.com>
3569 * gdbtypes.h: Update comments to link to types and macros'
3572 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
3574 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
3576 2014-04-16 Keith Seitz <keiths@redhat.com>
3579 * dwarf2read.c (skip_one_die): Check that all relative-offset
3580 sibling DIEs fall within range of the current reader's buffer.
3581 (read_partial_die): Likewise.
3583 2014-04-16 Keith Seitz <keiths@redhat.com>
3586 * cp-namespace.c (lookup_symbol_file): If the type name of
3587 `this' is NULL, return immediately.
3589 2014-04-14 Keith Seitz <keiths@redhat.com>
3592 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
3593 from symbol_matches_domain in symtab.c. All local callers
3594 of symbol_matches_domain updated.
3595 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
3596 search STRUCT_DOMAIN.
3597 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
3598 independently. standard_lookup will do that automatically.
3599 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
3600 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3601 (cp_lookup_symbol_in_namespace): Likewise.
3602 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
3603 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
3604 may return a STRUCT_DOMAIN match.
3605 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
3606 * cp-support.c: Include language.h.
3607 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
3609 * psymtab.c (match_partial_symbol): Compare the requested
3610 domain with the symbol's domain directly.
3611 (lookup_partial_symbol): Likewise.
3612 * symtab.c (lookup_symbol_in_language): Explain when/why
3613 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3614 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
3615 appropriate languages.
3616 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
3617 and moved to ada-lang.c
3618 (lookup_block_symbol): Explain that this function only returns
3619 symbol matching the requested DOMAIN.
3620 Compare the requested domain with the symbol's domain directly.
3621 (iterate_over_symbols): Compare the requested domain with the
3622 symbol's domain directly.
3623 * symtab.h (symbol_matches_domain): Remove.
3625 2014-04-14 Tom Tromey <tromey@redhat.com>
3628 * c-exp.y (type_aggregate_p): New function.
3629 (qualified_name, classify_inner_name): Use it.
3630 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
3631 and TYPE_TARGET_TYPE of an enum type.
3632 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
3634 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
3635 handle TYPE_DECLARED_CLASS.
3636 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
3638 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
3639 * valops.c (enum_constant_from_type): New function.
3640 (value_aggregate_elt): Use it.
3641 * cp-namespace.c (cp_lookup_nested_symbol): Handle
3644 2014-04-14 Tom Tromey <tromey@redhat.com>
3646 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
3647 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
3649 * value.h (value_aggregate_elt): Update.
3651 2014-04-14 Tom Tromey <tromey@redhat.com>
3653 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
3655 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3657 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
3658 (evaluate_subexp_standard): Pass noside argument.
3659 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
3660 if noside equals EVAL_NORMAL. If the subscript yields a vla type
3661 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
3662 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
3663 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
3665 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3667 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
3668 points to a constant blob.
3670 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3672 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
3673 property and store it as the high bound and flag the range accordingly.
3674 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
3675 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
3676 * gdbtypes.h (enum range_flags): New enum.
3677 (struct range_bounds): Add flags member.
3679 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3681 * c-typeprint.c (c_type_print_varspec_suffix): Added
3682 check for not yet resolved high bound. If unresolved, print
3683 "variable length" string to the console instead of random
3686 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3688 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
3690 (ada_template_to_fixed_record_type_1): Likewise.
3691 (ada_to_fixed_type_1): Likewise.
3692 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
3693 (cp_print_value): Likewise.
3694 * d-valprint.c (dynamic_array_type): Likewise.
3695 * findvar.c (address_of_variable): Likewise.
3696 * jv-valprint.c (java_value_print): Likewise.
3697 * valops.c (value_ind): Likewise.
3698 * value.c (coerce_ref): Likewise.
3700 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3702 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
3703 value and retrieve the dynamic type size.
3705 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3707 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
3708 passed to sizeof is dynamic evaluate the argument to compute the length.
3710 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3711 Joel Brobecker <brobecker@adacore.com>
3713 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
3714 (dwarf2_evaluate_property): New function.
3715 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
3716 * dwarf2read.c (attr_to_dynamic_prop): New function.
3717 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
3719 * gdbtypes.c: Include dwarf2loc.h.
3720 (is_dynamic_type): New function.
3721 (resolve_dynamic_type): New function.
3722 (resolve_dynamic_bounds): New function.
3723 (get_type_length): New function.
3724 (check_typedef): Use get_type_length to compute type length.
3725 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
3726 (TYPE_LOW_BOUND_KIND): New macro.
3727 (is_dynamic_type): New function prototype.
3728 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
3729 to resolve dynamic properties of the type. Update comment.
3730 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
3732 2014-04-14 Richard Henderson <rth@redhat.com>
3734 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
3736 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
3737 Doug Evans <xdje42@gmail.com>
3739 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
3740 dereference TYPE_CODE_REF values.
3742 2014-04-11 Joel Brobecker <brobecker@adacore.com>
3744 Revert the following changes due to regressions:
3746 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
3747 (dwarf2_evaluate_property): New function.
3748 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
3749 * dwarf2read.c (attr_to_dynamic_prop): New function.
3750 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
3752 * gdbtypes.c: Include dwarf2loc.h.
3753 (is_dynamic_type): New function.
3754 (resolve_dynamic_type): New function.
3755 (resolve_dynamic_bounds): New function.
3756 (get_type_length): New function.
3757 (check_typedef): Use get_type_length to compute type length.
3758 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
3759 (TYPE_LOW_BOUND_KIND): New macro.
3760 (is_dynamic_type): New function prototype.
3761 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
3762 to resolve dynamic properties of the type. Update comment.
3763 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
3765 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
3766 passed to sizeof is dynamic evaluate the argument to compute the length.
3768 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
3769 value and retrieve the dynamic type size.
3771 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
3772 (ada_template_to_fixed_record_type_1): Likewise.
3773 (ada_to_fixed_type_1): Likewise.
3774 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
3775 (cp_print_value): Likewise.
3776 * d-valprint.c (dynamic_array_type): Likewise.
3777 * eval.c (evaluate_subexp_with_coercion): Likewise.
3778 * findvar.c (address_of_variable): Likewise.
3779 * jv-valprint.c (java_value_print): Likewise.
3780 * valops.c (value_ind): Likewise.
3781 * value.c (coerce_ref): Likewise.
3783 * c-typeprint.c (c_type_print_varspec_suffix): Added
3784 check for not yet resolved high bound. If unresolved, print
3785 "variable length" string to the console instead of random
3788 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
3789 property and store it as the high bound and flag the range accordingly.
3790 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
3791 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
3792 * gdbtypes.h (enum range_flags): New enum.
3793 (struct range_bounds): Add flags member.
3795 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
3796 points to a constant blob.
3798 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
3799 (evaluate_subexp_standard): Pass noside argument.
3800 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
3801 if noside equals EVAL_NORMAL. If the subscript yields a vla type
3802 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
3803 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
3804 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
3806 2014-04-11 Keith Seitz <keiths@redhat.com>
3809 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
3810 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
3813 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3815 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
3816 (evaluate_subexp_standard): Pass noside argument.
3817 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
3818 if noside equals EVAL_NORMAL. If the subscript yields a vla type
3819 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
3820 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
3821 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
3823 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3825 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
3826 points to a constant blob.
3828 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3830 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
3831 property and store it as the high bound and flag the range accordingly.
3832 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
3833 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
3834 * gdbtypes.h (enum range_flags): New enum.
3835 (struct range_bounds): Add flags member.
3837 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3839 * c-typeprint.c (c_type_print_varspec_suffix): Added
3840 check for not yet resolved high bound. If unresolved, print
3841 "variable length" string to the console instead of random
3844 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3846 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
3847 (ada_template_to_fixed_record_type_1): Likewise.
3848 (ada_to_fixed_type_1): Likewise.
3849 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
3850 (cp_print_value): Likewise.
3851 * d-valprint.c (dynamic_array_type): Likewise.
3852 * eval.c (evaluate_subexp_with_coercion): Likewise.
3853 * findvar.c (address_of_variable): Likewise.
3854 * jv-valprint.c (java_value_print): Likewise.
3855 * valops.c (value_ind): Likewise.
3856 * value.c (coerce_ref): Likewise.
3858 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3860 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
3861 value and retrieve the dynamic type size.
3863 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3865 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
3866 passed to sizeof is dynamic evaluate the argument to compute the length.
3868 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3870 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
3871 (dwarf2_evaluate_property): New function.
3872 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
3873 * dwarf2read.c (attr_to_dynamic_prop): New function.
3874 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
3876 * gdbtypes.c: Include dwarf2loc.h.
3877 (is_dynamic_type): New function.
3878 (resolve_dynamic_type): New function.
3879 (resolve_dynamic_bounds): New function.
3880 (get_type_length): New function.
3881 (check_typedef): Use get_type_length to compute type length.
3882 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
3883 (TYPE_LOW_BOUND_KIND): New macro.
3884 (is_dynamic_type): New function prototype.
3885 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
3886 to resolve dynamic properties of the type. Update comment.
3887 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
3889 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3891 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
3892 declaring high/low bounds and change uses accordingly. Call
3893 create_range_type instead of create_static_range_type.
3894 * gdbtypes.c (create_range_type): New function.
3895 (create_range_type): Convert bounds into struct bound_prop and pass
3896 them to create_range_type.
3897 * gdbtypes.h (struct bound_prop): New struct.
3898 (create_range_type): New function prototype.
3899 (struct range_bounds): Use struct bound_prop instead of LONGEST for
3900 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
3901 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
3903 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
3905 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3907 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
3908 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
3909 * ada-lang.c: All uses of create_range_type updated.
3910 * coffread.c: All uses of create_range_type updated.
3911 * dwarf2read.c: All uses of create_range_type updated.
3912 * f-exp.y: All uses of create_range_type updated.
3913 * m2-valprint.c: All uses of create_range_type updated.
3914 * mdebugread.c: All uses of create_range_type updated.
3915 * stabsread.c: All uses of create_range_type updated.
3916 * valops.c: All uses of create_range_type updated.
3917 * valprint.c: All uses of create_range_type updated.
3919 2014-04-10 Pedro Alves <palves@redhat.com>
3921 * breakpoint.c (single_step_breakpoints)
3922 (single_step_gdbarch): Move up in the file.
3923 (one_breakpoint_xfer_memory): New function, factored out from ...
3924 (breakpoint_xfer_memory): ... here. Also process single-step
3927 2014-04-09 Tristan Gingold <gingold@adacore.com>
3929 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
3931 (darwin_decode_exception_message): Free port only after use.
3933 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
3935 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
3936 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
3937 when setting the size of call_length.
3939 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
3941 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
3942 dereference TYPE_CODE_REF values.
3944 2014-04-07 Joel Brobecker <brobecker@adacore.com>
3946 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
3947 end of warning message.
3949 2014-04-03 Doug Evans <dje@google.com>
3951 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
3952 of stub_comp_unit_die, stub_comp_dir is non-NULL.
3954 2014-04-02 Alan Modra <amodra@gmail.com>
3956 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
3957 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
3958 (struct symbol_file_add_from_memory_args): Add size field.
3959 (find_vdso_size): New function.
3960 (add_vsyscall_page): Attempt to find vdso size.
3962 2014-04-01 Doug Evans <dje@google.com>
3964 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
3966 2014-04-01 Tristan Gingold <gingold@adacore.com>
3968 * darwin-nat.c (darwin_encode_reply): Add prototype.
3969 (darwin_decode_exception_message): Reply to unknown inferiors.
3970 (darwin_decode_message): Handle message by id. Ignore message
3971 to unknown inferior.
3972 (darwin_wait): Discard unknown messages, add debug trace.
3974 2014-03-31 Doug Evans <dje@google.com>
3976 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
3979 2014-03-31 Doug Evans <dje@google.com>
3981 New option "set print symbol-loading".
3983 * solib.c (solib_read_symbols): Only print symbol loading messages
3985 (solib_add): If symbol loading is in "brief" mode, notify user
3986 symbols are being loaded.
3987 (reload_shared_libraries_1): Ditto.
3988 * symfile.c (print_symbol_loading_off): New static global.
3989 (print_symbol_loading_brief): New static global.
3990 (print_symbol_loading_full): New static global.
3991 (print_symbol_loading_enums): New static global.
3992 (print_symbol_loading): New static global.
3993 (print_symbol_loading_p): New function.
3994 (symbol_file_add_with_addrs): Only print symbol loading messages
3996 (_initialize_symfile): Register "print symbol-loading" set/show
3998 * symfile.h (print_symbol_loading_p): Declare.
4000 2014-03-30 Doug Evans <xdje42@gmail.com>
4002 * infrun.c (set_last_target_status): New function.
4003 (handle_inferior_event): Call it.
4005 2014-03-30 Doug Evans <xdje42@gmail.com>
4007 * inferior.h (enum stop_kind): Improve comment.
4009 2014-03-28 Joel Brobecker <brobecker@adacore.com>
4011 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
4012 a reference, strip the reference layer before calling
4013 the lang_ops value_has_mutated callback.
4015 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
4017 Remove some globals from our parser.
4018 * language.c (unk_lang_parser): Add "struct parser_state"
4020 * language.h (struct language_defn) <la_parser>: Likewise.
4021 * parse.c (expout, expout_size, expout_ptr): Remove variables.
4022 (initialize_expout): Add "struct parser_state" argument.
4023 Rewrite function to use the parser state.
4024 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
4025 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
4026 write_exp_elt_longcst, write_exp_elt_dblcst,
4027 write_exp_elt_decfloatcst, write_exp_elt_type,
4028 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
4029 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
4030 write_dollar_variable): Likewise.
4031 (parse_exp_in_context_1): Use parser state.
4032 (insert_type_address_space): Add "struct parser_state" argument.
4034 (increase_expout_size): New function.
4035 * parser-defs.h: Forward declare "struct language_defn" and
4036 "struct parser_state".
4037 (expout, expout_size, expout_ptr): Remove extern declarations.
4038 (parse_gdbarch, parse_language): Rewrite macro declarations to
4039 accept the parser state.
4040 (struct parser_state): New struct.
4041 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
4042 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
4043 write_exp_elt_decfloatcst, write_exp_elt_type,
4044 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
4045 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
4046 write_exp_msymbol, write_dollar_variable,
4047 mark_struct_expression, insert_type_address_space): Add "struct
4048 parser_state" argument.
4049 (increase_expout_size): New function.
4050 * utils.c (do_clear_parser_state): New function.
4051 (make_cleanup_clear_parser_state): Likewise.
4052 * utils.h (make_cleanup_clear_parser_state): New function
4054 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
4055 Update calls to write_exp* in order to pass the parser state.
4056 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
4057 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
4058 (i386_stap_parse_special_token_three_arg_disp): Likewise.
4059 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
4060 * stap-probe.c (stap_parse_register_operand): Likewise.
4061 (stap_parse_single_operand): Likewise.
4062 (stap_parse_argument_1): Likewise.
4063 (stap_parse_argument): Use parser state.
4064 * stap-probe.h: Include "parser-defs.h".
4065 (struct stap_parse_info) <pstate>: New field.
4066 * c-exp.y (parse_type): Rewrite to use parser state.
4067 (yyparse): Redefine to c_parse_internal.
4068 (pstate): New global variable.
4069 (parse_number): Add "struct parser_state" argument.
4070 (write_destructor_name): Likewise.
4071 (type_exp): Update calls to write_exp* and similars in order to
4073 (exp1, exp, variable, qualified_name, space_identifier,
4074 typename, typebase): Likewise.
4075 (write_destructor_name, parse_number, lex_one_token,
4076 classify_name, classify_inner_name, c_parse): Add "struct
4077 parser_state" argument. Update function to use parser state.
4078 * c-lang.h: Forward declare "struct parser_state".
4079 (c_parse): Add "struct parser_state" argument.
4080 * ada-exp.y (parse_type): Rewrite macro to use parser state.
4081 (yyparse): Redefine macro to ada_parse_internal.
4082 (pstate): New variable.
4083 (write_int, write_object_renaming, write_var_or_type,
4084 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
4085 type_int, type_long, type_long_long, type_float, type_double,
4086 type_long_double, type_char, type_boolean, type_system_address):
4087 Add "struct parser_state" argument.
4088 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
4089 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
4090 var_or_type, aggregate, aggregate_component_list,
4091 positional_list, others, component_group,
4092 component_associations): Update calls to write_exp* and similar
4093 functions in order to use parser state.
4094 (ada_parse, write_var_from_sym, write_int,
4095 write_exp_op_with_string, write_object_renaming,
4096 find_primitive_type, write_selectors, write_ambiguous_var,
4097 write_var_or_type, write_name_assoc, type_int, type_long,
4098 type_long_long, type_float, type_double, type_long_double,
4099 type_char, type_boolean, type_system_address): Add "struct
4100 parser_state" argument. Adjust function to use parser state.
4101 * ada-lang.c (parse): Likewise.
4102 * ada-lang.h: Forward declare "struct parser_state".
4103 (ada_parse): Add "struct parser_state" argument.
4104 * ada-lex.l (processInt, processReal): Likewise. Adjust all
4105 calls to both functions.
4106 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
4108 (yyparse): Redefine macro to f_parse_internal.
4109 (pstate): New variable.
4110 (parse_number): Add "struct parser_state" argument.
4111 (type_exp, exp, subrange, typebase): Update calls to write_exp*
4112 and similars in order to use parser state.
4113 (parse_number): Adjust code to use parser state.
4115 (f_parse): New function.
4116 * f-lang.h: Forward declare "struct parser_state".
4117 (f_parse): Add "struct parser_state" argument.
4118 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
4120 (yyparse): Redefine macro for java_parse_internal.
4121 (pstate): New variable.
4122 (push_expression_name, push_expression_name, insert_exp): Add
4123 "struct parser_state" argument.
4124 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
4125 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
4126 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
4127 PostIncrementExpression, PostDecrementExpression,
4128 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
4129 UnaryExpressionNotPlusMinus, CastExpression,
4130 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
4131 RelationalExpression, EqualityExpression, AndExpression,
4132 ExclusiveOrExpression, InclusiveOrExpression,
4133 ConditionalAndExpression, ConditionalOrExpression,
4134 ConditionalExpression, Assignment, LeftHandSide): Update
4135 calls to write_exp* and similars in order to use parser state.
4136 (parse_number): Ajust code to use parser state.
4138 (java_parse): New function.
4139 (push_variable): Add "struct parser_state" argument. Adjust
4140 code to user parser state.
4141 (push_fieldnames, push_qualified_expression_name,
4142 push_expression_name, insert_exp): Likewise.
4143 * jv-lang.h: Forward declare "struct parser_state".
4144 (java_parse): Add "struct parser_state" argument.
4145 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
4147 (yyparse): Redefine macro to m2_parse_internal.
4148 (pstate): New variable.
4149 (type_exp, exp, fblock, variable, type): Update calls to
4150 write_exp* and similars to use parser state.
4152 (m2_parse): New function.
4153 * m2-lang.h: Forward declare "struct parser_state".
4154 (m2_parse): Add "struct parser_state" argument.
4155 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
4156 * objc-lang.h: Forward declare "struct parser_state".
4157 (end_msglist): Add "struct parser_state" argument.
4158 * p-exp.y (parse_type): Rewrite macro to use parser state.
4159 (yyparse): Redefine macro to pascal_parse_internal.
4160 (pstate): New variable.
4161 (parse_number): Add "struct parser_state" argument.
4162 (type_exp, exp1, exp, qualified_name, variable): Update calls to
4163 write_exp* and similars in order to use parser state.
4164 (parse_number, yylex): Adjust code to use parser state.
4165 (pascal_parse): New function.
4166 * p-lang.h: Forward declare "struct parser_state".
4167 (pascal_parse): Add "struct parser_state" argument.
4168 * go-exp.y (parse_type): Rewrite macro to use parser state.
4169 (yyparse): Redefine macro to go_parse_internal.
4170 (pstate): New variable.
4171 (parse_number): Add "struct parser_state" argument.
4172 (type_exp, exp1, exp, variable, type): Update calls to
4173 write_exp* and similars in order to use parser state.
4174 (parse_number, lex_one_token, classify_name, yylex): Adjust code
4175 to use parser state.
4176 (go_parse): Likewise.
4177 * go-lang.h: Forward declare "struct parser_state".
4178 (go_parse): Add "struct parser_state" argument.
4180 2014-03-27 Doug Evans <dje@google.com>
4182 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
4184 2014-03-27 Doug Evans <dje@google.com>
4186 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
4187 Remove argument abbrev_section. All callers updated.
4189 2014-03-27 Doug Evans <dje@google.com>
4191 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
4192 addr_base, ranges_base.
4194 2014-03-26 Keith Seitz <keiths@redhat.com>
4196 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
4197 types, not VAR_DOMAIN.
4199 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
4201 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
4203 * features/nios2-linux.c: Regenerated.
4204 * features/nios2.c: Regenerated.
4206 2014-03-25 Pedro Alves <palves@redhat.com>
4208 * cli/cli-script.c (script_from_file): Force the interpreter to
4211 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
4213 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
4214 small stack allocation.
4216 2014-03-24 Tristan Gingold <gingold@adacore.com>
4218 * darwin-nat.c (exc_server): Remove unused prototype.
4219 (darwin_dump_message): Correctly display data on x86_64.
4220 (darwin_encode_reply): Fix style.
4221 Add comments and fix indentation.
4223 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
4225 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
4227 2014-03-22 Doug Evans <xdje42@gmail.com>
4229 * infcmd.c: Whitespace fixes.
4230 (interrupt_command): Merge two function comments into one.
4232 2014-03-22 Doug Evans <xdje42@gmail.com>
4234 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
4237 2014-03-22 Yao Qi <yao@codesourcery.com>
4239 * remote.c (target_read_live_memory): Remove.
4240 (memory_xfer_live_readonly_partial): Rename it to
4241 remote_xfer_live_readonly_partial. Remove argument 'object'.
4242 All callers updated. Call remote_read_bytes_1
4243 instead of target_read_live_memory.
4244 * tracepoint.c (set_traceframe_number): Remove.
4245 (make_cleanup_restore_traceframe_number): Likewise .
4246 * tracepoint.h (set_traceframe_number): Remove declaration.
4247 (make_cleanup_restore_traceframe_number): Likewise.
4249 2014-03-22 Yao Qi <yao@codesourcery.com>
4251 * remote.c (remote_read_bytes): Move code on reading from the
4253 (remote_read_bytes_1): ... here. New function.
4255 2014-03-22 Yao Qi <yao@codesourcery.com>
4257 * ctf.c (ctf_xfer_partial): Check the return value of
4258 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
4259 return TARGET_XFER_UNAVAILABLE.
4260 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
4261 * target.c (target_read_live_memory): Move it to remote.c.
4262 (memory_xfer_live_readonly_partial): Likewise.
4263 (memory_xfer_partial_1): Move some code to remote_read_bytes.
4264 * remote.c (target_read_live_memory): Moved from target.c.
4265 (memory_xfer_live_readonly_partial): Likewise.
4266 (remote_read_bytes): Factored out from
4267 memory_xfer_partial_1.
4269 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
4271 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
4274 2014-03-21 Pedro Alves <palves@redhat.com>
4276 * infrun.c (normal_stop): Extend comment.
4278 2014-03-21 Hui Zhu <hui@codesourcery.com>
4279 Pedro Alves <palves@redhat.com>
4281 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
4283 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
4284 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
4285 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
4287 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
4289 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
4290 `z' formatted output modifier.
4292 2014-03-20 Tom Tromey <tromey@redhat.com>
4293 Sergio Durigan Junior <sergiodj@redhat.com>
4295 * probe.c (parse_probes): Turn assert into an ordinary error.
4296 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
4297 exceptions when parsing probes. Rearrange the code for clarity.
4299 2014-03-20 Tom Tromey <tromey@redhat.com>
4302 * top.c (execute_command): Only dispatch events if the command
4305 2014-03-20 Tom Tromey <tromey@redhat.com>
4308 * infcall.c: Include event-top.h.
4309 (run_inferior_call): Call async_disable_stdin if needed.
4311 2014-03-20 Pedro Alves <palves@redhat.com>
4313 * infrun.c (prepare_to_proceed): Delete.
4314 (thread_still_needs_step_over): New function.
4315 (find_thread_needs_step_over): New function.
4316 (proceed): If the current thread needs a step-over, set its
4317 steping_over_breakpoint flag. Adjust to use
4318 find_thread_needs_step_over instead of prepare_to_proceed.
4319 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
4320 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
4322 (switch_back_to_stepped_thread): Step over breakpoints of all
4323 threads not the stepping thread, before switching back to the
4326 2014-03-20 Pedro Alves <palves@redhat.com>
4328 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
4330 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
4331 * infrun.c (saved_singlestep_ptid)
4332 (stepping_past_singlestep_breakpoint): Delete.
4333 (resume): Remove stepping_past_singlestep_breakpoint handling.
4334 (proceed): Store the prev_pc of the stepping thread too.
4335 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
4337 (enum infwait_states): Delete infwait_thread_hop_state.
4338 (struct execution_control_state) <hit_singlestep_breakpoint>: New
4340 (handle_inferior_event): Adjust.
4341 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
4342 handling and the thread-hop code. Before removing single-step
4343 breakpoints, check whether the thread hit a single-step breakpoint
4344 of another thread. If it did, the trap is not a random signal.
4345 (switch_back_to_stepped_thread): If the event thread hit a
4346 single-step breakpoint, unblock it before switching to the
4347 stepping thread. Handle the case of the stepped thread having
4349 (keep_going): Handle the case of the current thread moving past a
4350 single-step breakpoint.
4352 2014-03-20 Pedro Alves <palves@redhat.com>
4355 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
4356 are being stepped over.
4357 (breakpoint_address_match): Make extern.
4358 * breakpoint.h (breakpoint_address_match): New declaration.
4359 * inferior.h (stepping_past_instruction_at): New declaration.
4360 * infrun.c (struct step_over_info): New type.
4361 (step_over_info): New global.
4362 (set_step_over_info, clear_step_over_info)
4363 (stepping_past_instruction_at): New functions.
4364 (handle_inferior_event): Clear the step-over info when
4365 trap_expected is cleared.
4366 (resume): Remove now stale comment.
4367 (clear_proceed_status): Clear step-over info.
4368 (proceed): Adjust step-over handling to set or clear the step-over
4369 info instead of removing all breakpoints.
4370 (handle_signal_stop): When setting up a thread-hop, don't remove
4372 (stop_stepping): Clear step-over info.
4373 (keep_going): Adjust step-over handling to set or clear step-over
4374 info and then always inserting breakpoints, instead of removing
4375 all breakpoints when stepping over one.
4377 2014-03-20 Pedro Alves <palves@redhat.com>
4379 * infrun.c (previous_inferior_ptid): Adjust comment.
4380 (deferred_step_ptid): Delete.
4381 (infrun_thread_ptid_changed, prepare_to_proceed)
4382 (init_wait_for_inferior): Adjust.
4383 (handle_signal_stop): Delete deferred_step_ptid handling.
4385 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4388 * defs.h (sync_quit_force_run): New declaration.
4389 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
4390 * event-top.c (async_sigterm_handler): New declaration.
4391 (async_sigterm_token): New variable.
4392 (async_init_signals): Create also async_sigterm_token.
4393 (async_sigterm_handler): New function.
4394 (sync_quit_force_run): New variable.
4395 (handle_sigterm): Replace quit_force call by other calls.
4396 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
4398 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
4400 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
4401 offset into SPE pseudo registers.
4403 2014-03-18 Pedro Alves <palves@redhat.com>
4406 * inferior.h (print_stop_event): Declare.
4407 * infrun.c (print_stop_event): New, factored out from ...
4408 (normal_stop): ... this.
4409 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
4410 of bpstat_print/print_stack_frame.
4412 2014-03-17 Tom Tromey <tromey@redhat.com>
4414 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
4416 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
4418 * ada-lang.c (decode_constrained_packed_array): Perform a
4419 minimal coercion for reference with coerce_ref instead of
4422 2014-03-17 Tristan Gingold <gingold@adacore.com>
4424 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
4425 (darwin_solib_create_inferior_hook): Emit a warning if version
4428 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
4430 * python/py-value.c (get_field_flag): Cast flag_name argument to
4431 PyObject_GetAttrString to support Python 2.4.
4433 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
4435 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
4436 (Global Maintainers): Remove Jan Kratochvil.
4438 2014-03-14 Pedro Alves <palves@redhat.com>
4440 * inferior.h (terminal_ours_for_output): Rename to ...
4441 (child_terminal_ours_for_output): ... this.
4442 (terminal_save_ours): Rename to ...
4443 (child_terminal_save_ours): ... this.
4444 (terminal_ours): Rename to ...
4445 (child_terminal_ours): ... this.
4446 (terminal_inferior): Rename to ...
4447 (child_terminal_inferior): ... this.
4448 (terminal_init_inferior): Rename to ...
4449 (child_terminal_init_inferior): ... this.
4450 (terminal_init_inferior_with_pgrp): Rename to ...
4451 (child_terminal_init_inferior_with_pgrp): ... this.
4452 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
4453 (child_terminal_init_with_pgrp): ... this.
4454 (terminal_save_ours): Rename to ...
4455 (child_terminal_save_ours): ... this.
4456 (terminal_init_inferior): Rename to ...
4457 (child_terminal_init): ... this. Adjust.
4458 (terminal_inferior): Rename to ...
4459 (child_terminal_inferior): ... this.
4460 (terminal_ours_for_output): Rename to ...
4461 (child_terminal_ours_for_output): ... this. Adjust.
4462 (terminal_ours): Rename to ...
4463 (child_terminal_ours): ... this.
4464 (terminal_ours_1): Rename to ...
4465 (child_terminal_ours_1): ... this. Adjust.
4466 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
4467 * windows-nat.c (do_initial_windows_stuff): Adjust.
4468 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
4469 (gnu_terminal_init): ... this. Adjust.
4470 (gnu_target): Adjust.
4471 * inf-child.c (inf_child_target): Adjust.
4473 2014-03-13 Doug Evans <xdje42@gmail.com>
4476 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
4479 2014-03-13 Doug Evans <xdje42@gmail.com>
4481 * value.c (record_latest_value): Call release_value_or_incref
4482 instead of release_value.
4484 2014-03-13 Pedro Alves <palves@redhat.com>
4486 * procfs.c (procfs_target): Don't override to_shortname,
4487 to_longname or to_doc.
4489 2014-03-13 Pedro Alves <palves@redhat.com>
4491 * inf-child.c (inf_child_open, inf_child_target): Don't mention
4492 Unix in user visible strings.
4494 2014-03-12 Stan Shebs <stan@codesourcery.com>
4496 * gdbtypes.h: Annotate comments for Doxygen, add a page
4497 block comment with some general info.
4499 2014-03-12 Pedro Alves <palves@redhat.com>
4501 * infcmd.c (prepare_execution_command): New function, factored out
4502 from several execution commands.
4503 (run_command_1, continue_command, step_1, jump_command)
4504 (signal_command, until_command, advance_command, finish_command)
4505 (attach_command): Use prepare_execution_command.
4507 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
4509 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
4512 (struct arm_linux_thread_points): Removed.
4513 (struct arm_linux_process_info): New.
4514 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
4515 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
4516 (arm_linux_find_breakpoints_by_tid): Removed.
4517 (struct arch_lwp_info): New.
4518 (arm_linux_find_process_pid): New functions.
4519 (arm_linux_add_process): New functions.
4520 (arm_linux_process_info_get): New functions.
4521 (arm_linux_forget_process): New function.
4522 (arm_linux_get_debug_reg_state): New function.
4523 (struct update_registers_data): New.
4524 (update_registers_callback): New function.
4525 (arm_linux_insert_hw_breakpoint1): Updated.
4526 (arm_linux_remove_hw_breakpoint1): Updated.
4527 (arm_linux_insert_hw_breakpoint): Updated.
4528 (arm_linux_remove_hw_breakpoint): Updated.
4529 (arm_linux_insert_watchpoint): Updated.
4530 (arm_linux_remove_watchpoint): Updated.
4531 (arm_linux_new_thread): Updated.
4532 (arm_linux_prepare_to_resume): New function.
4533 (arm_linux_new_fork): New function.
4534 (_initialize_arm_linux_nat): Updated.
4536 2014-03-12 Pedro Alves <palves@redhat.com>
4538 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
4540 2014-03-12 Tom Tromey <tromey@redhat.com>
4542 * inf-child.c (return_zero): New function.
4543 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
4544 * aix-thread.c (aix_thread_inferior_created): New function.
4545 (aix_thread_attach): Remove.
4546 (init_aix_thread_ops): Don't set to_attach.
4547 (_initialize_aix_thread): Register inferior_created observer.
4548 * corelow.c (init_core_ops): Don't set to_attach or
4550 * exec.c (init_exec_ops): Don't set to_attach or
4552 * infcmd.c (run_command_1): Use find_run_target. Make direct
4554 (attach_command): Use find_attach_target. Make direct target
4556 * record-btrace.c (init_record_btrace_ops): Don't set
4558 * record-full.c (record_full_can_async_p, record_full_is_async_p):
4560 (init_record_full_ops, init_record_full_core_ops): Update. Don't
4561 set to_create_inferior.
4562 * target.c (complete_target_initialization): Add assertion.
4563 (target_create_inferior): Remove.
4564 (find_default_attach, find_default_create_inferior): Remove.
4565 (find_attach_target, find_run_target): New functions.
4566 (find_default_is_async_p, find_default_can_async_p)
4567 (target_supports_non_stop, target_attach): Remove.
4568 (init_dummy_target): Don't set to_create_inferior or
4569 to_supports_non_stop.
4570 * target.h (struct target_ops) <to_attach>: Add comment. Remove
4571 TARGET_DEFAULT_FUNC.
4572 <to_create_inferior>: Add comment.
4573 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
4574 TARGET_DEFAULT_RETURN.
4575 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
4576 (find_attach_target, find_run_target): Declare.
4577 (target_create_inferior): Remove.
4578 (target_has_execution_1): Update comment.
4579 (target_supports_non_stop): Remove.
4580 * target-delegates.c: Rebuild.
4582 2014-03-12 Pedro Alves <palves@redhat.com>
4584 * inf-child.h: Update comment to not mention Unix.
4586 2014-03-12 Pedro Alves <palves@redhat.com>
4588 * inf-child.c: Update top comment to not mention Unix. Add
4589 generic comment describing how this target is meant to be used.
4590 (inf_child_post_attach, inf_child_post_startup_inferior)
4591 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
4594 2014-03-12 Pedro Alves <palves@redhat.com>
4596 * nto-procfs.c: Include inf-child.h.
4597 (procfs_ops): Delete global.
4598 (procfs_can_run): Delete method.
4599 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
4600 target pointer instead of referencing procfs_ops.
4601 (procfs_prepare_to_store): Delete.
4602 (init_procfs_ops): Delete function.
4603 (procfs_target): New function, based on init_procfs_ops, but
4604 inherit inf_child_target.
4605 (_initialize_procfs): Use procfs_target.
4607 2014-03-12 Pedro Alves <palves@redhat.com>
4609 * windows-nat.c: Include inf-child.h.
4610 (windows_ops): Delete global.
4611 (windows_open, windows_prepare_to_store, windows_can_run): Delete
4613 (init_windows_ops): Delete function.
4614 (windows_target): New function, based on init_windows_ops, but
4615 inherit inf_child_target.
4616 (_initialize_windows_nat): Use windows_target. Install x86
4617 specific target methods here.
4619 2014-03-10 Doug Evans <xdje42@gmail.com>
4621 * guile/guile.c (call_initialize_gdb_module): New function.
4622 (initialize_guile): Replace call to scm_init_guile with call to
4625 2014-03-10 Joel Brobecker <brobecker@adacore.com>
4627 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
4628 in call to TYPE_CODE macro.
4630 2014-03-10 Jerome Guitton <guitton@adacore.com>
4632 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
4633 Resolve tagged types to full view.
4635 2014-03-10 Hui Zhu <hui@codesourcery.com>
4637 * target.h (target_insert_breakpoint): Remove "hardware" from its
4640 2014-03-07 Doug Evans <dje@google.com>
4642 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
4644 2014-03-07 Doug Evans <dje@google.com>
4646 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
4647 Remove unused local comp_dir_attr. Assert exactly one of
4648 stub_comp_unit_die, stub_comp_dir is non-NULL.
4650 2014-03-07 Joel Brobecker <brobecker@adacore.com>
4652 * target.h (complete_target_initialization, add_target):
4655 2014-03-07 Pedro Alves <palves@redhat.com>
4657 * go32-nat.c: Include inf-child.h.
4658 (go32_ops): Delete global.
4659 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
4661 (go32_create_inferior): Push the passed in target pointer instead
4662 of referencing go32_ops.
4663 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
4664 (go32_target): New function, based on init_go32_ops, but inherit
4666 (_initialize_go32_nat): Use go32_target. Move parts of
4669 2014-03-06 Joel Brobecker <brobecker@adacore.com>
4671 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
4672 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
4673 SYMBOL_VALUE_ADDRESS.
4674 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
4676 2014-03-06 Yao Qi <yao@codesourcery.com>
4678 * breakpoint.c (get_tracepoint_by_number): Remove argument
4679 optional_p. All callers updated. Adjust comments. Update
4681 * breakpoint.h (get_tracepoint_by_number): Update declaration.
4683 2014-03-06 Yao Qi <yao@codesourcery.com>
4685 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
4686 early if get_number returns zero. Use 'p' instead of 'args'.
4688 2014-03-06 Yao Qi <yao@codesourcery.com>
4690 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
4693 2014-03-06 Yao Qi <yao@codesourcery.com>
4695 PR breakpoints/16508
4696 * tracepoint.c (check_trace_running): New function.
4697 (trace_find_command): Move code to check_trace_running and
4698 call check_trace_running.
4699 (trace_find_pc_command): Likewise.
4700 (trace_find_tracepoint_command): Likewise.
4701 (trace_find_line_command): Likewise.
4702 (trace_find_range_command): Likewise.
4703 * tracepoint.h (check_trace_running): Likewise.
4704 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
4706 2014-03-06 Yao Qi <yao@codesourcery.com>
4708 * target.h (struct target_ops) <to_traceframe_info>: Use
4709 TARGET_DEFAULT_NORETURN (tcomplain ()).
4710 * target-delegates.c: Regenerated.
4712 2014-03-05 Pedro Alves <palves@redhat.com>
4715 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
4716 void. Update comment.
4717 (dcache_xfer_memory): Delete.
4718 (dcache_read_memory_partial): New, based on the read bits of
4720 (dcache_update): Add status parameter. Use ULONGEST for len, and
4721 adjust. Discard cache lines if the reason for the update was
4723 * dcache.h (dcache_xfer_memory): Delete declaration.
4724 (dcache_read_memory_partial): New declaration.
4725 (dcache_update): Update prototype.
4726 * target.c (raw_memory_xfer_partial): Update the dcache here.
4727 (memory_xfer_partial_1): Don't handle dcache writes here.
4729 2014-03-05 Mike Frysinger <vapier@gentoo.org>
4731 * remote-sim.c (gdbsim_load): Add const to prog.
4733 2014-03-03 Tom Tromey <tromey@redhat.com>
4735 * elfread.c (probe_key): Change to bfd_data.
4736 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
4737 now per-BFD, not per-objfile.
4738 * stap-probe.c (stap_probe_destroy): Update comment.
4739 (handle_stap_probe): Allocate on the per-BFD obstack.
4741 2014-03-03 Tom Tromey <tromey@redhat.com>
4743 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
4744 * breakpoint.c (create_longjmp_master_breakpoint): Use
4746 (add_location_to_breakpoint, bkpt_probe_insert_location)
4747 (bkpt_probe_remove_location): Update.
4748 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
4749 * elfread.c (elf_symfile_relocate_probe): Remove.
4750 (elf_probe_fns): Update.
4751 (insert_exception_resume_breakpoint): Change type of "probe"
4752 parameter to bound_probe.
4753 (check_exception_resume): Update.
4754 * objfiles.c (objfile_relocate1): Don't relocate probes.
4755 * probe.c (bound_probe_s): New typedef.
4756 (parse_probes): Use get_probe_address. Set sal's objfile.
4757 (find_probe_by_pc): Return a bound_probe.
4758 (collect_probes): Return a VEC(bound_probe_s).
4759 (compare_probes): Update.
4760 (gen_ui_out_table_header_info): Change type of "probes"
4762 (info_probes_for_ops): Update.
4763 (get_probe_address): New function.
4764 (probe_safe_evaluate_at_pc): Update.
4765 * probe.h (struct probe_ops) <get_probe_address>: New field.
4766 <set_semaphore, clear_semaphore>: Add objfile parameter.
4767 (struct probe) <objfile>: Remove field.
4769 <address>: Update comment.
4770 (struct bound_probe): New.
4771 (find_probe_by_pc): Return a bound_probe.
4772 (get_probe_address): Declare.
4773 * solib-svr4.c (struct probe_and_action) <address>: New field.
4774 (hash_probe_and_action, equal_probe_and_action): Update.
4775 (register_solib_event_probe): Add address parameter.
4776 (solib_event_probe_at): Update.
4777 (svr4_create_probe_breakpoints): Add objfile parameter. Use
4779 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
4780 (stap_get_probe_address): New function.
4781 (stap_can_evaluate_probe_arguments, compute_probe_arg)
4782 (compile_probe_arg): Update.
4783 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
4785 (handle_stap_probe): Don't relocate the probe.
4786 (stap_relocate): Remove.
4787 (stap_gen_info_probes_table_values): Update.
4788 (stap_probe_ops): Remove stap_relocate.
4789 * symfile-debug.c (debug_sym_relocate_probe): Remove.
4790 (debug_sym_probe_fns): Update.
4791 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
4792 * symtab.c (init_sal): Use memset.
4793 * symtab.h (struct symtab_and_line) <objfile>: New field.
4794 * tracepoint.c (start_tracing, stop_tracing): Update.
4796 2014-03-03 Tom Tromey <tromey@redhat.com>
4798 * probe.h (parse_probes, find_probe_by_pc)
4799 (find_probes_in_objfile): Fix comments.
4801 2014-03-02 Doug Evans <xdje42@gmail.com>
4803 * infrun.c (handle_signal_stop): Replace test for
4804 TARGET_WAITKIND_STOPPED with an assert.
4806 2014-03-02 Doug Evans <xdje42@gmail.com>
4808 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
4810 2014-03-02 Doug Evans <xdje42@gmail.com>
4812 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
4814 2014-03-01 Mark Kettenis <kettenis@gnu.org>
4816 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
4818 2014-03-01 Mark Kettenis <kettenis@gnu.org>
4820 * i386obsd-nat.c: Include "obsd-nat.h".
4821 (_initialize_i386obsd_nat): Call obsd_add_target instead of
4823 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
4825 2014-03-01 Mark Kettenis <kettenis@gnu.org>
4827 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
4829 2014-03-01 Mark Kettenis <kettenis@gnu.org>
4831 * mips64obsd-nat.c: Include "obsd-nath".
4832 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
4834 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
4836 2014-03-01 Mark Kettenis <kettenis@gnu.org>
4838 * amd64obsd-nat.c: Include "obsd-nat,h.
4839 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
4841 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
4843 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
4845 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
4846 (find_overload_match): Update call to find_oload_champ.
4847 (find_oload_champ_namespace_loop): Likewise
4849 2014-02-28 Mark Kettenis <kettenis@gnu.org>
4851 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
4853 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
4854 * config/sparc/obsd64.mh: New file.
4855 * sparc64obsd-nat.c: New file.
4857 * obsd-nat.h: New file.
4858 * obsd-nat.c: New file.
4859 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
4860 (ALLDEPFILES): Add obsd-nat.c.
4862 2014-02-28 Tom Tromey <tromey@redhat.com>
4864 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
4865 * cli-out.h (cli_ui_out_impl): Now const.
4866 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
4867 * ui-out.c (struct ui_out) <impl>: Now const.
4868 (default_ui_out_impl): Now const.
4869 (ui_out_new): Make 'impl' parameter const.
4870 * ui-out.h (ui_out_new): Update.
4872 2014-02-27 Mark Kettenis <kettenis@gnu.org>
4874 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
4876 2014-02-27 Mark Kettenis <kettenis@gnu.org>
4878 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
4880 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4882 Additional PR 8882 fix.
4883 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
4885 2014-02-27 Pedro Alves <palves@redhat.com>
4887 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
4890 2014-02-27 Pedro Alves <palves@redhat.com>
4893 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
4894 * nat/linux-waitpid.c: Include string.h.
4895 (status_to_str): Moved here and made extern.
4896 * nat/linux-waitpid.h (status_to_str): New declaration.
4898 2014-02-27 Hui Zhu <hui@codesourcery.com>
4901 * infrun.c (ptid_match): Move ...
4902 * common/ptid.c (ptid_match): ... here.
4903 * inferior.h (ptid_match): Move ...
4904 * common/ptid.h (ptid_match): ... here.
4906 2014-02-27 Mark Kettenis <kettenis@gnu.org>
4908 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
4909 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
4912 2014-02-27 Mark Kettenis <kettenis@gnu.org>
4914 * obsd-tdep.c (obsd_auxv_parse): New function.
4915 (obsd_init_abi): Set auxv_parse.
4917 * gdbarch.sh (auxv_parse): New.
4918 * gdbarch.h: Regenerated.
4919 * gdbarch.c: Regenerated.
4920 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
4922 2014-02-26 Ludovic Courtès <ludo@gnu.org>
4924 * guile/scm-value.c (gdbscm_history_append_x): New function.
4925 (value_functions): Add it.
4927 2014-02-27 Joel Brobecker <brobecker@adacore.com>
4929 * dwarf2read.c (attr_value_as_address): New function.
4930 (dwarf2_find_base_address, read_call_site_scope): Use
4931 attr_value_as_address in place of DW_ADDR.
4932 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
4933 the low and high addresses. Slight rework of the handling
4934 of the high pc being a constant form, and limit it to
4935 DWARF verson 4 or higher.
4936 (dwarf2_record_block_ranges): Likewise.
4937 (read_partial_die): Likewise.
4938 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
4940 2014-02-26 Tom Tromey <tromey@redhat.com>
4942 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
4944 2014-02-26 Tom Tromey <tromey@redhat.com>
4946 * elfread.c (elf_read_minimal_symbols): Return early if
4947 minimal symbols have already been read. Add "ei" parameter.
4948 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
4949 * minsyms.c (prim_record_minimal_symbol_full): Update.
4950 * objfiles.h (struct objstats) <n_minsyms>: Move...
4951 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
4952 * symmisc.c (print_objfile_statistics): Update.
4954 2014-02-26 Tom Tromey <tromey@redhat.com>
4956 * elfread.c (elf_read_minimal_symbols): New function, from
4958 (elf_symfile_read): Call it.
4960 2014-02-26 Tom Tromey <tromey@redhat.com>
4962 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
4963 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
4964 (lookup_minimal_symbol_solib_trampoline)
4965 (lookup_minimal_symbol_by_pc_section_1)
4966 (lookup_minimal_symbol_and_objfile): Update.
4967 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
4968 Don't allocate a minimal symbol if minsyms have already been read.
4969 (build_minimal_symbol_hash_tables): Update.
4970 (install_minimal_symbols): Do nothing if minsyms already read.
4971 Use the per-BFD obstack.
4972 (terminate_minimal_symbol_table): Use the per-BFD obstack.
4973 * objfiles.c (allocate_objfile): Call
4974 terminate_minimal_symbol_table later.
4975 (have_minimal_symbols): Update.
4976 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
4977 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
4978 Move from struct objfile.
4979 <minsyms_read>: New field.
4980 (struct objfile) <msymbols, minimal_symbol_count,
4981 msymbol_hash, msymbol_demangled_hash>: Move.
4982 (ALL_OBJFILE_MSYMBOLS): Update.
4983 * symfile.c (read_symbols): Set minsyms_read.
4984 (reread_symbols): Update.
4985 * symmisc.c (dump_objfile, dump_msymbols): Update.
4987 2014-02-26 Tom Tromey <tromey@redhat.com>
4989 * minsyms.c (msymbols_sort): Remove.
4990 * minsyms.h (msymbols_sort): Remove.
4991 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
4992 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
4993 * elfread.c (elf_symtab_read): Don't add section offsets.
4994 * xcoffread.c (record_minimal_symbol): Don't add section offset
4995 to minimal symbol address.
4996 * somread.c (text_offset, data_offset): Remove.
4997 (som_symtab_read): Don't add section offsets to minimal symbol
4999 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
5000 Don't add section offsets to minimal symbols.
5001 * coffread.c (coff_symtab_read): Don't add section offsets
5002 to minimal symbol addresses.
5003 * machoread.c (macho_symtab_add_minsym): Don't add section offset
5004 to minimal symbol addresses.
5005 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
5006 section offset to minimal symbol addresses.
5007 * mdebugread.c (parse_partial_symbols): Don't add section
5008 offset to minimal symbol addresses.
5009 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
5010 offset to minimal symbol addresses.
5012 2014-02-26 Tom Tromey <tromey@redhat.com>
5014 * ada-lang.c (ada_main_name): Update.
5015 (ada_add_standard_exceptions): Update.
5016 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
5017 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
5018 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
5019 * auxv.c (ld_so_xfer_auxv): Update.
5020 * avr-tdep.c (avr_scan_prologue): Update.
5021 * ax-gdb.c (gen_var_ref): Update.
5022 * blockframe.c (get_pc_function_start)
5023 (find_pc_partial_function_gnu_ifunc): Update.
5024 * breakpoint.c (create_overlay_event_breakpoint)
5025 (create_longjmp_master_breakpoint)
5026 (create_std_terminate_master_breakpoint)
5027 (create_exception_master_breakpoint): Update.
5028 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
5029 * c-valprint.c (c_val_print): Update.
5030 * coff-pe-read.c (add_pe_forwarded_sym): Update.
5031 * common/agent.c (agent_look_up_symbols): Update.
5032 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
5033 * dwarf2loc.c (call_site_to_target_addr): Update.
5034 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
5035 * elfread.c (elf_gnu_ifunc_record_cache)
5036 (elf_gnu_ifunc_resolve_by_got): Update.
5037 * findvar.c (default_read_var_value): Update.
5038 * frame.c (inside_main_func): Update.
5039 * frv-tdep.c (frv_frame_this_id): Update.
5040 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
5041 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
5043 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
5044 (hppa_hpux_find_dummy_bpaddr): Update.
5045 * hppa-tdep.c (hppa_symbol_address): Update.
5046 * infcmd.c (until_next_command): Update.
5047 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
5049 * linespec.c (minsym_found, add_minsym): Update.
5050 * linux-nat.c (get_signo): Update.
5051 * linux-thread-db.c (inferior_has_bug): Update.
5052 * m32c-tdep.c (m32c_return_value)
5053 (m32c_m16c_address_to_pointer): Update.
5054 * m32r-tdep.c (m32r_frame_this_id): Update.
5055 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
5056 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
5057 * maint.c (maintenance_translate_address): Update.
5058 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
5059 (frob_address): New function.
5060 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
5061 frob_address. Rename parameter to "pc_in".
5062 (compare_minimal_symbols, compact_minimal_symbols): Use raw
5064 (find_solib_trampoline_target, minimal_symbol_upper_bound):
5066 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
5067 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
5068 * objc-lang.c (find_objc_msgsend): Update.
5069 * objfiles.c (objfile_relocate1): Update.
5070 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
5071 * p-valprint.c (pascal_val_print): Update.
5072 * parse.c (write_exp_msymbol): Update.
5073 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
5074 (ppc_elfv2_skip_entrypoint): Update.
5075 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
5076 * printcmd.c (build_address_symbolic, msym_info)
5077 (address_info): Update.
5078 * proc-service.c (ps_pglobal_lookup): Update.
5079 * psymtab.c (find_pc_sect_psymtab_closer)
5080 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
5081 Change msymbol parameter to bound_minimal_symbol.
5082 * ravenscar-thread.c (get_running_thread_id): Update.
5083 * remote.c (remote_check_symbols): Update.
5084 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
5086 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
5087 * solib-dsbt.c (lm_base): Update.
5088 * solib-frv.c (lm_base, main_got): Update.
5089 * solib-irix.c (locate_base): Update.
5090 * solib-som.c (som_solib_create_inferior_hook)
5091 (link_map_start): Update.
5092 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
5093 * solib-svr4.c (elf_locate_base, enable_break): Update.
5094 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
5095 (flush_ea_cache): Update.
5096 * stabsread.c (define_symbol, scan_file_globals): Update.
5097 * stack.c (find_frame_funname): Update.
5098 * symfile-debug.c (debug_qf_expand_symtabs_matching)
5099 (debug_qf_find_pc_sect_symtab): Update.
5100 * symfile.c (simple_read_overlay_table)
5101 (simple_overlay_update): Update.
5102 * symfile.h (struct quick_symbol_functions)
5103 <find_pc_sect_symtab>: Change type of msymbol to
5104 bound_minimal_symbol.
5105 * symmisc.c (dump_msymbols): Update.
5106 * symtab.c (find_pc_sect_symtab_via_partial)
5107 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
5108 (search_symbols, print_msymbol_info): Update.
5109 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
5110 (MSYMBOL_VALUE_ADDRESS): Redefine.
5111 (BMSYMBOL_VALUE_ADDRESS): New macro.
5112 * tracepoint.c (scope_info): Update.
5113 * tui/tui-disasm.c (tui_find_disassembly_address)
5114 (tui_get_begin_asm_address): Update.
5115 * valops.c (find_function_in_inferior): Update.
5116 * value.c (value_static_field, value_fn_field): Update.
5118 2014-02-26 Tom Tromey <tromey@redhat.com>
5120 * ada-lang.c (ada_update_initial_language): Update.
5121 (ada_main_name, ada_has_this_exception_support): Update.
5122 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
5123 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
5124 * arm-tdep.c (arm_skip_stub): Update.
5125 * auxv.c (ld_so_xfer_auxv): Update.
5126 * avr-tdep.c (avr_scan_prologue): Update.
5127 * ax-gdb.c (gen_var_ref): Update.
5128 * breakpoint.c (struct breakpoint_objfile_data)
5129 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
5130 type to bound_minimal_symbol.
5131 (create_overlay_event_breakpoint)
5132 (create_longjmp_master_breakpoint)
5133 (create_std_terminate_master_breakpoint)
5134 (create_exception_master_breakpoint): Update.
5135 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
5136 * c-exp.y (classify_name): Update.
5137 * coffread.c (coff_symfile_read): Update.
5138 * common/agent.c (agent_look_up_symbols): Update.
5139 * d-lang.c (d_main_name): Update.
5140 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
5141 * dec-thread.c (enable_dec_thread): Update.
5142 * dwarf2loc.c (call_site_to_target_addr): Update.
5143 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
5144 * eval.c (evaluate_subexp_standard): Update.
5145 * findvar.c (struct minsym_lookup_data) <result>: Change type
5146 to bound_minimal_symbol.
5148 (minsym_lookup_iterator_cb, default_read_var_value): Update.
5149 * frame.c (inside_main_func): Update.
5150 * frv-tdep.c (frv_frame_this_id): Update.
5151 * gcore.c (call_target_sbrk): Update.
5152 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
5153 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
5155 * go-lang.c (go_main_name): Update.
5156 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
5157 (hppa_hpux_find_import_stub_for_addr): Update.
5158 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
5159 Update. Change return type.
5160 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
5162 * jit.c (jit_breakpoint_re_set_internal): Update.
5163 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
5165 * linux-nat.c (get_signo): Update.
5166 * linux-thread-db.c (inferior_has_bug): Update
5167 * m32c-tdep.c (m32c_return_value)
5168 (m32c_m16c_address_to_pointer): Update.
5169 * m32r-tdep.c (m32r_frame_this_id): Update.
5170 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
5171 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
5172 * minsyms.c (lookup_minimal_symbol_internal): Rename to
5173 lookup_minimal_symbol. Change return type.
5174 (lookup_minimal_symbol): Remove.
5175 (lookup_bound_minimal_symbol): Update.
5176 (lookup_minimal_symbol_text): Change return type.
5177 (lookup_minimal_symbol_solib_trampoline): Change return type.
5178 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
5179 (lookup_minimal_symbol_solib_trampoline): Change return type.
5180 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
5181 * objc-lang.c (lookup_objc_class, lookup_child_selector)
5182 (value_nsstring, find_imps): Update.
5183 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
5184 * p-lang.c (pascal_main_name): Update.
5185 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
5186 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
5187 * proc-service.c (ps_pglobal_lookup): Update.
5188 * ravenscar-thread.c (get_running_thread_msymbol): Change
5190 (has_ravenscar_runtime, get_running_thread_id): Update.
5191 * remote.c (remote_check_symbols): Update.
5192 * sol-thread.c (ps_pglobal_lookup): Update.
5193 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
5194 * solib-dsbt.c (lm_base): Update.
5195 * solib-frv.c (lm_base, frv_relocate_section_addresses):
5197 * solib-irix.c (locate_base): Update.
5198 * solib-som.c (som_solib_create_inferior_hook)
5199 (som_solib_desire_dynamic_linker_symbols, link_map_start):
5201 * solib-spu.c (spu_enable_break): Update.
5202 * solib-svr4.c (elf_locate_base, enable_break): Update.
5203 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
5204 (flush_ea_cache): Update.
5205 * stabsread.c (define_symbol): Update.
5206 * symfile.c (simple_read_overlay_table): Update.
5207 * symtab.c (find_pc_sect_line): Update.
5208 * tracepoint.c (scope_info): Update.
5209 * tui-disasm.c (tui_get_begin_asm_address): Update.
5210 * value.c (value_static_field): Update.
5212 2014-02-26 Tom Tromey <tromey@redhat.com>
5214 * minsyms.c (prim_record_minimal_symbol_full): Use
5215 SET_MSYMBOL_VALUE_ADDRESS.
5216 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
5217 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
5218 SET_MSYMBOL_VALUE_ADDRESS.
5219 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
5220 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
5222 2014-02-26 Tom Tromey <tromey@redhat.com>
5224 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
5225 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
5226 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
5227 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
5228 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
5229 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
5230 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
5231 * ada-lang.c (ada_main_name): Update.
5232 (ada_lookup_simple_minsym): Update.
5233 (ada_make_symbol_completion_list): Update.
5234 (ada_add_standard_exceptions): Update.
5235 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
5236 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
5237 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
5238 * arm-tdep.c (skip_prologue_function): Update.
5239 (arm_skip_stack_protector, arm_skip_stub): Update.
5240 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
5241 (arm_wince_skip_main_prologue): Update.
5242 * auxv.c (ld_so_xfer_auxv): Update.
5243 * avr-tdep.c (avr_scan_prologue): Update.
5244 * ax-gdb.c (gen_var_ref): Update.
5245 * block.c (call_site_for_pc): Update.
5246 * blockframe.c (get_pc_function_start): Update.
5247 (find_pc_partial_function_gnu_ifunc): Update.
5248 * breakpoint.c (create_overlay_event_breakpoint): Update.
5249 (create_longjmp_master_breakpoint): Update.
5250 (create_std_terminate_master_breakpoint): Update.
5251 (create_exception_master_breakpoint): Update.
5252 (resolve_sal_pc): Update.
5253 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
5254 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
5256 * c-valprint.c (c_val_print): Update.
5257 * coff-pe-read.c (add_pe_forwarded_sym): Update.
5258 * coffread.c (coff_symfile_read): Update.
5259 * common/agent.c (agent_look_up_symbols): Update.
5260 * dbxread.c (find_stab_function_addr): Update.
5261 (end_psymtab): Update.
5262 * dwarf2loc.c (call_site_to_target_addr): Update.
5263 (func_verify_no_selftailcall): Update.
5264 (tailcall_dump): Update.
5265 (call_site_find_chain_1): Update.
5266 (dwarf_expr_reg_to_entry_parameter): Update.
5267 * elfread.c (elf_gnu_ifunc_record_cache): Update.
5268 (elf_gnu_ifunc_resolve_by_got): Update.
5269 * f-valprint.c (info_common_command): Update.
5270 * findvar.c (read_var_value): Update.
5271 * frame.c (get_prev_frame_1): Update.
5272 (inside_main_func): Update.
5273 * frv-tdep.c (frv_skip_main_prologue): Update.
5274 (frv_frame_this_id): Update.
5275 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
5276 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
5277 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
5278 (gnuv3_skip_trampoline): Update.
5279 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
5280 (hppa64_hpux_in_solib_call_trampoline): Update.
5281 (hppa_hpux_skip_trampoline_code): Update.
5282 (hppa64_hpux_search_dummy_call_sequence): Update.
5283 (hppa_hpux_find_import_stub_for_addr): Update.
5284 (hppa_hpux_find_dummy_bpaddr): Update.
5285 * hppa-tdep.c (hppa_symbol_address)
5286 (hppa_lookup_stub_minimal_symbol): Update.
5287 * i386-tdep.c (i386_skip_main_prologue): Update.
5288 (i386_pe_skip_trampoline_code): Update.
5289 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
5290 * infcall.c (get_function_name): Update.
5291 * infcmd.c (until_next_command): Update.
5292 * jit.c (jit_breakpoint_re_set_internal): Update.
5293 (jit_inferior_init): Update.
5294 * linespec.c (minsym_found): Update.
5295 (add_minsym): Update.
5296 * linux-fork.c (info_checkpoints_command): Update.
5297 * linux-nat.c (get_signo): Update.
5298 * linux-thread-db.c (inferior_has_bug): Update.
5299 * m32c-tdep.c (m32c_return_value): Update.
5300 (m32c_m16c_address_to_pointer): Update.
5301 (m32c_m16c_pointer_to_address): Update.
5302 * m32r-tdep.c (m32r_frame_this_id): Update.
5303 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
5304 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
5305 * maint.c (maintenance_translate_address): Update.
5306 * minsyms.c (add_minsym_to_hash_table): Update.
5307 (add_minsym_to_demangled_hash_table): Update.
5308 (msymbol_objfile): Update.
5309 (lookup_minimal_symbol): Update.
5310 (iterate_over_minimal_symbols): Update.
5311 (lookup_minimal_symbol_text): Update.
5312 (lookup_minimal_symbol_by_pc_name): Update.
5313 (lookup_minimal_symbol_solib_trampoline): Update.
5314 (lookup_minimal_symbol_by_pc_section_1): Update.
5315 (lookup_minimal_symbol_and_objfile): Update.
5316 (prim_record_minimal_symbol_full): Update.
5317 (compare_minimal_symbols): Update.
5318 (compact_minimal_symbols): Update.
5319 (build_minimal_symbol_hash_tables): Update.
5320 (install_minimal_symbols): Update.
5321 (terminate_minimal_symbol_table): Update.
5322 (find_solib_trampoline_target): Update.
5323 (minimal_symbol_upper_bound): Update.
5324 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
5325 * mips-tdep.c (mips_stub_frame_sniffer): Update.
5326 (mips_skip_pic_trampoline_code): Update.
5327 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
5328 * objc-lang.c (selectors_info): Update.
5329 (classes_info): Update.
5330 (find_methods): Update.
5331 (find_imps): Update.
5332 (find_objc_msgsend): Update.
5333 * objfiles.c (objfile_relocate1): Update.
5334 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
5335 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
5336 * p-valprint.c (pascal_val_print): Update.
5337 * parse.c (write_exp_msymbol): Update.
5338 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
5339 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
5340 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
5341 * printcmd.c (build_address_symbolic): Update.
5343 (address_info): Update.
5344 * proc-service.c (ps_pglobal_lookup): Update.
5345 * psymtab.c (find_pc_sect_psymtab_closer): Update.
5346 (find_pc_sect_psymtab): Update.
5347 * python/py-framefilter.c (py_print_frame): Update.
5348 * ravenscar-thread.c (get_running_thread_id): Update.
5349 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
5351 * remote.c (remote_check_symbols): Update.
5352 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
5353 (rs6000_skip_trampoline_code): Update.
5354 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
5355 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
5356 * solib-dsbt.c (lm_base): Update.
5357 * solib-frv.c (lm_base): Update.
5359 * solib-irix.c (locate_base): Update.
5360 * solib-som.c (som_solib_create_inferior_hook): Update.
5361 (som_solib_desire_dynamic_linker_symbols): Update.
5362 (link_map_start): Update.
5363 * solib-spu.c (spu_enable_break): Update.
5364 (ocl_enable_break): Update.
5365 * solib-svr4.c (elf_locate_base): Update.
5366 (enable_break): Update.
5367 * spu-tdep.c (spu_get_overlay_table): Update.
5368 (spu_catch_start): Update.
5369 (flush_ea_cache): Update.
5370 * stabsread.c (define_symbol): Update.
5371 (scan_file_globals): Update.
5372 * stack.c (find_frame_funname): Update.
5373 (frame_info): Update.
5374 * symfile.c (simple_read_overlay_table): Update.
5375 (simple_overlay_update): Update.
5376 * symmisc.c (dump_msymbols): Update.
5377 * symtab.c (fixup_section): Update.
5378 (find_pc_sect_line): Update.
5379 (skip_prologue_sal): Update.
5380 (search_symbols): Update.
5381 (print_msymbol_info): Update.
5382 (rbreak_command): Update.
5383 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
5384 (completion_list_objc_symbol): Update.
5385 (default_make_symbol_completion_list_break_on): Update.
5386 * tracepoint.c (scope_info): Update.
5387 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
5388 (tui_get_begin_asm_address): Update.
5389 * valops.c (find_function_in_inferior): Update.
5390 * value.c (value_static_field): Update.
5391 (value_fn_field): Update.
5393 2014-02-26 Tom Tromey <tromey@redhat.com>
5395 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
5396 bound minimal symbols. Move code that knows about minsym
5398 * minsyms.c (minimal_symbol_upper_bound): ... here. New
5400 * minsyms.h (minimal_symbol_upper_bound): Declare.
5401 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
5402 minimal_symbol_upper_bound.
5404 2014-02-27 Joel Brobecker <brobecker@adacore.com>
5406 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
5407 Use the type's name if its basic type does not have a tag.
5409 2014-02-27 Joel Brobecker <brobecker@adacore.com>
5411 * dwarf2read.c (read_subrange_type): Add comment.
5413 2014-02-27 Joel Brobecker <brobecker@adacore.com>
5415 * dwarf2read.c (update_enumeration_type_from_children): New
5416 function, mostly extracted from process_structure_scope.
5417 (read_enumeration_type): Call update_enumeration_type_from_children.
5418 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
5419 and flag_flag_enum fields.
5421 2014-02-26 Pedro Alves <palves@redhat.com>
5423 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
5424 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
5425 to_xfer_partial method.
5427 2014-02-26 Pedro Alves <palves@redhat.com>
5429 * target.c (complete_target_initialization): Don't install
5430 default_xfer_partial as to_xfer_partial hook.
5432 (update_current_target): Don't INHERIT nor de_fault
5433 deprecated_xfer_memory. Delete de_fault macro.
5434 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
5435 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
5436 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
5439 2014-02-26 Pedro Alves <palves@redhat.com>
5441 * go32-nat.c (my_write_child): New function.
5442 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
5443 (go32_xfer_partial): New function.
5444 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
5445 Instead install a to_xfer_partial hook.
5447 2014-02-26 Pedro Alves <palves@redhat.com>
5449 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
5450 to_xfer_partial helper. Rewrite.
5451 (procfs_xfer_partial): New function.
5452 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
5453 Install a to_xfer_partial hook.
5455 2014-02-26 Pedro Alves <palves@redhat.com>
5457 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
5458 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
5459 (m32r_xfer_partial): New function.
5460 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
5461 Install a to_xfer_partial hook.
5463 2014-02-26 Pedro Alves <palves@redhat.com>
5465 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
5467 (mips_xfer_partial): New function.
5468 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
5469 hook. Install a to_xfer_partial hook.
5471 2014-02-26 Joel Brobecker <brobecker@adacore.com>
5473 * gdbtypes.h (create_array_type_with_stride): Add declaration.
5474 * gdbtypes.c (create_array_type_with_stride): New function,
5475 renaming create_array_type, but with an added parameter
5476 called "bit_stride".
5477 (create_array_type): Re-implement using
5478 create_array_type_with_stride.
5479 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
5480 and DW_AT_bit_stride attributes.
5482 2014-02-26 Pedro Alves <palves@redhat.com>
5484 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
5485 task-specific breakpoints.
5487 2014-02-25 Pedro Alves <palves@redhat.com>
5489 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
5490 handling of object == TARGET_OBJECT_UNWIND_TABLE.
5492 2014-02-25 Stan Shebs <stan@codesourcery.com>
5494 * defs.h: Annotate comments for Doxygen.
5496 2014-02-25 Tom Tromey <tromey@redhat.com>
5498 * target.h (target_ignore): Don't declare.
5499 * target.c (target_ignore): Remove.
5501 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
5504 * auto-load.c (auto_load_objfile_script_1): Change filename to
5507 2014-02-25 Joel Brobecker <brobecker@adacore.com>
5509 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
5510 documentation. Adjust prototype to match the target_ops
5511 to_xfer_partial method. Adjust implementation accordingly.
5513 2014-02-25 Hui Zhu <hui@codesourcery.com>
5515 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
5518 2014-02-25 Kevin Buettner <kevinb@redhat.com>
5520 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
5521 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
5522 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
5523 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
5524 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
5525 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
5526 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
5527 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
5529 (rl78_register_type): Use a data pointer type for SP and
5530 new pseudo registers mentioned above. Use a 16 bit integer
5531 type for all other register pairs.
5532 (rl78_register_name, rl78_g10_register_name): Update for
5533 new pseudo registers.
5534 (rl78_pseudo_register_read): Likewise.
5535 (rl78_pseudo_register_write): Likewise.
5536 (rl78_dwarf_reg_to_regnum): Return register numbers representing
5537 to the newly added pseudo registers.
5539 2014-02-24 Doug Evans <dje@google.com>
5541 * value.c (record_latest_value): Fix comment.
5542 * printcmd.c (print_command_1): Remove code to handle -1 return from
5543 record_latest_value.
5545 2014-02-24 Pedro Alves <palves@redhat.com>
5547 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
5548 deprecated_xfer_memory hook.
5549 (procfs_xfer_partial): Call procfs_xfer_memory instead
5550 of the deprecated_xfer_memory target hook.
5551 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
5554 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
5556 * windows-nat.c (windows_xfer_shared_libraries): Return
5557 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
5558 requested object is TARGET_OBJECT_LIBRARIES.
5560 2014-02-24 Yao Qi <yao@codesourcery.com>
5562 * target.h (enum target_xfer_status)
5563 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
5564 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
5566 * corefile.c (memory_error_message): User updated.
5567 * exec.c (section_table_read_available_memory): Likewise.
5568 * record-btrace.c (record_btrace_xfer_partial): Likewise.
5569 * target.c (target_xfer_status_to_string): Likewise.
5570 (raw_memory_xfer_partial): Likewise.
5571 (memory_xfer_partial_1, target_xfer_partial): Likewise.
5572 * valops.c (read_value_memory): Likewise.
5573 * exec.h: Update comments.
5575 2014-02-24 Yao Qi <yao@codesourcery.com>
5577 * target.c (target_xfer_status_to_string): Rename argument err
5579 * target.h (target_xfer_status_to_string): Update declaration.
5580 Replace target_xfer_error_to_string with
5581 target_xfer_status_to_string in comment.
5583 2014-02-24 Yao Qi <yao@codesourcery.com>
5585 * mips-linux-nat.c (super_close): Update its type.
5586 (mips_linux_close): Pass 'self' to super_close.
5588 2014-02-24 Yao Qi <yao@codesourcery.com>
5590 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
5591 * corefile.c (read_memory): Adjusted.
5592 * target.c (target_write_with_progress): Adjusted.
5594 2014-02-23 Yao Qi <yao@codesourcery.com>
5598 2013-10-25 Yao Qi <yao@codesourcery.com>
5600 * remote.c (remote_traceframe_info): Return early if
5601 traceframe is not selected.
5603 2013-07-19 Yao Qi <yao@codesourcery.com>
5605 * target.c (update_current_target): Change the default action
5606 of 'to_traceframe_info' from tcomplain to return_zero.
5607 * target.h (struct target_ops) <to_traceframe_info>: Add more
5610 2014-02-23 Yao Qi <yao@codesourcery.com>
5612 * valops.c (read_value_memory): Rewrite it. Call
5613 target_xfer_partial in a loop.
5614 * exec.h (section_table_available_memory): Remove declaration.
5615 Move comments to ...
5616 * exec.c (section_table_available_memory): ... here. Make it
5619 2014-02-23 Yao Qi <yao@codesourcery.com>
5621 * exec.c (section_table_read_available_memory): New function.
5622 * exec.h (section_table_read_available_memory): Declare.
5623 * ctf.c (ctf_xfer_partial): Call
5624 section_table_read_available_memory.
5625 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
5627 2014-02-23 Yao Qi <yao@codesourcery.com>
5629 * ctf.c (ctf_xfer_partial): Move code to ...
5630 * exec.c (exec_read_partial_read_only): ... it. New function.
5631 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
5632 * tracefile.c: Include "exec.h".
5633 * exec.h (exec_read_partial_read_only): Declare.
5635 2014-02-23 Yao Qi <yao@codesourcery.com>
5637 * tracefile-tfile.c (tfile_has_all_memory): Remove.
5638 (tfile_has_memory): Remove.
5639 (init_tfile_ops): Don't set fields to_has_all_memory and
5640 to_has_memory of tfile_ops.
5641 * tracefile.c (tracefile_has_all_memory): New function.
5642 (tracefile_has_memory): New function.
5643 (init_tracefile_ops): Initialize fields to_has_all_memory and
5644 to_has_memory of 'ops'.
5646 2014-02-23 Yao Qi <yao@codesourcery.com>
5648 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
5649 (ctf_thread_alive, ctf_get_trace_status): Remove.
5650 (init_ctf_ops): Don't set some fields of ctf_ops. Call
5652 * tracefile-tfile.c (tfile_get_trace_status): Remove.
5653 (tfile_has_stack, tfile_has_registers): Remove.
5654 (tfile_thread_alive): Remove.
5655 (init_tfile_ops): Don't set some fields of tfile_ops. Call
5657 * tracefile.c (tracefile_has_stack): New function.
5658 (tracefile_has_registers): New function.
5659 (tracefile_thread_alive): New function.
5660 (tracefile_get_trace_status): New function.
5661 (init_tracefile_ops): New function.
5662 * tracefile.h (init_tracefile_ops): Declare.
5664 2014-02-23 Yao Qi <yao@codesourcery.com>
5666 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
5667 (O_LARGEFILE): Likewise.
5668 (tfile_ops): Likewise.
5669 (TRACE_HEADER_SIZE): Likewise.
5670 (trace_fd, trace_frames_offset, cur_offset): Likewise.
5671 (cur_data_size): Likewise.
5672 (tfile_read, tfile_open, tfile_interp_line): Likewise.
5673 (tfile_close, tfile_files_info): Likewise.
5674 (tfile_get_trace_status): Likewise.
5675 (tfile_get_tracepoint_status): Likewise.
5676 (tfile_get_traceframe_address): Likewise.
5677 (tfile_trace_find, match_blocktype): Likewise.
5678 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
5679 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
5680 (tfile_get_trace_state_variable_value): Likewise.
5681 (tfile_has_all_memory, tfile_has_memory): Likewise.
5682 (tfile_has_stack, tfile_has_registers): Likewise.
5683 (tfile_thread_alive, build_traceframe_info): Likewise.
5684 (tfile_traceframe_info, init_tfile_ops): Likewise.
5685 (_initialize_tracepoint): Don't call init_tfile_ops
5686 and add_target_with_completer.
5687 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
5688 exec.h, completer.h and filenames.h.
5689 (_initialize_tracefile_tfile): New function.
5691 2014-02-23 Yao Qi <yao@codesourcery.com>
5693 * Makefile.in (REMOTE_OBS): Append tracefile.o and
5695 (HFILES_NO_SRCDIR): Add tracefile.h.
5696 * ctf.c: Include "tracefile.h".
5697 * tracefile.h: New file.
5698 * tracefile.c: New file
5699 * tracefile-tfile.c: New file.
5700 * tracepoint.c: Include "tracefile.h".
5701 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
5702 (stop_reason_names): Add const.
5703 (trace_file_writer_xfree): Move it to tracefile.c.
5704 (trace_save, trace_save_command, trace_save_tfile): Likewise.
5705 (trace_save_ctf): Likewise.
5706 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
5707 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
5708 (tfile_write_header, tfile_write_regblock_type): Likewise.
5709 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
5710 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
5711 (tfile_write_raw_data, tfile_end): Likewise.
5712 (tfile_trace_file_writer_new): Likewise.
5713 (free_uploaded_tp): Make it extern.
5714 (free_uploaded_tsv): Make it extern.
5715 (_initialize_tracepoint): Move code to register command 'tsave'
5717 * tracepoint.h (stop_reason_names): Declare.
5718 (struct trace_frame_write_ops): Move it to tracefile.h.
5719 (struct trace_file_write_ops): Likewise.
5720 (struct trace_file_writer): Likewise.
5721 (free_uploaded_tsvs, free_uploaded_tps): Declare.
5723 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5726 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
5728 (get_cores_used_by_process): New parameter num_cores, use it.
5729 (linux_xfer_osdata_processes): Pass num_cores to it.
5730 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
5733 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
5735 * target.c (memory_xfer_partial): Fix length arg in call to
5736 breakpoint_xfer_memory.
5738 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
5741 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
5742 number comes after the + or - signs. Adjust length of register
5743 name to be extracted.
5745 2014-02-20 Tom Tromey <tromey@redhat.com>
5747 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
5748 (ada_varobj_ops): Mark "extern".
5750 2014-02-20 Tom Tromey <tromey@redhat.com>
5752 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
5754 2014-02-20 Doug Evans <xdje42@gmail.com>
5756 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
5757 All callers updated.
5758 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
5759 All callers updated.
5760 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
5761 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
5763 2014-02-20 lin zuojian <manjian2006@gmail.com>
5764 Joel Brobecker <brobecker@adacore.com>
5765 Doug Evans <xdje42@gmail.com>
5768 * dwarf2read.c (struct die_info): New member in_process.
5769 (reset_die_in_process): New function.
5770 (process_die): Set it at the start, reset when returning.
5771 (inherit_abstract_dies): Only call process_die if origin_child_die
5772 not already being processed.
5774 2014-02-20 Joel Brobecker <brobecker@adacore.com>
5776 * windows-nat.c (handle_unload_dll): Add function documentation.
5777 (do_initial_windows_stuff): Add comment explaining why we wait
5778 until after inferior initialization has finished before
5779 processing all DLLs.
5781 2014-02-20 Joel Brobecker <brobecker@adacore.com>
5783 * windows-nat.c (get_module_name): Delete.
5784 (windows_get_exec_module_filename): New function, mostly
5785 inspired from get_module_name.
5786 (windows_pid_to_exec_file): Replace call to get_module_name
5787 by call to windows_get_exec_module_filename.
5789 2014-02-20 Joel Brobecker <brobecker@adacore.com>
5791 * windows-nat.c (handle_load_dll): Rewrite this function's
5792 introductory comment. Remove code using get_module_name
5793 to get the DLL's name.
5795 2014-02-20 Joel Brobecker <brobecker@adacore.com>
5797 * windows-nat.c (get_windows_debug_event): Ignore
5798 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
5799 if windows_initialization_done == 0.
5800 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
5801 Adjust implementation to always load all DLLs.
5802 (do_initial_windows_stuff): Replace call to
5803 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
5805 2014-02-20 Joel Brobecker <brobecker@adacore.com>
5807 * windows-nat.c (_initialize_windows_nat): Deprecate the
5808 "dll-symbols" command. Turn the "add-shared-symbol-files"
5809 and "assf" aliases into commands, and deprecate them as well.
5810 * NEWS: Add entry explaining that "dll-symbols" and its two
5811 aliases are now deprecated.
5813 2014-02-20 Joel Brobecker <brobecker@adacore.com>
5815 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
5816 new-line in debug string. Remove trailing spaces.
5818 2014-02-19 Stan Shebs <stan@codesourcery.com>
5820 * darwin-nat.c (darwin_xfer_partial): Fix return type.
5822 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
5824 * NEWS: Add entry for the new feature
5825 * python/py-value.c (valpy_binop): Call value_x_binop for struct
5828 2014-02-19 Stan Shebs <stan@codesourcery.com>
5830 * MAINTAINERS: List Yao Qi as nios2 maintainer.
5832 2014-02-19 Pedro Alves <palves@redhat.com>
5834 * common/ptid.h (struct ptid): Mention that process_stratum
5835 targets should prefer ptid.lwp.
5837 2014-02-19 Pedro Alves <palves@redhat.com>
5839 * remote.c (remote_thread_alive, write_ptid, read_ptid)
5840 (read_ptid, remote_newthread_step, remote_threads_extra_info)
5841 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
5842 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
5843 store remote thread ids rather than ptid.tid.
5844 (_initialize_remote): Adjust.
5846 2014-02-19 Tom Tromey <tromey@redhat.com>
5848 * target.c (target_get_unwinder): Rewrite.
5849 (target_get_tailcall_unwinder): Rewrite.
5850 * record-btrace.c (record_btrace_to_get_unwinder): New function.
5851 (record_btrace_to_get_tailcall_unwinder): New function.
5852 (init_record_btrace_ops): Update.
5853 * target.h (struct target_ops) <to_get_unwinder,
5854 to_get_tailcall_unwinder>: Now function pointers. Use
5855 TARGET_DEFAULT_RETURN.
5857 2014-02-19 Tom Tromey <tromey@redhat.com>
5859 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
5861 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
5863 2014-02-19 Tom Tromey <tromey@redhat.com>
5865 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
5867 * target-delegates.c: Rebuild.
5868 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
5869 TARGET_DEFAULT_FUNC.
5870 * target.c (default_target_decr_pc_after_break): Rename from
5871 forward_target_decr_pc_after_break. Simplify.
5872 (target_decr_pc_after_break): Rely on delegation.
5874 2014-02-19 Tom Tromey <tromey@redhat.com>
5876 * target.c (update_current_target): Do not INHERIT to_doc or
5877 to_magic. Do not de_fault to_open or to_close.
5879 2014-02-19 Tom Tromey <tromey@redhat.com>
5881 * gcore.h (objfile_find_memory_regions): Declare.
5882 * gcore.c (objfile_find_memory_regions): No longer static. Add
5884 (_initialize_gcore): Don't call exec_set_find_memory_regions.
5885 * exec.c: Include gcore.h.
5886 (exec_set_find_memory_regions): Remove.
5887 (exec_find_memory_regions): Remove.
5888 (exec_do_find_memory_regions): Remove.
5889 (init_exec_ops): Update.
5890 * defs.h (exec_set_find_memory_regions): Remove.
5892 2014-02-19 Tom Tromey <tromey@redhat.com>
5894 * target-delegates.c: Rebuild.
5895 * target.h (struct target_ops) <to_extra_thread_info,
5896 to_thread_name, to_pid_to_exec_file, to_get_section_table,
5897 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
5898 not 0, in TARGET_DEFAULT_RETURN.
5900 2014-02-19 Tom Tromey <tromey@redhat.com>
5902 * target.c (complete_target_initialization): Remove casts. Use
5903 return_zero_has_execution.
5904 (return_zero): Add "ignore" argument.
5905 (return_zero_has_execution): New function.
5906 (init_dummy_target): Remove casts. Use
5907 return_zero_has_execution.
5909 2014-02-19 Tom Tromey <tromey@redhat.com>
5911 * target.c (update_current_target): Update comments. Do not
5914 2014-02-19 Tom Tromey <tromey@redhat.com>
5916 * arm-linux-nat.c (arm_linux_read_description): Delegate when
5918 * corelow.c (core_read_description): Delegate when needed.
5919 * remote.c (remote_read_description): Delegate when needed.
5920 * target-delegates.c: Rebuild.
5921 * target.c (target_read_description): Rewrite.
5922 * target.h (struct target_ops) <to_read_description>: Update
5923 comment. Use TARGET_DEFAULT_RETURN.
5925 2014-02-19 Tom Tromey <tromey@redhat.com>
5927 * target-delegates.c: Rebuild.
5928 * target.c (update_current_target): Don't inherit or default
5930 (find_default_run_target): Check against delegate_can_run.
5931 * target.h (struct target_ops) <to_can_run>: Use
5932 TARGET_DEFAULT_RETURN.
5934 2014-02-19 Tom Tromey <tromey@redhat.com>
5936 * target-delegates.c: Rebuild.
5937 * target.c (target_disconnect): Unconditionally delegate.
5938 * target.h (struct target_ops) <to_disconnect>: Use
5939 TARGET_DEFAULT_NORETURN.
5941 2014-02-19 Tom Tromey <tromey@redhat.com>
5943 * record.c (record_stop): Unconditionally delegate.
5944 * target-delegates.c: Rebuild.
5945 * target.c (target_stop_recording): Unconditionally delegate.
5946 * target.h (struct target_ops) <to_stop_recording>: Use
5947 TARGET_DEFAULT_IGNORE.
5949 2014-02-19 Tom Tromey <tromey@redhat.com>
5951 * target-delegates.c: Rebuild.
5952 * target.c (target_enable_btrace): Unconditionally delegate.
5953 * target.h (struct target_ops) <to_enable_btrace>: Use
5954 TARGET_DEFAULT_NORETURN.
5956 2014-02-19 Tom Tromey <tromey@redhat.com>
5958 * target-delegates.c: Rebuild.
5959 * target.c (target_read_btrace): Unconditionally delegate.
5960 * target.h (struct target_ops) <to_read_btrace>: Use
5961 TARGET_DEFAULT_NORETURN.
5963 2014-02-19 Tom Tromey <tromey@redhat.com>
5965 * target-delegates.c: Rebuild.
5966 * target.c (target_teardown_btrace): Unconditionally delegate.
5967 * target.h (struct target_ops) <to_teardown_btrace>: Use
5968 TARGET_DEFAULT_NORETURN.
5970 2014-02-19 Tom Tromey <tromey@redhat.com>
5972 * target-delegates.c: Rebuild.
5973 * target.c (target_disable_btrace): Unconditionally delegate.
5974 * target.h (struct target_ops) <to_disable_btrace>: Use
5975 TARGET_DEFAULT_NORETURN.
5977 2014-02-19 Tom Tromey <tromey@redhat.com>
5979 * target-delegates.c: Rebuild.
5980 * target.c (default_search_memory): New function.
5981 (simple_search_memory): Update comment.
5982 (target_search_memory): Unconditionally delegate.
5983 * target.h (struct target_ops) <to_search_memory>: Use
5984 TARGET_DEFAULT_FUNC.
5986 2014-02-19 Tom Tromey <tromey@redhat.com>
5988 * auxv.c (default_auxv_parse): No longer static.
5989 (target_auxv_parse): Unconditionally delegate.
5990 * auxv.h (default_auxv_parse): Declare.
5991 * target-delegates.c: Rebuild.
5992 * target.c: Include auxv.h.
5993 * target.h (struct target_ops) <to_auxv_parse>: Use
5994 TARGET_DEFAULT_FUNC.
5996 2014-02-19 Tom Tromey <tromey@redhat.com>
5998 * target-delegates.c: Rebuild.
5999 * target.c (target_memory_map): Unconditionally delegate.
6000 * target.h (struct target_ops) <to_memory_map>: Use
6001 TARGET_DEFAULT_RETURN.
6003 2014-02-19 Tom Tromey <tromey@redhat.com>
6005 * target-delegates.c: Rebuild.
6006 * target.c (target_thread_alive): Unconditionally delegate.
6007 * target.h (struct target_ops) <to_thread_alive>: Use
6008 TARGET_DEFAULT_RETURN.
6010 2014-02-19 Tom Tromey <tromey@redhat.com>
6012 * target-delegates.c: Rebuild.
6013 * target.c (target_save_record): Unconditionally delegate.
6014 * target.h (struct target_ops) <to_save_record>: Use
6015 TARGET_DEFAULT_NORETURN.
6017 2014-02-19 Tom Tromey <tromey@redhat.com>
6019 * target-delegates.c: Rebuild.
6020 * target.c (target_delete_record): Unconditionally delegate.
6021 * target.h (struct target_ops) <to_delete_record>: Use
6022 TARGET_DEFAULT_NORETURN.
6024 2014-02-19 Tom Tromey <tromey@redhat.com>
6026 * target-delegates.c: Rebuild.
6027 * target.c (target_record_is_replaying): Unconditionally
6029 * target.h (struct target_ops) <to_record_is_replaying>: Use
6030 TARGET_DEFAULT_RETURN.
6032 2014-02-19 Tom Tromey <tromey@redhat.com>
6034 * target-delegates.c: Rebuild.
6035 * target.c (target_goto_record_begin): Unconditionally delegate.
6036 * target.h (struct target_ops) <to_goto_record_begin>: Use
6037 TARGET_DEFAULT_NORETURN.
6039 2014-02-19 Tom Tromey <tromey@redhat.com>
6041 * target-delegates.c: Rebuild.
6042 * target.c (target_goto_record_end): Unconditionally delegate.
6043 * target.h (struct target_ops) <to_goto_record_end>: Use
6044 TARGET_DEFAULT_NORETURN.
6046 2014-02-19 Tom Tromey <tromey@redhat.com>
6048 * target-delegates.c: Rebuild.
6049 * target.c (target_goto_record): Unconditionally delegate.
6050 * target.h (struct target_ops) <to_goto_record>: Use
6051 TARGET_DEFAULT_NORETURN.
6053 2014-02-19 Tom Tromey <tromey@redhat.com>
6055 * target-delegates.c: Rebuild.
6056 * target.c (target_insn_history): Unconditionally delegate.
6057 * target.h (struct target_ops) <to_insn_history>: Use
6058 TARGET_DEFAULT_NORETURN.
6060 2014-02-19 Tom Tromey <tromey@redhat.com>
6062 * target-delegates.c: Rebuild.
6063 * target.c (target_insn_history_from): Unconditionally delegate.
6064 * target.h (struct target_ops) <to_insn_history_from>: Use
6065 TARGET_DEFAULT_NORETURN.
6067 2014-02-19 Tom Tromey <tromey@redhat.com>
6069 * target-delegates.c: Rebuild.
6070 * target.c (target_insn_history_range): Unconditionally delegate.
6071 * target.h (struct target_ops) <to_insn_history_range>: Use
6072 TARGET_DEFAULT_NORETURN.
6074 2014-02-19 Tom Tromey <tromey@redhat.com>
6076 * target-delegates.c: Rebuild.
6077 * target.c (target_call_history): Unconditionally delegate.
6078 * target.h (struct target_ops) <to_call_history>: Use
6079 TARGET_DEFAULT_NORETURN.
6081 2014-02-19 Tom Tromey <tromey@redhat.com>
6083 * target-delegates.c: Rebuild.
6084 * target.c (target_call_history_from): Unconditionally delegate.
6085 * target.h (struct target_ops) <to_call_history_from>: Use
6086 TARGET_DEFAULT_NORETURN.
6088 2014-02-19 Tom Tromey <tromey@redhat.com>
6090 * target-delegates.c: Rebuild.
6091 * target.c (target_call_history_range): Unconditionally delegate.
6092 * target.h (struct target_ops) <to_call_history_range>: Use
6093 TARGET_DEFAULT_NORETURN.
6095 2014-02-19 Tom Tromey <tromey@redhat.com>
6097 * target-delegates.c: Rebuild.
6098 * target.c (target_verify_memory): Unconditionally delegate.
6099 * target.h (struct target_ops) <to_verify_memory>: Use
6100 TARGET_DEFAULT_NORETURN.
6102 2014-02-19 Tom Tromey <tromey@redhat.com>
6104 * target-delegates.c: Rebuild.
6105 * target.c (target_core_of_thread): Unconditionally delegate.
6106 * target.h (struct target_ops) <to_core_of_thread>: Use
6107 TARGET_DEFAULT_RETURN.
6109 2014-02-19 Tom Tromey <tromey@redhat.com>
6111 * target-delegates.c: Rebuild.
6112 * target.c (target_flash_done): Unconditionally delegate.
6113 * target.h (struct target_ops) <to_flash_done>: Use
6114 TARGET_DEFAULT_NORETURN.
6116 2014-02-19 Tom Tromey <tromey@redhat.com>
6118 * target-delegates.c: Rebuild.
6119 * target.c (target_flash_erase): Unconditionally delegate.
6120 * target.h (struct target_ops) <to_flash_erase>: Use
6121 TARGET_DEFAULT_NORETURN.
6123 2014-02-19 Tom Tromey <tromey@redhat.com>
6125 * target-delegates.c: Rebuild.
6126 * target.c (target_get_section_table): Unconditionally delegate.
6127 * target.h (struct target_ops) <to_get_section_table>: Use
6128 TARGET_DEFAULT_RETURN.
6130 2014-02-19 Tom Tromey <tromey@redhat.com>
6132 * target-delegates.c: Rebuild.
6133 * target.c (target_pid_to_str): Unconditionally delegate.
6134 (init_dummy_target): Don't initialize to_pid_to_str.
6135 (default_pid_to_str): Rename from dummy_pid_to_str.
6136 * target.h (struct target_ops) <to_pid_to_str>: Use
6137 TARGET_DEFAULT_FUNC.
6139 2014-02-19 Tom Tromey <tromey@redhat.com>
6141 * target-delegates.c: Rebuild.
6142 * target.c (target_find_new_threads): Unconditionally delegate.
6143 * target.h (struct target_ops) <to_find_new_threads>: Use
6144 TARGET_DEFAULT_RETURN.
6146 2014-02-19 Tom Tromey <tromey@redhat.com>
6148 * target-delegates.c: Rebuild.
6149 * target.c (target_program_signals): Unconditionally delegate.
6150 * target.h (struct target_ops) <to_program_signals>: Use
6151 TARGET_DEFAULT_IGNORE.
6153 2014-02-19 Tom Tromey <tromey@redhat.com>
6155 * target-delegates.c: Rebuild.
6156 * target.c (target_pass_signals): Unconditionally delegate.
6157 * target.h (struct target_ops) <to_pass_signals>: Use
6158 TARGET_DEFAULT_IGNORE.
6160 2014-02-19 Tom Tromey <tromey@redhat.com>
6162 * target-delegates.c: Rebuild.
6163 * target.c (default_mourn_inferior): New function.
6164 (target_mourn_inferior): Unconditionally delegate.
6165 * target.h (struct target_ops) <to_mourn_inferior>: Use
6166 TARGET_DEFAULT_FUNC.
6168 2014-02-19 Tom Tromey <tromey@redhat.com>
6170 * target-delegates.c: Rebuild.
6171 * target.c (default_follow_fork): New function.
6172 (target_follow_fork): Unconditionally delegate.
6173 * target.h (struct target_ops) <to_follow_fork>: Use
6174 TARGET_DEFAULT_FUNC.
6176 2014-02-19 Tom Tromey <tromey@redhat.com>
6178 * target-delegates.c: Rebuild.
6179 * target.c (target_kill): Unconditionally delegate.
6180 * target.h (struct target_ops) <to_kill>: Use
6181 TARGET_DEFAULT_NORETURN.
6183 2014-02-19 Tom Tromey <tromey@redhat.com>
6185 * target-delegates.c: Rebuild.
6186 * target.c (target_masked_watch_num_registers): Unconditionally
6188 * target.h (struct target_ops) <to_masked_watch_num_registers>:
6189 Use TARGET_DEFAULT_RETURN.
6191 2014-02-19 Tom Tromey <tromey@redhat.com>
6193 * target-delegates.c: Rebuild.
6194 * target.c (target_remove_mask_watchpoint): Unconditionally
6196 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
6197 TARGET_DEFAULT_RETURN.
6199 2014-02-19 Tom Tromey <tromey@redhat.com>
6201 * target-delegates.c: Rebuild.
6202 * target.c (target_insert_mask_watchpoint): Unconditionally
6204 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
6205 TARGET_DEFAULT_RETURN.
6207 2014-02-19 Tom Tromey <tromey@redhat.com>
6209 * target-delegates.c: Rebuild.
6210 * target.c (target_ranged_break_num_registers): Unconditionally
6212 * target.h (struct target_ops) <to_ranged_break_num_registers>:
6213 Use TARGET_DEFAULT_RETURN.
6215 2014-02-19 Tom Tromey <tromey@redhat.com>
6217 * target-delegates.c: Rebuild.
6218 * target.c (target_fetch_registers): Unconditionally delegate.
6219 * target.h (struct target_ops) <to_fetch_registers>: Use
6220 TARGET_DEFAULT_NORETURN.
6222 2014-02-19 Tom Tromey <tromey@redhat.com>
6224 * target-delegates.c: Rebuild.
6225 * target.c (update_current_target): Don't inherit or default
6227 * target.h (struct target_ops) <to_stop>: Use
6228 TARGET_DEFAULT_IGNORE.
6230 2014-02-19 Tom Tromey <tromey@redhat.com>
6232 * target-delegates.c: Rebuild.
6233 * target.c (update_current_target): Don't inherit or default
6234 to_can_run_breakpoint_commands.
6235 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
6236 Use TARGET_DEFAULT_RETURN.
6238 2014-02-19 Tom Tromey <tromey@redhat.com>
6240 * target-delegates.c: Rebuild.
6241 * target.c (update_current_target): Don't inherit or default
6242 to_supports_evaluation_of_breakpoint_conditions.
6243 * target.h (struct target_ops)
6244 <to_supports_evaluation_of_breakpoint_conditions>: Use
6245 TARGET_DEFAULT_RETURN.
6247 2014-02-19 Tom Tromey <tromey@redhat.com>
6249 * target-delegates.c: Rebuild.
6250 * target.c (update_current_target): Don't inherit or default
6251 to_augmented_libraries_svr4_read.
6252 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
6253 Use TARGET_DEFAULT_RETURN.
6255 2014-02-19 Tom Tromey <tromey@redhat.com>
6257 * target-delegates.c: Rebuild.
6258 * target.c (update_current_target): Don't inherit or default
6260 * target.h (struct target_ops) <to_can_use_agent>: Use
6261 TARGET_DEFAULT_RETURN.
6263 2014-02-19 Tom Tromey <tromey@redhat.com>
6265 * target-delegates.c: Rebuild.
6266 * target.c (update_current_target): Don't inherit or default
6268 * target.h (struct target_ops) <to_use_agent>: Use
6269 TARGET_DEFAULT_NORETURN.
6271 2014-02-19 Tom Tromey <tromey@redhat.com>
6273 * target-delegates.c: Rebuild.
6274 * target.c (update_current_target): Don't inherit or default
6276 (return_null): Remove.
6277 * target.h (struct target_ops) <to_traceframe_info>: Use
6278 TARGET_DEFAULT_RETURN.
6280 2014-02-19 Tom Tromey <tromey@redhat.com>
6282 * target-delegates.c: Rebuild.
6283 * target.c (update_current_target): Don't inherit or default
6284 to_static_tracepoint_markers_by_strid.
6285 * target.h (struct target_ops)
6286 <to_static_tracepoint_markers_by_strid>: Use
6287 TARGET_DEFAULT_NORETURN.
6289 2014-02-19 Tom Tromey <tromey@redhat.com>
6291 * target-delegates.c: Rebuild.
6292 * target.c (update_current_target): Don't inherit or default
6293 to_static_tracepoint_marker_at.
6294 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
6295 Use TARGET_DEFAULT_RETURN.
6297 2014-02-19 Tom Tromey <tromey@redhat.com>
6299 * target-delegates.c: Rebuild.
6300 * target.c (update_current_target): Don't inherit or default
6302 * target.h (struct target_ops) <to_set_permissions>: Use
6303 TARGET_DEFAULT_IGNORE.
6305 2014-02-19 Tom Tromey <tromey@redhat.com>
6307 * target-delegates.c: Rebuild.
6308 * target.c (update_current_target): Don't inherit or default
6310 * target.h (struct target_ops) <to_get_tib_address>: Use
6311 TARGET_DEFAULT_NORETURN.
6313 2014-02-19 Tom Tromey <tromey@redhat.com>
6315 * target-delegates.c: Rebuild.
6316 * target.c (update_current_target): Don't inherit or default
6318 * target.h (struct target_ops) <to_set_trace_notes>: Use
6319 TARGET_DEFAULT_RETURN.
6321 2014-02-19 Tom Tromey <tromey@redhat.com>
6323 * target-delegates.c: Rebuild.
6324 * target.c (update_current_target): Don't initialize
6325 to_set_trace_buffer_size.
6326 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
6327 TARGET_DEFAULT_IGNORE.
6329 2014-02-19 Tom Tromey <tromey@redhat.com>
6331 * target-delegates.c: Rebuild.
6332 * target.c (update_current_target): Don't inherit or default
6333 to_set_circular_trace_buffer.
6334 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
6335 TARGET_DEFAULT_IGNORE.
6337 2014-02-19 Tom Tromey <tromey@redhat.com>
6339 * target-delegates.c: Rebuild.
6340 * target.c (update_current_target): Don't inherit or default
6341 to_set_disconnected_tracing.
6342 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
6343 TARGET_DEFAULT_IGNORE.
6345 2014-02-19 Tom Tromey <tromey@redhat.com>
6347 * target-delegates.c: Rebuild.
6348 * target.c (update_current_target): Don't inherit or default
6349 to_get_min_fast_tracepoint_insn_len.
6350 (return_minus_one): Remove.
6351 * target.h (struct target_ops)
6352 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
6354 2014-02-19 Tom Tromey <tromey@redhat.com>
6356 * target-delegates.c: Rebuild.
6357 * target.c (update_current_target): Don't inherit or default
6358 to_get_raw_trace_data.
6359 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
6360 TARGET_DEFAULT_NORETURN.
6362 2014-02-19 Tom Tromey <tromey@redhat.com>
6364 * target-delegates.c: Rebuild.
6365 * target.c (update_current_target): Don't inherit or default
6366 to_upload_trace_state_variables.
6367 * target.h (struct target_ops) <to_upload_trace_state_variables>:
6368 Use TARGET_DEFAULT_RETURN.
6370 2014-02-19 Tom Tromey <tromey@redhat.com>
6372 * target-delegates.c: Rebuild.
6373 * target.c (update_current_target): Don't inherit or default
6374 to_upload_tracepoints.
6375 * target.h (struct target_ops) <to_upload_tracepoints>: Use
6376 TARGET_DEFAULT_RETURN.
6378 2014-02-19 Tom Tromey <tromey@redhat.com>
6380 * target-delegates.c: Rebuild.
6381 * target.c (update_current_target): Don't inherit or default
6383 * target.h (struct target_ops) <to_save_trace_data>: Use
6384 TARGET_DEFAULT_NORETURN.
6386 2014-02-19 Tom Tromey <tromey@redhat.com>
6388 * target-delegates.c: Rebuild.
6389 * target.c (update_current_target): Don't inherit or default
6390 to_get_trace_state_variable_value.
6391 * target.h (struct target_ops)
6392 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
6394 2014-02-19 Tom Tromey <tromey@redhat.com>
6396 * target-delegates.c: Rebuild.
6397 * target.c (update_current_target): Don't inherit or default
6399 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
6401 2014-02-19 Tom Tromey <tromey@redhat.com>
6403 * target-delegates.c: Rebuild.
6404 * target.c (update_current_target): Don't inherit or default
6406 * target.h (struct target_ops) <to_trace_stop>: Use
6407 TARGET_DEFAULT_NORETURN.
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_tracepoint_status.
6414 * target.h (struct target_ops) <to_get_tracepoint_status>: 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_get_trace_status.
6422 * target.h (struct target_ops) <to_get_trace_status>: Use
6423 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
6430 * target.h (struct target_ops) <to_trace_start>: Use
6431 TARGET_DEFAULT_NORETURN.
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
6437 to_trace_set_readonly_regions.
6438 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
6439 Use 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_disable_tracepoint.
6446 * target.h (struct target_ops) <to_disable_tracepoint>: Use
6447 TARGET_DEFAULT_NORETURN.
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
6453 to_enable_tracepoint.
6454 * target.h (struct target_ops) <to_enable_tracepoint>: Use
6455 TARGET_DEFAULT_NORETURN.
6457 2014-02-19 Tom Tromey <tromey@redhat.com>
6459 * target-delegates.c: Rebuild.
6460 * target.c (update_current_target): Don't inherit or default
6461 to_download_trace_state_variable.
6462 * target.h (struct target_ops) <to_download_trace_state_variable>:
6463 Use TARGET_DEFAULT_NORETURN.
6465 2014-02-19 Tom Tromey <tromey@redhat.com>
6467 * target-delegates.c: Rebuild.
6468 * target.c (update_current_target): Don't inherit or default
6469 to_can_download_tracepoint.
6470 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
6471 TARGET_DEFAULT_RETURN.
6473 2014-02-19 Tom Tromey <tromey@redhat.com>
6475 * target-delegates.c: Rebuild.
6476 * target.c (update_current_target): Don't inherit or default
6477 to_download_tracepoint.
6478 * target.h (struct target_ops) <to_download_tracepoint>: Use
6479 TARGET_DEFAULT_NORETURN.
6481 2014-02-19 Tom Tromey <tromey@redhat.com>
6483 * target-delegates.c: Rebuild.
6484 * target.c (update_current_target): Don't inherit or default
6486 * target.h (struct target_ops) <to_trace_init>: Use
6487 TARGET_DEFAULT_RETURN.
6489 2014-02-19 Tom Tromey <tromey@redhat.com>
6491 * target-delegates.c: Rebuild.
6492 * target.c (update_current_target): Don't inherit or default
6493 to_supports_string_tracing.
6494 * target.h (struct target_ops) <to_supports_string_tracing>: Use
6495 TARGET_DEFAULT_RETURN.
6497 2014-02-19 Tom Tromey <tromey@redhat.com>
6499 * target-delegates.c: Rebuild.
6500 * target.c (update_current_target): Don't inherit or default
6501 to_supports_enable_disable_tracepoint.
6502 * target.h (struct target_ops)
6503 <to_supports_enable_disable_tracepoint>: Use
6504 TARGET_DEFAULT_RETURN.
6506 2014-02-19 Tom Tromey <tromey@redhat.com>
6508 * target-delegates.c: Rebuild.
6509 * target.c (update_current_target): Don't inherit or default
6510 to_supports_multi_process.
6511 * target.h (struct target_ops) <to_supports_multi_process>: Use
6512 TARGET_DEFAULT_RETURN.
6514 2014-02-19 Tom Tromey <tromey@redhat.com>
6516 * target-delegates.c: Rebuild.
6517 * target.c (update_current_target): Don't inherit or default
6518 to_get_ada_task_ptid.
6519 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
6520 TARGET_DEFAULT_FUNC.
6522 2014-02-19 Tom Tromey <tromey@redhat.com>
6524 * target-delegates.c: Rebuild.
6525 * target.c (update_current_target): Don't inherit or default
6526 to_thread_architecture.
6527 * target.h (struct target_ops) <to_thread_architecture>: Use
6528 TARGET_DEFAULT_FUNC.
6530 2014-02-19 Tom Tromey <tromey@redhat.com>
6532 * target-delegates.c: Rebuild.
6533 * target.c (update_current_target): Don't inherit or default
6534 to_execution_direction.
6535 * target.h (struct target_ops) <to_execution_direction>: Use
6536 TARGET_DEFAULT_FUNC.
6538 2014-02-19 Tom Tromey <tromey@redhat.com>
6540 * target-delegates.c: Rebuild.
6541 * target.c (update_current_target): Don't inherit or default
6542 to_can_execute_reverse.
6543 * target.h (struct target_ops) <to_can_execute_reverse>: Use
6544 TARGET_DEFAULT_RETURN.
6545 (target_can_execute_reverse): Unconditionally delegate.
6547 2014-02-19 Tom Tromey <tromey@redhat.com>
6549 * target-delegates.c: Rebuild.
6550 * target.c (update_current_target): Don't inherit or default
6552 (dummy_goto_bookmark): Remove.
6553 (init_dummy_target): Don't inherit or default to_goto_bookmark.
6554 * target.h (struct target_ops) <to_goto_bookmark>: Use
6555 TARGET_DEFAULT_NORETURN.
6557 2014-02-19 Tom Tromey <tromey@redhat.com>
6559 * target-delegates.c: Rebuild.
6560 * target.c (update_current_target): Don't inherit or default
6562 (dummy_get_bookmark): Remove.
6563 (init_dummy_target): Don't inherit or default to_get_bookmark.
6564 * target.h (struct target_ops) <to_get_bookmark>: Use
6565 TARGET_DEFAULT_NORETURN
6567 2014-02-19 Tom Tromey <tromey@redhat.com>
6569 * target-delegates.c: Rebuild.
6570 * target.c (update_current_target): Don't inherit or default
6571 to_make_corefile_notes.
6572 (init_dummy_target): Don't initialize to_make_corefile_notes.
6573 * target.h (struct target_ops) <to_make_corefile_notes>: Use
6574 TARGET_DEFAULT_FUNC.
6576 2014-02-19 Tom Tromey <tromey@redhat.com>
6578 * target-delegates.c: Rebuild.
6579 * target.c (update_current_target): Don't inherit or default
6580 to_find_memory_regions.
6581 (init_dummy_target): Don't initialize to_find_memory_regions.
6582 * target.h (struct target_ops) <to_find_memory_regions>: 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
6590 * target.h (struct target_ops) <to_log_command>: Use
6591 TARGET_DEFAULT_IGNORE.
6592 (target_log_command): Unconditionally delegate.
6594 2014-02-19 Tom Tromey <tromey@redhat.com>
6596 * target-delegates.c: Rebuild.
6597 * target.c (update_current_target): Don't inherit or default
6598 to_pid_to_exec_file.
6599 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
6600 TARGET_DEFAULT_RETURN.
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 (target_thread_name): Unconditionally delegate.
6608 * target.h (struct target_ops) <to_thread_name>: Use
6609 TARGET_DEFAULT_RETURN.
6611 2014-02-19 Tom Tromey <tromey@redhat.com>
6613 * target-delegates.c: Rebuild.
6614 * target.c (update_current_target): Don't inherit or default
6615 to_extra_thread_info.
6616 * target.h (struct target_ops) <to_extra_thread_info>: Use
6617 TARGET_DEFAULT_RETURN.
6619 2014-02-19 Tom Tromey <tromey@redhat.com>
6621 * target-delegates.c: Rebuild.
6622 * target.c (update_current_target): Don't inherit or default
6624 * target.h (struct target_ops) <to_has_exited>: Use
6625 TARGET_DEFAULT_RETURN..
6627 2014-02-19 Tom Tromey <tromey@redhat.com>
6629 * target-delegates.c: Rebuild.
6630 * target.c (update_current_target): Don't inherit or default
6631 to_set_syscall_catchpoint.
6632 (return_one): Remove.
6633 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
6634 TARGET_DEFAULT_RETURN.
6636 2014-02-19 Tom Tromey <tromey@redhat.com>
6638 * target-delegates.c: Rebuild.
6639 * target.c (update_current_target): Don't inherit or default
6640 to_insert_exec_catchpoint.
6641 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
6642 TARGET_DEFAULT_RETURN.
6644 2014-01-08 Tom Tromey <tromey@redhat.com>
6646 * target-delegates.c: Rebuild.
6647 * target.c (update_current_target): Don't inherit or default
6648 to_insert_exec_catchpoint.
6649 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
6650 TARGET_DEFAULT_RETURN.
6652 2014-02-19 Tom Tromey <tromey@redhat.com>
6654 * target-delegates.c: Rebuild.
6655 * target.c (update_current_target): Don't inherit or default
6656 to_remove_vfork_catchpoint.
6657 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
6658 TARGET_DEFAULT_RETURN.
6660 2014-02-19 Tom Tromey <tromey@redhat.com>
6662 * target-delegates.c: Rebuild.
6663 * target.c (update_current_target): Don't inherit or default
6664 to_insert_vfork_catchpoint.
6665 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
6666 TARGET_DEFAULT_RETURN.
6668 2014-02-19 Tom Tromey <tromey@redhat.com>
6670 * target-delegates.c: Rebuild.
6671 * target.c (update_current_target): Don't inherit or default
6672 to_remove_fork_catchpoint.
6673 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
6674 TARGET_DEFAULT_RETURN.
6676 2014-02-19 Tom Tromey <tromey@redhat.com>
6678 * target-delegates.c: Rebuild.
6679 * target.c (update_current_target): Don't inherit or default
6680 to_insert_fork_catchpoint.
6681 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
6682 TARGET_DEFAULT_RETURN.
6684 2014-02-19 Tom Tromey <tromey@redhat.com>
6686 * target-delegates.c: Rebuild.
6687 * target.c (update_current_target): Don't inherit or default
6688 to_post_startup_inferior.
6689 * target.h (struct target_ops) <to_post_startup_inferior>: Use
6690 TARGET_DEFAULT_IGNORE.
6692 2014-02-19 Tom Tromey <tromey@redhat.com>
6694 * target-delegates.c: Rebuild.
6695 * target.c (update_current_target): Don't inherit or default
6697 * target.h (struct target_ops) <to_load>: Use
6698 TARGET_DEFAULT_NORETURN.
6700 2014-02-19 Tom Tromey <tromey@redhat.com>
6702 * target-delegates.c: Rebuild.
6703 * target.c (update_current_target): Don't inherit or default
6705 * target.h (struct target_ops) <to_terminal_info>: Use
6706 TARGET_DEFAULT_FUNC.
6708 2014-02-19 Tom Tromey <tromey@redhat.com>
6710 * target-delegates.c: Rebuild.
6711 * target.c (update_current_target): Don't inherit or default
6712 to_terminal_save_ours.
6713 * target.h (struct target_ops) <to_terminal_save_ours>: Use
6714 TARGET_DEFAULT_IGNORE.
6716 2014-02-19 Tom Tromey <tromey@redhat.com>
6718 * target-delegates.c: Rebuild.
6719 * target.c (update_current_target): Don't inherit or default
6721 * target.h (struct target_ops) <to_terminal_ours>: Use
6722 TARGET_DEFAULT_IGNORE.
6724 2014-02-19 Tom Tromey <tromey@redhat.com>
6726 * target-delegates.c: Rebuild.
6727 * target.c (update_current_target): Don't inherit or default
6728 to_terminal_ours_for_output.
6729 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
6730 TARGET_DEFAULT_IGNORE.
6732 2014-02-19 Tom Tromey <tromey@redhat.com>
6734 * target-delegates.c: Rebuild.
6735 * target.c (update_current_target): Don't inherit or default
6736 to_terminal_inferior.
6737 * target.h (struct target_ops) <to_terminal_inferior>: Use
6738 TARGET_DEFAULT_IGNORE.
6740 2014-02-19 Tom Tromey <tromey@redhat.com>
6742 * target-delegates.c: Rebuild.
6743 * target.c (update_current_target): Don't inherit or default
6745 * target.h (struct target_ops) <to_terminal_init>: Use
6746 TARGET_DEFAULT_IGNORE.
6748 2014-02-19 Tom Tromey <tromey@redhat.com>
6750 * target-delegates.c: Rebuild.
6751 * target.c (update_current_target): Don't inherit or default
6752 to_can_accel_watchpoint_condition.
6753 * target.h (struct target_ops)
6754 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
6756 2014-02-19 Tom Tromey <tromey@redhat.com>
6758 * target-delegates.c: Rebuild.
6759 * target.c (update_current_target): Don't inherit or default
6760 to_region_ok_for_hw_watchpoint.
6761 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
6762 Use TARGET_DEFAULT_FUNC.
6764 2014-02-19 Tom Tromey <tromey@redhat.com>
6766 * target-delegates.c: Rebuild.
6767 * target.c (update_current_target): Don't inherit or default
6768 to_watchpoint_addr_within_range.
6769 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
6770 Use TARGET_DEFAULT_FUNC.
6772 2014-02-19 Tom Tromey <tromey@redhat.com>
6774 * target-delegates.c: Rebuild.
6775 * target.c (update_current_target): Don't inherit or default
6776 to_remove_watchpoint.
6777 * target.h (struct target_ops) <to_remove_watchpoint>: Use
6778 TARGET_DEFAULT_NORETURN.
6780 2014-02-19 Tom Tromey <tromey@redhat.com>
6782 * target-delegates.c: Rebuild.
6783 * target.c (update_current_target): Don't inherit or default
6784 to_insert_watchpoint.
6785 * target.h (struct target_ops) <to_insert_watchpoint>: Use
6786 TARGET_DEFAULT_RETURN.
6788 2014-02-19 Tom Tromey <tromey@redhat.com>
6790 * target-delegates.c: Rebuild.
6791 * target.c (update_current_target): Don't inherit or default
6792 to_remove_hw_breakpoint.
6793 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
6794 TARGET_DEFAULT_RETURN.
6796 2014-02-19 Tom Tromey <tromey@redhat.com>
6798 * target-delegates.c: Rebuild.
6799 * target.c (update_current_target): Don't inherit or default
6800 to_insert_hw_breakpoint.
6801 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
6802 TARGET_DEFAULT_RETURN.
6804 2014-02-19 Tom Tromey <tromey@redhat.com>
6806 * target-delegates.c: Rebuild.
6807 * target.c (update_current_target): Don't inherit or default
6808 to_can_use_hw_breakpoint.
6809 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
6810 TARGET_DEFAULT_RETURN.
6812 2014-02-19 Tom Tromey <tromey@redhat.com>
6814 * target-delegates.c: Rebuild.
6815 * target.c (update_current_target): Don't inherit or default
6817 * target.h (struct target_ops) <to_files_info>: Use
6818 TARGET_DEFAULT_IGNORE.
6820 2014-02-19 Tom Tromey <tromey@redhat.com>
6822 * target-delegates.c: Rebuild.
6823 * target.c (update_current_target): Don't inherit or default
6825 * target.h (struct target_ops) <to_store>: Use
6826 TARGET_DEFAULT_NORETURN.
6828 2014-02-19 Tom Tromey <tromey@redhat.com>
6830 * target-delegates.c: Rebuild.
6831 * target.c (update_current_target): Don't inherit or default
6833 * target.h (struct target_ops) <to_post_attach>: Use
6834 TARGET_DEFAULT_IGNORE.
6836 2014-02-19 Tom Tromey <tromey@redhat.com>
6838 * target-delegates.c: Rebuild.
6839 * target.c (update_current_target): Don't inherit or default
6841 (default_rcmd): New function.
6842 (do_monitor_command): Unconditionally delegate.
6843 * target.h (struct target_ops) <to_rmcd>: Use
6844 TARGET_DEFAULT_FUNC.
6846 2014-02-19 Tom Tromey <tromey@redhat.com>
6848 * target-delegates.c: Rebuild.
6849 * target.c (init_dummy_target): Don't initialize to_attach.
6850 (target_attach): Unconditionally delegate.
6851 * target.h (struct target_ops) <to_attach>: Use
6852 TARGET_DEFAULT_FUNC.
6854 2014-02-19 Tom Tromey <tromey@redhat.com>
6856 * target-delegates.c: Rebuild.
6857 * target.c (target_detach): Unconditionally delegate.
6858 (init_dummy_target): Don't initialize to_detach.
6859 * target.h (struct target_ops) <to_detach>: Use
6860 TARGET_DEFAULT_IGNORE.
6862 2014-02-19 Tom Tromey <tromey@redhat.com>
6864 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
6866 (target_augmented_libraries_svr4_read): Add argument.
6867 * target.c (update_current_target): Update.
6868 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
6871 2014-02-19 Tom Tromey <tromey@redhat.com>
6873 * target.h (struct target_ops) <to_call_history_range>: Add
6875 * target.c (target_call_history_range): Add argument.
6876 * record-btrace.c (record_btrace_call_history_range): Add 'self'
6878 (record_btrace_call_history_from): Update.
6880 2014-02-19 Tom Tromey <tromey@redhat.com>
6882 * target.h (struct target_ops) <to_call_history_from>: Add
6884 * target.c (target_call_history_from): Add argument.
6885 * record-btrace.c (record_btrace_call_history_from): Add 'self'
6888 2014-02-19 Tom Tromey <tromey@redhat.com>
6890 * target.h (struct target_ops) <to_call_history>: Add argument.
6891 * target.c (target_call_history): Add argument.
6892 * record-btrace.c (record_btrace_call_history): Add 'self'
6895 2014-02-19 Tom Tromey <tromey@redhat.com>
6897 * target.h (struct target_ops) <to_insn_history_range>: Add
6899 * target.c (target_insn_history_range): Add argument.
6900 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
6902 (record_btrace_insn_history_from): Update.
6904 2014-02-19 Tom Tromey <tromey@redhat.com>
6906 * target.h (struct target_ops) <to_insn_history_from>: Add
6908 * target.c (target_insn_history_from): Add argument.
6909 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
6912 2014-02-19 Tom Tromey <tromey@redhat.com>
6914 * target.h (struct target_ops) <to_insn_history>: Add argument.
6915 * target.c (target_insn_history): Add argument.
6916 * record-btrace.c (record_btrace_insn_history): Add 'self'
6919 2014-02-19 Tom Tromey <tromey@redhat.com>
6921 * target.h (struct target_ops) <to_goto_record>: Add argument.
6922 * target.c (target_goto_record): Add argument.
6923 * record-full.c (record_full_goto): Add 'self' argument.
6924 * record-btrace.c (record_btrace_goto): Add 'self' argument.
6926 2014-02-19 Tom Tromey <tromey@redhat.com>
6928 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
6929 * target.c (target_goto_record_end): Add argument.
6930 * record-full.c (record_full_goto_end): Add 'self' argument.
6931 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
6933 2014-02-19 Tom Tromey <tromey@redhat.com>
6935 * target.h (struct target_ops) <to_goto_record_begin>: Add
6937 * target.c (target_goto_record_begin): Add argument.
6938 * record-full.c (record_full_goto_begin): Add 'self' argument.
6939 * record-btrace.c (record_btrace_goto_begin): Add 'self'
6942 2014-02-19 Tom Tromey <tromey@redhat.com>
6944 * target.h (struct target_ops) <to_record_is_replaying>: Add
6946 * target.c (target_record_is_replaying): Add argument.
6947 * record-full.c (record_full_is_replaying): Add 'self' argument.
6948 * record-btrace.c (record_btrace_is_replaying): Add 'self'
6950 (record_btrace_xfer_partial, record_btrace_store_registers)
6951 (record_btrace_prepare_to_store, record_btrace_resume)
6952 (record_btrace_wait, record_btrace_decr_pc_after_break)
6953 (record_btrace_find_new_threads, record_btrace_thread_alive):
6956 2014-02-19 Tom Tromey <tromey@redhat.com>
6958 * target.h (struct target_ops) <to_delete_record>: Add argument.
6959 * target.c (target_delete_record): Add argument.
6960 * record-full.c (record_full_delete): Add 'self' argument.
6962 2014-02-19 Tom Tromey <tromey@redhat.com>
6964 * target.h (struct target_ops) <to_save_record>: Add argument.
6965 * target.c (target_save_record): Add argument.
6966 * record-full.c (record_full_save): Add 'self' argument.
6967 (record_full_save): Add 'self' argument.
6969 2014-02-19 Tom Tromey <tromey@redhat.com>
6971 * target.h (struct target_ops) <to_info_record>: Add argument.
6972 * target.c (target_info_record): Add argument.
6973 * record.c (info_record_command): Add argument.
6974 * record-full.c (record_full_info): Add 'self' argument.
6975 * record-btrace.c (record_btrace_info): Add 'self' argument.
6977 2014-02-19 Tom Tromey <tromey@redhat.com>
6979 * target.h (struct target_ops) <to_stop_recording>: Add argument.
6980 * target.c (target_stop_recording): Add argument.
6981 * record.c (record_stop): Add argument.
6982 * record-btrace.c (record_btrace_stop_recording): Add 'self'
6985 2014-02-19 Tom Tromey <tromey@redhat.com>
6987 * target.h (struct target_ops) <to_read_btrace>: Add argument.
6988 * target.c (struct target_ops) <to_read_btrace>: Add argument.
6989 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
6991 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
6992 (_initialize_amd64_linux_nat): Use it.
6993 * i386-linux-nat.c (i386_linux_read_btrace): New function.
6994 (_initialize_i386_linux_nat): Use it.
6996 2014-02-19 Tom Tromey <tromey@redhat.com>
6998 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
6999 * target.c (target_teardown_btrace): Add argument.
7000 * remote.c (remote_teardown_btrace): Add 'self' argument.
7001 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
7003 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
7006 2014-02-19 Tom Tromey <tromey@redhat.com>
7008 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
7009 * target.c (target_disable_btrace): Add argument.
7010 * remote.c (remote_disable_btrace): Add 'self' argument.
7011 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
7013 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
7016 2014-02-19 Tom Tromey <tromey@redhat.com>
7018 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
7019 * target.c (target_enable_btrace): Add argument.
7020 * remote.c (remote_enable_btrace): Add 'self' argument.
7021 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
7023 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
7026 2014-02-19 Tom Tromey <tromey@redhat.com>
7028 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
7029 (target_can_use_agent): Add argument.
7030 * target.c (update_current_target): Update.
7031 * remote.c (remote_can_use_agent): Add 'self' argument.
7032 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
7034 2014-02-19 Tom Tromey <tromey@redhat.com>
7036 * target.h (struct target_ops) <to_use_agent>: Add argument.
7037 (target_use_agent): Add argument.
7038 * target.c (update_current_target): Update.
7039 * remote.c (remote_use_agent): Add 'self' argument.
7040 * inf-child.c (inf_child_use_agent): Add 'self' argument.
7042 2014-02-19 Tom Tromey <tromey@redhat.com>
7044 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
7045 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
7046 (target_traceframe_info): Add argument.
7047 * target.c (update_current_target): Update.
7048 * remote.c (remote_traceframe_info): Add 'self' argument.
7049 * ctf.c (ctf_traceframe_info): Add 'self' argument.
7051 2014-02-19 Tom Tromey <tromey@redhat.com>
7053 * target.h (target_static_tracepoint_markers_by_strid): Add
7055 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
7057 * target.c (update_current_target): Update.
7058 * remote.c (struct target_ops)
7059 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
7060 * linux-nat.c (struct target_ops)
7061 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
7063 2014-02-19 Tom Tromey <tromey@redhat.com>
7065 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
7067 (target_static_tracepoint_marker_at): Add argument.
7068 * target.c (update_current_target): Update.
7069 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
7072 2014-02-19 Tom Tromey <tromey@redhat.com>
7074 * target.h (struct target_ops) <to_set_permissions>: Add argument.
7075 (target_set_permissions): Add argument.
7076 * target.c (update_current_target): Update.
7077 * remote.c (remote_set_permissions): Add 'self' argument.
7078 (remote_start_remote): Update.
7080 2014-02-19 Tom Tromey <tromey@redhat.com>
7082 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
7083 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
7084 (target_get_tib_address): Add argument.
7085 * target.c (update_current_target): Update.
7086 * remote.c (remote_get_tib_address): Add 'self' argument.
7088 2014-02-19 Tom Tromey <tromey@redhat.com>
7090 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
7091 (target_set_trace_notes): Add argument.
7092 * target.c (update_current_target): Update.
7093 * remote.c (remote_set_trace_notes): Add 'self' argument.
7095 2014-02-19 Tom Tromey <tromey@redhat.com>
7097 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
7099 (target_set_trace_buffer_size): Add argument.
7100 * target.c (update_current_target): Update.
7101 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
7103 2014-02-19 Tom Tromey <tromey@redhat.com>
7105 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
7107 (target_set_circular_trace_buffer): Add argument.
7108 * target.c (update_current_target): Update.
7109 * remote.c (remote_set_circular_trace_buffer): Add 'self'
7112 2014-02-19 Tom Tromey <tromey@redhat.com>
7114 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
7116 (target_set_disconnected_tracing): Add argument.
7117 * target.c (update_current_target): Update.
7118 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
7120 2014-02-19 Tom Tromey <tromey@redhat.com>
7122 * target.h (struct target_ops)
7123 <to_get_min_fast_tracepoint_insn_len>: Add argument.
7124 (target_get_min_fast_tracepoint_insn_len): Add argument.
7125 * target.c (update_current_target): Update.
7126 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
7129 2014-02-19 Tom Tromey <tromey@redhat.com>
7131 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
7133 (target_get_raw_trace_data): Add argument.
7134 * target.c (update_current_target): Update.
7135 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
7137 2014-02-19 Tom Tromey <tromey@redhat.com>
7139 * target.h (struct target_ops) <to_upload_trace_state_variables>:
7141 (target_upload_trace_state_variables): Add argument.
7142 * target.c (update_current_target): Update.
7143 * remote.c (remote_upload_trace_state_variables): Add 'self'
7145 (remote_start_remote): Update.
7147 2014-02-19 Tom Tromey <tromey@redhat.com>
7149 * target.h (struct target_ops) <to_upload_tracepoints>: Add
7151 (target_upload_tracepoints): Add argument.
7152 * target.c (update_current_target): Update.
7153 * remote.c (remote_upload_tracepoints): Add 'self' argument.
7154 (remote_start_remote): Update.
7156 2014-02-19 Tom Tromey <tromey@redhat.com>
7158 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
7159 (target_save_trace_data): Add argument.
7160 * target.c (update_current_target): Update.
7161 * remote.c (remote_save_trace_data): Add 'self' argument.
7163 2014-02-19 Tom Tromey <tromey@redhat.com>
7165 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
7167 * target.h (struct target_ops)
7168 <to_get_trace_state_variable_value>: Add argument.
7169 (target_get_trace_state_variable_value): Add argument.
7170 * target.c (update_current_target): Update.
7171 * remote.c (remote_get_trace_state_variable_value): Add 'self'
7173 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
7175 2014-02-19 Tom Tromey <tromey@redhat.com>
7177 * tracepoint.c (tfile_trace_find): Add 'self' argument.
7178 * target.h (struct target_ops) <to_trace_find>: Add argument.
7179 (target_trace_find): Add argument.
7180 * target.c (update_current_target): Update.
7181 * remote.c (remote_trace_find): Add 'self' argument.
7182 * ctf.c (ctf_trace_find): Add 'self' argument.
7184 2014-02-19 Tom Tromey <tromey@redhat.com>
7186 * target.h (struct target_ops) <to_trace_stop>: Add argument.
7187 (target_trace_stop): Add argument.
7188 * target.c (update_current_target): Update.
7189 * remote.c (remote_trace_stop): Add 'self' argument.
7191 2014-02-19 Tom Tromey <tromey@redhat.com>
7193 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
7194 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
7196 (target_get_tracepoint_status): Add argument.
7197 * target.c (update_current_target): Update.
7198 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
7200 2014-02-19 Tom Tromey <tromey@redhat.com>
7202 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
7203 * target.h (struct target_ops) <to_get_trace_status>: Add
7205 (target_get_trace_status): Add argument.
7206 * target.c (update_current_target): Update.
7207 * remote.c (remote_get_trace_status): Add 'self' argument.
7208 (remote_start_remote, remote_can_download_tracepoint): Update.
7209 * ctf.c (ctf_get_trace_status): Add 'self' argument.
7211 2014-02-19 Tom Tromey <tromey@redhat.com>
7213 * target.h (struct target_ops) <to_trace_start>: Add argument.
7214 (target_trace_start): Add argument.
7215 * target.c (update_current_target): Update.
7216 * remote.c (remote_trace_start): Add 'self' argument.
7218 2014-02-19 Tom Tromey <tromey@redhat.com>
7220 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
7222 (target_trace_set_readonly_regions): Add argument.
7223 * target.c (update_current_target): Update.
7224 * remote.c (remote_trace_set_readonly_regions): Add 'self'
7227 2014-02-19 Tom Tromey <tromey@redhat.com>
7229 * target.h (struct target_ops) <to_disable_tracepoint>: Add
7231 (target_disable_tracepoint): Add argument.
7232 * target.c (update_current_target): Update.
7233 * remote.c (remote_disable_tracepoint): Add 'self' argument.
7235 2014-02-19 Tom Tromey <tromey@redhat.com>
7237 * target.h (struct target_ops) <to_enable_tracepoint>: Add
7239 (target_enable_tracepoint): Add argument.
7240 * target.c (update_current_target): Update.
7241 * remote.c (remote_enable_tracepoint): Add 'self' argument.
7243 2014-02-19 Tom Tromey <tromey@redhat.com>
7245 * target.h (struct target_ops) <to_download_trace_state_variable>:
7247 (target_download_trace_state_variable): Add argument.
7248 * target.c (update_current_target): Update.
7249 * remote.c (remote_download_trace_state_variable): Add 'self'
7252 2014-02-19 Tom Tromey <tromey@redhat.com>
7254 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
7256 (target_can_download_tracepoint): Add argument.
7257 * target.c (update_current_target): Update.
7258 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
7260 2014-02-19 Tom Tromey <tromey@redhat.com>
7262 * target.h (struct target_ops) <to_download_tracepoint>: Add
7264 (target_download_tracepoint): Add argument.
7265 * target.c (update_current_target): Update.
7266 * remote.c (remote_download_tracepoint): Add 'self' argument.
7268 2014-02-19 Tom Tromey <tromey@redhat.com>
7270 * target.h (struct target_ops) <to_trace_init>: Add argument.
7271 (target_trace_init): Add argument.
7272 * target.c (update_current_target): Update.
7273 * remote.c (remote_trace_init): Add 'self' argument.
7275 2014-02-19 Tom Tromey <tromey@redhat.com>
7277 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
7278 * target.c (target_fileio_readlink): Add argument.
7279 * remote.c (remote_hostio_readlink): Add 'self' argument.
7280 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
7282 2014-02-19 Tom Tromey <tromey@redhat.com>
7284 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
7285 * target.c (target_fileio_unlink): Add argument.
7286 * remote.c (remote_hostio_unlink): Add 'self' argument.
7287 (remote_file_delete): Update.
7288 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
7290 2014-02-19 Tom Tromey <tromey@redhat.com>
7292 * target.h (struct target_ops) <to_fileio_close>: Add argument.
7293 * target.c (target_fileio_close): Add argument.
7294 * remote.c (remote_hostio_close): Add 'self' argument.
7295 (remote_hostio_close_cleanup): Update.
7296 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
7298 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
7300 2014-02-19 Tom Tromey <tromey@redhat.com>
7302 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
7303 * target.c (target_fileio_pread): Add argument.
7304 * remote.c (remote_hostio_pread): Add 'self' argument.
7305 (remote_bfd_iovec_pread, remote_file_get): Update.
7306 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
7308 2014-02-19 Tom Tromey <tromey@redhat.com>
7310 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
7311 * target.c (target_fileio_pwrite): Add argument.
7312 * remote.c (remote_hostio_pwrite): Add 'self' argument.
7313 (remote_file_put): Update.
7314 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
7316 2014-02-19 Tom Tromey <tromey@redhat.com>
7318 * target.h (struct target_ops) <to_fileio_open>: Add argument.
7319 * target.c (target_fileio_open): Add argument.
7320 * remote.c (remote_hostio_open): Add 'self' argument.
7321 (remote_bfd_iovec_open): Add 'self' argument.
7322 (remote_file_put): Add 'self' argument.
7323 (remote_file_get): Add 'self' argument.
7324 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
7326 2014-02-19 Tom Tromey <tromey@redhat.com>
7328 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
7330 (target_can_run_breakpoint_commands): Add argument.
7331 * target.c (update_current_target): Update.
7332 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
7334 (remote_insert_breakpoint): Add 'self' argument.
7335 (remote_insert_hw_breakpoint): Add 'self' argument.
7336 (remote_can_run_breakpoint_commands): Add 'self' argument.
7338 2014-02-19 Tom Tromey <tromey@redhat.com>
7340 * target.h (struct target_ops)
7341 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
7342 (target_supports_evaluation_of_breakpoint_conditions): Add
7344 * target.c (update_current_target): Update.
7345 * remote.c (remote_supports_cond_breakpoints): Add 'self'
7347 (remote_insert_breakpoint): Add 'self' argument.
7348 (remote_insert_hw_breakpoint): Add 'self' argument.
7349 (remote_supports_cond_breakpoints): Add 'self' argument.
7351 2014-02-19 Tom Tromey <tromey@redhat.com>
7353 * target.h (struct target_ops) <to_supports_string_tracing>: Add
7355 (target_supports_string_tracing): Add argument.
7356 * target.c (update_current_target): Update.
7357 * remote.c (remote_supports_string_tracing): Add 'self' argument.
7359 2014-02-19 Tom Tromey <tromey@redhat.com>
7361 * target.h (struct target_ops)
7362 <to_supports_disable_randomization>: Add argument.
7363 * target.c (find_default_supports_disable_randomization): Add
7365 (target_supports_disable_randomization): Add argument.
7366 (find_default_supports_disable_randomization): Add 'self'
7368 * remote.c (extended_remote_supports_disable_randomization): Add
7370 (remote_supports_disable_randomization): Add 'self' argument.
7371 (extended_remote_create_inferior): Update.
7372 * linux-nat.c (linux_nat_supports_disable_randomization): Add
7375 2014-02-19 Tom Tromey <tromey@redhat.com>
7377 * target.h (struct target_ops)
7378 <to_supports_enable_disable_tracepoint>: Add argument.
7379 (target_supports_enable_disable_tracepoint): Add argument.
7380 * target.c (update_current_target): Update.
7381 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
7384 2014-02-19 Tom Tromey <tromey@redhat.com>
7386 * target.h (struct target_ops) <to_supports_multi_process>: Add
7388 (target_supports_multi_process): Add argument.
7389 * target.c (update_current_target): Update.
7390 * remote.c (remote_supports_multi_process): Add 'self' argument.
7391 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
7393 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
7396 2014-02-19 Tom Tromey <tromey@redhat.com>
7398 * target.h (struct target_ops) <to_execution_direction>: Add
7400 (target_execution_direction): Add argument.
7401 * target.c (default_execution_direction): Add 'self' argument.
7402 * record-full.c (record_full_execution_direction): Add 'self'
7405 2014-02-19 Tom Tromey <tromey@redhat.com>
7407 * target.h (struct target_ops) <to_can_execute_reverse>: Add
7409 (target_can_execute_reverse): Add argument.
7410 * remote.c (remote_can_execute_reverse): Add 'self' argument.
7411 * record-full.c (record_full_can_execute_reverse): Add 'self'
7413 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
7416 2014-02-19 Tom Tromey <tromey@redhat.com>
7418 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
7419 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
7421 (target_get_ada_task_ptid): Add argument.
7422 * target.c (update_current_target): Update.
7423 (default_get_ada_task_ptid): Add 'self' argument.
7424 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
7425 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
7426 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
7428 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
7430 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
7432 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
7434 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
7435 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
7438 2014-02-19 Tom Tromey <tromey@redhat.com>
7440 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
7441 (target_goto_bookmark): Add argument.
7442 * target.c (dummy_goto_bookmark): Add 'self' argument.
7443 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
7445 2014-02-19 Tom Tromey <tromey@redhat.com>
7447 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
7448 (target_get_bookmark): Add argument.
7449 * target.c (dummy_get_bookmark): Add 'self' argument.
7450 * record-full.c (record_full_get_bookmark): Add 'self' argument.
7452 2014-02-19 Tom Tromey <tromey@redhat.com>
7454 * target.h (struct target_ops) <to_make_corefile_notes>: Add
7456 (target_make_corefile_notes): Add argument.
7457 * target.c (dummy_make_corefile_notes): Add 'self' argument.
7458 * procfs.c (procfs_make_note_section): Add 'self' argument.
7459 (procfs_make_note_section): Add 'self' argument.
7460 (procfs_make_note_section): Add 'self' argument.
7461 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
7463 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
7464 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
7465 * exec.c (exec_make_note_section): Add 'self' argument.
7466 (exec_make_note_section): Add 'self' argument.
7468 2014-02-19 Tom Tromey <tromey@redhat.com>
7470 * target.h (struct target_ops) <to_find_memory_regions>: Add
7472 (target_find_memory_regions): Add argument.
7473 * target.c (dummy_find_memory_regions): Add 'self' argument.
7474 * procfs.c (proc_find_memory_regions): Add 'self' argument.
7475 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
7476 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
7477 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
7478 * exec. (exec_do_find_memory_regions): New global.
7479 (exec_set_find_memory_regions): Rewrite.
7480 (exec_find_memory_regions): New function.
7481 (init_exec_ops): Use exec_find_memory_regions.
7483 2014-02-19 Tom Tromey <tromey@redhat.com>
7485 * target.h (struct target_ops) <to_supports_non_stop>: Add
7487 * target.c (find_default_supports_non_stop): Add argument.
7488 (target_supports_non_stop): Add argument.
7489 (find_default_supports_non_stop): Add 'self' argument.
7490 * remote.c (remote_supports_non_stop): Add 'self' argument.
7491 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
7493 2014-02-19 Tom Tromey <tromey@redhat.com>
7495 * target.h (struct target_ops) <to_log_command>: Add argument.
7496 (target_log_command): Add argument.
7497 * serial.h (serial_log_command): Add 'self' argument.
7498 * serial.c (serial_log_command): Add 'self' argument.
7500 2014-02-19 Tom Tromey <tromey@redhat.com>
7502 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
7503 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
7505 (target_pid_to_exec_file): Add argument.
7506 * target.c (debug_to_pid_to_exec_file): Add argument.
7507 (update_current_target): Update.
7508 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
7509 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
7510 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
7511 (linux_handle_extended_wait): Update.
7512 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
7513 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
7514 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
7515 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
7517 2014-02-19 Tom Tromey <tromey@redhat.com>
7519 * target.h (struct target_ops) <to_rcmd>: Add argument.
7520 (target_rcmd): Add argument.
7521 * target.c (debug_to_rcmd): Add argument.
7522 (update_current_target, do_monitor_command): Update.
7523 * remote.c (remote_rcmd): Add 'self' argument.
7524 * monitor.c (monitor_rcmd): Add 'self' argument.
7526 2014-02-19 Tom Tromey <tromey@redhat.com>
7528 * windows-nat.c (windows_stop): Add 'self' argument.
7529 * target.h (struct target_ops) <to_stop>: Add argument.
7530 * target.c (target_stop): Add argument.
7531 (debug_to_stop): Add argument.
7532 (update_current_target): Update.
7533 * remote.c (remote_stop): Add 'self' argument.
7534 * remote-sim.c (gdbsim_stop): Add 'self' argument.
7535 (gdbsim_cntrl_c): Update.
7536 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
7537 * procfs.c (procfs_stop): Add 'self' argument.
7538 * nto-procfs.c (procfs_stop): Add 'self' argument.
7539 * monitor.c (monitor_stop): Add 'self' argument.
7540 (monitor_open): Update.
7541 * linux-nat.c (linux_nat_stop): Add argument.
7542 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
7543 * gnu-nat.c (gnu_stop): Add 'self' argument.
7544 * darwin-nat.c (darwin_stop): Add 'self' argument.
7546 2014-02-19 Tom Tromey <tromey@redhat.com>
7548 * target.h (struct target_ops) <to_thread_name>: Add argument.
7549 * target.c (target_thread_name): Add argument.
7550 (update_current_target): Update.
7551 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
7553 2014-02-19 Tom Tromey <tromey@redhat.com>
7555 * target.h (struct target_ops) <to_extra_thread_info>: Add
7557 (target_extra_thread_info): Add argument.
7558 * target.c (update_current_target): Update.
7559 * remote.c (remote_threads_extra_info): Add 'self' argument.
7560 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
7562 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
7563 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
7564 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
7566 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
7568 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
7570 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
7573 2014-02-19 Tom Tromey <tromey@redhat.com>
7575 * target.h (struct target_ops) <to_program_signals>: Add argument.
7576 * target.c (target_program_signals): Add argument.
7577 * remote.c (remote_program_signals): Add 'self' argument.
7579 2014-02-19 Tom Tromey <tromey@redhat.com>
7581 * target.h (struct target_ops) <to_pass_signals>: Add argument.
7582 * target.c (target_pass_signals): Add argument.
7583 * remote.c (remote_pass_signals): Add 'self' argument.
7584 (remote_start_remote): Update.
7585 * procfs.c (procfs_pass_signals): Add 'self' argument.
7586 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
7587 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
7588 (linux_nat_create_inferior, linux_nat_attach): Update.
7590 2014-02-19 Tom Tromey <tromey@redhat.com>
7592 * windows-nat.c (windows_can_run): Add 'self' argument.
7593 * target.h (struct target_ops) <to_can_run>: Add argument.
7594 (target_can_run): Add argument.
7595 * target.c (debug_to_can_run): Add argument.
7596 (update_current_target): Update.
7597 * nto-procfs.c (procfs_can_run): Add 'self' argument.
7598 * inf-child.c (inf_child_can_run): Add 'self' argument.
7599 * go32-nat.c (go32_can_run): Add 'self' argument.
7601 2014-02-19 Tom Tromey <tromey@redhat.com>
7603 * target.h (struct target_ops) <to_has_exited>: Add argument.
7604 (target_has_exited): Add argument.
7605 * target.c (debug_to_has_exited): Add argument.
7606 (update_current_target): Update.
7608 2014-02-19 Tom Tromey <tromey@redhat.com>
7610 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
7612 (target_set_syscall_catchpoint): Add argument.
7613 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
7615 * target.c (update_current_target): Update.
7617 2014-02-19 Tom Tromey <tromey@redhat.com>
7619 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
7621 (target_remove_exec_catchpoint): Add argument.
7622 * target.c (debug_to_remove_exec_catchpoint): Add argument.
7623 (update_current_target): Update.
7624 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
7627 2014-02-19 Tom Tromey <tromey@redhat.com>
7629 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
7631 (target_insert_exec_catchpoint): Add argument.
7632 * target.c (debug_to_insert_exec_catchpoint): Add argument.
7633 (update_current_target): Update.
7634 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
7637 2014-02-19 Tom Tromey <tromey@redhat.com>
7639 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
7641 (target_remove_vfork_catchpoint): Add argument.
7642 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
7643 (update_current_target): Update.
7644 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
7647 2014-02-19 Tom Tromey <tromey@redhat.com>
7649 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
7651 (target_insert_vfork_catchpoint): Add argument.
7652 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
7653 (update_current_target): Update.
7654 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
7657 2014-02-19 Tom Tromey <tromey@redhat.com>
7659 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
7661 (target_remove_fork_catchpoint): Add argument.
7662 * target.c (debug_to_remove_fork_catchpoint): Add argument.
7663 (update_current_target): Update.
7664 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
7667 2014-02-19 Tom Tromey <tromey@redhat.com>
7669 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
7671 (target_insert_fork_catchpoint): Add argument.
7672 * target.c (debug_to_insert_fork_catchpoint): Add argument.
7673 (update_current_target): Update.
7674 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
7677 2014-02-19 Tom Tromey <tromey@redhat.com>
7679 * target.h (struct target_ops) <to_post_startup_inferior>: Add
7681 (target_post_startup_inferior): Add argument.
7682 * target.c (debug_to_post_startup_inferior): Add argument.
7683 (update_current_target): Update.
7684 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
7686 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
7688 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
7690 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
7692 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
7694 (super_post_startup_inferior): Likewise.
7695 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
7697 (super_post_startup_inferior): Likewise.
7698 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
7699 Add 'self' argument.
7700 (super_post_startup_inferior): Likewise.
7702 2014-02-19 Tom Tromey <tromey@redhat.com>
7704 * target.h (struct target_ops) <to_load>: Add argument.
7705 * target.c (target_load): Add argument.
7706 (debug_to_load): Add argument.
7707 (update_current_target): Update.
7708 * remote.c (remote_load): Add 'self' argument.
7709 * remote-sim.c (gdbsim_load): Add 'self' argument.
7710 * remote-mips.c (mips_load): Add 'self' argument.
7711 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
7712 * monitor.c (monitor_load): Add 'self' argument.
7713 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
7715 2014-02-19 Tom Tromey <tromey@redhat.com>
7717 * target.h (struct target_ops) <to_terminal_info>: Add argument.
7718 (target_terminal_info): Add argument.
7719 * target.c (debug_to_terminal_info): Add argument.
7720 (default_terminal_info): Likewise.
7721 * inflow.c (child_terminal_info): Add 'self' argument.
7722 * inferior.h (child_terminal_info): Add 'self' argument.
7723 * go32-nat.c (go32_terminal_info): Add 'self' argument.
7725 2014-02-19 Tom Tromey <tromey@redhat.com>
7727 * target.h (struct target_ops) <to_terminal_save_ours>: Add
7729 (target_terminal_save_ours): Add argument.
7730 * target.c (debug_to_terminal_save_ours): Add argument.
7731 (update_current_target): Update.
7732 * inflow.c (terminal_save_ours): Add 'self' argument.
7733 * inferior.h (terminal_save_ours): Add 'self' argument.
7735 2014-02-19 Tom Tromey <tromey@redhat.com>
7737 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
7738 (target_terminal_ours): Add argument.
7739 * target.c (debug_to_terminal_ours): Add argument.
7740 (update_current_target): Update.
7741 * remote.c (remote_terminal_ours): Add 'self' argument.
7742 (remote_close): Update.
7743 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
7744 * inflow.c (terminal_ours): Add 'self' argument.
7745 * inferior.h (terminal_ours): Add 'self' argument.
7746 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
7748 2014-02-19 Pedro Alves <palves@redhat.com>
7749 Tom Tromey <tromey@redhat.com>
7751 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
7753 (target_terminal_ours_for_output): Add argument.
7754 * target.c (debug_to_terminal_ours_for_output): Add argument.
7755 (update_current_target): Update.
7756 * inflow.c (terminal_ours_for_output): Add 'self' argument.
7757 * inferior.h (terminal_ours_for_output): Add 'self' argument.
7758 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
7760 2014-02-19 Tom Tromey <tromey@redhat.com>
7762 * target.h (struct target_ops) <to_terminal_inferior>: Add
7764 * target.c (target_terminal_inferior): Add argument.
7765 (update_current_target): Update.
7766 * remote.c (remote_terminal_inferior): Add 'self' argument.
7767 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
7768 * inflow.c (terminal_inferior): Add 'self' argument.
7769 * inferior.h (terminal_inferior): Add 'self' argument.
7770 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
7771 (go32_terminal_inferior): Add 'self' argument.
7773 2014-02-19 Tom Tromey <tromey@redhat.com>
7775 * target.h (struct target_ops) <to_terminal_init>: Add argument.
7776 (target_terminal_init): Add argument.
7777 * target.c (debug_to_terminal_init): Add argument.
7778 (update_current_target): Update.
7779 * inflow.c (terminal_init_inferior): Add 'self' argument.
7780 * inferior.h (terminal_init_inferior): Add 'self' argument.
7781 * go32-nat.c (go32_terminal_init): Add 'self' argument.
7782 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
7784 2014-02-19 Tom Tromey <tromey@redhat.com>
7786 * target.h (struct target_ops)
7787 <to_can_accel_watchpoint_condition>: Add argument.
7788 (target_can_accel_watchpoint_condition): Add argument.
7789 * target.c (debug_to_can_accel_watchpoint_condition): Add
7791 (update_current_target): Update.
7792 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
7795 2014-02-19 Tom Tromey <tromey@redhat.com>
7797 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
7799 (target_region_ok_for_hw_watchpoint): Add argument.
7800 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
7801 (default_region_ok_for_hw_watchpoint): Add argument.
7802 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
7803 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
7805 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
7807 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
7809 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
7811 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
7813 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
7815 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
7816 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
7818 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
7819 Add 'self' argument.
7821 2014-02-19 Tom Tromey <tromey@redhat.com>
7823 * target.h (struct target_ops) <to_insert_watchpoint>: Add
7825 (target_insert_watchpoint): Add argument.
7826 * target.c (debug_to_insert_watchpoint): Add argument.
7827 (update_current_target): Update.
7828 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
7829 * remote.c (remote_insert_watchpoint): Add 'self' argument.
7830 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
7831 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
7832 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
7833 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
7835 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
7836 (procfs_insert_hw_watchpoint): Add 'self' argument.
7837 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
7839 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
7841 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
7843 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
7844 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
7846 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
7849 2014-02-19 Tom Tromey <tromey@redhat.com>
7851 * target.h (struct target_ops) <to_remove_watchpoint>: Add
7853 (target_remove_watchpoint): Add argument.
7854 * target.c (debug_to_remove_watchpoint): Add argument.
7855 (update_current_target): Update.
7856 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
7857 * remote.c (remote_remove_watchpoint): Add 'self' argument.
7858 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
7859 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
7860 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
7861 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
7863 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
7864 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
7866 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
7868 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
7870 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
7871 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
7873 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
7876 2014-02-19 Tom Tromey <tromey@redhat.com>
7878 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
7880 (target_remove_hw_breakpoint): Add argument.
7881 * target.c (debug_to_remove_hw_breakpoint): Add argument.
7882 (update_current_target): Update.
7883 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
7884 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
7886 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
7887 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
7889 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
7892 2014-02-19 Tom Tromey <tromey@redhat.com>
7894 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
7896 (target_insert_hw_breakpoint): Add argument.
7897 * target.c (debug_to_insert_hw_breakpoint): Add argument.
7898 (update_current_target): Update.
7899 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
7900 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
7902 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
7903 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
7904 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
7906 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
7909 2014-02-19 Tom Tromey <tromey@redhat.com>
7911 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
7913 (target_can_use_hardware_watchpoint): Add argument.
7914 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
7915 (update_current_target): Update.
7916 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
7918 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
7920 * remote.c (remote_check_watch_resources): Add 'self' argument.
7921 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
7922 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
7924 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
7925 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
7927 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
7929 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
7931 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
7933 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
7935 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
7937 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
7938 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
7940 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
7943 2014-02-19 Tom Tromey <tromey@redhat.com>
7945 * target.h (struct target_ops) <to_post_attach>: Add argument.
7946 (target_post_attach): Add argument.
7947 * target.c (debug_to_post_attach): Add argument.
7948 (update_current_target): Update.
7949 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
7950 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
7951 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
7952 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
7953 * inf-child.c (inf_child_post_attach): Add 'self' argument.
7955 2014-02-19 Tom Tromey <tromey@redhat.com>
7957 * windows-nat.c (windows_close): Add 'self' argument.
7958 * tracepoint.c (tfile_close): Add 'self' argument.
7959 * target.h (struct target_ops) <to_close>: Add argument.
7960 * target.c (target_close): Add argument.
7961 (update_current_target): Update.
7962 * remote.c (remote_close): Add 'self' argument.
7963 * remote-sim.c (gdbsim_close): Add 'self' argument.
7964 * remote-mips.c (mips_close): Add 'self' argument.
7965 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
7966 * record-full.c (record_full_close): Add 'self' argument.
7967 * record-btrace.c (record_btrace_close): Add 'self' argument.
7968 * monitor.h (monitor_close): Add 'self' argument.
7969 * monitor.c (monitor_close): Add 'self' argument.
7970 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
7971 * linux-nat.c (linux_nat_close): Add argument.
7972 * go32-nat.c (go32_close): Add 'self' argument.
7973 * exec.c (exec_close_1): Add 'self' argument.
7974 * ctf.c (ctf_close): Add 'self' argument.
7975 * corelow.c (core_close): Add 'self' argument.
7976 (core_close_cleanup): Update.
7977 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
7978 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
7980 2014-02-19 Tom Tromey <tromey@redhat.com>
7982 * remote.c (remote_load): New function.
7983 (init_remote_ops): Use it.
7985 2014-02-19 Tom Tromey <tromey@redhat.com>
7987 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
7989 * common/linux-btrace.h (linux_supports_btrace): Update.
7990 * remote.c (remote_supports_btrace): Add "self" argument.
7991 * target-delegates.c: Rebuild.
7992 * target.c (target_supports_btrace): Remove.
7993 * target.h (struct target_ops) <to_supports_btrace>: Add
7994 target_ops argument.
7995 (target_supports_btrace): New define.
7997 2014-02-19 Tom Tromey <tromey@redhat.com>
7999 * record-full.c (record_full_beneath_to_resume_ops)
8000 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
8001 (record_full_beneath_to_wait)
8002 (record_full_beneath_to_store_registers_ops)
8003 (record_full_beneath_to_store_registers)
8004 (record_full_beneath_to_xfer_partial_ops)
8005 (record_full_beneath_to_xfer_partial)
8006 (record_full_beneath_to_insert_breakpoint_ops)
8007 (record_full_beneath_to_insert_breakpoint)
8008 (record_full_beneath_to_remove_breakpoint_ops)
8009 (record_full_beneath_to_remove_breakpoint)
8010 (record_full_beneath_to_stopped_by_watchpoint)
8011 (record_full_beneath_to_stopped_data_address)
8012 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
8013 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
8014 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
8015 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
8016 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
8017 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
8018 (tmp_to_stopped_data_address, tmp_to_async): Remove.
8019 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
8020 (record_full_resume, record_full_wait_1)
8021 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
8022 (record_full_store_registers, record_full_xfer_partial)
8023 (record_full_insert_breakpoint, record_full_remove_breakpoint)
8024 (record_full_async, record_full_core_xfer_partial): Use target
8026 * target-delegates.c: Rebuild.
8027 * target.c (current_xfer_partial): Remove.
8028 (update_current_target): Do not INHERIT or de_fault
8029 to_insert_breakpoint, to_remove_breakpoint,
8030 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
8031 to_is_async_p, to_async. Do not set to_xfer_partial field.
8032 (default_xfer_partial): Simplify.
8033 (current_xfer_partial): Remove.
8034 (target_wait, target_resume): Simplify.
8035 (find_default_can_async_p, find_default_is_async_p): Update.
8036 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
8037 to_xfer_partial, to_stopped_by_watchpoint,
8038 to_stopped_data_address.
8039 (target_store_registers): Simplify.
8040 (forward_target_remove_breakpoint)
8041 (forward_target_insert_breakpoint): Remove.
8042 (target_remove_breakpoint, target_insert_breakpoint)
8043 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
8044 * target.h (struct target_ops) <to_resume, to_wait,
8045 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
8046 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
8047 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
8049 (forward_target_remove_breakpoint)
8050 (forward_target_insert_breakpoint): Remove.
8051 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
8053 (record_btrace_insert_breakpoint): Delegate directly.
8055 2014-02-19 Tom Tromey <tromey@redhat.com>
8058 * target-delegates.c: New file.
8059 * target.c: Include target-delegates.c.
8060 (init_dummy_target): Call install_dummy_methods.
8061 (complete_target_initialization): Call install_delegators.
8062 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
8063 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
8064 * make-target-delegates: New file.
8066 2014-02-19 Tom Tromey <tromey@redhat.com>
8068 * record.c (find_record_target): Use find_target_at.
8069 * target.c (find_target_at): New function.
8070 * target.h (find_target_at): Declare.
8072 2014-02-19 Tom Tromey <tromey@redhat.com>
8074 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
8076 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
8078 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
8079 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
8081 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
8083 * linux-nat.c (save_sigtrap): Update.
8084 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
8085 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
8086 (linux_nat_close): Update.
8087 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
8089 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
8091 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
8092 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
8093 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
8094 (tmp_to_async): Add 'ops' argument.
8095 (record_full_stopped_by_watchpoint, record_full_async)
8096 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
8098 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
8099 (m32r_stopped_by_watchpoint): Add 'ops' argument.
8100 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
8101 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
8102 (remote_is_async_p, remote_async): Add 'ops' argument.
8103 (remote_stopped_data_address): Update.
8104 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
8105 * target.c (update_current_target)
8106 (find_default_can_async_p, find_default_is_async_p): Update.
8107 (init_dummy_target): Update.
8108 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
8109 * target.h (struct target_ops) <to_stopped_by_watchpoint,
8110 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
8111 (target_can_async_p, target_is_async_p, target_async)
8112 (target_stopped_by_watchpoint): Update.
8114 2014-02-19 Yao Qi <yao@codesourcery.com>
8117 * gdbarch.sh: Remove startup_gdbarch.
8118 * gdbarch.c: Regenerated.
8119 * gdbarch.h: Likewise.
8121 2014-02-17 Kevin Buettner <kevinb@redhat.com>
8123 * rl78-tdep.c (rl78_g10_register_name): New function.
8124 (rl78_return_value): Add g10 support.
8125 (rl78_gdbarch_init): Register rl78_g10_register_name for the
8128 2014-02-17 Doug Evans <xdje42@gmail.com>
8130 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
8131 (SUBDIR_GUILE_SRCS): Ditto.
8132 (scm-gsmob.o): Ditto.
8134 2014-02-17 Yao Qi <yao@codesourcery.com>
8136 * gnu-nat.c (ILL_RPC): Declare defined function.
8138 2014-02-17 Yao Qi <yao@codesourcery.com>
8140 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
8141 mach_msg_type_number_t.
8142 (gnu_write_inferior): Likewise.
8144 2014-02-17 Yao Qi <yao@codesourcery.com>
8146 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
8148 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
8149 (inf_validate_procs, inf_signal): Likewise.
8150 (S_exception_raise_request): Likewise.
8151 (do_mach_notify_dead_name): Likewise.
8152 (steal_exc_port): Likewise.
8153 (gnu_read_inferior): Change 'copy_count''s type to
8154 mach_msg_type_number_t.
8155 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
8158 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
8160 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
8161 flag. Adjust all users; in particular...
8162 (gnu_wait): ..., don't decrement its value in here...
8163 (gnu_create_inferior): ..., and instead set the flag in here,
8164 around the startup_inferior call, and call that one with
8165 START_INFERIOR_TRAPS_EXPECTED.
8167 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
8168 (ILL_RPC): ... new macro.
8169 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
8170 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
8171 (do_mach_notify_send_once, S_proc_setmsgport_reply)
8172 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
8173 functions with ILL_RPC macro.
8174 (S_proc_pid2task_reply, S_proc_task2pid_reply)
8175 (S_proc_task2proc_reply, S_proc_proc2task_reply)
8176 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
8177 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
8178 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
8179 (S_proc_getlogin_reply, S_proc_getsid_reply)
8180 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
8181 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
8182 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
8183 (S_proc_getnports_reply, S_proc_is_important_reply)
8184 (S_proc_get_code_reply): New stub functions, generated with
8187 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
8188 collected the type check structures.
8190 * reply_mig_hack.awk: Don't expect to see the auto keyword.
8192 2014-02-14 Doug Evans <dje@google.com>
8194 * target.c (target_write_partial): Fix result type.
8196 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
8198 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
8199 the proper offsets to access fpregset_t.
8201 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
8203 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
8204 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
8205 * h8300-tdep.c (setmachinelist): Remove global.
8206 * hppa-tdep.c (hppa_sigtramp): Remove global.
8207 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
8208 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
8209 * ravenscar-thread.c (update_target_observer): Remove global.
8210 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
8212 2014-02-12 Tom Tromey <tromey@redhat.com>
8214 * common/rsp-low.c: Update comments.
8215 * common/rsp-low.h: Update comments.
8217 2014-02-12 Tom Tromey <tromey@redhat.com>
8219 * common/rsp-low.c (convert_ascii_to_int): Remove.
8220 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
8222 2014-02-12 Tom Tromey <tromey@redhat.com>
8224 * common/rsp-low.h (unhexify): Don't declare.
8225 * common/rsp-low.c (unhexify): Remove.
8227 2014-02-12 Tom Tromey <tromey@redhat.com>
8229 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
8230 * common/rsp-low.c (convert_int_to_ascii): Remove.
8232 2014-02-12 Tom Tromey <tromey@redhat.com>
8234 * common/rsp-low.h (hexify): Don't declare.
8235 * common/rsp-low.c (hexify): Remove.
8237 2014-02-12 Tom Tromey <tromey@redhat.com>
8239 * common/rsp-low.c (hexify): Never take strlen of argument.
8241 2014-02-12 Tom Tromey <tromey@redhat.com>
8243 * common/rsp-low.c (bin2hex): Never take strlen of argument.
8244 * remote.c (extended_remote_run, remote_rcmd)
8245 (remote_download_trace_state_variable, remote_save_trace_data)
8246 (remote_set_trace_notes): Update.
8247 * tracepoint.c (encode_source_string, tfile_write_status)
8248 (tfile_write_uploaded_tsv): Update.
8250 2014-02-12 Tom Tromey <tromey@redhat.com>
8252 * tracepoint.c: Include rsp-low.h.
8253 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
8254 * remote.c: Include rsp-low.h.
8255 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
8256 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
8257 (remote_unescape_input): Move to common/rsp-low.c.
8258 * common/rsp-low.h: New file.
8259 * common/rsp-low.c: New file.
8260 * Makefile.in (SFILES): Add common/rsp-low.c.
8261 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
8262 (COMMON_OBS): Add rsp-low.o.
8263 (rsp-low.o): New target.
8265 2014-02-12 Tom Tromey <tromey@redhat.com>
8267 * utils.h: Include print-utils.h.
8268 (host_address_to_string, plongest, pulongest, phex, phex_nz)
8269 (int_string, core_addr_to_string, core_addr_to_string_nz)
8270 (hex_string, hex_string_custom): Don't declare.
8271 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
8272 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
8273 (hex_string_custom, int_string, core_addr_to_string)
8274 (core_addr_to_string_nz, host_address_to_string): Move to
8275 common/print-utils.c.
8276 * common/print-utils.h: New file.
8277 * common/print-utils.c: New file
8278 * Makefile.in (SFILES): Add common/print-utils.c.
8279 (HFILES_NO_SRCDIR): Add common/print-utils.h.
8280 (COMMON_OBS): Add print-utils.o.
8281 (print-utils.o): New target.
8283 2014-02-12 Tom Tromey <tromey@redhat.com>
8285 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
8287 2014-02-12 Mark Kettenis <kettenis@gnu.org>
8289 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
8291 2014-02-12 Mark Kettenis <kettenis@gnu.org>
8293 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
8294 if a PT_IO ptrace request returns sucessfully but indicates that 0
8295 bytes were transferred.
8297 2014-02-12 Pedro Alves <palves@redhat.com>
8298 Kevin Buettner <kevinb@redhat.com>
8300 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
8301 TYPE_INSTANCE_FLAG_CODE_SPACE.
8303 2014-02-12 Pedro Alves <palves@redhat.com>
8305 * h8300-tdep.c (pseudo_from_raw_register)
8306 (raw_from_pseudo_register): New functions.
8307 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
8310 2014-02-12 Pedro Alves <palves@redhat.com>
8312 * h8300-tdep.c (h8300_register_sim_regno): New function.
8313 (h8300_gdbarch_init): Install h8300_register_sim_regno as
8314 gdbarch_register_sim_regno hook.
8316 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
8318 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
8320 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
8322 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
8324 2014-02-12 Mark Kettenis <kettenis@gnu.org>
8326 * obsd-tdep.h (obsd_init_abi): New prototype.
8327 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
8328 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
8329 (obsd_init_abi): New functions.
8330 * i386obsd-tdep.c: Include "obsd-tdep.h".
8331 (i386obsd_init_abi): Call obsd_init_abi.
8332 * amd64obsd-tdep.c: Include "obsd-tdep.h".
8333 (amd64obsd_init_abi): Call obsd_init_abi.
8334 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
8335 obsd-tdep.c to gdb_target_obs.
8337 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
8339 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
8340 double float arguments to 16-byte in the argument slots.
8342 2014-02-11 Doug Evans <xdje42@gmail.com>
8344 * configure.ac: Don't crash if pkg-config is not found and guile
8345 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
8347 * configure: Regenerate.
8349 2014-02-11 Yao Qi <yao@codesourcery.com>
8351 * aix-thread.c (aix_thread_xfer_partial): Update comments.
8352 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
8353 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
8354 * gnu-nat.c (gnu_xfer_memory): Likewise.
8355 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
8356 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
8357 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
8358 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
8360 2014-02-11 Yao Qi <yao@codesourcery.com>
8362 * target.h (enum target_xfer_error): Rename to ...
8363 (enum target_xfer_status): ... it. New. All users updated.
8364 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
8366 (TARGET_XFER_STATUS_ERROR_P): New macro.
8367 (target_xfer_error_to_string): Remove declaration.
8368 (target_xfer_status_to_string): Declare.
8369 (target_xfer_partial_ftype): Adjust it.
8370 (struct target_ops) <to_xfer_partial>: Return
8371 target_xfer_status. Add argument xfered_len. Update
8373 * target.c (target_xfer_error_to_string): Rename to ...
8374 (target_xfer_status_to_string): ... it. New. All callers
8376 (target_read_live_memory): Likewise. Call target_xfer_partial
8377 instead of target_read.
8378 (memory_xfer_live_readonly_partial): Return
8379 target_xfer_status. Add argument xfered_len.
8380 (raw_memory_xfer_partial): Likewise.
8381 (memory_xfer_partial_1): Likewise.
8382 (memory_xfer_partial): Likewise.
8383 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
8384 properly. Update debug message.
8385 (default_xfer_partial, current_xfer_partial): Likewise.
8386 (target_write_partial): Likewise.
8387 (target_read_partial): Likewise. All callers updated.
8388 (read_whatever_is_readable): Likewise.
8389 (target_write_with_progress): Likewise.
8390 (target_read_alloc_1): Likewise.
8392 * aix-thread.c (aix_thread_xfer_partial): Likewise.
8393 * auxv.c (procfs_xfer_auxv): Likewise.
8394 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
8395 * bfd-target.c (target_bfd_xfer_partial): Likewise.
8396 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
8397 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
8398 * corefile.c (read_memory): Adjust.
8399 * corelow.c (core_xfer_partial): Likewise.
8400 * ctf.c (ctf_xfer_partial): Likewise.
8401 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
8403 (darwin_xfer_partial): Likewise.
8404 * exec.c (section_table_xfer_memory_partial): Likewise. All
8406 (exec_xfer_partial): Likewise.
8407 * exec.h (section_table_xfer_memory_partial): Update
8409 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
8411 (gnu_xfer_partial): Likewise.
8412 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
8413 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
8414 (ia64_hpux_xfer_solib_got): Likewise.
8415 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
8416 type of 'partial_len' to ULONGEST.
8417 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
8418 * linux-nat.c (linux_xfer_siginfo ): Likewise.
8419 (linux_nat_xfer_partial): Likewise.
8420 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
8421 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
8422 * monitor.c (monitor_xfer_memory): Likewise.
8423 (monitor_xfer_partial): Likewise.
8424 * procfs.c (procfs_xfer_partial): Likewise.
8425 * record-btrace.c (record_btrace_xfer_partial): Likewise.
8426 * record-full.c (record_full_xfer_partial): Likewise.
8427 (record_full_core_xfer_partial): Likewise.
8428 * remote-sim.c (gdbsim_xfer_memory): Likewise.
8429 (gdbsim_xfer_partial): Likewise.
8430 * remote.c (remote_write_bytes_aux): Likewise. All callers
8432 (remote_write_bytes, remote_read_bytes): Likewise. All
8434 (remote_flash_erase): Likewise. All callers updated.
8435 (remote_write_qxfer): Likewise. All callers updated.
8436 (remote_read_qxfer): Likewise. All callers updated.
8437 (remote_xfer_partial): Likewise.
8438 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
8439 (rs6000_xfer_shared_libraries): Likewise.
8440 * sol-thread.c (sol_thread_xfer_partial): Likewise.
8441 (sol_thread_xfer_partial): Likewise.
8442 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
8443 (sparc_xfer_partial): Likewise.
8444 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
8446 (spu_xfer_partial): Likewise.
8447 * spu-multiarch.c (spu_xfer_partial): Likewise.
8448 * tracepoint.c (tfile_xfer_partial): Likewise.
8449 * windows-nat.c (windows_xfer_memory): Likewise.
8450 (windows_xfer_shared_libraries): Likewise.
8451 (windows_xfer_partial): Likewise.
8452 * valprint.c: Replace 'target_xfer_error' with
8453 'target_xfer_status' in comments.
8455 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
8457 Checked in by Joel Brobecker <brobecker@adacore.com>.
8458 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
8460 2014-02-11 Joel Brobecker <brobecker@adacore.com>
8462 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
8463 function parameters.
8465 2014-02-10 Will Newton <will.newton@linaro.org>
8467 * elfread.c (elf_rel_plt_read): Look for a .got section if
8468 looking up .got.plt fails.
8469 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
8470 on address passed to elf_gnu_ifunc_record_cache.
8471 (elf_gnu_ifunc_resolve_addr): Likewise.
8472 (elf_gnu_ifunc_resolver_return_stop): Likewise.
8474 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
8476 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
8477 (X_RETTURN): New macro.
8478 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
8480 * sparc64-tdep.c (sparc64_init_abi): Hook
8481 sparc_in_function_epilogue_p.
8483 2014-02-10 Gary Benson <gbenson@redhat.com>
8485 * symfile-debug.c (debug_qf_expand_symtabs_matching):
8486 Rename name_matcher to symbol_matcher.
8488 2014-02-10 Gary Benson <gbenson@redhat.com>
8490 * symfile-debug.c (debug_qf_expand_symtabs_matching):
8491 Use expand_symtabs_file_matcher_ftype and
8492 expand_symtabs_symbol_matcher_ftype.
8494 2014-02-10 Joel Brobecker <brobecker@adacore.com>
8496 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
8497 (struct ada_symbol_cache): New.
8498 (ada_free_symbol_cache): Forward declare.
8499 (struct ada_pspace_data): New.
8500 (ada_pspace_data_handle): New static global.
8501 (get_ada_pspace_data, ada_pspace_data_cleanup)
8502 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
8503 (cache_space, cache): Delete, now folded inside struct
8505 (ada_get_symbol_cache): New function.
8506 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
8508 (_initialize_ada_language): Remove initialization of cache_space.
8509 Move call to observer_attach_inferior_exit up, grouping it
8510 with the other observer registrations inside this function.
8511 Rename command to be more general. Add call to
8512 register_program_space_data_with_cleanup.
8514 2014-02-10 Joel Brobecker <brobecker@adacore.com>
8516 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
8517 ada_new_objfile_observer.
8518 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
8519 (_initialize_tasks): Update uses of ada_new_objfile_observer
8520 and ada_tasks_normal_stop_observer.
8522 2014-02-10 Joel Brobecker <brobecker@adacore.com>
8524 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
8525 returned by the 'Length attribute to integer.
8527 2014-02-10 Joel Brobecker <brobecker@adacore.com>
8529 * ada-lang.c (_initialize_ada_language): Initialize
8530 cache_space obstack.
8532 2014-02-10 Joel Brobecker <brobecker@adacore.com>
8534 * ada-lang.c (HASH_SIZE): New macro.
8535 (struct cache_entry): New type.
8536 (cache_space, cache): New static globals.
8537 (ada_clear_symbol_cache, find_entry): New functions.
8538 (lookup_cached_symbol, cache_symbol): Implement.
8539 (ada_new_objfile_observer, ada_free_objfile_observer): New.
8540 (_initialize_ada_language): Attach ada_new_objfile_observer
8541 and ada_free_objfile_observer.
8543 2014-02-10 Joel Brobecker <brobecker@adacore.com>
8545 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
8546 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
8547 struct block * parameter.
8548 (ada_lookup_symbol_list_worker): Constify local variable "block".
8549 Remove cast which is no longer necessary.
8551 2014-02-10 Doug Evans <xdje42@gmail.com>
8553 Add Guile as an extension language.
8554 * NEWS: Mention Guile scripting.
8555 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
8556 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
8557 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
8558 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
8559 (CLIBS): Add GUILE_LIBS.
8560 (install-guile): New rule.
8561 (guile.o): New rule.
8562 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
8563 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
8564 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
8565 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
8566 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
8567 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
8568 (scm-type.o, scm-utils.o, scm-value.o): New rules.
8569 * configure.ac: New option --with-guile.
8570 * configure: Regenerate.
8571 * config.in: Regenerate.
8572 * auto-load.c: Remove #include "python/python.h". Add #include
8573 "gdb/section-scripts.h".
8574 (source_section_scripts): Handle Guile scripts.
8575 (_initialize_auto_load): Add name of Guile objfile script to
8576 scripts-directory help text.
8577 * breakpoint.c (condition_command): Tweak comment to include Scheme.
8578 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
8579 (struct breakpoint): New member scm_bp_object.
8580 * defs.h (enum command_control_type): New value guile_control.
8581 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
8583 (show_user): Update comment.
8584 (_initialize_cli_cmds): Update help text for "show user". Update help
8585 text for max-user-call-depth.
8586 * cli/cli-script.c: Remove #include "python/python.h". Add #include
8588 (multi_line_command_p): Add guile_control.
8589 (print_command_lines): Handle guile_control.
8590 (execute_control_command, recurse_read_control_structure): Ditto.
8591 (process_next_line): Recognize "guile" commands.
8592 * disasm.c (gdb_disassemble_info): Make non-static.
8593 * disasm.h: #include "dis-asm.h".
8594 (struct gdbarch): Add forward decl.
8595 (gdb_disassemble_info): Declare.
8596 * extension.c: #include "guile/guile.h".
8597 (extension_languages): Add guile.
8598 (get_ext_lang_defn): Handle EXT_LANG_GDB.
8599 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
8600 * gdbtypes.c (get_unsigned_type_max): New function.
8601 (get_signed_type_minmax): New function.
8602 * gdbtypes.h (get_unsigned_type_max): Declare.
8603 (get_signed_type_minmax): Declare.
8604 * guile/README: New file.
8605 * guile/guile-internal.h: New file.
8606 * guile/guile.c: New file.
8607 * guile/guile.h: New file.
8608 * guile/scm-arch.c: New file.
8609 * guile/scm-auto-load.c: New file.
8610 * guile/scm-block.c: New file.
8611 * guile/scm-breakpoint.c: New file.
8612 * guile/scm-disasm.c: New file.
8613 * guile/scm-exception.c: New file.
8614 * guile/scm-frame.c: New file.
8615 * guile/scm-gsmob.c: New file.
8616 * guile/scm-iterator.c: New file.
8617 * guile/scm-lazy-string.c: New file.
8618 * guile/scm-math.c: New file.
8619 * guile/scm-objfile.c: New file.
8620 * guile/scm-ports.c: New file.
8621 * guile/scm-pretty-print.c: New file.
8622 * guile/scm-safe-call.c: New file.
8623 * guile/scm-string.c: New file.
8624 * guile/scm-symbol.c: New file.
8625 * guile/scm-symtab.c: New file.
8626 * guile/scm-type.c: New file.
8627 * guile/scm-utils.c: New file.
8628 * guile/scm-value.c: New file.
8629 * guile/lib/gdb.scm: New file.
8630 * guile/lib/gdb/boot.scm: New file.
8631 * guile/lib/gdb/experimental.scm: New file.
8632 * guile/lib/gdb/init.scm: New file.
8633 * guile/lib/gdb/iterator.scm: New file.
8634 * guile/lib/gdb/printing.scm: New file.
8635 * guile/lib/gdb/types.scm: New file.
8636 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
8637 (VPATH): Add $(GUILE_SRCDIR).
8638 (GUILE_DIR): New variable.
8639 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
8640 (all): Add stamp-guile dependency.
8641 (stamp-guile): New rule.
8642 (clean-guile, install-guile, uninstall-guile): New rules.
8643 (install-only): Add install-guile dependency.
8644 (uninstall): Add uninstall-guile dependency.
8645 (clean): Add clean-guile dependency.
8647 2014-02-09 Doug Evans <xdje42@gmail.com>
8649 Revert this patch (which I approved, mea culpa).
8651 2014-02-08 Mark Kettenis <kettenis@gnu.org>
8653 * Makefile.in (all-lib): Remove.
8654 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
8656 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
8658 Fix Python stack corruption.
8659 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
8662 2014-02-08 Mark Kettenis <kettenis@gnu.org>
8664 * Makefile.in (all-lib): Remove.
8665 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
8667 2014-02-07 Doug Evans <dje@google.com>
8669 * extension-priv.h (extension_language_script_ops): Add comment.
8670 (extension_language_ops): Add comment.
8671 (active_ext_lang_state): Fix typo in comment.
8673 2014-02-07 Pedro Alves <palves@redhat.com>
8675 PR breakpoints/16292
8676 * infrun.c (handle_signal_stop) <signal arrives while stepping
8677 over a breakpoint>: Switch back to the stepping thread.
8679 2014-02-07 Yao Qi <yao@codesourcery.com>
8681 * target.c (target_xfer_partial): Return zero if LEN is zero.
8683 2014-02-07 Yao Qi <yao@codesourcery.com>
8685 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
8686 (ld_so_xfer_auxv): Likewise.
8687 * bfd-target.c (target_bfd_xfer_partial): Likewise.
8688 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
8689 * corelow.c (core_xfer_partial): Likewise.
8690 * ctf.c (ctf_xfer_partial): Likewise.
8691 * darwin-nat.c (darwin_read_dyld_info): Likewise.
8692 (darwin_xfer_partial): Likewise.
8693 * exec.c (exec_xfer_partial): Likewise.
8694 * gnu-nat.c (gnu_xfer_partial): Likewise.
8695 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
8696 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
8697 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
8698 * linux-nat.c (linux_xfer_siginfo): Likewise.
8699 (linux_proc_xfer_spu): Likewise.
8700 * procfs.c (procfs_xfer_partial): Likewise.
8701 * record-full.c (record_full_xfer_partial): Likewise.
8702 (record_full_core_xfer_partial): Likewise.
8703 * remote-sim.c (gdbsim_xfer_partial): Likewise.
8704 * remote.c (remote_write_qxfer): Likewise.
8705 (remote_write_qxfer, remote_read_qxfer): Likewise.
8706 (remote_xfer_partial): Likewise.
8707 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
8708 (rs6000_xfer_shared_libraries): Likewise.
8709 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
8710 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
8711 (spu_xfer_partial): Likewise.
8712 * target.c (memory_xfer_partial_1): Likewise.
8713 * tracepoint.c (tfile_xfer_partial): Likewise.
8714 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
8715 (windows_xfer_partial): Likewise.
8717 2014-02-07 Yao Qi <yao@codesourcery.com>
8719 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
8721 (core_xfer_shared_libraries_aix): Likewise.
8722 * gdbarch.c, gdbarch.h: Regenerated.
8723 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
8724 ULONGEST. Change 'len_avail' type to ULONGEST.
8725 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
8726 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
8728 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
8730 2014-02-07 Yao Qi <yao@codesourcery.com>
8732 * corefile.c (memory_error): Get 'exception' from ERR and pass
8733 'exception' to throw_error.
8735 2014-02-06 Doug Evans <xdje42@gmail.com>
8737 * configure.ac (libpython checking): Remove all but python.o from
8738 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
8739 * configure: Regenerate.
8741 * Makefile.in (SFILES): Add extension.c.
8742 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
8743 (COMMON_OBS): Add extension.o.
8744 * extension.h: New file.
8745 * extension-priv.h: New file.
8746 * extension.c: New file.
8748 * python/python-internal.h: #include "extension.h".
8749 (gdbpy_auto_load_enabled): Declare.
8750 (gdbpy_apply_val_pretty_printer): Declare.
8751 (gdbpy_apply_frame_filter): Declare.
8752 (gdbpy_preserve_values): Declare.
8753 (gdbpy_breakpoint_cond_says_stop): Declare.
8754 (gdbpy_breakpoint_has_cond): Declare.
8755 (void source_python_script_for_objfile): Delete.
8756 * python/python.c: #include "extension-priv.h".
8757 Delete inclusion of "observer.h".
8758 (extension_language_python): Moved here and renamed from
8759 script_language_python in py-auto-load.c.
8760 Redefined to be of type extension_language_defn.
8761 (python_extension_script_ops): New global.
8762 (python_extension_ops): New global.
8763 (struct python_env): New member previous_active.
8764 (restore_python_env): Call restore_active_ext_lang.
8765 (ensure_python_env): Call set_active_ext_lang.
8766 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
8768 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
8770 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
8772 (gdbpy_eval_from_control_command): Renamed from
8773 eval_python_from_control_command, made static. New arg extlang.
8774 (gdbpy_source_script) Renamed from source_python_script, made static.
8776 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
8777 result to int. New arg extlang.
8778 (gdbpy_source_objfile_script): Renamed from
8779 source_python_script_for_objfile, made static. New arg extlang.
8780 (gdbpy_start_type_printers): Renamed from start_type_printers, made
8781 static. New args extlang, extlang_printers. Change result type to
8783 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
8784 static. New arg extlang. Rename arg printers to extlang_printers
8785 and change type to ext_lang_type_printers *.
8786 (gdbpy_free_type_printers): Renamed from free_type_printers, made
8787 static. Replace argument arg with extlang, extlang_printers.
8788 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
8789 (!HAVE_PYTHON, source_python_script): Delete.
8790 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
8791 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
8792 (!HAVE_PYTHON, start_type_printers): Delete.
8793 (!HAVE_PYTHON, apply_type_printers): Delete.
8794 (!HAVE_PYTHON, free_type_printers): Delete.
8795 (_initialize_python): Delete call to observer_attach_before_prompt.
8796 (finalize_python): Set/restore active extension language.
8797 (gdbpy_finish_initialization) Renamed from
8798 finish_python_initialization, made static. New arg extlang.
8799 (gdbpy_initialized): New function.
8800 * python/python.h: #include "extension.h". Delete #include
8801 "value.h", "mi/mi-cmds.h".
8802 (extension_language_python): Declare.
8803 (GDBPY_AUTO_FILE_NAME): Delete.
8804 (enum py_bt_status): Moved to extension.h and renamed to
8806 (enum frame_filter_flags): Moved to extension.h.
8807 (enum py_frame_args): Moved to extension.h and renamed to
8808 ext_lang_frame_args.
8809 (finish_python_initialization): Delete.
8810 (eval_python_from_control_command): Delete.
8811 (source_python_script): Delete.
8812 (apply_val_pretty_printer): Delete.
8813 (apply_frame_filter): Delete.
8814 (preserve_python_values): Delete.
8815 (gdbpy_script_language_defn): Delete.
8816 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
8817 (start_type_printers, apply_type_printers, free_type_printers): Delete.
8819 * auto-load.c: #include "extension.h".
8820 (GDB_AUTO_FILE_NAME): Delete.
8821 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
8822 (script_language_gdb): Delete, moved to extension.c and renamed to
8823 extension_language_gdb.
8824 (source_gdb_script_for_objfile): Delete.
8825 (auto_load_pspace_info): New member unsupported_script_warning_printed.
8826 (loaded_script): Change type of language member to
8827 struct extension_language_defn *.
8828 (init_loaded_scripts_info): Initialize
8829 unsupported_script_warning_printed.
8830 (maybe_add_script): Make static. Change type of language arg to
8831 struct extension_language_defn *.
8832 (clear_section_scripts): Reset unsupported_script_warning_printed.
8833 (auto_load_objfile_script_1): Rewrite to use extension language API.
8834 (auto_load_objfile_script): Make public. Remove support-compiled-in
8835 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
8836 (source_section_scripts): Rewrite to use extension language API.
8837 (load_auto_scripts_for_objfile): Rewrite to use
8838 auto_load_scripts_for_objfile.
8839 (collect_matching_scripts_data): Change type of language member to
8840 struct extension_language_defn *.
8841 (auto_load_info_scripts): Change type of language arg to
8842 struct extension_language_defn *.
8843 (unsupported_script_warning_print): New function.
8844 (script_not_found_warning_print): Make static.
8845 (_initialize_auto_load): Rewrite construction of scripts-directory
8847 * auto-load.h (struct objfile): Add forward decl.
8848 (struct script_language): Delete.
8849 (struct auto_load_pspace_info): Add forward decl.
8850 (struct extension_language_defn): Add forward decl.
8851 (maybe_add_script): Delete.
8852 (auto_load_objfile_script): Declare.
8853 (script_not_found_warning_print): Delete.
8854 (auto_load_info_scripts): Update prototype.
8855 (auto_load_gdb_scripts_enabled): Declare.
8856 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
8857 auto_load_python_scripts_enabled and made public.
8858 (script_language_python): Delete, moved to python.c.
8859 (gdbpy_script_language_defn): Delete.
8860 (info_auto_load_python_scripts): Update to use
8861 extension_language_python.
8863 * breakpoint.c (condition_command): Replace call to
8864 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
8865 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
8866 with call to breakpoint_ext_lang_cond_says_stop.
8867 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
8868 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
8869 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
8870 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
8872 (local_setattro): Print name of extension language with existing
8875 * valprint.c (val_print, value_print): Update to call
8876 apply_ext_lang_val_pretty_printer.
8877 * cp-valprint.c (cp_print_value): Update call to
8878 apply_ext_lang_val_pretty_printer.
8879 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
8880 (gdbpy_apply_val_pretty_printer): Renamed from
8881 apply_val_pretty_printer. New arg extlang.
8882 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
8884 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
8885 extension language API.
8886 * cli/cli-script.c (execute_control_command): Update to call
8887 eval_ext_lang_from_control_command.
8889 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
8890 enum ext_lang_bt_status values. Update call to
8891 apply_ext_lang_frame_filter.
8892 (mi_cmd_stack_list_locals): Ditto.
8893 (mi_cmd_stack_list_args): Ditto.
8894 (mi_cmd_stack_list_variables): Ditto.
8895 * mi/mi-main.c: Delete #include "python/python-internal.h".
8896 Add #include "extension.h".
8897 (mi_cmd_list_features): Replace reference to python internal variable
8898 gdb_python_initialized with call to ext_lang_initialized_p.
8900 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
8901 Update to use enum ext_lang_frame_args. Update to call
8902 apply_ext_lang_frame_filter.
8903 * python/py-framefilter.c (extract_sym): Update to use enum
8905 (extract_value, py_print_type, py_print_value): Ditto.
8906 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
8907 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
8908 (py_print_frame): Ditto.
8909 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
8910 New arg extlang. Update to use enum ext_lang_bt_status.
8912 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
8913 finish_python_initialization. Replace with call to
8914 finish_ext_lang_initialization.
8916 * typeprint.c (do_free_global_table): Update to call
8917 free_ext_lang_type_printers.
8918 (create_global_typedef_table): Update to call
8919 start_ext_lang_type_printers.
8920 (find_global_typedef): Update to call apply_ext_lang_type_printers.
8921 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
8922 (type_print_options): Change type of global_printers from "void *"
8923 to "struct ext_lang_type_printers *".
8925 * value.c (preserve_values): Update to call preserve_ext_lang_values.
8926 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
8927 (gdbpy_preserve_values): Renamed from preserve_python_values.
8929 (!HAVE_PYTHON, preserve_python_values): Delete.
8931 * utils.c (quit_flag): Delete, moved to extension.c.
8932 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
8935 * eval.c: Delete #include "python/python.h".
8936 * main.c: Delete #include "python/python.h".
8938 * defs.h: Update comment.
8940 2014-02-06 Joel Brobecker <brobecker@adacore.com>
8944 2014-02-05 Mark Kettenis <kettenis@gnu.org>
8946 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
8949 2014-02-05 Yao Qi <yao@codesourcery.com>
8951 * remote.c (remote_pass_signals): Remove local 'buf' and use
8953 (remote_program_signals): Likewise.
8955 2014-02-05 Yao Qi <yao@codesourcery.com>
8957 * ctf.c: Include "inferior.h" and "gdbthread.h".
8958 (CTF_PID): A new macro.
8959 (ctf_open): Call inferior_appeared and add_thread_silent.
8960 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
8961 (ctf_thread_alive): New function.
8962 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
8964 2014-02-05 Yao Qi <yao@codesourcery.com>
8968 2013-05-24 Yao Qi <yao@codesourcery.com>
8970 * tracepoint.c (TFILE_PID): Remove.
8971 (tfile_open): Don't add thread and inferior.
8972 (tfile_close): Don't set 'inferior_ptid'. Don't call
8973 exit_inferior_silent.
8974 (tfile_thread_alive): Remove.
8975 (init_tfile_ops): Don't set field 'to_thread_alive' of
8978 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
8980 * remote.c (remote_start_remote): Call remote_check_symbols even
8981 if only symbol-file (not file) has been given.
8983 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8985 * gdbarch.sh (skip_entrypoint): New callback.
8986 * gdbarch.c, gdbarch.h: Regenerate.
8987 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
8988 * infrun.c (fill_in_stop_func): Likewise.
8989 * ppc-linux-tdep.c: Include "elf/ppc64.h".
8990 (ppc_elfv2_elf_make_msymbol_special): New function.
8991 (ppc_elfv2_skip_entrypoint): Likewise.
8992 (ppc_linux_init_abi): Install them for ELFv2.
8994 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8996 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
8997 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
8998 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
8999 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
9000 structures returned in GPRs.
9002 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
9004 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
9005 offset to the stack parameter list for the ELFv2 ABI.
9007 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
9009 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
9010 set_gdbarch_convert_from_func_ptr_addr and
9011 set_gdbarch_elf_make_msymbol_special for ELFv1.
9012 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
9013 function descriptors on ELFv1.
9014 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
9015 set up r12 at function entry.
9017 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
9019 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
9020 (struct gdbarch_tdep): New member elf_abi.
9022 * rs6000-tdep.c: Include "elf/ppc64.h".
9023 (rs6000_gdbarch_init): Detect ELF ABI version.
9025 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
9027 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
9028 within a register pair holding a DFP 128-bit value on little-endian.
9029 (ppc64_sysv_abi_return_value_base): Likewise.
9030 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
9031 (dfp_pseudo_register_write): Likewise.
9033 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
9035 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
9036 offset on little-endian when passing _Decimal32.
9037 (ppc64_sysv_abi_return_value_base): Likewise for return values.
9039 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
9041 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
9042 of the overlapped FP register within the VSX register on little-
9044 (efpr_pseudo_register_write): Likewise.
9046 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
9048 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
9049 offset on little-endian when passing small structures.
9051 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
9053 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
9054 (struct ppc64_sysv_argpos): New data structure.
9055 (ppc64_sysv_abi_push_float): Remove.
9056 (ppc64_sysv_abi_push_val): New function.
9057 (ppc64_sysv_abi_push_integer): Likewise.
9058 (ppc64_sysv_abi_push_freg): Likewise.
9059 (ppc64_sysv_abi_push_vreg): Likewise.
9060 (ppc64_sysv_abi_push_param): Likewise.
9061 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
9062 (ppc64_sysv_abi_return_value_base): New function.
9063 (ppc64_sysv_abi_return_value): Refactor to use it.
9065 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
9067 * NEWS: Document new target powerpc64le-*-linux*.
9069 2014-02-04 Mark Kettenis <kettenis@gnu.org>
9071 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
9072 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
9074 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
9075 register set used in ELF core dumps. Add floating-point register set.
9077 2014-02-03 Kevin Buettner <kevinb@redhat.com>
9079 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
9080 dwarf2_to_gdb[] table using symbolic constants. Adjust
9081 penultimate entry from number representing the PC register
9082 to symbolic constant representing the MDR register. Add
9083 constant for the PC register to the end of the table.
9085 2014-02-03 Mark Kettenis <kettenis@gnu.org>
9087 * bsd-kvm.c: Include <sys/param.h>
9089 2014-02-03 Mark Kettenis <kettenis@gnu.org>
9091 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
9093 2014-01-31 Joel Brobecker <brobecker@adacore.com>
9095 * ada-lang.h (clear_ada_sym_cache): Delete.
9097 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
9099 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
9101 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
9103 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
9104 the sigreturn register save area only if the syscall is
9107 2014-01-29 Joel Brobecker <brobecker@adacore.com>
9109 * valops.c (value_slice): Minor reformatting.
9111 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
9113 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
9115 2014-01-28 Joel Brobecker <brobecker@adacore.com>
9117 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
9119 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
9120 (ada_ignore_descriptive_types_p): New static global.
9121 (find_parallel_type_by_descriptive_type): Return immediately
9122 if ada_ignore_descriptive_types_p is set.
9123 (_initialize_ada_language): Register new commands "maintenance
9124 set ada", "maintenance show ada", "maintenance set ada
9125 ignore-descriptive-types" and "maintenance show ada
9126 ignore-descriptive-types".
9127 * NEWS: Add entry for new "maint ada set/show
9128 ignore-descriptive-types" commands.
9130 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
9132 * record-btrace.c (record_btrace_close): Call btrace_teardown
9135 2014-01-27 Joel Brobecker <brobecker@adacore.com>
9137 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
9140 2014-01-27 Joel Brobecker <brobecker@adacore.com>
9142 * ada-typeprint (type_is_full_subrange_of_target_type):
9144 (print_range): Add parameter bounds_prefered_p. If not set,
9145 try printing range types using the name of their base type.
9146 (print_range_type): Add parameter bounds_prefered_p.
9147 Use it in call to print_range.
9148 (print_array_type, ada_print_type): Update calls to print_range
9149 and print_range_type.
9151 2014-01-27 Joel Brobecker <brobecker@adacore.com>
9153 * ada-typeprint.c (print_array_type, print_choices, print_range)
9154 (print_range_bound, print_dynamic_range_bound, print_range_type):
9157 2014-01-27 Joel Brobecker <brobecker@adacore.com>
9159 * ada-typeprint.c (print_range): Add missing empty line
9160 after local declaration.
9162 2014-01-27 Joel Brobecker <brobecker@adacore.com>
9164 * ada-valprint.c (print_optional_low_bound): Get index_type's
9165 target type for as long as it is a TYPE_CODE_RANGE.
9167 2014-01-27 Joel Brobecker <brobecker@adacore.com>
9169 * procfs.c (procfs_make_note_section): Remove assertion and
9172 2014-01-24 Yao Qi <yao@codesourcery.com>
9174 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
9175 * corelow.c (get_core_siginfo): Likewise.
9177 2014-01-24 Yao Qi <yao@codesourcery.com>
9179 * remote.c (remote_write_bytes_aux): Change type of 'len' to
9180 ULONGEST. Don't check 'len' is negative.
9181 (remote_write_bytes): Change type of 'len' to ULONGEST.
9183 2014-01-23 Tom Tromey <tromey@redhat.com>
9186 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
9187 Handle exception from frame.block.
9188 (FrameVars.fetch_frame_locals): Likewise.
9190 2014-01-23 Tom Tromey <tromey@redhat.com>
9193 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
9194 on a NULL pointer. Move "goto error" to correct place.
9196 2014-01-23 Tom Tromey <tromey@redhat.com>
9199 * python/py-framefilter.c (apply_frame_filter): Call
9200 ensure_python_env after computing gdbarch.
9202 2014-01-23 Yao Qi <yao@codesourcery.com>
9204 * target.c (raw_memory_xfer_partial): Change argument type
9205 from void * to gdb_byte *.
9206 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
9208 2014-01-22 Doug Evans <dje@google.com>
9210 New gdbserver option --debug-format=timestamp.
9213 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
9215 * syscalls/s390x-linux.xml: New file.
9216 * syscalls/s390-linux.xml: New file.
9217 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
9218 (XML_SYSCALL_FILENAME_S390X): Likewise.
9219 (op_svc): New enum value for SVC opcode.
9220 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
9221 (s390_linux_get_syscall_number): New function.
9222 (s390_gdbarch_init): Register '*get_syscall_number' and the
9223 syscall xml file name.
9224 * data-directory/Makefile.in (SYSCALLS_FILES): Add
9225 "s390-linux.xml" and "s390x-linux.xml".
9226 * NEWS: Announce new feature.
9228 2014-01-22 Baruch Siach <baruch@tkos.co.il>
9230 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
9232 2014-01-22 Pedro Alves <palves@redhat.com>
9234 * xtensa-config.c: Include defs.h.
9236 2014-01-22 Joel Brobecker <brobecker@adacore.com>
9238 * common/common-utils.h: Add "ARI:" comment beside __func__
9241 2014-01-22 Joel Brobecker <brobecker@adacore.com>
9243 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
9244 documentation a bit.
9246 2014-01-21 Roland McGrath <mcgrathr@google.com>
9248 * configure.ac: Call AM_PROG_INSTALL_STRIP.
9249 * configure: Regenerate.
9250 * aclocal.m4: Regenerate.
9251 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
9252 New substituted variables.
9253 (install-strip): New target.
9254 (INSTALL_SCRIPT): New substituted variable.
9255 (FLAGS_TO_PASS): Add it.
9256 (install-only): Use $(INSTALL_SCRIPT) rather than
9257 $(INSTALL_PROGRAM) for gcore.
9259 2014-01-20 Tom Tromey <tromey@redhat.com>
9261 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
9264 2014-01-20 Tom Tromey <tromey@redhat.com>
9266 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
9267 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
9268 (deprecated_cmd_warning, complete_on_cmdlist): Update.
9269 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
9270 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
9271 (struct cmd_list_element) <flags>: Remove.
9272 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
9273 doc_allocated>: New fields.
9274 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
9276 * maint.c (maintenance_do_deprecate): Update.
9277 * top.c (execute_command): Update.
9279 2014-01-20 Baruch Siach <baruch@tkos.co.il>
9281 * xtensa-linux-nat.c: Include asm/ptrace.h.
9283 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9285 * Makefile.in (SFILES): Add d-support.c.
9286 (COMMON_OBS): Add d-support.o.
9287 * d-lang.h (d_parse_symbol): Add comment, now defined in
9289 * d-lang.c (parse_call_convention)
9290 (parse_attributes, parse_function_types)
9291 (parse_function_args, parse_type, parse_identifier)
9292 (call_convention_p, d_parse_symbol): Move functions to ...
9293 * d-support.c: ... New file.
9295 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9297 * d-lang.h (d_parse_symbol): Add declaration.
9298 * d-lang.c (extract_identifiers)
9299 (extract_type_info): Remove functions.
9300 (parse_call_convention, parse_attributes)
9301 (parse_function_types, parse_function_args)
9302 (parse_type, parse_identifier, call_convention_p)
9303 (d_parse_symbol): New functions.
9304 (d_demangle): Use d_parse_symbol to demangle D symbols.
9306 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9308 * d-lang.h (struct builtin_d_type): New data type.
9309 (builtin_d_type): Add declaration.
9310 * d-lang.c (d_language_arch_info, build_d_types)
9311 (builtin_d_type): New functions.
9312 (enum d_primitive_types): New data type.
9313 (d_language_defn): Change c_language_arch_info to
9314 d_language_arch_info.
9315 (d_type_data): New static variable.
9316 (_initialize_d_language): Initialize d_type_data.
9318 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9320 * d-lang.h (d_main_name): Add declaration.
9321 * d-lang.c (d_main_name): New function.
9322 * symtab.c (find_main_name): Add call to d_main_name.
9324 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9326 * d-lang.c (d_language_defn): Change macro_expansion_c to
9329 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9331 * MAINTAINERS: Add myself as a write-after-approval maintainer.
9333 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
9335 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
9336 gdb_exception" declaration.
9337 * remote.c (getpkt_or_notif_sane): Likewise.
9339 2014-01-17 Doug Evans <dje@google.com>
9341 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
9342 function, contents of dirnames_to_char_ptr_vec_append moved here.
9343 (delim_string_to_char_ptr_vec): New function.
9344 (dirnames_to_char_ptr_vec_append): Rewrite.
9345 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
9347 2014-01-17 Doug Evans <dje@google.com>
9349 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
9351 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
9352 #include "common-utils.h".
9353 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
9354 * common/vec.h (VEC_ASSERT_PASS): Update.
9355 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
9356 (MACH_CHECK_ERROR): Update.
9358 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
9360 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
9362 * gdbarch.h: Regenerate.
9364 2014-01-16 Tom Tromey <tromey@redhat.com>
9366 * value.c (struct value) <regnum>: Move earlier.
9368 2014-01-16 Tom Tromey <tromey@redhat.com>
9370 * remote.c (extended_remote_create_inferior): Rename from
9371 extended_remote_create_inferior_1. Add "ops" argument. Remove
9374 2014-01-16 Pedro Alves <palves@redhat.com>
9376 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
9377 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
9380 2014-01-16 Doug Evans <dje@google.com>
9382 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
9384 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9386 * btrace.h (btrace_thread_flag): New.
9387 (struct btrace_thread_info) <flags>: New.
9388 * record-btrace.c (record_btrace_resume_thread)
9389 (record_btrace_find_thread_to_move, btrace_step_no_history)
9390 (btrace_step_stopped, record_btrace_start_replaying)
9391 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
9392 (record_btrace_find_resume_thread): New.
9393 (record_btrace_resume, record_btrace_wait): Extend.
9394 (record_btrace_can_execute_reverse): New.
9395 (record_btrace_open): Fail in non-stop mode.
9396 (record_btrace_set_replay): Split into this, ...
9397 (record_btrace_stop_replaying): ... this, ...
9398 (record_btrace_clear_histories): ... and this.
9399 (init_record_btrace_ops): Init to_can_execute_reverse.
9400 * NEWS: Announce it.
9402 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9404 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
9405 (forward_target_decr_pc_after_break)
9406 (target_decr_pc_after_break): New.
9407 * target.c (forward_target_decr_pc_after_break)
9408 (target_decr_pc_after_break): New.
9409 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
9410 instead of gdbarch_decr_pc_after_break.
9411 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
9412 instead of gdbarch_decr_pc_after_break.
9413 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
9414 instead of gdbarch_decr_pc_after_break.
9415 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
9416 instead of gdbarch_decr_pc_after_break.
9417 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
9418 instead of gdbarch_decr_pc_after_break.
9419 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
9420 instead of gdbarch_decr_pc_after_break.
9422 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9424 * btrace.c: Include regcache.h.
9425 (btrace_add_pc): New.
9426 (btrace_enable): Call btrace_add_pc.
9427 (btrace_is_empty): New.
9428 * btrace.h (btrace_is_empty): New.
9429 * record-btrace.c (require_btrace, record_btrace_info): Call
9432 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9434 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
9435 Support delta reads.
9436 (linux_disable_btrace): Change return type.
9437 * common/linux-btrace.h (linux_read_btrace): Change parameters
9438 and return type to allow error reporting. Update users.
9439 (linux_disable_btrace): Change return type. Update users.
9440 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
9442 (btrace_error): New.
9443 (btrace_block) <begin>: Comment on BEGIN == 0.
9444 * btrace.c (btrace_compute_ftrace): Start from the end of
9446 (btrace_stitch_trace, btrace_clear_history): New.
9447 (btrace_fetch): Read delta trace, return if replaying.
9448 (btrace_clear): Move clear history code to btrace_clear_history.
9449 (parse_xml_btrace): Throw an error if parsing failed.
9450 * target.h (struct target_ops) <to_read_btrace>: Change parameters
9451 and return type to allow error reporting.
9452 (target_read_btrace): Change parameters and return type to allow
9454 * target.c (target_read_btrace): Update.
9455 * remote.c (remote_read_btrace): Support delta reads. Pass
9457 * NEWS: Announce it.
9459 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9461 * record.h (record_btrace_frame_unwind)
9462 (record_btrace_tailcall_frame_unwind): New declarations.
9463 * dwarf2-frame: Include record.h
9464 (dwarf2_frame_cfa): Throw an error for btrace frames.
9465 * record-btrace.c: Include hashtab.h.
9466 (btrace_get_bfun_name): New.
9467 (btrace_call_history): Call btrace_get_bfun_name.
9468 (struct btrace_frame_cache): New.
9470 (bfcache_hash, bfcache_eq, bfcache_new): New.
9471 (btrace_get_frame_function): New.
9472 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
9473 (record_btrace_frame_this_id): Compute own id.
9474 (record_btrace_frame_prev_register): Provide PC, throw_error
9475 for all other registers.
9476 (record_btrace_frame_sniffer): Detect btrace frames.
9477 (record_btrace_tailcall_frame_sniffer): New.
9478 (record_btrace_frame_dealloc_cache): New.
9479 (record_btrace_frame_unwind): Add new functions.
9480 (record_btrace_tailcall_frame_unwind): New.
9481 (_initialize_record_btrace): Allocate cache.
9482 * btrace.c (btrace_clear): Call reinit_frame_cache.
9483 * NEWS: Announce it.
9485 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9487 * record-btrace.c (record_btrace_set_replay)
9488 (record_btrace_goto_begin, record_btrace_goto_end)
9489 (record_btrace_goto): New.
9490 (init_record_btrace_ops): Initialize them.
9491 * NEWS: Announce it.
9493 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9495 * record-btrace.c (record_btrace_find_new_threads)
9496 (record_btrace_thread_alive): New.
9497 (init_record_btrace_ops): Initialize to_find_new_threads and
9500 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9502 * record-btrace.c (record_btrace_resume): New.
9503 (record_btrace_wait): New.
9504 (init_record_btrace_ops): Initialize to_wait and to_resume.
9506 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9508 * record-btrace.c (record_btrace_xfer_partial)
9509 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
9510 (record_btrace_allow_memory_access): New.
9511 (init_record_btrace_ops): Initialize new methods.
9512 * target.c (raw_memory_xfer_partial): Bail out if target reports
9513 that this memory is not available.
9515 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9517 * target.h (target_ops) <to_insert_breakpoint>
9518 <to_remove_breakpoint>: Add target_ops parameter.
9519 (forward_target_insert_breakpoint): New.
9520 (forward_target_remove_breakpoint): New.
9521 (memory_remove_breakpoint, memory_insert_breakpoint):
9522 Add target_ops parameter.
9523 * target.c (target_insert_breakpoint): Split into this and ...
9524 (forward_target_insert_breakpoint): ... this.
9525 (target_remove_breakpoint): Split into this and ...
9526 (forward_target_remove_breakpoint): ... this.
9527 (debug_to_insert_breakpoint): Add target_ops parameter.
9528 Call forward_target_insert_breakpoint.
9529 (debug_to_remove_breakpoint): Add target_ops parameter.
9530 Call forward_target_remove_breakpoint.
9531 (update_current_target): Do not inherit or default to_insert_breakpoint
9532 and to_remove_breakpoint.
9533 * corelow.c (ignore): Add target_ops parameter.
9534 * exec.c (ignore): Add target_ops parameter.
9535 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
9536 Add target_ops parameter.
9537 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
9538 Add target_ops parameter.
9539 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
9540 Add target_ops parameter.
9541 * record-full.c (record_full_beneath_to_insert_breakpoint)
9542 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
9543 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
9544 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
9545 (record_full_core_remove_breakpoint): Add target_ops parameter.
9547 (record_full_beneath_to_insert_breakpoint_ops)
9548 (record_full_beneath_to_remove_breakpoint_ops)
9549 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
9550 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
9551 tmp_to_remove_breakpoint_ops,
9552 record_full_beneath_to_insert_breakpoint_ops, and
9553 record_full_beneath_to_remove_breakpoint_ops.
9554 * remote-m32r-sdi.c (m32r_insert_breakpoint)
9555 (m32r_remove_breakpoint): Add target_ops parameter.
9556 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
9557 Add target_ops parameter.
9558 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
9559 Add target_ops parameter.
9561 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
9562 Markus Metzger <markus.t.metzger@intel.com>
9564 * record-btrace.c: Include frame-unwind.h.
9565 (record_btrace_frame_unwind_stop_reason)
9566 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
9567 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
9569 (init_record_btrace_ops): Install it.
9571 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
9573 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
9576 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
9578 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
9581 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
9583 * frame-unwind.c: Include target.h.
9584 (frame_unwind_try_unwinder): New function with code from ...
9585 (frame_unwind_find_by_frame): ... here. New variable
9586 unwinder_from_target, call also target_get_unwinder)
9587 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
9588 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
9589 * target.h (struct target_ops): New fields to_get_unwinder and
9590 to_get_tailcall_unwinder.
9591 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
9593 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9595 * record-btrace.c (record_btrace_fetch_registers)
9596 (record_btrace_store_registers)
9597 (record_btrace_to_prepare_to_store): New.
9598 (init_record_btrace_ops): Add the above.
9600 2014-01-16 Tom Tromey <tromey@redhat.com>
9602 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
9603 * target.h (struct target_ops) <to_prepare_to_store>: Add
9605 (target_prepare_to_store): Add argument.
9606 * target.c (debug_to_prepare_to_store): Add argument.
9607 (update_current_target): Update.
9608 * remote.c (remote_prepare_to_store): Add 'self' argument.
9609 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
9610 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
9611 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
9612 * record-full.c (record_full_core_prepare_to_store): Add 'self'
9614 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
9615 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
9616 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
9617 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
9618 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
9620 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9622 * btrace.h (replay) <replay>: New.
9623 (btrace_is_replaying): New.
9624 * btrace.c (btrace_clear): Free replay iterator.
9625 (btrace_is_replaying): New.
9626 * record-btrace.c (record_btrace_is_replaying): New.
9627 (record_btrace_info): Print insn number if replaying.
9628 (record_btrace_insn_history): Start at replay position.
9629 (record_btrace_call_history): Start at replay position.
9630 (init_record_btrace_ops): Init to_record_is_replaying.
9632 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9634 * record-btrace.c (record_btrace_insn_history_range): Include
9636 (record_btrace_insn_history_from): Adjust range.
9637 (record_btrace_call_history_range): Include
9639 (record_btrace_call_history_from): Adjust range.
9640 * NEWS: Announce changes.
9642 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9644 * record.h (enum record_print_flag)
9645 <record_print_indent_calls>: New.
9646 * record.c (get_call_history_modifiers): Recognize /c modifier.
9647 (_initialize_record): Document /c modifier.
9648 * record-btrace.c (btrace_call_history): Add btinfo parameter.
9649 Reorder fields. Optionally indent the function name. Update
9651 * NEWS: Announce changes.
9653 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9655 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
9657 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9659 * btrace.c (ftrace_new_function): Start counting at one.
9660 * record-btrace.c (record_btrace_info): Adjust number of calls
9662 * NEWS: Announce it.
9664 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9666 * record-btrace.c (btrace_call_history_insn_range): Print
9667 insn range as [begin, end].
9669 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9671 * btrace.h (struct btrace_func_link): New.
9672 (enum btrace_function_flag): New.
9673 (struct btrace_inst): Rename to ...
9674 (struct btrace_insn): ...this. Update all users.
9675 (struct btrace_func) <ibegin, iend>: Remove.
9676 (struct btrace_func_link): New.
9677 (struct btrace_func): Rename to ...
9678 (struct btrace_function): ...this. Update all users.
9679 (struct btrace_function) <segment, flow, up, insn, insn_offset)
9680 (number, level, flags>: New.
9681 (struct btrace_insn_iterator): Rename to ...
9682 (struct btrace_insn_history): ...this.
9684 (struct btrace_insn_iterator, btrace_call_iterator): New.
9685 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
9686 (struct btrace_target_info) <begin, end, level>
9687 <insn_history, call_history>: New.
9688 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
9689 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
9690 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
9691 (btrace_call_number, btrace_call_begin, btrace_call_end)
9692 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
9693 (btrace_find_function_by_number, btrace_set_insn_history)
9694 (btrace_set_call_history): New.
9695 * btrace.c (btrace_init_insn_iterator)
9696 (btrace_init_func_iterator, compute_itrace): Remove.
9697 (ftrace_print_function_name, ftrace_print_filename)
9698 (ftrace_skip_file): Change
9700 (ftrace_init_func): Remove.
9701 (ftrace_debug): Use new btrace_function fields.
9702 (ftrace_function_switched): Also consider gaining and
9703 losing symbol information).
9704 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
9705 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
9706 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
9708 (ftrace_new_function): Move. Remove debug print.
9709 (ftrace_update_lines, ftrace_update_insns): New.
9710 (ftrace_update_function): Check for call, ret, and jump.
9711 (compute_ftrace): Renamed to ...
9712 (btrace_compute_ftrace): ...this. Rewritten to compute call
9714 (btrace_fetch, btrace_clear): Updated.
9715 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
9716 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
9717 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
9718 (btrace_call_number, btrace_call_begin, btrace_call_end)
9719 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
9720 (btrace_find_function_by_number, btrace_set_insn_history)
9721 (btrace_set_call_history): New.
9722 * record-btrace.c (require_btrace): Use new btrace thread
9724 (record_btrace_info, btrace_insn_history)
9725 (record_btrace_insn_history, record_btrace_insn_history_range):
9726 Use new btrace thread info fields and new iterator.
9727 (btrace_func_history_src_line): Rename to ...
9728 (btrace_call_history_src_line): ...this. Use new btrace
9730 (btrace_func_history): Rename to ...
9731 (btrace_call_history): ...this. Use new btrace thread info
9732 fields and new iterator.
9733 (record_btrace_call_history, record_btrace_call_history_range):
9734 Use new btrace thread info fields and new iterator.
9736 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9738 * frame.h (frame_id_build_unavailable_stack_special): New.
9739 * frame.c (frame_id_build_unavailable_stack_special): New.
9741 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9743 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
9744 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
9745 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
9747 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
9748 (i386_insn_is_jump, i386_jmp_p): New.
9749 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
9750 insn_is_jump to gdbarch.
9751 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
9752 * gdbarch.h: Regenerated.
9753 * gdbarch.c: Regenerated.
9754 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
9755 (default_insn_is_jump): New.
9756 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
9757 (default_insn_is_jump): New.
9759 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9761 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
9763 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
9764 (btrace_read_type) <btrace_read_new>: Change to ...
9765 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
9767 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9769 * common/linux-btrace.c (linux_read_btrace): Free trace from
9772 2014-01-15 Doug Evans <dje@google.com>
9774 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
9777 2014-01-15 Tom Tromey <tromey@redhat.com>
9779 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
9780 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
9781 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
9782 (set_objfile_main_name): New function.
9783 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
9784 language_of_main>: New fields.
9785 (set_objfile_main_name): Declare.
9786 * symtab.c (find_main_name): Loop over objfiles to find the main
9788 (set_main_name): Now static.
9789 (get_main_info): Add comment.
9790 * symtab.h (set_main_name): Don't declare.
9792 2014-01-15 Tom Tromey <tromey@redhat.com>
9794 * symtab.c (main_progspace_key): New global.
9795 (struct main_info): New.
9796 (name_of_main, language_of_main): Remove.
9797 (get_main_info, main_info_cleanup): New function.
9798 (set_main_name, main_name, main_language): Use get_main_info.
9799 (_initialize_symtab): Initialize main_progspace_key.
9801 2014-01-15 Tom Tromey <tromey@redhat.com>
9803 * dbxread.c (process_one_symbol): Update.
9804 * dwarf2read.c (read_partial_die): Update.
9805 * symfile.c (set_initial_language): Call main_language.
9806 * symtab.c (language_of_main): Now static.
9807 (set_main_name): Add 'lang' parameter.
9808 (find_main_name): Update.
9809 (main_language): New function.
9810 (symtab_observer_executable_changed): Update.
9811 * symtab.h (set_main_name): Update.
9812 (language_of_main): Remove.
9813 (main_language): Declare.
9815 2014-01-15 Tom Tromey <tromey@redhat.com>
9817 * symfile.c (init_entry_point_info): Use new "initialized" field.
9819 * objfiles.h (struct entry_point) <initialized>: New field.
9820 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
9821 (struct objfile) <ei>: ...here. Remove.
9822 * objfiles.c (entry_point_address_query): Update.
9824 2014-01-15 Tom Tromey <tromey@redhat.com>
9826 * objfiles.c (entry_point_address_query): Relocate entry point
9828 (objfile_relocate1): Do not relocate entry point address.
9829 * objfiles.h (struct entry_info) <entry_point>: Update comment.
9830 <the_bfd_section_index>: New field.
9831 * symfile.c (init_entry_point_info): Find the entry point's
9834 2014-01-15 Tom Tromey <tromey@redhat.com>
9836 * solib-frv.c (enable_break): Use entry_point_address_query.
9838 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
9840 * NEWS: Add note on improved process record-replay on
9841 arm*-linux* targets.
9843 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
9845 * arm-tdep.c (enum arm_record_result): New enum.
9846 (arm_record_unsupported_insn): New function.
9847 (arm_record_coproc_data_proc): Removed.
9848 (thumb2_record_ld_st_multiple): New function.
9849 (thumb2_record_ld_st_dual_ex_tbb): New function.
9850 (thumb2_record_data_proc_sreg_mimm): New function.
9851 (thumb2_record_ps_dest_generic): New function.
9852 (thumb2_record_branch_misc_cntrl): New function.
9853 (thumb2_record_str_single_data): New function.
9854 (thumb2_record_ld_mem_hints): New function.
9855 (thumb2_record_ld_word): New function.
9856 (thumb2_record_lmul_lmla_div): New function.
9857 (thumb2_record_decode_insn_handler): New function.
9858 (decode_insn): Add thumb32 instruction handlers.
9860 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
9862 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
9863 (struct arm_linux_record_tdep): Declare.
9864 (arm_canonicalize_syscall): New function.
9865 (arm_all_but_pc_registers_record): New function.
9866 (arm_linux_syscall_record): New function.
9867 (arm_linux_init_abi): Add syscall recording constructs.
9868 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
9869 decoding. (arm_record_coproc_data_proc): Update arm syscall
9871 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
9872 <arm_syscall_record>: New field.
9873 * configure.tgt (arm*-*-linux*): Add linux-record.o to
9876 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
9878 * arm-tdep.c (thumb_record_misc): Update to use sp as base
9879 register for push instruction recording.
9881 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
9883 * arm-tdep.c (thumb_record_misc): Update to correct logical
9884 error while recording ldm, ldmia and pop instructions.
9886 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
9888 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
9890 2014-01-15 Pedro Alves <palves@redhat.com>
9892 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
9893 (go32_resume, go32_fetch_registers, store_register)
9894 (go32_store_registers, go32_prepare_to_store)
9895 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
9896 (go32_create_inferior, go32_can_run, go32_terminal_init)
9897 (go32_terminal_inferior, go32_terminal_ours): Delete forward
9900 2014-01-15 Tom Tromey <tromey@redhat.com>
9902 * target.h (async_callback_ftype): New typedef.
9903 (struct target_ops) <to_async>: Use it.
9905 2014-01-15 Joel Brobecker <brobecker@adacore.com>
9907 * python/py-value.c (get_field_type): Remove unnecessary curly
9908 braces for single-statement if block.
9910 2014-01-15 Joel Brobecker <brobecker@adacore.com>
9912 * python/py-type.c (convert_field): Add missing empty line
9915 2014-01-14 Doug Evans <dje@google.com>
9917 * symfile.h (expand_symtabs_matching): Renamed from
9918 expand_partial_symbol_names. Update prototype.
9919 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
9920 * symfile.c (expand_symtabs_matching): Renamed from
9921 expand_partial_symbol_names. New args file_matcher, kind.
9922 Rename arg fun to symbol_matcher.
9923 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
9924 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
9925 ada_expand_partial_symbol_name.
9926 (ada_make_symbol_completion_list): Update to call
9927 expand_symtabs_matching.
9928 (ada_add_global_exceptions): Call expand_symtabs_matching.
9929 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
9930 call map_symbol_filenames.
9931 * symtab.c (sources_info): Update to call map_symbol_filenames.
9932 (search_symbols): Call expand_symtabs_matching.
9933 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
9934 (default_make_symbol_completion_list_break_on): Update to call
9935 expand_symtabs_matching.
9936 (make_source_files_completion_list): Update to call
9937 map_symbol_filenames.
9939 2014-01-14 Doug Evans <dje@google.com>
9941 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
9942 (expand_symtabs_symbol_matcher_ftype): New typedef.
9943 (quick_symbol_functions.expand_symtabs_matching): Update to use.
9944 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
9945 * symfile.c (expand_partial_symbol_names): Update to use
9946 expand_symtabs_symbol_matcher_ftype.
9947 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
9948 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
9949 Arg name_matcher renamed to symbol_matcher.
9950 * psymtab.c (recursively_search_psymtabs): Update to use
9951 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
9953 (expand_symtabs_matching_via_partial): Update to use
9954 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
9955 Arg name_matcher renamed to symbol_matcher.
9957 2014-01-14 Doug Evans <dje@google.com>
9959 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
9960 (map_partial_symbol_filenames): Ditto.
9961 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
9962 (map_partial_symbol_filenames): Ditto.
9963 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
9964 (map_partial_symbol_filenames): Ditto.
9965 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
9966 (map_partial_symbol_filenames): Ditto.
9967 * symtab.c: Delete #include "psymtab.h".
9969 2014-01-14 Pedro Alves <palves@redhat.com>
9970 Tom Tromey <tromey@redhat.com>
9972 * infrun.c (use_displaced_stepping): Use find_record_target
9973 instead of RECORD_IS_USED.
9974 (adjust_pc_after_break): Use record_full_is_used instead of
9976 * record-btrace.c (record_btrace_open): Call record_preopen
9977 instead of checking RECORD_IS_USED.
9978 * record-full.c (record_full_shortname)
9979 (record_full_core_shortname): New globals.
9980 (record_full_is_used): New function.
9981 (find_full_open): Call record_preopen instead of checking
9983 (init_record_full_ops): Set the target's shortname to
9984 record_full_shortname.
9985 (init_record_full_core_ops): Set the target's shortname to
9986 record_full_core_shortname.
9987 * record-full.h (record_full_is_used): Declare.
9988 * record.c (find_record_target): Make extern.
9989 (record_preopen): New function.
9990 * record.h (RECORD_IS_USED): Delete macro.
9991 (find_record_target, record_preopen): Declare functions.
9993 2014-01-14 Yao Qi <yao@codesourcery.com>
9995 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
9996 'len''s type to ULONGEST.
9997 (core_xfer_shared_libraries_aix): Likewise.
9998 * gdbarch.c, gdbarch.h: Regenerated.
9999 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
10000 Change type of 'len' to ULONGEST.
10001 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
10002 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
10004 2014-01-14 Yao Qi <yao@codesourcery.com>
10006 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
10007 type of 'len' to ULONGEST.
10008 (linux_xfer_osdata_processgroups): Likewise.
10009 (linux_xfer_osdata_threads): Likewise.
10010 (linux_xfer_osdata_fds): Likewise.
10011 (linux_xfer_osdata_isockets): Likewise.
10012 (linux_xfer_osdata_shm): Likewise.
10013 (linux_xfer_osdata_sem): Likewise.
10014 (linux_xfer_osdata_msg): Likewise.
10015 (linux_common_xfer_osdata): Likewise.
10016 (struct osdata_type) <getter>: Likewise.
10017 * common/linux-osdata.h (linux_common_xfer_osdata): Update
10020 2014-01-14 Yao Qi <yao@codesourcery.com>
10022 * target.h (target_xfer_partial_ftype): Update.
10023 (struct target_ops) <to_xfer_partial>: Change 'len' type to
10025 * aix-thread.c (aix_thread_xfer_partial): Change type of
10026 argument 'len' to ULONGEST.
10027 * auxv.c (procfs_xfer_auxv): Likewise.
10028 (ld_so_xfer_auxv): Likewise.
10029 (memory_xfer_auxv): Likewise.
10030 * bfd-target.c (target_bfd_xfer_partial): Likewise.
10031 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10032 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
10033 * corelow.c (core_xfer_partial): Likewise.
10034 * ctf.c (ctf_xfer_partial): Likewise.
10035 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
10037 (darwin_read_dyld_info): Likewise.
10038 (darwin_xfer_partial): Likewise.
10039 * exec.c (section_table_xfer_memory_partial): Likewise.
10040 (exec_xfer_partial): Likewise.
10041 * exec.h (section_table_xfer_memory_partial): Update
10043 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
10044 instead of plongest.
10045 (gnu_xfer_partial): Likewise.
10046 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
10047 (ia64_hpux_xfer_solib_got): Likewise.
10048 (ia64_hpux_xfer_partial): Likewise.
10049 * ia64-linux-nat.c (ia64_linux_xfer_partial):
10050 * inf-ptrace.c (inf_ptrace_xfer_partial):
10051 * inf-ttrace.c (inf_ttrace_xfer_partial):
10052 * linux-nat.c (linux_xfer_siginfo): Likewise.
10053 (linux_nat_xfer_partial): Likewise.
10054 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
10055 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
10056 * monitor.c (monitor_xfer_memory): Likewise.
10057 (monitor_xfer_partial): Likewise.
10058 * procfs.c (procfs_xfer_partial): Likewise.
10059 * record-full.c (record_full_xfer_partial): Likewise.
10060 (record_full_core_xfer_partial): Likewise.
10061 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
10062 instead of plongest.
10063 (gdbsim_xfer_partial): Likewise.
10064 * remote.c (remote_xfer_partial): Likewise.
10065 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
10066 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
10068 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10069 (rs6000_xfer_shared_libraries): Likewise.
10070 * sol-thread.c (sol_thread_xfer_partial): Likewise.
10071 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10072 (sparc_xfer_partial): Likewise.
10073 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10074 (spu_xfer_partial): Likewise.
10075 * spu-multiarch.c (spu_xfer_partial): Likewise.
10076 * target.c (target_read_live_memory): Likewise.
10077 (memory_xfer_live_readonly_partial): Likewise.
10078 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
10079 (target_xfer_partial, default_xfer_partial): Likewise.
10080 (current_xfer_partial): Likewise.
10081 * tracepoint.c (tfile_xfer_partial): Likewise.
10082 * windows-nat.c (windows_xfer_memory): Likewise. Call
10083 pulongest instead of plongest.
10084 (windows_xfer_partial): Likewise.
10085 (windows_xfer_shared_libraries): Likewise.
10087 2014-01-14 Yao Qi <yao@codesourcery.com>
10089 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
10090 target_xfer_partial_ftype.
10092 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
10096 * valops.c (value_struct_elt_bitpos): New function
10097 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
10098 object to 'None' if the field name is an empty string ("").
10099 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
10100 attribute to look for a field when 'name' is 'None'.
10101 (get_field_type): New function
10103 2014-01-13 Doug Evans <dje@google.com>
10106 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
10107 (try_open_dwop_file): Ditto.
10108 * gdb_bfd.c: #include "vec.h".
10109 (bfdp): New typedef.
10110 (struct gdb_bfd_data): New member included_bfds.
10111 (gdb_bfd_unref): Unref all included bfds.
10112 (gdb_bfd_record_inclusion): New function.
10113 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
10115 2014-01-13 Tom Tromey <tromey@redhat.com>
10117 * gdbcore.h (deprecated_core_resize_section_table): Remove.
10119 2014-01-13 Tom Tromey <tromey@redhat.com>
10121 * defs.h (use_windows): Remove.
10122 * gdb.c (main): Update.
10123 * main.c (captured_main, gdb_main): Update.
10124 * main.h (struct captured_main_args) <use_windows>: Remove.
10125 * top.c (use_windows): Remove.
10127 2014-01-13 Tom Tromey <tromey@redhat.com>
10129 * defs.h (deprecated_flush_hook): Remove.
10131 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10134 * linux-thread-db.c (try_thread_db_load): Add parameter
10135 check_auto_load_safe. Move here the file_is_auto_load_safe call.
10136 (try_thread_db_load_from_pdir_1): Move it there from here.
10137 (try_thread_db_load_from_sdir): Update caller.
10138 (try_thread_db_load_from_dir): Move it there from here.
10140 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
10142 * regformats/regdat.sh: Always rewrite the register file.
10144 2014-01-13 Pedro Alves <palves@redhat.com>
10146 * Makefile.in (CHECK_HEADERS): New variable.
10147 (check-headers:): New rule.
10149 2014-01-13 Tom Tromey <tromey@redhat.com>
10151 * cli/cli-setshow.c (do_set_command): Update.
10152 * defs.h (deprecated_set_hook): Remove.
10153 * top.c (deprecated_set_hook): Remove.
10155 2014-01-13 Pedro Alves <palves@redhat.com>
10157 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
10158 the tracepoint if the PC is a pseudo-register.
10160 2014-01-13 Tom Tromey <tromey@redhat.com>
10162 * defs.h (XCALLOC): Remove.
10163 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
10164 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
10165 * dwarf2loc.c (allocate_piece_closure): Likewise.
10166 * elfread.c (elf_symfile_segments): Likewise.
10167 (elf_symfile_segments): Likewise.
10168 * gdbtypes.c (copy_type_recursive): Likewise.
10169 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
10170 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
10171 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
10173 * mt-tdep.c (mt_gdbarch_init): Likewise.
10174 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
10176 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
10177 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
10178 * registry.c (registry_alloc_data): Likewise.
10179 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
10180 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
10181 * serial.c (serial_fdopen_ops): Likewise.
10182 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
10184 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
10185 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
10188 2014-01-13 Tom Tromey <tromey@redhat.com>
10190 * defs.h (XMALLOC): Remove.
10191 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
10192 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
10193 * cli-out.c (struct ui_out *): Likewise.
10194 * cli/cli-dump.c (add_dump_command): Likewise.
10195 (add_dump_command): Likewise.
10196 * complaints.c (get_complaints): Likewise.
10197 (find_complaint): Likewise.
10198 * dwarf2-frame.c (execute_cfa_program): Likewise.
10199 * dwarf2read.c (abbrev_table_read_table): Likewise.
10200 * gdbarch.sh: Likewise.
10201 * gdbarch.c: Rebuild.
10202 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
10203 * interps.c (interp_new): Likewise.
10204 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
10205 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
10206 * mi/mi-console.c (mi_console_file_new): Likewise.
10207 * mi/mi-interp.c (mi_interpreter_init): Likewise.
10208 * mi/mi-out.c (mi_out_new): Likewise.
10209 * mi/mi-parse.c (mi_parse): Likewise.
10210 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
10211 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
10212 * observer.c (xalloc_observer_list_node): Likewise.
10213 * regcache.c (regcache_xmalloc_1): Likewise.
10214 * reggroups.c (reggroup_new): Likewise.
10215 (_initialize_reggroup): Likewise.
10216 * registry.c (register_data_with_cleanup): Likewise.
10217 * remote.c (remote_notif_stop_alloc_reply): Likewise.
10218 * ser-base.c (serial_ttystate): Likewise.
10219 * ser-mingw.c (make_pipe_state): Likewise.
10220 * ser-pipe.c (pipe_open): Likewise.
10221 * serial.c (serial_open): Likewise.
10222 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
10223 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
10224 (tui_alloc_win_info): Likewise.
10225 (tui_add_content_elements): Likewise.
10226 * tui/tui-file.c (tui_file_new): Likewise.
10227 * tui/tui-out.c (tui_out_new): Likewise.
10228 * ui-file.c (mem_file_new): Likewise.
10229 * ui-out.c (push_level): Likewise.
10230 (make_cleanup_ui_out_end): Likewise.
10231 (append_header_to_list): Likewise.
10232 (ui_out_new): Likewise.
10233 * user-regs.c (user_reg_add_builtin): Likewise.
10235 2014-01-13 Tom Tromey <tromey@redhat.com>
10237 * defs.h (XZALLOC): Remove.
10238 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
10239 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
10240 (get_ada_tasks_inferior_data): Likewise.
10241 * auto-load.c (get_auto_load_pspace_data): Likewise.
10242 * auxv.c (get_auxv_inferior_data): Likewise.
10243 * bfd-target.c (target_bfd_reopen): Likewise.
10244 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
10245 (deprecated_insert_raw_breakpoint): Likewise.
10246 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
10247 * corelow.c (core_open): Likewise.
10248 * darwin-nat.c (darwin_check_new_threads): Likewise.
10249 (darwin_attach_pid): Likewise.
10250 * dummy-frame.c (dummy_frame_push): Likewise.
10251 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
10252 * dwarf2loc.c (allocate_piece_closure): Likewise.
10253 * elfread.c (elf_symfile_segments): Likewise.
10254 * eval.c (ptrmath_type_p): Likewise.
10255 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
10256 * gdbtypes.c (alloc_type_arch): Likewise.
10257 (alloc_type_instance): Likewise.
10258 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
10259 * inf-child.c (inf_child_can_use_agent): Likewise.
10260 * inflow.c (get_inflow_inferior_data): Likewise.
10261 * infrun.c (save_infcall_suspend_state): Likewise.
10262 * jit.c (jit_reader_load): Likewise.
10263 (get_jit_objfile_data): Likewise.
10264 (get_jit_program_space_data): Likewise.
10265 (jit_object_open_impl): Likewise.
10266 (jit_symtab_open_impl): Likewise.
10267 (jit_block_open_impl): Likewise.
10268 (jit_frame_sniffer): Likewise.
10269 * linux-fork.c (add_fork): Likewise.
10270 * maint.c (make_command_stats_cleanup): Likewise.
10271 * objfiles.c (get_objfile_pspace_data): Likewise.
10272 * opencl-lang.c (struct lval_closure): Likewise.
10273 * osdata.c (osdata_start_osdata): Likewise.
10274 * progspace.c (new_address_space): Likewise.
10275 (add_program_space): Likewise.
10276 * remote-sim.c (get_sim_inferior_data): Likewise.
10277 * sh-tdep.c (sh_gdbarch_init): Likewise.
10278 * skip.c (Ignore): Likewise.
10279 (skip_delete_command): Likewise.
10280 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
10281 (library_list_start_library): Likewise.
10282 (solib_aix_current_sos): Likewise.
10283 * solib-darwin.c (get_darwin_info): Likewise.
10284 (darwin_current_sos): Likewise.
10285 * solib-dsbt.c (get_dsbt_info): Likewise.
10286 * solib-ia64-hpux.c (new_so_list): Likewise.
10287 (ia64_hpux_get_solib_linkage_addr): Likewise.
10288 * solib-spu.c (append_ocl_sos): Likewise.
10289 (spu_current_sos): Likewise.
10290 * solib-svr4.c (get_svr4_info): Likewise.
10291 (svr4_keep_data_in_core): Likewise.
10292 (library_list_start_library): Likewise.
10293 (svr4_default_sos): Likewise.
10294 (svr4_read_so_list): Likewise.
10295 * solib-target.c (library_list_start_library): Likewise.
10296 (solib_target_current_sos): Likewise.
10297 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
10298 * symfile-debug.c (install_symfile_debug_logging): Likewise.
10299 * symfile.c (default_symfile_segments): Likewise.
10300 * target-descriptions.c (tdesc_data_init): Likewise.
10301 (tdesc_create_reg): Likewise.
10302 (struct tdesc_type *): Likewise.
10303 (tdesc_create_vector): Likewise.
10304 (tdesc_set_struct_size): Likewise.
10305 (struct tdesc_type *): Likewise.
10306 (tdesc_free_feature): Likewise.
10307 (tdesc_create_feature): Likewise.
10308 * windows-nat.c (windows_add_thread): Likewise.
10309 (windows_make_so): Likewise.
10310 * xml-support.c (gdb_xml_body_text): Likewise.
10311 (gdb_xml_create_parser_and_cleanup): Likewise.
10312 (xml_process_xincludes): Likewise.
10313 * xml-syscall.c (allocate_syscalls_info): Likewise.
10314 (syscall_create_syscall_desc): Likewise.
10316 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
10318 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
10319 function, with code from i386_stap_parse_special_token.
10320 (i386_stap_parse_special_token_three_arg_disp): Likewise.
10321 (i386_stap_parse_special_token): Move code to the two functions
10322 above; simplify it.
10324 2014-01-09 Pedro Alves <palves@redhat.com>
10325 Hui Zhu <hui@codesourcery.com>
10328 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
10329 bp_err_string. Don't mark the location shlib_disabled if the
10330 error thrown wasn't a generic or memory error. Catch errors
10331 thrown while inserting breakpoints in overlayed code. Output
10332 error message of software breakpoints.
10333 * remote.c (remote_insert_breakpoint): If this breakpoint has
10334 target-side commands but this stub doesn't support Z0 packets,
10335 throw NOT_SUPPORTED_ERROR error.
10336 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
10337 * target.h (target_insert_breakpoint): Extend comment.
10338 (target_insert_hw_breakpoint): Add comment.
10340 2014-01-08 Pedro Alves <palves@redhat.com>
10342 * remote.c (remote_add_thread): Add threads silently if starting
10344 (remote_notice_new_inferior): If in all-stop, and starting up,
10345 don't call notice_new_inferior.
10346 (get_current_thread): New function, factored out from ...
10347 (add_current_inferior_and_thread): ... this. Adjust.
10348 (remote_start_remote) <all-stop>: Fetch the thread list. If we
10349 found any thread, then select the remote's current thread as GDB's
10350 current thread too.
10352 2014-01-08 Joel Brobecker <brobecker@adacore.com>
10354 * NEWS: Create a new section for the next release branch.
10355 Rename the section of the current branch, now that it has
10358 2014-01-08 Joel Brobecker <brobecker@adacore.com>
10360 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
10361 * version.in: Bump version to 7.7.50.DATE-cvs.
10363 2014-01-08 Yao Qi <yao@codesourcery.com>
10365 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
10366 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
10367 (spu_xfer_partial): Cast 'buf' to 'const char *'.
10369 2014-01-08 Yao Qi <yao@codesourcery.com>
10371 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
10372 return value of bfd_get_filename to symbol_file_add_from_bfd.
10374 2014-01-08 Pierre Muller <muller@sourceware.org>
10377 * coff-pe-read.c (struct read_pe_section_data): Add index field.
10378 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
10379 to prim_record_mininal_symbol_and_info.
10380 (add_pe_forwarded_sym): Use known section number of forwarded symbol
10381 in call to prim_record_minimal_symbol_and_info.
10382 (read_pe_exported_syms): Set index field of section_data.
10384 2014-01-07 Andrew Pinski <apinski@cavium.com>
10386 * features/aarch64-core.xml (cpsr): Change to be 64bit.
10387 * features/aarch64.c: Regenerate.
10389 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
10391 * target.c (return_null): Define.
10392 (update_current_target): Use it instead of return_zero for
10393 functions that return a pointer.
10395 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
10397 * source.c (add_path): Fix check for duplicated paths in the previously
10400 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
10402 * ada-lang.c: Remove duplicated include statements.
10403 * alphabsd-nat.c: Ditto.
10404 * amd64-darwin-tdep.c: Ditto.
10405 * amd64fbsd-nat.c: Ditto.
10406 * auto-load.c: Ditto.
10408 * breakpoint.c: Ditto.
10409 * dbxread.c: Ditto.
10410 * fork-child.c: Ditto.
10411 * gdb_usleep.c: Ditto.
10412 * i386-darwin-tdep.c: Ditto.
10413 * i386fbsd-nat.c: Ditto.
10415 * inferior.c: Ditto.
10416 * jv-lang.c: Ditto.
10417 * linux-nat.c: Ditto.
10418 * linux-tdep.c: Ditto.
10419 * m68kbsd-nat.c: Ditto.
10420 * m68klinux-nat.c: Ditto.
10421 * microblaze-tdep.c: Ditto.
10422 * mips-linux-tdep.c: Ditto.
10423 * mn10300-tdep.c: Ditto.
10424 * nto-tdep.c: Ditto.
10425 * opencl-lang.c: Ditto.
10427 * printcmd.c: Ditto.
10428 * regcache.c: Ditto.
10429 * remote-m32r-sdi.c: Ditto.
10431 * symfile.c: Ditto.
10433 * tilegx-linux-nat.c: Ditto.
10434 * tilegx-tdep.c: Ditto.
10435 * tracepoint.c: Ditto.
10437 * vaxbsd-nat.c: Ditto.
10438 * windows-nat.c: Ditto.
10439 * xtensa-tdep.c: Ditto.
10441 2014-01-07 Yao Qi <yao@codesourcery.com>
10443 * spu-linux-nat.c (_initialize_spu_nat): Declare.
10445 2014-01-07 Yao Qi <yao@codesourcery.com>
10446 Joel Brobecker <brobecker@adacore.com>
10448 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
10449 (pdc_write_regs): Likewise.
10450 (fetch_regs_kernel_thread): Likewise.
10451 (store_regs_kernel_thread): Likewise.
10453 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10455 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
10456 tagged type objects to their actual type.
10458 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10460 * ada-valprint.c (print_field_values): Add "language" parameter.
10461 Update calls to print_field_values and print_variant_part.
10462 Pass new parameter "language" in call to val_print instead
10463 of "current_language". Replace call to ada_val_print by call
10465 (print_variant_part): Add "language" parameter.
10466 (ada_val_print_struct_union): Update call to print_field_values.
10468 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10470 * ada-valprint.c (ui_memcpy): Delete.
10471 (ada_print_floating): Update documentation. Add empty line
10472 between between function documentation and implementation.
10473 Delete variable "buffer". Use ui_file_xstrdup in place of
10474 ui_file_put. Minor adjustments following this change.
10476 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10478 * ada-valprint.c (ada_val_print_string): New function,
10479 extracted from ada_val_print_array.
10480 (ada_val_print_array): Replace extracted code by call
10481 to ada_val_print_string followed by a return. Move
10482 "else" branch to the function's top block.
10484 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10486 * ada-valprint.c (ada_val_print_array): Move implementation
10487 down. Rename parameter "offset" and "val" into "offset_aligned"
10488 and "original_value" respectively. Add parameter "offset".
10490 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10492 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
10493 re-organizing the code. Change the "???" message printed
10494 when target type is a TYPE_CODE_UNDEF into
10495 "<ref to undefined type>".
10497 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10499 * ada-valprint.c (print_record): Delete, implementation inlined...
10500 (ada_val_print_struct_union): ... here. Remove call to
10501 ada_check_typedef in inlined implementation.
10503 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10505 * ada-valprint.c (ada_val_print_gnat_array): New function,
10506 extracted from ada_val_print_1;
10507 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
10508 (ada_val_print_flt, ada_val_print_struct_union)
10509 (ada_val_print_ref): Likewise.
10510 (ada_val_print_1): Delete variables i and elttype.
10511 Replace extracted-out code by call to corresponding
10514 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10516 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
10518 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10520 * ada-valprint.c (ada_val_print_1): Replace calls to
10521 ada_val_print_1 by calls to val_print.
10523 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10525 * ada-valprint.c (ada_val_print_1): Add parameter "language".
10526 Update calls to self accordingly. Replace calls to c_val_print
10527 by calls to val_print.
10529 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10531 * ada-valprint.c (print_record): Delete declaration.
10532 (adjust_type_signedness, ada_val_print_1): Likewise.
10533 (ada_val_print): Move function implementation down.
10534 (print_variant_part, print_field_values, print_record):
10535 Move function implementation up.
10537 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10539 * python/py-type.c (typy_get_name): New function.
10540 (type_object_getset): Add entry for attribute "name".
10541 * NEWS: Add entry mentioning this new attribute.
10543 2014-01-07 Yao Qi <yao@codesourcery.com>
10545 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
10548 2014-01-07 Yao Qi <yao@codesourcery.com>
10550 * gnu-nat.c (info_port_rights): Add qualifier const to
10553 2014-01-07 Yao Qi <yao@codesourcery.com>
10555 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
10557 2014-01-07 Yao Qi <yao@codesourcery.com>
10559 * gnu-nat.c (make_inf) Update declaration.
10560 (make_inf): Make it static.
10561 (inf_set_traced): Likewise.
10562 (inf_port_to_thread, inf_task_died_status): Likewise.
10564 2014-01-07 Yao Qi <yao@codesourcery.com>
10566 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
10568 2014-01-07 Yao Qi <yao@codesourcery.com>
10570 * gnu-nat.c (_initialize_gnu_nat): Declare.
10572 2014-01-07 Yao Qi <yao@codesourcery.com>
10574 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
10576 (struct gdbarch_info) <byte_order>: Change type to
10578 <byte_order_for_code>: Likewise.
10579 * gdbarch.c, gdbarch.h: Regenerated.
10581 2014-01-06 Sasha Smundak <asmundak@google.com>
10583 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
10585 2014-01-06 Tom Tromey <tromey@redhat.com>
10587 * doublest.c (convert_doublest_to_floatformat): Use const, not
10589 * somread.c (som_symtab_read): Likewise.
10591 2014-01-07 Hui Zhu <hui@codesourcery.com>
10593 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
10594 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
10595 (gdb_bfd_fopen): Ditto.
10596 (gdb_bfd_openr): Ditto.
10597 (gdb_bfd_openw): Ditto.
10598 (gdb_bfd_openr_iovec): Ditto.
10599 (gdb_bfd_fdopenr): Ditto.
10600 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
10601 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
10603 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
10605 * symfile-mem.c (symbol_file_add_from_memory): Removed
10606 gdb_bfd_stash_filename.
10608 2014-01-03 Doug Evans <dje@google.com>
10610 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
10613 2014-01-01 Joel Brobecker <brobecker@adacore.com>
10615 Update year range in copyright notice of all files.
10617 2014-01-01 Joel Brobecker <brobecker@adacore.com>
10619 * top.c (print_gdb_version): Set copyright year to 2014.
10621 2014-01-01 Joel Brobecker <brobecker@adacore.com>
10623 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
10625 For older changes see ChangeLog-2013.
10631 version-control: never